code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.5144, 0.8654, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'targets': [\n {\n 'target_name': 'rtp_rtcp',\n 'type': '<(library)',\n 'dependencies': [\n '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',\n ]," ]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.5375, 0.65, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'targets': [\n {\n 'target_name': 'apm_util',\n 'type': '<(library)',\n 'dependencies': [\n '<(webrtc_root)/common_audio/common_audio.gyp:signal_processing',\n ]," ]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.56, 0.8933, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'targets': [\n {\n 'target_name': 'audioproc_unittest',\n 'type': 'executable',\n 'conditions': [\n ['prefer_fixed_point==1', {\n 'defines': [ 'WEBRTC_AUDIOPROC_FIXED_PROFILE' ]," ]
# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.5763, 0.8644, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'targets': [\n {\n 'target_name': 'ns',\n 'type': '<(library)',\n 'dependencies': [\n '<(webrtc_root)/common_audio/common_audio.gyp:signal_processing',\n 'apm_util'" ]
# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.5608, 0.8919, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'targets': [\n {\n 'target_name': 'aec',\n 'type': '<(library)',\n 'variables': {\n # Outputs some low-level debug files.\n 'aec_debug_dump%': 0," ]
# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.5495, 0.9121, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'targets': [\n {\n 'target_name': 'audio_processing',\n 'type': '<(library)',\n 'conditions': [\n ['prefer_fixed_point==1', {\n 'dependencies': [ 'ns_fix' ]," ]
# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.6324, 0.7647, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'targets': [\n {\n 'target_name': 'agc',\n 'type': '<(library)',\n 'dependencies': [\n '<(webrtc_root)/common_audio/common_audio.gyp:signal_processing',\n ]," ]
# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.6286, 0.7714, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'targets': [\n {\n 'target_name': 'aecm',\n 'type': '<(library)',\n 'dependencies': [\n '<(webrtc_root)/common_audio/common_audio.gyp:signal_processing',\n '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers'," ]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.5142, 0.8679, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'targets': [\n {\n 'target_name': 'webrtc_video_coding',\n 'type': '<(library)',\n 'dependencies': [\n 'webrtc_i420',\n 'webrtc_vp8'," ]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.5156, 0.8542, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'targets': [{\n 'target_name': 'video_coding_test',\n 'type': 'executable',\n 'dependencies': [\n '<(webrtc_root)/../testing/gtest.gyp:gtest',\n '<(webrtc_root)/../test/test.gyp:test_support',\n '<(webrtc_root)/../test/metrics.gyp:metrics'," ]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.5211, 0.8028, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n # Exclude the test target when building with chromium.\n 'conditions': [ \n ['build_with_chromium==0', {\n 'targets': [\n {\n 'target_name': 'test_framework',\n 'type': '<(library)'," ]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.5405, 0.6216, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n # Exclude the test target when building with chromium.\n 'conditions': [ \n ['build_with_chromium==0', {\n 'targets': [\n {\n 'target_name': 'video_quality_measurement',\n 'type': 'executable'," ]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.5208, 0.8056, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n # Exclude the test target when building with chromium.\n 'conditions': [ \n ['build_with_chromium==0', {\n 'targets': [\n {\n 'target_name': 'video_codecs_test_framework',\n 'type': '<(library)'," ]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.5375, 0.65, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'targets': [\n {\n 'target_name': 'webrtc_i420',\n 'type': '<(library)',\n 'dependencies': [\n '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',\n ]," ]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.5124, 0.8843, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'targets': [\n {\n 'target_name': 'webrtc_vp8',\n 'type': '<(library)',\n 'dependencies': [\n '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',\n '<(webrtc_root)/common_video/common_video.gyp:webrtc_libyuv'," ]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.5079, 0.9263, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'includes': [ '../../build/common.gypi', ],\n 'targets': [\n {\n 'target_name': 'system_wrappers',\n 'type': '<(library)',\n 'include_dirs': [\n 'spreadsortlib'," ]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.7812, 0.5, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'includes': [\n '../build/common.gypi',\n 'signal_processing/signal_processing.gypi',\n 'resampler/resampler.gypi',\n 'vad/vad.gypi',\n ],\n}" ]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.5273, 0.7455, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'targets': [\n {\n 'target_name': 'resampler',\n 'type': '<(library)',\n 'dependencies': [\n 'signal_processing',\n ]," ]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.5217, 0.7971, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'targets': [\n {\n 'target_name': 'vad',\n 'type': '<(library)',\n 'dependencies': [\n 'signal_processing',\n ]," ]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.5176, 0.8353, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'targets': [\n {\n 'target_name': 'signal_processing',\n 'type': '<(library)',\n 'include_dirs': [\n 'include',\n ]," ]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.51, 0.9067, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'targets': [\n # Auto test - command line test for all platforms\n {\n 'target_name': 'voe_auto_test',\n 'type': 'executable',\n 'dependencies': [\n 'voice_engine_core'," ]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.5095, 0.9114, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'targets': [\n {\n 'target_name': 'voice_engine_core',\n 'type': '<(library)',\n 'dependencies': [\n '<(webrtc_root)/common_audio/common_audio.gyp:resampler',\n '<(webrtc_root)/common_audio/common_audio.gyp:signal_processing'," ]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
[ [ 8, 0, 0.6957, 0.6522, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'includes': [\n '../build/common.gypi',\n 'main/source/voice_engine_core.gypi',\n ],\n\n # Test targets, excluded when building with Chromium.\n 'conditions': [" ]
# -*- coding: utf-8 -*- # results-map.py # By Michael Geary - http://mg.to/ # See UNLICENSE or http://unlicense.org/ for public domain notice. import logging, pprint from urlparse import urlparse from google.appengine.api import urlfetch from google.appengine.ext import webapp from google.appengine.ext.we...
[ [ 1, 0, 0.0486, 0.0069, 0, 0.66, 0, 715, 0, 2, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0556, 0.0069, 0, 0.66, 0.0588, 857, 0, 1, 0, 0, 857, 0, 0 ], [ 1, 0, 0.0694, 0.0069, 0, ...
[ "import logging, pprint", "from urlparse import urlparse", "from google.appengine.api import urlfetch", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "import private", "FT_URL = 'http://fusiontables.googleusercontent.com/fusiontables/api/query?'"...
#!/usr/bin/env python # get-strings.py # By Michael Geary - http://mg.to/ # See UNLICENSE or http://unlicense.org/ for public domain notice. # Reads the JSON feed for a Google Docs spreadsheet containing # localized strings, then writes the strings for each language into # a JSONP file for that language. The JSONP ou...
[ [ 1, 0, 0.4634, 0.0244, 0, 0.66, 0, 463, 0, 3, 0, 0, 463, 0, 0 ], [ 14, 0, 0.5122, 0.0244, 0, 0.66, 0.1667, 737, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.5366, 0.0244, 0, ...
[ "import json, re, urllib2", "sheet = '0AuiC0EUz_p_xdHRXd19ub0dYN2RtVTZGNC1WVGd2ZkE/1'", "url = 'https://spreadsheets.google.com/feeds/list/%s/public/values?alt=json' % sheet", "langs = {}", "feed = json.load( urllib2.urlopen(url) )['feed']", "for entry in feed['entry']:\n\tid = entry['gsx$id']['$t']\n\tfo...
# -*- coding: utf-8 -*- ''' private.py ''' tables = { 'NH': { 'town': 'YOUR_FUSION_TABLE_ID', }, } whitelist = [ '//*.google.com', '//google.com', #'//localhost', ] testlistgood = [ 'http://www.google.com/elections/ed/us/results/', # Wrong cases - uncomment for deliberate errors to test the test code #'...
[ [ 8, 0, 0.0909, 0.0909, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2424, 0.1515, 0, 0.66, 0.2, 475, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.4242, 0.1515, 0, 0.66, ...
[ "'''\n\tprivate.py\n'''", "tables = {\n\t'NH': {\n\t\t'town': 'YOUR_FUSION_TABLE_ID',\n\t},\n}", "whitelist = [\n\t'//*.google.com',\n\t'//google.com',\n\t#'//localhost',\n]", "testlistgood = [\n\t'http://www.google.com/elections/ed/us/results/',\n\t\n\t# Wrong cases - uncomment for deliberate errors to test ...
# -*- coding: utf-8 -*- # Copyright 2012 Google Inc. All Rights Reserved # Author: jmwaura@google.com (Jesse Mwaura) # See UNLICENSE or http://unlicense.org/ for public domain notice. from urlparse import urlparse DOMAIN_ONLY = object() class RefererCheck(object): """Check current referer url against a supplied wh...
[ [ 1, 0, 0.0614, 0.0088, 0, 0.66, 0, 857, 0, 1, 0, 0, 857, 0, 0 ], [ 14, 0, 0.0789, 0.0088, 0, 0.66, 0.25, 100, 3, 0, 0, 0, 186, 10, 1 ], [ 3, 0, 0.4211, 0.6754, 0, ...
[ "from urlparse import urlparse", "DOMAIN_ONLY = object()", "class RefererCheck(object):\n\t\"\"\"Check current referer url against a supplied whitelist.\n\t\n\tThe whitelist must contain elements that can be parsed by urlparse and that\n\tcontain a hostname. The \"*\" wildcard is acceptable at the beginning of ...
import idaapi, idc, idautils import re import time displ_re = re.compile('\[R(?P<regnum>\d+)') var_re = re.compile(', \[SP,#0x.*\+(?P<varname>\w+)\]') def trace_param(ea, min_ea, op_type, op_val): ''' trace_param: ea, min_ea, op_type, op_val Taking ea as start, this function does basic backtrace of a...
[ [ 1, 0, 0.0045, 0.0045, 0, 0.66, 0, 74, 0, 3, 0, 0, 74, 0, 0 ], [ 1, 0, 0.009, 0.0045, 0, 0.66, 0.125, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0136, 0.0045, 0, 0.66...
[ "import idaapi, idc, idautils", "import re", "import time", "displ_re = re.compile('\\[R(?P<regnum>\\d+)')", "var_re = re.compile(', \\[SP,#0x.*\\+(?P<varname>\\w+)\\]')", "def trace_param(ea, min_ea, op_type, op_val):\n '''\n trace_param: ea, min_ea, op_type, op_val\n\n Taking ea as start, this ...
import idaapi, idc, idautils import re import time var_re = re.compile(', \[es?b?p.*[\+-](?P<varname>\w+)\]') def track_param(ea, min_ea, op_type, op_val): ''' trace_param: ea, min_ea, op_type, op_val Taking ea as start, this function does basic backtrace of an operand (defined by op_type and op_val) until ...
[ [ 1, 0, 0.0054, 0.0054, 0, 0.66, 0, 74, 0, 3, 0, 0, 74, 0, 0 ], [ 1, 0, 0.0109, 0.0054, 0, 0.66, 0.1429, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0163, 0.0054, 0, 0....
[ "import idaapi, idc, idautils", "import re", "import time", "var_re = re.compile(', \\[es?b?p.*[\\+-](?P<varname>\\w+)\\]')", "def track_param(ea, min_ea, op_type, op_val):\n '''\n trace_param: ea, min_ea, op_type, op_val\n\n Taking ea as start, this function does basic backtrace of\n an operand (define...
import idaapi, idautils, idc import re encoded_types = { 'c':'char', 'i':'int', 's':'short', 'l':'long', 'q':'long long', 'C':'unsigned char', 'I':'unsigned int', 'S':'unsigned short', 'L':'unsigned long', 'Q':'unsigned long long', 'f':'float', 'd':'double', 'B':'bool', 'v':'void', '*':'...
[ [ 1, 0, 0.0074, 0.0037, 0, 0.66, 0, 74, 0, 3, 0, 0, 74, 0, 0 ], [ 1, 0, 0.0111, 0.0037, 0, 0.66, 0.1, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.0556, 0.0778, 0, 0.66...
[ "import idaapi, idautils, idc", "import re", "encoded_types = {\n 'c':'char',\n 'i':'int',\n 's':'short',\n 'l':'long',\n 'q':'long long',\n 'C':'unsigned char',\n 'I':'unsigned int',", "class ObjcProperties:\n def __init__(self, ea):\n self.property_list = list()\n\n# print '%08x: Par...
#==================================================================== # 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...
#==================================================================== # 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...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
[ [ 14, 0, 0.0557, 0.0033, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0689, 0.0033, 0, 0.66, 0.0333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0721, 0.0033, 0, 0...
[ "__author__ = 'afshar@google.com (Ali Afshar)'", "import os", "import httplib2", "import sessions", "from google.appengine.ext import db", "from google.appengine.ext.webapp import template", "from apiclient.discovery import build_from_document", "from apiclient.http import MediaUpload", "from oauth2...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
[ [ 14, 0, 0.0281, 0.0017, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0347, 0.0017, 0, 0.66, 0.0303, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 8, 0, 0.0364, 0.0017, 0, 0...
[ "__author__ = 'afshar@google.com (Ali Afshar)'", "import sys", "sys.path.insert(0, 'lib')", "import os", "import httplib2", "import sessions", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "from google.appengine.ext import db", "from google...
#!/usr/bin/env python # Copyright (c) 2010, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this l...
[ [ 8, 0, 0.1818, 0.0267, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2032, 0.0053, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 3, 0, 0.2219, 0.0107, 0, 0.66, ...
[ "\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in gflags.py's docstring for a usage manual.\n\"\"\"", "__author__ = 'olexiy@google.com (Olexiy Oryeshko)'", "class Error(Exception):\n \"\"\"Thrown If val...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
[ [ 1, 0, 0.0738, 0.0041, 0, 0.66, 0, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.0779, 0.0041, 0, 0.66, 0.0625, 154, 0, 1, 0, 0, 154, 0, 0 ], [ 1, 0, 0.082, 0.0041, 0, 0...
[ "import base64", "import hashlib", "import logging", "import time", "from OpenSSL import crypto", "from anyjson import simplejson", "CLOCK_SKEW_SECS = 300 # 5 minutes in seconds", "AUTH_TOKEN_LIFETIME_SECS = 300 # 5 minutes in seconds", "MAX_TOKEN_LIFETIME_SECS = 86400 # 1 day in seconds", "cla...
# Copyright 2011 Google Inc. All Rights Reserved. """Multi-credential file store with lock support. This module implements a JSON credential store where multiple credentials can be stored in one file. That file supports locking both in a single process and across processes. The credential themselves are keyed off o...
[ [ 8, 0, 0.0437, 0.0741, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0847, 0.0026, 0, 0.66, 0.0588, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0899, 0.0026, 0, 0.66,...
[ "\"\"\"Multi-credential file store with lock support.\n\nThis module implements a JSON credential store where multiple\ncredentials can be stored in one file. That file supports locking\nboth in a single process and across processes.\n\nThe credential themselves are keyed off of:\n* client_id", "__author__ = 'jb...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.5312, 0.1562, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6562, 0.0312, 0, 0.66, 0.5, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.875, 0.2812, 0, 0.66, ...
[ "\"\"\"Utility module to import a JSON module\n\nHides all the messy details of exactly where\nwe get a simplejson module from.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "try: # pragma: no cover\n # Should work for Python2.6 and higher.\n import json as simplejson\nexcept ImportError: #...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.0145, 0.0035, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0176, 0.0009, 0, 0.66, 0.0244, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0193, 0.0009, 0, 0.66,...
[ "\"\"\"An OAuth 2.0 client.\n\nTools for interacting with OAuth 2.0 protected resources.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import base64", "import clientsecrets", "import copy", "import datetime", "import httplib2", "import logging", "import os", "import sys", "im...
# Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1619, 0.0476, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2, 0.0095, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2286, 0.0095, 0, 0.66, ...
[ "\"\"\"Utilities for reading OAuth 2.0 client secret files.\n\nA client_secrets.json file contains all the information needed to interact with\nan OAuth 2.0 protected service.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "from anyjson import simplejson", "TYPE_WEB = 'web'", "TYPE_INSTALL...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1604, 0.0472, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1981, 0.0094, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.217, 0.0094, 0, 0.66, ...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 2.0\ncredentials.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import os", "import stat", "import threading", "from anyjson import simplejson", "from client import Storage as BaseStorage", "from clien...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1371, 0.0403, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1694, 0.0081, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1855, 0.0081, 0, 0.66,...
[ "\"\"\"OAuth 2.0 utilities for Django.\n\nUtilities for using OAuth 2.0 in conjunction with\nthe Django datastore.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import oauth2client", "import base64", "import pickle", "from django.db import models", "from oauth2client.client import St...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
[ [ 8, 0, 0.0814, 0.1105, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1453, 0.0058, 0, 0.66, 0.0833, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1512, 0.0058, 0, 0.66...
[ "\"\"\"MIME-Type Parser\n\nThis module provides basic functions for handling mime-types. It can handle\nmatching mime-types against a list of media-ranges. See section 14.1 of the\nHTTP specification [RFC 2616] for a complete explanation.\n\n http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1", "__v...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1205, 0.1452, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2046, 0.0033, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2112, 0.0033, 0, 0.66, ...
[ "\"\"\"Schema processing for discovery based APIs\n\nSchemas holds an APIs discovery schemas. It can return those schema as\ndeserialized JSON objects, or pretty print them as prototype objects that\nconform to the schema.\n\nFor example, given the schema:", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", ...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.5312, 0.1562, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6562, 0.0312, 0, 0.66, 0.5, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.875, 0.2812, 0, 0.66, ...
[ "\"\"\"Utility module to import a JSON module\n\nHides all the messy details of exactly where\nwe get a simplejson module from.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "try: # pragma: no cover\n import simplejson\nexcept ImportError: # pragma: no cover\n try:\n # Try to import from...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.0342, 0.0083, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0414, 0.0021, 0, 0.66, 0.0476, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0476, 0.0021, 0, 0.66,...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import copy", "import httplib2", "import logging", "import oauth2 as oauth", "import urllib", "import urlparse", "from anyjson import simplejson", "tr...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1259, 0.037, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1556, 0.0074, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1704, 0.0074, 0, 0.66, ...
[ "\"\"\"Utilities for Google App Engine\n\nUtilities for making it easier to use the\nGoogle API Client for Python on Google App Engine.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import pickle", "from google.appengine.ext import db", "from apiclient.oauth import OAuthCredentials", "...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.2619, 0.0635, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3175, 0.0159, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.3492, 0.0159, 0, 0.66, ...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 1.0 credentials.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import pickle", "import threading", "from apiclient.oauth import Storage as BaseStorage", "class Storage(BaseStorage):\n \"\"\"Store and retr...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 1, 0, 0.2679, 0.0179, 0, 0.66, 0, 629, 0, 1, 0, 0, 629, 0, 0 ], [ 1, 0, 0.2857, 0.0179, 0, 0.66, 0.2, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.3036, 0.0179, 0, 0.6...
[ "import apiclient", "import base64", "import pickle", "from django.db import models", "class OAuthCredentialsField(models.Field):\n\n __metaclass__ = models.SubfieldBase\n\n def db_type(self):\n return 'VARCHAR'\n\n def to_python(self, value):", " __metaclass__ = models.SubfieldBase", " def db_t...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ [ 8, 0, 0.0519, 0.0182, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0649, 0.0026, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0701, 0.0026, 0, 0.66,...
[ "\"\"\"Model objects for requests and responses.\n\nEach API may support one or more serializations, such\nas JSON, Atom, etc. The model classes are responsible\nfor converting between the wire format and the Python\nobject representation.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ [ 8, 0, 0.1545, 0.0407, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.187, 0.0081, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2114, 0.0081, 0, 0.66, ...
[ "\"\"\"Errors for the library.\n\nAll exceptions defined by the library\nshould be defined in this file.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "from oauth2client.anyjson import simplejson", "class Error(Exception):\n \"\"\"Base error for this module.\"\"\"\n pass", " \"\"\"Base...
""" iri2uri Converts an IRI to a URI. """ __author__ = "Joe Gregorio (joe@bitworking.org)" __copyright__ = "Copyright 2006, Joe Gregorio" __contributors__ = [] __version__ = "1.0.0" __license__ = "MIT" __history__ = """ """ import urlparse # Convert an IRI to a URI following the rules in RFC 3987 # # The characte...
[ [ 8, 0, 0.0318, 0.0545, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0636, 0.0091, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0727, 0.0091, 0, 0.66...
[ "\"\"\"\niri2uri\n\nConverts an IRI to a URI.\n\n\"\"\"", "__author__ = \"Joe Gregorio (joe@bitworking.org)\"", "__copyright__ = \"Copyright 2006, Joe Gregorio\"", "__contributors__ = []", "__version__ = \"1.0.0\"", "__license__ = \"MIT\"", "__history__ = \"\"\"\n\"\"\"", "import urlparse", "escape_...
"""SocksiPy - Python SOCKS module. Version 1.00 Copyright 2006 Dan-Haim. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
[ [ 8, 0, 0.0365, 0.0708, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0845, 0.0205, 0, 0.66, 0.04, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0982, 0.0023, 0, 0.66, ...
[ "\"\"\"SocksiPy - Python SOCKS module.\nVersion 1.00\n\nCopyright 2006 Dan-Haim. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n1. Redistributions of source code must retain the above copyright ...
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
[ [ 1, 0, 0.006, 0.006, 0, 0.66, 0, 32, 0, 1, 0, 0, 32, 0, 0 ], [ 1, 0, 0.0119, 0.006, 0, 0.66, 0.1, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0179, 0.006, 0, 0.66, ...
[ "import Cookie", "import datetime", "import time", "import email.utils", "import calendar", "import base64", "import hashlib", "import hmac", "import re", "import logging", "class LilCookies:\n\n @staticmethod\n def _utf8(s):\n if isinstance(s, unicode):\n return s.encode(\"utf-8\")\n ...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
[ [ 14, 0, 0.1667, 0.0556, 0, 0.66, 0, 189, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3889, 0.0556, 0, 0.66, 0.3333, 295, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.6111, 0.0556, 0, 0...
[ "manual_verstr = \"1.5\"", "auto_build_num = \"211\"", "verstr = manual_verstr + \".\" + auto_build_num", "try:\n from pyutil.version_class import Version as pyutil_Version\n __version__ = pyutil_Version(verstr)\nexcept (ImportError, ValueError):\n # Maybe there is no pyutil installed.\n from dist...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel 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 ...
[ [ 8, 0, 0.2927, 0.561, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.6098, 0.0244, 0, 0.66, 0.25, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.6341, 0.0244, 0, 0.66, ...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel 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 ...
[ [ 8, 0, 0.3, 0.575, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.625, 0.025, 0, 0.66, 0.3333, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.65, 0.025, 0, 0.66, 0.6...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
[ [ 1, 0, 0.0204, 0.0068, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0272, 0.0068, 0, 0.66, 0.0833, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.0408, 0.0068, 0, ...
[ "import re", "import urllib", "RESERVED = \":/?#[]@!$&'()*+,;=\"", "OPERATOR = \"+./;?|!@\"", "EXPLODE = \"*+\"", "MODIFIER = \":^\"", "TEMPLATE = re.compile(r\"{(?P<operator>[\\+\\./;\\?|!@])?(?P<varlist>[^}]+)}\", re.UNICODE)", "VAR = re.compile(r\"^(?P<varname>[^=\\+\\*:\\^]+)((?P<explode>[\\+\\*])...
#!/usr/bin/env python # Copyright 2013 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 1, 0, 0.2162, 0.0135, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.2297, 0.0135, 0, 0.66, 0.125, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2432, 0.0135, 0, 0...
[ "import re", "import os", "import sys", "import shutil", "PACKAGE_NAME = 'com.google.android.apps.dashclock.api'", "def main():\n root = sys.argv[1]\n for path, _, files in os.walk(root):\n for f in [f for f in files if f.endswith('.html')]:\n fp = open(os.path.join(path, f), 'r')\n html = ...
#!/usr/bin/python import sys import os import os.path import ConfigParser import csv import httplib cwd = os.path.abspath((os.path.dirname(sys.argv[0]))) config_file = os.path.join(cwd, 'fetch_samples.conf') #print 'config file: %s' % config_file config = ConfigParser.RawConfigParser() config.read(config_file) samp...
[ [ 1, 0, 0.0769, 0.0256, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1026, 0.0256, 0, 0.66, 0.0714, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1282, 0.0256, 0, ...
[ "import sys", "import os", "import os.path", "import ConfigParser", "import csv", "import httplib", "cwd = os.path.abspath((os.path.dirname(sys.argv[0])))", "config_file = os.path.join(cwd, 'fetch_samples.conf')", "config = ConfigParser.RawConfigParser()", "config.read(config_file)", "samples_di...
#!/usr/bin/python import sys import os import os.path import ConfigParser from xml.etree import ElementTree cwd = os.path.abspath((os.path.dirname(sys.argv[0]))) config_file = os.path.join(cwd, 'analyze_samples.conf') #print 'config file: %s' % config_file config = ConfigParser.RawConfigParser() config.read(config_f...
[ [ 1, 0, 0.0938, 0.0312, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.125, 0.0312, 0, 0.66, 0.1, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1562, 0.0312, 0, 0.66...
[ "import sys", "import os", "import os.path", "import ConfigParser", "from xml.etree import ElementTree", "cwd = os.path.abspath((os.path.dirname(sys.argv[0])))", "config_file = os.path.join(cwd, 'analyze_samples.conf')", "config = ConfigParser.RawConfigParser()", "config.read(config_file)", "sampl...
""" We use the SymPy Python module, available at http://github.com/sympy (offered under BSD license). We compute the expected total reward on MRMs. For this we use: - the Value Iteration Algorithm, [Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming, 1994, Chapter 6.3.2] - t...
[ [ 8, 0, 0.0142, 0.027, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0365, 0.0122, 0, 0.66, 0.0345, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0446, 0.0014, 0, 0.66, ...
[ "\"\"\"\nWe use the SymPy Python module, available at http://github.com/sympy (offered under BSD license).\n\nWe compute the expected total reward on MRMs. For this we use:\n - the Value Iteration Algorithm, [Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming, 1994, Chapter 6.3.2] \n ...
numHotspots = 2 #Number of hotspots to check differentPixelsPercentageThreshold = [5.0, 10.0] #For each hotspot sizeMotionCheckWindow = (40, 30) #For all hotspots def MD(prevVFFrame, crtVFFrame): global numHotspots, hotspot, differentPixelsPercentageThreshold for hotspotIndex in range(0, numHotspots): ...
[ [ 14, 0, 0.0385, 0.0385, 0, 0.66, 0, 363, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.0769, 0.0385, 0, 0.66, 0.3333, 759, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 0, 0.1154, 0.0385, 0, 0...
[ "numHotspots = 2 #Number of hotspots to check", "differentPixelsPercentageThreshold = [5.0, 10.0] #For each hotspot", "sizeMotionCheckWindow = (40, 30) #For all hotspots", "def MD(prevVFFrame, crtVFFrame):\n global numHotspots, hotspot, differentPixelsPercentageThreshold\n\n for hotspotIndex in range(0,...
""" Copyright Alex Susu 2011-2012 """ import os import sys import time import thread import threading import traceback import objc iOS_PYOBJC = True MY_DEBUG_STDOUT = True MY_DEBUG_STDERR = True LOCAL_FOLDER = "/var/mobile/iCam" STDERR_FILENAME_PREFIX = "stderr_HP_" STDOUT_FILENAME_PREFIX = "...
[ [ 8, 0, 0.003, 0.0045, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0075, 0.0015, 0, 0.66, 0.0263, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.009, 0.0015, 0, 0.66, ...
[ "\"\"\"\nCopyright Alex Susu 2011-2012\n\"\"\"", "import os", "import sys", "import time", "import thread", "import threading", "import traceback", "import objc", "iOS_PYOBJC = True", "MY_DEBUG_STDOUT = True", "MY_DEBUG_STDERR = True", "LOCAL_FOLDER = \"/var/mobile/iCam\"", "STDERR_FILENAME_...
# Copyright (c) 2007 Nokia Corporation # # 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 agre...
[ [ 1, 0, 0.2609, 0.0145, 0, 0.66, 0, 739, 0, 1, 0, 0, 739, 0, 0 ], [ 1, 0, 0.2754, 0.0145, 0, 0.66, 0.25, 710, 0, 1, 0, 0, 710, 0, 0 ], [ 1, 0, 0.2899, 0.0145, 0, 0....
[ "import appuifw", "import camera2", "import e32", "class ViewFinder:\n def __init__(self):\n self.script_lock = e32.Ao_lock()\n self.finder_on=0\n\n def run(self):\n old_title = appuifw.app.title\n self.refresh()", " def __init__(self):\n self.script_lock = e32.Ao...
# c: & cd "C:\Program Files\PythonForS60" # ensymble.py py2sis i:camera_tests.py i: import appuifw, e32 import os import sys import time import traceback # Must set landscape mode *before* importing camera2 module! appuifw.app.screen = "large" # 'full' == no menu to exit! appuifw.app.orientation = "landsca...
[ [ 1, 0, 0.0202, 0.0051, 0, 0.66, 0, 739, 0, 2, 0, 0, 739, 0, 0 ], [ 1, 0, 0.0253, 0.0051, 0, 0.66, 0.02, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0303, 0.0051, 0, 0....
[ "import appuifw, e32", "import os", "import sys", "import time", "import traceback", "appuifw.app.screen = \"large\" # 'full' == no menu to exit!", "appuifw.app.orientation = \"landscape\"", "import camera2 as camera", "MY_DEBUG = True", "LOCAL_FOLDER = \"E:\\\\\"", "def GetCurrentTime():\n i...
""" FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2008 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http://www.gnu.org/license...
[ [ 8, 0, 0.0719, 0.1375, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.15, 0.0063, 0, 0.66, 0.1667, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.1562, 0.0063, 0, 0.66, ...
[ "\"\"\"\nFCKeditor - The text editor for Internet - http://www.fckeditor.net\nCopyright (C) 2003-2008 Frederico Caldeira Knabben\n\n== BEGIN LICENSE ==\n\nLicensed under the terms of any of the following licenses at your\nchoice:", "import cgi", "import os", "import re", "import string", "def escape(text,...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") h...
[ [ 8, 0, 0.2586, 0.431, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.5, 0.0172, 0, 0.66, 0.2, 385, 0, 1, 0, 0, 385, 0, 0 ], [ 1, 0, 0.5172, 0.0172, 0, 0.66, 0...
[ "\"\"\"\nFCKeditor - The text editor for Internet - http://www.fckeditor.net\nCopyright (C) 2003-2009 Frederico Caldeira Knabben\n\n== BEGIN LICENSE ==\n\nLicensed under the terms of any of the following licenses at your\nchoice:", "from connector import FCKeditorConnector", "from upload import FCKeditorQuickUp...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http:...
[ [ 1, 0, 0.0213, 0.0213, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0638, 0.0213, 0, 0.66, 0.2, 630, 0, 1, 0, 0, 630, 0, 0 ], [ 1, 0, 0.0851, 0.0213, 0, 0.6...
[ "import os", "from fckutil import *", "from fckcommands import * \t# default command's implementation", "from fckconnector import FCKeditorConnectorBase # import base connector", "import config as Config", "class FCKeditorQuickUpload(\tFCKeditorConnectorBase,\n\t\t\t\t\t\t\tUploadFileCommandMixin,\n\t\t\t...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http:...
[ [ 8, 0, 0.1667, 0.2778, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3111, 0.0111, 0, 0.66, 0.1429, 934, 0, 2, 0, 0, 934, 0, 0 ], [ 1, 0, 0.3333, 0.0111, 0, 0.66...
[ "\"\"\"\nFCKeditor - The text editor for Internet - http://www.fckeditor.net\nCopyright (C) 2003-2009 Frederico Caldeira Knabben\n\n== BEGIN LICENSE ==\n\nLicensed under the terms of any of the following licenses at your\nchoice:", "import cgi, os", "from fckutil import *", "from fckcommands import * \t# defa...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") h...
[ [ 1, 0, 0.0127, 0.0127, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.038, 0.0127, 0, 0.66, 0.1667, 630, 0, 1, 0, 0, 630, 0, 0 ], [ 1, 0, 0.0506, 0.0127, 0, 0...
[ "import os", "from fckutil import *", "from fckcommands import * \t# default command's implementation", "from fckoutput import * \t# base http, xml and html output mixins", "from fckconnector import FCKeditorConnectorBase # import base connector", "import config as Config", "class FCKeditorConnector(\tF...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http:...
[ [ 8, 0, 0.1176, 0.1933, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2269, 0.0084, 0, 0.66, 0.1429, 654, 0, 2, 0, 0, 654, 0, 0 ], [ 1, 0, 0.2353, 0.0084, 0, 0.66...
[ "\"\"\"\nFCKeditor - The text editor for Internet - http://www.fckeditor.net\nCopyright (C) 2003-2009 Frederico Caldeira Knabben\n\n== BEGIN LICENSE ==\n\nLicensed under the terms of any of the following licenses at your\nchoice:", "from time import gmtime, strftime", "import string", "def escape(text, replac...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http:...
[ [ 8, 0, 0.1667, 0.2778, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3111, 0.0111, 0, 0.66, 0.1429, 934, 0, 2, 0, 0, 934, 0, 0 ], [ 1, 0, 0.3333, 0.0111, 0, 0.66...
[ "\"\"\"\nFCKeditor - The text editor for Internet - http://www.fckeditor.net\nCopyright (C) 2003-2009 Frederico Caldeira Knabben\n\n== BEGIN LICENSE ==\n\nLicensed under the terms of any of the following licenses at your\nchoice:", "import cgi, os", "from fckutil import *", "from fckcommands import * \t# defa...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") h...
[ [ 1, 0, 0.0127, 0.0127, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.038, 0.0127, 0, 0.66, 0.1667, 630, 0, 1, 0, 0, 630, 0, 0 ], [ 1, 0, 0.0506, 0.0127, 0, 0...
[ "import os", "from fckutil import *", "from fckcommands import * \t# default command's implementation", "from fckoutput import * \t# base http, xml and html output mixins", "from fckconnector import FCKeditorConnectorBase # import base connector", "import config as Config", "class FCKeditorConnector(\tF...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http:...
[ [ 8, 0, 0.1176, 0.1933, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2269, 0.0084, 0, 0.66, 0.1429, 654, 0, 2, 0, 0, 654, 0, 0 ], [ 1, 0, 0.2353, 0.0084, 0, 0.66...
[ "\"\"\"\nFCKeditor - The text editor for Internet - http://www.fckeditor.net\nCopyright (C) 2003-2009 Frederico Caldeira Knabben\n\n== BEGIN LICENSE ==\n\nLicensed under the terms of any of the following licenses at your\nchoice:", "from time import gmtime, strftime", "import string", "def escape(text, replac...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") h...
[ [ 8, 0, 0.2586, 0.431, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.5, 0.0172, 0, 0.66, 0.2, 385, 0, 1, 0, 0, 385, 0, 0 ], [ 1, 0, 0.5172, 0.0172, 0, 0.66, 0...
[ "\"\"\"\nFCKeditor - The text editor for Internet - http://www.fckeditor.net\nCopyright (C) 2003-2009 Frederico Caldeira Knabben\n\n== BEGIN LICENSE ==\n\nLicensed under the terms of any of the following licenses at your\nchoice:", "from connector import FCKeditorConnector", "from upload import FCKeditorQuickUp...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http:...
[ [ 1, 0, 0.0213, 0.0213, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0638, 0.0213, 0, 0.66, 0.2, 630, 0, 1, 0, 0, 630, 0, 0 ], [ 1, 0, 0.0851, 0.0213, 0, 0.6...
[ "import os", "from fckutil import *", "from fckcommands import * \t# default command's implementation", "from fckconnector import FCKeditorConnectorBase # import base connector", "import config as Config", "class FCKeditorQuickUpload(\tFCKeditorConnectorBase,\n\t\t\t\t\t\t\tUploadFileCommandMixin,\n\t\t\t...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2008 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") h...
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.4, 0.2, 0, 0.66, 0.5, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.8, 0.2, 0, 0.66, 1, 669,...
[ "import cgi", "import os", "import fckeditor" ]
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2008 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") h...
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.6667, 0.3333, 0, 0.66, 1, 688, 0, 1, 0, 0, 688, 0, 0 ] ]
[ "import cgi", "import os" ]
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2008 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") h...
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.4, 0.2, 0, 0.66, 0.5, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.8, 0.2, 0, 0.66, 1, 669,...
[ "import cgi", "import os", "import fckeditor" ]
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2008 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") h...
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.6667, 0.3333, 0, 0.66, 1, 688, 0, 1, 0, 0, 688, 0, 0 ] ]
[ "import cgi", "import os" ]
#==================================================================== # 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...
#!/usr/bin/env python # encoding: utf-8 # Author: Zhang Huangbin <zhb@iredmail.org> # Purpose: Add three service name in 'enabledService' attribute. # Required in iRedMail-0.7.0. # Date: 2011-01-28 import sys import ldap # Note: # * bind_dn must have write privilege on LDAP server. uri = 'ldap://1...
[ [ 1, 0, 0.1169, 0.013, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1299, 0.013, 0, 0.66, 0.0556, 366, 0, 1, 0, 0, 366, 0, 0 ], [ 14, 0, 0.1818, 0.013, 0, 0....
[ "import sys", "import ldap", "uri = 'ldap://127.0.0.1:389'", "basedn = 'o=domains,dc=iredmail,dc=org'", "bind_dn = 'cn=vmailadmin,dc=iredmail,dc=org'", "bind_pw = 'passwd'", "print >> sys.stderr, \"* Connecting to LDAP server: %s\" % uri", "conn = ldap.initialize(uri=uri, trace_level=0,)", "conn.bin...
#!/usr/bin/env python # encoding: utf-8 # Author: Zhang Huangbin <zhb@iredmail.org> # Purpose: Add three new services name in 'enabledService' attribute. # Required in iRedMail-0.6.0. # Date: 2010-05-31 import sys import ldap # Note: # * bind_dn must have write privilege on LDAP server. uri = 'lda...
[ [ 1, 0, 0.1216, 0.0135, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1351, 0.0135, 0, 0.66, 0.0556, 366, 0, 1, 0, 0, 366, 0, 0 ], [ 14, 0, 0.1892, 0.0135, 0, ...
[ "import sys", "import ldap", "uri = 'ldap://127.0.0.1:389'", "basedn = 'o=domains,dc=iredmail,dc=org'", "bind_dn = 'cn=vmailadmin,dc=iredmail,dc=org'", "bind_pw = 'passwd'", "print >> sys.stderr, \"* Connecting to LDAP server: %s\" % uri", "conn = ldap.initialize(uri=uri, trace_level=0,)", "conn.bin...
#!/usr/bin/env python # encoding: utf-8 # Author: Zhang Huangbin <zhb@iredmail.org> # Purpose: Add enabledService=lda for all mail users. # Required in iRedMail-0.7.3. # Date: 2011-07-12 import sys import ldap # Note: # * bind_dn must have write privilege on LDAP server. uri = 'ldap://127.0.0.1:38...
[ [ 1, 0, 0.1233, 0.0137, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.137, 0.0137, 0, 0.66, 0.0556, 366, 0, 1, 0, 0, 366, 0, 0 ], [ 14, 0, 0.1918, 0.0137, 0, ...
[ "import sys", "import ldap", "uri = 'ldap://127.0.0.1:389'", "basedn = 'o=domains,dc=iredmail,dc=org'", "bind_dn = 'cn=vmailadmin,dc=iredmail,dc=org'", "bind_pw = 'passwd'", "print >> sys.stderr, \"* Connecting to LDAP server: %s\" % uri", "conn = ldap.initialize(uri=uri, trace_level=0,)", "conn.bin...
#!/usr/bin/env python # encoding: utf-8 # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # Purpose: Add three new services name in 'enabledService' attribute. # Required in iRedMail-0.5.1. import sys import ldap # Note: # * bind_dn must have write privilege on LDAP server. uri = 'ldap://127.0.0....
[ [ 1, 0, 0.129, 0.0161, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1452, 0.0161, 0, 0.66, 0.0769, 366, 0, 1, 0, 0, 366, 0, 0 ], [ 14, 0, 0.2097, 0.0161, 0, ...
[ "import sys", "import ldap", "uri = 'ldap://127.0.0.1:389'", "basedn = 'o=domains,dc=iredmail,dc=org'", "bind_dn = 'cn=vmailadmin,dc=iredmail,dc=org'", "bind_pw = 'passwd'", "conn = ldap.initialize(uri=uri, trace_level=0,)", "conn.bind_s(bind_dn, bind_pw)", "allUsers = conn.search_s(\n basedn...
#!/usr/bin/env python # encoding: utf-8 # Author: Zhang Huangbin <zhb@iredmail.org> # Purpose: Delete specified mail accounts. # Date: 2011-03-01 import sys import shlex import subprocess import ldap # Note: # * bind_dn must have write privilege on LDAP server. uri = 'ldap://127.0.0.1:389' basedn = 'o=domai...
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.4, 0.2, 0, 0.66, 0.3333, 300, 0, 1, 0, 0, 300, 0, 0 ], [ 1, 0, 0.6, 0.2, 0, 0.66, 0.6667, ...
[ "import sys", "import shlex", "import subprocess", "import ldap" ]
#!/usr/bin/env python # encoding: utf-8 # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # Purpose: Change password of ALL users under domain. # Usage: # - Change LDAP related settings below: # + uri # + basedn # + bind_dn # + bind_pw # - Run this script with domain name and new p...
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.6667, 0.3333, 0, 0.66, 1, 366, 0, 1, 0, 0, 366, 0, 0 ] ]
[ "import sys", "import ldap" ]
#!/usr/bin/env python # encoding: utf-8 # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # Purpose: Add three new services name in 'enabledService' attribute. # Required in iRedMail-0.5.1. import sys import ldap # Note: # * bind_dn must have write privilege on LDAP server. uri = 'ldap://127.0.0....
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.6667, 0.3333, 0, 0.66, 1, 366, 0, 1, 0, 0, 366, 0, 0 ] ]
[ "import sys", "import ldap" ]
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################################ # # qooxdoo - the new era of web development # # http://qooxdoo.org # # Copyright: # 2008 - 2012 1&1 Internet AG, Germany, http://www.1und1.de # # License: # LGPL: http://www.gnu.org/...
[ [ 1, 0, 0.1699, 0.0065, 0, 0.66, 0, 509, 0, 6, 0, 0, 509, 0, 0 ], [ 14, 0, 0.183, 0.0065, 0, 0.66, 0.0435, 328, 7, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1895, 0.0065, 0, 0...
[ "import sys, os, re, subprocess, codecs, optparse", "CMD_PYTHON = sys.executable", "QOOXDOO_PATH = '../../../../projects/tools/qooxdoo-2.1.1-sdk'", "QX_PYLIB = \"tool/pylib\"", "class IgnoringUnknownOptionParser(optparse.OptionParser):\n ##\n # <rargs> is the raw argument list. The original _process_a...
import shutil, os import tarfile import json def concat(dst, src1, src2): destination = open(dst, 'wb') shutil.copyfileobj(open(src1, 'rb'), destination) shutil.copyfileobj(open(src2, 'rb'), destination) destination.close() def tarLinuxFiles(tarname, src): tar = tarfile.open(tarname, "w:gz") ...
[ [ 1, 0, 0.0227, 0.0114, 0, 0.66, 0, 614, 0, 2, 0, 0, 614, 0, 0 ], [ 1, 0, 0.0341, 0.0114, 0, 0.66, 0.0244, 223, 0, 1, 0, 0, 223, 0, 0 ], [ 1, 0, 0.0455, 0.0114, 0, ...
[ "import shutil, os", "import tarfile", "import json", "def concat(dst, src1, src2):\n destination = open(dst, 'wb')\n shutil.copyfileobj(open(src1, 'rb'), destination)\n shutil.copyfileobj(open(src2, 'rb'), destination)\n destination.close()", " destination = open(dst, 'wb')", " shutil.c...
#!/usr/bin/env python # -*- coding: utf8 -*- # Author: ablozhou # E-mail: ablozhou@gmail.com # # Copyright 2010 ablozhou import codecs import string import modules.log4py as log4py log = log4py.log4py('[phonetic]') Chinese = 1 #sublang Mandarin = 11 Cantonese = 12 class Phonetic(): ''' Proc...
[ [ 1, 0, 0.0588, 0.0084, 0, 0.66, 0, 220, 0, 1, 0, 0, 220, 0, 0 ], [ 1, 0, 0.0672, 0.0084, 0, 0.66, 0.1429, 890, 0, 1, 0, 0, 890, 0, 0 ], [ 1, 0, 0.0756, 0.0084, 0, ...
[ "import codecs", "import string", "import modules.log4py as log4py", "log = log4py.log4py('[phonetic]')", "Chinese = 1", "Mandarin = 11", "Cantonese = 12", "class Phonetic():\n ''' Process phonetic symbols of Chiese characters\n or other languages.\n '''\n def __init__(self,phonetic,sublan...
#!/bin/dev python # coding=utf8 from memory import * import codecs import string import modules.log4py as log4py log = log4py.log4py('[Char]') Chinese = 1 Japanese = 3 Korean=5 Vietnamese = 6 English = 8 #sublang Mandarin = 11 Cantonese = 12 JapaneseOn = 31 JapaneseKun = 32 Hangul = 51 Korean_roman = 52 Us_en ...
[ [ 1, 0, 0.0131, 0.0033, 0, 0.66, 0, 497, 0, 1, 0, 0, 497, 0, 0 ], [ 1, 0, 0.0164, 0.0033, 0, 0.66, 0.0455, 220, 0, 1, 0, 0, 220, 0, 0 ], [ 1, 0, 0.0197, 0.0033, 0, ...
[ "from memory import *", "import codecs", "import string", "import modules.log4py as log4py", "log = log4py.log4py('[Char]')", "Chinese = 1", "Japanese = 3", "Korean=5", "Vietnamese = 6", "English = 8", "Mandarin = 11", "Cantonese = 12", "JapaneseOn = 31", "JapaneseKun = 32", "Hangul = 51...
#!/bin/dev python # coding=utf8 from log4py import * from char import * import exceptions import memory import codecs log = log4py.log4py('[group]') class OverflowException(Exception): pass class Iter(): def __init__(self,maxsize): self.items = [] self.maxsize = maxsize def __iter__(self):...
[ [ 1, 0, 0.0127, 0.0042, 0, 0.66, 0, 445, 0, 1, 0, 0, 445, 0, 0 ], [ 1, 0, 0.0169, 0.0042, 0, 0.66, 0.0909, 272, 0, 1, 0, 0, 272, 0, 0 ], [ 1, 0, 0.0211, 0.0042, 0, ...
[ "from log4py import *", "from char import *", "import exceptions", "import memory", "import codecs", "log = log4py.log4py('[group]')", "class OverflowException(Exception):\n pass", "class Iter():\n def __init__(self,maxsize):\n self.items = []\n self.maxsize = maxsize\n\n def __...
#!/usr/bin/env python # -*- coding: utf8 -*- # Author: ablozhou # E-mail: ablozhou@gmail.com # # Copyright 2010 ablozhou import codecs import string import modules.log4py as log4py log = log4py.log4py('[phonetic]') Chinese = 1 #sublang Mandarin = 11 Cantonese = 12 class Phonetic(): ''' Proc...
[ [ 1, 0, 0.0588, 0.0084, 0, 0.66, 0, 220, 0, 1, 0, 0, 220, 0, 0 ], [ 1, 0, 0.0672, 0.0084, 0, 0.66, 0.1429, 890, 0, 1, 0, 0, 890, 0, 0 ], [ 1, 0, 0.0756, 0.0084, 0, ...
[ "import codecs", "import string", "import modules.log4py as log4py", "log = log4py.log4py('[phonetic]')", "Chinese = 1", "Mandarin = 11", "Cantonese = 12", "class Phonetic():\n ''' Process phonetic symbols of Chiese characters\n or other languages.\n '''\n def __init__(self,phonetic,sublan...
#!/bin/env python #coding=utf8 class User(): def __init(self,name,passwd): self.name = name self.passwd = passwd
[ [ 3, 0, 0.7857, 0.5714, 0, 0.66, 0, 61, 0, 1, 0, 0, 0, 0, 0 ], [ 2, 1, 0.8571, 0.4286, 1, 0.61, 0, 75, 0, 3, 0, 0, 0, 0, 0 ], [ 14, 2, 0.8571, 0.1429, 2, 0.31, ...
[ "class User():\n def __init(self,name,passwd):\n self.name = name\n self.passwd = passwd", " def __init(self,name,passwd):\n self.name = name\n self.passwd = passwd", " self.name = name", " self.passwd = passwd" ]
#!/bin/env python # --*-- coding=utf8 --*-- # # Author: ablozhou # E-mail: ablozhou@gmail.com # # Copyright 2009 ablozhou # # Distributed under the terms of the GPL (GNU Public License) # # abcl is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License ...
[ [ 1, 0, 0.1806, 0.0069, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.1875, 0.0069, 0, 0.66, 0.125, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1944, 0.0069, 0, 0...
[ "import datetime", "import sys", "import traceback", "import codecs", "import types", "loglevels = {'stdout':['info','debug','warn','error','fatal'],\n 'file':['info','debug','warn','error','fatal']\n }", "logfile = 'logs.txt'", "class log4py:\n def __init__(self,modulename='gloabal', logleve...
#!/bin/dev python # coding=utf8 import time #记忆曲线,5min,30min,12hour,1day,2days,4days,7days,15days REM_TIME=[300,1800,43200,86400,172800,345600,604800,1296000] ISOTIMEFORMAT = '%Y-%m-%d %X' class Memory(): """ 一、 复习点的确定(根据艾宾浩斯记忆曲线制定): 1. 第一个记忆周期:5分钟 2. 第二个记忆周期:30分钟 3. 第三个记忆周期:12小时 4. 第四个记忆周期:1天 5. 第五个记忆周期:2天 6. 第...
[ [ 1, 0, 0.027, 0.0068, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 14, 0, 0.0405, 0.0068, 0, 0.66, 0.25, 382, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 0, 0.0541, 0.0068, 0, 0.6...
[ "import time", "REM_TIME=[300,1800,43200,86400,172800,345600,604800,1296000]", "ISOTIMEFORMAT = '%Y-%m-%d %X'", "class Memory():\n \"\"\"\n一、 复习点的确定(根据艾宾浩斯记忆曲线制定):\n1. 第一个记忆周期:5分钟\n2. 第二个记忆周期:30分钟\n3. 第三个记忆周期:12小时\n4. 第四个记忆周期:1天\n5. 第五个记忆周期:2天", " \"\"\"\n一、 复习点的确定(根据艾宾浩斯记忆曲线制定):\n1. 第一个记忆周期:5分钟\n2. 第...