org_text stringlengths 830 329k | texts list | scores list | num_lines int64 1 8.05k | avg_score float64 0 0.27 | check bool 1
class |
|---|---|---|---|---|---|
# Copyright (c) 2016, LE GOFF Vincent
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and th... | [
"# Copyright (c) 2016, LE GOFF Vincent\n",
"# All rights reserved.\n",
"\n",
"# Redistribution and use in source and binary forms, with or without\n",
"# modification, are permitted provided that the following conditions are met:\n",
"\n",
"# * Redistributions of source code must retain the above copyri... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.012345679012345678,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.03125,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 291 | 0.004528 | false |
#!/usr/bin/env python
# encoding:utf-8
"""
A Simple XLS convertor.
It can convert XLS to XMl or CVS.
author:Tynox
website:http://tarkrul.info
This is a free and unencumbered software into the public domain.
For more information, please refer to <http://unlicense.org>
"""
import codecs
import getopt
import os
impo... | [
"#!/usr/bin/env python\n",
"# encoding:utf-8\n",
"\n",
"\"\"\"\n",
"A Simple XLS convertor.\n",
"It can convert XLS to XMl or CVS.\n",
"\n",
"author:Tynox\n",
"website:http://tarkrul.info\n",
"\n",
"This is a free and unencumbered software into the public domain.\n",
"For more information, ple... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
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.0070921985815602835,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 139 | 0.004977 | false |
#!/usr/bin/env python3
# Copyright (c) 2014-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.
"""Test the rawtransaction RPCs.
Test the following RPCs:
- createrawtransaction
- signrawtran... | [
"#!/usr/bin/env python3\n",
"# Copyright (c) 2014-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",
"\"\"\"Test the rawtransaction RPCs.\n",
"\n",
"Test the following... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.008064516129032258,
0,
0.043478260869565216,
0,
0,
0.011904761904761904,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.00980392156862745,
0,
0,
0,
0... | 436 | 0.004944 | 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.034482758620689655,
0.03333333333333333,
0.05263157894736842,
0,
0.019230769230769232,
0.029411764705882353,
0,
0,
0.02857142857142857,
0.02127659574468085,
0,
0,
0,... | 1,382 | 0.001104 | false |
from modules.utils.dal.common.entities.dataViews.dataViewLocalDto import DataViewLocalDto
from modules.utils.dal.common.entities.dataContext import DataContext
from modules.utils.dal.common.dtos import metadataSrv
from modules.utils.dal.common import utils as dalUtils
class LocalDtoViewsBase:
def __init__(s... | [
"from modules.utils.dal.common.entities.dataViews.dataViewLocalDto import DataViewLocalDto\r\n",
"from modules.utils.dal.common.entities.dataContext import DataContext\r\n",
"from modules.utils.dal.common.dtos import metadataSrv\r\n",
"from modules.utils.dal.common import utils as dalUtils\r\n",
"\r\n",
"... | [
0.01098901098901099,
0,
0,
0,
0,
0.038461538461538464,
0.012048192771084338,
0,
0,
0.014925373134328358,
0,
0,
0.012048192771084338,
0,
0,
0,
0,
0,
0,
0,
0.011111111111111112,
0,
0
] | 23 | 0.00433 | 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,
0,
0,
0,
0,
0.00980392156862745,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.015384615384615385
] | 55 | 0.000458 | false |
import discord
from sigma.modules.minigames.professions.nodes.item_core import ItemCore
item_core = None
async def takeitem(cmd, message, args):
global item_core
if not item_core:
item_core = ItemCore('sigma/modules/minigames/professions/res/data')
if args:
id_lookup = args[0]
i... | [
"import discord\n",
"\n",
"from sigma.modules.minigames.professions.nodes.item_core import ItemCore\n",
"\n",
"item_core = None\n",
"\n",
"\n",
"async def takeitem(cmd, message, args):\n",
" global item_core\n",
" if not item_core:\n",
" item_core = ItemCore('sigma/modules/minigames... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.010101010101010102,
0,
0.009523809523809525,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.008849557522123894,
0,
0,
0.010416666666666666,
0,
0.011363636363636364,
0
] | 35 | 0.001436 | 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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.025,
0.01639344262295082,
0.058823529411764705,
0.06896551724137931,
0.058823529411764705,
0.0357142857142... | 129 | 0.004739 | false |
# coding: utf-8
from AcousticWave2D import AcousticWave2D
import numpy as np
from numpy import linalg
from VelocityModel import VelocityModel
from ShotManager import ShotManager
model = VelocityModel()
dimensions = (70, 70)
origin = (0., 0.)
spacing = (25., 25)
# True velocity
true_vp = np.ones(dimensions) + 2.0
t... | [
"# coding: utf-8\n",
"from AcousticWave2D import AcousticWave2D\n",
"\n",
"import numpy as np\n",
"from numpy import linalg\n",
"\n",
"from VelocityModel import VelocityModel\n",
"from ShotManager import ShotManager\n",
"\n",
"model = VelocityModel()\n",
"dimensions = (70, 70)\n",
"origin = (0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.02,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | 59 | 0.000339 | 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.047619047619047616,
0.037037037037037035,
0.03125,
0.02702702702702703,
0.02631578947368421,
0,
0,
0,
0,
0,
... | 60 | 0.022103 | 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... | 318 | 0.056281 | false |
# Script to create app cache manifest files for the Dragonfly project.
# Takes very much in regard how the dragonfly.opera.com server works.
# There are two main paths on https://dragonfly.opera.com,
# /app/ and /app/cutting-edge/.
# If the request has no language cookie then a small document to
# set the language c... | [
"# Script to create app cache manifest files for the Dragonfly project.\n",
"# Takes very much in regard how the dragonfly.opera.com server works.\n",
"# There are two main paths on https://dragonfly.opera.com, \n",
"# /app/ and /app/cutting-edge/.\n",
"# If the request has no language cookie then a small d... | [
0,
0,
0.016666666666666666,
0,
0.015151515151515152,
0.02631578947368421,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.023809523809523808,
0,
0.012987012987012988,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.01818181818181818,
0.011111111111111112,
0,
0.093... | 118 | 0.006697 | false |
# -*- coding: utf-8 -*-
from __future__ import print_function
import atexit
import collections
import cPickle as pickle
import gzip
import json
import io
import numpy as np
import os
import pandas as pd
import pdb
import re
import urllib
from wsd.database import MySQLDatabase
from graph_tool.all imp... | [
"# -*- coding: utf-8 -*-\r\n",
"\r\n",
"from __future__ import print_function\r\n",
"\r\n",
"import atexit\r\n",
"import collections\r\n",
"import cPickle as pickle\r\n",
"import gzip\r\n",
"import json\r\n",
"import io\r\n",
"import numpy as np\r\n",
"import os\r\n",
"import pandas as pd\r\... | [
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.009174311926605505,
0.009433962264150943,
... | 171 | 0.002452 | false |
from django.db import models
#from django.contrib import admin
from Compat.tagging.fields import TagField
from Compat.thumbnail.fields import ThumbField
class Report(models.Model):
pub_date = models.DateTimeField(u'Дата публикации', null=True, blank=True)
title = models.CharField(u'Заголовок', max_length... | [
"from django.db import models\n",
"#from django.contrib import admin\n",
"from Compat.tagging.fields import TagField\n",
"from Compat.thumbnail.fields import ThumbField\n",
"\n",
"\n",
"class Report(models.Model): \n",
" pub_date = models.DateTimeField(u'Дата публикации', null=True, blank=True)\... | [
0,
0.029411764705882353,
0,
0,
0,
0,
0.03125,
0,
0,
0,
0.010416666666666666,
0.020618556701030927,
0.020618556701030927,
0,
0,
0,
0,
0.2,
0,
0,
0,
0,
0,
0,
0.2,
0,
0.2,
0,
0,
0,
0,
0,
0.1111111111111111,
0,
0,
0,
0.2,
0,
0.2,
0,
0.01351... | 99 | 0.026142 | false |
namespace SeriesNamer
{
partial class Main
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param n... | [
"namespace SeriesNamer\n",
"{\n",
" partial class Main\n",
" {\n",
" /// <summary>\n",
" /// Required designer variable.\n",
" /// </summary>\n",
" private System.ComponentModel.IContainer components = null;\n",
"\n",
" /// <summary>\n",
" /// Clea... | [
0,
0,
0,
0,
0.13636363636363635,
0.025,
0.13043478260869565,
0.014705882352941176,
0,
0.13636363636363635,
0.02127659574468085,
0.13043478260869565,
0.07407407407407407,
0,
0,
0.0196078431372549,
0,
0.05263157894736842,
0,
0.05405405405405406,
0,
0,
0.018867924528301886,
... | 232 | 0.030949 | false |
""" File for helper functions used by more than one class in ST system.
"""
#.-------------------.
#| imports |
#'-------------------'
import pandas as pd
import numpy as np
import pandas_datareader.data as web
import matplotlib.pyplot as plt
from cycler import cycler
from pandas.tools.plottin... | [
"\"\"\" File for helper functions used by more than one class in ST system.\r\n",
"\"\"\"\r\n",
"\r\n",
"#.-------------------.\r\n",
"#| imports |\r\n",
"#'-------------------'\r\n",
"\r\n",
"import pandas as pd\r\n",
"import numpy as np\r\n",
"import pandas_datareader.data as web \r\n"... | [
0,
0,
0,
0.041666666666666664,
0.041666666666666664,
0.041666666666666664,
0,
0,
0,
0.02564102564102564,
0,
0,
0,
0,
0.038461538461538464,
0.038461538461538464,
0.038461538461538464,
0,
0.04,
0,
0,
0,
0.03225806451612903,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.0... | 222 | 0.020402 | 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.02702702702702703,
0.02127659574468085,
0.017543859649122806,
0.022222222222222223,
0.03225806451... | 160 | 0.006876 | 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/.
from __future__ import division
import pyte... | [
"# 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... | 953 | 0 | false |
import string
from module_info import *
from module_map_icons import *
from process_common import *
from process_operations import *
def save_map_icons(variable_list,variable_uses,tag_uses,quick_strings):
ofile = open(export_dir + "map_icons.txt","w")
ofile.write("map_icons_file version 1\n")
ofile.write("%d\n... | [
"import string\n",
"from module_info import *\n",
"from module_map_icons import *\n",
"\n",
"from process_common import *\n",
"from process_operations import *\n",
"\n",
"def save_map_icons(variable_list,variable_uses,tag_uses,quick_strings):\n",
" ofile = open(export_dir + \"map_icons.txt\",\"w\")... | [
0,
0,
0,
0,
0,
0,
0,
0.05555555555555555,
0.04081632653061224,
0.022727272727272728,
0.05405405405405406,
0.034482758620689655,
0,
0,
0.06944444444444445,
0.03225806451612903,
0,
0,
0.06666666666666667,
0.03225806451612903,
0,
0.053763440860215055,
0,
0.0625,
0,
0.0... | 41 | 0.022311 | false |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Copyright (C) 2011-2015 German Aerospace Center DLR
(Deutsches Zentrum fuer Luft- und Raumfahrt e.V.),
Institute of System Dynamics and Control
All rights reserved.
This file is part of PySimulator.
PySimulator is free software: you can redistribute it and/or modify... | [
"#!/usr/bin/env python\n",
"# -*- coding: utf-8 -*-\n",
"\n",
"'''\n",
"Copyright (C) 2011-2015 German Aerospace Center DLR\n",
"(Deutsches Zentrum fuer Luft- und Raumfahrt e.V.),\n",
"Institute of System Dynamics and Control\n",
"All rights reserved.\n",
"\n",
"This file is part of PySimulator.\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.011764705882352941,
0.011627906976744186,
0,
0,
0,
0,
0.08333333333333333,
0.1,
0.02,
0,
0,
0,
0.01098901098901099,
0,
0,
0,
0,
0,... | 397 | 0.002548 | 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.0125,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.0625,
0,
0,
0,
0,
0,
0.0625,
0,
... | 195 | 0.002051 | false |
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#--------------------------------------------------------------------------
__author__... | [
"#-------------------------------------------------------------------------\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.013333333333333334,
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.012195121951219513,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.012195121951219513
] | 36 | 0.001413 | false |
# Copyright © 2017 Ondrej Martinsky, All rights reserved
# http://github.com/omartinsky/pybor
import copy
import enum
import re
from typing import List
import numpy as np
from yc_curvebuilder import BuildOutput, CurveBuilder
class BumpType(enum.Enum):
FULL_REBUILD = 0
JACOBIAN_REBUILD = 1
... | [
"# Copyright © 2017 Ondrej Martinsky, All rights reserved\r\n",
"# http://github.com/omartinsky/pybor\r\n",
"\r\n",
"import copy\r\n",
"import enum\r\n",
"import re\r\n",
"from typing import List\r\n",
"\r\n",
"import numpy as np\r\n",
"\r\n",
"from yc_curvebuilder import BuildOutput, CurveBuild... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.00980392156862745,
0,
0,
0.011627906976744186,
0,
0.011235955056179775,
0,
0.010752688172043012,
0,
0,
0,
0,
0... | 84 | 0.000662 | false |
import datetime
import time
import numpy as np
from progressbar import ProgressBar
import unittest2
from instr.base import BaseInstr
# TODO: consider hysteresis
class AP1628T2(BaseInstr):
def __init__(self, rsrc, timeout_sec=3, reset=True):
idn = 'TAKASAGO,AP-1628T,00000,Ver2.30Rev1.06\r\n'
su... | [
"import datetime\n",
"import time\n",
"\n",
"import numpy as np\n",
"from progressbar import ProgressBar\n",
"import unittest2\n",
"\n",
"from instr.base import BaseInstr\n",
"\n",
"\n",
"# TODO: consider hysteresis\n",
"\n",
"class AP1628T2(BaseInstr):\n",
" def __init__(self, rsrc, ti... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0.025,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 199 | 0.000381 | false |
import sys
import urllib, urllib2
import xbmc
import xbmcgui
import XbmcHelpers
common = XbmcHelpers
from videohosts import tools
URL = "http://hdgo.club"
PARTS = ("/films/", "/serials/")
HEADERS = {
"Origin": "http://hdgo.club",
"Host": "hdgo.club",
"Referer": "{0}",
"User-Agent": "Mozilla/5.0 (Win... | [
"import sys\n",
"import urllib, urllib2\n",
"import xbmc\n",
"import xbmcgui\n",
"import XbmcHelpers\n",
"common = XbmcHelpers\n",
"from videohosts import tools\n",
"\n",
"URL = \"http://hdgo.club\"\n",
"PARTS = (\"/films/\", \"/serials/\")\n",
"\n",
"HEADERS = {\n",
" \"Origin\": \"http... | [
0,
0.043478260869565216,
0,
0,
0,
0,
0.034482758620689655,
0,
0,
0,
0,
0,
0,
0.04,
0,
0.007352941176470588,
0,
0,
0,
0,
0.007352941176470588,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.045454545454545456,
0,
0,
0,
0,
0,
0,
0,
0,
0.0384615384615384... | 89 | 0.005889 | false |
import sys , os , math , random
import pygame
from pygame. locals import *
WAITING_TIME=0
FPS=5
GRAY=(200,200,200)
WHITE=(255,255,255)
BLACK=(0,0,0)
START_COORDINATES=(180,50)
BLOCK_WIDTH=24
SCREEN_SIZE=[400,600]
TETRA_CHOICES=(1,4)
GRID_SIZE_X=12
GRID_SIZE_Y=20
class Block(pygame.sprite.Sprite):
def __init... | [
"\n",
"import sys , os , math , random\n",
"import pygame\n",
"\n",
"from pygame. locals import *\n",
"\n",
"WAITING_TIME=0\n",
"FPS=5\n",
"GRAY=(200,200,200)\n",
"WHITE=(255,255,255)\n",
"BLACK=(0,0,0)\n",
"START_COORDINATES=(180,50)\n",
"BLOCK_WIDTH=24\n",
"SCREEN_SIZE=[400,600]\n",
"T... | [
0,
0.125,
0,
0,
0,
0,
0.06666666666666667,
0.16666666666666666,
0.15789473684210525,
0.15,
0.21428571428571427,
0.07407407407407407,
0.06666666666666667,
0.09090909090909091,
0.1,
0,
0.06666666666666667,
0.06666666666666667,
0,
0,
0,
0.02857142857142857,
0.05,
0,
0,
... | 379 | 0.021991 | false |
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation
# All rights reserved.
#
# MIT License:
# 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 th... | [
"#-------------------------------------------------------------------------\n",
"# Copyright (c) Microsoft Corporation\n",
"# All rights reserved.\n",
"#\n",
"# MIT License:\n",
"# Permission is hereby granted, free of charge, to any person obtaining\n",
"# a copy of this software and associated documen... | [
0.013333333333333334,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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.00980392156862745,
0,
0,
0,
0.00980392156862745,
0,... | 190 | 0.000927 | false |
# -*- coding: utf-8 -*-
#This is a Python script for trading card game Wixoss based on OCTGN platform. We wrote
#it for learning certain skills and game rules. Please do not use it for commercial purpose
#without permission.
#
#Scripts Copyright (C) 2014 Minchao Wu
#
#Created by SynTuner 2014.07.05
#
#Revised by... | [
"# -*- coding: utf-8 -*- \n",
"\n",
"#This is a Python script for trading card game Wixoss based on OCTGN platform. We wrote\n",
"#it for learning certain skills and game rules. Please do not use it for commercial purpose \n",
"#without permission.\n",
"#\n",
"#Scripts Copyright (C) 2014 Minchao Wu\n"... | [
0.038461538461538464,
0,
0.022727272727272728,
0.03225806451612903,
0.047619047619047616,
0,
0.025,
0,
0.06060606060606061,
0,
0.03125,
0,
0.02564102564102564,
0,
0.023809523809523808,
0,
0.02702702702702703,
0,
0.038461538461538464,
0,
0.03529411764705882,
0.03448275862068... | 1,044 | 0.018608 | false |
# ________ ______
# ___ __/_____ ___ /__________________
# __ /_ _ __ `/_ /_ ___/ __ \_ __ \
# _ __/ / /_/ /_ / / /__ / /_/ / / / /
# /_/ \__,_/ /_/ \___/ \____//_/ /_/
#
# Author : Shine Xu
# License: The MIT License (MIT)
# -*- coding: utf-... | [
"# ________ ______ \n",
"# ___ __/_____ ___ /__________________ \n",
"# __ /_ _ __ `/_ /_ ___/ __ \\_ __ \\\n",
"# _ __/ / /_/ /_ / / /__ / /_/ / / / /\n",
"# /_/ \\__,_/ /_/ \\___/ \\____//_/ /_/ \n",
"# \n",
"# Author : Shine Xu\n... | [
0.023255813953488372,
0.023255813953488372,
0,
0,
0.023255813953488372,
0.03125,
0,
0,
0,
0,
0,
0,
0,
0,
0.06666666666666667,
0,
0,
0.012345679012345678,
0,
0,
0,
0,
0,
0,
0,
0.046511627906976744,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | 47 | 0.009375 | 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 2, or (at your option)
# * any later version.
# *
# * This Program is distributed in the hope ... | [
"# -*- coding: utf-8 -*-\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 2, or (at your option)\n",
"# * any later version.\n",
"# *... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.027777777777777776,
0.038461538461538464,
0,
0,
0,
0.02857142857142857,
0.020833333333333332,
0.021739130434782608,
0.0196078431372549,
0.015625,
0.021739130434782608,
0.012658227848101266,
0,
0.032... | 308 | 0.012545 | false |
# -*- coding: utf-8 -*-
from django import template
from portal.event_calendar.models import Events, ResultEvent
from django.contrib.auth.models import User
from django.contrib.auth.models import Group
from portal.accounting.models import Bicycle_Type, Type
import datetime
register = template.Library()
import re
@... | [
"# -*- coding: utf-8 -*-\n",
"from django import template\n",
"from portal.event_calendar.models import Events, ResultEvent\n",
"from django.contrib.auth.models import User\n",
"from django.contrib.auth.models import Group\n",
"from portal.accounting.models import Bicycle_Type, Type\n",
"\n",
"import ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.058823529411764705,
0.025,
0,
0,
0,
0.03125,
0,
0.061224489795918366,
0,
0.021739130434782608,
0,
0,
0.024390243902439025,
0,
0.05263157894736842,
0,
0,
0,
0,
0,
0.02564102... | 103 | 0.022209 | false |
# -*- coding: utf-8 -*-
#------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# Canal para cuevana
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#------------------------------------------------------------
import urlparse,urllib2,urllib,re
import os, sys
from core imp... | [
"# -*- coding: utf-8 -*-\n",
"#------------------------------------------------------------\n",
"# pelisalacarta - XBMC Plugin\n",
"# Canal para cuevana\n",
"# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/\n",
"#------------------------------------------------------------\n",
"import urlparse,u... | [
0,
0.016129032258064516,
0,
0,
0,
0.016129032258064516,
0.11764705882352941,
0.06666666666666667,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.058823529411764705,
0,
0,
0.05,
0,
0,
0.2,
0,
0,
0,
0,
0.03225806451612903,
0,
0,
0.04,
0.01030... | 54 | 0.018889 | false |
#!/usr/bin/env python3
# Copyright (c) 2015-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.
"""Test BIP65 (CHECKLOCKTIMEVERIFY).
Test that the CHECKLOCKTIMEVERIFY soft-fork activates at (regte... | [
"#!/usr/bin/env python3\n",
"# Copyright (c) 2015-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",
"\"\"\"Test BIP65 (CHECKLOCKTIMEVERIFY).\n",
"\n",
"Test that the ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.011363636363636364,
0,
0,
0.010101010101010102,
0,
0.010752688172043012,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.04,
0,
0,
0,
0,
0,
0,
0,
0.012195121951219513,
0,
0,
0.02702702702702703,
0,
0,
0,
0,
0,
0,
... | 151 | 0.002396 | 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.02631578947368421,
0.029411764705882353,
0,
0.05,
0,
0.07142857142857142,
0.01834862385321101,
0.0666... | 163 | 0.004677 | 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');
clr.AddReference('ZyGames.Tia... | [
"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.019230769230769232,
0.045454545454545456,
0.023809523809523808,
0.022727272727272728,
0.025,
0.024390243902439025,
0.02564102564102564,
0.025,
0.02... | 96 | 0.023016 | false |
import discord
from sigma.core.utilities.role_processing import matching_role
async def autorole(cmd, message, args):
if message.author.permissions_in(message.channel).manage_guild:
if args:
lookup = ' '.join(args)
if lookup.lower() != 'disable':
target_role = mat... | [
"import discord\n",
"\n",
"from sigma.core.utilities.role_processing import matching_role\n",
"\n",
"\n",
"async def autorole(cmd, message, args):\n",
" if message.author.permissions_in(message.channel).manage_guild:\n",
" if args:\n",
" lookup = ' '.join(args)\n",
" ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.01020408163265306,
0,
0.010416666666666666,
0.008547008547008548,
0,
0.008928571428571428,
0,
0.008928571428571428,
0,
0,
0.010309278350515464,
0,
0.012048192771084338,
0,
0.01,
0,
0.008771929824561403,
0,
0.0090909090... | 36 | 0.003314 | false |
#!/usr/bin/python
from PIL import Image
import os, sys, argparse
# best down-sizing filter ANTIALIAS
def Resize(image, path, w, h, mode = Image.ANTIALIAS):
path = os.path.abspath(os.path.expanduser(path))
dir = os.path.dirname(path)
if not os.path.isdir(dir):
os.makedirs(dir)
newimage = image.resize((w, h), mod... | [
"#!/usr/bin/python\n",
"from PIL import Image\n",
"import os, sys, argparse\n",
"\n",
"# best down-sizing filter ANTIALIAS\n",
"def Resize(image, path, w, h, mode = Image.ANTIALIAS):\n",
"\tpath = os.path.abspath(os.path.expanduser(path))\n",
"\tdir = os.path.dirname(path)\n",
"\tif not os.path.isdi... | [
0,
0,
0.04,
0,
0,
0.05454545454545454,
0.02,
0.034482758620689655,
0.03571428571428571,
0.05263157894736842,
0.02564102564102564,
0.047619047619047616,
0.2,
0,
0.03225806451612903,
0.037037037037037035,
0.018518518518518517,
0.02040816326530612,
0.018518518518518517,
0.01818181... | 51 | 0.029154 | 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.04,
0,
0,
0.015625,
0,
0.010869565217391304,
0,
0,
0,
0,
0,
0,
0,
0.02941176470588235... | 331 | 0.0022 | false |
# -*- coding: UTF-8 -*-
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import selenium.webdriver.support.ui as ui
import re
import os
import codecs
import sys
#import MySQLdb
import pymysql
import datetime
import time
import urllib
import urllib2
from bs4 import BeautifulSoup
r... | [
"# -*- coding: UTF-8 -*- \n",
"from selenium import webdriver \n",
"from selenium.webdriver.common.keys import Keys\n",
"import selenium.webdriver.support.ui as ui\n",
"import re\n",
"import os\n",
"import codecs\n",
"import sys\n",
"#import MySQLdb\n",
"import pymysql\n",
"import datetime... | [
0.038461538461538464,
0.02702702702702703,
0,
0,
0,
0,
0,
0,
0.0625,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.043478260869565216,
0.03225806451612903,
0.02857142857142857,
0,
0.2,
0.08333333333333333,
0,
0.1111111111111111,
0.01639344262295082,
0.05263157894736842,
0... | 204 | 0.02013 | false |
############################################################
# Copyright (C) Alex S.Galickiy 2015 - All Rights Reserved #
############################################################
# -*- coding: utf-8 -*-
import xbmc
import xbmcgui
import xbmcaddon
import urllib
import epgTV
import time
import sys
imp... | [
"############################################################\r\n",
"# Copyright (C) Alex S.Galickiy 2015 - All Rights Reserved #\r\n",
"############################################################\r\n",
"\r\n",
"# -*- coding: utf-8 -*-\r\n",
"\r\n",
"import xbmc\r\n",
"import xbmcgui\r\n",
"import ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.012195121951219513,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.0196078431372549,
0.011494252873563218,
0,
0,
0,
0,
0,
0.03225806451612903,
0.021739130434782608,
0,
0,
0,
0,
... | 321 | 0.007339 | false |
#-------------------------------------------------------------------------------
# Author: amir
# Created: 10/25/2015
#
# Instructions:
#
# 1) Make sure to rename the file (studentNetId.py) to your netId. (Do not include your first name, last name ... or any extra character)
# 2) To run the program typ... | [
"#-------------------------------------------------------------------------------\r\n",
"# Author: amir\r\n",
"# Created: 10/25/2015\r\n",
"#\r\n",
"# Instructions:\r\n",
"#\r\n",
"# 1) Make sure to rename the file (studentNetId.py) to your netId. (Do not include your first name, last name ... ... | [
0.024390243902439025,
0,
0,
0,
0,
0,
0.007194244604316547,
0.012987012987012988,
0.013422818791946308,
0.009523809523809525,
0.009433962264150943,
0.010869565217391304,
0.009433962264150943,
0,
0.014925373134328358,
0.005263157894736842,
0.004975124378109453,
0.009174311926605505,
... | 237 | 0.016445 | false |
from pyspark import SparkContext, SparkConf
'''
spark机器学习笔记:(二)用Spark Python进行数据处理和特征提取
http://blog.csdn.net/u013719780/article/details/51768720
'''
appName = 'spark-ml'
master = 'local'
scconf = SparkConf().setAppName(appName).setMaster(master)
sc = SparkContext(conf=scconf)
def plot():
import matplotlib.pyplot ... | [
"from pyspark import SparkContext, SparkConf\n",
"'''\n",
"spark机器学习笔记:(二)用Spark Python进行数据处理和特征提取\n",
"http://blog.csdn.net/u013719780/article/details/51768720\n",
"'''\n",
"appName = 'spark-ml'\n",
"master = 'local'\n",
"scconf = SparkConf().setAppName(appName).setMaster(master)\n",
"sc = SparkCon... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.08333333333333333,
0,
0,
0,
0.01818181818181818,
0,
0.03333333333333333,
0,
0,
0.037037037037037035,
0,
0,
0,
0,
0,
0.013333333333333334,
0.03333333333333333,
0.021505376344086023,
0.022222222222222223,
0.04918032786885246,
... | 32 | 0.012574 | 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.017543859649122806,
0.03125,
0.023255813953488372,
0.02,
0,
0.013157894736842105,
0,
0,
0,
0,
0... | 65 | 0.00431 | false |
import re
import urlparse
import datetime
import json
import time
import xbmcaddon
import xbmcgui
import xbmcplugin
import xbmc
import livelib
import boogietools as bt
bt.initdirs("plugin.video.videostream")
from third import humanize
domain="http://videostream.dn.ua"
encoding="utf-8"
c=xbmc.getLocalizedString(19... | [
"import re\n",
"import urlparse\n",
"import datetime\n",
"import json\n",
"import time\n",
"\n",
"import xbmcaddon\n",
"import xbmcgui\n",
"import xbmcplugin\n",
"import xbmc\n",
"\n",
"import livelib\n",
"import boogietools as bt\n",
"\n",
"bt.initdirs(\"plugin.video.videostream\")\n",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.037037037037037035,
0,
0.029411764705882353,
0.058823529411764705,
0.030303030303030304,
0.09375,
0.047619047619047616,
0.021739130434782608,
0.020833333333333332,
0.020833333333333332,
0.02040816326530612,
0,
... | 234 | 0.075312 | false |
# -*- coding: utf-8 -*-
#-----------------------------------------------------------------------------
# file: fields.py
# License: LICENSE.TXT
# Author: Ioannis Tziakos
#
# Copyright (c) 2011, Enthought, Inc.
# All rights reserved.
#-----------------------------------------------------------------------------
im... | [
"# -*- coding: utf-8 -*-\n",
"#-----------------------------------------------------------------------------\n",
"# file: fields.py\n",
"# License: LICENSE.TXT\n",
"# Author: Ioannis Tziakos\n",
"#\n",
"# Copyright (c) 2011, Enthought, Inc.\n",
"# All rights reserved.\n",
"#--------------------... | [
0,
0.012658227848101266,
0,
0,
0,
0,
0,
0,
0.012658227848101266,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.04878048780487805,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 535 | 0.000215 | false |
import htmlentitydefs
import json
import re
import unicodedata
import urllib
import time
import traceback
from couchpotato.core.helpers.encoding import tryUrlencode
from couchpotato.core.helpers.variable import getTitle, tryInt, mergeDicts, getIdentifier
from couchpotato.core.logger import CPLog
from couchpotato.core... | [
"import htmlentitydefs\n",
"import json\n",
"import re\n",
"import unicodedata\n",
"import urllib\n",
"import time\n",
"import traceback\n",
"\n",
"from couchpotato.core.helpers.encoding import tryUrlencode\n",
"from couchpotato.core.helpers.variable import getTitle, tryInt, mergeDicts, getIdentif... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.011111111111111112,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.009615384615384616,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.1111111111111111,
0.013888888888888888,
0,
0,... | 181 | 0.0038 | 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
class SzeneStreamsGenreScreen(MPScreen):
def __init__(self, session):
self.plugin_path = mp... | [
"# -*- 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",
"\n",
"class SzeneStreamsGenreScreen(MPScreen):\n",
"\n",
"... | [
0,
0,
0,
0.011904761904761904,
0,
0.024390243902439025,
0,
0.03333333333333333,
0.023255813953488372,
0.015625,
0.022222222222222223,
0.037037037037037035,
0.012658227848101266,
0.034482758620689655,
0.041666666666666664,
0.07692307692307693,
0.02857142857142857,
0,
0.02083333333... | 311 | 0.033011 | false |
# _*_ coding: utf-8 _*_
'''
Define two simple functions to write and read from csv/text files.
'''
import csv
# define a function to write to a file
def write_to_csv(data, csvfile, delimiter=','):
'''Simply write a row of data to csvfile appending
contents. There is another method to write several
rows (csv.writer... | [
"# _*_ coding: utf-8 _*_\n",
"'''\n",
"Define two simple functions to write and read from csv/text files.\n",
"'''\n",
"import csv\n",
"\n",
"# define a function to write to a file\n",
"def write_to_csv(data, csvfile, delimiter=','):\n",
"\t'''Simply write a row of data to csvfile appending\n",
"\... | [
0,
0,
0,
0,
0,
0,
0,
0.020833333333333332,
0.019230769230769232,
0.019230769230769232,
0.043478260869565216,
0.017241379310344827,
0.022727272727272728,
0.2,
0.02,
0.022727272727272728,
0.030303030303030304,
0.0136986301369863,
0.041666666666666664,
0,
0,
0.0357142857142857... | 64 | 0.045154 | false |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Copyright (C) 2011-2015 German Aerospace Center DLR
(Deutsches Zentrum fuer Luft- und Raumfahrt e.V.),
Institute of System Dynamics and Control
All rights reserved.
This file is part of PySimulator.
PySimulator is free software: you can redistribute it and/or modify... | [
"#!/usr/bin/env python\n",
"# -*- coding: utf-8 -*-\n",
"\n",
"'''\n",
"Copyright (C) 2011-2015 German Aerospace Center DLR\n",
"(Deutsches Zentrum fuer Luft- und Raumfahrt e.V.),\n",
"Institute of System Dynamics and Control\n",
"All rights reserved.\n",
"\n",
"This file is part of PySimulator.\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.023255813953488372,
0,
0,
0,
0.0064516129032258064,
0,
0,
0.007462686567164179,
0,
0,
0,
0,
... | 264 | 0.0062 | false |
# -*- coding: utf-8 -*-
#
# GeoServer Developer Guide documentation build configuration file, created by
# sphinx-quickstart on Sun Dec 28 21:08:40 2008.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# The contents of this file are pickled, so don't put values in the namespace
# ... | [
"# -*- coding: utf-8 -*-\n",
"#\n",
"# GeoServer Developer Guide documentation build configuration file, created by\n",
"# sphinx-quickstart on Sun Dec 28 21:08:40 2008.\n",
"#\n",
"# This file is execfile()d with the current directory set to its containing dir.\n",
"#\n",
"# The contents of this file... | [
0,
0,
0,
0,
0,
0.012345679012345678,
0,
0,
0.012048192771084338,
0,
0,
0,
0,
0.06666666666666667,
0,
0,
0,
0,
0.019230769230769232,
0,
0,
0,
0,
0.012345679012345678,
0,
0.01818181818181818,
0,
0,
0,
0,
0.022222222222222223,
0,
0,
0,
0,
0,
0,
... | 251 | 0.007352 | false |
# Python Scripts for the Card Fighters' Clash definition for OCTGN
# Copyright (C) 2013 Raohmaru
# This python script 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
# (a... | [
"# Python Scripts for the Card Fighters' Clash definition for OCTGN\n",
"# Copyright (C) 2013 Raohmaru\n",
"\n",
"# This python script 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, e... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.012987012987012988,
0,
0.012987012987012988,
0,
0,
0,
0.041666666666666664,
0.043478260869565216,
0.021505376344086023,
0.037037037037037035,
0.05,
0.03333333333333333,
0.03225806451612903,
0.0294117647058823... | 496 | 0.037651 | false |
#This file is part of Happypanda.
#Happypanda is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 2 of the License, or
#any later version.
#Happypanda is distributed in the hope that it will be usefu... | [
"#This file is part of Happypanda.\n",
"#Happypanda 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 2 of the License, or\n",
"#any later version.\n",
"#Happypanda is distri... | [
0.029411764705882353,
0.014705882352941176,
0.014285714285714285,
0.014925373134328358,
0.05,
0.015873015873015872,
0.015625,
0.015873015873015872,
0.021739130434782608,
0.014925373134328358,
0.014492753623188406,
0,
0.05263157894736842,
0.038461538461538464,
0.02857142857142857,
0.024... | 173 | 0.054912 | false |
# -*- coding: utf-8 -*-
#------------------------------------------------------------
# streamondemand - XBMC Plugin
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#------------------------------------------------------------
from core import config
DEBUG = config.get_setting("debug")
# Nombre del equipo ... | [
"# -*- coding: utf-8 -*-\n",
"#------------------------------------------------------------\n",
"# streamondemand - XBMC Plugin\n",
"# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/\n",
"#------------------------------------------------------------\n",
"\n",
"from core import config\n",
"\n",
... | [
0,
0.016129032258064516,
0,
0,
0.016129032258064516,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.010869565217391304,
0,
0.037037037037037035,
0.025,
0,
0.05263157894736842,
0.016260162601626018,
0.019801980198019802,
0.024390243902439025,
0.016666666666666666,
0,
0,
0,
0.... | 38 | 0.032885 | false |
import cv2
import numpy as np
import pylab as pl
from threading import Thread
from time import sleep
class DotaLogWatcher():
path = ''
_thread = None
_dota_log = None
_overlayswitcher = None
_active = True
def __init__(self, path, overlayswitcher):
self.path = pa... | [
"import cv2\r\n",
"import numpy as np\r\n",
"import pylab as pl\r\n",
"\r\n",
"from threading import Thread\r\n",
"from time import sleep\r\n",
"\r\n",
"class DotaLogWatcher():\r\n",
" path = ''\r\n",
" _thread = None\r\n",
" _dota_log = None\r\n",
" _overlayswitcher = None\r\n",
... | [
0,
0,
0,
0,
0,
0,
0,
0.04,
0,
0,
0,
0,
0,
0,
0.16666666666666666,
0.020833333333333332,
0,
0,
0,
0.00980392156862745,
0,
0.1,
0,
0,
0,
0,
0,
0,
0.125,
0,
0.014925373134328358,
0,
0,
0,
0,
0,
0,
0.1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 348 | 0.01494 | false |
# -*- coding: utf-8 -*-
"""
Gestisce i dialoghi e le conversazioni tra due entità.
"""
#= IMPORT ======================================================================
from src.log import log
from src.interpret import interpret
#= CLASSI =====================================================================... | [
"# -*- coding: utf-8 -*-\n",
"\n",
"\"\"\"\n",
"Gestisce i dialoghi e le conversazioni tra due entità.\n",
"\"\"\"\n",
"\n",
"\n",
"#= IMPORT ======================================================================\n",
"\n",
"from src.log import log\n",
"from src.interpret import interpret\n... | [
0,
0,
0,
0,
0,
0,
0,
0.024691358024691357,
0,
0.03333333333333333,
0,
0,
0,
0.024691358024691357,
0,
0,
0,
0,
0,
0,
0,
0.047619047619047616,
0.047619047619047616,
0.03571428571428571,
0.012658227848101266,
0.0125,
0.047619047619047616,
0.047619047619047616,
0,... | 187 | 0.006965 | false |
def get_ps(path_to_dat, diff=0, acf=False, save=False, shape=(512,512), output=False, rmbgr_on=True):
from numpy import memmap, zeros, fft, any
from os.path import basename, join
if output:
output_file = join(output, basename(path_to_dat))
else:
output_file = path_to_dat
serie = mem... | [
"def get_ps(path_to_dat, diff=0, acf=False, save=False, shape=(512,512), output=False, rmbgr_on=True):\n",
" from numpy import memmap, zeros, fft, any\n",
" from os.path import basename, join\n",
" if output:\n",
" output_file = join(output, basename(path_to_dat))\n",
" else:\n",
" ... | [
0.0196078431372549,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.02702702702702703,
0,
0,
0,
0.002352941176470588,
0.038461538461538464,
0.015384615384615385,
0.0196078431372549,
0,
0.09090909090909091,
0.015384615384615385,
0,
0,
0,
0.008849557522123894,
0.016260162... | 50 | 0.015949 | false |
# -*- Mode: python; coding: utf-8; tab-width: 8; indent-tabs-mode: t; -*-
"""
Scraper for http://newlyrics.gomtv.com/
edge
"""
import sys
import socket
import hashlib
import urllib
import re
from utilities import *
from audiofile import AudioFile
__title__ = "GomAudio"
__priority__ = '135'
__lrc__ = True
socket.se... | [
"# -*- Mode: python; coding: utf-8; tab-width: 8; indent-tabs-mode: t; -*-\n",
"\"\"\"\n",
"Scraper for http://newlyrics.gomtv.com/\n",
"\n",
"edge\n",
"\"\"\"\n",
"\n",
"import sys\n",
"import socket\n",
"import hashlib\n",
"import urllib\n",
"import re\n",
"from utilities import *\n",
"f... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.007751937984496124,
0,
0.04,
0,
0,
0,
0,
0,
0,
0,
0.014492753623188406,
0,
0,
0.047619047619047616,
0,
0,
0,
0,
0.05714285714285714,
0.07407407407407407,
0.0909090909090... | 85 | 0.013857 | false |
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"#!/usr/bin/env python\r\n",
"#\r\n",
"# Copyright 2007 Google Inc.\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 obtain a copy of the License at\r\n",
"#\r\n",
"# htt... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0.043478260869565216,
0,
0,
0,
0,
0,
0.07142857142857142,
0... | 220 | 0.010554 | false |
# -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
#
#Copyright 2016 Elder Sanitá Trevisan
#
#This file is part of BulkMail.
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as publish... | [
"# -*- coding: utf-8 -*-\r\n",
"#------------------------------------------------------------------------------\r\n",
"#\r\n",
"#Copyright 2016 Elder Sanitá Trevisan\r\n",
"#\r\n",
"#This file is part of BulkMail.\r\n",
"#This program is free software: you can redistribute it and/or modify\r\n",
"#it ... | [
0,
0.012345679012345678,
0,
0.02564102564102564,
0,
0.030303030303030304,
0.014084507042253521,
0.014084507042253521,
0.014705882352941176,
0.02631578947368421,
0,
0.015151515151515152,
0.015384615384615385,
0.02127659574468085,
0,
0.014705882352941176,
0.013888888888888888,
0.0123... | 147 | 0.038611 | 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.045454545454545456,
0.023809523809523808,
0.022727272727272728,
0.024390243902439025,
0.02564102564102564,
0.025,
0.022727... | 82 | 0.024877 | false |
# -*- coding: utf-8 -*-
import sys, os, re, urllib, codecs, logging, shutil
from datetime import datetime
import time
import markdown2
from setting import *
# 标准化字典键名
stdKey = lambda s: re.sub('[- ]+', '_', s.lower())
# 模板
tplFile = lambda s: '%s.mako' % s
# 创建slug 使用urlQuote
generateSlug = lambda s: urlQuote(s)
# ... | [
"# -*- coding: utf-8 -*-\n",
"import sys, os, re, urllib, codecs, logging, shutil\n",
"from datetime import datetime\n",
"import time\n",
"\n",
"import markdown2\n",
"\n",
"from setting import *\n",
"\n",
"# 标准化字典键名\n",
"stdKey = lambda s: re.sub('[- ]+', '_', s.lower())\n",
"# 模板\n",
"tplFi... | [
0,
0.019230769230769232,
0,
0,
0,
0,
0,
0,
0,
0,
0.0196078431372549,
0,
0.029411764705882353,
0,
0.02702702702702703,
0,
0.022222222222222223,
0,
0.04054054054054054,
0,
0.015873015873015872,
0,
0.05555555555555555,
0.01834862385321101,
0,
0.013888888888888888,
0,... | 142 | 0.011298 | false |
# Copyright 2010 Oliver Sturm <oliver@oliversturm.com> All rights reserved.
from Extensibility.Python import PythonDocumentAction
from Data.Mutable import Rectangle, Layer
from System.Drawing import PointF, SizeF
import math
class FunnyRects(PythonDocumentAction):
def GetName(self):
return "Create funn... | [
"# Copyright 2010 Oliver Sturm <oliver@oliversturm.com> All rights reserved. \n",
"\n",
"from Extensibility.Python import PythonDocumentAction\n",
"from Data.Mutable import Rectangle, Layer\n",
"from System.Drawing import PointF, SizeF\n",
"\n",
"import math\n",
"\n",
"class FunnyRects(PythonDocumen... | [
0.012987012987012988,
0,
0,
0,
0,
0,
0,
0,
0.025,
0,
0,
0,
0,
0.05,
0,
0,
0,
0.1111111111111111,
0,
0,
0,
0,
0,
0,
0,
0,
0.1111111111111111,
0,
0,
0,
0,
0,
0,
0,
0.1111111111111111,
0,
0.1111111111111111,
0
] | 38 | 0.014011 | false |
#!/usr/bin/env python
import sys
import os
import cv2
import numpy as np
import re
pics = re.compile("^.*\.(jpeg|jpg|png)$",re.IGNORECASE) #regEx for pictures
def readCsv(filepath):
imgs,labels = [], []
with open(filepath,"r") as file:
for line in file:
line = line.strip()
splitline = line.split(";")
i... | [
"#!/usr/bin/env python\n",
"\n",
"import sys\n",
"import os\n",
"import cv2\n",
"import numpy as np\n",
"import re\n",
"\n",
"pics = re.compile(\"^.*\\.(jpeg|jpg|png)$\",re.IGNORECASE) #regEx for pictures\n",
"\n",
"def readCsv(filepath):\n",
"\timgs,labels = [], []\n",
"\twith open(filepath... | [
0,
0,
0,
0,
0,
0,
0,
0,
0.05263157894736842,
0,
0.043478260869565216,
0.09090909090909091,
0.058823529411764705,
0.05,
0.043478260869565216,
0.03225806451612903,
0.01818181818181818,
0.02127659574468085,
0.03225806451612903,
0.09090909090909091,
1,
0.05555555555555555,
0.... | 56 | 0.055784 | 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');
clr.AddReference('ZyGames.Tia... | [
"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.019230769230769232,
0.045454545454545456,
0.045454545454545456,
0.045454545454545456,
0.023809523809523808,
0.043478260869565216,
0.022727272727272728,... | 114 | 0.022542 | false |
"""
xml2sql.py
Kailash Nadh, http://nadh.in
October 2011
License: MIT License
Documentation: http://nadh.in/code/xmlutils.py
"""
import codecs
import xml.etree.ElementTree as et
class xml2sql:
def __init__(self, input_file, output_file, encoding='utf-8'):
"""Initialize the class with the paths t... | [
"\"\"\"\n",
"\txml2sql.py\n",
"\tKailash Nadh, http://nadh.in\n",
"\tOctober 2011\n",
"\t\n",
"\tLicense: MIT License\n",
"\tDocumentation: http://nadh.in/code/xmlutils.py\n",
"\"\"\"\n",
"\n",
"import codecs\n",
"import xml.etree.ElementTree as et\n",
"\n",
"class xml2sql:\n",
"... | [
0,
0.08333333333333333,
0.03333333333333333,
0.07142857142857142,
1,
0.034482758620689655,
0.0196078431372549,
0,
0,
0,
0,
0,
0.06666666666666667,
0,
0.015625,
0.015873015873015872,
0.038461538461538464,
0,
0.047619047619047616,
0.02857142857142857,
0.02702702702702703,
0.0... | 139 | 0.04147 | false |
import json
import secrets
import aiohttp
import discord
async def e621(cmd, message, args):
url_base = 'https://e621.net/post/index.json'
if args:
url = url_base + '?tags=' + '+'.join(args)
else:
url = url_base + '?tags=nude'
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; W... | [
"import json\n",
"import secrets\n",
"\n",
"import aiohttp\n",
"import discord\n",
"\n",
"\n",
"async def e621(cmd, message, args):\n",
" url_base = 'https://e621.net/post/index.json'\n",
" if args:\n",
" url = url_base + '?tags=' + '+'.join(args)\n",
" else:\n",
" url... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.009009009009009009,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.01020408163265306,
0,
0,
0
] | 30 | 0.00064 | false |
from google.appengine.ext import db
from google.appengine.ext.db import djangoforms
from django.forms import *
import re
#class Country(db.Model):
# def __unicode__(self):
# return "%s"%(self.key().name())
#
#class TimeZone(Country):
# def __unicode__(self):
# return "%s"%(self.key().na... | [
"from google.appengine.ext import db\r\n",
"from google.appengine.ext.db import djangoforms\r\n",
"from django.forms import *\r\n",
"import re\r\n",
"\r\n",
"#class Country(db.Model):\r\n",
"# def __unicode__(self):\r\n",
"# return \"%s\"%(self.key().name())\r\n",
"#\r\n",
"#class TimeZo... | [
0,
0,
0,
0,
0,
0.037037037037037035,
0,
0,
0,
0.037037037037037035,
0,
0,
0,
0.037037037037037035,
0.02564102564102564,
0.02564102564102564,
0.02040816326530612,
0.02040816326530612,
0.02040816326530612,
0.03571428571428571,
0.024390243902439025,
0.16666666666666666,
0,
... | 66 | 0.022789 | 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
] | 53 | 0 | 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.04878048780487805,
0.05263157894736842,
0.030303030303030304,
0.03225806451612903,
0.06666666666666667,
0.03389830508474576,
0.0882352... | 355 | 0.006522 | false |
# -*- coding: utf-8 -*-
import re
import urlparse
from channelselector import get_thumb
from core import scrapertools
from core import servertools
from core.item import Item
from core.tmdb import Tmdb
from platformcode import logger
from servers.decrypters import expurl
def agrupa_datos(data):
# Agrupa los dat... | [
"# -*- coding: utf-8 -*-\n",
"\n",
"import re\n",
"import urlparse\n",
"\n",
"from channelselector import get_thumb\n",
"from core import scrapertools\n",
"from core import servertools\n",
"from core.item import Item\n",
"from core.tmdb import Tmdb\n",
"from platformcode import logger\n",
"fro... | [
0,
0,
0,
0,
0,
0,
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.010309278350515464,
0.010526315789473684,
0,
0,
0.009009009009009009,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 178 | 0.00206 | 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.05,
0,
0.07142857142857142,
0.019801980198019802,
0.0196078431372549,
0.024390243902439025,
0.0... | 82 | 0.009399 | 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.012658227848101266,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | 34 | 0.001151 | false |
namespace SeriesNamer
{
partial class MoveProgress
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// ... | [
"namespace SeriesNamer\n",
"{\n",
" partial class MoveProgress\n",
" {\n",
" /// <summary>\n",
" /// Required designer variable.\n",
" /// </summary>\n",
" private System.ComponentModel.IContainer components = null;\n",
"\n",
" /// <summary>\n",
" ... | [
0,
0,
0,
0,
0.13636363636363635,
0.025,
0.13043478260869565,
0.014705882352941176,
0,
0.13636363636363635,
0.02127659574468085,
0.13043478260869565,
0.07407407407407407,
0,
0,
0.0196078431372549,
0,
0.05263157894736842,
0,
0.05405405405405406,
0,
0,
0.018867924528301886,
... | 87 | 0.039454 | false |
# -*- encoding: utf-8 -*-
"""
Count.py
Referrence:
http://python.matrix.jp/tips/string/encoding.html#shift-jis
"""
__author__="ymotongpoo <ymotongpoo@gmail.com>"
__date__ ="$2008/12/02 00:48:52$"
__version__="$Revision: 0.10"
__credits__="0x7d8 -- programming training"
import urllib
from xml.dom import minidom
... | [
"# -*- encoding: utf-8 -*-\n",
"\"\"\"\n",
"Count.py\n",
"\n",
"Referrence:\n",
" http://python.matrix.jp/tips/string/encoding.html#shift-jis\n",
"\"\"\"\n",
"\n",
"__author__=\"ymotongpoo <ymotongpoo@gmail.com>\"\n",
"__date__ =\"$2008/12/02 00:48:52$\"\n",
"__version__=\"$Revision: 0.10\"\n... | [
0,
0,
0,
0,
0,
0,
0,
0,
0.02127659574468085,
0.029411764705882353,
0.03333333333333333,
0.022727272727272728,
0,
0.07142857142857142,
0.03571428571428571,
0,
0,
0,
0.019230769230769232,
0,
0.09375,
0.058823529411764705,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | 46 | 0.009338 | false |
# -*- coding: utf-8 -*-
# Copyright 2008, 2009 Mr.Z-man
# This file is part of wikitools.
# wikitools 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 opt... | [
"# -*- coding: utf-8 -*-\r\n",
"# Copyright 2008, 2009 Mr.Z-man\r\n",
"\r\n",
"# This file is part of wikitools.\r\n",
"# wikitools is free software: you can redistribute it and/or modify\r\n",
"# it under the terms of the GNU General Public License as published by\r\n",
"# the Free Software Foundation,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0.3333333333333333,
0,
0,
0,
0,
0.3333333333333333,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.07407407407407407,
0.1111111111111111,
0.0625,
0,
0.034482758620689655,
0.03333333333333333,
0,
0.03571428571428571,
0.045454545454545456,
... | 298 | 0.087643 | false |
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation
# All rights reserved.
#
# MIT License:
# 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 th... | [
"#-------------------------------------------------------------------------\n",
"# Copyright (c) Microsoft Corporation\n",
"# All rights reserved.\n",
"#\n",
"# MIT License:\n",
"# Permission is hereby granted, free of charge, to any person obtaining\n",
"# a copy of this software and associated documen... | [
0.013333333333333334,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.013157894736842105,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.0... | 79 | 0.000709 | false |
# -*- coding: utf-8 -*-
"""
Train algorithms based gradients algorithms
===========================================
.. autofunction:: train_gd
.. autofunction:: train_gdm
.. autofunction:: train_gda
.. autofunction:: train_gdx
.. autofunction:: train_rprop
Train algorithms based on Winner Take All - rule
==========... | [
"# -*- coding: utf-8 -*-\n",
"\"\"\"\n",
"Train algorithms based gradients algorithms\n",
"===========================================\n",
"\n",
".. autofunction:: train_gd\n",
".. autofunction:: train_gdm\n",
".. autofunction:: train_gda\n",
".. autofunction:: train_gdx\n",
".. autofunction:: tr... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
... | 65 | 0.000496 | false |
import re
import csv
import requests
from progressbar import Percentage, ETA, ProgressBar, Bar
import sys
import time
reload(sys)
sys.setdefaultencoding('utf8')
def getSpace():
##r = requests.get(self.url_root).text
##cityname = re.findall(r'gstlp3">[\t\r\n]?\s*(.*) ', f)
##space = re.f... | [
"import re\r\n",
"import csv\r\n",
"import requests\r\n",
"from progressbar import Percentage, ETA, ProgressBar, Bar\r\n",
"import sys\r\n",
"\rimport time\r\n",
"\r\n",
"reload(sys)\r\n",
"sys.setdefaultencoding('utf8')\r\n",
"\r\n",
"def getSpace():\r\n",
" ##r = requests.get(self.url_roo... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.058823529411764705,
0.022727272727272728,
0.015151515151515152,
0.015873015873015872,
0,
0,
0,
0,
0.024390243902439025,
0,
0,
0.05263157894736842,
0,
0,
0.1,
0.013513513513513514,
0,
0,
0,
0.07142857142857142,
0,
0,
0.01... | 61 | 0.012066 | false |
# -*- coding: utf-8 -*-
#------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# Canal para pornhub
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#------------------------------------------------------------
import re
import urlparse
from core import config
from core im... | [
"# -*- coding: utf-8 -*-\n",
"#------------------------------------------------------------\n",
"# pelisalacarta - XBMC Plugin\n",
"# Canal para pornhub\n",
"# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/\n",
"#------------------------------------------------------------\n",
"import re\n",
"... | [
0,
0.016129032258064516,
0,
0,
0,
0.016129032258064516,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.02666666666666667,
0.025477707006369428,
0.024844720496894408,
0,
0,
0,
0.041666666666666664,
0,
0,
0,
0,
0,
0,
0.011363636363636364,
0.083333333333... | 119 | 0.030586 | false |
#
# Extract NPC Example
#
# Extract NPCs from Plugins
#
from shared.util import *
import System
import FalloutSnip.Domain
from FalloutSnip.Domain.Model import BaseRecord, Record, Plugin, SubRecord, GroupRecord
from System import TimeSpan, UInt32
from System.Diagnostics import Stopwatch
creatureKYWDs = (0x0001397A,... | [
"#\n",
"# Extract NPC Example\n",
"#\n",
"# Extract NPCs from Plugins\n",
"#\n",
"from shared.util import *\n",
"\n",
"import System\n",
"import FalloutSnip.Domain\n",
"from FalloutSnip.Domain.Model import BaseRecord, Record, Plugin, SubRecord, GroupRecord\n",
"from System import TimeSpan, UIn... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.011363636363636364,
0,
0,
0,
0.03488372093023256,
0,
0.038461538461538464,
0.014492753623188406,
0.2,
0.015625,
0.07692307692307693,
0.041666666666666664,
0.02564102564102564,
0.047619047619047616,
0.02564102564102564,
0.021739130434782608... | 100 | 0.094477 | false |
# ==============================================================================
# onep.py
# Main API library class for Exosite's One Platform as exposed over HTTP JSON
# RPC
# ==============================================================================
#
# Copyright (c) 2016, Exosite LLC
# All rights reserved.
#
im... | [
"# ==============================================================================\n",
"# onep.py\n",
"# Main API library class for Exosite's One Platform as exposed over HTTP JSON\n",
"# RPC\n",
"# ==============================================================================\n",
"#\n",
"# Copyright (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.011764705882352941,
0,
0.011494252873563218,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.009900... | 533 | 0.000656 | false |
# coding:UTF-8
#===============================================================================
# Make global object available
#===============================================================================
import mediaitem
import contextmenu
import chn_class
from regexer import Regexer
from logger import... | [
"# coding:UTF-8\r\n",
"\r\n",
"#===============================================================================\r\n",
"# Make global object available\r\n",
"#===============================================================================\r\n",
"import mediaitem\r\n",
"import contextmenu\r\n",
"import ... | [
0,
0,
0.024390243902439025,
0,
0.024390243902439025,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.024390243902439025,
0,
0.024390243902439025,
0,
0,
0,
0,
0,
0.023255813953488372,
0,
0,
0,
0.011904761904761904,
0.010638297872340425,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 220 | 0.002026 | false |
import sublime
from ..libs.view_helpers import *
from ..libs.text_helpers import *
from .event_hub import EventHub
class CompletionEventListener:
def __init__(self):
self.completions_ready = False
self.completions_loc = None
# Used to check if the completion is out of date
self.c... | [
"import sublime\n",
"\n",
"from ..libs.view_helpers import *\n",
"from ..libs.text_helpers import *\n",
"from .event_hub import EventHub\n",
"\n",
"\n",
"class CompletionEventListener:\n",
" def __init__(self):\n",
" self.completions_ready = False\n",
" self.completions_loc = No... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0.011764705882352941,
0,
0,
0,
... | 158 | 0.001362 | false |
#!/usr/bin/env python
#This file is part of Acca plugin.
# Acca plugin 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.
#... | [
"#!/usr/bin/env python\n",
"#This file is part of Acca plugin.\n",
"\n",
"# Acca plugin 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.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.05263157894736842,
0,
0,
0,
0,
0,
0.008771929824561403,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.022727272727272728,... | 113 | 0.006202 | false |
import numpy as np
import mahotas as mh
image = mh.imread('scene00.jpg')
from matplotlib import pyplot as plt
plt.imshow(image)
plt.show()
image = mh.colors.rgb2grey(image, dtype=np.uint8)
plt.imshow(image) # Display the image
plt.gray()
thresh = mh.thresholding.otsu(image)
print('Otsu threshold is {}.'.format(thresh)... | [
"import numpy as np\n",
"import mahotas as mh\n",
"image = mh.imread('scene00.jpg')\n",
"from matplotlib import pyplot as plt\n",
"plt.imshow(image)\n",
"plt.show()\n",
"image = mh.colors.rgb2grey(image, dtype=np.uint8)\n",
"plt.imshow(image) # Display the image\n",
"plt.gray()\n",
"thresh = mh.th... | [
0,
0,
0,
0.02702702702702703,
0,
0,
0,
0.02631578947368421,
0,
0,
0,
0,
0,
0,
0.027777777777777776,
0,
0,
0.1724137931034483,
0,
0,
0,
0.06666666666666667,
0.029411764705882353,
0.043478260869565216,
0.037037037037037035,
0.025,
0,
0,
0,
0,
0.0344827586206... | 186 | 0.015812 | false |
"""Define the ExternalLink class."""
from typing import List, Optional
from regex import compile as regex_compile
from ._wikitext import BRACKET_EXTERNAL_LINK_URL, SubWikiText
URL_MATCH = regex_compile(BRACKET_EXTERNAL_LINK_URL).match
class ExternalLink(SubWikiText):
__slots__ = ()
@property
def ur... | [
"\"\"\"Define the ExternalLink class.\"\"\"\n",
"\n",
"from typing import List, Optional\n",
"\n",
"from regex import compile as regex_compile\n",
"\n",
"from ._wikitext import BRACKET_EXTERNAL_LINK_URL, SubWikiText\n",
"\n",
"URL_MATCH = regex_compile(BRACKET_EXTERNAL_LINK_URL).match\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... | 83 | 0 | 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.014705882352941176,
0.014925373134328358,
0,
0,
0,
0,
0,
0.014705882352941176,
0,
0.021052631578947368,
0.02380952... | 166 | 0.002241 | false |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
A set of miscellaneous functions to save me from headaches related
to Python 2/3 compatibility issues and other common annoyances.
'''
import sys
import unicodedata
from binascii import hexlify, unhexlify
try:
from codecs import decode
except ImportError:
p... | [
"#!/usr/bin/env python\n",
"# -*- coding: utf-8 -*-\n",
"\n",
"\n",
"'''\n",
"A set of miscellaneous functions to save me from headaches related\n",
"to Python 2/3 compatibility issues and other common annoyances.\n",
"'''\n",
"\n",
"\n",
"import sys\n",
"import unicodedata\n",
"from binasci... | [
0,
0,
0,
0,
0,
0,
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,... | 167 | 0.010845 | false |
def cargarListas(nombrearchivo,lista):
try:
archivo = open(nombrearchivo, "rt")
while True:
linea = archivo.readline()
if not linea:
break
linea = linea[:-1]
listaNombre, Articulos = linea.split("=")
if Articulos.st... | [
"\n",
"def cargarListas(nombrearchivo,lista): \n",
" try:\n",
" archivo = open(nombrearchivo, \"rt\") \n",
" while True: \n",
" linea = archivo.readline() \n",
" if not linea: \n",
" break \n",
" linea = linea[:-1] \n",
" ... | [
0,
0.05,
0,
0.022222222222222223,
0.047619047619047616,
0.025,
0.037037037037037035,
0.043478260869565216,
0.03125,
0,
0,
0,
0.05,
0,
0.01818181818181818,
0.04,
0.08333333333333333,
0,
0,
0,
0.3333333333333333,
0.047619047619047616,
0,
0.021739130434782608,
0.03333333... | 52 | 0.025038 | 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.018867924528301886,
0.023255813953488372,
0,
0.02127659574468085,
0.06666666666666667,
0.0526315789473684... | 128 | 0.007643 | false |
#-------------------------------------------------------------------------
# Copyright (c) Microsoft. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apa... | [
"#-------------------------------------------------------------------------\n",
"# Copyright (c) Microsoft. All rights reserved.\n",
"#\n",
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n",
"# You may obtain a ... | [
0.013333333333333334,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.013157894736842105,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 92 | 0.000288 | false |
# -*- coding: utf-8 -*-
"""
Enumerazione delle tipologie di log.
"""
from src.element import EnumElement, finalize_enumeration
from src.enums import TRUST
#-------------------------------------------------------------------------------
name = __name__[__name__.rfind(".")+1 : ]
elements = []
cycle_on_last = False
... | [
"# -*- coding: utf-8 -*-\n",
"\n",
"\"\"\"\n",
"Enumerazione delle tipologie di log.\n",
"\"\"\"\n",
"\n",
"from src.element import EnumElement, finalize_enumeration\n",
"from src.enums import TRUST\n",
"\n",
"\n",
"#-------------------------------------------------------------------------------... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.024691358024691357,
0,
0.047619047619047616,
0,
0,
0,
0,
0.024691358024691357,
0,
0,
0,
0,
0.02127659574468085,
0.02564102564102564,
0.02564102564102564,
0.02564102564102564,
0.02564102564102564,
0,
0.03225806451612903,
0,
0... | 115 | 0.01126 | false |
# -*- coding: utf-8 -*-
import json
def init():
languages = ['en']
ngrampath = 'C:/Users/Clemens/My Documents/My Dropbox/WikiNetworks/Master_Projekt/ngrams/'
for language in languages:
print language
onegrampath = ngrampath + language + '/1gram/total.sorted'
twogrampath =... | [
"# -*- coding: utf-8 -*-\n",
"import json\n",
"\n",
"def init():\n",
" languages = ['en']\n",
" ngrampath = 'C:/Users/Clemens/My Documents/My Dropbox/WikiNetworks/Master_Projekt/ngrams/'\n",
" \n",
" for language in languages:\n",
" \n",
" print language\n",
" onegra... | [
0,
0,
0,
0.08333333333333333,
0,
0.010526315789473684,
0.2,
0,
0.2,
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.011235955056179775,
0,
0.011627906976744186,
0,
0.018518518518518517,
0,
0,
0,
... | 57 | 0.015529 | false |
# -*- coding: utf-8 -*-
"""
!!! select one of the two functions to run at the very bottom !!!
!!! select 'rays', 'hybrid' or 'wave' below !!!
!!! select a desired emittance case below !!!
Described in the __init__ file.
"""
__author__ = "Konstantin Klementiev", "Roman Chernikov"
__date__ = "07 Feb 2018"
import os, sy... | [
"# -*- coding: utf-8 -*-\n",
"\"\"\"\n",
"!!! select one of the two functions to run at the very bottom !!!\n",
"!!! select 'rays', 'hybrid' or 'wave' below !!!\n",
"!!! select a desired emittance case below !!!\n",
"\n",
"Described in the __init__ file.\n",
"\"\"\"\n",
"__author__ = \"Konstantin Kl... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.03614457831325301,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
... | 719 | 0.001417 | false |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This experiment was created using PsychoPy3 Experiment Builder (v3.1.1),
on Thu May 9 17:56:54 2019
If you publish work using this script please cite the PsychoPy publications:
Peirce, JW (2007) PsychoPy - Psychophysics software in Python.
Journal of N... | [
"#!/usr/bin/env python\n",
"# -*- coding: utf-8 -*-\n",
"\"\"\"\n",
"This experiment was created using PsychoPy3 Experiment Builder (v3.1.1),\n",
" on Thu May 9 17:56:54 2019\n",
"If you publish work using this script please cite the PsychoPy publications:\n",
" Peirce, JW (2007) PsychoPy - Psych... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.011235955056179775,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.05,
0,
0,
0,
0,
0,
0.012345679012345678,
0.009900990099009901,
0,
0,
0,
0.024390243902439025,
0.02564... | 175 | 0.005935 | 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,
... | 1,463 | 0.001961 | false |
# encoding: utf-8
#
# every function directly related to gamelogic is in this module
#
from os.path import isfile #,remove as osRemove
from random import randint
from pygame import Surface, Rect, QUIT, KEYDOWN, KEYUP, MOUSEMOTION, MOUSEBUTTONDOWN, MOUSEBUTTONUP
#~ from pygame.draw import rect as drawRect
from pygam... | [
"# encoding: utf-8\n",
"#\n",
"# every function directly related to gamelogic is in this module\n",
"#\n",
"\n",
"from os.path import isfile #,remove as osRemove\n",
"from random import randint\n",
"\n",
"from pygame import Surface, Rect, QUIT, KEYDOWN, KEYUP, MOUSEMOTION, MOUSEBUTTONDOWN, MOUSEBUTT... | [
0,
0,
0,
0,
0,
0.041666666666666664,
0,
0,
0.01,
0,
0.022727272727272728,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.02857142857142857,
0,
0,
0.030303030303030304,
0,
0,
0,
0.03125,
0,
0,
0.030303030303030304,
0,
0,
0.011494252873563218,
0,
0.0344827... | 191 | 0.014836 | 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.02631578947368421,
0.021739130434782608,
0,
0.07142857142857142,
0.01680672268907563,
0.06666666666666667... | 77 | 0.010385 | false |
# -*- coding: utf-8 -*-
# ProjectEuler/src/python/problem026.py
#
# Reciprocal cycles
# =================
# Published on Friday, 13th September 2002, 06:00 pm
#
# A unit fraction contains 1 in the numerator. The decimal representation of
# the unit fractions with denominators 2 to 10 are given: 1/2= 0.5 1/3=
# 0.... | [
"# -*- coding: utf-8 -*-\n",
"# ProjectEuler/src/python/problem026.py\n",
"#\n",
"# Reciprocal cycles\n",
"# =================\n",
"# Published on Friday, 13th September 2002, 06:00 pm\n",
"#\n",
"# A unit fraction contains 1 in the numerator. The decimal representation of\n",
"# the unit fractions ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0.037037037037037035,
0
] | 43 | 0.002799 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.