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
#------------------------------------------------------------------------------- # Name: navitia2OSM.py # # Author: @nlehuby - noemie.lehuby(at)gmail.com # # Created: 04/04/2014 # Licence: WTFPL #------------------------------------------------------------------------------- #!/usr/bin/env python ...
[ "#-------------------------------------------------------------------------------\n", "# Name: navitia2OSM.py\n", "#\n", "# Author: @nlehuby - noemie.lehuby(at)gmail.com\n", "#\n", "# Created: 04/04/2014\n", "# Licence: WTFPL\n", "#--------------------------------------------------...
[ 0.024691358024691357, 0, 0, 0, 0, 0, 0, 0.024691358024691357, 0.045454545454545456, 0, 0, 0, 0, 0, 0, 0, 0, 0.015625, 0.01, 0, 0.0228310502283105, 0, 0, 0, 0.02631578947368421, 0, 0, 0.022727272727272728, 0, 0, 0.020833333333333332, 0.014388489208633094,...
137
0.016613
false
#-*- coding: utf-8 -*- ###################################################################### # Copyright (c) 2017 by WLBlazers Corporation # # failover.py # # ###################################################################### # Modifications Section: ###########################################################...
[ "#-*- coding: utf-8 -*-\n", "\n", "######################################################################\n", "# Copyright (c) 2017 by WLBlazers Corporation\n", "#\n", "# failover.py\n", "# \n", "# \n", "######################################################################\n", "# Modifications S...
[ 0.043478260869565216, 0, 0, 0, 0, 0, 0.3333333333333333, 0.3333333333333333, 0, 0, 0, 0.023255813953488372, 0, 0.01694915254237288, 0, 0, 0, 0, 0, 0.05263157894736842, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0.14285714285714285, 0.2, ...
221
0.119232
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...
48
0.064394
false
from __future__ import division from PyQt4 import QtCore from numpy import * from scipy import optimize from scipy import constants as scipycsts import pylab from filter import savitzky_golay # Define some global variables DEBUG=0 # Debug mode can take values (0,1,2). 0 plots no intermediary results. 1 plots interme...
[ "from __future__ import division\n", "from PyQt4 import QtCore\n", "from numpy import *\n", "from scipy import optimize\n", "from scipy import constants as scipycsts\n", "import pylab\n", "from filter import savitzky_golay\n", "\n", "# Define some global variables\n", "DEBUG=0 # Debug mode can ta...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.012269938650306749, 0.02702702702702703, 0.03, 0.03296703296703297, 0.016129032258064516, 0.017241379310344827, 0.01818181818181818, 0.14814814814814814, 0.015267175572519083, 0, 0.029411764705882353, 0.022727272727272728, 0.023809523809523808, ...
232
0.022409
false
# twisted imports from twisted.words.protocols import irc from twisted.internet import reactor, protocol from twisted.python import log # system imports import time, sys from chat import chat from comment import comment from threading import Thread import pygame class TwitchMonitor(irc.IRCClient): """Client to moni...
[ "# twisted imports\n", "from twisted.words.protocols import irc\n", "from twisted.internet import reactor, protocol\n", "from twisted.python import log\n", "\n", "# system imports\n", "import time, sys\n", "from chat import chat\n", "from comment import comment\n", "from threading import Thread\n"...
[ 0, 0, 0, 0, 0, 0, 0.058823529411764705, 0, 0, 0, 0, 0, 0.027777777777777776, 0.02702702702702703, 1, 0.02857142857142857, 1, 0.037037037037037035, 0.02702702702702703, 0, 0.02857142857142857, 0.022222222222222223, 0, 0.041666666666666664, 0, 0.047619047619047616, ...
121
0.096738
false
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import print_function from collections import defaultdict from difflib import SequenceMatcher from nltk.tokenize import word_tokenize import networkx as nx import os import sys import time from HGDrawGraph import draw_graph import numpy import warni...
[ "#!/usr/bin/python\r\n", "# -*- coding: utf-8 -*-\r\n", "from __future__ import print_function\r\n", "from collections import defaultdict\r\n", "from difflib import SequenceMatcher\r\n", "from nltk.tokenize import word_tokenize\r\n", "import networkx as nx\r\n", "import os\r\n", "import sys\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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
353
0.001438
false
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""),...
[ "# --------------------------------------------------------------------------\n", "#\n", "# Copyright (c) Microsoft Corporation. All rights reserved.\n", "#\n", "# The MIT License (MIT)\n", "#\n", "# Permission is hereby granted, free of charge, to any person obtaining a copy\n", "# of this software 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.021739130434782608, 0.0196078431372549, 0, 0.012987012987012988, 0, 0, 0, 0, 0, 0.0123...
65
0.001745
false
""" Module for dependency source downloads """ import os, glob, shutil, zipfile, tarfile, time from os.path import join, abspath, exists from pylib.logwrapper import LogWrapper # Source Base Class class DepSource(object): ArchiveDir = "." RootExtractDir = "." def __init__(self): self.url = "" ...
[ "\"\"\"\n", "Module for dependency source downloads\n", "\"\"\"\n", "\n", "import os, glob, shutil, zipfile, tarfile, time\n", "from os.path import join, abspath, exists\n", "from pylib.logwrapper import LogWrapper\n", "\n", "# Source Base Class\n", "class DepSource(object):\n", "\n", " Arc...
[ 0, 0, 0, 0, 0.020833333333333332, 0, 0, 0, 0, 0.04, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.02564102564102564, 0, 0, 0, 0.011494252873563218, 0, 0, 0.02564102564102564, 0, 0.011363636363636364, 0, 0, 0, 0, 0, ...
163
0.003431
false
from sigma.core.permission import check_man_roles from sigma.core.rolecheck import matching_role, user_matching_role import discord async def giverole(cmd, message, args): if not check_man_roles(message.author, message.channel): out_content = discord.Embed(type='rich', color=0xDB0000, ...
[ "from sigma.core.permission import check_man_roles\n", "from sigma.core.rolecheck import matching_role, user_matching_role\n", "import discord\n", "\n", "\n", "async def giverole(cmd, message, args):\n", " if not check_man_roles(message.author, message.channel):\n", " out_content = discord.E...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0.010869565217391304, 0, 0, 0, 0.012195121951219513, 0, 0, 0, 0, 0.012195121951219513, 0, 0, 0, 0, 0, 0, 0, 0, 0.012195121951219513, 0.008333333333333333, 0, 0, 0, 0, 0, 0.008928571428571428, 0, 0, 0.011627906976744186, ...
40
0.002149
false
#!/usr/bin/env python # -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache Licen...
[ "#!/usr/bin/env python\n", "# -*- coding: utf-8 -*-\n", "\n", "# Licensed to the Apache Software Foundation (ASF) under one\n", "# or more contributor license agreements. See the NOTICE file\n", "# distributed with this work for additional information\n", "# regarding copyright ownership. The ASF lice...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.009259259259259259, 0.008403361344537815, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
265
0.006457
false
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; using PrettyGood.Util; using System.Xml; using System.Globalization; namespace PrettyGood.LastFm { public class LastFm { private readonly string api; private Encoding encoding = Encod...
[ "using System;\n", "using System.Collections.Generic;\n", "using System.Linq;\n", "using System.Text;\n", "using System.Reflection;\n", "using PrettyGood.Util;\n", "using System.Xml;\n", "using System.Globalization;\n", "\n", "namespace PrettyGood.LastFm\n", "{\n", " public class LastFm\n",...
[ 0.07142857142857142, 0.029411764705882353, 0.05263157894736842, 0.05263157894736842, 0.04, 0.043478260869565216, 0.05555555555555555, 0.03571428571428571, 0, 0, 0, 0, 0, 0.02702702702702703, 0.019230769230769232, 0, 0, 0, 0.03571428571428571, 0.0379746835443038, 0, 0.060606...
117
0.014144
false
#!/usr/bin/python from __future__ import print_function import os import sys import errno import argparse import tempfile import subprocess import shlex import shutil import stat import json cmdLog = None # Derived from http://stackoverflow.com/a/4417735 def execute(command): cmdLog.write(command + '\n') p ...
[ "#!/usr/bin/python\n", "\n", "from __future__ import print_function\n", "import os\n", "import sys\n", "import errno\n", "import argparse\n", "import tempfile\n", "import subprocess\n", "import shlex\n", "import shutil\n", "import stat\n", "import json\n", "\n", "cmdLog = None\n", "\n"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.045454545454545456, 0, 0.011904761904761904, 0, 0, 0, 0, 0.025, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.08771929824561403, 0.03333333333333333, 0, 0, 0.041666666666666664, 0.07692307692307693...
233
0.00658
false
import clr, sys clr.AddReference('ZyGames.Framework.Common'); clr.AddReference('ZyGames.Framework'); clr.AddReference('ZyGames.Framework.Game'); clr.AddReference('ZyGames.Tianjiexing.Model'); clr.AddReference('ZyGames.Tianjiexing.BLL'); clr.AddReference('ZyGames.Tianjiexing.Lang'); from action import * from ...
[ "import clr, sys\r\n", "clr.AddReference('ZyGames.Framework.Common');\r\n", "clr.AddReference('ZyGames.Framework');\r\n", "clr.AddReference('ZyGames.Framework.Game');\r\n", "clr.AddReference('ZyGames.Tianjiexing.Model');\r\n", "clr.AddReference('ZyGames.Tianjiexing.BLL');\r\n", "clr.AddReference('ZyGame...
[ 0.058823529411764705, 0.02127659574468085, 0.025, 0.022222222222222223, 0.020833333333333332, 0.021739130434782608, 0.02127659574468085, 0, 0.045454545454545456, 0.022727272727272728, 0.023809523809523808, 0.024390243902439025, 0.02564102564102564, 0.025, 0.022727272727272728, 0.021739...
65
0.024533
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...
419
0.044306
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...
123
0.053243
false
import sys from OpenGL import Vector3 from WhateverEngine.Engine import Input from WhateverEngine.Engine import Renderer from WhateverEngine.Engine import GameObject from WhateverEngine.Engine import EngineFunctions pos=Vector3() rot=Vector3() deltaTime=0.0 #non-standard stuff hasSpawned = False go = GameObject() d...
[ "import sys\n", "from OpenGL import Vector3\n", "from WhateverEngine.Engine import Input\n", "from WhateverEngine.Engine import Renderer\n", "from WhateverEngine.Engine import GameObject\n", "from WhateverEngine.Engine import EngineFunctions\n", "\n", "pos=Vector3()\n", "rot=Vector3()\n", "deltaTi...
[ 0, 0, 0, 0, 0, 0, 0, 0.07142857142857142, 0.07142857142857142, 0.07142857142857142, 0, 0.05, 0, 0, 0, 0.07692307692307693, 0, 0, 0, 0, 0, 0.07142857142857142, 0, 0, 0, 0, 0, 0.017857142857142856, 0, 0, 0, 0, 0, 0, 0.02631578947368421, 0, 0, 0...
54
0.015441
false
#!/usr/bin/python # -*- coding: utf-8 -*- """This file contains the classes Geocache (for a single geocache) and Waypoint (for a waypoint, consisting only of name and coordinates.""" import os import time import datetime import xml.etree.ElementTree as ElementTree import ownfunctions SIZE_LIST = ["other", "micro...
[ "#!/usr/bin/python\n", "# -*- coding: utf-8 -*-\n", "\n", "\"\"\"This file contains the classes Geocache (for a single geocache) and\n", "Waypoint (for a waypoint, consisting only of name and coordinates.\"\"\"\n", "\n", "import os\n", "import time\n", "import datetime\n", "import xml.etree.Elemen...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.045454545454545456, 0, 0, 0.008695652173913044, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.010869565217391304, 0.2, 0.2, 0, 0, 0, 0, 0, 0, 0, 0, 0.1111111111111111, ...
518
0.010787
false
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This experiment was created using PsychoPy3 Experiment Builder (v2020.2.0b1), on Wed Aug 5 12:32:22 2020 If you publish work using this script the most relevant publication is: Peirce J, Gray JR, Simpson S, MacAskill M, Höchenberger R, Sogo H, Kastman E, Lind...
[ "#!/usr/bin/env python\n", "# -*- coding: utf-8 -*-\n", "\"\"\"\n", "This experiment was created using PsychoPy3 Experiment Builder (v2020.2.0b1),\n", " on Wed Aug 5 12:32:22 2020\n", "If you publish work using this script the most relevant publication is:\n", "\n", " Peirce J, Gray JR, Simpson...
[ 0, 0, 0, 0, 0, 0, 0, 0.019417475728155338, 0.0136986301369863, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.013513513513513514, 0, 0, 0, 0, 0, 0, 0, 0, 0.05, 0, 0, 0, 0, 0, 0.012345679012345678, ...
152
0.006908
false
from PyQt5 import QtGui, QtCore, QtWidgets from nupic_studio.ui import ICON class SimulationLegendWindow(QtWidgets.QDialog): def __init__(self): """ Initializes a new instance of this class. """ QtWidgets.QWidget.__init__(self) self.initUI() def initUI(self): ...
[ "from PyQt5 import QtGui, QtCore, QtWidgets\n", "from nupic_studio.ui import ICON\n", "\n", "\n", "class SimulationLegendWindow(QtWidgets.QDialog):\n", "\n", " def __init__(self):\n", " \"\"\"\n", " Initializes a new instance of this class.\n", " \"\"\"\n", " QtWid...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.01098901098901099, 0, 0, 0, 0, 0, 0, 0, 0, 0.010416666666666666, 0, 0, 0, 0, 0, 0, 0, 0, 0.01098901098901099, 0, 0, 0, 0, 0, 0, 0, 0, 0.011494252873563218, 0, 0, 0, 0,...
91
0.000732
false
import tiebaTitle as TT import urllib import os import sys import time import threading import pickle import datetime import MailService #该脚本用来抓取我们贴吧帖子的标题 begURL = 'http://tieba.baidu.com/f?' #主程序逻辑 TT.setupfiles() os.system('cls') print('>>>>>This script can be used to get data from Tieba\n>>>>>by Kanch kanchisme@gm...
[ "import tiebaTitle as TT\n", "import urllib\n", "import os\n", "import sys\n", "import time\n", "import threading\n", "import pickle\n", "import datetime\n", "import MailService\n", "\n", "#该脚本用来抓取我们贴吧帖子的标题\n", "begURL = 'http://tieba.baidu.com/f?'\n", "#主程序逻辑\n", "TT.setupfiles()\n", "o...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.05555555555555555, 0, 0.14285714285714285, 0, 0, 0.010416666666666666, 0, 0, 0.03125, 0, 0, 0.008620689655172414, 0.009345794392523364, 0, 0.007042253521126761, 0, 0, 0, 0, 0.020833333333333332, 0, 0.012048192771084338, ...
90
0.017322
false
#! /usr/bin/python from sgui_utils import * from sgui_event import EventHook class Widget(object): def __init__(self): # Fields self._context = None # context of a widget (ideally layout or sgui class) self._text = '' # text which may be printed on a widget (unnesessary to use) self._width = 0 ...
[ "#! /usr/bin/python\n", "\n", "from sgui_utils import *\n", "from sgui_event import EventHook\n", "\n", "class Widget(object):\n", "\n", "\tdef __init__(self):\n", "\t\t\n", "\t\t# Fields\n", "\t\tself._context = None\t\t\t\t# context of a widget (ideally layout or sgui class)\n", "\t\tself._t...
[ 0, 0, 0, 0, 0, 0.045454545454545456, 0, 0.047619047619047616, 0.6666666666666666, 0.09090909090909091, 0.012658227848101266, 0.023809523809523808, 0.05555555555555555, 0.05263157894736842, 0.07142857142857142, 0.07142857142857142, 0.017543859649122806, 0.03409090909090909, 0.0384...
180
0.144489
false
# Copyright 2014-2016 The ODL development group # # This file is part of ODL. # # ODL 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 2014-2016 The ODL development group\n", "#\n", "# This file is part of ODL.\n", "#\n", "# ODL 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 Lice...
[ 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, 0.045454545454545456, 0, 0.023255813953488372, 0.02857142857142857, 0.013888888888888888, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
1,230
0.000395
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 versio...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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.011764705882352941, 0, 0, 0, 0, ...
1,801
0.002122
false
# -*- coding: utf-8 -*- from Plugins.Extensions.MediaPortal.plugin import _ from Plugins.Extensions.MediaPortal.resources.imports import * from Plugins.Extensions.MediaPortal.resources.putpattvlink import PutpattvLink class putpattvGenreScreen(MPScreen): def __init__(self, session): self.plugin_path = mp_globals....
[ "# -*- coding: utf-8 -*-\n", "from Plugins.Extensions.MediaPortal.plugin import _\n", "from Plugins.Extensions.MediaPortal.resources.imports import *\n", "from Plugins.Extensions.MediaPortal.resources.putpattvlink import PutpattvLink\n", "\n", "class putpattvGenreScreen(MPScreen):\n", "\n", "\tdef __i...
[ 0, 0, 0, 0, 0, 0.02702702702702703, 0, 0.03333333333333333, 0.023255813953488372, 0.015625, 0.021052631578947368, 0.037037037037037035, 0.023809523809523808, 0.034482758620689655, 0.041666666666666664, 0.07692307692307693, 0.02857142857142857, 0, 0.020833333333333332, 0.08, 0...
205
0.034459
false
# coding=utf-8 # EPM Plugins import Plugins as ep import matplotlib.pyplot as plt import matplotlib.mlab as mlab @ep.DatasetFunctionPlugin('Visualizar Histograma', 1)#Decorator criado pela Elipse para que o Plugin seja executado pelo EPM Studio. def histograma(): # Verifica se existe apenas uma pena selecionad...
[ "# coding=utf-8\n", "\n", "# EPM Plugins\n", "import Plugins as ep\n", "\n", "import matplotlib.pyplot as plt\n", "import matplotlib.mlab as mlab\n", "\n", "\n", "@ep.DatasetFunctionPlugin('Visualizar Histograma', 1)#Decorator criado pela Elipse para que o Plugin seja executado pelo EPM Studio.\n"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.022556390977443608, 0, 0, 0, 0, 0.008695652173913044, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.011904761904761904, 0, 0, 0, 0.028037383177570093, 0, 0, 0, 0, 1 ]
37
0.028951
false
#!/usr/bin/env python3 # -*- coding, utf-8 -*- # TODO # TODO # Copyright © 2014 Василий Горохов-Апельсинов # This file is part of code for my bachelor's thesis. # # Code for my bachelor's thesis is free software: you can redistribute # it and/or modify it under the terms of the GNU General Public License # as publi...
[ "#!/usr/bin/env python3\n", "# -*- coding, utf-8 -*-\n", "\n", "# TODO\n", "# TODO\n", "# Copyright © 2014 Василий Горохов-Апельсинов\n", "\n", "# This file is part of code for my bachelor's thesis.\n", "#\n", "# Code for my bachelor's thesis is free software: you can redistribute\n", "# it and...
[ 0, 0, 0, 0, 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.02857142857142857, 0, 0, 0.03125, 0.05, 0, 0, 0, 0.125, 0.14285714285714285, 0.125, 0.02857142857142857, 0.1666...
69
0.032789
false
 # ############################################################################ # # Copyright (c) Microsoft Corporation. # # This source code is subject to terms and conditions of the Apache License, Version 2.0. A # copy of the license can be found in the License.html file at the root of this distribution. If ...
[ " # ############################################################################\n", " #\n", " # Copyright (c) Microsoft Corporation. \n", " #\n", " # This source code is subject to terms and conditions of the Apache License, Version 2.0. A \n", " # copy of the license can be found in the License.html fil...
[ 0.025, 0.6666666666666666, 0.07317073170731707, 0.6666666666666666, 0.0425531914893617, 0.04040404040404041, 0.0379746835443038, 0.04040404040404041, 0.038461538461538464, 0.6666666666666666, 0.02857142857142857, 0.6666666666666666, 0.02531645569620253, 0, 0, 0, 0, 0, 0, 0.2, ...
69
0.062276
false
# -*- coding: utf-8 -*- # Module: context_search # License: GPL v.3 https://www.gnu.org/copyleft/gpl.html import xbmc import xbmcgui import re from unitedsearch import UnitedSearch, plugin _ = plugin.initialize_gettext() us = UnitedSearch() def main(): Label = xbmc.getInfoLabel('ListItem.Label') Tit...
[ "# -*- coding: utf-8 -*-\n", "# Module: context_search\n", "# License: GPL v.3 https://www.gnu.org/copyleft/gpl.html\n", "\n", "import xbmc\n", "import xbmcgui\n", "import re\n", "\n", "from unitedsearch import UnitedSearch, plugin\n", "\n", "_ = plugin.initialize_gettext()\n", "\n", "us = U...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.08333333333333333, 0.018518518518518517, 0.018518518518518517, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
71
0.003104
false
#!/usr/bin/env python ##This Python file uses the following encoding: utf-8 ## ## This file is part of the Ezhil Language project. ## ## (C) 2017 Muthiah Annamalai ## Licensed under GPL Version 3 ## Ezhil Language Foundation from __future__ import print_function import os import codecs import gi gi.require_version('...
[ "#!/usr/bin/env python\n", "##This Python file uses the following encoding: utf-8\n", "##\n", "## This file is part of the Ezhil Language project.\n", "## \n", "## (C) 2017 Muthiah Annamalai\n", "## Licensed under GPL Version 3\n", "## Ezhil Language Foundation\n", "from __future__ import print_func...
[ 0, 0.018518518518518517, 0, 0.019230769230769232, 0.25, 0.03333333333333333, 0.03125, 0.034482758620689655, 0, 0, 0, 0, 0, 0.03125, 0.027777777777777776, 0, 0.03571428571428571, 0.037037037037037035, 0, 0, 0, 0.05263157894736842, 0, 0.03636363636363636, 0.022727272727...
115
0.026454
false
#The MIT License (MIT) #Copyright (c) 2014 Microsoft Corporation #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, cop...
[ "#The MIT License (MIT)\r\n", "#Copyright (c) 2014 Microsoft Corporation\r\n", "\r\n", "#Permission is hereby granted, free of charge, to any person obtaining a copy\r\n", "#of this software and associated documentation files (the \"Software\"), to deal\r\n", "#in the Software without restriction, includi...
[ 0.041666666666666664, 0.023255813953488372, 0, 0.012658227848101266, 0.0125, 0.012658227848101266, 0.013157894736842105, 0.013888888888888888, 0.01694915254237288, 0, 0.012345679012345678, 0.02, 0, 0.012987012987012988, 0.013333333333333334, 0.01282051282051282, 0.0136986301369863, ...
79
0.008933
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://w...
[ "#-------------------------------------------------------------------------\r\n", "# Copyright (c) Microsoft. All rights reserved.\r\n", "#\r\n", "# Licensed under the Apache License, Version 2.0 (the \"License\");\r\n", "# you may not use this file except in compliance with the License.\r\n", "# You may...
[ 0.013157894736842105, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.012987012987012988, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
589
0.00203
false
#-*- coding: UTF-8 -*- """ Scraper for http://www.baidu.com taxigps """ import urllib import socket import re import chardet import difflib from utilities import * __title__ = "Baidu" __priority__ = '120' __lrc__ = True socket.setdefaulttimeout(10) class LyricsFetcher: def __init__( self ): self.BASE_...
[ "#-*- coding: UTF-8 -*-\n", "\"\"\"\n", "Scraper for http://www.baidu.com\n", "\n", "taxigps\n", "\"\"\"\n", "\n", "import urllib\n", "import socket\n", "import re\n", "import chardet\n", "import difflib\n", "from utilities import *\n", "\n", "__title__ = \"Baidu\"\n", "__priority__ = ...
[ 0.043478260869565216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.047619047619047616, 0.07692307692307693, 0.011235955056179775, 0, 0, 0, 0.022727272727272728, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0625, 0.02272...
54
0.007588
false
# -*- coding: utf-8 -*- # ProjectEuler/src/python/problem406.py # # Guessing Game # ============= # Published on Sunday, 16th December 2012, 07:00 am # # We are trying to find a hidden number selected from the set of integers {1, # 2, ..., n} by asking questions. Each number (question) we ask, we get one # of three ...
[ "# -*- coding: utf-8 -*-\n", "# ProjectEuler/src/python/problem406.py\n", "#\n", "# Guessing Game\n", "# =============\n", "# Published on Sunday, 16th December 2012, 07:00 am\n", "#\n", "# We are trying to find a hidden number selected from the set of integers {1,\n", "# 2, ..., n} by asking questi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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
# GlamRefstring converter # Coded by Vali (c)2011 # Modded and recoded by MCelliotG for use in Glamour skins or standalone # If you use this Converter for other skins and rename it, please keep the lines above adding your credits below from Components.Converter.Converter import Converter from Components.Element impor...
[ "#\tGlamRefstring converter\n", "#\tCoded by Vali (c)2011\n", "#\tModded and recoded by MCelliotG for use in Glamour skins or standalone\n", "#\tIf you use this Converter for other skins and rename it, please keep the lines above adding your credits below\n", "\n", "from Components.Converter.Converter imp...
[ 0.038461538461538464, 0.041666666666666664, 0.0136986301369863, 0.017699115044247787, 0, 0, 0, 0, 0, 0.025, 0.07692307692307693, 0.09090909090909091, 1, 0.037037037037037035, 0.030303030303030304, 0.045454545454545456, 0.0625, 0.03125, 0.030303030303030304, 0.09090909090909091,...
40
0.135587
false
# -*- coding: utf-8 -*- """ 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 3 of the License, or (at your option) any later version. This program is distributed i...
[ "# -*- coding: utf-8 -*-\n", "\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", " the Free Software Foundation; either version 3 of the License,\n", " or (at your option) any ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.04, 0, 0, 0, 0, 0, 0.045454545454545456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.017543859649...
98
0.002175
false
import numpy as np from theano import config, shared, function import theano.tensor as t from ae.encoder import AutoEncoder from nn.convolutionalLayer import ConvolutionalLayer from theano.tensor.nnet import conv2d class ConvolutionalAutoEncoder(ConvolutionalLayer, AutoEncoder) : '''This class describes a Contrac...
[ "import numpy as np\n", "from theano import config, shared, function\n", "import theano.tensor as t\n", "from ae.encoder import AutoEncoder\n", "from nn.convolutionalLayer import ConvolutionalLayer\n", "from theano.tensor.nnet import conv2d\n", "\n", "class ConvolutionalAutoEncoder(ConvolutionalLayer,...
[ 0, 0, 0, 0, 0, 0, 0, 0.030303030303030304, 0, 0, 0, 0, 0, 0.01282051282051282, 0, 0, 0, 0, 0, 0, 0, 0.01282051282051282, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
242
0.004373
false
import json import random import aiohttp import discord async def numberfact(cmd, message, args): types = ['trivia', 'date', 'math', 'year'] ran_type = random.choice(types) embed = discord.Embed(color=0x1abc9c) if not args: url = 'http://numbersapi.com/random/' + ran_type + '?json' else: ...
[ "import json\n", "import random\n", "import aiohttp\n", "import discord\n", "\n", "async def numberfact(cmd, message, args):\n", " types = ['trivia', 'date', 'math', 'year']\n", " ran_type = random.choice(types)\n", " embed = discord.Embed(color=0x1abc9c)\n", " if not args:\n", " ...
[ 0, 0, 0, 0, 0, 0.023809523809523808, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.012345679012345678, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
29
0.001247
false
# A bunch of 10 cypher-text encrypted under the same key is provided. We have to decrypt another cypher-text. The idea is that if we exor two cypher-text we get the exor of the corresponding plain-texts. The combinations of two exored ASCII characters is quite limited and in particular when one of this characters is a...
[ "# A bunch of 10 cypher-text encrypted under the same key is provided. We have to decrypt another cypher-text. The idea is that if we exor two cypher-text we get the exor of the corresponding plain-texts. The combinations of two exored ASCII characters is quite limited and in particular when one of this characters ...
[ 0.0020491803278688526, 0.002840909090909091, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.10891089108910891, 0, 0, 0, 0.003424657534246575, 0, 0, 0, 0.004201680672268907, 0, 0, 0, 0.004901960784313725, 0, 0, 0, 0.0033112582781456954, 0, 0, 0, 0.003875968992248062, ...
114
0.002924
false
# -*- coding: utf-8 -*- #------------------------------------------------------------ # nec tv - XBMC Add-on by necula tv (daniel79mil@gmail.com) # Version 0.1.0 (03.12.2014) #------------------------------------------------------------ # License: GPL (http://www.gnu.org/licenses/gpl-3.0.html) # Gracias a la librería ...
[ "# -*- coding: utf-8 -*-\n", "#------------------------------------------------------------\n", "# nec tv - XBMC Add-on by necula tv (daniel79mil@gmail.com)\n", "# Version 0.1.0 (03.12.2014)\n", "#------------------------------------------------------------\n", "# License: GPL (http://www.gnu.org/licenses...
[ 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.02702702702702703, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
5,028
0.015071
false
#-*- coding:utf-8 -*- from libopensesame.py3compat import * from libopensesame import debug from libqtopensesame.extensions import base_extension class psynteract_extension(base_extension): """Install psynteract backend""" def activate(self): """ desc: Is called when the extension is activated through t...
[ "#-*- coding:utf-8 -*-\n", "from libopensesame.py3compat import *\n", "\n", "from libopensesame import debug\n", "from libqtopensesame.extensions import base_extension\n", "\n", "\n", "class psynteract_extension(base_extension):\n", "\n", "\t\"\"\"Install psynteract backend\"\"\"\n", "\n", "\t...
[ 0.045454545454545456, 0, 0, 0, 0, 0, 0, 0, 0, 0.029411764705882353, 0, 0.047619047619047616, 0, 0.16666666666666666, 0.125, 0.014084507042253521, 0.09090909090909091, 0.16666666666666666, 0.6666666666666666, 0.015625, 0.022058823529411766, 0.02830188679245283, 0.052631578...
35
0.130467
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.037037037037037035, 0.02631578947368421, 0.018518518518518517, 0.03225806451612903, 0.045454545454545456, 0, 0.030303030303030304, 0, 0.010752688172043012, 0, 0, 0....
130
0.004983
false
# Copyright 2014-2016 The ODL development group # # This file is part of ODL. # # ODL 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 2014-2016 The ODL development group\n", "#\n", "# This file is part of ODL.\n", "#\n", "# ODL 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 Lice...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.05263157894736842, 0.02857142857142857, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
209
0.000497
false
import configparser import logging import random import sys from copy import deepcopy import discord import GameTimer def load_config(): c = configparser.ConfigParser() c.read('config.ini') try: time = c.getint('game', 'time') except ValueError: logger.error( "В config.i...
[ "import configparser\n", "import logging\n", "import random\n", "import sys\n", "from copy import deepcopy\n", "\n", "import discord\n", "\n", "import GameTimer\n", "\n", "\n", "def load_config():\n", " c = configparser.ConfigParser()\n", " c.read('config.ini')\n", " try:\n", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.011363636363636364, 0, 0, 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.008403361344537815, 0, 0, 0, 0, 0, 0, 0, ...
556
0.001632
false
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. """This class defines the ...
[ "# Copyright (c) 2017-present, Facebook, Inc.\n", "# All rights reserved.\n", "# This source code is licensed under the BSD-style license found in the\n", "# LICENSE file in the root directory of this source tree. An additional grant\n", "# of patent rights can be found in the PATENTS file in the same direc...
[ 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, 0, 0.037037037037037035, 0, 0, ...
718
0.000686
false
# coding: UTF-8 # Name: 运算符 # Author: LYC # Created: 2014-04-03 import re from gpcalccfg import OPLEVEL class Operator(object): """ 运算符 """ def __init__(self, original, level = 0, opnum = 0): super(Operator, self).__init__() self.original = original self.level = level #权值 ...
[ "# coding: UTF-8\n", "# Name: 运算符\n", "# Author: LYC\n", "# Created: 2014-04-03\n", "\n", "import re\n", "from gpcalccfg import OPLEVEL\n", "\n", "class Operator(object):\n", " \"\"\"\n", " 运算符\n", " \"\"\"\n", " def __init__(self, original, level = 0, opnum = 0):\n", " ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0.041666666666666664, 0, 0, 0, 0.07142857142857142, 0, 0, 0.06451612903225806, 0.06060606060606061, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.034482758620689655, 0.03773584905660377...
90
0.009751
false
# -*- coding: utf-8 -*- #------------------------------------------------------------ # pelisalacarta - XBMC Plugin # Canal para http://conectate.gov.ar # creado por rsantaella # http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/ #------------------------------------------------------------ import urlparse,urllib...
[ "# -*- coding: utf-8 -*-\r#------------------------------------------------------------\r# pelisalacarta - XBMC Plugin\r# Canal para http://conectate.gov.ar\r# creado por rsantaella\r# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/\r#------------------------------------------------------------\r\rimport url...
[ 0.00038498556304138594 ]
1
0.000385
false
# coding=utf-8 from os import walk, path from random import randint from PIL import Image from base.settings import MEDIA_ROOT from base.views import call_template, amount_events from .models import Slideshow class NotImageError(Exception): """ Обработка исключения, возникающего при открытии фай...
[ "# coding=utf-8\r\n", "from os import walk, path\r\n", "from random import randint\r\n", "\r\n", "from PIL import Image\r\n", "from base.settings import MEDIA_ROOT\r\n", "from base.views import call_template, amount_events\r\n", "from .models import Slideshow\r\n", "\r\n", "\r\n", "class NotImag...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.010752688172043012, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
104
0.000925
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.05555555555555555, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
71
0.000956
false
# -*- coding: utf-8 -*- from module.plugins.internal.MultiHoster import MultiHoster, create_getInfo class FreeWayMe(MultiHoster): __name__ = "FreeWayMe" __type__ = "hoster" __version__ = "0.16" __pattern__ = r'https://(?:www\.)?free-way\.me/.+' __description__ = """FreeWayMe multi-hoster...
[ "# -*- coding: utf-8 -*-\n", "\n", "from module.plugins.internal.MultiHoster import MultiHoster, create_getInfo\n", "\n", "\n", "class FreeWayMe(MultiHoster):\n", " __name__ = \"FreeWayMe\"\n", " __type__ = \"hoster\"\n", " __version__ = \"0.16\"\n", "\n", " __pattern__ = r'htt...
[ 0, 0, 0, 0, 0, 0, 0.03333333333333333, 0.037037037037037035, 0, 0, 0, 0, 0, 0.03333333333333333, 0.015873015873015872, 0, 0, 0.047619047619047616, 0, 0.023255813953488372, 0.03125, 0, 0, 0.02702702702702703, 0, 0, 0, 0, 0, 0, 0.016666666666666666, 0.0185...
53
0.006665
false
# Python Tools for Visual Studio # Copyright(c) Microsoft Corporation # 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 # # TH...
[ "# Python Tools for Visual Studio\n", "# Copyright(c) Microsoft Corporation\n", "# All rights reserved.\n", "# \n", "# Licensed under the Apache License, Version 2.0 (the License); you may not use\n", "# this file except in compliance with the License. You may obtain a copy of the\n", "# License at http...
[ 0, 0, 0, 0.3333333333333333, 0, 0, 0, 0.3333333333333333, 0, 0, 0, 0, 0.3333333333333333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.008771929824561403, 0, 0, 0, 0, 0, 0, 0, 0.007751937984496124, 0, 0, 0, 0, 0,...
493
0.005403
false
# -*- coding: utf-8 -*- r""" Comparison of 1D-bent crystal analyzers --------------------------------------- Files in ``\examples\withRaycing\06_AnalyzerBent1D`` Rowland circle based analyzers ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This study compares simply bent and ground-bent spectrometers utilizing Bragg and Laue cryst...
[ "# -*- coding: utf-8 -*-\n", "r\"\"\"\n", "Comparison of 1D-bent crystal analyzers\n", "---------------------------------------\n", "\n", "Files in ``\\examples\\withRaycing\\06_AnalyzerBent1D``\n", "\n", "Rowland circle based analyzers\n", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n", "\n", "This study c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
344
0.00007
false
from wikitextparser import ExternalLink def test_externallinks(): assert ExternalLink('http://example.org').external_links == [] def test_repr(): assert repr(ExternalLink('HTTP://mediawiki.org')) == \ "ExternalLink('HTTP://mediawiki.org')" def test_numberedmailto_change_none_to_empty(): s = (...
[ "from wikitextparser import ExternalLink\n", "\n", "\n", "def test_externallinks():\n", " assert ExternalLink('http://example.org').external_links == []\n", "\n", "\n", "def test_repr():\n", " assert repr(ExternalLink('HTTP://mediawiki.org')) == \\\n", " \"ExternalLink('HTTP://mediawi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
84
0
false
"""Class to perform random over-sampling.""" from __future__ import print_function from __future__ import division import numpy as np from collections import Counter from sklearn.utils import check_random_state from ..base import SamplerMixin class RandomOverSampler(SamplerMixin): """Class to perform random...
[ "\"\"\"Class to perform random over-sampling.\"\"\"\n", "from __future__ import print_function\n", "from __future__ import division\n", "\n", "import numpy as np\n", "\n", "from collections import Counter\n", "\n", "from sklearn.utils import check_random_state\n", "\n", "from ..base import Sampl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.012345679012345678,...
138
0.000089
false
from sigma.core.permission import check_man_roles from sigma.core.rolecheck import matching_role, user_matching_role import discord async def takerole(cmd, message, args): if not check_man_roles(message.author, message.channel): out_content = discord.Embed(type='rich', color=0xDB0000, ...
[ "from sigma.core.permission import check_man_roles\n", "from sigma.core.rolecheck import matching_role, user_matching_role\n", "import discord\n", "\n", "\n", "async def takerole(cmd, message, args):\n", " if not check_man_roles(message.author, message.channel):\n", " out_content = discord.E...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0.010869565217391304, 0, 0, 0, 0.012195121951219513, 0, 0, 0, 0, 0.012195121951219513, 0, 0, 0, 0, 0, 0, 0, 0, 0.012195121951219513, 0.008333333333333333, 0, 0, 0, 0, 0, 0.008620689655172414, 0, 0, 0.011627906976744186, ...
40
0.002104
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.047619047619047616, 0.037037037037037035, 0.02702702702702703, 0.023255813953488372, 0.02, 0.05263157894736842, 0, 0.07142857142857142, 0.01639344262295082, 0.045454545...
76
0.008079
false
# -*- coding: utf-8 -*- # legume. Copyright 2009-2010 Dale Reidy. All rights reserved. # See LICENSE for details. import struct from legume.exceptions import BufferError class ByteBuffer(object): ''' Provides a simplified method of reading struct packed data from a string buffer. read_bytes and read...
[ "# -*- coding: utf-8 -*-\n", "# legume. Copyright 2009-2010 Dale Reidy. All rights reserved.\n", "# See LICENSE for details.\n", "\n", "import struct\n", "from legume.exceptions import BufferError\n", "\n", "class ByteBuffer(object):\n", " '''\n", " Provides a simplified method of reading st...
[ 0, 0, 0, 0, 0, 0, 0, 0.038461538461538464, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.014285714285714285, 0, 0, 0, 0, 0, 0, 0, 0, 0.014285714285714285, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
66
0.001504
false
# -*- coding: utf-8 -*- from Plugins.Extensions.MediaPortal.plugin import _ from Plugins.Extensions.MediaPortal.resources.imports import * from Plugins.Extensions.MediaPortal.resources.myvideolink import MyvideoLink class p7s1Main(MPScreen): def __init__(self, session, mode): self.mode = mode if self.mode == "...
[ "# -*- coding: utf-8 -*-\n", "from Plugins.Extensions.MediaPortal.plugin import _\n", "from Plugins.Extensions.MediaPortal.resources.imports import *\n", "from Plugins.Extensions.MediaPortal.resources.myvideolink import MyvideoLink\n", "\n", "class p7s1Main(MPScreen):\n", "\n", "\tdef __init__(self, s...
[ 0, 0, 0, 0, 0, 0.038461538461538464, 0, 0.027777777777777776, 0.05263157894736842, 0, 0.03225806451612903, 0.02564102564102564, 0.018518518518518517, 0.038461538461538464, 0.02857142857142857, 0.02040816326530612, 0, 0.023255813953488372, 0.015625, 0.022222222222222223, 0.037...
250
0.036502
false
#!/usr/local/bin/python # -*- coding: utf-8 -*- # file: main.py import re import pandas as pd from os.path import isfile from remarkuple import helper as h, table from isopsephy import preprocess_greek, to_roman, isopsephy from IPython.display import HTML dictionary = pd.DataFrame() def load_dataframe(csv = "nt-str...
[ "#!/usr/local/bin/python\n", "# -*- coding: utf-8 -*-\n", "# file: main.py\n", "\n", "import re\n", "import pandas as pd\n", "from os.path import isfile\n", "from remarkuple import helper as h, table\n", "from isopsephy import preprocess_greek, to_roman, isopsephy\n", "from IPython.display import ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.06818181818181818, 0, 0, 0.017543859649122806, 0.04, 0, 0.012048192771084338, 0, 0.011627906976744186, 0, 0.012345679012345678, 0, 0.013071895424836602, 0, 0.04, 0, 0, 0.007575757575757576, 0, 0.0196078431372549...
103
0.004662
false
# -*- coding: utf-8 -*- # This code is based on youtube-dl: https://github.com/rg3/youtube-dl from __future__ import unicode_literals import json import operator import os import sys import re import urllib2 _NO_DEFAULT = object() compat_chr = unichr compat_str = unicode exception_err = lambda e: "%s\n%s\n" % (type...
[ "#\t-*-\tcoding:\tutf-8\t-*-\n", "# This code is based on youtube-dl: https://github.com/rg3/youtube-dl\n", "\n", "from __future__ import unicode_literals\n", "\n", "import json\n", "import operator\n", "import os\n", "import sys\n", "import re\n", "import urllib2\n", "\n", "_NO_DEFAULT = ob...
[ 0.041666666666666664, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.015151515151515152, 0, 0.027777777777777776, 0.03571428571428571, 0.022222222222222223, 0.1, 0.03333333333333333, 0.043478260869565216, 0.0196078431372549, 0, 0, 0, 0.045454545454545456, 0.04545...
365
0.037565
false
from __future__ import unicode_literals, division, absolute_import from builtins import * # noqa pylint: disable=unused-import, redefined-builtin from future.moves.urllib.parse import quote import logging from flexget import plugin from flexget.event import event log = logging.getLogger('animeindex') # http://tr...
[ "from __future__ import unicode_literals, division, absolute_import\n", "from builtins import * # noqa pylint: disable=unused-import, redefined-builtin\n", "from future.moves.urllib.parse import quote\n", "\n", "import logging\n", "\n", "from flexget import plugin\n", "from flexget.event import event...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.009259259259259259, 0, 0, 0.010416666666666666, 0, 0, 0, 0, 0, 0.01098901098901099 ]
30
0.001022
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 ...
[ "#\r\n", "# This file is part of Dragonfly.\r\n", "# (c) Copyright 2007, 2008 by Christo Butcher\r\n", "# Licensed under the LGPL.\r\n", "#\r\n", "# Dragonfly is free software: you can redistribute it and/or modify it \r\n", "# under the terms of the GNU Lesser General Public License as published \r...
[ 0, 0, 0, 0, 0, 0.013333333333333334, 0.013157894736842105, 0.013333333333333334, 0, 0, 0.014084507042253521, 0.015384615384615385, 0.013888888888888888, 0, 0, 0.014084507042253521, 0.02040816326530612, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.01282051282051282, 0, 0,...
463
0.002437
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.027777777777777776, 0.018518518518518517, 0.02439024390...
98
0.001163
false
""" provides classes for obtaining information about how frequently individual concepts or categories have been mentioned in news articles (if source == "news") of in social media (if source == "social") """ from eventregistry.Base import * from eventregistry.ReturnInfo import * class CountsBase(QueryParamsBase): ...
[ "\"\"\"\n", "provides classes for obtaining information about how frequently individual concepts or categories\n", "have been mentioned in news articles (if source == \"news\") of in social media (if source == \"social\")\n", "\"\"\"\n", "\n", "from eventregistry.Base import *\n", "from eventregistry.Re...
[ 0, 0.01020408163265306, 0.00980392156862745, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.034482758620689655, 0, 0, 0.058823529411764705, 0.05714285714285714, 0.05714285714285714, 0.06060606060606061, 0.044444444444444446, 0, 0.008403361344537815, 0.007352941176470588, 0...
128
0.007201
false
import json from bottle import route, get, post, put, delete, request, response, abort from modules.utils.dal.common.dtos.metadataUtils import MetadataEncoder from modules.utils.customEncoder import CustomEncoder from modules.utils.dal.common import utils as dalUtils from modules.utils.dal import dataProviderDto data...
[ "import json\n", "from bottle import route, get, post, put, delete, request, response, abort\n", "from modules.utils.dal.common.dtos.metadataUtils import MetadataEncoder\n", "from modules.utils.customEncoder import CustomEncoder\n", "from modules.utils.dal.common import utils as dalUtils\n", "from modules...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.02631578947368421, 0, 0, 0, 0, 0, 0.08333333333333333, 0, 0, 0, 0, 0, 0, 0, 0.009900990099009901, 0, 0, 0.08333333333333333, 0, 0, 0, 0, 0, 0, 0, 0.009174311926605505, 0, 0, 0.08333333333333333, 0, 0, 0...
172
0.013125
false
# -*- coding: utf-8 -*- from Components.config import config from Screens.MessageBox import MessageBox from simpleplayer import SimplePlayer from youtubelink import YoutubeLink class YoutubePlayer(SimplePlayer): def __init__(self, session, playList, playIdx=0, playAll=False, listTitle=None, plType='local', title_i...
[ "# -*- coding: utf-8 -*-\n", "\n", "from Components.config import config\n", "from Screens.MessageBox import MessageBox\n", "from simpleplayer import SimplePlayer\n", "from youtubelink import YoutubeLink\n", "\n", "class YoutubePlayer(SimplePlayer):\n", "\n", "\tdef __init__(self, session, playLis...
[ 0, 0, 0, 0, 0, 0, 0, 0.02857142857142857, 0, 0.013605442176870748, 0.04, 0.009950248756218905, 0, 0.047619047619047616, 0.05, 0.017857142857142856, 0.022727272727272728, 0.025, 0.04, 0.019230769230769232, 0.09090909090909091, 0.016666666666666666, 0.034482758620689655, ...
28
0.022236
false
 # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from __future__ import absolute_import, print_function import sys import unittest import inspect import types def discover(pytestargs=None, hidestdio=False, _pytest_main=None, _plugin=None, **_ignored): ...
[ "\n", "# Copyright (c) Microsoft Corporation. All rights reserved.\n", "# Licensed under the MIT License.\n", "\n", "from __future__ import absolute_import, print_function\n", "\n", "import sys\n", "import unittest\n", "import inspect\n", "import types\n", "\n", "def discover(pytestargs=None, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.02127659574468085, 0, 0.2, 0, 0.2, 0.015873015873015872, 0.025, 0.022727272727272728, 0, 0, 0, 0.08333333333333333, 0, 0, 0, 0, 0, 0.034482758620689655, 0.023529411764705882, 0, 0, 0.047619047619047616, 0.0204081632...
72
0.014588
false
# -*- coding: utf-8 -*- # Module: default # Author: Yangqian # Created on: 25.12.2015 # License: GPL v.3 https://www.gnu.org/copyleft/gpl.html # Largely following the example at # https://github.com/romanvm/plugin.video.example/blob/master/main.py import xbmc,xbmcgui,urllib2,re,xbmcplugin from urlparse import parse_q...
[ "# -*- coding: utf-8 -*-\n", "# Module: default\n", "# Author: Yangqian\n", "# Created on: 25.12.2015\n", "# License: GPL v.3 https://www.gnu.org/copyleft/gpl.html\n", "# Largely following the example at \n", "# https://github.com/romanvm/plugin.video.example/blob/master/main.py\n", "import xbmc,xbmcg...
[ 0, 0, 0, 0, 0, 0.027777777777777776, 0, 0.11904761904761904, 0, 0, 0, 0, 0.047619047619047616, 0, 0.05263157894736842, 0, 0, 0, 0, 0, 0.11764705882352941, 0, 0.04, 0, 0.043478260869565216, 0, 0.00980392156862745, 0, 0, 0, 0.06666666666666667, 0, 0.0116...
110
0.008873
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.009433962264150943, 0, 0, 0, 0, 0.012987012987012988, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.010526315789473684, 0, 0, 0, 0, 0, ...
103
0.002222
false
# Copyright (C) 2015 Anisan, Kevin S. Graer # # # This file is part of PseudoTV Live. # # PseudoTV 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 ...
[ "# Copyright (C) 2015 Anisan, Kevin S. Graer\n", "#\n", "#\n", "# This file is part of PseudoTV Live.\n", "#\n", "# PseudoTV 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...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.043478260869565216, 0, 0, 0.014285714285714285, 0.01639344262295082, 0.0196078431372549, 0.012048192771084338, 0, 0.011764705882352941, 0.018...
302
0.028664
false
# -*- coding: utf-8 -*- from Plugins.Extensions.MediaPortal.plugin import _ from Plugins.Extensions.MediaPortal.resources.imports import * from Plugins.Extensions.MediaPortal.resources.keyboardext import VirtualKeyBoardExt import Queue import threading from Plugins.Extensions.MediaPortal.resources.youtubeplayer import...
[ "# -*- coding: utf-8 -*-\n", "from Plugins.Extensions.MediaPortal.plugin import _\n", "from Plugins.Extensions.MediaPortal.resources.imports import *\n", "from Plugins.Extensions.MediaPortal.resources.keyboardext import VirtualKeyBoardExt\n", "import Queue\n", "import threading\n", "from Plugins.Extensi...
[ 0, 0, 0, 0.011904761904761904, 0, 0, 0.012345679012345678, 0, 0, 0, 0, 0.015873015873015872, 0.125, 0.041666666666666664, 0, 0.043478260869565216, 0, 0, 0.058823529411764705, 0.125, 0.041666666666666664, 0, 0.043478260869565216, 0, 0, 0, 0, 0, 0, 0, 0, 0...
609
0.041185
false
# Copyright (c) 2013 Torrent-TV.RU # Writer (c) 2011, Welicobratov K.A., E-mail: 07pov23@gmail.com # Edited (c) 2015, Vorotilin D.V., E-mail: dvor85@mail.ru import sys import defines # append pydev remote debugger if defines.DEBUG: # Make pydev debugger works for auto reload. # Note pydevd module n...
[ "# Copyright (c) 2013 Torrent-TV.RU\r\n", "# Writer (c) 2011, 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", "import sys\r\n", "import defines\r\n", "\r\n", "# append pydev remote debugger\r\n", "if defines.DEBUG:\r\n", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.030927835051546393, 0.02197802197802198, 0, 0.009615384615384616, 0.01098901098901099, 0, 0.07692307692307693, 0.023255813953488372, 0.008264462809917356, 0, 0, 0, 0, 0.16666666666666666, 0, 0.05555555555555555, 0, 0, 0.041...
57
0.024741
false
#coding: UTF-8 import math import time import string import sys,os import os, io, sys, re, time, json, base64 import webbrowser import urllib2 import msvcrt import time import ctypes STD_INPUT_HANDLE = -10 STD_OUTPUT_HANDLE= -11 STD_ERROR_HANDLE = -12 FOREGROUND_BLACK = 0x0 FOREGROUND_BLUE = 0x01 # text...
[ "#coding: UTF-8\n", "import math\n", "import time\n", "import string\n", "import sys,os\n", "import os, io, sys, re, time, json, base64\n", "import webbrowser\n", "import urllib2\n", "\n", "import msvcrt\n", "import time\n", "import ctypes\n", "\n", "\n", "\n", "STD_INPUT_HANDLE = -10 ...
[ 0.06666666666666667, 0, 0, 0, 0.14285714285714285, 0.023255813953488372, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.08, 0.08, 0.04, 0.3333333333333333, 0.04, 0.03773584905660377, 0.05555555555555555, 0.0392156862745098, 0.03389830508474576, 0.3333333333333333, 0.03389830508474576...
232
0.051452
false
# Book Data Structure and algorithms using Python # implement the Array ADT import ctypes class Array: def __init__(self, size): assert size > 0, 'Array size must be > 0' self._size = size PyArrayType = ctypes.py_object * size self._elements = PyArrayType() self.clear...
[ "# Book Data Structure and algorithms using Python\n", "# implement the Array ADT \n", "import ctypes\n", "\n", "class Array:\n", " \n", " def __init__(self, size):\n", " assert size > 0, 'Array size must be > 0'\n", " self._size = size\n", " PyArrayType = ctypes.py_obje...
[ 0, 0.037037037037037035, 0, 0, 0.07692307692307693, 0.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.045454545454545456, 0, 0, 0.038461538461538464, 0.2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
59
0.010761
false
""" Make projects files for building Far Manager Encyclopedia in .CHM format """ # pythonized by techtonik // gmail.com # modifications by Far Group # # IMPORTANT: must be albe to run under python 2.4 # # keywords for HHK are generated from "<a name=>" and "<h1>" # contents tree for HHC is generated from /html/ind...
[ "\"\"\"\n", "Make projects files for building Far Manager Encyclopedia in .CHM format\n", "\"\"\"\n", "\n", "# pythonized by techtonik // gmail.com\n", "# modifications by Far Group\n", "\n", "#\n", "# IMPORTANT: must be albe to run under python 2.4\n", "#\n", "\n", "# keywords for HHK are gen...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.01098901098901099, 0.008849557522123894, 0.0064516129032258064, 0, 0, 0, 0, 0, 0.02564102564102564, 0.025, 0.03571428571428571, 0.07142857142857142, 0.06666666666666667, 0.1, 0.0625, 0, 0.01098901098901099, 0, 0, ...
305
0.018451
false
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2014 clowwindy # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights ...
[ "#!/usr/bin/env python3\n", "# -*- coding: utf-8 -*-\n", "\n", "# Copyright (c) 2014 clowwindy\n", "#\n", "# Permission is hereby granted, free of charge, to any person obtaining a copy\n", "# of this software and associated documentation files (the \"Software\"), to deal\n", "# in the Software withou...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.027777777777777776, 0.034482758620689655, 0.02702702702702703, 0.043478260869565216, 0, 0.0625, 0.030303030303030304, 0, 0.03846...
293
0.035899
false
# -*- coding: utf_8 -*- from pyspec import * from stack import * class StackBehavior(object): """スタックの動作仕様.""" @context(group=0) def New_stack(self): """新しいスタック.""" self.stack = Stack() @spec(group=0) def should_empty(self): """空でなければならない.""" About(self.stack).should_be_empty() @spec(group=0) def sh...
[ "# -*- coding: utf_8 -*-\n", "\n", "from pyspec import *\n", "from stack import *\n", "\n", "class StackBehavior(object):\n", "\t\"\"\"スタックの動作仕様.\"\"\"\n", "\t@context(group=0)\n", "\tdef New_stack(self):\n", "\t\t\"\"\"新しいスタック.\"\"\"\n", "\t\tself.stack = Stack()\n", "\n", "\t@spec(group=0)...
[ 0, 0, 0, 0, 0, 0.034482758620689655, 0.05555555555555555, 0.05263157894736842, 0.045454545454545456, 0.058823529411764705, 0.043478260869565216, 0, 0.0625, 0.04, 0.05, 0.02631578947368421, 0, 0.0625, 0.023255813953488372, 0.045454545454545456, 0.045454545454545456, 0.023809...
42
0.031607
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.047619047619047616, 0.037037037037037035, 0.02127659574468085, 0.02, 0.03333333333333333, 0, 0.07142857142857142, 0.016129032258064516, 0.06666666666666667, 0.022222222...
87
0.01328
false
# -*- coding: utf-8 -*- __author__ = "Konstantin Klementiev", "Roman Chernikov" __date__ = "20 Sep 2016" import os import sys #import pickle import numpy as np from scipy import optimize from scipy import special import inspect from .. import raycing from . import myopencl as mcl from .sources_beams import Beam, allA...
[ "# -*- coding: utf-8 -*-\n", "__author__ = \"Konstantin Klementiev\", \"Roman Chernikov\"\n", "__date__ = \"20 Sep 2016\"\n", "import os\n", "import sys\n", "#import pickle\n", "import numpy as np\n", "from scipy import optimize\n", "from scipy import special\n", "import inspect\n", "\n", "fro...
[ 0, 0, 0, 0, 0, 0.06666666666666667, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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,374
0.000067
false
# Copyright 2015 Cloudbase Solutions Srl # 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 ...
[ "# Copyright 2015 Cloudbase Solutions Srl\n", "# All Rights Reserved.\n", "#\n", "# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n", "# not use this file except in compliance with the License. You may obtain\n", "# a copy of the License at\n", "#\n", "# ht...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
935
0.000263
false
# -*- coding: UTF-8 -*- # GUI Application automation and testing library # Copyright (C) 2015 Intel Corporation # Copyright (C) 2006 Mark Mc Mahon # # This library 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...
[ "# -*- coding: UTF-8 -*-\n", "# GUI Application automation and testing library\n", "# Copyright (C) 2015 Intel Corporation\n", "# Copyright (C) 2006 Mark Mc Mahon\n", "#\n", "# This library is free software; you can redistribute it and/or \n", "# modify it under the terms of the GNU Lesser General Publi...
[ 0, 0, 0, 0, 0, 0.015384615384615385, 0.014285714285714285, 0.014705882352941176, 0, 0, 0.014925373134328358, 0.015151515151515152, 0.017857142857142856, 0, 0, 0.014705882352941176, 0.017543859649122806, 0, 0, 0.058823529411764705, 0.03125, 0, 0, 0, 0, 0, 0, 0, ...
67
0.018529
false
# -*- coding: utf-8 -*- from Plugins.Extensions.MediaPortal.plugin import _ from Plugins.Extensions.MediaPortal.resources.imports import * class extremetubeGenreScreen(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 extremetubeGenreScreen(MPScreen):\n", "\n", "\tdef __init__(self, session):\n", "\t\tself.plugin_path = mp_globals.pluginPath\n", "\t...
[ 0, 0, 0, 0, 0.025, 0, 0.03333333333333333, 0.023255813953488372, 0.015625, 0, 0.021052631578947368, 0.037037037037037035, 0.023809523809523808, 0, 0.034482758620689655, 0.041666666666666664, 0.07692307692307693, 0, 0, 0.041666666666666664, 0.09090909090909091, 0.08333333333...
181
0.033899
false
# -*- coding: utf-8 -*- # ProjectEuler/src/python/problem422.py # # Sequence of points on a hyperbola # ================================= # Published on Sunday, 7th April 2013, 07:00 am # # Let H be the hyperbola defined by the equation 12x2 + 7xy - 12y2 = 625. Next, # define X as the point (7, 1). It can be seen that...
[ "# -*- coding: utf-8 -*-\n", "# ProjectEuler/src/python/problem422.py\n", "#\n", "# Sequence of points on a hyperbola\n", "# =================================\n", "# Published on Sunday, 7th April 2013, 07:00 am\n", "#\n", "# Let H be the hyperbola defined by the equation 12x2 + 7xy - 12y2 = 625. Next...
[ 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 ]
26
0.00463
false
# ============================================================================== # provision.py # This is API library for Exosite's One-Platform provisioning interface. # ============================================================================== # # Warning: pyonep version 0.8.0 introduces breaking change to the #...
[ "# ==============================================================================\n", "# provision.py\n", "# This is API library for Exosite's One-Platform provisioning interface.\n", "# ==============================================================================\n", "#\n", "# Warning: pyonep version 0....
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
386
0.006364
false
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import re import random import sys import unicodedata import my_conexion sys.stdout.encoding 'UTF-8' # PROCESAR MENSAJE DE USUARIO def generarRespuesta(mensaje, STATES, username): message_=sinAcentos(mensaje) ans='' ve...
[ "#!/usr/bin/env python\r\n", "# -*- coding: utf-8 -*-\r\n", "\r\n", "\r\n", "import os\r\n", "import re \r\n", "import random\r\n", "import sys\r\n", "import unicodedata\r\n", "import my_conexion\r\n", "sys.stdout.encoding \r\n", "'UTF-8'\r\n", "\r\n", "\r\n", "# PROCESAR MENSAJE DE USUA...
[ 0, 0, 0, 0, 0, 0.08333333333333333, 0, 0, 0, 0, 0.045454545454545456, 0, 0, 0, 0, 0, 0, 0, 0.029411764705882353, 0.2, 0.08333333333333333, 0, 0, 0, 0.034334763948497854, 0.021739130434782608, 0, 0.07142857142857142, 0.07142857142857142, 0.05, 0.14285714285...
405
0.045703
false
#!/usr/bin/python # -*- coding:utf-8 -*- import httplib import urllib import json import urllib2 import re import os class BaiduImage(object): def __init__(self): super(BaiduImage,self).__init__() print u'图片获取中,CTRL+C 退出程序...' self.page = 60 #当前...
[ "#!/usr/bin/python \n", "# -*- coding:utf-8 -*- \n", "import httplib \n", "import urllib \n", "import json \n", "import urllib2 \n", "import re \n", "import os \n", " \n", "class BaiduImage(object): \n", " def __init__(self): \n", " super(BaiduImage,self).__init__() \n", ...
[ 0.05, 0.04, 0.058823529411764705, 0.0625, 0.07142857142857142, 0.058823529411764705, 0.08333333333333333, 0.08333333333333333, 0.3333333333333333, 0.07142857142857142, 0.038461538461538464, 0.045454545454545456, 0.025, 0.04, 0.022222222222222223, 0.01818181818181818, 0.14285714285714...
58
0.056252
false
#!/usr/bin/env python import os import csv, sys, json def run_rnaseq_docker(basename_I, host_dirname_I, organism_I, host_indexes_dir_I, host_dirname_O, paired_I='paired', threads_I=2,trim3_I=3, library_type_I='fr-firststrand', index_type_I = '.gtf', ...
[ "#!/usr/bin/env python\n", "import os\n", "import csv, sys, json\n", "\n", "def run_rnaseq_docker(basename_I,\n", " host_dirname_I,\n", " organism_I,\n", " host_indexes_dir_I,\n", " host_dirname_O,\n", " paired_I='paired',\n", " threads_I=2,trim3_I=3,\n"...
[ 0, 0, 0.045454545454545456, 0, 0.029411764705882353, 0.041666666666666664, 0.05, 0.03571428571428571, 0.041666666666666664, 0.037037037037037035, 0.06451612903225806, 0.024390243902439025, 0.0967741935483871, 0.0967741935483871, 0.08823529411764706, 0.09090909090909091, 0, 0, 0, ...
162
0.021488
false
from docker import Client from json import JSONEncoder from platform import node # Generates image inventory data in the same format as the provider (used in unit tests to validate OMI provider) NUMBYTESPERMB = 1048576 c = Client(base_url="unix://var/run/docker.sock") imageDict = c.images() tempDict = d...
[ "from docker import Client\r\n", "from json import JSONEncoder\r\n", "from platform import node\r\n", "\r\n", "# Generates image inventory data in the same format as the provider (used in unit tests to validate OMI provider)\r\n", "\r\n", "NUMBYTESPERMB = 1048576\r\n", "\r\n", "c = Client(base_url=\...
[ 0, 0, 0, 0, 0.008695652173913044, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.05555555555555555, 0.02702702702702703, 0, 0.016666666666666666, 0.034482758620689655, 0.03125, 0.01694915254237288, 0.03333333333333333, 0.041666666666666664, 0.041666666666666664, 0.043478260869565216, ...
55
0.024382
false
from django.db import models from django.utils.translation import ugettext as _ from django_countries.fields import CountryField CONTACT_TYPES = ( ('phone', _('Phone')), ('email', _('E-Mail')), ('other', _('Other')), ) class Category(models.Model): class Meta: verbose_name_plural = "categ...
[ "from django.db import models\n", "from django.utils.translation import ugettext as _\n", "\n", "from django_countries.fields import CountryField\n", "\n", "\n", "CONTACT_TYPES = (\n", " ('phone', _('Phone')),\n", " ('email', _('E-Mail')),\n", " ('other', _('Other')),\n", ")\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.011904761904761904, 0, 0, 0.011627906976744186, 0, 0, 0, 0, 0, 0, 0, 0, 0.009433962264150943, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
67
0.00113
false
from django.conf import settings from django.core.cache import cache from django.db.models import Count, F, Q from django.shortcuts import render, redirect from django.views.generic import TemplateView from django.http import HttpResponse from common.views import AbsTargetSelection from common.definitions import FUL...
[ "from django.conf import settings\n", "from django.core.cache import cache\n", "from django.db.models import Count, F, Q\n", "from django.shortcuts import render, redirect\n", "from django.views.generic import TemplateView\n", "from django.http import HttpResponse\n", "\n", "\n", "from common.views ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.011494252873563218, 0, 0, 0, 0, 0, 0, 0.0136986301369863, 0, 0.016666666666666666, 0.012987012987012988, 0.013157894736842105, 0.017543859649122806, 0.017241379310344827, 0.02127659574468085, 0.017391304347826087, 0.015151515151515152, ...
937
0.006236
false
#!/usr/bin/env python3 # Copyright (c) 2016-2018 The Machinecoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Specialized SipHash-2-4 implementations. This implements SipHash-2-4 for 256-bit integers. """ d...
[ "#!/usr/bin/env python3\n", "# Copyright (c) 2016-2018 The Machinecoin Core developers\n", "# Distributed under the MIT software license, see the accompanying\n", "# file COPYING or http://www.opensource.org/licenses/mit-license.php.\n", "\"\"\"Specialized SipHash-2-4 implementations.\n", "\n", "This im...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.05555555555555555, 0, 0, 0.02857142857142857, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.037037037037037035, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
63
0.001923
false
# Copyright (c) 2011 Sam Rushing """ECC secp256k1 OpenSSL wrapper. WARNING: This module does not mlock() secrets; your private keys may end up on disk in swap! Use with caution! This file is modified from python-machinecoinlib. """ import ctypes import ctypes.util import hashlib ssl = ctypes.cdll.LoadLibrary(ctype...
[ "# Copyright (c) 2011 Sam Rushing\n", "\"\"\"ECC secp256k1 OpenSSL wrapper.\n", "\n", "WARNING: This module does not mlock() secrets; your private keys may end up on\n", "disk in swap! Use with caution!\n", "\n", "This file is modified from python-machinecoinlib.\n", "\"\"\"\n", "\n", "import ctyp...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.01282051282051282, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.01020408163265306, 0, 0, 0.008130081300813009, 0, 0, 0.00819672131147541, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
226
0.006238
false
# #------------------------------------------------------------------------------ # Copyright (c) 2013-2014, Christian Therien # # 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 # # ...
[ "#\r\n", "#------------------------------------------------------------------------------\r\n", "# Copyright (c) 2013-2014, Christian Therien\r\n", "#\r\n", "# Licensed under the Apache License, Version 2.0 (the \"License\");\r\n", "# you may not use this file except in compliance with the License.\r\n", ...
[ 0, 0.012345679012345678, 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.00847457627118644, 0, 0, 0, 0, 0, 0, 0, 0, ...
113
0.001715
false
#coding:utf-8 """ FUDAN XUANKE justmao945@gmail.com """ import sys import urllib import urllib2 import cookielib import Image import cStringIO import data def _u(s): """ This function is a stupid one, but it really works! convert 's' to utf8 """ if not s: return s s = s.strip() if...
[ "#coding:utf-8\r\n", "\r\n", "\"\"\" FUDAN XUANKE justmao945@gmail.com \"\"\"\r\n", "\r\n", "import sys\r\n", "import urllib\r\n", "import urllib2\r\n", "import cookielib\r\n", "import Image\r\n", "import cStringIO\r\n", "import data\r\n", "\r\n", "\r\n", "def _u(s):\r\n", " \"\"\"\r\n"...
[ 0.06666666666666667, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.14285714285714285, 0, 0, 0, 0.09090909090909091, 0.058823529411764705, 0.09090909090909091, 0.1111111111111111, 0.023255813953488372, 0.1111111111111111, 0.08333333333333333, 0, 0.07692307692307693, 0...
134
0.046109
false
#!python3 # -*- coding:utf-8 -*- import os import sys import time import ctypes import shutil import subprocess IsPy3 = sys.version_info[0] >= 3 if IsPy3: import winreg else: import codecs import _winreg as winreg BuildType = 'Release' IsRebuild = True Build = 'Rebuild' Update = False C...
[ "#!python3\r\n", "# -*- coding:utf-8 -*-\r\n", "import os\r\n", "import sys\r\n", "import time\r\n", "import ctypes\r\n", "import shutil\r\n", "import subprocess\r\n", "IsPy3 = sys.version_info[0] >= 3\r\n", "if IsPy3:\r\n", " import winreg\r\n", "else:\r\n", " import codecs\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.034482758620689655, 0, 0.058823529411764705, 0.0425531914893617, 0.05128205128205128, 0.029850746268656716, 0.029411764705882353, 0.06451612903225806, 0.03076923076923077, 0.08...
343
0.006466
false
# -*- coding: utf-8 -*- # Copyright 2014 SAP AG. # SPDX-FileCopyrightText: 2013 SAP SE Srdjan Boskovic <srdjan.boskovic@sap.com> # # SPDX-License-Identifier: Apache-2.0 import sys import unittest from decimal import Decimal import locale from pyrfc import Connection, ExternalRuntimeError from tests.config import (...
[ "# -*- coding: utf-8 -*-\n", "\n", "# Copyright 2014 SAP AG.\n", "# SPDX-FileCopyrightText: 2013 SAP SE Srdjan Boskovic <srdjan.boskovic@sap.com>\n", "#\n", "# SPDX-License-Identifier: Apache-2.0\n", "\n", "import sys\n", "import unittest\n", "from decimal import Decimal\n", "import locale\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.011764705882352941, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
799
0.000424
false
#! /usr/bin/env python # encoding: utf-8 # Matt Clarkson, 2012 ''' DPAPI access library (http://msdn.microsoft.com/en-us/library/ms995355.aspx) This file uses code originally created by Crusher Joe: http://article.gmane.org/gmane.comp.python.ctypes/420 And modified by Wayne Koorts: http://stackoverflow.com/questions/...
[ "#! /usr/bin/env python\n", "# encoding: utf-8\n", "# Matt Clarkson, 2012\n", "\n", "'''\n", "DPAPI access library (http://msdn.microsoft.com/en-us/library/ms995355.aspx)\n", "This file uses code originally created by Crusher Joe:\n", "http://article.gmane.org/gmane.comp.python.ctypes/420\n", "And m...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.014492753623188406, 0, 0.018867924528301886, 0, 0.03571428571428571, 0.07142857142857142, 0.047619047619047616, 0.03333333333333333, 0.3333333333333333, 0, 0.041666666666666664, 0.03...
87
0.049275
false
# -*- coding: utf-8 -*- """ Train algorithm based on Delta - rule """ from neurolab.core import Train class TrainDelta(Train): """ Train with Delta rule :Support networks: newp (one-layer perceptron) :Parameters: input: array like (l x net.ci) train input patterns ...
[ "# -*- coding: utf-8 -*-\n", "\"\"\"\n", "Train algorithm based on Delta - rule\n", "\n", "\"\"\"\n", "\n", "from neurolab.core import Train\n", "\n", "\n", "class TrainDelta(Train):\n", "\n", " \"\"\"\n", " Train with Delta rule\n", "\n", " :Support networks:\n", " new...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
49
0
false
# -*- coding: utf-8 -*- from Plugins.Extensions.MediaPortal.plugin import _ from Plugins.Extensions.MediaPortal.resources.imports import * def movshare(self, data, url, hostername): print "movshare:", hostername m = re.search('flashvars.filekey=(.*?);', data, re.S) if not m: keyvar = filecode = None l = re.sea...
[ "# -*- coding: utf-8 -*-\n", "from Plugins.Extensions.MediaPortal.plugin import _\n", "from Plugins.Extensions.MediaPortal.resources.imports import *\n", "\n", "def movshare(self, data, url, hostername):\n", "\tprint \"movshare:\", hostername\n", "\tm = re.search('flashvars.filekey=(.*?);', data, re.S)\...
[ 0, 0, 0, 0, 0.023255813953488372, 0.03225806451612903, 0.01818181818181818, 0.09090909090909091, 0.037037037037037035, 0.08108108108108109, 0.125, 0.05555555555555555, 0.05555555555555555, 0.05555555555555555, 0.05555555555555555, 0.0975609756097561, 0.038461538461538464, 0.0540540...
166
0.056269
false
from pymongo import MongoClient from collections import defaultdict class Searcher: def __init__(self, ip, port, db, collection, user, pwd): self.client = MongoClient(ip, port) self.db = self.client[db] self.db.authenticate(user, pwd) self.goofle = self.db[collection] self.spchars = {"á":"a", "à...
[ "from pymongo import MongoClient\n", "from collections import defaultdict\n", "\n", "class Searcher:\n", " def __init__(self, ip, port, db, collection, user, pwd):\n", " self.client = MongoClient(ip, port)\n", " self.db = self.client[db]\n", " self.db.authenticate(user, pwd)\n", " self....
[ 0, 0, 0, 0.0625, 0.01694915254237288, 0, 0, 0, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.08571428571428572, 0.08823529411764706, 0.08823529411764706, 0.08823529411764706, 0.08823529411764706, 0.08823529411764706, 0.0810810810810810...
35
0.034901
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.047619047619047616, 0.037037037037037035, 0.02702702702702703, 0, 0, 0.07142857142857142, 0.021739130434782608, 0.06666666666666667, 0.022222222222222223, 0.02, 0, ...
42
0.014325
false