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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
617a6254379110f96f106c107563e54e1020e433 | 4fdab62336c7b4bde236351fabdd79cdec0b3d20 | /post_questions/forms.py | 4c4c245e3a02abe390e3f312eabf270eee9106b9 | [] | no_license | aashiqms/ask_new | 8e6f76fbe41da68d32967c5ab3a14a76d469f50d | 7f7a5e1b5e9b498030415607b8419e90147cd597 | refs/heads/master | 2022-07-04T21:51:56.107360 | 2020-05-17T18:03:19 | 2020-05-17T18:03:19 | 264,604,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | from django import forms
from post_questions.models import Post, Comment, Answer
from django.forms import ModelForm
class QuestionForm(ModelForm):
class Meta:
model = Post
fields = ['author', 'questions']
# widget = {
# 'title': forms.TextInput(attrs={'class': 'textinputclass'}),
# }
clas... | [
"aashiqms@outlook.com"
] | aashiqms@outlook.com |
c49b0c124c8eeb7a4917b06d1acffade30e7bf1f | 72df811521e3da73187388c737599ddd0a4631fc | /START_PYTHON/4日/11.バンボクムンwhile/03.while.py | 4bc0180ed23f1f2e825dba7d5922b98565f5a4a0 | [] | no_license | munsangu/20190615python | e7480044cfa07dcb65e8ca168c7cf9ecb73ffe7a | c496bc471503ac0e2ba0d928c01085c8b569d173 | refs/heads/master | 2020-06-04T14:59:49.822865 | 2020-02-08T11:49:16 | 2020-02-08T11:49:16 | 192,071,616 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # 내가 원하는 만큼 입력받고 그 숫자의 평균을 구하는 프로그램
num = 1
count = 0
sum = 0
while num !=0: #num이 0이 아니면 반복
num = int(input("정수 입력: "))
count += 1 # 몇 번 입력받았는지 count
sum += num
count -= 1 # 0을 입력한 count 하나 제외
avg = sum / count
print("평균 : %.2f"%avg)
| [
"ds-3632@hanmail.net"
] | ds-3632@hanmail.net |
50a7fad07fc0b5935c80ee5dfac6b9b8555e9a9d | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_1/swnrei001/question3.py | 4e473093a1d821898c258c5628e999860a896c5f | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | def spam():
firstname = input("Enter first name:\n")
lastname = input("Enter last name:\n")
money = eval(input("Enter sum of money in USD:\n"))
country = input("Enter country name:\n")
letter = """Dearest """ + firstname + """\nIt is with a heavy heart that I inform you of the death of my... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
e7371d1f3476d8e3b2d7580d5f8194845330d249 | b66c12a4304c6af00d58a1f83e453dbc739ae60d | /survey/features/about_us_steps.py | 3d0b8c9390b1acfe7127b065e4d6a78de8c6afde | [
"BSD-2-Clause"
] | permissive | madhavaramu/uSurvey | 060dae008f975a7cdb77ef8b0c5d820842422637 | 681e1d91fbedf94e840858e1ef09538777ce3e50 | refs/heads/uSurvey | 2020-04-11T06:28:17.220192 | 2016-12-06T13:24:45 | 2016-12-06T13:24:45 | 68,372,980 | 0 | 1 | null | 2016-09-16T11:03:44 | 2016-09-16T11:03:43 | null | UTF-8 | Python | false | false | 1,563 | py | from lettuce import *
from survey.features.page_objects.root import AboutPage, EditAboutUsPage
from survey.models import AboutUs
@step(u'And I visit the about us page')
def and_i_visit_the_about_us_page(step):
world.page = AboutPage(world.browser)
world.page.visit()
@step(u'And I have about us content')
def ... | [
"antsmc2@yahoo.com"
] | antsmc2@yahoo.com |
290920be930c40942829f4f4ddb96f55ae5fd5a5 | ca1c2630b517c2dd69ecb2741174c5147feea638 | /mercury/null_byte_filter.py | 1f5f05e6f372805662128a1c6598ba31b362b23f | [] | no_license | dexter-taylor/mercury | 708cf0440016d05e8c3754e82471d8b6e2ab5589 | efb02177ac12747d65aba43b47541d548fd5bdeb | refs/heads/master | 2020-04-18T14:25:43.808775 | 2019-01-25T06:59:08 | 2019-01-25T06:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,465 | py | #!/usr/bin/env python
'''Usage:
null_byte_filter.py (-n | -d | -l) <datafile>
Options:
-n --null Retrieve the line numbers of the lines with null bytes ('\0') and the first field in that line containing a null byte
-d --readable_dict Retrieve the lines that can be r... | [
"binarymachineshop@gmail.com"
] | binarymachineshop@gmail.com |
7e49268cc95f7618ee769890ed82c3ea558465c2 | c15a2b234376b3a8ea5f3c790b4afd47150dcfcc | /Libs_Modules/test_3.py | b843063ce4cb8f089f79f6cafc5b1330a6760613 | [] | no_license | GLMF/GLMF225 | 9c05b60d8bce71973460e2d98c454b22115b92fc | c83e506f522af89cff1c76286689bb5cf2f412cf | refs/heads/master | 2020-05-03T20:48:00.897857 | 2019-04-01T07:41:13 | 2019-04-01T07:41:13 | 178,810,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | from PyInquirer import prompt
widget = [
{
'type': 'expand',
'name': 'serie',
'message': 'Quelle est votre série préférée ?',
'choices': [
{
'key': 'g',
'name': 'Game of Thrones',
'value': 'GoT'
},
{... | [
"tristan.colombo@gmail.com"
] | tristan.colombo@gmail.com |
3dd3ad42d05707545bad918cdf8e1c1a1956688b | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/basic/3_2.py | 1a6ecef30016ab772e487b8b0093ba0f863bafe3 | [] | 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 | 4,003 | py | Difference between str.capitalize() VS str.title()
Both **title()** and **capitalize()** have similar functionality of
capitalizing first characters. Let us see the difference between the two of
them.
### title()
**title()** function in Python is the Python String Method which is used to
convert the fi... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
1d664ef000866e3f35691cf6c589f02e172914c7 | 77d3633bb64d585aa087677af9ca6f672ae9ff1f | /src/sagemaker/serve/predict_nlp.py | a854a3c9b662a2a26b489283e45b4dead44b083c | [
"MIT"
] | permissive | reneang17/authorencoder | 0f16d9d2c72db3bd3e50fac03b7eb6e25e6f7f75 | e607ddc77d18fc62e292adfe1595a5dd35e10f99 | refs/heads/master | 2022-07-15T01:23:28.450030 | 2020-03-03T05:10:15 | 2020-03-03T05:10:15 | 237,246,389 | 2 | 0 | MIT | 2020-03-08T01:37:00 | 2020-01-30T15:46:16 | Jupyter Notebook | UTF-8 | Python | false | false | 3,887 | py | import argparse
import json
import os
import pickle
import sys
import sagemaker_containers
import pandas as pd
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import torch.utils.data
import numpy
from utils_nlp import tokenize, emb
from models import CNN
from sklearn.neighbors impo... | [
"reneang17@gmail.com"
] | reneang17@gmail.com |
e41bf4c1770b7508b7f425ca2d18b7d1d68dad13 | 89e3f694021f261b95e494d2b479367bacde8251 | /tests/types/test_entity.py | 2910ad18598425b5e693e0e5e7401820c5e9b731 | [
"MIT"
] | permissive | dchaplinsky/followthemoney | 6f9c05f430f8bfb04f7841378fd2ee5cf9b33235 | a2a150f558acb5a1c985b9dc891c98c0fdf2f17e | refs/heads/master | 2020-09-10T08:16:14.617602 | 2019-11-14T09:15:52 | 2019-11-14T09:15:52 | 221,699,199 | 1 | 0 | MIT | 2019-11-14T13:03:41 | 2019-11-14T13:03:41 | null | UTF-8 | Python | false | false | 790 | py | import unittest
from followthemoney.types import registry
entities = registry.entity
class EntityTest(unittest.TestCase):
def test_parse(self):
self.assertEqual(entities.clean('88'), '88')
self.assertEqual(entities.clean(88), '88')
self.assertEqual(entities.clean({'id': 88}), '88')
... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
bd592c205d08a1f8ddc82451cb09b38db2934de7 | a4deea660ea0616f3b5ee0b8bded03373c5bbfa2 | /concrete_instances/register-variants/vfmsubadd213ps_xmm_xmm_xmm/instructions/vfmsubadd213ps_xmm_xmm_xmm/vfmsubadd213ps_xmm_xmm_xmm.gen.vex.py | 47e6123f37d250678ee38d0e8009fe13fcb34be4 | [] | no_license | Vsevolod-Livinskij/x86-64-instruction-summary | 4a43472e26f0e4ec130be9a82f7e3f3c1361ccfd | c276edab1b19e3929efb3ebe7514489f66087764 | refs/heads/master | 2022-02-02T18:11:07.818345 | 2019-01-25T17:19:21 | 2019-01-25T17:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | import angr
proj = angr.Project('./instructions/vfmsubadd213ps_xmm_xmm_xmm/vfmsubadd213ps_xmm_xmm_xmm.o')
print proj.arch
print proj.entry
print proj.filename
irsb = proj.factory.block(proj.entry).vex
irsb.pp() | [
"sdasgup3@illinois.edu"
] | sdasgup3@illinois.edu |
0fc748c3389c508b98a2f8ce1f12b4fb2ed423d3 | f213549d8725acaf5417d0d5290430d499bf3cf3 | /lino/core/boundaction.py | b3a6a42f40bb013688e5fa75400c13ca08ccbe41 | [
"BSD-2-Clause"
] | permissive | ExcellentServ/lino | 56c8159428a451058a35dad75e8799d239c2dc0e | 9ea630e719d47843dd8427dd64db22633626fd3d | refs/heads/master | 2020-12-28T23:15:47.380120 | 2015-01-27T14:53:10 | 2015-01-27T14:53:10 | 29,911,723 | 0 | 0 | null | 2015-01-27T11:44:09 | 2015-01-27T11:44:08 | null | UTF-8 | Python | false | false | 3,744 | py | # -*- coding: UTF-8 -*-
# Copyright 2009-2015 Luc Saffre
# License: BSD (see file COPYING for details)
"""
.. autosummary::
"""
import logging
logger = logging.getLogger(__name__)
from django.conf import settings
from lino.utils import curry
from lino.core import actions
class BoundAction(object):
"""An Acti... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
7b5fe80b8b6972477471881efb10fa5a505144d9 | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories_2to3/267667/kaggle-heart-master/configurations/je_os_fixedaggr_joniscale80small_augzoombright.py | 9b93b720a6e67660825c575404d24f2b139a2e03 | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,771 | py | """Single slice vgg with normalised scale.
"""
import functools
import lasagne as nn
import numpy as np
import theano
import theano.tensor as T
import data_loader
import deep_learning_layers
import image_transform
import layers
import preprocess
import postprocess
import objectives
import theano_print... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
2954c7bb5b4630407209831dc851c067c8f7488a | b445f7ba5ae4899c3782dc08627b778de6bbf12b | /test/test_jsonchecker.py | 88703e6457bdd1c1e3214667c699e8b5be6bb428 | [
"Apache-2.0",
"MIT"
] | permissive | ijl/orjson | 91e620f1e68e985064a68e77569b56ff378637ea | d1cd27e29c8df2768be016071d0800a92d120786 | refs/heads/master | 2023-08-31T05:10:58.385975 | 2023-08-29T12:29:42 | 2023-08-29T13:05:57 | 158,618,772 | 4,895 | 243 | Apache-2.0 | 2023-09-08T00:40:34 | 2018-11-21T23:43:14 | Python | UTF-8 | Python | false | false | 6,187 | py | # SPDX-License-Identifier: (Apache-2.0 OR MIT)
"""
Tests files from http://json.org/JSON_checker/
"""
import pytest
import orjson
from .util import read_fixture_str
PATTERN_1 = '["JSON Test Pattern pass1",{"object with 1 member":["array with 1 element"]},{},[],-42,true,false,null,{"integer":1234567890,"real":-9876.... | [
"ijl@mailbox.org"
] | ijl@mailbox.org |
e71a1663ae44c868dbd627ad3114ac41adc06bc0 | b99195cf2d181dec5c31aa7e58d747f474153802 | /Dictionary/Built-in Functions with Dictionary.py | cbca42c09ab3385fa84cac09cd510faf64f700a9 | [] | no_license | eldadpuzach/MyPythonProjects | b1b4d56a822fd781c7c4c7a9e4bb5408c180c187 | 3a961a7c265caf1369067d98e94564f01f1bde74 | refs/heads/master | 2020-03-20T18:07:43.319331 | 2019-02-13T22:07:10 | 2019-02-13T22:07:10 | 137,570,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | # Built-in Functions with Dictionary
#
# Built-in functions like all(), any(), len(), cmp(), sorted() etc. are commonly used with dictionary to perform different tasks.
# Built-in Functions with Dictionary Function Description
# all() Return True if all keys of the dictionary are true (or if the dictionary is empty).... | [
"eldadpuzach@gmail.com"
] | eldadpuzach@gmail.com |
f6450232aaf3f0568032b2d87c7fa644d8ab19c9 | 0c281ba9bb634d518536eea03059cdb05ba32cc5 | /many_to_one/migrations/0002_wpsuser.py | 1c896f777d6f0af5d69c690885ff05aa7fbc7677 | [] | no_license | parkhongbeen/Practice-Document | c09ef3a64d64c2067604b0c5f5d6fcabd96a8e50 | 441c1c1b21c6b66e1a01eea7487f6dffdfd98e58 | refs/heads/master | 2020-12-02T16:47:20.725694 | 2020-01-04T09:30:20 | 2020-01-04T09:30:20 | 231,061,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | # Generated by Django 2.2.9 on 2020-01-02 05:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('many_to_one', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='WPSUser',
... | [
"pack122@naver.com"
] | pack122@naver.com |
359e4313843a6aecb4d74aa0c3a945078ffed7bf | 893f83189700fefeba216e6899d42097cc0bec70 | /webpage/lib/python3.5/site-packages/matplotlib/tests/test_backend_pdf.py | 2feee6fb1238014212e65e61b693ae6c6637cac5 | [
"MIT"
] | permissive | pseudoPixels/SciWorCS | 79249198b3dd2a2653d4401d0f028f2180338371 | e1738c8b838c71b18598ceca29d7c487c76f876b | refs/heads/master | 2021-06-10T01:08:30.242094 | 2018-12-06T18:53:34 | 2018-12-06T18:53:34 | 140,774,351 | 0 | 1 | MIT | 2021-06-01T22:23:47 | 2018-07-12T23:33:53 | Python | UTF-8 | Python | false | false | 4,488 | py | # -*- encoding: utf-8 -*-
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
import io
import os
import numpy as np
from matplotlib import cm, rcParams
from matplotlib.backends.backend_pdf import PdfPages
from matplotlib import pyplot as plt
from ... | [
"golam.mostaeen@usask.ca"
] | golam.mostaeen@usask.ca |
54b4d3130aa1d007ebb68af85127de4f74fe2589 | 18b7f6e6a64ff4e33202f4c647d33240bf8ce015 | /Graph/Baek_1926.py | 3607ad4f55f10014997e3712a5551d0bbfe15fa5 | [] | no_license | qorjiwon/LevelUp-Algorithm | 80734b88e2543fb4b6da48377bb31b70d972b448 | 62a71552427290361e6ade9dcfe3ffc90a9d86e2 | refs/heads/master | 2023-06-16T16:33:44.427818 | 2021-03-12T14:39:25 | 2021-03-12T14:39:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | """
@ Baek 1926. 그림
@ Prob. https://www.acmicpc.net/problem/1926
Ref.
@ Algo: 그래프(BFS)
@ Start day: 20. 03. 18.
@ End day: 20. 03. 18.
"""
from collections import deque
dx = [0, 0, -1, 1]
dy = [1, -1, 0, 0]
def BFS():
t = 1
q.append((i, j))
check[i][j] = 1
while q:
x,... | [
"21300035@handong.edu"
] | 21300035@handong.edu |
916af822d50ca0fafb9a6c3f5bb98ced51dfb76c | f8e8e365c9cf58b61d72655bc2340baeaed5baff | /Leetcode/Python Solutions/Math/ReachingPoints.py | 0ac3289c31b1e8936a326fe489c9a2da788ad09e | [
"MIT"
] | permissive | Mostofa-Najmus-Sakib/Applied-Algorithm | 39a69f6b9ed113efe4a420d19cad79e0aa317637 | bc656fd655617407856e0ce45b68585fa81c5035 | refs/heads/master | 2023-08-31T19:54:34.242559 | 2021-11-05T03:43:35 | 2021-11-05T03:43:35 | 412,263,430 | 0 | 0 | MIT | 2021-09-30T23:45:29 | 2021-09-30T23:45:25 | null | UTF-8 | Python | false | false | 865 | py | """
LeetCode Problem: 780. Reaching Points
Link: https://leetcode.com/problems/reaching-points/
Language: Python
Written by: Mostofa Adib Shakib
Time Complexity: O(max(tx,ty))
Space Complexity: O(1)
"""
class Solution:
def reachingPoints(self, sx: int, sy: int, tx: int, ty: int) -> bool:
# If tx is smalle... | [
"adibshakib@gmail.com"
] | adibshakib@gmail.com |
8395fc7c7f92a208f8793b9f7b48c21bed9967d0 | 350db570521d3fc43f07df645addb9d6e648c17e | /0301_Remove_Invalid_Parentheses/solution_test.py | 2d7c1958b23dcdec8d5d9905ff2bd12cb4237244 | [] | no_license | benjaminhuanghuang/ben-leetcode | 2efcc9185459a1dd881c6e2ded96c42c5715560a | a2cd0dc5e098080df87c4fb57d16877d21ca47a3 | refs/heads/master | 2022-12-10T02:30:06.744566 | 2022-11-27T04:06:52 | 2022-11-27T04:06:52 | 236,252,145 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 384 | py |
'''
301. Remove Invalid Parentheses
Level: Hard
https://leetcode.com/problems/remove-invalid-parentheses
'''
import unittest
class TestSum(unittest.TestCase):
def test_sum(self):
self.assertEqual(sum([1, 2, 3]), 6, "Should be 6")
def test_sum_tuple(self):
self.assertEqual(sum((1, 2, 2)), 6... | [
"bhuang@rms.com"
] | bhuang@rms.com |
0f3b58683b7e2728255fccc69cf4195878792e65 | 28de04457e8ebcd1b34494db07bde8a3f25d8cf1 | /easy/symmetric_tree_101.py | 4480cfb339a9ab97cd6ab801aba0f4c8d142ae4b | [] | no_license | YangXinNewlife/LeetCode | 1df4218eef6b81db81bf2f0548d0a18bc9a5d672 | 20d3d0aa325d79c716acfc75daef32f8d4f9f1ad | refs/heads/master | 2023-08-16T23:18:29.776539 | 2023-08-15T15:53:30 | 2023-08-15T15:53:30 | 70,552,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,750 | py | # -*- coding:utf-8 -*-
__author__ = 'yangxin_ryan'
"""
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree [1,2,2,3,4,4,3] is symmetric:
1
/ \
2 2
/ \ / \
3 4 4 3
But the following [1,2,2,null,3,null,3] is not:
1
/ \
2... | [
"yangxin03@youxin.com"
] | yangxin03@youxin.com |
fd63cd6e400939b33de938e5de18673f74a5eae9 | f3e1423c27467e2501a5443a8767a40141752acc | /rx/core/operators/concat.py | 6c9eb5d63777ff846850ba55cd0d0a5d577af32e | [
"MIT"
] | permissive | py-lab/RxPY | a08a16cbb381aed08485e0e2c36098884f3ba903 | ce12560f9481dbd0d072911e12ff2ed30be328bf | refs/heads/master | 2020-08-09T10:25:38.111773 | 2019-10-05T20:44:32 | 2019-10-05T20:44:32 | 214,068,251 | 0 | 1 | MIT | 2019-10-10T02:28:10 | 2019-10-10T02:28:09 | null | UTF-8 | Python | false | false | 605 | py | from typing import Callable
import rx
from rx.core import Observable
def _concat(*sources: Observable) -> Callable[[Observable], Observable]:
def concat(source: Observable) -> Observable:
"""Concatenates all the observable sequences.
Examples:
>>> op = concat(xs, ys, zs)
Ret... | [
"dag@brattli.net"
] | dag@brattli.net |
af832263b949a29bb698b61d332031527b2055fb | 94560fcfd85bf81c326063ff035c593b2793863c | /asap/scripts/um_downsample_particles.py | 5e3e8b0b886b003c2d525ce23333a04b8689f99c | [
"Unlicense"
] | permissive | dr-guangtou/asap | 783a0607aea631c7d56ea9142e9e4f8505c3eac4 | 4b796b9708ee1a1d854d4ddf6d5c6e811941f55e | refs/heads/master | 2021-03-27T19:38:44.986573 | 2020-04-02T21:25:28 | 2020-04-02T21:25:28 | 111,163,115 | 2 | 0 | Unlicense | 2019-11-06T22:02:05 | 2017-11-18T00:20:30 | Jupyter Notebook | UTF-8 | Python | false | false | 2,339 | py | #!/usr/bin/env python
"""This script will read the dark matter particle table for the SMDPL
simulation, and downsample it for our model.
"""
import os
import argparse
import numpy as np
import pandas as pd
def downsample_particles(ptbl_file, n_million, seed=95064, csv=False, verbose=True):
"""Down-sample the par... | [
"dr.guangtou@gmail.com"
] | dr.guangtou@gmail.com |
81a3b8cf4112ab531cb3cfba9a91eded7429840b | fb1e852da0a026fb59c8cb24aeb40e62005501f1 | /kosmos-2/fairseq/fairseq/data/id_dataset.py | 3e4d7969cf2a26e852b466f165a6fadabae3b35f | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | microsoft/unilm | 134aa44867c5ed36222220d3f4fd9616d02db573 | b60c741f746877293bb85eed6806736fc8fa0ffd | refs/heads/master | 2023-08-31T04:09:05.779071 | 2023-08-29T14:07:57 | 2023-08-29T14:07:57 | 198,350,484 | 15,313 | 2,192 | MIT | 2023-08-19T11:33:20 | 2019-07-23T04:15:28 | Python | UTF-8 | Python | false | false | 423 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import torch
from . import FairseqDataset
class IdDataset(FairseqDataset):
def __getitem__(self, index):
return index
def ... | [
"1083127130@qq.com"
] | 1083127130@qq.com |
5a166c86274117ed654161b9db4ec8f72c03974e | d48aeeac74c02ae90d48c0994105027cee596f28 | /backend/bitter_fog_29287/wsgi.py | c1d64d470c8e7a5f73d506bb8bbeefaf596af81e | [] | no_license | crowdbotics-apps/bitter-fog-29287 | 6864b7668d09879d812d7438c580710b18c9958a | b24816c199dd45886c6ae563190fe1be731538be | refs/heads/master | 2023-07-02T14:52:19.004509 | 2021-07-30T15:43:54 | 2021-07-30T15:43:54 | 391,115,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for bitter_fog_29287 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
54e745ef71add4a8f93c5f04df6b32f38c5f29c8 | ee1dc4708fe2dbff1d528baf589255d8d39e56c0 | /0x0B-python-input_output/2-main.py | 64e107c075d3ce32ecbd0133c299ffd95538ae50 | [] | no_license | agzsoftsi/holbertonschool-higher_level_programming | f267991d6a917b9fc9dbd2f639394e9585bf33b6 | 89e37450d24e200cde3b29cde20b161e75723805 | refs/heads/master | 2021-07-03T15:16:30.381714 | 2021-03-01T16:36:11 | 2021-03-01T16:36:11 | 226,884,471 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | #!/usr/bin/python3
read_lines = __import__('2-read_lines').read_lines
print("1 line:")
read_lines("my_file_0.txt", 1)
print("--")
print("3 lines:")
read_lines("my_file_0.txt", 3)
print("--")
print("Full content:")
read_lines("my_file_0.txt")
| [
"agzsoftsi@gmail.com"
] | agzsoftsi@gmail.com |
dabd42749c4135637d3896146d27573906923be0 | 69d8e789b289edfeb2fc18d0ef1c395bde9fb375 | /minDepth_111.py | 0366cd7558f4835563f6d3285240573c83501c3b | [] | no_license | Lucces/leetcode | d2db842eae7cdf1d7b9c56844660eb6f1940d88a | 2c3dbcbcb20cfdb276c0886e0193ef42551c5747 | refs/heads/master | 2021-01-19T05:59:04.712086 | 2016-08-29T13:33:00 | 2016-08-29T13:33:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | #!/usr/bin/env python
# coding=utf-8
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def minDepth(self, root):
"""
:type root: TreeNode
:rtype: i... | [
"cntqrxj@gmail.com"
] | cntqrxj@gmail.com |
a65d37fbf1e635195b611f139195ad869fb87991 | 5b34d998c7798b7cc1068680d89a977151c66c1a | /test_appium/testcase/test_search.py | eeeaf76cfc58728e01b79222be8efedc5438455b | [] | no_license | Hanlen520/Hogwarts_11 | e79a0de2508dd6801d46893271bcbc239edff3e8 | 805ee2586a25da1e710ba3acf63b5591dd76fcc6 | refs/heads/master | 2022-07-18T11:03:09.692778 | 2020-04-13T14:57:49 | 2020-04-13T14:57:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@Project : Hogwarts_11
@File : test_search.py
@Time : 2020-03-30 10:30:18
@Author : indeyo_lin
"""
import pytest
from test_appium.page.app import App
class TestSearch:
def setup(self):
self.page = App().start().main().goto_search()
def test... | [
"indeyo@git.com"
] | indeyo@git.com |
812800e0ba2f557721a2771d61de9304ab8789cc | 3a1be455fc5e117bd8792ed46c59793f8b29a01f | /python/paddle/fluid/tests/unittests/ipu/test_greater_op_ipu.py | 934ad1014282703a4660e25725015fa588bb379a | [
"Apache-2.0"
] | permissive | liyancas/Paddle | 42d5e7c71c37b4e63bf54e6e31e82e40aef044ce | 98303291d27cb831b19111d82793159cbe9a85ca | refs/heads/develop | 2022-05-21T03:27:16.497238 | 2022-04-01T00:52:17 | 2022-04-01T00:52:17 | 72,499,865 | 0 | 0 | Apache-2.0 | 2022-02-11T08:16:37 | 2016-11-01T03:17:41 | Python | UTF-8 | Python | false | false | 5,422 | py | # Copyright (c) 2022 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | liyancas.noreply@github.com |
3d8f2df75d1761a1b24f57e53f4640e6fa499b23 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_117/ch27_2019_03_08_12_32_17_139310.py | beac39a68b2338e79d5a49e9521b451eff51529b | [] | 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 | 176 | py | cigarros=int(input("quantos cigarros fuma por dia?"))
anos=int(input("quantos anos?"))
Tempo_de_vida_perdido=((int(cigarros)*365)*int(anos))*10
print (Tempo_de_vida_perdido)
| [
"you@example.com"
] | you@example.com |
ebdec2b196300b6b5d65b0d2260ebb5f1d6fe028 | 7889f7f0532db6a7f81e6f8630e399c90438b2b9 | /1.5.0/mpl_examples/api/filled_step.py | 42d61dc917668293fb8e7bf059ba464eed8925e2 | [] | no_license | matplotlib/matplotlib.github.com | ef5d23a5bf77cb5af675f1a8273d641e410b2560 | 2a60d39490941a524e5385670d488c86083a032c | refs/heads/main | 2023-08-16T18:46:58.934777 | 2023-08-10T05:07:57 | 2023-08-10T05:08:30 | 1,385,150 | 25 | 59 | null | 2023-08-30T15:59:50 | 2011-02-19T03:27:35 | null | UTF-8 | Python | false | false | 6,444 | py | import itertools
from functools import partial
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.ticker as mticker
from cycler import cycler
from six.moves import zip
def filled_hist(ax, edges, values, bottoms=None, orientation='v',
**kwargs):
"""
Draw a histogram as a step... | [
"quantum.analyst@gmail.com"
] | quantum.analyst@gmail.com |
d8d1483f9f79e9e32c3b1a3028bd7eea445cce5b | b2cefb7a2a83aa93ee1b15a780b5ddf6c498215b | /nemo/collections/asr/parts/utils/rnnt_utils.py | 4b91eace8ad6f61848e401d3efd980c132c03d99 | [
"Apache-2.0"
] | permissive | VahidooX/NeMo | bfde8c9b48c818342a9c6290fb9dee62fafeca38 | 866cc3f66fab3a796a6b74ef7a9e362c2282a976 | refs/heads/main | 2023-07-23T19:13:39.948228 | 2022-04-29T21:51:54 | 2022-04-29T21:51:54 | 227,733,473 | 1 | 2 | Apache-2.0 | 2022-09-15T15:30:13 | 2019-12-13T01:55:21 | Jupyter Notebook | UTF-8 | Python | false | false | 5,863 | py | # Copyright (c) 2020, NVIDIA 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 by appli... | [
"noreply@github.com"
] | VahidooX.noreply@github.com |
72c20e2df29fcea30fe8377b3aafcd9722b96b2b | ef3ac1664accfe2f4f28800cb3dde383d04e2636 | /max len when alternating num are even and odd.py | 92e25b7c837f76ffaa71f84ffb3a4f3bebd3ae18 | [] | no_license | Shamabanu/python | 2466b253ead7249147844e22ede9017a2ffb299a | 76350525586b285773edb58912c1ba8eee35d1a6 | refs/heads/master | 2020-03-27T15:45:09.838053 | 2019-08-14T15:06:18 | 2019-08-14T15:06:18 | 146,736,750 | 3 | 6 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | num=input()
m=[]
s=0
for i in range(0,len(num)-1):
k=int(num[i])+int(num[i+1])
if k%2!=0:
s=s+1
else:
m.append(s)
s=0
m.append(s)
n=max(m)
if n==0:
print(0)
else:
print(n+1)
| [
"noreply@github.com"
] | Shamabanu.noreply@github.com |
02fe935d53fe2979fae0f6a73cfa11bc96de96d4 | 52d73c4b6ad70b62000d9d01e3dbab94f1edcb39 | /uiautomator2/settings.py | 7c6aea22b08ddeefc1661a927266e822bf257347 | [
"MIT"
] | permissive | zenjan1/uiautomator2 | ff50abae9bfe7430aea77bbf4431eab472153a8c | 907ea86099719edaec14f802f5182f1a8b359840 | refs/heads/master | 2022-06-04T06:44:07.467582 | 2020-05-03T07:17:14 | 2020-05-03T07:17:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | # coding: utf-8
#
import json
import logging
import pprint
from typing import Any
class Settings(object):
def __init__(self, d):
self._d = d
self._defaults = {
"post_delay": 0, # Deprecated
"wait_timeout": 20.0,
"xpath_debug": False, #self._set_xpath_debug,
... | [
"codeskyblue@gmail.com"
] | codeskyblue@gmail.com |
7e7b13cc713a73b93b9922fa4890545534bec49f | 149e9e52304a970ffb256f290fce5f614c9e20c4 | /Python Programming language/DataCampPractice/Corso_CISCO_netacad/modules/platform_module/m9_platform.py | 418ca4b294f6305bd778bfbbc88fc1fb4623c30e | [] | no_license | Pasquale-Silv/Improving_Python | 7451e0c423d73a91fa572d44d3e4133b0b4f5c98 | 96b605879810a9ab6c6459913bd366b936e603e4 | refs/heads/master | 2023-06-03T15:00:21.554783 | 2021-06-22T15:26:28 | 2021-06-22T15:26:28 | 351,806,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | """
But sometimes you want to know more - for example, the name of the OS which hosts Python,
and some characteristics describing the hardware that hosts the OS.
There is a module providing some means to allow you to know where you are and what components work for you.
The module is named
platform
We'll show you some ... | [
"55320885+Pasquale-Silv@users.noreply.github.com"
] | 55320885+Pasquale-Silv@users.noreply.github.com |
b4eadce6676c593ff4b4b8f33c4ab61fae97d601 | 77b16dcd465b497c22cf3c096fa5c7d887d9b0c2 | /Quintana_Jerrod/Assignments/f+sql_projects/login_registration/mysqlconnection.py | 4c155f5e9f6da54e3176b393d8fb413e17530147 | [
"MIT"
] | permissive | curest0x1021/Python-Django-Web | a7cf8a45e0b924ce23791c18f6a6fb3732c36322 | 6264bc4c90ef1432ba0902c76b567cf3caaae221 | refs/heads/master | 2020-04-26T17:14:20.277967 | 2016-10-18T21:54:39 | 2016-10-18T21:54:39 | 173,706,702 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | """ import the necessary modules """
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.sql import text
# Create a class that will give us an object that we can use to connect to a database
class MySQLConnection(object):
def __init__(self, app, db):
config = {
'host': 'localhost',
... | [
"43941751+curest0x1021@users.noreply.github.com"
] | 43941751+curest0x1021@users.noreply.github.com |
0fbd804353c409e267bd017d27c00640523191a2 | 1b787489aab83b2e06a8f658ee8e01a10eb01998 | /antpat/reps/hamaker.py | f4272ea25cf8388cb1ffd0520e9dc8142dc481d5 | [
"ISC"
] | permissive | daydreamer2023/AntPat | 7edd471bd1e0997eb5befa029120ba13b861f106 | 6dc416a1593346421337400f880e7159a07447f6 | refs/heads/master | 2022-01-22T17:52:39.300557 | 2019-08-15T08:41:24 | 2019-08-15T08:41:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,368 | py | #!/usr/bin/python
"""Hamaker's analytic antenna pattern model."""
#TobiaC 2015-11-29 (2015-07-31)
import sys
#sys.path.append('/home/tobia/projects/BeamFormica/AntPatter/')
import math
import cmath
import scipy.special
import numpy
from antpat import dualpolelem
from antpat.reps.sphgridfun import tvecfun, pntsonsphere... | [
"tobia@chalmers.se"
] | tobia@chalmers.se |
91554162b70e52b44dac5788af4f99b9d261c2e6 | 1a220abd21c56728aa3368534506bfc9ced8ad46 | /3.beakjoon/DP/BOJ_가장 큰 증가하는 부분 수열.py | f52f6d4ddeb092b4be6311015d24ddfacf7df44e | [] | no_license | JeonJe/Algorithm | 0ff0cbf47900e7877be077e1ffeee0c1cd50639a | 6f8da6dbeef350f71b7c297502a37f87eb7d0823 | refs/heads/main | 2023-08-23T11:08:17.781953 | 2023-08-23T08:31:41 | 2023-08-23T08:31:41 | 197,085,186 | 0 | 0 | null | 2023-02-21T03:26:41 | 2019-07-15T23:22:55 | Python | UTF-8 | Python | false | false | 340 | py | n = int(input())
nums = list(map(int,input().split()))
if n == 1:
print(nums[0])
exit(0)
LIS_sum = [0]*(n)
LIS_sum[0] = nums[0]
for i in range(1,n):
temp = 0
for j in range(i-1,-1,-1):
if nums[j] < nums[i]:
temp = max(temp, LIS_sum[j])
LIS_sum[i] = temp+nums[i]
... | [
"whssodi@gmail.com"
] | whssodi@gmail.com |
a5c5dcbc94612c0992dd51b396788cba593b0e91 | b224c7413b7e6a1cb78dad60b4899674fefe8269 | /openforce_financial_report/report/__init__.py | f25291a28701b525b54a4b167f885ea54eb1abb4 | [] | no_license | alessandrocamilli/7-openforce-addons | 2ee00b712538a8eb433d0ce0c63cd12a861548e6 | 78fc164679b690bcf84866987266838de134bc2f | refs/heads/master | 2016-08-03T11:58:12.730337 | 2014-07-03T10:29:56 | 2014-07-03T10:29:56 | 21,004,298 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Alessandro Camilli (a.camilli@yahoo.it)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# ... | [
"alessandrocamilli@openforce.it"
] | alessandrocamilli@openforce.it |
50a2ef5128dd7ed1fe459863cad3a6691fb09054 | 7ae754f51aaf2e6e559b925980c35fe795808537 | /02_分支/hm_07_火车站安检.py | 49c870c4d693840399ef573b305e8d8426bed2bc | [] | no_license | xiaohema233/PythonStart | be113d9359734d17eeb22b0584cf240a128fed3c | 44f98fc6c50f2c85b72ee029ec99d3099459f370 | refs/heads/master | 2022-05-15T19:33:22.363721 | 2022-05-09T06:28:05 | 2022-05-09T06:28:05 | 241,621,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | # 定义布尔型变量 has_ticket 表示是否有车票
has_ticket = True
# 定义整型变量 knife_length 表示刀的长度,单位:厘米
knife_length = 30
# 首先检查是否有车票,如果有,才允许进行 安检
if has_ticket:
print("车票检查通过,准备开始安检")
# 安检时,需要检查刀的长度,判断是否超过 20 厘米
if knife_length > 20:
# 如果超过 20 厘米,提示刀的长度,不允许上车
print("您携带的刀太长了,有 %d 公分长!" % knife_length)
... | [
"33052287+xiaohema233@users.noreply.github.com"
] | 33052287+xiaohema233@users.noreply.github.com |
44132d5bd3147c83d6a97cb746893c629d905bfa | 9c880db9912c35a73469f728245de78459763ce4 | /ProjectCode/DataPreprocess.py | de80744293fdabddd08e68bd8803a6da43957549 | [] | no_license | Lizi2hua/Project-111 | 3a17e396230c76bf47dd8209e801fe5edd079004 | 57dc7e331b5bfa860226e67c6f45de682720df98 | refs/heads/master | 2022-10-20T16:36:47.322765 | 2020-07-14T14:42:03 | 2020-07-14T14:42:03 | 277,501,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,166 | py | #将所有的数据处理函数都包含到此文件下
import SimpleITK as sitk
import os
import json
import glob
import SimpleITK as sitk
import pandas as pd
import matplotlib.pyplot as plt
# dcm数据处理函数
def dicom_metainfo(dicm_path, list_tag):
'''
获取dicom的元数据信息
:param dicm_path: dicom文件地址
:param list_tag: 标记名称列表,比如['0008|0018',]
:r... | [
"1050100964@qq.com"
] | 1050100964@qq.com |
a9cf8b7863b31cbd9969909edaa8c0ecef6230ee | bfd04e41f0b5b236ef937eb3922a105d00d25ce0 | /db/campaigns/migrations/0001_initial.py | 11a233e848f4766a19dd5444b69249caf5e3acf5 | [
"MIT"
] | permissive | cega/try.wq.io | 5c9dac3f428b2a92c63096f0cb882f264f684b9f | fcb12d5e26a05f6a653f0cf63e668ea1a2f088c2 | refs/heads/master | 2021-06-09T20:41:25.402542 | 2016-11-29T19:41:59 | 2016-11-29T19:41:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,079 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-23 15:59
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"andrew@wq.io"
] | andrew@wq.io |
d9b9389944f741e45759c518f06c672459fe46f7 | a281d09ed91914b134028c3a9f11f0beb69a9089 | /great_expectations/rule_based_profiler/domain_builder/column_pair_domain_builder.py | e7290588875208769d5627b986abc51a6ca0c953 | [
"Apache-2.0"
] | permissive | CarstenFrommhold/great_expectations | 4e67bbf43d21bc414f56d576704259a4eca283a5 | 23d61c5ed26689d6ff9cec647cc35712ad744559 | refs/heads/develop | 2023-01-08T10:01:12.074165 | 2022-11-29T18:50:18 | 2022-11-29T18:50:18 | 311,708,429 | 0 | 0 | Apache-2.0 | 2020-11-10T15:52:05 | 2020-11-10T15:52:04 | null | UTF-8 | Python | false | false | 3,949 | py | from __future__ import annotations
from typing import TYPE_CHECKING, Dict, List, Optional, Union
import great_expectations.exceptions as ge_exceptions
from great_expectations.core.metric_domain_types import MetricDomainTypes
from great_expectations.rule_based_profiler.domain import (
INFERRED_SEMANTIC_TYPE_KEY,
... | [
"noreply@github.com"
] | CarstenFrommhold.noreply@github.com |
2a947cb9b779beaefbc64505b7502fe3f4a97d72 | 38346ccf93e0c0d49a378b2532fe215669018829 | /nipype/interfaces/mrtrix/tests/test_auto_SphericallyDeconvolutedStreamlineTrack.py | 447ba546dd431fb73ff3b3ce3dbc8a4164d3feb4 | [
"BSD-3-Clause"
] | permissive | swederik/nipype | de509c2605bc83448240c7c3c68ee8d220d48ef3 | 872720a6fc00b00e029fb67742deedee524b2a9f | refs/heads/master | 2020-12-25T10:08:44.268742 | 2014-05-22T14:05:58 | 2014-05-22T14:05:58 | 1,421,176 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,106 | py | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.mrtrix.tracking import SphericallyDeconvolutedStreamlineTrack
def test_SphericallyDeconvolutedStreamlineTrack_inputs():
input_map = dict(args=dict(argstr='%s',
),
cutoff_value=dict(argstr='-... | [
"satra@mit.edu"
] | satra@mit.edu |
58fa7eb98f9ddaf9c735d1a5be9232da1b31fd64 | 87b66cbf9eb8aca426808734eb754f87cf3ec38e | /tests/dolfin/test_ascalarbar.py | c80a048a0c2e3a8970760f0d6197c67c8c5d50c3 | [
"MIT",
"LicenseRef-scancode-public-domain",
"OFL-1.1"
] | permissive | RubendeBruin/vtkplotter | ea33c38cc9df72c15d7ca2fa357205ea35a559bb | 641743f29289d6df3d44d366072b72e221d16a51 | refs/heads/master | 2023-05-25T13:06:24.774288 | 2023-05-01T10:27:19 | 2023-05-01T10:27:19 | 219,933,917 | 0 | 1 | MIT | 2019-11-06T07:10:46 | 2019-11-06T07:10:45 | null | UTF-8 | Python | false | false | 899 | py | import numpy as np
from dolfin import *
from dolfin import __version__
from vedo.dolfin import plot, screenshot, MeshActor, show
from vedo import settings
print('Test ascalarbar, dolfin version', __version__)
if hasattr(MPI, 'comm_world'):
mesh = UnitSquareMesh(MPI.comm_world, nx=16, ny=16)
else:
mesh = Unit... | [
"marco.musy@gmail.com"
] | marco.musy@gmail.com |
9a2213ec3ee95a7ecf2b52d08704ba5983875ca3 | 7f4306057991622329ed3ab43c8e338ebdfb6d74 | /pilgram/css/blending/tests/test_nonseparable.py | 9e606fbb615e0ff3891a7809437768cffa36a290 | [
"Apache-2.0"
] | permissive | akiomik/pilgram | d958312c98a5418d176ad884c50303e9f2731825 | 410252928e50e954472ff5ffcd45446aa8be32f7 | refs/heads/main | 2023-07-24T06:54:00.285954 | 2023-07-18T00:26:42 | 2023-07-18T00:26:42 | 169,348,812 | 90 | 19 | Apache-2.0 | 2023-09-12T12:31:08 | 2019-02-06T03:10:44 | Jupyter Notebook | UTF-8 | Python | false | false | 4,985 | py | # Copyright 2019 Akiomi Kamakura
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"akiomik@gmail.com"
] | akiomik@gmail.com |
44f89ac374c146890f0b8ea11344cfeacb3cc065 | 04a643a77927bc56ab58c7df91d4733321e61e51 | /p19_plots/fig_hair_mosh.py | 2bd63d253824490409c2a69e2466befa213887e2 | [] | no_license | dcollins4096/p19_newscripts | d2fae1807170a4d70cf4c87222a6258211f993ff | 23c780dd15b60944ed354406706de85282d0bee6 | refs/heads/master | 2023-07-21T11:53:55.188383 | 2023-07-18T17:38:21 | 2023-07-18T17:38:21 | 215,159,839 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,028 | py |
from starter2 import *
from collections import defaultdict
import scipy
import colors
import hair_dryer
reload(hair_dryer)
import three_loopers_u500 as TL
def simple_hair(this_looper,core_list=None):
if core_list is None:
core_list = np.unique(this_looper.tr.core_ids)
thtr=this_looper.tr
mask ... | [
"dccollins@fsu.edu"
] | dccollins@fsu.edu |
e0cb24cdf4bc78dca043fbefd148f25a1bede4f9 | 2a66fdf4ddcfb475f80a61a8d8c31b3a320c5bae | /code/hprog59.py | 3db8c1e47c0056cf681abeea658da9f87b3d3ba1 | [] | no_license | sujasriman/guvi | 12143757bee6e0679ca44f44a6624d34a6dd2cb4 | 74b4caf2a9c58da5e72eabe0b05adfe77310f71b | refs/heads/master | 2020-05-31T07:24:37.295062 | 2019-08-12T18:24:22 | 2019-08-12T18:24:22 | 190,163,562 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | n=int(input())
l=[]
l1=[]
for i in range(2):
l.append(input().split())
for i in range(n):
a=0
l1.append(int(l[a][i])+int(l[a+1][i]))
for i in range(n-1):
print(l1[i],end=' ')
print(l1[n-1])
| [
"noreply@github.com"
] | sujasriman.noreply@github.com |
8c3abcbe5c6d057c305c7384d01b769a48f5b9c5 | 425db5a849281d333e68c26a26678e7c8ce11b66 | /LeetCodeSolutions/LeetCode_0170.py | 2e5beb6f321161d1499a11d942cd419feca374df | [
"MIT"
] | permissive | lih627/python-algorithm-templates | e8092b327a02506086414df41bbfb2af5d6b06dc | a61fd583e33a769b44ab758990625d3381793768 | refs/heads/master | 2021-07-23T17:10:43.814639 | 2021-01-21T17:14:55 | 2021-01-21T17:14:55 | 238,456,498 | 29 | 8 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | class TwoSum:
def __init__(self):
"""
Initialize your data structure here.
"""
import collections
self.nums = collections.defaultdict(int)
def add(self, number: int) -> None:
"""
Add the number to an internal data structure..
"""
self.num... | [
"lih627@outlook.com"
] | lih627@outlook.com |
b0eaf2f6d26344d045fa9fdb82857f26f776ef18 | 00f1e3047afe17a4c213b7e5655a5a4d99dc94c6 | /mainapp/ajax.py | 0a395dae7a9fe960e7352907e86f2a6731622865 | [] | no_license | zhyfruit/DietCat | 3e52391cce3b3245c9ae940bea35e9ab5cfd2d74 | 15a66f5b9de3d8cbe7cce2fa4458de85dd383c76 | refs/heads/master | 2020-03-27T04:42:01.497212 | 2018-08-23T10:47:59 | 2018-08-23T10:47:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | from django.shortcuts import render
from django.shortcuts import HttpResponse
# 下载文件要用
from django.http import FileResponse
# 提交用户反馈,这里用了ajax
# 其实我觉得在这个页面不用ajax也没什么,毕竟这个页面也没有别的需要交互的东西
def subProp(request):
if request.method == 'POST':
# 获得提交的具体内容
msg = request.POST.get('prop')
print(msg)
... | [
"java233@foxmail.com"
] | java233@foxmail.com |
113d8826277c464d78f5df2901a3616ed0be649c | 307089d509d2b72ac036b7fcc5bd60f5759cca6f | /opencv/timelapse-usb.py | 5796e4b04d7171718fe2ddbaca9b0b4efb04bce1 | [] | no_license | bluemooninc/campi | 45a7bf480d6c507a20f132c64ed8315776ccacbb | 7614e2847e12442c1900281662b7bac587a9ee46 | refs/heads/master | 2020-04-06T13:12:41.184245 | 2016-09-06T14:40:03 | 2016-09-06T14:40:03 | 52,285,836 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,127 | py | import cv2
import numpy as np
import time
import datetime
import logging
import scp
import ConfigParser
import os.path
import os
import socket
import glob
import re
import lcd
##
## config
##
inifile = ConfigParser.SafeConfigParser()
inifile.read("/home/pi/camlaps.ini")
serialno = inifile.get("user","serialno")
frameWi... | [
"root@raspberrypi.(none)"
] | root@raspberrypi.(none) |
9cc2627bf5272352630d9aa278a96054cea3167f | 1f1b62a23e9267fba41a5f9dc757d2c107d3d7c1 | /www.scxsls.com/scxsls.py | 9446e44147732c749163f9f9de14280849a508bf | [
"Apache-2.0"
] | permissive | zzh-python/all-project | 0e45e2e542b9e63f6ed080ad47725d71f1590772 | 915a47fb42d63ff3a36814992283c2f4ed8703a3 | refs/heads/master | 2020-07-24T01:47:19.924959 | 2019-09-11T08:48:17 | 2019-09-11T08:48:17 | 207,765,744 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,362 | py |
from bs4 import BeautifulSoup
import requests
import time
import datetime
import json
import re
import xlsxwriter
import os
from docx import Document
from docx.shared import Inches
cook='UM_distinctid=16822772df50-0cca678828aea6-b353461-100200-16822772e8fd5; CNZZDATA5626149=cnzz_eid%3D569227167-15467632... | [
"379935132@qq.com"
] | 379935132@qq.com |
23ba4376c2e5ab6b6503f003f02cea08b743baa8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2813/60586/315241.py | 9b5ccf47b777567c25738279b88e15c540c046da | [] | 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 | 366 | py | x=int(input())
z=[]
for i in range(x):
z.append(input())
if x==3 and z[0]=="andrew 3"and z[1]=="andrew 2":
print("andrew")
elif x==3 and z[0]=="mike 3"and z[1]=="andrew 5":
print("andrew")
elif x==15 :
print("aawtvezfntstrcpgbzjbf")
elif x==10:
print("aawtvezfntstrcpgbzjbf")
elif x==17 :
print(... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
b61ec36b99c34c698da5c5d18d23ec69ebfac857 | 1a114943c92a5db40034470ff31a79bcf8ddfc37 | /stdlib_exam/stringio-example-3.py | b2b6aa2c19f7aec67b8f9b3e01fc7bc8b6628997 | [] | no_license | renwl/mylinux | 1924918599efd6766c266231d66b2a7ed6f6cdd1 | 0602fc6d2b0d254a8503e57310f848fc3e1a73b4 | refs/heads/master | 2020-07-10T22:12:03.259349 | 2017-01-02T12:32:04 | 2017-01-02T12:32:04 | 66,467,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | import io
import string, sys
stdout = sys.stdout
sys.stdout = file = io.StringIO()
print("""
According to Gbaya folktales, trickery and guile
are the best ways to defeat the python, king of
snakes, which was hatched from a dragon at the
world's start. -- National Geographic, May 1997
""")
sys.stdout = stdout
#prin... | [
"wenliang.ren@quanray.com"
] | wenliang.ren@quanray.com |
ef7741d54eeee85ae5344eff0a1b128c0f983cca | ddd466457316662a1455bae429740eb3c8411444 | /intro/5_8_loop_sum_odd_even.py | c34320afd5ec784e60b484fd6a9aec17b6837f95 | [] | no_license | fingerman/python_fundamentals | 9ef46e51d6e9b8328e9c949fa0f807f30bd6e482 | 1fb604220922530d1171200a3cf3a927c028a6ed | refs/heads/master | 2023-01-09T12:02:26.712810 | 2020-01-22T16:12:32 | 2020-01-22T16:12:32 | 151,728,846 | 0 | 0 | null | 2022-12-27T15:34:12 | 2018-10-05T13:58:10 | Python | UTF-8 | Python | false | false | 374 | py | n = int(input())
sumEven = 0
sumOdd = 0
for i in range(1, n+1):
if i % 2 == 0:
c = int(input())
sumEven = sumEven + c
elif i % 2 != 0:
d = int(input())
sumOdd = sumOdd + d
if sumEven == sumOdd:
print("Yes" + "\n" + "Sum = " + str(sumOdd))
elif sumEven != sumOdd:
print(... | [
"adamov.george@gmail.com"
] | adamov.george@gmail.com |
461e91c5ae3e88520a1d32ddd42f196b9e7dcc5d | ebaa12cfa89a44f7da2fa9cc2cd8028c7536e4ed | /blog/migrations/0001_initial.py | 4945c1a237aaa3db2192ce7c6724e00778edd595 | [] | no_license | likelionskhu7th/comment | 853786dcd895ec4af3242024086e6e8f18bd2b3d | fda93337791ea865a4d55f9dd14fdf78a6b81f40 | refs/heads/master | 2020-05-20T02:45:12.901725 | 2019-05-21T11:52:55 | 2019-05-21T11:52:55 | 185,340,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | # Generated by Django 2.2.1 on 2019-05-07 10:13
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
('id', m... | [
"gustn4563@gmail.com"
] | gustn4563@gmail.com |
5812d140f1eb56e0bfedb90c21e8abd19b1945c7 | cf763c59fe8f0cafe002da68bc2aae8df3f00617 | /setup.py | 23f385b190e3e72f9cddcdce6c5457aa06bd7c82 | [
"MIT"
] | permissive | Sandip117/pl-gpu-test | b993a75f717a8059201881c2fb740acf162ce818 | f4e37259fabb282f59ca2ff974733140101bf73b | refs/heads/master | 2021-04-23T20:27:22.609481 | 2020-04-06T20:18:15 | 2020-04-06T20:18:15 | 249,995,974 | 0 | 0 | MIT | 2020-03-30T15:54:07 | 2020-03-25T14:09:13 | Python | UTF-8 | Python | false | false | 1,107 | py |
import sys
import os
# Make sure we are running python3.5+
if 10 * sys.version_info[0] + sys.version_info[1] < 35:
sys.exit("Sorry, only Python 3.5+ is supported.")
from setuptools import setup
def readme():
print("Current dir = %s" % os.getcwd())
print(os.listdir())
with open('README.rst') as f:... | [
"rudolph.pienaar@gmail.com"
] | rudolph.pienaar@gmail.com |
df39650fa8bcc5df083b819e4b7b1060a76cf046 | 25970b0796082ed43e7662834b613e651fdcf648 | /0427/either/issue/views.py | 4510d6ba5d4782c633612faa678547e5888f8628 | [] | no_license | ttppggnnss/django_practice | 41668c6a5debced09ad999b68fc2ce2a84c4ef55 | 737e9a706688853bcfc21162ec815c103ca8e5eb | refs/heads/master | 2022-12-14T13:23:10.805575 | 2020-09-07T05:52:41 | 2020-09-07T05:52:41 | 293,249,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.contrib import messages
from django.views.decorators.http import require_POST
from .models import Issue, Reply
from .forms import IssueForm, ReplyForm
def index(request):
issues = Issue.objects.order_by('-pk')
context = {
'is... | [
"kimsae123@naver.com"
] | kimsae123@naver.com |
e43253a3f7cdcbde46879df0ba839aebfd0da1fb | 4e96f383d4703ad8ee58869ed91a0c8432c8a051 | /Cura/Uranium/tests/TestTrust.py | 957cf8e23e489144c14580cb9b46630ce0356987 | [
"LGPL-3.0-only",
"GPL-3.0-only"
] | permissive | flight7788/3d-printing-with-moveo-1 | b2dba26010c4fa31815bc1d2d0966161a8600081 | 7fcb9c6b5da9245d54ac917de8c2a7f5148e42b0 | refs/heads/Feature_Marlin_with_AlanBoy | 2022-08-30T18:36:44.785058 | 2020-05-30T07:52:58 | 2020-05-30T07:52:58 | 212,583,912 | 0 | 0 | MIT | 2020-05-16T07:39:47 | 2019-10-03T13:13:01 | C | UTF-8 | Python | false | false | 4,822 | py | import copy
from unittest.mock import patch, MagicMock
import pytest
import os
import random
import tempfile
from UM.Trust import TrustBasics, Trust
from scripts.signfile import signFile
from scripts.signfolder import signFolder
_folder_names = ["a", "b"]
_subfolder_names = ["sub", "."]
_file_names = ["x.txt", "y.tx... | [
"t106360212@ntut.org.tw"
] | t106360212@ntut.org.tw |
330d78a566adabb9d6ed5fb63fdf38dd9679a5b0 | e65ae5bd9ae1c93e7117e630f7340bc73aa71212 | /lib/database/mongodb/tools/clean.py | 9c260e3a71b08cbd719f369f0034eac8bf867378 | [
"Apache-2.0"
] | permissive | nadirhamid/oneline | e98ff1ed81da0536f9602ecdde2fb2a4fe80d256 | 833ebef0e26ae8e0cc452756381227746d830b23 | refs/heads/master | 2021-01-21T04:27:41.715047 | 2016-05-30T03:50:34 | 2016-05-30T03:50:34 | 23,320,578 | 1 | 2 | NOASSERTION | 2020-03-12T17:22:24 | 2014-08-25T16:29:36 | Python | UTF-8 | Python | false | false | 1,112 | py | # Copyright 2009-2014 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | [
"matrix.nad@gmail.com"
] | matrix.nad@gmail.com |
978556195551870174e1acfb634337587249570f | db3126a082b5b0d11bc3ea8c5b439a45d059909f | /pipenv/vendor/pythonfinder/models/pyenv.py | 1595a963a78bffe2f945c8f48a02d83113cedb09 | [
"MIT",
"BSD-3-Clause"
] | permissive | omkar-dsd/pipenv | 543da2f35246cf3004b1b27079e61c7f90c52cb4 | 810611d3c0205b6251a0d8c6501b3d4b160a4737 | refs/heads/master | 2020-04-04T16:37:14.988138 | 2018-11-04T07:27:11 | 2018-11-04T07:27:11 | 156,085,423 | 1 | 0 | null | 2018-11-04T13:33:08 | 2018-11-04T13:33:08 | null | UTF-8 | Python | false | false | 7,938 | py | # -*- coding=utf-8 -*-
from __future__ import absolute_import, print_function
import logging
import operator
from collections import defaultdict
import attr
import sysconfig
from vistir.compat import Path
from ..utils import (
ensure_path,
optional_instance_of,
get_python_version,
filter_pythons,
... | [
"dan@danryan.co"
] | dan@danryan.co |
a39a8d7424d5238f93f227379926bbe709bff466 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03042/s778355065.py | 4932b1ed9cf31ae9fbee443f2bfdab9f70f39a21 | [] | 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 | 295 | py | s = input()
head = int(s[:2])
tail = int(s[2:])
is_mmyy = False
is_yymm = False
if 1 <= head <= 12:
is_mmyy = True
if 1 <= tail <= 12:
is_yymm = True
if is_yymm and is_mmyy:
print('AMBIGUOUS')
elif is_yymm:
print('YYMM')
elif is_mmyy:
print('MMYY')
else:
print('NA')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fa41ee39285b9f185a32f8833a5831870b294041 | 5bf1dca7bcbbaca219ff6ab31777fba0212aee5a | /bugs/migrations/0117_auto_20190511_0029.py | 631a3f8f9c1f5e463b3fea118959c34a2926f269 | [] | no_license | Code-Institute-Submissions/Nordlander | d8b5935b3e701fae1ae785043988103602a24bc3 | 6400e424c3dc9ae41acc6e8a4684d33ed01a94a3 | refs/heads/master | 2020-05-24T13:46:41.472340 | 2019-05-18T00:13:40 | 2019-05-18T00:13:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-05-11 00:29
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bugs', '0116_auto_20190511_0020'),
]
operations = [
migrations.AlterField(
... | [
"brookkynaston@live.fr"
] | brookkynaston@live.fr |
3600ecac625a77bb66845f500fb757fbeb2f6d6f | 2a3743ced45bd79826dcdc55f304da049f627f1b | /venv/lib/python3.7/site-packages/jedi/third_party/typeshed/third_party/2and3/google/protobuf/api_pb2.pyi | 36468780e0e5691d1e7758c0318c5b7de10aab6b | [
"MIT",
"Apache-2.0"
] | permissive | Dimasik007/Deribit_funding_rate_indicator | 12cc8cd7c0be564d6e34d9eae91940c62492ae2a | 3251602ae5249069489834f9afb57b11ff37750e | refs/heads/master | 2023-05-26T10:14:20.395939 | 2019-08-03T11:35:51 | 2019-08-03T11:35:51 | 198,705,946 | 5 | 3 | MIT | 2023-05-22T22:29:24 | 2019-07-24T20:32:19 | Python | UTF-8 | Python | false | false | 2,266 | pyi | from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer,
)
from google.protobuf.message import (
Message,
)
from google.protobuf.source_context_pb2 import (
SourceContext,
)
from google.protobuf.type_pb2 import (
Option,
Syntax,
)
from typing import (
Iterable,
Opti... | [
"dmitriy00vn@gmail.com"
] | dmitriy00vn@gmail.com |
d06ea1986f9e77cd18b88918ff0a489b6d7fa2af | 03b4b71e5a73288ffa7453ed5ccaf8e53057da79 | /MassDelete.py | 667047346a23660016c840c9ccb74b454af1a28b | [] | no_license | M4cs/MassDelete-Telegram-Discord | b25035dc98d08ec3ec96439186263bece7ec0760 | 37bc6465504025adb8b640d485585c5b1fd36964 | refs/heads/master | 2020-03-28T20:48:33.523481 | 2018-09-17T09:54:19 | 2018-09-17T09:54:19 | 149,103,991 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,419 | py | #!usr/bin/python3
# -*- coding: utf-8 -*-
import os, sys, time, psutil, win32com.client
def main():
print("""
Mass Discord Message Deleter by Macs
Delete Messages In Any Chat In Discord or Telegram Windows App.
With This You Will Be Able To Automate Deleting of Personal
Messages Without The Use Of A Selfbot.
En... | [
"maxlikescs@gmail.com"
] | maxlikescs@gmail.com |
9dee772e81806a8fd6e131d2f2364f1a18d3ebc6 | 2f74c4d2e5c6dd51eb3eaf0ee4b97122b26e7066 | /unit_02/04_object-oriented/2-Inheritance/rpg/characters.py | b1a8ceecbd20dd879227f7f8fd3ffe0936fbd126 | [
"MIT"
] | permissive | duliodenis/python_master_degree | c6a4ccf5d98c48cfc1efd29dfc116bf55b6b4f01 | 3ab76838ce2fc1606f28e988a3273dd27122a621 | refs/heads/master | 2020-04-14T09:03:51.863305 | 2019-07-22T23:05:19 | 2019-07-22T23:05:19 | 163,751,089 | 21 | 5 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | class Character:
def __init__(self, name="", **kwargs):
if not name:
raise ValueError("'name' is required")
self.name = name
for key, value in kwargs.items():
setattr(self, key, value)
| [
"dulio.denis@yahoo.com"
] | dulio.denis@yahoo.com |
f47f9093f017659333e6273e7216cae6b7c19062 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc012/B/4831396.py | 17e998546c2da875090f921a4089fb8b0487c03a | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | n, m = map(int, input().split())
g = {}
used = {i:[False for _ in range(11)] for i in range(n)}
color = [0 for _ in range(n)]
for _ in range(m):
u, v = map(int, input().split())
u-=1
v-=1
if u not in g:
g[u] = []
if v not in g:
g[v] = []
g[u].append(v)
... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
0276d5cdd8155571af835e9e1fd67c2cac949128 | 2e4d33bad14ab88195fc9aac3b2d0841bacfa767 | /python-udemy/Assessments_and_Challenges/Objects_and_Data_Structures/list.py | 1a2d2a9959f9a1b75d1825469af482858c1f824d | [] | no_license | Richiewong07/Python-Exercises | 062ea8386abad50efccfe398ca61972435f9e218 | a99816b23ad6fd338b26d66b5ccfd09bf6ddc527 | refs/heads/master | 2018-07-09T01:48:36.777998 | 2018-06-01T03:55:10 | 2018-06-01T03:55:10 | 103,578,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | # Reassign 'hello' in this nested list to say 'goodbye' instead:
list = [1,2,[3,4,'hello']]
list[2][2] = "goodbye"
print(list)
# Sort the list below:
list2 = [5,3,4,6,1]
print(sorted(list2))
list2.sort()
print(list2)
| [
"richiewong07@yahoo.com"
] | richiewong07@yahoo.com |
b1962e0e9f2c59f82edbe2c5876c621034548995 | 7b102f9c8f2e3f9240090d1d67af50333a2ba98d | /gbd_2019/shared_code/cod_database/12. Noise reduction/run_phase_finalclean.py | e571261061d68d1868399f75b2d3a6e346799569 | [] | no_license | Nermin-Ghith/ihme-modeling | 9c8ec56b249cb0c417361102724fef1e6e0bcebd | 746ea5fb76a9c049c37a8c15aa089c041a90a6d5 | refs/heads/main | 2023-04-13T00:26:55.363986 | 2020-10-28T19:51:51 | 2020-10-28T19:51:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,034 | py | """Final step before uploading data.
This phase includes raking, age aggregation, creating upper/lower bounds
for CoDViz, and calculating variances for CODEm
"""
import sys
import os
from cod_prep.utils import (
print_log_message,
enforce_asr
)
from cod_prep.claude.cf_adjustments import Raker
from cod_prep.c... | [
"cheth@uw.edu"
] | cheth@uw.edu |
be725ea9e6bae1bf24a18a6c291c9b57be27a15e | 78c144b1341f6b6d791e2949a95963033f27478c | /bauh/gems/arch/mapper.py | 55e05d16ca1c80d439831a6b0744fcb7588a6551 | [
"Zlib"
] | permissive | albanobattistella/bauh | 9b50b9a0262f7a914aeb11456dffe58264cbba7b | e00ae4f05b8c7ffde7407333e55446768eb89cce | refs/heads/master | 2022-08-15T17:13:30.542002 | 2019-11-25T19:37:39 | 2019-11-25T19:37:39 | 223,788,308 | 1 | 0 | NOASSERTION | 2019-11-24T18:10:20 | 2019-11-24T18:10:20 | null | UTF-8 | Python | false | false | 5,010 | py | import re
from datetime import datetime
from bauh.api.abstract.model import PackageStatus
from bauh.api.http import HttpClient
from bauh.gems.arch.model import ArchPackage
URL_PKG_DOWNLOAD = 'https://aur.archlinux.org/{}'
RE_LETTERS = re.compile(r'\.([a-zA-Z]+)-\d+$')
RE_VERSION_SPLIT = re.compile(r'[a-zA-Z]+|\d+|[\.... | [
"vinicius_fmoreira@hotmail.com"
] | vinicius_fmoreira@hotmail.com |
635c356beec5500a27dea54111b21deafa95ba2e | 24977a5bff7b2d8a13796c3dee703afb46bda3d5 | /IntroductionToPythonAndProgrammingBasic-Cisco-master/Model Driven Programmability - DevnNet20/Files Scripts Python/08_parse-json_sol.py | 546b7830842b356931f3285bc20badd263b8afa3 | [] | no_license | chunche95/ProgramacionModernaPython | 139699fd35923406b5cf92d65465738a5ae1d423 | 9da99388e73c29c021a0637be7ac74c6926f0ceb | refs/heads/master | 2023-05-09T18:37:27.845901 | 2021-02-28T11:39:53 | 2021-02-28T11:39:53 | 185,662,309 | 3 | 0 | null | 2023-05-02T18:56:10 | 2019-05-08T18:49:17 | Jupyter Notebook | UTF-8 | Python | false | false | 4,800 | py | #Replace "your_api_key" with your MapQuest API key
import urllib.parse
import requests
main_api = "https://www.mapquestapi.com/directions/v2/route?"
key = "your_api_key"
while True:
orig = input("Starting Location: ")
if orig == "quit" or orig == "q":
break
dest = input("Destination: ")
if d... | [
"paeste95.pb@gmail.com"
] | paeste95.pb@gmail.com |
f720b00c51af60267ee6a57f26e4c29c413ebfb1 | a2dce63dc04f484d1457073610343378656a1ffd | /p90.py | 7b330e887a1cd710fbcc921f7b4dbc7b9b9b01dc | [] | no_license | analaura09/pythongame | 5ece67047095160cdbc56ae3bb14920c787d8d02 | 54c83cf731a384fdb04bc4c3ed0bcf109b03d5ed | refs/heads/main | 2023-03-29T00:35:35.713616 | 2021-03-21T17:53:28 | 2021-03-21T17:53:28 | 348,432,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | aluno = dict()
aluno['nome']=input('nome:')
aluno['media']=float(input(f'media de {aluno["nome"]}:'))
if aluno['media'] >= 7:
aluno['situaçao']='aprovado'
elif 5 <= aluno['media'] < 7:
aluno['situaçao'] ='reprovado'
print('-='*30)
for k,v in aluno.items():
print(f' - {k} é igual a {v}')
| [
"pereira.laura@escolar.ifrn.edu.br"
] | pereira.laura@escolar.ifrn.edu.br |
b65beaa3bbdb3eae8c26ffa844c28fe459936b66 | b5b31c75ce9086872c4097db1130fac1a9b95b5b | /model.py | 5fcc16b3224ea65b7ff467e46a3da99672369c6a | [] | no_license | shmuel19-meet/LocalEat | 261558f9099ff51355fcd61568a2daa86b8a3730 | 642b7926944c8a519733068267e72eea20ff0ad3 | refs/heads/master | 2022-12-11T22:31:40.950583 | 2019-07-24T09:17:26 | 2019-07-24T09:17:26 | 174,370,824 | 0 | 3 | null | 2022-12-08T05:53:58 | 2019-03-07T15:28:23 | JavaScript | UTF-8 | Python | false | false | 2,659 | py | from sqlalchemy import Column, Integer, String, Boolean, Float
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, sessionmaker
from sqlalchemy import create_engine
Base = declarative_base()
class User(Base):
__tablename__ = "User"
id_table = Column(Intege... | [
"myname21@meet.mit.edu"
] | myname21@meet.mit.edu |
748457e1140e93665890f47c6df0eef0c8d9d539 | af98a6b70ed86a1c6c3c9cd3f07b0934c5ced093 | /src/toll/fixtures/bad/bad.py | 86ea1ac5b02411ae2f9597f2cd241fa08783a226 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-2-Clause"
] | permissive | icemac/toll | 071d97e9992c91ba46effc7f4a990cd2a6f7cd62 | edefe6fa5d1ee3b4cd4c6b57c19b1df84551c33b | refs/heads/master | 2021-01-19T13:08:34.405470 | 2020-09-01T05:34:22 | 2020-09-01T06:35:18 | 88,068,713 | 5 | 2 | BSD-2-Clause | 2020-09-01T06:35:20 | 2017-04-12T15:38:27 | Python | UTF-8 | Python | false | false | 271 | py | import unittest
class Test_Bad(unittest.TestCase):
"""It fails."""
def test_fine__1(self):
self.assertTrue(False)
def test_suite():
"""Create test suite for `python setup.py test`."""
return unittest.TestSuite([unittest.makeSuite(Test_Bad)])
| [
"mh@gocept.com"
] | mh@gocept.com |
c29fe1d1e2ed7f97ac7bce1578ca0ffb86c8868a | a68fcfabacf0e55f690a4416d9f84fd26f9ed18f | /bonus1/exercises/exercise3/exercise3.py | a2623fe1918770b83429a35e37397256ff1231a3 | [
"Apache-2.0"
] | permissive | twin-bridges/nornir_course | b10e12ded7dec43f50bdb4e76f434fb458c3574c | 4a10b472cf01dc94b811d1c06b9d53c84aa68fe9 | refs/heads/master | 2022-07-26T20:54:25.573390 | 2022-07-15T17:38:55 | 2022-07-15T17:38:55 | 185,249,635 | 72 | 25 | Apache-2.0 | 2022-07-15T17:38:56 | 2019-05-06T18:23:59 | Python | UTF-8 | Python | false | false | 432 | py | from nornir import InitNornir
from nornir_utils.plugins.functions import print_result
def netmiko_direct(task):
# Manually create Netmiko connection
net_connect = task.host.get_connection("netmiko", task.nornir.config)
return net_connect.find_prompt()
if __name__ == "__main__":
with InitNornir(conf... | [
"ktbyers@twb-tech.com"
] | ktbyers@twb-tech.com |
12d1f4c42ce25953d4b200cbd33fb52f4c5abdfe | 0eb599c3bbfa6e5b31516913b88cc9db3a1311ce | /GCJ/GCJ2020_1B_b_interactive_runner.py | f2c57deb3504c247a7fc2e07a54e009f4512fc53 | [] | no_license | Linus-MK/AtCoder | 5b84dc88c2d2773d0f97ed18265d303290da7879 | a587e89a9e0c2ab4d36b09176bcc95e901e14326 | refs/heads/master | 2022-11-25T05:37:12.148722 | 2022-11-17T16:04:10 | 2022-11-17T16:04:10 | 169,840,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,814 | py | # This code can be run as python2 or python3 in most systems.
#
# This is a small program that runs two processes, connecting the stdin of each
# one to the stdout of the other.
# It doesn't perform a lot of checking, so many errors may
# be caught internally by Python (e.g., if your command line has incorrect
# syntax... | [
"13600386+Linus-MK@users.noreply.github.com"
] | 13600386+Linus-MK@users.noreply.github.com |
5d0bfc9c267ed71d3e943012c68336e577a583cd | 671488a42bdb32ebc19ff38343a7699015fa9583 | /CLA/results/compare.py | b240204be91862ddaf07922bd8e63f8888b3b80c | [] | no_license | BML-MultiRobot/Multi-Box-Push | 86bec8b91485d169ec5181d17ecd4948912f4f93 | 8c453b83ddeabe7cb269d0526644c22d82a19bd0 | refs/heads/master | 2023-05-14T23:20:57.542293 | 2021-06-03T19:05:26 | 2021-06-03T19:05:26 | 298,180,234 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,074 | py | import sys, pickle
import matplotlib.pyplot as plt
import os
folders = ['off_policy_cf_ddac', 'off_policy_cf_ddac_2', 'off_policy_IQL']
folders = sorted(folders)
def get_moving_average(lst, resolution):
cumsum, moving_aves = [0], []
for i, x in enumerate(lst, 1):
cumsum.append(cumsum[i - 1] + x)
... | [
"austinnguyen517@berkeley.edu"
] | austinnguyen517@berkeley.edu |
4c02231110503dfc680f80c5f0a8855268fb2848 | 1e50f1643376039ca988d909e79f528e01fa1371 | /leetcode/editor/cn/726.原子的数量.py | fb4edc58afe746d833ec1a01367967d1342ffb48 | [] | no_license | mahatmaWM/leetcode | 482a249e56e2121f4896e34c58d9fa44d6d0034b | 4f41dad6a38d3cac1c32bc1f157e20aa14eab9be | refs/heads/master | 2022-09-04T17:53:54.832210 | 2022-08-06T07:29:46 | 2022-08-06T07:29:46 | 224,415,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,645 | py | #
# @lc app=leetcode.cn id=726 lang=python3
#
# [726] 原子的数量
#
# https://leetcode-cn.com/problems/number-of-atoms/description/
#
# algorithms
# Hard (44.85%)
# Likes: 78
# Dislikes: 0
# Total Accepted: 3.5K
# Total Submissions: 7.7K
# Testcase Example: '"H2O"'
#
# 给定一个化学式formula(作为字符串),返回每种原子的数量。
#
# 原子总是以一个大写字母开... | [
"chrismwang@tencent.com"
] | chrismwang@tencent.com |
d33dd7b63868126ce7bf4913b02c330c9ff78284 | dde33c083b2923fa4adabcc696cf0ed21a4837ef | /cybercom_queue/util.py | b81bc08bd769dd9fd8764fc4ec0a18ae9353e8de | [
"BSD-3-Clause"
] | permissive | oulib-datacatalog/cybercommons | 28cee16f2dff36c016789b148132fdc27db7ab49 | 2665659228259508123e31fd71fb68f70aa6c048 | refs/heads/main | 2023-06-24T20:01:58.757200 | 2022-09-21T19:39:23 | 2022-09-21T19:39:23 | 251,441,512 | 0 | 10 | BSD-3-Clause | 2023-06-15T19:58:59 | 2020-03-30T22:20:30 | Python | UTF-8 | Python | false | false | 902 | py | __author__ = 'mstacy'
import sys
def trim(docstring):
if not docstring:
return ''
# Convert tabs to spaces (following the normal Python rules)
# and split into a list of lines:
lines = docstring.expandtabs().splitlines()
# Determine minimum indentation (first line doesn't count):
indent... | [
"mbstacy@gmail.com"
] | mbstacy@gmail.com |
1694951498da2ad6b95eeae715bc400b8770b999 | bc441bb06b8948288f110af63feda4e798f30225 | /easy_work_service_sdk/model/monitor/alert_range_pb2.pyi | 7c70da75b437636d222d16eee32fe5638966a771 | [
"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 | 2,270 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from easy_work_service_sdk.model.monitor.alert_event_pb2 import (
AlertEvent as easy_work_service_sdk___model___monitor___alert_event_pb2___AlertEvent,
)
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor_... | [
"service@easyops.cn"
] | service@easyops.cn |
b5350998e793f72686b2d5ea68ffbafa347ac10c | 2251e611c24426c1f787a2c58bb1bbf2a5018cf9 | /chcemvediet/apps/inforequests/forms/clarification_response.py | 848580f591bf2a1f03bbb54106019b390594e180 | [] | no_license | gitter-badger/chcemvediet | 68ff6fb1bf9d3c1b4d2c67b7118c42944e176a70 | 661082369495a97d0f8bdf8e5a775f4a06277799 | refs/heads/master | 2020-12-26T18:41:55.615024 | 2015-12-11T01:29:38 | 2015-12-11T01:29:38 | 48,106,138 | 0 | 0 | null | 2015-12-16T11:20:57 | 2015-12-16T11:20:56 | null | UTF-8 | Python | false | false | 4,663 | py | # vim: expandtab
# -*- coding: utf-8 -*-
from django import forms
from django.utils.translation import ugettext_lazy as _
from django.contrib.sessions.models import Session
from poleno.attachments.forms import AttachmentsField
from poleno.utils.models import after_saved
from poleno.utils.urls import reverse
from polen... | [
"martin@github.ksp.sk"
] | martin@github.ksp.sk |
f7cf470b5bc308f5ac1729277bacc3471d63f065 | be2a81f03e8a2dac7d356dde7a3ffdcfe3f77e00 | /providers/com/figshare/v2/migrations/0002_favicon.py | b74fa5df61b4fd11cad5cf7c9ff7a40c2fb842f4 | [
"Apache-2.0"
] | permissive | Stevenholloway/SHARE | 4193bbd3ca50765a24bf21c0cc14438175fbb678 | b9759106d12c2ff548bad22c4be8650e9f41e61e | refs/heads/develop | 2021-01-21T19:13:35.205983 | 2017-02-23T14:45:46 | 2017-02-23T14:45:46 | 63,431,390 | 0 | 0 | null | 2016-07-15T15:17:45 | 2016-07-15T15:17:44 | null | UTF-8 | Python | false | false | 459 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-02-01 21:23
from __future__ import unicode_literals
from django.db import migrations
import share.robot
class Migration(migrations.Migration):
dependencies = [
('com.figshare.v2', '0001_initial'),
('share', '0018_store_favicons'),
]... | [
"chriskseto@gmail.com"
] | chriskseto@gmail.com |
0d47b387ecdcd63cf06997e6b94745e34488e70f | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /WBsxNXnqeFr4es9oh_11.py | 05d4b8426d27ac7a24fed8b4bc62b4249477a61b | [] | 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 | 1,959 | py | """
In **Clockwise Cipher** , encoding is done by placing message characters in
the corner cells of a square and moving in a clockwise direction.
Create a function that takes an argument `message`, and returns the **encoded
message**.
There are some variations on the rules of encipherment. One version of the
ciphe... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a974511c8d4f4eea341e3475123871ddf39fcf49 | 24c5c46f1d281fc15de7f6b72a5148ae85f89fb4 | /SRC/demo/imooc/imooc_advanced/文件IO高效处理/part5.py | 95bf4363644347a2b13b050019262fd1169ef12e | [] | no_license | enterpriseih/easyTest | 22d87c7ffe40fb10a07f7c5cdd505f63dd45adc0 | 43b8d294e898f25055c78313cfece2753352c250 | refs/heads/master | 2023-08-23T22:55:14.798341 | 2020-02-11T09:13:43 | 2020-02-11T09:13:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | # 如何访问文件的状态
# 文件的类型
# 文件的访问权限
# 文件的最后访问 修改 节点状态更改时间
# 普通文件的大小
#
# 方法一: 标准库中os模块下的三个系统调用stat,fstat,lstat获取文件状态
# os.stat 不取符号链接
# os.lstat 取符号链接
# os.fstat 需要一个打开的文件描述符
# open().fileno() #获取文件描述符
import os, stat,time
s = os.stat('demo.txt')
print(s.st_mode)
print(bin(s.st_mode))
print(stat.S_ISDIR(s.st_mode)) # 判断状态
p... | [
"yaolihui0506"
] | yaolihui0506 |
7534586b26049b6a1df685966ea721bd74d2fd71 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/86/usersdata/236/58743/submittedfiles/pico.py | abe26e0bc7e8432854b8628ab529927705d3a298 | [] | 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 | 534 | py | # -*- coding: utf-8 -*-
def pico (lista):
def cresncente (lista):
i=1
cont1=0
while lista[i]>lista[i-1]:
i=i+1
cont1=cont1+1
def decrescente (lista):
while lista[i]<lista[i-1]:
i=i+1
cont2=cont2+1
if (cont1+cont2)==(len(lista)-1):
print... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ddcdc27572a19ef988a11713433e4beec21812b3 | 3665ef60ba2cde4c13a8d192b8779a2f43dd9980 | /python/ray/tests/kubernetes_e2e/test_k8s_operator_scaling.py | 1d2511685df5490cf9f6750448cdd343a5b8495f | [
"MIT",
"Apache-2.0"
] | permissive | QPC-database/amazon-ray | 45783aa27977d7afda0bfa1b076be414f5dd1328 | 55aa4cac02a412b96252aea4e8c3f177a28324a1 | refs/heads/main | 2023-06-12T17:07:49.202429 | 2021-07-08T17:58:32 | 2021-07-08T17:58:32 | 384,644,975 | 1 | 0 | Apache-2.0 | 2021-07-10T08:05:02 | 2021-07-10T08:05:02 | null | UTF-8 | Python | false | false | 6,571 | py | """
Tests scaling behavior of Kubernetes operator.
(1) Start a cluster with minWorkers = 30 and verify scale-up
(2) Edit minWorkers to 0, verify scale-down
(3) Submit a task requiring 14 workers using Ray client
(4) Verify scale-up, task execution, and scale down.
"""
import copy
import kubernetes
import subprocess
i... | [
"noreply@github.com"
] | QPC-database.noreply@github.com |
8a7738f0d32537b2f0994883b51fa8ae1b0e8c30 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-hilens/huaweicloudsdkhilens/v3/model/delete_secret_response.py | aa4df97a980ce2ea5cf944f3cadf638e76878e29 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,211 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DeleteSecretResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the va... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
0c498980bf25b8dfbd71c2f2472b890eb46bed3f | ac33e7a30131db58f0e72c9bf1f79cd34a38d335 | /manufacturing/doctype/stability_product_specification/stability_product_specification.py | 1292b97230dcb653d9bc46cc130feb66b19ebaa7 | [] | no_license | mbhavesh95863/erpnext | 395d545292c67cc5d6d7be3029d03245c754d984 | d6c490e4a404235abe9b4d541de1bbb53ba32949 | refs/heads/master | 2020-03-26T20:03:45.620397 | 2018-08-19T12:46:43 | 2018-08-19T12:46:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe.utils import cint, cstr, flt
class StabilityProductSpecification(D... | [
"erpnextdeveloper1@gmail.com"
] | erpnextdeveloper1@gmail.com |
5da051244616584e88c4cd12cafd5e1ee72871da | 8f88c31a3218646e61d9891b230a289621066faa | /rcbfp/apps.py | 77601995314f45e92d5605b7bca8b30a790d5f1f | [] | no_license | jorgec/rcbfp-backend-web | e72fdc203b4ab22127f82255faec63ba6a28703f | 5472a82538494fe897d5379e844dcbb0d0d8f041 | refs/heads/master | 2021-01-26T11:54:19.672898 | 2020-02-22T07:36:36 | 2020-02-22T07:36:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | # Application definition
INSTALLED_APPS = [
]
INSTALLED_APPS += [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize'
]
# Logging and debugging
INSTALLE... | [
"markjungersaniva@gmail.com"
] | markjungersaniva@gmail.com |
8b5b3e59563bc105597e183f6fea7f1ef9ddadf0 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /055_modules/001_modules/examples/Python 3 Most Nessesary/12.2.Listing 12.15. The contents of the main program.py | 47eabaf9e133a17462e0bf428724e32c448b96d1 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 366 | py | # -*- coding: utf-8 -*-
from module1 import *
from module2 import *
import module1, module2
print(s) # Выведет: "Значение из модуля module2"
print(module1.s) # Выведет: "Значение из модуля module1"
print(module2.s) # Выведет: "Значение из модуля module2"
input() | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
7f23b5c699cad4f4a7f30661ea327d0201a9dfe6 | bd87d8947878ccb2f5b720e70a22493b00868fd3 | /bee/01basics/basics.py | 5c8af0d21a92dd0a4306103a5277afc532240e41 | [] | no_license | damiansp/completePython | 4cbf12ef682a1d4a5498f77e407dc02e44a7d7ac | 3f5e2f14d79c93df5147b82d901190c054535158 | refs/heads/master | 2023-09-01T20:50:03.444440 | 2023-08-28T00:27:57 | 2023-08-28T00:27:57 | 99,197,610 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | #!/usr/bin/env python3
import cmath # complex math
# Getting Input from User
meaning = input('The meaning of life: ')
print('%s, is it?' %meaning)
x = int(input('x: ')) # 3 only?
y = int(input('y: '))
print('xy = %d' %(x * y))
# cmath and Complex Numbers
print(cmath.sqrt(-1))
print((1 + 3j) * (9 + 4j))
#name = raw... | [
"damiansp@gmail.com"
] | damiansp@gmail.com |
ba87068732a9123c6844d2c7a4f6cf2818a6a686 | 06ae8168b7067c8f77f06a48a22d158af1657651 | /teafound/migrations/0004_auto_20210411_1314.py | 76b6eb5f48409d932a3ab3028003f36582b7e115 | [] | no_license | Jiangjao/teaProject | 61e3cab41fab4b1aa8d2b1cfd6c6337c01196497 | 9f14d59d974bf82158a43d19c42b977b393857d2 | refs/heads/master | 2023-08-12T11:38:56.561815 | 2021-10-11T06:30:17 | 2021-10-11T06:30:17 | 347,795,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | # Generated by Django 3.0 on 2021-04-11 05:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('teafound', '0003_auto_20210330_1509'),
]
operations = [
migrations.AddField(
model_name='chemistry',
name='entryname',... | [
"918718278@qq.com"
] | 918718278@qq.com |
698a82d67584b20bbeec34810819d8c8af499121 | 3e405caed737ae72c504bbbaa542d03fd886d8cc | /aplot/colors.py | dffd075fe20290f47e0fdc4b85da6576c207fdab | [] | no_license | alvarolopez/aplot | 89611309698ccd78edba4a31b9e0a29389c67571 | e881ab70f74e0ab3999e177ea1f350da614f88f6 | refs/heads/master | 2016-08-12T05:51:06.255050 | 2015-12-17T09:45:21 | 2016-01-17T11:42:46 | 48,102,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | from matplotlib import cm
from matplotlib import pyplot
import numpy
# These are the "Tableau 20" colors as RGB.
tableau20 = [(31, 119, 180), (174, 199, 232), (255, 127, 14), (255, 187, 120),
(44, 160, 44), (152, 223, 138), (214, 39, 40), (255, 152, 150),
(148, 103, 189), (197, 176, 213), (14... | [
"aloga@ifca.unican.es"
] | aloga@ifca.unican.es |
638aca7dfce5519e601786e1b869cfa33cd48f09 | 650d8fb0348989e919359bbbc7f4b40888f38b87 | /case_management/cpbns/doctype/participant_identified/test_participant_identified.py | c02d04e916af98a2083f73e05ec349bbdadac616 | [
"MIT"
] | permissive | worldkingpradeep/case_management | 4f0daa467f3a1c83be0cc431307298e31282a5ee | d39af5f49614672fc30ac6019eb0772c28de3df3 | refs/heads/master | 2023-03-18T05:09:13.797475 | 2021-01-23T15:27:22 | 2021-01-23T15:27:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Akram Mutaher and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestParticipantIdentified(unittest.TestCase):
pass
| [
"you@example.com"
] | you@example.com |
4b13b7e42c2daec731d0176f7ae8c407716eeb47 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/operations/_operations.py | aec0cfc6052ac274273da1b0d2196dae4a48717c | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 6,505 | 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 |
087e778dd0a985adefd0d54e25b7977edd159a2a | 737728a38690e2e31c4b4c1a998fae923502cf54 | /Python/20058_마법사상어와파이어스톰.py | ea777152f74b546b0f3419128405a6e1d4dc89d3 | [] | no_license | chaeonee/baekjoon | 528c300f15f7f88a4c608a46e7b82aa6cf325a76 | 90da231f7134ab10a3649d4038da3ad6d631de45 | refs/heads/master | 2023-06-27T03:17:54.908553 | 2021-07-26T07:06:53 | 2021-07-26T07:06:53 | 220,909,690 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | import sys
from collections import deque
sys.setrecursionlimit(100000)
def checkIce(N, ice):
new_ice = [[0]*N for _ in range(N)]
c_dir = [[-1,0],[1,0],[0,-1],[0,1]]
for x in range(N):
for y in range(N):
check = 0
for dx, dy in c_dir:
dx += x
dy += y
if 0 <= dx < N and 0 <= dy < N and ice[dx][d... | [
"noreply@github.com"
] | chaeonee.noreply@github.com |
f0726feaad28d68f162f4eb3e242c62833307ecb | cdb186ad49bba1406c81f634b936e73f8cb04009 | /ABC/120/d2.py | 59601ef036cf61ce1bab54e68b795dbf3a972c45 | [] | no_license | ToshikiShimizu/AtCoder | 9e46f5581f2c1f5149ce1394d61d652cda6256a3 | 41fe6408c20c59bbf1b5d7ee9db2e132f48ad1ac | refs/heads/master | 2023-07-26T22:45:51.965088 | 2023-07-10T14:11:35 | 2023-07-10T14:11:35 | 148,154,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,617 | py | class UnionFind:
def __init__(self, n):
self.nodes = n
self.parents = [i for i in range(n)]
self.sizes = [1] * n
self.rank = [0] * n
def find(self, i): # どの集合に属しているか(根ノードの番号)
if self.parents[i] == i:
return i
else:
self.parents[i] = self.f... | [
"tamreff3290@gmail.com"
] | tamreff3290@gmail.com |
d26d7340ae7caa87d85733eb2be12086b2f83ad4 | 8aca00af527752d527303d0f5260e818a5f49d27 | /VAE/Vanilla_VAE/train.py | 0b4eae02aed7f9355a5ead20b6769a92f30142cb | [] | no_license | tobby2002/generative_models | 2b01b7110b9f7cc258742694eb912b4b087d8571 | aee760bf2d281512e2b52c273e12daa3314f77f9 | refs/heads/master | 2021-01-21T04:26:53.828509 | 2017-06-29T08:56:02 | 2017-06-29T08:56:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | import argparse
import os
from solver import Solver
# from torch.backends import cudnn
from data_loader import mnist_data_loader
from configs import get_config
def main(config):
data_loader = mnist_data_loader(
image_path=config.image_path,
batch_size=config.batch_size,
train=True)
sol... | [
"heythisischo@gmail.com"
] | heythisischo@gmail.com |
a7fa75c779672492052164329d3bed0f821ea051 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03141/s588799336.py | ebd887e107d7cc9e8aef470dc771fa270d4b87c5 | [] | 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 | 750 | py | import sys
def solve():
input = sys.stdin.readline
N = int(input())
T, A = [None] * N, [None] * N
used = [False] * N
for i in range(N):
a, b = map(int, input().split())
T[i] = (a + b, a, i)
A[i] = (a + b, b, i)
T.sort(reverse = True)
A.sort(reverse = True)
hapine... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
041e74a93a32e8ecf62389e69580bde92a4029be | bd28f8a8dbcf7f2b4be3bcc0c0e656009191d379 | /predict_nn/ranlp/rsr/mi/lstm.py | 7b46f1ff48c11e224884dc9848aef46c174b4aa0 | [
"MIT"
] | permissive | nicolay-r/attitudes-extraction-ds | e2e5f9218408514ca1f3eff5edf88771e2f368ee | 49a82843e6adbca35321aaaa08d05532e953a0fc | refs/heads/master | 2022-08-30T04:51:14.133899 | 2020-05-28T11:06:01 | 2020-05-28T11:06:01 | 197,908,649 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | #!/usr/bin/python
import sys
sys.path.append('../../../../')
from predict_nn.ranlp.rsr.config import TEST_ON_EPOCHS, MI_CONTEXTS_PER_OPINION
from networks.ranlp.io_rsr import RaNLPConfTaskRuSentRelIO
from networks.mimlre.base import MIMLRE
from networks.ranlp.model_mimlre import RaNLPConfTaskMIMLREModel
from networks.m... | [
"kolyarus@yandex.ru"
] | kolyarus@yandex.ru |
fd9a87cff6770478db8de311c0a2d82fd99f9919 | 2fb1ab65258d724ea869f8684db444cff0464d7e | /gym_copter/rendering/twod.py | acda7172d4bdd17a17f2e325d07b814f584b8bf7 | [
"MIT"
] | permissive | coletta1/gym-copter | 3cf80dd710da8222b91b8714e6fc78540faa684a | 841a8ea2c5343e289bc06efd6ad49a75ba14cccd | refs/heads/master | 2023-02-13T19:45:01.352539 | 2021-01-07T17:06:58 | 2021-01-07T17:06:58 | 327,072,254 | 0 | 0 | MIT | 2021-01-07T14:07:19 | 2021-01-05T17:34:03 | null | UTF-8 | Python | false | false | 6,088 | py | '''
2D quadcopter rendering
Copyright (C) 2020 Simon D. Levy
MIT License
'''
from gym.envs.classic_control import rendering
import Box2D
from Box2D.b2 import fixtureDef, polygonShape
class TwoDRenderer:
VIEWPORT_W, VIEWPORT_H = 600, 400
SCALE = 30.0
GROUND_Z = 3.33
GEAR_HEIGHT = 0.85
LANDER_P... | [
"simon.d.levy@gmail.com"
] | simon.d.levy@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.