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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d7ad78da4b2d820eb18e9355084fc8ce29283efd | 833ae432c07ff3c33812b4847c247aa730a2549b | /glue/core/qt/fitters.py | a2447ca92d15833e83a532cb5a4a544016f08682 | [
"BSD-3-Clause"
] | permissive | scalet98/glue | 3e4bc49ac53766d4e1927da3434ad02410d93486 | ff949ad52e205c20561f48c05f870b2abb39e0b0 | refs/heads/master | 2020-11-25T07:50:11.278074 | 2019-10-29T09:23:19 | 2019-10-29T09:23:19 | 228,563,694 | 1 | 0 | NOASSERTION | 2019-12-17T07:58:31 | 2019-12-17T07:58:31 | null | UTF-8 | Python | false | false | 5,181 | py | from __future__ import absolute_import, division, print_function
from qtpy import QtWidgets, QtGui
from glue.core.qt.simpleforms import build_form_item
__all__ = ['ConstraintsWidget', 'FitSettingsWidget']
class ConstraintsWidget(QtWidgets.QWidget):
"""
A widget to display and tweak the constraints of a :c... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
a5510bbc477ce4c6e9aed080e0a4fa1727223756 | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /atcoder/lib/waveletMatrix.py | e4d73048fd700064cd4934a73b72b623c76c696d | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | # https://miti-7.hatenablog.com/entry/2018/04/15/155638
import math
fullbit = 0xffffffffffffffff
#https://qiita.com/zawawahoge/items/8bbd4c2319e7f7746266
def popcount(x):
x = x - ((x >> 1) & 0x5555555555555555)
x = (x & 0x3333333333333333) + ((x >> 2) & 0x3333333333333333)
x = (x + (x >> 4)) & 0x0f0f0f0f... | [
"kanai@wide.ad.jp"
] | kanai@wide.ad.jp |
5c7e7d56182582db1823a3a5ac551a4ad99e99a9 | 08056428e2e12c192a06ccf2b775df09263582dd | /tests/test_examples/run_all_examples.py | f89ae891ef8b679a8f4cba061665ab6295a039c7 | [
"MIT"
] | permissive | chris48s/arcade | 57d2c4f5986216748adc420d4d2f09153f96f417 | 930ecd8be2d47db1f65173c6f1afc00c0df545c8 | refs/heads/master | 2020-07-13T04:35:30.235743 | 2019-08-28T12:54:43 | 2019-08-28T12:54:43 | 204,991,051 | 0 | 0 | NOASSERTION | 2019-08-28T18:52:19 | 2019-08-28T17:52:18 | null | UTF-8 | Python | false | false | 1,752 | py | """
Run All Examples
If Python and Arcade are installed, this example can be run from the command line with:
python -m arcade.examples.run_all_examples
"""
import subprocess
import argparse
import os
import glob
EXAMPLE_SUBDIR = "../../arcade/examples"
def _get_short_name(fullpath):
return os.path.splitext(os.pa... | [
"paul@cravenfamily.com"
] | paul@cravenfamily.com |
e393a0d557a8b054c31760693c7da3ea18ff9486 | 914d3a49c4f93208b46010963c621f147b470945 | /testcases/test_04.py | 0c9ee65d392e4b748e4b23a1124e1fa3c0214664 | [] | no_license | wmm0165/pytest_demo | 1285b33e61c73543b3344d3eba0ba8896cc1fa10 | 8162a51ef384a0aa7d057fc57c49596fc1ced872 | refs/heads/master | 2020-07-24T18:10:41.954528 | 2019-12-10T06:29:52 | 2019-12-10T06:29:52 | 208,005,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | # -*- coding: utf-8 -*-
# @Time : 2019/9/10 11:41
# @Author : wangmengmeng
from selenium import webdriver
from selenium.webdriver.common.by import By
import time
driver = webdriver.Chrome()
time.sleep(3)
driver.get("https://www.baidu.com/")
driver.maximize_window()
driver.find_element_by_link_text("新闻").click()
print(... | [
"wmm_0165@163.com"
] | wmm_0165@163.com |
28250beb6a6a3aa5b23e041cb400edb29546f2a2 | d9ca250f11ab7f209422962e16a87dce8f568dd0 | /glue/viewers/image/qt/slice_widget.py | f92c43655e3d4f07253fd042d45f22e9d496bc9a | [
"BSD-3-Clause"
] | permissive | maartenbreddels/glue | 5e7873a9b59114b3a822c7d0d109ee45a61ccca4 | 82983912c206ad54d001f8e7b60fbcc507697f68 | refs/heads/master | 2021-10-09T09:14:33.687357 | 2017-12-10T12:11:36 | 2017-12-10T12:11:36 | 71,995,926 | 1 | 0 | null | 2016-10-26T11:18:37 | 2016-10-26T11:18:37 | null | UTF-8 | Python | false | false | 5,216 | py | from __future__ import absolute_import, division, print_function
import numpy as np
from glue.core.coordinates import Coordinates
from glue.viewers.common.qt.data_slice_widget import SliceWidget
from glue.viewers.image.state import AggregateSlice
from glue.utils.decorators import avoid_circular
__all__ = ['MultiSlic... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
cd909fa0bf49f0fc064968d59c7352259fe7ec4a | 1e139784a36ce2a26dafaac0bb795b168ca91776 | /electron_project/abstract/admin.py | a05e087952da8952d21a80b419a3c485f6016c98 | [] | no_license | TestAccount2077/Mas-Electronics | a9f4431be7ea740b99616cb4ce4acf9bba46096f | 6bb887805900affdcd905deb33b341892bebd41f | refs/heads/master | 2020-03-28T15:11:57.044686 | 2019-01-26T16:01:55 | 2019-01-26T16:01:55 | 148,566,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | from django.contrib import admin
from .models import *
admin.site.register(App)
| [
"maselectronics594@gmail.com"
] | maselectronics594@gmail.com |
191a4221ff072259bcb513ed8f5cc22703f2b003 | fb62860228318d185f3f59f7cfc653129b706cac | /everpad/provider/sync/note.py | f1fa4dad9942c83c9cbbde72007f357456100c61 | [] | no_license | freexploit/everpad | e3307829729348f825cf36f7d351dfae27c75b19 | cfb612e829ae52c72b2132378591be5276463ef7 | refs/heads/master | 2021-01-17T21:34:29.861342 | 2013-07-16T17:17:24 | 2013-07-16T17:17:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,541 | py | from BeautifulSoup import BeautifulStoneSoup
from sqlalchemy.orm.exc import NoResultFound
from everpad.tools import sanitize
from evernote.edam.error.ttypes import EDAMUserException
from evernote.edam.limits import constants as limits
from evernote.edam.type import ttypes
from evernote.edam.notestore.ttypes import Note... | [
"nvbn.rm@gmail.com"
] | nvbn.rm@gmail.com |
974d5c5e92b33aa800c17665dddb1a64b2f0cc7c | 33af6185b48bd76f97f0a74390a3a812ee216c78 | /archinfo/archinfo/arch_amd64.py | 74757fd2bbc50f1a8353b9133e808c02052ccba4 | [
"BSD-2-Clause"
] | permissive | Ruide/angr-dev | dab0cabd907fce47ac698f890c3f3a8b80ab7e2a | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | refs/heads/master | 2022-11-10T11:27:13.355024 | 2017-10-07T14:29:09 | 2017-10-07T14:29:09 | 104,417,044 | 0 | 1 | BSD-2-Clause | 2022-10-16T04:48:10 | 2017-09-22T01:35:12 | C | UTF-8 | Python | false | false | 9,419 | py | try:
import capstone as _capstone
except ImportError:
_capstone = None
try:
import unicorn as _unicorn
except ImportError:
_unicorn = None
from .arch import Arch, register_arch
from .tls import TLSArchInfo
from .archerror import ArchError
class ArchAMD64(Arch):
def __init__(self, endness='Iend_LE... | [
"rd.cheung.bupt.sms@gmail.com"
] | rd.cheung.bupt.sms@gmail.com |
1b2816638c412e5d01f5edf90422f9a5fc818eeb | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /110_concurrency_parallelism/_exercises/exrercises/Learn Parallel Computing in Python/001_threads_processes/creating_threads_gil.py | 8fc92d681d369ff58dd08613db818d3086781a89 | [] | 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 | 227 | py | # ______ t___
# ____ _ ______ T..
#
#
# ___ do_work
# print("Starting work")
# i = 0
# ___ _ __ r... 20000000
# ? += 1
# print("Finished work")
#
#
# ___ _ __ r... 5
# t = T.. t.._? a.._
# ?.s..
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
02ab5ba859125e364d79194b6c465dafaa91b284 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_381/ch47_2020_10_05_00_51_52_664478.py | 1a8d03d35bb0e2392a81fb8001aa0fa9547133da | [] | 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 | 645 | py | def estritamente_crescente(n):
lista_retornada = []
i = 0
tamanho = len(n)
if tamanho > 0:
lista_retornada.append(n[0])
primeiro_termo = lista_retornada[0]
i = 1
while i < tamanho:
if n[i] > primeiro_termo:
lista_retornada.append(n[i])
... | [
"you@example.com"
] | you@example.com |
05a58fa8e76d0e3a7fe17e5da4aa97373e5e345d | d861ec162216f5030c09727a16079a9b175651b3 | /sample/page/models.py | 59e29044199a5c7c5e4e4c6f3fad5094e3d5578f | [] | no_license | Features12/Practical-Django-Projects | 228c9898f9d6766dc02e8b44f4b0840c8c39ae74 | 1c1f6cb1fa7151c2f0692e00e1fff2be017f5c7a | refs/heads/master | 2021-07-18T00:39:47.435514 | 2017-10-26T18:38:04 | 2017-10-26T18:38:04 | 104,377,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,239 | py | from django.db import models
from django.db.models.fields import PositiveSmallIntegerField
# from django.contrib.comments.moderation import CommentModerator, moderator
from django.core.urlresolvers import reverse
from taggit.managers import TaggableManager
# moderator.reqister(Blog, BlogModerator)
CATEGORIES = (
... | [
"features.inna@mail.ru"
] | features.inna@mail.ru |
afc6656fc96fd6d550312d7a3b9476fe32e8f7cc | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/request/AlipayCloudCloudbaseHttpaccessSwitchGetRequest.py | 81e1b495dad7124fd77c73dd9a50e2003b390c34 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 4,034 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayCloudCloudbaseHttpaccessSwitchGetModel import AlipayCloudCloudbaseHttpaccessSwitchGetModel
class AlipayCloudCloudbaseHttpacces... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
3436c3fcd0b9f7be13c16f3f9a82bb31456f03ed | 480e33f95eec2e471c563d4c0661784c92396368 | /Configuration/Generator/python/QCD_Pt_80_120_14TeV_TuneCUETP8M1_cfi.py | 668777bd52b2c7d224894d8a6c3815ffb24c1500 | [
"Apache-2.0"
] | permissive | cms-nanoAOD/cmssw | 4d836e5b76ae5075c232de5e062d286e2026e8bd | 4eccb8a758b605875003124dd55ea58552b86af1 | refs/heads/master-cmsswmaster | 2021-01-23T21:19:52.295420 | 2020-08-27T08:01:20 | 2020-08-27T08:01:20 | 102,867,729 | 7 | 14 | Apache-2.0 | 2022-05-23T07:58:09 | 2017-09-08T14:03:57 | C++ | UTF-8 | Python | false | false | 1,120 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
pythiaPylistVerbosity = cms.untracked.int32(0),
... | [
"kpedro88@gmail.com"
] | kpedro88@gmail.com |
28c1b096c7a5a1011c013fef6d65f09251649a48 | 9331521b9000b23560939de083693b594a2b513e | /funcion_canciones.py | a8c24b36fb90f160cfa1ae5efeee96fdcd918c2c | [] | no_license | stefifm/Guia18 | 141f94f12b2046453ebcddf73ba07b9402b3609c | bdc73563f130c05daad4e01a5730ac9029d47cef | refs/heads/master | 2022-12-12T23:18:20.340171 | 2020-09-10T03:21:55 | 2020-09-10T03:21:55 | 294,291,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,609 | py | import random
print("Funciones para canciones")
class Cancion:
def __init__(self, titulo, long, repro, down):
self.titulo = titulo
self.duracion = long
self.reproduccion = repro
self.descargas = down
def to_string(cancion):
r = " "
r += "El nombre de la canción: " + canci... | [
"bruerastefania@gmail.com"
] | bruerastefania@gmail.com |
a213585723e285a2a0d1747ab36f280c9d2f5d8a | df7f13ec34591fe1ce2d9aeebd5fd183e012711a | /hata/discord/channel/channel_metadata/tests/test__ChannelMetadataGuildVoiceBase__constructor.py | 8f6b1dfcbf94ca0386ab1b2fcf79c1ea6c3e6d81 | [
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | HuyaneMatsu/hata | 63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e | 53f24fdb38459dc5a4fd04f11bdbfee8295b76a4 | refs/heads/master | 2023-08-20T15:58:09.343044 | 2023-08-20T13:09:03 | 2023-08-20T13:09:03 | 163,677,173 | 3 | 3 | Apache-2.0 | 2019-12-18T03:46:12 | 2018-12-31T14:59:47 | Python | UTF-8 | Python | false | false | 4,717 | py | import vampytest
from ...permission_overwrite import PermissionOverwrite, PermissionOverwriteTargetType
from ..guild_voice_base import ChannelMetadataGuildVoiceBase
from ..preinstanced import VoiceRegion
def _assert_fields_set(channel_metadata):
vampytest.assert_instance(channel_metadata, ChannelMetadataGuildVo... | [
"re.ism.tm@gmail.com"
] | re.ism.tm@gmail.com |
404120ff4a1ecbcfbe97e76ba18cb2eacb4345e9 | 71547a68c81b8ce45d39f076d74c4e59f22c1ed2 | /demo_type_float2.py | 65972ee2c66a1101896465add95bc56baceb2ac9 | [] | no_license | rasul-sharifzade/LearnPythonGunel | f1665173d0a9e93f497423c72981ba80f432eedc | c2ad59d2f002eb0b597722830fc54a563e085b15 | refs/heads/master | 2021-04-02T22:03:18.675648 | 2020-07-02T16:00:49 | 2020-07-02T16:00:49 | 248,328,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | x = float(20.5)
print(x)
print(type(x)) | [
"rasul.sharifzade@gmail.com"
] | rasul.sharifzade@gmail.com |
3eae42c4b4098802edfac373950267917f249ef1 | 0119b77236b41521c84eb516d6892d8c86b7af35 | /Assignment 4/yunjun_lee_findkstar.py | 5556350b09824497067bb7b0fb833c561cf43a28 | [] | no_license | YJL33/Data-mining | 7ade1d7ff712a8d15beb2bf5c5f7fa645f6ea93d | 38993729422ab8ac51ce2a9e48664cec0f2ea542 | refs/heads/master | 2021-01-10T14:35:19.335591 | 2016-04-18T20:58:41 | 2016-04-18T20:58:41 | 51,037,143 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,962 | py | """
USC INF553 Sp. 2016
Assignment 4
Problem 2: Find k-star
<Input>
The first input is a .json file the same as described in part 1.
The second input is a float in (0, 1), representing theta mentioned in Step 1.
<Output>
The output is a single integer representing k*.
<Execute>
python firstname_lastname_findkstar.py... | [
"yunjun.l33@gmail.com"
] | yunjun.l33@gmail.com |
4d19af9fb64db902623b31bd74387e8ffe3b8d84 | 2bf43e862b432d44ba545beea4e67e3e086c1a1c | /nemo_text_processing/inverse_text_normalization/pt/verbalizers/time.py | b1a04c6737521554ec54ba7f6bfca7641bbbcf68 | [
"Apache-2.0"
] | permissive | ericharper/NeMo | 719e933f6ffce1b27358bc21efe87cdf144db875 | f1825bc4b724b78c2d6ca392b616e8dc9a8cde04 | refs/heads/master | 2022-10-06T01:45:21.887856 | 2022-09-14T19:09:42 | 2022-09-14T19:09:42 | 259,380,135 | 1 | 0 | Apache-2.0 | 2022-09-20T18:01:57 | 2020-04-27T15:54:20 | Python | UTF-8 | Python | false | false | 2,625 | py | # Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | [
"noreply@github.com"
] | ericharper.noreply@github.com |
c6b23e8a3c8c5071dfbcfd1efbfd97b7c5651319 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_393/ch55_2020_10_05_00_01_39_303330.py | 5cfe170aa6ebbb930198625b8a8601fd5c962564 | [] | 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 | 216 | py | def encontra_maximo(lista):
lista[0]= lista1
lista[1]: lista2
lista[2]: lista3
lista= []
lista.append(max(lista1))
lista.append(max(lista2))
lista.append(max(lista3))
return max(lista) | [
"you@example.com"
] | you@example.com |
d75a74dcc9ffcab4e5608a85fb52a20c5438fc7d | ebfac951b49ba380d4b88e0c6308aea326597381 | /chatrender/management/commands/publish_slackchat.py | 7c99de825fc0af3cc68a53a4e477dbb76d7e6153 | [
"MIT"
] | permissive | The-Politico/django-politico-slackchat-renderer | 2e4175359a4df004526722a190040cef767837fd | adb3ed2ba5039a97ee7b021d39aa40cab11e5661 | refs/heads/master | 2022-12-10T10:57:51.796473 | 2018-05-22T15:37:57 | 2018-05-22T15:37:57 | 120,328,521 | 2 | 0 | MIT | 2022-12-08T02:09:33 | 2018-02-05T16:10:25 | JavaScript | UTF-8 | Python | false | false | 756 | py | from chatrender.celery import publish_slackchat
from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
help = 'Publishes a complete slackchat package, including static files.'
def add_arguments(self, parser):
parser.add_argument('--type', dest='chat_type')
... | [
"jmcclure@politico.com"
] | jmcclure@politico.com |
9beefb122a672dbc23f074a3ed5e0fc445f78807 | cbf9f600374d7510988632d7dba145c8ff0cd1f0 | /virtual/XMLProContest/06/a.py | 87f14d5f0c30e0e0a856ae6a549e34933fe23e1e | [] | no_license | sakakazu2468/AtCoder_py | d0945d03ad562474e40e413abcec39ded61e6855 | 34bdf39ee9647e7aee17e48c928ce5288a1bfaa5 | refs/heads/master | 2022-04-27T18:32:28.825004 | 2022-04-21T07:27:00 | 2022-04-21T07:27:00 | 225,844,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | s = input()
lose = 0
for i in s:
if i == "x":
lose += 1
if lose >= 8:
print("NO")
else:
print("YES")
| [
"sakakazu2468@icloud.com"
] | sakakazu2468@icloud.com |
e8897d82d1ffdcbc7f68deddeacd6bdb3b3c8f5f | d7c9b9fd4c7149d0cde7b9882f3f7039a2109c1f | /backend/home/migrations/0003_test.py | 94759712fdc2bfefce0d878a45ee17d2a2e3f586 | [] | no_license | crowdbotics-apps/mob-febapp-dev-1633 | b446a780a24e71a1640b28637cf1212258744898 | dee531ad370ae680c0bbb6bb83fce41c01c578b0 | refs/heads/master | 2022-04-01T05:06:27.472209 | 2020-02-10T13:02:03 | 2020-02-10T13:02:03 | 239,482,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # Generated by Django 2.2.10 on 2020-02-10 10:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0002_load_initial_data'),
]
operations = [
migrations.CreateModel(
name='Test',
fields=[
('... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d81263f7a571be2c8bc52238b8a8ef555ea713bd | 6f1034b17b49f373a41ecf3a5a8923fb4948992b | /pychron/canvas/canvas2D/image_overlay_manager.py | dfbdfd8b8db2cf4fdfb75558b706b4c20be4085b | [
"Apache-2.0"
] | permissive | NMGRL/pychron | a6ec1854488e74eb5d3ff53eee8537ecf98a6e2f | 8cfc8085393ace2aee6b98d36bfd6fba0bcb41c6 | refs/heads/main | 2023-08-30T07:00:34.121528 | 2023-06-12T17:43:25 | 2023-06-12T17:43:25 | 14,438,041 | 38 | 28 | Apache-2.0 | 2023-08-09T22:47:17 | 2013-11-15T23:46:10 | Python | UTF-8 | Python | false | false | 2,142 | py | # ===============================================================================
# Copyright 2013 Jake Ross
#
# 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/licens... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
14330d3bea5da56d6d5c2f2ee8faf0741dda41d4 | b144c5142226de4e6254e0044a1ca0fcd4c8bbc6 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/group_60a582903cb8e9183ba205260522f530.py | ca46ca479ee03dd3bb9532079a296c8b42962ba3 | [
"MIT"
] | permissive | iwanb/ixnetwork_restpy | fa8b885ea7a4179048ef2636c37ef7d3f6692e31 | c2cb68fee9f2cc2f86660760e9e07bd06c0013c2 | refs/heads/master | 2021-01-02T17:27:37.096268 | 2020-02-11T09:28:15 | 2020-02-11T09:28:15 | 239,721,780 | 0 | 0 | NOASSERTION | 2020-02-11T09:20:22 | 2020-02-11T09:20:21 | null | UTF-8 | Python | false | false | 12,536 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
03559f072fab1e8e1c47dd66d8a607f819822a8d | fae489973aba5bf2ed29e0b90dc07744840730d6 | /backend/wallet/api/v1/viewsets.py | d30dac0e6af85ddb2676f347cd21a623d2a2d26f | [] | no_license | crowdbotics-apps/workout-planner-23846 | a19c8753c6f9263d760c6396b25391ce709e0d6e | 6a7b341c052e6f2e93ca1f2579c4281d06495fbe | refs/heads/master | 2023-02-17T20:52:27.008368 | 2021-01-14T16:18:41 | 2021-01-14T16:18:41 | 329,667,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py | from rest_framework import authentication
from wallet.models import (
PaymentTransaction,
TaskerPaymentAccount,
TaskerWallet,
PaymentMethod,
CustomerWallet,
)
from .serializers import (
PaymentTransactionSerializer,
TaskerPaymentAccountSerializer,
TaskerWalletSerializer,
PaymentMetho... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
684c3bb8029558b7cbb222002c8f488dc0dcd2aa | 72be6500051e0dcf8b24a8586609454a94c73b8d | /niamoto_portal/tasks.py | 249634b42363f456555642ff32f3b1cbedf70554 | [] | no_license | CheckFly/niamoto-portal | e3e34c26ad6b4f45e505ec3d5c48f3052f08e16d | 5e15a1cb13caefd9fa4f4bb4d74bd0b7d705aa58 | refs/heads/master | 2021-07-04T06:11:41.925705 | 2019-06-02T22:00:49 | 2019-06-02T22:00:49 | 200,769,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | # coding: utf-8
from niamoto_portal.celery import app
from apps.niamoto_plantnote.tasks import *
from apps.niamoto_management.tasks import *
| [
"dimitri.justeau@gmail.com"
] | dimitri.justeau@gmail.com |
5a595aca00ea883d505db93233cb04f2ef99c015 | c27659953555c54bc9d62f76b08372457e99fdcb | /jarden_center/main_code/single-multiple-source/eccitsy922/Monte_Carlo_first.py | 71c84a3676a9a20f3a851b36c16fe8572f65e3a9 | [] | no_license | 15779235038/mypaper | be8e0e30dfe1247cc5447dc2e49ab0be0dcba94a | d9d606f33674f6942b5dc1a56d7738ccea108126 | refs/heads/master | 2020-07-21T02:04:25.796374 | 2020-01-20T01:33:43 | 2020-01-20T01:33:43 | 206,741,170 | 5 | 0 | null | 2019-09-06T07:43:56 | 2019-09-06T07:43:56 | null | UTF-8 | Python | false | false | 9,584 | py | #!/usr/bin/python3
# -*-coding:utf-8 -*-
#Reference:**********************************************
# @Time : 2019/9/17 10:00 上午
# @Author : baozhiqiang
# @File : Monte_Carlo.py
# @User : bao
# @Software: PyCharm
#Reference:**********************************************
# !/usr/bin/python3
# -*-codi... | [
"530420396@qq.com"
] | 530420396@qq.com |
a0c3e9c312393a47293d4a375e6a90746d0e2ead | 90c5c9df3d0639e1f8420b592a77df752ab79746 | /bridger/display.py | 850d4d65c20e186d4ba1549b6c75cb881dc5e830 | [
"BSD-3-Clause"
] | permissive | intellineers/django-bridger | 4a16e5e63c697671740d965c3fcab02a89b8b27f | ed097984a99df7da40a4d01bd00c56e3c6083056 | refs/heads/master | 2023-08-14T05:41:38.003086 | 2021-09-06T16:51:56 | 2021-09-06T16:51:56 | 221,709,929 | 2 | 1 | BSD-3-Clause | 2023-07-22T21:39:45 | 2019-11-14T13:57:09 | Python | UTF-8 | Python | false | false | 5,988 | py | from collections import defaultdict
from typing import Any, Dict, List, NamedTuple, Optional, Tuple, Union
class ColumnFormatting(NamedTuple):
style: Dict
condition: Optional[Tuple[str, Union[int, float, str]]] = None
all_columns: bool = False
def to_dict(self):
rd = {"style": self.style, "al... | [
"c.wittlinger@intellineers.com"
] | c.wittlinger@intellineers.com |
5b0c5324af911731801d49b83ff5b19ed8e126af | e905abd9bb7bd7017657d0a0c4d724d16e37044c | /.history/article/spiders/ieee_20210208185953.py | 5ed095e82d7a26acc80ddd186184199239b2253e | [] | no_license | tabdelbari/articles | a8b921841f84fb473f5ed1cdcda743863e6bc246 | f0e1dfdc9e818e43095933139b6379a232647898 | refs/heads/main | 2023-03-05T10:21:35.565767 | 2021-02-10T13:35:14 | 2021-02-10T13:35:14 | 325,654,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,690 | py | import scrapy
import logging
import re
from scrapy_splash import SplashRequest, request
from article.items import ArticleItem
import json
class IeeeSpider(scrapy.Spider):
name = 'ieee'
allowed_domains = ['ieee.org']
lua_script = """
function main(splash, args)
assert(splash:go{
splash.a... | [
"abdelbari1996@hotmail.com"
] | abdelbari1996@hotmail.com |
9f2c5f871caee2fee79fa2b8adf06575a005d42f | 4465d42c7aff17db98d92d512711aa34ed587af9 | /T6. Network programming/Pyro_examples/autoreconnect/serverNS.py | c8582f8c675d680a3e0456a33e4e7d03d41a6024 | [] | no_license | hostjbm/py_gl | 85e4873fff02268154c4e6e82528120a7a87b8f5 | 90e80daef48fc6ab2a7996be02d4201030389311 | refs/heads/master | 2022-12-30T14:16:29.740328 | 2020-10-16T13:42:42 | 2020-10-16T13:42:42 | 303,307,814 | 0 | 0 | null | 2020-10-16T08:30:04 | 2020-10-12T07:11:14 | Python | UTF-8 | Python | false | false | 1,904 | py | import time
from Pyro5.api import expose, Daemon, locate_ns
import Pyro5.errors
print("Autoreconnect using Name Server.")
@expose
class TestClass(object):
def method(self, arg):
print("Method called with %s" % arg)
print("You can now try to stop this server with ctrl-C/ctrl-Break")
time.s... | [
"sytishchenko@gmail.com"
] | sytishchenko@gmail.com |
37c255c72d0aec34fc8627368c73fef0e6ed08fa | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /19_数学/组合/写像十二像/1735. 生成乘积数组的方案数.py | 6c09a52d981846599772ad72b21fe00c8e7da95e | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 2,302 | py | """
1 <= queries.length <= 104
1 <= ni, ki <= 104
分解质因数+n个物品放到k个槽的方案数
"""
from typing import List
from collections import Counter
from functools import lru_cache
from math import floor
MOD = int(1e9 + 7)
@lru_cache(None)
def getPrimeFactors(
n: int,
) -> Counter[int]:
"""返回 n 的质因子分解"""
... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
ced88b845cf25532d8bf44ea03294c401cfcd291 | 92e31ccc6f1dae3d62b727b7adaddb894e72b9a1 | /tags/0.1-alpha/src-0.1-alpha/examples/kusp/subsystems/ccsm/pyccsm/ccsmsession.py | 975d2459daba651d1aca0d9a4b4504c1e104d7d2 | [] | no_license | dillonhicks/ipymake | 3ae9fe8a976faf8f41b8ee2bf2b8d20eee856000 | dbd4fc09e468d16a2de8f4be2357e8b4f64a702c | refs/heads/master | 2020-04-13T01:31:36.480051 | 2013-06-20T19:39:27 | 2013-06-20T19:39:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,812 | py | from pyccsm import ccsmapi
import os
from pyccsm.ccsmstructures import CCSMSet
class CCSMSession:
def __init__(self, open=True):
self.fd = None
if open:
self.open()
def open(self):
if not self.fd is None:
raise ValueError('CCSM Session Cannot Be Opened: Session ... | [
"hhicks@ittc.ku.edu"
] | hhicks@ittc.ku.edu |
5ae8e3cdd68cd69eacf3f60baaa5579d83b60728 | e8eae7ba5c18002719d8dac0c6b2bc16306ceb5b | /proj_2_SQLAlchemy/start.py | cba7b388b6d8e1010551708533829c2697c1f886 | [] | no_license | padznich/_flask | f080adf248170d7a5f17d9a372426c523704c022 | 21edecfe481238bce15b3ee5b5dda55c15e72022 | refs/heads/master | 2021-05-03T23:28:07.260517 | 2016-10-02T19:49:05 | 2016-10-02T19:49:05 | 69,818,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | from flask_sqlalchemy import SQLAlchemy
from flask import Flask, request, session, g, redirect, url_for, abort, render_template, flash, jsonify
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI']='sqlite:///students.sqlite3'
app.config['SECRET_KEY']="random string"
db = SQLAlchemy(app)
class students(db.Mod... | [
"slabkopg@gmail.com"
] | slabkopg@gmail.com |
88c91678d86374c4ebee9f40da1d9f28a2b0ff1c | 2d2c10ffa7aa5ee35393371e7f8c13b4fab94446 | /projects/ai/sentiment2/torch_algos/model.py | a8e9b7bff072cf1690e04d0370f1b01abf834770 | [] | no_license | faker2081/pikachu2 | bec83750a5ff3c7b5a26662000517df0f608c1c1 | 4f06d47c7bf79eb4e5a22648e088b3296dad3b2d | refs/heads/main | 2023-09-02T00:28:41.723277 | 2021-11-17T11:15:44 | 2021-11-17T11:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,455 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ==============================================================================
# \file model.py
# \author chenghuige
# \date 2018-09-30 10:25:11.024133
# \Description
# =================================================================... | [
"chenghuige@gmail.com"
] | chenghuige@gmail.com |
77c6a96d6d18bf46d444d17402d8341a6a7810c3 | f5e7c337548ffea556058b5121748b3bad727c69 | /prep/format_data.py | cb4e8099845b6733427f314a0372b90aaa429f83 | [
"MIT"
] | permissive | vsoch/network-integration-vis | 8538458d819721cab8fd350923e16bd4d8f380fd | 8d13c8d6a03f8db09d93c7bffc8eb37a4376a702 | refs/heads/master | 2020-04-09T04:19:21.964832 | 2016-09-15T20:50:07 | 2016-09-15T20:50:07 | 68,139,151 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | # format_data.py will read in Matlab exported network-integration (tab separated)
# matrix and parse into a JavaScript (Json) Object. And remove those evil Windows
# carriage returns :)
import os
import pandas
import simplejson
import sys
from utils import pwd, write_json
# LIKELIHOOD HEATMAP #####################... | [
"vsochat@stanford.edu"
] | vsochat@stanford.edu |
df7d8b9e2099a198732b4fdf3ece540285040aaf | 5e27c7f5426c169fd348b26e94b65c35f9cdc459 | /manual/movingpanda/panda-10b.py | 58250cca080eec1ace3460fe3c4c360e20d135d4 | [
"BSD-2-Clause"
] | permissive | agoose77/hivesystem | e2c9c27408233b5794151ca74f541d2e6063d58a | e1f55c5ea530a989477edb896dcd89f3926a31b8 | refs/heads/master | 2020-07-21T23:07:37.178856 | 2014-08-23T02:13:19 | 2014-08-23T02:13:19 | 20,776,359 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,325 | py | import dragonfly
import dragonfly.pandahive
import bee
from bee import connect
import math, functools
from panda3d.core import NodePath
import dragonfly.scene.unbound
import dragonfly.std
import dragonfly.io
import dragonfly.canvas
import Spyder
# ## random matrix generator
from random import random
def random_m... | [
"goosey15@gmail.com"
] | goosey15@gmail.com |
fe6d6d64c5ff3ab5b079ffb85b4a1da493a70263 | 2b3440dcc10bc3d5758eac775a46a3a77ca455dc | /lib/models/_deprecated/u_net.py | 37c16789e54b7c3de42d91bed9778f94c1461f45 | [] | no_license | vsingh-group/f1-opt | 5c433f825aeb64fa6caa93c209acc6b0b3752159 | 1fc9e8223f3b008521fb08b4cc84f1edcf253c63 | refs/heads/master | 2023-02-04T04:29:07.441145 | 2019-12-04T19:51:37 | 2019-12-04T19:51:37 | 322,929,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,881 | py | import torch
import torch.nn as nn
def double_conv(in_channels, out_channels):
return nn.Sequential(
nn.Conv2d(in_channels, out_channels, 3, padding=1),
nn.ReLU(inplace=True),
nn.Conv2d(out_channels, out_channels, 3, padding=1),
nn.ReLU(inplace=True))
class UNet(nn.Module):
"... | [
"abhay.venkatesh@gmail.com"
] | abhay.venkatesh@gmail.com |
95b4465fe9baf210ad7b0cde1e50f651120c1ce6 | 074421d31af92ae29c7c78bdb7e50f199a38eb9b | /weixin/code/rfid_oss/event_manager/import_paths.py | 6fba287ec8070d2f2e160e3b9c6086c1d014ec66 | [] | no_license | allenforrest/wxbiz | 3f49ce66b37e281fc375f548610aa54a0f73268f | e78df71fbc5d73dd93ba9452d4b54183fe1e7e1f | refs/heads/master | 2016-09-06T15:17:49.420934 | 2013-08-05T13:13:40 | 2013-08-05T13:13:40 | null | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 590 | py | #coding=gbk
"""
Copyright (C), 2012-2015, Anything Connected Possibilities
Author: ACP2013
Version: 1.0
Date: 2012-12-14
Description: 用于加载运行时的路径
Others:
Key Class&Method List:
1. ....
History:
1. Date:2012-12-14
Author:ACP2013
Modification:新建文件
"""
paths=["../../rfid_plt/base_platform"
,... | [
"allenxu@gmail.com"
] | allenxu@gmail.com |
a162ed18b3aea2537360a0f29200700782eb7da7 | c84bed71f4558b93d2b9b3c3fee7c0e1f11fa756 | /tests/deepspeech2/test_ds2.py | f7b1bdb1e6265d7820f5ee13aed2b6d0c72d180e | [
"Apache-2.0"
] | permissive | twang18/TensorFlowASR | b18d088681f316b4515187ea0a3d41c202d87074 | 1dbe754989efcd59c1fb99aa08d2dd6b178b4d35 | refs/heads/main | 2023-04-17T04:45:33.345931 | 2021-04-20T16:54:24 | 2021-04-20T16:54:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,363 | py | # Copyright 2020 Huy Le Nguyen (@usimarit)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | [
"nlhuy.cs.16@gmail.com"
] | nlhuy.cs.16@gmail.com |
b239b18fdb46b286f32f80435b6baf2ced107340 | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractTyralionsBlogspotCom.py | 4ffc186dca5340b71248bad5d9e3cd306fcfaf44 | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 556 | py |
def extractTyralionsBlogspotCom(item):
'''
Parser for 'tyralions.blogspot.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', 'translated'),
('Loitero... | [
"something@fake-url.com"
] | something@fake-url.com |
1765e182943181321fce1c54fef6e5df9d741598 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/parcats/labelfont/_size.py | 9b1e6b892dd91c707d512d4d6b7627892b5fd97a | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 435 | py | import _plotly_utils.basevalidators
class SizeValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name="size", parent_name="parcats.labelfont", **kwargs):
super(SizeValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
bdd62aa70d9b4e6a97f7f434a5e01013048e80b7 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/c4629af076351788a80d5e3d94dc8a61015da910-<test_splrep_errors>-fix.py | 273a9090c663ecec6a8a2341ce6b408ef1183b23 | [] | 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 | 393 | py |
def test_splrep_errors(self):
(x, y) = (self.xx, self.yy)
y2 = np.c_[(y, y)]
with assert_raises(ValueError):
splrep(x, y2)
with assert_raises(ValueError):
_impl.splrep(x, y2)
with assert_raises(TypeError, match='m > k must hold'):
splrep(x[:3], y[:3])
with assert_raises... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
65b6beee097b590e56a33062e86cae0ac872c761 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/manuel.py | b44364db9aabc08fc673fdb2909e73a9071f0a08 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 431 | py | ii = [('RennJIT.py', 2), ('LeakWTI3.py', 2), ('FitzRNS3.py', 1), ('WilbRLW2.py', 1), ('CarlTFR.py', 19), ('IrviWVD.py', 3), ('WestJIT2.py', 1), ('MedwTAI.py', 1), ('LeakWTI4.py', 2), ('BachARE.py', 6), ('SoutRD.py', 2), ('WheeJPT.py', 1), ('MackCNH.py', 2), ('BabbCEM.py', 1), ('FitzRNS4.py', 2), ('FitzRNS.py', 8), ('Ma... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
2ebc0e3cecffeabbf497c9119c5096c92c42aae0 | c963f5b7f0f9b9ec6c6d862f14363d0499f98862 | /sdk/python/setup.py | e88de181cb8f57ac19cad3d5e1c861c0e0973458 | [
"Apache-2.0"
] | permissive | Bobgy/metadata | 8e5c89a9ada7da0c57c076b1d1bb2c6ca2ae3542 | 56d69cd2100a3281453ad0776639e65f6c7dca7a | refs/heads/master | 2020-08-30T03:56:47.233584 | 2019-10-10T22:43:20 | 2019-10-10T22:43:20 | 218,255,672 | 0 | 0 | Apache-2.0 | 2019-10-29T09:58:03 | 2019-10-29T09:58:03 | null | UTF-8 | Python | false | false | 1,709 | py | # Copyright 2019 kubeflow.org.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
ab0ccb84382625f2917a0ce247c587163a763f64 | 22aae32cbabf65d3967e21d17ff8f03e1dfb4539 | /gqn_dataset.py | 5237fea92430110a6de9a259fb187eed8e4b4b79 | [
"MIT"
] | permissive | jkulhanek/gqn | ebc835152e4223f4905fa11b642969322ef49d63 | e24f930c0962c62c9fb7e218f519987cba184961 | refs/heads/master | 2023-02-26T22:58:36.908553 | 2021-01-28T13:13:02 | 2021-01-28T13:13:02 | 323,404,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,186 | py | import bisect
from typing import TypeVar, List
from utils import Literal
import collections
import os
import numpy as np
import io
import math
from PIL import Image
import torch
import gzip
from torchvision.transforms import ToTensor, Resize
from torch.utils.data import Dataset
import random
import itertools
DATASET_... | [
"jonas.kulhanek@live.com"
] | jonas.kulhanek@live.com |
f4507620bb767a8d91efb54cc61f93f6b9677797 | 5f6f6c67450b7bdc52b5d0b4063283e5ce4448c6 | /SwordOffer/Algorithm/Python/pre_mid_tree.py | 93ce0621981ee506fe4965020cc49be468bfb186 | [] | no_license | guanfuchen/CodeTrain | 422b68bcfed5ad769ef26fc5e003ce45b4646029 | 8adab985975ee46fba2f761d4df7c8c3fdafa779 | refs/heads/master | 2020-03-07T23:02:33.183874 | 2018-09-02T07:28:05 | 2018-09-02T07:28:05 | 127,770,709 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | # -*- coding:utf-8 -*-
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
# 前序排列中的第一个一定是root结点,在中序排列中左边部分是root结点的左分支,右边部分是root结点的右分支
class Solution:
# 返回构造的TreeNode根节点
def reConstructBinaryTree(self, pre, tin):
if len(pre) == 0:
... | [
"guanfuchen@zju.edu.cn"
] | guanfuchen@zju.edu.cn |
359015278e326f3e5577d025f4fba85e8d9a2415 | 0dbcee31fa4548f78cf9ce6ddad76a1abe68a777 | /homeassistant/components/litterrobot/vacuum.py | 32fc92cd55afaa8d55caf15afb9cec28d87d581e | [
"Apache-2.0"
] | permissive | Funcy-dcm/core | 442f254f2c07eb0c65aedd7c003ded6854d86a98 | 9d24cb015be94fdc1128c075328b56cb37206cf8 | refs/heads/dev | 2023-04-05T06:51:28.341817 | 2021-04-23T04:57:17 | 2021-04-23T04:57:17 | 293,016,936 | 2 | 0 | Apache-2.0 | 2021-04-23T04:57:17 | 2020-09-05T06:25:23 | null | UTF-8 | Python | false | false | 5,131 | py | """Support for Litter-Robot "Vacuum"."""
from __future__ import annotations
from typing import Any, Callable
from pylitterbot.enums import LitterBoxStatus
from pylitterbot.robot import VALID_WAIT_TIMES
import voluptuous as vol
from homeassistant.components.vacuum import (
STATE_CLEANING,
STATE_DOCKED,
ST... | [
"noreply@github.com"
] | Funcy-dcm.noreply@github.com |
61d3a81c83670a40e054e0e94872b5b06aab0b0d | d0318e25f249e7ebd60926102d92721f88bc279a | /spacy_transformers/layers/trfs2arrays.py | 0720f5086d171819960427b429d20b3deeeb66e9 | [
"MIT"
] | permissive | ThomasVNN/spacy-transformers | 01e2cf8a9939940fbb432e7be4cfb8c79f6a59a7 | 50813ad151c3ad9c396c104029f55ae4c28822c0 | refs/heads/master | 2022-11-19T01:04:32.259114 | 2020-07-10T21:45:22 | 2020-07-10T21:45:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | from typing import List
from thinc.api import Model
from thinc.types import Ragged, Floats2d, FloatsXd
from ..data_classes import TransformerData
from ..util import find_last_hidden
from ..align import apply_alignment
def trfs2arrays(
pooling: Model[Ragged, Floats2d], grad_factor: float
) -> Model[List[Transforme... | [
"honnibal+gh@gmail.com"
] | honnibal+gh@gmail.com |
f698e76580c725f05b0cb83479b138e4c6e427c3 | a841065ae696f0da6179a0c5ff3c0debbf7b365c | /path_finder.py | 935f44ef2b4b80a3d860564839084a0a4ef3f1b8 | [
"MIT"
] | permissive | MonwarAdeeb/A-Star-Path-Finder-Visualizer | d210a1299191fd0a83056629825f1ca0cf3d64ea | 649bb79cd469005c26036d9916c926a69628d0bf | refs/heads/main | 2023-04-02T05:38:27.488966 | 2021-04-13T10:56:54 | 2021-04-13T10:56:54 | 308,803,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,556 | py | try:
import pygame
import sys
import math
from tkinter import *
from tkinter import ttk
from tkinter import messagebox
import os
except:
import install_requirements # install packages
import pygame
import sys
import math
from tkinter import *
from tkinter import ttk
... | [
"monwar_adeeb@yahoo.com"
] | monwar_adeeb@yahoo.com |
ef1c32ec5e7deffafd13502b911604121bd5e061 | a5caa9e15fdcd4ba0d336a80fb5f4c146e957179 | /apps/gamelist/apps.py | 176274ba612eadff3d163950123bb56a5b1c2012 | [] | no_license | codejoy-wins/Game-Rank | eb9299fc461e2929a1c5c3ee31b9aac2af9f9622 | 90deabf6a7447e44b384e3487541aeb190910874 | refs/heads/master | 2020-04-01T21:27:50.875599 | 2018-10-27T07:27:06 | 2018-10-27T07:27:06 | 153,657,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class GamelistConfig(AppConfig):
name = 'gamelist'
| [
"mjann@ucsc.edu"
] | mjann@ucsc.edu |
58fbee3012cccd0677d6dee2037cc0e8b8321cad | a34ec07c3464369a88e68c9006fa1115f5b61e5f | /K_DynamicProgramming/Maze/L2_1301_Number_of_Paths_with_Max_Score.py | a21789a4c20491d00b7486caf16c1a3b3f9e4ee7 | [] | no_license | 824zzy/Leetcode | 9220f2fb13e03d601d2b471b5cfa0c2364dbdf41 | 93b7f4448a366a709214c271a570c3399f5fc4d3 | refs/heads/master | 2023-06-27T02:53:51.812177 | 2023-06-16T16:25:39 | 2023-06-16T16:25:39 | 69,733,624 | 14 | 3 | null | 2022-05-25T06:48:38 | 2016-10-01T10:56:07 | Python | UTF-8 | Python | false | false | 866 | py | """ https://leetcode.com/problems/number-of-paths-with-max-score/
top down dp while keeping track of path count
"""
class Solution:
def pathsWithMaxScore(self, A: List[str]) -> List[int]:
@cache
def dfs(i, j):
if i==0 and j==0: return 0, 1
elif not (0<=i<len(A) and 0<=j<len(A... | [
"zhengyuan.zhu@mavs.uta.edu"
] | zhengyuan.zhu@mavs.uta.edu |
b57d3285a518fcba915545504794b18e59d3c360 | 0bcc7dba1f5f1738f9b11a259e63edcb39795a41 | /INFO1110/Lab4/memory.py | 28ca83994d13e1624420420c9a2528937742136f | [] | no_license | mlumsden001/University-Notes | 3704b0a0e49a24d965aa24658a607a89c1dfa7da | e0040192204360e3bd3df7087738913c7763a331 | refs/heads/master | 2021-08-15T20:19:18.527082 | 2021-03-22T05:41:11 | 2021-03-22T05:41:11 | 246,731,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | spam = ['frosty', 'chocolate', 'milkshakes']
ham = [spam, ['glazed', 'raspberry', 'donuts']]
print(ham[0])
print(ham[0][1])
spam[1] = 'strawberry'
print(ham[0])
print(ham[0][1])
| [
"mlum7853@uni.sydney.edu.au"
] | mlum7853@uni.sydney.edu.au |
2880dfaadc568ee51b6e9b6561cee868e8462119 | 141545126466a00f32247dfa40e067ec049b0fa4 | /Programming Basics Python/06 Nested Loops/Cinema Tickets.py | c78ea4d08976b7c4ccdb84f95d5439e0a91d3a25 | [] | no_license | RadkaValkova/SoftUni-Web-Developer | 83314367172a18f001e182b4e57f7ca0502ad1fc | 61d3414373498bb6009ae70e8d17f26cd2d88ea5 | refs/heads/main | 2023-06-01T02:11:06.606370 | 2021-06-29T19:39:19 | 2021-06-29T19:39:19 | 325,611,606 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | student_tickets = 0
standard_tickets = 0
kids_tickets = 0
while True:
movie = input()
if movie == 'Finish':
break
seats = int(input())
all_tickets_sold = 0
for i in range(1, seats + 1):
type_ticket = input()
if type_ticket == 'End':
print(f'{movie} - {all_ticke... | [
"radka_valkova@abv.bg"
] | radka_valkova@abv.bg |
d08141632c7c50e52af56ad16bff66d7ce05ea18 | e662f7b35bd88fe84de10876dfb8a14a8ff1d52c | /backend/custom_profile/views.py | d5ae1e9b80f7ce0e23fffc718b47b965baae6ede | [] | no_license | code-yeongyu/-hackathon-ja-sds-smarthackathon-smartclass | 9a5ab0e7326a82ea2da614f5c79fbcaffdb08c66 | bbcfb00b3af500bb1b714c1be44f7829fd1378f4 | refs/heads/master | 2023-03-27T19:56:00.966252 | 2021-04-02T07:12:40 | 2021-04-02T07:12:40 | 200,799,117 | 0 | 0 | null | 2021-04-02T07:12:41 | 2019-08-06T07:24:51 | Python | UTF-8 | Python | false | false | 3,585 | py | from backend import settings
from django.contrib.auth.models import User
from rest_framework import status
from rest_framework.views import APIView
from rest_framework.decorators import api_view
from rest_framework.response import Response
from custom_profile.models import Profile
from custom_profile.serializers imp... | [
"code.yeon.gyu@gmail.com"
] | code.yeon.gyu@gmail.com |
42b263da8d2235f754fa42a6e95ba08cf9431f87 | 36da4ad9d7884a78051091ca6a08176b31e61204 | /ros/src/twist_controller/pid.py | 62ff5663f9b64ba48b98538457a5c9793b4cf0c7 | [
"MIT"
] | permissive | redherring2141/CarND-Capstone | 294fc311ff90c3119dbe25cd911d2115399c69ce | df230f902836923dbbc55065c3d4f12531c05cda | refs/heads/master | 2021-05-21T17:33:16.848286 | 2020-05-14T08:48:37 | 2020-05-14T08:48:37 | 252,734,955 | 0 | 0 | MIT | 2020-04-03T13:07:46 | 2020-04-03T13:07:45 | null | UTF-8 | Python | false | false | 1,409 | py | import rospy
MIN_NUM = float('-inf')
MAX_NUM = float('inf')
class PID(object):
def __init__(self, kp, ki, kd, max_input=MAX_NUM, mn=MIN_NUM, mx=MAX_NUM):
self.kp = kp
self.ki = ki
self.kd = kd
self.min = mn
self.max = mx
# Approximation - added
self.max_ab... | [
"redherring2141@kaist.ac.kr"
] | redherring2141@kaist.ac.kr |
2dca20ff9d3a4c500764031fc46aa1c3764bbbd0 | ba730380c8406b234202a6a19a9e5f01f6b66d25 | /algorithm/self/d4/1219_길찾기/sol1.py | eb5177cae64e91da4f2045a5738ede381dc493eb | [] | no_license | ssabum/note | 3b0fd891ab7053997c7978298635e599b42a7659 | 47354aa55a87813dab66f2ff7a930f5313bffe7a | refs/heads/master | 2023-06-19T03:03:02.398976 | 2021-07-09T15:09:42 | 2021-07-09T15:09:42 | 331,743,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # 인접 행렬 방식
import sys
sys.stdin = open("input.txt")
for _ in range(1, 11):
tc, E = list(map(int, input().split()))
edge_input = list(map(int, input().split()))
edge_matrix = [[0 for _ in range(100)] for _ in range(100)]
for i in range(E):
start_node = edge_input[i*2]
end_node = edge_in... | [
"qqq960909@likelion.org"
] | qqq960909@likelion.org |
a7bf840373493345ca7273dbfe2ab2f4f1c529b2 | eb1ddddcf06809dcfa280a23ec9416c0420d46e1 | /爬虫/test.py | addf648207a462c29f277a53b6f0aba3a2b606da | [] | no_license | zeewii/zeng_2018 | 8a93a808a6d3142b0e4b88578005f713da9db97f | be0d1660dc319d9cc211db5c218fbb0a52028ea1 | refs/heads/master | 2020-07-09T11:33:08.978100 | 2019-08-23T08:35:20 | 2019-08-23T08:35:20 | 142,837,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | #coding=utf-8
import requests, os
from bs4 import BeautifulSoup
r = requests.get("http://www.qq.com")
# # print(r.text)
# print(r.status_code)
# print(r.content.decode('gbk'))
#r = requests.get("https://www.baidu.com", verify=False)
#print(r.status_code)
# r.encoding = 'utf-8'
# tmp = r.text
#print(tmp)
tmp = r.co... | [
"test"
] | test |
3d03bfa2894e142ed94e38275def18ed9091ab88 | e399aa677c462f6132abe469fc62e65d9a5fd039 | /meiduo_mall/meiduo_mall/apps/contents/utils.py | 14449eaefa3ef673fa866359c1537c7f3f655217 | [
"MIT"
] | permissive | shenhaiyu0923/meiduo_project | ee5fc0f3bc554b1ab4f0a0186bad6bd7e0f868dc | 0ba91533294c5bb6f8ca54f93eabdff007a3560f | refs/heads/master | 2021-07-05T10:51:01.423064 | 2021-04-30T05:42:40 | 2021-04-30T05:42:40 | 232,847,955 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | from django.shortcuts import render
from django.views import View
from goods.models import GoodsChannelGroup,GoodsChannel,GoodsCategory#组别,一级分类,详细分类
from _collections import OrderedDict
from contents.models import Content,ContentCategory #广告类别,内容
# Create your views here.
def get_categories():
"""提供首页广告页面"""... | [
"1802161998@qq.com"
] | 1802161998@qq.com |
605ecc6ca76595fcf650667a74f759c1918fd81e | ecf0d106831b9e08578845674a457a166b6e0a14 | /OOP/inheritance_EXERCISE/restaurant/project/beverage/coffee.py | 97b76233907b2b161903f2ecb5e35e7c85529cbd | [] | no_license | ivo-bass/SoftUni-Solutions | 015dad72cff917bb74caeeed5e23b4c5fdeeca75 | 75612d4bdb6f41b749e88f8d9c512d0e00712011 | refs/heads/master | 2023-05-09T23:21:40.922503 | 2021-05-27T19:42:03 | 2021-05-27T19:42:03 | 311,329,921 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | from project.beverage.hot_beverage import HotBeverage
class Coffee(HotBeverage):
MILLILITERS = 50
PRICE = 3.50
def __init__(self, name: str, caffeine: float):
super().__init__(name, price=Coffee.PRICE, milliliters=Coffee.MILLILITERS)
self.__caffeine = caffeine
@property
def caffe... | [
"ivailo.ignatoff@gmail.com"
] | ivailo.ignatoff@gmail.com |
5affbf4f694a1197741e0ccee4bcea7de7c3260d | 71a7ed5dd56b89aea1795a3db1469e3006be783f | /configs/animal/2d_kpt_sview_rgb_img/topdown_heatmap/macaque/res101_macaque_256x192.py | e9df523a28a8b8b5ce11c59471b889a90cc25317 | [
"Apache-2.0"
] | permissive | RunningLeon/mmpose | b6091416a2565778a1438b23edaa6620a2088a3e | 9ef202c0a4b2c28add32b530caf2ea0354843fe4 | refs/heads/master | 2023-06-30T04:46:52.917877 | 2021-08-05T08:54:24 | 2021-08-05T08:54:24 | 335,275,684 | 0 | 0 | Apache-2.0 | 2021-02-02T12:06:57 | 2021-02-02T12:06:57 | null | UTF-8 | Python | false | false | 3,863 | py | log_level = 'INFO'
load_from = None
resume_from = None
dist_params = dict(backend='nccl')
workflow = [('train', 1)]
checkpoint_config = dict(interval=10)
evaluation = dict(interval=10, metric='mAP', save_best='AP')
optimizer = dict(
type='Adam',
lr=5e-4,
)
optimizer_config = dict(grad_clip=None)
# learning pol... | [
"noreply@github.com"
] | RunningLeon.noreply@github.com |
0901801262a8a086abefe064ae05cd5535acddaf | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /JXnrdo4naPg9pYSvm_14.py | eaaf8e62c4ac05b0f781423e47b89bba5ee9b163 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py |
def frac_round(frac, n):
lst=frac.split('/')
a='{0:.{b}f}'.format(round(int(lst[0])/int(lst[1]),n),b=n)
return "{} rounded to {} decimal places is {}".format(frac,str(n),a)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
0af9c9fced7430dafd4d2ad984067132b7c5bfaf | c92a84b78d1633ff13447b68a848716f96139180 | /L0101~L0150/L0122.py | f2d70566b6997253c7866cae82a067ab735a1a0a | [] | no_license | Sniper970119/leetCode | 8bab91bcefefcc8ba07271a79652ab3463ab4fb3 | 758a621eaefac851e054e8275cca19d9d3b335ef | refs/heads/master | 2021-08-16T03:28:18.359318 | 2021-07-12T02:43:39 | 2021-07-12T02:43:39 | 232,727,503 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | # -*- coding:utf-8 -*-
"""
┏┛ ┻━━━━━┛ ┻┓
┃ ┃
┃ ━ ┃
┃ ┳┛ ┗┳ ┃
┃ ┃
┃ ┻ ┃
┃ ┃
┗━┓ ┏━━━┛
┃ ┃ 神兽保佑
┃ ┃ 代码无BUG!
┃ ┗━━━━━━━━━┓
┃ ┣┓
┃ ┏┛
┗━┓ ┓ ┏━━━┳ ┓ ┏━┛
┃ ┫... | [
"359366783@qq.com"
] | 359366783@qq.com |
e95cd7c26af16965ea357c5674b016353cd44a8a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03945/s921523568.py | 0c7f60170ce77184fe4336f7d26040f55c094835 | [] | 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 | 138 | py | S = input()
pres = S[0]
ans = 0
for s in S[1:]:
if pres == s:
continue
else:
pres = s
ans += 1
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1bed4a58ab4ab0712ec7b775e3faeb9e551169f5 | 98b9e0a180d65bde6e799a0ef503409ce09ad9bd | /django/full_stack_django/the_wall/main/settings.py | 968fe09045b2d7deba300ce44e3c8784c06dc1ee | [] | no_license | LizhangX/DojoAssignments | 7fae9ed3098d1a131f2a2b093ded95a4de70a5cb | b56ccdf41fe5d43a4d5f340e4f21aaf632d7b7d6 | refs/heads/master | 2023-02-04T14:27:09.234685 | 2019-08-23T22:18:04 | 2019-08-23T22:18:04 | 94,444,518 | 0 | 1 | null | 2023-01-31T21:55:04 | 2017-06-15T13:55:14 | TSQL | UTF-8 | Python | false | false | 3,138 | py | """
Django settings for main project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
# B... | [
"lizhang.xie@gmail.com"
] | lizhang.xie@gmail.com |
240de4761a10d529bb9cba48874a261202266ed0 | c0c8aeb5aaf08925d8c9e1d660b02c89cbc7ad71 | /Algorithms/Medium/565. Array Nesting/answer.py | 8946cf5b544de9d44cf86536d677c09341ac6774 | [
"Apache-2.0"
] | permissive | kenwoov/PlayLeetCode | b2fdc43d799c37683a9efdc31c4df159cf553bf5 | 4012a2f0a099a502df1e5df2e39faa75fe6463e8 | refs/heads/master | 2022-12-17T05:54:22.775972 | 2020-09-26T14:08:43 | 2020-09-26T14:08:43 | 214,839,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | from typing import List
class Solution:
def arrayNesting(self, nums: List[int]) -> int:
N, res = len(nums), 0
for i in range(N):
if nums[i] != float('inf'):
start, count = nums[i], 0
while nums[start] != float('inf'):
temp = start
... | [
"kenwoov@outlook.com"
] | kenwoov@outlook.com |
2e8ed599dcd1c8dcd83eef54e81005a55f21654c | dc67e70a303f265ee6cb4c1a2d61fe811053fb3d | /beginner/011/D.py | a4d6a52f419790771b87ac199de0200865be932a | [] | no_license | cry999/AtCoder | d39ce22d49dfce805cb7bab9d1ff0dd21825823a | 879d0e43e3fac0aadc4d772dc57374ae72571fe6 | refs/heads/master | 2020-04-23T13:55:00.018156 | 2019-12-11T05:23:03 | 2019-12-11T05:23:03 | 171,214,066 | 0 | 0 | null | 2019-05-13T15:17:02 | 2019-02-18T04:24:01 | Python | UTF-8 | Python | false | false | 1,648 | py | def big_jump(N: int, D: int, X: int, Y: int)->float:
if X % D > 0 or Y % D > 0:
# X, Y 共に D の倍数の位置にしか移動できないので
# そうでない場合はたどり着けない。
return 0.0
# 座標圧縮。D の倍数の位置にしか移動できないので
# その係数だけ見てれば良い。
# 上下左右対称なので (X, Y) は第一象限にあるものとして良い
X, Y = abs(X//D), abs(Y//D)
if N % 2 != (X+Y) % ... | [
"when.the.cry999@gmail.com"
] | when.the.cry999@gmail.com |
d9f809be7be436484b10780c4a6f7247009a0c30 | 4a48593a04284ef997f377abee8db61d6332c322 | /python/tkinter/python2/text_readonly.py | ab791cef20dae7d5f2ddb41fa7d451357160adef | [
"MIT"
] | permissive | jeremiedecock/snippets | 8feaed5a8d873d67932ef798e16cb6d2c47609f0 | b90a444041c42d176d096fed14852d20d19adaa7 | refs/heads/master | 2023-08-31T04:28:09.302968 | 2023-08-21T07:22:38 | 2023-08-21T07:22:38 | 36,926,494 | 26 | 9 | MIT | 2023-06-06T02:17:44 | 2015-06-05T10:19:09 | Python | UTF-8 | Python | false | false | 1,605 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2012 Jérémie DECOCK (http://www.jdhp.org)
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including withou... | [
"jd.jdhp@gmail.com"
] | jd.jdhp@gmail.com |
539ce27732aebe2d274ff0ed2b4f9997754931d0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/348/101670/submittedfiles/principal.py | c4d0d3aef59d09a3ce97cd25625c6a8181aabfc5 | [] | 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 | 525 | py | # -*- coding: utf-8 -*-
x = teste
print(x[::-1])
'''
#COMECE AQUI ABAIX
n = int(input( 'informe n'))
a = []
for i in range (0,n,1):
a.append(int(input('digite o valor: ')))
print(a[len(a)-1])
n = int(input( 'informe a quantidade de notas: '))
while n <= 1:
n = int(input( 'informe a quantidade de no... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e24cfd1c0427799b852ae4a86b71f6f03d67a3f0 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.LOB/Sun-ExtA_12/pdf_to_json_test_Latn.LOB_Sun-ExtA_12.py | b5ecf40d45cb0471ba8ed3d9f6a8914e8f165736 | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.LOB/Sun-ExtA_12/udhr_Latn.LOB_Sun-ExtA_12.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
631f0f282bdffc8c579fad96229b66f745fd417d | 17b6820befa1a99d930cc167382cd66c2f1aeb10 | /skbuild/command/build_py.py | b87820eb6780f1d6a55fb166d200417729b48aec | [
"MIT",
"BSD-2-Clause"
] | permissive | benbovy/scikit-build | d7e867037ee3a5dc042641b371981c579fc72e85 | 078a74e08f5b6e9a39cd8bec3a8d238a684ec450 | refs/heads/master | 2023-04-03T17:52:02.046333 | 2021-12-28T17:39:03 | 2021-12-28T17:39:03 | 215,044,793 | 0 | 0 | NOASSERTION | 2019-10-14T12:59:01 | 2019-10-14T12:59:00 | null | UTF-8 | Python | false | false | 3,862 | py | """This module defines custom implementation of ``build_py`` setuptools
command."""
import os
from distutils import log as distutils_log
from setuptools.command.build_py import build_py as _build_py
from . import set_build_base_mixin
from ..constants import CMAKE_INSTALL_DIR
from ..utils import distribution_hide_li... | [
"jchris.fillionr@kitware.com"
] | jchris.fillionr@kitware.com |
0c164952eacfcefcd6be9dac04475884e6b32ce1 | 690cdb4acc7becf3c18955e3c2732ec5b0735b2c | /python-demos/datetime_demos/date_fmt.py | 7f4df4c85c53cbb0c036b9271d19d973efdd9165 | [
"MIT"
] | permissive | t4d-classes/advanced-python_04192021 | 30ba51cad9bc6af96fae2b9e2998fdb60244d6ba | a30cd924d918bf41c0775a1235eef849746a5f3d | refs/heads/master | 2023-04-08T03:22:01.145375 | 2021-04-23T22:35:18 | 2021-04-23T22:35:18 | 357,016,064 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | """ date fmt module """
from datetime import date, datetime
independence_day = date(1776, 7, 4)
print(independence_day)
print(type(independence_day))
print(datetime.now().strftime("%Y-%m-%d"))
print(datetime.now())
TAX_DAY_STR = "2021-05-17"
tax_day = datetime.strptime(TAX_DAY_STR, "%Y-%m-%d")
print(tax_day)
prin... | [
"eric@t4d.io"
] | eric@t4d.io |
a634fbe25d8440c140fc6f8a4cac967df6a5e1dc | 6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110 | /g-code-testing/g_code_test_data/protocol/protocol_configurations.py | ba8de92e0d834fdaadb12d5f504b8eae0d783ec5 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | Opentrons/opentrons | 874321e01149184960eeaeaa31b1d21719a1ceda | 026b523c8c9e5d45910c490efb89194d72595be9 | refs/heads/edge | 2023-09-02T02:51:49.579906 | 2023-08-31T16:02:45 | 2023-08-31T16:02:45 | 38,644,841 | 326 | 174 | Apache-2.0 | 2023-09-14T21:47:20 | 2015-07-06T20:41:01 | Python | UTF-8 | Python | false | false | 7,473 | py | from opentrons import APIVersion
from opentrons.hardware_control.emulation.settings import (
Settings,
SmoothieSettings,
PipetteSettings,
)
from g_code_test_data.g_code_configuration import ProtocolGCodeConfirmConfig
from opentrons.hardware_control.emulation.types import ModuleType
import pytest
########... | [
"noreply@github.com"
] | Opentrons.noreply@github.com |
1cf7eab83c736887d26361a6b4137175ddb93a06 | 94f0b69c21379938cefa5e2049a9050f2b30fdba | /backend/home/migrations/0002_load_initial_data.py | 3d520368636233d1f5939459e58f1dc16871310d | [] | no_license | crowdbotics-apps/test-5-20156 | 44fd6ab47f66669614d63d870849d26c49979d66 | 847537006b14474338b619d3e055cc435657e43d | refs/heads/master | 2022-12-09T07:10:57.789429 | 2020-09-10T01:33:22 | 2020-09-10T01:33:22 | 294,240,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "Test 5"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
ho... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9e9f236f3771ffedfa16b42a2e26969233b6da7d | ac8295552436608b4930b8bda8a7efa6a36d86d2 | /multi_dense156_scratch/config.py | 2edb171707376952f4bbba6b15cc59020546087b | [] | no_license | jeehyun100/mura_fixRes | 6054f87f5770aa328f440afb9642fe7a46b71d68 | 2ad1b62db464355eac25694ecb08811d0d78eb6a | refs/heads/master | 2022-12-31T00:53:22.377853 | 2020-10-24T08:33:58 | 2020-10-24T08:33:58 | 282,530,451 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
from typing import NamedTuple
class ClusterConfig(NamedTuple):
dist_backend: str
dist_url: str
class TrainerCo... | [
"intwis100@naver.com"
] | intwis100@naver.com |
ac5f76723465337333b9d062cf1212853ed53c60 | f1a0489d7c22401c4cf6ac119eab0434a314b415 | /imitation_learning/watch.py | 0125762e1bb5fa13eb59764ec7a992a4bbe72b40 | [] | no_license | deepakgopinath/rsa | b063b4f8a7d3d0e88d6679b24751741729e7094b | b2c34508abe1d4460f0522eaa792ad8fced93317 | refs/heads/master | 2022-04-15T03:30:11.668270 | 2020-04-14T13:14:25 | 2020-04-14T13:14:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py | """Render trained behavioral cloning agents."""
import dl
from dl.rl import make_env, VecObsNormWrapper
from residual_shared_autonomy.imitation_learning import bc_mean, bc_std
from residual_shared_autonomy.imitation_learning import drone_bc_mean, drone_bc_std
from residual_shared_autonomy.imitation_learning import BCTr... | [
"cbschaff@ttic.edu"
] | cbschaff@ttic.edu |
f147ec14349a9d4f8d4fbc1c85c7b8a5d33af976 | 54a0b86d4c3f731487ad4470fb365907970472e6 | /P1/studentparameters/Project1_Parameters_an.py | 9abd6a757e228ae91164c5cab819bceb86832140 | [] | no_license | samiurrahman98/ece458-computer-security | 26aa46e174b0bf77f748e6451dd2e0e4183feebd | cf79430b98e3679ffcd687a0c96b5e979187e1e3 | refs/heads/master | 2022-11-25T01:26:36.874094 | 2020-07-31T21:24:53 | 2020-07-31T21:24:53 | 280,979,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | # Select the file name that matches your first two letters of your last name on Learn
# Read those parameters as your ECE458 project 1 parameters
# p,q,g are DSA domain parameters, sk_i (secret keys) are used in each signature and verification
p=16158504202402426253991131950366800551482053399193655122805051657629706040... | [
"S72RAHMA@uwaterloo.ca"
] | S72RAHMA@uwaterloo.ca |
70ca8fee82e73fe67ce1b4341aa48c4f9d6d671f | 1a87246e1fe1bb9d5b68bf83bb0e0b0f199ad2d0 | /src/transformers/modeling_flaubert.py | bf81199dc38414b0b04f8b7c9cd8269dd197f279 | [
"MIT"
] | permissive | Tarpelite/title_generation | a4ddbcbc16c3909cf00daa4ec44183fef62ef7a9 | 8b9a9878e42ef1217b346daf492450c3d004dd21 | refs/heads/master | 2023-08-17T00:37:09.727755 | 2020-08-10T02:32:01 | 2020-08-10T02:32:01 | 271,536,724 | 1 | 0 | MIT | 2023-09-06T17:32:51 | 2020-06-11T12:09:40 | Python | UTF-8 | Python | false | false | 16,588 | py | # coding=utf-8
# Copyright 2019-present CNRS, Facebook Inc. and the HuggingFace Inc. team.
#
# 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
#... | [
"tarpelite_chan@foxmail.com"
] | tarpelite_chan@foxmail.com |
5388a79a16371f5d793672d09a01c0a47d2b1db4 | f06ddca5258290a1e7448a18e1d24a9d20226fbd | /pytext/models/language_models/lmlstm.py | da00d8aa1c0b82f9008800bdba38e1b4a44cac73 | [
"BSD-3-Clause"
] | permissive | mruberry/pytext | 6d64bc37429e3dd5581e5b3b6bf60bd216b6f445 | 3bba58a048c87d7c93a41830fa7853896c4b3e66 | refs/heads/master | 2022-07-16T07:41:47.781126 | 2020-05-14T04:52:35 | 2020-05-14T04:54:33 | 263,892,770 | 2 | 0 | NOASSERTION | 2020-05-14T11:11:33 | 2020-05-14T11:11:32 | null | UTF-8 | Python | false | false | 8,043 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from typing import Dict, List, Optional, Tuple, Union
import torch
from pytext.config import ConfigBase
from pytext.config.module_config import ExporterType
from pytext.data import CommonMetadata
from pytext.data.tensorizers... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7eb7f49050b8d62572fc25d9da5c985a43d8d839 | 03ee6ba65cd8e21bea257b1bf4dfd4dffed3d01e | /lib/python2.7/site-packages/IPython/frontend/qt/console/frontend_widget.py | c21b584bb5c3d2b8e3f532d4e60d9cf5f0d4b1cd | [] | no_license | BlackgateResearch/gmr_django | 310db12140e324ab0c477a2f436366dd943e4d26 | 527439b54a1e17f9423c10c386ab03ad73d13759 | refs/heads/master | 2016-09-05T23:01:21.683037 | 2011-11-24T17:25:07 | 2011-11-24T17:25:07 | 1,075,730 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,067 | py | from __future__ import print_function
# Standard library imports
from collections import namedtuple
import sys
import time
# System library imports
from pygments.lexers import PythonLexer
from IPython.external.qt import QtCore, QtGui
# Local imports
from IPython.core.inputsplitter import InputSplitter, transform_cla... | [
"tristram@oaten.name"
] | tristram@oaten.name |
1a001075dc3d541814f00250f16ed8d15e1a35ed | fb5c5d50d87a6861393d31911b9fae39bdc3cc62 | /Scripts/sims4communitylib/persistence/data_stores/common_sim_data_store.py | 581799c49b41bf1104357a7ead247a663f3cf85b | [
"CC-BY-4.0"
] | permissive | ColonolNutty/Sims4CommunityLibrary | ee26126375f2f59e5567b72f6eb4fe9737a61df3 | 58e7beb30b9c818b294d35abd2436a0192cd3e82 | refs/heads/master | 2023-08-31T06:04:09.223005 | 2023-08-22T19:57:42 | 2023-08-22T19:57:42 | 205,197,959 | 183 | 38 | null | 2023-05-28T16:17:53 | 2019-08-29T15:48:35 | Python | UTF-8 | Python | false | false | 853 | py | """
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
"""
from typing import Dict, Any
from sims4communitylib.persist... | [
"ColonolNutty@hotmail.com"
] | ColonolNutty@hotmail.com |
0450be3c2a199bbfa6e5a9797e50f1a962912f50 | d15bdaddab59d1cfea76790004cbad3e5f0c2c55 | /batkin/build_isolated/costmap_2d/catkin_generated/pkg.develspace.context.pc.py | 9d731d7c8e263f4c61e6b52deb65ec5febd8950c | [] | no_license | gychen-n/robot | 4265a1ff469d22550b6b537d1c81aa846ee7641a | 0663a33aea2c2de9e3ac5863307619091e5b5959 | refs/heads/main | 2023-04-10T13:32:06.623682 | 2021-04-16T00:41:04 | 2021-04-16T00:41:04 | 358,431,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/robot/batkin/devel_isolated/costmap_2d/include;/home/robot/batkin/src/navigation/costmap_2d/include;/usr/include/eigen3;/usr/include".split(';') if "/home/robot/batkin/devel_isolated/costmap_2d/i... | [
"gyc@autolabor-host.autolabor-domain"
] | gyc@autolabor-host.autolabor-domain |
433a6e0c8efdb8e457a11f1480e40949ce7e8389 | 2dfc5264d092e9e7c61e17ff3ec5dbec1f168cd8 | /pack | b18c9a4d1c20f008324b5028d20c3893f897739c | [
"MIT"
] | permissive | rr-/tsujidou | 1a196f2c12755198819db902c39631d6f5861be8 | 82cc2da7c36931e01db0d6d4d3939a2bdb364b4d | refs/heads/master | 2021-01-19T06:29:26.079518 | 2019-02-03T18:04:29 | 2019-02-03T18:04:29 | 87,466,901 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,456 | #!/usr/bin/env python3
import pickle
from pathlib import Path
from typing import List, Tuple, Generator, Callable
from lib import engine, script
from lib.tlg import tlg
from lib.snapshot import Snapshot
from lib.open_ext import open_ext
import configargparse
Transformer = Callable[[Snapshot], bytes]
def image_trans... | [
"rr-@sakuya.pl"
] | rr-@sakuya.pl | |
380693c40bd019f7ae13e3e73e76298e1632810d | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_6377668744314880_0/Python/matwetu/C.py | a68b7fabc46b0bd4b5fc40cdb9263853da985667 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,031 | py | import sys
import math
import StringIO
import os
import re
target_dir = 'C:\\Users\\lijia_000\\Downloads'
def search_file():
problem_id = os.path.basename(sys.argv[0]).split('.')[0].lower()
large_list = filter(lambda x: re.match('^%s.*large.*\.in$' % problem_id, x.lower()) is not None, os.listdir(target_dir... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
a5fe687947b63f93219be6b664fecddf6b190a9e | 454cb7ce13e0e359b978bc34830f83fdb7426630 | /python/b970.py | c9e2d8087b162909ce7c64103b3fb7ba4527b663 | [] | no_license | scorpio-su/zerojudge | d662925b1769e8f2b7cba1db291642b44365e3e8 | 4897d1626147d432d21577c330d489c6dd576cd6 | refs/heads/master | 2022-12-06T00:59:20.648107 | 2020-08-20T13:16:56 | 2020-08-20T13:16:56 | 279,103,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 8 17:59:53 2020
@author: Username
"""
for n in range(int(input())): print(str(n+1)+'. I don\'t say swear words!') | [
"aa891119@gmail.com"
] | aa891119@gmail.com |
3e3f551df770b602f828b3dc5f9c0a39aa7b9845 | febf4e7c6b65f1b5e2953c14bb4ec3967dac3239 | /feature-based-molecular-networking/test/test_converters.py | b7c8ab9001c1a409c75bd80f1a34a717b6a6dbe7 | [] | no_license | judechang/GNPS_Workflows | 581eef8b6658bc51916c515410f0a7cb8857dd24 | f57fd601dc872feb47f2d90066d2bfb407e60bb4 | refs/heads/master | 2020-06-29T20:51:18.234765 | 2019-07-29T17:46:34 | 2019-07-29T17:46:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | import unittest
import sys
import filecmp
sys.path.insert(0, "../tools/feature-based-molecular-networking/scripts/")
import msdial_formatter
import progenesis_formatter
import metaboscape_formatter
import xcms_formatter
import mzmine2_formatter
import openms_formatter
class TestLoaders(unittest.TestCase):
def tes... | [
"mwang87@gmail.com"
] | mwang87@gmail.com |
155cdec36d26280f953a531dc1e44a060997ae22 | b8bbdfc593b6d816e67a344f720f90ec05236778 | /airflow/utils/log/action_logger.py | 66e71c46538148f4f088c2022e0455d7bdc3c178 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | apache/airflow | ed78db0a8bab7e096990e143926e52f518e288ab | 1b122c15030e99cef9d4ff26d3781a7a9d6949bc | refs/heads/main | 2023-09-01T08:37:34.556097 | 2023-09-01T06:49:05 | 2023-09-01T06:49:05 | 33,884,891 | 22,756 | 11,558 | Apache-2.0 | 2023-09-14T20:12:36 | 2015-04-13T18:04:58 | Python | UTF-8 | Python | false | false | 1,046 | 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... | [
"noreply@github.com"
] | apache.noreply@github.com |
e63e1875db1cea6380cde13568d74769578bad6a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_95/2221.py | e940773fb34ae358453bf6ae75173fd025c4f9a6 | [] | 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 | 841 | py | #!/usr/bin/python
#Solution by Sajith Dilshan Edirisinghe
# email: sajithdilshan@gmail.com
text = 'ejp mysljylc kd kxveddknmc re jsicpdrysi rbcpc ypc rtcsra dkh wyfrepkym veddknkmkrkcd de kr kd eoya kw aej tysr re ujdr lkgc jv'
otxt = 'our language is impossible to understand there are twenty six factorial possibiliti... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
605b6a6c26b682eeb61864bee34134150a2af747 | ae53d98e04e9d86fa99dcbaa38479e77b81e5c41 | /Spider_demo/XinLang_news/XinLang_news/spiders/news365.py | 86a2519fa21ae9015ebb876d3587f49caa5ff958 | [] | no_license | miminus/Spider_demo | 314e6099e80aea306995d218906392660aebf8af | be15f76acf8f3d680f015b659d365191ef3cb49a | refs/heads/master | 2021-01-10T06:39:21.891751 | 2015-12-07T13:28:09 | 2015-12-07T13:28:09 | 47,552,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,473 | py | # -*- coding: utf-8 -*-
# 文汇报 - 没有翻页
import re
import time
from bs4 import BeautifulSoup
from scrapy import Selector, signals
import scrapy
import MySQLdb as mdb, os
from Sqlite_DB import SqliteTime
from XinLang_news.items import Topic_Item
from .. import settings
class News365Spider(scrapy.Spider):
name = "n... | [
"m189111@163.com"
] | m189111@163.com |
80d985bfbd6588abe81500dd3d2345581b1b9e67 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/rc2.py | 524829e07703c7843429b02bdd697dd8e365c06c | [] | 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 |
99170e255182468e50c12fc5f6ed97cb52f449e4 | 1f9baeafa2e6365ca4d4c74e334360ec13f822d1 | /karta/raster/band.py | 2710add100f9c5e478719ea2251fb9c8d6ffc765 | [
"MIT"
] | permissive | wroscoe/karta | 25c3ba246231c1b6a8d1a8b6f72c6d11ddba3d43 | bbb59f7cf642509228554af4bd60741cbbf1d371 | refs/heads/master | 2020-06-27T21:46:48.077303 | 2016-11-22T21:13:01 | 2016-11-22T21:13:01 | 74,513,655 | 0 | 0 | null | 2016-11-22T21:11:52 | 2016-11-22T21:11:51 | null | UTF-8 | Python | false | false | 13,820 | py | """
Band implementations for storing data in Karta Grid instances
Overview
--------
`BandIndexer` interface for accessing data from one or more bands
`SimpleBand` use numpy arrays for data storage
`CompressedBand` uses blosc compression to reduce in-memory footprint
Implementation
--------------
Bands are expecte... | [
"njwilson23@gmail.com"
] | njwilson23@gmail.com |
5da8312f35492a416689ed1e01a9e7004be5d254 | 7b87491c9ca12a74db81176e3f9e362a6c02733a | /utensor_cgen/matcher/_morphism.py | 9b537fcc30fb27256ab65f7faf0429c7eaec929a | [
"Apache-2.0"
] | permissive | uTensor/utensor_cgen | 68425f5ffb081518306f2758af9c904904f22099 | eccd6859028d0b6a350dced25ea72ff02faaf9ad | refs/heads/master | 2023-04-28T06:07:47.155246 | 2020-12-11T05:35:49 | 2020-12-11T05:35:49 | 112,056,490 | 53 | 37 | Apache-2.0 | 2023-04-15T08:52:34 | 2017-11-26T04:48:08 | Python | UTF-8 | Python | false | false | 1,098 | py | from abc import ABCMeta, abstractmethod
from copy import deepcopy
import attr
from utensor_cgen.utils import MUST_OVERWRITE
class Morphism(object):
__metaclass__ = ABCMeta
@abstractmethod
def apply(self, from_op):
raise RuntimeError('abstract transform invoked')
@attr.s
class TypedMorphism(Morphism):
... | [
"qmalliao@gmail.com"
] | qmalliao@gmail.com |
3b67f059fe6dba83388933ca2e8b7af2a7139b88 | 4860cfc011e96f63e40b7ef9fa3eb7acc7f524be | /fidetia/rrhh/doctype/curriculum_formacion_reglada/curriculum_formacion_reglada.py | 05cadb8f6a4adaccfc543b34edd1a22aea7681ed | [
"MIT"
] | permissive | Nirchains/fide | a1ca211dec1b8b817fb6805d330b0fc3c4ad11b8 | 095da135f7685b1ecf7b38d92eaf834ee68be559 | refs/heads/master | 2020-04-18T12:42:04.392889 | 2017-01-20T21:18:06 | 2017-01-20T21:18:06 | 66,250,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, PFG and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class Curriculumformacionreglada(Document):
pass
| [
"nirchains@gmail.com"
] | nirchains@gmail.com |
edd6e899382c3f04a66d5a95453ce18270d4a676 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /cvsGAmtHJBNDJFBpB_21.py | 1c31bf83e7a3d1e940d9a3c9b7689b68d373da99 | [] | 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 | 2,195 | py | """
In **Block Dude** , the main character can climb boxes, but only if they are
stacked in a particular way so that he is able to climb them one at a time.
More specifically, **he can only climb UP or DOWN one box at a time**.
Let `1`s represent the boxes, and `0` represent the background. Write a
function that re... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c10cbdc2defb683139b2ff4167b5eb849609c376 | 1713334f9b68255f9adab70175c21f399d0460f3 | /python/130_Surrounded_Regions.py | 421c997e87efc734eb440851dc8a1fcbdeeaee02 | [
"MIT"
] | permissive | coy0725/leetcode | 0a798b7adafe80f726e51c06c34835c4aa51b563 | 743a0bfa22402ec39858dc9c4c7dc531f825b953 | refs/heads/master | 2020-05-21T18:25:09.683714 | 2019-05-11T13:00:40 | 2019-05-11T13:00:40 | 186,132,894 | 2 | 0 | MIT | 2019-05-11T12:55:22 | 2019-05-11T12:55:21 | null | UTF-8 | Python | false | false | 1,795 | py | class Solution(object):
def solve(self, board):
# https://discuss.leetcode.com/topic/22503/some-tips-for-python-code
if not board:
return
height, width = len(board), len(board[0])
leakWall = self.buildLeakWall(board)
while leakWall:
i, j = leakWall.pop... | [
"qiyuangong@gmail.com"
] | qiyuangong@gmail.com |
c0128b657499e5f603ee1069af1545603be6db03 | bc89dc63630620f5506e122b8698d76ffa77f55c | /Audio-set/Audio_pratice/audiolearn/speech/graph.py | 6c08d396e181b69b38e21683a70caf81ca61fc95 | [
"MIT",
"Apache-2.0"
] | permissive | olusegun23/13301338176-ml | 662869b39390a5340456a98f5aaade9cd1be9195 | 9d5ddf8654c1f180211f92777bbc4fcc52abb848 | refs/heads/master | 2023-03-07T05:55:27.850022 | 2018-05-12T16:27:04 | 2018-05-12T16:27:04 | 128,597,678 | 0 | 0 | null | 2018-04-08T04:30:23 | 2018-04-08T04:30:22 | null | UTF-8 | Python | false | false | 2,647 | py | #Example of how to extract data from a wav file using the modified svt library.
#Also useful for graphing or playing around with data.
import svt
import matplotlib
from matplotlib import pyplot
import pylab
from mpl_toolkits.mplot3d import Axes3D
import random
import numpy
#The line needed to get data from the first c... | [
"you@example.com"
] | you@example.com |
628a62074b8fbdd3f2f84999619b406a48e28755 | a00dfc32bd6d7a3b23521a3d6407a9681f10c093 | /NeuroML2/times/LEMS_SpikingNet_netpyne.py | d35d66204416fab4dc5f2cc5bd094f0f2e5091b9 | [] | no_license | pgleeson/NetPyNEShowcase | 23694e68bcee2f9da20862c3bd3c7d6257901011 | dbfd956edc49fb7ac9d7fb5b79a96146bcc08d88 | refs/heads/master | 2021-01-01T06:37:44.211492 | 2017-07-12T13:32:24 | 2017-07-12T13:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,981 | py | '''
NETPYNE simulator compliant export for:
Components:
RS (Type: izhikevich2007Cell: v0=-0.06 (SI voltage) k=7.0E-7 (SI conductance_per_voltage) vr=-0.06 (SI voltage) vt=-0.04 (SI voltage) vpeak=0.035 (SI voltage) a=30.0 (SI per_time) b=-2.0E-9 (SI conductance) c=-0.05 (SI voltage) d=1.0E-10 (SI current) C=1.0E-... | [
"p.gleeson@gmail.com"
] | p.gleeson@gmail.com |
6b4a87e279917ed3ca6d2c87779da27b2f9de364 | 5054c805be8bf94d660b806dc7ee5a9f426d49bc | /posthog/api/test/test_exports.py | 42587109a02e26b0449b83250f59db1ed21b6a11 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | BElluu/posthog | 31a121ee1e690ee5d88cb268a3cd922031dcbee4 | 1e207230ba285c64ea8e7f58fd1f78ef7d7c160a | refs/heads/master | 2022-11-29T09:37:13.072632 | 2022-07-06T16:38:37 | 2022-07-06T16:38:37 | 254,587,554 | 0 | 0 | null | 2020-04-10T08:48:41 | 2020-04-10T08:48:41 | null | UTF-8 | Python | false | false | 14,109 | py | from typing import Dict, List, Optional
from unittest.mock import patch
import celery
from boto3 import resource
from botocore.client import Config
from django.http import HttpResponse
from freezegun import freeze_time
from rest_framework import status
from posthog.models.dashboard import Dashboard
from posthog.model... | [
"noreply@github.com"
] | BElluu.noreply@github.com |
17d44981c00331f6712ba99acf187a57c555ea70 | c3a0d8cc1e386717dffd93d0eb58bec752e26b0a | /test747-tensorflow_gamma_poisson_mixture/main.py | 69bc34bbef7c607d08cd6a4c7c908e986d42dc00 | [] | no_license | matthiaswh/bit4 | 0ce0e385d889a30620426bc60aa47de0ecef21de | 0633d7357d157b5f47c70091dc676dc2e06c1ae1 | refs/heads/master | 2022-11-10T07:44:28.706805 | 2020-06-21T13:12:26 | 2020-06-21T13:12:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | """
Gamma-Poisson (negative binomial) fitting.
"""
import numpy as np
import tensorflow as tf
def main():
true_alpha = 4.7
true_theta = 0.6
p = 1 / (1 + true_theta)
data = np.random.negative_binomial(true_alpha, p, size=10000)
alpha, theta = fit_gamma_poisson(data)
print("param\ttruth\test.... | [
"snsinfu@gmail.com"
] | snsinfu@gmail.com |
6f5f9f3f453f3c47289ddff4605aaff204a2e80b | a3597afc5aaf15723dba35d5b114f2b3e129a168 | /mars/learn/contrib/tensorflow/tests/test_dataset.py | 99f94d6067e17b0b6e43e6a311affece674cfb49 | [
"BSD-3-Clause",
"CC0-1.0",
"ISC",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"MIT"
] | permissive | hekaisheng/mars | 5edff06194779d6005bd768dabadd9191c812cb3 | 49ce0c1c691d405040e53b8eb8d8af9b7e87ae55 | refs/heads/master | 2023-01-10T06:24:05.532213 | 2021-12-07T08:21:56 | 2021-12-07T08:21:56 | 160,764,275 | 0 | 2 | Apache-2.0 | 2021-01-10T08:43:43 | 2018-12-07T03:12:41 | Python | UTF-8 | Python | false | false | 5,822 | py | # Copyright 1999-2020 Alibaba Group Holding Ltd.
#
# 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 a... | [
"noreply@github.com"
] | hekaisheng.noreply@github.com |
a2880a846110c764b46155890167d74ad6e19c5e | 115c612e5ab75f9620c011044119ea8f827282d1 | /processing/tasks/delete_files.py | ca2daf95c7e22b5dd68dff782daeac03bf4d34e8 | [
"Apache-2.0"
] | permissive | bmoregeo/voyager-py | 7d01bf3fcfcde35f0326b3068150fa40413da622 | 24bf491999271903c85d5f0fe1117851e55fedcb | refs/heads/master | 2021-01-15T16:00:48.545362 | 2015-02-12T18:53:05 | 2015-02-12T18:53:05 | 30,717,868 | 1 | 0 | null | 2015-02-12T18:53:06 | 2015-02-12T18:48:34 | Python | UTF-8 | Python | false | false | 4,612 | py | # -*- coding: utf-8 -*-
# (C) Copyright 2014 Voyager Search
#
# 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 l... | [
"jason@voyagersearch.com"
] | jason@voyagersearch.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.