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
74b87ca9cb07bcf0b829fb9f8d1acca0b0fd7381
182dd5305aedeaa197f302c0d830ab85413cdd53
/plugins/Filters/Convert2Gray/Convert2Gray.py
68772b2605be2aa6796c95576bfe72f1a8208b5f
[ "MIT" ]
permissive
UmSenhorQualquer/workflow-editor
016dbf47759b2572a811b80fc8bc79c88404c4ab
6f836f99e155c2f503cf59adf4e8b8b574184e6d
refs/heads/master
2021-01-24T18:58:13.224476
2017-07-20T10:00:10
2017-07-20T10:00:10
86,163,117
2
0
null
null
null
null
UTF-8
Python
false
false
1,274
py
import core.utils.tools as tools, cv2 from core.modules.OTModulePlugin import OTModulePlugin from core.modules.ModuleConnection import ModuleConnection from datatypes.TypeComponentsVideoPipe import TypeComponentsVideoPipe from datatypes.TypeColorVideoPipe import TypeColorVideoPipe from datatypes.TypeColorVide...
[ "ricardo.ribeiro@neuro.fchampalimaud.org" ]
ricardo.ribeiro@neuro.fchampalimaud.org
f084f2434510565b6756fe2e22ff2eee7bd9ae65
52272ef3de9036a1b23b35047ceb90a2027df1f3
/selenium_doc/TEST/test1.py
23254c71b70f3e7247cd31f2a4df400aa90ba122
[]
no_license
luokeke/selenium_python
9f2883cc158e473902e0c4bbf9fca20ecb61bfda
3cc05034afd0bc0930921812393bd572db868fb3
refs/heads/master
2020-08-25T02:51:16.064938
2020-04-20T10:03:52
2020-04-20T10:03:52
216,950,778
3
1
null
2019-10-23T03:39:52
2019-10-23T02:29:06
null
UTF-8
Python
false
false
849
py
#!/usr/bin/env python #-*- coding:utf8 -*- #@author: 刘慧玲 2018/5/22 19:15 from selenium import webdriver from time import sleep from login01 import * ''' 脚本作用 :服务器ssp功能 ''' #批量删除存储空间 driver = webdriver.Firefox() driver.delete_all_cookies() driver.maximize_window() # 直接访问景安站存储空间链接,并登录。用户名密码可修改 Login().Ky_login(driver,"l...
[ "1326677806@qq.com" ]
1326677806@qq.com
6991166ac2811bf5b5871d798c5766c22ed204be
32cb0be487895629ad1184ea25e0076a43abba0a
/LifePictorial/top/api/rest/HotelRoomImgUploadRequest.py
ff545c17c529a9cad6b04e9031dcf6168e228996
[]
no_license
poorevil/LifePictorial
6814e447ec93ee6c4d5b0f1737335601899a6a56
b3cac4aa7bb5166608f4c56e5564b33249f5abef
refs/heads/master
2021-01-25T08:48:21.918663
2014-03-19T08:55:47
2014-03-19T08:55:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
''' Created by auto_sdk on 2014-02-10 16:59:30 ''' from top.api.base import RestApi class HotelRoomImgUploadRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.gid = None self.pic = None self.position = None def getapiname(self): ret...
[ "poorevil@gmail.com" ]
poorevil@gmail.com
99f94f0fc3ee9a38ec3c34db968e6e99a9ea7e86
f47fe8a7d8cd87b3bfa2e172b4a9fc93e3a4abc2
/2016/AST2/Bili/letnji/ponovo/konacno1.py
7482940ccb3f15b8866efb9be0b7760bf88d483d
[]
no_license
ispastlibrary/Titan
a4a7e4bb56544d28b884a336db488488e81402e0
f60e5c6dc43876415b36ad76ab0322a1f709b14d
refs/heads/master
2021-01-17T19:23:32.839966
2016-06-03T13:47:44
2016-06-03T13:47:44
60,350,752
0
0
null
null
null
null
UTF-8
Python
false
false
7,475
py
from scipy.special import wofz import numpy as np import matplotlib.pyplot as plt import math from scipy import interpolate e=1.60217657e-19 #elementarno naelektrisanje [C] eV=1.60217657e-19 #eV u J AU=149597871000 #Astronomska jedinica [m] Na=6.02*1e+23 #Avogadrov broj M=23*1e-3 #molarna masa Na [kg/mol] m...
[ "ispast.library@gmail.com" ]
ispast.library@gmail.com
0ec055a25cc8a0344ce78bd9d4773178113d80f6
77ec9edf40b34b48477a627d149b6c2054b98a93
/abc_179_d.py
7b6ac7b449986dfe9275cb4f4fd8e0cb8b57219c
[]
no_license
junkhp/atcorder
fa4eeb204e3a4ac713001ab89c205039703abc88
028ddf7a39534d5907232c4576a03af79feb6073
refs/heads/main
2023-04-11T02:15:10.088883
2021-04-22T07:06:06
2021-04-22T07:06:06
313,284,147
0
0
null
null
null
null
UTF-8
Python
false
false
528
py
def main(): n, k = map(int, input().split()) move_set = set([]) for i in range(k): a, b = map(int, input().split()) for j in range(a, b + 1): move_set.add(j) sorted_set = sorted(move_set) # print(sorted_set) dp = [0] * (n + 1) dp[1] = 1 for i in range(2, n+1)...
[ "oshiba@m.cs.osakafu-u.ac.jp" ]
oshiba@m.cs.osakafu-u.ac.jp
281ad853afa50f156cc560eb9efde70e9130b00e
40e09fc848fac3bc523802e353c4e8bef9e3cf5e
/pyvore/pyvore/managers/sessions.py
9f5d60dbae366a036b85d684f0aee266d2320f5c
[]
no_license
sontek/pycon2012
8ff24ce51770e0fb6a40ec9a510e958b9b9f309b
79d417d185030c0af247506b49903744088abe65
refs/heads/master
2016-09-05T19:56:18.702274
2012-03-17T05:53:46
2012-03-17T05:53:46
3,627,137
3
0
null
null
null
null
UTF-8
Python
false
false
338
py
from pyvore.managers import BaseManager from pyvore.models.sessions import Session from pyvore.models.sessions import Chat class SessionManager(BaseManager): def get_sessions(self): return self.session.query(Session).all() def get_chatlog(self, pk): return self.session.query(Chat).filter(Chat....
[ "sontek@gmail.com" ]
sontek@gmail.com
44e898de8b26e5a201cf475e7ab019e44ead146d
67379c2ae929266f303edc783c8c62edb521174b
/exception/TransactionException.py
255a542bbd984278db4669c881c1ac6ca58f723b
[]
no_license
bbb11808/seata-python
d20be83093d6d084ad36d9292a8ee18ad3bfc8c6
c53b605be423c781d38e599e5bade8df8c81c2d9
refs/heads/master
2023-02-11T01:22:18.488881
2021-01-05T10:10:08
2021-01-05T10:10:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # @author jsbxyyx # @since 1.0 class TransactionException(Exception): def __init__(self, code, message=None, cause=None): self.code = code self.message = message self.cause = cause
[ "jsbxyyx@163.com" ]
jsbxyyx@163.com
ef9a7c367bd1087b092f78ee9feb34f8fb220822
0e667a493715932d3dd45f6a59bd31c391c05b6a
/bin/pygmentize
9e0974abc30dcc7b01ffff006b0e612e8a1e5f35
[]
no_license
Anubhav722/QR-Code-Scanner
84908069d6dc4082e94ce01c62085ce1ac380a62
455d28d5654bed3c9d3161897f7cead21d4c7f8e
refs/heads/master
2021-04-30T16:13:46.769315
2017-01-26T17:28:45
2017-01-26T17:28:45
79,985,166
0
0
null
null
null
null
UTF-8
Python
false
false
248
#!/home/paras/Desktop/QR-Code-Scanner/bin/python # -*- coding: utf-8 -*- import re import sys from pygments.cmdline import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "anubhavs286@gmail.com" ]
anubhavs286@gmail.com
85398c9153e63b9b53d9985b044400b6227c505f
6806bd3e24d2ec3382cce6964e817e279052f121
/sentry/plugins/sentry_sites/models.py
4e294b463ec6ef4e47deb100f73b3e68c629019e
[ "BSD-2-Clause" ]
permissive
magicaltrevor/sentry
af70427a6930f555715362e8899e4269f844e57f
8c11b2db7f09844aa860bfe7f1c3ff23c0d30f94
refs/heads/master
2021-01-18T11:53:55.770327
2012-07-29T22:00:35
2012-07-29T22:00:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
938
py
""" sentry.plugins.sentry_sites.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ import sentry from django.utils.translation import ugettext_lazy as _ from sentry.plugins import register from sentry....
[ "dcramer@gmail.com" ]
dcramer@gmail.com
dcbb7d2c6c118a3060c64cfee2dae6fd5aa40e9d
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_2453486_1/Python/dvolgyes/solution.py
3336b278088a91573eff663adc3c60e306e631a1
[]
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,667
py
#!/usr/bin/python # # Google codejam solution # David Volgyes # # import sys, math, os #import mpmath as mp # see https://code.google.com/p/mpmath/ import numpy as np # see http://www.numpy.org/ #import sympy as sp # see https://code.google.com/p/sympy/ import networkx as nx # see http://networkx.github....
[ "eewestman@gmail.com" ]
eewestman@gmail.com
68a41b87ce93babc8cc9ff31ee191ed3942d9e11
3c000380cbb7e8deb6abf9c6f3e29e8e89784830
/venv/Lib/site-packages/cobra/modelimpl/fv/afabricextconnp.py
6c8a4c7ee71ed4b11370d170b02722427f256c7d
[]
no_license
bkhoward/aciDOM
91b0406f00da7aac413a81c8db2129b4bfc5497b
f2674456ecb19cf7299ef0c5a0887560b8b315d0
refs/heads/master
2023-03-27T23:37:02.836904
2021-03-26T22:07:54
2021-03-26T22:07:54
351,855,399
0
0
null
null
null
null
UTF-8
Python
false
false
4,912
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "bkhoward@live.com" ]
bkhoward@live.com
02d48bd2c223636e35624a38576f0a5412d9f2f8
2e06c0df26e3fbccc2af052301e8b486fd17d84c
/Line3D/line3d_rectangular_projection.py
66b986387a063fbb644ba6817cebe039bc9a5c45
[ "MIT" ]
permissive
d8ye/pyecharts-gallery
54f44c0a78d88608ae83a678c105424113866f25
07995a7f2600983282eb37b1e94da9af2f1a25b5
refs/heads/master
2020-07-03T13:04:42.093830
2019-08-13T04:14:13
2019-08-13T04:14:13
201,913,794
0
0
MIT
2019-08-12T11:04:10
2019-08-12T11:04:09
null
UTF-8
Python
false
false
1,458
py
import math import pyecharts.options as opts from pyecharts.charts import Line3D """ Gallery 使用 pyecharts 1.1.0 参考地址: https://echarts.baidu.com/examples/editor.html?c=line3d-orthographic&gl=1 目前无法实现的功能: 1、 """ week_en = "Saturday Friday Thursday Wednesday Tuesday Monday Sunday".split() clock = ( "12a 1a 2a 3a 4a...
[ "379978424@qq.com" ]
379978424@qq.com
26c28d596fb8b6712cc4ba60a88c42f88de634df
959d6f7027a965f609a0be2885960b63c6dc97bc
/facebook/likers/steps.py
96cfda296f3d581fbb757246dd37896ae0d2495a
[]
no_license
ameetbora/facebook-comments
0bf57f8e5b4a8ef7804aa999fa86d9913b7ee99c
7649c808164f978b147a4410795eadf374e3d3dc
refs/heads/master
2020-04-12T14:39:23.733965
2018-10-30T06:17:42
2018-10-30T06:17:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,905
py
import time def login(driver, user_email: str, user_password: str): driver.get("https://www.facebook.com") email = driver.find_element_by_id("email") password = driver.find_element_by_id("pass") submit = driver.find_element_by_id("loginbutton") email.send_keys(user_email) password.send_ke...
[ "lewington@student.unimelb.edu.au" ]
lewington@student.unimelb.edu.au
3e92f309ef61231db2fa56989217b3ba6eb86326
275a96a33ae1f89e7b2ee0ecdbac7d78abe6d6cc
/swagger_client/models/conflict_error.py
a40924bde282c121008b4b6801a38516e4f056f1
[]
no_license
cascadiarc/cyclos-python-client
8029ce07174f2fe92350a92dda9a60976b2bb6c2
a2e22a30e22944587293d51be2b8268bce808d70
refs/heads/main
2023-04-03T16:52:01.618444
2021-04-04T00:00:52
2021-04-04T00:00:52
354,419,532
0
0
null
null
null
null
UTF-8
Python
false
false
4,439
py
# coding: utf-8 """ Cyclos 4.11.5 API The REST API for Cyclos 4.11.5 # noqa: E501 OpenAPI spec version: 4.11.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from swagger_client.configuration import Configuration class...
[ "dan@leftcoastfs.com" ]
dan@leftcoastfs.com
6085a2cfbcde968d0ed001eb7a49d5bebfa6aa75
817a97680e85142634c3e7c66a3e0a0e5eceaffd
/sma_cross_vol.py
d1c0f856afe1d5f0f00c0bc6834541cf33e6a4d0
[]
no_license
johndpope/algotrading
4cca78db99af8fef0d1fc57aac3104bd0e8a895c
f2f527f85aad6cce928f1c2e9794f9217efcce93
refs/heads/master
2021-06-24T15:24:53.136691
2017-08-27T16:13:55
2017-08-27T16:13:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,488
py
from datetime import datetime, timedelta import backtrader as bt class SMACrossVolumeStrategy(bt.SignalStrategy): params = dict( diff=0.01, limit=0.005, limdays=10, limdays2=1000, maperiod_small=30, maperiod_big=30, ) def __init__(self): self.order = None ...
[ "lifanov.a.v@gmail.com" ]
lifanov.a.v@gmail.com
40d4849bbc2eaf4a84128ba8c1fdc12a9548dde1
16450d59c820298f8803fd40a1ffa2dd5887e103
/baekjoon/5622.py
d81981f661aa57dc341a4a724cc55527ebc3158a
[]
no_license
egyeasy/TIL_public
f78c11f81d159eedb420f5fa177c05d310c4a039
e2f40eda09cb0a65cc064d9ba9b0e2fa7cbbcb38
refs/heads/master
2021-06-21T01:22:16.516777
2021-02-02T13:16:21
2021-02-02T13:16:21
167,803,551
0
0
null
null
null
null
UTF-8
Python
false
false
1,529
py
""" 상근이의 할머니는 아래 그림과 같이 오래된 다이얼 전화기를 사용한다. 전화를 걸고 싶은 번호가 있다면, 숫자를 하나를 누른 다음에 금속 핀이 있는 곳 까지 시계방향으로 돌려야 한다. 숫자를 하나 누르면 다이얼이 처음 위치로 돌아가고, 다음 숫자를 누르려면 다이얼을 처음 위치에서 다시 돌려야 한다. 숫자 1을 걸려면 총 2초가 필요하다. 1보다 큰 수를 거는데 걸리는 시간은 이보다 더 걸리며, 한 칸 옆에 있는 숫자를 걸기 위해선 1초씩 더 걸린다. 상근이의 할머니는 전화 번호를 각 숫자에 해당하는 문자로 외운다. 즉, 어떤 단어를 걸 때, 각 알파벳에 해...
[ "dz1120@gmail.com" ]
dz1120@gmail.com
a3ee575e7318f6ded972fa7288d9b79b53f4f0e7
302442c32bacca6cde69184d3f2d7529361e4f3c
/cidtrsend-all/stage2-model/pytz/zoneinfo/Navajo.py
1b27ae20abe14d05ef0286e1b3a242389516aafd
[]
no_license
fucknoob/WebSemantic
580b85563072b1c9cc1fc8755f4b09dda5a14b03
f2b4584a994e00e76caccce167eb04ea61afa3e0
refs/heads/master
2021-01-19T09:41:59.135927
2015-02-07T02:11:23
2015-02-07T02:11:23
30,441,659
1
0
null
null
null
null
UTF-8
Python
false
false
7,131
py
'''tzinfo timezone information for Navajo.''' from pytz.tzinfo import DstTzInfo from pytz.tzinfo import memorized_datetime as d from pytz.tzinfo import memorized_ttinfo as i class Navajo(DstTzInfo): '''Navajo timezone definition. See datetime.tzinfo for details''' zone = 'Navajo' _utc_transitio...
[ "learnfuzzy@gmail.com" ]
learnfuzzy@gmail.com
3729d9da023e6a5a84cc1c3bac5ff6e4ef5f87db
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/redis/redis/sentinel.pyi
ea13ae681287fa1353217d2e6d217fe0898b122b
[ "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,820
pyi
from collections.abc import Iterable, Iterator from typing import Any, TypeVar, overload from typing_extensions import Literal, TypeAlias from redis.client import Redis from redis.commands.sentinel import SentinelCommands from redis.connection import Connection, ConnectionPool, SSLConnection from redis.exceptions impo...
[ "intellij-monorepo-bot-no-reply@jetbrains.com" ]
intellij-monorepo-bot-no-reply@jetbrains.com
d58cb7de2dbd4f821d0407b7ef618003f1f9fc9b
cb4db25a0b13f058f1a31b38d80d76a118d1e2dc
/venv/lib/python3.6/site-packages/google/api/usage_pb2.py
efe4f7945d109abc9613cb147c11bb4917bdf030
[ "MIT" ]
permissive
Hackaton-Dragons/Never-Boils
73df2b65f54a77d961ce53dea350b7d2a4261154
2d43e6e07fb18409d5a964f44f481d28d2352531
refs/heads/master
2020-03-09T20:27:54.554616
2018-10-08T05:52:33
2018-10-08T05:52:33
128,985,616
1
0
MIT
2018-04-15T13:32:45
2018-04-10T19:35:32
Python
UTF-8
Python
false
true
4,244
py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/api/usage.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection ...
[ "contact@noahh.io" ]
contact@noahh.io
df11eb12d02f73346e7096e6039400e85381a2bb
ab5ef28065b0ad3f8d86fc894be569074a4569ea
/mirari/CRYE/migrations/0028_auto_20190406_1344.py
99b9026478cf2c6aaf96926be89b77b7d4bbecdd
[ "MIT" ]
permissive
gcastellan0s/mirariapp
1b30dce3ac2ee56945951f340691d39494b55e95
24a9db06d10f96c894d817ef7ccfeec2a25788b7
refs/heads/master
2023-01-22T22:21:30.558809
2020-09-25T22:37:24
2020-09-25T22:37:24
148,203,907
0
0
null
null
null
null
UTF-8
Python
false
false
522
py
# Generated by Django 2.0.5 on 2019-04-06 19:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('CRYE', '0027_auto_20190406_1331'), ] operations = [ migrations.AlterField( model_name='walletcredit', name='walletcr...
[ "g@gustavo-castellanos.com" ]
g@gustavo-castellanos.com
8df4144788164a6ec89107cc0ade23a41752bfe4
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_scheduled.py
8a085638d8ee5bfb1423f7fbfc4217347f5939be
[ "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
252
py
from xai.brain.wordbase.verbs._schedule import _SCHEDULE #calss header class _SCHEDULED(_SCHEDULE, ): def __init__(self,): _SCHEDULE.__init__(self) self.name = "SCHEDULED" self.specie = 'verbs' self.basic = "schedule" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
e94f6a0ef46d77df9c8d3ece79519b0d26d16bf7
028d788c0fa48a8cb0cc6990a471e8cd46f6ec50
/Python-OOP/Exam-Preparation/16-Aug-2020/project/software/light_software.py
6182deaf8edbfaa898d0623ff12527b07c73dd0b
[]
no_license
Sheko1/SoftUni
d6b8e79ae545116f4c0e5705ad842f12d77a9c9d
a9fbeec13a30231b6a97c2b22bb35257ac1481c0
refs/heads/main
2023-07-13T15:39:48.826925
2021-08-21T12:51:02
2021-08-21T12:51:02
317,266,200
2
3
null
null
null
null
UTF-8
Python
false
false
454
py
from .software import Software class LightSoftware(Software): CAPACITY_INCREASE = 0.5 MEMORY_DECREASE = 0.5 def __init__(self, name: str, capacity_consumption: int, memory_consumption: int): super().__init__(name, type="Light", capacity_consumption=int( capacity_consumption + (capacit...
[ "martinkypar@gmail.com" ]
martinkypar@gmail.com
dc06bceff161ff58ede64f0c6360bacc5fdbeee6
6d7678e3d79c97ddea2e2d65f2c2ef03b17f88f6
/venv/lib/python3.6/site-packages/pysnmp/proto/api/__init__.py
d742ecc76dec1386047d3cae28b450a5edff0f52
[ "MIT" ]
permissive
PitCoder/NetworkMonitor
b47d481323f26f89be120c27f614f2a17dc9c483
36420ae48d2b04d2cc3f13d60d82f179ae7454f3
refs/heads/master
2020-04-25T11:48:08.718862
2019-03-19T06:19:40
2019-03-19T06:19:40
172,757,390
2
0
MIT
2019-03-15T06:07:27
2019-02-26T17:26:06
Python
UTF-8
Python
false
false
368
py
# # This file is part of pysnmp software. # # Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pysnmp/license.html # from pysnmp.proto.api import v1, v2c, verdec # Protocol versions protoVersion1 = 0 protoVersion2c = 1 protoModules = {protoVersion1: v1, protoVersion2c: v2c} dec...
[ "overlord.lae@gmail.com" ]
overlord.lae@gmail.com
46c5e2b2ed08ba91155f44d266097399816d6ca5
dcce56815dca2b18039e392053376636505ce672
/dumpscripts/atexit_simple.py
cadf7e713067bfdb1023e1a1054adc7c45bab915
[]
no_license
robertopauletto/PyMOTW-it_3.0
28ff05d8aeccd61ade7d4107a971d9d2576fb579
c725df4a2aa2e799a969e90c64898f08b7eaad7d
refs/heads/master
2021-01-20T18:51:30.512327
2020-01-09T19:30:14
2020-01-09T19:30:14
63,536,756
4
1
null
null
null
null
UTF-8
Python
false
false
150
py
# atexit_simple.py import atexit def all_done(): print('all_done()') print('In registrazione') atexit.register(all_done) print('Registrato')
[ "roberto.pauletto@gmail.com" ]
roberto.pauletto@gmail.com
aac4db2e2f613a796ff33628461587fd26159cfb
db4d56e63c63cd577c3871349ffa2a7c39c80edc
/3.WEB/cxr_project/cxr_project/wsgi.py
b576c8906ada1a87940826b1a379206b6c76b16d
[]
no_license
Lagom92/CXR_AI
33014b7471775e776ed51bfeb88128fd7ca4ce6f
bb4bbaf3fc984938f153bf6b58ed99324f779070
refs/heads/master
2023-06-09T11:20:57.613207
2021-06-20T11:34:21
2021-06-20T11:34:21
293,966,064
0
0
null
2021-06-18T00:09:48
2020-09-09T01:08:43
Jupyter Notebook
UTF-8
Python
false
false
399
py
""" WSGI config for cxr_project 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/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
[ "jyyt0147@gmail.com" ]
jyyt0147@gmail.com
4f0a6cf506689d8331fef6df1a76b147b1ff06ad
82b495a208ebdeb71314961021fbfe767de57820
/chapter-13/sample02.py
5d7d05833306dc085a1573bee83e46cd05ba6b89
[ "MIT" ]
permissive
krastin/pp-cs3.0
7c860794332e598aa74278972d5daa16853094f6
502be9aac2d84215db176864e443c219e5e26591
refs/heads/master
2020-05-28T02:23:58.131428
2019-11-13T13:06:08
2019-11-13T13:06:08
188,853,205
0
0
MIT
2019-11-13T13:06:09
2019-05-27T13:56:41
Python
UTF-8
Python
false
false
1,410
py
import time from sample01 import linear_search_while from sample01 import linear_search_for from sample01 import linear_search_sentinel from typing import Callable, Any def time_it(search: Callable[[list, Any], Any], L: list, v: Any) -> float: """Time how long it takes to run function search to find value v i...
[ "krastin@hashicorp.com" ]
krastin@hashicorp.com
f2515b3ea9d81b413d7f16c3fd76965b099723a9
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/artificial/transf_Fisher/trend_Lag1Trend/cycle_5/ar_12/test_artificial_1024_Fisher_Lag1Trend_5_12_0.py
cdbf8396fc2e08ebfbdd54ac8c3f8c8a7b230896
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
262
py
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 5, transform = "Fisher", sigma = 0.0, exog_count = 0, ar_order = 12);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
5e50c90e36940a756c0066a4f1a0415e5c585153
bc2a96e8b529b0c750f6bc1d0424300af9743904
/acapy_client/models/v20_pres_ex_record_list.py
637f5f3594379b6fb12a0376417eca62ccdfbc8b
[ "Apache-2.0" ]
permissive
TimoGlastra/acapy-client
d091fd67c97a57f2b3462353459780281de51281
d92ef607ba2ff1152ec15429f2edb20976991424
refs/heads/main
2023-06-29T22:45:07.541728
2021-08-03T15:54:48
2021-08-03T15:54:48
396,015,854
1
0
Apache-2.0
2021-08-14T13:22:28
2021-08-14T13:22:27
null
UTF-8
Python
false
false
1,983
py
from typing import Any, Dict, List, Type, TypeVar, Union import attr from ..models.v20_pres_ex_record import V20PresExRecord from ..types import UNSET, Unset T = TypeVar("T", bound="V20PresExRecordList") @attr.s(auto_attribs=True) class V20PresExRecordList: """ """ results: Union[Unset, List[V20PresExReco...
[ "dbluhm@pm.me" ]
dbluhm@pm.me
2c1fc8d25010246935865616a7f2d77dbf36a205
ff739149fb1091fcd090b5e68ab4b98d9fec9262
/tests/unit/test_sitemap.py
7f58445883b0626a64a1c800b55009991b5a7c33
[ "MIT" ]
permissive
zhuoranmusic/dash-docs
dcdab8a5543f6f3f10cb20d196148969bfe01943
3518869b195a7827fe661a90f9a2054c31680d44
refs/heads/master
2022-04-18T17:37:44.647847
2020-04-20T18:13:14
2020-04-20T18:13:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
323
py
import pytest import sys from generate_sitemap import create_sitemap @pytest.mark.skipif(sys.version_info < (3, 6), reason="requires python3.6 or higher") def test_sitemap_is_updated(): with open('dash_docs/assets/sitemap.xml', 'r') as f: saved_sitemap = f.read() assert create_sitemap() == saved_sitem...
[ "chris@plot.ly" ]
chris@plot.ly
1a41bd25d395783d808bbe7baa3ab53534669a7e
f5a82f7b2695ed08c9f7432013889590ed9cd1d0
/healthpoint/decorators.py
17bb337812dcdbf86156385ff894f6a57f2c31fe
[ "MIT" ]
permissive
lordoftheflies/django-healthpoint
bb717f3a4f9a96b9d81f10fbb45e6982c020e93b
aaf8c77150b2ae5bf7d3f9050841b885e8cda17a
refs/heads/master
2020-08-03T02:55:15.244656
2019-09-18T16:13:10
2019-09-18T16:13:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
759
py
from functools import wraps from healthpoint.registry import register_health_check def health_check(f): @wraps(f) def wrapper(*args, **kwargs): try: result = f(*args, **kwargs) if isinstance(result, bool): success, detail = result, 'OK' if result else 'ERROR' ...
[ "raymond.penners@intenct.nl" ]
raymond.penners@intenct.nl
c8ce36e7f047b623defb9b3a946c5a7cb799aa02
be61a9f30274514857ea34297719157f1e5b8447
/fhir/resources/DSTU2/age.py
9975cdbeda716d349901880fad136791d72da6f6
[ "BSD-3-Clause" ]
permissive
jwygoda/fhir.resources
ceff3a620100d2e875136b86d3e82816c0e60a33
5053565570d1ca992d9971d20db813c53fd350b9
refs/heads/master
2021-02-05T02:59:17.436485
2019-07-18T10:57:33
2019-07-18T10:57:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
951
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 1.0.2.7202 (http://hl7.org/fhir/StructureDefinition/Age) on 2019-05-14. # 2019, SMART Health IT. from . import quantity class Age(quantity.Quantity): """ A duration (length of time) with a UCUM code. There SHALL be a code if there i...
[ "connect2nazrul@gmail.com" ]
connect2nazrul@gmail.com
b3ae4dd8d3b6d3f3f5f2d0f12474ab0ea469bd94
7ad19e854135977ee5b789d7c9bdd39d67ec9ea4
/members/amit/clf/audio_processing.py
571343202183ddc05c2774531c7e5fd1d3a26acd
[ "MIT" ]
permissive
Leofltt/rg_sound_generation
1b4d522507bf06247247f3ef929c8d0b93015e61
8e79b4d9dce028def43284f80521a2ec61d0066c
refs/heads/main
2023-05-02T19:53:23.645982
2021-05-22T16:09:54
2021-05-22T16:09:54
369,842,561
0
0
MIT
2021-05-22T15:27:28
2021-05-22T15:27:27
null
UTF-8
Python
false
false
1,248
py
import librosa import numpy as np from typing import Dict def get_mel_spectrogram(audio: np.ndarray, params: Dict) -> np.ndarray: mel_spec = librosa.feature.melspectrogram( audio, sr=params.get("sample_rate"), n_fft=params.get("n_fft"), hop_length=params.get("hop_len"), n_...
[ "amit.yadav.iitr@gmail.com" ]
amit.yadav.iitr@gmail.com
5bdcae03801bc9263730f63678c10f2052be98f5
5c8139f1e57e06c7eaf603bd8fe74d9f22620513
/PartB/py全排列4.py
b1e46e018cad4170fe7d76313c34805ed586b0ef
[]
no_license
madeibao/PythonAlgorithm
c8a11d298617d1abb12a72461665583c6a44f9d2
b4c8a75e724a674812b8a38c0202485776445d89
refs/heads/master
2023-04-03T07:18:49.842063
2021-04-11T12:02:40
2021-04-11T12:02:40
325,269,130
0
0
null
null
null
null
UTF-8
Python
false
false
1,133
py
# 列表的全排列的实现。 # 全排列算法 class Solution(object): def permutations(self, nums): if nums is None: return [] res = [] def helper(start): if start == len(nums): res.append(nums[:]) for i in range(start, len(nums)): nums[i], nu...
[ "2901429479@qq.com" ]
2901429479@qq.com
a1c16962e511343f6654c076de283096891c70f9
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/python/hard/3_1.py
5e5a923d3f652d3bb692c335928a84af29e9c3c5
[]
no_license
qmnguyenw/python_py4e
fb56c6dc91c49149031a11ca52c9037dc80d5dcf
84f37412bd43a3b357a17df9ff8811eba16bba6e
refs/heads/master
2023-06-01T07:58:13.996965
2021-06-15T08:39:26
2021-06-15T08:39:26
349,059,725
1
1
null
null
null
null
UTF-8
Python
false
false
1,994
py
GUI to Shutdown, Restart and Logout from the PC using Python In this article, we are going to write a python script to shut down or Restart or Logout your system and bind it with GUI Application. The **OS module** in Python provides functions for interacting with the operating system. OS is an inbuilt libra...
[ "qmnguyenw@gmail.com" ]
qmnguyenw@gmail.com
13a4905ae7077bf34c1cfcef8d53ed482623a436
2ff4a38b86dfee4115c0a9280e95ff042d36f8bd
/programmers/lv2/emergency_boat_lv2.py
4e7c867c41c62802da3a4d88574770e17a8f9e71
[]
no_license
ohtaehyun/algo_study
5e0adc6d18a186d959f0ad191af0d916f5c99793
87ac40b89b5ddbba09e8b3dd86ed0a3defc0590b
refs/heads/master
2023-02-24T13:52:37.323111
2021-01-25T09:32:55
2021-01-25T09:32:55
284,712,413
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
from collections import deque def solution(people, limit): answer = 0 people.sort() p =deque(list(people)) while p : weight = p.popleft() remain_weight = limit - weight while p : w = p.pop() if w <= remain_weight: break else : ...
[ "othdev95@gmail.com" ]
othdev95@gmail.com
dd1ed5bd20b5a60fd53bd43317230eb05bda02ff
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_267/ch80_2020_06_17_20_39_13_688401.py
d534bc9a3759e6fe0eb67eb6874f60c857066930
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
def interseccao_chaves(dicio1, dicio2): lista_chaves = [] for i in dicio1.keys() and l in dicio2.keys(): if i == l: lista_chaves.append(i) return lista_chaves
[ "you@example.com" ]
you@example.com
e1d364e8012b8e88a5aa8ea7ea24b49307bae086
5064d0a44fb1e1af0205ae0bfa711bdbf2a33cc6
/test/main_json.py
495de07bbef5c2a94bb17969b852bb609d084a3b
[]
no_license
lmxwade/DSCI_551
4e157ae87f370a5e0195ea64c1afb2cf385c2418
eecdc9222ae0e3441c167525609dfd54ed4134a8
refs/heads/master
2023-02-10T15:48:38.755414
2020-07-04T16:24:35
2020-07-04T16:24:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,092
py
# __author__ = 'Aaron Yang' __email__ = 'byang971@usc.edu' __date__ = '9/6/2019 3:45 PM' import json if __name__ == "__main__": data = {'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5} print(type(data)) # <class 'list'> # json.dumps 用于将 Python 对象编码成 JSON 字符串 jsonStr = json.dumps(data) print(jsonStr) # <class 'str'> ...
[ "aaron19940628@gmail.com" ]
aaron19940628@gmail.com
df2687be95865187cd182c14c35da780e63fbbda
abc1a497c41ddd8669c8c41da18af65d08ca54e4
/AnalysisF/recon_wf/1ns/make_H1ns.py
106466fe5adefdd90b89f9c759c167aade3faeb5
[]
no_license
gerakolt/direxeno_privet
fcef5e3b654720e277c48935acc168472dfd8ecc
75e88fb1ed44fce32fce02677f64106121259f6d
refs/heads/master
2022-12-20T22:01:30.825891
2020-10-04T06:01:07
2020-10-04T06:01:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,645
py
import numpy as np import matplotlib.pyplot as plt import time import os import sys from scipy.optimize import minimize from scipy.stats import poisson, binom from scipy.special import erf as erf pmts=[0,1,4,7,8,14] path='/home/gerak/Desktop/DireXeno/190803/Cs137B/EventRecon/' rec=np.load(path+'recon1ns98999.npz')[...
[ "gerakolt@gmail.com" ]
gerakolt@gmail.com
2d7752b5248ca30de42447503f8cb51b06fd5d1f
21e64f9410323a11d4550b889fd0bb0d68543fab
/config/munin/mongodb_conn
93f39733e6ea84ca3aa106275b63a88e87de9375
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
quanganhdo/NewsBlur
a7eaa3c5bdb2e57998651d736db861f88fcd1e75
cef29f01658c845564a5044b48b4cf19efcaa4d6
refs/heads/master
2021-03-05T23:56:27.976498
2020-02-27T15:23:23
2020-02-27T15:23:23
246,164,347
1
0
MIT
2020-03-09T23:34:18
2020-03-09T23:34:17
null
UTF-8
Python
false
false
791
#!/srv/newsblur/venv/newsblur/bin/python # -*- coding: utf-8 -*- from vendor.munin.mongodb import MuninMongoDBPlugin class MongoDBConnectionsPlugin(MuninMongoDBPlugin): args = "-l 0 --base 1000" vlabel = "count" title = "MongoDB current connections" info = "Current connections" fields = ( ...
[ "samuel@ofbrooklyn.com" ]
samuel@ofbrooklyn.com
004329b3ddea39cfcdec79380491743f3b906eb9
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/leap/5b53afc49b5f418cb7d6bbf495c8fdd9.py
38933221b5f04fff5d26cc532c350159342a7cc9
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
239
py
'''This module will take in a year (positive integer) and return True if the year is a leap year, False if it is not. Lesson: Refactor. ''' def is_leap_year(year): return (year%400 == 0) or ((year%100 != 0) and (year%4 == 0))
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
e5187be6c2339cacd981c880a7bcc4f600452526
e1112bb6d54acb76e6e991fc4c3fc0d3a1f7b0d6
/02 - Sets and tuples/Exercise/02-Sets_of_elements.py
7bbb5ad6a390172f3d0bbbf55241d1a067f2744d
[]
no_license
MiroslavPK/Python-Advanced
0326209d98254d4578a63dcd4c32b49be183baf2
0c696a220aa587edb2505e8d986b041cc90a46f3
refs/heads/master
2023-01-12T10:46:06.590096
2020-11-18T19:08:55
2020-11-18T19:08:55
295,449,832
0
0
null
null
null
null
UTF-8
Python
false
false
224
py
n, m = map(int, input().split()) n_set = set() m_set = set() for i in range(n+m): if i < n: n_set.add(input()) else: m_set.add(input()) intersection = n_set & m_set print('\n'.join(intersection))
[ "miroslavkarakostov@gmail.com" ]
miroslavkarakostov@gmail.com
6f1bb4ff7967bfd1652c3e845f0f639580fcd308
a45b8075f3c3b247a3cac43cb12bf4d80103f608
/glamazer/urls.py
2df7d0d6d8a24ce521febc8454892b0cfa167c9e
[]
no_license
kahihia/glamfame
c890a8772aa92b8ed9e3c0bb664c5dae187d1c09
af91d4d16d0c8847c42eb97be839bf08015274b6
refs/heads/master
2021-01-21T09:59:52.700945
2016-02-15T17:16:13
2016-02-15T17:16:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,906
py
from django.conf import settings from django.conf.urls.static import static from django.conf.urls import patterns, include, url from django.views.generic import TemplateView from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns admin.autodiscover() urlpatterns = pattern...
[ "zhuhov@gmail.com" ]
zhuhov@gmail.com
2fb3622d8520b0df9fdbf0783f3a2333622c2c5b
46ad22b772f0bb115e1192ca24c86b1593d51870
/eclipsed/src/cursor.py
f67a0516f50351fa94c3799522d029fba269422b
[ "CC0-1.0", "WTFPL", "CC-BY-4.0" ]
permissive
cosmologicon/unifac
fb533abfbba7ebb33561a330f7be5d22dbc2a373
e7668c6736cd4db66f8d56e945afb69ec03f2160
refs/heads/master
2022-06-15T10:46:28.448477
2022-05-30T20:26:55
2022-05-30T20:26:55
37,033,765
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
tobuild = None pointingto = None # These don't really need to go here since they're redundant with hud.mode # but this module was looking a little lonely so here they are. disable = False unbuild = False
[ "cosmologicon@gmail.com" ]
cosmologicon@gmail.com
74d8d9d2cc5d152126537573a927ca64f8afb791
5a7abc4537039860c49e9a80219efa759aad1b6f
/tests/providers/aws/services/ec2/ec2_securitygroup_from_launch_wizard/ec2_securitygroup_from_launch_wizard_test.py
a3c14ce6680594654bebaca336460ebb88319e50
[ "Apache-2.0" ]
permissive
sec-js/prowler
d5a06c72f5d7e490bade1167966f83f7a5d7ed15
f72be9a1e492ad593c9ac267d3ca07f626263ccd
refs/heads/master
2023-08-31T22:48:33.983360
2022-12-22T16:02:28
2022-12-22T16:02:28
243,866,744
0
0
Apache-2.0
2022-12-23T12:23:20
2020-02-28T22:37:02
Python
UTF-8
Python
false
false
4,834
py
from re import search from unittest import mock from boto3 import client, resource from moto import mock_ec2 AWS_REGION = "us-east-1" EXAMPLE_AMI_ID = "ami-12c6146b" class Test_ec2_securitygroup_from_launch_wizard: @mock_ec2 def test_ec2_default_sgs(self): # Create EC2 Mocked Resources ec2_c...
[ "noreply@github.com" ]
sec-js.noreply@github.com
46c75cfc66b41a8d03c8a63219aa1d6fb596b2ba
c7c001c9011f559b8b1c85d1c3e0387a86a99628
/y2018/day18/lumber_collection.py
ec0c9f79bbc2fe5449c89bab26476d8ddca92c8e
[]
no_license
ericbgarnick/AOC
5ddfd18850b96f198e125f5d1f0978e852195ccf
a935faad3fcbbe3ac601e2583ed27b38bc60ef69
refs/heads/main
2023-04-12T18:50:09.926169
2023-04-09T12:47:35
2023-04-09T12:47:35
224,573,310
2
1
null
2021-12-15T14:25:33
2019-11-28T05:00:52
Python
UTF-8
Python
false
false
1,890
py
from typing import List from acre import Acre class LumberCollection: def __init__(self, area_map: List[str]): row_len = len(area_map[0]) num_rows = len(area_map) self.collection_area = [] # type: List[Acre] self.populate_area(area_map) self.link_acres(row_len, num_rows) ...
[ "eric.b.garnick@gmail.com" ]
eric.b.garnick@gmail.com
1c06d723254657701479f4b0179290148c45af44
0d76ba0da5446f20e500b7e31f53821b14cb49d8
/Codility/python/abs_distinct.py
a14e108198517a0a7f73819039d873dfe2b9a69b
[]
no_license
filwaitman/playground
948aa687be06d456c86b65ee3ab5fb9792149459
dfdfab9002bff3a04f37e0c161363a864cd30f3e
refs/heads/master
2021-01-12T12:59:49.057832
2020-01-26T18:51:02
2020-01-26T18:51:02
68,865,259
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
# -*- coding: utf-8 -*- # https://codility.com/programmers/task/abs_distinct # 100/100 def solution(A): positives = map(abs, A) return len(set(positives)) assert solution([-5, -3, -1, 0, 3, 6]) == 5 assert solution([42]) == 1 assert solution(range(-1000, 0) + range(1, 1001)) == 1000
[ "filwaitman@gmail.com" ]
filwaitman@gmail.com
70e7af3e0751be27c0879cdd30eb63c48c35d1d0
a38670ee08ea64af33477899a68ee22936f70ce7
/luffy/第三模块/第6章网络编程/第6章每小节/2 加上循环/04 模拟ssh远程执行命令/客户端.py
a62f5c2f2197ac5dd07315df58754ce788d23051
[]
no_license
foremostxiao/d
40ed37215f411e8b081a4cb92c8ecbd335cd9d76
fe80672adc6b2406365b05d5cedd02c6abf66c11
refs/heads/master
2020-03-29T13:51:19.589004
2018-09-23T09:29:56
2018-09-23T09:29:56
149,985,622
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
import socket phone = socket.socket(socket.AF_INET,socket.SOCK_STREAM) phone.connect(('127.0.0.1',8080)) while True: # 1 发命令 cmd = input('>>>').strip()# 输入mingl if not cmd:continue phone.send(cmd.encode('utf-8')) # send 发给操作系统了 # 2 拿命令的结果并打印 data = phone.recv(1024) # 1024是个坑,有可能收到的超过1024,后续解决 ...
[ "foremostxiao@163.com" ]
foremostxiao@163.com
c0dfa6271b2327073a0a168b47640c937cbeee81
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/303/usersdata/287/71629/submittedfiles/testes.py
967c3e410a7b976e11bd707dcfdc03122824963f
[]
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
220
py
# -*- coding: utf-8 -*- #COMECE AQUI a=int(input('Que horas são? [0-23]')) if a > 3 and a < 12: print('Bom diiiia!') elif a >= 12 and a < 18: print('Boa tarde') else: print('Boa noite, ate amanha!')
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
e80a8d81e6392f1d7934470081943b1bf032f8fd
d53479a3a5efab85a065b4a7c08cb38b6246f0eb
/python-division.py
66b9ee6a6492eb7b5fa6987137dcbe09a4d4af61
[]
no_license
Snehal6697/hackerrank
0242f927f630e652d6dcca901af8d8bd737b671f
c418fb24e08e5c57a1bd0d91f95ab2af32f01c64
refs/heads/master
2022-12-26T12:35:47.586007
2020-07-07T22:14:39
2020-07-07T22:14:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
#!/usr/bin/env python2.7 from __future__ import division def main(): a = int(raw_input()) b = int(raw_input()) print a // b print a / b if __name__ == '__main__': main()
[ "charles.wangkai@gmail.com" ]
charles.wangkai@gmail.com
259cd5eaaa20071850043e7d7215f3ce6aebb6c9
02447b317690827683dc329153e74f1599e4db92
/wazimap_ng/general/views.py
cf915a8c7c7477aca9df7290d0a6c06d7c62058d
[ "Apache-2.0" ]
permissive
neoromantique/wazimap-ng
fc8ca6704851db8d9941d3bcb9c06e367c2e1e94
c19e9450655f5d404c60e2b4d214715ec8a0b1d9
refs/heads/master
2021-02-11T00:02:54.001820
2020-02-13T20:36:40
2020-02-13T20:36:40
244,431,358
0
0
Apache-2.0
2020-03-02T17:23:51
2020-03-02T17:23:50
null
UTF-8
Python
false
false
1,482
py
from rest_framework.response import Response from rest_framework.decorators import api_view from ..datasets import models as dataset_models from ..datasets import views as dataset_views from ..boundaries import models as boundaries_models from ..boundaries import views as boundaries_views from ..utils import cache_dec...
[ "adi@openup.org.za" ]
adi@openup.org.za
2b66f779ad34d216561b67a4a62e5d69750079e3
869d917ef14fb8e4bb899a192903dd1f64028d2b
/train/train_street_view_regression.py
faa00a2a48b49ee081de9cbc395048edd88abcef
[]
no_license
andreiqv/rotnet_not_my
bbd7fadba9c2e000d324e931d4fddc95ad8e4e25
ce0ea3f80aba263ae5fc54549c5d3d571d02ef59
refs/heads/master
2020-04-26T11:00:21.724905
2019-03-02T22:50:31
2019-03-02T22:50:31
173,502,216
0
0
null
null
null
null
UTF-8
Python
false
false
2,469
py
from __future__ import print_function import os import sys from keras.callbacks import ModelCheckpoint, EarlyStopping, TensorBoard from keras.applications.resnet50 import ResNet50 from keras.applications.imagenet_utils import preprocess_input from keras.models import Model from keras.layers import Dense, Flatten sys...
[ "phxv@mail.ru" ]
phxv@mail.ru
fdb8fc4c86a750baa500c7ee03cbb74671b28f35
ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f
/Sourcem8/pirates/minigame/RepairGlobals.py
8027e62d79153e2436b77a14e3c56012b7f68cec
[]
no_license
BrandonAlex/Pirates-Online-Retribution
7f881a64ec74e595aaf62e78a39375d2d51f4d2e
980b7448f798e255eecfb6bd2ebb67b299b27dd7
refs/heads/master
2020-04-02T14:22:28.626453
2018-10-24T15:33:17
2018-10-24T15:33:17
154,521,816
2
1
null
null
null
null
UTF-8
Python
false
false
5,950
py
from pandac.PandaModules import Vec3, Vec4, Point3 class VariableContainer: def __init__(self): pass AI = VariableContainer() AI.goldRewardRange = (15, 35) AI.goldRewardMultiplier = [ (14.0, 3.0), (18.0, 2.5), (24.0, 2.0), (36.0, 1.6000000000000001), (52.0, 1.3), (72.0, 1.14999999...
[ "brandoncarden12345@gmail.com" ]
brandoncarden12345@gmail.com
bce6368fc8a866dd4bff9c0a271687bdaea848c1
5e014f95b49f376b34d20760c41f09bdca094247
/flask_ide/auth/models.py
2fe1fcdca8701cfe3cf45972adb5b95603c108eb
[]
no_license
jstacoder/flask-ide
34ae304c211c7b263f37b2fcf0660ae76053c0a2
3890756c094b4b7872bad7d915e764e3e32dcb2d
refs/heads/master
2023-02-12T11:22:24.412680
2020-07-20T17:21:55
2020-07-20T17:21:55
29,079,246
50
10
null
2023-02-02T07:17:40
2015-01-11T02:51:35
JavaScript
UTF-8
Python
false
false
3,478
py
from flask_xxl.basemodels import BaseMixin from flask import url_for from LoginUtils import encrypt_password, check_password from sqlalchemy.ext.declarative import declared_attr #import sqlalchemy to global namespace from sqlalchemy import ( UnicodeText,func,Enum,UniqueConstraint,DateTime,Text,Column,Integer,...
[ "kyle@level2designs.com" ]
kyle@level2designs.com
87c7524501017490341a86012b5d7364f04aacde
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_54/78.py
1e0afea1344679e1079ae74d8bb54a891e5ad167
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
956
py
def gcd(a,b): while (b != 0): c = a%b a = b b = c return a def get_gcd(line): g = line[0] cnt = len(line) for i in range(1,cnt): g = gcd(g,line[i]) return g def solve(line): N = int(line.pop(0)) for i in range(0,N): line[i] = int...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
d5b659372a216b999b788a1e5dbe6d3852e2a1f3
474525154a4e1d48ef5242d1f44164d05399b145
/tensorflow_probability/python/experimental/distributions/mvn_precision_factor_linop_test.py
47676d4d6f31be7ebf0b5ac98d233982286579c7
[ "Apache-2.0" ]
permissive
svshivapuja/probability
9855737790f74a39169688fbfec9671deef804d9
af7ccb22d972329633530c3b754ed1f49472f6a7
refs/heads/main
2023-07-17T04:14:53.703622
2021-08-30T17:47:06
2021-08-30T17:47:06
400,983,015
1
0
Apache-2.0
2021-08-29T07:51:29
2021-08-29T07:51:29
null
UTF-8
Python
false
false
8,157
py
# Copyright 2020 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
bd374ed841b18e22b1108b9e8b2c12dac786d446
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/artificial/transf_Anscombe/trend_MovingMedian/cycle_30/ar_12/test_artificial_128_Anscombe_MovingMedian_30_12_100.py
ccc8235516ad5f149b1dacaabb8d05d4860cb57f
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
269
py
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 30, transform = "Anscombe", sigma = 0.0, exog_count = 100, ar_order = 12);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
f0c8e4a7e7eedd40041bc507e96e9ebd1d7c55c0
3e713a67f370d1cc1ba0882159a03b673bd22f9a
/DataStructure and Alogorithms/[HACKERRANK]-cats and a mouse .py
d1edad7dc3eaf287f6fbb70ca5520a5f5a091571
[]
no_license
s-abhishek2399/competitive-progamming--PYTHON
739797ffea0b92cc2781559e7d4eed1d274678a6
29f9e63cfc05c01fa605c14fb8a3a55920296d43
refs/heads/master
2023-03-08T02:40:00.962109
2021-02-16T15:07:52
2021-02-16T15:07:52
328,732,345
2
0
null
null
null
null
UTF-8
Python
false
false
239
py
n = int(input()) for i in range(n): l=[int(x) for x in input().split()] a = l[0]-l[2] b = l[1]-l[2] if abs(a)<abs(b): print("Cat A") elif abs(b)<abs(a): print("Cat B") else: print("Mouse C")
[ "s.abhishek2399@gmail.com" ]
s.abhishek2399@gmail.com
3fa07e5008b46020f7867d26769152465c99df3f
07ffe8db66fbd50f87315df34074e20b3ce67f0e
/about/models.py
80a8e89e5bba77662e330b6c74d3a6e0a8d8a48a
[]
no_license
jakiiii/jtro-ecommerce
9acc6d37797e409a79921358958e50d66f20a0b4
e6e5ae04c7756e99f862634ad21f1d3877b501ab
refs/heads/master
2023-01-22T09:44:47.891286
2020-12-01T23:32:19
2020-12-01T23:32:19
316,202,084
0
0
null
null
null
null
UTF-8
Python
false
false
488
py
from django.db import models from ckeditor_uploader.fields import RichTextUploadingField from jtro_ecommerce.utils import upload_image_path class About(models.Model): title = models.CharField(max_length=150) image = models.ImageField(upload_to=upload_image_path, null=True, blank=True) description = Rich...
[ "me.jaki@outlook.com" ]
me.jaki@outlook.com
03668cd8657241fcab646595058f80c9f4125756
c3aad901e32f735625f938b4c26cdfa307254a6b
/biothings_explorer/api_preprocess/reasoner.py
b89e427492a7a016d9355ed1ccfbe18fd59cd9d8
[ "Apache-2.0" ]
permissive
andrewgcodes/biothings_explorer
73c598fae2171e8b61687325fa1c1ee1a625fbe1
b54aa195bbed19ff5be09ed24dee869b24bb3c16
refs/heads/master
2022-12-23T18:06:34.061346
2022-08-18T20:23:17
2022-08-18T20:23:17
279,000,723
0
0
Apache-2.0
2020-07-12T05:49:16
2020-07-12T05:49:15
null
UTF-8
Python
false
false
939
py
from itertools import groupby def restructure_reasoner_response(json_doc): """Restructure the API output from reasoner API. :param: json_doc: json output from reasoner API """ edges = json_doc['knowledge_graph']['edges'] if not edges: return {} res = {} edges = sorted(edges, key=la...
[ "kevinxin@scripps.edu" ]
kevinxin@scripps.edu
57839fbdaf39ce151f280eecf2ac06516ded4c83
0123229ac84c057b188f6b17c1131ec630ecaf25
/stochastic_gradient_descent/test_sire_offset/offset_fix_phiandpsi/extract_frcmod.py
4598f60b3d2efdd919bfb1c52e5dd461d50b8d9e
[]
no_license
michellab/paramfit-tests
689851ab95406aad7160403c4a70d3ec6be91981
39598e93936beff48aefff1604483fd265a5f46a
refs/heads/master
2021-01-13T05:47:23.287857
2017-04-24T10:58:21
2017-04-24T10:58:21
76,249,680
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
from parmed.amber import * import parmed import os base = AmberParm("orig.prmtop", "fit.rst7") parmed.tools.writeFrcmod(base,"test.frcmod").execute() frcmod_file = open("test.frcmod","r").readlines() for fr in frcmod_file: if "C -N -CT-C " in fr: # this is phi print("value of Phi") print(fr) ...
[ "stefanobosisio1@gmail.com" ]
stefanobosisio1@gmail.com
35a457296554b87038a7ebfa03198c4b1c60e697
ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f
/Sourcem8/pirates/effects/VoodooAura2.py
852b91918310ef820ba576e0b80105d5ea24b395
[]
no_license
BrandonAlex/Pirates-Online-Retribution
7f881a64ec74e595aaf62e78a39375d2d51f4d2e
980b7448f798e255eecfb6bd2ebb67b299b27dd7
refs/heads/master
2020-04-02T14:22:28.626453
2018-10-24T15:33:17
2018-10-24T15:33:17
154,521,816
2
1
null
null
null
null
UTF-8
Python
false
false
4,226
py
# File: V (Python 2.4) from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from direct.particles import ParticleEffect from direct.particles import Particles from direct.particles import ForceGroup from otp.otpbase import OTPRender from PooledEffect import PooledEffect from EffectController ...
[ "brandoncarden12345@gmail.com" ]
brandoncarden12345@gmail.com
f67e1e6de3d56e55471bc879166edec1c32ba813
8da79aedfb20c9798de0f4db4c5d85929a32f82b
/boo/columns.py
200ff1a19478b1dd373b0d3bbfd9b11bfc79fc79
[ "MIT" ]
permissive
nasingfaund/boo
a94e941ca8d3251fbb320c2e2f63e439f7ef4d59
96d08857abd790bc44f48256e7be7da130543a84
refs/heads/master
2023-07-01T00:33:33.085311
2021-08-03T21:23:03
2021-08-03T21:23:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,429
py
"""Преобразование сырых названий столбцов в названия переменных. Описания полей отчетности можно посмотреть например в: http://info.avtovaz.ru/files/avtovaz_ras_fs_2012_rus_secured.pdf Более подробно о публикуемой форме отчетности: http://www.consultant.ru/document/cons_doc_LAW_103394/b990bf4a13bd23fda86e0bba50c462a1...
[ "e.pogrebnyak@gmail.com" ]
e.pogrebnyak@gmail.com
f771322752f5feab04cb77f3b2f35d3026f3513f
8aa3069cd4840fd216b917187a9c96bd7d3e2367
/Exercícios/binomiofatorial.py
424d1e4b8b3bb4389d4000032efe0357afec0102
[]
no_license
rafaelsaidbc/USP
b10a28f958a1af5670fe48061f7b0c8b9db5d5d0
8c077f392fccd814380ea0e1b5ec228a54d4f779
refs/heads/master
2020-03-24T00:41:12.718523
2018-07-25T18:31:47
2018-07-25T18:31:47
142,302,564
0
0
null
null
null
null
UTF-8
Python
false
false
901
py
def fatorial(n): fat = 1 #variavel fat recebe o valor 1, porque 1 eh um valor nulo em uma multiplicacao while(n > 1): #enquanto n for maior que 1, o laço (while) continua executando fat = fat * n #multiplica fat por n n = n - 1 #atualiza o n subtraindo 1 return fat #finalzia o while e atuali...
[ "rafaelsaidbc@yahoo.com.br" ]
rafaelsaidbc@yahoo.com.br
cb840373802f4a2f053aa9b6db014d5a830284dd
404cb0431675327a751f7a6f422f53288a92b85b
/chirp/library/order_test.py
33fccabf573816f97b45246bff10199393e598bb
[ "Apache-2.0" ]
permissive
chirpradio/chirpradio-machine
ade94d7ac9ded65f91e1b3845be408723c0501da
6fea6a87f2eb3cfac2a47831892c9ce02163b03b
refs/heads/master
2023-09-01T02:57:07.749370
2023-08-28T23:57:46
2023-08-28T23:57:46
2,330,078
9
10
Apache-2.0
2018-03-16T01:26:29
2011-09-05T19:10:48
Python
UTF-8
Python
false
false
3,525
py
#!/usr/bin/env python import unittest import mutagen.id3 from chirp.library import order class OrderTest(unittest.TestCase): def test_decode(self): test_cases = (("1", 1, None), (" 6", 6, None), ("006", 6, None), ("1/2", 1, 2), ...
[ "kumar.mcmillan@gmail.com" ]
kumar.mcmillan@gmail.com
775d4e974bbace6a037417248f6885324aebea6a
85764904e918310f9e4a209f64570dcdcf099818
/loutilities/user/roles.py
3df49ee5b5f5d63b1edda6261c2976dbd2e6b5e1
[ "Apache-2.0" ]
permissive
louking/loutilities
05bb20994ae06d2e68989cd6a779c350a9a430ad
aaf7410849d0167001cd5f06ab0dae6563e58ec7
refs/heads/master
2023-07-24T18:32:36.128102
2023-07-15T10:02:43
2023-07-15T10:02:43
5,824,315
2
2
null
2023-05-10T09:59:37
2012-09-15T21:29:29
Python
UTF-8
Python
false
false
3,136
py
########################################################################################### # roles - common location for xtility role declaration # # Date Author Reason # ---- ------ ------ # 03/11/20 Lou King Create # # Copyright 2020 Lou King....
[ "lking@pobox.com" ]
lking@pobox.com
c4fb0116985e3ace94fc0fe7bbfb80ab7f53d331
7edb6f64afb9a9d5fd2b712faae9841d45c3a3b3
/monkeyAndPerformance/allCode/performanceTest/traffic/traffic.py
9edb99221fc8f0b920e0abebe9a4f074378baddb
[]
no_license
Hanlen520/AppSpecialTest
413babbbecbeaa8e25dd1fd70dd349a1de07eb5e
06f69f116245162220985ad2632fbff3af72450c
refs/heads/master
2023-04-22T19:59:35.523780
2019-08-08T09:48:28
2019-08-08T09:48:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,398
py
import csv,os,time from config.config import * from monkeyAndPerformance.allCode.util.gettimestr import GetTimeStr gettimestr = GetTimeStr() #实例化GetTimeStr #控制类 class Controller(object): def __init__(self): self.counter = RunTrafficCount # 定义测试的次数 #定义收集数据的数组 self.alldata = [("device...
[ "410287958@qq.com" ]
410287958@qq.com
25e372cb14bdc5d7011802d05410d01a864a361a
7f8d2288dc8d81275269bdb8e8f196339a52d30d
/code/1010_solution.py
c14133019520efb5a27564644e2a7e131773bfda
[]
no_license
ishaansharma/leetcode-3
f9cab568c31322e2bf84768264f3c644182cd470
9081dd3ff86409d554b0298a8152ed40a6befa96
refs/heads/master
2023-03-25T15:36:04.235650
2021-03-30T20:15:45
2021-03-30T20:15:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
class Solution: def numPairsDivisibleBy60(self, time: List[int]) -> int: count = 0 seen = [0] * 60 for t in time: count += seen[-t % 60] seen[t % 60] += 1 return count
[ "noreply@github.com" ]
ishaansharma.noreply@github.com
09c0fefdd010970f39b250148bf0b0160b5f65a1
a00fdfc743262d3d9253bab1f2e8b10f99f013ee
/Bambu/bambuToNero.py
88f058034181c1d5bdb4ff97c5bcf43358b2fc8b
[]
no_license
pdoming/NeroProducer
2a97101002c626d7f23f3c80e1abfaacc5c81968
8082361fa0a05c83cc6c6aacb1bdd5de24f65115
refs/heads/master
2021-01-15T17:35:58.814592
2015-07-25T16:50:39
2015-07-25T16:50:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,400
py
from MitAna.TreeMod.bambu import mithep, analysis import os mitdata = os.environ['MIT_DATA'] from MitPhysics.Mods.GoodPVFilterMod import goodPVFilterMod from MitPhysics.Mods.JetCorrectionMod import jetCorrectionMod from MitPhysics.Mods.JetIdMod import jetIdMod from MitPhysics.Mods.MetCorrectionMod import metCorrectio...
[ "yiiyama@mit.edu" ]
yiiyama@mit.edu
feab3ebba8930e7e527605d29f696b086b58d027
4c3094a869f59be8836993469b28f088fef9fff1
/Questions/Q_093_RentalCarLocations.py
35739a04cd88935d0ee54e3e84963fad486f00b2
[]
no_license
Bharadwaja92/DataInterviewQuestions
d885d40da4d546a164eee37e7250ddb519fc8954
5b002f34c3b1440f4347a098f7ce1db84fc80e7f
refs/heads/master
2022-11-06T08:57:49.283013
2020-06-22T09:10:40
2020-06-22T09:10:40
269,247,468
0
0
null
null
null
null
UTF-8
Python
false
false
909
py
""""""""" Suppose you're working for a car rental company, looking to model potential location distribution of their cars at major airports. The company operates in LA, SF, and San Jose. Customers regularly pickup a car in one of these 3 cities and drop it off in another. The company is looking to compute how likely...
[ "saibharadwaj.kh@gaiansolutions.com" ]
saibharadwaj.kh@gaiansolutions.com
a1b04624df6910adad210fe98bb6ade2e31d986b
b772048db1d84de6071dcb3978b6f548d2b42ae4
/tests/test_ner.py
25161ef7c203bccec745b1000a646113cac4af98
[ "BSD-2-Clause" ]
permissive
yutanakamura-tky/MedNER-J
46ca13d87b6c4977b4042915ff2105ab4dc62d88
a0c68a32553bbbdb9f5ae5fd41584198951bc14c
refs/heads/master
2023-08-21T23:05:22.645001
2021-08-10T02:34:45
2021-08-10T02:34:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,623
py
import unittest from medner_j import Ner class TestNer(unittest.TestCase): @classmethod def setUpClass(cls): cls.model = Ner.from_pretrained(model_name="BERT", normalizer="dict") cls.examples = ['それぞれの関節に関節液貯留は見られなかった', 'その後、左半身麻痺、CTにて右前側頭葉の出血を認める。 '] cls.xmls = ['それぞれの関節に<CN value="か...
[ "suzzz428@gmail.com" ]
suzzz428@gmail.com
d1cd60b8ac3a89b9dd0b4a456d9c166b93f4ffe5
67c5269fa4720cf728d4c1dd572c09d5e4e7a321
/convert_mcnp71.py
db687aef0e14ec73a1479e0f9dc3959d89a76938
[]
no_license
SamPUG/data
cff882327f5fe79ce2c2fca70d217173300c4f85
457755083bb8e05e58bbc3765f52bf8c756abb9c
refs/heads/master
2020-12-19T14:57:12.806099
2020-03-06T08:30:47
2020-03-06T08:30:47
235,767,080
0
0
null
2020-02-25T14:43:04
2020-01-23T09:58:38
Python
UTF-8
Python
false
false
4,330
py
#!/usr/bin/env python3 import argparse from collections import defaultdict from pathlib import Path import sys import openmc.data # Make sure Python version is sufficient assert sys.version_info >= (3, 6), "Python 3.6+ is required" description = """ Convert ENDF/B-VII.1 ACE data from the MCNP6 distribution into an...
[ "paul.k.romano@gmail.com" ]
paul.k.romano@gmail.com
ba45777ebf476d635254faf1c942e070055b6fc5
c463e77c3d76e6b4810e202541d3f3f7f91bcf60
/build/PCL-ROS-cluster-Segmentation/cmake/sensor_stick-genmsg-context.py
31a011a3d2b1087f74bbb8bde784bccea1893805
[]
no_license
MGRNascimento/Tese
18087ee59dfee96ee000c9f16c646d1750174285
bf78d417849a74d9c5a520d40dcbebeadf084706
refs/heads/master
2020-06-23T13:57:01.699657
2019-10-23T21:47:19
2019-10-23T21:47:19
198,638,709
0
0
null
null
null
null
UTF-8
Python
false
false
992
py
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/home/miguel/catkin_ws/src/PCL-ROS-cluster-Segmentation/msg/DetectedObjectsArray.msg;/home/miguel/catkin_ws/src/PCL-ROS-cluster-Segmentation/msg/DetectedObject.msg;/home/miguel/catkin_ws/src/PCL-ROS-cluster-Segmentation/msg/SegmentedClustersArray.msg"...
[ "relvas.cvg@gmail.com" ]
relvas.cvg@gmail.com
c72ea0fdf63e7cab3cd12fac24e9a96fe75a01e2
50402cc4388dfee3a9dbe9e121ef217759ebdba8
/etc/MOPSO-GP0/ZDT4.py
1082e5005e8823de068729fbccebe4e6a539378f
[]
no_license
dqyi11/SVNBackup
bd46a69ec55e3a4f981a9bca4c8340944d8d5886
9ad38e38453ef8539011cf4d9a9c0a363e668759
refs/heads/master
2020-03-26T12:15:01.155873
2015-12-10T01:11:36
2015-12-10T01:11:36
144,883,382
2
1
null
null
null
null
UTF-8
Python
false
false
1,609
py
''' Created on 2014-1-25 @author: Walter ''' from SwarmND import *; import numpy as np; import sys; if __name__ == '__main__': def func1(x): return x[0]; def func2(x): sum = 0.0; for i in range(2, 10): sum += x[i]**2 - 10 * np.cos(4 * np.pi * x[i]);...
[ "walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39" ]
walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39
7e15d512ec3c87a9d4dc6de189623ab45646f041
efb3194a583cd79cc03dc91b9a96dfc0bdd3a344
/stm32f/json_pkt.py
8fab02dbeb225a6406222a1a16911d147abec342
[ "Apache-2.0" ]
permissive
andersy005/capstone
9227b0c19b4e16ea5e67a529937652408d0a35f2
b4301ebc7c1447f3ce2ff034add985c1f417f065
refs/heads/master
2021-09-13T07:42:52.359116
2018-04-26T17:58:05
2018-04-26T17:58:05
118,843,216
0
0
null
null
null
null
UTF-8
Python
false
false
3,517
py
# This code should run fine on MicroPython or CPython. # # It allows objects which can be represented as JSON objects to be sent # between two python programs (running on the same or different computers). import json from dump_mem import dump_mem SOH = 0x01 STX = 0x02 ETX = 0x03 EOT = 0x04 # <SOH><LenLow><LenHigh><S...
[ "axbanihirwe@ualr.edu" ]
axbanihirwe@ualr.edu
fefa4008d3c6a8622e01e84a315130f060863036
2a54e8d6ed124c64abb9e075cc5524bb859ba0fa
/.history/2-Python-Basics-part2/6-Logical-operators_20200414002000.py
7a4ee8fd3c96f8e57b7e41dc522b12fb81613bec
[]
no_license
CaptainStorm21/Python-Foundation
01b5fbaf7a913506518cf22e0339dd948e65cea1
a385adeda74f43dd7fb2d99d326b0be23db25024
refs/heads/master
2021-05-23T01:29:18.885239
2020-04-23T19:18:06
2020-04-23T19:18:06
253,171,611
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
# Short Circuting is_Friend = True is_User = True if is_Friend or is_User: print("both are true") if is_Friend and is_User: print("both are true") age = 15 year = 2019 boy = "Vlad"
[ "tikana4@yahoo.com" ]
tikana4@yahoo.com
9afc659a83985ca5e7a34f87ceb3a5de075cc25b
5a3b070f39715f604a8bfc38888b6ee4382e54ac
/TalkTalk-Server/app.py
aa21f179f70f37f987a80665e81a7a672d8cc074
[]
no_license
aupaprunia/talktalk
717245ec0378559abf2dba0793822d19613faf57
895418aa25ad154449f4036362a77b615092b00b
refs/heads/main
2023-04-13T03:53:37.361677
2021-04-11T19:08:54
2021-04-11T19:08:54
356,480,824
0
0
null
null
null
null
UTF-8
Python
false
false
3,022
py
from flask import Flask, request import pyrebase import requests choice_dict = {1:"Sad", 2: "Happy", 3: "Angry", 4: "Excited"} config = {"apiKey": "AIzaSyBrey3ZZ5X74WrAQuj7HISWLl70PqP8dnA", "authDomain": "trialproject-55deb.firebaseapp.com", "databaseURL": "https://trialproject-55deb-default-rtdb.firebaseio.com",...
[ "=" ]
=
08dfeef07dc2184dd58ed15584e4a9d792be3383
3a8c2bd3b8df9054ed0c26f48616209859faa719
/Challenges/Hackerrank-DynamicArray.py
c63264cadb5c93066503209dd51764b1eaa68ce0
[]
no_license
AusCommsteam/Algorithm-and-Data-Structures-and-Coding-Challenges
684f1ca2f9ee3c49d0b17ecb1e80707efe305c82
98fb752c574a6ec5961a274e41a44275b56da194
refs/heads/master
2023-09-01T23:58:15.514231
2021-09-10T12:42:03
2021-09-10T12:42:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
528
py
#!/bin/python3 import os import sys # # Complete the dynamicArray function below. # def dynamicArray(n, queries): # # Write your code here. # if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') nq = input().split() n = int(nq[0]) q = int(nq[1]) queries = [] ...
[ "bennyhwangg@gmail.com" ]
bennyhwangg@gmail.com
bd080db414250c7460293da72e2625c463127dcf
55a4d7ed3ad3bdf89e995eef2705719ecd989f25
/main/tensorflow_test/hmm_天气_活动理解.py
1318a13a359255ef5e47ef393f656642d7456de5
[]
no_license
ichoukou/Bigdata
31c1169ca742de5ab8c5671d88198338b79ab901
537d90ad24eff4742689eeaeabe48c6ffd9fae16
refs/heads/master
2020-04-17T04:58:15.532811
2018-12-11T08:56:42
2018-12-11T08:56:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,842
py
# coding:utf-8 states = ('Rainy', 'Sunny') observations = ('walk', 'shop', 'clean') start_probability = {'Rainy': 0.6, 'Sunny': 0.4} transition_probability = { 'Rainy': {'Rainy': 0.7, 'Sunny': 0.3}, 'Sunny': {'Rainy': 0.4, 'Sunny': 0.6}, } emission_probability = { 'Rainy': {'walk': 0.1, 'shop': 0.4, 'c...
[ "985819225@qq.com" ]
985819225@qq.com
a25a9a45abf6afeb485d96f23c00c3d70ff087dc
b8f9d2cafb8958cdb417f05156acb6aadf90f4dd
/MachineLearning/NetworkAnalysis/PageRank.py
5d5647d240c30f7abe41a25e7aa9ec6bbe87407e
[]
no_license
Anova07/Data-Science
8d14f78236de0053e2d31cc8cd85b9c70dfa2c8a
86dd24fb04a199536ae8f3f5f843aae3fc69c086
refs/heads/master
2021-12-08T10:35:35.512188
2016-03-06T19:08:58
2016-03-06T19:08:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,945
py
import math, random, re from collections import defaultdict, Counter, deque from LinearUtils.Vectors import dotProduct, magnitude, scalarMultiply, shape, distance from LinearUtils.Matrices import getRow, getCol, generateMatrix from functools import partial # Code from Data Science from Scratch - github users = [ ...
[ "titu1994@gmail.com" ]
titu1994@gmail.com
c7ef812fb6b1c0a1bcbf2e8e463e19da84748944
6b265b404d74b09e1b1e3710e8ea872cd50f4263
/Python/Exercises/TreeChecker/check_tree_2.0.py
857bec02ba2b491a4a9f7d5ad9e1b2461082a30e
[ "CC-BY-4.0" ]
permissive
gjbex/training-material
cdc189469ae2c7d43784ecdcb4bcca10ecbc21ae
e748466a2af9f3388a8b0ed091aa061dbfc752d6
refs/heads/master
2023-08-17T11:02:27.322865
2023-04-27T14:42:55
2023-04-27T14:42:55
18,587,808
130
60
CC-BY-4.0
2023-08-03T07:07:25
2014-04-09T06:35:58
Jupyter Notebook
UTF-8
Python
false
false
1,828
py
#!/usr/bin/env python import sys class BaseError(Exception): def __init__(self, position): super().__init__() self._position = position @property def position(self): return self._position def __str__(self): return self.message class MissingRBError(BaseError): ...
[ "geertjan.bex@uhasselt.be" ]
geertjan.bex@uhasselt.be
658b34c8593e518f6e856b6afb5c1d107b89f6bc
98f1a0bfa5b20a0b81e9e555d76e706c62d949c9
/examples/pytorch/stgcn_wave/model.py
2463721f1b38ea34e09db1c8e3b064a7db69e439
[ "Apache-2.0" ]
permissive
dmlc/dgl
3a8fbca3a7f0e9adf6e69679ad62948df48dfc42
bbc8ff6261f2e0d2b5982e992b6fbe545e2a4aa1
refs/heads/master
2023-08-31T16:33:21.139163
2023-08-31T07:49:22
2023-08-31T07:49:22
130,375,797
12,631
3,482
Apache-2.0
2023-09-14T15:48:24
2018-04-20T14:49:09
Python
UTF-8
Python
false
false
3,480
py
import math import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.init as init from dgl.nn.pytorch import GraphConv from dgl.nn.pytorch.conv import ChebConv class TemporalConvLayer(nn.Module): """Temporal convolution layer. arguments --------- c_in : int The num...
[ "noreply@github.com" ]
dmlc.noreply@github.com
f661b97983d5da36c5d8f23356b77bb41fdbff71
dd05972a3bf9d15f332fbff420f10afe1977c0d8
/competition/base_example/aliceTest.py
76fec14b823615e7488647e1a92bf8e51c2b7006
[ "BSD-2-Clause" ]
permissive
StephanieWehner/QI-Competition2018
b70df8c5bb343c534c2c0bd8fc0e7d6bb6183f25
cc1139c81e39f66b77c046414bcac8de45807557
refs/heads/master
2020-03-23T05:45:09.885955
2018-08-08T20:03:29
2018-08-08T20:03:29
141,164,280
1
3
null
null
null
null
UTF-8
Python
false
false
3,108
py
# # Copyright (c) 2017, Stephanie Wehner and Axel Dahlberg # 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, this lis...
[ "axel.dahlberg12@gmail.com" ]
axel.dahlberg12@gmail.com
986bf659063dbb4023eaaf094cd1d3cccd06ebdb
44dbb043e52f00c9a797b1bea8f1df50dd621842
/os-example-4.py
69064074cfa33ba2ae8384a237bc9351ebad664a
[]
no_license
peterdocter/standardmodels
140c238d3bef31db59641087e3f3d5413d4baba1
7addc313c16b416d0970461998885833614570ad
refs/heads/master
2020-12-30T16:59:30.489486
2016-12-13T06:32:03
2016-12-13T06:32:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
import os # where are we? cwd = os.getcwd() print "1", cwd # go down os.chdir("samples") print "2", os.getcwd() # go back up os.chdir(os.pardir) print "3", os.getcwd()
[ "415074476@qq.com" ]
415074476@qq.com
235af1bbc670e956e37e472b363d092d53a2e10f
7927424f1983eecc7c7b2f0ebaf61ad552d2a7e7
/zigzag.py
1e4ea4b1030d84d3446c45f2f19960e1f1f9aafc
[]
no_license
6reg/automate
295931d3ecf0e69e01921cc45d452fadfd1e6581
11e5de461ece3d8d111f3dc13de088788baf19a2
refs/heads/main
2023-03-08T18:39:42.991280
2021-02-22T20:53:13
2021-02-22T20:53:13
334,780,031
0
1
null
null
null
null
UTF-8
Python
false
false
746
py
import time, sys indent = 0 # How many spaces to indent indentIncreasing = True # Whether the indentation is increasing or not try: while True: # The main program loop. print(' ' * indent, end='') print('********') time.sleep(0.1) # Pause for the 1/10 of a second. if indentIncreas...
[ "mathiasgreg@gmail.com" ]
mathiasgreg@gmail.com
696193e4863c900c995b49d8854b2fd947ef2ebd
9dc21ebb553fd116826c7cbae7d8c5eba47423d1
/cloneGraph.py
81681ac2a31cf11b69ac78e24d755d692f4aee77
[]
no_license
KJSui/leetcode-2020
a475a8b8481231757222c5afaad2856a92572f89
37cf89e7fb1351b1deff09271d9bb5852395054e
refs/heads/main
2023-04-05T19:46:25.647605
2021-05-06T20:40:06
2021-05-06T20:40:06
365,031,592
0
0
null
null
null
null
UTF-8
Python
false
false
426
py
class Solution: def __init__(self): self.copy = {} def cloneGraph(self, node): if not node: return None newNode = Node(node.val) neight = [] for i in neight: if i in self.copy: neight.append(self.copy[i]) else: ...
[ "jsui@digitalocean.com" ]
jsui@digitalocean.com
97d55e2aec24c8c3c273787b6a0bfb6e207c6ee0
c261f0e98eedb4f0d85e92bd6ab8f4ae47096269
/lifeservice/schedule117/04美食下载团购糯米/getNuomiOtherCinemaMap.py
7e6d7d90119847ca9a6a6e964889df38e7707452
[]
no_license
ShenDezhou/CPP
24379fe24f3c8588a7859ee586527d5cc6bfbe73
933c1e764a6ed2879b26aa548ff67153ca026bf6
refs/heads/master
2021-01-11T22:09:24.900695
2017-04-05T02:04:07
2017-04-05T02:04:07
78,928,291
0
1
null
null
null
null
GB18030
Python
false
false
1,328
py
#coding=gb2312 nuomiCinemaMap = dict() otherCinemaMap = dict() input = '/fuwu/Merger/Output/movie/cinema_movie_rel.table' for line in open(input): segs = line.strip('\n').decode('gb2312', 'ignore').split('\t') cinemaid, source, ting = segs[1], segs[3], segs[9] if source.find(u'糯米') != -1: if cinemaid not in nu...
[ "bangtech@sina.com" ]
bangtech@sina.com
b6e8f2be226188fbb1defabbcc1d134f8fc8e070
3570f2e7b8d5666cbd2d29a4c75965a75699a3e2
/pyodbc/run_test.py
1b0460f4bd5adc94625a5a8b380978050e9a9c4a
[]
no_license
ilanschnell/recipes
7876225db2eb08b21d4d1ab426d40f94650192fd
c946b446a002d55ecffff6ce789cf9dcb57a65a6
refs/heads/master
2023-08-19T19:40:17.750037
2022-01-21T00:27:38
2022-01-21T00:27:38
119,077,116
0
0
null
null
null
null
UTF-8
Python
false
false
1,181
py
import sys from os.path import isfile print(sys.version) print(sys.executable) import pyodbc print(pyodbc) if sys.platform == 'darwin': driver_path = '/Users/ilan/a/envs/py38/lib/libsqlite3odbc.dylib' elif sys.platform.startswith('linux'): driver_path = '/home/osboxes/bin/libsqlite3odbc-0.9996.so' if not isfi...
[ "ilanschnell@gmail.com" ]
ilanschnell@gmail.com
ada7809ed008445486cb53ed74ffb2f3f533ab06
c05ed32f1ef7e1eb7d73efd674e7d1fd710ad171
/daily-coding-problems/problem429.py
f131f4e79b05103324b498c75f6d6f5240e45cd3
[]
no_license
carlhinderer/python-exercises
c8367517fdf835fa1117f96dbfee3dccc596afa6
4e09bbb4c4e2bd5644ed50e997db9f3c289a18f7
refs/heads/master
2021-06-01T16:17:00.389134
2021-02-09T18:21:01
2021-02-09T18:21:01
150,902,917
0
0
null
2021-04-20T20:33:11
2018-09-29T21:03:36
Python
UTF-8
Python
false
false
533
py
# Problem 429 # Medium # Asked by Stitch Fix # # Pascal's triangle is a triangular array of integers constructed with the # following formula: # # The first row consists of the number 1. # # For each subsequent row, each element is the sum of the numbers directly # above it, on either side. # # For e...
[ "carl.hinderer4@gmail.com" ]
carl.hinderer4@gmail.com
76b07fab07edb0667ffdda682c409887fdab50cc
2cf99a155405b48bf14f872e1980ed948079e5dd
/test/test_router.py
a30b567e256a3ea2fe3ba97d23c6ab0b5d1539e8
[ "MIT" ]
permissive
marrow/web.dispatch.route
c15309a26023d068b8f84ea4bbc221b674c1e6b8
92494bcad2e2a9a52d2e51eecfab910d829cc2de
refs/heads/master
2021-01-25T04:01:46.245851
2016-02-15T07:54:36
2016-02-15T07:54:36
32,564,808
0
0
null
null
null
null
UTF-8
Python
false
false
1,820
py
# encoding: utf-8 import pytest from web.dispatch.route.router import __DYNAMIC__, Router from sample import Root @pytest.fixture def router(): return Router.from_object(Root) def test_dynamic_repr(): assert repr(__DYNAMIC__) == '<dynamic element>' def test_router_singleton(): assert Router.from_object(Root...
[ "alice@gothcandy.com" ]
alice@gothcandy.com
8bacb8e843f98006b0d409848f10edb92140f035
f160cf4eb335ea799559312ac3d43a60c2c5848b
/library/zip_extract.py
e1f1faecce940706c2ead17d0b449c0c1525aa28
[ "MIT" ]
permissive
baseplate-admin/Machine-Learning-Source-Code
c3389e0acb81e1f4c8e4c0cc763fcbc3781ef94e
a2203033d525c17b31584b52527c30e2c8aad1c4
refs/heads/master
2022-11-21T04:33:41.307477
2020-07-10T15:46:32
2020-07-10T15:46:32
277,730,993
0
0
null
null
null
null
UTF-8
Python
false
false
1,211
py
def zip_extract(): import os from zipfile import ZipFile def zip_function(): print("We are extracting ZIP!!!") where_is_zip=input("What is your zip location?") what_is_zip_name=input("What is your zip name?") what_is_zip_extension=input("What is your ZIP format?") zi...
[ "61817579+baseplate-admin@users.noreply.github.com" ]
61817579+baseplate-admin@users.noreply.github.com
52722c46ff54f9d588bdd4cd1a24506d64dacd60
bcc2d156334d3680561b17cec82cbc31a5ea07ad
/String/22. Generate Parentheses.py
2431fefda0dcde528d7eafd0b65a378afe0ebe31
[]
no_license
kevinsshah/Leetcode
72b14e226b6881bcd18913b2fa132b0e3f8dd6ef
4419f46e6f6b1d96ff8b7066fce687cfa88e65a0
refs/heads/master
2020-03-25T23:00:49.851183
2018-09-08T04:13:27
2018-09-08T04:13:27
144,255,457
0
0
null
null
null
null
UTF-8
Python
false
false
2,129
py
# Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. # # For example, given n = 3, a solution set is: # # [ # "((()))", # "(()())", # "(())()", # "()(())", # "()()()" # ] class Solution(object): def generateParenthesis(self, n): """ :t...
[ "shah.kevi@husky.neu.edu" ]
shah.kevi@husky.neu.edu
846876364bc01fda2b044a0b561e2709369cd56c
268d9c21243e12609462ebbd6bf6859d981d2356
/Python/python_stack/Django/BeltReview/main/apps/books/models.py
fddd59aa3b548da3b7fdfa2c3d3484b1350a19f0
[]
no_license
dkang417/cdj
f840962c3fa8e14146588eeb49ce7dbd08b8ff4c
9966b04af1ac8a799421d97a9231bf0a0a0d8745
refs/heads/master
2020-03-10T03:29:05.053821
2018-05-23T02:02:07
2018-05-23T02:02:07
129,166,089
0
0
null
null
null
null
UTF-8
Python
false
false
1,886
py
from __future__ import unicode_literals from django.db import models from django import forms from django.core.exceptions import ValidationError # Create your models here. class UserManager(models.Manager): def basic_validator(self,postData): errors={} #validate password if len(postData['password']) < 8: ...
[ "dkang417@gmail.com" ]
dkang417@gmail.com
3e4331ea4515d8ab9a244201033c44ae2211e3db
d4cd2476f8fa8a7d94e183a68bd0678971310c5b
/checkio/06_Ice_Base/06_IceBase_04_FunnyAddition.py
9030b3fb8d1063f001b7c9e2d024d3d76144968e
[]
no_license
gwqw/LessonsSolution
b495579f6d5b483c30d290bfa8ef0a2e29515985
0b841b1ae8867890fe06a5f0dcee63db9a3319a3
refs/heads/master
2020-07-05T19:15:53.758725
2019-10-01T11:34:44
2019-10-01T11:34:44
202,744,145
0
0
null
null
null
null
UTF-8
Python
false
false
218
py
def checkio(data): """The sum of two integer elements""" return sum(data) if __name__ == '__main__': assert checkio([5, 5]) == 10, 'First' assert checkio([7, 1]) == 8, 'Second' print('All ok')
[ "=" ]
=
c78554bfaf8bee6f13777307c2c97139d339f973
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02390/s457532968.py
390a81631bac8de1e3a93db961d2ef9a82cb8ed1
[]
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
146
py
import sys line = sys.stdin.readline() inp = int(line) h,mod = inp//3600, inp%3600 m,mod = mod//60, mod%60 s = mod print ("%d:%d:%d" % (h,m,s))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
b8a62fa93f2532714aacb95518a96010cd6afe03
fffa7b13491deadfc649dfd035099ef764d8d303
/api/tests/mathematical_object_detail.py
3ecfae51fd020c715c1a8504027fcc57a26800f4
[ "MIT" ]
permissive
Gawaboumga/OEMS
3b12b8bebbe4b29716e8be4e22034ec394af36da
1e60fa1f350f4cf1ca2e48072e0b4228eeb15024
refs/heads/master
2022-12-14T11:15:55.797241
2019-01-22T10:22:42
2019-01-22T10:22:42
147,358,167
0
0
MIT
2022-12-08T01:26:59
2018-09-04T14:20:58
Python
UTF-8
Python
false
false
4,231
py
from rest_framework import status from rest_framework.test import APITestCase from django.test import override_settings from django.urls import reverse from oems.settings import TEST_MEDIA_ROOT from api.models import MathematicalObject from api.tests import utils @override_settings(MEDIA_ROOT=TEST_MEDIA_ROOT) class M...
[ "yourihubaut@hotmail.com" ]
yourihubaut@hotmail.com
066a5edb911a9b5069125b1aee9dfad1bbc78dbb
7d74195bd00cbe8516670c8fe718e983106c9830
/src/data_types/test_collections_ordereddict.py
ee4fe8c69fee1eec3bc707d6f7b10d39022930d8
[]
no_license
masa4u/example_python
7ab3d48020855ad493336afcd8d0c02eb3104b2b
7bdee4cb8e90255b20353f7f95d3e879f6462638
refs/heads/master
2021-01-18T14:10:56.539659
2017-03-28T12:52:08
2017-03-28T12:52:08
30,511,470
0
0
null
null
null
null
UTF-8
Python
false
false
147
py
d = {'banana': 3, 'apple':4, 'pear': 1, 'orange': 2} from collections import OrderedDict print OrderedDict(sorted(d.items(), key=lambda t:t[0]))
[ "masa4u@gmail.com" ]
masa4u@gmail.com
4f17a87004d2e33cbb26f6d49b7cb84a0b7ffef9
70532360ddfdd8006bf7044c117403ce837cef0a
/code/Rplot.py
cd1f9b2b402c74ca5ecf9502d4eba1665cd10a9b
[]
no_license
wsgan001/campus_wifi_analysis
09a7944f5019f726682925c8785cdf5f7d8c469a
c470135691ff8faad3cb4755301e4f59389e2c5a
refs/heads/master
2020-03-10T11:09:05.579870
2017-03-03T07:13:57
2017-03-03T07:13:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,312
py
# -*- coding: utf-8 -*- import fileinput user = {} for line in fileinput.input("../data/select/select_a"): mac = line.strip().split(" ")[0] user[mac] = True fileinput.close() with open("../data/plot/R_trace_all","w") as f: f.write("mac time dura\n") for line in fileinput.input("../data/feature/trace_all_statist...
[ "mqiang@splunk.com" ]
mqiang@splunk.com
caff9c7cb685bc07ae6b58176aa41c8d83544348
9f0a4262c4402201df1cdd5674a679543f4a50b5
/shaderLibrary_maya2017/resources/__init__.py
05e522a865f16bd93dd2591fa2f1e5a4d20967ec
[]
no_license
subing85/subins-toolkits
611b6b3b3012ccb023096f6e21d18d2bda5a534b
d02af1289ec3ee5bce6fa3d78c134a8847113aa6
refs/heads/master
2022-07-12T17:19:57.411454
2022-07-01T20:37:16
2022-07-01T20:37:16
168,826,548
11
2
null
2022-07-02T01:03:34
2019-02-02T11:51:25
Mathematica
UTF-8
Python
false
false
1,087
py
import os from shaderLibrary_maya2017.utils import platforms CURRENT_PATH = os.path.dirname(__file__) MODULE = platforms.get_tool_kit()[0] def getInputPath(module=None): return os.path.join( CURRENT_PATH, "inputs", "{}.json".format(module) ) def getIconPath(): return os.path.join(CURRENT_PATH,...
[ "subing85@gmail.com" ]
subing85@gmail.com
64ebd8dc8dee1409f7462da7e97b36589440ca93
897d82d4953ed7b609746a0f252f3f3440b650cb
/evening/20200615/demo3.py
fb8a2467fdd7cd54f0e4530ae9c506eeaa9352c6
[]
no_license
haiou90/aid_python_core
dd704e528a326028290a2c18f215b1fd399981bc
bd4c7a20950cf7e22e8e05bbc42cb3b3fdbe82a1
refs/heads/master
2022-11-26T19:13:36.721238
2020-08-07T15:05:17
2020-08-07T15:05:17
285,857,695
0
0
null
null
null
null
UTF-8
Python
false
false
947
py
class GParent: pass class Parent(GParent): def __init__(self,atk,hp): self.atk = atk self.hp = hp def attack(self,target): pass def damage(self,value): pass #玩家攻击敌人 敌人受伤,还可能死亡 class Player(Parent,GParent): def attack(self,target): print('黑虎掏心') ...
[ "caoho@outlook.com" ]
caoho@outlook.com
21d9a316ce6cfdf96f3a9f5edaacf77894c81bf4
e9d52dcf101aea0327c6b0d7e5244c91dfd62cf6
/spexy/adv/samples/simple.py
e2df8a641ff75635616d8894582fa8f83e6bf7dd
[]
no_license
drufat/spexy
6eba9f44a5539245486cd4ef8fefd24bdb7ade6a
53255009c1830501986afbf6688142ddefe17b9a
refs/heads/master
2021-09-18T19:51:47.313946
2018-07-19T05:09:02
2018-07-19T05:09:02
100,453,374
2
1
null
null
null
null
UTF-8
Python
false
false
179
py
# Copyright (C) 2010-2016 Dzhelil S. Rufat. All Rights Reserved. from sympy import sin, cos def V(x, y): return (-sin(y), sin(x)) def p(x, y): return -cos(x) * cos(y)
[ "drufat@caltech.edu" ]
drufat@caltech.edu