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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
96e8c5c0de2d305c63d6d23a0b1aaeb507e67ff8 | ddd7d37f3a98b508e16f27978bf788fc61358225 | /wsgi.py | 06b4bc7a115d792c6e0690fac47c8d93e9c07d3e | [] | no_license | nbh847/bbs_practice | b124e59b86b8fb65b2e5ee34b8e7065a05bcee41 | 21946cbf27a34028a53144a2c202d763fda6ee21 | refs/heads/master | 2020-03-28T19:20:31.590484 | 2018-10-24T14:15:40 | 2018-10-24T14:15:40 | 148,966,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | #!/usr/bin/env python3
import sys
from os.path import abspath
from os.path import dirname
# 设置当前目录为工作目录
sys.path.insert(0, abspath(dirname(__file__)))
# 引入 app.py
import app
# 必须有一个叫做 application 的变量
# gunicorn 就要这个变量
# 这个变量的值必须是 Flask 实例
# 这是规定的套路(协议)
application = app.app
# 这是把代码部署到 apache gunicorn nginx 后面的套路
"... | [
"binhui.ni@yourdream.cc"
] | binhui.ni@yourdream.cc |
7c2da6da0584f39818fbf738cbb2c1a7d78c13aa | 8535bbc7781c4691880c935bd7025646f0dbb7c3 | /check mirror images of two arrays.py | daa0276c484e75516f27c7d2d1b8b51dc8139981 | [] | no_license | Mahadev0317/Codekata | 3b2149f3116ebe4b48b2059b873544c27b23ff39 | c35fa0ed0c4870faea69152638f461e743a9ff69 | refs/heads/master | 2020-04-15T04:59:17.062947 | 2019-05-29T04:46:35 | 2019-05-29T04:46:35 | 164,404,727 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | n=int(input())
li=list(map(int,input().split()))
lis=list(map(int,input().split()))
k=n-1
for i in range(n):
if li[i]!=lis[k]:
print("no")
break
k-=1
else:
print("yes")
| [
"noreply@github.com"
] | Mahadev0317.noreply@github.com |
9404fc7b69c9461b11360f92805c0269adeb68e9 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/9e606bfdbe039112b609c263cb4dfc23e31ffe93-<check_regressors_train>-bug.py | 46b71af4c66c69b7a702b9f117d56ad37df9194f | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | @ignore_warnings(category=(DeprecationWarning, FutureWarning))
def check_regressors_train(name, regressor_orig):
(X, y) = _boston_subset()
y = StandardScaler().fit_transform(y.reshape((- 1), 1))
y = y.ravel()
regressor = clone(regressor_orig)
y = multioutput_estimator_convert_y_2d(regressor, y)
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
3b2933c2a78105815d35f620b0fe153ed6a99d8c | fca36ece36254e6175d7ac26791ae0e0abedd040 | /ex03.py | 8f728c512cd7fc125cef46901dabc8aa8b3eabc0 | [] | no_license | DikranHachikyan/python-programming-20190318 | 72c63ccdb716db871c755bb589e333c9fc57bcd5 | 0e6b4c599be3d69efdb4acf7817abc3d9d41eb7b | refs/heads/master | 2020-04-29T23:35:10.401263 | 2019-04-18T14:59:30 | 2019-04-18T14:59:30 | 176,480,840 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | #!/home/wizard/anaconda3/bin/python
def main():
x = int(input('x='))
if x < 10:
print('x={}'.format(x))
main() | [
"dhachikian@expert-bg.org"
] | dhachikian@expert-bg.org |
1f8bd03e1ef888abd81c307876d56b9be3c041cf | b3a2ac9eb02a6eef9e6f3504afabc6400f894f56 | /clld/tests/test_web_app.py | b32979cb1f2d24ff5e626188403624fba5dc541a | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | Anaphory/clld | 9f67c477e228eff05fdc7b7fa4310c703af02108 | bed1a6d08275a41fd7b5d13a0af19e4e538d186c | refs/heads/master | 2021-01-17T04:50:05.382411 | 2017-02-16T11:20:11 | 2017-02-16T11:20:11 | 66,831,136 | 0 | 0 | null | 2016-08-29T09:43:06 | 2016-08-29T09:43:05 | null | UTF-8 | Python | false | false | 3,180 | py | # coding: utf8
from __future__ import unicode_literals, print_function, division, absolute_import
import importlib
from zope.interface import Interface
from pyramid.testing import Configurator
from pyramid.httpexceptions import HTTPNotFound
from purl import URL
from clld.db.models.common import Contribution, ValueSet... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
ba67521102acfb8f7814511d76092c36dc6602be | 5ca85847885c6fd6f9728b0b2dffb66e96a81a1d | /hemlock/database/types/__init__.py | 6c06c43fc1ad509b883efcf9d4a7a2afd3756cbc | [] | no_license | syfreed/hemlock_test2 | 682d843636883a6a2b883932cd7282e9b865ebcd | 61933fd17630ddd1bb46d8f2090b1b039a3b4e99 | refs/heads/master | 2020-08-03T11:21:18.460905 | 2019-09-29T22:36:36 | 2019-09-29T22:36:36 | 211,733,895 | 0 | 0 | null | 2019-10-22T14:21:27 | 2019-09-29T22:25:30 | Python | UTF-8 | Python | false | false | 227 | py | """Custom Hemlock database types"""
from hemlock.database.types.data_frame import DataFrame, DataFrameType
from hemlock.database.types.function import Function, FunctionType
from hemlock.database.types.markup import MarkupType | [
"dsbowen@wharton.upenn.edu"
] | dsbowen@wharton.upenn.edu |
380aef44b9b7964ea582816fee79936176253abd | 8152e8fba564bcfa435c45dab41cd6f0b455f857 | /farmdation_project/farmdation/contrib/sites/migrations/0002_set_site_domain_and_name.py | 4c91e98dd67d65f97ee31ca5c1c705f719a236ea | [
"MIT"
] | permissive | panuta/django-storehouse | af068d9fb356f1f6243854c8944ff8146833202e | 6b90b0de231671b20f2f549a74a52d87694d821a | refs/heads/master | 2021-01-17T18:19:45.791785 | 2016-07-02T02:52:04 | 2016-07-02T02:52:04 | 62,430,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | """
To understand why this file is here, please read:
http://cookiecutter-django.readthedocs.org/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django
"""
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.db import migration... | [
"panuta@gmail.com"
] | panuta@gmail.com |
df67e70950e1afba7bbc49e3c1d809e2e069b4f4 | ecb6b752523a126ef17895854b18e02df41c4cfe | /app_backend/tests/test_skf_categories.py | cd07666e4b26e67263b352f3da1a4e2f7482217e | [
"MIT"
] | permissive | zhanghe06/bearing_project | cd6a1b2ba509392da37e5797a3619454ca464276 | 25729aa7a8a5b38906e60b370609b15e8911ecdd | refs/heads/master | 2023-05-27T17:23:22.561045 | 2023-05-23T09:26:07 | 2023-05-23T09:39:14 | 126,219,603 | 2 | 5 | MIT | 2022-12-08T03:11:27 | 2018-03-21T17:54:44 | JavaScript | UTF-8 | Python | false | false | 1,824 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: test_skf_categories.py
@time: 2020-05-19 16:32
"""
import csv
import requests
def test_get_skf_categories(csv_name, category_id):
params = {
'id': category_id,
'language': 'en',
'source': 'webpim',
... | [
"zhang_he06@163.com"
] | zhang_he06@163.com |
91aaf6d522486538a0edfd27de42e4a83a77f21e | ab4b210d204512f51a4807a652ccc0edaabe3341 | /kombu/tests/test_functional/test_amqplib.py | 94b9bfc92db9136c20c361ea1cc76fe35f9ccf9a | [
"BSD-3-Clause"
] | permissive | mixedpuppy/kombu | 2c4ec30ccc8ab9ccb20bab525cd525febb085ce2 | 04b9a6f2fb6854fadbb4c29880866135354fdeef | refs/heads/master | 2021-01-18T08:40:39.106451 | 2010-09-06T22:41:02 | 2010-09-06T22:41:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,517 | py | import socket
import time
import unittest2 as unittest
from nose import SkipTest
from kombu import BrokerConnection
from kombu import Producer, Consumer, Exchange, Queue
def consumeN(conn, consumer, n=1):
messages = []
def callback(message_data, message):
messages.append(message_data)
messa... | [
"askh@opera.com"
] | askh@opera.com |
f2f0d7e4e1a772df81cc5683ffdb4d196a8873f2 | 219566971a08625ca14c5ea7a6e1231454694a4b | /utils/sk_utils/encoder.py | bf2df2abcba4cbf2f1eb74522ece933562b35e72 | [] | no_license | daxiongshu/kaggle-review | 6b22e73702cd7a61f3d175f301c37dcc0d6e3ae2 | fc02e85d0544dd64d57c05081c8774dc87d1972e | refs/heads/master | 2021-01-19T18:03:23.795917 | 2017-11-26T18:16:25 | 2017-11-26T18:16:25 | 101,109,595 | 28 | 14 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | from sklearn.feature_extraction import DictVectorizer
from scipy import sparse
def onehot_encode(tr,te,cols=None):
if cols is None:
cols = [i for i in tr.columns.values if i in te.columns.values]
vec = DictVectorizer()
for col in cols:
tr[col] = tr[col].map(str)
te[col] = te[col].map... | [
"aixueer4ever@gmail.com"
] | aixueer4ever@gmail.com |
af68bf54c136aa54b298013c4dfeb5bfe6778541 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-minLength-2-2.py | ff4cdb9e18778ab154122ead5ea2d8575b566545 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 392 | py | from output.models.nist_data.list_pkg.float_pkg.schema_instance.nistschema_sv_iv_list_float_min_length_2_xsd.nistschema_sv_iv_list_float_min_length_2 import NistschemaSvIvListFloatMinLength2
obj = NistschemaSvIvListFloatMinLength2(
value=[
4.9827486e+21,
3.5627644e+26,
5.6398728e+22,
... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
1806b9d06d3b1f2f058b6de59649d283c0cc1248 | d15092c5fa7e5d825f5204fa2e799f88c9495de5 | /non_semantic_speech_benchmark/export_model/model_export_utils.py | 4bd07af3f1681f17c17e09b7d7d39b1a8d54e647 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | GuyLor/google-research | 229e27ff7cf1c838736704537e3636defa710200 | 083ccfb249a3e2bfc49a9d56f7d2b7aae42e8c2c | refs/heads/master | 2023-09-05T16:28:26.720671 | 2021-11-16T06:17:56 | 2021-11-16T06:17:56 | 428,534,818 | 0 | 0 | Apache-2.0 | 2021-11-16T05:56:17 | 2021-11-16T05:56:16 | null | UTF-8 | Python | false | false | 6,971 | py | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
4a0f4b497cb62c2567f2afacb29986f97a64d2b4 | ddea930392ac5360b21e9043b620e703a9ccb31c | /tfx/components/transform/component.py | 7cb900078da95ed33cbe2fdf9bd9a465b5e9a56e | [
"Apache-2.0"
] | permissive | Ark-kun/tfx | 9c82b688776c80b2435bbb6154476526e8525ec8 | f685f0387bd145316f43ceb484e64f893e749dcb | refs/heads/master | 2021-07-25T05:58:15.168607 | 2020-05-22T01:07:44 | 2020-05-22T01:08:18 | 180,868,735 | 0 | 0 | Apache-2.0 | 2019-04-11T20:01:57 | 2019-04-11T20:01:57 | null | UTF-8 | Python | false | false | 6,330 | py | # Lint as: python2, python3
# Copyright 2019 Google LLC. 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 req... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
c7c37367f4842a662f51398fc768a9d153243f39 | 159fddadea70761e5fa15ecc15ab68342958d088 | /tours/migrations/0039_auto_20190923_2153.py | 60ceae4908da7ea110c38c75959b195ff22bd085 | [] | no_license | lalit1796/mytrip | 56a2bcdaa70ffe1234025e3b0599c53d4633462c | 2b8ab34d16960ef228adb2458e5b4bd0213ee923 | refs/heads/master | 2023-08-08T01:07:30.487038 | 2021-09-04T14:04:42 | 2021-09-04T14:04:42 | 402,809,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # Generated by Django 2.2.2 on 2019-09-23 16:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tours', '0038_auto_20190923_2151'),
]
operations = [
migrations.AlterField(
model_name='package',
name='uid',
... | [
"lalitsingh1796@gmail.com"
] | lalitsingh1796@gmail.com |
d41f85e2c73f965a8555cd3f6da0967a0e321fde | 5cc4a73d6fb144d72e74b07a10b60fc36bfe50ec | /videos/api/serializers.py | 462b50c2b48ff27afdefbc67ced6a79e795bd6b4 | [] | no_license | pedrofolch/digitalsoil | 79d9497dcbb54df3c7df64f9da35d71d592fe580 | 7b6d1ffd34e991cf87c91342e5336a97fa1cf59b | refs/heads/master | 2022-12-11T00:47:01.728729 | 2019-04-11T03:34:12 | 2019-04-11T03:34:12 | 120,937,159 | 0 | 0 | null | 2022-12-08T04:58:09 | 2018-02-09T17:49:10 | CSS | UTF-8 | Python | false | false | 1,113 | py | from rest_framework import serializers
from videos.models import Video
class VideoSerializer(serializers.ModelSerializer):
uri = serializers.SerializerMethodField(read_only=True)
class Meta:
model = Video
fields = [
'uri',
'pk',
'title',
'embed... | [
"pedro.folch@gmail.com"
] | pedro.folch@gmail.com |
6d640e9621785207c8da853c9f502cf40e5f4c34 | 74a30d76f49051ec0200a847fe83431a9501f3d7 | /address_func.py | a5b6612a9078be5ba1d28b66d635386fd78f59b7 | [] | no_license | Milziade/nano_dash | 97e827ac24c5e8f3d97e8de69e151afd4d7d8fac | 00618fa1f6d425b63f6ada625569eadda69a0176 | refs/heads/master | 2023-05-01T02:36:51.595622 | 2021-05-12T14:06:07 | 2021-05-12T14:06:07 | 362,456,210 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,908 | py | import requests
import pandas as pd
import random
import colors
def get_json(nano_address):
action = {
'action': 'account_history',
'account': nano_address,
'count': '-1'
}
r = requests.post('https://mynano.ninja/api/node', json=action).json()
if 'error' in r:
return F... | [
"you@example.com"
] | you@example.com |
9cfd5d850bcc7982efa80f394dbca752ca768af5 | 39c7f0955e0247bbe34ec0f2a4a7e2d3294dc0df | /deployment-scripts/scripts/infrastructure/openstack/openstack-create-instance.py | 2426dac27ae7ea1e05036985173780e9337887f9 | [] | no_license | marjancek/Showcase | df9eac6b7c32d2209b6ffac3f80d6c6d92c5c1d3 | eced27c10b7b9d5e4b10d296661e33cb0375a5fa | refs/heads/master | 2021-01-15T09:08:48.146581 | 2014-11-19T12:13:16 | 2014-11-19T12:13:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | from novaclient.v1_1 import client as novaclient
from common.Cloudscale import *
from scripts.common.Cloudscale import check_args, parse_args
class CreateInstance:
def __init__(self, cfg):
self.cfg = cfg
self.user = cfg.get('OPENSTACK', 'username')
self.pwd = cfg.get('OPENSTACK', 'passwor... | [
"simon.ivansek@xlab.si"
] | simon.ivansek@xlab.si |
43d1732932045b85378fb924ea0c306a767dc816 | 93090ffc3ccaf142a0c739e00c28486175220373 | /04-day/main.py | 96482f4046784b840f4b1a090c566af8992a3b4e | [
"MIT"
] | permissive | timbook/advent-of-code-2020 | f17b89fb1ccb5fe449b4864cca64a95f527c6782 | 3b1c107a67b9f31891e77a258e45aee76fac4e47 | refs/heads/main | 2023-01-25T01:19:02.520349 | 2020-12-17T20:31:31 | 2020-12-17T20:31:31 | 317,431,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,161 | py | import re
from functools import reduce
raw = open('input.txt', 'r').read().split('\n\n')
class Passport:
required_fields = ['byr', 'iyr', 'eyr', 'hgt', 'hcl', 'ecl', 'pid']
def __init__(self, entry):
fields = re.split('\s', entry.strip())
self.fields = {field.split(':')[0]:field.split(':')[1]... | [
"timothykbook@gmail.com"
] | timothykbook@gmail.com |
5d028cc1080c4c3e46b7d4d114f8177121ac2c6d | d16c15f2fb433c6b5874ea49ff5db89315e9711d | /benchmarks/comparison-with-addict.py | 2f6c181632636f0ac48d33a840027e004ad8d8d9 | [
"MIT"
] | permissive | vltr/middle | f9e16735beaccafdc7535271418dd9a8f6b22706 | f7782610fbb1d9232a3b4cfea057a9331db2775e | refs/heads/develop | 2023-08-17T20:35:02.878999 | 2019-06-18T15:44:46 | 2019-06-18T15:44:46 | 138,063,484 | 11 | 2 | MIT | 2023-09-04T21:27:09 | 2018-06-20T17:15:26 | Python | UTF-8 | Python | false | false | 4,561 | py | import cProfile
import sys
from enum import Enum
from enum import IntEnum
from enum import unique
from typing import Dict
from typing import List
from typing import Set
# --------------------------------------------------------------- #
# Import boilerplate
# -----------------------------------------------------------... | [
"rkuesters@gmail.com"
] | rkuesters@gmail.com |
8d00346ccd82c5a105df92d54bf196574f2e3de6 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/9c113f9b86aece3efdf169af67c4e436/snippet.py | 0262b68437c1a2c6ae2c332e575f4c5626c155a7 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 288 | py | def main():
n,k=[int(i) for i in input().split(' ')]
a=[1]*(n+1)
for i in range(1,min(k, n+1)):
a[i]=a[i-1]+a[i-1]
if k <= n:
a[k]=sum([a[j] for j in range(k)])
for i in range(k+1, n+1):
a[i]=a[i-1]+a[i-1]-a[i-k-1]
print(str(a[n]))
main()
| [
"gistshub@gmail.com"
] | gistshub@gmail.com |
6f30e11fcb2ba4ecc7185185027b62f16a44e4c6 | be5ea20226c37d81f1ccb2f704d8825d36e88765 | /01. Defining classes/Exercise/01_car.py | 00078b2c67447f092dffe365c113ef2ae8c2b86b | [] | no_license | dimDamyanov/PythonOOP | 3845e450e5a48fef4f70a186664e07c0cd60e09b | 723204f5b7e953874fac9314e48eb1d1628d6ff5 | refs/heads/main | 2023-04-07T18:00:36.735248 | 2021-04-19T20:57:14 | 2021-04-19T20:57:14 | 341,329,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | class Car:
def __init__(self, name: str, model: str, engine: str):
self.name = name
self.model = model
self.engine = engine
def get_info(self):
return f'This is {self.name} {self.model} with engine {self.engine}'
car = Car("Kia", "Rio", "1.3L B3 I4")
print(car.get_info())
| [
"dim.damianov@gmail.com"
] | dim.damianov@gmail.com |
06ab40e0b88490e56e9bd9ac37b30153986def03 | 09d7c902e35df7eec3d3da192f0aaa47739540a5 | /user_portrait/cron/flow4/zmq_work_weibo_flow4.py | 241ba690235543b12bd7c89723eb1de326fac4c5 | [] | no_license | yuwendong/user_portrait | 2a9604ea5389f9410aae98acad11742454c36d6e | 1b2cd78c91a7154c3e360a90d8426b53b68b4453 | refs/heads/master | 2020-12-24T16:41:06.469723 | 2015-10-15T14:32:26 | 2015-10-15T14:32:26 | 38,371,050 | 1 | 0 | null | 2015-07-01T12:54:02 | 2015-07-01T12:54:01 | null | UTF-8 | Python | false | false | 5,036 | py | # -*- coding=utf-8 -*-
import re
import sys
import zmq
import time
import json
import math
from datetime import datetime
reload(sys)
sys.path.append('../../')
from time_utils import ts2datetime, datetime2ts
from global_utils import R_CLUSTER_FLOW2 as r_cluster
from global_config import ZMQ_VENT_PORT_FLOW4, ZMQ_CTRL_V... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
324d2ab09e9924efc6e877be13f4cdfe40095ef3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03495/s459851114.py | 65115c84d9ff5de8c900d6c54330919f477407fb | [] | 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 | 218 | py | # arc086_a.py
import collections
N, K = map(int, input().split())
A = list(map(int, input().split()))
C = collections.Counter(A)
C = sorted(C.values())
lenght = len(C)
# print(lenght, K, C)
print(sum(C[:(lenght-K)]))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2df623dd9db20cd2aa0eb30f1334f2ffc828c00c | a47e5a1565b8b4a23010020fa6ed4225459845e7 | /marubatsu1.py | 3085d8d5bc8fb46f0a2622392e8575a84bd52493 | [] | no_license | katuhito/workspace13 | 0a4832e510c5f59a48aa0262985bcda91c01908d | 16e55c5e6f32e009ff27c9a22315916175303970 | refs/heads/master | 2023-03-08T08:48:28.602697 | 2021-03-07T01:07:41 | 2021-03-07T01:07:41 | 335,497,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | # 3目並べ
import random
goal = [
0b111000000, 0b000111000, 0b000000111,
0b100100100, 0b010010010, 0b001001001,
0b100010001, 0b001010100
]
# 3つ並んだか判定
def check(player):
for mask in goal:
if player & mask == mask:
return True
return False
# 交互に置く
def play(p1, p2):
if check(p2)... | [
"katuhitohara@gmail.com"
] | katuhitohara@gmail.com |
a29f6993d7d12c4674aecc24f39f9aa52dc357fc | 8b85b933041abac2879484c6280c1bf79f91358d | /moss/plotting.py | b2b3d28e4123da388554e57a623c5361d41b42e4 | [
"BSD-3-Clause"
] | permissive | ghaseminya/moss | 109a4c37d2ecd85bfaff03c563eded98d5296530 | 06a0ea862b9a6112921dcf5cf2a6d445d7f7e0dc | refs/heads/master | 2020-12-30T14:44:33.504941 | 2017-05-09T17:24:28 | 2017-05-09T17:24:28 | 91,079,527 | 1 | 0 | null | 2017-05-12T10:20:17 | 2017-05-12T10:20:17 | null | UTF-8 | Python | false | false | 338 | py | import matplotlib.pyplot as plt
def grid_axes_labels(axes, xlabel=None, ylabel=None, **kws):
plt.setp(axes.flat, xlabel="", ylabel="")
if xlabel is not None:
for ax in axes[-1]:
ax.set_xlabel(xlabel, **kws)
if ylabel is not None:
for ax in axes[:, 0]:
ax.set_ylab... | [
"mwaskom@stanford.edu"
] | mwaskom@stanford.edu |
83a1f372106c9220a41955a816d98ee436bd4081 | 7e118b7f02275e7d1faf1e24e6bb1f6d1e173da5 | /04_factory/pizza_store/lib/pizza.py | 4bd3d2bd59b7f2f37614cabbd5b5c69869ede551 | [
"MIT"
] | permissive | denzow/practice-design-pattern | e378a7d2d95585ab6e3c3a4b72f46c5faeb2b92b | 141d59c51375e36769a73b6ff135a8afae64b664 | refs/heads/master | 2021-05-13T17:33:10.892543 | 2018-02-11T14:53:06 | 2018-02-11T14:53:06 | 116,826,619 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | # coding: utf-8
from abc import ABC, abstractmethod
class Pizza(ABC):
def __init__(self, ingredient_factory):
"""
:param lib.pizza_factory.PizzaIngredientFactory ingredient_factory:
"""
self._ingredient_factory = ingredient_factory
self._name = None
self._dough = ... | [
"denzow@gmail.com"
] | denzow@gmail.com |
9ec342d11277ab3c3daa4867c1bb011eb93f1655 | fc529d1d801d695150a6ebcd3e2d548ffa8d738d | /tests/test_parser.py | 86ba3dbec713ac04cd077e2304299e0d3fd5199a | [] | permissive | JeanExtreme002/Virtual-Assistant | 1db080cf3026a64918c0ebadd1727c29bb46205e | 1444af964b21c6d043b1b8ccb23f34999c5fd81a | refs/heads/master | 2021-07-25T05:54:58.886570 | 2021-07-09T05:35:31 | 2021-07-09T05:35:31 | 219,252,394 | 7 | 2 | BSD-3-Clause | 2020-09-22T16:01:20 | 2019-11-03T04:41:47 | Python | UTF-8 | Python | false | false | 1,510 | py | import os, sys, util
sys.path.append(os.getcwd())
from src.assistant.exec.commandList import CommandList
from src.assistant.exec.parser import VoiceCommandParser
command_list = CommandList("EN-US")
parser = VoiceCommandParser(command_list)
def test_parse_system_command():
command_instance = parser.parse("repeat ... | [
"jeangamerextreme@gmail.com"
] | jeangamerextreme@gmail.com |
7f418a52a6716871d15b6b8f3ba89cbaa3cd4da8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03138/s702162180.py | 23360336ae7fa25d7e78a6efe78b883d1ec939af | [] | 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 | 434 | py | import os, sys, re, math
N,K = list(map(int,input().split(' ')))
A = list(map(int,input().split(' ')))
d = math.ceil(math.log2(1e+12))
ones = [0 for _ in range(d)]
for a in A:
s = bin(a)[::-1]
for i in range(len(s)-2):
if s[i] == '1':
ones[i] += 1
X = 0
for di in range(d-1,-1,-1):
if... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
efdd83f89865011b36433b262e2cd99fe684ad1c | 6c10c6e229014dc3bf14efaec2ea8bf07c406752 | /AILearning/OptimationDeepLearning/MinibatchSGD.py | e41b377b4f3ba2829d2a1b4188d25f78bd57522d | [] | no_license | GuyRobot/AIPythonExamples | e59c6edb355d9cadee2b3f19a087b1b656956262 | 4acdd0d4966e31a616910554bc075b641aa152df | refs/heads/master | 2021-05-21T13:05:49.615593 | 2021-02-28T06:41:04 | 2021-02-28T06:41:04 | 252,662,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,465 | py | from d2l import AllDeepLearning as d2l
from mxnet import autograd, gluon, init, nd
from mxnet.gluon import nn
import numpy as np
"""
Mini batches
w←w−η_t*g_t
where gt=∂_wf(x_t,w)
We can increase the computational efficiency of this operation by
applying it to a minibatch of observations at a time. That ... | [
"bluexker@gmail.com"
] | bluexker@gmail.com |
149b691ee439a8d0a0d99a8d0e4ac6254fc50945 | 2cc6cf6e9d91799cbd9ac02f2771f7c9f95776bd | /test13.py | ce7a89c8373a7740d97c943989fa75b86726a611 | [] | no_license | Master-sum/python_project | f938aa9f27e040c68c11766e1358dd7fff231b22 | 63036d1d80cd645d8080c8fee5bb30f241ab9914 | refs/heads/master | 2022-04-22T04:45:21.263195 | 2020-04-11T11:14:54 | 2020-04-11T11:14:54 | 254,782,126 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | def change (aint,alst):
aint = 0
alst[0] = 0
alst.append(4)
print('aint:',aint)
print('alst:',alst)
aint = 3
alst = [1,2,3]
print('1',aint)
print('1',alst)
change(aint,alst)
print('3',aint)
print('3',alst) | [
"285957109@qq.com"
] | 285957109@qq.com |
aeb8b2fe9095164e8fa12451d0d10e1a784add85 | 651a296c8f45b5799781fd78a6b5329effe702a0 | /subset/comp_rank_grlex.py | 0d203ef0c529c7bf4b41b524004553b9408e4928 | [] | no_license | pdhhiep/Computation_using_Python | 095d14370fe1a01a192d7e44fcc81a52655f652b | 407ed29fddc267950e9860b8bbd1e038f0387c97 | refs/heads/master | 2021-05-29T12:35:12.630232 | 2015-06-27T01:05:17 | 2015-06-27T01:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,691 | py | #!/usr/bin/env python
def comp_rank_grlex ( kc, xc ):
#*****************************************************************************80
#
## COMP_RANK_GRLEX computes the graded lexicographic rank of a composition.
#
# Discussion:
#
# The graded lexicographic ordering is used, over all KC-compositions
# for NC =... | [
"siplukabir@gmail.com"
] | siplukabir@gmail.com |
917f1e4058d8ddec0274a5dd448fc901123da679 | e1f53cb481f2b6ea2ac3ee53d0251c5d9ea782e0 | /src/pyaid/xml/XMLConfigParser.py | 8b3e6cb5d6bcf0235329fc8e3052b949a29c32ed | [] | no_license | hannahp/PyAid | 8771ee35c2fdf9503e68e808dc0028e885e68158 | b9562a954552334fab16c32a6b8285ea3e1571e0 | refs/heads/master | 2021-01-22T14:02:26.068735 | 2014-01-29T23:33:33 | 2014-01-29T23:33:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,164 | py | # XMLConfigParser.py
# (C)2011
# Scott Ernst
import re
import xml.dom.minidom as minidom
import codecs
from pyaid.xml.ConfigData import ConfigData
#___________________________________________________________________________________________________ XMLConfigParser
class XMLConfigParser(object):
"""XMLConfigParser.... | [
"swernst@gmail.com"
] | swernst@gmail.com |
8c0a4f5b85c510d63ce5695baafd7aac77604f94 | 3d6bb3df9ca1d0de6f749b927531de0790aa2e1d | /compare_SV_groups_to_trees.py | 5927663662c3f71b3728d89b37c671512184bf25 | [] | no_license | standardgalactic/kuhner-python | da1d66a6d638a9a379ba6bae2affdf151f8c27c5 | 30b73554cc8bc9d532c8108b34dd1a056596fec7 | refs/heads/master | 2023-07-07T04:18:30.634268 | 2020-04-06T04:37:48 | 2020-04-06T04:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,128 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 4 12:43:41 2018
@author: Lucian
"""
from __future__ import division
from os import walk
from os import path
from os import readlink
from os import mkdir
from os.path import isfile
from copy import deepcopy
import numpy
import math
import matplotlib.pyplot as plt
import... | [
"lpsmith@uw.edu"
] | lpsmith@uw.edu |
5a2a55a993186bacf8fed7bada23f6ab0264b6b5 | 8e55b122aa7b18b1734aafc3699b477c1e85cb91 | /pippy/fx/experimental/refinement_types.py | 665c9d0d651b4ed929e974d822a447809f3d26dd | [
"BSD-3-Clause"
] | permissive | yunxing/tau | 0a7a641db49da795de70e8db9748d93205be31ac | c679248814a76c915e651806f1b4f30a3de9fe92 | refs/heads/main | 2023-03-17T01:02:23.222622 | 2022-09-30T23:18:25 | 2022-09-30T23:18:25 | 543,822,164 | 0 | 0 | BSD-3-Clause | 2022-09-30T23:13:57 | 2022-09-30T23:13:56 | null | UTF-8 | Python | false | false | 457 | py | # Copyright (c) Meta Platforms, Inc. and affiliates
class Equality:
def __init__(self, lhs, rhs):
self.lhs = lhs
self.rhs = rhs
def __str__(self):
return f'{self.lhs} = {self.rhs}'
def __repr__(self):
return f'{self.lhs} = {self.rhs}'
def __eq__(self, other):
i... | [
"noreply@github.com"
] | yunxing.noreply@github.com |
fd99bf3d3c0e15b0191184e3ac916eff8f0f70d2 | a57e66be33512a7e2e99adb6f597151b56c4c373 | /psgreet.py | 23cec5ae7e9d198ceaf39575804a96c85a4837e3 | [] | no_license | ravijaya/sep28 | 17025ea0997a371f54a6374f90d4bf56e0206840 | 8907f4b03ac2c4b2f1806d0d7cf3fd6aa680680c | refs/heads/master | 2022-12-18T23:58:12.989144 | 2020-09-30T12:13:15 | 2020-09-30T12:13:15 | 299,901,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | name = input('enter the name :')
city = input('enter the city :')
zip_code = int(input('enter the postal code :'))
print('name :', name)
print('city :', city)
print(zip_code)
print(type(zip_code))
| [
"ravi.goglobium@gmail.com"
] | ravi.goglobium@gmail.com |
e095bb08830df4cb39df6e6f8c0f7a370cf6d071 | 524baf7de05bd3fc5b9d08083cbb0b7b47a67979 | /40.py | d5ffe3d133240d1686dcb26040a6492346e80813 | [] | no_license | gk90731/100-questions-practice | 1356dd577516567a5c51a4257f59fe01b123e7ff | f855549e037b9924dd6f0370dc2f2a53765d9227 | refs/heads/master | 2020-05-25T14:04:59.642819 | 2019-05-21T12:49:04 | 2019-05-21T12:49:04 | 187,835,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | '''Question: Please try to guess what is missing in the following code and add the missing part so that the code works fine.
import math
print(math.pow(2))'''
import math
print(math.pow(2,3))
| [
"gk90731@gmail.com"
] | gk90731@gmail.com |
d8c1268253a55b552a1766dca9855a16bb18ab78 | df489fddec1ffa936f0223efca3a35a22df36dc0 | /99_backup/25_各国历年二氧化碳CO2排放量统计分析/challenge7_1.py | 7c9a6e07c6db0eee678564cc8f73ddede36755f8 | [] | no_license | echo-xr/pc | 3af106530815956feb458889408085285b3fd8f5 | 03160675e912b4e4ad4642e14b5ab0230b973f6c | refs/heads/master | 2020-04-26T16:54:03.408688 | 2019-03-03T11:27:34 | 2019-03-03T11:27:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | def co2():
import pandas as pd
# 读取 Data 表
data = pd.read_excel('ClimateChange.xlsx')
# 取 'Series code' 这列中值为 'EN.ATM.CO2E.KT' 的行并设置索引
data = data[data['Series code']=='EN.ATM.CO2E.KT'].set_index('Country code')
# 刪掉多余的前五列,只留各年排量数据
data.drop(data.columns[:5], axis=1, inplace=True)
# 把数组中... | [
"1195581533@qq.com"
] | 1195581533@qq.com |
ca60ffe0443bb07e494632fa5f39f6372218f4ec | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/125/usersdata/172/29042/submittedfiles/ap1.py | 683a565ff52ea8deb8c87ed40b155d4040448259 | [] | 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 | 274 | py | # -*- coding: utf-8 -*-
a=float(input('digite o 1° número:'))
b=float(input('digite o 2° número:'))
c=float(input('digite o 3° número:'))
if a<=b and a<=c:
print(a)
if b<=c:
print(b)
print(c)
else :
print(c)
print(b)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7ccbfdbf9eb671918f8f2d2beca9b69a75d10e8d | a3e1e797acb16bf4d1e298271545927df8eaeae7 | /tests/unit/services/storage/test_base.py | 81a39a0af33497a1293be5621915105e9b1b977e | [
"MIT"
] | permissive | totem/cluster-deployer | 481b11b2953a3e195c46762659c97fceca75945a | 75160f051250fd782af42af472f965d50f721ff5 | refs/heads/develop | 2022-10-12T09:09:30.417412 | 2017-06-30T22:32:56 | 2017-06-30T22:32:56 | 23,778,754 | 0 | 2 | MIT | 2022-09-13T21:48:32 | 2014-09-08T04:03:06 | Python | UTF-8 | Python | false | false | 2,592 | py | import datetime
from freezegun import freeze_time
from mock import MagicMock
from nose.tools import raises
import pytz
from deployer.services.storage.base import AbstractStore
from tests.helper import dict_compare
NOW = datetime.datetime(2022, 01, 01, tzinfo=pytz.UTC)
NOW_NOTZ = datetime.datetime(2022, 01, 01)
clas... | [
"sukrit007@gmail.com"
] | sukrit007@gmail.com |
d4e55b4a3c1058d466250a81fc43250a26f6e81e | 79f541042e4b4d6bb443e7a758ca918817ea0f33 | /PythonGTK/Examples/19_cellRendererPixbuf.py | 075ed4f57dca6d57224051e634c8867f76537d47 | [] | no_license | ashutoshm1771/Source-Code-from-Tutorials | d5f950db8f5f648e87303835e9558eeba404939a | f5552d4bd0f4bebcf5c674ff730fcb61f2d7a1ce | refs/heads/master | 2020-09-15T06:08:31.777622 | 2019-11-22T09:08:31 | 2019-11-22T09:08:31 | 223,364,275 | 4 | 0 | null | 2019-11-22T09:01:51 | 2019-11-22T09:01:48 | null | UTF-8 | Python | false | false | 962 | py | from gi.repository import Gtk
class CellRendererPixbufWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="CellRendererPixbuf Example")
self.set_default_size(200, 200)
self.liststore = Gtk.ListStore(str, str)
self.liststore.append(["New", "document-new"])
... | [
"buckyroberts@gmail.com"
] | buckyroberts@gmail.com |
f7fb4d9a7d5027b2266d958ce939e45c3c255fd8 | 571a89f94f3ebd9ec8e6b618cddb7d05811e0d62 | /past202010/h/main.py | 3b515938a65636dfb734674b57c922c04b987390 | [] | no_license | ryu19-1/atcoder_python | 57de9e1db8ff13a107b5861f8f6a231e40366313 | cc24b3c2895aad71d40cefbb8e2893dc397b8f4f | refs/heads/master | 2023-05-10T05:32:16.507207 | 2021-05-19T17:48:10 | 2021-05-19T17:48:10 | 368,954,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | #!/usr/bin/env python3
import sys
from collections import deque, Counter
from heapq import heappop, heappush
from bisect import bisect_right
from itertools import accumulate
sys.setrecursionlimit(10**6)
INF = 10**12
m = 10**9 + 7
def main():
N, M, K = map(int, input().split())
S = [list(input()) for _ in ran... | [
"ryu1007kami@gmail.com"
] | ryu1007kami@gmail.com |
555768f7f3294b960854d8e29e515027c5aefc09 | c1e87e9a7f0f2e81e3113821c21378f7b6436b6f | /Щелчок/15_поляков/22.py | 23cd2689e5ef0c8d8a5c67a9dc002aa76f830d5a | [] | no_license | Pochemu/Activity | 8e2a7ec4f6b7fd233c0ee48e893733b077aac7a4 | 1b21e674635ff95104e18e93241c30020032e26a | refs/heads/main | 2023-07-09T04:04:06.337321 | 2021-07-06T21:38:26 | 2021-07-06T21:38:26 | 337,492,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | for i in range(101, 1000):
x = i
L = x - 21
M = x + 12
while L != M:
if L > M:
L = L - M
else:
M = M - L
if M == 11:
print(i) | [
"48361330+Pochemu@users.noreply.github.com"
] | 48361330+Pochemu@users.noreply.github.com |
0d2cb05f03c5148d545df139b233bb65df55f7c4 | 21d1d0cade05ae0ab3dff1598d64f80cef9a411d | /Python/Programmers/Level3/리틀프렌즈사천성.py | 7aabad1adc691ca74efc1da5c8df28984e00bf84 | [] | no_license | louisuss/Algorithms-Code-Upload | 56d1a140a1674a53c13bcec5be96ea6da7c35219 | 6c97c713858b075162d5d86f124c0555f383c5b0 | refs/heads/master | 2023-01-08T21:37:19.702276 | 2020-11-09T04:03:50 | 2020-11-09T04:03:50 | 258,399,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,352 | py | def find_route(m1, n1, m2, n2, c):
up, down, left, right = check_edges(m1, n1, m2, n2, c)
case = (m1-m2)*(n1-n2)
if case == 0:
return (m1 == m2 and up) or (n1 == n2 and left)
elif case > 0:
return (up and right) or (down and left)
else:
return (up and left) or (down and right... | [
"dobi1115@gmail.com"
] | dobi1115@gmail.com |
3997d4051e2df12bf21d542ce8da6bd90be8e2b3 | 1c25798a9ae17ca228383fcd04a1e801415a78e7 | /Chapter 3 Math, Function, Strings and Objects/commonPythonFunction.py | 25618b0b6296236322877889a7f2286192eceb02 | [] | no_license | padamcs36/Introduction_to_Python_By_Daniel | 688c56fff598617e979a5f71e9a48e50844ad7ea | 8b8f00c9d93428c58df9c90e5edd8f75a1662647 | refs/heads/main | 2023-02-22T08:11:01.450054 | 2021-01-28T09:45:01 | 2021-01-28T09:45:01 | 333,700,411 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | '''
abs(), max(), min(), pow(), round() these are python built in functions
there is no need to import separate module for them
'''
print(abs(-3)) #return the value in positive always
print(max(4,5,-8,0,7))
print(min(0,4,6,3,-4))
print(pow(4,3))
print(round(4.535))
print(round(5.554667, 2)) | [
"noreply@github.com"
] | padamcs36.noreply@github.com |
785a0e838d2086e476faf98a5ab30824e7268acd | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/learningCurve/tenPercent/lrClassifierN.py | 5b2e407f3df56718ee1c0db2c70f5c4f024f8ad3 | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,133 | py | # 9 September 2019
# Kiyoto Aramis Tanemura
# I modified the rfClassifier.py script to implement a logistic regression classifier. This classifier runs faster than the random forest classifier and Jun previously observed comparable results between logistic regression and random forest classifiers for the protein fold... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
bd9ed5751eee1c211f209fe86a475e63d9c97c2d | 93684882400d0249ad733249f5b2c8dbd230110f | /ClassExercise & studio/chapter 8/Ex.02 pass 7-04-2016.py | b2e97a34f99d78980e9dea2a41e658df9a7c41ee | [] | no_license | SmileShmily/LaunchCode-summerofcode-Unit1 | c492bbed966547cc8c1be7f15d7a23cb989d407b | 03474cf77b0dae2bcfaf8513711d3fec72bd4166 | refs/heads/master | 2021-01-16T23:19:23.413010 | 2017-06-29T02:49:19 | 2017-06-29T02:49:19 | 95,730,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | ''' ’
(GRADED) Write a function analyze_text that receives a string as input.
Your function should count the number of alphabetic characters (a through z, or A through Z)
in the text and also keep track of how many are the letter 'e' (upper or lowercase).
Your function should return an analysis of the text, somet... | [
"zyxjyaya@gmail.com"
] | zyxjyaya@gmail.com |
59d4c01d5cfcf4ed342790fd1274876e93dd8832 | 26b0a513571a68576687b98de61d24be609b7595 | /problem_set_7/NewsStory.py | 350dd691a2f84602fbf6138df49edbbbe8c487c1 | [] | no_license | sirajmuneer123/MITx-6.00.1x-Introduction-to-Computer-Science-and-Programming-Using-Python | ea487447e119d9f1a23d49b9d6ddbe3a27b6f972 | 757c8087005bebb0fb250526d0caf7b79e3d1973 | refs/heads/master | 2021-01-10T03:21:53.565688 | 2015-11-07T17:57:26 | 2015-11-07T17:57:26 | 45,476,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # Enter your code for NewsStory in this box
#Part 1: Data Structure Design
class NewsStory(object):
def __init__(self, guid, title, subject, summary, link):
self.guid = guid
self.title = title
self.subject = subject
self.summary = summary
self.link = link
def g... | [
"sirajmuneer4@gmail.com"
] | sirajmuneer4@gmail.com |
8c7528abac71136cad54131e9a41c7e5a0de6109 | 573d470c9fcb3799e8822e6953e1259b74e0672c | /Course/syntax/example_37.py | 4dec6e18ca446e0776f554d3f82b7f877eb2a471 | [
"Apache-2.0"
] | permissive | zevgenia/Python_shultais | e6f35773e54a72477ea5ee83520dbecfbee7ff48 | e51c31de221c5e7f36ede857a960138009ec8a05 | refs/heads/master | 2020-03-31T21:46:25.061571 | 2018-10-11T13:43:47 | 2018-10-11T13:43:47 | 152,593,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | """
Модуль демонстрации строк документации.
Пример использования смотрите в файле example_38.py
"""
def square(x):
"""
Функция принимает число и возвращает квадрат этого числа.
"""
return x ** 2
| [
"zatonskaya@yandex.ru"
] | zatonskaya@yandex.ru |
e8b3a1c00a0adcbb6c45e0613c18c21c3c1a2f8b | 1bc7456240639a4fac54c411fbcb562cdbcc420c | /20.valid-parenthesis.py | 505f4e6def7acd2d3df87521451cf3e681bda834 | [] | no_license | Manash-git/CP-LeetCode-Solve | bdbb9f13946faee5da24e191a3d593b99da61ed2 | 45052c7613345c76f8a12bac780ffb899062dea9 | refs/heads/master | 2022-11-29T13:16:03.474242 | 2020-08-11T19:06:07 | 2020-08-11T19:06:07 | 275,853,956 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | def isValid(s):
stack=[]
pairs={
'(':')',
'[':']',
'{':'}'
}
for char in s:
if char in pairs:
# storing corresponding closing parenthesis
stack.append(pairs[char])
# print(stack)
else:
if not stack or ... | [
"emailatmanash@gmail.com"
] | emailatmanash@gmail.com |
99712e5994e4f62c535cc123f5dee3ae5e41dc7c | b3a2e683ca82de3758fd62a8dea16bf2be7ebb78 | /sequences/sorting.py | eb8a7a548068d777b5de382221deaa3f25e1f0d2 | [] | no_license | jschnab/data-structures-algos-python | dc60f4e26d4d86470039bab1f4422e86a6da736b | 7b7821d5fc5378c8c7a4be088aadd6c95b154312 | refs/heads/master | 2022-12-27T17:56:34.622558 | 2020-10-24T19:47:37 | 2020-10-24T19:47:37 | 265,121,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,719 | py | import random
def select(seq, start):
min_idx = start
for j in range(start + 1, len(seq)):
if seq[j] < seq[min_idx]:
min_idx = j
return min_idx
def selection_sort(seq):
for i in range(len(seq) - 1):
min_idx = select(seq, i)
tmp = seq[i]
seq[i] = seq[min_id... | [
"jonathan.schnabel31@gmail.com"
] | jonathan.schnabel31@gmail.com |
be19e49ff8ca50f044aa74a299385f507daf7c95 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_34/785.py | 9c28392c2800225546e52dd464a7bb364a89ea2b | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | import sys
import re
firstline = sys.stdin.readline()
(L, D, N) = map(int, firstline.split())
lex = []
for x in range(D):
lex.append(sys.stdin.readline())
lex = ''.join(lex)
for (i, pattern) in enumerate(sys.stdin.readlines()):
pattern = pattern.replace('(','[').replace(')',']')
matches = re.findall(pat... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c886d026554eb02a740ba2ff1fe41d5cda414774 | b385f39c5b701fb6f22796ab951872257ae8398a | /exercicios-secao08/exercicio29.py | ebaee4355b5c1a1ef226ff1e088f5a6abccb4523 | [
"MIT"
] | permissive | EhODavi/curso-python | 5c97a6913bad198ae590519287ed441c95399d80 | cf07e308be9d7516f2cfe7f21c539d214c836979 | refs/heads/main | 2023-08-07T13:44:46.608118 | 2021-06-14T21:40:50 | 2021-06-14T21:40:50 | 356,542,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from math import factorial, radians
def sinh(graus: float) -> float:
soma: float = 0.0
x: float = radians(graus)
for n in range(6):
soma += (x ** (2 * n + 1)) / factorial(2 * n + 1)
return soma
| [
"davi.miau@gmail.com"
] | davi.miau@gmail.com |
6b49473abce39f0169294f832573d958ed264e27 | c7a404e6fe1861c90ff8dc9cbc69462ebcbb744c | /app.py | 7c2a34914a0512a254d56cb7547873a693cb3975 | [
"MIT"
] | permissive | bossnode/rufo-mp3-fetcher | b40ced257b7127456b5fbdd27b19cb5ce9f6289e | ed14c44c27761e4d2b2625da17a62c036f38dafd | refs/heads/master | 2020-06-10T04:11:09.257754 | 2019-06-26T20:25:12 | 2019-06-26T20:25:12 | 193,578,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
import os, sys
from soundspider import SoundSpider
from time import sleep
import threading
class Handler:
def onDestroy(self, *args):
try:
download_thread._stop()
except:
pass
Gtk.main_quit()
def onToggleDownload(self, button):
s... | [
"="
] | = |
d08d566fec8e6362ded5eced9937d5449872b30a | 613d0766a36a0354ed8b7be4c8a552068afe5e71 | /08 Linked List/15 Reverse Linked List/02.py | 45530e293097a676b12012d31b88a5d9f2c7ec75 | [] | no_license | HYLee1008/Python | e9fb2109ed29d11faa37b0a823e603134d85dc28 | 04900b6de1d56c11fbb98d518c9b4cdd37772490 | refs/heads/master | 2022-12-12T12:07:49.198551 | 2020-09-05T12:41:55 | 2020-09-05T12:41:55 | 280,879,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | ### Reverse linked list by iterative
### Iterative consumes 70% memory of the recursive method. And slightly faster.
from datastructure import *
def reverse_list(head):
node, prev = head, None
while node:
next, node.next = node.next, prev
node, prev = next, node
return prev
input = List... | [
"discone1008@gmail.com"
] | discone1008@gmail.com |
d32bdac865b53dfa2b0b6159cd89f731b1be54c7 | 1565d4f012622c98dd519d5f6feedf7d5a67a70b | /etc/openshift_clean.py | a05d4c5f52a0c98d4598cac6d152eb7475f82f94 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | doaa-altarawy/quokka | 6862da8e3f0f3583350ca4faf2bc7133a7aa9d6b | 3730008100266569d1fab47c7dfa765650e2a346 | refs/heads/development | 2021-01-16T17:46:22.983206 | 2015-12-21T22:15:15 | 2015-12-21T22:15:15 | 48,460,112 | 1 | 0 | null | 2015-12-23T00:14:31 | 2015-12-23T00:14:31 | null | UTF-8 | Python | false | false | 543 | py | #!/usr/bin/python
"""
THIS SCRIPT CLEANS ALL DATA IN YOUR QUOKKA DB
RUN ONLY IN OPENSHIFT DEMO DEPLOY
OR AT YOUR OWN RISK!!!!
"""
from quokka import create_app
from quokka.core.models.content import Content
from quokka.core.models.config import Config
from quokka.core.models.channel import Channel
from quokka.modules.a... | [
"rochacbruno@gmail.com"
] | rochacbruno@gmail.com |
8aeea72b7d8a05fcd367ad2245993782dde02fba | 3330944ef9af811ed59e3f40721e6b7da754e1e7 | /setup.py | 1d70fdd49af304dc6bdae85abbb3f2671b9bf919 | [] | no_license | loum/baip-loader | 8ee6ad184f4cb557437ed92590b591eaa0032956 | 68a4b1556b8d745e51a1502092cd1d54bfd96c76 | refs/heads/master | 2021-01-25T07:39:34.190887 | 2015-05-05T00:15:21 | 2015-05-05T00:15:21 | 30,627,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,249 | py | """:mod:docutils` setup.py file to generate Python compatible sources in
build/ directory
"""
import os
import glob
import fnmatch
import shutil
from setuptools import setup
VERSION = '0.0.0'
def opj(*args):
path = os.path.join(*args)
return os.path.normpath(path)
def find_data_files(srcdir, *wildcards, **... | [
"lou.markovski@gmail.com"
] | lou.markovski@gmail.com |
02d2bcf9f1aaaee3aff4b006298d5417e5d9fecb | 386d5d4f8f102e701d02b326cd066f520e3dff9f | /ProjectApplication/grant_management/migrations/0030_renames_media_to_medium.py | f3c44d48ea456f3b94289c02f7b305bf53d2dd0b | [
"CC-BY-NC-SA-4.0",
"CC-BY-SA-4.0",
"CC-BY-4.0",
"MIT"
] | permissive | Swiss-Polar-Institute/project-application | ae2561c3ae2c1d5412d165d959ce2e5886135e0a | 7dc4a9f7e0f8d28c89977b85f99bc5e35ea77d43 | refs/heads/master | 2023-08-31T04:01:23.492272 | 2023-08-25T14:33:02 | 2023-08-25T14:33:02 | 206,330,401 | 7 | 5 | MIT | 2023-09-13T08:03:53 | 2019-09-04T13:49:39 | Python | UTF-8 | Python | false | false | 685 | py | # Generated by Django 3.0.5 on 2020-05-12 10:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('project_core', '0118_calls_need_to_be_part_of_a_funding_instrument'),
('grant_management', '0029_signed_by_multiple_people'),
]
operations =... | [
"carles@pina.cat"
] | carles@pina.cat |
7bcce88caf756bb58b5c86d24a41dfc8e635fa25 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/omninote/testcase/firstcases/testcase10_018.py | bb43949dc1a984d35d229ba18c38794740f1bd50 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,301 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
d8a67dd3fc7ad483dcc1c079ddf71657300fe471 | 4c3e992678341ccaa1d4d14e97dac2e0682026d1 | /addons/account/tests/test_tax.py | 62e63e8bb07a770a7428d5bb811ee52b406f5201 | [] | no_license | gahan-corporation/wyatt | 3a6add8f8f815bd26643e1e7c81aea024945130d | 77e56da362bec56f13bf0abc9f8cf13e98461111 | refs/heads/master | 2021-09-03T18:56:15.726392 | 2018-01-08T02:54:47 | 2018-01-08T02:54:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,285 | py | from gerp.addons.account.tests.account_test_users import AccountTestUsers
import time
class TestTax(AccountTestUsers):
def setUp(self):
super(TestTax, self).setUp()
self.fixed_tax = self.tax_model.create({
'name': "Fixed tax",
'amount_type': 'fixed',
'amount':... | [
"duchess@gahan-corporation.com"
] | duchess@gahan-corporation.com |
1ff24ffb45f8546c93fbec4517976b96ca01b0bc | b8ed71f3d1a36c119d846e97f1aa7d8ba6774f52 | /680_Valid_Palindrome_II.py | 5dd32bf280843101a247fdd621ab833fcc2b7d1b | [] | no_license | imjaya/Leetcode_solved | 0831c4114dd919864452430c4e46d3f69b4bd0cd | 374eb0f23ae14d9638d20bbfe622209f71397ae0 | refs/heads/master | 2023-05-24T17:57:56.633611 | 2023-05-16T06:31:42 | 2023-05-16T06:31:42 | 284,203,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | def helper(s,l,r):
while l<r:
if(s[l]!=s[r]):
return False
l+=1
r-=1
return True
class Solution:
def validPalindrome(self, s: str) -> bool:
left=0
right=len(s)-1
while(left<right):
if(s[left]!=s[right... | [
"smjayasurya1997@gmail.com"
] | smjayasurya1997@gmail.com |
c335ae67050596c16c4e388d411d18e7b88ca797 | 863a7b075963c2882d9fe5df66af16c6e52576a9 | /deepiu/textsim/evaluate/evaluate-sim.py | 2079a1cc158d696d4cf173579d1afde74c720102 | [] | no_license | buptpriswang/hasky | 3c3510d43821bbdfdfa216a337cde6e0747b3423 | 93afdc32956643fe191fcf1a5aa635570e219ab0 | refs/heads/master | 2021-06-30T19:45:03.329238 | 2017-09-22T15:41:58 | 2017-09-22T15:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,532 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ==============================================================================
# \file evaluate-sim-score.py
# \author chenghuige
# \date 2016-09-25 00:46:53.890615
# \Description
# =====================================================... | [
"29109317@qq.com"
] | 29109317@qq.com |
8b7320fbb782d353ece0bf32dd2977b744b8acd8 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/I_to_M_Gk3_no_pad/pyramid_2side/bce_s001_tv_s0p1_L8/step11_L2345678.py | c03824dab2e889ccb93f4ca311d98915db768bee | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,986 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
930d498a17db90721c75d65299f8f10b0549e799 | 4a88daea1741ed6b5b5088b8d1f2787093abdf80 | /tests/test_gen_couroutine.py | 16e6479cc1bbc400493e0975a2f4a4ccec8b11d3 | [
"MIT"
] | permissive | Nigelzhf/torweb | 8e0bfeb6793ae9e50230e6b7b6284ec5e6da0d57 | 6859a878c126addb74410e872307ac9399f20eb7 | refs/heads/master | 2021-01-12T14:16:10.474945 | 2016-10-03T20:47:25 | 2016-10-03T20:47:25 | 69,928,142 | 0 | 1 | null | 2016-10-04T02:25:34 | 2016-10-04T02:25:33 | null | UTF-8 | Python | false | false | 414 | py | #encoding:utf-8
import sys, os
sys.path.append(os.path.dirname(sys.path[0]))
from tornado.httpclient import AsyncHTTPClient
from tornado import gen
import tornado.ioloop
@gen.coroutine
def fetch_coroutine(url):
http_client = AsyncHTTPClient()
response = yield http_client.fetch(url)
print('test')
pri... | [
"jmpews@gmail.com"
] | jmpews@gmail.com |
8edd25a05553c2dfeaaf20dd6357cab4c4a87d07 | 4b5173af602439cdca0db985dcbdd25aef9b7a6b | /bin/topology-json-connector.py | fb1c33926b316f0d4ed9f1c45d8fbaeac5353af5 | [] | no_license | kevangel79/argo-egi-connectors | a3d4bf502708cdce08acf01b5c58812042e4d201 | dff42c3d4e5e7ea31ca839dd93f975ea27f4ffda | refs/heads/master | 2022-02-23T15:01:13.081358 | 2022-02-15T14:54:05 | 2022-02-15T14:54:05 | 250,012,827 | 0 | 0 | null | 2020-03-25T15:14:01 | 2020-03-25T15:14:00 | null | UTF-8 | Python | false | false | 7,746 | py | #!/usr/bin/python3
import argparse
import os
import sys
import json
import uvloop
import asyncio
from argo_egi_connectors.io.http import SessionWithRetry
from argo_egi_connectors.exceptions import ConnectorHttpError, ConnectorParseError
from argo_egi_connectors.io.webapi import WebAPI
from argo_egi_connectors.io.avr... | [
"daniel.vrcic@gmail.com"
] | daniel.vrcic@gmail.com |
8dd0e8db5c106dc0a4a867b92314ee3975bfac32 | ac64fda7f1bfc92f7897efd60b8f3f0aeb22b4d7 | /syntactic_mutations/cifar/mutants/mutant85.py | 36cc2dc7a92ebacc6a2c035d43c75d2a8980ffb9 | [] | no_license | dlfaults/mutation_operators_evaluation | ea7f33459ba7bcf7d70092d9db8b40f9b338d516 | 7d1ff30e901931a46bf8908e9bb05cae3daa5f0f | refs/heads/master | 2020-12-27T15:45:07.262012 | 2020-02-03T12:22:01 | 2020-02-03T12:22:01 | 237,955,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,737 | py | import keras
from keras.models import Sequential
from keras.layers import Conv2D, MaxPooling2D
from keras.datasets import cifar10
from keras.layers import Dense, Activation, Flatten, Dropout, BatchNormalization
from keras.layers import Conv2D, MaxPooling2D
def train_model(x_train, y_train, x_test, y_test, model_name):... | [
"gunel71@gmail.com"
] | gunel71@gmail.com |
3f867e03ffc111fa3e897382bcaacef5230d16eb | 5442e70e9a68b0a76601082e9aa307674fd4fb95 | /evaluation/draw.py | a8f5d430416dfc0ae686c2c9b91b4ba0ed113967 | [] | no_license | sycophant-stone/mmdetection_2.0 | 1871e85311fee3b81d3b1415787c837aadf6b543 | 6caabdcf81e7b003e612d053c94bd6c993dd5c3e | refs/heads/master | 2020-09-09T10:49:42.961409 | 2019-12-18T14:01:57 | 2019-12-18T14:01:57 | 221,426,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | import cv2
def drawline(img, pt1, pt2, color, thickness=1, style='dotted', gap=10):
dist = ((pt1[0] - pt2[0]) ** 2 + (pt1[1] - pt2[1]) ** 2) ** .5
pts= []
for i in np.arange(0, dist, gap):
r = i / dist
x = int((pt1[0] * (1 - r) + pt2[0] * r) + .5)
y = int((pt1[1] * (1 - r) +... | [
"kawayi_rendroid@163.com"
] | kawayi_rendroid@163.com |
b8db0ef08fd5c0b20c1bdbe3988364316d66243b | 35044ecc79fad5d1ad35a4f713ff22849c17212c | /hw1/hw1_1/part2/main_3.py | d54310ff19a1bb2f192f12e9c432975f5330478e | [] | no_license | pohanchi/MLDS2018SPRING | 8235f9bfe38eb861be24b9cdb2c0a7d30afdea21 | 694e5f07911ba0f780fb01bb47701dac90eeb7d2 | refs/heads/master | 2020-05-09T09:55:38.257016 | 2019-04-12T16:23:17 | 2019-04-12T16:23:17 | 166,774,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,511 | py | from tensorflow.examples.tutorials.mnist import input_data
import matplotlib.pyplot as plt
import numpy as np
import pickle
import random
from model_2 import *
def unpickle(file):
with open(file, 'rb') as fo:
dict_ = pickle.load(fo, encoding='bytes')
return dict_
def calculate():
vars = t... | [
"aapp1420@gmail.com"
] | aapp1420@gmail.com |
9f5d7e03d338bcee649e0798c30ea3227c1c60cc | b15a9d9c7374c4a1fa5ec3ef63603a8c57e8681f | /Design-Patterns-Python/bridge/circle.py | cd3638d219be793d909728245bf9ccdec57095a8 | [] | no_license | gohils/zemr_notebook | 3f7490ef7a2559655746c3e2e0dbfb835a83891e | 00d53cea9970df44160c51e6ad2bdeadfae2c91f | refs/heads/master | 2023-08-04T14:32:35.428016 | 2023-07-20T11:51:08 | 2023-07-20T11:51:08 | 222,027,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | # pylint: disable=too-few-public-methods
"A Circle Abstraction"
from interface_shape import IShape
class Circle(IShape):
"The Circle is a Refined Abstraction"
def __init__(self, implementer):
self.implementer = implementer()
def draw(self):
self.implementer.draw_implementatio... | [
"noreply@github.com"
] | gohils.noreply@github.com |
7098d0bd349101c9033469adeb130241fc910b6c | f88f900c0384f6da82eeb749371ad44115527700 | /course-book/04-basic-comp/0410-img-copy2.py | 2688bf316082da1a8c629fe6e1a12eaf1bf4b44d | [] | no_license | aaron-kr/learning-opencv | eff382e8f0c822400f765451d57b192a63cd1b74 | 158239f0140569aec519fc1fbf255c54ef2567d2 | refs/heads/main | 2023-08-21T11:02:49.775425 | 2021-10-27T00:04:01 | 2021-10-27T00:04:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # 0410.py
import cv2
import numpy as np
src = cv2.imread('../../img/spirit-week.jpg', cv2.IMREAD_GRAYSCALE)
shape = src.shape[0], src.shape[1], 3
dst = np.zeros(shape, dtype = np.uint8)
# dst[:,:,0] = src # B - Blue channel
# dst[:,:,1] = src # G - Green channel
dst[:,:,2] = src # R - Red channel
dst[100:400, 200:... | [
"jekkilekki@gmail.com"
] | jekkilekki@gmail.com |
76f963318fc279d6b0842011b2404e059f5081d7 | fb1e852da0a026fb59c8cb24aeb40e62005501f1 | /simlm/misc/compute_metrics_marco.py | 02ac181cd1a10310b7a44ccad6784c96a3b8f2b3 | [
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | 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 | 1,162 | py | import json
import sys
import argparse
sys.path.insert(0, './src')
from logger_config import logger
from metrics import compute_mrr, trec_eval
from utils import save_json_to_file
from data_utils import load_qrels, load_msmarco_predictions
parser = argparse.ArgumentParser(description='compute metrics for ms-marco pred... | [
"wangliangpeking@gmail.com"
] | wangliangpeking@gmail.com |
e8034ae0e9e03f800a93d0b36f2691dfbdee9972 | f34e34e4a1fc4b606781633370ff5b9493446b89 | /HackerRank/Problems/HR python staircase.py | fffe84b83deb2d0878b9309965bbbe9c1da7a0fa | [] | no_license | YeasirArafatRatul/problem_solving | b44deddb63dc9ff5ec285e03c13720523473906d | 98267865a90483489f792bdb448319dbf0cc9a81 | refs/heads/master | 2023-02-13T17:59:35.863750 | 2021-01-05T04:01:13 | 2021-01-05T04:01:13 | 219,266,174 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | def staircase(n):
for i in range(1,n+1):
#print the #, i times. so it will increase with each iteration
print(('#'*i).rjust(n,' '))
n = int(input())
staircase(n)
# str.rjust(width[, fillchar])
#Parameters
# width − This is the string length in total after padding.
# fillchar ... | [
"yeasirarafat.ratul@gmail.com"
] | yeasirarafat.ratul@gmail.com |
47a70babb3db84356361acf60b5e6d54a50c94ce | 38ba13df9ea6e53c7b924cad1f3bea2de59c7a6a | /nibbler/trading/collectors/Watcher.py | 19ea6b0adbe54c634a51182074af580ff6b54745 | [] | no_license | JizzFactoryEmployee/nibblerppman | 0fbc1ce662cf8b4868b41a97291250fae29dc41d | 160e557578a3e8a614450354f6ade233d32b052f | refs/heads/master | 2022-11-14T01:10:31.743000 | 2020-07-04T01:21:52 | 2020-07-04T01:21:52 | 273,835,770 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import time
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
import nibbler.trading.collectors.futures_collector as futures
class MyHandler(FileSystemEventHandler):
def on_modified(self, event):
event_list = event.src_path.split('\\')
filename = event_list... | [
"52958901+JizzFactoryEmployee@users.noreply.github.com"
] | 52958901+JizzFactoryEmployee@users.noreply.github.com |
fde45c72b38be988de28cfb02d09ce268e6a0ac8 | c29ee57cdba30d0099c55d7b138a361a4964af4b | /apps/blogs/urls.py | a6a724f8cca29d67b19a8b9d2ed788dfe37cdafc | [] | no_license | bakker4444/django_app | ea26be5fa7789a083b199d5094767e16ec0fa63e | 6b1cd0cfc55be11f31cdc5970d4787f15828ac94 | refs/heads/master | 2020-03-10T10:06:17.177952 | 2018-04-13T00:30:54 | 2018-04-13T00:30:54 | 129,322,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^new/', views.new),
url(r'^create/', views.create),
url(r'^(?P<number>[0-9]+)/$', views.show),
url(r'^(?P<number>[0-9]+)/edit/', views.edit),
url(r'^(?P<number>[0-9]+)/del... | [
"bakker4444@gmail.com"
] | bakker4444@gmail.com |
cdf12814d08e0941202a5da5abdf6a067a3b34f7 | 36126f91a2d5903483b84ba2d8be77e160803058 | /examples/python/empirical_transition_matrix.py | 61c92ac81e1bbe433c6a5a7ec9d083e8e9e8aaca | [
"Apache-2.0"
] | permissive | open-risk/transitionMatrix | 9962bb2656eb637ba56afc3adecf42bbe68f9593 | d05e75cbc251f01842dd8c5ce225894b988f4d99 | refs/heads/master | 2023-03-05T08:01:20.816425 | 2023-02-22T20:46:38 | 2023-02-22T20:46:38 | 110,365,127 | 73 | 29 | Apache-2.0 | 2022-12-08T11:37:12 | 2017-11-11T17:25:08 | Python | UTF-8 | Python | false | false | 5,000 | py | # encoding: utf-8
# (c) 2017-2022 Open Risk, all rights reserved
#
# TransitionMatrix is licensed under the Apache 2.0 license a copy of which is included
# in the source distribution of TransitionMatrix. This is notwithstanding any licenses of
# third-party software included in this distribution. You may not use this... | [
"openrisk@outlook.com"
] | openrisk@outlook.com |
0cef33f9b804fb8d06480356283a48afa11a4d9c | 905020fce75b4b63517ec31c601e721f5c260cd1 | /Карточные расклады.py | 1853c600b2cf5ef636e2296518a51051750b2fef | [] | no_license | Dimaed90800/Python_Y | 7858ad46309281a89c5c1e83a0f09030996182a4 | 04092b854605cb05df439eeeb52003e585bb5a29 | refs/heads/main | 2023-01-24T04:11:17.858281 | 2020-11-17T20:42:45 | 2020-11-17T20:42:45 | 313,731,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | import itertools
nominals = ['2','3','4','5','6','7','8','9','10','валет','дама','король','туз']
suits = ['пик','треф','бубен','червей']
allcomb = list(itertools.product(nominals,suits))
comb = []
for elem in allcomb:
if (elem not in comb) and (list(elem).reverse() not in comb):
comb.append(' '.joi... | [
"noreply@github.com"
] | Dimaed90800.noreply@github.com |
2c735c06acb15668edfe36a3cf848f1a07cb956b | a418afb0ec01cb8f41d9fcaf167f59b0f05aea90 | /Hackerrank/Python Problems/itertools.combinations.py | 221a322634997b5c9b8b4e304a3db940458757d5 | [] | no_license | manjurulhoque/problem-solving | 95d05960e83edde5721b73348270b6123fd3bf12 | e5547a8f5593141ac87f9797ddb25b2467c44e57 | refs/heads/master | 2022-08-08T06:44:21.839224 | 2022-07-25T09:32:26 | 2022-07-25T09:32:26 | 209,125,784 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | import itertools
x, y = input().split()
for i in range(1, int(y) + 1):
out = list(itertools.combinations(sorted(x), i))
for n in out:
print(*n, sep='') | [
"rumimanzurulhoque@gmail.com"
] | rumimanzurulhoque@gmail.com |
9e27115696afc8fea8212d51a643e9d1c2702dc1 | b15a9d9c7374c4a1fa5ec3ef63603a8c57e8681f | /Design-Patterns-Python/flyweight/client.py | b7714e4c7fe83aaeb7505226e720f0509797c36d | [] | no_license | gohils/zemr_notebook | 3f7490ef7a2559655746c3e2e0dbfb835a83891e | 00d53cea9970df44160c51e6ad2bdeadfae2c91f | refs/heads/master | 2023-08-04T14:32:35.428016 | 2023-07-20T11:51:08 | 2023-07-20T11:51:08 | 222,027,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | "The Flyweight Use Case Example"
from table import Table
from flyweight_factory import FlyweightFactory
TABLE = Table(3, 3)
TABLE.rows[0].columns[0].data = "abra"
TABLE.rows[0].columns[1].data = "112233"
TABLE.rows[0].columns[2].data = "cadabra"
TABLE.rows[1].columns[0].data = "racadab"
TABLE.rows[1].colu... | [
"noreply@github.com"
] | gohils.noreply@github.com |
3c959eed8a79ca30fbcb647176095c291b99e320 | 4f510470b3093ab2c60f929221af82c79b121ca7 | /linux/FinalKeyPress/smallplane.py | c63ffce47aa72b6d465ad959c7dcf92fe5873091 | [] | no_license | q737645224/python3 | ce98926c701214f0fc7da964af45ba0baf8edacf | 4bfabe3f4bf5ba4133a16102c51bf079d500e4eb | refs/heads/master | 2020-03-30T07:11:17.202996 | 2018-10-30T06:14:51 | 2018-10-30T06:14:51 | 150,921,088 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,695 | py | import tkinter
import mover
import config
class SmallPlane(mover.BaseMover):
'''
移动的敌机 - 大飞机
'''
def __init__(self, root, canvas, position, x, y, tags):
super().__init__(root, canvas, position, x, y, tags,
config.image_smallplane_width, config.image_smal... | [
"764375224@qq.com"
] | 764375224@qq.com |
974ce89e9bb593af97847898b2977b214a4b7980 | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/tensorflow/python/autograph/pyct/testing/decorators 2.py | 9e47729bef44976b842be804899c28aafffda65b | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:bc496cdd81c37eb5f9cddd2250b6ebe37eae2739e5ee1b3228a97b6571bfaac1
size 1298
| [
"business030301@gmail.com"
] | business030301@gmail.com |
9f4459a0e78eb6578c2a9bc931224ac195ef575f | edf79f6964b15ea61faa9ecd70871d1ce776eda2 | /Jupyter/first-python-notebook/lib/python3.6/site-packages/pandas/tseries/util.py | 5934f5843736cc9afbff1a5dcc1c59f9eb8f2180 | [
"MIT"
] | permissive | Roychenlei/LearnPython | 326bf7d59ebec904623ea7102a1e07f1d7cb112b | eaf44787b86fe6da69dc9ba4e4c907884db57fda | refs/heads/master | 2022-10-09T07:23:39.410429 | 2018-04-28T02:35:07 | 2018-04-28T02:35:07 | 115,184,834 | 0 | 1 | MIT | 2022-10-01T15:18:43 | 2017-12-23T09:19:47 | Python | UTF-8 | Python | false | false | 3,286 | py | import warnings
from pandas.compat import lrange
import numpy as np
from pandas.core.dtypes.common import _ensure_platform_int
from pandas.core.frame import DataFrame
import pandas.core.algorithms as algorithms
def pivot_annual(series, freq=None):
"""
Deprecated. Use ``pivot_table`` instead.
Group a ser... | [
"roychenfly@gmail.com"
] | roychenfly@gmail.com |
bce7d775325fcad89567eb94275ce095229d738a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02832/s307251036.py | 36c65bb99ff02d537361c6ecedc39e7b50f138b1 | [] | 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 | 198 | py | n = int(input())
a = list(map(int,input().split()))
if 1 not in a:
print(-1)
exit()
x = 1
cnt = 0
for i in range(n):
if a[i] == x:
x += 1
else:
cnt += 1
print(cnt) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7a4711d2854fc4a7a832a3fb5083a348ad0af491 | 84d581219b8065cf8936070a7f1e1766000378df | /vdj/__init__.py | f80e58d17b35d19c93aa96a3ab5bb85e8774f385 | [
"MIT",
"CC-BY-4.0"
] | permissive | RPGroup-PBoC/vdj_recombination | 939e72539a134a61cc5aa8386b3a31f6de954d26 | a59214f878968e5958915b56983b0f52a0a0483e | refs/heads/publication | 2023-07-18T22:52:07.149767 | 2020-05-19T18:12:11 | 2020-05-19T18:12:11 | 187,516,995 | 0 | 0 | MIT | 2023-07-06T21:42:29 | 2019-05-19T19:05:04 | HTML | UTF-8 | Python | false | false | 169 | py | """Top level package for VDJ utilities"""
from . import viz
from . import bayes
from . import io
__author__ = "Soichi Hirokawa and Griffin Chure"
__version__ = "0.1.9" | [
"gchure@caltech.edu"
] | gchure@caltech.edu |
e906d748fcf7530f9052fc37543b97a85ee771eb | 183fa1746e80102391926064c1628bf63690026c | /Order/migrations/0001_initial.py | ae12317b8af5a2d9fa16a2af4e2549debe7875c4 | [] | no_license | redbull2003/StoreMarketPlace | 7454fdf06a27f754f33b41532ef2d717f313eb1a | b9e915da32f23ca087bd29e5d10fa9b9299f81d2 | refs/heads/master | 2023-06-06T03:53:22.766012 | 2021-06-24T16:30:37 | 2021-06-24T16:30:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | # Generated by Django 3.1.1 on 2021-06-24 06:56
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('Prod... | [
"shayan.aimoradii@gmail.com"
] | shayan.aimoradii@gmail.com |
a86ce8417607db70a904b3ff9754c6950ed06c89 | faabe34af6297530617395bcc6811350765da847 | /platforms/leetcode/NthDigit.py | 6e67cbfe78c483aff5ee596ef9b57abc3fd7bb68 | [] | no_license | pqnguyen/CompetitiveProgramming | 44a542aea299bd553dd022a9e737e087285b8b6d | 27330e7ff79c4ac883d7e1fcdf2f0d30939c3f78 | refs/heads/master | 2021-07-21T12:15:47.366599 | 2021-06-27T14:58:48 | 2021-06-27T14:58:48 | 132,837,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | class Solution:
def findNthDigit(self, n: int) -> int:
length, start, count = 1, 1, 9
while n > length * count:
n -= length * count
length += 1
count *= 10
start *= 10
start += (n - 1) // length
return int(str(start)[(n - 1) % length])... | [
"pqnguyen1996@gmail.com"
] | pqnguyen1996@gmail.com |
00a759bd71d11f942a7195e2ce3a0f9237ad4f89 | eb91f8764a466c20d3ed53f0df43e2e91fc095ea | /HFhtml/migrations/0007_auto_20210106_2045.py | efdaed8cb955a4052bb217f5edcee04b059ca0bf | [] | no_license | blackw00d/HappyFamily | 61733c46a2f2c26919a532e5c07ea143fabd14a9 | 6b0d99a498c7a92170de0bbdb18907d6d951da31 | refs/heads/master | 2023-03-08T21:20:41.481293 | 2021-02-27T04:13:39 | 2021-02-27T04:13:39 | 291,481,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # Generated by Django 3.0.8 on 2021-01-06 15:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('HFhtml', '0006_auto_20210106_1951'),
]
operations = [
migrations.AlterField(
model_name='orders',
name='pay',
... | [
"email"
] | email |
175362d65ed956693d742ed37d75ce17e75b88dc | 01361e80df13a173264c369f63dc42f5fb1eb9b5 | /carts/migrations/0002_initial.py | 642b8aa58314767eaafc395fd7cdd75fb278ce99 | [] | no_license | Angshumaan/greatkart-django | cb63cf1cc1c094f504adb7ff8fea347c43a6fa81 | 3ff1ac8fc7e7f23bdc3185167e2d8b678256a82c | refs/heads/main | 2023-06-05T10:05:21.408371 | 2021-06-12T06:53:15 | 2021-06-12T06:53:15 | 363,017,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | # Generated by Django 3.2 on 2021-05-22 03:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('store', '0001_initial'),
('carts', '0001_initial'),
]
operations = [
migrations.A... | [
"="
] | = |
ebbd48730fbd9939ec1d72fb2ef3df5c198e09f2 | 1eb72c0482efd06e1b06a7f3af8f6a5250b82584 | /code/lang/complex_if.py | 707a5937eca1f84dfba9e07c8e611c1bd8536da4 | [] | no_license | Bubujka/python-learning | dcb8e5f8fc40600b431a2ec1f4a16814fbbfa5c9 | 79bbe16bec01d429c34f9c36f1d15b4f77c811bf | refs/heads/master | 2021-09-07T15:31:54.822139 | 2018-02-25T03:08:06 | 2018-02-25T03:08:06 | 109,488,504 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | #!/usr/bin/env python3
"""
Комплексные условия в if (and, or)
"""
if True and True and False:
print("NOPE")
if not True or False:
print("NOPE")
if None or None or 1:
print("yeeep")
| [
"zendzirou@gmail.com"
] | zendzirou@gmail.com |
f6f83d8fcc21b13c0e3b8d60e21349fc3e1accdd | eb40dce4039d528b9cd06dbeda75da09d09d7fc5 | /need_install/Django-1.8.17/tests/admin_changelist/models.py | c01bf320621803e3f82fa4938596e56fe61caefe | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MulticsYin/MulticsSH | 39b62189446787c7f0f037b1640c9c780bd1dddd | 5837a0bff0e7da0e8535e4e0b31ef6baf24274b4 | refs/heads/master | 2021-08-28T07:53:51.759679 | 2017-12-11T15:31:03 | 2017-12-11T15:31:03 | 82,428,902 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,666 | py | from django.db import models
from django.utils.encoding import python_2_unicode_compatible
class Event(models.Model):
# Oracle can have problems with a column named "date"
date = models.DateField(db_column="event_date")
class Parent(models.Model):
name = models.CharField(max_length=128)
class Child(mo... | [
"multics_luo@163.com"
] | multics_luo@163.com |
5e6ee8b555a309e5ce5e7845954d392ab41207eb | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep010/I_w_M_to_W_pyr/pyr_0s/L7/step10_a.py | 985e11f6a4a139c0e01e9166d0f6ff8d31fb4b6d | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,009 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
1b5f7970359cd50efcaeb24cab8c592711e3bd4d | 2ca88d41f1bb5042338faec50b2af11931db0bdd | /test/test_forecaster_entrypoints.py | 90ba5d0e6c33b7c209c70ac83d0eba7bdfead759 | [
"Apache-2.0"
] | permissive | canerturkmen/gluon-ts | 2f2d46f9b01f5ee07a51a11e822b1c72c2475caa | 57ae07f571ff123eac04af077870c1f216f99d5c | refs/heads/master | 2022-09-10T23:30:26.162245 | 2022-04-20T12:44:01 | 2022-04-20T12:44:01 | 192,873,578 | 1 | 2 | Apache-2.0 | 2020-08-04T16:58:48 | 2019-06-20T07:43:07 | Python | UTF-8 | Python | false | false | 746 | py | # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | [
"noreply@github.com"
] | canerturkmen.noreply@github.com |
50f104e0f6bb819ed7e3260cd1671e57d0744183 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part003381.py | 5237a05fd13b91ed25973d14234596c3dec60fd5 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,655 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
8baa9d2d34c28cf039e89bca5f34422e62280386 | e488d6d5300b84065ddb50320aa3930d64798047 | /mkt/constants/__init__.py | 5c29991237eb8686d3066ac298329ca61909b66c | [] | no_license | potch/zamboni | 81b2bf01a1d93bbf933a0b3f30db56b438b7b75f | 4e0bfa8be5af334e2c4be3917e3794216498291c | refs/heads/master | 2021-01-15T21:15:25.102909 | 2013-01-02T17:07:02 | 2013-01-02T20:16:10 | 634,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from .platforms import DEVICE_LOOKUP, FREE_PLATFORMS, PAID_PLATFORMS
from .submit import (APP_IMAGE_SIZES, APP_PREVIEW_MINIMUMS, APP_PREVIEW_SIZES,
MAX_PACKAGED_APP_SIZE)
| [
"me@mattbasta.com"
] | me@mattbasta.com |
2b74909d2d1d7762214f31b2628489b91f3c0436 | 508c5e01aa7dce530093d5796250eff8d74ba06c | /code/venv/lib/python3.6/site-packages/passlib/utils/_blowfish/__init__.py | 16b85443b77e5ba7fccc0601e0d5299282f0083b | [
"MIT"
] | permissive | jhkuang11/UniTrade | f220b0d84db06ff17626b3daa18d4cb8b72a5d3f | 5f68b853926e167936b58c8543b8f95ebd6f5211 | refs/heads/master | 2022-12-12T15:58:30.013516 | 2019-02-01T21:07:15 | 2019-02-01T21:07:15 | 166,479,655 | 0 | 0 | MIT | 2022-12-07T03:59:47 | 2019-01-18T22:19:45 | Python | UTF-8 | Python | false | false | 6,509 | py | """passlib.utils._blowfish - pure-python eks-blowfish implementation for bcrypt
This is a pure-python implementation of the EKS-Blowfish algorithm described by
Provos and Mazieres in `A Future-Adaptable Password Scheme
<http://www.openbsd.org/papers/bcrypt-paper.ps>`_.
This package contains two submodules:
* ``_blow... | [
"jhkuang11@gmail.com"
] | jhkuang11@gmail.com |
816522a328e2247a1e43e6f0537dd652c8266d33 | 6a2c2af113bb8b4d55db6ceabc6e78a0bbcd1f91 | /genus processing/Double Breasted.py | 01a6ae3e0307df77a4447697a686b3f1c6324fc1 | [] | no_license | JinghongM/Everlasting_Data_Cleansing | 4a966aca5cba102961f64338411d76e51f60f51e | 237073980b2bd1697db578013c7463dcbc1492fb | refs/heads/master | 2021-04-26T23:48:38.083155 | 2018-06-21T20:00:11 | 2018-06-21T20:00:11 | 123,861,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | import pandas as pd
import copy
import os.path
Pattern=6
Material=7
Species=4
CGP = pd.read_excel("../Realdata.xlsx")
for row in range(1,CGP.shape[0]):
genus = str(CGP.iat[row,3])
if "Double Breasted" in genus:
print(row)
CGP.iat[row,3] = genus.replace("Double Breasted ","")
CGP.iat[row,Species] = "... | [
"noreply@github.com"
] | JinghongM.noreply@github.com |
5e7fd79ebbe73607afa51ba6a52d8e1ee3a6c9b5 | 2579f37a13cfbb47944c5b81c6e83ca710b29f88 | /Client/config/Client_config_info.py | 4f407858ee9bb1f511c54d87662edd44d4154b42 | [] | no_license | YangQian1992/FTP | 932f32d5ed934bae295bd674757f7af23d0ad1ba | 87d3a78522e7eb8058def1d74d7f32f0f61f1b86 | refs/heads/master | 2020-03-31T16:28:35.146329 | 2018-10-10T06:53:12 | 2018-10-10T06:53:12 | 152,376,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | personal_config_info = {
'SERVER_IP':'127.0.0.1',
'SERVER_PORT':8082,
'CODING':'utf-8',#编码方式
'BLOCK_SIZE':1024
} | [
"1289089651@qq.com"
] | 1289089651@qq.com |
0c4aa77a3094093376053b5f19d0e964a4b1427a | 9e15ada895e90d033bc3b65c2666065bddd62605 | /12/12.1/Path_test1.py | 3093e21b3c397c3f1a090b05e991c3d7de8b5f0f | [] | no_license | zhyErick/fengkuang_python | b0f0c78273420fd862691799bfd7e4f1b6eadf80 | 6d50ad3b7d4ae05d06379c2dc87d91081964ec6d | refs/heads/master | 2021-02-14T08:23:26.616211 | 2020-05-06T13:08:07 | 2020-05-06T13:08:07 | 244,788,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from pathlib import *
# 获取当前目录
p = Path('../')
# 遍历当前目录下的所有文件和子目录
for x in p.iterdir():
print(x)
# 获取上一级目录
p = Path('../')
# 获取上级目录及其所有子目录的.py文件
for x in p.glob('**/*.py'):
print(x)
# 获取C:\python\oldboy_python对应的目录
p = Path('C:\python\oldboy_python')
# 获取当前目录及其所有子目录下的.py文件
for x in p.glob('*/*.py'):
pri... | [
"xingzhishangyang@163.com"
] | xingzhishangyang@163.com |
16333d2fe48ad23cc47270a1b8fc53973efafdf3 | 90dc57404ea2e98006adba91f53ea9cc92124bb4 | /spare_parts/forms.py | a6679136c699e7b1b3cdd28e55c4d7b38fcc7460 | [] | no_license | AndreySkryl/flask-test | e57409c779f113980a9acf1c6f9a37be5106e119 | 8979e15789160e65a7ef6123e3ba638e764d8131 | refs/heads/main | 2023-04-24T18:33:59.675028 | 2021-05-10T15:16:56 | 2021-05-10T15:16:56 | 365,334,649 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | from wtforms import Form, StringField, TextAreaField, IntegerField
class SparePartForm(Form):
title = StringField('Заголовок')
price = IntegerField('Цена')
amount = IntegerField('Количество')
description = TextAreaField('Описание')
| [
"ya.skryl@yandex.ru"
] | ya.skryl@yandex.ru |
f1cd67923e90294c3a5c457d1925664b58b06270 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/exercises/Python_Hand-on_Solve_200_Problems/Section 7 Dictionary/check_key_exist_solution.py | 637344c193288ad01e3c9e4394cbd7653b485f05 | [] | 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 | 753 | py | # # To add a new cell, type '# %%'
# # To add a new markdown cell, type '# %% [markdown]'
# # %%
# # ---------------------------------------------------------------
# # python best courses https://courses.tanpham.org/
# # ---------------------------------------------------------------
# # Check if a given key already e... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
b0dad98cc918993b31888c8234bf8e6d804cb304 | 40eb94673bb2e015c1640665a639c508279e3df4 | /cursos/_flask/flask/ejemplos/u29/aplicacion/models.py | defde3e73d247258609be8cc99c0eaf13f0671aa | [] | no_license | josedom24/plataforma_pledin | 3ab5c59abd87c90f066ba9164d6d0cbc02ea816f | e0521eb103013e0f8d9e2b2ea50e6acac0d09784 | refs/heads/master | 2023-07-20T15:43:30.796223 | 2023-07-17T19:07:51 | 2023-07-17T19:07:51 | 138,278,487 | 2 | 0 | null | 2023-05-01T20:05:34 | 2018-06-22T08:44:58 | Python | UTF-8 | Python | false | false | 2,007 | py | from sqlalchemy import Boolean, Column , ForeignKey
from sqlalchemy import DateTime, Integer, String, Text, Float
from sqlalchemy.orm import relationship
from aplicacion.app import db
from werkzeug.security import generate_password_hash, check_password_hash
class Categorias(db.Model):
"""Categorías de los artículos""... | [
"josedom24@gmail.com"
] | josedom24@gmail.com |
10da254f4b916fe94485339bbb590bc46404c718 | 46e271e27afe50b8b62be0651d78164490911bb3 | /ws_moveit/src/example/example_pkg/scripts/red.py | 1ec501210d7051649bb4e99b72defa0eede3bac3 | [] | no_license | Nidhiks2000/Vargi-bot | 8a43af1e470b6fc84d468003f67471a1e1f47aad | 3e2e7be310ed7372cb6960eea8faabec75d9fbcf | refs/heads/master | 2023-07-24T01:05:10.049800 | 2021-09-08T16:31:08 | 2021-09-08T16:31:08 | 403,935,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,639 | py | #!/usr/bin/env python
import rospy
import cv2
import sys
from std_msgs.msg import String
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
import numpy as np
class Camera1:
def __init__(self):
self.bridge = CvBridge()
self.image_sub = rospy.Subscriber("/eyrc/vb/camera_1/image... | [
"Happysunshine.disroot.org"
] | Happysunshine.disroot.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.