code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
from .element import Element
from .trace import trace
def to_open(ns):
return ' '.join(['namespace {0} {{'.format(n) for n in ns])
def to_close(ns):
return '}' * len(ns)
class Namespace(Element):
@trace
def __init__(self, *args, **kwargs):
Element.__init__(self, **kwargs)
self.ns = li... | [
[
1,
0,
0.0417,
0.0417,
0,
0.66,
0,
736,
0,
1,
0,
0,
736,
0,
0
],
[
1,
0,
0.0833,
0.0417,
0,
0.66,
0.25,
211,
0,
1,
0,
0,
211,
0,
0
],
[
2,
0,
0.1875,
0.0833,
0,
0.... | [
"from .element import Element",
"from .trace import trace",
"def to_open(ns):\n return ' '.join(['namespace {0} {{'.format(n) for n in ns])",
" return ' '.join(['namespace {0} {{'.format(n) for n in ns])",
"def to_close(ns):\n return '}' * len(ns)",
" return '}' * len(ns)",
"class Namespace(... |
from .element import TemplateElement
from .trace import trace
class Include(TemplateElement):
'''An include file in an implementation file.
Args:
filepath: The path components of the file to include.
'''
@trace
def __init__(self,
phase,
filepath):
... | [
[
1,
0,
0.0345,
0.0345,
0,
0.66,
0,
736,
0,
1,
0,
0,
736,
0,
0
],
[
1,
0,
0.069,
0.0345,
0,
0.66,
0.25,
211,
0,
1,
0,
0,
211,
0,
0
],
[
3,
0,
0.4828,
0.6552,
0,
0.6... | [
"from .element import TemplateElement",
"from .trace import trace",
"class Include(TemplateElement):\n '''An include file in an implementation file.\n\n Args:\n filepath: The path components of the file to include.\n '''\n\n @trace",
" '''An include file in an implementation file.\n\n A... |
from .element import SigTemplateElement
from .include import ImplInclude
from .trace import trace
header_getter = 'static $type $property_name();'
header_setter = 'static void $property_name($header_signature);'
impl_getter = '''
$type $class_name::$property_name() {
using namespace boost::python;
try {
... | [
[
1,
0,
0.0149,
0.0149,
0,
0.66,
0,
736,
0,
1,
0,
0,
736,
0,
0
],
[
1,
0,
0.0299,
0.0149,
0,
0.66,
0.1429,
142,
0,
1,
0,
0,
142,
0,
0
],
[
1,
0,
0.0448,
0.0149,
0,
... | [
"from .element import SigTemplateElement",
"from .include import ImplInclude",
"from .trace import trace",
"header_getter = 'static $type $property_name();'",
"header_setter = 'static void $property_name($header_signature);'",
"impl_getter = '''\n$type $class_name::$property_name() {\n using namespace ... |
from .class_method import class_method, ClassMethod
from .class_property import ClassProperty
from .cls import Class
from .constructor import Constructor
from .function import function, Function
from .inline import InlineFunction
from .method import method, Method
from .module import Module
from .module_property import... | [
[
1,
0,
0.0769,
0.0769,
0,
0.66,
0,
162,
0,
2,
0,
0,
162,
0,
0
],
[
1,
0,
0.1538,
0.0769,
0,
0.66,
0.0833,
101,
0,
1,
0,
0,
101,
0,
0
],
[
1,
0,
0.2308,
0.0769,
0,
... | [
"from .class_method import class_method, ClassMethod",
"from .class_property import ClassProperty",
"from .cls import Class",
"from .constructor import Constructor",
"from .function import function, Function",
"from .inline import InlineFunction",
"from .method import method, Method",
"from .module im... |
import os
from itertools import chain
from .element import Element
from .forward_decl import ForwardDecl
from .include import HeaderInclude, ImplInclude
from .trace import trace
from .using import Using
class TranslationUnit(Element):
@trace
def __init__(self,
guard=None,
hea... | [
[
1,
0,
0.0118,
0.0118,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0235,
0.0118,
0,
0.66,
0.1429,
808,
0,
1,
0,
0,
808,
0,
0
],
[
1,
0,
0.0471,
0.0118,
0,
... | [
"import os",
"from itertools import chain",
"from .element import Element",
"from .forward_decl import ForwardDecl",
"from .include import HeaderInclude, ImplInclude",
"from .trace import trace",
"from .using import Using",
"class TranslationUnit(Element):\n @trace\n def __init__(self,\n ... |
from .element import TemplateElement
from .trace import trace
class InlineFunction(TemplateElement):
'''Simple, verbatim inline code for a header file.
'''
@trace
def __init__(self,
code,
*args,
**kwargs):
TemplateElement.__init__(
... | [
[
1,
0,
0.05,
0.05,
0,
0.66,
0,
736,
0,
1,
0,
0,
736,
0,
0
],
[
1,
0,
0.1,
0.05,
0,
0.66,
0.5,
211,
0,
1,
0,
0,
211,
0,
0
],
[
3,
0,
0.575,
0.8,
0,
0.66,
1,
... | [
"from .element import TemplateElement",
"from .trace import trace",
"class InlineFunction(TemplateElement):\n '''Simple, verbatim inline code for a header file.\n '''\n\n @trace\n def __init__(self,\n code,\n *args,",
" '''Simple, verbatim inline code for a heade... |
from .element import TemplateElement
from .include import HeaderInclude, ImplInclude
from .trace import trace
header_template = 'boost::python::object $module_function();'
impl_template = '''
boost::python::object $module_function()
{
static boost::python::object mod;
static bool initialized = false;
if (!init... | [
[
1,
0,
0.0175,
0.0175,
0,
0.66,
0,
736,
0,
1,
0,
0,
736,
0,
0
],
[
1,
0,
0.0351,
0.0175,
0,
0.66,
0.2,
142,
0,
2,
0,
0,
142,
0,
0
],
[
1,
0,
0.0526,
0.0175,
0,
0.6... | [
"from .element import TemplateElement",
"from .include import HeaderInclude, ImplInclude",
"from .trace import trace",
"header_template = 'boost::python::object $module_function();'",
"impl_template = '''\nboost::python::object $module_function()\n{\n static boost::python::object mod;\n static bool initia... |
import os
from .build_products import BuildProducts as products
class SharedLib(object):
'''Represents a single shared library in the build_products map.
This can be used to configure build environments to link/build
against this library.
'''
def __init__(self,
lib_name,
... | [
[
1,
0,
0.0109,
0.0109,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0326,
0.0109,
0,
0.66,
0.2,
442,
0,
1,
0,
0,
442,
0,
0
],
[
3,
0,
0.1739,
0.25,
0,
0.66,... | [
"import os",
"from .build_products import BuildProducts as products",
"class SharedLib(object):\n '''Represents a single shared library in the build_products map.\n\n This can be used to configure build environments to link/build\n against this library.\n '''\n def __init__(self,\n ... |
'''These are a collection of build variants.
'''
import logging, sys
logger = logging.getLogger('bygg.variant')
class Variant(object):
def __init__(self, name):
self.name = name
def configure(self, env):
pass
class DebugVariant(Variant):
def __init__(self, name='debug'):
sup... | [
[
8,
0,
0.0273,
0.0364,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0727,
0.0182,
0,
0.66,
0.0833,
715,
0,
2,
0,
0,
715,
0,
0
],
[
14,
0,
0.1091,
0.0182,
0,
0.6... | [
"'''These are a collection of build variants.\n'''",
"import logging, sys",
"logger = logging.getLogger('bygg.variant')",
"class Variant(object):\n def __init__(self, name):\n self.name = name\n\n def configure(self, env):\n pass",
" def __init__(self, name):\n self.name = name... |
class BuildProducts(object):
'''A class to help keep track of build products in the build.
Really this is just a wrapper around a dict stored at the key
'BUILD_TOOL' in an environment. This class doesn't worry about
what stored in that dict, though it's generally things like
SharedLib configurators... | [
[
3,
0,
0.5,
0.9744,
0,
0.66,
0,
456,
0,
3,
0,
0,
186,
0,
0
],
[
8,
1,
0.1282,
0.1795,
1,
0.35,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
1,
0.4872,
0.4872,
1,
0.35,
0.... | [
"class BuildProducts(object):\n '''A class to help keep track of build products in the build.\n\n Really this is just a wrapper around a dict stored at the key\n 'BUILD_TOOL' in an environment. This class doesn't worry about\n what stored in that dict, though it's generally things like\n SharedLib co... |
'''A collection of utilities for scons builds.
'''
from .tools import build_program, build_shared_library
from .variant import *
from .build_products import BuildProducts as products
| [
[
8,
0,
0.2143,
0.2857,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.5714,
0.1429,
0,
0.66,
0.3333,
409,
0,
2,
0,
0,
409,
0,
0
],
[
1,
0,
0.7143,
0.1429,
0,
0.66... | [
"'''A collection of utilities for scons builds.\n'''",
"from .tools import build_program, build_shared_library",
"from .variant import *",
"from .build_products import BuildProducts as products"
] |
import matplotlib.pyplot as plt
import glob
def readMetaData(dirname):
filename = glob.glob(dirname + '/*metadata')[0]
f = open(filename)
l = []
for line in f:
l += [line.split()]
result = l[3:-1]
result = [[float(v[0]), float(v[1])] for v in result]
return result
... | [
[
1,
0,
0.0233,
0.0233,
0,
0.66,
0,
596,
0,
1,
0,
0,
596,
0,
0
],
[
1,
0,
0.0465,
0.0233,
0,
0.66,
0.0769,
958,
0,
1,
0,
0,
958,
0,
0
],
[
2,
0,
0.186,
0.2093,
0,
0... | [
"import matplotlib.pyplot as plt",
"import glob",
"def readMetaData(dirname):\n filename = glob.glob(dirname + '/*metadata')[0]\n f = open(filename)\n l = []\n for line in f:\n l += [line.split()]\n result = l[3:-1]\n result = [[float(v[0]), float(v[1])] for v in result]",
" filena... |
from numpy import *
import matplotlib.pyplot as plt
import glob
import pylab as P
def getAttemptInfo(dirname):
filename = glob.glob(dirname + '/*stepcnt*')[0]
fitness = float(filename.split('_')[1].split('\\')[-1])
time = int(filename.split('_time=')[1].split('_')[0])
steps = int(filename.spli... | [
[
1,
0,
0.0139,
0.0139,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0278,
0.0139,
0,
0.66,
0.0435,
596,
0,
1,
0,
0,
596,
0,
0
],
[
1,
0,
0.0417,
0.0139,
0,
... | [
"from numpy import *",
"import matplotlib.pyplot as plt",
"import glob",
"import pylab as P",
"def getAttemptInfo(dirname):\n filename = glob.glob(dirname + '/*stepcnt*')[0]\n fitness = float(filename.split('_')[1].split('\\\\')[-1])\n time = int(filename.split('_time=')[1].split('_')[0])\n step... |
#====================================================================
# 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 ... | [
[
1,
0,
0.3514,
0.0135,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.3649,
0.0135,
0,
0.66,
0.1111,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.3784,
0.0135,
0,
... | [
"import os",
"import re",
"import tempfile",
"import shutil",
"ignore_pattern = re.compile('^(.svn|target|bin|classes)')",
"java_pattern = re.compile('^.*\\.java')",
"annot_pattern = re.compile('import org\\.apache\\.http\\.annotation\\.')",
"def process_dir(dir):\n files = os.listdir(dir)\n for... |
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 13 16:43:34 2014
Extract NOAA observations stored in CF convention format
Examples:
Get all site names from stored filenames:
import acrg_noaa as noaa
noaa.sites("CH4")
['ABP',
'ALT',
'AMS',
...]
Read monthly NOAA methane... | [
[
8,
0,
0.1336,
0.2466,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2671,
0.0068,
0,
0.66,
0.0909,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.274,
0.0068,
0,
0.66,... | [
"\"\"\"\nCreated on Mon Oct 13 16:43:34 2014\n\nExtract NOAA observations stored in CF convention format\n\nExamples:\n\nGet all site names from stored filenames:",
"import numpy as np",
"import acrg_cf as cf",
"import glob",
"import pandas",
"import datetime as dt",
"def directory(species):\n \n ... |
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 14 16:48:21 2015
@author: as13988
"""
import acrg_ICP | [
[
8,
0,
0.5,
0.625,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
1,
0.125,
0,
0.66,
1,
664,
0,
1,
0,
0,
664,
0,
0
]
] | [
"\"\"\"\nCreated on Wed Jan 14 16:48:21 2015\n\n@author: as13988\n\"\"\"",
"import acrg_ICP"
] |
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 14 16:17:55 2015
@author: as13988
"""
import numpy as np
import os
import datetime as dt
import matplotlib.ticker as ticker
import matplotlib.pyplot as plt
import matplotlib
import glob
import time
import csv
from itertools import chain
import pdb
# Class that contains... | [
[
8,
0,
0.0027,
0.0034,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0054,
0.0007,
0,
0.66,
0.0333,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0061,
0.0007,
0,
0.66... | [
"\"\"\"\nCreated on Wed Jan 14 16:17:55 2015\n\n@author: as13988\n\"\"\"",
"import numpy as np",
"import os",
"import datetime as dt",
"import matplotlib.ticker as ticker",
"import matplotlib.pyplot as plt",
"import matplotlib",
"import glob",
"import time",
"import csv",
"from itertools import ... |
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 23 15:09:23 2015
regrid_emissions(filename_of_EDGAR_emissions,filename_of_footprint): Input the filename and path
of the EDGAR emissions you want to regrid and the filename and path of a
footprint that defines the correct domain and grid spacing for the new grid.
The out... | [
[
8,
0,
0.0345,
0.056,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.069,
0.0043,
0,
0.66,
0.0526,
898,
0,
1,
0,
0,
898,
0,
0
],
[
1,
0,
0.0733,
0.0043,
0,
0.66,
... | [
"\"\"\"\nCreated on Mon Feb 23 15:09:23 2015\n\nregrid_emissions(filename_of_EDGAR_emissions,filename_of_footprint): Input the filename and path\nof the EDGAR emissions you want to regrid and the filename and path of a\nfootprint that defines the correct domain and grid spacing for the new grid.\n\nThe output will ... |
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 7 11:37:12 2014
Read CF-compliant netCDF file containing time, mole fractions, lon, lat, alt
This program just gets the variables and interprets the time co-ordinate
@author: chxmr
"""
from netCDF4 import Dataset
import datetime as dt
class read:
def __init__(sel... | [
[
8,
0,
0.1818,
0.2727,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3636,
0.0303,
0,
0.66,
0.3333,
9,
0,
1,
0,
0,
9,
0,
0
],
[
1,
0,
0.3939,
0.0303,
0,
0.66,
... | [
"\"\"\"\nCreated on Tue Oct 7 11:37:12 2014\n\nRead CF-compliant netCDF file containing time, mole fractions, lon, lat, alt\n\nThis program just gets the variables and interprets the time co-ordinate\n\n@author: chxmr",
"from netCDF4 import Dataset",
"import datetime as dt",
"class read:\n def __init__(se... |
# -*- coding: utf-8 -*-
"""
Get AGAGE data, average and filter for baseline
Examples:
Get Mace Head CH4 observations and average into 3 hourly periods:
import acrg_agage as agage
time, ch4, sigma = agage.get("MHD", "CH4", average="3H")
Calculate Cape Grim monthly means, with baseline filtering:
imp... | [
[
8,
0,
0.0431,
0.0745,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0863,
0.0039,
0,
0.66,
0.0625,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0902,
0.0039,
0,
0.66... | [
"\"\"\"\nGet AGAGE data, average and filter for baseline\n\nExamples:\n\nGet Mace Head CH4 observations and average into 3 hourly periods:\n\n import acrg_agage as agage",
"import numpy as np",
"import pandas as pd",
"import glob",
"from os.path import split, realpath",
"import re",
"from netCDF4 imp... |
# -*- coding: utf-8 -*-
"""
File to read in standard MOZART output file
Output will contain the timestamp, lat, lon, surface emissions and concentrations
If you want any other fields then you'll need to add them in
import acrg_MOZART as mozart
data=mozart.read('filename')
print data.time
Can also... | [
[
8,
0,
0.0162,
0.0278,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0309,
0.0015,
0,
0.66,
0.0455,
9,
0,
1,
0,
0,
9,
0,
0
],
[
1,
0,
0.0325,
0.0015,
0,
0.66,
... | [
"\"\"\"\n\n\nFile to read in standard MOZART output file\nOutput will contain the timestamp, lat, lon, surface emissions and concentrations\nIf you want any other fields then you'll need to add them in\n import acrg_MOZART as mozart \n data=mozart.read('filename')",
"import netCDF4",
"import numpy as n... |
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 21 11:03:33 2014
@author: chxmr
"""
import convert
from kz_filter import kz_filter
#from smooth import smooth
| [
[
8,
0,
0.4,
0.5,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.8,
0.1,
0,
0.66,
0.5,
438,
0,
1,
0,
0,
438,
0,
0
],
[
1,
0,
0.9,
0.1,
0,
0.66,
1,
365,
... | [
"\"\"\"\nCreated on Fri Nov 21 11:03:33 2014\n\n@author: chxmr\n\"\"\"",
"import convert",
"from kz_filter import kz_filter"
] |
# -*- coding: utf-8 -*-
"""
FUNCTIONS
sec2time: Convert "seconds since YYYY-MM-DD HH:MM" format (e.g. from CF files)
to datetime
Example:
time = \
acrg_time.convert.sec2time(seconds, "2000-01-01 00:00")
time2sec: Calculate seconds since some reference time. Assumes you want
a reference... | [
[
8,
0,
0.0915,
0.162,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1831,
0.007,
0,
0.66,
0.0833,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.1901,
0.007,
0,
0.66,
... | [
"\"\"\"\n\nFUNCTIONS\n\nsec2time: Convert \"seconds since YYYY-MM-DD HH:MM\" format (e.g. from CF files)\n to datetime\n\n Example:",
"import datetime as dt",
"import time as tm",
"import calendar",
"def check_iter(var):\n \n if not hasattr(var, '__iter__'):\n var = [var]\n notIter... |
# -*- coding: utf-8 -*-
"""
; :Purpose:
; Filter data using Kolmogorov-Zurbenko filter
;
; :Inputs:
; x_in: array of locations of the data to be filtered (e.g. time)
; y_in: array to be filtered
; sigma: array of uncertainties in y_in
;
; :Keywords:
; iterations: (input, integer) numeber of filter passe... | [
[
8,
0,
0.1899,
0.3418,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3797,
0.0127,
0,
0.66,
0.3333,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.3924,
0.0127,
0,
0.66... | [
"\"\"\"\n; :Purpose:\n; Filter data using Kolmogorov-Zurbenko filter\n; \n; :Inputs:\n; x_in: array of locations of the data to be filtered (e.g. time)\n; y_in: array to be filtered\n; sigma: array of uncertainties in y_in",
"import numpy as np",
"import matplotlib.dates as dates",
"def kz_filter(x_... |
# -*- coding: utf-8 -*-
"""
Created on Mon Nov 10 10:45:51 2014
Script to create footprint maps using netCDF processed NAME output.
site:
'MHD' Mace Head
'RGL' Ridgehill
'TAC' Tacolneston
'BSD' Bilsdale
'HFD' Heathfield
date in datetime format:
import datetime as dt
yourdate = dt.datetime(year,month,day,hour)
Footpr... | [
[
8,
0,
0.0762,
0.1468,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1524,
0.0019,
0,
0.66,
0.0323,
9,
0,
1,
0,
0,
9,
0,
0
],
[
1,
0,
0.1543,
0.0019,
0,
0.66,
... | [
"\"\"\"\nCreated on Mon Nov 10 10:45:51 2014\n\nScript to create footprint maps using netCDF processed NAME output.\n\nsite:\n'MHD' Mace Head\n'RGL' Ridgehill",
"import netCDF4 as nc",
"import numpy as np",
"import matplotlib.pyplot as plt",
"from mpl_toolkits.basemap import Basemap",
"import datetime as ... |
# -*- coding: utf-8 -*-
"""
Created on Tue Nov 11 11:23:48 2014
Areagrid: Calculate a grid of areas (m2) given arrays of
latitudes and longitudes
Example:
import acrg_grid
lat=np.arange(50., 60., 1.)
lon=np.arange(0., 10., 1.)
area=acrg_grid.areagrid(lat, lon)
@author: chxmr
"""
... | [
[
8,
0,
0.2436,
0.4103,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.4872,
0.0256,
0,
0.66,
0.5,
954,
0,
1,
0,
0,
954,
0,
0
],
[
2,
0,
0.7692,
0.4872,
0,
0.66,
... | [
"\"\"\"\nCreated on Tue Nov 11 11:23:48 2014\n\nAreagrid: Calculate a grid of areas (m2) given arrays of \n latitudes and longitudes\n\n Example:",
"import numpy as np",
"def areagrid(lat, lon):\n\n re=6367500.0\t#radius of Earth in m\n \n dlon=abs(np.mean(lon[1:] - lon[0:-1]))*np.pi/180.\n dlat=abs(n... |
# -*- coding: utf-8 -*-
"""
Created on Thu Nov 13 16:03:08 2014
FUNCTIONS
___________
distance
Calculates the distance in km between two lat/lon pairs using the haversine formula.
Example:
distance = acrg_grid.haversine.distance(origin, destination, radius=radius)
Inputs:
origin: [lat_1, lon_1] two eleme... | [
[
8,
0,
0.2714,
0.5214,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.5429,
0.0071,
0,
0.66,
0.1667,
526,
0,
1,
0,
0,
526,
0,
0
],
[
1,
0,
0.55,
0.0071,
0,
0.66,
... | [
"\"\"\"\nCreated on Thu Nov 13 16:03:08 2014\n \nFUNCTIONS\n___________ \n \n \ndistance",
"import math",
"import numpy as np",
"radius = 6371 #km",
"def distance(origin, destination, radius=radius):\n lat1, lon1 = origin\n lat2, lon2 = destination\n\n dlat = math.radians(lat2-lat1)\n dlon = mat... |
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 19 10:56:48 2014
; :Purpose:
; Calculate mid-point hybrid-coordinate pressure fields.
; For the ith level:
;
; P_i=A_i*P_0 + B_i*P_surface
;
; If /half is set, it is assumed that A (and B) define the coordinate system at
; grid cell boundaries. Mid-point ... | [
[
8,
0,
0.2263,
0.4211,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.4526,
0.0105,
0,
0.66,
0.2,
954,
0,
1,
0,
0,
954,
0,
0
],
[
14,
0,
0.4842,
0.0105,
0,
0.66,
... | [
"\"\"\"\nCreated on Wed Nov 19 10:56:48 2014\n; :Purpose:\n; Calculate mid-point hybrid-coordinate pressure fields.\n; For the ith level:\n; \n; P_i=A_i*P_0 + B_i*P_surface\n;",
"import numpy as np",
"P0=1.e5",
"half=0",
"B = 0",
"def hybridcoords(A, PS, B=B, P0=P0, half=half):\n\n #Define dime... |
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 21 10:03:36 2014
@author: chxmr
"""
from areagrid import areagrid
import haversine
from hybridcoords import hybridcoords
| [
[
8,
0,
0.4,
0.5,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.8,
0.1,
0,
0.66,
0.3333,
737,
0,
1,
0,
0,
737,
0,
0
],
[
1,
0,
0.9,
0.1,
0,
0.66,
0.6667,
... | [
"\"\"\"\nCreated on Fri Nov 21 10:03:36 2014\n\n@author: chxmr\n\"\"\"",
"from areagrid import areagrid",
"import haversine",
"from hybridcoords import hybridcoords"
] |
"""
Taken from
http://appengine-cookbook.appspot.com/recipe/restrict-application-to-an-authorized-set-of-users/
"""
import os
from google.appengine.ext import db
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appe... | [
[
8,
0,
0.0216,
0.0345,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0431,
0.0086,
0,
0.66,
0.0667,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0603,
0.0086,
0,
0.66... | [
"\"\"\"\nTaken from \n http://appengine-cookbook.appspot.com/recipe/restrict-application-to-an-authorized-set-of-users/\n\"\"\"",
"import os",
"from google.appengine.ext import db",
"from google.appengine.api import users",
"from google.appengine.ext import webapp",
"from google.appengine.ext.webapp impo... |
# -*- coding: iso-8859-1 -*-
# (c) 2010 Martin Wendt; see CloudDAV http://clouddav.googlecode.com/
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
import logging
from wsgidav.wsgidav_app import WsgiDAVApp, DEFAULT_CONFIG
from btfs.btfs_dav_provider import BTFSResourceProvider
fro... | [
[
1,
0,
0.0779,
0.013,
0,
0.66,
0,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.0909,
0.013,
0,
0.66,
0.1,
832,
0,
2,
0,
0,
832,
0,
0
],
[
1,
0,
0.1039,
0.013,
0,
0.66,
... | [
"import logging",
"from wsgidav.wsgidav_app import WsgiDAVApp, DEFAULT_CONFIG",
"from btfs.btfs_dav_provider import BTFSResourceProvider",
"from btfs.memcache_lock_storage import LockStorageMemcache",
"from btfs.google_domain_controller import GoogleDomainController",
"from google.appengine.ext.webapp.uti... |
class LockManagerInterface(object):
"""
+----------------------------------------------------------------------+
| TODO: document this interface |
| For now, see wsgidav.lock_manager instead |
+-----------------------------------... | [
[
3,
0,
0.5263,
1,
0,
0.66,
0,
487,
0,
0,
0,
0,
186,
0,
0
],
[
8,
1,
0.5526,
0.9474,
1,
0.48,
0,
0,
1,
0,
0,
0,
0,
0,
0
]
] | [
"class LockManagerInterface(object):\n \"\"\"\n +----------------------------------------------------------------------+\n | TODO: document this interface |\n | For now, see wsgidav.lock_manager instead |\n +---------------------------... |
class IDAVProvider(object):
"""
+----------------------------------------------------------------------+
| TODO: document this interface |
| For now, see wsgidav.DAVProvider instead. |
+-------------------------------------------... | [
[
3,
0,
0.5263,
1,
0,
0.66,
0,
231,
0,
0,
0,
0,
186,
0,
0
],
[
8,
1,
0.5526,
0.9474,
1,
0.38,
0,
0,
1,
0,
0,
0,
0,
0,
0
]
] | [
"class IDAVProvider(object):\n \"\"\"\n +----------------------------------------------------------------------+\n | TODO: document this interface |\n | For now, see wsgidav.DAVProvider instead. |\n +-----------------------------------... |
class PropertyManagerInterface(object):
"""
+----------------------------------------------------------------------+
| TODO: document this interface |
| For now, see wsgidav.lock_manager instead |
+-----------------------------... | [
[
3,
0,
0.5143,
0.9857,
0,
0.66,
0,
857,
0,
0,
0,
0,
186,
0,
0
],
[
8,
1,
0.5214,
0.9714,
1,
0.48,
0,
0,
1,
0,
0,
0,
0,
0,
0
]
] | [
"class PropertyManagerInterface(object):\n \"\"\"\n +----------------------------------------------------------------------+\n | TODO: document this interface |\n | For now, see wsgidav.lock_manager instead |\n +-----------------------... |
class IDomainController(object):
"""
+----------------------------------------------------------------------+
| TODO: document this interface |
| For now, see wsgidav.domain_controller instead |
+--------------------------------------... | [
[
3,
0,
0.5139,
1,
0,
0.66,
0,
826,
0,
0,
0,
0,
186,
0,
0
],
[
8,
1,
0.5278,
0.9722,
1,
0.38,
0,
0,
1,
0,
0,
0,
0,
0,
0
]
] | [
"class IDomainController(object):\n \"\"\"\n +----------------------------------------------------------------------+\n | TODO: document this interface |\n | For now, see wsgidav.domain_controller instead |\n +------------------------------... |
# (c) 2009-2011 Martin Wendt and contributors; see WsgiDAV http://wsgidav.googlecode.com/
# Original PyFileServer (c) 2005 Ho Chun Wei.
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
Implementation of a WebDAV provider that provides a very basic, read-only
resource layer e... | [
[
8,
0,
0.0613,
0.1094,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.117,
0.0019,
0,
0.66,
0.0833,
359,
0,
2,
0,
0,
359,
0,
0
],
[
1,
0,
0.1189,
0.0019,
0,
0.66,... | [
"\"\"\"\nImplementation of a WebDAV provider that provides a very basic, read-only\nresource layer emulation of a MySQL database.\n\nThis module is specific to the WsgiDAV application. It provides a \nclasses ``MySQLBrowserProvider``.\n\nUsage::",
"from wsgidav.dav_provider import DAVProvider, _DAVResource",
"f... |
# -*- coding: iso-8859-1 -*-
# (c) 2009-2011 Martin Wendt and contributors; see WsgiDAV http://wsgidav.googlecode.com/
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
DAV provider that publishes a Mercurial repository.
Note: This is **not** production code!
The reposit... | [
[
8,
0,
0.0621,
0.1129,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1194,
0.0016,
0,
0.66,
0.0588,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.121,
0.0016,
0,
0.66,... | [
"\"\"\"\nDAV provider that publishes a Mercurial repository.\n\nNote: This is **not** production code!\n\nThe repository is rendered as three top level collections.\n\nedit:",
"from pprint import pprint",
"from wsgidav.dav_error import DAVError, HTTP_FORBIDDEN",
"import os",
"from wsgidav.samples.dav_provid... |
# (c) 2009-2011 Martin Wendt and contributors; see WsgiDAV http://wsgidav.googlecode.com/
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
Implements a property manager based on CouchDB.
http://wiki.apache.org/couchdb/Reference
http://packages.python.org/CouchDB/views.ht... | [
[
8,
0,
0.0573,
0.0925,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1057,
0.0044,
0,
0.66,
0.1111,
480,
0,
1,
0,
0,
480,
0,
0
],
[
1,
0,
0.1101,
0.0044,
0,
0.66... | [
"\"\"\"\nImplements a property manager based on CouchDB.\n\n\nhttp://wiki.apache.org/couchdb/Reference\nhttp://packages.python.org/CouchDB/views.html",
"from wsgidav import util",
"import couchdb",
"from urllib import quote",
"from uuid import uuid4",
"__docformat__ = \"reStructuredText\"",
"_logger = u... |
#__all__ = ['nt_domain_controller',
# 'simplemysqlabstractionlayer',
# ]
| [] | [] |
# (c) 2009-2011 Martin Wendt and contributors; see WsgiDAV http://wsgidav.googlecode.com/
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
Implements a property manager based on MongoDB.
Usage: add this lines to wsgidav.conf::
from wsgidav.addons.mongo_property_manag... | [
[
8,
0,
0.0714,
0.1154,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1319,
0.0055,
0,
0.66,
0.1,
480,
0,
1,
0,
0,
480,
0,
0
],
[
1,
0,
0.1374,
0.0055,
0,
0.66,
... | [
"\"\"\"\nImplements a property manager based on MongoDB.\n\nUsage: add this lines to wsgidav.conf::\n\n from wsgidav.addons.mongo_property_manager import MongoPropertyManager\n prop_man_opts = {} \n propsmanager = MongoPropertyManager(prop_man_opts)",
"from wsgidav import util",
"import pymongo",
"fr... |
# (c) 2009-2011 Martin Wendt and contributors; see WsgiDAV http://wsgidav.googlecode.com/
# Original PyFileServer (c) 2005 Ho Chun Wei.
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
WSGI middleware for HTTP basic and digest authentication.
Usage::
from http_authen... | [
[
8,
0,
0.1084,
0.1984,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2089,
0.0026,
0,
0.66,
0.0909,
959,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2141,
0.0026,
0,
0.66,... | [
"\"\"\"\nWSGI middleware for HTTP basic and digest authentication.\n\nUsage::\n\n from http_authenticator import HTTPAuthenticator\n \n WSGIApp = HTTPAuthenticator(ProtectedWSGIApp, domain_controller, acceptbasic,",
"__docformat__ = \"reStructuredText\"",
"import random",
"import base64",
"try:\n f... |
# (c) 2009-2011 Martin Wendt and contributors; see WsgiDAV http://wsgidav.googlecode.com/
# Original PyFileServer (c) 2005 Ho Chun Wei.
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
WSGI middleware that handles GET requests on collections to display directories.
See `De... | [
[
8,
0,
0.0307,
0.0307,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0482,
0.0044,
0,
0.66,
0.1429,
760,
0,
3,
0,
0,
760,
0,
0
],
[
1,
0,
0.0526,
0.0044,
0,
0.66... | [
"\"\"\"\nWSGI middleware that handles GET requests on collections to display directories.\n\nSee `Developers info`_ for more information about the WsgiDAV architecture.\n\n.. _`Developers info`: http://docs.wsgidav.googlecode.com/hg/html/develop.html \n\"\"\"",
"from wsgidav.dav_error import DAVError, HTTP_OK, H... |
# (c) 2009-2011 Martin Wendt and contributors; see WsgiDAV http://wsgidav.googlecode.com/
# Original PyFileServer (c) 2005 Ho Chun Wei.
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
WSGI container, that handles the HTTP requests. This object is passed to the
WSGI server ... | [
[
1,
0,
0.0179,
0.0179,
0,
0.66,
0,
925,
0,
1,
0,
0,
925,
0,
0
],
[
1,
0,
0.0357,
0.0179,
0,
0.66,
0.0588,
127,
0,
1,
0,
0,
127,
0,
0
],
[
1,
0,
0.0536,
0.0179,
0,
... | [
"from fs_dav_provider import FilesystemProvider",
"from wsgidav.dir_browser import WsgiDavDirBrowser",
"from wsgidav.dav_provider import DAVProvider",
"from wsgidav.lock_storage import LockStorageDict",
"import time",
"import sys",
"import threading",
"import urllib",
"import util",
"from error_pr... |
# -*- coding: iso-8859-15 -*-
"""
ReadWriteLock
Taken from http://code.activestate.com/recipes/502283/
locks.py - Read-Write lock thread lock implementation
See the class documentation for more info.
Copyright (C) 2007, Heiko Wundram.
Released under the BSD-license.
"""
# Imports
# -------
from t... | [
[
8,
0,
0.0328,
0.0524,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0786,
0.0044,
0,
0.66,
0.3333,
83,
0,
3,
0,
0,
83,
0,
0
],
[
1,
0,
0.083,
0.0044,
0,
0.66,
... | [
"\"\"\"\nReadWriteLock\n\nTaken from http://code.activestate.com/recipes/502283/\n\nlocks.py - Read-Write lock thread lock implementation\n\nSee the class documentation for more info.",
"from threading import Condition, Lock, currentThread",
"from time import time",
"class ReadWriteLock(object):\n \"\"\"Re... |
# (c) 2009-2011 Martin Wendt and contributors; see WsgiDAV http://wsgidav.googlecode.com/
# Original PyFileServer (c) 2005 Ho Chun Wei.
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
Implements two storage providers for `LockManager`.
Two alternative lock storage classe... | [
[
8,
0,
0.0245,
0.031,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0426,
0.0052,
0,
0.66,
0.0833,
663,
0,
4,
0,
0,
663,
0,
0
],
[
1,
0,
0.0465,
0.0026,
0,
0.66,... | [
"\"\"\"\nImplements two storage providers for `LockManager`.\n \nTwo alternative lock storage classes are defined here: one in-memory \n(dict-based), and one persistent low performance variant using shelve.\n\nSee wsgidav.lock_manager.LockManager",
"from wsgidav.lock_manager import normalizeLockRoot, lockString,\... |
# (c) 2009-2011 Martin Wendt and contributors; see WsgiDAV http://wsgidav.googlecode.com/
# Original PyFileServer (c) 2005 Ho Chun Wei.
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
WSGI middleware that finds the registered mapped DAV-Provider, creates a new
RequestServe... | [
[
8,
0,
0.2539,
0.4712,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.4921,
0.0052,
0,
0.66,
0.2,
811,
0,
1,
0,
0,
811,
0,
0
],
[
1,
0,
0.4974,
0.0052,
0,
0.66,
... | [
"\"\"\"\nWSGI middleware that finds the registered mapped DAV-Provider, creates a new \nRequestServer instance, and dispatches the request.\n\n\n+-------------------------------------------------------------------------------+\n| The following documentation was taken over from PyFileServer and is outdated! |\n+----... |
# (c) 2009-2011 Martin Wendt and contributors; see WsgiDAV http://wsgidav.googlecode.com/
# Original PyFileServer (c) 2005 Ho Chun Wei.
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
Implementation of a domain controller that uses realm/username/password mappings
from the ... | [
[
8,
0,
0.2128,
0.3511,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3936,
0.0106,
0,
0.66,
0.3333,
509,
0,
1,
0,
0,
509,
0,
0
],
[
14,
0,
0.4043,
0.0106,
0,
0.6... | [
"\"\"\"\nImplementation of a domain controller that uses realm/username/password mappings\nfrom the configuration file and uses the share path as realm name.\n\nuserMap is defined a follows::\n\n userMap = {'realm1': {\n 'John Smith': {'description': '',",
"import sys",
"__docformat__ = \"reS... |
"""
Current WsgiDAV version number.
http://peak.telecommunity.com/DevCenter/setuptools#specifying-your-project-s-version
http://peak.telecommunity.com/DevCenter/setuptools#tagging-and-daily-build-or-snapshot-releases
"""
__version__ = "0.5.1"
| [
[
8,
0,
0.5,
0.8571,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
1,
0.1429,
0,
0.66,
1,
162,
1,
0,
0,
0,
0,
3,
0
]
] | [
"\"\"\"\nCurrent WsgiDAV version number.\n\nhttp://peak.telecommunity.com/DevCenter/setuptools#specifying-your-project-s-version\nhttp://peak.telecommunity.com/DevCenter/setuptools#tagging-and-daily-build-or-snapshot-releases\n\"\"\"",
"__version__ = \"0.5.1\""
] |
# (c) 2009-2011 Martin Wendt and contributors; see WsgiDAV http://wsgidav.googlecode.com/
# Original PyFileServer (c) 2005 Ho Chun Wei.
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
WSGI middleware used for debugging (optional).
This module dumps request and response in... | [
[
8,
0,
0.15,
0.265,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.285,
0.005,
0,
0.66,
0.2,
480,
0,
1,
0,
0,
480,
0,
0
],
[
1,
0,
0.29,
0.005,
0,
0.66,
0.4,
... | [
"\"\"\"\nWSGI middleware used for debugging (optional).\n\nThis module dumps request and response information to the console, depending\non current debug configuration.\n\nOn init:\n Define HTTP methods and litmus tests, that should turn on the verbose mode",
"from wsgidav import util",
"import sys",
"impo... |
#__all__ = []
| [] | [] |
# (c) 2009-2011 Martin Wendt and contributors; see WsgiDAV http://wsgidav.googlecode.com/
# Original PyFileServer (c) 2005 Ho Chun Wei.
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
Simple example how to a run WsgiDAV in a 3rd-party WSGI server.
"""
from tempfile import ... | [
[
8,
0,
0.122,
0.0732,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1707,
0.0244,
0,
0.66,
0.0833,
516,
0,
1,
0,
0,
516,
0,
0
],
[
1,
0,
0.1951,
0.0244,
0,
0.66,... | [
"\"\"\"\nSimple example how to a run WsgiDAV in a 3rd-party WSGI server.\n\"\"\"",
"from tempfile import gettempdir",
"from wsgidav.fs_dav_provider import FilesystemProvider",
"from wsgidav.version import __version__",
"from wsgidav.wsgidav_app import DEFAULT_CONFIG, WsgiDAVApp",
"__docformat__ = \"reStru... |
# (c) 2009-2011 Martin Wendt and contributors; see WsgiDAV http://wsgidav.googlecode.com/
# Original PyFileServer (c) 2005 Ho Chun Wei.
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
Implements a DAVError class that is used to signal WebDAV and HTTP errors.
"""
import tr... | [
[
8,
0,
0.0179,
0.0108,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0251,
0.0036,
0,
0.66,
0.0141,
423,
0,
1,
0,
0,
423,
0,
0
],
[
1,
0,
0.0287,
0.0036,
0,
0.66... | [
"\"\"\"\nImplements a DAVError class that is used to signal WebDAV and HTTP errors. \n\"\"\"",
"import traceback",
"import datetime",
"import cgi",
"import sys",
"import xml_tools",
"from xml_tools import etree #@UnusedImport",
"from wsgidav.version import __version__",
"if False: from xml.etree imp... |
# (c) 2009-2011 Martin Wendt and contributors; see WsgiDAV http://wsgidav.googlecode.com/
# Original PyFileServer (c) 2005 Ho Chun Wei.
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
Implements the `LockManager` object that provides the locking functionality.
The LockMan... | [
[
8,
0,
0.0433,
0.0726,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0806,
0.002,
0,
0.66,
0.0556,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.0827,
0.002,
0,
0.66,
... | [
"\"\"\"\nImplements the `LockManager` object that provides the locking functionality.\n\nThe LockManager requires a LockStorage object to implement persistence. \nTwo alternative lock storage classes are defined in the lock_storage module:\n\n- wsgidav.lock_storage.LockStorageDict\n- wsgidav.lock_storage.LockStora... |
# -*- coding: iso-8859-1 -*-
# (c) 2009-2011 Martin Wendt and contributors; see WsgiDAV http://wsgidav.googlecode.com/
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
"""
import stat
import os
import mimetypes
try:
from cStringIO import StringIO
except ImportErro... | [
[
8,
0,
0.0301,
0.0181,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0422,
0.006,
0,
0.66,
0.0769,
48,
0,
1,
0,
0,
48,
0,
0
],
[
1,
0,
0.0482,
0.006,
0,
0.66,
... | [
"\"\"\"\n\n\"\"\"",
"import stat",
"import os",
"import mimetypes",
"try:\n from cStringIO import StringIO\nexcept ImportError:\n from StringIO import StringIO #@UnusedImport",
" from cStringIO import StringIO",
" from StringIO import StringIO #@UnusedImport",
"from wsgidav.dav_provider im... |
# (c) 2009-2011 Martin Wendt and contributors; see WsgiDAV http://wsgidav.googlecode.com/
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
Implementation of a WebDAV provider that provides a very basic, read-only
resource layer emulation of a MongoDB database.
Usage: add t... | [
[
8,
0,
0.0881,
0.1447,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1635,
0.0063,
0,
0.66,
0.0625,
359,
0,
3,
0,
0,
359,
0,
0
],
[
1,
0,
0.1698,
0.0063,
0,
0.66... | [
"\"\"\"\nImplementation of a WebDAV provider that provides a very basic, read-only\nresource layer emulation of a MongoDB database.\n\nUsage: add the following entries to wsgidav.conf::\n\n from wsgidav.samples.mongo_dav_provider import MongoResourceProvider\n mongo_dav_opts = {}",
"from wsgidav.dav_provide... |
# -*- coding: iso-8859-1 -*-
# (c) 2010 Martin Wendt; see CloudDAV http://clouddav.googlecode.com/
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
from google.appengine.ext.webapp.util import logi... | [
[
1,
0,
0.0769,
0.0128,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.0897,
0.0128,
0,
0.66,
0.0909,
8,
0,
1,
0,
0,
8,
0,
0
],
[
1,
0,
0.1026,
0.0128,
0,
0.66... | [
"from google.appengine.ext import webapp",
"from google.appengine.ext.webapp import util",
"from google.appengine.ext.webapp.util import login_required",
"from google.appengine.api import users, memcache",
"from google.appengine.ext.webapp import template",
"from pprint import pformat",
"import os",
"... |
# -*- coding: iso-8859-1 -*-
# (c) 2010 Martin Wendt; see CloudDAV http://clouddav.googlecode.com/
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
Implementation of a WsgiDAV provider that implements a virtual file system based
on Google's Big Table.
"""
from btfs.model i... | [
[
8,
0,
0.019,
0.0138,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0276,
0.0034,
0,
0.66,
0.0833,
610,
0,
3,
0,
0,
610,
0,
0
],
[
1,
0,
0.031,
0.0034,
0,
0.66,
... | [
"\"\"\"\nImplementation of a WsgiDAV provider that implements a virtual file system based\non Google's Big Table.\n\"\"\"",
"from btfs.model import Path, Dir, File",
"import logging",
"import md5",
"import mimetypes",
"import fs",
"try:\n from cStringIO import StringIO\nexcept ImportError:\n from ... |
# -*- coding: iso-8859-1 -*-
# (c) 2010 Martin Wendt; see CloudDAV http://clouddav.googlecode.com/
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
#
# The original source for this module was taken from gaedav:
# (c) 2009 Haoyu Bai (http://gaedav.google.com/).
import os.path
import ... | [
[
1,
0,
0.0314,
0.0039,
0,
0.66,
0,
79,
0,
1,
0,
0,
79,
0,
0
],
[
1,
0,
0.0353,
0.0039,
0,
0.66,
0.1,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.0392,
0.0039,
0,
0.66,... | [
"import os.path",
"import logging",
"from google.appengine.ext import db",
"from google.appengine.ext.db import polymodel",
"from cache import cached_resource",
"DO_EXPENSIVE_CHECKS = False",
"class UnmappedPath(object):\n \"\"\"Dummy object to cache lookups for non-existent URLs.\"\"\"\n pass",
... |
# -*- coding: iso-8859-1 -*-
# (c) 2010 Martin Wendt; see CloudDAV http://clouddav.googlecode.com/
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
Implementation of a WsgiDAV provider that implements a virtual file system based
on Googles datastore (Bigtable).
"""
from b... | [
[
8,
0,
0.0482,
0.0351,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0702,
0.0088,
0,
0.66,
0.125,
459,
0,
1,
0,
0,
459,
0,
0
],
[
1,
0,
0.0789,
0.0088,
0,
0.66,... | [
"\"\"\"\nImplementation of a WsgiDAV provider that implements a virtual file system based\non Googles datastore (Bigtable). \n\"\"\"",
"from btfs.memcache_lock_storage import LockStorageMemcache",
"from wsgidav.lock_manager import LockManager, lockString",
"import logging",
"from btfs.btfs_dav_provider impo... |
# -*- coding: iso-8859-1 -*-
# (c) 2010 Martin Wendt; see CloudDAV http://clouddav.googlecode.com/
#
# The original source for this module was taken from gaedav:
# (c) 2009 Haoyu Bai (http://gaedav.google.com/).
"""
File system operations.
"""
import time
import StringIO
import logging
from model import Dir, File, Pat... | [
[
8,
0,
0.0329,
0.0141,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0469,
0.0047,
0,
0.66,
0.05,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0516,
0.0047,
0,
0.66,
... | [
"\"\"\"\nFile system operations.\n\"\"\"",
"import time",
"import StringIO",
"import logging",
"from model import Dir, File, Path",
"def initfs():\n \"\"\"\n Make sure fs already inited.\n (e.g. there's a '/' and '/dav' collection in db).\n \"\"\"\n logging.debug(\"fs.initfs\")\n if not ... |
import time, os, random
from google.appengine.api import memcache
CURRENT_VERSION_ID = os.environ.get('CURRENT_VERSION_ID','0')
local_cache = {}
DOG_PILE_WINDOW = 10 # seconds
import logging
def cash(ttl=60, key=None, ver=CURRENT_VERSION_ID, pre='', off=False):
"""
Copyright (C) 2009 twitter.c... | [
[
1,
0,
0.0063,
0.0063,
0,
0.66,
0,
654,
0,
3,
0,
0,
654,
0,
0
],
[
1,
0,
0.0125,
0.0063,
0,
0.66,
0.1429,
279,
0,
1,
0,
0,
279,
0,
0
],
[
14,
0,
0.0187,
0.0063,
0,
... | [
"import time, os, random",
"from google.appengine.api import memcache",
"CURRENT_VERSION_ID = os.environ.get('CURRENT_VERSION_ID','0')",
"local_cache = {}",
"DOG_PILE_WINDOW = 10 # seconds",
"import logging",
"def cash(ttl=60, key=None, ver=CURRENT_VERSION_ID, pre='', off=False):\n \"\"\"\n Copyri... |
# -*- coding: iso-8859-1 -*-
import threading
# (c) 2010 Martin Wendt; see CloudDAV http://clouddav.googlecode.com/
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
#
# The original source for this module was taken from gaedav:
# (c) 2009 Haoyu Bai (http://gaedav.google.com/).
"""
I... | [
[
1,
0,
0.011,
0.0055,
0,
0.66,
0,
83,
0,
1,
0,
0,
83,
0,
0
],
[
8,
0,
0.0549,
0.0165,
0,
0.66,
0.125,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0659,
0.0055,
0,
0.66,
... | [
"import threading",
"\"\"\"\nImplement cache mechanism.\n\"\"\"",
"import logging",
"from google.appengine.api import memcache",
"CACHED_NONE = \"{cached-none}\"",
"class NamespacedCache(object):\n def __init__(self, namespace):\n logging.debug(\"NamespacedCache.__init__, thread=%s\", threading.... |
#Path | [] | [] |
#Path | [] | [] |
# Assistente de Compras.
# autor: Rhavy Maia Guedes
# date: 11/04/2009
from src.util.Constantes import Constantes
from src.util.DAO import DAO
import sys
'''
Listar Produtos
'''
class ListarProdutoForm:
def __init__(self, app):
self.initForm(app)
def initForm(self, app):
... | [
[
1,
0,
0.1,
0.025,
0,
0.66,
0,
631,
0,
1,
0,
0,
631,
0,
0
],
[
1,
0,
0.125,
0.025,
0,
0.66,
0.25,
598,
0,
1,
0,
0,
598,
0,
0
],
[
1,
0,
0.175,
0.025,
0,
0.66,
... | [
"from src.util.Constantes import Constantes",
"from src.util.DAO import DAO",
"import sys",
"'''\n Listar Produtos\n'''",
"class ListarProdutoForm:\n \n def __init__(self, app):\n self.initForm(app)\n\n def initForm(self, app):\n alimentos = self.consultarLista()",
" def __ini... |
# Assistente de Compras Nutricional.
# autor: Rhavy Maia Guedes
# date: 11/04/2009
from src.util.App import App
from src.view.ListarProdutoForm import ListarProdutoForm
from src.view.AtualizarListaCompras import AtualizarListaCompras
'''
Menu Inicial
'''
class StartApp:
def __init__(self):
... | [
[
1,
0,
0.1429,
0.0357,
0,
0.66,
0,
876,
0,
1,
0,
0,
876,
0,
0
],
[
1,
0,
0.1786,
0.0357,
0,
0.66,
0.25,
748,
0,
1,
0,
0,
748,
0,
0
],
[
1,
0,
0.2143,
0.0357,
0,
0.... | [
"from src.util.App import App",
"from src.view.ListarProdutoForm import ListarProdutoForm",
"from src.view.AtualizarListaCompras import AtualizarListaCompras",
"'''\n Menu Inicial\n'''",
"class StartApp:\n\n def __init__(self):\n self.app = App(u'Assistente de Compras')\n menu = [(u'Atua... |
class Constantes:
_exec_path_ = u'C:\\Python\\'
_dbname_ = u'acnut'
_host_ = u'localhost'
_dirService_ = u'/acnut/' | [
[
3,
0,
0.625,
0.875,
0,
0.66,
0,
13,
0,
0,
0,
0,
0,
0,
0
],
[
14,
1,
0.5,
0.125,
1,
0.19,
0,
413,
1,
0,
0,
0,
0,
3,
0
],
[
14,
1,
0.625,
0.125,
1,
0.19,
0.3333... | [
"class Constantes:\n\n _exec_path_ = u'C:\\\\Python\\\\'\n _dbname_ = u'acnut'\n\n _host_ = u'localhost'\n _dirService_ = u'/acnut/'",
" _exec_path_ = u'C:\\\\Python\\\\'",
" _dbname_ = u'acnut'",
" _host_ = u'localhost'",
" _dirService_ = u'/acnut/'"
] |
# Assistente de Compras.
import e32db
import appuifw
'''
DAO
'''
class DAO:
def __init__(self, dbpath):
self.db = e32db.Dbms()
self.dbv = e32db.Db_view()
self.reset_counters()
try:
self.db.open(unicode(dbpath))
except:
self.db.create(unicode(dbpa... | [
[
1,
0,
0.0308,
0.0154,
0,
0.66,
0,
741,
0,
1,
0,
0,
741,
0,
0
],
[
1,
0,
0.0462,
0.0154,
0,
0.66,
0.3333,
739,
0,
1,
0,
0,
739,
0,
0
],
[
8,
0,
0.0923,
0.0462,
0,
... | [
"import e32db",
"import appuifw",
"'''\n DAO\n'''",
"class DAO:\n\n def __init__(self, dbpath):\n self.db = e32db.Dbms()\n self.dbv = e32db.Db_view()\n self.reset_counters()\n try:\n self.db.open(unicode(dbpath))",
" def __init__(self, dbpath):\n self.d... |
#Path | [] | [] |
#Path | [] | [] |
#Path | [] | [] |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: display_service.py
Date: July 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either vers... | [
[
8,
0,
0.0401,
0.0731,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0849,
0.0024,
0,
0.66,
0.0417,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0873,
0.0024,
0,
0.66... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: display_service.py\nDate: July 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"import os",
"from time import sleep",
"import subprocess",
"from scipy.signal.signaltools ... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: display_service.py
Date: July 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either vers... | [
[
8,
0,
0.0401,
0.0731,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0849,
0.0024,
0,
0.66,
0.0417,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0873,
0.0024,
0,
0.66... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: display_service.py\nDate: July 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"import os",
"from time import sleep",
"import subprocess",
"from scipy.signal.signaltools ... |
#!/usr/bin/env python
"""
Acorn-SDR ('A Collection of Radio Nodes')
(c) Bob Cowdery (G3UKB) 2009
File: instr.py
Date: January 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of... | [
[
8,
0,
0.1417,
0.2583,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3,
0.0083,
0,
0.66,
0.25,
509,
0,
3,
0,
0,
509,
0,
0
],
[
1,
0,
0.3083,
0.0083,
0,
0.66,
... | [
"\"\"\"\nAcorn-SDR ('A Collection of Radio Nodes')\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: instr.py\nDate: January 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys, time, traceback",
"from Numeric import *",
"import jack",
"class AudioIn():\n \n #--------------... |
#!/usr/bin/env python
"""
Acorn-SDR ('A Collection of Radio Nodes')
(c) Bob Cowdery (G3UKB) 2009
File: instr.py
Date: January 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of... | [
[
8,
0,
0.1417,
0.2583,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3,
0.0083,
0,
0.66,
0.25,
509,
0,
3,
0,
0,
509,
0,
0
],
[
1,
0,
0.3083,
0.0083,
0,
0.66,
... | [
"\"\"\"\nAcorn-SDR ('A Collection of Radio Nodes')\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: instr.py\nDate: January 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys, time, traceback",
"from Numeric import *",
"import jack",
"class AudioIn():\n \n #--------------... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: gtk_agc.py
Date: April 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 o... | [
[
8,
0,
0.0983,
0.1792,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2081,
0.0058,
0,
0.66,
0.1111,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.2139,
0.0058,
0,
0.66... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: gtk_agc.py\nDate: April 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"from time import sleep",
"import subprocess",
"import pygtk",
"import gtk",
"import gtk.glade",... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: gtk_filters.py
Date: April 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version... | [
[
8,
0,
0.085,
0.155,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.18,
0.005,
0,
0.66,
0.1111,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.185,
0.005,
0,
0.66,
0... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: gtk_filters.py\nDate: April 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"from time import sleep",
"import subprocess",
"import pygtk",
"import gtk",
"import gtk.gla... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: gtk_modes.py
Date: April 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2... | [
[
8,
0,
0.0739,
0.1348,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1565,
0.0043,
0,
0.66,
0.1111,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1609,
0.0043,
0,
0.66... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: gtk_modes.py\nDate: April 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"from time import sleep",
"import subprocess",
"import pygtk",
"import gtk",
"import gtk.glade... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: gtk_vfo.py
Date: April 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 o... | [
[
8,
0,
0.0433,
0.0789,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0916,
0.0025,
0,
0.66,
0.1111,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0941,
0.0025,
0,
0.66... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: gtk_vfo.py\nDate: April 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"from time import sleep",
"import subprocess",
"import pygtk",
"import gtk",
"import gtk.glade",... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
Date: July 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
... | [
[
8,
0,
0.1279,
0.2326,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2713,
0.0078,
0,
0.66,
0.0667,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.2791,
0.0078,
0,
0.66... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nDate: July 2009\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by",
"import sys",
"from time import sleep",
"import subprocess",
"i... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: app_main_gui.py
Date: July 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version... | [
[
8,
0,
0.0669,
0.122,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1417,
0.0039,
0,
0.66,
0.0556,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1457,
0.0039,
0,
0.66,... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: app_main_gui.py\nDate: July 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"import os",
"from time import sleep",
"import subprocess",
"import Ice, IceStorm",
"import ... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: gtk_rx_proc.py
Date: April 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version... | [
[
8,
0,
0.0895,
0.1632,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1895,
0.0053,
0,
0.66,
0.1111,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1947,
0.0053,
0,
0.66... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: gtk_rx_proc.py\nDate: April 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"from time import sleep",
"import subprocess",
"import pygtk",
"import gtk",
"import gtk.gla... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: gtk_radio.py
Date: April 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2... | [
[
8,
0,
0.1118,
0.2039,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2368,
0.0066,
0,
0.66,
0.1111,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.2434,
0.0066,
0,
0.66... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: gtk_radio.py\nDate: April 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"from time import sleep",
"import subprocess",
"import pygtk",
"import gtk",
"import gtk.glade... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: gtk_vfo.py
Date: April 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 o... | [
[
8,
0,
0.0433,
0.0789,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0916,
0.0025,
0,
0.66,
0.1111,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0941,
0.0025,
0,
0.66... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: gtk_vfo.py\nDate: April 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"from time import sleep",
"import subprocess",
"import pygtk",
"import gtk",
"import gtk.glade",... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: gtk_rx_proc.py
Date: April 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version... | [
[
8,
0,
0.0895,
0.1632,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1895,
0.0053,
0,
0.66,
0.1111,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1947,
0.0053,
0,
0.66... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: gtk_rx_proc.py\nDate: April 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"from time import sleep",
"import subprocess",
"import pygtk",
"import gtk",
"import gtk.gla... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: app_main_gui.py
Date: July 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version... | [
[
8,
0,
0.0669,
0.122,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1417,
0.0039,
0,
0.66,
0.0556,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1457,
0.0039,
0,
0.66,... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: app_main_gui.py\nDate: July 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"import os",
"from time import sleep",
"import subprocess",
"import Ice, IceStorm",
"import ... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: gtk_modes.py
Date: April 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2... | [
[
8,
0,
0.0739,
0.1348,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1565,
0.0043,
0,
0.66,
0.1111,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1609,
0.0043,
0,
0.66... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: gtk_modes.py\nDate: April 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"from time import sleep",
"import subprocess",
"import pygtk",
"import gtk",
"import gtk.glade... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
Date: July 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
... | [
[
8,
0,
0.1279,
0.2326,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2713,
0.0078,
0,
0.66,
0.0667,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.2791,
0.0078,
0,
0.66... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nDate: July 2009\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by",
"import sys",
"from time import sleep",
"import subprocess",
"i... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: gtk_filters.py
Date: April 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version... | [
[
8,
0,
0.085,
0.155,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.18,
0.005,
0,
0.66,
0.1111,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.185,
0.005,
0,
0.66,
0... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: gtk_filters.py\nDate: April 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"from time import sleep",
"import subprocess",
"import pygtk",
"import gtk",
"import gtk.gla... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: gtk_radio.py
Date: April 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2... | [
[
8,
0,
0.1118,
0.2039,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2368,
0.0066,
0,
0.66,
0.1111,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.2434,
0.0066,
0,
0.66... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: gtk_radio.py\nDate: April 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"from time import sleep",
"import subprocess",
"import pygtk",
"import gtk",
"import gtk.glade... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: gtk_agc.py
Date: April 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 o... | [
[
8,
0,
0.0983,
0.1792,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2081,
0.0058,
0,
0.66,
0.1111,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.2139,
0.0058,
0,
0.66... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: gtk_agc.py\nDate: April 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"from time import sleep",
"import subprocess",
"import pygtk",
"import gtk",
"import gtk.glade",... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: outstr_service.py
Date: January 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation;... | [
[
8,
0,
0.081,
0.1476,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1714,
0.0048,
0,
0.66,
0.0556,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1762,
0.0048,
0,
0.66,... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: outstr_service.py\nDate: January 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"import os",
"import traceback",
"from time import sleep",
"from Numeric import *",
"im... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: outstr_service.py
Date: January 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation;... | [
[
8,
0,
0.081,
0.1476,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1714,
0.0048,
0,
0.66,
0.0556,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1762,
0.0048,
0,
0.66,... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: outstr_service.py\nDate: January 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"import os",
"import traceback",
"from time import sleep",
"from Numeric import *",
"im... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: dsp_service.py
Date: January 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either versi... | [
[
8,
0,
0.0705,
0.1286,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1494,
0.0041,
0,
0.66,
0.125,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1535,
0.0041,
0,
0.66,... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: dsp_service.py\nDate: January 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"import os",
"from copy import deepcopy",
"from time import sleep",
"import Ice, IceStorm",
... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: dsp_service.py
Date: January 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either versi... | [
[
8,
0,
0.0705,
0.1286,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1494,
0.0041,
0,
0.66,
0.125,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1535,
0.0041,
0,
0.66,... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: dsp_service.py\nDate: January 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"import os",
"from copy import deepcopy",
"from time import sleep",
"import Ice, IceStorm",
... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: softrock_controller.py
Date: January 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; eith... | [
[
8,
0,
0.2429,
0.4429,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.5143,
0.0143,
0,
0.66,
0.2,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.5286,
0.0143,
0,
0.66,
... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: softrock_controller.py\nDate: January 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import logging",
"import sys",
"import os",
"import sdr1khw",
"class SoftrockController:\n \n ... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: softrock_service.py
Date: January 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either ... | [
[
8,
0,
0.0904,
0.1649,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1915,
0.0053,
0,
0.66,
0.0667,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1968,
0.0053,
0,
0.66... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: softrock_service.py\nDate: January 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"import os",
"from time import sleep",
"import Ice, IceStorm",
"import softrock_control... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: softrock_controller.py
Date: January 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; eith... | [
[
8,
0,
0.2429,
0.4429,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.5143,
0.0143,
0,
0.66,
0.2,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.5286,
0.0143,
0,
0.66,
... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: softrock_controller.py\nDate: January 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import logging",
"import sys",
"import os",
"import sdr1khw",
"class SoftrockController:\n \n ... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: softrock_service.py
Date: January 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either ... | [
[
8,
0,
0.0904,
0.1649,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1915,
0.0053,
0,
0.66,
0.0667,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1968,
0.0053,
0,
0.66... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: softrock_service.py\nDate: January 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import sys",
"import os",
"from time import sleep",
"import Ice, IceStorm",
"import softrock_control... |
#!/usr/bin/env python
"""
Acorn-SDR (A Collaboration of Radio Nodes)
(c) Bob Cowdery (G3UKB) 2009
File: sdr1k_controller.py
Date: January 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either ... | [
[
8,
0,
0.1868,
0.3407,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3956,
0.011,
0,
0.66,
0.1667,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.4066,
0.011,
0,
0.66,
... | [
"\"\"\"\nAcorn-SDR (A Collaboration of Radio Nodes)\n(c) Bob Cowdery (G3UKB) 2009\n\nFile: sdr1k_controller.py\nDate: January 2009\n\nThis program is free software; you can redistribute it and/or modify",
"import logging",
"import sys",
"import os",
"import sdr1khw",
"import utils",
"class Sdr1kControll... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.