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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
553bf61bcb3ac48eb5547d32726a07f83a76abb5 | cc0036f24cebf196f410fffe3d98cdb3f87f50ef | /unet/utils.py | 3a018a3807ff53e4735efc27c07be1154e6811e5 | [] | no_license | UdonDa/gijutusyoten | 95917ff1f85f2f549a8f9bd6c5f2e12ef025c495 | 390011557f801157e26cab1f070557d816760fac | refs/heads/master | 2020-03-29T13:13:17.504093 | 2018-10-08T11:02:12 | 2018-10-08T11:02:12 | 149,946,665 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | import os
import numpy as np
from PIL import Image
import torch
def make_dir(path):
if os.path.exists(path):
return True
else:
if not os.path.isdir(path):
os.makedirs(path)
print("Making {}".format(path))
def tensor2im(input_image, imtype=np.uint8):
if isinstance(input_image, torch.Tensor):
... | [
"udoooon0727@gmail.com"
] | udoooon0727@gmail.com |
4e27544df59ed42611b71fbe0911b28afad21d9a | 06ffdca2ad7c3437eacaa551dca61504893767c9 | /VariableKUserAndItem.py | f20ce6908f611f153f240f6254257f01cfdb6b67 | [] | no_license | wilben/Recommendation-System | 24320f37b2bc8f714d7a5ed824ced11f17069472 | c96dd90691371f7efc32fa9c334e01046aece7fb | refs/heads/master | 2021-05-09T13:28:35.946499 | 2017-04-11T03:23:24 | 2017-04-11T03:23:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,214 | py | ### Scripted by Mohammed Jasam
### mnqnd@mst.edu
import matplotlib.pyplot as plt
import numpy as np
import subprocess
import csv
import os
import matplotlib.pylab as plt
import seaborn as sns
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
l=[]
# ###############################################... | [
"mnqnd@mst.edu"
] | mnqnd@mst.edu |
954e11d00f4c67168be60e7c7cb0f8586b05a3c2 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python-flask/generated/openapi_server/models/com_day_cq_wcm_designimporter_parser_taghandlers_factory_image_componen_properties.py | 63fec33f02de89780dd8099e4562e39bff37592e | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 5,407 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server.models.config_node_property_integer import ConfigNodePropertyInteger # noqa: F401,E501
from ope... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
4ef4e6a27ea20d2407a60ec5cfabd2b061b88943 | 192dbe9fa2b9fe1a08dc8b15e4073ca76013e437 | /Django_TODO_app/todo/tests.py | 21c354f9f787d6faf56b1d187b8a155a6a93c582 | [] | no_license | Oebele/Django-TODO-app | 96935bcc5ca50c1d065ba1201ffc2369656f406e | 309906d1350078bc1ffa57f07c72d595999197f3 | refs/heads/master | 2022-12-04T11:26:56.325328 | 2020-08-23T10:02:29 | 2020-08-23T10:02:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from django.test import TestCase
# Create your tests here.
class MyTests(TestCase):
async def test_index(self):
response = await self.async_client.get('')
self.assertEqual(response.status_code, 200)
| [
"you@example.com"
] | you@example.com |
343f9ef62e9064f3394fc356129932d6d77cc6a4 | ddcddd9de55c81bf8e8a6195503a9368b8a4ad9c | /The Core/Spring of Integration/092 - stringsCrossover.py | bdaea0968f0bc87f5f66a61fefc316446f6f1da2 | [] | no_license | Zahidsqldba07/CodeSignal-26 | 3224a4127dcc5c36a162a20b7204b65feaa53c8b | 2229026da7eb0141aa78e22df84996183cab7aa4 | refs/heads/master | 2023-06-28T21:02:53.998919 | 2021-08-01T18:48:17 | 2021-08-01T18:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | def stringsCrossover(a, r):
return sum( all( r[k]==a[i][k] or r[k]==j[k] for k in range(len(r)) ) for i in range(len(a)) for j in a[i+1:] )
| [
"noreply@github.com"
] | Zahidsqldba07.noreply@github.com |
5966d617bb469c5979828e532fa7fa4194287154 | 59cd62b97f65d7f695f75e3ae6e827206d9310d8 | /linter.py | 8fae8861241c85beccc87827b2ba8b366e272441 | [
"MIT"
] | permissive | CudaText-addons/cuda_lint_gotype | 54b8ac8268c1f1ecf4b2e4ea2f7b155680f930f1 | 36c405551bde44c093dd6437598282afdbdbf78b | refs/heads/master | 2021-01-12T14:09:10.943924 | 2016-10-03T23:43:55 | 2016-10-03T23:43:55 | 69,920,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | # Original by Jon Surrell
# Copyright (c) 2014 Jon Surrell
# License: MIT
# Change for CudaLint by Alexey T.
import os
from cuda_lint import Linter, util
if os.name=='nt':
_exe = os.path.join(os.path.dirname(__file__), 'gotype', 'gotype.exe')
else:
_exe = 'gotype'
class Gotype(Linter):
"""Provides an int... | [
"support@uvviewsoft.com"
] | support@uvviewsoft.com |
b6fd166e45e206a8b69d7057bcbd01dfa5a22d9c | 5f92dd6164c41e5756842da0a053b207005be252 | /tests/utils/test_db_cleanup.py | 66ce41eff149b019952a33c58c9715d9cbf758f6 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | mans2singh/airflow | 24d17446457ebfbf17850d336722f79e46b06404 | de9633f93a366ebc0a46d1ec4df2c4aa9a18357d | refs/heads/main | 2023-03-20T17:56:18.506101 | 2022-10-22T19:41:57 | 2022-10-22T19:41:57 | 168,956,212 | 0 | 0 | Apache-2.0 | 2019-02-03T14:51:24 | 2019-02-03T14:51:23 | null | UTF-8 | Python | false | false | 12,395 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | mans2singh.noreply@github.com |
adc3286de3f60e8405d2d649f5341f4656d1419f | cb98b78c2b6e5f66202e52403d812f5fefee69e1 | /lib/ops/LSTM.py | aa0706c83eccbf345ae66e2a5e53c9f425ba926a | [] | no_license | HelenYou/OCR2Text | 600dfa20da9aaa027e73c3a18faecf17c4a9f913 | b7c6994918496bc36d8ecb6f9548d258702290a0 | refs/heads/master | 2020-06-01T21:32:06.887569 | 2019-06-09T15:58:32 | 2019-06-09T15:58:32 | 190,935,256 | 0 | 0 | null | 2019-06-08T21:09:18 | 2019-06-08T21:09:18 | null | UTF-8 | Python | false | false | 13,778 | py | import tensorflow as tf
import numpy as np
import lib.ops.Linear
import warnings
import functools
from lib.ops.Conv2D import conv2d
def deprecated(func):
"""This is a decorator which can be used to mark functions
as deprecated. It will result in a warning being emitted
when the function is used."""
@... | [
"zichao.yan@mail.mcgill.ca"
] | zichao.yan@mail.mcgill.ca |
85e2856cda4f7531703ff1ea32337db208b4501b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_flowed.py | b95a5ea1679c51e024e2cf36e4e86a0a6b58fdb2 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
from xai.brain.wordbase.nouns._flow import _FLOW
#calss header
class _FLOWED(_FLOW, ):
def __init__(self,):
_FLOW.__init__(self)
self.name = "FLOWED"
self.specie = 'nouns'
self.basic = "flow"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4a5d851ef815fb2122afd92249559159567c6b2c | 6ee99be75ddff2b4c78434595d568d3cccfcf530 | /printscrambledtext.py | 6e8d26979897de449f84aebe70ae053f2a13e2ba | [] | no_license | swordwielder/python3 | e66f3de18c25fb861b4b697a5349099825f1983d | 105ff3a499ce7f3459591107becd8847f30b5f7c | refs/heads/master | 2023-01-19T10:39:51.570407 | 2020-11-30T17:33:27 | 2020-11-30T17:33:27 | 192,809,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | s = input()
out = s[::2]
if not len(s) % 2:
out += s[::-1][::2]
else:
out += s[::-1][1::2]
print(''.join(out))
s = input()
r=''
for i in range(0,len(s),2):
r+=s[i]
x=1
if len(s)%2==0:
x=0
for i in range(x,len(s),2):
r+=s[len(s)-1-i]
print(r)
| [
"qchen125@gmail.com"
] | qchen125@gmail.com |
ef56b8e1c8dc4d97fd9e88cbf700a60ae2fb9964 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03078/s696106581.py | a11dce54b5cf582a0f4cd77f3fc6d284aef2ca75 | [] | 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 | 975 | py | import sys
input = lambda: sys.stdin.readline().rstrip()
from heapq import heappop, heappush, heapify
X,Y,Z,K = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
C = list(map(int, input().split()))
A.sort(reverse=True)
B.sort(reverse=True)
C.sort(reverse=True)
sum_list... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d3cbe6dfc2c5631a4e8d9f101a435d2bf7e95683 | cfc3fa658f826d02308453e557d82758895399c2 | /datasets/opus_gnome/opus_gnome.py | d7f26a749917f182bd477c751b2320ac7d9c3028 | [
"Apache-2.0"
] | permissive | meehawk/datasets | cac530ec0e17514c01cdff30302521d6303ed93b | b70141e3c5149430951773aaa0155555c5fb3e76 | refs/heads/master | 2023-03-29T12:51:54.700891 | 2021-04-08T17:22:53 | 2021-04-08T17:22:53 | 355,996,122 | 9 | 0 | Apache-2.0 | 2021-04-08T17:31:03 | 2021-04-08T17:31:02 | null | UTF-8 | Python | false | false | 4,384 | py | # coding=utf-8
# Copyright 2020 HuggingFace Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"noreply@github.com"
] | meehawk.noreply@github.com |
d9546d1b7e3937a1d90aa7e7e16feb84a59fa970 | a02789088ef6f7134d70b7235fa92ddcab9a667b | /eventsourcing/tests/test_snapshotting.py | ba025687fd615c250e24db723d9ad37952676061 | [
"BSD-3-Clause"
] | permissive | bernardotorres/eventsourcing | 89f4f6aaf62f321ce28f5ec9ddbb60712495aa8b | 002077d185c261920f8ea8a397e292ab73a25319 | refs/heads/main | 2023-08-07T17:38:59.665618 | 2021-09-18T07:04:19 | 2021-09-18T07:04:19 | 407,116,568 | 0 | 0 | BSD-3-Clause | 2021-09-16T10:13:36 | 2021-09-16T10:13:35 | null | UTF-8 | Python | false | false | 2,061 | py | from decimal import Decimal
from unittest import TestCase
from eventsourcing.domain import Snapshot
from eventsourcing.persistence import (
DatetimeAsISO,
DecimalAsStr,
EventStore,
JSONTranscoder,
Mapper,
UUIDAsHex,
)
from eventsourcing.sqlite import SQLiteAggregateRecorder, SQLiteDatastore
fro... | [
"john.bywater@appropriatesoftware.net"
] | john.bywater@appropriatesoftware.net |
891a0675682d547a14e4c805d462c13996d3b607 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/6040/460006040.py | b57604d1c75e5447ecda865d7621d36ee173903d | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,329 | py | from bots.botsconfig import *
from records006040 import recorddefs
syntax = {
'version': '00604',
'functionalgroup': 'TP',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'REN', MIN: 1, MAX: 1},
{ID: 'DK', MIN: 1, MAX: 1},
{ID: 'PI', MIN: 0, MAX: 8},
{ID: 'PR', MIN: 0, MAX: 200},
... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
d82b8c1944605e33ed209d692de92d6013b2108c | 37fef592f365194c28579f95abd222cc4e1243ae | /streamlit/venv/venv/lib/python3.7/site-packages/plotly/validators/scatterternary/marker/_symbol.py | 8e64651b5bea41cce74c935502dc68231b500a34 | [] | no_license | edimaudo/Python-projects | be61e0d3fff63fb7bd00513dbf1401e2c1822cfb | 85d54badf82a0b653587a02e99daf389df62e012 | refs/heads/master | 2023-04-07T03:26:23.259959 | 2023-03-24T12:03:03 | 2023-03-24T12:03:03 | 72,611,253 | 4 | 3 | null | 2022-10-31T18:10:41 | 2016-11-02T06:37:17 | null | UTF-8 | Python | false | false | 14,552 | py | import _plotly_utils.basevalidators
class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self, plotly_name="symbol", parent_name="scatterternary.marker", **kwargs
):
super(SymbolValidator, self).__init__(
plotly_name=plotly_name,
parent... | [
"edimaudo@gmail.com"
] | edimaudo@gmail.com |
2d98d2574f08d36b569d7460b842ddcfab29f4b4 | 54f0c6fc05f4e8122e1ce5580fc27e8a0f0bc3ce | /lesson_4/places_exercise.py | 20ec8ee271b2683b00d37c16244ceee9ec7d39cf | [] | no_license | mpaolini/python-course-IAL | 530028b51d34ca008728640e738d0fcd0fb9796e | 78ab38f7c3b7fcac7e8b36325ae99c6553914f01 | refs/heads/master | 2021-01-10T22:23:05.288845 | 2015-06-04T07:29:46 | 2015-06-04T07:29:46 | 31,285,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | '''
Build a function that given a string, returns all places that contain the string:
>>> places = find_places('IAL')
>>> places[0]
('IAL ROMA E LAZIO', 41.954964, 12.523495)
HOMEWORK: Build a function that given a place, returns a list of places nearby
Hint: use nearby search API https://developers.google.com/place... | [
"marco@credra.com"
] | marco@credra.com |
ae64247d52596583db1b54045acd7b863f40fdcb | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/aio/operations/_virtual_hubs_operations.py | 23d8fdfc972889118a0d9f8c5eb7f7fde3231e26 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 26,705 | 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"
] | scbedd.noreply@github.com |
0b0aaa55715d067d0d7c2a08e4692d53a0329eb1 | 13b1ece281a1eaa0cac2706c14f1d4c190f73c2b | /Assignment 5/cursed_family_solutions/BMC201938/BMC201938.py | 5ae9eb808f01146e3c46074519c4de290fb942fe | [] | no_license | bhi5hmaraj/APRG-2020 | 0c995f79cc50108956d1bd0ceed8d7cb6d96f34e | 7e11c14a02d48d52b547696fc930f38c586ce0da | refs/heads/master | 2022-07-17T09:41:58.947321 | 2020-05-21T12:34:46 | 2020-05-21T12:34:46 | 236,176,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | from collections import defaultdict
class Graph:
def __init__(self,vertices):
self.V= vertices
self.graph = defaultdict(list)
def addEdge(self,u,v):
self.graph[u].append(v)
def lar_gat(self, u):
if self.graph[u] == []:
A[u-1] = 1
return 1
... | [
"srinidhin@outlook.com"
] | srinidhin@outlook.com |
e532a4194bedb9af541a105caaa2d2abf83e0550 | f65e757d3e69c520fd121a8ee9fae61916165db8 | /tensorflow_Application/tensorflow_NeuralStyle/main.py | 869a229a545a8e72024d41d232156a1bc14a8579 | [] | no_license | yfkwon/Tensorflow_Advanced_Tutorials | 4138113665f9b1a4733a2284e24ce61e9b030694 | ec79838afab8728fd3e1f5b52ac1c083ab484126 | refs/heads/master | 2020-03-24T19:38:32.983089 | 2018-07-30T15:43:39 | 2018-07-30T15:43:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | import os
import model
# download URL : http://www.vlfeat.org/matconvnet/models/imagenet-vgg-verydeep-19.mat
if not os.path.exists("weights"):
os.makedirs("weights")
model_file_path = 'weights/imagenet-vgg-verydeep-19.mat'
# content_a / style_b = 1/1000
content_image = "content/person.jpg"
style_image = "style/... | [
"medical18@naver.com"
] | medical18@naver.com |
3f2aa728b86b303b34b665b5f8d87ca74106cc95 | 9397b7cd45e728af4fb1fc589e35b24969989ebb | /doc/source/_local_ext.py | 4d461166094636fbc59db44e84556697ff38a068 | [
"MIT"
] | permissive | anntzer/mplcursors | 79c9b8b09360988653a2ac6cc870d538338585fc | 834703a85102dd16edfc484fc07641c36a24dbd4 | refs/heads/main | 2023-07-07T07:30:16.856331 | 2023-06-29T23:20:42 | 2023-06-30T19:37:06 | 63,763,767 | 100 | 18 | MIT | 2023-06-30T19:37:08 | 2016-07-20T08:20:36 | Python | UTF-8 | Python | false | false | 241 | py | from sphinx_gallery.sorting import ExampleTitleSortKey
class CustomSortKey(ExampleTitleSortKey):
def __call__(self, filename):
return ("" if filename == "basic.py" # goes first
else super().__call__(filename))
| [
"anntzer.lee@gmail.com"
] | anntzer.lee@gmail.com |
8afa2e16d9a9cadf08d25da0c3bbb1a9f60e9287 | bf681fbd7edbf4f8f1e0b20cbd09b362f777c9c3 | /python/bazel_py_example/mid/library1.py | 4e04d1c69cb7ae788f38f34d6bbe2428a889366a | [
"BSD-3-Clause"
] | permissive | EricCousineau-TRI/repro | 308d4a86f3c7da8be5811db2f3f68d39db60d7ed | 9800f45e07f511c9a355ee90333955451b55559a | refs/heads/master | 2023-08-31T13:49:23.540640 | 2023-08-25T19:18:33 | 2023-08-25T19:18:33 | 87,116,976 | 24 | 13 | NOASSERTION | 2023-03-25T01:40:55 | 2017-04-03T20:19:28 | Jupyter Notebook | UTF-8 | Python | false | false | 34 | py | def library1_func():
return 1
| [
"eric.cousineau@tri.global"
] | eric.cousineau@tri.global |
a63815dd1b61222ea459f30ac4a302bf8c8ce1c9 | 16479bc37b1ccd1acaa1b03858ff415a451c436e | /cairis/cairis/InternalDocumentPanel.py | fe51249e591b051b2aa4dc63a9e98f3d12aed36c | [
"Apache-2.0"
] | permissive | nix4/CAIRIS | 437add1829304961d485a6fe064141115a5d5473 | 1ebffa8178a2703e9d9e860cb4e0b13bd16a0b22 | refs/heads/master | 2021-01-20T23:31:25.473237 | 2012-07-08T12:27:39 | 2012-07-08T12:27:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
53466192b6b1b9653246b371a61acd9be0f6cdcf | 60eb98538025c61cf94a91f6c96f9ee81dcd3fdf | /tests/test_csv_dataset.py | d187f4e64da3b3eb313da7d1ca2041a9fbad9003 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | gagandaroach/MONAI | 167e7746995d4b6136731881e22ad4df333b16a9 | 79b83d9fac41efae9b90ed2f9ad078d6d664bf64 | refs/heads/master | 2023-06-02T19:54:47.737846 | 2021-06-24T18:34:02 | 2021-06-24T18:34:02 | 270,741,899 | 0 | 0 | Apache-2.0 | 2020-06-08T16:29:32 | 2020-06-08T16:29:31 | null | UTF-8 | Python | false | false | 7,771 | py | # Copyright 2020 - 2021 MONAI Consortium
# 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 wri... | [
"noreply@github.com"
] | gagandaroach.noreply@github.com |
dd8a4a249aba930eb0c3fddc6418d033ed608468 | ba9afe27c3e379143560e5488eead0752049f387 | /app/blueprints/user/validators.py | a9f293189a8c35a4bdbe3fe8603ce865c8d8ea66 | [] | no_license | sbansa1/SnakeEyes | f1c1d1696c11544e7eacbfbe1ead471b26c54bf9 | 874eb569d2498de5c3ff8f4c4283434cd6d53143 | refs/heads/master | 2022-12-09T23:45:47.637717 | 2019-06-27T11:03:53 | 2019-06-27T11:03:53 | 194,081,493 | 0 | 0 | null | 2022-12-08T05:49:11 | 2019-06-27T11:17:57 | HTML | UTF-8 | Python | false | false | 775 | py | from wtforms.validators import ValidationError
from app.blueprints.user.model import User
def ensure_identity_exists(form,field):
"""Ensure an identity exists.
:param form: wtforms Instance
:param field: Field being passed in
:return: None
"""
user = User.find_by_identity(field.data)
if... | [
"saurabh.bnss0123@gmail.com"
] | saurabh.bnss0123@gmail.com |
2e504dba6235daabe3391c1c64fabaf85499f7c4 | 16fcf452e6165a0de5bc540c57b6e6b82d822bb1 | /Learntek_code/25_Sep_18/for1.py | 1b2c8f35f58f1f888bd9ef7373ece4daf1b479cb | [] | no_license | mohitraj/mohitcs | e794e9ad2eb536e3b8e385fb8d222e8ade95c802 | d6399b2acf69f5667c74f69715a0b55060bf19d1 | refs/heads/master | 2021-09-09T00:21:23.099224 | 2021-09-07T16:39:07 | 2021-09-07T16:39:07 | 87,798,669 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | for each in xrange(20):
print (each) | [
"mohitraj.cs@gmail.com"
] | mohitraj.cs@gmail.com |
6983669dd9e7d041287e7d852e3c7e15144ed40d | 485a6d06c0e3aa33ab44f2ecfc26a863484e71ed | /course3/principles/polymorphism.py | 1d36caf9e5cb4107d270614d5710ffa1129ea172 | [] | no_license | karennina/tceh-python | b59a8a04a1fce575084003a0d66c912acb09d123 | 15064699ef8d7c116471444f08856e0f61a02f67 | refs/heads/master | 2021-01-21T05:53:31.583613 | 2016-09-16T16:08:38 | 2016-09-16T16:08:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
__author__ = 'sobolevn'
def func():
pass
class Parent(object):
def call(self):
print('Parent')
class Child(Parent):
def call(self):
print('Child')
def call_obj(obj):
obj.call()
if __name__ == '__main__':
Parent... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
c6298f059135b6337fc0af9ed50f6db99eba593b | 74cf82a86bb853df07bfda7843e7f96c4db12004 | /lora_rfm9x/gps_setup_main.py | e5ac8af4a2597ab76832efe38e1873ea46b95700 | [] | no_license | Kanaderu/CircuitPython | bd1933fc25ef75536d986a8f8a171e73a97dfdba | e3119539c49c04433368df9e6a961888642b060b | refs/heads/master | 2020-12-27T11:34:01.473890 | 2020-03-22T19:27:28 | 2020-03-22T19:27:28 | 237,885,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,446 | py | # CircuitPython Demo - USB/Serial echo
import time
import board
import busio
import digitalio
import struct
import adafruit_gps
led = digitalio.DigitalInOut(board.D13)
led.direction = digitalio.Direction.OUTPUT
uart = busio.UART(board.TX, board.RX, baudrate=9600)
gps = adafruit_gps.GPS(uart, debug=False) # Use U... | [
"fand.kanade@gmail.com"
] | fand.kanade@gmail.com |
94087276d310a1fd1bffde5fa01bdab11841d6c9 | 92af0d7e1d0c6b17e80ee249bb133d8e1f1c7852 | /ABC057/D.py | 9fa65c52d6fee0e6504ff163c14be75487e399ac | [] | no_license | ohshige15/AtCoder | 6157089f4672d8497789db02db3bfce334ec0152 | c0d1e979631d9df62e70a2b1066bc670fccae1ec | refs/heads/master | 2020-04-23T03:25:43.325538 | 2019-09-19T11:18:57 | 2019-09-19T11:18:57 | 170,878,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | import math
from collections import Counter
N, A, B = map(int, input().split())
V = sorted(Counter(list(map(int, input().split()))).items(), key=lambda x: x[0], reverse=True)
if A <= V[0][1]:
print(V[0][0])
x = min(V[0][1], B)
num = 0
for i in range(A, x + 1):
num += math.factorial(V[0][1]) // (... | [
"satoshi.o.xxx@gmail.com"
] | satoshi.o.xxx@gmail.com |
f37c1f42287336cba4097d1ae12bc4d349eaba68 | c5744c2fda48ae6a79c155c641fe98021a0cb7f3 | /PP4E/GUI/Tour/demo-check-auto.py | b0d49353c98a7192e19964a469f32a50ed551e0d | [] | no_license | skinkie/Scripts | e0fd3d3f767612ade111f28bc7af3e1b25fc2947 | 80a1ba71ddf9a0c5ff33866832cb5c42aca0c0b1 | refs/heads/master | 2021-05-31T16:57:21.100919 | 2016-05-23T09:58:59 | 2016-05-23T09:58:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | # e.g. 8-24
from tkinter import *
root = Tk()
states = []
for i in range(10):
var = IntVar()
chk = Checkbutton(root, text=str(i), variable=var)
chk.pack(side=LEFT)
states.append(var)
root.mainloop()
print([var.get() for var in states])
| [
"death_finger@sina.com"
] | death_finger@sina.com |
45d30389dbccefe8f64ea47198856c0c6e849e86 | d3b3a3e8c3a053c74479d588a26dd0343e015663 | /快捷办公/设置桌面壁纸.py | e629e6894547c960da64574097ced695c3ac7298 | [] | no_license | Mr-big-c/github | b6978ad920bc8f4d2cee1fca1cac72cce5767e12 | d301aa4516a00007980f34b94de3c7b5fb4198fa | refs/heads/master | 2021-10-01T18:57:51.133095 | 2018-11-28T15:00:40 | 2018-11-28T15:00:40 | 300,145,501 | 1 | 0 | null | 2020-10-01T04:42:30 | 2020-10-01T04:42:29 | null | UTF-8 | Python | false | false | 445 | py | """
设置桌面壁纸
"""
import win32api
import win32con
import win32gui
def setwallpaper(path):
# 打开注册表
win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER, "Control Panel\\Desktop", 0, win32con.KEY_SET_VALUE)
# 设置壁纸路径
win32gui.SystemParametersInfo(win32con.SPI_SETDESKWALLPAPER, path, win32con.SPIF_SENDWININICHA... | [
"2551628690@qq.com"
] | 2551628690@qq.com |
7651de68a3544e6b06210159e03a1b1d1186d52e | 5242176d8e5363f4d2db27a456eebc2e17005c5b | /thread.py | e8629286faab6b270697a8dfcca18944da7be592 | [] | no_license | edumoraisv/aaaaaaa | 96262cc1d6f368a049017e52fcf686199506a39c | 34d2c2fb5e9212bb5807107efc8fade109c7a1fc | refs/heads/master | 2023-03-13T20:30:57.222757 | 2018-07-05T23:37:29 | 2018-07-05T23:37:29 | 342,929,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,722 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from time import sleep
from itertools import repeat
import datetime
import os
... | [
"philippi.sedir@gmail.com"
] | philippi.sedir@gmail.com |
36ca7ed7575d374ea904d0594d769b9f575139d8 | 27331020ff20d00f4e875f6a20ce0ca1c906da43 | /Portpolio/autocomplete/Model_lstm/main.py | a3ceab53b6415150f0a8f0b53f1a8be6d796acbe | [] | no_license | MOOSUNGPARK/source | 2ac7f24766c953cfafc632eb2812f713aa708944 | 50b2d169d5c64778d818decd564045d7f8e6c304 | refs/heads/master | 2021-01-20T14:29:02.015764 | 2019-01-09T06:37:35 | 2019-01-09T06:37:35 | 90,616,630 | 1 | 7 | null | null | null | null | UTF-8 | Python | false | false | 3,676 | py | import tensorflow as tf
import numpy as np
import time
import sys
import Portpolio.autocomplete.Model_lstm.util as Util
from Portpolio.autocomplete.Model_lstm.lstm1 import Model
# validation / 중간 test / saver
ckpt_file = ""
TEST_PREFIX = "내 랩은 " # Prefix to prompt the network in test mode
print("Usage:")
print('\t\... | [
"0911godqhr!"
] | 0911godqhr! |
a6be68413ad796001d202c86c51ed147f53323c9 | a9e60d0e5b3b5062a81da96be2d9c748a96ffca7 | /configurations/optics-config/xsd/scripts/scannables/polarimeterTemperatureMonitor.py | 8f46a81b4e390b2b0b4cf62340edb54a63a119f8 | [] | no_license | openGDA/gda-diamond | 3736718596f47607335ada470d06148d7b57526e | bbb64dcfd581c30eddb210c647db5b5864b59166 | refs/heads/master | 2023-08-16T08:01:11.075927 | 2023-08-15T16:01:52 | 2023-08-15T16:01:52 | 121,757,699 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | '''
create 2 scannables that monitor Retardation motor temperature and Analyser motor temperature in a polarimeter.
Created on 18 Dec 2009
@author: fy65
'''
from epics.pvmonitor.threadedMonitor import EpicsPVWithMonitorListener
rettemp = EpicsPVWithMonitorListener('rettemp', 'ME02P-MO-RET-01:ROT:TEMP', 'degree', '%.... | [
"fajin.yuan@diamond.ac.uk"
] | fajin.yuan@diamond.ac.uk |
592747bf3c3b6bf6c0e9ad2e03be2c3741ed3d9b | 44c5f9840ed5c5e098e8ecf96990a2f8ad6d50eb | /url_lib.py | 93116cd4184e0d8dd5c894d3c37f3473ca7084ac | [] | no_license | chinmairam/Python | 619562718197cfdbc804b06559c58ed54114c935 | cafcde1788aff801d4cc160090f674537a26f648 | refs/heads/master | 2023-03-02T17:47:21.903132 | 2021-01-31T14:46:03 | 2021-01-31T14:46:03 | 284,530,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | # urllib
import urllib.request as url
# dir(urllib)
page = url.urlopen('http://www.textfiles.com/etext/AUTHORS/POE/poe-raven-702.txt')
# print(page)
text = page.read() # Prints in bytes format of text
text = text.decode() # Text
page.close()
file = open('raven.txt','w')
# print(file)
file.write(text)
file.close()
f... | [
"chinmairammuppa@gmail.com"
] | chinmairammuppa@gmail.com |
cad50f3d310c418f373c00a2585df5aa75b93e2d | 8310622d9f504b6ffdac62b57727afbc0af9992e | /problems/problems@1~100/problem_63/Powerful_digit_counts.py | f1c31c159e63026dbab31bfccd8060ac6ada9907 | [] | no_license | smsxgz/euler_project | aba61131682d04ee614167181e7d77e979db7e02 | df373a5cdf2c3c106763ee2c25671f85f9ec3a9b | refs/heads/master | 2023-02-22T12:00:24.801942 | 2023-02-04T13:23:27 | 2023-02-04T13:23:27 | 98,957,903 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | from math import log10, floor
res = 3
for i in range(4, 10):
res += floor(1 / log10(10 / i))
print(res)
| [
"smsxgz@gmail.com"
] | smsxgz@gmail.com |
661dda26996da560941d727f853249e2ee7f47e8 | 37c35a4ab79d204b6142fdd45d3ee4faa06f27f4 | /python/knock065.py | 3a0cbd4f16ce18c0f2618fc8f60eebf9b47d10bf | [] | no_license | ryosukee/NLP100Knock2015 | 3e10a0e9ebb5f7b7b450ba375949d31c38184d32 | a784a6bb8e14ea2e912def6818bf1868a5d4927f | refs/heads/master | 2020-04-14T19:27:55.016225 | 2015-08-04T12:26:07 | 2015-08-04T12:26:07 | 33,662,035 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | # coding:utf-8
"""
python knock065.py
"""
from pymongo import Connection
# connection
connect = Connection('localhost', 37017)
db = connect['100knock']
collect = db['064']
for data in collect.find({'name': 'Queen'}):
print data
| [
"tmcit.miyazaki@gmail.com"
] | tmcit.miyazaki@gmail.com |
29fa51a681c96b19bf17d34c61e7021556bde4b8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02777/s602814759.py | b12c434e41fb33a28008a200df933c0684e2d8f3 | [] | 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 | 146 | py | s,t=input().split()
a,b=map(int,input().split())
u=input()
if u==s:
print("{} {}".format(a-1,b))
elif u==t:
print("{} {}".format(a,b-1)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e2215b4bdd94dbfc514f17f21d9f6658ec091625 | b7e6cdf094baaee9d6e5034c2355641fbf9138d7 | /476. 数字的补数.py | 7a782e047478e786237957077a0000c557fb2d82 | [] | no_license | heshibo1994/leetcode-python-2 | 04296c66cd6d1fe58880062aeafdbe9d474b7d2e | 3ea32f03bd453743b9b81de9871fad7ac67ced90 | refs/heads/master | 2020-05-23T21:49:01.367969 | 2019-09-30T03:31:27 | 2019-09-30T03:31:27 | 186,961,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | # 给定一个正整数,输出它的补数。补数是对该数的二进制表示取反。
#
# 注意:
#
# 给定的整数保证在32位带符号整数的范围内。
# 你可以假定二进制数不包含前导零位。
#
# 示例 1:
#
# 输入: 5
# 输出: 2
# 解释: 5的二进制表示为101(没有前导零位),其补数为010。所以你需要输出2。
class Solution:
def findComplement(self, num):
x = bin(num)[2:]
ans = ""
for i in x:
ans = ans+str(1-int(i))
... | [
"csuheshibo@163.com"
] | csuheshibo@163.com |
59f574ad715966e7a5a86428500b9390beab9a5a | d9b6de55af0b6e1493fc77abd28a9cab21ed5c36 | /unit_tests/test_scripts/extras/flow123d_mock.py | 3ff98912dcd73d78c162424b451701aace78fd4d | [] | no_license | flow123d/flow123d | 016af7cd55b5a8ed9426d843aace62f12b01cbb1 | 1f02b2c851f0e6ec2f93321b623000381b558a0b | refs/heads/master | 2023-09-05T01:38:06.288200 | 2023-09-04T13:24:38 | 2023-09-04T13:24:38 | 13,628,170 | 17 | 16 | null | 2023-09-12T11:27:36 | 2013-10-16T18:56:28 | C++ | UTF-8 | Python | false | false | 2,248 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# author: Jan Hybs
# Flow123d mock file
# ----------------------------------------------
import os
import random
import shutil
from optparse import OptionParser
# ----------------------------------------------
import time
import sys
# -----------------------------------------... | [
"jan.hybs@tul.cz"
] | jan.hybs@tul.cz |
a52e1e0f2dd18b807db1f008a8b70c0d81ac4c0c | 36c5770217c104bea5cc1e5e43a9faa803daccec | /2021/Day_04/aoc_2021_day04.py | 9a0f748d67b377b70e5e714341785f44a0619586 | [] | no_license | sco1/adventofcode | 3a2ac0905c04e5a42d409d27e71dc7c5b3cf33a4 | cb029bb825f35944f505f8c88346bd2504695821 | refs/heads/main | 2023-04-30T10:25:02.770042 | 2023-04-17T01:07:46 | 2023-04-17T18:11:35 | 160,292,002 | 0 | 1 | null | 2023-04-06T13:17:54 | 2018-12-04T03:37:54 | Python | UTF-8 | Python | false | false | 3,157 | py | import typing as t
from pathlib import Path
import numpy as np
def parse_bingo(puzzle_input: list[str]) -> tuple[list[int], np.ndarray]:
"""
Parse the provided puzzle input into the list of numbers to draw & the bingo boards to play.
The first line of the input is assumed to be a comma separated list of... | [
"sco1.git@gmail.com"
] | sco1.git@gmail.com |
858931f7dd318b3e2297a84218b535fda1b2e7b9 | 9cc8b489018dc25781b0aaa407a9ddc2a5caa72b | /examples/reservoir/mnist_lsm_izsnn.py | b90bfffa0e0a8aeb076c5bb9a6b69dcdf79757bd | [
"Apache-2.0"
] | permissive | SocratesNFR/EvoDynamic | 2921fba58fec60ff8c3d239be4f84dced2f41d01 | ddd93c999d0120349ab022e47fd370ca58ec5ce7 | refs/heads/master | 2023-03-30T21:31:55.031043 | 2023-03-29T12:15:15 | 2023-03-29T12:15:15 | 183,439,783 | 17 | 5 | Apache-2.0 | 2020-09-07T13:08:13 | 2019-04-25T13:26:45 | Python | UTF-8 | Python | false | false | 7,532 | py | """
Testing features and method for
Liquid State Machine with Izhikevic - Reservoir for MNIST digit classification
Adapted from:
Schaetti, Nils, Michel Salomon, and Raphaël Couturier.
"Echo state networks-based reservoir computing for mnist handwritten digits
recognition." 2016 IEEE Intl conference on computational sc... | [
"sidneypontesf@gmail.com"
] | sidneypontesf@gmail.com |
9b87c973257ae45152ebd7d300c5bfb955d529b5 | 1fb0b528852c9892cea02db5fa58170ec9a240ab | /liteiclink/transceiver/gtp_7series.py | aadf4985bd11b2a12a603aabd3be501d1e79eb0b | [
"BSD-2-Clause"
] | permissive | rob0tsunny/liteiclink | aae374d835c51a5aa3111639192e39673aec4d44 | 31c7b6ab77e169100f8cdff00e238cc55cc174c5 | refs/heads/master | 2020-08-18T02:26:37.744889 | 2019-10-14T17:41:07 | 2019-10-14T17:41:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,867 | py | # This file is Copyright (c) 2017-2019 Florent Kermarrec <florent@enjoy-digital.fr>
# This file is Copyright (c) 2017 Sebastien Bourdeauducq <sb@m-labs.hk>
# License: BSD
from migen import *
from migen.genlib.cdc import MultiReg, PulseSynchronizer
from migen.genlib.resetsync import AsyncResetSynchronizer
from litex.s... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
37708dc510361bec296431e906e5104260aa930e | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/9/xw_.py | b3ee802aab4cd07d977538d2f3197ea1e717bc35 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
8c240f19b53d28b04446ed328da1afec15d50516 | 54b8fa244ff0dae2018efedcb81e1bb03376e5e2 | /test/functional/wallet_dump.py | 1cf42872e8838d7b47a3288888524359f2ae03d6 | [
"MIT"
] | permissive | afghany/castletmp | e15677a88f9a1878486b6becf93d26c0ee9dbeaf | 9d0daed2a6abaf7d93f9308f5c602db6eeb42c8b | refs/heads/master | 2022-11-27T14:58:47.802781 | 2020-08-08T21:26:12 | 2020-08-08T21:26:12 | 284,464,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,404 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the dumpwallet RPC."""
import os
from test_framework.test_framework import CastleTestFramework
f... | [
"shagolo@gmail.com"
] | shagolo@gmail.com |
72611b8c0ae93f52b1409233086111df91283b96 | 5bce1118b13289308d23510f323c79aa972ddc27 | /tests/irisv2/message/validations/test_getMessage_negative_ValidationMessage.py | a9a6258f5f5fd89e620b824b60ec5c3a36343ad4 | [] | no_license | anupsl/pyApps | 62b64b90723de32684bbabee402220317a4fe817 | 2651d502c366b87449a0c977a9876cc32521c57c | refs/heads/master | 2022-07-03T05:49:12.828630 | 2020-05-10T17:25:26 | 2020-05-10T17:25:26 | 255,157,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,994 | py | import pytest
from src.modules.irisv2.helper.irisHelper import IrisHelper
from src.modules.irisv2.message.createMessage import CreateMessage
from src.modules.irisv2.message.getMessage import GetMessage
from src.utilities.assertion import Assertion
from src.utilities.logger import Logger
from src.modules.irisv2.campaig... | [
"anup@CAP-LAP-450.local"
] | anup@CAP-LAP-450.local |
b191e4dc70e830ee7c8d0b2a454ff89c5940074e | 1b19103c7781c31b4042e5404eea46fa90014a70 | /cenit_simplyrets_1_0_0/models/config.py | ec9640667bb0cb9bcb31a33cb62e09fa15c294f7 | [] | no_license | andhit-r/odoo-integrations | c209797d57320f9e49271967297d3a199bc82ff5 | dee7edc4e9cdcc92e2a8a3e9c34fac94921d32c0 | refs/heads/8.0 | 2021-01-12T05:52:26.101701 | 2016-12-22T03:06:52 | 2016-12-22T03:06:52 | 77,223,257 | 0 | 1 | null | 2016-12-23T12:11:08 | 2016-12-23T12:11:08 | null | UTF-8 | Python | false | false | 2,508 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010, 2014 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | [
"sanchocuba@gmail.com"
] | sanchocuba@gmail.com |
211707591e766d9f1db1ef08ddd8612d995548dd | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/duplicate_20200619200024.py | 519b8582020f9a0ff3643750c39834aebb11a3db | [] | 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 | 852 | py | def duplicate(str):
# brute force approach
# is storing the substring and checking how many times they
# occur
# dictionary key is the substring and occurrences is how many
# times its occurred
words ={}
# pointers
left = 0
right = 0
new = []
while right <= len(str) and l... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
7af1efd628fd6a935e3dbd34e17cb28ec58bd38e | a7f420d9d7804d1c3fdda8edda37e095f100ea5f | /smartpms/smartpms/doctype/sub_equipment/test_sub_equipment.py | b416e5e02ecbfe1ca7418456f7ec43a9fb8249fc | [
"MIT"
] | permissive | vignesharumainayagam/smartpms-latest | 84550f5cda0ccf5f2e48e755ce58dd13d26c93e7 | 9a106bdfb9dc039a57e4616e1b0981ba5fcf3ebf | refs/heads/master | 2020-03-18T13:49:54.934629 | 2018-05-25T06:22:11 | 2018-05-25T06:22:11 | 134,812,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2017, Valiant Systems and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestSubEquipment(unittest.TestCase):
pass
| [
"vigneshwaran@valiantsystems.com"
] | vigneshwaran@valiantsystems.com |
6b167ac214738686ead79fc4dd41b4ecb2dec496 | bf9e8cb06abf554dfbc47f64d3e681e775164ade | /Sistema/Sistema/wsgi.py | 018e374a1b617735fdd543cdaad746693c0b273e | [] | no_license | cicera/Prova_V3 | 27078b84b1bc67ab78d6f4e3e6976066b15a249e | 7c794acc5725537a4f799ebcb1d5ca025ea4870e | refs/heads/master | 2021-01-20T00:41:18.953178 | 2014-11-25T21:58:58 | 2014-11-25T21:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for Sistema project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Sistema.settings")
from django.core.w... | [
"you@example.com"
] | you@example.com |
297a04f0dd67143e065e9ab9ecd998bb1f6b35d1 | 5a9182a57ec217c1fb73c7bf24eea704608c9855 | /Section 3/facade.py | d6d7a6fcb900eb6e473b9c341a54a93bb26f2add | [
"MIT"
] | permissive | PacktPublishing/Python-Design-Patterns | e1323624d38b7caeeedd7b08c5825820b065be55 | 3d4e45e27b6cb03d14a44c835b5fa5dd104d1d37 | refs/heads/master | 2023-02-08T13:49:57.767809 | 2023-01-30T08:09:16 | 2023-01-30T08:09:16 | 118,449,393 | 20 | 11 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | class Engine:
def __init__(self):
# how much the motor is spinning in revs per minute
self.spin = 0
def start(self, spin):
self.spin = min(spin, 3000)
class StarterMotor:
def __init__(self):
# how much the starter motor is spinning in revs per minute
... | [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
24ed9b8e1aa20a19e89f3cc895db2bae4a8b62e6 | 0e753849f239cb5209dd5d166805e318b99caca9 | /test_django/server_inventory/migrations/0006_auto_20200414_1535.py | 8033d9e47ed3bed740f0889edf4820dafb9839b8 | [] | no_license | pengfwan0317/dashboard | 285106423f5b55f427220f1536a0dc60bd119327 | baa83fce82d6b34ee201e01410d5f8ba93360be4 | refs/heads/master | 2022-05-26T01:11:07.796486 | 2020-04-30T09:23:30 | 2020-04-30T09:23:30 | 260,146,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # Generated by Django 2.1.8 on 2020-04-14 07:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('server_inventory', '0005_auto_20200328_1225'),
]
operations = [
migrations.AlterField(
model_name='blade',
name='bla... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
c6bff4391f835579a863ce5c513ac6ca35c3baf2 | 2f9eddc071b87698e27a3fd5c6066a0db99f6f92 | /string/_group_anagrams.py | 292a0f2b1fb654d8d68fd52a291ff781b3095a08 | [] | no_license | Lancher/coding-challenge | d8c5ec528ef802fef9817e64be94fc246d95e84f | 4c8f833a6e3375c6cbb31ff487ad766c53a74755 | refs/heads/master | 2022-01-20T03:19:11.452412 | 2022-01-10T05:23:47 | 2022-01-10T05:23:47 | 137,972,744 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | # LEETCODE@ 49. Group Anagrams
#
# --END--
def group_anagrams(strs):
d = {}
for s in strs:
k = ''.join(sorted(s))
if k not in d:
d[k] = []
d[k].append(s)
return d.values()
| [
"steve.liushihao@gmail.com"
] | steve.liushihao@gmail.com |
1833590e0e2bb02aa6005532f36dc49b63825598 | 532a02c015b164a4fc754b7056f94ca677091bf2 | /lab/parse_xsd/parse_xsd.py | b698eca49b22520866a2fe24ec6862395d600717 | [
"MIT",
"BSD-2-Clause"
] | permissive | ncortot/python-pptx | c69257df00e2c7ee32380809c5fdf6171bf2b3d3 | 2dc6ed4208f0e118abf40760e2d93ed299e36b42 | refs/heads/master | 2020-12-25T10:42:13.910343 | 2013-02-25T09:53:57 | 2013-02-25T09:53:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,706 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# parse_xsd.py
#
"""
Experimental code to parse XML Schema files for XML object binding classes
"""
import os
import sys
from lxml import etree
thisdir, thisfilename = os.path.split(__file__)
nsmap =\
{ 'xsd' : 'http://www.w3.org/2001/XMLSchema'
, 'p' : 'htt... | [
"scanny@cisco.com"
] | scanny@cisco.com |
6fd4d12dbe7fe71affd22997f08996bd8b525450 | 0f36b98f5d9ba5464162db7a27aaa21e485f0395 | /MPSI/TP3_C5/3_Plateforme/annexes/a_mettre_sur_le_ réseau/Simulation/script_transfert_plateforme.py | 83d98dc893780cae78fc0df6351d65611cf9b007 | [] | no_license | emiliendurif/TP_sujets | b0fb0cd6fa9257b62c6ca557797cbd51427e49dc | 911b8fc7eaed7b71738d7b1bd267280560767bbc | refs/heads/master | 2018-11-16T23:37:44.781993 | 2018-09-13T14:13:08 | 2018-09-13T14:13:08 | 104,331,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | from os import chdir
import time
#---------------------------------------------------------------------
#A RENSEIGNER
chemin= "G:/CPGE PTSI/TP2014/TP11 ameliorer les perf cin"
#entrer ci-dessus le chemin vers le répertoire où sont stockés vos fichiers : attention aux / ou \
# exemple : chemin= "G:/travail/SII... | [
"emilien.durif@gmail.com"
] | emilien.durif@gmail.com |
b983931f02d3a9c85267619e06edcb986882fdcb | 7e2529fec680006e01d3688bb33115e9a97ee1ac | /epicCode2015/perfectHiring/main.py | 3d054a2d3c6b75189bdfcf342da70010803cc287 | [] | no_license | JamesWo/Algorithms | d3c6155e655e40704d42084b7d2236eb01ccb91c | e4a13f06b3902f23389e89f00832886a495ced42 | refs/heads/master | 2021-01-17T06:09:35.968583 | 2016-08-03T17:05:54 | 2016-08-03T17:05:54 | 36,084,351 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | #https://www.hackerrank.com/contests/epiccode/challenges/perfect-hiring
# Enter your code here. Read input from STDIN. Print output to STDOUT
n, p, x = map(int, raw_input().split(" "))
scores = map(int, raw_input().split(" "))
for i in range(len(scores)):
scores[i] = scores[i]*p
p -= x
print scores.index(max(s... | [
"jameswo@berkeley.edu"
] | jameswo@berkeley.edu |
e1ca3ce2fb7da1874222579e42a7777b2f2ef4d0 | 2596850b947399ac368d2ef5c71130129236e9d1 | /instancehistory/models.py | 631ba33b1f829506905f055893492d7c2af26bc7 | [] | no_license | asifpy/django-instancehistory | 9db70edaab33bca83b2050b4c85cd98ffbf0f72d | 17c33924f567a32bb8a677b0432856d324763c2e | refs/heads/master | 2021-01-10T13:58:37.107296 | 2015-11-04T09:15:38 | 2015-11-04T09:15:38 | 45,375,675 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | from django.db import models
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
class InstanceStateHistory(models.Model):
state = models.TextField(blank=True, null=True)
changed_at = models.Dat... | [
"saluasif@gmail.com"
] | saluasif@gmail.com |
e459e64d90d025b2c77a394a1b66e68fadd200c9 | 700f9f9e319ebd26d2557d64ea3827808dfad2f5 | /tests/fixtures/test_footnotes_json/content_01_expected.py | c033bef6a60c02ce98c20d54222a442cf8f80d94 | [
"MIT"
] | permissive | elifesciences/elife-tools | 1b44e660e916a82ef8ff64dd5a6ee5506e517359 | bc16e7dd5d6245077e39f8561b99c9acd510ddf7 | refs/heads/develop | 2023-03-06T08:37:47.424282 | 2023-02-20T20:40:49 | 2023-02-20T20:40:49 | 30,274,058 | 13 | 11 | MIT | 2023-02-20T20:40:50 | 2015-02-04T01:14:41 | Python | UTF-8 | Python | false | false | 659 | py | from collections import OrderedDict
expected = [
{
"id": "fn1-1",
"title": "1.",
"type": "section",
"content": [OrderedDict([("type", "paragraph"), ("text", "First footnote.")])],
},
{
"id": "fn1-2",
"title": "2.",
"type": "section",
"content"... | [
"gnott@starglobal.ca"
] | gnott@starglobal.ca |
e80a570823ef4bfc048cf2ec688644b7641aa031 | 98beeffab0570eb7e4bd2785fc195658e18aa6dd | /SRC/image/oofimage3d.py | cfade4f352ccd9d1129878c9aede052d63739cae | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | shkeshavarz/OOF2 | 27f59bb04775b76ad250ecfd76118b3760647bba | 0f69f535d040875354cd34e8bbedeae142ff09a3 | refs/heads/master | 2021-01-15T15:32:10.713469 | 2016-01-13T14:44:20 | 2016-01-13T14:44:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,035 | py | # -*- python -*-
# $RCSfile: oofimage3d.py,v $
# $Revision: 1.5 $
# $Author: langer $
# $Date: 2010/12/04 03:50:04 $
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities assoc... | [
"lnz5@rosie.nist.gov"
] | lnz5@rosie.nist.gov |
c2e92366db2aaa8dd7963fcbca41f8fe775f905f | afa2a8427c87a5db4958b81b81b5d316e6180a95 | /run_docker/app.py | 10d80359fe20e9d32d62a906203624a69374eb20 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | PyThaiNLP/tts-thai | 11bd5e3986e83456267ac1d515f3277523a064b7 | b87e2534f274e78b3ff966ab02526e5cacee7a80 | refs/heads/master | 2023-09-04T05:19:15.617049 | 2023-08-25T14:56:24 | 2023-08-25T14:56:24 | 154,198,281 | 34 | 10 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from flask import Flask, request,send_file
from subprocess import Popen, PIPE
from subprocess import check_output
import time
import subprocess
app = Flask(__name__)
@app.route('/tts', methods=["GET"])
def get_tts():
text= request.args.get("text")
print(text)
seconds =... | [
"wannaphong@yahoo.com"
] | wannaphong@yahoo.com |
990afe861b44a7b974e04f5e26c6764256fe80c3 | fc678a0a5ede80f593a29ea8f43911236ed1b862 | /406-QueueReconstructionbyHeight.py | c6c43577b13328a028ae1b56e88d2b5f4cefe71a | [] | no_license | dq-code/leetcode | 4be0b1b154f8467aa0c07e08b5e0b6bd93863e62 | 14dcf9029486283b5e4685d95ebfe9979ade03c3 | refs/heads/master | 2020-12-13T15:57:30.171516 | 2017-11-07T17:43:19 | 2017-11-07T17:43:19 | 35,846,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | class Solution(object):
def reconstructQueue(self, people):
"""
:type people: List[List[int]]
:rtype: List[List[int]]
"""
if not people: return []
people = sorted(people, key=lambda (h, k): (-h, k))
print people
res = []
for p in people:
... | [
"dengqianwork@gmail.com"
] | dengqianwork@gmail.com |
3e0d4a129282bae30c6f54ea33e386c8bf070c21 | c1ad248b8172c63f7756f14cb50f96cf726f90d0 | /tensorflow_examples/lite/model_maker/core/utils/scann_converter_test.py | eb9d9d4d8b8fb0981f5e64c124529eedaf042f3b | [
"Apache-2.0"
] | permissive | slmsshk/examples | 846ec816c0c6d095cf49e4054df85a80375f4b7f | cd89a54b9e9577bebd22a9f083526ca8cb2b58b5 | refs/heads/master | 2022-08-16T19:59:03.695027 | 2022-08-07T07:30:14 | 2022-08-07T07:30:14 | 256,999,865 | 1 | 0 | Apache-2.0 | 2020-04-19T12:59:03 | 2020-04-19T12:59:01 | null | UTF-8 | Python | false | false | 10,136 | py | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
81a21151c91ae8f0f82c4adf1b522b422ed84b3b | 47d75780751f820ccf6a350caa94a5605be5ac80 | /pySDC/playgrounds/parallel/rma.py | add5845d0c3510d065b1a97c9ec0f1895a43daca | [
"BSD-2-Clause"
] | permissive | ruthschoebel/pySDC | 1e8484efc89eaaf9bb71f350790a4bc08b0f2127 | de2cd523411276083355389d7e7993106cedf93d | refs/heads/master | 2022-06-07T19:50:57.181584 | 2022-05-11T12:50:29 | 2022-05-11T12:50:29 | 146,288,756 | 0 | 1 | BSD-2-Clause | 2021-08-11T12:54:48 | 2018-08-27T11:34:15 | Python | UTF-8 | Python | false | false | 737 | py | from mpi4py import MPI
import numpy as np
import time
def sleep(n):
tmp = np.random.rand(n)
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
t0 = time.perf_counter()
if rank == 0:
sbuf = np.empty(40000000)
win = MPI.Win.Create(sbuf, comm=comm)
win.Lock(0, MPI.LOCK_EXCLUSIVE)
sbuf[0] = 0
sbuf[1... | [
"r.speck@fz-juelich.de"
] | r.speck@fz-juelich.de |
8c0ce095298581efbd5c295f98c2de31fa2850cd | aef40813a1b92cec0ea4fc25ec1d4a273f9bfad4 | /Q00__/85_Maximal_Rectangle/Solution.py | 36b30e62246808d62efd03a15fc775ec877dbf65 | [
"Apache-2.0"
] | permissive | hsclinical/leetcode | e9d0e522e249a24b28ab00ddf8d514ec855110d7 | 48a57f6a5d5745199c5685cd2c8f5c4fa293e54a | refs/heads/main | 2023-06-14T11:28:59.458901 | 2021-07-09T18:57:44 | 2021-07-09T18:57:44 | 319,078,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | from typing import List
class Solution:
def maximalRectangle(self, matrix: List[List[str]]) -> int:
yLen = len(matrix)
if yLen == 0:
return 0
xLen = len(matrix[0])
if xLen == 0:
return 0
mediumX = [ [0] * xLen for _ in range(yLen) ]
mediumY =... | [
"luhongisu@gmail.com"
] | luhongisu@gmail.com |
721aaf313f13a951738bdeb76b9729f4506b9566 | de1aa69f6527ff7694cb2a0e5b26835c8ce9f811 | /AutoEncoder.py | 2d1deb00ccc66bb493ba09e403f2ee7ba79c5263 | [] | no_license | MitsuruFujiwara/Multi-Class | d35ea56986a79586286a98cd3737ad1627fae4a3 | 90d1419cf6420cd1c0c736470a15ac607a5f07b2 | refs/heads/master | 2021-01-11T01:28:05.286280 | 2016-11-05T00:59:08 | 2016-11-05T00:59:08 | 70,702,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,642 | py | # -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
from keras.layers import Input, Dense
from keras.models import Model
class AutoEncoderBase(object):
"""
Base class of AutoEncoder
input:
datapath: datapath (csv)
ylabel: label for data Y (string)
input_dim: input dime... | [
"fujiwara52jp@gmail.com"
] | fujiwara52jp@gmail.com |
bfb355f4a9f7d39b9c7d88edce961bc3dbc1586e | e61c0cf21739fad3a42d4a7c555744e59d59bb36 | /SWE_Ploblems/D2_1984_중간평균값.py | c4e69180585baac3ec6ac9e13731e5500f4f28ae | [] | no_license | emplam27/Python-Algorithm | 0b6f222baf4d7d13438d71631f9476ec29cb1087 | 8cc9359dd9131629edac28a9ab9cb3a1f5d9c476 | refs/heads/master | 2023-05-04T21:11:10.087666 | 2021-05-23T13:45:38 | 2021-05-24T19:21:22 | 273,455,638 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | T = int(input())
for t in range(1, T + 1):
arr = list(map(int, input().split()))
arr.sort()
sum_num = 0
for i in arr[1:9]:
sum_num += i
print('#%d' % t, round(sum_num / 8)) | [
"emplam27@gmail.com"
] | emplam27@gmail.com |
a1f3412ca8f20c86562d4b92da145ca6290c1066 | 0dcd87fb8092476013348709067a1984a8220380 | /xitorch/_impls/optimize/linesearch.py | c9abdc551498f188332024f1bf37bf1fd8f25f67 | [
"BSD-3-Clause"
] | permissive | AdityaJ7/xitorch | b036b41cef6a98e3c3f7dc5ae5c2567e126eb65f | fec02e225df17f47854646bc57e607f5df659e1d | refs/heads/master | 2022-12-16T00:37:07.599487 | 2020-09-17T10:24:02 | 2020-09-17T10:24:02 | 296,283,435 | 0 | 0 | BSD-3-Clause | 2020-09-17T09:41:33 | 2020-09-17T09:41:32 | null | UTF-8 | Python | false | false | 2,819 | py | import torch
import numpy as np
"""
This file is from https://github.com/locuslab/deq/blob/master/DEQModel/modules/broyden.py
MIT license: https://github.com/locuslab/deq/blob/master/LICENSE
"""
def _safe_norm(v):
if not torch.isfinite(v).all():
return np.inf
return torch.norm(v)
def scalar_search_ar... | [
"firman.kasim@gmail.com"
] | firman.kasim@gmail.com |
8804e80bd13bfda96fb7eeeab4a205f078c42e78 | 5f8a3fcdb92b5065e8bda79e5b729f9c103ff37a | /utils/src/ave/utils/testjob.py | 35ba27535d1bdeb573f9ff0fc3d9f3332739e020 | [
"BSD-3-Clause"
] | permissive | iLaus/ave | ba9662f5279d5aa1d66aeb1c28b0bde6304424d5 | 07c5914091880998bd18c54d1aa391efbe178e35 | refs/heads/master | 2023-06-11T04:23:30.290261 | 2016-11-16T12:35:11 | 2016-11-16T12:35:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,582 | py | # Copyright (C) 2014 Sony Mobile Communications Inc.
# All rights, including trade secret rights, reserved.
import os
import sys
import vcsjob
import base64
import uuid
import time
import ave.config
import ave.panotti
from ave.broker.exceptions import Busy
from ave.broker.exceptions import NoSuch
from ave.exceptions ... | [
"quanhao.xu@sonymobile.com"
] | quanhao.xu@sonymobile.com |
aab73afe0259dd8e3fb29d8dcd1f7053b7ee6e7e | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf.0/gsn-edf_ut=3.5_rd=0.65_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=91/sched.py | 2cf60bd9e88e872829aa699d97cc327a16eeb519 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | -X FMLP -Q 0 -L 3 134 400
-X FMLP -Q 0 -L 3 91 300
-X FMLP -Q 0 -L 3 84 400
-X FMLP -Q 1 -L 1 64 200
-X FMLP -Q 1 -L 1 53 200
-X FMLP -Q 1 -L 1 48 400
-X FMLP -Q 2 -L 1 44 175
-X FMLP -Q 2 -L 1 43 175
-X FMLP -Q 2 -L 1 42 200
-X FMLP -Q 3 -L 1 41 125
-X FMLP -Q 3 -L 1 30 200
28 150
27 3... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
8b176dca4b03a890fb9c581f63180959b30ba5a0 | 67d8173a716da10a7350213d98938aae9f2115ce | /LeetCode/LC_PY_ANSWERS/restore-ip-addresses.py | 8540a76a89189799e7701db6a35524a7c3763fac | [
"MIT"
] | permissive | jxie0755/Learning_Python | 94490d41bdf93acf8396f843328e38b6da310b0f | 143422321cbc3715ca08f6c3af8f960a55887ced | refs/heads/master | 2021-11-02T22:47:35.790239 | 2021-09-26T04:26:23 | 2021-09-26T04:26:23 | 101,445,132 | 0 | 2 | null | 2019-02-19T15:48:44 | 2017-08-25T22:00:16 | Python | UTF-8 | Python | false | false | 1,018 | py | # Time: O(n^m) = O(3^4)
# Space: O(n * m) = O(3 * 4)
class Solution(object):
# @param s, a string
# @return a list of strings
def restoreIpAddresses(self, s):
result = []
self.restoreIpAddressesRecur(result, s, 0, "", 0)
return result
def restoreIpAddressesRecur(self, result, ... | [
"30805062+jxie0755@users.noreply.github.com"
] | 30805062+jxie0755@users.noreply.github.com |
136c4b71ccb74ca437707134ed7b3b05f41b639c | b958551bde844d2bfaa4dd7cb670c4ebab4ff17b | /week2/lab/calculate_two_sequence.py | ce7336f0d52f08c6e0ea9e1c0254351f508b0c67 | [] | no_license | aslupin/cpe31-task | d97d3e495634826d6752c1ee82192cc58045a883 | c15ec9be94b899120db39b076a4d1c644f0af24b | refs/heads/master | 2021-01-15T09:18:54.615578 | 2017-11-17T12:53:23 | 2017-11-17T12:53:23 | 99,573,358 | 0 | 2 | null | 2017-09-20T06:25:31 | 2017-08-07T12:00:05 | Python | UTF-8 | Python | false | false | 543 | py | import sys
def seqii(a,n,d):
if n==1 :
print("Your answer is "+str(a))
else:
seqii(a+d,n-1,d*2)
a = input("First order: ")
b = input("Second order: ")
c = input("Third order: ")
ans = input("What order you want to find: ")
# basic task
if(ans == 1):print("First order: %d"%a)
elif(ans ==2):print("Second or... | [
"poon_arsene_lupin@hotmail.com"
] | poon_arsene_lupin@hotmail.com |
a1cd7f7c98a2177061f7b3b3461766917d489f12 | 2b43b850e9b81cb30c43cd1a13dc75c09028024d | /src/etools_datamart/libs/truncate.py | e3798a275b93e761fbd3abac7465409a4369afb4 | [] | no_license | unicef/etools-datamart | 5da3fc776b5e74e8bbe1d06141e9cfd59b4a33cf | e3e6cbdd95efe2299b6503bdb8798c2a2ef3895d | refs/heads/develop | 2023-08-31T07:28:06.303136 | 2023-08-28T15:50:44 | 2023-08-28T15:50:44 | 141,714,954 | 1 | 2 | null | 2023-08-28T17:30:54 | 2018-07-20T13:23:59 | Python | UTF-8 | Python | false | false | 72 | py | from unicef_rest_framework.admin.base import TruncateTableMixin # noqa
| [
"s.apostolico@gmail.com"
] | s.apostolico@gmail.com |
a871432d6dc4080d266e195e13caca403165cd87 | 19ddab74600f71700a6b693281d0180d5271f295 | /leetcode_hot/hot160_相交链表.py | 8710377d60fff52082913334365783dfde777098 | [] | no_license | zhulf0804/Coding.Python | 4d55a430da1a8077c81feba65c13ac654aaf094a | 46ab03e23d15ebd5434ef4dd5ae99130000b00a5 | refs/heads/master | 2022-09-14T18:40:59.880941 | 2022-08-20T08:25:51 | 2022-08-20T08:25:51 | 213,113,482 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
# class Solution:
# def getIntersectionNode(self, headA: ListNode, headB: ListNode) -> ListNode:
# l1, l2 = 0, 0
# p = headA
# while p:
# l1 += 1
# ... | [
"zhulf0804@gmail.com"
] | zhulf0804@gmail.com |
3dc6ef578b34212116631d81a3ae6b09ed918fb8 | 8a4933df480d0d834fef74d4e980d31c16a0d05c | /ex009.py | fc0d740adb0d8c788ba8372978f73b5178baf5cc | [] | no_license | code-repeat/primeiromundo | e107ae551bf59f53da360ca9d3a1cb756e59756f | 1aaa93c721ad994360ba78a706b00c379b05ec08 | refs/heads/master | 2022-11-23T07:43:12.497109 | 2020-07-28T18:55:30 | 2020-07-28T18:55:30 | 283,300,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | num = int(input('Digite um número: '))
print('='*14)
for i in range(1, 11):
resu = num * i
print("{} X {:2} = {}".format(num, i, resu))
print('='*14)
| [
"coderepeat44@gmail.com"
] | coderepeat44@gmail.com |
41a09ad5131b5e1ebd4eb1c75fad99c6563576b3 | 2f8e9d1449689dce1a08b354b00aad81045e1385 | /models/resnet_v1net.py | ce65555c59b6c336964d5f363bc55a86ca0c5323 | [] | no_license | vijayvee/pytorch-boundaries | 2135aa68c49ce1f0dbc0b53dbf99b3eec0214841 | 0581b290bb3f67aec0b65ecf270d9cdf3928100e | refs/heads/master | 2023-04-22T17:48:35.261772 | 2021-05-06T14:36:11 | 2021-05-06T14:36:11 | 322,734,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | """ResNet models with V1Net frontend."""
import numpy as np
import torch # pylint: disable=import-error
import torch.backends.cudnn as cudnn # pylint: disable=import-error
import torch.nn as nn # pylint: disable=import-error
import torch.nn.functional as F # pylint: disable=import-error
import torchvision.models as... | [
"vijayvee@gmail.com"
] | vijayvee@gmail.com |
01a159a4adbc6126e4d1bb65fe342842341b1a7d | 1925c535d439d2d47e27ace779f08be0b2a75750 | /google/expand_nested_intervals.py | 09f52993d065ce06d94a877715a7ff704dbf6706 | [] | no_license | arthurDz/algorithm-studies | ee77d716041671c4b8bb757d8d96f3d10b6589f7 | 1e4d23dd0c40df34f58d71c7ca3e6491be732075 | refs/heads/master | 2023-04-27T12:17:06.209278 | 2021-04-30T20:16:18 | 2021-04-30T20:16:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | '''
Given a root interval node with children nodes, expand those nodes in order with non-overlapping intervals
Node:
id: 1
start: 0
end: 100
children: [2]
Node:
id: 2
start: 25
end: 70
children: []
(1, 0, 25)
(2, 25, 70)
(1, 70, 100)
---------
Node 1: (1, 0, 100, [2, 3])
Node 2: (2,... | [
"yunfan.yang@minerva.kgi.edu"
] | yunfan.yang@minerva.kgi.edu |
00a32e188555888949e2740545753e6c7f052ba0 | 9846b8c5d22650cc2cf82c1f1659a5f81f019e35 | /Automation/dictionary-comprehension.py | 5a5fbd56c013dbaa82d269c66bdfc22448fe2d60 | [] | no_license | deesaw/PythonD-01 | 8f30f8301551b75fd79e70cff072b1a977913ffa | a98bcea95942a1ed259c1567a9056fbd199c0336 | refs/heads/master | 2023-03-10T14:50:33.226135 | 2021-03-02T13:47:23 | 2021-03-02T13:47:23 | 343,787,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | #dictionary comprehension
j={x:x*x for x in range(1,100,3)}
#how to read a config file into a dictionary
k=dict([line.rstrip().split('#') for line in open('c:/users/tring/desktop/words.txt')]) | [
"69420960+deesaw@users.noreply.github.com"
] | 69420960+deesaw@users.noreply.github.com |
7c4f87ad00237e9f20cd65101601c94bd2a26196 | 8b9b46bef13f2a562ce976f791ef30472b0e4652 | /2020-04/4-17/55跳跃游戏/55.py | 12425febf7b29a884139dccea3a92f65b0776ec5 | [] | no_license | Annihilation7/Leetcode-Love | 0d1db2776b79f4c65fd2781b2d0031d1efd1ef14 | 3fa96c81f92595cf076ad675ba332e2b0eb0e071 | refs/heads/master | 2021-03-21T17:06:35.260644 | 2020-05-07T14:12:44 | 2020-05-07T14:12:44 | 247,314,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | # -*- coding: utf-8 -*-
# Editor : Pycharm
# File : 55.py
# Author : ZhenyuMa
# Created : 2020/4/17 11:46 下午
# Description : 遍历 看最大长度会不会比遍历的索引小
from typing import List
class Solution:
def canJump(self, nums: List[int]) -> bool:
max_step = 0
for i in range(len(nums)):... | [
"763366463@qq.com"
] | 763366463@qq.com |
b908d53b3c6b4e999f3d3686998e13f59bd34033 | dc1535cc07bba047e88532e40d28f4e3edda8e2e | /Week 12/Catalan.py | de7110c507cb6d9229a27dc02f05b27f49c6048f | [] | no_license | ongsuwannoo/PSIT-61 | e875c78fadb27f7ec06eaca88c1607510d11ad90 | 9f7f0b34f61615650b656db7a05a422bed422cac | refs/heads/master | 2022-01-08T04:21:26.079326 | 2019-01-25T12:22:48 | 2019-01-25T12:22:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | """Catalan"""
def catalan(num):
"""Find Value"""
if num == 1:
return 1
else:
return (4*(num-1)+2)/(num+1)*catalan(num-1)
print(int(catalan(int(input()))))
| [
"61070020@kmitl.ac.th"
] | 61070020@kmitl.ac.th |
f8c77799bde875a1f504590e859f03385824e7f4 | 4b29b5b5d3fb953b49c114a9f2617be47f567fac | /src/router/tests/models.py | fd6b3e397323ea2f1138f1f3d500a0ef8e65cb11 | [
"BSD-3-Clause"
] | permissive | nicpottier/ugandasms | cbd4dc442189b67b1f94f6dba230fc0d2a266f80 | 2370187bedabf172bc210efe1bef4de3e69b1c86 | refs/heads/master | 2021-01-18T11:01:52.240336 | 2010-05-23T16:14:01 | 2010-05-23T16:14:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | from picoparse import any_token
from picoparse import fail
from picoparse import one_of
from picoparse import optional
from picoparse import remaining
from picoparse.text import whitespace
from picoparse.text import caseless_string
from ..models import Incoming
from ..parser import FormatError
class Echo(Incoming):
... | [
"mborch@gmail.com"
] | mborch@gmail.com |
d31bf290b022baaff3f62febd8e0c96fb76fa23a | 88247eac44f89bffe0d0f9a57ce74d9dd3c7ce68 | /nsot/migrations/0025_value_site.py | 913eb0ab5f33ccce82f588700f64f9cae634b6b1 | [
"Apache-2.0"
] | permissive | fooelisa/nsot | e77f2de9715fcfeda3a4a6cc55bcc80c663b3d14 | e6a7ce5794a131075fb7c2a32e1479073f5ab038 | refs/heads/master | 2021-01-11T03:59:11.676463 | 2016-10-13T18:34:02 | 2016-10-13T18:34:02 | 71,264,019 | 2 | 0 | null | 2016-10-18T15:41:03 | 2016-10-18T15:41:02 | null | UTF-8 | Python | false | false | 539 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('nsot', '0024_network_state'),
]
operations = [
migrations.AddField(
model_name=... | [
"jathan@gmail.com"
] | jathan@gmail.com |
452f929e3b5e51536ed8be05af7aa8771463a653 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/94/usersdata/227/58295/submittedfiles/mediaLista.py | aff489cd4a3b3a71a09bdb4077e74e960ae0adc1 | [] | 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 | 335 | py | # -*- coding: utf-8 -*-
n=int(input('Digite a quantidade de elementos da lista:'))
a=[]
soma=0
for i in range (1,n+1,1):
valor=float(input('Digite os valores da lista:'))
a.append(valor)
for j in range (0,len(a),1):
soma=soma+a[j]
media=soma/len(a)
print('%.2f'%a[0])
print('%.2f'%a[len(a)-1])
print('%.2f'%m... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
30e479b4cd5f00198790b9c9d779725b204df2f8 | ec51fb214b75d7e088bbe02391e20956cd87ab14 | /tests/test_natural_join.py | 62479738f8a332927dceffa0530ee753e739e0d0 | [] | no_license | sebastianBIanalytics/data_algebra | d2e5238fe0f7cb9fb61c81ca5dd1fe517dff44bc | 148b635dfd0b0b854fd76736dd1a998b549baf72 | refs/heads/master | 2021-01-01T08:11:41.606154 | 2020-02-06T20:43:56 | 2020-02-06T20:43:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | import numpy
import data_algebra
import data_algebra.test_util
import data_algebra.util
from data_algebra.data_ops import *
import data_algebra.SQLite
import data_algebra.yaml
import sqlite3
def test_natural_join_columns():
data_algebra.yaml.fix_ordered_dict_yaml_rep()
db_model = data_algebra.SQLite.SQLiteMo... | [
"jmount@win-vector.com"
] | jmount@win-vector.com |
97162a74456309138b1d5e037383662e8a2d7636 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_8/sldcar001/question3.py | 09fadcac5c5bd575bc43dd29e5d51585c7b765b4 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | def encrypter(ip,op,n):
if n<len(ip):
sw=ord(ip[n])
a=sw+1
if sw==122:
a=97
elif sw<96:
a=sw
pop=chr(a)
return encrypter(ip,op+pop,n+1)
else:
return op
def main():
ip=input("Enter a message:\n")
op=''
n=0
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
4549c5baed92e2f945e8f12a083dc7478001232b | 91fe8f479fa921fa84111d19222a5c6aa6eff030 | /basis/built-in-lib/hmac-test.py | c136c62440a70f88d7be98a8336f1dbbb47003f3 | [] | no_license | romanticair/python | 2055c9cdaa46894c9788d5797643283786ed46dd | 6f91fe5e7cbedcdf4b8f7baa7641fd615b4d6141 | refs/heads/master | 2022-11-03T17:17:17.608786 | 2019-07-05T07:07:29 | 2019-07-05T07:07:29 | 195,356,190 | 0 | 1 | null | 2022-10-14T20:51:14 | 2019-07-05T07:00:33 | Python | UTF-8 | Python | false | false | 2,298 | py | """
为了防止黑客通过彩虹表根据哈希值反推原始口令,在计算哈希的时候,不能仅针对原始输入计算,
需要增加一个 salt 来使得相同的输入也能得到不同的哈希,这样,大大增加了黑客破解的难度。
如果salt是我们自己随机生成的,通常我们计算MD5时采用md5(message + salt)。但实际上,
把salt看做一个“口令”,加salt的哈希就是:计算一段message的哈希时,根据不通口令计算
出不同的哈希。要验证哈希值,必须同时提供正确的口令。
这实际上就是Hmac算法:Keyed-Hashing for Message Authentication。它通过一个标准算法,
在计算哈希的过程中,把key混入计算过程中。和我们... | [
"1024519570@qq.com"
] | 1024519570@qq.com |
1f39128b5d5eeb0953bc7d7049588612432da170 | 88726f0d487a0d9f1c568722f458d5cc8ad40566 | /ABC165/A.py | d26d50094d05b137c34a1e9a6b882ca1f658de32 | [] | no_license | thortoyo/study | 60e3cccbf7b6587044ca3ee5c4cdb07f038a5800 | 7c20f7208703acf81125aca49de580982391ecfe | refs/heads/master | 2023-06-21T21:56:47.141439 | 2023-06-20T02:38:47 | 2023-06-20T02:38:47 | 196,919,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | K=int(input())
A,B=map(int,input().split())
ok = 0
for i in range(A,B+1):
if ( i%K==0 ):
ok = 1
if(ok==1):
print("OK")
else:
print("NG")
| [
"thor.toyo@gmail.com"
] | thor.toyo@gmail.com |
b1f562793576d8d7c4626b58d3c72be7fcc47f59 | 419873dd3b7412f704b1a7907b64a60b44cedf39 | /python/树/1110. 删点成林.py | d549213d451cd2cfd6321e8b68abb9a481f33a1f | [] | no_license | Weless/leetcode | 0585c5bfa260713f44dabc51fa58ebf8a10e7814 | 0566622daa5849f7deb0cfdc6de2282fb3127f4c | refs/heads/master | 2021-11-13T07:59:20.299920 | 2021-10-25T02:09:53 | 2021-10-25T02:09:53 | 203,720,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | from typing import List
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def delNodes(self, root: TreeNode, to_delete: List[int]) -> List[TreeNode]:
s = set(to_delete)
res = []
def dfs(root):
if n... | [
"409766394@qq.com"
] | 409766394@qq.com |
e918e2d5e0c0d843ec45480a68bc3ecaa18253b6 | 84a1f9d626828b6ecaee4ef037081f4d8750a990 | /编程/2月/2.9/sock_server_ssh.py | 8fe2d10f8d5a63ec910fa41af39479024b356c67 | [] | no_license | dujiaojingyu/Personal-programming-exercises | 5a8f001efa038a0cb3b6d0aa10e06ad2f933fe04 | 72a432c22b52cae3749e2c18cc4244bd5e831f64 | refs/heads/master | 2020-03-25T17:36:40.734446 | 2018-10-01T01:47:36 | 2018-10-01T01:47:36 | 143,986,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | __author__ = "Narwhale"
import os
import socket
server = socket.socket()
server.bind(('localhost',6565))
server.listen()
while True:
conn,addr = server.accept()
print('新地址:',addr)
while True:
print('等待新命令。。。!')
data = conn.recv(1024)
if not data:
print('客户端已经断开。。')
... | [
"34296128+dujiaojingyu@users.noreply.github.com"
] | 34296128+dujiaojingyu@users.noreply.github.com |
8f45dd1c2872b9ccd96287434355ce67faf81a7a | 6ec459388f44b2b1c4fde45b08f2f8372ba82b78 | /wordfugue/blog/views.py | 26c9e02bf8e8e58b927f4714303305b5aef8658f | [] | no_license | phildini/wordfugue | a326a032fdab4832b61cd7bb6ea29e254935e0cc | 77e04eebf193670ff2963705d38bcf302c58043a | refs/heads/master | 2022-12-11T00:19:40.280948 | 2019-03-03T22:28:57 | 2019-03-03T22:28:57 | 49,110,902 | 0 | 0 | null | 2019-10-18T15:40:10 | 2016-01-06T03:54:43 | Python | UTF-8 | Python | false | false | 1,322 | py | from braces.views import LoginRequiredMixin, StaffuserRequiredMixin
from django.shortcuts import get_object_or_404
from django.views.generic import DetailView, ListView
from . import models
class BlogPostView(DetailView):
model = models.BlogPost
template_name = 'blog/blog_post_page.html'
def get_querys... | [
"pjj@philipjohnjames.com"
] | pjj@philipjohnjames.com |
7093f85e8b72869925a23b1483b2b0e045c5d25e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03937/s470044267.py | bafbbf62da77ded61c8e4718c2e6a2a6902ee6ee | [] | 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 | 629 | py | h,w=map(int,input().split())
a = [list(input()) for _ in range(h)]
a[0][0] = "."
q=[(0,0)]
dy=[0,1]
dx=[1,0]
while len(q)>0:
y,x=q.pop(0)
if y == h-1 and x == w-1:
break
for i in range(2):
if not (0<=dy[i]+y<h and 0<=dx[i]+x<w):
continue
if a[dy[i]+y][dx[i]+x] != "#":
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ac2a91133f9a521b695513c575289eb412eaed9f | 6db1e1f0debb79aa9a6adb0236e3b41cda39ce99 | /l10n_be_coda_batch/__openerp__.py | 9713a3e18ceeea9087de43b9b424f1fe829108d2 | [] | no_license | lubonbvba/noviat-apps | b7450222ae4bec325d4241a7ca2199e50bc75cb6 | d9ad1628a1d25550c7957150079b50728d5b1a0d | refs/heads/8.0 | 2021-01-18T11:34:54.911486 | 2017-07-08T15:20:30 | 2017-07-08T15:20:30 | 56,927,140 | 0 | 0 | null | 2017-07-08T15:20:31 | 2016-04-23T15:44:45 | Python | UTF-8 | Python | false | false | 633 | py | # -*- coding: utf-8 -*-
# Copyright 2009-2017 Noviat.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Belgium - CODA statements batch import',
'version': '8.0.2.0.0',
'license': 'AGPL-3',
'author': 'Noviat',
'website': 'http://www.noviat.com',
'category': 'Accounting ... | [
"luc.demeyer@noviat.com"
] | luc.demeyer@noviat.com |
4c68c1860a1956121d3faad51db60556cfc20f8c | 7f57c1bc457f693d1e2b482bd92180b5f619d3bb | /783-minimum-distance-between-bst-nodes.py | 748a9b4dd876b84a44c77a0d4ba077e3db6b7763 | [] | no_license | mtianyan/LeetcodePython | 17694eed256886a075208264904ac1533df71d03 | 6880de6f92d8b6bf9223656f356831fb2b475202 | refs/heads/master | 2023-07-11T19:46:54.388781 | 2023-07-06T15:59:34 | 2023-07-06T15:59:34 | 331,367,286 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | class Solution(object):
"""
将树中所有节点的值写入数组,之后将数组排序。依次计算相邻数之间的差值,找出其中最小的值。
"""
def minDiffInBST(self, root):
vals = []
def dfs(node):
if node:
vals.append(node.val)
dfs(node.left)
dfs(node.right)
dfs(root)
vals.so... | [
"1147727180@qq.com"
] | 1147727180@qq.com |
edc35e97cd67a22398560c197cfce372c1d72a0b | e97ba6702214d90db5a4be88b06298342d0e3bab | /.workflow/unseenbio-oesd-frontend.py | 8a4b78ac6d902beaecf284db900d75dbcbc7539b | [] | no_license | kvikshaug/dotfiles | 9408d0777796669a8fa9aae4211bf07b943b26eb | ae1e1b70a25cb666da438a189d2e75014a802e08 | refs/heads/master | 2023-04-30T02:48:30.196673 | 2023-04-13T11:13:04 | 2023-04-13T11:13:04 | 352,044 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | from _models import Command, Project
project = Project("code/unseen-bio/oesd-frontend", [
Command("serve", ["npx vue-cli-service serve"]),
Command("lint", ["npx vue-cli-service lint --no-fix --max-warnings 0"]),
Command("format", ["npx vue-cli-service lint"]),
Command("test", ["npx vue-cli-service test... | [
"ali@kvikshaug.no"
] | ali@kvikshaug.no |
b80987c6c1f2656b621f173755883afd7fe0c379 | 9c5ed2298394edfe5c4b7639bf987077f78ad36d | /ch-3-django-myproject/email_messages/forms.py | 7cd7044944e3cc80ddd35a63f61badf54263c689 | [] | no_license | yoyonel/web-development-with-django-cookbook | f6006369f51682bf0fb1d0a84721836678f2fb21 | 2cf21ece0603318dfb7f66430377dc32abdb0dc5 | refs/heads/master | 2021-01-20T09:55:51.432462 | 2016-07-02T07:52:26 | 2016-07-02T07:52:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | # -*- coding: UTF-8 -*-
from __future__ import unicode_literals
from django import forms
from django.utils.translation import ugettext, ugettext_lazy as _
from django.core.mail import send_mail
from django.contrib.auth.models import User
class MessageForm(forms.Form):
recipient = forms.ModelChoiceField(
... | [
"guinslym@users.noreply.github.com"
] | guinslym@users.noreply.github.com |
98cda563c30047f13ef8b0faa92945a1122a44cb | 8a2f6867eca5d40d1770b58ab73e8a9f01a9ddc5 | /problemas uri/Problema2167.py | 51a3d22b9a2704bd6ba31bc9c2bfd2b9ab37bdeb | [] | no_license | PauloVilarinho/algoritmos | 822eaae631de1660df553d87d2f168c2646efa60 | a3cfed6081bbf5ae0b17766a027abcd558b9e9d0 | refs/heads/master | 2020-03-13T18:31:50.980839 | 2018-06-21T21:17:28 | 2018-06-21T21:17:28 | 131,236,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | quantidade = int(input())
entrada = input().split()
index = 0
for i in range(1,len(entrada)) :
if int(entrada[i]) < int(entrada[i-1]) :
index = i + 1
break
print(index)
| [
"paulotarsobranco@gmail.com"
] | paulotarsobranco@gmail.com |
689cc34246fe1d813572102eca3617c5c6169a59 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2/gotche/b.py | bc0b383f0164abbf2641ab1b9cc7c0fe96740f0a | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,006 | py | import sys
class Prob1(object):
def __init__(self, s):
# reduce all strings
l = list(reversed(list(s)))
if '-' in l:
self.s = l[l.index('-'):]
else:
self.s = []
def toggle(self):
if self.mark == '+':
self.mark = '-'
else:
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
13b750654b4352ddc1edafa9e6cb4ae3694d7fef | 451d95ac140ac8a2db82f0130a197da3f47451a4 | /home/serializers.py | e84b15ff948031193588ee1afd199f77d1c4b18a | [] | no_license | sgmagar/drf_test | ee74ea33d752b3b48482fca9ea45c3c8f443dfe2 | 278ecdcee0c7babf61b00e236e092bc312f8e2d1 | refs/heads/master | 2021-01-01T17:08:43.894240 | 2017-07-22T08:46:29 | 2017-07-22T08:46:29 | 98,010,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | from rest_framework import serializers
from rest_framework.serializers import Serializer, ModelSerializer
from .models import User, ProfileFeedItem
class HelloSerializer(Serializer):
name = serializers.CharField(max_length=10)
class UserProfileSerializer(ModelSerializer):
'''A serializer for user profile ... | [
"sp.gharti@gmail.com"
] | sp.gharti@gmail.com |
198edfffd3674f803d196993c434415b8570032a | 20527de15bff7810c8cb3d8b45d919ce413c22ec | /taint/test/integration/model_simplification.py | bdfdcdd1bc9d6d8577af87361b0a3fbaf142f679 | [
"MIT"
] | permissive | modulexcite/pyre-check | 7fd921b4f323e149aebe9a3eb03f6db124d23822 | a84e85f735fa80a95cd4a0a10d1b88bff3495c8e | refs/heads/master | 2020-06-27T07:56:18.019456 | 2019-07-31T01:11:01 | 2019-07-31T01:14:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | # @nolint
from typing import Any, Dict
class RecordSchema:
_META_PROP = ...
class DictRecord:
items: Any = ...
class MutableRecord:
__dict__: Dict[str, Any] = ...
def _is_dataclass_instance(obj) -> bool:
...
def fields(obj):
...
def asdict(obj: RecordSchema, *, dict_factory: Any = dict)... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
911b5edbf70970f053d48756a542199a09995254 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_produce.py | a40fbe953f48c824e214219c4a6d2b57a46525e7 | [
"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 | 862 | py |
#calss header
class _PRODUCE():
def __init__(self,):
self.name = "PRODUCE"
self.definitions = [u'to make something or bring something into existence: ', u'When animals produce young, they give birth to them: ', u'to cause a reaction or result: ', u'to organize the practical and financial matters relating to the... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f5d69474508cca791df8d0d1d266a26aead2480d | 5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8 | /buildout-cache/eggs/plone.app.dexterity-2.0.18-py2.7.egg/plone/app/dexterity/browser/export.py | 655133dabcacaa1965a0a40744a8d537d1f55951 | [] | no_license | renansfs/Plone_SP | 27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a | 8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5 | refs/heads/master | 2021-01-15T15:32:43.138965 | 2016-08-24T15:30:19 | 2016-08-24T15:30:19 | 65,313,812 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,472 | py | # @@types-export view for dexterity types configlet. View support for the
# "Export" button. This is done by repurposing the GS typeinfo export and
# removing unselected type information from its output.
import time
from StringIO import StringIO
from zipfile import ZipFile
from lxml import etree
from Products.CMFCore... | [
"renansfs@gmail.com"
] | renansfs@gmail.com |
435900941a02cea8af792d4b434964e60b3784a4 | 0fd49b4779351c68bbe51ee978939f39c8e57d7c | /400-1000/993-Cousins in Binary Tree.py | a6c5fb3c1f6c389cc73deab8c5900bd0d31e5646 | [] | no_license | jia0713/leetcode | 8f632b96d0bc900cf4357ab1b8affd6068964dec | 13565941f16c74d32124020285ce887a4cb31b27 | refs/heads/master | 2023-06-17T20:41:47.185832 | 2021-07-16T09:42:39 | 2021-07-16T09:42:39 | 247,866,418 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution(object):
def isCousins(self, root, x, y):
"""
:type root: TreeNode
:type x: i... | [
"pkuljn@gmail.com"
] | pkuljn@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.