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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cc0b891a842f0d95cbaa4fc90d61413db3782199 | 85c426913d63773c4802a4a3c354df909030654b | /python/FA3/Integration/Copy of Copy of PyFood me and rohita/Copy of Copy of PyFood me and rohita/validations/Validate.py | 02ad4496540e48daae0060d8a176a66e271c35b7 | [] | no_license | SensehacK/playgrounds | 17bf2a3133db6c0cafe185c4cc2c7b59862980aa | 3decd550cdb6034db8b497051acaaec8221073aa | refs/heads/master | 2023-05-11T20:05:31.680168 | 2023-04-30T00:01:58 | 2023-04-30T00:01:58 | 159,632,542 | 1 | 0 | null | 2023-03-05T11:34:34 | 2018-11-29T08:27:53 | Python | UTF-8 | Python | false | false | 5,566 | py | '''
Created on Mar 15, 2017
@author: kautilya.save
'''
from database import ViewDB,searchdb
from exceptions import CustomException2
def validate_search_category(city,area):
list_of_search_categories=searchdb.search_as_a_guest(city,area)
if(len(list_of_search_categories)==0):
raise CustomE... | [
"kautilyasave@gmail.com"
] | kautilyasave@gmail.com |
58cff43dd9b00a860369424cd66fd9750167eee5 | 3712a929d1124f514ea7af1ac0d4a1de03bb6773 | /开班笔记/python数据分析机器学习部分/机器学习/day06/tf.py | c6bbc842ae1c6bfc7f9cff4b546a67aee8307fc8 | [] | no_license | jiyabing/learning | abd82aa3fd37310b4a98b11ea802c5b0e37b7ad9 | 6059006b0f86aee9a74cfc116d2284eb44173f41 | refs/heads/master | 2020-04-02T20:47:33.025331 | 2018-10-26T05:46:10 | 2018-10-26T05:46:10 | 154,779,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import nltk.tokenize as tk
import sklearn.feature_extraction.text as ft
import sklearn.preprocessing as sp
doc = 'The brown dog is running. ' \
'The black dog is in the black room. ' \
'Running in the room is forbidden.'
print(doc)
sentences = ... | [
"yabing_ji@163.com"
] | yabing_ji@163.com |
b093c8113f7bbff2923760d0f934c28f35a0c438 | 244e751aa882c6df1abb04db8a4de70a0e804ece | /Lesson 8/01 - Visualization 1.py | b8d7326fd3af2964c0f679a09c10a1aa3ab5f3de | [] | no_license | Mostafa-At-GitHub/Intro-to-Data-Science--Udacity | 0c0656234a26edee84b430745302f330b8857885 | 6519e60eb23df6568d64f47cfe7d8600acb8e933 | refs/heads/master | 2021-09-01T00:40:13.821220 | 2017-12-23T20:07:47 | 2017-12-23T20:07:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | import pandas as pd
from ggplot import *
def plot_weather_data(turnstile_weather):
'''
You are passed in a dataframe called turnstile_weather.
Use turnstile_weather along with ggplot to make a data visualization
focused on the MTA and weather data we used in assignment #3.
You should feel free t... | [
"mohamedanwarvic@gmail.com"
] | mohamedanwarvic@gmail.com |
51bafdf4e50b66a4ee9225e493ae81aad6aa8505 | c70ac4c4f159bf9d0d06870a8975143885b067de | /it_courses/wsgi.py | 7849650c3d17ba2337b969d120fbc654eb8a8652 | [] | no_license | assigdev/it_courses | b494856e43d02d4ba78018635c3b9fefb48c8522 | a2e80fdac0e0e8d43c0b32b7b00cf3ea3c8f7c26 | refs/heads/master | 2020-03-06T18:24:38.075774 | 2018-05-07T21:33:48 | 2018-05-07T21:33:48 | 127,006,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for it_courses 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/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"assigdev@gmail.com"
] | assigdev@gmail.com |
2e829c6947f7da5b59fd8d9fd9451aeeaf9e4329 | 917a27a988bd9617115368f549e26b8a265bf7f9 | /fb1/migrations/0023_auto_20200805_1246.py | 72f2afc5826d7dc5e6d2b996922193d2a812a4d3 | [] | no_license | anand0101/FbPost | 0a33ee710120d4c4b753aa87b04a9166605653fe | c649a44070572b286412369d4975cca82c55cdd8 | refs/heads/master | 2022-11-28T08:01:29.967598 | 2020-08-06T12:21:28 | 2020-08-06T12:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | # Generated by Django 3.0.6 on 2020-08-05 07:16
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fb1', '0022_auto_20200804_0616'),
]
operations = [
migrations.CreateModel(
name='Newsdata',
fields=[... | [
"ansarihasnain3598@gmail.com"
] | ansarihasnain3598@gmail.com |
e29d72cdd89552c4900a47d83ec088569c38a8d6 | 0f5f6ff75cef3e81419216ba0191bb69a26c9068 | /aws/debugging.py | b4f37180a4ccbd3532904ea44281823bfc7115e0 | [] | no_license | daddyawesome/CodingP | 1c7bbb2edd30333f7cb1b78ec6a0428854c4fa2b | 66ab4e452c23f3f770d6ad1e32f604c65e1dcbd3 | refs/heads/master | 2022-10-13T18:36:23.068195 | 2022-10-04T07:01:58 | 2022-10-04T07:01:58 | 220,047,911 | 0 | 0 | null | 2020-07-07T20:49:07 | 2019-11-06T17:01:44 | Python | UTF-8 | Python | false | false | 430 | py | # Ask the user for a value and confirm the supplied value is greater than 0
def checkvalue(valuetocheck):
assert (type(valuetocheck) is int), "You must enter a number."
assert (valuetocheck > 0), "Value entered must be greater than 0"
if valuetocheck > 4:
print("Value is greater than 4")
else... | [
"sablay296@gmail.com"
] | sablay296@gmail.com |
f2740e448fe9f797da84617de0a145d889873a4b | 197ad5eecd8d5fb46e75dff67bab3be96dd961b0 | /graphene_mongoengine/fields.py | 3865af262e84bcb967d8544f664515fb44cf19c2 | [] | no_license | tomasgarzon/graphene-mongoengine | c18a5b51e411e905a8890bdc542898673d0280a7 | ecc2116739f56d065c07024c3082958f490307f5 | refs/heads/master | 2021-01-20T09:20:10.272424 | 2017-05-04T08:25:44 | 2017-05-04T08:25:44 | 90,237,184 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,272 | py | from functools import partial
from django.db.models.query import QuerySet
from graphene.types import Field, List
from graphene.relay import ConnectionField, PageInfo
from graphql_relay.connection.arrayconnection import connection_from_list_slice
from graphene_django.utils import maybe_queryset
from .utils import ge... | [
"tomasgarzonhervas@gmail.com"
] | tomasgarzonhervas@gmail.com |
fb81536c36d1bcf3197847f734633a588c8236d2 | 84db91ca8e14687251eca5d4ffe1a50fde89e4d9 | /parsbot/chat/migrations/0001_initial.py | 449f59a6375bd31f545fba965f0a53fd9338819d | [
"MIT"
] | permissive | aodarc/project009 | 426fba89f7978dec5605eadf5b72932f8866201d | 3fcd795cd936223442cf09a0a3494fc0fb54ceb3 | refs/heads/master | 2020-03-28T14:33:40.728781 | 2018-09-24T20:12:15 | 2018-09-24T20:12:15 | 148,499,017 | 0 | 1 | MIT | 2018-09-24T15:52:58 | 2018-09-12T15:08:02 | Python | UTF-8 | Python | false | false | 1,583 | py | # Generated by Django 2.1.1 on 2018-09-24 17:06
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... | [
"odarchenko@ex.ua"
] | odarchenko@ex.ua |
72a8fb5dde9f4d106f9351a271aa41bde1edf893 | 97062249c6eb04069c6fb01e71d06bc334c828e1 | /apps/sqoop/src/sqoop/api/submission.py | 44009836ab097b7541ac0a0f966c8dd8f1f024fe | [
"Apache-2.0"
] | permissive | Albertsss/hue | 1c8b31c64cc420a029f5b5b80712fb3d0c6cbd6e | 454d320dd09b6f7946f3cc05bc97c3e2ca6cd485 | refs/heads/master | 2021-07-08T17:21:13.237871 | 2018-05-30T06:03:21 | 2018-05-30T06:03:21 | 135,386,450 | 0 | 1 | Apache-2.0 | 2020-07-25T13:36:58 | 2018-05-30T04:06:18 | Python | UTF-8 | Python | false | false | 2,077 | py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | [
"540227148@qq.com"
] | 540227148@qq.com |
43e61b6c59561aa8e5347f9f382de8b3bafcb311 | c46becf6497484e4f0a904ad0104a3e971982481 | /upbit.py | 9cd7ccc8e666e7e4d0f154d05560fef830082c31 | [] | no_license | damoa-recommend/time-series-ARIMA | 4cfa8213cda0bb4843c583aad94185f27540372a | cb11f7bc0e98c96d0cc2bf532ac46da8ef586240 | refs/heads/master | 2023-03-26T20:38:18.728032 | 2021-03-28T06:12:58 | 2021-03-28T06:12:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | from websocket import WebSocketApp
import json, ssl, asyncio
from datetime import datetime
from model import add_data, fit, forecast
try:
import thread
except ImportError:
import _thread as thread
import time
def on_message(ws, message):
msg = json.loads(message.decode('utf-8'))
KRW_RATE = 1129
price = ... | [
"pjt3591oo@gmail.com"
] | pjt3591oo@gmail.com |
61bbf79465067d63c29ee60dc6d48f4dca794443 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/object_attr_get-105.py | 667ce2fd6395edeaed0eb054576d151fe61bfa6f | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | class A(object):
a:int = 42
class B(A):
b:bool = True
def __init__(self:"B"):
print("B")
a:A = None
b:B = None
a = b = B()
print(a.a)
print($Exp.a)
print(b.b)
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
9c1c5043ec4afa52876e8466255b46d56f6a2136 | 3716e91c0a18a2cf0b5807cc673d95a7539b008c | /DungeonsKitgard/DeadlyDungeonRescue.py | 284f1afc14a5fc11ad02ee961f1401bbc26d1654 | [] | no_license | kiwiapple87/CodeCombat-1 | 47f0fa6d75d6d3e9fb9c28feeb6fe2648664c1aa | ce0201e5ed099193ca40afd3b7abeee5a3732387 | refs/heads/master | 2021-05-01T16:38:03.575842 | 2016-08-25T11:13:26 | 2016-08-25T11:13:26 | 66,552,813 | 1 | 0 | null | 2016-08-25T11:39:20 | 2016-08-25T11:39:18 | null | UTF-8 | Python | false | false | 1,397 | py | # http://codecombat.com/play/level/deadly-dungeon-rescue
# Сбегите из подземелья после спасения измученного крестьянина.
# Вы можете спрятаться за горгульями.
# Убийство охранников может привести к нежелательным последствиям.
# Если вы сможете собрать все сокровища, вы можете получить дополнительную награду.
self.moveU... | [
"vadim-job-hg@yandex.ru"
] | vadim-job-hg@yandex.ru |
b8c3b6c0035aae5cda585026ddf1459337697870 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_shifted.py | f91e9b4d9a75c8d13f05fdca4c6f193c33d00954 | [
"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 | 233 | py |
from xai.brain.wordbase.verbs._shift import _SHIFT
#calss header
class _SHIFTED(_SHIFT, ):
def __init__(self,):
_SHIFT.__init__(self)
self.name = "SHIFTED"
self.specie = 'verbs'
self.basic = "shift"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e61e59a67298c69be410f34ad18bf220e57a3d6c | 92e8c0b58c3b005c5f74f770d2e91c7fc91cf181 | /tests/scraper/scraper_processor_run_test.py | ff2bb27705e37508ecc9a1eb61114d289785e23e | [] | no_license | xhijack/django-dynamic-scraper | d1e8ab6e68a34fdea810d84aa312f176610289af | 7b09960e66f7029f50266033848eaba81352b212 | refs/heads/master | 2021-01-16T18:09:35.081262 | 2016-07-15T23:45:32 | 2016-07-15T23:45:32 | 62,983,247 | 0 | 0 | null | 2016-07-10T05:28:29 | 2016-07-10T05:28:29 | null | UTF-8 | Python | false | false | 7,715 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging, os.path, unittest
from twisted.internet import reactor
from scrapy.exceptions import CloseSpider
from scraper.models import Event
from scraper.scraper_test import EventSpider, ScraperTest
from dynamic_scraper.models import SchedulerRunti... | [
"Holger.Drewes@googlemail.com"
] | Holger.Drewes@googlemail.com |
7e2b34df685708489aa33c5b08b40994f15d6866 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/parity_20200821124709.py | 072436c7d2907623d847dd852d9c36fed3b03bda | [] | 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 | 214 | py | def parity(A):
# we can have two arrays one to store even and other to store odd
# that would cost memory
even = []
odd = []
for i in range(len(A)):
if A[i]%2 == 0:
parity([3,1,2,4]) | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
823499cb9328a7731d079ae7523ae00c2b7341b3 | e71ecfe679dd8c800e8b0960d4ba68e19401a4fc | /PyGithub_examples/search_by_code.py | a86993ecc3ded7531443e407581a721b05c40738 | [] | no_license | igizm0/SimplePyScripts | 65740038d36aab50918ca5465e21c41c87713630 | 62c8039fbb92780c8a7fbb561ab4b86cc2185c3d | refs/heads/master | 2021-04-12T10:48:17.769548 | 2017-06-15T18:53:04 | 2017-06-15T18:53:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,000 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
LOGIN = None
PASSWORD = None
# http://user:password@proxy_host:proxy_port
PROXY = None
if PROXY:
import os
os.environ['http_proxy'] = PROXY
from github import Github
gh = Github(LOGIN, PASSWORD)
# print(list(gh.search_code('requests au... | [
"gil9red@gmail.com"
] | gil9red@gmail.com |
da700d1576d08b4500612bcf1e824f1dee1cd1a6 | ffe2e0394c3a386b61e0c2e1876149df26c64970 | /cal.py | 922ab0f65f531f1c5d5749bfb43c69c5da379a0d | [] | no_license | garethpaul/WillBeOut | 202e0ad7a12800c6008ec106c67ee7d23d256a07 | c8c40f2f71238c5a5ac6f5ce0cfb3a07e166b341 | refs/heads/master | 2016-09-05T14:02:15.648358 | 2013-01-16T17:26:43 | 2013-01-16T17:26:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,412 | py | import tornado.auth
import tornado.web
import base
import json
from cgi import escape
class CalHandler(base.BaseHandler):
@tornado.web.authenticated
def post(self):
_user_id = self.get_current_user()['id']
_user_name = self.get_current_user()['name']
_hour = self.get_argument('hour')
... | [
"gareth@garethpaul.com"
] | gareth@garethpaul.com |
714c50c40ca01e9b0f9ed55c904b6094b746454f | 8c8c56dfd72f3de4c2637050d113a58193ee848a | /scripts/create_span_concept_dict.py | b97a17717f886df57237336e76b318c773e027cd | [] | no_license | raosudha89/amr_emnlp | 9eb83d68e4c81cd257e2f0d0ed2ac29440563ca4 | 91b3ca6526c6872fed2cdfff59ff83342353ae07 | refs/heads/master | 2021-01-10T04:59:47.845470 | 2016-02-01T00:14:31 | 2016-02-01T00:14:31 | 50,605,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | import sys
import cPickle as pickle
from collections import OrderedDict
argv = sys.argv[1:]
if len(argv) < 1:
print "usage: create_span_concept_dict.py <concept_training_dataset.p>"
sys.exit()
concept_training_dataset = pickle.load(open(argv[0], "rb"))
span_concept_dict = {}
for id, concept_training_data in conce... | [
"raosudha@umiacs.umd.edu"
] | raosudha@umiacs.umd.edu |
7069511abb46a5cbe8b75a04015b09471f7bea14 | 9ac90488fa5ccd5100e2593e34031d4692664e28 | /data/input_files_new_philly_dta/DTA_interface.py | 0b53ff74280c6a95b274b48b9cc2ab396d8f0bfd | [
"MIT"
] | permissive | AlanPi1992/MAC-POSTS | 18a2c9f25a06d6512a96de986c4b2d38f9f9fa32 | 4e4ed3bb6faa5ebd0aa5059b2dfff103fe8f1961 | refs/heads/master | 2021-06-27T06:18:58.116114 | 2019-05-22T21:54:45 | 2019-05-22T21:54:45 | 105,393,332 | 0 | 1 | MIT | 2018-11-26T04:45:20 | 2017-09-30T18:57:17 | Jupyter Notebook | UTF-8 | Python | false | false | 4,077 | py | import numpy as np
import os
class Link:
from1 = None
to1 = None
ID = None
linkType = None
name = None
length = np.float(0)
FFS = np.float(0)
cap = np.float(0)
RHOJ = np.float(0)
lane = None
hasCounts = False
hasSpeed = False
volume = np.float()
lambda_plus = np.float()
lambda_minus ... | [
"lemma171@gmail.com"
] | lemma171@gmail.com |
2a60db08d08a074061f2c691d287318b4559dc11 | 7839d009f3ae0a0c1bc360b86756eba80fce284d | /build/rostest/catkin_generated/pkg.installspace.context.pc.py | 7235d889406793f9882e29d9c47b2428384ccc19 | [] | no_license | abhat91/ros_osx | b5022daea0b6fdaae3489a97fdb1793b669e64f5 | 39cd8a79788d437927a24fab05a0e8ac64b3fb33 | refs/heads/master | 2021-01-10T14:43:41.047439 | 2016-03-13T23:18:59 | 2016-03-13T23:18:59 | 53,812,264 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/opt/ros/jade/include;/usr/local/include".split(';') if "/opt/ros/jade/include;/usr/local/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-l:/us... | [
"abhat@wpi.edu"
] | abhat@wpi.edu |
d24d9b532639b9ddb03b9b8f313d705c1a0aa4d2 | 4e382ae46cf997ea2dbdfcfa463a57d3e0e9ad97 | /sols/find_the_difference.py | 8ac2f6c88a73e8e3e625f600b9cab2ad1558bb5c | [] | no_license | hayeonk/leetcode | 5136824838eb17ed2e4b7004301ba5bb1037082f | 6485f8f9b5aa198e96fbb800b058d9283a28e4e2 | refs/heads/master | 2020-04-28T03:37:16.800519 | 2019-06-01T14:34:45 | 2019-06-01T14:34:45 | 174,943,756 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | class Solution(object):
def findTheDifference(self, s, t):
ret = 0
for c in s:
ret ^= ord(c)
for c in t:
ret ^= ord(c)
return chr(ret) | [
"31617695+hayeonk@users.noreply.github.com"
] | 31617695+hayeonk@users.noreply.github.com |
992b1d21729bf38534b92b9c117474340f6d1e7c | da0a0045d4e7b0de12a9459e5546332ccc7cce0e | /Design_Patterns/Structural/Adapter/example1/third_party_billing_system.py | 91d45cfb3c8a513e62f49f5e13c1c9b9a26457f8 | [] | no_license | git4rajesh/python-learnings | d64e7c76698b7f2255a77a8233a90774db78f030 | ee6b7f7844079e94801c19a1dd80921e1741e58e | refs/heads/master | 2022-11-01T08:47:45.097034 | 2019-04-28T02:14:34 | 2019-04-28T02:14:34 | 172,183,208 | 0 | 1 | null | 2022-10-12T08:35:43 | 2019-02-23T07:04:59 | Python | UTF-8 | Python | false | false | 432 | py | class Third_Party_Billing_System:
@staticmethod
def process_salary(lst_emp_obj):
for emp in lst_emp_obj:
if emp.designation == 'Mgr':
emp.salary = 1000
elif emp.designation == 'QA':
emp.salary = 2000
elif emp.designation == 'Engr':
... | [
"rvenkataraman"
] | rvenkataraman |
d7366b50353afa370e0f073c0930672676fc801a | 81efabfbef513ba9d45f28c2fce5e9ab5eb19eec | /Example_Buzzer.py | 0ad2adf9df635f5f17d95419322dbe1895b509b1 | [] | no_license | ncdcommunity/Raspberry_Pi_PCA9536_Input_Output_Module_Python_library | e219f89ab1e5de748f4db804250d9962a41c2cbf | e910ad2a8bbb4c492179bd593d3c7f31ef92d368 | refs/heads/master | 2021-03-24T13:21:48.969471 | 2018-02-08T07:01:09 | 2018-02-08T07:01:09 | 120,723,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | # Distributed with a free-will license.
# Use it any way you want, profit or free, provided it fits in the licenses of its associated works.
# PCA9536_BZ
# This code is designed to work with the PCA9536_I2CBZ I2C Mini Module available from ControlEverything.com.
# https://shop.controleverything.com/products/digital-3-c... | [
"ryker1990@gmail.com"
] | ryker1990@gmail.com |
0871e550193f28e9c243723ca06cb964eb1e0256 | a98c455a318ab2d47b10ef1aa195b7dfd1b5449c | /codes/fashionmnist_tobf.py | 31f7ae4dc70bc7816376311fda79de25e325bbae | [] | no_license | WanliXue/BF_implemation | ddd463ed906e1f4ee0de492da48bc6de3574bfd0 | 211aa963f3be755858daf03fca5690d3c9532053 | refs/heads/main | 2022-12-26T07:04:05.280651 | 2020-10-13T02:08:55 | 2020-10-13T02:08:55 | 303,561,823 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,946 | py | import numpy as np
# import os
# print(os.getcwd())
import math
import time
from BF_TS import BF_TS
def conver_data_to_bf(data):
com_to_len = data.shape[1]
# print(data.shape)
#
compressed_data = data[:, :]
#
# ------------Put into compressed and BF data---------
length = 10000
b = 5... | [
"xuewanli.lee@gmail.com"
] | xuewanli.lee@gmail.com |
b019c18b74461fd6a01e93019d9a39a9681330c1 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Anscombe/trend_ConstantTrend/cycle_7/ar_12/test_artificial_1024_Anscombe_ConstantTrend_7_12_100.py | 3e21083297c74f56fbd8826c3dc7a03e1537c962 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 275 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 7, transform = "Anscombe", sigma = 0.0, exog_count = 100, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
654de6277b4e8c96c01f3c4013478da037b626d2 | 36ac195ecceb868e78372bc8e976066cc9ff0fae | /torch_glow/tests/nodes/batchnorm3d_test.py | 6fed650f00e7de8b34a67493a89a151fbdc61b73 | [
"Apache-2.0"
] | permissive | jeff60907/glow | d283d65bc67e0cc9836854fa7e4e270b77023fff | 34214caa999e4428edbd08783243d29a4454133f | refs/heads/master | 2021-09-23T07:30:29.459957 | 2021-09-14T01:47:06 | 2021-09-14T01:48:00 | 216,199,454 | 0 | 0 | Apache-2.0 | 2019-10-19T12:00:31 | 2019-10-19T12:00:31 | null | UTF-8 | Python | false | false | 2,270 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import torch
import torch.nn as nn
from tests import utils
class TestBatchNorm3D(utils.TorchGlowTestCase):
def test_batchnorm_basic(self):
"""
Basic test of the PyTorch 3D batchnorm Node on Glow.
"""
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
59d1905f4c830c16a12da935f6d105de60ee67ef | 15dfa10d195fb6187765aa1d6a42f6152e8cd4e1 | /sof_parser/sof_parser/pipelines.py | 6a2cdf0a24fac33c26e82f57d0c644bf88554a77 | [] | no_license | didoogan/sof_parser | d790e12d5290dd110ddc1511a74a02876dba607b | c3b9064425e74ebb67e34319a462b5401732990c | refs/heads/master | 2020-12-29T02:06:59.956070 | 2016-09-21T14:45:55 | 2016-09-21T14:45:55 | 68,790,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class SofParserPipeline(object):
def process_item(self, item, spider):
return item
| [
"tzd0409@gmail.com"
] | tzd0409@gmail.com |
a9ada2f135bdc88b9aaf30c65ca4588856fbeb5f | 84b05857cbe74d190bdbee18d442d0c720b1b84d | /Coderbyte_algorithms/Easy/MovingMedian/MovingMedian.py | be21ca848c07cd1ea8955337db4131d680066937 | [] | no_license | JakubKazimierski/PythonPortfolio | 1c8c7e7b0f1358fc42a2295b807d0afafd8e88a3 | 3aa62ad36c3b06b2a3b05f1f8e2a9e21d68b371f | refs/heads/master | 2023-06-01T01:16:22.897097 | 2023-05-15T01:05:22 | 2023-05-15T01:05:22 | 311,473,524 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | '''
Moving Median from Coderbyte
December 2020 Jakub Kazimierski
'''
import statistics
def MovingMedian(arr):
'''
Have the function MovingMedian(arr)
read the array of numbers stored in arr
which will contain a sliding window size, N,
as the first element in the array and the rest
... | [
"j.m.kazimierski@gmail.com"
] | j.m.kazimierski@gmail.com |
302781dcebe0e1f90f184cdf719806f48bc0785d | f199898334653e32d6a13922063e98f6cc477db5 | /tests/test_air.py | 8f734e633fc83fe54da3b9d9da5639cd14145903 | [
"MIT"
] | permissive | wptree/akshare | c31bb822d806974be951c3b2258312abdec09a6e | 7697506d277f14d1719e60c3d19e73ff7d69e6af | refs/heads/master | 2021-02-07T22:30:00.957989 | 2020-02-29T10:29:27 | 2020-02-29T10:29:27 | 244,083,276 | 1 | 0 | MIT | 2020-03-01T03:59:01 | 2020-03-01T03:59:00 | null | UTF-8 | Python | false | false | 1,314 | py | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Author: Albert King
date: 2019/12/12 18:16
contact: jindaxiang@163.com
desc: To test intention, just write test code here!
"""
# from akshare.air.aqi_study import air_hourly
from akshare.index.index_weibo import weibo_index
from akshare.event.franchise import franchise_c... | [
"jindaxiang@163.com"
] | jindaxiang@163.com |
6f90146523ad83c22bd917cb55bcb3196765cb28 | d3f680630426ff3a63d564e78bb1480863a7f0f6 | /services/web__aps_dz.py | 4c103effdaa88ee80facaa3ba0bd5fd20edee578 | [] | no_license | JesseWeinstein/NewsGrabber | 09f9d567449e99ba211e4ba61b42c53276de235b | b431dc5f313d4718c6328aaaa97da1bc8e136023 | refs/heads/master | 2020-12-31T02:32:48.359448 | 2016-01-23T14:20:26 | 2016-01-23T14:20:26 | 48,966,133 | 1 | 0 | null | 2016-01-04T00:33:41 | 2016-01-04T00:33:41 | null | UTF-8 | Python | false | false | 456 | py | refresh = 5
version = 20160122.01
urls = ['http://www.aps.dz/algerie?format=feed',
'http://www.aps.dz/economie?format=feed',
'http://www.aps.dz/sport?format=feed',
'http://www.aps.dz/monde?format=feed',
'http://www.aps.dz/societe?format=feed',
'http://www.aps.dz/regions?format=feed',
'http://www.aps.dz/culture?f... | [
"Arkiver@hotmail.com"
] | Arkiver@hotmail.com |
86ab4c0936eb638ea5a4cdc51d104fe7ae8991a0 | bf92a619b9b850678bb691915e45c39cd740fa63 | /apps/freeway/main.py | de0fdd6c91d2e76ff7289f891c78993f55fdaea0 | [] | no_license | jrecuero/jc2cli | a045f1efa431f53351dfac968852fd82e8c963b6 | c97615828880021b3965756aed939e39bac949b6 | refs/heads/master | 2021-05-10T10:16:34.698398 | 2018-11-06T17:43:53 | 2018-11-06T17:43:53 | 118,377,662 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | import ehandler
import race
import freeway
import section
import device
from cursor import Cursor
if __name__ == '__main__':
Cursor.print(Cursor.clear_entire_screen())
Cursor.print(Cursor.move_upper_left(0))
_ehdlr = ehandler.EHandler()
_race = race.Race()
_freeway = freeway.Freeway()
_freeway... | [
"jose.recuero@gmail.com"
] | jose.recuero@gmail.com |
b15f080badda883ba9ec4368b1e34032afe7f2a8 | 06fec21ab6be610d7e491eaa55f776587ed6fadd | /hubapp/migrations/0007_add_price.py | 988a6501030a2dbba177e0b2c561af43c2b411c3 | [] | no_license | rcoffie/ehub | 6e6e493d252b4d8a5360616ea64dd85fdc3b15f8 | 28213469c612088acb3a62ca9bf1f3c2a0dd5756 | refs/heads/master | 2022-09-29T09:05:49.705294 | 2020-06-07T09:26:16 | 2020-06-07T09:26:16 | 263,087,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | # Generated by Django 3.0.6 on 2020-06-06 13:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hubapp', '0006_auto_20200606_1302'),
]
operations = [
migrations.AddField(
model_name='add',
name='price',
... | [
"rcoffie22@yahoo.com"
] | rcoffie22@yahoo.com |
8ceae620a6ca4aa42c19252edc4912bc71ab0105 | 9afbcb367de9bf055d531d285bc299a9ca3040fe | /django_session/django_session/settings.py | 8d2cce87371602bcd47e87324c303b6c4fded580 | [] | no_license | mysqlplus163/aboutPython | a41a5bc2efd43b53d4acf96e7477e80c022cf657 | fa7c3e6f123158011d8726b28bfcd0dee02fa853 | refs/heads/master | 2020-03-21T05:06:19.949902 | 2018-03-14T16:04:54 | 2018-03-14T16:04:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,177 | py | """
Django settings for django_session project.
Generated by 'django-admin startproject' using Django 1.10.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
im... | [
"liwenzhou7@gmail.com"
] | liwenzhou7@gmail.com |
378d8d6243e4eb15707ac59dc6e7bf93f80452e7 | 67572ef7c6ac88a335dd884ac19dd8f5519145fa | /4_Recursion/recursive_sierspinski.py | 29161fc863bc4e448ba111480df36cefa2bc8fd9 | [
"MIT"
] | permissive | ZoroOP/Problem-Solving-With-Algorithms-And-Data-Structures | ccb2eb306229097dd8c930523e20ed7115a1e8ef | be29b46b9f4e579644ca2d44675c0ce7dcb29b3b | refs/heads/master | 2021-10-17T00:59:53.654643 | 2019-02-13T05:40:27 | 2019-02-13T05:40:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | """
Draw a sierpinski triangle recursively with the turtle module.
"""
import turtle
def drawTriangle(points,color,myTurtle):
myTurtle.fillcolor(color)
myTurtle.up()
myTurtle.goto(points[0][0],points[0][1])
myTurtle.down()
myTurtle.begin_fill()
myTurtle.goto(points[1][0],points[1][1])
myT... | [
"anthony.r.chao@gmail.com"
] | anthony.r.chao@gmail.com |
7988c3051318b94f342323a66c7309ca285ec7a3 | e8215b98dcf46417e720cc6ef4a0329474ae9b82 | /PHYS210/Project 2-Animation - Backup/ising.py | 17cd108c5c818627b3c2906932314eaf85891cf0 | [] | no_license | rgkaufmann/PythonCodes | 2d47bab84ec851fc962598f613b1e666a14c8efd | a5d5cd993beabdb79897a05b35420ad82f438f51 | refs/heads/master | 2021-06-13T23:19:09.109162 | 2021-03-03T06:00:04 | 2021-03-03T06:00:04 | 162,771,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,839 | py | # PHYS 210 - Project 2 - The Ising Model Ryan Kaufmann
# Bonus: Add a second animation showing the individual spins of each electron
# In each of the desired temperatures (0.1K, 2.5K, 100K)
import numpy as np # Importing all important function, numpy
import matplotlib.pyplot as plt ... | [
"ryankaufmannprof@gmail.com"
] | ryankaufmannprof@gmail.com |
dc3d0bbf003d9e703385315bc3b4b2710809e86f | 4c1da0c18482031ea650b32b1ee19cd8e16338fb | /exit_window_v0.py | 34b21c5da8185119ea480f48991bdc8f863aff28 | [] | no_license | adamjaro/irview | 03dbb4c4a3e2a1082e246552b104602108bfd44a | a47c6a49af5411bc167e35fdee961e27243b49f3 | refs/heads/master | 2021-06-19T22:52:27.242434 | 2021-06-17T22:11:32 | 2021-06-17T22:11:32 | 211,398,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,769 | py |
import math
import ROOT as rt
from ROOT import TVector2, TGraph, TText
#_____________________________________________________________________________
class exit_window_v0(object):
#photon exit window, part of electron beam pipe, rear side
#_____________________________________________________________________... | [
"jaroslav.adam@cern.ch"
] | jaroslav.adam@cern.ch |
1ee2a6377c7360321e648ff0ee8fd16d7f80d533 | ba0cbdae81c171bd4be7b12c0594de72bd6d625a | /MyToontown/py2/toontown/safezone/DLPlayground.pyc.py | 5e65850004a6b36058f664b5dfb7c98d89449186 | [] | no_license | sweep41/Toontown-2016 | 65985f198fa32a832e762fa9c59e59606d6a40a3 | 7732fb2c27001264e6dd652c057b3dc41f9c8a7d | refs/heads/master | 2021-01-23T16:04:45.264205 | 2017-06-04T02:47:34 | 2017-06-04T02:47:34 | 93,279,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | # 2013.08.22 22:24:38 Pacific Daylight Time
# Embedded file name: toontown.safezone.DLPlayground
from pandac.PandaModules import *
import Playground
import random
class DLPlayground(Playground.Playground):
__module__ = __name__
def __init__(self, loader, parentFSM, doneEvent):
Playground.Pla... | [
"sweep14@gmail.com"
] | sweep14@gmail.com |
8433d0ea23babf77d16a0856540607257f5e75b6 | abdab481e9c4f64fc3d2f84539c58b51fd66f198 | /numpy/core/arrayprint.pyi | b8c7b1604647f74d163548109b0a7e327c99aef6 | [] | no_license | depixusgenome/linting | aa068d9b5dd393c668429a1fed2e0dfc5d675125 | 4e3398fab98f873f77f8e8ab81eaeb7df215e7f7 | refs/heads/master | 2020-09-24T08:39:02.645467 | 2019-10-11T20:33:20 | 2019-10-11T20:33:20 | 225,716,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,249 | pyi | # Stubs for numpy.core.arrayprint (Python 3.5)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any, Optional
from . import numerictypes as _nt
def set_printoptions(precision: Optional[Any] = ..., threshold: Optional[Any] = ..., edgeitems: Optional[Any] = ..., linewidth... | [
"pol.davezac@depixus.com"
] | pol.davezac@depixus.com |
96d191f3d7de629e749b76de9c56cc154bb389f5 | 5b5aee20bf23dfe1a6314fb524c4cc31e140ee64 | /thuoclao/check/migrations/0001_initial.py | 5b551428b8fbec05aa632d32ed1e93ba3ac8071c | [] | no_license | locvx1234/ThuoclaoPing | 7f75aa658a7b97d4b8c8982b2477e93463861cf2 | 8c821c0adf50a93a17c29255905bcf32101fe171 | refs/heads/master | 2023-08-17T05:29:38.392255 | 2019-10-22T02:44:41 | 2019-10-22T02:44:41 | 128,077,290 | 0 | 1 | null | 2023-09-09T02:36:36 | 2018-04-04T14:50:33 | JavaScript | UTF-8 | Python | false | false | 4,370 | py | # Generated by Django 2.0.4 on 2018-07-20 02:13
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),
('auth... | [
"locvx1234@gmail.com"
] | locvx1234@gmail.com |
0c4e1416b8bf147efb68a6aa8f6cd1d073d05606 | 64cd09628f599fe18bf38528309349f7ac0df71e | /Introduction/01_Introduction_python/10 Python functions/zip.py | 9752853642d820a77fb69fc2a92b8d95daa4c8cf | [] | no_license | JunyoungJang/Python | 958c057b2fd37c03876d3cf566ee27ee637bb020 | 76d4cd441deff8061e10608e0848360bc4f34490 | refs/heads/master | 2021-01-19T21:54:42.208469 | 2020-02-14T09:54:17 | 2020-02-14T09:54:17 | 83,768,220 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | x = [1, 2, 3]
y = [4, 5, 6]
print zip(x, y) # [(1, 4), (2, 5), (3, 6)]
x = [1, 2, 3]
y = [4, 5]
print zip(x, y) # [(1, 4), (2, 5)]
x = [1, 2]
y = [4, 5, 6]
print zip(x, y) # [(1, 4), (2, 5)]
| [
"lakino@yonsei.ac.kr"
] | lakino@yonsei.ac.kr |
fd276b40e39dc6d6a2c51ea5ff00896c701319db | ded3109fc9a05b60c36da2c41017f799fb887f07 | /moose_nerp-1/moose_nerp/graph/plot_channel.py | c5f38765ede441d9f83cf23a57ba64812dc2569b | [] | no_license | ModelDBRepository/245563 | f5f0d48213a9deb9b07ea694136e008cbcfdeff0 | 97cd40113230c4ddadc77725bb5148fcc2f5b9a7 | refs/heads/master | 2020-04-24T12:26:02.905630 | 2019-02-21T22:23:39 | 2019-02-21T22:23:39 | 171,954,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,160 | py | import numpy as np
import matplotlib.pyplot as plt
import moose
def plot_gate_params(chan,plotpow, VMIN=-0.1, VMAX=0.05, CAMIN=0, CAMAX=1):
#print "PLOT POWER", plotpow, chan.path,chan.Xpower
"""Plot the gate parameters like m and h of the channel."""
if chan.className == 'HHChannel':
cols=1
... | [
"tom.morse@yale.edu"
] | tom.morse@yale.edu |
356f6d97d06b3df049dac75184bda584cee875f5 | 10f0d2f60b67e1bd45af82f1af0044b7ce1c8843 | /Questões do URI/Exercicio 7 (Reduce).py | 1ae64595fff54a5b2521678cd19aa78917b46155 | [] | no_license | vikvik98/Algoritmos_2017.1 | 184bce5fb6e155076253359e49f73fafb28dbc8d | 219fa2cfdf7320df34d282136c025c6c19be09d6 | refs/heads/master | 2021-08-24T04:15:29.550879 | 2017-12-08T02:08:34 | 2017-12-08T02:08:34 | 113,519,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | def main():
temperaturas = [0] * 121
menor = 0
maior = 0
media = 0
cont = 0
total_temp = 0
dias = 0
#Geração de vetor
for i in range(len(temperaturas)):
temperatura_dia = float(input())
temperaturas[i] = temperatura_dia
#Search
for i in range(len(temperaturas)):
menor = temperaturas[0]
if temperat... | [
"vinicius.c.mascarenhas@hotmail.com"
] | vinicius.c.mascarenhas@hotmail.com |
166470769a122a0a59d76a1b0de5948e91f65b00 | 06b2a4f8dc27b5177bfd782386b59b47eafe6556 | /Django-level-3/project_exercise/users/admin.py | d703d0074246d644276dd261368797c5c0376557 | [] | no_license | mishrakeshav/Django-Tutorials | d81eb736f3d21f207147e1dd7c5132a54523feca | 3757c40e975fa782996f4968752d0b41da1cc96c | refs/heads/master | 2023-07-07T08:45:46.264661 | 2021-03-17T15:09:08 | 2021-03-17T15:09:08 | 275,316,311 | 1 | 0 | null | 2021-08-09T21:02:45 | 2020-06-27T06:49:23 | JavaScript | UTF-8 | Python | false | false | 129 | py | from django.contrib import admin
# Register your models here.
from users.models import User
admin.site.register(User)
| [
"keshav.sm@somaiya.edu"
] | keshav.sm@somaiya.edu |
eed1bf04dd38dc87166f710aeaa9a078af06b58e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03565/s696347515.py | d570956493fddbee98c2576a04e3d91b8bd5bc84 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | import copy
S_dash = input()
T = input()
len_S = len(S_dash)
len_T = len(T)
candidate0 = list(S_dash)
ans = "z"*51
if len_S >= len_T:
for s in range(len_S):
cha_S = S_dash[s]
if cha_S != "?" and cha_S in list(T):
for t in range(len_T):
cha_T = T[t]
if cha_S == cha_T and 0<= s-t < le... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
afb650659264e114dd31253efb373c7806e49a31 | 68728961294d360d26e8149e7e0a4816adf20842 | /utils/file_utils.py | 6754798f0e5a5d92d67229d23ed3d1bf4d5cd4e1 | [] | no_license | Dawn-Flying/text_summarization | d334fe884aa3a6341dd7bc381b03c1ab3e2c057e | ab68555c6f455c4f14fead5fc1c49420cdef8dc4 | refs/heads/master | 2023-07-17T07:49:21.995004 | 2021-08-26T15:46:19 | 2021-08-26T15:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | # coding=utf-8
import time
import os
from utils.config import results_dir
def get_result_filename(batch_size, epochs, max_length_inp, embedding_dim, commit=''):
"""获取时间
:return:
"""
now_time = time.strftime('%Y_%m_%d_%H_%M_%S')
filename = now_time + f'_batch_size_{batch_size}_epochs_{epochs}_max_... | [
"184419810@qq.com"
] | 184419810@qq.com |
7fbababfe191ed000fffba22a9dbb5a9a39a966b | 4f923bec0048a74177b31ed5261f1e1df0c98c73 | /pytorch_example.py | 9b5bc3aa4755c3d49d8cbf1bd2c7ee35eece8986 | [] | no_license | EngineerKhan/Equi-RC | 33c6c16873ba87620e861d1af7bd3ee3e380976c | e2228c8946b1f0f10639f593dc5b0c074744cacb | refs/heads/main | 2023-06-23T19:27:07.991533 | 2021-07-16T10:19:19 | 2021-07-16T10:19:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,934 | py | import torch
import torch.nn as nn
from pytorch_rclayers import RegToRegConv, RegToIrrepConv, IrrepToIrrepConv, IrrepActivationLayer, \
IrrepConcatLayer, IrrepBatchNorm, RegBatchNorm, RegConcatLayer, ToKmerLayer
class CustomRCPS(nn.Module):
def __init__(self,
filters=(16, 16, 16),
... | [
"vincent.mallet96@gmail.com"
] | vincent.mallet96@gmail.com |
dde2cf28a3ea139ec0d626a79fe3807ac95e2aa5 | fa346a2d5886420e22707a7be03599e634b230a9 | /temboo/Library/GitHub/GistsAPI/Comments/DeleteComment.py | 605046638edf1fa9b4c894ae8181868343c2aca5 | [] | no_license | elihuvillaraus/entity-resolution | cebf937499ed270c3436b1dd25ab4aef687adc11 | 71dd49118a6e11b236861289dcf36436d31f06bc | refs/heads/master | 2021-12-02T17:29:11.864065 | 2014-01-08T04:29:30 | 2014-01-08T04:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# DeleteComment
# Deletes a specified comment.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Choreography
from tembo... | [
"cedric.warny@gmail.com"
] | cedric.warny@gmail.com |
8909c7579436ee650bba7657c438776d878afd26 | e2fb6865a02573709d26e8d8b4c52f2cd687da10 | /utils/__init__.py | 91bd60a419e4d2c09e9b69adff0b69d0b86ee136 | [] | no_license | tbarbugli/saleor | 0af6e21c540ce0af64b06a44821b82373c96d028 | caf9b245c35611c34094f59443da51a4e9657bfd | refs/heads/master | 2020-12-25T03:20:45.574256 | 2013-06-02T20:43:06 | 2013-06-02T20:43:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | from compressor.templatetags.compress import CompressorNode
from django.template.base import Template
def seizaki_compress(context, data, name):
"""
Data is the string from the template (the list of js files in this case)
Name is either 'js' or 'css' (the sekizai namespace)
We basically just manually ... | [
"tbarbugli@gmail.com"
] | tbarbugli@gmail.com |
5d51dcf1897c071819e438b377e20325171f356a | 40b1db3dbd327b0979749812a7388958afd0892c | /Django_practice/DjangoDay3/register_app/views.py | 7395203915c298117737fd8fd9b40ae26156c8a3 | [] | no_license | lucool/project | 91da0255a739b8464c415347c30d5aea69588dee | f2136f7435e817e057403d968b8eb70ddad889be | refs/heads/master | 2023-03-09T01:27:03.633168 | 2021-02-27T10:37:33 | 2021-02-27T10:37:33 | 340,904,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | from django.shortcuts import render, redirect
from django.urls import reverse
def register_view(request):
if request.method == "GET":
return render(request,'register_app/register.html')
elif request.method == "POST":
regname = request.POST.get("regname")
regpwd = request.POST.... | [
"lu2015594025@163.com"
] | lu2015594025@163.com |
00be56f3a2d4c9c95afe72cadc2bad2c4cbd94a1 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /23htQEtZobC8cfwcm_2.py | 360e158c04b47b25a149be2dda61466f3f503056 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py |
def canConcatenate(lst, target):
nlst = []
for sub in lst:
for i in sub:
nlst.append(i)
return sorted(nlst)==sorted(target)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1e6cbbc5dc6cb0a08716478087f3334a5456edb6 | dff19df8f651fcac7afa53cccd83f90aeef85772 | /account/migrations/0001_initial.py | fd72fc22d8d8b791d84243bd40bb47ee901e9057 | [] | no_license | felipefoc/Django-ToDo | fb6631625fe8d8189841fc43519a727b3fd69ee5 | c15509c22fa7dc9c01ec7b760535becfa0d21b75 | refs/heads/master | 2023-01-23T09:54:56.980485 | 2020-11-22T21:00:01 | 2020-11-22T21:00:01 | 311,521,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | # Generated by Django 3.1.3 on 2020-11-16 04:53
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"felipemfmayer@gmail.com"
] | felipemfmayer@gmail.com |
3ce0277d9ac32d4776f25bf49f8feb9b9d398fcb | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/54/usersdata/102/23160/submittedfiles/av1_p2_civil.py | 25adbefb3c5ac9e4e683f29149470bf2394ec2ea | [] | 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 | 189 | py | # -*- coding: utf-8 -*-
from __future__ import division
n = input('Digite o valor de n:')
i = 1
cont = 0
while i<n:
if i%2==1:
cont = cont + 1
i = i + 1
print (cont) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
dfc8858b3e9adf2feaecf24069bb1764bce3df59 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/spacecomponents/server/components/bountyEscrow/persister.py | 6306404cfd75f08055edba12151d71291620eb72 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 1,523 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\spacecomponents\server\components\bountyEscrow\persister.py
class Persister(object):
def __init__(self, solarSystemID, itemID, dbspacecomponent):
self.isDirty = False
self.itemID = itemID
... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
8ca9949f60472c84308104b755239a122b758f5e | 18b977dccd70e9e5a1b553b28ab0413fb3f54f4b | /SoftUni/Python Developmen/Python-Basics/4_Conditional_Statements/fishing_boat.py | 7f0dbb468fa2c040c471a83c952bd44aa16c25e3 | [] | no_license | stevalang/Coding-Lessons | 7203e3a18b20e33e8d596e3dfb58d26c50b74530 | 2d0060c2268ad966efdcae4e6e994ac15e57243a | refs/heads/master | 2023-06-05T08:28:33.290530 | 2021-06-16T19:37:29 | 2021-06-16T19:37:29 | 284,852,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | budget = int(input())
season = input()
fishermen_count = int(input())
price = 0
ship_spring = 3000
ship_summer_autumn = 4200
ship_winter = 2600
if fishermen_count <= 6:
if season == 'Spring':
price = ship_spring * 0.9
elif season == 'Autumn' or season == 'Summer':
price = ship_summer_autumn * ... | [
"rbeecommerce@gmail.com"
] | rbeecommerce@gmail.com |
64a61209a7c3321452f4445dd94ad549ba4eb752 | e8f7993403776ff414b370f9125891eecfe109ac | /dcn/simplesites/__init__.py | 55022ddb772e9c8d51819bd2f4613801b58f5b5f | [] | no_license | smcmahon/dcn.simplesites | db6d7524ed50bf6ad6601707ee4a4fd83edd1cf3 | aa19585e1bb75cf61cccaa08f711346600b52f23 | refs/heads/master | 2016-09-05T11:21:44.737796 | 2013-06-17T23:13:38 | 2013-06-17T23:13:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,921 | py | from zope.i18nmessageid import MessageFactory
from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
# Set up the i18n message factory for our package
MessageFactory = MessageFactory('dcn.simplesites')
# token, value, title
# tokens are what's saved;
# values are the html option values
# titles are presente... | [
"steve@dcn.org"
] | steve@dcn.org |
d18d477979825923900b12a742b7dc51c68e53ed | d21071464bef4f3fd51e554f280418d06975a77e | /leetcode/146 LRU cache.py | 366cc00adde6ee948f057550ffc92ccb472c8ca7 | [] | no_license | DeshErBojhaa/sports_programming | ec106dcc24e96231d447cdcac494d76a94868b2d | 96e086d4ee6169c0f83fff3819f38f32b8f17c98 | refs/heads/master | 2021-06-13T19:43:40.782021 | 2021-03-27T14:21:49 | 2021-03-27T14:21:49 | 164,201,394 | 1 | 0 | null | 2019-08-27T22:21:26 | 2019-01-05T09:39:41 | C++ | UTF-8 | Python | false | false | 1,768 | py | from collections import deque
class Node:
def __init__(self, key):
self.k = key
self.next = None
self.prev = None
class LRUCache:
def __init__(self, capacity: int):
self.N = capacity
self.head = Node(-10000)
self.tail = Node(10000)
self.head.next... | [
"noreply@github.com"
] | DeshErBojhaa.noreply@github.com |
4ee99e8dc62e8235506617820b0213baa4574f24 | e81a351d6049a05b92925c9b781d07701345713c | /Language Proficiency/Python/betweenTwoSets.py | c7fbb312611315069616c8b210a93f70eaa99062 | [] | no_license | dmiruke/HackerRank-Python | 1b2fa331d78ce0b4b23628d081441ca008150bd7 | 86b42458cae43e83dbd339665b31926eca0feacd | refs/heads/master | 2022-01-13T22:16:27.338429 | 2019-07-16T08:00:13 | 2019-07-16T08:00:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | #!/bin/python3
from math import gcd
#
# Complete the getTotalX function below.
#
def getTotalX(a, b):
#
# Write your code here.
#
lo = a[0]
for i in a[1:]:
lo = int(lo*i/gcd(lo,i))
hi = b[0]
for i in b[1::]:
hi = int(gcd(hi, i))
count = 0
i = 1
for i in range(lo... | [
"atharvapusalkar18@gmail.com"
] | atharvapusalkar18@gmail.com |
dddb37bcbb0fedac09f6b7b4160c9dec9062cb51 | 471b464cd4ec351cb8eb0918ee3658ab22438e47 | /test/test_edict.py | 396a58d7d6708f845f60cffee64a89d131c64da1 | [] | no_license | patarapolw/edictreader | 39c03d551fcc9f38315450ec9fb223e9134455a8 | d1dda8c079b443f66d851fafa9f536b6b0d9453a | refs/heads/master | 2021-04-06T11:01:16.941063 | 2018-03-16T05:32:16 | 2018-03-16T05:32:16 | 125,215,915 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | from time import time
from edictreader.dict import Edict2
def test_search_japanese():
start = time()
d = Edict2()
end = time()
# for item in d:
# print(item)
start2 = time()
print(list(d.search({'japanese': '鼹鼠'})))
end2 = time()
print('__init__() takes {:.4f} seconds'.forma... | [
"patarapolw@gmail.com"
] | patarapolw@gmail.com |
de35c3bd4ec2a2fe84243fd5123191d42f03790d | 7f939ccdc7068f1c441333296896274724100142 | /allocation/migrations/0008_auto_20170723_1409.py | 04f237178cf11730a622275047206a8e112c04ed | [] | no_license | happychallenge/vendorMgmt | c62584af3a7ab4538b36be2f46a5f23b83043495 | e703a04461151950a4b29e5ab2abb855205b21e6 | refs/heads/master | 2021-07-10T08:03:38.666214 | 2018-01-31T11:00:01 | 2018-01-31T11:00:01 | 96,496,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-23 14:09
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('products', '0015_auto_20170723_1352'),
('allocation', '0007_auto_20170723_0903'),
]
... | [
"happychallenge@outlook.com"
] | happychallenge@outlook.com |
837c22b02aaae92a95379ac2311f2991817f4eb1 | dcee93ce4b9fcf0a7ffa6ea658c403ed1fc84043 | /Meteor/src/logAnalysis/migrations/0003_auto_20170811_1009.py | 7bc9b2231774045650c9704355eb09a8a1d96d73 | [] | no_license | henryliuom/drv-study | 3eed96eef58138003371011034562a15ebc16b79 | dcab011bce0f34bcf50f8ab5601eb859a5a07cb7 | refs/heads/master | 2021-06-06T23:49:20.869907 | 2020-07-30T09:06:48 | 2020-07-30T09:06:48 | 95,858,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-11 02:09
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('logAnalysis', '0002_auto_20170802_1329'),
]
operations = [
migrations.AlterModelTab... | [
"henry@techdog.com"
] | henry@techdog.com |
f58f43a4575f64887bb87422cc4d237f32db62bc | 282ec49f8ce8aa176c24e4f13a8852c9b0752e4a | /forgery/simple-manager/gui/main_window.py | fd9291d8160c763d132090a7548b411a28a98454 | [] | no_license | montreal91/workshop | b118b9358094f91defdae1d11ff8a1553d67cee6 | 8c05e15417e99d7236744fe9f960f4d6b09e4e31 | refs/heads/master | 2023-05-22T00:26:09.170584 | 2023-01-28T12:41:08 | 2023-01-28T12:41:08 | 40,283,198 | 3 | 1 | null | 2023-05-01T20:19:11 | 2015-08-06T03:53:44 | C++ | UTF-8 | Python | false | false | 1,537 | py | from random import shuffle
# from PySide.QtCore import Slot
from PySide.QtGui import QWidget
from gui.widgets.main_window_ui import Ui_JMainWindow
from club import JClub
from league import JLeague
club_names = [
"Canberra Masters",
"Sydney Kangaroos",
"D... | [
"nefedov.alexander91@yandex.ru"
] | nefedov.alexander91@yandex.ru |
655f6bdc4c7f5df0fd7c9a5464f13dfc8f420f3c | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/terraform/checks/resource/aws/SSMDocumentsArePrivate.py | 60963dea36c96ee18408e724b9898d385cb74fa2 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 1,120 | py |
from checkov.common.models.enums import CheckCategories
from checkov.terraform.checks.resource.base_resource_negative_value_check import BaseResourceNegativeValueCheck
class SSMDocumentsArePrivate(BaseResourceNegativeValueCheck):
def __init__(self):
"""
NIST.800-53.r5 AC-21, NIST.800-53.r5 AC-3,... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
37d4789329c8c3bf49c5bf0697aeb0465cc52a8f | b0c8e0cafa4a8916faab3cce65756ae91426c43f | /study/Python/VCWeek6/BOJ_14677_강의현.py | a37da96e2703bab006f6f7073b11ede71c4291ce | [] | no_license | Rurril/IT-DA-3rd | b3e3ec3c2a5efbc75b76b84e9002c27a0ba4a1c4 | 9985e237cb1b90e9609656d534e0ed164723e281 | refs/heads/master | 2022-07-22T15:26:39.085369 | 2021-11-23T13:30:06 | 2021-11-23T13:30:06 | 288,980,334 | 3 | 29 | null | 2020-11-05T10:25:30 | 2020-08-20T10:49:17 | Java | UTF-8 | Python | false | false | 971 | py | # 병약한 윤호 - G5
import sys
from collections import deque
def bfs():
que=deque()
que.append((0,0))
day=-1
order=0
while que:
size=len(que)
while True:
if size==0:
break
left, right=que.popleft()
if left+right<T:
... | [
"riverkeh@naver.com"
] | riverkeh@naver.com |
a5260f4c75d1782d5851bebe940fca53f07fce4d | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2751486_0/Python/viswabharathi/prob1.py | e936ba3450edac54600bc6b01b6579200d489771 | [] | 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 | 729 | py | t = int(raw_input())
for i in xrange(t):
name, n = raw_input().split()
n = int(n)
l = len(name)
tmp = 0
res = 0
start = 0
cstart = 0
for j, ch in enumerate(name):
if ch not in ('a', 'e', 'i', 'o', 'u'):
tmp += 1
else:
tmp = 0
cstart = ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
a54650b300fda35bc32be1b5af773c9e8c81720b | 181af10fcf40b824fe92d3b8f72fd15d6d1490c2 | /Contests/201-300/week 202/1552. Magnetic Force Between Two Balls/Magnetic Force Between Two Balls.py | 9e1e6d05fc8941b65b0940ab4af14bb1f0f32a08 | [] | no_license | wangyendt/LeetCode | 402c59a0b7b7f5b3a672231ea5dad8056ade36af | 4a3ba15284c45b2d8bf38306c8c8526ae174615c | refs/heads/master | 2023-08-10T06:27:54.995152 | 2023-08-10T02:22:27 | 2023-08-10T02:22:27 | 176,651,399 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: Wayne
@contact: wangye.hope@gmail.com
@software: PyCharm
@file: Magnetic Force Between Two Balls
@time: 2020/08/17 00:23
"""
class Solution:
def maxDistance(self, position: list, m: int) -> int:
n = len(position)
position.sort()
def co... | [
"905317742@qq.com"
] | 905317742@qq.com |
4ace3d37196da36960499f3b695393f79a07f88b | 1d69ab8bc1ae1cb7f576f11eafbd72f9b6032d76 | /one_off/watertest.py.bak | 354b7a363d8581560e1b9c143d8c5b9c46435234 | [] | no_license | FDI-IT/fd | d40271a8ba51908914bfefc7574d86e6dbdb0d90 | 862ec4bdf8da94a29856c11f35b5202af73017b7 | refs/heads/python2 | 2022-12-03T17:27:05.767487 | 2020-07-15T19:01:41 | 2020-07-15T19:01:41 | 221,480,272 | 0 | 0 | null | 2022-11-22T02:11:00 | 2019-11-13T14:39:10 | Python | UTF-8 | Python | false | false | 924 | bak | from haccp.models import WaterTest
from datetime import date
import random
from decimal import Decimal
start_date = date(2009,1,7)
delta = date(2009,1,14) - start_date
vacation_dates = (date(2009,12,30),date(2010,12,29),date(2011,12,28),date(2012,12,26))
def populate_results():
WaterTest.objects.all().delete()
... | [
"doofus1102@gmail.com"
] | doofus1102@gmail.com |
276172e148598912da58f9737d273252526d5dc8 | 7f1e0158e70b69bfa353661bfb2eabda9ee5c56c | /dnacentersdk/models/validators/v2_2_1/jsd_fe06867e548bba1919024b40d992.py | 6db535faef9734e104abbded4ca2bbe34a05cafe | [
"MIT"
] | permissive | Jerbuck/dnacentersdk | 97fb11844410ec7ab49aec35a30979d6288a87fd | ef2adde6113e7a6acd28a287007eb470fa39d31f | refs/heads/master | 2023-07-31T13:43:01.108243 | 2021-09-14T17:41:19 | 2021-09-14T17:41:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,121 | py | # -*- coding: utf-8 -*-
"""Cisco DNA Center SyncDevices data model.
Copyright (c) 2019-2021 Cisco Systems.
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 l... | [
"wastorga@altus.co.cr"
] | wastorga@altus.co.cr |
afdb4e602c32338a2e0552721dc3c14860833ca9 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/network/v20200401/get_local_network_gateway.py | 9c6a84c850459931be4dd4496034752ac1f109fa | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 7,651 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
c1baffca1113db80056ca413d53c5e5775d023d8 | 402cb8ac32c5ca7a53f5875688d1ebba1e96474b | /set41.py | 022632c87d78cc3aa65a3ee9f15eb2e24c5c22b5 | [] | no_license | Srija-U/codekataplayer | c073a13d8621f641a8aba8f23ebee4e1b673d58f | 392f24f35f178b034cfb76d2acc31bbc4b3a5814 | refs/heads/master | 2020-05-02T10:59:45.052802 | 2019-07-22T00:27:46 | 2019-07-22T00:27:46 | 177,914,184 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | class s:
def __init__(self):
self.items=[]
def push(self,data):
if(data==')'):
self.pop()
else:
self.items.append(data)
def pop(self):
self.items.pop()
def is_empty(self):
return self.items==[]
o=s()
l=str(input())
for i in range(0,len(l)... | [
"noreply@github.com"
] | Srija-U.noreply@github.com |
6bce468c5760cc045ca616e1d5138f454bd28843 | 9e204a5b1c5ff4ea3b115ff0559b5af803ab4d15 | /019 Remove Nth Node From End of List.py | 41529a7bd2c40f1bb47863031dffc9d358a8a34b | [
"MIT"
] | permissive | Aminaba123/LeetCode | 178ed1be0733cc7390f30e676eb47cc7f900c5b2 | cbbd4a67ab342ada2421e13f82d660b1d47d4d20 | refs/heads/master | 2020-04-20T10:40:00.424279 | 2019-01-31T08:13:58 | 2019-01-31T08:13:58 | 168,795,374 | 1 | 0 | MIT | 2019-02-02T04:50:31 | 2019-02-02T04:50:30 | null | UTF-8 | Python | false | false | 1,269 | py | """
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the linked list becomes 1->2->3->5.
Note:
Given n will always be valid.
Try to do this in one pass.
"""
__aut... | [
"zhangdanyangg@gmail.com"
] | zhangdanyangg@gmail.com |
5eca7cbd6d0508a7363e93d232e67393cf4c08ac | 2f0cb310e2ec8fb176ee240aa964a7eef5ed23b4 | /giico/giico/report/fuel_card_summary/fuel_card_summary.py | 229f2dfacad40fdcf6e938782dfe93c93ae34bb8 | [
"MIT"
] | permissive | thispl/giico | b96cf6b707f361275f8723d15f8ea1f95f908c9c | 14c5631639ab56a586a7962be9871d722c20e205 | refs/heads/master | 2021-06-18T03:56:02.928303 | 2021-04-27T06:42:59 | 2021-04-27T06:42:59 | 200,183,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | # Copyright (c) 2013, VHRS and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
def execute(filters=None):
columns, data = [], []
return columns, data
| [
"hereabdulla@gmail.com"
] | hereabdulla@gmail.com |
3eb75a3150a4dcc08540c10af5f332ba2603423b | 776c8a5821eb8cd1357439454c9c20c9da239afb | /November,2020~July,2021/2021-01-01/9273_이승민_정제천을팔자_시간초과.py | 141f915d871d9eea921da90528b080d83b9a24e8 | [] | no_license | JinYeJin/algorithm-study | 85d84a726e0f7bb78a2da37504bc04a42b3906ea | 538c911e6adcdad3bfed3d9f76ccb30804dfb768 | refs/heads/master | 2023-07-04T16:09:12.101837 | 2021-08-14T02:23:44 | 2021-08-14T02:23:44 | 272,363,049 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | # 정제헌을 팔자!
# 구현 아이디어 : n ** 2의 n까지의 약수의 개수를 구하기
import sys
input = sys.stdin.readline
def solution():
while 1:
arr = list(map(str, input()))
tmp = "".join(map(str, arr[2:]))
n = int(tmp)
cnt = 0
for i in range(1, n + 1):
if n ** 2 % i == 0:
cnt +... | [
"yeen0606@gmail.com"
] | yeen0606@gmail.com |
3ed1cf66d9c905bf48476a9373aa40591ee6fb9d | 6e6f97f416c06aada38c3a9db23eed7517bfaa6d | /accounts/migrations/0009_remove_profile_image_url.py | c34102ddb2e9e7f6d4d141d5c54b1eef76f1406d | [
"MIT"
] | permissive | ZendaInnocent/sogea | 1735ad047539c09a5c81e196a7a1963022452098 | 54cf257856cae451ad87e2396b8e44a34c0c6daf | refs/heads/main | 2023-08-23T07:18:45.741826 | 2021-10-28T13:19:06 | 2021-10-28T13:19:06 | 365,683,816 | 0 | 0 | MIT | 2021-05-09T06:29:57 | 2021-05-09T06:29:57 | null | UTF-8 | Python | false | false | 332 | py | # Generated by Django 3.1.7 on 2021-03-17 14:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0008_profile_image_url'),
]
operations = [
migrations.RemoveField(
model_name='profile',
name='image_url',
... | [
"medsonnaftal@gmail.com"
] | medsonnaftal@gmail.com |
d02f7c02234dae46ada1d4880986741d24acb10c | 9cdccd361d2cc778e049ec16008bc457ebaba8ad | /wef/wef/views/home.py | 40860b43c7da518eae00ae33f9afe37adb572616 | [
"MIT"
] | permissive | deadlylaid/book_connect | 2c41c713c63927df27436038c26eb37d70e8b099 | a024363ed1ab06fbb21a9b5da6a04eda9d7dfb35 | refs/heads/master | 2022-11-24T23:37:34.679963 | 2020-12-23T07:10:30 | 2020-12-23T07:10:30 | 63,302,135 | 6 | 0 | MIT | 2022-11-22T01:21:30 | 2016-07-14T04:25:18 | Python | UTF-8 | Python | false | false | 679 | py | from django.views.generic import View
from django.shortcuts import render
from django.contrib.auth.mixins import LoginRequiredMixin
from django.core.paginator import Paginator
from items.models import ItemPost
class Home(View):
def get(self, request):
page = 1
page_per = 5
paginator = ... | [
"deadlylaid@gmail.com"
] | deadlylaid@gmail.com |
a09ff0316844e058aee4a997839bbdf28553ea89 | f6a6a8b7c0af49bd86930adde8ffe9ba37950046 | /finitediff/grid/__init__.py | 8a4df96de566e58f26627e8143e6e5b44750045a | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bjodah/finitediff | 5cf65cfff94c85d5aa747c5b0616b93482d707ae | bfb1940cf5c7ce5c9a3b440d1efd8f8c4128fed8 | refs/heads/master | 2021-08-28T18:03:54.491501 | 2021-08-07T06:32:01 | 2021-08-07T06:39:34 | 14,988,640 | 34 | 5 | BSD-2-Clause | 2020-03-07T23:15:07 | 2013-12-06T17:10:24 | Python | UTF-8 | Python | false | false | 292 | py | from .rebalance import (
rebalanced_grid,
pre_pruning_mask,
combine_grids,
grid_pruning_mask,
)
from .refine import refine_grid
from .make import adapted_grid
from .util import locate_discontinuity, pool_discontinuity_approx, grid_error
from .plotting import plot_convergence
| [
"bjodah@gmail.com"
] | bjodah@gmail.com |
afb125cc33aca6fb089b34aaa288b914f5d698e8 | 70fa6468c768d4ec9b4b14fc94fa785da557f1b5 | /lib/surface/components/__init__.py | 66159453ab8e75d21f8d1020cb3956a276b8b50c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kylewuolle/google-cloud-sdk | d43286ef646aec053ecd7eb58566ab2075e04e76 | 75f09ebe779e99fdc3fd13b48621fe12bfaa11aa | refs/heads/master | 2020-04-20T22:10:41.774132 | 2019-01-26T09:29:26 | 2019-01-26T09:29:26 | 169,131,028 | 0 | 0 | NOASSERTION | 2019-02-04T19:04:40 | 2019-02-04T18:58:36 | Python | UTF-8 | Python | false | false | 3,929 | py | # -*- coding: utf-8 -*- #
# Copyright 2013 Google Inc. 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
2cf6fc96c940437aff1a27460dddfc56013ab7ec | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02889/s447377526.py | 0de588993a718a3aa4684f5ab46849141c2ffbf5 | [] | 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 | 963 | py | from scipy.sparse.csgraph import floyd_warshall
N,M,L = list(map(int, input().split()))
edges = [[0] * N for _ in range(N)]
for _ in range(M):
A,B,C = list(map(int, input().split()))
edges[A-1][B-1] = C
edges[B-1][A-1] = C
Q = int(input())
queries = []
for _ in range(Q):
queries.append(list(map(int... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ed84a635a4f264bedf8b43ef13bfdacf1f117a89 | 18783303fec404a4386c8ed0a8b8737c1424eadd | /Py exercises/IffyKeysValues_inalist.py | 2f4f2f342c53dca71a059ea0222cdfc45a995d94 | [
"MIT"
] | permissive | arvindkarir/python-pandas-code | a5b23b724c387d5ff745e017f968681847c506ad | fb3b68f07f0438cd0ef6d7ad669ce78650d884a8 | refs/heads/master | 2020-08-13T02:05:16.469398 | 2019-10-23T02:18:10 | 2019-10-23T02:18:10 | 214,887,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | # it generates a dictionary with keys and values, still need to figure out
import random #a standard library module
def someList(numBuckets):
buckets = []
dictKey = 0
dictVal = 0
for i in range(numBuckets):
buckets.append([])
#print(buckets)
for i in range(20):
dictKey = random... | [
"arvindkarir@gmail.com"
] | arvindkarir@gmail.com |
25c778bb93b1774fe789a08191b367d0cdeceb2b | abacbf9798f089cd43fd50c2d577de50cca806d8 | /venv/Lib/site-packages/example/webalone/migrations/versions/060a77af98e5_initial.py | 051775fdf12e92177407e2b75bdcd612686b8d77 | [] | no_license | Sarveshr49/ProInternSML | f2bfd82905dd185d82830d4758d69ee2b23f71fb | 2ac09e31ebe54dbecd46935818b089a4b8428354 | refs/heads/master | 2023-08-11T17:36:16.387236 | 2021-10-16T18:23:04 | 2021-10-16T18:23:04 | 373,503,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,466 | py | """initial
Revision ID: 060a77af98e5
Revises:
Create Date: 2016-04-20 08:54:54.125614
"""
# revision identifiers, used by Alembic.
revision = '060a77af98e5'
down_revision = None
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
import odm
import odm.types
def upgrade(engine_... | [
"sarveshragade@gmail.com"
] | sarveshragade@gmail.com |
f9d339753695d27f8f5ee038d683f7d5953ca007 | 8c02ce5c53c99d2036685d81e60a6506ce87347c | /tests.py | a5c57797d55aaba8fe954f1832ea405e233a548e | [
"MIT"
] | permissive | tonyseek/flask-misaka | fcb180e4fc44cbd600f5eaecea86119f81bc5ff9 | 9941a5ed770325c884fced429efc6bbc494f7261 | refs/heads/master | 2020-12-03T05:21:16.213025 | 2013-08-29T04:19:48 | 2013-08-29T04:19:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,305 | py | from flask import Flask, render_template_string, Markup
from unittest import TestCase
import mock
import misaka
from misaka import (EXT_AUTOLINK, EXT_FENCED_CODE,
EXT_LAX_HTML_BLOCKS, EXT_NO_INTRA_EMPHASIS, EXT_SPACE_HEADERS,
EXT_STRIKETHROUGH, EXT_SUPERSCRIPT, EXT_TABLES, HTML_ESCAPE,
HTML_EXPAND_TABS, HT... | [
"david@davidbaumgold.com"
] | david@davidbaumgold.com |
a7b128e2ceda284f59e9a1fab21f774ce6c065d8 | 668a956d20eabae835a90b2d688f2232707e53d5 | /day18/untitled1/website/migrations/0001_initial.py | 732c12c19a989b2e4d383f06d92ee3e2ab72bac9 | [] | no_license | cq146637/The_front_background | e476c85dfa50cb181f350a5c36e241256637b500 | fefb3db705fe311022568619eb9e006c83b2eaf2 | refs/heads/master | 2021-08-31T23:04:27.298570 | 2017-12-23T09:22:51 | 2017-12-23T09:22:51 | 114,733,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-11-04 07:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='UserIn... | [
"1016025625@qq.com"
] | 1016025625@qq.com |
464e20ba504d56b1908b9d7160f72647b6baa3a5 | dd9a9649c6c82e1decaf4d2ea56c198b18cdd395 | /api/views.py | 9e6090589a87c02eb45be05750e9b6ed880cefdb | [] | no_license | srrobin/rest-framework-project | e56d2523e8d23109b308bfe8b6ea4bd0511b9da9 | d3050216b0f2cd9c81ad4dc57aa468cc6e007b0a | refs/heads/master | 2020-11-24T15:26:26.462369 | 2019-12-15T16:54:47 | 2019-12-15T16:54:47 | 228,215,569 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | from rest_framework import generics,permissions
from quote.models import QuoteList
from quote.models import QuoteCategory
from .serializers import QuoteSerializer
from .serializers import QuoteCategorySerializer
class QuoteAPIView(generics.ListAPIView):
permission_classes =(permissions.IsAuthenticated,)
que... | [
"you@domain.com"
] | you@domain.com |
f923ced813c51ae62ed4fb7fb339dade9a332ae9 | 35cf6fc79b8d6c335add8e55e0f4dca6f2816d1d | /Python_Study/第三模块学习/Shool_CRM/bin/start.py | 1bce8f2e71d6509dc9737bf36539adace09d8bde | [] | no_license | KongChan1988/51CTO-Treasure | 08b4ca412ad8a09d67c1ea79c7149f8573309ca4 | edb2e4bd11d39ac24cd240f3e815a88361867621 | refs/heads/master | 2021-07-04T15:57:56.164446 | 2019-07-24T15:28:36 | 2019-07-24T15:28:36 | 97,453,749 | 5 | 8 | null | 2019-10-30T22:05:12 | 2017-07-17T08:34:59 | Python | UTF-8 | Python | false | false | 250 | py | #-*- Coding:utf-8 -*-
# Author: D.Gray
import os,sys
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
print(BASE_DIR)
sys.path.append(BASE_DIR)
from core import core
if __name__ == '__main__':
a = core.Conter()
a.run() | [
"wangwei_198811@163.com"
] | wangwei_198811@163.com |
434a48e868ae18d561bb5d11ae4e5b288a8152da | c67029032e5f35eaae448d601d8cb870fd2b2953 | /WeatherApp/weather/migrations/0001_initial.py | 7fc72879a9963b8494cd28f9e4794ab6f4640218 | [
"MIT"
] | permissive | VToropov1337/django_weather | c6be2a882ed3a096e3df394acc143fdfa8f798d3 | 936637578f52679d6b79becc77372055dad6008f | refs/heads/master | 2020-12-04T20:00:13.632506 | 2020-01-05T12:47:06 | 2020-01-05T12:47:06 | 231,887,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | # Generated by Django 3.0 on 2020-01-05 10:14
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='City',
fields=[
('id', models.AutoField(auto_... | [
"vladimirtoropov87@gmail.com"
] | vladimirtoropov87@gmail.com |
dce5f9b2ef6fb2aa4b68de8e9b42a8e58f0c7336 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03786/s612653284.py | 3f76c3a440685a6568c77eac0ac77920bf2a28d3 | [] | 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 | 199 | py | n = int(input())
a = sorted(list(map(int,input().split())))
cur = a[0]
count = 1
for i in range(1,n):
if a[i] <= cur*2:
count += 1
else:
count = 1
cur += a[i]
print(count) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e4c365971bff3e2af3483a510bf04d821556aff0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/309/106184/submittedfiles/jogoDaVelha_BIB.py | 46e2792cb92d6791a026e2704a7844089d936447 | [] | 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 | 4,444 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from random import randint
# autenticação do simbolo para a jogada humano
def solicitaSimboloDoHumano():
# nome=input('Qual seu nome(ou apelido)? ')
simbH= (input("\nQual o simbolo que você deseja utilizar no jogo? "))
while simbH!="X" and simbH!="O" an... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d9596a089de2fc79e1fc2156fb5fe244e800b3a3 | d06f9135fd0f42e59df4c91324cd22124a3486d7 | /Study_Groups/mapper.py | 8ac83c84dbee973eb3f0421b64d8367921a97844 | [] | no_license | jlyang1990/MapReduce | 7546599afaa9b8366e02a0724a6b77cc46149b30 | d01a4d7c4e12e0c77ff820fb2a20a9210c9ce3b0 | refs/heads/master | 2020-06-13T16:56:10.008429 | 2016-12-05T08:16:33 | 2016-12-05T08:16:36 | 75,523,296 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | #!/usr/bin/python
"""
In this exercise your task is to write a mapreduce program that for each forum thread (that is a question node with all it's answers and comments)
would give us a list of students that have posted there - either asked the question, answered a question or added a comment.
If a student posted to ... | [
"jlyang@ucdavis.edu"
] | jlyang@ucdavis.edu |
1ddfcadb90f807f864cbfd5f09862558cbbcd387 | 8839bd1f2e35726b6c8066985690fa2fa86b09a6 | /5.pyAI-K210/5.项目应用/2.视频播放/video_play.py | 8f0972098bff92c05d8d2969bc4f8bdbdf482f2a | [
"MIT"
] | permissive | elektrik-elektronik-muhendisligi/MicroPython-Examples-1 | a9532b06aba470f7f26f841929f4fb145549f70b | f7b08e95ff73e3417af21918c9c6bcf2f83281c6 | refs/heads/master | 2021-05-25T22:58:36.207098 | 2020-04-01T09:50:53 | 2020-04-01T09:50:53 | 253,956,073 | 1 | 0 | null | 2020-04-08T01:39:46 | 2020-04-08T01:39:45 | null | UTF-8 | Python | false | false | 807 | py | '''
实验名称:视频播放器
版本:v1.0
日期:2019.12
翻译和注释:01Studio
说明:AVI视频播放。
'''
import video,time
from Maix import GPIO
from board import board_info
from fpioa_manager import fm
import lcd
lcd.init()
# 音频使能IO
AUDIO_PA_EN_PIN = 32
#注册音频使能IO
if AUDIO_PA_EN_PIN:
fm.register(AUDIO_PA_EN_PIN, fm.fpioa.GPIO1, force=True)
#注册音频控制IO... | [
"237827161@qq.com"
] | 237827161@qq.com |
cddcb6fcda2ccfcf7c8853049983101c62c2c2c7 | 739e91039c05943352a3fc07e768641f74097482 | /Python_self/Binary_Tree.py | 9b0dcbbdfde156b128cf02239d2a618ab114eadf | [] | no_license | doublejy715/Problem-Solve | 651182079ded1a9da3478dd30a4c4507894de85e | 57d5a672a48103769c8cc022cb7132d988624600 | refs/heads/master | 2023-07-13T09:51:23.145427 | 2021-08-31T04:35:04 | 2021-08-31T04:35:04 | 234,250,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,212 | py | '''
트리는 변수를 head를 가진다 root node이다.
기본적으로 이진트리는 링크드 리스트로 형성 할 수 있다.
기본적으로 노드 형성 클래스와 트리 클래스로 나누어서 생각한다.
1. class node
data, left, right
2. class tree
insert
search(종류 : DLR)
delete
'''
class Node():
def __init__(self,value):
self.value = value
self.left = None
self.right = No... | [
"doublejy715@gmail.com"
] | doublejy715@gmail.com |
025ee506dce791e2417711b08ae51f16ccd15efc | 757aace69943122a21b1fac07ea43199e2ca1228 | /lib/python3.5/site-packages/launch/__init__.py | 39e23c9c10ac1f5300733afa7dbe86a03992527d | [] | no_license | iamsile/ros2-for-os | f9faa522b2f17f04e07de88a6053599fa9a987bc | a83f66a6a34ec9ec969b54194e3bdd32d5b9d092 | refs/heads/master | 2021-01-20T16:31:05.458482 | 2017-06-29T02:00:48 | 2017-06-29T02:00:48 | 95,727,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | # Copyright 2015 Open Source Robotics Foundation, Inc.
#
# 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... | [
"longxian.tw@alibaba-inc.com"
] | longxian.tw@alibaba-inc.com |
19b1eac27cf2de891f0469d21918d872855415a4 | 5c0c0176db0ccf2c24b6b5ed459a8dc144518b13 | /examples/nas/naive-tf/train.py | f2b2062a8954ca01b8b6e9ef11b2dfe99ca3e815 | [
"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 | 2,663 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import tensorflow as tf
from tensorflow.keras import Model
from tensorflow.keras.layers import (AveragePooling2D, BatchNormalization, Conv2D, Dense, MaxPool2D)
from tensorflow.keras.losses import Reduction, SparseCategoricalCrossentropy
from tens... | [
"noreply@github.com"
] | petuum.noreply@github.com |
aeec0d323c820ebcbab293cfab36ab3d59368f88 | 3537265c1b60f0c0eb06d165a0b5779438fc698c | /py/vision/test1/visionlib.py | d1c1136cad4cce4ea52424fc24b104b74f284547 | [
"MIT"
] | permissive | iqihao/mabo.io | f864ba3e158d8c6ee113dd8c0ae8708cae86e9d1 | 7f646db9d5ee3cd0b137866bf8eaf295890f134c | refs/heads/master | 2021-05-30T12:59:56.723936 | 2016-02-10T23:45:36 | 2016-02-10T23:45:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py |
import itertools
import cv2
import numpy as np
def findKeyPoints(img, template, distance=200):
""" find key points in image """
# SIFT
FEATURE_DETECTOR = "SIFT" #"SURF" # "SIFT"
detector = cv2.FeatureDetector_create(FEATURE_DETECTOR)
descriptor = cv2.DescriptorExtractor_create(FEATURE_DETEC... | [
"aidear@163.com"
] | aidear@163.com |
f1583880f8ed6f14fca3054e147fec9973b07d2a | 096dc9b83f9f8764cbd92f628f215d34b4bab4d5 | /src/11/simple_communication_between_interpreters/echoclient.py | 96fc37158b72a9ab6493fd50f1d1c6cb059b4ef9 | [] | no_license | pyarnold/python-cookbook | 18ceecec5a728d88ea9065bb1b2323e59df686a1 | ef8a32741d4571b75d995637a8b2edc3b85a2859 | refs/heads/master | 2021-01-21T09:29:34.998385 | 2014-03-19T14:57:17 | 2014-03-19T14:57:17 | 17,908,202 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from multiprocessing.connection import Client
c = Client(('localhost', 25000), authkey=b'peekaboo')
c.send('hello')
print('Got:', c.recv())
c.send(42)
print('Got:', c.recv())
c.send([1, 2, 3, 4, 5])
print('Got:', c.recv())
| [
"dave@dabeaz.com"
] | dave@dabeaz.com |
fc92399aa42aec6f5c79201431a31e094a729032 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03377/s172991411.py | d2919c59254b5b5c249175befd8776cdf3a52de3 | [] | 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 | 166 | py | def main():
a,b,x = map(int, input().split())
if a<=x and x<=a+b:
print('YES')
else:
print('NO')
if __name__ == '__main__':
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2bf27f22ff1a3a923f49193f02937201c8afebdf | 3f2d1c68d07dd6677bc19c559b1960ca5fef6346 | /tensorbord/train.py | 6a734e1fb8529e6c98a51c56d939fe1312206302 | [] | no_license | 213584adghj/ml | 6ffcf732377dabda129990e3a89468e18dd2700c | f73080e13c4a1c6babe0229bdb939eb3a7f988b6 | refs/heads/master | 2021-03-13T23:22:41.981534 | 2020-03-12T01:59:21 | 2020-03-12T01:59:21 | 246,720,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,684 | py | # coding: utf-8
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
class train(object):
def __init__(self):
with tf.name_scope('input'):
# 定义两个placeholder
self.x = tf.placeholder(tf.float32, [None, 784], name='x-input')
self.y = tf.placeh... | [
"you@example.com"
] | you@example.com |
51a886388078a4d3e2a0dbdcf134e56b1993c5af | 26cd3fc39f99b74c2741dcbac0d2fed0098d2deb | /thorpy/elements/slidersetter.py | 22b4d5a12c423ed038b9097b61e2fc5154df2817 | [
"MIT"
] | permissive | YannThorimbert/Thorpy-1.4 | b35c4293ba389e13fb7a2691543f9de7030d3f20 | 8dfc5f2fd047ae39c2c8aac1e23326be6152663b | refs/heads/master | 2021-04-09T17:12:34.356309 | 2015-05-11T20:53:18 | 2015-05-11T20:53:18 | 35,449,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,006 | py | from thorpy.elements.slider import SliderX
from thorpy.elements.element import Element
from thorpy.miscgui import functions, style, painterstyle
class SliderXSetter(SliderX):
"""Like a slider, but has a get_value method"""
def __init__(self,
length,
limvals=None,
... | [
"yann.thorimbert@gmail.com"
] | yann.thorimbert@gmail.com |
170ab9e04c87704324e5667f1c73ce9e974a7587 | 4015291afebfd346da3fee4b1d5a775882b5b461 | /services/director-v2/tests/unit/test_models_dynamic_services.py | 03c9084f24b2632efd11873930d77a10d59eb40f | [
"MIT"
] | permissive | pcrespov/osparc-simcore | 3a8a6b5252038542f515c7e90d983ac6f1fb4de7 | eb5e00bc2cf4acfe81f5dc422a5e50a4646c9596 | refs/heads/master | 2023-08-06T04:33:38.594066 | 2023-07-12T09:47:00 | 2023-07-12T09:47:00 | 130,357,545 | 0 | 1 | MIT | 2023-04-18T08:04:27 | 2018-04-20T12:10:41 | Python | UTF-8 | Python | false | false | 6,964 | py | # pylint: disable=redefined-outer-name
import string
from collections import namedtuple
import pytest
from simcore_service_director_v2.models.schemas.dynamic_services import (
RunningDynamicServiceDetails,
SchedulerData,
ServiceBootType,
ServiceState,
)
from simcore_service_director_v2.models.schemas.d... | [
"noreply@github.com"
] | pcrespov.noreply@github.com |
a8669f9772872cd6be435f83a6f58da83cd2299d | 9433ce01c6e2906c694b6f0956a4640e1872d4d2 | /src/main/python/wdbd/codepool/sqlalchemy/user_dept.py | 7e8675698dd3166725d47b7f79533e7a1752a3b7 | [] | no_license | shwdbd/python_codepool | fcd7950fc1339994186461ae18c34cee238938ee | 92a4fb61d060f9a545499b6b7f99a4dc211d5009 | refs/heads/master | 2023-02-20T19:49:23.677824 | 2022-06-15T08:53:51 | 2022-06-15T08:53:51 | 209,431,254 | 0 | 1 | null | 2023-02-15T21:58:53 | 2019-09-19T00:56:03 | Python | UTF-8 | Python | false | false | 5,924 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : user_dept.py
@Time : 2020/02/09 14:03:54
@Author : Jeffrey Wang
@Version : 1.0
@Contact : shwangjj@163.com
@Desc : 用 员工、部门 为例子,实现ORM基本操作
'''
from sqlalchemy import Column, String, Integer
from sqlalchemy.orm import sessionmaker
from sqlal... | [
"shwangjj@163.com"
] | shwangjj@163.com |
4b828290eeedaeeb5c56247fb70f45bd34cdc8cb | d8ac6dc1fafbca669ac14d3cd9549eba2d503bc4 | /plot.py | 801ebc284e0ceccacbde992cf0ad3f8fabbf5192 | [] | no_license | mattvenn/visa-tek | 34951f05a37fdcc1ad8c0a2dc153b90c5fedd958 | eac2ca584a33e0ab6f739462d30f1a41faa542f9 | refs/heads/master | 2020-06-10T21:12:57.832578 | 2020-02-27T14:20:54 | 2020-02-27T14:20:54 | 193,749,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | #!/usr/bin/python3
import matplotlib.pyplot as plt
import csv
def load(filename):
freq = []
amp = []
count = 0
with open(filename) as fh:
reader = csv.reader(fh)
for row in reader:
freq.append(float(row[0]))
amp.append(float(row[1]))
return freq, amp
def pl... | [
"matt@mattvenn.net"
] | matt@mattvenn.net |
c31b9da1d8505959099df9656b61afd7122f1140 | 33f81c4f22df664de162339f685f1e25a38a50fc | /apps/analytics/mixins.py | 5db5bc6ed82bacab74d3c44afbae9e94418f3431 | [] | no_license | SimonielMusyoki/PythonEcommerce | 1c96f43ff191e3b5aff488c7d53501dd64c2eaf1 | 94583f4162c899373987acba56f2e34d6e91be3b | refs/heads/master | 2023-04-27T05:01:11.142119 | 2023-04-20T08:32:01 | 2023-04-20T08:32:01 | 199,605,797 | 1 | 0 | null | 2023-04-18T14:47:23 | 2019-07-30T08:08:53 | Python | UTF-8 | Python | false | false | 449 | py | from .signals import object_viewed_signal
class ObjectViewedMixin(object):
def get_context_data(self, *args, **kwargs):
context = super(ObjectViewedMixin, self).get_context_data(*args, **kwargs)
request = self.request
instance = context.get("object")
if instance:
object... | [
"musyoki.mtk3@gmail.com"
] | musyoki.mtk3@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.