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 |
|---|---|---|---|---|---|
# -*- coding: utf-8 -*-
# ------------------------------------------------------------
# streamondemand - XBMC Plugin
# Conector para allmyvideos
# http://www.mimediacenter.info/foro/viewforum.php?f=36
# ------------------------------------------------------------
import re
from core import logger
from core import s... | [
"# -*- coding: utf-8 -*-\n",
"# ------------------------------------------------------------\n",
"# streamondemand - XBMC Plugin\n",
"# Conector para allmyvideos\n",
"# http://www.mimediacenter.info/foro/viewforum.php?f=36\n",
"# ------------------------------------------------------------\n",
"\n",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.01020408163265306,
0,
0,
0.010752688172043012,
0.008403361344537815,
0.023809523809523808,
0,
0,
0,
0,
0,
0.011764705882352941,
0,
0,
0,
0.011363636363636364,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 126 | 0.001298 | false |
#coding:utf-8
#-------------------------------------------------------------------------------
import arcpy
import os.path
# フィーチャクラスの作成と属性情報コピーの準備
def setup(input,output):
# 出力パスの取得
out_dir = os.path.dirname(output)
out_name = os.path.basename(output)
# 入力データの情報を取得
in_desc = arcpy.Describe(inp... | [
"#coding:utf-8\n",
"#-------------------------------------------------------------------------------\n",
"\n",
"import arcpy\n",
"import os.path\n",
"\n",
"# フィーチャクラスの作成と属性情報コピーの準備\n",
"def setup(input,output):\n",
"\n",
" # 出力パスの取得\n",
" out_dir = os.path.dirname(output)\n",
" out_na... | [
0.07142857142857142,
0.024691358024691357,
0,
0,
0,
0,
0,
0.08,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.08641975308641975,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.024390243902439025,
0,
0,
0,
0,
0.02040816326530612,
0... | 138 | 0.014858 | false |
# Copied (and slightly altered) from script.pseudotv.live
# with permission of Lunatixz:
# http://forum.xbmc.org/showthread.php?tid=177296
# On 21st January 2014
# https://github.com/Lunatixz/script.pseudotv.live/tree/master/resources/lib/parsers
import os
import parsers.MP4Parser as MP4Parser
import parsers.AVI... | [
"# Copied (and slightly altered) from script.pseudotv.live\n",
"# with permission of Lunatixz:\n",
"# http://forum.xbmc.org/showthread.php?tid=177296\n",
"# On 21st January 2014\n",
"# https://github.com/Lunatixz/script.pseudotv.live/tree/master/resources/lib/parsers\n",
"\n",
"import os\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
] | 52 | 0 | false |
#######################################
## Bogentimer mit GPIO - Ansteuerung ##
## v1.0 - 04.12.2016 - by gadrecs ##
#######################################
#Bibliotheken einbinden
import RPi.GPIO as GPIO # Ansteuerung der GPIO-Pins
import time # Zeitmodul
import tkinter as tk # GUI-Modul
import ... | [
"#######################################\r\n",
"## Bogentimer mit GPIO - Ansteuerung ##\r\n",
"## v1.0 - 04.12.2016 - by gadrecs ##\r\n",
"#######################################\r\n",
"\r\n",
"#Bibliotheken einbinden\r\n",
"import RPi.GPIO as GPIO\t\t\t# Ansteuerung der GPIO-Pins\r\n",
"import tim... | [
0,
0.024390243902439025,
0.024390243902439025,
0,
0,
0.04,
0,
0,
0,
0.02,
0,
0,
0,
0,
0.037037037037037035,
0,
0,
0.041666666666666664,
0,
0,
0.05555555555555555,
0,
0.01639344262295082,
0,
0,
0,
0,
0,
0,
0.021739130434782608,
0.025,
0.023809523809523808... | 292 | 0.044909 | false |
# -*- coding: UTF-8 -*-
''' Модуль для работы с нечеткими множествами
Модуль реализует функциональность аппарата нечеткой логики в части работы с
нечеткими множествами. Он включает:
- абстрактный класс нечеткого множества,
- шаблоны для создания классификаторов различных видов.
В основном, модуль предназнач... | [
"# -*- coding: UTF-8 -*-\n",
"\n",
"''' Модуль для работы с нечеткими множествами\n",
"\n",
"Модуль реализует функциональность аппарата нечеткой логики в части работы с\n",
"нечеткими множествами. Он включает:\n",
" - абстрактный класс нечеткого множества,\n",
" - шаблоны для создания классифика... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.041666666666666664,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | 493 | 0.001082 | false |
#!/usr/bin/env python
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#---------------------------------------------------------------... | [
"#!/usr/bin/env python\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.028985507246376812,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 61 | 0.000909 | 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.02127659574468085,
0.018518518518518517,
0.017543859649122806,
0.017543859649122... | 70 | 0.011605 | false |
#coding: utf-8
__author__ = 'AS126'
from html.parser import HTMLParser
from urllib.request import urlopen
import re
class spider(HTMLParser):
def __init__(self):
HTMLParser.__init__(self)
self.link=[]
def handle_starttag(self, tag, attrs):
title=False
link_re='.*迅雷会员.*'
... | [
"#coding: utf-8\n",
"__author__ = 'AS126'\n",
"\n",
"from html.parser import HTMLParser\n",
"from urllib.request import urlopen\n",
"import re\n",
"\n",
"class spider(HTMLParser):\n",
" def __init__(self):\n",
" HTMLParser.__init__(self)\n",
" self.link=[]\n",
" def handle_... | [
0.06666666666666667,
0,
0,
0,
0,
0,
0,
0.038461538461538464,
0,
0,
0.047619047619047616,
0.023255813953488372,
0.05,
0.037037037037037035,
0,
0,
0,
0,
0.023255813953488372,
0.02631578947368421,
0.018867924528301886,
0.02564102564102564,
0.023255813953488372,
0.021276595... | 36 | 0.016444 | false |
"""
Some shared functions
.. deprecated:: 0.6.3
Should be moved to different places and this file removed,
but it needs refactoring.
"""
from __future__ import division
# Libraries.
import hashlib
import os
import stat
import subprocess
import sys
from binascii import hexlify
# Project imports.
import highlevel... | [
"\"\"\"\n",
"Some shared functions\n",
"\n",
".. deprecated:: 0.6.3\n",
" Should be moved to different places and this file removed,\n",
" but it needs refactoring.\n",
"\"\"\"\n",
"from __future__ import division\n",
"\n",
"# Libraries.\n",
"import hashlib\n",
"import os\n",
"import stat\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 255 | 0.000836 | false |
"""
trending information is computed by comparing how frequently are individual concepts/categories
mentioned in the articles. By default trends are computed by comparing the total number of mentions of a concept/category
in the last two days compared to the number of mentions in the two weeks before. The trend for ea... | [
"\"\"\"\n",
"trending information is computed by comparing how frequently are individual concepts/categories\n",
"mentioned in the articles. By default trends are computed by comparing the total number of mentions of a concept/category\n",
"in the last two days compared to the number of mentions in the two we... | [
0,
0.010416666666666666,
0.00819672131147541,
0.008547008547008548,
0.008695652173913044,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.058823529411764705,
0.06896551724137931,
0.03508771929824561,
0.044444444444444446,
0,
0,
0.008547008547008548,
0,
0,
0.0114942528735632... | 105 | 0.01827 | false |
#!/usr/bin/env python2
# -*- coding: UTF-8 -*-
# 2014 - Anonymous
def decode(string):
import base64
s = ''
str = _reverse(string)
for x in range(0,len(str)):
s += _decode_char(str[x])
return base64.b64decode(s)
def _reverse(s):
string = ''
length = len(s)-3
while length > ... | [
"#!/usr/bin/env python2\n",
"# -*- coding: UTF-8 -*-\n",
"# 2014 - Anonymous\n",
"\n",
"def decode(string):\n",
" import base64\n",
" s = ''\n",
" str = _reverse(string)\n",
" for x in range(0,len(str)):\n",
" s += _decode_char(str[x])\n",
" return base64.b64decode(s)\n",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0.03125,
0,
0,
0.2,
0.058823529411764705,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.02127659574468085,
0.014925373134328358,
0,
0,
0.2,
0.047619047619047616,
0.006944444444444444,
0.006944444444444444,
0.02857142857142857,
0.0212765957446... | 78 | 0.009119 | 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.024390243902439025,
0,
0.07142857142857142,
0.024691358024691357,
0.014925373134328358,
0.066666666666666... | 72 | 0.01033 | false |
# -*- coding: utf-8 -*-
#
# Version 1.1
"""
Le module lycee est un module python réalisé par le groupe AMIENS PYTHON
est à pour objectif de simplifier un certain nombre de manipulations
avec python au lycée (cosinus en degré, calcul d'une moyenne d'une liste,
représentation statistiques variées, ...)
Pour l'utiliser... | [
"# -*- coding: utf-8 -*-\n",
"#\n",
"# Version 1.1\n",
"\n",
"\"\"\"\n",
"Le module lycee est un module python réalisé par le groupe AMIENS PYTHON\n",
"est à pour objectif de simplifier un certain nombre de manipulations\n",
"avec python au lycée (cosinus en degré, calcul d'une moyenne d'une liste,\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.1,
0.027777777777777776,
0.09090909090909091,
0.02586206896551724,
0,
0,
0,
0,
0,
0.03333333333333333,
0,
0,
0,
0.011627906976744186,
0,
0,
0,
0.041666666666666... | 1,012 | 0.023111 | false |
class Tally:
def __init__(self):
self.reset()
self.startTime = 0.0
self.sum = 0.0
self._sum_of_squares = 0
self._integral = 0.0 # time - weighted sum
self._integral2 = 0.0 # time - weighted sum of squares
def observe(self, y, t = None):
t = 0
... | [
"class Tally:\n",
" def __init__(self):\n",
" self.reset()\n",
" self.startTime = 0.0\n",
" self.sum = 0.0\n",
" self._sum_of_squares = 0\n",
" self._integral = 0.0 # time - weighted sum\n",
" self._integral2 = 0.0 # time - weighted sum of squares\n",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.05555555555555555,
0,
0,
0.016129032258064516,
0,
0,
0,
0,
0,
0,
0,
0,
0.06451612903225806,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.05405405405405406,
0,
0.011764705882352941,
... | 76 | 0.005477 | false |
# -*- coding: utf-8 -*-
#------------------------------------------------------------
# seriesly - XBMC Plugin
# Conector para allmyvideos
# http://blog.tvalacarta.info/plugin-xbmc/seriesly/
#------------------------------------------------------------
import urlparse,urllib2,urllib,re
import os
import re
from core ... | [
"# -*- coding: utf-8 -*-\n",
"#------------------------------------------------------------\n",
"# seriesly - XBMC Plugin\n",
"# Conector para allmyvideos\n",
"# http://blog.tvalacarta.info/plugin-xbmc/seriesly/\n",
"#------------------------------------------------------------\n",
"\n",
"import urlpa... | [
0,
0.016129032258064516,
0,
0,
0,
0.016129032258064516,
0,
0.11764705882352941,
0,
0,
0,
0,
0,
0,
0.025,
0,
0.08571428571428572,
0,
0,
0,
0,
0.03225806451612903,
0.0051813471502590676,
0.015151515151515152,
0,
0,
0.023255813953488372,
0.01639344262295082,
0.11... | 176 | 0.016352 | false |
# -*- coding: utf-8 -*-
'''
Core BPMN Package - Service
'''
# The MIT License (MIT)
# Copyright (c) 2014 Roland Bettinelli
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restric... | [
"# -*- coding: utf-8 -*-\n",
"\n",
"'''\n",
"Core BPMN Package - Service\n",
"'''\n",
"\n",
"# The MIT License (MIT)\n",
"\n",
"# Copyright (c) 2014 Roland Bettinelli\n",
"\n",
"# Permission is hereby granted, free of charge, to any person obtaining a copy\n",
"# of this software and associate... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.03333333333333333,
0,
0,
0,
0,
0,
0,
0,
0.07692307692307693,
0,
0.01098901098901099,
0,
0.07692307692307693,
0,
0,
0.111111111111... | 111 | 0.012316 | false |
# -*- coding: utf-8 -*-
"""
!!! select one of the four functions to run at the very bottom !!!
!!! select 'rays', 'hybrid' or 'wave' below !!!
!!! select a desired cut and emittance below !!!
Described in the __init__ file.
"""
__author__ = "Konstantin Klementiev", "Roman Chernikov"
__date__ = "07 Feb 2018"
import os... | [
"# -*- coding: utf-8 -*-\n",
"\"\"\"\n",
"!!! select one of the four functions to run at the very bottom !!!\n",
"!!! select 'rays', 'hybrid' or 'wave' below !!!\n",
"!!! select a desired cut and emittance below !!!\n",
"\n",
"Described in the __init__ file.\n",
"\"\"\"\n",
"__author__ = \"Konstanti... | [
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.024390243902439025,
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... | 994 | 0.001774 | false |
#!/usr/bin/env python3
"""DRP trigger module"""
from construct import Container
from construct import Struct
from construct import UBInt8
from construct import UBInt16
from construct import UBInt32
from construct import Bytes
from empower.main import RUNTIME
from empower.lvapp.lvappserver import ModuleLVAPPWorker
from... | [
"#!/usr/bin/env python3\n",
"\"\"\"DRP trigger module\"\"\"\n",
"from construct import Container\n",
"from construct import Struct\n",
"from construct import UBInt8\n",
"from construct import UBInt16\n",
"from construct import UBInt32\n",
"from construct import Bytes\n",
"from empower.main import RU... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 248 | 0.004293 | false |
import sys
import types
import random
class Seq2seqDataset():
def __init__(self, source_file, target_file,
no_shuffle=False, reverse_output=False):
self.source_file = source_file
self.target_file = target_file
self.src = None
self.trg = None
self.no_shuffle =... | [
"import sys\n",
"import types\n",
"import random\n",
"\n",
"\n",
"class Seq2seqDataset():\n",
"\n",
" def __init__(self, source_file, target_file, \n",
" no_shuffle=False, reverse_output=False):\n",
" self.source_file = source_file\n",
" self.target_file = target_file... | [
0,
0,
0,
0,
0,
0,
0,
0.02,
0.018867924528301886,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.0625,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.038461538461538464,
0,
0.0625,
0,
0,
0,
0,
0.2,
0,
0,
0,
0,
0,
0,
0,
... | 112 | 0.004786 | false |
# -*- coding: utf-8 -*-
# standard
import array
import copy
# local
import popeye
# globals
PIECES = 'KkQqRrBbSsPp'
BLACK = False
WHITE = True
NOTATION = {'K':u'Кр', 'Q':u'Ф', 'R':u'Л', 'B':u'С', 'S':u'К', 'P':u'п'}
NAME = 0
PREV = 1
NEXT = 2
ID = 3
# the main structure to store & manipulate the position
class... | [
"# -*- coding: utf-8 -*-\n",
"\n",
"# standard\n",
"import array\n",
"import copy\n",
"\n",
"# local\n",
"import popeye\n",
"\n",
"# globals\n",
"PIECES = 'KkQqRrBbSsPp'\n",
"BLACK = False\n",
"WHITE = True\n",
"NOTATION = {'K':u'Кр', 'Q':u'Ф', 'R':u'Л', 'B':u'С', 'S':u'К', 'P':u'п'}\n",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.0821917808219178,
0,
0,
0,
0,
0,
0.1111111111111111,
0,
0,
0.07692307692307693,
0,
0,
0.2,
0.012987012987012988,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 1,109 | 0.016223 | false |
# Copyright (c) 2018, LE GOFF Vincent
# 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 noti... | [
"# Copyright (c) 2018, LE GOFF Vincent\n",
"# 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",
"# * Redistribution... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.012345679012345678,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.022727272727272728,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 142 | 0.000413 | false |
# -*- coding: utf-8 -*-
__author__ = 'AlexStarov'
class Process_SessionIDMiddleware(object):
def process_response(self, request, response, ):
"""
Узнаем текущий key session.
Он лежит именно в COOKIES.
"""
sessionid = request.COOKIES.get('sessionid', False, )
... | [
"# -*- coding: utf-8 -*-\n",
"__author__ = 'AlexStarov'\n",
"\n",
"\n",
"class Process_SessionIDMiddleware(object):\n",
" def process_response(self, request, response, ):\n",
" \"\"\"\n",
" Узнаем текущий key session.\n",
" Он лежит именно в COOKIES.\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.011494252873563218,
0,
0,
0,
0,
0,
0.010101010101010102,
0,
0,
0,
0.011494252873563218,
0,
0,
0,
0,
0.01234567901234567... | 220 | 0.001178 | false |
# -*- coding: utf-8 -*-
## @package batch
#
# Generate Maya batch files for testing plug-ins.
# @author Tody
# @date 2015/03/18
import os
import re
## directories ignored by toolDirs().
ignore_dirs = [".git", "batch", "build", "cmake"]
## Autodesk location for Maya installation path.
autodesk_locatio... | [
"# -*- coding: utf-8 -*-\n",
"## @package batch\n",
"#\n",
"# Generate Maya batch files for testing plug-ins.\n",
"# @author Tody\n",
"# @date 2015/03/18\n",
"\n",
"import os\n",
"import re\n",
"\n",
"## directories ignored by toolDirs().\n",
"ignore_dirs = [\".git\", \"batch\",... | [
0,
0.05555555555555555,
0,
0,
0,
0,
0,
0,
0,
0,
0.02631578947368421,
0,
0,
0.02040816326530612,
0,
0,
0.03333333333333333,
0.0625,
0,
0,
0.02857142857142857,
0.05263157894736842,
0,
0,
0,
0,
0.025,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.01724137931034482... | 158 | 0.005585 | 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 |
# 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.029411764705882353,
0.02127659574468085,
0.024390243902439025,
0.03571428571428571,
0,
0.07142857142857142,
0.0194174757281553... | 123 | 0.009645 | false |
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import time
from progressbar import *
examples = []
def example(fn):
try: name = 'Example %d' % int(fn.__name__[7:])
except: name = fn.__name__
def wrapped():
try:
sys.stdout.write('Running: %s\n' % name)
fn()
... | [
"#!/usr/bin/python\n",
"# -*- coding: utf-8 -*-\n",
"\n",
"import sys\n",
"import time\n",
"\n",
"from progressbar import *\n",
"\n",
"examples = []\n",
"def example(fn):\n",
" try: name = 'Example %d' % int(fn.__name__[7:])\n",
" except: name = fn.__name__\n",
"\n",
" def wrapped... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.058823529411764705,
0.019230769230769232,
0.06451612903225806,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.1111111111111111,
0,
0,
0,
0,
0,
0,
0,
0.1111111111111111,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.11111111111111... | 209 | 0.013334 | false |
__author__ = 'Henry, Thomas'
import numpy as np
import cv2
from matplotlib import pyplot as plt
from skimage.measure import structural_similarity as ssim
from ImageRetrieval import CHANNELS
def mean_rgb(image):
"""
:param image:
:return:
"""
# TODO document me thomas!
b, g, r, alpha = cv2.mean(image)
return... | [
"__author__ = 'Henry, Thomas'\n",
"\n",
"import numpy as np\n",
"import cv2\n",
"from matplotlib import pyplot as plt\n",
"from skimage.measure import structural_similarity as ssim\n",
"\n",
"from ImageRetrieval import CHANNELS\n",
"\n",
"\n",
"def mean_rgb(image):\n",
"\t\"\"\"\n",
"\t:para... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.2,
0.06666666666666667,
0.1,
0.2,
0.03571428571428571,
0.029411764705882353,
0.0625,
0,
0,
0,
0.2,
0,
0.058823529411764705,
0.058823529411764705,
0.1,
0.2,
0,
0.03571428571428571,
0.024390243902439025,
0.01639344262295082... | 176 | 0.04605 | false |
"""
Definition of urls for RadioStreamer.
"""
from datetime import datetime
from django.conf.urls import url
import django.contrib.auth.views
import app.forms
import app.views
# Uncomment the next lines to enable the admin:
# from django.conf.urls import include
# from django.contrib import admin
# admin.autodiscov... | [
"\"\"\"\n",
"Definition of urls for RadioStreamer.\n",
"\"\"\"\n",
"\n",
"from datetime import datetime\n",
"from django.conf.urls import url\n",
"import django.contrib.auth.views\n",
"\n",
"import app.forms\n",
"import app.views\n",
"\n",
"# Uncomment the next lines to enable the admin:\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.011904761904761904,
0,
0.011494252873563218,
0.011111111111111112,
0.009523809523809525,
0,
0,
0.011904761904761904,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 60 | 0.000932 | false |
#!/usr/bin/python2.7
# -*- coding: utf-8 -*-
#-------------------------------------------------------------------------------
# Name: pmaker
# Purpose:
#
# Author: casa
#
# Created: 14/10/2012
# Copyright: (c) casa 2012
# Licence: <your licence>
#--------------------------------------------------... | [
"#!/usr/bin/python2.7\n",
"# -*- coding: utf-8 -*-\n",
"#-------------------------------------------------------------------------------\n",
"# Name: pmaker\n",
"# Purpose:\n",
"#\n",
"# Author: casa\n",
"#\n",
"# Created: 14/10/2012\n",
"# Copyright: (c) casa 2012\n",
"# Licen... | [
0,
0,
0.024691358024691357,
0,
0,
0,
0,
0,
0,
0,
0,
0.024691358024691357,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.08333333333333333,
0,
0.03389830508474576,
0,
0,
0,
0.020202020202020204,
0,
0,
0.014705882352941176,
0,
0.0625,
... | 129 | 0.011887 | false |
#!/usr/bin/python
"""
literal ::= stringliteral | integer | floatnumber
expression_list ::= expression ( "," expression )* [","]
assignment_stmt ::= target "=" expression_list
target ::= identifier
atom ::= identifier | literal
# We use this for imported modules lookup
attributeref ::= primary "."... | [
"#!/usr/bin/python\n",
"\n",
"\"\"\"\n",
"literal ::= stringliteral | integer | floatnumber\n",
"expression_list ::= expression ( \",\" expression )* [\",\"]\n",
"assignment_stmt ::= target \"=\" expression_list\n",
"target ::= identifier\n",
"atom ::= identifier | literal\n",
"# ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.02702702702702703,
0,
0,
0,
0,
0,
0.023255813953488372,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... | 204 | 0.007341 | false |
# -*- coding: utf-8 -*-
#放弃异步吧,先从Flask开始,一步一步来----2016年2月21日
import logging; logging.basicConfig(level=logging.DEBUG)
import asyncio, os, json, time
from datetime import datetime
from aiohttp import web
###这些全都是异步,aiohttp就是异步,所以要async
async def hellow_world(request):
text=b'<h1>hellow world!</h1>'
###最简单的hell... | [
"# -*- coding: utf-8 -*-\n",
"#放弃异步吧,先从Flask开始,一步一步来----2016年2月21日\n",
"import logging; logging.basicConfig(level=logging.DEBUG)\n",
"import asyncio, os, json, time\n",
"from datetime import datetime\n",
"from aiohttp import web\n",
"\n",
"###这些全都是异步,aiohttp就是异步,所以要async\n",
"async def hellow_world(... | [
0,
0.02702702702702703,
0.017543859649122806,
0.03225806451612903,
0,
0,
0,
0.03125,
0.030303030303030304,
0.02857142857142857,
0.027777777777777776,
0,
0,
0.04,
0,
0,
0.008620689655172414,
0.029411764705882353,
0,
0,
0.02,
0.03333333333333333,
0,
0,
0,
0,
0,
0,... | 42 | 0.010087 | false |
#!/usr/bin/python
#-*- coding: utf-8 -*-
'''
Created on 2013-5-15
change all cpp in LOCAL_SRC_FILES
'''
import os
#定义 LOG信息到屏幕和txt
def loginfo(message):
print(message)
logfile.write(' ')
logfile.write(str(message))
logfile.write('\n')
#定义 os walk遍历所有文件
def walk_dir(indir, topdown=True):
for ... | [
"#!/usr/bin/python\n",
"#-*- coding: utf-8 -*-\n",
"\n",
"'''\n",
"Created on 2013-5-15\n",
"\n",
"change all cpp in LOCAL_SRC_FILES\n",
"'''\n",
"\n",
"import os\n",
"\n",
"\n",
"#定义 LOG信息到屏幕和txt\n",
"def loginfo(message):\n",
" print(message)\n",
" logfile.write(' ')\n",
" ... | [
0,
0.043478260869565216,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.058823529411764705,
0,
0,
0,
0,
0,
0,
0.05555555555555555,
0.02857142857142857,
0,
0.04,
0,
0,
0,
0,
0.06349206349206349,
0.02127659574468085,
0,
0,
0.024390243902439025,
0.047619047619047616,
... | 82 | 0.046674 | false |
from collections import defaultdict, OrderedDict
from logging import getLogger
from .hdlinterface import *
from . import libs
from .env import env
from .ahdl import *
logger = getLogger(__name__)
class FSM(object):
def __init__(self, name, scope):
self.name = name
self.scope = scope
self... | [
"from collections import defaultdict, OrderedDict\n",
"from logging import getLogger\n",
"from .hdlinterface import *\n",
"from . import libs\n",
"from .env import env\n",
"from .ahdl import *\n",
"\n",
"logger = getLogger(__name__)\n",
"\n",
"\n",
"class FSM(object):\n",
" def __init__(sel... | [
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 332 | 0.000291 | false |
#!python3
# -*- coding:utf-8 -*-
import os
import sys
import time
import ctypes
import shutil
import subprocess
IsPy3 = sys.version_info[0] >= 3
if IsPy3:
import winreg
else:
import codecs
import _winreg as winreg
BuildType = 'Release'
IsRebuild = True
Build = 'Rebuild'
Update = False
C... | [
"#!python3\r\n",
"# -*- coding:utf-8 -*-\r\n",
"import os\r\n",
"import sys\r\n",
"import time\r\n",
"import ctypes\r\n",
"import shutil\r\n",
"import subprocess\r\n",
"IsPy3 = sys.version_info[0] >= 3\r\n",
"if IsPy3:\r\n",
" import winreg\r\n",
"else:\r\n",
" import codecs\r\n",
" ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.034482758620689655,
0,
0.058823529411764705,
0.0425531914893617,
0.05128205128205128,
0.029850746268656716,
0.029411764705882353,
0.06451612903225806,
0.03076923076923077,
0.08... | 343 | 0.006242 | false |
from bottle import route, view, request, response
from datetime import datetime
import sqlite3
from doctors_HISP import doctors_HISP
from loginFailed import login_failed
@route('/fitBitConnect')
@view('fitBitConnect')
def fitBitConnect():
return dict(message='Connect your Fitbit', year=datetime.now().year)
@rout... | [
"from bottle import route, view, request, response\n",
"from datetime import datetime\n",
"import sqlite3\n",
"from doctors_HISP import doctors_HISP\n",
"from loginFailed import login_failed\n",
"@route('/fitBitConnect')\n",
"@view('fitBitConnect')\n",
"def fitBitConnect():\n",
" return dict(mess... | [
0,
0,
0,
0,
0,
0.04,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.011627906976744186,
0.013157894736842105,
0,
0,
0,
0,
0,
0,
1
] | 32 | 0.033275 | false |
#!/usr/bin/python
#coding:utf-8
import MySQLdb
class MySQLClass:
user = ''
host = ''
passwd = ''
port = 3306
DB = ''
cur = ''
sql = ''
def __init__(self,host,port,user,passwd):
self.user = user
self.host = ho... | [
"#!/usr/bin/python\r\n",
"#coding:utf-8\r\n",
"import MySQLdb\r\n",
"class MySQLClass:\r\n",
" user = ''\r\n",
" host = ''\r\n",
" passwd = ''\r\n",
" port = 3306\r\n",
" DB = ''\r\n",
" cur = ''\r\n",
" sql = ''\r\n",
"\r\n",
" def __i... | [
0,
0.06666666666666667,
0,
0.05263157894736842,
0.05263157894736842,
0,
0,
0,
0,
0,
0,
0,
0.0784313725490196,
0.029411764705882353,
0,
0,
0,
0.03333333333333333,
0.05555555555555555,
0.043478260869565216,
0.0625,
0.03333333333333333,
0,
0,
0.18181818181818182,
0,
... | 51 | 0.032918 | false |
from scipy import signal
from scipy import optimize
from numpy import mean
import ModifiedGaussianModel as MGM
import numpy as np
import matplotlib.pyplot as plt
from numpy import mean
import frechet
import math
center_error = 6
threshold_center_error = 3
# input the whole spectrum, and params_reference(a dict) read... | [
"from scipy import signal\n",
"from scipy import optimize\n",
"from numpy import mean\n",
"import ModifiedGaussianModel as MGM\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"from numpy import mean\n",
"import frechet\n",
"import math\n",
"\n",
"center_error = 6\n",
"threshol... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.006060606060606061,
0.0196078431372549,
0,
0.05,
0,
0.1111111111111111,
0.017391304347826087,
0.025,
0,
0.023809523809523808,
0,
0.024193548387096774,
0,
0,
0.012345679012345678,
0.029411764705882353,
0,
0,
0,
0... | 357 | 0.015487 | false |
# coding:utf-8
import sys
import os.path
import string
import re
reload(sys)
sys.setdefaultencoding('utf-8')
def is_zh(str):
len1 = len(str)
len2 = len(unicode(str, 'utf-8'))
#print len1 != len2, str
return len1 != len2
def remove_font_label(line):
p = "<.*?>"
return re.sub(p,... | [
"# coding:utf-8\r\n",
"import sys\r\n",
"import os.path\r\n",
"import string\r\n",
"import re\r\n",
"reload(sys)\r\n",
"sys.setdefaultencoding('utf-8')\r\n",
"\r\n",
"def is_zh(str):\r\n",
" len1 = len(str)\r\n",
" len2 = len(unicode(str, 'utf-8'))\r\n",
" #print len1 != len2, str\r\n... | [
0,
0,
0,
0,
0,
0,
0,
0,
0.058823529411764705,
0,
0,
0.03333333333333333,
0,
0,
0.03333333333333333,
0,
0,
0.16666666666666666,
0.030303030303030304,
0,
0,
0,
0.06896551724137931,
0,
0,
0,
0.024390243902439025,
0,
0,
0,
0.02702702702702703,
0,
0,
0,
... | 138 | 0.024415 | false |
# =====================================
# Mini-project # 002
# Random Walker
# v.1.1(10/11/2015)
# Enrique Vazquez
# =========================================
# Traza una ruta aleatoria partiendo de un punto
# Carga de librerias --------------------
import math as m
import random as rd
import Rhino.Geometry as rg
... | [
"# =====================================\n",
"# Mini-project # 002\n",
"# Random Walker\n",
"# v.1.1(10/11/2015)\n",
"# Enrique Vazquez\n",
"# =========================================\n",
"\n",
"# Traza una ruta aleatoria partiendo de un punto\n",
"\n",
"\n",
"\n",
"# Carga de librerias -----... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.023809523809523808,
0,
0,
0,
0.02702702702702703,
0.03125,
0,
0,
0,
0.07142857142857142,
0.05128205128205128,
0.05714285714285714,
0.017543859649122806,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.045454545454545456,
0.086956521... | 42 | 0.016972 | false |
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"# Copyright 2015 Google Inc. All Rights Reserved.\n",
"#\n",
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n",
"# You may obtain a copy of the License at\n",
"#\n",
"# http://www.apache.org/licenses/LICEN... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.012195121951219513,
0,
0.05263157894736842,
0.01282051282051282,
0,
0,
0,
0,
0,
0,
0.017543859649122806,
0.02564102564102564,
0,
... | 153 | 0.014471 | false |
# adapted from Marco Bonzanini's blog post 'http://marcobonzanini.com/2015/03/09/mining-twitter-data-with-python-part-2/'
#uses Bing Liu's good/bad term list' https://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html#lexicon'
import re
from nltk.corpus import stopwords
import string
emoticons_str = r"""
(?... | [
"# adapted from Marco Bonzanini's blog post 'http://marcobonzanini.com/2015/03/09/mining-twitter-data-with-python-part-2/'\r\n",
"#uses Bing Liu's good/bad term list' https://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html#lexicon'\r\n",
"import re\r\n",
"from nltk.corpus import stopwords\r\n",
"import str... | [
0.008130081300813009,
0.019230769230769232,
0,
0,
0,
0.3333333333333333,
0,
0,
0,
0,
0,
0,
0.3333333333333333,
0,
0,
0.034482758620689655,
0.029411764705882353,
0.0196078431372549,
0.023255813953488372,
0.3333333333333333,
0.022222222222222223,
0.01818181818181818,
0.0294... | 102 | 0.045399 | false |
#---------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#--------------------------------------------------------------------... | [
"#---------------------------------------------------------------------------------------------\n",
"# Copyright (c) Microsoft Corporation. All rights reserved.\n",
"# Licensed under the MIT License. See License.txt in the project root for license information.\n",
"#-------------------------------------------... | [
0.021052631578947368,
0,
0.010526315789473684,
0.021052631578947368,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.021052631578947368,
0.047058823529411764,
0,
0,
0,
0,
0.05555555555555555,
0,
0,
0.022727272727272728,
0.011494252873563218,
0,
0,
0,
0.011904761904761904,
0.0108... | 47 | 0.006864 | false |
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and re... | [
"# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.\n",
"#\n",
"# NVIDIA CORPORATION and its licensors retain all intellectual property\n",
"# and proprietary rights in and to this software, related documentation\n",
"# and any modifications thereto. Any use, reproduction, disclosure or\n",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.01282051282051282,
0,
0,
0.02857142857142857,
0,
0,
0,
0,
0,
0.01282051282051282,
0,
0,
0.016129032258064516,
0,
0,
0,
0,
0.01282051282051282,
0.01282051282051282,
0,
0,
0.01282051282051282,
... | 403 | 0.005572 | false |
# LayerGeometry.py - contents of the LayerGeometry ghpython script
# inputs
# layer - string naming the layer to address within the current Rhino document
# update - any input will force recomputing the output (dummy value)
# outputs
# out - console debugging output
# geoms - list of geometry ... | [
"# LayerGeometry.py - contents of the LayerGeometry ghpython script\r\n",
"\r\n",
"# inputs\r\n",
"# layer - string naming the layer to address within the current Rhino document\r\n",
"# update - any input will force recomputing the output (dummy value)\r\n",
"\r\n",
"# outputs\r\n",
"# out ... | [
0,
0,
0,
0.012048192771084338,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.017857142857142856,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | 31 | 0.000965 | false |
# -*- coding: utf-8 -*-
import re
import base64
from time import time
from io import BytesIO
import os
import tw_util
from tw_util import *
__TW_VER__ = tw_util.__TW_VER__
MDEBUG = False
MDEBUG_TIMESTAMP = False
class TwRedirectAgent(BrowserLikeRedirectAgent):
def _handleRedirect(self, response, method, uri, head... | [
"# -*- coding: utf-8 -*-\n",
"\n",
"import re\n",
"import base64\n",
"from time import time\n",
"from io import BytesIO\n",
"import os\n",
"\n",
"import tw_util\n",
"from tw_util import *\n",
"__TW_VER__ = tw_util.__TW_VER__\n",
"\n",
"MDEBUG = False\n",
"MDEBUG_TIMESTAMP = False\n",
"\n... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.02040816326530612,
0.013333333333333334,
0.014925373134328358,
0.045454545454545456,
0.01639344262295082,
0.02040816326530612,
0.05555555555555555,
0.019417475728155338,
0,
0.03333333333333333,
0.014492753623188406,
0... | 558 | 0.031907 | false |
#-------------------------------------------------------------------------
# Copyright (c) Microsoft. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apa... | [
"#-------------------------------------------------------------------------\n",
"# Copyright (c) Microsoft. All rights reserved.\n",
"#\n",
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n",
"# You may obtain a ... | [
0.013333333333333334,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.013157894736842105,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | 1,096 | 0.004728 | false |
import uuid
from BaseClasses import *
class StandardPayload(Object):
def __init__(self, content = "", senderId=""):
self.PayloadId = uuid.uuid4()
self.Content = content
self.SenderId = senderId
self.PayloadId = ""
self.SenderId = ""
self.SenderName = ""
self... | [
"import uuid\n",
"from BaseClasses import *\n",
"\n",
"class StandardPayload(Object):\n",
" def __init__(self, content = \"\", senderId=\"\"):\n",
" self.PayloadId = uuid.uuid4()\n",
" self.Content = content\n",
" self.SenderId = senderId\n",
" self.PayloadId = \"\"\n"... | [
0,
0,
0,
0.03225806451612903,
0.0392156862745098,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.2,
0,
0.037037037037037035,
0.02857142857142857,
0.2,
0,
0.043478260869565216,
0.05128205128205128,
0.2,
0,
0.041666666666666664,
0.00854... | 49 | 0.068664 | false |
#!/usr/bin/env python
#
# Copyright Omega Noc (C) 2014 Omega Cube and contributors
# Xavier Roger-Machart, xrm@omegacube.fr
# Nicolas Lantoing, nicolas@omegacube.fr
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# publis... | [
"#!/usr/bin/env python\r\n",
"#\r\n",
"# Copyright Omega Noc (C) 2014 Omega Cube and contributors\r\n",
"# Xavier Roger-Machart, xrm@omegacube.fr\r\n",
"# Nicolas Lantoing, nicolas@omegacube.fr\r\n",
"#\r\n",
"# This program is free software: you can redistribute it and/or modify\r\n",
"# it under the... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.024390243902439025,
0,
0,
0,
0,
0,
0.045454545454545456,
... | 484 | 0.002108 | 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.041666666666666664,
0.05263157894736842,
0.030303030303030304,
0.028985507246376812,
0.06666666666666667,
0.030303030303030304,
0.0882... | 355 | 0.006483 | false |
""""prize.py 玩家奖励"""
import clr, sys
clr.AddReference('ZyGames.Framework.Common')
clr.AddReference('ZyGames.Framework')
clr.AddReference('ZyGames.Framework.Game')
clr.AddReference('ZyGames.Doudizhu.Model')
clr.AddReference('ZyGames.Doudizhu.Bll')
from System import *
from ZyGames.Framework.Common import *
fro... | [
"\"\"\"\"prize.py 玩家奖励\"\"\"\r\n",
"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.Doudizhu.Model')\r\n",
"clr.AddReference('ZyGames.Doudizhu.Bll')\r\n",
... | [
0,
0.058823529411764705,
0,
0,
0,
0,
0,
0.045454545454545456,
0.025,
0.02127659574468085,
0.022727272727272728,
0.02127659574468085,
0.021739130434782608,
0.02631578947368421,
0.027777777777777776,
0.023809523809523808,
0,
0.029411764705882353,
0,
0,
0,
0,
0,
0,
0,
... | 60 | 0.015394 | false |
from .base_importData import base_importData
import zipfile
#System dependences (get_request)
import requests, sys
#System dependencies (ftp)
from ftplib import FTP
import io
class import_webData(base_importData):
def decode_request(
self,
request_I):
'''
decode request
IN... | [
"from .base_importData import base_importData\n",
"import zipfile\n",
"#System dependences (get_request)\n",
"import requests, sys\n",
"#System dependencies (ftp)\n",
"from ftplib import FTP\n",
"import io\n",
"\n",
"class import_webData(base_importData):\n",
" def decode_request(\n",
" ... | [
0,
0,
0.029411764705882353,
0.047619047619047616,
0.037037037037037035,
0,
0,
0,
0.02564102564102564,
0,
0,
0.05,
0.07692307692307693,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.041666666666666664,
0.027777777777777776,
0,
0.02631578947368421,
0,
0,
0,
0,
0.041666666666... | 206 | 0.020094 | false |
# -*- coding: utf-8 -*-
"""
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License,
or (at your option) any later version.
This program is distributed i... | [
"# -*- coding: utf-8 -*-\n",
"\n",
"\"\"\"\n",
" This program is free software; you can redistribute it and/or modify\n",
" it under the terms of the GNU General Public License as published by\n",
" the Free Software Foundation; either version 3 of the License,\n",
" or (at your option) any ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.009900990099009901,
0,
0,
0,
0,
0,
0,
0,
0,
0.00909090909090909,
0
] | 47 | 0.000404 | false |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Name: Find Braided Reaches in Stream Network #
# Purpose: Find Braided Reaches as part of network preprocessing steps. #
# ... | [
"# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #\n",
"# Name: Find Braided Reaches in Stream Network #\n",
"# Purpose: Find Braided Reaches as part of network preprocessing steps. #\n",
"# ... | [
0.011627906976744186,
0.011627906976744186,
0.011627906976744186,
0.011627906976744186,
0.011627906976744186,
0.011627906976744186,
0.011627906976744186,
0.011627906976744186,
0.011627906976744186,
0.011627906976744186,
0.011627906976744186,
0.011627906976744186,
0.011627906976744186,
0.01... | 132 | 0.006111 | false |
#!/usr/bin/env python
#
# VM Backup 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",
"# VM Backup 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 Lice... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.017241379310344827,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | 196 | 0.010622 | false |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import rhinoscriptsyntax as rs
import Rhino
import os
color_palette = {"cut":(153,204,255),"plunge":(254,184,0),"point":(153,204,255)}
LAYER_NAME = "vector_from_gcode"
def parse_line(line):
line = line.lower().replace("\n","")
point = []
if line.sta... | [
"#!/usr/bin/env python\n",
"# -*- coding: utf-8 -*-\n",
"\n",
"import rhinoscriptsyntax as rs\n",
"import Rhino\n",
"import os\n",
"color_palette = {\"cut\":(153,204,255),\"plunge\":(254,184,0),\"point\":(153,204,255)}\n",
"LAYER_NAME = \"vector_from_gcode\"\n",
"\n",
"def parse_line(line):\n",
... | [
0,
0,
0,
0,
0,
0,
0.14814814814814814,
0,
0,
0.045454545454545456,
0.2,
0.024390243902439025,
0,
0.2,
0,
0,
0.2,
0,
0,
0,
0,
0,
0.013888888888888888,
0,
0,
0,
0,
0.04,
0.08333333333333333,
0,
0.2,
0,
0,
0.05405405405405406,
0.2,
0,
0,
0,
0,... | 91 | 0.044838 | 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... | 130 | 0.061159 | false |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
import re
import os
import json
from disabler import cut, ratio, better, worse_filter, area, genre
import urlparse
import string
from pcnile import langconv
from pcnile.langconv import Converter
from django.utils.encoding import force_unicode
import pymongo
... | [
"#!/usr/bin/env python\n",
"# -*- coding: utf-8 -*-\n",
"\n",
"import codecs\n",
"import re\n",
"import os\n",
"import json\n",
"from disabler import cut, ratio, better, worse_filter, area, genre\n",
"import urlparse\n",
"import string\n",
"from pcnile import langconv\n",
"from pcnile.langconv... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.0625,
0,
0.037037037037037035,
0.03571428571428571,
0.037037037037037035,
0,
0.03571428571428571,
0.06060606060606061,
0,
0,
0,
0.041666666666666664,
0,
0,
0,
0.045454545454545456,
0,
0,
0,
0... | 68 | 0.009123 | false |
import json
import httplib,urllib,json
from pytz import timezone
from icalendar import Calendar, Event, Alarm
from datetime import datetime, timedelta
'''GET /ntss/xskbxx!xskbList.action?xnxqdm=1368&zc=12 HTTP/1.1
Host: 192.168.176.246:8080
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/x... | [
"import json \n",
"import httplib,urllib,json\n",
"from pytz import timezone\n",
"from icalendar import Calendar, Event, Alarm\n",
"from datetime import datetime, timedelta\n",
"\n",
"'''GET /ntss/xskbxx!xskbList.action?xnxqdm=1368&zc=12 HTTP/1.1\n",
"Host: 192.168.176.246:8080\n",
"Connection: keep... | [
0.07692307692307693,
0.1111111111111111,
0,
0,
0,
0,
0,
0,
0,
0.012048192771084338,
0.008264462809917356,
0,
0,
0,
0,
0,
0.08333333333333333,
0.09375,
0,
0.034482758620689655,
0.02857142857142857,
0,
0.03529411764705882,
0,
0,
0,
0,
0,
0,
0,
0,
0.0707070... | 120 | 0.056243 | false |
#-------------------------------------------------------------------------------
# Name: logging
# Purpose: common for logging
#
# Author: Administrator
#
# Created: 30/09/2014
#-------------------------------------------------------------------------------
import logging
LOG_LEVELS = ... | [
"#-------------------------------------------------------------------------------\r\n",
"# Name: logging\r\n",
"# Purpose: common for logging\r\n",
"#\r\n",
"# Author: Administrator\r\n",
"#\r\n",
"# Created: 30/09/2014\r\n",
"#------------------------------------------------------... | [
0.024390243902439025,
0,
0,
0,
0,
0,
0,
0.024390243902439025,
0,
0,
0,
0,
0,
0,
0.07692307692307693,
0,
0,
0.08,
0,
0.029411764705882353,
0,
0,
0,
0,
0,
0,
0,
0,
0.02631578947368421,
0,
0,
0.07142857142857142,
0,
0,
0,
0.1,
0,
0,
0,
0,
... | 42 | 0.022211 | false |
from MyIntervalSlider import MyIntervalSlider
from AbstractColorIntervalWidget import *
from PyQt5.QtCore import QRect, Qt
from PyQt5.QtGui import QColor, QPainter, QPixmap, QFont
from PyQt5.QtWidgets import QGridLayout, QLabel, QWidget
import numpy
class HSVIntervalWidget(AbstractColorIntervalWidget) :
def ... | [
"from MyIntervalSlider import MyIntervalSlider\n",
"from AbstractColorIntervalWidget import *\n",
"\n",
"from PyQt5.QtCore import QRect, Qt\n",
"from PyQt5.QtGui import QColor, QPainter, QPixmap, QFont\n",
"from PyQt5.QtWidgets import QGridLayout, QLabel, QWidget\n",
"\n",
"import numpy\n",
"\n",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.03636363636363636,
0,
0.075,
0,
0.04054054054054054,
0,
0,
0,
0.023809523809523808,
0.047619047619047616,
0,
0,
0,
0,
0.05,
0.046511627906976744,
0.023255813953488372,
0.01639344262295082,
0.01639344262295082,
0.05,
0,
... | 118 | 0.02546 | 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.024390243902439025,
0,
0.07142857142857142,
0.02040816326530612,
0.06666666666666667,
0.02380952380952380... | 80 | 0.013228 | false |
import numpy as np
from sklearn.base import BaseEstimator, ClassifierMixin, clone, RegressorMixin
from sklearn.externals import joblib
import stacked_generalization.lib.util as util
import os
class BaseJoblibed(BaseEstimator):
"""Base class for joblibed learner.
Warning: This class should not be used direct... | [
"import numpy as np\n",
"from sklearn.base import BaseEstimator, ClassifierMixin, clone, RegressorMixin\n",
"from sklearn.externals import joblib\n",
"import stacked_generalization.lib.util as util\n",
"import os\n",
"\n",
"\n",
"class BaseJoblibed(BaseEstimator):\n",
" \"\"\"Base class for jobli... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 113 | 0.000105 | false |
#!python3
# -*- coding:utf-8 -*-
import os
import sys
import time
import ctypes
import shutil
import subprocess
IsPy3 = sys.version_info[0] >= 3
if IsPy3:
import winreg
else:
import codecs
import _winreg as winreg
BuildType = 'Release'
IsRebuild = True
Build = 'Rebuild'
Update = False
C... | [
"#!python3\r\n",
"# -*- coding:utf-8 -*-\r\n",
"import os\r\n",
"import sys\r\n",
"import time\r\n",
"import ctypes\r\n",
"import shutil\r\n",
"import subprocess\r\n",
"IsPy3 = sys.version_info[0] >= 3\r\n",
"if IsPy3:\r\n",
" import winreg\r\n",
"else:\r\n",
" import codecs\r\n",
" ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.034482758620689655,
0,
0.058823529411764705,
0.041666666666666664,
0.05128205128205128,
0.029850746268656716,
0.028985507246376812,
0.06451612903225806,
0.030303030303030304,
0... | 343 | 0.006236 | false |
from django.http import HttpResponse
from django.shortcuts import render
from django.views.generic import TemplateView
from django.views.decorators.csrf import csrf_exempt
from django.conf import settings
from django.db.models import Case, When
from django.core.cache import cache
from common.selection import SimpleSe... | [
"from django.http import HttpResponse\n",
"from django.shortcuts import render\n",
"from django.views.generic import TemplateView\n",
"from django.views.decorators.csrf import csrf_exempt\n",
"from django.conf import settings\n",
"from django.db.models import Case, When\n",
"from django.core.cache impor... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.007142857142857143,
0.008064516129032258,
0,
0,
0,
0,
0,
0,
0.041666666666666664,
0,
0,
0,
0,
0,
0.008695652173913044,
0,
0,
0,
0,
0,
0,
0,
0,
0.008849557522123894,
0.004132231404958678,
0.01098901098901099,
... | 1,559 | 0.002997 | 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.022727272727272728,
0.02127659574468085,
0,
0.07142857142857142,
0.02,
0.023809523809523808,
0.06666666666666667,
0.02222222... | 73 | 0.008708 | false |
#!/usr/bin/python
""" A simple class for downloading data from Twitter using twitter-python
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 Software... | [
"#!/usr/bin/python\n",
"\n",
"\"\"\" A simple class for downloading data from Twitter using twitter-python\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 Pub... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.029411764705882353,
0,
0.1111111111111111,
0.1111111111111111,
0,
0.2,
0.022222222222222223,
0,
0,
0.02564102564102564,
0,
0.022727272727272728,
0,
... | 216 | 0.010027 | false |
#!/usr/bin/env python
"""
For Agilent8960 WCDMA/LTE GPIB commands
Using PyVisa and Python 2.7.5
This file is part of RF_Tuning_Tool.
:copyright: (c) 2013 by the A-mao Chang (maomaoto@gmail.com)
:license: MIT, see COPYING for more details.
"""
from visa import *
import time
from decimal import ... | [
"#!/usr/bin/env python\r\n",
"\"\"\"\r\n",
"\tFor Agilent8960 WCDMA/LTE GPIB commands\r\n",
"\tUsing PyVisa and Python 2.7.5\r\n",
"\t\r\n",
"\t This file is part of RF_Tuning_Tool.\r\n",
"\r\n",
"\t:copyright: (c) 2013 by the A-mao Chang (maomaoto@gmail.com)\r\n",
"\t:license: MIT, see COPYING for ... | [
0,
0,
0.023809523809523808,
0.03125,
0.6666666666666666,
0.05,
0,
0.015873015873015872,
0.02127659574468085,
0,
0,
0,
0,
0,
0,
0,
0,
0.03125,
0.16666666666666666,
0.04,
0.012658227848101266,
0.16666666666666666,
0.022222222222222223,
0.016666666666666666,
0.0857142857... | 775 | 0.098996 | false |
# Copyright 2015 Rodrigo Roim Ferreira
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distribute... | [
"# Copyright 2015 Rodrigo Roim Ferreira\n",
"#\n",
"# This program is free software; you can redistribute it and/or modify\n",
"# it under the terms of the GNU General Public License as published by\n",
"# the Free Software Foundation; either version 3 of the License, or\n",
"# (at your option) any later ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.013513513513513514,
0.009523809523809525,
0.008547008547008548,
0.009259259259259259,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.2,
0.01652892561983471,
0,
0.011627906976744186,
0,
0,
0,
0,
0.011764705... | 118 | 0.006294 | false |
from __future__ import print_function
from genXplatEventing import *
from genXplatLttng import *
import os
import xml.dom.minidom as DOM
stdprolog = """// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in th... | [
"from __future__ import print_function\n",
"from genXplatEventing import *\n",
"from genXplatLttng import *\n",
"import os\n",
"import xml.dom.minidom as DOM\n",
"\n",
"stdprolog = \"\"\"// Licensed to the .NET Foundation under one or more agreements.\n",
"// The .NET Foundation licenses this file to ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 482 | 0.001584 | false |
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the Li... | [
"# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.\n",
"# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.\n",
"# \n",
"# Licensed under the Apache License, Version 2.0 (the \"License\"); \n",
"# you may not use this file except in compliance with the License.... | [
0,
0.012345679012345678,
0.3333333333333333,
0.014925373134328358,
0,
0.011764705882352941,
0.3333333333333333,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.047619047619047616,
0.037037037037037035,
0.02702702702702703,
0.02631578947368421,
0.02564102564102564,
0.0294117647058823... | 56 | 0.023684 | false |
"""
-------------------------------------------------------------------------------
| Copyright 2016 Esri
|
| 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/... | [
"\"\"\"\n",
"-------------------------------------------------------------------------------\n",
" | Copyright 2016 Esri\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 cop... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.007751937984496124,
0,
0,
0,
0.1388888888888889,
0.1,
0.034482758620689655,
0.030303030303030304,
0,
0,
0,
0.06896551724137931,
0,
0,
0.016666666666666666,
0,
0,
0.03125,
0,
0,
0.0595238095... | 385 | 0.018088 | 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... | 212 | 0.064702 | false |
from typing import Dict, List, Callable, TypeVar, Generic, Any
from json import JSONEncoder
import re
from . import metadataSrv
from . import databaseTypes
from . import types
T = TypeVar('T')
# Info credit: http://stackoverflow.com/questions/1549641/how-to-capitalize-the-first-letter-of-each-word-in-a-st... | [
"from typing import Dict, List, Callable, TypeVar, Generic, Any\r\n",
"from json import JSONEncoder\r\n",
"import re\r\n",
"from . import metadataSrv\r\n",
"from . import databaseTypes\r\n",
"from . import types\r\n",
"\r\n",
"T = TypeVar('T')\r\n",
"\r\n",
"\r\n",
"# Info credit: http://stackov... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.0070921985815602835,
0,
0.009708737864077669,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.012195121951219513,
0.01020408163265306,
0,
0,
0,
... | 161 | 0.000943 | false |
#Задача №12, Вариант 7
#Разработайте игру "Крестики-нолики". (см. М.Доусон Программируем на Python гл. 6)
#Ермашов А.В.
#26.05.2016
def display_instruct():
print("""
Приветствую вас в игре "Крестики-нолики".
Чтобы сделать ход, введи число от 0 до 8. Числа однозначно соответствуют полям
доски - так, как показан... | [
"#Задача №12, Вариант 7\n",
"#Разработайте игру \"Крестики-нолики\". (см. М.Доусон Программируем на Python гл. 6)\n",
"\n",
"#Ермашов А.В.\n",
"#26.05.2016\n",
"def display_instruct():\n",
"\tprint(\"\"\"\n",
"\t\tПриветствую вас в игре \"Крестики-нолики\".\n",
"\t\tЧтобы сделать ход, введи число от... | [
0.043478260869565216,
0.024096385542168676,
0,
0.07142857142857142,
0.08333333333333333,
0,
0.09090909090909091,
0.022727272727272728,
0.024691358024691357,
0.029411764705882353,
0.08333333333333333,
0.08333333333333333,
0.08333333333333333,
0.08333333333333333,
0.08333333333333333,
0.... | 137 | 0.074296 | 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... | 224 | 0.070167 | 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.16666666666666666,
0,
0,
0.010638297872340425,
0,
0.03571428571428571,
0,
0,... | 73 | 0.019539 | false |
import gzip
import struct
import random
import urllib2
import logging
from os import path
from StringIO import StringIO
from xml.etree import ElementTree
from httplib import HTTPConnection
import rarfile
from utils import python_logger, check_connectivity
# s1-9, s101-109
SUB_DOMAINS = ['s1', 's2', 's3', 's4', 's5'... | [
"import gzip\n",
"import struct\n",
"import random\n",
"import urllib2\n",
"import logging\n",
"from os import path\n",
"from StringIO import StringIO\n",
"from xml.etree import ElementTree\n",
"from httplib import HTTPConnection\n",
"\n",
"import rarfile\n",
"from utils import python_logger, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.011494252873563218,
0,
0,
0,
0,
0,
0.010638297872340425,
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,
... | 201 | 0.000603 | false |
# -*- coding: utf-8 -*-
#https://www.facebook.com/groups/vietkodi/
import CommonFunctions as common
import urllib
import urllib2
import os
import xbmc
import xbmcplugin
import xbmcgui
import xbmcaddon
import re, string, json
import base64,uuid
reload(sys);
sys.setdefaultencoding("utf8")
__setting... | [
"# -*- coding: utf-8 -*-\r\n",
"#https://www.facebook.com/groups/vietkodi/\r\n",
"\r\n",
"import CommonFunctions as common\r\n",
"import urllib\r\n",
"import urllib2\r\n",
"import os\r\n",
"import xbmc\r\n",
"import xbmcplugin\r\n",
"import xbmcgui\r\n",
"import xbmcaddon\r\n",
"import re, str... | [
0,
0.022727272727272728,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.04,
0.1,
0,
0,
0.07142857142857142,
0,
0,
0,
0,
0.03333333333333333,
0,
0,
0.046875,
0,
0,
0,
0,
0,
0.030303030303030304,
0.047619047619047616,
0.030303030303030304,
0.016666666666666666,
0.043478... | 215 | 0.033682 | false |
"""
This module contain solvers for all kinds of equations:
- algebraic or transcendental, use solve()
- recurrence, use rsolve()
- differential, use dsolve()
- nonlinear (numerically), use nsolve()
(you will need a good starting point)
"""
from __future__ import print_function, division
f... | [
"\"\"\"\n",
"This module contain solvers for all kinds of equations:\n",
"\n",
" - algebraic or transcendental, use solve()\n",
"\n",
" - recurrence, use rsolve()\n",
"\n",
" - differential, use dsolve()\n",
"\n",
" - nonlinear (numerically), use nsolve()\n",
" (you will need a ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.02631578947368421,
0,
0,
0,
0.05,
0,
0,
0.012658227848101266,
0.0136986301369863,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.034482758620689655,
0,
0,
0,
0,
0,
... | 2,893 | 0.000547 | false |
# -*- coding: utf-8 -*-
from imports import *
from youtubelink import YoutubeLink
from simpleplayer import SimplePlayer
class YoutubePlayer(SimplePlayer):
_YoutubeLink = YoutubeLink
def __init__(self, session, playList, playIdx=0, playAll=False, listTitle=None, plType='local', title_inr=0, showPlaylist=True, sho... | [
"# -*- coding: utf-8 -*-\n",
"\n",
"from imports import *\n",
"from youtubelink import YoutubeLink\n",
"from simpleplayer import SimplePlayer\n",
"\n",
"class YoutubePlayer(SimplePlayer):\n",
"\n",
"\t_YoutubeLink = YoutubeLink\n",
"\n",
"\tdef __init__(self, session, playList, playIdx=0, playAl... | [
0,
0,
0,
0,
0,
0,
0.02857142857142857,
0,
0.03571428571428571,
0,
0.012195121951219513,
0.008438818565400843,
0,
0.047619047619047616,
0.017857142857142856,
0.022727272727272728,
0.025,
0.04,
0.019230769230769232,
0.09090909090909091,
0.016666666666666666,
0.034482758620689... | 27 | 0.020894 | false |
import sys
import os
import json
import urllib
import urlparse
import xbmcaddon
import xbmcgui
import xbmcplugin
import load_channels
import hashlib
import re
import time
import server
import config
addon = xbmcaddon.Addon()
addonname = addon.getAddonInfo('name')
addondir = xbmc.translatePath( addon.getAd... | [
"import sys\n",
"import os\n",
"import json\n",
"import urllib\n",
"import urlparse\n",
"import xbmcaddon\n",
"import xbmcgui\n",
"import xbmcplugin\n",
"import load_channels\n",
"import hashlib\n",
"import re\n",
"import time\n",
"\n",
"import server\n",
"import config\n",
"\n",
"ad... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.03125,
0.024390243902439025,
0.05970149253731343,
0,
0,
0.03125,
0,
0,
0,
0,
0.09090909090909091,
0,
0.02564102564102564,
0,
0,
0,
0,
0,
0,
0.043478260869565216,
0,
0.04,
0.2,
0,
0.05263... | 334 | 0.224355 | false |
import re
import codecs
import os
import shutil
import tempfile
import sys
import zipfile
import jsminify
import base64
import StringIO
_text_exts = (".js", ".html", ".xml", ".css")
_directive_exts = (".xml", ".html", ".xhtml") # files that may have <!-- command.. directives
_keyword_exts = (".css", ".js", ".xml", "... | [
"import re\n",
"import codecs\n",
"import os\n",
"import shutil\n",
"import tempfile\n",
"import sys\n",
"import zipfile\n",
"import jsminify\n",
"import base64\n",
"import StringIO\n",
"\n",
"\n",
"_text_exts = (\".js\", \".html\", \".xml\", \".css\")\n",
"_directive_exts = (\".xml\", \".... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.02127659574468085,
0.01694915254237288,
0.014084507042253521,
0,
0,
0,
0,
0.07857142857142857,
0.041666666666666664,
0.015873015873015872,
0.024390243902439025,
0.04,
0,
0.047619047619047616,
0,
0,
0,
0.022222222222... | 708 | 0.015909 | false |
"""
Blackboard Analysis Tools
Copyright 2013, Jeroen Doggen, jeroendoggen@gmail.com
"""
from __future__ import print_function, division # We require Python 2.6+
import os
import shutil
class InputOutput():
""" Timer to check the speed of the tool itself (benchmarking) """
def __init__(self, input... | [
"\"\"\"\n",
" Blackboard Analysis Tools\n",
" Copyright 2013, Jeroen Doggen, jeroendoggen@gmail.com\n",
"\"\"\"\n",
"\n",
"from __future__ import print_function, division # We require Python 2.6+\n",
"\n",
"import os\n",
"import shutil\n",
"\n",
"\n",
"class InputOutput():\n",
" \"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.011494252873563218,
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,
0,
0,
0,
0,
0,
0,
0,
0.038461538461538464,
0,
0.03571428571428571... | 92 | 0.004514 | false |
# Copyright (c) 2016, LE GOFF Vincent
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and th... | [
"# Copyright (c) 2016, LE GOFF Vincent\n",
"# All rights reserved.\n",
"\n",
"# Redistribution and use in source and binary forms, with or without\n",
"# modification, are permitted provided that the following conditions are met:\n",
"\n",
"# * Redistributions of source code must retain the above copyri... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.012345679012345678,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.02857142857142857,
0,
0,
0,
0,
0.012048192771084338,
0,
0,
0,
0,
0,
... | 405 | 0.00079 | false |
#!/usr/bin/env python3
# Copyright (c) 2016-2018 The Machinecoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Encode and decode BASE58, P2PKH and P2SH addresses."""
from .script import hash256, hash160, sha2... | [
"#!/usr/bin/env python3\n",
"# Copyright (c) 2016-2018 The Machinecoin Core developers\n",
"# Distributed under the MIT software license, see the accompanying\n",
"# file COPYING or http://www.opensource.org/licenses/mit-license.php.\n",
"\"\"\"Encode and decode BASE58, P2PKH and P2SH addresses.\"\"\"\n",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.03125,
0,
0,
0,
0,
0,
0.03571428571428571,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.07142857142857142,
0,
0,
0,
0,
0.06818181818181818,
0,
0,
0,
0,
0.08108108108108109,
0,
0,
0,
0.0714285714285714... | 87 | 0.009323 | false |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Subtitle Decoder
Uses some library files from
http://xbmc-addon-repository.googlecode.com
Thanks!
"""
# import lxml
import os
import re
import shutil
import sys
import HTMLParser
import altfuncs
from bs4 import BeautifulSoup
from crunchyDec import CrunchyDec
from unideco... | [
"#!/usr/bin/python\n",
"# -*- coding: utf-8 -*-\n",
"\"\"\"\n",
"Subtitle Decoder\n",
"Uses some library files from\n",
"http://xbmc-addon-repository.googlecode.com\n",
"Thanks!\n",
"\"\"\"\n",
"\n",
"# import lxml\n",
"import os\n",
"import re\n",
"import shutil\n",
"import sys\n",
"imp... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.011363636363636364,
0,
0.02127659574468085,
0,
0.02127659574468085,
0.015267175572519083,
0,
0,
0,
0,
0,
0.0416666666... | 119 | 0.019768 | false |
import sys
import time
import re
import progressbar
import threading
import requests
from bs4 import BeautifulSoup
from requests.packages.urllib3.exceptions import InsecureRequestWarning
try:
from . import DataType
from . import Config
from . import Util
from . import i18n
from . import ConnectCor... | [
"import sys\n",
"import time\n",
"import re\n",
"import progressbar\n",
"import threading\n",
"import requests\n",
"from bs4 import BeautifulSoup\n",
"from requests.packages.urllib3.exceptions import InsecureRequestWarning\n",
"\n",
"try:\n",
" from . import DataType\n",
" from . import ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | 3,958 | 0.000306 | false |
from .types.CMakeVariable import CMakeVariable
from .types.VariableCollection import VariableCollection
class CMakeSystem(VariableCollection):
"""CMake System related variables"""
APPLE = ()
BORLAND = ()
CMAKE_CL_64 = ()
CMAKE_COMPILER_2005 = ()
CMAKE_HOST_APPLE = ()
CMAKE_HOST_SYSTEM_NAM... | [
"from .types.CMakeVariable import CMakeVariable\n",
"from .types.VariableCollection import VariableCollection\n",
"\n",
"class CMakeSystem(VariableCollection):\n",
" \"\"\"CMake System related variables\"\"\"\n",
"\n",
" APPLE = ()\n",
" BORLAND = ()\n",
" CMAKE_CL_64 = ()\n",
" CMA... | [
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | 46 | 0.000557 | false |
# -*- coding: utf-8 -*-
# ------------------------------------------------------------
# tvalacarta 4
# Copyright 2015 tvalacarta@gmail.com
# http://blog.tvalacarta.info/plugin-xbmc/tvalacarta/
#
# Distributed under the terms of GNU General Public License v3 (GPLv3)
# http://www.gnu.org/licenses/gpl-3.0.html
#... | [
"# -*- coding: utf-8 -*-\r\n",
"# ------------------------------------------------------------\r\n",
"# tvalacarta 4\r\n",
"# Copyright 2015 tvalacarta@gmail.com\r\n",
"# http://blog.tvalacarta.info/plugin-xbmc/tvalacarta/\r\n",
"#\r\n",
"# Distributed under the terms of GNU General Public License v3 (G... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.015873015873015872,
0,
0.015873015873015872,
0,
0.11428571428571428,
0.0625,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.05555555555555555,
0,
0,... | 199 | 0.008556 | false |
from gi.repository import Clutter
from pyclut.animation import DepthAnimation
from pyclut.effects.transitions.slide import SlideTransition
from pyclut.effects.transitions import Direction
class PageFullError(Exception):
pass
class ThumbnailPage(Clutter.Group):
__gtype_name__ = 'ThumbnailPage'
def __init__(self, ... | [
"from gi.repository import Clutter\n",
"from pyclut.animation import DepthAnimation\n",
"from pyclut.effects.transitions.slide import SlideTransition\n",
"from pyclut.effects.transitions import Direction\n",
"\n",
"\n",
"class PageFullError(Exception):\n",
"\tpass\n",
"\n",
"class ThumbnailPage(Cl... | [
0,
0,
0,
0,
0,
0,
0,
0.16666666666666666,
0,
0.027777777777777776,
0.029411764705882353,
0.023809523809523808,
0.03225806451612903,
0.025,
0.038461538461538464,
0.03125,
0.023809523809523808,
0.045454545454545456,
0.03333333333333333,
0.041666666666666664,
0.04,
0.022727272... | 157 | 0.048665 | false |
# -*- coding: utf-8 -*-
import os,logging
from google.appengine.api import users
from google.appengine.ext import db
from google.appengine.ext.db import Model as DBModel
from google.appengine.api import memcache
from google.appengine.api import mail
from google.appengine.api import urlfetch
from google.appengine.api i... | [
"# -*- coding: utf-8 -*-\n",
"import os,logging\n",
"from google.appengine.api import users\n",
"from google.appengine.ext import db\n",
"from google.appengine.ext.db import Model as DBModel\n",
"from google.appengine.api import memcache\n",
"from google.appengine.api import mail\n",
"from google.appe... | [
0,
0.1111111111111111,
0,
0,
0,
0,
0,
0,
0,
0,
0.0625,
0.13333333333333333,
0.05,
0,
0,
0.02857142857142857,
0,
0.06666666666666667,
0.041666666666666664,
0.030303030303030304,
0.029411764705882353,
0.02857142857142857,
0,
0.058823529411764705,
0.09090909090909091,
... | 936 | 0.054398 | false |
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the Li... | [
"# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.\n",
"# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.\n",
"# \n",
"# Licensed under the Apache License, Version 2.0 (the \"License\"); \n",
"# you may not use this file except in compliance with the License.... | [
0,
0.012345679012345678,
0.3333333333333333,
0.014925373134328358,
0,
0.011764705882352941,
0.3333333333333333,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.047619047619047616,
0.037037037037037035,
0.02702702702702703,
0.03225806451612903,
0,
0.07142857142857142,
0.02247191011... | 68 | 0.019886 | false |
from __future__ import division
from drivepy.base.powermeter import BasePowerMeter, CommError, PowerMeterLibraryError
import ctypes,time,string,numpy, os
READ_BUFFER_SIZE=64
DLL_NAME=os.path.join(os.path.dirname(os.path.realpath(__file__)),"usbdll.dll")
SEP_STRING="\r\n"
END_OF_DATA_STR = "End of Data\r\n"
END_OF_HEAD... | [
"from __future__ import division\n",
"from drivepy.base.powermeter import BasePowerMeter, CommError, PowerMeterLibraryError\n",
"import ctypes,time,string,numpy, os\n",
"READ_BUFFER_SIZE=64\n",
"DLL_NAME=os.path.join(os.path.dirname(os.path.realpath(__file__)),\"usbdll.dll\")\n",
"SEP_STRING=\"\\r\\n\"\n"... | [
0,
0.011627906976744186,
0.1111111111111111,
0.05,
0.025,
0.05555555555555555,
0,
0,
0.08333333333333333,
0.0625,
0,
0.029411764705882353,
0.019801980198019802,
0,
0.043478260869565216,
0.009615384615384616,
0.03529411764705882,
0.047619047619047616,
0.023255813953488372,
0,
... | 280 | 0.01812 | false |
# -*- coding: utf-8 -*-
""" this is a patched version of vk_api to use a different user agent for authenticating against VK.
Everything else looks the same, the only change in the module is the new user agent, emulating a kate mobile session."""
import time
import hashlib
import logging
import vk_api
import threading... | [
"# -*- coding: utf-8 -*-\n",
"\"\"\" this is a patched version of vk_api to use a different user agent for authenticating against VK.\n",
"Everything else looks the same, the only change in the module is the new user agent, emulating a kate mobile session.\"\"\"\n",
"import time\n",
"import hashlib\n",
"... | [
0,
0.00980392156862745,
0.008264462809917356,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.037037037037037035,
0,
0.01098901098901099,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.006578947368421052,
0,
0,
0,
0,
0,
0,
... | 137 | 0.00053 | false |
import json
import urllib
import urllib.parse as parse
import urllib.request as request
import arcpy
from . import dla
"""
-------------------------------------------------------------------------------
| Copyright 2016 Esri
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use t... | [
"import json\n",
"import urllib\n",
"import urllib.parse as parse\n",
"import urllib.request as request\n",
"\n",
"import arcpy\n",
"\n",
"from . import dla\n",
"\n",
"\"\"\"\n",
"-------------------------------------------------------------------------------\n",
" | Copyright 2016 Esri\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.007751937984496124,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.011363636363636364,
0,
0.011235955056179775,
0,
0,
0,
0,
0.027777777777... | 405 | 0.003868 | 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 |
# -*- coding: utf-8 -*-
import xbmc, xbmcgui, xbmcplugin, xbmcaddon, urllib2, urllib, re, string, sys, os, gzip, StringIO
import dr
# 5ivdo(5ivdo) by sand, 2015
# Plugin constants
__addonname__ = "5ivdo(5ivdo)"
__addonid__ = "plugin.video.5ivdo"
__addon__ = xbmcaddon.Addon(id=__addonid__)
#__addonicon__ = os.path.j... | [
"# -*- coding: utf-8 -*-\n",
"import xbmc, xbmcgui, xbmcplugin, xbmcaddon, urllib2, urllib, re, string, sys, os, gzip, StringIO\n",
"import dr\n",
"\n",
"# 5ivdo(5ivdo) by sand, 2015\n",
"\n",
"# Plugin constants \n",
"__addonname__ = \"5ivdo(5ivdo)\"\n",
"__addonid__ = \"plugin.video.5ivdo\"\n",
... | [
0,
0.02040816326530612,
0,
0,
0,
0,
0.05,
0,
0,
0,
0.013157894736842105,
0,
0,
0,
0.01904761904761905,
0,
0,
0,
0,
0,
0,
0,
0.2,
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,
... | 499 | 0.020644 | false |
from datetime import datetime
import math
import vsop.vsop87
class Planet:
_X = None
_Y = None
_Z = None
def __init__(self, *args, **kwargs):
self._ensure_data()
@staticmethod
def _coord_at(data, t):
res = 0.0
for n, ABC in data.items():
... | [
"from datetime import datetime\r\n",
"import math\r\n",
"import vsop.vsop87\r\n",
"\r\n",
"class Planet:\r\n",
" _X = None\r\n",
" _Y = None\r\n",
" _Z = None\r\n",
" \r\n",
" def __init__(self, *args, **kwargs):\r\n",
" self._ensure_data()\r\n",
"\r\n",
" @staticmet... | [
0,
0,
0,
0,
0.06666666666666667,
0,
0,
0,
0.16666666666666666,
0,
0,
0,
0,
0,
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.011627906976744186,
0,
0,
0,
0,
0,
0,
0.0416666666... | 77 | 0.007877 | false |
import arrow
import discord
import asyncio
from sigma.core.permission import check_man_msg
from sigma.core.utils import user_avatar
async def prune(cmd, message, args):
channel = message.channel
if check_man_msg(message.author, channel):
limit = 100
target = cmd.bot.user
if not args:
... | [
"import arrow\n",
"import discord\n",
"import asyncio\n",
"from sigma.core.permission import check_man_msg\n",
"from sigma.core.utils import user_avatar\n",
"\n",
"\n",
"async def prune(cmd, message, args):\n",
" channel = message.channel\n",
" if check_man_msg(message.author, channel):\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.0625,
0,
0,
0,
0,
0,
0,
0.012048192771084338,
0,
0,
0.011111111111111112,
0,
0.011764705882352941,
0.0625,
0,
0,
0.009708737864077669,
0,
0.01086956... | 67 | 0.004486 | false |
from collections import deque, defaultdict
from .ir import *
from .irvisitor import IRVisitor
from .env import env
from logging import getLogger
logger = getLogger(__name__)
class RomDetector(object):
def _propagate_writable_flag(self):
for node in self.mrg.collect_top_module_nodes():
node.se... | [
"from collections import deque, defaultdict\n",
"from .ir import *\n",
"from .irvisitor import IRVisitor\n",
"from .env import env\n",
"from logging import getLogger\n",
"logger = getLogger(__name__)\n",
"\n",
"\n",
"class RomDetector(object):\n",
" def _propagate_writable_flag(self):\n",
" ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0.011904761904761904,
0,
0.012345679012345678,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | 43 | 0.000564 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.