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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2a9ec919aa12c00f7699703cd9f9a960cd3df308 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03696/s927043333.py | 8af9a814da95dcba853bbf295beefd9db08be572 | [] | 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 | 131 | py | n = input()
s = input()
ss = s
for i in range(50):
s = s.replace('()','')
l = s.count(')')
r = s.count('(')
print('('*l+ss+')'*r) | [
"[email protected]"
] | |
d1d76cd6e4cb3c8a367de07f3c437ae79778c91d | f8d3f814067415485bb439d7fe92dc2bbe22a048 | /models/research/differential_privacy/pate/ICLR2018/smooth_sensitivity_table.py | 4ea0a7f5a9b072437eded0fb6fc00d919ef95d9e | [
"Apache-2.0"
] | permissive | gmonkman/python | 2f9ab8f159c01f6235c86cb0cd52062cd3fdedd3 | 9123aa6baf538b662143b9098d963d55165e8409 | refs/heads/master | 2023-04-09T15:53:29.746676 | 2022-11-26T20:35:21 | 2022-11-26T20:35:21 | 60,254,898 | 0 | 2 | null | 2023-03-24T22:58:39 | 2016-06-02T10:25:27 | Python | UTF-8 | Python | false | false | 14,228 | py | # Copyright 2017 The 'Scalable Private Learning with PATE' 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
#
# ... | [
"[email protected]"
] | |
4f1483114b60a70f6e62341fea4736adc8e4abbf | 35f9695acb95029f2dd87a2cc214b0b34935de17 | /update.py | 9f4da1693c181b6386fe9b140233603190f5e838 | [
"BSD-3-Clause"
] | permissive | dragonix11/aurdiff | b5382e7fd38f4d2c370ad157fcaf18d8ba48c0d9 | b4ffdb2afcd30cac7cf24ca42fab0f0cdc7130e0 | refs/heads/master | 2021-01-18T18:43:29.145163 | 2013-11-10T10:19:26 | 2013-11-10T10:19:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,337 | py | # Copyright 2013 Virgil Dupras (http://www.hardcoded.net)
#
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package.
import os.path as op
from urllib.request import urlopen
import subprocess
import json
from bs4 import BeautifulSoup
HERE =... | [
"[email protected]"
] | |
2c2f2040fde54d6c77504275f121070bd8c62399 | f67469cba32f16399ef2e65d2731c5eae36a53b3 | /config/settings/base.py | 0fc9bcb527d5fe44323aef0ac7bfc93b4daf6ca8 | [
"MIT"
] | permissive | ZedeLab/WhatsUpAddis-BE | 1f3fecc9c5705eca500f13aa5a831fcf81fb5faf | 702d14eff969673ce88dbd6f4cad690cbb580c30 | refs/heads/master | 2023-04-06T03:53:57.537028 | 2018-11-30T21:54:24 | 2018-11-30T21:54:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,476 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 2.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
fro... | [
"[email protected]"
] | |
f9d5e2852c279495088d3720a464eafb1411bdd6 | 0607fa7255fa47608407b3cfd819e83d55ba9eab | /InvenTree/stock/views.py | 26a957a64403ad18198d94f4949cfe424beec2bd | [
"MIT"
] | permissive | IsThisNameGoodEnough/InvenTree | f7d71aa8c33f69654b2bb4d3827d4a60290df8ad | fa789036e0ae7d56ced3c9e1f2d2ff596983a365 | refs/heads/master | 2020-07-26T02:31:34.316571 | 2019-09-13T14:14:45 | 2019-09-13T14:14:45 | 208,505,299 | 0 | 0 | MIT | 2019-09-14T21:20:24 | 2019-09-14T21:20:24 | null | UTF-8 | Python | false | false | 31,264 | py | """
Django views for interacting with Stock app
"""
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.core.exceptions import ValidationError
from django.views.generic.edit import FormMixin
from django.views.generic import DetailView, ListView
from django.forms.models import model_to_dict
fro... | [
"[email protected]"
] | |
7c31f7d64627e78b8f3832a823a1b501d4c78424 | 48e1cf7a4a39df57a38246da1f67f3f4dc8f2020 | /With_Sql/main/buy_product_form.py | 59abb15f507001600bb719ae5117f96c258b1c99 | [] | no_license | mdarifulislamroni21/django_website | 601d1d0e5422419895363968a0f4d1c50dfd9daa | 28562e3e8f07ddac49057eba07411f05b08918ff | refs/heads/master | 2023-06-23T22:30:32.317834 | 2021-07-23T04:25:37 | 2021-07-23T04:25:37 | 388,668,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from django import forms
from main.models import user_details
#create New Form
class user_details_connect(forms.ModelForm):
class Meta:
model=user_details
fields="__all__"
widgets={
'buydate':forms.TextInput(attrs={'type':'date'}),
'product':forms.TextInput(attrs={'pl... | [
"[email protected]"
] | |
7faecae779bde3911e044903901c3c9069dfa309 | 4fdaee9f2612a8c429991a2042dffcee80e7a641 | /rootfs/qboxhd/rootfs/usr/local/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/__init__.py | dc8dd57b592a450dadd83765c112f3da212d8dfb | [] | no_license | OpenSH4/qboxhd | 841072db3b0eaecdcac116b5f96268d47115cdec | 91dd37a5311b5c53fb088ab0ce902ee49552ece0 | refs/heads/master | 2020-09-07T17:55:36.114816 | 2012-01-08T21:33:02 | 2012-01-08T21:33:02 | 220,866,062 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | # -*- coding: ISO-8859-1 -*-
#===============================================================================
# NetworkBrowser and MountManager Plugin by acid-burn
# netscan lib by Nix_niX
# for further License informations see the corresponding License files
# or SourceCodes
#
#========================================... | [
"duopaguilar@0410bcea-ab32-4fec-9f21-c18eae94034e"
] | duopaguilar@0410bcea-ab32-4fec-9f21-c18eae94034e |
c6fe6443ef899c8ed96248028a7916f6110ff9bd | 8e2fa36281924fd28327a49d83f9855c6ff0c619 | /photod-backend/photod/api/urls.py | 254dfe2cbae9365ac31db41010e200dc82289133 | [
"MIT"
] | permissive | basilfx/Photod | 10a7ba9200b7337f01bd2f3ad857caa5b6797b7c | 0056a07e39b61e2f3b1c94f1309917dd8b24b654 | refs/heads/master | 2023-08-23T17:16:48.646493 | 2017-08-15T18:37:59 | 2017-08-15T18:37:59 | 98,336,863 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | from django.conf.urls import url
from django.conf import settings
from django.views.decorators.csrf import csrf_exempt
from graphene_django.views import GraphQLView
urlpatterns = [
url(r'^graphql', csrf_exempt(
GraphQLView.as_view(graphiql=settings.DEBUG)
)),
]
| [
"[email protected]"
] | |
cca1348bd5f51fdecc2aa6f2960bc326a23a307d | 2b3e9b32a38f4992c529de56b4baa51e1a674c4e | /ccui/attachments/models.py | 787f5715353a1411f0f00595a423e5a97c5b968d | [] | no_license | camd/caseconductor-ui | 2c4f63fd6c20ee421012d8770b3b873c1b4f4232 | deb6b22ed417740bf947e86938710bd5fa2ee2e7 | refs/heads/master | 2021-01-18T05:36:22.647236 | 2011-10-10T14:48:29 | 2011-10-10T14:48:29 | 2,447,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | from ..core.api import RemoteObject, ListObject, fields, Named
from ..static.fields import StaticData
class Attachment(Named, RemoteObject):
name = fields.Field()
description = fields.Field()
url = fields.Field()
size = fields.Field()
attachmentType = StaticData("ATTACHMENTTYPE", "attachmentTypeI... | [
"[email protected]"
] | |
d98640284ad3872cd54920e573886ae38180dbb4 | a9c0daa4a7b9a4d7341afcab270c5b5debb8c13f | /env/bin/easy_install | d376d9adfa89d50b9a0aa01da0885b7db2560bbc | [] | no_license | phamcong/alienator-plf | bad8c4e003fd189c43243b31ef2b975b6f154754 | ea65628af66fbca51f2248ceb4ba93f858dbddce | refs/heads/master | 2022-11-26T01:28:38.286261 | 2017-11-07T15:12:08 | 2017-11-07T15:12:08 | 109,412,097 | 0 | 1 | null | 2020-07-25T23:43:17 | 2017-11-03T15:30:22 | JavaScript | UTF-8 | Python | false | false | 283 | #!/Users/cuongpham/Data/Coding/ALIENNOR/aliennor-plf/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"[email protected]"
] | ||
f68897246e241e33ad3e985789afccfa8577f59c | 29d9a947fc954e5d182cb2d8292f96c0d27cdde0 | /apps/xrayuploader/advanced_search.py | cb2331799ae21142d69e1f13dec228b6e0b9caf3 | [
"Apache-2.0"
] | permissive | slogan621/tscharts | 43ee950a76323a8b99a8ab88743f2e5e5a1e6f42 | 034e661c3f4739f1dc04b3aef096e6bf6cf6e8d3 | refs/heads/master | 2023-08-10T19:04:50.317820 | 2023-07-29T21:03:27 | 2023-07-29T21:03:27 | 55,322,748 | 25 | 10 | Apache-2.0 | 2023-07-08T20:32:54 | 2016-04-03T00:35:37 | Python | UTF-8 | Python | false | false | 2,491 | py | # advanced_search.py
import wx
from pubsub import pub
class AdvancedSearch(wx.Panel):
def __init__(self, parent):
super().__init__(parent)
self.main_sizer = wx.BoxSizer(wx.VERTICAL)
self.free_text = wx.TextCtrl(self)
self.ui_helper('Free text search:', self.free_text)
... | [
"[email protected]"
] | |
41753a82068da0014a137032c5c1e406e6f0b79c | e7c03b71f26c463b2670c52cd2fddbc198e3c8cb | /apps/webhooks/signals.py | ce67cc1fc3c8fd8ae1badfe76adf4620eba30505 | [] | no_license | nerosketch/djing2 | 71cc96f4829fc047d788dd7d8a94f1035e9740f9 | 1fbb0941f26389cbfdc8015527ab0d426c2e2c01 | refs/heads/master | 2023-01-13T15:12:50.492646 | 2022-11-18T11:24:21 | 2022-11-18T11:24:21 | 196,469,351 | 7 | 3 | null | 2020-02-29T19:38:37 | 2019-07-11T21:50:34 | Python | UTF-8 | Python | false | false | 2,516 | py | import sys
from typing import Optional, Any
from django.dispatch import receiver
from django.db.models.signals import (
post_save, post_delete,
pre_save, pre_delete
)
from rest_framework.serializers import ModelSerializer
from webhooks.models import HookObserverNotificationTypes
from webhooks.tasks import send_... | [
"[email protected]"
] | |
3f2430aec993d53a12bf2b286d2c6e954df75aa9 | 07bd1848e35bbb75ef4d23f1982af618aa176852 | /chap08/list0801.py | 61d7b443504731e273a6c346de2ce224320e8385 | [] | no_license | kimurakousuke/MeiKaiPython | c0b56be8fcb79b39b0c8364e71e2da76eab613fe | 674f6001060f56cf55e3d7336e6e4ca5f135beaf | refs/heads/master | 2021-02-22T13:01:53.397290 | 2020-03-07T11:19:10 | 2020-03-07T11:19:10 | 245,377,717 | 1 | 0 | null | 2020-03-06T11:16:16 | 2020-03-06T09:22:53 | Python | UTF-8 | Python | false | false | 563 | py | # 元组的列表(所有元素都是元组的列表)
students = [
(2012, '福冈太郎'),
(2013, '长崎龙一'),
(2011, '熊本纹三'),
]
print('students =', students)
print('students[0] =', students[0])
print('students[1] =', students[1])
print('students[2] =', students[2])
print('students[0][0] =', students[0][0])
print('students[0][1] =', s... | [
"[email protected]"
] | |
96b99049010ef96d63f9812089561f63157f7727 | d9517b7c8bf044778763245b52461acd9e301399 | /parsers.py | b6a3a9cabdd014bbc08af4957996032163731acb | [] | no_license | IIKovalenko/otus_avito_bot | 300c7727167b5c84b8e33c8181631689ba7aa532 | abfc5ac723eb93b49eefa05ef16833b27388a7ef | refs/heads/master | 2020-06-02T12:47:14.104364 | 2018-01-17T18:43:43 | 2018-01-17T18:43:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | import bs4
def parse_html_page(response_text):
return bs4.BeautifulSoup(response_text, 'html.parser')
def parse_avito_results_page_for_prices(soup):
descriptions = soup.find_all('div', {'class': 'description'})
prices_wrappers = [
d.find('div', {'class': 'about'}) for d in descriptions
]
... | [
"[email protected]"
] | |
c6f76eb5503fb4a9a7c9ab83f8bd10aa3fbb381b | 94594cb9b7e48cf4a66d8564589a9d7981a89dac | /loader.py | 984fa3b4f768e8646d8c167cf6c091fc99ec178c | [] | no_license | xal9wiii4ik/parse_freelance_bot | 26d1d6a2c0257a320288fcc0ab87d3b6d327eb79 | 49db047b74888265f01036e467d084be5ce20fda | refs/heads/master | 2023-04-02T08:58:25.581354 | 2021-04-08T21:54:18 | 2021-04-08T21:54:18 | 324,841,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | import asyncio
from aiogram import Bot, Dispatcher, types
from aiogram.contrib.fsm_storage.memory import MemoryStorage
from data import config
from data.config import PARSER_DB
from utils.db_api.categories_command import CategoriesCommands
from utils.db_api.costs_commands import CostsCommands
from utils.db_api.paymen... | [
"[email protected]"
] | |
a2c44e6d2ae1253ca3397bc6d37ed63c68b22265 | 3f28b697f570ded0502de70c706200005ab62525 | /env/lib/python2.7/site-packages/scipy/spatial/distance.py | e436acec62f09cbc2243b94def99500b3a1e24a1 | [
"MIT"
] | permissive | Ram-Aditya/Healthcare-Data-Analytics | 5387e41ad8e56af474e10fa2d1c9d8a2847c5ead | d1a15d2cc067410f82a9ded25f7a782ef56b4729 | refs/heads/master | 2022-12-09T12:49:59.027010 | 2019-11-23T20:10:55 | 2019-11-23T20:10:55 | 223,639,339 | 0 | 1 | MIT | 2022-11-22T00:37:48 | 2019-11-23T19:06:20 | Jupyter Notebook | UTF-8 | Python | false | false | 74,146 | py | """
=====================================================
Distance computations (:mod:`scipy.spatial.distance`)
=====================================================
.. sectionauthor:: Damian Eads
Function Reference
------------------
Distance matrix computation from a collection of raw observation vectors
stored in... | [
"[email protected]"
] | |
45778cfc1bbbd390bda742a7966334f7c5947b65 | 695bfbc92a1474a29270d46c7b4ae2805240b077 | /ch-02/09-MultilayerNeuralNetwork-blind-1.py | 195b75302a420f7861e71ae399207bba4e5d6e5b | [] | no_license | paulhendricks/python-machine-learning | 801563275e05fb1f611e9114581c5ef2f7b58125 | 8e1cb6bc37067cc239eaee69fd8aa13ffa405b68 | refs/heads/master | 2021-01-19T04:25:30.002300 | 2016-06-13T15:25:31 | 2016-06-13T15:25:31 | 50,059,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | import numpy as np
X = np.array([[0, 0], [0, 1], [1, 0], [1, 1]])
y = np.array([[0, 1, 1, 0]]).T
synapse_0 = 2 * np.random.random((2, 10)) - 1
synapse_1 = 2 * np.random.random((10, 20)) - 1
synapse_2 = 2 * np.random.random((20, 10)) - 1
synapse_3 = 2 * np.random.random((10, 1)) - 1
for _ in range(10000):
layer_1 = ... | [
"[email protected]"
] | |
66691c5eaa3d77e4a81f63cbe55492db46fc75dd | 6af7cf75fd919f05b47d7516da4568f92abef8aa | /actstream/migrations/0001_initial.py | 802ad43280d127b600e43ed99013de043db04460 | [] | no_license | mauler/activity-stream | 43bdb3363eda1362d66e4abec74c17a282e03d5e | 72477ebec544c686e1691566399545642f4ff104 | refs/heads/master | 2020-04-10T00:31:55.970480 | 2015-03-10T13:28:51 | 2015-03-10T13:28:51 | 32,038,589 | 0 | 1 | null | 2015-03-11T20:06:21 | 2015-03-11T20:06:21 | Python | UTF-8 | Python | false | false | 2,361 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import jsonfield.fields
import django.utils.timezone
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL)... | [
"[email protected]"
] | |
9eaed7819d886ec933a65429535fe29bef2129d8 | eda8b801aab469113be4053a7d492dde0da63373 | /metadata-ingestion/src/datahub/ingestion/source/metadata/business_glossary.py | 28df9565d4a868d1ebf6811b9ab727c2fd6b9e6f | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"MIT"
] | permissive | zuizeze/datahub | 630c00934e7b76eeb3a08feda7a112dd745ee18b | 63a37450103eff3e94d798c36bab6e47fbca47dc | refs/heads/master | 2022-09-06T19:53:02.219574 | 2022-08-13T00:35:53 | 2022-08-13T00:35:53 | 242,064,645 | 0 | 0 | Apache-2.0 | 2020-02-21T05:49:26 | 2020-02-21T05:49:25 | null | UTF-8 | Python | false | false | 9,058 | py | import logging
from dataclasses import dataclass, field
from typing import Any, Dict, Iterable, List, Optional, Union
from pydantic import validator
from pydantic.fields import Field
import datahub.metadata.schema_classes as models
from datahub.configuration.common import ConfigModel
from datahub.configuration.config... | [
"[email protected]"
] | |
2617fe025e7ddc018281f853dec2e238a062ff20 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /ask_hand_in_able_problem/number_and_person.py | 4b08ca79400b115b7e926ee6a490cd123528665b | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py |
#! /usr/bin/env python
def part_and_day(str_arg):
early_time(str_arg)
print('ask_hand')
def early_time(str_arg):
print(str_arg)
if __name__ == '__main__':
part_and_day('early_man')
| [
"[email protected]"
] | |
046d8c76bb32eecf5ba9ad872efb2f8333d28fd3 | 6478723d180a8ef39941ba04b80c1eca9f437323 | /244. Shortest Word Distance II.py | c3713fd9f7ca35dff4badc5c14b57690aff0adeb | [] | no_license | NiuNiu-jupiter/Leetcode | 2a49a365898ecca393cb1eb53a47f4501b25952d | e278ae6ded32f6a2d054ae11ad8fcc45e7bd0f86 | refs/heads/master | 2022-11-22T01:05:57.417538 | 2020-07-28T23:34:39 | 2020-07-28T23:34:39 | 182,104,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | """
Design a class which receives a list of words in the constructor, and implements a method that takes two words word1 and word2 and return the shortest distance between these two words in the list. Your method will be called repeatedly many times with different parameters.
Example:
Assume that words... | [
"[email protected]"
] | |
b0a397839d2484bb418a34d66f90b53b145a961e | 6b6f68f507746e3e39b0e8789af5d044e27d6b0a | /BinarySearch/0108_ConvertSortedArrayIntoBinarySearchTree_E.py | 9f2dbfc81f8e4a56f0487583f5e6e89bc92e38d1 | [] | no_license | PFZ86/LeetcodePractice | bb0012d8b3120451dda1745875836278d3362e45 | 6db9db1934bc0a8142124d8b56bf6c07bdf43d79 | refs/heads/master | 2021-08-28T08:43:27.343395 | 2021-08-17T20:38:32 | 2021-08-17T20:38:32 | 230,925,656 | 1 | 1 | null | 2021-08-17T20:38:32 | 2019-12-30T14:01:27 | Python | UTF-8 | Python | false | false | 876 | py | # https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
# Solution 1: binary search-like split
class Solution(object):... | [
"[email protected]"
] | |
7df3bcbfa42d4a7f74ba3a7e9dbcecc69c3e55eb | f88e49b5aa336cea3bfd2fa46bb23048f6bfe875 | /gaussfold/aa/asparagine.py | ac313a65d071a28e58827c86e16e2d7054d3d2ea | [] | no_license | AntoinePassemiers/GDE-GaussFold | c50a05992447f1909b3357db40620e3ede3ffc16 | 323600a75a7b97286fd66d478111140b9496b076 | refs/heads/master | 2020-05-09T23:07:11.930093 | 2019-08-15T21:19:33 | 2019-08-15T21:19:33 | 181,492,718 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | # -*- coding: utf-8 -*-
# asparagine.py
# author : Antoine Passemiers
from gaussfold.aa.amino_acid import AminoAcid
from gaussfold.atom import Bond, Group, Carbon, Hydrogen, Oxygen, Nitrogen
class Asparagine(AminoAcid):
def __init__(self, **kwargs):
AminoAcid.__init__(self, 'ASN', 'N', **kwargs)
... | [
"[email protected]"
] | |
8005c05612bbec43b6ca81c5de5062dd6c6fc1ab | bc8d861814d85c240901c30ad4036611d961ffc0 | /src/dicttree/qt/log.py | 4acc51aa531ec8dafbd53ac0cffb84ad2f4eff12 | [] | no_license | chaoflow/dicttree.qt | 2178c306fcc9aea4c653c8e045c5172b702c8750 | 5652415db383ffa2ce62f068edeba1f2528354b2 | refs/heads/master | 2016-09-05T14:41:05.872310 | 2012-06-17T23:57:37 | 2012-06-17T23:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from dicttree.log import getLogger
logger = getLogger('qt')
getLogger = logger.getChild
| [
"[email protected]"
] | |
09d0608d616c3fb1a0ec0cc817ff935fbc85a61b | 7ade5b48aa5b62594bcbd265030a2a7307ae3b2d | /kaggle_nuclei/full_image/preprocessor_gan_training.py | 4c13198bb3cd71db1428e4444639c55d1f2e7a1b | [] | no_license | SSS135/kaggle_dsbowl2018 | 9c5ca1b490bdbc806f8213c2f6564cbdf1c852d3 | 59d9eab05928178356e8bf744a67607c89f04761 | refs/heads/master | 2020-05-29T15:31:31.083189 | 2018-07-21T15:32:58 | 2018-07-21T15:32:58 | 189,217,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,003 | py | import copy
import math
import sys
import torch
import torch.nn.functional as F
import torch.utils.data
from optfn.cosine_annealing import CosineAnnealingRestartParam
from optfn.gadam import GAdam
from optfn.param_groups_getter import get_param_groups
from torch import nn
from torch.autograd import Variable
from torch... | [
"[email protected]"
] | |
c813db17e0b517e6d6d3eb324d57cdbd6b573e6a | 95d0806ce766805beffba8144e4b83076b5f8b91 | /hongwai/exam/thermo+hongwai_v01_hongwai.py | 381646566d49c0ddec0464b85706d2008c0c75f5 | [] | no_license | chengw99/dell | 1f4d5a2f20f3e61208266dc4a0adc4e18cd44ff8 | 4f932c3f0d3deb545700a9616456fb0beeb733d0 | refs/heads/master | 2021-04-15T08:53:49.011550 | 2019-03-23T14:56:41 | 2019-03-23T14:56:41 | 104,961,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 15 14:34:03 2018
@author: DELL
"""
# 此程序根据 thermo+hongwai_v01_pic_coord.py 选出的数据范围 对红外数据进行面平均
# 因为每个时间红外数据选择的范围都不同,所以不能做批量处理
import numpy as np
import pandas as pd
ipath = r'E:\py_data\hongwai'
opath = r'E:\py_output'
data = pd.read_csv(ipath+'\\'+'one-facing south-23... | [
"[email protected]"
] | |
2c2bf0e08f45b674f996afac25eb10688eae8afa | b5e8dc7c21659ac33b6e242a298a44d30bfa3610 | /env-prod/Lib/site-packages/sklearn/feature_selection/_univariate_selection.py | 3ad7abb6f9804830d88331b85a864e2066932f54 | [] | no_license | rpuegue/CoursA61 | c168b44cd9835ad7524c97b2983305c56acd8096 | a4fc8f7504491eb94cb2f1d2bf6d16674901a0c5 | refs/heads/main | 2023-03-10T09:08:31.293546 | 2021-02-22T16:25:51 | 2021-02-22T16:25:51 | 339,574,678 | 0 | 0 | null | 2021-02-22T16:25:51 | 2021-02-17T00:57:41 | Python | UTF-8 | Python | false | false | 28,925 | py | """Univariate features selection."""
# Authors: V. Michel, B. Thirion, G. Varoquaux, A. Gramfort, E. Duchesnay.
# L. Buitinck, A. Joly
# License: BSD 3 clause
import numpy as np
import warnings
from scipy import special, stats
from scipy.sparse import issparse
from ..base import BaseEstimator... | [
"[email protected]"
] | |
0737a2f6e17c65219c251686d16823aafc690950 | 414db33a43c50a500741784eea627ba98bb63e27 | /0x0B-python-input_output/3-write_file.py | ae0c2b1e364ed751046127fc160d45a253030029 | [] | no_license | rayraib/holbertonschool-higher_level_programming | 2308ea02bd7f97eae3643e3ce0a6489cc1ad9ff5 | 6b4196eb890ffcb91e541431da9f5f57c5b85d4e | refs/heads/master | 2021-09-14T09:12:26.664653 | 2018-05-11T03:23:12 | 2018-05-11T03:23:12 | 113,070,818 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | #!/usr/bin/python3
'''write to file'''
def write_file(filename="", text=""):
'''open file to write text and return the number of bytes weritten'''
with open(filename, 'w', encoding='utf-8') as f:
return(f.write(text))
| [
"[email protected]"
] | |
ea2782e8c450f6c5a2dc9fb342bdfef834919c34 | 0a9949a7dbe5f7d70028b22779b3821c62eb6510 | /gt_order_mongodb/conf/source_getdata0417.py | 4d878aad59c7d787d1dd3cd6a30173596d185ecb | [] | no_license | 744996162/warehouse | ed34f251addb9438a783945b6eed5eabe18ef5a2 | 3efd299a59a0703a1a092c58a6f7dc2564b92e4d | refs/heads/master | 2020-06-04T22:10:14.727156 | 2015-07-03T09:40:09 | 2015-07-03T09:40:09 | 35,603,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,784 | py | #ecoding=utf-8
__author__ = 'Administrator'
import sys
reload(sys)
import datetime
from dateutil.parser import parse
sys.setdefaultencoding('utf-8')
from source_mysql import *
sys.path.append('..')
from conf import *
import model
class GtOrderDao(Mysql):
def __init__(self, dbtype="local"):
Mysql.__init__(s... | [
"[email protected]"
] | |
fdce2f80d345ab41a55076388777658352217168 | 4d2531f7f4984109123bb70eb0ac3c8c08bb12e8 | /trash/faster_rcnn/.ipynb_checkpoints/faster_rcnn_r50_fpn_dcn_1x_trash-checkpoint.py | e845540dfb67a6500a02466dcf28428989daeb7f | [] | no_license | jhj9109/Segmentation_ObjectDetection | 0a3e8f92a90bed21a93b9c4cba7029330c1c4d2b | f40a0291b8513228be7475321ca59a1057f0aa27 | refs/heads/master | 2023-05-09T03:44:16.145448 | 2021-05-22T16:36:15 | 2021-05-22T16:36:15 | 369,830,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | _base_ = 'faster_rcnn_r50_fpn_1x_trash.py'
model = dict(
backbone=dict(
dcn=dict(type='DCN',
deform_groups=1,
fallback_on_stride=False),
stage_with_dcn=(
False, True, True, True))) | [
"[email protected]"
] | |
8cc45ae5914c90e78e71724a0f2a83de0bfd00ab | ebac424304a4456193843472d3e91b5de79da514 | /order/views.py | 58924b80fb9fe0c21934ae0e514faa8fdca632ae | [] | no_license | haha479/bookstore | 1a0e7f73ed973ff06fd0c94cb92329baca39b527 | 3e85e2a62d4e9dde68c5f226c2e7558c6a06a03e | refs/heads/master | 2021-09-08T09:05:15.153693 | 2018-03-09T01:21:44 | 2018-03-09T01:21:44 | 115,857,026 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,927 | py | from django.shortcuts import render,redirect
from utils.decorators import login_required
from django.core.urlresolvers import reverse
from users.models import Address
from book.models import Books
from order.models import OrderInfo
from order.models import OrderGods
from django_redis import get_redis_connection
from dj... | [
"[email protected]"
] | |
11a91f1fed378f258c0163eab10cdf4961ce6f5d | 915c31ce84a826d225bcb1cc5f1e0323e712f6e4 | /calculate-testing-agreement.py | 6276ce7b87c1a1e58da5c8f6883613ea1968e06e | [
"Apache-2.0"
] | permissive | mac389/overdosed | 64162aaf8f57f7ca57bcc95678d0d18e231cda87 | 434255db4ea36581c9f94c7aa09ca6ca15169e8a | refs/heads/master | 2021-01-10T07:44:41.804936 | 2015-06-25T23:22:51 | 2015-06-25T23:22:51 | 36,990,551 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | import csv
import numpy as np
from pprint import pprint
with open('testing-sample-MC-ratings.csv','rU') as my_rating_file:
my_ratings = [row for row in csv.reader(my_rating_file)]
#Automatic ratings
with open('testing-sample-w-ratings','rU') as automatic_rating_file:
automatic_ratings = [row for row in csv.read... | [
"[email protected]"
] | |
57cf2702270e99daab0cd0f773f9b28777c1fff8 | b4ecc9c5a74f11958e7a49999d0299e7bb883d2e | /postgres-database/dbFunctions.py | 34dd98379303cca9135af6e25108f79e95ad7f9a | [] | no_license | teja0508/AcronymLookup | 6edea8ab9bc27824b961563f5bf968b499490094 | ea5b812c41f138b5dccabbe2c474e2da0f85ce9e | refs/heads/main | 2022-12-20T08:00:30.161858 | 2020-10-18T06:01:32 | 2020-10-18T06:01:32 | 305,030,809 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,255 | py | # dbFunctions.py [Rachel Gardner]
#
# This file defines the AcronymsDatabase class, which
# interfaces with the PostgreSQL backend to store acronyms, definitions
# and their contexts.
import psycopg2
import json
from collections import Counter
class AcronymDatabase:
def __init__(self):
conn = psycopg2.con... | [
"[email protected]"
] | |
1281fb5541740ff35cf2cb197890e7c73fb333e2 | 221cada2354556fbb969f25ddd3079542904ef5d | /AlgoExpert/validate_bst.py | 24bf1e02380e497c9452015016be874e08f91ce8 | [] | no_license | syzdemonhunter/Coding_Exercises | 4b09e1a7dad7d1e3d4d4ae27e6e006732ffdcb1d | ca71572677d2b2a2aed94bb60d6ec88cc486a7f3 | refs/heads/master | 2020-05-24T11:19:35.019543 | 2019-11-22T20:08:32 | 2019-11-22T20:08:32 | 187,245,394 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | # T: O(n)
# S: O(d)
def validateBst(tree):
return helper(tree, -float('inf'), float('inf'))
def helper(tree, min_val, max_val):
if not tree:
return True
if tree.value < min_val or tree.value >= max_val:
return False
left_valid = helper(tree.left, min_val, tree.value)
right_valid = ... | [
"[email protected]"
] | |
6f92343ff23e76b2a0b1a06cdd767ecf0e444f40 | e4ec5b6cf3cfe2568ef0b5654c019e398b4ecc67 | /azure-cli/2.0.18/libexec/lib/python3.6/site-packages/azure/mgmt/sql/models/encryption_protector.py | 28b7ccfc213258e75b4740819a87b7557399fc67 | [] | no_license | EnjoyLifeFund/macHighSierra-cellars | 59051e496ed0e68d14e0d5d91367a2c92c95e1fb | 49a477d42f081e52f4c5bdd39535156a2df52d09 | refs/heads/master | 2022-12-25T19:28:29.992466 | 2017-10-10T13:00:08 | 2017-10-10T13:00:08 | 96,081,471 | 3 | 1 | null | 2022-12-17T02:26:21 | 2017-07-03T07:17:34 | null | UTF-8 | Python | false | false | 2,969 | 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 ... | [
"[email protected]"
] | |
edcd8ce0f727f58aaea7d90968b3b585f9aeab83 | befd78e2bfdeb7aa786e8d78aa30670e72226577 | /concurrency_with_asyncio/ch6/counting_freq_a.py | e4e1287524a416fe2d0e87e52535f912b079964d | [] | no_license | owari-taro/concurrency_in_python | 4ee2664a4e8c6a9a840ffd0878dbd53181818813 | 6f12d84b4a72cd5ddd05c74b1c94902c784e5a18 | refs/heads/master | 2023-03-06T12:41:15.637603 | 2023-02-28T15:02:14 | 2023-02-28T15:02:14 | 301,134,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | import time
freqs={}
with open("data/googlebooks-eng-all-1gram-20120701-a","r")as reader:
st=time.time()
count=0
for line in reader:
if count%10_000==0:
print(freqs)
count+=1
data=line.split("\t")
word=data[0]
count=int(data[2])
if word in fr... | [
"[email protected]"
] | |
bca23f903311a368aa82760ee5be04a2b46ddd94 | dcfd89a6a8ebf3b32948dbf93e222063c223bec4 | /v2/api/utils.py | d2c3dd7fc2947f486115eb4c86ea84801e7f9616 | [] | no_license | SirYaro/kdm-manager | a19ff1d7711bc39a2de9e8f740cb03fac28a52b7 | 263d1330764b915f3acb0771e58845020cce06b2 | refs/heads/master | 2021-09-05T05:47:58.511224 | 2018-01-24T15:09:18 | 2018-01-24T15:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,189 | py | #!/usr/bin/python2.7
# general imports
from bson import json_util
from bson.objectid import ObjectId
from datetime import datetime, timedelta
from dateutil.relativedelta import relativedelta
import email
from email.header import Header as email_Header
from email.mime.multipart import MIMEMultipart
from email.mime.text... | [
"[email protected]"
] | |
c5597281e91a1f2336cb6e046d5aa458cb432bf9 | e4414bd8152e52855db7ab9065ae12b7329143e0 | /python/src/maxdiffarr.py | c59fcce6e0af15f92b72aaecbe371e748058fd86 | [] | no_license | catalinc/programmingpraxis-solutions | 39cb847877ec46d2fb85740791c24889ab5654a8 | c0b13906aa76ffac705bf108db138fb9a38bc16a | refs/heads/master | 2021-03-27T16:46:47.781839 | 2017-09-09T15:17:38 | 2017-09-09T15:17:38 | 53,532,233 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | #!/usr/bin/env python
import sys
import unittest
# See http://programmingpraxis.com/2011/04/01/maximum-difference-in-an-array/
def maxdiff(a):
min_i = i = j = 0
d = -sys.maxint
for k in xrange(1, len(a)):
if a[k] < a[min_i]:
min_i = k
elif a[k] - a[min_i] > d:
d = a[k] - a[min_i]
i = min_i
j = k
... | [
"[email protected]"
] | |
71a2d7cbbd8c0b66f75a771056748b3e7f026054 | aadea82d00400b71de86b1906ed347d10416e69b | /p350.py | b495e8cb02bea100bc4e51baabf5fe09685b80ad | [] | no_license | abishekravi/guvipython | fc0f56912691cd5a41ab20f0c36b2027ebccfb00 | 4fbb83f0a131775cd9eb3f810c2d1c9ad22d710a | refs/heads/master | 2021-08-16T10:22:00.052735 | 2020-06-25T04:35:42 | 2020-06-25T04:35:42 | 196,218,458 | 2 | 27 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | #a
import sys,string, math,itertools
def minChCnt(s) :
dic1 = {}
for c in s :
if not c.isspace() :
dic1[c] = dic1.get(c,0) + 1
min1 = sys.maxsize
L = []
min1 = min(dic1.values())
for k,v in dic1.items() :
if v == min1 :
L.append(k)
return L
s = input... | [
"[email protected]"
] | |
41be5f261a4866f3eca403bdcbdb7c9fee1a2e7d | 7ff12fccd5da300c6f844e01ae15399804d28107 | /41/lambda.py | b827614414b2610ff8e1e0f176b3ba5efbd2b92e | [] | no_license | weilaidb/python_dd | cc49d21d4ad8b6e56b80ea068b95255502eb9ea5 | 7458af7fb028850999cdbf089ac6c61a55096c25 | refs/heads/master | 2021-01-10T01:36:35.539121 | 2016-02-24T14:25:23 | 2016-02-24T14:25:23 | 47,059,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | #!/usr/bin/python
#Filename:lambda.py
def make_repeater(n):
return lambda s:s*n
twice = make_repeater(2)
print twice('word')
print twice(15)
| [
"[email protected]"
] | |
817266a98c195d0592a873a56976b22261b0798b | d8fb7147e9b471fafb9b1e7ae208e20e1eab9cc1 | /lmtk/html/meta.py | 6e1b1fee1fa05847fa7a141fc3493ed38d3f63da | [
"MIT"
] | permissive | ericchen/lmtk | e61e5c1f0790dfba32f2ceb406df16045332b15f | ce2604851af66801f459b2e9bc5aeaf0c94bc15d | refs/heads/master | 2021-01-21T04:08:08.336582 | 2014-09-23T14:02:01 | 2014-09-23T14:02:01 | 33,095,938 | 1 | 0 | null | 2015-03-30T00:53:51 | 2015-03-30T00:53:50 | null | UTF-8 | Python | false | false | 5,134 | py | # -*- coding: utf-8 -*-
"""
lmtk.html.meta
~~~~~~~~~~~~~~
Tools for extracting metadata from HTML.
:copyright: Copyright 2014 by Matt Swain.
:license: MIT, see LICENSE file for more details.
"""
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
import re
f... | [
"[email protected]"
] | |
f5a2e5a623c38797822aa43672dd567a377d6369 | 379e932003bac6869260a6b362bce589951c96a1 | /backend/test_25201/settings.py | ed9bc57d4ac097d5d02a1401e46104c4c50ebc7a | [] | no_license | crowdbotics-apps/test-25201 | 31e0020b73f87fd28b15a57f3702750cde7eba4e | 9cd38854979c7d6680a2b0f8ac32c71b5e3e13c1 | refs/heads/master | 2023-03-27T10:57:58.090951 | 2021-03-23T02:08:52 | 2021-03-23T02:08:52 | 350,550,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,214 | py | """
Django settings for test_25201 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os... | [
"[email protected]"
] | |
acf5f3f8c41ffe2c340d87e431ce7c7df30ad01d | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/70_1.py | ec22d692bf592f3d3a12f7546ec72edd733f712b | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | Python – Remove duplicate values across Dictionary Values
Sometimes, while working with Python dictionaries, we can have a problem in
which we need to remove all the duplicate values across all the dictionary
value lists. This problem can have application in data domains and web
development domains. Let’s dis... | [
"[email protected]"
] | |
485b3c5be8e95fe1bbf16aff7303d04fa4db5320 | 4ddf4fa6a4a499d64b23fb99d70a7bb3802fd1b0 | /utils.py | 3cbae7d209d317c10c8b8a9c0dd055c5e057feec | [] | no_license | biterbilen/MVML | 2b318b3883c00ed1908ef75924077e3aab639094 | 76a79ded26d09452234b7ae2b4809e47aa93df70 | refs/heads/master | 2023-01-13T10:04:10.269589 | 2020-11-16T18:55:19 | 2020-11-16T18:55:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | import subprocess
import pandas as pd
class HexTransformer:
@staticmethod
def hex2rgb(hex):
hex = hex.replace("#", "")
return int(hex[0:2], 16), int(hex[2:4], 16), int(hex[4:6], 16)
def fit(self, X, y=None):
return self
def transform(self, X):
return X.apply(self.hex2... | [
"[email protected]"
] | |
60567d1fa526b9f96876073dc18939f56fe55711 | 7be4f595d555614a28f708c1ba7edda321f0cf30 | /practice/algorithms/greedy/jim_and_the_orders/jim_and_the_orders.py | c2536053bea15992893c3f2b2b86f41f2c9beaa8 | [] | no_license | orel1108/hackerrank | de31a2d31aaf8aeb58477d1f2738744bfe492555 | 55da1f3a94e8c28ed0f0dea3103e51774f0047de | refs/heads/master | 2021-04-09T17:38:25.112356 | 2017-01-22T11:21:19 | 2017-01-22T11:21:19 | 50,198,159 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | #!/usr/bin/env python
n = int(raw_input().strip())
t = []
for CNT in range(n):
ti, di = map(int, raw_input().strip().split())
t.append((ti + di, CNT + 1))
for VAL in sorted(t):
print VAL[1],
| [
"[email protected]"
] | |
8e9d522a4bee0bcbaef63387c784c3826c71dc90 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startQiskit_Class337.py | 4a5caf7314c5b9433c1c0f9694093bc128700ae8 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,360 | py | # qubit number=3
# total number=60
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"[email protected]"
] | |
ef6e31cf1ee34575fe9a8110458a4b71ff5f2aef | 6994917b9d22e9e15e578a0e5c75dcf4ce3cb022 | /formularios/migrations/0002_auto_20200629_1106.py | ec722847b976eba1bbb468b1210f95fa3a236b6e | [] | no_license | linikerunk/rh-ticket | 59ad6411a3d08c90c2704b37ba9bba67ea7f7754 | bd8edd3eb1ea6cfe04fee03a4f41049a84c1e14a | refs/heads/master | 2023-01-06T21:25:06.851369 | 2020-10-29T20:32:53 | 2020-10-29T20:32:53 | 250,346,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | # Generated by Django 2.2.9 on 2020-06-29 14:06
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('formularios', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='justificativ... | [
"[email protected]"
] | |
0c279e45341ed15a542b30b7c9517f1c6b235dc4 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/PyAMF-0.6.1/pyamf/remoting/amf0.py | d3e90344ab10b0c668e00ae113df1b052165e4a5 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/PyAMF-0.6.1/pyamf/remoting/amf0.py | [
"[email protected]"
] | |
0e2eae513dca547791fbedea008e887c86f7689a | 3d9c7d046674c0fca73df7dd0d0281be7600d6c3 | /bases/renderers/rect_renderer.py | c179c4649b1253a742b051642c1cfb8baf202a22 | [] | no_license | qhuydtvt/micro-war | 9a5fef988ca229278e0b93319fd2be10a0b758b0 | 7151905277089b12c7312368ff85aba040e6fe5d | refs/heads/master | 2020-03-09T20:36:43.280626 | 2018-06-18T22:55:12 | 2018-06-18T22:55:12 | 128,989,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | from bases.renderers.colors import RED
import pygame
class RectRenderer:
def __init__(self, width, height):
self.width = width
self.height = height
self.color = RED
self.line_width = 1
def draw(self, screen, position):
rect = (position.x - self.width / 2, position.y... | [
"[email protected]"
] | |
3be1cc1cbe3da3822f1507033315a0b55fd4c5ac | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /third_party/blink/web_tests/external/wpt/fetch/content-type/resources/content-type.py | 0b5e93b937c293250b33ae2cb2e5cbe43e381a86 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 591 | py | def main(request, response):
values = request.GET.get_list("value")
content = request.GET.first("content", "<b>hi</b>\n")
output = "HTTP/1.1 200 OK\r\n"
output += "X-Content-Type-Options: nosniff\r\n"
if "single_header" in request.GET:
output += "Content-Type: " + ",".join(values) + "\r\n"
... | [
"[email protected]"
] | |
8cfce97e1d57c3a59f1770fd204e848d6bae7536 | 93092ee9f65e872ccb2826291cfdcaf3c3ae72c9 | /store/views.py | 3f7dde607142fabbe221fa82813c2e2d4497af20 | [] | no_license | SergioRodas/Django-ecommerce | 5893d791a6d8d9c953ed4d3389ce277c23b14001 | 258710dde069ddc9058d9f75d8218e4e14e9899d | refs/heads/main | 2023-08-15T18:09:36.431537 | 2021-10-24T23:52:33 | 2021-10-24T23:52:33 | 403,732,841 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,807 | py | from django.shortcuts import render
from django.http import JsonResponse
import json
import datetime
from .models import *
from .utils import cookieCart, cartData, guestOrder
def store(request):
data = cartData(request)
cartItems = data['cartItems']
order = data['order']
items = data['items']
products = Produc... | [
"[email protected]"
] | |
7f7b017d2b6d812018f24c2aa3d1a7c4f61a0e3d | 7d2daf2e5cb120bf1bda2d2b86bbb8e6df7651b4 | /docs/0.7/_static/notebooks/first_steps.py | 2f1dd5a8b25a78e76f18263a5ce8ff7575987954 | [
"MIT"
] | permissive | contrera/gammapy-docs | d99a6c3fcd6946a58e9e0dfc976fbf0b924444f6 | 1bab4b3be807462449631363571c59d457a6b27f | refs/heads/master | 2020-03-31T03:16:01.956605 | 2018-10-05T07:59:08 | 2018-10-05T07:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,639 | py |
# coding: utf-8
# # Getting started with Gammapy
#
# ## Introduction
#
# This is a getting started tutorial for [Gammapy](http://docs.gammapy.org/).
#
# In this tutorial we will use the [Second Fermi-LAT Catalog of High-Energy Sources (2FHL) catalog](http://fermi.gsfc.nasa.gov/ssc/data/access/lat/2FHL/), correspon... | [
"[email protected]"
] | |
bedda5201e8709d0bee28aa1fadd7bd39ea7b648 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-4869.py | e198d69d1cf2a1db2fc927fc579a2edee3123d55 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,741 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"[email protected]"
] | |
32473ce729fccc6e0b67e307e604207b6a731331 | b27913c7372eabc5d736bcec58fd162056c575aa | /venv/Scripts/pip-script.py | e80ef915ca35c04d775fbf5a7fb3365ead6dfc31 | [] | no_license | bazhenov4job/soft_test | b39847e3483d45d34b99bf9302bcd2a360a48eb5 | 556a7b0e8dd9d4068a3227b83952c748d7e444e7 | refs/heads/master | 2020-12-22T21:30:17.133067 | 2020-02-02T16:56:44 | 2020-02-02T16:56:44 | 236,934,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | #!E:\SoftLogic\soft_test\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(... | [
"[email protected]"
] | |
aadbdd113e9ac3d93dad203d5549f454104cb73f | 3bb662400dcd168c66f0ccf7b76c086508721408 | /Nuisances/LeptonScale/samples.py | ae70a5614295d55d982f987dd2d34af9ece27c7d | [] | no_license | amassiro/PlotsConfigurationsCMSDAS2019Beijing | 4dea76368e2af18e40b9342f2d9863518993be3a | 04733d5429c93f073294a942828811891984a2de | refs/heads/master | 2020-09-16T12:40:39.425764 | 2019-12-09T03:13:21 | 2019-12-09T03:13:21 | 223,772,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,858 | py | import os
from LatinoAnalysis.Tools.commonTools import getSampleFiles, getBaseW, addSampleWeight
#
# function to simplify the life later ...
#
def nanoGetSampleFiles(inputDir, sample):
return getSampleFiles(inputDir, sample, True, 'nanoLatino_')
# samples
try:
len(samples)
except NameError:
import coll... | [
"[email protected]"
] | |
13f5b7dd1c8917cdf7aade9b6ea9ee975608d31b | 15978aacf0e44a890e36ff94c305aca5a056e5e8 | /10day--周六补/04-getpid和getppid.py | ec53cc565bba6bd0c33838ef3262a68ca235a100 | [] | no_license | ittoyou/1805_python_2 | ffbe613d893208b2454ef4f25cc2b8a9951ff047 | 1d6331a83598863042912bb26205d34417abed73 | refs/heads/master | 2020-03-24T13:58:12.276827 | 2018-07-27T07:58:57 | 2018-07-27T07:58:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | import os
pid = os.fork()
if pid == 0:
print("老王")
print("我是子进程进程号是%d 我的父亲进程是%d"%(os.getpid(),os.getppid()))
else:
print("我是父进程我的进程号是%d 我的父亲的进程号是%d"%(os.getpid(),os.getppid()))
print("老宋")
| [
"[email protected]"
] | |
d17035de6b5911c40b4cb3b07529449ea464fef3 | ab5dfb7e6d14996b8340c5202ad49024d1f1ef02 | /grpclib/__init__.py | 0a3588e68466cf743000d59ab82de19a532ce2ce | [
"BSD-3-Clause"
] | permissive | SupperSpiderMan/grpclib | f4352fbbfcfc5a286e2174e964f51d0e7428d2ae | 89fbfd514f1f377a16d64c5a9732cf71090e0a7a | refs/heads/master | 2021-04-23T15:32:45.354275 | 2020-03-20T12:41:14 | 2020-03-20T13:05:19 | 249,936,393 | 1 | 0 | BSD-3-Clause | 2020-03-25T09:27:41 | 2020-03-25T09:27:40 | null | UTF-8 | Python | false | false | 132 | py | from .const import Status
from .exceptions import GRPCError
__version__ = '0.3.2rc1'
__all__ = (
'Status',
'GRPCError',
)
| [
"[email protected]"
] | |
8ac3a44f6b6bec67bac5320465fb81c6316968c2 | 63768dc92cde5515a96d774a32facb461a3bf6e9 | /jacket/api/compute/openstack/compute/schemas/migrate_server.py | b71561ae9ff7c244124debe5f8a8438ca30924d7 | [
"Apache-2.0"
] | permissive | ljZM33nd/jacket | 6fe9156f6f5789e5c24425afa7ce9237c302673d | d7ad3147fcb43131098c2a5210847634ff5fb325 | refs/heads/master | 2023-04-16T11:02:01.153751 | 2016-11-15T02:48:12 | 2016-11-15T02:48:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | # Copyright 2014 NEC Corporation. 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 ... | [
"[email protected]"
] | |
fb5b8741a7f3ab1b0292653c1e456d52c6fbf297 | 27acd9eeb0d2b9b6326cc0477e7dbb84341e265c | /test/vraag4/src/warmste-week/44.py | d719315393ffa6bef0b3edfc9fb3c08bf9786cf3 | [] | no_license | VerstraeteBert/algos-ds | e0fe35bc3c5b7d8276c07250f56d3719ecc617de | d9215f11cdfa1a12a3b19ade3b95fa73848a636c | refs/heads/master | 2021-07-15T13:46:58.790446 | 2021-02-28T23:28:36 | 2021-02-28T23:28:36 | 240,883,220 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | def gift_inschrijven(tup,woordenboek):
klas=tup[0]
bedrag=tup[1]
if klas in woordenboek:
geld=woordenboek[klas]
geld+=bedrag
woordenboek[klas]=geld
else:
woordenboek[klas]=bedrag
return woordenboek | [
"[email protected]"
] | |
e5787ad9acf58585924c86ca9994a3c142f6c94b | 060ce17de7b5cdbd5f7064d1fceb4ded17a23649 | /fn_cisco_umbrella_inv/fn_cisco_umbrella_inv/components/umbrella_dns_rr_hist.py | e69d2201b06fc738b42f948cd0c24e135de5bb51 | [
"MIT"
] | permissive | ibmresilient/resilient-community-apps | 74bbd770062a22801cef585d4415c29cbb4d34e2 | 6878c78b94eeca407998a41ce8db2cc00f2b6758 | refs/heads/main | 2023-06-26T20:47:15.059297 | 2023-06-23T16:33:58 | 2023-06-23T16:33:58 | 101,410,006 | 81 | 107 | MIT | 2023-03-29T20:40:31 | 2017-08-25T14:07:33 | Python | UTF-8 | Python | false | false | 7,764 | py | # -*- coding: utf-8 -*-
# pragma pylint: disable=unused-argument, no-self-use
# (c) Copyright IBM Corp. 2010, 2018. All Rights Reserved.
""" Resilient functions component to run an Umbrella investigate Query - DNS RR History for an IP Address or domain
against a Cisco Umbrella server """
# Set up:
# Destination: a Q... | [
"[email protected]"
] | |
489bcb93be6187df718facdbb8397383188b4e5d | 024b434652c3e329bc7740c7b0c1776c7d6da54f | /cli/connect.py | 0c1a53603414dd086019f90c68d2b9f84431d230 | [
"MIT"
] | permissive | Barski-lab/cwl-airflow-cli | 3bffa85b519bc7ad645a798327af19fafb570639 | ede2928fb1cb161ae985d11a365ae2e6da4afa97 | refs/heads/master | 2021-01-20T22:05:42.415130 | 2017-09-16T19:38:25 | 2017-09-16T19:38:25 | 101,799,674 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | #! /usr/bin/env python
import MySQLdb
import urlparse
class DbConnect:
"""Class to get access to DB"""
def __init__(self, conf):
self.sql_conn_url=urlparse.urlparse(conf.get('core', 'sql_alchemy_conn'))
self.connect()
def connect(self):
self.conn = MySQLdb.connect (host = self.sq... | [
"[email protected]"
] | |
0f5cb35930f5208d39ec2592d907071525142e1b | 08d163710a17497d81e2bc4b53c77b2c787f2baa | /src/dataset/gtsrb.py | a649dab3498c19c716ce3d6906fe22a5fc8ad9e1 | [
"MIT"
] | permissive | ngonthier/dti-sprites | 7a9b80601b26bd760635d371500e34b15f409932 | 7c41b8bf15916f2ac14d6c0de795cd32e4689672 | refs/heads/main | 2023-04-30T21:51:01.183767 | 2021-05-14T11:56:14 | 2021-05-14T11:56:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,846 | py | from abc import ABCMeta
from functools import lru_cache
from PIL import Image
import numpy as np
from torch.utils.data.dataset import Dataset as TorchDataset
from torchvision.transforms import Compose, Resize, ToTensor
from utils import coerce_to_path_and_check_exist, get_files_from_dir, use_seed
from utils.image imp... | [
"[email protected]"
] | |
c70ba4a760d383cbe9f83c83caa406e0a58dbc48 | cc15af2ccc401b2d1d8fcfd219295121c1cece5d | /ROAR/utilities_module/module.py | 1ca90b65b5f5f492aaf34919218b5ed8d633b876 | [
"Apache-2.0"
] | permissive | moonwonlee/ROAR | 755277c5f79df67a78896e2739764eac6b7e0e7e | 1e189d895ac34197b8c8fc3017970cb706feb3e6 | refs/heads/main | 2023-06-15T22:35:29.796573 | 2021-07-02T20:27:39 | 2021-07-02T20:27:39 | 359,383,030 | 1 | 0 | Apache-2.0 | 2021-07-02T20:27:40 | 2021-04-19T08:23:58 | Python | UTF-8 | Python | false | false | 1,297 | py | from abc import ABC, abstractmethod
import time
from pathlib import Path
class Module(ABC):
def __init__(self, threaded=False, update_interval: float = 0.5,
should_save: bool = False, name: str = "module", **kwargs):
self.threaded = threaded
self.update_interval = update_interval
... | [
"[email protected]"
] | |
b3aa8d40a9d1110d654d7483b38f77c4184c5fe8 | 770e2091d4d571bd4bfeeefbd0755129ef79d2cf | /matplotlib/5.py | e6dc037d574d73aa6187c890e876aff42ff3390f | [] | no_license | youjia4321/data_analysis | 24d4897562b07fa9f7effb2f4f6add9b87fb5807 | 4f2e4a0389e0bbf67b654b9e9fe12088133cddbe | refs/heads/master | 2020-04-27T10:42:58.664049 | 2019-03-08T02:58:18 | 2019-03-08T02:58:18 | 174,266,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | import numpy as np
import matplotlib.pyplot as plt
mu, sigma = 100, 15
x = mu + sigma * np.random.randn(10000)
# 数据的直方图
n, bins, patches = plt.hist(x, 50, density=1, facecolor='r', alpha=0.75)
# for i in patches:
# print(i)
plt.xlabel('Smarts')
plt.ylabel('Probability')
plt.title('Histogram of IQ')
plt.text(60... | [
"[email protected]"
] | |
fad413cdf0ebf545f27260b7ed0593f679b3b9cf | e6bc1f55371786dad70313eb468a3ccf6000edaf | /Datasets/the-minion-game/Correct/076.py | fa39bfcd0f041cb2eb3e2c8fd566a8a06327f68b | [] | no_license | prateksha/Source-Code-Similarity-Measurement | 9da92e3b22c372ed6ea54d8b6ab2c5921e8c41c0 | fb371b837917794d260a219a1ca09c46a5b15962 | refs/heads/master | 2023-01-04T07:49:25.138827 | 2020-10-25T14:43:57 | 2020-10-25T14:43:57 | 285,744,963 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | def minion_game(string):
vowel =['A','E','I','O','U']
S=0
K=0
for i in range(len(string)):
if string[i] in vowel:
K+= len(string)-i
else:
S+=len(string)-i
if S>K:
print("Stuart"+" "+ "%d" % S)
elif K>S:
print("Kevin"+" "+'%d' % K)
else:... | [
"[email protected]"
] | |
93492b704f6fe05dc224243661ed0c2a8066ed38 | 67e817ca139ca039bd9eee5b1b789e5510119e83 | /Tree/Kth Smallest Element in a BST.py | 78fa4551d211d33dd4023977b36259e7db2cd425 | [] | no_license | dstch/my_leetcode | 0dc41e7a2526c2d85b6b9b6602ac53f7a6ba9273 | 48a8c77e81cd49a75278551048028c492ec62994 | refs/heads/master | 2021-07-25T21:30:41.705258 | 2021-06-06T08:58:29 | 2021-06-06T08:58:29 | 164,360,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: dstch
@license: (C) Copyright 2013-2019, Regulus Tech.
@contact: [email protected]
@file: Kth Smallest Element in a BST.py
@time: 2019/9/11 22:08
@desc: Given a binary search tree, write a function kthSmallest to find the kth smallest element in it.
Note:
You may assume... | [
"[email protected]"
] | |
7835d7fea00e4dcad46bf9117f2c76e5d0e341a4 | 65b4522c04c2be071c2d42095956fe950fe1cebe | /inversions/inversion11/best_model/predict/analysis/pred_disp_large_scale/plots/post_disp/gen_post_disp.py | 2d7cabac2102b3f35527307245505ab7abce8bca | [] | no_license | geodesy/viscojapan | ac0cd93f7a2134cd2651623b94879dcc21c0c46a | 03e70265b56eb5994e73bcb6066f0be338e42f27 | refs/heads/master | 2021-03-03T18:19:07.779601 | 2015-07-16T03:50:49 | 2015-07-16T03:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | import numpy as np
import viscojapan as vj
res_file='/home/zy/workspace/viscojapan/inversions/inversion10/iter2/run7/outs/nrough_05_naslip_11.h5'
reader = vj.inv.ResultFileReader(res_file)
disp = reader.get_pred_disp()
post = disp.get_post_at_nth_epoch(-1)
sites = disp.get_sites
tp = np.loadtxt('stations_large_sc... | [
"[email protected]"
] | |
729d0bb1c126d3c229c8e3e17db982202c6a8746 | 6c57b1694817d1710335429c12c2d9774ff446e3 | /2017-08-26/BWM-Model_case09_11/generated_files/LEMS_c302_C2_BWM_Model_nrn.py | 3f97e63b84048d26ca68ce228f2cd5b992e9849f | [] | no_license | lungd/openworm-experiments | cd3875e8071c35eacb919c318344bac56d0fe379 | 065f481fbb445ef12b8ab2110f501686d26c213c | refs/heads/master | 2021-01-01T04:41:38.397726 | 2017-09-12T13:55:40 | 2017-09-12T13:55:40 | 97,220,679 | 1 | 1 | null | 2017-09-01T17:10:28 | 2017-07-14T10:07:56 | Python | UTF-8 | Python | false | false | 14,670 | py | '''
Neuron simulator export for:
Components:
Leak (Type: ionChannelPassive: conductance=1.0E-11 (SI conductance))
k_fast (Type: ionChannelHH: conductance=1.0E-11 (SI conductance))
k_slow (Type: ionChannelHH: conductance=1.0E-11 (SI conductance))
ca_boyle (Type: ionChannelHH: conductance=1.0E-11 (SI... | [
"[email protected]"
] | |
31c1779398b3ce2aad134e0fb09067334f0f0976 | a9e27f69b8db430252cd29f334f182b9962e22ae | /src/collective/deformwidgets/dynatree.py | 2dcec4d7bb40a7798e2a521b94322c3fd90574f1 | [] | no_license | collective/collective.deformwidgets | d4b09da0ae935f16437f56f77351e52f3ccace81 | fef9e81e5e448de30fcd654a68f1cfd98e7aeb9d | refs/heads/master | 2023-03-22T11:55:37.251077 | 2012-10-11T21:20:53 | 2012-10-12T06:10:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,384 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from imsvdex.vdex import VDEXManager
from Products.CMFCore.utils import getToolByName
from zope.app.component.hooks import getSite
import colander
import deform
import json
def vdex_to_dynatree(vdex=None):
'''
Convert a vdex manager object
to something und... | [
"[email protected]"
] | |
0002d483929a2213dc78b3654a3d16d500e71d6f | c80ec1805a7e6cb1bd3f4b3e383ef4f4cf164765 | /gen/filters/rules/family/_hastwins.py | c2e37d04b70c8905222c5247ba01261e08eced18 | [] | no_license | balrok/gramps_addon | 57c8e976c47ea3c1d1298d3fd4406c13909ac933 | 0c79561bed7ff42c88714edbc85197fa9235e188 | refs/heads/master | 2020-04-16T03:58:27.818732 | 2015-02-01T14:17:44 | 2015-02-01T14:17:44 | 30,111,898 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | #
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2013 Nick Hall
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any... | [
"[email protected]"
] | |
7b8b1e3bf65134928bbed9628517cb616c9a5cb4 | 9d58c796906c6687241125ee6602cc612cb28735 | /FileRstproj/FileRstproj/wsgi.py | 18849c0de1d7746d732056d98c0d2fce323e9eb0 | [] | no_license | uday99/RestFrameworkUploadfile | 29de0929ad7c2af2d4e4a856801467b05ce53829 | 6b92f0d55893e435f4383a4691a79642be28923f | refs/heads/main | 2023-07-10T18:40:27.225900 | 2021-08-19T15:21:09 | 2021-08-19T15:21:09 | 397,986,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for FileRstproj 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"[email protected]"
] | |
8d666bd97f5421c1264ea7eceaaada6c70d79d20 | d4dab65a18429c72dda12f1271ec0b4452cb7aad | /tensorflow/python/distribute/values.py | a2c834f893e2d6376714229bd585502bebe2edf0 | [
"Apache-2.0"
] | permissive | chiragmak10/tensorflow | 6d486210bebb68f3328853731cdb37fbe6aa9b1a | 0e1f4418b84170533b3d388ac29042fe486403ee | refs/heads/master | 2020-04-12T08:30:11.229595 | 2018-12-19T04:56:29 | 2018-12-19T05:00:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82,713 | py | # Copyright 2018 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... | [
"[email protected]"
] | |
f193b93fe7ed2fb7532ba5e080503c1e75e790b1 | abad82a1f487c5ff2fb6a84059a665aa178275cb | /Codewars/8kyu/count-of-positives-slash-sum-of-negatives/Python/test.py | 61c68d640b924eca1c079ae4f9c87625028e4368 | [
"MIT"
] | permissive | RevansChen/online-judge | 8ae55f136739a54f9c9640a967ec931425379507 | ad1b07fee7bd3c49418becccda904e17505f3018 | refs/heads/master | 2021-01-19T23:02:58.273081 | 2019-07-05T09:42:40 | 2019-07-05T09:42:40 | 88,911,035 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # Python - 3.4.3
Test.describe("Basic tests")
Test.assert_equals(count_positives_sum_negatives([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, -11, -12, -13, -14, -15]),[10,-65])
Test.assert_equals(count_positives_sum_negatives([0, 2, 3, 0, 5, 6, 7, 8, 9, 10, -11, -12, -13, -14]),[8,-50])
Test.assert_equals(count_positives_sum_negati... | [
"[email protected]"
] | |
3580008934feddc279f08ed0aa8247a1544c764e | a519c248ccac7cfb4c934b5ad1159f4937117fba | /More_String_Manipulation/correct_password.py | c97737688bac4ff84491704a13c359e3ebae10d0 | [] | no_license | kaci65/Nichola_Lacey_Python_By_Example_BOOK | 1ae5654b82c01e320eaf8d1e41fb03804c0786fc | 2cc18d2d8351a990cee31e253c4bcb298ba4c266 | refs/heads/main | 2023-04-12T18:16:03.663399 | 2021-05-02T14:34:00 | 2021-05-02T14:34:00 | 346,003,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | #!/usr/bin/python3
"""check if user input is correct the secondtime round"""
passwrd = input("Please enter password: ")
passwrd2 = input("Please confirm password: ")
if passwrd == passwrd2:
print("Thank you")
elif passwrd.islower() != passwrd2.islower():
print("They must be in the same case")
else:
print(... | [
"[email protected]"
] | |
cc1c4654fe4f9af3d5dcd665eaad982c2c01d813 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02900/s932480273.py | 879d6d669a5cb836b2df581b153b4b2ff7c9129f | [] | 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 | 367 | py | a,b=map(int,input().split())
def factorization(n):
a=[]
while n%2==0:
a.append(2)
n//=2
f=3
while f*f<=n:
if n%f==0:
a.append(f)
n//=f
else:
f+=2
if n!=1:
a.append(n)
return a
s_a=set(factorization(a))
s_b=set(factoriz... | [
"[email protected]"
] | |
b363e8058c2887db3c204ca9ca827bc385baa3b7 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /pPyAgyeNEvQsBytaR_19.py | 4aff1636b0a9b914bbbca2ca40fe25b9d7d42fe7 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | """
Write a function that calculates the **factorial** of a number
**recursively**.
### Examples
factorial(5) ➞ 120
factorial(3) ➞ 6
factorial(1) ➞ 1
factorial(0) ➞ 1
### Notes
N/A
"""
def factorial(n):
counter = n
counter2 = n
if n == 0:
return 1
for x in range (cou... | [
"[email protected]"
] | |
af549c5f28809aa0ff4c12ecd2d66aad2f41e951 | 2b167e29ba07e9f577c20c54cb943861d0ccfa69 | /numerical_analysis_backup/large-scale-multiobj2/core-arch5-guard0-beta0-hebbe/pareto25.py | 24ae69bfb9cc96c1eae6bea2eb789a9b5259fd40 | [] | no_license | LiYan1988/kthOld_OFC | 17aeeed21e195d1a9a3262ec2e67d6b1d3f9ff0f | b1237577ea68ad735a65981bf29584ebd889132b | refs/heads/master | 2021-01-11T17:27:25.574431 | 2017-01-23T05:32:35 | 2017-01-23T05:32:35 | 79,773,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,486 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 4 15:15:10 2016
@author: li
optimize both throughput and connections
"""
#import sys
#sys.path.insert(0, '/home/li/Dropbox/KTH/numerical_analysis/ILPs')
import csv
from gurobipy import *
import numpy as np
from arch5_decomposition_new import Arch5_decompose
np.random... | [
"[email protected]"
] | |
38043e53324b35022507d8c661ba877f03024257 | a92db55b2a21ac3e4191e22800c66f8155c39f18 | /backendrooms/Chat/urls.py | c850fd056c1be7ea8dd3ff01e4d9ad9ab67f554c | [] | no_license | thaopanda/EasyAccomd | 046fc4520d0234e66ab6b49c2da2c20db0d38d1c | f9e68833ac1a57ca1cdd3e5db37fd15ecdef3ef1 | refs/heads/master | 2023-03-26T07:48:16.038758 | 2021-03-25T05:03:45 | 2021-03-25T05:03:45 | 351,314,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from django.contrib import admin
from django.urls import path, include
from Chat import views
urlpatterns = [
path('thread/', views.GetThread.as_view()),
path('chat/<int:pk>/<int:begin>/<int:end>/', views.GetChat.as_view()),
path('threadAdmin/<str:username>/', views.GetThreadAdmin.as_view()),
]
| [
"[email protected]"
] | |
89e123beb4ec1f95633bb5373c04ca769c7422d5 | 904b71e153361110dad46a9bf204011adfeab429 | /realtime_accl_graph.py | c4a718928dd84407bff9e3aa0c663816caf5d302 | [] | no_license | MiyabiTane/BDM | dbe4c4de0910fa7519fdc2d4967c996e01462a04 | 841bed04bbaaae80b91dfd73259a74677f25820c | refs/heads/master | 2020-09-06T07:39:50.374633 | 2019-12-20T14:50:53 | 2019-12-20T14:50:53 | 220,366,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,396 | py | # -*- coding: utf-8 -*-
"""
matplotlibでリアルタイムプロットする例
無限にsin関数をplotし続ける
"""
from __future__ import unicode_literals, print_function
import numpy as np
import matplotlib.pyplot as plt
import smbus
import time
def pause_plot():
plt.figure(figsize=(10,8))
plt.subplots_adjust(hspace=1)
ax1 = plt.subplot(311)
... | [
"[email protected]"
] | |
74d9d462e821b53877b54326c9b3fcdc6186e434 | c4702d1a06640555829b367852138cc93ba4a161 | /dealer_sale_order/report/dealer_sale_order_dp_report.py | c8e2704dea9d21e634595e4ff5b1bf37fe55262f | [] | no_license | Rizalimami/dym | 0ecadf9c049b22ebfebf92e4eab6eaad17dd3e26 | af1bcf7b77a3212bc8a8a0e41e6042a134587ed4 | refs/heads/master | 2020-04-08T10:56:43.605698 | 2018-11-27T06:44:08 | 2018-11-27T06:44:08 | 159,287,876 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,945 | py | import time
from datetime import datetime
from openerp.report import report_sxw
from openerp.osv import osv
from openerp import pooler
import fungsi_terbilang
from openerp.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT, DATETIME_FORMATS_MAP
import pytz
from openerp.tools.translate import _
imp... | [
"[email protected]"
] | |
0c38900605baafbc66468be8b179b55caad9d3e2 | e03e59d67c96c1afa0a1c76e62235a3e3f639976 | /django_test7sangpum_exam/django_test7sangpum_exam/urls.py | 0df11edfa6c35162ba1bb27fad7cc5209cac88cd | [] | no_license | kangmihee/EX_python | 10a63484802e6ff5454f12f7ade7e277dbf3df97 | 0a8dafe667f188cd89ef7f021823f6b4a9033dc0 | refs/heads/master | 2020-07-02T00:23:05.465127 | 2019-09-03T07:49:46 | 2019-09-03T07:49:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | """django_test7sangpum_exam URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, ... | [
"acorn@acorn-PC"
] | acorn@acorn-PC |
ab388f793983f211a87b38848eb922961c385516 | b6010878b98cc924bcafda43893e8ca1d375f4bb | /parser.py | a855ab1a133713966d57cc09d5575abd3b08e091 | [] | no_license | pepijndevos/bobcat | 7fc06e17dbec63750845bcd6b75465485bd9d07f | d4dea0b62c9fe9d4396be0d17f94d7a5bf289022 | refs/heads/master | 2020-03-26T03:36:02.603236 | 2018-09-01T14:38:27 | 2018-09-01T14:38:27 | 144,462,635 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,296 | py | from ply import lex
from ply.lex import TOKEN
tokens = [
# Identifiers
'ID',
# constants
'INT_CONST_DEC', 'INT_CONST_OCT', 'INT_CONST_HEX', 'INT_CONST_BIN',
'FLOAT_CONST', 'HEX_FLOAT_CONST',
'CHAR_CONST',
#'WCHAR_CONST',
# String literals
'STRING_LITERAL',
#'WSTRING_LITERAL',
... | [
"[email protected]"
] | |
27456c5262db06b8bef96281690b636ec91d8907 | 073c2fd73875ce4e7d061623b8403f8d77c45d92 | /cohesity_management_sdk/models/restore_app_task_state_proto.py | 10ff0ddfb0d0caef8f2dea7883811f228b6e1723 | [
"Apache-2.0"
] | permissive | naveena-maplelabs/management-sdk-python | b11441b2edccc5a1262785bd559ad4b3ea984c3b | 06ce4119d955dc08cdbc5109c935afcfcd9d65ab | refs/heads/master | 2021-05-20T10:52:12.776816 | 2020-03-10T03:28:08 | 2020-03-10T03:28:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,158 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Cohesity Inc.
import cohesity_management_sdk.models.restore_app_params
class RestoreAppTaskStateProto(object):
"""Implementation of the 'RestoreAppTaskStateProto' model.
TODO: type model description here.
Attributes:
app_restore_progress_monitor_subtask_... | [
"[email protected]"
] | |
cb970200d41ae02ac8af2dcd141947007c3de70d | 0a5e8bd5d1291afdb99bb5682611c9ddabacefe7 | /LSCSM.py | 88c70fd0922c7a58911929514aa7bef344193ab5 | [] | no_license | antolikjan/topographica-contrib | f89374e95d741ca1b7fad708be575bd705be79e0 | 3842e33811821dca58258b00442d6928b6804f7f | refs/heads/master | 2020-12-12T21:01:01.699128 | 2014-05-23T14:57:49 | 2014-05-23T14:57:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,494 | py | from scipy.optimize import fmin_ncg, anneal, fmin_cg, fmin_bfgs, fmin_tnc, fmin_l_bfgs_b
import __main__
import numpy
import pylab
import sys
sys.path.append('/home/antolikjan/topographica/Theano/')
import theano
theano.config.floatX='float32'
#theano.config.warn.sum_sum_bug=False
from theano import tensor as T
from t... | [
"[email protected]"
] | |
d3fd8759143553d27047922048b584d72c658ecd | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /gaussiana/ch3_2019_04_11_02_04_35_965689.py | 1d72b19e863e45f9715f26e5fa15712c131d7587 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | import math
def calcula_gaussiana(x,mi,sigma):
Y=1/(sigma*(2*math.pi)**1/2)*(math.exp(-0.5*((x-mi)/sigma)**2))
return Y | [
"[email protected]"
] | |
3e5b0ba83f75b854bad02097f5a41b1eb1fa092c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/321/104630/submittedfiles/jogoDaVelha_BIB.py | ef680987742f43f7773f7fd8ccbe646aa5e714c4 | [] | 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 | 1,288 | py | # -*- coding: utf-8 -*-
# COLOQUE SUA BIBLIOTECA A PARTIR DAQUI
import random
tabuleiro =[
[1,1,1],
[1,1,1],
[1,1,1]]
def nome():
nome = str(input('Qual seu nome? \n'))
return nome
def simbolo():
s = str(input('Qual símbolo você deseja utilizar no jogo? (X ou O) \n'))
while s != 'X' ... | [
"[email protected]"
] | |
e05f017bf8b3f62820b45ff9151749491fee423e | 10d08b2531672de54d924fec6654a978cb082055 | /fos/actor/polygonlines.py | 31b4955bed4b6a56f181ca6606143957e9376dcc | [
"BSD-3-Clause"
] | permissive | arokem/Fos | 05afa04f05ba3b0585e38dfa79ec7ae4332ec8f9 | 5066bbd74954ba7e60eeb06451f3a25ef1b291e2 | refs/heads/master | 2021-01-18T15:59:59.905221 | 2011-08-15T14:16:50 | 2011-08-15T14:16:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,855 | py | import scipy.spatial as sp
import numpy as np
from fos.lib.pyglet.gl import *
from fos import Actor
from fos.core.intersection import ray_aabb_intersection
class PolygonLines(Actor):
def __init__(self,
vertices,
connectivity,
colors = None,
affi... | [
"[email protected]"
] | |
a4a434e1abbb243fe9c141b2cd61b361631bc774 | 55ceefc747e19cdf853e329dba06723a44a42623 | /_CodeTopics/LeetCode/1-200/000012/000012.py | 34382f7be371ec1d8887db2f2cda6c7f0cd89365 | [] | no_license | BIAOXYZ/variousCodes | 6c04f3e257dbf87cbe73c98c72aaa384fc033690 | ee59b82125f100970c842d5e1245287c484d6649 | refs/heads/master | 2023-09-04T10:01:31.998311 | 2023-08-26T19:44:39 | 2023-08-26T19:44:39 | 152,967,312 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | class Solution(object):
def intToRoman(self, num):
"""
:type num: int
:rtype: str
"""
res = ""
nums = [1000, 500, 100, 50, 10, 5, 1]
letters = ["M", "D", "C", "L", "X", "V", "I"]
i = 0
flag = 0
while num > 0:
if num >= num... | [
"[email protected]"
] | |
c477c1338273b6757adf50fb02167e6cc81c5192 | 8015f1c62a2cb4efd21aa8938336913bf8117868 | /bamap/ba3638.pngMap.py | 2a662be28a2e2003287a7c148ccf7bb84271f63c | [] | no_license | GamerNoTitle/Beepers-and-OLED | 675b5e3c179df0f0e27b42bf594c43860d03b9af | afe1340e5394ae96bda5f9022a8a66824368091e | refs/heads/master | 2020-04-20T00:09:47.122471 | 2019-04-29T04:59:35 | 2019-04-29T04:59:35 | 168,515,579 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,468 | py | ba3638.pngMap = [
'11111111111111111111111111111111111111111111111110001111111111111111111111111111111111111111110100111111111111111111111111111111',
'11111111111111111111111111111111111111111111111110001111111111111111111111111111111111111111110000001111111111111111111111111111',
'1111111111111111111111111111111111111... | [
"[email protected]"
] | |
bd360494b3878fc03ec61fa166235858fdda2145 | 8072c1cf03f82fd1891536e93b6c28f16df82ea4 | /metamorphosys/META/meta/DesignDataPackage/lib/python/avm/__init__.py | 547231adf5bb6d039dc95b4fd07a3cd812a38db4 | [
"LicenseRef-scancode-other-permissive"
] | permissive | 15831944/metamorphosys-desktop | 90a26c6700c444accd58358c457d675eb2fdd59f | 4adb71c18f7811289fc4ba4dcb465e99e93d8e60 | refs/heads/master | 2021-05-30T13:34:07.037424 | 2015-09-24T22:09:05 | 2015-09-24T22:09:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297,086 | py | # .\_avm.py
# -*- coding: utf-8 -*-
# PyXB bindings for NM:8c3bce54577a879cd94d42789711c9f5d444aa71
# Generated 2015-08-13 10:01:46.170000 by PyXB version 1.2.3
# Namespace avm [xmlns:avm]
import pyxb
import pyxb.binding
import pyxb.binding.saxer
import io
import pyxb.utils.utility
import pyxb.utils.domutil... | [
"[email protected]"
] | |
9ba6a29c9bca6d480329a33582341c51f26bc30b | b1d9e75c07cea7498e4fe8b113a23c55f89292be | /leaflet_storage/base_models.py | 3a0c88e106127c6ad9d83fd7d8442328999c274d | [
"WTFPL"
] | permissive | FranciscoDS/django-leaflet-storage | 9dfdbb5e579431e0af70d0578fa55efe909093e3 | b69f0bb5a1848f743d50b0ec1f76b8ac3216c497 | refs/heads/master | 2020-12-24T13:20:42.757136 | 2013-03-10T21:33:55 | 2013-03-10T21:33:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,693 | py | # -*- coding: utf-8 -*-
from django.contrib.gis.db import models
from django.db.models import get_model as dj_get_model
from django.conf import settings
from django.core.urlresolvers import reverse
from django.contrib.auth.models import User
from django.utils.translation import ugettext as _
from .fields import DictF... | [
"[email protected]"
] | |
d0ca2278af93cf0521f1a71d22dd494b20804760 | ea48ef0588c104e49a7ebec5bd8dc359fdeb6674 | /api/snippets/serializers.py | 802503d73cf66c4cf043190921ed0e2be369d0ef | [] | no_license | Jizishuo/django--text | c0d58d739ef643c7f3793fbead19302778670368 | 152a5c99e7a16a75fda2f1f85edcfdce9274c9c2 | refs/heads/master | 2020-04-01T10:39:18.131551 | 2018-11-18T13:31:59 | 2018-11-18T13:31:59 | 153,125,799 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | from rest_framework import serializers
from snippets.models import Snippet, LANGUAGE_CHOICES, STYLE_CHOICES
class SnippetSerializer(serializers.Serializer): # 它序列化的方式很类似于Django的forms
id = serializers.IntegerField(read_only=True)
title = serializers.CharField(required=False, allow_blank=Tr... | [
"[email protected]"
] | |
7e77b6dd2286b4dc252221c40b6c29436ce6a3de | 4af3afd2471ec89c3bbe14adba8f87fe400f5598 | /numpy/numpy_demo.py | 4aa8e8b196a3bf685026495a1ce634eeeeeca068 | [] | no_license | guanguanboy/TestPytorch | a912b64d1e7c1df93a66032e4d411e2da82523c6 | 52fe23bae05027a5a725cb1d028954c5b5597e9a | refs/heads/master | 2023-07-16T15:28:14.257183 | 2021-08-29T04:04:11 | 2021-08-29T04:04:11 | 295,422,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | import numpy as np
a = np.array([1, 2, 3, 4, 5])
a[a > 3] = 0
print(a) | [
"[email protected]"
] | |
1fecc0c4d13d877ece282bd2a8ebf7d6f3d6fde6 | 5158d2aa9839dcf80340ef369db7eada19f3ff8b | /test.py | 1fe2fcc807e3f3e645ccd632e01c386ea08a6bad | [] | no_license | andrewsmedina/flh-pvcloud | 31de2e5734a6f91db4c618fa20759300e2930596 | 1799b17039dde004461982466f58cc464e6488b8 | refs/heads/master | 2021-01-11T03:39:57.926994 | 2016-10-13T03:56:46 | 2016-10-13T03:56:46 | 71,403,725 | 0 | 0 | null | 2016-10-19T22:14:25 | 2016-10-19T22:14:24 | null | UTF-8 | Python | false | false | 1,691 | py | #!/usr/bin/env python
import os
import sys
import django
import json
def test_pvs_energy_daily():
from pvs.models import Energy
#pvs_serial = '0000000097894c9b'
pvs_serial = '00000000f6392e07'
pvs_en_daily = Energy.get_energy_daily_output(pvs_serial)
result_list = []
for entry in pvs_en_... | [
"[email protected]"
] | |
e95147eb86b47413be4c0af28598db219b730732 | f5a53f0f2770e4d7b3fdace83486452ddcc996e1 | /env3/lib/python3.6/site-packages/django_tables2/columns/linkcolumn.py | adf587625eda5d92ecd166bee5d301e54ef9251c | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | fireman0865/PingBox | 35e8fc9966b51320d571b63967e352a134022128 | 0f00eaf88b88e9441fffd5173a1501e56c13db03 | refs/heads/master | 2023-01-20T07:55:59.433046 | 2020-03-15T13:36:31 | 2020-03-15T13:36:31 | 247,466,832 | 1 | 0 | Apache-2.0 | 2022-12-26T21:30:32 | 2020-03-15T12:59:16 | Python | UTF-8 | Python | false | false | 6,118 | py | from .base import Column, library
class BaseLinkColumn(Column):
"""
The base for other columns that render links.
Arguments:
text (str or callable): If set, this value will be used to render the
text inside link instead of value. The callable gets the record
being rendered... | [
"[email protected]"
] | |
29412168a35029446a3f8458bcf3b90a9ca5c7bb | 12a5b72982291ac7c074210afc2c9dfe2c389709 | /online_judges/Codeforces/228/E/code.py | df84b84afc6501c45b644b377d5dc32fca5c6d4c | [] | no_license | krantirk/Algorithms-and-code-for-competitive-programming. | 9b8c214758024daa246a1203e8f863fc76cfe847 | dcf29bf976024a9d1873eadc192ed59d25db968d | refs/heads/master | 2020-09-22T08:35:19.352751 | 2019-05-21T11:56:39 | 2019-05-21T11:56:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | n = int(raw_input())
ciel = 0
jiro = 0
maxValues = []
for x in xrange(n):
l = map(int,raw_input().split())
if (l[0] % 2 == 0):
for i in xrange(0,(l[0])/2):
ciel += l[1 + i]
jiro += l[l[0]/2 + i + 1]
else:
for i in xrange(0,((l[0])/2)):
ciel += l[1 + i]
jiro += l[(l[0])/2 + i + 2]
maxValues.appe... | [
"[email protected]"
] | |
a9c8c88180249969cff26aeb304d575a5691efdc | bc441bb06b8948288f110af63feda4e798f30225 | /app_store_sdk/model/resource_manage/filter_strategy_pb2.pyi | c7feb66ed7c223ea9ba231ff3e42ab314f2b82d4 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,421 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from app_store_sdk.model.console.cmdb_query_strategy_pb2 import (
CmdbQueryStrategy as app_store_sdk___model___console___cmdb_query_strategy_pb2___CmdbQueryStrategy,
)
from app_store_sdk.model.resource_manage.filter_condition_group_pb2 import (... | [
"[email protected]"
] | |
6e33bdb52df70a1d3f34b66cbe70b041167f2189 | 3fbfabfaaada7b9b77e8a1df8fed4de444070d49 | /session_10/Employee.py | ab419235cf5bb43b1a9bf7a2b7ac1bb3742016d0 | [
"MIT"
] | permissive | dravate/spark_python_course | df36a561ab2cf8f763dd02655319cd6bf5b7876c | 519389fdb21d78cd6d19e1ad2f7c782bc1449a83 | refs/heads/main | 2023-07-08T06:53:27.635106 | 2021-08-03T14:44:55 | 2021-08-03T14:44:55 | 385,127,461 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | class Employee:
'Common base class for all employees'
empCount = 0
def __init__(self, name, salary):
self.name = name
self.salary = salary
Employee.empCount += 1
def displayCount(self):
print ("Total Employee {}".format( Employee.empCount))
def displayEmployee(self):
p... | [
"[email protected]"
] | |
67df998e15aaf63b368447b166ddfc3cd29f7411 | 60d0252aabe5d929af8c94cdddd502605e7bafdd | /crawler_novels/www.ck101.org.py | 4946797433701f255fa0933a31a2593df36791fe | [] | no_license | SlovEnt/Web_Craler_Series | ead253b56f99bcd0bac33c2a66d226673c7f68fe | 9f77858826254d6631486f4770760e9e78baea68 | refs/heads/master | 2020-06-09T23:30:38.984620 | 2019-09-13T13:55:02 | 2019-09-13T13:55:02 | 193,528,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,238 | py | # -*- coding: utf-8 -*-
__author__ = 'SlovEnt'
__date__ = '2019/6/24 22:07'
import time
import os
from bs4 import BeautifulSoup
from collections import OrderedDict
from chs_tools.get_html_page import get_html_all_content, chrome_get_html_all_content
from chs_tools.print_log import C_PrintLog
from chs_tools.param_info ... | [
"[email protected]"
] | |
fe9e7ae36613eddbc9b67fab34ddea53b95cc7bc | baf3b9e0f80a545ba1e087d54e4de7a9fe10f279 | /滑动窗口/209_长度最小的子数组.py | 6f00de24476ca4c1e8c21ef53268ba5989b0febb | [] | no_license | llin0420/Leetcode_in_python3 | 5e0755c9b6bb5fe92fd1e0bd7d563e8a3a20f88a | 41684ff99b2f881304b08c3c753b0df48e0a6b40 | refs/heads/master | 2022-12-15T16:23:39.991920 | 2020-09-09T08:05:55 | 2020-09-09T08:05:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,402 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jul 12 13:17:24 2020
@author: leiya
"""
'''
0712
这道题在滑动窗口中稍微有些特殊
我们说过,尽量将对输出的更新放到小循环外面,即尽量不要在缩小窗口的时候更新输出,以防特殊情况
但是这道题需要将更新放入小循环中,因为只有在小循环中才能找到需要更新的精确数值,一旦出了小循环,就不是如何要求的输出值了
在这道题里就是出了小循环,该滑动窗口和<s,不满足更新输出值的要求,这道题可以和904水果题类比
水果题进入小循环是不符合要求,这道题是进入小循环符合要求,要在符合要求的基础上看看有没有最优解,因为我们是... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.