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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
47380c9f5892c22838e3bb8dbdc8486d35f70108 | 159aed4755e47623d0aa7b652e178296be5c9604 | /data/scripts/templates/object/draft_schematic/bio_engineer/bio_component/shared_bio_component_clothing_field_bleeding_2.py | 8db5283e9156c25af899d98e480525a838f22dd1 | [
"MIT"
] | permissive | anhstudios/swganh | fb67d42776864b1371e95f769f6864d0784061a3 | 41c519f6cdef5a1c68b369e760781652ece7fec9 | refs/heads/develop | 2020-12-24T16:15:31.813207 | 2016-03-08T03:54:32 | 2016-03-08T03:54:32 | 1,380,891 | 33 | 44 | null | 2016-03-08T03:54:32 | 2011-02-18T02:32:45 | Python | UTF-8 | Python | false | false | 495 | py | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Intangible()
result.template = "object/draft_schematic/bio_engineer/bio_component/shared_bio_component_clothing_fi... | [
"rwl3564@rit.edu"
] | rwl3564@rit.edu |
9f2629f97dabe950e189e54af6db96d2b9667e67 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02999/s032476024.py | f199850a486862ae328040756de3a74c05ea981f | [] | 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 | 36 | py | s=input();print("100"[s[0]<s[2]::2]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6b787a056f8d8ee5a43f696283be304531d26411 | eb66f122da246af7e5f342c5a3be3a02d0957d04 | /python_code/Inca2000/operations.py | 5b5912ce8d8e8ac55fe0d2f903e8f344d69e259b | [
"WTFPL"
] | permissive | zhchwolf/pylearn | 00838be6f5f68176ba3d0131f223839469a16a55 | 5dc2d39a90dd064ac88669d4535ad08b082bf04f | refs/heads/master | 2022-08-27T03:25:10.854780 | 2019-09-27T09:38:47 | 2019-09-27T09:38:47 | 157,136,924 | 0 | 1 | null | 2022-08-06T05:22:44 | 2018-11-12T00:56:12 | Python | UTF-8 | Python | false | false | 974 | py | from random import *
import pygame
# Layers for entities. Barebones render-sorting.
layers = []
for i in range(10):
layers.append([])
# List of random numbers.
r = []
for i in range(16):
r.append(0)
# Scramble all random numbers.
def calcRands():
global r
for i in range(16):
r[i] = randint(0, 255)
# Change col... | [
"zhchwolf@sina.com"
] | zhchwolf@sina.com |
1556a62bc11e52572d0ee6a968c3bdf2961c9ec2 | 9b527131c291b735a163226d1daac2397c25b712 | /Lecture3/print_binary.py | 01199376a4e5639a59d94e11b3c5507cec1e6287 | [] | no_license | arnabs542/BigO-Coding-material | dbc8895ec6370933069b2e40e0610d4b05dddcf2 | 3b31bddb1240a407aa22f8eec78956d06b42efbc | refs/heads/master | 2022-03-19T18:32:53.667852 | 2019-11-27T23:55:04 | 2019-11-27T23:55:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py |
def printBinary(n, prefix=""):
"""
print all the binary with n digits
"""
print('printBinary(n = {} prefix = {})'.format(n, prefix))
if n == 0:
print(prefix)
else:
printBinary(n-1, prefix + "0")
printBinary(n-1, prefix + "1")
printBinary(3)
| [
"tranhoangkhuongvn@gmail.com"
] | tranhoangkhuongvn@gmail.com |
26bf8206c7ef9bf0de5c1860e320e07bd7db7b75 | cd8021ffbd42e38b2844b539a8524ea9c6c348b8 | /week9/day2_election.py | 2f8b96aed945a1d76e01085bc3df7af143b6dad9 | [] | no_license | cjredmond/class_notes | 5ea15cdaaa9a41a518f29e810a755fd19d821491 | 5884ed3f90be9013d6f2bd137df882957297f67f | refs/heads/master | 2020-04-16T01:41:24.100784 | 2016-11-09T16:57:57 | 2016-11-09T16:57:57 | 68,213,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | import requests
import time
from data_miner import DataMiner
from messenger import Messenger
messenger = Messenger()
dm = DataMiner()
while True:
if dm.is_new_data:
base_sms = dm.message
print(base_sms)
messenger.send(base_sms)
time.sleep(600)
| [
"connor.redmond@gmail.com"
] | connor.redmond@gmail.com |
58a6b1cc1f5a5af676e488fc6c46894ffa4cb9df | 0a567d3417fbdf68fdbd1bf4ef9778518e898678 | /runOracleAPI.py | 79b7c39ed320dcecf015ac62b96c1483ee194c61 | [] | no_license | maxberggren/sinus | 1d8890009f1eb28d49688883836d0ec2822163ad | 5f85858c0f48927486a3f96d8251ffedbfc3e553 | refs/heads/master | 2020-05-16T11:32:42.516246 | 2016-02-16T09:59:36 | 2016-02-16T09:59:36 | 24,930,665 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#import matplotlib
#matplotlib.use('Agg')
from oracleAPI import app
app.debug = True
app.run(host='0.0.0.0', port=5011) | [
"maxberggren@gmail.com"
] | maxberggren@gmail.com |
725b1f5c3c36b80b6b6b403560ee6e1641ec08a4 | c97cac88118ebd0814dec123e164dc74fef5773e | /omero_python_libs/omero_api_JobHandle_ice.py | 3081ec5f2008fd120f934d495bc3745c87c82764 | [
"Apache-2.0"
] | permissive | nseyedtalebi/django-uwsgi-nginx | 285a7ed2c66b0ca2f25dd4fc79018f8deac1472d | 3163e9c7a88ed1298312d6a69a0d9eaf2f007e97 | refs/heads/master | 2020-07-08T22:01:42.082634 | 2019-08-22T16:37:18 | 2019-08-22T16:37:18 | 203,791,310 | 0 | 0 | null | 2019-08-22T12:33:28 | 2019-08-22T12:33:28 | null | UTF-8 | Python | false | false | 26,241 | py | # -*- coding: utf-8 -*-
# **********************************************************************
#
# Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# ***********************************... | [
"nima.seyedtalebi@uky.edu"
] | nima.seyedtalebi@uky.edu |
ed9a0b4dbf4249b3fdd67319419d388482f0d63c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02258/s141979860.py | 95ea4162163725d0f178d02cb53e3b815991f0d0 | [] | 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 | 190 | py | import sys
s_max = -float('inf')
s = 0
n = int(input())
r = list(map(int, sys.stdin.read().split()))
for i in range(1, n):
s = max(s, 0) + r[i] - r[i-1]
s_max = max(s, s_max)
print(s_max)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7d8b0631467dc37c2a939adf87e32e05ad077f41 | 0298d082bd92e8c56bdf8a1698d233302feca387 | /scripts/azurerm_shared_image.py | 79a36371d335356a1a7be7429bea0ed57dcb5385 | [
"MIT"
] | permissive | reyrahadian/py-az2tf | 500372021e82dd9353c926d96d4fe5b5ab5846bd | 735527e2017291ef396874573f18c3e71162efe3 | refs/heads/master | 2020-07-03T22:50:19.820155 | 2019-09-02T06:18:22 | 2019-09-02T06:18:22 | 202,077,610 | 0 | 0 | null | 2019-08-13T06:18:29 | 2019-08-13T06:18:27 | null | UTF-8 | Python | false | false | 3,988 | py | # azurerm_snapshot
def azurerm_shared_image(crf,cde,crg,headers,requests,sub,json,az2tfmess):
tfp="azurerm_shared_image"
tcode="342-"
azr=""
#cde=True
if crf in tfp:
# REST or cli
# print "REST snapshot"
url="https://management.azure.com/subscriptions/" + sub + "/providers/Micros... | [
"andyt530@outlook.com"
] | andyt530@outlook.com |
a303bbfdbb9c8a3abe298c24dbdf240be898bbf6 | 7949f96ee7feeaa163608dbd256b0b76d1b89258 | /direct/showbase/ObjectReport.py | df5d2a0eddfe952e1f8f688d2ece1762f288e70d | [] | no_license | xxdecryptionxx/ToontownOnline | 414619744b4c40588f9a86c8e01cb951ffe53e2d | e6c20e6ce56f2320217f2ddde8f632a63848bd6b | refs/heads/master | 2021-01-11T03:08:59.934044 | 2018-07-27T01:26:21 | 2018-07-27T01:26:21 | 71,086,644 | 8 | 10 | null | 2018-06-01T00:13:34 | 2016-10-17T00:39:41 | Python | UTF-8 | Python | false | false | 5,015 | py | # File: d (Python 2.4)
__all__ = [
'ExclusiveObjectPool',
'ObjectReport']
from direct.directnotify.DirectNotifyGlobal import directNotify
from direct.showbase import DirectObject, ObjectPool, GarbageReport
from direct.showbase.PythonUtil import makeList, Sync
import gc
import sys
import __builtin__
class Excl... | [
"fr1tzanatore@aol.com"
] | fr1tzanatore@aol.com |
8e0eeac9766e352d2591b6f7602f1a0f4777e51d | 64ee2a144acbaf7565560aa51ba6dd7eb4f6b8b8 | /廖雪峰网页学习/009_迭代工具.py | d3785656e4eed6739a3c112d424690f9692a7f5d | [] | no_license | HimriZngz/Code | c61c5ecd9b18157089b49089f22bb7d335a6f4f5 | a7eb93ddcde88075bb2217fc285c19ca349af8d7 | refs/heads/master | 2020-09-14T01:32:19.819942 | 2020-03-24T06:16:49 | 2020-03-24T06:16:49 | 222,969,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | import itertools
# num1 = itertools.count(1)
# con1 = itertools.takewhile(lambda x: x <= 20, num1)
# print(list(con1))
# 打印结果 : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
# for chain1 in itertools.chain('abc', 'ABC'):
# print(chain1)
# for key, group in itertools.groupby('AABBCCaacc... | [
"yingqi1561@qq.com"
] | yingqi1561@qq.com |
865ad6e7bab279137f3e0be24cebee73518d904c | c25a3deda78914c41e36e236f0378928d5d73631 | /testlib/test_debug.py | eb85b0da89e78f740d0d5a697ad4ea189e922b0d | [
"MIT"
] | permissive | mniyas/gramex | 542718f3bb17b1f6f01f66c4e9a9c2fc67568b84 | b1d21067cb3939e8be63542336bc716038f37815 | refs/heads/master | 2023-01-29T05:02:40.813373 | 2020-11-25T04:09:08 | 2020-11-25T04:09:08 | 260,702,762 | 0 | 0 | NOASSERTION | 2020-05-24T14:36:28 | 2020-05-02T14:19:59 | null | UTF-8 | Python | false | false | 2,679 | py | import os
import six
import inspect
import unittest
from io import StringIO
import gramex.debug
from gramex.debug import timer, Timer
from testfixtures import LogCapture
from nose.tools import eq_, ok_
testfile = __file__.replace('.pyc', '.py')
def line_no():
'''Returns current line number in file where it is ca... | [
"root.node@gmail.com"
] | root.node@gmail.com |
713e138af752f82e20c2dee6c884f6c7dd8fc2b2 | 4806d5b15b45e30be16c857faaacaa278eba09d3 | /task/split/searchlist/gsxt_searchlist_zhejiang_worker.py | f4b63345f0b8ca9185020fa6bde05665be1ab297 | [] | no_license | osenlin/gsxt_spider | 9ebc90b778ca1fe31f3339ddeccdac66808a1d96 | 6e75fe9802620284e8c19c6f23a9a90911b39016 | refs/heads/master | 2020-03-20T01:10:50.348913 | 2018-06-12T12:34:53 | 2018-06-12T12:34:53 | 137,068,844 | 5 | 9 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from task.search.cracker.gsxt_zhejiang_worker import GsxtZheJiangWorker
class GsxtSearchListZheJiangWorker(GsxtZheJiangWorker):
def __init__(self, **kwargs):
GsxtZheJiangWorker.__init__(self, **kwargs)
def get_detail_html_list(self, seed, session, param_l... | [
"694982665@qq.com"
] | 694982665@qq.com |
adbcad601dca449cc0a6ff21671d553a3f7528d2 | fcbe01e8cdcc57cb6f9279f74ed547bc82c456bc | /batse5bp/drm.py | 55fe356c8797471e1a364ec6ddbf241efdcc80b4 | [
"BSD-2-Clause"
] | permissive | tloredo/batse5bp | 8e04a40a1d27d5988d2b85f2366cd3cf14ee4bba | c039a8e5394da4764881cdee1e17c6b1c0ecc088 | refs/heads/master | 2021-03-12T23:12:25.337899 | 2017-10-30T23:19:05 | 2017-10-30T23:19:05 | 7,391,291 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,000 | py | """
Provide access to DRM data stored in FITS files at COSSC.
Documentation of the compressed DRM format from the DRM FITS header
(for 1-based array indexing):
The detector response matrix is stored in a compressed format:
Elements are listed in order of row by column (n_e_bin by n_e_chan), with
all elements... | [
"loredo@astro.cornell.edu"
] | loredo@astro.cornell.edu |
8d18acb130c99fd137d6201e095a1263b6120076 | 3c585b51d5aad9aeb67f20fce6443f84ef27d883 | /second_app_23014/settings.py | f1593197a43d252f17a836c19f4ae1b630a639d1 | [] | no_license | crowdbotics-apps/second-app-23014 | 2f0ee3072a40775b3a4128c91698a17de59dc855 | c40d7f25856fa3419efe09fbf0e7d1b8ff3a1592 | refs/heads/master | 2023-01-29T01:56:21.459374 | 2020-12-07T19:10:53 | 2020-12-07T19:10:53 | 316,477,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,789 | py | """
Django settings for second_app_23014 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b573cb3b93532a632b3b62a0d3b2c2160bbf80ed | 9888b66468aad7155a2a84079239e88ddb50d507 | /jactorch/train/env.py | 1f230442e8eeacc708da59ffa44749e893ca5a8b | [
"MIT"
] | permissive | Qcactus/Jacinle | d5c9de235d17fd6da461a1199f901fb3019e0e99 | 5133b8dfad9d11dde92ec772c315ee55c53cb8b9 | refs/heads/master | 2021-01-02T03:55:15.858429 | 2020-02-07T04:34:48 | 2020-02-07T04:34:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,651 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# File : env.py
# Author : Jiayuan Mao
# Email : maojiayuan@gmail.com
# Date : 05/09/2018
#
# This file is part of Jacinle.
# Distributed under terms of the MIT license.
import os.path as osp
import time
import torch
import torch.nn as nn
from jacinle.event.regist... | [
"maojiayuan@gmail.com"
] | maojiayuan@gmail.com |
8210706029aeb493d55c265d9f989856f236ba14 | f1c0659c437445349e74c1f52080b275997526a2 | /openie/run.py | 0ac305c7b9c68538eb10553c34ae67c7be638c19 | [
"Apache-2.0"
] | permissive | hthuwal/ARC-Challenge | dbf9db322b9ac399000df1b4e579254b0b3c5915 | 6b1b2899a4d6e5ea58c7fce0f32d382dbdbfa748 | refs/heads/master | 2022-03-06T22:10:06.864034 | 2022-03-04T16:11:04 | 2022-03-04T16:11:04 | 142,573,683 | 1 | 0 | Apache-2.0 | 2022-03-04T16:11:05 | 2018-07-27T12:20:51 | Python | UTF-8 | Python | false | false | 6,153 | py | from graph import Graph
from gsa import GSA
from operator import itemgetter
from tqdm import tqdm
import click
import json
import os
import time
import dill as pickle
import utils
def get_corpus_graph(corpus_triplets_file, stem):
"""
Create Corpus Graph given its openie triplets
in the stanford openIE fo... | [
"hthuwal@gmail.com"
] | hthuwal@gmail.com |
000d0b2d01963b9cb692fe75187f64cdeb19d1bc | 621158c15629243f3525b45351a2c886e9a0ca33 | /panda/find_duplicates.py | 7c06e05f8cfc8f7daac0edef80ca2e6ddf438162 | [] | no_license | lopuhin/kaggle-panda-2020 | 65a4e8bba5ec481db811bb46764c1d97d7b695f4 | e6d46b707de0e098660e3aa51f91450938fbf24a | refs/heads/master | 2022-07-29T13:29:44.657151 | 2020-06-18T18:27:41 | 2020-06-18T18:27:41 | 258,861,726 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,771 | py | from multiprocessing.pool import ThreadPool
from pathlib import Path
import cv2
import pandas as pd
import turbojpeg
import tqdm
def main():
def id_by_path(path):
return path.name.split('_')[0]
paths = list(sorted(Path('data/train_images/').glob('*_2.jpeg')))
path_by_id = {id_by_path(p):... | [
"kostia.lopuhin@gmail.com"
] | kostia.lopuhin@gmail.com |
7c5f53a0a8337bc17d1df48962a7a817a1bc26e4 | 52bb00d5e9dd936fb11aff2adb8c6d0f94849dc8 | /CircularLinkedList/SwapFirstLastNode.py | 58e8d54a1ffbca3cd012a74515ce8493c03abbd9 | [] | no_license | anildhaker/DataStructures | 1c7815d2bb1dc9d8ebd51e1ec868df8260557519 | e333fa5b95ecfc08a036bbeadfc4244f64361d7d | refs/heads/master | 2020-04-24T14:07:44.240689 | 2019-11-24T21:21:03 | 2019-11-24T21:21:03 | 172,009,569 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | class Node:
def __init__(self, data):
self.data = data
self.next = None
class CircularLinkedList:
def __init__(self):
self.head = None
#insert Node at beginning
def push(self, data):
new_node = Node(data)
temp = self.head
new_no... | [
"anildhaker777@gmail.com"
] | anildhaker777@gmail.com |
7637316429809dcb28e9248accf308ba1c63ac8e | 3ced55b04ec82df5257f0e3b500fba89ddf73a8a | /src/stk/molecular/reactions/reactions/reaction/reaction_result.py | 0042008986814cbfe53fa69c63a2e9614251b0cf | [
"MIT"
] | permissive | rdguerrerom/stk | 317282d22f5c4c99a1a8452023c490fd2f711357 | 1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a | refs/heads/master | 2023-08-23T21:04:46.854062 | 2021-10-16T14:01:38 | 2021-10-16T14:01:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py | """
Reaction Result
===============
"""
from ....atom import Atom
from ....bond import Bond
from .new_atom import NewAtom
__all__ = (
'ReactionResult',
)
class ReactionResult:
"""
The result of a reaction.
"""
__slots__ = [
'_new_atoms',
'_new_bonds',
'_deleted_atoms'... | [
"noreply@github.com"
] | rdguerrerom.noreply@github.com |
d070f56afab6c652fcd408fac50b23bb9a301706 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/network/v20200401/get_packet_capture.py | cfd94396284ccf340cff44afde608ab5a4aa7aae | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 7,304 | 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! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
6bb7030310d37dc101db36d1e46d65341bc7b147 | 8ebf1eef75f159af06709f6eaf39c96520cdbe8d | /python3/56-merge_intervals.py | db2f02260220c849e5824b8b8a78a5d9908dea38 | [] | no_license | ethanlow23/leetcode_algorithms | d4ccaf3553717e319942767db86adf74752e349e | 3d4b0fef3e397cd8c6cafded5dd11250313574d9 | refs/heads/master | 2021-08-04T19:05:17.294842 | 2021-02-26T18:00:31 | 2021-02-26T18:00:31 | 243,878,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | # 56. Merge Intervals
def merge(intervals):
ans = []
intervals.sort()
for interval in intervals:
if not ans or ans[-1][1] < interval[0]:
ans.append(interval)
else:
ans[-1][1] = max(ans[-1][1], interval[1])
return ans
| [
"ethanlow223@yahoo.com"
] | ethanlow223@yahoo.com |
f92bb956b156f2dde0cb383c50f7bf2a7fb7ec9d | b1fe732c6abb51d44bd965cbbf259bb2d93e4514 | /Day3/filter.py | 3dd1cce1e3863585d6fecc54e9985713871715c4 | [] | no_license | RahulSinghDhek/GettingStartedWithPython | 04c85c2c370e7ea93b16dade44e5eea633ec284c | c655e3376707b8e4e14ed352a8bc07b010c31e12 | refs/heads/master | 2020-05-07T17:15:38.120491 | 2019-04-11T05:39:12 | 2019-04-11T05:39:12 | 180,721,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | __author__ = 'rdhek'
l = range(1,50)
print filter(lambda n: n%7 == 0,l)
def sumit(a,b):
print "[{},{},{}]".format(a,b)
return a +b
l = range(1,11)
print reduce(sumit,l) | [
"rdhek@qti.qualcomm.com"
] | rdhek@qti.qualcomm.com |
83b1425d9851f24f7e01ec607dedda6715515097 | 7260b34cbf408967057e1ede30e03f3a78353cac | /web/pgadmin/tools/schema_diff/directory_compare.py | 23d19532909b30beadb2447fdb98e105207978e5 | [
"PostgreSQL"
] | permissive | bfzx/pgadmin4 | a6cd7835179d2c2148d299aec59b80597dd06226 | 077589e08ba6a772710a5f8372446868aece86e1 | refs/heads/master | 2022-04-12T20:09:52.029363 | 2020-04-10T12:04:57 | 2020-04-10T12:04:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,494 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2020, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
"""Directory comp... | [
"akshay.joshi@enterprisedb.com"
] | akshay.joshi@enterprisedb.com |
b87d6d854c82400ce6fec858c4f90fda0d921382 | b00873d36e44128ce30623da0ee3b556e4e3d7e7 | /solutions/solution122.py | 78afb0fde6e53f633c47905f4fe4e384a983a7fd | [
"MIT"
] | permissive | Satily/leetcode_python_solution | b4aadfd1998877b5086b5423c670750bb422b2c8 | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | refs/heads/master | 2021-07-18T07:53:10.387182 | 2021-07-17T06:30:09 | 2021-07-17T06:30:09 | 155,074,789 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | class Solution:
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
if len(prices) == 0:
return 0
result = 0
left = prices[0]
for index in range(1, len(prices)):
if prices[index] < prices[index - 1]:
... | [
"houjiaxu@xiaomi.com"
] | houjiaxu@xiaomi.com |
df40a5465d5714bd99e3e8f4dcbb7aa5eeb315fa | e65a448da4f82d6e7c95cfadc5e8dfd06ed05c62 | /cinder/cinder/exception.py | 6c9273af29890dc3fdb772c984a311ee1b2ffdf1 | [
"Apache-2.0"
] | permissive | bopopescu/devstack | 7a9d11bcc37884f3686e7178ebc25c178a6da283 | 6b73b164af7e5895501f1ca5dafebbba90510846 | refs/heads/master | 2022-11-19T19:58:43.536574 | 2015-01-29T09:00:59 | 2015-01-29T09:00:59 | 282,101,378 | 0 | 0 | null | 2020-07-24T02:17:48 | 2020-07-24T02:17:47 | null | UTF-8 | Python | false | false | 25,869 | py | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# 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 ... | [
"swethapts@gmail.com"
] | swethapts@gmail.com |
e2740e23d6f5884893e29eea1620673aff306a64 | dd1676c374470743e1eaac4ad179633224644c04 | /backend/home/migrations/0001_load_initial_data.py | 7d588a5527bcc08ef60c57df8157f093190d2c36 | [] | no_license | crowdbotics-apps/newapp-28748 | 76a0a5100234eaf3b0f85be5d53aa1d1d84388db | 8c1ad59d491b9cda7fd7e5bca58585e870b80bbe | refs/heads/master | 2023-06-19T09:11:12.681524 | 2021-07-12T10:38:54 | 2021-07-12T10:38:54 | 385,208,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "newapp-28748.botics.co"
site_params = {
"name": "NewApp",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update_or_create(def... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
dee84cca5e663c6d43bf1b75338315a1dfd427ca | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_thrown.py | d9528e76d367dd223a66a940af890691155354c5 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#calss header
class _THROWN():
def __init__(self,):
self.name = "THROWN"
self.definitions = throw
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['throw']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ca9464b5384483823957c25c377a934cafa21165 | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-framework-CoreSpotlight/PyObjCTest/test_cssearchableitemattributeset.py | 18fcee6c1869973772d772ac35a51d89635dd40d | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | from PyObjCTools.TestSupport import *
import sys
if sys.maxsize > 2 ** 32:
import CoreSpotlight
class TestCSSearchableItemAttributeSet(TestCase):
def testMethods(self):
self.assertArgIsBOOL(
CoreSpotlight.CSCustomAttributeKey.initWithKeyName_searchable_searchableByDefault_... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
5ea6ded9687b81316844896028a4772699571f0d | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/legacy_test/find_ports.py | 66a3c465c786df2e08c65631b7ff94f6850592fd | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 1,321 | py | # Copyright (c) 2019 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
1c3fea4b9d349757f1a8850a6794dafea6a22777 | 0e2ebe5d9564dee2fd3207fe5e998083b79b6a32 | /binary_search.py | fb795292994194f5dc1a88fd6b04b2eaf168da15 | [] | no_license | ksnt/Sorting_Algorithms_C_and_Python | 981bdfc3aa74ce35cd5bc7ff3d3e9e7e520b0af2 | cf02e91f8a7c3219a50d5addeb0ef157e24fca55 | refs/heads/master | 2021-04-29T13:33:47.786841 | 2018-05-17T21:23:35 | 2018-05-17T21:23:35 | 121,753,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | # Binary Search
# ksnt
# Example
# (1)
# $ python binary_search.py
# Enter an integer you want to look for:
# 10
# Enter the numbers in a list: 100 99 88 10 34
# Found!
# (2)
# $ python binary_search.py
# Enter an integer you want to look for:
# 10
# Enter the numbers in a list: 1 2 9 100 99 99 22
# Not Found
def b... | [
"ksn0215@gmail.com"
] | ksn0215@gmail.com |
446960c4f31207377fd42ffa6b13dee221035364 | 9fbbb9783c4c131eb6d55fadb7c0c4d82f10df7c | /exchangelib/account.py | a65a86d3b89ddd58c7b41988490034a0c4048420 | [
"BSD-2-Clause"
] | permissive | vernichon/exchangelib | 006f6bfc24e1cee181e1f6a6861d75acf1571273 | dd7264065310720ce74faad5845657e6429d4f81 | refs/heads/master | 2021-01-10T23:20:48.625771 | 2016-09-21T22:44:48 | 2016-09-21T22:44:48 | 70,594,982 | 0 | 0 | null | 2016-10-11T13:15:51 | 2016-10-11T13:15:51 | null | UTF-8 | Python | false | false | 8,279 | py | from logging import getLogger
from .autodiscover import discover
from .credentials import DELEGATE, IMPERSONATION
from .errors import ErrorFolderNotFound, ErrorAccessDenied
from .folders import Root, Calendar, DeletedItems, Drafts, Inbox, Outbox, SentItems, JunkEmail, Tasks, Contacts, \
RecoverableItemsRoot, Recov... | [
"erik@cederstrand.dk"
] | erik@cederstrand.dk |
0f0c6e5b4fe88d355c0c7209030a77c49c06096b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_merchandises.py | c189f1a14c3f75d6d9743a90666c97299246df60 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py |
from xai.brain.wordbase.verbs._merchandise import _MERCHANDISE
#calss header
class _MERCHANDISES(_MERCHANDISE, ):
def __init__(self,):
_MERCHANDISE.__init__(self)
self.name = "MERCHANDISES"
self.specie = 'verbs'
self.basic = "merchandise"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c45d58f4cef64efb0e5de150b4f14c0ce8b64d08 | b2264a5c756be06459949f5fea2e901a96dd215f | /tutorial/examples/table/simple.py | 8608328bd6496d8f31897e420ac27a6ecebf7aa0 | [
"MIT"
] | permissive | yiyisf/dash-docs | c6f7d9dce7081550491c6df518af966626ea263f | 45108cd302bdee3f76bdbf61b3e234d9bee0027d | refs/heads/master | 2020-04-23T22:02:11.517321 | 2019-02-18T15:57:17 | 2019-02-18T16:07:45 | 171,488,096 | 1 | 0 | MIT | 2019-02-19T14:27:23 | 2019-02-19T14:27:23 | null | UTF-8 | Python | false | false | 363 | py | import dash
import dash_table
import pandas as pd
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/solar.csv')
app = dash.Dash(__name__)
app.layout = dash_table.DataTable(
id='table',
columns=[{"name": i, "id": i} for i in df.columns],
data=df.to_dict("rows"),
)
if __name__ == ... | [
"chris@plot.ly"
] | chris@plot.ly |
6ef718e2e9ed198496b5f7fa2ac88b6765c39a29 | bb99cf88152edea3bf6d190bf8f8b7947a97f5b4 | /truffe2/logistics/migrations/0005_auto__add_supplylogging__add_supplyreservationlogging__add_supply__add.py | e7a11a803905efa567cfd65b07464347a43e3d77 | [
"BSD-2-Clause"
] | permissive | ArcaniteSolutions/truffe2 | ec8c9a621ea4330b0076a7f1db2b319b262926ce | 5406842eb9719d7fdae7137ebd1918f2de61459c | refs/heads/master | 2021-06-13T12:03:23.271274 | 2020-10-05T09:08:31 | 2020-10-05T09:08:31 | 40,756,384 | 10 | 13 | BSD-2-Clause | 2020-11-25T07:58:58 | 2015-08-15T11:34:38 | Python | UTF-8 | Python | false | false | 18,516 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'SupplyLogging'
db.create_table(u'logistics_supplylogging'... | [
"maximilien@theglu.org"
] | maximilien@theglu.org |
79bca7297042ffea5915efe0adb675d42bff0a07 | 853de87a319f62a877064e4f5465b54af87402cc | /mango/apps/proposal/forms.py | cdd9b9c2061396b730255627d497f6109cbf1e1e | [
"ISC"
] | permissive | bituka/django-mango | 5d3df825eee4262da1c1e1d8cb6115fea7023cc3 | 259657df86cb92672759131ce7eff2374d297c9a | refs/heads/master | 2020-12-25T12:18:00.966338 | 2012-07-12T22:00:47 | 2012-07-12T22:00:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | from django import forms
from proposal.models import Proposal
from proposal.fields import TimeDurationField
class ProposalForm(forms.ModelForm):
duration = TimeDurationField(required=False)
class Meta:
model = Proposal
exclude = ('speaker', 'slug', 'status',)
def clean(self):
da... | [
"caketoad@gmail.com"
] | caketoad@gmail.com |
fe095a80fb9a46f9f7ec94e8b67506b21a3ae196 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02584/s920598446.py | 19f0c3e74320ae2f19203cb73cfd1104e793f365 | [] | 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 | 175 | py | X,K,D=list(map(int,input().split()))
if X<0:
X=-X
if X-K*D>=0:
print(X-K*D)
else:
N=X//D
if (K-N)%2==0:
print(X-N*D)
else:
print((N+1)*D-X) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2e37b0fcfc6ddd936ac04cefa6b604f24496dc86 | 845295bf8219b337f74529aa71878cf7b299d877 | /analysis/analyses/num_chance.py | 14ef57b9820fc404d4ed8457c0609d23f96f436e | [] | no_license | berkeley-cocosci/mass-inference | fdf1d72a085d3cee18d7c8e8da2a96e7606e81dd | f880d218367d942a4d5cc6d4a1cfba45db57fc8e | refs/heads/master | 2021-01-19T08:12:20.483546 | 2017-06-07T18:00:11 | 2017-06-07T18:00:11 | 10,046,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | #!/usr/bin/env python
"""
Computes the number of stimuli for which people were not significantly above
chance in judging which mass was heavier. Produces a csv file with the following
columns:
version (string)
the experiment version
kappa0 (float)
the true log mass ratio
stimulus (string)
... | [
"jhamrick@berkeley.edu"
] | jhamrick@berkeley.edu |
9b8eace2ee7efb160ee862f8f0decd6e77eb7306 | 70cdf0741a22c678401a306229003bf036ffe5a6 | /ocbind/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/extended_is_reachability/neighbors/neighbor/instances/instance/subtlvs/subtlv/ipv4_interface_address/state/__init__.py | 0b9f6ed9842b7af5264f3c2ebdf17f7815a36cfa | [] | no_license | zsblevins/nanog81-hackathon | 5001e034339d6b0c6452ae2474f06916bcd715cf | 1b64fd207dd69837f947094fbd6d6c1cea3a1070 | refs/heads/main | 2023-03-03T09:39:28.460000 | 2021-02-15T13:41:38 | 2021-02-15T13:41:38 | 336,698,856 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,218 | py | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | [
"zblevins@netflix.com"
] | zblevins@netflix.com |
9910620d7fddacd357798ed4aefd5ee351bb5c19 | e22d4b37236a0327f26159856c7d151826bdd49d | /leonardo/decorators.py | fef545dfaf1c88f93f2466a9bbf2b3b1cb134554 | [
"BSD-2-Clause"
] | permissive | django-leonardo/django-leonardo | 8fe1fc6299c5e3d3c0bff96cb7e80d48f7b7e1de | 7d3f116830075f05a8c9a105ae6f7f80f7a6444c | refs/heads/master | 2022-09-29T02:23:14.426984 | 2020-09-08T13:58:46 | 2020-09-08T13:58:46 | 33,533,052 | 108 | 64 | BSD-3-Clause | 2022-09-16T19:34:25 | 2015-04-07T09:05:44 | Python | UTF-8 | Python | false | false | 2,871 | py |
"""
General-purpose decorators for use with Leonardo.
"""
from __future__ import absolute_import, unicode_literals
import functools
import sys
from django.utils.decorators import available_attrs # noqa
from django.utils.translation import ugettext_lazy as _
from django.core.exceptions import PermissionDenied
try:
... | [
"6du1ro.n@gmail.com"
] | 6du1ro.n@gmail.com |
e1e379e36d454ef3fe4174df9beaebf7d09e90bc | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-machinelearningcompute/tests/test_mgmt_machinelearningcompute.py | 771403cdfbf16cefaecbfead64343f7b3b515072 | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 7,455 | py | from azure.mgmt.resource import ResourceManagementClient
from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer, AzureMgmtPreparer
from devtools_testutils.resource_testcase import RESOURCE_GROUP_PARAM
from azure.mgmt.machinelearningcompute import models, MachineLearningComputeManagementClient
NAME_PRE... | [
"laurent.mazuel@gmail.com"
] | laurent.mazuel@gmail.com |
d77a1baf98b17677abc10a10b6a1c86e9b314600 | 6b6a18001a3a0931bbe8b5185179223b7bd2879a | /fusion_sensor_unit_test/TestScripts/obs/tc.upload.reli.007.py | ce924328b36ae3fb833ff385c4fa662eace35d10 | [] | no_license | hufengping/percolata | cfa02fcf445983415b99c8ec77a08b3f0b270015 | b643e89b48c97a9be3b5509120f325455643b7af | refs/heads/master | 2020-04-06T07:04:22.076039 | 2016-04-25T08:02:40 | 2016-04-25T08:02:40 | 42,929,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,047 | py | #!/usr/bin/env python
# created by Yifei.Fu at 2015-03-25
TESTCASE_ID = "Tc.upload.func.007"
TESTCASE_PRI = "M"
import os
import sys
import pexpect
import time
if __name__ == '__main__':
"""When network restore from breakdown, \
those data which havent been uploaded can be uploaded now."""
#####... | [
"fengping.hu@percolata.com"
] | fengping.hu@percolata.com |
fc89e5cf3e088b3c0bab449e9528daafadf0c83c | d7d26c42cd541417edcd7b1992027286ecef7f04 | /application/network/webapp/flaskwebapi/dist/views.py | 79ba9994e67bfb99767f837a64de1f06eb04c909 | [] | no_license | plutoese/pluto_archive | bfba8df48ee5639a2666b33432004519b93ecbf7 | e6ea64aaf867fd0433714293eb65a18a28d3136d | refs/heads/master | 2021-10-22T14:46:20.540770 | 2019-03-11T12:31:08 | 2019-03-11T12:31:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | # coding=UTF-8
from flask import Blueprint, request
from flask_restplus import Resource, Api
from flask_restplus import Resource, fields
myapp = Blueprint('api', __name__)
myapi = Api(myapp)
@myapi.route('/hello')
class HelloWorld(Resource):
def get(self):
return {'hello': 'world'}
model = myapi.model('... | [
"glen.zhang7@gmail.com"
] | glen.zhang7@gmail.com |
b7759fba303285dffc74440b7bb0d74429facd7b | f991b6f8d24a9537821e9cc99369abd96119ccb4 | /notes/migrations/0006_content_order.py | 5316554531387e9ae195603a792b2177aa0d0bca | [] | no_license | luqmantuke/Faulu-Hub | 01c0aec5d96b45702835d5150400f91f2b530384 | b00c48399f4e8ef514d5f6e52d493db253d23242 | refs/heads/master | 2023-07-11T08:43:34.712484 | 2021-08-20T17:43:33 | 2021-08-20T17:43:33 | 322,248,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 3.1.4 on 2020-12-21 01:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('notes', '0005_content_image'),
]
operations = [
migrations.AddField(
model_name='content',
name='order',
... | [
"lsuleiman2002@gmail.com"
] | lsuleiman2002@gmail.com |
bea8b27f5389332c7e629a210422bfaa016d5d20 | 1763f88965393a8594d78b4b6e1f9ae0c681568f | /find_all_links.py | 509956a9e99da950d84276bf571b6515f00f4515 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | vonzhou/python-scripts | 97d136982b4269aabcca2def81bbde02bf00f7a5 | 1d5d23f5009a4835abcb72aec4959c877727f5b8 | refs/heads/master | 2021-01-10T01:32:36.270328 | 2015-12-08T08:51:56 | 2015-12-08T08:51:56 | 47,610,174 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | import requests
import re
# get url
url = 'http://www.baidu.com'
# connect to the url
website = requests.get(url)
# read html
html = website.text
# use re.findall to grab all the links
links = re.findall('"((http|ftp)s?://.*?)"', html)
# or use xpath() to parse <a> tags ...
# output links
for link in links:
p... | [
"vonzhou@163.com"
] | vonzhou@163.com |
65127159361ed10b42a6ad7c5c0b39609cf1f3e9 | b85de5b2a65baa6b67666c65b4e059bf6caaaf6a | /CodeKata/Hunter4.py | 08ddfe1af75e60842699fcfcb9b75431dd01f12b | [] | no_license | ar95314/Guvi-1 | 319189d4317aa0c2075e02ca71777c8587eb847b | ef6da1cfd18714adc3acf023314e481ebe326d4e | refs/heads/master | 2020-07-07T02:35:49.526732 | 2019-07-17T18:03:44 | 2019-07-17T18:03:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | n=int(input())
a=list(map(str,input().split()))
for i in a:
if a.count(i)==1:
print(i)
break
| [
"noreply@github.com"
] | ar95314.noreply@github.com |
1355a63bf33e318e453546878eff5124845ebb24 | 71d3632c19ada5585223d4800f681718af0e1f87 | /algorithm/day12/yesankwanlee.py | 197138898ef20e68866694e6213d8047f6cfcdf6 | [] | no_license | hyunwoo-song/TOT | 640433b909913098699ff517698e71a1b8661cff | 76a8c18af942d9ed3d636fcec35001ae70b6b8d2 | refs/heads/master | 2023-01-05T08:11:38.858134 | 2019-08-14T08:53:23 | 2019-08-14T08:53:23 | 162,208,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | import sys
sys.stdin = open('input.txt', 'r')
# def DFS(i):
# global result
#
# result += n_list[i]
#
# if result <= 40:
# Result.append(result)
#
# for j in range(i + 1, n):
# DFS(j)
# result -= n_list[j]
#
# else:
# return
def DFS(now,sum):
if ... | [
"gerrar486@gmail.com"
] | gerrar486@gmail.com |
e697100920acbb425c47e4b33773bc3e0a9ef8de | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/blink/web_tests/external/wpt/html/cross-origin-embedder-policy/resources/corp-image.py | e507846181d980fe045028b0aacd9e31600b3b89 | [
"BSD-3-Clause",
"GPL-1.0-or-later",
"MIT",
"LGPL-2.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 1,186 | py | import json
import base64
# A 1x1 PNG image.
# Source: https://commons.wikimedia.org/wiki/File:1x1.png (Public Domain)
IMAGE = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII="
def main(request, response):
response.headers.set(b'Acce... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
bdef273d52e185b35989f775947b54698088da55 | b04cc98a746d1df457183bc14908094a8be00ba1 | /paddleslim/quant/constraints/conv_bn_constraints.py | 2b89b782279c460e607282c700afc47017ce39b8 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleSlim | a3bcaef0c92016b7f6946d58787f87c7db8ff3f8 | bb02b103a89a09635941bc0bbbd38506d7412468 | refs/heads/develop | 2023-08-31T01:47:27.824722 | 2023-08-25T08:06:08 | 2023-08-25T08:06:08 | 228,290,594 | 1,534 | 402 | Apache-2.0 | 2023-08-29T09:37:55 | 2019-12-16T02:56:50 | Python | UTF-8 | Python | false | false | 2,497 | py | # Copyright (c) 2023 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
feaf294bc441389360dd20606b01b82afba9636c | 0fdc732fcdad1c0d76d6ec80cb6e25b6ec17d6e1 | /django_uuid/uuid_app/models.py | 7e3ba9ecc22f2bca148c9cc604246e759d64fc0d | [
"MIT"
] | permissive | markbirds/Django-Code-Repo | 9b3c8bfba948dd8ea1be71e31cbfd2ef26bfa157 | b55762d2dab00640acf2e8e00ddc66716d53c6b5 | refs/heads/master | 2023-01-05T22:44:16.405853 | 2020-11-03T07:17:50 | 2020-11-03T07:17:50 | 299,615,438 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | import uuid
from django.db import models
class MyUUIDModel(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
name = models.CharField(unique=True,max_length=50)
description = models.TextField()
| [
"fowenpatrick@gmail.com"
] | fowenpatrick@gmail.com |
0f8c09573f86b22cf3638154ea59ca73fb373526 | 66107c6533ec83a127f0436c6d8a4c110a213203 | /numpy_programs/array_linear_algebra_operations.py | e49bc936ad8494e45e151e3a73bb4801fb4f7dcc | [] | no_license | vibhorgoyal18/ai_training | 97abfdd2543a24f8bc7e09ab260289ceadf92ca4 | 56d832bdea6898e0e91f5d9fccc6704cf20674a2 | refs/heads/master | 2020-08-23T03:25:05.544871 | 2020-02-11T06:57:09 | 2020-02-11T06:57:09 | 216,533,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # Find the inverse, eigenvalues, eigenvectors, determinants of a given matrix 'array_1'.
import numpy as np
input_list = [[1, 2, 3], [2, 3, 4], [4, 2, 6]]
list_1 = input_list[0]
list_2 = input_list[1]
list_3 = input_list[2]
array_1 = np.array([list_1, list_2, list_3])
eigen = np.linalg.eig(array_1)
inv = np.linalg.i... | [
"goyal1992.vibhor@gmail.com"
] | goyal1992.vibhor@gmail.com |
ceb367b8feec4bfb97f5c192d58076f11d2b38f9 | cdf2508d4a3e71c3066ef956b5a2b3944c28bfea | /group_norm.py | 4e44cac133276eb6a711e7ce9fc5500e6d8dc771 | [
"MIT"
] | permissive | Owaiskhan9654/Keras-Group-Normalization | a75e46a65f38fff161b878e1ad6c8c083037e90c | cfa4ad7a221cf0ed2413a4bcd2a70e2064bdd69b | refs/heads/master | 2022-12-20T04:33:44.667791 | 2020-09-25T22:57:08 | 2020-09-25T22:57:08 | 272,839,227 | 2 | 0 | MIT | 2020-06-17T00:16:14 | 2020-06-17T00:16:14 | null | UTF-8 | Python | false | false | 7,952 | py | from keras.engine import Layer, InputSpec
from keras import initializers
from keras import regularizers
from keras import constraints
from keras import backend as K
from keras.utils.generic_utils import get_custom_objects
class GroupNormalization(Layer):
"""Group normalization layer
Group Normalization divi... | [
"titu1994@gmail.com"
] | titu1994@gmail.com |
adaa5759212d73b7a3d66c4209e1cc69af15d356 | 9be2d4717f74ea8373e85427ce00c516724b0c96 | /python project/Day3-Python基础语法2/venv/Scripts/pip3.6-script.py | 14995efecd015824ce60b94e9a755ee472bd24ec | [] | no_license | chongjing001/Python-Basis | cad380fde4b0ba2e731494ef1423a07b34b171de | 6a29a4bd31df9160b842be7288fe098bbd42b433 | refs/heads/master | 2020-04-12T10:01:11.952917 | 2019-03-30T07:13:04 | 2019-03-30T07:13:04 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 430 | py | #!"F:\python project\Day3-Python»ù´¡Óï·¨2\venv\Scripts\python.exe" -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sy... | [
"635629424@qq.com"
] | 635629424@qq.com |
b3cca4456e72cb9e3c702c23ee7aa29c3ab92627 | 92e3a6424326bf0b83e4823c3abc2c9d1190cf5e | /scripts/icehouse/opt/stack/tempest/tempest/api/compute/keypairs/test_keypairs_negative.py | 0da449b64de8c53124adfbb3ef4df3556c39544d | [
"Apache-2.0"
] | permissive | AnthonyEzeigbo/OpenStackInAction | d6c21cf972ce2b1f58a93a29973534ded965d1ea | ff28cc4ee3c1a8d3bbe477d9d6104d2c6e71bf2e | refs/heads/master | 2023-07-28T05:38:06.120723 | 2020-07-25T15:19:21 | 2020-07-25T15:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,199 | py | # Copyright 2012 OpenStack Foundation
# Copyright 2013 IBM Corp
# 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/LICE... | [
"cody@uky.edu"
] | cody@uky.edu |
a2a2f562ddd411d04198bcbbd041b73c860fb5ba | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /iHfq7KA8MBuZqBGgo_14.py | e223421564d2f05588ccadbe447c5fea6b88bba5 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py |
def is_legitimate(lst):
touch_lr = all([sublist[0]==0 and sublist[-1]==0 for sublist in lst])
touch_ud = 1 not in lst[0] and 1 not in lst[-1]
return touch_lr and touch_ud
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
119c6411630cb56caa3d402e1af8fd195aa19f71 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/ibm/qradar/plugins/modules/rule_info.py | 174d407921225e5c7a34b7842f992bbb0c8eeb44 | [
"GPL-3.0-only",
"GPL-3.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 4,064 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2019, Adam Miller (admiller@redhat.com)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = """
---
module: rule_info
short_d... | [
"sifang@cisco.com"
] | sifang@cisco.com |
d972b2ba575a17abe30c6349d040a3d3c88e48fd | 00f36f77d786ad6f8901669fe250035dd21f8e04 | /tools/fmt_test.py | 4b066a47b50da67e8b4015b3c4a527db00c1cec9 | [
"MIT"
] | permissive | HoweelZhang/deno | 163cf641eef07da321022114be25ccf6e91b4e56 | 9d025facaa9b97a27d751dbcd67d8c003c77f3c2 | refs/heads/master | 2020-04-24T13:27:50.939228 | 2019-02-21T20:52:35 | 2019-02-21T20:52:35 | 171,988,948 | 1 | 0 | MIT | 2019-02-22T03:34:03 | 2019-02-22T03:34:03 | null | UTF-8 | Python | false | false | 1,104 | py | #!/usr/bin/env python
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import os
import sys
from util import mkdtemp, root_path, tests_path, run, green_ok
import shutil
def fmt_test(deno_exe):
sys.stdout.write("fmt_test...")
sys.stdout.flush()
d = mkdtemp()
try:
fixed_... | [
"ry@tinyclouds.org"
] | ry@tinyclouds.org |
a44de00f48fe6b30ea8611235238eb08878f00d2 | ffc1ab091d54635c96cd4ed6098c4bf388222f02 | /HCP/ciftify-master/ciftify/bin/ciftify_seed_corr | e5db6397c0d7934bd4ade14157ddcc5253b04692 | [
"MIT"
] | permissive | bharathlakshman/brainintensive | fc7833078bb6ad9574e015004f2b3905c85b699e | eec8a91cbec29ba27d620984394d3ee21d0db58f | refs/heads/master | 2021-01-01T19:04:25.724906 | 2017-07-28T01:48:28 | 2017-07-28T01:48:28 | 98,499,935 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,239 | #!/usr/bin/env python
"""
Produces a correlation map of the mean time series within the seed with
every voxel in the supplied mask. This function assumes all supplied
images are the same size.
Usage:
ciftify_seed_corr [options] <func> <seed>
Arguments:
<func> functional data
<seed> seed ... | [
"ibharathlakshman@gmail.com"
] | ibharathlakshman@gmail.com | |
682c21fea914ab9541f90e8b2d222bede2ec6723 | b47f2e3f3298388b1bcab3213bef42682985135e | /experiments/jacobi-2d/tmp_files/4538.py | 8ebba6b88a86f00341821e9c94b03059a1d8eb60 | [
"BSD-2-Clause"
] | permissive | LoopTilingBenchmark/benchmark | 29cc9f845d323431e3d40e878cbfc6d1aad1f260 | 52a3d2e70216552a498fd91de02a2fa9cb62122c | refs/heads/master | 2020-09-25T09:45:31.299046 | 2019-12-04T23:25:06 | 2019-12-04T23:25:06 | 225,975,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | from chill import *
source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/jacobi-2d/kernel.c')
destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/jacobi-2d/tmp_files/4538.c')
procedure('kernel_jacobi_1d')
loop(0)
known(' n > 2 ')
tile(0,2,16,2)... | [
"nashenruoyang@163.com"
] | nashenruoyang@163.com |
e5dd97b69277a7698c69a9faed9bb1fe71823d85 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_241/ch165_2020_06_22_00_19_32_361977.py | 819a55e4ada5a4c021397d75edab75dae4357f0c | [] | 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 | 366 | py | def mais_populoso(dicionario):
lista = dicionario.keys()
maiorP = 0
nomeEstado = ''
for estado in lista:
populacoes = dicionario[estado].values()
soma = 0
for valor in populacoes:
soma += valor
if soma > maiorP:
maiorP = soma
nomeEstado... | [
"you@example.com"
] | you@example.com |
1abeed7b216d8892eb788ca3792ee130af6631b4 | f169b5efa5727f1431e95eaa294f8f33aa093979 | /dropme/error.py | 2c15d80e491037ea14b873717a75a66167a22e80 | [
"Apache-2.0"
] | permissive | tivaliy/dropme | 15f9dc5274c378cdf62dfd8fa1c18334b0b68d69 | 3d760e1da8182cdf62ab2a6f357dea923fca3cd7 | refs/heads/master | 2021-09-10T09:19:59.404022 | 2018-03-23T12:39:51 | 2018-03-23T12:39:51 | 108,733,796 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | #
# Copyright 2017 Vitalii Kulanov
#
class ClientException(Exception):
"""Base Exception for Dropme client
All child classes must be instantiated before raising.
"""
pass
class ConfigNotFoundException(ClientException):
"""
Should be raised if configuration for dropme client is not specif... | [
"vitaliy@kulanov.org.ua"
] | vitaliy@kulanov.org.ua |
725774408d469c43efc921e65311c019061d15c3 | 54f41c4020ce0f3159dd044618b57843310fe070 | /drivers/plot_hr.py | ce1627d7ec2f0f522cec60543ad4f5bc2dee1ed3 | [
"MIT"
] | permissive | lgbouma/billy | f8205ce64667c3495ecbf3032629acc7395798a8 | aa70e55c61085464945a49c806a2f96911f35706 | refs/heads/master | 2023-08-06T16:04:46.733163 | 2021-09-17T23:15:13 | 2021-09-17T23:15:13 | 247,311,434 | 0 | 1 | null | 2020-05-19T23:04:02 | 2020-03-14T16:22:55 | TeX | UTF-8 | Python | false | false | 211 | py | import os
import billy.plotting as bp
from billy import __path__
RESULTSDIR = os.path.join(os.path.dirname(__path__[0]), 'results')
PLOTDIR = os.path.join(RESULTSDIR, 'cluster_membership')
bp.plot_hr(PLOTDIR)
| [
"bouma.luke@gmail.com"
] | bouma.luke@gmail.com |
7846f8255db1745b5d226e68954bff0d8967271f | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/meetup/b8563d5f7e5c47ccb1c7b41038f3b9b8.py | 4f26d57c94d3cbbb1373dc04fa38f11b0c2acd03 | [] | 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 | 674 | py | from calendar import Calendar
from datetime import date, datetime
def meetup_day(year, month, day_of_week, suffix):
week = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
decallage = ['1st', '2nd', '3rd', '4th', '5th']
possible_days = [date
for date in Calendar... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
d0fdde56e23eeb4c07b17972b52d5f9eb7d3be2c | a59deecc5d91214601c38bd170605d9d080e06d2 | /12-lists/02-creating-lists-exercise/app.py | db152f9668a21526cf2df11c124aeca9d1bcd6b9 | [] | no_license | reyeskevin9767/modern-python-bootcamp-2018 | a6a3abdb911716d19f6ab516835ed1a04919a13d | d0234f10c4b8aaa6a20555348aec7e3571e3d4e7 | refs/heads/master | 2022-12-03T18:48:50.035054 | 2020-08-09T03:00:55 | 2020-08-09T03:00:55 | 286,109,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py |
# * Creating List Exercise
# * Define my_stuff
my_stuff = [1, 2, 3, 4, 'Camera', 2.5]
print(my_stuff)
# * Define nums
nums = list(range(1, 100))
print(nums)
# * Define every_thing
every_thing = [1, 1, 2, 3, 4, True, False, 'Welcome']
print(every_thing)
| [
"reyeskevin9767@gmail.com"
] | reyeskevin9767@gmail.com |
a5f283a0c346af1e9e9dae7e258c1693888a5c68 | 29182ef5108ee7b95e38bb380f37d7303f48e38c | /chapter4/dynamic_dispatch.py | cf80c1c3bd2a21bd578cbe0a4342732f6fdef813 | [] | no_license | cjlws/learntwisted | 32bcdbc7e03cf3f685c9d1fb958b1ce0911cc185 | 08068c82df9441a8739e2fe83b6f560e9557c386 | refs/heads/master | 2020-12-02T23:59:09.760019 | 2017-07-02T18:44:32 | 2017-07-02T18:44:32 | 95,969,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | from twisted.internet import reactor
from twisted.web.resource import Resource, NoResource
from twisted.web.server import Site
from calendar import calendar
class YearPage(Resource):
def __init__(self, year):
Resource.__init__(self)
self.year = year
def render_GET(self, request):
return "<html><body><pre>... | [
"vagrant@localhost.localdomain"
] | vagrant@localhost.localdomain |
b78695a987034ffb1508e8e8fee7cade14c8decc | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/media/v20210501/outputs.py | 6b525f58ef7c1d22331a4934004167b6fce05ca1 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 22,140 | 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! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
1c557729989f7b843006996e58a05259f94e2ca1 | 5167f77d96d1dc5412a8a0a91c95e3086acd05dc | /contrib/signet/getcoins.py | 50efa39dabb80101125979839bfb5744bc29b305 | [
"MIT"
] | permissive | ocvcoin/ocvcoin | 04fb0cea7c11bf52e07ea06ddf9df89631eced5f | 79c3803e330f32ed50c02ae657ff9aded6297b9d | refs/heads/master | 2023-04-30T10:42:05.457630 | 2023-04-15T11:49:40 | 2023-04-15T11:49:40 | 406,011,904 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | #!/usr/bin/env python3
# Copyright (c) 2020 The Ocvcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import argparse
import subprocess
import requests
import sys
parser = argparse.ArgumentParser(description='Sc... | [
"contact@ocvcoin.com"
] | contact@ocvcoin.com |
5bfe23f111eb54ec649313b5ca412b211d35f221 | 0c70dcec22a090e70b1f20613ea6e0a64fd9a037 | /GPS卫星位置的计算/venv/Lib/site-packages/pandas/tests/arrays/categorical/test_repr.py | c226c69d464178788d95faf1eae98446b6121ad9 | [
"MIT"
] | permissive | payiz-asj/Gis | 82c1096d830878f62c7a0d5dfb6630d4e4744764 | 3d315fed93e2ab850b836ddfd7a67f5618969d10 | refs/heads/main | 2023-06-27T15:25:17.301154 | 2021-08-03T10:02:58 | 2021-08-03T10:02:58 | 392,269,853 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 26,823 | py | import numpy as np
from pandas import (
Categorical,
CategoricalIndex,
Series,
date_range,
option_context,
period_range,
timedelta_range,
)
from pandas.tests.arrays.categorical.common import TestCategorical
class TestCategoricalReprWithFactor(TestCategorical):
def test_... | [
"1778029840@qq.com"
] | 1778029840@qq.com |
dfbfdc7fb44640e56cd025a9413cbbde40b17e39 | 8531bee5e42d82ffc09ef274ccb2333ca02f03cc | /python/boj/1541.py | eda9affc48de0d4ca98daef97b17f747b96ccc2f | [] | no_license | ChoHyoungSeo/Algorithm_prac | 969f193f9ba349d0df3c1d7645fe3f42ec7581c4 | 02327623b5ea2211f4618e60b0bdcc61e16e1c5a | refs/heads/master | 2023-08-17T11:26:55.159895 | 2023-08-17T10:52:34 | 2023-08-17T10:52:34 | 210,917,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | #- 기준으로
nums = input().split('-')
num_list = []
for num in nums:
ans = 0
sp_num = num.split('+')
for j in sp_num:
ans += int(j)
num_list.append(ans)
part_num = num_list[0]
for i in range(1, len(num_list)):
part_num -= num_list[i]
print(part_num) | [
"francesco.johs@gmail.com"
] | francesco.johs@gmail.com |
069dc707b0632cf1c5a3cb4df18d65619ab60bbf | c6b91bd831c3c2d8ca84090a4138ba424d3aca3e | /tests/test_input_format.py | b2a3fc2b4f12c8e078851c5bac35e9d116cc592e | [
"MIT"
] | permissive | izi-global/izir | 1598cbd50848f23cbaafc5068d64c07511b2bc50 | d1a4bfb5c082c3de1956402ef0280564014a3bd8 | refs/heads/master | 2023-01-12T21:02:08.964633 | 2018-09-26T08:39:28 | 2018-09-26T08:39:28 | 150,227,469 | 0 | 0 | MIT | 2022-12-26T20:30:38 | 2018-09-25T07:52:27 | Python | UTF-8 | Python | false | false | 2,733 | py | """tests/test_input_format.py.
Tests the input format handlers included with IZIR
Copyright (C) 2018 DiepDT-IZIGlobal
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, includi... | [
"diepdt@izi.asia"
] | diepdt@izi.asia |
f8d1297ea44ed1a793ce1c2cfa9fd693240cbeba | 7359735a42cbff8a53a65e130e66bea2f7cc7da5 | /backend/sevtuz/urls.py | 863981d3a6c505f854f44e1be4adbd46d16ea3c0 | [] | no_license | alexmon1989/sevtuz | 1a7b21d6cb70d4af15c80101cf828af0003447d5 | 9ff068089bc286ff238bac34f785db0775699091 | refs/heads/master | 2023-03-20T06:45:29.037723 | 2022-12-27T19:07:26 | 2022-12-27T19:07:26 | 110,521,561 | 0 | 0 | null | 2023-03-06T11:38:17 | 2017-11-13T08:35:43 | Nunjucks | UTF-8 | Python | false | false | 2,926 | py | """sevtuz URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"alex.mon1989@gmail.com"
] | alex.mon1989@gmail.com |
8b30a5e375f7baa3030cad4d52697be70ee7c542 | e3491189d2191c76ada57a78314db552e77fd273 | /Collect/MOD12/__init__.py | 5b5f16703b3ac1095823f76b2fc632c822d97c85 | [
"Apache-2.0"
] | permissive | CMicha/watools | 1c1ae0fa9ccd07e86c36730683d03fbc4ea12ce6 | 21226dfc78bee86281eec1a466ac483af415dab7 | refs/heads/master | 2021-06-19T01:16:40.798866 | 2021-03-05T14:21:35 | 2021-03-05T14:21:35 | 186,795,391 | 1 | 2 | Apache-2.0 | 2019-07-25T07:06:13 | 2019-05-15T09:36:20 | Python | UTF-8 | Python | false | false | 803 | py | # -*- coding: utf-8 -*-
"""
Authors: Tim Hessels
UNESCO-IHE 2016
Contact: t.hessels@unesco-ihe.org
Repository: https://github.com/wateraccounting/watools
Module: Collect/MOD12
Description:
This module downloads MOD12 LC data from
http://e4ftl01.cr.usgs.gov/. Use the MOD12.LC_yearly function to
download and cr... | [
"timhessels@hotmail.com"
] | timhessels@hotmail.com |
4aa9304ac927074cf358fe4ecfa7f753ad837917 | e56214188faae8ebfb36a463e34fc8324935b3c2 | /test/test_workflow_target_data_type_ref.py | 75fbcc52d373b476392679210acb9e9b3b2de070 | [
"Apache-2.0"
] | permissive | CiscoUcs/intersight-python | 866d6c63e0cb8c33440771efd93541d679bb1ecc | a92fccb1c8df4332ba1f05a0e784efbb4f2efdc4 | refs/heads/master | 2021-11-07T12:54:41.888973 | 2021-10-25T16:15:50 | 2021-10-25T16:15:50 | 115,440,875 | 25 | 18 | Apache-2.0 | 2020-03-02T16:19:49 | 2017-12-26T17:14:03 | Python | UTF-8 | Python | false | false | 1,975 | py | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | [
"ucs-build@github.com"
] | ucs-build@github.com |
ce3bb0a1cde642dbd96d05709f47ed8a6b330281 | 24b1fa231f4e89f1a588c09ebee6fe4da6915c53 | /JSXGraph/ellipse-major-axis.py | 2fb0af7dc0e968f6d18675e9e5cc3ac6c92ef125 | [] | no_license | cyrt63/demos | a429214154cf0e51b58710f67670e1d902bfcac6 | a4b54b862dba4ad33a707511896324829f4cc7b1 | refs/heads/master | 2020-04-08T13:51:40.823058 | 2015-04-21T14:01:41 | 2015-04-21T14:01:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | from browser import *
from math import *
graph = window.JXG.JSXGraph
document.getElementById("graph-container").innerHTML = '<div id="box" class="jxgbox"></div>'
div = document.getElementById("box")
div.style.width = "400px"
div.style.height = "400px"
board = graph.initBoard("box", {"axis":True,"grid":True})
A = ... | [
"geometryzen@gmail.com"
] | geometryzen@gmail.com |
5cd819c8668ec63a59ba81e659d1b98e4dbb5663 | 25ece1512358fa145ebf61f8438fe71d9a25f113 | /Audrey_User.py | 7de42836cb753f26d388bddcb5609bd7a4c5d204 | [] | no_license | emily03196/cereal-killers | 8ddfc36ccb022b818a21a388c28d715b1930f794 | e7422d6304df6e68f30407a95d27876268ab5c3c | refs/heads/master | 2021-01-11T16:45:19.088375 | 2017-03-14T21:53:56 | 2017-03-14T21:53:56 | 79,667,325 | 0 | 0 | null | 2017-01-21T20:50:01 | 2017-01-21T19:21:00 | null | UTF-8 | Python | false | false | 12,338 | py | from math import radians, cos, sin, asin, sqrt
import json
import numpy as np
import csv
from geopy.geocoders import Nominatim
geolocator = Nominatim()
from geopy.distance import vincenty
import re
import An_indexer
day_dic = {'Sunday': 0, 'Monday': 1, 'Tuesday': 2, 'Wednesday': 3, 'Thursday': 4, \
'Friday': 5, 'Satur... | [
"amr@cs.uchicago.edu"
] | amr@cs.uchicago.edu |
418850d4825bbb079186375aadd2be3a882830ac | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_28741.py | 5d52a24359c5c2be74ea8cf3be055753bb2cdef9 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | # Splicing a sequence with a sequence of positions
c = [a[i] for i in b]
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
089cd96e8c432227135fde975a93d62ad976bb57 | bc61f5e601db66b70a81bb16ea40ba450f13b86b | /desktop/core/src/desktop/lib/connectors/types.py | 7d75984b0658ff1f711a4a77279a84aae0eed33a | [
"Apache-2.0"
] | permissive | skyyws/hue | 59fe14d6d2c52edf76ecdfddb34f5568878f2a28 | b4b06d44e0f3081d26b1aa4ac2192baa0f85aaa7 | refs/heads/master | 2021-01-16T05:04:27.285492 | 2020-02-25T11:53:02 | 2020-02-25T11:55:07 | 242,983,619 | 0 | 1 | Apache-2.0 | 2020-02-25T11:29:38 | 2020-02-25T11:29:37 | null | UTF-8 | Python | false | false | 15,840 | py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | [
"romain.rigaux@gmail.com"
] | romain.rigaux@gmail.com |
58152a22a3efb870a75457ef0e76e62719536f7c | a012900f5a88c08609eb483078220cdf668ae6b2 | /LV1/1.2/cold/cold.py | f649c29ea39053f5a50bb3fb9771c79f51892e54 | [] | no_license | m00p1ng/kattis-problem | 422030179e195553913605a3ce922e7ecab6bbd5 | 4ab39cca65ba57dfae2a88b96e31797df62a60d0 | refs/heads/master | 2020-03-28T22:09:39.166151 | 2019-06-18T18:35:58 | 2019-06-18T18:35:58 | 149,209,208 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | n = int(input())
ans = [None for i in input().split() if int(i) < 0]
print(len(ans))
| [
"mongkonchai4412@gmail.com"
] | mongkonchai4412@gmail.com |
fc0c6d42d55705a55d75448b48aedd7b83eb35d4 | 57235e5fbd29dc5e0b3f24649e15a48935edd65f | /boa3_test/test_sc/relational_test/MultipleExpressionsInLine.py | f39cca1a51162e646ac82164102643919d4050e3 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | DanPopa46/neo3-boa | ae75543bdc4e0aeadf45578b6b5e4c45b9253557 | e4ef340744b5bd25ade26f847eac50789b97f3e9 | refs/heads/development | 2023-04-01T19:25:08.216180 | 2021-04-15T17:45:38 | 2021-04-15T17:45:38 | 358,663,228 | 0 | 0 | Apache-2.0 | 2021-04-16T16:46:46 | 2021-04-16T16:46:31 | null | UTF-8 | Python | false | false | 159 | py | from boa3.builtin import public
@public
def Main(a: int, b: int) -> bool:
is_equal = a == b; is_greater = a > b; is_less = a < b
return not is_equal
| [
"mirellamedeiros.09@hotmail.com"
] | mirellamedeiros.09@hotmail.com |
e500afc230e2ef41dd2965c45e0c38fe2f121acd | f6f632bee57875e76e1a2aa713fdbe9f25e18d66 | /python/_0001_0500/0498_diagonal-traverse.py | 3e2597353cc8cbae5a911b74fe8c592223615b76 | [] | no_license | Wang-Yann/LeetCodeMe | b50ee60beeeb3661869bb948bef4fbe21fc6d904 | 44765a7d89423b7ec2c159f70b1a6f6e446523c2 | refs/heads/master | 2023-08-07T05:31:23.428240 | 2021-09-30T15:33:53 | 2021-09-30T15:33:53 | 253,497,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : Rock Wayne
# @Created : 2020-05-31 08:00:00
# @Last Modified : 2020-05-31 08:00:00
# @Mail : lostlorder@gmail.com
# @Version : alpha-1.0
"""
# 给定一个含有 M x N 个元素的矩阵(M 行,N 列),请以对角线遍历的顺序返回这个矩阵中的所有元素,对角线遍历如下图所示。
#
#
#
# 示例:
#
# 输... | [
"wzy-511@163.com"
] | wzy-511@163.com |
421d24d761f0d0d7f2eb71013a74d6ee3a1f4114 | 5c7f2ff956b1fd1477d56486e239b6e661a08efd | /supervised_learning/0x02-tensorflow/6-train.py | 8fee1bb3b2ad3aa113a2d05cfe8a2a9ae986e2bc | [] | no_license | diego0096/holbertonschool-machine_learning | 60c5f40e185df04d02d9887d966542e85a981896 | 64b8984846c2b2b88bbf11125b55b482c7b74eea | refs/heads/master | 2023-04-02T01:27:59.263397 | 2021-04-02T21:33:51 | 2021-04-02T21:33:51 | 279,229,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,502 | py | #!/usr/bin/env python3
"""Train our network"""
import tensorflow as tf
calculate_accuracy = __import__('3-calculate_accuracy').calculate_accuracy
calculate_loss = __import__('4-calculate_loss').calculate_loss
create_placeholders = __import__('0-create_placeholders').create_placeholders
create_train_op = __import__('5... | [
"dfqz93@hotmail.com"
] | dfqz93@hotmail.com |
1f6bb509c76aecac5ca76ffccfd72ca3b1116c85 | 0bfe86a8cc52a4e63ece2dc875cd48af88d13549 | /Security/BasicAuthPro/BasicApp/migrations/0001_initial.py | 832909aaae77038e4ee6452a9a31e939029d171f | [] | no_license | naveenkumar2505/restframework | 1f5fb27fde6641338b259c310b5d7fefa5cd8e6c | 0415fbd66f351c9ab74804f68a27c08a8baf1c29 | refs/heads/master | 2020-05-24T10:16:14.808719 | 2019-05-17T13:54:53 | 2019-05-17T13:54:53 | 187,225,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2019-02-08 07:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',... | [
"naveentechhie@gmail.com"
] | naveentechhie@gmail.com |
7fcdf8c983191343e9aafde0138495436cce1314 | ebd9c249d446d809abc9a0f3e4593f34922a1b93 | /lintcode/475_binary_tree_maximum_path_sum_ii.py | 82d7f7a0b4631d758370ab258d571656243f9ba2 | [] | no_license | jaychsu/algorithm | ac7a9dc7366f58c635a68bc46bf1640d2f5ff16d | 91892fd64281d96b8a9d5c0d57b938c314ae71be | refs/heads/master | 2023-05-11T00:40:39.237813 | 2022-09-14T07:43:12 | 2022-09-14T07:43:12 | 106,277,156 | 143 | 39 | null | 2022-09-14T07:43:13 | 2017-10-09T11:51:48 | Python | UTF-8 | Python | false | false | 445 | py | """
Definition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
"""
class Solution:
def maxPathSum2(self, root):
"""
:type root: TreeNode
:rtype: int
"""
if not root:
return 0
le... | [
"hi@jaych.su"
] | hi@jaych.su |
fd75b8c1c36b8c0e94113dd441c85933c7ea4705 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02903/s472623135.py | 4ba55085d39e0adb0cc346a45553ea9b9eb5ad52 | [] | 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 | 142 | py | H,W,A,B=map(int,input().split())
X="".join(map(str,[1]*A+[0]*(W-A)))+"\n"
Y="".join(map(str,[0]*A+[1]*(W-A)))+"\n"
print((X*B+Y*(H-B))[:-1]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8b890b9b946b6478def82dc0bca80dd4ec8bf197 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/maxCounter_20200727095333.py | 070cfed6533154ed0dbfaefd0c89c81b66c38fdd | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | def counter(N,A):
# we are going to create a counts array that gets to N
# we are going to increment by 1 if we come across any
# number in the A ---> array
# when we get to a number that is greater(out of range)
# we've maxed out and at this point all counters are set to the max value
# then... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
55cfc4c972fdd23a18d8573b82b1c0c5f67a0f2a | ac13ea9f0d359e9080ca5e57defe05e5c4331404 | /sapp/trace_graph.py | a62674bfd5f7f73fe75f4c3068cc991b14c4ba5a | [
"MIT"
] | permissive | kelvinlin97/sapp | eb2a3e3da2233371364b259bbca92a6b345223d6 | c59f5833ede65c5f6b7ddb66a2dfade686313a06 | refs/heads/master | 2023-06-29T03:14:16.766677 | 2021-07-28T12:00:50 | 2021-07-28T12:01:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,063 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
import logging
from collections import defaultdict
from typing import DefaultDict, Dict, Iterable, List, NamedTuple, Optional, ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
c097fd6717f885b38cf20e44aeef2eeba73ff0b3 | c420ba7a75d69874e8f9aee1276bcbe5bf0ba462 | /flask_util.py | 3a9ac73263edcd1c1bc72f8a2480cc3c7800f67a | [
"LicenseRef-scancode-public-domain"
] | permissive | snarfed/webutil | 3ea94e9ce8490c763a2e167c30259fe651dce92c | f58a8fed7bcb50fcd95c3bd92837570c428278d8 | refs/heads/main | 2023-08-31T04:55:27.174452 | 2023-08-29T04:31:36 | 2023-08-29T04:31:36 | 3,924,789 | 11 | 5 | null | 2023-07-20T18:36:02 | 2012-04-04T02:16:35 | Python | UTF-8 | Python | false | false | 12,673 | py | """Utilities for Flask. View classes, decorators, URL route converters, etc."""
import functools
import logging
import os
import re
import urllib.parse
import flask
from flask import abort, get_flashed_messages, make_response, redirect, render_template, request
from flask.views import View
from google.cloud import ndb... | [
"git@ryanb.org"
] | git@ryanb.org |
26f9ef075b28d71fc56d39674a9ef2d2f0beaf4e | 3b00f143f858c495df46cf88a27a18bee388c6b6 | /Trees/second_minimum_node_in_a_binary_tree.py | 6e1ef0a083f34d9bdcf03255180896f1780fbce3 | [] | no_license | deepcpatel/data_structures_and_algorithms | 5a4d70e9d74e933a16b132d6701a0dc6b19d9203 | 2c7849f1e31c5c60924eb70830e524b44306d652 | refs/heads/master | 2023-01-01T04:47:19.704199 | 2020-10-27T17:35:48 | 2020-10-27T17:35:48 | 307,295,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,922 | py | # Link: https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/
# Approach: The tree structure helps us generate the pattern to find second minimum node. At every step, we would have three conditions - (1). right.val == left.val == min_val, (2). right.val
# < left.val and right.val == min_val and (3). left... | [
"deepcpatel@yahoo.in"
] | deepcpatel@yahoo.in |
e49f0bc8aecb0162cdd0afebe3a476f496cf27c3 | 4c93a040adc9fc448c61bfe1957a30985e759c2e | /ls/joyous/tests/test_recurrence.py | 21267e30a20e59c708ff3768fb319bdd650c31fa | [
"BSD-3-Clause"
] | permissive | springload/ls.joyous | cf28c443f7f8bb61348002ec134d16596bb9c61d | eb078f37552c1e027fe8b8773b8a7c10cb55e898 | refs/heads/master | 2020-03-26T07:11:27.166885 | 2018-08-12T05:32:24 | 2018-08-12T05:32:24 | 144,640,645 | 1 | 0 | null | 2018-08-13T22:36:09 | 2018-08-13T22:36:08 | null | UTF-8 | Python | false | false | 4,461 | py | # ------------------------------------------------------------------------------
# Test Recurrence
# ------------------------------------------------------------------------------
import sys
import datetime as dt
from django.test import TestCase
from ls.joyous.utils.recurrence import Recurrence, Weekday
from ls.joyous.... | [
"david@linuxsoftware.co.nz"
] | david@linuxsoftware.co.nz |
b4d55a4241113d94263aa7229d06257ef42bd0f4 | 347c70d4851b568e03e83387f77ae81071ab739e | /fn_zia/fn_zia/components/funct_zia_remove_from_blocklist.py | ca4d2b7fc74ef934f77b18659318864b91912d6c | [
"MIT"
] | permissive | neetinkandhare/resilient-community-apps | 59d276b5fb7a92872143ce2b94edd680738693ce | 3ecdabe6bf2fc08f0f8e58cbe92553270d8da42f | refs/heads/master | 2021-12-27T09:05:36.563404 | 2021-09-29T13:04:56 | 2021-09-29T13:04:56 | 159,804,866 | 1 | 0 | MIT | 2021-08-03T19:45:45 | 2018-11-30T10:07:32 | Python | UTF-8 | Python | false | false | 3,179 | py | # -*- coding: utf-8 -*-
# (c) Copyright IBM Corp. 2010, 2021. All Rights Reserved.
# pragma pylint: disable=unused-argument, no-self-use
"""Function implementation"""
import logging
from resilient_circuits import ResilientComponent, function, handler, StatusMessage, FunctionResult, FunctionError
from resilient_lib imp... | [
"shane.curtin@ie.ibm.com"
] | shane.curtin@ie.ibm.com |
3ec99d7ef8bcd4ac32fa56708b16206cab18efbe | 11b0c124262ac40de87d756389082462d8452e4d | /keras/keras39_GRU_ensemble.py | 3d8130667bd46cda82678f3274854048c2b08f5d | [] | no_license | Hyunwoo29/keras01 | 164b519f9bb70d55f7bfa91c66529cee4d012b24 | 494611a94420f8e268c37085ccf0b0de4aa71048 | refs/heads/main | 2023-08-06T07:19:13.288634 | 2021-10-05T14:03:56 | 2021-10-05T14:03:56 | 383,744,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | # 앙상블 모델을 만드시오.
# 결과치 신경쓰지 말고 모델만 완성할것!
# 실습
# keras37을 함수형으로 리폼하시오.
import numpy as np
from tensorflow.keras import layers
from tensorflow.keras.models import Sequential, Model
from tensorflow.keras.layers import Dense, SimpleRNN, Dropout, LSTM, GRU, Input
from tensorflow.python import keras
#1. 데이터
x1 = np.array([[1... | [
"nbaksa3@gmail.com"
] | nbaksa3@gmail.com |
3cc369ab54bb1df7d26a7e855531d1a71e4540f5 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-1986.py | b9508a2c0bf520e0f6b72bc65f1149ff31d49835 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,755 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
984e7402e880c41dd8c6e4d1a52addf45356d11a | 45a61af9028a1805c08b6f7638c7aebe8140bd2d | /Hydrology/CIREN/llena_fichas_Infraestructura.py | c5fe3ce18429889561b37e71abbbfcf982ef9dc5 | [] | no_license | gumilar19/Personal | 1c1fac036af3a4b9d4d425b7c8cb604271b94fd2 | c666b07c5184006aca8e6ad946cc98ef72dfe9fe | refs/heads/master | 2023-08-14T20:39:07.164849 | 2021-09-29T11:19:10 | 2021-09-29T11:19:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 2 13:20:18 2021
@author: farrospide
"""
import geopandas
import os
capa = 'AR'
capas = {'AR': 'AR_Maule_2020.shp',
'bocatomas': 'bocatomas_maule_2019.shp',
'canales': 'canales_maule_2020.shp',
'embalses': 'embalses_maule_2019.shp',
'... | [
"52244870+ccalvocm@users.noreply.github.com"
] | 52244870+ccalvocm@users.noreply.github.com |
1fd0af53eac520436cdf3b15c7edd444161ef91d | 1fddb12ae9b7db260b9161983a726f1528ece940 | /Part_01/Cap_06/Dicionario_6.8.py | 5d95567ab0c5801022bca7e33307b3a5fc824abe | [] | no_license | davicosta12/python_work | aecf642bbbf2a007fba159f305b4ab21ff00503f | 5df62d3ced25b7e04cda71846fd07862dda39b4c | refs/heads/master | 2023-04-23T09:49:31.923211 | 2021-04-27T00:31:42 | 2021-04-27T00:31:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | robson = {
'nome': 'robson',
'tipo': 'tartaruga',
'nome_dono': 'rafael',
}
caca = {
'nome': 'caca',
'tipo': 'coelho',
'nome_dono': 'adriana',
}
tigre = {
'nome': 'tigre',
'tipo': 'cachorro',
'nome_dono': 'andre',
}
fred = {
'nome': 'fred',
'tipo': 'pato',
'nome_dono': 'arthur',... | [
"deadspace24@hotmail.com"
] | deadspace24@hotmail.com |
f8758d76b7f134999084bcb8426f3f421709a19b | 9b527131c291b735a163226d1daac2397c25b712 | /Lecture4/2-distance-tree.py | bd286443e357d61f5375db52468b54f1708b668b | [] | no_license | arnabs542/BigO-Coding-material | dbc8895ec6370933069b2e40e0610d4b05dddcf2 | 3b31bddb1240a407aa22f8eec78956d06b42efbc | refs/heads/master | 2022-03-19T18:32:53.667852 | 2019-11-27T23:55:04 | 2019-11-27T23:55:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | import queue
def bfs(src, graph, visited, k, pairs):
depth_limit = k
q = queue.Queue()
q.put(src)
visited = [False for i in range(n)]
visited[src] = True
dist = [0 for i in range(n)]
dist[src] = 0
#print(src)
while not q.empty():
#print(q.queue)
v = q.get()
for w in graph[v]:
if not visited[w]:
... | [
"tranhoangkhuongvn@gmail.com"
] | tranhoangkhuongvn@gmail.com |
22f23ddbd63f9c05e37c7a1aa4f105c47396b17c | e3d969e2c9e4b57f4f7d58af5e44a00aa8fb15d3 | /0222 Count Complete Tree Nodes.py | da9c46f4ae6fb92a185b59a4c43b9e5dd1bc8177 | [
"MIT"
] | permissive | kevin-fang/leetcode | 2744ff01e791db6f60edf946ef71451fae92ef6f | 3958f888b30bb3e29916880ecec49b3870a0bea3 | refs/heads/master | 2022-12-15T07:50:01.056016 | 2020-09-10T03:47:53 | 2020-09-10T03:47:53 | 294,296,037 | 3 | 0 | MIT | 2020-09-10T03:47:39 | 2020-09-10T03:47:38 | null | UTF-8 | Python | false | false | 1,012 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def is_at_least_size(self, root, size, height):
while root and height > 1:
if size%(2**(... | [
"mdabedincs@gmail.com"
] | mdabedincs@gmail.com |
e7e0db085d8dd78ff2dc96e4c227f12b5bf8f211 | 120590571f03b6cf895f6d09cbfac757e5e31b48 | /utils.py | 9d7edf4c28c7b676921b3fa5b2777c3624233d98 | [] | no_license | gridl/pgsanity | df02dd5796a7e5753b1bc4899d7f8771504634bf | faebbd51579b19793e1eb8cab2d837413f220d11 | refs/heads/master | 2020-03-23T02:06:25.259249 | 2015-10-22T23:41:53 | 2015-10-22T23:41:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,644 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine
from sqlalchemy.sql import func
from sqlalchemy.types import DateTime
DEBUG = False
def debug... | [
"i.chernyavska@gmail.com"
] | i.chernyavska@gmail.com |
59175cba1a70f5b1729b24da66542c7fa7b030f0 | 31bc1bc11b46a894491bc32050c8c33a38f3332a | /python就业班/03-网络编程/05-echo服务器.py | e9594f449f8d47cc8b8c0a3876bfa33ead7f872c | [] | no_license | Julinus-LI/pythonNote | 48e49328330c4a7c411ce5ece2057157af149060 | 4e96fd0dd4bf474c4d0634ccbfe414b9addcbcbc | refs/heads/master | 2021-10-07T09:04:08.750567 | 2018-12-04T08:44:01 | 2018-12-04T08:44:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | #!/usr/bin/env python
# coding=utf-8
from socket import *
#1. 创建套接字
udpSocket = socket(AF_INET, SOCK_DGRAM)
#2. 绑定本地的相关信息
bindAddr = ('', 7788) # ip地址和端⼝号, ip⼀般不⽤写, 表示本机的任何⼀个ip
udpSocket.bind(bindAddr)
num = 1
while True:
#3. 等待接收对⽅发送的数据
recvData = udpSocket.recvfrom(1024) # 1024表示本次接收的最⼤字节数
#4. 将接收到的数... | [
"1374367549@qq.com"
] | 1374367549@qq.com |
0a2ab9947b827929e97bc178e8132610cfe3c7b9 | 556c9650d5df902e9bfd93c5799eb4281fc0bf01 | /scrapydd/commands/package.py | 86e80e22d4a726fb69fe0d60df67c583af5d3ef6 | [
"Apache-2.0"
] | permissive | kevenli/scrapydd | a7823b7dad53ec5b68f33ea1c40a934fbfe693ff | ba7854a69e756e5d0e6b5f835d8f36fe57f7f7c2 | refs/heads/master | 2023-08-19T00:44:00.339381 | 2020-09-16T08:52:32 | 2020-09-16T08:52:32 | 70,041,146 | 5 | 3 | Apache-2.0 | 2023-08-14T22:13:17 | 2016-10-05T08:08:29 | Python | UTF-8 | Python | false | false | 1,393 | py | from scrapy.utils.python import retry_on_eintr
from scrapy.utils.conf import get_config, closest_scrapy_cfg
import os
import sys
import glob
from subprocess import check_call
_SETUP_PY_TEMPLATE = """
# Automatically created by: scrapydd
from setuptools import setup, find_packages
setup(
name = '... | [
"pbleester@gmail.com"
] | pbleester@gmail.com |
557a06269790751ef210e2e72d731540d97d44e6 | 7b102f9c8f2e3f9240090d1d67af50333a2ba98d | /gbd_2019/risk_factors_code/st_gpr/orm_stgpr/lib/validation/parameter_validation.py | c08a7dc77be76ece3a241aa8e8511d1e0f7d4b75 | [] | 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 | 16,878 | py | import logging
import os
from typing import Any, Dict, List, Optional
import warnings
import numpy as np
from sqlalchemy import orm
import db_queries
from elmo.util import (
validate as elmo_validate,
common as elmo_common,
step_control as elmo_control
)
import gbd
from gbd.constants import decomp_step as... | [
"cheth@uw.edu"
] | cheth@uw.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.