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
#!/usr/bin/env python # # PyGab - Python Jabber Framework # Copyright (c) 2008, Patrick Kennedy # 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 ...
[ "#!/usr/bin/env python\n", "#\n", "# PyGab - Python Jabber Framework\n", "# Copyright (c) 2008, Patrick Kennedy\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\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.023809523809523808, 0.025, 0.029411764705882353, 0.014084507042253521, 0.014285714285714285, 0.014285714285714285, 0.02040816326530612, 0.030303030303...
181
0.027993
false
# -*- coding: utf-8 -*- """ Neurolab is a simple and powerful Neural Network Library for Python. Contains based neural networks, train algorithms and flexible framework to create and explore other neural network types. :Features: - Pure python + numpy - API like Neural Network Toolbox (NNT) from MATLAB ...
[ "# -*- coding: utf-8 -*-\n", "\"\"\"\n", "Neurolab is a simple and powerful Neural Network Library for Python.\n", "Contains based neural networks, train algorithms and flexible framework\n", "to create and explore other neural network types.\n", "\n", "\n", ":Features:\n", "\n", " - Pure pytho...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
57
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.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.037037037037037035, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
288
0.000592
false
"""Generate the mappings used in the fast Branching Program generation. This module contains the code that was used to generate the mappings that are used to generate Branching Programs by applying Barrington's Theorem. Additionally it contains two earlier versions of the Branching Program generation for explanatory ...
[ "\"\"\"Generate the mappings used in the fast Branching Program generation.\n", "\n", "This module contains the code that was used to generate the mappings that\n", "are used to generate Branching Programs by applying Barrington's Theorem.\n", "Additionally it contains two earlier versions of the Branching ...
[ 0, 0, 0, 0, 0, 0, 0, 0.2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.022222222222222223, 0, 0.29292929292929293, 0.2549019607843137, 0.25, 0.26, 0.26262626262626265, 0.27, 0.2524271844660194, 0.019417475728155338, 0.25, 0.25742574257425743, 0.25742574257425743, 0, 0.0...
295
0.161663
false
import sys sys.path.append("C:\Program Files\FreeCAD\\bin") import os import math import FreeCAD import Sketcher import Part import Draft def translate(context, text): return text class AFPM: def __init__(self, magnet_length, magnet_height, coil_count, leg_width, between_coil, wire_diameter, coil_thickness,...
[ "import sys\n", "\n", "sys.path.append(\"C:\\Program Files\\FreeCAD\\\\bin\")\n", "import os\n", "import math\n", "import FreeCAD\n", "import Sketcher\n", "import Part\n", "import Draft\n", "\n", "def translate(context, text):\n", " return text\n", "\n", "class AFPM:\n", " def __in...
[ 0, 0, 0.04081632653061224, 0.1, 0.08333333333333333, 0.06666666666666667, 0.0625, 0.08333333333333333, 0.07692307692307693, 0, 0.03333333333333333, 0, 0, 0.08333333333333333, 0.008264462809917356, 0, 0, 0, 0, 0.009900990099009901, 0.008849557522123894, 0, 0, 0, 0, 0...
173
0.00681
false
 import urllib, sys, os, re, time import xbmcaddon, xbmcplugin, xbmcgui, xbmc from traceback import print_exc addonid = "plugin.video.stepashka.com" ___addon = xbmcaddon.Addon(id=addonid) language = ___addon.getLocalizedString path = xbmc.translatePath( ___addon.getAddonInfo('path') ) profile = xbmc.trans...
[ "\n", "\n", "import urllib, sys, os, re, time\n", "import xbmcaddon, xbmcplugin, xbmcgui, xbmc\n", "from traceback import print_exc\n", "\n", "\n", "\n", "addonid = \"plugin.video.stepashka.com\"\n", "___addon = xbmcaddon.Addon(id=addonid)\n", "language = ___addon.getLocalizedString\n", "p...
[ 0, 0, 0.030303030303030304, 0.022727272727272728, 0, 0, 0, 0, 0.05, 0.023809523809523808, 0, 0.047619047619047616, 0.045454545454545456, 0.09615384615384616, 0.09615384615384616, 0, 0.03225806451612903, 0.03225806451612903, 0.02702702702702703, 0.058823529411764705, 0, 0.11...
153
0.135498
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 Copy = False CleanAl...
[ "#!python3\n", "# -*- coding:utf-8 -*-\n", "import os\n", "import sys\n", "import time\n", "import ctypes\n", "import shutil\n", "import subprocess\n", "IsPy3 = sys.version_info[0] >= 3\n", "if IsPy3:\n", " import winreg\n", "else:\n", " import codecs\n", " import _winreg as winre...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.03508771929824561, 0, 0.0625, 0.047619047619047616, 0.05263157894736842, 0.030303030303030304, 0.031746031746031744, 0.06666666666666667, 0.03333333333333333, 0.08823...
355
0.006299
false
#generate dataset from sklearn.datasets import make_blobs X,y = make_blobs(n_samples = 150, n_features = 2, centers = 3, cluster_std = 0.5, shuffle = True, random_state = 0) import matplotlib.pyplot as plt plt.scatter(X[:,0],X[:,1],c...
[ "#generate dataset\n", "from sklearn.datasets import make_blobs\n", "X,y = make_blobs(n_samples = 150,\n", " n_features = 2,\n", " centers = 3,\n", " cluster_std = 0.5,\n", " shuffle = True,\n", " random_state = 0)\n", "...
[ 0.05555555555555555, 0, 0.08823529411764706, 0.06060606060606061, 0.06666666666666667, 0.05555555555555555, 0.06060606060606061, 0.05714285714285714, 0.03125, 0, 0.17543859649122806, 0, 0, 0, 0.05555555555555555, 0.02857142857142857, 0, 0.03488372093023256, 0.023255813953488372, ...
122
0.026971
false
from config import permitted_id import discord async def leave(cmd, message, args): if message.author.id in permitted_id: if not args: await message.channel.send(cmd.help()) else: search_id = int(args[0]) try: for server in cmd.bot.guilds: ...
[ "from config import permitted_id\n", "import discord\n", "\n", "\n", "async def leave(cmd, message, args):\n", " if message.author.id in permitted_id:\n", " if not args:\n", " await message.channel.send(cmd.help())\n", " else:\n", " search_id = int(args[0])\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.009523809523809525, 0, 0, 0.010752688172043012, 0, 0, 0, 0, 0, 0.012345679012345678, 0 ]
26
0.001255
false
#!/usr/bin/python # -*- coding: utf-8 -*- #/* # * Copyright (c) 2012 Teleplus, Teleplus Team, E-mail: boss@teleplus.ru # * Writer (c) 2012, Krilov V.A., E-mail: boss@teleplus.ru # * # * This Program is free software; you can redistribute it and/or modify # * it under the terms of the GNU General Public License a...
[ "#!/usr/bin/python\n", "# -*- coding: utf-8 -*-\n", "\n", "\n", "#/*\n", "# * Copyright (c) 2012 Teleplus, Teleplus Team, E-mail: boss@teleplus.ru\n", "# * Writer (c) 2012, Krilov V.A., E-mail: boss@teleplus.ru\n", "# *\n", "# * This Program is free software; you can redistribute it and/or modify...
[ 0, 0, 0, 0, 0.25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.03488372093023256, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0425531914893617, 0, 0, 0, 0, 0.061224489795918366, 0.020202020202020204, 0, 0, 0, 0, ...
158
0.031394
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.012987012987012988, 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.01020408163265306,...
142
0.001121
false
# -*- coding: utf-8 -*- """ Modulo per la gestione del comando disclose, che non è altro che un open forzato sui soli oggetti di tipologia contenitore. """ #= IMPORT ====================================================================== from src.config import config from src.log import log if config.reload_com...
[ "# -*- coding: utf-8 -*-\n", "\n", "\"\"\"\n", "Modulo per la gestione del comando disclose, che non è altro che un open\n", "forzato sui soli oggetti di tipologia contenitore.\n", "\"\"\"\n", "\n", "\n", "#= IMPORT ======================================================================\n", "\n", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0.024691358024691357, 0, 0, 0.037037037037037035, 0, 0, 0, 0, 0, 0, 0.024691358024691357, 0, 0.02, 0.0196078431372549, 0.020833333333333332, 0.020833333333333332, 0, 0, 0.024691358024691357, 0, 0, 0, 0, 0, 0, 0, 0.0526315789...
46
0.006471
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, 0, 0, 0.047619047619047616, 0.037037037037037035, 0.02702702702702703, 0.02631578947368421, 0.02564102564102564, 0, ...
87
0.019792
false
#!/usr/bin/env python3 # Created by ACE 3 team, modified by BC: https://github.com/acemod/ACE3 import fnmatch import os import re import ntpath import sys import argparse def get_private_declare(content): priv_declared = [] srch = re.compile('private.*') priv_srch_declared = srch.findall(content) ...
[ "#!/usr/bin/env python3\n", "# Created by ACE 3 team, modified by BC: https://github.com/acemod/ACE3\n", "\n", "import fnmatch\n", "import os\n", "import re\n", "import ntpath\n", "import sys\n", "import argparse\n", "\n", "def get_private_declare(content):\n", " priv_declared = []\n", " ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.029411764705882353, 0, 0.2, 0, 0, 0, 0.2, 0, 0.2, 0.04411764705882353, 0, 0, 0.030303030303030304, 0.2, 0.023622047244094488, 0, 0, 0.2, 0, 0.2, 0.04411764705882353, 0, 0, 0, 0.030303030303030304, 0.2, 0.2, 0.0...
129
0.04501
false
import argparse import BaseHTTPServer import urlparse import json HOST_NAME = 'besiegempms.herokuapp.com' #parsed.get(key)[0] everywhere except Players! class Serverp(object): name = str ipPort = str maxPlayers = int connectedPlayers = int players = [] def __init__(self, name, ipPort, maxPla...
[ "import argparse\n", "import BaseHTTPServer\n", "import urlparse\n", "import json\n", "\n", "HOST_NAME = 'besiegempms.herokuapp.com'\n", "\n", "#parsed.get(key)[0] everywhere except Players!\n", "\n", "class Serverp(object):\n", " name = str\n", " ipPort = str\n", " maxPlayers = int...
[ 0, 0, 0, 0, 0, 0, 0, 0.02127659574468085, 0, 0.043478260869565216, 0, 0, 0, 0, 0, 0.012987012987012988, 0, 0, 0, 0, 0, 0, 0, 0.07692307692307693, 0, 0.125, 0.017391304347826087, 0, 0.016260162601626018, 0, 0.013157894736842105, 0, 0.013513513513513514,...
155
0.013994
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.037037037037037035, 0.02702702702702703, 0.02127659574468085, 0.014084507042253521, 0.014285714285714285, 0, 0.016666666666666666, 0.010416666666666666, 0, 0.03636...
70
0.003683
false
''' Problem 4 @author: Kevin Ji ''' def is_palindrome( string ): if len( string ) == 0 or len( string ) == 1: return True if string[ 0 ] != string[ -1 ]: return False return is_palindrome( string[ 1 : -1 ] ) def get_largest_palindrome_from_product( num_digits ): smallest_nu...
[ "'''\n", "Problem 4\n", "\n", "@author: Kevin Ji\n", "'''\n", "\n", "def is_palindrome( string ):\n", " if len( string ) == 0 or len( string ) == 1:\n", " return True\n", " \n", " if string[ 0 ] != string[ -1 ]:\n", " return False\n", " \n", " return is_palindr...
[ 0, 0, 0, 0, 0, 0, 0.10344827586206896, 0.08163265306122448, 0, 0.2, 0.1111111111111111, 0, 0.2, 0.1111111111111111, 0, 0.05454545454545454, 0.0425531914893617, 0.043478260869565216, 0, 0.2, 0, 0, 0.2, 0, 0, 0.1111111111111111, 0, 0, 0.07692307692307693, 0.06...
40
0.054273
false
# -*- coding: utf-8 -*- from pyramid.view import view_config from pyramid_ldap3 import get_ldap_connector from pyramid.security import unauthenticated_userid from geoportailv3_geoportal.portail import Connections from c2cgeoportal_commons.models import DBSession import ldap3 as ldap import logging log = logging.getLo...
[ "# -*- coding: utf-8 -*-\n", "from pyramid.view import view_config\n", "from pyramid_ldap3 import get_ldap_connector\n", "from pyramid.security import unauthenticated_userid\n", "from geoportailv3_geoportal.portail import Connections\n", "from c2cgeoportal_commons.models import DBSession\n", "import lda...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.011627906976744186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
155
0.000833
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/. """Abstract linear vector spaces.""" from ...
[ "# 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...
1,072
0
false
import string from sys import exit def is_number(s): try: float(s) return True except ValueError: return False def get_bin(x, n): if (not is_number(x)): raise ValueError('get_bin: parameter is not a number.') return '{0:{fill}{width}b}'.format((int(x) + 2**n) % 2**n...
[ "import string\n", "from sys import exit\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 get_bin(x, n):\n", " if (not is_number(x)):\n", " raise ValueError...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
448
0.000167
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.029411764705882353, 0.02702702702702703, 0.015151515151515152, 0.017543859649122806, 0.013333333333333334, 0.01428571428571...
68
0.011621
false
from collections import defaultdict import math import numpy as np from scipy.signal import savgol_filter import statsmodels.api as sm import unittest2 def calc_coord(X, Y, dX, dY, xm_mesa, ym_mesa, xm_pad, ym_pad) -> list: """ Calculate various coordinates for a device. >>> calc_coord(1, 1, 1000, 1000...
[ "from collections import defaultdict\n", "import math\n", "\n", "import numpy as np\n", "from scipy.signal import savgol_filter\n", "import statsmodels.api as sm\n", "import unittest2\n", "\n", "\n", "def calc_coord(X, Y, dX, dY, xm_mesa, ym_mesa, xm_pad, ym_pad) -> list:\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...
525
0.000098
false
# -*- coding: utf-8 -*- ############################################################################################### # # MediaPortal for Dreambox OS # # Coded by MediaPortal Team (c) 2013-2015 # # 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-2015\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, 0.011235955056179775, 0.01098901098901099, 0.012048192771084338, 0, 0, 0, 0, 0, 0.01041666666666666...
357
0.031123
false
# -*- coding: utf-8 -*- """ subrosa.models.UsersModel ====================== Implements model and methods related to user interaction :copyright: (c) 2014 by Konrad Wasowicz :license: MIT, see LICENSE for details. """ import datetime from peewee import * from subrosa import db from subrosa.mo...
[ "# -*- coding: utf-8 -*-\n", "\"\"\"\n", "\n", " subrosa.models.UsersModel\n", " ======================\n", "\n", " Implements model and methods related to user interaction\n", "\n", " :copyright: (c) 2014 by Konrad Wasowicz\n", " :license: MIT, see LICENSE for details.\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.0196078431372549, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
87
0.000944
false
#!/usr/bin/env python # # title : make_sln.py # description : Make a Visual Studio solution to debug a managed # application using LLILC jit. # # This script has been tested running on both Python 2.7 and Python 3.4. # # usage: make_sln.py [-h] [-d {summary,verbose}] [-x [EXTRA [EXTRA ...
[ "#!/usr/bin/env python\n", "#\n", "# title : make_sln.py\n", "# description : Make a Visual Studio solution to debug a managed \n", "# application using LLILC jit.\n", "#\n", "# This script has been tested running on both Python 2.7 and Python 3.4.\n", "#\n", "# usage...
[ 0, 0, 0, 0.014285714285714285, 0, 0, 0, 0, 0, 0, 0, 0, 0.3333333333333333, 0, 0.012345679012345678, 0, 0.3333333333333333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.01098901098901099, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.33333333333333...
304
0.01043
false
#! /usr/bin/env python # coding: utf-8 # The Keccak sponge function was designed by Guido Bertoni, Joan Daemen, # Michaël Peeters and Gilles Van Assche. For more information, feedback or # questions, please refer to their website: http://keccak.noekeon.org/ # # Based on the implementation by Renaud Bauvin, # from htt...
[ "#! /usr/bin/env python\n", "# coding: utf-8\n", "\n", "# The Keccak sponge function was designed by Guido Bertoni, Joan Daemen,\n", "# Michaël Peeters and Gilles Van Assche. For more information, feedback or\n", "# questions, please refer to their website: http://keccak.noekeon.org/\n", "#\n", "# Bas...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.02040816326530612, 0, 0, 0, 0.02040816326530612, 0, 0, 0, 0.020833333333333332, 0, 0, 0, 0.02040816326530612, 0, 0, 0, 0.01639344262295082, 0, 0.034482758620689655, 0, 0...
411
0.012874
false
#file_operation.py import fileinput,sys import os import glob import re def getAlltree(dir_path): for name in os.listdir(dir_path): full_path = os.path.join(dir_path, name) if os.path.isfile(full_path): filesize=isLarge(full_path) if filesize > 0: ...
[ "#file_operation.py\r\n", "\r\n", "import fileinput,sys\r\n", "import os\r\n", "import glob\r\n", "import re\r\n", "\r\n", "def getAlltree(dir_path):\r\n", " for name in os.listdir(dir_path):\r\n", " full_path = os.path.join(dir_path, name)\r\n", " if os.path.isfile(full_path):\...
[ 0.05, 0, 0.09090909090909091, 0, 0, 0, 0, 0.037037037037037035, 0, 0, 0, 0.038461538461538464, 0, 0.036585365853658534, 0.02564102564102564, 0.027777777777777776, 0.07142857142857142, 0.015873015873015872, 0, 0, 0, 0.043478260869565216, 0.029411764705882353, 0, 0.0833...
350
0.022625
false
 import os import time from gi.repository import Gtk import solfege from solfege.profilemanager import ChangeProfileDialog from solfege.practisesheetdlg import PractiseSheetDialog from solfege.trainingsetdlg import TrainingSetDialog def run(cmd): print cmd os.system(cmd) def compress(fn): f, ext = os.p...
[ "\n", "import os\n", "import time\n", "\n", "from gi.repository import Gtk\n", "\n", "import solfege\n", "from solfege.profilemanager import ChangeProfileDialog\n", "from solfege.practisesheetdlg import PractiseSheetDialog\n", "from solfege.trainingsetdlg import TrainingSetDialog\n", "\n", "de...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.07142857142857142, 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, 0, 0, 0, 0, 0, 0.012048192771084338, 0, 0, 0, 0, 0.0370...
158
0.00811
false
# -*- coding: utf-8 -*- # # This file is part of EventGhost. # Copyright © 2005-2019 EventGhost Project <http://www.eventghost.org/> # # EventGhost is free software: you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free # Software Foundation, either versi...
[ "# -*- coding: utf-8 -*-\n", "#\n", "# This file is part of EventGhost.\n", "# Copyright © 2005-2019 EventGhost Project <http://www.eventghost.org/>\n", "#\n", "# EventGhost is free software: you can redistribute it and/or modify it under\n", "# the terms of the GNU General Public License as published b...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
67
0.001866
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
135
0
false
#-*-coding: utf-8-*- #!/usr/bin/env python #------------------------------------------------------------------------------- # Name: OGR Drivers'availability # Purpose: Class to test if GDAL/OGR and their Python bindings are installed # and which drivers are installed. Could be imported as a ...
[ "#-*-coding: utf-8-*-\n", "#!/usr/bin/env python\n", "#-------------------------------------------------------------------------------\n", "# Name: OGR Drivers'availability\n", "# Purpose: Class to test if GDAL/OGR and their Python bindings are installed\n", "# and which drivers...
[ 0.047619047619047616, 0.045454545454545456, 0.024691358024691357, 0, 0.012195121951219513, 0.012048192771084338, 0, 0, 0, 0, 0, 0, 0, 0.024691358024691357, 0, 0.012345679012345678, 0.027777777777777776, 0, 0, 0, 0, 0.041666666666666664, 0.014705882352941176, 0.125, 0....
92
0.007773
false
import sys import random import time import re import decimal import optparse import copy import collections import html # import pdb import gmpy2 import yaml from tr import tr sep = re.compile('[^0-9.]*[^0-9.+*=]') sep2 = re.compile('[^0-9.:]*[^0-9.:]') aChar = re.compile('(.)') expansionCount = 0 one = decimal.De...
[ "import sys\n", "import random\n", "import time\n", "import re\n", "import decimal\n", "import optparse\n", "import copy\n", "import collections\n", "import html\n", "\n", "# import pdb\n", "\n", "import gmpy2\n", "import yaml\n", "from tr import tr\n", "\n", "sep = re.compile('[^0-9...
[ 0, 0, 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.030303030303030304, 0.08333333333333333, 0.043478260869565216, 0.015384615384615385, 0.05, 0.037037037037037035, 0.030303030303030304, 0.045454545454545456, 0.028571...
1,211
0.048772
false
import discord import asyncio from sigma.core.utils import user_avatar from .init_clock import init_clock async def play(cmd, message, args): if args: task = cmd.bot.plugin_manager.commands['queue'].call(message, args) cmd.bot.loop.create_task(task) if message.guild.id in cmd.music.voices...
[ "import discord\n", "import asyncio\n", "from sigma.core.utils import user_avatar\n", "from .init_clock import init_clock\n", "\n", "\n", "async def play(cmd, message, args):\n", " if args:\n", " task = cmd.bot.plugin_manager.commands['queue'].call(message, args)\n", " cmd.bot.loo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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.008771929824561403, 0, 0, 0, 0, 0.009523809523809525, 0, 0, 0, ...
89
0.001829
false
#-*- coding:utf-8 -*- """ This file is part of the Mousetrap plug-ins for OpenSesame. """ from libopensesame.py3compat import * from libopensesame.exceptions import osexception from openexp.mouse import mouse # Define class for the MouseTracking response class MT_response(object): """Python class for collecting mo...
[ "#-*- coding:utf-8 -*-\n", "\"\"\"\n", "This file is part of the Mousetrap plug-ins for OpenSesame.\n", "\"\"\"\n", "\n", "from libopensesame.py3compat import *\n", "\n", "from libopensesame.exceptions import osexception\n", "from openexp.mouse import mouse\n", "\n", "# Define class for the Mous...
[ 0.045454545454545456, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.037037037037037035, 0.014285714285714285, 1, 0.016666666666666666, 0.6666666666666666, 0.027777777777777776, 0.6666666666666666, 0.02857142857142857, 0.015384615384615385, 0.06666666666666667, 0.6666666666666666, 0.125...
310
0.114412
false
## # @package civilsage.views # This module contain functions to controls veiws of django. # It include following functions -: # index() # file() # ... # @author amarjeet kapoor # @code importing modules import os,threading from django.http import HttpResponse from django.shortcuts import render import csv,datetime f...
[ "##\n", "# @package civilsage.views\n", "# This module contain functions to controls veiws of django.\n", "# It include following functions -:\n", "# index()\n", "# file()\n", "# ...\n", "# @author amarjeet kapoor\n", "\n", "# @code importing modules\n", "import os,threading\n", "from django.h...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.1, 0, 0, 0.1, 0, 0, 0.05, 0.02127659574468085, 0, 0.05263157894736842, 0.03125, 0.02857142857142857, 0.0136986301369863, 0.03225806451612903, 0.029411764705882353, 0, 0.038461538461538464, 0.0425531914893617, 0.04166666666666666...
52
0.03766
false
#!/usr/bin/env python # -*- coding: utf-8 -*- import win32serviceutil import win32service import win32event import servicemanager import time import logging import sys, os, time, types import winerror # # # # # # Configuração do LOG # # logging.basicConfig( filename = 'c:\\OpenEMM\\logs\\o...
[ "#!/usr/bin/env python\r\n", "# -*- coding: utf-8 -*-\r\n", "\r\n", "import win32serviceutil\r\n", "import win32service\r\n", "import win32event\r\n", "import servicemanager\r\n", "import time\r\n", "import logging\r\n", "import\tsys, os, time, types\r\n", "import winerror\r\n", "#\r\n", "#...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.034482758620689655, 0.058823529411764705, 0, 0, 0, 0, 0, 0.25, 0, 0, 0, 0, 0.03508771929824561, 0.10714285714285714, 0.028985507246376812, 0.15625, 0, 0, 0, 0.012345679012345678, 0.012658227848101266, 0.01818181818181818, 0.0...
434
0.078299
false
import xbmcaddon import xbmcgui import logging import threading import socket import time import random import sys from resources.lib.limitlessbridge import * from resources.lib.limitlesslight import * from resources.lib.limitlessscene import * from resources.lib import utils from service import SCENES addon = xb...
[ "import xbmcaddon\n", "import xbmcgui\n", "import logging\n", "import threading\n", "import socket\n", "import time\n", "import random\n", "import sys\n", "from resources.lib.limitlessbridge import *\n", "from resources.lib.limitlesslight import *\n", "from resources.lib.limitlessscene import *\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.03333333333333333, 0.024390243902439025, 0, 0.05, 0.029411764705882353, 0, 0.021052631578947368, 0.04, 0.1, 0, 0.024390243902439025, 0, 0.023255813953488372, 0.02197802197802198, 0.07865168539325842, 0.0078125, 0...
96
0.018927
false
# coding:utf-8 # Name: ycpy # Author: LYC # Created: 2014-03-19 import sys import StringIO import random class YCTools(object): """提供API以及安全机制""" @classmethod def raw_input(cls, msg): """替换默认raw_input以应用stdin""" #sys.stdout.write(msg) txt = sys.stdin.readline() return txt[...
[ "# coding:utf-8\n", "# Name: ycpy\n", "# Author: LYC\n", "# Created: 2014-03-19\n", "\n", "import sys\n", "import StringIO\n", "import random\n", "\n", "class YCTools(object):\n", " \"\"\"提供API以及安全机制\"\"\"\n", " @classmethod\n", " def raw_input(cls, msg):\n", " \"\"\"替换默认ra...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.043478260869565216, 0, 0, 0, 0, 0.03225806451612903, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.041666666666666664, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.08235294117647059, 0, 0, 0, 0, 0.0714285714...
155
0.006278
false
from engine import Global; from engine.Element import Element; from gameplay.behaviours.characterBehaviour import *; from engine.render.image import Image; from engine.render.sprite import Sprite; from engine import Render; from gameplay.ActionDispatcher import ActionDispatcher; from gameplay.ActionReceiver import Act...
[ "from engine import Global;\n", "from engine.Element import Element;\n", "from gameplay.behaviours.characterBehaviour import *;\n", "from engine.render.image import Image;\n", "from engine.render.sprite import Sprite;\n", "from engine import Render;\n", "from gameplay.ActionDispatcher import ActionDispa...
[ 0.037037037037037035, 0.027777777777777776, 0.018518518518518517, 0.02564102564102564, 0.024390243902439025, 0.037037037037037035, 0.017857142857142856, 0.019230769230769232, 0.02040816326530612, 0.02040816326530612, 0.07692307692307693, 0, 0, 0, 0, 0, 0, 0.038461538461538464, 0,...
183
0.011465
false
import clr, sys import random import time import datetime 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.Tianj...
[ "import clr, sys\r\n", "import random\r\n", "import time\r\n", "import datetime\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.AddRe...
[ 0.058823529411764705, 0, 0, 0, 0.02127659574468085, 0.025, 0.022222222222222223, 0.020833333333333332, 0.021739130434782608, 0.02127659574468085, 0.018867924528301886, 0, 0.043478260869565216, 0.045454545454545456, 0.045454545454545456, 0.023809523809523808, 0.022727272727272728, 0...
203
0.017331
false
# -*- coding: utf-8 -*- from Plugins.Extensions.MediaPortal.plugin import _ from Plugins.Extensions.MediaPortal.resources.imports import * class dachixGenreScreen(MPScreen): def __init__(self, session): self.plugin_path = mp_globals.pluginPath self.skin_path = mp_globals.pluginPath + mp_globals.skinsPath path...
[ "# -*- coding: utf-8 -*-\n", "from Plugins.Extensions.MediaPortal.plugin import _\n", "from Plugins.Extensions.MediaPortal.resources.imports import *\n", "\n", "class dachixGenreScreen(MPScreen):\n", "\n", "\tdef __init__(self, session):\n", "\t\tself.plugin_path = mp_globals.pluginPath\n", "\t\tsel...
[ 0, 0, 0, 0, 0.02857142857142857, 0, 0.03333333333333333, 0.023255813953488372, 0.015625, 0.021052631578947368, 0.037037037037037035, 0.023809523809523808, 0.034482758620689655, 0.041666666666666664, 0.07692307692307693, 0, 0, 0.041666666666666664, 0.09090909090909091, 0.0833333...
168
0.035088
false
# -*- coding: utf-8 -*- from django.contrib import admin from portal.event_calendar.models import Events, EventType, Rules, GroupBikeType, BikeType, RegEvent, ResultEvent, EventDistance, EventDistCheckPoint, CheckPointEvent class EventTypeAdmin(admin.ModelAdmin): list_display = ('description', 'name' ) orde...
[ "# -*- coding: utf-8 -*-\n", "\n", "from django.contrib import admin\n", "from portal.event_calendar.models import Events, EventType, Rules, GroupBikeType, BikeType, RegEvent, ResultEvent, EventDistance, EventDistCheckPoint, CheckPointEvent\n", "\n", "\n", "class EventTypeAdmin(admin.ModelAdmin):\n", ...
[ 0, 0, 0, 0.005988023952095809, 0, 0, 0, 0.022727272727272728, 0, 0, 0, 0, 0, 0.014084507042253521, 0.02564102564102564, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.022727272727272728, 0, 0, 0.02, 0, 0, 0.02...
57
0.002634
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...
192
0.028436
false
#!/usr/bin/env python # -*- coding: utf-8 -*- """ wxgame server 게임 서버용으로 수정, wxpython code를 제거 """ import time import multiprocessing import random import socket import select try: import simplejson as json except: import json import logging import argparse import multiprocessing.queues import cPickle as pick...
[ "#!/usr/bin/env python\n", "# -*- coding: utf-8 -*-\n", "\n", "\"\"\" wxgame server\n", "게임 서버용으로 수정, wxpython code를 제거\n", "\"\"\"\n", "import time\n", "import multiprocessing\n", "import random\n", "import socket\n", "import select\n", "try:\n", " import simplejson as json\n", "except...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.125, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
767
0.000474
false
#!/usr/bin/python """ A simple class that downloads and stores tweets from Croatia to a file Copyright (C) 2012./2013. Aleksandar Gavrilovic / FER 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 Softwar...
[ "#!/usr/bin/python\n", "\n", "\"\"\" A simple class that downloads and stores tweets from Croatia to a file\n", " Copyright (C) 2012./2013. Aleksandar Gavrilovic / FER\n", "\n", " This program is free software: you can redistribute it and/or modify\n", " it under the terms of the GNU General Pu...
[ 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.043478260869565216, 0.1111111111111111, 0.017241379310344827, 0, 0, 0, 0.041666666666666664, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.058823529411764705, 0.0188...
70
0.012449
false
#!/usr/bin/python import time import os from mutagen.easyid3 import EasyID3 from mutagen.mp3 import MP3 import mysql.connector from mysql.connector import errorcode import sys import urllib # artist # album # track name # track number # year # genre # file location IP/music/*artist*/*album*/*song* # full pat...
[ "#!/usr/bin/python\n", "\n", "import time\n", "import os\n", "from mutagen.easyid3 import EasyID3\n", "from mutagen.mp3 import MP3\n", "import mysql.connector\n", "from mysql.connector import errorcode\n", "import sys\n", "import urllib\n", "\n", "# artist\n", "# album\n", "# track name\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.010752688172043012, 0, 0, 0.02564102564102564, 0, 0, 0, 0, 0, 0, 0, 0, 0.2, 0, 0, 0, 0, 0, 0, 0, 0, 0.08333333333333333, 0, 0, 0, 0.0084745...
223
0.006589
false
#!/usr/bin/env python # coding:utf-8 """PSP Program 4A - Linear Regression Parameter """ __author__ = "Mariano Reingart (reingart@gmail.com)" __copyright__ = "Copyright (C) 2011 Mariano Reingart" __license__ = "GPL 3.0" def mean(values): """Calculate the average of the numbers given: >>> mean([1, 2, 3...
[ "#!/usr/bin/env python\n", "# coding:utf-8\n", "\n", "\"\"\"PSP Program 4A - Linear Regression Parameter\n", "\"\"\"\n", "\n", "__author__ = \"Mariano Reingart (reingart@gmail.com)\"\n", "__copyright__ = \"Copyright (C) 2011 Mariano Reingart\"\n", "__license__ = \"GPL 3.0\"\n", "\n", "\n", "de...
[ 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
73
0.00274
false
#! coding:utf-8 """ Definition of models. """ from django.db import models from django.contrib.auth.models import User # Create your models here. class GC(models.Model): gcno = models.CharField(u"项目编号", max_length=18) name = models.CharField(u"项目名称", max_length=100) builder = models.CharField(u"施工单位", ma...
[ "#! coding:utf-8\n", "\"\"\"\n", "Definition of models.\n", "\"\"\"\n", "\n", "from django.db import models\n", "from django.contrib.auth.models import User\n", "\n", "# Create your models here.\n", "class GC(models.Model):\n", " gcno = models.CharField(u\"项目编号\", max_length=18)\n", " na...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.041666666666666664, 0, 0, 0, 0, 0.01694915254237288, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.038461538461538464, 0.07142857142857142, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.03571428571428571, 0, 0.041666666666666664, ...
223
0.003769
false
#------------------------------------------------------------ # -*- coding: utf-8 -*- #------------------------------------------------------------ # Download Tools # Based on the code from VideoMonkey XBMC Plugin #------------------------------------------------------------ # pelisalacarta # http://blog.tvalacarta.in...
[ "#------------------------------------------------------------\n", "# -*- coding: utf-8 -*-\n", "#------------------------------------------------------------\n", "# Download Tools\n", "# Based on the code from VideoMonkey XBMC Plugin\n", "#------------------------------------------------------------\n", ...
[ 0.016129032258064516, 0, 0.016129032258064516, 0, 0, 0.016129032258064516, 0, 0, 0.016129032258064516, 0, 0, 0, 0, 0, 0.016129032258064516, 0, 0.016129032258064516, 0, 0.0967741935483871, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.02857142857142857,...
1,231
0.018059
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 myvideoTop100GenreScreen(MPScreen): def __init__(self, session): self.plugin_path = mp_glob...
[ "# -*- 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 myvideoTop100GenreScreen(MPScreen):\n", "\n", "\tdef ...
[ 0, 0, 0, 0, 0, 0.023809523809523808, 0, 0.03333333333333333, 0, 0.023255813953488372, 0.015625, 0, 0.022222222222222223, 0.037037037037037035, 0.012658227848101266, 0, 0.034482758620689655, 0.041666666666666664, 0.07692307692307693, 0, 0, 0.041666666666666664, 0.08, 0.0...
150
0.029235
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.01282051282051282, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.010638297872340425, 0, 0, 0.010101010101010102,...
142
0.001107
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, 0, 0.012195121951219513, 0, 0.020833333333333332, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.011111111111111112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
200
0.000796
false
#!/usr/bin/python #-*- coding: utf-8 -*- ''' file : import IOOperations ''' import io ''' Класс для работы с вводом-высодом''' class IOController: _fwr = None _fwr_ic = None def __init__(self): # Вычислительная часть try: self._fwr = io.open('logs/code.log', 'w', encoding='utf-8') self._fwr_ic = io.op...
[ "#!/usr/bin/python\n", "#-*- coding: utf-8 -*-\n", "''' \n", " file : import IOOperations\n", "'''\n", "import io\n", "\n", "''' Класс для работы с вводом-высодом'''\n", "class IOController:\n", "\t_fwr = None\n", "\t_fwr_ic = None\n", "\tdef __init__(self):\n", "\t\t# Вычислительная часть\...
[ 0, 0.043478260869565216, 0.2, 0, 0, 0, 0, 0, 0.05, 0.15384615384615385, 0.0625, 0.09523809523809523, 0.04, 0.14285714285714285, 0.015873015873015872, 0.014925373134328358, 0.05555555555555555, 0.038461538461538464, 0.5, 0.05263157894736842, 0.05, 0.05, 0.04347826086956521...
72
0.136416
false
# -*- coding: utf-8 -*- # ------------------------------------------------------------ # pelisalacarta - XBMC Plugin # http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/ # ------------------------------------------------------------ import re import urlparse from channelselector import get_thumbnail_path from cor...
[ "# -*- coding: utf-8 -*-\n", "# ------------------------------------------------------------\n", "# pelisalacarta - XBMC Plugin\n", "# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/\n", "# ------------------------------------------------------------\n", "import re\n", "import urlparse\n", "\n"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.041666666666666664, 0.03225806451612903, 0.05714285714285714, 0.05405405405405406, 0, 0, 0, 0, 0, 0, 0.016666666666666666, 0, 0, 0.01775147928994083, 0.02127659574468085, 0.026490066225165563, ...
172
0.022596
false
 class Columnar: def Analyse(self, plainText: str, cipherText: str) -> list: raise NotImplementedError def Decrypt(self, cipherText: str, key: list) -> str: """ `key` is list of int """ #raise NotImplementedError plainText = [] plainText...
[ "\r\n", "\r\n", "class Columnar:\r\n", " def Analyse(self, plainText: str, cipherText: str) -> list:\r\n", " raise NotImplementedError\r\n", "\r\n", " def Decrypt(self, cipherText: str, key: list) -> str:\r\n", " \"\"\"\r\n", " `key` is list of int\r\n", " \"\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.027777777777777776, 0, 0, 0, 0, 0, 0, 0.011904761904761904, 0, 0, 0, 0, 0, 0, 0, 0, 0.02857142857142857, 0, 0, 0, 0, 0, 0.027777777777777776, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.04166666666666...
47
0.003303
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, 0, 0, 0.023809523809523808, 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, ...
809
0.00148
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.012048192771084338, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.012048192771084338 ]
45
0.001116
false
#!/usr/bin/env python # # VMEncryption extension # # Copyright 2015 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 #...
[ "#!/usr/bin/env python\n", "#\n", "# VMEncryption extension\n", "#\n", "# Copyright 2015 Microsoft 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", "# You may obtain a copy of the L...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.03225806451612903, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.04040404040404041, 0.021739130434782608, 0.019230769230769232, 0.02247191011235955, 0.0243902...
46
0.004059
false
""" XVM (c) www.modxvm.com 2013-2017 """ import time from gui import SystemMessages from gui.shared import g_eventBus, events from xfw import * from consts import * import config from logger import * import utils from xvm import l10n def tokenUpdated(): type = SystemMessages.SM_TYPE.Warning msg = _getXvm...
[ "\"\"\" XVM (c) www.modxvm.com 2013-2017 \"\"\"\n", "\n", "import time\n", "\n", "from gui import SystemMessages\n", "from gui.shared import g_eventBus, events\n", "\n", "from xfw import *\n", "\n", "from consts import *\n", "import config\n", "from logger import *\n", "import utils\n", "f...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.01020408163265306, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.009900990099009901, 0, 0, 0, 0, 0, 0.04081632653061224, 0, 0, 0, 0, 0, 0, 0, 0...
112
0.002143
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, 0, 0.037037037037037035, 0, 0, 0.038461538461538464, 0, 0, 0.038461538461538464, 0, 0, 0.043478260869565216, 0 ]
37
0.004255
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.02702702702702703, 0, 0.0125, 0.023809523809523808, 0.013513513513513514, 0, 0, 0, 0, 0, 0, 0.011904761904761904, 0, 0, ...
671
0.005726
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
439
0.000039
false
#!/usr/bin/env python from __future__ import absolute_import, division, print_function import concurrent.futures import contextlib from enum import Enum import errno import io import logging import logging.handlers import os import platform import stat import sys import threading import traceback import urllib.parse...
[ "#!/usr/bin/env python\n", "from __future__ import absolute_import, division, print_function\n", "\n", "import concurrent.futures\n", "import contextlib\n", "from enum import Enum\n", "import errno\n", "import io\n", "import logging\n", "import logging.handlers\n", "import os\n", "import platf...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.07142857142857142, 0.024390243902439025, 0, 0, 0, 0.037037037037037035, 0, 0.009615384615384616, 0, 0, 0, 0...
620
0.004621
false
import theano.tensor as t from numpy.random import RandomState from time import time def __addDefaults (param, default, size) : return [default] * size if len(param) == 0 else param def __verifyLengths (param, ref, paramName, refName) : if len(param) != len(ref) : raise ValueError('Different number o...
[ "import theano.tensor as t\n", "from numpy.random import RandomState\n", "from time import time\n", "\n", "def __addDefaults (param, default, size) :\n", " return [default] * size if len(param) == 0 else param\n", "\n", "def __verifyLengths (param, ref, paramName, refName) :\n", " if len(param...
[ 0, 0, 0, 0, 0.06976744186046512, 0, 0, 0.05454545454545454, 0.03125, 0.014084507042253521, 0, 0, 0.05660377358490566, 0, 0, 0, 0, 0, 0.0196078431372549, 0.022222222222222223, 0.02040816326530612, 0.01818181818181818, 0.01818181818181818, 0, 0, 0, 0, 0, 0, 0,...
135
0.007973
false
import socket from Interpreter.main import Interpreter class networking_Connection: def __init__(self, theLog): self.__networkLog = theLog self.__clientIP = "" self.__aktiv = True try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bin...
[ "import socket\r\n", "from Interpreter.main import Interpreter\r\n", "\r\n", "\r\n", "class networking_Connection:\r\n", " def __init__(self, theLog):\r\n", " self.__networkLog = theLog\r\n", " self.__clientIP = \"\"\r\n", " self.__aktiv = True\r\n", "\r\n", " try:...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.006369426751592357, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0.010416666666666666, 0, 0, ...
80
0.000744
false
def iter_hanoi(src, target, hold, size): if size > 1: for x in iter_hanoi(src, hold, target, size-1): yield x yield (src, target) if size > 1: for x in iter_hanoi(hold, target, src, size-1): yield x def iter_hanoi_state(src, target, hold, size): def copy(state): return {k: list...
[ "def iter_hanoi(src, target, hold, size):\n", " if size > 1:\n", " for x in iter_hanoi(src, hold, target, size-1): yield x\n", " yield (src, target)\n", " if size > 1:\n", " for x in iter_hanoi(hold, target, src, size-1): yield x\n", "\n", "def iter_hanoi_state(src, target, hold...
[ 0, 0, 0.015625, 0, 0, 0.015625, 0, 0.02127659574468085, 0, 0.017543859649122806, 0.03125, 0, 0, 0, 0, 0, 0, 0.02127659574468085, 0.02127659574468085, 0.2, 0.045454545454545456, 0, 0, 0, 0, 0, 0, 0, 0, 0.007518796992481203, 0.017543859649122806, 0, 0, ...
65
0.015197
false
#------------------------------------------------------------------------------ # # Copyright (c) Microsoft Corporation. # All rights reserved. # # This code is licensed under the MIT License. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated ...
[ "#------------------------------------------------------------------------------\r\n", "#\r\n", "# Copyright (c) Microsoft Corporation. \r\n", "# All rights reserved.\r\n", "# \r\n", "# This code is licensed under the MIT License.\r\n", "# \r\n", "# Permission is hereby granted, free of charge, to any...
[ 0.012345679012345678, 0, 0.024390243902439025, 0, 0.25, 0, 0.25, 0, 0, 0, 0, 0, 0, 0.25, 0, 0, 0.25, 0, 0, 0, 0, 0, 0, 0, 0, 0.012345679012345678, 0, 0, 0, 0, 0, 0, 0.02631578947368421, 0.029850746268656716, 0, 0, 0, 0, 0, 0, 0.02777777...
165
0.008039
false
#!/usr/bin/python import sys import os import subprocess ''' ''' def get_args(): import argparse p = argparse.ArgumentParser(description='Geotag one or more photos with location and orientation from GPX file.') p.add_argument('path', help='Path containing JPG files, or location of one JPG file.'...
[ "#!/usr/bin/python\n", "\n", "import sys\n", "import os\n", "import subprocess\n", "\n", "\n", "\n", "\n", "\n", "'''\n", "\n", "\n", "'''\n", "\n", "\n", "\n", "def get_args():\n", " import argparse\n", " p = argparse.ArgumentParser(description='Geotag one or more photos...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.25, 0, 0, 0, 0, 0, 0, 0.0625, 0, 0.00847457627118644, 0.01098901098901099, 0, 0, 0, 0.02564102564102564, 0, 0, 0, 0, 0, 0, 0, 0.005917159763313609, 0, 0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.037037037037037035,...
71
0.029373
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, 0.047619047619047616, 0.037037037037037035, 0.02631578947368421, 0.03125, 0.02564102564102564, 0.029411764705882353, 0.02702702702702703, 0.02127659574468085, 0.0...
186
0.005222
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0125, 0, 0.0125, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
825
0.000398
false
 # generate vcxproj file from os.path import normpath, join, split, relpath from enum import IntEnum class Project_Type(IntEnum): APP = 0 LIB = 1 DLL = 2 app_ext = ('.exe', '.lib', '.dll') app_str = ('Application', 'StaticLibrary', 'DynamicLibrary') def vcx_proj_cfg(plat, outf): f1 = r''' <ItemGroup Labe...
[ "\n", "# generate vcxproj file\n", "\n", "from os.path import normpath, join, split, relpath\n", "from enum import IntEnum\n", "\n", "class Project_Type(IntEnum):\n", " APP = 0\n", " LIB = 1\n", " DLL = 2\n", "\n", "app_ext = ('.exe', '.lib', '.dll')\n", "app_str = ('Application', 'Static...
[ 0, 0, 0, 0, 0, 0, 0.034482758620689655, 0.1, 0.1, 0.1, 0, 0.02857142857142857, 0, 0, 0.03333333333333333, 0, 0.01818181818181818, 0, 0.016666666666666666, 0, 0, 0, 0, 0.038461538461538464, 0, 0.058823529411764705, 0.05555555555555555, 0, 0.02631578947368421, ...
278
0.018456
false
from eventregistry import * import time er = EventRegistry() # # this is a simple script that makes a query to ER to get the feed of events that were added or # updated in the last minute. # The script has to be called exactly once a minute to get all updated events # recentQ = GetRecentEvents(er) starttime = time....
[ "from eventregistry import *\n", "import time\n", "\n", "er = EventRegistry()\n", "\n", "#\n", "# this is a simple script that makes a query to ER to get the feed of events that were added or\n", "# updated in the last minute.\n", "# The script has to be called exactly once a minute to get all updat...
[ 0, 0, 0, 0, 0, 0, 0.010416666666666666, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.011494252873563218, 0, 0.011627906976744186, 0, 0, 0.008403361344537815, 0, 0, 0, 0.007352941176470588, 0.011764705882352941, 0, 0, 0, 0.0064516129032258064, 0, 0, 0, 0, 0, 0,...
75
0.011709
false
# -*- coding: utf-8 -*- import Queue import threading from Screens.InfoBarGenerics import * from Plugins.Extensions.MediaPortal.plugin import _ from Plugins.Extensions.MediaPortal.resources.imports import * from Plugins.Extensions.MediaPortal.resources.keyboardext import VirtualKeyBoardExt from Plugins.Extensions.Med...
[ "# -*- coding: utf-8 -*-\n", "\n", "import Queue\n", "import threading\n", "from Screens.InfoBarGenerics import *\n", "from Plugins.Extensions.MediaPortal.plugin import _\n", "from Plugins.Extensions.MediaPortal.resources.imports import *\n", "from Plugins.Extensions.MediaPortal.resources.keyboardext ...
[ 0, 0, 0, 0, 0, 0, 0, 0.011904761904761904, 0, 0.012195121951219513, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.03571428571428571, 0.034482758620689655, 0, 0, 0.015873015873015872, 0.0625, 0.016129032258064516, 0.019230769230769232, 0, 0, 0.019230769230769232, 0, 0, ...
632
0.035405
false
# This file is part of PlexPy. # # PlexPy 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. # # PlexPy is distributed in the hope t...
[ "# This file is part of PlexPy.\n", "#\n", "# PlexPy 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 version.\n...
[ 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, 0, 0, 0, 0, 0, 0, 0.016666666666666666, 0, 0, 0, 0.012048192771084338, 0, 0, 0, 0, 0, ...
424
0.002798
false
import discord async def byechannel(cmd, message, args): if not message.author.permissions_in(message.channel).manage_guild: response = discord.Embed(title='⛔ Access Denied. Manage Server needed.', color=0xBE1931) else: if message.channel_mentions: target_channel = message.channel...
[ "import discord\n", "\n", "\n", "async def byechannel(cmd, message, args):\n", " if not message.author.permissions_in(message.channel).manage_guild:\n", " response = discord.Embed(title='⛔ Access Denied. Manage Server needed.', color=0xBE1931)\n", " else:\n", " if message.channel_m...
[ 0, 0, 0, 0, 0, 0.010309278350515464, 0, 0, 0, 0, 0, 0.008771929824561403, 0, 0, 0, 0, 0.010752688172043012, 0.00847457627118644, 0, 0.01, 0, 0.011764705882352941, 0 ]
23
0.002612
false
"""A partial implementation of Love Live School Idol Festival client. This is a partial implementation of the game client of Love Live School Idol Festival, specifically the Japanese Android edition. The implementation covers registering new accounts, issuing and using transfer codes, logging in to existing ac...
[ "\"\"\"A partial implementation of Love Live School Idol Festival client.\r\n", "\r\n", "This is a partial implementation of the game client of Love Live School Idol\r\n", "Festival, specifically the Japanese Android edition. The \r\n", "implementation covers registering new accounts, issuing and using tran...
[ 0, 0, 0, 0.01694915254237288, 0.012987012987012988, 0.013157894736842105, 0, 0, 0.012658227848101266, 0.012987012987012988, 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, ...
1,201
0.02826
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.011494252873563218, ...
70
0.000538
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.008695652173913044, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
150
0.003747
false
# -*- coding: utf-8 -*- from imports import * import base64 Sbox = [ 0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x01,0x67,0x2b,0xfe,0xd7,0xab,0x76, 0xca,0x82,0xc9,0x7d,0xfa,0x59,0x47,0xf0,0xad,0xd4,0xa2,0xaf,0x9c,0xa4,0x72,0xc0, 0xb7,0xfd,0x93,0x26,0x36,0x3f,0xf7,0xcc,0x34,0xa5,0xe5,0xf1,0x71,0xd8,0x31,0x15, 0x...
[ "# -*- coding: utf-8 -*-\n", "from imports import *\n", "import base64\n", "\n", "Sbox = [\n", "\t0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x01,0x67,0x2b,0xfe,0xd7,0xab,0x76,\n", "\t0xca,0x82,0xc9,0x7d,0xfa,0x59,0x47,0xf0,0xad,0xd4,0xa2,0xaf,0x9c,0xa4,0x72,0xc0,\n", "\t0xb7,0xfd,0x93,0x26,0x36,0x3...
[ 0, 0, 0, 0, 0, 0.2073170731707317, 0.2073170731707317, 0.2073170731707317, 0.2073170731707317, 0.2073170731707317, 0.2073170731707317, 0.2073170731707317, 0.2073170731707317, 0.2073170731707317, 0.2073170731707317, 0.2073170731707317, 0.2073170731707317, 0.2073170731707317, 0.207...
219
0.051212
false
# -*- coding: utf-8 -*- ############### ## CONSTANTS ## # munimadrid.es # live feed URL in munimadrid.es. All probes are listed together (thank god for that) # MUNIMADRID_DOT_ES_PROBE_URL = \ 'http://www.mambiente.munimadrid.es/opencms/opencms/calaire/consulta/Gases_y_particulas/informegaseshorarios.html' MU...
[ "# -*- coding: utf-8 -*-\n", "\n", "###############\n", "## CONSTANTS ##\n", "\n", "# munimadrid.es\n", "# live feed URL in munimadrid.es. All probes are listed together (thank god for that)\n", "#\n", "MUNIMADRID_DOT_ES_PROBE_URL = \\\n", " 'http://www.mambiente.munimadrid.es/opencms/openc...
[ 0, 0, 0, 0.0625, 0, 0, 0.011111111111111112, 0, 0, 0.008403361344537815, 0.01639344262295082, 0.017241379310344827, 0.019230769230769232, 0.03636363636363636, 0.017241379310344827, 0.017543859649122806, 0.03508771929824561, 0.03571428571428571, 0.03333333333333333, 0.0333333333...
396
0.01458
false
#!/usr/bin/env python ipop_ver = "\x03" tincan_control = "\x01" tincan_packet = "\x02" icc_control = "\x03" icc_packet = "\x04" icc_mac_control = "\x00\x69\x70\x6f\x70\x03" icc_mac_packet = "\x00\x69\x70\x6f\x70\x04" icc_ethernet_padding = "\x00\x00\x00\x00\x00\x00\x00\x00" def ip6_a2b(str_ip6): return "".join(x...
[ "#!/usr/bin/env python\n", "\n", "ipop_ver = \"\\x03\"\n", "tincan_control = \"\\x01\"\n", "tincan_packet = \"\\x02\"\n", "icc_control = \"\\x03\"\n", "icc_packet = \"\\x04\"\n", "icc_mac_control = \"\\x00\\x69\\x70\\x6f\\x70\\x03\"\n", "icc_mac_packet = \"\\x00\\x69\\x70\\x6f\\x70\\x04\"\n", "icc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.045454545454545456, 0, 0, 0.045454545454545456, 0.012345679012345678, 0, 0, 0, 0, 0, 0, 0.045454545454545456, 0, 0, 0, 0.045454545454545456, 0, 0, 0.045454545454545456, 0, 0, 0, 0.045454545454545456, 0, 0, 0.0...
59
0.005565
false
#!/usr/bin/env python # -*- coding: utf-8 -*- # python lib from multiprocessing.pool import ThreadPool # core include lib from scrapy import log from scrapy.http import Request from scrapy.spider import Spider # project lib from wolf.items import WolfItem from wolf.spiders.wolves import get_wolves # return tuple(w...
[ "#!/usr/bin/env python\n", "# -*- coding: utf-8 -*-\n", "\n", "# python lib\n", "from multiprocessing.pool import ThreadPool\n", "\n", "# core include lib\n", "from scrapy import log\n", "from scrapy.http import Request\n", "from scrapy.spider import Spider\n", "\n", "# project lib\n", "from...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.023809523809523808, 0, 0, 0.013333333333333334, 0, 0, 0, 0, 0.036585365853658534, 0.2, 0, 0.03225806451612903, 0.0125, 0, 0, 0, 0, 0, 0, 0.045454545454545456, 0, 0.2, 0, 0, 0.11111111111...
74
0.018658
false
"""nyanfaucet URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
[ "\"\"\"nyanfaucet URL Configuration\n", "\n", "The `urlpatterns` list routes URLs to views. For more information please see:\n", " https://docs.djangoproject.com/en/1.8/topics/http/urls/\n", "Examples:\n", "Function views\n", " 1. Add an import: from my_app import views\n", " 2. Add a URL to...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.3333333333333333, 0, 0.3333333333333333, 0, 0, 0, 0.010101010101010102, 0, 0, 0, 0, 0, 0.3333333333333333, 0 ]
36
0.028058
false
#! /usr/bin/python # -*- coding: utf-8 -*- # # Vladimír Slávik 2010 # Python 2.6 # # for Simutrans # http://www.simutrans.com # # code is public domain # # read all dat files in all subfolders # find all references to images # compare with actual images present # output what is used and what not #----- import...
[ "#! /usr/bin/python\n", "# -*- coding: utf-8 -*-\n", "#\n", "# Vladimír Slávik 2010\n", "# Python 2.6\n", "#\n", "# for Simutrans\n", "# http://www.simutrans.com\n", "#\n", "# code is public domain\n", "#\n", "\n", "# read all dat files in all subfolders\n", "# find all references to...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.14285714285714285, 0, 0, 0, 0, 0, 0, 0, 0, 0.14285714285714285, 0, 0, 0, 0, 0.14285714285714285, 0, 0, 0.02127659574468085, 0.01282051282051282, 0, 0, 0, 0, 0.14285714285714285, 0, ...
115
0.090047
false
import wc_util from wc_daum import category as daum_category from wc_daum import daum_crawler from wc_naver import category as naver_category from wc_naver import naver_crawler from wc_nate import nate_crawler # put (category, titleId) tuple of Naver webtoons # titleId can be obtained from the URL of the webtoon li...
[ "import wc_util\n", "\n", "from wc_daum import category as daum_category\n", "from wc_daum import daum_crawler\n", "from wc_naver import category as naver_category\n", "from wc_naver import naver_crawler\n", "from wc_nate import nate_crawler\n", "\n", "\n", "# put (category, titleId) tuple of Nave...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.02702702702702703, 0.02702702702702703, 0.023809523809523808, 0.023809523809523808, 0.02857142857142857, 0.02857142857142857, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.030303030303030304, 0.030303030303030304, 0.02941176470...
58
0.017605
false
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2013-2014 CodUP (<http://codup.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU ...
[ "# -*- coding: utf-8 -*-\n", "##############################################################################\n", "#\n", "# OpenERP, Open Source Management Solution\n", "# Copyright (C) 2013-2014 CodUP (<http://codup.com>).\n", "#\n", "# This program is free software: you can redistribute 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, 0.038461538461538464, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.01, 0, 0, 0, 0, 0, 0, 0, ...
483
0.004005
false
# -*- coding: utf-8 -*- import viz import vizdlg import vizact import viztask class displayInfo(vizdlg.Dialog): def __init__(self,window = viz.MainWindow, mode = 'fit',fontSize = 50,textAlignment = viz.ALIGN_CENTER,border = True,background = True, padding = 5,**kw): vizdlg.Dialog.__init__(self,**kw) self...
[ "# -*- coding: utf-8 -*-\n", "\n", "import viz\n", "import vizdlg\n", "import vizact\n", "import viztask\n", "\n", "class displayInfo(vizdlg.Dialog):\n", "\n", "\tdef __init__(self,window = viz.MainWindow, mode = 'fit',fontSize = 50,textAlignment = viz.ALIGN_CENTER,border = True,background = True,...
[ 0, 0, 0, 0, 0, 0, 0, 0.029411764705882353, 0, 0.14102564102564102, 0.6666666666666666, 0.05555555555555555, 0.6666666666666666, 0.037037037037037035, 0.02702702702702703, 0.1111111111111111, 0.03333333333333333, 0.03333333333333333, 0.038461538461538464, 0.6666666666666666, 0...
132
0.209556
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.014084507042253521, 0.014285714285714285, 0, 0.016129032258064516, 0.007936507936507936, 0, 0.03636363636363636, 0.011764705882352941, 0, 0.009009009009009009, 0, 0...
47
0.003811
false
from urlparse import urlparse import urllib import httplib as http import json from QiType import QiType from QiStream import QiStream from QiStreamBehaviour import QiStreamBehaviour from QiError import QiError from JsonEncoder import Encoder import requests import time class QiClient(object): """description of c...
[ "from urlparse import urlparse\n", "import urllib\n", "import httplib as http\n", "import json\n", "from QiType import QiType\n", "from QiStream import QiStream\n", "from QiStreamBehaviour import QiStreamBehaviour\n", "from QiError import QiError\n", "from JsonEncoder import Encoder\n", "import re...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.041666666666666664, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.006711409395973154, 0, 0, 0, 0.010752688172043012, 0, 0, 0, 0, 0, 0, 0.1111111111111111, 0, 0, 0, 0, 0, 0.02631578947368421, 0.0526315...
598
0.020583
false
import discord from sigma.core.permission import check_man_roles from sigma.core.rolecheck import matching_role async def destroyrole(cmd, message, args): if not check_man_roles(message.author, message.channel): out_content = discord.Embed(type='rich', color=0xDB0000, ...
[ "import discord\n", "from sigma.core.permission import check_man_roles\n", "from sigma.core.rolecheck import matching_role\n", "\n", "\n", "async def destroyrole(cmd, message, args):\n", " if not check_man_roles(message.author, message.channel):\n", " out_content = discord.Embed(type='rich',...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0.010869565217391304, 0, 0, 0, 0.012195121951219513, 0, 0, 0, 0, 0, 0, 0.012195121951219513, 0.008333333333333333, 0, 0, 0, 0, 0, 0 ]
27
0.001615
false
# -*- coding:utf-8 -*- # Copyright © 2011 Clément Schaff, Mahdi Ben Jelloul """ µSim, Logiciel libre de simulation du système socio-fiscal français Copyright © 2011 Clément Schaff, Mahdi Ben Jelloul This file is part of µSim. µSim is free software: you can redistribute it and/or modify it under the terms o...
[ "# -*- coding:utf-8 -*-\n", "# Copyright © 2011 Clément Schaff, Mahdi Ben Jelloul\n", "\n", "\"\"\"\n", "µSim, Logiciel libre de simulation du système socio-fiscal français\n", "Copyright © 2011 Clément Schaff, Mahdi Ben Jelloul\n", "\n", "\n", "This file is part of µSim.\n", "\n", " µSim is ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.06666666666666667, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.02127659574468085, 0, 0, 0.03614457831325301, 0, 0....
131
0.004034
false
#!/usr/bin/python # -*- coding: utf-8 -*- ''' # # # module: addons.001_sql_constraints.ql_constraints # # @author: zhouqiang <alangwansui AT gmail.com> # @Created on: 2011-11-26 - 下午5:02:23 # @Description: when add new call, dont forget to add depends in openerp # ''' from osv import fields, osv from osv import osv...
[ "#!/usr/bin/python\n", "# -*- coding: utf-8 -*-\n", "\n", "'''\n", "#\n", "#\n", "# module: addons.001_sql_constraints.ql_constraints\n", "#\n", "# @author: zhouqiang <alangwansui AT gmail.com>\n", "# @Created on: 2011-11-26 - 下午5:02:23\n", "# @Description: when add new call, dont forget to add...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.047619047619047616, 0, 0, 0.06060606060606061, 0, 0.07142857142857142, 0.013513513513513514, 0, 0.2, 0, 0.011627906976744186, 0, 0.1, 0, 0, 0.021739130434782608, 0.037037037037037035, 0, 0.01694915254237288, ...
93
0.032983
false
import secrets import arrow import discord from sigma.core.utilities.data_processing import user_avatar from sigma.core.utilities.server_bound_logging import log_event def generate_log_embed(message, target, warning_text, warning_id): response = discord.Embed(color=0xFFCC4D, timestamp=arrow.utcnow().datetime) ...
[ "import secrets\n", "\n", "import arrow\n", "import discord\n", "\n", "from sigma.core.utilities.data_processing import user_avatar\n", "from sigma.core.utilities.server_bound_logging import log_event\n", "\n", "\n", "def generate_log_embed(message, target, warning_text, warning_id):\n", " re...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.011627906976744186, 0, 0.009900990099009901, 0, 0, 0.009900990099009901, 0, 0.010752688172043012, 0, 0, 0, 0, 0, 0, 0.010101010101010102, 0, 0, 0, 0, 0, 0, 0, 0.011363636363636364, 0, 0, 0, 0, 0, 0, 0,...
68
0.001531
false
# -*- coding: utf-8 -*- #------------------------------------------------------------ # tvalacarta # XBMC Launcher (xbmc / xbmc-dharma / boxee) # http://blog.tvalacarta.info/plugin-xbmc/ #------------------------------------------------------------ #Imports: import urllib, urllib2 import os,sys, time import base64 fr...
[ "# -*- coding: utf-8 -*-\n", "#------------------------------------------------------------\n", "# tvalacarta\n", "# XBMC Launcher (xbmc / xbmc-dharma / boxee)\n", "# http://blog.tvalacarta.info/plugin-xbmc/\n", "#------------------------------------------------------------\n", "\n", "#Imports:\n", ...
[ 0, 0.016129032258064516, 0, 0, 0, 0.016129032258064516, 0, 0.1, 0.043478260869565216, 0.1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.011627906976744186, 0, 0.029411764705882353, 0.09090909090909091, 0, 0, 0.0625, 0, 0.01098901098901099, 0, 0...
885
0.03547
false
import json class QiStreamBehavior(object): """description of class""" def __init__(self): self.__Id = 0 self.__Name = None self.__Mode = None self.__ExtrapolationMode = None self.__Overrides = None def getId(self): return self.__Id def setId(self, Id...
[ "import json\n", "\n", "class QiStreamBehavior(object):\n", " \"\"\"description of class\"\"\"\n", "\n", " def __init__(self):\n", " self.__Id = 0\n", " self.__Name = None\n", " self.__Mode = None\n", " self.__ExtrapolationMode = None\n", " self.__Overrid...
[ 0, 0, 0.03125, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.1111111111111111, 0, 0.0...
104
0.012962
false
from typing import Dict, List, Any, Optional, Callable, Union, TypeVar, Generic import importlib from modules.utils.dal.common.dtos import metadataSrv from modules.utils.dal.common.dtos.types import Dto from modules.utils.dal.common import utils as dalUtils from modules.utils.dal.common.entities.entity import Ent...
[ "from typing import Dict, List, Any, Optional, Callable, Union, TypeVar, Generic\r\n", "import importlib\r\n", "from modules.utils.dal.common.dtos import metadataSrv\r\n", "from modules.utils.dal.common.dtos.types import Dto\r\n", "from modules.utils.dal.common import utils as dalUtils\r\n", "from modules...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.05555555555555555, 0, 0.008771929824561403, 0, 0, 0, 0.024390243902439025, 0, 0, 0.00819672131147541, 0.0064516129032258064, 0, 0, 0.008547008547008548, 0.006711409395973154, 0, 0, 0.008130081300813009, 0.007575757575757576, 0...
114
0.002451
false
#!/usr/bin/python -tt # # This file is part of BRAT. # # BRAT 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. # # BRAT...
[ "#!/usr/bin/python -tt\n", "#\n", "# This file is part of BRAT.\n", "#\n", "# BRAT 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, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.1111111111111111, 0, 0.1111111111111111, 0.2, 0.043478260869565216, 0, 0.2, 0, 0, 0, 0, 0, 0,...
149
0.034329
false
from scipy.fftpack import fft import numpy as np from fractions import gcd """ A3-Part-1: Minimize energy spread in DFT of sinusoids Given a signal consisting of two sinusoids, write a function that selects the first M samples from the signal and returns the positive half of the DFT magnitude spectrum (in dB), such ...
[ "from scipy.fftpack import fft\n", "import numpy as np\n", "from fractions import gcd\n", "\n", "\"\"\"\n", "A3-Part-1: Minimize energy spread in DFT of sinusoids\n", "Given a signal consisting of two sinusoids, write a function that selects the first M samples from \n", "the signal and returns the po...
[ 0, 0, 0, 0, 0, 0, 0.02, 0.02040816326530612, 0.037037037037037035, 0, 0.01904761904761905, 0.02, 0.020202020202020204, 0.009900990099009901, 0.0196078431372549, 0, 0, 0.02040816326530612, 0.019801980198019802, 0.021052631578947368, 0.021052631578947368, 0.058823529411764705...
63
0.012736
false
from components import featureBroker import urllib2 import drivers.ipaddress import json import datetime import logging import random class ScheduledCommands(featureBroker.Component): scheduler = featureBroker.RequiredFeature('scheduler') def __init__(self, *args, **kwargs): return super(ScheduledCom...
[ "from components import featureBroker\n", "import urllib2\n", "import drivers.ipaddress\n", "import json\n", "import datetime\n", "import logging\n", "import random\n", "\n", "class ScheduledCommands(featureBroker.Component):\n", " scheduler = featureBroker.RequiredFeature('scheduler')\n", "\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0.02, 0, 0, 0, 0, 0.2, 0.012345679012345678, 0.02857142857142857, 0.0106951871657754, 0.014492753623188406, 0, 0, 0.02, 0, 0.008849557522123894, 0.018691588785046728, 0.2, 0, 0.03389830508474576, 0.038461538461538464, 0, 0.2, 0, 0...
37
0.027575
false
# x=particle positions, interactions is a list of two body interactions, three # body interactions, ... . All expressed in relevant squared hyperradii. def getHyperRadialPotential(x,distFun,interactions): _sum = lambda a: reduce(lambda b,c:b+c,a) #stupid python sum adds a zero def hyperSqrRadius(y): re...
[ "# x=particle positions, interactions is a list of two body interactions, three\n", "# body interactions, ... . All expressed in relevant squared hyperradii.\n", "def getHyperRadialPotential(x,distFun,interactions):\n", " _sum = lambda a: reduce(lambda b,c:b+c,a) #stupid python sum adds a zero\n", " d...
[ 0, 0, 0.03773584905660377, 0.07792207792207792, 0.037037037037037035, 0.03333333333333333, 0.1111111111111111, 0.04, 0, 0.03508771929824561, 0.04477611940298507, 0.013157894736842105, 0, 0, 0.012987012987012988, 0.014285714285714285, 0, 0, 0, 0.010526315789473684, 0, 0, 0...
27
0.017332
false