blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
781b6ed80d74e389945eae3cb38ae76e1db490f6 | 2a6f1afa7678e5d76efe01b1474eda59d442ae0f | /venv/Lib/site-packages/jesse/store/state_candles.py | ba7f6dbdeeebd1a5b42bae0273167d64478e98c3 | [] | no_license | cagridincel/CagriTrade | 6b50c785efc3eb43487724be59511a5850a92145 | 86839e6604eb18850f6410acf5f6993da59b74ec | refs/heads/master | 2023-03-03T09:16:29.965177 | 2021-02-16T13:01:18 | 2021-02-16T13:01:18 | 338,672,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,029 | py | import numpy as np
import jesse.helpers as jh
import jesse.services.selectors as selectors
from jesse.config import config
from jesse.enums import timeframes
from jesse.exceptions import RouteNotFound
from jesse.libs import DynamicNumpyArray
from jesse.models import store_candle_into_db
from jesse.services.candle impo... | [
"cagridincel@gmail.com"
] | cagridincel@gmail.com |
00440d45b3060c0984ce7edc9e4ac40220ccd1bb | 5ff8cefa68d52d2427bb3d35320cd8bd0d072968 | /Python/function.py | b37cd2866485f3b2690cac066f765b069d08c364 | [] | no_license | gsudarshan1990/PythonSampleProjects | a65a111454f8dc551f1cd29901cead0798ad6dc3 | 3c1a5174c5f966b0eed2828221add76ec0d019d5 | refs/heads/master | 2020-05-09T16:02:37.743568 | 2019-07-14T06:22:55 | 2019-07-14T06:22:55 | 181,255,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py |
def say_hi():
print('Hi! Welcome to python functions')
def program_to_add_two_numbers():
data1=input('Enter the first value')
data2=input('Enter the second value')
data3=int(data1)+int(data2)
print(data3)
def say_hi_from_command_line(name):
print('Hello {} how are you'.format(name))
def sa... | [
"sudharshan.govindarajan@ey.com"
] | sudharshan.govindarajan@ey.com |
98646c1825664b848ab78bddca0a52fea3d4f37a | 446b36ebe2eae156fbac7dcf1c50d467bd8bda93 | /artellapipe/__version__.py | 059e18e19b275b625118ed020ba630246c2024ef | [
"MIT"
] | permissive | ArtellaPipe/artellapipe | cd08f29d4ac8ca0eb304f944864632c1f98f81cb | 3400f6a55f124f639143fe01c559059eaba23b22 | refs/heads/master | 2023-04-06T13:08:34.445823 | 2021-01-29T22:52:23 | 2021-01-29T22:52:23 | 197,077,090 | 8 | 0 | MIT | 2023-03-21T22:35:32 | 2019-07-15T21:48:38 | Python | UTF-8 | Python | false | false | 508 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Version module for artellapipe
"""
from __future__ import print_function, division, absolute_import
__author__ = "Tomas Poveda"
__license__ = "MIT"
__maintainer__ = "Tomas Poveda"
__email__ = "tpovedatd@gmail.com"
__version__ = None
def get_version():
global ... | [
"tpovedatd@gmail.com"
] | tpovedatd@gmail.com |
4742e8ffbe6d84c6a4f32e83697808989bfb9c8c | cd80ef21610010b534430cc9de5c47cddc8b351c | /tests/test_utils/test_load_raw_schema.py | d2e58a61b20637fa70e8e744949bf61779f4f7af | [
"CC0-1.0"
] | permissive | lushacao/biolinkml | 7124437b0fc6cd2fb8e84fa50e5e187513693fb0 | a492ec8e0d5dc464407b25a70d363674131155bf | refs/heads/master | 2020-05-26T15:13:31.416209 | 2019-04-09T14:53:55 | 2019-04-09T14:53:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,482 | py | import os
import unittest
from typing import Callable
from jsonasobj import as_json, loads, as_dict
from biolinkml import METAMODEL_URI
from biolinkml.meta import SchemaDefinition
from biolinkml.utils.rawloader import load_raw_schema
from biolinkml.utils.schemaloader import SchemaLoader
from tests.test_utils import d... | [
"solbrig@jhu.edu"
] | solbrig@jhu.edu |
b8a5a42c89dedd95e2f1cfec27a8724602834c02 | 0fb7f29ca82e0588064dfee096d6bbefb5d86771 | /amqp_client/apps.py | 5d2cd1c458f8cfa424424acbf8c0e36e80710f72 | [] | no_license | dschien/minimal_django_celery | f4b9b2d46a068d12db5e65b37ff97145f00b26e1 | 1dd6d4d8afb056207a26f5a84b48fd98deaca5c4 | refs/heads/master | 2021-01-17T17:35:34.674049 | 2016-05-30T05:13:20 | 2016-05-30T05:13:20 | 59,981,483 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from django.apps import AppConfig
class AmqpClientConfig(AppConfig):
name = 'amqp_client'
| [
"dschien@gmail.com"
] | dschien@gmail.com |
1d46722876803893a9031d256552fb3ff8871627 | b92417413ec5b05ca25695de55934ce7072a0f0a | /test/test_v1_source_control_user.py | 272e12fdb5ccbc057c74caf86bff1ed08f2c5e16 | [
"Apache-2.0"
] | permissive | detiber/lib_openshift | be1f0f1b3eec62c9bbf50a3fcea61303a870c112 | efea21ce6f67e3d48885c03ae22978c576c0b87d | refs/heads/master | 2021-01-18T04:12:00.820052 | 2016-10-04T03:20:43 | 2016-10-04T03:20:43 | 63,102,761 | 0 | 0 | null | 2016-07-11T21:15:36 | 2016-07-11T21:15:36 | null | UTF-8 | Python | false | false | 1,320 | py | # coding: utf-8
"""
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
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
... | [
"jdetiber@redhat.com"
] | jdetiber@redhat.com |
15ed6ca2de5e81a647689b26bfa84a582b393614 | 8a699595e7f156b1ade42f6042900b3331831fbf | /src/transformers/models/funnel/__init__.py | b9c6b9608d3787ef46211639297da693cde0c8c9 | [
"Apache-2.0"
] | permissive | stas00/transformers | ab654371a387c5883fc882dd0286177875d6d3b4 | 7c5d79912a21880ce13d77881940458e90d98917 | refs/heads/master | 2023-02-16T00:22:41.298155 | 2022-04-08T20:55:42 | 2022-04-08T20:55:42 | 278,214,696 | 6 | 0 | Apache-2.0 | 2022-01-28T18:39:00 | 2020-07-08T23:24:49 | Python | UTF-8 | Python | false | false | 3,496 | py | # flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | [
"noreply@github.com"
] | stas00.noreply@github.com |
5441121600dc115f36870bfe9ba621150d9a807b | be0c6e2071945edcb47ee4f3fadc1f4629a2c6aa | /grandapp/migrations/0159_gwascata.py | bd3973db6cc1f9639c5721276b1eec0a9fcd0592 | [] | no_license | QuackenbushLab/grand | 9719a395e6a30951c3ffdef1eccdb5e422da737c | f23031d1f240550d25c2842b4af0aae08c653bae | refs/heads/master | 2023-08-10T09:58:58.381264 | 2023-07-25T18:23:26 | 2023-07-25T18:23:26 | 201,113,575 | 5 | 2 | null | 2022-06-24T19:11:29 | 2019-08-07T19:18:58 | JavaScript | UTF-8 | Python | false | false | 622 | py | # Generated by Django 3.0.2 on 2021-04-17 03:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('grandapp', '0158_gobpbygene'),
]
operations = [
migrations.CreateModel(
name='Gwascata',
fields=[
('... | [
"marouen.b.guebila@gmail.com"
] | marouen.b.guebila@gmail.com |
0b66e9d9f992078632fda7ba4aab15fea059fe55 | ecf1ce6f8b592f76c7b7c253608c1264ae0676a3 | /days/day033/movie_logbook.py | b380e0535a073660df262734541a8f403ae4d0b4 | [] | permissive | alex-vegan/100daysofcode-with-python-course | 94e99880a50ac412e398ad209ed53796f253641f | b6c12316abe18274b7963371b8f0ed2fd549ef07 | refs/heads/master | 2021-07-20T23:05:59.721661 | 2019-01-21T16:18:25 | 2019-01-21T16:18:25 | 150,115,516 | 0 | 0 | MIT | 2018-09-24T14:28:16 | 2018-09-24T14:28:15 | null | UTF-8 | Python | false | false | 3,017 | py | from typing import List
import requests
import collections
import os
from urllib.request import urlretrieve
from requests.exceptions import ProxyError, ConnectionError, HTTPError, SSLError
import logbook
import sys
FILE = 'movie_logbook.log'
resp_logger = logbook.Logger('Resp')
url_path = 'http://movie_service.talk... | [
"alex-vegan@outlook.com"
] | alex-vegan@outlook.com |
116ad72261ac13f32e56b96af2857a706496f8f3 | 4eeb40dcc265caf4a2b84bc90a28d481930d6a8a | /wristwatchesproj/genericviews/urls.py | f85318b0a8fa4ada057cdb8357d59b5e5c64d300 | [] | no_license | mprasu/Sample-Projects | eb7fc46e81b09d7c97c238047e3c93b6fff3fb8d | 7363baf630900ab2babb4af2afe77911d8a548b2 | refs/heads/master | 2020-04-16T06:43:16.345750 | 2019-01-12T07:07:34 | 2019-01-12T07:07:34 | 165,358,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from django.conf.urls import url
from django.urls import path
from genericviews import views
#app_name = 'genericviews'
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^(?P<pk>[0-9]+)/$', views.DetailsView.as_view(), name='detail'),
url(r'^makeentry$', views.MakeEn... | [
"muppuriprasanna5@gmail.com"
] | muppuriprasanna5@gmail.com |
56f1079c44dd79e3fc140abdf1cdfe15a672ec6e | 33a917d58f796de42d3f90c7ab0a0353066c8a4b | /constants.py | 20f9cd9dd32e0f3ec6ecab79f4d3222233c424e0 | [] | no_license | evanthebouncy/tangram | d214cec6e164e9b21d83cf2fcacf753d8ca837e5 | c8a7c13bcad7c9b4c96a6b296db707ddcf32241b | refs/heads/master | 2021-04-26T23:06:12.465094 | 2018-07-18T13:46:00 | 2018-07-18T13:46:00 | 123,930,799 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | # all the constant globals shared across codes
OPS = ['P', 'H', 'V']
n_hidden = 40
# n_hidden = 120 # good embedding bad decomposition
large_hidden = 10 * n_hidden
L = 6
SHAPE_TYPES = ['1', '2', '3', '4', '5']
# SHAPES = ['1', '1', '2', '3', '4', '5', '5']
SHAPES = ['1', '2', '3']
# SHAPES = ['1', '2', '3', '4', '5']... | [
"evanthebouncy@gmail.com"
] | evanthebouncy@gmail.com |
c15f1497d32ffbd1dd767da2c379c75b43300541 | eec4e9956b360998e34e9a6efd23744b3b0cdf9c | /my_plugins/python-mode/submodules/rope/ropetest/refactor/change_signature_test.py | 944ffb5482f6c2c0cb2289aac309f8143b510830 | [
"MIT",
"LGPL-3.0-only",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"GPL-2.0-only"
] | permissive | dragon7-fc/vimrc | 7f89f8730090e81c8cb78cdc471437e35defd0c1 | d5968c222023bfdbd68b4f047f6e407e978cc82f | refs/heads/master | 2021-06-22T03:35:34.474482 | 2021-01-29T00:34:20 | 2021-01-29T00:34:20 | 182,471,836 | 0 | 0 | MIT | 2019-04-21T01:37:18 | 2019-04-21T01:37:17 | null | UTF-8 | Python | false | false | 22,123 | py | try:
import unittest2 as unittest
except ImportError:
import unittest
import rope.base.exceptions
from rope.refactor import change_signature
from ropetest import testutils
class ChangeSignatureTest(unittest.TestCase):
def setUp(self):
super(ChangeSignatureTest, self).setUp()
self.project... | [
"dragon7.fc@gmail.com"
] | dragon7.fc@gmail.com |
71c3e117bf80800cdf39ffb2bccf323f46bcca2c | 981ecc9cf59dd6f839c3e40d26601efb1d073558 | /src/face_recognition/youtube_dl/extractor/ard.py | 2d5599456688eba9756e28c2ffe9dbae48decb2c | [
"MIT"
] | permissive | lodemo/CATANA | 469e0684b816f09ac74f186552b463cc77db369e | a349f460772511ccbb16429b40bfb50f774d45d4 | refs/heads/master | 2023-03-30T04:07:12.070332 | 2021-02-03T21:47:32 | 2021-02-03T21:47:32 | 102,767,095 | 12 | 6 | MIT | 2023-03-24T21:55:24 | 2017-09-07T17:36:45 | Jupyter Notebook | UTF-8 | Python | false | false | 11,725 | py | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from .generic import GenericIE
from ..utils import (
determine_ext,
ExtractorError,
qualities,
int_or_none,
parse_duration,
unified_strdate,
xpath_text,
update_url_query,
)
from ..compat... | [
"moritzlode@gmail.com"
] | moritzlode@gmail.com |
a06cf4d1ec1fe5c2ef51f4f2e617bb1fda1ec0c7 | 137ba8a70dfcf94dfe7aeef1599341ecc06ca48f | /student_result/2018/04_parsing/parsing_13.py | 485d391f72037db4058ecdbac9b7637466f7058f | [] | no_license | smtamh/oop_python_ex | e1d3a16ade54717d6cdf1759b6eba7b27cfc974e | bd58ee3bf13dad3de989d5fd92e503d5ff949dd9 | refs/heads/master | 2020-09-22T08:35:19.847656 | 2019-11-13T02:47:06 | 2019-11-13T02:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py | import bs4
import requests
# pip3 install requests
# pip3 install beautifulsoup4
def get_html(url):
"""웹사이트 주소를 입력받아 html tag를 읽어 반환"""
response = requests.get(url)
response.raise_for_status()
return response.text
# 전달받은 페이지의 제목, 별점, 리뷰를 반환 함수
def movie_review_page(page):
html = get_html(
... | [
"kadragon@sasa.hs.kr"
] | kadragon@sasa.hs.kr |
a5c74481adc2762f626d94daf9deb43125532d4c | 162e2588156cb2c0039c926c5c442363d9f77b00 | /data_steward/cdr_cleaner/cleaning_rules/covid_ehr_vaccine_concept_suppression.py | 1601ac11a20c04fcd9a8cadea05debe08ac71228 | [
"MIT"
] | permissive | nishanthpp93/curation | 38be687240b52decc25ffb7b655f25e9faa40e47 | ac9f38b2f4580ae806121dd929293159132c7d2a | refs/heads/develop | 2022-08-08T20:33:53.125216 | 2021-12-03T21:38:48 | 2021-12-03T21:38:48 | 155,608,471 | 1 | 0 | MIT | 2020-10-09T01:14:39 | 2018-10-31T18:54:34 | Python | UTF-8 | Python | false | false | 6,340 | py | """
Suppress COVID EHR vaccine concepts.
Original Issues: DC-1692
"""
# Python imports
import logging
# Project imports
from cdr_cleaner.cleaning_rules.deid.concept_suppression import AbstractBqLookupTableConceptSuppression
from constants.cdr_cleaner import clean_cdr as cdr_consts
from common import JINJA_ENV, CDM_T... | [
"noreply@github.com"
] | nishanthpp93.noreply@github.com |
a3da500227494dc20d9023e0ec3170314752b6aa | 6b2c9c056c2fc7a9c622355e9a00da00c22d626a | /venv/Lib/site-packages/pip/_internal/locations.py | 6bfbe43dc4ebb7de0c4a0bda1e64c2459cba740c | [] | no_license | LeoM666/GameKlanRedLion | 0a42f06add1ff396d375c2ace63d7112f41281f6 | 5cb22b8326bffcaf351180497b7c47b43e316621 | refs/heads/master | 2020-06-11T20:21:02.154926 | 2019-08-03T07:45:33 | 2019-08-03T07:45:33 | 194,073,919 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,934 | py | """Locations where we look for configs, install stuff, etc"""
from __future__ import absolute_import
import os
import os.path
import platform
import site
import sys
import sysconfig
from distutils import sysconfig as distutils_sysconfig
from distutils.command.install import SCHEME_KEYS # type: ignore
from pip._inter... | [
"leonboiko061@gmail.com"
] | leonboiko061@gmail.com |
4cc0e90527df6b74090fa2055c2f1b2087e39b1c | 45da2549e8943738618ad1b774abeaa13ed463b0 | /cian_parser/management/commands/urls_parser_cian.py | f057e37c493dde6d53c5645a5f1fde7ad115c543 | [] | no_license | ShashkinRoman/cian_parser | 02ea484457123915e6c7d3def90f5bc76ae5893b | 8a4bb0b8bb2cf5fd1a059a568bd862bdeafa8bc1 | refs/heads/master | 2023-02-05T09:14:27.748810 | 2020-12-23T11:07:50 | 2020-12-23T11:07:50 | 291,051,494 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from django.core.management.base import BaseCommand
from cian_parser.urls_parser import main as urls_main
class Command(BaseCommand):
help = 'urls parser'
def handle(self, *args, **options):
urls_main()
| [
"romanshashkin@mail.ru"
] | romanshashkin@mail.ru |
c65c2414f43a95a3c537c9d9a57f181522594a14 | 236ed63fc380b10e43fd326e3f17f1ddc8f28b4e | /apps/goods/serializer.py | 7bd4b70073afa4e2aaea35e22f6fd6812815ba2e | [] | no_license | pylarva/restFrameworkShop | 53585caab80b82f82f6d693292ccf4fa8bf33810 | ddc88dc0ebbdd50927f9b4e6f1d8e4a65239cddb | refs/heads/master | 2020-03-24T23:22:13.780622 | 2018-08-01T10:29:35 | 2018-08-01T10:29:35 | 143,130,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | # !/usr/bin/env python
# -*- coding:utf-8 -*-
from rest_framework import serializers
from .models import Goods, GoodsCategory
# 1) 使用笨办法序列化数据
# class GoodsSerializer(serializers.Serializer):
# name = serializers.CharField(required=True, max_length=108)
# click_num = serializers.IntegerField(default=0)
# g... | [
"lichengbing9027@gamil.com"
] | lichengbing9027@gamil.com |
3ade350b48eac09ac2875ce074001fd47ea18ca4 | 1ab7b3f2aa63de8488ce7c466a67d367771aa1f2 | /Ricardo_OS/Python_backend/venv/lib/python3.8/site-packages/pandas/tests/groupby/test_bin_groupby.py | f20eed4575e91ce541b6e4f2835eacbe462fdb96 | [
"MIT"
] | permissive | icl-rocketry/Avionics | 9d39aeb11aba11115826fd73357b415026a7adad | 95b7a061eabd6f2b607fba79e007186030f02720 | refs/heads/master | 2022-07-30T07:54:10.642930 | 2022-07-10T12:19:10 | 2022-07-10T12:19:10 | 216,184,670 | 9 | 1 | MIT | 2022-06-27T10:17:06 | 2019-10-19T09:57:07 | C++ | UTF-8 | Python | false | false | 4,083 | py | import numpy as np
import pytest
from pandas._libs import groupby, lib, reduction as libreduction
from pandas.core.dtypes.common import ensure_int64
import pandas as pd
from pandas import Series, isna
import pandas._testing as tm
def test_series_grouper():
obj = Series(np.random.randn(10))
dummy = obj.iloc... | [
"kd619@ic.ac.uk"
] | kd619@ic.ac.uk |
c3e17c5290ac282d69fd29259472c75ac146da2c | 0ddcfcbfc3faa81c79e320c34c35a972dab86498 | /puzzles/minimum_score_of_a_path_between_two_cities.py | 8914e671e9bcec78b594033d27ea3e966a60aca7 | [] | no_license | IvanWoo/coding-interview-questions | 3311da45895ac4f3c394b22530079c79a9215a1c | 1312305b199b65a11804a000432ebe28d1fba87e | refs/heads/master | 2023-08-09T19:46:28.278111 | 2023-06-21T01:47:07 | 2023-06-21T01:47:07 | 135,307,912 | 0 | 0 | null | 2023-07-20T12:14:38 | 2018-05-29T14:24:43 | Python | UTF-8 | Python | false | false | 1,899 | py | # https://leetcode.com/problems/minimum-score-of-a-path-between-two-cities/description/
"""
You are given a positive integer n representing n cities numbered from 1 to n. You are also given a 2D array roads where roads[i] = [ai, bi, distancei] indicates that there is a bidirectional road between cities ai and bi with a... | [
"tyivanwu@gmail.com"
] | tyivanwu@gmail.com |
1b7f698663463ef8f33f245786a62d037968f89d | c8847d4117204f1d26ad47488152234a64aefb0d | /hypergan/samplers/static_batch_sampler.py | 81931e59ada7b5a027cd5459aa7b45db299cc08f | [
"MIT"
] | permissive | Solertis/HyperGAN | 851f27aa9ba2ef89b6d50f86987c6746c831502d | 1aceed20c9d9f67de8e3b290ee84f376d64228f0 | refs/heads/master | 2021-01-20T14:01:52.353117 | 2017-02-11T09:48:22 | 2017-02-11T09:48:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py |
from hypergan.util.ops import *
from hypergan.util.globals import *
from hypergan.samplers.common import *
#mask_noise = None
z = None
y = None
def sample(sample_file, sess, config):
global z, y
generator = get_tensor("g")[0]
y_t = get_tensor("y")
z_t = get_tensor("z")
x = np.linspace(0,1, 4)
... | [
"mikkel@255bits.com"
] | mikkel@255bits.com |
572e9188596943b6c163e97b57ca50efcf4e012b | b4ca99fdb2e7f5da8eb559adf647a0bc69e2d7c5 | /StandardSpider/DataAnalyse/dbDataGet/PanasonicDevice_data.py | 645090e5610201dd4ef37d6ecb74a6395b7c3262 | [] | no_license | RoyalClown/MyPython | 4f6b68e0f5f883c187cf8253df0c5feeab3de8fd | baf13612d8d36e519ce54825c4b664597789128a | refs/heads/master | 2021-01-11T13:29:30.332280 | 2017-05-31T02:56:07 | 2017-05-31T02:56:07 | 81,513,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,577 | py | from DataAnalyse.dbDataGet.ST_data import UtilDataAnalyse
from DataAnalyse.valueProcessing.propertyValueModify import PropertyValueModify
class DataProcessing:
def go(self, task_id):
# 合并
spcap_data = UtilDataAnalyse(task_id=task_id)
table_data = spcap_data.get_from_table()
b2c_br... | [
"421581115@qq.com"
] | 421581115@qq.com |
b191d1d7c71ffb57ff43d91a0d3c0ec6e2447d4d | d5cc0c9f8d94e9d020b3e50c0a125d2041dd3baa | /AttendifySite(Flask)/env/lib/python3.6/site-packages/turicreate/meta/decompiler/instructions.py | 2b179b8dbcbda593c89a9e2549d77066a4261f79 | [
"MIT"
] | permissive | arnavgup/Attendify_iOS | be896579de4560cff36a4b163384d0eeabbb7dd9 | c2efc3273a7b99c09d918567718ac87d7f0179d8 | refs/heads/master | 2022-10-31T13:16:11.081902 | 2018-12-09T00:11:42 | 2018-12-09T00:11:42 | 158,432,022 | 3 | 2 | MIT | 2022-10-10T10:53:53 | 2018-11-20T18:10:16 | Swift | UTF-8 | Python | false | false | 15,021 | py | # -*- coding: utf-8 -*-
# Copyright © 2017 Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can
# be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
'''
Created on Jul 14, 2011
@author: sean
'''
from __future__ import print_function... | [
"gyao@andrew.cmu.edu"
] | gyao@andrew.cmu.edu |
c8d9704e46969f972fc3a2f5b971e4f09044ca2b | a904358b873d4881a9e61555bfc7a97169c696a8 | /src/djnydus/db/shards/routers.py | c8d5539eb60791895d7eacc5c92f2c1671386aed | [
"Apache-2.0"
] | permissive | numan/nydus-django | 945e91df73af34941a2a281c2b5e2a706f87a3b5 | b652ea28d7f801f453a64e4ec78899e2acfc7606 | refs/heads/master | 2021-01-18T08:19:06.320484 | 2013-03-26T01:49:42 | 2013-03-26T01:49:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | """
djnydus.shards.router
~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2012 DISQUS.
:license: Apache License 2.0, see LICENSE for more details.
"""
| [
"dcramer@gmail.com"
] | dcramer@gmail.com |
35b078652ae742c7fdce54d3d18a3085c0dfb8ae | 85671094e4f1c1f221ff078faea3ee9f93795b57 | /examples/dfp/v201311/contact_service/update_contacts.py | e80bc0cd172f861db7dc1944c336f0e6b5f71d55 | [
"Apache-2.0"
] | permissive | jdilallo/jdilallo-test | 63631c96c8070c60ce7c07512aa51f370d8fbadf | 8fb9bf43e7c99d5cb198c5587897f8b2514ca4c0 | refs/heads/master | 2020-05-18T15:35:37.264949 | 2014-03-04T18:19:31 | 2014-03-04T18:19:31 | 14,376,457 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | #!/usr/bin/python
#
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"api.jdilallo@gmail.com"
] | api.jdilallo@gmail.com |
5cb2f0cea82e8f0c529c8cc80985dc43f49abcf5 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /070_oop/001_classes/_exercises/exercises/ITDN Python RUS/001_Vvedenie v OOP/05-__init__.py | 807756be14dc81c13918a5fd56093bd1ff2c31ee | [] | 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 | 897 | py | # -*- coding: utf-8 -*-
# Начальное состояние объекта следует создавать в
# специальном методе-конструкторе __init__, который
# вызывается автоматически после создания экземпляра
# класса. Его параметры указываются при создании
# объекта.
# Класс, описывающий человека
class Person:
# Конструктор
def __init__... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
6ca840de569e5ed1a4938ec9457690c6d2c6b763 | cb08220a43b2ba0808f4decdb674f9ccf06a60cc | /project/backend/config/urls.py | 2f7e3f754d061679631bf1c66f554fcf5092d10a | [] | no_license | Hagen013/django-boilerplate | 06979916cbf2edcd00bf5dbfbc5aef4ef55303dc | e6327717e338c4afebd255d754aefae76e7223a3 | refs/heads/master | 2020-03-25T03:19:01.485758 | 2018-08-08T20:25:07 | 2018-08-08T20:25:07 | 143,334,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | from django.urls import path, include
urlpatterns = [
path("api/", include("api.urls", namespace="api")),
]
| [
"="
] | = |
43c4a53b135ce37bc89f7010be67c1fa6fd12754 | 83762a4888dab11be81c3e7f6c4e4357c8079ae8 | /utils/testsuite/testsuite.py | e5f45737cd5701cdadae33479e21ec096a037590 | [
"MIT"
] | permissive | alloy/hermes | 1dc62f278d3ab11ca8a21868452f87f148500cba | 817d558140a829bdd3094698e20ae476d171bb66 | refs/heads/master | 2023-02-12T08:08:49.896373 | 2020-04-23T18:43:29 | 2020-04-23T18:45:57 | 258,312,171 | 1 | 0 | MIT | 2020-04-23T19:40:28 | 2020-04-23T19:40:27 | null | UTF-8 | Python | false | false | 36,642 | py | #!/usr/bin/env python3
# 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 argparse
import enum
import os
import re
import subprocess
import sys
import tempfile
import textwrap
import tim... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
1dfcaba96653566123575405ff2189cdaf3be51b | 9a9fb43d866dc8fd829211d2b47328ef1f5ed428 | /PI_ROS_WORKSPACES/ros_catkin_ws/devel_isolated/cpp_common/_setup_util.py | af03a4b3b774f1e4d408fd6ce5423881f5aa5d34 | [] | no_license | droter/auto_mow | 326df42a54676079cac61fe63c40d5d04beb049b | 3742cb2ef78bc06d2771ac4c679e5110909774f8 | refs/heads/master | 2022-05-19T20:18:33.409777 | 2020-04-29T00:42:24 | 2020-04-29T00:42:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,898 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Software License Agreement (BSD License)
#
# Copyright (c) 2012, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistrib... | [
"joshuatygert@gmail.com"
] | joshuatygert@gmail.com |
ed33ebf9caedf48ca19abe67d46daec2605f4000 | 3d57578801ffdcfeb09c6b3551a1611b9b28b55d | /cosmeticsyou/accounts/migrations/0003_auto_20180316_2301.py | f8b52532db847607a49cc367e6aea0ba8c4f4d66 | [] | no_license | Wishez/cosmeticsyou | a97f01054c40a9305f7b0274f59812278d3ac593 | c44c177fd3ea52a25003916be9eb49cbeabcbdea | refs/heads/master | 2021-01-18T03:45:11.902558 | 2018-03-16T21:23:24 | 2018-03-16T21:23:24 | 85,789,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,791 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-03-16 20:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_auto_20180316_2201'),
]
operations = [
migrations.AlterFie... | [
"shiningfinger@list.ru"
] | shiningfinger@list.ru |
59553b07726a1959d3ea724fc29aed34185217ec | 439c87c48c6c2c812d1faca73cbf1b632e9403dc | /DAYS/Day4/Remove_Empty_List.py | 17625cb9e9a3ed34eaa82a6e3d2c8f455ce5c064 | [
"MIT"
] | permissive | saubhagyav/100_Days_Code_Challenge | 14ca8db68e09c7ac7741f164fea8b62cb36bf2c0 | bde41126b9342eacc488c79d01dc4b76a3651c93 | refs/heads/main | 2023-08-05T03:12:18.918079 | 2021-09-12T12:20:41 | 2021-09-12T12:20:41 | 389,375,066 | 2 | 2 | null | 2021-07-25T15:06:18 | 2021-07-25T15:06:17 | null | UTF-8 | Python | false | false | 351 | py | # Approach 1:
def Remove_Empty_List(Given_List):
Result = [ele for ele in Given_List if ele != []]
return Result
Given_List = [5, 6, [], 7, 8, 9, [], 12, [], 4,[]]
print(Remove_Empty_List(Given_List))
# Approach 2:
Given_List = [5, 6, [], 7, 8, 9, [], 12, [], 4, []]
result = list(filter(None, ... | [
"noreply@github.com"
] | saubhagyav.noreply@github.com |
3971a5173cfd3587c142695cad852f22cb9cf9bd | 060660439d4a54dfa74368c03968bee684d74930 | /planscore/website/__init__.py | 886e658812f37ac2edad725ac38e5a73f0f32e4d | [] | no_license | dheerajchand/PlanScore | d0829e22dd1bfd20bbec58d900c4fdfaed8a0ebc | 39b8a173f3a7f9b97db8d138e9e757bb23a0b204 | refs/heads/master | 2020-12-02T18:17:23.747720 | 2017-06-11T04:20:54 | 2017-06-11T04:20:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,393 | py | import flask, os, urllib.parse, markdown
from .. import data, score
MODELS_BASEDIR = os.path.join(os.path.dirname(__file__), 'models')
app = flask.Flask(__name__)
app.config['PLANSCORE_S3_BUCKET'] = os.environ.get('S3_BUCKET', 'planscore')
app.config['PLANSCORE_API_BASE'] = os.environ.get('API_BASE', 'https://api.pl... | [
"mike@teczno.com"
] | mike@teczno.com |
6cc768c2c0b18a6842f42aa80378fb57bbb8607e | b7a8d04f9fd88d66ef6d8b83a449105ae31698a4 | /setup.py | 090be41ad536ceb7af61d21bd576ec733d48b86c | [] | no_license | jjkas/eels-analysis-old | d5ce3dbb55ed84921abfcb2476243b6783ab5d52 | 98a2fc8e394060d53f982427dd953b31d56a90fa | refs/heads/master | 2020-09-13T12:39:58.384098 | 2020-01-08T00:13:44 | 2020-01-08T00:13:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | # -*- coding: utf-8 -*-
"""
To upload to PyPI, PyPI test, or a local server:
python setup.py bdist_wheel upload -r <server_identifier>
"""
import setuptools
import os
setuptools.setup(
name="nionswift-eels-analysis",
version="0.4.4",
author="Nion Software",
author_email="swift@nion.com",
descript... | [
"cmeyer1969@gmail.com"
] | cmeyer1969@gmail.com |
b5bcc647a60de463a5d2a205fe7a95114861f91d | 7bd3c35070d40724ab21e83b4d3f5ba39e455818 | /signup/sign_up/views.py | f540eb11011cd77dde5d49812f013f0b1351bbb0 | [] | no_license | shatishdesai202/Django-Project-Practice | 9433004de6fd72dd0cd56cb4ff7770ecded6a054 | f66ee507fcf959d148627c1c2f5d587b10adc996 | refs/heads/main | 2023-03-12T17:14:15.823285 | 2021-03-07T05:32:07 | 2021-03-07T05:32:07 | 345,263,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | from django.shortcuts import render
from django.contrib.auth.forms import UserCreationForm
from .forms import SignupForm
# Create your views here.
def sign(request):
if request.method == "POST":
form = SignupForm(request.POST)
if form.is_valid():
form.save()
form = SignupF... | [
"sdondjango@gmail.com"
] | sdondjango@gmail.com |
7d7d6b9f2cd5e12cf77ce8b751aa6f9de55971ba | 508321d683975b2339e5292202f3b7a51bfbe22d | /Userset.vim/ftplugin/python/CompletePack/PySide2/QtWidgets/QListWidgetItem.py | c80e9c4f15b5eb988fd6863dcbe0a2da4b62da51 | [] | no_license | cundesi/vimSetSa | 4947d97bcfe89e27fd2727423112bb37aac402e2 | 0d3f9e5724b471ab21aa1199cc3b4676e30f8aab | refs/heads/master | 2020-03-28T05:54:44.721896 | 2018-08-31T07:23:41 | 2018-08-31T07:23:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,389 | py | # encoding: utf-8
# module PySide2.QtWidgets
# from C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\PySide2\QtWidgets.pyd
# by generator 1.145
# no doc
# imports
import PySide2.QtCore as __PySide2_QtCore
import PySide2.QtGui as __PySide2_QtGui
import Shiboken as __Shiboken
class QListWidgetIt... | [
"noreply@github.com"
] | cundesi.noreply@github.com |
0c22e89f87f706b7c281d9efdf6c8fb932fb7278 | 7259dbcc9e32502945d362caa43d4ad380cd04ea | /Login_Pingtai_Code/Login_Pingtai_Code/spiders/zujuan.py | 5df1c61f584726695543507746195569516801d9 | [
"MIT"
] | permissive | Doraying1230/Python-Study | daa143c133262f4305624d180b38205afe241163 | 8dccfa2108002d18251053147ccf36551d90c22b | refs/heads/master | 2020-03-29T13:46:13.061373 | 2018-07-26T15:19:32 | 2018-07-26T15:19:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,032 | py | '''
Created on 2017年10月27日
@author: deppon
'''
from scrapy.spiders import CrawlSpider
import scrapy
from scrapy.http import Request,FormRequest
class ZuJuanSpider(CrawlSpider):
name = "ZuJuanSpider"
account = '13653978879'
pwd = '123456'
headers = {
'User-Agent':'Mozilla/5.0 (Windows NT... | [
"2829969299@qq.com"
] | 2829969299@qq.com |
112a8a4a05140b04fe14ae7faff078f55f0b9100 | 3eda7828febd06dc5173db03a5c9191a60f44c65 | /boyue_index.py | cbe30449aa4b9c9a7da9dec85ede29e53906042d | [] | no_license | xzk-seu/Auto_home_spider | 2dd95fdc35177b1ab5050d8efbd811a51328a570 | d2016cc2de6d214097210e50755819ee5e4ea342 | refs/heads/master | 2020-04-11T06:40:13.405381 | 2019-10-10T08:53:04 | 2019-10-10T08:53:04 | 161,587,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | import json
import os
from multiprocessing import Pool
from get_index import get_index
def write_result(page):
path = os.path.join(os.getcwd(), 'index', 'boyue')
if not os.path.exists(path):
os.makedirs(path)
file_path = os.path.join(path, str(page)+'.json')
if os.path.exists(file_path) and os... | [
"1399350807@qq.com"
] | 1399350807@qq.com |
0988de8091599db64228d0877e95f48dc311de48 | 45dd427ec7450d2fac6fe2454f54a130b509b634 | /lecture_10/direct_needle_patch.py | 851a9e8f3135d0940606f49e288d151b46cfc7cf | [] | no_license | weka511/smac | 702fe183e3e73889ec663bc1d75bcac07ebb94b5 | 0b257092ff68058fda1d152d5ea8050feeab6fe2 | refs/heads/master | 2022-07-02T14:24:26.370766 | 2022-06-13T00:07:36 | 2022-06-13T00:07:36 | 33,011,960 | 22 | 8 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | from random import uniform
from math import sqrt
a = 0.6
b = 1.0
n_hits = 0
n_steps = 1000000
for n in range(n_steps):
x_center = uniform(0.0, b * 0.5)
while True:
dx = uniform(0.0, 1.0)
dy = uniform(0.0, 1.0)
rad = sqrt(dx ** 2 + dy ** 2)
if rad ... | [
"simon@greenweaves.nz"
] | simon@greenweaves.nz |
f8f9fb74ddf71f3055a2aa88c2b4744aad2d2cfa | 8cc30a27835e205a3476783106ca1605a6a85c48 | /amy/autoemails/tests/test_admin_cancel.py | b31f65598da6d8bf05f56b27fdfde600d4560103 | [
"MIT"
] | permissive | gaybro8777/amy | d968edc78bbd3f63f3353450334721628dbbc0f4 | 3cf99aed58a0f0acf83d2645a30d8408208ccea9 | refs/heads/develop | 2023-03-07T22:08:28.692700 | 2021-02-23T18:06:06 | 2021-02-23T18:06:06 | 341,930,505 | 0 | 0 | MIT | 2021-02-24T17:22:08 | 2021-02-24T14:40:43 | null | UTF-8 | Python | false | false | 7,731 | py | from datetime import timedelta
from django.test import TestCase
from django.urls import reverse
from rq import Queue
from rq.exceptions import NoSuchJobError
from autoemails import admin
from autoemails.models import EmailTemplate, Trigger, RQJob
from autoemails.job import Job
from autoemails.tests.base import FakeRe... | [
"piotr@banaszkiewicz.org"
] | piotr@banaszkiewicz.org |
f4d666432c4c4b022a452ca50ccd90fffad423ab | df3b60c38d22497f3169375491a278255209615b | /mqtt/cloud/testmqtt.py | facb8807f7c49de5770a9876ed3a8536ccfccb9b | [] | no_license | juanengml/Sistema_de_Monitoramento_de_Salas_GPIOT-UTFPR-TD | 2c3c8d67ce8aa555eb07233ba52411cd1314c488 | 23f20e865910f48b0074a35f95ebfae5e6cbbd92 | refs/heads/master | 2022-12-24T01:21:58.551642 | 2020-01-09T21:30:19 | 2020-01-09T21:30:19 | 149,667,511 | 0 | 2 | null | 2022-12-18T14:40:02 | 2018-09-20T20:35:32 | HTML | UTF-8 | Python | false | false | 1,578 | py | import paho.mqtt.client as mqtt
#import RPi.GPIO as GPIO
import json
THINGSBOARD_HOST = 'YOUR_THINGSBOARD_IP_OR_HOSTNAME'
ACCESS_TOKEN = 'RASPBERRY_PI_DEMO_TOKEN'
# The callback for when the client receives a CONNACK response from the server.
def on_connect(client, userdata, rc, *extra_params):
print('Connected ... | [
"juanengml@gmail.com"
] | juanengml@gmail.com |
60dc64a27d8279c8669ee5555da915651affded0 | e9dd4ab2ffd84fa6e5c3c5b097aa2b088860e1ec | /btre/urls.py | a566737c4b59c0c84b2813dbcd0ef15ad330cf38 | [] | no_license | AkshayVKumar/btre | f8434195080a597f6d3346c3103574f0d8b26de8 | 4276e710d850ae0f552cf2b1312015a196e3b8f4 | refs/heads/main | 2023-03-29T04:22:49.478403 | 2021-04-01T18:51:16 | 2021-04-01T18:51:16 | 353,791,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | """btre URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"akshayvk64@gmail.com"
] | akshayvk64@gmail.com |
2579021a8df011296303f7a5a2c966d2a68c05af | a7efc71f80fcf7085d5357c6e41e37a1518413eb | /src/sentimental_analysis/preprocess.py | 2bdfa6f4463419aa94d74d35abf4b3e0fb436ca1 | [
"MIT"
] | permissive | stormsinbrewing/Real_Time_Social_Media_Mining | 398ad382567d0d1b39bf2a479cf52933f36009b0 | 86b16f763d1f57c1a1f1a26808d3b36bfa364358 | refs/heads/master | 2023-04-23T07:46:01.690005 | 2021-05-03T03:44:18 | 2021-05-03T03:44:18 | 234,296,979 | 25 | 11 | MIT | 2023-03-24T23:56:55 | 2020-01-16T10:39:34 | HTML | UTF-8 | Python | false | false | 3,708 | py | import re
import sys
from utils import write_status
from nltk.stem.porter import PorterStemmer
def preprocess_word(word):
# Remove punctuation
word = word.strip('\'"?!,.():;')
# Convert more than 2 letter repetitions to 2 letter
# funnnnny --> funny
word = re.sub(r'(.)\1+', r'\1\1', word)
# Re... | [
"500060720@stu.upes.ac.in"
] | 500060720@stu.upes.ac.in |
7364facf97bbe797e4688c8529979c572f738f7e | 0a1f8957a798006deaa53d10d09f733fab1e6b05 | /src/Python27Packages/PCC/PCC/SRC_regress.py | c0cdbdc0e11180870ab974a14325a7d483abc881 | [
"LicenseRef-scancode-other-permissive"
] | permissive | metamorph-inc/meta-core | a89504ccb1ed2f97cc6e792ba52e3a6df349efef | bc7a05e04c7901f477fe553c59e478a837116d92 | refs/heads/master | 2023-03-07T02:52:57.262506 | 2023-03-01T18:49:49 | 2023-03-01T18:49:49 | 40,361,476 | 25 | 15 | NOASSERTION | 2023-01-13T16:54:30 | 2015-08-07T13:21:24 | Python | UTF-8 | Python | false | false | 788 | py | from numpy import *
def SRC_regress(X, Y, otpt, N):
# Add a constant term.
X = insert(X,0,1,1) #insert a column of 1's in the 0th column, axis 1
# Find the least squares solution by the use of Matlab backslash operator.
# b is the vector of regression coefficients.
r2=[]
b=zeros((X.shape[1],otp... | [
"kevin.m.smyth@gmail.com"
] | kevin.m.smyth@gmail.com |
ab7e8c8da4c8e78c4b5a9b13b5e3a0c286628d78 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/80/usersdata/160/48865/submittedfiles/moedas.py | fbd54a4f21eb65c2842ba5b47bd06575b228b31a | [] | 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 | 439 | py | # -*- coding: utf-8 -*-
from __future__ import division
a=int(input('Digite os valores disponíveis das moedas:'))
b=int(input('Digite os valores disponíveis das moedas:'))
c=int(input('Digite a cédula:'))
cont=0
qa=c//a
qb=0
while qa>=0:
troca=c-qa*a
if troca%b==0:
qb=troca//b
cont=co... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
71c35b3ac6e90b946930f337822763a56891fa6d | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/client/gui/Scaleform/genConsts/DAMAGE_LOG_SHELL_BG_TYPES.py | fbb14d7600d8dbd920244235784e18d9819b1d2f | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 588 | py | # 2017.08.29 21:48:42 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/genConsts/DAMAGE_LOG_SHELL_BG_TYPES.py
"""
This file was generated using the wgpygen.
Please, don't edit this file manually.
"""
class DAMAGE_LOG_SHELL_BG_TYPES(object):
GOLD = 'gold'
WHITE = 'white'
EMPTY =... | [
"info@webium.sk"
] | info@webium.sk |
d508b2795f4abce28a1b17b23539bd2b0a9ca0fe | 0c9fc8fa54d2cd7d55ce6485383e10232ff2bc13 | /Packs/CentrifyVault/Integrations/CentrifyVault/CentrifyVault.py | d805ffcdb6f85d608d71e9750381e6e92efcb5e3 | [
"MIT"
] | permissive | epartington/content | 95211fac55952d6d8bd1f7b021b0b4da44035a63 | a897c9fff2539f75165e0787432fa7a28989bce1 | refs/heads/master | 2023-08-03T18:40:45.812751 | 2023-05-19T08:05:48 | 2023-05-19T08:05:48 | 128,481,558 | 0 | 0 | MIT | 2022-05-24T20:45:55 | 2018-04-06T23:59:05 | Python | UTF-8 | Python | false | false | 33,211 | py | import re
import time
import demistomock as demisto # noqa: F401
# IMPORTS
from CommonServerPython import * # noqa: F401
# Disable insecure warnings
import urllib3
urllib3.disable_warnings()
"""PARAMETERS"""
class Client(BaseClient):
"""
Client will implement the service API, and should not contain any ... | [
"noreply@github.com"
] | epartington.noreply@github.com |
e5ae2857aa612fac99f501a0c3d3e03e657b5170 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/apimanagement/v20210801/get_subscription.py | ee1f34043a24f2ee42bd142ed298046f34bc485b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,418 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
a588d3e28d3956602608435b88c2bdcd3d980823 | 4dbd12da17cc45a5482afc8cea02051e798731a9 | /venv/Scripts/django-admin.py | 9c4c65edbd574a17c31f9ba77b2beca874b75b41 | [] | no_license | tsicroxe/django_projects | 71b9bec6d834f53fde892606799b4bc96ba45a91 | c11036c78d120e5ffa51055e2999dbe05b0d36eb | refs/heads/master | 2021-01-11T07:03:53.045558 | 2016-12-07T20:46:05 | 2016-12-07T20:46:05 | 71,937,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | #!c:\users\bani_\desktop\codingdojo\djangoprojects\django_test\venv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"arbanakus@gmail.com"
] | arbanakus@gmail.com |
8ecd5eea7039d1b701170a32d86388d3b651d501 | 68ee9027d4f780e1e5248a661ccf08427ff8d106 | /extra/unused/aggregate_icesat.py | aa9940239df97213a6bb5453b7674695ac207a66 | [
"MIT"
] | permissive | whyjz/CARST | 87fb9a6a62d39fd742bb140bddcb95a2c15a144c | 4fc48374f159e197fa5a9dbf8a867b0a8e0aad3b | refs/heads/master | 2023-05-26T20:27:38.105623 | 2023-04-16T06:34:44 | 2023-04-16T06:34:44 | 58,771,687 | 17 | 4 | MIT | 2021-03-10T01:26:04 | 2016-05-13T20:54:42 | Python | UTF-8 | Python | false | false | 4,152 | py | #!/usr/bin/python
# aggregate_icesat.py
# Author: Andrew Kenneth Melkonian
# All rights reserved
def aggregate_icesat(icesat_path, input_dem_xyz_txt_dir, input_dem_xyz_txt_identifier, output_label):
import os;
assert os.path.exists(icesat_path), "\n***** ERROR: " + icesat_path + " does not exist, exiting...\n";... | [
"wz278@cornell.edu"
] | wz278@cornell.edu |
cb82f5cc168695fdf732dccb1eb23dab8368ac8f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_340/ch18_2020_03_24_20_35_15_928242.py | 929b2954cd5a46a52474fe5ed86685430753dd03 | [] | 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 | 190 | py | def verifica_idade(idade):
if idade<18:
return "Não está liberado"
elif idade>=18 and idade<21:
return "Liberado no BRASIL"
else:
return "Liberado EUA e BRASIL" | [
"you@example.com"
] | you@example.com |
b87d7438f6510080b17e0f5f71038725daf202f8 | 3917a54838a67dafd6b17aa2cba51144f3f242d0 | /demo/amrparsing/vw_pred_to_amr.py | 7d0fff434814f3cfacb9ab73e8309d77623f372c | [] | no_license | raosudha89/vowpal_wabbit | 29e25533113a33a39b64ccacbbef5452e41590a8 | 03e973838e022149d802ec3f5e2817dcbc9019d5 | refs/heads/master | 2021-01-21T13:29:27.941872 | 2016-06-03T01:56:25 | 2016-06-03T01:56:25 | 43,918,094 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,055 | py | import sys, os
import networkx as nx
import pdb
import pickle as p
NULL_CONCEPT = 1
def update_graph(amr_nx_graph, concept_nx_graph, nx_parent, parent, count):
for child in concept_nx_graph.successors(parent):
child_idx = 'n'+str(count)
count += 1
if "\"" in concept_nx_graph.node[child]['instance']:
amr_nx... | [
"raosudha@umiacs.umd.edu"
] | raosudha@umiacs.umd.edu |
af68864d45238c5bae0ebc79100da4dc57b48022 | 63e2bed7329c79bf67279f9071194c9cba88a82c | /TopGear/Python-L2/MathNew/subtraction.py | bafbc388ade9a59b1b9c3287b36e545f4296c30d | [] | no_license | jsthomason/LearningPython | 12422b969dbef89578ed326852dd65f65ab77496 | 2f71223250b6a198f2736bcb1b8681c51aa12c03 | refs/heads/master | 2021-01-21T01:05:46.208994 | 2019-06-27T13:40:37 | 2019-06-27T13:40:37 | 63,447,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | """
Module subtraction
"""
def sub(x,y):
return x - y
| [
"johnsthomason@gmail.com"
] | johnsthomason@gmail.com |
b2bdf24d06fb5e52cb0d6323da17410e8fa73697 | 9cd0f22b1b335c8dd59addcbe3032141e76af8b5 | /8.Libraries and Functions/Unicodedata – Unicode Database/unicodedata.name(chr[, default]).py | 0049071b9b9c67f3b03cbd540c19830d774cb039 | [] | no_license | Swapnil2095/Python | 06e6249d8f50767fce8fcdddbfd0aefc23d3deae | d11270391c4d3c30f59266a5bc3216dad8fc81b7 | refs/heads/master | 2022-02-28T08:12:27.266950 | 2019-09-24T15:48:20 | 2019-09-24T15:48:20 | 103,416,564 | 0 | 2 | null | 2019-10-24T11:16:40 | 2017-09-13T15:22:54 | HTML | UTF-8 | Python | false | false | 112 | py | import unicodedata
print (unicodedata.name(u'/'))
print (unicodedata.name(u'|'))
print(unicodedata.name(u':'))
| [
"swapnilgaikwad7291@gmail.com"
] | swapnilgaikwad7291@gmail.com |
959957ffa9f4cf7e4062352f73c90a7ff06c7e0d | 1796043fc26c958b8fc45d9c058e382473c4f3af | /Fabio 01 Parte 02/f1_p2_q11_media_tresnumeros.py | 91b7d9e889f37d6676a565d66ccb3e47c0964256 | [] | no_license | Lucakurotaki/ifpi-ads-algoritmos2020 | a69adec27dbb10aceab1bc7038a0b56a760f99d1 | 34d5fedd5825a85404cf9340e42be618981679c1 | refs/heads/master | 2022-03-22T04:44:14.211359 | 2022-02-19T18:48:36 | 2022-02-19T18:48:36 | 246,585,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | #Entrada
num1 = int(input("Digite o primeiro número: "))
num2 = int(input("Digite o segundo número: "))
num3 = int(input("Digite o terceiro número: "))
#Processamento
media = (num1+num2+num3)/3
#Saída
print("A média aritmética dos números {}, {} e {} é: {}".format(num1,num2,num3,media))
| [
"noreply@github.com"
] | Lucakurotaki.noreply@github.com |
e10541d0e1cc3cb3b76d033be5c42c2e03b341c9 | 64ada708c3ee39c624a223fa4881ce3689041606 | /Appendix/maze_game.py | 194f7ce6a1e7dfd28431a0db34a8a95eaf28369b | [] | no_license | kimcaptin/PythonGame_1 | 1173cf3ac356d29b1cb254b1607bd4528e0a28cc | af32318bf1e6ea73aa00fc4c72d07e1a5d7c5300 | refs/heads/main | 2023-01-04T05:46:02.782910 | 2020-10-28T06:53:30 | 2020-10-28T06:53:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,421 | py | import tkinter
import tkinter.messagebox
idx = 0
tmr = 0
stage = 1
ix = 0
iy = 0
key = 0
def key_down(e):
global key
key = e.keysym
def key_up(e):
global key
key = 0
maze = [[], [], [], [], [], [], [], []]
def stage_data():
global ix, iy
global maze # 리스트 전체를 변경하는 경우 전역 변수 선언 필요
if sta... | [
"jeipubmanager@gmail.com"
] | jeipubmanager@gmail.com |
1a84f5a49bcf0eab3c43b3ba1db9666ebd94af29 | 59fbeea017110472a788218db3c6459e9130c7fe | /rotate-list/rotate-list.py | be8a63c32a60f946bd7d6f0d6a3529f0a007cea7 | [] | no_license | niufenjujuexianhua/Leetcode | 82b55d9382bc9f63f4d9da9431194e20a4d299f1 | 542c99e038d21429853515f62af51a77deaa4d9c | refs/heads/master | 2022-04-27T16:55:00.035969 | 2022-03-10T01:10:04 | 2022-03-10T01:10:04 | 79,742,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution(object):
def rotateRight(self, head, k):
"""
:type head: ListNode
:type k: int
:rtype: ListNode
"""
... | [
"wutuo123@yeah.net"
] | wutuo123@yeah.net |
73585cbc1b80617c5e8e1b4b75573ae0b261b5a9 | aaa22c7aa8d8c6fb2a9d489252d72387c914cfac | /orders/migrations/0001_initial.py | 7091656e024adbcbb40069c9f3359ffdc35672db | [] | no_license | MohamedHany2002/online-shop | dccd55fef192cb94b57a5eca126a85c38c71c0fa | e8db42c17ea6b1cb0b08e6ff0e2e367ce9a118be | refs/heads/master | 2022-09-04T16:24:40.912664 | 2020-05-12T14:53:43 | 2020-05-12T14:53:43 | 263,360,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | # Generated by Django 3.0.2 on 2020-04-11 14:29
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('cart', '0009_cart_user'),
]
operations = [
migrations.CreateModel(
name='Or... | [
"goldenhany94@gmail.com"
] | goldenhany94@gmail.com |
92616aa2a4472acc2e3614862941dd9f05ea1934 | b2d3bd39b2de8bcc3b0f05f4800c2fabf83d3c6a | /examples/pwr_run/checkpointing/throughput/final1/job11.py | 0e1c795e3445c10eb7015ace6a5a0516b3146e91 | [
"MIT"
] | permissive | boringlee24/keras_old | 3bf7e3ef455dd4262e41248f13c04c071039270e | 1e1176c45c4952ba1b9b9e58e9cc4df027ab111d | refs/heads/master | 2021-11-21T03:03:13.656700 | 2021-11-11T21:57:54 | 2021-11-11T21:57:54 | 198,494,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,614 | py | """
#Trains a ResNet on the CIFAR10 dataset.
"""
from __future__ import print_function
import keras
from keras.layers import Dense, Conv2D, BatchNormalization, Activation
from keras.layers import AveragePooling2D, Input, Flatten
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint, LearningRa... | [
"baolin.li1994@gmail.com"
] | baolin.li1994@gmail.com |
0787e5ef5b14556ad5998e2475bd8a2883204da7 | 08ddce92744c78432b69409d197ad1393ca685aa | /api/novel_list_paihangbang.py | 48719b3f009c55127001016d87a147d695a2814d | [] | no_license | baliguan163/PythonDemo | 71255eb21850134b4b6afb2eeed948cc34326e7a | c4fe1b6ea36bec2c531244ef95c809e17b64b727 | refs/heads/master | 2021-01-02T08:13:18.809740 | 2019-05-19T16:28:16 | 2019-05-19T16:28:16 | 98,963,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,256 | py | __author__ = 'IBM'
#coding:utf-8
import requests
import time
from bs4 import BeautifulSoup
#抓取网页的函数
def get_html(url):
try:
r = requests.get(url, timeout=30)
r.raise_for_status()
r.encoding = 'utf-8'
return r.text
except:
return " ERROR "
def get_content(url):
'''... | [
"baliguan163@163.com"
] | baliguan163@163.com |
17abdcd68276fa7e209abb00e5e0f0fd4af4c524 | 9680c27718346be69cf7695dba674e7a0ec662ca | /Numpy/Numpy Arange Function - Creating NumPy Arrays.py | d5629978efe1c2f1af3df9713de2c0e6dd231f95 | [] | no_license | Md-Monirul-Islam/Python-code | 5a2cdbe7cd3dae94aa63298b5b0ef7e0e31cd298 | df98f37dd9d21784a65c8bb0e46d47a646259110 | refs/heads/main | 2023-01-19T05:15:04.963904 | 2020-11-19T06:10:09 | 2020-11-19T06:10:09 | 314,145,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | import numpy as np
#print(help(np.arange))
print(np.arange(1,10))
print(np.arange(3.))
print(np.arange(1,20,2))
print(np.arange(20, dtype= "complex"))
print(np.arange(1,10,2,dtype= "float")) | [
"61861844+Md-Monirul-Islam@users.noreply.github.com"
] | 61861844+Md-Monirul-Islam@users.noreply.github.com |
894fe800d424952f5cfadd3b5b2dc93ad384697c | 72ab559d5ce5f02b5ba9b48fa5e51ec69eca34a7 | /jaraco/net/http/cookies.py | 3de1e785e8b34cfe29d4aa08ad1ca3fb324db1ee | [
"MIT"
] | permissive | jaraco/jaraco.net | a961137b51314faa0c8dda04f71328ca587e9f36 | d2218af49459d38e447c9d977e06f29452f88ff9 | refs/heads/main | 2023-08-31T16:49:35.366220 | 2023-08-06T23:44:43 | 2023-08-06T23:44:43 | 53,204,002 | 0 | 1 | MIT | 2022-12-06T02:52:01 | 2016-03-05T14:01:24 | Python | UTF-8 | Python | false | false | 2,464 | py | import pathlib
import collections
import http.cookiejar
import contextlib
import jsonpickle
class Shelf(collections.abc.MutableMapping):
"""
Similar to Python's shelve.Shelf, implements a persistent
dictionary using jsonpickle.
>>> fn = getfixture('tmp_path') / 'shelf.json'
>>> shelf = Shelf(fn)... | [
"jaraco@jaraco.com"
] | jaraco@jaraco.com |
f09015ff8ac994c61b10c2fb321256ff3d7e0692 | 3c01d7928029e74a19d646f5a40b3bf099b281a7 | /typeshed/stubs/freezegun/freezegun/api.pyi | df10e569ae1dd5611b057fda44e39fd4cd45791a | [
"MIT"
] | permissive | arpancodes/protectsql | f3ced238c103fca72615902a9cb719c44ee2b5ba | 6392bb7a86d1f62b86faf98943a302f7ea3fce4c | refs/heads/main | 2023-08-07T16:33:57.496144 | 2021-09-24T19:44:51 | 2021-09-24T19:44:51 | 409,894,807 | 0 | 1 | MIT | 2021-09-24T19:44:52 | 2021-09-24T08:46:02 | Python | UTF-8 | Python | false | false | 2,243 | pyi | from collections.abc import Awaitable, Callable, Iterator, Sequence
from datetime import date, datetime, timedelta
from numbers import Real
from typing import Any, Type, TypeVar, Union, overload
_T = TypeVar("_T")
_Freezable = Union[str, datetime, date, timedelta]
class TickingDateTimeFactory(object):
def __init_... | [
"arpanforbusiness@gmail.com"
] | arpanforbusiness@gmail.com |
ca192c64fa93c17fa7c3b701c680a16935c6d89e | a86bca3e88fc3012bc9805c74c2e752262370326 | /AI/tab_text_dataset.py | d61515e1e5c05bde943591f38dac98c22c8167a7 | [
"MIT"
] | permissive | osamhack2021/AI_NoYoutube_60Duo | 4921f7c838776305d8dc00d6ceb04b2190565916 | c1e34b7b506b43c9be6c39da3211fac49bfbcd14 | refs/heads/main | 2023-08-11T19:24:45.560000 | 2021-10-13T15:00:38 | 2021-10-13T15:00:38 | 405,925,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | # pip install pypiwin32
import win32gui
import time
import csv
file_name = 'tab_text_dataset.csv'
browser_list = [' - Chrome', ' - Internet Explorer']
window = ''
while True:
current_window = win32gui.GetWindowText(win32gui.GetForegroundWindow())
if window != current_window:
window = current_window
... | [
"noreply@github.com"
] | osamhack2021.noreply@github.com |
348594c84f7e498712d4b049c30591da6b52c02f | 2b912b088683e2d4d1fa51ebf61c4e53c5058847 | /.PyCharmCE2017.1/system/python_stubs/-1247971765/nis.py | d99a03de2f9f3e21069295858335ebf44134f40a | [] | no_license | ChiefKeith/pycharmprojects | 1e1da8288d85a84a03678d2cae09df38ddb2f179 | 67ddcc81c289eebcfd0241d1435b28cd22a1b9e0 | refs/heads/master | 2021-07-13T00:52:19.415429 | 2017-10-08T23:04:39 | 2017-10-08T23:04:39 | 106,216,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,736 | py | # encoding: utf-8
# module nis
# from /usr/lib/python3.4/lib-dynload/nis.cpython-34m-arm-linux-gnueabihf.so
# by generator 1.145
""" This module contains functions for accessing NIS maps. """
# no imports
# functions
def cat(map, domain=None): # real signature unknown; restored from __doc__
"""
cat(map, domai... | [
"kmarlin@dtcc.edu"
] | kmarlin@dtcc.edu |
48f0170bf6fbdde92cbc13bff5b74a79d5d3677b | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Quantization/trend_LinearTrend/cycle_5/ar_12/test_artificial_1024_Quantization_LinearTrend_5_12_0.py | b85ea2797b9c7c86df0eee3743a87b299676b7b0 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 275 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 5, transform = "Quantization", sigma = 0.0, exog_count = 0, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
80ae8eed0fd27a1c218770252d327ce12836c056 | b812afe2b6e810881f5b0c66e5fe49b88adcd816 | /unsupervised_learning/0x03-hyperparameter_tuning/1-gp.py | 818d56e43ff1c8d6189cc8a3ac4d605d7fa0d856 | [] | no_license | AhmedOmi/holbertonschool-machine_learning | 6b44b1957b6cee291d6dabd19a5bbe535c83881f | f887cfd48bb44bc4ac440e27014c82390994f04d | refs/heads/master | 2023-07-28T07:45:09.886422 | 2021-09-13T13:05:14 | 2021-09-13T13:05:14 | 317,320,504 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | #!/usr/bin/env python3
"""Predict mean and standard deviation of points in Gaussian Process"""
import numpy as np
class GaussianProcess:
"""Hold state and data of a gaussian process"""
def __init__(self, X_init, Y_init, l=1, sigma_f=1):
self.X = X_init
self.Y = Y_init
self.l = l
... | [
"ahmedomarmiledi@gmail.com"
] | ahmedomarmiledi@gmail.com |
3943c96057143acaa2de8e328f572962c5b864dc | 4007632edd395d243bca022418848a2ff54409c8 | /123.py | 739ac163e85499ece4b6557edddc23705945ca8a | [] | no_license | 549982170/python_learning | d80a9403cbe2eb8304aba50ff373b2b67df095e2 | 2c3f73718e0a6d9d4923a2e0f22ff2d4230357e9 | refs/heads/master | 2021-06-22T04:32:06.286691 | 2020-12-10T03:29:56 | 2020-12-10T03:29:56 | 101,596,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | #!/usr/bin/env python
# encoding: utf-8
import time
from selenium import webdriver
# create a new Firefox session
driver = webdriver.Firefox()
#time.sleep(3)
#driver.maximize_window()
# navigate to the application home page
driver.get("http://moxian.com/")
driver.find_elements_by_xpath("/html/body/div[1... | [
"549982170@qq.com"
] | 549982170@qq.com |
80a38c34283873686e582d5788cbeeadaf9a19d8 | 2e3d63726c1d05b73b9cc22e5bcbead30246a8dc | /facepad_app/migrations/0005_auto_20160321_2211.py | a3c0a96ba9d6a736b8075f2498310ca66564ec30 | [] | no_license | rolycg/tiny_social_network | 041f6e4ab503bb82eca4cf1efb436d3b5250343a | e7ec45d053d291d53bd9d58bbb882b4b3edb6355 | refs/heads/master | 2021-01-10T04:27:16.344700 | 2016-03-23T18:19:49 | 2016-03-23T18:19:49 | 54,581,800 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-03-22 04:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('facepad_app', '0004_auto_20160321_1853'),
]
operations = [
migrations.AlterF... | [
"rolycg89@gmail.com"
] | rolycg89@gmail.com |
b5c6b72e3cdb5fcf8c1a97044664e4ffdb313025 | 1e177ebdcb470f738c058606ac0f86a36085f661 | /Pico/MicroPython/mqtt/oneWire01.py | 023100ff032111861ebea42335dfc18ee346c6f9 | [] | no_license | robingreig/raspi-git | 5cbdd295c1048a0571aa2c2f8576438269439f07 | 7373bf94557d7a88c8f343362ba64f9cd19c8ce7 | refs/heads/master | 2023-08-31T03:16:17.286700 | 2023-08-26T11:54:23 | 2023-08-26T11:54:23 | 16,873,881 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | import time
import network
import machine
from machine import Pin
from onewire import OneWire
from ds18x20 import DS18X20
import binascii
ds = DS18X20(OneWire(Pin(16)))
roms = ds.scan()
sensor = (0x28,0xff,0xa1,0x58,0x74,0x16,0x04,0x24)
while True:
try:
# convert temp in DS18B20
ds.convert_temp()
# have t... | [
"robin.greig@calalta.com"
] | robin.greig@calalta.com |
195be52232edb0af4b24300004a91908e4f653e4 | c291ba4506a8998df8d7f384c911f6a0a1294001 | /bai__83+84/BaiTapRenLuyenXuLyList.py | 6cf3194271e88b97837cd3eb94d1f5f96c1eff96 | [] | no_license | thanh-falis/Python | f70804ea4a3c127dcb7738d4e7c6ddb4c5a0a9d4 | fa9f98d18e0de66caade7c355aa6084f2d61aab3 | refs/heads/main | 2023-08-18T17:34:29.851365 | 2021-09-30T12:09:30 | 2021-09-30T12:09:30 | 398,952,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | """
Viết chương trình cho phép:
- Khởi tạo list
- Thêm phần tử vào list
- Nhập K, kiểm tra K xuât hiện bao nhiêu lần trong list
- Tính tổng các số nguyên tố trong list
- Sắp xếp
- Xóa list
"""
from random import randrange
print("Chương trình xử lý list")
n = int(input("Nhập só phần tử: "))
lst ... | [
"thanhelma2020|@gmail.com"
] | thanhelma2020|@gmail.com |
b407d70bfb53c9202600513cdcd07aed79217a2b | ee89c84c5b2f48d447b7005299b409d61cc4d807 | /venv/Lib/site-packages/humanfriendly/tests.py | 6a09c7a14029dbcc058837d595bf7ba9900f16e6 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | songweiwei/rasa_run | 342075cc645725a042acf273ab6508c5da55cbee | 0cfc0a280b9efea344bacf5f2df5800c32d0b3a8 | refs/heads/master | 2023-05-31T03:23:26.490925 | 2020-04-22T07:56:07 | 2020-04-22T07:56:07 | 257,218,895 | 2 | 2 | null | 2023-05-22T23:23:45 | 2020-04-20T08:31:42 | Python | UTF-8 | Python | false | false | 65,883 | py | #!/usr/bin/env python
# vim: fileencoding=utf-8 :
# Tests for the `humanfriendly' package.
#
# Author: Peter Odding <peter.odding@paylogic.eu>
# Last Change: March 6, 2020
# URL: https://humanfriendly.readthedocs.io
"""Test suite for the `humanfriendly` package."""
# Standard library modules.
import datetime
import ... | [
"1194488130@qq.com"
] | 1194488130@qq.com |
2ff4e36d146af072dbdcbaa1de46ca96971cfa6e | c4ecc70400f3c4375dd4b2335673137dd36b72b4 | /aggregator.py | da003c58f45e82acd48d5a01021b9f07bfba9137 | [
"MIT"
] | permissive | TippyFlitsUK/FarmXero | 1bb3496d164d66c940bd3012e36e1763990ff30d | 881b1e6648e927631b276e66a4c5287e4de2cbc1 | refs/heads/main | 2023-07-05T14:49:57.186130 | 2021-08-19T19:33:48 | 2021-08-19T19:33:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,668 | py | # This aggregates the Table data from the scrapers and creates journals
# Also writes data to a file for accurate record keeping.
import json
import datetime
import time
import os
import sys
import argparse
import FilfoxScraper
import Addresses
import coingeckoScraper
import xeroAccounts as xa
import data_folders
try... | [
"ben.norquay@gmail.com"
] | ben.norquay@gmail.com |
c53abe85917f5c583e0e2c182c85a9f49ef08c4f | e2062cd61cccc19cb71282278b4df47cd18dfc67 | /protected/api/urls.py | e7949075aa3f8e20b7fe02d14784f12461e41db6 | [] | no_license | Ryanb58/cas-app | 4dde3be9fc8b96a599c2c030d0055a53ec34d76a | 703cd3e3a460429fab9f77ea09a7cfcae741fead | refs/heads/master | 2020-03-08T06:14:05.973338 | 2018-04-23T15:51:13 | 2018-04-23T15:51:13 | 127,966,350 | 0 | 0 | null | 2018-04-24T19:47:55 | 2018-04-03T20:40:49 | Python | UTF-8 | Python | false | false | 128 | py | """
"""
from django.conf.urls import url, include
from api.views import Me
urlpatterns = [
url('^me/$', Me.as_view()),
]
| [
"btimby@gmail.com"
] | btimby@gmail.com |
b5d479d41474d8731c2cfd3f260974e30e31840c | 51d602577affebc8d91ffe234f926469d389dc75 | /lis/specimen/lab_aliquot_list/admin/main.py | 9476608e28ed9df6cca8fc8f6b9db9afd9ab3633 | [] | no_license | botswana-harvard/lis | 5ac491373f74eaf3855f173580b000539d7f4740 | 48dc601ae05e420e8f3ebb5ea398f44f02b2e5e7 | refs/heads/master | 2020-12-29T01:31:07.821681 | 2018-06-24T06:06:57 | 2018-06-24T06:06:57 | 35,820,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | from django.contrib import admin
from ..models import AliquotCondition, AliquotType
class AliquotTypeAdmin(admin.ModelAdmin):
list_display = ('alpha_code', 'numeric_code', 'name', 'created', 'modified')
ordering = ['name']
admin.site.register(AliquotType, AliquotTypeAdmin)
class AliquotConditionAdmin(admin.... | [
"ckgathi@gmail.com"
] | ckgathi@gmail.com |
9e89e57942498b3484116d12eb5f43f7357868ed | 748e074552291b5aacacce30f53c8c55302a7629 | /src/fava/core/watcher.py | 5bfb2fd3312641ec413142768279b6f282098444 | [
"MIT"
] | permissive | dallaslu/fava | fb5d2eeb53f8f58a40fa80f7111a255b1aaf1a7f | e96b784d960c9981bb566b595b2edb543b63b9a0 | refs/heads/main | 2023-08-23T19:29:52.357402 | 2021-10-16T02:35:21 | 2021-10-16T02:35:21 | 417,691,770 | 0 | 0 | MIT | 2021-10-16T02:22:01 | 2021-10-16T02:22:00 | null | UTF-8 | Python | false | false | 1,644 | py | """A simple file and folder watcher."""
import os
from typing import Iterable
from typing import List
class Watcher:
"""A simple file and folder watcher.
For folders, only checks mtime of the folder and all subdirectories.
So a file change won't be noticed, but only new/deleted files.
"""
__slot... | [
"mail@jakobschnitzer.de"
] | mail@jakobschnitzer.de |
fd9772a2e0b4d8536ec7184cd8ddcbf7aaf8502e | d60f686fbc9287c1fb30defa17f731542c49ffb1 | /mitmproxy/tools/web/webaddons.py | 6b52188c2b6c383f9d5a5c8823cb7643e51530af | [
"MIT"
] | permissive | tinycarrot/mitmproxy | f49b71fb8b15f523a3d9f9732f721b1b1dadc2d5 | db32d0522c2cc89e13af083372dbb3ba50a5d27f | refs/heads/master | 2020-06-23T00:59:14.425231 | 2019-11-29T15:49:24 | 2019-11-29T15:49:24 | 198,452,537 | 2 | 1 | MIT | 2019-07-23T14:57:17 | 2019-07-23T14:57:16 | null | UTF-8 | Python | false | false | 482 | py | class WebAddon:
def load(self, loader):
loader.add_option(
"web_open_browser", bool, True,
"Start a browser."
)
loader.add_option(
"web_debug", bool, False,
"Enable mitmweb debugging."
)
loader.add_option(
"web_port"... | [
"git@maximilianhils.com"
] | git@maximilianhils.com |
bfb0da6d46807c7ad21b0e0d2e50682075561a3f | 07bd6d166bfe69f62559d51476ac724c380f932b | /devel/lib/python2.7/dist-packages/webots_ros/msg/_StringStamped.py | 4ab6e7193960537058f1be891960c38d08d48a87 | [] | no_license | Dangko/webots_differential_car | 0efa45e1d729a14839e6e318da64c7f8398edd17 | 188fe93c2fb8d2e681b617df78b93dcdf52e09a9 | refs/heads/master | 2023-06-02T16:40:58.472884 | 2021-06-14T09:19:58 | 2021-06-14T09:19:58 | 376,771,194 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,773 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from webots_ros/StringStamped.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class StringStamped(genpy.Message):
_md5sum = "c99a94407... | [
"1477055603@qq.com"
] | 1477055603@qq.com |
273ce68382911346102b3d60d58097e4e67c9a88 | 548c26cc8e68c3116cecaf7e5cd9aadca7608318 | /feeds/migrations/0022_auto__chg_field_featuremapping_sku_type.py | ad3ea1223a9ca8f44c2ac18fd76c2e3e23aa9c99 | [] | no_license | Morphnus-IT-Solutions/riba | b69ecebf110b91b699947b904873e9870385e481 | 90ff42dfe9c693265998d3182b0d672667de5123 | refs/heads/master | 2021-01-13T02:18:42.248642 | 2012-09-06T18:20:26 | 2012-09-06T18:20:26 | 4,067,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 34,138 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'FeatureMapping.sku_type'
db.alter_column('feeds_featuremapping', 'sku_type', self.gf('dj... | [
"dalal.saumil@gmail.com"
] | dalal.saumil@gmail.com |
1feb58bb4dc7ff07d48036a6486d2d0671724a17 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/numpy/tests/test_reloading.py | 8d8c8aa34be8cc90d783139224604c4f9c6f955f | [
"GPL-3.0-only",
"BSD-3-Clause-Open-MPI",
"GPL-3.0-or-later",
"GCC-exception-3.1",
"BSD-3-Clause",
"MIT"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 2,244 | py | from numpy.testing import assert_raises, assert_warns, assert_, assert_equal
from numpy.compat import pickle
import sys
import subprocess
import textwrap
from importlib import reload
def test_numpy_reloading():
# gh-7844. Also check that relevant globals retain their identity.
import numpy as np
import n... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
24a3b7de73fba71d6d59d3be753483a2c737d4ef | 76029924b4bad545111f393a707b24eadfc85277 | /lab2/turtle_7.py | e38a4c03450b679d6be2a25e7a4d761d88567e2c | [] | no_license | python-practice-b02-927/Syrovatkin-Stepan | e69067895d7cfd3d1c15ba0b9f40600895023e8f | c05baa4cc2ff16af45bf031d30597234781fa75b | refs/heads/master | 2020-07-23T11:34:43.988759 | 2019-11-12T17:03:52 | 2019-11-12T17:03:52 | 207,544,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | import turtle
turtle.shape('turtle')
fi=20
n=1
k=500
for i in range(k):
turtle.forward(n)
turtle.left(fi)
n+=0.25
| [
"noreply@github.com"
] | python-practice-b02-927.noreply@github.com |
287c9bb18313fe4a10e9970681fa5be809d31ad2 | 109a2b213d0c2e4798aa419d47682e2c28ab98f4 | /archimedean_spiral.py | bd12b17761b26bda454b80ed3b93505a05f32bb8 | [] | no_license | browlm13/cartesian_coordinates_to_single_number | d165d0a3638e7177d9b839de5da7df721bc18ad0 | 779abe0c960dab0ec045c6fa08d2b2930b079c16 | refs/heads/master | 2021-01-24T11:20:34.084792 | 2018-02-27T05:47:57 | 2018-02-27T05:47:57 | 123,077,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | #!/usr/bin/env python
import math
#import numpy as np
import sys
"""
cartesean coordinates, time parameter conversion using Archimedean Spiral
"""
def archimedean_spiral_to_cartesean(t, a=sys.float_info.min): pass
def archimedean_spiral_from_cartesean(cartesean_pair, a=sys.float_info.min): pass
| [
"noreply@github.com"
] | browlm13.noreply@github.com |
52c895be2c125d0a78aff00b4134616b48103225 | 98dae6deaf31bcacc078eeb1bdbdb8bd3ac3784f | /dace/frontend/common/op_impl.py | 061b8e72849ba031189e21924aab3c8e25525f3e | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cpenny42/dace | da9b241ea0808f1798645ab917e1484c45a3a748 | 2c7814b4f02a6870bb25ae08113c0cc3791e1178 | refs/heads/master | 2020-06-24T09:06:23.091624 | 2019-05-10T11:11:14 | 2019-05-10T11:11:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73,114 | py | ''' DaCe SDFG linear algebra operation library. '''
import copy
import dace
import dace.sdfg as sd
import dace.subsets as sbs
from dace import symbolic
import typing
import numpy as np
State = dace.sdfg.SDFGState
Shape = typing.List[typing.Union[int, dace.symbol]]
Index = typing.List[typing.Union[int, str, dace.symbo... | [
"talbn@inf.ethz.ch"
] | talbn@inf.ethz.ch |
c84c382a50edac58f7055825c0db098e94619340 | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/집합_20200628155700.py | 7bd16c297e8415080fd75020ab5d8a29f35c6239 | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | # 집합 (set)
# 중복 안됨, 순서 없음
my_set = {1, 2, 3, 3, 3}
print(my_set)
| [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
e035bce4e99565c49e21eb92c6219a75cf255440 | bff5db2a3d7d9b698fbf7512de6ddb87b1f5d45b | /python/frequency.py | 8b67b7a6b5ab4a61d87f414960e1cb017ef74393 | [] | no_license | aslamup/huffman-coding | 38e107d1439369e914b4cf5966cf2dfbaa89e300 | 73d90bffd3d5f05df5df55cf2e9e4abcd8826e24 | refs/heads/master | 2020-06-04T20:52:21.243970 | 2014-10-19T19:31:09 | 2014-10-19T19:31:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | def frequency(str):
freqs = {}
for ch in str:
freqs[ch] = freqs.get(ch,0) + 1
return freqs
print frequency('aaabccdeeeeeffg')
| [
"aslamup0042@gmail.com"
] | aslamup0042@gmail.com |
10df12ad6bb711a63239c8ec9f4619c7ab6e695b | 5e726f41a95e1fc79ed98b777ec85a386f7c7a13 | /Model/SqlAlchemy/Weixin/WeixinModel.py | f5802fdf5fc3961cf0a68f3fb26063a215bc973f | [] | permissive | 825477418/XX | a3b43ff2061f2ec7e148671db26722e1e6c27195 | bf46e34749394002eec0fdc65e34c339ce022cab | refs/heads/master | 2022-08-02T23:51:31.009837 | 2020-06-03T13:54:09 | 2020-06-03T13:54:09 | 262,987,137 | 0 | 0 | MIT | 2020-06-03T13:54:10 | 2020-05-11T08:43:30 | null | UTF-8 | Python | false | false | 2,004 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/1/3 10:25
# @Email : billsteve@126.com
# @Des :
# @File : WeixinModel
# @Software: PyCharm
from sqlalchemy import Column, Date, String
from sqlalchemy.dialects.mysql import INTEGER, TINYINT
from sqlalchemy.ext.declarative import declarat... | [
"billsteve@126.com"
] | billsteve@126.com |
e86db6ca7ee45232db2129e0dbeb2cd18798e760 | c6053ad14e9a9161128ab43ced5604d801ba616d | /Lemon/Python_Base/Lesson5_20181105/homework3.py | 397cb31981d6b19af4d231ec6df519c528727998 | [] | no_license | HesterXu/Home | 0f6bdace39f15e8be26031f88248f2febf33954d | ef8fa0becb687b7b6f73a7167bdde562b8c539be | refs/heads/master | 2020-04-04T00:56:35.183580 | 2018-12-25T02:48:51 | 2018-12-25T02:49:05 | 155,662,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | # -*- coding: utf-8 -*-
# @Time : 2018/11/6 11:12
# @Author : Hester Xu
# @Email : xuruizhu@yeah.net
# @File : homework3.py
# @Software: PyCharm
'''
有一组用户的登录信息存储在字典 login_info 里面,
字典格式如下:login_info={"admin":"root","user_1":"123456"}
key表示用户名,value表示密码,请编写函数满足如下条件:
1)设计1个登陆的程序, 不同的用户名和对成密码存在个字典里面, 输入正确的用户名和密码去... | [
"xuruizhu@yeah.net"
] | xuruizhu@yeah.net |
ef9b12909b95ce4e5116906a628c74c5eac7abc0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02866/s920983279.py | fb63213ca0825c257ed3b28e23543535b9e73049 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees, log2, gcd
from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby
from operator import itemgetter... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f78a25cb4f415024b1c9170cad8fd8e15dfcd751 | f17c78929df552050b3769611b5dfed1b942aa5d | /Learning Records and Essays/python/program.py | 2ab8f506897b246b05560536ba744caeb203d7d9 | [] | no_license | chirsxjh/My-project | f5d4d45e2673898f5fe7aace0d3101efdf847841 | b9644f268f8c3ec22f47cc7b0a61b66572f1f67a | refs/heads/master | 2022-12-03T16:26:37.391733 | 2020-06-08T07:43:51 | 2020-06-08T07:43:51 | 103,375,743 | 1 | 0 | null | 2022-11-22T01:06:51 | 2017-09-13T08:43:16 | Python | UTF-8 | Python | false | false | 299 | py | '''
def ADD(x, list=[]):
list.append(x)
return list
list1 = ADD(10)
list2 = ADD(123, [])
list3 = ADD('a')
print "list1 = %s" %list1
print "list2 = %s" %list2
print "list3 = %s" %list3
'''
a = ['天','干','地','址']
a.reverse()
print (a)
b = ''
for i in a:
b = b + str(i)
print (b)
| [
"1131360171@qq.com"
] | 1131360171@qq.com |
c816092f5dd0202ad4d6b7c5b4abd35bbfb25cf2 | 77e303d8353170f4181ab9ff66ac77cb57d46caf | /src/629A.py | 1c9f11924c54c36ccc22a0416876514f665be01c | [
"MIT"
] | permissive | viing937/codeforces | 14f689f2e3360939912e927fb830c69f7116b35c | 5bd8c2bec0e48cb2b4830c26849ea7fda447267c | refs/heads/master | 2022-09-25T19:51:03.891702 | 2022-08-15T15:32:54 | 2022-08-15T15:32:54 | 32,905,529 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | n = int(input())
c = [list(input()) for i in range(n)]
ans = 0
for i in range(n):
t = c[i].count('C')
ans += t*(t-1)//2
c = list(zip(*c))
for i in range(n):
t = c[i].count('C')
ans += t*(t-1)//2
print(ans)
| [
"viing937@gmail.com"
] | viing937@gmail.com |
23b6e3836ef36023c6255d9903431b590aaea51e | e3565e1ce607f60745f2a045aae8026661a6b99b | /resources/Onyx-1.0.511/py/onyx/signalprocessing/vocalsource.py | 9863cde71cd98b28ea7fe3c186ac6c9216905a01 | [
"Apache-2.0"
] | permissive | eternity668/speechAD | 4c08d953b2ed06b3357b1c39d8709dd088a2471c | f270a1be86372b7044615e4fd82032029e123bc1 | refs/heads/master | 2021-01-12T22:10:33.358500 | 2014-02-03T16:03:28 | 2014-02-03T16:03:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,268 | py | ###########################################################################
#
# File: vocalsource.py (directory: py/onyx/signalprocessing)
# Date: 2008-07-21 Mon 18:01:50
# Author: Hugh Secker-Walker
# Description: Toying around with one-poles for a vocal source
#
# This file is part of Onyx ht... | [
"nassos@n12mavra.cs.ntua.gr"
] | nassos@n12mavra.cs.ntua.gr |
6e7840f3b7e05d1ddf4e6c47d41b89b1a83737bf | a559b7a111bf95aa301080c34766ca0f16aa7329 | /Programmers/파이썬을파이썬답게/introduction.py | a18bfb35e3fed3b8b4a9cda373735d40f90ef143 | [] | no_license | arara90/AlgorithmAndDataStructure | ccda81d858fdf52aa15d22924b18e7487f659400 | 27280bcc64923f966b854f810560c51e08f3c5be | refs/heads/master | 2022-07-15T05:02:17.157871 | 2022-06-29T14:13:54 | 2022-06-29T14:13:54 | 190,366,467 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | #나쁜예 => C, java에 가까움
def Badsolution(mylist):
answer=[]
for i in mylist:
answer.append(len(i))
return answer
def solution(mylist):
return list(map(len, mylist))
print(solution([[1,2], [1], [1,2,3]]))
| [
"ararajo@gmail.com"
] | ararajo@gmail.com |
1ad6937e8bdea506f7697898bd9d808c4fa4f815 | 5717eefe96f447e4229a5d6fb3fe92a0a34ad123 | /SelectionProc/asgi.py | a94e39c16311db507e9a5cccf757d9ef20f9c847 | [] | no_license | nayneshrathod/SelectionProces | 901b4c8063cc036f31604bf9b7f2b6dec4e36f3e | 0e28e97952f7f8fa5c8490d9fced5c866d0be41b | refs/heads/master | 2022-09-03T18:35:05.642945 | 2020-05-18T09:51:11 | 2020-05-18T09:51:11 | 264,897,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for SelectionProc project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO... | [
"nayneshrathod@gmail.com"
] | nayneshrathod@gmail.com |
1435ac835f13f7cf7b2db59ce4d4a74dd0730448 | 00414b9d72c922b873cc2ebcb4d1ce068de5007f | /src/backend/partaj/core/migrations/0039_generate_initial_topic_materialzed_paths.py | ada91317724825f40c9b247507671d4440208481 | [
"MIT"
] | permissive | MTES-MCT/partaj | 1de9691dc6e7615c1d228a0e39c9208b97222dab | 22e4afa728a851bb4c2479fbb6f5944a75984b9b | refs/heads/main | 2023-08-07T08:22:30.290701 | 2023-08-04T16:57:38 | 2023-08-04T17:22:26 | 237,007,942 | 4 | 3 | MIT | 2023-09-14T19:10:26 | 2020-01-29T14:54:46 | Python | UTF-8 | Python | false | false | 1,358 | py | # Generated by Django 3.0.5 on 2021-01-11 16:29
from django.db import migrations
def forwards(apps, schema_editor):
"""
As we add explicitly non-nullable Materialized Paths for Topics in 0038, we need to generate
initial values for them once as the app migrates along.
This replaces the insignificant ... | [
"me@mbenadda.com"
] | me@mbenadda.com |
1e8a3348441cdd66ee1ada2eecdd32cfe1cb121c | 42e66cd537c357e7cb98081a6ebf80c23a8a8613 | /.history/real_estate/settings_20201111113422.py | b872cb7082440c6f663854d2548a252564c4a520 | [] | no_license | David-Uk/django-real-estate | bec5d38379f32e63110a59a32a10a64b1107adca | d2d7f4320d7aadde719a48c4c67eb39c22096e2d | refs/heads/main | 2023-01-24T08:58:58.935034 | 2020-12-08T14:19:55 | 2020-12-08T14:19:55 | 310,417,389 | 0 | 0 | null | 2020-12-08T14:19:57 | 2020-11-05T21:07:38 | HTML | UTF-8 | Python | false | false | 3,316 | py | """
Django settings for real_estate project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import o... | [
"david.ukelere291@gmail.com"
] | david.ukelere291@gmail.com |
35ac9fb57d8681c94e0cff9605084217104cdb7b | 242a8ad0b0939473269a14a02097ede7fe298c80 | /venv/Scripts/django-admin.py | c71cadfc8e6c758496a288e4f8135d1b9e6ba082 | [] | no_license | Md-Jahid-Hasan/recipe_api | f97b2d6c0c5a65c2c52ee572a2885dbae15021e4 | 5815f442820b05ab36747cf52e1b990cd3f6f2d3 | refs/heads/master | 2023-04-30T11:44:03.391725 | 2021-05-08T15:31:02 | 2021-05-08T15:31:02 | 365,547,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | #!F:\New folder (2)\Projects\Django\recepi_api\venv\Scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-a... | [
"jahid15-1905@gmail.com"
] | jahid15-1905@gmail.com |
ca84e03841878e26147430f70953307c781e0d13 | 9c73dd3043f7db7c9ec76d560484e99ad134fdb6 | /students/douglas_klos/lesson01/assignment/pytests/test_integration.py | ec086b6cc4992e206ac1bb6bd5d2d8197cbecf22 | [] | no_license | UWPCE-PythonCert-ClassRepos/py220-online-201904-V2 | 546b316025b680ca28d24b523663095398616b13 | ac12beeae8aa57135bbcd03ac7a4f977fa3bdb56 | refs/heads/master | 2022-12-10T03:14:25.514630 | 2019-06-11T02:14:17 | 2019-06-11T02:14:17 | 179,139,181 | 1 | 19 | null | 2022-12-08T01:43:38 | 2019-04-02T18:49:10 | Python | UTF-8 | Python | false | false | 6,476 | py | #pylint: disable=W0201
"""Pytest cases for integration testing"""
# Douglas Klos
# April 5th, 2019
# Python 220, Lesson 01
# test_integration.py
from inventory_management.inventory_class import Inventory
from inventory_management.furniture_class import Furniture
from inventory_management.electric_appliances_class imp... | [
"dougklos@gmail.com"
] | dougklos@gmail.com |
b0e25979e15ea5efd7427c6038b6c11cb3178ac7 | dc025df4a433b82c96fa7a4e064f46ecc948d1a2 | /subsets.py | db716e80dbae2dc466bda23b9e555097d492879d | [] | no_license | bingh0616/algorithms | c9d3babd6cbf3aefd40fa28a3c839c7201f1028c | 3b16c72d9361c4bb063e4b2789db695f1e0149bf | refs/heads/master | 2021-01-18T14:10:45.125905 | 2015-11-19T06:03:48 | 2015-11-19T06:03:48 | 35,512,148 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | # problem description: https://leetcode.com/problems/subsets/
class Solution:
# @param {integer[]} nums
# @return {integer[][]}
def subsets(self, nums):
nums.sort()
return self.helper(nums)
def helper(self, nums):
if not nums: return [[]]
res = []
for r ... | [
"bingh0616@gmail.com"
] | bingh0616@gmail.com |
0e9cd66bbd0054c01e59c474b682f77a6ffa0e06 | 70f5f279e051360310f95be895320d8fa6cd8d93 | /extraPackages/matplotlib-3.0.2/examples/text_labels_and_annotations/text_fontdict.py | ad6fa8cc972b272be0283fbb0c838ad95c23a5c4 | [
"BSD-3-Clause"
] | permissive | spacetime314/python3_ios | 4b16ab3e81c31213b3db1e1eb00230621b0a7dc8 | e149f1bc2e50046c8810f83dae7739a8dea939ee | refs/heads/master | 2020-05-09T20:39:14.980041 | 2019-04-08T15:07:53 | 2019-04-08T15:07:53 | 181,415,024 | 2 | 0 | BSD-3-Clause | 2019-04-15T05:00:14 | 2019-04-15T05:00:12 | null | UTF-8 | Python | false | false | 865 | py | """
=======================================================
Controlling style of text and labels using a dictionary
=======================================================
This example shows how to share parameters across many text objects and labels
by creating a dictionary of options passed across several functions.... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr |
b9b7099438fdf0d48829c0a48561dbbc3874bb41 | 865bd0c84d06b53a39943dd6d71857e9cfc6d385 | /200-number-of-islands/number-of-islands.py | 5fc729f5608542946c98442cec6944f6321aa2a1 | [] | no_license | ANDYsGUITAR/leetcode | 1fd107946f4df50cadb9bd7189b9f7b7128dc9f1 | cbca35396738f1fb750f58424b00b9f10232e574 | refs/heads/master | 2020-04-01T18:24:01.072127 | 2019-04-04T08:38:44 | 2019-04-04T08:38:44 | 153,473,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | # Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water.
#
# Example 1:
#
#
# Input:
# 11110
# 11010
# 11000
# 0... | [
"andyandwei@163.com"
] | andyandwei@163.com |
80640c531be3ce486871f2c0e1d8a4fe3315e162 | 297efd4afeb46c0b56d9a975d76665caef213acc | /src/core/migrations/0123_auto_20191204_1711.py | 81bd185dc755bfa58df30b1e75a3d95810624907 | [
"MIT"
] | permissive | metabolism-of-cities/metabolism-of-cities-platform-v3 | 67716c3daae86a0fe527c18aef26ce29e069cbcc | c754d3b1b401906a21640b8eacb6b724a448b31c | refs/heads/master | 2022-12-06T22:56:22.207853 | 2020-08-25T09:53:51 | 2020-08-25T09:53:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | # Generated by Django 2.2.7 on 2019-12-04 17:11
from django.db import migrations, models
import django.db.models.deletion
import tinymce.models
class Migration(migrations.Migration):
dependencies = [
('core', '0122_reference_cityloops_comments_import'),
]
operations = [
migrations.Creat... | [
"paul@penguinprotocols.com"
] | paul@penguinprotocols.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.