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
8876284a7a38ed4b8daedc0a42e8722bf52cf232
d3efc82dfa61fb82e47c82d52c838b38b076084c
/Autocase_Result/AbnormalRecovery-bak/bak/XOGW_RESTART_PGJK_IPO.py
4445242cb1451a5c0c23ad77987bf2e8101fe124
[]
no_license
nantongzyg/xtp_test
58ce9f328f62a3ea5904e6ed907a169ef2df9258
ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f
refs/heads/master
2022-11-30T08:57:45.345460
2020-07-30T01:43:30
2020-07-30T01:43:30
280,388,441
0
0
null
null
null
null
UTF-8
Python
false
false
3,296
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import sys sys.path.append("/home/yhl2/workspace/xtp_test") from Autocase_Result.AbnormalRecovery.ARservice.ARmainservice import * from utils.env_restart import * from service.ServiceConfig import * from xtp.api.xtp_test_case import * from xtp.api.config import ALL_USER # 执...
[ "418033945@qq.com" ]
418033945@qq.com
315aad6b034c11627f71ff2689bea84cf59bba2b
4a48593a04284ef997f377abee8db61d6332c322
/python/pyqt/pyqt5/widget_QTableWidget.py
ac6b9f412cde6986dc866f49d1e4a4e191922386
[ "MIT" ]
permissive
jeremiedecock/snippets
8feaed5a8d873d67932ef798e16cb6d2c47609f0
b90a444041c42d176d096fed14852d20d19adaa7
refs/heads/master
2023-08-31T04:28:09.302968
2023-08-21T07:22:38
2023-08-21T07:22:38
36,926,494
26
9
MIT
2023-06-06T02:17:44
2015-06-05T10:19:09
Python
UTF-8
Python
false
false
2,001
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # See https://pythonspot.com/en/pyqt5-table/ import sys from PyQt5.QtWidgets import QApplication, QWidget, QTableWidget, QTableWidgetItem, QVBoxLayout from PyQt5.QtCore import pyqtSlot class MyTableWidget(QWidget): def __init__(self): super().__init__() ...
[ "jd.jdhp@gmail.com" ]
jd.jdhp@gmail.com
9e90bb8d779df640147384a893d77b07f2666499
e44d00ffcea03f8656c40b3d4d993d51a38af3b0
/leetcode/June/J30_WordSearch.py
b5d00f420d9170ce3aba83d26afc9c78c2c1d6ed
[]
no_license
Ayushmanglani/competitive_coding
d6beec4f2b24aef34ea44c3a4a72074985b4a766
12325b09ae2bc6b169578b6a0a091069e14c9227
refs/heads/master
2023-06-12T04:43:41.130774
2021-07-03T13:01:37
2021-07-03T13:01:37
262,079,363
1
0
null
null
null
null
UTF-8
Python
false
false
2,032
py
WORD_KEY = '$' trie = {} for word in words: node = trie for letter in word: # retrieve the next node; If not found, create a empty node. node = node.setdefault(letter, {}) # mark the existence of a word in trie node ...
[ "ayush.manglani@gmail.com" ]
ayush.manglani@gmail.com
bcf362efa27bf9b944a7809c71d7d948778c7f5b
6351221d588668804e2df01936732eede4d96ed0
/leetcode-cn/Python/75.颜色分类.py
4313aa9c973f61f6ebfa98ea1f9aed7a874433b6
[]
no_license
LogicJake/code-for-interview
8e4ec9e24ec661a443ad42aa2496d78a1fbc8a3f
5990b09866696c2f3e845047c755fa72553dd421
refs/heads/master
2021-09-20T20:19:17.118333
2021-09-14T13:46:30
2021-09-14T13:46:30
102,202,212
3
2
null
null
null
null
UTF-8
Python
false
false
611
py
# # @lc app=leetcode.cn id=75 lang=python3 # # [75] 颜色分类 # # @lc code=start from typing import List class Solution: def sortColors(self, nums: List[int]) -> None: """ Do not return anything, modify nums in-place instead. """ p0 = 0 p2 = len(nums) - 1 i = 0 ...
[ "835410808@qq.com" ]
835410808@qq.com
39cf2d0c2245eb8d9b2517f31f7b202604cb3c5d
7f6ad639d41ad522ae73cb87ee61da48d83dcd27
/hamnadmin/hamnadmin/mailqueue/management/commands/send_queued_mail.py
301c769bebde70fefdcdf2b48a8d818b20aa583a
[]
no_license
mhagander/hamn
0aedaea24c32903480b580273ce272e26cc25d5b
c7271662c7726749d11e47f3064bec80b0e95c4a
refs/heads/master
2023-08-31T05:05:07.160357
2023-08-24T09:02:52
2023-08-24T09:02:52
729,253
2
2
null
2017-06-08T07:32:48
2010-06-19T13:48:04
Python
UTF-8
Python
false
false
1,411
py
# Script to send off all queued email. # # This script is intended to be run frequently from cron. We queue things # up in the db so that they get automatically rolled back as necessary, # but once we reach this point we're just going to send all of them one # by one. # from django.core.management.base import BaseComma...
[ "magnus@hagander.net" ]
magnus@hagander.net
c476dffe1424e9b39be4b00edfc9aad451a77a0f
a7c4478e6fdec7cf1a5f22b9eba5e11afc537503
/app/main/errors.py
129fff301ce85ae5f1f6f5d546092fe5a73a525a
[]
no_license
deveshaggrawal19/waasle
457fe686a18ce9d5162abc9b3fd5041d7938ee23
69e00a29175d0771d8ff920397dc08d37d3cc3dc
refs/heads/master
2021-04-26T22:19:32.317110
2016-11-17T18:51:17
2016-11-17T18:51:17
71,818,197
0
1
null
null
null
null
UTF-8
Python
false
false
186
py
from flask import render_template from ..main import main @main.app_errorhandler(404) # Will route all the errors def page_not_found(e): return render_template('404.html'), 404
[ "deveshaggrawal19@gmail.com" ]
deveshaggrawal19@gmail.com
ea193671f595da467bd64814a0cf7ba0d1e8566d
74515f9e059aa8a73e63d735abbac69d99713c69
/src/tournai/urban/dataimport/interfaces.py
c03599111093db2e481981427c2974da1bb70e5b
[]
no_license
IMIO/tournai.urban.dataimport_22
b7285eaf15aec02dfa778881d4c53b02cfcc1466
c1e9db3edeab1da154fdff2d078d88802ea7bb24
refs/heads/master
2020-12-30T16:02:30.853395
2018-03-23T14:14:23
2018-03-23T14:14:23
90,954,037
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
# -*- coding: utf-8 -*- """Module where all interfaces, events and exceptions live.""" from plone.theme.interfaces import IDefaultPloneLayer from imio.urban.dataimport.interfaces import IUrbanDataImporter class ITournaiUrbanDataimportLayer(IDefaultPloneLayer): """ Marker interface that defines a Zope 3 browser ...
[ "julien.jaumotte@imio.be" ]
julien.jaumotte@imio.be
d98242cf54552fe3ac8c77d0b97a6bdf536e0756
f93998e1c5c5c50bf20aed8d5b3517b12c333fdb
/wellsfargo/migrations/0003_auto_20160524_1127.py
2d1bd6aa4fbbf69c580061fe78dd97723e4b7eab
[ "ISC" ]
permissive
pombredanne/django-oscar-wfrs
637130651ab0d15289c4b3b3b86a42ada306fe96
991b79d2bd8a22512861bb3117c2bb5444c467b2
refs/heads/master
2021-01-17T23:41:10.424343
2016-05-28T01:20:30
2016-05-28T01:20:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,623
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-05-24 11:27 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependen...
[ "crgwbr@gmail.com" ]
crgwbr@gmail.com
6d5fc62c7c29032963e791bf480302878fd25bf3
e70a5960b60bf6c11df4248625d0188ededdd4c7
/Function/GUI/GUI_main/note_string.py
f13b73e15b9279706e1d53de8d8a68e661cfbc22
[]
no_license
wx2000qq/MoDeng
70be2802b6191855667cce5fe3cd89afda5fb9a9
9144bb79c237c0361b40f314b2c3123d58ac71cc
refs/heads/master
2020-11-24T11:52:08.829630
2019-12-15T04:54:25
2019-12-15T04:54:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,525
py
# encoding=utf-8 """ 将提示字符串规整在一起,防止在代码中占用太多地方 统一用note开头 """ # 初始化图片提示 note_init_pic = \ """ ---------------------------------------------------------------------------------- 小提示: 当前正在生成“三大指数”、“持仓stk”和“关注stk”的小时、日、周和月的MACD图! 以及日级别的KD、MOM、RSI、SAR等指标的图。 小时级别的MACD图半小时更新一次,其余图片启动软件时生成最新的,软件开启后暂不更...
[ "1210055099@qq.com" ]
1210055099@qq.com
2644c8ca38324e9a27a0a32fe48c7fa1e3a4b2ca
9d8a3a2c0a15dbf1f90d801e6d705d1212cf09af
/services/web__rionegro_com_ar.py
cd01900105e6f20fc372cc37095e8cfcbc691854
[]
no_license
rudolphos/NewsGrabber
f9bddc9a9b3a9e02f716133fd746f48cee635b36
86354fb769b2710ac7cdd5bd8795e43158b70ad2
refs/heads/master
2021-01-12T12:07:55.335079
2016-10-09T22:39:17
2016-10-09T22:39:17
72,316,773
0
0
null
2016-10-30T00:35:08
2016-10-30T00:35:08
null
UTF-8
Python
false
false
213
py
refresh = 4 version = 20160403.01 urls = ['http://www.rionegro.com.ar/', 'http://www.rionegro.com.ar/diario/ultimas-noticias.aspx'] regex = [r'^https?:\/\/[^\/]*rionegro\.com\.ar'] videoregex = [] liveregex = []
[ "Arkiver@hotmail.com" ]
Arkiver@hotmail.com
28bafc6808151dfca0608b676e7311af110fe7cd
926b3c52070f6e309567c8598248fd5c57095be9
/src/mmdeploy/mmdeploy/backend/ncnn/quant.py
7bddda80b7addab282d7ccd92746cae829ba53ec
[ "Apache-2.0" ]
permissive
fengbingchun/PyTorch_Test
410f7cd2303707b0141d433fb9d144a961e1f4c8
df5c2169f0b699bcd6e74adb4cb0e57f7dcd9348
refs/heads/master
2023-05-23T16:42:29.711338
2023-03-25T11:31:43
2023-03-25T11:31:43
167,339,907
15
4
null
2023-03-25T11:31:45
2019-01-24T09:24:59
C++
UTF-8
Python
false
false
2,119
py
# Copyright (c) OpenMMLab. All rights reserved. import os.path as osp from subprocess import call from typing import List import mmcv from .init_plugins import get_ncnn2int8_path def get_quant_model_file(onnx_path: str, work_dir: str) -> List[str]: """Returns the path to quant onnx and table with export result....
[ "fengbingchun@163.com" ]
fengbingchun@163.com
612a9cfe6c7e2307b32cf0a91d982b8221012697
5a648d5c62e640a8df8d18549eaf6e84a36dbd28
/findk.py
eb35c580c67910fc18867b2273ac68599fcf99ef
[ "MIT" ]
permissive
quake0day/oj
f5f8576f765a76f0f3a8b2c559db06279e93ef25
c09333d1738f8735de0d5d825db6f4b707585670
refs/heads/master
2021-01-21T04:27:34.035319
2016-03-30T02:19:15
2016-03-30T02:19:15
30,592,861
0
0
null
null
null
null
UTF-8
Python
false
false
650
py
a = "leetcode" b = "codyabs" k = 3 def findK(a,b, k): m = len(a) n = len(b) h = {} for i in xrange(m-k): h[a[i:i+k]] = True #dp = [[False] * n for _ in range(m)] #dp[0][0] = True for j in xrange(n-k): if b[j:j+k] in h: return True def findKDP(a,b,k): m = len...
[ "quake0day@gmail.com" ]
quake0day@gmail.com
fe0cc4da59a94d0df78036600816503cfbc23403
b2472967910be9c12576f0f97d33bca0576a8667
/atcoder-old/2014/0510_abc008/a.py
4994aed624cbe5ab8c5fa344b8f2893e6fc4367a
[]
no_license
ykmc/contest
85c3d1231e553d37d1235e1b0fd2c6c23f06c1e4
69a73da70f7f987eb3e85da503ea6da0744544bd
refs/heads/master
2020-09-01T22:56:10.444803
2020-07-14T11:36:43
2020-07-14T11:36:43
217,307,953
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
# Python3 (3.4.3) import sys input = sys.stdin.readline # ------------------------------------------------------------- # function # ------------------------------------------------------------- # ------------------------------------------------------------- # main # -------------------------------------------------...
[ "34961813+ykmc@users.noreply.github.com" ]
34961813+ykmc@users.noreply.github.com
e72b191ffe48b81cecb98695841bbeb849806378
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/pynput/pynput/_util.pyi
4202bcb5464e285fb3440fe793aaaedd606e541d
[ "Apache-2.0", "MIT" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
2,715
pyi
import sys import threading from _typeshed import Self from collections.abc import Callable from queue import Queue from types import ModuleType, TracebackType from typing import Any, ClassVar, Generic, TypeVar from typing_extensions import ParamSpec, TypedDict _T = TypeVar("_T") _AbstractListener_T = TypeVar("_Abstra...
[ "intellij-monorepo-bot-no-reply@jetbrains.com" ]
intellij-monorepo-bot-no-reply@jetbrains.com
251ac003ca5d4741bf87599906a0b4ccc9411585
a4f5d92264f6ff32021945fd70041dc90840af49
/docstrings/tt_postscript.py
55f971456aebc0ad3762348da706a64aa6edf0f4
[ "BSD-2-Clause-Views" ]
permissive
matplotlib/freetypy
95da1c583f05726de8bd4a18ec5008cd0539909d
601be6e816511a304302d6aafdbc24031c4df5df
refs/heads/master
2023-08-20T05:33:00.601874
2017-10-23T18:35:10
2017-10-23T18:35:10
11,617,229
5
7
null
2017-10-23T18:35:11
2013-07-23T19:32:39
Python
UTF-8
Python
false
false
2,488
py
# -*- coding: utf-8 -*- # Copyright (c) 2015, Michael Droettboom All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, t...
[ "mdboom@gmail.com" ]
mdboom@gmail.com
db77fde274d2b3dadccad3cddd3774d816d1ebe2
f571590e3c1787d183e00b81c408362e65671f76
/Exercisebolean.py
d76a0e8a16cc68826d3b91a1c9b8e7aaaa67d698
[]
no_license
neymarthan/project1
0b3d108dd8eb4b6fa5093525d469d978faf88b88
5e07f9dff181bb310f3ce2c7818a8c6787d4b116
refs/heads/master
2022-12-26T08:44:53.464398
2020-10-06T09:14:29
2020-10-06T09:14:29
279,528,778
0
0
null
null
null
null
UTF-8
Python
false
false
323
py
string=input('Enter the string: ') print('This is what I found about that string:') if string.isalnum(): print('The string is alphanumeric') if string.alphanumeric(): print('The string contains only alphabetic characters') if string.alphanumeric(): print('The letters in the string are all lowercase') ...
[ "INE-02@Admins-iMac-5.local" ]
INE-02@Admins-iMac-5.local
02e6babb21c73f39d790ed41dff2417ab0a89fd8
056ff03373c07ec60f715333f8af17ea6ad3c615
/labs/test_core.py
1bdffa5a16592f3036993621d1b6ab5f58b4bdd1
[ "MIT" ]
permissive
MITLLRacecar/racecar-daniel-chuang
f7da7f0c6ea7b86c5dff007996d6eb6d7a9de26c
5d22aac5cbbd77d9380f3e4afaf3e0009a1791de
refs/heads/master
2023-06-18T11:10:28.771574
2021-07-23T01:30:10
2021-07-23T01:30:10
383,568,872
0
0
MIT
2021-07-23T01:30:10
2021-07-06T18:47:38
Jupyter Notebook
UTF-8
Python
false
false
6,335
py
""" Copyright MIT and Harvey Mudd College MIT License Summer 2020 A simple program which can be used to manually test racecar_core functionality. """ ######################################################################################## # Imports #####################################################################...
[ "66690702+github-classroom[bot]@users.noreply.github.com" ]
66690702+github-classroom[bot]@users.noreply.github.com
fa47f633b556f75ecc66e442fe8d82e3c675b25d
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-sdrs/huaweicloudsdksdrs/v1/model/reverse_protection_group_request_body.py
8eae3df950173a01db830f9ccf7363fab8f36972
[ "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
3,564
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ReverseProtectionGroupRequestBody: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The k...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
d12b7c803c0ee26c17895955b0173ae850f57ec0
96933e173dcebcd611188b6fba982ca9cf975e1c
/qa/migrations/0007_remove_question_tags.py
fc3e9673ea51d72cfd2f1b2f275a7f9e3423e08b
[]
no_license
hift/django-qa
7d640181312c672936a6f0b7fa2f8041350a0e4f
57bc418e0b9f611872b50968862dd469353cb050
refs/heads/master
2021-01-10T10:41:16.437404
2015-11-22T07:54:48
2015-11-22T07:54:48
45,435,624
0
0
null
null
null
null
UTF-8
Python
false
false
342
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('qa', '0006_question_tags'), ] operations = [ migrations.RemoveField( model_name='question', name='ta...
[ "=" ]
=
f4d577e2f19b9ff16f9ff16c9b44e3f73ed349cd
0facb323be8a76bb4c168641309972fa77cbecf2
/Configurations/HWWSemiLepHighMass/nanoAODv4v5/2016/Mix/nuisances.py
9e45ef184499d676695781cd4842074beab43449
[]
no_license
bhoh/SNuAnalytics
ef0a1ba9fa0d682834672a831739dfcfa1e7486b
34d1fc062e212da152faa83be50561600819df0e
refs/heads/master
2023-07-06T03:23:45.343449
2023-06-26T12:18:28
2023-06-26T12:18:28
242,880,298
0
1
null
2020-02-25T01:17:50
2020-02-25T01:17:49
null
UTF-8
Python
false
false
6,767
py
import os SITE=os.uname()[1] xrootdPath='' if 'iihe' in SITE : xrootdPath = 'dcap://maite.iihe.ac.be/' treeBaseDir = '/pnfs/iihe/cms/store/user/xjanssen/HWW2015/' elif 'cern' in SITE : treeBaseDir = '/eos/cms/store/group/phys_higgs/cmshww/amassiro/HWWNano/' elif 'sdfarm' in SITE: xrootdPath = 'root://...
[ "soarnsoar@gmail.com" ]
soarnsoar@gmail.com
b2ee99ab61869de3e0076e3216e7a06574b7fbc5
75e1d9446cb1fca5c6a79ad0ba7f38268df1161f
/Python Programs/both-adjacent-elements-odd-or-even.py
cc2b13fa70a753c1820a7d007e5bebba5611bfd7
[ "CC0-1.0" ]
permissive
muhammad-masood-ur-rehman/Skillrack
6e9b6d93680dfef6f40783f02ded8a0d4283c98a
71a25417c89d0efab40ee6229ccd758b26ae4312
refs/heads/main
2023-02-03T16:45:54.462561
2020-12-23T08:36:28
2020-12-23T08:36:28
324,221,340
4
1
CC0-1.0
2020-12-24T19:12:54
2020-12-24T19:12:54
null
UTF-8
Python
false
false
953
py
Both Adjacent Elements - Odd or Even Both Adjacent Elements - Odd or Even: Given an array of N positive integers, print the positive integers that have both the adjacent element values as odd or even. Boundary Condition(s): 3 <= N <= 1000 Input Format: The first line contains N. The second line contains N elements sep...
[ "36339675+hemanthtejadasari@users.noreply.github.com" ]
36339675+hemanthtejadasari@users.noreply.github.com
226db6ef29278e9c5bed42cffc9f0ecef5632813
53c224a6eee8c6869bc5c292cc8783ea934f0656
/data_generator.py
b0417b0ce56cec970cf6c200a3ac5465138a59c4
[ "MIT" ]
permissive
kunato/Deep-Image-Matting
05909d276dd86cc3d59eacf1865511375d6b3f54
84baf4ce893083a940d9bfe224515f09787e9289
refs/heads/master
2020-05-22T18:35:43.610713
2019-05-14T15:44:34
2019-05-14T15:44:34
186,475,076
0
0
MIT
2019-05-13T18:33:15
2019-05-13T18:33:14
null
UTF-8
Python
false
false
5,986
py
import math import os import random from random import shuffle import cv2 as cv import numpy as np from keras.utils import Sequence from config import batch_size from config import fg_path, bg_path, a_path from config import img_cols, img_rows from config import unknown_code from utils import safe_crop kernel = cv.g...
[ "foamliu@yeah.net" ]
foamliu@yeah.net
2e3c056ddb9c2a6b10f4f8034e24097ff42c81da
2dfbb97b47fd467f29ffb26faf9a9f6f117abeee
/leetcode/1191.py
9521fa28400a3f61456c8bb3b23adb9a49256601
[]
no_license
liuweilin17/algorithm
0e04b2d36dfb6b7b1b0e0425daf69b62273c54b5
d3e8669f932fc2e22711e8b7590d3365d020e189
refs/heads/master
2020-12-30T11:03:40.085105
2020-04-10T03:46:01
2020-04-10T03:46:01
98,844,919
3
1
null
2018-10-05T03:01:02
2017-07-31T03:35:14
C++
UTF-8
Python
false
false
1,534
py
########################################### # Let's Have Some Fun # File Name: 1191.py # Author: Weilin Liu # Mail: liuweilin17@qq.com # Created Time: Sun Sep 15 11:17:08 2019 ########################################### #coding=utf-8 #!/usr/bin/python #1191. K-Concatenation Maximum Sum class Solution: # notice th...
[ "liuweilin17@qq.com" ]
liuweilin17@qq.com
6366a51b34c9707afc49632e677013a815ca55db
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/jSjjhzRg5MvTRPabx_19.py
eb3db41a4579e7f71b9bfce3b4dbb68b86841701
[]
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
935
py
""" Given a list of strings (nouns), list them up in a complete sentence. ### Examples sentence(["orange", "apple", "pear"]) ➞ "An orange, an apple and a pear." sentence(["keyboard", "mouse"]) ➞ "A keyboard and a mouse." sentence(["car", "plane", "truck", "boat"]) ➞ "A car, a plane, a truck a...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
133ecc63c3b8010b2e081e25503fe33369029499
f9a5e7233875989f994438ce267907d8210d60a1
/test/pump_sensor/metalearning/knn_ranking/RMSE/k=5/univariate_statistical_test_F-test/sensor_prediction_F-test_AUCROC.py
07f3ad3de4c6f7b7527d340a0b8f360e9da3c1b9
[]
no_license
renoslyssiotis/When-are-Machine-learning-models-required-and-when-is-Statistics-enough
da8d53d44a69f4620954a32af3aacca45e1ed641
6af1670a74345f509c86b7bdb4aa0761c5b058ff
refs/heads/master
2022-08-29T20:21:57.553737
2020-05-26T18:03:46
2020-05-26T18:03:46
256,439,921
0
0
null
null
null
null
UTF-8
Python
false
false
2,201
py
import sys, os, pickle from pathlib import PurePath current_dir = os.path.realpath(__file__) p = PurePath(current_dir) sys.path.append(str(p.parents[7])+'/metalearners/knn_ranking_method/RMSE') from KNN_ranking_k_5_RMSE import KNN_ranking #Load the selected meta-dataset after performing zero-variance threshold with op...
[ "rl554@cam.ac.uk" ]
rl554@cam.ac.uk
ccdaa4456177883986864fd3be8c8e5ff907ebe3
5e944167564f1c85431b2244cb9181a058b0ceeb
/homework1/exercise1.py
cdcc8f97bf7ceb91f7685291401cf5dc92596cd6
[]
no_license
uwhpsc-2016/homework1_solution
4519ddec35e29b0b15561cd5b066a593edb3c499
d2b68d2c6aaf6a84d34405ec3b352a6ecc6c346c
refs/heads/master
2020-12-26T21:37:31.910378
2016-05-05T02:58:46
2016-05-05T02:58:46
55,077,710
0
5
null
null
null
null
UTF-8
Python
false
false
804
py
def collatz_step(n): """Returns the result of the Collatz function. The Collatz function C : N -> N is used in `collatz` to generate collatz sequences. Parameters ---------- n : int Returns ------- int """ if (n < 1): raise ValueError('n must be >= 1') if (n =...
[ "cswiercz@gmail.com" ]
cswiercz@gmail.com
6ff1497c503be08c386828ec59da8a6dcd17b03b
5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5
/blimgui/dist/OpenGL/raw/GLX/_glgets.py
76bcbaca63d3763cb619e8e125e243064e9565cc
[ "MIT" ]
permissive
juso40/bl2sdk_Mods
8422a37ca9c2c2bbf231a2399cbcb84379b7e848
29f79c41cfb49ea5b1dd1bec559795727e868558
refs/heads/master
2023-08-15T02:28:38.142874
2023-07-22T21:48:01
2023-07-22T21:48:01
188,486,371
42
110
MIT
2022-11-20T09:47:56
2019-05-24T20:55:10
Python
UTF-8
Python
false
false
279
py
"""glGet* auto-generation of output arrays (DO NOT EDIT, AUTOGENERATED)""" try: from OpenGL.raw.GL._lookupint import LookupInt as _L except ImportError: def _L(*args): raise RuntimeError( "Need to define a lookupint for this api" ) _glget_size_mapping = _m = {}
[ "justin.sostmann@googlemail.com" ]
justin.sostmann@googlemail.com
5a8684e4aee28c9d8a04f66bf08b0763bd885b1b
d04f2c6d22ec189cd725cf2e7c882e841cbada67
/nonlineer-3.py
5098029431ddac53df11179b3f63fffc6f3d2471
[ "Unlicense" ]
permissive
nyucel/numerical-methods
e2d0c13b7ae752da4d765bc76a04499ad998da6f
14824fa3b85b4337b9c95c0b79b2b91a644ac18d
refs/heads/master
2021-12-15T11:55:12.250619
2018-04-17T18:58:21
2018-04-17T18:58:21
82,589,234
52
83
Unlicense
2023-08-15T22:28:25
2017-02-20T18:28:56
Python
UTF-8
Python
false
false
254
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- def f(x,y): return(x**2+x*y-10) def g(x,y): return(y+3*x*y**2-57) xi = float(input("x için başlangıç değerini girin: ")) yi = float(input("y için başlangıç değerini girin: ")) print(xi,yi)
[ "necdetyucel@gmail.com" ]
necdetyucel@gmail.com
5123cbb3e967f205b9a8fe82e3a467da31dd9ff5
1508b3e3f56e750e38db4334343beedcbb2f9c95
/519/client.py
20c724b5ee583cac67e228e1cc2fa1481b071e6d
[]
no_license
kellyseeme/pythonexample
3bb325e31c677160c1abd6c3f314f7ef3af55daa
3eab43cdfa5c59a0f4553de84c9de21e5ded44bb
refs/heads/master
2021-01-21T13:52:43.076697
2016-05-30T06:32:37
2016-05-30T06:32:37
51,348,486
0
0
null
null
null
null
UTF-8
Python
false
false
1,237
py
#!/usr/bin/env python import socket import time import processbar import time HOST = '192.168.1.60' PORT = 9999 def recv_all(socketobj,file_name,file_size): f = open(file_name,'w') while file_size > 0: if file_size <= 1024: processbar.progressbar(10,10) data = socketobj.recv(10...
[ "root@python.(none)" ]
root@python.(none)
1356e86996b557a0fb21231df0e57fbd65351d5c
f99cca94f74c69bc518e298c14140534e18eabd3
/OrcApi/Run/Test/TestServiceRun.py
9c2a51fb2de8a7362bf3f8d3d40beca6dcf424bc
[]
no_license
pubselenium/OrcTestToolsKit
d6d838d9937d2c4d86941e317cb3ff096b58e52d
f3ccbbceaed4f4996f6907a2f4880c2fd3f82bbb
refs/heads/master
2021-04-29T05:15:53.240714
2016-12-30T09:42:53
2016-12-30T09:42:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
704
py
import unittest from OrcLib.LibTest import OrcTest from OrcApi.Run.RunDefMod import RunCore class TestService(unittest.TestCase): def test_get_case_list(self): """ Get page usl :return: """ OrcTest.test_print_begin() _service = RunCore() _service.search_l...
[ "orange21cn@126.com" ]
orange21cn@126.com
3313864acba61b42751b05e32ea6f94bb50c4c20
a2e638cd0c124254e67963bda62c21351881ee75
/Extensions/Default/FPythonCode/ColumnDefinitionUtils.py
d2f8e37da770a652927cd264b31a059f22ee2a8e
[]
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
381
py
def GetPairOffParentReference(settlement): pairOffReference = None if settlement.PairOffParent(): pairOffReference = settlement.PairOffParent() if not pairOffReference: for child in settlement.Children(): pairOffReference = GetPairOffParentReference(child) if pairOff...
[ "81222178+nenchoabsa@users.noreply.github.com" ]
81222178+nenchoabsa@users.noreply.github.com
0da214ab4195098228be3d27bdd5023c72c5940a
b9de33c6fb310ef69cba728b9de1a31165c3a031
/chapter_32/class-gotchas-super-multiple-inheritance.py
e2a2df1637b44a0d8209f30663b0da3f7c77b3d2
[]
no_license
bimri/learning-python
2fc8c0be304d360b35020a0dfc16779f78fb6848
5f2fcc9a08f14e1d848530f84ce3b523d1f72aad
refs/heads/master
2023-08-12T20:30:09.754468
2021-10-15T20:53:49
2021-10-15T20:53:49
377,515,946
0
0
null
null
null
null
UTF-8
Python
false
false
3,261
py
"Multiple Inheritance: Order Matters" # Python always searches superclasses from left to right, according to their order in the header line. # class ListTree: # def __str__(self): ... # class Super: # def __str__(self): ... # class Sub(ListTree, Super): # Get List...
[ "bimri@outlook.com" ]
bimri@outlook.com
313570f597eb15ae6444830bf79aed976b250e96
80a3d98eae1d755d6914b5cbde63fd10f5cc2046
/autox/autox_video/mmaction2/mmaction/models/localizers/ssn.py
3136d651f6d76f4be04410605d7dcf7a2d0a34a4
[ "Apache-2.0" ]
permissive
4paradigm/AutoX
efda57b51b586209e1d58e1dab7d0797083aadc5
7eab9f4744329a225ff01bb5ec360c4662e1e52e
refs/heads/master
2023-05-24T00:53:37.109036
2023-02-14T14:21:50
2023-02-14T14:21:50
388,068,949
752
162
Apache-2.0
2022-07-12T08:28:09
2021-07-21T09:45:41
Jupyter Notebook
UTF-8
Python
false
false
5,160
py
# Copyright (c) OpenMMLab. All rights reserved. import torch import torch.nn as nn from .. import builder from ..builder import LOCALIZERS from .base import BaseTAGClassifier @LOCALIZERS.register_module() class SSN(BaseTAGClassifier): """Temporal Action Detection with Structured Segment Networks. Args: ...
[ "caixiaochen@4ParadigmdeMacBook-Pro.local" ]
caixiaochen@4ParadigmdeMacBook-Pro.local
4f7d9e2c17b601aaa0a2a0c3417e9963182cc6cf
9b1e97850f55d839c1c6f7d93187af90bf9120a5
/0x0F-python-object_relational_mapping/model_state.py
ee5227fff95d5feb70eb50c3b7eeefad7a80192e
[]
no_license
PilarPinto/holbertonschool-higher_level_programming
543271fb7f85a23745f54ac44e2fd1ef0ff452ce
8be531a14a280235c2a9cee7f072d88cea8b9921
refs/heads/master
2020-09-29T00:19:01.460334
2020-05-15T01:58:51
2020-05-15T01:58:51
226,900,539
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
#!/usr/bin/python3 '''Using sqlalchemy for State definition''' from sqlalchemy import Column, Integer, String from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class State(Base): __tablename__ = 'states' id = Column(Integer, unique=True, nullable=False, primary_key=True) n...
[ "piapintoch@unal.edu.co" ]
piapintoch@unal.edu.co
237f5c9434aa81b5dc82ca5b556e349347c56299
3ae73fa03a2e99bb108a923606c293674b3db304
/Django/beltreview bck_up/apps/login_reg/migrations/0001_initial.py
aeabc3aa8caef9da17f0c79b92cb6f91ada3f336
[]
no_license
asdfkerub/DojoAssignments
51bef584783d799469db85ff66983bac4f404e7f
1eb0b5fa8ac881ce6d0b6765b104f806bdb71f5c
refs/heads/master
2021-01-11T16:47:51.207662
2017-03-06T01:11:28
2017-03-06T01:11:28
79,671,651
0
0
null
2017-03-06T01:11:29
2017-01-21T20:43:04
Python
UTF-8
Python
false
false
875
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-22 20:29 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='User',...
[ "q.kerubkim@gmail.com" ]
q.kerubkim@gmail.com
54e239592280383f005aee0b8c80612e8cc24ee2
e05e2d26e38ce80530e3458ce3c8e02f16e5cbe6
/CoinAnalysis/vs_non.py
9d16ac66cce5ad8d5800e2c994c9734be85bd377
[]
no_license
jegutman/hearthstone_decks
96acca7e040cb9b89253a867217655ce8cdf2756
95d4563c46618a9efccc10dbb34094258ec5bce7
refs/heads/master
2020-12-25T08:16:29.892068
2019-09-12T05:28:16
2019-09-12T05:28:16
102,289,609
3
0
null
2018-07-06T22:35:17
2017-09-03T19:40:44
Python
UTF-8
Python
false
false
2,182
py
from archetypes import aggro archetypes = [] data = {} line_data = [] decks = [] with open('CoinData.csv') as f: for line in f: if line[0] == "#": continue tmp = line.strip().split(',') deck_a, deck_b, first, pct, games = tmp if deck_a not in aggro or deck_b in aggro: c...
[ "jegutman@gmail.com" ]
jegutman@gmail.com
554fb914629e5e2cba22ade77f00e4a6143b04ab
bdce502dce36a5f53ed7e376c5783c8bcbe6a98e
/migrations/versions/55bd2e159b91_added_type_to_coach.py
0b8c796002c87ae489801a7c293d32952ecaf4fb
[ "MIT" ]
permissive
jeffthemaximum/jeffPD
b05b02300653b34c235adb2de46c91e18604bcf4
4ac2584117c45c70b77bebe64676b0138577e14f
refs/heads/master
2021-01-01T19:38:30.041034
2015-11-17T14:35:57
2015-11-17T14:35:57
41,260,368
0
0
null
null
null
null
UTF-8
Python
false
false
754
py
"""added type to coach Revision ID: 55bd2e159b91 Revises: 1abfb1cdc0ea Create Date: 2015-10-10 11:52:37.381983 """ # revision identifiers, used by Alembic. revision = '55bd2e159b91' down_revision = '1abfb1cdc0ea' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alem...
[ "frey.maxim@gmail.com" ]
frey.maxim@gmail.com
979ad3afa724f60333fec8a0444de42bd250d08f
9a46784244d544445c01c6f0d564f4da65efcfaf
/CodeUltimateFlaskCourse/06. Member API/authentication/app.py
a94fe21a10ee8b8a8bc2c9372c5c21fd4617e606
[]
no_license
ammbyrne/Flask
f55a606ec234c6a00b4d264a48e11b2f487d4ef7
7922ab46b8a4c388346043d2393173e7e49e43bb
refs/heads/main
2023-04-19T16:07:08.224824
2021-05-07T03:21:44
2021-05-07T03:21:44
365,101,770
0
0
null
null
null
null
UTF-8
Python
false
false
3,120
py
from flask import Flask, g, request, jsonify from database import get_db app = Flask(__name__) api_username = 'admin' api_password = 'password' @app.teardown_appcontext def close_db(error): if hasattr(g, 'sqlite_db'): g.sqlite_db.close() @app.route('/member', methods=['GET']) def get_membe...
[ "andy_m_byrne@yahoo.co.uk" ]
andy_m_byrne@yahoo.co.uk
d21741515b51c9b3f25b2293bec7070258246c98
a829617f9ad158df80a569dd02a99c53639fa2c6
/test/hep/table/exception1.py
826950668cd50b0628b9344a6d73d01ea3f9fb31
[]
no_license
alexhsamuel/pyhep
6db5edd03522553c54c8745a0e7fe98d96d2b7ae
c685756e9065a230e2e84c311a1c89239c5d94de
refs/heads/master
2021-01-10T14:24:08.648081
2015-10-22T13:18:50
2015-10-22T13:18:50
44,745,881
1
0
null
null
null
null
UTF-8
Python
false
false
897
py
#----------------------------------------------------------------------- # imports #----------------------------------------------------------------------- from __future__ import division import hep.table from hep.test import compare, assert_ #-----------------------------------------------------------------------...
[ "alex@alexsamuel.net" ]
alex@alexsamuel.net
5b22188159510783109706d9d6aee73b30184cd5
7ac1f3e38dab2899d6dc0d02cc1ace3934fb0805
/pygame/tank_game/code.py
250360ff8a4e559005ce17747cd5bdc67f609b6e
[]
no_license
amanbhal/pythonCodes
3fd9357211fe7d06c6972e7a4f469df1ff3cf60a
49d17ce395d15e7c8497af8455790ecb876a0d49
refs/heads/master
2016-08-12T06:12:19.108863
2015-11-16T20:42:11
2015-11-16T20:42:11
46,301,101
0
0
null
null
null
null
UTF-8
Python
false
false
211
py
num = int(raw_input()) bnum = bin(num) convert = [] for x in bnum[2:]: if x=='0': convert.append('1') else: convert.append('0') print convert convert = "".join(convert) result = int(convert,2) print result
[ "amandeep.bhal92@gmail.com" ]
amandeep.bhal92@gmail.com
b8830ee9a2275eae167cf660353d0f991769fe44
19f1612a24a343198302fe1b88d15a2d94a5d91f
/Mod_Divmod.py
67fedd76cd0160039410121cd5b1209d8232ae5e
[]
no_license
TheShubham-K/HackerRank
0a8f15051e5466292d880ba3d334bc19733c4ab7
a51bcfa4dee85258787cc5bc96976045b05a963f
refs/heads/master
2022-11-09T16:24:35.595762
2020-06-29T15:56:39
2020-06-29T15:56:39
266,571,298
1
0
null
null
null
null
UTF-8
Python
false
false
135
py
from __future__ import division n = int(input()) m = int(input()) ans = divmod(n,m) print(str(ans[0])+"\n"+str(ans[1])+"\n"+str(ans))
[ "subham.kumar032@gmail.com" ]
subham.kumar032@gmail.com
1e3807db28c7349317eeba39285686bc12b95757
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/immutability_policy_properties_py3.py
feb15f507cfde35317d9e13017493cd6dc5c0c5a
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
2,478
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 ...
[ "laurent.mazuel@gmail.com" ]
laurent.mazuel@gmail.com
8c492766c5f8adb62877bbbcc99d29864d40fc45
5a29fbaa46a71eff0ac677b42e393b449e313085
/upsea/Ea_11_Dma_pg_01/EA/Analyzer.py
2ce51633ca7eb8fbc4a8352f2e2861911de253d8
[ "MIT" ]
permissive
UpSea/PyAlgoTradeMid
548d181d5d18448f75f205214e9d19b7356a5730
c8edcbc089d92dbfbb8bb25af92a039146f6c6da
refs/heads/master
2021-01-20T19:57:21.406976
2016-07-25T17:23:00
2016-07-25T17:23:00
62,429,518
0
1
null
null
null
null
UTF-8
Python
false
false
2,460
py
import numpy as np import matplotlib.dates as mpd import sys,os xpower = os.path.abspath(os.path.join(os.path.dirname(__file__),os.pardir,os.pardir,os.pardir,os.pardir,'thirdParty','pyqtgraph-0.9.10')) sys.path.append(xpower) import pyqtgraph as pg xpower = os.path.abspath(os.path.join(os.path.dirname(__file__),os.par...
[ "upsea@upsea.cn" ]
upsea@upsea.cn
3e799491be2198eeecb6afab23a3bc4df7ac236a
d785e993ed65049c82607a1482b45bddb2a03dda
/nano2017/cfg_fr_2018/ZZTo4L_ext2_cfg.py
ada0a293740e2508a83fed849b413d5fd23bc72b
[]
no_license
PKUHEPEWK/ssww
eec02ad7650014646e1bcb0e8787cf1514aaceca
a507a289935b51b8abf819b1b4b05476a05720dc
refs/heads/master
2020-05-14T04:15:35.474981
2019-06-28T23:48:15
2019-06-28T23:48:15
181,696,651
0
0
null
null
null
null
UTF-8
Python
false
false
1,358
py
from WMCore.Configuration import Configuration from CRABClient.UserUtilities import config, getUsernameFromSiteDB config = Configuration() config.section_("General") config.General.requestName = 'ZZTo4L_ext2_2018' config.General.transferLogs= False config.section_("JobType") config.JobType.pluginName = 'Analysis' con...
[ "jiexiao@pku.edu.cn" ]
jiexiao@pku.edu.cn
f74eb99bfc1bda4bca7cabb334cbd30400f2bc04
73e53e16fc1557447ac8b6d280d916adaa36c846
/server
e15c737999e7404d2c732e48fad8b6e4ab1df6f6
[]
no_license
apkallum/monadical.com
abc92cdd6ce49c7d6024df710ec67de102c787ed
7b8fa76072ad0eeae2cb515591b345ce29a64dd6
refs/heads/master
2020-08-24T18:53:32.470134
2019-10-22T03:42:32
2019-10-22T03:42:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,706
#!/usr/bin/env python3 import sys import json from datetime import datetime from flask import Flask, render_template, redirect ### Config app = Flask(__name__) CONFIG_FILE = 'content.json' HOST = 'http://127.0.0.1:5000' def load_config(fname=CONFIG_FILE): """read the content.json file and load it as a dictiona...
[ "git@nicksweeting.com" ]
git@nicksweeting.com
5f05a3951089f1baf3863c3630cf00d923676bdb
37f1563cdacf4b37b5b927b892538218aae79c77
/hard/array/firstMissingPositive.py
b4c1f73b2ee27e1d1e11c3720b64cf11a4bd523c
[]
no_license
unsortedtosorted/elgoog
9dee49a20f981305910a8924d86e8f2a16fe14c2
5be9fab24c0c1fd9d5dc7a7bdaca105f1ca873ee
refs/heads/master
2020-04-15T00:51:12.114249
2019-05-19T04:37:24
2019-05-19T04:37:24
164,254,079
0
0
null
null
null
null
UTF-8
Python
false
false
709
py
""" 41. First Missing Positive Runtime : O(N) """ class Solution(object): def firstMissingPositive(self, nums): """ :type nums: List[int] :rtype: int """ if not nums: return 1 for i, num in enumerate(nums): whil...
[ "noreply@github.com" ]
unsortedtosorted.noreply@github.com
55412c60ad3960f8a8780d3ffcf2369eac11a1b9
98c86ee65aac21c8363f627f99b9da3acd777b35
/Actividades en Clases/Actividad 04/Solución/botella.py
43df3345b727c6c4c291d9e75fc5811d85f464a2
[]
no_license
bcsaldias/syllabus
ef7e5eff0c8fc1ab5a28d12cc3f18ae998ad5c52
ce30d74fc62861c3464301b5277ca68545209371
refs/heads/master
2021-01-24T01:11:22.739918
2015-03-20T00:24:54
2015-03-20T00:24:54
32,551,385
1
0
null
2015-03-19T23:20:50
2015-03-19T23:20:50
null
UTF-8
Python
false
false
350
py
__author__ = 'patricio_lopez' class Botella: def __init__(self, litros=1): self.litros = litros @property def etiqueta(self): return "DCC-Cola" def beber(self): print("Deliciosa bebida {}".format(self.etiqueta)) def __str__(self): return "{} de {} litros.".forma...
[ "lopezjuripatricio@gmail.com" ]
lopezjuripatricio@gmail.com
cbe81a3493a79fc65b094d0b27ab6eec20764273
638929e3a47b9ea8c0cc98336edca104c6af5e3a
/lib_catalog/catalog/migrations/0001_initial.py
172abe90b7e0935c09374bc69fe83df2b3708d7c
[]
no_license
burbaljaka/lib_catalog
190e944c798c8d80685c5c9a65b663fa116f5404
15e971b6d17dfc8f01959ba538b304969c0f51a9
refs/heads/master
2023-06-01T06:39:47.841908
2022-05-17T19:52:46
2022-05-17T19:52:46
217,097,504
0
1
null
2023-05-07T02:35:21
2019-10-23T15:57:50
JavaScript
UTF-8
Python
false
false
3,038
py
# Generated by Django 3.0.5 on 2020-05-02 10:11 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Author', fields=[ ...
[ "kapitonov.timur@gmail.com" ]
kapitonov.timur@gmail.com
7e125b5f5c7032b1a6311ab010c2cd68bed0d063
4fdb8e90ab2bed9bc534155806314d4b6d0047ae
/database/migrations/0009_auto_20150224_1925.py
e56dc8666a88493c29a8c0aee5569d0da248cc57
[]
no_license
gbriones1/MODB
8ca04df5bc665d5b3dcc3a4f89fa167b21047d7d
b2aa15efe155a1e813917c720107c33cb56eef1b
refs/heads/master
2021-01-18T23:21:16.545638
2016-07-28T15:42:37
2016-07-28T15:42:37
32,994,355
0
0
null
null
null
null
UTF-8
Python
false
false
782
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('database', '0008_auto_20150223_1141'), ] operations = [ migrations.RenameField( model_name='lending_product', ...
[ "gabriel.briones.sayeg@intel.com" ]
gabriel.briones.sayeg@intel.com
64ac34971a4420b2371d118512fb9cd91ef116ce
5a9464a9d1543a072adf9c0dc07cbf3d3f5e5207
/src/examples_sensor_tests.py
45016d5ba083c576414ced1228d1329e54f55497
[]
no_license
moyersjm/rosebotics2
e4f30196fd153a3ef86de4157cbfef31b6622096
15a008fba44b770540ea943fe495629a368af560
refs/heads/master
2020-04-02T13:45:37.339009
2018-11-14T19:43:53
2018-11-14T19:43:53
154,495,978
1
1
null
2018-10-24T12:20:01
2018-10-24T12:20:01
null
UTF-8
Python
false
false
2,216
py
""" Capstone Project. Code for testing basics. Author: David Mutchler, based on work by Dave Fisher and others. Fall term, 2018-2019. """ import rosebotics_even_newer as rb import time def main(): """ Runs tests. """ run_test_sensors() def run_test_sensors(): """ Print sensor values each time t...
[ "mutchler@rose-hulman.edu" ]
mutchler@rose-hulman.edu
54448b37275c1c6533fe3de3b724a8161ddad67e
caceb60f71165772b6d6155f619e79189e7c80a9
/第一期/上海-棒棒糖/第二次任务-每日代码练习/2017-1/1-24/str__test.py
92856b7febfee9c2c466704f18d9f9ea1ffca57c
[ "Apache-2.0" ]
permissive
beidou9313/deeptest
ff41999bb3eb5081cdc8d7523587d7bc11be5fea
e046cdd35bd63e9430416ea6954b1aaef4bc50d5
refs/heads/master
2021-04-26T23:06:08.890071
2019-04-03T02:18:44
2019-04-03T02:18:44
123,931,080
0
0
Apache-2.0
2018-03-05T14:25:54
2018-03-05T14:25:53
null
UTF-8
Python
false
false
186
py
class Student(object): def __init__(self, name): self.name = name def __str__(self): return self.name # __repr__ = __str__ # s=Student('Michael') print(s)
[ "879106261@qq.com" ]
879106261@qq.com
6dc60740658b89808ba69fe241f7f9dd670cacca
2acf2f926441eadb1c32879bfa6f0e800055b9d9
/oblig6/gaussian_white_noise.py
475e30a109b61bf14bcbcf5cec905bcee957d390
[]
no_license
Linueks/fys2130
26b400bbf878ef56d26fdc618f85b62a44515eff
761bef68476cb210266758ea00e17020e417a174
refs/heads/main
2023-02-24T10:05:33.951748
2021-01-23T13:23:34
2021-01-23T13:23:34
332,214,599
0
0
null
null
null
null
UTF-8
Python
false
false
1,583
py
''' Program that generates Gaussian white noise. Each frequency component is generated randomly b/w 0 and the a value assigne by Normal distribution. Each phase component is generated randombly b/w 0 and 2pi. The finished signal is Fourier transformed. Sebastian G. Winther-Larsen (2017) ''' import numpy as np ...
[ "noreply@github.com" ]
Linueks.noreply@github.com
9faa3bfbaffa598e35f9d61fdffcf2ea69476498
c0d9e2b2135956031bbad6abef22be5a205696db
/src/Inc/Import.py
af20358268dbff2b4c09395c2ae747c47d55b783
[]
no_license
VladVons/py-relay
22758805b796c23546c97f8f42c664a2ff1b4fba
c57c205c49b7bbb6a91c98ec326b02a36c3daaef
refs/heads/master
2023-02-05T22:15:40.884753
2019-03-08T06:48:07
2019-03-08T06:48:07
127,041,974
1
0
null
null
null
null
UTF-8
Python
false
false
2,221
py
''' Copyright: (c) 2017, Vladimir Vons Author: Vladimir Vons <VladVons@gmail.com> Created: 2017.10.20 License: GNU, see LICENSE for more details Description: Import = TDynImport() Import.ParseDir('Plugin/Devices') Import.GetInstance(ClassName) TClass = Import.GetInstance(ClassName) Result = TClass(None)...
[ "vladvons@gmail.com" ]
vladvons@gmail.com
b3b0f9e662f65e09d8aae750a859c059a09e7cb8
0ea22107790ef695ad80ddba9d6a6c1ae95e7c6e
/kalibr-cde/cde-root/opt/ros/hydro/lib/python2.7/dist-packages/geometry_msgs/msg/_PointStamped.py
b28032463564931641d9984243a9a26ef4912b22
[]
no_license
wangrui996/camera_imu_calibration
0f9bc0cf737641b352fa71ae9710c735da69a732
4296aeac1001f21502355d8ca98d4ae214e30ffc
refs/heads/main
2023-06-19T15:19:42.618423
2021-07-15T06:52:20
2021-07-15T06:52:20
386,193,412
2
1
null
null
null
null
UTF-8
Python
false
false
6,270
py
"""autogenerated by genpy from geometry_msgs/PointStamped.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import geometry_msgs.msg import std_msgs.msg class PointStamped(genpy.Message): _md5sum = "c63aecb41bfdfd6b7e1fac37c7cbe7bf" _type = "geomet...
[ "wangrui957@163.com" ]
wangrui957@163.com
5714dbdd0d286db2b3c543a6e67af447e969ff56
7780f59da5cac72501b4f9b0bb0b96e8f3ded6e1
/tests/test_cinema.py
446816a08120ffe33fed7e2b9150514842fff8fb
[]
no_license
kimbugp/movie-bookings
7286593b10897c27d936650e538e84e2cbd12791
63121b88c6e022fcb849ff7ab8da7be9844f391a
refs/heads/master
2022-12-10T01:41:01.648098
2020-01-21T08:36:17
2020-01-21T08:36:17
199,335,252
0
2
null
2022-12-08T03:17:06
2019-07-28T20:43:15
Python
UTF-8
Python
false
false
4,209
py
import json from .basetest import BaseTestCase class TestCinema(BaseTestCase): def test_create_cinema_fails_with_no_authentication(self, test_client): data = json.dumps({}) response = test_client.post( "/api/v1/cinema", data=data, headers={"Content-Type": "app...
[ "kimbsimon2@gmail.com" ]
kimbsimon2@gmail.com
d3f3032c4627dd131772f1abe4d43e3da33a3083
cfd4cc45dc558eba3c45797dbb5335e51a90b581
/gopython3/core/tests/test_unit.py
02e68291594bb6c1efdd15444a5a57d4ed507f59
[ "MIT" ]
permissive
futurecolors/gopython3
8724ae4e458e156b82161d6b4083ac7c5a4f3eeb
cfff51f86edb962bba2a51c8f7691454af54809d
refs/heads/dev
2020-05-18T21:50:11.638433
2014-01-21T18:28:01
2014-01-21T18:28:01
12,966,604
1
0
null
2014-05-17T08:38:23
2013-09-20T05:52:19
Python
UTF-8
Python
false
false
4,991
py
# coding: utf-8 from unittest.mock import patch from django.utils import timezone import warnings from collections import namedtuple from django.test import TestCase from ..factories import SpecFactory, JobFactory from ..models import Job, Package, Spec from ..tasks import query_pypi def fake_distributions(*distrib...
[ "baryshev@gmail.com" ]
baryshev@gmail.com
675b01dcde98168800671ad211778faa2ce9b622
5b9ac627bf39b01917f75d18d8ca83211a04c718
/cahoots/confidence/normalizers/character.py
eb3454f1cbed230ef870e1d916a85b2295aff56f
[ "MIT" ]
permissive
SerenitySoftware/cahoots
dbfa109e4c65d20ef01c2d97d3087e7a8aede838
866336c51436343ff5e56f83f89dddc82a5693a3
refs/heads/master
2021-05-28T20:00:32.827485
2015-08-23T00:31:11
2015-08-23T00:31:11
21,884,335
6
0
null
null
null
null
UTF-8
Python
false
false
2,149
py
""" The MIT License (MIT) Copyright (c) Serenity Software, LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
[ "ryan.vennell@gmail.com" ]
ryan.vennell@gmail.com
fcc28c4fb295fc56e743a94f929317d9aac54d4f
085ce75a507df6e755cabb7a65c4a2a8c98762ba
/dockerfiles/root/.pycharm_helpers/python_stubs/-252567642/_yaml/__init__/SequenceNode.py
2cc52374a86f60654ef8c8168c3539260e1b19ab
[]
no_license
Arhzi/habr-docker-article
d44302db1fe157d81fe0818e762e82218f50e31f
6fb094860b612e307beadaeb22981aa0ee64e964
refs/heads/master
2021-01-23T20:41:47.398025
2015-12-10T08:56:33
2015-12-10T08:56:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
585
py
# encoding: utf-8 # module _yaml # from /usr/local/lib/python2.7/site-packages/_yaml.so # by generator 1.137 # no doc # imports import yaml as yaml # /usr/local/lib/python2.7/site-packages/yaml/__init__.pyc import __builtin__ as __builtins__ # <module '__builtin__' (built-in)> import yaml.error as __yaml_error import ...
[ "sirnikolasd@yandex.ru" ]
sirnikolasd@yandex.ru
dbed30c53f73497797ddbe0811d3e196d96974ef
288865b3b519222370b00cda04ffab96f46b046d
/dd/deal/urls.py
96efada9c080d2357cb3a4f0720c588ba3262eac
[]
no_license
bcattle/dolores-deals
9c49daefb83f35eff65262dd14d5756a06eea66f
d45914c9afbeca9dbd655eee5b8ba021b2e07760
refs/heads/master
2020-12-24T16:59:28.981973
2011-05-08T08:29:47
2011-05-08T08:29:47
1,445,375
0
0
null
null
null
null
UTF-8
Python
false
false
309
py
from django.conf.urls.defaults import * urlpatterns = patterns('deal.views', # regex, view fxn, args, label for get_absolute_url() (r'^(?P<city_slug>[-\w]+)/(?P<neighborhood_slug>[-\w]+)/(?P<deal_slug>[-\w]+)/$', 'show_deal', { 'template_name': 'deal.html' }, 'deal_page'), (r'^$', 'default_deal'), )
[ "bryan.cattle@gmail.com" ]
bryan.cattle@gmail.com
41eeb3b1e3a7cf61c0e2b16ae63ce4c9826894f2
d785e993ed65049c82607a1482b45bddb2a03dda
/loose/loose_SingleMuon_G_cfg.py
46a90679fcd22958110855f1922ec226777629c0
[]
no_license
PKUHEPEWK/ssww
eec02ad7650014646e1bcb0e8787cf1514aaceca
a507a289935b51b8abf819b1b4b05476a05720dc
refs/heads/master
2020-05-14T04:15:35.474981
2019-06-28T23:48:15
2019-06-28T23:48:15
181,696,651
0
0
null
null
null
null
UTF-8
Python
false
false
1,424
py
from WMCore.Configuration import Configuration from CRABClient.UserUtilities import config, getUsernameFromSiteDB config = Configuration() config.section_("General") config.General.requestName = 'loose_SingleMuon_G' config.General.transferLogs= True config.section_("JobType") config.JobType.pluginName = 'Analysis' co...
[ "jiexiao@pku.edu.cn" ]
jiexiao@pku.edu.cn
5f8ee58ee1001869ac9653bf17b97fc00ea6d69b
c9952dcac5658940508ddc139344a7243a591c87
/tests/lab09/test_ch09_t01_befor_we_begin.py
deb2a8cafff91ac4cfaf68983409b92dd410c622
[]
no_license
wongcyrus/ite3101_introduction_to_programming
5da1c15212528423b3df91997327fe148abef4de
7cd76d0861d5355db5a6e2e171735bee2e78f829
refs/heads/master
2023-08-31T17:27:06.193049
2023-08-21T08:30:26
2023-08-21T08:30:26
136,574,036
3
2
null
2023-08-21T08:30:28
2018-06-08T06:06:49
Python
UTF-8
Python
false
false
384
py
import unittest from tests.unit_test_helper.console_test_helper import * class TestOutput(unittest.TestCase): def test(self): temp_globals, temp_locals, content, output = execfile("lab09/ch09_t01_befor_we_begin.py") expected = """Adam Alex Mariah Martine Columbus """ self.assertEqual(exp...
[ "cywong@vtc.edu.hk" ]
cywong@vtc.edu.hk
9bd90299eaa46d54955252ca6e3183a2d1ae3d21
f72c689bd0d756b4817cc03cb434a228343c8936
/test/functional/rpc_getchaintips.py
c71c2d08d2237c1b28f7c8b61f61971edd4ffe9d
[ "MIT" ]
permissive
CircuitProject/Circuit-Core
7f68a8b4cb180a715cb24e247b899d8d8dc29e95
831dc33d57050ea2955983b2e8f1fc088a819e97
refs/heads/main
2023-04-09T00:08:37.954538
2021-04-12T19:09:42
2021-04-12T19:09:42
357,308,816
0
1
null
null
null
null
UTF-8
Python
false
false
2,177
py
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the getchaintips RPC. - introduce a network split - work on chains of different lengths - join th...
[ "development@SpectreSecurity.io" ]
development@SpectreSecurity.io
5f6cb6c94ca4f16d8f6f26845918c9f4b4708db8
54d2887e3c910f68366bd0aab3c692d54245e22a
/abc/abc_042_125/abc067/c.py
b4ed060ee9fec1215b76ac1a828de13f9a096cb0
[]
no_license
Kevinrobot34/atcoder
7aec367fd2c6b589e9d583dae7b3c7520ce9fa12
482ea508f098f81e4f19522fe518dd22c781aca9
refs/heads/master
2022-07-10T23:44:45.290022
2022-06-29T11:30:26
2022-06-29T11:30:26
158,081,477
1
1
null
null
null
null
UTF-8
Python
false
false
170
py
n = int(input()) a = list(map(int, input().split())) s = sum(a) s1 = 0 ans = 10**15 for i in range(n-1): s1 += a[i] ans = min(ans, abs(s1 - (s-s1))) print(ans)
[ "kevinrobot34@yahoo.co.jp" ]
kevinrobot34@yahoo.co.jp
59cbd00de94ea0b4a3b7608732f8325b879b67fe
1ddbd4f7194fb52ea8344e8f80dcbd87e8d41cfc
/restconf/pagination.py
67556c262f5a6216f1bf85d067790445fbcf1af1
[]
no_license
TruthTheDeveloper/Huggie-backend
cc9444571a5e147e789c2dcfaae51a694d37d917
8a686beb2635557f4235047cde3eccd79d3ea3b7
refs/heads/master
2023-08-20T06:12:31.465811
2021-10-31T18:21:15
2021-10-31T18:21:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
201
py
from rest_framework import pagination class CFEAPIPagination(pagination.PageNumberPagination): page_size = 10 # default_limit = 6 # max_limit = 20 # limit_query_param = 'lim'
[ "henrysempire111gmail.com" ]
henrysempire111gmail.com
8ceb95bec95f8eb8abb7c04384ce7ca03d720ffd
48faee5b845e43e6c102cb027f43c8b886ecaa5e
/utils/ansible_drive/test/ansibleApi_pbtest.py
106e2ab5ed5e1582930d2804371155ee451f57a4
[]
no_license
hornLK/LonedayAdmin
66c0a8b978967a0144a216f621c872a6d2197229
36ba3fe763788423801ad5ab14462624114da804
refs/heads/master
2022-12-26T06:57:47.675915
2018-05-15T13:08:34
2018-05-15T13:08:34
131,375,220
0
0
null
null
null
null
UTF-8
Python
false
false
2,149
py
import json from ansible import constants as C from collections import namedtuple from ansible.parsing.dataloader import DataLoader from ansible.vars import VariableManager from ansible.playbook.play import Play from ansible.executor.task_queue_manager import TaskQueueManager from ansible.executor.playbook_executor imp...
[ "bjlkq546449541@gmail.com" ]
bjlkq546449541@gmail.com
08442036c4b07c98ed97b71bbee402abbcfc2004
be9a56d49a308b5d70c57989d11c7e6207d9d349
/pynext/stats.py
45a94ac1e650e4253f9a9df750d0fddbc56f5793
[]
no_license
jjgomezcadenas/pynextsw
ab7e9823f8eb12424084c849c7c099ac6a64351b
84db6ce3eb2cac3567dce9950a35fbbe4027f0fd
refs/heads/master
2020-12-14T14:38:48.940016
2020-02-10T17:39:51
2020-02-10T17:39:51
234,772,846
0
0
null
null
null
null
UTF-8
Python
false
false
3,040
py
import numpy as np from typing import Tuple, List from numpy import sqrt NN = np.nan from . pynext_types import Number, Array, Str, Range def in_range(data, minval=-np.inf, maxval=np.inf): """ Find values in range [minval, maxval). Parameters --------- data : ...
[ "jjgomezcadenas@gmail.com" ]
jjgomezcadenas@gmail.com
0ad83e8f3d57405b7257baea33455b48fb6456a6
efb9647a0c0f8f80e5c25abacbb097e9d74dc042
/hooks/push-git-commit-ectomy-gh-pages
0a8f6f141f5c5c8113aa28c73a0de44df1effa49
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "Apache-2.0" ]
permissive
charlesreid1/b-captain-hook
3bf38f24b9cd017e36f90e3481dd2780e553c8bc
361f59c21a733a484f48e9bd60bce2d94dbf7b1b
refs/heads/master
2020-03-17T06:00:49.865927
2019-07-13T06:06:30
2019-07-13T06:06:30
133,337,907
1
1
null
null
null
null
UTF-8
Python
false
false
2,007
#!/usr/bin/env python from datetime import datetime repo = "git-commit-ectomy" org = "charlesreid1" branch = "gh-pages" action = 'push' name = '%s'%(repo) git_url = 'https://git.charlesreid1.com/%s/%s.git'%(org,repo) logfile = '/tmp/{action}-{name}-{branch}.log'.format(action=action, ...
[ "charlesreid1@gmail.com" ]
charlesreid1@gmail.com
32c3a1099738887f52f94cc6ce3f142833c8b14a
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf/gsn-edf_ut=2.5_rd=1_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=68/params.py
3d804381e49cd62d377929a2bbcf69c13ca14dea
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
{'cpus': 4, 'duration': 30, 'final_util': '2.537238', 'max_util': '2.5', 'periods': 'harmonic-2', 'release_master': False, 'res_distr': '1', 'res_nmb': '4', 'res_weight': '0.04', 'scheduler': 'GSN-EDF', 'trial': 68, 'utils': 'uni-medium-3'}
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
2661e70feec5cebeefae3f67c6b64bbe35929ef3
f700710ad4f7b776a2715c3bded94f6e763703b3
/BucketConfig.py
426a618961853f48fcbef5b45de3590a09d85638
[ "Apache-2.0" ]
permissive
hasithadkr7/udp_150
445496d7d1eb316dd787a1fadafc70627cad9abb
b88e27cd254e12c97a4120e311d7269b1f7cf724
refs/heads/master
2020-03-09T11:05:13.655372
2018-04-26T06:51:25
2018-04-26T06:51:25
128,752,816
0
0
null
null
null
null
UTF-8
Python
false
false
731
py
#!/bin/python #Retrieving rain cell and men-ref files from google buckets. # Common. FILE_GEN_TIME = '18:00' BUCKET_NAME = 'curwsl_nfs_1' WRF_NODE = 'wrf0' INITIAL_PATH_PREFIX = 'results/' KEY_FILE_PATH = '/hec-hms/uwcc-admin.json' # For Rain cell RAIN_CELL_DIR = '/hec-hms/Raincell/' WRF_RAINCELL_FILE_ZIP = 'RAINCELL_...
[ "hasithadkr7@gmail.com" ]
hasithadkr7@gmail.com
2d2d33b1f96726237fe2033b2cfd6180cb799052
74768f285874ee5d7606cde6efc21e291782996b
/web/dispatch/resource/dispatch.py
7b2cc6650ae1e75a541e322212cc6912ee919c08
[ "MIT" ]
permissive
marrow/web.dispatch.resource
7354ec6b124b7c17744a810f5823c7856a2b6992
5f4e0a8ddbedba2390d9aaa0b8bf26292e8605f9
refs/heads/master
2023-01-24T11:26:03.140864
2016-09-26T15:02:39
2016-09-26T15:02:39
32,566,614
0
0
null
null
null
null
UTF-8
Python
false
false
2,822
py
# encoding: utf-8 import warnings if __debug__: from collections import deque from functools import partial from inspect import isclass, ismethod from .exc import InvalidMethod log = __import__('logging').getLogger(__name__) def invalid_method(*args, **kw): raise InvalidMethod() class ResourceDispatch(objec...
[ "alice@gothcandy.com" ]
alice@gothcandy.com
4e7c5cb3a9bddaad548a8537a1f053a9bb28304a
3416464630bc3322dd677001811de1a6884c7dd0
/dynamic_program/q121_bestTimeToBuyAndSellStock/dp_solution.py
e9bd3a005e1a0987481b0a013628cfb1511719b8
[]
no_license
ttomchy/LeetCodeInAction
f10403189faa9fb21e6a952972d291dc04a01ff8
14a56b5eca8d292c823a028b196fe0c780a57e10
refs/heads/master
2023-03-29T22:10:04.324056
2021-03-25T13:37:01
2021-03-25T13:37:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
662
py
#!/usr/bin/env python # -*- coding:utf-8 -*- """ FileName: dp_solution.py Description: Author: Barry Chow Date: 2020/10/19 10:52 PM Version: 0.1 """ class Solution(object): def maxProfit(self, prices): """ :type prices: List[int] :rtype: int """ if len(prices) == 0: ...
[ "zhouenguo@163.com" ]
zhouenguo@163.com
5052bed389896a4f70a830f17f2280b6968dce56
38238f576b302835a285954711c62c69e65009c0
/about_page/migrations/0007_auto_20201124_1313.py
02fac6e66687346980f0c787624df864fb9ac062
[]
no_license
iamdarshan7/New
ca107680c247fa94340bfc3937edc6dff7b8060e
9075f50438e3f9911dd0b27d7c5e2806f25f4d3c
refs/heads/master
2023-01-21T00:01:31.489631
2020-11-27T05:00:48
2020-11-27T05:00:48
316,404,056
2
0
null
null
null
null
UTF-8
Python
false
false
1,277
py
# Generated by Django 2.2.17 on 2020-11-24 13:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('about_page', '0006_auto_20201124_0926'), ] operations = [ migrations.CreateModel( name='Teamsec1', fields=[ ...
[ "darshanthapa872@gmail.com" ]
darshanthapa872@gmail.com
7c81a30415a63c9cc197660d8bea9891378f1cb6
de712ec0d239fc36f7d7b4b11e9c0e6d6a45458b
/src/aptus/gui/help.py
d48d15c5dc912347cfb79a493963db3f7e5c2509
[]
no_license
nedbat/aptus
b76f241df5aedc2dc92ffe1f6b6bfe222aca0810
b58a914efa868ce85151ba8f0361912d77c3a2cb
refs/heads/master
2023-08-20T03:40:57.405977
2023-08-08T14:13:26
2023-08-08T14:13:26
276,628,031
21
3
null
null
null
null
UTF-8
Python
false
false
6,265
py
""" Help dialog for Aptus. """ import webbrowser import sys import numpy import wx import wx.html2 import wx.lib.layoutf from PIL import Image from aptus import data_file, __version__ from aptus.options import AptusOptions class HtmlDialog(wx.Dialog): """ A simple dialog for displaying HTML, with clickable lin...
[ "ned@nedbatchelder.com" ]
ned@nedbatchelder.com
ed02247eb0a5e87b05a7dea03227101bca64ab60
71ed291b47017982a38524b4ff8fe94aa947cc55
/String/LC389. Find the difference.py
46b2982b623687adc315be5bab3e80fd64c6bc44
[]
no_license
pingting420/LeetCode_Algorithms
da83b77e8f37bd4f461b0a7e59c804871b6151e5
f8786864796027cf4a7a8b0ad76e0b516cd99b54
refs/heads/main
2023-07-17T22:46:08.803128
2021-09-02T22:06:38
2021-09-02T22:06:38
375,401,021
0
0
null
null
null
null
UTF-8
Python
false
false
288
py
def findTheDifference(s,t): s = Counter(s) t = COunter(t) for i in (t-s): return i def findTheDifference(s,t): return list(Counter(t) - Counter(s))[0] def findTheDifference(s,t): for i in set(t): if s.count(i) != t.count(i): return i
[ "bellapingting@gmial.com" ]
bellapingting@gmial.com
dd408d7bb7c75f2b873fb135914f22ae124a2df8
5d622c4b5df54f880f9476931ffb697afc63a9e2
/src/runtime/workflows/guard_engine/guard_engine_wf.py
e1df46e5ac3932440dee2b15b1ee176242671edd
[]
no_license
anirudh458/final-lab-test
96d27219387c91f7f7fd346899324dd672eb21cb
e9aab1cd5c82993941d605cfa4a045a8db01036f
refs/heads/master
2021-06-16T19:06:41.569044
2017-05-31T19:22:59
2017-05-31T19:22:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,220
py
from runtime.components.guard.guard import Guard from runtime.components.engine.engine import Guard from runtime.emgrs.svem.svem import EntityMgr from runtime.components import guard from runtime.components import engine class GuardSysWf(): def __init__(self): em = EntityMgr() guard = Guard(em) ...
[ "ravulaanirudh7@gmail.com" ]
ravulaanirudh7@gmail.com
44f7af07f42fb608cedc3c5e1f67676fcd65524f
ebc00ddf4c8c5f5076471e8b8d56c2b634c51230
/test/functional/mempool_persist.py
9e50e3a3ba0e5b22e31c19a362dc431b32c0d05b
[ "MIT" ]
permissive
BlockMechanic/rain
584a9e245cfb7ab5fb1add97b699b86833bfbc5b
e8818b75240ff9277b0d14d38769378f05d0b525
refs/heads/master
2021-07-03T03:48:53.977665
2021-03-04T01:28:20
2021-03-04T01:28:20
228,412,343
0
0
MIT
2019-12-16T15:03:28
2019-12-16T15:03:27
null
UTF-8
Python
false
false
6,556
py
#!/usr/bin/env python3 # Copyright (c) 2014-2020 The Rain Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test mempool persistence. By default, raind will dump mempool on shutdown and then reload it on startup. ...
[ "blockmecha@gmail.com" ]
blockmecha@gmail.com
1362efbb6d53f3383cea29321ab304f0e370154a
8dc6423cca2eb626b1f9ce76d576e95ac17181f8
/news/migrations/0003_auto_20180919_1420.py
0e3a984792ef8d8547e078b029e9116b1aab56dd
[]
no_license
codeSapience/django_news_app
07d67c44105ee30626e740ec6c534d7d6cc07ee4
2a55d0503d128d88d4c7b03b766d68c9c99516a0
refs/heads/master
2020-03-29T01:49:12.729978
2018-10-05T00:00:15
2018-10-05T00:00:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.14 on 2018-09-19 14:20 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('news', '0002_auto_20180919_1304'), ] operations = [ migrations.AlterModelO...
[ "brittoakintade@gmail.com" ]
brittoakintade@gmail.com
35123285e1569f4fd529e804592e81ec15765527
2a61b02c26e77686e38cd9039e6f4b0530ddb7c9
/bitbots_navigation/bitbots_localization/src/bitbots_localization/localization_dsd/actions/initialize.py
01deaa97243938ce01c27e519039c7f8aa8a5bea
[ "MIT" ]
permissive
fly-pigTH/bitbots_thmos_meta
931413e86929751024013b8e35f87b799243e22c
f45ccc362dc689b69027be5b0d000d2a08580de4
refs/heads/master
2023-08-27T02:58:08.397650
2021-10-22T17:17:11
2021-10-22T17:17:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,154
py
import rospy from dynamic_stack_decider.abstract_action_element import AbstractActionElement from bitbots_localization.srv import ResetFilter class AbstractInitialize(AbstractActionElement): def __init__(self, blackboard, dsd, parameters=None): super(AbstractInitialize, self).__init__(blackboard, dsd, pa...
[ "759074800@qq.com" ]
759074800@qq.com
e9a5a4858ee18294253987862fd245e034788500
57c13a2500561e72e382489c23e9c0b8347be605
/network_programming/chat_project/chat_server.py
bd32ca8fa7b9bb2c5a8bc51e0d00e53983448314
[]
no_license
linheimx/python_master
7403d7af639e31810c90b2fba14972a6d3dcfcec
7fb7c467bedaff1515975807552a0ba05e30f15e
refs/heads/master
2021-01-21T21:54:55.537994
2016-12-23T15:05:14
2016-12-23T15:05:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,058
py
import sys import socket import select HOST = "" PORT = 9090 SOCKET_LIST = [] RECV_BUFFER = 4096 def chat_server(): server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, True) server_socket.bind((HOST, PORT)) server_socket...
[ "bonwho09@gmail.com" ]
bonwho09@gmail.com
7ce31686205d472fb1883b4327ca1d1dd6db0ec6
d859e135cb2c7bc4b5d3c62c99c3ca49784b6ca3
/linehaul/cli.py
c4e3fbce803f1a4da2f591f4440d478ca743b71a
[ "Apache-2.0" ]
permissive
reaperhulk/linehaul
c7dfe2de163d5062572b2fd1626c69d3fae592fd
1058adfdedec3c75f5e4f32108ff727fcddd4d9d
refs/heads/master
2021-01-13T03:18:07.795816
2016-07-01T12:31:36
2016-07-01T12:31:36
77,585,767
0
0
null
2016-12-29T05:37:23
2016-12-29T05:37:23
null
UTF-8
Python
false
false
4,335
py
#!/usr/bin/env python3.5 # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software #...
[ "donald@stufft.io" ]
donald@stufft.io
0b5ef3d75664e973d42db706c3d83768ccc1934e
4f74e6d72b98cd1da2190313e4a7eb9d342cc93d
/environments/admin.py
352cb786ec086a6c618fb44c7ec20f14f7ba1fc8
[ "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
318
py
from django.contrib import admin from .models import Environment, EnvironmentProject class EnvironmentAdmin(admin.ModelAdmin): pass admin.site.register(Environment, EnvironmentAdmin) class EnvironmentProjectAdmin(admin.ModelAdmin): pass admin.site.register(EnvironmentProject, EnvironmentProjectAdmin)
[ "david@burkesoftware.com" ]
david@burkesoftware.com
7f4adc0c433e1c8f76de5eb5b022daf9210bc848
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_1674486_0/Python/fantastication/diamond.py
4d2de5d2b9dc57390ec5ef8ae812eb4b981604ce
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
1,110
py
def check(n, path): #print "path to", n, ": ", path parents = classes[n-1] for parent in parents: if parent == -1: continue if parent in path: #print "FOUND", path return True else: path.append(parent) #print "adding", paren...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
f2776cf8026c189c2a2aa1e53aa4d94fd55e6f58
c825ab84e533f4f306656a758ee469a27c5b232b
/mysite/settings.py
1833cee2fa370af6a81c1ff217ece67f36bc030f
[]
no_license
wataru-ikeda/my-first-blog
e6244c54b509d0c3e6dd42c1c49f90b6ec93397a
d2f293a112ae9454006edd5647fc5c992673c0f9
refs/heads/master
2021-05-25T07:56:25.395351
2020-04-08T03:12:01
2020-04-08T03:12:01
253,728,389
0
0
null
null
null
null
UTF-8
Python
false
false
3,200
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.0.5. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # ...
[ "you@example.com" ]
you@example.com
c2867740cb5f78444e1cd652e06ea817001d4ae3
07bdfcb29eda2048278dff96f7e2d3a52a199ece
/Backend Python/ExamSystemPython/examsystemapp/api/college.py
d67de71b0f26e4f0526d89cd1be488c466285a78
[]
no_license
shreyassiddanagoudar/shreya
5ac11e4ba0312b55c7a221d82b6c36cafcd291ab
c51bc363e74a300d97b6d78d4f5aee043762ac38
refs/heads/master
2023-07-15T09:38:19.653419
2021-08-28T09:48:09
2021-08-28T09:48:09
361,653,706
0
0
null
null
null
null
UTF-8
Python
false
false
6,134
py
""" Created By : <Auto generated code> Created On : Reviewed By : Reviewed On : Version : """ import json from django.http import HttpRequest from examsystemapp.api.base_controller import BaseController from examsystemapp.models.college import CollegeModel from examsystemapp.services.college_service import C...
[ "noreply@github.com" ]
shreyassiddanagoudar.noreply@github.com
4ef1d2aaba39ed43d41d7f9b2fb9488b5ee99223
cf0f3f1bb02048d99be4e74254a4e48f4ca78ac6
/0x1F-pascal_triangle/0-pascal_triangle.py
0a8d2ae715fa29481d1397bef23064c44f83ae94
[]
no_license
andreammgcol/holbertonschool-interview
89277dc9aebb0f36d77b995b58f6d060c48692bc
01bc3b29f44f8b76a56879b00bc77d2f9a919306
refs/heads/master
2023-07-20T13:23:31.172414
2021-08-26T04:42:55
2021-08-26T04:42:55
280,991,551
0
0
null
null
null
null
UTF-8
Python
false
false
551
py
#!/usr/bin/python3 """ Pascal triangle """ def pascal_triangle(n): """ Function that returns a list of lists of integers representing the Pascal’s triangle of n """ triangle = [] if n <= 0: return triangle for i in range(1, (n + 1)): sub = [] for j in range(i): ...
[ "amendez72@misena.edu.co" ]
amendez72@misena.edu.co
0ec96347624c3779acb977f9f453bee286bcb934
80d50ea48e10674b1b7d3f583a1c4b7d0b01200f
/examples/v2/incidents/DeleteIncident.py
a134c05b864f6bbffc44a61f18cc8ae6dcb87435
[ "Apache-2.0", "BSD-3-Clause", "MIT", "MPL-2.0" ]
permissive
DataDog/datadog-api-client-python
3e01fa630278ad0b5c7005f08b7f61d07aa87345
392de360e7de659ee25e4a6753706820ca7c6a92
refs/heads/master
2023-09-01T20:32:37.718187
2023-09-01T14:42:04
2023-09-01T14:42:04
193,793,657
82
36
Apache-2.0
2023-09-14T18:22:39
2019-06-25T22:52:04
Python
UTF-8
Python
false
false
555
py
""" Delete an existing incident returns "OK" response """ from os import environ from datadog_api_client import ApiClient, Configuration from datadog_api_client.v2.api.incidents_api import IncidentsApi # there is a valid "incident" in the system INCIDENT_DATA_ID = environ["INCIDENT_DATA_ID"] configuration = Configur...
[ "noreply@github.com" ]
DataDog.noreply@github.com
0ea01cbe7bd8170f064d5e9e92d39c5a5fe6765e
bdc12ac21a4c7b83a43258b46d6008c5f36a71e6
/edmondderothschild/spiders/spider.py
9d9460836280ea4016ffed933a6d247278938580
[]
no_license
hristo-grudev/edmondderothschild
068132e79dd176721b885f238f0cf342e7e57988
da231da1f56c62760872f5bcc3a70aaae040add8
refs/heads/main
2023-03-24T06:17:20.193318
2021-03-26T08:49:17
2021-03-26T08:49:17
351,717,760
0
0
null
null
null
null
UTF-8
Python
false
false
1,736
py
import re import scrapy from scrapy.loader import ItemLoader from scrapy.spiders import XMLFeedSpider from w3lib.html import remove_tags from ..items import EdmondderothschildItem from itemloaders.processors import TakeFirst import requests import xmltodict class EdmondderothschildSpider(XMLFeedSpider): name = 'e...
[ "hr.grudev@gmail.com" ]
hr.grudev@gmail.com
632e2a617586abeeb950bd4e2968256a403701b3
4a014a10f3e144bc778149f8bf6f763581ece2b0
/src/latexify/config.py
88ab7e04d0614f1cb1c100563ad6a6c4acad5b3e
[ "Apache-2.0" ]
permissive
google/latexify_py
394f4608e09e45ac6b8091d6734cf6bf06fa548d
b3ae7fa9483f7055e692bef8acc9c0ec8e91c51f
refs/heads/main
2023-09-02T06:49:55.607974
2023-01-14T10:57:55
2023-01-14T10:57:55
282,443,202
5,202
265
Apache-2.0
2023-01-14T10:57:56
2020-07-25T12:50:56
Python
UTF-8
Python
false
false
2,790
py
"""Definition of the Config class.""" from __future__ import annotations import dataclasses from typing import Any @dataclasses.dataclass(frozen=True) class Config: """Configurations to control the behavior of latexify. Attributes: expand_functions: If set, the names of the functions to expand. ...
[ "noreply@github.com" ]
google.noreply@github.com
623feb305b11da8bd2283836b273711652544b52
f64e31cb76909a6f7fb592ad623e0a94deec25ae
/leetcode/p1710_maximum_units_on_a_truck.py
8e89618e55fad5153cf50d1bc81468436154aa8e
[]
no_license
weak-head/leetcode
365d635cb985e1d154985188f6728c18cab1f877
9a20e1835652f5e6c33ef5c238f622e81f84ca26
refs/heads/main
2023-05-11T14:19:58.205709
2023-05-05T20:57:13
2023-05-05T20:57:13
172,853,059
0
1
null
2022-12-09T05:22:32
2019-02-27T05:58:54
Python
UTF-8
Python
false
false
460
py
from typing import List import heapq def maximumUnits(boxTypes: List[List[int]], truckSize: int) -> int: """ Time: O(n) Space: O(n) n - number of boxes """ q = [(-v[1], v[0]) for v in boxTypes] heapq.heapify(q) max_units = 0 left_space = truckSize while left_space > 0 and ...
[ "zinchenko@live.com" ]
zinchenko@live.com
3c3751974ba7fde06708dc6a41c2bedc1bc225c7
159aed4755e47623d0aa7b652e178296be5c9604
/data/scripts/templates/object/tangible/lair/base/shared_poi_all_lair_bones_large_evil_fire_red.py
0d8c6fc34668df5aa6df3b2b1c35b2da4808979c
[ "MIT" ]
permissive
anhstudios/swganh
fb67d42776864b1371e95f769f6864d0784061a3
41c519f6cdef5a1c68b369e760781652ece7fec9
refs/heads/develop
2020-12-24T16:15:31.813207
2016-03-08T03:54:32
2016-03-08T03:54:32
1,380,891
33
44
null
2016-03-08T03:54:32
2011-02-18T02:32:45
Python
UTF-8
Python
false
false
464
py
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/lair/base/shared_poi_all_lair_bones_large_evil_fire_red.iff" result...
[ "rwl3564@rit.edu" ]
rwl3564@rit.edu
2ed0e34a43fa2c125006f672440b3da4ab09d4ba
cba7110bb180886c22bb3cb844d7f9ff5efee428
/petit_lisp.py
6ab3ee8d08b510a5981f4dca6235640722ddfbbd
[ "CC0-1.0" ]
permissive
aroberge/lispy-experiments
d41df042e5737d7d99ac1f03a081e8ce5aed2585
c54da34500e95150c2ef9c6057339525edf1e03f
refs/heads/master
2021-01-19T21:51:58.194552
2015-02-25T21:41:55
2015-02-25T21:41:55
31,174,203
0
1
null
null
null
null
UTF-8
Python
false
false
6,700
py
'''New class based version ''' import sys from src.file_loader import FileLoader from src.python_utils import python_fns from src.parser import Parser from src.repl import InteractiveInterpreter loader = FileLoader() STRINGS = {} class Env(dict): "An environment: a dict of {'var': val} pairs, with an outer Env...
[ "andre.roberge@gmail.com" ]
andre.roberge@gmail.com
e33f6c598c699f04928d5a390d5e4325a4948d24
9b4de05054f37a65dce49857fb6a809a370b23ca
/gd/migrations/0017_auto_20171223_1605.py
97c3517179868639f2ab467e37bf45e031c80896
[]
no_license
susahe/gis
f6b03b8f23abf7ca22c0069a4cdf603bfe879808
6b8d433cd5f672994ac138c1b656136425d0c345
refs/heads/master
2021-05-12T01:50:12.862559
2018-01-27T02:25:31
2018-01-27T02:25:31
117,569,888
0
0
null
null
null
null
UTF-8
Python
false
false
1,530
py
# Generated by Django 2.0 on 2017-12-23 16:05 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('gd', '0016_auto_20171223_1601'), ] operations = [ migrations.AlterField( model_name='gramasevadivisio...
[ "sumudu.susahe@gmail.com" ]
sumudu.susahe@gmail.com
54c6f8673ede0ff92aae2a33401611442277cef8
c8e3ce59771a46723eb460dadc7136ce4337567b
/wordcloud_yelp_pos.py
df0e8b9012472da71ebf042b39ed6ff59d675dfb
[ "MIT" ]
permissive
elisetnp/stylistic-word-clouds
658c4b5e4bcf903f670078d8d6ebd4a25224afd1
0ecc7fa5632cd21ed9b24ccad9e27448a15eed81
refs/heads/master
2022-01-18T17:18:51.055745
2016-05-08T04:46:00
2016-05-08T04:46:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,289
py
import numpy as np import csv import random from PIL import Image from wordcloud import WordCloud, STOPWORDS from palettable.colorbrewer.sequential import Greens_9 def color_func(word, font_size, position, orientation, random_state=None, **kwargs): return tuple(Greens_9.colors[random.randint(2,8)]) csv_path = "ye...
[ "max@minimaxir.com" ]
max@minimaxir.com
74db49958179e9efa98ebfc30bb65ded9c8eee31
08b0c27ce98495c0889d7b768ac7d2a97beff158
/廖雪峰-python/廖雪峰-面向对象之多重继承.py
aa05ccb03ba657e9c34a5bba6dd5ff9567191adf
[]
no_license
jetli123/python_files
7d3834b8e3f8b8dca5109c2d6aeb8d0fcdb852c3
7f5b787820cca2cf5820a1cdf3fed77e5185f04e
refs/heads/master
2020-03-27T01:36:02.526294
2019-07-11T06:58:35
2019-07-11T06:58:35
145,726,196
1
0
null
null
null
null
UTF-8
Python
false
false
2,165
py
# -*- coding: utf-8 -*- __author__ = 'JetLi' """继承是面向对象编程的一个重要的方式,因为通过继承,子类就可以扩 展父类的功能。""" """ Dog - 狗狗; Bat - 蝙蝠; Parrot - 鹦鹉; Ostrich - 鸵鸟。 Mammal 哺乳类:能跑的哺乳类,能飞的哺乳类; Bird 鸟类:能跑的鸟类,能飞的鸟类。 """ # 采用多重继承。首先,主要的类层次仍按照哺乳类和鸟类设计 class Animal(object): pass class Mammal(Animal): # 大类 pass class Bird(Animal): ...
[ "Jet_Oracle@outlook.com" ]
Jet_Oracle@outlook.com
919ee4eab014fe4cd9950bf760b3ed95385fdfe2
79f42fd0de70f0fea931af610faeca3205fd54d4
/base_lib/daemonize.py
bcabe9a83f6ac73cf1fcc28f101b0bb623286a53
[]
no_license
fanwen390922198/ceph_pressure_test
a900a6dc20473ae3ff1241188ed012d22de2eace
b6a5b6d324e935915090e791d9722d921f659b26
refs/heads/main
2021-08-27T16:26:57.500359
2021-06-02T05:18:39
2021-06-02T05:18:39
115,672,998
0
0
null
null
null
null
UTF-8
Python
false
false
2,682
py
#!/usr/bin/python # -*- coding:utf-8 -*- # Copyright (C) 2018 - All Rights Reserved # project: ceph_pressure_test # file: daemonize.py # time: 2019/9/5 14:05 # author: fanwen # desc: # !/usr/bin/env python # coding: utf-8 import sys import os # 将当前进程fork为一个守护进程 # 注意:如果你的守护进程是由inetd启动的,不要这样做!inetd完成了 ...
[ "fanwen@sscc.com" ]
fanwen@sscc.com
85d021bf63d7f990e9182b73040daae662c6324f
82e19f3738f47bc517fcb6dd1bf480117bdc8825
/0x07-python-test_driven_development/5-text_indentation.py
9457c9692e0add48c1f4ddabf3c780864188b0bb
[]
no_license
PierreBeaujuge/holbertonschool-higher_level_programming
ce6cfaf09fd0fefff8047c23320009ffae9f6e79
a133bfd68e3ec1f9430d6c722dd96d13f117c8cf
refs/heads/master
2021-07-08T00:10:20.568509
2020-11-14T20:26:56
2020-11-14T20:26:56
207,353,878
0
5
null
null
null
null
UTF-8
Python
false
false
833
py
#!/usr/bin/python3 """ Module that handles printing of a text """ def text_indentation(text): """ Function that prints a text with 2 new lines after ., ? and : """ new_text = "" if not isinstance(text, str): raise TypeError("text must be a string") i = 0 while i < len(text): ...
[ "pierre.beaujuge@gmail.com" ]
pierre.beaujuge@gmail.com
c8e277f57fbd493bde3ddc1f1f68158067e231ac
e48375c39c0d1fc71742b1964dffdd3af0ff86c0
/nlu/components/classifiers/token_bert_healthcare/token_bert_healthcare.py
dfcbf72f27c66728a4a68aba94343643ceb788d4
[ "Apache-2.0" ]
permissive
ahmedlone127/nlu
b8da5a84f0e47640cb09616559bf8b84c259f278
614bc2ff94c80a7ebc34a78720ef29a1bf7080e0
refs/heads/master
2023-02-09T05:10:29.631583
2022-05-20T15:16:33
2022-05-20T15:16:33
325,437,640
0
0
null
null
null
null
UTF-8
Python
false
false
604
py
class TokenBertHealthcare: @staticmethod def get_default_model(): from sparknlp_jsl.annotator import MedicalBertForTokenClassifier return MedicalBertForTokenClassifier.pretrained() \ .setInputCols("sentence", "token") \ .setOutputCol("ner") @staticmethod def get_...
[ "christian.kasim.loan@gmail.com" ]
christian.kasim.loan@gmail.com
373e06129c3d09a2092239b0a9dd19e72f5ca703
e8e9bab84754786e68e32ad5bba9a1f93dd36df1
/python/rr.py
b851fac9403a587338b012a5479bea4efa44772f
[]
no_license
0vermind/eddie
98026246bca34dd9a67b91113cf03bce6743489d
38f43fb296a916fde7721543b942a59fffb9e871
refs/heads/master
2021-05-10T00:23:39.336437
2018-01-24T12:26:31
2018-01-24T12:26:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,921
py
""" Usage: df = pd.read_csv("data.csv") renko = Renko(df) renko.brick_size = 2 bricks = renko.get_bricks() print(bricks) """ import sys import datetime as dt import numpy as np import pandas as pd import nsepy class Renko: PERIOD_CLOSE = 1 PRICE_MOVEMENT = 2 TREND_CHANGE_DIFF = 2 brick_size = 1...
[ "anand21nanda@gmail.com" ]
anand21nanda@gmail.com
baf9232934abe8f004c202e7807716b4d6876a09
a5a943391577a3b7222533d335ec0eda6cc1bc33
/src/robot/version.py
3be9a14084a8b351caae9ad094fb248c1aa7bd42
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
miktuy/robotframework
2164aa67d779ec2a3511181bb7d01a7ad2bc45a9
15e11c63be0e7a4ce8401c7d47346a7dc8c81bf5
refs/heads/master
2023-01-31T11:19:18.816499
2023-01-18T17:34:13
2023-01-18T17:34:13
298,874,288
0
0
Apache-2.0
2023-01-26T12:49:01
2020-09-26T18:20:30
Python
UTF-8
Python
false
false
1,408
py
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
[ "peke@iki.fi" ]
peke@iki.fi
a816b9eb7cb4c15572bcc2fde5429a9a3fef50b8
2827d7a837eb29c3cb07793ab6d3d5a753e18669
/alipay/aop/api/request/AlipayOfflineMarketProductBatchqueryRequest.py
5b6524909b5e0b93c45834d283793cf3e6e236ce
[ "Apache-2.0" ]
permissive
shaobenbin/alipay-sdk-python
22e809b8f5096bec57d2bb25414f64bdc87fa8b3
5232ad74dff2e8a6e0e7646ab3318feefa07a37d
refs/heads/master
2020-03-21T04:51:39.935692
2018-06-21T07:03:31
2018-06-21T07:03:31
138,131,022
0
0
null
2018-06-21T06:50:24
2018-06-21T06:50:24
null
UTF-8
Python
false
false
4,015
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayOfflineMarketProductBatchqueryModel import AlipayOfflineMarketProductBatchqueryModel class AlipayOfflineMarketProductBatchquer...
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com