text stringlengths 322 761k |
|---|
import os
import datetime
import pytest
from doit import tools
from doit import task
def test_create_folder():
def rm_dir():
if os.path.exists(DIR_DEP):
os.removedirs(DIR_DEP)
DIR_DEP = os.path.join(os.path.dirname(__file__),"parent/child/")
rm_dir()
assert True == tools.create_... |
# Copyright (c) 2015-2016 Vector 35 LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, ... |
from AG_fft_tools import correlate2d
from agpy import gaussfitter
import warnings
import numpy as np
def cross_correlation_shifts_FITS(fitsfile1, fitsfile2, return_cropped_images=False, quiet=True, sigma_cut=False, **kwargs):
"""
Determine the shift between two FITS images using the cross-correlation
techn... |
"""
Internal tasks are tasks that are started from the teuthology infrastructure.
Note that there is no corresponding task defined for this module. All of
the calls are made from other modules, most notably teuthology/run.py
"""
from cStringIO import StringIO
import contextlib
import logging
import os
import time
impo... |
# -*- coding: utf-8 -*-
#
# pylast -
# A Python interface to Last.fm and Libre.fm
#
# Copyright 2008-2010 Amr Hassan
# Copyright 2013-2018 hugovk
#
# 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 Lice... |
{
'targets': [
{
'target_name': 'compiler',
'type': 'static_library',
'include_dirs': [
'include',
'src',
'externals/utf8proc',
'externals/json-parser',
],
'sources': [
'src/compiler/build_tables/build_parse_table.cc',
'src/compiler/bu... |
import argparse
import os
import subprocess
import sys
import pty
import multiprocessing
from livereload import Server
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
__version__ = '0.1.0'
class _WatchdogHandler(FileSystemEventHandler):
def __init__(self, watcher, a... |
"#!/usr/bin/env python\n\n\"\"\"Run some linters on files of various types.\"\"\"\n\n\nUSAGE = \"\"\(...TRUNCATED) |
"__version__ = \"0.94\"\nimport helpers\n\nimport os, shutil\nmodule_dir = os.path.abspath(os.path.d(...TRUNCATED) |
"from __future__ import print_function, unicode_literals\nimport re, time, json\nfrom collections im(...TRUNCATED) |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 4