blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3480e923215921c85813159158d11cb1c3266241 | 72af42076bac692f9a42e0a914913e031738cc55 | /01, 특강_210705_0706/02, source/CookData(2021.01.15)/Code06-05.py | 02e7ffd300f97cb0f38c79208316d1ec8986a4e6 | [] | no_license | goareum93/Algorithm | f0ab0ee7926f89802d851c2a80f98cba08116f6c | ec68f2526b1ea2904891b929a7bbc74139a6402e | refs/heads/master | 2023-07-01T07:17:16.987779 | 2021-08-05T14:52:51 | 2021-08-05T14:52:51 | 376,908,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | def isStackEmpty() :
global SIZE, stack, top
if (top == -1) :
return True
else :
return False
SIZE = 5
stack = [ None for _ in range(SIZE) ]
top = -1
print("스택이 비었는지 여부 ==>", isStackEmpty())
| [
"goareum7@gmail.com"
] | goareum7@gmail.com |
e7f3e2452713e57c40f10d8e0d92f1f6a021a5e3 | 655050425d88874f570cab93d0613fd22abb8e06 | /superman/dataset/__init__.py | 0d5d78e309c63ed29fe0ac160d21389cc225ed51 | [
"MIT"
] | permissive | vishalbelsare/superman | 86a23566323325d459d06f6ecad6d575b76972b6 | 346fc0d590f40bfe0141630e3146ec8e7ee18be3 | refs/heads/master | 2021-06-09T13:21:07.161740 | 2020-04-14T17:17:32 | 2020-04-14T17:17:32 | 143,188,314 | 0 | 0 | MIT | 2021-04-04T18:45:24 | 2018-08-01T17:35:44 | Python | UTF-8 | Python | false | false | 157 | py | from __future__ import absolute_import
from .ds import TrajDataset, VectorDataset
from .ds_view import DatasetView, MultiDatasetView
from .metadata import *
| [
"perimosocordiae@gmail.com"
] | perimosocordiae@gmail.com |
486f719763164aae76c114ef5ed377847619037d | f95e73867e4383784d6fdd6a1c9fe06cffbfd019 | /PythonToolkit/CameraVideo/VideoObjectTracking.py | 5fa77270cb9a2b92474011d375924b1047c1764c | [] | no_license | linxiaohui/CodeLibrary | da03a9ed631d1d44b098ae393b4bd9e378ab38d3 | 96a5d22a8c442c4aec8a064ce383aba8a7559b2c | refs/heads/master | 2021-01-18T03:42:39.536939 | 2018-12-11T06:47:15 | 2018-12-11T06:47:15 | 85,795,767 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | # -*- coding: utf-8 -*-
import cv2
import os
import numpy as np
# 摄像头只能一个进程获取
camera = cv2.VideoCapture(0)
fourcc = cv2.VideoWriter_fourcc(*'XVID')
#文件的名称,格式,帧率,帧大小,是否彩色
out = cv2.VideoWriter('output.avi',fourcc,24.0,(640,480))
#VideoCapture类的get()方法不能获取摄像头帧速率的准确值(总是返回0)
#print(camera.get(cv2.CAP_PR... | [
"llinxiaohui@126.com"
] | llinxiaohui@126.com |
ecc202cf0f419b414a4822218103363ee0bb5e9a | a1c20ec292350a4c8f2164ba21715414f8a77d19 | /Udemy/PythonMegaCourse/Section 12-Databases/PythonWithDatabases/script1.py | 10d35d8e80252412da1c086f2961b0c065006f25 | [] | no_license | nowacki69/Python | 2ae621b098241a614836a50cb1102094bf8e689f | e5325562801624e43b3975d9f246af25517be55b | refs/heads/master | 2021-08-22T21:30:39.534186 | 2019-09-03T01:21:11 | 2019-09-03T01:21:11 | 168,528,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | import sqlite3
def create_table():
conn = sqlite3.connect("lite.db")
cur = conn.cursor()
cur.execute("CREATE TABLE IF NOT EXISTS tbl_store (item TEXT, quantity INTEGER, price REAL)")
conn.commit()
conn.close()
def insert(item, quantity, price):
conn = sqlite3.connect("lite.db")
cur = conn... | [
"nowacki69@gmail.com"
] | nowacki69@gmail.com |
7b6da5134be3bbf7c5b79c9dd974d501bc13dc0f | d5219cd3094e5a72efdf2ed7e321f6c586dee58f | /account_report.py | dcc6421f6374efdae4c6b8f9d1d1257e606076c1 | [] | no_license | Descomplica-Marketing/Google-Adwords | d721b178bc2384cf069103e2cc83b79d4f529c0d | 808744852455aea9b24c4bd0fc9e4b065f729e54 | refs/heads/master | 2020-06-25T04:41:45.795739 | 2019-07-30T02:43:00 | 2019-07-30T02:43:00 | 199,204,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | from googleads import adwords
from functions import get_report_df
report_query = (adwords.ReportQueryBuilder()
.Select('Date', 'AccountDescriptiveName', 'AdNetworkType1', 'AdNetworkType2', 'AveragePosition',
'Clicks', 'ConversionRate', 'Conversions', 'Cost', 'Engagements', 'Imp... | [
"marketing-dev@descomplica.com.br"
] | marketing-dev@descomplica.com.br |
ba580ba89c8fad29d726dfb35cbc4a7b1bd9b0e3 | e48f203d18b4eac537f5f69277fb497be1cec611 | /backend/mobile_25_app_dev_15680/wsgi.py | 70ed666f14facf20d2d59d70d3cb062261cc3522 | [] | no_license | crowdbotics-apps/mobile-25-app-dev-15680 | 107fea56fa665c134a51fc3ea0b642b0b582d15d | 9423eee5529d4a8a48cda334b1ac6eb2a5760838 | refs/heads/master | 2023-01-18T19:37:13.026096 | 2020-11-25T16:05:43 | 2020-11-25T16:05:43 | 315,973,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | """
WSGI config for mobile_25_app_dev_15680 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefau... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9b5d1cdf3282c3ca808fd6c68d5b75f12754cc6c | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/Autodesk/Revit/DB/Structure/__init___parts/RebarShapeConstraintAngleFromFixedDir.py | 53925f2b3e8ecc1e9cd08fd6c3cf1445ad275918 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | class RebarShapeConstraintAngleFromFixedDir(RebarShapeConstraint,IDisposable):
"""
A constraint which can be applied to a RebarShapeSegment and drives the angle
of the segment relative to a fixed direction in UV-space.
RebarShapeConstraintAngleFromFixedDir(paramId: ElementId,sign: int,direction: UV)
"""
d... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
c886e273972ecb4f7d0f52ed30b61359eaaba35b | 4f3a4c194451eae32f1ff7cf3b0db947e3892365 | /162/main.py | b3936348ba1e48aaef408bd1f16b59b4e55140f2 | [] | no_license | szhongren/leetcode | 84dd848edbfd728b344927f4f3c376b89b6a81f4 | 8cda0518440488992d7e2c70cb8555ec7b34083f | refs/heads/master | 2021-12-01T01:34:54.639508 | 2021-11-30T05:54:45 | 2021-11-30T05:54:45 | 83,624,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | """
A peak element is an element that is greater than its neighbors.
Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.
The array may contain multiple peaks, in that case return the index to any one of the peaks is fine.
You may imagine that num[-1] = num[n] = -∞.
For e... | [
"shao.zhongren@gmail.com"
] | shao.zhongren@gmail.com |
828310819742c4c59c63891d0d30da4ec07c7773 | bea0e4806236daff2a07df2f0949fe046ef76c03 | /apps/op/controllers/real/sku.py | 5b16a7fd874b0d32e199632174087a34a606d371 | [] | no_license | xutaoding/osp_autumn | 68903f7acf78d7572777a500172e2f8c09afed48 | daf260ecd5adf553490a8ac6b389a74439234b6a | refs/heads/master | 2021-01-09T21:51:51.248630 | 2015-11-23T08:20:00 | 2015-11-23T08:20:00 | 46,706,177 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,523 | py | # -*- coding: utf-8 -*-
from .. import BaseHandler
from .. import require
from voluptuous import Schema, Any
from autumn.torn.form import Form
from autumn.torn.paginator import Paginator
class SkuList(BaseHandler):
@require()
def get(self):
sql = 'select * from sku where deleted = 0 '
name =... | [
"xutao.ding@chinascopefinancial.com"
] | xutao.ding@chinascopefinancial.com |
489e2344051b765a6a26da0bf20a60620a31b678 | 887fe8fa82b592e678e90e82ea2681f6f8a23a7f | /pygrim/formulas/airy.py | ac8bdeb4724cc36ec5c0c31787b7d3e823c1ea26 | [
"MIT"
] | permissive | wbhart/fungrim | efcfa32c2466c36f852fb01a9d575add732da46a | 6febcbeee4b950bb421199706fc0c9ae729fe2e5 | refs/heads/master | 2020-08-01T23:07:46.997516 | 2019-09-26T16:32:20 | 2019-09-26T16:32:20 | 211,150,429 | 0 | 0 | null | 2019-09-26T17:57:32 | 2019-09-26T17:57:32 | null | UTF-8 | Python | false | false | 5,483 | py | # -*- coding: utf-8 -*-
from ..expr import *
def_Topic(
Title("Airy functions"),
Section("Definitions"),
Entries(
"9ac289",
"5a9d3f",
),
Section("Illustrations"),
Entries(
"b4c968",
"fa65f3",
),
Section("Differential equation"),
Entries(
"51b... | [
"fredrik.johansson@gmail.com"
] | fredrik.johansson@gmail.com |
6abc53ffc8fe957131d887d4192ae8073b48d1be | 6e41636b8fae338cc3d1cb0885ca21c17af64ded | /echo-client.py | 8707638e8dbad4b61d11bb076b8fa20bfcfbc768 | [] | no_license | Menah3m/socket_work | 89e89febafce913b904c47549cbab558fb39a1d9 | 6a9eb05be0386fc709c92dc86afa67167d007c0a | refs/heads/master | 2021-03-26T13:42:38.004924 | 2020-03-16T13:26:17 | 2020-03-16T13:26:17 | 247,708,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | # Name:echo-client
# Author:Yasu
# Time:2020/3/16
import socket
Host = '127.0.0.1'
Port = 6500
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
sock.connect((Host,Port))
sock.sendall(b'Hello World!')
data = sock.recv(1024)
print('Received!', repr(data)) | [
"568200065@qq.com"
] | 568200065@qq.com |
f3d34c28888679e66d0ab10777e49c22b3272308 | ebcbbe645d70d4f756704d3c5113ba25e8a1814c | /fabfile.py | 7cd23c5d488fb6645aa621eda37ae36c6056dd84 | [
"BSD-3-Clause"
] | permissive | abhilashsn/standup | 2ea02078c6616c88f1a8cc28508b948bf4001c30 | 998341af354ed0ddcd15b673ea7af090a7efbce6 | refs/heads/master | 2021-01-18T09:11:58.371312 | 2014-08-29T16:25:07 | 2014-08-29T16:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 355 | py | from fabric.api import env, local
env.hosts = ['localhost']
def npm_install():
"""Correctly runs npm install"""
local('cp node.json package.json')
local('npm install')
local('rm package.json')
def test():
"""Run tests with coverage"""
local('nosetests --with-coverage --cover-package=standu... | [
"rehandalal@gmail.com"
] | rehandalal@gmail.com |
b5a71f36acc625624a71208d512343d843b77b43 | 045ec3ae16fc554a05510abc3697557ebc5ce304 | /CIME/tests/test_unit_hist_utils.py | fe6d4866c34d5f7a2d90e63a11b14989b5d4d88b | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | ESMCI/cime | c09223ee9b8a463bd00741ff39f60fda7639af89 | 02fad90a379cdbd3c1106cbd63324480f0bf7a22 | refs/heads/master | 2023-08-16T07:03:22.224344 | 2023-08-03T19:47:53 | 2023-08-03T19:47:53 | 31,605,662 | 159 | 179 | NOASSERTION | 2023-09-12T18:38:42 | 2015-03-03T15:33:00 | Python | UTF-8 | Python | false | false | 1,803 | py | import io
import unittest
from unittest import mock
from CIME.hist_utils import copy_histfiles
from CIME.XML.archive import Archive
class TestHistUtils(unittest.TestCase):
@mock.patch("CIME.hist_utils.safe_copy")
def test_copy_histfiles_exclude(self, safe_copy):
case = mock.MagicMock()
case.... | [
"boutte.jason@gmail.com"
] | boutte.jason@gmail.com |
a5197aea32de8058d3e8c39cda831c551cb28f70 | 91948d5be26636f1f2b941cb933701ea626a695b | /problem201_google_triangl number.py | 8997884bbddd5865d98e2a33713e6f7f60148908 | [
"MIT"
] | permissive | loghmanb/daily-coding-problem | 4ae7dd201fde5ee1601e0acae9e9fc468dcd75c9 | b2055dded4276611e0e7f1eb088e0027f603aa7b | refs/heads/master | 2023-08-14T05:53:12.678760 | 2023-08-05T18:12:38 | 2023-08-05T18:12:38 | 212,894,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | '''
This problem was asked by Google.
You are given an array of arrays of integers, where each array corresponds to a row in a triangle of numbers.
For example, [[1], [2, 3], [1, 5, 1]] represents the triangle:
1
2 3
1 5 1
We define a path in the triangle to start at the top and go down one row at a time to an ad... | [
"loghmanb@gmail.com"
] | loghmanb@gmail.com |
6fdc84973dc21b05bd052a39b41e700fb09348f8 | 360c777a2b77be466b1cf7c8fd74d6fd04f56b55 | /nexus_auth/utils/eventlog.py | 1f7a88e78c520a5d6577a148fd8699927ab01510 | [
"MIT"
] | permissive | hreeder/nexus-auth | 790a3b2623ddf443138a4b0f0af1380dbc4db8ae | 8d51aef01647e32ba4a284f02de73a2caad7cf49 | refs/heads/master | 2021-01-10T10:08:37.190558 | 2016-02-29T12:27:21 | 2016-02-29T12:27:21 | 52,789,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | from nexus_auth import app, db
from nexus_auth.models.logging import AuditLogEntry
import requests
def log_event(origin, action, user, message, log_db=True, log_jabber=True):
if log_db:
entry = AuditLogEntry(user_id=user.uid,
area=origin.lower(),
... | [
"harry@harryreeder.co.uk"
] | harry@harryreeder.co.uk |
4e3dee2f1887cb0184fd6988050a82662ecb68dd | 0a3e24df172a206a751217e5f85b334f39983101 | /Design Pattern/sub1/abstract_factory.py | 132af56149cfd33171faadea742270d4210782f1 | [] | no_license | yeboahd24/python202 | 1f399426a1f46d72da041ab3d138c582c695462d | d785a038183e52941e0cee8eb4f6cedd3c6a35ed | refs/heads/main | 2023-05-06T04:14:19.336839 | 2021-02-10T02:53:19 | 2021-02-10T02:53:19 | 309,841,303 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | #!usr/bin/env/python3
from decimal import Decimal
class Factory(object): # acting like abstract method
def build_sequence(self):
return []
def build_number(self, string):
return Decimal(string)
class Loader(object):
def load(string, factory): # not... | [
"noreply@github.com"
] | yeboahd24.noreply@github.com |
ff22374f949580d7d69de2945038ce61fad4d099 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/336/usersdata/288/98639/submittedfiles/matriz2.py | 4a79841bb3410b607b59d2b22c904ae1e0d6c91f | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | # -*- coding: utf-8 -*-
import numpy as np
cont1=0
cont2=0
cont3=0
n=int(input('Digite um valor >=2: '))
while n<2:
n=int(input('Digite um valor >=2: '))
matriz=np.empy([n,n])
matriztrans=np.empy([2,n])
matrizultprim=np.empy([n,n])
mareizdiag=np.empy([n,n])
for i in range (0,n,1):
for j in range (0,n,1):
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
26a316bf7646387f30d2cf7bd6388f587906bc45 | ff7c392e46baa2774b305a4999d7dbbcf8a3c0b3 | /ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/set_value_command.py | 630771459bd51d47999d9c25bc5d678cf3ce8029 | [
"Apache-2.0"
] | permissive | rivamarco/alexa-apis-for-python | 83d035ba5beb5838ae977777191fa41cbe4ea112 | 62e3a9057a26003e836fa09aa12a2e1c8b62d6e0 | refs/heads/master | 2021-01-03T20:44:12.977804 | 2020-02-13T10:27:27 | 2020-02-13T10:29:24 | 240,229,385 | 2 | 0 | Apache-2.0 | 2020-02-13T10:05:45 | 2020-02-13T10:05:45 | null | UTF-8 | Python | false | false | 5,843 | py | # coding: utf-8
#
# Copyright 2019 Amazon.com, Inc. or its 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. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "lice... | [
"ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com"
] | ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com |
05448ed43b175ae1a122ed5a12db2aec2e466780 | 844501294ca37f1859b9aa0a258e6dd6b1bf2349 | /stubs/parsedatetime/pdt_locales/icu.pyi | 93e28da6e29ef5045ea2b491419e771557f51683 | [
"MIT",
"BSD-2-Clause"
] | permissive | 1ts-org/snipe | 2ac1719bc8f6b3b158c04536464f866c34051253 | ad84a629e9084f161e0fcf811dc86ba54aaf9e2b | refs/heads/master | 2021-06-04T22:32:36.038607 | 2020-03-27T05:18:36 | 2020-04-05T21:50:42 | 18,642,653 | 6 | 3 | NOASSERTION | 2019-10-08T02:02:50 | 2014-04-10T16:01:32 | Python | UTF-8 | Python | false | false | 271 | pyi | # Stubs for parsedatetime.pdt_locales.icu (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
def icu_object(mapping: Any): ...
def merge_weekdays(base_wd: Any, icu_wd: Any): ...
def get_icu(locale: Any): ...
| [
"kcr@1ts.org"
] | kcr@1ts.org |
62bfc768f22263927da02c41851d63ced55b971a | 4f74e6d72b98cd1da2190313e4a7eb9d342cc93d | /glitchtip/asgi.py | f479b235c07dce1d668cb26b81df241eac0257c0 | [
"BSD-3-Clause",
"MIT"
] | permissive | adamgogogo/glitchtip-backend | ef0c529b71d5a4632a235b40a10e0b428a1cee3a | ee71d1b732d92868189d520aa111c09b116b7b22 | refs/heads/master | 2023-02-01T23:10:53.734450 | 2020-12-19T19:32:10 | 2020-12-19T19:32:10 | 323,588,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for glitchtip project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/dev/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"david@burkesoftware.com"
] | david@burkesoftware.com |
3f77faceca54e6c9157b0bf96c05959d07e66987 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/containerregistry/v20170301/list_registry_credentials.py | e349f4d7e946280f0116c31183bbc0cfceebebcf | [
"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 | 2,812 | 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 |
2e9f9655ca4058857243f10f5a530a99417d7011 | 70f1c694bea6178c98b134b9c44952ef6693be9f | /CAAS/ReNameSRA_RelocaTEi_ReRunOnResults.py | 25ba7a64d511690710dea248e4e0a2a1f10ef582 | [] | no_license | JinfengChen/Rice_pop | 5c19c5837805e51ddb3b2ffba4baffdc59c9bfd3 | ef272bf4825b29610c94de55eb53f231fb5febc6 | refs/heads/master | 2020-04-07T04:55:36.606594 | 2018-03-02T16:52:53 | 2018-03-02T16:52:53 | 33,501,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,540 | py | #!/opt/Python/2.7.3/bin/python
import sys
from collections import defaultdict
import numpy as np
import re
import os
import argparse
import glob
import time
from Bio import SeqIO
def usage():
test="name"
message='''
python ReNameSRA_RelocaTEi.py --input Japonica_fastq
Run RelocaTEi for rice strain in Japonica... | [
"jinfeng7chen@gmail.com"
] | jinfeng7chen@gmail.com |
dc21944a63569648b8573e6a433f04b29ad4e6be | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_mac.py | 5e19d494c3783030806afa034e10968ddcfdb409 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py |
#calss header
class _MAC():
def __init__(self,):
self.name = "MAC"
self.definitions = [u'a waterproof coat (= one that does not allow rain to pass through): ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
70f2b9210119f2d5879668567b0e9e207d2bba8e | 2153a7ecfa69772797e379ff5642d52072a69b7c | /library/test/test_compiler/testcorpus/74_class_super_nested.py | a1686c98c0d832a9bd8aedfe422ee687411b168b | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"Python-2.0"
] | permissive | KCreate/skybison | a3789c84541f39dc6f72d4d3eb9783b9ed362934 | d1740e08d8de85a0a56b650675717da67de171a0 | refs/heads/trunk | 2023-07-26T04:50:55.898224 | 2021-08-31T08:20:46 | 2021-09-02T19:25:08 | 402,908,053 | 1 | 0 | NOASSERTION | 2021-09-03T22:05:57 | 2021-09-03T22:05:57 | null | UTF-8 | Python | false | false | 212 | py | # Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com)
def fun():
class Foo:
def __init__(self):
super().__init__()
def no_super(self):
return
| [
"emacs@fb.com"
] | emacs@fb.com |
c4441728e4c2fd660644adf3f31bc7b040393369 | 3b11dc40c7d772fffeb4d8683e5c9791c41f6454 | /custom/community/general/status_bar_clock/controllers/__init__.py | 5dacb5b2ac9861e919e683cd781d6bbe6496ff37 | [] | no_license | Jacky-odoo/Ecobank | b986352abac9416ab00008a4abaec2b1f1a1f262 | 5c501bd03a22421f47c76380004bf3d62292f79d | refs/heads/main | 2023-03-09T18:10:45.058530 | 2021-02-25T14:11:12 | 2021-02-25T14:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | # -*- coding: utf-8 -*-
# © 2018-Today Aktiv Software (http://www.aktivsoftware.com).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import main
| [
"francisbnagura@gmail.com"
] | francisbnagura@gmail.com |
6fef571360e9314e5f9c731b7aac3ac1e1026cf4 | 9242319ca7796c6a3b18e760ddbf8290944d4b49 | /test/test_enocean_receiver.py | 1e118b4b6390d5bdfd67f5a6a7059a35599cbe38 | [
"MIT"
] | permissive | MainRo/python-flock | 79cfd7ce4edab40439c556b6621768438868d16c | e1faa78d6aba374493336651848daadad82387a8 | refs/heads/master | 2021-01-10T19:16:52.907538 | 2015-11-18T21:15:38 | 2015-11-18T21:15:38 | 29,210,634 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | from unittest import TestCase
from mock import patch, call
from flock.controller.enocean.protocol import EnoceanReceiver
class TestProtocol(EnoceanReceiver):
def packet_received(self, data):
return
@patch.object(TestProtocol, 'packet_received')
class EnoceanReceiverTestCase(TestCase):
def test_receive... | [
"romain.picard@oakbits.com"
] | romain.picard@oakbits.com |
aea7626754bf828a192cfb8b75e2737f4ca1bb81 | 751d837b8a4445877bb2f0d1e97ce41cd39ce1bd | /edabit/get-the-sum-of-all-array-elements.py | 93bdaa39d63ddef0d914699453ead734f12d464a | [
"MIT"
] | permissive | qeedquan/challenges | d55146f784a3619caa4541ac6f2b670b0a3dd8ba | 56823e77cf502bdea68cce0e1221f5add3d64d6a | refs/heads/master | 2023-08-11T20:35:09.726571 | 2023-08-11T13:02:43 | 2023-08-11T13:02:43 | 115,886,967 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
u"""
Create a function that takes an array and returns the sum of all numbers in the array.
Examples
getSumOfItems([2, 7, 4]) ➞ 13
getSumOfItems([45, 3, 0]) ➞ 48
getSumOfItems([-2, 84, 23]) ➞ 105
"""
import operator
def sum(xs):
return reduce(operator.add, xs)
as... | [
"qeed.quan@gmail.com"
] | qeed.quan@gmail.com |
0e602dfaa845ca851703c413ce1a548c2cec1477 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/IsvAuthSceneInfo.py | 59bf8806f92b1610731009758157f4352bc08cb4 | [
"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 | 1,493 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class IsvAuthSceneInfo(object):
def __init__(self):
self._scene_code = None
self._scene_permissions = None
@property
def scene_code(self):
return self._scene_code
... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
b4e67e6713486739e9c8bab0cafa343f4640205b | a53998e56ee06a96d59d97b2601fd6ec1e4124d7 | /Mysql/day5/insert.py | ff40cb7ca8bbbe14a540f848df8e7f9f0de5504f | [] | no_license | zh-en520/aid1901 | f0ec0ec54e3fd616a2a85883da16670f34d4f873 | a56f82d0ea60b2395deacc57c4bdf3b6bc73bd2e | refs/heads/master | 2020-06-28T21:16:22.259665 | 2019-08-03T07:09:29 | 2019-08-03T07:09:29 | 200,344,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # insert_test.py
# 插入测试
import pymysql
from db_conf import *
#创建数据库连接
try:
conn = pymysql.connect(host,user,passwd,dbname)
cursor = conn.cursor() #获取游标
#定义sql语句
# sql = '''insert into orders
# (order_id,cust_id,amt)
# values('201801010002','C0002',444.55)
# '''
sql = 'delete from orders ... | [
"zh_en520@163.com"
] | zh_en520@163.com |
84d572034fee02964f3c369d9520d27f1e66dad6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03679/s869008403.py | 48a02e5eb2d96856b887b33de82b64a54cfa0625 | [] | 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 | 147 | py | x, a, b = map(int, input().split())
a *= -1
a += b
if a <= 0:
print("delicious")
elif a <= x:
print("safe")
else:
print("dangerous") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
33ba7708ad40728b600a25ef784d8dd3537d2f47 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_foreclose.py | 123d60eb470560c241e67bbf37217dea6bac11e8 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py |
#calss header
class _FORECLOSE():
def __init__(self,):
self.name = "FORECLOSE"
self.definitions = [u'(especially of banks) to take back property that was bought with borrowed money because the money was not being paid back as formally agreed: ', u'to prevent something from being considered as a possibility in t... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c14adaf27ac8d243d23ed47ee8d7fd61530e0bb1 | d9504b779ca6d25a711c13fafc1b8669c60e6f62 | /shape_recognition/libraries/general/confighardware.py | 017e0a4ded22f83515c5ec8383669473fd3c48c2 | [
"MIT"
] | permissive | ys1998/tactile-shape-recognition | dcdd3f4da66b4b3f6159dccf9cec4d367f6483d9 | b5ab6f1cdf04ff23e14b467a590533e7ee740b52 | refs/heads/master | 2020-03-18T03:01:17.985074 | 2018-07-28T09:46:16 | 2018-07-28T09:46:16 | 134,218,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,249 | py | # -*- coding: utf-8 -*-
'''
#-------------------------------------------------------------------------------
# NATIONAL UNIVERSITY OF SINGAPORE - NUS
# SINGAPORE INSTITUTE FOR NEUROTECHNOLOGY - SINAPSE
# Singapore
# URL: http://www.sinapseinstitute.org
#-----------------------------------------------------------... | [
"yashshah2398@gmail.com"
] | yashshah2398@gmail.com |
3bf43960f9da4d4e5d45b38e5e355589716262fb | b26e1704b963881e7681712c923787772ac463ec | /Courses/PythonBeyondTheBasics(OO-Programming)_David-Blaikie/5_DecoratorsAbstractOverloading/Overloading.py | 363bc69ec423eaffc2ff2f78f05e6164582b97c9 | [] | no_license | lakshmikantdeshpande/Python-Courses | 64f8a397b727042f2662fa7597ea0e73491717f3 | d15364b42c182d3487532853bde37deb48865494 | refs/heads/master | 2021-09-02T06:51:19.490674 | 2017-12-31T06:55:53 | 2017-12-31T06:55:53 | 94,890,325 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | import abc
class GetSetParent(object):
__metaclass__ = abc.ABCMeta
def __init__(self, value):
self.val = 0
def set_val(self, value):
self.val = value
def get_val(self):
return self.val
@abc.abstractmethod
def showdoc(self):
return
class GetSetInt(GetSetPar... | [
"lakshmikantdeshpande@gmail.com"
] | lakshmikantdeshpande@gmail.com |
0a59b48100a131f414e36062aac414f027c0acbf | d85f3bfcc7efb3313bd77ba43abbde8527c731d9 | /ch09/bottle_test.py | 970ecfd6283ec60311f0f7a3468eeda61c222bd3 | [] | no_license | freebz/Introducing-Python | 8c62767e88b89eb614abd3ea4cf19aae946f5379 | ecf2082946eac83072328a80ed1e06b416ef5170 | refs/heads/master | 2020-04-08T21:14:42.398462 | 2018-11-29T17:03:11 | 2018-11-29T17:03:11 | 159,736,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | import requests
resp = requests.get('http://localhost:9999/echo/Mothra')
if resp.status_code == 200 and \
resp.text == 'Say hello to my little friend: Mothra!':
print('It worked! That almost never happens!')
else:
print('Argh, got this:', resp.text)
| [
"freebz@hananet.net"
] | freebz@hananet.net |
713e8ca9e8e74d63af7aaad24b92e81f479bd8fe | 1d63d795ceb579f3f4ac7d27d61ad2c3298dd8d1 | /vendor/blockwise_view.py | d52cfd63cbe14666bfdd5bf7da6bdd7ef32d8076 | [
"MIT"
] | permissive | austinpray/hey-brether | 4fd1f95f08673e35a15c53a9d4aca43502d0dc7e | 8fa9f83df0da5bc570f60a83a27f72babecb0c18 | refs/heads/master | 2021-08-27T16:42:29.578384 | 2021-08-22T21:41:22 | 2021-08-22T21:41:22 | 142,895,876 | 3 | 1 | MIT | 2018-07-30T20:13:18 | 2018-07-30T15:42:09 | Python | UTF-8 | Python | false | false | 3,745 | py | # lifted from
# https://github.com/ilastik/lazyflow/blob/master/lazyflow/utility/blockwise_view.py
# https://github.com/ilastik/lazyflow/blob/e98aa81cf2d55595df41b161d8e74607ec09c716/lazyflow/utility/blockwise_view.py
from __future__ import division
from builtins import map
import numpy
try:
# If you use vigra, we... | [
"austin@austinpray.com"
] | austin@austinpray.com |
d9040e75c7238b479f6ec9ac27efe459df9a5925 | 652121d51e6ff25aa5b1ad6df2be7eb341683c35 | /programs/e2boxadjust.py | 04168ce207137b8a80ac1faef462b4297f3943e0 | [] | no_license | jgalaz84/eman2 | be93624f1c261048170b85416e517e5813992501 | 6d3a1249ed590bbc92e25fb0fc319e3ce17deb65 | refs/heads/master | 2020-04-25T18:15:55.870663 | 2015-06-05T20:21:44 | 2015-06-05T20:21:44 | 36,952,784 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,711 | py | #!/usr/bin/env python
#
# Author: Steven Ludtke, 3/29/15 (sludtke@bcm.edu)
# Copyright (c) 2000-2015 Baylor College of Medicine
#
# This software is issued under a joint BSD/GNU license. You may use the
# source code in this file under either license. However, note that the
# complete EMAN2 and SPARX software packages... | [
"jgalaz@gmail.com"
] | jgalaz@gmail.com |
81c1ef2bb1721cb5d7b56e1f3673cd180502ce97 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/services/services/language_constant_service/transports/base.py | 3eb9eee19afd04d6ca83dd2da69278f139f23822 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,721 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
7a202d230c87166a61c32289c482c0b4b5907e88 | d042b8895dc8347356fa4d5984d07bff41eecc73 | /tools/bt_store.py | 61a04f137230eb3634848d34dbc1a8d1e41c65c3 | [
"Apache-2.0"
] | permissive | jzx1230/obtainfo | 257b075c32c3448096391f258f42dd7f0c081350 | 883c29ab0a462d11682b60b9b52b2fc93031b816 | refs/heads/master | 2021-05-08T04:19:33.810848 | 2015-10-13T10:10:10 | 2015-10-13T10:10:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,111 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import os
import json
import codecs
import random
import pymongo
import sqlite3
import libtorrent
import chardet
import datetime
from pony.orm import *
from django.utils.encoding import force_unicode, DjangoUnicodeDecodeError
re_urn = re.compile(ur'xt=urn:btih:... | [
"pczhaoyun@gmail.com"
] | pczhaoyun@gmail.com |
0aeef5b781b774b162ccd571d7f2cfa4c241ed0e | e75148cf551a6b88c1af821ec1f624dbd8678900 | /tests/test_models/test_user.py | a997a9efdbcc970a3b699cd68c2599245042198c | [] | no_license | pforciol/AirBnB_clone | 8f4e22e4370bb22bf6c5a33af0d33384615c1be6 | 996141f4dd58c3e228231edd48ef831a1a1547d6 | refs/heads/master | 2023-03-20T00:00:26.283048 | 2021-03-03T11:41:56 | 2021-03-03T11:41:56 | 337,645,428 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 4,482 | py | #!/usr/bin/python3
"""
Contains the TestUserDocs classes
"""
from datetime import datetime
import inspect
from models import user
from models.base_model import BaseModel
import pep8
import unittest
User = user.User
class TestUserDocs(unittest.TestCase):
"""Tests to check the documentation and style of User class... | [
"pierre.forcioli@holbertonschool.com"
] | pierre.forcioli@holbertonschool.com |
5c6f6a8921c5ac8bc3e36835c949fe3bf80386ba | 46d09a43bbb7ea25c7e949fc3d4910779378f9fc | /pipeline/jinja2/ext.py | 3505f15a806422d8877b7e72d0c6a4e96ffa8490 | [
"MIT"
] | permissive | vstoykov/django-pipeline | 9af20061a7ee93c167c7a4900fe8fb37143511f8 | e33375455174adb37e568efa2eccb988a86e132b | refs/heads/master | 2021-01-16T20:52:33.504023 | 2013-02-25T08:12:10 | 2013-02-25T08:12:10 | 8,404,848 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,082 | py | from __future__ import unicode_literals
from jinja2 import nodes, TemplateSyntaxError
from jinja2.ext import Extension
from django.contrib.staticfiles.storage import staticfiles_storage
from pipeline.packager import PackageNotFound
from pipeline.utils import guess_type
from pipeline.templatetags.compressed import Co... | [
"timothee.peignier@tryphon.org"
] | timothee.peignier@tryphon.org |
51d3af2173d61c3bb263950d8b476c00b5b27f45 | 48832d27da16256ee62c364add45f21b968ee669 | /res/scripts/client/gui/scaleform/daapi/view/meta/miniclientcomponentmeta.py | 7baac3f39ceaefa51e89191231fb90b8907f9ebf | [] | 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 | 790 | py | # 2016.08.04 19:51:42 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/MiniClientComponentMeta.py
from gui.Scaleform.framework.entities.BaseDAAPIComponent import BaseDAAPIComponent
class MiniClientComponentMeta(BaseDAAPIComponent):
"""
DO NOT MODIFY!
Generated w... | [
"info@webium.sk"
] | info@webium.sk |
8f889de0036edda16cc3215daa0c446fe28675f8 | 747f759311d404af31c0f80029e88098193f6269 | /extra-addons/syst_hr_payroll_ma/hr.py | e4887dca32ebf3ab1fd708f0c1ed3fdeb57426be | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,063 | py | import netsvc
from osv import fields, osv
import pooler
from tools.translate import _
import time
class hr_employee(osv.osv):
_inherit = 'hr.employee'
_columns = {
'matricule' : fields.char('Matricule', size=64),
'cin' : fields.char('CIN', size=64),
'date': fields.date('Date entree', h... | [
"geerish@omerp.net"
] | geerish@omerp.net |
82a567e6b34c488be5c6911c9716d0e5e39267f5 | 51ce07a419abe50f49e7bb6a6c036af291ea2ef5 | /3.Algorithm/03. String/회문.py | 3d2cc4d08812c91f1e68a534526433192562357f | [] | no_license | salee1023/TIL | c902869e1359246b6dd926166f5ac9209af7b1aa | 2905bd331e451673cbbe87a19e658510b4fd47da | refs/heads/master | 2023-03-10T09:48:41.377704 | 2021-02-24T10:47:27 | 2021-02-24T10:47:27 | 341,129,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | def is_pal(matrix,N,M):
# 행
for i in range(N):
for j in range(N-M+1):
string = matrix[i][j:j+M]
if string == string[::-1]:
return string
# 열
for i in range(N):
for j in range(N-M+1):
c_string = ''
for m in range(M):
... | [
"dltmddk1023@gmail.com"
] | dltmddk1023@gmail.com |
a6559663df3b494d7fa2c3b72625adbfc4ff5eb5 | d6fe71e3e995c03b8f5151ab1d53411b77b325ba | /walklist_api_service/models/ping_response_payload_headers.py | b0cc9e09ae0c79a6d0ca74aee306b8002286ff8f | [] | no_license | mwilkins91/petpoint-scraper | 95468ae9951deaa8bd3bef7d88c0ff660146c1a3 | dd0c60c68fc6a7d11358aa63d28fdf07fff3c7cd | refs/heads/master | 2022-11-27T00:02:50.654404 | 2020-08-09T18:41:40 | 2020-08-09T18:41:40 | 286,180,666 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,252 | py | # coding: utf-8
"""
The Enrichment List
The THS enrichment list # noqa: E501
OpenAPI spec version: 1.0.0
Contact: contactme@markwilkins.co
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class PingResponsePayloadHeaders(ob... | [
"contactme@markwilkins.co"
] | contactme@markwilkins.co |
af611b2c565ba96222cf52efd00902fede83b397 | 7cf119239091001cbe687f73018dc6a58b5b1333 | /datashufflepy-zeus/src/branch_scripts2/NEWS/ZX_CJXW_GJJRJG/ZX_CJXW_GJJRJG_GZW_DFSM.py | 61ffc39ae2d35de2d050385674f862a2e53b7081 | [
"Apache-2.0"
] | permissive | ILKKAI/dataETL | 0f5b80c3482994f735f092a1e01fa1009bac4109 | 32f7ec3aaaf32b5074536a615cb9cd5c28bd499c | refs/heads/master | 2022-04-04T19:27:05.747852 | 2020-02-28T11:17:48 | 2020-02-28T11:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # -*- coding: utf-8 -*-
from database._mongodb import MongoClient
def data_shuffle(data):
return data
if __name__ == '__main__':
main_mongo = MongoClient(entity_code="ZX_CJXW_GJJRJG_GZW_DFSM", mongo_collection="ZX_CJXW_HY")
data_list = main_mongo.main()
for data in data_list:
re_data = data... | [
"499413642@qq.com"
] | 499413642@qq.com |
595aa5a10ef9b0fb0a73ced16c54c8e221cf046c | 2e1617aec5614ad695fd6ee8dfc0ffb77c54dad1 | /sources/Yalkut Shimoni/Nach/Yalkut_Shimoni_on_Nach.py | 3ca221c24e7c961394c09c1cbcfc94c0e0676dbc | [] | no_license | bachrach44/Sefaria-Data | ad875a552b858828ca2bbd4bbf1da8363dfef038 | b33d781c1bde12568caa01c19e5ad9ec874d160f | refs/heads/master | 2020-12-14T18:50:44.616694 | 2015-10-19T13:59:18 | 2015-10-19T13:59:18 | 17,557,774 | 0 | 0 | null | 2015-08-24T20:59:26 | 2014-03-09T04:33:13 | HTML | UTF-8 | Python | false | false | 1,248 | py | # -*- coding: utf-8 -*-
import urllib
import urllib2
from urllib2 import URLError, HTTPError
import json
import pdb
import os
import sys
p = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, p)
os.environ['DJANGO_SETTINGS_MODULE'] = "sefaria.settings"
from local_settings import *
sys.path... | [
"skaplan@brandeis.edu"
] | skaplan@brandeis.edu |
7a378105c860099dd61297282e87b87d6ce4006d | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /EHzL3v25wYp7E4AFC_5.py | 8a5ec4b5bd16208bd51e95590a5ec8900a2b9c45 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | """
Write a function that returns `True` if you can use the letters of the first
string to create the second string. Letters are **case sensitive**.
### Examples
can_build("aPPleAL", "PAL") ➞ True
can_build("aPPleAL", "apple") ➞ False
can_build("a", "") ➞ True
can_build("aa", "aaa") ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
062d52021c8a30a2bffcf1ee2952f42480968f14 | 27c8fc9bc336c49dbe172df5774e786106b4d6b7 | /api/migrations/0001_initial.py | eb1b71fb66d5a2dc1eaac76e0a337a3677b5772f | [] | no_license | BunmiAdeleke123/blog | 18169c3ab8b75742bf8bc3c73a20f25f02166533 | 5dcfb10cb844b62871d442f72cc37d136092adfe | refs/heads/main | 2023-09-01T02:00:39.123781 | 2021-10-26T13:11:49 | 2021-10-26T13:11:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | # Generated by Django 3.2.8 on 2021-10-26 04:27
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"you@example.com"
] | you@example.com |
5a38b04405d890de23e3283d6e0d1a7fbcc357bb | 33a5bce52506b8c01ee250830f28aacc46382989 | /accounts/forms.py | e0b7f5b79f689f4afce7274ef52e5b9dc3bbbe7c | [] | no_license | stsh1119/django_request_trap | 76ecac7709fc8c7847c479afa9b2cc384cf9cd0c | c55bfb8f0316f8ac03ffb7d60da48599289c0b81 | refs/heads/main | 2023-07-06T18:58:30.063801 | 2021-07-25T08:39:42 | 2021-07-25T08:39:42 | 380,741,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | from django.contrib.auth import get_user_model
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
class CustomUserCreationForm(UserCreationForm):
class Meta:
model = get_user_model()
fields = ('email', 'username', )
class CustomUserChangeForm(UserChangeForm):
class Meta... | [
"stshlaptop@gmail.com"
] | stshlaptop@gmail.com |
bfa0d79f8e6172fe2680868e91558d1789cb9387 | cee4dd54ea44f91511a8b886b2d763604afeb95d | /app/emails.py | 7cada0fc646cae0a6c88583b4bd278ef9a973824 | [] | no_license | damnedsteven/emcn_wh | 0520ebe12b8d986905e2d7d8f7eea530f69fba96 | 0180d47e8484e691b880433f3d07f6c3068477b8 | refs/heads/master | 2021-01-19T12:29:25.767510 | 2017-04-13T02:09:18 | 2017-04-13T02:09:18 | 88,033,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | from .decorators import async
from flask_mail import Message
from app import app, mail
from flask import render_template
from config import ADMINS
@async
def send_async_email(app, msg):
with app.app_context():
mail.send(msg)
def send_email(subject, sender, recipients, text_body, html_body):
msg = Mes... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
5724646c2d8664888cbf6def9ea0bdcc3cc5374a | 36a782b4fe282b96803458f9f6bf44355e4cf71f | /rotkehlchen/fval.py | bb601200d30b198e9dde67eb0d36edbb5ad6be60 | [
"BSD-3-Clause"
] | permissive | DUMIE505/rotki | 23911887c7cc741a5d682fb90c98e09828b8c66f | 046169bc068c7b29a271d6e80d978e02d0ea76ac | refs/heads/develop | 2023-01-07T20:32:57.215529 | 2020-01-29T22:58:28 | 2020-01-31T08:58:03 | 237,394,542 | 0 | 0 | BSD-3-Clause | 2022-12-27T15:35:36 | 2020-01-31T09:04:50 | null | UTF-8 | Python | false | false | 6,879 | py | from decimal import Decimal, InvalidOperation
from typing import Any, Union
from rotkehlchen.errors import ConversionError
# Here even though we got __future__ annotations using FVal does not seem to work
AcceptableFValInitInput = Union[float, bytes, Decimal, int, str, 'FVal']
AcceptableFValOtherInput = Union[int, 'F... | [
"lefteris@refu.co"
] | lefteris@refu.co |
cf396a701c4fabd74562aaed43cb8505fbdc5b23 | f95d2646f8428cceed98681f8ed2407d4f044941 | /numpydemo/01/day01/demo02_ndarray.py | d7decab2c5e6ccd28291779733520ff24d15eec1 | [] | no_license | q2806060/python-note | 014e1458dcfa896f2749c7ebce68b2bbe31a3bf8 | fbe107d668b44b78ae0094dbcc7e8ff8a4f8c983 | refs/heads/master | 2020-08-18T01:12:31.227654 | 2019-10-17T07:40:40 | 2019-10-17T07:40:40 | 215,731,114 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | """
demo02_ndarray.py
"""
import numpy as np
a = np.array([[1, 2, 3, 4],
[5, 6, 7, 8]])
print(a, a.shape)
# 起始值1, 终止值10, 步长1
b = np.arange(1, 10, 2)
print(b)
# 创建5个元素全为0的数组
c = np.zeros(5, dtype='int32')
print(c, c.dtype)
# 创建5个元素全为1的数组
d = np.ones(5, dtype='int32')
print(d, d.dtype)
# 创建数组e与f, 结构与a相同, e中全0,... | [
"C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn"
] | C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn |
ae1ad986a8d66093295f5b63687111f255f1453e | 521efcd158f4c69a686ed1c63dd8e4b0b68cc011 | /airflow/providers/google/cloud/transfers/gdrive_to_local.py | 113a389c6fbf22314e9345d4caac708ef5871c83 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | coutureai/RaWorkflowOrchestrator | 33fd8e253bfea2f9a82bb122ca79e8cf9dffb003 | cd3ea2579dff7bbab0d6235fcdeba2bb9edfc01f | refs/heads/main | 2022-10-01T06:24:18.560652 | 2021-12-29T04:52:56 | 2021-12-29T04:52:56 | 184,547,783 | 5 | 12 | Apache-2.0 | 2022-11-04T00:02:55 | 2019-05-02T08:38:38 | Python | UTF-8 | Python | false | false | 3,834 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | coutureai.noreply@github.com |
906ab9e89725e37b6440b90331db571633a5fd2f | 8bbeb7b5721a9dbf40caa47a96e6961ceabb0128 | /python3/396.Rotate Function(旋转函数).py | 5a9f84b92f2c5deadb136fc43540cab6fbb4e3a4 | [
"MIT"
] | permissive | lishulongVI/leetcode | bb5b75642f69dfaec0c2ee3e06369c715125b1ba | 6731e128be0fd3c0bdfe885c1a409ac54b929597 | refs/heads/master | 2020-03-23T22:17:40.335970 | 2018-07-23T14:46:06 | 2018-07-23T14:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,078 | py | """
<p>
Given an array of integers <code>A</code> and let <i>n</i> to be its length.
</p>
<p>
Assume <code>B<sub>k</sub></code> to be an array obtained by rotating the array <code>A</code> <i>k</i> positions clock-wise, we define a "rotation function" <code>F</code> on <code>A</code> as follow:
</p>
<p>
<code>F(k) = ... | [
"lishulong@wecash.net"
] | lishulong@wecash.net |
fdfe2f9a3d3e3b660f7c7340ac430fa1a6359434 | 0b88a8e39e894fe72fd389505bdad786a6713439 | /lib/setup3.py | 51f4b3fbb0457190d4eb492ba1a479eb2d2b9855 | [
"Apache-2.0"
] | permissive | Trevol/pytorch-retinanet | d61a76c4a1cc14667ee0149440da865a8628d81f | e9c87a6c195d814d19edeca19166a5559df7da4a | refs/heads/master | 2020-05-24T17:41:33.785410 | 2019-05-29T08:52:39 | 2019-05-29T08:52:39 | 187,391,911 | 0 | 0 | null | 2019-05-18T18:23:50 | 2019-05-18T18:23:50 | null | UTF-8 | Python | false | false | 5,010 | py |
# --------------------------------------------------------
# Faster R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
from distutils.core import setup
from Cython.Build import cythonize... | [
"iam.vladimir.tretyak@gmail.com"
] | iam.vladimir.tretyak@gmail.com |
90751ed36f2869cf56e4df448cb42533a8bd624c | fcde32709c62b8ee86da459bb7c8eee52c848118 | /code/day17/作业00.py | 18b8f5c56d28eafa61ce240cdb8b8aa5ca0c34f6 | [] | no_license | klaus2015/py_base | 6b92d362c3d7dc0e09205a037f4d580381dac94d | ec32c731c1c2f6a0dab87f1d167397e4fa86b8de | refs/heads/master | 2022-07-28T15:49:30.383648 | 2020-05-11T15:31:43 | 2020-05-11T15:31:43 | 261,777,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | """
3. 定义敌人类(姓名,攻击力,防御力,血量)
创建敌人列表,使用list_helper实现下列功能.
(1) 查找姓名是"灭霸"的敌人
(2) 查找攻击力大于10的所有敌人
(3) 查找活的敌人数量
"""
from common.list_helper import *
class Enemy:
"""
敌人类
"""
def __init__(self,name,hp,basic_damage,defensive):
self.name = name
self.hp = hp
self.basic_dam... | [
"598467866@qq.com"
] | 598467866@qq.com |
5f42709ff47192bb9f442f01303bd687ae7209b6 | 7f8db5b974a747632729d16c431de7aca007af00 | /0x03-python-data_structures/5-no_c.py | 2a1bab55ec3424fa4324cbf2cbf8bae79f944bf2 | [] | no_license | thomasmontoya123/holbertonschool-higher_level_programming | 6f5ceb636167efba1e36ed2dee7bf83b458f6751 | 48b7c9dccac77ccb0f57da1dc1d150f356612b13 | refs/heads/master | 2020-07-22T22:31:13.744490 | 2020-02-13T22:54:17 | 2020-02-13T22:54:17 | 207,351,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | #!/usr/bin/python3
def no_c(my_string):
string = ""
for character in my_string:
if character != 'c' and character != 'C':
string = string + character
return string
| [
"tomasmontoya123@gmail.com"
] | tomasmontoya123@gmail.com |
c5f0c7f55c1bb473ee3127e3fb4c8ada7b3f9263 | 32cd5452417a6637f5e087c1a0c2c6405fbaf915 | /src/app/share/caheFiles.py | bf976ef14e20e73e12adaf7d364be8fe1b80b256 | [] | no_license | 549982170/SZLife_assisttant | 766bedff61cabe73513a449525f57c8bb5a9afb6 | 014ebc526a671e3b3c972d476ba29439fd7decbf | refs/heads/master | 2021-01-01T03:58:45.182066 | 2018-04-12T10:49:46 | 2018-04-12T10:49:46 | 97,097,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | # coding:utf-8
# !/user/bin/python
'''
Created on 2018年4月12日
@author: yizhiwu
内存缓存对象
'''
CACHE = {} # 函数值缓存
LOCK_DICT = {} # 线程池字典 | [
"549982170@qq.com"
] | 549982170@qq.com |
8e50dd5499fa0d29586e52cf45552d1f423fc3df | f6c6b7ac39deb9f2cc0a7ef8fb6459ca09fc27dd | /handlers/async_tasks.py | 8b33938195c156d334b41d736e78f0fca2f49e83 | [
"MIT"
] | permissive | via-jiang/celery-demo | 3112b28de81b3bc477629d51453d069e814e8adc | 48eaa732bc9270f6f54eab48ecc57ed98ee52e44 | refs/heads/master | 2021-09-13T18:27:42.893328 | 2018-04-16T01:48:41 | 2018-04-16T01:48:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/1/16 下午4:12
# @Author : Matrix
# @Github : https://github.com/blackmatrix7/
# @Blog : http://www.cnblogs.com/blackmatrix/
# @File : async_task.py
# @Software: PyCharm
import logging
from time import sleep
from manage import celery
__author__ = 'blackmatrix'
... | [
"codecolor@outlook.com"
] | codecolor@outlook.com |
e8dc54e0d29dcbd3078510bb079021898840fe06 | 26d5c795d8aa83bf5cb3f228675ff51e2f704f57 | /scripts/tuple2json | eb4a6177f70c27c5ba91553a6c9515e04d247a90 | [] | no_license | binarymachines/mercury | 8e13bb10c67a056fe88e02f558d73f1f1b95d028 | db3e2425f4e77a44a97c740f7fff90312a1bd33f | refs/heads/master | 2023-07-08T11:35:26.867494 | 2023-06-25T00:46:23 | 2023-06-25T00:46:23 | 94,708,610 | 2 | 6 | null | 2023-02-15T21:50:06 | 2017-06-18T19:31:50 | Python | UTF-8 | Python | false | false | 2,595 | #!/usr/bin/env python
'''
Usage:
tuple2json --delimiter <delimiter> --keys=<key>... [--skip <num_lines>] [--limit=<limit>]
tuple2json --delimiter <delimiter> --datafile <file> --keys=<key>... [--skip <num_lines>] [--limit=<limit>]
'''
'''
+mdoc+
tuple2json takes a list of tuples (represented as CSV records ... | [
"binarymachineshop@gmail.com"
] | binarymachineshop@gmail.com | |
c91f3a8f8c97bee6dfad05db9551a7fd74a02a78 | 59880d47a533cf1f45f927adafff22d5ffb4796a | /Python/fullStackDjango/fullStackBooks/apps/books/migrations/0002_auto_20170524_0029.py | 9208e593e61e618fa8fa5d072fff9f74e252ea46 | [] | no_license | mightymcalpine/DojoAssignments | 2bc7bb791630040dbb62da917a26b74bbdd574e4 | 9c0d80953f6ddbe840314f3d333b5f4590e0c9f4 | refs/heads/master | 2021-01-18T00:07:07.128554 | 2017-06-05T16:38:35 | 2017-06-05T16:38:35 | 84,257,743 | 0 | 0 | null | 2017-06-02T05:34:36 | 2017-03-07T23:47:27 | Python | UTF-8 | Python | false | false | 383 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-24 00:29
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('books', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_n... | [
"larscodus@gmail.com"
] | larscodus@gmail.com |
2fece7e214d7330dd51e1119ce24086e0cdf399f | 02b9a9f40f56502c94d064654e030c521c2f325a | /django_task/utils.py | 533c749435edbf9ae8321797f72884ec9c9c8e23 | [
"MIT"
] | permissive | samlex20/django-task | 7c454922cf667853bc8678bfbb871e0f014b33b1 | 9966dd9a3366c10b3658298ff29c62250e5ec46f | refs/heads/master | 2020-05-30T21:48:11.947777 | 2019-06-03T04:50:53 | 2019-06-03T04:50:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | from __future__ import unicode_literals
import uuid
import os
import time
from django.http import Http404
from django.shortcuts import get_object_or_404
from django.utils import formats
from django.utils import timezone
from django.apps import apps
def get_object_by_uuid_or_404(model, uuid_pk):
"""
Calls get_... | [
"morlandi@brainstorm.it"
] | morlandi@brainstorm.it |
45e666a317a1cd2194028b38c269dcc81f2249a7 | 02406958bffadbce13240ea1fb5013bc005fa332 | /src/main/python/matrixext.py | 2b40104f311e9b6f6405f5791190fb618f232aec | [] | no_license | Jcamilorada/Networks | 4b03209f0324e7a00c5236b7215158684ea969ee | 1200529e501f9366bc38bb02b1d45f3079c976d3 | refs/heads/master | 2021-01-10T16:36:06.311138 | 2015-11-17T03:05:44 | 2015-11-17T03:05:44 | 45,878,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,925 | py | from BeautifulSoup import BeautifulSoup
import urllib2
import re
from subprocess import call
from os import walk, path
from joblib import Parallel, delayed
hdr = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11',
'Accept': 'text/html,applic... | [
"fico89@gmail.com"
] | fico89@gmail.com |
960761f93b8ca58af370503f84744e74126847fb | 74f68049235709841416010ec1e18e8085762113 | /.history/recursion_20191203122123.py | 7190b3a32cacbf96d5a3743a23aa3f6f8bcaf7a3 | [] | no_license | camilooob/pythonisfun | 749692517a6c6b147c428996c01fb3b2fa1aef14 | 55453e1f80f92c3756ee5f0338f93fc2a0d9beec | refs/heads/master | 2020-09-21T21:59:44.308526 | 2020-01-20T17:41:56 | 2020-01-20T17:41:56 | 224,947,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | def rec_count (number):
print (number)
# Base case
if number == 0:
return
rec_count (number + 1) # A recursive call with a different argument
print (number)
rec_count (5)
| [
"camilobaq@hotmail.com"
] | camilobaq@hotmail.com |
3f06ec717874a0469c361153d673f147c29904fb | b5a6f10c886fba6584d2ac7b4a29c69975826dbb | /clients/python/pricemonitor_api_client/models/get_all_domains_v3_api_response.py | 12e4f77837ed38236957ce51bf022e5fd7b9404f | [] | no_license | Patagona/pricemonitor-clients | 8c4f842ca3d4e459c77ac329ad488cb3e4c858bf | cf2d689bf9ed6ddea9501324cada918c3a88b4f8 | refs/heads/master | 2023-08-31T20:12:58.844253 | 2023-08-31T15:26:25 | 2023-08-31T15:26:25 | 279,618,794 | 1 | 1 | null | 2023-07-03T13:55:28 | 2020-07-14T15:09:38 | Python | UTF-8 | Python | false | false | 3,671 | py | # coding: utf-8
"""
Pricemonitor API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 0.0.6561
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import ... | [
"jenkins@patagona.de"
] | jenkins@patagona.de |
7ffb45eecdac616fe9c5ce26f57f0bae55224092 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/number/test_recorder.py | 635354b11760014111d91d22eb6242e3d9db539a | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 2,035 | py | """The tests for number recorder."""
from __future__ import annotations
from datetime import timedelta
from unittest.mock import patch
import pytest
from homeassistant.components import number
from homeassistant.components.number import ATTR_MAX, ATTR_MIN, ATTR_MODE, ATTR_STEP
from homeassistant.components.recorder ... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
2688ed15e9167a2616e98fcead68c08c2428e039 | d53a274a61ffe894a6e5648edf86f78145f0af7b | /tests/modes/test_stream.py | 921a3c083d2c4c932abd4ccd6c99093791ebc99f | [
"MIT"
] | permissive | deresmos/delogger | 8611d88714ffffddb5fa9bc12586fffb89fb8c11 | c185e4fd844414d561f521103975b95bd31aff43 | refs/heads/main | 2021-06-02T23:10:02.814473 | 2020-10-19T13:53:27 | 2020-10-19T13:53:27 | 153,235,270 | 5 | 0 | MIT | 2020-10-19T13:53:29 | 2018-10-16T06:40:46 | Python | UTF-8 | Python | false | false | 1,391 | py | from pathlib import Path
from delogger import Delogger
from delogger.modes.stream import StreamColorDebugMode
from delogger.modes.stream import StreamDebugMode
from delogger.modes.stream import StreamInfoMode
from tests.lib.base import Assert
from tests.lib.base import DeloggerTestBase
class TestStreamMode(DeloggerT... | [
"deresmos@gmail.com"
] | deresmos@gmail.com |
ceef2844a259de469756bc457bcfb2a756811678 | 8e1668e35a8df9968ab14d16db089b51dbe6dd51 | /python/algorithms/sort/merge_sort.py | 167273e24de284bb4cbd1cbfa418f619369e139c | [] | no_license | Chalmiller/competitive_programming | f1ec0184d1ff247201522ab90ca8e66b3f326afc | b437080d1ba977c023baf08b7dc5c3946784e183 | refs/heads/master | 2021-03-24T05:11:59.383916 | 2020-08-24T22:07:41 | 2020-08-24T22:07:41 | 247,519,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | def merge(S1, S2, S):
"""Merge two sorted Python lists S1 and S2 into properly sized list S."""
i = j = 0
while i + j < len(S):
if j == len(S2) or (i < len(S1) and S1[i] < S2[j]):
S[i+j] = S1[i] # copy ith element of S1 as next item of S
i += 1
else:
S[i+j] = S2[j] # copy jth e... | [
"chalmiller1@gmail.com"
] | chalmiller1@gmail.com |
c3adb838965981ec18e6903f217ac461b3ef093c | 35fc084d330e62575c12bc714cbf414c082e9f8a | /ramdisk/target/common/usr/lib/python3.7/site-packages/typepy/checker/_ipaddress.py | 4ae9e749ecdb997ae763955301b1fca4c387ae1e | [
"Python-2.0"
] | permissive | BM1880-BIRD/bm1880-system-sdk | 8de97c6c0985b3bee8b06fb5fd2ee8daec693665 | eff2d6f5442676c04a221a62139864658208f57e | refs/heads/master | 2022-04-08T09:20:47.919696 | 2020-03-09T02:43:08 | 2020-03-09T02:43:08 | 159,283,885 | 29 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from __future__ import absolute_import
from ._checker import (
TypeChecker,
TypeCheckerStrictLevel,
)
from ._common import isstring
class IpAddressTypeCheckerStrictLevel0(TypeCheckerStrictLevel):
def is_instance(... | [
"haitao.suo@bitmain.com"
] | haitao.suo@bitmain.com |
a5b0fc1063e34fd3268bf0dbb5dee86d3b3a34f8 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/python/keras/testing_utils.py | 57c5585363b515e8ffb00717a04f25b25e9cec10 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:f948b539999a928461c50492838f0aa264bc8aa39b722055b4f4a8317d5e8e0b
size 25030
| [
"github@cuba12345"
] | github@cuba12345 |
9ae2fca88541a98fc212a099fea1c9bbf40bfec5 | d4e573e8eae32db155fe5931b3e2dcd3aa48969b | /indigo/lib/python2.7/dist-packages/rocon_app_manager_msgs/srv/_Init.py | c91a36b46fa4aec26c1d464d23d1f93378458753 | [] | no_license | javierdiazp/myros | ee52b0a7c972d559a1a377f8de4eb37878b8a99b | 7571febdfa881872cae6378bf7266deca7901529 | refs/heads/master | 2022-11-09T09:24:47.708988 | 2016-11-10T16:56:28 | 2016-11-10T16:56:28 | 73,733,895 | 0 | 1 | null | 2022-10-25T05:16:35 | 2016-11-14T18:19:06 | C++ | UTF-8 | Python | false | false | 7,687 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from rocon_app_manager_msgs/InitRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class InitRequest(genpy.Message):
_md5sum = "c1f3d28f1b044c871e6eff2e9fc3c667"
... | [
"javier.diaz.palacios@gmail.com"
] | javier.diaz.palacios@gmail.com |
5be7597d9b79497f129d448a582e4da7ba3720fe | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r9/Gen/DecFiles/options/11164450.py | aa5dc4673014eec3a42cde5a51ad6a896418a48f | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/11164450.py generated: Fri, 27 Mar 2015 16:10:17
#
# Event Type: 11164450
#
# ASCII decay Descriptor: {[[B0]nos -> (D- => K+ pi- pi- pi0) pi+]cc, [[B0]os -> (D+ => K- pi+ pi+ pi0) pi-]cc}
#
from Configurables import Generation
Generation().EventType = 111... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
b79d7f133f726c28e34a6124100816702b418473 | d0320f7a0d23cf6dbc93bed6af5cf22625a1998c | /QueensPuzzleFaster.py | afa69f2f96a4ebb46146776d6760744c448c41ad | [
"MIT"
] | permissive | cmcclana/CIS2001-Fall2017 | f8ba05cd20406bd3e743d1abd13320dfb0aaf234 | d601f1ef87fb49852ce7a7223537baa5f3a3e664 | refs/heads/master | 2021-08-08T06:59:37.543336 | 2017-11-09T20:40:44 | 2017-11-09T20:40:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,766 | py | class QueensPuzzle:
QUEEN = 'Q'
SPACE = ' '
def __init__(self, number_of_queens):
self.number_of_queens_on_board = 0
self.board = [ [ QueensPuzzle.SPACE ] * number_of_queens ] * number_of_queens
self.diagonals_minus = [True] * number_of_queens * 2
self.diagonals_plus = [True]... | [
"eric.charnesky@careevolution.com"
] | eric.charnesky@careevolution.com |
b33d3bf4771d52646ef6acbedbd83ff655913fe4 | 8fbe463322c675d1e1b11adbf5ddfbca77a71c3b | /utils/code.py | 56280c1e875f22c62163b1ab9e26a6ab05dc25c5 | [] | no_license | qhuydtvt/tk-poll | 7cdcd456c3fdca226a31868297df891d8ba2a890 | 1a0b9898f7ae9e3ab9f4d81ee8ee737b581de0d6 | refs/heads/master | 2021-05-06T13:36:04.976284 | 2018-10-28T09:42:42 | 2018-10-28T09:42:42 | 113,245,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | from shortuuid import ShortUUID
import string
alphabet = string.ascii_uppercase
helper = ShortUUID(alphabet=alphabet)
def code(length):
return helper.random(length=length)
def code_6():
return code(6)
| [
"qhuydtvt@gmail.com"
] | qhuydtvt@gmail.com |
fcd708af9bfc4b3f389194c77969d032fa8bedc7 | b5e10b2cfe261beca4a275d5b4b562acaa12bd06 | /zentral/contrib/monolith/events/__init__.py | c0fbc28569df9cce42affaf22b924388cb7df0d3 | [
"Apache-2.0"
] | permissive | mikemcdonald/zentral | 29dc0a6b3284be00ccc99ca3eb4ac2f4474c12a7 | 4aa03937abfbcea6480aa04bd99f4da7b8dfc923 | refs/heads/master | 2021-06-24T16:16:26.216665 | 2017-09-11T18:53:21 | 2017-09-11T18:53:21 | 103,157,487 | 0 | 1 | null | 2017-09-11T16:02:43 | 2017-09-11T16:02:43 | null | UTF-8 | Python | false | false | 3,038 | py | import logging
from zentral.core.events.base import BaseEvent, EventMetadata, EventRequest, register_event_type
logger = logging.getLogger('zentral.contrib.monolith.events')
ALL_EVENTS_SEARCH_DICT = {"tag": "monolith"}
class MonolithMunkiRequestEvent(BaseEvent):
event_type = "monolith_munki_request"
tags =... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
ff0eb43da6776fc0eac6b6f8c96830917c6afff1 | ba602dc67ad7bb50133aeb312f3c6c54627b3dec | /data/3955/WA_py/508593.py | 06675fcbb26d3e323e2a68115c546a11b7a4de8d | [] | no_license | Dearyyyyy/TCG | 0d21d89275906157372d775f33309ce337e6bc95 | 7b80de16de2d3f5d95a7c4ed95d45a9e38882e67 | refs/heads/master | 2020-12-27T23:19:44.845918 | 2020-02-04T01:59:23 | 2020-02-04T01:59:23 | 238,101,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | # coding=utf-8
while True:
a,b=input().split(" ")
a=str(a)
b=str(b)
for j in a:
c=j
break
for p in b:
d=p
if c==d:
print("YES")
else:
print("NO") | [
"543271544@qq.com"
] | 543271544@qq.com |
45b72754c05463b85f4f32701ecd1784ceb7c7ed | fb7f1533b03d5ea083da8c7dce448c914f25d5a3 | /bookbuilder/book/migrations/0003_chapter_image_paragraph.py | cc6c0e1cfbab3c14f2533278220074b4f6f12cee | [] | no_license | Mark-Seaman/Book-Builder | 7fccfe60afe10564e666fd125ae22b4362abfac2 | 18b5c14c11000da576ea16908b019de0aab50d0b | refs/heads/master | 2023-01-09T14:23:25.641654 | 2020-11-11T22:52:39 | 2020-11-11T22:52:39 | 293,887,524 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | # Generated by Django 3.1.1 on 2020-09-24 17:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('book', '0002_auto_20200915_1812'),
]
operations = [
migrations.CreateModel(
name='Chapter',
... | [
"Mark.Seaman@imac.net"
] | Mark.Seaman@imac.net |
ceabf86ddd55006ceff709e98ee806d5ec567bd0 | a54007706a09b387690f79fd7ffd889decad42f1 | /day32/18_特殊的where方法.py | dd0736b5dc3881b37cdcb9223e7e78cb823cfa21 | [] | no_license | lvah/201903python | d425534544a1f91e5b80b5ff0de5ca34037fe6e9 | 1415fcb7697dfa2884d94dcd8963477e12fe0624 | refs/heads/master | 2020-07-06T16:45:37.882819 | 2019-09-08T10:13:07 | 2019-09-08T10:13:07 | 203,082,401 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | import pandas as pd
import numpy as np
import string
# &**********series中的where方法运行结果和numpy中完全不同;
s1 = pd.Series(np.arange(5), index=list(string.ascii_lowercase[:5]))
# print(s1.where(s1 > 3))
# 对象中不大于3的元素赋值为10;
print(s1.where(s1 > 3, 10))
# 对象中大于3的元素赋值为10;
print(s1.mask(s1 > 3, 10))
| [
"root@foundation0.ilt.example.com"
] | root@foundation0.ilt.example.com |
fdc71274dc682931542826201880a243b8d96ffc | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/leetCode/DP/BitwiseORsOfSubarray.py | 436f6200d70c69b2173aec53cf6d08c850f9a229 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 2,238 | py | """
We have an array A of non-negative integers.
For every (contiguous) subarray B = [A[i], A[i+1], ..., A[j]] (with i <= j), we take the bitwise OR of all the elements in B, obtaining a result A[i] | A[i+1] | ... | A[j].
Return the number of possible results. (Results that occur more than once are only counted once... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
9a22c52ec3248feaf483c3d56b8667dd2f1e8c3d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_coding.py | a254547576f9229c8cf3428e8dfbf7c636522ad4 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py |
from xai.brain.wordbase.nouns._cod import _COD
#calss header
class _CODING(_COD, ):
def __init__(self,):
_COD.__init__(self)
self.name = "CODING"
self.specie = 'nouns'
self.basic = "cod"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9b803a8bef5841f4caa1aca59c39e166c2b74190 | dcab6930a95a3c5530e9b9bfba0e495667c98599 | /Data_Analysis/Data_camp_lecture/Manipulation(Pandas)/summarystatistics_ex4.py | e9819acf44e289ed025cdce3b8e86af349c1d586 | [] | no_license | wxlovolxw/GIWON-S-STUDY | 7db1fb30dfc16c8bc60592d0696434f1482ecdde | 6a622b5d372741b4f9d215f649235353f3e645cd | refs/heads/master | 2023-06-23T06:05:03.058692 | 2021-07-26T05:37:35 | 2021-07-26T05:37:35 | 283,812,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | # Sort sales_1_1 by date
sales_1_1 = sales_1_1.sort_values("date",ascending=True)
# Get the cumulative sum of weekly_sales, add as cum_weekly_sales col
sales_1_1["cum_weekly_sales"] = sales_1_1.weekly_sales.cumsum()
# Get the cumulative max of weekly_sales, add as cum_max_sales col
sales_1_1["cum_max_sales"] = sales_... | [
"62921934+wxlovolxw@users.noreply.github.com"
] | 62921934+wxlovolxw@users.noreply.github.com |
491113ea1a9970929b7916b82c56331f33432aee | abfcee924f57ee2011443703d4869f828e548910 | /account_move_import/__openerp__.py | be0b63316135994bd728cd6f5bb5313233dd3bcd | [] | no_license | Comunitea/external_modules | fb68cbf84cee1c6aa748f4f10e2999b9bb6aadf5 | 9718281e31b4a4f6395d8bed54adf02799df6221 | refs/heads/8.0 | 2023-09-03T17:18:37.652200 | 2022-02-10T09:33:33 | 2022-02-10T09:33:33 | 49,890,295 | 4 | 33 | null | 2022-10-10T11:34:24 | 2016-01-18T16:47:40 | Python | UTF-8 | Python | false | false | 1,427 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# Odoo, Open Source Management Solution
#
# Copyright (c) 2009-2015 Noviat nv/sa (www.noviat.com).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the G... | [
"omarcs7r@gmail.com"
] | omarcs7r@gmail.com |
1b735b2356f26bdb52cb9b1903b806556a163b23 | 6fce025097cebfd9d1dd37f6611e7fdfdbea90e6 | /rainfields/band_quest/data_loader.py | 1e4559f99a809d5068facd1ae4e57f3b0fd4f369 | [] | no_license | ANU-WALD/pluvi_pondus | ec0439d19acdcf4fdf712d6b14a1714297d661b2 | ff8680f7115ab2cb75138bf6705abb59618e47d1 | refs/heads/master | 2021-07-01T14:32:14.501631 | 2020-08-22T09:41:28 | 2020-08-22T09:41:28 | 138,804,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | import xarray as xr
import tensorflow as tf
import numpy as np
import datetime
import os
import random
tf.compat.v1.enable_eager_execution()
class gen:
def __call__(self, fname, band, jitter=False):
dsg = xr.open_dataset(fname.decode("utf-8"))
for t in dsg.time:
d = datetime.datetime... | [
"pablo.larraondo@anu.edu.au"
] | pablo.larraondo@anu.edu.au |
782fb8abbf0dca149bb77484bf1ff34f827f910f | 52fc25b679bfb962a17c18420d16692706f8697e | /WebScrape3.py | 9b2b919f854ffe3786389c0ee5b7495e3988c244 | [] | no_license | adanque/Data-Gathering-Techniques-using-APIs-and-Web-scraping-with-Python | 15fecd4da2f71a065cff6be2f2aa67410bc0bb75 | 7d3dc205e4aba5bd9444513fdce465d31805f178 | refs/heads/main | 2023-03-15T08:42:27.212870 | 2021-03-21T21:08:01 | 2021-03-21T21:08:01 | 349,256,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | #from BeautifulSoup import BeautifulSoup
from urllib.request import urlopen
from bs4 import BeautifulSoup as bs
soup = bs(
urllib.urlopen('kitco.com/kitco-gold-index.html').read()) | [
"adanque@gmail.com"
] | adanque@gmail.com |
6f46684631905e99275e3e85d175b2b16e8a63d0 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/03_model_fitting/merraRF882/391-tideGauge.py | 17fa5644f4a0e20042369b1e1ddd12b589bc5156 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,456 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 4 15:51:30 2020
This program is designed to validate a Random Forest
model by using the KFOLD method
@author: Michael Tadesse
"""
#import packages
import os
import glob
import numpy as np
import pandas as pd
from sklearn import metrics
from scipy import stats
import se... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
488dc76a0442a7b08a9df5d702b3718760e75d5e | 9851c3f47c1aa165bc0d239074fe238f82055875 | /LeetCode/0412. Fizz Buzz/solution.py | bc2af790c4bad5cd76258e058f6079a7df8e9841 | [
"Apache-2.0"
] | permissive | InnoFang/algo-set | 12f886dbec0da664327d26bcaf02c1316151a643 | 2419a7d720bea1fd6ff3b75c38342a0ace18b205 | refs/heads/master | 2023-03-16T09:51:24.631068 | 2023-03-13T11:08:54 | 2023-03-13T11:08:54 | 86,413,001 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | """
8 / 8 test cases passed.
Runtime: 28 ms
Memory Usage: 15.2 MB
"""
class Solution:
def fizzBuzz(self, n: int) -> List[str]:
return ["FizzBuzz" if i % 3 == 0 and i % 5 == 0 else \
"Fizz" if i % 3 == 0 else \
"Buzz" if i % 5 == 0 else \
str(i) for i in range(... | [
"innofang@outlook.com"
] | innofang@outlook.com |
9d0ed4a9bba517cc8e6767aa4c0fff77878212c4 | 1edfd072fae205d766e7c488f1af64f3af9fc23a | /src/python/sensors/microphone/microphone.py | c2f1fa4bf16a131848871f8e709d0692804cbd54 | [] | no_license | kth-social-robotics/multisensoryprocessing | 17fc96eb3776642de1075103eeb461125020c892 | 867abe6c921fbf930ac26e0f43a8be0404817bcd | refs/heads/master | 2021-01-21T11:50:16.348566 | 2018-11-05T14:48:42 | 2018-11-05T14:48:42 | 102,027,696 | 4 | 2 | null | 2018-02-20T15:14:22 | 2017-08-31T17:39:58 | C++ | UTF-8 | Python | false | false | 2,429 | py | import pyaudio
import sys
import time
import msgpack
sys.path.append('../..')
import numpy as np
import re
from shared import create_zmq_server, MessageQueue
import sys
import wave
import datetime
if len(sys.argv) != 2:
exit('please only supply sound card name')
device_names_string = sys.argv[1]
FORMAT = pyaudio.... | [
"pjjonell@kth.se"
] | pjjonell@kth.se |
bc7bec551e2c03787c3416668a264b12cadc4258 | c18e1fa174e1b0e6d56e9f1a8a3708099c3cd248 | /learning_from_mcvine/res_sims/Ei_30/E-7.98574177896_hkl-1.2631196834,-0.985399386564,0.344825718364/run.py | c8c8bb10719d8e3c5cea76da9babf3f432f8b649 | [] | no_license | pnave95/ORNL_public_research | e0662657b41969f3f3dc263ea4c62a042d85547a | 58cad7508f9d29c17af5419f05522c2f724e717e | refs/heads/master | 2021-01-20T00:39:58.308250 | 2017-06-22T20:03:57 | 2017-06-22T20:03:57 | 89,160,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | #!/usr/bin/env python
import mcvine.cli
from numpy import array
from mcvine_workflow.singlextal.resolution import use_res_comps as urc
beam_neutrons_path = '/SNS/users/p63/ORNL_public_research/MCViNE_Covmat_comparison/mcvine_resolution/beams/beam_30_1e9/out/neutrons'
instrument = urc.instrument('ARCS', '3.*meter', '13.... | [
"p63@analysis-node03.sns.gov"
] | p63@analysis-node03.sns.gov |
dee6e4cddedf7e291e576951014671d28cee09bb | 9b4bd7bb36d6e2d63973c724ca1ceb1c5e123ee1 | /launcher/deployment/migrations/0014_auto__add_field_deployment_remote_container_id__add_field_deployment_r.py | 5ad9d4cab5e81057db503de2651b3868113f73af | [] | no_license | zennro/launcher | 39de39345a15b1f544222503e5cf82992c1e62c8 | 25651d1ffa29adad18d1e003f69720bea9671d7c | refs/heads/master | 2020-04-20T19:16:59.492609 | 2014-02-27T16:22:30 | 2014-02-27T16:22:30 | 17,900,826 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,171 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Deployment.remote_container_id'
db.add_column(u'deployment_deployment', 'remote_container_id... | [
"filip@jukic.me"
] | filip@jukic.me |
e7959142b07770d2de4bb62d1aee359a7aaf3c7b | 161e01f92e3810edff17054851259e54a1432921 | /rapid7vmconsole/models/resources_user_account.py | 4c2e48f07118ad180885bdef93b98cfe414424cf | [
"MIT"
] | permissive | Tofuhippo/vm-console-client-python | f3ffa3257b1928791fef090404377b43c3ff28d5 | 3c856923be1caf22c29a5d309713b8940546b57b | refs/heads/master | 2020-06-26T04:07:37.251955 | 2019-07-29T20:45:40 | 2019-07-29T20:45:40 | 199,524,127 | 0 | 0 | MIT | 2019-07-29T20:42:37 | 2019-07-29T20:42:37 | null | UTF-8 | Python | false | false | 4,187 | py | # coding: utf-8
"""
Python InsightVM API Client
OpenAPI spec version: 3
Contact: support@rapid7.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from rapid7vmconsole.models.link import Link # noqa: F401,E501
from rapid7vmcon... | [
"zachary_youtz@rapid7.com"
] | zachary_youtz@rapid7.com |
aef74e6af7e67ac384a7f081ccb14a6821297285 | 7f76ae284ab2649def3da9d609beb4dbad9cb57d | /SnakesLadders/make_game.py | 718247d55956e1bcbfbca7d83b279b140d16efda | [
"CC0-1.0"
] | permissive | robclewley/DataScotties | 0f696fe32debe1aee4f5fdc8e5fac4d9b94eeb99 | 63cca1c2fb5ffd75f4c99507ac497ae7cefec04d | refs/heads/master | 2021-01-10T05:17:12.412352 | 2016-02-29T23:51:11 | 2016-02-29T23:51:11 | 50,062,479 | 9 | 17 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | import snakesladders as SL
def make_game_from_dict(setup):
"""
`setup` parameter is a dictionary, e.g. loaded from JSON file
Returns a GameFSM object configured from the dictionary.
"""
game = SL.GameFSM(setup['size'])
for s1, s2 in setup['snakes']:
game.all_states[s1].link = s2
for... | [
"rob.clewley@gmail.com"
] | rob.clewley@gmail.com |
9359c407b694b3443b2748371e2164ab388b93b7 | b155be1edeac8183736ababc64b52f07f15e3269 | /appengine/swarming/handlers_exceptions.py | dcacd94a38946b90180532a2ab8c9ffdfdf66fd9 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | luci/luci-py | d9ef3325a2b193d3f127363c012fe60860ea91fd | 10cc5fdcca53e2a1690867acbe6fce099273f092 | refs/heads/main | 2022-11-26T09:32:20.640834 | 2022-11-24T15:11:30 | 2022-11-24T15:11:30 | 33,140,918 | 84 | 36 | Apache-2.0 | 2022-11-23T13:56:13 | 2015-03-30T18:39:14 | Python | UTF-8 | Python | false | false | 477 | py | # Copyright 2021 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
"""Exceptions raised by methods called by prpc/endpoints handlers."""
class BadRequestException(Exception):
"""The request is invalid."""
clas... | [
"infra-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | infra-scoped@luci-project-accounts.iam.gserviceaccount.com |
55c96c6259dbae33f993fa4591c05bbd163957fc | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/41/usersdata/138/21859/submittedfiles/gravitacional.py | e1574ee30ef0e241c176b4af46ebad86bb520b4d | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
import funcoes
#ENTRADA
dimensao = input('Digite a dimensao das matrizes: ')
matrizA = input('Digite a Matriz A como uma única linha entre aspas: ')
matrizD = input('Digite a Matriz D como uma única linha entre aspas: ')
alfa = input('Digite o ... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7d2bda3c4063f35013dcfc03874bce7500ebf9a5 | 4f3d283fc8f07af65d857370294986dbc37c520c | /kata/done/masodfok2.py | 4a39751880ab6565e0832f3ad85bfe51d95b1aa1 | [] | no_license | csxeba/wiw | 69a36ed6fee4240d6ed545e4f4e6d60c46090921 | 7251eeaaa98424a95c5837bddd6979ddbf0dd1ec | refs/heads/master | 2020-06-28T11:46:21.993337 | 2017-02-16T21:20:25 | 2017-02-16T21:20:25 | 67,785,378 | 0 | 0 | null | 2016-09-13T09:52:33 | 2016-09-09T09:22:54 | Python | UTF-8 | Python | false | false | 965 | py | """
Ez egy dokumentációs string a programunk elején.
Ide szokták beírni, hogy mit csinál a program.
Ez a program definiál egy másodfokú egyenlet megoldó
függvényt és megold néhány másodfokú egyenletet.
Írj egy függvényt, ami paraméterként a másodfokú
egyenlet a, b és c együtthatóit várja:
ax**2 + bx + c = 0 forma ese... | [
"csxeba@gmail.com"
] | csxeba@gmail.com |
1436bed40ecd073c5238666b7406512170c8414c | d7cfe98faeb0fe1b4ce02d54d8bbedaca82764f7 | /1106_문제풀이/swea_5251_최소이동거리_solution(heap).py | 2182c4588a300d2baac9a7f0efef028ae351d25d | [] | no_license | Anseik/algorithm | 27cb5c8ec9692cf705a8cea1d60e079a7d78ef72 | 925404006b84178682206fbbb3b989dcf4c3dee9 | refs/heads/master | 2023-02-26T00:02:01.696624 | 2021-02-03T14:10:28 | 2021-02-03T14:10:28 | 301,753,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | import sys
import heapq
sys.stdin = open('swea_5251_최소이동거리_solution.txt')
def dijkstra_heap():
dist = [987654321] * (V + 1)
visited = [False] * (V + 1)
heap = []
dist[0] = 0
heapq.heappush(heap, (0, 0))
while heap:
w, v = heapq.heappop(heap)
if not visited[v]:
vis... | [
"kma9271@naver.com"
] | kma9271@naver.com |
352f6e17c51d8f3ef0e4cc8edce87cce6667407d | bb981602d111b709efec6279c3fccc6ef9efcc13 | /blog/migrations/0001_initial.py | 35b8244eae51e2a60ba29dd8edcdd84583a02924 | [] | no_license | sompodsign/shampad_blog_pro | 3897e5f95b48341b4058a5e42bb1ea70f1f9866e | b031b950e778b1534f433a33b84b37e93186e9b2 | refs/heads/main | 2023-02-27T13:15:00.984530 | 2021-02-11T16:06:01 | 2021-02-11T16:06:01 | 337,414,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,548 | py | # Generated by Django 3.1.5 on 2021-01-24 04:04
import ckeditor.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import taggit.managers
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"sompodsign@gmail.com"
] | sompodsign@gmail.com |
b0b78586d69b34335c3a959605e75ab6c38817cf | 73758dde83d1a1823c103e1a4ba71e7c95168f71 | /nsd2004/devweb/mysite/mysite/settings.py | 58e918a61f92bb516161549dc5c59d8d67ec1e17 | [] | no_license | tonggh220/md_5_nsd_notes | 07ffdee7c23963a7a461f2a2340143b0e97bd9e1 | a58a021ad4c7fbdf7df327424dc518f4044c5116 | refs/heads/master | 2023-07-02T01:34:38.798929 | 2021-05-12T08:48:40 | 2021-05-12T08:48:40 | 393,885,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,240 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.12.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"zhangzg@tedu.cn"
] | zhangzg@tedu.cn |
2d1650cd972e452861a4ceffa9d5cd93f683468b | c8c4f6c72ffc801cc24d69617c170c3ee093dc86 | /ReadMeCleaner.py | 8ae4a9379ea46720a301f31a7d8736eb1dde9e5f | [] | no_license | PasaOpasen/MathClasses | 831d85eab3c038841a40ae3e7b0896dcf6706993 | d11f124e09217fdc6deccfc59feb1a81378be1af | refs/heads/master | 2021-12-14T17:54:36.235687 | 2021-11-30T08:15:21 | 2021-11-30T08:15:21 | 237,803,522 | 8 | 3 | null | 2020-12-03T14:07:40 | 2020-02-02T16:53:44 | C# | UTF-8 | Python | false | false | 246 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 25 16:10:36 2020
@author: qtckp
"""
with open('README.md', 'r') as f:
t = f.readlines()
with open('README.md', 'w') as f:
for l in t:
f.write(l.lstrip() if l != '\n' else l)
| [
"qtckpuhdsa@gmail.com"
] | qtckpuhdsa@gmail.com |
827ef53c1ea908502f11b3dce5f71710fb9c9100 | 93bd129c0d189124bb690670b22c4a80edda95b2 | /pg/libs/log_lib.py | 41f888b4bebff25a45783e32903571945e0d7155 | [] | no_license | vdeandrade/32id-tomo | 0690564d263392f52c3d239bd7aec7a0bfc507e1 | ea0f5debf121648c1366c50f0a239ee938e6a32f | refs/heads/master | 2020-12-22T16:00:35.300527 | 2020-01-28T21:51:35 | 2020-01-28T21:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | '''
Log Lib for Sector 2-BM
'''
import logging
# Logging defines
__GREEN = "\033[92m"
__RED = '\033[91m'
__YELLOW = '\033[33m'
__ENDC = '\033[0m'
logger = None
info_extra={'endColor': __ENDC, 'color': __GREEN}
warn_extra={'endColor': __ENDC, 'color': __YELLOW}
error_extra={'endColor': __ENDC, 'color': __RE... | [
"decarlof@gmail.com"
] | decarlof@gmail.com |
54ddf4c157f62fca30b578f135e52359bccbe23c | a644ae249712bddb9cb1b8d2a75812c107736fe5 | /test/test2.py | 362c1e5a84349bcf063528ac0c493fc057941bfd | [
"MIT"
] | permissive | linsalrob/SEED_Servers_Python | a834b7ce763e9d1e89cb76530e847f3fe6422df8 | a2d2aa8c64547e94c3d6d031ebba46b8f9ed5716 | refs/heads/master | 2021-06-02T17:40:30.301307 | 2020-02-04T20:37:01 | 2020-02-04T20:37:01 | 38,650,052 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 234 | py |
import sys
from servers.SAP import SAPserver
server=SAPserver()
genomeID = '83333.1'
sys.stderr.write("Genome: " + str(genomeID) + "\n")
prots = server.all_proteins( {"-id" : genomeID} )
print("protein length " + str(len(prots)))
| [
"raedwards@gmail.com"
] | raedwards@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.