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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0dffe94b6ed36f3bb742e63fc6a7b55ea7e5e461 | 2d5648035b8bd32b4a6ded311e48975e5ea100d4 | /runs/bro/10KB/src1-tgt1/http-par-noids-iter00100.cfg.py | d68235b3f1489e196325fb68574f4b9512bd21fe | [
"MIT"
] | permissive | Largio/broeval | 3975e54a1eaead6686c53e5e99250a00becbe1e0 | 89e831d07f066100afdd1a5b220f9f08f1c10b3d | refs/heads/master | 2021-05-08T08:54:06.498264 | 2017-11-10T17:09:02 | 2017-11-10T17:09:02 | 92,508,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py |
# Write results to this file
OUTFILE = 'runs/bro/10KB/src1-tgt1/http-par-noids-iter00100.result.csv'
# Source computers for the request
SOURCE = ['10.0.0.1']
# Target machines for the requests (aka server)
TARGET = ['10.0.0.2']
# IDS Mode. (ATM: noids, min, max, http, ssl, ftp, icmp, mysql)
IDSMODE = 'noids'
# Con... | [
"larswiete@googlemail.com"
] | larswiete@googlemail.com |
02b2329cbe0e37097385db7fc1b9147148f8e002 | 335123df3617a0fc14a076fd0c526f612165746e | /twentyc/database/couchdb/client.py | 6221ca55f8cb39a56647ae1ee2c0e84bf60473a3 | [
"Apache-2.0"
] | permissive | 20c/twentyc.database | 05e3a055c74a84d60bbf9082e35aea2d0e5eae19 | c6b7184d66dddafb306c94c4f98234bef1df1291 | refs/heads/master | 2020-05-30T03:10:28.059429 | 2015-12-18T11:46:07 | 2015-12-18T11:46:07 | 34,720,085 | 0 | 1 | null | 2016-07-23T05:16:30 | 2015-04-28T09:03:52 | Python | UTF-8 | Python | false | false | 10,528 | py | """
CouchDB client abstraction with automatic json encoding and decoding
"""
import couchdb
import simplejson as json
import re
import time
import threading
import requests
class RESTException(Exception):
pass
def cleanup(rv):
lst = [':','_']
for k,v in rv.items():
if k[0] in lst:
del rv[k]
return ... | [
"stefan@20c.com"
] | stefan@20c.com |
c1f69323317bdcdb14153018522bb36e44227286 | 52877e2b60ed675eb16ea66c7398127294a313d3 | /t2t_bert/utils/tensor2tensor/data_generators/translate_enet.py | 77ad70f076528b047d421802d94b1b7de6f683e8 | [
"Apache-2.0"
] | permissive | yyht/BERT | 0dc82ea8e141cad4774e638dd7d44f781d77b6c3 | 480c909e0835a455606e829310ff949c9dd23549 | refs/heads/master | 2023-04-07T03:32:28.123608 | 2021-02-17T02:15:58 | 2021-02-17T02:15:58 | 162,232,730 | 37 | 12 | Apache-2.0 | 2022-11-21T21:15:04 | 2018-12-18T05:02:27 | Python | UTF-8 | Python | false | false | 2,849 | py | # coding=utf-8
# Copyright 2019 The Tensor2Tensor Authors.
#
# 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... | [
"albert.xht@alibaba-inc.com"
] | albert.xht@alibaba-inc.com |
abdfa879e440c33a91346bffe03c88f6d55939dc | 89b46551ac0c0f45e07724aee144813022aa784c | /micropython/ejemplos/test_neopixels.py | cda5a7cb31372fb7866bd2f00e331bacf6243db3 | [] | no_license | javacasm/BBC-microbit | 6fcb701f48c3636945fb1cd2c925cbb810116cfa | 1b20669598adb652ce4a62db5e42870eddec27ea | refs/heads/master | 2021-08-19T20:33:01.953276 | 2021-01-21T18:51:50 | 2021-01-21T18:51:50 | 88,613,144 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | """
neopixel_random.py
Repeatedly displays random colours onto the LED strip.
This example requires a strip of 8 Neopixels (WS2812) connected to pin0.
"""
from microbit import *
import neopixel
from random import randint
N_pixels = 60
# Setup the Neopixel strip on pin0 with a length of 8 pixels
np = neo... | [
"javacasm@gmail.com"
] | javacasm@gmail.com |
877a12111f9fe1dde81b68b216626edecad3eacc | ed76fd0197bf08b19153f4b04fdc55c8ab0d3071 | /main.py | 0202eb4a2732227205028e46890447c7b75f2949 | [] | no_license | maidao/NLP | 6750d8f20be1b588f0a540897ba0df25ecefe5a9 | 63386c5f154c98c72d582cbc8fcbf4bb4bb6ab51 | refs/heads/master | 2020-06-09T23:43:33.473030 | 2019-07-02T09:41:36 | 2019-07-02T09:41:36 | 193,529,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,806 | py | from clean_data import *
from model_appied import *
# 1--- Load data
path = 'food.csv'
data_raw = Clean_data(path)
data_resto = data_raw.clean()
#data_resto.to_csv('resto.csv')
m = max(data_resto.likes_count)
print("max like: ",m)
print("max rep:", max(data_resto.replies_count))
like_most = data_resto[data_resto['lik... | [
"md.maidao@gmail.com"
] | md.maidao@gmail.com |
ea9fd4f3c546eee2601fe89110aeed9af9a5f0a2 | 54bc0bcf4adf9441a384dcc6781a547fcc53474b | /setup.py | 55cce1643036f4a66fd9c16c1da2121a157165cd | [
"BSD-2-Clause"
] | permissive | shvechikov/python-processor | 521ce3ec146d4a5cab0c0b4f891f357df8c3ff6b | 50632355a7a9a1c3159af692fe0eca0d0e814b51 | refs/heads/master | 2021-01-17T06:09:49.695775 | 2015-03-18T15:44:42 | 2015-03-18T15:44:42 | 32,537,837 | 0 | 0 | null | 2015-03-19T17:59:24 | 2015-03-19T17:59:24 | null | UTF-8 | Python | false | false | 2,113 | py | # -*- encoding: utf-8 -*-
import io
import re
from glob import glob
from os.path import basename
from os.path import dirname
from os.path import join
from os.path import splitext
from setuptools import find_packages
from setuptools import setup
def read(*names, **kwargs):
return io.open(
join(dirname(__fi... | [
"svetlyak.40wt@gmail.com"
] | svetlyak.40wt@gmail.com |
a4a5e11077255596da64f6ab65a4ad76c7585590 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/services/services/distance_view_service/transports/grpc.py | 19f7634c990fb9c3cffe42be9d1346cbf182d41f | [
"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 | 10,314 | 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 |
b4388701adebb555c9d0679eb8a2561c9ca5d05d | 08ee36e0bb1c250f7f2dfda12c1a73d1984cd2bc | /src/mnistk/networks/linearonly_3.py | 105c0f3a3f2b57d9f1384c50b7001f9b690c671b | [] | no_license | ahgamut/mnistk | 58dadffad204602d425b18549e9b3d245dbf5486 | 19a661185e6d82996624fc6fcc03de7ad9213eb0 | refs/heads/master | 2021-11-04T07:36:07.394100 | 2021-10-27T18:37:12 | 2021-10-27T18:37:12 | 227,103,881 | 2 | 1 | null | 2020-02-19T22:07:24 | 2019-12-10T11:33:09 | Python | UTF-8 | Python | false | false | 612 | py | # -*- coding: utf-8 -*-
"""
linearonly_3.py
:copyright: (c) 2019 by Gautham Venkatasubramanian.
:license: MIT
"""
import torch
from torch import nn
class LinearOnly_3(nn.Module):
def __init__(self):
nn.Module.__init__(self)
self.f0 = nn.Linear(in_features=784, out_features=74, bias=Fal... | [
"41098605+ahgamut@users.noreply.github.com"
] | 41098605+ahgamut@users.noreply.github.com |
f306351e172f62f1e3dea207d66f9fc20960f9ea | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-3552.py | ed175e9292ad41144d584d608607fc43de730f67 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,269 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
4e5d91f7fd8e23c5a8fb2b38af7542b61162b74d | 5c6a809bfd6cac7c722ea1eed5ef500f485bcaa5 | /config/urls.py | d5e820a47a7bab62f52ea6ab8321115258b02bd3 | [] | no_license | tanghee/PULZIP_Project_Django | bc12680d27bb1368668a1a544bfec0f82f802e37 | 5fd47fec471797bb8eeacf1be7695e2fb888d87e | refs/heads/master | 2023-01-29T22:27:46.554251 | 2020-12-16T00:48:15 | 2020-12-16T00:48:15 | 321,577,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('account/', include('account.urls', namespace='account')),
path('board/', include('board.urls', namespace='board')),
path('notice/', include('notice.urls', namespace='notice')),
... | [
"s2018w37@e-mirim.hs.kr"
] | s2018w37@e-mirim.hs.kr |
0e85541e95f04db3a62dc48b2ab10c8990fe22c6 | e0c325f23d6c5accc013aed2e76822a966f1ed09 | /digipal/migrations/0039_auto__add_field_componentfeature_set_by_default__add_field_componentfe.py | 81933ddbe6e8ed51c4d7a0d3a3846845fba58c44 | [] | no_license | AndreaLane/digipal | 076e804952268c9ff6baaaa0ee08eea3cc57c94c | 46ed2ca708b30238b3ed0b57e544b9e883d8310a | refs/heads/master | 2021-01-19T14:24:09.796067 | 2017-03-14T19:04:14 | 2017-03-14T19:04:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76,949 | 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):
pass
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# If this migration fails in your environment, do the fol... | [
"geoffroy.noel@kcl.ac.uk"
] | geoffroy.noel@kcl.ac.uk |
ef88636f3fb674e965d850cac91ca99cdf7f24f8 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/congratul.py | c0b06aab76dfde4b8c52815ca86071cd2010d211 | [] | 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 | 1,536 | py | ii = [('CookGHP3.py', 6), ('CoolWHM2.py', 1), ('GodwWSL2.py', 16), ('WilbRLW.py', 7), ('WilbRLW4.py', 10), ('AubePRP2.py', 6), ('CookGHP.py', 2), ('MartHSI2.py', 2), ('KembFJ1.py', 1), ('WilbRLW5.py', 6), ('PettTHE.py', 2), ('MarrFDI3.py', 1), ('BailJD2.py', 1), ('AubePRP.py', 7), ('FitzRNS3.py', 1), ('WilbRLW2.py', 6)... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
f5c791bff46ec3ddc9f1db585648e89705af587b | 01c98f61835397c0a24f1169e022a3d37bde1d1d | /爬虫/快手/pachong.py | cec00cafb808d4f1149bfa000f1384d43a568cb9 | [] | no_license | legolas-zeng/scripts | a342d72712eda51104f73a2c785c5569ce8cdec9 | b2a1670dfea4277696a549bce79da79bbfc11258 | refs/heads/master | 2021-07-20T05:20:09.187685 | 2021-07-15T11:43:24 | 2021-07-15T11:43:24 | 117,564,259 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | # coding=utf-8
import re
import requests
from urllib import parse
from bs4 import BeautifulSoup
# def main():
# res = requests.post("https://www.apibug.com/api/dsp/kuaishou.php?url=https://v.kuaishou.com/6FXp0H")
# print(res.text)
#
# if __name__ == '__main__':
# main()
| [
"814382690@qq.com"
] | 814382690@qq.com |
909157ce303cd3265ba1cf54e11e97284e66b06c | 70b339d0b2638a7914d0d56c5edf8a2637c9f4b0 | /removeSubfolders.py | 4b5c3f6b0d55bacf9c7d3142781cc088958c9843 | [] | no_license | pflun/advancedAlgorithms | 9991da7514024e18ba08de8688966b9220e12571 | 5520dbcd26999b98e1229bf03c2f62dd690a2ddc | refs/heads/master | 2023-02-19T12:05:26.902535 | 2023-02-14T06:08:54 | 2023-02-14T06:08:54 | 189,055,701 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | class Solution(object):
def removeSubfolders(self, folder):
"""
:type folder: List[str]
:rtype: List[str]
"""
res = []
hashSet = set(folder)
for d in folder:
# because ['', 'ab', 'cd'], 0 => '' and do Not include last folder
dList = d.s... | [
"zgao@gwu.edu"
] | zgao@gwu.edu |
f0938eae4e2746668981a55714a9109c08bb0c80 | 79104c99db93c9abf941f64057210a993fec956a | /scrapy/signals.py | 79de55a4b82e4926c07e574e6f01da9ade16ec8b | [
"BSD-3-Clause"
] | permissive | craftsmanTek/scrapy | 89bbb8ebef53093eae413c9a42fe6ffe83123011 | 8391b362518c5602867afebda81b1f42536f48b6 | refs/heads/master | 2023-05-01T04:36:20.615072 | 2013-03-13T06:24:25 | 2013-03-13T06:24:25 | 8,756,947 | 0 | 0 | BSD-3-Clause | 2023-04-15T11:24:43 | 2013-03-13T16:49:44 | Python | UTF-8 | Python | false | false | 601 | py | """
Scrapy signals
These signals are documented in docs/topics/signals.rst. Please don't add new
signals here without documenting them there.
"""
engine_started = object()
engine_stopped = object()
spider_opened = object()
spider_idle = object()
spider_closed = object()
spider_error = object()
request_received = obje... | [
"pablo@pablohoffman.com"
] | pablo@pablohoffman.com |
7ff03e5015c617923f0f1cdb33d526187b5e6616 | 4d675034878c4b6510e1b45b856cc0a71af7f886 | /tests/data/configs_mmtrack/faster_rcnn_r50_fpn.py | 09de21648b3120e645a1b0efb5978b7e744b9d0c | [
"Apache-2.0",
"BSD-2-Clause-Views",
"MIT",
"BSD-2-Clause"
] | permissive | shinya7y/UniverseNet | 101ebc2ad8f15482ee45ea8d6561aa338a0fa49e | 3652b18c7ce68122dae7a32670624727d50e0914 | refs/heads/master | 2023-07-22T08:25:42.646911 | 2023-07-08T18:09:34 | 2023-07-08T18:09:34 | 263,555,721 | 407 | 58 | Apache-2.0 | 2023-01-27T01:13:31 | 2020-05-13T07:23:43 | Python | UTF-8 | Python | false | false | 4,013 | py | model = dict(
detector=dict(
type='FasterRCNN',
backbone=dict(
type='ResNet',
depth=18,
base_channels=2,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
... | [
"noreply@github.com"
] | shinya7y.noreply@github.com |
537771eba11976dedfa3a7b1f053fd815ca23028 | 48832d27da16256ee62c364add45f21b968ee669 | /res/scripts/common/bwautoimport.py | 148ff6b1a886547be3a44b5fb02a91d14d6861c9 | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 7,523 | py | # 2016.08.04 19:55:10 Střední Evropa (letní čas)
# Embedded file name: scripts/common/BWAutoImport.py
import collections
from weakref import proxy as _proxy
def _fix_base_handler_in_urllib2():
import functools
from urllib2 import BaseHandler
def add_parent(self_, parent):
self_.parent = _proxy(par... | [
"info@webium.sk"
] | info@webium.sk |
dbde4f26e42e0a9e0d0018734ae7958a3b2d30f6 | e859d4604615e4ff3c6730554b12ae7b09e86286 | /django-stubs/db/migrations/state.pyi | 0b84403b4c54566bf7339ecc3d46285e0b98811f | [
"BSD-3-Clause"
] | permissive | microblag/django-stubs | d91655c346279424cf5e57b80a0b104dceb86ddc | d0eb05832551d344f06ec3e83cb850866a4d37c2 | refs/heads/master | 2020-04-18T05:18:24.887114 | 2019-02-06T04:02:28 | 2019-02-06T04:02:28 | 167,273,694 | 0 | 0 | null | 2019-01-24T00:12:42 | 2019-01-24T00:12:42 | null | UTF-8 | Python | false | false | 2,840 | pyi | from typing import Any, Dict, Iterator, List, Optional, Tuple, Type, DefaultDict
from django.apps.registry import Apps
from django.db.models.base import Model
from django.db.models.manager import Manager
from django.utils.functional import cached_property
from django.db.models.fields import Field
class AppConfigStub... | [
"maxim.kurnikov@gmail.com"
] | maxim.kurnikov@gmail.com |
18b0c26925b9346526a43c8e34a12fa610dfa617 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03957/s125892324.py | ea9ce1e214abf8df4ab385240a7b2f53dbc684d9 | [] | 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 | 174 | py | S = input()
flag = False
for s in S:
if s == "C":
flag = True
if flag:
if s == "F":
print("Yes")
break
else:
print("No")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
11e9dce0488b71a242189afbf1d575e2d411030e | 5d5e9e8b61a92876fdd0922921b9cf8505e132de | /internships/CtCI/ch8/triple_step.py | 40ec3c5992adad084017a2de88b73924d58e03fa | [
"MIT"
] | permissive | AmrMKayid/KayAlgo | cd6b4a03a2a9b25b30be93a2f78610c99e752724 | df6e2b5b0f74174d5c0950520f0c47b04212dfaa | refs/heads/master | 2021-06-22T01:21:32.070898 | 2020-11-26T23:12:18 | 2020-11-26T23:12:18 | 135,935,017 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | def triple_step(n):
return triple_step_dp(n, [-1] * (n + 1))
def triple_step_dp(n, memo):
if n < 0:
return 0
elif n == 0:
return 1
if memo[n] == -1:
memo[n] = triple_step_dp(n - 1, memo) \
+ triple_step_dp(n - 2, memo) \
+ triple_step_dp(n - 3, memo)
return memo[n]
... | [
"amrmkayid@gmail.com"
] | amrmkayid@gmail.com |
a0c18d2b50912adfc20f5f6aa87820a7982ff490 | 3f46af2da32d9f02d1ebbdef6784ece1d64aace3 | /Production/python/PrivateSamples/EMJ_2018_mMed-1500_mDark-10_ctau-100_unflavored-down_cff.py | 1158d4b84a54f74085f27b1d0fb1da1fc7a5da9b | [] | no_license | cms-svj/TreeMaker | 53bf4b1e35d2e2a4fa99c13c2c8b60a207676b6d | 0ded877bcac801a2a394ad90ed987a20caa72a4c | refs/heads/Run2_2017 | 2023-07-19T07:14:39.175712 | 2020-10-06T21:10:26 | 2020-10-06T21:10:26 | 305,753,513 | 0 | 0 | null | 2021-01-26T18:58:54 | 2020-10-20T15:32:19 | null | UTF-8 | Python | false | false | 1,892 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'gsiftp://hepcms-gridftp.u... | [
"enochnotsocool@gmail.com"
] | enochnotsocool@gmail.com |
d7ac5ed542f1c1f0d3418138e420bd929260466c | d7c44ee3bb88c5ec82c466313f3e567a8a251b00 | /Тип треугольника2.py | 79ec739de24edbc439246e550e6941e1b39c7c75 | [] | no_license | krastykovyaz/python_hse | 6a2c00c47ac73a41cd22122f13b0ad5d4dc59cc2 | 81cb1fff1fdf5e1674dcfac4e0673f122d1b9036 | refs/heads/master | 2022-12-22T09:36:22.343626 | 2020-09-30T19:19:51 | 2020-09-30T19:19:51 | 292,188,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | import math
a = int(input())
b = int(input())
c = int(input())
a, b, c = sorted([a, b, c])
if a + b <= c:
print('impossible')
elif c == math.sqrt((a ** 2) + (b ** 2)):
print('rectangular')
elif ((a ** 2) + (b ** 2) - (c ** 2)) / (2 * a * b) > 0:
print('acute')
else:
print('obtuse')
| [
"krasty_90@mail.ru"
] | krasty_90@mail.ru |
734aa5553695fc4249b614c978f5dacfbdd668db | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/224/users/4346/codes/1577_1326.py | 7e8e6c0d071459ccdb8eed2a93609378543b3f7d | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14 | py | print ( 75 )
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
81dd594694c248972d14eec0d1e6c532a0af9593 | 08476e10b1fd5ba7ecc6ebd82b5cb3967ba8b487 | /bot.py | 556094af08824d8b48f05544371d8aad3ab80841 | [
"MIT"
] | permissive | sh1ma/narabikae-bot | 1e53ff90154cde4366f2c3017a2cde0d4b36ba69 | 33cc246d0c98ab60d9956ebd1743601fb7f3a0c4 | refs/heads/master | 2022-12-14T12:31:25.964086 | 2020-09-19T05:52:47 | 2020-09-19T05:52:47 | 296,794,709 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | from discord.ext import commands
INITIAL_COGS = ["cogs.ready", "cogs.sort"]
class Robot(commands.Bot):
def __init__(self, command_prefix: str = "!") -> None:
super().__init__(command_prefix=commands.when_mentioned_or(command_prefix))
for cog in INITIAL_COGS:
self.load_extension(cog)
... | [
"in9lude@gmail.com"
] | in9lude@gmail.com |
cafb35b0d943c9a214d489482604b6a9c7becfc9 | 0c19fba2b6730b128fea0627725d15dbccf1c3cf | /fs_ref/app/users/urls.py | f606db0228c06fe8fed79779cef3fd97fbeee347 | [] | no_license | relekang/fs-reference | 6349f2edb0ba1e7d0327e8bffbd986e73f04106e | dbe131038ec47cdacbced18fcdee53169b996da6 | refs/heads/master | 2020-12-25T15:19:44.743854 | 2017-06-29T16:32:00 | 2017-06-29T16:32:00 | 40,018,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
urlpatterns = patterns('fs_ref.app.users.views',
url(r'^$', 'list_users', name='admin_users'),
url(r'^add/$', 'edit_user', name='add_user'),
url(r'^(?P<user_id>\d+)/edit/$', 'edit_user', name='edit_user'),
)
| [
"me@rolflekang.com"
] | me@rolflekang.com |
c2be7586558b0cfe69044e422a0296fcdb84e5d0 | 35d4f6e592fef933312fec601095ca5d0c4fe616 | /backend/healthcare/migrations/0001_initial.py | af1eb511568c7f77c3d6b3e6cb6b49d91f1bf1b0 | [] | no_license | crowdbotics-apps/beers-criteria-18818 | 0a7a16b5290a87de3e6ea0ce01f317b2eba12122 | 54ec167fc8c3d6728f163e3e4bc37019af62238c | refs/heads/master | 2022-11-16T17:38:05.757707 | 2020-07-10T19:40:49 | 2020-07-10T19:40:49 | 278,718,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | # Generated by Django 2.2.14 on 2020-07-10 19:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Step',
fields=[
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
db2971adb5c30b63afd1a1b3dab41d171b3b88db | 5c3ab4a045f6df4edb647e509ca7f79c9268a5a6 | /src/tableau_api_lib/api_requests/update_dqwarning_request.py | 9988c5944e05250ab176fc1377afb01e944443fe | [
"MIT"
] | permissive | divinorum-webb/tableau-api-lib | d1bafa5c876ce26c5884b6b1bc53c0969565c52b | 99a1d3c2a4d7dc20d1c4a619d58cc756ace1db41 | refs/heads/master | 2023-04-04T22:52:37.753153 | 2022-10-15T11:51:45 | 2022-10-15T11:51:45 | 203,291,381 | 84 | 29 | MIT | 2023-03-29T13:40:22 | 2019-08-20T03:18:01 | Python | UTF-8 | Python | false | false | 2,032 | py | from tableau_api_lib.api_requests import BaseRequest
class UpdateDQWarningRequest(BaseRequest):
def __init__(self,
ts_connection,
warning_type,
message,
status=None):
"""
Builds the request body for Tableau Server REST API request... | [
"elliott.stam@gmail.com"
] | elliott.stam@gmail.com |
79abeb51b15c55614cbddf0e6bd3062c5087777b | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/ConstrainsAnalysis/DesignPointSelectStrategy_20210713192238.py | 6b93e0d93a743c80a772a9acbf4632508d7eb274 | [] | no_license | 12libao/DEA | 85f5f4274edf72c7f030a356bae9c499e3afc2ed | 1c6f8109bbc18c4451a50eacad9b4dedd29682bd | refs/heads/master | 2023-06-17T02:10:40.184423 | 2021-07-16T19:05:18 | 2021-07-16T19:05:18 | 346,111,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,865 | py | # author: Bao Li #
# Georgia Institute of Technology #
import sys
import os
sys.path.insert(0, os.getcwd())
import numpy as np
import matplotlib.pylab as plt
import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm
import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse
import Sizing_Method.Aerodynamics.Ae... | [
"libao@gatech.edu"
] | libao@gatech.edu |
a37d389db3d9e80399ab7617cf8a0da4a324a77e | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /ONNX/lambda-onnx/numpy/f2py/crackfortran.py | 6453bbecb1597ea6e6ea3a77e43e19c4027a85fb | [
"MIT",
"BSD-3-Clause",
"GPL-3.0-or-later",
"BSD-3-Clause-Open-MPI",
"GPL-3.0-only",
"GCC-exception-3.1"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 131,987 | py | #!/usr/bin/env python3
"""
crackfortran --- read fortran (77,90) code and extract declaration information.
Copyright 1999-2004 Pearu Peterson all rights reserved,
Pearu Peterson <pearu@ioc.ee>
Permission to use, modify, and distribute this software is given under the
terms of the NumPy License.
NO WARRANTY IS EXPRESS... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
ee70b34a2a31b0c1a65e49a346eb0fefd8968025 | f68eda51246c95597def569224f3b56d4c3700e7 | /top/api/rest/TraderateExplainAddRequest.py | 22ce6b75f0690ae2a4b533f3a4e51e83551b4769 | [
"MIT",
"BSD-3-Clause"
] | permissive | stoensin/taobao-openapi | 47de8fb29ae2d8ce47d4fce07c0ccaeaee1ef91f | 202a9df2085229838541713bd24433a90d07c7fc | refs/heads/main | 2023-07-17T02:17:51.527455 | 2021-08-25T15:08:49 | 2021-08-25T15:08:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | '''
Created by auto_sdk on 2020.08.31
'''
from top.api.base import RestApi
class TraderateExplainAddRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.oid = None
self.reply = None
def getapiname(self):
return 'taobao.traderate.explain.... | [
"samzong.lu@gmail.com"
] | samzong.lu@gmail.com |
43304d064a360561b7d6db0f464ca5990e6c41f5 | 82c0ad61585eecc64c0fb21879de6e7668a619cc | /eventex/settings.py | 93354b0d0573dd4945a1712ec3fd8a984150bade | [] | no_license | rvmoura96/wttd-eventex | b2e528e1d8b6be843556e0bb3e07a5c82e3667cd | 2b16d873ab388bf83a9bd8ab5961a85001922832 | refs/heads/master | 2020-03-19T12:58:07.655321 | 2018-08-14T00:12:47 | 2018-08-14T00:12:47 | 136,552,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,748 | py | """
Django settings for eventex project.
Generated by 'django-admin startproject' using Django 2.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
fr... | [
"rvmoura.96@gmail.com"
] | rvmoura.96@gmail.com |
3b9d338f2a2c2bf1126fcc67ff53befd7d1880c4 | aa4458fcfb238af71ecbeae600fe6219e955f695 | /pdf.py | fe72cdece662d0e0242b80a6a88e74b09a5659c8 | [] | no_license | himanmenGit/pdftotext | 5e2a683d9c03bdc91ca8a9ef8aa587308d950668 | e9ebbef27770d279a0da3b2df4540fe8b1820df4 | refs/heads/master | 2020-04-12T00:57:13.837722 | 2018-12-18T02:27:58 | 2018-12-18T02:27:58 | 162,217,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | import time
def pdftotext_func():
import pdftotext
# Load your PDF
with open("6060273.pdf", "rb") as f:
pdf = pdftotext.PDF(f)
# How many pages?
print(len(pdf))
# Iterate over all the pages
for page in pdf:
print(page)
# Read some individual pages
print(pdf[0])
... | [
"study.himanmen@gmail.com"
] | study.himanmen@gmail.com |
bc4d3a62ad9a816ddf72aa4f28d1f37b0492aa4c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/76/usersdata/239/39797/submittedfiles/jogoDaVelha.py | a78bea9243f49223f2c2c9a72d79acb681651c24 | [] | 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 | 560 | py | # -*- coding: utf-8 -*-
import math
x1 = int(input('Digite x1: '))
x2 = int(input('Digite x2: '))
x3 = int(input('Digite x3: '))
x4 = int(input('Digite x4: '))
x5 = int(input('Digite x5: '))
x6 = int(input('Digite x6: '))
x7 = int(input('Digite x7: '))
x8 = int(input('Digite x8: '))
x9 = int(input('Digite x9: '))
#CO... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f567635031b0506745ffd8b38d6bc4ef14b915a0 | 993aa7c66d759b2ef63204d3cd7fe4afc90396e0 | /blackBelt/urls.py | ef72380652be76374a4b9ca5f4275372bd496b28 | [] | no_license | hmp36/Friends | a2a85a0b740aa7b9a56192540743609ccca33c4d | abce5c9c77e02da440e2db6e9077f767b4924165 | refs/heads/master | 2021-09-13T07:30:07.996861 | 2018-04-26T12:28:15 | 2018-04-26T12:28:15 | 125,099,450 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | """blackBelt URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"haganpratt@gmail.com"
] | haganpratt@gmail.com |
b654ab0970b3eaf0b37cdd5cc735f773b4ce2a88 | 6a7e9e0e9c08132166f566bd88ae1c46ff8f9c0a | /azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/registry_update_parameters.py | fa3786ebd673d2deca5acc0731ad0e0e16ab858c | [
"MIT"
] | permissive | ashirey-msft/azure-sdk-for-python | d92381d11c48f194ec9f989f5f803db614fb73f2 | e04778e13306dad2e8fb044970215bad6296afb6 | refs/heads/master | 2020-03-23T06:05:39.283442 | 2018-09-15T00:18:26 | 2018-09-15T00:18:26 | 141,188,192 | 0 | 1 | MIT | 2018-07-16T20:02:52 | 2018-07-16T20:02:52 | null | UTF-8 | Python | false | false | 1,940 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
b5d803dd214a40d16a36e15616b5d76ddddf0a23 | 2b5eb9cea2d3d2cb9b60cfb01f6b60c0445edee2 | /caffe2/python/layers_test.py | 5e036afe338682e431ada760ab7e5ace4a21a5ed | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause",
"Apache-2.0"
] | permissive | Mut1nyJD/caffe2 | 67fca467ec41cde3a9eb4ba319f7ca79411f14c1 | 416b504cd88108727a34b1520397c94b28caf091 | refs/heads/master | 2021-05-04T14:31:53.958288 | 2018-02-04T08:47:32 | 2018-02-04T09:02:30 | 120,201,523 | 1 | 0 | null | 2018-02-04T16:22:06 | 2018-02-04T16:22:05 | null | UTF-8 | Python | false | false | 58,991 | py | # Copyright (c) 2016-present, Facebook, Inc.
#
# 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... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
12f902d4577dd340d11238b081f748867a9c3d27 | 5547b5b815e6a62ab033e45a114541925c05293b | /learning-redux/env/bin/pip3.6 | 5396c980b6b37a5746192b3e8811c8dd69f136b1 | [] | no_license | ndthinh8796/RepcipeFinder | 847846c5b74dbde6a0427a65664627a7fd04d606 | 0301d3de28d9382c292e25678989a4565a657c0c | refs/heads/master | 2020-05-17T16:01:20.689108 | 2019-04-28T16:25:17 | 2019-04-28T16:25:17 | 183,806,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | 6 | #!/home/ndthinh/learning-redux/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"you@example.com"
] | you@example.com |
40d6be939538506c64e0a3dd43a049462ebead1c | 84a1f9d626828b6ecaee4ef037081f4d8750a990 | /编程/8月/8.4/Select_Sort.py | 0acfb0f71e8c8e4ebd081f61787b9207156e4da6 | [] | no_license | dujiaojingyu/Personal-programming-exercises | 5a8f001efa038a0cb3b6d0aa10e06ad2f933fe04 | 72a432c22b52cae3749e2c18cc4244bd5e831f64 | refs/heads/master | 2020-03-25T17:36:40.734446 | 2018-10-01T01:47:36 | 2018-10-01T01:47:36 | 143,986,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | __author__ = "Narwhale"
def select_sort(alist):
"""选择排序"""
n = len(alist)
for j in range(0,n-1):
min_index = j
for i in range(1+j,n):
if alist[min_index] > alist[i]:
min_index = i
alist[j],alist[min_index] = alist[min_index],alist[j]
if __name__ == "__ma... | [
"34296128+dujiaojingyu@users.noreply.github.com"
] | 34296128+dujiaojingyu@users.noreply.github.com |
eeba2729b9f0259766ed8ee1de47cfb55ea1f814 | d6aa26d8bca6a0b7adcf7e74630fcc3bced35285 | /project_bug/serializers/__init__.py | 2e3a5dc1bc48fd21d31d045adde3afe9e5f2ac25 | [] | no_license | kmmao/tcis | 9a667883250042030e89e5408a5c119d9825eb80 | a2e23e3f57a224381175b514fd1efce2365df8a0 | refs/heads/master | 2022-01-02T14:24:39.446556 | 2018-02-28T01:58:13 | 2018-02-28T01:58:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@project:tcis
@author:cloudy
@site:
@file:__init__.py.py
@date:2017/11/9 10:07
"""
from .project_bug import * | [
"272685110@qq.com"
] | 272685110@qq.com |
cef4ccd1630c53735fb0e2718fb69c9b2db90c30 | 8f9ea3f14bdf2187de759939b2bbc87fe68ccfc0 | /tensorflow/contrib/distributions/python/ops/sinh_arcsinh.py | a764544932cea8a624820153e383595fec9d7fc6 | [
"Apache-2.0"
] | permissive | davidstanke/bazel-mvn-demo | 4ea43f0ba293a28b916a27eab5f0812e9b753c2c | cff14dddce15ea7152988da576673bd15bab6c6e | refs/heads/master | 2022-10-20T07:52:29.651851 | 2018-11-22T13:17:51 | 2018-11-22T13:17:51 | 157,782,756 | 2 | 0 | Apache-2.0 | 2022-10-04T23:47:05 | 2018-11-15T22:54:09 | C++ | UTF-8 | Python | false | false | 8,834 | py | # Copyright 2017 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... | [
"davidstanke@gmail.com"
] | davidstanke@gmail.com |
a623c579acc166fe904af7d89854879a09279812 | 5b063182d123c3759f47cfb4ccdf027305b840a2 | /hmi/__init__.py | 5d3e1029d3649948176aac1cf9c38d5a370f155c | [
"MIT"
] | permissive | hsuanhauliu/hidden-message-image | 652467a3809bc51fc64432d6307cd68aaedc5e3a | f7e38fb8f2922e9a1c57665d281c74cd9b6a297e | refs/heads/master | 2020-03-08T17:19:41.476496 | 2019-12-14T06:09:39 | 2019-12-14T06:09:39 | 128,265,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | from hmi.hmi import *
| [
"hsuanhal@usc.edu"
] | hsuanhal@usc.edu |
ac5123443c054d955d213f6cc7d8c8b005e4ffc8 | e11844788977036be79cb62ff5e9d831ab048172 | /setup.py | 7e1b0d52048fac5a7d28a530e07f22704fab8af7 | [
"MIT"
] | permissive | yilab/PyAthenaJDBC | b434d81a41751dd5cdffb4edd1c73781db9ca2f0 | f50cd802061702c77c7c8329ffd1475e38473571 | refs/heads/master | 2021-01-22T18:46:37.933342 | 2017-03-12T04:27:27 | 2017-03-12T04:27:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,467 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import codecs
import os
import sys
from setuptools import setup, Command
from setuptools.command.install import install
import pyathenajdbc
if sys.version_info[0] == 2:
from urllib import urlretrieve
else:
from urllib.reque... | [
"laughingman7743@gmail.com"
] | laughingman7743@gmail.com |
ad715849b0227ed07479c365ae8d454580930ea3 | 8e6203db7383475f1c24a590f0456330b969bb4b | /doc/source/conf.py | ed62ba666576d41271851d905ef81271901a63ff | [
"Apache-2.0"
] | permissive | guillermo-navas-palencia/optbinning | 6fdfc764a214052b4d7d8e0b59114f0a63e6d5a8 | 73aee82008ebe88b732430e7c5764da57fb4d3ae | refs/heads/master | 2023-08-28T13:33:43.536143 | 2023-08-22T19:20:18 | 2023-08-22T19:20:18 | 231,076,826 | 377 | 91 | Apache-2.0 | 2023-09-05T20:14:14 | 2019-12-31T11:17:44 | Python | UTF-8 | Python | false | false | 2,944 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"g.navas.palencia@gmail.com"
] | g.navas.palencia@gmail.com |
950d136fa6018bbecb983c4d6bf73ed300ff096b | 1e6b88c38c83af9a74cb16b67faa774b3118ed6c | /service/WatchDogTimer.py | 751f309720139e80a9cf0b60321b323ba6904d38 | [
"Apache-2.0"
] | permissive | lecagnois/pyrobotlab | 16b087568c86cc31ce5d9ae9c7233e4546a43583 | 2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9 | refs/heads/master | 2023-02-20T00:16:53.521295 | 2021-05-17T14:18:59 | 2021-05-17T14:18:59 | 79,541,726 | 1 | 0 | null | 2017-01-20T08:40:55 | 2017-01-20T08:40:55 | null | UTF-8 | Python | false | false | 819 | py | # FIXME - "default" checkPoint() - e.g. watchdog.checkPoint() should work
# FIXME - re-running the script makes multiple timers & multiple corrective actions
# FIXME - make start() & stop() to enable and disable all watchdogtimers
# start services
Runtime.start("joy", "Joystick")
Runtime.start("gui","SwingGui")
Runtim... | [
"noreply@github.com"
] | lecagnois.noreply@github.com |
bacc5e84f327b3d2c3da9d8f27929d145b28d10f | 0df1356adbd576c1d0b31ca5957937aacf525faa | /sixweeks/messages/apps.py | 3b77a318a96e92bc978d1c3895d107e1dd608949 | [
"MIT"
] | permissive | Chrysus/sixweeks | 16710c46c77e1d94f65730332a9c63348a72176a | 4550a63aa74a621c236baa3c01136b94b944e7e9 | refs/heads/master | 2021-06-17T20:45:55.688432 | 2021-02-11T00:28:49 | 2021-02-11T00:28:49 | 154,222,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | # -*- coding: utf-8 -*-
#
# Copyright 2017 Chrysus
# Licensed under MIT (https://github.com/Chrysus/sixweeks/blob/master/LICENSE)
from __future__ import unicode_literals
from django.apps import AppConfig
class MessagesConfig(AppConfig):
name = 'messages'
| [
"root@debian"
] | root@debian |
1af4b370814d4acc14bb16c5ebae80aa0e0fc161 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/show_playbook_topology_request.py | 033bfa4c0b31644a50094067f3e56a426752569c | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,811 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowPlaybookTopologyRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
19ffc4daf6f3590a4e8c2149dd5ac0c62cf74e29 | 5ff6993f0f3bd44541a111ef41f19589f6880e09 | /common/tests/test_multiprocess.py | dcda2836ef62cfa3775ba424cf4474d41e1f8b04 | [
"MIT"
] | permissive | Sirui-Xu/policy-refactorization | 329e59d7d3037ce000e60f18866eb1f7313daa96 | c626c598d735d4c08c2c0553da34196b3fba0b6d | refs/heads/main | 2023-01-12T17:18:29.105048 | 2020-11-11T06:19:59 | 2020-11-11T06:19:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | """Test multi-process dataloader
Notes:
1. Numpy random generator in each worker is same, and even does not affect the generator of the main process.
2. When num_workers > 1, h5py does not work properly.
References:
1. https://pytorch.org/docs/stable/notes/faq.html#dataloader-workers-random-seed
2. ht... | [
"tongzhou.mu@gmail.com"
] | tongzhou.mu@gmail.com |
6c1fce0f080f88f874b42438ef6701c0ed2e8e2f | 63c5306b91db445016059a7f0c7ac167bf231d3c | /caffe2/python/operator_test/normalize_op_test.py | 6f399dbcb0777782f8712adffd52503979f09e75 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Fletcher3003/caffe2 | b57ad712993b7c50d16b8f0eedc2e5587bc89e0e | 731096902a090b49612b02cc5a1301c81bf93943 | refs/heads/master | 2020-04-15T18:10:11.514190 | 2019-01-09T17:10:14 | 2019-01-09T17:10:14 | 164,903,847 | 0 | 0 | Apache-2.0 | 2019-01-09T17:02:59 | 2019-01-09T17:02:53 | Shell | UTF-8 | Python | false | false | 1,619 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import functools
import numpy as np
from hypothesis import given
import hypothesis.strategies as st
from caffe2.python import core
import caffe2.python.hypothesis_test_util as hu
class TestNormalizeOp(hu.Hyp... | [
"charliehouseago@gmail.com"
] | charliehouseago@gmail.com |
e6f894e0c15bdea70ecb1300c1f04eecdff2d00d | f89d70fc8bf370ef4e2aa54c7ee0de3b4a053624 | /troposphere/evidently.py | 182d67f67407b5f6ba7d9557d7fc1d8eda32e2b3 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yks0000/troposphere | a7622bff01c31f10dcb296d2ca353144e1d7f793 | 9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4 | refs/heads/main | 2022-04-28T03:51:42.770881 | 2022-04-15T15:15:01 | 2022-04-15T15:15:01 | 482,753,190 | 1 | 0 | BSD-2-Clause | 2022-04-18T07:20:42 | 2022-04-18T07:20:42 | null | UTF-8 | Python | false | false | 6,661 | py | # Copyright (c) 2012-2022, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
from . import AWSObject, AWSProperty, PropsDictType, Tags
from .validators import boolean, double, integer
class MetricGoalObject(AWSProperty):
... | [
"mark@peek.org"
] | mark@peek.org |
ec726ad05ae6862c12730e2c2f8db81c5870a720 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_039/ch20_2019_03_12_22_36_49_218115.py | c94c386d9bfa81033dc2101832f95eb9bea28726 | [] | 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 | 123 | py | a=input("qual é o seu nome?")
if a=="Chris":
print("Todo mundo odeia o Chris")
else:
print("Olá, {0}".format(a)) | [
"you@example.com"
] | you@example.com |
d2e706533dbfc3aff8dd232ac72dd4a0cb46431a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/2101.py | 77ce03570bc579cf3d8ac8c5451c8e9fa9ba2ce4 | [] | 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 | 548 | py | #!/usr/bin/python
def min_inv(smax, si):
standing = 0
needed = 0
smax = int(smax)
p = []
for i in xrange(len(si)):
p.append(int(si[i]))
for i in xrange(len(p)):
if i > standing and p[i] != 0:
needed += i - standing
standing += i - standing
standing += p[i]
return needed
#main
cases = raw_in... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f18551913fde512ed8d59c495e30360dd339e308 | 75402b6c851a12ae41359fdd83e89d2160c308af | /tests/inventory/test_windows_build_parser.py | cc4e74488c31dead7176c36c081a9501bc2c5a23 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-commercial-license"
] | permissive | neocode12/zentral | 7b05aeeb823a5a3d7d268cc2b01e0bf1a5e4be71 | 9ecc8d8334148627fcccaa875f100adacd7a018b | refs/heads/main | 2023-04-09T12:06:45.355559 | 2023-03-15T14:05:05 | 2023-03-15T14:05:05 | 327,651,549 | 0 | 0 | Apache-2.0 | 2021-01-07T15:30:00 | 2021-01-07T15:30:00 | null | UTF-8 | Python | false | false | 2,467 | py | from unittest import TestCase
from zentral.contrib.inventory.conf import windows_version_from_build, cleanup_windows_os_version, os_version_display
class WindowsBuildTestCase(TestCase):
def test_from_build_bad_build_number(self):
with self.assertRaises(ValueError) as cm:
windows_version_from_b... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
68b2e3b77e0d8fe3c432d065e0bee795dab77278 | 7b897a75f16756dcb8d23c556ec6a08b55c0586a | /namvezvez/unicode.py | 59e020e5cd93a15ad209f851021bb0b890f2ad30 | [] | no_license | simoncozens/namvezvez | 4c7cf7f0e8dc16d73bb6b082b4cbe21a2420f54d | 14c97467925091840e9e2e769d080b94cf10afab | refs/heads/master | 2021-04-08T16:10:29.411869 | 2020-08-23T08:05:03 | 2020-08-23T08:05:03 | 248,788,578 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | def is_default_ignorable(ch):
return (ch in [0x00AD, 0x034F, 0x061C, 0xFEFF] or
ch >= 0x17B4 and ch <= 0x17B5 or
ch >= 0x180B and ch <= 0x180E or
ch >= 0x200B and ch <= 0x200F or
ch >= 0x202A and ch <= 0x202E or
ch >= 0x2060 and ch <= 0x206F or
ch >= 0xFE00 and ch <= 0xFE0F or
ch >= 0xFFF0 and ... | [
"simon@simon-cozens.org"
] | simon@simon-cozens.org |
4c5c1119f71b81e99a9a44ccb8ca7e2ce1c5af69 | 8d15427c02f7ea265985159c7bf67df2f9731991 | /HmVideoCode/hm_python_basic/10_面向对象特性/hm_17___new__方法.py | 346f44fb6a2136cd1f757282a19a87e93f10eaf8 | [] | no_license | yolotester/learngit | aa862b7f0ecbeb5c056b8ca576c8a00efc55f62c | d885b520757097c1d984d1cdda5d242ee5c6a5d6 | refs/heads/master | 2023-04-07T19:48:23.153638 | 2023-03-17T02:03:05 | 2023-03-17T02:03:05 | 248,145,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | class MusicPlayer(object):
def __new__(cls, *args, **kwargs):
# 创建对象时,new方法会被自动调用
print("创建对象,分配空间")
# 为对象分配空间,该方法为静态方法,需要主动传递参数
instance = super().__new__(cls)
# 返回对象的引用
return instance
def __init__(self):
print("播放器初始化")
# 创建一个播放器对象
wangyiyun = M... | [
"yolo@ying31.com"
] | yolo@ying31.com |
3f52f4b77a9478006bd44676ae6b03042f56c2fe | 3c0636c7e7da75dcfb8b491a83f7cc2070f15c5a | /HearthStone2/test/run_local_client.py | 16ee3bfe4035a2c3e945da601f9530f6d16c4c0d | [
"MIT"
] | permissive | riteshkaushik1/MiniGames | 5ee9adf877f97bc3cca5a41aa393e071a28c04e3 | 53892ae461031b9fa25a463401010d12db53c6c1 | refs/heads/master | 2023-04-06T22:40:36.115842 | 2020-02-15T10:03:53 | 2020-02-15T10:03:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
import sys
import os
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
from MyHearthStone.network.local_client import create_client, start_client
from MyHearthStone.utils.message import setup_logging
__author__ = 'fyabc'
def main():
import random
se... | [
"fyabc@mail.ustc.edu.cn"
] | fyabc@mail.ustc.edu.cn |
de1c3ffd8d467f5ed0565ac24454ea8346367734 | ab8969970cbbf829310146da21f3486474cc3335 | /taxi/hailo.py | 48d9420738c57646cee512f0c9c40898b73843de | [] | no_license | saromanov/taxi-analytics | e03155b8c87b755d13a2de9ac33009a4d1aa8250 | b9e69af9608ea4f3ba093fcda7f967886fdaffa3 | refs/heads/master | 2021-01-10T04:03:54.862162 | 2016-04-02T19:36:24 | 2016-04-02T19:36:24 | 55,309,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | import requests
import geopy
import time
from geopy.geocoders import Nominatim
URL = 'https://api.hailoapp.com'
class Hailo:
def __init__(self, token):
self.token = token
def auth(self):
return requests.get(URL + '/status/up', headers={'Authorization': "token " + self.token})
def near(self, longitude, latit... | [
"xxsmotur@gmail.com"
] | xxsmotur@gmail.com |
71df4a8073dae66bf232d7641b077ec5288e46a7 | eb38517d24bb32cd8a33206d4588c3e80f51132d | /l_flask/flask_sqlalchemy_ex/env/lib/python3.6/bisect.py | d515e35dcf13ac352db5f04ee959c53712530143 | [] | no_license | Fernando23296/l_proy | 2c6e209892112ceafa00c3584883880c856b6983 | b7fdf99b9bd833ca1c957d106b2429cbd378abd3 | refs/heads/master | 2020-04-01T18:01:41.333302 | 2018-12-04T23:45:53 | 2018-12-04T23:45:53 | 153,466,681 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | /Users/brunosilva/anaconda3/lib/python3.6/bisect.py | [
"fernando23296@gmail.com"
] | fernando23296@gmail.com |
1020b788c01f9710afa078144294fd7535958075 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/02_preprocessing/combine82/789-tideGauge.py | bf5c53bd27eef666ac6934fe02bcf5686e66a6be | [] | 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 | 2,117 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 16 16:11:00 2020
--------------------------------------------
Load predictors for each TG and combine them
--------------------------------------------
@author: Michael Tadesse
"""
import os
import pandas as pd
#define directories
dir_in = '/lustre/fs0/home/mtadesse/er... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
a4be85c5c526e55222b67007c1c1ac0899430ed7 | ec46c70a721f16031a784f54f522656fb43dfc9f | /venv/lib/python3.6/fnmatch.py | c71ef38f452857883fee3375f091310413d26e81 | [] | no_license | kardelen-karatas/django-importXML | c6a62942b740697d3647ec0bc1ed9c078e751159 | b169966627bd54b684aaedd5fd6c0d7be551b973 | refs/heads/master | 2022-12-10T00:38:40.578278 | 2020-04-15T10:34:36 | 2020-04-15T10:34:36 | 125,032,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | /home/kardelen/.pyenv/versions/3.6.3/lib/python3.6/fnmatch.py | [
"kardelen.karatas@gmail.com"
] | kardelen.karatas@gmail.com |
be401dff18e8707ffc89959fed710440f6b6e1c1 | db1a92b1deb01313e426c525a84da59e84e1b4e4 | /online_inference/make_request.py | 720d1c34376603d6124fe072acad84adbf9f6936 | [] | no_license | made-ml-in-prod-2021/rodionlatypov | eb1d89a3f743e99d90e32405dc2a3ee2ae3c7616 | cbd7a980485ad42b469635fe9ccb9e2d75602db3 | refs/heads/main | 2023-06-05T18:43:23.656339 | 2021-06-27T13:25:44 | 2021-06-27T13:25:44 | 355,669,726 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | import json
import requests
import pandas as pd
from entities import Request
DATA_PATH = 'data/data.csv'
if __name__ == '__main__':
data = pd.read_csv(DATA_PATH).drop('target', axis=1)
request_data = data.to_dict(orient='records')
response = requests.post(
'http://0.0.0.0:8000/pre... | [
"noreply@github.com"
] | made-ml-in-prod-2021.noreply@github.com |
ccb2822a5fe36bb3f3418d14654494a9229b7079 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03555/s755897877.py | 1e5ecb5ef9de70dc1a07369f9a1e895ca6ec074e | [] | 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 | 156 | py | C1=input()
C2=input()
C1new="".join(list(reversed(C1)))
C2new="".join(list(reversed(C2)))
if (C1==C2new)&(C2==C1new):
print("YES")
else:
print("NO") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f1ce271a185c3285b8e14e090809405857f85e8c | e506d3084d85b556afa49cb2edd969f5659719f2 | /loans.py | ab9fc833f9b208cf1b1de0e997c913e34597de75 | [] | no_license | zweed4u/LoanCalculator | 03d9265e6bd41c76e9a08ffe54360360393050cb | a7980bc7f49180bf8cba71616199d12fd3d2727a | refs/heads/master | 2021-01-25T13:42:04.862121 | 2018-03-02T17:22:31 | 2018-03-02T17:23:03 | 123,608,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | #!/usr/bin/python3
class Loan:
def __init__(self, loan_amount, years_to_pay_off, interest,
initial_payment=None):
self.amount_loaned = loan_amount
if initial_payment:
self.amount_loaned -= initial_payment
self.years = years_to_pay_off
self.interest = in... | [
"zdw7287@rit.edu"
] | zdw7287@rit.edu |
354b69b89bd947d50e885c544f5c863570e7fa91 | bc441bb06b8948288f110af63feda4e798f30225 | /flowable_service_sdk/api/process_definition_version/process_definition_version_client.py | cff50f47cb515f387f71dd62f2e6e4f85ef8ba7c | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,899 | py | # -*- coding: utf-8 -*-
import os
import sys
import flowable_service_sdk.api.process_definition_version.delete_pb2
import google.protobuf.empty_pb2
import flowable_service_sdk.api.process_definition_version.get_pb2
import flowable_service_sdk.api.process_definition_version.list_pb2
import flowable_service_sdk.api... | [
"service@easyops.cn"
] | service@easyops.cn |
8fd6a5f596f826998b7552957d4d21c43fb1dc0e | e0db9c0559d0cd362a0e3e7b96fd0c1c0fbc68e4 | /python_test1-5.py | ea246c7ed8efbfefeafba641bc41a27cbdeb8e2a | [] | no_license | BrettMcGregor/w3resource | ba338e91d24db773de6db6aec8c776a7df003ba0 | cea43e3f471edff1ca0843eeab1fa299f491badf | refs/heads/master | 2020-03-13T04:11:10.194964 | 2018-05-22T03:21:13 | 2018-05-22T03:21:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | # Define a class which has at least two methods:
# getString: to get a string from console input
# printString: to print the string in upper case.
# Also please include simple test function to test the class methods.
# Hints:
# Use __init__ method to construct some parameters
class Test5:
"""
"""
def __ini... | [
"brett.w.mcgregor@gmail.com"
] | brett.w.mcgregor@gmail.com |
b806426472f132d9b3fe7f423e93afc9c4fc20c5 | 189d79c0e0fcdce192a6034306416fd492202501 | /LeetCode/Python/334 Increasing Triplet Subsequence.py | cfd8207e918a43a47dbac6ccbfb6c7090038915b | [] | no_license | digant0705/Algorithm | 294fbc84eaa4b6e0ea864924b71c4773c2e1c0c6 | 01f04bcc5e8f55014973d4eef069245f3f663eb9 | refs/heads/master | 2021-07-25T16:44:34.366974 | 2021-06-05T23:37:17 | 2021-06-05T23:37:17 | 251,144,249 | 0 | 0 | null | 2020-03-29T22:05:29 | 2020-03-29T22:05:28 | null | UTF-8 | Python | false | false | 1,944 | py | # -*- coding: utf-8 -*-
'''
Given an unsorted array return whether an increasing subsequence of length 3
exists or not in the array.
Formally the function should:
Return true if there exists i, j, k
such that arr[i] < arr[j] < arr[k] given 0 ≤ i < j < k ≤ n-1 else return false.
Your algorithm should run in O(n) time ... | [
"shiyanhui66@gmail.com"
] | shiyanhui66@gmail.com |
1917b4472570b4d60703a56e01d25380aae266a3 | caaf56727714f8c03be38710bc7d0434c3ec5b11 | /homeassistant/components/metoffice/__init__.py | 8a68646240a41283ed15d0b06f5a83c997833b51 | [
"Apache-2.0"
] | permissive | tchellomello/home-assistant | c8db86880619d7467901fd145f27e0f2f1a79acc | ed4ab403deaed9e8c95e0db728477fcb012bf4fa | refs/heads/dev | 2023-01-27T23:48:17.550374 | 2020-09-18T01:18:55 | 2020-09-18T01:18:55 | 62,690,461 | 8 | 1 | Apache-2.0 | 2023-01-13T06:02:03 | 2016-07-06T04:13:49 | Python | UTF-8 | Python | false | false | 2,524 | py | """The Met Office integration."""
import asyncio
import logging
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME
from homeassistant.core import HomeAssistant
from homeassistant.exceptions import ConfigEntryNotReady
from homeass... | [
"noreply@github.com"
] | tchellomello.noreply@github.com |
64e70c3757c92ad992a84dc0031b43b3bd8ffeb1 | db47db0f88c651bac5d3670be8f19b46a90bc0ee | /web/models/task.py | 8dd8221b118367056a7190134f3ff2a4f4df7936 | [] | no_license | tongsong91/neuroscout | 7ce1ef0cd22a2d1723d195fe5b5084fe93a19715 | 5314630d41f91c060160044f32aecc0661f2de8e | refs/heads/master | 2021-01-01T19:37:09.405482 | 2017-07-27T23:53:59 | 2017-07-27T23:53:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | from database import db
from sqlalchemy.dialects.postgresql import JSONB
from sqlalchemy.ext.hybrid import hybrid_property
class Task(db.Model):
""" A task in a dataset. Usually associated with various runs. """
__table_args__ = (
db.UniqueConstraint('dataset_id', 'name'),
)
id = db.Column(db.I... | [
"delavega@utexas.edu"
] | delavega@utexas.edu |
438dc60d8b1aa827b63280b96ddb657eacedc5c3 | 40b42ccf2b6959d6fce74509201781be96f04475 | /mmocr/models/textdet/losses/textsnake_loss.py | d36abb561c3fb4ce9e802a7d66535bd1d7b9956c | [
"Apache-2.0"
] | permissive | xdxie/WordArt | 2f1414d8e4edaa89333353d0b28e5096e1f87263 | 89bf8a218881b250d0ead7a0287526c69586c92a | refs/heads/main | 2023-05-23T02:04:22.185386 | 2023-03-06T11:51:43 | 2023-03-06T11:51:43 | 515,485,694 | 106 | 12 | null | null | null | null | UTF-8 | Python | false | false | 7,876 | py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
import torch.nn.functional as F
from mmdet.core import BitmapMasks
from torch import nn
from mmocr.models.builder import LOSSES
from mmocr.utils import check_argument
@LOSSES.register_module()
class TextSnakeLoss(nn.Module):
"""The class for implementi... | [
"xudongxie77@gmail.com"
] | xudongxie77@gmail.com |
01af0a32e81eabf3bbc4dbb19adb16b32a76bda3 | 5c099927aedc6fdbc515f40ff543c65b3bf4ec67 | /algorithms/decode-ways/src/Solution.py | 567c1c90b0a785e278be91de5e5945587664dbec | [] | no_license | bingzhong-project/leetcode | 7a99cb6af1adfbd9bb1996a7f66a65679053c478 | ba82e7d94840b3fec272e4c5f82e3a2cfe4b0505 | refs/heads/master | 2020-04-15T09:27:33.979519 | 2020-03-10T03:43:07 | 2020-03-10T03:43:07 | 164,550,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | class Solution:
def numDecodings(self, s: 'str') -> 'int':
if len(s) == 0:
return 1
if s[0] == '0':
return 0
dp = [0 for _ in range(len(s) + 1)]
dp[0] = 1
dp[1] = 1
for i in range(1, len(s)):
cur = int(s[i])
pre = int(s... | [
"zhongyongbin@foxmail.com"
] | zhongyongbin@foxmail.com |
cbad8e3097b9eb6cbb88b8d918b088ddc6e65dae | 488301478145235716285b15d987aad9c0560765 | /utils/__init__.py | 9a9875bcbe120c63546bd143c228cca112b9add9 | [] | no_license | wenxuanliu/reinforcement-learning-an-introduction | ae6ce2717d5e1fdd94efb0a19ceacc59c809b93c | 6f4cc61a9c180c2d1cc324a89b1f67b6133aae0a | refs/heads/master | 2021-06-10T14:30:03.822391 | 2016-11-07T06:26:37 | 2016-11-07T06:26:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | #######################################################################
# Copyright (C) 2016 Shangtong Zhang(zhangshangtong.cpp@gmail.com) #
# Permission given to modify the code as long as you keep this #
# declaration at the top #
################################... | [
"zhangshangtong.cpp@icloud.com"
] | zhangshangtong.cpp@icloud.com |
eec51caff519b74759f7b2ce8757fa29c421d745 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/217/30201/submittedfiles/testes.py | 1ff2f875a2255fcd5c6104493abef03a9de9bf42 | [] | 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 | 283 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
a=float(input('digite um valor a:'))
b=float(input('digite um valor b:'))
c=float(input('digite um valor c:'))
if a!=b and a!=c and b!=c:
print('diferentes')
elif a==b and b==c:
print('iguais')
else:
print('2 iguais')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2ba6340f4327814609985d7e689dfcecf15a4d3f | 3e358fa6f824e3923878c2200ffa685948281824 | /FlightPlannerTask/FlightPlanner/AddMeasureToolDlg.py | 59350d2cae68c79a2230e6f62ba47b6ad1bee564 | [] | no_license | developer124320/FlightPO | 28825a4c2c0b2c4d9095296e785f0123eb5d7560 | a5f4c583d01104d7c379e7cf677b898f407ab565 | refs/heads/master | 2021-06-16T16:55:27.203361 | 2017-04-10T13:14:39 | 2017-04-10T13:14:39 | 87,812,061 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,059 | py | '''
Created on 25 Jan 2015
@author: Administrator
'''
from FlightPlanner.ui_QgsMeasureLine import Ui_MeasureDialog
from qgis.core import QgsDistanceArea, QGis
from qgis.gui import QgsMapTool, QgsRubberBand
# from PyQt4.QtCore import Qt, QObject
from PyQt4.QtGui import QDialog, QFont
from PyQt4.QtCore import ... | [
"kwangyingjin@outlook.com"
] | kwangyingjin@outlook.com |
77ff57c8cb6c148a0af99fd50a19f6fca5257419 | 017032b3ea86f938925c33858802b2fb5cb0832f | /instagram/member/admin.py | 3ae78eb097f6ef2223dd3b75382719f1e6f687e6 | [] | no_license | Fastcampus-WPS-6th/Instagram | 664d9c9fb2ac1a76381bbeece47f791759240a2c | 2b859b3b27dab25e59097b17b9f3940fadb5deeb | refs/heads/master | 2022-12-16T00:55:45.638303 | 2017-11-14T07:53:04 | 2017-11-14T07:53:04 | 106,781,002 | 2 | 2 | null | 2022-12-08T00:37:33 | 2017-10-13T05:19:17 | Python | UTF-8 | Python | false | false | 819 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from .forms import SignupForm
from .models import User, Relation
class RelationInline(admin.TabularInline):
model = Relation
fk_name = 'from_user'
extra = 1
class UserAdmin(BaseUserAdmin):
fieldsets = ... | [
"dev@azelf.com"
] | dev@azelf.com |
2e769d9a7430f00946c7fae209753981d1d90db4 | b7384c04d957043db234322fc2806ac437939777 | /examples/03-exceptions/example.py | 66736949a038fbbdac9691a47f848379cd49cddf | [
"MIT"
] | permissive | dlmiddlecote/kopf | d088f28b4b7316504814207baa2150e53ae0b2a1 | 49f6e5aa2cb642e5fa43394e3470b5b06406e1f2 | refs/heads/master | 2020-05-30T17:34:59.996586 | 2019-08-12T07:38:22 | 2019-08-12T07:38:22 | 189,877,678 | 0 | 0 | MIT | 2019-07-14T14:22:25 | 2019-06-02T17:51:20 | Python | UTF-8 | Python | false | false | 436 | py | import time
import kopf
class MyException(Exception):
pass
@kopf.on.create('zalando.org', 'v1', 'kopfexamples')
def create_fn(retry, **kwargs):
time.sleep(2) # for different timestamps of the events
if not retry:
raise kopf.TemporaryError("First failure.", delay=10)
elif retry == 1:
... | [
"sergey.vasilyev@zalando.de"
] | sergey.vasilyev@zalando.de |
d0b5192b51689ccc8a57628dc86747124a8a714f | 5e45ba79976ba805f6744f0bcb4ddfbde3e0a7a4 | /alibi_detect/cd/__init__.py | 75b0dbc06c56a5faf04180e897839633d24ee705 | [
"Apache-2.0"
] | permissive | SeldonIO/alibi-detect | e3293baa0603acace6f79bfb14953cf953943b10 | 4a1b4f74a8590117965421e86c2295bff0f33e89 | refs/heads/master | 2023-08-25T05:47:14.038826 | 2023-08-08T14:12:47 | 2023-08-08T14:12:47 | 213,390,927 | 1,922 | 195 | Apache-2.0 | 2023-09-12T07:07:13 | 2019-10-07T13:29:13 | Python | UTF-8 | Python | false | false | 1,007 | py | from .chisquare import ChiSquareDrift
from .classifier import ClassifierDrift
from .ks import KSDrift
from .learned_kernel import LearnedKernelDrift
from .lsdd import LSDDDrift
from .lsdd_online import LSDDDriftOnline
from .spot_the_diff import SpotTheDiffDrift
from .mmd import MMDDrift
from .mmd_online import MMDDrift... | [
"noreply@github.com"
] | SeldonIO.noreply@github.com |
5f0106ea78b159d023efceddb6b42fd96882e73d | d2b8ca797fdc42dbc68179bcd2c986da895d1f1a | /postcodedata/at.py | a6be8a9472c361ad03228ff71738aab64fd7d0f5 | [] | no_license | teedee22/coronavirushelpers | d2b0de4153700e141c8f137050a3adbe399cacfd | c564a9512ba5dac527f95743017b534c2cdb8dc9 | refs/heads/master | 2022-12-13T22:27:19.381460 | 2020-03-14T22:48:53 | 2020-03-14T22:48:53 | 247,365,255 | 0 | 0 | null | 2022-12-08T03:48:24 | 2020-03-14T22:49:12 | Python | UTF-8 | Python | false | false | 1,106 | py | """
functions handling airtable api read interaction
"""
from airtable import Airtable
import os
def connectToAirtable(table, viewName):
airtable = airtable = Airtable(
os.environ["AIRTABLE_BASE_KEY"],
table,
api_key=os.environ["AIRTABLE_API_KEY"],
)
return airtable.get_all(view=v... | [
"tdudleyoffice@gmail.com"
] | tdudleyoffice@gmail.com |
3336ad24710bcae215884f4d2dd944c806b43b6d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02233/s624301893.py | de416b60cd80468b5f0342d9f62edbe68ef05db4 | [] | 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 | 220 | py | # -*- coding: utf-8 -*-
def main(n):
lst = [1, 1]
for i in range(2, n + 1):
lst.append(lst[i - 2] + lst[i - 1])
return lst[n]
if __name__ == '__main__':
n = int(input())
print(main(n)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ec7226c1a155114d24b2f63adc24dce7e7712b7c | 3c9d24f727a31a9dc8ae43e2e38e14b4a7cfded6 | /0x16-api_advanced/100-count.py | 7aa7e44fbf25841f34b0c6b32f613c7693c8aee4 | [] | no_license | mlgomez0/holberton-system_engineering-devops | d2fd8e0230d9d95caeab73fc04e8dc3b9e1a4edc | 13e7f16d2ca0fcadfd4653c6b8d68318d63fa1c9 | refs/heads/master | 2020-07-24T07:36:21.306179 | 2020-05-27T17:46:35 | 2020-05-27T17:46:35 | 207,849,265 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | #!/usr/bin/python3
"""recursive function that queries the Reddit API, parses
the title of all hot articles, and prints a sorted
count of given keywords (case-insensitive,
delimited by spacesrecursive) """
import requests
def count_words(subreddit, word_list, v_aft=''):
"""uses get request to reddit url ... | [
"mlgomez230@hotmail.com"
] | mlgomez230@hotmail.com |
975152abb9425f6fe803d8525558da306e685bd8 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/kusto/azure-mgmt-kusto/generated_samples/kusto_managed_private_endpoints_update.py | 7bb5ad3289128204258c506075f295fda5361fb7 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 2,061 | 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"
] | openapi-env-test.noreply@github.com |
dc7c7d41ffcdcac72632fda3a89651d7f390f2c6 | 3010d1c95f5905208116687abc413df365bf9bfc | /orchestrator/src/main/resources/celery/app/cosmo/cloudify/tosca/artifacts/plugin/worker_installer/remote/events.py | 4b71b0c7dfc446150d2cb6012e2059ea8afb77d3 | [] | no_license | victorkeophila/cosmo-manager | 40ea451371c5675a578fb95edfa06ebd1854d080 | 4ff0c8620d98aed3156db06d583b62b94ea5bb82 | refs/heads/master | 2020-12-25T14:13:43.118564 | 2013-08-26T14:17:48 | 2013-08-26T14:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | #/*******************************************************************************
# * Copyright (c) 2013 GigaSpaces Technologies Ltd. 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... | [
"idan@gigaspaces.com"
] | idan@gigaspaces.com |
fc019ece73787bda458f09ff23208d2962e3924b | a8062308fb3bf6c8952257504a50c3e97d801294 | /problems/N2064_Minimized_Maximum_Of_Products_Distributed_To_Any_Store.py | 75504fabd00b265422375ee642d3de4490d3c343 | [] | no_license | wan-catherine/Leetcode | 650d697a873ad23c0b64d08ad525bf9fcdb62b1b | 238995bd23c8a6c40c6035890e94baa2473d4bbc | refs/heads/master | 2023-09-01T00:56:27.677230 | 2023-08-31T00:49:31 | 2023-08-31T00:49:31 | 143,770,000 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | import heapq
import math
from typing import List
class Solution:
def minimizedMaximum(self, n: int, quantities: List[int]) -> int:
m = len(quantities)
maximum = max(quantities)
if m == n:
return maximum
if sum(quantities) < n:
return 1
def check(num)... | [
"rarry1988528@126.com"
] | rarry1988528@126.com |
93d10b760f7dfd8aaa0f8ae20ac8b85cbf88535e | ef99429a786f7bf3c10100eebd98ccabe24fa8b0 | /dayu_widgets/sequence_file.py | 0215266ef149b763716d6babb76a1e71ad50b773 | [
"MIT"
] | permissive | cuckon/dayu_widgets | 97f939163e57a2a1f44c5ad961c8113fca37eba4 | e4e331a030675397f5b7f8f29b3afa7d2d5f8ec8 | refs/heads/master | 2021-05-20T19:02:48.456533 | 2020-05-15T14:38:28 | 2020-05-15T14:38:28 | 252,382,795 | 2 | 0 | MIT | 2020-05-15T14:38:29 | 2020-04-02T07:16:39 | null | UTF-8 | Python | false | false | 4,107 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###################################################################
# Author: Mu yanru
# Date : 2019.2
# Email : muyanru345@163.com
###################################################################
import functools
from dayu_path import DayuPath
from dayu_widgets.check... | [
"muyanru@phenom-films.com"
] | muyanru@phenom-films.com |
d46c35b79a6551d2a9f8d59b1dd57c3cb91f7d45 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/signalrservice/v20210401preview/signal_r_private_endpoint_connection.py | 487834a5aa205f4a320caf7164b300404059cad3 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 13,380 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
85ebbe589e290550d4d119b7b8adf1b5efbe83e7 | d4432b0c95e5a25c489f825ba0f44e0ecd958669 | /Different/random_order.py | 3dd7210ce9585cbe1d18673b441831b1d030f7d4 | [] | no_license | romanannaev/python | 1c250c425224ab824492e4893edf786e35b14369 | e2a9015bfceeac940936758f84f0dfbf67897f1d | refs/heads/master | 2021-07-05T23:39:05.480997 | 2019-11-13T10:44:00 | 2019-11-13T10:44:00 | 175,044,359 | 2 | 0 | null | 2020-09-04T20:42:14 | 2019-03-11T16:50:24 | CSS | UTF-8 | Python | false | false | 456 | py | # рандомный порядок слов ,ни разу не повторяющихся
import random
WORDS = ["КИЕВ", "МИНСК", "ЛОНДОН", "ПАРИЖ", "МОСКВА", "НЬЮ-ЙОРК", "ПЕКИН"]
print(WORDS)
words = []
while len(words) != len(WORDS):
word = random.choice(WORDS)
if word not in words:
print(word)
words.append(word)
print(words)... | [
"romanannaev1992@gmail.com"
] | romanannaev1992@gmail.com |
43fcc71d2a0dfaaf360da5d60c97a5c50bc467be | 646cadb1c72ef4a060343baf2fcbe271958b6878 | /tigerjython/RaspiSimEx/Ultrasonic1a.py | 7738963606dbcc8f97e823f6a3696ebf92dfbf06 | [] | no_license | tigerjython/tjinstall | bd75cf8e4ae27b639a13865ef1ec5710391a2938 | aab61519b5299c2ab4f423c6fc5d8ea7c7860a99 | refs/heads/master | 2021-01-17T08:53:50.386905 | 2018-01-12T06:56:28 | 2018-01-12T06:56:28 | 40,659,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | # Ultrasonic1a.py
# Events
from raspisim import *
mesh_hbar = [[200, 10], [-200, 10], [-200, -10], [200, -10]]
mesh_vbar = [[10, 200], [-10, 200], [-10, -200], [10, -200]]
RobotContext.useTarget("sprites/bar0.gif", mesh_hbar, 250, 100)
RobotContext.useTarget("sprites/bar0.gif", mesh_hbar, 250, 400)
RobotContext.useTa... | [
"support@tigerjython.com"
] | support@tigerjython.com |
f64cc33d9c612e9e66f027a9cc8b03ea377def75 | 5aeeae3405b965fc2250a788b8ad42a79801d57d | /work/190910 실습/190920 실습(Adv분할정복)/이진탐색.py | 50cbebdf6e94c64d65baef4b06830e3aac7e9b75 | [] | no_license | care9000/TIL | 18d6f8ce32519adc5616c38f8c204381e798fe35 | 68d168f658ad24ded89ccef571b2b6cfb5faa936 | refs/heads/master | 2023-01-11T21:42:43.078848 | 2020-01-21T12:35:05 | 2020-01-21T12:35:05 | 195,938,014 | 0 | 0 | null | 2023-01-07T11:36:58 | 2019-07-09T05:22:53 | Jupyter Notebook | UTF-8 | Python | false | false | 1,180 | py | import sys
sys.stdin = open('이진_input.txt')
def binarysearch(t, l, r, cnt):
global cnt_r, cnt_l, result
m = (l+r)//2
if t == A[m]:
result += 1
return
elif t > A[m]: #오른쪽 탐색
cnt_r = 1
if (cnt == 0 or cnt == 2):
l = m + 1
binarysearch(t, l, r, c... | [
"audgnsdhvkf@naver.com"
] | audgnsdhvkf@naver.com |
1c9a65c29822dde530eaa883fcfa3fac4430f141 | 817a97680e85142634c3e7c66a3e0a0e5eceaffd | /poloniex/my_bt_mlp.py | 16f361e080d558f12e062e79e01b90e7b38bee73 | [] | no_license | johndpope/algotrading | 4cca78db99af8fef0d1fc57aac3104bd0e8a895c | f2f527f85aad6cce928f1c2e9794f9217efcce93 | refs/heads/master | 2021-06-24T15:24:53.136691 | 2017-08-27T16:13:55 | 2017-08-27T16:13:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,740 | py | import numpy as np
import pandas as pd
from mikasa import BT, DataSeries
from mlp_train import get_loaded_model
from sklearn.externals import joblib
class NNBT(BT):
def __init__(self, ds, balance, model, look_back=1, scaler=None):
super(NNBT, self).__init__(ds, balance)
self.model = model
... | [
"lifanov.a.v@gmail.com"
] | lifanov.a.v@gmail.com |
13bb5656f181f95d9677a01a21f6240980153c0a | 29d9a947fc954e5d182cb2d8292f96c0d27cdde0 | /statechange/models.py | cd544d0925575a0552a390d79a356dbea115687c | [
"Apache-2.0"
] | permissive | slogan621/tscharts | 43ee950a76323a8b99a8ab88743f2e5e5a1e6f42 | 034e661c3f4739f1dc04b3aef096e6bf6cf6e8d3 | refs/heads/master | 2023-08-10T19:04:50.317820 | 2023-07-29T21:03:27 | 2023-07-29T21:03:27 | 55,322,748 | 25 | 10 | Apache-2.0 | 2023-07-08T20:32:54 | 2016-04-03T00:35:37 | Python | UTF-8 | Python | false | false | 525 | py | from __future__ import unicode_literals
from django.db import models
from patient.models import Patient
from clinicstation.models import ClinicStation
class StateChange(models.Model):
clinicstation = models.ForeignKey(ClinicStation)
patient = models.ForeignKey(Patient)
time = models.DateTimeField(auto_no... | [
"slogan621@gmail.com"
] | slogan621@gmail.com |
753ba99183b965a46d6a1f3b07405c999e01f95f | a2e638cd0c124254e67963bda62c21351881ee75 | /Python modules/as_change_exp.py | c3e8146dc1edab9b38801b33ff0f8e0bc14f0ac7 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | import ael
def change_exp(temp, trdnbr, day, *rest):
olddate = ael.date_today().add_days(3)
newdate = ael.date_today().add_days(6) #'2008-05-05'
#print olddate, newdate
i = ael.Trade[trdnbr].insaddr.clone()
i.exp_day = newdate
try:
i.commit()
return 'Success'
except:
... | [
"81222178+nenchoabsa@users.noreply.github.com"
] | 81222178+nenchoabsa@users.noreply.github.com |
4c72f85ed6b5cc4385030a789460a658f6d59737 | 745e2421cd2d110c37ec91315567678f50a7647f | /list_methods.py | 0c286469a375c1db60495f1f788e7cbfa17c3818 | [] | no_license | TetianaSob/Python-Projects | 3a5760b21029db2de1123d4aa23a614c3ba41c33 | c37528db7e8d65e903357e2cdb7fa64e46537f15 | refs/heads/main | 2023-03-19T15:30:58.800231 | 2021-03-02T16:51:56 | 2021-03-02T16:51:56 | 310,383,298 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | # methods
data = [1,2,3]
# ** append()
first_list = [1,2,3,4]
first_list.append(5)
print(first_list) # [1, 2, 3, 4, 5]
print("\n")
# ** extend
first_list = [1,2,3,4]
first_list.append([5,6,7,8])
print(first_list) # [1, 2, 3, 4, [5, 6, 7, 8]]
print("\n")
corect_list = [1,2,3,4]
corect_list.exte... | [
"noreply@github.com"
] | TetianaSob.noreply@github.com |
7de27c47111b14f54168116741805932203f8c43 | 9cc6721acb439db2e7cff8eb4dbff4b6e14040d5 | /백준/5430.py | bacb58d6dda30616d796ff7d6ddc35d53355b3b4 | [] | no_license | young31/Algorithm | 35c6ec6b6d9b192f9d0e6e6f6484f33c92100232 | bfcccfa798d031a930490efa24d9b2263bd4b984 | refs/heads/master | 2021-11-04T14:01:53.827508 | 2021-10-25T06:35:24 | 2021-10-25T06:35:24 | 196,034,851 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | from collections import deque
import sys
input = sys.stdin.readline
N = int(input())
for _ in range(N):
ops = input().strip()
n = int(input())
arr = deque(eval(input()))
direction = 0
error = False
for op in ops:
if op == 'R':
direction = 1 - direction
else:
... | [
"migael38317@gmail.com"
] | migael38317@gmail.com |
398e1a90bd5642f4d11c10ca328318d24127c0c6 | 6bce631b869a8717eed29eae186688a7fdb7f5c8 | /venv/Lib/site-packages/test/test_api_response_filing_notes.py | deac0dbc984adf622267232e330e53ae2bb22cc2 | [] | no_license | singhd3101/CS5100-Stock-Market-Prediction | 6d43bd39633dd80bb1141dc550302874a5bc0939 | 2804a6270a05155e168d0f2518bcd97f1c9bcb3e | refs/heads/master | 2020-11-26T03:56:02.613630 | 2019-12-19T02:22:13 | 2019-12-19T02:22:13 | 228,958,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | # coding: utf-8
"""
Intrinio API
Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API ... | [
"singh3101div@gmail.com"
] | singh3101div@gmail.com |
798e66885842726dd53630c155058a471c022c42 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /DpFmDxcyesPfPoFMn_10.py | 5b2b2f920361011b2c15c033bd1f0dc2adfc09e9 | [] | 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 | 2,436 | py |
def isbn13(txt):
#By splitting the tasks into multiple functions, I can treat each task one at a time.
def isbn10(txt):
l = list(txt)
below = list(reversed(range(1, 11)))
products = []
for n in range(0, 10):
try:
ln = int(l[n])
bn = int(below[n])
except V... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
8ff4bffb706d2421e80f464a52aea26088987aee | a5698f82064aade6af0f1da21f504a9ef8c9ac6e | /huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/search_programs_request.py | cd60e411172524b218a39b897c16a90b969959e4 | [
"Apache-2.0"
] | permissive | qizhidong/huaweicloud-sdk-python-v3 | 82a2046fbb7d62810984399abb2ca72b3b47fac6 | 6cdcf1da8b098427e58fc3335a387c14df7776d0 | refs/heads/master | 2023-04-06T02:58:15.175373 | 2021-03-30T10:47:29 | 2021-03-30T10:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,499 | py | # coding: utf-8
import pprint
import re
import six
class SearchProgramsRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the va... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
276275c81045b413e5410af3dcb72a89c3cd83dc | 830febeabd5f5a218bfb7bbc46c891f04b723a17 | /Problem-1.py | e3bd8be850d72fd74674fc29d1e859908ee16d02 | [] | no_license | s4git21/DFS-2 | f02d237ac896789103844496ae1e8508fa576b2c | 3954262ed86d84562a84c809c2e18407fce4f167 | refs/heads/master | 2023-06-03T03:43:38.127262 | 2021-06-29T01:22:37 | 2021-06-29T01:22:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | """
Approach: DFS
TC: O(m*n)
SC: O(min(m,n))
"""
class Solution:
# approach dfs
def __init__(self):
self.m = 0
self.n = 0
def numIslands(self, grid: List[List[str]]) -> int:
self.m = len(grid)
self.n = len(grid[0])
count = 0
for r, row in enumerate(grid):
... | [
"syed.hope@gmail.com"
] | syed.hope@gmail.com |
546f2426050dd245cc48132d27e0875f2abd26d9 | 4664328482163fd927603d66f47209b28471cf0f | /venv/lib/python3.7/site-packages/patoolib/programs/arc.py | cce9679e76df576b2836ff21c3a1fd51e2d79009 | [
"MIT"
] | permissive | emmetaobrien/dats-validator | 08706ddab795d272391b3611cd3ba0de8c4a91a1 | fb25f97a32119c2bce4eb50dc080a93d5ee77141 | refs/heads/master | 2020-12-19T05:03:17.179117 | 2020-01-22T17:28:38 | 2020-01-22T17:28:38 | 235,626,049 | 0 | 0 | MIT | 2020-01-22T17:24:56 | 2020-01-22T17:24:56 | null | UTF-8 | Python | false | false | 1,658 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2010-2015 Bastian Kleineidam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#... | [
"giulia.ippoliti@mail.mcgill.ca"
] | giulia.ippoliti@mail.mcgill.ca |
a1ed520fe839cde5d8c0f3cef1157d6ce9586d60 | 91acc273974bf2434cbe77c0ec5757d8041fcc48 | /src/8_类与对象/0/7_调用父类方法/example4.py | bd74f01e85d072edaf9eb3e5a9b59188a3b441b8 | [] | no_license | 981377660LMT/python_cookbook | 8805d25c79c5436d373c33d3dea775dbe70ff2f4 | f488b2a63b78fb21ec171a369df786addf3e3c08 | refs/heads/master | 2023-07-07T10:30:00.774063 | 2021-08-07T03:53:14 | 2021-08-07T03:53:14 | 366,228,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | # Tricky initialization problem involving multiple inheritance.
# Does NOT use super()
class Base:
def __init__(self):
print('Base.__init__')
class A(Base):
def __init__(self):
Base.__init__(self)
print('A.__init__')
class B(Base):
def __init__(self):
Base.__... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
8eb3c733c2cf0d1c55fa242631895872cfa767a7 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Generators/MadGraphModels/python/models/2HDM_GF/vertices.py | f5cc0dfd6fac66aa8e8e9859832c41f061faffe1 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,504 | py | # This file was automatically created by FeynRules 1.7.55
# Mathematica version: 8.0 for Mac OS X x86 (64-bit) (October 6, 2011)
# Date: Wed 8 Aug 2012 14:37:00
from object_library import all_vertices, Vertex
import particles as P
import couplings as C
import lorentz as L
V_1 = Vertex(name = 'V_1',
par... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
b9a7a162fa6cb87bced46f0e1a5a8fa1327f5d67 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_2_00/brocade_mac_address_table_rpc/get_mac_address_table/input/__init__.py | 4d8c2b6bba0812017e106131192f1a1be730d148 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,105 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
f5d3bd448219aee7f58dd97aa7be932b8381a413 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part007035.py | c78a7457be95791db520d8fa08611764964570e3 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,275 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.