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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
08260b91313501752e2e3f0567b2f9abe58b6278 | 9d1ef7993bf0df9967b1e7a79d5913fbc3e3a7e1 | /tests/teststatistics.py | a34c3440109210c279d13e5d7aa17a063019754c | [
"BSD-2-Clause"
] | permissive | mitmedialab/WhatWeWatch-Analysis | f6f4fbd8fba4ef6a58f4961c7f3d9b9519dae3a4 | cc01dee4e77155c8aec7638e4275172053db3247 | refs/heads/master | 2021-05-28T05:40:36.678808 | 2014-11-03T01:22:26 | 2014-11-03T01:22:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import inspect
import os
import sys
import unittest
import numpy as np
import numpy.testing as nptest
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0,parentdir)
import statistics
import stubs
import util
class Statistic... | [
"ed@elplatt.com"
] | ed@elplatt.com |
c203dcbcd0e62de00ecb30750a4efed7d09106dc | fec70d89f651a26bbb4d706e264a5cd28ce12c06 | /convert2jpg.py | f160b1e136686d2735fd0f841528870313264919 | [] | no_license | UpCoder/Pixel_Link | ab54e5505175f6e25cfb94688869953a5236239a | c807d316c0b36280347045c25c494ea6c63c5f11 | refs/heads/master | 2020-04-01T22:56:30.560113 | 2018-10-27T09:25:01 | 2018-10-27T09:25:01 | 153,733,782 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,558 | py | # -*- coding=utf-8 -*-
import os
from glob import glob
from datasets.medicalImage import read_mhd_image, fill_region
from config import type2pixel, pixel2type
import numpy as np
from xml.dom.minidom import Document
import cv2
image_suffix_name = 'jpg'
def LiverLesionDetection_Iterator(image_dir, execute_func, *parame... | [
"546043882@qq.com"
] | 546043882@qq.com |
3eca6fa93c5db8360edf1d7504cead97383393d2 | 5a8214b3a452c574e6c883bf5d90ba58ba87c461 | /leetcode/549.py | bdd217ec4dc7b3604cda9930f55824e25cf201fb | [] | no_license | phlalx/algorithms | 69a3c8519687816e3c6333ec12b40659d3e3167f | f4da5a5dbda640b9bcbe14cb60a72c422b5d6240 | refs/heads/master | 2023-02-03T10:30:30.181735 | 2020-12-26T09:47:38 | 2020-12-26T09:47:38 | 129,254,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | #TAG tree
# yet another tree problem
# do it on paper first to see if we use synth/inherited attributed and how
# to deal with None
#
# If we don't recurse to None, don't forget to deal with corner case where
# root = None.
#
# In this example, we don't recurse through None because we need
# node.left, node.right val... | [
"phlalx@users.noreply.github.com"
] | phlalx@users.noreply.github.com |
6e7e9e7be12b4e755ac17174ef8c25c82594321e | 3293dc42e15e956be202e39db196eed9912dcc01 | /estimation/causal_inference/I_and_R_treatment effect evaluation/stratified_randomized_experiments/fep_stats.py | 5f2e7f9659245edb8a169bbd0e9f13888824119d | [] | no_license | bthowe/data_science | c372e5364f24dc29e3de1fca3504211cb93b62fb | 63291df8084e5f62f9ba226e87db2242bb31ac94 | refs/heads/master | 2021-11-24T10:49:00.800890 | 2021-11-02T16:10:16 | 2021-11-02T16:10:16 | 106,839,857 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,380 | py | import sys
import numpy as np
import pandas as pd
pd.set_option('max_columns', 1000)
pd.set_option('max_info_columns', 1000)
pd.set_option('expand_frame_repr', False)
pd.set_option('display.max_rows', 30000)
pd.set_option('max_colwidth', 4000)
pd.set_option('display.float_format', lambda x: '%.3f' % x)
def T_diff_la... | [
"b.travis.howe@gmail.com"
] | b.travis.howe@gmail.com |
64165e3ab97aeeeb15eedc35d813c6e5e60e29c1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03086/s435473021.py | 48cf74090e9644bcb577dece1ddb37330a8fc1a4 | [] | 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 | 390 | py | ans = 0
c = 1
li = ["A","C","G","T"]
s = input()
lens = len(s)
for i in range(lens):
for j in range(lens-(i)):
a = s[j:j+i+1]
for k in range(i+1):
if a[k] not in li:
c = 1
break
else:
c = 0
continue
if c ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b334814b90ea86220c975382e7dfc5b5e03db363 | 281c0694b9c6e394a0329a34d1b9ec564811fd3a | /test/test_errors.py | d6dabec0f52bb01937c19c6e0a1e1f051da688a5 | [
"Apache-2.0"
] | permissive | fridex/json2sql | 35448d1011a53c55641ef928cbcdc2c40d55fb65 | a0851dd79827a684319b03fb899e129f81ff2d3a | refs/heads/master | 2021-01-01T19:09:30.394871 | 2018-04-01T12:12:43 | 2018-04-01T12:12:43 | 98,528,002 | 0 | 0 | Apache-2.0 | 2018-04-01T12:20:36 | 2017-07-27T11:26:43 | Python | UTF-8 | Python | false | false | 747 | py | #!/usr/bin/env python3
# ######################################################################
# Copyright (C) 2017 Fridolin Pokorny, fridolin.pokorny@gmail.com
# This file is part of json2sql package.
# ######################################################################
"""Tests for error handling."""
from json2... | [
"fridolin@redhat.com"
] | fridolin@redhat.com |
e901843881086ed332a601f428db957d0382c60a | 4d7e1b959194e7ca7d99c0b5926622f37959cd02 | /todolist/admin.py | da44779ce2751e042d3daf013650127ccbdbea60 | [] | no_license | KamilBienias/my-first-blog | ce1ff6ff8912c30014a219a7059037a62a4f48d0 | 2c138991c3e53f3b3bc7b4e6d76c20d62a9a126a | refs/heads/master | 2020-12-19T07:35:58.750570 | 2020-08-23T16:15:46 | 2020-08-23T16:15:46 | 235,664,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from django.contrib import admin
from .models import Task, Person
admin.site.register(Task)
admin.site.register(Person)
| [
"kamil.bienias.math@gmail.com"
] | kamil.bienias.math@gmail.com |
9358e544278850f748f16ad9ac2e1b2e102db86a | 94dbd40525692416ea8100d13b03ece73ee33f7f | /kgtk/iff/kgtkifempty.py | 5db7e9bffa021cfeaa1271b05c1b67106745527c | [
"MIT"
] | permissive | usc-isi-i2/kgtk | 7101129ce1dde646095803429d3c751bf87ae071 | c31ba4c33d5f925fdb66a487ba2e1184c9ca4254 | refs/heads/main | 2023-08-22T06:58:22.301262 | 2023-06-29T19:55:28 | 2023-06-29T19:55:28 | 234,676,361 | 325 | 53 | MIT | 2023-06-29T19:55:30 | 2020-01-18T03:34:48 | Jupyter Notebook | UTF-8 | Python | false | false | 10,669 | py | """Copy records from the first KGTK file to the output file, if one or more
columns are (any/all) (not) empty. If --only-count is True, report the count
of qualifying records but do not write the output file.
"""
from argparse import ArgumentParser, Namespace
import attr
from pathlib import Path
import sys
import ty... | [
"rogers@isi.edu"
] | rogers@isi.edu |
18963044c0b542d8438fa4a3f06fcece9a5724c2 | 19fb0eb26f5a6d2180a323cf242ce00f5e4e1c6d | /test/functional/rpc_net.py | 1edc734577b514756d5995d5ae4866c5961a14bd | [
"MIT"
] | permissive | j00v/NestEGG | bd4c9555f6473cc655e203531c6ab4d0dc795b61 | 8c507974a5d49f5ffa7000fa8b864a528dcb9c3e | refs/heads/master | 2022-12-03T09:16:14.732378 | 2020-08-12T15:25:31 | 2020-08-12T15:25:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,111 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test RPC calls related to net.
Tests correspond to code in rpc/net.cpp.
"""
from test_framework.test_frame... | [
"shamim.ice.ewu@gmail.com"
] | shamim.ice.ewu@gmail.com |
30cb251586599dc04ef74e664fb104b60b42d8e1 | 4a9dada02c749e9e5277fe1e35357d7b2b28ad5c | /高艺航2018012950/操作系统实验/作业3 创建多进程.py | 6c0b31386f1a4c6f1d792b15aa9fb29d96d4ee90 | [] | no_license | wanghan79/2020_Option_System | 631cc80f52829390a128a86677de527472470348 | f37b870614edf7d85320da197d932df2f25a5720 | refs/heads/master | 2021-01-09T13:10:05.630685 | 2020-07-10T03:30:39 | 2020-07-10T03:30:39 | 242,312,271 | 13 | 9 | null | 2020-07-04T16:13:11 | 2020-02-22T09:12:56 | Python | UTF-8 | Python | false | false | 442 | py | """
Author : Yihang.Gao 高艺航
StuNumber: 2018012950
Purpose : Set up multiprocess by python.
Created : 1/7/2020
"""
from multiprocessing import Process
def setup_pro(i):
print('process',i)
if __name__ == '__main__':
list_pro = []
for i in range(3):
k = Process(target=setup_pro, a... | [
"noreply@github.com"
] | wanghan79.noreply@github.com |
ed5eb4fea9abb6d9e7d56595dc9603d9abd22bf4 | 77c641fd0708b279dddbe01f6af32a8531b93185 | /marketsim/gen/_intrinsic/observable/minmax.py | 734d5a8a443fbbb0acaf22a6f90bff1435caa3bc | [] | no_license | abensrhir/marketsimulator | aea286afd2bb2e0c8a547bfa879601aef21c0cd5 | f9f55c72fb34cdbec42b96737ca20839f26c6299 | refs/heads/master | 2020-12-13T20:55:55.795344 | 2014-02-24T22:52:24 | 2014-02-24T22:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | from marketsim import event, _
import fold
class Min_Impl(fold.Last):
def __init__(self):
event.subscribe(self.source, _(self)._update, self)
self.reset()
def reset(self):
import blist
self._levels = blist.sorteddict()
self._x = None
def at(self,... | [
"anton.kolotaev@gmail.com"
] | anton.kolotaev@gmail.com |
20427a03af6d5566c36d42e5d8ea4bcbfd11aa93 | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2015_02_19_strain_stress_vtk/old_version/Calculate_Stress_from_Strain_ORIGINAL.py | 46c772ad37f6fbc4da3a37d15695c54b8772e00f | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,842 | py | #
# Calculate_Stress_from_Strain_MKS.py
#
# Written by Matthew Priddy on February 19, 2015
#
from sys import *
from string import *
from math import *
from pylab import *
from random import *
from numpy import *
import itertools
from numpy import tensordot as td
import matplotlib
#matplotlib.use('PDF')
i... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
d276364df8ec40da6b689afb1517955d749b9b02 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/eqpt/ingrcrcerrpktshist1w.py | 111b05ec20a3806ac9cbfd58cafef8a9e436340c | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,741 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
4d6a69101128cf2a501beb4695b10e4e6725b142 | da130508b04587493424d6c95ab05a55dd70170f | /math/0x00-linear_algebra/2-size_me_please.py | e49b8b8ce7b567c07f70d7815294e0e636d80882 | [] | no_license | AndrewKalil/holbertonschool-machine_learning | ea38c0d1ef6ce2206da5f3903fcc22730404af9c | bb980395b146c9f4e0d4e9766c4a36f67de70d2e | refs/heads/master | 2023-07-09T04:09:24.271069 | 2021-08-11T02:29:54 | 2021-08-11T02:29:54 | 317,371,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | #!/usr/bin/env python3
""" 0x00. Linear Algebra """
def matrix_shape(matrix):
""" calculates shape of a matrix """
if matrix:
shape = [len(matrix)]
while type(matrix[0]) == list:
shape.append(len(matrix[0]))
matrix = matrix[0]
return shape
else:
retu... | [
"1541@holbertonschool.com"
] | 1541@holbertonschool.com |
d4088c4ab77b083f972d428a0ce87909942c2d89 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02399/s168551365.py | 01908c0ef89d62a27267c675c1736b6a0a60212f | [] | 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 | 248 | py | l=raw_input()
k=l.split()
a=0.0
b=0.0
a=int(k[0])
b=int(k[1])
#
print int((a-(a%b))/b),
print int(a%b),
a*=1.0
b*=1.0
if b==1:
print a*1.0
else:
if a/b>0.0000002:
print a/b
else: print "0.00000001.99999982" | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ca4f5cab50d67b22d56721e02feed6e8733cc4e4 | 7b102f9c8f2e3f9240090d1d67af50333a2ba98d | /gbd_2019/shared_code/cod_database/02. Map to GBD Cause list/mapping.py | f628105216254961b3a62a4acc97a8e2bfed2cf0 | [] | no_license | Nermin-Ghith/ihme-modeling | 9c8ec56b249cb0c417361102724fef1e6e0bcebd | 746ea5fb76a9c049c37a8c15aa089c041a90a6d5 | refs/heads/main | 2023-04-13T00:26:55.363986 | 2020-10-28T19:51:51 | 2020-10-28T19:51:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,422 | py | """Map data causes to GBD causes."""
import pandas as pd
import numpy as np
from pathlib2 import Path
from cod_prep.claude.cod_process import CodProcess
from cod_prep.downloaders import (
add_nid_metadata,
add_code_metadata,
add_cause_metadata,
get_garbage_from_package,
get_all_related_causes,
)
f... | [
"cheth@uw.edu"
] | cheth@uw.edu |
afb7b1c1f7b6530a07d7f811577e8294e4a176a6 | 9dba8607dce414f9905700d7a4ac44668de5e1f1 | /Brelaz/rough_calculations/dir1_reinforcement.py | 3f25e1b2285ceab6ba6be10343ff326ed6f62365 | [] | no_license | anaiortega/XCmodels | c0463ffe38531578aee281456e88528882255cd7 | e9b8c2f996a21b8aa3314242f3cc12b0e391b5df | refs/heads/master | 2023-08-16T22:44:01.168775 | 2023-08-14T18:15:10 | 2023-08-14T18:15:10 | 141,140,177 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,191 | py | # -*- coding: utf-8 -*-
from rough_calculations import ng_cantilever
from rough_calculations import ng_simple_bending_reinforcement
from matplotlib import pyplot
from mpl_toolkits.mplot3d import Axes3D
from materials.sia262 import SIA262_limit_state_checking
beam= ng_cantilever.Cantilever()
beam.l= 2.45+0.5
#Loads
Qa... | [
"ana.Ortega.Ort@gmail.com"
] | ana.Ortega.Ort@gmail.com |
43a3de2ecfead616819fe5e028bf38e44a50baa1 | 1b78ca7f3250ebed418717c6ea28b5a77367f1b8 | /318.maximum-product-of-word-lengths/maximum-product-of-word-lengths.py | 4bb2a28a8a6aa610056989f8cf03d7720cd87fd1 | [] | no_license | JaniceLC/lc-all-solutions | ced854f31b94f44c0b03a0677988805e3b9ee718 | 3f2a4ee8c09a8890423c6a22c73f470eccf979a2 | refs/heads/master | 2020-04-05T19:53:31.307528 | 2018-11-12T04:18:45 | 2018-11-12T04:18:45 | 157,155,285 | 0 | 2 | null | 2018-11-12T04:13:22 | 2018-11-12T04:13:22 | null | UTF-8 | Python | false | false | 619 | py | class Solution(object):
def maxProduct(self, words):
"""
:type words: List[str]
:rtype: int
"""
bitmap = [0] * len(words)
mask = 0x01
ans = 0
for i in xrange(0, len(words)):
word = words[i]
for c in word:
... | [
"jedihy@yis-macbook-pro.local"
] | jedihy@yis-macbook-pro.local |
45ce1099bc5ffdfa946930b8766b76fde1714949 | 3d0ae7c8693463faa11bacad8e6ea9d0d70b9eb1 | /pytools/utilities/python/readonly_shelf.py | 6e1644dd96a518813865861187fe91557dd97f85 | [] | no_license | stefie10/slu_hri | a76f79094bd1740676fec5d889411ba3b1d9dc26 | 50753379953e1ff822162eeab094cffe4a30f3e1 | refs/heads/master | 2022-12-14T01:07:51.522258 | 2020-08-31T00:50:12 | 2020-08-31T00:50:12 | 291,386,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import shelve
def open(filename, writeback=True):
return DbfilenameReadonlyShelf(filename, writeback=writeback)
class DbfilenameReadonlyShelf(shelve.Shelf):
"""
Shelf implementation using the "anydbm" generic dbm interface,
read only. Gets rid of annoying error message on shutdown when it
tr... | [
"stefie10@alum.mit.edu"
] | stefie10@alum.mit.edu |
9a2e5f2affbe659988b2dcc4868f355aca84fe6e | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startQiskit_noisy97.py | ca96178cd0302f984e45a6a0b7044d5df04c19b2 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,183 | py | # qubit number=3
# total number=16
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
3f9b93cdc55810f2510840c677c58fcc3a808d26 | cd3fe9f814bbaab6a14749034e2c34963c9284c9 | /volttron/platform/vip/agent/subsystems/pubsub.py | 58fb2b778c266ffbca11d395a12333b8376a0f6f | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | SenHuang19/EnergyPlus-Volttron-Toolkit | 3b9d701238261e075936632b48cd661d42d0a85e | f89e68dc143e9ac01c2b07e975d21d64716bf876 | refs/heads/master | 2020-03-26T10:07:37.638443 | 2018-06-22T23:53:44 | 2018-06-22T23:53:44 | 144,782,102 | 0 | 0 | null | 2018-08-14T23:28:10 | 2018-08-14T23:28:10 | null | UTF-8 | Python | false | false | 37,846 | py | # -*- coding: utf-8 -*- {{{
# vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et:
#
# Copyright 2017, Battelle Memorial Institute.
#
# 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... | [
"hung.ngo@pnnl.gov"
] | hung.ngo@pnnl.gov |
5d1cb88fa75275344805c8e438afef54358aaf7b | 0b1b92e30893d4428b0e04342490da8aef121a65 | /Python/find_peak_element.py | 162886f43b6c6d0a6de053c773e2447a4969f82c | [] | no_license | miaojiang1987/LeetCode | 280dc892f8adbf8c18f30c180e76b045b3797f8c | d8f96b0ec1a85abeef1ce8c0cc409ed501ce088b | refs/heads/master | 2021-06-09T14:46:43.858955 | 2021-05-20T09:06:24 | 2021-05-20T09:06:24 | 155,755,065 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | class Solution(object):
def findPeakElement(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if not nums:
return None
l,r=0,len(nums)-1
while l<r:
mid=l+(r-l)//2
if nums[mid]>nums[mid+1]:
... | [
"miaojiang1987@gmail.com"
] | miaojiang1987@gmail.com |
280ef9746c4ed0ee0513728f4b5d8d3ab3d2d34f | 1eb382ad4712721f646bf478fea747c928f47177 | /plot_perturbation_analysis.py | a542f264f5da6c4a9dff770b207998ac2e7f6258 | [
"MIT"
] | permissive | rmodi6/sentence-representations | ad8f03c6f4588020c1fcf6a691fc3b83ebae8e0f | 4124b8705002ce7188a0473c9840fef6befae0b5 | refs/heads/master | 2023-04-09T23:10:11.873093 | 2023-03-26T18:55:40 | 2023-03-26T18:55:40 | 215,374,321 | 0 | 1 | MIT | 2023-03-26T18:55:41 | 2019-10-15T18:56:57 | Python | UTF-8 | Python | false | false | 4,430 | py | import os
import json
import copy
# external libs imports
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
# project imports
from data import load_vocabulary, index_instances, generate_batches
from util import load_pretrained_model
if __name__ == '... | [
"modi.ruchit6@gmail.com"
] | modi.ruchit6@gmail.com |
b26baf5d67b85a511a6b942d78af2cb10ca51f02 | 620323fc090cebaf7aca456ff3f7fbbe1e210394 | /weather__yahoo.py | 6c01d6686eaff44c12a67e3dd687dc0531713f44 | [
"CC-BY-4.0"
] | permissive | gil9red/SimplePyScripts | bd2733372728bf9b9f00570e90316fa12116516b | 773c2c9724edd8827a1dbd91694d780e03fcb05a | refs/heads/master | 2023-08-31T04:26:09.120173 | 2023-08-30T17:22:59 | 2023-08-30T17:22:59 | 22,650,442 | 157 | 46 | null | 2023-09-08T17:51:33 | 2014-08-05T16:19:52 | Python | UTF-8 | Python | false | false | 973 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "ipetrash"
import requests
city = "Магнитогорск"
# # OR:
# city = 'Magnitogorsk'
url = (
"https://query.yahooapis.com/v1/public/yql?q=select item from weather.forecast where woeid in "
"(select woeid from geo.places(1) where text='{city}') and u='... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
75769b77e4341042b1aebeac586a2b46403aecd8 | 307939a14bd837b67ebf18b28a99aa2ad9755d18 | /app_user_login/migrations/0002_users_birthdate.py | dcc3e72027f14118d5113f6a0934585363a9068b | [] | no_license | raqueloropeza/Django_LoginAndRegistration | 3c4d37742c09f5f4f442154251cf81ddf159cba6 | 89b63ded8c60a5b21cd3de0f84c1aed662e29d3b | refs/heads/master | 2023-05-07T19:37:00.592985 | 2021-06-03T16:55:30 | 2021-06-03T16:55:30 | 373,557,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # Generated by Django 2.2.4 on 2021-02-25 15:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app_user_login', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='users',
name='birthdate',
... | [
"rockuzaki@gmail.com"
] | rockuzaki@gmail.com |
611d4762679b0fa7bc528a0bf1515549c0bb6062 | 1b48dcc9b7a4dc7debff78e65d55617d04b74495 | /chapter10_multThreading/thread_condition.py | aa54f3e62df175f4a546fb383c91a2b5a0544aeb | [] | no_license | beenlyons/python_supreme | 15ad7baabfab57e55ea1521b173e507420a18b9e | 3279aa8db52c7c8a1295f24a39d228df7f77ce43 | refs/heads/master | 2020-03-21T17:30:37.150525 | 2018-07-24T03:54:46 | 2018-07-24T03:54:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | from threading import Condition, Lock
import threading
# 条件变量, 用于复杂的线程间同步
# class XiaoAi(threading.Thread):
# def __init__(self, lock):
# self.lock = lock
# super().__init__(name="xiaoAi")
# def run(self):
# self.lock.acquire()
# print("{} : 在".format(self.name))
# self.... | [
"1335682725@qq.com"
] | 1335682725@qq.com |
40c671b4b964f8a4f970e54ae2518d818bd8c8bd | 80ae9b5cfb45b6e9cf7873ef7c46e17e117e4019 | /data/CodeChef/HAND01.py | 6bd4e91e18b0489271a1a5f90c80e17e34ed505e | [] | no_license | Ritvik19/CodeBook | ef7764d89b790e902ede5802f36d5ca910d8a50e | 2b4ed7938bbf156553d6ba5cba6216449528f0fc | refs/heads/master | 2021-07-04T08:25:52.478719 | 2020-08-08T06:54:14 | 2020-08-08T06:54:14 | 138,744,302 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | # Credits: Sir Isaac Newton is standing over a circle of radius 0.5641895835477563.
# Input
# The first line of the input contains an integer T denoting the number of test cases. The next T lines contain a string containing numbers and one or more special charters (?, !, %, $)
# Output
# For each test case, output a si... | [
"rastogiritvik99@gmail.com"
] | rastogiritvik99@gmail.com |
2e4f86b82f95b90c80d1725615e2996fdb2cb164 | 9c3765dba0b249eb0a8da92076d2ae01291fc0e7 | /not_done/py_not_started/euler_392.py | 498d71d4902d7af330f192be8c5b3f979bc95492 | [] | no_license | saetar/pyEuler | 3a021f95a1856775bef87b38c753049b04282b80 | f0af7092e16c2109028b4b1aa5bed7a0057d3fe9 | refs/heads/master | 2020-03-21T12:05:15.430454 | 2018-06-15T03:50:50 | 2018-06-15T03:50:50 | 138,535,115 | 0 | 0 | null | 2018-06-25T02:40:43 | 2018-06-25T02:40:42 | null | UTF-8 | Python | false | false | 1,342 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ~ Jesse Rubin ~ project Euler ~
"""
Enmeshed unit circle
http://projecteuler.net/problem=392
A rectilinear grid is an orthogonal grid where the spacing between the gridlines does not have to be equidistant.
An example of such grid is logarithmic graph paper.
Consider rect... | [
"jessekrubin@gmail.com"
] | jessekrubin@gmail.com |
8e559598071a54f18e8b5b49476b09087984d51e | dfe4d9f6b09109b22e76069b0f6e56993165e91d | /camp-python-2021-find-me-develop/apps/users/apps.py | 00812dc9a1174718ab09f30466d4af9874f10952 | [] | no_license | rhanmar/oi_projects_summer_2021 | ef6b06e003a1c54583df4b006d141df924adeafb | 0879ade24685b628624dce06698f8a0afd042000 | refs/heads/main | 2023-08-25T04:02:46.284756 | 2021-09-17T03:29:16 | 2021-09-17T03:29:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
from watson import search as watson
class UsersAppConfig(AppConfig):
"""Default configuration for Users app."""
name = "apps.users"
verbose_name = _("Users")
def ready(self):
# pylint: disable=unused-imp... | [
"dimontura@yandex.ru"
] | dimontura@yandex.ru |
85a51ad7dc8750ab6d9a66bec400b2433c202821 | 368be25e37bafa8cc795f7c9f34e4585e017091f | /.history/app_fav_books/views_20201114172332.py | ae26a428bcd7b78a9862ed83d5fbd6fd90c986e0 | [] | no_license | steven-halla/fav_books_proj | ebcfbfda0e7f3cdc49d592c86c633b1d331da513 | 512005deb84ac906c9f24d4ab0939bd0db096716 | refs/heads/master | 2023-03-30T09:37:38.016063 | 2021-04-02T20:27:22 | 2021-04-02T20:27:22 | 354,125,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,847 | py | from django.shortcuts import render, redirect
from .models import *
from django.contrib import messages
def index(request):
return render(request, "index.html")
def register_New_User(request):
errors = User.objects.basic_validator(request.POST)
if len(errors) > 0:
for key, value in errors.items... | [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
63f1c26ff5ab2a139d219ec741d15abd32daa59e | 58a14a13ccc948fe21082bb5df3a65b0ff6f5e81 | /dynamic_forms/models.py | bb337ff7fbd7edb6ed51e0af0e03ea9fcf8798ec | [
"BSD-3-Clause"
] | permissive | cheluis/django-dynamic-forms | 38dce222f17d18a45794cca904a6c18b7a721595 | c6555714d0acc1e732c245d1983b217be6590433 | refs/heads/master | 2020-12-27T12:15:37.247627 | 2015-04-09T13:12:50 | 2015-04-09T13:12:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,879 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import json
try: # pragma: no cover
from collections import OrderedDict
except ImportError: # pragma: no cover
from django.utils.datastructures import SortedDict as OrderedDict
from django.db import models
try: # pragma: no cover
from dj... | [
"info@markusholtermann.eu"
] | info@markusholtermann.eu |
47e588e7c429cf9a9c1d10db3d2ef25f983ed712 | 2850d9adba96bc4e73185de5d6adebf363a5c534 | /tce/tcloud/cvm/AssociateSecurityGroups.py | 11d8e5ca52a09b8e0e312396bb00ee9dfb7bb036 | [
"Apache-2.0"
] | permissive | FatAnker/tencentcloud-sdk-python | d8f757b12ad336e78a06b68a789ecc3c86d1d331 | d6f75a41dc7053cb51f9091f4d41b8cb7a837559 | refs/heads/master | 2020-04-30T22:34:16.740484 | 2019-04-28T11:14:11 | 2019-04-28T11:14:11 | 177,122,691 | 0 | 1 | null | 2019-03-22T10:46:01 | 2019-03-22T10:46:01 | null | UTF-8 | Python | false | false | 1,971 | py | # -*- coding: utf-8 -*-
import os
from tencentcloud.common import credential
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
# 导入对应产品模块的client models。
from tencentcloud.cvm.v20170312 import cvm_client, models
import json
# 导入可选配置类
from tencentcloud.common.profile.client_p... | [
"1113452717@qq.com"
] | 1113452717@qq.com |
5fa589d9a038fcbb13e019a6129a02a94b582d64 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2751486_0/Python/axr123/a.py | 49363e53c0937f442e2efd0decfa7c6a90f1f400 | [] | 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 | 605 | py | import sys
vowels = 'aeiou'
def concons(str):
maxN = 0
n = 0
for l in str:
if l in vowels:
if n > maxN: maxN = n
n = 0
else:
n += 1
if n > maxN: maxN = n
return maxN
def solve(name, n):
count = 0
for s in range(len(name... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
31be72f47f8097ba9df421e724f210ac08707884 | 602a4e86499841fbae43d84fc92908c533106aea | /core/forms.py | 92edcd63936e84acef0f101ba7523413660abe6f | [] | no_license | vden/TsoguNG | b187ccf1bef387417ec73467c51458d6f1443239 | f8d5e7ab9d85559aa163c232c9f28a24a2b7c2a4 | refs/heads/master | 2021-01-02T08:52:03.914218 | 2011-04-26T07:01:57 | 2011-04-26T07:01:57 | 1,663,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,173 | py | # -*- coding: utf-8 -*-
from django import forms
from core.fields import CalendarDateField
from django.contrib.admin import widgets as admin_widgets
from core import models
from datetime import datetime
def extra_form_factory(type):
class BaseExtraForm(forms.ModelForm):
time_choices = [('None',u'не задано')] + [(... | [
"denis.voskvitsov@gmail.com"
] | denis.voskvitsov@gmail.com |
3571215df13d920412f8c5912d86fde82b88a82e | fe4b49f22cd851ee4f7639bef720d774fbfb1248 | /src/comments/models.py | cc5f4cbe71dfee3814480f8a9c14549170dde5f7 | [] | no_license | tyagow/servicos-paraguai | b2c20a48651e7e046f4e86b0e94f026589dbc545 | a71078174a175f86f2a4f49fcaf26b8f91ea778d | refs/heads/master | 2020-12-24T05:39:57.243158 | 2017-05-23T14:14:28 | 2017-05-23T14:14:28 | 73,492,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.db import models
class CommentManager(models.Manager):
def filter_by_instance(self, instance):
content_type = ContentType.objects.get_for_model(instance.__class__)
... | [
"tyagow@hotmail.com.br"
] | tyagow@hotmail.com.br |
c12d8a3717648e007e9abc3dc9d63a711c4d0582 | b864232c0133738e329e61ca74188c8eafe74108 | /misc/experiment/distortion/main.py | 80b7d04914341bb72e17df1ec3410fc3387e5877 | [] | no_license | QilinGu/tf-face-recognizer | 0b16af8225d4e3bd67b0bd2df3005b5f1a3a7f35 | d1092b72d01f08a7bbfb2f30072a60b8d8409804 | refs/heads/master | 2021-01-09T06:40:30.678375 | 2017-02-03T17:57:21 | 2017-02-03T17:57:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | import os
import tensorflow as tf
def main(argv=None):
with open(os.path.join(os.path.dirname(__file__), 'face.png'), 'rb') as f:
png = f.read()
image = tf.image.decode_png(png, channels=3)
begin, size, _ = tf.image.sample_distorted_bounding_box(
tf.shape(image),
[[[8.0/112.0, 8.0... | [
"sugi1982@gmail.com"
] | sugi1982@gmail.com |
8cfa28a1b18e8ac19215d87eebf5216525b2160e | 25fa5fdc9f67738332bd6f95a1e4f038cd286890 | /BOJ/단계별로 풀어보기/ch07_문자열/1152_단어의 개수.py | 0e051399bc66d888bae95cbbf9345f6aa8eeb91a | [] | no_license | mandos1995/online_judge | b0cfd56e3391495f22b9832895cddcea70334349 | 9b90bffdcbfb5369e8dd5dafbb07f8e9e7050617 | refs/heads/main | 2023-08-02T19:29:03.716295 | 2021-10-04T15:10:34 | 2021-10-04T15:10:34 | 329,517,747 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | '''
문제
영어 대소문자와 띄어쓰기만으로 이루어진 문자열이 주어진다. 이 문자열에는 몇 개의 단어가 있을까?
이를 구하는 프로그램을 작성하시오. 단, 한 단어가 여러 번 등장하면 등장한 횟수만큼 모두 세어야 한다.
'''
# solution
string = list(map(str,input().strip().split()))
print(len(string)) | [
"mandos19950620@gmail.com"
] | mandos19950620@gmail.com |
9040402abc555921137b96e21d59ea69a4a65b3f | ebbc32882b1bbb6e6935695a400e8ffd8c0fb7f6 | /ROAR/planning_module/mission_planner/waypoint_following_mission_planner.py | 81d8b4b89955d40a27fae6e422993f7a437d1132 | [
"Apache-2.0"
] | permissive | augcog/ROAR | 25fc3555934854871883de84bae49d84f86fbd7b | b7cd322f451ceccf5c53b331e15f5025f2e63bac | refs/heads/main | 2023-08-31T16:51:00.857463 | 2023-08-12T00:08:06 | 2023-08-12T00:08:06 | 302,450,761 | 29 | 222 | Apache-2.0 | 2023-08-26T07:04:26 | 2020-10-08T20:10:20 | Jupyter Notebook | UTF-8 | Python | false | false | 4,333 | py | from ROAR.planning_module.mission_planner.mission_planner import (
MissionPlanner,
)
from pathlib import Path
import logging
from typing import List, Optional
from ROAR.utilities_module.data_structures_models import Transform, Location, Rotation
from collections import deque
from ROAR.agent_module.agent import Agen... | [
"wuxiaohua1011@berkeley.edu"
] | wuxiaohua1011@berkeley.edu |
479a24ebea460d630afb100cbe446f2b98ea29c5 | 49819aef1336ddb8511e6dec53311777c0b41a7e | /apps/authentication/middleware.py | b2dd6834f09fcecbc03130d84405085fa4a502c7 | [] | no_license | devmaster54/pslam | d91f80340a89820ee596068f13fe6a628a93aab6 | e81316677a1db24bbedce70bf59f85d30583742d | refs/heads/master | 2022-12-24T15:20:39.219597 | 2020-10-02T15:46:20 | 2020-10-02T15:46:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | import re
from psalm import settings
from django.contrib.auth.decorators import login_required
class AuthVerificationMiddleware(object):
def process_exception(self, request, exception):
return None | [
"soft.expert32@gmail.com"
] | soft.expert32@gmail.com |
b0a4d0f17558cbe4b82cc607cb5c64a7b2238ed4 | ae381913c23385f004b82161624097645ba8c4c8 | /Xianyang_modwt/projects/ensemble_models.py | 505bd0dc6a0bcac8eb2a2a3565d5e738a7deca6b | [
"MIT"
] | permissive | zjy8006/MonthlyRunoffForecastByAutoReg | aa37910fdc66276d0df9d30af6885209d4a4ebfc | 661fcb5dcdfbbb2ec6861e1668a035b50e69f7c2 | refs/heads/master | 2020-12-12T05:25:48.768993 | 2020-08-20T07:21:12 | 2020-08-20T07:21:12 | 259,588,564 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | import matplotlib.pyplot as plt
import os
root_path = os.path.dirname(os.path.abspath('__file__'))
import sys
sys.path.append(root_path)
from tools.ensembler import ensemble
from Xianyang_modwt.projects.variables import variables
# Set the project parameters
ORIGINAL = 'XianyangRunoff1951-2018(1953-2018).xlsx'
STATION... | [
"zuojianyi@outlook.com"
] | zuojianyi@outlook.com |
f024ccaadc2065d52a7c473fe13a3620d3f75af1 | 6d913683be43f459b6e29dd84f09c05234efeb4d | /single_cell_differentiation_cuomo_data/merge_parallelized_covariate_modulated_eqtls.py | 3cea2a67cb603b0c7c42cf93e49bc86f36b4b564 | [] | no_license | BennyStrobes/eqtl_factorization | 4f94d8e2e00cf1830fd008f3264d1f9c57f6b2a0 | e555485e40e44c51e86f67761e5200b370673910 | refs/heads/master | 2021-06-20T15:54:34.906395 | 2021-04-05T14:11:46 | 2021-04-05T14:11:46 | 198,705,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,186 | py | import numpy as np
import os
import sys
import pdb
def bf_fdr_multiple_testing_correction(variant_gene_pairs_eqtl_results_file, multple_testing_correction_results_file, fdr_thresh):
f = open(variant_gene_pairs_eqtl_results_file)
t = open(multple_testing_correction_results_file, 'w')
head_count = 0
genes = {}
for... | [
"bstrobe1@jhu.edu"
] | bstrobe1@jhu.edu |
3d522fc5eb54ef2e47e6a569e0ad572dc5690bf3 | 6c9d41994937733dc84e54359f5789ac945724a2 | /echo.py | 863cb8941b7dd620f6dacb81c28f14c916781f13 | [
"MIT"
] | permissive | cider-load-test/pygadu | 2268f38b4612cb32236c687ef355c6dc1d4cae33 | d4c1b25908ae6facd89d3509ea8bc2ec6b4eb11c | refs/heads/master | 2021-12-02T06:28:02.877479 | 2008-11-30T13:01:41 | 2008-11-30T13:01:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | import time
from pygadu.session import PyGadu
from pygadu.util import query_hub
class Echo(PyGadu):
def __init__(self):
super(Echo, self).__init__()
def onWelcome(self, packet):
print repr(packet)
print "Welcome!"
def onLoginOk(self, packet):
print repr(packet)
... | [
"devnull@localhost"
] | devnull@localhost |
68c366cf3fe05227f6edc4c1f969590059582f5e | e3fd35a8443aaf2f293ae03a5f6c819046a4dd21 | /leetcode-java/leetcode.py | 9eecc06a263da457fb4f2cbe087d8d5b6c42ee2f | [] | no_license | hieutran106/leetcode-ht | 2223ea6bcd459c2cdbc33344c0ff69df7f8a3c7f | 8332eb20e613f82cda2e326218154c7803a32403 | refs/heads/main | 2023-08-09T02:52:41.360360 | 2023-07-27T10:12:28 | 2023-07-27T10:12:28 | 234,890,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | import sys
import os
if __name__ == "__main__":
difficulty = sys.argv[1]
problem = sys.argv[2]
cwd = os.getcwd()
path = os.path.join(cwd, "src", "test", "java", difficulty, problem)
# early exit
if os.path.exists(path):
print("Solution existed. Exit ...")
sys.exit()
print... | [
"hieutran106@gmail.com"
] | hieutran106@gmail.com |
7a5dcf48ff36cbc9f82e9329b3f7faec2ce88438 | 8eafb73fdab3e422aa717bac9af338dcba5e3c1e | /bbp/tests/test_gp_gof.py | bfb3309cb2b062ef6e9a0ed863563eb5f5da02ec | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | LevyForchh/bbp | 6dae4ce3577a73f5cef9b9b5507753a1381ec870 | 3cc389fb956ea14ef827af0f437ce37e8291afac | refs/heads/master | 2020-06-03T05:10:35.751009 | 2019-06-11T21:38:18 | 2019-06-11T21:38:18 | 191,453,945 | 0 | 0 | null | 2019-06-11T21:38:16 | 2019-06-11T21:38:15 | null | UTF-8 | Python | false | false | 7,314 | py | #! /usr/bin/env python
"""
Copyright 2010-2019 University Of Southern California
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 appl... | [
"fsilva@usc.edu"
] | fsilva@usc.edu |
b55110e630e67fe860d2037fa0094925bbf45e28 | 64a8dcfa0a98c665b8b2ac796ed7231135977d9a | /fluent_contents/plugins/googledocsviewer/content_plugins.py | cf330dfc9bf3f2783a245dbbb6a29a3f46c583a2 | [
"Apache-2.0"
] | permissive | jpotterm/django-fluent-contents | 8bc70c9f0309bfeeb3c1e7a96c0687c7070e48ed | e617815874c936af1e00a8bfb79a4c8fc9a40cbb | refs/heads/master | 2021-01-18T06:56:15.737257 | 2015-09-09T15:40:43 | 2015-09-09T15:40:43 | 30,092,032 | 0 | 0 | null | 2015-01-30T21:42:42 | 2015-01-30T21:42:42 | null | UTF-8 | Python | false | false | 1,174 | py | """
Google apps widgets for your site.
"""
from django.utils.html import escape
from django.utils.http import urlquote
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _
from fluent_contents.extensions import ContentPlugin, plugin_pool
from fluent_contents.plugins.goog... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
5aec7d812d592d9d37ec207d0ed43b8a3d21710a | 58e51a01846176168bcd83175f63b240cd6db916 | /apps/news/models.py | 070e6feb4346a30d22e857ca08a87b62ba33f7b9 | [] | no_license | reddytocode/projectX-backend | 7e79795cd0c6951ca39f93e316af7a61b631940d | 05fb5f6e14889ecac94ad52c13796eb14c59814d | refs/heads/main | 2023-07-18T06:37:16.298857 | 2021-06-30T20:29:33 | 2021-06-30T20:29:33 | 380,374,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | from django.db import models
class News(models.Model):
# Todo: inherit
guid = models.TextField()
title = models.CharField(max_length=100, blank=False)
link = models.CharField(max_length=200, blank=False)
content = models.TextField()
author = models.CharField(max_length=100, blank=False) | [
"aaabeeelooon@gmail.com"
] | aaabeeelooon@gmail.com |
21df715483d4461c101e7b8501691258ca4d040d | 4ae34a5179d7adf1037eb9a3cb249f9a5c06684e | /examples/v1beta1/trial-images/darts-cnn-cifar10/model.py | dea7d43f84c6d761b0697b84b5ffd2adc18d9249 | [
"Apache-2.0"
] | permissive | kubeflow/katib | 367373c0452d49a7a115b86893f4dab9e1f278ea | e3e0aa24aeea1edfab0fd42f55392af651d2b3ae | refs/heads/master | 2023-09-04T05:02:05.752156 | 2023-08-24T22:40:54 | 2023-08-24T22:40:54 | 127,941,481 | 1,385 | 422 | Apache-2.0 | 2023-09-14T13:17:29 | 2018-04-03T17:07:12 | Go | UTF-8 | Python | false | false | 7,044 | py | # Copyright 2022 The Kubeflow 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 applicable law or agreed to in ... | [
"noreply@github.com"
] | kubeflow.noreply@github.com |
8d0fe3775c506e3d3501551bd2693ec99edb0d39 | fe19d2fac4580d463132e61509bd6e3cc2cf958d | /toontown/parties/DistributedPartyFireworksActivity.py | cbe6cf69ed730e33a04c428825cbb5fd222fffe2 | [] | no_license | t00nt0wn1dk/c0d3 | 3e6db6dd42c3aa36ad77709cf9016176a3f3a44f | 7de105d7f3de0f8704b020e32fd063ee2fad8d0d | refs/heads/master | 2021-01-01T16:00:15.367822 | 2015-03-21T21:25:52 | 2015-03-21T21:25:55 | 32,647,654 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 7,941 | py | # 2013.08.22 22:23:22 Pacific Daylight Time
# Embedded file name: toontown.parties.DistributedPartyFireworksActivity
from pandac.PandaModules import Vec3
from pandac.PandaModules import OmniBoundingVolume
from pandac.PandaModules import AlphaTestAttrib
from pandac.PandaModules import RenderAttrib
from direct.actor.Acto... | [
"anonymoustoontown@gmail.com"
] | anonymoustoontown@gmail.com |
eee3ed0cdfe623261a833b1da967a5cb2705933d | 30a61c74d5108279af498a181ebc83151f13c033 | /one_hundred_eighteen.py | 30b365d21d51a1e5aa523f67b58d17a91ffc45e6 | [] | no_license | Yanl05/LeetCode | 274267cb189813c96fff67d8cbfba4afebd5c2b2 | c0807a7f31a265b3090ef3d32a0ad5a2b10579f7 | refs/heads/master | 2020-03-15T12:25:16.456742 | 2020-01-20T01:12:35 | 2020-01-20T01:12:35 | 132,143,417 | 0 | 0 | null | 2018-12-21T03:01:32 | 2018-05-04T13:25:24 | Python | UTF-8 | Python | false | false | 704 | py | # -*- coding: UTF-8 -*-
"""
# @Time : 2019-08-28 16:33
# @Author : yanlei
# @FileName: one_hundred_eighteen.py
给定一个非负整数 numRows,生成杨辉三角的前 numRows 行。
在杨辉三角中,每个数是它左上方和右上方的数的和。
"""
class Solution(object):
def generate(self, numRows):
"""
:type numRows: int
:rtype: List[List[int]]
... | [
"756593069@qq.com"
] | 756593069@qq.com |
83f6803e4b1251b1ff5c7750399269d0197edd3d | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2449486_0/Python/ynasu/B.py | 2540035aa29eb33019f7839e601b4e6d8c3a9332 | [] | 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 | 921 | py | #!/usr/bin/env python
import sys
yes = "YES"
no = "NO"
def solve(heights):
N = len(heights)
M = len(heights[0])
for y in xrange(N):
for x in xrange(M):
possible = True
for y1 in xrange(N):
if heights[y1][x] > heights[y][x]:
possible = Fa... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
41e1a56d2699383d73c627f9741b6d6f607a5171 | 6364bb727b623f06f6998941299c49e7fcb1d437 | /msgraph-cli-extensions/src/teamschats/azext_teamschats/vendored_sdks/teamschats/aio/operations_async/_chat_chat_operations_async.py | 8306168c06f4e22be9d73ae8046a198361fd26d2 | [
"MIT"
] | permissive | kanakanaidu/msgraph-cli | 1d6cd640f4e10f4bdf476d44d12a7c48987b1a97 | b3b87f40148fb691a4c331f523ca91f8a5cc9224 | refs/heads/main | 2022-12-25T08:08:26.716914 | 2020-09-23T14:29:13 | 2020-09-23T14:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,956 | 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 ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
f102adefa4347ff2438caea310576abfc8cc8e52 | 27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f | /tests/unit/modules/network/iosxr/test_iosxr_netconf.py | fbb7819e173700b0821c2a564cbc459b04350fe6 | [] | no_license | coll-test/notstdlib.moveitallout | eb33a560070bbded5032385d0aea2f3cf60e690b | 0987f099b783c6cf977db9233e1c3d9efcbcb3c7 | refs/heads/master | 2020-12-19T22:28:33.369557 | 2020-01-23T18:51:26 | 2020-01-23T18:51:26 | 235,865,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,632 | py | # (c) 2017 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is dis... | [
"wk@sydorenko.org.ua"
] | wk@sydorenko.org.ua |
8719cc7f7757f07243f18ba716001c8c590540ed | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/pubsub/v1/pubsub-v1-py/tests/unit/gapic/pubsub_v1/test_subscriber.py | 08b27b5656d703dec02cc1054278b8afbf5d2c31 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185,102 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
efe05d84e80b3c205eaad6cbb005cf317016866d | 5f6cd57c692191acfea18c1af9d87e7db8e873f1 | /devito/ir/iet/scheduler.py | 7f2bf50f2985af84bbae530639c9d5aeae566821 | [
"MIT"
] | permissive | Antongk/devito | 684b0f4928d47bb6acc6469cc0471b5122c34561 | a50c0a8337497cf6d7603cf9beff4a3231e63bee | refs/heads/master | 2020-04-19T17:00:18.380108 | 2019-01-30T09:16:38 | 2019-01-30T09:16:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,330 | py | from collections import OrderedDict
from devito.cgen_utils import Allocator
from devito.ir.iet import (Expression, Increment, LocalExpression, Element, Iteration,
List, Conditional, Section, HaloSpot, ExpressionBundle,
MapExpressions, Transformer, FindNodes, FindSy... | [
"f.luporini12@imperial.ac.uk"
] | f.luporini12@imperial.ac.uk |
e1816c2710b111f0d03effc960902ea50e60d696 | 32226e72c8cbaa734b2bdee081c2a2d4d0322702 | /experiments/murtaza/multiworld/camera_ready/pusher/offline_vae_twin_sac.py | 621da28adc1a2950fe2cadb66df88816f479d492 | [
"MIT"
] | permissive | Asap7772/rail-rl-franka-eval | 2b1cbad7adae958b3b53930a837df8a31ab885dc | 4bf99072376828193d05b53cf83c7e8f4efbd3ba | refs/heads/master | 2022-11-15T07:08:33.416025 | 2020-07-12T22:05:32 | 2020-07-12T22:05:32 | 279,155,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,361 | py | import railrl.misc.hyperparameter as hyp
from multiworld.envs.mujoco.cameras import sawyer_pusher_camera_upright_v1
from railrl.launchers.launcher_util import run_experiment
from railrl.torch.grill.launcher import grill_her_td3_full_experiment, grill_her_twin_sac_full_experiment
if __name__ == "__main__":
variant ... | [
"asap7772@berkeley.edu"
] | asap7772@berkeley.edu |
a86265864b4893259754738fe02624202d5d2073 | eb166976684cf7c3e6ce613e17b270334bcdd837 | /configs/DOTA/faster_rcnn_r50_fpn_1x_dota.py | 7e905b2c0cc4fa43e1cd7846b589a845fdeb687c | [
"Apache-2.0"
] | permissive | dlrudco/AerialDetection | d987c3a301737911e29197065da00c2b8230e423 | e9381016113ddf77a09d07209341bb2208481850 | refs/heads/master | 2023-04-13T16:02:26.331775 | 2021-04-15T07:00:40 | 2021-04-15T07:00:40 | 290,456,718 | 0 | 0 | Apache-2.0 | 2020-08-26T09:43:20 | 2020-08-26T09:43:19 | null | UTF-8 | Python | false | false | 5,037 | py | # model settings
model = dict(
type='FasterRCNN',
pretrained='modelzoo://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
style='pytorch'),
neck=dict(
type='FPN',
in_channels=[256, ... | [
"574258651@qq.com"
] | 574258651@qq.com |
d2974097e777a4e406eabe78dffd4f18f27f2d4f | 2500a2ab1f43c649fb0b4fe3b9e3420efa017efa | /MPK_mini/config.py | 9bd08eee27ccd0fff60ef4fb0ba3349531d15488 | [] | no_license | cappytan3/AbletonLive9_RemoteScripts | 0ce3e2d728190ba2ff5d2422cd03ae8a5df9d46f | 65d08fd4ccdadd8366eca6f3c0fa7932516147bf | refs/heads/master | 2021-01-15T11:50:14.152579 | 2014-04-11T17:37:22 | 2014-04-11T17:37:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | #Embedded file name: /Users/versonator/Hudson/live/Projects/AppLive/Resources/MIDI Remote Scripts/MPK_mini/config.py
from consts import *
TRANSPORT_CONTROLS = {'STOP': -1,
'PLAY': -1,
'REC': -1,
'LOOP': -1,
'RWD': -1,
'FFWD': -1}
DEVICE_CONTROLS = (GENERIC_ENC1,
GENERIC_ENC2,
GENERIC_ENC3,
GENERIC_ENC4,
GENERI... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
745ce5c114180c8dfd4cfc9986795a097c916ddb | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/homework02/maoyanspiders/maoyanspiders/spiders/movies_20200627213700.py | 713340873e0307f55fcf3881bebea59a02cdfb52 | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 741 | py | # -*- coding: utf-8 -*-
import scrapy
from maoyanspiders.items import MaoyanspidersItem
# import xlml.etree
from bs4 import BeautifulSoup as bs
class MoviesSpider(scrapy.Spider):
name = 'movies'
allowed_domains = ['maoyan.com']
start_urls = ['http://maoyan.com/board/4']
# def parse(self, response):
... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
0eeceafe6472fa14ed5584e9b820ca5caf6bcd8f | f6af4dee160aed43afae42c6c7d92542265b26e7 | /backend/views/product_views.py | 9d4eaf4c842da2b6afc8b31ddc8c0a43395c8aa5 | [] | no_license | jasimdipu/django_1st_batch_final_project | 8fcd0aad0fe9dc7922ea0692b24679546796748b | c75a80402967a6492433f75392dd0d8a20314601 | refs/heads/main | 2023-04-07T14:15:03.199353 | 2021-04-03T04:42:51 | 2021-04-03T04:42:51 | 353,403,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | from django.shortcuts import render
from rest_framework.decorators import api_view, permission_classes
from rest_framework.permissions import IsAuthenticated, IsAdminUser
from rest_framework.response import Response
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from ..models import Product,... | [
"dipu.j247@gmail.com"
] | dipu.j247@gmail.com |
037fc945b94f2fda69201f2375319345568518c0 | 38ac429d63369922e12e19cdda042b08b8123027 | /test/test_saml_api.py | 26846e6f2fcda7d9165535256227fcc7e7e394f6 | [] | no_license | aviv-julienjehannet/collibra_apiclient | 0dfebe5df2eb929645b87eba42fab4c06ff0a6be | 10a89e7acaf56ab8c7417698cd12616107706b6b | refs/heads/master | 2021-09-12T16:52:19.803624 | 2018-04-19T01:35:20 | 2018-04-19T01:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | # coding: utf-8
"""
\"Data Governance Center: REST API v2\"
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import ... | [
"busworld08@gmail.com"
] | busworld08@gmail.com |
8b1820d27a95d40776ef0c21fe1b3fc18a519080 | b8cc6d34ad44bf5c28fcca9e0df01d9ebe0ee339 | /Pandas_study/p25.py | a87f99f1a432299ee2ff02de0f557417bca76b3c | [] | no_license | python-yc/pycharm_script | ae0e72898ef44a9de47e7548170a030c0a752eb5 | c8947849090c71e131df5dc32173ebe9754df951 | refs/heads/master | 2023-01-05T06:16:33.857668 | 2020-10-31T08:09:53 | 2020-10-31T08:09:53 | 296,778,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | # -*- coding: utf-8 -*-
"""
pycharm无法显示条件格式的情况,jupyter是可以的,这里只写代码
"""
import pandas as pd
def low_score_red(s):
color = 'red' if s < 20 else 'black'
return f'color:{color}'
def highest_score_green(col):
return ['background-color:lime' if s == col.max()
else 'backgroud-color:white' for s in c... | [
"15655982512.com"
] | 15655982512.com |
f63d3b091f50788337d5c3cb0719c39c23f0dfba | 376b6933872b9110765154094d2c77713da2c853 | /assemblies/bad.assemblies/abyss/3abyss.assembly.24.py | 61ae7ee6df58578b2948a7ad2b7ef9fbaa8bf97b | [] | no_license | markphuong/geographus-genome | 46b037e7789641895f1a99b8bf6dee3418887600 | a0ff439fbc0c350279359a51321e40e7778f5170 | refs/heads/master | 2020-03-19T07:21:29.297458 | 2018-06-05T04:15:18 | 2018-06-05T04:15:18 | 136,107,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,554 | py | #!/usr/bin/env python
#flash manual: http://ccb.jhu.edu/software/FLASH/MANUAL
#this script cleans reads using trimmomatic, merges reads using flash, and creates a read1 file, read2 file (these represent paired files) and an unpaired file
import os
import sys
import argparse
import multiprocessing
# an arguments po... | [
"phuong@br006.pvt.bridges.psc.edu"
] | phuong@br006.pvt.bridges.psc.edu |
0e043652c0c6321e999e76558a46f1c3bb9d060d | 98f7a31ee122cea4b9ed61300c8ee3be456b4850 | /ws-tests/test_study_get.py | 4a483310814437cf889f8e5e8a4583590d922dfe | [
"BSD-2-Clause"
] | permissive | BioinformaticsArchive/phylesystem-api | 4bd30bd32fba29497ca4c4df4a4cc5e85f0c7dfc | 08a77e3f49a1607ec1bc5d835977b1d2c365e291 | refs/heads/master | 2021-01-16T21:38:30.651003 | 2015-04-09T18:08:18 | 2015-04-09T18:08:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | #!/usr/bin/env python
import sys, os
from opentreetesting import test_http_json_method, config
DOMAIN = config('host', 'apihost')
SUBMIT_URI = DOMAIN + '/v1/study/10'
data = {'output_nexml2json':'1.2'}
if test_http_json_method(SUBMIT_URI, 'GET', data=data, expected_status=200):
sys.exit(0)
sys.exit(1) | [
"mtholder@gmail.com"
] | mtholder@gmail.com |
8d7793e068d44fdf86b78fc3ce1096b6349256b3 | df15792f5a82fcea25e62714b13e2d502485eb00 | /peil/peil/migrations/0009_auto_20170507_2253.py | a180183bba7ba0b86a466b593a969a1c33e7bac5 | [] | no_license | acaciawater/peilstok | c6fcdab232d938a3f281e9843c81cfbf59cc4eea | 179e1981a656e78a8ebdac6e50ef73f852df7630 | refs/heads/master | 2020-12-30T17:11:27.871514 | 2017-12-08T13:14:35 | 2017-12-08T13:14:35 | 91,066,224 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-05-07 20:53
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('peil', '0008_auto_20170507_2159'),
]
operations = [
migrations.RemoveField(
... | [
"tkleinen@gmail.com"
] | tkleinen@gmail.com |
d9d098d9fb7eebef77cb4e80498df3812f35e9be | e0045eec29aab56212c00f9293a21eb3b4b9fe53 | /mail_bot/models/mail_channel.py | b3486e0f9c67d8c5f70a64944b335d665f4eec2a | [] | no_license | tamam001/ALWAFI_P1 | a3a9268081b9befc668a5f51c29ce5119434cc21 | 402ea8687c607fbcb5ba762c2020ebc4ee98e705 | refs/heads/master | 2020-05-18T08:16:50.583264 | 2019-04-30T14:43:46 | 2019-04-30T14:43:46 | 184,268,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | # -*- coding: utf-8 -*-
# Part of ALWAFI. See LICENSE file for full copyright and licensing details.
from odoo import api, models, _
class Channel(models.Model):
_inherit = 'mail.channel'
def _execute_command_help(self, **kwargs):
super(Channel, self)._execute_command_help(**kwargs)
self.env... | [
"50145400+gilbertp7@users.noreply.github.com"
] | 50145400+gilbertp7@users.noreply.github.com |
5d49fd435ae7ec0bbe55d65716280de38585f320 | 66c3ff83c3e3e63bf8642742356f6c1817a30eca | /.vim/tmp/neocomplete/include_cache/=+home=+abel=+.virtualenvs=+django=+lib=+python2.7=+site-packages=+django=+utils=+decorators.py | 114714f9021f8e730c05ca6ac3837a9848baf0d0 | [] | no_license | pacifi/vim | 0a708e8bc741b4510a8da37da0d0e1eabb05ec83 | 22e706704357b961acb584e74689c7080e86a800 | refs/heads/master | 2021-05-20T17:18:10.481921 | 2020-08-06T12:38:58 | 2020-08-06T12:38:58 | 30,074,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | [{'word': '_dec', 'menu': '[I]', 'kind': 'f', 'abbr': 'def _dec(func):'}, {'word': '_decorator', 'menu': '[I]', 'kind': 'f', 'abbr': 'def _decorator(view_func):'}, {'word': '_make_decorator', 'menu': '[I]', 'kind': 'f', 'abbr': 'def _make_decorator(*m_args, **m_kwargs):'}, {'word': '_wrapped_view', 'menu': '[I]', 'kind... | [
"pacifi.bnr@gmail.com"
] | pacifi.bnr@gmail.com |
43daa355f596415d794bf815f82a5c47f5f64f4e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03268/s110149697.py | 306d09930e8015c8cc774fe726aa8960b05be863 | [] | 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 | 143 | py | n, k = map(int, input().split())
if k % 2 == 0:
d = k//2
ans = ((n // d)-(n//k)) ** 3
else:
ans = 0
ans += (n // k) ** 3
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
acba81390f9885788faef08ef3a0b042ce1e6ced | f5cf699c09c4bf2fd94285004ebc7766b9464532 | /scripts2/has_release.py | aebe6aa3b0abba1d3f9fea32914f2aa20c91398c | [] | no_license | marcoacierno/autodeploy-tests | 056f7351a94d3316d9a984e9307c4d42b0848be6 | f3bc97235cc17481ecc9529149ac7b361fbbe701 | refs/heads/master | 2022-01-08T02:52:41.418328 | 2019-05-11T10:46:33 | 2019-05-11T10:46:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | import sys
import os
import re
sys.path.append(os.path.dirname(__file__)) # noqa
from datetime import datetime
from base import run_process, RELEASE_FILE, CHANGELOG_FILE
if __name__ == "__main__":
if not os.path.exists(RELEASE_FILE):
print("Not releasing a new version because there isn't a RELEASE.md ... | [
"marcoaciernoemail@gmail.com"
] | marcoaciernoemail@gmail.com |
e291e05c5bc7d1bb9602b61922781b54f61194f1 | cc2a00ce7e05245327ce8da85d0e3aa01d9635b9 | /P_controller/Tank_2/models/environment.py | 4b71bb3680bde2d87dcab15ee3e7ea14fb3ac54f | [] | no_license | puttak/Reinforcement-Learning-in-Process-Control | f7c05a0ed41826cb1d7248caffdb3c47bbe66df0 | 852967e97b2fb0b6c5022365c9ef62906c099832 | refs/heads/master | 2020-05-03T21:56:33.515929 | 2019-03-21T08:28:36 | 2019-03-21T08:28:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,962 | py | from models.tank_model.tank import Tank
from visualize.window import Window
import matplotlib.pyplot as plt
from drawnow import drawnow
class Environment:
"Parameters are set in the params.py file"
def __init__(self, TANK_PARAMS_LIST, TANK_DIST_LIST, MAIN_PARAMS):
self.model = []
for i, TANK_... | [
"eskild.emedd33@gmail.com"
] | eskild.emedd33@gmail.com |
ba858d836612f5c7033f224fdde159303b0860e2 | ef2e354ae06e9994b7bc65f9685f8769ec56dc28 | /offerride/urls.py | 62a8e3f206ab88fb18f3719babe863841c06b08e | [] | no_license | akhilpatil123/FareShare | 45e634b07749f507a40eeb08be710b2090844ab9 | a0d89ba324ef5cf74fe5c54cf641f0d3625bd373 | refs/heads/master | 2020-04-30T00:21:56.041455 | 2019-03-19T11:55:56 | 2019-03-19T11:55:56 | 176,501,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | from django.conf.urls import url
from . import views
app_name = 'offerride'
urlpatterns = [
url(r'^$',views.index, name='index'),
url(r'^rides/$', views.rides, name='rides'),
url(r'^addride/$', views.addride, name='addride'),
url(r'^submitride/$', views.submitride, name='submitride'),
url(r'^join/... | [
"you@example.com"
] | you@example.com |
70026a40fd339a0274b5f4b28aa1d9800b33d7aa | 673f9b85708affe260b892a4eb3b1f6a0bd39d44 | /Botnets/App/App Web/PDG-env/lib/python3.6/site-packages/scipy/integrate/_ivp/dop853_coefficients.py | 5cc5c9e4c41c8bc9fa2287554b1308777aaa5172 | [
"GPL-3.0-or-later",
"BSD-3-Clause",
"GPL-3.0-only",
"BSD-3-Clause-Open-MPI",
"BSD-2-Clause",
"GCC-exception-3.1",
"Qhull",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"Python-2.0"
] | permissive | i2tResearch/Ciberseguridad_web | feee3fe299029bef96b158d173ce2d28ef1418e4 | e6cccba69335816442c515d65d9aedea9e7dc58b | refs/heads/master | 2023-07-06T00:43:51.126684 | 2023-06-26T00:53:53 | 2023-06-26T00:53:53 | 94,152,032 | 14 | 0 | MIT | 2023-09-04T02:53:29 | 2017-06-13T00:21:00 | Jupyter Notebook | UTF-8 | Python | false | false | 7,303 | py | from __future__ import absolute_import, division, print_function
import numpy as np
N_STAGES = 12
N_STAGES_EXTENDED = 16
INTERPOLATOR_POWER = 7
C = np.array([0.0,
0.526001519587677318785587544488e-01,
0.789002279381515978178381316732e-01,
0.118350341907227396726757197510,
... | [
"ulcamilo@gmail.com"
] | ulcamilo@gmail.com |
8a2e361d427501a46d5935226ee01779753093ca | eef3fd0eba25725aa045f4913304c4d2dd93ba7e | /deeplearning_tensorflow_p/p58_transpose_resnet.py | 2463164107c0a9da57793cd2bb02a1bff48cb30e | [] | no_license | provenclei/tensorflow_cv | c613e686ab6827a5eedcbaf00ef1317da0b94e81 | c8827e74e0db42fa617c91f1d14b71abcff8780a | refs/heads/master | 2022-12-01T05:52:31.365257 | 2020-08-16T00:24:11 | 2020-08-16T00:24:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,078 | py | # -*- coding: utf-8 -*-
"""
@Author : LEITENG
@Version :
------------------------------------
@File : p56_ResNet.py
@Description :
@CreateTime : 2020/7/10 09:21
------------------------------------
@ModifyTime : 反 Resnet 框架
"""
import tensorflow as tf
RESNET18 = 'ResNet18'
R... | [
"18565663062@163.com"
] | 18565663062@163.com |
9a1ee8365a695e26f0101708baa476b7bd48369c | dac498d66ec02ad9b52c4c3b074b3bd68d4aee00 | /joke/login.py | 694a6614380599af7dfe3625d1387b7a6e54a06c | [] | no_license | wangjian2254/haha | 3f95c22166af0495098783a40cd1a5d5326cc6e6 | d856cf43bbb12d49334078432a74cbe1ef47cf98 | refs/heads/master | 2016-09-05T20:41:38.188010 | 2014-03-22T11:22:24 | 2014-03-22T11:22:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,027 | py | #coding=utf-8
from datetime import datetime
import urllib
from pubweibo import weibo
from t4py.tblog.tblog import TBlog
from tools.page import Page
import webSetting
from models.model import User
__author__ = 'Administrator'
#from weibopy import OAuthHandler, oauth, WeibopError
from google.appengine.api import memc... | [
"wangjian2254@gmail.com"
] | wangjian2254@gmail.com |
2f05ffdb5318a803ae57b08a2a6dfa42c899af36 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03644/s583061806.py | 4f4c5fa1513661aa6021ecf76f19f6b4993b52f6 | [] | 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 | 207 | py | N = int(input())
result = []
for i in range(1, N+1):
bin_i = bin(i)
bin_i_c = bin_i.count("0")-1
result.append(bin_i_c)
sorted_result = sorted(result, reverse = True)
print(2 ** sorted_result[0]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3f75c5564960d37842a25e9698020572528ca25f | 3a7359459d10b417540bc62facddcce9fee08323 | /pui.py | 02f28d5ee62cf3b4fad57e7499c37ebf1b1ce120 | [
"MIT"
] | permissive | tuxnani/pywikipedia-scripts | f98bb5155bb6d056aa7d4e67be8cfe715d1bf900 | 40795597e94970395c9f9e4ea9641731e7950a4f | refs/heads/master | 2021-01-17T22:19:10.974908 | 2013-02-02T08:21:40 | 2013-02-02T08:21:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | #!/usr/bin/python
# -*- coding: utf-8 -*
#$ -m ae
"""
Copyright (C) 2008-2012 Legoktm
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights... | [
"legoktm@gmail.com"
] | legoktm@gmail.com |
3d67d667f7c635238b62f637bbb7bca5a7604a8d | dbd8180d9c02c22b42baa5227437714ff352fd8e | /1-100/L250.py | 5488dcdc339fc4b78d91939d00a3f4171395ad11 | [] | no_license | k8godzilla/-Leetcode | 92953dfffc0f06907fa7bd0beea7bc27b16f9efa | 58d5384155f481b1d1b0a7ca69566245dd779554 | refs/heads/master | 2020-06-12T15:35:43.380979 | 2019-08-07T11:14:49 | 2019-08-07T11:14:49 | 194,348,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,115 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Jul 28 17:29:57 2019
@author: sunyin
"""
'''
给定一个二叉树,统计该二叉树数值相同的子树个数。
同值子树是指该子树的所有节点都拥有相同的数值。
示例:
输入: root = [5,1,5,5,5,null,5]
5
/ \
1 5
/ \ \
5 5 5
输出: 4
来源:力扣(LeetCode)
链接:htt... | [
"k8sunyin@126.com"
] | k8sunyin@126.com |
a32a139770dcea6321e2c857c8f1d62509740d59 | dd1b38d6d953fae7ace7b9c5f86821ac24936b1d | /stutorial/items.py | 2376d466616a39f112cdf068f151165ddf3d4b94 | [] | no_license | ranafge/scrapy_project | 81e1345cc793e65061ba8a43afa78ec91c0680a9 | 8b921a64f9e499ac56cb985b6ccaf680258a2b2f | refs/heads/master | 2020-04-11T04:58:28.982076 | 2018-12-12T19:22:12 | 2018-12-12T19:22:12 | 161,533,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class StutorialItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"ranafge@gmail.com"
] | ranafge@gmail.com |
81a10088604bb25b97c23ba1ef2a1604af597a9f | 0c3cd4e933afef9dd15c2983d6b1a8413063ae80 | /alpaca_paper/tests/test_screeners.py | f9d9c8afeb1f5fc0c0b87f8372bca7a71743e206 | [] | no_license | webclinic017/paper_trading_bot | 405ae2cad7fd50b393509a90973d674b5f59ce8c | a172ce2dc150183be4ddb5b218dfcb7006027f69 | refs/heads/master | 2023-07-24T06:31:12.093572 | 2021-07-20T01:32:32 | 2021-07-20T01:32:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | import pytest
from alpaca_paper.screeners import MarketWatch
@pytest.fixture
def mw():
return MarketWatch()
def test_premarket(mw):
pre_market = mw.pre_market()
assert isinstance(pre_market, (dict,))
assert isinstance(pre_market['gainers'], (list,))
assert isinstance(pre_market['loosers'], (list,... | [
"samuelperron@hotmail.fr"
] | samuelperron@hotmail.fr |
566b7fac7c1540a03e7ba419a8e74227534f307e | fb124e51024917d6479fa626d9607ff10f7a3aba | /storm-control/storm_control/hal4000/illumination/button_editor_ui.py | 6340c37f39723a6c6e0a3e99238c3c19bfe496a8 | [
"MIT"
] | permissive | BehnamAbaie/storm-control | 054bd7bbd903ed9635e4d1121c30544f58473c4f | 0c686321142eccad62ce3365eae22c3b69229b0d | refs/heads/main | 2023-06-18T08:04:01.108874 | 2021-07-14T00:51:15 | 2021-07-14T00:51:15 | 342,049,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'button_editor.ui'
#
# Created by: PyQt5 UI code generator 5.7
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
D... | [
"noreply@github.com"
] | BehnamAbaie.noreply@github.com |
07b979d778c19399b58b80724820c6b94da8d9ad | 30f6633a24d799fddd51672c528e4baee649d8cd | /6.01/designLab09/simulator/core/search/__init__.py | a5aa67e832e04dcfdfb63b10e576b88f6c972342 | [] | no_license | Rajpratik71/mit-courses | e12c864435a1af2c8b7034af956fd2f53d559cfc | 86a06a3192e17230a05c5c7beeed5699df73be22 | refs/heads/master | 2023-06-22T21:05:37.240985 | 2023-01-26T06:44:49 | 2023-01-26T06:44:49 | 192,182,074 | 0 | 2 | null | 2023-04-05T04:00:47 | 2019-06-16T11:15:24 | TeX | UTF-8 | Python | false | false | 72 | py | """
core.search
"""
__author__ = 'mikemeko@mit.edu (Michael Mekonnen)'
| [
"wangjohn@mit.edu"
] | wangjohn@mit.edu |
73ce4b0aa5bd1da2a82a5945ab40c2a984e8af2e | f2f26e263da6d3cfe66e78fc326744ac512ff7f9 | /boostedhiggs/htautauprocessor.py | bb52be16b21bb403e7687867bb2a4f342a7a3abf | [] | no_license | drankincms/boostedhiggs | 64b231a18abd49eee82630501df1ae815d58569f | 31d15d7dc165c3eb081793d79a3770973b7abc21 | refs/heads/dev | 2023-06-25T18:04:01.088815 | 2021-10-26T15:36:13 | 2021-10-26T15:36:13 | 227,409,855 | 0 | 4 | null | 2022-04-15T17:41:58 | 2019-12-11T16:22:26 | Python | UTF-8 | Python | false | false | 36,333 | py | from functools import partial
import numpy as np
from coffea import processor, hist
from uproot_methods import TLorentzVectorArray
import awkward
from copy import deepcopy
from .common import (
getBosons,
matchedBosonFlavor,
matchedBosonFlavorLep,
getHTauTauDecayInfo,
isOverlap,
)
from .corrections ... | [
"drankin@bu.edu"
] | drankin@bu.edu |
eab876d87c22914ef3b369338b868419b7af5f42 | cb94a4cdd7a9df17f9c6f1a03f8f4ff12c916cf3 | /Learning_Python_Generators/Exercise_Files/Ch3/03_04/coroutine_decorator.py | a55630fb3f470ad6df497cd864cbf4893c44f0e7 | [] | no_license | sedstan/LinkedIn-Learning-Python-Course | 2b936d0f00703a6e66a872220ed47572123dc7fd | b4584218355bf07aa3d2939b950911eae67adb0b | refs/heads/master | 2021-10-11T10:19:13.675662 | 2019-01-24T17:55:20 | 2019-01-24T17:55:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py |
def coroutine_decorator(func):
def wrap(*args, **kwargs):
cr = func(*args, **kwargs)
cr.next()
return cr
return wrap
@coroutine_decorator
def coroutine_example():
while True:
x = yield
#do something with x
print (x)
| [
"sed@wearewhy.co.uk"
] | sed@wearewhy.co.uk |
f87cd3733e9279862ac119d90af6bf4ea02c10ae | 627cca9406c31ce30c493ff7502f79eb4c57eee3 | /xcha/wallet/lineage_proof.py | ca16b4fed04cad1847319ac28818c391c418eb37 | [
"Apache-2.0"
] | permissive | blockchiansea/xcha-blockchain | 40c6d36813f671e94316a522904238f495f39f6b | 7de0ba89056236e30069aef12fe25843f6093bcf | refs/heads/master | 2023-07-26T02:36:57.654196 | 2021-09-06T06:04:21 | 2021-09-06T06:04:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from dataclasses import dataclass
from typing import Optional
from xcha.types.blockchain_format.sized_bytes import bytes32
from xcha.util.ints import uint64
from xcha.util.streamable import Streamable, streamable
@dataclass(frozen=True)
@streamable
class LineageProof(Streamable):
parent_name: bytes32
inner_p... | [
"xchanet@gmail.com"
] | xchanet@gmail.com |
71dc32b622749cfff8398ad2dde76627857ea6a3 | 17e3234ab01fd93233cc453f1495d50424c3bd8f | /latte/dashboard/doctype/dashboard_data_slice/__init__.py | b3c7ec22aa81e9680d69eb7ddacef402ae0c4349 | [
"MIT"
] | permissive | sunnyakaxd/latte | 8943dbf70ce934e04e51b147a54e6dd02dfe43db | de74065122a1f858bd75f8e1a36fca3b23981f4c | refs/heads/master | 2023-06-11T10:25:31.217047 | 2021-07-06T06:40:19 | 2021-07-06T06:40:19 | 383,363,137 | 0 | 0 | NOASSERTION | 2021-07-06T06:26:49 | 2021-07-06T06:26:49 | null | UTF-8 | Python | false | false | 1,568 | py | import frappe
import jwt
import time
from latte.utils.caching import cache_me_if_you_can
@frappe.whitelist()
def run(slice_name=None, data_source_name=None, filters=None):
return run_cached(slice_name, data_source_name, filters)
# @cache_me_if_you_can(expiry=20)
def run_cached(slice_name=None, data_source_name=No... | [
"himanshu.mishra@elastic.run"
] | himanshu.mishra@elastic.run |
77ee9b20a0817d31a073534a684b32b631dcca13 | e41651d8f9b5d260b800136672c70cb85c3b80ff | /Notification_System/temboo/Library/Google/Gmail/InboxFeed.py | 8764414118792dd2115f21eea4921bec6e6e5563 | [] | no_license | shriswissfed/GPS-tracking-system | 43e667fe3d00aa8e65e86d50a4f776fcb06e8c5c | 1c5e90a483386bd2e5c5f48f7c5b306cd5f17965 | refs/heads/master | 2020-05-23T03:06:46.484473 | 2018-10-03T08:50:00 | 2018-10-03T08:50:00 | 55,578,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,883 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# InboxFeed
# Allows you to access a read-only Gmail feed that contains a list of unread emails.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0... | [
"shriswissfed@gmail.com"
] | shriswissfed@gmail.com |
97d98121e3aad07d0cc73ab82f9883743bfc3be7 | 556db265723b0cc30ad2917442ed6dad92fd9044 | /tensorflow/python/ops/ragged/ragged_print_op_test.py | 2b612d463d0eb70eebb13c4486f0d5d159173771 | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | graphcore/tensorflow | c1669b489be0e045b3ec856b311b3139858de196 | 085b20a4b6287eff8c0b792425d52422ab8cbab3 | refs/heads/r2.6/sdk-release-3.2 | 2023-07-06T06:23:53.857743 | 2023-03-14T13:04:04 | 2023-03-14T13:48:43 | 162,717,602 | 84 | 17 | Apache-2.0 | 2023-03-25T01:13:37 | 2018-12-21T13:30:38 | C++ | UTF-8 | Python | false | false | 7,777 | py | # Copyright 2020 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 |
723eeca76900ebe35f0b732286e7bd9845b4ffac | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/powerbi/v20200601/__init__.py | ce0d971ca28040740542ec1f335f01eed4ab4889 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from ... import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .get_private_endpoint_connection import... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
fe1d3e30f4cdfd8651a3f9176b4620a6452e5d01 | 4a9995871447a406a7e6307a030503700cd41226 | /script/testCase/Y3me项目/人力资源/薪资核算/审批流_定调薪.py | 6a0c29d1fa8b09c17d7ae30c81a1f876d8ab676d | [] | no_license | juntaoh1234/12122003 | 96a107ce22d930e8d9517810736d8f6ce92dc7ad | 4bee39286c3708d7a0df3001e0daa9da51478170 | refs/heads/master | 2020-10-01T18:20:01.572599 | 2019-12-12T12:04:08 | 2019-12-12T12:04:08 | 227,596,967 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,960 | py | # -*-CodeIng:utf-8 -*-
# @time :2019/10/31 20:02
# @author:HuangJunTao
# @email:1341890679@qq.com
# @file:审批流_薪资.py
# @SoftWare:PyCharm
from time import sleep
from SRC.common.decorator import codeException_dec
from SRC.unittest.case import TestCase
from SRC.webdriver.switchTo import SwitchTo
from script.common import ... | [
"1341890679@qq.com"
] | 1341890679@qq.com |
dba9081536b727de5f6fa261fcca19e44c3acbc6 | 5b4312ddc24f29538dce0444b7be81e17191c005 | /autoware.ai/1.12.0/devel/lib/python2.7/dist-packages/vector_map_msgs/msg/_LaneArray.py | 75571a42fa4d6bf0fb1530dd40fb1e960b288b9f | [
"MIT"
] | permissive | muyangren907/autoware | b842f1aeb2bfe7913fb2be002ea4fc426b4e9be2 | 5ae70f0cdaf5fc70b91cd727cf5b5f90bc399d38 | refs/heads/master | 2020-09-22T13:08:14.237380 | 2019-12-03T07:12:49 | 2019-12-03T07:12:49 | 225,167,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | /home/myr907/autoware.ai/devel/.private/vector_map_msgs/lib/python2.7/dist-packages/vector_map_msgs/msg/_LaneArray.py | [
"907097904@qq.com"
] | 907097904@qq.com |
17a92b1f3e8481c39a88bfcce5206a41d042f85e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03003/s061738428.py | e296bd1653a5eb16609ce574bdaa3369516bc4d2 | [] | 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 | 1,199 | py | #ABC130-E Common Subsequence
"""
問題:
整数列のリストが与えられる
空であるものも含めて、sとtの部分列として等しいものの個数を求めよ
解法:
LCSのmaxではなくsumのバージョンでかつ、
数え上げなので重複をなくさなければならない。
具体的には、
dp[i][j]:sをi文字目迄見た時のtをj文字目迄見た時に、
dp0:横方向(j方向)を優先して遷移した後に、縦方向(i方向)への遷移を行った時の合計
dp1:縦方向、横方向への遷移を行った時の合計
として、dp1[-1][-1]が答え。
"""
import sys
readline = sys.stdin.buffer.readline
d... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d6c44a3ffa12b15844a15eec93e1fb8552b1bdaa | c09decad4cb64b151913c25192eaa13348f63833 | /228_middle_of_linked_list.py | a6d7fca7e7cbd173247de187ff3f6bccce225a7d | [] | no_license | YI-DING/Lintcode | ef890e53282b9668064a7306329ecd0599dd114b | 89a4cf703eb7a79bd62b6cc41f87242489692b88 | refs/heads/master | 2020-06-17T12:57:44.184391 | 2019-07-19T16:31:32 | 2019-07-19T16:31:32 | 195,931,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | """
Definition of ListNode
class ListNode(object):
def __init__(self, val, next=None):
self.val = val
self.next = next
"""
class Solution:
"""
@param head: the head of linked list.
@return: a middle node of the linked list
"""
def middleNode(self, head):
if... | [
"yiding1@uchicago.edu"
] | yiding1@uchicago.edu |
500fc4e6c97a72dc6703594efe00e2d77f4fdff6 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/1935.py | 793ff52e55241fc12bc0b977c6c0e8c244a5f7aa | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | from itertools import groupby
import math
"""
I KNOW ITS SLOW BUT I WANTED TO TRY THIS SOLUTION ANYWAY
"""
FREE = False
OCCUPIED = True
def get_stall_value(stalls, stall_index):
left_free_space = right_free_space = 0
tmp_index = stall_index
while True:
tmp_index -= 1
if stalls[tmp_in... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
aa358d4290d3d085e65216cf41db3ad6bfd413da | 3888104cebd79de74f33dda628505b491e32be09 | /lcs4.py | f5845eba44ced2722b53996fef018e3d81623f78 | [] | no_license | babiswas/Dynamic-Programming | 788f7c35aa927228a728da6025657554487285f5 | 957e150577fd5bbccde33cb393c78dcad07860c1 | refs/heads/master | 2022-12-24T05:24:03.282098 | 2020-09-27T14:55:05 | 2020-09-27T14:55:05 | 299,054,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | def lcs(str1,str2,m,n,T):
for i in range(m+1):
for j in range(n+1):
if i==0 or j==0:
T[i][j]=0
for i in range(1,m+1):
for j in range(1,n+1):
if str1[i-1]==str2[j-1]:
T[i][j]=1+T[i-1][j-1]
elif str1[i-1]!=str2[j-1]:
T[i][j]=max... | [
"noreply@github.com"
] | babiswas.noreply@github.com |
67f9eb131a4fe209142b2e9cde4c78e0d5898318 | f0cddf6fb1b58f4e80e169eda4897a3ab864cd48 | /login/app.py | aee1a989b6b7a52299d82633094ed169ca07511c | [] | no_license | skrstv123/LEARNING-FLASK | 8a3134bf2198051601a2ff8f92df8cd2a2ed7b90 | 2d3912fd251b763deb5f7f7468d9a5e79bf7ef4f | refs/heads/master | 2022-12-10T19:06:28.623200 | 2020-01-19T20:08:28 | 2020-01-19T20:08:28 | 229,042,034 | 0 | 0 | null | 2022-12-08T03:27:21 | 2019-12-19T11:38:17 | Python | UTF-8 | Python | false | false | 2,279 | py | from myproject import app,db
from flask import render_template, redirect, request, url_for, flash,abort
from flask_login import login_user,login_required,logout_user
from myproject.models import User
from myproject.forms import LoginForm, RegistrationForm
from werkzeug.security import generate_password_hash, check_pass... | [
"skrstv123@gmail.com"
] | skrstv123@gmail.com |
0ae899d23ae015fa404ce12fddaeb90360443dcc | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_374/ch26_2020_03_23_11_49_24_338094.py | cc35e8b2f881012697174064d14183bc52630ce9 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | val = int(input("Digite o valor da casa "))
sal = int(input("Digite o valor do seu salário"))
ano = int(input("Digite o tempo em anos que pretende pagar "))
calculo = (val/ano)
if calculo <= 0.3*sal:
print("Empréstimo não aprovado")
else:
print("Empréstimo aprovado") | [
"you@example.com"
] | you@example.com |
d194acc581ca1a2dabbfb09e565826189cda4fbc | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/tensorflow 2/python/ops/array_ops.py | 752790e486e2c8177d53c2e0e801774b2ff01fb4 | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | version https://git-lfs.github.com/spec/v1
oid sha256:c3fab6161a6ca581784be67954e7b9c2792e559bfc3a79286f79410909df8ec9
size 225087
| [
"business030301@gmail.com"
] | business030301@gmail.com |
0eec7a8cf3a3e4a155feae3b08a5c930173d74bf | 9452f681ea486fc53ad88d05392aed5fc450805c | /data_language_all/python/python_420.txt | f69fb14b5ec0f087ef9410f16cbb9d2d0193f595 | [] | no_license | CoryCollins/src-class | 11a6df24f4bd150f6db96ad848d7bfcac152a695 | f08a2dd917f740e05864f51ff4b994c368377f97 | refs/heads/master | 2023-08-17T11:53:28.754781 | 2021-09-27T21:13:23 | 2021-09-27T21:13:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | txt | #!/usr/bin/env python
__all__ = ['baomihua_download', 'baomihua_download_by_id']
from ..common import *
import urllib
def baomihua_download_by_id(id, title=None, output_dir='.', merge=True, info_only=False, **kwargs):
html = get_html('http://play.baomihua.com/getvideourl.aspx?flvid=%s&devicetype=phone_... | [
"znsoft@163.com"
] | znsoft@163.com |
2db97a28852186e87dec880bb875aaf5529e8812 | 500bca3e22bd0c30c79b74918e9847742b3c428e | /sdk/python/jobs/pipelines/1j_pipeline_with_pipeline_component/nyc_taxi_data_regression_with_pipeline_component/train_pipeline/predict_src/predict.py | fde23606901aec040fa25345734e835f96c02c9f | [
"MIT"
] | permissive | Azure/azureml-examples | 2304c862fd2e36e6640ecc4d09f69c5ed93b48ab | e5f7b247d4753f115a8f7da30cbe25294f71f9d7 | refs/heads/main | 2023-08-31T00:10:14.107509 | 2023-08-30T17:29:22 | 2023-08-30T17:29:22 | 289,334,021 | 1,219 | 1,074 | MIT | 2023-09-14T16:00:55 | 2020-08-21T18:04:26 | Jupyter Notebook | UTF-8 | Python | false | false | 2,022 | py | import argparse
import pandas as pd
import os
from pathlib import Path
from sklearn.linear_model import LinearRegression
import mlflow
mlflow.sklearn.autolog()
parser = argparse.ArgumentParser("predict")
parser.add_argument("--model_input", type=str, help="Path of input model")
parser.add_argument("--test_data", typ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
a6b07925ad745b8be7937bfeb0c1c2786ded3dab | e87d793b3a5facc6e54e0263fbd67703e1fbb382 | /duckietown-world-venv/lib/python3.6/site-packages/compmake/utils/system_stats.py | b91659969d09931f398a5f0c7b510618abb69b60 | [] | no_license | llingg/behaviour-benchmarking | a860bbe709309e13f3e1133d916944882199a40f | 85bbf1a9c2c628ba74480fe7abac3804d6afdac4 | refs/heads/v1 | 2022-10-06T08:21:29.068329 | 2020-06-11T07:02:46 | 2020-06-11T07:02:46 | 259,622,704 | 0 | 0 | null | 2020-06-02T17:52:46 | 2020-04-28T11:52:08 | C++ | UTF-8 | Python | false | false | 3,677 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import time
__all__ = [
'AvgSystemStats',
]
try:
import psutil # @UnusedImport
except ImportError:
from compmake import logger
logger.warning('Package "psutil" not found; load balancing '
'and system stats (CPU, MEM) ... | [
"linggl@student.ethz.ch"
] | linggl@student.ethz.ch |
02d1bcf15ae7ebbed8bbbdb8e3525273dfec8001 | 71acb7214efd91c0d327f6d8958e1798eadb4401 | /locations/spiders/mediamarkt_be.py | 237c2ef3f09038fd1a8b6bec4254303932a2be83 | [
"CC0-1.0",
"MIT"
] | permissive | alltheplaces/alltheplaces | 21b9f8b4ace1352e52ae7b8f8825a930d2cb033e | 1bcbb55cfcf06f2c714465570711f6e83f205c22 | refs/heads/master | 2023-08-30T19:45:35.098658 | 2023-08-30T17:51:54 | 2023-08-30T17:51:54 | 61,166,935 | 453 | 176 | NOASSERTION | 2023-09-14T17:16:40 | 2016-06-15T01:09:18 | Python | UTF-8 | Python | false | false | 1,477 | py | import re
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from locations.hours import DAYS_FR, OpeningHours
from locations.structured_data_spider import StructuredDataSpider
class MediaMarktBESpider(CrawlSpider, StructuredDataSpider):
name = "media_markt_be"
item... | [
"noreply@github.com"
] | alltheplaces.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.