blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23d44eef4f0999f81021921c669b70a8abf10c82 | daeb851843a55ca3f34008765ebf8ff18c0d1ecd | /LL/page_object.py | b343f01ab97ca8d9b5a5378d41005f0f05b768ae | [] | no_license | Cola1995/Py | f5066df0ef5b60183f5e5e2ec6b77b2be536e7f8 | bab82d8f5aae18e612dbe9bcd38f0d4260463b16 | refs/heads/master | 2020-04-08T06:30:36.212074 | 2018-12-27T06:14:53 | 2018-12-27T06:14:53 | 159,099,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,832 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
import time
class Page(object):
'''基础类,用于页面对象类的继承'''
login='http://www.126.com'
def __init__(self,selenium_driver,base_url=login_url):
self.base_url=base_url
... | [
"991571566@qq.com"
] | 991571566@qq.com |
7e27e21ec2be3f0cfe1472b07ba46412a460a797 | 759f52976ad2cd9236da561ca254e11e08003487 | /part7/ex45/v2-replace-config/replacement_result.py | 4adea4014216b0100cfdcd8bde50cb4b26d7dd94 | [] | no_license | mbaeumer/fiftyseven | 57b571c3e09640a2ab0ed41e5d06643c12b48001 | d79b603d5b37bf1f4127d9253f8526ea3897dc08 | refs/heads/master | 2020-06-10T20:52:25.311992 | 2017-11-15T18:28:38 | 2017-11-15T18:28:38 | 75,877,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | #!/usr/bin/python
class ReplacementResult:
def __init__(self, config, content):
self.config = config
self.content = content
| [
"martin.baeumer@gmail.com"
] | martin.baeumer@gmail.com |
7a3e609fcf05b7eca4cfe7b4769b1f7eb50fe39a | e3b5698bc6a63551e0f30dc958428f2dd548eada | /homework/webtoon/migrations/0002_auto_20180215_1109.py | a86e1b9aba0e782e7cc0e3731216de107e578db3 | [] | no_license | standbyme227/stopout | 472021047af57a23c1a6c73db05d7c989e5baa16 | c33981e9ca143cdf6fd9c93664d90a50a07b45a3 | refs/heads/master | 2021-04-29T20:51:33.550436 | 2018-02-16T06:47:04 | 2018-02-16T06:47:04 | 121,605,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | # Generated by Django 2.0.2 on 2018-02-15 11:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('webtoon', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='webtoon',
name='img_url',
... | [
"standbyme227@gmail.com"
] | standbyme227@gmail.com |
f7097802ca48e1dc7adb1d85d44f5f6130f7a905 | 85554f18eb2f4db5fa57326e55c84c91abd97fb2 | /graphlayer/core.py | ba96c502660606fdb0bb2707941c6e4d2713b572 | [
"BSD-2-Clause"
] | permissive | mwilliamson/python-graphlayer | f6e58bd1e812aabb365a569d579ebcb5f8aaa51c | 7fe773fb2e07028d5cfc1f30523ad17ba405c689 | refs/heads/master | 2023-05-12T03:37:36.607591 | 2023-01-14T21:26:33 | 2023-01-14T21:26:33 | 144,635,452 | 28 | 7 | BSD-2-Clause | 2023-01-14T21:27:20 | 2018-08-13T21:25:50 | Python | UTF-8 | Python | false | false | 2,117 | py | from . import iterables
def create_graph(resolvers):
return define_graph(resolvers).create_graph({})
def define_graph(resolvers):
return GraphDefinition(resolvers)
class GraphDefinition(object):
def __init__(self, resolvers):
self._resolvers = iterables.to_dict(
(resolver.type, res... | [
"mike@zwobble.org"
] | mike@zwobble.org |
7b15c8ad37a0ad03a79f07873b58187b10f10f51 | 38d93c5fd72fee380ec431b2ca60a069eef8579d | /Baekjoon,SWEA, etc/SWEA/SWEA2105.py | 4e3c17854fc9101aa88779572cadeffd409f6287 | [] | no_license | whgusdn321/Competitive-programming | 5d1b681f5bee90de5678219d91cd0fa764476ddd | 3ff8e6b1d2facd31a8210eddeef851ffd0dce02a | refs/heads/master | 2023-01-01T01:34:22.936373 | 2020-10-24T11:05:08 | 2020-10-24T11:05:08 | 299,181,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,511 | py | """
이 문제는 상당히 복잡하다. 약 3시간에 걸쳐서 푼 문제로, 한번 다시 풀어볼 필요성이 굉장히 크다.
생각해야 할 부분이 많아서 문제 자체가 복잡하다..
이 문제를 다 풀고, 문제를 풀기위해서 생각해야 하는 부분들을 다시한번 정리해보았다.
1.가는 방향은 어딘데? -> 원래 기초적인 DFS/BFS문제들은 대부분 상,하,좌,우 만 나와서 거기에 항상 익숙해져 있다. 하지만 이 문제는
기본적으로 가는방향이 다르다. 따라서 우선은 가는방향(마름모꼴을 이루면서, 나중에 합쳐지게 dfs가 돌게) 잘 구현을 해야... | [
"blackgoldace@naver.com"
] | blackgoldace@naver.com |
6f408f78f4985ecc1686c686582bc51783bc1df1 | e81e09cdc62dcd196020dc01b07adc24faaee582 | /czsc/trader.py | b12513bed9ae6a6c6df4c34877ae940e6a8b09a8 | [
"MIT"
] | permissive | dingfengqian/czsc | 41cbd4155245ae8a50b51af485ae5516fea94156 | 00bfd91f0a0e27533cdd45b83b2fec197056b4b3 | refs/heads/master | 2023-02-27T18:58:48.810874 | 2021-01-28T11:48:56 | 2021-01-28T11:48:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,444 | py | # coding: utf-8
import pandas as pd
from datetime import datetime
from .factors import KlineGeneratorBy1Min, CzscFactors
from .data.jq import get_kline
from .enum import FdNine, FdFive, FdSeven, FdThree, Factors
class CzscTrader:
"""缠中说禅股票 选股/择时"""
def __init__(self, symbol, max_count=1000, end_date=None):
... | [
"zeng_bin8888@163.com"
] | zeng_bin8888@163.com |
a4ca3c5c84201afc3162db257b96a975c1498516 | 85f5dff291acf1fe7ab59ca574ea9f4f45c33e3b | /api/tacticalrmm/checks/migrations/0013_auto_20210110_0505.py | abfbe322f1a66fb00b4864d1b01ac60ec64e5721 | [
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sadnub/tacticalrmm | a4ecaf994abe39244a6d75ed2166222abb00d4f4 | 0af95aa9b1084973642da80e9b01a18dcacec74a | refs/heads/develop | 2023-08-30T16:48:33.504137 | 2023-04-10T22:57:44 | 2023-04-10T22:57:44 | 243,405,684 | 0 | 2 | MIT | 2020-09-08T13:03:30 | 2020-02-27T01:43:56 | Python | UTF-8 | Python | false | false | 393 | py | # Generated by Django 3.1.4 on 2021-01-10 05:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("checks", "0012_auto_20210110_0503"),
]
operations = [
migrations.AlterField(
model_name="checkhistory",
name="y",
... | [
"josh@torchlake.com"
] | josh@torchlake.com |
616e64a571f1f9e005417d5543fe7d7c7e3e386b | 47e819cb96e0e9f45419960d30753f027047c224 | /stockSpider/stockSpider/spiders/stockSpider_Mysql.py | 07da58c3433aa9dc81c8f259d7e65b28dc803254 | [] | no_license | 1141938529/ClassExercises | 3600d75aa559b6938f3efb5831dbec803489cac0 | 0082e81a6cded1c8332c4a8d79a4104bfd8ab1c9 | refs/heads/master | 2021-05-08T16:38:30.391977 | 2018-02-04T13:10:45 | 2018-02-04T13:10:45 | 120,165,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,442 | py | import scrapy
import time
from stockSpider.items import stockItem
class StockSpider(scrapy.Spider):
name = 'stockspider2'
start_urls = ['http://stock.10jqka.com.cn/']
stock_data = stockItem()
custom_settings = {
'ITEM_PIPELINES': {'stockSpider.pipelines.StockPipeline': 100, },
}
def p... | [
"1141938529@qq.com"
] | 1141938529@qq.com |
348002ee97e41ba31b8e636ed2d20c5119e807d7 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/vm/aaz/latest/sig/_list.py | e71eb6c7d1e9f264b494785f90083e5b52068ccc | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 16,595 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
ffc0214e985810cf932673154e187b4d8ef072ba | 060ce17de7b5cdbd5f7064d1fceb4ded17a23649 | /fn_remedy/tests/mocks/datatable_mock.py | 6afc05d176fb51eb4f60e7d1d4634a555752613f | [
"MIT"
] | permissive | ibmresilient/resilient-community-apps | 74bbd770062a22801cef585d4415c29cbb4d34e2 | 6878c78b94eeca407998a41ce8db2cc00f2b6758 | refs/heads/main | 2023-06-26T20:47:15.059297 | 2023-06-23T16:33:58 | 2023-06-23T16:33:58 | 101,410,006 | 81 | 107 | MIT | 2023-03-29T20:40:31 | 2017-08-25T14:07:33 | Python | UTF-8 | Python | false | false | 3,534 | py | # (c) Copyright IBM Corp. 2021. All Rights Reserved.
from pytest_resilient_circuits import BasicResilientMock, resilient_endpoint
import requests_mock
import json
import six
class DTResilientMock(BasicResilientMock):
"""DTResilientMock a Mock class which inherits the base
endpoints and adds mock endpoints for... | [
"shane.curtin@ie.ibm.com"
] | shane.curtin@ie.ibm.com |
3fa858904b5ef254d2669f70c272e376e8302d88 | cf5b2850dc9794eb0fc11826da4fd3ea6c22e9b1 | /xlsxwriter/test/comparison/test_print_options02.py | 0c43e2d0203b0635a207340a0ab2f4eec5d330e6 | [
"BSD-2-Clause"
] | permissive | glasah/XlsxWriter | bcf74b43b9c114e45e1a3dd679b5ab49ee20a0ec | 1e8aaeb03000dc2f294ccb89b33806ac40dabc13 | refs/heads/main | 2023-09-05T03:03:53.857387 | 2021-11-01T07:35:46 | 2021-11-01T07:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
c7b2ada29b4f10fd565b5a55c71e32c9fae15022 | 536584e323161a97db79453b1aa192c89979a755 | /tests/fixtures/defxmlschema/chapter21/example21083.py | 7c2028b325e23a198f25c7a11efe69dc5736746a | [
"MIT"
] | permissive | brunato/xsdata | c792ae2749afb4ac5704f77b138f0f871002100c | dfa84cfd6be5373c929f5bc4178fe1fb7b7d2e3b | refs/heads/master | 2022-04-13T09:59:57.008871 | 2020-04-04T09:01:42 | 2020-04-04T09:06:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from dataclasses import dataclass, field
from typing import Optional
@dataclass
class CustomerType:
"""
:ivar name:
"""
name: Optional[str] = field(
default=None,
metadata=dict(
name="name",
type="Element",
namespace="http://datypic.com/all",
... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
3c56f6119b20f0df091f3ba81613185aebbd9d45 | c54a6b935007f71c7e5fba8caf590d948cfa65cf | /contributors/models.py | e601c727116d75ebc1ba8892eaa77e69cb6c65a7 | [] | no_license | nescode/contributor | 6896de8fb0edaf8c1054e8a49958d3373f9aacec | 18383e86309e5f1db221cda5d09b02bf98bad623 | refs/heads/master | 2023-08-07T02:40:18.214732 | 2020-07-07T06:44:22 | 2020-07-07T06:44:22 | 262,589,144 | 0 | 3 | null | 2021-09-22T18:59:30 | 2020-05-09T14:31:18 | Python | UTF-8 | Python | false | false | 601 | py | from django.db import models
ROLE_CHOICES = (
('developer', 'developer'),
('designer', ' designer'),
('documentation team', 'documentation team'),
)
class CreateContributor(models.Model):
name = models.CharField(max_length=255)
email = models.EmailField(max_length=255)
phone = models.CharFie... | [
"dilipsapkota.d@gmail.com"
] | dilipsapkota.d@gmail.com |
744205388ea80c3088f6f57e7efd3534b2f233ea | 05a7aba91ba6f1a774bd21d0d4085b02ecaee189 | /Community/service_point_watcher/sp_watcher.py | 4fab3b4d531afbd4a94cbe763f7cd63b28ac9eb7 | [
"Apache-2.0",
"LicenseRef-scancode-commercial-license"
] | permissive | hungtranusa/gateway-workflows | 568dcb54793fef812ebc2ee0014e3d0f50032ba5 | 379a5d323818befcfe5d2764f93db5b41b9b9884 | refs/heads/master | 2020-12-02T23:07:02.248091 | 2019-12-20T13:03:17 | 2019-12-20T13:03:17 | 231,142,780 | 0 | 0 | Apache-2.0 | 2019-12-31T20:20:45 | 2019-12-31T20:20:44 | null | UTF-8 | Python | false | false | 11,641 | py | # Copyright 2019 BlueCat Networks (USA) Inc. and its affiliates
# -*- coding: utf-8 -*-
#
# 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
#
# Unle... | [
"rtamura@bluecatnetworks.com"
] | rtamura@bluecatnetworks.com |
8737ee08d054ee98756e8737324359bab8119602 | 93289539257faa129aa2d17a42148f7d73ce4e9e | /Python/2523_StarPrint.py | 120f583317657dfe94f2a603557e8cb717213ea7 | [] | no_license | Manngold/baekjoon-practice | d015dd518144a75b5cb3d4e831d6c95a3c70544f | 54f9efcb6460647c2a0f465731b582fe6de89cf3 | refs/heads/master | 2021-06-25T13:04:23.162531 | 2020-10-14T08:34:28 | 2020-10-14T08:34:28 | 148,895,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | n = int(input())
for i in range(1, n+1):
print("*" * i)
for i in range(n - 1, 0, -1):
print("*" * i)
| [
"jsw4820@gmail.com"
] | jsw4820@gmail.com |
285e62bda18170573f5265c179ae55cc4ae29976 | dbba757ea53e2dc2ccf8b4d8683b06134f927091 | /licitacao/apps.py | add51d681d3236c614a3f025110522f1fa893523 | [
"MIT"
] | permissive | WesGtoX/audit | 144d3ac4e1b5381bf9666427220faaa41b961aa7 | c260cac2ab0499e75c6b9fbc5fe40708a81c3346 | refs/heads/master | 2021-06-24T21:02:13.025855 | 2019-10-08T21:48:49 | 2019-10-08T21:48:49 | 213,088,213 | 2 | 0 | MIT | 2021-03-19T10:37:40 | 2019-10-06T00:16:09 | CSS | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class LicitacaoConfig(AppConfig):
name = 'licitacao'
| [
"wesley_gto_x@yahoo.com.br"
] | wesley_gto_x@yahoo.com.br |
361d6992dff363f16c32d032157aec6bf96b77e7 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/FCU_Discharge_Fan_VFD_Speed_Status.py | 67d7b76a4f9139b1e9c6dea660ff014753e989cf | [] | 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 | 699 | 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.FCU_Fan_Status import FCU_Fan_Status
from brick.brickschema.org.schema._1_0_2.Brick.Discharge_Fan_VFD_Speed_Status... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
29cddd507b018e9e9a65049588042e6995ffd44f | 8d90e2eae476ecbe88d46ef2f03fe7ba92cc733b | /Programming Basics with Python/For-cycle/For_C_lab_ex9_left_right_sum.py | 04d51d4f9ce78c72726b3f293a70e9907e509856 | [] | no_license | KaterinaMutafova/SoftUni | c3f8bae3c2bf7bd4038da010ca03edc412672468 | 7aeef6f25c3479a8d677676cb1d66df20ca0d411 | refs/heads/main | 2023-03-08T10:53:49.748153 | 2021-02-19T15:55:13 | 2021-02-19T15:55:13 | 317,597,660 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | n = int(input())
left_sum = 0
right_sum = 0
for i in range(n):
num_1 = int(input())
left_sum += num_1
for i in range(n):
num_2 = int(input())
right_sum += num_2
if left_sum == right_sum:
print(f"Yes, sum = {left_sum}")
else:
diff = abs(left_sum - right_sum)
print(f"No, d... | [
"noreply@github.com"
] | KaterinaMutafova.noreply@github.com |
15b34b27bee228e2af26d52019fb4474cccf8260 | ef8b6298ae5d247c65454eeeb7b1198b18fe5580 | /CodingDojangPython/turtle_graphics_8.py | b1a6b1cd79d1f51ce5914ab864c944f2c257fb85 | [] | no_license | Supreme-YS/PythonWorkspace | 01728fc06b9f1ce9d48de8ab662c0b528c27df1d | 9b1d17c805e45285eb3594da84df02939cab2a85 | refs/heads/master | 2023-07-28T16:44:36.930819 | 2021-09-06T14:03:50 | 2021-09-06T14:03:50 | 289,924,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | import turtle as t
t.shape('turtle')
t.speed('fastest') # 거북이 속도를 가장 빠르게 설정
for i in range(300): # 300번 반복
t.forward(i) # i만큼 앞으로 이동. 반복할 때마다 선이 길어짐
t.right(91) # 오른쪽으로 91도 회전
| [
"dudtjr1225@gmail.com"
] | dudtjr1225@gmail.com |
be6e6e07769c9f3eeeaea821620b48fd28531e98 | 3b1229c458aa232bfcf11cd6da5f1275e9bb3a8f | /python/Python基础/截图和代码/面对对象3、异常、模块/PaxHeader/04-异常.py | a8ffe02dfb89db7b7127dbb4a18f6bb56302af57 | [] | no_license | sunjianbo/learning | 4fee3ddc5e3d4040a49f2ef3e6f239fd6a67b393 | 384cb4e73cc67e390ee2f4be0da9fe0319d93644 | refs/heads/master | 2021-02-17T16:32:22.557614 | 2020-03-09T05:29:51 | 2020-03-09T05:29:51 | 245,111,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | 82 path=Python基础/截图和代码/面对对象3、异常、模块/04-异常.py
| [
"sunjianbo"
] | sunjianbo |
fd6d861b9e060cf2c1d270f546716f557e8a67da | aab5143d8ee3ba15c9367b146287b7d5a6a41052 | /tests/command_download_aoj.py | 53a02cb26d8c3e6fc67e0fa6750e8afed449ff91 | [
"MIT"
] | permissive | kfaRabi/online-judge-tools | fc1e5796446a3f1b729507e018203aeff3193e3f | 79de8d37e1aa78a7c4c82c6a666f1f1602caf545 | refs/heads/master | 2020-04-23T19:49:57.394790 | 2019-02-25T20:43:43 | 2019-02-26T09:15:27 | 171,419,052 | 0 | 0 | MIT | 2019-02-19T06:34:26 | 2019-02-19T06:34:23 | Python | UTF-8 | Python | false | false | 5,208 | py | import os
import unittest
import tests.command_download
class DownloadAOJTest(unittest.TestCase):
def snippet_call_download(self, *args, **kwargs):
tests.command_download.snippet_call_download(self, *args, **kwargs)
def test_call_download_aoj_DSL_1_A(self):
self.snippet_call_download('http:/... | [
"kimiyuki95@gmail.com"
] | kimiyuki95@gmail.com |
e68f96a3c8e0dccbe87352d539826d189e75c6ea | 663d429e1f552ef958d37cfe4a0707354b544a9a | /新建文件夹/theading_demo.py | 7d32b29371111338cbc1370c36a639394c73a531 | [] | no_license | nie000/mylinuxlearn | 72a33024648fc4393442511c85d7c439e169a960 | 813ed75a0018446cd661001e8803f50880d09fff | refs/heads/main | 2023-06-20T07:46:11.842538 | 2021-07-15T13:46:43 | 2021-07-15T13:46:43 | 307,377,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,187 | py | # import time
#
# def lo1():
# time.sleep(4)
# print('<------lo1-------->')
#
#
# def lo2():
# time.sleep(2)
# print('<------lo2-------->')
#
#
# def main():
# t1 = time.time()
# lo1()
# lo2()
# t2 = time.time()
#
# print('total time: {}'.format(t2-t1))
#
# if __name__ == "__main__":... | [
"1073438012@qq.com"
] | 1073438012@qq.com |
f7108362ca0be8b69099cbdc38f4759264539fd8 | dc3c39d4dcaa1c4e4bd0e9405642159580a87767 | /findlove/settings.py | 869d4bdd5287dbfc4c64cd3e62d58556558361bc | [] | no_license | ylearner/findlove | f0d98a5ed99565ee8db77ab8b767b4c874d28260 | d5dd1ebe98fbb827e52088e98357b16accbcf3c8 | refs/heads/master | 2022-02-23T04:54:31.036032 | 2019-07-20T10:35:16 | 2019-07-20T10:35:16 | 197,905,314 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,273 | py | """
Django settings for findlove project.
Generated by 'django-admin startproject' using Django 1.11.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import o... | [
"you@example.com"
] | you@example.com |
862748235151ed238905e5074eb14d4850a9d11c | 20927c6b6dbb360bf0fd13d70115bdb27e7196e7 | /0x0A-python-inheritance/0-main.py~ | a0817dce1ea8a7a0fc19bf8c91bb07dc3abd1dcc | [] | no_license | PauloMorillo/holbertonschool-higher_level_programming | 27fc1c0a1ae5784bd22d07daaedb602ee618867d | 8a42a60aa4ea52b5cc2fb73e57f38aa6c5196c98 | refs/heads/master | 2021-08-16T17:13:45.568038 | 2020-07-29T01:20:25 | 2020-07-29T01:20:25 | 207,305,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/usr/bin/python3
lookup = __import__('0-lookup').lookup
class MyClass1(object):
pass
class MyClass2(object):
my_attr1 = 3
def my_meth(self):
pass
print(lookup(MyClass1))
print(lookup(MyClass2))
print(lookup(int))
| [
"pauloan@hotmail.com"
] | pauloan@hotmail.com | |
413873a9e910423c4d7a172c6080316e21adde8a | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg/scg_Custom_Rules/test_c155535.py | 686cb9c5c388b3fdef651d4013c96e2f837745fe | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,636 | py | import pytest
import time
import sys
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
from page_obj.scg.scg_def import *
from page_obj.scg.scg_button import *
from page_obj.scg.scg_def_firewall import *
from page_obj.scg.scg_def_sslvpn import *
from page_obj.scg.sc... | [
"15501866985@163.com"
] | 15501866985@163.com |
79c1195ef4085e2d612189df158046cecb1a24af | 425db5a849281d333e68c26a26678e7c8ce11b66 | /LeetCodeSolutions/LeetCode_0763.py | ef5ed806ec733581044ae63e06a8c6bc47b835e1 | [
"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 | 607 | py | class Solution:
def partitionLabels(self, S: str) -> List[int]:
parts = {}
for idx, c in enumerate(S):
if c not in parts:
parts[c] = [idx, idx]
else:
parts[c][1] = idx
_parts = [v for k, v in parts.items()]
_parts.sort()
... | [
"lih627@outlook.com"
] | lih627@outlook.com |
24f2c153c0a666812ed68fc440c33f3285d0bae6 | 44cbc067afcced7fac7ad7f4584d0d16d66bf5b4 | /ansiblemetrics/general/lines_blank.py | 15d2145c0b6d973e6c3bf69221cf9e16cf3bbb2d | [
"Apache-2.0"
] | permissive | ElsevierSoftwareX/SOFTX_2020_231 | fb75820e99dbd6f2380146ecf5b8893d69942260 | e3ad95ebdc324ae308669d437ec60bd726580102 | refs/heads/master | 2023-01-18T22:53:04.785576 | 2020-11-18T11:52:39 | 2020-11-18T11:52:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | from ansiblemetrics.lines_metric import LinesMetric
class LinesBlank(LinesMetric):
""" This class is responsible for providing the methods to count the blank lines of code (bloc) in a given .yaml file"""
def count(self):
bloc = 0
for l in self.yml.splitlines():
if not ... | [
"stefano.dallapalma0@gmail.com"
] | stefano.dallapalma0@gmail.com |
46721e360b7369375cc7838c189ffee765b1c1cf | 8d78ee989a82bbff99d72facaa471a686961cb5b | /djangoProject/venv/Lib/site-packages/PIL/PcdImagePlugin.py | 47a8708f7f16402699fe1f1bac76fcb0c71268b4 | [] | no_license | jaydevdesai/Course_Enrollment_System | f12ad576bba73f23f49093a73e363742f87f86a7 | 0e3ebe5af76ab6b42c31d18ac45a7ef5b4d6bf59 | refs/heads/master | 2023-06-07T06:31:51.921429 | 2021-07-04T13:52:02 | 2021-07-04T13:52:02 | 382,835,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | #
# The Python Imaging Library.
# $Id$
#
# PCD file handling
#
# History:
# 96-05-10 fl Created
# 96-05-27 fl Added draft mode (128x192, 256x384)
#
# Copyright (c) Secret Labs AB 1997.
# Copyright (c) Fredrik Lundh 1996.
#
# See the README file for information on usage and redistribution.
#
from .... | [
"jaydevdesai15@gmail.com"
] | jaydevdesai15@gmail.com |
1bc68658fddf40b1db193f9142a8e2a0bc57e007 | a7ded5d3d19a98e61a44189cffe3703f7938e0db | /xero_python/accounting/models/employee.py | 79e810326968c282fbed3ab4b731143981f9d788 | [
"MIT"
] | permissive | liseekeralbert/xero-python | dfd1076344f763d74f81f701e32600cf88bcc7b2 | d27ab1894ecd84d2a9af0ca91583593756b21ab3 | refs/heads/master | 2022-12-16T07:41:14.331308 | 2020-09-18T17:12:35 | 2020-09-18T17:12:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,895 | py | # coding: utf-8
"""
Accounting API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: 2.3.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_pytho... | [
"sid.maestre@gmail.com"
] | sid.maestre@gmail.com |
397f19d4b75b7aea4234abb4b8304525b1030cbe | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/mon/target.py | cabbe846fbe9d58285c5d527f867aaecdc092217 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 5,412 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
2fc476b25c16b8bdd9f4e0e6b1bd076670904495 | 733ce69fcc11ea5ceed3783c6aa256f15510fcad | /venv/lib/python3.8/site-packages/pip/_vendor/html5lib/treewalkers/__init__.py | 232dd95d2b2e6939f429a9ac6d5ebb44041e57fc | [] | no_license | ethanbahmanyari0122/scooteq | c7fc25ab6619b43d8dbe5c5e44e9412ebbc700ba | ca5bf60cdacd92f41e318b23766316f4cd4db5fa | refs/heads/master | 2023-06-01T23:57:03.671517 | 2021-06-18T10:35:31 | 2021-06-18T10:35:31 | 377,186,463 | 1 | 0 | null | 2021-06-18T08:53:09 | 2021-06-15T14:12:29 | Python | UTF-8 | Python | false | false | 5,723 | py | """A collection of modules for iterating through different kinds of
tree, generating tokens identical to those produced by the tokenizer
module.
To create a tree walker for a scooteq type of tree, you need to
implement a tree walker object (called TreeWalker by convention) that
implements a 'serialize' method which ta... | [
"70198067+ethanbahmanyari0122@users.noreply.github.com"
] | 70198067+ethanbahmanyari0122@users.noreply.github.com |
109b898a3d962708caae6619f13ebf7b6b6a54c2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02239/s041311605.py | e539baf989142410359c23b219a92f876dc2bf59 | [] | 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 | 702 | py | # -*- coding: utf-8 -*-
import sys
from collections import deque
sys.setrecursionlimit(10 ** 9)
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
INF=float('inf')
N=INT()
nodes=[[] for i in ra... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fe289312a128747beaccaa044fd07f24db8438cf | c098a0f39cc448ea06bb9e61f4b8155d9feeee82 | /vsts/vsts/test/v4_1/models/test_iteration_details_model.py | 535993773b4bc11bd85c9542a49f8cf105bc9dac | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | nimisha-srinivas/vsts-python-api | 360713f009f948a425ccf5c65ded4ed9d79df07e | 666db9dc30b5bdee026a2534dc2ab3965fad285c | refs/heads/master | 2020-03-13T02:38:13.461082 | 2018-04-23T16:27:04 | 2018-04-23T16:27:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,904 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"tedchamb@microsoft.com"
] | tedchamb@microsoft.com |
13c1a4c6632f875df3a07fa3d9fe9b8490999779 | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp86_1500.py | 75ab23a87ef4476fdd4b40decf942eef1ee61be9 | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,816 | py | ITEM: TIMESTEP
1500
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
2.9806737844785403e-01 4.6901932621545264e+01
2.9806737844785403e-01 4.6901932621545264e+01
2.9806737844785403e-01 4.6901932621545264e+01
ITEM: ATOMS id type xs ys zs
8 1 0.11971 0.0675017 0.0615897
35 1 0.0657462 0.132649 0.0698687
130 1 0.068449... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
147f74e7695a23f54e4d60422aa134405e303107 | b167407960a3b69b16752590def1a62b297a4b0c | /tools/project-creator/Python2.6.6/Lib/ctypes/test/test_varsize_struct.py | f4c25715a02e5cb28aa1eee72294595b8126bbb1 | [
"MIT"
] | permissive | xcode1986/nineck.ca | 543d1be2066e88a7db3745b483f61daedf5f378a | 637dfec24407d220bb745beacebea4a375bfd78f | refs/heads/master | 2020-04-15T14:48:08.551821 | 2019-01-15T07:36:06 | 2019-01-15T07:36:06 | 164,768,581 | 1 | 1 | MIT | 2019-01-15T08:30:27 | 2019-01-09T02:09:21 | C++ | UTF-8 | Python | false | false | 1,956 | py | from ctypes import *
import unittest
class VarSizeTest(unittest.TestCase):
def test_resize(self):
class X(Structure):
_fields_ = [("item", c_int),
("array", c_int * 1)]
self.failUnlessEqual(sizeof(X), sizeof(c_int) * 2)
x = X()
x.item ... | [
"278688386@qq.com"
] | 278688386@qq.com |
4749151995a180d653b3e898e082677a1668e88a | 139617b9e7c7dbbc592170a761a2f9fb1ee06734 | /main_kaggle.py | 0300f2b589b53fdf7d932cb6bf1cd133dfcab12b | [] | no_license | ANKITPODDER2000/FSP_ML_Project | 09aecb7d803a217a710914e6369ac4a790ec6424 | bba6cf8f70f9c6977654856a8be8de75ebf22f77 | refs/heads/master | 2022-12-14T06:21:18.370814 | 2020-09-18T17:15:50 | 2020-09-18T17:15:50 | 295,822,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,817 | py | # -*- coding: utf-8 -*-
"""Untitled7.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1N_Vdb2XxxCwvUDqTVVT7hoS0qYL73aSw
from google.colab import files
files.upload()
! mkdir ~/.kaggle
! cp kaggle.json ~/.kaggle/
! chmod 600 ~/.kaggle/kaggle.json... | [
"ankitpodder0211@gmail.com"
] | ankitpodder0211@gmail.com |
52f4054f55228ea0919d84539947c10ee02a97c2 | ad963dc590fe3ee16fe70674ffa9a77a3462a2d2 | /taskManager/migrations/0011_auto_20200210_1539.py | 3b5756687a8bcd93a9876ba0408a8f364cf10d02 | [] | no_license | ShuheiKuriki/task_manager | 564dc1a646efdd288ff31bc9044981aecbd6db78 | f5d4a53a758c64615f22c69baae59b36dd5dab1f | refs/heads/master | 2023-05-12T11:06:11.388036 | 2023-01-15T09:12:37 | 2023-01-15T09:12:37 | 234,110,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | # Generated by Django 3.0.2 on 2020-02-10 06:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('taskManager', '0010_dele... | [
"shukuri.7336.8@gmail.com"
] | shukuri.7336.8@gmail.com |
b3fcb829703ca9ecdd728c1793c5b8f9213bfd5c | 1a2ca64839723ede3134a0781128b0dc0b5f6ab8 | /ExtractFeatures/Data/kracekumar/gettowork.py | fe439f5f1fff77243040ee035dd7483d80428c15 | [] | no_license | vivekaxl/LexisNexis | bc8ee0b92ae95a200c41bd077082212243ee248c | 5fa3a818c3d41bd9c3eb25122e1d376c8910269c | refs/heads/master | 2021-01-13T01:44:41.814348 | 2015-07-08T15:42:35 | 2015-07-08T15:42:35 | 29,705,371 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | def reducelist(elem):
nitems = len(elem)
if nitems > sum(elem):
return -1 # IMPOSSIBLE
empty_list = [0 for i in range(nitems)]
elem.sort()
#elem.reverse()
count = 0
while (sum(empty_list) != nitems):
each = elem.pop()
count += 1
for i in range(0,len(empty_list... | [
"vivekaxl@gmail.com"
] | vivekaxl@gmail.com |
1d27f416efb6fa46af660588f8d141cf7590b0bc | 0494c9caa519b27f3ed6390046fde03a313d2868 | /build/scripts/master/unittests/annotator_test.py | f78a2133dfdb9739b2a95aed77ab6233a8dc1649 | [] | no_license | mhcchang/chromium30 | 9e9649bec6fb19fe0dc2c8b94c27c9d1fa69da2c | 516718f9b7b95c4280257b2d319638d4728a90e1 | refs/heads/master | 2023-03-17T00:33:40.437560 | 2017-08-01T01:13:12 | 2017-08-01T01:13:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,919 | py | #!/usr/bin/env python
# Copyright (c) 2012 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.
""" Source file for annotated command testcases."""
import os
import time
import unittest
import test_env # pylint: disable=W061... | [
"1990zhaoshuang@163.com"
] | 1990zhaoshuang@163.com |
06a236c2de21ac9825557737984acf1f6c49d267 | 993bb247b983874a882f4933508601fd0ab5f195 | /airflow/kubernetes/pod_runtime_info_env.py | c7937e23ddc25a5ca6ff407f8ea87db0ec104754 | [
"Apache-2.0",
"BSD-3-Clause",
"Python-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | franloza/airflow | 0dcb077d1418ae2f83d5ddef1d384184cfd54946 | 0224105343f8f37f243411c70d37c6ee0f0a8f25 | refs/heads/master | 2020-06-02T11:52:02.310756 | 2019-06-10T09:26:06 | 2019-06-10T09:26:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | 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 not u... | [
"ash_github@firemirror.com"
] | ash_github@firemirror.com |
9ef4bc80084e942c3e0264adedc1dce137002ed9 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/VBSjjlnu/Full2017v7/configuration_test_tau21wp_2017.py | 5a6dff8102aa14fe4ce1a29741c1c293111bfbf4 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 1,302 | py | # example of configuration file
treeName= 'Events'
tag = 'test_tau21wp_2017'
direc = "conf_test_tau21wp"
# used by mkShape to define output directory for root files
outputDir = 'rootFile_'+tag
# file with TTree aliases
aliasesFile = direc+'/aliases.py'
# file with list of variables
variablesFile = direc+'/variabl... | [
"davide.valsecchi@cern.ch"
] | davide.valsecchi@cern.ch |
9db9ca8bc1f8cda57c69c3a2f593776bdb60eeb6 | bfbe642d689b5595fc7a8e8ae97462c863ba267a | /src/CyPhyPET/Resources/zip.py | 5ee5bf64d4dce688e9cf9be0eb40b6c5af188e56 | [
"LicenseRef-scancode-other-permissive"
] | permissive | mcanthony/meta-core | 0c0a8cde1669f749a4880aca6f816d28742a9c68 | 3844cce391c1e6be053572810bad2b8405a9839b | refs/heads/master | 2020-12-26T03:11:11.338182 | 2015-11-04T22:58:13 | 2015-11-04T22:58:13 | 45,806,011 | 1 | 0 | null | 2015-11-09T00:34:22 | 2015-11-09T00:34:22 | null | UTF-8 | Python | false | false | 868 | py | #!/usr/bin/python
import zipfile
import os
import sys
import os.path
path_join = os.path.join
if sys.platform == 'win32':
def path_join(*args):
return '\\\\?\\' + os.path.join(os.getcwd(), os.path.join(*args))
output_filename = 'source_data.zip'
if os.path.exists(output_filename):
os.remove(output_fi... | [
"kevin.m.smyth@gmail.com"
] | kevin.m.smyth@gmail.com |
0472e752dc24ddaf0d91505984789b83cdf34efd | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /components/feature_engagement/DEPS | f25c147bc846d9c605930e33ad2974793f4f91cd | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 226 | include_rules = [
"-content",
"+components/feature_engagement/internal/jni_headers",
"+components/feature_engagement/features.h",
"+components/flags_ui",
"+components/keyed_service",
"+components/leveldb_proto",
]
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
e4b55f125082613aecd55dc5804faaa01d106542 | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py | 5fe5f16c0bd50ff115a8936cb43677c9ed237bf8 | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 58,269 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
277f7795b863efce66e36fe0d3af9d010aeeb97f | 9ae08906602af5eacec43d60e5e428269bf24eb1 | /detection.py | 648538a99d8aa1cf5d30ae48f7af2a87f8b59b77 | [] | no_license | yangzhaonan18/TSDcv2 | 9f73278979542d1a40ced5aa152bbc7fa363398c | e9cb0fefc7177db93510b7bc5ca1bb86e32571c6 | refs/heads/master | 2020-04-04T19:39:08.138349 | 2019-03-18T04:54:36 | 2019-03-18T04:54:36 | 156,214,910 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,944 | py | # -*- coding:utf-8 -*-
import cv2
from cal_wh_ratio import cal_wh_ratio
from Crop_cnt import Crop_cnt
from cal_color_ratio import cal_ratio
from find_crop_center import find_crop_center
def detection(frame, BinColors, color, contours, i): # 判断是否是需要识别的对象 是返回1 否为0
"""
:param frame: 一张没有处理过的原始图片
:param Bin... | [
"1040238158@qq.com"
] | 1040238158@qq.com |
56c463ba7c4f3619bcfee2dca9180a72df2723b2 | b72985ae7ab123f855e024814e70173fde84b43e | /DAYS/Day_38/django_training/animal_info/venv/lib/python3.8/token.py | 2e7165bbfd5fb1fab7ab6e27b9eba6e14b96a369 | [] | no_license | raziel5746/BOOTCAMP | 522da4526ded4225ba95c60146fd13fb5129c519 | 22088ab622b34ad8ae98e0fe3e5edc592a75ea0c | refs/heads/master | 2021-09-23T20:32:01.422171 | 2021-03-30T20:51:05 | 2021-03-30T20:51:05 | 218,781,276 | 0 | 0 | null | 2021-09-22T18:54:00 | 2019-10-31T14:10:28 | Python | UTF-8 | Python | false | false | 57 | py | /home/raziel/.pyenv/versions/3.8.0/lib/python3.8/token.py | [
"raziel5746@gmail.com"
] | raziel5746@gmail.com |
9e87c0e877171415faf85154197b17b0bd660a82 | 5173c3e3956387a3f2ae8fcf4aed7c7a600dac78 | /Algorithm_Practice/Subset_BackTrackinig.py | 3179a5128a63a3e2612e05b9a06d76ea6127d75a | [] | no_license | ma0723/Min_Algorithm | df75f53f6e89b7817d4b52d686effb8236a4ddac | b02d1043008cb32e22daa9d4207b9a45f111d66f | refs/heads/master | 2023-07-25T11:00:15.397093 | 2021-08-30T02:08:05 | 2021-08-30T02:08:05 | 375,613,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | #s: 선택된 원소들의 합
#r:남은 원소들의 합(선택가능한 것들중에)
def f(i, N, K,s, r ):
global cnt
if s == K:
# 부분집합의 원소의 합이 K인 것을 찾음
cnt+=1
return
# 이미 K를 찾았으므로 원소가 추가되면 K보다 커지므로 고려 X
elif i == N:
# 모든 원소를 고려함 K는 못찾아냄
return
elif s > K:
# 현재까지의 합이 K보다 커지는 경우
return
elif s ... | [
"ma0723@naver.com"
] | ma0723@naver.com |
46e0be022cc0d4d8eade37c191f8d95043a38b7f | 764073a5e32b99cd339114af76d55ba57e9bd0e0 | /backend/firearms_19698/wsgi.py | c61cc306c625059cadfa90373f4006022475937d | [] | no_license | crowdbotics-apps/firearms-19698 | 9f03ea38c697db6bc6af5be692d223b421b502eb | 87b369f37702294d78802c7a656f9d8f1eeaa9e0 | refs/heads/master | 2022-12-02T22:32:37.130766 | 2020-08-21T08:58:05 | 2020-08-21T08:58:05 | 289,224,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for firearms_19698 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
93ebf812cf2dc1ab6fe7dacb49a0940fadec933e | 9e549ee54faa8b037f90eac8ecb36f853e460e5e | /venv/lib/python3.6/site-packages/pylint/test/functional/bad_reversed_sequence.py | 5a7b1f3dad23ad88d9b3fc7280087bcf9eae9d3b | [
"MIT"
] | permissive | aitoehigie/britecore_flask | e8df68e71dd0eac980a7de8c0f20b5a5a16979fe | eef1873dbe6b2cc21f770bc6dec783007ae4493b | refs/heads/master | 2022-12-09T22:07:45.930238 | 2019-05-15T04:10:37 | 2019-05-15T04:10:37 | 177,354,667 | 0 | 0 | MIT | 2022-12-08T04:54:09 | 2019-03-24T00:38:20 | Python | UTF-8 | Python | false | false | 2,181 | py | """ Checks that reversed() receive proper argument """
# pylint: disable=missing-docstring, useless-object-inheritance
# pylint: disable=too-few-public-methods,no-self-use,no-absolute-import
from collections import deque
__revision__ = 0
class GoodReversed(object):
""" Implements __reversed__ """
def __reve... | [
"aitoehigie@gmail.com"
] | aitoehigie@gmail.com |
14f4384b3f417db7ee5e8c97bf8f2c110123b40a | bfbe642d689b5595fc7a8e8ae97462c863ba267a | /bin/Python27/Lib/site-packages/openmdao.main-0.8.1-py2.7.egg/openmdao/main/api.py | 829c20fd341079e51ad207c522ec775c63353842 | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | mcanthony/meta-core | 0c0a8cde1669f749a4880aca6f816d28742a9c68 | 3844cce391c1e6be053572810bad2b8405a9839b | refs/heads/master | 2020-12-26T03:11:11.338182 | 2015-11-04T22:58:13 | 2015-11-04T22:58:13 | 45,806,011 | 1 | 0 | null | 2015-11-09T00:34:22 | 2015-11-09T00:34:22 | null | UTF-8 | Python | false | false | 1,672 | py | """
Pseudo package containing all of the main classes/objects in the
openmdao.main API.
"""
from openmdao.util.log import logger, enable_console
from openmdao.main.expreval import ExprEvaluator
from openmdao.main.factory import Factory
from openmdao.main.factorymanager import create, get_available_types
from open... | [
"kevin.m.smyth@gmail.com"
] | kevin.m.smyth@gmail.com |
13089b737a1eb01b2104f1882aedeeacdca2c27f | c13027a6dc58c49cf557b5ec61ddae9886a95cab | /AtCoderBeginnerContest200/A.py | 32781fccda16d90d708fa03e7fdae9bfc07601be | [] | no_license | kaitey/AtCoder | beec54a1303ce16898e4dfb68d5153c734dbe7ff | 162239d90321cf83b1316edf8b7438c6c4369a28 | refs/heads/main | 2023-06-26T09:45:02.044147 | 2021-07-31T11:08:47 | 2021-07-31T11:08:47 | 344,876,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | def main():
n = int(input())
print(-(-n//100))
if __name__ == '__main__':
main()
| [
"re0104er@ed.ritsumei.ac.jp"
] | re0104er@ed.ritsumei.ac.jp |
a0d0fa4b510c5d5e1735f2ebdfb84349b06dbeeb | 96b179626d078b92bb5da5b940246ae1063e5ed9 | /emmet-core/tests/test_polar.py | 6c0c7b77b1e95911ecb70b4bf51b465c4b038f60 | [
"LicenseRef-scancode-hdf5",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | jmmshn/emmet | cdb5e7abba2a4bf34f74621fe6a5cbad72061573 | b6b4f9fafbf47faa6792f037d3c56221b711dfb4 | refs/heads/main | 2023-08-31T15:42:37.533834 | 2023-01-17T23:43:57 | 2023-01-17T23:43:57 | 309,003,912 | 0 | 0 | NOASSERTION | 2020-11-01T01:40:17 | 2020-11-01T01:40:17 | null | UTF-8 | Python | false | false | 9,737 | py | from datetime import datetime
import io
from monty.dev import deprecated
import pytest
from pymatgen.core import Lattice, Structure
from emmet.core.polar import DielectricDoc, PiezoelectricDoc
@pytest.fixture
def dielectric_structure():
test_latt = Lattice.cubic(3.0)
test_struc = Structure(lattice=test_latt,... | [
"noreply@github.com"
] | jmmshn.noreply@github.com |
3276de1e752d2ef39dbbb444cbf57f4b51d4316e | cad91ae76d2746a6c28ddda0f33a58f9d461378f | /PaddlePaddle/Classification/RN50v1.5/optimizer.py | 8d128ff97b5a0186f87a48845218c12b7d4e81b1 | [] | no_license | NVIDIA/DeepLearningExamples | fe677521e7e2a16e3cb0b77e358f9aab72f8c11a | a5388a45f71a949639b35cc5b990bd130d2d8164 | refs/heads/master | 2023-08-31T20:57:08.798455 | 2023-08-23T10:09:12 | 2023-08-23T10:09:12 | 131,881,622 | 11,838 | 3,124 | null | 2023-08-28T16:57:33 | 2018-05-02T17:04:05 | Jupyter Notebook | UTF-8 | Python | false | false | 2,166 | py | # Copyright (c) 2022 NVIDIA Corporation. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | [
"kkudrynski@nvidia.com"
] | kkudrynski@nvidia.com |
5e02da1fb75760d07cd1c9d3dc9e28f51968d90a | d1d067bad6b65e2be1b5488d5abd17c0e9cd1756 | /perdiem/artist/forms.py | b83abf50adfe49eb0fec71576b242b9a8e66a202 | [] | no_license | localastronaut/perdiem-django | 7b84cf34b83a49cc4695b735321f52eb2be01260 | c273dc6fda5533c52710cde0f196886369b36c9d | refs/heads/master | 2021-06-13T14:31:54.089816 | 2016-05-24T06:13:10 | 2016-05-24T06:13:10 | 59,598,476 | 0 | 0 | null | 2016-05-24T18:31:19 | 2016-05-24T18:31:18 | null | UTF-8 | Python | false | false | 1,376 | py | """
:Created: 19 March 2016
:Author: Lucas Connors
"""
from django import forms
class CoordinatesFromAddressForm(forms.Form):
address = forms.CharField()
class ArtistApplyForm(forms.Form):
artist_name = forms.CharField(label='Artist / Band Name')
genre = forms.CharField()
hometown = forms.CharFi... | [
"lucas.revolutiontech@gmail.com"
] | lucas.revolutiontech@gmail.com |
bcdbf07e584e7fad3a4d3eef5a75fc13b6f524e5 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_34/238.py | ec0410ac5b4c8cc4443fa88ef75da4466aa226a6 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | #-*-coding:utf-8-*-
import sys, re
fh = open(sys.argv[1])
L, D, N = map(int,fh.readline().split(' '))
words = []
for i in range(D): words.append(fh.readline().strip())
for i in range(N):
pattern=fh.readline().strip()
reg = re.compile(re.sub('\\)', ']', re.sub('\\(', '[',pattern)))
n = 0
for w in words:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
75e13f2077f48e5efe61d8eadde5b91febcc50bd | f7badaf5a680a3276ba8c4223a7c411eff4e0ef5 | /users/validate_vk_mini_apps.py | a534317ac67fc58cf317a7bcfd82caaa4d172d5a | [] | no_license | petrshirin/easy-meet-backend | df9d29190b3f7acb524737f18192abf6c24c346b | 4e315e5e5abeb29bab68d53a83ee005cb13fd28f | refs/heads/master | 2023-01-09T04:42:40.710603 | 2020-11-11T05:05:15 | 2020-11-11T05:05:15 | 310,966,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | from base64 import b64encode
from collections import OrderedDict
from hashlib import sha256
from hmac import HMAC
from urllib.parse import urlparse, parse_qsl, urlencode
from django.conf import settings
from typing import Union, Dict
def check_sign(*, query: dict, secret: str) -> Union[Dict, None]:
"""Check VK Ap... | [
"p.e.shirin@gmail.com"
] | p.e.shirin@gmail.com |
88115d2979a0ddc98e1aab042b9257d23e41433b | fcc88521f63a3c22c81a9242ae3b203f2ea888fd | /Python3/1189-Maximum-Number-of-Balloons/soln.py | bd9afd7441f12e992a1a0795f2a1914ec11278d7 | [
"MIT"
] | permissive | wyaadarsh/LeetCode-Solutions | b5963e3427aa547d485d3a2cb24e6cedc72804fd | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | refs/heads/master | 2022-12-06T15:50:37.930987 | 2020-08-30T15:49:27 | 2020-08-30T15:49:27 | 291,811,790 | 0 | 1 | MIT | 2020-08-31T19:57:35 | 2020-08-31T19:57:34 | null | UTF-8 | Python | false | false | 203 | py | class Solution:
def maxNumberOfBalloons(self, text: str) -> int:
balloon = [('a', 1), ('b', 1), ('l', 2), ('o', 2), ('n', 1)]
return min(text.count(ch) // cnt for ch, cnt in balloon)
| [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
cca4da9a90f7539c0deb3454ad0983978deade59 | 2b6b9deea3d020e87815caf7e3985f050103abf6 | /pie/initialization.py | a5613570f3d272f0978bb0fe6b838f732348899b | [] | no_license | PonteIneptique/pie | a3de5672dcb38936748ec4a43a81edfd1aa07fb0 | 64700bfbf6cc7c3efc1c5b0e14d6f06d6bf1b77f | refs/heads/master | 2021-06-07T08:04:24.117804 | 2018-07-09T09:31:45 | 2018-07-09T09:31:45 | 154,836,022 | 0 | 1 | null | 2021-05-12T09:23:03 | 2018-10-26T13:06:10 | Python | UTF-8 | Python | false | false | 1,465 | py |
import torch
import torch.nn as nn
def init_embeddings(embeddings):
embeddings.reset_parameters()
# nn.init.constant_(embeddings.weight, 0.01)
def init_linear(linear):
linear.reset_parameters()
nn.init.constant_(linear.bias, 0.)
pass
def init_rnn(rnn, forget_bias=1.0):
for pname, p in rnn... | [
"enrique.manjavacas@gmail.com"
] | enrique.manjavacas@gmail.com |
3873f848d8c6404a56bae01a616e6ebe1340f841 | 272a8b0b38e4af5f22dd811040f0ca2b0b111c61 | /exp_scripts/loss_improved_wgan_2001.py | 754e8a62540576922f21b77b9f49c33f10940155 | [] | no_license | jessemin/GeneGan | 1c1a97b6ab566a7c556ce1452e4c35530b0b626c | 2ad94e842cfaee531d7e13af7472b623bf96de30 | refs/heads/master | 2021-09-13T13:02:33.629138 | 2018-04-30T06:57:13 | 2018-04-30T06:57:13 | 112,046,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | import os
os.chdir('../exp_notebooks')
os.system('python loss_improved_wgan.py\
-w=2001\
-save=loss_improved_wgan_2001\
-sample_num=10000\
-n_critic=1\
-d_freq=32\
-w_weight=0.08\
-mse_weight=1.0\
-g_lr=0.001\
-d_lr=0.00001\
... | [
"jesikmin@stanford.edu"
] | jesikmin@stanford.edu |
b010766d32899caed0d8e553c520db23fd3eac74 | cfa632132cd29a0b58e7f45b441ea4f62b0f5eba | /flytekit/bin/entrypoint.py | 7c386888f9e1949c02eb5c8e991015c2e35d7d39 | [
"Apache-2.0"
] | permissive | chixcode/flytekit | 5b4f2e687e82a0d6527411afcdaf0929a94adb13 | f901aee721847c6264d44079d4fa31a75b8876e1 | refs/heads/master | 2020-08-24T00:06:02.808187 | 2019-10-14T18:34:19 | 2019-10-14T18:34:19 | 216,729,272 | 1 | 0 | Apache-2.0 | 2019-10-22T05:22:01 | 2019-10-22T05:22:00 | null | UTF-8 | Python | false | false | 4,641 | py | from __future__ import absolute_import
import importlib as _importlib
import os as _os
import click as _click
import datetime as _datetime
import random as _random
from flyteidl.core import literals_pb2 as _literals_pb2
from flytekit.common import utils as _utils
from flytekit.common.exceptions import scopes as _sco... | [
"matthewsmith@lyft.com"
] | matthewsmith@lyft.com |
24bde7208335cd60e375b68ff00e7581c4892bd2 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_bug.py | 72b907dcbd8c7bf8f279c2a1b40116f869da8dfd | [
"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 | 600 | py |
#calss header
class _BUG():
def __init__(self,):
self.name = "BUG"
self.definitions = [u'a very small insect', u'a bacteria or a virus causing an illness that is usually not serious: ', u'a mistake or problem in a computer program: ', u'a very small device fixed on to a phone or hidden in a room, that allows yo... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
aa46cc71da38d2f98ed82ae05dd93bd331c9be5f | a5937c0b4d122fa3189fee6414d5be1316d9c4f9 | /src/eteaching.policy/eteaching/policy/tests/base.py | 354a81695bbf30c41210153f374cad989432b7ec | [] | no_license | zopyx/eteaching.org | e3eac4e53506cd9b1c65ac681a3138a5c7ac99b7 | d326cbf7734f538132df84290e768625df43ada6 | refs/heads/master | 2020-12-25T19:14:59.692335 | 2013-12-04T09:47:19 | 2013-12-04T09:47:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,489 | py | ################################################################
# eteaching.policy
# (C) 2013, ZOPYX Ltd.
################################################################
import os
import unittest2
from plone.app.testing import PloneSandboxLayer
from plone.app.testing import applyProfile
from plone.app.testing import... | [
"yet@gmx.de"
] | yet@gmx.de |
f59946c1cad0866529f675844754b8f4572cffc7 | c25a17f0f82c2eebca55bbe180f4c2ccbbf00292 | /01_Jump_to_python/Chap06/6장_practice/practice3_게시물.py | 3a62507a88248db26e85f59d32ca417fa4481483 | [] | no_license | superbeom97/jumpjump | a0a4da6f0df0483ef0cef9833b5fe0402ec63c9c | fc45efce2a2b00c614aa5aa54b36be1572ed40ce | refs/heads/master | 2021-09-15T09:35:16.903857 | 2018-05-30T00:00:59 | 2018-05-30T00:00:59 | 111,883,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | def getTotalPage(m, n):
try:
if int(m) <= int(n):
s = '1'
print("게시물 총 건 수: %s, 한 페이지에 보여줄 게시물 수: %s, 총 페이지 수: %s" % (m, n, s))
if int(m) % int(n) == 0:
s = int(m) / int(n)
print("게시물 총 건 수: %s, 한 페이지에 보여줄 게시물 수: %s, 총 페이지 수: %s" % (m, n, int(s)))
... | [
"beom9790@naver.com"
] | beom9790@naver.com |
b44861acb3e5969de6120b8f0592726c43630eb7 | 9cef1dc0a6a7b95ceb8a2d892bc39e9a0d15b681 | /python-novaclient/novaclient/shell.py | 027f1cc602c451dab81f508016b936a44c5ca779 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | bopopescu/OpenStack-CVRM-1 | d2a4353cfe6d53634456e43a726698bd705db1db | fc0128258bf7417c6b9e1181d032529efbb08c42 | refs/heads/master | 2022-11-22T01:50:05.586113 | 2015-12-15T07:56:22 | 2015-12-15T07:57:01 | 282,140,514 | 0 | 0 | null | 2020-07-24T06:24:49 | 2020-07-24T06:24:48 | null | UTF-8 | Python | false | false | 33,880 | py | # Copyright 2010 Jacob Kaplan-Moss
# Copyright 2011 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/lice... | [
"zaman.khalid@gmail.com"
] | zaman.khalid@gmail.com |
9f9ee2d6aecd744bf78e114b35591f707504a091 | e288180c977c8fccf31c00bb74b7e8f56ee69303 | /vkrb/search/serializers.py | 65be7a59e320ecf0806ee5672e5dfd061575e8ff | [] | no_license | kaluginadaria/vkrb-back | 32e0c9aef7a647ea2a2e399c8d999622e993a433 | d037baaa9f17cb038d41dda5dfbf1dbb56acdf90 | refs/heads/master | 2022-12-07T23:36:32.902662 | 2019-05-22T15:06:31 | 2019-05-22T15:06:31 | 179,382,015 | 0 | 0 | null | 2022-11-22T02:38:25 | 2019-04-03T22:52:30 | Python | UTF-8 | Python | false | false | 3,195 | py | from django.apps import apps
from django_serializer.serializer.base import ModelSerializer
from django_serializer.serializer.fields import SerializerField
from vkrb.activity.serializers import ActivityGiItemSerializer, ActivitySiItemSerializer
from vkrb.calc.serializers import FormulaSerializer
from vkrb.digest.serial... | [
"d.kalugina@ktsstudio.ru"
] | d.kalugina@ktsstudio.ru |
7630b551f1163ab91f4b5075737ad96d95b94763 | 866de2c682a63e255d6d0016c0eeee70b98dd490 | /unifiedactivitypoints/studentauth/urls.py | 98510be2b8c6f956bd8d4c60c6d25e5a5dec37c8 | [
"MIT"
] | permissive | FossMec/activityPointsApp | 10c47e6a96ebe44b1310ad4f3c695055e35d69b8 | 2b58c96bfcd11327883dcd5bd7ddc1feb617ee49 | refs/heads/master | 2021-08-08T21:39:53.212979 | 2017-11-11T09:33:10 | 2017-11-11T09:33:10 | 107,976,551 | 1 | 8 | null | 2017-11-11T07:24:08 | 2017-10-23T12:05:04 | JavaScript | UTF-8 | Python | false | false | 237 | py | from django.conf.urls import url
from studentauth import views
urlpatterns = [
url(r'^signup/$',views.signup,name="signuppage"),
url(r'^$',views.Login.as_view(),name="login"),
url(r'^succes/$',views.Success.as_view(),name='Success'),
]
| [
"kurian.pro@gmail.com"
] | kurian.pro@gmail.com |
f8bcf27f520284575ff8cc9cda7c4884fbd7ad04 | 788925d9dd5f98c8e2453acc6fb46aee2d638c80 | /test.py | ca2d956202e11a63a2e4ff639a3b098bebce4404 | [] | no_license | abilian/abilian-sbe-demo | 7e5a7e518e20886dbf73e96b2b054c6c1f846d58 | bcd6a97060d28429e16bd2f7cb209e22d7bf1c24 | refs/heads/master | 2021-01-22T02:53:38.157020 | 2013-11-22T23:02:43 | 2013-11-22T23:02:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | #!./bin/python
import pexpect
import urllib
import time
# Some random number
PORT = 4034
HOME = "http://0.0.0.0:{}/".format(PORT)
p = pexpect.spawn("./manage.py run -p {}".format(PORT))
try:
p.expect("Running on {}".format(HOME))
# Just in case
time.sleep(5)
page = urllib.urlopen(HOME).read()
assert "Welc... | [
"sf@fermigier.com"
] | sf@fermigier.com |
db507e34af96e154ddea79d5af892cdf6b728bbc | 15608a179d97e399ca08be0f017296c4f4ded881 | /releases/migrations/0001_squashed_0004_make_release_date_nullable.py | cf9cc83a5150cd40db8cbb8c60d47dc7806e7af4 | [
"BSD-3-Clause"
] | permissive | shivangi1801/djangoproject.com | 1f33bef39b8c3cce136f47008eee5d4aae8d6aa4 | e51eba97f7e226d2e9deb31f8c23b1e00df04b9c | refs/heads/master | 2021-01-16T20:37:51.813671 | 2016-02-08T22:51:01 | 2016-02-08T22:51:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,619 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-21 07:11
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"timograham@gmail.com"
] | timograham@gmail.com |
5fb03f371d4e18de6a83f4e212e3babff6434115 | 5e36d216d31f9f5d56722e230cb468beba15c2a8 | /src/scriptsite/main/subversion.py | a5c8bff6f21c04cc0d890afe77fcd47415a3d501 | [] | no_license | isotoma/ScriptSite | d988a0da8b70681502a1b02eb1f78acfe035f545 | f401be7e2c6455208ac881d72559e5819fd2ecbd | refs/heads/master | 2016-09-06T08:35:52.898581 | 2011-03-22T21:02:40 | 2011-03-22T21:02:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,277 | py | import tempfile
import os
import shutil
from datetime import datetime
from lxml import etree
import pysvn
from django.core.files import File
from scriptsite import settings
from scriptsite.main.models import TestScript
def make_script_model_from_file(script_file, flavour, revision):
""" Create a model object f... | [
"tom@howrandom.net"
] | tom@howrandom.net |
60e5aa25031489608c8cf93ccd0f6cc8a77a0466 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/qjl.py | 892ee92a903e462c69168149377f635482795dba | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
65a90c400bd422e8ee24ab483c5144d7c5b7096d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/420/usersdata/328/87412/submittedfiles/exe11.py | 271fb87e667691c2627e9c401cae10b6c33cfb19 | [] | 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 | 177 | py | # -*- coding: utf-8 -*-
n=int(input('Digite um número com 8 dígitos:'))
soma=0
if (n<10000000):
print('NAO SEI')
else:
def soma (x1+x2+x3+x4+x5+x6+x7+x8)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0b869fa5754e8a99cf33d79e5c9b50c1c1dc606f | 25333fa1726e11adc66c25820751432d4eaebfdc | /alexa.py | d16a4b51fb45363e1a1bd19529bf1f430dba4733 | [] | no_license | aminhp93/alexa | a769d510b3373dd142721980d398a6253ed8430e | 03fa7b760302ec34de20f2cf28b356ff4e27ec45 | refs/heads/master | 2021-01-13T08:36:59.396756 | 2016-09-30T18:27:09 | 2016-09-30T18:27:09 | 69,312,807 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,983 | py | import logging
from random import randint
from flask import Flask, render_template
from flask_ask import Ask, statement, question, session
from twilio.rest import TwilioRestClient
print("I AM RIGHT HERE AT THE TOP OF THE FILE")
app = Flask(__name__)
ask = Ask(app, "/")
logging.getLogger("flask_ask").setLevel(lo... | [
"minhpn.org.ec@gmail.com"
] | minhpn.org.ec@gmail.com |
55e85aa5da138f635b5bedb73c67575e21d7513e | 6ac2631c256f156d4ddf169e6c67f1fe66ebcaaf | /091/pyteacher/app_chat/models.py | 48e44f13eaba832d4322ad4695b20811a2caee4c | [] | no_license | kasaiee/how-to-pyteacher | 101f106aeeed1b34756cecf502337ff8ee584ff5 | 074a57533f53fd1b8c7f37cd11dbc3b32ab8a08f | refs/heads/master | 2022-12-10T23:50:46.851784 | 2019-07-15T19:31:03 | 2019-07-15T19:31:03 | 187,372,111 | 6 | 4 | null | 2022-12-08T01:55:05 | 2019-05-18T15:08:03 | null | UTF-8 | Python | false | false | 3,459 | py | import jdatetime
from django.db import models
from django.urls import reverse
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericRelation
from django.contrib.contenttypes.fields import GenericForeignKey
from django.utils import timezone
from django.utils.tim... | [
"1tapciran@gmail.com"
] | 1tapciran@gmail.com |
565726ab7ef232eba372668568ba5298c9e21452 | 6a8bc7da3104726f894ae360fce6a43a54b30812 | /gradio/components/file.py | 6c5a41b18d9de2d5da58eb85e5198f2d92775877 | [
"Apache-2.0"
] | permissive | gradio-app/gradio | 0b6b29bb0029ad3b8fc1b143f111b1230b29d23a | e4e7a4319924aaf51dcb18d07d0c9953d4011074 | refs/heads/main | 2023-09-01T10:56:50.822550 | 2023-09-01T00:28:01 | 2023-09-01T00:28:01 | 162,405,963 | 21,224 | 1,537 | Apache-2.0 | 2023-09-14T21:42:00 | 2018-12-19T08:24:04 | Python | UTF-8 | Python | false | false | 11,821 | py | """gr.File() component"""
from __future__ import annotations
import tempfile
import warnings
from pathlib import Path
from typing import Any, Callable, Literal
from gradio_client import utils as client_utils
from gradio_client.documentation import document, set_documentation_group
from gradio_client.serializing impo... | [
"noreply@github.com"
] | gradio-app.noreply@github.com |
d7aaeffe43f3d4370c2d6713f4192dc5ec0a03b8 | 18274645eeb605098b966571f3e0ac8806c992d8 | /companies/views.py | 13f1cd96a2393a901cc9dead362ccae6dc2e9171 | [] | no_license | webclinic017/fintechapp | 0ec47a6b75dbe1faa52d1d30039ecf2bb1673bc2 | f971a502c0abc1daf23115ade9f4a6901e21d023 | refs/heads/main | 2023-03-01T10:02:01.608251 | 2021-02-11T22:45:35 | 2021-02-11T22:45:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,491 | py | from django.shortcuts import render
from django.contrib.postgres.aggregates import StringAgg
from django.contrib.postgres.search import (
SearchQuery, SearchRank, SearchVector, TrigramSimilarity,
)
from mergedeep import merge
from django.views.generic import TemplateView, ListView, DetailView
from django.db.models ... | [
"mpasiinnocent@gmail.com"
] | mpasiinnocent@gmail.com |
3f8d007f6c0a470c755b8c64925dd0a407c4166b | c58bfb0d7a293cc471f2921db57b00d5c3e56bac | /scripts/mp-scripts/Bio/Restriction/_Update/RestrictionCompiler.py | 38e3c4ce40465e3db07f73c6fae7cdf294b966b8 | [
"Apache-2.0",
"LicenseRef-scancode-biopython"
] | permissive | dbmi-pitt/DIKB-Micropublication | 0a2f29b704c269d2ccfe091f8faff1b2374d626d | 0fa264903414ac0b552d363d139746ead198f06a | refs/heads/master | 2020-12-24T16:32:04.206847 | 2020-01-22T18:33:58 | 2020-01-22T18:33:58 | 22,527,994 | 6 | 2 | null | 2015-07-15T14:39:09 | 2014-08-01T20:51:07 | Python | UTF-8 | Python | false | false | 35,222 | py |
#
# Restriction Analysis Libraries.
# Copyright (C) 2004. Frederic Sohm.
#
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
#
# this script is used to produce the dictionary which will con... | [
"rdb20@pitt.edu"
] | rdb20@pitt.edu |
af8a48a4a4040fc973260082647f18ee36556192 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02701/s370299645.py | e8108ca9322d746e5943dac88a3fad579c97de48 | [] | 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 | 78 | py | N = int(input())
S = [str(input()) for _ in range(N)]
S = set(S)
print(len(S)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e955056ae8b1a40428c8a44ebd451318d77d7d9a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02823/s163186577.py | 42c07c5526acc3c86687a8b401d84e30f2355ab1 | [] | 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 | 173 | py | n,a,b = map(int,input().split())
if abs(a-b)%2 == 0:
print(abs(a-b)//2)
else:
if a - 1 > n - b:
print((n-b+n-a+1)//2)
else:
print((a-1+b-1+1)//2) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
078f44a27afc7d6a99a5ea269e9e276d20398e5a | 01b8b5f60d4feef40b8be75866b33a0c34c80c92 | /akikaproject/urls.py | 3fabb8bcd2a2ccf58243255775ad764d65b58ab5 | [] | no_license | laetitia123/akika-test | 26007782ab3997c860413f11eb993e5c64d00a19 | 2556df04e2c4b2b46492bbfbb419a17f3ed84a0f | refs/heads/master | 2023-01-06T15:22:25.807387 | 2020-11-11T13:24:33 | 2020-11-11T13:24:33 | 311,641,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | """akikaproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"uwizelaetitia@gmail.com"
] | uwizelaetitia@gmail.com |
7f7deb8679912039a94789792fe3fdd6b065e6bf | 3c6aeb458a8bec0671c1d8be18331072ac97e05f | /ohsn/sentiment/__init__.py | 635f2bffcfc2bd0b4481aa32db5d50e2a01a1b4b | [] | no_license | wtgme/ohsn | d7b17ad179a789be2325e0923026a681e343a40c | 9c165d45eefa4058e7ed2c6bad348703e296362d | refs/heads/master | 2021-08-29T06:01:20.165839 | 2021-08-12T08:51:46 | 2021-08-12T08:51:46 | 44,922,360 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | # -*- coding: utf-8 -*-
"""
Created on 15:24, 14/04/17
@author: wt
"""
| [
"wtgmme@gmail.com"
] | wtgmme@gmail.com |
8022f81f1c964930db4e3dd656af1c871f260f99 | d85f8b95e21523840d65517ab99baeb04a33e297 | /demo/settings.py | c6b817f3586d8efd959927c2955a83cb937cdde4 | [
"BSD-3-Clause"
] | permissive | gregplaysguitar/django-trolley | 4947bd26e3eea7a33dd138c05262a9f2a45d0bb3 | 187cbe883961b13f995998cc5fa80c6a879560a8 | refs/heads/master | 2021-01-21T12:07:53.829939 | 2014-05-20T22:37:48 | 2014-05-20T22:37:48 | 632,479 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,958 | py | # -*- coding: utf-8 -*-
# Django settings for demo project.
import os, sys, re
PROJECT_ROOT = os.path.dirname(globals()["__file__"])
for directory in [os.path.join(PROJECT_ROOT, dir) for dir in ('.', '..')]:
if not directory in sys.path:
sys.path.insert(0, directory)
DEBUG = True
TEMPLATE_DEBUG = DE... | [
"gregplaysguitar@gmail.com"
] | gregplaysguitar@gmail.com |
7006aeddebbec67a7e4f97e57b36acf2e9faa98e | 76dd191c092c836f0f72a364bda133bdb37c5cbc | /system/djangoapp/forms.py | 1778f78f69b8a044baa2c3a41b664ee5f6178c3f | [] | no_license | PreritBhandari/Django-Assignment-II- | 36619b337c5f6454e8729cb1ae3df2bfa400c243 | 808e9d47bbc7f78f81577a45356cb34839713ccb | refs/heads/master | 2022-11-25T09:07:07.423648 | 2020-07-29T11:47:12 | 2020-07-29T11:47:12 | 283,487,872 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from verified_email_field.forms import VerifiedEmailField
class register_form(forms.Form):
first_name = forms.CharField(max_length=30)
last_name = forms.CharField(max_length=150)
ema... | [
"patrioticprerit@gmail.com"
] | patrioticprerit@gmail.com |
436542025ea7dafd39e2fcf4fe88ff79492c88df | 086aa68683c71d2e4b7b584eda4536f5cc51c27c | /examples-tk499-lvgl/exams/widgets_ex/tabview/__init__.py | a527b46c199edeeb8c53d5f206a677cf7e300027 | [
"MIT"
] | permissive | bhgv/micropython-tk499 | 1617529d9f4c74d31f844d4eb440e3c670eb105b | 963d0546dda980aa8502c5be29f6aee3d5cd805e | refs/heads/master | 2023-07-18T07:25:36.592091 | 2021-08-28T20:37:31 | 2021-08-28T20:37:31 | 397,341,868 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | import lv_utils
import lvgl as lv
btn = lv.btn(lv.scr_act())
btn.set_height(lv.SIZE.CONTENT)
btn.align(lv.ALIGN.TOP_LEFT, 30, 30)
def foo(e):
if e.get_code() == lv.EVENT.CLICKED:
lv_utils.ex_new_page("exams/widgets_ex/tabview/p1.py")
btn.add_event_cb(foo, lv.EVENT.ALL, None)
label = lv.label(btn)
label.se... | [
"bhgv.empire@gmail.com"
] | bhgv.empire@gmail.com |
f3b7e43803f64f2480c46438d8cdadf8981c4c1f | eb3683f9127befb9ef96d8eb801206cf7b84d6a7 | /stypy/sgmc/sgmc_cache/site_packages/numpy/distutils/fcompiler/vast.py | 096a8b05b41a728f84345dbdae9c3c04a579f8bf | [] | no_license | ComputationalReflection/stypy | 61ec27333a12f76ac055d13f8969d3e0de172f88 | be66ae846c82ac40ba7b48f9880d6e3990681a5b | refs/heads/master | 2021-05-13T18:24:29.005894 | 2018-06-14T15:42:50 | 2018-06-14T15:42:50 | 116,855,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,485 | py |
# -*- coding: utf-8 -*-
"""
ORIGINAL PROGRAM SOURCE CODE:
1: from __future__ import division, absolute_import, print_function
2:
3: import os
4:
5: from numpy.distutils.fcompiler.gnu import GnuFCompiler
6:
7: compilers = ['VastFCompiler']
8:
9: class VastFCompiler(GnuFCompiler):
10: compiler_type = 'vast'
11:... | [
"redondojose@uniovi.es"
] | redondojose@uniovi.es |
8dd85d17b5416331df15e80d50e3db5be325686a | 08153bc5546d434cdc2c1574e024c3b8edab69a3 | /thesis/scripts/disp_performance.py | fda1121e9383c87fd48365df586bb1e58aedc2c1 | [] | no_license | maxnoe/phd_thesis | 57c818296e6e0c43d1231116c5131f9024c9304d | a68b621cc8b658aa858342a4cfdaed68c3823257 | refs/heads/master | 2022-11-30T06:11:22.033077 | 2019-03-04T14:02:45 | 2020-08-17T12:12:49 | 288,170,864 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | from argparse import ArgumentParser
import re
parser = ArgumentParser()
parser.add_argument('log_file')
parser.add_argument('output_base')
args = parser.parse_args()
with open(args.log_file) as f:
log = f.read()
acc = re.search(r'Mean accuracy from CV: (.*)', log).groups()[0]
with open(args.output_base + '_ac... | [
"maximilian.noethe@tu-dortmund.de"
] | maximilian.noethe@tu-dortmund.de |
f0aa91eba8c5568951b8f1fb0d90ecf0b928734d | d01670aa5bddb47dc414bf01921155610e2a5070 | /leetcode/053_maximumsubarray.py | 1e558d7c790472f0f0b466aec2d5417f103da43c | [] | no_license | hwillmott/csfundamentals | 14c7e4253b581cef7046ca035bda038c24a52613 | 832f6a8c0deb0569d3fe0dc03e4564c2d850f067 | refs/heads/master | 2020-08-01T12:27:01.914391 | 2020-03-26T16:47:35 | 2020-03-26T16:47:35 | 73,576,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | class Solution(object):
def maxSubArray(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if nums is None or len(nums) == 0:
return 0
last = nums[0]
m = last
for n in nums[1:]:
if last > 0:
last ... | [
"harriet.willmott@gmail.com"
] | harriet.willmott@gmail.com |
f15582da123ab9fa3195f0c76fc7e5ee2568ffdf | 2904bba948c795eb0075e6dfb25d7bec93d893f1 | /mcb_twitter/tweet_mcb/models.py | 32f9a056c063bdad21eaf3e3ddbcfb6e6c47b991 | [] | no_license | raprasad/mcb-tweet | 8cd61766ea0365dff96104c72327611718051d95 | 3117b183a9b619f0bb4f3552c7c954a44728f177 | refs/heads/master | 2016-09-06T18:18:41.182394 | 2014-03-26T16:29:42 | 2014-03-26T16:29:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,196 | py | from django.db import models
from django.core.urlresolvers import reverse
from mcb_website.events.models import CalendarEvent
from mcb_twitter.tweet_mcb.tweeter import assemble_full_tweet
from datetime import datetime
TWEET_STATUS_PK_AWAITING_APPROVAL = 1
TWEET_STATUS_PK_APPROVED = 2
TWEET_STATUS_PK_REJECTED = 3
TW... | [
"raman_prasad@harvard.edu"
] | raman_prasad@harvard.edu |
3249525f584c43396625c8d5adc155bf19d3e031 | 536b2dc4d0541f6f8a71d9ef8cfa6d449c5db69a | /src/files/REST-Linux/scripts/set_indicatorled.py | 8dfa96872471db2996f43be9946da8db6cf8cde1 | [
"MIT"
] | permissive | Huawei/Server_Management_Plugin_Puppet | 54529c5305944e802ae799955287ba013e06f536 | 3a549dfa28b3522744932e7716064286a5f2f118 | refs/heads/master | 2021-06-19T17:48:12.253094 | 2019-09-20T09:06:12 | 2019-09-20T09:06:12 | 150,839,359 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,975 | py | # -*- coding:utf-8 -*-
"""
#=========================================================================
# @Description: Set indicator State of Chassis
#
# @author:
# @Date:
#=========================================================================
"""
import sys
def setindicatorled_init(parser, parser_list):
... | [
"31431891+serverplugin@users.noreply.github.com"
] | 31431891+serverplugin@users.noreply.github.com |
775437e8f41fe09868b4e887683a5283ccc46bf9 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_103/ch163_2020_06_20_21_08_09_870683.py | 562bc7f4be71d74ecbf772f874e1ddb8cfc29b67 | [] | 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 | 268 | py | def calcula_media(lista_notas):
lista_num =[]
for i in range(len(lista_notas)):
for nome,notas in lista_notas[i].items():
a = lista_notas[i]
a[nome] = notas
lista_num.append(notas)
print(lista_num)
| [
"you@example.com"
] | you@example.com |
820286b363cf8652d45eba5c228226b713f9a63e | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/d33210f954309e2844204a05856bdc5ff333bda1-<run_with_configuration>-bug.py | 48cdfb01d7f9ee317701b166c7719899a3142f7d | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,034 | py |
def run_with_configuration(self, configuration):
"\n Executes a BigQuery SQL query. See here:\n\n https://cloud.google.com/bigquery/docs/reference/v2/jobs\n\n For more details about the configuration parameter.\n\n :param configuration: The configuration parameter maps directly to\n ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
c1ba0a272063671fd8a2f2ad9ae66cbc977f8d80 | 9889c3289c60957ab53b2fe0077a1279f085176f | /django-flipbook/flipbook/migrations/0004_auto__add_flipbookpage.py | 35de2c048a05c0849b68df627e67381bb7ca91a9 | [] | no_license | WeilerWebServices/FlipBook | 52b5c681ea9b36fbe91f392f1a9303ccaf01bc6d | 9d09d4310d08704e311d27d984cafda2436c0ddb | refs/heads/master | 2022-12-15T04:19:03.348567 | 2020-09-06T09:03:31 | 2020-09-06T09:03:31 | 293,239,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,454 | py | # flake8: noqa
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'FlipbookPage'
db.create_table(u'flipbook_f... | [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
6568491c77e00ed6a1d457abc304bb7ca1611938 | a2c02fb5dd11e1fb7d0faefaaa4929f40d12cfdf | /plot_line_uv_std_vs_time.py | 161a0a4e1a4a5cb449f8bc8bf19762b35c720618 | [] | no_license | iwenfeng/workspace_python | 2c5486f6e77e13a8fd4d516c6743c2794d062a87 | 392d8e1f953baefe5ed51028636355c67dc5df62 | refs/heads/master | 2020-12-03T23:11:31.949332 | 2019-11-12T16:52:21 | 2019-11-12T16:52:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,236 | py | from __future__ import division,print_function
import matplotlib as mpl
import scipy as sp
from datatools import *
from gridtools import *
from plottools import *
import matplotlib.tri as mplt
import matplotlib.pyplot as plt
#from mpl_toolkits.basemap import Basemap
import os as os
import sys
np.set_printoptions(precis... | [
"073208o@acadiau.ca"
] | 073208o@acadiau.ca |
b99b9daf57adaea08d1ed0c0ad2114204996b225 | 55c8557a675d9228a3fb96bf8736ec613351ebb3 | /apps/account/migrations/0002_pyaccountplan_type.py | c83731236824c49ff9db7e7a1325310774da2ff0 | [
"MIT"
] | permissive | gvizquel/pyerp | e56024b481977e07339e8a0a17a26e1a0e4f1147 | c859f7293cabd1003f79112463cee93ac89fccba | refs/heads/master | 2022-12-07T13:12:16.333420 | 2019-08-29T21:38:22 | 2019-08-29T21:38:22 | 204,968,470 | 0 | 0 | MIT | 2022-12-04T09:21:19 | 2019-08-28T15:48:24 | JavaScript | UTF-8 | Python | false | false | 558 | py | # Generated by Django 2.2.4 on 2019-08-18 03:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='pyaccountplan',
name='type',
... | [
"falconsoft.3d@gmail.com"
] | falconsoft.3d@gmail.com |
325e3a78f1a7788dd5dc13d3f481813fcdf5258a | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_10_01/aio/operations/_application_gateways_operations.py | c3ea5c9de5a15baa110689f2072695a60a4e5c54 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 55,284 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | paultaiton.noreply@github.com |
07887321386c9f0bbfcb2e0b00eed25e2cd70164 | 234bb369416b18dd7757b14a8b9b03d0656a1b5d | /week12/back/back/settings.py | ade21baf7381428f520e5553eeea4c5fed798ea2 | [] | no_license | derbess/WebDEV | 432fb70e42c89fa9a47b77bf768878d96987b2f0 | dc323e242ca19df436055d7b73e33f239349cafc | refs/heads/master | 2020-05-20T13:46:55.526113 | 2019-05-08T07:15:28 | 2019-05-08T07:15:28 | 185,607,138 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,437 | py | """
Django settings for back project.
Generated by 'django-admin startproject' using Django 2.2.
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
# Buil... | [
"uderbes@gmail.com"
] | uderbes@gmail.com |
de97534eb6a222219bae78c0160be1a5e459d9bc | 1bba82345900327ed1c128e8046dc91f90a0ccb5 | /lets_party/migrations/0010_auto_20190916_1924.py | 7ef8348e9b96b152a19329d86c88e55ed68b582e | [
"MIT"
] | permissive | dchaplinsky/ragoogle | 40bd093682e41d1ee2a77f446c69d09e82bb3948 | dccb3d29334c3220ea12c46c725c443c8bd725c0 | refs/heads/master | 2021-06-11T10:07:41.142843 | 2020-10-12T10:30:39 | 2020-10-12T10:30:39 | 136,800,715 | 3 | 3 | MIT | 2021-03-19T23:20:02 | 2018-06-10T10:51:30 | CSS | UTF-8 | Python | false | false | 1,528 | py | # Generated by Django 2.2.4 on 2019-09-16 16:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lets_party', '0009_auto_20190916_0311'),
]
operations = [
migrations.AddField(
model_name='letspartymodel',
name='am... | [
"dchaplinsky@conversionscience.co.uk"
] | dchaplinsky@conversionscience.co.uk |
2e1a629db9551f0e666dfafec29bca9c6ff38e4c | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/bigquery/connection/v1/bigquery-connection-v1-py/google/cloud/bigquery_connection/__init__.py | 724d7476ae2f9ad95c3e5888257dd2d749efc2d9 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,360 | 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 or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
8c762e14ef1ba9895fa010c2ab1c29e644d26a65 | af17007c9f8b0ccb0b482f0c76e94b542bc236cf | /LC_n_Misc/LC_832.py | 055288253939221f8448242a36636f2b8948ef46 | [] | no_license | abhikrish06/PythonPractice | da72a81845bb73e2902ec37aff9c3b31587ef9ed | 24988428cada3b1f8a6c0cf0140e288511cd9a6d | refs/heads/master | 2021-03-27T18:41:59.953316 | 2018-11-03T23:44:38 | 2018-11-03T23:44:38 | 115,932,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | class Solution:
def flipAndInvertImage(self, A):
"""
:type A: List[List[int]]
:rtype: List[List[int]]
"""
res, fin = [], []
for arr in A:
res.append(arr[::-1])
# print(res)
for ar in res:
res2 = []
for i in ar:
... | [
"abhikrish06@gmail.com"
] | abhikrish06@gmail.com |
d4ff4d434ccd308db73a4dc2fe714e5ef205aaf4 | 6268a19db5d7806b3a91d6350ec2777b3e13cee6 | /old_stuff/code/hpe_rgb/holi_multi_reso_net/src/create_data_h5py.py | 22cbb6fdd6cc447b32594bf323f03c618f450216 | [] | no_license | aaronlws95/phd_2019 | 3ae48b4936f039f369be3a40404292182768cf3f | 22ab0f5029b7d67d32421d06caaf3e8097a57772 | refs/heads/master | 2023-03-22T14:38:18.275184 | 2021-03-21T11:39:29 | 2021-03-21T11:39:29 | 186,387,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | import os
import sys
import utils.prepare_data as pd
from utils.directory import DATA_DIR, DATASET_DIR
from utils.logger import get_logger
logger = get_logger()
dataset_dir = os.path.join(DATASET_DIR, 'First_Person_Action_Benchmark')
save_dir = DATA_DIR
train_pairs, test_pairs = pd.get_fpha_data_list('color', dataset... | [
"aaronlws95@gmail.com"
] | aaronlws95@gmail.com |
7a60fa9b117edc5ecee0dc68070efd7cddaa45a5 | 35e203ca1734458650975e56c4cc2b7e2eba1fe9 | /swexpert/swea 3347 올림픽 종목 투표 0310.py | 24a72b653b8337437a659b51ef762f4bb2ee8226 | [] | no_license | ebroebro/swproblem | 0d7e1898fdf72497b937b7f20de664123ff28c25 | e6c166ce2e3806042034b09930a8783d27db674f | refs/heads/master | 2020-12-22T07:27:14.735653 | 2020-05-24T09:24:40 | 2020-05-24T09:24:40 | 236,711,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | T=int(input())
for z in range(T):
n,m=list(map(int,input().split()))
sports=list(map(int,input().split()))
people=list(map(int,input().split()))
check_list=[0 for i in range(n)]
max_cnt=0
rslt=0
for i in range(m):
for j in range(n-1,-1,-1):
if sports[j] <=people[i]:
... | [
"jzzz0304@gmail.com"
] | jzzz0304@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.