blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
9b4cee01a7a4aad6bd4aa41ff11599feddafe8b0
14b5679d88afa782dc5d6b35878ab043089a060a
/students/LvTao/20200515/测试鼠标是否移动.py
317ea2ada7e5968f4d2f40aad82bbbc2832c59da
[]
no_license
mutiangua/EIS2020
c541ef32623f67f9277945cd39cff3c02f06e4dd
92aa2711b763a2c93be238825c445bf2db8da391
refs/heads/master
2022-11-18T05:21:47.567342
2020-07-11T10:11:21
2020-07-11T10:11:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
import time import pyautogui def pos(): pos_mouse=pyautogui.position() time.sleep(1) return pos_mouse while True: if pos()==pyautogui.position(): continue else: x,y=pyautogui.position() print('当前位置X{},Y{}'.format(x,y))
[ "noreply@github.com" ]
mutiangua.noreply@github.com
74c590dee70d866754a3bfddb67a69646b5796c8
7837961d07a64aa1f73d88ed1012ec5e322ab370
/src/generative_playground/molecules/lean_settings.py
5af24245d63c36b4de49a57e16e9310343c74414
[ "MIT" ]
permissive
markharley/generative_playground
1281f13cc28c43ede9695e3ffa98713e613023d4
56e826e5ca453ee19b0d4298ed27b4db5efd6fd9
refs/heads/master
2020-05-18T09:50:27.820273
2019-05-05T12:03:26
2019-05-05T12:03:26
184,337,386
0
0
null
2019-04-30T22:01:43
2019-04-30T22:01:42
null
UTF-8
Python
false
false
386
py
import inspect import os molecules_root_location = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) + '/' def get_data_location(molecules=True): if molecules: return {'source_data': molecules_root_location + 'data/250k_rndm_zinc_drugs_clean.smi'} else: return {'source...
[ "egor.kraev@gmail.com" ]
egor.kraev@gmail.com
6af841fb17dd20c39b1e70b06965fed9ff8a9455
b287c232165bb0d248d619e978f57c864cc36a1c
/leo/plugins/importers/javascript.py
38fa8e7d788aec325dd87180f3c2c238a1199e35
[ "BSD-3-Clause", "MIT" ]
permissive
tbpassin/leo-editor
39ec8cfc6c35c867b89a21f495b8049b1254bcc6
76b60e5c58781f84c86a603b9c50b709250682b8
refs/heads/master
2023-08-09T05:05:54.064246
2023-03-01T14:12:14
2023-03-01T14:12:14
247,962,821
0
0
NOASSERTION
2020-03-17T12:22:03
2020-03-17T12:22:02
null
UTF-8
Python
false
false
11,266
py
#@+leo-ver=5-thin #@+node:ekr.20140723122936.18144: * @file ../plugins/importers/javascript.py """The @auto importer for JavaScript.""" import re from typing import Any, Dict, Generator from leo.core import leoGlobals as g # Required from leo.core.leoCommands import Commands as Cmdr from leo.core.leoNodes import Posit...
[ "edreamleo@gmail.com" ]
edreamleo@gmail.com
98cc0764581e92078db33632b9a8330ad97806de
51d7e8c09793b50d45731bd5ab9b531b525cf6db
/tests/garage/torch/algos/test_maml_ppo.py
ea4ac63fd8c01d020ad7379470f45d65de0217bd
[ "MIT" ]
permissive
fangqyi/garage
454247849a6a3f547557b3fac3787ba9eeb0391f
ddafba385ef005f46f913ab352f9638760e5b412
refs/heads/master
2023-02-25T00:43:18.903328
2021-01-26T01:52:15
2021-01-26T01:52:15
267,667,220
0
0
MIT
2020-05-28T18:35:08
2020-05-28T18:35:07
null
UTF-8
Python
false
false
2,582
py
"""This script is a test that fails when MAML-TRPO performance is too low.""" import pytest try: # pylint: disable=unused-import import mujoco_py # noqa: F401 except ImportError: pytest.skip('To use mujoco-based features, please install garage[mujoco].', allow_module_level=True) exc...
[ "qiaoyi.fang@duke.edu" ]
qiaoyi.fang@duke.edu
fac3f04df019414ae685c3823333bcb2f171d65d
52381a4fc02e90ce1fcfffd8d9876d9e8f44c248
/core/jobs/batch_jobs/email_deletion_jobs.py
895c4067d3191f9ccbef1490e639ea0c12d09bab
[ "Apache-2.0" ]
permissive
ankita240796/oppia
18aa1609a0f237ce76142b2a0d3169e830e5bcdd
ba4f072e494fd59df53fecc37e67cea7f9727234
refs/heads/develop
2022-07-11T01:11:53.136252
2022-06-30T08:55:49
2022-06-30T08:55:49
160,626,761
0
0
Apache-2.0
2020-04-28T16:12:26
2018-12-06T06:02:18
Python
UTF-8
Python
false
false
5,406
py
# coding: utf-8 # # Copyright 2021 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
[ "noreply@github.com" ]
ankita240796.noreply@github.com
58e763898710361ea138991802ef384274628d64
f0681b8c129e8afce21e340697502230f45ce930
/venv/Lib/site-packages/com/vmware/vcenter/vm_client.py
a08c07d9358ac1cb0cb378966e1199db49d71547
[]
no_license
dungla2011/python_pyvmomi_working_sample_vmware_easy
8852b6fdcd0f7d0f648f6f7b6c6e4f70c7213746
a3b6d86a802f28c7ee249fc03523d5e5f0a2e3bd
refs/heads/main
2023-07-05T14:56:46.551091
2021-08-20T12:19:39
2021-08-20T12:19:39
395,496,219
1
0
null
null
null
null
UTF-8
Python
false
false
109,741
py
# -*- coding: utf-8 -*- #--------------------------------------------------------------------------- # Copyright 2021 VMware, Inc. All rights reserved. # AUTO GENERATED FILE -- DO NOT MODIFY! # # vAPI stub file for package com.vmware.vcenter.vm. #-----------------------------------------------------------------------...
[ "dungla2011@gmail.com" ]
dungla2011@gmail.com
c5382963180478fd862fc67e67e37e67fa689e13
f829d2c4347ce85ae6dd769f0aab2491d8ee4751
/old/.history/a_20201125194051.py
f79c3e45da0a2e2a0076008652c3fd3694e249f9
[ "LicenseRef-scancode-mulanpsl-2.0-en", "MulanPSL-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
pscly/bisai1
0ef18d4aa12541322947a5be250ef7f260c93276
257c02c8f23e373834a6275683470f3f081b7373
refs/heads/18ti
2023-01-21T22:02:15.582281
2020-11-29T09:30:33
2020-11-29T09:30:33
316,918,262
0
0
NOASSERTION
2020-11-29T12:33:33
2020-11-29T09:39:21
Python
UTF-8
Python
false
false
969
py
# for n in range(400,500): # i = n // 100 # j = n // 10 % 10 # k = n % 10 # if n == i ** 3 + j ** 3 + k ** 3: # print(n) # 第一道题(16) # input("请输入(第一次):") # s1 = input("请输入(第二次):") # l1 = s1.split(' ') # l2 = [] # for i in l1: # if i.isdigit(): # l2.append(int(i)) # for i in l2: # ...
[ "pscly@outlook.com" ]
pscly@outlook.com
0a64700b1408521e4cb652493afa4c3773da70d3
fde90006ac56f38863ebbff75fe0da7296d8d4b6
/src/cfehome/old_settings.py
c58c730fb22a082126c92754a918c204c7235049
[]
no_license
carter3689/django-intro
c1c32d742548e27732580d32321648f054d1338d
155042398d9f2505e44dfa9cfe0a2f7ad3f8131d
refs/heads/master
2021-01-01T04:32:49.347962
2017-07-14T04:57:02
2017-07-14T04:57:02
97,194,405
0
0
null
null
null
null
UTF-8
Python
false
false
3,099
py
""" Django settings for cfehome project. Generated by 'django-admin startproject' using Django 1.11.3. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os...
[ "carter3689@gmail.com" ]
carter3689@gmail.com
8f779ae7bd790997e2a3fce3a42a64b70bbd7709
3047f66549c5928cf07bc14bd3ff276ce8458f22
/config.py
bf1021d3b9f955d335b7c9d6608e18fcdcae53d8
[]
no_license
2429581027/spe2018
b47faf01b5954552cbfe4caed32923663c716396
3649104935fc8b519450d6d12c78110a40f5aaec
refs/heads/master
2022-12-06T17:12:08.324913
2020-08-09T16:34:07
2020-08-09T16:34:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,514
py
''' file: config.py date: 2018_09_19 author: Junjie Cao ''' import argparse ################################### ## shared parameters parser = argparse.ArgumentParser(description = 'spe 2019, reconstruction from incompleted points') #parser.add_argument('--data_root', type = str, default = '/data/sp...
[ "jjcao1231@gmail.com" ]
jjcao1231@gmail.com
5836ad6384982599fa5386c942f276b1fcbd7022
05fc3134da52ab0f1d95d9c4304bde68fc2a56cc
/tasks.py
a5661e372b313f07d146231967b867407d64dc2f
[ "AGPL-3.0-only" ]
permissive
lino-framework/extjs6
b046d43bac3676afd2bbad825a8c478c2007471f
6c8cf927e265bf23ad15d07da0b01c087c7bff07
refs/heads/master
2023-07-21T15:39:04.616082
2023-07-10T20:35:39
2023-07-10T20:35:39
46,885,420
6
1
BSD-2-Clause
2018-02-13T05:52:43
2015-11-25T20:40:26
CSS
UTF-8
Python
false
false
448
py
from atelier.invlib import setup_from_tasks ns = setup_from_tasks( globals(), "lino_extjs6", languages="en de fr et".split(), # tolerate_sphinx_warnings=True, blogref_url = 'https://luc.lino-framework.org', revision_control_system='git', # locale_dir='lino_extjs/extjs/locale', cleanable_file...
[ "luc.saffre@gmail.com" ]
luc.saffre@gmail.com
677352f08e920cb21713ec2f072334eb23f02ebb
a56e5570ab57e4d3c44c9c6ba44bdacac9fa1ad8
/insertion_sort.py
027c54743f008f5ce2dac82c48a2eeee27837080
[]
no_license
teknofage/CS-2.1-Sorting_Algorithms
a7db54c29af5c939022d4dd6453a0529256a3bc1
e42b64c4d606d76102b5930ae8e74822a75999ae
refs/heads/main
2023-01-20T16:52:00.816333
2020-12-05T07:50:55
2020-12-05T07:50:55
308,201,025
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
def insertionSort(alist): for i in range(1,len(alist)): #element to be compared current = alist[i] #comparing the current element with the sorted portion and swapping while i>0 and alist[i-1]>current: alist[i] = alist[i-1] i = i-1 alist[i] = cur...
[ "teknofage@gmail.com" ]
teknofage@gmail.com
61d67338da326c0b82ae9ef359f504ccba54da59
ed298f7b16e0a1fcc4d5ddc9da324247d200bc8a
/cleanup.py
03ca72d1bca9728c96256d120fb9e0c22c7a7d14
[]
no_license
stella-gao/deepfunc
ed1a67f0a0e682a2e0d1fde05a13fe190ec6f07e
a587512519c234c7ab70eb3fd504a98cd935b4ab
refs/heads/master
2021-01-21T00:11:48.502524
2016-04-28T17:18:44
2016-04-28T17:18:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,207
py
#!/usr/bin/env python ''' THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python gen_next_level_data.py ''' import numpy from keras.models import Sequential from keras.layers.core import ( Dense, Dropout, Activation, Flatten) from keras.layers.convolutional import Convolution2D, MaxPooling2D from keras.layer...
[ "coolmaksat@gmail.com" ]
coolmaksat@gmail.com
5f87f8a1dd51bbbd5ab67cacd2e7b1bf4819ff49
6cd2afb703f0037c38ebaaa7e3fc132d7acbfa31
/viewer_19580/urls.py
76bf364518c599d0bd749c685c1e2f4d16291727
[]
no_license
crowdbotics-apps/viewer-19580
46aeb079e7cf8214232d2491e1f15f8ffdaab538
8cdc0dd08a7f66dc4cd58299c42b83bd59f6b692
refs/heads/master
2022-11-29T05:23:02.074502
2020-08-15T15:54:35
2020-08-15T15:54:35
287,777,776
0
0
null
null
null
null
UTF-8
Python
false
false
1,907
py
"""viewer_19580 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
f4277637101ca2452185a124b44a2047eef1c208
b1931901a2599e170f4c0dbbecc1678ecd976904
/Tools/Scripts/webkitpy/port/simulator_process.py
c1147b2bbf734a964fff63af7b4931702f8a1399
[]
no_license
walmis/WPEWebKit-upstream
b75872f73073a2d58da0a9a51fc9aab891fb897d
4b3a7b8cdd8afc12162fc2e0dcf474685e3fcf58
refs/heads/master
2023-03-10T11:19:26.173072
2017-03-22T09:28:59
2017-03-22T09:28:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,495
py
# Copyright (C) 2017 Apple Inc. 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 list of conditions and the f...
[ "jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc" ]
jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc
ab3168a7ed6a211db35ec3e6069861560ba39898
1986f044d6476fab476a9b5eb9a95cc30d6a8eac
/Chapter07/pygal_1.py
c30537be5d2fb85031674c73d8f2dbb96a6b3e07
[ "MIT" ]
permissive
PacktPublishing/Mastering-Python-Networking
711f47ecff9ca2fec51f948badff22cd8c73ada4
52a2827919db1773f66700f3946390f200bd6dab
refs/heads/master
2023-02-08T01:39:44.670413
2023-01-30T09:03:30
2023-01-30T09:03:30
82,666,812
138
127
MIT
2020-11-05T11:34:15
2017-02-21T10:25:34
Python
UTF-8
Python
false
false
865
py
#!/usr/bin/env python3 import pygal x_time = [] out_octets = [] out_packets = [] in_octets = [] in_packets = [] with open('results.txt', 'r') as f: for line in f.readlines(): # eval(line) reads in each line as dictionary instead of string line = eval(line) x_time.append(line['Time']) ...
[ "echou@yahoo.com" ]
echou@yahoo.com
d616c9ac31f6b34ba0c1d64c0a527e44a5450332
d41d18d3ea6edd2ec478b500386375a8693f1392
/plotly/validators/layout/scene/zaxis/tickfont/_color.py
c9c85093d3ba20c31f8f2d30cc4ebd575af30377
[ "MIT" ]
permissive
miladrux/plotly.py
38921dd6618650d03be9891d6078e771ffccc99a
dbb79e43e2cc6c5762251537d24bad1dab930fff
refs/heads/master
2020-03-27T01:46:57.497871
2018-08-20T22:37:38
2018-08-20T22:37:38
145,742,203
1
0
MIT
2018-08-22T17:37:07
2018-08-22T17:37:07
null
UTF-8
Python
false
false
449
py
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name='color', parent_name='layout.scene.zaxis.tickfont', **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_n...
[ "adam.kulidjian@gmail.com" ]
adam.kulidjian@gmail.com
287a191c2572037ada7b9ea37bd0ecbd1f5e4bc0
856e9a8afcb81ae66dd998b0d2cc3556c9f315ea
/tests/plugins/test_git_filters.py
2a4efe5e20573ce2e090ef58b7c78ce98a865449
[ "MIT" ]
permissive
dexy/dexy
1d5c999830de4663c05a09f4cd00b1628dfc8d46
323c1806e51f75435e11d2265703e68f46c8aef3
refs/heads/develop
2023-06-10T08:02:45.076551
2021-02-28T22:40:41
2021-02-28T22:40:41
1,506,989
141
34
MIT
2020-06-15T17:44:50
2011-03-21T14:48:28
Python
UTF-8
Python
false
false
3,046
py
from dexy.exceptions import UserFeedback from dexy.filters.git import repo_from_path from dexy.filters.git import repo_from_url from dexy.filters.git import generate_commit_info from tests.utils import assert_in_output from tests.utils import runfilter from tests.utils import tempdir from nose.exc import SkipTest impor...
[ "ana@ananelson.com" ]
ana@ananelson.com
6cc1dc4c8e6b81d2106b35562acc5a9448a76b64
fd7a9faee9e2a6dbf89e54e1a7f228fcaf6911e1
/tests/test_cnocr.py
68b2776100394422842303886c7a0172e6ee7cb5
[ "NCSA", "Zlib", "Intel", "LicenseRef-scancode-unknown-license-reference", "MIT", "BSD-2-Clause-Views", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
wting861006/cnocr
f685c607e7ba84a8ead5a6a72301768c832a6320
9cb1cd57c2795007850bd25616880b15e4a3029d
refs/heads/master
2023-09-04T18:36:30.822721
2021-11-05T12:03:23
2021-11-05T12:03:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,410
py
# coding: utf-8 # Copyright (C) 2021, [Breezedeus](https://github.com/breezedeus). # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this f...
[ "breezedeus@163.com" ]
breezedeus@163.com
88f8b1496a92b386d3f5362f2a3adf58da85382b
8a699595e7f156b1ade42f6042900b3331831fbf
/src/transformers/models/swin/modeling_swin.py
81e91a19dccac92e0612504cac8f5c8dba33da2b
[ "Apache-2.0" ]
permissive
stas00/transformers
ab654371a387c5883fc882dd0286177875d6d3b4
7c5d79912a21880ce13d77881940458e90d98917
refs/heads/master
2023-02-16T00:22:41.298155
2022-04-08T20:55:42
2022-04-08T20:55:42
278,214,696
6
0
Apache-2.0
2022-01-28T18:39:00
2020-07-08T23:24:49
Python
UTF-8
Python
false
false
51,021
py
# coding=utf-8 # Copyright 2022 Microsoft Research and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/L...
[ "noreply@github.com" ]
stas00.noreply@github.com
f8631d259c1277c1890704d217d2a61336e0cbbc
46ae8264edb9098c9875d2a0a508bc071201ec8b
/res/scripts/client/gui/scaleform/daapi/view/lobby/customizationfilter_popover.py
05360ff3fd0c540a1aff0057dc445aea0b6e0707
[]
no_license
Difrex/wotsdk
1fc6156e07e3a5302e6f78eafdea9bec4c897cfb
510a34c67b8f4c02168a9830d23f5b00068d155b
refs/heads/master
2021-01-01T19:12:03.592888
2016-10-08T12:06:04
2016-10-08T12:06:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,724
py
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/customization/filter_popover.py from constants import IGR_TYPE from debug_utils import LOG_DEBUG from gui import GUI_SETTINGS from gui.game_control import getIGRCtrl from gui.shared.formatters import text_styles, icons from gui.shared.utils.functions i...
[ "m4rtijn@gmail.com" ]
m4rtijn@gmail.com
24caadb1da40e28f0a1b19027c888aef7f29a004
8983b23a25fcc3739fc977850d242ebcc64434ce
/jqurity/urls.py
a1b034bb4034894993d2bac31814d1ce65d4a60f
[]
no_license
jakiiii/django-blog
595d834c44c4b45817091da812b90b6fa7a34aab
260aa75b89cd9875a2e0ab1e0f9588dffd8f5281
refs/heads/master
2020-03-29T19:53:57.752279
2018-09-25T15:39:21
2018-09-25T15:42:39
150,286,125
1
0
null
null
null
null
UTF-8
Python
false
false
1,130
py
"""jqurity URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
[ "me.jaki@outlook.com" ]
me.jaki@outlook.com
384339a14d72cafb57e028d6b4112d06e5c27362
5774101105b47d78adb7a57eefdfa21502bbd70c
/project-follow/MadKing-master/assets/serializers.py
d39be9254ac56c2e85c54ce840290990ba81359f
[]
no_license
zhlthunder/python-study
34d928f0ebbdcd5543ae0f41baaea955c92f5c56
0f25dd5105ba46791842d66babbe4c3a64819ee5
refs/heads/master
2023-01-12T18:39:47.184978
2018-10-07T23:48:04
2018-10-07T23:48:04
90,516,611
0
1
null
2022-12-26T19:46:22
2017-05-07T07:39:48
HTML
UTF-8
Python
false
false
736
py
#_*_coding:utf-8_*_ __author__ = 'jieli' from assets.myauth import UserProfile from assets import models from rest_framework import serializers class UserSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = UserProfile # fields = ('url', 'name', 'email') fields = ('url',...
[ "zhlthunder@163.com" ]
zhlthunder@163.com
9b2cdeb86d06087f1f5fa0e0cfb88b8fab1f3579
11cd362cdd78c2fc48042ed203614b201ac94aa6
/desktop/core/ext-py3/boto-2.49.0/bin/cwutil
280d53f33edf02cafec34709b3684b22dfcc950c
[ "CC-BY-3.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "ZPL-2.0", "Unlicense", "LGPL-3.0-only", "CC0-1.0", "LicenseRef-scancode-other-permissive", "CNRI-Python", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-or-later", "Python-2.0", "GPL-3.0...
permissive
cloudera/hue
b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908
dccb9467675c67b9c3399fc76c5de6d31bfb8255
refs/heads/master
2023-08-31T06:49:25.724501
2023-08-28T20:45:00
2023-08-28T20:45:00
732,593
5,655
2,244
Apache-2.0
2023-09-14T03:05:41
2010-06-21T19:46:51
JavaScript
UTF-8
Python
false
false
5,046
#!/usr/bin/env python # Author: Chris Moyer <cmoyer@newstex.com> # Description: CloudWatch Utility # For listing stats, creating alarms, and managing # other CloudWatch aspects import boto cw = boto.connect_cloudwatch() from datetime import datetime, timedelta def _parse_time(time_string): """Internal function ...
[ "noreply@github.com" ]
cloudera.noreply@github.com
82cdd53d1dcf9e33c62000824cbb3912abc74ad3
5f22ddbd3eeb99709e43e7b9a7958c9987c7efa4
/interview_bits/level_2/02_binary_search/02_search_step_simulation/01_implement-power-function.py
7f76f3870d716a1ce3475e367399e4163af05c04
[]
no_license
salvador-dali/algorithms_general
04950bd823fc354adc58a4f23b7d2f3d39664798
aeee3356e2488c6fab08741b1ac26e8bd5e4ac0d
refs/heads/master
2020-12-14T06:24:10.466601
2016-07-17T06:00:17
2016-07-17T06:00:17
47,397,457
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
# https://www.interviewbit.com/problems/implement-power-function/ def power(a, b, m): if a == 0: return 0 res, mul = 1, a % m while b: if b % 2: res = (res * mul) % m mul = (mul * mul) % m b /= 2 return res
[ "dmytro@knowlabs.com" ]
dmytro@knowlabs.com
a48345655e91b63f5ae905da3ad7b8a15ef14273
edcc0afdff7a7d01fa05664006d495627e9568e0
/tests/snapshot/test_destroy.py
420d09cd7da71f55fe79d6edcc08b8eaaf999984
[]
no_license
b-a-t/zettarepl
871538cc83e9e0ec3cf0c7f4a66bba21559127e4
6596fb85f31919edf8eadeee47552d14f3d62db3
refs/heads/master
2020-04-01T23:22:27.097027
2018-10-16T18:45:10
2018-10-16T18:45:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
542
py
# -*- coding=utf-8 -*- from unittest.mock import call, Mock from zettarepl.snapshot.destroy import destroy_snapshots from zettarepl.snapshot.snapshot import Snapshot def test__destroy_snapshots__works(): shell = Mock() destroy_snapshots(shell, [Snapshot("data", "snap-1"), Snapshot("data/work", "snap-1"), Sn...
[ "themylogin@gmail.com" ]
themylogin@gmail.com
5e44569573fdd9f885721843380c33d0416aa9f1
f21bf9e70a32de28a159473c6752fab7159f4e88
/ms_deisotope/feature_map/feature_fit.py
1aa3bf8e53cc8f46a0826f2ff6477ecbd0a90d55
[ "Apache-2.0" ]
permissive
mstim/ms_deisotope
c1d9cd8b5a3ab36c28c53d8988803cd268b240c5
29f4f466e92e66b65a2d21eca714aa627caa21db
refs/heads/master
2023-03-20T05:02:09.088420
2021-03-04T21:44:35
2021-03-04T21:44:35
261,802,498
0
0
Apache-2.0
2020-05-06T15:32:03
2020-05-06T15:32:02
null
UTF-8
Python
false
false
12,644
py
from collections import namedtuple import numpy as np # from brainpy import neutral_mass as calc_neutral_mass from ms_peak_picker import FittedPeak from ms_deisotope.averagine import glycan from ms_deisotope.scoring import g_test_scaled from .shape_fitter import AdaptiveMultimodalChromatogramShapeFitter from .lcms_fe...
[ "mobiusklein@gmail.com" ]
mobiusklein@gmail.com
c922049e1d08e7a7dd1929f419415ed617b2dccc
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/59/usersdata/171/41957/submittedfiles/testes.py
16dd14c2d0278fb3b37bde0222232be8c114fd08
[]
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
198
py
# -*- coding: utf-8 -*- import math #COMECE AQUI ABAIXO a=float(input('digite a base:')) b=float(input('digite o expoente:')) cont=0 i=0 c=a**b while i<cont: c=a**b cont=cont+1 print('%d'%c)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
8203f8ceb30d5186a154e4b31d9a972deba8201b
8b4d37632e0435fe5f78bf1631dd74766e8db411
/xrandroll/xrandr.py
96ceed2ae8f3e366d30c4851a91de8b1c339fe25
[ "MIT" ]
permissive
RakhithJK/xrandroll
ca876c35fda3235b81362bce9ff6779759d810a5
7d294ea15a639d9b15a55c0bfc13161307425554
refs/heads/master
2022-04-07T03:13:53.816999
2020-02-07T12:55:02
2020-02-07T12:55:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,071
py
"""Read/Write system display state using xrandr.""" import subprocess from .monitor import Monitor, _split_by_lines_matching def is_replica_of(a, b): """Return True if monitor a is a replica of b. Replica means same resolution and position. """ return ( a.pos_x == b.pos_x and a.pos_...
[ "ralsina@netmanagers.com.ar" ]
ralsina@netmanagers.com.ar
3d1cde7505953c42c17da27c37c33aaa338acc32
8441f156e53afcc6c2b5190de2439c68eb40f218
/python/nistoar/testing/__init__.py
d92c9b8c26da11199ab8542e66d9baff95a31408
[]
no_license
usnistgov/oar-metadata
99436a84d32d623d77310e75eee834c683ea1d5b
2190bfc79d97f81d52dd24df0d4e9dc844065b67
refs/heads/integration
2023-07-08T16:06:23.258608
2023-04-22T21:00:09
2023-04-22T21:00:09
82,972,531
4
7
null
2023-06-30T18:27:38
2017-02-23T21:20:34
Python
UTF-8
Python
false
false
5,200
py
""" test infrastructure and utilities usable throughout the nistoar library """ # this code was copied from the testing infrastructure for ejsonschema import os, shutil __all__ = [ 'ensure_tmpdir', 'tmpdir', 'rmtmpdir', 'Tempfiles', 'artifactdir' ] tmpname = "_test" def ensure_tmpdir(basedir=None, dirname=Non...
[ "raymond.plante@nist.gov" ]
raymond.plante@nist.gov
00588c59ef606ca06a81ac2cc3da8e2270175594
52e8dce655b89a260d049d34e74bc0cd3caf6f07
/torchreid/__init__.py
3403b86662515fb3072ca4ac7f8f659b96c4a42f
[ "MIT" ]
permissive
digitalbrain79/deep-person-reid
b527d0e8bd9a4a72209728c105fe5cd1773041dc
0e7026be11dab7cb6991c43ea0b36765445507f9
refs/heads/master
2020-05-20T02:50:24.406708
2019-05-06T21:28:34
2019-05-06T21:28:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
from __future__ import absolute_import from __future__ import print_function __version__ = '0.7.4' __author__ = 'Kaiyang Zhou' __description__ = 'Deep learning person re-identification in PyTorch' from torchreid import ( engine, models, losses, metrics, data, optim, utils )
[ "k.zhou@qmul.ac.uk" ]
k.zhou@qmul.ac.uk
dd72fcfd037b92916bb36a734e3754cf57ff6822
dfaa71f8064d3d0773941cf14ab86ff57ff67284
/part45/blog/models.py
d5edd654805cf32352512470306c70d8c055de71
[ "Apache-2.0" ]
permissive
yllew36/WellyGI
e94c5000ff3a7f2fd7316d22ad166fbf7916ea23
7d53fac4c81bb994f61b22761e5ac7e48994ade4
refs/heads/master
2020-09-05T15:49:37.386078
2019-11-15T08:16:59
2019-11-15T08:16:59
220,148,061
1
0
null
null
null
null
UTF-8
Python
false
false
547
py
from django.db import models from django.utils.text import slugify # Create your models here. class ArtikelModel(models.Model): judul = models.CharField(max_length=255) isi = models.TextField() penulis = models.CharField(max_length=255) publish = models.DateTimeField(auto_now_add = True) update = models.Da...
[ "yllew36@gmail.com" ]
yllew36@gmail.com
d5710045f064d84d667dfa28c760ba605ec4e832
f1ee4b96f37419504576dc8b0d5b708bd5b9ba29
/builder/main.py
7a06353e59a01b076b8af1324a542b80ce572c60
[]
no_license
OS-Q/P254
6d850efdd9da8a76d3cc2a4340c62cd8039dacdc
e3b542ec8020d280ab41ea5f2496b260e710f6d1
refs/heads/master
2023-04-19T11:03:23.733720
2021-05-04T03:48:12
2021-05-04T03:48:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,291
py
# Copyright 2014-present PlatformIO <contact@platformio.org> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
[ "qitas@qitas.cn" ]
qitas@qitas.cn
b1877b2bf819138238459ec197dd6bdf01e9b712
3d2a74a859b0ea2a2f12315fd781154eae8449c5
/LeetCode/min_size_suba_sum.py
0b8ec9e1f641060914e8bb23000cbca0b64a88c5
[]
no_license
jacobfelknor/practice_interview_questions
1e929b0fdb4f816202f000de96b9f66fb119802b
942f0ec730d7f0af650ddcee1abc5d17827c953c
refs/heads/master
2021-11-22T07:27:25.986891
2021-11-09T02:12:13
2021-11-09T02:12:13
227,508,728
0
0
null
null
null
null
UTF-8
Python
false
false
716
py
""" Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't one, return 0 instead. >>> min_sub_array_length([2,3,1,2,4,3], 7) 2 """ from typing import List def min_sub_array_length(nums: List[int], nsum: int) -> int: ...
[ "jacobfelknor073@gmail.com" ]
jacobfelknor073@gmail.com
7a5222fd8eda27337c2d12c3e550a83aa9fa6281
231f8a898b20e475a5cabff439600de211d825c0
/deploy_tools/fabfile.py
33f3f66d5a1f450f1ea86a8eed1c19c182d68253
[ "MIT" ]
permissive
thewchan/superlists
f7370b341ce7c37b8cae506eb5bafdd2fb31b07a
af41636b2cdafb45c638e36076b9cdefc5586aad
refs/heads/master
2023-05-26T11:01:24.310480
2021-06-11T21:12:20
2021-06-11T21:12:20
361,209,827
0
0
null
null
null
null
UTF-8
Python
true
false
1,841
py
"""Fabric deployment configuration and script.""" import random from fabric.contrib.files import append, exists from fabric.api import cd, env, local, run REPO_URL = "https://github.com/thewchan/superlists.git" def deploy() -> None: """Deploy site to server.""" site_folder = f"/home/{env.user}/sites/{env.hos...
[ "thewchan@gmail.com" ]
thewchan@gmail.com
ef36d5f6cc4c8c0f5464bce23e67c44306bfe522
1086ef8bcd54d4417175a4a77e5d63b53a47c8cf
/Forks/Online-Judges-Problems-SourceCode-master/Hackerrank/AI/Statistics-MachineLearning/correlation_and_regression_lines_5.py
6bbdb8ea12b6aa32461da6be7494d8e242886a3f
[]
no_license
wisdomtohe/CompetitiveProgramming
b883da6380f56af0c2625318deed3529cb0838f6
a20bfea8a2fd539382a100d843fb91126ab5ad34
refs/heads/master
2022-12-18T17:33:48.399350
2020-09-25T02:24:41
2020-09-25T02:24:41
298,446,025
0
0
null
null
null
null
UTF-8
Python
false
false
46
py
___author__ = 'Ahmed Hani Ibrahim' print(16)
[ "elmanciowisdom@gmail.com" ]
elmanciowisdom@gmail.com
1f4566fe4bab4acc5b0a1372b183c37d6628e045
a262151ecb151b4c8335354c972fb166b81f4635
/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_rule_sets_operations.py
f09eaf880fb6c66476285ef0d97beaf70a93e6c0
[ "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
fenwickt/azure-sdk-for-python
5fc8f3383caa4e5e7a61f5b497a73635c4377935
0d1f644925d2472c72b195588508bd0efc4baf0c
refs/heads/master
2023-03-31T08:02:37.322485
2021-03-29T07:48:41
2021-03-29T07:48:41
319,299,226
0
0
MIT
2020-12-07T11:31:48
2020-12-07T11:31:48
null
UTF-8
Python
false
false
26,253
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
fenwickt.noreply@github.com
20437c1a84eb98ac587f50388c9768487f5ca702
b26448cd43ac991c6277b588a1dcb6da53afe10a
/users/forms.py
54880d817fdc01332a72a06f7e769d744f2d5c8f
[]
no_license
Xednom/e-wallet
76da2658c34391c5d38e9d73ebce8f4ea80be87e
97e83849296fa9678b6fdcb0737dfe09ee268a3f
refs/heads/master
2023-01-29T04:27:51.833449
2019-10-16T07:34:25
2019-10-16T07:34:25
239,905,317
1
0
null
2023-01-04T14:20:08
2020-02-12T01:55:27
Python
UTF-8
Python
false
false
763
py
from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm from django_registration.forms import RegistrationForm from .models import CustomUser class CustomUserCreationForm(UserCreationForm): class Meta(UserCreationForm.Meta): model = CustomUser fields = ( ...
[ "monde.lacanlalay@gmail.com" ]
monde.lacanlalay@gmail.com
a722ff76b03c3ec84e50f9fb3054123fce8d77e9
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p3BR/R1/benchmark/startQiskit_Class74.py
aad134186459476f44dc4c2f3adf503ded4612fb
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
5,187
py
# qubit number=3 # total number=13 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
485a56d5d4b5bbc4ce35a0d79cf74af9937dee85
64f365bf14a3c700ac3dab4a43a2bccd7ad0f222
/setup.py
ea34a7eb8bee6edea5c9c57b41d1aaf016932e65
[ "MIT" ]
permissive
russmain/leafmap
a4e8d081a5a3c973d2eb87616340dc44fd277fbd
277edabfba56bfe133f507173e6005b5a7504234
refs/heads/master
2023-07-15T23:11:16.445456
2021-09-02T03:04:59
2021-09-02T03:04:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,729
py
#!/usr/bin/env python """The setup script.""" import io from os import path as op from setuptools import setup, find_packages with open("README.md") as readme_file: readme = readme_file.read() here = op.abspath(op.dirname(__file__)) # get the dependencies and installs with io.open(op.join(here, "requirements.t...
[ "giswqs@gmail.com" ]
giswqs@gmail.com
1a480f0e4af30873cf5daa67189f7085fb570119
ee561aa019a80f621007f82bdb21fe6ed8b6278f
/devel/ros_control-melodic-devel/hardware_interface/catkin_generated/pkg.develspace.context.pc.py
0b881c3ecc6378010075a3d5b58fcdccc75ddd34
[]
no_license
allanwhledu/agv_edu_prj
4fb5fbf14cf0a14edd57ee9bd87903dc25d4d4f2
643a8a96ca7027529332f25208350de78c07e33d
refs/heads/master
2020-09-23T23:32:54.430035
2019-12-04T07:47:55
2019-12-04T07:47:55
225,613,426
1
1
null
null
null
null
UTF-8
Python
false
false
554
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/sjtuwhl/ROBOTLAB_WS/src/ros_control-melodic-devel/hardware_interface/include".split(';') if "/home/sjtuwhl/ROBOTLAB_WS/src/ros_control-melodic-devel/hardware_interface/include" != "" else [] PROJ...
[ "bitwanghaili@gmail.com" ]
bitwanghaili@gmail.com
2843225ad98b83b0dfefd872c82ee2088e5571c4
0b16b44e4fc8c98c9ea3f9d4b8b470f4f62f918d
/Core/migrations/0005_auto_20201105_0936.py
bedc07c9a234fd96f3fc7bd257cbcec57776181d
[]
no_license
AthifSaheer/DipakNiroula-Django-Ecom
342eece90211fe80c41ba72bf69a50e63c5ea901
94ead608919c5bb076387e26f396e6c38319433e
refs/heads/main
2023-02-05T06:52:24.204206
2020-12-24T13:19:13
2020-12-24T13:19:13
324,160,212
3
0
null
null
null
null
UTF-8
Python
false
false
509
py
# Generated by Django 2.2.14 on 2020-11-05 04:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Core', '0004_auto_20201104_1147'), ] operations = [ migrations.AlterField( model_name='order', name='payment_method...
[ "liteboook@gmail.com" ]
liteboook@gmail.com
a56c8b2eeff6a702bb2f1dca4925a23f4f0d3ad8
4c61c2ca62ab84c240664cb8fad6535b282b95f7
/python/lsst/sims/skybrightness_pre/SkyModelPre.py
e6bddf7216336bd41d5aea1de858fc44dcbf38b4
[]
no_license
andrewbheyer/sims_skybrightness_pre
40b864ab35df28ef4a5ebaf7100a3c7460109401
558b32b4fdca57f79f7f5452813f3336f2c9afe9
refs/heads/master
2021-05-16T12:41:26.870222
2017-08-30T20:55:11
2017-08-30T20:55:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,123
py
from builtins import object import numpy as np import glob import os import healpy as hp from lsst.utils import getPackageDir import warnings from lsst.sims.utils import haversine __all__ = ['SkyModelPre'] class SkyModelPre(object): """ Load pre-computed sky brighntess maps for the LSST site and use them to ...
[ "yoachim@uw.edu" ]
yoachim@uw.edu
0cb6d6ce63e06611b90c62a58cf84c65f89759e2
3c2b5fd20c7372fccb97fa76deb0980a173b5991
/PythonFullStack/000Basic/day06/02-文件的读写.py
0c155ffb3e9c6c9d76f6d864f0c9700496908cc1
[]
no_license
softwarefaith/PythonFullStack
560cdc2c0c38831e8304751b8b2bf680cb2f23e5
292cc0a5eee3ed8eb8a8d5e14673226533d2651e
refs/heads/master
2021-05-15T09:57:37.812869
2019-02-21T10:37:41
2019-02-21T10:37:41
108,229,662
1
0
null
null
null
null
UTF-8
Python
false
false
2,715
py
#文件的访问模式: #1.r:只读,文件不存在会崩溃 #2.w:只写 #3.a:追加写入 #4.rb:以二进制方式读取文件数据:常用 #5.wb:以二进制方式写入文件数据:常用 #6:ab:以二进制方式增加文件数据:常用 #爬视频,图片数据,文本数据,音频数据 # r+ w+ a+ 支持读写 #rb+ wb+ ab+ 支持二进制方式读写操作 #打开文件使用open函数 #------------r模式(只读)----------- # 如果没有此文件会崩溃 # file = open("1.txt","r",encoding="utf-8") # #读取文件中所有的数据 # content = file.read() # ...
[ "jie.cai@mljr.com" ]
jie.cai@mljr.com
123a0cd3e2885c33639ca783c268bbee0e3fa695
bc63598033c6ca4ac7f257897aec0b23eaff60d1
/test/mitmproxy/test_proxy_config.py
e2c39846c7e7b8d19edbed878fb14cf9b84d42ad
[ "MIT" ]
permissive
Scalr/mitmproxy
4aee723aef2f34fa1209364b5b03cedff7d3f85e
a6c608e08595e95279713e51e2a346344bd290c0
refs/heads/master
2020-06-27T08:52:29.441895
2016-11-23T00:27:23
2016-11-23T00:27:23
74,527,489
0
2
MIT
2018-05-03T00:00:18
2016-11-23T01:10:39
Python
UTF-8
Python
false
false
726
py
from mitmproxy.test import tutils from mitmproxy.proxy import config def test_parse_server_spec(): tutils.raises( "Invalid server specification", config.parse_server_spec, "" ) assert config.parse_server_spec("http://foo.com:88") == ( "http", ("foo.com", 88) ) assert config.parse_s...
[ "aldo@nullcube.com" ]
aldo@nullcube.com
18c980d503bf6b4c69c1adfc9b18247782543587
ac6e4102dfb49a4e49de0e2766feb6e80ab0b5c2
/h1/models/storage_project_disk_update.py
db3461e12902a70bd45008c134567f0cb69ccd06
[ "MIT" ]
permissive
hyperonecom/h1-client-python
df01f05ad295121e3dd391a3274c41e2f5b88e53
4ce355852ba3120ec1b8f509ab5894a5c08da730
refs/heads/master
2023-04-05T01:51:31.637002
2021-03-29T00:05:41
2021-03-29T00:05:41
319,309,525
0
0
null
null
null
null
UTF-8
Python
false
false
3,246
py
# coding: utf-8 """ HyperOne HyperOne API # noqa: E501 The version of the OpenAPI document: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from h1.configuration import Configuration class StorageProjectDiskUpdate(object): """NOTE: Th...
[ "action@github.com" ]
action@github.com
e3f94648f1b2d25797273b156ae51df153c72c27
b90975e4d7acf7c9ad26ef5fc3e6247c95e2c540
/installation_test.py
73686a13ee12869e973416d273dd0707ec2ee9bb
[]
no_license
lfernandez55/tensorflow_pluralsight
720de593a010d392d35b9da7263972148ec5076b
fc519c2154b90b40900df81fcdfd72f84d4eac22
refs/heads/master
2020-06-13T00:13:08.906189
2019-06-30T04:50:32
2019-06-30T04:50:32
194,470,020
0
0
null
null
null
null
UTF-8
Python
false
false
260
py
import tensorflow as tf sess = tf.Session() #Verify we can print a string hello = tf.constant("hello world from tensorflow") print(sess.run(hello)) #Perform some simple math a = tf.constant(20) b = tf.constant(22) print('a + b = {0}'.format(sess.run(a+b)))
[ "lfernandez@weber.edu" ]
lfernandez@weber.edu
4be2e8189f05febeb17633e6c20fdd4ab01b805f
268a6b7a1138dce434c6b7a54eb36cb4ae799ddd
/topo/custom/tests/test_delegate_forward.py
e01c1c60f6a5ea1c9407d803a176f66799f06906
[ "BSD-2-Clause" ]
permissive
rubiruchi/fdeval
2b0592853a684a8c5b87aeb363e4ccff61f47c0c
f6463c1c7549b8ac7fc39854e87c88d3cac858a0
refs/heads/master
2022-11-08T17:56:34.188225
2020-06-23T16:46:13
2020-06-23T16:46:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,656
py
from topo.custom.topo import Topo from . import testutil as testutil import math from core.engine import Engine class TestEngine(Engine): def on_EVSwitchStats(self, switch, ev): # es = self.ctx.topo.get_switch_by_label('ES') if switch.label == 'DS': if math.isclos...
[ "robert.bauer@kit.edu" ]
robert.bauer@kit.edu
593d31b488df95765e3a64530d9157de067998a2
c8a38e65e71de888fc5b22fbd027bbaa0f3f6ef1
/Python/142.py
48db84b49b40e5429e83236336ce49f31599f810
[]
no_license
skywhat/leetcode
e451a10cdab0026d884b8ed2b03e305b92a3ff0f
6aaf58b1e1170a994affd6330d90b89aaaf582d9
refs/heads/master
2023-03-30T15:54:27.062372
2023-03-30T06:51:20
2023-03-30T06:51:20
90,644,891
82
27
null
null
null
null
UTF-8
Python
false
false
557
py
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def detectCycle(self, head): """ :type head: ListNode :rtype: ListNode """ slow = fast = head while f...
[ "gangzh@uber.com" ]
gangzh@uber.com
417a9c86d6cf0e60446d13fbaa43104cd89c1a44
b0f4b12ec6b14659b252f19776eb297366c9f330
/代码/day3-5/A.FileDemo.py
1bfc45d54864ee1dccb3618fe339ea82646998b0
[]
no_license
vothin/code
a77259db4a3c4630bed293f979a49b676a1bd7c4
d2b7819fd3687e0a011988fefab3e6fd70bb014a
refs/heads/master
2020-08-31T15:48:28.155535
2020-01-09T08:21:57
2020-01-09T08:21:57
218,725,153
0
0
null
null
null
null
UTF-8
Python
false
false
3,389
py
''' open r 以只读方式打开文件。文件的指针将会放在文件的开头。这是默认模式。 rb 以二进制格式打开一个文件用于只读。文件指针将会放在文件的开头。这是默认模式。 r+ 打开一个文件用于读写。文件指针将会放在文件的开头。 rb+ 以二进制格式打开一个文件用于读写。文件指针将会放在文件的开头。 w 打开一个文件只用于写入。如果该文件已存在则打开文件,并从开头开始编辑,即原有内容会被删除。如果该文件不存在,创建新文件。 wb 以二进制格式打开一个文件只用于写入。如果该文件已存在则打开文件,并从开头开始编辑,即原有内容会被删除。如果该文件不存在,创建新文件。 w+ 打开一个文件用于读写。如果该文件已存在则打开文件,并从开头开始...
[ "zy757161350@qq.com" ]
zy757161350@qq.com
716cc2c81ec577e777a6a3cfc47ba680a6cadfc7
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_plectrums.py
0d3dda010f944bbbef6409f78aeac191753a0607
[ "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.nouns._plectrum import _PLECTRUM #calss header class _PLECTRUMS(_PLECTRUM, ): def __init__(self,): _PLECTRUM.__init__(self) self.name = "PLECTRUMS" self.specie = 'nouns' self.basic = "plectrum" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
7815604a4051af01935361e7b7859ccd85e3e71b
ea393959886a5cd13da4539d634f2ca0bbcd06a2
/283.py
b2b4f2cad4536764cd733094eaf98757b705c7b1
[]
no_license
zhangchizju2012/LeetCode
f605f35b82f16282559af71e4e61ec2629a90ebc
0c4c38849309124121b03cc0b4bf39071b5d1c8c
refs/heads/master
2020-04-05T12:12:14.810639
2018-08-09T10:24:52
2018-08-09T10:24:52
81,021,830
7
1
null
null
null
null
UTF-8
Python
false
false
979
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Jun 14 00:24:22 2017 @author: zhangchi """ class Solution(object): def moveZeroes(self, nums): """ :type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead. """ indexList = [] ...
[ "zhangchizju2012@zju.edu.cn" ]
zhangchizju2012@zju.edu.cn
900bbc907bb10a759b672147517f8448c7ef5e21
ef54d37f8a3303013ca7469871a320d303957ed7
/robo4.2/fusion/tests/wpst_crm/feature_tests/C7000/Supershaw_TAA_FA_DA/validate.py
d1b1f709416576fdb725e7dd9fe4c24c42439338
[]
no_license
richa92/Jenkin_Regression_Testing
d18badfcf16bda682dfe7bcbbd66f54a9a27a58d
24a74926170cbdfafa47e972644e2fe5b627d8ff
refs/heads/master
2020-07-12T10:01:59.099137
2019-08-27T12:14:53
2019-08-27T12:14:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,069
py
''' This module contains the code to get the IP's of the ethernet networks. Using the IP's it can login to the server and execute the diskspd commands to start the traffic. Diskspd results or ouput will be redirected to the log file ''' import paramiko import os import time import re import threading import Queue ...
[ "akul@SAC0MKUVCQ.asiapacific.hpqcorp.net" ]
akul@SAC0MKUVCQ.asiapacific.hpqcorp.net
7d0fa9b4b4f4b3082220c3ee9b07b146fdbbd204
9cbd088a0f7288acee3c1d736ef85e516b86d8fe
/twitter_tools.py
f3b7643e42816d3d937696a696eca0c0ddfeb875
[]
no_license
fjccoin/twitbots
91ba75a8123c9c21cf20d3e235075f5e7b0ebd5d
513a6df705034aeb61b0d7ea2fccfe6c722160d9
refs/heads/master
2020-04-08T02:42:31.602419
2015-11-12T08:38:01
2015-11-12T08:38:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,719
py
import nltk from collections import OrderedDict, defaultdict import re import requests from bs4 import BeautifulSoup from urlparse import urlparse SLEEP_COMMAND = ' go to sleep' WAKE_COMMAND = ' wake up' QUIET_COMMAND = ' no reply' LOUD_COMMAND = ' reply on' ADMIN_ID = 21455761 def filter_tweet(tweet, userid, botnam...
[ "elaine.ou@gmail.com" ]
elaine.ou@gmail.com
16f5f3e683d884969d7b2a96646d43ae6d346d91
91b2fb1fb6df216f2e365c3366bab66a567fc70d
/Week06/每日一题/857. 雇佣 K 名工人的最低成本.py
a439d49b3ad77a70ab1c5a3a7846aa901ac77d1d
[]
no_license
hrz123/algorithm010
d17aee642f03f607a7984beb099eec18f2de1c8e
817911d4282d2e226518b3533dff28282a91b3d4
refs/heads/master
2022-12-20T14:09:26.365781
2020-10-11T04:15:57
2020-10-11T04:15:57
270,178,423
1
0
null
2020-06-07T03:21:09
2020-06-07T03:21:09
null
UTF-8
Python
false
false
5,322
py
# 857. 雇佣 K 名工人的最低成本.py import heapq from typing import List class Solution: def mincostToHireWorkers(self, quality: List[int], wage: List[int], K: int) -> float: v = list(zip(quality, wage)) v.sort(key=lambda t: t[1] / t[0]) priority_queue = [] ans =...
[ "2403076194@qq.com" ]
2403076194@qq.com
1e722c8b3d71456db9c90dd4ee5c9bde1a02f8c7
7dfb5942ae4721b7084bde958d632dd90096328a
/function_generator/error_models.py
b75cd3ae00e6daae1112f1a68f604e5b2ace591f
[ "Apache-2.0" ]
permissive
blackwer/function_generator
f392ae0041f56d235a959ce3e54c1f865baf3cca
91025e67a2c64009f0384ee35466bb04f0819fce
refs/heads/master
2021-11-26T03:20:49.104389
2021-11-10T14:23:34
2021-11-10T14:23:34
219,051,758
9
2
Apache-2.0
2021-11-09T13:34:12
2019-11-01T19:42:48
C++
UTF-8
Python
false
false
291
py
import numpy as np def standard_error_model(coefs, f): return np.abs(coefs[-2:]).max()/max(1, np.abs(coefs[0])) def relative_error_model(coefs, f): return np.abs(coefs[-2:]).max()/np.abs(coefs[0]) def new_error_model(coefs, f): return np.abs(coefs[-2:]).max()/np.abs(f).min()
[ "dstein@flatironinstitute.org" ]
dstein@flatironinstitute.org
52a4d27d2d45abfa176ad4c8edd1e8e1b6e7298c
1b126876948b3d05f89e058d4642405f192fb858
/src/strava_api/Client.py
ff70413ffc370f22346a23c172543126be8f72e8
[ "MIT" ]
permissive
yknot/strava_api
6ecc972132156432cdc4e19ffe23fd5045fa765a
b31080b8718a6c26399cfc7c36b77f36a2bed1d3
refs/heads/master
2023-05-25T04:51:02.822053
2020-07-18T04:44:35
2020-07-18T04:44:35
279,205,963
0
0
MIT
2023-05-23T00:04:21
2020-07-13T04:01:33
Python
UTF-8
Python
false
false
1,091
py
"""Main module.""" import requests from .Athlete import Athlete class Client: """Class to manage your Strava API Client""" def __init__( self, client_id: str, client_secret: str, auth_token: str, refresh_token: str ) -> None: """initialize client with application attributes""" sel...
[ "a.yale9@gmail.com" ]
a.yale9@gmail.com
b33759539b2bc335df52bacedf3a8424c3ec86c0
c8da3539397dbd49388719fb6d8720db61e859a7
/catkin_ws/build/hector_slam/hector_geotiff_plugins/catkin_generated/pkg.develspace.context.pc.py
b98873d668c4614483b338c03fe900e4a959193b
[]
no_license
pinkpinkheart/ROS
a465c9e967cd1c71da7648a62d1cc8af342b70df
bd91772e24b72d466a90d2dd65f54be4be49ce99
refs/heads/master
2023-03-12T17:55:40.650415
2021-03-03T09:20:00
2021-03-03T09:20:00
344,137,644
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "hector_geotiff_plugins" PROJECT_SPACE...
[ "123456789@qq.com" ]
123456789@qq.com
9e01ee06ccb0d0c3f6fcbb90b6af174e4d295b4a
96086ae5e7bfa1e40159f919269a90c83e472326
/opengever/usermigration/plone_tasks.py
121756f0302306a726785ba83d2b3607d1afb842
[]
no_license
lukasgraf/opengever.core
6fc313717fbec3692354e56c2c3293789076a389
a15c4ff8e0d5494906d7de46a43e3427c8d2d49f
refs/heads/master
2020-12-01T11:38:46.721555
2018-06-18T10:13:09
2018-06-18T10:13:09
57,871,187
0
0
null
2016-05-02T06:59:58
2016-05-02T06:59:58
null
UTF-8
Python
false
false
6,253
py
""" Migrate user IDs in Plone tasks (issuers, responsibles, responses) """ from opengever.ogds.base.utils import ogds_service from opengever.task.adapters import IResponseContainer from opengever.task.task import ITask from opengever.usermigration.exceptions import UserMigrationException from plone import api import l...
[ "lukas.graf@4teamwork.ch" ]
lukas.graf@4teamwork.ch
d89d76b57a914617374ae2be28918b6019c91b82
2cb07ae51d1de3e8bdff12e5628e7d142a98d970
/Aula3/Problem15_12_4.py
3454f557c9f57d8e47ebee3ce6450c7593be0a3e
[]
no_license
juanfdg/JuanFreireCES22
e7c40a11584a86e1f81520d9da0bbdd58ea48e02
4d80b32163ea6d3f4c5f35375969a748022be438
refs/heads/master
2021-04-27T00:50:48.754467
2018-07-03T03:29:36
2018-07-03T03:29:36
122,661,075
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
class Point(): def __init__(self, x, y): self.x = x self.y = y # Method wont work when other_point.x - self.x = 0 def get_line_to(self, other_point): slope = (other_point.y-self.y)/(other_point.x-self.x) linear_coef = self.y - slope*self.x return (slope, linear_coef...
[ "--global" ]
--global
8d6cca91d5489b3dabcf10d8c98523f7f3c593f8
9924e0dc6e0e8c8665508a218636f391451a153f
/Extras/use_flacco.py
2e8dfe4b9cb62fa2b2d599de9da641448cd1f9e8
[]
no_license
ai-se/ExploratoryLandscapeAnalysis
b531d374221397ed91f43eeff00217aa85797881
c338fe93bb11881d25b6000853ca7ac0be69e212
refs/heads/master
2020-07-13T12:52:04.601453
2016-09-23T21:21:08
2016-09-23T21:21:08
66,961,225
0
0
null
null
null
null
UTF-8
Python
false
false
2,730
py
from __future__ import division import pyRserve from os import listdir import pandas as pd from random import shuffle def df_to_list_str(df): columns = df.columns.tolist() list = [] for column in columns: list.extend(df[column].tolist()) result_str = "" for i, l in enumerate(list): ...
[ "vivekaxl@gmail.com" ]
vivekaxl@gmail.com
26c2f5e55d19a42e4299bc3c03c1aa8d472539d8
38a42a205eaa5a0a46989c95f0b01f7e04b96a9e
/uoft/CSC148H1F Intro to Comp Sci/@week3_stacks/@@Exercise3/stack_ex.py
25de6d1577c709a79973a271d6b1427ee3ffe857
[ "MIT" ]
permissive
Reginald-Lee/biji-ben
d24cd1189ca3e9ed7b30e5b20a40137e8d6d4039
37009dfdbef9a15c2851bcca2a4e029267e6a02d
refs/heads/master
2023-05-06T23:06:49.819088
2020-06-10T12:07:47
2020-06-10T12:07:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,692
py
# Exercise 3: More Stack Exercises # # CSC148 Fall 2014, University of Toronto # Instructor: David Liu # --------------------------------------------- # STUDENT INFORMATION # # List your information below, in format # <full name>, <utorid> # <Rui Qiu>, <999292509> # -------------------------------------------...
[ "rexarski@gmail.com" ]
rexarski@gmail.com
a8d4ea1ab28833bfd43a58cd9b108e03ae0b7c42
9d90b664ebbd11a57ee6156c528081551b98055b
/wsgi/local_data/brython_programs/tuple1.py
fb6bc882e1ee285aa89bedf32f13c2ec02f31f08
[]
no_license
2014cdag21/c21
d4f85f91ba446feb6669a39903dda38c21e8b868
faf4b354f7d1d4abec79c683d7d02055c6bab489
refs/heads/master
2020-06-03T17:54:16.144118
2014-06-20T09:29:02
2014-06-20T09:29:02
19,724,479
0
1
null
null
null
null
UTF-8
Python
false
false
429
py
d = (11,12,13,'asdf',14,15.0) # Note - tuples are immutable types # Common operations: # length of a typle print(len(d)) # indexation (in Python it starts from zero) print(d[0], d[1]) # slicing print(d[0:2]) # equals to (11, 12) print(d[2:-1]) # equals to (13, 'asdf', 14) print(d[:2]) # same as d[0:2], equals to (11, ...
[ "chiamingyen@gmail.com" ]
chiamingyen@gmail.com
0e8f422dbaf4ff83f83fc49dc9410897d3314dcd
7e9daf6a2a3ebfb969e793f92afc0dc5f1c2fc35
/cat_mouse.py
940150c58ad59356e7f9220c3b08a3bfc16612a7
[]
no_license
NARESHSWAMI199/5-Star-On-Hacker-Rank-Python
e43ce5cb3429d2a683c37e6f4ba6440d073d47c2
51f245d1d0966de21ddf861b22fe3379e7c8a0a7
refs/heads/main
2023-02-25T03:05:25.330205
2021-01-19T13:49:27
2021-01-19T13:49:27
325,296,957
0
0
null
null
null
null
UTF-8
Python
false
false
518
py
quries_size = int(input()) maxmum = 0 for i in range(quries_size): query = list(map(int,input().split())) if query[0] > query[2]: dist_of_a = query[0] - query[2] else : dist_of_a = query[2]- query[0] if query[1] > query[2]: dist_of_b = query[1] - query[2] else : ...
[ "swaminaresh993@gmail.com" ]
swaminaresh993@gmail.com
d4952e4625b9ebd20f0d0deb21cdd0ca66b480cf
faa0ce2a95da958be3bfb171cdff29eeb43c3eb6
/py-exercises/JulieTestModule/characters/shadow.py
f71a4d7d759a9855c1f3ccbf67630318ea88332d
[]
no_license
julianapeace/digitalcrafts-exercises
98fe4e20420c47cf9d92d16c45ac60dc35a49a6a
98e6680138d55c5d093164a47da53e1ddb6d064c
refs/heads/master
2021-08-30T04:17:09.997205
2017-12-16T00:22:22
2017-12-16T00:22:22
103,176,043
0
1
null
null
null
null
UTF-8
Python
false
false
236
py
from characters.base import Character class Shadow(Character): def __init__(self, name = 'Shadow', health = 1, power = 5, armor = 0, evade = 0, coincount = 4): super().__init__(name, health, power, armor, evade, coincount)
[ "chancecordelia@gmail.com" ]
chancecordelia@gmail.com
f66c598f24bf258557c6b380eb6f1b14b1fa4d9a
67a7c314fc99d9cd7a677fcb6bc2b6dfa20a9cff
/spambayes-1.0.4/utilities/dump_cdb.py
49728d0958b67c26cdc52128cfdcf1d6f116874e
[ "LicenseRef-scancode-unknown-license-reference", "Python-2.0" ]
permissive
Xodarap/Eipi
7ebbb9fd861fdb411c1e273ea5d2a088aa579930
d30997a737912e38316c198531f7cb9c5693c313
refs/heads/master
2016-09-11T06:28:01.333832
2011-05-03T15:35:20
2011-05-03T15:35:20
1,367,645
0
0
null
null
null
null
UTF-8
Python
false
false
550
py
#! /usr/bin/env python RC_DIR = "~/.spambayes" DB_FILE = RC_DIR + "/wordprobs.cdb" import sys import os DB_FILE = os.path.expanduser(DB_FILE) from spambayes.cdb import Cdb def main(): if len(sys.argv) == 2: db_file = sys.argv[1] else: db_file = os.path.expanduser(DB_FILE...
[ "eipi@mybox.(none)" ]
eipi@mybox.(none)
4cf0f265880518fe33637b3e56d940727ba2b525
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-ief/huaweicloudsdkief/v1/model/delete_app_version_response.py
8ee4920d3d770b7d585ed8241983204f95e97477
[ "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
2,447
py
# coding: utf-8 import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class DeleteAppVersionResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and th...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
0f5b526ae48d78b8406f0db682c36822b46482bf
5cb8f3b4db461de2e84084a6f0992955c2ee10ce
/txtrader/rtx.py
3fb95d5dffab7f0b5662f99bf368b1c63a40fdfa
[ "MIT" ]
permissive
dadaxiaoxiaobaba/txTrader
5bf134210da839adf7b6c15f1de365e4cd80facd
9ad2afd37c81c2408632b3b5f7dfa4749586e6a6
refs/heads/master
2020-12-30T10:12:24.467623
2017-07-11T19:44:07
2017-07-11T19:44:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
34,031
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ rtx.py ------ RealTick TWS API interface module Copyright (c) 2015 Reliance Systems Inc. <mkrueger@rstms.net> Licensed under the MIT license. See LICENSE for details. """ import sys import mx.DateTime import types import datetime from uuid import uuid1 i...
[ "mkrueger@rstms.net" ]
mkrueger@rstms.net
14698f5e208340300976981461b72d99053e4499
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/django_django/django-master/django/views/static.py
479c59cac6c4165e1254d9a1815a56860e62d1b5
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
5,108
py
""" Views and functions for serving static files. These are only to be used during development, and SHOULD NOT be used in a production setting. """ import mimetypes import os import posixpath import re import stat from urllib.parse import unquote from django.http import ( FileResponse, Http404, HttpResponse, HttpR...
[ "659338505@qq.com" ]
659338505@qq.com
2e95ff4a78787e3e931b2ee198077cfb1abc5341
05d9291f8d02bb98a3d2a3c0b49858f1f2e6d834
/quick_service/quick_service/doctype/production/production.py
6a2cdf6f6856a35d314f88b03bcf957788dac9f7
[ "MIT" ]
permissive
leaftechnology/quick_service
b1e6fa4012bcc75816cd4e895e4f9e6b9105c2a8
69ff87a33b3f135b7d12977c3e95727243b2f740
refs/heads/master
2023-05-04T05:30:22.610405
2021-05-22T05:12:41
2021-05-22T05:12:41
301,926,248
1
1
null
null
null
null
UTF-8
Python
false
false
17,180
py
# -*- coding: utf-8 -*- # Copyright (c) 2020, jan and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe import json from frappe.model.document import Document from erpnext.stock.stock_ledger import get_previous_sle from frappe.utils import cint, flt fr...
[ "jangeles@bai.ph" ]
jangeles@bai.ph
f05d2c71ce52bff9656cf0194c7cf3ab35c12a64
630bf979e99b1b0e14f7ffdc65c18ba470ce2fe0
/neuclease/dvid/annotation.py
7422c0b6646b86f1ad03bcd07db19fd449660caa
[ "BSD-3-Clause" ]
permissive
y2mk1ng/neuclease
0384294259aa592b4e58de2df959f3a3d9ca1338
02e36d7d76859d391c080e2a8690d1f80247f308
refs/heads/master
2022-12-14T02:15:44.251677
2020-09-16T20:57:11
2020-09-16T20:57:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
69,848
py
import os import sys import logging import warnings from itertools import chain from functools import partial from collections import namedtuple import ujson import numpy as np import pandas as pd from dvidutils import LabelMapper from . import dvid_api_wrapper, fetch_generic_json from .common import post_tags from ...
[ "bergs@janelia.hhmi.org" ]
bergs@janelia.hhmi.org
40ccd51ea1d674209bf46cbea751869f208c6df8
52b5773617a1b972a905de4d692540d26ff74926
/.history/coins_20200608093830.py
2b449f4937abf589c1a075934356f3463068e9c8
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
178
py
def change(amount,coins): count = 0 for i in range(len(coins)): times = coins[i] / amount print(times) change(5,[1,2,5])
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
7dd7acbd17cee8b4c05c6f118abbd654aca5e2d0
797f21680bf51656db629691cc667a4ddae7a513
/final_exams/heroes_of_code_and_logic_VII.py
758594704481bd5724bca88a701dcec11bcbc266
[]
no_license
yordan-marinov/fundamentals_python
48f5ab77814fddc6d3cb5a8d4b5e14f1eebf1298
e1e9544d02be99640623317fadee810b503e7d9f
refs/heads/master
2023-01-24T04:59:48.140176
2020-12-14T14:21:49
2020-12-14T14:21:49
309,784,119
1
0
null
null
null
null
UTF-8
Python
false
false
2,679
py
def get_heroes_data() -> dict: number_heroes = int(input()) heroes_data = {} for _ in range(number_heroes): data = input().split() hero_name = data[0] hit_points = int(data[1]) mana_points = int(data[2]) heroes_data[hero_name] = { "hp": hit_points, ...
[ "jordanmarinov8@gmail.com" ]
jordanmarinov8@gmail.com
ff370e3deef1c238a5a0f662f60617ff309c9fb4
52b5773617a1b972a905de4d692540d26ff74926
/.history/movingMedian_20200630225631.py
8bf0eecde0b2a7ea0cd4d0c81ed465699b4c24f6
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
112
py
def MovingMedian(arr): answer = [] window = arr[0] for i in range print(MovingMedian([3,1,3,5,10,6,4,3,1]))
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
1e21179f0570aa693579e6491ffaf4b3e2c88bff
b844c72c394b13d9ed4f73222a934f962d6ff187
/src/structures/program.py
f7b7a6f7418d7d3bc1faf0ca35d1146a66d15fcf
[]
no_license
curtisbright/sagesat
b9b4c9180c75ce8574217058ffa4e121163ccf36
8fe52609ab6479d9b98a1e6cf2199a4f12c27777
refs/heads/master
2021-01-01T17:52:01.288449
2015-08-19T18:14:26
2015-08-19T18:14:26
41,425,883
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
''' Created on Oct 17, 2014 @author: ezulkosk ''' class Program(object): ''' classdocs ''' def __init__(self, ast): ''' Constructors ''' self.ast = ast self.bools = { } self.graphs = { } def toStr(self, indent): res = "Program\n" ...
[ "ezulkosk@gsd.uwaterloo.ca" ]
ezulkosk@gsd.uwaterloo.ca
5f1c39b7f1a0f726f7dcc29c7018a74e5f080035
609eb72e6f9fefe18ebe806c2aed24bb5b0562c1
/apps/invoices/models.py
f0acc13e1d3d4a681f55e66650461091b02f2bd6
[ "MIT" ]
permissive
PocketGM/django-htk
68b0f780e9f748932e857bf66f3e0ffdf9fb2fa2
371ce2c68bc825df174e11d0f6f4c489a8184d9f
refs/heads/master
2020-12-27T15:26:31.946007
2014-12-12T10:45:45
2014-12-12T10:45:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,266
py
from django.conf import settings from django.core.urlresolvers import reverse from django.db import models from htk.apps.invoices.constants import * from htk.apps.invoices.utils import compute_invoice_code from htk.fields import CurrencyField from htk.utils.enums import enum_to_str class BaseInvoice(models.Model): ...
[ "jontsai@jonathantsai.com" ]
jontsai@jonathantsai.com
4bd8dd1ae4d0a490aba2aeb6656b3246b7aa3b32
9d278285f2bc899ac93ec887b1c31880ed39bf56
/ondoc/doctor/migrations/0225_merge_20190314_1713.py
b3a7b682746a743fbde3d1c7d89eac3c2c5f43b0
[]
no_license
ronit29/docprime
945c21f8787387b99e4916cb3ba1618bc2a85034
60d4caf6c52a8b70174a1f654bc792d825ba1054
refs/heads/master
2023-04-01T14:54:10.811765
2020-04-07T18:57:34
2020-04-07T18:57:34
353,953,576
0
0
null
null
null
null
UTF-8
Python
false
false
286
py
# Generated by Django 2.0.5 on 2019-03-14 11:43 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('doctor', '0224_auto_20190314_1709'), ('doctor', '0223_providersignuplead_matrix_lead_id'), ] operations = [ ]
[ "navneetsingh@docprime.com" ]
navneetsingh@docprime.com
c35aa7b06fb0de485363edc1da75caeecd3bf974
9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612
/exercises/1901050046/d11/mymodule/main.py
3607d2c0e686c773d0b1336d3c3af49404d9e679
[]
no_license
shen-huang/selfteaching-python-camp
e8410bfc06eca24ee2866c5d890fd063e9d4be89
459f90c9f09bd3a3df9e776fc64dfd64ac65f976
refs/heads/master
2022-05-02T05:39:08.932008
2022-03-17T07:56:30
2022-03-17T07:56:30
201,287,222
9
6
null
2019-08-08T15:34:26
2019-08-08T15:34:25
null
UTF-8
Python
false
false
867
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import yagmail import getpass import requests import stats_word from pyquery import PyQuery #提取文章正文 r = requests.get('https://mp.weixin.qq.com/s/pLmuGoc4bZrMNl7MSoWgiA') document = PyQuery(r.text) content = document('#js_content').text() #统计词频 result = stats_word.stats_te...
[ "2470962+srvz@users.noreply.github.com" ]
2470962+srvz@users.noreply.github.com
47e2512f693b8d7dae3919a19c1129913658adac
2aace9bb170363e181eb7520e93def25f38dbe5c
/build/idea-sandbox/system/python_stubs/-57053121/scipy/stats/mvn.py
4839dbc5f44d33ff30f8a051e8b11af29844004e
[]
no_license
qkpqkp/PlagCheck
13cb66fd2b2caa2451690bb72a2634bdaa07f1e6
d229904674a5a6e46738179c7494488ca930045e
refs/heads/master
2023-05-28T15:06:08.723143
2021-06-09T05:36:34
2021-06-09T05:36:34
375,235,940
1
0
null
null
null
null
UTF-8
Python
false
false
3,653
py
# encoding: utf-8 # module scipy.stats.mvn # from C:\Users\Doly\Anaconda3\lib\site-packages\scipy\stats\mvn.cp37-win_amd64.pyd # by generator 1.147 """ This module 'mvn' is auto-generated with f2py (version:2). Functions: value,inform = mvnun(lower,upper,means,covar,maxpts=d*1000,abseps=1e-06,releps=1e-06) value,in...
[ "qinkunpeng2015@163.com" ]
qinkunpeng2015@163.com
3df813b7b10c86143253c4d824e3408615ad7b62
5141a9446464e03df639093bb75307c3a421084b
/sim/materials/pitch/segment_03/pitch_handlers.py
edc792cea7b2c4d034c339a6744fc4dab648d58e
[]
no_license
GregoryREvans/sim
b32faaa4ec0288dfc03d33e27a46971c30bf6c33
d9be48232c41365759d551137786627cff140abc
refs/heads/master
2022-02-26T15:54:15.807251
2022-02-10T13:51:19
2022-02-10T13:51:19
248,852,915
0
0
null
null
null
null
UTF-8
Python
false
false
4,623
py
import evans from sim.materials.pitch.segment_03.pitches import ( voice_1_chord_1, voice_1_chord_2, voice_1_chord_3, voice_1_chord_4, voice_1_chord_5, voice_1_chord_6, voice_1_chord_7, voice_1_chord_8, voice_2_chord_1, voice_2_chord_2, voice_2_chord_3, voice_2_chord_4, ...
[ "gregoryrowlandevans@gmail.com" ]
gregoryrowlandevans@gmail.com
03b959614e50f787f0f04938891a9d27ef1ec31b
c50e7eb190802d7849c0d0cea02fb4d2f0021777
/src/storage-blob-preview/azext_storage_blob_preview/tests/latest/test_storage_sas_scenarios.py
7fe8ebfd5f1fd7662ee08735a0b96f88a2c80fb6
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/azure-cli-extensions
c1615b19930bba7166c282918f166cd40ff6609c
b8c2cf97e991adf0c0a207d810316b8f4686dc29
refs/heads/main
2023-08-24T12:40:15.528432
2023-08-24T09:17:25
2023-08-24T09:17:25
106,580,024
336
1,226
MIT
2023-09-14T10:48:57
2017-10-11T16:27:31
Python
UTF-8
Python
false
false
7,018
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ "noreply@github.com" ]
Azure.noreply@github.com
c0aeb537a3746a1fd86d34cb9b84507d15349fce
527fd39d3a1555800c2c32025fdd15fd86ba6672
/make_Flexible_Finction/args.py
0c2e15b007ee07cc6e3d18abdd7e1d7b7d6597f0
[]
no_license
rohanwarange/Python-Tutorials
cfd39551f7ff62bd032946976ba3820474e42405
53d8fb226f94d027ae7999f9678697206d37d83a
refs/heads/master
2023-06-18T10:45:36.884324
2021-07-07T17:44:22
2021-07-07T17:44:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
def total(a,b): return a+b print(total(5,5)) # *args def total(*args): print(args) total=0 for num in args: total+=num return total print(total(1,2,3,4,5))
[ "rohanwarange24@gmail.com" ]
rohanwarange24@gmail.com
4cd3d45d04bbde67e61a64cad5efbb27ea26f331
8a41a7f9340cfa784cb36d35dca1ecb1630e4097
/Programming/Python/dict_practice/Dictionaries_Ordered.py
daef72a4b09a83b3aa461282c1f773d366a4206e
[]
no_license
anishst/Learn
02e6b6cce43cf21621d328ef0fc25168267a9a3d
a1aed8b78b19acdb23e20be57b67fb242e0aefc5
refs/heads/master
2022-05-13T10:17:40.293640
2022-03-30T12:44:21
2022-03-30T12:44:21
173,595,812
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
from collections import OrderedDict d = OrderedDict() d['foo'] = 1 d['bar'] = 2 d['spam'] = 3 d['groom'] = 4 for key in d: print(key,d[key]) import json print(json.dumps(d))
[ "sebastian_anish@bah.com" ]
sebastian_anish@bah.com
52b7b2f5dcb464cd81400a0fb5ba7962dfdc5ca5
a03a7935a191d63bee76fd3b85a61ee27f98904a
/src/visitpy/visit_utils/setup.py
3e5361e0abaa404122a4e29ab1228fc6a4e762b9
[]
no_license
cchriste/visit
57091c4a512ab87efd17c64c7494aa4cf01b7e53
c72c413f571e56b52fb7221955219f11f4ba19e3
refs/heads/master
2020-04-12T06:25:27.458132
2015-10-12T15:41:49
2015-10-12T15:41:49
10,111,791
5
1
null
null
null
null
UTF-8
Python
false
false
3,130
py
#***************************************************************************** # # Copyright (c) 2000 - 2015, Lawrence Livermore National Security, LLC # Produced at the Lawrence Livermore National Laboratory # LLNL-CODE-442911 # All rights reserved. # # This file is part of VisIt. For details, see https://visit.llnl...
[ "bonnell@18c085ea-50e0-402c-830e-de6fd14e8384" ]
bonnell@18c085ea-50e0-402c-830e-de6fd14e8384
fe14c9a96e8cc5ceb988566f3f44b607c74ee60f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03729/s464510871.py
1871472a58b9eb44569fe01d1ae8219a23ea2c08
[]
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
206
py
def main(): s1,s2,s3 = map(str,input().split()) ans = False if s1[len(s1)-1] == s2[0]: if s2[len(s2)-1]==s3[0]: ans = True print("YES" if ans else "NO") if __name__ == '__main__': main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
cc0c913331abe5f50e3e501719d521e817e06232
915865db25d918a4b2c3296aaa702fedf784b042
/experiments/amplitude/filters_and_envelope.py
7fc2b2a7fdaa51ea790575b8d8a11459ab693256
[]
no_license
nikolaims/pi_nfb
f456484683f31986d12f659ee2a9227a51d5edf4
789ad0e20fac7f8d0843b5c3af834e23dcc65e33
refs/heads/master
2020-04-05T08:09:23.416703
2017-07-25T08:55:32
2017-07-25T08:55:32
81,811,536
0
0
null
null
null
null
UTF-8
Python
false
false
1,404
py
import pylab as plt from scipy.signal import * from utils.data.loaders import get_ideal_signal, load_feedback, get_signal from utils.filters import magic_filter_taps, min_phase_magic_filter from utils.sinbase import get_base from itertools import combinations import numpy as np n = 10000 n_components = 50 fs = 250 ban...
[ "smtnm@ya.ru" ]
smtnm@ya.ru
df9acff7102ba7093d1df918c8721d0bccd54c52
89ad82bfa5bb3aa3312c815f4199c88e12345974
/test/test_ifc_checker_checkplan.py
49cf0d81acc925c49a8f75cc27b0302c48ded0e7
[]
no_license
lucaslmmanoel/python-api-client
020f55251af5d86a895740d806618ba94f1863b0
49dbabfddb576d3b816c84d86f5c1f080f553704
refs/heads/master
2021-02-15T22:45:14.735020
2020-03-04T14:02:29
2020-03-04T14:02:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,110
py
# coding: utf-8 """ BIMData API BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501 The version of the OpenAPI document: v1 Contact: contac...
[ "infra@bimdata.io" ]
infra@bimdata.io
01c8ccbe9e6889846c28217f8e9266445fb7c747
4d0eae8dc3c7dabe2ff79fd8ad035be056423ac7
/weixincl/weixincl/apps/weixin/urls.py
beb633d21134a141c05983baea470dfeeeaf34ee
[ "MIT" ]
permissive
lionsin/weixincl
2cdb83e3e596c7fe168b31ed6f747715f7919024
e02f342b00eaea2704a34ca889903747b0fbb167
refs/heads/master
2020-11-30T00:48:33.053979
2019-12-26T14:16:04
2019-12-26T14:16:04
230,254,861
1
2
MIT
2019-12-26T14:54:06
2019-12-26T11:45:49
Python
UTF-8
Python
false
false
928
py
from django.conf.urls import url from weixin import views urlpatterns = [ # Articles/search? url(r"^pcnum/search$", views.PcSearchListView.as_view()), url(r"^collect_list$", views.AddCollectList.as_view()), url(r"^collect_list/clear$", views.ClearCollectList.as_view()), url(r"^collect_list/delete$"...
[ "=" ]
=
f85c12fb2141e0a77279dc13b68fe54489ab674f
a26554d068f564f2811e7774f5df44326dd6978b
/04. FUNCTIONS/04-02-07. Perfect Number.py
e62a4aef3a2b7574dae7bd4f64c0788746f07a0e
[]
no_license
emma-metodieva/SoftUni_Python_Fundamentals_202009
300c8323308af8a7be4efe42836dd6a7866a34b0
5f58a2d565dc4c3bf28330888aa6a2d3b1f8125f
refs/heads/master
2023-01-31T15:28:04.360805
2020-12-12T20:39:17
2020-12-12T20:39:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
437
py
# 04-02. FUNCTIONS [Exercise] # 07. Perfect Number def perfect_number(number): perfect = False sum_divisors = 0 if number > 0: for i in range(1, number): if number % i == 0: sum_divisors += i if sum_divisors == number: perfect = True return perfec...
[ "emma.hristova@gmail.com" ]
emma.hristova@gmail.com
4d8545ec4c2396a029e4df3f841a6a2014442e80
4edbeb3e2d3263897810a358d8c95854a468c3ca
/python3/urllib/urllib1.py
0a567f305976d5ebce0f80d94faea4c0b095cdf5
[ "MIT" ]
permissive
jtraver/dev
f505d15d45b67a59d11306cc7252114c265f388b
2197e3443c7619b856470558b737d85fe1f77a5a
refs/heads/master
2023-08-06T02:17:58.601861
2023-08-01T16:58:44
2023-08-01T16:58:44
14,509,952
0
1
MIT
2020-10-14T18:32:48
2013-11-19T00:51:19
Python
UTF-8
Python
false
false
479
py
#!/usr/bin/env python3 #!/usr/bin/python import urllib.request, urllib.parse, urllib.error def main(): # url = 'https://screener.finance.yahoo.com/stocks.html' url = 'https://screener.finance.yahoo.com/b?sc=&im=&prmin=0&prmax=&mcmin=&mcmax=&dvymin=0&dvymax=&betamin=&betamax=&remin=&remax=&pmmin=&pmmax=&pemin=...
[ "john@aeropsike.com" ]
john@aeropsike.com
e1450556c70c9b5607a7ff05bc84adab3fea1d72
732b0b3e2ae0e6c498cfd2ed893de60b9fc22a32
/tests/integration/actions/collections/test_direct_interactive_ee.py
efb5c28f74c6641d5927e5003b6c20613e8003f6
[ "Apache-2.0" ]
permissive
didib/ansible-navigator
eb7b77c1df30b2e90b663383f0f76b6224e92c02
62fdbd05f25fb2d79133b3ab207f53ac2f2d6d36
refs/heads/main
2023-08-30T06:43:42.876079
2021-10-14T18:42:17
2021-10-14T18:42:17
425,540,819
0
0
Apache-2.0
2021-11-07T15:27:54
2021-11-07T15:27:53
null
UTF-8
Python
false
false
1,161
py
""" collections direct from cli interactive with ee """ import pytest from .base import BaseClass CLI = "ansible-navigator collections --execution-environment true" testdata = [ (0, CLI, "ansible-navigator collections browse window"), (1, ":0", "Browse testorg.coll_1 plugins window"), (2, ":0", "lookup_...
[ "noreply@github.com" ]
didib.noreply@github.com
d2a9cb9e98f386701503627e098a2b8957381254
f2befaae3840bafd181cc712108e3b64caf2696f
/app/portal/horizon/openstack_dashboard/contrib/developer/theme_preview/panel.py
ebe06fc1d16d07e88e901c59aee0806dedf6353f
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
F5Networks/f5-adcaas-openstack
17d5c408d421dcfe542002e1f850b2d9f29f1663
02bd8a606215c0fa08b926bac1b092b5e8b278df
refs/heads/master
2023-08-28T12:09:54.972191
2022-08-12T02:03:43
2022-08-12T02:03:43
164,592,273
4
23
Apache-2.0
2022-08-12T02:03:44
2019-01-08T07:40:35
Python
UTF-8
Python
false
false
779
py
# Copyright 2015 Cisco Systems, Inc. # Copyright (c) 2016 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
[ "a.zong@f5.com" ]
a.zong@f5.com
f98206a5f823d8106d69712bbbda48934f3bb4dd
64bf39b96a014b5d3f69b3311430185c64a7ff0e
/intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_policy_rule.py
f12064beb3988ec10b30bd46e8aa3e14b27fa81a
[ "MIT", "GPL-3.0-only" ]
permissive
SimonFangCisco/dne-dna-code
7072eba7da0389e37507b7a2aa5f7d0c0735a220
2ea7d4f00212f502bc684ac257371ada73da1ca9
refs/heads/master
2023-03-10T23:10:31.392558
2021-02-25T15:04:36
2021-02-25T15:04:36
342,274,373
0
0
MIT
2021-02-25T14:39:22
2021-02-25T14:39:22
null
UTF-8
Python
false
false
45,525
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: (c) 2017, F5 Networks Inc. # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- module: bigip_policy_rule short...
[ "sifang@cisco.com" ]
sifang@cisco.com
ff2b2b75ab60f2bcdf63d75afe4f428eebcd8f6a
4488e3c26de4291da447d8251c491b43cb810f7c
/orgstruct_partner_zip/__openerp__.py
a3cafaa4ab0bc9f4d686889567eae43e20dccf4d
[]
no_license
smart-solution/odoo-crm-80
b19592ce6e374c9c7b0a3198498930ffb1283018
85dfd0cc37f81bcba24d2a0091094708a262fe2c
refs/heads/master
2016-09-06T06:04:35.191924
2015-07-14T12:48:28
2015-07-14T12:48:28
33,174,511
1
0
null
null
null
null
UTF-8
Python
false
false
1,426
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
[ "fabian.semal@smartsolution.be" ]
fabian.semal@smartsolution.be
3a53cb314b58082e61aced67aaaa888078c41c10
4349c9bea560b094c9c84540b539b612bef40953
/subliminal/plugins/Subtitulos.py
bcb26d7660b42c8945d9ef49c23251f6c806f8e1
[]
no_license
fgel/subliminal
456c263603cbe5143e6b6343930222ece9c465dc
3cf265f6c978506d02e74c87cadd0a8e6c6419fe
refs/heads/master
2021-01-18T09:21:04.687551
2011-11-11T19:37:19
2011-11-11T19:37:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,288
py
# -*- coding: utf-8 -*- # # Subliminal - Subtitles, faster than your thoughts # Copyright (c) 2008-2011 Patrick Dessalle <patrick@dessalle.be> # Copyright (c) 2011 Antoine Bertin <diaoulael@gmail.com> # # This file is part of Subliminal. # # Subliminal is free software; you can redistribute it and/or modify it under # ...
[ "diaoulael@gmail.com" ]
diaoulael@gmail.com
6ec582b45c915e09dd744f84899c6718fc1c86f7
f6c6e0ebc18b7b1a28c23367f62c960e86194c88
/fileIO/hdf5/backup/plot_h5.py
0190bfb940e43963a0d6738e3a4fb4c64a2e2b2f
[]
no_license
TheGrim1/python_work
9316d6fbb71a4be9bd901f104e939949dfd91174
5b34277aed4c06b62276644160e0aa97a4260233
refs/heads/master
2021-01-11T13:54:54.366575
2019-03-12T12:38:39
2019-03-12T12:38:39
94,876,671
0
0
null
null
null
null
UTF-8
Python
false
false
2,279
py
from __future__ import print_function # home: /data/id13/inhouse2/AJ/skript/fileIO/hdf5/open_h5.py # global imports import h5py import sys, os import matplotlib.pyplot as plt import time # local imports from open_h5 import open_h5 def plot_h5(data, index=0, title = "Title"): dimension =...
[ "opid13@nanofocus.esrf.fr" ]
opid13@nanofocus.esrf.fr
bca28e38fcd7944d329ae326037eaa937382d563
032144d039ead151804d56910a4059d0fc48c374
/civpy/structures/node_load.py
f1c958aa95696c84c41c95e1f4f0d620e2bcf427
[ "BSD-3-Clause" ]
permissive
mpewsey/civpy
038f5bd4a22971864cceb7c4f9568fdcca40a147
bbf74b1c04ca9f7604831f5280cc80d796240e67
refs/heads/master
2022-02-26T06:45:40.087975
2019-05-05T04:48:47
2019-05-05T04:48:47
170,751,326
16
3
BSD-3-Clause
2022-02-11T02:30:16
2019-02-14T20:09:32
Python
UTF-8
Python
false
false
5,178
py
""" Copyright (c) 2019, Matt Pewsey """ import weakref import numpy as np __all__ = ['NodeLoad'] class NodeLoad(np.ndarray): """ A class representing a load applied to a node. Parameters ---------- node : str The name of the node to which the load will be applied. fx, fy, fz : float...
[ "mattpewsey@gmail.com" ]
mattpewsey@gmail.com
7996b0260e16f6a5f2b53bf673c0e97d691983cd
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/39/usersdata/136/13246/submittedfiles/dec2bin.py
f1bd3e0804d034f78294918ab7ae45017384299e
[]
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
144
py
n = int(input("Digite um número decimal:")) i = 0 j = 1 d = n%2 while n>0: d = n%2 n = n/2 i = i+(d*j) j = j*10 print("%d"%i)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
e499d64a713706ac756077b6e2c5e825b687d3c7
ff941fe046a593189050b6fdf77d44ade0925e8a
/lesson_python_basics/default_parameters2.py
7a862b12f45c6e47912aa620b568a03c7691b53e
[]
no_license
hamk-webdev-intip19x6/petrikuittinen_assignments
c0dd02d3465ebf29f4387ab2805b12858c22110b
68dc154fbc571d8bc85f8eec0130b49e143c1e51
refs/heads/master
2021-11-11T04:08:45.963836
2021-10-04T15:47:03
2021-10-04T15:47:03
233,399,492
0
9
null
null
null
null
UTF-8
Python
false
false
858
py
def ask(question, choices, correct, retries=2): i = 1 print(question) for c in choices: print(i, c) i += 1 while retries>0: try: guess = int(input("?")) except ValueError: continue if guess==correct: print("right") b...
[ "pkuittinen@ubuntupetrikuittinen.xbp5jv35e4rujjrlarqjj32eqf.fx.internal.cloudapp.net" ]
pkuittinen@ubuntupetrikuittinen.xbp5jv35e4rujjrlarqjj32eqf.fx.internal.cloudapp.net
1b7ef58ff701c085ead9ee493e21e53abfca2806
250b997d715c168315a927e28124cf24c77048c0
/python3基础/9.Python修炼第九层/day9预习/11 生产者消费者模型.py
c20f15d6206f6793cd0c499148df156b6e894097
[]
no_license
cuitianfeng/Python
c78077e5dcad01ee5fe44c0aa8b61bbc2fa388cf
9c9f10f13311116ce0bc60ec128f765ff2ca3078
refs/heads/master
2023-01-10T23:25:57.158141
2020-11-17T15:39:36
2020-11-17T15:39:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,299
py
# from multiprocessing import Process,Queue # import time,os # def producer(q,name): # for i in range(3): # time.sleep(1) # res='%s%s' %(name,i) # q.put(res) # print('\033[45m<%s> 生产了 [%s]\033[0m' %(os.getpid(),res)) # # # def consumer(q): # while True: # res=...
[ "zhang.hongyang@mydreamplus.com" ]
zhang.hongyang@mydreamplus.com
56e5c49696fd2ab9d295abcdc27255368e6e7461
ea83d172b211dad5a5d3680a537e4d2d538f42d9
/week2_priority_queues_and_disjoint_sets/1_make_heap/test_build_heap_cases.py
a7a62dbb8dc4ded4e681d2d59664d2f5a4b798b0
[]
no_license
FluffyFu/UCSD_Algorithms_Course_2
9e17e696be14b70da0d221802e4fb8527aeab0aa
f56aeee174f89cebffe5df6abb3930bda1fd4709
refs/heads/master
2022-12-07T00:38:28.499483
2020-08-27T15:39:36
2020-08-27T15:39:36
285,307,911
0
0
null
null
null
null
UTF-8
Python
false
false
561
py
from build_heap import build_heap with open('tests/04') as f: n = int(f.readline()) data = list(map(int, f.readline().split())) with open('tests/04.a') as f: n_swaps = int(f.readline()) results = [] for line in f.readlines(): results.append(tuple(map(int, line.split()))) my_results = bui...
[ "fluffyfu400@gmail.com" ]
fluffyfu400@gmail.com