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
7e3544a76de5495c3cd0761fe45aa1f6c3227d1c
d66818f4b951943553826a5f64413e90120e1fae
/hackerearth/Algorithms/Foo and Exams/test.py
5f769f75d7e391b7e97605e6f823c1e48e0947d1
[ "MIT" ]
permissive
HBinhCT/Q-project
0f80cd15c9945c43e2e17072416ddb6e4745e7fa
19923cbaa3c83c670527899ece5c3ad31bcebe65
refs/heads/master
2023-08-30T08:59:16.006567
2023-08-29T15:30:21
2023-08-29T15:30:21
247,630,603
8
1
MIT
2020-07-22T01:20:23
2020-03-16T06:48:02
Python
UTF-8
Python
false
false
548
py
import io import unittest from contextlib import redirect_stdout from unittest.mock import patch class TestQ(unittest.TestCase): @patch('builtins.input', side_effect=[ '2', '2 2 2 2 10', '2 3 5 7 1000', ]) def test_case_0(self, input_mock=None): text_trap = io.StringIO() ...
[ "hbinhct@gmail.com" ]
hbinhct@gmail.com
9cf33f7b6e47a4d3933a7bb52923ed6a13dbdcbb
7b437e095068fb3f615203e24b3af5c212162c0d
/enaml/wx/wx_factories.py
ff75d3f1abc7037597e7f21f73d30b03aa6bd316
[ "BSD-3-Clause" ]
permissive
ContinuumIO/enaml
d8200f97946e5139323d22fba32c05231c2b342a
15c20b035a73187e8e66fa20a43c3a4372d008bd
refs/heads/master
2023-06-26T16:16:56.291781
2013-03-26T21:13:52
2013-03-26T21:13:52
9,047,832
2
3
null
null
null
null
UTF-8
Python
false
false
4,135
py
#------------------------------------------------------------------------------ # Copyright (c) 2013, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------------------------------...
[ "sccolbert@gmail.com" ]
sccolbert@gmail.com
d1989cdd6717ce76b1db0189d8bdca041eb9cf69
c99427245fdb9cb3f1d9f788963759664885b6ec
/tests/models/test_driver_response.py
7811b95f8930a672138a5f21d99db91fb41da588
[]
no_license
QualiSystems/cloudshell-shell-connectivity-flow
98cf33e49fbdef147e37dbda0179b76400492e36
c2a1bb8589b25a62dd7c20f7ef35c7f2f8d5aa1c
refs/heads/master
2023-08-22T22:48:28.051220
2023-08-17T18:04:19
2023-08-17T18:27:45
218,023,805
0
1
null
2023-08-17T18:27:46
2019-10-28T10:42:09
Python
UTF-8
Python
false
false
1,468
py
import pytest from cloudshell.shell.flows.connectivity.models.driver_response import ( ConnectivityActionResult, DriverResponseRoot, ) @pytest.mark.parametrize( ("success", "msg"), ((True, "success msg"), (False, "error msg")) ) def test_connectivity_action_result(success, msg, action_model): if succ...
[ "saklar13@gmail.com" ]
saklar13@gmail.com
c3112deb23ba50edf3fb5f4abc9447ee7a5e1ffb
818432c7fdf26abff9f3988ce5f3ef419564b062
/ReferentialGym/modules/batch_reshape_repeat_module.py
a15d557a40e4740ab5170269046558e9154f9e4d
[ "MIT" ]
permissive
mk788/ReferentialGym
3f0703d4def489354278bba642e79d3b5bac5db2
afe22da2ac20c0d24e93b4dbd1f1ad61374d1a6c
refs/heads/master
2023-03-16T01:32:21.826448
2021-03-03T12:41:42
2021-03-03T12:41:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,760
py
from typing import Dict, List import torch import torch.nn as nn import torch.optim as optim from .module import Module def build_BatchReshapeRepeatModule(id:str, config:Dict[str,object], input_stream_keys:List[str]) -> Module: return BatchReshapeRepea...
[ "denamganai.kevin@gmail.com" ]
denamganai.kevin@gmail.com
957af4ae3ebfa8a436ddd99b94dbc339d8387feb
5c964389074a95f166ae682c4196226d46adec09
/leet390.py
c99f7a2a8947a85ff5ce8cd45f7c710cb89f3da7
[]
no_license
shach934/leetcode
0a64e851be1419f19da8d2d09294f19758b355b8
59de9ba6620c64efbd2cc0aab8c22a82b2c0df21
refs/heads/master
2023-01-12T01:48:31.877822
2020-11-16T20:48:37
2020-11-16T20:48:37
306,147,305
0
0
null
null
null
null
UTF-8
Python
false
false
1,385
py
390. Elimination Game There is a list of sorted integers from 1 to n. Starting from left to right, remove the first number and every other number afterward until you reach the end of the list. Repeat the previous step again, but this time from right to left, remove the right most number and every other number fro...
[ "tjukid@gmail.com" ]
tjukid@gmail.com
d01231c94199e4348df604a2592dd5e6dfabe359
eddb777e95b6c6baa413fd049f959ab593de5041
/src/main/python/bedk/simpleEventExample.py
596b022b83c7b74cbf21aba5cb4fbb85ca16b057
[]
no_license
jdgwartney/sandbox
bfb641b448b2ffb0e0446cdd942165c7501abd8e
62f7a3a034a73de938c9f241638ff1170373e932
refs/heads/master
2020-05-16T23:35:38.215681
2014-03-31T14:16:45
2014-03-31T14:16:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
667
py
#!/usr/bin/env python3 from boundary.api.event import createEvent from boundary.api.event import getEvent myApiHost = 'api.boundary.com' myOrganizationID = '3ehRi7uZeeaTN12dErF5XOnRXjC' myApiKey = 'ARI0PzUzWYUo7GG1OxiHmABTpr9' myFingerprintFields = '@title' myTitle = 'My shiny new event' # # Create a new boundary ...
[ "davidg@boundary.com" ]
davidg@boundary.com
6895b4868d46ed8ceb2a03fcedf4563bbb31f208
b9f4e78555a2644c56fd6cd1ac82c5b729875d70
/atomic_utils.py
0185009c1bda6c267a8d78bbd7ad7a75f4bd5877
[]
no_license
taiyan33/elegant-concurrency-lab
7be31a6f6c49c33f25e6cc02c1a19d0a1dc71a8b
781800eaf3149643178e0df3a41f6b9fcf0e6cec
refs/heads/master
2020-04-21T07:59:46.085819
2017-06-11T05:17:06
2017-06-11T05:17:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,757
py
#!/usr/bin/env python import requests from bs4 import BeautifulSoup PYCON_TW_ROOT_URL = 'https://tw.pycon.org/' # conform accessing only its frame def query_text(url): return requests.get(url).text def parse_out_href_gen(text): # soup is bs4.BeautifulSoup # a_tag is bs4.element.Tag soup = Beau...
[ "mosky.tw@gmail.com" ]
mosky.tw@gmail.com
7add687cf561df1746688e09b316cec08365024c
5c84ae48b34b5e2bd67c5301cd81f0de9da7decd
/core/__init__.py
9cb75c21bccc21b70930c052672ca9546c1d30bf
[]
no_license
makesaturdays/saturdays.class
00a575620d7e162f7f4de981209265396676683d
031bda06aced31cd13c87f25928ff93e25be826f
refs/heads/master
2021-01-12T10:12:23.570143
2017-01-12T20:05:52
2017-01-12T20:05:52
76,386,728
0
0
null
null
null
null
UTF-8
Python
false
false
490
py
from flask import Flask import os import sys if getattr(sys, 'frozen', False): app_path = os.path.abspath(os.path.dirname(sys.executable)) app_path = app_path.replace('/server.app/Contents/MacOS', '') elif __file__: app_path = os.path.abspath(os.path.dirname(__file__))+'/..' app = Flask(__name__, stati...
[ "phil@boeuf.coffee" ]
phil@boeuf.coffee
3356fa4113a988b211f50570de2a247ca18fa6d1
98bda873a0235ed64ab37cc74bfaa7ead473100b
/89s.py
631c39eef8b2a80ec9628768d7f5a8f303ec363b
[]
no_license
soundarya-1609/set5
d402894733ccef0efb86b6d5c350adfb0012f5bc
3830b336a96086a5f5d0efb8cb320bbc209f1fe3
refs/heads/master
2020-06-14T15:21:05.121760
2019-07-08T08:12:15
2019-07-08T08:12:15
195,039,768
0
0
null
null
null
null
UTF-8
Python
false
false
61
py
puts=input() gets=sorted(puts) print(''.join(map(str,gets)))
[ "noreply@github.com" ]
soundarya-1609.noreply@github.com
960ca7e4a5e66160874bd0b6cb357b1e3ede8b7e
f5d7660f0f2c32e79bb4d65f0f221147c9d3646b
/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_customized_accelerators_operations.py
8ae15f6ab0bfb2ec9ed31a02ee8ec43649dc9855
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
markrzasa/azure-cli-extensions
d6a09d18f818a7795dcfea49fefe3d717d85557a
7ea11998bb4a5f079b090e0fa637bd7b87dc9b7e
refs/heads/main
2023-08-16T18:23:39.143846
2023-08-04T06:08:01
2023-08-04T06:08:01
398,926,578
0
0
MIT
2021-08-23T00:04:04
2021-08-23T00:04:03
null
UTF-8
Python
false
false
38,624
py
# pylint: disable=too-many-lines # 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) AutoRe...
[ "noreply@github.com" ]
markrzasa.noreply@github.com
d7adeb2560642c4a30f71925b7ad592a459f774d
2eccd1b25468e278ba6568063901dfa6608c0271
/assignment5/reducer.py
a2bfeaafa6f2cdc3970fae62fa71a7c5926b98a4
[ "MIT" ]
permissive
IITDU-BSSE06/ads-demystifying-the-logs-Toufiqur0636
089aa00e8dd1c858e01b0945ac24ecc886044f96
4b01a8721b7fc869737572de1bdc155f86397e9b
refs/heads/master
2021-07-26T00:51:26.576645
2017-11-08T06:58:52
2017-11-08T06:58:52
109,025,731
0
0
null
null
null
null
UTF-8
Python
false
false
170
py
#!/usr/bin/python import sys path_map = dict() for line in sys.stdin: path = line.strip() path_map[path] = path_map.get(path, 0) + 1 print len(path_map)
[ "noreply@github.com" ]
IITDU-BSSE06.noreply@github.com
a8aa733cd8ee2d48a463b17928cdb8c8623b6a9f
6c285510932df0477ae33752d0f7c3b153a462c7
/examples/pygmsh/screw.py
5143666808bc7f6013b3294f50bc69d90c78fa8a
[ "MIT" ]
permissive
kebitmatf/meshzoo
4b24a223daadb9c057abb2b083cf401c74220072
6c7ac99af2c7c0673d69b85bd3330ee9a9b67f90
refs/heads/master
2020-12-02T17:46:29.592835
2017-04-06T10:17:20
2017-04-06T10:17:20
96,425,485
1
0
null
2017-07-06T12:00:25
2017-07-06T12:00:25
null
UTF-8
Python
false
false
869
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # import pygmsh as pg import numpy as np def create_screw_mesh(): geom = pg.Geometry() # Draw a cross. poly = geom.add_polygon([ [0.0, 0.5, 0.0], [-0.1, 0.1, 0.0], [-0.5, 0.0, 0.0], [-0.1, -0.1, 0.0], [0.0, -0.5, ...
[ "nico.schloemer@gmail.com" ]
nico.schloemer@gmail.com
93b81ba56da6268cbd01cb00ed76b8d353f62f83
94460fe9a2df490b1763f60b25b26bce5d3d5940
/EyePatterns/clustering_algorithms/affinity_propagation.py
b987e9dbb65634f5c650b49c7269067f11f622a3
[ "MIT" ]
permissive
Sale1996/Pattern-detection-of-eye-tracking-scanpaths
1711262280dde728e1b2559e9ca9f9f66d3d514f
15c832f26dce98bb95445f9f39f454f99bbb6029
refs/heads/master
2022-12-09T03:01:12.260438
2020-08-27T11:38:42
2020-08-27T11:38:42
290,264,718
1
0
null
null
null
null
UTF-8
Python
false
false
989
py
# from work L Frey, Brendan J., and Delbert Dueck. "Clustering by passing messages between data points." science 315.5814 (2007): 972-976 # https://science.sciencemag.org/content/315/5814/972 import numpy as np import sklearn.cluster class AffinityPropagation: def __init__(self, affinity='precomputed', damping=0...
[ "ftnmejl96@gmail.com" ]
ftnmejl96@gmail.com
347fedbdef33c7456662ebee31abe968b83b35a9
505343f6ace00d22f8753c1a943a5794a619e698
/katas/Python/7 kyu/Last 541629460b198da04e000bb9.py
e5417442445b5919eba81b62a2941374fb315ad6
[]
no_license
bullet1337/codewars
7652e50bf768bc47976a9124dd98b93602d4d458
ba7f13ddd766158b41e036dae5d6b15f7f08761a
refs/heads/master
2020-03-27T05:04:03.751302
2019-04-30T17:45:39
2019-04-30T17:45:39
145,991,995
1
0
null
null
null
null
UTF-8
Python
false
false
146
py
# https://www.codewars.com/kata/541629460b198da04e000bb9 def last(*args): return args[-1][-1] if isinstance(args[-1], (list, str)) else args[-1]
[ "alichek95@mail.ru" ]
alichek95@mail.ru
6483bf1d9e0ab9d094eeb3e3abb6169b01a6ab06
74649c1220c68ad0af79e420d572e3769fcd7a53
/mlprodict/onnxrt/ops_cpu/op_negative_log_likelihood_loss.py
aca354dbbd58eebedc07f69186c63df0d5149f30
[ "MIT" ]
permissive
sdpython/mlprodict
e62edcb428700cb2c4527e54e96431c1d2b36118
27d6da4ecdd76e18292f265fde61d19b66937a5c
refs/heads/master
2023-05-08T10:44:30.418658
2023-03-08T22:48:56
2023-03-08T22:48:56
112,469,804
60
13
MIT
2023-04-19T01:21:38
2017-11-29T11:57:10
Python
UTF-8
Python
false
false
3,472
py
""" @file @brief Runtime operator. """ import numpy from ._op import OpRun def _compute_negative_log_likelihood_loss(x, target, weight=None, reduction=b'mean', ignore_index=None): """ Modified version of `softmaxcrossentropy.py <https://github.com/onnx/onnx/blob/m...
[ "noreply@github.com" ]
sdpython.noreply@github.com
783c38fd2518fc737458e6c949ea4c94fda25305
a598604583977761b57ba88dd34455d7127876ec
/frb/scripts/image.py
6e189c8c6588927cfbe005667e43d85e94a7c53c
[ "BSD-3-Clause" ]
permissive
FRBs/FRB
b973cd3d72489fe1f8e7957d6f29f5c657faf4a3
ef68b9a9fbb6d042b7a8c6c8818d55668d7e8639
refs/heads/main
2023-08-04T15:00:52.591942
2023-08-02T13:36:44
2023-08-02T13:36:44
85,193,203
52
26
BSD-3-Clause
2023-08-02T13:36:46
2017-03-16T12:26:19
Jupyter Notebook
UTF-8
Python
false
false
2,077
py
#!/usr/bin/env python """ Script generate an image of an FRB """ from __future__ import (print_function, absolute_import, division, unicode_literals) from IPython import embed def parser(options=None): import argparse # Parse parser = argparse.ArgumentParser(description='Script to make a quick image figur...
[ "xavier@ucolick.org" ]
xavier@ucolick.org
55e6c8bae8bfe8625f52f2a79caa71ab90ae8587
aa0f29e5b6832ab36f440f964b403712b2312fa8
/lab/1/lab1.py
2df7edbd876b74984911220aa1ab34efcadc1885
[]
no_license
zweed4u/Embedded-Systems-Design-II
d8d3f608a77ba6919ca2cb692832a60400498265
c525d481f51c7b6d6fdbbd111b0211c6a24d2af1
refs/heads/master
2021-05-11T16:02:42.067488
2018-04-20T18:49:34
2018-04-20T18:49:34
117,721,976
0
0
null
null
null
null
UTF-8
Python
false
false
7,533
py
#!/usr/bin/python """ Zachary Weeden CPET-563 Lab 1 January 23, 2018 """ import os import sys import math from PyQt4 import QtGui, QtCore hw_flag = 0 # 0 = read from file class Encoders: def __init__(self, hw_flag): """Constructor for Encoder class""" self.hw_flag = hw_flag self.contents...
[ "zdw7287@rit.edu" ]
zdw7287@rit.edu
879fdbd096ab73377632692fa3713686b5f68cc5
eb87c8b1ce8591d207643d3924b7939228f1a4fe
/conformance_suite/try_except_catch_final_some_exn.py
5b54eda44dcdf5cc6bfd75757a4335e5e481a7c3
[]
no_license
brownplt/insta-model
06543b43dde89913c219d476ced0f51a439add7b
85e2c794ec4b1befa19ecb85f2c8d2509ec8cf42
refs/heads/main
2023-08-30T19:06:58.083150
2023-05-03T18:53:58
2023-05-10T22:29:18
387,500,638
5
0
null
2022-04-23T23:06:52
2021-07-19T14:53:09
Racket
UTF-8
Python
false
false
248
py
# try_except_catch_final_some_exn.py # This should pass. # This should terminate. def f(): try: raise Exception("foo") except Exception: return 2 else: return 3 finally: return 42 assert f() is 42
[ "lukuangchen1024@gmail.com" ]
lukuangchen1024@gmail.com
5ffb069ccecb464878b86b09af6fa21444860185
55c93a864428a26c50f43f97f6834fd27dd0210f
/ufs/interface/fviews.py
7d66e6beeb80fab20f0625975ae173a0a48604b0
[]
no_license
sun3shines/ufs
12a635b67a7c39eb56d2e691038f4690c390a72c
7fa7ebdefc245dceca4a1e7f394cc6e5640b71b7
refs/heads/master
2021-01-18T23:49:50.292917
2016-03-28T22:30:45
2016-03-28T22:30:45
53,540,708
0
0
null
null
null
null
UTF-8
Python
false
false
2,247
py
# -*- coding: utf-8 -*- import json from cloudcommon.common.bufferedhttp import jresponse from cloudcommon.common.common.swob import Response from ufs.utils.path import path2o from ufs.interface.fst import FSt def get(req): param = json.loads(req.body) path = path2o(param.get('path')) s = FSt(path) ...
[ "sun__shines@163.com" ]
sun__shines@163.com
ae870734f57f441d0112a8161a621c42015ae31e
c5d87c7f25e3fe9b17c1e88993b0ed6831e52acb
/N_NumpyDemo/NumpyDemo6.py
fb9ff8771e9c2fc83e38fa3c8989b3ca34a5357e
[]
no_license
GIS90/python_base_use
e55d55f9df505dac45ddd332fb65dcd08e8e531f
7166ca85975bb7c56a5fbb6b723fd8300c4dd5d1
refs/heads/master
2020-04-02T08:33:49.461307
2018-10-23T03:33:41
2018-10-23T03:33:41
154,249,857
1
1
null
null
null
null
UTF-8
Python
false
false
541
py
# -*- coding: utf-8 -*- """ ------------------------------------------------ describe: ------------------------------------------------ """ import numpy as np arr1 = np.arange(0, 60, 10).reshape(-1, 1) arr2 = np.arange(0, 5) print arr1.shape, arr2.shape c = arr1 + arr2 # a = arr2.repeat(6, axis=0) # ...
[ "mingliang.gao@qunar.com" ]
mingliang.gao@qunar.com
6f83cb13a9d62661ea4d59a51c90be850916f02b
7cc86034b847fcf239ef8184aa7c062b35f28d08
/venv/bin/python-config
41e0320aea18839a8bdd9f35b36863b3e87a44ea
[]
no_license
asimonia/headlines
a6b480e6d1a029d1890f4abd8153fdfbc3cbfcb8
43cde9690d8669b82c024788392551ed07a7763b
refs/heads/master
2021-01-17T16:09:27.467950
2016-07-20T00:05:12
2016-07-20T00:05:12
63,735,341
0
0
null
null
null
null
UTF-8
Python
false
false
2,367
#!/Users/alexsimonian/Desktop/Example/chapter5/venv/bin/python import sys import getopt import sysconfig valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', 'ldflags', 'help'] if sys.version_info >= (3, 2): valid_opts.insert(-1, 'extension-suffix') valid_opts.append('abiflags')...
[ "alex.simonian@gmail.com" ]
alex.simonian@gmail.com
a6e7e3c5d2a02e001d1ac9086bb44e9729676268
d8edd97f8f8dea3f9f02da6c40d331682bb43113
/dataset_real_64.py
28aa5d22487066f0e4d762be774ef937a5159856
[]
no_license
mdubouch/noise-gan
bdd5b2fff3aff70d5f464150443d51c2192eeafd
639859ec4a2aa809d17eb6998a5a7d217559888a
refs/heads/master
2023-07-15T09:37:57.631656
2021-08-27T11:02:45
2021-08-27T11:02:45
284,072,311
0
0
null
null
null
null
UTF-8
Python
false
false
5,404
py
import uproot3 as uproot import torch import logging import numpy as np import sklearn.preprocessing as skp class Data(): def __init__(self): self.file = uproot.open('reconstructible_mc5a02_rconsthits_geom.root') self.n_pot = 990678399 self.n_bunches = self.n_pot / 16e6 self.cdc_tre...
[ "m.dubouchet18@imperial.ac.uk" ]
m.dubouchet18@imperial.ac.uk
40085d38f183f16add546c39dfb8ee6928005916
a1ce33bcd9bde0e044c88dbd591774952f0469dc
/unidade-2/media-aluno/media_aluno.py
bea1a5d91fd8c970eea39a344127e9e33f268034
[]
no_license
juliafealves/tst-lp1
91420522fcc9e3f66ad451aa4c500f5df24e51b7
1f324d66429a95796e02f718f0cd35dd7e7bd4a2
refs/heads/master
2021-09-07T11:08:34.420830
2018-02-22T02:40:50
2018-02-22T02:40:50
107,728,163
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
# coding: utf-8 # Média do Aluno # (C) 2017, Júlia Alves / UFCG Programação 1 peso1 = 2.0 peso2 = 3.0 peso3 = 5.0 # Entrada dos dados referente as notas. nota1 = float(raw_input()) nota2 = float(raw_input()) nota3 = float(raw_input()) # Calculando a média media = (nota1 * peso1 + nota2 * peso2 + nota3 * peso3) / 10 ...
[ "juliafealves@gmail.com" ]
juliafealves@gmail.com
8e2ec3b08050f7aff3bcbed97a713ccfccce0ee8
68c22afafa16c53ed61874ae13463d4b6831a695
/examples/addresses.py
7ac7986a76fe4cc8b1687b3b2aca93acf8ac9b7c
[ "MIT" ]
permissive
wielandgmeiner/embit
edc7500bfca15472a21e3df80c961efc740614bd
caebc88c749994f2eb704231ba20c7fa10d70d4d
refs/heads/master
2020-12-19T21:57:42.027714
2020-01-23T22:35:49
2020-01-23T22:35:49
235,864,966
0
0
null
2020-01-23T19:00:23
2020-01-23T19:00:23
null
UTF-8
Python
false
false
1,761
py
from embit import script from embit import ec from embit.networks import NETWORKS from binascii import unhexlify, hexlify def main(): # all from the same private key prv = ec.PrivateKey.from_wif("L2e5y14ZD3U1J7Yr62t331RtYe2hRW2TBBP8qNQHB8nSPBNgt6dM") pub = prv.get_public_key() print("Public key:") ...
[ "snigirev.stepan@gmail.com" ]
snigirev.stepan@gmail.com
11e304d584b00995908893ca77719edba9e57c24
c9500ad778b8521aaa85cb7fe3239989efaa4799
/plugins/connectwise/icon_connectwise/actions/get_company/__init__.py
38402cddccf5e64d5a3112fcab87cae6b54464fb
[ "MIT" ]
permissive
rapid7/insightconnect-plugins
5a6465e720f114d71b1a82fe14e42e94db104a0b
718d15ca36c57231bb89df0aebc53d0210db400c
refs/heads/master
2023-09-01T09:21:27.143980
2023-08-31T10:25:36
2023-08-31T10:25:36
190,435,635
61
60
MIT
2023-09-14T08:47:37
2019-06-05T17:05:12
Python
UTF-8
Python
false
false
71
py
# GENERATED BY KOMAND SDK - DO NOT EDIT from .action import GetCompany
[ "noreply@github.com" ]
rapid7.noreply@github.com
88a3377b8c3c25f15919717ee9a53cf77e86855d
528da3624bb03db22c4b97870de0bfd0205c5908
/CODETOOL/search.py
3a911964be67b136b0e44d85164102610be01966
[ "MIT" ]
permissive
ihgazni2/shproperty
e4f6e011a1fe03695ffd1f5933deb638a481490e
fc994d8228d20d00dbdc060941fce81a56bba673
refs/heads/master
2020-04-13T02:22:45.413052
2019-09-19T09:26:48
2019-09-19T09:26:48
162,900,767
0
0
null
null
null
null
UTF-8
Python
false
false
2,052
py
import sys import os import subprocess import shlex def pipe_shell_cmds(shell_CMDs): ''' shell_CMDs = {} shell_CMDs[1] = 'netstat -n' shell_CMDs[2] = "awk {'print $6'}" ''' len = shell_CMDs.__len__() p = {} p[1] = subprocess.Popen(shlex.split(shell_CMDs[1]), stdout=subproce...
[ "terryinzaghi@163.com" ]
terryinzaghi@163.com
972c53032105db50a0fd1fedbf84567a14467411
bc441bb06b8948288f110af63feda4e798f30225
/influxdb_service_sdk/model/cmdb_extend/subsystem_dependency_pb2.pyi
dbfaa61f6584c29813088feb8ee25ba84930e6f6
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
false
4,360
pyi
# @generated by generate_proto_mypy_stubs.py. Do not edit! import sys from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, ) from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC...
[ "service@easyops.cn" ]
service@easyops.cn
578bad733cfd9b560cf88476f651afaf40a28da1
68d38b305b81e0216fa9f6769fe47e34784c77f2
/auto_generate_scripts/server/script_generator/pcadvisor_co_uk_generator.py
981b44af8e52193c9704c79a9c7b23127324867a
[]
no_license
ADJet1437/ScrapyProject
2a6ed472c7c331e31eaecff26f9b38b283ffe9c2
db52844411f6dac1e8bd113cc32a814bd2ea3632
refs/heads/master
2022-11-10T05:02:54.871344
2020-02-06T08:01:17
2020-02-06T08:01:17
237,448,562
0
0
null
null
null
null
UTF-8
Python
false
false
3,669
py
# -*- coding: utf8 -*- import sys sys.path.append("../") from server.gen_spiders import * code_fragments = [] spa = SpiderGenerator() return_code = spa.gen_import() code_fragments.append(return_code) return_code = spa.gen_init(spider_name = "Pcadvisor_co_ukSpider", spider_type = "AlaSpider", allowed_domains = "'pcad...
[ "liangzijie1437@gmail.com" ]
liangzijie1437@gmail.com
a746e06768428227791bfa75408479c3b234fd09
7246faf9a222269ce2612613f58dc5ff19091f10
/프로그래머스/프로그래머스 - 단어 변환.py
dec405ba20f05310d904b9b961854c446de5742f
[]
no_license
gusdn3477/Algorithm_Study
87a2eb72a8488d9263a86db70dadc7944434d41d
3fefe1dcb40122157845ffc542f41cb097711cc8
refs/heads/main
2023-08-30T12:18:21.412945
2021-09-28T13:00:11
2021-09-28T13:00:11
308,364,230
0
1
null
null
null
null
UTF-8
Python
false
false
662
py
from collections import deque def BFS(begin, target, words): queue = deque() queue.append((begin, 0)) visited = [0] * len(words) while queue: a = queue.popleft() if a[0] == target: return a[1] for i in range(len(words)): ct = 0 for j in ra...
[ "gusdn3477@naver.com" ]
gusdn3477@naver.com
4f151b429aa31d456b30c77bec814947baa83c6c
711756b796d68035dc6a39060515200d1d37a274
/output_cog_tags/initial_8783.py
7c63375310d5ee9587704b93f42ed2a9a09dec62
[]
no_license
batxes/exocyst_scripts
8b109c279c93dd68c1d55ed64ad3cca93e3c95ca
a6c487d5053b9b67db22c59865e4ef2417e53030
refs/heads/master
2020-06-16T20:16:24.840725
2016-11-30T16:23:16
2016-11-30T16:23:16
75,075,164
0
0
null
null
null
null
UTF-8
Python
false
false
4,334
py
import _surface import chimera try: import chimera.runCommand except: pass from VolumePath import markerset as ms try: from VolumePath import Marker_Set, Link new_marker_set=Marker_Set except: from VolumePath import volume_path_dialog d= volume_path_dialog(True) new_marker_set= d.new_marker_set marker_set...
[ "batxes@gmail.com" ]
batxes@gmail.com
10d5e08df192fe85faf6f5f7bed5a0067b89a403
cea03b578f0f6207afe5056611090848ab76bd23
/subject/qiefenhuisu.py
6167beacc3d6e3371e6602df397b51dc1892fe58
[]
no_license
swq90/stock
fa295f4fa0bf6a4d8afe8a71c02cc54fc7442bcd
a49ae395de82ecdfa38220f4fdbcaf4da6a39719
refs/heads/master
2021-07-14T03:42:21.950897
2020-10-14T11:52:24
2020-10-14T11:52:24
215,325,863
2
0
null
null
null
null
UTF-8
Python
false
false
1,352
py
import pandas as pd from numpy import arange import stock.util.sheep as sheep import stock.limit_up.get_limit_stock as gls from stock.sql.data import save_data,read_data from stock.util.basic import basic start_date='20180101' end_date='20181231' PRICEB='close' def fun1(limit_type='up'): res = pd.DataFrame() #...
[ "shaowenqin620@163.com" ]
shaowenqin620@163.com
7833aa53c04a242bf777342ba9ef4c4e33a99fb4
ef54d37f8a3303013ca7469871a320d303957ed7
/robo4.2/fusion/tests/RIST/API/Deprecated/F172/F172-BB-NegativeTests_DCS.py
640d1047e65082453fc1cf09d069f13ba4ecbabb
[]
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
209
py
admin_credentials = {'userName': 'Administrator', 'password': 'wpsthpvse1'} enclosure_name = "0000A66101" drive_enclosure_name = "0000A66101, bay 7" expected_number_of_DE = 6 expected_number_of_drives = 4
[ "akul@SAC0MKUVCQ.asiapacific.hpqcorp.net" ]
akul@SAC0MKUVCQ.asiapacific.hpqcorp.net
ada7780e5b4601acc875f95342e323451cfa5981
709412f8e5ddd778f7b007ba9a6e1c1dd6924425
/tools/foozzie/v8_foozzie.py
222a3d8cfb2600817275ad9617a56d77dd547a31
[ "BSD-3-Clause", "bzip2-1.0.6", "SunPro" ]
permissive
WilliamVV/v8
f0737c5dfda0e0c11c6fffb735de7dc7d043afc1
2a60fd49db2d787f0dd6a7a731485011ec89d35f
refs/heads/master
2021-04-29T03:45:07.298299
2017-01-04T10:24:48
2017-01-04T10:24:48
78,011,848
1
0
null
2017-01-04T12:00:53
2017-01-04T12:00:52
null
UTF-8
Python
false
false
9,072
py
#!/usr/bin/env python # Copyright 2016 the V8 project authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ V8 correctness fuzzer launcher script. """ import argparse import hashlib import itertools import json import os import re impor...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
45d304fdbcd33ec07e82461e41d163e4105d3a88
1bf9f6b0ef85b6ccad8cb029703f89039f74cedc
/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_bindings_operations.py
a9db1b1704bec066e868d63aacc3d590fdf220d9
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
VSChina/azure-cli-extensions
a1f4bf2ea4dc1b507618617e299263ad45213add
10b7bfef62cb080c74b1d59aadc4286bd9406841
refs/heads/master
2022-11-14T03:40:26.009692
2022-11-09T01:09:53
2022-11-09T01:09:53
199,810,654
4
2
MIT
2020-07-13T05:51:27
2019-07-31T08:10:50
Python
UTF-8
Python
false
false
47,247
py
# pylint: disable=too-many-lines # 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) AutoRe...
[ "noreply@github.com" ]
VSChina.noreply@github.com
2cd03a9d0b16f337862d0fd2c74a686391d89077
71875792ea0e1520e442b37f5296c90e37734581
/Python/0200. Number of Islands.py
0ec08708e2cfcdb2ea99ee06d1076437d79af32c
[ "MIT" ]
permissive
kangqiwang/myLeetcode
401e806fbf43e8c3f2c70a720edfdb4c799ea897
40f6da994e443cd027752bd6f3ab33eb3556a220
refs/heads/master
2023-01-22T15:57:51.257811
2023-01-07T21:33:44
2023-01-07T21:33:44
190,908,551
0
0
null
2022-04-19T10:18:45
2019-06-08T16:11:35
Python
UTF-8
Python
false
false
1,616
py
''' Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water. Example 1: Inp...
[ "kangqiwang@outlook.com" ]
kangqiwang@outlook.com
0bcac2c7b50e1326ff493258771670b5fc8f0a84
6f05f7d5a67b6bb87956a22b988067ec772ba966
/data/train/python/5a641fc39ee81f4a0e98c3bc90fd4dbd69b0a45abase.py
5a641fc39ee81f4a0e98c3bc90fd4dbd69b0a45a
[ "MIT" ]
permissive
harshp8l/deep-learning-lang-detection
93b6d24a38081597c610ecf9b1f3b92c7d669be5
2a54293181c1c2b1a2b840ddee4d4d80177efb33
refs/heads/master
2020-04-07T18:07:00.697994
2018-11-29T23:21:23
2018-11-29T23:21:23
158,597,498
0
0
MIT
2018-11-21T19:36:42
2018-11-21T19:36:41
null
UTF-8
Python
false
false
892
py
def get_class( kls ): '''Get a class by its name''' parts = kls.split('.') module = ".".join(parts[:-1]) m = __import__( module ) for comp in parts[1:]: m = getattr(m, comp) return m def create_view_from_controller(controller): '''Create an instance of a view object for ...
[ "aliostad+github@gmail.com" ]
aliostad+github@gmail.com
e9d36d371082deddb241956d3907c7623414b0f9
60e7738d90ea7151a790a73285382b0c77799262
/p3/Lib/site-packages/pandas/tests/io/conftest.py
828d5d0ccd3c6ee93b6f04c8d67f98ca46907787
[ "MIT" ]
permissive
fpark7/Native2Native
251b3c08af16bbbc4d077840f66aea7acdacc002
1bc3390770ddafbba2e2779ba91998643df6d9ec
refs/heads/master
2021-04-18T21:27:41.378371
2018-03-27T02:47:51
2018-03-27T02:47:51
126,620,375
1
2
MIT
2021-03-19T22:50:00
2018-03-24T16:52:28
Python
UTF-8
Python
false
false
1,827
py
import os import moto import pytest from pandas.io.parsers import read_table HERE = os.path.dirname(__file__) @pytest.fixture(scope='module') def tips_file(): """Path to the tips dataset""" return os.path.join(HERE, 'parser', 'data', 'tips.csv') @pytest.fixture(scope='module') def jsonl_file(): """Pat...
[ "felix.park03@gmail.com" ]
felix.park03@gmail.com
122ca2414bd49a9409a20b2b9f066c334629fc37
ef875440cf82b6eed61bf6d9d0c6acfae5f90ef4
/Assument/4.py
629e385782ecd25815678aa8b3abb8fa849a0121
[]
no_license
Nitesh101/test
5ab9b1e23167f8496d90d15484d57328b7f1430e
4c413b3a056a633c5bcf93ae21c999ff67eeaa95
refs/heads/master
2020-03-29T09:04:32.723099
2018-09-21T09:33:41
2018-09-21T09:33:41
149,740,238
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
val = ([[1,1,1],[2,2,2],[3,3,3]]) lis = [] lis2 = [] lis3 = [] for i in val: lis.append(i[0],) lis2.append(i[1],) lis3.append(i[2],) val = lis,lis2,lis3, print list(val)
[ "m.veeranitesh@gmail.com" ]
m.veeranitesh@gmail.com
eb7db7e616591052961f8a747a23784258e3bead
f90dee93b042b689f44ebb53c77585c9174b937a
/btrack/optimise/lineage.py
542696c43aeb1be8affd8559934066979cdbfbc3
[ "MIT" ]
permissive
serenidpity/BayesianTracker
a2e654986d6b13e4187e1092b9d1b9d6d0d968d3
e02a24140e14c79c91222c3c5e91f8658e7e68d3
refs/heads/master
2021-03-28T04:03:08.414405
2020-02-19T09:44:27
2020-02-19T09:44:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,958
py
#!/usr/bin/env python #------------------------------------------------------------------------------- # Name: BayesianTracker # Purpose: A multi object tracking library, specifically used to reconstruct # tracks in crowded fields. Here we use a probabilistic network of # information to perform...
[ "code@arlowe.co.uk" ]
code@arlowe.co.uk
86c4d1abbd5ea480d106fd2383b2979cd8424d29
9d8f241e4e851f0fe71655d2b698c3d40feab98a
/examples/naive/env_mcarrier_maddpg.py
e0e28ddaff736f3a84abf5d2cbb3be2b3c3c7a3f
[ "MIT" ]
permissive
StepNeverStop/machin
c30c15bbcc38dde06eac57e7ff562753b8927f6b
3caecb6ea7b02a9687281e2270577a6ed92c5dd8
refs/heads/master
2022-11-24T14:43:20.041102
2020-07-21T13:08:19
2020-07-21T13:08:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
809
py
from .env_walker_ddpg import t, nn, Actor class Critic(nn.Module): def __init__(self, agent_num, state_dim, action_dim): super(Critic, self).__init__() self.agent_num = agent_num self.state_dim = state_dim self.action_dim = action_dim st_dim = state_dim * agent_num ...
[ "hanhanmumuqq@163.com" ]
hanhanmumuqq@163.com
1b12c35220e59e832d67c3ed0c724b894ec10460
a91b397711e2c5334f58ba1d466cf6b58dc694f2
/code_python/lib/null/models.py
a5574f86629b367b095aaa709afec768f8c646ab
[]
no_license
aleksejs-fomins/mesoscopic-functional-connectivity
96f68a379ea8c2abd60441d70e18227e4c3e05cb
e17dd3367cdebc3e43eb981b4868c3a148038af8
refs/heads/master
2022-04-29T18:06:59.667225
2022-04-22T17:06:47
2022-04-22T17:06:47
199,410,941
0
0
null
null
null
null
UTF-8
Python
false
false
2,175
py
import numpy as np def cycle(arr, nStep): return np.hstack([arr[-nStep:], arr[:-nStep]]) def mix(x, y, frac): return (1 - frac) * x + frac * y def conv_exp(data, dt, tau): nTexp = int(5*tau / dt) t = dt * np.arange(nTexp) exp = np.exp(-t/tau) exp /= np.sum(exp) nTData = data.shape[0] ...
[ "aleksejs.fomins@uzh.ch" ]
aleksejs.fomins@uzh.ch
fa10a6c2cd264d81b7fc334f6127a0a158f47c5f
4148260054c2cf4605dacb8bdef3605c82eca470
/temboo/Library/Foursquare/Checkins/DeleteComment.py
9e5e663d00f40a17986521496cd444730514c959
[]
no_license
wimsy/actuarize-web
0f23d5f00afe3d36d430621cdb497d2e64998416
5f43af3019da6fb08cafeec9ff0a89df5196b864
refs/heads/master
2021-03-12T19:38:21.887681
2012-12-19T01:13:50
2012-12-19T01:13:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,128
py
# -*- coding: utf-8 -*- ############################################################################### # # DeleteComment # Removes a comment to a specified check-in. # # Python version 2.6 # ############################################################################### from temboo.core.choreography import Choreogra...
[ "mike.wimsatt@gmail.com" ]
mike.wimsatt@gmail.com
1f8a4937050b87f6ab02f889118465b3ecda37fb
faa0ce2a95da958be3bfb171cdff29eeb43c3eb6
/py-exercises/JulieTestModule/characters/base.py
dafaa1a45e64b9d51460a9bd19e5725b9ce466a8
[]
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
1,026
py
import random import time class Character: def __init__(self, name, health, power, armor, evade, coincount): self.name = name self.health = health self.power = power self.armor = armor self.evade = evade self.coincount = coincount def alive(self): return...
[ "chancecordelia@gmail.com" ]
chancecordelia@gmail.com
7ad3646b0c2f153e45d005befda60c71338878c3
872f78956f18b124e96b8c6851c7817c2e9147dc
/colcon_core/__init__.py
3b52c58444fb1b14c9a1ea166cd845acaa848f99
[ "Apache-2.0" ]
permissive
yossioo/colcon-core
01ad8f1840c0e677701152961687f9ddf3cd3e2c
8effab0f840063881fe9e0355a500e025d73b9c2
refs/heads/master
2020-06-09T15:41:12.244298
2019-06-28T14:47:11
2019-06-28T14:47:11
193,461,562
0
0
Apache-2.0
2019-06-24T08:04:31
2019-06-24T08:04:30
null
UTF-8
Python
false
false
107
py
# Copyright 2016-2018 Dirk Thomas # Licensed under the Apache License, Version 2.0 __version__ = '0.3.22'
[ "dirk-thomas@users.noreply.github.com" ]
dirk-thomas@users.noreply.github.com
97a21525f5b4a28d110146eb0d697b52c9cc2677
a82dfb61b17fa66b9c75fe871401cff77aa77f56
/utils/bng_species_reader_py/bng_species_reader_example.py
5a4dbc089b21feb77a4d7cb8784ed5b265f9810a
[ "MIT" ]
permissive
mcellteam/mcell
49ca84048a091de8933adccc083d31b7bcb1529e
3920aec22c55013b78f7d6483b81f70a0d564d22
refs/heads/master
2022-12-23T15:01:51.931150
2021-09-29T16:49:14
2021-09-29T16:49:14
10,253,341
29
12
NOASSERTION
2021-07-08T01:56:40
2013-05-23T20:59:54
C++
UTF-8
Python
false
false
5,253
py
""" This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize cop...
[ "ahusar@salk.edu" ]
ahusar@salk.edu
5f75eeaac0ec27d418823af144bf4f4b7adfbfde
d326cd8d4ca98e89b32e6a6bf6ecb26310cebdc1
/rosalind/algorithmic/heights/bins/main.py
e97c45fba0ff73e7675f4be83c03b4383f888eca
[]
no_license
dswisher/rosalind
d6af5195cdbe03adb5a19ed60fcbf8c05beac784
4519740350e47202f7a45ce70e434f7ee15c6afc
refs/heads/master
2021-08-09T02:58:17.131164
2017-11-12T01:26:26
2017-11-12T01:26:26
100,122,283
0
0
null
null
null
null
UTF-8
Python
false
false
643
py
import sys from rosalind.common import util if len(sys.argv) != 2: print "usage: python bins.py <filename>" sys.exit(1) with open(util.find_file(sys.argv[1]), "r") as fp: fp.readline() fp.readline() A = map(int, fp.readline().split()) B = map(int, fp.readline().split()) def binary_search(A,...
[ "big.swish@gmail.com" ]
big.swish@gmail.com
69743c1ebc9817aa39bb9ba21b9445b0b75e7f04
2c4df5b105ccf11102d7611523fdc713a2dbad2e
/mmdet2trt/converters/plugins/create_carafefeaturereassemble_plugin.py
7f800021d2efd7eb535dba98c3c4305c4d7d82d0
[ "Apache-2.0" ]
permissive
DataXujing/mmdetection-to-tensorrt
6b809c9039d3f3d6554298bafc3f5c88e4140183
7d49d2aa35b966f67a7e21b4c59dc8924c825548
refs/heads/master
2023-03-28T17:53:21.496289
2021-03-14T16:18:23
2021-03-14T16:18:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,592
py
import numpy as np import os import os.path as osp from .globals import dir_path import ctypes ctypes.CDLL(osp.join(dir_path, "libamirstan_plugin.so")) import tensorrt as trt def create_carafefeaturereassemble_plugin(layer_name, scale_factor, ...
[ "streetyao@live.com" ]
streetyao@live.com
caf3403ade329d54b5b29acf0025bdafafa475d9
f9bfad89ef87a171cfffab2eba9a1ae96886518d
/manipulation/grip/freetabletopplacement.py
7467caec7fba59e5f0a17754e4a4a56b02c5b620
[]
no_license
wanweiwei07/pyhiro
2663f0c9febc9a00da54d3d26e2b00ba758868e0
60e24c28a6b39621a235187483d9a13cbbffe987
refs/heads/master
2022-02-04T03:31:23.728440
2022-01-10T11:26:51
2022-01-10T11:26:51
60,758,849
7
4
null
null
null
null
UTF-8
Python
false
false
24,782
py
#!/usr/bin/python import os import MySQLdb as mdb import numpy as np from manipulation.grip.robotiq85 import rtq85nm from panda3d.bullet import BulletWorld from panda3d.bullet import BulletDebugNode from panda3d.core import * from shapely.geometry import LinearRing from shapely.geometry import Point from shapely.geom...
[ "wanweiwei07@gmail.com" ]
wanweiwei07@gmail.com
b021d9ec2c2516c3b8a4d02a66baf7ed888c2433
5f7225e40f34668c93935ef1e003629f28856030
/mlu/metrics/text/cider/cider_coco.py
60bc7517bd2022263a948f1391a7f0f7e32ad79f
[ "MIT" ]
permissive
Labbeti/MLU
33dd639e134f9eeca6609c1533c7936b8f823111
91aa907a3f820e53902578c3d0110fe9a01c88e7
refs/heads/master
2023-05-23T14:50:23.438152
2021-06-14T10:55:24
2021-06-14T10:55:24
320,558,953
2
0
null
null
null
null
UTF-8
Python
false
false
8,466
py
""" Microsoft COCO caption metric 'CIDER'. Code imported from : https://github.com/peteanderson80/coco-caption/blob/master/pycocoevalcap/cider/cider_scorer.py and https://github.com/peteanderson80/coco-caption/blob/master/pycocoevalcap/cider/cider.py Authors : Ramakrishna Vedantam <vrama91@vt.edu> and Tsung-Yi Li...
[ "etienne.labbe31@gmail.com" ]
etienne.labbe31@gmail.com
7f5464dccd50c6e491579e18aadd00d40c17fa86
25872e1ba4f86cbbf77d0130f341b21e5dd9e692
/LetterCombinationsOfAPhoneNumber.py
a161dcb8f22d6177e26dc50a95632fe67acae452
[]
no_license
zongxinwu92/leetcode
dc3d209e14532b9b01cfce6d4cf6a4c2d7ced7de
e1aa45a1ee4edaf72447b771ada835ad73e7f508
refs/heads/master
2021-06-10T21:46:23.937268
2017-01-09T09:58:49
2017-01-09T09:58:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
450
py
''' Created on 1.12.2017 @author: Jesse '''''' Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telephone buttons) is given below. Input:Digit string "23" Output: ["ad", "ae", "af", "bd", "be", "bf", "cd", "ce"...
[ "darrencheng0817@gmail.com" ]
darrencheng0817@gmail.com
f217d34a908c4e9257764aa68d23ca1dda940bfe
06e62355e97daacd95d513572f1f7dbd5f73411e
/opt/notebooks/cubic_reg.py
ee2533643f4f56db8d325d72f75fac71bae4f78c
[]
no_license
tt6746690/misc_impl
3a890abab44a79a9e7fdaa1190e8c1bb43b9f7b2
0a6653a66f1fb2590df9d6697e4cd69d32a2baaa
refs/heads/master
2022-11-05T12:51:28.143805
2021-11-15T22:07:44
2021-11-15T22:07:44
217,972,549
0
1
null
2022-10-10T06:42:16
2019-10-28T05:30:45
Jupyter Notebook
UTF-8
Python
false
false
21,042
py
""" This module implements cubic regularization of Newton's method, as described in Nesterov and Polyak (2006) and also the adaptive cubic regularization algorithm described in Cartis et al. (2011). This code solves the cubic subproblem according to slight modifications of Algorithm 7.3.6 of Conn et. al (2000). Cubi...
[ "peiqi1122@gmail.com" ]
peiqi1122@gmail.com
9c20160cd86ef2eab9e2d832cd876611b2e83109
a5455dbb01687ab031f6347306dbb5ccc3c0c162
/第一阶段/day17/day16_exercise/write_number_to_file.py
996500d0100e6d34e65e6e9c88c3f4708a0c4fe4
[]
no_license
zuobing1995/tiantianguoyuan
9ff67aef6d916e27d92b63f812c96a6d5dbee6f8
29af861f5edf74a4a1a4156153678b226719c56d
refs/heads/master
2022-11-22T06:50:13.818113
2018-11-06T04:52:53
2018-11-06T04:52:53
156,317,754
1
1
null
2022-11-22T01:06:37
2018-11-06T03:02:51
Python
UTF-8
Python
false
false
614
py
# write_number_to_file.py # 1. 写程序,让用户输入一系列整数,当输入小于零的数时结束输入 # 1) 将这些数字存于列表中 # 2) 将列表中的数字写入到文件numbers.txt中 # (提示:需要将整数转为字符串或字节串才能存入文件中) L = [] while True: n = int(input("请输入大于0的整数: ")) if n < 0: break L.append(n) print(L) try: f = open('numbers.txt', 'w') # 文本文件方式打开 for n in L: ...
[ "bing@163.com" ]
bing@163.com
d1b9cf401bc46cd2ceebba56153d629bd0c3b9d2
ce196aba0adde47ea2767eae1d7983a1ef548bb8
/T30_turtle-动画指针与小球.py
b195bd3e99eb61a4530e16476d239fafff47cc01
[]
no_license
xiang-daode/Python3_codes
5d2639ffd5d65065b98d029e79b8f3608a37cf0b
06c64f85ce2c299aef7f9311e9473e0203a05b09
refs/heads/main
2023-08-30T14:59:55.123128
2021-11-03T05:12:24
2021-11-03T05:12:24
333,632,892
0
2
null
null
null
null
UTF-8
Python
false
false
860
py
from turtle import * import math def main(): ht() while True: for q in range(10,1800,1): bgcolor(1,1,1) clear(); tracer(False) a=3.1416*q/1800 xc=300*math.cos(a) yc=300*math.sin(a) width(5);color(0,0,0.5) ...
[ "noreply@github.com" ]
xiang-daode.noreply@github.com
44068c9ca7aa803a1aec9f9cb0b8c2a31bbe15a2
5196ecf41ac6a3de00d49c2039bbbe5efbd4ec03
/examples/datachannel-vpn/vpn.py
b6135ef39c2de05deb39bd2245f0227fcd0f043b
[ "BSD-3-Clause" ]
permissive
ryogrid/aiortc-dc
3962929432610dc2c1834636adc5f27ea8899b92
c24ab64f9a7be66e22d8050fc01f376e55e6f24b
refs/heads/to-make-pip-package-from-master
2020-04-29T20:34:19.367423
2019-05-23T21:32:00
2019-05-23T21:32:00
176,387,482
4
2
BSD-3-Clause
2019-05-21T23:45:06
2019-03-18T23:49:01
Python
UTF-8
Python
false
false
2,758
py
import argparse import asyncio import logging import tuntap from aiortc import RTCPeerConnection, RTCSessionDescription from aiortc.contrib.signaling import add_signaling_arguments, create_signaling logger = logging.Logger('vpn') def channel_log(channel, t, message): logger.info('channel(%s) %s %s' % (channel....
[ "jeremy.laine@m4x.org" ]
jeremy.laine@m4x.org
c2240d2698bafc9c58c54fc94191d0b3c3b71c55
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_074/ch4_2020_03_23_18_35_39_527083.py
fb671b8ed7d25ebe3e4f2fa59642ebc4c3cf9696
[]
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
120
py
def classifica_idade(n): if n<11 return('crianca') elif n>=12 or n<=17 return('adolecente') else return('adulto')
[ "you@example.com" ]
you@example.com
e27f5cd1f09645d1899160104a78f4207462486e
523e065a50ef3374b9e8ebe7033d6d17afc7aa90
/midcli/gui/base/list/list.py
6df21f30cf9bf77424b1f8076e675f5c6da9df8b
[]
no_license
truenas/midcli
b4bfd07046a070ceeaa356115777f9a4d20c2898
bd817940376f93665b25e2c1ce7109b130b9cb67
refs/heads/master
2023-09-01T09:15:54.823487
2023-07-05T11:52:47
2023-07-05T11:52:47
184,088,159
15
3
null
2023-09-08T07:07:53
2019-04-29T14:37:41
Python
UTF-8
Python
false
false
7,160
py
# -*- coding=utf-8 -*- import functools import logging import textwrap from prompt_toolkit.application import get_app from prompt_toolkit.filters import has_focus from prompt_toolkit.key_binding.bindings.focus import focus_next, focus_previous from prompt_toolkit.key_binding.key_bindings import KeyBindings from prompt...
[ "themylogin@gmail.com" ]
themylogin@gmail.com
0135ac0170c8b4311a61bcfd4c1bd13307f3af69
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/nnpalmat.py
a19651f736df66a223d19f2b9213090be6cf71a2
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
64
py
ii = [('WestJIT2.py', 5), ('KirbWPW2.py', 2), ('WestJIT.py', 6)]
[ "varunwachaspati@gmail.com" ]
varunwachaspati@gmail.com
b8ab6496d1c85768d4debbb81e2986d0b25f5fc8
eb3683f9127befb9ef96d8eb801206cf7b84d6a7
/stypy/invokation/type_rules/modules/numpy/core/umath/umath__type_modifiers.py
2943f39687421c6b14318d98c16047974d3deefb
[]
no_license
ComputationalReflection/stypy
61ec27333a12f76ac055d13f8969d3e0de172f88
be66ae846c82ac40ba7b48f9880d6e3990681a5b
refs/heads/master
2021-05-13T18:24:29.005894
2018-06-14T15:42:50
2018-06-14T15:42:50
116,855,812
2
0
null
null
null
null
UTF-8
Python
false
false
643
py
import types from stypy.type_inference_programs.stypy_interface import get_builtin_python_type_instance from stypy.types import union_type from stypy.types.type_containers import set_contained_elements_type class TypeModifiers: @staticmethod def geterrobj(localization, proxy_obj, arguments): ret_type...
[ "redondojose@uniovi.es" ]
redondojose@uniovi.es
7714cc70bd0ac485172a72e223ea11bbb5d361f5
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/arc003/A/4821339.py
0b037c5820bf4f67deb5eafaa1098e8dd9a75a33
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
126
py
N = int(input()) r = input() ans = r.count('A') * 4 + r.count('B') * 3 + r.count('C') * 2 + r.count('D') print(ans / N)
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
f0c2549e125bf1fc1263406b679733026ab1e746
a31de016611f3b4efc7a576e7113cad1a738419b
/2017/pythonchallenge.com/4_dont_try_all_nothings.py
4dbaf632f5fbd4e2db39720b99703034e39fb8a6
[]
no_license
Ing-Josef-Klotzner/python
9d4044d632672fff966b28ab80e1ef77763c78f5
3913729d7d6e1b7ac72b46db7b06ca0c58c8a608
refs/heads/master
2022-12-09T01:40:52.275592
2022-12-01T22:46:43
2022-12-01T22:46:43
189,040,355
0
0
null
2022-12-01T19:52:37
2019-05-28T14:05:16
Python
UTF-8
Python
false
false
1,901
py
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from string import ascii_lowercase, ascii_uppercase, translate, letters, count from time import sleep import urllib, re, collections, webbrowser """ dont try all nothings """ site = "http://www.pythonchallenge.c...
[ "josef.klotzner@gmail.com" ]
josef.klotzner@gmail.com
b7cb69a7ae3d807f31c9d484749aac4d7cde739f
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit_Class1493.py
2e57b83d0b955320875def0b833d775971d43704
[ "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
4,509
py
# qubit number=5 # total number=57 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy as np import networkx as ...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
5ce9115941f2c1b133e442ff12e7cdd880d104d2
0f7610f1aeee514106be411bca3cb47b7a8ae0c1
/python3_cron_scripts/fetch_azure_dns.py
2a0f01bbdb1d649c1b7299bd47b4def26164e916
[ "Apache-2.0" ]
permissive
Righard/Marinus
5b0b42dfaaea06dd6e5461e090009c762b0ae36f
0cdd2f09d06dca39f67e0be23eafd323e987a168
refs/heads/master
2020-04-17T05:38:03.142052
2019-01-16T21:50:10
2019-01-16T21:50:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,326
py
#!/usr/bin/python3 # Copyright 2018 Adobe. All rights reserved. # This file is licensed to you 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 requir...
[ "puhley@adobe.com" ]
puhley@adobe.com
9acdaaea15148bfe4482d27f69f0539f3ca6fafc
486fb5b62c04207effe2ee44c7548b68c56ef53f
/train.py
c1a85ab5be6e7e40d4749a1878cf8a7f0b265570
[ "MIT" ]
permissive
yjxiao/self-critical.pytorch
b3beafd385fc812fdb027d6e19fa9a11d61e0dcf
17ce92054d73ef17feffc1794d9986977a3d7c51
refs/heads/master
2021-01-04T15:42:21.232518
2020-02-27T23:48:57
2020-02-27T23:48:57
240,619,436
1
0
null
2020-02-15T00:01:28
2020-02-15T00:01:27
null
UTF-8
Python
false
false
11,934
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import torch.nn as nn import torch.optim as optim from torch.utils.tensorboard import SummaryWriter import numpy as np import time import os from six.moves import cPickle import traceback from co...
[ "rluo@ttic.edu" ]
rluo@ttic.edu
aec83eb1a9844abfcc246087f28775decbcc16bf
2352bc07e12b0256913559cf3485a360569ccd5e
/Practice/code_class/Crossin-practices/python_weekly_question/prefect_int.py
66a0f3e18e7493c54a2567ed4fc5b551f819386c
[]
no_license
Dis-count/Python_practice
166ae563be7f6d99a12bdc0e221c550ef37bd4fd
fa0cae54e853157a1d2d78bf90408c68ce617c1a
refs/heads/master
2022-12-12T03:38:24.091529
2021-12-22T09:51:59
2021-12-22T09:51:59
224,171,833
2
1
null
2022-12-08T05:29:38
2019-11-26T11:07:00
Jupyter Notebook
UTF-8
Python
false
false
452
py
''' 完美数 ''' # 判断是否为完美数 def perfect_word(n): if n == 1: return True for i in [2,3,5]: # print(type((n/i)*10)) if n//i == n/i: return perfect_word(n//i) return False # 循环 def main(n): count = 0 inc_int = 0 while count < n: inc_int += 1 if perfe...
[ "492193947@qq.com" ]
492193947@qq.com
2e9d56ceb34ad243c718ee39f9acc697ea766881
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p04011/s000567227.py
ba35f79c31fc023898afd28002fc5173cd673492
[]
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
522
py
# 宿泊代の合計金額を求める。 days_of_stay = int(input()) days_of_original_price = int(input()) original_price = int(input()) discount_price = int(input()) # if文の上が、割引適用なし。下が割引適用。 if days_of_stay <= days_of_original_price: total_fee = days_of_stay * original_price print(total_fee) elif days_of_stay > days_of_original_pric...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
28dcbbee9c09173377879aabf5f45bc692c5d6be
a06fd6b7b4e5fc2b1b5a46b4edd20a11f717a5ea
/netbox/extras/webhooks.py
12dc7558b6fd9940c1c07120914806db4bd16a00
[ "Apache-2.0" ]
permissive
feiynagly/netbox
d9be722eaa5021cf39e82c19c3e4562dedd94254
d364bbbaa6ee4f2a19015d07dd0de855628befb4
refs/heads/master
2022-12-04T04:41:29.052349
2021-05-11T07:13:56
2021-05-11T07:13:56
173,664,986
1
1
Apache-2.0
2022-11-22T03:12:55
2019-03-04T03:10:07
Python
UTF-8
Python
false
false
1,881
py
import datetime from django.conf import settings from django.contrib.contenttypes.models import ContentType from extras.constants import OBJECTCHANGE_ACTION_CREATE, OBJECTCHANGE_ACTION_DELETE, OBJECTCHANGE_ACTION_UPDATE from extras.models import Webhook from utilities.api import get_serializer_for_model from .constan...
[ "944867649@qq.com" ]
944867649@qq.com
0fb06c15b5cc0813a56b72ced21962f7979cd904
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_76/834.py
55ec732bc4c284b9f4cf85b24a542c34cacbd5d2
[]
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
1,066
py
f = open('C-small-attempt1.in') of = open('C-small-attempt1.out', 'w') import itertools def xor(x, y): return x^y T = int(f.readline()) for i in range(T): N = int(f.readline()) sean = 0 candies = [int(x) for x in f.readline().split(' ')] for j in candies: rest = candie...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
7b3a6096b27952c7d19a06b04b32a98d16fac53e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03657/s811572946.py
bae8950c3c0dda056eff6b44bb617f6c61353db7
[]
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
222
py
a, b = map(int, input().split()) if a % 3 == 0 or b % 3 == 0: print("Possible") elif a % 3 == 1 and b % 3 == 2: print("Possible") elif a % 3 == 2 and b % 3 == 1: print("Possible") else: print("Impossible")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
333dcd25f27ea6215ef626a1ff12a7817c851250
b018b734af4170d34d28c474f68777597dba29ec
/Financial_Stock_Data_Pipeline/env/bin/f2py3
c4dd21e49b8112e397901ad0cfeec15516daab3a
[]
no_license
abdulkhan94/BigDataTechnology
ae0b7f8c03831f07b791bc5898c2bb18a4c3fec5
7be6d3a13e8fd42d9592d7287d694d507f9070b5
refs/heads/master
2023-02-13T04:07:49.070798
2021-01-11T01:34:51
2021-01-11T01:34:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
291
#!/Users/abdullahkhan/PycharmProjects/CloudKhan/Financial_Stock_Data_Pipeline/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from numpy.f2py.f2py2e import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "abdullahn@gmail.com" ]
abdullahn@gmail.com
71377e99ee7d12253af7aed083a7c7899e89636a
3d7b9a3eba6ca1b8d6b72f71137ca77d0a7aac29
/average_a_whole_num.py
e446ae1bdd9de01b747b249fcc6af1dd9bacb426
[]
no_license
subodhss23/python_small_problems
6127e8779a44c924ef61a94b5f695dd17c55d727
83593459049f26cce535bc1139c3bd22395ca813
refs/heads/master
2023-01-22T21:39:58.734647
2020-12-06T18:13:55
2020-12-06T18:13:55
303,451,150
0
0
null
null
null
null
UTF-8
Python
false
false
353
py
''' create a function that takes a list as an argument and returns True or False depending on whether the average of all elements in the list is a whole number or not. ''' def is_avg_whole(arr): sum = 0 for i in arr: sum+=i avg = sum/len(arr) return avg == int(avg) print(is_avg_whole([1,3]...
[ "subodhss23@gmail.com" ]
subodhss23@gmail.com
65e76ff26e9dfec0fd4cacce834196ee56ba42df
0fccee4c738449f5e0a8f52ea5acabf51db0e910
/genfragments/ThirteenTeV/LQ/LQToCMu_M_1150_TuneCUETP8M1_13TeV_pythia8_cff.py
04c32d2a901b28bd0d7ce2252d746f90b4d8eb1e
[]
no_license
cms-sw/genproductions
f308ffaf3586c19b29853db40e6d662e937940ff
dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4
refs/heads/master
2023-08-30T17:26:02.581596
2023-08-29T14:53:43
2023-08-29T14:53:43
11,424,867
69
987
null
2023-09-14T12:41:28
2013-07-15T14:18:33
Python
UTF-8
Python
false
false
1,148
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import * generator = cms.EDFilter("Pythia8GeneratorFilter", maxeventsToPrint = cms.untracked.int32(1), pythiaPylistVerbosity = cms.untracked.int32(1)...
[ "dnash@cern.ch" ]
dnash@cern.ch
a28cfbfca02fc9d96d59de47e2dd38c9940ab414
43ae032297b492fbdf2df478588d2367f59d0b6b
/1 - Basics/8-forloop.py
b65701f4212e99a32a771d2ea3848bbb76f66272
[]
no_license
thippeswamydm/python
59fa4dbb2899894de5481cb1dd4716040733c378
db03b49eb531e75b9f738cf77399a9813d16166b
refs/heads/master
2020-07-05T06:57:18.575099
2019-10-23T04:30:27
2019-10-23T04:30:27
202,562,414
1
0
null
null
null
null
UTF-8
Python
false
false
786
py
# Describes usage of for loop # for loop can iterate over sequence or sequence like objects # range() is an inbuilt function that returns results over time during iteration # range() returned a sequence in py2.x # USAGE # for item in iterator: # execution block # for item in range(int): # execution block # Varia...
[ "ganeshsurfs@gmail.com" ]
ganeshsurfs@gmail.com
395405a75a84e1fa3afb9fb263e34bd8b0616f3f
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2091/60870/315405.py
fbdbdb50c80181f580f0c551cb9b275d8794fa8a
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
332
py
info = input().split() info = [int(x) for x in info] edge_list = [] for i in range(info[1]): edge = input().split() edge = [int(x) for x in edge] edge_list.append(edge) res = info[0] + info[1] for ch in edge_list: res = res + ch[0] + ch[1] if res == 962686: res = 274 elif res == 985406: res = 38...
[ "1069583789@qq.com" ]
1069583789@qq.com
6c8fa17fbdec7ea61928772adabc2a7e0598298d
340e9825b7d29d83a7434555806aded478ef610a
/Read_Docx.py
5210a07d89120d68144f39f4c5238036f8dafe09
[]
no_license
SamCadet/PythonScratchWork
d1ae202b815e795bc4caf19bfa7cfc1a4a076bb1
07bd3a7bf7fde2d0e1e9b1f7cff1ee6aa128fdc9
refs/heads/main
2023-07-03T02:44:12.006432
2021-07-29T19:37:42
2021-07-29T19:37:42
390,822,759
0
0
null
null
null
null
UTF-8
Python
false
false
348
py
#! python3 # p. 365 import docx def getText(filename): doc = docx.Document(filename) fullText = [] for para in doc.paragraphs: fullText.append(para.text) return '\n'.join(fullText) # p. 366 # To add a double space between paragraphs, change the join() call code from Read_Docx to this: # r...
[ "scadet1@gmail.com" ]
scadet1@gmail.com
d35fb86791c03f2e81ce606325e7d85823146d87
0c1d6b8dff8bedfffa8703015949b6ca6cc83f86
/lib/worklists/operator/CT/v4.0/business/LAN_4+1/WAN_PPPoEIPv4v6_IPTVIPv4v6_SmartTV/script.py
68fc0d760e802e8debe128c8ae7d1efffa0cf9fa
[]
no_license
samwei8/TR069
6b87252bd53f23c37186c9433ce4d79507b8c7dd
7f6b8d598359c6049a4e6cb1eb1db0899bce7f5c
refs/heads/master
2021-06-21T11:07:47.345271
2017-08-08T07:14:55
2017-08-08T07:14:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,640
py
#coding:utf-8 # -----------------------------rpc -------------------------- import os import sys #debug DEBUG_UNIT = False if (DEBUG_UNIT): g_prj_dir = os.path.dirname(__file__) parent1 = os.path.dirname(g_prj_dir) parent2 = os.path.dirname(parent1) parent3 = os.path.dirname(parent2) parent4 = os....
[ "zhaojunhhu@gmail.com" ]
zhaojunhhu@gmail.com
58e9c3350759c23a54b2f632fa9b9135a1095172
148bb379cc10feb9a5a7255a2a0a45e395dd5c95
/backend/appengine/routes/categorias/admin/home.py
9f9fe9fd2d9bafb9f095e5cf3459ab103506151d
[ "MIT" ]
permissive
renzon/fatec-script
84e9aff1d8d8ad0330ab85f940aac334dcdb7f0f
7f32940982ca1be557cddd125b1a8c0873348e35
refs/heads/master
2021-01-22T07:04:09.340837
2014-11-18T12:38:06
2014-11-18T12:38:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,148
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from config.template_middleware import TemplateResponse from tekton import router from gaecookie.decorator import no_csrf from categoria_app import facade from routes.categorias.admin import new, edit def delete(_handler, categoria_id): ...
[ "renzon@gmail.com" ]
renzon@gmail.com
8e6899baac94ad02068af9339a01bb0bfdf1ef78
6df06b8581a29e93f8d375211ec6ac2626839592
/rally/common/db/migrations/versions/2017_08_fab4f4f31f8a_fill_missed_workload_info.py
4b0796ae35a7796e66f4e2a940c85fd7209684eb
[ "Apache-2.0" ]
permissive
openstack/rally
415ed0513ce2a99cdaf0dabc1ae4f14cd200db89
e8613ffeb01f109083f6a75dd148d5a8d37c9564
refs/heads/master
2023-09-04T05:35:11.862008
2023-05-19T21:31:59
2023-05-23T08:09:06
12,645,326
278
291
Apache-2.0
2023-04-22T02:34:29
2013-09-06T13:58:01
Python
UTF-8
Python
false
false
1,036
py
# All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
[ "andr.kurilin@gmail.com" ]
andr.kurilin@gmail.com
5857aa37022ae5fdaa2f7a5f7cb70548cd8f2b05
58cfc4c917bd739861673ce881538433a653f454
/examples/pbc/05-input_pp.py
138a66d117d1dc9222cb726a3daead170e5df52d
[ "BSD-2-Clause" ]
permissive
sunchong137/pyscf_2017
56c837735e45611c1efa0aa0c39d9dbcb4e1d662
0b68299ae6495fc33d879e5471c21b45d01ed577
refs/heads/master
2021-07-06T22:18:31.640601
2017-10-04T01:30:26
2017-10-04T01:30:26
105,618,697
1
0
null
null
null
null
UTF-8
Python
false
false
1,026
py
#!/usr/bin/env python ''' Input pseudo potential using functions pbc.gto.pseudo.parse and pbc.gto.pseudo.load It is allowed to mix the Quantum chemistry effective core potentail (ECP) with crystal pseudo potential (PP). Input ECP with .ecp attribute and PP with .pseudo attribute. See also pyscf/pbc/gto/pseudo/GTH_P...
[ "osirpt.sun@gmail.com" ]
osirpt.sun@gmail.com
464e685ad0f3d58848144bcb4fac33320fefa857
c9cdc07694c4cb60025f7a471d9f7baf06ea48ac
/roc/utils/lyrics_match.py
5e0d6adbf6fa756b0bd006a5754cb890e282beed
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
microsoft/muzic
60d48e562e0c196dd65932c7127801811d8ed2dc
bf469715c07c905d24319c10e9a93c5a7cb04979
refs/heads/main
2023-08-18T08:47:38.831559
2023-08-12T09:58:26
2023-08-12T09:58:26
373,462,930
3,453
327
MIT
2023-09-01T10:29:22
2021-06-03T10:06:54
Python
UTF-8
Python
false
false
4,469
py
import random def check(arr, m, a1, a2, mod1, mod2): n = len(arr) aL1, aL2 = pow(a1, m, mod1), pow(a2, m, mod2) h1, h2 = 0, 0 for i in range(m): h1 = (h1 * a1 + arr[i]) % mod1 h2 = (h2 * a2 + arr[i]) % mod2 seen = dict() seen[(h1, h2)] = [m - 1] for start in rang...
[ "noreply@github.com" ]
microsoft.noreply@github.com
abe0f5b5b6d388c93b5c354fe52a97eee183cba4
dab869acd10a3dc76e2a924e24b6a4dffe0a875f
/Laban/build/bdist.win32/winexe/temp/pandas._sparse.py
f0c47240f7d34327a47feefb2690b93ed480e706
[]
no_license
ranBernstein/Laban
d82aff9b0483dd007e03a06e51f7d635f62ed05d
54c88afa9493deacbdd182904cc5d180ecb208b4
refs/heads/master
2021-01-23T13:17:51.777880
2017-02-14T09:02:54
2017-02-14T09:02:54
25,508,010
3
1
null
2017-02-14T09:02:55
2014-10-21T07:16:01
Tcl
UTF-8
Python
false
false
364
py
def __load(): import imp, os, sys try: dirname = os.path.dirname(__loader__.archive) except NameError: dirname = sys.prefix path = os.path.join(dirname, 'pandas._sparse.pyd') #print "py2exe extension module", __name__, "->", path mod = imp.load_dynamic(__name__, path) ...
[ "bernstein.ran@gmail.com" ]
bernstein.ran@gmail.com
44d1bbc2af444a01ab7986e58f5dcb7d0d358f20
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/helpers/trace.py
fd7a3081f7a34509b19e4db724ac46f12cc8c574
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
8,013
py
"""Helpers for script and condition tracing.""" from __future__ import annotations from collections import deque from collections.abc import Callable, Generator from contextlib import contextmanager from contextvars import ContextVar from functools import wraps from typing import Any, cast from homeassistant.core imp...
[ "noreply@github.com" ]
home-assistant.noreply@github.com
ce7617e91bf4c0dc6cb4457633605de9e5fd5d14
1e43fd5e134157e6f034327ffbf3e6501c67275d
/mlps/core/data/cnvrtr/functions/SISpWC.py
5c3ba39827d1cc7b96ee19a82f398143f7ad5b4c
[ "Apache-2.0" ]
permissive
sone777/automl-mlps
f15780e23142e0f3f368815678959c7954966e71
a568b272333bc22dc979ac3affc9762ac324efd8
refs/heads/main
2023-08-24T10:07:30.834883
2021-11-03T07:41:15
2021-11-03T07:41:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,150
py
# -*- coding: utf-8 -*- # Author : Jin Kim # e-mail : jin.kim@seculayer.com # Powered by Seculayer © 2021 Service Model Team, R&D Center. import json from typing import Tuple from mlps.common.Constants import Constants from mlps.core.data.cnvrtr.functions.SpWCAbstract import SpWCAbstract class SISpWC(SpWCAbstract):...
[ "bmg8551@naver.com" ]
bmg8551@naver.com
3bcfb7964232ab055502d62f65a86a7408a1281d
d9e8b7d5c468b38cdf18cece9dff12ad1188a71b
/Model_Forms/Emp_registration/Employee_registration/Firstapp/admin.py
925012200829375f0a86c3261b63b7c148330078
[]
no_license
Ruchika-Munde/Django_Task
f14e0497a4f8045a68dbe58bbd772abf606369d3
7fa549842a544527b9f78cbfcf52c26dde31463c
refs/heads/master
2022-12-16T17:53:12.577323
2020-09-09T07:34:43
2020-09-09T07:34:43
294,036,604
0
0
null
null
null
null
UTF-8
Python
false
false
218
py
from django.contrib import admin from .models import Employee # Register your models here. class EmployeeAdmin(admin.ModelAdmin): list_display = ['eid','ename','designation','salary'] admin.site.register(Employee)
[ "ruchamunde@gmail.com" ]
ruchamunde@gmail.com
504f496aa083c91ef2d12b8abd0c85d27d16046e
68ea39dd34c1f212c04f7a89b8b81287e33f721d
/build/fbcode_builder/getdeps/builder.py
477564be272e520d2140c3241be85c213aeced16
[ "MIT", "Apache-2.0" ]
permissive
Esri/folly
797ad1ef2c504d4e00a07ea76d31b84db0703dca
3fb0bf3be74ffd9548370c97a704347b0ca1e2cf
refs/heads/master
2023-03-27T13:00:38.492316
2019-09-30T14:55:40
2019-09-30T14:57:25
211,894,753
0
0
Apache-2.0
2019-12-02T13:15:46
2019-09-30T15:39:56
null
UTF-8
Python
false
false
28,392
py
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. from __future__ import a...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
31ac22e94a6cc01be3588a743a788ebfcbbad6af
5df1c192f8a74e8ca28792c2325239b78c22653a
/CashFlows/EaganJones/admin.py
88d242badf9726cb54b20eeed29e4ed1017f0e9c
[]
no_license
knkemree/10_k_cash_flows
8afe1e7463b9970f53624ef47660f06ea3052478
67b9572f3fdab799ff8d84c157f6bd28f0d7b69a
refs/heads/master
2022-12-12T16:36:42.760573
2020-02-17T02:30:38
2020-02-17T02:34:46
241,003,252
0
0
null
2022-12-08T04:26:50
2020-02-17T02:26:05
Python
UTF-8
Python
false
false
490
py
from django.contrib import admin from EaganJones.models import Companies, UserProfile # Register your models here. class CompaniesAdmin(admin.ModelAdmin): list_display = ['companyname', 'cik', 'primarysymbol','created_at' ] list_filter = ['companyname', 'cik', 'primarysymbol'] search_fields = ('companyna...
[ "konakziyaemre@gmail.com" ]
konakziyaemre@gmail.com
14914a3f9661f3552078415483c023d57ca7cde4
9ff696839d88998451f2cb2725a0051ef8642dc0
/karen_test_16760/settings.py
bc1feac08c06ffbf74471bbe35ebf121cd7c16f7
[]
no_license
crowdbotics-apps/karen-test-16760
f67aacf4d07d10c70c4edf77a428dd8e12b4acf7
02492b4531be9561f1a046176918560e248764df
refs/heads/master
2023-05-19T10:52:20.454231
2020-05-08T17:14:02
2020-05-08T17:14:02
262,379,844
0
0
null
2021-06-11T07:19:46
2020-05-08T16:58:28
Python
UTF-8
Python
false
false
5,502
py
""" Django settings for karen_test_16760 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ imp...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
070ac8d6e82a97d09acf77b94879182cf0be41cb
5b5a49643c75aa43d5a876608383bc825ae1e147
/python99/btree/p407.py
da50d0cdce94d8e84f544db6b6ac592ec01b54af
[]
no_license
rscai/python99
281d00473c0dc977f58ba7511c5bcb6f38275771
3fa0cb7683ec8223259410fb6ea2967e3d0e6f61
refs/heads/master
2020-04-12T09:08:49.500799
2019-10-06T07:47:17
2019-10-06T07:47:17
162,393,238
0
0
null
null
null
null
UTF-8
Python
false
false
868
py
from python99.btree.p406 import hbal_tree def minNodes(h): if h == 0: return 0 if h == 1: return 1 return 1 + minNodes(h-1) + minNodes(h-2) def minHeight(n): if n == 0: return 0 return 1 + minHeight(n//2) def maxHeight(n): if n == 1: return 1 if n == 0: ...
[ "ray.s.cai@icloud.com" ]
ray.s.cai@icloud.com
50b6c92b3e7d711f35807917787562435c2e7db1
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p4VQE/R3/benchmark/startQiskit55.py
dd4ea1965707a6f1dc5b831240f39bf9ec9dc38c
[ "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
2,406
py
# qubit number=3 # total number=10 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
b950004786326937d3e02f09bde3a4eab88542c6
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_daintier.py
797ea89f17b1b10c07d5c3e288ebdb54becd1b3f
[ "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
224
py
#calss header class _DAINTIER(): def __init__(self,): self.name = "DAINTIER" self.definitions = dainty self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['dainty']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
75ec16d22ef5a3b1135af39f7205659c506e22b6
59f0fde411ca668b874fa6fa6001069b9146f596
/src/blog/views.py
078fc25eea043597782a68e56aaa8c171eac5a36
[]
no_license
nabilatajrin/django-blog-application
4c256755fc31b41f609b44a5329fb128d46c5fa1
7971f8f7d8b3b442fbd4530bc0f32dff7865adcc
refs/heads/master
2020-12-06T16:09:00.310415
2020-11-03T05:37:34
2020-11-03T05:37:34
232,503,248
0
0
null
2020-01-08T07:24:39
2020-01-08T07:19:38
Python
UTF-8
Python
false
false
405
py
from django.http import Http404 from django.shortcuts import render, get_object_or_404 from .models import BlogPost # Create your views here. def blog_post_detail_page(request, slug): #obj = BlogPost.objects.get(id=post_id) obj = get_object_or_404(BlogPost, slug=slug) template_name = 'blog_post_detail.h...
[ "nabilatajrin@gmail.com" ]
nabilatajrin@gmail.com
025a0f5190bc25975c5983890d97929e6c2e5122
3f763cf893b09a3be562858613c928703ff349e4
/client/verta/verta/_swagger/_public/modeldb/model/ModeldbUpdateExperimentName.py
d45dee38182c3e1e4059f61548f9737e49feaa7f
[ "Apache-2.0" ]
permissive
VertaAI/modeldb
636e46fc025b01a514d599b10e228c8735503357
ec9ac7712500adb13fd815dfd476ce9f536c6921
refs/heads/main
2023-08-31T00:45:37.220628
2023-08-30T18:45:13
2023-08-30T18:45:13
71,305,435
844
142
Apache-2.0
2023-09-14T19:24:13
2016-10-19T01:07:26
Java
UTF-8
Python
false
false
649
py
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT from verta._swagger.base_type import BaseType class ModeldbUpdateExperimentName(BaseType): def __init__(self, id=None, name=None): required = { "id": False, "name": False, } self.id = id self.name = name for k, v in required.items(): i...
[ "noreply@github.com" ]
VertaAI.noreply@github.com
dfc5c38afdf5ed2e69dd273efbbb072ffdb7031a
cb82ff3240e4367902d8169c60444a6aa019ffb6
/python2.7/site-packages/twisted/trial/test/test_output.py
54d020e3effbc0cf81825676e1a3765cc5514a4a
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Python-2.0", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-free-unknown", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft" ]
permissive
icepaule/sslstrip-hsts-openwrt
0a8097af96beef4c48fcfa0b858367829b4dffdc
d5a2a18d2ac1cdb9a64fbf47235b87b9ebc24536
refs/heads/master
2020-12-31T10:22:04.618312
2020-02-07T18:39:08
2020-02-07T18:39:08
238,998,188
0
0
MIT
2020-02-07T18:35:59
2020-02-07T18:35:58
null
UTF-8
Python
false
false
5,035
py
from twisted.scripts import trial from twisted.trial import runner from twisted.trial.test import packages import os, sys, StringIO def runTrial(*args): from twisted.trial import reporter config = trial.Options() config.parseOptions(args) output = StringIO.StringIO() myRunner = runner.TrialRunner(...
[ "adde88@gmail.com" ]
adde88@gmail.com
8215bc9fad745b0ac2dd15c8624629671f8bf65b
280f650e91c675f471121b8a4a13c2bb5a0a5e6c
/apps/accounts/api/urls.py
64f242fd26e5d7c4bcebeedcb6344c01e688b9d3
[]
no_license
navill/2-1_Project_repo
a8e089c657e44034152df30a85220675f2c31084
3f62bca9f52799d9f877f2d01259bb51038c0cc4
refs/heads/master
2022-12-31T18:32:45.471261
2020-10-26T10:54:39
2020-10-26T10:54:39
303,907,042
0
0
null
2020-10-26T10:54:40
2020-10-14T04:57:03
Python
UTF-8
Python
false
false
1,127
py
from django.urls import path from accounts.api.views import * app_name = 'accounts_api' urlpatterns = [ path('normal/list/', NormalUserListView.as_view(), name='list_normal'), path('normal/create/', NormalUserCreateView.as_view(), name='create_normal'), path('normal/detail/<int:pk>', NormalUserRetrieveUp...
[ "blue_jihoon@naver.com" ]
blue_jihoon@naver.com
d7a58b949717c911b6ddcaa34b4330c57ceafe7c
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Link/Link Checker 9.3/third_party/dnspython/dns/rdtypes/ANY/SOA.py
b971c0c12b6b4456101ae18551f46c6025bd705f
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:254fa89eeee239b6fca6b963a4fb01a1a04b6b3c100590811f64124951b90bf5 size 5163
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
9e2e87721220eb459a320725b72aec702b32a6cf
0866dd2461a544b43379c8235f5e25c9bf856b72
/backend/manage.py
84af162d55f1b74560810ba78d5d9ba2e012516d
[]
no_license
crowdbotics-apps/first-22732
b63efaa93d05251138e8d9bfdf54aeb55568317f
194c14a4d1cdff4524d95c7d749110987b6b4750
refs/heads/master
2023-01-13T11:16:27.752681
2020-11-18T18:38:14
2020-11-18T18:38:14
314,024,715
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'first_22732.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Im...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
6082c431e80504897d1bb223171e7ad60d340077
11812a0cc7b818292e601ecdd4aa4c4e03d131c5
/100days_of_python/day8/exercise_2_Prime_Number.py
54bb65b8d27fd94adc31ace5dc872a9dd2c434f8
[]
no_license
SunshineFaxixi/Python_Learning
f1e55adcfa898489cc9146ccfb220f0b48a31a22
ab3ca44d013311b6de02124091acc4c36a83c4d9
refs/heads/master
2021-08-16T05:47:29.963118
2021-01-04T13:48:30
2021-01-04T13:48:30
238,857,341
1
0
null
2020-03-03T13:53:08
2020-02-07T06:21:46
HTML
UTF-8
Python
false
false
510
py
def prime_checker(number): for i in range(2, number): if number % i == 0: print("It's a prime number") break else: print("It is not a prime number") def prime_checker_1(number): is_prime = True for i in range(2, number): if number % i == 0: i...
[ "xxhan2018@163.com" ]
xxhan2018@163.com
f209d11a13a1fb8de3897a181d5a30c1491e566a
a214e706c875e0af7221c0c9ae193d9d93ee20a7
/reap_admixture_pedmap.py
f737dff6b82939a2075e48ee932aed835b588014
[]
no_license
inambioinfo/bioinformatics_scripts
fa2292e91ad4134204a09ace27c8a91ae70fa34c
3a23611f382b7f3dd60e5e2abe841b84408c0d44
refs/heads/master
2020-03-20T21:17:10.163061
2017-03-28T23:41:39
2017-03-28T23:41:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,456
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from optparse import OptionParser import os __author__ = "Raony Guimarães" __copyright__ = "Copyright 2012, Filter Analysis" __credits__ = ["Raony Guimarães"] __license__ = "GPL" __version__ = "1.0.1" __maintainer__ = "Raony Guimarães" __email__ = "raonyguimaraes@gmail.co...
[ "raonyguimaraes@gmail.com" ]
raonyguimaraes@gmail.com
517b30739b34bdf437be7b9f435c55989c8c782b
35fe9e62ab96038705c3bd09147f17ca1225a84e
/a10_ansible/library/a10_scaleout_cluster_service_config_template.py
61e0116126c6db774e3bae91357a58a630fe31d9
[]
no_license
bmeidell/a10-ansible
6f55fb4bcc6ab683ebe1aabf5d0d1080bf848668
25fdde8d83946dadf1d5b9cebd28bc49b75be94d
refs/heads/master
2020-03-19T08:40:57.863038
2018-03-27T18:25:40
2018-03-27T18:25:40
136,226,910
0
0
null
2018-06-05T19:45:36
2018-06-05T19:45:36
null
UTF-8
Python
false
false
5,958
py
#!/usr/bin/python REQUIRED_NOT_SET = (False, "One of ({}) must be set.") REQUIRED_MUTEX = (False, "Only one of ({}) can be set.") REQUIRED_VALID = (True, "") DOCUMENTATION = """ module: a10_template description: - author: A10 Networks 2018 version_added: 1.8 options: name: description: ...
[ "mdurrant@a10networks.com" ]
mdurrant@a10networks.com
783a054e5bea735eb04b33c1d0b8064fa8afc87f
c65fb9bb01125789ccbbbb2252c3d72a68f32846
/Addition/PythonPlotter/DracoBip/plot_config.py
0e81ddbcb7e36db7e32ee4a592f9846fd7017ec8
[ "MIT" ]
permissive
PandoraThanator/PnC
64cf17cfe92ce41bcc790db139bda190e1fe18a3
b123747671a307822d94400730233722f21a9328
refs/heads/master
2023-05-03T21:29:25.318698
2021-05-25T06:22:01
2021-05-25T06:22:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,299
py
import numpy as np import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt import os ## ----------------------------------------------------------------------------- ## Read Data ## ----------------------------------------------------------------------------- file_path = os.getcwd() + "/../../../Expe...
[ "junhyeokahn91@gmail.com" ]
junhyeokahn91@gmail.com
d0f0a9fb82a86f4b101d297ef9d21ca60a54a2d0
0e8d49afd0e35510d8fa6901cf216896604240d8
/lib/pyfrc/mains/cli_coverage.py
d5026f5eb96a193efd1f13233ac13c79759a6f2a
[ "MIT" ]
permissive
ThunderDogs5613/pyfrc
3878a3d887d7adcb957128333ee71fc874c56f2b
d8e76a9284690f71ea7fab7d2aa9022cb6eec27d
refs/heads/master
2021-08-29T14:21:13.124227
2017-12-04T05:46:40
2017-12-04T05:46:40
114,410,477
1
0
null
2017-12-15T20:55:31
2017-12-15T20:55:30
null
UTF-8
Python
false
false
1,637
py
import argparse import inspect from os.path import dirname import subprocess import sys class PyFrcCoverage: """ Wraps other commands by running them via the coverage module. Requires the coverage module to be installed. """ def __init__(self, parser): parser.add_argument('args',...
[ "dustin@virtualroadside.com" ]
dustin@virtualroadside.com