hexsha stringlengths 40 40 | size int64 3 1.03M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 972 | max_stars_repo_name stringlengths 6 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 972 | max_issues_repo_name stringlengths 6 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 972 | max_forks_repo_name stringlengths 6 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 3 1.03M | avg_line_length float64 1.13 941k | max_line_length int64 2 941k | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24fa87e32337391171ba0bdb801e62259d0c5966 | 2,535 | py | Python | parsl/dataflow/task_status_poller.py | jameshcorbett/parsl | 2475a4c5743f3336967c5fe48b84f497336780fe | [
"Apache-2.0"
] | 1 | 2020-11-21T17:32:09.000Z | 2020-11-21T17:32:09.000Z | parsl/dataflow/task_status_poller.py | jameshcorbett/parsl | 2475a4c5743f3336967c5fe48b84f497336780fe | [
"Apache-2.0"
] | null | null | null | parsl/dataflow/task_status_poller.py | jameshcorbett/parsl | 2475a4c5743f3336967c5fe48b84f497336780fe | [
"Apache-2.0"
] | 1 | 2022-03-09T10:51:12.000Z | 2022-03-09T10:51:12.000Z | import logging
import parsl # noqa F401 (used in string type annotation)
import time
from typing import Dict, Sequence
from typing import List # noqa F401 (used in type annotation)
from parsl.dataflow.executor_status import ExecutorStatus
from parsl.dataflow.job_error_handler import JobErrorHandler
from parsl.datafl... | 32.088608 | 73 | 0.666667 |
c1c32cae7b8de910663d67389397d31542b26a07 | 50,801 | py | Python | diameter/node/Node.py | netch80/i1dk-PythonDiameter | ddc6cf76269379105f260c2ecab2c6930d7f32cf | [
"Zlib"
] | null | null | null | diameter/node/Node.py | netch80/i1dk-PythonDiameter | ddc6cf76269379105f260c2ecab2c6930d7f32cf | [
"Zlib"
] | null | null | null | diameter/node/Node.py | netch80/i1dk-PythonDiameter | ddc6cf76269379105f260c2ecab2c6930d7f32cf | [
"Zlib"
] | null | null | null | import socket
import threading
import time
import diameter.ProtocolConstants
from diameter.node.NodeSettings import NodeSettings
from diameter.node.NodeState import NodeState
from diameter.node.Peer import Peer
from diameter.node.Connection import Connection
from diameter.node.ConnectionTimers import ConnectionTimers
f... | 45.236866 | 155 | 0.607311 |
74a4e6d20123cb907d00b6834955d1f5ca26d57e | 362 | py | Python | FacialRecognition/Media Manipulation/open_video.py | markgacoka/micro-projects | e8115c8270a115282e7dfda6e24620b3333f8c6b | [
"MIT"
] | 1 | 2021-03-19T10:42:07.000Z | 2021-03-19T10:42:07.000Z | Media Manipulation/open_video.py | markgacoka/FacialRecognition | af3e4e37f40f7995f2e276c35283bbe3b73a2a27 | [
"MIT"
] | null | null | null | Media Manipulation/open_video.py | markgacoka/FacialRecognition | af3e4e37f40f7995f2e276c35283bbe3b73a2a27 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
cap = cv2.VideoCapture('hassan.mp4')
if (cap.isOpened()== False):
print("Error opening video stream or file")
while(cap.isOpened()):
ret, frame = cap.read()
if ret == True:
cv2.imshow('Frame',frame)
if cv2.waitKey(25) & 0xFF == ord('q'):
break
else:
break... | 14.48 | 45 | 0.629834 |
aa3ddcc16c7bc56b842da5056de4fd44ebe6cc64 | 55 | py | Python | mdsearch/__init__.py | lydia07/mdsearch | a328e822d6d66869aeefef687887b0a39d4f4512 | [
"MIT"
] | null | null | null | mdsearch/__init__.py | lydia07/mdsearch | a328e822d6d66869aeefef687887b0a39d4f4512 | [
"MIT"
] | null | null | null | mdsearch/__init__.py | lydia07/mdsearch | a328e822d6d66869aeefef687887b0a39d4f4512 | [
"MIT"
] | null | null | null | from .searcher import Searcher
__all__ = ["Searcher"]
| 13.75 | 30 | 0.745455 |
e5c2c70a26bcbc953c188a59f61030cc44b787fb | 2,693 | py | Python | index.py | daxinniu/data1050_dash_app | 451fe05ae56b6f7d1585d6f0e0526395b9b7f16d | [
"MIT"
] | null | null | null | index.py | daxinniu/data1050_dash_app | 451fe05ae56b6f7d1585d6f0e0526395b9b7f16d | [
"MIT"
] | null | null | null | index.py | daxinniu/data1050_dash_app | 451fe05ae56b6f7d1585d6f0e0526395b9b7f16d | [
"MIT"
] | 2 | 2021-12-08T16:06:53.000Z | 2021-12-10T06:38:23.000Z | import dash_bootstrap_components as dbc
import dash
from dash import html
from dash import dcc
from dash.dependencies import Output, Input
from app import app, historical_data
# Connect to the layout and callbacks of each tab
from all_state_graph import all_state_graph_layout
from by_state_graph import by_state_graph... | 38.471429 | 159 | 0.6684 |
a1018d6aceefd84656fcfb9694757de53f51f41b | 7,201 | py | Python | kvirt/kubeadm/__init__.py | toozej/kcli | c43d212576e1bf26ee1a0a1aa2f3d2ff8e34254b | [
"Apache-2.0"
] | null | null | null | kvirt/kubeadm/__init__.py | toozej/kcli | c43d212576e1bf26ee1a0a1aa2f3d2ff8e34254b | [
"Apache-2.0"
] | null | null | null | kvirt/kubeadm/__init__.py | toozej/kcli | c43d212576e1bf26ee1a0a1aa2f3d2ff8e34254b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from kvirt.common import success, error, pprint, warning, info2, container_mode
from kvirt.common import get_kubectl, kube_create_app, get_ssh_pub_key
from kvirt.defaults import UBUNTUS
from random import choice
from shutil import which
from string import ascii_letters, digits
import os
import sy... | 46.75974 | 115 | 0.618942 |
a52e22cb9387819bd18b5cdd1ecd7083f5633c73 | 8,373 | py | Python | colorply/ui/gui.py | arthurdjn/colorply | 1a4ef819ddee068565664bb08953b474e54e2b0b | [
"MIT"
] | 4 | 2019-11-01T19:43:54.000Z | 2021-01-27T21:42:20.000Z | colorply/ui/gui.py | arthurdraws/colorply | 1a4ef819ddee068565664bb08953b474e54e2b0b | [
"MIT"
] | null | null | null | colorply/ui/gui.py | arthurdraws/colorply | 1a4ef819ddee068565664bb08953b474e54e2b0b | [
"MIT"
] | null | null | null | """
This is the python-colorply GUI.
"""
# -*- coding: utf-8 -*-
# Created on Sun Jul 14 10:17:54 2019
# @author: Cédric Perion | Arthur Dujardin
import sys
# PyQt
from PyQt5.QtWidgets import QWidget, QPushButton, QApplication, QFileDialog, QLineEdit, QHBoxLayout, QVBoxLayout, \
QComboBox, QProgressBar, QLabel
f... | 28.576792 | 115 | 0.604801 |
884b289e1326cedb36024db4fa0744c65bdba646 | 17,689 | py | Python | tests/test_crf_cuda.py | KohYoungResearchAmerica/MONAI | eca3f19182b9fcee0be7123728a9826cd382d152 | [
"Apache-2.0"
] | null | null | null | tests/test_crf_cuda.py | KohYoungResearchAmerica/MONAI | eca3f19182b9fcee0be7123728a9826cd382d152 | [
"Apache-2.0"
] | null | null | null | tests/test_crf_cuda.py | KohYoungResearchAmerica/MONAI | eca3f19182b9fcee0be7123728a9826cd382d152 | [
"Apache-2.0"
] | 1 | 2021-01-19T19:35:00.000Z | 2021-01-19T19:35:00.000Z | # Copyright 2020 MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, s... | 38.122845 | 112 | 0.340042 |
edf8a12ed332be381fcf7751aa505e514365bcab | 85 | py | Python | crash_course/ch04/squares2.py | dantin/python-by-example | 5769c7a332ebd60fd54e477b6813f2f2a0f3f37f | [
"BSD-3-Clause"
] | null | null | null | crash_course/ch04/squares2.py | dantin/python-by-example | 5769c7a332ebd60fd54e477b6813f2f2a0f3f37f | [
"BSD-3-Clause"
] | null | null | null | crash_course/ch04/squares2.py | dantin/python-by-example | 5769c7a332ebd60fd54e477b6813f2f2a0f3f37f | [
"BSD-3-Clause"
] | null | null | null |
# list comprehension
squares = [value**2 for value in range(1, 11)]
print(squares)
| 14.166667 | 46 | 0.705882 |
31af1fb951d654f8d4192fdd45fba2772281ee75 | 1,652 | py | Python | bsidessf2020ctf/eccmul/solve.py | nhtri2003gmail/ctf-write-ups | 7e969c47027c39b614e10739ae3a953eed17dfa3 | [
"MIT"
] | 101 | 2020-03-09T17:40:47.000Z | 2022-03-31T23:26:55.000Z | bsidessf2020ctf/eccmul/solve.py | nhtri2003gmail/ctf-write-ups | 7e969c47027c39b614e10739ae3a953eed17dfa3 | [
"MIT"
] | 1 | 2021-11-09T13:39:40.000Z | 2021-11-10T19:15:04.000Z | bsidessf2020ctf/eccmul/solve.py | datajerk/ctf-write-ups | 1bc4ecc63a59de7d924c7214b1ce467801792da0 | [
"MIT"
] | 31 | 2020-05-27T12:29:50.000Z | 2022-03-31T23:23:32.000Z | # Extended Euclidean algorithm
def extended_gcd(aa, bb):
lastremainder, remainder = abs(aa), abs(bb)
x, lastx, y, lasty = 0, 1, 1, 0
while remainder:
lastremainder, (quotient, remainder) = remainder, divmod(lastremainder, remainder)
x, lastx = lastx - quotient*x, x
y, lasty = lasty - quoti... | 30.036364 | 89 | 0.550847 |
d3d5b6556e2c5bba7ac9e7e8bcd08c0673d33395 | 2,636 | py | Python | scripts/WaitForDoorOpen.py | tue-robotics/hsr_demo | c3e139e2ffe4baba17f42e0ee1e726ef08ed69dc | [
"MIT"
] | null | null | null | scripts/WaitForDoorOpen.py | tue-robotics/hsr_demo | c3e139e2ffe4baba17f42e0ee1e726ef08ed69dc | [
"MIT"
] | 3 | 2017-06-10T10:17:14.000Z | 2017-09-28T14:44:42.000Z | scripts/WaitForDoorOpen.py | tue-robotics/hsr_demo | c3e139e2ffe4baba17f42e0ee1e726ef08ed69dc | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import roslib
import rospy
from sensor_msgs.msg import LaserScan
from threading import Event
class WaitForDoorOpen:
def __init__(self, timeout=None):
self.distances = [] #TODO Loy: Keeping all of these is quite ugly. Would a ring buffer or collections.deque suffice?
self.doo... | 37.657143 | 135 | 0.627845 |
d6f0c55209ad65dff4d8adf949bbd0c52cbb9a53 | 3,435 | py | Python | opencv-3.3.0/modules/dnn/test/imagenet_cls_test_inception.py | AmericaGL/TrashTalk_Dapp | 401f17289261b5f537b239e7759dc039d53211e1 | [
"MIT"
] | 17 | 2020-03-13T00:10:28.000Z | 2021-09-06T17:13:17.000Z | opencv-3.3.0/modules/dnn/test/imagenet_cls_test_inception.py | AmericaGL/TrashTalk_Dapp | 401f17289261b5f537b239e7759dc039d53211e1 | [
"MIT"
] | 1 | 2020-03-12T08:10:07.000Z | 2020-03-12T08:10:07.000Z | opencv-3.3.0/modules/dnn/test/imagenet_cls_test_inception.py | AmericaGL/TrashTalk_Dapp | 401f17289261b5f537b239e7759dc039d53211e1 | [
"MIT"
] | 11 | 2016-03-20T18:32:24.000Z | 2020-12-31T21:22:22.000Z | import numpy as np
import sys
import os
import argparse
import tensorflow as tf
from tensorflow.python.platform import gfile
from imagenet_cls_test_alexnet import MeanValueFetch, DnnCaffeModel, Framework, ClsAccEvaluation
try:
import cv2 as cv
except ImportError:
raise ImportError('Can\'t find OpenCV Python mod... | 44.038462 | 144 | 0.694905 |
0ab295f9ae586673bd229b43e646d61b56eb1048 | 3,799 | py | Python | tests/test_loader.py | gordonwatts/func_adl_servicex_type_generator | 2040b008460f0332a82fdd970fa9e4946990fe48 | [
"MIT"
] | null | null | null | tests/test_loader.py | gordonwatts/func_adl_servicex_type_generator | 2040b008460f0332a82fdd970fa9e4946990fe48 | [
"MIT"
] | 2 | 2022-01-23T20:27:59.000Z | 2022-01-25T23:34:34.000Z | tests/test_loader.py | gordonwatts/func_adl_servicex_type_generator | 2040b008460f0332a82fdd970fa9e4946990fe48 | [
"MIT"
] | null | null | null | from pathlib import Path
from func_adl_servicex_type_generator.loader import load_yaml
def test_load_full_file():
data = load_yaml(Path("./tests/xaod_r21_1.yaml"))
collection_dict = {c.name: c for c in data.collections}
classes_dict = {c.name: c for c in data.classes}
assert "DiTauJets" in collectio... | 37.613861 | 78 | 0.697815 |
48b6e760beb3051277b46e80518865e10bf712d7 | 13,938 | py | Python | py3.8/multiprocess/util.py | geofft/multiprocess | d998ffea9e82d17662b12b94a236182e7fde46d5 | [
"BSD-3-Clause"
] | 356 | 2015-06-21T21:05:10.000Z | 2022-03-30T11:57:08.000Z | py3.8/multiprocess/util.py | geofft/multiprocess | d998ffea9e82d17662b12b94a236182e7fde46d5 | [
"BSD-3-Clause"
] | 103 | 2015-06-22T01:44:14.000Z | 2022-03-01T03:44:25.000Z | py3.8/multiprocess/util.py | geofft/multiprocess | d998ffea9e82d17662b12b94a236182e7fde46d5 | [
"BSD-3-Clause"
] | 72 | 2015-09-02T14:10:24.000Z | 2022-03-25T06:49:43.000Z | #
# Module providing various facilities to other parts of the package
#
# multiprocessing/util.py
#
# Copyright (c) 2006-2008, R Oudkerk
# Licensed to PSF under a Contributor Agreement.
#
import os
import itertools
import sys
import weakref
import atexit
import threading # we want threading to install it's
... | 28.444898 | 79 | 0.628856 |
0f731c83ef0bbc42376119971e1ceab1e5253c82 | 3,622 | py | Python | cfitall/utils.py | wryfi/cfitall | f933aae6bd1c42abd6af2bb06656cf37b4ee2888 | [
"MIT"
] | 1 | 2022-02-24T00:01:06.000Z | 2022-02-24T00:01:06.000Z | cfitall/utils.py | wryfi/cfitall | f933aae6bd1c42abd6af2bb06656cf37b4ee2888 | [
"MIT"
] | 8 | 2021-06-02T16:11:34.000Z | 2022-03-15T23:18:07.000Z | cfitall/utils.py | wryfi/cfitall | f933aae6bd1c42abd6af2bb06656cf37b4ee2888 | [
"MIT"
] | 1 | 2021-11-06T22:20:23.000Z | 2021-11-06T22:20:23.000Z | """
This module is full of little recursive functions that help with
converting string-path notations into nested dicts, and vice
versa. A string-path, or "flattened" dict might look like this:
{'foo.bar.bat': 'asdfhjklkjhfdsa'}
As an "expanded" or "nested" dict, the same data would be:
{'foo': {'bar': {'bat... | 32.630631 | 84 | 0.6582 |
043b47b968d827a80ba23b13bb03e7ef81191cf1 | 13,358 | py | Python | official/core/base_trainer_test.py | lightbooster/models | 833900b085a353712010c26c66ae9111246b5ac7 | [
"Apache-2.0"
] | 2 | 2021-03-30T12:57:54.000Z | 2021-03-30T13:18:48.000Z | official/core/base_trainer_test.py | lightbooster/models | 833900b085a353712010c26c66ae9111246b5ac7 | [
"Apache-2.0"
] | 2 | 2021-03-24T23:09:46.000Z | 2021-03-25T18:42:10.000Z | official/core/base_trainer_test.py | lightbooster/models | 833900b085a353712010c26c66ae9111246b5ac7 | [
"Apache-2.0"
] | 1 | 2021-05-08T09:22:42.000Z | 2021-05-08T09:22:42.000Z | # Copyright 2021 The TensorFlow 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 required by applica... | 35.716578 | 80 | 0.679593 |
bc5559eb9cc910855c46e491c48065222e2878f3 | 94 | py | Python | selfdrive/hardware/__init__.py | JoeOIVOV/ArnePilot | 82c71c6f5af1ba504b748940f22cc0ac98692662 | [
"MIT"
] | 116 | 2018-03-07T09:00:10.000Z | 2020-04-06T18:37:45.000Z | selfdrive/hardware/__init__.py | JoeOIVOV/ArnePilot | 82c71c6f5af1ba504b748940f22cc0ac98692662 | [
"MIT"
] | 49 | 2018-09-14T19:05:27.000Z | 2020-03-30T11:46:54.000Z | selfdrive/hardware/__init__.py | JoeOIVOV/ArnePilot | 82c71c6f5af1ba504b748940f22cc0ac98692662 | [
"MIT"
] | 143 | 2018-10-12T18:21:21.000Z | 2020-04-06T00:16:36.000Z | import os
EON = os.path.isfile('/EON')
TICI = os.path.isfile('/TICI')
PC = not (EON or TICI)
| 15.666667 | 30 | 0.638298 |
1ae97b8d3967e276606fa6fe02c2a9c28d13bc3f | 30,280 | py | Python | test/codes_tests/test_bse.py | joshuawall/amuse | c2034074ee76c08057c4faa96c32044ab40952e9 | [
"Apache-2.0"
] | 1 | 2019-12-28T22:47:51.000Z | 2019-12-28T22:47:51.000Z | test/codes_tests/test_bse.py | joshuawall/amuse | c2034074ee76c08057c4faa96c32044ab40952e9 | [
"Apache-2.0"
] | null | null | null | test/codes_tests/test_bse.py | joshuawall/amuse | c2034074ee76c08057c4faa96c32044ab40952e9 | [
"Apache-2.0"
] | 2 | 2021-11-19T04:41:37.000Z | 2021-11-20T02:11:17.000Z | from amuse.community.bse.interface import BSE, BSEInterface
from amuse.test.amusetest import TestWithMPI
from amuse.units import units
from amuse.units import constants
from amuse.datamodel import Particles
import numpy
class TestBSEInterface(TestWithMPI):
class state(object):
def __init__(self):
... | 41.881051 | 120 | 0.61037 |
dbf78b560ead9079dca603035c4f5538eb5e6c2c | 272 | py | Python | Week10/week 10 programming assignment 1.py | Slow-Rain/NPTEL-The-Joy-of-Computing-using-Python | e4bd830ef7a3f171a14a88f94df626c766a7649b | [
"MIT"
] | 29 | 2021-01-25T16:13:17.000Z | 2022-03-23T16:34:06.000Z | Week10/week 10 programming assignment 1.py | Slow-Rain/NPTEL-The-Joy-of-Computing-using-Python | e4bd830ef7a3f171a14a88f94df626c766a7649b | [
"MIT"
] | 12 | 2021-02-11T13:47:07.000Z | 2021-10-10T04:26:45.000Z | Week10/week 10 programming assignment 1.py | Slow-Rain/NPTEL-The-Joy-of-Computing-using-Python | e4bd830ef7a3f171a14a88f94df626c766a7649b | [
"MIT"
] | 30 | 2021-02-10T05:54:31.000Z | 2022-02-25T11:24:36.000Z | a,b,c = int(input()),input().split(),0
key = [b[i-a:i] for i in range(1,len(b)+1) if i % a == 0]
for i in range(len(key)):
if key[i].count('1') == 2:
c = i+1
if c!=0:
print("yes",c,end="")
else:
print("no",end="")
| 15.111111 | 58 | 0.419118 |
f145132fcd12abefb449481e71727fcd8224485f | 8,610 | py | Python | main.py | moh7/CarND-Semantic-Segmentation | 64400fedd6002a42bec923f3b03ec4f9b6d26ff0 | [
"MIT"
] | null | null | null | main.py | moh7/CarND-Semantic-Segmentation | 64400fedd6002a42bec923f3b03ec4f9b6d26ff0 | [
"MIT"
] | null | null | null | main.py | moh7/CarND-Semantic-Segmentation | 64400fedd6002a42bec923f3b03ec4f9b6d26ff0 | [
"MIT"
] | null | null | null | import os.path
import warnings
import scipy.misc
import tensorflow as tf
from distutils.version import LooseVersion
import project_tests as tests
import helper
## set parameters
L2_REG = 1e-5
STDEV = 1e-3
KEEP_PROB = 0.5
LEARNING_RATE = 1e-4
EPOCHS = 15
BATCH_SIZE = 5
IMAGE_SHAPE = (160, 576)
NUM_CLASSES = 2
DATA_DIR ... | 40.422535 | 146 | 0.694077 |
d4d5c5911d9de56f0dc69f3d97472514e60c3032 | 7,415 | py | Python | src/uefi/BaseTools/Source/Python/UPT/Object/Parser/InfPackagesObject.py | kkennett/oscore.dev | 59e786f12f9af969211c95a9d2863b1767528341 | [
"BSD-3-Clause"
] | null | null | null | src/uefi/BaseTools/Source/Python/UPT/Object/Parser/InfPackagesObject.py | kkennett/oscore.dev | 59e786f12f9af969211c95a9d2863b1767528341 | [
"BSD-3-Clause"
] | null | null | null | src/uefi/BaseTools/Source/Python/UPT/Object/Parser/InfPackagesObject.py | kkennett/oscore.dev | 59e786f12f9af969211c95a9d2863b1767528341 | [
"BSD-3-Clause"
] | null | null | null | ## @file
# This file is used to define class objects of INF file [Packages] section.
# It will consumed by InfParser.
#
# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD Lic... | 39.441489 | 102 | 0.54619 |
d89a431c436fb50e22cfba03e91fc295bd90c666 | 7,874 | py | Python | daiquiri/oai/renderers.py | agy-why/daiquiri | 4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d | [
"Apache-2.0"
] | 14 | 2018-12-23T18:35:02.000Z | 2021-12-15T04:55:12.000Z | daiquiri/oai/renderers.py | agy-why/daiquiri | 4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d | [
"Apache-2.0"
] | 40 | 2018-12-20T12:44:05.000Z | 2022-03-21T11:35:20.000Z | daiquiri/oai/renderers.py | agy-why/daiquiri | 4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d | [
"Apache-2.0"
] | 5 | 2019-05-16T08:03:35.000Z | 2021-08-23T20:03:11.000Z | from daiquiri.core.renderers import XMLRenderer
from daiquiri.core.renderers.datacite import DataciteRendererMixin
from daiquiri.core.renderers.dublincore import DublincoreRendererMixin
from daiquiri.core.renderers.voresource import VoresourceRendererMixin
class OaiRenderer(DublincoreRendererMixin, DataciteRendererMi... | 42.562162 | 141 | 0.640208 |
c1cbf518ba97c0e9f12951b8713bd9789ee2e457 | 2,131 | py | Python | src/libs/BLAKE3/.github/workflows/upload_github_release_asset.py | CrackerCat/wtf | 4714b0c9b85a20ad10886041a8fe908194e42630 | [
"MIT"
] | 3,384 | 2020-01-09T16:48:28.000Z | 2022-03-31T18:17:12.000Z | src/libs/BLAKE3/.github/workflows/upload_github_release_asset.py | CrackerCat/wtf | 4714b0c9b85a20ad10886041a8fe908194e42630 | [
"MIT"
] | 214 | 2020-01-09T21:15:36.000Z | 2022-03-27T20:50:12.000Z | src/libs/BLAKE3/.github/workflows/upload_github_release_asset.py | CrackerCat/wtf | 4714b0c9b85a20ad10886041a8fe908194e42630 | [
"MIT"
] | 216 | 2020-01-09T18:15:27.000Z | 2022-03-26T01:31:37.000Z | #! /usr/bin/env python3
import github
import os
import sys
RETRIES = 10
g = github.Github(os.environ["GITHUB_TOKEN"])
tag_name = os.environ["GITHUB_TAG"]
tag_prefix = "refs/tags/"
if tag_name.startswith(tag_prefix):
tag_name = tag_name[len(tag_prefix):]
assert len(sys.argv) == 2
asset_path = sys.argv[1]
asset_na... | 32.287879 | 79 | 0.672454 |
2ced73ff66673cdb3aa65c18207ccde56a675bf5 | 273 | py | Python | Topicos Avanzados de Programacion/clienteFoto.py | NoelCordova/universidad | 444fce93eebedf5cbb5f49c29f94030bbe900015 | [
"MIT"
] | null | null | null | Topicos Avanzados de Programacion/clienteFoto.py | NoelCordova/universidad | 444fce93eebedf5cbb5f49c29f94030bbe900015 | [
"MIT"
] | null | null | null | Topicos Avanzados de Programacion/clienteFoto.py | NoelCordova/universidad | 444fce93eebedf5cbb5f49c29f94030bbe900015 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#Cliente
import socket
arch= open('/home/slingerriperxd/Desktop/foto.jpg','rb')
foto= arch.read()
HOST= 'Localhost'
PUERTO= 2015
s= socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PUERTO))
s.sendall(foto)
arch.close()
s.close()
| 17.0625 | 56 | 0.732601 |
342914cff2a0486689ccd5d05feae87726525f66 | 5,282 | py | Python | cltk/corpus/aramaic/transliterate.py | almostearthling/cltk | 048fc2a24e7f26d0f28ebbf64a6a605ab8387d0b | [
"MIT"
] | null | null | null | cltk/corpus/aramaic/transliterate.py | almostearthling/cltk | 048fc2a24e7f26d0f28ebbf64a6a605ab8387d0b | [
"MIT"
] | null | null | null | cltk/corpus/aramaic/transliterate.py | almostearthling/cltk | 048fc2a24e7f26d0f28ebbf64a6a605ab8387d0b | [
"MIT"
] | null | null | null | # simple script to transform a hebrew transcription of an imperial aramaic
# text to its own unicode block
IMPERIAL_ARAMAIC_BLOCK = [
# Imperial Aramaic block as it is provided
# by https://www.unicode.org/charts/PDF/U10840.pdf
# The Unicode Standard, Version 13.0
("10840", "IMPERIAL ARAMAIC LETTER ALE... | 47.160714 | 86 | 0.639341 |
c7431baf9ba94633f3ae3f42dd9e3c6a3e4f69e6 | 7,994 | py | Python | msoffcrypto/method/ecma376_agile.py | nolze/msoffcrypto-tool | 01c5b23ee81bd39a37ea090af2656e6891767be7 | [
"MIT"
] | 336 | 2018-04-23T16:07:18.000Z | 2022-03-24T08:23:38.000Z | msoffcrypto/method/ecma376_agile.py | FDlucifer/msoffcrypto-tool | 01c5b23ee81bd39a37ea090af2656e6891767be7 | [
"MIT"
] | 58 | 2018-05-07T03:50:42.000Z | 2022-02-06T15:08:40.000Z | msoffcrypto/method/ecma376_agile.py | FDlucifer/msoffcrypto-tool | 01c5b23ee81bd39a37ea090af2656e6891767be7 | [
"MIT"
] | 75 | 2018-05-06T11:02:10.000Z | 2022-03-05T15:28:09.000Z | import functools
import hmac
import io
import logging
from hashlib import sha1, sha256, sha384, sha512
from struct import pack, unpack
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import padding
from cry... | 41.635417 | 156 | 0.662497 |
6414b9784cd4e7d660bea40b247cd33e8ffbdbd0 | 715 | py | Python | var/spack/repos/builtin/packages/xprop/package.py | HaochengLIU/spack | 26e51ff1705a4d6234e2a0cf734f93f7f95df5cb | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 2 | 2018-11-27T03:39:44.000Z | 2021-09-06T15:50:35.000Z | var/spack/repos/builtin/packages/xprop/package.py | HaochengLIU/spack | 26e51ff1705a4d6234e2a0cf734f93f7f95df5cb | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 1 | 2019-01-11T20:11:52.000Z | 2019-01-11T20:11:52.000Z | var/spack/repos/builtin/packages/xprop/package.py | HaochengLIU/spack | 26e51ff1705a4d6234e2a0cf734f93f7f95df5cb | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 1 | 2020-10-14T14:20:17.000Z | 2020-10-14T14:20:17.000Z | # Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Xprop(AutotoolsPackage):
"""xprop is a command line tool to display and/or set window and ... | 31.086957 | 76 | 0.703497 |
b2cbe8b7f0e18ce727d40f3e76f3ee3006eebf33 | 358 | py | Python | Walkthru_14/walkthru14.py | Witziger/Walkthru-Python | 5a06c1f7730df07849c19c3a118a270f309aaf56 | [
"MIT"
] | null | null | null | Walkthru_14/walkthru14.py | Witziger/Walkthru-Python | 5a06c1f7730df07849c19c3a118a270f309aaf56 | [
"MIT"
] | null | null | null | Walkthru_14/walkthru14.py | Witziger/Walkthru-Python | 5a06c1f7730df07849c19c3a118a270f309aaf56 | [
"MIT"
] | null | null | null | stuff = list()
stuff.append('python')
stuff.append('chuck')
stuff.sort()
print (stuff[0])
print (stuff.__getitem__(0))
print (list.__getitem__(stuff,0))
print(dir(stuff))
class PartyAnimal:
x = 0
def party(self) :
self.x = self.x + 1
print("So far", self.x)
an = PartyAnimal()
an.party()
an.par... | 17.047619 | 33 | 0.645251 |
faf3f4b2ea0756400fa4813e66287ccc06e299ac | 2,456 | py | Python | setup_support.py | litepresence/secp256k1prp-py | 499cdedc9687392761124a506d47c53658c2ca1b | [
"MIT"
] | 2 | 2018-05-12T07:53:10.000Z | 2018-06-04T14:39:35.000Z | setup_support.py | litepresence/secp256k1prp-py | 499cdedc9687392761124a506d47c53658c2ca1b | [
"MIT"
] | null | null | null | setup_support.py | litepresence/secp256k1prp-py | 499cdedc9687392761124a506d47c53658c2ca1b | [
"MIT"
] | null | null | null | import glob
import os
import shutil
from contextlib import contextmanager
from tempfile import mkdtemp
import subprocess
@contextmanager
def workdir():
cwd = os.getcwd()
tmpdir = mkdtemp()
os.chdir(tmpdir)
try:
yield
finally:
os.chdir(cwd)
shutil.rmtree(tmpdir)
@contextm... | 24.808081 | 86 | 0.595277 |
fa34fcf7a2b8c8267d88c2f928576c31eca9d268 | 4,715 | py | Python | docs/source/conf.py | asdfgallardo/horoscopejs | 37090c165239f94b3ee95cc46a1d65af76265888 | [
"Apache-2.0"
] | 153 | 2017-06-24T20:31:00.000Z | 2022-03-31T13:25:20.000Z | docs/source/conf.py | asdfgallardo/horoscopejs | 37090c165239f94b3ee95cc46a1d65af76265888 | [
"Apache-2.0"
] | 13 | 2017-10-01T12:39:22.000Z | 2022-01-09T02:59:09.000Z | docs/source/conf.py | asdfgallardo/horoscopejs | 37090c165239f94b3ee95cc46a1d65af76265888 | [
"Apache-2.0"
] | 54 | 2017-07-03T07:16:03.000Z | 2022-02-11T01:54:31.000Z | # -*- coding: utf-8 -*-
#
# aztro documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 23 22:49:00 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All... | 29.841772 | 79 | 0.679745 |
c355f278844f58a7f1ad1f6b1c0b3a758e3a231c | 1,099 | py | Python | screamshot/browser_manager_script.py | makinacorpus/screamshot | ad49ad1d6ce389db0f89ca933f7144e33c80cd43 | [
"BSD-2-Clause"
] | 2 | 2019-04-15T13:22:16.000Z | 2019-04-17T23:51:16.000Z | screamshot/browser_manager_script.py | makinacorpus/screamshot | ad49ad1d6ce389db0f89ca933f7144e33c80cd43 | [
"BSD-2-Clause"
] | 19 | 2019-04-16T11:20:28.000Z | 2022-03-11T23:45:33.000Z | screamshot/browser_manager_script.py | makinacorpus/screamshot | ad49ad1d6ce389db0f89ca933f7144e33c80cd43 | [
"BSD-2-Clause"
] | 7 | 2019-04-17T11:39:42.000Z | 2019-04-29T15:20:22.000Z | """
Create or close a browser
"""
from argparse import ArgumentParser
from screamshot.utils import close_browser, open_browser, to_sync
def main():
parser = ArgumentParser(description=__doc__)
# Mandatory arguments
group = parser.add_mutually_exclusive_group()
group.add_argument("-c", "--close", act... | 30.527778 | 98 | 0.66879 |
693972491ff9268c7ad6d4c6a074762fcf9dc13c | 56,391 | py | Python | test_syncobj.py | Troyhy/PySyncObj | 33a70bd237efae0713992c6c9db87ce128286a4f | [
"MIT"
] | null | null | null | test_syncobj.py | Troyhy/PySyncObj | 33a70bd237efae0713992c6c9db87ce128286a4f | [
"MIT"
] | null | null | null | test_syncobj.py | Troyhy/PySyncObj | 33a70bd237efae0713992c6c9db87ce128286a4f | [
"MIT"
] | null | null | null | from __future__ import print_function
import os
import time
import pytest
import random
import threading
import sys
import pysyncobj.pickle as pickle
if sys.version_info >= (3, 0):
xrange = range
from functools import partial
import functools
import struct
import logging
from pysyncobj import SyncObj, SyncObjConf,... | 28.069189 | 357 | 0.613591 |
3c82cf8e95b54c931d152fb731a2647a6c30df66 | 7,956 | py | Python | data_acquisition_framework/tests/test_utilities.py | Open-Speech-EkStep/data-acquisition-pipeline | b28df36d417010d85d3e5c5f6882eb8fe89ce5ae | [
"MIT"
] | 14 | 2021-06-18T17:02:31.000Z | 2022-01-23T16:04:34.000Z | data_acquisition_framework/tests/test_utilities.py | susmitabhatt/data-acquisition-pipeline | b28df36d417010d85d3e5c5f6882eb8fe89ce5ae | [
"MIT"
] | 2 | 2021-06-19T09:46:08.000Z | 2021-09-10T13:57:57.000Z | data_acquisition_framework/tests/test_utilities.py | susmitabhatt/data-acquisition-pipeline | b28df36d417010d85d3e5c5f6882eb8fe89ce5ae | [
"MIT"
] | 6 | 2021-04-12T05:03:52.000Z | 2021-09-11T13:54:45.000Z | import os
import random
import struct
import unittest
import wave
from unittest import TestCase
from unittest.mock import patch
from data_acquisition_framework.utilities import get_mp3_duration_in_seconds, get_license_info, get_file_format, \
get_media_info, is_unwanted_words_present, is_unwanted_extension_present... | 37.17757 | 114 | 0.679236 |
73f56f931710984717c7d7bf0019849798955845 | 1,507 | py | Python | scripts/tabspaces.py | Paktosan/final-countdown | 562692acc1b5283a9df4d4c77d5f2b055fcbb009 | [
"CC0-1.0"
] | null | null | null | scripts/tabspaces.py | Paktosan/final-countdown | 562692acc1b5283a9df4d4c77d5f2b055fcbb009 | [
"CC0-1.0"
] | null | null | null | scripts/tabspaces.py | Paktosan/final-countdown | 562692acc1b5283a9df4d4c77d5f2b055fcbb009 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright (c) 2018 Christoph Kepler <development@kepler.international>
#
# 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
# bina... | 36.756098 | 73 | 0.749834 |
3eaf043c8e44ff76097a64b1374253c1126b178b | 4,128 | py | Python | lg_common/src/lg_common/managed_window.py | constantegonzalez/lg_ros_nodes | 1c7b08c42e90205922602c86805285508d1b7971 | [
"Apache-2.0"
] | 16 | 2015-10-10T11:55:37.000Z | 2022-02-24T22:47:48.000Z | lg_common/src/lg_common/managed_window.py | EndPointCorp/lg_ros_nodes | 37ef895cead3b7257a5d5593ab886e74ff157b4b | [
"Apache-2.0"
] | 292 | 2015-09-29T21:59:53.000Z | 2022-03-31T15:59:31.000Z | lg_common/src/lg_common/managed_window.py | constantegonzalez/lg_ros_nodes | 1c7b08c42e90205922602c86805285508d1b7971 | [
"Apache-2.0"
] | 5 | 2017-05-03T06:22:43.000Z | 2021-08-19T16:54:14.000Z | import json
import rospy
import subprocess
import threading
import re
from lg_msg_defs.msg import WindowGeometry
class ManagedWindow(object):
LAYER_BELOW = 'below'
LAYER_NORMAL = 'normal'
LAYER_ABOVE = 'above'
def __init__(self, w_name=None, w_class=None, w_instance=None,
geometry=N... | 30.352941 | 83 | 0.577519 |
a248f5a373557c39e435e6877c23dd2c8fab24ad | 7,783 | py | Python | Anchors/add-anchors.py | arialcrime/Robofont-scripts | 34dd92ec3ef67c7e0f1405767a5c648b1c2051ba | [
"MIT"
] | 46 | 2015-01-25T18:12:26.000Z | 2021-12-13T22:54:29.000Z | Anchors/add-anchors.py | arialcrime/Robofont-scripts | 34dd92ec3ef67c7e0f1405767a5c648b1c2051ba | [
"MIT"
] | 24 | 2015-02-17T10:43:08.000Z | 2019-05-02T18:23:39.000Z | Anchors/add-anchors.py | arialcrime/Robofont-scripts | 34dd92ec3ef67c7e0f1405767a5c648b1c2051ba | [
"MIT"
] | 28 | 2015-01-16T19:35:41.000Z | 2020-02-25T09:58:02.000Z | """
june 2014 — Loïc Sander
– Adds anchors to any glyph in the baseGlyphList, if present in font.keys() and no specific glyph is selected,
otherwise, adds anchors only to the selected glyphs
– If a glyph already has the named anchor, the script skips this anchor
– Any glyph that received new anchors is colored in a wei... | 23.372372 | 149 | 0.536939 |
dc802eb52a00f7ab625b43775f8322bc59fbf7bd | 20,139 | py | Python | SciDataTool/Classes/DataPattern.py | enjoyneer87/SciDataTool | 37ddc4071f1edb1270ee03e43595c3f943fb9bd8 | [
"Apache-2.0"
] | null | null | null | SciDataTool/Classes/DataPattern.py | enjoyneer87/SciDataTool | 37ddc4071f1edb1270ee03e43595c3f943fb9bd8 | [
"Apache-2.0"
] | null | null | null | SciDataTool/Classes/DataPattern.py | enjoyneer87/SciDataTool | 37ddc4071f1edb1270ee03e43595c3f943fb9bd8 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# File generated according to Generator/ClassesRef/DataPattern.csv
# WARNING! All changes made in this file will be lost!
"""Method code available at https://github.com/Eomys/SciDataTool/tree/master/SciDataTool/Methods//DataPattern
"""
from os import linesep
from sys import getsizeof
f... | 35.085366 | 110 | 0.548836 |
7a2f658c44c571b27ed348bc2b0f279e426436e4 | 2,809 | py | Python | carl-har-pls/data/generate_data.py | ppiont/carl-har-pls | 6d744ea8ca329307b045ec7a532bb8c55b15acda | [
"Unlicense"
] | null | null | null | carl-har-pls/data/generate_data.py | ppiont/carl-har-pls | 6d744ea8ca329307b045ec7a532bb8c55b15acda | [
"Unlicense"
] | null | null | null | carl-har-pls/data/generate_data.py | ppiont/carl-har-pls | 6d744ea8ca329307b045ec7a532bb8c55b15acda | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 13 21:59:41 2021.
@author: peterp
"""
# %%%%%%%%%%%%%%%%%%%%% Anonymous functions %%%%%%%%%%%
# mncn = @(x) (x-mean(x)); % column-wise mean center
# auto = @(x) ((x-mean(x))./std(x)); % column-wise mean center and scale to unit variance
# %%%%%%%%%... | 30.868132 | 89 | 0.527234 |
8c74dbf61e4eca36a37939edb4aa157553ee4a0e | 1,212 | py | Python | ooobuild/lo/drawing/shapes.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/drawing/shapes.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/drawing/shapes.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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 applicab... | 30.3 | 116 | 0.735974 |
1dd4c0f2074a330079aeb004144d12770c5d304d | 1,553 | py | Python | src/commcare_cloud/fab/const.py | AliRizvi1/commcare-cloud | 312f6c2ea4e97bdda1ae49aec6d114edf0dedb43 | [
"BSD-3-Clause"
] | null | null | null | src/commcare_cloud/fab/const.py | AliRizvi1/commcare-cloud | 312f6c2ea4e97bdda1ae49aec6d114edf0dedb43 | [
"BSD-3-Clause"
] | null | null | null | src/commcare_cloud/fab/const.py | AliRizvi1/commcare-cloud | 312f6c2ea4e97bdda1ae49aec6d114edf0dedb43 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
import os
PROJECT_ROOT = os.path.dirname(__file__)
REPO_BASE = os.path.realpath(os.path.join(PROJECT_ROOT, '..', '..'))
ROLES_ALL = ['all']
ROLES_ALL_SRC = [
'django_monolith',
'django_app',
'django_celery',
'django_pillowtop',
'formplayer',
'staticfiles... | 24.650794 | 69 | 0.709594 |
65f7cae7b67dc1f34e203038399da7817afb25f1 | 146 | py | Python | predicode/hierarchical/test/__init__.py | sflippl/predicode | f3d0b43a2c05cd6dbdf8656f6759127483f79a58 | [
"MIT"
] | 2 | 2019-09-24T14:43:17.000Z | 2021-02-07T08:34:54.000Z | predicode/hierarchical/test/.ipynb_checkpoints/__init__-checkpoint.py | sflippl/predicode | f3d0b43a2c05cd6dbdf8656f6759127483f79a58 | [
"MIT"
] | 8 | 2019-09-09T16:01:10.000Z | 2022-02-10T00:20:45.000Z | predicode/hierarchical/test/.ipynb_checkpoints/__init__-checkpoint.py | sflippl/predicode | f3d0b43a2c05cd6dbdf8656f6759127483f79a58 | [
"MIT"
] | 1 | 2019-09-24T15:00:39.000Z | 2019-09-24T15:00:39.000Z | """Tests predicode.hierarchical."""
from predicode.hierarchical.test.initializer import *
from predicode.hierarchical.test.hierarchical import *
| 29.2 | 54 | 0.815068 |
b68aec72b6b9c6b10284c2928a52c1afc712de5c | 5,687 | py | Python | WINDOWS/Lambda/FN03_AS2_Windows_Automation_Run_Image_Assistant/lambda_function.py | aws-samples/appstream-serverless-image-creation-automation | 2d58cca89b92c623c7fe22d5956f0e81435d9b8a | [
"MIT-0"
] | null | null | null | WINDOWS/Lambda/FN03_AS2_Windows_Automation_Run_Image_Assistant/lambda_function.py | aws-samples/appstream-serverless-image-creation-automation | 2d58cca89b92c623c7fe22d5956f0e81435d9b8a | [
"MIT-0"
] | null | null | null | WINDOWS/Lambda/FN03_AS2_Windows_Automation_Run_Image_Assistant/lambda_function.py | aws-samples/appstream-serverless-image-creation-automation | 2d58cca89b92c623c7fe22d5956f0e81435d9b8a | [
"MIT-0"
] | null | null | null | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this
# software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including wit... | 42.759398 | 117 | 0.650782 |
ebd9437cb52c13e3e539083a9cbe287b89b862a1 | 4,706 | py | Python | Mass_Plotting.py | HRG-Lab/HFSS_Python | 8a80122690110846f7170df5a167cd86748e7b1c | [
"Apache-2.0"
] | 8 | 2019-07-25T06:49:33.000Z | 2021-11-08T12:20:01.000Z | Mass_Plotting.py | HRG-Lab/HFSS_Python | 8a80122690110846f7170df5a167cd86748e7b1c | [
"Apache-2.0"
] | null | null | null | Mass_Plotting.py | HRG-Lab/HFSS_Python | 8a80122690110846f7170df5a167cd86748e7b1c | [
"Apache-2.0"
] | 6 | 2018-03-10T13:09:03.000Z | 2020-10-23T08:57:39.000Z | import HFSSLibrary as hfss
import pandas as pd
import matplotlib.pyplot as plt
[oAnsys, oDesktop] = hfss.openHFSS()
oProject = oDesktop.SetActiveProject("ECEN641_Homework2")
Segments = [3,8,10,20,60]
for N in Segments:
for problem_num in ["4.18","4.19"]:
# oDesign = oProject.SetActiveDesign("Problem... | 47.535354 | 149 | 0.622184 |
e5d2c20bdbc6099beeae73d823adb562a91192a6 | 3,922 | py | Python | tests/functional/retries/test_bucket.py | kellertk/botocore | 3b8eb4ab832ed1ca1833a6cfce8277ef6d54dc9f | [
"Apache-2.0"
] | null | null | null | tests/functional/retries/test_bucket.py | kellertk/botocore | 3b8eb4ab832ed1ca1833a6cfce8277ef6d54dc9f | [
"Apache-2.0"
] | null | null | null | tests/functional/retries/test_bucket.py | kellertk/botocore | 3b8eb4ab832ed1ca1833a6cfce8277ef6d54dc9f | [
"Apache-2.0"
] | null | null | null | import random
import threading
import time
from botocore.retries import bucket
from tests import unittest
class InstrumentedTokenBucket(bucket.TokenBucket):
def _acquire(self, amount, block):
rval = super(InstrumentedTokenBucket, self)._acquire(amount, block)
assert self._current_capacity >= 0
... | 38.07767 | 76 | 0.623151 |
1353d9b426cd0fd62adf48f83f08b1cda5fcd4b7 | 460 | py | Python | 2019/05/part2.py | timofurrer/aoc-2020 | 446b688a57601d9891f520e43b7f822c373a6ff4 | [
"MIT"
] | null | null | null | 2019/05/part2.py | timofurrer/aoc-2020 | 446b688a57601d9891f520e43b7f822c373a6ff4 | [
"MIT"
] | null | null | null | 2019/05/part2.py | timofurrer/aoc-2020 | 446b688a57601d9891f520e43b7f822c373a6ff4 | [
"MIT"
] | null | null | null | import sys
from pathlib import Path
from queue import Queue
sys.path.insert(0, str(Path(__file__).parent.parent))
from intcode import Intcode
sys.path = sys.path[1:]
puzzle_input_path = Path(__file__).parent / "input.txt"
with open(puzzle_input_path) as puzzle_input_file:
puzzle_input_raw = puzzle_input_file.rea... | 27.058824 | 55 | 0.756522 |
6fc6d7947e5d12b05bdf5d6f3aeb5ca8ac806fb2 | 14,070 | py | Python | keylime/ima_file_signatures.py | THS-on/keylime | bb904fc98d9674832e630542d211e71102873b4d | [
"Apache-2.0"
] | null | null | null | keylime/ima_file_signatures.py | THS-on/keylime | bb904fc98d9674832e630542d211e71102873b4d | [
"Apache-2.0"
] | 1 | 2021-09-13T10:54:29.000Z | 2021-09-13T10:54:29.000Z | keylime/ima_file_signatures.py | THS-on/keylime | bb904fc98d9674832e630542d211e71102873b4d | [
"Apache-2.0"
] | 1 | 2020-07-16T00:07:20.000Z | 2020-07-16T00:07:20.000Z | #!/usr/bin/env python3
'''
SPDX-License-Identifier: Apache-2.0
'''
import base64
import enum
import json
import struct
from cryptography import x509
from cryptography import utils
from cryptography.exceptions import UnsupportedAlgorithm
from cryptography.hazmat import backends
from cryptography.hazmat.primitives impo... | 35.71066 | 99 | 0.65366 |
b80b4cc0df674c2c1adbc9b8de73c1f0a088d9ae | 17,457 | py | Python | sscanss/core/instrument/simulation.py | StephenNneji/SScanSS-2 | b0a3697d803439840a8f29c4486428f1b7a010f3 | [
"BSD-3-Clause"
] | null | null | null | sscanss/core/instrument/simulation.py | StephenNneji/SScanSS-2 | b0a3697d803439840a8f29c4486428f1b7a010f3 | [
"BSD-3-Clause"
] | null | null | null | sscanss/core/instrument/simulation.py | StephenNneji/SScanSS-2 | b0a3697d803439840a8f29c4486428f1b7a010f3 | [
"BSD-3-Clause"
] | null | null | null | import logging
import time
import numpy as np
from multiprocessing import Event, Process, Queue, sharedctypes
from PyQt5 import QtCore
from .collision import CollisionManager
from .robotics import IKSolver
from ..geometry.intersection import path_length_calculation
from ..math import VECTOR_EPS
from ..scene.node import... | 40.038991 | 118 | 0.626224 |
db26abfcf5dce7e8bb826f7d2c63f00c8ac050c8 | 36,593 | py | Python | impacket/ese.py | Remediant/impacket | 1429750288e026f196b656e0f4227d69894c5775 | [
"Apache-1.1"
] | null | null | null | impacket/ese.py | Remediant/impacket | 1429750288e026f196b656e0f4227d69894c5775 | [
"Apache-1.1"
] | null | null | null | impacket/ese.py | Remediant/impacket | 1429750288e026f196b656e0f4227d69894c5775 | [
"Apache-1.1"
] | null | null | null | # Copyright (c) 2003-2016 CORE Security Technologies
#
# This software is provided under under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# Description:
# Microsoft Extensive Storage Engine parser, just focused on trying
# ... | 37.685891 | 158 | 0.561255 |
e890d8079ce2c3972fbd258938b99638ca4c0f47 | 2,216 | py | Python | x.py | rlowrance/re-local-linear | ef1400102d4410ec4a2c52e62c32a433efc5ff01 | [
"MIT"
] | null | null | null | x.py | rlowrance/re-local-linear | ef1400102d4410ec4a2c52e62c32a433efc5ff01 | [
"MIT"
] | null | null | null | x.py | rlowrance/re-local-linear | ef1400102d4410ec4a2c52e62c32a433efc5ff01 | [
"MIT"
] | null | null | null | '''examples for numpy and pandas'''
import numpy as np
import pandas as pd
# 1D numpy arrays
v = np.array([1, 2, 3], dtype=np.float64) # also: np.int64
v.shape # tuple of array dimensions
v.ndim # number of dimensions
v.size # number of elements
for elem in np.nditer(v): # read-only iteration
pass
for elem... | 32.588235 | 89 | 0.71074 |
86fe553fa2d5f86b0d249bee1645c0071acef340 | 2,263 | py | Python | GetDCCACoefficients.py | HenryDuquemin/Detrended-cross-correlation-analysis-DCCA- | 00e75a04fceb0ae7154327a6ddd547b5f8eb69f1 | [
"MIT"
] | 5 | 2020-06-25T11:24:02.000Z | 2021-08-20T03:46:59.000Z | GetDCCACoefficients.py | HenryDuquemin/Detrended-cross-correlation-analysis-DCCA- | 00e75a04fceb0ae7154327a6ddd547b5f8eb69f1 | [
"MIT"
] | null | null | null | GetDCCACoefficients.py | HenryDuquemin/Detrended-cross-correlation-analysis-DCCA- | 00e75a04fceb0ae7154327a6ddd547b5f8eb69f1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 21 16:19:06 2019
@author: duqueh
"""
"""DCCA function modified from https://gist.github.com/jaimeide/a9cba18192ee904307298bd110c28b14"""
import numpy as np
from numpy.matlib import repmat
import pandas as pd
def sliding_window(xx,k):
# Function to... | 29.012821 | 100 | 0.56076 |
8e95cd3caa199b18deeac006f5dfa7925fb9e694 | 57 | py | Python | login.py | banyiluoyun/luckyman | a89e98fa089f4a23d035b0b5aa5f9b746906f4fe | [
"MIT"
] | null | null | null | login.py | banyiluoyun/luckyman | a89e98fa089f4a23d035b0b5aa5f9b746906f4fe | [
"MIT"
] | null | null | null | login.py | banyiluoyun/luckyman | a89e98fa089f4a23d035b0b5aa5f9b746906f4fe | [
"MIT"
] | null | null | null | num = 1111
num2 = 22222
num3 = 3323o
num3 = lishuai
| 5.7 | 14 | 0.631579 |
e2f4bdc60bb1872e063c1829eabca8819652c1ee | 3,272 | py | Python | features/steps/xsens_mt_sample_time_fine_msg.py | PolySync/core-python-api | a753863eca820954f5b8f7502c38c5a7d8db5a15 | [
"MIT"
] | null | null | null | features/steps/xsens_mt_sample_time_fine_msg.py | PolySync/core-python-api | a753863eca820954f5b8f7502c38c5a7d8db5a15 | [
"MIT"
] | null | null | null | features/steps/xsens_mt_sample_time_fine_msg.py | PolySync/core-python-api | a753863eca820954f5b8f7502c38c5a7d8db5a15 | [
"MIT"
] | 2 | 2018-07-22T21:07:23.000Z | 2019-03-09T14:31:09.000Z | # WARNING: Auto-generated file. Any changes are subject to being overwritten
# by setup.py build script.
#!/usr/bin/python
import time
from behave import given
from behave import when
from behave import then
from hamcrest import assert_that, equal_to
try:
import polysync.node as ps_node
from polysync.data_mod... | 34.442105 | 157 | 0.789425 |
f779b516915e7cb1bb47a9be61e8da4c90bd2d7b | 1,620 | py | Python | decrypt_oracle/test/unit/key_providers/test_u_counting.py | seebees/aws-encryption-sdk-python | 7498bafab9c231abe0694f856f299af59d0e7826 | [
"Apache-2.0"
] | null | null | null | decrypt_oracle/test/unit/key_providers/test_u_counting.py | seebees/aws-encryption-sdk-python | 7498bafab9c231abe0694f856f299af59d0e7826 | [
"Apache-2.0"
] | null | null | null | decrypt_oracle/test/unit/key_providers/test_u_counting.py | seebees/aws-encryption-sdk-python | 7498bafab9c231abe0694f856f299af59d0e7826 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | 39.512195 | 102 | 0.789506 |
5b7c52c118974d7930ff5eacf389768a16a514e5 | 16,832 | py | Python | veloproj/model.py | qiaochen/VeloAE | 908fa01f36e3fc1c0c619ce7a68d536d0fb5cf9b | [
"MIT"
] | 13 | 2021-12-08T19:09:40.000Z | 2022-03-03T06:45:21.000Z | veloproj/model.py | qiaochen/VeloAE | 908fa01f36e3fc1c0c619ce7a68d536d0fb5cf9b | [
"MIT"
] | 2 | 2022-02-20T10:57:36.000Z | 2022-03-30T07:14:02.000Z | veloproj/model.py | qiaochen/VeloAE | 908fa01f36e3fc1c0c619ce7a68d536d0fb5cf9b | [
"MIT"
] | 3 | 2021-11-05T13:23:36.000Z | 2022-01-10T12:00:20.000Z | # -*- coding: utf-8 -*-
"""VeloAutoencoder module.
This module contains the veloAutoencoder and its ablation configurations.
"""
import torch
import numpy as np
from torch import nn
from torch_geometric.nn import GCNConv, Sequential, GATv2Conv, GATConv
from torch.nn import functional as F
CANO_NAME_GAT... | 36.197849 | 126 | 0.534042 |
33c9f50c08aa6893a0b704b491b689c60fe7a66b | 683 | py | Python | app/core/migrations/0002_tag.py | jcarmonas/recipe-app-api | bab09e1931ec48bf3b648ac3ab27a1b4d2f37560 | [
"MIT"
] | null | null | null | app/core/migrations/0002_tag.py | jcarmonas/recipe-app-api | bab09e1931ec48bf3b648ac3ab27a1b4d2f37560 | [
"MIT"
] | null | null | null | app/core/migrations/0002_tag.py | jcarmonas/recipe-app-api | bab09e1931ec48bf3b648ac3ab27a1b4d2f37560 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.15 on 2021-05-08 21:48
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | 28.458333 | 118 | 0.616398 |
7d78e9c826958b82e51ec09c9be5e2edea09c25e | 3,339 | py | Python | recovery_data_extraction_5pfp.py | pdn4kd/isochoric-expander | 56bfdc3c7efb3a242ff4ae4c556d70bb7f171e5f | [
"MIT"
] | null | null | null | recovery_data_extraction_5pfp.py | pdn4kd/isochoric-expander | 56bfdc3c7efb3a242ff4ae4c556d70bb7f171e5f | [
"MIT"
] | null | null | null | recovery_data_extraction_5pfp.py | pdn4kd/isochoric-expander | 56bfdc3c7efb3a242ff4ae4c556d70bb7f171e5f | [
"MIT"
] | null | null | null | '''Converting all those output CSV files into a single large CSV in an easier to deal with format'''
import numpy as np
import pandas as pd
import os.path
stars = np.genfromtxt("planets.csv", delimiter=',', names=True, dtype=("U23", "U9", int, float, float, float, float, float, float, float, float, float, float))
star... | 101.181818 | 553 | 0.732555 |
4da21fca75ac54cfc0339435584462722fe9aad7 | 7,896 | py | Python | servicecatalog_puppet/config.py | fuellbie/aws-service-catalog-puppet | 8a57d0f83623295214b7b6a498534c80de084c29 | [
"Apache-2.0"
] | null | null | null | servicecatalog_puppet/config.py | fuellbie/aws-service-catalog-puppet | 8a57d0f83623295214b7b6a498534c80de084c29 | [
"Apache-2.0"
] | null | null | null | servicecatalog_puppet/config.py | fuellbie/aws-service-catalog-puppet | 8a57d0f83623295214b7b6a498534c80de084c29 | [
"Apache-2.0"
] | null | null | null | import functools
import os
import pkg_resources
import yaml
from betterboto import client as betterboto_client
from jinja2 import Environment, FileSystemLoader
from servicecatalog_puppet import asset_helpers
from servicecatalog_puppet import constants
import logging
logger = logging.getLogger()
logger.setLevel(logg... | 33.176471 | 118 | 0.729863 |
80b5a0e8684bc24e88f8da84e34e7cea082f65b2 | 1,741 | py | Python | Scripts/pcap_parse.py | Team-Zed-cf/Team-Zed | 662eee2948502fca0bdc477955db17e2d32f92aa | [
"MIT"
] | null | null | null | Scripts/pcap_parse.py | Team-Zed-cf/Team-Zed | 662eee2948502fca0bdc477955db17e2d32f92aa | [
"MIT"
] | null | null | null | Scripts/pcap_parse.py | Team-Zed-cf/Team-Zed | 662eee2948502fca0bdc477955db17e2d32f92aa | [
"MIT"
] | null | null | null | #!usr/bin/python3
# Script: 401 Final Project Script
# Author: Courtney Hans
# Date of latest revision: 12/13/2020
# Purpose: pcap parse
# defines parameters for what information is deemed
# "interesting" to aid e... | 31.654545 | 135 | 0.643308 |
1525b4f496b12718b43def195216766392a238e0 | 36,300 | py | Python | tst/daemon/server.py | TST-Group-BE/flax-blockchain | ed850df4f28ef4b6f71c175c8b6d07d27f7b3cd5 | [
"Apache-2.0"
] | null | null | null | tst/daemon/server.py | TST-Group-BE/flax-blockchain | ed850df4f28ef4b6f71c175c8b6d07d27f7b3cd5 | [
"Apache-2.0"
] | null | null | null | tst/daemon/server.py | TST-Group-BE/flax-blockchain | ed850df4f28ef4b6f71c175c8b6d07d27f7b3cd5 | [
"Apache-2.0"
] | null | null | null | import asyncio
import json
import logging
import os
import signal
import subprocess
import sys
import time
import traceback
import uuid
from concurrent.futures import ThreadPoolExecutor
from enum import Enum
from pathlib import Path
from typing import Any, Dict, List, Optional, TextIO, Tuple, cast
from websockets imp... | 36.445783 | 116 | 0.60876 |
f5fc1d22f71abd5e1350b92a722b612ad7250de2 | 19,849 | py | Python | salt/client/mixins.py | olivier-mauras/salt | a6483b1b39705401fc6143a7abab13d046bd55de | [
"Apache-2.0"
] | null | null | null | salt/client/mixins.py | olivier-mauras/salt | a6483b1b39705401fc6143a7abab13d046bd55de | [
"Apache-2.0"
] | null | null | null | salt/client/mixins.py | olivier-mauras/salt | a6483b1b39705401fc6143a7abab13d046bd55de | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
'''
A collection of mixins useful for the various *Client interfaces
'''
# Import Python libs
from __future__ import absolute_import, print_function, with_statement
import fnmatch
import signal
import logging
import weakref
import traceback
import collections
import copy as pycopy
# Import Salt libs
i... | 35.444643 | 121 | 0.550456 |
99c72906d7533e8d340e061a5816f6c581f771b0 | 244 | py | Python | birthday/tests/models.py | bashu/django-birthday | c80737210266e7bab005c4ac91f0e1304a85dd3e | [
"BSD-3-Clause"
] | 12 | 2017-02-11T12:08:12.000Z | 2022-01-06T06:25:38.000Z | birthday/tests/models.py | bashu/django-birthday | c80737210266e7bab005c4ac91f0e1304a85dd3e | [
"BSD-3-Clause"
] | 5 | 2017-01-20T06:42:46.000Z | 2021-10-10T19:23:48.000Z | birthday/tests/models.py | bashu/django-birthday | c80737210266e7bab005c4ac91f0e1304a85dd3e | [
"BSD-3-Clause"
] | 6 | 2017-04-28T15:12:28.000Z | 2021-12-29T18:12:37.000Z | from django.db import models
from birthday import BirthdayField, BirthdayManager
class TestModel(models.Model):
__test__ = False
birthday = BirthdayField()
objects = BirthdayManager()
class Meta:
ordering = ("pk",)
| 17.428571 | 51 | 0.696721 |
e2d9ee0dbd0a2896f7a3d5b8331175a000266102 | 1,376 | py | Python | fbdplc/apps/parse_s7xml.py | Jmeyer1292/block_diagram_z3 | b7180d2dedc33ccb86aa3c58c898dd7adb9653fe | [
"Apache-2.0"
] | 4 | 2021-09-18T13:32:57.000Z | 2022-03-15T22:13:56.000Z | fbdplc/apps/parse_s7xml.py | Jmeyer1292/block_diagram_z3 | b7180d2dedc33ccb86aa3c58c898dd7adb9653fe | [
"Apache-2.0"
] | null | null | null | fbdplc/apps/parse_s7xml.py | Jmeyer1292/block_diagram_z3 | b7180d2dedc33ccb86aa3c58c898dd7adb9653fe | [
"Apache-2.0"
] | 2 | 2021-12-06T20:19:04.000Z | 2022-03-15T22:13:58.000Z | from fbdplc.functions import Program
from fbdplc.s7xml import parse_function_from_file, parse_tags_from_file
from fbdplc.modeling import program_model
import fbdplc.apps.loggers as loggers
import argparse
import sys
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('paths', nargs='*')
... | 26.980392 | 71 | 0.640988 |
39dc15d4bc58318f5bcbc3ebf21255f8a795b656 | 22,249 | py | Python | loggo/loggo.py | interrogator/loggo | 2f9f41d4527e65604b292a65323899e43a6a0d3b | [
"MIT"
] | null | null | null | loggo/loggo.py | interrogator/loggo | 2f9f41d4527e65604b292a65323899e43a6a0d3b | [
"MIT"
] | null | null | null | loggo/loggo.py | interrogator/loggo | 2f9f41d4527e65604b292a65323899e43a6a0d3b | [
"MIT"
] | 1 | 2018-05-09T13:16:31.000Z | 2018-05-09T13:16:31.000Z | """
Loggo: safe and automatable logging
"""
import inspect
import logging
import os
import traceback
import uuid
from contextlib import contextmanager
from datetime import datetime
from functools import wraps
from typing import Optional, Set, Dict, Union, Callable, Generator, Any, cast, Mapping
# you don't need grayl... | 40.016187 | 107 | 0.598274 |
c16d71bac9bcf73eaa34b84d3515e223ecf4ba87 | 489 | py | Python | 2019/09.py | GillesArcas/Advent_of_Code | 1f57eb1686875df2684b0d56916b1d20724e9fb9 | [
"MIT"
] | null | null | null | 2019/09.py | GillesArcas/Advent_of_Code | 1f57eb1686875df2684b0d56916b1d20724e9fb9 | [
"MIT"
] | null | null | null | 2019/09.py | GillesArcas/Advent_of_Code | 1f57eb1686875df2684b0d56916b1d20724e9fb9 | [
"MIT"
] | null | null | null | import intcode
DATA = '09.txt'
def code1():
with open(DATA) as f:
strcode = f.readline().strip()
code = intcode.parse_data(strcode)
comp = intcode.Intcode(code)
comp.run([1])
print('1>', comp.outvalues)
def code2():
with open(DATA) as f:
strcode = f.rea... | 18.111111 | 43 | 0.560327 |
3e09cc6a46357fe0edaed1230003c4fe33f0be3a | 2,788 | py | Python | odhobs/test.py | anabanami/Bender | 2ec1e4a56c0252ca8d8603303ecea24295a768bb | [
"MIT"
] | 1 | 2022-03-04T00:07:48.000Z | 2022-03-04T00:07:48.000Z | odhobs/test.py | anabanami/Bender | 2ec1e4a56c0252ca8d8603303ecea24295a768bb | [
"MIT"
] | null | null | null | odhobs/test.py | anabanami/Bender | 2ec1e4a56c0252ca8d8603303ecea24295a768bb | [
"MIT"
] | 1 | 2022-03-04T00:07:42.000Z | 2022-03-04T00:07:42.000Z | import numpy as np
from scipy.special import eval_hermite, factorial
from ho import psi as cpsi
# Python implementation. Adapted from
# https://www.numbercrunch.de/blog/2014/08/calculating-the-hermite-functions/ with
# wisdom from https://scicomp.stackexchange.com/questions/30896/
#
# I managed to get a ~50% speedup b... | 25.345455 | 88 | 0.637374 |
fd0cae0972340533414a06ea290851d40685d078 | 168 | py | Python | docs/examples_src/fields/optional.py | dynalz/odmantic | f20f08f8ab1768534c1e743f7539bfe4f8c73bdd | [
"0BSD"
] | 486 | 2020-10-19T05:33:53.000Z | 2022-03-30T12:54:57.000Z | docs/examples_src/fields/optional.py | dynalz/odmantic | f20f08f8ab1768534c1e743f7539bfe4f8c73bdd | [
"0BSD"
] | 183 | 2020-10-19T18:15:25.000Z | 2022-03-31T04:59:21.000Z | docs/examples_src/fields/optional.py | dynalz/odmantic | f20f08f8ab1768534c1e743f7539bfe4f8c73bdd | [
"0BSD"
] | 53 | 2020-10-19T09:35:01.000Z | 2022-03-31T20:39:51.000Z | from typing import Optional
from odmantic import Model
class Person(Model):
name: str
age: Optional[int]
john = Person(name="John")
print(john.age)
#> None
| 12.923077 | 27 | 0.702381 |
1911d3a74b402e645f6d894aac2762bb649e97b3 | 10,828 | py | Python | test/unit/managers/test_HDAManager.py | mmyschyshyn/Vocalaxy | 9f501b49eaa96b90a39a05c74170b5cb78d88759 | [
"CC-BY-3.0"
] | null | null | null | test/unit/managers/test_HDAManager.py | mmyschyshyn/Vocalaxy | 9f501b49eaa96b90a39a05c74170b5cb78d88759 | [
"CC-BY-3.0"
] | 1 | 2015-02-21T18:48:19.000Z | 2015-02-27T15:50:32.000Z | test/unit/managers/test_HDAManager.py | mmyschyshyn/Vocalaxy | 9f501b49eaa96b90a39a05c74170b5cb78d88759 | [
"CC-BY-3.0"
] | 3 | 2015-02-22T13:34:16.000Z | 2020-10-01T01:28:04.000Z | import sys
import os
import pprint
import unittest
__GALAXY_ROOT__ = os.getcwd() + '/../../../'
sys.path.insert( 1, __GALAXY_ROOT__ + 'lib' )
from galaxy import eggs
eggs.require( 'SQLAlchemy >= 0.4' )
import sqlalchemy
from galaxy import model
from galaxy import exceptions
from galaxy.util.bunch import Bunch
impor... | 49.442922 | 111 | 0.667067 |
31af6e2b99afe39ad4658abd405ef878f2e20fc5 | 74,510 | py | Python | elasticsearch/client/__init__.py | johnistan/elasticsearch-py | 7751fede5a4733130e210b62ab1f99ab9763c9c7 | [
"Apache-2.0"
] | 46 | 2019-03-01T02:19:18.000Z | 2021-12-18T12:37:02.000Z | elasticsearch/client/__init__.py | johnistan/elasticsearch-py | 7751fede5a4733130e210b62ab1f99ab9763c9c7 | [
"Apache-2.0"
] | 8 | 2019-01-22T10:46:43.000Z | 2020-12-30T13:03:04.000Z | elasticsearch/client/__init__.py | johnistan/elasticsearch-py | 7751fede5a4733130e210b62ab1f99ab9763c9c7 | [
"Apache-2.0"
] | 67 | 2018-10-29T09:50:49.000Z | 2022-01-06T07:35:56.000Z | from __future__ import unicode_literals
import logging
from ..transport import Transport
from ..exceptions import TransportError
from ..compat import string_types, urlparse, unquote
from .indices import IndicesClient
from .ingest import IngestClient
from .cluster import ClusterClient
from .cat import CatClient
from .n... | 52.731776 | 104 | 0.655241 |
37979de98e2fa371057dca67c0dcfd17b938f6ff | 101 | py | Python | python/testData/mover/multiLineSelection3_afterDown.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/mover/multiLineSelection3_afterDown.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/mover/multiLineSelection3_afterDown.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | class Test(object):
def q(self):
pass
<selection> a = 1
b = 2
<caret></selection> | 14.428571 | 20 | 0.534653 |
7665efd14219da92035509943129d77c014c9aab | 77 | py | Python | asynced/__init__.py | jorenham/asynced | 4b406ad9626078e903fd012d3bcc40f4e27af41d | [
"MIT"
] | 1 | 2022-03-15T19:56:13.000Z | 2022-03-15T19:56:13.000Z | asynced/__init__.py | jorenham/asynced | 4b406ad9626078e903fd012d3bcc40f4e27af41d | [
"MIT"
] | null | null | null | asynced/__init__.py | jorenham/asynced | 4b406ad9626078e903fd012d3bcc40f4e27af41d | [
"MIT"
] | null | null | null | from .asyncio_utils import *
from .exceptions import *
from .states import *
| 19.25 | 28 | 0.766234 |
67338f5e3dd01ded464c34f24bf084239650ec9e | 27,551 | py | Python | digit.py | bsciolla/matchit_digit | 147d7570a4856b2a594cf872f1535875c7f0fa98 | [
"Apache-2.0"
] | null | null | null | digit.py | bsciolla/matchit_digit | 147d7570a4856b2a594cf872f1535875c7f0fa98 | [
"Apache-2.0"
] | null | null | null | digit.py | bsciolla/matchit_digit | 147d7570a4856b2a594cf872f1535875c7f0fa98 | [
"Apache-2.0"
] | 1 | 2022-03-22T07:38:40.000Z | 2022-03-22T07:38:40.000Z |
#!/usr/bin/env python
# Import Modules
import os
import pygame
import copy
import sys
import numpy
import math
from pygame.locals import *
from pygame.compat import geterror
import match_func
import sound
import imageloader
from spriteclass import *
from speedseq import Speedseq
# functions to create our resources
... | 30.51052 | 133 | 0.556169 |
65393806c403c795d5c63709abca07232d4c3755 | 8,433 | py | Python | examples/tf1_mnist_estimator.py | jmsalamy/KungFu | 063ccaae3c0a2c6411f26d3641da262abd4eeab3 | [
"Apache-2.0"
] | null | null | null | examples/tf1_mnist_estimator.py | jmsalamy/KungFu | 063ccaae3c0a2c6411f26d3641da262abd4eeab3 | [
"Apache-2.0"
] | null | null | null | examples/tf1_mnist_estimator.py | jmsalamy/KungFu | 063ccaae3c0a2c6411f26d3641da262abd4eeab3 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, division, print_function
import gzip
import os
import shutil
import tempfile
import numpy as np
import tensorflow as tf
from six.moves import urllib
flags = tf.app.flags
flags.DEFINE_string(
'data_dir', './mnist/data', 'Directory where mnist data will be downloaded'
' ... | 34.991701 | 82 | 0.620538 |
e8d1d73029317466d13f0f9f7d0311f9c5fe7ca4 | 23,254 | py | Python | lib/RunTester/RunTesterServer.py | kbaseapps/RunTester | 21a69a95378a65796bcaae48ed8ae0e26538e012 | [
"MIT"
] | null | null | null | lib/RunTester/RunTesterServer.py | kbaseapps/RunTester | 21a69a95378a65796bcaae48ed8ae0e26538e012 | [
"MIT"
] | null | null | null | lib/RunTester/RunTesterServer.py | kbaseapps/RunTester | 21a69a95378a65796bcaae48ed8ae0e26538e012 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import datetime
import json
import os
import random as _random
import sys
import traceback
from getopt import getopt, GetoptError
from multiprocessing import Process
from os import environ
from wsgiref.simple_server import make_server
import requests as _requests
from json... | 36.678233 | 151 | 0.542186 |
2f2c5703fb2c96ad390fe514853fafb4ac59ae64 | 2,979 | py | Python | tests/python/contrib/test_hexagon/conftest.py | 666vulcan/tvm | ffd5f70370642c909222f9a4cae8400023dacbdc | [
"Apache-2.0"
] | 1 | 2022-01-29T21:05:36.000Z | 2022-01-29T21:05:36.000Z | tests/python/contrib/test_hexagon/conftest.py | 666vulcan/tvm | ffd5f70370642c909222f9a4cae8400023dacbdc | [
"Apache-2.0"
] | null | null | null | tests/python/contrib/test_hexagon/conftest.py | 666vulcan/tvm | ffd5f70370642c909222f9a4cae8400023dacbdc | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 31.03125 | 77 | 0.731789 |
0cc00bda15f3e9f766cfe028f816c9766ce67673 | 462 | py | Python | setup.py | zhangshyue/Excutable | abe5c7a9fd65f2b7010b48db317a6ba5630a5022 | [
"MIT"
] | null | null | null | setup.py | zhangshyue/Excutable | abe5c7a9fd65f2b7010b48db317a6ba5630a5022 | [
"MIT"
] | null | null | null | setup.py | zhangshyue/Excutable | abe5c7a9fd65f2b7010b48db317a6ba5630a5022 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='listAllTheFile',
packages = find_packages(),
version='0.0.1',
license='MIT',
author="Shiyue Zhang",
author_email="zhangshiyuez@gmail.com",
description="A package for listing file names in directory",
url="https://github.com/zhan... | 28.875 | 65 | 0.655844 |
a2ed186c4941bc3d9c00378ba34124a6c0c256ef | 714 | py | Python | examples/reference/models/Line.py | kevin1kevin1k/bokeh | 9f34b5b710e2748ec803c12918ec1706098a3477 | [
"BSD-3-Clause"
] | 17 | 2020-06-14T03:47:35.000Z | 2022-03-07T00:25:23.000Z | examples/reference/models/Line.py | kevin1kevin1k/bokeh | 9f34b5b710e2748ec803c12918ec1706098a3477 | [
"BSD-3-Clause"
] | 12 | 2020-07-22T22:40:09.000Z | 2021-03-17T14:10:27.000Z | examples/reference/models/Line.py | kevin1kevin1k/bokeh | 9f34b5b710e2748ec803c12918ec1706098a3477 | [
"BSD-3-Clause"
] | 8 | 2020-06-14T03:47:23.000Z | 2021-11-20T15:14:04.000Z | import numpy as np
from bokeh.models import ColumnDataSource, Plot, LinearAxis, Grid
from bokeh.models.glyphs import Line
from bokeh.io import curdoc, show
N = 30
x = np.linspace(-2, 2, N)
y = x**2
source = ColumnDataSource(dict(x=x, y=y))
plot = Plot(
title=None, plot_width=300, plot_height=300,
min_border... | 22.3125 | 78 | 0.731092 |
835a91cb4891fecbd5eaf674d03cbd51bc422e12 | 9,073 | py | Python | telepresence/outbound/container.py | getbread/telepresence | d800e89675d39c958e4424f597854c995a40feeb | [
"Apache-2.0"
] | null | null | null | telepresence/outbound/container.py | getbread/telepresence | d800e89675d39c958e4424f597854c995a40feeb | [
"Apache-2.0"
] | 1 | 2021-11-23T22:31:02.000Z | 2021-11-23T22:31:02.000Z | telepresence/outbound/container.py | getbread/telepresence | d800e89675d39c958e4424f597854c995a40feeb | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Datawire. 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 agr... | 32.519713 | 79 | 0.622947 |
f67b2ab9906b015f9c71d439b01cde901e958ba4 | 1,553 | py | Python | api/user/modify.py | lonkaars/po-4-op-een-rij | 5cd9eaf116422c82ab68ffcf2dff22e04781b6c5 | [
"MIT"
] | 4 | 2021-02-04T10:33:45.000Z | 2021-03-25T11:26:27.000Z | api/user/modify.py | lonkaars/connect-4 | 5cd9eaf116422c82ab68ffcf2dff22e04781b6c5 | [
"MIT"
] | 21 | 2021-04-05T17:16:04.000Z | 2021-06-12T12:47:22.000Z | api/user/modify.py | lonkaars/connect-4 | 5cd9eaf116422c82ab68ffcf2dff22e04781b6c5 | [
"MIT"
] | 2 | 2021-04-23T07:06:11.000Z | 2021-04-27T08:44:26.000Z | from flask import Blueprint, request
from db import cursor, connection
from hierarchy import auth_required
from auth.login import login_password
def login_and_password(func):
@auth_required("user")
def wrapper(user_id):
data = request.get_json()
if not data: return "", 400
password = ... | 25.459016 | 79 | 0.626529 |
2eb1065aa7fcab74507a533404ad59acb87be0aa | 30,802 | py | Python | Packs/WindowsDefenderAdvancedThreatProtection/Integrations/WindowsDefenderAdvancedThreatProtection/WindowsDefenderAdvancedThreatProtection.py | ddi-danielsantander/content | 67e2edc404f50c332d928dbdbce00a447bb5532f | [
"MIT"
] | 1 | 2020-04-19T11:05:42.000Z | 2020-04-19T11:05:42.000Z | Packs/WindowsDefenderAdvancedThreatProtection/Integrations/WindowsDefenderAdvancedThreatProtection/WindowsDefenderAdvancedThreatProtection.py | ddi-danielsantander/content | 67e2edc404f50c332d928dbdbce00a447bb5532f | [
"MIT"
] | 9 | 2021-02-08T20:51:18.000Z | 2021-09-23T23:27:38.000Z | Packs/WindowsDefenderAdvancedThreatProtection/Integrations/WindowsDefenderAdvancedThreatProtection/WindowsDefenderAdvancedThreatProtection.py | ddi-danielsantander/content | 67e2edc404f50c332d928dbdbce00a447bb5532f | [
"MIT"
] | 2 | 2020-07-15T06:41:52.000Z | 2020-07-19T18:45:23.000Z | import demistomock as demisto
from CommonServerPython import *
from CommonServerUserPython import *
import requests
import base64
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
requests.packages.urllib3.disable_warnings()
if not demisto.params()['proxy']:
del os.environ['HTTP_PROXY']
del os.env... | 33.19181 | 112 | 0.620999 |
d9ba62bc91cdbb31ea515ed4a79509812372c1f8 | 1,215 | py | Python | page_objects/contact_page.py | Himanshu-tester/Online_Shopping_Portal | 1299be0abea923fdb366603f9fb089902689d8d3 | [
"MIT"
] | null | null | null | page_objects/contact_page.py | Himanshu-tester/Online_Shopping_Portal | 1299be0abea923fdb366603f9fb089902689d8d3 | [
"MIT"
] | 1 | 2020-08-03T02:02:15.000Z | 2020-08-03T02:02:15.000Z | page_objects/contact_page.py | Himanshu-tester/Online_Shopping_Portal | 1299be0abea923fdb366603f9fb089902689d8d3 | [
"MIT"
] | 1 | 2020-08-30T05:19:34.000Z | 2020-08-30T05:19:34.000Z | import config
from page_objects.common import Common
from utilities.data_factory import DataRead
from utilities.locator_strategy import LocatorStrategy
class Contact(Common):
def __init__(self, driver):
super().__init__(driver)
self.driver = driver
self.data = DataRead.json_read('data.jso... | 35.735294 | 93 | 0.745679 |
32ba126acdc50c5b9fea95e6a5d13ad599e6f4e5 | 12,868 | py | Python | OttBands5minFixedOtt/jessepickerdata/dnafiles/ATOM-USDT 2021-09-11 2021-10-11.py | ysdede/jesse_strategies | ade9f4ba42cec11207c766d267b9d8feb8bce648 | [
"CC0-1.0"
] | 38 | 2021-09-18T15:33:28.000Z | 2022-02-21T17:29:08.000Z | OttBands5minFixedOtt/jessepickerdata/dnafiles/ATOM-USDT 2021-09-11 2021-10-11.py | ysdede/jesse_strategies | ade9f4ba42cec11207c766d267b9d8feb8bce648 | [
"CC0-1.0"
] | 4 | 2022-01-02T14:46:12.000Z | 2022-02-16T18:39:41.000Z | OttBands5minFixedOtt/jessepickerdata/dnafiles/ATOM-USDT 2021-09-11 2021-10-11.py | ysdede/jesse_strategies | ade9f4ba42cec11207c766d267b9d8feb8bce648 | [
"CC0-1.0"
] | 11 | 2021-10-19T06:21:43.000Z | 2022-02-21T17:29:10.000Z | dnas = [
['_W6,U', 40, 84, 9.31, 50, 14, 6.21, {'ott_len': 32, 'ott_percent': 210, 'ott_bw': 79, 'tps_qty_index': 6, 'max_risk': 43}],
['o4,@X', 42, 98, 8.28, 45, 20, 5.45, {'ott_len': 34, 'ott_percent': 166, 'ott_bw': 66, 'tps_qty_index': 38, 'max_risk': 45}],
['ftUQf', 46, 66, 10.18, 58, 12, 3.51, {'ott_len': 33, 'ot... | 124.932039 | 129 | 0.586027 |
ffa134341a503e28229eebcf0841bf696436eb7d | 1,706 | py | Python | boa3/model/builtin/interop/oracle/oracleresponsecodetype.py | OnBlockIO/neo3-boa | cb317292a67532a52ed26f2b0f0f7d0b10ac5f5f | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3/model/builtin/interop/oracle/oracleresponsecodetype.py | OnBlockIO/neo3-boa | cb317292a67532a52ed26f2b0f0f7d0b10ac5f5f | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3/model/builtin/interop/oracle/oracleresponsecodetype.py | OnBlockIO/neo3-boa | cb317292a67532a52ed26f2b0f0f7d0b10ac5f5f | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | from typing import Any, Dict
from boa3.model.symbol import ISymbol
from boa3.model.type.itype import IType
from boa3.model.type.primitive.inttype import IntType
class OracleResponseCodeType(IntType):
"""
A class used to represent Neo's OracleResponseCode.
"""
def __init__(self):
super().__in... | 29.929825 | 85 | 0.684642 |
e89cea9c6c7e556929ee7656fdfcae391c0ce2ee | 880 | py | Python | sourcecode/raspberrypi_node/pong.py | sansastra/Animal-Human-Cohabitation | 50662240e3387da5b41c2f52745d710783485dcf | [
"MIT"
] | 5 | 2020-12-22T10:17:35.000Z | 2020-12-22T11:23:39.000Z | sourcecode/raspberrypi_node/pong.py | sansastra/Animal-Human-Cohabitation | 50662240e3387da5b41c2f52745d710783485dcf | [
"MIT"
] | null | null | null | sourcecode/raspberrypi_node/pong.py | sansastra/Animal-Human-Cohabitation | 50662240e3387da5b41c2f52745d710783485dcf | [
"MIT"
] | null | null | null | """import serial
import time
from xbee import XBee
serial_port = serial.Serial('/dev/ttyUSB0', 9600)
def print_data(data):
print (data)
xbee = XBee(serial_port, callback=print_data)
while True:
try:
time.sleep(0.001)
except KeyboardInterrupt:
break
xbee.halt()
serial_port.close()
"""
im... | 17.959184 | 50 | 0.65 |
8deee3da9f4f86b94730574cb01990426de7e707 | 8,283 | py | Python | venv/Lib/site-packages/websocket/tests/test_http.py | GuilhermeJC13/storIA | eeecbe9030426f70c6aa73ca0ce8382860c8495c | [
"MIT"
] | 4 | 2021-07-27T23:39:02.000Z | 2021-09-23T04:17:08.000Z | venv/Lib/site-packages/websocket/tests/test_http.py | GuilhermeJC13/storIA | eeecbe9030426f70c6aa73ca0ce8382860c8495c | [
"MIT"
] | 12 | 2021-04-11T19:46:06.000Z | 2021-06-18T16:08:37.000Z | venv/Lib/site-packages/websocket/tests/test_http.py | GuilhermeJC13/storIA | eeecbe9030426f70c6aa73ca0ce8382860c8495c | [
"MIT"
] | 3 | 2021-07-27T17:33:58.000Z | 2021-07-29T12:46:59.000Z | # -*- coding: utf-8 -*-
#
"""
websocket - WebSocket client library for Python
Copyright (C) 2010 Hiroki Ohtani(liris)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
ve... | 50.815951 | 212 | 0.68212 |
acfdb0cf2b3947bda82b7f5ee751eb3022dc939d | 22,544 | py | Python | pgmpy/models/DynamicBayesianNetwork.py | NunoEdgarGFlowHub/pgmpy | ac0ecc8f5bdd14999c386c6b00a3ce77407b83ce | [
"MIT"
] | 1 | 2016-08-27T18:30:57.000Z | 2016-08-27T18:30:57.000Z | pgmpy/models/DynamicBayesianNetwork.py | NunoEdgarGFlowHub/pgmpy | ac0ecc8f5bdd14999c386c6b00a3ce77407b83ce | [
"MIT"
] | null | null | null | pgmpy/models/DynamicBayesianNetwork.py | NunoEdgarGFlowHub/pgmpy | ac0ecc8f5bdd14999c386c6b00a3ce77407b83ce | [
"MIT"
] | 1 | 2016-08-27T18:31:00.000Z | 2016-08-27T18:31:00.000Z | from itertools import combinations
from collections import defaultdict
import numpy as np
import networkx as nx
from pgmpy.factors import TabularCPD
from pgmpy.base import DirectedGraph, UndirectedGraph
class DynamicBayesianNetwork(DirectedGraph):
def __init__(self, ebunch=None):
"""
Base class ... | 41.365138 | 117 | 0.490596 |
62b12507ed3710e5cf4c8c7dc898a98d1d5aae9d | 96,809 | py | Python | test/functional/p2p_segwit.py | Altcoin-Cash/bitcoinV | bbb0ded0ea81e8a418c439fb32ac655713d58795 | [
"MIT"
] | 122 | 2019-05-08T22:15:42.000Z | 2022-03-18T08:12:48.000Z | test/functional/p2p_segwit.py | Altcoin-Cash/bitcoinV | bbb0ded0ea81e8a418c439fb32ac655713d58795 | [
"MIT"
] | 91 | 2016-03-02T12:24:46.000Z | 2021-02-20T13:45:05.000Z | test/functional/p2p_segwit.py | Altcoin-Cash/bitcoinV | bbb0ded0ea81e8a418c439fb32ac655713d58795 | [
"MIT"
] | 58 | 2019-05-24T10:27:19.000Z | 2022-03-10T20:55:29.000Z | #!/usr/bin/env python3
# Copyright (c) 2016-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test segwit transactions and blocks on P2P network."""
from binascii import hexlify
import math
import ... | 46.275813 | 220 | 0.655053 |
cada63a4bdf3240a90fbd29d70e442eb0a4e9e51 | 349 | py | Python | MATA37-ILP 2021.2/JUDE/Lista 3 e Prova 3 - Loop/lista3_E.py | jeffersonraimon/Programming-UFBA | 6a6803bfd0e6aa72f8c2b9ffa120792d73c727ca | [
"MIT"
] | 1 | 2021-12-09T12:55:56.000Z | 2021-12-09T12:55:56.000Z | MATA37-ILP 2021.2/JUDE/Lista 3 e Prova 3 - Loop/lista3_E.py | jeffersonraimon/Programming-UFBA | 6a6803bfd0e6aa72f8c2b9ffa120792d73c727ca | [
"MIT"
] | null | null | null | MATA37-ILP 2021.2/JUDE/Lista 3 e Prova 3 - Loop/lista3_E.py | jeffersonraimon/Programming-UFBA | 6a6803bfd0e6aa72f8c2b9ffa120792d73c727ca | [
"MIT"
] | 1 | 2022-02-21T12:01:53.000Z | 2022-02-21T12:01:53.000Z | E, P =input().split()
E = int(E)
P = int(P)
cont = E - P
contador = 1
contadorP = P - 1
if contadorP > 0:
while cont > 0:
cont = cont - contadorP
contador = contador + 1
if contadorP <= 0:
print("F")
break
contadorP = contadorP - 1
else:
print(c... | 19.388889 | 33 | 0.495702 |
a3ea11876ff415908cf5730e548a0e6cc5d6ec81 | 2,949 | py | Python | turtletrans/pl.py | wrwrwr/turtle-trans | 3b906bfaa45912d16a8b8877649388539b02eb75 | [
"MIT"
] | null | null | null | turtletrans/pl.py | wrwrwr/turtle-trans | 3b906bfaa45912d16a8b8877649388539b02eb75 | [
"MIT"
] | null | null | null | turtletrans/pl.py | wrwrwr/turtle-trans | 3b906bfaa45912d16a8b8877649388539b02eb75 | [
"MIT"
] | null | null | null | from .translate import translate_methods, turtle_subclass
# Translate the class name itself.
Żółw = Żółwik = turtle_subclass("Żółw")
# Original method --> list of aliases (order as in turtle docs).
translate_methods(Żółw, {
# Turtle motion.
'forward': ("naprzód", "np", "doprzodu", "dp"),
'back': ("wstecz"... | 35.107143 | 72 | 0.565955 |
ad44640302c6d34e8e326934a920c13e45f93daa | 12,824 | py | Python | plgx-esp-ui/migrations/versions/d2b00dd93241_initial_revision.py | dhoomakethu/plgx-esp | b466b52a5e16a0d12a61e505e48add83bee5bad4 | [
"MIT"
] | 20 | 2019-12-09T13:55:13.000Z | 2022-01-10T09:10:42.000Z | plgx-esp-ui/migrations/versions/d2b00dd93241_initial_revision.py | dhoomakethu/plgx-esp | b466b52a5e16a0d12a61e505e48add83bee5bad4 | [
"MIT"
] | 13 | 2019-12-03T13:27:27.000Z | 2021-12-03T05:22:49.000Z | plgx-esp-ui/migrations/versions/d2b00dd93241_initial_revision.py | dhoomakethu/plgx-esp | b466b52a5e16a0d12a61e505e48add83bee5bad4 | [
"MIT"
] | 16 | 2019-11-15T11:45:06.000Z | 2022-01-07T08:07:11.000Z | """Initial revision for migrations going forward.
Revision ID: d2b00dd93241
Revises: None
Create Date: 2016-05-01 09:57:32.779107
"""
# revision identifiers, used by Alembic.
revision = 'd2b00dd93241'
down_revision = None
from alembic import op
import sqlalchemy as sa
import polylogyx.database
from sqlalchemy.diale... | 50.488189 | 98 | 0.514738 |
e122da9a7daca39fe4d287f08eb1ff30f9af0927 | 2,460 | py | Python | carin/app.py | fiskurgit/Carin | 41f5e8003d169f1f0454e7b674daf341d238f061 | [
"Unlicense"
] | null | null | null | carin/app.py | fiskurgit/Carin | 41f5e8003d169f1f0454e7b674daf341d238f061 | [
"Unlicense"
] | null | null | null | carin/app.py | fiskurgit/Carin | 41f5e8003d169f1f0454e7b674daf341d238f061 | [
"Unlicense"
] | null | null | null | from carin.help import show_help
from carin.help import show_bad_argument_help
from enum import Enum, auto
import sys
import getopt
import urllib.request
import json
debug = False
base_url = "https://api.carbonintensity.org.uk"
def log(message):
if debug:
print(message)
def run():
log("Carbon Inten... | 27.954545 | 88 | 0.600813 |
05d1496f28cbbe6287d3a21c15caa2d5a5f7d05e | 10,078 | py | Python | mlep/mlep_process.py | NREL/python-mlep | 3d8284d04b551093005c162680a72523911bfeaa | [
"BSD-3-Clause"
] | 1 | 2021-04-28T01:51:21.000Z | 2021-04-28T01:51:21.000Z | mlep/mlep_process.py | NREL/python-mlep | 3d8284d04b551093005c162680a72523911bfeaa | [
"BSD-3-Clause"
] | 1 | 2020-12-28T16:28:46.000Z | 2020-12-28T16:28:46.000Z | mlep/mlep_process.py | NREL/python-mlep | 3d8284d04b551093005c162680a72523911bfeaa | [
"BSD-3-Clause"
] | null | null | null | ########################################################################################################################
# Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, ar... | 43.627706 | 124 | 0.571344 |
177f285cbbcf4bbac268526b21c11d505366d5cf | 5,174 | py | Python | plugins/modules/panos_commit_firewall.py | bkarypid/pan-os-ansible | d7b376192b24fd7c8f0af6debc099a0aa676b6fd | [
"Apache-2.0"
] | null | null | null | plugins/modules/panos_commit_firewall.py | bkarypid/pan-os-ansible | d7b376192b24fd7c8f0af6debc099a0aa676b6fd | [
"Apache-2.0"
] | 22 | 2020-10-19T06:12:10.000Z | 2022-03-07T10:04:30.000Z | plugins/modules/panos_commit_firewall.py | patrickdaj/pan-os-ansible | 1e3daf5fe0d862516561cc95e420691c03a38403 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2020 Palo Alto Networks, 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
#
#... | 29.735632 | 96 | 0.674333 |
2c3d8fb0d1fea47d6d386165cb5190df9261201d | 156 | py | Python | whiteboxgui/__init__.py | dongyi1996/whiteboxgui | 7c4a7fcc4efb4e53dabe9770b330afe56e8a3060 | [
"MIT"
] | null | null | null | whiteboxgui/__init__.py | dongyi1996/whiteboxgui | 7c4a7fcc4efb4e53dabe9770b330afe56e8a3060 | [
"MIT"
] | null | null | null | whiteboxgui/__init__.py | dongyi1996/whiteboxgui | 7c4a7fcc4efb4e53dabe9770b330afe56e8a3060 | [
"MIT"
] | 1 | 2021-01-23T18:07:32.000Z | 2021-01-23T18:07:32.000Z | """Top-level package for whiteboxgui."""
__author__ = """Qiusheng Wu"""
__email__ = 'giswqs@gmail.com'
__version__ = '0.1.3'
from .whiteboxgui import show | 22.285714 | 40 | 0.711538 |
eeba0764a2e307d930f0c634fc8620a6c3ae2a8a | 307 | py | Python | jiraticketing/models.py | GMedian/archerysec | 9591fdb6b21ca56d77364d1433acbaff84437c7f | [
"BSD-3-Clause"
] | 4 | 2019-03-19T16:53:49.000Z | 2021-12-18T22:12:55.000Z | jiraticketing/models.py | GMedian/archerysec | 9591fdb6b21ca56d77364d1433acbaff84437c7f | [
"BSD-3-Clause"
] | 8 | 2020-02-12T00:43:21.000Z | 2022-03-11T23:25:08.000Z | jiraticketing/models.py | GMedian/archerysec | 9591fdb6b21ca56d77364d1433acbaff84437c7f | [
"BSD-3-Clause"
] | 1 | 2018-08-12T17:29:35.000Z | 2018-08-12T17:29:35.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
class jirasetting(models.Model):
jira_server = models.TextField(blank=True, null=True)
jira_username = models.TextField(blank=True, null=True)
jira_password = models.TextField(blank=True, null=True)
| 27.909091 | 59 | 0.749186 |
74583fc16f93b4f5e52c2c15a580f54a7c28af65 | 48 | py | Python | woke/woke/d_compile/solc_frontend/exceptions.py | Ackee-Blockchain/woke | 0d27de25720142beb9619a89619b7a94c3556af1 | [
"ISC"
] | 7 | 2022-01-28T06:50:00.000Z | 2022-02-14T11:34:32.000Z | woke/woke/d_compile/solc_frontend/exceptions.py | Ackee-Blockchain/woke | 0d27de25720142beb9619a89619b7a94c3556af1 | [
"ISC"
] | 30 | 2022-01-26T17:54:48.000Z | 2022-03-21T12:33:53.000Z | woke/woke/d_compile/solc_frontend/exceptions.py | Ackee-Blockchain/woke | 0d27de25720142beb9619a89619b7a94c3556af1 | [
"ISC"
] | null | null | null | class SolcCompilationError(Exception):
pass
| 16 | 38 | 0.791667 |
b1e4631a16ce2602984be2f4ddb4ac76d4c51952 | 8,614 | py | Python | simple_history/tests/tests/test_manager.py | john-parton/django-simple-history | 8255458909e10e31f91cb671893b29975c648141 | [
"BSD-3-Clause"
] | 1 | 2021-03-02T11:57:12.000Z | 2021-03-02T11:57:12.000Z | simple_history/tests/tests/test_manager.py | john-parton/django-simple-history | 8255458909e10e31f91cb671893b29975c648141 | [
"BSD-3-Clause"
] | 55 | 2020-12-25T06:47:15.000Z | 2022-03-28T20:06:13.000Z | simple_history/tests/tests/test_manager.py | john-parton/django-simple-history | 8255458909e10e31f91cb671893b29975c648141 | [
"BSD-3-Clause"
] | null | null | null | from datetime import datetime, timedelta
from operator import attrgetter
from django.contrib.auth import get_user_model
from django.db import IntegrityError
from django.test import TestCase, skipUnlessDBFeature
from ..models import Document, Poll
User = get_user_model()
class AsOfTest(TestCase):
model = Docum... | 34.318725 | 83 | 0.620385 |
716aa2c1ed37224ff178a527d2b02f3fd7ec35b0 | 9,014 | py | Python | traversals/binary_tree_traversals.py | writtik/Python | cead6d77e1f084557dcf7ef659c23b54bdb286b9 | [
"MIT"
] | null | null | null | traversals/binary_tree_traversals.py | writtik/Python | cead6d77e1f084557dcf7ef659c23b54bdb286b9 | [
"MIT"
] | null | null | null | traversals/binary_tree_traversals.py | writtik/Python | cead6d77e1f084557dcf7ef659c23b54bdb286b9 | [
"MIT"
] | null | null | null | # flake8: noqa
"""
This is pure Python implementation of tree traversal algorithms
"""
from __future__ import annotations
import queue
class TreeNode:
def __init__(self, data):
self.data = data
self.right = None
self.left = None
def build_tree():
print("\n********Press N to stop ... | 29.077419 | 81 | 0.589749 |
24dea8c23635079d76503504a11ec99b74c28151 | 1,839 | py | Python | fuzzytools/matplotlib/lims.py | oscarpimentel/fuzzy-tools | edbde6a1e56c1c564cca609e4d0cc9cda906b992 | [
"MIT"
] | null | null | null | fuzzytools/matplotlib/lims.py | oscarpimentel/fuzzy-tools | edbde6a1e56c1c564cca609e4d0cc9cda906b992 | [
"MIT"
] | null | null | null | fuzzytools/matplotlib/lims.py | oscarpimentel/fuzzy-tools | edbde6a1e56c1c564cca609e4d0cc9cda906b992 | [
"MIT"
] | null | null | null | from __future__ import print_function
from __future__ import division
from . import _C
import matplotlib.pyplot as plt
import numpy as np
from copy import copy, deepcopy
EXTENDED_PERCENT = 0.1
############################################################################################################################... | 35.365385 | 163 | 0.650353 |
e2c038b51b502520cbffea59fbb6286fd618ea75 | 1,169 | py | Python | pyplanes/fem/meshutils.py | pyplanes/pyplanes | 0b69ac4cfff0d278497fe2ad5ae096721c983f6f | [
"MIT"
] | null | null | null | pyplanes/fem/meshutils.py | pyplanes/pyplanes | 0b69ac4cfff0d278497fe2ad5ae096721c983f6f | [
"MIT"
] | 1 | 2021-06-01T23:05:58.000Z | 2021-06-01T23:05:58.000Z | pyplanes/fem/meshutils.py | pyplanes/pyplanes | 0b69ac4cfff0d278497fe2ad5ae096721c983f6f | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# -*- coding:utf8 -*-
#
# meshutils.py
#
# This file is part of pyplanes, a software distributed under the MIT license.
# For any question, please contact mathieu@matael.org.
#
# Copyright (c) 2018 The pyplanes authors
#
# Permission is hereby granted, free of charge, to any person obtaining a c... | 32.472222 | 80 | 0.735672 |
493c096969654a485be8247efcec814ee8d383c5 | 4,029 | py | Python | rpi_src/src/nmea_navsat_driver/src/libnmea_navsat_driver/nodes/nmea_socket_driver.py | HyunCello/Tutorial | 1254b2ce66a5fe7450e254ac636064877b2416f7 | [
"Apache-2.0"
] | 3 | 2020-07-31T07:10:46.000Z | 2021-11-14T16:21:17.000Z | rpi_src/src/nmea_navsat_driver/src/libnmea_navsat_driver/nodes/nmea_socket_driver.py | HyunCello/Tutorial | 1254b2ce66a5fe7450e254ac636064877b2416f7 | [
"Apache-2.0"
] | 6 | 2020-08-19T21:21:58.000Z | 2020-10-05T13:33:19.000Z | rpi_src/src/nmea_navsat_driver/src/libnmea_navsat_driver/nodes/nmea_socket_driver.py | HyunCello/Tutorial | 1254b2ce66a5fe7450e254ac636064877b2416f7 | [
"Apache-2.0"
] | 1 | 2021-04-17T14:10:43.000Z | 2021-04-17T14:10:43.000Z | # Software License Agreement (BSD License)
#
# Copyright (c) 2016, Rein Appeldoorn
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above cop... | 36.297297 | 83 | 0.671134 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.