blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
511fe8b79650e5129209a33e6c7d768af423c6e6 | 2a1f4c4900693c093b2fcf4f84efa60650ef1424 | /py/dome/backend/apps.py | fc8e9e1db58cfc9dbc955eb7df36461f862fe2b5 | [
"BSD-3-Clause"
] | permissive | bridder/factory | b925f494303728fa95017d1ba3ff40ac5cf6a2fd | a1b0fccd68987d8cd9c89710adc3c04b868347ec | refs/heads/master | 2023-08-10T18:51:08.988858 | 2021-09-21T03:25:28 | 2021-09-21T03:25:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | # Copyright 2016 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import unicode_literals
from django.apps import AppConfig
class BackendConfig(AppConfig):
name = 'backend'
| [
"chrome-bot@chromium.org"
] | chrome-bot@chromium.org |
bfa4051b7daa99e35be4c69d94d185b37ba84f1b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_035/ch37_2020_03_25_14_04_04_120072.py | a165e2f3c23563f7b30d6684819d8aca366bc2cd | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | Senha = True
resposta = input("Qual é a senha")
while Senha:
if resposta=="desisto":
Senha = False
else:
Senha = True
return resposta
print("Você acertou a senha!") | [
"you@example.com"
] | you@example.com |
e56f0bd33da3d74267fd6ab2971ead15aa9263b8 | 1c488f486d14c19e19af1a46474af224498be193 | /experimental/serengeti/blankIBCC.py | 649a35a733279dc7605d90eb8296b4e245101794 | [
"Apache-2.0"
] | permissive | JiaminXuan/aggregation | fc2117494372428adeed85a9a413e2ff47244664 | 9a7ecbc2d4b143a73e48b1826b3727b6976fa770 | refs/heads/master | 2020-12-11T01:49:42.977664 | 2015-05-22T16:21:15 | 2015-05-22T16:21:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,087 | py | #!/usr/bin/env python
__author__ = 'greghines'
import numpy as np
import matplotlib.pyplot as plt
import csv
import sys
import os
import pymongo
import matplotlib.cbook as cbook
sys.path.append("/home/greg/github/pyIBCC/python")
import ibcc
client = pymongo.MongoClient()
db = client['serengeti_2014-07-28']
collecti... | [
"greg@zooniverse.org"
] | greg@zooniverse.org |
52b11a09076f3904dc2f45e1e998edf62a885d87 | aae0432eede626a0ac39ff6d81234e82f8d678c2 | /leetcode/algorithm/4.median-of-two-sorted-arrays.py | 63670a63bf49ee10613895df33ff3b9ae3388fc8 | [] | no_license | KIDJourney/algorithm | 81c00186a6dfdc278df513d25fad75c78eb1bf68 | e1cf8e12050b9f1419a734ff93f9c626fc10bfe0 | refs/heads/master | 2022-11-24T09:30:16.692316 | 2022-11-06T09:33:51 | 2022-11-06T09:33:51 | 40,428,125 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | #
# @lc app=leetcode id=4 lang=python3
#
# [4] Median of Two Sorted Arrays
#
# @lc code=start
class Solution:
def findMedianSortedArrays(self, nums1, nums2) -> float:
return self.easy(nums1, nums2)
def easy(self, nums1, nums2):
result = []
idx1, idx2 = 0, 0
while True:
... | [
"kingdeadfish@qq.com"
] | kingdeadfish@qq.com |
3fd8971af0057cfe6f9120d8654640df8c971099 | 99e76e9e4c8031418c4c50217b48adf1d880cf2f | /setup.py | 6974fdc5b21fd1b544eac798d4363569ad4198d7 | [
"MIT"
] | permissive | grow/grow-ext-responsive-styles | d75a5abb070613641e3da9f3f4cf7dc07e88c51f | bb3d8f68edc1f3e1bdf508bb5df8d5b296574e9b | refs/heads/master | 2021-01-03T14:04:15.882718 | 2020-05-20T20:38:09 | 2020-05-20T20:38:09 | 240,096,948 | 0 | 0 | MIT | 2020-05-20T20:34:58 | 2020-02-12T19:27:42 | HTML | UTF-8 | Python | false | false | 349 | py | from setuptools import setup
setup(
name='grow-ext-responsive-styles',
version='1.0.0',
zip_safe=False,
license='MIT',
author='Grow Authors',
author_email='hello@grow.io',
include_package_data=True,
packages=[
'responsive_styles',
],
package_data={
'responsive_s... | [
"jeremydw@gmail.com"
] | jeremydw@gmail.com |
4f21bdabf36e65773d6c9289dad471ce6aa16e31 | 178ae62be7de20a50f96361e80bdcff5a5493ae2 | /koica/templatetags/koica.py | 36b3a706fcb6f684e4f9896f13b5cc8b25353d75 | [
"MIT"
] | permissive | synw/django-koica | a043800c15fad69f2024557e62fcf0ac4808ffae | d8b1c9fa70c428f0aa0db0c523524e9d2ef27377 | refs/heads/master | 2021-01-10T03:15:24.570691 | 2015-12-09T14:55:29 | 2015-12-09T14:55:29 | 46,188,691 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | from django import template
from koica.utils import sanitize_html
register = template.Library()
@register.filter(is_safe=True)
def remove_pre(value):
return sanitize_html(value, remove_pre=True) | [
"synwe@yahoo.fr"
] | synwe@yahoo.fr |
8e86bc7463a15ee8ba540cebbdc6dbebe01e0474 | 461d7bf019b9c7a90d15b3de05891291539933c9 | /bip_utils/bip39/bip39_entropy_generator.py | 47c75cf8f3c76ff3b2cb1f678605ec4780e1d6e9 | [
"MIT"
] | permissive | renauddahou/bip_utils | 5c21503c82644b57ddf56735841a21b6306a95fc | b04f9ef493a5b57983412c0ce460a9ca05ee1f50 | refs/heads/master | 2023-07-16T05:08:45.042084 | 2021-08-19T09:33:03 | 2021-08-19T09:33:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,419 | py | # Copyright (c) 2021 Emanuele Bellocchia
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish,... | [
"54482000+ebellocchia@users.noreply.github.com"
] | 54482000+ebellocchia@users.noreply.github.com |
70b411ba66521bde662ff464e6ab782442fa0581 | 1508f7da93705839660e4fdfb87df7a9664bf087 | /a10API/a10API/flask/bin/migrate | bff34539b04e8d820b8b866d8ef3ee3bbc9995fb | [] | no_license | Younglu125/A10_Networks | 1a1ecebb28dd225f6a1f901a7c28350300df356d | 78a177ae4c8638d58dc873e4b1c589a1d5aaa717 | refs/heads/master | 2020-06-17T00:35:30.325740 | 2016-03-21T18:17:30 | 2016-03-21T18:17:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | #!/home/echou/a10API/flask/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'sqlalchemy-migrate==0.7.2','console_scripts','migrate'
__requires__ = 'sqlalchemy-migrate==0.7.2'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('sqlalchemy-migrate==0.7.2', 'con... | [
"info@pythonicneteng.com"
] | info@pythonicneteng.com | |
3ad99e3d7e9841da8f65b2003210f661dc96df4a | 0296bc69a0d9608ed826ad7a719395f019df098f | /Tools/Compare_images.py | f4ba586d2dfa3fcae52e277676f2b4a82ffdf59a | [] | no_license | jcn16/Blender_HDRmap_render | c0486a77e04c5b41a6f75f123dbdb3d10c682367 | 50e6cdb79fef83081de9830e7105dd425a235a9e | refs/heads/main | 2023-07-19T22:22:53.622052 | 2021-08-20T06:29:10 | 2021-08-20T06:29:10 | 377,757,283 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | import cv2
import numpy as np
def tianchong(img):
m = img.shape[0]
n = img.shape[1]
append = int(np.ceil(abs(m - n) / 2))
if m > n:
constant = cv2.copyMakeBorder(img, 0, 0, append, append, cv2.BORDER_CONSTANT, value=(0, 0, 0))
else:
constant = cv2.copyMakeBorder(img, append, append... | [
"591599635@qq.com"
] | 591599635@qq.com |
f7675475bf4180ae4b05a6af1aebe4521077a136 | e131e752d826ae698e12e7bc0583362741f9d942 | /AWS.py | c886890f56cf208b48066e6c151d54611fc0b574 | [] | no_license | abalberchak/TouchFace | ba30565be91b848126524aa47377789253370e04 | d093ece8890b68c72e0855a024d908105df99b94 | refs/heads/master | 2021-01-11T01:43:35.067808 | 2016-09-29T03:41:13 | 2016-09-29T03:41:13 | 69,530,129 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | #----------------------------------------- Intent Schema Below:------------------------------
{
"intents": [
{
"intent": "AMAZON.ResumeIntent"
},
{
"intent": "AMAZON.PauseIntent"
},
{
"intent": "DojoInfoIntent"
},
{
... | [
"minhpn.org.ec@gmail.com"
] | minhpn.org.ec@gmail.com |
af935ba661ffbdb6c3921e41c3c65c2ba9235ccd | 843d9f17acea5cfdcc5882cf8b46da82160c251c | /adafruit_stepper.py | 8e9319c17ea13b32312acbe50d018791ab2ea40a | [] | no_license | gunny26/raspberry | 7c1da63785c86412af9fa467ea231b19a97f4384 | e4eb0d2f537b319d41b6c50b59e69fb297c62d25 | refs/heads/master | 2016-09-06T14:02:30.122102 | 2014-01-29T16:31:08 | 2014-01-29T16:31:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | import RPi.GPIO as GPIO
import time
GPIO.cleanup()
GPIO.setmode(GPIO.BCM)
enable_pin = 18
coil_A_1_pin = 4
coil_A_2_pin = 17
coil_B_1_pin = 23
coil_B_2_pin = 24
GPIO.setup(enable_pin, GPIO.OUT)
GPIO.setup(coil_A_1_pin, GPIO.OUT)
GPIO.setup(coil_A_2_pin, GPIO.OUT)
GPIO.setup(coil_B_1_pin, GPIO.OUT)
GPIO.setup(coil_B_... | [
"arthur.messner@gmail.com"
] | arthur.messner@gmail.com |
a7072cf5db1b5527272336c6191bab4e1770b928 | c840f190b3540bf212de2c70563e57da278fa9cb | /hyacinth.py | 055e735da50162825883a5c29dfd69fcd0f7242d | [] | no_license | edelooff/hyacinth | b768a871d476dd120f7d2d1acb039a6a9ebf2e19 | 0a6dd15fa1b1357afa566f924ad27b744582464b | refs/heads/master | 2022-04-16T13:24:18.986246 | 2020-04-01T08:15:36 | 2020-04-01T08:15:36 | 251,756,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,538 | py | from collections import (
Counter,
defaultdict)
import random
import re
import sys
DESIGN = re.compile(r'''
(?P<design>[A-Z])
(?P<size>[SL])
(?P<flowers>(:?\d+[a-z])*) # The specification is fuzzy on 1+ or 0+
(?P<total>\d+)''', re.VERBOSE)
DESIGN_FLOWER = re.compile(r'''
(?P<count>\d+)
... | [
"elmer.delooff@gmail.com"
] | elmer.delooff@gmail.com |
db365ccaef28c337a5d9c69e8c10f082020063ee | c940bcb25e1ed315263b25cbdac49cc4bf92cac1 | /env/vkviewer/python/georef/georeferenceutils.py | 92de981594a95d6365cfb3fdb3f7e7f015ad83b1 | [] | no_license | kwaltr/vkviewer | 281a3f1b5b08a18a89f232ecd096cea44faca58b | 01d64df0a9266c65e0c3fb223e073ef384281bdc | refs/heads/master | 2021-01-16T22:09:41.821531 | 2014-02-07T17:19:04 | 2014-02-07T17:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,844 | py | '''
Created on Oct 15, 2013
@author: mendt
'''
import subprocess
""" function: parseYSize
@param - imageFile {String} - path to a image file
@return - {Integer} - value which represents the y size of the file
This function parse the x,y size of a given image file """
def parseXYSize(imageFile):
... | [
"jacobmendt@googlemail.com"
] | jacobmendt@googlemail.com |
57c8c4f7a53557e403719802170a2e4a7bd660c6 | 9ecd7568b6e4f0f55af7fc865451ac40038be3c4 | /tianlikai/hubei/enshi_zhongbiao.py | aa1eb42ebd5cbeb6d019ac1072c18bf552fa29cc | [] | no_license | jasonTLK/scrapy | f5ac6e575e902c077a07dc0eb9d228506f1a173f | 2de8245fbc8731cfd868bbd91168e26271045300 | refs/heads/master | 2021-01-20T04:22:23.080864 | 2017-04-28T07:46:29 | 2017-04-28T07:46:29 | 89,681,374 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,967 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy import Request
from scrapy.selector import Selector
try:
from scrapy.spiders import Spider
except:
from scrapy.spiders import BaseSpider as Spider
import datetime
from items.biding import biding_gov
from utils.toDB import *
# 湖北恩施招投标网站
# 中标信息
class hz_gov_Spi... | [
"18723163167@163.com"
] | 18723163167@163.com |
8bf02c256d73472a61e065933f71d8e075957de5 | a3d1e8a67ed43e1bea59180cc51c49f25a961a49 | /scripts/dg2dotty | 1aee7a8c68572dcdabdf99da9567433445ae7d8b | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | WladimirSidorenko/TextNormalization | 38b076d88a2de40dae72dc8b4096e354b774f2f4 | ac645fb41260b86491b17fbc50e5ea3300dc28b7 | refs/heads/master | 2020-04-14T16:48:42.541883 | 2019-09-29T23:38:28 | 2019-09-29T23:38:28 | 163,962,092 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,209 | #!/usr/bin/env python2.7
# -*- coding: utf-8; -*-
"""
Utility for representing DG trees in DOTTY format.
Read a DG tree in CONLL-2009 format and output the read tree in GRAPHVIZ
format.
Input format (meaning of columns):
ID FORM LEMMA PLEMMA POS PPOS FEAT PFEAT HEAD PHEAD DEPREL PDEPREL FILLPRED PRED APREDs
0 1 ... | [
"wlsidorenko@gmail.com"
] | wlsidorenko@gmail.com | |
e61d248ab9d60f7194933ccc8cf31c297f485cc2 | 98f1a0bfa5b20a0b81e9e555d76e706c62d949c9 | /examples/pytorch/dimenet/modules/envelope.py | b9d89620f674a562a255f52694e36235733374cc | [
"Apache-2.0"
] | permissive | dmlc/dgl | 3a8fbca3a7f0e9adf6e69679ad62948df48dfc42 | bbc8ff6261f2e0d2b5982e992b6fbe545e2a4aa1 | refs/heads/master | 2023-08-31T16:33:21.139163 | 2023-08-31T07:49:22 | 2023-08-31T07:49:22 | 130,375,797 | 12,631 | 3,482 | Apache-2.0 | 2023-09-14T15:48:24 | 2018-04-20T14:49:09 | Python | UTF-8 | Python | false | false | 610 | py | import torch.nn as nn
class Envelope(nn.Module):
"""
Envelope function that ensures a smooth cutoff
"""
def __init__(self, exponent):
super(Envelope, self).__init__()
self.p = exponent + 1
self.a = -(self.p + 1) * (self.p + 2) / 2
self.b = self.p * (self.p + 2)
... | [
"noreply@github.com"
] | dmlc.noreply@github.com |
c85c091a3229318315dafe45d892f4fe27ad63c5 | c8efab9c9f5cc7d6a16d319f839e14b6e5d40c34 | /source/All_Solutions/0480.滑动窗口中位数/0480-滑动窗口中位数.py | b6a27a3906d116af6ae8695a4eafea53559a93c4 | [
"MIT"
] | permissive | zhangwang0537/LeetCode-Notebook | 73e4a4f2c90738dea4a8b77883b6f2c59e02e9c1 | 1dbd18114ed688ddeaa3ee83181d373dcc1429e5 | refs/heads/master | 2022-11-13T21:08:20.343562 | 2020-04-09T03:11:51 | 2020-04-09T03:11:51 | 277,572,643 | 0 | 0 | MIT | 2020-07-06T14:59:57 | 2020-07-06T14:59:56 | null | UTF-8 | Python | false | false | 940 | py | import bisect
class Solution:
def medianSlidingWindow(self, nums: List[int], k: int) -> List[float]:
"""
My solution, using sorted list
Time: O(nlog(k))
Space: O(n+k)
"""
res = []
if not nums or not k:
return res
def append_m... | [
"mzm@mail.dlut.edu.cn"
] | mzm@mail.dlut.edu.cn |
ecc631a48f59fcc28412207e3d56e26f26d614f1 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/128/usersdata/222/33411/submittedfiles/al6.py | a4e5c49916c0a47643dc35834d5f8c7cd5aca7c0 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # -*- coding: utf-8 -*-
a=int(input('Digite a:'))
contador=0
for i in range(2,a,1):
if n%i==0:
contador=contador+1
print(i)
for i in range(2,a,1):
if n%1==0:
contador=contador+1
print(i)
if contador==0:
print('Primo')
else:
print('Não primo')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ef232dab5bc20bf3a6e6d2877ede262ab60bd9c8 | 99249dad36df26a712ae8d900041d53acf3901ea | /settings/configurations/LCLS_settings.py | 0f4d71a15a5f657650c92536b3cfb5a54b7d163c | [
"MIT"
] | permissive | bopopescu/Lauecollect | f1f79c2cc5ff106df0dedbd6939ec92630d2b305 | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | refs/heads/master | 2022-11-29T00:40:28.384831 | 2019-06-05T01:21:36 | 2019-06-05T01:21:36 | 280,989,300 | 0 | 0 | MIT | 2020-07-20T02:03:22 | 2020-07-20T02:03:22 | null | UTF-8 | Python | false | false | 1,034 | py | MicroscopeCamera.ImageWindow.Center = (679.0, 512.0)
MicroscopeCamera.Mirror = False
MicroscopeCamera.NominalPixelSize = 0.000517
MicroscopeCamera.Orientation = -90
MicroscopeCamera.camera.IP_addr = '172.21.46.202'
MicroscopeCamera.x_scale = -1.0
MicroscopeCamera.y_scale = 1.0
MicroscopeCamera.z_scale = -1.0
WideFieldC... | [
"friedrich.schotte@gmail.com"
] | friedrich.schotte@gmail.com |
09f7ff38257927f817ca76e38b02d8f4f94da9fd | 730707fdefc2934929e1309cfbb0484d62b4bc34 | /backend/home/migrations/0001_load_initial_data.py | bc0ac08ee26bc6af244f1c1862878b762c7d3a2e | [] | no_license | crowdbotics-apps/tpl-account-securty-27301 | 885f78b6256e3da6733c534cb85b89f797476e5f | 44a580b64f14f7598b9e0c7a513976795992b15d | refs/heads/master | 2023-04-26T15:38:35.791087 | 2021-05-23T22:55:42 | 2021-05-23T22:55:42 | 370,173,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "tpl-account-securty-27301.botics.co"
site_params = {
"name": "tpl account securty page",
}
if custom_domain:
site_params["domain"] = custom_domain
Si... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
557dc77ea9e99dbf933860debf7334305d13e6aa | eff5f0a2470c7023f16f6962cfea35518ec0b89c | /Storage_Xs and Os Champion.py | 7d81e185c2aae6377e67314d2e8577330d0932e8 | [] | no_license | olegJF/Checkio | 94ea70b9ee8547e3b3991d17c4f75aed2c2bab2f | fc51a7244e16d8d0a97d3bb01218778db1d946aa | refs/heads/master | 2021-01-11T00:46:42.564688 | 2020-03-02T13:36:02 | 2020-03-02T13:36:02 | 70,490,008 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,829 | py | # -*- coding: utf-8 -*-
def x_and_o(grid, mark):
X_vs_O = {'X':'O', 'O':'X'}
def winner(grid, mark):
WINNER_WAYS = ((0, 1, 2), (3, 4, 5),
(6, 7, 8), (0, 3, 6),
(1, 4, 7), (2, 5, 8),
(0, 4, 8), (2, 4, 6)
)
... | [
"jf2@ua.fm"
] | jf2@ua.fm |
bc38069aef7b32c7c351685d0b2122f0d604529e | 2f5d221d5cd423f07da50ed8be9668d811e550b4 | /airtest/core/ios/fake_minitouch.py | b5eb7986af962fc31648c001e4259ad16c8af15a | [
"Apache-2.0"
] | permissive | Pactortester/Airtest | d1db25498591992dee525b2ceeb45de9239b319f | 18e57ae2bbde3f2b95c32f09e214fdf4aec41330 | refs/heads/master | 2022-06-03T22:52:54.939200 | 2020-06-29T01:01:30 | 2020-06-29T01:01:30 | 275,080,743 | 1 | 0 | Apache-2.0 | 2020-06-26T05:28:02 | 2020-06-26T05:28:02 | null | UTF-8 | Python | false | false | 1,979 | py | # coding=utf-8
import subprocess
import os
import re
import struct
import logging
from airtest.utils.logger import get_logger
from airtest.utils.nbsp import NonBlockingStreamReader
from airtest.utils.safesocket import SafeSocket
LOGGING = get_logger(__name__)
class fakeMiniTouch(object):
lastDown = {'x': None, '... | [
"lxn3032@corp.netease.com"
] | lxn3032@corp.netease.com |
7066f6fd5882ec68a145a9b5116e7c5eff2d33f2 | a854f81f3ca0d6e6d6cf60662d05bc301465e28c | /backend/booking/migrations/0001_initial.py | 4d479654287d6f6f7b495a5050811e171d37cb04 | [] | no_license | crowdbotics-apps/lavadoras-19637 | 7f99e2046a6a92cdcfaec052eb9eadfd807193fd | 577d0da2626867a8a1b27d2df386c8598e4adc6d | refs/heads/master | 2022-12-02T21:15:17.103593 | 2020-08-18T08:28:47 | 2020-08-18T08:28:47 | 288,397,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,317 | py | # Generated by Django 2.2.15 on 2020-08-18 08:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('location', '0001_initial'),
('taxi_profile', '0001_initial'),
]
operations = [
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
75d146601fcfb74873d0571bc7d1e05b92491d12 | 8f0b0ec0a0a2db00e2134b62a1515f0777d69060 | /scripts/study_case/ID_32/0504_softmax_regression.py | 5d1daab24d438285e89be0a81cd2092dde31f122 | [
"Apache-2.0"
] | permissive | Liang813/GRIST | 2add5b4620c3d4207e7661eba20a79cfcb0022b5 | 544e843c5430abdd58138cdf1c79dcf240168a5f | refs/heads/main | 2023-06-09T19:07:03.995094 | 2021-06-30T05:12:19 | 2021-06-30T05:12:19 | 429,016,034 | 0 | 0 | Apache-2.0 | 2021-11-17T11:19:48 | 2021-11-17T11:19:47 | null | UTF-8 | Python | false | false | 1,389 | py | import myutil as mu
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import sys
sys.path.append("/data")
torch.manual_seed(1)
x_train = [[1, 2, 1, 1],
[2, 1, 3, 2],
[3, 1, 3, 4],
[4, 1, 5, 5],
[1, 7, 5, 5],
[1, 2, 5, ... | [
"793679547@qq.com"
] | 793679547@qq.com |
f3342ae253a6c3ea4cdf0a8b6733c66468df32a0 | b47a907e824b52a6ee02dfb6387d24fa4d7fe88f | /config/settings.py | 711faa6f8b40f97ba26f9110ae9b2a5e620c989a | [] | no_license | hiroshi-higashiyama/DJANGO-KAKEIBO | 413a883fdef2571cacbd6c8679e63a6aecab7ae9 | 564c6047fcc6f6bb4a45b2eec121df619d158952 | refs/heads/master | 2022-12-29T19:53:15.186934 | 2020-09-21T01:04:10 | 2020-09-21T01:04:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,180 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"s20840011@gmail.com"
] | s20840011@gmail.com |
6e5b22d94e41c54bed477e9c213add68291fd728 | d85cc746428e787254455c80b66a7309aa715e24 | /demo_odoo_tutorial/models/models.py | fc9e8beafbb712f17fd48d60021152bfda775a67 | [
"MIT"
] | permissive | AllenHuang101/odoo-demo-addons-tutorial | 2ef7d47432a2530f1e704f86cba78e3e975ca0f3 | e719594bc42e3a9b273f5b37980ac61773702ab9 | refs/heads/master | 2023-03-28T03:37:46.338483 | 2021-03-29T08:44:22 | 2021-03-29T08:44:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,829 | py | from odoo import models, fields, api
from odoo.exceptions import UserError, ValidationError
class DemoOdooTutorial(models.Model):
_name = 'demo.odoo.tutorial'
_description = 'Demo Odoo Tutorial'
_inherit = ['mail.thread', 'mail.activity.mixin'] # track_visibility
name = fields.Char('Description', requ... | [
"twtrubiks@gmail.com"
] | twtrubiks@gmail.com |
271e0a82482eb25eaca4b7f12e7efeb08508fb7a | 9206e405e9be5f80a08e78b59d1cb79c519ae515 | /algorithms/codeforces/the_number_of_even_pairs/main.py | 7b7aac218751e1de472854d40e92a53218a4c619 | [] | no_license | mfbx9da4/mfbx9da4.github.io | ac4e34f0e269fb285e4fc4e727b8564b5db1ce3b | 0ea1a0d56a649de3ca7fde2d81b626aee0595b2c | refs/heads/master | 2023-04-13T22:15:19.426967 | 2023-04-12T12:14:40 | 2023-04-12T12:14:40 | 16,823,428 | 2 | 0 | null | 2022-12-12T04:36:08 | 2014-02-14T01:30:20 | SCSS | UTF-8 | Python | false | false | 738 | py | """
"""
from math import factorial
def int_as_array(num): return list(map(int, [y for y in str(num)]))
def array_as_int(arr): return int(''.join(map(str, arr)))
def read_int(): return int(input())
def read_array(): return list(map(int, input().split(' ')))
def array_to_string(arr, sep=' '): return sep.join(m... | [
"dalberto.adler@gmail.com"
] | dalberto.adler@gmail.com |
fb483adff09210c3a8dea90d203b5b070f3768fb | 84379e15e54ba79b7e63c1fceecf712b46f22977 | /apps/decks/migrations/0016_auto_20181011_1715.py | 2ac96bd86b326bc8447c68610a43fbba4554b4f0 | [] | no_license | CoderEnko007/HearthStoneStationBackend | a1d74c324233ebd617ad01df13bc609d1f1aa2f6 | 6cc92cb806f19f2a2a0596645028cfe2fa5895d6 | refs/heads/master | 2022-12-11T23:20:24.335737 | 2022-09-18T07:04:08 | 2022-09-18T07:04:08 | 144,392,864 | 0 | 0 | null | 2022-12-08T02:22:42 | 2018-08-11T14:40:48 | JavaScript | UTF-8 | Python | false | false | 831 | py | # Generated by Django 2.0.4 on 2018-10-11 17:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('decks', '0015_auto_20180928_1019'),
]
operations = [
migrations.AddField(
model_name='decks',
name='real_game_count'... | [
"yf381966217@163.com"
] | yf381966217@163.com |
47693d0710e9c072cad944e857787701b982ce3d | 0ea12ae71b3863a8279fd7200e61f5c40dc3dcb6 | /image_bosch_detect_ssd_mobile.py | 92fd277b6022c6d929dd37d5dae50ebf4863411d | [
"MIT"
] | permissive | scrambleegg7/Traffic-Light-Classification | 7dafb32f43bf1c73d62c645105cdc414ebb0cf44 | 2a9f6b8272866f289963905b162c35058ce6a234 | refs/heads/master | 2020-04-03T02:58:44.729521 | 2018-10-28T14:57:44 | 2018-10-28T14:57:44 | 154,973,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,201 | py | import tensorflow as tf
import numpy as np
import datetime
import time
import os, sys
import cv2
from PIL import Image
import yaml
from glob import glob
try:
import matplotlib
matplotlib.use('TkAgg')
finally:
from matplotlib import pyplot as plt
from object_detection.utils import visualization_utils as ... | [
"donchan@milano.local"
] | donchan@milano.local |
66ee42bf083364ea3975225cfe14efbc76c1c287 | 8760f182049d4caf554c02b935684f56f6a0b39a | /boar/facebook_connect/migrations/0002_profile_onetoone_to_user.py | ed79636574a8ae85a20dfee1a85138d28e7f7b15 | [
"BSD-3-Clause"
] | permissive | boar/boar | c674bc65623ee361af31c7569dd16c6eb8da3b03 | 6772ad31ee5bb910e56e650cc201a476adf216bc | refs/heads/master | 2020-06-09T06:59:31.658154 | 2012-02-28T19:28:58 | 2012-02-28T19:28:58 | 1,734,103 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,352 | py |
from south.db import db
from django.db import models
from boar.facebook_connect.models import *
class Migration:
def forwards(self, orm):
# Changing field 'FacebookProfile.user'
# (to signature: django.db.models.fields.related.OneToOneField(to=orm['auth.User'], unique=True))
... | [
"ben@firshman.co.uk"
] | ben@firshman.co.uk |
12f6cd8c0d13ddb5246553b8acd29a2595a7a282 | 82ca64c6a819f3e2cb41057f2df9f758cedee28a | /BlockChain/venv/bin/python-config | ae068f06249b1f99eb784109dbf07bbc241050d5 | [] | no_license | seanxxxx/coinx | 619a18f9b2d7f83076083055bfccf0c5e404f665 | eb1a7ed430c546cf02ddcc79f436200b218d5244 | refs/heads/master | 2023-01-28T03:09:10.358463 | 2018-09-07T07:49:19 | 2018-09-07T07:49:19 | 146,564,986 | 0 | 1 | null | 2022-12-20T14:20:06 | 2018-08-29T07:52:37 | Python | UTF-8 | Python | false | false | 2,363 | #!/Users/xuanxu/PycharmProjects/BlockChain/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if ... | [
"xuxuan@lanlingdai.net"
] | xuxuan@lanlingdai.net | |
cd50fc8b715db9544fca346be9d2f59be5483792 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/FrogRiver_20200723134656.py | b53537eb14ce4472bd411f219e101697e4edb59b | [] | 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 | 225 | py | def Frog(X,A):
# given x where the frog wants to go
# find earliest time
# once you get the second that has that position
# return the second
pos = set()
print(Frog(5,[1,3,1,4,2,3,5,4]))
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
b37888fa6385baeb41115a66b55bec5886b14fbc | 387ad3775fad21d2d8ffa3c84683d9205b6e697d | /testsuite/trunk/el/el_test_036.py | cfab23e5ff03600c188c22c0c83bb31985905443 | [] | no_license | kodiyalashetty/test_iot | 916088ceecffc17d2b6a78d49f7ea0bbd0a6d0b7 | 0ae3c2ea6081778e1005c40a9a3f6d4404a08797 | refs/heads/master | 2020-03-22T11:53:21.204497 | 2018-03-09T01:43:41 | 2018-03-09T01:43:41 | 140,002,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | #!/usr/bin/env python
"""
(C) Copyright IBM Corp. 2008
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This
file and program are licensed under a BSD style license. See
the Copy... | [
"suntrupth@a44bbd40-eb13-0410-a9b2-f80f2f72fa26"
] | suntrupth@a44bbd40-eb13-0410-a9b2-f80f2f72fa26 |
f6c327232f55a5253a539568cc9c8d10d656384d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02686/s642611525.py | 914bb9607791cee5d353d156d9afb343faf395b3 | [] | 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 | 981 | py | def main():
N = int(input())
up_lines = []
down_lines = []
for i in range(N):
s = input()
height = 0
bottom = 0
for c in s:
if c == "(":
height += 1
else:
height -= 1
bottom = min(bottom, height)
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c19012af2e5fe52651cc00b9775abc1d3e4e6ea1 | a71d5838e292e2c0c7371f7fc7870c7018820ae1 | /day03/03_pie.py | 71c8ec39a03c52234f30d2660394d2f3d37a995f | [] | no_license | skywalkerqwer/DataScience | be91541c3da383d15ee52d0101d2dbb0289c2fde | 4cfd42f3a9795e295393cdb045852d46e99b6e59 | refs/heads/master | 2020-06-17T11:41:40.113864 | 2019-07-15T09:49:40 | 2019-07-15T09:49:40 | 195,913,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | """
绘制饼状图
"""
import numpy as np
import matplotlib.pyplot as mp
labels = ['Python', 'JavaScript', 'C++', 'Java', 'PHP']
values = [26, 17, 21, 29, 11]
spaces = [0.05, 0.01, 0.01, 0.01, 0.01]
colors = ['dodgerblue', 'orangered', 'limegreen', 'violet', 'gold']
mp.figure('Pie Chart', facecolor='lightgray')
mp.title('Lang... | [
"15902162780@163.com"
] | 15902162780@163.com |
0da39b2b6595f0a25f70e3735197ce8c382da45b | c7522a46908dfa0556ed6e2fe584fd7124ee5cdc | /ApplicationUsers/views.py | 80dd9c405729e423ad243becbd6d5c57ca1b5930 | [] | no_license | stheartsachu/Eventlee | 461cf35961a7f294229d6c611e58a09d9f4e1eb5 | 6b67dfc873203f1322c16664923ffe5a760d50ed | refs/heads/master | 2022-11-13T14:48:39.097718 | 2020-06-30T04:54:45 | 2020-06-30T04:54:45 | 276,000,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,806 | py | from django.shortcuts import render,HttpResponse,redirect,HttpResponseRedirect
from ApplicationUsers.form import ApplicationuserForm
# Create your views here.
from ApplicationUsers.models import users
def home(request):
return render(request,"index.html")
def Contact(request):
return render(request,"contact.htm... | [
"seartsachu@gmail.com"
] | seartsachu@gmail.com |
7bed90a14fc2ce416d14e56c5bf265e8b646487f | 7d3b096f803d1a47ad71a5c8aab30ba3aa67828c | /chibi_file/__init__.py | fe22184683cfdc5c75ca908282fad7a086a9d2bc | [] | no_license | dem4ply/chibi_file | 462244dac712d88915f2b931c5f0822f6d1fa937 | d27cef794512014b1602486edd0235052b38087a | refs/heads/master | 2020-12-03T05:09:15.825690 | 2017-08-23T09:36:57 | 2017-08-23T09:36:57 | 95,737,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | import mmap
import os
import shutil
def current_dir():
return os.getcwd()
def inflate_dir( src ):
if '~' in src:
return os.path.expanduser( src )
else:
return os.path.abspath( src )
def is_dir( src ):
return os.path.isdir( src )
def is_file( src ):
return os.path.isfile( src ... | [
"dem4ply@gmail.com"
] | dem4ply@gmail.com |
b7e89b7513c6151d39dc8adad4fee33e8afcf8f1 | 09cc8367edb92c2f02a0cc1c95a8290ff0f52646 | /ipypublish_plugins/example_new_plugin.py | 2fe177802ec9fd3259ca9ac9ac002ef160f3c1f2 | [
"BSD-3-Clause"
] | permissive | annefou/ipypublish | 7e80153316ab572a348afe26d309c2a9ee0fb52b | 917c7f2e84be006605de1cf8851ec13d1a163b24 | refs/heads/master | 2020-04-13T16:08:59.845707 | 2018-07-30T18:26:12 | 2018-07-30T18:26:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py | """html in standard nbconvert format, but with
- a table of contents
- toggle buttons for showing/hiding code & output cells
- converts or removes (if no converter) latex tags (like \cite{abc}, \ref{})
"""
from ipypublish.filters.replace_string import replace_string
from ipypublish.html.create_tpl import create_tpl
f... | [
"chrisj_sewell@hotmail.com"
] | chrisj_sewell@hotmail.com |
6846461a15b491de3c42e18d6aa4d646d87bad7a | 4bd5e9b67d98bfcc9611bd8b774c9ab9f4f4d446 | /Python基础笔记/13/代码/3.多继承.py | 1693fc8f7b66401a95f44f287cfcb7d4c149f841 | [] | no_license | zhenguo96/test1 | fe21510aea7feb674e52fd7a86d4177666f841c5 | 0d8de7e73e7e635d26462a0bc53c773d999498be | refs/heads/master | 2020-05-03T13:09:53.592103 | 2019-04-06T07:08:47 | 2019-04-06T07:08:47 | 178,646,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # # 多继承
# class Base1:
# def __init__(self,name):
# self.name = name
# def t1(self):
# print("Base1")
#
# class Base2:
# def __init__(self,name):
# self.name = name
# def t2(self):
# print("Base2")
#
# class Base3:
# def __init__(self, name):
# ... | [
"1148421588@qq.com"
] | 1148421588@qq.com |
c02698bcbb5677d5aa1cdf687d66869a34eea59c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02742/s024664971.py | 37251941a04a71608f69d756b2f8eb6bf24e8a52 | [] | 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 | 259 | py | H, W = [int(_) for _ in input().split()]
if H == 1 or W == 1:
ans = 1
else:
ans = (H // 2) * (W // 2) * 2
if H % 2 == 1:
ans += W // 2
if W % 2 == 1:
ans += H // 2
if H % 2 == 1 and W % 2 == 1:
ans += 1
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d6e8faee78b555a964bcdabf9d7b434fba09a3c0 | b96f1bad8a74d31d8ff79bc955813bfcd17d7b26 | /24. Swap Nodes in Pairs.py | 75e6d9a0451fd14aadd62f665ddbd922cfa44910 | [] | no_license | brianhu0716/LeetCode-Solution | e7177af15e84e833ce8ab05027683ed4ac489643 | 158a4359c90b723545b22c4898047274cc1b80a6 | refs/heads/main | 2023-07-11T05:29:56.783795 | 2021-08-28T12:53:14 | 2021-08-28T12:53:14 | 374,991,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 11 15:06:14 2021
@author: Brian
"""
'''
交換相鄰兩node的值即可
'''
class Solution:
def swapPairs(self, head: ListNode) -> ListNode:
while not head or not head.next : return head
ptr = head
while ptr and ptr.next:
temp = ptr.val
... | [
"85205343+brianhu0716@users.noreply.github.com"
] | 85205343+brianhu0716@users.noreply.github.com |
7374ce7e683ccf1d4913b6f64fb04fb50b016df7 | 6c686d118e6d3072b3694c02c684a6619d4dd03e | /rsdns/tests/test_client.py | cb34bcfaef1aa74df689f00debfbff8959f697df | [
"Apache-2.0"
] | permissive | masthalter/reddwarf | 02e7b78e1e61178647fe8d98ab53eadfabe66e7f | 72cf41d573cd7c35a222d9b7a8bfaad937f17754 | HEAD | 2016-11-08T16:12:16.783829 | 2012-04-26T22:26:56 | 2012-04-26T22:26:56 | 2,387,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,033 | py | import httplib2
import mox
import unittest
from eventlet import pools
from novaclient.client import HTTPClient
from novaclient import exceptions
from rsdns.client.dns_client import DNSaasClient
ACCOUNT_ID = 1155
USERNAME = "test_user"
API_KEY="key"
AUTH_URL="urly"
MANAGEMENT_BASE_URL="mgmter"
class FakeResponse(ob... | [
"tim.simpson@rackspace.com"
] | tim.simpson@rackspace.com |
3c3d8847ece82de5f4ddb2fa122ea976e7da211e | 2ee3a2b8971118b1a1e8c101382702d698021ad5 | /weather/models.py | 8372f28956277f086c9e5f53ff17faa6a968168c | [] | no_license | manikshahkataria/weather | 29a34264fd281cf26758be06d19dd19bbd226cfc | 1bb5160caab2dc287118ab7ed4a25cf575453ee4 | refs/heads/master | 2022-12-11T07:50:28.988645 | 2019-01-19T10:22:10 | 2019-01-19T10:22:10 | 163,946,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | from django.db import models
class City(models.Model):
name= models.CharField(max_length=25)
def __str__(self):
return self.name
class Meta:
verbose_name_plural='cities'
# Create your models here.
| [
"manikshah1998@gmail.com"
] | manikshah1998@gmail.com |
5fc93f5180bbbf9d6e8482073bcb89bf2d923892 | 2c68f9156087d6d338373f9737fee1a014e4546b | /src/connectedk8s/azext_connectedk8s/vendored_sdks/models/authentication_details_value.py | 982b4554803e85c978165d7b651f09cd77ff0c69 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | anpaz/azure-cli-extensions | 8b0d4071c49840da9883f13cb0fd1f4515246ee0 | 847fd487fe61e83f2a4163a9393edc9555267bc2 | refs/heads/master | 2023-04-23T17:22:53.427404 | 2021-01-29T17:48:28 | 2021-01-29T18:01:33 | 257,394,204 | 2 | 0 | MIT | 2021-01-28T10:31:07 | 2020-04-20T20:19:43 | Python | UTF-8 | Python | false | false | 890 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | anpaz.noreply@github.com |
ab881c94078041feb7fe0fefd3fb0913233feb4b | e715be7aef31a307d2cf09d8a4ecf46ea662826f | /device_simulator/src/orchestator.py | e88831369f171c3e6acd4859ce8da628125314b0 | [] | no_license | GabrielMartinMoran/TFI_UNTREF | 0dcfd0d5b4d69c282ce732a21039c4a69a6530af | e4abc9bc93b840627a008e3af5f4d86b7cd30732 | refs/heads/main | 2023-06-23T11:06:35.138785 | 2021-07-14T13:21:14 | 2021-07-14T13:21:14 | 358,573,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | import time
from datetime import datetime
from src.models.energy_sensor import EnergySensor
from src.models.console_display import ConsoleDisplay
from src.models.measure import Measure
from src.repositories.user_repository import UserRepository
from src.repositories.device_repository import DeviceRepository
import conf... | [
"moran.gabriel.95@gmail.com"
] | moran.gabriel.95@gmail.com |
5b6ae4546dda852369334665c79612273e580227 | 0eaf0d3f0e96a839f2ef37b92d4db5eddf4b5e02 | /past3/e.py | 6a5af7eb3744903d23f04c0de4ad30e373c33a27 | [] | no_license | silphire/atcoder | b7b02798a87048757745d99e8564397d1ca20169 | f214ef92f13bc5d6b290746d5a94e2faad20d8b0 | refs/heads/master | 2023-09-03T17:56:30.885166 | 2023-09-02T14:16:24 | 2023-09-02T14:16:24 | 245,110,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | n, m, q = map(int, input().split())
e = [set() for _ in range(n)]
for i in range(m):
u, v = map(int, input().split())
u -= 1
v -= 1
e[u].add(v)
e[v].add(u)
c = list(map(int, input().split()))
for i in range(q):
s = tuple(map(int, input().split()))
vv = s[1] - 1
print(c[... | [
"silphire@gmail.com"
] | silphire@gmail.com |
1ee56e00fc1f6518207dde8d7e2c4ad70939ccb7 | 62b90959763f40954a7c6270bfb0529b536b2888 | /user/forms.py | e3f2e1e1a1c2c677d176cbff33084fa0620bcb3a | [
"MIT"
] | permissive | thiagosouzalink/blogphoto_Django | 68698c4fc684f0ba1d9dde795a07f72df32ead38 | 7d09f44b196897c4d31fff2eff8d2a164e44db27 | refs/heads/master | 2023-02-20T20:32:00.527084 | 2021-01-25T15:16:07 | 2021-01-25T15:16:07 | 332,782,817 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,226 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from .models import CustomUser
class UserForm(forms.ModelForm):
""" Formulário para cadastrar usuário"""
username = forms.CharField(
label='Usuário',
error_messages= {
'invalid': 'Nome... | [
"thiagolsmail@gmail.com"
] | thiagolsmail@gmail.com |
9378b601770bd4c71b6a616ad9a7a895ad48a7b2 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5658571765186560_1/Python/StefanPochmann/D.py | feca86f2ed13ba681c7c3230c60ce03f3e2c21f7 | [] | 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 | 500 | py | #f = open('D.in')
#def input():
# return next(f)
T = int(input())
for x in range(1, T + 1):
X, R, C = map(int, input().split())
A = R * C
s, S = sorted((R, C))
gabriel = A % X == 0 and \
(X == 1 or
X == 2 or
X == 3 and s >= 2 or
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
37dafa17ed9dc319a258358248dd28b2bbf33390 | ee8c4c954b7c1711899b6d2527bdb12b5c79c9be | /assessment2/amazon/run/core/controllers/old.py | b834b8f7e61106d74a5d8d14bccffde5155b3848 | [] | no_license | sqlconsult/byte | 02ac9899aebea4475614969b594bfe2992ffe29a | 548f6cb5038e927b54adca29caf02c981fdcecfc | refs/heads/master | 2021-01-25T14:45:42.120220 | 2018-08-11T23:45:31 | 2018-08-11T23:45:31 | 117,135,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | #!/usr/bin/env python3
from flask import Blueprint, Flask, render_template, request, url_for
controller = Blueprint('old', __name__, url_prefix='/old')
# @controller.route('/<string:title>', methods=['GET'])
# def lookup(title):
# if title == 'Republic': # TODO 2
# return render_template('republic.html... | [
"sqlconsult@hotmail.com"
] | sqlconsult@hotmail.com |
21d962029b74b4eafe0c5b512082596bdf3800f2 | 95e7cf518b8d71270a7de6e7c7254861010f5035 | /garage/tf/algos/batch_polopt.py | 4245380d53581a9a7d6e72637049760557283eaf | [
"MIT"
] | permissive | reslthrowaway/garage | aaeadf7e918d80d467b2fcce61c50e8404480f83 | e921119434d205b6f644f139f6075516fb9ece74 | refs/heads/master | 2020-03-28T08:32:58.835060 | 2018-09-08T21:55:41 | 2018-09-08T21:55:41 | 147,972,769 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,354 | py | import time
import tensorflow as tf
from garage.algos import RLAlgorithm
import garage.misc.logger as logger
from garage.tf.plotter import Plotter
from garage.tf.samplers import BatchSampler
from garage.tf.samplers import VectorizedSampler
class BatchPolopt(RLAlgorithm):
"""
Base class for batch sampling-ba... | [
"reslthrowaway@yandex.com"
] | reslthrowaway@yandex.com |
64f1c7bd8f0f8bab932d8e95efb828f317b84145 | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/438806_catenateFilesFactory/recipe-438806.py | 59a8c77281e6b148e80c4e006fc5987455451ecf | [
"Python-2.0",
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 2,449 | py | import os
def catenateFilesFactory(isTextFiles=True, isClearTgt=True, isCreateTgt=True):
"""return a catenateFiles function parameterized by the factory arguments.
isTextFiles: Catenate text files. If the last line of a non-empty file
is not terminated by an EOL, append an EOL to it.
... | [
"betty@qburst.com"
] | betty@qburst.com |
8402be75cce1ddbd62ff54e6ca1af746d547ba7e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04044/s043863854.py | 77675a21e84977960d992326c6742602cc68d034 | [] | 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 | 172 | py | N, L = map(int,input().split())
word = []
count = 0
while N > count:
S = input()
word.append(S)
count += 1
word = sorted(word)
ans = ''.join(word)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5f2b378d006e7aa2e46251661e0d4e03d3b9810f | d452e34253561a47b974e260dabd8dcda6e750a2 | /supervised_learning/0x0B-face_verification/5-main.py | 0859b3e7ecf4dc518afbab30ba555f77a521f265 | [] | no_license | JohnCook17/holbertonschool-machine_learning | 57fcb5b9d351826c3e3d5478b3b4fbe16cdfac9f | 4200798bdbbe828db94e5585b62a595e3a96c3e6 | refs/heads/master | 2021-07-07T10:16:21.583107 | 2021-04-11T20:38:33 | 2021-04-11T20:38:33 | 255,424,823 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | #!/usr/bin/env python3
from align import FaceAlign
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
from matplotlib.patches import Circle
import numpy as np
fa = FaceAlign('models/landmarks.dat')
test_img = mpimg.imread('HBTN/KirenSrinivasan.jpg')
anchors = np.array([[0.194157, 0.16926692], [0.7888591... | [
"jcook0017@gmail.com"
] | jcook0017@gmail.com |
7508ed13cb989f8e06150d4a366684e8cb626f4c | 890c8b8e90e516a5a3880eca9b2d217662fe7d84 | /armulator/armv6/opcodes/abstract_opcodes/usad8.py | 6568222b03d6464463dd16b171bf86a89484d155 | [
"MIT"
] | permissive | doronz88/armulator | b864135996f876c7857b79a314d4aa06cc19c549 | 0294feac2785c8947e5943ac0c34f941ee4b5fff | refs/heads/master | 2022-11-05T08:14:42.405335 | 2020-06-18T23:53:17 | 2020-06-18T23:53:17 | 273,363,061 | 2 | 0 | null | 2020-06-18T23:51:03 | 2020-06-18T23:51:02 | null | UTF-8 | Python | false | false | 1,008 | py | from armulator.armv6.opcodes.abstract_opcode import AbstractOpcode
from bitstring import BitArray
class Usad8(AbstractOpcode):
def __init__(self, m, d, n):
super(Usad8, self).__init__()
self.m = m
self.d = d
self.n = n
def execute(self, processor):
if processor.conditi... | [
"matan1008@gmail.com"
] | matan1008@gmail.com |
1a27b7cb18413d5522bf3d1a3fb9298b4be330c4 | 6810a482759afd585db7bb0b85fd0416f0450e6d | /Open Kattis/sibice.py | f2d6c7c2fb3679fd80f435ba5541e145a8be4611 | [] | no_license | BenRStutzman/kattis | 01b000ac2353c8b8000c6bddec3698f66b0198ef | 005720f853e7f531a264227d0d9aaa19d4d7cf1b | refs/heads/master | 2020-07-15T23:52:45.785021 | 2019-11-09T03:28:06 | 2019-11-09T03:28:06 | 205,675,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | import sys
import math
[num, box_length, box_width] = [int(num) for num in sys.stdin.readline().split()]
diag = box_length**2 + box_width**2
for i in range(num):
match_length = int(sys.stdin.readline())
if match_length**2 <= diag:
print("DA")
else:
print("NE")
| [
"tysorx89@gmail.com"
] | tysorx89@gmail.com |
a27806e252e67dc407b440d4781e0d23bf86fc34 | f3827ae39e077daf5507959a13d1ac4a782fe084 | /src/accounts/urls.py | c29e329060e8daed823e775738b48945589f62da | [] | no_license | achiengcindy/ExtendingDjangoAuth | c6bc2c5360d90378d7d96efb3132506ad10349d9 | 19214ef7ef9ccdcc66e4ec15fa9e22e5fd5e24f3 | refs/heads/master | 2020-03-26T20:09:34.687774 | 2018-08-28T19:32:46 | 2018-08-28T19:32:46 | 145,308,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | from django.urls import path
from .views import register, home, edit, activate, account_activation_sent
urlpatterns = [
path('', home, name='home'),
path('register/', register, name='register'),
path('edit/', edit, name='edit'),
path('activate/<slug:uidb64>/<slug:token>)/', activate, name='activate'),
... | [
"achiengcindy36@gmail.com"
] | achiengcindy36@gmail.com |
9d1544e03e6517060106ba3d8555c94351c4e3c9 | b5fb45288ed2a204692051ab78e72d8aa6e5accd | /argo_data_scripts/util/count_concurrent.py | d13a0c91034e0cdcecb1c9531b3779cf08de3da0 | [
"Apache-2.0"
] | permissive | nithinksath96/MMdetection_TensorRT_FP16 | d4987f003798f5d6d4fe5bde2f30dd5ee2e8596d | c8379b209d4deeff9350baf5bbedfc95fb8941f4 | refs/heads/master | 2023-02-13T20:00:21.834541 | 2021-01-06T09:24:20 | 2021-01-06T09:24:20 | 327,260,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,792 | py | # given rt_ series input, count the max number of concurrent jobs
# current implementation only applies to inf results, where processing starts immediately
import argparse, json, pickle
from os.path import join, isfile
from tqdm import tqdm
import numpy as np
from pycocotools.coco import COCO
import sys;... | [
"nsathish@compute-0-32.local"
] | nsathish@compute-0-32.local |
76ec0bfa00c7191eecde64d7a553a7998771bae9 | 4b1a3db3249a51bcd2b9699edcb60c2716b2889e | /discharge.py | e851bc189eee5ad877ce01278d2da3087be6cfb8 | [] | no_license | shohei/tank-simulation | 799e7c8db543f639984dbadb1b41b83fc818b831 | d74b8d09eb1d5e1fa1fa61327f4fff35754ac5eb | refs/heads/master | 2021-01-02T09:14:46.709964 | 2015-07-29T13:48:52 | 2015-07-29T13:48:52 | 39,488,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
#*** TANK PRESSURE SIMULATION ***
#*** AUTHOR: SHOHEI AOKI ********
#*** PROGRAMMED: 22 JUL 2015 ****
from pylab import *
##### PARAMETER AREA ############
gamma = 1.4
de = 2 #[mm]
Ae = pi*(de*0.001/2)*(de*0.001/2)#[m2]
T0i = (24 + 273.15) # Room temperature
R = 289 # J/(k... | [
"shoaok@gmail.com"
] | shoaok@gmail.com |
3d8932d7ae7a374fb4a9079e524d480316a6f5d4 | 817ff801938d25776b2564b3087c8a3c674da1a7 | /NUP153_AnalyseComplex/WT_Minimization/chainBCP/WT_chainBCP_Minimization_6.py | 93b4c101aa994d29251e3c4bc96938fd94e7bad9 | [] | no_license | yanghaobojordan/HIV1-Capsid | b22e21a9ad530ae11f128f409e298c5ab68871ee | f44f04dc9886e660c1fe870936c48e0e5bb5adc6 | refs/heads/main | 2023-04-09T01:27:26.626676 | 2021-04-23T18:17:07 | 2021-04-23T18:17:07 | 360,968,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,838 | py | from pyrosetta import *
from pyrosetta import PyMOLMover
from pyrosetta.toolbox import cleanATOM
from pyrosetta.toolbox import get_secstruct
from pyrosetta.teaching import *
from pyrosetta.toolbox import get_hbonds
from pyrosetta.toolbox import mutate_residue
from pyrosetta.rosetta.protocols.relax import *
from... | [
"yanghaobojordan@gmail.com"
] | yanghaobojordan@gmail.com |
9f4a4daa608a920aafce684a30429bf510d9d867 | b381b5ce79ec03e281cba7e6ea253b286205fba1 | /openstack/map_reduce/v1/job.py | 2ab8baab2c33c86bccb1719887437cb769f0ca27 | [
"Apache-2.0"
] | permissive | sun363587351/python-openstacksdk | 972eedc24199c3b8a15bd21accd29a6ec70febdb | f9e055300b1c79637d7b6a791168427f27322d73 | refs/heads/master | 2020-12-02T19:23:01.771376 | 2017-07-05T13:24:47 | 2017-07-05T13:24:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,901 | py | # 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 writing, software
# distributed under t... | [
"iampurse@vip.qq.com"
] | iampurse@vip.qq.com |
2d25dc2c818efe033ad59ee1eb11f2c8ccfde452 | 1ea966542e28e24b2f3f7d5e0352cbdc110a979a | /Algorithm/Programmers/Programmers_2개이하로다른비트.py | 9a1ef5bccf76215078cf0ce46a5b4b707c54eb9b | [] | no_license | yunhacho/SelfStudy | 9ff7002362f6e9d8fe7d1ca3ccf94ee96726f635 | 99912af3df014a6864893c9274dbf83ff9ed05a8 | refs/heads/main | 2023-08-25T06:56:21.116419 | 2021-10-28T07:35:09 | 2021-10-28T07:35:09 | 360,470,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | def solution(numbers):
binarys=[]
for n in numbers:
b='0'+ bin(n)[2:]; i=len(b)-b[::-1].find('0')-1
binarys.append('{}{}{}'.format(b[:i],'1' if len(b)-1==i else '10',b[i+2:]))
return [int(b, 2) for b in binarys] | [
"jyh_5530@naver.com"
] | jyh_5530@naver.com |
dbbb78de7586a3fd69f564f7384cb29ca7f56999 | 5793b470eea39ba99ff4d16325d462440647b77d | /System/Threads/thread-count.py | e0c36329cec628396bc4ee866d2c6f9daca41c6c | [] | no_license | zhongjiezheng/python | 01a99438fc4681817d4d0e623673afa1e488864c | 5c5725ad0e75d07e016b64d79eddf3d88a524fa0 | refs/heads/master | 2021-01-17T11:57:12.373343 | 2015-07-08T09:04:48 | 2015-07-08T09:04:48 | 35,549,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | """
thread basics: start 5 copies of a function running in parallel;
uses time.sleep so that the main thread doesn't die too earlly--
this kills all other threads on some platforms; stdout is shared:
thread output may be intermixd in this version arbitrarily.
"""
import _thread as thread, time
def counter(myId, count)... | [
"zzjie1991@gmail.com"
] | zzjie1991@gmail.com |
48b6b7cb9368a9db6760084e0982e05ee92758d6 | 04142fdda9b3fb29fb7456d5bc3e504985f24cbe | /mmcv/ops/masked_conv.py | 919702e9cbd04b9e1f5c93147bcced8a1be38c61 | [
"Apache-2.0"
] | permissive | open-mmlab/mmcv | 419e301bbc1d7d45331d67eccfd673f290a796d5 | 6e9ee26718b22961d5c34caca4108413b1b7b3af | refs/heads/main | 2023-08-31T07:08:27.223321 | 2023-08-28T09:02:10 | 2023-08-28T09:02:10 | 145,670,155 | 5,319 | 1,900 | Apache-2.0 | 2023-09-14T02:37:16 | 2018-08-22T07:05:26 | Python | UTF-8 | Python | false | false | 4,851 | py | # Copyright (c) OpenMMLab. All rights reserved.
import math
from typing import Optional, Tuple, Union
import torch
import torch.nn as nn
from torch.autograd import Function
from torch.autograd.function import once_differentiable
from torch.nn.modules.utils import _pair
from ..utils import ext_loader
ext_module = ext... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
745b47f4b9653e1adb5938a611487ad9e3201e35 | 303bac96502e5b1666c05afd6c2e85cf33f19d8c | /solutions/python3/944.py | bd687a861c6ef672174fcc914271cffea1314b06 | [
"MIT"
] | permissive | jxhangithub/leetcode | 5e82f4aeee1bf201e93e889e5c4ded2fcda90437 | 0de1af607557d95856f0e4c2a12a56c8c57d731d | refs/heads/master | 2022-05-22T12:57:54.251281 | 2022-03-09T22:36:20 | 2022-03-09T22:36:20 | 370,508,127 | 1 | 0 | MIT | 2022-03-09T22:36:20 | 2021-05-24T23:16:10 | null | UTF-8 | Python | false | false | 138 | py | class Solution:
def minDeletionSize(self, A):
return sum(any(a[j] > b[j] for a, b in zip(A, A[1:])) for j in range(len(A[0]))) | [
"cenkay.arapsagolu@gmail.com"
] | cenkay.arapsagolu@gmail.com |
4da391e6845015007b01093614347747e5b52720 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R4/benchmark/startPyquil309.py | b9a32c54bbe98a26e0fe98284c0b30b521a3eef5 | [
"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 | 1,195 | py | # qubit number=4
# total number=12
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(1) # number=2
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
9c2e5b9526c6eadce1fc38a03bb4c1f15495d7bc | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/neutron_create_security_group_option.py | 0f2264525c7e8c7ce51ffcb365afd1fd1693468f | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 3,837 | py | # coding: utf-8
import pprint
import re
import six
class NeutronCreateSecurityGroupOption:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
23857be0068cb1b58270601d7ea42d5393abbad8 | 2dfbb97b47fd467f29ffb26faf9a9f6f117abeee | /leetcode/84.py | a8c43f1a9b98fb79e9c45be4a3ddfa8e973b06fe | [] | no_license | liuweilin17/algorithm | 0e04b2d36dfb6b7b1b0e0425daf69b62273c54b5 | d3e8669f932fc2e22711e8b7590d3365d020e189 | refs/heads/master | 2020-12-30T11:03:40.085105 | 2020-04-10T03:46:01 | 2020-04-10T03:46:01 | 98,844,919 | 3 | 1 | null | 2018-10-05T03:01:02 | 2017-07-31T03:35:14 | C++ | UTF-8 | Python | false | false | 4,644 | py | ###########################################
# Let's Have Some Fun
# File Name: 84.py
# Author: Weilin Liu
# Mail: liuweilin17@qq.com
# Created Time: Fri Sep 27 11:00:23 2019
###########################################
#coding=utf-8
#!/usr/bin/python
# 84. Largest Rectangle in Histogram
class SegmentNode:
def __in... | [
"liuweilin17@qq.com"
] | liuweilin17@qq.com |
658a507fcf159ac4b48d14cc5cca2cfada4e319d | 3c2a197bf32e72444c5f36559ad0cb9b64035516 | /codeskeleton/value_generators/random_int.py | d9aac5df824e8d25278a8ef6f114953e6b7a0a9f | [] | no_license | appressoas/codeskeleton | c538bbfccf19735464dc42996b754cf9199a14a3 | 604011cb27c47b02d325379895bc23b543797216 | refs/heads/master | 2021-01-19T19:24:21.100020 | 2017-06-26T09:34:45 | 2017-06-26T09:34:45 | 88,417,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | import random
from .registry import GENERATOR_REGISTRY
def random_int(from_int=0, to_int=999999999):
return random.randint(from_int, to_int)
GENERATOR_REGISTRY.register(generator_name='random_int', function=random_int)
| [
"post@espenak.net"
] | post@espenak.net |
161c6671e458fed554bf825c179cc4b7abb336c1 | 96aab9f77de8170ae93004d699bd0b11e820b2d4 | /rest/app/user/urls.py | c0b6dccc152b56208b129bc04563ca5b6a09e9fd | [] | no_license | JasoSalgado/rest-app | 8dbc842d6de0ec705fd04bc94e79ee75ad80f2e2 | 3d1662800bd1e98142a0edca244c82498cc4832b | refs/heads/master | 2022-11-15T15:25:44.135084 | 2020-07-16T14:58:59 | 2020-07-16T14:58:59 | 280,182,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | from django.conf.urls import url
from rest.app.user.views import UserRegistrationView, UserLoginView
urlpatterns = [
url(r'^signup', UserRegistrationView.as_view()),
url(r'^signin', UserLoginView.as_view()),
] | [
"jaso_98@hotmail.com"
] | jaso_98@hotmail.com |
7a021ccaf3c670c98dfc5155d1cbd84b76bfd436 | 2caf6885511af24443e22aaa43cd679d694f6f80 | /note/my_note/first_month/day06/do_it.py | ec11f1b1af222ae157ca35960d3fb73a0a203e08 | [] | no_license | nandadao/Python_note | 7f9ba54a73af05c935b4f7e24cacb728859a6c69 | abddfc2e9a1704c88867cff1898c9251f59d4fb5 | refs/heads/master | 2020-11-25T18:29:50.607670 | 2019-12-19T01:28:02 | 2019-12-19T01:28:02 | 228,793,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | # dict_like = {
# "qtx":["编码","看书","跑步"],
# "lzmly":["看电影","编码","美食","唱歌"]
# }
#
# # for i in dict_like["qtx"]:
# # print("qtx",i)
#
# # 所有人的爱好
# for item in dict_like:
# for i in dict_like[item]:
# print(item, i)
dict_city = {
"北京":{
"景区":["天安门","天坛","故宫"],
"美食":["驴打滚","豆汁"... | [
"1361335953@qq.com"
] | 1361335953@qq.com |
17ff71f9320ed1b5a19d7b730f0302b2113591eb | 196f7e3238f961fb5eba7a794f0b0c75d7c30ba1 | /Python自动化运维技术与最佳实践/2业务服务监控/213对比nginx配置文件test.py | 9cc58a6e05df6dd2f918590e93150457966d7b24 | [] | no_license | Liaoyingjie/Pythonlearn | d0b1b95110017af7e063813660e52c61a6333575 | 8bca069f38a60719acac5aa39bd347f90ab0bfb1 | refs/heads/master | 2020-04-08T07:35:07.357487 | 2018-04-12T16:44:43 | 2018-04-12T16:44:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | #!/usr/bin/python
import difflib
import sys
textfile1='nginx.conf.v1'
textfile2='nginx.conf.v2'
def readfile(filename):
try:
fileHandle = open (filename, 'a+' )
text=fileHandle.read().splitlines()
fileHandle.close()
return text
except IOError as error:
print('Read file E... | [
"godzoco@qq.com"
] | godzoco@qq.com |
df1b483b12a18f285047ae7d1f7b07f90b38e4ab | a43504f11666edffa9497630d9fcad31566b4349 | /app/bot_engine/request_makers.py | 7c475e770f2ee3cf8dc298e5fc7d6fa180ffd930 | [] | no_license | korid24/shop_list_webhook_bot | 4896d0e731679815b043ba4c997651fe4f3682a9 | efe359b42a8b625ea78b855664358937419a1785 | refs/heads/master | 2022-12-29T09:51:16.212730 | 2020-10-22T10:16:20 | 2020-10-22T10:16:20 | 306,046,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,933 | py | import json
import requests
from typing import List, NamedTuple, Optional, Union
from config import AUTH_TOKEN, BASE_URL
# from local_utils import write_json
from bot_engine.utils import path_to
HEADERS = {
'Content-type': 'application/json',
'Authorization': 'token {}'.format(AUTH_TOKEN),
'Accept-Language... | [
"korid24.dev@gmail.com"
] | korid24.dev@gmail.com |
2d9da259fdc14b8cb5bf137e5ab76ab8e8182a96 | c019093a2474b92bda1b9fcab0ae750937aedc1c | /jaxlie/manifold/_manifold_helpers.py | 9bfeaae7af619693187e8bbe93f513efab7291ad | [
"MIT"
] | permissive | mfkiwl/jaxlie | 6c8a83d367299592a68bb80c7dc9816e9e006f09 | 4dbe16f3c1d1cfda30e0418ef5d1e1772cf9f537 | refs/heads/master | 2023-07-13T17:11:16.693321 | 2021-08-31T18:51:33 | 2021-08-31T18:51:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,652 | py | from typing import TypeVar, cast
import jax
from jax import numpy as jnp
from .. import hints
from .._base import MatrixLieGroup
from .._se2 import SE2
from .._se3 import SE3
from .._so2 import SO2
from .._so3 import SO3
T = TypeVar("T", bound=MatrixLieGroup)
@jax.jit
def rplus(transform: T, delta: hints.TangentVe... | [
"yibrenth@gmail.com"
] | yibrenth@gmail.com |
0628d28942b07798a3581b0c726246718d0103bf | 6ed233ec80984cd8d6eb5b8f2efde1ac5feadc4b | /ebc/nbr2018/tests/base.py | d8f1b8dc478a579559e54fd5ce377970766ca953 | [
"Unlicense"
] | permissive | lflrocha/ebc.nbr2018 | ce03abd238dca532d8adedaae0778b519b334852 | 0259390fecda065bf040b08e5ae3050ba96b1c4e | refs/heads/master | 2020-04-08T12:44:17.247750 | 2019-08-08T18:13:57 | 2019-08-08T18:13:57 | 159,359,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,962 | py | """Test setup for integration and functional tests.
When we import PloneTestCase and then call setupPloneSite(), all of
Plone's products are loaded, and a Plone site will be created. This
happens at module level, which makes it faster to run each test, but
slows down test runner startup.
"""
from Products.Five import... | [
"lflrocha@gmail.com"
] | lflrocha@gmail.com |
0bccda679a470479ed2e699aaf932957507e734f | 5c0c0176db0ccf2c24b6b5ed459a8dc144518b13 | /nni/nas/benchmarks/nasbench101/graph_util.py | 10805685fec3ff7359ec39dc0ae1c019e67950ae | [
"MIT"
] | permissive | petuum/nni | ac4f4a1c4d6df71684eeffa127b7c4858fd29e97 | 8134be6269902939232482d63649c06f9864be6d | refs/heads/master | 2023-02-18T11:21:41.078889 | 2021-01-20T03:21:50 | 2021-01-20T03:21:50 | 302,736,456 | 4 | 3 | MIT | 2020-11-20T20:21:15 | 2020-10-09T19:34:11 | Python | UTF-8 | Python | false | false | 3,790 | py | import hashlib
import numpy as np
from .constants import INPUT, LABEL2ID, OUTPUT
def _labeling_from_architecture(architecture, vertices):
return [INPUT] + [architecture['op{}'.format(i)] for i in range(1, vertices - 1)] + [OUTPUT]
def _adjancency_matrix_from_architecture(architecture, vertices):
matrix = ... | [
"noreply@github.com"
] | petuum.noreply@github.com |
2ec5a1156d06c902673f739affb49f1533f4092d | 24bc4990e9d0bef6a42a6f86dc783785b10dbd42 | /build/fuchsia/PRESUBMIT.py | f8c7df28fc5fd1397f1569b6b65e371324b3fa65 | [
"BSD-3-Clause"
] | permissive | nwjs/chromium.src | 7736ce86a9a0b810449a3b80a4af15de9ef9115d | 454f26d09b2f6204c096b47f778705eab1e3ba46 | refs/heads/nw75 | 2023-08-31T08:01:39.796085 | 2023-04-19T17:25:53 | 2023-04-19T17:25:53 | 50,512,158 | 161 | 201 | BSD-3-Clause | 2023-05-08T03:19:09 | 2016-01-27T14:17:03 | null | UTF-8 | Python | false | false | 1,591 | py | # Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Presubmit script for Fuchsia.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for
details on the presubmit API built into depot_tools.
"""
USE_PYTH... | [
"roger@nwjs.io"
] | roger@nwjs.io |
a7bbc60feece73e88f0a57f6209db2d14d87241c | bc441bb06b8948288f110af63feda4e798f30225 | /user_service_sdk/model/cmdb_extend/subsystem_dependency_pb2.pyi | 56c626d516302fae9e256521a00d0df10a2ecd97 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,344 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
c534d7c22c8c9cfe1da125036b9b6e7f079298dc | 6cfa6d84722cf560b9dc144ba826d857e884d8fb | /redis/ticker/config/role.sample.py | 793f9031371e1b17ce60702bbe524190ca842034 | [] | no_license | chaeplin/dash-ticker | b5e3702c87bc351ae40863de8cd8a55dddc74330 | 99e1fdc4e105601bdcfa55e80c524ca48294bee8 | refs/heads/master | 2021-01-18T23:07:24.246729 | 2017-11-23T09:39:40 | 2017-11-23T09:39:40 | 72,606,879 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | HOST_ROLE = 'MASTER'
#HOST_ROLE = 'SLAVE'
# SENTINEL CHECK
# MASTER
MASTER_SETINEL_HOST = '192.168.10.3'
MASTER_REDIS_MASTER = '192.168.10.2'
#SLAVE
SLAVE_SETINEL_HOST = '192.168.10.4'
SLAVE_REDIS_MASTER = '192.168.10.1'
| [
"chaeplin@gmail.com"
] | chaeplin@gmail.com |
a2aad80e1bd8dcac5b76b43c7c1b79f9d346ecb5 | b501a5eae1018c1c26caa96793c6ee17865ebb2d | /data_persistence_and_exchange/sqlite3/sqlite3_iterdump.py | b3e3cb6c5fd4e677c2df637f142fcfd822cb06dd | [] | no_license | jincurry/standard_Library_Learn | 12b02f9e86d31ca574bb6863aefc95d63cc558fc | 6c7197f12747456e0f1f3efd09667682a2d1a567 | refs/heads/master | 2022-10-26T07:28:36.545847 | 2018-05-04T12:54:50 | 2018-05-04T12:54:50 | 125,447,397 | 0 | 1 | null | 2022-10-02T17:21:50 | 2018-03-16T01:32:50 | Python | UTF-8 | Python | false | false | 866 | py | import sqlite3
schema_filename = 'todo_schema.sql'
with sqlite3.connect(':memory:') as conn:
conn.row_factory = sqlite3.Row
print('Creating schema')
with open(schema_filename, 'rt') as f:
schema = f.read()
conn.executescript(schema)
print('Inserting initial data')
conn.execute(""... | [
"jintao422516@gmail.com"
] | jintao422516@gmail.com |
bd32ba3fd62a9486d5b5dbaac375ebf63d3f6370 | b4871c8dd8ef257d604ac221ecff0c71e14f06cb | /pilot_curriculum/django_apps/generic_nasa/nasa/migrations/0001_initial.py | 99716aced67f5162e56b39feda4fbd930ab74f6c | [] | no_license | manzur1990/tracecamp_curriculum | b55605b0bbe4b5e3b333ae3fb105141e53f42e39 | e9c8ee9a3c151a5cd57137f6575d1342a7de83fb | refs/heads/master | 2022-04-13T15:24:54.305552 | 2019-08-12T13:58:40 | 2019-08-12T13:58:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # Generated by Django 2.1.4 on 2018-12-21 15:00
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='NasaComments',
fields=[
('id', models.AutoF... | [
"bekkblando@gmail.com"
] | bekkblando@gmail.com |
496afa8406a6ad5f9584ceddba65ba6374ac3cfb | cc44edfa1edbedea3ad044805be7548e0ccba70d | /0x0C-python-almost_a_circle/models/square.py | dc5e2428176dcbb01162c0529f50870f361569e2 | [] | no_license | set808/holbertonschool-higher_level_programming | 421f0da1f91cd56eb2daa4e07a51b4a505d53edc | eb276a4e68e5cc43498459eec78fc05f72e2cd48 | refs/heads/master | 2020-03-09T13:07:43.824914 | 2018-09-08T00:26:46 | 2018-09-08T00:26:46 | 128,802,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,833 | py | #!/usr/bin/python3
'''
Defines the class Square
'''
from models.rectangle import Rectangle
class Square(Rectangle):
'''Square class that inherits from Rectangle
'''
def __init__(self, size, x=0, y=0, id=None):
'''Initializes the Square object
Args:
size (int): size of the sq... | [
"spencertaylor808@gmail.com"
] | spencertaylor808@gmail.com |
698e29f11047d2ec058edc49d83078842a204ea8 | f98ca6e020f21b303f8cc2a8474f71ce436f2d75 | /tests/test_jsonlib.py | a67045757d2f9a40191ad7b77c8194728c2eb43e | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | garnerargoed/clldutils | df8afd714ab0ae1004aeb47dc24e1e96bb33323b | 0d85c0bf46184bb99c6800ecbfa7f5db87cb2e7e | refs/heads/master | 2021-09-07T22:36:17.564100 | 2018-03-02T09:54:44 | 2018-03-02T09:54:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | # coding: utf8
from __future__ import unicode_literals
from datetime import date
import pytest
from clldutils.jsonlib import dump, load, parse, update, format
def test_parse_json_with_datetime():
assert parse(dict(d='2012-12-12T20:12:12.12'))['d'].year
def test_update(tmppath):
p = tmppath / 'test'
wi... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
f8eccfe1aedbc9b1aa4f0a96d6d6e702357e2324 | 9c69e2fc689194237ef294071a9c14c6dfabe545 | /src/ultimate/user/urls.py | f8a18af2ec2ba1e3f063efd7648d2a5fa4b8f419 | [] | permissive | a2ultimate/ultimate-league-app | 69f0331f5efeb2883c00990eb7a59ac346a34c69 | 1b40e8a01950fc526db9b649b78ada71ec567624 | refs/heads/main | 2023-04-03T06:43:24.471566 | 2023-03-16T00:55:22 | 2023-03-16T00:55:22 | 8,152,035 | 4 | 2 | BSD-3-Clause | 2023-03-16T00:55:24 | 2013-02-12T03:15:25 | Python | UTF-8 | Python | false | false | 1,599 | py | from django.conf.urls import url, include
from django.contrib.auth.views import login, logout, password_reset, password_reset_done, password_reset_confirm, password_reset_complete
from . import views
urlpatterns = [
url(r'^$', views.index, {}, 'user'),
url(r'^log-in/$', login, {'template_name': 'user/login.h... | [
"ryanjdonnelly@gmail.com"
] | ryanjdonnelly@gmail.com |
4ee1c835bfb47e715ce2c96c65cf218f187bab31 | 282d0a84b45b12359b96bbf0b1d7ca9ee0cb5d19 | /Malware1/venv/Lib/site-packages/numpy/lib/npyio.py | 6eb9cbd18235dbb0bd65ee520e9f94852156d02a | [] | no_license | sameerakhtar/CyberSecurity | 9cfe58df98495eac6e4e2708e34e70b7e4c055d3 | 594973df27b4e1a43f8faba0140ce7d6c6618f93 | refs/heads/master | 2022-12-11T11:53:40.875462 | 2020-09-07T23:13:22 | 2020-09-07T23:13:22 | 293,598,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:40ba76b8ee10e92857396797dd69934bd5b9c1c413138a9ccef88a8b534917a6
size 84853
| [
"46763165+sameerakhtar@users.noreply.github.com"
] | 46763165+sameerakhtar@users.noreply.github.com |
8710c34e56994907a5c2a8375d3db551668509d1 | 5e5b3776acc441b77a970db29d99e850b79be65e | /gist/define.py | 3f301f552c4ea79b674caf06a826dd54b686c3f2 | [
"Apache-2.0"
] | permissive | eightnoteight/x-gist | f153ae7c5ae5d9335af23ba54c0c668b71a5c157 | ec65e5193f989238a026a8b239eabf61c5ec7a8d | refs/heads/master | 2020-12-24T16:23:40.157360 | 2014-08-15T04:54:14 | 2014-08-15T04:54:14 | 22,781,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class struct(dict):
def __init__(self, **kwargs):
super(struct, self).__init__(**kwargs)
self.__dict__ = self
client = struct(name="x-gist",
url ="https://github.com/eightnoteight/x-gist") | [
"mr.eightnoteight@gmail.com"
] | mr.eightnoteight@gmail.com |
ac2dea16ccd2b71756d09ad35c1724375eada021 | 5c2f520dde0cf8077facc0fcd9a92bc1a96d168b | /microbenchmarks/exceptions_ubench.py | 8260f1764de23db08de7146823a2733eba4417dc | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | nagyist/pyston | b613337a030ef21a3f03708febebe76cedf34c61 | 14ba2e6e6fb5c7316f66ccca86e6c6a836d96cab | refs/heads/master | 2022-12-24T03:56:12.885732 | 2015-02-25T11:11:08 | 2015-02-25T11:28:13 | 31,314,596 | 0 | 0 | NOASSERTION | 2022-12-17T08:15:11 | 2015-02-25T13:24:41 | Python | UTF-8 | Python | false | false | 241 | py | def f():
# Try to eliminate as much non-exception stuff as possible:
from __builtin__ import Exception
e = Exception()
for i in xrange(100000):
try:
raise e
except Exception:
pass
f()
| [
"kmod@dropbox.com"
] | kmod@dropbox.com |
67f7daaefaae8d776a203ce1eb65de7d4fc4810a | cb57a9ea4622b94207d12ea90eab9dd5b13e9e29 | /lc/python/0339_nested_list_weight_sum.py | 4db7961460d959975511fefeea17b42164eec24f | [] | no_license | boknowswiki/mytraning | b59585e1e255a7a47c2b28bf2e591aef4af2f09a | 5e2f6ceacf5dec8260ce87e9a5f4e28e86ceba7a | refs/heads/master | 2023-08-16T03:28:51.881848 | 2023-08-10T04:28:54 | 2023-08-10T04:28:54 | 124,834,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | # dfs
# time O(n)
# space O(1)
# """
# This is the interface that allows for creating nested lists.
# You should not implement it, or speculate about its implementation
# """
#class NestedInteger:
# def __init__(self, value=None):
# """
# If value is not specified, initializes an empty list.
# ... | [
"noreply@github.com"
] | boknowswiki.noreply@github.com |
3215f4395ddfe3f66ca86b29a70209aa7b2a2b1b | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/databox/azure-mgmt-databox/azure/mgmt/databox/__init__.py | 01935d3cb4901323838878ded3e2783723747739 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 726 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
91d66a042dd155e0b4c535b6fd0d0b0c5f21e6bc | 5c8139f1e57e06c7eaf603bd8fe74d9f22620513 | /PartB/Py括号的配对问题.py | 07341985e258c672ef6b2f14eda73e2fd3628ce7 | [] | no_license | madeibao/PythonAlgorithm | c8a11d298617d1abb12a72461665583c6a44f9d2 | b4c8a75e724a674812b8a38c0202485776445d89 | refs/heads/master | 2023-04-03T07:18:49.842063 | 2021-04-11T12:02:40 | 2021-04-11T12:02:40 | 325,269,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | lst = raw_input().strip()
stack = []
flag = True
for i in lst:
if i == '(':
stack.append('(')
elif i == '[':
stack.append('[')
elif i == ')':
if len(stack) > 0 and stack[-1] == '(':
stack.pop(-1)
else:
flag = False
break
elif i == ']':
... | [
"2901429479@qq.com"
] | 2901429479@qq.com |
6518580d8c0f42beea9b03ecc5cf5026c5eb4b0b | a2f6e449e6ec6bf54dda5e4bef82ba75e7af262c | /venv/Lib/site-packages/pandas/tests/io/pytables/__init__.py | 04573ec7273cbbee29a9587f2fd75e67ef512d86 | [] | no_license | mylonabusiness28/Final-Year-Project- | e4b79ccce6c19a371cac63c7a4ff431d6e26e38f | 68455795be7902b4032ee1f145258232212cc639 | refs/heads/main | 2023-07-08T21:43:49.300370 | 2021-06-05T12:34:16 | 2021-06-05T12:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:7899383beb479b67e688296a1f549aed94a571607226a1afea25dce1a3dc152c
size 411
| [
"chuksajeh1@gmail.com"
] | chuksajeh1@gmail.com |
a0501f5fe8d7b2dbd0b347bf845646f7cd23628d | 34599a66861f7d95a5740eeb5329ea77014e18d4 | /problems_solving/algospot/firetrucks.py | 0006d6df8ed42a042757bbebd9b4c40fa0a3cf8c | [] | no_license | laolee010126/algorithm-with-python | f0f5f1bc3cbe374ccbb59e10ac639674c44ae743 | 89ff0c47a6d8b0cd5b31a25bb3981b8e90971f19 | refs/heads/master | 2022-04-01T17:38:36.199309 | 2020-01-14T01:54:22 | 2020-01-14T01:54:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | """Get least sum of distances to dispatch firetrucks to houses on fire
:input:
1
8 12 3 2
1 2 3
1 6 9
2 3 6
3 4 4
3 5 2
4 5 7
6 5 5
8 6 5
6 7 3
8 7 3
7 5 1
2 8 3
2 3 5
4 6
:return:
16
"""
from heapq import heappush, heappop
from math import inf
from sys import stdin
get_input = stdin.readline
def min_dist(g, dest, ... | [
"shoark7@gmail.com"
] | shoark7@gmail.com |
d1772e7e5ce09349017f1c2dd30cdfbab93383ed | 977396938e6a077423276eda152d4541578eb527 | /migrations/versions/f9155326f52d_.py | 6b91c18d0de33f955ebc4eeda030c79a1e03e91c | [] | no_license | Areum0921/web_pybo | 688c741a5a8b5fa3d8df51f058c7ec0a8288ae91 | 0c830eda270dbbe3257e3458af4576b38d5dbaa8 | refs/heads/master | 2023-06-19T06:40:41.327188 | 2021-07-16T02:29:34 | 2021-07-16T02:29:34 | 355,765,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,375 | py | """empty message
Revision ID: f9155326f52d
Revises: 5496eea3137d
Create Date: 2021-03-29 14:31:37.557367
"""
from alembic import op
import sqlalchemy as sa
import sqlalchemy_utils
# revision identifiers, used by Alembic.
revision = 'f9155326f52d'
down_revision = '5496eea3137d'
branch_labels = None
depends_on = None... | [
"a90907@gmail.com"
] | a90907@gmail.com |
3720c2cfb59920028d138cfe49a9a780696b3a31 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03804/s226430328.py | 40ea2fbbe5322fb1e9b734e857d574fcafee112b | [] | 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 | 532 | py | N, M = map(int, input().split())
A = [input() for _ in range(N)]
B = [input() for _ in range(M)]
for i in range(N - M + 1):
for j in range(N - M + 1):
check = True
count = 0
for k in range(M):
if (A[i + k][j: j + M] == B[k]):
# print(A[i + k][j:j + M], B[k])
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a3c15c175c51765051f69df3b52980e1fd7a3f0a | e3ec7260806c1e2b045a0de93a150a5c3fc1b9df | /test_sin.py | cfd93e45de3207cebfeb5d1bfd66b21c78b149ef | [
"Apache-2.0"
] | permissive | FearFactor1/SPA | 58a21c9ec7a72a78f5ff50214e58faac43a3059d | a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7 | refs/heads/master | 2021-07-07T04:25:12.525595 | 2020-11-16T14:35:33 | 2020-11-16T14:35:33 | 204,684,720 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | from selenium import webdriver
import time
from selenium.webdriver.support.ui import Select
link = "http://suninjuly.github.io/selects2.html"
#nav__item-auto > a
try:
browser = webdriver.Chrome()
browser.get(link)
num1 = browser.find_element_by_css_selector("#num1").text
num2 = browser.find_elem... | [
"zelezodoroznik@yandex.ru"
] | zelezodoroznik@yandex.ru |
e514273c815a754c9cc94115339b8f0ab6c3c284 | 58e8117c418a8931d56fe57ba0edd38214c79642 | /ate/context.py | ed59e79081a32350eef9099c194c3270b9fc91da | [
"MIT"
] | permissive | 229051923/ApiTestEngine | 90b495ee7be037a35f63ffa3b2c95f6ba24f43ce | 4a529068f451c8880681286518ff6a643ecf9067 | refs/heads/master | 2021-01-01T16:09:10.737245 | 2017-07-19T15:29:29 | 2017-07-19T15:29:29 | 97,780,015 | 2 | 0 | null | 2017-07-20T02:09:36 | 2017-07-20T02:09:36 | null | UTF-8 | Python | false | false | 7,621 | py | import copy
import importlib
import re
import types
from collections import OrderedDict
from ate import exception, testcase, utils
def is_function(tup):
""" Takes (name, object) tuple, returns True if it is a function.
"""
name, item = tup
return isinstance(item, types.FunctionType)
class Context(ob... | [
"mail@debugtalk.com"
] | mail@debugtalk.com |
a6db9d0ebe8e9a8f0ab0a1cacff578441a2234ba | 4fcfc6834f598954e069e9481e4f69d6f7205f3b | /Week1/day_3/Flask_Intro/first_flask_app/server.py | a7693151c6981a66648352d4cf8857f87de47de7 | [] | no_license | sadieBoBadie/jan_2020_python_stack | dadc77a8a76fd4b900bc31ad83ed4680a0802aa1 | b91da3da23ea57a27c086075f4b86c5bfec413d0 | refs/heads/main | 2023-03-02T22:27:46.877290 | 2021-01-26T19:04:57 | 2021-01-26T19:04:57 | 326,852,429 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def puppies():
return "<h1 style='color: red'>Puppies are cute!</h1>"
@app.route('/<animal>/<color>')
@app.route('/<animal>')
@app.route('/<animal>/<color>/<int:num>')
def display_animal(animal, color="blue", num=5):
print(f"Ani... | [
"sflick@codingdojo.com"
] | sflick@codingdojo.com |
3a7c1d7adfb59f00b11ae77e1d37b1885d33f881 | d1ad7bfeb3f9e3724f91458277284f7d0fbe4b2d | /react/003-react-django-justdjango/backend/env/bin/sqlformat | b08eaac3345a9fc3b0a7dbb48e6607276b57395a | [] | no_license | qu4ku/tutorials | 01d2d5a3e8740477d896476d02497d729a833a2b | ced479c5f81c8aff0c4c89d2a572227824445a38 | refs/heads/master | 2023-03-10T20:21:50.590017 | 2023-03-04T21:57:08 | 2023-03-04T21:57:08 | 94,262,493 | 0 | 0 | null | 2023-01-04T21:37:16 | 2017-06-13T22:07:54 | PHP | UTF-8 | Python | false | false | 307 | #!/Users/kamilwroniewicz/_code/_github/_tutorials/react/003-react-django-justdjango/backend/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"qu4ku@hotmail.com"
] | qu4ku@hotmail.com | |
a1df8914c35f5e949416165a0782c85926e4e9f7 | 2cf9f165cb4d6e8e9009d74b43020fe2d5c1964f | /chat/migrations/0001_initial.py | a2db3bb2cfb40b358f72ef4113b611bc648018b0 | [] | no_license | jimy1824/chat | 29f5039c6284083b8328502932795bee586dec14 | 627ad4678c6215d37322737b38b3e5eb6d69696f | refs/heads/master | 2023-04-27T15:10:51.316824 | 2019-11-08T05:00:12 | 2019-11-08T05:00:12 | 220,081,959 | 1 | 0 | null | 2023-04-21T20:40:47 | 2019-11-06T20:17:20 | HTML | UTF-8 | Python | false | false | 1,194 | py | # Generated by Django 2.2.6 on 2019-11-06 19:01
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"jamshaid1824@gmail.com"
] | jamshaid1824@gmail.com |
f64c6ffb584cd043d80268c613a23fadf9f3d960 | d0e268862f359bbeec426b00a0c45788f6fb0b4e | /lesson22-优化小实例/main.py | 10fefdf9bbed196814d0bc20e94497752dbfa13d | [] | no_license | jpegbert/PyTorch | f87c2e38572c51842785de5ed1b39bb641402ac6 | 482421c76a093312ffeff7e5af4ecd3ab0cdcf30 | refs/heads/master | 2023-08-27T03:56:26.883297 | 2021-11-08T06:03:30 | 2021-11-08T06:03:30 | 326,677,679 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | import numpy as np
from matplotlib import pyplot as plt
import torch
def himmelblau(x):
return (x[0] ** 2 + x[1] - 11) ** 2 + (x[0] + x[1] ** 2 - 7) ** 2
x = np.arange(-6, 6, 0.1)
y = np.arange(-6, 6, 0.1)
print('x,y range:', x.shape, y.shape)
X, Y = np.meshgrid(x, y)
print('X,Y maps:', X.shape, Y.shape)
Z = hi... | [
"jiangpeng.jiang@zhaopin.com.cn"
] | jiangpeng.jiang@zhaopin.com.cn |
035504981c5c4ce873430a3439ea302e21244885 | 53c3462ff265b6273f4a4fa17f6d59688f69def0 | /剑指offer/65_hasPath.py | fc4f3bf5633e263578be82adeacb409feea73759 | [] | no_license | 17764591637/jianzhi_offer | b76e69a3ecb2174676da2c8d8d3372a3fc27b5c4 | 27e420ee302d5ab6512ecfdb8d469b043fb7102d | refs/heads/master | 2023-08-03T01:32:51.588472 | 2019-10-13T07:56:21 | 2019-10-13T07:56:21 | 197,692,548 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,300 | py | '''
请设计一个函数,用来判断在一个矩阵中是否存在一条包含某字符串所有字符的路径。
路径可以从矩阵中的任意一个格子开始,每一步可以在矩阵中向左,向右,向上,向下移动一个格子。
如果一条路径经过了矩阵中的某一个格子,则之后不能再次进入这个格子。
例如 a b c e s f c s a d e e 这样的3 X 4 矩阵中包含一条字符串"bcced"的路径,但是矩阵中不包含"abcb"路径,
因为字符串的第一个字符b占据了矩阵中的第一行第二个格子之后,路径不能再次进入该格子。
分析:回溯算法
这是一个可以用回朔法解决的典型题。首先,在矩阵中任选一个格子作为路径的起点。如果路径上的第i个字符不是ch,
那么这个格子不可能处在... | [
"17764591637@163.com"
] | 17764591637@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.