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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
030305ab4f62d57c7c891748c1539069d222cb70 | 35b5f50626d33b17f38f311e9d5fc6b727d25765 | /gui/kivy/uix/dialogs/invoices.py | 8904edf6fbc412e1c895baa64e3ebd02c67d15b9 | [
"MIT"
] | permissive | bitcoinpostquantum/electrumpq | 7fcf5a3fbda2b05f033340ba61fc23e46997f5ed | dbbc2a493aff904923cd8112fc5bb07802df272c | refs/heads/master | 2020-04-10T10:09:24.239700 | 2018-12-29T09:49:58 | 2018-12-29T09:49:58 | 160,957,005 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,810 | py | from kivy.app import App
from kivy.factory import Factory
from kivy.properties import ObjectProperty
from kivy.lang import Builder
from decimal import Decimal
Builder.load_string('''
<InvoicesLabel@Label>
#color: .305, .309, .309, 1
text_size: self.width, None
halign: 'left'
valign: 'top'
<InvoiceItem... | [
"code@bitcoinpq.org"
] | code@bitcoinpq.org |
1c76e72cd8addfb1c576f4225f82d9d5ad24d572 | f64f8a8827219371236f0e2ad3d5220ec1825cb2 | /bux/_commands/_losers.py | 32efa4c463b6d14b31e50be4b8aa634548f350b3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | orsinium-labs/bux | 2b1c0c19aa06d480a90386cdda66af855a746f32 | fbb5727b759719f15ec38dd4bf00e493690854b4 | refs/heads/master | 2023-07-12T19:35:14.768488 | 2021-08-30T11:19:03 | 2021-08-30T11:19:03 | 389,935,936 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | from argparse import ArgumentParser
import bux
from ._base import Command, register
@register
class Losers(Command):
name = 'losers'
@staticmethod
def init_parser(parser: ArgumentParser) -> None:
parser.add_argument('--token', required=True)
def run(self) -> int:
api = bux.UserAPI(... | [
"mail@orsinium.dev"
] | mail@orsinium.dev |
d671f49d5bf51d6b819c2844d458b42b7ada6c94 | 17cad1d357380875243b804ffd13882f1a7d61a8 | /0x0B-python-input_output/2-read_lines.py | f33d4e7521358ff0ab260754b7aa8efa81a6ae2c | [] | no_license | Abdou-Hidoussi/holbertonschool-higher_level_programming | 9a0c0714b63ccd9823798adb51eb4f395ab375dc | 1dd37cc5f848d1f37884e6ffbe9598eae8c4f30e | refs/heads/master | 2023-03-05T00:02:25.283646 | 2021-02-18T20:42:26 | 2021-02-18T20:42:26 | 291,713,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | #!/usr/bin/python3
"""
task 2
"""
def read_lines(filename="", nb_lines=0):
"""read line function"""
with open(filename, encoding="utf-8") as f:
if nb_lines <= 0:
print(f.read(), end="")
return
for i in range(nb_lines):
print(f.readline(), end="")
| [
"hidoussiabdou5@gmail.com"
] | hidoussiabdou5@gmail.com |
4649092af7c99f1f913f1b6305e81c3ad84e7b26 | 2b4af8810511b5f1ed47fdf5662753b9b4af76b8 | /corehq/apps/case_search/migrations/0004_auto_20170518_2018.py | 90b4ceefdfb27e1e0f3dd0893ad81a5dd1d8a782 | [] | no_license | DeckOfPandas/commcare-wddcp | 55bde89197ec5bc4a4b53d327ec6a811aec0d752 | 810d2e09d3890e3d0d70178745da5924c1db767b | refs/heads/dimagi | 2020-12-02T19:19:53.992796 | 2017-06-30T15:18:16 | 2017-07-05T12:23:26 | 96,325,707 | 1 | 0 | null | 2017-07-05T14:02:49 | 2017-07-05T14:02:49 | null | UTF-8 | Python | false | false | 1,843 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-05-18 20:18
from __future__ import unicode_literals
import django.contrib.postgres.fields
from django.db import migrations, models
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [
('case_search', '0003_casesearch... | [
"proteusvacuum@gmail.com"
] | proteusvacuum@gmail.com |
73ea9b5b72d472a84e080415378c392f17ac413d | 34c84dc28ca8c62594ba74facc6cef4eacb2aad9 | /examples/liquid-argon/utils.py | 672f312f191d433c0811262db1d2a9b8692c8079 | [] | no_license | choderalab/automatic-equilibration-detection | f4102407db312402b30dceb1cee0ea0e698e46b1 | 9b5f096cd8e309bc1158f9eed5d8fd41f78312cc | refs/heads/master | 2021-01-17T15:15:38.786759 | 2016-12-24T06:12:32 | 2016-12-24T06:12:32 | 19,412,535 | 15 | 9 | null | 2016-12-24T06:12:33 | 2014-05-03T21:28:09 | TeX | UTF-8 | Python | false | false | 4,937 | py | #!/usr/bin/env python
"""
Run a simulation of liquid argon at constant pressure.
"""
import os, os.path, copy
import netCDF4
from simtk import openmm, unit
from simtk.openmm import app
from openmmtools import testsystems, integrators
def minimize(system, positions):
"""
Minimize the specified testsystem.
... | [
"choderaj@mskcc.org"
] | choderaj@mskcc.org |
f4d4477c62a9b7c90942fce44f0792f8b0c019a1 | c3a84a07539c33040376f2c1e140b1a1041f719e | /wagtail-stubs/admin/views/tags.pyi | 55025030a9dcc5f24d36277a1b5c72bd7e56c396 | [] | no_license | tm-kn/tmp-wagtail-stubs | cc1a4434b7142cb91bf42efb7daad006c4a7dbf4 | 23ac96406610b87b2e7751bc18f0ccd27f17eb44 | refs/heads/master | 2023-01-20T14:41:33.962460 | 2020-11-30T23:15:38 | 2020-11-30T23:15:38 | 317,332,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | pyi | from typing import Any, Optional
def autocomplete(request: Any, app_name: Optional[Any] = ..., model_name: Optional[Any] = ...): ...
| [
"hi@tmkn.org"
] | hi@tmkn.org |
020965ab409130059e4fb9e1e3a6cf4d39e75232 | 864755f7d733351b205e460ec54a5f6d13050037 | /devilry/devilry_settings/views.py | 602dd5a1b02bebe44232137c80586840865b0340 | [] | permissive | aless80/devilry-django | 27fc14b7bb7356f5f9d168e435a84e7bb43a682a | 416c262e75170d5662542f15e2d7fecf5ab84730 | refs/heads/master | 2020-05-20T12:22:09.255393 | 2019-05-19T21:06:57 | 2019-05-19T21:06:57 | 185,568,847 | 0 | 0 | BSD-3-Clause | 2019-05-08T08:53:52 | 2019-05-08T08:53:51 | null | UTF-8 | Python | false | false | 753 | py | from django.http import HttpResponse
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
@login_required
def missing_setting(request, setting):
message = """
You have been redirected to this view because your local Devilry system ... | [
"post@espenak.net"
] | post@espenak.net |
2155e9730a7adb5594c0a9c0e5138143f70e3f0e | f8cf0f8d3ca1784b59fff380b99c4fa4da225389 | /ceshi/configparser/test.py | 4369761d2860981c381117b763a2d97b2035bd9f | [] | no_license | loveguan/mysite | 6f3c10c9bd1780a6a3c789c03ef66a10b186da92 | 7217b0e111626af0e6afddd0bc405705cf9641ca | refs/heads/master | 2021-01-01T20:49:45.367058 | 2018-02-05T14:19:42 | 2018-02-05T14:19:42 | 98,939,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: JOJ
@license: (C) Copyright 2013-2017, Node Supply Chain Manager Corporation Limited.
@contact: zhouguanjie@qq.com
@software: JOJ
@file: test.py
@time: 2017/12/14 15:42
@desc: 建立配置文件
'''
import configparser
config=configparser.ConfigParser()
config["DEFAU... | [
"zhouguanjie@qq.com"
] | zhouguanjie@qq.com |
f3cd6766d23f03656ef3274d07cce9ea1489c132 | 350ecc8259bcad075bd376423335bb41cc8a533e | /classic_strategy1.py | 50460f25736ecc5fcf66524f4c162073165d5ca1 | [] | no_license | CodedQuen/python_begin | 39da66ecc4a77b94a5afbbf0900727c8156b85e1 | 1433c319b5d85520c50aee00dd4b6f21a7e6366a | refs/heads/master | 2022-06-10T10:30:28.807874 | 2020-04-25T03:34:03 | 2020-04-25T03:34:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,457 | py | # classic_strategy.py
# Strategy pattern -- classic implementation
"""
# BEGIN CLASSIC_STRATEGY_TESTS
>>> joe = Customer('John Doe', 0) # <1>
>>> ann = Customer('Ann Smith', 1100)
>>> cart = [LineItem('banana', 4, .5), # <2>
... LineItem('apple', 10, 1.5),
... LineItem(... | [
"noreply@github.com"
] | CodedQuen.noreply@github.com |
6f15e3cd583c011bb562a0b53d54bb954df4bb24 | 473507d7540ad1ee5ae2670ac18ace05cd50f6fa | /Math/excel_sheet_column_number.py | 51d65533812a517cb65c1ea1328ec16f33f05486 | [] | no_license | JunctionChao/LeetCode | 4558c9d053f4a4d003903d08fade9fd93e6d9658 | 10daf38e673e69922f4be7eadf4054810da8ae13 | refs/heads/master | 2023-02-04T06:59:35.833078 | 2020-12-18T14:32:03 | 2020-12-18T14:32:03 | 322,617,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Date : 2019-09-19
# Author : Yuanbo Zhao (chaojunction@gmail.com)
def titleToNumber(s: str) -> int:
i = 0
result = 0
for char in s[::-1]:
r = ord(char) - ord('A') + 1
result += r * 26**i
i += 1
return result
if __name__ == '... | [
"1429004361@qq.com"
] | 1429004361@qq.com |
4d2f0d2d4ca9497e547201b052c68f244f1836f0 | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/astropy-4.0-py3.7-macosx-10.9-x86_64.egg/astropy/units/format/__init__.py | bad82f9313aa459bb138f442ee33f3d00bf7bc45 | [
"BSD-3-Clause"
] | permissive | holzschu/Carnets | b83d15136d25db640cea023abb5c280b26a9620e | 1ad7ec05fb1e3676ac879585296c513c3ee50ef9 | refs/heads/master | 2023-02-20T12:05:14.980685 | 2023-02-13T15:59:23 | 2023-02-13T15:59:23 | 167,671,526 | 541 | 36 | BSD-3-Clause | 2022-11-29T03:08:22 | 2019-01-26T09:26:46 | Python | UTF-8 | Python | false | false | 1,864 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
A collection of different unit formats.
"""
# This is pretty atrocious, but it will prevent a circular import for those
# formatters that need access to the units.core module An entry for it should
# exist in sys.modules since astropy.units.core imp... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr |
bb9fa8236399987f6814680af95a20481f9fc3d4 | 67b7e6d2c08f08403ec086c510622be48b8d26d8 | /src/test/tinc/tincrepo/mpp/gpdb/tests/queries/basic/exttab/errlog/sql/datagen_first_errors.py | d83f25a62ae3d2681a21b0d929f720f87afcdc31 | [
"Apache-2.0",
"PostgreSQL",
"LicenseRef-scancode-rsa-md4",
"OLDAP-2.8",
"HPND-sell-variant",
"BSD-4-Clause-UC",
"BSD-3-Clause",
"Zlib",
"LicenseRef-scancode-zeusbench",
"LicenseRef-scancode-mit-modification-obligations",
"OpenSSL",
"MIT",
"LicenseRef-scancode-other-copyleft",
"bzip2-1.0.6"... | permissive | sshyran/gpdb | 41012411d22b0294204dfb0fe67a1f4c8d1ecaf6 | 2d065ecdd2b5535cb42474f17a0ee6592b4e6837 | refs/heads/master | 2023-04-09T14:05:44.030212 | 2016-11-12T08:33:33 | 2016-11-12T08:34:36 | 73,544,159 | 0 | 0 | Apache-2.0 | 2023-04-04T00:30:10 | 2016-11-12T09:43:54 | PLpgSQL | UTF-8 | Python | false | false | 1,166 | py | """
Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved.
This program and the accompanying materials are made available under
the terms of the 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
... | [
"jyih@pivotal.io"
] | jyih@pivotal.io |
a0924adb3c7da96cb655447e56114e94b508ac22 | b68c92fe89b701297f76054b0f284df5466eb698 | /Other/Companies/Microsoft/BenchmarkMatching.py | a00910c36d86cd8e47e303768e50f53753c80cee | [] | no_license | makrandp/python-practice | 32381a8c589f9b499ab6bde8184a847b066112f8 | 60218fd79248bf8138158811e6e1b03261fb38fa | refs/heads/master | 2023-03-27T18:11:56.066535 | 2021-03-28T04:02:00 | 2021-03-28T04:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,409 | py | '''
Programming challenge description:
We say a portfolio matches the benchmark when the number of shares of each asset in the portfolio matches the number of shares of each asset in the benchmark. Your question is to write a program that determines the transactions necessary to make a portfolio match a benchmark.
A p... | [
"awalexweber99@gmail.com"
] | awalexweber99@gmail.com |
50d8820972add7db1e12f143f05cf38d7f3ed8a2 | 548a5ed489f88b34f0dd31a2118cb1ce82155c99 | /BOJ/2020_12/2562.py | fce608b3cdaa9bec2c41b134ed6c60e49a90d410 | [] | no_license | rkdtmddnjs97/algorithm | f44606f0f39c39af272ffef5373c801e7388d882 | 7cc3d20d654ea067502c3e60b706b0cb765784c0 | refs/heads/main | 2023-07-13T08:20:38.750770 | 2021-08-21T20:31:54 | 2021-08-21T20:31:54 | 398,647,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | a = [ int(input()) for i in range(9)]
b = max(a)
print(b)
for key,value in enumerate(a):
if value == b:
print(key+1) | [
"rkdtmddnjs97@gmail.com"
] | rkdtmddnjs97@gmail.com |
1509d9b68521df12375cdeb84a7ebe5c1ec96e76 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /elasticache_write_f/tags-to-resource_add.py | 9d6e980bae8076a92de85796496e725ed2d6d06f | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
bb15f4a2be885270cef4e62640a269481b8a03d3 | 8da4a294cd72d36f1f890148b859eee88fe270ac | /dev/local/data/external.py | 1b49501bc88cbb32b8c1f668d3ef04f8e21d4687 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | neerajshukla1911/fastai_dev | 3bf323e80d5594fb4bc543fe73de553e036b2ec2 | 768a5dac135a0f2ea91bc645ba279d3b1c5fd649 | refs/heads/master | 2020-07-16T00:47:11.761475 | 2019-09-01T14:10:32 | 2019-09-01T14:10:32 | 205,684,686 | 0 | 0 | Apache-2.0 | 2019-09-01T14:04:13 | 2019-09-01T14:04:12 | null | UTF-8 | Python | false | false | 8,016 | py | #AUTOGENERATED! DO NOT EDIT! File to edit: dev/04_data_external.ipynb (unless otherwise specified).
__all__ = ['download_url', 'URLs', 'get_path', 'ConfigKey', 'download_data', 'untar_data']
from ..imports import *
from ..test import *
from ..core import *
def download_url(url, dest, overwrite=False, pbar=None, show... | [
"sylvain.gugger@gmail.com"
] | sylvain.gugger@gmail.com |
d630b1dd7a6eb1c30f516c89ef5c64aaeb65c260 | 6a0b5dd52577003eddeb45d1ccc173ff6de7e7ca | /director/users/api_v1_urls.py | 5721468341cbb8e8260894fc59e968198546b117 | [
"Apache-2.0"
] | permissive | paulolimac/hub | 98ab1fd0c60ccc28a5a887dc486119da066ced36 | ce5d86343e340ff0bd734e49a48d0745ae88144d | refs/heads/master | 2020-04-03T13:21:20.046117 | 2018-10-29T23:49:37 | 2018-10-29T23:49:37 | 155,282,253 | 0 | 0 | null | 2018-10-29T21:14:19 | 2018-10-29T21:14:18 | null | UTF-8 | Python | false | false | 129 | py | from django.urls import path
from users.api_views import UserSearch
urlpatterns = [
path('search', UserSearch.as_view())
]
| [
"ben@beneboy.co.nz"
] | ben@beneboy.co.nz |
64724bb718e51f021275096a77275b11b6481ac4 | 4178f2916d2da72cbb45454fbed941dcfe8f6460 | /POM_test/TestCase/Debug2.py | a6a55e7b2f21f479f7cacf5f29ff779122b450fc | [] | no_license | maxcrup007/Selenium_Webdriver_Python | 15196cb04ba5cafdc5b776c26d167f0b48fb0e14 | 6be7f0b9f53df1ba592957029e8a4d22e409d1c4 | refs/heads/main | 2023-03-24T21:04:31.976451 | 2021-03-22T09:16:04 | 2021-03-22T09:16:04 | 349,379,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py |
import os
os.chdir('C:/Users/voraw/Desktop/Working/Gaming & Hobby/Ma11/miKu-Doujin/Chane name')
print(os.getcwd())
COUNT = 1
def change_name():
global COUNT
COUNT = COUNT + 1
for f in os.listdir():
f_name, f_ext = os.path.splitext(f)
if COUNT >= 100:
f_name = str(COUNT)
elif COUNT >= ... | [
"36732487+maxcrup007@users.noreply.github.com"
] | 36732487+maxcrup007@users.noreply.github.com |
887821cb1d3663aec05aded7090a12fbb0863b88 | d9c95cd0efad0788bf17672f6a4ec3b29cfd2e86 | /disturbance/migrations/0163_apiarysiteonapproval_site_category.py | b2f18b430255810ee5d6bbd518185236c84db914 | [
"Apache-2.0"
] | permissive | Djandwich/disturbance | cb1d25701b23414cd91e3ac5b0207618cd03a7e5 | b1ba1404b9ca7c941891ea42c00b9ff9bcc41237 | refs/heads/master | 2023-05-05T19:52:36.124923 | 2021-06-03T06:37:53 | 2021-06-03T06:37:53 | 259,816,629 | 1 | 1 | NOASSERTION | 2021-06-03T09:46:46 | 2020-04-29T03:39:33 | Python | UTF-8 | Python | false | false | 592 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2020-09-17 04:10
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('disturbance', '0162_auto_20200917_1209'),
]
operat... | [
"katsufumi.shibata@dbca.wa.gov.au"
] | katsufumi.shibata@dbca.wa.gov.au |
782f7ad84a757286a8685de5ded3aa137187a6e8 | f042383cbc9f10837ebdb5b9033a0263f6a43698 | /examples/docs_snippets/docs_snippets/intro_tutorial/basics/e04_quality/custom_types_2.py | 70e3912ca669f3083987bf7f01f0b16146f8993a | [
"Apache-2.0"
] | permissive | helloworld/dagster | 664e6636d68bafa5151418c9d4316a565717f5ee | 779e27faa3e46b7d043cb9624617e655a9ed570c | refs/heads/master | 2022-03-24T12:15:36.626783 | 2022-02-26T01:34:29 | 2022-02-26T01:34:29 | 464,019,094 | 0 | 0 | Apache-2.0 | 2022-03-05T20:23:14 | 2022-02-27T02:38:17 | null | UTF-8 | Python | false | false | 1,116 | py | import requests
from dagster import DagsterType, In, Out, get_dagster_logger, job, op
# start_custom_types_2_marker_0
def is_list_of_dicts(_, value):
return isinstance(value, list) and all(
isinstance(element, dict) for element in value
)
SimpleDataFrame = DagsterType(
name="SimpleDataFrame",
... | [
"noreply@github.com"
] | helloworld.noreply@github.com |
4cd457aae559324c28a76e8ff71688100483e7f2 | f7a48634de139b7f5585c2bf3d3014605130428c | /ebedke/plugins/kompot.py | c41f831fd3d7bba415606e8c90bfa14c14c43220 | [
"Apache-2.0",
"MIT"
] | permissive | ijanos/ebedke | b72dcdef63c575eb4090661bab2e2c7a7864ab76 | 9a0f91cc6536a78d7da9aca1fab22924a56d38e2 | refs/heads/master | 2023-04-20T19:36:03.928669 | 2021-01-24T11:35:15 | 2021-01-24T11:35:15 | 99,848,492 | 35 | 11 | Apache-2.0 | 2023-03-27T22:36:27 | 2017-08-09T20:08:13 | Python | UTF-8 | Python | false | false | 1,742 | py | from datetime import datetime, timedelta
from ebedke.utils.date import days_lower, on_workdays
from ebedke.utils.text import pattern_slice
from ebedke.utils import facebook
from ebedke.pluginmanager import EbedkePlugin
FB_PAGE = "https://www.facebook.com/pg/KompotBisztro/posts/"
FB_ID = "405687736167829"
@on_workday... | [
"ijanos@gmail.com"
] | ijanos@gmail.com |
931300b3c495baff8b052bb61df42f03e9e0e772 | 1a758ef862f733d98ddd8ebc8ade5cefd95c24f2 | /customers/migrations/0013_facebookcustomer.py | 3abb34e6d2d0c3b6e1e3df3ca8e899dc7fe394e5 | [] | no_license | ajajul/ReactJS_Python | f116b35394666c5b3f2419eb5d8d7aeb077d4a24 | 08310d56fa88f326ddbfdd4b189f2a3a71f76d99 | refs/heads/master | 2020-03-19T03:16:57.510672 | 2018-06-01T10:36:36 | 2018-06-01T10:36:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('customers', '0012_auto_20160802_1628'),
... | [
"web.expert@aol.com"
] | web.expert@aol.com |
959d08c86faa5429545a51552270f33743c50c74 | 3485140792e9bae67499fef138d50d046cccb256 | /datamining/AprioriProject/util/ProgressBar.py | 5858e003c7264ec53dab5ae6a814fc400029c84a | [] | no_license | ALREstevam/TopicosBD-DataMining-IBGE-Apriori | dc14a50ca8f3046b8125a183cdcb4e99d3c4c616 | 5bf8dee35df0f22902f7816b8738e585fdca3410 | refs/heads/master | 2020-03-17T04:38:08.111880 | 2018-06-14T12:14:11 | 2018-06-14T12:14:11 | 133,282,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | import sys
class ProgressBar(object):
DEFAULT_BAR_LENGTH = 65
DEFAULT_CHAR_ON = '█'
DEFAULT_CHAR_OFF = '░'
def __init__(self, end, start=0):
self.end = end
self.start = start
self._barLength = self.__class__.DEFAULT_BAR_LENGTH
self.setLevel(self.start)
sel... | [
"a166348@g.unicamp.com"
] | a166348@g.unicamp.com |
6e210328858f6452857a8f09f3486b78b2ddc68c | 51fba32aca3114a6897e11b271ee29d3b038056c | /tests/08_test_patch.py | bc9a507c707597c9dbc29ad814635d12538e8e77 | [] | no_license | lamby/git-buildpackage | b2fbf08b93ed0520c8e5ba0c3eb66f15d7a64a41 | c4bc6561c788f71b5131d0bd8e92478e83808200 | refs/heads/master | 2021-01-02T23:04:26.941635 | 2017-08-05T23:46:58 | 2017-08-06T00:55:37 | 75,486,665 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | # vim: set fileencoding=utf-8 :
"""Test L{Patch} class"""
from . import context # noqa: 401
import os
import unittest
from gbp.patch_series import Patch
class TestPatch(unittest.TestCase):
data_dir = os.path.splitext(__file__)[0] + '_data'
def test_filename(self):
"""Get patch information from t... | [
"agx@sigxcpu.org"
] | agx@sigxcpu.org |
12d7d0236d58487ba5f9d74bafeeeaeb487401aa | 3940b4a507789e1fbbaffeb200149aee215f655a | /lc/112.PathSum.py | 14e465def2db1577e4b4e9af3851db0a471c4446 | [] | no_license | akimi-yano/algorithm-practice | 15f52022ec79542d218c6f901a54396a62080445 | 1abc28919abb55b93d3879860ac9c1297d493d09 | refs/heads/master | 2023-06-11T13:17:56.971791 | 2023-06-10T05:17:56 | 2023-06-10T05:17:56 | 239,395,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | # 112. Path Sum
# Easy
# 2849
# 583
# Add to List
# Share
# Given the root of a binary tree and an integer targetSum, return true if the tree has a root-to-leaf path such that adding up all the values along the path equals targetSum.
# A leaf is a node with no children.
# Example 1:
# Input: root = [5,4,8,11... | [
"akimi.mimi.yano@gmail.com"
] | akimi.mimi.yano@gmail.com |
e87acb9a972fbc841b375cd19b7a3397f02cb1d5 | 920bc59a07adc65569ae2d6736388519b43cfa23 | /business_logic/blockly/build.py | 9f732ce12acd96a8f9d521cb445158fd5990988a | [
"MIT"
] | permissive | glafira-ivanova/django-business-logic | e924ccabac6b5219fd87dabe60c6e0ecfaa40303 | 7cc0d0475815082e75a16201daf9865d08d3f281 | refs/heads/master | 2021-01-11T05:35:35.193191 | 2016-10-24T12:59:04 | 2016-10-24T12:59:04 | 71,771,078 | 0 | 0 | null | 2016-10-24T09:03:42 | 2016-10-24T09:03:42 | null | UTF-8 | Python | false | false | 5,305 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re
import inspect
from lxml import etree
from django.db.models import Model
from ..models import *
from .data import OPERATOR_TABLE
from .exceptions import BlocklyXmlBuilderException
def camel_case_to_snake_case(name):
s1 = re.sub('(.)([A... | [
"dgk@dgk.su"
] | dgk@dgk.su |
1549dbbffe60bde02cbe4a4dc8ded721bb9ac421 | f56346f16477de58c5483ddbab63d3bff15801c6 | /python_source/graph-tool/example2.py | a7571e1e5d9faf83e8928fe282b25427d72ff25a | [] | no_license | jerryhan88/py_source | ca6afb6582777a444a19e33c832b638fc9e2fd52 | e1500b1d2d4fa5f30e278422c5b1afa1d777f57f | refs/heads/master | 2020-04-06T13:12:34.814275 | 2016-10-06T09:30:50 | 2016-10-06T09:30:50 | 40,874,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,517 | py | #! /usr/bin/env python
# We will need some things from several places
from __future__ import division, absolute_import, print_function
import sys
if sys.version_info < (3,):
range = xrange
import os
from pylab import * # for plotting
from numpy.random import * # for random sampling
seed(42)
# We need to imp... | [
"jerryhan88@gmail.com"
] | jerryhan88@gmail.com |
6e248c7365a903010c866c0f556d026a124c56af | 9c636aeed2fc0a591507fcf0a8a6124fae710c9b | /insertLL.py | 3d8c20f19faad87ef2b54e0fea3e0ad01926eb92 | [] | no_license | ilkaynazli/challenges | 4b2d1ac847b1761f98183457f8ea5bac6556eeff | f7c165fedbdc9811fb7f1d2a43c797f5b5ac5322 | refs/heads/master | 2020-04-07T01:03:18.625568 | 2019-04-25T19:40:22 | 2019-04-25T19:40:22 | 157,928,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | """
Given a node from a cyclic linked list which is sorted in ascending order, write a function to insert a value into the list such that it remains a cyclic sorted list. The given node can be a reference to any single node in the list, and may not be necessarily the smallest value in the cyclic list.
If there are mul... | [
"ilkayncelik@gmail.com"
] | ilkayncelik@gmail.com |
040da08f98ffd9b102de0d8c3fb12f826ce7f563 | 523e24bd96d7de004a13e34a58f5c2d79c8222e0 | /plugin.program.indigo/maintool.py | 7517a338760875f088560711b832ad5ef1cff331 | [] | no_license | Bonitillo/Bonitillonew | ec281e5ab9d4fec83d88936e8d8ce32bad6a81c9 | a8099e326dda297f66096480ec93def8a8c124a8 | refs/heads/master | 2022-10-13T05:39:01.126653 | 2017-03-21T16:47:23 | 2017-03-21T16:47:23 | 85,725,652 | 2 | 4 | null | 2022-09-30T21:18:58 | 2017-03-21T16:16:33 | Python | UTF-8 | Python | false | false | 7,349 | py | from urllib2 import Request, urlopen
import urllib2,urllib,re,os, shutil
import sys
import time,datetime
import xbmcplugin,xbmcgui,xbmc, xbmcaddon, downloader, extract, time
from libs import kodi
from libs import viewsetter
addon_id=kodi.addon_id
addon = (addon_id, sys.argv)
artwork = xbmc.translatePath(os.path.join('... | [
"richellizardo@Djs-MacBook-Pro.local"
] | richellizardo@Djs-MacBook-Pro.local |
3eb53c7799362cdc6c41647804734c03d62b2e4e | a3e52fbdfc81da3d17fee3d11b4451b330bfd592 | /JudgeOnline/solution/hrank/algorithm/graph/shrotestReach.py | 69b1ab517d2a6ef79f88316198cd25092699b26d | [] | no_license | chrislucas/python | 79633915dd0aa8724ae3dfc5a3a32053f7a4f1e0 | d3cca374f87e134a7ddfc327a6daea983875ecac | refs/heads/master | 2021-01-17T04:08:25.056580 | 2016-12-26T11:41:31 | 2016-12-26T11:41:31 | 42,319,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | '''
Created on 11 de dez de 2016
@author: C.Lucas
https://www.hackerrank.com/challenges/bfsshortreach
'''
if __name__ == '__main__':
pass | [
"christoffer.luccas@gmail.com"
] | christoffer.luccas@gmail.com |
0d5a4132c1a3c779a764137edb3a3e33431d8662 | fa89836a6759151896a07650747462b8cda40610 | /mse/about/migrations/0010_event_ordinal.py | 60b846d5a892fc107b9a4bef92acd71c0bed9132 | [] | no_license | DigitalGizmo/mse21 | 334813bfebec9b78f0541744e54f218f9cc6936b | 89f1c0f9c05cefaaa8c703732ee4e4642aecd3c9 | refs/heads/master | 2023-07-09T13:29:13.903900 | 2018-03-26T19:26:09 | 2018-03-26T19:26:09 | 126,878,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('about', '0009_single'),
]
operations = [
migrations.AddField(
model_name='event',
name='ordinal',
... | [
"donpublic@digitalgizmo.com"
] | donpublic@digitalgizmo.com |
e3205ca78ec9c5c4154d6e2bc096e8713b5deffc | 78883afed6f95bc0aae9f48e9d20a4a7c77adb32 | /plugins/secpicam480.py | d9c6855043be61e4c9b27797e8255abed9640c19 | [] | no_license | xe1gyq/speed-camera | f7da04162afaece15033971e23692f5f24a715ed | 71306c058235bf1a7fb00c484c9d34f4ac0fefae | refs/heads/master | 2021-03-30T21:18:50.236194 | 2018-02-26T20:07:13 | 2018-02-26T20:07:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,341 | py | # ---------------- User Configuration Settings for speed-cam.py ---------------------------------
# Ver 8.4 speed-cam.py picam480 Stream Variable Configuration Settings
#######################################
# speed-cam.py plugin settings
#######################################
# Calibration Settings
# --... | [
"pageauc@gmail.com"
] | pageauc@gmail.com |
f94f70300297d6540a203b03e0a808f40fb78e99 | 3cedc7c1519d3b013aad9ec4e6a6ee7834da7589 | /selenium_code/z_practise/001/sa2.py | f978ca4ea1b40e7eda5051133e473ae0a9999596 | [] | no_license | hzrg/songqin_course | 53437100669ee93d2ac5ecae5de938b1a4007d7f | 05e422ce34a42fd6d3819722a19252f8005e79ed | refs/heads/master | 2022-02-09T13:27:59.871400 | 2019-06-13T06:08:45 | 2019-06-13T06:08:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | # coding:utf8
from selenium import webdriver
# 导入浏览器驱动路径
executable_path = r"d:\tools\webdrivers\chromedriver.exe"
# 指定是chrome 的驱动
# 执行到这里的时候Selenium会去到指定的路径将chrome driver 程序运行起来
driver = webdriver.Chrome(executable_path)
# ------------------------
driver.get('http://www.weather.com.cn/html/province... | [
"1174497735@qq.com"
] | 1174497735@qq.com |
eb1d56fce359772a0815850648aed190af310eb2 | 7c61922c2de52ea684a39a002355eff6551bf930 | /getcount.py | 33de2b911f0d1b8b0652e5e8f9650e44c86dcae2 | [] | no_license | DongDong-123/codewars | ac3e6b5d5dab78ef60140ac87b9c02cc8dba646c | 723750fed649ea763a2363604dd6dea3359216a8 | refs/heads/master | 2020-03-21T15:48:19.316417 | 2019-01-04T14:44:54 | 2019-01-04T14:44:54 | 138,733,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | def getCount(inputStr):
#num_vowels = 0
inputStr = inputStr.lower()
vowels = ['a','e','i','o','u']
b = []
for i in inputStr:
b.append(i)
for j in b and vowels:
num_vowels = inputStr.count(i)
return num_vowels
#inputStr = "abracadabra"
a = getCount("abracadabra")
print(a)
| [
"zisehaiyang04@163.com"
] | zisehaiyang04@163.com |
fa79b596babef682f3b5914ffcc30d799205917c | 726ce8dddbb12af1662e002633bfe538ddf77708 | /PyOpenGL-2.0.2.01-py2.5-win32.egg/OpenGL/GL/SGIS/_multitexture.py | f56fd6209fbb3f8208e4edbfaed99bcb96da0c30 | [] | no_license | bopopescu/BCPy2000-1 | f9264bb020ba734be0bcc8e8173d2746b0f17eeb | 0f877075a846d17e7593222628e9fe49ab863039 | refs/heads/master | 2022-11-26T07:58:03.493727 | 2019-06-02T20:25:58 | 2019-06-02T20:25:58 | 282,195,357 | 0 | 0 | null | 2020-07-24T10:52:24 | 2020-07-24T10:52:24 | null | UTF-8 | Python | false | false | 284 | py | def __bootstrap__():
global __bootstrap__, __loader__, __file__
import sys, pkg_resources, imp
__file__ = pkg_resources.resource_filename(__name__,'_multitexture.pyd')
__loader__ = None; del __bootstrap__, __loader__
imp.load_dynamic(__name__,__file__)
__bootstrap__()
| [
"vanessa_kamara@my.uri.edu"
] | vanessa_kamara@my.uri.edu |
b2ab8d47998ea4e78f6b52de16d4b8b57ba4020a | cd052f960846ea33e22abdded3106fb492f16c31 | /爬虫项目/code11/Tencent/Tencent/middlewares.py | f313fa007a063eec3e1f4f43302226f7dbe1aa01 | [] | no_license | byst4nder/his_spider | 2d96457b70894c36506e8061d8a3201ac337a5d0 | a51e31acff41292e568ac22b0e213e6cb48218fa | refs/heads/master | 2020-07-21T12:06:28.952083 | 2019-09-06T14:25:58 | 2019-09-06T14:25:58 | 206,857,595 | 1 | 0 | null | 2019-09-06T19:04:02 | 2019-09-06T19:04:02 | null | UTF-8 | Python | false | false | 1,284 | py | #coding:utf-8
import random
import requests
from fake_useragent import UserAgent
from settings import USER_AGENT_LIST
class RandomUserAgentMiddleware(object):
def __init__(self):
self.ua_obj = UserAgent()
def process_request(self, request, spider):
#user_agent = random.choice(USER_AGENT_LIST... | [
"mac@macdeMacBook-Pro.local"
] | mac@macdeMacBook-Pro.local |
d795d34961b9c42afe0703c20a4e6eeb5855f39a | 21b39d50e4df56ea01453001845d1580729af1df | /jdcloud_sdk/services/cdn/apis/SetDomainConfigRequest.py | 1e000f49f2dff6150f0a5cf3e6fc819eb5b40be3 | [
"Apache-2.0"
] | permissive | Tanc009/jdcloud-sdk-python | ef46eac7731aa8a1839b1fc1efd93249b7a977f0 | 8b045c99bc5b73ca7348e950b6f01e03a27982f5 | refs/heads/master | 2021-08-09T14:49:16.177709 | 2021-06-25T02:38:41 | 2021-06-25T02:38:41 | 141,714,695 | 0 | 0 | Apache-2.0 | 2018-07-20T13:21:17 | 2018-07-20T13:21:16 | null | UTF-8 | Python | false | false | 2,404 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"tancong@jd.com"
] | tancong@jd.com |
e962b54ec262cb0e8a2b1e534a1193f362ac6c0e | 6e8d58340f2be5f00d55e2629052c0bbc9dcf390 | /lib/galaxy/datatypes/converters/fastqsolexa_to_fasta_converter.py | 1b68b3f6a2a340f24a5357a700a8e9995715fcc1 | [
"CC-BY-2.5",
"MIT"
] | permissive | JCVI-Cloud/galaxy-tools-prok | e57389750d33ac766e1658838cdb0aaf9a59c106 | 3c44ecaf4b2e1f2d7269eabef19cbd2e88b3a99c | refs/heads/master | 2021-05-02T06:23:05.414371 | 2014-03-21T18:12:43 | 2014-03-21T18:12:43 | 6,092,693 | 0 | 2 | NOASSERTION | 2020-07-25T20:38:17 | 2012-10-05T15:57:38 | Python | UTF-8 | Python | false | false | 1,781 | py | #!/usr/bin/env python
"""
convert fastqsolexa file to separated sequence and quality files.
assume each sequence and quality score are contained in one line
the order should be:
1st line: @title_of_seq
2nd line: nucleotides
3rd line: +title_of_qualityscore (might be skipped)
4th line: quality scores
(in three forms: ... | [
"root@ip-10-118-137-129.ec2.internal"
] | root@ip-10-118-137-129.ec2.internal |
d224d3604bd4bf178bcc2ccbd591c0f88336a58b | 77d808f47101202db6cec5a9eee6b38c55f73fde | /24. Regular Expressions/04.py | 62ae2b81b1544adb49f3011abd21606be8b3f9cb | [] | no_license | dimDamyanov/Py-Fundamentals | 2ce5591fbfebf8d95c832e3f7109b24e53dd721b | 5ccae5bfa456829d97e8773ee9f5eaa5f5051765 | refs/heads/main | 2023-01-29T22:21:07.788061 | 2020-12-13T08:11:04 | 2020-12-13T08:11:04 | 317,682,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | import re
data = input()
numbers = [n.group(0) for n in re.finditer(r'(^|(?<=\s))-*\d+(\.\d+)*($|(?=\s))', data)]
print(*numbers, sep=' ') | [
"dim.damianov@gmail.com"
] | dim.damianov@gmail.com |
138ad6816981ced62f71bd3859116d1fa7ecfa16 | e8d34c096f9df7f22ff5ccee34cf9f6e6a0adab4 | /flask_login/test_gpios.py | 3de4b6984d75c2f38c64ff8539dbc50799074af9 | [] | no_license | MarianoDel/coralpreto_py | 50fed2bd4032d4e3adc29c06de4b096ee1b3833a | 06bbe3f814fdbf80ae58b1ba6a53d0e96f0ec566 | refs/heads/master | 2023-03-07T14:19:19.074639 | 2022-03-25T17:34:38 | 2022-03-25T17:34:38 | 238,445,438 | 0 | 0 | null | 2023-03-05T06:04:33 | 2020-02-05T12:30:05 | JavaScript | UTF-8 | Python | false | false | 1,416 | py | # -*- coding: utf-8 -*-
#usar python3
import time
RUNNING_ON_RASP = 0
if RUNNING_ON_RASP:
from gpios import *
GpiosInit()
def TestBlue():
print ("start blinking blue led for 10 secs")
if RUNNING_ON_RASP:
LedBlueToggleContinous('start')
time.sleep(10)
print ("ending toggling")
... | [
"marianodeleu@yahoo.com.ar"
] | marianodeleu@yahoo.com.ar |
fe5008878edb08f5883649ab0765b19fdb4de0ce | 3b944f1714c458c5d6d0e84d4b1498f2b59c4ef7 | /581. Shortest Unsorted Continuous Subarray.py | 3fa7d45d3112e56a100aa8150f35c38a0d623fae | [] | no_license | shiannn/LeetCodePython | e4d66f108200d8329616b3e45b70c3f8fc4cd9ed | 6e4472d41904e60ff9d70b5f3979c5dcae98c838 | refs/heads/master | 2021-06-26T03:24:03.079077 | 2021-02-24T16:54:18 | 2021-02-24T16:54:18 | 213,206,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | class Solution:
def findUnsortedSubarray(self, nums) -> int:
end = -2
start = -1
max_ = -float('inf')
for idx, num in enumerate(nums):
max_ = max(max_, num)
if max_ != num:
end = idx
min_ = float('inf')
for idx, num in reversed(... | [
"b05502087@ntu.edu.tw"
] | b05502087@ntu.edu.tw |
4911d82b51dc9ec4b68a07e2dc8f0b5229a842e6 | 099f8740e61878c92c067e96d76ccb014cd342c3 | /robovat/simulation/__init__.py | 718ea92343dbbbccf8f49643d7c02676671f222b | [
"MIT"
] | permissive | UT-Austin-RPL/robovat | c52d7f0b5b4244ad19fc7c15c876e005626bf182 | c333ce7f1d7b156bedf28c3b09793f5487b6690a | refs/heads/master | 2023-01-06T12:32:39.304293 | 2020-11-12T20:12:25 | 2020-11-12T20:12:25 | 290,521,446 | 7 | 2 | MIT | 2020-08-28T17:33:52 | 2020-08-26T14:37:23 | null | UTF-8 | Python | false | false | 381 | py | from robovat.simulation.base import Base
from robovat.simulation.body import Body
from robovat.simulation.constraint import Constraint
from robovat.simulation.controllable_body import ControllableBody
from robovat.simulation.entity import Entity
from robovat.simulation.joint import Joint
from robovat.simulation.link im... | [
"kuanfang@outlook.com"
] | kuanfang@outlook.com |
a3dafb3d4576186964f7d3265b17eb05cf0d5f78 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/359/usersdata/282/109815/submittedfiles/lecker.py | ac07eef3ffae2806101fd83deb886992b12a8634 | [] | 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 | 342 | py | # -*- coding: utf-8 -*-
c=int(input('Digite o número de consultas: '))
pedidos=[]
fabricados=[]
for i in range (0,c,1):
pedidos.append(int(input('Digite o tamanho do taco: ')))
for i in range(0,c,1):
if pedidos[1] not in fabricados:
fabricados.append(pedidos[i])
fabricados.append(pedidos[i])
pri... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1e5a9be74f78ccb91bf9ebd626783bf8123fcbaf | 8e2e28a191fa5ec5a6c070ec7e9ccad98c8b4a0b | /jiaocheng/02-python核心编程/05-getattribute属性.py | 0751dbd47c6556fed35b260ab822029c2dbcc613 | [
"Apache-2.0"
] | permissive | kellanfan/python | 4cd61cbc062e2eee3a900fa7447ca5f0b8f1a999 | 912dc05a3bd0ded9544166a68da23ca0a97b84da | refs/heads/master | 2023-04-06T03:04:38.851928 | 2023-04-01T02:45:56 | 2023-04-01T02:45:56 | 65,542,280 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | class Itcast(object):
def __init__(self,subject1):
self.subject1 = subject1
self.subject2 = 'cpp'
#属性访问时拦截器,打log
def __getattribute__(self,obj):
print("====1>%s"%obj)
if obj == 'subject1':
print('log subject1')
return 'redirect python'
else: ... | [
"icyfk1989@163.com"
] | icyfk1989@163.com |
5117dc2fd127111959aeb4c16a0827934522c3b0 | 9835b6949fe4c8018de57aee531dedf1509337cc | /September_2020/sep_11_Maximun_Product_Subarray.py | 3c6c6472a9a78f7529c7993b6863e42fdb1b0150 | [] | no_license | jcai0o0/My_Leetcode_Solutions | f6edea0693d252a99e6507a1724a89763113f8a0 | 3fc909c01c6a345f625c9ab9e0f1584ea5fa8ab4 | refs/heads/master | 2023-01-01T04:08:33.929184 | 2020-10-17T02:01:56 | 2020-10-17T02:01:56 | 289,094,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | class Solution:
def maxProduct(self, nums: List[int]) -> int:
if not nums:
return 0
N = len(nums)
f = [0] * N
g = [0] * N
f[0] = g[0] = res = nums[0]
for i in range(1, N):
f[i] = max(f[i-1] * nums[i], nums[i], g[i-1] * nums[i])
g[i]... | [
"44845593+jcai0o0@users.noreply.github.com"
] | 44845593+jcai0o0@users.noreply.github.com |
d4ef79f1d42135b241425cfb23eada729d85805d | 420f974d85376031e66bb7241caedee1675b93ec | /init.py | a071836a49381b59b0ae48ee879ae0dacc8fbade | [] | no_license | uiandwe/chatting | 060c8b513ecd53db9519c97f99198c09cc918e0a | e8430cf4db173d44ee37601b96a8028271000cd1 | refs/heads/master | 2020-04-01T23:33:02.324646 | 2016-06-29T02:26:53 | 2016-06-29T02:26:53 | 62,188,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | __author__ = 'hyeonsj'
# db
host = '127.0.0.1'
user = 'root'
passwd = 'spoqa'
db = 'spoqa'
charset = 'utf8'
# logging level
# debug 10
# warning 30
# error 40
log_level = 10 | [
"uiandwe@gmail.com"
] | uiandwe@gmail.com |
7b13f2453af39f2d8ce8980fb548903267988fb9 | e47d5da2a947c3b3a834817d0b084ee65d302067 | /atcoder.jp/aising2020/aising2020_b/Main.py | 066248010306017828be4a1ada26949f6befc4c7 | [] | no_license | aki-nlp/AtCoder | 3293b9b183c0a8cefbf20d7f4f491c6f1e7604b8 | 9385805cbb1fa158f6d3c4a2415cdf7ba94547e5 | refs/heads/master | 2023-02-25T06:04:10.913237 | 2020-10-03T12:02:00 | 2020-10-03T12:02:00 | 296,792,313 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | def main():
n = int(input())
a = list(map(int, input().split()))
a = a[::2]
ans = 0
for aa in a:
if aa%2 == 1:
ans += 1
print(ans)
if __name__ == '__main__':
main() | [
"akiuo.ou@gmail.com"
] | akiuo.ou@gmail.com |
5f0e5ecf4312f6a94fb5df3eca0368782d2e1f45 | 69889d51e933b4e8a1d4c8397a317aa1d1365a5a | /String/KMP/13506.py | ace84b813e5a35c288b459bc91aa9047c3fb07b6 | [] | no_license | ddraa/Algorithm | a35c87631420ceccec6f7094da6f2b22ddb66c8c | a97c6628d5389f7f93603a2e95ac3b569057f556 | refs/heads/master | 2023-06-25T17:12:39.925821 | 2021-07-18T05:53:28 | 2021-07-18T05:53:28 | 279,240,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | import sys
def LIS(P):
lp = len(P)
Table = [0] * lp
i = 0
for j in range(1, lp):
while i > 0 and P[i] != P[j]:
i = Table[i - 1]
if P[i] == P[j]:
i += 1
Table[j] = i
return Table
print(LIS("papapapap")) | [
"ruuddyd@gmail.com"
] | ruuddyd@gmail.com |
ba1a284531e5e1f2b4e492eca0027f9a3e9bc9b6 | 102a33464fd3a16ceedd134e9c64fea554ca5273 | /apps/shop/forms.py | 22014c7b482f0b94dbeda97e4c41e71fdb9827e3 | [] | no_license | pythonguru101/django-ecommerce | b688bbe2b1a53c906aa80f86f764cf9787e6c2fe | f94de9c21223716db5ffcb86ba87219da88d2ff4 | refs/heads/master | 2020-07-24T14:57:02.047702 | 2020-06-10T06:06:23 | 2020-06-10T06:06:23 | 207,961,132 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,754 | py | import re
from django import forms
from django.utils.translation import ugettext as _
from markdownx.widgets import MarkdownxWidget
from apps.shop.models import Product, ShippingType, Category
from .plugshop.forms import OrderForm as PlugshopOrderForm
class CategoryAdminForm(forms.ModelForm):
class Meta:
... | [
"pythonguru101@gmail.com"
] | pythonguru101@gmail.com |
72ad00e39cc8e6c09b50e778412f8d9d2094a9e5 | 3996539eae965e8e3cf9bd194123989741825525 | /EventFilter/Utilities/rawStreamFileWriterForBU_cfi.py | 55b0b4128380e1fd75980e1887abc4c5ada3b947 | [] | no_license | cms-sw/cmssw-cfipython | 01990ea8fcb97a57f0b0cc44a8bf5cde59af2d98 | 25ee4c810103c4a507ca1b949109399a23a524c5 | refs/heads/CMSSW_11_2_X | 2023-09-01T16:56:00.658845 | 2022-06-20T22:49:19 | 2022-06-20T22:49:19 | 136,184,115 | 1 | 0 | null | 2022-10-19T14:04:01 | 2018-06-05T13:47:28 | Python | UTF-8 | Python | false | false | 291 | py | import FWCore.ParameterSet.Config as cms
rawStreamFileWriterForBU = cms.OutputModule('RawStreamFileWriterForBU',
source = cms.InputTag('rawDataCollector'),
numEventsPerFile = cms.uint32(100),
frdVersion = cms.uint32(6),
microSleep = cms.int32(0),
frdFileVersion = cms.uint32(0)
)
| [
"cmsbuild@cern.ch"
] | cmsbuild@cern.ch |
75909244f23ef13c6850631c801a95fcc525f524 | e32ee307e4c59cc18f9dea18d797784a1b23148f | /calculate the number of local extrema in the given array..py | b2eb8e2bd69cb0f68b09931e45bd4707c0c00a29 | [] | no_license | GuhanSGCIT/SGCIT | f4ab44346186d45129c74cbad466c6614f9f0f08 | 8b2e5ccf693384aa22aa9d57f39b63e4659f6261 | refs/heads/master | 2020-07-11T05:47:54.033120 | 2020-07-07T05:02:41 | 2020-07-07T05:02:41 | 204,459,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | n = int(input())
l = [int(x) for x in input().split()]
count = 0
for i in range(1, n-1):
if (l[i]>l[i-1] and l[i]>l[i+1]) or (l[i]<l[i-1] and l[i]<l[i+1]):
count+=1
print(count)
| [
"noreply@github.com"
] | GuhanSGCIT.noreply@github.com |
7138199d17ce5d21d5395a8ea2228f815ea2bb79 | 27acb207b21b4572561de4a5f7dfb9740318c0b8 | /Python-Data-Representations/Week1/Ex6_W1_substring.py | b5a1afe3b91a4d51ec0978800eac5b19ff906c2d | [] | no_license | iamieht/intro-scripting-in-python-specialization | ee836ef05b62f6c74fe8da3ee137687b4d0035cf | 8ea4f85f0ed3dcd541f89521c013335e9eb32980 | refs/heads/master | 2021-01-16T05:35:51.616276 | 2020-06-08T18:39:45 | 2020-06-08T18:39:45 | 242,993,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | """
Function that tests for substring
"""
def is_substring(example_string, test_string):
"""
Function that returns True if test_string
is a substring of example_string and False otherwise
"""
# enter one line of code for substring test here
return test_string in example_string
# Tests
... | [
"iamieht@gmail.com"
] | iamieht@gmail.com |
6f13f1e1e5fad0a19e704f17be7866134efb141e | eda9187adfd53c03f55207ad05d09d2d118baa4f | /tensorboardX/demo.py | 1fb77accb7db02f58576ac23e1ac78b36108156f | [] | no_license | HuiZhaozh/python_tutorials | 168761c9d21ad127a604512d7c6c6b38b4faa3c7 | bde4245741081656875bcba2e4e4fcb6b711a3d9 | refs/heads/master | 2023-07-07T20:36:20.137647 | 2020-04-24T07:18:25 | 2020-04-24T07:18:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,306 | py | # -*- coding:utf-8 -*-
# /usr/bin/python
'''
-------------------------------------------------
File Name : demo
Description :
Envs :
Author : yanerrol
Date : 2020/2/3 21:13
-------------------------------------------------
Change Activity:
2020/2/3 21:13:
... | [
"2681506@gmail.com"
] | 2681506@gmail.com |
4a8a08909397b5d1c28e2f029ec69e5bba7a0535 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2437/60586/311745.py | df394328050a5b32f1a4d7b71b3a5abaa5a94c4e | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | x=input()
if x=="6 2 ":
print(6,end="")
if x=="6 3 ":
print(1,end="")
elif x=="8 3 ":
print(3,end="")
elif x=="8 5 ":
print(0,end="")
else:
print(x) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d823fca9b27f34af478f6c88c97725a4014d1c14 | c7aadaba9ee8f8f28cf1b2fc604d671f12675b49 | /src/transient/diffusion/d3_d2D.py | 2085a7f7796dc3b1d05dc6336268aa3832a7d63b | [] | no_license | ellipsis14/fenics-tutorial | 2147656822afa36e4e6b8d39e9728d63708d6c73 | a1d9a7352675048b9d7f388b9b737701e7e78399 | refs/heads/master | 2021-01-15T23:45:09.826960 | 2015-03-04T10:46:33 | 2015-03-04T10:46:33 | 31,659,473 | 1 | 0 | null | 2015-03-04T13:54:36 | 2015-03-04T13:54:36 | null | UTF-8 | Python | false | false | 3,107 | py | """
FEniCS tutorial demo program: Diffusion equation with Dirichlet
conditions and a solution that will be exact at all nodes.
As d2_d2D.py, but here we test various start vectors for iterative
solution of the linear system at each time level.
The script d3_d2D_script.py runs experiments with different start
vectors an... | [
"hpl@simula.no"
] | hpl@simula.no |
0361b75dc0630118ca7291ef92d6eedb19e0f3ed | f0c35cd1d458f2f9ec1c605d73b9fc4738f62986 | /web/admin/forms.py | 59ea21852a00a9dacdc2d9f95b918f1dafa08ad3 | [] | no_license | dougmpx/xiaoli | 9e57c7bdd1d6e9ab55adb657ad5fa9d10dbe2a50 | 88f28754d1a67351b90461ad004ca5d36dde1e02 | refs/heads/master | 2021-04-15T07:39:06.655988 | 2013-01-05T08:10:02 | 2013-01-05T08:10:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,099 | py | #coding=utf-8
from tango.models import db, Category
from nodes.models import Vendor, Model
from .models import Miboid, Module
from flask_wtf import Form, TextField, PasswordField, HiddenField, SelectField, IntegerField, \
QuerySelectField, TextAreaField, widgets, ValidationError, required, equal_to, email
c... | [
"thewawar@gmail.com"
] | thewawar@gmail.com |
b088b7e8a4069b741246eaf5ac68d6faad85613b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04012/s874951633.py | 7b934360297ee1e1391f1376a323f92dc1ecebb8 | [] | 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 | 170 | py | # coding: utf-8
w = list(input())
w_ = list(set(w))
flg = True
for a in w_:
if w.count(a)%2 != 0:
flg = False
if flg:
print("Yes")
else:
print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c5b5216e50a35624832cb3c83ef89b17bad936c6 | fc3f784c8d00f419b11cbde660fe68a91fb080ca | /algoritm/20상반기 코딩테스트/보급로/1249.py | f8cb979771655a3bd22b8164a902086c5eea5c12 | [] | no_license | choo0618/TIL | 09f09c89c8141ba75bf92657ac39978913703637 | 70437a58015aecee8f3d86e6bfd0aa8dc11b5447 | refs/heads/master | 2021-06-25T07:01:34.246642 | 2020-12-21T04:57:13 | 2020-12-21T04:57:13 | 163,782,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | import sys
sys.stdin = open('1249.txt','r')
from collections import deque
dx=[1,0,-1,0]
dy=[0,1,0,-1]
def IS(y,x):
return -1<y<N and -1<x<N
for t in range(int(input())):
N=int(input())
A=[list(map(int,input()))for y in range(N)]
Map=[[10**9]*N for _ in range(N)]
Q=deque([(0,0,0)])
while Q:
... | [
"choo0618@naver.com"
] | choo0618@naver.com |
50f4218bab8cab402a3642b888fffb7a6a8f06f5 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-ief/huaweicloudsdkief/v1/model/update_edge_node_device_response.py | c0a8a018e150454b0fe2df63d8f1a2d583739033 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 6,496 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UpdateEdgeNodeDeviceResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
an... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
8e2285e97c33aaae42dc1d4463e35d6f6d1a9b56 | dffee54c9c40b495e56cd56d191aef0e4ebe6064 | /composer/core/algorithm.py | 25317300f7dca6dce28ebd33f352a1721d4460c4 | [
"Apache-2.0"
] | permissive | zeeroocooll/composer | 3afb0427e713c3e19197c780f03b510fbf6c936b | 6dd0a0f297cafb404333d6280a5344bcb7f3bee6 | refs/heads/main | 2023-08-20T04:21:51.536149 | 2021-10-13T20:34:29 | 2021-10-13T20:34:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,933 | py | # Copyright 2021 MosaicML. All Rights Reserved.
from __future__ import annotations
from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, Optional
from composer.core.serializable import Serializable
if TYPE_CHECKING:
from composer.core import Event, Logger, State
class Algorithm(Serializable, A... | [
"averylamp@gmail.com"
] | averylamp@gmail.com |
5531e802e6e0131bfab313bbb6fe0f400f8fc8d2 | 698cb8d24879fe75669af6f2667c3f88660a0a1e | /FM/deepfm/deepfm_movielens_sample.py | 4d5736c139d3a64e02b438bc0dbd2fbacb19ae68 | [] | no_license | HuichuanLI/Recommand-Algorithme | c83c5d34d75eebd127e2aef7abc8b7152fc54f96 | 302e14a3f7e5d72ded73b72a538596b6dc1233ff | refs/heads/master | 2023-05-11T03:01:30.940242 | 2023-04-30T08:03:19 | 2023-04-30T08:03:19 | 187,097,782 | 71 | 19 | null | null | null | null | UTF-8 | Python | false | false | 1,684 | py | import pandas as pd
from sklearn.metrics import mean_squared_error
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import LabelEncoder
from deepctr.models import DeepFM
from deepctr.inputs import SparseFeat,get_feature_names
#数据加载
data = pd.read_csv("movielens_sample.txt")
spar... | [
"lhc14124908@163.com"
] | lhc14124908@163.com |
babcd86669606969ca94181114c3944258ecfa56 | 6bdb32ddbd72c4337dab12002ff05d6966538448 | /gridpack_folder/mc_request/LHEProducer/Spin-1/Wprime_WZ_WhadZlep/Wprime_WZ_WhadZlep_narrow_M2000_13TeV-madgraph_cff.py | aef83982aeb269928c449b90de344527b31a631c | [] | no_license | cyrilbecot/DibosonBSMSignal_13TeV | 71db480de274c893ba41453025d01bfafa19e340 | d8e685c40b16cde68d25fef9af257c90bee635ba | refs/heads/master | 2021-01-11T10:17:05.447035 | 2016-08-17T13:32:12 | 2016-08-17T13:32:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | import FWCore.ParameterSet.Config as cms
# link to cards:
# https://github.com/cms-sw/genproductions/tree/master/bin/MadGraph5_aMCatNLO/cards/production/13TeV/exo_diboson/Spin-1/Wprime_WZ_WhadZlep/Wprime_WZ_WhadZlep_narrow_M2000
externalLHEProducer = cms.EDProducer("ExternalLHEProducer",
args = cms.vstring('/cvm... | [
"syu@cern.ch"
] | syu@cern.ch |
f82d94ad5533aa17f9c433b5546780f562802e2a | d1507ee333bf9453a197fe997b58871b527811bf | /venv/bin/automat-visualize | 51f0d1222abf19fd9b8ca755d742738686858191 | [] | no_license | hirossan4049/screenshare | a336f2cf0e0584866356a82f13683480d9d039f6 | 004f0e649116a6059af19d6489aeb13aed1741f3 | refs/heads/master | 2021-01-27T09:21:48.891153 | 2020-04-12T04:55:40 | 2020-04-12T04:55:40 | 243,476,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | #!/Users/linear/Documents/pg/pythonnnnn/screenshare/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from automat._visualize import tool
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(tool())
| [
"haruto405329@gmail.com"
] | haruto405329@gmail.com | |
7069d8dae75b1aa649b24c927694adb46dc57f3c | 732e1285934470ae04b20d64921a8cba20932875 | /neuedu_cnblogs_spider/pipelines.py | d19805a40bcea08c1a72fa65eb9c955cfba04a39 | [] | no_license | infant01han/neuedu_django_scrapy_es_cnblogs | 69ee11c7840b25b8ae6d37b21324389dfdacf371 | d293bae6ab5a7a360289afe35b7c3320dbce2dc8 | refs/heads/master | 2021-04-19T05:43:49.618157 | 2020-03-24T07:51:20 | 2020-03-24T07:51:20 | 249,584,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
class NeueduCnblogsSpiderPipeline(object):
def process_item(self, item, spider):
item.save_to_es()
retur... | [
"you@example.com"
] | you@example.com |
5649179f8c1bb20ed44f3c4504259fd0c3f51967 | 3c868540c8f5b0b9b46440e9b8e9160de9e8988f | /ch06/handle_with_condition.py | fe8d59c97207d94fc31608b8c1b50584d2ba69ac | [] | no_license | sarte3/python | cc8f41b8b22b0a980252d6546358dd212324e2cd | 15d984e5df03387950692092b6b5569adab845bb | refs/heads/master | 2023-01-18T18:37:40.720326 | 2020-11-17T08:43:27 | 2020-11-17T08:43:27 | 304,824,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | user_input_a = input('정수 입력 > ')
if user_input_a.isdigit():
number_input_a = int(user_input_a)
print('원의 반지름 : ', number_input_a)
print('원의 둘레 : ', 2 * 3.14 * number_input_a)
print('원의 넓이 : ', 3.14 * number_input_a * number_input_a)
else:
print('정수를 입력하지 않았습니다') | [
"sarte@outlook.kr"
] | sarte@outlook.kr |
250f31b763d02f2dba25473438a3e6fdcc71ebc9 | 55a9b1b294d5a402c63848f9f7386e3bf93645da | /docker/src/clawpack-5.3.1/pyclaw/src/petclaw/tests/test_io.py | 56c544ed1ff6d6cd39629552d19d32f8513d88d9 | [
"LicenseRef-scancode-public-domain",
"CC-BY-4.0",
"MIT",
"BSD-3-Clause"
] | permissive | geohackweek/visualization | b606cfade5d31f59cc38602df05930aed6e19b17 | 5d29fa5b69d69ee5c18ffaef2d902bd51f5807c8 | refs/heads/gh-pages | 2021-01-21T13:34:44.622039 | 2019-09-06T23:28:08 | 2019-09-06T23:28:08 | 68,648,198 | 11 | 13 | NOASSERTION | 2019-09-06T23:28:09 | 2016-09-19T21:27:33 | Jupyter Notebook | UTF-8 | Python | false | false | 509 | py | from clawpack import pyclaw
from clawpack import petclaw
import os
class PetClawIOTest(pyclaw.IOTest):
@property
def solution(self):
return petclaw.Solution()
@property
def file_formats(self):
return ['hdf5']
@property
def this_dir(self):
return os.path.dirname(os.path... | [
"arendta@uw.edu"
] | arendta@uw.edu |
b5719efc41c1787dbdbf3f5fd14e1e331769b2cf | 55a4d7ed3ad3bdf89e995eef2705719ecd989f25 | /main/law/spark_short/spark_short_limai_and_wenshu_origin/lawlist_to_lawid_2018-05-10_imp_other_etl_online.py | e9734a7e27e63e8f7b1081c614d979c3b4078dbe | [] | no_license | ichoukou/Bigdata | 31c1169ca742de5ab8c5671d88198338b79ab901 | 537d90ad24eff4742689eeaeabe48c6ffd9fae16 | refs/heads/master | 2020-04-17T04:58:15.532811 | 2018-12-11T08:56:42 | 2018-12-11T08:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,190 | py | # -*- coding: utf-8 -*-
from pyspark import SparkContext,SparkConf
from pyspark.sql import SQLContext
from pyspark.sql.types import *
import re
def p(x):
if x[1]:
print type(x)
print x
# print x[1]
# exit(0)
def filter_(x):
if x[1] and x[1] != '': #过滤掉数据库中,lawlist为Null或... | [
"985819225@qq.com"
] | 985819225@qq.com |
265a5e2c314e412b545f2390b981e49d3b9d7a25 | 09ae3f372d1000f118ad80874870ae420a4be66f | /scikit-learn-master/examples/compose/plot_digits_pipe.py | c5b0fb2a136094f0d16c180883cdcc3175896a9d | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | lqkweb/learnMLflow | 998f80c3828879b8d542125bc95c6345b8e9b29a | 13c5decaebba95b1b90f92021be35e343b4764af | refs/heads/master | 2022-10-18T06:17:23.584172 | 2019-01-18T09:51:38 | 2019-01-18T09:51:38 | 166,145,472 | 2 | 0 | Apache-2.0 | 2022-09-30T18:26:17 | 2019-01-17T02:22:29 | Python | UTF-8 | Python | false | false | 2,395 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
=========================================================
Pipelining: chaining a PCA and a logistic regression
=========================================================
The PCA does an unsupervised dimensionality reduction, while the logistic
regression does the predictio... | [
"leiqk@dxy.cn"
] | leiqk@dxy.cn |
4661f874d007a11754a46c3beedde6041690f9e9 | f6fafa5ade66f3168a4c8960389d6fb75539cf9b | /authmobile/views.py | c589d37ac540e48d45157b3ada270cf700ef5c9a | [] | no_license | tokibito/nullpobug-mobile-twitter-client | 7fc6593bd086017eaa7fad96f60efa43193ff526 | dbfb75a16d4020f471187bb1398e06ef42fc9862 | refs/heads/master | 2020-07-25T07:39:49.730289 | 2009-07-23T07:27:06 | 2009-07-23T07:27:06 | 208,217,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | # vim:fileencoding=utf8
from django.http import HttpResponseBadRequest, HttpResponseRedirect
from django.conf import settings
from django.views.generic.simple import direct_to_template
from django.contrib.auth import authenticate, login
from django.core.urlresolvers import reverse
from authmobile.models import MobileU... | [
"xxshss@yahoo.co.jp"
] | xxshss@yahoo.co.jp |
46a68cf8d816140c27a6905b438ef3b5390e2390 | 29ecf78ebd8fe26409db20f5a5ccbf40a0b7bf77 | /posts/tests/test_api_views.py | 10d12405755f41f59f77e32766cef9f8a3457530 | [] | no_license | pranavchandran/Django-Tests-unleashed | 56225d1cdd6cca58df4e0fffec33b3d36cabbad7 | dc76e6b87cea7842388cd90bbd5a45c563e4af3f | refs/heads/master | 2022-09-29T11:11:10.517822 | 2020-06-10T06:21:29 | 2020-06-10T06:21:29 | 271,107,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,879 | py | from rest_framework.test import APIRequestFactory,force_authenticate
from django.test import TestCase
from django.core.urlresolvers import reverse
from django.contrib.auth import get_user_model
from django.utils import timezone
from django.contrib.auth.models import AnonymousUser,User
from posts.models import Post
fro... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
aea3200a6cf1ceec2a12eac766f221b4f85cb99d | 03415e25427d9a17bada8fd75daadc45c093c377 | /LST_Collect.py | 7cf76c296c1d1f4a78e7ce9e9b0fd9243fd117e1 | [] | no_license | mwilensky768/MJW-HERA | 472d639bd4086a31be112564be9b2b22e70e3e86 | da1710a17123cc3ccd3e318e224712eb80bcb3bd | refs/heads/master | 2021-08-10T22:32:15.391270 | 2017-11-13T01:45:48 | 2017-11-13T01:45:48 | 108,204,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | import pyuvdata
import glob
import numpy as np
from math import pi
inpath = '/data6/HERA/data/2458042/zen.2458042.'
pathlist = glob.glob(inpath + '*.xx*.uv')
obslist = np.sort(np.array([int(path[path.find('zen.') + 12:path.find('.xx')])
for path in pathlist]))
pathlist_sort = [inpath + str(obs) + '.... | [
"mjw768@uw.edu"
] | mjw768@uw.edu |
c175141ce719e09b6cea9f37d217223ff7d6033a | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/H/hitkarsh/karnataka_2.py | 6c81472eb4a4013c05dd3d24a663158f61abd084 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,692 | py | import scraperwiki
import mechanize # added by Usha
import re # added by Usha
import lxml.html
url="http://censusindia.gov.in/Census_Data_2001/Village_Directory/List_of_Villages/List_of_Villages_Alphabetical.aspx?cki=&State_Code=29"
import string
#create list of upper case alphabets
l=list(string.ascii_uppercase)
#crea... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
a6c789b7be6e47e5a363cd0cc4b9e9d846ce4005 | b3b443f0bc49bbb10c26b51fe89e6860d4ca3d3a | /ctreport_selenium/ctreport_html/scripts/detailmodal.py | d3f7cf88a94f4e60fc79f4cc43686715a63414b6 | [
"MIT"
] | permissive | naveens33/ctreport-selenium | 6b3a1cc93a6741a1d493c2452c1cf56c6d85c052 | 9553b5c4b8deb52e46cf0fb3e1ea7092028cf090 | refs/heads/master | 2022-12-23T04:55:12.226339 | 2020-08-29T19:22:00 | 2020-08-29T19:22:00 | 228,779,087 | 2 | 2 | MIT | 2022-12-18T22:53:51 | 2019-12-18T07:03:39 | Python | UTF-8 | Python | false | false | 5,082 | py | def content(var):
c = '''
<script>
function createmodal(id) {
''' + var + '''
var content = '<table class="table table-bordered ">';
var footer = ''
if(Array.isArray(tests[id])){
content += '<tbody>\
<tr class="ta... | [
"naveensagayaselvaraj@gmail.com"
] | naveensagayaselvaraj@gmail.com |
607219c000f7f31a1333d2b772480f3aad169545 | fea6e9d6b20b0c5f2a05a6f2433aae4176b2a00a | /server/applibs/account/tasks/fetch_status.py | 1c80b02e381a041e1e063576ae4ca0441bcb6c7a | [] | no_license | fanshuai/kubrick | fddf6c21bcd500223d9a05bd002e47eb1ecf8839 | b7ed6588e13d2916a4162d56509d2794742a1eb1 | refs/heads/main | 2023-03-24T12:21:44.562850 | 2021-03-19T15:11:40 | 2021-03-19T15:11:40 | 349,445,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | """
验证码发送状态同步
"""
import logging
from kubrick.celery import app
from server.corelib.dealer import deal_time
from server.corelib.notice.async_tasks import send_dd_msg__task
from server.constant.djalias import CQueueAlias
logger = logging.getLogger('kubrick.celery')
@app.task(queue=CQueueAlias.Timed.value)
def fetch_... | [
"zfaner@gmail.com"
] | zfaner@gmail.com |
10db09bd205a4767ad04c2ad9a7ae71e296af40f | 296132d2c5d95440b3ce5f4401078a6d0f736f5a | /homeassistant/components/xiaomi_ble/sensor.py | 831b5d0910be035820e0172f6706c2b06edb2f0c | [
"Apache-2.0"
] | permissive | mezz64/home-assistant | 5349a242fbfa182159e784deec580d2800173a3b | 997d4fbe5308b01d14ceabcfe089c2bc511473dd | refs/heads/dev | 2023-03-16T22:31:52.499528 | 2022-12-08T02:55:25 | 2022-12-08T02:55:25 | 68,411,158 | 2 | 1 | Apache-2.0 | 2023-03-10T06:56:54 | 2016-09-16T20:04:27 | Python | UTF-8 | Python | false | false | 6,812 | py | """Support for xiaomi ble sensors."""
from __future__ import annotations
from typing import Optional, Union
from xiaomi_ble import DeviceClass, SensorUpdate, Units
from homeassistant import config_entries
from homeassistant.components.bluetooth.passive_update_processor import (
PassiveBluetoothDataProcessor,
... | [
"noreply@github.com"
] | mezz64.noreply@github.com |
27a49544c7c1b8f8f550a76bdb9f95675a635c6a | 3cedb583e9f3dfcdf16aeba56a0b3ff7c6213e99 | /python-codes/m3_curso_em_video_estruturas_compostas/ex101.0.py | b156f239ea79ed513ea7696f940a01732d28e535 | [
"MIT"
] | permissive | lucasportella/learning-python | 0f39ae2389db6d07b5b8c14ebe0c24f1e93c77c5 | a9449dffd489e7e1f1619e3acef86bc2c64f0f14 | refs/heads/master | 2022-12-26T15:04:12.806300 | 2020-10-14T23:17:47 | 2020-10-14T23:17:47 | 260,685,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | def voto(ano_nascimento):
from datetime import date
idade = date.today().year - ano_nascimento
if idade < 16:
return print(f"Com {idade} anos: VOTO NEGADO")
elif 16 <= idade < 18 or idade >= 70:
return print(f"Com {idade} anos: VOTO OPCIONAL")
elif idade >= 18 and idade < 70:
... | [
"lucasportellaagu@gmail.com"
] | lucasportellaagu@gmail.com |
bdaf49b8f1852494947d57dd9f3e385d7cb21ecb | 73c9211d5627594e0191510f0b4d70a907f5c4c5 | /pytest/lesson6/TestXlsxReportdemo.py | 2c2e3aef8262fceb1736ac41921a38a074af96c5 | [] | no_license | tigerxjtu/py3 | 35378f270363532fb30962da8674dbcee99eb5ff | 5d24cd074f51bd0f17f6cc4f5f1a6e7cf0d48779 | refs/heads/master | 2021-07-13T05:34:15.080119 | 2020-06-24T09:36:33 | 2020-06-24T09:36:33 | 159,121,100 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,744 | py | # -*- coding:utf-8 -*-
import xlsxwriter
import time
from pytest.lesson4.testrequest import *
from pytest.lesson4.testvote import *
from pytest.lesson4.testrequest import *
from pytest.testdata.getpath import GetTestDataPath
import xlrd
#把GetTestReport方法自己写出来
from pytest.testdata.getpath import GetTestReport
testu... | [
"liyin@16010.net"
] | liyin@16010.net |
15cb6d7afdc7fc7eaaeaf492f771909ea8cda285 | 833b43575815ce6c5fa8cbac2628cb774331eda7 | /chap14_p277_code1.py | ae943fb048c09744b8a7feb977edb8216aa7d722 | [] | no_license | ai-times/infinitybook_python | d9529dfe7d486bf5c713d52b530915a23cbf1812 | 1c011c31994d07fe959bba9b519c4365f5f40e7f | refs/heads/main | 2023-03-01T12:18:20.695888 | 2021-02-14T04:22:40 | 2021-02-14T04:22:40 | 338,578,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | code = input("주민번호 앞자리 입력 : ")
y = "19" + code[0:2]
m = code[2:4]
d = code[4:6]
age = 2019-int(y)+1
print("당신은", y, "년에 태어났군요.")
print("당신의 생일은", m, "월", d, "일 이군요.")
print("당신의 올해", age, "살 이군요")
| [
"wskim092@gmail.com"
] | wskim092@gmail.com |
af9738f6a4a38219406718a295ea78a732a3232d | a5205843ab0c6cff8f76f32436c580cfd523e9ad | /edit_sample_craps.py | cb01ef33a0829d35b2b1f5ee2d59d478e474790b | [] | no_license | LRBeaver/Random | 70194cde5d26b5e268d7c245056cedc8d0a6618d | 90ec0036a4efb383d6496a7724a108aa1b2f2ddf | refs/heads/master | 2020-12-24T18:42:37.716951 | 2016-04-14T12:52:56 | 2016-04-14T12:52:56 | 56,150,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | __author__ = 'lyndsay.beaver'
import random
def playRound():
print("The come-out phase: ")
print()
rollDice = input("Hit ENTER to roll the dice...")
diceTotal = random.randint(1,6) + random.randint(1,6)
if diceTotal in (7,11):
print("You rolled a", diceTotal)
print("You ... | [
"lrbeaver@gmail.com"
] | lrbeaver@gmail.com |
221f4c8150fddc906199d788e70ea2553500a8f7 | 2903ac66369b6bd45889b12629d8c8e34e6089b3 | /frappe_training/config/desktop.py | 60ea98f53064fec38a864b70c7e641453fb4dd78 | [
"MIT"
] | permissive | sivaranjanipalanivel/training | 6fa50b5f97fb00894404fba11122599fd796623c | b177c56a319c07dc3467ce3113e332ecee9b81fa | refs/heads/master | 2023-07-17T06:11:29.894363 | 2021-08-02T14:47:31 | 2021-08-02T14:47:31 | 391,987,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"module_name": "frappe_training",
"color": "grey",
"icon": "octicon octicon-file-directory",
"type": "module",
"label": _("frappe_training")
}
]
| [
"you@example.com"
] | you@example.com |
a69a5ede8bc3f3237d149df470385eda0dce6cb6 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /YLf984Eod74ha4Tok_9.py | 8d3ff278a5843fa0485c8620003772aaf0edbc8e | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | """
In a calendar year, it is exactly 365.25 days. But, eventually, this will lead
to confusion because humans normally count by exact divisibility of 1 and not
with decimal points. So, to avoid the latter, it was decided to add up all
0.25 days every four-year cycle, make that year to sum up to 366 days
(including ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
85863f93c57442e96186df3112f03e59a994bebf | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/InnerDetector/InDetExample/InDetSLHC_Example/share/jobOptions_SLHC_nn_prodTrainingSample.py | f8455debc388b3c7208aa0f0ff0ccf73d99c6714 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,056 | py | ###############################################################################
# jobOptions_SLHC_nn_prodTrainingSample.py
#
# script that reads a series of simulated HIT files, runs digitization and
# clusterization and produces the Ntuples needed to train the cluster splitting
# neuronal network.
# The ntuples produc... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
d49a088bb0cfd1df5be0927b59cd9782ace85d05 | d0e83b3f551c6af16aa0c8ed4ff074b3ec268120 | /processors/feat.py | e48cc144ee2ba12b7865cdbb61a44eb472849820 | [] | no_license | SamuelLAN/kaggle_SCTP | cfb0228a81d71b2f1c315352bd6435042066967f | 50ff2895baa6de29bdb19bfb20ca76718079d188 | refs/heads/master | 2020-04-25T16:22:07.803524 | 2019-04-03T09:06:12 | 2019-04-03T09:06:12 | 172,909,260 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | #!/usr/bin/Python
# -*- coding: utf-8 -*-
import numpy as np
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA
def lda(train_x, train_y, val_x, test_x):
''' LDA reduce the dimensions of the features '''
_lda = LDA()
train_x = _lda.fit_transform(train_x, train_y)
val_x = _lda.... | [
"412206186@qq.com"
] | 412206186@qq.com |
7e9dcb08a5d09de543ba08b0a18e43862bec4e80 | 8537ecfe2a23cfee7c9f86e2318501f745078d67 | /Practise_stuff/nympy_commands/oo_numpy_array_manipulation2.py | 2fd9ce51e253406e6f5724fd2fcd8efc7014909a | [] | no_license | oolsson/oo_eclipse | 91d33501d9ed6c6b3c51bb22b635eb75da88e4e1 | 1828866bc4e1f67b279c5a037e4a6a4439ddb090 | refs/heads/master | 2021-01-01T20:17:12.644890 | 2015-11-30T09:49:41 | 2015-11-30T09:49:41 | 23,485,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | '''
Created on Jan 22, 2012
@author: oo
'''
import numpy
np=numpy
A=[1,2,3]
B=[4,5,6]
A=np.array(A)
B=np.array(B)
c=np.concatenate((A,B))
print c
print '2------------'
c=np.column_stack((A,B))
print c
print '3------------'
c=np.hstack((A,B))
print c
c=np.vstack((A,B))
print c
print '4-----------... | [
"o.h.olsson@gmail.com"
] | o.h.olsson@gmail.com |
e3c3e76cd3f6345219ed73d91c75b8ea32a227b5 | eab1756b01717e81537133400f36aea4d7a0876f | /dawn/launch-tong.py | cc90b2066a548a7ed4ba16879b0631e9ccd5a8e5 | [] | no_license | bearpelican/cluster | d677fe392ac1196b77e3f8fb79e530ec8371080f | 2e316cf1def0b72b47f79a864ed3aa778c297b95 | refs/heads/master | 2020-03-21T06:52:57.514901 | 2018-08-10T10:20:26 | 2018-08-10T22:33:05 | 138,246,892 | 3 | 1 | null | 2018-06-22T02:51:07 | 2018-06-22T02:51:07 | null | UTF-8 | Python | false | false | 2,593 | py | #!/usr/bin/env python
# numpy01 image, see environment-numpy.org for construction
# (DL AMI v 3.0 based)
#
# us-east-1 AMIs
# numpy00: ami-f9d6dc83
# numpy01: ami-5b524f21
from collections import OrderedDict
import argparse
import os
import sys
import time
import boto3
module_path=os.path.dirname(os.path.abspath(__f... | [
"yaroslavvb@gmail.com"
] | yaroslavvb@gmail.com |
d6ec1defab5ed57216ed8a7c1927d4b569d4f5e7 | f8af2d190600221b7a597ef4de8ee15137e01266 | /django_mysite/polls/serializers.py | eef85178a606057b3aaaf04ed47a05c101d57c8e | [] | no_license | rifqirosyidi/REST-Framework-Searching | 3b4d64ca1d2217a48f1ec1c6591e1b7e1a42797d | 25481026728edfd564bb6ba18c8ce73040e07543 | refs/heads/master | 2023-04-26T02:11:43.684540 | 2021-04-12T09:43:09 | 2021-04-12T09:43:09 | 206,774,068 | 1 | 0 | null | 2023-04-21T20:36:46 | 2019-09-06T10:49:42 | Python | UTF-8 | Python | false | false | 202 | py | from rest_framework import serializers
from .models import Question, Choice
class QuestionSerializer(serializers.ModelSerializer):
class Meta:
model = Question
fields = '__all__'
| [
"rief.rosyidi@gmail.com"
] | rief.rosyidi@gmail.com |
8d308bb5fcc1a686835c15b6f0c7d4dabfde7c44 | f9b7930e6f43eca26abf87b39961fc2d022db54a | /Python/medium/338. Counting Bits.py | 01ee506d021c0422aa75949e9d17355471bf95da | [] | no_license | LRenascence/LeetCode | 639452dd3bf65a14d0056c01e203a7082fbdc326 | 1a0e1d1503e0a7bff6917491a964a08c572827fb | refs/heads/master | 2021-05-12T03:41:35.346377 | 2021-01-07T23:39:14 | 2021-01-07T23:39:14 | 117,622,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | """
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return them as an array.
Example 1:
Input: 2
Output: [0,1,1]
Example 2:
Input: 5
Output: [0,1,1,2,1,2]
Follow up:
It is very easy to come up with a solution with r... | [
"im.renascence@gmail.com"
] | im.renascence@gmail.com |
3ef43777b05972b64a9d10046115d44bce3e8128 | 0c672b0b8431064617831d16bf0982d5d3ce6c27 | /utils/proxy_api.py | bf5056d222433e6c27a71950ba9f9d043be6d898 | [] | no_license | buxuele/amazon_books | 617327376044ffd4e760fdc1a71962119717cfe8 | 691bd3e48bd1730dbc4a4a855e84e0b1c3e9c2ec | refs/heads/master | 2023-03-09T23:18:14.730828 | 2021-03-01T10:53:47 | 2021-03-01T10:53:47 | 342,610,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,017 | py | import time
import requests
from utils.my_timer import timer
from utils.get_user_agent import get_a_ua
from utils.mongoDB import Mongo
import config # 根目录 数据库名称。
from pprint import pprint
from concurrent.futures import ThreadPoolExecutor, wait, ALL_COMPLETED
class SmallProxy:
def __i... | [
"baogexuxuele@163.com"
] | baogexuxuele@163.com |
34322ab0be08ec02c0cf670b8835ce5086251b9a | add5ca4ed6f5a5030cfcd60a09e502390ffc4936 | /full_code/paddle/conf/img_qa_gate2_gen.py | dd3f38a36d621d037da12a1a132552fe9d2eb6ae | [] | no_license | yangyi02/vision_language | 1f0b10e648a1ef0ea88edd30e41581d25969df27 | 9c55e5115d03bab58cf6165f63c9a6f426ed87ce | refs/heads/master | 2020-04-02T19:45:25.051432 | 2018-10-25T22:32:39 | 2018-10-25T22:32:39 | 154,745,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,331 | py | # -*- coding: utf-8 -*-
from math import sqrt
import os
import sys
from trainer.recurrent_units import LstmRecurrentUnit
model_type('recurrent_nn')
# data setting
gen_list = get_config_arg('gen_list', str, './gen.list')
result_file = get_config_arg('result_file', str, './result.txt')
# dictionary setting
dict_file ... | [
"yangyi02@gmail.com"
] | yangyi02@gmail.com |
eecde9e85f8bbc1b9eda6d9cab643cadd93edcab | d970e32d23e84fe0f6b5ba1694e2958d52fce586 | /sample_scripts/sample_tokenization.py | f165ed859675d95ce1ca9d1aa24545228ddd3e2f | [
"MIT"
] | permissive | Kensuke-Mitsuzawa/sample-codes-supporters-tutorial | 8e6f1ed794732fa87176333286e65898e321f60f | ae9b544ddd3a782e76a30af257b43f88341ba696 | refs/heads/master | 2023-05-31T22:15:03.313349 | 2018-02-27T02:07:00 | 2018-02-27T02:07:00 | 79,502,186 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,661 | py | from JapaneseTokenizer import MecabWrapper
from typing import List, Tuple, Dict, Union, Any
import json
import logging
import collections
import itertools
logger = logging.getLogger()
logger.setLevel(10)
SLEEP_TIME = 2
"""形態素分割のサンプルコードを示します
Python3.5.1の環境下で動作を確認しています。
"""
__author__ = "Kensuke Mitsuzawa"
__author_em... | [
"kensuke.mit@gmail.com"
] | kensuke.mit@gmail.com |
691a09c696e5d06361215ef05998a05a23437589 | 6d1380a38aeb89df5db2f742ca0665f877a01133 | /extract.py | 294ccc36295e2534490615af52969899c62233dc | [] | no_license | marijnkoolen/constitution-reference-parser | 937ddbfdb56a1cba78093c7568e311ca6790f4f4 | 4083461abb4dd4cc8639625f9305b580eb69ec04 | refs/heads/master | 2021-01-02T09:27:17.951140 | 2015-09-29T12:47:49 | 2015-09-29T12:47:49 | 40,536,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,420 | py | import re
import patterns
from document import ReferenceList, Reference
def extract_refs(document, sentence):
sentenceDone = 0
# returns a dictionary of document specific patterns
pattern = patterns.makeRefPatterns(document.RefUnits())
refList = ReferenceList(sentence, pattern)
while not sentenceDone:
# Start... | [
"marijn.koolen@gmail.com"
] | marijn.koolen@gmail.com |
fd7cdd39e9a8db86129719f700f436d19b4bc19f | 1b36425f798f484eda964b10a5ad72b37b4da916 | /posthog/models/event/event.py | 2e6d0625403431f36a01778187c27ed6f634ddce | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dorucioclea/posthog | 0408baa2a7ae98e5bea352c516f741ddc17c0a3e | 8848981baf237117fb22d28af0770a0165881423 | refs/heads/master | 2023-01-23T11:01:57.942146 | 2023-01-13T09:03:00 | 2023-01-13T09:03:00 | 241,222,000 | 0 | 0 | MIT | 2020-02-17T22:34:37 | 2020-02-17T22:34:36 | null | UTF-8 | Python | false | false | 5,830 | py | import copy
import datetime
import re
from collections import defaultdict
from typing import Dict, List, Optional, Union
from dateutil.relativedelta import relativedelta
from django.db import models
from django.utils import timezone
from posthog.models.team import Team
SELECTOR_ATTRIBUTE_REGEX = r"([a-zA-Z]*)\[(.*)=... | [
"noreply@github.com"
] | dorucioclea.noreply@github.com |
110496e18fa67c64c20bfd271e9accc1b77ca647 | 615e9d142587c965d4f593ce68cae1811824026d | /19-functions/javoblar-19-07.py | 3078014c425e95b4785cee83aa845fd53d1e7442 | [] | no_license | XurshidbekDavronov/python-darslar | 0100bb8ea61c355949e81d1d3f3b923befeb80c9 | 4fcf9a3e0c2facdedaed9b53ef806cdc0095fd9d | refs/heads/main | 2023-06-21T03:33:19.509225 | 2021-07-13T13:04:56 | 2021-07-13T13:04:56 | 377,176,205 | 1 | 0 | null | 2021-06-15T13:40:33 | 2021-06-15T13:40:32 | null | UTF-8 | Python | false | false | 510 | py | """
16/12/2020
Dasturlash asoslari
#19-dars: FUNCTIONS (FUNKSIYALAR)
Muallif: Anvar Narzullaev
Web sahifa: https://python.sariq.dev
"""
# Foydalanuvchidan son qabul qilib, sonni 2, 3, 4 va 5 ga qoldiqsiz bo'linishini tekshiruvchi
# funksiya yozing.
# Natijalarni konsolga chiqaring ("15 soni 3 ga qoldiqsiz bo'lin... | [
"anvarbek@gmail.com"
] | anvarbek@gmail.com |
804861121ec5dd38d2d654fa3b12e263b371c486 | fa346a2d5886420e22707a7be03599e634b230a9 | /temboo/Library/Amazon/IAM/__init__.py | 59787a0664534645fc9a01dd8d74b838ef9e46c0 | [] | no_license | elihuvillaraus/entity-resolution | cebf937499ed270c3436b1dd25ab4aef687adc11 | 71dd49118a6e11b236861289dcf36436d31f06bc | refs/heads/master | 2021-12-02T17:29:11.864065 | 2014-01-08T04:29:30 | 2014-01-08T04:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,056 | py | from ChangePassword import *
from UpdateGroup import *
from CreateAccessKey import *
from ListRolePolicies import *
from UpdateLoginProfile import *
from GetUserPolicy import *
from UpdateServerCertificate import *
from DeleteServerCertificate import *
from DeactivateMFADevice import *
from UpdateAccountPasswordPolicy ... | [
"cedric.warny@gmail.com"
] | cedric.warny@gmail.com |
22254545f9a1cc0c5bd2eb4c3f056ed34bc7a22d | bcddca991afe606180dbb5ce6c033d8fb611154c | /docs/idf_extensions/include_build_file.py | b11a2128667b50bd2c713b8038e7b3dbc90675fd | [
"Apache-2.0"
] | permissive | EmbeddedSystemClass/esp-idf | 8ac5a312be41936b1e2dc5c68b7b68c9b4c1e488 | 92db6a3dabc1106b72865b8bd91d9bdd54fbdf6c | refs/heads/master | 2022-12-31T19:57:49.052365 | 2020-10-22T19:19:01 | 2020-10-22T19:19:01 | 259,859,439 | 0 | 0 | Apache-2.0 | 2020-04-29T07:47:48 | 2020-04-29T07:47:47 | null | UTF-8 | Python | false | false | 764 | py | import os.path
from docutils.parsers.rst import directives
from docutils.parsers.rst.directives.misc import Include as BaseInclude
from sphinx.util.docutils import SphinxDirective
class IncludeBuildFile(BaseInclude, SphinxDirective):
"""
Like the standard "Include" directive, but relative to the app
... | [
"koson.trachu@gmail.com"
] | koson.trachu@gmail.com |
7df9dcc7b35ce702c5fdf33e237c3bb866b1708a | afbaa5685bf737ec7d16fee2bab54ae13caf96f9 | /geekbang/core/ch17/Demo1.py | 98dd62e83056057241e556d48e785f0e1f247874 | [] | no_license | ykdsg/myPython | 9dcc9afe6f595e51b72257875d66ada1ba04bba6 | 77d2eaa2acb172664b632cc2720cef62dff8f235 | refs/heads/master | 2023-06-10T20:11:08.061075 | 2023-06-03T11:39:53 | 2023-06-03T11:39:53 | 10,655,956 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | def func(message):
print('got a message:{}'.format(message))
# 函数赋予变量
send_message = func
send_message('hello world')
def get_message(message):
return 'got a message:' + message
def root_call(func, message):
print(func(message))
| [
"17173as@163.com"
] | 17173as@163.com |
f205af874bfd19c543b990383520db2dc51ce796 | 297c30dc0120c2920c86c8257bc530db1bb1114a | /Application/Application_Pandas/panda_DataFrame_Test_1.py | e7ad323507d330adb254dc3f79e9571b82741412 | [] | no_license | whoiszyc/Repo_python | 76e248b350a3f109c53bfb1f3abe59b903a98e46 | bdc3f39883aed5b2e85624525c662c00f60d35e3 | refs/heads/master | 2021-07-06T04:48:04.973680 | 2020-07-27T03:55:58 | 2020-07-27T03:55:58 | 139,599,645 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | import numpy as np
import pandas as pd
# use string as key
mydict0 = [{'a': 10, 'b': 20, 'c': 30, 'd': 40},{'a': 100, 'b': 200, 'c': 300, 'd': 400},{'a': 1000, 'b': 2000, 'c': 3000, 'd': 4000 }]
# use int number as key
mydict1 = [{0: 10, 1: 20, 2: 30, 3: 40},{0: 100, 1: 200, 2: 300, 3: 400},{0: 1000, 1: 2000, 2: 3000... | [
"31248391+whoiszyc@users.noreply.github.com"
] | 31248391+whoiszyc@users.noreply.github.com |
476e8f2d422cf9b9348b2be998dbf5b010ef7f87 | 620b58e17d4851e43bd1270cabc8c26f43629a7b | /lib/candy_editor/AssetEditor/EngineAsset/ShaderAsset.py | fd3756f724e956b29e72c34bc709b54269fc049f | [
"MIT"
] | permissive | lihaochen910/Candy | 78b9862cf06748b365b6fb35ac23f0e7a00ab558 | d12cb964768459c22f30c22531d3e1734901e814 | refs/heads/master | 2022-11-25T19:12:34.533828 | 2021-11-07T16:11:07 | 2021-11-07T16:11:07 | 141,284,960 | 1 | 1 | NOASSERTION | 2022-11-22T09:20:08 | 2018-07-17T12:12:02 | Lua | UTF-8 | Python | false | false | 2,551 | py | import os.path
import logging
import subprocess
import shutil
import json
from candy_editor.core import *
from candy_editor.moai.MOAIRuntime import _CANDY
##----------------------------------------------------------------##
class ShaderAssetManager ( AssetManager ):
def getName ( self ):
return 'asset_manager.shad... | [
"lihaochen910@hotmail.com"
] | lihaochen910@hotmail.com |
9840040315f9fdf4d3c22de338e2ace8d80de7a0 | fad702beb35d587278010e570a923bc84a4dda4a | /code/pyorg/scripts/tests/uni_2nd_speedup.py | 13519cc3f8dc80adcdd125cde94a260a0bee67ba | [
"Apache-2.0"
] | permissive | anmartinezs/pyseg_system | f7769ec3dcaf243895ec1cf13ac6e1da1ab2a92a | 1370bfedae2ad5e6cdd1dc08395eb9e95b4a8596 | refs/heads/master | 2023-02-23T06:23:10.087737 | 2023-01-30T13:24:36 | 2023-01-30T13:24:36 | 227,147,753 | 15 | 4 | NOASSERTION | 2023-02-10T17:18:20 | 2019-12-10T14:58:22 | C | UTF-8 | Python | false | false | 7,837 | py | """
Measures the speed-up for computing univarite 2nd oder models and simulate CSRV instances
"""
################# Package import
import os
import sys
import math
import time
import numpy as np
import multiprocessing as mp
from scipy.optimize import curve_fit
from pyorg.surf.model import ModelCSRV, gen_tlist
fr... | [
"an.martinez.s.sw@gmail.com"
] | an.martinez.s.sw@gmail.com |
7a28f24d0a6faf49ea00304d8ca51cfb2d5b84ef | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /6_tree/经典题/后序dfs统计信息/换根dp/hard/abc-233-G - Vertex Deletion-每个点是否在树的最大匹配中.py | 284d716c8e41ab42dbe6165859649c030080a298 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | # abc-233-G - Vertex Deletion-每个点是否在树的最大匹配中
# https://atcoder.jp/contests/abc223/tasks/abc223_g
# 给定一棵树
# 对每个结点i为根,删除根连接的所有边后,
# !使得剩下的树的最大匹配和原树最大匹配相等
# 求这样的根的个数
# !解:即不参与二分图的最大匹配
# https://yukicoder.me/problems/2085
# 二分图博弈
# Alice和Bob在树上博弈
# 先手放一个棋子,后手在相邻的结点放一个棋子
# 交替放棋子,直到不能放棋子的时候,输
# !问先手是否必胜 => 如果起点不... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.