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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5c3b9b9d184bf171b3f8a97e9394d0e6b5b0b26f | 0c3f7a1ce6707a3131d3aa5757b51a948e38ceff | /tina/core/material.py | b423fce2869cf12cf611c4b26872ee40ece634b0 | [
"MIT"
] | permissive | 199ChenNuo/taichi_three | ea2863447beaf749eb3066cd59cac5a0e16c6e3d | 540a97781b58adaf462efb5df16f66d6f3a21065 | refs/heads/master | 2023-02-07T19:06:32.867578 | 2020-12-22T02:15:06 | 2020-12-22T02:15:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,179 | py | from ..common import *
from ..advans import *
@ti.data_oriented
class Node:
arguments = []
defaults = []
def __init__(self, **kwargs):
for dfl, key in zip(self.defaults, self.arguments):
value = kwargs.get(key, None)
if value is None:
if dfl is None:
... | [
"1931127624@qq.com"
] | 1931127624@qq.com |
f51781cc2f2e982d454fb81e5c4db3e6af7bea89 | 427121290bfca2bd080237a2072445397610efb4 | /Analysis/financial/FinancialModel.py | 9d6e4d6be2280ecdb9f7fc7c8f891ad1ec46b741 | [] | no_license | tuulahdus/stockAnalysis | 3ab7b13b9aea9e137ba1c9d0bd0599f79b26fa63 | acad5b5dcb38e1b3e5853f9562789b505f1d7f4b | refs/heads/master | 2021-01-10T22:36:26.355980 | 2016-03-24T01:34:19 | 2016-03-24T01:34:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,282 | py | ID = "id"
DATE = "date"
# BALANCE SHEET FIELDS
CASH_BALANCE = "cash_balance"
SHORT_TERM_INVESTMENTS = "short_term_investments"
ACCOUNTS_RECEIVABLE = "accounts_receivable"
INVENTORY = "inventory"
CURRENT_ASSETS = "current_assets"
PROPERTY_PLANT_EQUIPMENT = "property_plant_equipment"
ACCUMULATED_DEPRECIATION = "accumula... | [
"ecstaticjack@gmail.com"
] | ecstaticjack@gmail.com |
8379ca2b9c728c40ba1bcd31c29ef3c385f16cf1 | aa9297175621fcd499cad5a0373aaad15f33cde8 | /30-days/day_4.py | ac1dcdc08c27de5b860cfbdb6f7cb6283b8961af | [] | no_license | eflipe/python-exercises | a64e88affe8f9deb34e8aa29a23a68c25e7ba08a | b7a429f57a5e4c5dda7c77db5721ca66a401d0a3 | refs/heads/master | 2023-04-26T19:19:28.674350 | 2022-07-19T20:53:09 | 2022-07-19T20:53:09 | 192,589,885 | 0 | 0 | null | 2023-04-21T21:23:14 | 2019-06-18T18:06:14 | HTML | UTF-8 | Python | false | false | 614 | py | my_list = [12, 45, 'pepe', 'miguel', 6]
numbers = []
for num in "10":
print(num)
for num in range(5):
print(num)
user_1 = {
"username": "pepe valor",
"id": 22,
}
user_2 = {
"username": "fulano sinvalor",
"id": 33,
"email": "email@email.com",
}
mis_users = [user_1, user_2]
for user in m... | [
"felipecabaleiro@gmail.com"
] | felipecabaleiro@gmail.com |
069058a9208c3b7be4c1c8393b19d19904bd6982 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Scripts/pyinstaller/tests/functional/scripts/pyi_future.py | d29e6f94065446b9a3816fb18d056a296ad6f581 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:8153b33ae2d4f491adc24aff3ec98cb6ab8479ccc77ce04d7816de8e9699f1ff
size 886
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
472bbff2940dc7570f7b844864f0c0573595d3f6 | 89362bd60333e20a7cfc322751faaea1bb49ae78 | /veeker/testsuite/olsm/test_enterprise_honor.py | 35c64fab913dbbf358282d578422c59e47b007af | [] | no_license | sunyanhui/autotest | 85548bfdd24c4e19466f25ab94318d7e8e52b8b0 | b8acaceddae3491066b1d864ab734a213e8aa1d1 | refs/heads/master | 2016-09-05T09:16:20.776636 | 2015-03-13T07:01:46 | 2015-03-13T07:01:46 | 23,528,191 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | #!/usr/bin/python2.7
# -*- coding: utf-8 -*-
from common import config
from testdata.olsm.data_enterprise_honor import *
from action.action_login import Login
from action.enterprise.action_enterprise_honor import EnterpriseHonor
import unittest
import time
class TestEnterpriseHonor(unittest.TestCase):
u'''
测试超... | [
"hgbac@qq.com"
] | hgbac@qq.com |
a6071f0180a53c312bccbd84c6c8ea9c1a481fa9 | 1ae298628d32b74713586351e98d67ed81d38e75 | /BLOGAPP/migrations/0004_auto_20200111_1121.py | f914d82e92ef87bb3a9ff744dcb5e8a60cc123bb | [] | no_license | nixis-institute/newproject | e0a501e59a50e4314eb976fa85ab14ca0c405690 | 79652e0a4274e12411809f9af302c414fb766f79 | refs/heads/master | 2020-12-15T08:35:33.440814 | 2020-01-31T07:08:30 | 2020-01-31T07:08:30 | 235,048,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | # Generated by Django 2.2 on 2020-01-11 05:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('BLOGAPP', '0003_auto_20200110_1315'),
]
operations = [
migrations.CreateModel(
name='LoginPage',
fields=[
... | [
"rkrjob55@gmail.com"
] | rkrjob55@gmail.com |
0a26f99a90d2c6da33365cb76c70d81742116925 | bd40b576e3c1527826f09286ef6fd186d807c5e5 | /Model/lookalike-model/lookalike_model/pipeline/main_logs.py | b2eeb534db33310c4aede6d06824b3b92fd65165 | [
"Apache-2.0"
] | permissive | jimmylao/blue-marlin | 7b48406a7b5486a97e51b30915e16be836f75eb2 | 0569bf19503286a9ba091e7f07bbbe1b204ae730 | refs/heads/master | 2021-12-03T09:24:41.536640 | 2021-07-21T00:59:06 | 2021-07-21T00:59:06 | 241,382,610 | 1 | 0 | Apache-2.0 | 2020-02-18T14:29:44 | 2020-02-18T14:29:43 | null | UTF-8 | Python | false | false | 6,436 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | [
"reza_adib@yahoo.com"
] | reza_adib@yahoo.com |
bc176d5a03c296ff109304f4035f5b42186087b4 | 238e46a903cf7fac4f83fa8681094bf3c417d22d | /VTK/vtk_7.1.1_x64_Release/lib/python2.7/site-packages/zope/interface/_compat.py | c9c06c8ce3a54a37b004532873f9b5f5fb934712 | [
"BSD-3-Clause"
] | permissive | baojunli/FastCAE | da1277f90e584084d461590a3699b941d8c4030b | a3f99f6402da564df87fcef30674ce5f44379962 | refs/heads/master | 2023-02-25T20:25:31.815729 | 2021-02-01T03:17:33 | 2021-02-01T03:17:33 | 268,390,180 | 1 | 0 | BSD-3-Clause | 2020-06-01T00:39:31 | 2020-06-01T00:39:31 | null | UTF-8 | Python | false | false | 1,930 | py | ##############################################################################
#
# Copyright (c) 2006 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# T... | [
"l”ibaojunqd@foxmail.com“"
] | l”ibaojunqd@foxmail.com“ |
8f8c4751d94b3f0f1e5d3ac7abd742a5d78a0a56 | c71e5115b895065d2abe4120799ffc28fa729086 | /procon-archive/atcoder.jp/abc082/abc082_b/Main.py | 7b31b8083add9725cd8e5eaeee0d412d5ebec242 | [] | no_license | ken0105/competitive-programming | eb82f92a7b7ad0db601ea341c1441de6c6165064 | f918f85a0ea6dfbe9cac3ef835f80503bb16a75d | refs/heads/master | 2023-06-05T09:55:25.264731 | 2021-06-29T14:38:20 | 2021-06-29T14:38:20 | 328,328,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | if __name__ == '__main__':
s = list(input())
t = list(input())
s.sort()
t.sort(reverse=True)
if s < t:
print("Yes")
else:
print("No")
| [
"iwata.kenaaa@gmail.com"
] | iwata.kenaaa@gmail.com |
cd92b849b8c08ff4983fee4263d7f8fc1f859bc5 | 34da8d6387776915be08b91b75369ed3a8628c12 | /alembic/versions/c5bc52d73cec_add_project_table.py | 196d49c9915f68b44a6c6436fac358b8e583f2c8 | [] | no_license | showerbugs/how-was-your-day | 87db05040397d7716ff44efbc03cd750d9a2f7bb | d670e12dec0fd45b94958e2452c532b3bfcada64 | refs/heads/develop | 2021-01-12T14:27:46.852393 | 2017-12-14T04:10:48 | 2017-12-14T04:10:48 | 71,994,381 | 2 | 1 | null | 2017-04-07T11:38:29 | 2016-10-26T10:56:08 | Python | UTF-8 | Python | false | false | 683 | py | """Add project table
Revision ID: c5bc52d73cec
Revises: 917f9e1719dd
Create Date: 2016-11-20 22:10:53.183220
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c5bc52d73cec'
down_revision = '917f9e1719dd'
branch_labels = None
depends_on = None
def upgrade():
... | [
"amazingguni@gmail.com"
] | amazingguni@gmail.com |
20025ee74b45b02a27672f4fe9623f0aea0c797f | 399481e7a513dcb48acef5c838622f0cdb489a13 | /basic/load_opencv.py | b8195aa4f2245ef739e88a2c12c84a9f7d84c7a7 | [] | no_license | jamescfli/OpenCV_test | 37df3212d9f8c6e439365202e01be86d1b465727 | c0cf4b7ad974f4d9eb3591786d76dcb7a5235256 | refs/heads/master | 2021-01-09T06:03:56.761120 | 2017-02-09T03:29:34 | 2017-02-09T03:29:34 | 80,903,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | import cv2
cv2.startWindowThread()
img = cv2.imread('images/eagle.jpg')
print img.__class__
cv2.namedWindow('opencv')
cv2.imshow('opencv', img)
cv2.waitKey(0)
cv2.destroyAllWindows() | [
"jamescfli@yahoo.com"
] | jamescfli@yahoo.com |
3cb2bd5b92f0495660f9648c0d975b45fbfcb276 | 46ac0965941d06fde419a6f216db2a653a245dbd | /sdks/python/appcenter_sdk/models/ResendVerificationRequest.py | 9b59c0a5ec4c2112dd84a972f7b0aeb770221fde | [
"MIT",
"Unlicense"
] | permissive | b3nab/appcenter-sdks | 11f0bab00d020abb30ee951f7656a3d7ed783eac | bcc19c998b5f648a147f0d6a593dd0324e2ab1ea | refs/heads/master | 2022-01-27T15:06:07.202852 | 2019-05-19T00:12:43 | 2019-05-19T00:12:43 | 187,386,747 | 0 | 3 | MIT | 2022-01-22T07:57:59 | 2019-05-18T17:29:21 | Python | UTF-8 | Python | false | false | 3,205 | py | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
import pprint
import re # noqa: F401
import six
class ResendVerifica... | [
"b3nab@users.noreply.github.com"
] | b3nab@users.noreply.github.com |
ec6f5956054f4c073f756eab843a3ea603366e53 | a8637de7c6e38c95cd19b46b45b3e00c42ae8140 | /resources/views.py | 7e8c2e3eda88ec0e673b92c0ff7e09a21e09adc0 | [] | no_license | nishant57/edc | 9c0d3d363882c44bc08dc4da47024e5e83731077 | 5ab9f6dc5d474b5071c7f027cd287c32a9d43501 | refs/heads/master | 2021-01-12T19:31:49.655509 | 2013-02-17T10:00:36 | 2013-02-17T10:00:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,415 | py | # Create your views here.
# Create your views here.
from django.shortcuts import render_to_response, get_object_or_404
from django.http import HttpResponse, HttpResponseRedirect
from django.template import RequestContext
from constants import *
from datetime import datetime
from resources.models import Mentor, MentorMa... | [
"axitkhurana@gmail.com"
] | axitkhurana@gmail.com |
b0bfbb640eaf2a98114e9cdb585ed182136ae11b | b415735ca475bdfdaf60f48b7b2a8244b8027782 | /dbs/models/Event.py | cbfbf51eaf7407eee45c1ebe817adfa39501243f | [] | no_license | sdgdsffdsfff/icspot_web | 4ac27451d25ab0dd4afec92d11d38c56004967ef | 5b15e96fb86ec76ae3b260756b5a60030e7a1f73 | refs/heads/master | 2020-06-17T11:13:32.965680 | 2019-04-15T18:36:38 | 2019-04-15T18:36:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,486 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Author: pirogue
Purpose: 蜜罐日志表
Site: http://pirogue.org
Created: 2018-02-01 15:07:05
"""
from sqlalchemy import Column, String, Integer, Unicode, TIMESTAMP, Boolean
from sqlalchemy.orm import relationship, backref
import sys
sys.path.append("..")
from dbs.initd... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
d58b0808ba66983ec4474ef8c4b90460d71ebd56 | cccf8da8d41ae2c14f5f4313c1edcf03a27956bb | /python/python2latex/writeLTXraggedbottom.py | b9d926aa123f293c0befba25bd69957fda9e9b91 | [] | no_license | LucaDiStasio/transpilers | e8f8ac4d99be3b42a050148ca8fbc5d025b83290 | c55d4f5240083ffd512f76cd1d39cff1016909b8 | refs/heads/master | 2021-01-12T01:57:00.540331 | 2017-11-01T13:59:55 | 2017-11-01T13:59:55 | 78,448,378 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,321 | py | # Autogenerated with SMOP
from smop.core import *
#
@function
def writeLTXraggedbottom(filepath=None,args=None,options=None,*args,**kwargs):
varargin = writeLTXraggedbottom.varargin
nargin = writeLTXraggedbottom.nargin
##
#============================================================================... | [
"luca.distasio@gmail.com"
] | luca.distasio@gmail.com |
6960b32764a0a9f5537db121481b485b0331048a | 6c899087d43bdaff42cddfc889b76171316b3f40 | /scale_mesh.py | 9bb4459c36a9640883a058eb311207f35bcc8c55 | [
"CC0-1.0"
] | permissive | wearebeautiful/wearebeautiful-tools | d31778130374602b624b7b0dbd5119e04ad23dcf | ba93138f94079b89d7f9d89328509e201837bd07 | refs/heads/master | 2021-10-09T07:36:45.692631 | 2021-09-28T20:38:34 | 2021-09-28T20:38:34 | 177,959,609 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | #!/usr/bin/env python3
from wearebeautiful.scale import scale_mesh
import click
@click.command()
@click.option('--cleanup', default=False, help='Clean the mesh before scaling')
@click.option('--invert/--no-invert', default=False, help='Flip the normals on the STL file')
@click.argument("len", nargs=1, type=float)
@cl... | [
"rob@musicbrainz.org"
] | rob@musicbrainz.org |
46ebdf637cfb9522b66b4453ab78505b2eeed515 | 8623205b0d2c6c53cd8ccaf00f6c2060153d8d45 | /download_libs.py | 7e11a20eff5a9c32fe1bcb8d88662ced42bfcfa8 | [] | no_license | rogalski/mgr | 6796277a7aafa93e96318fc4f5f97fb36fd5feb1 | fee22e8d90d458f99e23d80d14d5ca4e7fb91f2a | refs/heads/master | 2021-01-19T21:58:08.736272 | 2016-09-28T19:59:45 | 2016-09-28T19:59:45 | 45,495,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,577 | py | #!/usr/bin/env python3
import os
import gzip
import shutil
import tarfile
import zipfile
import requests
THIRD_PARTY_DIR = "third_party"
def ensure_dst_dir():
os.makedirs(THIRD_PARTY_DIR, exist_ok=True)
def download_matlab_bgl():
url = "http://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submiss... | [
"rogalski.91@gmail.com"
] | rogalski.91@gmail.com |
979faabf93ccab4152d1914e5e8e98c56eff447e | 49b6acf42df0c39a639477d3851fae4bd90a2e50 | /datecalc/cli.py | 1144ffdea9aa68f451ca5abe6571aff4be711c6c | [
"BSD-2-Clause"
] | permissive | Kwpolska/datecalc | f159e6cd632c21c81aa34b32b55fb5d8a108bbc3 | f9166a7d999db126dced7bf178854e1197a1feb1 | refs/heads/master | 2021-01-17T06:46:23.850749 | 2021-01-01T00:00:00 | 2020-12-31T21:44:17 | 56,449,391 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,498 | py | # -*- encoding: utf-8 -*-
# Date Calculator v0.2.1
# A simple date calculator.
# Copyright © 2016-2021, Chris Warrick.
# See /LICENSE for licensing information.
"""
Date Calculator command-line interface.
:Copyright: © 2016-2021, Chris Warrick.
:License: BSD (see /LICENSE).
"""
import datecalc
import datecalc.utils
... | [
"kwpolska@gmail.com"
] | kwpolska@gmail.com |
7539fafc20c711c087c7aefbdf10e46a9437dc28 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Integration/trend_LinearTrend/cycle_7/ar_12/test_artificial_128_Integration_LinearTrend_7_12_20.py | 089139700fc37ce2bc42e388eaa7c14d25a65cc3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 274 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 7, transform = "Integration", sigma = 0.0, exog_count = 20, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
38d5317bb9d9f922048570af06c3e5b3d0266410 | 1850d2222b504bfa3c2390dc6fc186b3260334d0 | /src/pbhla/AmpliconFinder.py | 21abc7c34a8c3834967a76a232ccfb590a6c98df | [] | no_license | la0hu2006/HlaTools | 2f6964645615c6c35517f064111b362407701dea | 082e45cd1cbdad941f0df59d71a0ca59bfdabf0c | refs/heads/master | 2021-01-18T21:42:31.258878 | 2016-08-29T18:50:11 | 2016-08-29T18:50:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,355 | py | import logging
from pbhla.io.SamIO import SamReader
BIN_SIZE = 50
class AmpliconFinder( object ):
"""
A class for tabulating subread statistics for a single HLA Locus
"""
def __init__(self, sam_file, output_file, locus_dict):
self.sam_file = sam_file
self.output_file = output_file
... | [
"bbowman@pacificbiosciences.com"
] | bbowman@pacificbiosciences.com |
8bfab66f55d4fd3d2ea05f95616fea1b76787b19 | 8567438779e6af0754620a25d379c348e4cd5a5d | /third_party/WebKit/Source/core/layout/line/DEPS | e8221a6b5d4c23da4f0b11c6010afb2c2addb1e2 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | thngkaiyuan/chromium | c389ac4b50ccba28ee077cbf6115c41b547955ae | dab56a4a71f87f64ecc0044e97b4a8f247787a68 | refs/heads/master | 2022-11-10T02:50:29.326119 | 2017-04-08T12:28:57 | 2017-04-08T12:28:57 | 84,073,924 | 0 | 1 | BSD-3-Clause | 2022-10-25T19:47:15 | 2017-03-06T13:04:15 | null | UTF-8 | Python | false | false | 588 | include_rules = [
# Line layout can only use the LineLayout API, not LayoutObject and kids.
"-core/layout",
"+core/layout/api",
"+core/layout/line",
"+platform",
"+wtf",
"!core/layout/BidiRun.h",
"!core/layout/HitTestLocation.h",
"!core/layout/HitTestResult.h",
"!core/layout/Lay... | [
"hedonist.ky@gmail.com"
] | hedonist.ky@gmail.com | |
efb3a973c2f610a1a371ffc10e0b7c19c824095e | ad26accb1c3c322ee626690b5b64c6345c4c7d17 | /backend/dating/api/v1/viewsets.py | 6111b8acd6a3f2bd7a17e92b8b646f639d6c0af7 | [] | no_license | crowdbotics-apps/fourthnovice-24091 | 93a243018023e4a14f8daf659723eb9753df9db4 | df859ec1c327bbf7fb1d25c572957e38883af20a | refs/heads/master | 2023-03-01T18:57:00.076010 | 2021-01-26T15:58:21 | 2021-01-26T15:58:21 | 333,134,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,095 | py | from rest_framework import authentication
from dating.models import Setting, Profile, Inbox, Dislike, Match, UserPhoto, Like
from .serializers import (
SettingSerializer,
ProfileSerializer,
InboxSerializer,
DislikeSerializer,
MatchSerializer,
UserPhotoSerializer,
LikeSerializer,
)
from rest_... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
e1081d949969845e53780e25962feb3f14e28ed1 | b17fda8e3a9f360cbab8e8ed0ecd66b03787250a | /.venv/lib/python2.7/site-packages/ephemeris/common_parser.py | b76680552799ad634f55657ec358870febee2c69 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | maumauleon/galaxy-irri-dev | 7a4b824c90474da0a2f3a3b858777c5089b9d5cb | 063bf0dca5d465466aefa77edaf47df12c4ff932 | refs/heads/master | 2022-11-16T03:10:18.067196 | 2017-08-23T03:31:01 | 2017-08-23T03:31:01 | 98,497,124 | 1 | 2 | NOASSERTION | 2022-11-01T17:00:32 | 2017-07-27T05:25:40 | Python | UTF-8 | Python | false | false | 1,027 | py | #!/usr/bin/env python
import argparse
def get_common_args(login_required=True):
parser = argparse.ArgumentParser(add_help=False)
general_group = parser.add_argument_group('Galaxy connection')
general_group.add_argument("-v", "--verbose", help="Increase output verbosity.", action="store_true")
con_g... | [
"v.juanillas@irri.org"
] | v.juanillas@irri.org |
21b001936a551d0079cac15d6447aed34ee234af | 9e47e225afc65d246f32a19739df277a10c32800 | /ch03/Greedy/Greedy.py | 48462715ed3902430b75d88d28e73b5eeaff2e53 | [] | no_license | DominKim/preparing_for_coding_test | 4453676159a6b6eb7bd2b7def66b5f94a2935501 | a4156c87dd574221b3094cd48eeda64029ccc4d4 | refs/heads/main | 2023-03-30T23:37:19.291634 | 2021-04-02T07:05:59 | 2021-04-02T07:05:59 | 325,210,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | # 거스름돈
money = 1260
cnt = 0
# 큰 단위의 화폐부터 차례대로 확인
coin_types = [500, 100, 50, 10]
for coin in coin_types:
cnt += money // coin
money %= coin
print(cnt)
# # 큰수의 법칙
# # N, M, K를 공백으로 구분하여 입력받기
# n, m, k = map(int, input().split())
# # n개의 수를 공백으로 구분하여 비력받기
# data = list(map(int, input().split()))
# data.sort... | [
"hyungm3@gmail.com"
] | hyungm3@gmail.com |
a5ee9a185f75f66e1838c336ec1590880d3593ac | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-live/huaweicloudsdklive/v1/model/delete_stream_forbidden_request.py | 73a4307140ddadfc0f0e5908b1b014d5f0dd4317 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,459 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DeleteStreamForbiddenRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
285b53911d86d78dc411e3f0f97c73a54916e0fa | 08c132bc63ebba2edebde139f7907953ae2fa04d | /Archived_Files/Old_FTDI_I2C/FTDI_MPSSE_I2C_PS/etc_i2c_ack.py | e1fcf73f7e5d8d5b55380b2493e8a5e017758b1d | [] | no_license | hudkmr/Code_Database | 12b60d1b331b91e9dc990d63bd4603bb92d0bfe7 | d80751c13bd30114af70d690ef8fc1a0d6368490 | refs/heads/master | 2021-01-21T12:49:47.564408 | 2015-07-30T02:28:07 | 2015-07-30T02:28:07 | 39,899,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | #This Function enables MPSSE Mode and Initializes FTDI Device
from etc_ftdi import MPSSE_I2C
from etc_ftdi.etc_header import *
from etc_ftdi.etc_i2c_cmds import *
d=MPSSE_I2C(0)
d.DevConf_I2C()
data =INA219_Reg_RRead(d,(I2C_ADDR[0]<<1),INA219_REG[1])
print data | [
"hudkmr@gmail.com"
] | hudkmr@gmail.com |
14216f49bd876d65e454069b8e36e3909a380bfa | e77a3618d0afe63a2f00d87b61c3f19d3eba10d8 | /plugins/beebeeto/poc_2014_0122.py | 49abe8668868c2b2add44c79288a62eaa18cac7c | [] | no_license | Explorer1092/coco | b54e88a527b29209de7c636833ac5d102514291b | 15c5aba0972ac68dc4c874ddacf5986af5ac2a64 | refs/heads/master | 2020-05-31T07:03:19.277209 | 2019-01-29T14:36:45 | 2019-01-29T14:36:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | #!/usr/bin/env python
# coding=utf-8
"""
Site: http://www.beebeeto.com/
Framework: https://github.com/n0tr00t/Beebeeto-framework
"""
import re
import urllib2
from baseframe import BaseFrame
class MyPoc(BaseFrame):
poc_info = {
# poc相关信息
'poc': {
'id': 'poc-2014-0122',
'n... | [
"834430486@qq.com"
] | 834430486@qq.com |
909829019a4b3091db2abbf655451a2c1f095c54 | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/client/gui/scaleform/daapi/view/lobby/demonstratorwindow.py | 29e6269045304bf655ef7541a720e2b923c3aee0 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,729 | py | # 2015.11.10 21:26:28 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/DemonstratorWindow.py
import ArenaType
from gui.Scaleform.daapi.view.meta.DemonstratorWindowMeta import DemonstratorWindowMeta
from gui.prb_control.context import PrebattleAction
from gui.prb_control.dis... | [
"info@webium.sk"
] | info@webium.sk |
87c4e5b44c9428c9be3a822a6d945250918339d7 | f82e67dd5f496d9e6d42b4fad4fb92b6bfb7bf3e | /scripts/client/gui/scaleform/daapi/view/lobby/techtree/research.py | 369684b6beaf88b105411999cb9371079b260881 | [] | no_license | webiumsk/WOT0.10.0 | 4e4413ed4e7b00e22fb85d25fdae9400cbb4e76b | a84f536c73f86d9e8fab559e97f88f99f2ad7e95 | refs/heads/master | 2021-01-09T21:55:00.662437 | 2015-10-23T20:46:45 | 2015-10-23T20:46:45 | 44,835,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,426 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/techtree/Research.py
from gui.Scaleform.daapi.view.lobby.techtree.techtree_dp import g_techTreeDP
import nations
from CurrentVehicle import g_currentVehicle
from constants import IS_DEVELOPMENT
from debug_utils import LOG_DEBUG
from items import getTyp... | [
"info@webium.sk"
] | info@webium.sk |
b367b362ac2536236b3583a7ab751a9ceaeb620f | 360558c34098ef95077e70a318cda7cb3895c6d9 | /tests/test_observable/test_takelastwithtime.py | 8209319d9ed22ff41246481e2ba2a76239c33aff | [
"Apache-2.0"
] | permissive | AlexMost/RxPY | 8bcccf04fb5a0bab171aaec897e909ab8098b117 | 05cb14c72806dc41e243789c05f498dede11cebd | refs/heads/master | 2021-01-15T07:53:20.515781 | 2016-03-04T04:53:10 | 2016-03-04T04:53:10 | 53,108,280 | 0 | 1 | null | 2016-03-04T04:50:00 | 2016-03-04T04:49:59 | null | UTF-8 | Python | false | false | 4,385 | py | import unittest
from rx.observable import Observable
from rx.testing import TestScheduler, ReactiveTest
from rx.disposables import Disposable, SerialDisposable
on_next = ReactiveTest.on_next
on_completed = ReactiveTest.on_completed
on_error = ReactiveTest.on_error
subscribe = ReactiveTest.subscribe
subscribed = React... | [
"dag@brattli.net"
] | dag@brattli.net |
8a14fe86c06b5df58d9d3067ca3b251d0213f2b0 | 87dae6d55c66df1d40d6881272009319a1600cb3 | /PROGRAMACION I TP 4 EJ 10.py | c887adfc58fb4153e0523162f7c1594ea31285a0 | [] | no_license | abaldeg/EjerciciosPython | 92a30a82c05ec75aa7f313c8a6fa0dd052a8db11 | c8a3238587ebf6b10dbff32516c81bf00bb01630 | refs/heads/master | 2021-07-09T07:46:11.584855 | 2020-11-09T11:51:50 | 2020-11-09T11:51:50 | 210,438,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # Escribir un programa que permita ingresar una cadena de caracteres e imprima un
# mensaje indicando cuántas letras y cuántos números contiene. Por ejemplo, si se
# ingresa "Hola Mundo 123" debe indicar que se ingresaron 9 letras y 3 números
cadena=input("Ingrese cadena: ")
contcad=0
contnum=0
for c in cadena:
if... | [
"abaldeg@gmail.com"
] | abaldeg@gmail.com |
8f4351844bd5dbcb3069c6ca3d199ca7e5e5b707 | 71d3632c19ada5585223d4800f681718af0e1f87 | /algorithm/day20/segment_tree.py | 69ae0fb5dd97c4c44178d866bda556e231071647 | [] | no_license | hyunwoo-song/TOT | 640433b909913098699ff517698e71a1b8661cff | 76a8c18af942d9ed3d636fcec35001ae70b6b8d2 | refs/heads/master | 2023-01-05T08:11:38.858134 | 2019-08-14T08:53:23 | 2019-08-14T08:53:23 | 162,208,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | import sys
sys.stdin= open('input.txt', 'r')
IDT = [0]* (1<<5)
Data=list(map(int, input().split()))
howmany = len(Data)
def update(a,b): # 3, 1
where = base + a -1
IDT[where] = b
where >>= 1
while where:
IDT[where] = IDT[where*2]+IDT[where*2+1]
where >>= 1
def RSQ(ffrom, to): # 1, 4
... | [
"gerrar486@gmail.com"
] | gerrar486@gmail.com |
1e41010142e6ac04ee2adadcde110ed093ed749f | b78ab4063b763a562e5aa66d4f322cc1cb2f2534 | /searching.py | 320dfc68dd46b0afe4668d6f05edabb0912931f0 | [] | no_license | Asmin75/Multiscraping | 9b1528d5b5d7f3274f23e26ccd0810e55d42f61c | 49ae9e8dec4c44deeeb6a04184ee58732c81ff79 | refs/heads/master | 2020-06-28T08:47:32.415293 | 2019-08-07T10:54:55 | 2019-08-07T10:54:55 | 200,191,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | import json
import re
with open("items.json") as f:
data = json.load(f)
search = str(input("Enter word to find reference link:"))
for item in data:
value = list(item.values())
for i in range(len(v)):
for j in range(len(value[i])):
match = re.search(search, value[i... | [
"asminrai7@gmail.com"
] | asminrai7@gmail.com |
39980dda09c00f6992a8346cb49f543c6c1d93f1 | 425db5a849281d333e68c26a26678e7c8ce11b66 | /LeetCodeSolutions/LeetCode_0962.py | e1c4c403cef0f205b15efc9994dda52eabb2fd59 | [
"MIT"
] | permissive | lih627/python-algorithm-templates | e8092b327a02506086414df41bbfb2af5d6b06dc | a61fd583e33a769b44ab758990625d3381793768 | refs/heads/master | 2021-07-23T17:10:43.814639 | 2021-01-21T17:14:55 | 2021-01-21T17:14:55 | 238,456,498 | 29 | 8 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | class Solution:
def maxWidthRamp(self, A: List[int]) -> int:
ans = 0
stack = []
for idx, val in enumerate(A):
if not stack or stack[-1][0] > val:
stack.append([val, idx])
n = len(A)
for i in range(n - 1, -1, -1):
if stack and i == stack... | [
"lih627@outlook.com"
] | lih627@outlook.com |
7ec32f6b5234c6cd0626687a749234d2c778ebce | 6496d7ab505ab1df594d373c0c58206d580302f6 | /valor_pagamento.py | 92782ce8932ed4fdf33993cc87bd2053bfacc689 | [] | no_license | alicesilva/P1-Python-Problemas | 7050f323a073ff51c51cd94d451bddfac71bf30b | eade521a3c7f740bb901a6714385d91356a37835 | refs/heads/master | 2020-03-09T21:04:32.211493 | 2018-08-25T19:50:53 | 2018-08-25T19:50:53 | 129,000,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | #coding: utf-8
def valorPagamento():
cont = 0
valores = []
while True:
prestacao = float(raw_input())
if prestacao == 0:
break
dias = int(raw_input())
cont += 1
if dias == 0:
valor = prestacao
valores.append(valor)
if dias != 0:
multa = (prestacao * 3/ 100.0)
juros_dia = (0.1 / 100.0 * dia... | [
"alice.silva@ccc.ufcg.edu.br"
] | alice.silva@ccc.ufcg.edu.br |
9860475faab47ee479836e93509b091b07b5dcbb | 312ab41033c2cb043d617d3e633c166503fd280c | /Informatikk/Bachelor/H2017/ITGK/Repitisjon/To-dimensjonale tabeller.py | 80c790629736ced7a5ff876009ef2460fd2fcea7 | [] | no_license | skanin/NTNU | cb9b833d9de0d504965979584370b8f353435cd1 | e4023856f69060f8d3d09ff4990e29f7a75d98b1 | refs/heads/master | 2022-01-30T14:31:22.947512 | 2022-01-20T14:11:14 | 2022-01-20T14:11:14 | 113,476,017 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | # Lage 10x10 matrise
'''
tabell_10x10 = [[0 for col in range(10)] for row in range(10) ]
print(tabell_10x10)
'''
'''
def fillTable(table):
number = 2
for y in range(0, len(table)):
for x in range(0, len(table[y])):
table[y][x] = number
number += 2
return table
print(fil... | [
"sander.b.lindberg@gmail.com"
] | sander.b.lindberg@gmail.com |
7a03e699b8705e2611d4e4cd7e85ddd88fc066f2 | 3c88e65e76d8a41fca5bc469eb99117b996711f2 | /pgadmin_old/pgadmin4-1.2/web/pgadmin/browser/server_groups/servers/tablespaces/tests/utils.py | 9a96c702d9e12a90a4a4d848e1b06916e42b8afb | [
"PostgreSQL"
] | permissive | luvres/alpine | 85591b77f0dbc328d89e028c22ef1479be33ffbe | 05dc3e77cc8c454143525fed79e38bc38fc390f7 | refs/heads/master | 2021-01-11T15:48:48.478244 | 2017-10-31T15:30:32 | 2017-10-31T15:30:32 | 79,933,463 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,323 | py | # #################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2017, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
# ##################################################################
from __future__ import print_f... | [
"luvres@hotmail.com"
] | luvres@hotmail.com |
10b425a8a68618c74ef0d34733af60aa5f56ba58 | 4c538430c1329455f2665d191b98b44cd3168b5f | /tracing/tracing/value/histogram_set_unittest.py | 7eaa194d3275260c0357edba1904baed5de497a8 | [
"BSD-3-Clause"
] | permissive | isabella232/catapult-csm | a0d7492e1485ef95670cbf68a028e72c5c648e3c | 8f69b07e80198c1af0d5bd368d8ad8ced968884a | refs/heads/master | 2023-03-13T00:03:27.064808 | 2017-09-01T00:54:32 | 2017-09-01T00:54:32 | 320,805,993 | 0 | 0 | BSD-3-Clause | 2021-02-23T22:37:25 | 2020-12-12T10:40:09 | null | UTF-8 | Python | false | false | 6,915 | py | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from tracing.value import histogram
from tracing.value import histogram_set
from tracing.value.diagnostics import diagnostic_ref
class His... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
744974a9d1207fea7729d86e9e1b48e28b617096 | fa7c302f7df6b1773b27de3b742d551bd54aa4e2 | /test/test_input_docker_registry_submission_endpoint_for_project.py | f647ecfbdb87e6ea70663ba9f6277337032486ee | [] | no_license | cons3rt/cons3rt-python-sdk | d01b3b174c295491130fba0d76d046b16492e9f7 | f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0 | refs/heads/master | 2021-11-04T02:31:54.485541 | 2021-10-26T19:28:57 | 2021-10-26T19:28:57 | 241,673,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | # coding: utf-8
"""
CONS3RT Web API
A CONS3RT ReSTful API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: Fred@gigagantic-server.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import cons3rt
from cons3rt.models.inp... | [
"shaun.tarves@jackpinetech.com"
] | shaun.tarves@jackpinetech.com |
0f06ed4ab4805d9e3c028573e13523a52606c3d1 | a8e0d85cbd1f8b501f0604837fa491eb40f9f229 | /dueros/directive/BaseDirective.py | 8285971529b77f3880d71c7cc80706751b7e7c01 | [
"MIT"
] | permissive | hotbaby/dueros-bot-sdk | 762098aea62aa59c0e71e2e93dcc49f1a92335e2 | 196e19639905b44bbb1350f3731218247adb0fc4 | refs/heads/master | 2020-04-16T18:36:05.268904 | 2019-01-17T09:30:32 | 2019-01-17T09:30:32 | 165,827,127 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | # encoding: utf8
"""
指令基类
"""
import time
import random
import hashlib
from dueros.Utils import Utils
class BaseDirective(object):
def __init__(self, directive_type):
self.data = {}
self.data['type'] = directive_type
def gen_token(self):
"""
生成Token md5(9位随机数+时间戳) 再截取md5后的字... | [
"mengyy_linux@163.com"
] | mengyy_linux@163.com |
97a6c1850afe1b21e7621d024a254e42440bd9e4 | fd529ba6ade52cd2a3dab94da01252d7ea90398d | /zerojudge/a225.py | 675d2623f5896d8bcc02c4ad9c9783a6d70a140f | [] | no_license | fjfhfjfjgishbrk/AE401-Python | 4a984deb0281542c205d72695285b35c7413338f | ee80fa4588b127cff2402fd81e732ede28a66411 | refs/heads/master | 2022-06-13T13:49:39.875567 | 2022-05-28T12:40:51 | 2022-05-28T12:40:51 | 251,178,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed May 13 20:39 2020
@author: fdbfvuie
"""
while True:
try:
n = int(input())
numArray = input().split(" ")
outArray = [[], [], [], [], [], [], [], [], [], []]
for i in numArray:
outArray[int(i[-1])].append(i... | [
"59891511+fjfhfjfjgishbrk@users.noreply.github.com"
] | 59891511+fjfhfjfjgishbrk@users.noreply.github.com |
ee12a4e7f45e03cf338971e406e28be282902ae2 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_067/ch119_2020_03_30_20_28_21_093881.py | 6ed86eb0ff1d53b9e3dbbdeaae05cd732aac11b7 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | def calcula_euler(x,n):
e_x = 1 + x
for i in range(1, n, 1):
e_x = e_x + (x^2)/fatorial(x)
#calculos
return e_x
def fatorial(x):
a=x
if(x==0) or (x==1):
return 1
else:
while(x>1):
a = a*(x-1)
... | [
"you@example.com"
] | you@example.com |
a24d80be962b976bdb864c8d2680e2b3408763a3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02775/s804854659.py | a90b33b7758568bf5ce181ebf9a0fe5cdfa347fb | [] | 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 | 257 | py | N = input().replace("\n", "")
L = len(N)
dp = [[0 for _ in range(2)] for i in range(L+1)]
dp[0][1] = 1
for i in range(L):
n = int(N[i])
dp[i+1][0] = min(dp[i][0]+n, dp[i][1]+(10-n))
dp[i+1][1] = min(dp[i][0]+n+1, dp[i][1]+(9-n))
print(dp[L][0])
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7bea49216a298d52c714072280ac5368044822c4 | 33ce95a46bad431fb9acde07f10f472c43533824 | /list_as_stack_and_queues_exercise/cups_and_botlles.py | 4dc87983571f0f8cbb1fb85383dad4480f9ed80c | [] | no_license | ivan-yosifov88/python_advanced | 91dead1a44771a46e85cecdfc6b02e11c0cb4d91 | 21830aabc87eb28eb32bf3c070bf202b4740f628 | refs/heads/main | 2023-06-29T21:31:30.285019 | 2021-06-23T20:31:36 | 2021-06-23T20:31:36 | 342,571,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | from collections import deque
cup_for_fill = deque(map(int, input().split()))
bottles_stack = list(map(int, input().split()))
wasted_water = 0
is_bottles_over = False
while cup_for_fill:
if not bottles_stack:
is_bottles_over = True
break
bottle = bottles_stack.pop()
if bottle < cup_for_fi... | [
"ivan.yosifov88gmail.com"
] | ivan.yosifov88gmail.com |
b39a132eb6c5a005731b8c94339441cb465d8c60 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/63/usersdata/170/28147/submittedfiles/swamee.py | 7788c27bd130525a9dbc183d96e2d979a5de54eb | [] | 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 | 490 | py | # -*- coding: utf-8 -*-
f=float(input('Digite o valor de f:'))
L=float(input('Digite o valor de L:'))
Q=float(input('Digite o valor de Q:'))
DeltaH=float(input('Digite o valor de DeltaH:'))
v=float(input('Digite o valor de v:'))
g=9.81
e=0.000002
math.pi=3.14159
D=((8*f*L*Q*Q)/(math.pi*math.pi*g*DeltaH))**1/5
Rey=(4*Q)... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b67ccbba39e098908d63c4a72a46b59816ab1645 | 2e936e64b42925ebc2e86eaa3d9171bfaf2d1605 | /fpga/scripts/distortion/write_hex.py | 0237da8f1815d8d31c6aea5ce7abd62732b1e6ac | [] | no_license | prashant87/visar | 9ad06ff5e2f1d90238a846e22d03f401ef4c9f58 | 7cb82784d4b1c243935f047696f3d42e0c21be32 | refs/heads/master | 2021-05-29T18:50:05.756533 | 2015-06-11T19:34:03 | 2015-06-11T19:34:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from __future__ import division
import sys
import ram_test
import intelhex
ih = intelhex.IntelHex(sys.argv[1])
rp = ram_test.RAMPoker()
keys = sorted(set(x//4*4 for x in ih._buf))
for i, addr in enumerate(keys):
if i % 1000 == 0:
print "%.1f%%" % (100*i/len(keys),)
rp.write(addr, ih._buf[addr] | (i... | [
"forrest@forre.st"
] | forrest@forre.st |
2df6cb484846d4e521443034a0292ac8bd5e3dca | ebf9cf7f64cc19d9b717c40992d99c272707708f | /py3/asyncio_locks.py | c6ae03f507c0c03061761421f6b96950c633f9bb | [] | no_license | Laisky/HelloWorld | b6eac5f34813895cec2e07af44fcc6308214b9ab | 56db8ab0c55b18a1a09774c04319dad526c8f116 | refs/heads/master | 2023-06-27T01:43:38.798483 | 2023-06-18T15:37:10 | 2023-06-18T15:37:10 | 24,983,292 | 12 | 10 | null | 2023-01-27T16:16:50 | 2014-10-09T09:54:11 | HTML | UTF-8 | Python | false | false | 727 | py | from asyncio import Condition, sleep, get_event_loop, wait
async def workers(cond, i):
print('shit')
async with cond:
print('worker {} is waiting'.format(i))
await cond.wait()
print('worker {} done'.format(i))
async def main():
cond = Condition()
fs = list([workers(cond, i) f... | [
"ppcelery@gmail.com"
] | ppcelery@gmail.com |
4fca6852b26014faf4897cc2ce29d4a34339e57d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/396/usersdata/294/81074/submittedfiles/av1_programa2.py | 1976df41378e7dc83524d0222a80be7b8405c1ce | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
n1= int(input('Digite o primeiro número: '))
n2= int(input('Digite o segundo número: '))
n3= int(input('Digite o terceiro número: '))
n4= int(input('Digite o quarto número: '))
n5= int(input('Digite o quinto número: '))
n6= int(input('Digite o sexto número: '))
s1= ... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
cd329813af72132df45d7915b4029b01bf762529 | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/analytics/outputs/gcs_service_account/__init__.py | dbbaf97bdc6ac7860e6febc5bd8720d2157e1c79 | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 389 | py | from bitmovin_api_sdk.analytics.outputs.gcs_service_account.gcs_service_account_api import GcsServiceAccountApi
from bitmovin_api_sdk.analytics.outputs.gcs_service_account.customdata.customdata_api import CustomdataApi
from bitmovin_api_sdk.analytics.outputs.gcs_service_account.analytics_gcs_service_account_output_list... | [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
8039e85e043de51fed3317defa409a39d6af23ea | ac63be61a1c62461f386fd6ae6ec03406c04e8c3 | /cookiecutter/hooks/post_gen_project.py | 7a8b037dd74e9d8aa50a6ba2da7b042292da9af6 | [
"BSD-3-Clause"
] | permissive | dearith/resources | 779e27a1f87abcf512da9ace3d7dfc78689e199c | fcc465c994601918ba7c5384727c2a4f909b2a65 | refs/heads/master | 2020-04-28T17:10:55.681084 | 2019-03-13T12:14:33 | 2019-03-13T12:14:33 | 175,436,782 | 0 | 0 | null | 2019-03-13T14:25:48 | 2019-03-13T14:25:48 | null | UTF-8 | Python | false | false | 1,801 | py | #!/usr/bin/env python3
import os
import shutil
def test_empty(path):
try:
with open(path, 'rb') as f:
content = f.read().strip()
if len(content) == 0:
return True
except Exception:
pass
return False
paths_to_delete = []
for path in [os.path.join(x... | [
"fabien.marty@gmail.com"
] | fabien.marty@gmail.com |
ef572f06175deb96fb96f4c9eeb9c1404aa99a56 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/got-tyrion-web/venv/Lib/site-packages/pip/_vendor/distlib/compat.py | 3f73aac7bdd2cf0fc30c820ca6cebcc99e9d98b0 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:c5d3599aa14de47c05df41e3467e4ce35e69702da48174415e7efaef14bcbfe3
size 41404
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
d9faf74d2469e0d80dd0fb5c9f76336b25066bb0 | c59f419d95e92985c133b797fb2089c25b69283d | /ax/modelbridge/transforms/derelativize.py | 0aab9162f2e223ed31a53545276df0f982c8248a | [
"MIT"
] | permissive | michaeldeyzel/Ax | 8f9ede559e8087a7dec320b14d94955845de808e | 16cb868911eecba323759e2e129df8833361e614 | refs/heads/master | 2022-12-24T17:27:36.576326 | 2020-09-30T23:48:25 | 2020-09-30T23:49:55 | 300,192,368 | 1 | 0 | MIT | 2020-10-01T07:45:32 | 2020-10-01T07:45:31 | null | UTF-8 | Python | false | false | 3,011 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import TYPE_CHECKING, Optional
from ax.core.observation import ObservationFeatures
from ax.core.optimizati... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
12ab3d22ebbbde7f2fb3507e1b1351771ea1d2a5 | 70e047d748d503362cabc0f3ba50f3e103110ff4 | /transaksi_rap/migrations/0002_auto_20160130_1545.py | c6274c73867c0eee21135ad48794ce71a44c2383 | [] | no_license | gofur/AHS | 621e7982df7c4fbd150e9427b7b408e122a38b07 | b59cba9d29e4ef5e20bf2091a646cd7ec79c3c6f | refs/heads/master | 2021-01-10T10:47:20.159642 | 2016-02-06T12:26:59 | 2016-02-06T12:26:59 | 49,955,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-01-30 15:45
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('transaksi_rap', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
... | [
"you@example.com"
] | you@example.com |
a7d9151d18413595700afdf9262f86f89a228ac5 | 12068d6ebe90fcbd13c635f35c23ce7c73884b12 | /Lecture/Lecture_basic/emoticon.py | 5d2b5182f9fefd3edcaf90a1ea46c081b5324a4f | [] | no_license | jngcii/python-algorithm | 6ffb7a90eb0288cadc64bc3b2bf2d103455d2337 | e976b0033beeeb14217e7acc8d67f201a79184f2 | refs/heads/master | 2020-04-21T09:09:13.353113 | 2020-01-23T17:36:02 | 2020-01-23T17:36:02 | 169,439,831 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | # from collections import deque
# check = [[False] * 1000 for _ range(1000)]
# s = int(input())
# res = 0
# def bsf(x, cnt):
# global res
# if x[0] == s: res = min(res,cnt)
# q = deque()
# q.append(x)
# check[x[0]][x[1]] = True
# while q:
# ns, nc = q.popleft()
# ... | [
"concotree@gmail.com"
] | concotree@gmail.com |
87996179ef76e8f039445e644a69410e02ab5fb7 | e86d020f8ade86b86df6ad8590b4458a9d415491 | /projects/test-crrr/base_scene/public/error.py | 3f9352826e972b96adcb2c942d29fd1f4be28ce1 | [] | no_license | g842995907/guops-know | e4c3b2d47e345db80c27d3ba821a13e6bf7191c3 | 0df4609f3986c8c9ec68188d6304d033e24b24c2 | refs/heads/master | 2022-12-05T11:39:48.172661 | 2019-09-05T12:35:32 | 2019-09-05T12:35:32 | 202,976,887 | 1 | 4 | null | 2022-11-22T02:57:53 | 2019-08-18T08:10:05 | JavaScript | UTF-8 | Python | false | false | 203 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from base.utils.error import Error
from base.utils.text import trans as _
error = Error(
GATEWAY_NOT_FOUND=_('网关不存在'),
)
| [
"842995907@qq.com"
] | 842995907@qq.com |
dea3bc0b109b971914ec395ad20625aa91aa5568 | 54c08823016949aa23ff1d372cf70778e6f88758 | /tests/pytorch/nn/modules/test_tril_matrix.py | 25c70a4e4867b84382e884303e858eb4d422a08a | [
"MIT"
] | permissive | jCrompton/raylab | b4d41c446bc4d8d9ea42ebfdfad59c61956bfe98 | 9773d6fb942c06c65fe5297a8275f86649966abd | refs/heads/master | 2022-11-05T21:59:06.704075 | 2020-06-08T15:36:20 | 2020-06-08T15:36:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | # pylint: disable=missing-docstring,redefined-outer-name,protected-access
import pytest
import torch
from raylab.pytorch.nn import TrilMatrix
@pytest.fixture(params=(1, 4, 10))
def in_features(request):
return request.param
@pytest.fixture(params=(1, 4, 10))
def matrix_dim(request):
return request.param
... | [
"angelolovatto@gmail.com"
] | angelolovatto@gmail.com |
8e09289c88c3ccf5b35dd4d68a92124637da42d9 | 3a5ea75a5039207104fd478fb69ac4664c3c3a46 | /vega/networks/pytorch/ops/__init__.py | d31cca5edd2705a7fd488daef021eed6f8bf4811 | [
"MIT"
] | permissive | fmsnew/vega | e3df25efa6af46073c441f41da4f2fdc4929fec5 | 8e0af84a57eca5745fe2db3d13075393838036bb | refs/heads/master | 2023-06-10T04:47:11.661814 | 2021-06-26T07:45:30 | 2021-06-26T07:45:30 | 285,174,199 | 0 | 0 | MIT | 2020-08-11T14:19:09 | 2020-08-05T03:59:49 | Python | UTF-8 | Python | false | false | 637 | py | # -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the ... | [
"zhangjiajin@huawei.com"
] | zhangjiajin@huawei.com |
48b371874514d84430034214336023e44314a0b3 | 3ab494cac87a9f3c5ba17c903ffdbba7e72c305f | /algorithm/restart/p1.py | db1a0331cf6e10f7aed62542078876e59c7f578f | [] | no_license | sochic2/TIL | 6036cae002ce4c4ba5e7d2175e668c664de209de | eb2709f5ac1a4b9c79dda0e647f14044c7a4fb6e | refs/heads/master | 2023-01-10T03:51:14.057387 | 2022-12-21T01:27:38 | 2022-12-21T01:27:38 | 162,229,719 | 4 | 1 | null | 2023-01-09T11:56:04 | 2018-12-18T04:23:54 | Python | UTF-8 | Python | false | false | 1,459 | py | import sys
sys.stdin = open('p1.txt')
def check(arr, cnt):
global N, mmin
if cnt > 5:
return
if cnt != 0:
if arr == cardarr:
return
if cnt >= mmin:
return
if arr == sorted(arr) or arr == sorted(arr, reverse=True):
if cnt <= mmin:
mmin = cnt
... | [
"netzzang12@gmail.com"
] | netzzang12@gmail.com |
dcd6cc3c8aa68a6b4163694a2a0979a696efb36b | a55a5945b275d4b9383a3057b9a58aaffe5676ad | /neovim/msgpack_stream.py | 44777d89e60936f7f0ca66a5fe4b07a07e0cad26 | [
"Apache-2.0"
] | permissive | kryskool/python-client | 606a531c2d884cbeab429bc333f88e32fbf98f5e | 41574267865f6de0b30bbff53eabccf1a1139b79 | refs/heads/master | 2021-01-18T03:39:06.783173 | 2014-09-14T12:49:52 | 2014-09-14T12:49:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | import msgpack, logging
logger = logging.getLogger(__name__)
debug, warn = (logger.debug, logger.warn,)
class MsgpackStream(object):
def __init__(self, stream):
def default(obj):
return obj._handle
def ext_hook(code, data):
klass = self.types[code]
rv = klass(s... | [
"tpadilha84@gmail.com"
] | tpadilha84@gmail.com |
52e5e75c737fde369884adcd8224c866ff80b40d | f4310ec244e99e8afe61defecc4320eb6b50290a | /Store/migrations/0004_comprasweb_hash.py | a6f04a517309d87533f614d6764839812470e90b | [] | no_license | jurdin32/eraly2 | 2fceedafedeb2d7bae383414d8481d924401de23 | 40383bd61dc7f8425832ba4c1c75a4299042f1af | refs/heads/main | 2023-05-10T11:37:35.783085 | 2021-06-04T19:45:18 | 2021-06-04T19:45:18 | 313,663,365 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # Generated by Django 3.1.3 on 2021-04-03 18:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Store', '0003_comprasweb_detallecompraweb'),
]
operations = [
migrations.AddField(
model_name='comprasweb',
name='ha... | [
"urdin32@gmail.com"
] | urdin32@gmail.com |
df5ecb4acaa39d075ee0db868f116d9f3b25198c | c87111c276b33c3ebc4f98353ccdd7c7350bebe4 | /知乎爬取图片/zhihu.py | cfb491425b00fc934320907dc4a0be476ccd6c0c | [] | no_license | dingChangmao/happy_train | de5f737aa9233d55b726a6cc0d1043f1e9b1ebbe | 07405ad8c3c69b2747d22ef33abce2e71bc4f709 | refs/heads/master | 2020-05-25T03:22:55.376577 | 2019-05-20T08:45:17 | 2019-05-20T08:45:17 | 187,600,329 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | import time
import re
from selenium import webdriver
import urllib.request
"""
爬妹子图片,资源重在分享,欢迎广大基友给我分享资源!!!!
请直接告诉我地址,我就喜欢直接点!!!!!
"""
driver = webdriver.Chrome()
driver.maximize_window()
driver.get("https://www.zhihu.com/question/29134042")
i = 0
while i < 10:
driver.execute_script("window.scrollTo(0, document.b... | [
"you@example.com"
] | you@example.com |
97a360d66f9fb67d6702f0d4bda816ba93328881 | 278d7f4467a112416d1adfbcd3218033ff0fd9b3 | /mmdet/models/losses/balanced_l1_loss.py | 64c7911ea45143104248f44a2413700cb43c80a1 | [] | no_license | Young-1217/detection | e3d67938b454e955b5b7a82d5ae222e62f9545fb | 6760288dac92e00ddc3e813ed0e1363c1fa1ce2d | refs/heads/main | 2023-06-01T21:41:37.998947 | 2021-06-21T10:03:01 | 2021-06-21T10:03:01 | 371,868,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,234 | py | import numpy as np
import torch
import torch.nn as nn
from ..builder import LOSSES
from .utils import weighted_loss
@weighted_loss
def balanced_l1_loss(pred,
target,
beta=1.0,
alpha=0.5,
gamma=1.5,
... | [
"noreply@github.com"
] | Young-1217.noreply@github.com |
7d0203a047ae27695396b5d8ee8dfbb1d4a58e77 | c474214f51cd421b5918c0735ac82eecae913417 | /mysite2/mysite2/settings.py | 5d127e80ee64c02eeb4a5f6cf2654e47b4438e64 | [] | no_license | 825644691/chouti_instance | 701523b9fa14e4efb1b214bbba0afd4784622993 | 3eff3df7b0700006c886c22ff680858d69d4e1e5 | refs/heads/master | 2020-06-04T05:06:03.995903 | 2019-06-14T05:37:15 | 2019-06-14T05:37:15 | 187,785,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,091 | py | """
Django settings for mysite2 project.
Generated by 'django-admin startproject' using Django 2.2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"825644691@qq.com"
] | 825644691@qq.com |
54b1a4a59a73a04d50c8eb7d2edd960ae910eda8 | 39c485a9c4446b36c79d026ec6671809d97f04d8 | /apps/render/clean.py | fa3404143fbce11c2136f509c3d1383dac265887 | [] | no_license | kaitlin/HollaBackDC | 2682ff20b3613cef02b686e298d62781243cb05f | 1956aeaba95fb16718f4a24ec9217ef1107b9fcf | refs/heads/master | 2021-01-19T06:18:08.520250 | 2010-10-09T22:12:49 | 2010-10-09T22:12:49 | 412,397 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | # -*- coding: utf-8
def normalize_html(data):
"""
Apply tidy cleanup for data which should be in unicode
"""
from BeautifulSoup import BeautifulSoup
soup = BeautifulSoup(data)
return unicode(soup)
| [
"kaitlin@kaitlin-laptop.(none)"
] | kaitlin@kaitlin-laptop.(none) |
cb272f88d80dacd36420a0d1d456ae3ea19b0c21 | 265836c043fef2e1bd1d54ec6021666cf021af93 | /src/settings.py | 5ae3e479547a09e88e3677d903e450e2926cb5ca | [
"MIT"
] | permissive | chakki-works/maccha | f35e05f518ae978d11f3c237a36e816040ebe4ac | 2930ede5b70eaed3fca66ec5a629ed4d9b33e7bb | refs/heads/master | 2021-01-19T09:24:13.603011 | 2017-04-20T07:47:23 | 2017-04-20T07:47:23 | 87,756,852 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | import os
vec_path = os.path.join(os.path.dirname(__file__), '../data/word_vectors.txt')
vocab_path = os.path.join(os.path.dirname(__file__), '../data/vocab.dic')
dic_path = '/usr/local/lib/mecab/dic/mecab-ipadic-neologd/'
| [
"light.tree.1.13@gmail.com"
] | light.tree.1.13@gmail.com |
cc8275a96a3f24ea10e6454ae16f544aeae5848e | ee4db47ccecd23559b3b6f3fce1822c9e5982a56 | /Build Chatbots/FeatureDict.py | 73b97741c2657a860fd363ea384d8261e4212ec1 | [] | no_license | meoclark/Data-Science-DropBox | d51e5da75569626affc89fdcca1975bed15422fd | 5f365cedc8d0a780abeb4e595cd0d90113a75d9d | refs/heads/master | 2022-10-30T08:43:22.502408 | 2020-06-16T19:45:05 | 2020-06-16T19:45:05 | 265,558,242 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | from preprocessing import preprocess_text
# Define create_features_dictionary() below:
training_documents = ["Five fantastic fish flew off to find faraway functions.", "Maybe find another five fantastic fish?", "Find my fish with a function please!"]
def create_features_dictionary(documents):
features_dictionary ... | [
"oluchukwuegbo@gmail.com"
] | oluchukwuegbo@gmail.com |
93b2be0728be24c23df8ad97e5859b0cda02872e | ac0aaa583a1f11c8f1d0ffe3cf8df3eb1622a85a | /tests/test_percentile.py | 1aa36df32ff41c9dab0683d7115d7594ff8078c0 | [] | no_license | code-fabriek/rejected | ba5370e572e062651368aab9934aabb50e43527c | 6aaf33f822d1eb877d31488af342ee676f2299fa | refs/heads/master | 2021-08-29T10:32:18.332823 | 2017-11-28T01:51:16 | 2017-11-28T01:51:16 | 109,014,166 | 0 | 0 | null | 2017-10-31T15:19:11 | 2017-10-31T15:19:10 | null | UTF-8 | Python | false | false | 619 | py | import unittest
from rejected import utils
class PercentileTestCase(unittest.TestCase):
def test_90th(self):
values = [43, 54, 56, 61, 62, 66, 68, 69, 69, 70, 71, 72, 77, 78,
79, 85, 87, 88, 89, 93, 95, 96, 98, 99, 99]
self.assertEqual(utils.percentile(values, 90), 98)
def... | [
"gavinr@aweber.com"
] | gavinr@aweber.com |
531f01dd20a3b855326d41d77f5c28e6ccf188db | 2e70b3ce93762c5b66fba57f8b9cba37aacf0702 | /new/event/migrations/0040_auto_20190522_2358.py | d642a4859f474327ed30bf94505687c50d0e494d | [] | no_license | mahidul-islam/jamah | 02be511fe119e8934ec7d5aa1eaa8e2b24fad246 | c8ddf9a8094d33e8b1d6cb834eab3d9f18b1a9ea | refs/heads/master | 2022-05-13T15:11:38.609550 | 2019-06-08T04:52:09 | 2019-06-08T04:52:09 | 184,331,276 | 2 | 0 | null | 2022-04-22T21:27:18 | 2019-04-30T21:04:06 | Python | UTF-8 | Python | false | false | 381 | py | # Generated by Django 2.2.1 on 2019-05-22 23:58
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('event', '0039_auto_20190522_2358'),
]
operations = [
migrations.RenameField(
model_name='cost',
old_name='needed_approve',
... | [
"mizihan84@gmail.com"
] | mizihan84@gmail.com |
3fc56e5ae778dbf1d1fabf5933b7695970ea8f15 | b1b4dc2c530b56a9abbc6b144c3ca3f5a6d11e70 | /django_/example/chat/apps/chat/models.py | fc37696ebf1f76ebe371b870727116d4189892e0 | [] | no_license | BorisovDima/_ex | d38cff25575bfc6d1906940d40091fb6946cd829 | 6c14d661b8e051f8ec385cb09997da1fa781431a | refs/heads/master | 2020-05-07T18:13:38.304305 | 2019-08-23T10:59:09 | 2019-08-23T10:59:09 | 180,757,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,617 | py | from django.db import models
from chat.apps.core.models import BaseChatModel
from django.db.models import Count
from django.utils import timezone
class RoomManager(models.Manager):
def get_or_create_dialog(self, author, user):
dialogs = self.get_dialogs().filter(users__id=author.id).filter(users__id=user.... | [
"you@example.com"
] | you@example.com |
2e65eec1daf8f90651ea5e0a4f90a9979b5b09a4 | b2e2332dcc998e33ac02c9c2fef1cea05a56457e | /hrf/trf2.py | 91bd0d43968b85575b772bfbf14593b3b9e8784d | [
"Apache-2.0"
] | permissive | thu-spmi/semi-EBM | db43a7ce2b9b8dcbc56ffbc7aa21102cb8160cf4 | 393e3ea3566dd60c48872a5c573a335e8e802707 | refs/heads/main | 2023-08-31T03:20:19.830127 | 2021-09-12T07:04:17 | 2021-09-12T07:04:17 | 405,569,165 | 3 | 1 | Apache-2.0 | 2021-09-12T07:04:17 | 2021-09-12T06:51:30 | null | UTF-8 | Python | false | false | 3,931 | py | import tensorflow as tf
import os
import json
import time
from copy import deepcopy
from collections import OrderedDict
from base import *
from lm import *
from . import crf, pot, tagphi, mixphi, trf, mcmc
class Config(trf.Config):
def __init__(self, data):
super().__init__(data)
... | [
"maxwellzh@outlook.com"
] | maxwellzh@outlook.com |
4e93df250aa72146b1094751bbf761a93b11f291 | 82c54cab8e0c5b73e1fdb9615296613cc43929a0 | /twitter_user/views.py | df9c765cec4c696a638613198967195e7cf8a68b | [] | no_license | creechcorbin/twitter_clone | e4146657bd13043544f846c48b34fe83e90e91da | bd075bd53fd9e5558cda85ade86ed9995f72118c | refs/heads/master | 2022-12-10T09:23:37.036180 | 2020-09-05T03:23:32 | 2020-09-05T03:23:32 | 292,993,852 | 0 | 0 | null | 2020-09-09T01:08:27 | 2020-09-05T03:22:43 | Python | UTF-8 | Python | false | false | 1,149 | py | from django.shortcuts import render, HttpResponseRedirect, reverse
from tweet.models import Tweet
from twitter_user.models import TwitterUser
# Create your views here.
def profile_view(request, user_name):
tweets = Tweet.objects.all().order_by('-time_posted')
selected_user = TwitterUser.objects.get(username=u... | [
"creechcorbin@gmail.com"
] | creechcorbin@gmail.com |
2c74e87fae44424d636039ad0c52e8295d457c05 | c5ab0f9f6e9b46213c5ab0ff809a6188c408da3f | /project_s/Accounts/managers.py | f737eca1a08af9c8a645a8285605feb900b55b07 | [] | no_license | jyywong/Project_S | a769576a9fbeaf8cfbf6a5e0bc351a615344b459 | 951db67dd7777ebcfdebb83ecc796482a3b00741 | refs/heads/master | 2023-02-07T17:00:53.911677 | 2020-12-26T22:58:58 | 2020-12-26T22:58:58 | 320,895,670 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py |
from django.contrib.auth.models import BaseUserManager
class CustomUserManager(BaseUserManager):
def create_user(self, username, email, password, **extra_fields):
if not email:
raise ValueError(('The email must be set'))
username = username
email = self.normalize_email(email)
... | [
"wong.jonathan1@gmail.com"
] | wong.jonathan1@gmail.com |
563364aeb42a614344859c4846dd91fbbe5a66ef | bb6ebff7a7f6140903d37905c350954ff6599091 | /components/usb_service.gypi | 33b38a6dd98dcf5e24d87a839d602abd1e01af90 | [
"BSD-3-Clause"
] | permissive | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f | ccadf4e63dd34be157281f53fe213d09a8c66d2c | refs/heads/master | 2022-12-23T18:07:04.568931 | 2016-04-11T16:03:36 | 2016-04-11T16:03:36 | 53,677,925 | 0 | 1 | BSD-3-Clause | 2022-12-09T23:46:46 | 2016-03-11T15:49:07 | C++ | UTF-8 | Python | false | false | 1,379 | gypi | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [{
'target_name': 'usb_service',
'type': '<(component)',
'dependencies': [
'../base/base.gyp:base',
'../base/third_par... | [
"mrobbeloth@pdiarm.com"
] | mrobbeloth@pdiarm.com |
9bb4b193f163fe83a1fd81f3904b13163ffa37cf | 47ef6997d03f4d5c921c83cc09aef1dfc6828e2c | /zeus/modules/operators/quant/__init__.py | 9b5986bd365af43f3bd6de09eeee4e61560515df | [
"MIT"
] | permissive | huawei-noah/xingtian | 620c9f245183d636e0a65659fd99a984397ecbd4 | e4ef3a1c92d19d1d08c3ef0e2156b6fecefdbe04 | refs/heads/master | 2023-09-03T01:10:21.768245 | 2022-03-21T03:39:39 | 2022-03-21T03:39:39 | 287,759,621 | 308 | 91 | MIT | 2023-09-12T11:33:22 | 2020-08-15T14:13:06 | Python | UTF-8 | Python | false | false | 138 | py | import zeus
if zeus.is_tf_backend():
from .tensorflow_quant import *
elif zeus.is_torch_backend():
from .pytorch_quant import *
| [
"hustqj@126.com"
] | hustqj@126.com |
bd38c882670986d24a6bddd1ec0893a6bb37762c | 5063faf298a36466cdb90f1cbd0a4f4e855b5d3b | /test/test_license_pool_access_policy.py | 26b074c64164f1b0f5695dcb73e68183e872c0dd | [] | no_license | pollination/python-sdk | d4eb4efbcbe3a76cc170cf8e71ad5bc6ca6c3011 | e4a94b236534658b150961795256224fe8dd93c2 | refs/heads/master | 2023-08-04T15:19:29.126613 | 2022-03-06T10:43:21 | 2022-03-06T10:51:08 | 224,588,062 | 3 | 1 | null | 2023-09-05T20:52:35 | 2019-11-28T06:48:40 | Python | UTF-8 | Python | false | false | 1,562 | py | # coding: utf-8
"""
pollination-server
Pollination Server OpenAPI Definition # noqa: E501
The version of the OpenAPI document: 0.27.0
Contact: info@pollination.cloud
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import... | [
"antoinedao1@gmail.com"
] | antoinedao1@gmail.com |
c7992d56ce7baa56a9bff319e1cd16cb4a952e0b | 824f19d20cdfa26c607db1ff3cdc91f69509e590 | /Math/461-Hamming-Distance.py | 4c098f9a5bc0c881db300a62060b387902a896cc | [] | no_license | almamuncsit/LeetCode | 01d7e32300eebf92ab54c983de6e183242b3c985 | 17aa340649574c37067ec170ceea8d9326be2d6a | refs/heads/master | 2021-07-07T09:48:18.069020 | 2021-03-28T11:26:47 | 2021-03-28T11:26:47 | 230,956,634 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | class SolutionOne:
def hammingDistance(self, x: int, y: int) -> int:
x_bit = list(bin(x)[2:])
y_bit = list(bin(y)[2:])
if len(x_bit) > len(y_bit):
max_bit, min_bit = x_bit, y_bit
else:
min_bit, max_bit = x_bit, y_bit
for i in range(len(min_bit), len(... | [
"msarkar.cse@gmail.com"
] | msarkar.cse@gmail.com |
ba70bb67e3dca2d74f4a89d78161a2b5d10db9ee | 5e3ebc83bc3fe2f85c34563689b82b1fc8b93a04 | /google/ads/googleads/v5/enums/types/asset_link_status.py | 5df6bf3f79b042edc8bf6b57fddeba12e4f9f564 | [
"Apache-2.0"
] | permissive | pdsing/google-ads-python | 0ce70227cd6bb13a25cd13de0ca05c2636279ecd | ee2c059498d5679a0d1d9011f3795324439fad7c | refs/heads/master | 2023-05-04T18:39:57.412453 | 2021-05-21T16:38:17 | 2021-05-21T16:38:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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 o... | [
"noreply@github.com"
] | pdsing.noreply@github.com |
dc7a0d8bfa7dd251ab169b1a389aba7d40814ddb | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /atcoder/_codeforces/1437_d.py | e313225aa61433b86f5c75b5cb0edbd190ddc84d | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,867 | py | import sys
from io import StringIO
import unittest
import logging
logging.basicConfig(level=logging.DEBUG)
def resolve():
#input = sys.stdin.readline
from pprint import pprint
import sys
def do():
n = int(input())
dat = list(map(lambda x: int(x)-1, input().split()))
import coll... | [
"glenda.kanai@gmail.com"
] | glenda.kanai@gmail.com |
117ce0e41ba3ffc768796ccfb272def5bcb90004 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_crusaded.py | db48f852bcd13aa5dc83274ba954ee27c7c8aa98 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
#calss header
class _CRUSADED():
def __init__(self,):
self.name = "CRUSADED"
self.definitions = crusade
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['crusade']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e1184a714401730373d1bc1c7d1305edf88d3421 | fdb3809b9048281ebe696dce861f8003eb06fa23 | /basics/stringtypes.py | 8e5c9cf8dda8a976de301c38ef913d3a1d31ba5d | [] | no_license | GParolini/python_ab | 629f60681033997172740f5e01e9296c4962fbdb | b7683cb515f2fec24ece5ccdd7b698837b962be1 | refs/heads/master | 2020-07-21T09:37:26.116662 | 2019-11-18T15:44:31 | 2019-11-18T15:44:31 | 206,818,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 8 11:45:03 2019
@author: giudittaparolini
"""
s=" You are awesome "
print(s)
s1="""You are
the creator
of your destiny"""
print(s1)
#indexing
print(s[0])
print(s[2])
#repetition
print(s*2)
print(s*3)
#length
print(len(s1))
print(len(s))
#sl... | [
"giudittaparolini@gmail.com"
] | giudittaparolini@gmail.com |
c0120c2c612c967400f31713e722563b2d2dfeee | adb759899204e61042225fabb64f6c1a55dac8ce | /17100~17199/17175.py | 8cde604df24d21b6754ff590e16c32e4554f52c4 | [] | no_license | geneeol/baekjoon-online-judge | 21cdffc7067481b29b18c09c9152135efc82c40d | 2b359aa3f1c90f178d0c86ce71a0580b18adad6f | refs/heads/master | 2023-03-28T23:25:12.219487 | 2021-04-01T09:19:06 | 2021-04-01T09:19:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | # 문제
# 혁진이는 알고리즘 문제를 만들라는 독촉을 받아 스트레스다.
# 하지만 피보나치 문제는 너무 많이 봐서 지겹기 그지없다.
# 그러나 문제를 만들 시간이 없는 혁진이는 피보나치 문제를 응용해서 문제를 만들려 한다.
# int fibonacci(int n) { // 호출
# if (n < 2) {
# return n;
# }
# return fibonacci(n-2) + fibonacci(n-1);
# }
# 위와 같이 코딩하였을 때 fibonacci(n)를 입력했을 때에 fibonacci 함수가 호출되는 횟수를 계산해보자.
#
# 입력
# ... | [
"alstn2468_@naver.com"
] | alstn2468_@naver.com |
04198b858867e8b0fffb73c5f7156b7ba9ce553d | 8f23593807197d2d34581a94c5203c6db625e975 | /test_pc_extension.py | 76cf7c6855a9dc16d5241eff73a04ab43d4f5641 | [] | no_license | neurosutras/neuron_pc_extension | 34b25a358bdf62da173037790c5d20e672e9d58e | a275b47a479a7598c223ae2d932fdee39f256036 | refs/heads/master | 2021-04-27T12:59:20.643559 | 2019-03-15T22:39:51 | 2019-03-15T22:39:51 | 122,430,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,419 | py | from pc_extension import *
import click
context = Context()
def test(first, second, third=None):
"""
:param first:
:param second:
:param third:
:return:
"""
if 'count' not in context():
context.count = 0
if context.interface.global_rank == 0:
print 'master proces... | [
"neurosutras@gmail.com"
] | neurosutras@gmail.com |
c13f511021d047ef519b0a3b1b231342fe5c3d64 | 24bae9210e28d870b5fc8f01c16f8388e219b8ad | /ObjectDetection/CornerNet.py | a984e3cb32403b17e12f0c6f0d34d1e59c68d0db | [] | no_license | oxyai/PyTorch-Networks | 9c4e1b84b0f328287f95be732842d6170a84b561 | e5cce0ef8e1bff760b4fc89174db723c71a3c168 | refs/heads/master | 2022-12-21T19:46:48.856965 | 2020-09-11T07:55:05 | 2020-09-11T07:55:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,108 | py | <<<<<<< HEAD
import torch
import torch.nn as nn
def ConvBNReLU(in_channels,out_channels,kernel_size,stride,padding=1):
return nn.Sequential(
nn.Conv2d(in_channels=in_channels, out_channels=out_channels, kernel_size=kernel_size, stride=stride, padding=kernel_size//2),
nn.BatchNorm2d(ou... | [
"569793357@qq.com"
] | 569793357@qq.com |
2a348cea5843caa6f5906e69a37513a9c2f3eff0 | f5d1e8b54ddbc51a9ef1b868eee93096d9b0fbeb | /weapp/pay/ali/api/api_pay_token.py | 4fc0b9effaf51ae48864bc4e58a6cc33ab033015 | [] | no_license | chengdg/weizoom | 97740c121724fae582b10cdbe0ce227a1f065ece | 8b2f7befe92841bcc35e0e60cac5958ef3f3af54 | refs/heads/master | 2021-01-22T20:29:30.297059 | 2017-03-30T08:39:25 | 2017-03-30T08:39:25 | 85,268,003 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,136 | py | # -*- coding: utf-8 -*-
"""@package pay.ali.api.api_pay_token
获取token API
HTTP请求方式: GET
URL: `http://wappaygw.alipay.com/service/rest.htm`
参数信息:
| 参数 | 必需 | 说明 |
| :----------- | :---: | :-------------------------------------------- |
| partner | 是 | 合作者身份ID |
| key | 是 | 安全校验码 |
| input_charset | 是 ... | [
"jiangzhe@weizoom.com"
] | jiangzhe@weizoom.com |
63c7448add1e11d406a06b801005e6f1ded5d92b | 1ac99f8065a2646bdb8ea9003fd5930341fb0cf4 | /Regular expression/Rules.py | 4ebf4273b6c5b5219fe43d9fd766073d83a575ce | [] | no_license | krishnanunni-pr/Pyrhon-Django | 894547f3d4d22dce3fff14e88815122c12c145b5 | c59471f947ceb103bb27a19e8a2a160e8ada529b | refs/heads/master | 2023-07-29T19:40:38.199104 | 2021-09-09T18:12:24 | 2021-09-09T18:12:24 | 385,128,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | # re- regular pattern matching
# 1 x='[abc]' either a b or c
# 2 x='[^abc]' except abc
# 3 x='[a-z]' a to z
# 4 x='[A-Z]' A to Z
# 5 x='[a-zA-Z]' both lower and upper case are checked
# 6 x='[0-9]' check digits
# 7 x='[^a-zA-Z0-9]' special symbols
# 8 x='\s' check space
# 9 x='\d' check the digits
# 10 x='\D' except d... | [
"krishna@gmail.com"
] | krishna@gmail.com |
d307149d0de02758df154dff67751f94f1759286 | 234df74b8d2ff67e1ec1e44df6128e9506ad8ab1 | /NMS/utils/web_methods.py | 4e6206e0af932a9413147c1e85c0b3bc5a79f84a | [] | no_license | edxavier/tesis2015 | c1289bc648c054edde082e200beda1cfb6e9e27f | d04b20b67f9f1ef2e6d97a18b7bfa6466223384f | refs/heads/master | 2021-01-23T03:33:27.149595 | 2016-02-17T21:51:37 | 2016-02-17T21:51:37 | 33,018,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | __author__ = 'edx'
import requests
class HttpHelper(object):
def __init__(self, server_addr="127.0.0.1", server_port=443, url="/"):
self.addr = server_addr
self.port = server_port
self.url = url
#Crear un objeto que preserve la sesion
self.cli = requests.session()
s... | [
"edxavier05@gmail.com"
] | edxavier05@gmail.com |
cbfa0a174b59836ce36b5eef116812d3d85e62f4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03761/s670080011.py | 7810a6bcafbcdc06a68192b8bb1e99c7a4995263 | [] | 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 | 416 | py | import collections
n=int(input())
S=[]
for i in range(n):
s=list(str(input()))
cc=collections.Counter(s)
S.append(cc)
alphabet=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
ans=[]
for lets in alphabet:
nin=10**10
for i in range(n):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8ba445b5bb3dff67dbf68d777b8690ce2d0b63d0 | fca7958875d4650c6daeec7049fef02139db9eb1 | /mi/dataset/parser/hyd_o_dcl.py | e5f65d191062741de7535f40233ee8c4c7a9785e | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | oceanobservatories/mi-dataset | 36f08a076b24c40f91abd0a97e47a72ec85fc5e6 | 93aa7289f5f4788727f3b32f11d62f30ad88fd2f | refs/heads/master | 2020-04-04T04:25:22.372472 | 2017-02-24T17:06:23 | 2017-02-24T17:06:23 | 24,067,634 | 1 | 9 | null | 2016-06-29T23:24:46 | 2014-09-15T18:15:01 | Python | UTF-8 | Python | false | false | 3,641 | py | """
@package mi.dataset.parser
@file mi-dataset/mi/dataset/parser/hyd_o_dcl.py
@author Emily Hahn
@brief Parser for the hydrogen series o instrument through a dcl
"""
__author__ = 'Emily Hahn'
__license__ = 'Apache 2.0'
import re
from mi.core.log import get_logger
log = get_logger()
from mi.core.instrument.data_parti... | [
"ehahn@bbn.com"
] | ehahn@bbn.com |
b576e53001265fc799331a35f9b3196eb203246e | 9cd4e3e5c1da2dc8ef577d91d36f3f50110947c6 | /原电脑/study/beidaqingniao/day7/demo3.py | 3bf58baabd0563a2598f949ddb6143cb6e5916f1 | [] | no_license | sczhan/gsdiannao | 459d982c437339af92e775d0fce5236a5d4d18bc | 911736334dc23b03acbb844967ca62c791ef3b59 | refs/heads/main | 2023-06-09T01:00:45.915971 | 2021-06-25T17:52:39 | 2021-06-25T17:52:39 | 374,898,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | s = "hello world"
print(s.find("l"))
print(s.rfind("l", 0, -3))
print(s.find("L")) # find 未找到返回-1
print(s.index("l"))
print(s.rindex("l"))
# print(s.index("k")) index 未找到会报异常 ValueError
print("*" * 20)
print("1234".isdigit())
print("123ahb".isalpha())
print("12一千".isnumeric())
print("sg12".isalnum())
s = "hell... | [
"5481493@qq.com"
] | 5481493@qq.com |
f1249ffab8ec5ef6e647d0c15940072e29782bb4 | 76e8afe527e191e6291562c6140606c16d7385df | /tklive/scores/models.py | ec3ce21aa01cbd018e718ccb54d12c9162ed957c | [] | no_license | socek/tklive2013 | dfa896800713832d3f1b4a11f35aecf723e09328 | 2fa8c6fd099a66b7f84fc5df94d0a2b542a44f75 | refs/heads/master | 2021-01-22T05:16:34.001073 | 2013-02-25T13:14:43 | 2013-02-25T13:14:43 | 42,201,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,041 | py | # -*- encoding: utf-8 -*-
from django.db import models
class Team(models.Model):
name = models.CharField(u'Nazwa', max_length=100)
def __unicode__(self):
return self.name
player_status=(
('player', 'Gracz'),
('couch', 'Trener'),
)
class Player(models.Model):
team = models.ForeignKey(... | [
"msocek@gmail.com"
] | msocek@gmail.com |
ff46178a5d9b78382c27bf6e01f5ed5f5cb5f8a7 | 1a1c14b7a9ffc9f3ef4a64ca52cb8c40ae9f7f4b | /app/__init__.py | df9796121830d59869d6e9cd26bdc5ddaafd7b53 | [] | no_license | boyl/mblog | 71008ba45cc0625427dcf15c88a447188467d41d | 5933111dca855f74248d3fec2857fb7c5afa81fd | refs/heads/master | 2022-12-10T22:00:16.507135 | 2018-06-28T06:49:57 | 2018-06-28T06:49:57 | 137,972,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,844 | py | from flask import Flask, request, current_app
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
import logging
import os
import rq
from redis import Redis
from logging.handlers import SMTPHandler, RotatingFileHandler
from flask_mail ... | [
"1228417956@qq.com"
] | 1228417956@qq.com |
58c581df1d170b61a62973cd0a022cbfc430e130 | 764622f8890ba5b1415ba5bac6febf43b5937df9 | /Unit 14/u14_eval.py | a873663dc3d45bef78d4ca830ceae45b6468862d | [] | no_license | ckiekim/Python-Lecture-1907 | 70e034e61e55d435ef8896ca921342ec0057ba74 | 234df397657157cfac51fca6be1b7d09269da399 | refs/heads/master | 2022-02-15T14:16:05.518743 | 2019-07-26T08:24:34 | 2019-07-26T08:24:34 | 198,117,189 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | kor, eng, math, sci = map(int, input().split())
if kor<0 or kor>100 or eng<0 or eng>100 or math<0 or math>100 or sci<0 or sci>100:
print('잘못된 점수')
else:
average = (kor + eng + math + sci) / 4
if average >= 80:
print('합격')
else:
print('불합격')
| [
"ckiekim@naver.com"
] | ckiekim@naver.com |
786e381183bd8e2c5f39deb08afe22081a1a5632 | c3637d40aa610270f90cff46644984dc20c67e93 | /AI_proj/DataAugmentation.py | 33637c6ca7d9ba88dfe4edc9a15aad66147915bf | [] | no_license | olmozavala/covid_dl_ggo_cons | 9834cf09235ef3d1b8e391f02b39fb2e0c835ca7 | 80eea8a390815390a999455637dfe8bea1458530 | refs/heads/master | 2022-12-14T07:39:58.139441 | 2020-09-11T19:50:39 | 2020-09-11T19:50:39 | 294,792,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,604 | py | import numpy as np
import preproc.UtilsPreproc as utils
from scipy.ndimage.filters import gaussian_filter
def flipping(imgs, ctrs, flip_axis):
""" Flips images and contours in the specified axis:"""
tot_imgs = len(imgs)
tot_ctrs = len(ctrs)
# Flips the images
for c_img_idx in range(tot_imgs):
... | [
"olmozavala@gmail.com"
] | olmozavala@gmail.com |
eb86a78ba1b0ab39075d19b0e019e05e47e0b2c5 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/VAV_Heating_Command.py | 8d181cb268dc1f6e50d4649c01e54299c736931c | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.Heating_Command import Heating_Command
class VAV_Heating_Command(Heating_Command):
rdf_type = Namespace('htt... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
9e4054700766277d158a4cc4833dda73ebdddc9d | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/cd-24_9052/sdB_cd-24_9052_lc.py | 73e1c62f92a70184bb0767255190c885369b0c0c | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[156.462083,-24.889003], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_cd-24_9052/sdB_cd-24_9052_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name__... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
3ede3f6cd0242c3f0d90c30447a038d9dda79aaa | 282d04bea868aac41810eddbc0cdab77595ae813 | /sources/en/f/flyinglines.py | d595943fadaaa243e2e0b919a76abcfa23d8cf30 | [
"Apache-2.0",
"GPL-3.0-only"
] | permissive | Kukkerem/lightnovel-crawler | 50f15aeadb1e476a75831bdfba23c904ab5b3abe | b2fb4dd7ad9c6e2df5799b8f6937fb2f2e6088cd | refs/heads/master | 2023-09-03T15:36:23.620686 | 2023-08-27T18:33:24 | 2023-08-27T18:33:24 | 194,874,078 | 0 | 0 | Apache-2.0 | 2019-07-02T13:58:36 | 2019-07-02T13:58:35 | null | UTF-8 | Python | false | false | 3,617 | py | # -*- coding: utf-8 -*-
import logging
from datetime import datetime
from hashlib import md5
from urllib.parse import urlparse
from lncrawl.core.crawler import Crawler
logger = logging.getLogger(__name__)
class FlyingLinesCrawler(Crawler):
base_url = "https://www.flying-lines.com/"
def read_novel_info(self... | [
"dipu.sudipta@gmail.com"
] | dipu.sudipta@gmail.com |
f9084a48df0a516f376916d6782c36ed5533f756 | c6b5725f1317a5b16d8025365826acb3560cb9a6 | /Geometry/CMSCommonData/python/cmsExtendedGeometry2026D66XML_cfi.py | 0530b9131a5baf02a54697cd85a6c242dc688062 | [
"Apache-2.0"
] | permissive | cms-patatrack/cmssw | d9f090b937225545911aa8d4ae8495ca230b50ee | 0a92cc7e09ca63a2cf505e99d6d890703ffe75dc | refs/heads/CMSSW_11_3_X_Patatrack | 2023-08-17T02:22:06.066802 | 2021-04-06T10:59:15 | 2021-04-06T10:59:15 | 113,325,755 | 4 | 7 | Apache-2.0 | 2021-09-01T21:23:46 | 2017-12-06T14:20:07 | C++ | UTF-8 | Python | false | false | 8,072 | py | import FWCore.ParameterSet.Config as cms
# This config was generated automatically using generate2026Geometry.py
# If you notice a mistake, please update the generating script, not just this config
XMLIdealGeometryESSource = cms.ESSource("XMLIdealGeometryESSource",
geomXMLFiles = cms.vstring(
'Geometry/CM... | [
"sunanda.banerjee@cern.ch"
] | sunanda.banerjee@cern.ch |
f3d6ba6f1e9d51c8310a8dd09923de9713c7b828 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /apigateway_write_2/request-validator_update.py | 8d59c16f5f7ec3e1ecc11cd7aaf97470df4e023b | [] | 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 | 1,405 | 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_two_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/apigateway/update-request-validator.html
if __na... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
dbf4abfa555faba0ff3f841af3f14dfd8d249e1a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /66xK46dhKFCe5REDg_19.py | 5f1bac280cea9a4fbe0409a30181308f5cb7b27b | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py |
def x_and_o(board):
board = [l.split("|") for l in board]
for r in range(3):
for c in range(3):
if board[r][c] == " ":
tests = [all(board[r][i] == "X" for i in range(3) if i != c),
all(board[i][c] == "X" for i in range(3) if i != r),
r == c and all(board[i][i] ==... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e59b838d7ffe3323ebcf3417317b756fe7dc4434 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_boss.py | 13ad39e526b1148d9c8cac450b7feaea4ca9547d | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py |
#calss header
class _BOSS():
def __init__(self,):
self.name = "BOSS"
self.definitions = [u'to tell someone what to do all the time: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'verbs'
def run(self, obj1 = [], obj2 = []):
return self.jsondata
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.