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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
82a567e6b34c488be5c6911c9716d0e5e39267f5 | 51ce07a419abe50f49e7bb6a6c036af291ea2ef5 | /3.Algorithm/03. String/회문.py | 3d2cc4d08812c91f1e68a534526433192562357f | [] | no_license | salee1023/TIL | c902869e1359246b6dd926166f5ac9209af7b1aa | 2905bd331e451673cbbe87a19e658510b4fd47da | refs/heads/master | 2023-03-10T09:48:41.377704 | 2021-02-24T10:47:27 | 2021-02-24T10:47:27 | 341,129,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | def is_pal(matrix,N,M):
# 행
for i in range(N):
for j in range(N-M+1):
string = matrix[i][j:j+M]
if string == string[::-1]:
return string
# 열
for i in range(N):
for j in range(N-M+1):
c_string = ''
for m in range(M):
... | [
"dltmddk1023@gmail.com"
] | dltmddk1023@gmail.com |
da63621588aba35744cad652738150688fbf66e9 | caf8cbcafd448a301997770165b323438d119f5e | /.history/chapter01/python_03_list_20201124200454.py | 73877292c577b91f0b75b424a0b7b8670e42cef1 | [
"MIT"
] | permissive | KustomApe/nerdape | 03e0691f675f13ce2aefa46ee230111247e90c72 | aef6fb2d1f8c364b26d91bf8570b4487a24de69a | refs/heads/main | 2023-01-23T10:13:26.584386 | 2020-11-28T22:29:49 | 2020-11-28T22:29:49 | 309,897,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | """[リストについて]]
""" | [
"kustomape@gmail.com"
] | kustomape@gmail.com |
a6559663df3b494d7fa2c3b72625adbfc4ff5eb5 | d6fe71e3e995c03b8f5151ab1d53411b77b325ba | /walklist_api_service/models/ping_response_payload_headers.py | b0cc9e09ae0c79a6d0ca74aee306b8002286ff8f | [] | no_license | mwilkins91/petpoint-scraper | 95468ae9951deaa8bd3bef7d88c0ff660146c1a3 | dd0c60c68fc6a7d11358aa63d28fdf07fff3c7cd | refs/heads/master | 2022-11-27T00:02:50.654404 | 2020-08-09T18:41:40 | 2020-08-09T18:41:40 | 286,180,666 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,252 | py | # coding: utf-8
"""
The Enrichment List
The THS enrichment list # noqa: E501
OpenAPI spec version: 1.0.0
Contact: contactme@markwilkins.co
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class PingResponsePayloadHeaders(ob... | [
"contactme@markwilkins.co"
] | contactme@markwilkins.co |
af611b2c565ba96222cf52efd00902fede83b397 | 7cf119239091001cbe687f73018dc6a58b5b1333 | /datashufflepy-zeus/src/branch_scripts2/NEWS/ZX_CJXW_GJJRJG/ZX_CJXW_GJJRJG_GZW_DFSM.py | 61ffc39ae2d35de2d050385674f862a2e53b7081 | [
"Apache-2.0"
] | permissive | ILKKAI/dataETL | 0f5b80c3482994f735f092a1e01fa1009bac4109 | 32f7ec3aaaf32b5074536a615cb9cd5c28bd499c | refs/heads/master | 2022-04-04T19:27:05.747852 | 2020-02-28T11:17:48 | 2020-02-28T11:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # -*- coding: utf-8 -*-
from database._mongodb import MongoClient
def data_shuffle(data):
return data
if __name__ == '__main__':
main_mongo = MongoClient(entity_code="ZX_CJXW_GJJRJG_GZW_DFSM", mongo_collection="ZX_CJXW_HY")
data_list = main_mongo.main()
for data in data_list:
re_data = data... | [
"499413642@qq.com"
] | 499413642@qq.com |
595aa5a10ef9b0fb0a73ced16c54c8e221cf046c | 2e1617aec5614ad695fd6ee8dfc0ffb77c54dad1 | /sources/Yalkut Shimoni/Nach/Yalkut_Shimoni_on_Nach.py | 3ca221c24e7c961394c09c1cbcfc94c0e0676dbc | [] | no_license | bachrach44/Sefaria-Data | ad875a552b858828ca2bbd4bbf1da8363dfef038 | b33d781c1bde12568caa01c19e5ad9ec874d160f | refs/heads/master | 2020-12-14T18:50:44.616694 | 2015-10-19T13:59:18 | 2015-10-19T13:59:18 | 17,557,774 | 0 | 0 | null | 2015-08-24T20:59:26 | 2014-03-09T04:33:13 | HTML | UTF-8 | Python | false | false | 1,248 | py | # -*- coding: utf-8 -*-
import urllib
import urllib2
from urllib2 import URLError, HTTPError
import json
import pdb
import os
import sys
p = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, p)
os.environ['DJANGO_SETTINGS_MODULE'] = "sefaria.settings"
from local_settings import *
sys.path... | [
"skaplan@brandeis.edu"
] | skaplan@brandeis.edu |
956b53ebd42005143cbd096e32d0ce899e750207 | f38db79439185ab6062294e1d82f6e909d2be81e | /avazacli/models/payment_allocation.py | 18823ae27ae286ff74624e1739cafa135180f970 | [] | no_license | ContainerSolutions/avazacli | 3a37f8500ad1f1843acbdbb413d4949e00ec6f91 | 49618314f15d8cb2bda36e6019670fdfbed1524f | refs/heads/master | 2020-06-18T18:44:58.594385 | 2019-07-11T14:23:10 | 2019-07-11T14:23:10 | 196,406,206 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,569 | py | # coding: utf-8
"""
Avaza API Documentation
Welcome to the autogenerated documentation & test tool for Avaza's API. <br/><br/><strong>API Security & Authentication</strong><br/>Authentication options include OAuth2 Implicit and Authorization Code flows, and Personal Access Token. All connections should be enc... | [
"riccardo.cefala@container-solutions.com"
] | riccardo.cefala@container-solutions.com |
0f30313b2ba18bc539916241ea7b0c1a993812bd | b77e12c0fc66cf47f83359fe8a04890669058f08 | /day_3/callMainTest.py | ad3ff1f699f7f0f03e8d47dafb7d95a992e5dff1 | [] | no_license | dydy061951/SeleniumProject | 177bb8bdd9f3f586d63c7330d4e5bcdc473cf7c8 | 857fddb74748133475e5f4583007446ab7d2184f | refs/heads/master | 2021-08-23T04:41:30.705381 | 2017-12-03T09:26:14 | 2017-12-03T09:26:14 | 112,907,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | from day_3.mainTest import printHW
printHW() | [
"51Testing"
] | 51Testing |
729c10802c03ffac6b1d4ba1c426d90bdb7d05e5 | 89c677ead412795b56a03d7209b6dffa10dee346 | /orcamentos/core/management/commands/create_admin.py | 8b99126f0f5040af0f1caaab258f1b840a35d448 | [
"MIT"
] | permissive | rg3915/orcamentos | 009a5115e6cdc38976285d1867c56e3907898b03 | 5cd8c4f6cbeabeb5e069c58f583c38f44c3af99a | refs/heads/master | 2022-06-21T22:54:49.575533 | 2021-08-10T21:31:38 | 2021-08-10T21:31:38 | 39,759,924 | 97 | 44 | MIT | 2022-06-16T23:17:19 | 2015-07-27T06:58:45 | HTML | UTF-8 | Python | false | false | 842 | py | from django.core.management.base import BaseCommand
from orcamentos.crm.models import Employee
class Command(BaseCommand):
help = ''' Cria um usuário admin. '''
def handle(self, *args, **kwargs):
'''
Cria um Employee.
Precisamos de Employee para fazer todas as transações no sistema.
... | [
"rg3915@yahoo.com.br"
] | rg3915@yahoo.com.br |
7a378105c860099dd61297282e87b87d6ce4006d | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /EHzL3v25wYp7E4AFC_5.py | 8a5ec4b5bd16208bd51e95590a5ec8900a2b9c45 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | """
Write a function that returns `True` if you can use the letters of the first
string to create the second string. Letters are **case sensitive**.
### Examples
can_build("aPPleAL", "PAL") ➞ True
can_build("aPPleAL", "apple") ➞ False
can_build("a", "") ➞ True
can_build("aa", "aaa") ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
062d52021c8a30a2bffcf1ee2952f42480968f14 | 27c8fc9bc336c49dbe172df5774e786106b4d6b7 | /api/migrations/0001_initial.py | eb1b71fb66d5a2dc1eaac76e0a337a3677b5772f | [] | no_license | BunmiAdeleke123/blog | 18169c3ab8b75742bf8bc3c73a20f25f02166533 | 5dcfb10cb844b62871d442f72cc37d136092adfe | refs/heads/main | 2023-09-01T02:00:39.123781 | 2021-10-26T13:11:49 | 2021-10-26T13:11:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | # Generated by Django 3.2.8 on 2021-10-26 04:27
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"you@example.com"
] | you@example.com |
9f8493b375639b3b737ef050cb029a002c01a974 | 02338bb8111fc1aa88e830ac09a11664720eb2d4 | /tmp/azure_rm_rule.py | b793c87171d1316e012545380daec23b6a3aca7e | [] | no_license | Fred-sun/fred_yaml | a49977b0e8505c7447df23dd80c7fef1be70e6bc | 295ca4cd2b59b8d2758f06eb7fd79920327ea524 | refs/heads/master | 2023-04-28T05:51:56.599488 | 2023-04-25T13:52:10 | 2023-04-25T13:52:10 | 131,376,340 | 0 | 1 | null | 2020-07-06T14:22:46 | 2018-04-28T05:34:49 | TSQL | UTF-8 | Python | false | false | 17,182 | py | #!/usr/bin/python
#
# Copyright (c) 2020 GuopengLin, (@t-glin)
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"xiuxi.sun@qq.com"
] | xiuxi.sun@qq.com |
03e77f8ed10d786ef8de43b60b2bbf9005ab7364 | 4b396133518de31120045ebca90b6679b243784c | /LEVEL_3/Food_Security/LEVEL_3_Calc_Food_Security.py | 1187bd026a1baec068ab7bf30f4a595fb93c3df2 | [
"MIT"
] | permissive | metameta-research/WaporTranslator | 55657af8eee574f02fdfdbb7bd755b3de0538255 | 2827c464268037817b309b229af8b4a69014e47b | refs/heads/master | 2020-08-27T18:42:57.025814 | 2019-10-23T12:39:16 | 2019-10-23T12:39:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,972 | py | # -*- coding: utf-8 -*-
"""
WaterSat
author: Tim Martijn Hessels
Created on Tue Oct 1 13:25:22 2019
"""
import os
import gdal
import numpy as np
import pandas as pd
import warnings
import datetime
import WaporTranslator.LEVEL_1.Input_Data as Inputs
import WaporTranslator.LEVEL_1.DataCube as DataCube
import WaporTrans... | [
"timhessels@hotmail.com"
] | timhessels@hotmail.com |
5a38b04405d890de23e3283d6e0d1a7fbcc357bb | 33a5bce52506b8c01ee250830f28aacc46382989 | /accounts/forms.py | e0b7f5b79f689f4afce7274ef52e5b9dc3bbbe7c | [] | no_license | stsh1119/django_request_trap | 76ecac7709fc8c7847c479afa9b2cc384cf9cd0c | c55bfb8f0316f8ac03ffb7d60da48599289c0b81 | refs/heads/main | 2023-07-06T18:58:30.063801 | 2021-07-25T08:39:42 | 2021-07-25T08:39:42 | 380,741,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | from django.contrib.auth import get_user_model
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
class CustomUserCreationForm(UserCreationForm):
class Meta:
model = get_user_model()
fields = ('email', 'username', )
class CustomUserChangeForm(UserChangeForm):
class Meta... | [
"stshlaptop@gmail.com"
] | stshlaptop@gmail.com |
bfa0d79f8e6172fe2680868e91558d1789cb9387 | cee4dd54ea44f91511a8b886b2d763604afeb95d | /app/emails.py | 7cada0fc646cae0a6c88583b4bd278ef9a973824 | [] | no_license | damnedsteven/emcn_wh | 0520ebe12b8d986905e2d7d8f7eea530f69fba96 | 0180d47e8484e691b880433f3d07f6c3068477b8 | refs/heads/master | 2021-01-19T12:29:25.767510 | 2017-04-13T02:09:18 | 2017-04-13T02:09:18 | 88,033,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | from .decorators import async
from flask_mail import Message
from app import app, mail
from flask import render_template
from config import ADMINS
@async
def send_async_email(app, msg):
with app.app_context():
mail.send(msg)
def send_email(subject, sender, recipients, text_body, html_body):
msg = Mes... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
5724646c2d8664888cbf6def9ea0bdcc3cc5374a | 36a782b4fe282b96803458f9f6bf44355e4cf71f | /rotkehlchen/fval.py | bb601200d30b198e9dde67eb0d36edbb5ad6be60 | [
"BSD-3-Clause"
] | permissive | DUMIE505/rotki | 23911887c7cc741a5d682fb90c98e09828b8c66f | 046169bc068c7b29a271d6e80d978e02d0ea76ac | refs/heads/develop | 2023-01-07T20:32:57.215529 | 2020-01-29T22:58:28 | 2020-01-31T08:58:03 | 237,394,542 | 0 | 0 | BSD-3-Clause | 2022-12-27T15:35:36 | 2020-01-31T09:04:50 | null | UTF-8 | Python | false | false | 6,879 | py | from decimal import Decimal, InvalidOperation
from typing import Any, Union
from rotkehlchen.errors import ConversionError
# Here even though we got __future__ annotations using FVal does not seem to work
AcceptableFValInitInput = Union[float, bytes, Decimal, int, str, 'FVal']
AcceptableFValOtherInput = Union[int, 'F... | [
"lefteris@refu.co"
] | lefteris@refu.co |
cf396a701c4fabd74562aaed43cb8505fbdc5b23 | f95d2646f8428cceed98681f8ed2407d4f044941 | /numpydemo/01/day01/demo02_ndarray.py | d7decab2c5e6ccd28291779733520ff24d15eec1 | [] | no_license | q2806060/python-note | 014e1458dcfa896f2749c7ebce68b2bbe31a3bf8 | fbe107d668b44b78ae0094dbcc7e8ff8a4f8c983 | refs/heads/master | 2020-08-18T01:12:31.227654 | 2019-10-17T07:40:40 | 2019-10-17T07:40:40 | 215,731,114 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | """
demo02_ndarray.py
"""
import numpy as np
a = np.array([[1, 2, 3, 4],
[5, 6, 7, 8]])
print(a, a.shape)
# 起始值1, 终止值10, 步长1
b = np.arange(1, 10, 2)
print(b)
# 创建5个元素全为0的数组
c = np.zeros(5, dtype='int32')
print(c, c.dtype)
# 创建5个元素全为1的数组
d = np.ones(5, dtype='int32')
print(d, d.dtype)
# 创建数组e与f, 结构与a相同, e中全0,... | [
"C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn"
] | C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn |
5d810a67447f245b0101199251949b51ea6c8b82 | 2fe34a287bc79da86243ec7b9532e74258311cb8 | /thumbnails/conf/__init__.py | a7c1200db62bd0c6ccf546dff13cee033401bd6a | [
"MIT"
] | permissive | INARIcompany/python-thumbnails | 44c228a1a57843bf001fa342ae25e7e79644402f | f8836a60ef3f6130e38a9b40c7f4bcb5a3d7c02d | refs/heads/master | 2023-02-14T05:15:43.521090 | 2021-01-14T20:58:41 | 2021-01-14T20:58:41 | 329,731,071 | 0 | 0 | MIT | 2021-01-14T20:49:51 | 2021-01-14T20:49:50 | null | UTF-8 | Python | false | false | 77 | py | # -*- coding: utf-8 -*-
from thumbnails.conf.wrapper import settings # noqa
| [
"me@rolflekang.com"
] | me@rolflekang.com |
ae1ad986a8d66093295f5b63687111f255f1453e | 521efcd158f4c69a686ed1c63dd8e4b0b68cc011 | /airflow/providers/google/cloud/transfers/gdrive_to_local.py | 113a389c6fbf22314e9345d4caac708ef5871c83 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | coutureai/RaWorkflowOrchestrator | 33fd8e253bfea2f9a82bb122ca79e8cf9dffb003 | cd3ea2579dff7bbab0d6235fcdeba2bb9edfc01f | refs/heads/main | 2022-10-01T06:24:18.560652 | 2021-12-29T04:52:56 | 2021-12-29T04:52:56 | 184,547,783 | 5 | 12 | Apache-2.0 | 2022-11-04T00:02:55 | 2019-05-02T08:38:38 | Python | UTF-8 | Python | false | false | 3,834 | 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... | [
"noreply@github.com"
] | coutureai.noreply@github.com |
906ab9e89725e37b6440b90331db571633a5fd2f | 8bbeb7b5721a9dbf40caa47a96e6961ceabb0128 | /python3/396.Rotate Function(旋转函数).py | 5a9f84b92f2c5deadb136fc43540cab6fbb4e3a4 | [
"MIT"
] | permissive | lishulongVI/leetcode | bb5b75642f69dfaec0c2ee3e06369c715125b1ba | 6731e128be0fd3c0bdfe885c1a409ac54b929597 | refs/heads/master | 2020-03-23T22:17:40.335970 | 2018-07-23T14:46:06 | 2018-07-23T14:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,078 | py | """
<p>
Given an array of integers <code>A</code> and let <i>n</i> to be its length.
</p>
<p>
Assume <code>B<sub>k</sub></code> to be an array obtained by rotating the array <code>A</code> <i>k</i> positions clock-wise, we define a "rotation function" <code>F</code> on <code>A</code> as follow:
</p>
<p>
<code>F(k) = ... | [
"lishulong@wecash.net"
] | lishulong@wecash.net |
bdc59bd33735fb55293048af6b11e36c2cd99e7f | a7b592be95dc2af9fdb56725f44e98cc59166e6f | /apps/subway/download.py | e480b2677fcf65687d50862cb2018926dab6ab96 | [] | no_license | cash2one/CRM-3 | bc864c462d155b5dc6a51a5edbd564574b3e2f94 | cedcaeb397ccadb36952534242bd296c5b4513bb | refs/heads/master | 2021-06-14T07:40:53.572013 | 2017-05-23T15:52:06 | 2017-05-23T15:52:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,800 | py | # coding=UTF-8
import datetime
from mongoengine.document import Document
from mongoengine.fields import IntField, DateTimeField, StringField
from apilib import get_tapi, TopError, SessionCache
from apilib.app import QNApp
from apps.common.utils.utils_log import log
from apps.common.utils.utils_datetime import time_i... | [
"956879357@qq.com"
] | 956879357@qq.com |
fdfe2f9a3d3e3b660f7c7340ac430fa1a6359434 | 0b88a8e39e894fe72fd389505bdad786a6713439 | /lib/setup3.py | 51f4b3fbb0457190d4eb492ba1a479eb2d2b9855 | [
"Apache-2.0"
] | permissive | Trevol/pytorch-retinanet | d61a76c4a1cc14667ee0149440da865a8628d81f | e9c87a6c195d814d19edeca19166a5559df7da4a | refs/heads/master | 2020-05-24T17:41:33.785410 | 2019-05-29T08:52:39 | 2019-05-29T08:52:39 | 187,391,911 | 0 | 0 | null | 2019-05-18T18:23:50 | 2019-05-18T18:23:50 | null | UTF-8 | Python | false | false | 5,010 | py |
# --------------------------------------------------------
# Faster R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
from distutils.core import setup
from Cython.Build import cythonize... | [
"iam.vladimir.tretyak@gmail.com"
] | iam.vladimir.tretyak@gmail.com |
90751ed36f2869cf56e4df448cb42533a8bd624c | fcde32709c62b8ee86da459bb7c8eee52c848118 | /code/day17/作业00.py | 18b8f5c56d28eafa61ce240cdb8b8aa5ca0c34f6 | [] | no_license | klaus2015/py_base | 6b92d362c3d7dc0e09205a037f4d580381dac94d | ec32c731c1c2f6a0dab87f1d167397e4fa86b8de | refs/heads/master | 2022-07-28T15:49:30.383648 | 2020-05-11T15:31:43 | 2020-05-11T15:31:43 | 261,777,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | """
3. 定义敌人类(姓名,攻击力,防御力,血量)
创建敌人列表,使用list_helper实现下列功能.
(1) 查找姓名是"灭霸"的敌人
(2) 查找攻击力大于10的所有敌人
(3) 查找活的敌人数量
"""
from common.list_helper import *
class Enemy:
"""
敌人类
"""
def __init__(self,name,hp,basic_damage,defensive):
self.name = name
self.hp = hp
self.basic_dam... | [
"598467866@qq.com"
] | 598467866@qq.com |
5f42709ff47192bb9f442f01303bd687ae7209b6 | 7f8db5b974a747632729d16c431de7aca007af00 | /0x03-python-data_structures/5-no_c.py | 2a1bab55ec3424fa4324cbf2cbf8bae79f944bf2 | [] | no_license | thomasmontoya123/holbertonschool-higher_level_programming | 6f5ceb636167efba1e36ed2dee7bf83b458f6751 | 48b7c9dccac77ccb0f57da1dc1d150f356612b13 | refs/heads/master | 2020-07-22T22:31:13.744490 | 2020-02-13T22:54:17 | 2020-02-13T22:54:17 | 207,351,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | #!/usr/bin/python3
def no_c(my_string):
string = ""
for character in my_string:
if character != 'c' and character != 'C':
string = string + character
return string
| [
"tomasmontoya123@gmail.com"
] | tomasmontoya123@gmail.com |
c5f0c7f55c1bb473ee3127e3fb4c8ada7b3f9263 | 32cd5452417a6637f5e087c1a0c2c6405fbaf915 | /src/app/share/caheFiles.py | bf976ef14e20e73e12adaf7d364be8fe1b80b256 | [] | no_license | 549982170/SZLife_assisttant | 766bedff61cabe73513a449525f57c8bb5a9afb6 | 014ebc526a671e3b3c972d476ba29439fd7decbf | refs/heads/master | 2021-01-01T03:58:45.182066 | 2018-04-12T10:49:46 | 2018-04-12T10:49:46 | 97,097,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | # coding:utf-8
# !/user/bin/python
'''
Created on 2018年4月12日
@author: yizhiwu
内存缓存对象
'''
CACHE = {} # 函数值缓存
LOCK_DICT = {} # 线程池字典 | [
"549982170@qq.com"
] | 549982170@qq.com |
8e50dd5499fa0d29586e52cf45552d1f423fc3df | f6c6b7ac39deb9f2cc0a7ef8fb6459ca09fc27dd | /handlers/async_tasks.py | 8b33938195c156d334b41d736e78f0fca2f49e83 | [
"MIT"
] | permissive | via-jiang/celery-demo | 3112b28de81b3bc477629d51453d069e814e8adc | 48eaa732bc9270f6f54eab48ecc57ed98ee52e44 | refs/heads/master | 2021-09-13T18:27:42.893328 | 2018-04-16T01:48:41 | 2018-04-16T01:48:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/1/16 下午4:12
# @Author : Matrix
# @Github : https://github.com/blackmatrix7/
# @Blog : http://www.cnblogs.com/blackmatrix/
# @File : async_task.py
# @Software: PyCharm
import logging
from time import sleep
from manage import celery
__author__ = 'blackmatrix'
... | [
"codecolor@outlook.com"
] | codecolor@outlook.com |
cfd915494a9b7b83019c8450e29a4f903f9f4f18 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/2/fk8.py | 227030f6733236cc971789868e190ee296b49776 | [] | 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 |
50319c876ad3c8f6f001c1a658cf74c13b34cf69 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_26371.py | ff1f16eecf5e83d96d4fb23f7bcb43fa298ba04c | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,843 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
e8dc54e0d29dcbd3078510bb079021898840fe06 | 26d5c795d8aa83bf5cb3f228675ff51e2f704f57 | /scripts/tuple2json | eb4a6177f70c27c5ba91553a6c9515e04d247a90 | [] | no_license | binarymachines/mercury | 8e13bb10c67a056fe88e02f558d73f1f1b95d028 | db3e2425f4e77a44a97c740f7fff90312a1bd33f | refs/heads/master | 2023-07-08T11:35:26.867494 | 2023-06-25T00:46:23 | 2023-06-25T00:46:23 | 94,708,610 | 2 | 6 | null | 2023-02-15T21:50:06 | 2017-06-18T19:31:50 | Python | UTF-8 | Python | false | false | 2,595 | #!/usr/bin/env python
'''
Usage:
tuple2json --delimiter <delimiter> --keys=<key>... [--skip <num_lines>] [--limit=<limit>]
tuple2json --delimiter <delimiter> --datafile <file> --keys=<key>... [--skip <num_lines>] [--limit=<limit>]
'''
'''
+mdoc+
tuple2json takes a list of tuples (represented as CSV records ... | [
"binarymachineshop@gmail.com"
] | binarymachineshop@gmail.com | |
c91f3a8f8c97bee6dfad05db9551a7fd74a02a78 | 59880d47a533cf1f45f927adafff22d5ffb4796a | /Python/fullStackDjango/fullStackBooks/apps/books/migrations/0002_auto_20170524_0029.py | 9208e593e61e618fa8fa5d072fff9f74e252ea46 | [] | no_license | mightymcalpine/DojoAssignments | 2bc7bb791630040dbb62da917a26b74bbdd574e4 | 9c0d80953f6ddbe840314f3d333b5f4590e0c9f4 | refs/heads/master | 2021-01-18T00:07:07.128554 | 2017-06-05T16:38:35 | 2017-06-05T16:38:35 | 84,257,743 | 0 | 0 | null | 2017-06-02T05:34:36 | 2017-03-07T23:47:27 | Python | UTF-8 | Python | false | false | 383 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-24 00:29
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('books', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_n... | [
"larscodus@gmail.com"
] | larscodus@gmail.com |
2fece7e214d7330dd51e1119ce24086e0cdf399f | 02b9a9f40f56502c94d064654e030c521c2f325a | /django_task/utils.py | 533c749435edbf9ae8321797f72884ec9c9c8e23 | [
"MIT"
] | permissive | samlex20/django-task | 7c454922cf667853bc8678bfbb871e0f014b33b1 | 9966dd9a3366c10b3658298ff29c62250e5ec46f | refs/heads/master | 2020-05-30T21:48:11.947777 | 2019-06-03T04:50:53 | 2019-06-03T04:50:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | from __future__ import unicode_literals
import uuid
import os
import time
from django.http import Http404
from django.shortcuts import get_object_or_404
from django.utils import formats
from django.utils import timezone
from django.apps import apps
def get_object_by_uuid_or_404(model, uuid_pk):
"""
Calls get_... | [
"morlandi@brainstorm.it"
] | morlandi@brainstorm.it |
45e666a317a1cd2194028b38c269dcc81f2249a7 | 02406958bffadbce13240ea1fb5013bc005fa332 | /src/main/python/matrixext.py | 2b40104f311e9b6f6405f5791190fb618f232aec | [] | no_license | Jcamilorada/Networks | 4b03209f0324e7a00c5236b7215158684ea969ee | 1200529e501f9366bc38bb02b1d45f3079c976d3 | refs/heads/master | 2021-01-10T16:36:06.311138 | 2015-11-17T03:05:44 | 2015-11-17T03:05:44 | 45,878,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,925 | py | from BeautifulSoup import BeautifulSoup
import urllib2
import re
from subprocess import call
from os import walk, path
from joblib import Parallel, delayed
hdr = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11',
'Accept': 'text/html,applic... | [
"fico89@gmail.com"
] | fico89@gmail.com |
960761f93b8ca58af370503f84744e74126847fb | 74f68049235709841416010ec1e18e8085762113 | /.history/recursion_20191203122123.py | 7190b3a32cacbf96d5a3743a23aa3f6f8bcaf7a3 | [] | no_license | camilooob/pythonisfun | 749692517a6c6b147c428996c01fb3b2fa1aef14 | 55453e1f80f92c3756ee5f0338f93fc2a0d9beec | refs/heads/master | 2020-09-21T21:59:44.308526 | 2020-01-20T17:41:56 | 2020-01-20T17:41:56 | 224,947,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | def rec_count (number):
print (number)
# Base case
if number == 0:
return
rec_count (number + 1) # A recursive call with a different argument
print (number)
rec_count (5)
| [
"camilobaq@hotmail.com"
] | camilobaq@hotmail.com |
3f06ec717874a0469c361153d673f147c29904fb | b5a6f10c886fba6584d2ac7b4a29c69975826dbb | /clients/python/pricemonitor_api_client/models/get_all_domains_v3_api_response.py | 12e4f77837ed38236957ce51bf022e5fd7b9404f | [] | no_license | Patagona/pricemonitor-clients | 8c4f842ca3d4e459c77ac329ad488cb3e4c858bf | cf2d689bf9ed6ddea9501324cada918c3a88b4f8 | refs/heads/master | 2023-08-31T20:12:58.844253 | 2023-08-31T15:26:25 | 2023-08-31T15:26:25 | 279,618,794 | 1 | 1 | null | 2023-07-03T13:55:28 | 2020-07-14T15:09:38 | Python | UTF-8 | Python | false | false | 3,671 | py | # coding: utf-8
"""
Pricemonitor API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 0.0.6561
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import ... | [
"jenkins@patagona.de"
] | jenkins@patagona.de |
648499454a893c6b90a2797d465b43402210e6f4 | e3db01c4f135b4a350e0a326a88015ce99e632f3 | /verce-hpc-pe/src/prov/serializers/provjson.py | a8ce82138203cae2c8e6207c841befd287536974 | [
"MIT"
] | permissive | KNMI/VERCE | a5eb51fb09051e6bffdb6639798a5732a0e07470 | c2f9eaa70ecf1621a218afc5d73ca1304ca8ed36 | refs/heads/master | 2021-05-04T10:14:31.072177 | 2019-01-07T10:19:14 | 2019-01-07T10:19:14 | 51,840,168 | 2 | 4 | MIT | 2019-01-07T10:19:15 | 2016-02-16T14:05:03 | JavaScript | UTF-8 | Python | false | false | 13,610 | py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
__author__ = 'Trung Dong Huynh'
__email__ = 'trungdong@donggiang.com'
import logging
logger = logging.getLogger(__name__)
from collections import defaultdict
import datetime
import io
import json
from prov.s... | [
"spinuso@knmi.nl"
] | spinuso@knmi.nl |
58e97efc151d9f3a2da1fd1d8c4410862d39e548 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.5/django/contrib/localflavor/ar/forms.py | 05e085c6b238aa4077d4a3d12a5509635708e82d | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.5/django/contrib/localflavor/ar/forms.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
ddbc423127a5ff18708f91ef19571a84ab3e11c5 | 483d0589f1efc10af3cbffe44b8abfe8031bf776 | /descarteslabs/third_party/funcsigs/funcsigs/__init__.py | 78600102e03ac1514a7c19b08f3162208df98f7d | [
"Apache-2.0"
] | permissive | grpecunia/descarteslabs-python | 3f4129748c8b251c76cf094d34485ea2e563d174 | c99c3091f2629c758a27de4d8fd6e4a39a7b3013 | refs/heads/master | 2020-09-11T14:51:00.390072 | 2019-11-15T20:41:27 | 2019-11-15T21:02:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,787 | py | # Copyright 2001-2013 Python Software Foundation; All Rights Reserved
"""Function signature objects for callables
Back port of Python 3.3's function signature tools from the inspect module,
modified to be compatible with Python 2.6, 2.7 and 3.3+.
"""
from __future__ import absolute_import, division, print_function
imp... | [
"support@descarteslabs.com"
] | support@descarteslabs.com |
7ffb45eecdac616fe9c5ce26f57f0bae55224092 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/number/test_recorder.py | 635354b11760014111d91d22eb6242e3d9db539a | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 2,035 | py | """The tests for number recorder."""
from __future__ import annotations
from datetime import timedelta
from unittest.mock import patch
import pytest
from homeassistant.components import number
from homeassistant.components.number import ATTR_MAX, ATTR_MIN, ATTR_MODE, ATTR_STEP
from homeassistant.components.recorder ... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
2688ed15e9167a2616e98fcead68c08c2428e039 | d53a274a61ffe894a6e5648edf86f78145f0af7b | /tests/modes/test_stream.py | 921a3c083d2c4c932abd4ccd6c99093791ebc99f | [
"MIT"
] | permissive | deresmos/delogger | 8611d88714ffffddb5fa9bc12586fffb89fb8c11 | c185e4fd844414d561f521103975b95bd31aff43 | refs/heads/main | 2021-06-02T23:10:02.814473 | 2020-10-19T13:53:27 | 2020-10-19T13:53:27 | 153,235,270 | 5 | 0 | MIT | 2020-10-19T13:53:29 | 2018-10-16T06:40:46 | Python | UTF-8 | Python | false | false | 1,391 | py | from pathlib import Path
from delogger import Delogger
from delogger.modes.stream import StreamColorDebugMode
from delogger.modes.stream import StreamDebugMode
from delogger.modes.stream import StreamInfoMode
from tests.lib.base import Assert
from tests.lib.base import DeloggerTestBase
class TestStreamMode(DeloggerT... | [
"deresmos@gmail.com"
] | deresmos@gmail.com |
ceef2844a259de469756bc457bcfb2a756811678 | 8e1668e35a8df9968ab14d16db089b51dbe6dd51 | /python/algorithms/sort/merge_sort.py | 167273e24de284bb4cbd1cbfa418f619369e139c | [] | no_license | Chalmiller/competitive_programming | f1ec0184d1ff247201522ab90ca8e66b3f326afc | b437080d1ba977c023baf08b7dc5c3946784e183 | refs/heads/master | 2021-03-24T05:11:59.383916 | 2020-08-24T22:07:41 | 2020-08-24T22:07:41 | 247,519,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | def merge(S1, S2, S):
"""Merge two sorted Python lists S1 and S2 into properly sized list S."""
i = j = 0
while i + j < len(S):
if j == len(S2) or (i < len(S1) and S1[i] < S2[j]):
S[i+j] = S1[i] # copy ith element of S1 as next item of S
i += 1
else:
S[i+j] = S2[j] # copy jth e... | [
"chalmiller1@gmail.com"
] | chalmiller1@gmail.com |
d9fbe4fbc19c9b645f05143eda745eb788154644 | bf9d325c1154632cd56b860c35fb743f9750e93f | /Configurations/VBSjjlnu/Full2018v7/conf_fit_v4/samples.py | c34dd7e0be32ecd498d6e6dd1ca9633debde4dd3 | [] | no_license | dermotmoran/PlotsConfigurations | 3b1577f068215e08683d9309d3485459f8130ca6 | 062417c706918ccfc5b53bb5cf232b547d245f1b | refs/heads/master | 2023-03-15T11:44:29.444071 | 2023-03-08T10:10:53 | 2023-03-08T10:10:53 | 240,536,872 | 0 | 3 | null | 2020-12-21T15:47:04 | 2020-02-14T15:17:29 | Python | UTF-8 | Python | false | false | 16,871 | py | import os
import subprocess
import string
from LatinoAnalysis.Tools.commonTools import *
def nanoGetSampleFiles(inputDir, sample):
return getSampleFiles(inputDir, sample, True, 'nanoLatino_')
############################################
############ MORE MC STAT ##################
################################... | [
"davide.valsecchi@cern.ch"
] | davide.valsecchi@cern.ch |
23e3d90f8c6fac25f16b1ffcc6d2d56accb6bb1b | 66c3ff83c3e3e63bf8642742356f6c1817a30eca | /.vim/tmp/neocomplete/buffer_cache/=+home=+dante=+proyectos=+django-1.9=+mysite=+pruebaarbol=+models.py | 745addfd4f6e0f9b47c28f906f2c9fe123424849 | [] | no_license | pacifi/vim | 0a708e8bc741b4510a8da37da0d0e1eabb05ec83 | 22e706704357b961acb584e74689c7080e86a800 | refs/heads/master | 2021-05-20T17:18:10.481921 | 2020-08-06T12:38:58 | 2020-08-06T12:38:58 | 30,074,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | {'from', '__future__', 'import', 'unicode_literals', 'django', 'db', 'models', 'treebeard', 'mp_tree', 'MP_Node', 'ns_tree', 'NS_Node', 'al_tree', 'AL_Node', 'class', 'Category', 'name', 'CharField', 'max_length', 'node_order_by', 'def', '__str__', 'self', 'return', 's', '__unicode__'}
| [
"pacifi.bnr@gmail.com"
] | pacifi.bnr@gmail.com |
c3adb838965981ec18e6903f217ac461b3ef093c | 35fc084d330e62575c12bc714cbf414c082e9f8a | /ramdisk/target/common/usr/lib/python3.7/site-packages/typepy/checker/_ipaddress.py | 4ae9e749ecdb997ae763955301b1fca4c387ae1e | [
"Python-2.0"
] | permissive | BM1880-BIRD/bm1880-system-sdk | 8de97c6c0985b3bee8b06fb5fd2ee8daec693665 | eff2d6f5442676c04a221a62139864658208f57e | refs/heads/master | 2022-04-08T09:20:47.919696 | 2020-03-09T02:43:08 | 2020-03-09T02:43:08 | 159,283,885 | 29 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from __future__ import absolute_import
from ._checker import (
TypeChecker,
TypeCheckerStrictLevel,
)
from ._common import isstring
class IpAddressTypeCheckerStrictLevel0(TypeCheckerStrictLevel):
def is_instance(... | [
"haitao.suo@bitmain.com"
] | haitao.suo@bitmain.com |
f49a70a71099e94c0c3d967c18ae18bd219fede9 | c8036f589aac6da4dfe88ea2c86935045d06b73d | /falconcv/models/__init__.py | 89107a84cdd4a9134c9440f0812452a774eacd16 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"BSD-2-Clause"
] | permissive | CP-NEMO/FalconCV | 40740825becaada01460716e4db531619b830603 | 2662cb9aa68d91b52818626bb817568503bd6ef5 | refs/heads/master | 2022-09-21T18:55:52.366534 | 2020-06-08T03:27:47 | 2020-06-08T03:27:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from .api_installer import ApiInstaller
from .model_builder import ModelBuilder
from .api_model import ApiModel
| [
"henryruiz22@gmail.com"
] | henryruiz22@gmail.com |
e7b9210164d0d161651c3bb898343d30f63cee3b | 696972c107ba96341875bab03dbb92e9337e2924 | /train_bert/train12_aux.py | caff89211d0cae53a9f6714674554104742fa1f9 | [] | no_license | Dongfeng-He/nb | 577d3d5a5f0ec585f132946eb9b6475f6e6856bb | 1d65be2f98a72ae1bd58363bba42b5f1e8e7ac49 | refs/heads/master | 2020-05-29T15:37:29.882797 | 2019-08-09T02:11:25 | 2019-08-09T02:11:25 | 189,225,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,444 | py | import os
import pandas as pd
from evaluation import *
import random
import copy
import torch
from torch import nn
from torch.utils import data
from torch.nn import functional as F
import numpy as np
import time
import math
import gc
from pytorch_pretrained_bert import convert_tf_checkpoint_to_pytorch
from pytorch_pret... | [
"hedongfeng@qingting.fm"
] | hedongfeng@qingting.fm |
a5b0fc1063e34fd3268bf0dbb5dee86d3b3a34f8 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/python/keras/testing_utils.py | 57c5585363b515e8ffb00717a04f25b25e9cec10 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:f948b539999a928461c50492838f0aa264bc8aa39b722055b4f4a8317d5e8e0b
size 25030
| [
"github@cuba12345"
] | github@cuba12345 |
9ae2fca88541a98fc212a099fea1c9bbf40bfec5 | d4e573e8eae32db155fe5931b3e2dcd3aa48969b | /indigo/lib/python2.7/dist-packages/rocon_app_manager_msgs/srv/_Init.py | c91a36b46fa4aec26c1d464d23d1f93378458753 | [] | no_license | javierdiazp/myros | ee52b0a7c972d559a1a377f8de4eb37878b8a99b | 7571febdfa881872cae6378bf7266deca7901529 | refs/heads/master | 2022-11-09T09:24:47.708988 | 2016-11-10T16:56:28 | 2016-11-10T16:56:28 | 73,733,895 | 0 | 1 | null | 2022-10-25T05:16:35 | 2016-11-14T18:19:06 | C++ | UTF-8 | Python | false | false | 7,687 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from rocon_app_manager_msgs/InitRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class InitRequest(genpy.Message):
_md5sum = "c1f3d28f1b044c871e6eff2e9fc3c667"
... | [
"javier.diaz.palacios@gmail.com"
] | javier.diaz.palacios@gmail.com |
1a2ff067aa33a3067f665f3d85d66752e7419587 | 22d487f52d50cbd07487a0f9c2fb40d9b0673d24 | /tehbot/plugins/shadowlamb/__init__.py | 1591618c6d027b8b211d86fa320ea098dcbf2d5d | [
"MIT"
] | permissive | LostandFound5306/tehbot | 8ca76c7dc65c1c9586cd4f2c80639678eeec8fee | f5807379ff4599518f1f9bb46d549c4e1ee18375 | refs/heads/master | 2021-10-25T00:46:12.476077 | 2019-03-30T14:30:14 | 2019-03-30T14:30:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,286 | py | # -*- coding: utf-8 -*-
from tehbot.plugins import *
from tehbot.plugins import say, me
import tehbot.plugins as plugins
import irc.client
import model
import threading
import time
from random import randint, random
import os.path
#import gettext
#t = gettext.translation("Shadowlamb", os.path.dirname(__file__) + "/i18... | [
"tehron@quantentunnel.de"
] | tehron@quantentunnel.de |
80e572201fdf14e9dc184eee509e4fb9a400124e | fd899e63d4c33261911f0e35fb8cb286332b7a95 | /algorithm_202108/baek1075.py | b968e46f31d92d03a5084f6f6149807b322ee73b | [] | no_license | choyj0920/algorithm | 948452d652455973e928ef537729174109972252 | e1287799e7073232cbf8904cea7c348a2f2a9c30 | refs/heads/master | 2023-05-25T22:23:11.044049 | 2021-09-08T03:40:42 | 2021-08-13T08:04:46 | 225,736,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | # baek1075 나누기
n=int(input().rstrip()[:-2]+'00')
f=int(input())
print(format((f-n%f)%f,'02')) | [
"44551544+choyj0920@users.noreply.github.com"
] | 44551544+choyj0920@users.noreply.github.com |
5be7597d9b79497f129d448a582e4da7ba3720fe | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r9/Gen/DecFiles/options/11164450.py | aa5dc4673014eec3a42cde5a51ad6a896418a48f | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/11164450.py generated: Fri, 27 Mar 2015 16:10:17
#
# Event Type: 11164450
#
# ASCII decay Descriptor: {[[B0]nos -> (D- => K+ pi- pi- pi0) pi+]cc, [[B0]os -> (D+ => K- pi+ pi+ pi0) pi-]cc}
#
from Configurables import Generation
Generation().EventType = 111... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
b79d7f133f726c28e34a6124100816702b418473 | d0320f7a0d23cf6dbc93bed6af5cf22625a1998c | /QueensPuzzleFaster.py | afa69f2f96a4ebb46146776d6760744c448c41ad | [
"MIT"
] | permissive | cmcclana/CIS2001-Fall2017 | f8ba05cd20406bd3e743d1abd13320dfb0aaf234 | d601f1ef87fb49852ce7a7223537baa5f3a3e664 | refs/heads/master | 2021-08-08T06:59:37.543336 | 2017-11-09T20:40:44 | 2017-11-09T20:40:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,766 | py | class QueensPuzzle:
QUEEN = 'Q'
SPACE = ' '
def __init__(self, number_of_queens):
self.number_of_queens_on_board = 0
self.board = [ [ QueensPuzzle.SPACE ] * number_of_queens ] * number_of_queens
self.diagonals_minus = [True] * number_of_queens * 2
self.diagonals_plus = [True]... | [
"eric.charnesky@careevolution.com"
] | eric.charnesky@careevolution.com |
170f7f94ed25f2759dcdc8e16985bde2afe610d5 | 5f67c696967456c063e5f8a0d14cf18cf845ad38 | /archiv/_python/py4inf/open.py | 8431e67ce7563c4ff42278b098951cc12a1fedb3 | [] | no_license | wuxi20/Pythonista | 3f2abf8c40fd6554a4d7596982c510e6ba3d6d38 | acf12d264615749f605a0a6b6ea7ab72442e049c | refs/heads/master | 2020-04-02T01:17:39.264328 | 2019-04-16T18:26:59 | 2019-04-16T18:26:59 | 153,848,116 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | fhand = open('mbox.txt')
count = 0
for line in fhand:
count = count + 1
print('Line Count:', count)
| [
"22399993@qq.com"
] | 22399993@qq.com |
b33d3bf4771d52646ef6acbedbd83ff655913fe4 | 8fbe463322c675d1e1b11adbf5ddfbca77a71c3b | /utils/code.py | 56280c1e875f22c62163b1ab9e26a6ab05dc25c5 | [] | no_license | qhuydtvt/tk-poll | 7cdcd456c3fdca226a31868297df891d8ba2a890 | 1a0b9898f7ae9e3ab9f4d81ee8ee737b581de0d6 | refs/heads/master | 2021-05-06T13:36:04.976284 | 2018-10-28T09:42:42 | 2018-10-28T09:42:42 | 113,245,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | from shortuuid import ShortUUID
import string
alphabet = string.ascii_uppercase
helper = ShortUUID(alphabet=alphabet)
def code(length):
return helper.random(length=length)
def code_6():
return code(6)
| [
"qhuydtvt@gmail.com"
] | qhuydtvt@gmail.com |
e705fa50c065351bd59b8171e8b499d80879553e | 98e79aff0c504ae703df1b4b6a621caedb5be4de | /v1.2/client/gwElements/__init__.py | 1d3b635476e73e5a0e6ec743178e066ab5ce82e2 | [] | no_license | lotaku/board-game | 26b97b3f6cb241e55852b6d60da3073a9347e4d3 | d90fe5ffabef0cdfa0538be14f69afdc0ca0badc | refs/heads/master | 2020-06-03T05:00:59.617051 | 2014-05-18T14:44:00 | 2014-05-18T14:44:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | #import gameWin
| [
"317399510@qq.com"
] | 317399510@qq.com |
fcd708af9bfc4b3f389194c77969d032fa8bedc7 | b5e10b2cfe261beca4a275d5b4b562acaa12bd06 | /zentral/contrib/monolith/events/__init__.py | c0fbc28569df9cce42affaf22b924388cb7df0d3 | [
"Apache-2.0"
] | permissive | mikemcdonald/zentral | 29dc0a6b3284be00ccc99ca3eb4ac2f4474c12a7 | 4aa03937abfbcea6480aa04bd99f4da7b8dfc923 | refs/heads/master | 2021-06-24T16:16:26.216665 | 2017-09-11T18:53:21 | 2017-09-11T18:53:21 | 103,157,487 | 0 | 1 | null | 2017-09-11T16:02:43 | 2017-09-11T16:02:43 | null | UTF-8 | Python | false | false | 3,038 | py | import logging
from zentral.core.events.base import BaseEvent, EventMetadata, EventRequest, register_event_type
logger = logging.getLogger('zentral.contrib.monolith.events')
ALL_EVENTS_SEARCH_DICT = {"tag": "monolith"}
class MonolithMunkiRequestEvent(BaseEvent):
event_type = "monolith_munki_request"
tags =... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
ff0eb43da6776fc0eac6b6f8c96830917c6afff1 | ba602dc67ad7bb50133aeb312f3c6c54627b3dec | /data/3955/WA_py/508593.py | 06675fcbb26d3e323e2a68115c546a11b7a4de8d | [] | no_license | Dearyyyyy/TCG | 0d21d89275906157372d775f33309ce337e6bc95 | 7b80de16de2d3f5d95a7c4ed95d45a9e38882e67 | refs/heads/master | 2020-12-27T23:19:44.845918 | 2020-02-04T01:59:23 | 2020-02-04T01:59:23 | 238,101,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | # coding=utf-8
while True:
a,b=input().split(" ")
a=str(a)
b=str(b)
for j in a:
c=j
break
for p in b:
d=p
if c==d:
print("YES")
else:
print("NO") | [
"543271544@qq.com"
] | 543271544@qq.com |
c0512504cf1270b966a95b5ebacf96088a6be4f1 | 89f0df65abe01e273fd7cf0606727c777352ba47 | /Python/code_comp/Prog_camp/py_temp/app.py | 0c661bc68a19723f5a486a52948b941385912ac2 | [] | no_license | cqann/PRGM | 486122601b959cfbf7d9d2dc2a37caa858cf15a8 | 7387dafb65895528c042a3f1ab605fa5325056ce | refs/heads/master | 2022-02-16T00:59:32.342327 | 2022-01-27T16:55:46 | 2022-01-27T16:55:46 | 226,111,892 | 0 | 1 | null | 2020-11-16T17:41:44 | 2019-12-05T13:45:21 | Python | UTF-8 | Python | false | false | 15 | py | print("asdasd") | [
"cqann.lindberg@gmail.com"
] | cqann.lindberg@gmail.com |
45b72754c05463b85f4f32701ecd1784ceb7c7ed | fb7f1533b03d5ea083da8c7dce448c914f25d5a3 | /bookbuilder/book/migrations/0003_chapter_image_paragraph.py | cc6c0e1cfbab3c14f2533278220074b4f6f12cee | [] | no_license | Mark-Seaman/Book-Builder | 7fccfe60afe10564e666fd125ae22b4362abfac2 | 18b5c14c11000da576ea16908b019de0aab50d0b | refs/heads/master | 2023-01-09T14:23:25.641654 | 2020-11-11T22:52:39 | 2020-11-11T22:52:39 | 293,887,524 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | # Generated by Django 3.1.1 on 2020-09-24 17:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('book', '0002_auto_20200915_1812'),
]
operations = [
migrations.CreateModel(
name='Chapter',
... | [
"Mark.Seaman@imac.net"
] | Mark.Seaman@imac.net |
ceabf86ddd55006ceff709e98ee806d5ec567bd0 | a54007706a09b387690f79fd7ffd889decad42f1 | /day32/18_特殊的where方法.py | dd0736b5dc3881b37cdcb9223e7e78cb823cfa21 | [] | no_license | lvah/201903python | d425534544a1f91e5b80b5ff0de5ca34037fe6e9 | 1415fcb7697dfa2884d94dcd8963477e12fe0624 | refs/heads/master | 2020-07-06T16:45:37.882819 | 2019-09-08T10:13:07 | 2019-09-08T10:13:07 | 203,082,401 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | import pandas as pd
import numpy as np
import string
# &**********series中的where方法运行结果和numpy中完全不同;
s1 = pd.Series(np.arange(5), index=list(string.ascii_lowercase[:5]))
# print(s1.where(s1 > 3))
# 对象中不大于3的元素赋值为10;
print(s1.where(s1 > 3, 10))
# 对象中大于3的元素赋值为10;
print(s1.mask(s1 > 3, 10))
| [
"root@foundation0.ilt.example.com"
] | root@foundation0.ilt.example.com |
324f72699782843650fe7fd88f2690d0f6747fcb | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/lifesciences/v2beta/lifesciences-v2beta-py/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/transports/grpc_asyncio.py | 26c6624f2b74e07859902273ec771ea853a3ab51 | [
"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 | 13,640 | 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 |
fdc71274dc682931542826201880a243b8d96ffc | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/leetCode/DP/BitwiseORsOfSubarray.py | 436f6200d70c69b2173aec53cf6d08c850f9a229 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 2,238 | py | """
We have an array A of non-negative integers.
For every (contiguous) subarray B = [A[i], A[i+1], ..., A[j]] (with i <= j), we take the bitwise OR of all the elements in B, obtaining a result A[i] | A[i+1] | ... | A[j].
Return the number of possible results. (Results that occur more than once are only counted once... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
9a22c52ec3248feaf483c3d56b8667dd2f1e8c3d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_coding.py | a254547576f9229c8cf3428e8dfbf7c636522ad4 | [
"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 | 221 | py |
from xai.brain.wordbase.nouns._cod import _COD
#calss header
class _CODING(_COD, ):
def __init__(self,):
_COD.__init__(self)
self.name = "CODING"
self.specie = 'nouns'
self.basic = "cod"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
505b98c848c3caaceaa003ae39780cba0e75b26c | 23e55ab51e322a3c0f967976a84f42f70f8ab701 | /tensorflow/python/distribute/distribute_lib_test.py | bac623ada52edd601957dc1e7ebf2d63f452fb72 | [
"Apache-2.0"
] | permissive | thangnvit/tensorflow | f58e7c2f95690f337361aa2973f2b84ac7e7f947 | c83887196eb717af66a7b3f008e970b4a226ff8f | refs/heads/master | 2021-02-21T17:51:56.030461 | 2020-03-06T07:55:33 | 2020-03-06T07:58:38 | 245,362,540 | 3 | 0 | Apache-2.0 | 2020-03-06T08:05:41 | 2020-03-06T08:05:40 | null | UTF-8 | Python | false | false | 21,712 | py | # Copyright 2018 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
9b803a8bef5841f4caa1aca59c39e166c2b74190 | dcab6930a95a3c5530e9b9bfba0e495667c98599 | /Data_Analysis/Data_camp_lecture/Manipulation(Pandas)/summarystatistics_ex4.py | e9819acf44e289ed025cdce3b8e86af349c1d586 | [] | no_license | wxlovolxw/GIWON-S-STUDY | 7db1fb30dfc16c8bc60592d0696434f1482ecdde | 6a622b5d372741b4f9d215f649235353f3e645cd | refs/heads/master | 2023-06-23T06:05:03.058692 | 2021-07-26T05:37:35 | 2021-07-26T05:37:35 | 283,812,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | # Sort sales_1_1 by date
sales_1_1 = sales_1_1.sort_values("date",ascending=True)
# Get the cumulative sum of weekly_sales, add as cum_weekly_sales col
sales_1_1["cum_weekly_sales"] = sales_1_1.weekly_sales.cumsum()
# Get the cumulative max of weekly_sales, add as cum_max_sales col
sales_1_1["cum_max_sales"] = sales_... | [
"62921934+wxlovolxw@users.noreply.github.com"
] | 62921934+wxlovolxw@users.noreply.github.com |
491113ea1a9970929b7916b82c56331f33432aee | abfcee924f57ee2011443703d4869f828e548910 | /account_move_import/__openerp__.py | be0b63316135994bd728cd6f5bb5313233dd3bcd | [] | no_license | Comunitea/external_modules | fb68cbf84cee1c6aa748f4f10e2999b9bb6aadf5 | 9718281e31b4a4f6395d8bed54adf02799df6221 | refs/heads/8.0 | 2023-09-03T17:18:37.652200 | 2022-02-10T09:33:33 | 2022-02-10T09:33:33 | 49,890,295 | 4 | 33 | null | 2022-10-10T11:34:24 | 2016-01-18T16:47:40 | Python | UTF-8 | Python | false | false | 1,427 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# Odoo, Open Source Management Solution
#
# Copyright (c) 2009-2015 Noviat nv/sa (www.noviat.com).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the G... | [
"omarcs7r@gmail.com"
] | omarcs7r@gmail.com |
1b735b2356f26bdb52cb9b1903b806556a163b23 | 6fce025097cebfd9d1dd37f6611e7fdfdbea90e6 | /rainfields/band_quest/data_loader.py | 1e4559f99a809d5068facd1ae4e57f3b0fd4f369 | [] | no_license | ANU-WALD/pluvi_pondus | ec0439d19acdcf4fdf712d6b14a1714297d661b2 | ff8680f7115ab2cb75138bf6705abb59618e47d1 | refs/heads/master | 2021-07-01T14:32:14.501631 | 2020-08-22T09:41:28 | 2020-08-22T09:41:28 | 138,804,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | import xarray as xr
import tensorflow as tf
import numpy as np
import datetime
import os
import random
tf.compat.v1.enable_eager_execution()
class gen:
def __call__(self, fname, band, jitter=False):
dsg = xr.open_dataset(fname.decode("utf-8"))
for t in dsg.time:
d = datetime.datetime... | [
"pablo.larraondo@anu.edu.au"
] | pablo.larraondo@anu.edu.au |
782fb8abbf0dca149bb77484bf1ff34f827f910f | 52fc25b679bfb962a17c18420d16692706f8697e | /WebScrape3.py | 9b2b919f854ffe3786389c0ee5b7495e3988c244 | [] | no_license | adanque/Data-Gathering-Techniques-using-APIs-and-Web-scraping-with-Python | 15fecd4da2f71a065cff6be2f2aa67410bc0bb75 | 7d3dc205e4aba5bd9444513fdce465d31805f178 | refs/heads/main | 2023-03-15T08:42:27.212870 | 2021-03-21T21:08:01 | 2021-03-21T21:08:01 | 349,256,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | #from BeautifulSoup import BeautifulSoup
from urllib.request import urlopen
from bs4 import BeautifulSoup as bs
soup = bs(
urllib.urlopen('kitco.com/kitco-gold-index.html').read()) | [
"adanque@gmail.com"
] | adanque@gmail.com |
30731d061dac5ddc8fbcbd873b5ac8a79e08f327 | 665d9bad46e68f779512640e582d2522867b0dba | /Heap/378. Kth Smallest Element in a Sorted Matrix.py | 3569b8b060beb9f019c34d33633df7b42a22d291 | [] | no_license | RahatIbnRafiq/leetcodeProblems | 6fd1e9726b14b7ad3571e5a4af5665b72f7aee0a | 2d35590d189938e0705a21be110e75e0b209ea96 | refs/heads/master | 2021-11-25T11:58:20.498911 | 2021-11-25T00:43:04 | 2021-11-25T00:43:04 | 72,865,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | import heapq
class Solution(object):
def kthSmallest(self, matrix, k):
return list(heapq.merge(*matrix))[k-1]
| [
"rahat.rafiq@colorado.edu"
] | rahat.rafiq@colorado.edu |
6f46684631905e99275e3e85d175b2b16e8a63d0 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/03_model_fitting/merraRF882/391-tideGauge.py | 17fa5644f4a0e20042369b1e1ddd12b589bc5156 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,456 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 4 15:51:30 2020
This program is designed to validate a Random Forest
model by using the KFOLD method
@author: Michael Tadesse
"""
#import packages
import os
import glob
import numpy as np
import pandas as pd
from sklearn import metrics
from scipy import stats
import se... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
488dc76a0442a7b08a9df5d702b3718760e75d5e | 9851c3f47c1aa165bc0d239074fe238f82055875 | /LeetCode/0412. Fizz Buzz/solution.py | bc2af790c4bad5cd76258e058f6079a7df8e9841 | [
"Apache-2.0"
] | permissive | InnoFang/algo-set | 12f886dbec0da664327d26bcaf02c1316151a643 | 2419a7d720bea1fd6ff3b75c38342a0ace18b205 | refs/heads/master | 2023-03-16T09:51:24.631068 | 2023-03-13T11:08:54 | 2023-03-13T11:08:54 | 86,413,001 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | """
8 / 8 test cases passed.
Runtime: 28 ms
Memory Usage: 15.2 MB
"""
class Solution:
def fizzBuzz(self, n: int) -> List[str]:
return ["FizzBuzz" if i % 3 == 0 and i % 5 == 0 else \
"Fizz" if i % 3 == 0 else \
"Buzz" if i % 5 == 0 else \
str(i) for i in range(... | [
"innofang@outlook.com"
] | innofang@outlook.com |
9d0ed4a9bba517cc8e6767aa4c0fff77878212c4 | 1edfd072fae205d766e7c488f1af64f3af9fc23a | /src/python/sensors/microphone/microphone.py | c2f1fa4bf16a131848871f8e709d0692804cbd54 | [] | no_license | kth-social-robotics/multisensoryprocessing | 17fc96eb3776642de1075103eeb461125020c892 | 867abe6c921fbf930ac26e0f43a8be0404817bcd | refs/heads/master | 2021-01-21T11:50:16.348566 | 2018-11-05T14:48:42 | 2018-11-05T14:48:42 | 102,027,696 | 4 | 2 | null | 2018-02-20T15:14:22 | 2017-08-31T17:39:58 | C++ | UTF-8 | Python | false | false | 2,429 | py | import pyaudio
import sys
import time
import msgpack
sys.path.append('../..')
import numpy as np
import re
from shared import create_zmq_server, MessageQueue
import sys
import wave
import datetime
if len(sys.argv) != 2:
exit('please only supply sound card name')
device_names_string = sys.argv[1]
FORMAT = pyaudio.... | [
"pjjonell@kth.se"
] | pjjonell@kth.se |
bc7bec551e2c03787c3416668a264b12cadc4258 | c18e1fa174e1b0e6d56e9f1a8a3708099c3cd248 | /learning_from_mcvine/res_sims/Ei_30/E-7.98574177896_hkl-1.2631196834,-0.985399386564,0.344825718364/run.py | c8c8bb10719d8e3c5cea76da9babf3f432f8b649 | [] | no_license | pnave95/ORNL_public_research | e0662657b41969f3f3dc263ea4c62a042d85547a | 58cad7508f9d29c17af5419f05522c2f724e717e | refs/heads/master | 2021-01-20T00:39:58.308250 | 2017-06-22T20:03:57 | 2017-06-22T20:03:57 | 89,160,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | #!/usr/bin/env python
import mcvine.cli
from numpy import array
from mcvine_workflow.singlextal.resolution import use_res_comps as urc
beam_neutrons_path = '/SNS/users/p63/ORNL_public_research/MCViNE_Covmat_comparison/mcvine_resolution/beams/beam_30_1e9/out/neutrons'
instrument = urc.instrument('ARCS', '3.*meter', '13.... | [
"p63@analysis-node03.sns.gov"
] | p63@analysis-node03.sns.gov |
dee6e4cddedf7e291e576951014671d28cee09bb | 9b4bd7bb36d6e2d63973c724ca1ceb1c5e123ee1 | /launcher/deployment/migrations/0014_auto__add_field_deployment_remote_container_id__add_field_deployment_r.py | 5ad9d4cab5e81057db503de2651b3868113f73af | [] | no_license | zennro/launcher | 39de39345a15b1f544222503e5cf82992c1e62c8 | 25651d1ffa29adad18d1e003f69720bea9671d7c | refs/heads/master | 2020-04-20T19:16:59.492609 | 2014-02-27T16:22:30 | 2014-02-27T16:22:30 | 17,900,826 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,171 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Deployment.remote_container_id'
db.add_column(u'deployment_deployment', 'remote_container_id... | [
"filip@jukic.me"
] | filip@jukic.me |
e7959142b07770d2de4bb62d1aee359a7aaf3c7b | 161e01f92e3810edff17054851259e54a1432921 | /rapid7vmconsole/models/resources_user_account.py | 4c2e48f07118ad180885bdef93b98cfe414424cf | [
"MIT"
] | permissive | Tofuhippo/vm-console-client-python | f3ffa3257b1928791fef090404377b43c3ff28d5 | 3c856923be1caf22c29a5d309713b8940546b57b | refs/heads/master | 2020-06-26T04:07:37.251955 | 2019-07-29T20:45:40 | 2019-07-29T20:45:40 | 199,524,127 | 0 | 0 | MIT | 2019-07-29T20:42:37 | 2019-07-29T20:42:37 | null | UTF-8 | Python | false | false | 4,187 | py | # coding: utf-8
"""
Python InsightVM API Client
OpenAPI spec version: 3
Contact: support@rapid7.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from rapid7vmconsole.models.link import Link # noqa: F401,E501
from rapid7vmcon... | [
"zachary_youtz@rapid7.com"
] | zachary_youtz@rapid7.com |
aef74e6af7e67ac384a7f081ccb14a6821297285 | 7f76ae284ab2649def3da9d609beb4dbad9cb57d | /SnakesLadders/make_game.py | 718247d55956e1bcbfbca7d83b279b140d16efda | [
"CC0-1.0"
] | permissive | robclewley/DataScotties | 0f696fe32debe1aee4f5fdc8e5fac4d9b94eeb99 | 63cca1c2fb5ffd75f4c99507ac497ae7cefec04d | refs/heads/master | 2021-01-10T05:17:12.412352 | 2016-02-29T23:51:11 | 2016-02-29T23:51:11 | 50,062,479 | 9 | 17 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | import snakesladders as SL
def make_game_from_dict(setup):
"""
`setup` parameter is a dictionary, e.g. loaded from JSON file
Returns a GameFSM object configured from the dictionary.
"""
game = SL.GameFSM(setup['size'])
for s1, s2 in setup['snakes']:
game.all_states[s1].link = s2
for... | [
"rob.clewley@gmail.com"
] | rob.clewley@gmail.com |
c39c260b4df726acbb3317afe5c554771a0f41df | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc073/A/4905897.py | 82d6df3f77d1a5ec614d18c5565e9bea8047e7fd | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | n = input()
if n.count('9') > 0:
print('Yes')
else:
print('No') | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
9359c407b694b3443b2748371e2164ab388b93b7 | b155be1edeac8183736ababc64b52f07f15e3269 | /appengine/swarming/handlers_exceptions.py | dcacd94a38946b90180532a2ab8c9ffdfdf66fd9 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | luci/luci-py | d9ef3325a2b193d3f127363c012fe60860ea91fd | 10cc5fdcca53e2a1690867acbe6fce099273f092 | refs/heads/main | 2022-11-26T09:32:20.640834 | 2022-11-24T15:11:30 | 2022-11-24T15:11:30 | 33,140,918 | 84 | 36 | Apache-2.0 | 2022-11-23T13:56:13 | 2015-03-30T18:39:14 | Python | UTF-8 | Python | false | false | 477 | py | # Copyright 2021 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
"""Exceptions raised by methods called by prpc/endpoints handlers."""
class BadRequestException(Exception):
"""The request is invalid."""
clas... | [
"infra-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | infra-scoped@luci-project-accounts.iam.gserviceaccount.com |
0fc9798741c58e929507d74f4a8591a6aef58c50 | 817defeeecbe0f9da401671dadecc3a4319e1915 | /ex43.py | b6ba10aa1a9b22214466786e2d7b1d0a76e65ce1 | [] | no_license | mrech/LearnPython_TheHardWay | 5099cb3f21b7f64b7c936efe2381fff00178e2be | 47b049c1f6539b9257a53e442a5ba701de3f75a3 | refs/heads/master | 2020-04-16T15:30:44.013671 | 2019-02-20T17:33:54 | 2019-02-20T17:33:54 | 165,705,302 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,564 | py | # Gothons from Planet Percal #25
'''
* noun (classes)
- verbs (functions)
* Map
- next_scene
- opening_scene
* Engine
- play
* Scene
-enter
* Death
* Central Corridor
* Laser Weapon Armory
* The Bridge
* Escape Pod
'''
# Basic imports for the game
from sys import exit ... | [
"rivato.morena@gmail.com"
] | rivato.morena@gmail.com |
55c96c6259dbae33f993fa4591c05bbd163957fc | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/41/usersdata/138/21859/submittedfiles/gravitacional.py | e1574ee30ef0e241c176b4af46ebad86bb520b4d | [] | 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,380 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
import funcoes
#ENTRADA
dimensao = input('Digite a dimensao das matrizes: ')
matrizA = input('Digite a Matriz A como uma única linha entre aspas: ')
matrizD = input('Digite a Matriz D como uma única linha entre aspas: ')
alfa = input('Digite o ... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7d2bda3c4063f35013dcfc03874bce7500ebf9a5 | 4f3d283fc8f07af65d857370294986dbc37c520c | /kata/done/masodfok2.py | 4a39751880ab6565e0832f3ad85bfe51d95b1aa1 | [] | no_license | csxeba/wiw | 69a36ed6fee4240d6ed545e4f4e6d60c46090921 | 7251eeaaa98424a95c5837bddd6979ddbf0dd1ec | refs/heads/master | 2020-06-28T11:46:21.993337 | 2017-02-16T21:20:25 | 2017-02-16T21:20:25 | 67,785,378 | 0 | 0 | null | 2016-09-13T09:52:33 | 2016-09-09T09:22:54 | Python | UTF-8 | Python | false | false | 965 | py | """
Ez egy dokumentációs string a programunk elején.
Ide szokták beírni, hogy mit csinál a program.
Ez a program definiál egy másodfokú egyenlet megoldó
függvényt és megold néhány másodfokú egyenletet.
Írj egy függvényt, ami paraméterként a másodfokú
egyenlet a, b és c együtthatóit várja:
ax**2 + bx + c = 0 forma ese... | [
"csxeba@gmail.com"
] | csxeba@gmail.com |
1436bed40ecd073c5238666b7406512170c8414c | d7cfe98faeb0fe1b4ce02d54d8bbedaca82764f7 | /1106_문제풀이/swea_5251_최소이동거리_solution(heap).py | 2182c4588a300d2baac9a7f0efef028ae351d25d | [] | no_license | Anseik/algorithm | 27cb5c8ec9692cf705a8cea1d60e079a7d78ef72 | 925404006b84178682206fbbb3b989dcf4c3dee9 | refs/heads/master | 2023-02-26T00:02:01.696624 | 2021-02-03T14:10:28 | 2021-02-03T14:10:28 | 301,753,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | import sys
import heapq
sys.stdin = open('swea_5251_최소이동거리_solution.txt')
def dijkstra_heap():
dist = [987654321] * (V + 1)
visited = [False] * (V + 1)
heap = []
dist[0] = 0
heapq.heappush(heap, (0, 0))
while heap:
w, v = heapq.heappop(heap)
if not visited[v]:
vis... | [
"kma9271@naver.com"
] | kma9271@naver.com |
352f6e17c51d8f3ef0e4cc8edce87cce6667407d | bb981602d111b709efec6279c3fccc6ef9efcc13 | /blog/migrations/0001_initial.py | 35b8244eae51e2a60ba29dd8edcdd84583a02924 | [] | no_license | sompodsign/shampad_blog_pro | 3897e5f95b48341b4058a5e42bb1ea70f1f9866e | b031b950e778b1534f433a33b84b37e93186e9b2 | refs/heads/main | 2023-02-27T13:15:00.984530 | 2021-02-11T16:06:01 | 2021-02-11T16:06:01 | 337,414,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,548 | py | # Generated by Django 3.1.5 on 2021-01-24 04:04
import ckeditor.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import taggit.managers
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"sompodsign@gmail.com"
] | sompodsign@gmail.com |
b0b78586d69b34335c3a959605e75ab6c38817cf | 73758dde83d1a1823c103e1a4ba71e7c95168f71 | /nsd2004/devweb/mysite/mysite/settings.py | 58e918a61f92bb516161549dc5c59d8d67ec1e17 | [] | no_license | tonggh220/md_5_nsd_notes | 07ffdee7c23963a7a461f2a2340143b0e97bd9e1 | a58a021ad4c7fbdf7df327424dc518f4044c5116 | refs/heads/master | 2023-07-02T01:34:38.798929 | 2021-05-12T08:48:40 | 2021-05-12T08:48:40 | 393,885,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,240 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.12.
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
#... | [
"zhangzg@tedu.cn"
] | zhangzg@tedu.cn |
2d1650cd972e452861a4ceffa9d5cd93f683468b | c8c4f6c72ffc801cc24d69617c170c3ee093dc86 | /ReadMeCleaner.py | 8ae4a9379ea46720a301f31a7d8736eb1dde9e5f | [] | no_license | PasaOpasen/MathClasses | 831d85eab3c038841a40ae3e7b0896dcf6706993 | d11f124e09217fdc6deccfc59feb1a81378be1af | refs/heads/master | 2021-12-14T17:54:36.235687 | 2021-11-30T08:15:21 | 2021-11-30T08:15:21 | 237,803,522 | 8 | 3 | null | 2020-12-03T14:07:40 | 2020-02-02T16:53:44 | C# | UTF-8 | Python | false | false | 246 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 25 16:10:36 2020
@author: qtckp
"""
with open('README.md', 'r') as f:
t = f.readlines()
with open('README.md', 'w') as f:
for l in t:
f.write(l.lstrip() if l != '\n' else l)
| [
"qtckpuhdsa@gmail.com"
] | qtckpuhdsa@gmail.com |
827ef53c1ea908502f11b3dce5f71710fb9c9100 | 93bd129c0d189124bb690670b22c4a80edda95b2 | /pg/libs/log_lib.py | 41f888b4bebff25a45783e32903571945e0d7155 | [] | no_license | vdeandrade/32id-tomo | 0690564d263392f52c3d239bd7aec7a0bfc507e1 | ea0f5debf121648c1366c50f0a239ee938e6a32f | refs/heads/master | 2020-12-22T16:00:35.300527 | 2020-01-28T21:51:35 | 2020-01-28T21:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | '''
Log Lib for Sector 2-BM
'''
import logging
# Logging defines
__GREEN = "\033[92m"
__RED = '\033[91m'
__YELLOW = '\033[33m'
__ENDC = '\033[0m'
logger = None
info_extra={'endColor': __ENDC, 'color': __GREEN}
warn_extra={'endColor': __ENDC, 'color': __YELLOW}
error_extra={'endColor': __ENDC, 'color': __RE... | [
"decarlof@gmail.com"
] | decarlof@gmail.com |
54ddf4c157f62fca30b578f135e52359bccbe23c | a644ae249712bddb9cb1b8d2a75812c107736fe5 | /test/test2.py | 362c1e5a84349bcf063528ac0c493fc057941bfd | [
"MIT"
] | permissive | linsalrob/SEED_Servers_Python | a834b7ce763e9d1e89cb76530e847f3fe6422df8 | a2d2aa8c64547e94c3d6d031ebba46b8f9ed5716 | refs/heads/master | 2021-06-02T17:40:30.301307 | 2020-02-04T20:37:01 | 2020-02-04T20:37:01 | 38,650,052 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 234 | py |
import sys
from servers.SAP import SAPserver
server=SAPserver()
genomeID = '83333.1'
sys.stderr.write("Genome: " + str(genomeID) + "\n")
prots = server.all_proteins( {"-id" : genomeID} )
print("protein length " + str(len(prots)))
| [
"raedwards@gmail.com"
] | raedwards@gmail.com |
96b61046248a3e72e93e236aec968705b8d8a09c | cc78de009a8e7805f9f6a852774e0384b11bfdcb | /testcase/common/basePage/basePage.py | e16a2bdc7ec581f43c1f2ee9d521c66c74831b5f | [] | no_license | williamzxl/app_test_many_devices | c1806e54c17a84f18a04c3808604633c2deba052 | dd5434018fadd11d5462903cafaafbb5b387c24a | refs/heads/master | 2020-03-29T21:20:51.239295 | 2019-03-05T03:13:56 | 2019-03-05T03:13:56 | 150,361,766 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,861 | py | from testcase.common.basePage.web_view import WebView
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
from utils.log import logger
class BasePage(WebView):
def __init__(self, page=None, brows... | [
"1053418947@qq.com"
] | 1053418947@qq.com |
986c55e0d84ee0bd44afcf5e2e73e30436d3f834 | a3746020cf091f433beb41bde1b62818b4de569b | /new_rule/ticket-rules/oracle/DML_SORT.py | 3010c2c185dc831b9fbf2b84a1610544000dec4e | [] | no_license | kk71/sqlaudit | 59bab5765a67f56f1dd2f3103812051c5acbbc49 | 747aaa02573a9c2b46a9e14415d27c0ab8e6158c | refs/heads/master | 2023-02-04T18:38:46.125746 | 2020-06-05T09:49:46 | 2020-06-05T09:49:46 | 323,559,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | import re
def code(rule, entries, **kwargs):
single_sql: dict = kwargs.get("single_sql")
sql_text: str = single_sql["sql_text_no_comment"]
dml_sort = re.compile("(\\s)?((update )|(delete )).*order by")
if dml_sort.search(sql_text):
return -rule.weight, []
return None, []
code_hole.appe... | [
"kai.fang@kirintech.cn"
] | kai.fang@kirintech.cn |
24d3b4732a400d5973fc072d2830077bbc9fe7ec | dd143f56fbceecf039d139e2bc07f27f4837be82 | /manage.py | b0b78f6ced3bddcde196e42c492dc4e98c6f29ec | [] | no_license | maxweaker/OVSMS-backend | 1468924b109bb8717f6337664c0601d2af18ea7c | 7372e40e62c6eaf0c9fd309a47b798c1795e6007 | refs/heads/master | 2023-06-05T11:46:48.472605 | 2021-06-18T14:48:49 | 2021-06-18T14:48:49 | 378,168,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'OVSMS.settings')
try:
from django.core.management import execute_from_command_line
except Import... | [
"455436082@qq.com"
] | 455436082@qq.com |
305b4d8a0ed416ed5c175894f2c49dbe30f16039 | c570dcfc3ec166f73719a81b02262bf2885b458b | /setup.py | efa6fdfa8b383ac34d7981c70b9a5883ca632879 | [] | no_license | thatch45/archinator | 9eb139a064b8dafe3a63ec9a27177a21b96357ef | 2e4d9874b0cd9fee68f90ebe4bf2c20dfb1fb220 | refs/heads/master | 2020-06-01T03:52:43.793091 | 2013-06-24T05:24:04 | 2013-06-24T05:24:04 | 10,711,450 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | #!/usr/bin/env python
from distutils.core import setup
setup(name='archinator',
version='0.5.0',
description='Virtual machine generator for ArchLinux',
author='Thomas S Hatch',
author_email='thatch45@gmail.com',
url='https://github.com/thatch45/archinator',
packages=[
'ar... | [
"thatch45@gmail.com"
] | thatch45@gmail.com |
eaa85e885404219c0a831b463a0c456fffe1d7f0 | 4546398a18590e4e182629fb55d185547dd6df0a | /2023/problems/millifaersla/submissions/partially_accepted/strings_0.py | a370ff95a0790d6ce6228aa8fa0be95e244d3908 | [] | no_license | ForritunarkeppniFramhaldsskolanna/Keppnir | 352341fa97c6349af65b513c03171f3e706f7db2 | 65c8eb5358d8a49f956edf76c2d47b9372accc3c | refs/heads/master | 2023-04-28T15:33:36.396225 | 2023-04-23T15:00:15 | 2023-04-23T15:00:15 | 78,303,702 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | #!/usr/bin/python3
a = input()
b = input()
c = input()
if a < b and a < c:
print("Monnei")
elif b < a and b < c:
print("Fjee")
else:
print("Dolladollabilljoll")
| [
"bjarki.agust@gmail.com"
] | bjarki.agust@gmail.com |
18939fdae293b7a96059b4ed05b61fab9a65a3e3 | c4e97f2eb1081d8fad5e64872c3d6acf9a89d445 | /Solutions/0135_candy.py | af76e71034174d61806ca337a98996a7aa0af28e | [] | no_license | YoupengLi/leetcode-sorting | 0efb3f4d7269c76a3ed11caa3ab48c8ab65fea25 | 3d9e0ad2f6ed92ec969556f75d97c51ea4854719 | refs/heads/master | 2020-05-18T23:28:51.363862 | 2019-09-12T00:42:14 | 2019-09-12T00:42:14 | 184,712,501 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,312 | py | # -*- coding: utf-8 -*-
# @Time : 2019/7/18 0018 09:54
# @Author : Youpeng Li
# @Site :
# @File : 0135_candy.py
# @Software: PyCharm
'''
135. Candy
There are N children standing in a line. Each child is assigned a rating value.
You are giving candies to these children subjected to the followin... | [
"noreply@github.com"
] | YoupengLi.noreply@github.com |
fcfd0e41293518178f353971f8e706f2fb7b44c2 | 8bbeb7b5721a9dbf40caa47a96e6961ceabb0128 | /python3/212.Word Search II(单词搜索 II).py | b33e11ee9eccfd5d5831b32835b4be8c3ca57304 | [
"MIT"
] | permissive | lishulongVI/leetcode | bb5b75642f69dfaec0c2ee3e06369c715125b1ba | 6731e128be0fd3c0bdfe885c1a409ac54b929597 | refs/heads/master | 2020-03-23T22:17:40.335970 | 2018-07-23T14:46:06 | 2018-07-23T14:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,685 | py | """
<p>Given a 2D board and a list of words from the dictionary, find all words in the board.</p>
<p>Each word must be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be used more than once in a word... | [
"lishulong@wecash.net"
] | lishulong@wecash.net |
a1c525970930a33a6c0f1bf1920e3c29220e62b8 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/M/mgrollins/eu_location_scraper.py | f3f5904113f77d083f6938f71bc20e35e5486059 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | import scraperwiki
import lxml.html
from lxml import etree
html = scraperwiki.scrape("http://www.edd.ca.gov/jobs_and_training/Experience_Unlimited_Local_Information.htm")
root = lxml.html.fromstring(html)
locations = []
#for lel in root.cssselect("div.main_content"):
print "in lel loop"
for el in root.cssselect("div... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
566aba3d4ea799a084e1bf8b391feb92af2aee30 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /ec2_write_f/security-group-egres_revoke.py | 36344b5fae7779de59a4902f9442cdb2b9e42c4b | [] | 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 | 541 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
825f13b7aa37b7b3cd56b91a7ee8f3c5a8daf35d | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/operations/_connection_monitors_operations.py | 7af61de42b8c2663b9b4e05b55533dcf559929a0 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 45,729 | 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"
] | manoj0806.noreply@github.com |
29e1406fefde1df7fe0c61d695ea159a957875f9 | 81579ecd0678d652bbb57ff97529631fcfb74b12 | /corehq/ex-submodules/dimagi/utils/tests/test_rate_limit.py | 184a6cec42531b4957a7d54581d3e65eb21f137c | [
"BSD-3-Clause"
] | permissive | dungeonmaster51/commcare-hq | 64fece73671b03c1bca48cb9d1a58764d92796ea | 1c70ce416564efa496fb4ef6e9130c188aea0f40 | refs/heads/master | 2022-12-03T21:50:26.035495 | 2020-08-11T07:34:59 | 2020-08-11T07:34:59 | 279,546,551 | 1 | 0 | BSD-3-Clause | 2020-07-31T06:13:03 | 2020-07-14T09:51:32 | Python | UTF-8 | Python | false | false | 1,707 | py | from dimagi.utils.rate_limit import rate_limit, DomainRateLimiter
from django.test import SimpleTestCase
# import the datetime module and not datetime.datetime:
# "datetime" has to be the datetime module since the tests/__init__.py file
# just imports * from all test files and the json_format_datetime doctest
# expects... | [
"gcapalbo@dimagi.com"
] | gcapalbo@dimagi.com |
96316fd59416a2a1748dfc80c77c04bf5370fef9 | b415e5f6f8da01961853a14fad31957a51500847 | /handle_input.py | 7f0c5dd670ee179cafbba09a4b01598859dc62e3 | [] | no_license | Zireael07/veins-of-the-earth-bearlib | 4ec1f6c477a503bb5549a3871023caafe345887f | 2b6c4ec6140a1e94551990e4de096a27d5b3d5f6 | refs/heads/master | 2020-04-05T14:05:46.445845 | 2018-07-01T19:01:06 | 2018-07-01T19:01:06 | 94,756,259 | 15 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,660 | py | from bearlibterminal import terminal as blt
import constants
from game_states import GameStates
import gui_menus
from renderer import pix_to_iso
from map_common import map_check_for_items, find_unexplored_closest, Directions, find_exit_for_pos
from tile_lookups import TileTypes, get_index
import game_vars
#def initi... | [
"zi@mail.com"
] | zi@mail.com |
555fc6f9037745f8d467cab753ff6fb8e6cb83c3 | 12f43487042025b5d27a1fba104bf1a7ce1f8cee | /src/single_sided_node_v1.py | f5027365074a79801182b0c123a7d54d0e967595 | [] | no_license | goerz-research/trajoct | e6c22a591fea98c3e287d135265a532001423fa9 | 601ef68465dff77552838c38bcbdfef510325289 | refs/heads/master | 2021-09-16T10:50:07.023190 | 2018-06-19T18:24:27 | 2018-06-19T18:24:27 | 79,431,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,161 | py | """Description of nodes consisting of a single-sided cavity with an atom
inside"""
import sympy
from sympy import symbols, sqrt
from qnet.algebra.hilbert_space_algebra import LocalSpace
from qnet.algebra.operator_algebra import Destroy, LocalSigma
from qnet.algebra.circuit_algebra import SLH, identity_matrix
def dagg... | [
"goerz@stanford.edu"
] | goerz@stanford.edu |
8f7e338e2a4ee08be8821b94e9b121b3d4183900 | 1a59a9076c1e9f1eb98e24ff41a4c1c95e2b353e | /xcp2k/classes/_program_run_info48.py | ad7fd8d53c9700a84b6260b359b618ea1c560e29 | [] | no_license | Roolthasiva/xcp2k | 66b2f30ebeae1a946b81f71d22f97ea4076e11dc | fc3b5885503c6f6dc549efeb4f89f61c8b6b8242 | refs/heads/master | 2022-12-23T06:03:14.033521 | 2020-10-07T08:01:48 | 2020-10-07T08:01:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | from xcp2k.inputsection import InputSection
from xcp2k.classes._each400 import _each400
class _program_run_info48(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Section_parameters = None
self.Add_last = None
self.Common_iteration_levels = None
self.File... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ecf84eae3c1133e0064c0034147e1be38ac43df8 | 3e24611b7315b5ad588b2128570f1341b9c968e8 | /pacbiolib/pacbio/pythonpkgs/pbfalcon/lib/python2.7/site-packages/pbfalcon/cli/hgap_run.py | 39e6bd872b1c9ab4cffaeaca7d0be2a224123c6d | [
"BSD-2-Clause"
] | permissive | bioCKO/lpp_Script | dc327be88c7d12243e25557f7da68d963917aa90 | 0cb2eedb48d4afa25abc2ed7231eb1fdd9baecc2 | refs/heads/master | 2022-02-27T12:35:05.979231 | 2019-08-27T05:56:33 | 2019-08-27T05:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from falcon_polish.pypeflow import hgap
import argparse
import sys
def main(argv=sys.argv):
parser = argparse.ArgumentParser()
parser.add_argument('--logging',
help='.ini or .json config file for Python logging module')
parser.add_argument('config',
help='.ini or .json of HGAP confi... | [
"409511038@qq.com"
] | 409511038@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.