org_text stringlengths 830 329k | texts list | scores list | num_lines int64 1 8.05k | avg_score float64 0 0.27 | check bool 1
class |
|---|---|---|---|---|---|
#-------------------------------------------------------------------------
# Copyright (c) Microsoft. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apa... | [
"#-------------------------------------------------------------------------\n",
"# Copyright (c) Microsoft. All rights reserved.\n",
"#\n",
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n",
"# You may obtain a ... | [
0.013333333333333334,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.013157894736842105,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 2,637 | 0.000177 | false |
#
# This file is part of Dragonfly.
# (c) Copyright 2007, 2008 by Christo Butcher
# Licensed under the LGPL.
#
# Dragonfly is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 3 of th... | [
"#\n",
"# This file is part of Dragonfly.\n",
"# (c) Copyright 2007, 2008 by Christo Butcher\n",
"# Licensed under the LGPL.\n",
"#\n",
"# Dragonfly is free software: you can redistribute it and/or modify it \n",
"# under the terms of the GNU Lesser General Public License as published \n",
"# by... | [
0,
0,
0,
0,
0,
0.013513513513513514,
0.013333333333333334,
0.013513513513513514,
0,
0,
0.014285714285714285,
0.015625,
0.014084507042253521,
0,
0,
0.014285714285714285,
0.020833333333333332,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.017543859649122806,
0,
0,
0.01298... | 47 | 0.003192 | false |
# -*- coding: utf-8 -*-
#------------------------------------------------------------
# Movies-Online - XBMC Add-on by Juarrox (juarrox@gmail.com)
# Version 0.2.92 (18.07.2014)
#------------------------------------------------------------
# License: GPL (http://www.gnu.org/licenses/gpl-3.0.html)
# Librerías Plugintool... | [
"# -*- coding: utf-8 -*-\n",
"#------------------------------------------------------------\n",
"# Movies-Online - XBMC Add-on by Juarrox (juarrox@gmail.com)\n",
"# Version 0.2.92 (18.07.2014)\n",
"#------------------------------------------------------------\n",
"# License: GPL (http://www.gnu.org/licens... | [
0,
0.016129032258064516,
0,
0,
0.016129032258064516,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.010309278350515464,
0.008928571428571428,
0,
0.010101010101010102,
0.010101010101010102,
0.011904761904761904,
0,
0,
0,
0,
0,
0,
... | 346 | 0.014934 | false |
#-------------------------------------------------------------------------
# Copyright (c) Microsoft. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apa... | [
"#-------------------------------------------------------------------------\n",
"# Copyright (c) Microsoft. All rights reserved.\n",
"#\n",
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n",
"# You may obtain a ... | [
0.013333333333333334,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.013157894736842105,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 1,349 | 0.000423 | false |
# Copyright 2016 The Johns Hopkins University Applied Physics Laboratory
#
# 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... | [
"# Copyright 2016 The Johns Hopkins University Applied Physics Laboratory\n",
"#\n",
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n",
"# You may obtain a copy of the License at\n",
"#\n",
"# http://www.apache... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.03333333333333333,
0,
0,
0,
0,
0,
0,
0,
0.009615384615384616,
0,
0,
0,
0,
0,
0,
0,
0,
0.00847457627118644,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 591 | 0.001221 | false |
################################################################################
### Copyright © 2012-2013 BlackDragonHunt
###
### This file is part of the Super Duper Script Editor.
###
### The Super Duper Script Editor is free software: you can redistribute it
### and/or modify it under the terms of the GNU Genera... | [
"################################################################################\n",
"### Copyright © 2012-2013 BlackDragonHunt\n",
"### \n",
"### This file is part of the Super Duper Script Editor.\n",
"### \n",
"### The Super Duper Script Editor is free software: you can redistribute it\n",
"### and/... | [
0.012345679012345678,
0.023809523809523808,
0.2,
0.017857142857142856,
0.2,
0.013157894736842105,
0.013513513513513514,
0.0125,
0.023255813953488372,
0.2,
0.012987012987012988,
0.013333333333333334,
0.015151515151515152,
0.02040816326530612,
0.2,
0.014285714285714285,
0.0217391304347... | 72 | 0.064291 | false |
from contextlib import suppress
from typing import Match, Optional, Sequence # noqa: F401
from lib.data import CustomFieldArgs
import re
async def fieldParams(args: CustomFieldArgs) -> Optional[str]:
with suppress(TypeError):
match: Match[str]
match = re.fullmatch(r'(\d+)(-(\d+))?|(\d+)-|-(\d+)'... | [
"from contextlib import suppress\n",
"from typing import Match, Optional, Sequence # noqa: F401\n",
"from lib.data import CustomFieldArgs\n",
"import re\n",
"\n",
"\n",
"async def fieldParams(args: CustomFieldArgs) -> Optional[str]:\n",
" with suppress(TypeError):\n",
" match: Match[str]\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | 36 | 0 | false |
# -*- coding: utf-8 -*-
#------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# Canal para bajui
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#------------------------------------------------------------
import re
import sys
import urlparse
from core import config
fro... | [
"# -*- coding: utf-8 -*-\n",
"#------------------------------------------------------------\n",
"# pelisalacarta - XBMC Plugin\n",
"# Canal para bajui\n",
"# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/\n",
"#------------------------------------------------------------\n",
"import re\n",
"im... | [
0,
0.016129032258064516,
0,
0,
0,
0.016129032258064516,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.017094017094017096,
0.023391812865497075,
0.022598870056497175,
0.02976190476190476,
0,
0,
0.04,
0,
0,
0.0228310502283105,
0.0212765957446808... | 244 | 0.019305 | false |
# -*- coding: utf-8 -*-
from core import scrapertools
from platformcode import logger
def test_video_exists(page_url):
logger.info("(page_url='%s')" % page_url)
# No existe / borrado: http://vidspot.net/8jcgbrzhujri
data = scrapertools.cache_page("http://anonymouse.org/cgi-bin/anon-www.cgi/" + page_url... | [
"# -*- coding: utf-8 -*-\n",
"\n",
"from core import scrapertools\n",
"from platformcode import logger\n",
"\n",
"\n",
"def test_video_exists(page_url):\n",
" logger.info(\"(page_url='%s')\" % page_url)\n",
"\n",
" # No existe / borrado: http://vidspot.net/8jcgbrzhujri\n",
" data = scra... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.010752688172043012,
0.009523809523809525,
0.011363636363636364,
0,
0,
0,
0,
0,
0.011764705882352941,
0,
0,
0,
0.011904761904761904,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.010101010101010102,
0,
0,
0,
0,
0,
0,
0,... | 57 | 0.001483 | false |
from flask.ext.classy import FlaskView, route
from components import featureBroker
from flask import render_template, abort, request
from datetime import datetime
class JobController(FlaskView):
route_base = '/jobs'
scheduler = featureBroker.RequiredFeature('scheduler')
@route('/')
def jobs(self):
... | [
"from flask.ext.classy import FlaskView, route\n",
"from components import featureBroker\n",
"from flask import render_template, abort, request\n",
"from datetime import datetime\n",
"\n",
"class JobController(FlaskView):\n",
" route_base = '/jobs'\n",
" scheduler = featureBroker.RequiredFeature... | [
0,
0,
0,
0,
0,
0.03125,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.1111111111111111,
0,
0,
0,
0,
0.024390243902439025,
0,
0,
0.0625,
0,
0.1111111111111111,
0,
0,
0,
0,
0.012658227848101266,
0,
0.0625,
0,
0.1111111111111111,
0,
0,
0,
0,
0... | 57 | 0.014423 | false |
#-------------------------------------------------------------------------
# Copyright (c) Microsoft. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apa... | [
"#-------------------------------------------------------------------------\n",
"# Copyright (c) Microsoft. All rights reserved.\n",
"#\n",
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n",
"# You may obtain a ... | [
0.013333333333333334,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.013157894736842105,
0,
0,
0,
0,
0,
0.00980392156862745,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.0625,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.047619047619047616,
0,
0,
0,
0,
0,
0,
0... | 362 | 0.002222 | false |
import random
from sigma.core.stats import add_special_stats
async def unflip_control(ev, message, args):
if '(╯°□°)╯︵ ┻━┻' in message.content:
unflip = True
if message.guild:
if ev.db.get_settings(message.guild.id, 'Unflip'):
unflip = True
if unflip:
... | [
"import random\n",
"from sigma.core.stats import add_special_stats\n",
"\n",
"async def unflip_control(ev, message, args):\n",
" if '(╯°□°)╯︵ ┻━┻' in message.content:\n",
" unflip = True\n",
" if message.guild:\n",
" if ev.db.get_settings(message.guild.id, 'Unflip'):\n",
... | [
0,
0,
0,
0.022222222222222223,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.02702702702702703,
0,
0,
0,
0.02631578947368421,
0,
0,
0,
0
] | 23 | 0.003285 | false |
import time
import discord
import asyncio
from sigma.core.utils import user_avatar
from sigma.core.stats import add_special_stats
from .init_clock import init_clock
def get_voice_members_count(voice_channel):
member_count = 0
for member in voice_channel.members:
if not member.bot:
if not ... | [
"import time\n",
"import discord\n",
"import asyncio\n",
"from sigma.core.utils import user_avatar\n",
"from sigma.core.stats import add_special_stats\n",
"from .init_clock import init_clock\n",
"\n",
"\n",
"def get_voice_members_count(voice_channel):\n",
" member_count = 0\n",
" for membe... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.010309278350515464,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.009615384615384616,
0.010101... | 128 | 0.002696 | false |
# -*- coding: utf-8 -*-
###############################################################################################
#
# MediaPortal for Dreambox OS
#
# Coded by MediaPortal Team (c) 2013-2017
#
# This plugin is open source but it is NOT free software.
#
# This plugin may only be distributed to and executed... | [
"# -*- coding: utf-8 -*-\n",
"###############################################################################################\n",
"#\n",
"# MediaPortal for Dreambox OS\n",
"#\n",
"# Coded by MediaPortal Team (c) 2013-2017\n",
"#\n",
"# This plugin is open source but it is NOT free software.\n",... | [
0,
0.010416666666666666,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.011235955056179775,
0,
0.010638297872340425,
0,
0,
0,
0,
0,
0,
0.011235955056179775,
0,
0,
0.009174311926605505,
0.011627906976744186,
0,
0,
0.011235955056179775,
0.01098901098901099,
0.0120481927710... | 315 | 0.031322 | false |
from common.diagrams_arrestin import DrawArrestinPlot
from common.diagrams_gpcr import DrawHelixBox, DrawSnakePlot
from common.diagrams_gprotein import DrawGproteinPlot
from django.db import models
from residue.models import (Residue, ResidueDataPoint, ResidueDataType,
ResidueGenericNumberE... | [
"from common.diagrams_arrestin import DrawArrestinPlot\n",
"from common.diagrams_gpcr import DrawHelixBox, DrawSnakePlot\n",
"from common.diagrams_gprotein import DrawGproteinPlot\n",
"from django.db import models\n",
"from residue.models import (Residue, ResidueDataPoint, ResidueDataType,\n",
" ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.008333333333333333,
0.011494252873563218,
0.012048192771084338,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.025974025974025976,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.01704545... | 417 | 0.003107 | false |
import os
import bpy
from bpy.props import *
bl_info = {
"name": "PMK Vehicle properties",
"author": "Karol Wajs",
"version": (0, 0, 1),
"blender": (2, 7, 6),
"location": "Viewport",
"description": "",
"category": "Object"
}
def register():
print('\nregistering ', 'Tank properties... | [
"import os\n",
"import bpy\n",
"from bpy.props import *\n",
"\n",
"bl_info = {\n",
" \"name\": \"PMK Vehicle properties\",\n",
" \"author\": \"Karol Wajs\",\n",
" \"version\": (0, 0, 1),\n",
" \"blender\": (2, 7, 6),\n",
" \"location\": \"Viewport\",\n",
" \"description\": \"\"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.0625,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.05555555555555555,
0,
0,
0,
0,
0,
0,
0,
0,
0.037037037037037035,
0,
0,
0,
0,
0,
0,
0.02040816326530612,
0.037037037037037035,
0,
0.012048192771084338,
... | 153 | 0.015656 | false |
"""
Django settings for MeetingActions project.
Dont forget to
import django
django.setup()
"""
from os import path
PROJECT_ROOT = path.dirname(path.abspath(path.dirname(__file__)))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ALLOWED_HOSTS = (
'localhost',
)
ADMINS = (
# ('user', 'a@b.com'),
)
MANAGERS = ... | [
"\"\"\"\n",
"Django settings for MeetingActions project.\n",
"Dont forget to\n",
" import django\n",
" django.setup()\n",
"\"\"\"\n",
"\n",
"from os import path\n",
"PROJECT_ROOT = path.dirname(path.abspath(path.dirname(__file__)))\n",
"\n",
"DEBUG = True\n",
"TEMPLATE_DEBUG = DEBUG\n",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 174 | 0.000628 | false |
__author__ = 'Brendan Gluth'
import ubidots.apiclient as UbiApi
from requests.exceptions import RequestException
def _tryConnect(connectFunction):
def connect():
functionResults = connectFunction()
if functionResults is None:
functionResults = True
return functionResults
... | [
"__author__ = 'Brendan Gluth'\n",
"\n",
"import ubidots.apiclient as UbiApi\n",
"from requests.exceptions import RequestException\n",
"\n",
"def _tryConnect(connectFunction):\n",
" def connect():\n",
" functionResults = connectFunction()\n",
" if functionResults is None:\n",
" ... | [
0,
0,
0,
0,
0,
0.029411764705882353,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.02127659574468085,
0,
0.03571428571428571,
0,
0,
0,
0,
0,
0,
0.02,
0,
0,
0.047619047619047616,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.01020408163265306,
0... | 75 | 0.003971 | false |
# All Controllers of the MVC Architecture go here.
from PySide import QtCore, QtGui
import views
import models
class MainWindowController(QtGui.QMainWindow, views.MainWindowView):
"""Controller for the main window of the application"""
def __init__(self):
super(MainWindowController, self).__init__()
... | [
"# All Controllers of the MVC Architecture go here.\n",
"from PySide import QtCore, QtGui\n",
"import views\n",
"import models\n",
"\n",
"class MainWindowController(QtGui.QMainWindow, views.MainWindowView):\n",
" \"\"\"Controller for the main window of the application\"\"\"\n",
" def __init__(se... | [
0,
0,
0,
0,
0,
0.014492753623188406,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.012048192771084338,
0,
0,
0,
0.009523809523809525,
0,
0,
0,
0.008928571428571428,
0,
0,
0,
0,
0,
0,
0,
0,
0.011494252873563218,
0,
0.011904761904761904,
0,
0.... | 218 | 0.002401 | false |
from collections import defaultdict
from .env import env
from .ir import Ctx, CONST
from .ahdl import *
from .ahdlvisitor import AHDLVisitor
from .hdlmodule import FIFOModule
from .hdlmemport import HDLMemPortMaker, HDLTuplePortMaker, HDLRegArrayPortMaker
from .hdlinterface import *
from .memref import *
from logging ... | [
"from collections import defaultdict\n",
"from .env import env\n",
"from .ir import Ctx, CONST\n",
"from .ahdl import *\n",
"from .ahdlvisitor import AHDLVisitor\n",
"from .hdlmodule import FIFOModule\n",
"from .hdlmemport import HDLMemPortMaker, HDLTuplePortMaker, HDLRegArrayPortMaker\n",
"from .hdli... | [
0,
0,
0,
0,
0,
0,
0.012345679012345678,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | 590 | 0.0006 | false |
#!/usr/bin/python
from __future__ import division
import os
import json
import datetime
class db2hc:
def __init__(self, module):
self.module = module
def run_command(self,cmd):
rc,stdout,stderr=module.run_command(cmd,use_unsafe_shell=True)
if stderr != '' or rc !=0:
... | [
"#!/usr/bin/python\r\n",
"from __future__ import division\r\n",
"import os\r\n",
"import json\r\n",
"import datetime\r\n",
"\r\n",
"\r\n",
"class db2hc:\r\n",
" def __init__(self, module):\r\n",
" self.module = module\r\n",
" \r\n",
" def run_command(self,cmd):\r\n",
" r... | [
0,
0,
0,
0,
0,
0,
0,
0,
0.03225806451612903,
0.03571428571428571,
0.1,
0.06666666666666667,
0.06944444444444445,
0.027777777777777776,
0.041666666666666664,
0,
0.23076923076923078,
0.14285714285714285,
0.058823529411764705,
0.05970149253731343,
0.08108108108108109,
0.053571... | 334 | 0.08142 | false |
#!/usr/bin/env python
#coding:utf-8
# Author: mozman
# Purpose: svg base element
# Created: 08.09.2010
# Copyright (C) 2010, Manfred Moitzi
# License: GPLv3
"""
The **BaseElement** is the root for all SVG elements.
"""
from svgwrite.etree import etree
import copy
from svgwrite.params import Paramete... | [
"#!/usr/bin/env python\r\n",
"#coding:utf-8\r\n",
"# Author: mozman\r\n",
"# Purpose: svg base element\r\n",
"# Created: 08.09.2010\r\n",
"# Copyright (C) 2010, Manfred Moitzi\r\n",
"# License: GPLv3\r\n",
"\"\"\"\r\n",
"The **BaseElement** is the root for all SVG elements.\r\n",
"\"\"\"\r\n",
... | [
0,
0.06666666666666667,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.03571428571428571,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 261 | 0.001715 | false |
from django.utils.text import slugify
from django.db import models
from django.core.cache import cache
from common.diagrams_gpcr import DrawHelixBox, DrawSnakePlot
from common.diagrams_gprotein import DrawGproteinPlot
from common.diagrams_arrestin import DrawArrestinPlot
from residue.models import Residue, ResidueNum... | [
"from django.utils.text import slugify\n",
"from django.db import models\n",
"from django.core.cache import cache\n",
"from common.diagrams_gpcr import DrawHelixBox, DrawSnakePlot\n",
"from common.diagrams_gprotein import DrawGproteinPlot\n",
"from common.diagrams_arrestin import DrawArrestinPlot\n",
"\... | [
0,
0,
0,
0,
0,
0,
0,
0.007936507936507936,
0,
0.034482758620689655,
0,
0,
0,
0,
0.008333333333333333,
0.011494252873563218,
0.012048192771084338,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.025974025974025976,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | 385 | 0.003278 | false |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from flask import render_template, session, redirect, url_for, flash
from slugify import slugify_url
from app import app, stories
from story import put_vars
@app.context_processor
def inject():
return dict(slugify=slugify_url, put_va... | [
"# -*- coding: utf-8 -*-\r\n",
"\r\n",
"from __future__ import unicode_literals\r\n",
"\r\n",
"from flask import render_template, session, redirect, url_for, flash\r\n",
"from slugify import slugify_url\r\n",
"\r\n",
"from app import app, stories\r\n",
"from story import put_vars\r\n",
"\r\n",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.012195121951219513,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | 129 | 0.000095 | false |
# This file is part of Tautulli.
#
# Tautulli is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Tautulli is distributed in the... | [
"# This file is part of Tautulli.\n",
"#\n",
"# Tautulli is free software: you can redistribute it and/or modify\n",
"# it under the terms of the GNU General Public License as published by\n",
"# the Free Software Foundation, either version 3 of the License, or\n",
"# (at your option) any later versi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 4,021 | 0.001221 | false |
import string
import logging
def is_number(s):
try:
float(s)
return True
except ValueError:
return False
def RepresentsInt(s):
try:
int(s)
return True
except ValueError:
return False
def get_bin(x, n):
'''
Return the 2's complement of the in... | [
"import string\n",
"import logging\n",
"\n",
"\n",
"def is_number(s):\n",
" try:\n",
" float(s)\n",
" return True\n",
" except ValueError:\n",
" return False\n",
"\n",
"\n",
"def RepresentsInt(s):\n",
" try:\n",
" int(s)\n",
" return True\n",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 692 | 0.000108 | false |
from collections import defaultdict
from .irvisitor import IRVisitor
from .ir import *
from .block import Block
from .env import env
from .symbol import Symbol
from logging import getLogger
logger = getLogger(__name__)
class UseDefTable(object):
def __init__(self):
self._def_sym2stm = defaultdict(set)
... | [
"from collections import defaultdict\n",
"from .irvisitor import IRVisitor\n",
"from .ir import *\n",
"from .block import Block\n",
"from .env import env\n",
"from .symbol import Symbol\n",
"from logging import getLogger\n",
"logger = getLogger(__name__)\n",
"\n",
"\n",
"class UseDefTable(object... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 247 | 0.004193 | false |
#-------------------------------------------------------------------------------
# Name: test_LinkedDropdownLists
# Purpose: testing how a dropdown's values can depend on the values
# from another dropdown list
#
# Author: Julien Moura (https://github.com/Guts/)
#
# Created: 16/02... | [
"#-------------------------------------------------------------------------------\n",
"# Name: test_LinkedDropdownLists\n",
"# Purpose: testing how a dropdown's values can depend on the values\n",
"# from another dropdown list\n",
"#\n",
"# Author: Julien Moura (https://gi... | [
0.024691358024691357,
0,
0,
0,
0,
0,
0,
0,
0,
0.024691358024691357,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.037037037037037035,
0.009900990099009901,
0,
0,
0,
0,
... | 69 | 0.005275 | false |
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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 Lice... | [
"# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.\n",
"# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.\n",
"#\n",
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n... | [
0,
0.012345679012345678,
0,
0,
0,
0.011764705882352941,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.047619047619047616,
0.037037037037037035,
0.02631578947368421,
0.021739130434782608,
0.029411764705882353,
0.014285714285714285,
0.024691358024691357,
0.05263157894736... | 146 | 0.005982 | false |
# -*- coding:utf-8 -*-
from sailing.core import Sailor, new_task
from sailing.core.web.website import WebSite
from http_client import HTTPClient
from sailing.conf import settings
from sailing.common.common import join_path, trackable, is_file
from sailing.common.utils import import_class
import logging
class Spider(... | [
"# -*- coding:utf-8 -*-\n",
"\n",
"from sailing.core import Sailor, new_task\n",
"from sailing.core.web.website import WebSite\n",
"from http_client import HTTPClient\n",
"from sailing.conf import settings\n",
"from sailing.common.common import join_path, trackable, is_file\n",
"from sailing.common.ut... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.045454545454545456,
0,
0.2,
0,
0,
0,
0,
0.1111111111111111,
0,
0.1111111111111111,
0.1111111111111111,
0.03225806451612903,
0,
0,
0.01818181818181818,
0,
0,
0,
0.07692307692307693,
0,
0,
0.1111111111111111,
0.02380952380... | 98 | 0.029368 | false |
################################################################################
### Copyright © 2012-2013 BlackDragonHunt
###
### This file is part of the Super Duper Script Editor.
###
### The Super Duper Script Editor is free software: you can redistribute it
### and/or modify it under the terms of the GNU Genera... | [
"################################################################################\n",
"### Copyright © 2012-2013 BlackDragonHunt\n",
"### \n",
"### This file is part of the Super Duper Script Editor.\n",
"### \n",
"### The Super Duper Script Editor is free software: you can redistribute it\n",
"### and/... | [
0.012345679012345678,
0.023809523809523808,
0.2,
0.017857142857142856,
0.2,
0.013157894736842105,
0.013513513513513514,
0.0125,
0.023255813953488372,
0.2,
0.012987012987012988,
0.013333333333333334,
0.015151515151515152,
0.02040816326530612,
0.2,
0.014285714285714285,
0.0217391304347... | 189 | 0.063624 | false |
from datetime import datetime
import os
import pandas as pd
import numpy as np
import pandas_datareader.data as pdr
from pandas_datareader._utils import RemoteDataError
import matplotlib.pyplot as plt
#wating on pull request to work with python 3 for now can install from https://github.com/woodsjc/finsymbols
i... | [
"from datetime import datetime\r\n",
"import os\r\n",
"import pandas as pd\r\n",
"import numpy as np\r\n",
"import pandas_datareader.data as pdr\r\n",
"from pandas_datareader._utils import RemoteDataError\r\n",
"import matplotlib.pyplot as plt\r\n",
"#wating on pull request to work with python 3 for n... | [
0,
0,
0,
0,
0,
0,
0,
0.01818181818181818,
0,
0,
0.06896551724137931,
0,
0,
0.03125,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.03571428571428571,
0,
0,
0,
0.009615384615384616,
0,
0,
0.047619047619047616,
0.045454545454545456,
0.07692307692307693,
0.04,
... | 122 | 0.008148 | false |
# To experiment with this code freely you will have to run this code locally.
# We have provided an example json output here for you to look at,
# but you will not be able to run any queries through our UI.
import json
import requests
BASE_URL = "http://musicbrainz.org/ws/2/"
ARTIST_URL = BASE_URL + "artist/"
query... | [
"# To experiment with this code freely you will have to run this code locally.\n",
"# We have provided an example json output here for you to look at,\n",
"# but you will not be able to run any queries through our UI.\n",
"import json\n",
"import requests\n",
"\n",
"\n",
"BASE_URL = \"http://musicbrai... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.03333333333333333,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.0136986301369863,
0,
0,
0,
0,
0.015384615384615385,
0,
0,
0,
0,
0,... | 81 | 0.001469 | false |
# from flask_pymongo import PyMongo
from flask import Flask, jsonify, request, Response, abort, send_file
import os
from flask_mongokit import MongoKit, Document
import json
from bson import ObjectId, json_util
from bson.json_util import dumps
from datetime import datetime
from flask_cors import CORS, cross_origin
fro... | [
"# from flask_pymongo import PyMongo\n",
"from flask import Flask, jsonify, request, Response, abort, send_file\n",
"import os\n",
"from flask_mongokit import MongoKit, Document\n",
"import json\n",
"from bson import ObjectId, json_util\n",
"from bson.json_util import dumps\n",
"from datetime import d... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.025,
0,
0,
0,
0,
0,
0,
0,
0,
0.037037037037037035,
0,
0,
0.058823529411764705,
0,
0,
0.045454545454545456,
0,
0.01282051282051282,
0.0136986301369863,
0.0136986301369863,
0.0136986301369863,
0.01333333333333... | 320 | 0.011658 | false |
# -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import string
import codecs
import MySQLdb
import MySQLdb.cursors
from scrapy import log
from TNspider.items import BNUItem
fro... | [
"# -*- coding: utf-8 -*-\n",
"\n",
"# Define your item pipelines here\n",
"#\n",
"# Don't forget to add your pipeline to the ITEM_PIPELINES setting\n",
"# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html\n",
"import string\n",
"import codecs\n",
"import MySQLdb\n",
"import MySQLdb.cu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.034482758620689655,
0,
0,
0.023809523809523808,
0.02564102564102564,
0.08571428571428572,
0.02564102564102564,
0.04838709677419355,
0.07894736842105263,
0.07692307692307693,
0.045454545454545456,
0.047619047619047616,
0.... | 53 | 0.02102 | false |
# coding: utf-8
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#---------------------------------------------------------------------... | [
"# coding: utf-8\n",
"\n",
"#-------------------------------------------------------------------------\n",
"# Copyright (c) Microsoft Corporation. All rights reserved.\n",
"# Licensed under the MIT License. See License.txt in the project root for\n",
"# license information.\n",
"#-----------------------... | [
0,
0,
0.013333333333333334,
0,
0,
0,
0.013157894736842105,
0,
0,
0,
0,
0,
0,
0.023809523809523808,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.011764705882352941,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 818 | 0.00157 | false |
import sqlite3
import os
import sys
import shutil
import logging
from datetime import date, timedelta
# template used to format txt file
default_tpl = '''
********{title}********
[Date: {datetime} Tags: {tags}]\n
{text}\n\n\n\n'''
sql_tag_with_count = '''
SELECT Tags.name, (SELECT COUNT(*) FROM Nikki_Tags
... | [
"import sqlite3\n",
"import os\n",
"import sys\n",
"import shutil\n",
"import logging\n",
"from datetime import date, timedelta\n",
"\n",
"\n",
"# template used to format txt file\n",
"default_tpl = '''\n",
"********{title}********\n",
"[Date: {datetime} Tags: {tags}]\\n\n",
"{text}\\n\\n\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.010101010101010102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.023255813953488372,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 251 | 0.001066 | false |
import discord
import cacobot.base as base
@base.cacofunc
def limbo(message, client):
'''
**.limbo** [*mention*]
*This command was created for the Vocaloid server. Just for Rodea. ;)*
This is a shortcut to add the "Limbo" role to a user. If your server has no "Limbo" role, this will fail.
*Example... | [
"import discord\n",
"import cacobot.base as base\n",
"\n",
"@base.cacofunc\n",
"def limbo(message, client):\n",
" '''\n",
" **.limbo** [*mention*]\n",
" *This command was created for the Vocaloid server. Just for Rodea. ;)*\n",
" This is a shortcut to add the \"Limbo\" role to a user. If... | [
0,
0,
0,
0.06666666666666667,
0,
0,
0,
0,
0.00909090909090909,
0,
0,
0,
0,
0.010638297872340425,
0.029411764705882353,
0,
0,
0.007194244604316547,
0,
0.005747126436781609,
0,
0.00641025641025641,
0,
0.007042253521126761,
0.038461538461538464
] | 25 | 0.007227 | false |
# -*- coding: utf-8 -*-
# ProjectEuler/src/python/problem298.py
#
# Selective Amnesia
# =================
# Published on Friday, 25th June 2010, 09:00 pm
#
# table.p298, table.p298 th, table.p298 td { border-width: 1px 1px 1px 1px;
# border-style: solid solid solid solid; border-color: black black black
# black;... | [
"# -*- coding: utf-8 -*-\n",
"# ProjectEuler/src/python/problem298.py\n",
"#\n",
"# Selective Amnesia\n",
"# =================\n",
"# Published on Friday, 25th June 2010, 09:00 pm\n",
"#\n",
"# table.p298, table.p298 th, table.p298 td { border-width: 1px 1px 1px 1px;\n",
"# border-style: solid so... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.08333333333333333,
0,
0,
0.037037037037037035,
0
] | 39 | 0.003086 | false |
# coding: utf-8
#-------------------------------------------------------------------------
# Copyright (c) Microsoft. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#... | [
"# coding: utf-8\n",
"\n",
"#-------------------------------------------------------------------------\n",
"# Copyright (c) Microsoft. All rights reserved.\n",
"#\n",
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the Lice... | [
0,
0,
0.013333333333333334,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.013157894736842105,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.08695652173913043,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.03125,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 387 | 0.004201 | false |
# Copyright 2014-2017 The ODL contributors
#
# This file is part of ODL.
#
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at https://mozilla.org/MPL/2.0/.
"""Domains for continuous functions. """
f... | [
"# Copyright 2014-2017 The ODL contributors\n",
"#\n",
"# This file is part of ODL.\n",
"#\n",
"# This Source Code Form is subject to the terms of the Mozilla Public License,\n",
"# v. 2.0. If a copy of the MPL was not distributed with this file, You can\n",
"# obtain one at https://mozilla.org/MPL/2.0/... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 856 | 0 | false |
# Import References
import boto3
# Variables Setup
botName = 'ChemBotAssistant'
botAlias = '$LATEST'
# ---------------------------------------------
# Creating clients
modelClient = boto3.client('lex-models')
# ---------------------------------------------
# Lex Objects Names
# Slots
cmpIdTypeSlotTypName = 'Compou... | [
"# Import References\n",
"import boto3\n",
"\n",
"# Variables Setup\n",
"botName = 'ChemBotAssistant'\n",
"botAlias = '$LATEST'\n",
"\n",
"# ---------------------------------------------\n",
"# Creating clients\n",
"modelClient = boto3.client('lex-models')\n",
"\n",
"# ------------------------... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.027972027972027972,
0,
0,
0,
0,
0,
0.03333333333333333,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.043478260869565216,
0.013888888888888888,
0.023809523809523808,
0,
0,
0,... | 64 | 0.009194 | false |
# -*- coding:utf-8 -*-
import argparse
import sys
from nsnqtlib.strategies import strategy1
from nsnqtlib.mail import mail
from email.mime.image import MIMEImage
class main():
def __init__(self):
pass
def parseargs(self):
parser = argparse.ArgumentParser()
action_list=["getda... | [
"# -*- coding:utf-8 -*-\n",
"import argparse\n",
"import sys\n",
"from nsnqtlib.strategies import strategy1\n",
"from nsnqtlib.mail import mail\n",
"from email.mime.image import MIMEImage\n",
"\n",
"class main():\n",
" def __init__(self):\n",
" pass\n",
" def parseargs(self):\n",
... | [
0,
0,
0,
0,
0,
0,
0,
0.07142857142857142,
0,
0,
0.04,
0.022727272727272728,
0.1111111111111111,
0.06666666666666667,
0,
0.023809523809523808,
0.1111111111111111,
0.02631578947368421,
0.04878048780487805,
0.034482758620689655,
0.027777777777777776,
0.05263157894736842,
0.0... | 78 | 0.054369 | false |
# -*- coding: utf-8 -*-
import xbmc, xbmcgui, xbmcplugin, xbmcaddon, urllib2, urllib, re, string, sys, os, gzip, StringIO
from uuid import uuid4
from random import random,randint
from math import floor
import hashlib
import simplejson
# Plugin constants
__addonname__ = "奇艺视频(QIYI)"
__addonid__ = "plugin.video.qiyi... | [
"# -*- coding: utf-8 -*-\n",
"import xbmc, xbmcgui, xbmcplugin, xbmcaddon, urllib2, urllib, re, string, sys, os, gzip, StringIO\n",
"from uuid import uuid4\n",
"from random import random,randint\n",
"from math import floor\n",
"import hashlib\n",
"import simplejson\n",
"\n",
"# Plugin constants \n",... | [
0,
0.02040816326530612,
0,
0.029411764705882353,
0,
0,
0,
0,
0.05,
0,
0.027777777777777776,
0.020833333333333332,
0,
0.0784313725490196,
0.04878048780487805,
0.056338028169014086,
0,
0.034482758620689655,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 644 | 0.014972 | false |
from sigma.core.permission import check_admin
from sigma.core.permission import check_write
from config import Prefix
import discord
async def announcementchannel(cmd, message, args):
if not check_admin(message.author, message.channel):
# user is no server admin
embed = discord.Embed(title='⛔ Unp... | [
"from sigma.core.permission import check_admin\n",
"from sigma.core.permission import check_write\n",
"from config import Prefix\n",
"import discord\n",
"\n",
"\n",
"async def announcementchannel(cmd, message, args):\n",
" if not check_admin(message.author, message.channel):\n",
" # user i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.011235955056179775,
0,
0,
0,
0,
0.011111111111111112,
0,
0.011494252873563218,
0,
0.010869565217391304,
0,
0.010101010101010102,
0,
0.009259259259259259,
0,
0,
0,
0,
0.011111111111111112,
0,
0,
0.008547008547008548,
0,
0,
... | 37 | 0.002734 | false |
# Copyright (c) 20131 Torrent-TV.RU
# Writer (c) 2014, Welicobratov K.A., E-mail: 07pov23@gmail.com
# Edited (c) 2015, Vorotilin D.V., E-mail: dvor85@mail.ru
#imports
import xbmc
import xbmcgui
import sys
import socket
import os
import threading
import random
import json
import urllib
import copy
imp... | [
"# Copyright (c) 20131 Torrent-TV.RU\r\n",
"# Writer (c) 2014, Welicobratov K.A., E-mail: 07pov23@gmail.com\r\n",
"# Edited (c) 2015, Vorotilin D.V., E-mail: dvor85@mail.ru\r\n",
"\r\n",
"#imports\r\n",
"import xbmc\r\n",
"import xbmcgui\r\n",
"\r\n",
"import sys\r\n",
"import socket\r\n",
"impo... | [
0,
0,
0,
0,
0.1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.1,
0,
0,
0.08333333333333333,
0.09375,
0,
0,
0,
0,
0,
0.013333333333333334,
0.0125,
0,
0.1,
0.03333333333333333,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 670 | 0.006464 | false |
# -*- coding: utf-8 -*-
from Plugins.Extensions.MediaPortal.plugin import _
from Plugins.Extensions.MediaPortal.resources.imports import *
class eroprofileGenreScreen(MPScreen):
def __init__(self, session):
self.plugin_path = mp_globals.pluginPath
self.skin_path = mp_globals.pluginPath + mp_globals.skinsPath
... | [
"# -*- coding: utf-8 -*-\n",
"from Plugins.Extensions.MediaPortal.plugin import _\n",
"from Plugins.Extensions.MediaPortal.resources.imports import *\n",
"\n",
"class eroprofileGenreScreen(MPScreen):\n",
"\n",
"\tdef __init__(self, session):\n",
"\t\tself.plugin_path = mp_globals.pluginPath\n",
"\t\... | [
0,
0,
0,
0,
0.02564102564102564,
0,
0.03333333333333333,
0.023255813953488372,
0.015625,
0,
0.022222222222222223,
0.037037037037037035,
0.012658227848101266,
0,
0.034482758620689655,
0.041666666666666664,
0.07692307692307693,
0,
0,
0.041666666666666664,
0.09090909090909091,
... | 205 | 0.03449 | false |
# -*- coding: utf-8 -*
# -*- coding: utf-8 -*
#/*
# * Copyright (C) 2010-2012 AKGDRG <akgdrg@gmail.com>
# *
# * This Program is free software; you can redistribute it and/or modify
# * it under the terms of the GNU General Public License as published by
# * the Free Software Foundation; either version 2, or (a... | [
"# -*- coding: utf-8 -*\n",
"# -*- coding: utf-8 -*\n",
"#/*\n",
"# * Copyright (C) 2010-2012 AKGDRG <akgdrg@gmail.com>\n",
"# *\n",
"# * This Program is free software; you can redistribute it and/or modify\n",
"# * it under the terms of the GNU General Public License as published by\n",
"# * ... | [
0,
0,
0.25,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.017543859649122806,
0.022727272727272728,
0,
0,
0,
0,
0,
0,
0,
0,
0.08333333333333333,
0.09090909090909091,
0.058823529411764705,
0,
0,
0,
0,
0,
0,
0,
0,
0.03125,
... | 639 | 0.08812 | false |
import copy
from typing import List
from modules.utils.dal.common.dtos.resultSerialTypes import ResultSerialResponse
from modules.utils.dal.common.dtos.dataViewDto import DataViewDto
from modules.utils.dal.common.dtos.queryUtils import queryUtils
from modules.utils.dal.common.dtos.types import QueryObject
from m... | [
"import copy\r\n",
"from typing import List\r\n",
"from modules.utils.dal.common.dtos.resultSerialTypes import ResultSerialResponse\r\n",
"from modules.utils.dal.common.dtos.dataViewDto import DataViewDto\r\n",
"from modules.utils.dal.common.dtos.queryUtils import queryUtils\r\n",
"from modules.utils.dal.... | [
0,
0,
0.012195121951219513,
0,
0,
0,
0,
0,
0,
0,
0,
0.00980392156862745,
0,
0,
0,
0,
0,
0.01904761904761905,
0,
0,
0,
0,
0,
0,
0.010869565217391304,
0,
0.0064516129032258064,
0,
0.009615384615384616,
0,
0.011363636363636364,
0.02564102564102564,
0,
0... | 59 | 0.003137 | false |
import math
import numba
from numba import jit
"""
SPH: Standard Project Hurricane
PMH: Probable Maximum Hurricane
Pressure profile equation
(p-Cp)/(Pw - Cp) = e ^ (-R/r)
Pw: Peripheral Pressure, pressure at edge of storm, should be a bit below MSLP
Cp: Central Pressure (P0 in paper)
Rmax: Radius of Maximum Winds... | [
"import math\n",
"import numba\n",
"from numba import jit\n",
"\n",
"\n",
"\"\"\"\n",
"SPH: Standard Project Hurricane\n",
"PMH: Probable Maximum Hurricane\n",
"\n",
"Pressure profile equation\n",
"\n",
"(p-Cp)/(Pw - Cp) = e ^ (-R/r)\n",
"\n",
"Pw: Peripheral Pressure, pressure at edge of ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.010526315789473684,
0.011904761904761904,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.06451612903225806,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.0645161290322... | 223 | 0.004161 | false |
import blackjack.cmake.cmd as cmd
from .BaseTarget import BaseTarget
from .LibTypes import LibTypes
class LibTarget(BaseTarget):
"""
Represents a CMake Library target
add_library(<name> [STATIC | SHARED | MODULE] [EXCLUDE_FROM_ALL] source1 [source2 ...])
"""
def __init__(self, name: str, sr... | [
"import blackjack.cmake.cmd as cmd\n",
"from .BaseTarget import BaseTarget\n",
"from .LibTypes import LibTypes\n",
"\n",
"class LibTarget(BaseTarget):\n",
" \n",
" \"\"\"\n",
" Represents a CMake Library target\n",
"\n",
" add_library(<name> [STATIC | SHARED | MODULE] [EXCLUDE_FROM_ALL... | [
0,
0,
0,
0,
0.034482758620689655,
0.2,
0,
0,
0,
0.010869565217391304,
0,
0,
0.008849557522123894,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.008,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1
] | 48 | 0.026296 | false |
# This file is part of Tautulli.
#
# Tautulli is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Tautulli is distributed in the... | [
"# This file is part of Tautulli.\n",
"#\n",
"# Tautulli is free software: you can redistribute it and/or modify\n",
"# it under the terms of the GNU General Public License as published by\n",
"# the Free Software Foundation, either version 3 of the License, or\n",
"# (at your option) any later versi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.010416666666666666,
0,
0,
0,
0,
0,
0,... | 142 | 0.000973 | false |
import re
import codecs
import os
import shutil
import tempfile
import sys
import zipfile
import base64
import StringIO
import urllib
"""
uglifyjs is a python wrapper for uglifyjs.
See e.g. https://bitbucket.org/chrisk/uglifyjs
It can be any javascript minifyer. The required interface is:
def minify(inpath, out... | [
"import re\n",
"import codecs\n",
"import os\n",
"import shutil\n",
"import tempfile\n",
"import sys\n",
"import zipfile\n",
"import base64\n",
"import StringIO\n",
"import urllib\n",
"\n",
"\"\"\"\n",
"uglifyjs is a python wrapper for uglifyjs.\n",
"See e.g. https://bitbucket.org/chrisk/u... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.02127659574468085,
0.01694915254237288,
0.014084507042253521,
0,
0,
0,
0,
0.07857142857142857,
0.041666666666666664,
0.015873015873015... | 745 | 0.016195 | false |
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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 Li... | [
"# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.\n",
"# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.\n",
"# \n",
"# Licensed under the Apache License, Version 2.0 (the \"License\"); \n",
"# you may not use this file except in compliance with the License.... | [
0,
0.012345679012345678,
0.3333333333333333,
0.014925373134328358,
0,
0.011764705882352941,
0.3333333333333333,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.047619047619047616,
0.037037037037037035,
0.02702702702702703,
0,
0.02040816326530612,
0,
0,
0,
0.006578947368421052,... | 48 | 0.026726 | false |
#-------------------------------------------------------------------------
# Copyright (c) Microsoft. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apa... | [
"#-------------------------------------------------------------------------\n",
"# Copyright (c) Microsoft. All rights reserved.\n",
"#\n",
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n",
"# You may obtain a ... | [
0.013333333333333334,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.013157894736842105,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 1,046 | 0.004523 | false |
"""
Student Evaluator
Copyright 2014, Jeroen Doggen, jeroendoggen@gmail.com
"""
from __future__ import print_function, division # We require Python 2.6+
import os
from settings import Settings
from logger import Logger
from analyser import Analyser
from reporter import Reporter
from setup import Setup
fro... | [
"\"\"\"\n",
" Student Evaluator\n",
" Copyright 2014, Jeroen Doggen, jeroendoggen@gmail.com\n",
"\"\"\"\n",
"\n",
"\n",
"from __future__ import print_function, division # We require Python 2.6+\n",
"\n",
"import os\n",
"\n",
"from settings import Settings\n",
"from logger import Logger\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.009900990099009901,
0,
0,
0.05263157894736842,
0.01818181818181818,
0,
0.034482758620689655,
0,
0,
0.015151515151515152,
0,
0,
0,
0
] | 42 | 0.003104 | false |
# coding: UTF-8
import socket
import urllib2
import traceback
#import MySQLdb
import time
from bs4 import BeautifulSoup
import index
import pageNum
timeout = 20
socket.setdefaulttimeout(timeout)
def fetchVerbAtPage(url):
tryNum = 3
tn = 0
while tn < tryNum:
try:
f = urllib2.urlope... | [
"# coding: UTF-8 \n",
"import socket\n",
"import urllib2\n",
"import traceback\n",
"#import MySQLdb\n",
"import time\n",
"from bs4 import BeautifulSoup\n",
"import index\n",
"import pageNum\n",
"\n",
"timeout = 20\n",
"socket.setdefaulttimeout(timeout)\n",
"\n",
"\n",
"\n",
"\n",
"de... | [
0.058823529411764705,
0,
0,
0,
0.0625,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.038461538461538464,
0,
0,
0,
0,
0,
0,
0,
0.029411764705882353,
0.029411764705882353,
0.07692307692307693,
0,
0,
0.07692307692307693,
0,
0,
0,
0.07692307692307693,
0,
0,
0... | 61 | 0.01757 | false |
## Copyright 2009-2013 Luc Saffre
## This file is part of the Lino project.
## Lino is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 3 of the License, or
## (at your option) any later version... | [
"## Copyright 2009-2013 Luc Saffre\n",
"## This file is part of the Lino project.\n",
"## Lino is free software; you can redistribute it and/or modify \n",
"## it under the terms of the GNU General Public License as published by\n",
"## the Free Software Foundation; either version 3 of the License, or\n",
... | [
0.029411764705882353,
0.023809523809523808,
0.03076923076923077,
0.013888888888888888,
0.014492753623188406,
0.02564102564102564,
0.03333333333333333,
0.015151515151515152,
0.030303030303030304,
0.020833333333333332,
0.014492753623188406,
0.015625,
0,
0,
0,
0,
0,
0,
0,
0,
0.0... | 95 | 0.044037 | false |
import discord
import os
import requests
import pip
from github import Github
import json
from discord.ext import commands
from bs4 import BeautifulSoup
from cogs.utils.checks import parse_prefix
"""Cog for cog downloading."""
class CogDownloading:
def __init__(self, bot):
self.bot = bot
async def... | [
"import discord\n",
"import os\n",
"import requests\n",
"import pip\n",
"from github import Github\n",
"import json\n",
"from discord.ext import commands\n",
"from bs4 import BeautifulSoup\n",
"from cogs.utils.checks import parse_prefix\n",
"\n",
"\"\"\"Cog for cog downloading.\"\"\"\n",
"\n",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.012048192771084338,
0,
0,
0,
0,
0,
0,
0,
0.008771929824561403,
0,
0,
0,
0,
0.1111111111111111,
0.009433962264150943,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.005813953488372093,
0,
0,
... | 209 | 0.003422 | false |
from .lims_msMethod_query import lims_msMethod_query
from SBaaS_base.sbaas_template_io import sbaas_template_io
# Resources
from io_utilities.base_importData import base_importData
from io_utilities.base_exportData import base_exportData
class lims_msMethod_io(lims_msMethod_query,sbaas_template_io):
def import_... | [
"\n",
"from .lims_msMethod_query import lims_msMethod_query\n",
"from SBaaS_base.sbaas_template_io import sbaas_template_io\n",
"\n",
"# Resources\n",
"from io_utilities.base_importData import base_importData\n",
"from io_utilities.base_exportData import base_exportData\n",
"\n",
"class lims_msMetho... | [
0,
0,
0,
0,
0,
0,
0,
0,
0.031746031746031744,
0,
0,
0.029411764705882353,
0.030303030303030304,
0.03571428571428571,
0.023809523809523808,
0.037037037037037035,
0,
0,
0,
0.029411764705882353,
0.030303030303030304,
0.03571428571428571,
0.022222222222222223,
0.03703703703... | 48 | 0.017717 | false |
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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 Lice... | [
"# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.\n",
"# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.\n",
"#\n",
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n... | [
0,
0.012345679012345678,
0,
0,
0,
0.011764705882352941,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.047619047619047616,
0.037037037037037035,
0.03125,
0.02702702702702703,
0.02631578947368421,
0.03225806451612903,
0,
0.07142857142857142,
0.021739130434782608,
0.0... | 78 | 0.010162 | false |
# -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2016 Compassion CH (http://www.compassion.ch)
# Releasing children from poverty in Jesus' name
# @author: Emanuel Cino <ecino@compassion.ch>
#
# The licence is in the file __openerp__.... | [
"# -*- encoding: utf-8 -*-\n",
"##############################################################################\n",
"#\n",
"# Copyright (C) 2016 Compassion CH (http://www.compassion.ch)\n",
"# Releasing children from poverty in Jesus' name\n",
"# @author: Emanuel Cino <ecino@compassion.ch>\n",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 70 | 0 | false |
#
# This file is part of Dragonfly.
# (c) Copyright 2007, 2008 by Christo Butcher
# Licensed under the LGPL.
#
# Dragonfly is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 3 of the ... | [
"#\n",
"# This file is part of Dragonfly.\n",
"# (c) Copyright 2007, 2008 by Christo Butcher\n",
"# Licensed under the LGPL.\n",
"#\n",
"# Dragonfly is free software: you can redistribute it and/or modify it\n",
"# under the terms of the GNU Lesser General Public License as published\n",
"# by t... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.025,
0.023809523809523808,
0,
0,
0.012987012987012988,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 219 | 0.000621 | false |
# Copyright (c) 2016, LE GOFF Vincent
# 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
# list of conditions and th... | [
"# Copyright (c) 2016, LE GOFF Vincent\n",
"# All rights reserved.\n",
"\n",
"# Redistribution and use in source and binary forms, with or without\n",
"# modification, are permitted provided that the following conditions are met:\n",
"\n",
"# * Redistributions of source code must retain the above copyri... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.012345679012345678,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | 52 | 0.000237 | false |
import os
import time
import numbers
import socket
import platform
import subprocess
class MetaCommunicator:
'''A class in order to communicate with META from Beta-CAE Systems
'''
def __init__(self, meta_path=None, ip_address="127.0.0.1", meta_listen_port=4342):
'''Constructor for a MetaCommunic... | [
"\n",
"import os\n",
"import time\n",
"import numbers\n",
"import socket\n",
"import platform\n",
"import subprocess\n",
"\n",
"class MetaCommunicator:\n",
" '''A class in order to communicate with META from Beta-CAE Systems\n",
" '''\n",
"\n",
" def __init__(self, meta_path=None, i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0.041666666666666664,
0,
0,
0,
0.011494252873563218,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.023529411764705882,
0.02247191011235955,
0,
0.023809523809523808,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | 278 | 0.009133 | false |
"""
Models for the ``calendarium`` app.
The code of these models is highly influenced by or taken from the models of
django-schedule:
https://github.com/thauber/django-schedule/tree/master/schedule/models
"""
import json
from django.conf import settings
from django.contrib.contenttypes.fields import GenericForeign... | [
"\"\"\"\n",
"Models for the ``calendarium`` app.\n",
"\n",
"The code of these models is highly influenced by or taken from the models of\n",
"django-schedule:\n",
"\n",
"https://github.com/thauber/django-schedule/tree/master/schedule/models\n",
"\n",
"\"\"\"\n",
"import json\n",
"\n",
"from dj... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.008403361344537815,
0.008771929824561403,
0.010416666666666666,
0,
0,
0,
0,
0,
0,
0,
... | 468 | 0.000333 | false |
#!/usr/bin/env python
# -*- coding: utf-8
from __future__ import print_function
import argparse
import codecs
import cPickle as pickle
import numpy as np
import os
from load_tweets import load_tweets
NAME='ef_list_emoticons'
prefix='list_emoticons'
if __name__ == "__main__":
# Las opciones de línea de comando
... | [
"#!/usr/bin/env python\n",
"# -*- coding: utf-8\n",
"from __future__ import print_function\n",
"import argparse\n",
"import codecs\n",
"import cPickle as pickle\n",
"import numpy as np\n",
"import os\n",
"\n",
"from load_tweets import load_tweets\n",
"\n",
"NAME='ef_list_emoticons'\n",
"pref... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.04,
0.041666666666666664,
0,
0,
0,
0,
0,
0.02564102564102564,
0.018518518518518517,
0.25,
0.024390243902439025,
0.016666666666666666,
0.5,
0,
0.03571428571428571,
0.01818181818181818,
0,
0,
0.03571428571428571,
0.03225806... | 101 | 0.03105 | false |
# Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def countNodes(self, root):
"""
:type root: TreeNode
:rtype: int
"""
if not root:
... | [
"\n",
"\n",
"# Definition for a binary tree node.\n",
"class TreeNode(object):\n",
" def __init__(self, x):\n",
" self.val = x\n",
" self.left = None\n",
" self.right = None\n",
"\n",
"class Solution(object):\n",
" def countNodes(self, root):\n",
" \"\"\"\n",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.041666666666666664,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.0196078431372549,
0,
0.01694915254237288,
0,
0.04285714285714286,
0.07692307692307693,
0.03333333333333333,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.058823529411764705,
0.06... | 45 | 0.012948 | false |
# -*- coding:utf-8 -*-
# Author: Kei Choi(hanul93@gmail.com)
import os
import imp
import StringIO
import datetime
import types
import mmap
import glob
import re
import shutil
import struct
import zipfile
import hashlib
import k2timelib
import k2kmdfile
import k2rsa
import k2file
import k2const
# -----------------... | [
"# -*- coding:utf-8 -*-\n",
"# Author: Kei Choi(hanul93@gmail.com)\n",
"\n",
"\n",
"import os\n",
"import imp\n",
"import StringIO\n",
"import datetime\n",
"import types\n",
"import mmap\n",
"import glob\n",
"import re\n",
"import shutil\n",
"import struct\n",
"import zipfile\n",
"impo... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 1,332 | 0.000435 | false |
# -*- coding: utf-8 -*-
"""
Created on Sun Nov 02 19:33:28 2014
@author: Kelly
"""
from EBA_ST_2014 import *
import re
def natural_sort(l):
convert = lambda text: int(text) if text.isdigit() else text.lower()
alphanum_key = lambda key: [ convert(c) for c in re.split('([0-9]+)', key) ]
return sorte... | [
"# -*- coding: utf-8 -*-\n",
"\"\"\"\n",
"Created on Sun Nov 02 19:33:28 2014\n",
"\n",
"@author: Kelly\n",
"\"\"\"\n",
"\n",
"\n",
"from EBA_ST_2014 import *\n",
"\n",
"\n",
"import re\n",
"\n",
"def natural_sort(l): \n",
" convert = lambda text: int(text) if text.isdigit() else text... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.13636363636363635,
0.02702702702702703,
0.06097560975609756,
0.06666666666666667,
0,
0,
0,
0.125,
0.02564102564102564,
0.030303030303030304,
0.09090909090909091,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.04347826... | 146 | 0.023011 | false |
#-------------------------------------------------------------------------
# Copyright (c) Microsoft. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apa... | [
"#-------------------------------------------------------------------------\n",
"# Copyright (c) Microsoft. All rights reserved.\n",
"#\n",
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n",
"# You may obtain a ... | [
0.013333333333333334,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.013157894736842105,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 786 | 0.001654 | false |
#!/usr/bin/env python
"""Simple script to package cache folder into GeoPackage.
Includes GlobalMercator class from gdal2tiles.py by Klokan Petr Pridal, klokan at klokan dot cz
licensed under MIT.
"""
__author__ = 'Robin Princeley'
__copyright__ = "Copyright 2015, Esri"
__license__ = "ASL 2.0"
__version__... | [
"#!/usr/bin/env python\r\n",
"\"\"\"Simple script to package cache folder into GeoPackage.\r\n",
"\r\n",
" Includes GlobalMercator class from gdal2tiles.py by Klokan Petr Pridal, klokan at klokan dot cz\r\n",
" licensed under MIT.\r\n",
"\r\n",
"\"\"\"\r\n",
"__author__ = 'Robin Princeley'\r\n",
"__... | [
0,
0,
0,
0.01020408163265306,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.011904761904761904,
0.010101010101010102,
0,
0.03225806451612903,
0,
0,
0,
0,
0,
0,
0.012195121951219513,
0,
0,
0,
0,
0,
0,
0,
... | 957 | 0.003176 | false |
# -*- coding: utf-8 -*-
#------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# Conector para nowvideo
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#------------------------------------------------------------
# Credits:
# Unwise and main algorithm taken from El... | [
"# -*- coding: utf-8 -*-\r\n",
"#------------------------------------------------------------\r\n",
"# pelisalacarta - XBMC Plugin\r\n",
"# Conector para nowvideo\r\n",
"# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/\r\n",
"#------------------------------------------------------------\r\n",
"#... | [
0,
0.015873015873015872,
0,
0,
0,
0.015873015873015872,
0,
0,
0,
0,
0.11428571428571428,
0,
0,
0,
0,
0,
0,
0,
0.020833333333333332,
0,
0.08333333333333333,
0,
0,
0,
0.16666666666666666,
0,
0.0196078431372549,
0,
0,
0.0196078431372549,
0,
0.05,
0,
0.0... | 236 | 0.018922 | false |
#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
ext_x_targetduration = '#EXT-X-TARGETDURATION'
ext_x_media_sequence = '#EXT-X-MEDIA-SEQUENCE'
ext_x_key = '#EXT-X-KEY'
ext_x_stream_inf = '#EXT-X-STREAM-INF'
ext_x_version = '#EXT-X-VERSION'
ext_x_allow_cache = '#EXT-X-ALLOW-CACHE'
ext_x_endlist = '#EXT-X-ENDLIST'
e... | [
"#!/usr/bin/python\n",
"# -*- coding: utf-8 -*-\n",
"import re\n",
"\n",
"ext_x_targetduration = '#EXT-X-TARGETDURATION'\n",
"ext_x_media_sequence = '#EXT-X-MEDIA-SEQUENCE'\n",
"ext_x_key = '#EXT-X-KEY'\n",
"ext_x_stream_inf = '#EXT-X-STREAM-INF'\n",
"ext_x_version = '#EXT-X-VERSION'\n",
"ext_x_al... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.05,
0.1,
0.043478260869565216,
0.043478260869565216,
0.05263157894736842,
0.05555555555555555,
0.25,
0.09090909090909091,
0.037037037037037035,
0.03571428571428571,
0.25,
0.02564102564102564,
0.045454545454545456,
0.03... | 105 | 0.030054 | false |
# -*- coding: utf-8 -*-
import re
from pygments.lexer import RegexLexer, bygroups, include
from pygments.token import *
class MalcoLexer(RegexLexer):
name = 'Malco programming language lexer'
aliases = ['malco']
filenames = ['*.mlc']
mimetypes = ['text/malco']
flags = re.DOTALL
tokens = ... | [
"# -*- coding: utf-8 -*-\n",
"\n",
"import re\n",
"from pygments.lexer import RegexLexer, bygroups, include\n",
"from pygments.token import *\n",
"\n",
"class MalcoLexer(RegexLexer):\n",
" name = 'Malco programming language lexer'\n",
" aliases = ['malco']\n",
" filenames = ['*.mlc']\n",
... | [
0,
0,
0,
0,
0,
0,
0.03333333333333333,
0,
0,
0,
0,
0.2,
0,
0,
0,
0,
0,
0.07692307692307693,
0,
0,
0,
0.07692307692307693,
0,
0,
0,
0.1111111111111111,
0,
0,
0,
0.07692307692307693,
0,
0,
0.07692307692307693,
0,
0,
0,
0.1111111111111111,
0,
... | 129 | 0.013271 | false |
#coding: utf-8
import csv #csvモジュールをインポートする
import random
class Kuji:
def __init__(self):
self.list = []
def first_start(self):
f = open('namelist.csv', 'r')
dataReader = csv.reader(f)
self.list = []
for row in dataReader:
for p in row:
sel... | [
"#coding: utf-8\n",
"import csv #csvモジュールをインポートする\n",
"import random\n",
"\n",
"class Kuji:\n",
" def __init__(self):\n",
" self.list = []\n",
" def first_start(self):\n",
" f = open('namelist.csv', 'r')\n",
" dataReader = csv.reader(f)\n",
" self.list = []\n"... | [
0.06666666666666667,
0.03225806451612903,
0,
0,
0.08333333333333333,
0,
0,
0.037037037037037035,
0,
0,
0,
0,
0,
0,
0,
0,
0.2,
0,
0.043478260869565216,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.1111111111111111,
0,
0,
0,
0.037037037037037035,
0,
0,
0,
0... | 50 | 0.016218 | false |
# -*- coding: utf-8 -*-
# sisältää luokan uutuusluettelosivun käsittelyyn
import logging
# kirjasto HTTP pyyntöjen tekemiseen eli nettisivun hakuun
import requests
# kirjasto HTML:n parsimiseen
from bs4 import BeautifulSoup
# luokka yksittäisen kirjan tiedot sisältävän sivun käsittelyyn
from kirja import K... | [
"# -*- coding: utf-8 -*-\r\n",
"# sisältää luokan uutuusluettelosivun käsittelyyn\r\n",
"\r\n",
"import logging\r\n",
"# kirjasto HTTP pyyntöjen tekemiseen eli nettisivun hakuun\r\n",
"import requests\r\n",
"# kirjasto HTML:n parsimiseen\r\n",
"from bs4 import BeautifulSoup\r\n",
"\r\n",
"# luokka... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.043478260869565216,
0,
0.04,
0,
0.16666666666666666,
0.010638297872340425,
0.16666666666666666,
0.0273972602739726,
0.008064516129032258,
0.006993006993006993,
0,
0,
0,
0,
0,
0.047619047619047616,
0,
0,
0,
0.055... | 139 | 0.019322 | false |
from operator import attrgetter
import random
def crossover(parent, parent2, get_fitness, customCrossover):
childGenes = parent.Genes[:]
if customCrossover is not None:
customCrossover(childGenes, parent2.Genes[:])
else:
destIndex = random.randint(0, len(parent.Genes) - 1)
srcInde... | [
"from operator import attrgetter\n",
"import random\n",
"\n",
"\n",
"def crossover(parent, parent2, get_fitness, customCrossover):\n",
" childGenes = parent.Genes[:]\n",
" if customCrossover is not None:\n",
" customCrossover(childGenes, parent2.Genes[:])\n",
" else:\n",
" d... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.00909090909090909,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.0121951219512195... | 90 | 0.000372 | false |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"# Copyright 2012 Google Inc. All Rights Reserved.\n",
"#\n",
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n",
"# You may obtain a copy of the License at\n",
"#\n",
"# http://www.apache.org/licenses/LICEN... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.01818181818181818,
0,
0,
0,
0,
0,
0,
0,
0.022727272727272728,
0,
0,
0,
... | 332 | 0.012054 | false |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Tagger
{
class AutoCorrector
{
Dictionary<string, string> artists = new Dictionary<string, string>();
Dictionary<string, string> genres = new Dictionary<string, string>();
internal void fee... | [
"using System;\n",
"using System.Collections.Generic;\n",
"using System.Linq;\n",
"using System.Text;\n",
"\n",
"namespace Tagger\n",
"{\n",
" class AutoCorrector\n",
" {\n",
" Dictionary<string, string> artists = new Dictionary<string, string>();\n",
" Dictionary<string, str... | [
0.07142857142857142,
0.029411764705882353,
0.05263157894736842,
0.05263157894736842,
0,
0,
0,
0,
0,
0.06329113924050633,
0.0641025641025641,
0,
0,
0,
0.037037037037037035,
0.07407407407407407,
0,
0,
0,
0,
0.020833333333333332,
0.043478260869565216,
0,
0,
0.04166666666... | 42 | 0.019465 | false |
"""kk
* ----------------------------------------------------------------------
*
* Copyright (C) 2009 by Khaled Al-Shamaa.
*
* http://www.ar-php.org
*
* ----------------------------------------------------------------------
*
* LICENSE
*
* This program is open source product; you can redistribute it and/or
... | [
"\"\"\"kk\n",
" * ----------------------------------------------------------------------\n",
" *\n",
" * Copyright (C) 2009 by Khaled Al-Shamaa.\n",
" *\n",
" * http://www.ar-php.org\n",
" *\n",
" * ----------------------------------------------------------------------\n",
" *\n",
" * LICENSE\n",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.012345679012345678,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.012195121951219513,
0.012195121951219513,
0,
0,
0,
0,
0.011764705882352941,
... | 834 | 0.075026 | false |
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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 Lice... | [
"# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.\n",
"# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.\n",
"#\n",
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n... | [
0,
0.012345679012345678,
0,
0,
0,
0.011764705882352941,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.027777777777777776,
0.018518518518518517,
0.01834862385321101,
0,
0.021739130434782608,
0.009174311926605505,
0.009259259259259259,
0,
0.009345794392523364,
0,
0.009345794... | 72 | 0.004722 | false |
import pygame
from pygame.locals import *
from random import randint
pygame.init()
pygame.mouse.set_visible(False)
BGCOLOR = (150,255,160)
COLOR = (120,182,80)
HSPEED = 20
VSPEED = 15
FONTSIZE = 100
screen = pygame.display.set_mode((1600,900),FULLSCREEN)
clock = pygame.time.Clock()
font = pygame.font.SysFont(None, F... | [
"import pygame\n",
"from pygame.locals import *\n",
"from random import randint\n",
"pygame.init()\n",
"pygame.mouse.set_visible(False)\n",
"\n",
"BGCOLOR = (150,255,160)\n",
"COLOR = (120,182,80)\n",
"HSPEED = 20\n",
"VSPEED = 15\n",
"FONTSIZE = 100\n",
"\n",
"screen = pygame.display.set_mo... | [
0,
0,
0,
0,
0,
0,
0.08333333333333333,
0.09523809523809523,
0,
0,
0,
0,
0.03571428571428571,
0,
0,
0,
0,
0.08108108108108109,
0.08823529411764706,
0,
0,
0,
0.0625,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.07142857142857... | 80 | 0.025664 | false |
# -*- coding: utf-8 -*-
#= IMPORT ======================================================================
from src.color import count_colors, close_color
from src.command import get_command_syntax
from src.enums import TRUST
from src.grammar import grammar_gender
from src.log import log
from src.utility impo... | [
"# -*- coding: utf-8 -*-\n",
"\n",
"\n",
"#= IMPORT ======================================================================\n",
"\n",
"from src.color import count_colors, close_color\n",
"from src.command import get_command_syntax\n",
"from src.enums import TRUST\n",
"from src.grammar import gram... | [
0,
0,
0,
0.024691358024691357,
0,
0.02,
0,
0.03333333333333333,
0,
0.03571428571428571,
0,
0,
0,
0.024691358024691357,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.011363636363636364,
0,
0.01,
0,... | 64 | 0.004503 | false |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""main.py: Main module."""
from functools import partial
from kivy.clock import Clock
from kivy.base import runTouchApp
from kivy.uix.relativelayout import RelativeLayout
from dotmatrix import DotMatrix
__author__ = "Victor RENÉ"
__copyright__ = "Copyright 2014, Kivy... | [
"#!/usr/bin/env python\n",
"# -*- coding: utf-8 -*-\n",
"\n",
"\"\"\"main.py: Main module.\"\"\"\n",
"\n",
"from functools import partial\n",
"\n",
"from kivy.clock import Clock\n",
"from kivy.base import runTouchApp\n",
"from kivy.uix.relativelayout import RelativeLayout\n",
"\n",
"from dotma... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.024390243902439025,
0,
0.037037037037037035,
0.03571428571428571,
0.023529411764705882,
0.0963855421686747,
0.019230769230769232,
0.034482758620689655,
0.3333333333333333,
0.0238095... | 39 | 0.02034 | false |
import asyncio
import copy
import random
from datetime import datetime, timedelta
from typing import Dict, List, Optional, Set # noqa: F401
import bot
from bot import data # noqa: F401
from lib import cache
from lib.api import twitch
async def checkTwitchIds(timestamp: datetime) -> None:
if not bot.globals.ch... | [
"import asyncio\n",
"import copy\n",
"import random\n",
"from datetime import datetime, timedelta\n",
"from typing import Dict, List, Optional, Set # noqa: F401\n",
"\n",
"import bot\n",
"from bot import data # noqa: F401\n",
"from lib import cache\n",
"from lib.api import twitch\n",
"\n",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 96 | 0 | false |
# -------------------------------------------------------------------------
# Copyright (c) Microsoft. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.ap... | [
"# -------------------------------------------------------------------------\n",
"# Copyright (c) Microsoft. All rights reserved.\n",
"#\n",
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n",
"# You may obtain a... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.038461538461538464,
0,
0,
0,
0,
0,
0.011764705882352941,
0,
0,
0,
0,
0.015384615384615385,
0,
0.022727272727272728,
0,
0.009259259259259259,
0,
0.009803921... | 458 | 0.001475 | false |
# -*- coding: utf-8 -*-
"""
This is a deprecated backend. :mod:`~xrt.backends.raycing` is much more
functional. Module :mod:`~xrt.backends.shadow` works with shadow input files,
starts the ray-tracing and gets its output.
Description of shadow
---------------------
... can be found in the manual pages of your shadow... | [
"# -*- coding: utf-8 -*-\n",
"\"\"\"\n",
"This is a deprecated backend. :mod:`~xrt.backends.raycing` is much more\n",
"functional. Module :mod:`~xrt.backends.shadow` works with shadow input files,\n",
"starts the ray-tracing and gets its output.\n",
"\n",
"Description of shadow\n",
"------------------... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 494 | 0.000202 | false |
namespace Seymour
{
partial class Main
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name=... | [
"namespace Seymour\n",
"{\n",
" partial class Main\n",
" {\n",
" /// <summary>\n",
" /// Required designer variable.\n",
" /// </summary>\n",
" private System.ComponentModel.IContainer components = null;\n",
"\n",
" /// <summary>\n",
" /// Clean up... | [
0,
0,
0,
0,
0.13636363636363635,
0.025,
0.13043478260869565,
0.014705882352941176,
0,
0.13636363636363635,
0.02127659574468085,
0.13043478260869565,
0.07407407407407407,
0,
0,
0.0196078431372549,
0,
0.05263157894736842,
0,
0.05405405405405406,
0,
0,
0.018867924528301886,
... | 480 | 0.027576 | false |
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2014 CodUP (<http://codup.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affer... | [
"# -*- coding: utf-8 -*-\n",
"##############################################################################\n",
"#\n",
"# OpenERP, Open Source Management Solution\n",
"# Copyright (C) 2014 CodUP (<http://codup.com>).\n",
"#\n",
"# This program is free software: you can redistribute it and/or m... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.02127659574468085,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.015384615384615385
] | 43 | 0.000853 | false |
# -*- coding: utf-8 -*-
# This is a simple mailbox polling script for the Sahana Messaging Module
# If there is a need to collect from non-compliant mailers then suggest using the robust Fetchmail to collect & store in a more compliant mailer!
# This script doesn't handle MIME attachments
import sys, socket, email, ... | [
"# -*- coding: utf-8 -*-\n",
"\n",
"# This is a simple mailbox polling script for the Sahana Messaging Module\n",
"# If there is a need to collect from non-compliant mailers then suggest using the robust Fetchmail to collect & store in a more compliant mailer!\n",
"# This script doesn't handle MIME attachme... | [
0,
0,
0,
0.00684931506849315,
0,
0,
0.03125,
0,
0,
0,
0.012048192771084338,
0,
0,
0.011904761904761904,
0.011904761904761904,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.013888888888888888,
0.0625,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 155 | 0.007145 | false |
# -*- coding: utf-8 -*-
#https://www.facebook.com/groups/vietkodi/
import urllib,urllib2,re
import os
import xbmc,xbmcplugin,xbmcgui,xbmcaddon
import getlink
import simplejson as json
from config import VIETMEDIA_HOST
from addon import alert, notify, ADDON, ADDON_ID, ADDON_PROFILE
from platform import PLATF... | [
"# -*- coding: utf-8 -*-\r\n",
"#https://www.facebook.com/groups/vietkodi/\r\n",
"\r\n",
"import urllib,urllib2,re\r\n",
"import os\r\n",
"import xbmc,xbmcplugin,xbmcgui,xbmcaddon\r\n",
"import getlink\r\n",
"import simplejson as json\r\n",
"from config import VIETMEDIA_HOST\r\n",
"from addon impo... | [
0,
0.022727272727272728,
0,
0.11538461538461539,
0,
0.09523809523809523,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.07142857142857142,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.027777777777777776,
0.037037037037037035,
0.043478260869565216,
0.05555555555555... | 270 | 0.03409 | false |
from __future__ import absolute_import
from __future__ import print_function
import sys
import lucene
import json
from lucene import (SimpleFSDirectory, System, File,
Document, Field, StandardAnalyzer, IndexWriter, IndexSearcher, QueryParser)
if __name__ == "__main__":
lucene.initVM()
fullIndexDir = r"c:... | [
"from __future__ import absolute_import\n",
"from __future__ import print_function\n",
"import sys\n",
"import lucene\n",
"import json\n",
"\n",
"from lucene import (SimpleFSDirectory, System, File,\n",
" Document, Field, StandardAnalyzer, IndexWriter, IndexSearcher, QueryParser)\n",
"\n",
"if ... | [
0,
0,
0,
0,
0,
0,
0,
0.0125,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.011111111111111112,
0.024096385542168676,
0,
0.012345679012345678,
0,
0.02127659574468085,
0.01282051282051282,
0,
0.05,
0,
0,
0.05714285714285714,
0.023255813953488372,
0.012048192771084338,
0,
... | 58 | 0.004652 | false |
"""
Class for accessing the swig process
"""
import shutil, subprocess, os
from pylib.logwrapper import LogWrapper
from pylib.process import Process
# Wrapper class for logging
class SwigProcess(Process):
def __init__(self):
super().__init__()
self.log = LogWrapper.getlogger()
# Swig Pr... | [
"\"\"\"\n",
"Class for accessing the swig process\n",
"\"\"\"\n",
"\n",
"import shutil, subprocess, os\n",
"from pylib.logwrapper import LogWrapper\n",
"from pylib.process import Process\n",
"\n",
"# Wrapper class for logging\n",
"class SwigProcess(Process):\n",
"\n",
" def __init__(self):\... | [
0,
0,
0,
0,
0.03333333333333333,
0,
0,
0,
0,
0.03571428571428571,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.0392156862745098,
0,
0,
0,
0,
0,
0.012195121951219513,
0,
0,
0,
0,
0,
0,
0.02857142857142857,
0,
0,
0... | 49 | 0.0037 | false |
# Copyright 2016 The Johns Hopkins University Applied Physics Laboratory
#
# 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... | [
"# Copyright 2016 The Johns Hopkins University Applied Physics Laboratory\n",
"#\n",
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n",
"# You may obtain a copy of the License at\n",
"#\n",
"# http://www.apache... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.03571428571428571,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.011764... | 675 | 0.003019 | false |
# -*- coding: utf-8 -*-
import os
import ConfigParser
import smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
from email.MIMEBase import MIMEBase
from email import encoders
from global_functions import app_dir
class Mailer():
"""
Instance to manage the mailing.
... | [
"# -*- coding: utf-8 -*-\n",
"import os\n",
"import ConfigParser\n",
"import smtplib\n",
"from email.MIMEMultipart import MIMEMultipart\n",
"from email.MIMEText import MIMEText\n",
"from email.MIMEBase import MIMEBase\n",
"from email import encoders\n",
"\n",
"from global_functions import app_dir\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.0625,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.008849557522123894,
0,
0.011235955056179... | 81 | 0.00102 | false |
# -*- coding: UTF-8 -*-
import re
import os
import urllib
# Return Game search list
def _get_games_list(search):
results = []
display = []
try:
f = urllib.urlopen('http://www.arcadehits.net/index.php?p=roms&jeu='+search)
page = f.read().replace('\r\n', '').replace('\n', '')
game =... | [
"# -*- coding: UTF-8 -*-\n",
"\n",
"import re\n",
"import os\n",
"import urllib\n",
"\n",
"# Return Game search list\n",
"def _get_games_list(search):\n",
" results = []\n",
" display = []\n",
" try:\n",
" f = urllib.urlopen('http://www.arcadehits.net/index.php?p=roms&jeu='+sea... | [
0,
0,
0,
0,
0,
0,
0,
0.034482758620689655,
0,
0,
0,
0.011764705882352941,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.03225806451612903,
0.08333333333333333,
0.03225806451612903,
0,
0,
0.05405405405405406,
0,
0,
0.011764705882352941,
0,
0,
0,
0,
0,
0,
0,
0,... | 81 | 0.023517 | false |
# -*- coding: utf-8 -*-
#------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# Canal para Hispan TV
# creado por rsantaella
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#------------------------------------------------------------
import urlparse,urllib2,urllib,re
im... | [
"# -*- coding: utf-8 -*-\n",
"#------------------------------------------------------------\n",
"# pelisalacarta - XBMC Plugin\n",
"# Canal para Hispan TV\n",
"# creado por rsantaella\n",
"# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/\n",
"#----------------------------------------------------... | [
0,
0.016129032258064516,
0,
0,
0,
0,
0.016129032258064516,
0,
0.11764705882352941,
0.06666666666666667,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.058823529411764705,
0,
0,
0.05,
0,
0,
0,
0,
0.045454545454545456,
0.015873015873015872,
0,... | 181 | 0.012994 | false |
# -*- coding: UTF-8 -*-
# by Mafarricos
# email: MafaStudios@gmail.com
# This program is free software: GNU General Public License
import urllib,urllib2,xbmcplugin,xbmcgui,xbmc,re,xbmcaddon,os
addonId = xbmcaddon.Addon().getAddonInfo("id")
getSetting = xbmcaddon.Addon().getSetting
language ... | [
"# -*- coding: UTF-8 -*-\n",
"# by Mafarricos\n",
"# email: MafaStudios@gmail.com\n",
"# This program is free software: GNU General Public License\n",
"\n",
"import urllib,urllib2,xbmcplugin,xbmcgui,xbmc,re,xbmcaddon,os\n",
"\n",
"addonId = xbmcaddon.Addon().getAddonInfo(\"id\")\n",
"get... | [
0,
0,
0,
0,
0,
0.12903225806451613,
0,
0.01694915254237288,
0.0196078431372549,
0.01694915254237288,
0,
0.08333333333333333,
0.019230769230769232,
0.15384615384615385,
0.030303030303030304,
0.1,
0.15217391304347827,
0,
0.05263157894736842,
0.045454545454545456,
0.02,
0.1,
... | 95 | 0.06613 | false |
# Copyright 2014-2017 The ODL contributors
#
# This file is part of ODL.
#
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at https://mozilla.org/MPL/2.0/.
"""Default operators defined on any `Produc... | [
"# Copyright 2014-2017 The ODL contributors\n",
"#\n",
"# This file is part of ODL.\n",
"#\n",
"# This Source Code Form is subject to the terms of the Mozilla Public License,\n",
"# v. 2.0. If a copy of the MPL was not distributed with this file, You can\n",
"# obtain one at https://mozilla.org/MPL/2.0/... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.03571428571428571,
0,
0,
0,
0,
0,
0.03571428571428571,
0,
0,
0,
0,
0,
... | 1,286 | 0.000571 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.