prompt
large_stringlengths
72
9.34k
completion
large_stringlengths
0
7.61k
<|file_name|>models.py<|end_file_name|><|fim▁begin|>import uuid from django.db import models from django.conf import settings from django.contrib.auth.models import AbstractUser from django.contrib.auth.models import BaseUserManager from django.utils import timezone from accelerator_abstract.models import BaseUserRol...
is_team_member
<|file_name|>models.py<|end_file_name|><|fim▁begin|>import uuid from django.db import models from django.conf import settings from django.contrib.auth.models import AbstractUser from django.contrib.auth.models import BaseUserManager from django.utils import timezone from accelerator_abstract.models import BaseUserRol...
_get_startup
<|file_name|>models.py<|end_file_name|><|fim▁begin|>import uuid from django.db import models from django.conf import settings from django.contrib.auth.models import AbstractUser from django.contrib.auth.models import BaseUserManager from django.utils import timezone from accelerator_abstract.models import BaseUserRol...
_get_member
<|file_name|>models.py<|end_file_name|><|fim▁begin|>import uuid from django.db import models from django.conf import settings from django.contrib.auth.models import AbstractUser from django.contrib.auth.models import BaseUserManager from django.utils import timezone from accelerator_abstract.models import BaseUserRol...
_get_profile
<|file_name|>models.py<|end_file_name|><|fim▁begin|>import uuid from django.db import models from django.conf import settings from django.contrib.auth.models import AbstractUser from django.contrib.auth.models import BaseUserManager from django.utils import timezone from accelerator_abstract.models import BaseUserRol...
has_a_finalist_role
<|file_name|>models.py<|end_file_name|><|fim▁begin|>import uuid from django.db import models from django.conf import settings from django.contrib.auth.models import AbstractUser from django.contrib.auth.models import BaseUserManager from django.utils import timezone from accelerator_abstract.models import BaseUserRol...
_is_expert
<|file_name|>conf.py<|end_file_name|><|fim▁begin|>import os from ConfigParser import ConfigParser from amlib import argp tmp_conf = ConfigParser() tmp_path = os.path.dirname(os.path.abspath(__file__)) # /base/lib/here tmp_path = tmp_path.split('/') conf_path = '/'.join(tmp_path[0:-1]) # /base/lib tmp_conf.read(conf...
c['flat_file_map_dir'] = c[ff_map_dir_conf_key] except KeyError:
<|file_name|>conf.py<|end_file_name|><|fim▁begin|>import os from ConfigParser import ConfigParser from amlib import argp tmp_conf = ConfigParser() tmp_path = os.path.dirname(os.path.abspath(__file__)) # /base/lib/here tmp_path = tmp_path.split('/') conf_path = '/'.join(tmp_path[0:-1]) # /base/lib tmp_conf.read(conf...
try: container_conf_key = 'am_container_' + argp.a['mode'] c['am_container'] = c[container_conf_key] except KeyError: log_msg = 'Terminating. No such parameter in ampush.conf: ' + \ container_conf_key raise Exception(log_msg)
<|file_name|>conf.py<|end_file_name|><|fim▁begin|>import os from ConfigParser import ConfigParser from amlib import argp tmp_conf = ConfigParser() tmp_path = os.path.dirname(os.path.abspath(__file__)) # /base/lib/here tmp_path = tmp_path.split('/') conf_path = '/'.join(tmp_path[0:-1]) # /base/lib tmp_conf.read(conf...
c['am_container'] = c['am_container_default']
<|file_name|>conf.py<|end_file_name|><|fim▁begin|>import os from ConfigParser import ConfigParser from amlib import argp tmp_conf = ConfigParser() tmp_path = os.path.dirname(os.path.abspath(__file__)) # /base/lib/here tmp_path = tmp_path.split('/') conf_path = '/'.join(tmp_path[0:-1]) # /base/lib tmp_conf.read(conf...
try: ff_map_dir_conf_key = 'flat_file_map_dir_' + argp.a['source'] c['flat_file_map_dir'] = c[ff_map_dir_conf_key] except KeyError: log_msg = 'Terminating. No such parameter in ampush.conf: ' + \ ff_map_dir_conf_key raise Exception(log_msg)
<|file_name|>conf.py<|end_file_name|><|fim▁begin|>import os from ConfigParser import ConfigParser from amlib import argp tmp_conf = ConfigParser() tmp_path = os.path.dirname(os.path.abspath(__file__)) # /base/lib/here tmp_path = tmp_path.split('/') conf_path = '/'.join(tmp_path[0:-1]) # /base/lib tmp_conf.read(conf...
c['flat_file_map_dir'] = c['flat_file_map_dir_default']
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict<|fim▁hole|> PROJECT =...
from setuptools import setup, find_packages from engineer import version
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
""" Return a dictionary suitable for use in ``package_data`` in a distutils ``setup.py`` file. The dictionary looks like:: {'package': [files]} Where ``files`` is a list of all the files in that package that don't match anything in ``exclude``. If ``only_in_packages`` is true, th...
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
requirements = [] with open(requirements_file) as file: temp = file.readlines() temp = [i[:-1] for i in temp] for line in temp: if line is None or line == '' or line.startswith(('#', '-e', '-r')): continue else: requirements.append...
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
with open('README.md') as file: return file.read()
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
bad_name = False for pattern in exclude_directories: if fnmatchcase(name, pattern) or fn.lower() == pattern.lower(): bad_name = True if show_ignored: print >> sys.stderr, ( ...
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
bad_name = True if show_ignored: print >> sys.stderr, ( "Directory %s ignored by pattern %s" % (fn, pattern)) break
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
print >> sys.stderr, ( "Directory %s ignored by pattern %s" % (fn, pattern))
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
continue
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
if not package: new_package = name else: new_package = package + '.' + name stack.append((fn, '', new_package, False))
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
new_package = name
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
new_package = package + '.' + name
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
stack.append((fn, prefix + name + '/', package, only_in_packages))
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
bad_name = False for pattern in exclude: if fnmatchcase(name, pattern) or fn.lower() == pattern.lower(): bad_name = True if show_ignored: print >> sys.stderr, ( ...
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
bad_name = True if show_ignored: print >> sys.stderr, ( "File %s ignored by pattern %s" % (fn, pattern)) break
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
print >> sys.stderr, ( "File %s ignored by pattern %s" % (fn, pattern))
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
continue
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
continue
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
requirements.append(line)
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
find_package_data
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
get_install_requirements
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Bootstrap installation of setuptools from ez_setup import use_setuptools use_setuptools() import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from propane_distribution import cmdclassdict from setuptools impor...
get_readme
<|file_name|>application_gateway_ssl_predefined_policy.py<|end_file_name|><|fim▁begin|># coding=utf-8<|fim▁hole|># -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root ...
<|file_name|>application_gateway_ssl_predefined_policy.py<|end_file_name|><|fim▁begin|># coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # licen...
"""An Ssl predefined policy. :param id: Resource ID. :type id: str :param name: Name of Ssl predefined policy. :type name: str :param cipher_suites: Ssl cipher suites to be enabled in the specified order for application gateway. :type cipher_suites: list[str or ~azure.mgmt.network...
<|file_name|>application_gateway_ssl_predefined_policy.py<|end_file_name|><|fim▁begin|># coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # licen...
super(ApplicationGatewaySslPredefinedPolicy, self).__init__(**kwargs) self.name = kwargs.get('name', None) self.cipher_suites = kwargs.get('cipher_suites', None) self.min_protocol_version = kwargs.get('min_protocol_version', None)
<|file_name|>application_gateway_ssl_predefined_policy.py<|end_file_name|><|fim▁begin|># coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # licen...
__init__
<|file_name|>parse_args.py<|end_file_name|><|fim▁begin|>""" atomorder/parse_args.py Parses command line arguments and overwrites setting defaults """ from . import settings import argparse<|fim▁hole|>import sys description = "" epilog = "" parser = argparse.ArgumentParser( description = description, ...
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>from flask import Flask<|fim▁hole|>app = Flask(__name__) app.config.from_object('blog.config') from blog import views<|fim▁end|>
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
)
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
_fields_ = ( ('dx', ctypes.c_long), ('dy', ctypes.c_long), ('mouseData', ctypes.DWORD), ('dwFlags', ctypes.DWORD), ('time', ctypes.DWORD), ('dwExtraInfo', ctypes.POINTER(ctypes.c_ulong)), )
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
_fields_ = ( ('wVk', ctypes.WORD), ('wScan', ctypes.WORD), ('dwFlags', ctypes.DWORD), ('time', ctypes.DWORD), ('dwExtraInfo', ctypes.POINTER(ctypes.c_ulong)), )
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
_fields_ = ( ('uMsg', ctypes.DWORD), ('wParamL', ctypes.WORD), ('wParamH', ctypes.WORD), )
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
_fields_ = ( ('mi', MOUSEINPUT), ('ki', KEYBDINPUT), ('hi', HARDWAREINPUT), )
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
_fields_ = ( ('type', ctypes.DWORD), ('union', INPUTUnion))
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
def __init__(self, **kwargs): super(BrailleInputGesture, self).__init__() for key, value in kwargs.iteritems(): setattr(self, key, value) self.source="remote{}{}".format(self.source[0].upper(),self.source[1:]) self.scriptPath=getattr(self,"scriptPath",None) self.script=self.findScript() if self.scri...
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
super(BrailleInputGesture, self).__init__() for key, value in kwargs.iteritems(): setattr(self, key, value) self.source="remote{}{}".format(self.source[0].upper(),self.source[1:]) self.scriptPath=getattr(self,"scriptPath",None) self.script=self.findScript() if self.scriptPath else None
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
if not (isinstance(self.scriptPath,list) and len(self.scriptPath)==3): return None module,cls,scriptName=self.scriptPath focus = api.getFocusObject() if not focus: return None if scriptName.startswith("kb:"): # Emulate a key press. return scriptHandler._makeKbEmulateScript(scriptName) ...
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
i = INPUT() i.union.ki.wVk = vk if scan: i.union.ki.wScan = scan else: #No scancode provided, try to get one i.union.ki.wScan = ctypes.windll.user32.MapVirtualKeyW(vk, MAPVK_VK_TO_VSC) if not pressed: i.union.ki.dwFlags |= KEYEVENTF_KEYUP if extended: i.union.ki.dwFlags |= KEYEVENTF_EXTENDEDKEY ...
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
return None
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
return None
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
return scriptHandler._makeKbEmulateScript(scriptName)
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
for plugin in globalPluginHandler.runningPlugins: if module==plugin.__module__: func = getattr(plugin, "script_%s" % scriptName, None) if func: return func
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
func = getattr(plugin, "script_%s" % scriptName, None) if func: return func
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
return func
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
func = getattr(app, "script_%s" % scriptName, None) if func: return func
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
return func
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
func = getattr(treeInterceptor , "script_%s" % scriptName, None) # We are no keyboard input return func
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
return func
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
return func
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
return func
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
i.union.ki.wScan = scan
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
i.union.ki.wScan = ctypes.windll.user32.MapVirtualKeyW(vk, MAPVK_VK_TO_VSC)
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
i.union.ki.dwFlags |= KEYEVENTF_KEYUP
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
i.union.ki.dwFlags |= KEYEVENTF_EXTENDEDKEY
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
__init__
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
findScript
<|file_name|>input.py<|end_file_name|><|fim▁begin|>import ctypes.wintypes as ctypes import braille import brailleInput import globalPluginHandler import scriptHandler import inputCore import api INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 MAPVK_VK_TO_VSC = 0 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVE...
send_key
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
"""Tries to index a non-indexable list element.""" test_config = mock_config.get_config() with self.assertRaises(IndexError):
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
def test_list_extra_index(self): """Tries to index a non-indexable list element.""" test_config = mock_config.get_config() with self.assertRaises(IndexError): config_path.get_value('dict.list[0][0]', test_config) def test_list_out_of_range_get(self): """Tries to access out-of-range value in ...
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
"""Tries to index a non-indexable list element.""" test_config = mock_config.get_config() with self.assertRaises(IndexError): config_path.get_value('dict.list[0][0]', test_config)
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
"""Tries to access out-of-range value in list.""" test_config = mock_config.get_config() with self.assertRaises(IndexError): config_path.get_value('dict.list[2][1]', test_config)
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
"""Tries to override out-of-range value in list.""" test_config = mock_config.get_config() with self.assertRaises(IndexError): config_path.set_value('dict.list[2][1]', test_config, -1)
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
"""Tests reading non existing key from config.""" test_config = mock_config.get_config() with self.assertRaises(KeyError): config_path.set_value('dict.not_existing_key', test_config, 1)
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
"""Tests setting non existing key from dict inside config.""" test_config = mock_config.get_config() with self.assertRaises(KeyError): config_path.set_value('dict.not_existing_key.key', test_config, 1)
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
"""Tests calling an empty key update.""" test_config = mock_config.get_config() with self.assertRaises(ValueError): config_path.set_value('', test_config, None)
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
"""Tests whether types of FieldReference fields are valid.""" test_config = fieldreference_config.get_config() paths = ['ref_nodefault', 'ref'] paths_types = [int, int] config_types = [config_path.get_type(path, test_config) for path in paths] self.assertEqual(paths_types, config_types)
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
"""Tests whether various types of objects are valid.""" test_config = mock_config.get_config() self.assertEqual(path_type, config_path.get_type(path, test_config))
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
absltest.main()
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
test_list_extra_index
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
test_list_out_of_range_get
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
test_list_out_of_range_set
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
test_reading_non_existing_key
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
test_reading_setting_existing_key_in_dict
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
test_empty_key
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
test_field_reference_types
<|file_name|>config_path_test.py<|end_file_name|><|fim▁begin|># Copyright 2022 The ML Collections Authors. # # 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/licens...
test_types
<|file_name|>test_project_processingissues.py<|end_file_name|><|fim▁begin|>from __future__ import absolute_import from datetime import datetime from django.utils import timezone from django.core.urlresolvers import reverse from sentry.models import ( ProcessingIssue, EventError, RawEvent, EventProcessingIssue ) f...
response = self.client.get(url + '?detailed=1', format='json') assert response.status_code == 200, response.content assert response.data['numIssues'] == 0
<|file_name|>test_project_processingissues.py<|end_file_name|><|fim▁begin|>from __future__ import absolute_import from datetime import datetime from django.utils import timezone from django.core.urlresolvers import reverse from sentry.models import ( ProcessingIssue, EventError, RawEvent, EventProcessingIssue ) f...
def test_simple(self): self.login_as(user=self.user) team = self.create_team() project1 = self.create_project(team=team, name='foo') raw_event = RawEvent.objects.create( project_id=project1.id, event_id='abc' ) issue, _ = ProcessingIssue.obj...
<|file_name|>test_project_processingissues.py<|end_file_name|><|fim▁begin|>from __future__ import absolute_import from datetime import datetime from django.utils import timezone from django.core.urlresolvers import reverse from sentry.models import ( ProcessingIssue, EventError, RawEvent, EventProcessingIssue ) f...
self.login_as(user=self.user) team = self.create_team() project1 = self.create_project(team=team, name='foo') raw_event = RawEvent.objects.create( project_id=project1.id, event_id='abc' ) issue, _ = ProcessingIssue.objects.get_or_create( ...
<|file_name|>test_project_processingissues.py<|end_file_name|><|fim▁begin|>from __future__ import absolute_import from datetime import datetime from django.utils import timezone from django.core.urlresolvers import reverse from sentry.models import ( ProcessingIssue, EventError, RawEvent, EventProcessingIssue ) f...
self.login_as(user=self.user) team = self.create_team() project1 = self.create_project(team=team, name='foo') raw_event = RawEvent.objects.create( project_id=project1.id, event_id='abc' ) issue, _ = ProcessingIssue.objects.get_or_create( ...
<|file_name|>test_project_processingissues.py<|end_file_name|><|fim▁begin|>from __future__ import absolute_import from datetime import datetime from django.utils import timezone from django.core.urlresolvers import reverse from sentry.models import ( ProcessingIssue, EventError, RawEvent, EventProcessingIssue ) f...
self.login_as(user=self.user) team = self.create_team() project1 = self.create_project(team=team, name='foo') RawEvent.objects.create( project_id=project1.id, event_id='abc' ) url = reverse('sentry-api-0-project-processing-issues', kwargs={ ...
<|file_name|>test_project_processingissues.py<|end_file_name|><|fim▁begin|>from __future__ import absolute_import from datetime import datetime from django.utils import timezone from django.core.urlresolvers import reverse from sentry.models import ( ProcessingIssue, EventError, RawEvent, EventProcessingIssue ) f...
test_simple
<|file_name|>test_project_processingissues.py<|end_file_name|><|fim▁begin|>from __future__ import absolute_import from datetime import datetime from django.utils import timezone from django.core.urlresolvers import reverse from sentry.models import ( ProcessingIssue, EventError, RawEvent, EventProcessingIssue ) f...
test_issues
<|file_name|>test_project_processingissues.py<|end_file_name|><|fim▁begin|>from __future__ import absolute_import from datetime import datetime from django.utils import timezone from django.core.urlresolvers import reverse from sentry.models import ( ProcessingIssue, EventError, RawEvent, EventProcessingIssue ) f...
test_resolvable_issues
<|file_name|>cd.py<|end_file_name|><|fim▁begin|>############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgambl...
<|file_name|>cd.py<|end_file_name|><|fim▁begin|>############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgambl...
"""This is for decoration -- spack cd is used through spack's shell support. This allows spack cd to print a descriptive help message when called with -h.""" spack.cmd.location.setup_parser(subparser)
<|file_name|>cd.py<|end_file_name|><|fim▁begin|>############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgambl...
spack.modules.print_help()
<|file_name|>cd.py<|end_file_name|><|fim▁begin|>############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgambl...
setup_parser
<|file_name|>cd.py<|end_file_name|><|fim▁begin|>############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgambl...
cd
<|file_name|>__manifest__.py<|end_file_name|><|fim▁begin|># © 2008-2020 Dorin Hongu <dhongu(@)gmail(.)com # See README.rst file on addons root folder for license details <|fim▁hole|> "version": "14.0.3.0.3", "author": "Dorin Hongu," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n...
{ "name": "Romania - Invoice Report ", "summary": "Localizare Terrabit",