repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
natematias/pond-hopper | pond-hopper.py | 1 | 8692 | import re
import json
import sys
import os
import requests
import datetime
from bs4 import BeautifulSoup
from feedgen.feed import FeedGenerator
import dateutil.parser
from pytz import timezone
import pytz
import flask
from flask import Flask
from flask import render_template
from gender_detector import GenderDetector
i... | mit | -5,024,372,724,159,938,000 | 33.220472 | 221 | 0.652094 | false |
dc-atlas/bcml | doc/conf.py | 1 | 7251 | #
#
# Copyright (C) 2010 Razvan Popovici <rp@miravtech.com>
# Copyright (C) 2010 Luca Beltrame <luca.beltrame@unifi.it>
# Copyright (C) 2010 Enrica Calura <enrica.calura@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as p... | lgpl-2.1 | 9,100,167,073,289,095,000 | 32.109589 | 80 | 0.717005 | false |
tensorflow/federated | tensorflow_federated/python/core/impl/computation/function_utils_test.py | 1 | 17117 | # Copyright 2018, The TensorFlow Federated Authors.
#
# 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 o... | apache-2.0 | -6,018,502,755,279,471,000 | 36.455142 | 85 | 0.580768 | false |
lmandres/MeSH-Analysis-Methodology | searchlib/helper.py | 1 | 30718 | '''
Created on Jul 5, 2011
@author: Leo Andres (user)
'''
from datetime import timedelta
import os
import re
import xml.parsers.expat
class TextXMLParser:
element_path = ''
element_dictionary = {}
current_element_data = {}
def __init__(self):
self.element_path = ''
se... | gpl-2.0 | 2,402,271,350,444,328,000 | 39.259502 | 209 | 0.521388 | false |
abenton/wgcca | src/wgccaTest.py | 1 | 3225 | '''
Test suite for weighted generalized canonical correlation analysis.
Adrian Benton
8/8/2016
'''
import os
import unittest
import wgcca as WGCCA
import numpy as np
import scipy
import scipy.linalg
class TestWeightedGCCA(unittest.TestCase):
def setUp(self):
### Generate sample data with 3 views ###
self... | mit | 4,759,145,673,995,391,000 | 26.330508 | 91 | 0.577054 | false |
hanjihun/Car | segurarse_com_ar/segurarse_com_ar/middlewares.py | 1 | 1888 | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class SegurarseComArSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# s... | mit | 6,918,560,916,649,596,000 | 32.678571 | 78 | 0.664899 | false |
grow/grow | grow/cache/object_cache.py | 1 | 2129 | """
Cache for storing and retrieving data in a pod.
Supports arbitrary data based on a cache key.
The contents of the cache should be raw and not internationalized as it will
be shared between locales.
"""
import re
FILE_OBJECT_CACHE = 'objectcache.json'
FILE_OBJECT_SUB_CACHE = 'objectcache.{}.json'
class Object... | mit | 8,474,668,111,042,571,000 | 26.649351 | 88 | 0.592767 | false |
rrader/Pomodoro | pomodoro/mainframe.py | 1 | 4124 | #!/usr/bin/env python2.6
# -*- coding: utf-8 -*-
# mainframe.py
# Pomodoro
#
# Created by Roman Rader on 22.06.11.
# New BSD License 2011 Antigluk https://github.com/antigluk/Pomodoro
"""
Contains main frame of application.
"""
import wx
from state import PomodoroStateProxy as PomodoroState
from NotificationCente... | bsd-3-clause | -2,721,271,360,558,041,600 | 32.764706 | 75 | 0.608912 | false |
Fillll/reddit2telegram | reddit2telegram/supplier.py | 1 | 4782 | #encoding:utf-8
import logging
import yaml
import praw
import utils
from reporting_stuff import report_error
from utils.tech import long_sleep, short_sleep
def send_to_channel_from_subreddit(how_to_post, channel_to_post, subreddit, submissions_ranking, submissions_limit, config, **kwargs):
reddit = praw.Reddit... | mit | -1,040,563,936,805,397,800 | 38.180328 | 134 | 0.617782 | false |
ace-han/onedegree | admin/account/api/v1/fields.py | 1 | 1049 | from rest_framework import serializers
from rest_framework.relations import RelatedField
class TaggedItemRelatedField(serializers.PrimaryKeyRelatedField):
"""
A custom field to use for the `tagged_object` generic relationship.
"""
def __init__(self, **kwargs):
self.pk_field = kwargs.p... | bsd-3-clause | 4,808,190,821,871,013,000 | 38.423077 | 80 | 0.638704 | false |
gjhiggins/electrum | lib/wallet.py | 1 | 75104 | #!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2011 thomasv@gitorious
#
# 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... | gpl-3.0 | 9,193,974,612,486,709,000 | 35.142445 | 149 | 0.551622 | false |
python-technopark/MoneyMoney | src/main.py | 1 | 9184 | from mmhandler import MmHandler
import telebot
import argparse
import re
import logging
import yaml
import telebot
import os
bot = telebot.TeleBot('280771706:AAG2jJxVekewCG_aTgcr2WQ3S6CcS7EZ_cg')
from mmhandler import MmHandler
TOKEN = ''
bot = telebot.TeleBot(TOKEN)
handler = MmHandler(0) # по умолчанию user_id =... | mit | -8,096,265,834,219,133,000 | 43.642857 | 160 | 0.5728 | false |
gizela/gizela | gizela/stat/PointLocalGamaDisplTest.py | 1 | 3147 | # gizela
#
# Copyright (C) 2010 Michal Seidl, Tomas Kubin
# Author: Tomas Kubin <tomas.kubin@fsv.cvut.cz>
# URL: <http://slon.fsv.cvut.cz/gizela>
#
# $Id$
from gizela.data.PointLocalGama import PointLocalGama
from gizela.stat.PointDisplBase import PointDisplBase
from gizela.stat.TestResult import TestResult
fro... | gpl-3.0 | -1,544,846,842,559,281,000 | 33.966667 | 75 | 0.60089 | false |
nextgis/nextgisweb_compulink | nextgisweb_compulink/compulink_admin/__init__.py | 1 | 1255 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from os import path
from nextgisweb.component import Component, require
from .model import Base, PROJECT_STATUS_PROJECT
from .ident import COMP_ID
from nextgisweb_compulink.init_data.command import DBInit
from .view import get_regions_from_resource, get_... | gpl-2.0 | 5,916,443,532,301,515,000 | 27.522727 | 94 | 0.667729 | false |
katembu/world-cup | world_cup/user_management/urls.py | 1 | 1522 | from django.conf.urls import patterns, url
from django.contrib.auth.views import password_reset, password_reset_done, password_reset_confirm, password_reset_complete
urlpatterns = patterns('user_management.views',
url(r'^$', 'index'),
url(r'^accounts/login/$', 'login_user'... | mit | -1,450,905,086,284,081,200 | 65.173913 | 122 | 0.492773 | false |
techtonik/readthedocs.org | readthedocs/projects/tasks.py | 1 | 31592 | """Tasks related to projects
This includes fetching repository code, cleaning ``conf.py`` files, and
rebuilding documentation.
"""
import os
import shutil
import json
import logging
import socket
import requests
import hashlib
from collections import defaultdict
from celery import task, Task
from djcelery import cel... | mit | 5,030,569,804,307,383,000 | 34.576577 | 99 | 0.584167 | false |
XiaoJianfeng/ibl | util/txt2xlsx.py | 1 | 1634 | #!/usr/bin/env python
import sys
import argparse
import csv
import xlsxwriter
''' convert txt file[s] to .xlsx file
usage: $0 [txt1 txt2 txt...] xlsx_file
multiple txts will be added as separate excel sheet
'''
#-----------------------------------------------------------------------------
def correct_data_type(v):
... | lgpl-3.0 | -6,901,755,302,760,224,000 | 32.346939 | 97 | 0.55814 | false |
jseabold/statsmodels | statsmodels/tsa/statespace/tests/test_impulse_responses.py | 3 | 26272 | """
Tests for impulse responses of time series
Author: Chad Fulton
License: Simplified-BSD
"""
import warnings
import numpy as np
import pandas as pd
from scipy.stats import ortho_group
import pytest
from numpy.testing import assert_, assert_allclose
from statsmodels.tools.sm_exceptions import EstimationWarning
from... | bsd-3-clause | 1,764,803,812,234,432,300 | 36.801439 | 79 | 0.59748 | false |
ricarkol/agentless-system-crawler | tests/test_namespace.py | 1 | 3368 | import unittest
import docker
import requests.exceptions
import tempfile
import os
import shutil
import subprocess
import sys
from crawler.namespace import run_as_another_namespace
from crawler.crawler_exceptions import CrawlTimeoutError, CrawlError
all_namespaces = ["user", "pid", "uts", "ipc", "net", "mnt"]
# Fun... | apache-2.0 | 5,370,705,531,158,389,000 | 31.384615 | 119 | 0.629157 | false |
eResearchSA/reporting-producers | reporting/utilities.py | 1 | 3059 | #!/usr/bin/env python
# pylint: disable=broad-except
import logging
import sys
import random
import string
import socket
import datetime
import platform
import time
import os
from reporting.exceptions import PluginInitialisationError
global_vars=None
def set_global(vars):
global global_vars
global_vars = va... | apache-2.0 | -4,377,217,827,614,726,000 | 28.142857 | 100 | 0.61883 | false |
nateGeorge/IDmyDog | process_ims/other/2d_haralick_map.py | 1 | 3493 | from __future__ import print_function
import pandas as pd
import pickle as pk
import cv2
import os
import re
import progressbar
import imutils
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from mahotas.features import haralick
import json
from sklearn.decomposition import PCA
plt.style.use('s... | mit | -3,552,087,796,513,353,000 | 30.196429 | 107 | 0.583453 | false |
coddingtonbear/taskwarrior-subtask-capsule | setup.py | 1 | 1786 | import os
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
import uuid
from taskwarrior_subtask_capsule import __version__ as version_string
requirements_path = os.path.join(
os.path.dirname(__file__),
'requirements.txt',
)
try:
from pip.req i... | mit | 365,277,337,414,721,800 | 25.264706 | 72 | 0.621501 | false |
GrognardsFromHell/TemplePlus | tpdatasrc/tpgamefiles/rules/d20_combat/to_hit_processing.py | 1 | 12638 | from templeplus.pymod import PythonModifier
from toee import *
import tpdp
import logbook
import roll_history
debug_enabled = False
def debug_print(*args):
if debug_enabled:
for arg in args:
print arg,
return
def handle_sanctuary(to_hit_eo, d20a):
tgt = d20a.target
if tgt == OBJ_H... | mit | -2,265,534,329,201,253,600 | 40.032468 | 182 | 0.677006 | false |
openbermuda/karmapi | karmapi/nzquake.py | 1 | 1633 | """ The data is available from Geonet, the official source of New
Zealand earthquake hazard data:
http://wfs.geonet.org.nz/geonet/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=geonet:quake_search_v1&outputFormat=csv
Geonet Data policy
==================
All data and images are made available free of char... | gpl-3.0 | -3,375,490,667,483,754,500 | 29.240741 | 137 | 0.764238 | false |
hexforge/pulp_db | utils/decoder/hkseomd_decoder.py | 1 | 7007 | import sys
import struct
import pprint
from rosetta.common import get_spec, decode, build_standard_msg_parser, pb_parser
def build_msg_parsers(spec):
decoders = {}
endian = spec['endian']
decoders['header'] = build_standard_msg_parser(spec['header'])
decoders[100] = build_standard_msg_parser(spe... | apache-2.0 | 6,615,086,416,629,237,000 | 39.04 | 91 | 0.62095 | false |
caffeinehit/fabric-provision | docs/conf.py | 1 | 7037 | # -*- coding: utf-8 -*-
#
# fabric-chef documentation build configuration file, created by
# sphinx-quickstart on Wed Oct 26 17:29:47 2011.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
#... | mit | 182,649,190,020,775,580 | 31.578704 | 80 | 0.708683 | false |
PabloCastellano/telepathy-python | examples/tube-dbus-muc.py | 1 | 8390 | #!/usr/bin/env python
import dbus.glib
import gobject
import sys
import time
from dbus.service import method, signal, Object
from dbus import PROPERTIES_IFACE
from telepathy.client import Channel
from telepathy.interfaces import (
CONN_INTERFACE, CHANNEL_INTERFACE_GROUP,
CHANNEL_TYPE_TEXT, CHANNEL_IN... | lgpl-2.1 | 2,674,781,851,305,746,000 | 31.901961 | 100 | 0.617759 | false |
garinh/cs | docs/support/docutils/languages/ca.py | 1 | 1993 | # Author: Ivan Vilata i Balaguer
# Contact: ivan@selidor.net
# Revision: $Revision: 21817 $
# Date: $Date: 2005-07-21 13:39:57 -0700 (Thu, 21 Jul 2005) $
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
# read <http://docutils.s... | lgpl-2.1 | -5,671,412,734,274,300,000 | 31.145161 | 76 | 0.622679 | false |
nathanbjenx/cairis | cairis/bin/cairisd.py | 1 | 1541 | #!/usr/bin/python
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "... | apache-2.0 | -5,118,065,886,492,460,000 | 29.215686 | 67 | 0.73329 | false |
ednapiranha/snapshots-from-here | snapshots/snappy.py | 1 | 11535 | # -*- coding: utf-8 -*-
import base64
import os
import random
import time
from auto_tagify import AutoTagify
from boto.s3.key import Key
from PIL import Image
from pymongo import DESCENDING
from pymongo.objectid import ObjectId
import settings
CONTENT_TYPE = 'image/jpeg'
ATAG = AutoTagify()
ATAG.link = "/tag"
RECENT... | bsd-3-clause | 7,200,109,346,975,077,000 | 40.642599 | 91 | 0.525704 | false |
Mikescher/Project-Euler_Befunge | compiled/Python2/Euler_Problem-046.py | 1 | 4454 | #!/usr/bin/env python2
# transpiled with BefunCompile v1.3.0 (c) 2017
import sys
import zlib, base64
_g = ("AR+LCAAAAAAABADt2k1Lw0AQBuC/st20l4S4k020zVAWL5716CGkRS0LoriI7qk/3lk/oNraFooo8j6wgelMs5uZ5taYJSotY9TF48Pt4vpJnT3fLR5VmeKru8W9ak7U"
+ "H5cBAAAAAAAAAAAAAAAAAAAAAAAA/AO/+V88Z3cUxNViii5GFagtPLW55UDjsvM0TiFPf/Kcn84R... | mit | -5,779,677,972,069,626,000 | 17.032389 | 136 | 0.504939 | false |
FedoraScientific/salome-paravis | test/VisuPrs/MeshPresentation/E4.py | 1 | 1519 | # Copyright (C) 2010-2014 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library ... | lgpl-2.1 | -5,568,984,066,035,110,000 | 37.948718 | 81 | 0.736011 | false |
anantag/twitterAPIHack | twitterstream.py | 1 | 1840 | import oauth2 as oauth
import urllib2 as urllib
# See Assignment 1 instructions or README for how to get these credentials
access_token_key = "55773725-mKHWq6Fyj2TmqR6xPiBamIw2EYb4B4O95CWXYJJZW"
access_token_secret = "OAw65RNmhHsXTyFIHSZod39nFRwkTdStfTmn5YB0oM"
consumer_key = "N1o286mxPcWFofmwhZqOow"
consumer_secret ... | gpl-2.0 | -1,027,548,437,362,856,700 | 29.163934 | 78 | 0.677174 | false |
m00dawg/holland | tests/test_config.py | 1 | 1300 | import os
import shutil
import tempfile
import unittest
from holland.core.config import hollandcfg, setup_config
class TestHollandConfig(unittest.TestCase):
def setUp(self):
test_cfg = """
[holland]
plugin_dirs = /usr/share/holland/plugins
backupsets = default
umask = 0007
... | bsd-3-clause | 9,090,616,190,800,493,000 | 27.26087 | 97 | 0.586923 | false |
yasutaka/nlp_100 | kiyota/13.py | 1 | 1244 | """
hightemp.txtは,日本の最高気温の記録を「都道府県」「地点」「℃」「日」のタブ区切り形式で
格納したファイルである.以下の処理を行うプログラムを作成し,hightemp.txtを入力ファイルとして
実行せよ.さらに,同様の処理をUNIXコマンドでも実行し,プログラムの実行結果を確認せよ.
13. col1.txtとcol2.txtをマージ
12で作ったcol1.txtとcol2.txtを結合し,元のファイルの1列目と2列目をタブ区切りで並べたテキスト
ファイルを作成せよ.確認にはpasteコマンドを用いよ
"""
# -*- coding: utf-8 -*-
import codecs
... | mit | 8,806,087,318,852,099,000 | 29.769231 | 145 | 0.700969 | false |
diorcety/translate | translate/convert/ical2po.py | 1 | 4592 | # -*- coding: utf-8 -*-
#
# Copyright 2007 Zuza Software Foundation
#
# This file is part of translate.
#
# translate 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
# (at y... | gpl-2.0 | 6,030,933,143,855,780,000 | 34.596899 | 94 | 0.640679 | false |
wozz/electrum-myr | gui/qt/main_window.py | 1 | 109709 | #!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2012 thomasv@gitorious
#
# 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... | gpl-3.0 | 5,956,823,126,570,258,000 | 38.181786 | 458 | 0.585868 | false |
ptphp/PyLib | src/webpy1/src/borough/parseBody.py | 1 | 4768 | # coding=gbk
import re
import string,urlparse
import os.path as osp
nums = string.digits
# Çå³ýhtml´úÂëÀïµÄ¶àÓà¿Õ¸ñ
def clearBlank(html):
if not html or html == None : return ;
html = re.sub('\r|\n|\t','',html)
html = html.replace(' ','').replace(' ','').replace('\'','"')
return html
def... | apache-2.0 | -9,106,232,021,613,570,000 | 27.556886 | 153 | 0.490352 | false |
tsherwen/AC_tools | Scripts/2D_GEOSChem_slice_subregion_plotter_example.py | 1 | 2934 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Plotter for 2D slices of GEOS-Chem output NetCDFs files.
NOTES
---
- This is setup for Cly, but many other options (plot/species) are availible
by just updating passed variables/plotting function called.
"""
import AC_tools as AC
import numpy as np
import matplotli... | mit | 3,210,553,677,345,683,500 | 31.6 | 94 | 0.599864 | false |
takluyver/xray | xray/groupby.py | 1 | 12796 | import itertools
from common import ImplementsReduce
from ops import inject_reduce_methods
import variable
import dataset
import numpy as np
def unique_value_groups(ar):
"""Group an array by its unique values.
Parameters
----------
ar : array-like
Input array. This will be flattened if it is... | apache-2.0 | -8,291,218,335,638,136,000 | 37.197015 | 81 | 0.604408 | false |
jamslevy/gsoc | tests/settings_test.py | 1 | 4105 | #!/usr/bin/python2.5
#
# Copyright 2008 the Melange authors.
#
# 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... | apache-2.0 | 7,990,805,361,573,050,000 | 32.92562 | 80 | 0.654811 | false |
BirkbeckCTP/janeway | src/submission/urls.py | 1 | 1920 | __copyright__ = "Copyright 2017 Birkbeck, University of London"
__author__ = "Martin Paul Eve & Andy Byers"
__license__ = "AGPL v3"
__maintainer__ = "Birkbeck Centre for Technology and Publishing"
from django.conf.urls import url
from submission import views
urlpatterns = [
url(r'^start/$', views.start, name='su... | agpl-3.0 | 7,696,528,079,549,939,000 | 49.526316 | 117 | 0.665104 | false |
dsoprea/RandomUtility | python/ssl_sign.py | 1 | 3373 | #!/usr/bin/env python2.7
import os.path
import argparse
import datetime
import hashlib
import random
import time
import M2Crypto.X509
import M2Crypto.ASN1
import M2Crypto.RSA
import M2Crypto.EVP
_OUTPUT_PATH = 'output'
_CA_PASSPHRASE = 'test'
_CA_KEY_PEM_FILENAME = 'output/ca.key.pem'
_CA_CRT_PEM_FILENAME = 'output... | gpl-2.0 | 3,708,214,889,509,246,500 | 24.360902 | 87 | 0.607471 | false |
jjmiranda/edx-platform | openedx/core/djangoapps/user_api/views.py | 1 | 40311 | """HTTP end-points for the User API. """
import copy
from opaque_keys import InvalidKeyError
from django.conf import settings
from django.contrib.auth.models import User
from django.http import HttpResponse
from django.core.urlresolvers import reverse
from django.core.exceptions import ImproperlyConfigured, NON_FIELD_... | agpl-3.0 | -1,252,888,636,332,038,100 | 36.5685 | 139 | 0.614324 | false |
AVSystem/avs_commons | tools/rbtree_fuzz_gen_full_tree.py | 1 | 1242 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2021 AVSystem <avsystem@avsystem.com>
#
# 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/LICEN... | apache-2.0 | -2,947,104,314,626,366,000 | 30.846154 | 79 | 0.697262 | false |
millen1m/flask-restplus-server-example | app/modules/auth/views.py | 1 | 4794 | # coding: utf-8
"""
OAuth2 provider setup.
It is based on the code from the example:
https://github.com/lepture/example-oauth2-server
More details are available here:
* http://flask-oauthlib.readthedocs.org/en/latest/oauth2.html
* http://lepture.com/en/2013/create-oauth-server
"""
from flask import Blueprint, reques... | mit | -8,786,363,367,552,155,000 | 28.231707 | 100 | 0.645807 | false |
lnanhkhoa/thesis-iot-khoa | iot/temporary/structureDevice.py | 1 | 11595 | importantDatabase = {
"floor_00": {
"nameOnWeb": "Ground Floor",
"room_00": {
"Device": {
"Device_01": {
"inNode": "dataNodeSlave01",
"name": "Device02",
"nameModule": "Light",
"nameOnWeb": "L... | apache-2.0 | -4,764,750,610,570,268,000 | 31.573034 | 52 | 0.312117 | false |
theandrewdavis/cpplint | cpplint.py | 1 | 262075 | #!/usr/bin/env python
#
# Copyright (c) 2009 Google Inc. 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... | bsd-3-clause | -2,675,977,740,084,183,600 | 36.97638 | 98 | 0.637501 | false |
datacommonsorg/website | server/tests/i18n_test.py | 1 | 1720 | # Copyright 2020 Google LLC
#
# 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 agreed to in writing, ... | apache-2.0 | 1,607,169,839,682,063,000 | 31.471698 | 74 | 0.594767 | false |
shoopio/shoop | shuup/admin/dashboard/utils.py | 2 | 1372 | # -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2019, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
import datetime
import time
from heapq import heappop, heappush
fr... | agpl-3.0 | 5,926,010,667,520,457,000 | 33.3 | 97 | 0.708455 | false |
cheminfo/RDKitjs | old/src/similarityMap_basic_functions.py | 1 | 3270 | def bivariate_normal(X, Y, sigmax=1.0, sigmay=1.0, mux=0.0, muy=0.0, sigmaxy=0.0):
Xmu = X-mux
Ymu = Y-muy
rho = sigmaxy/(sigmax*sigmay)
z = Xmu**2/sigmax**2 + Ymu**2/sigmay**2 - 2*rho*Xmu*Ymu/(sigmax*sigmay)
denom = 2*np.pi*sigmax*sigmay*np.sqrt(1-rho**2)
return np.exp(-z/(2*(1-rho**2))) / deno... | bsd-3-clause | -2,635,108,952,803,476,000 | 42.026316 | 240 | 0.666667 | false |
unicefuganda/uSurvey | survey/tests/models/test_interviews_model.py | 1 | 18752 | import string
from model_mommy import mommy
from datetime import datetime
from django_rq import job
from django.test.client import Client
from django.core.urlresolvers import reverse
from django.test.client import RequestFactory
from django.contrib.auth.models import User
from django.utils import timezone
from dateutil... | bsd-3-clause | -1,660,644,044,736,273,700 | 55.824242 | 120 | 0.65753 | false |
jason-ni/eventlet-raft | eventlet_raft/server.py | 1 | 3811 | import sys
import eventlet
from eventlet import event
import logging
import msgpack
from .settings import BUF_LEN
LOG = logging.getLogger('Server')
class Server(object):
exit_event = event.Event()
def __init__(self, conf):
super(Server, self).__init__()
self._node_listen_ip = conf.get('se... | apache-2.0 | 5,002,739,255,207,698,000 | 28.091603 | 80 | 0.547625 | false |
jpadilla/django-extensions | django_extensions/templatetags/highlighting.py | 1 | 3357 | # coding=utf-8
"""
Similar to syntax_color.py but this is intended more for being able to
copy+paste actual code into your Django templates without needing to
escape or anything crazy.
http://lobstertech.com/2008/aug/30/django_syntax_highlight_template_tag/
Example:
{% load highlighting %}
<style>
@import url("h... | mit | 1,858,541,039,714,672,400 | 29.518182 | 83 | 0.670241 | false |
sjdv1982/seamless | seamless/core/status.py | 1 | 10043 | class SeamlessInvalidValueError(ValueError):
def __str__(self):
s = type(self).__name__
if len(self.args):
s += ":" + " ".join([str(a) for a in self.args])
return s
class SeamlessUndefinedError(ValueError):
def __str__(self):
s = type(self).__name__
if len(s... | mit | 4,051,852,312,388,161,000 | 32.476667 | 76 | 0.572339 | false |
sjorek/geoanonymizer.py | geoanonymizer/spatial/projection.py | 1 | 2642 | # -*- coding: utf-8 -*-
u"""
Functions dealing with geodesic projection systems.
WGS84 (EPSG 4326) projection system
“OpenStreetMap uses the WGS84 spatial reference system used by the
Global Positioning System (GPS). It uses geographic coordinates
between -180° and 180° longitude and -90° and 90° latitu... | mit | -186,810,838,438,010,940 | 33.051948 | 79 | 0.692601 | false |
alejandrorosas/ardupilot | Tools/autotest/pysim/multicopter.py | 1 | 6720 | #!/usr/bin/env python
from aircraft import Aircraft
import util, time, math
from math import degrees, radians
from rotmat import Vector3, Matrix3
class Motor(object):
def __init__(self, angle, clockwise, servo):
self.angle = angle # angle in degrees from front
self.clockwise = clockwise # clockwis... | gpl-3.0 | 795,064,505,372,224,100 | 34.183246 | 98 | 0.524554 | false |
Hanaasagi/Ushio | initdb.py | 1 | 1961 | #!/usr/bin/python
# -*-coding:UTF-8-*-
import sys
import time
import yaml
import pymongo
from hashlib import md5
zone_map = {
'动漫': '一些关于动漫的事情',
'音乐': '一些关于音乐的事情',
'轻小说': '一些关于轻小说的事情'
}
def create_admin(db, setting):
email = raw_input('请输入可用邮箱账号: ')
username = raw_input('请输入管理员用户名: ')
passwo... | mit | 6,451,959,847,060,826,000 | 21.766234 | 64 | 0.509983 | false |
richbrowne/f5-openstack-agent | test/functional/neutronless/service_object_rename/test_service_object_rename.py | 1 | 8414 | from copy import deepcopy
import json
import logging
import mock
import os
import pytest
import requests
import time
from f5.bigip import ManagementRoot
from f5.utils.testutils.registrytools import register_device
from f5_openstack_agent.lbaasv2.drivers.bigip.icontrol_driver import \
iControlDriver
from f5_opensta... | apache-2.0 | -8,537,590,265,664,096,000 | 30.162963 | 80 | 0.650226 | false |
brumar/WPsolving | lib/postEvaluation.py | 1 | 4325 | '''
Created on 25 juil. 2014
@author: Nevrose
'''
import csv
class weightEvaluator():
def __init__(self):
self.datas={}
def prepareStructure(self,problemBank):
for problemName in problemBank.dicPbm.iterkeys():
problem=problemBank.dicPbm[problemName]
for indexInfo in ra... | mit | -129,583,702,923,696,180 | 56.666667 | 176 | 0.551676 | false |
cedrick-f/pyVot | src/PyVot.py | 1 | 5947 | #!/usr/bin/env python
# -*- coding: ISO-8859-1 -*-
##This file is part of PyVot
#############################################################################
#############################################################################
## ##
## ... | gpl-3.0 | -7,407,038,307,259,723,000 | 30.802139 | 99 | 0.478056 | false |
holocronweaver/wanikani2anki | app/widgets.py | 1 | 2595 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at http://mozilla.org/MPL/2.0/.
from kivy.base import EventLoop
from kivy.graphics import Color, Rectangle
from kivy.uix.button import Button
from kivy.uix... | mpl-2.0 | 5,325,115,064,332,014,000 | 33.144737 | 74 | 0.597303 | false |
EricssonResearch/calvin-base | calvin/actorstore/systemactors/net/UDPSender.py | 1 | 3461 | # -*- coding: utf-8 -*-
# Copyright (c) 2015 Ericsson AB
#
# 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 ... | apache-2.0 | 5,605,926,367,011,575,000 | 29.359649 | 127 | 0.59896 | false |
juliangarcia/pyevodyn | PyEvoDyn/pyevodyn/tests/weak_selection_theory_test.py | 1 | 1830 | '''
Created on Sep 28, 2012
@author: garcia
'''
import unittest
from pyevodyn import symbolic, numerical
from sympy.matrices import Matrix
import numpy as np
class Test(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_stationary_distribution(self):
for... | bsd-2-clause | 304,276,415,320,919,300 | 42.571429 | 113 | 0.515301 | false |
BrunoCaimar/ArcREST | src/arcresthelper/publishingtools.py | 1 | 133645 |
from __future__ import print_function
from __future__ import absolute_import
from .securityhandlerhelper import securityhandlerhelper
import re as re
dateTimeFormat = '%Y-%m-%d %H:%M'
import arcrest
from . import featureservicetools as featureservicetools
from arcrest.hostedservice import AdminFeatureService
impor... | apache-2.0 | -5,585,332,328,714,547,000 | 41.834936 | 201 | 0.440428 | false |
AnhellO/DAS_Sistemas | Ene-Jun-2021/perez-sanchez-jose-jahir/Examen/Ejercicio4/chain_of_test.py | 1 | 1251 | import unittest
from chain_of import *
#Las pruebas del chain of responsability, como lo que devuelve al final es un print y no un return, lo que me da es un None por eso se compara con un None para que pase,
#se que no esta bien, pero se que si pasaria la prueba si supiera implementar el unittest para prints con el m... | mit | 4,310,769,567,808,078,300 | 42.172414 | 182 | 0.68745 | false |
ktnyt/autosearch | autosearch/searcher.py | 1 | 1549 | from autosearch.form import Form
from autosearch.path import Path, PathFinder
from autosearch.utils import *
class Searcher(object):
def __init__(self, url, query):
self.url = url
top = addScore(parse(fetch(url)), query)
forms = []
paths = []
scores = []
# Find fo... | mit | -2,114,310,529,578,682,600 | 29.98 | 97 | 0.53583 | false |
PaulEcoffet/stonewallsgate | dunwallsgate/test/test_battle.py | 1 | 5888 | import unittest
from collections import Counter
import battle
import inventory
from character import Character
class TestBattle(unittest.TestCase):
def test_init_battle(self):
char1 = Character(None, maxhealth=100, initiative=1000)
char2 = Character(None, maxhealth=100, initiative=1)
bat... | gpl-2.0 | -6,642,242,283,896,249,000 | 43.606061 | 76 | 0.625849 | false |
ndaniel/fusioncatcher | bin/build_report_fusions_psl.py | 1 | 28831 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
It produces a report with the summary of the fusion genes found. Also
FASTQ and FASTA files containing the supporting reads corresponding to each
fusion gene is generated.
Author: Daniel Nicorici, Daniel.Nicorici@gmail.com
Copyright (c) 2009-2021 Daniel Nicorici
Th... | gpl-3.0 | -3,517,396,408,604,192,000 | 38.635488 | 249 | 0.512997 | false |
keithasaurus/django_fun_views | fun_views/views/generic/form/render.py | 1 | 1144 | from fun_views.patterns.form.render import form_render_pattern
from fun_views.views.utils import (get_context_base, make_base_view,
not_set_get_form_class,
not_set_get_template_name, prefer_func,
prefer_literal, ren... | mit | -5,728,591,379,269,749,000 | 35.903226 | 74 | 0.578671 | false |
mumax/2 | examples/stdproblem5-am01.py | 1 | 1828 | # Micromagnetics standard proplem no. 5
# As proposed by M. Najafi et al., JAP 105, 113914 (2009).
# @author Mykola Dvornik
from mumax2 import *
from mumax2_geom import *
Nx = 32
Ny = 32
Nz = 1
setgridsize(Nx, Ny, Nz)
# physical size in meters
sizeX = 100e-9
sizeY = 100e-9
sizeZ = 10e-9
csX = (sizeX/Nx)
csY = (size... | gpl-3.0 | -2,265,707,924,753,422,800 | 17.464646 | 60 | 0.561269 | false |
dseuss/pycsalgs | csalgs/lowrank/gradient.py | 1 | 2641 | # encoding: utf-8
import itertools as it
import numpy as np
import numpy.linalg as la
from scipy.sparse.linalg import svds
__all__ = ['adaptive_stepsize', 'iht_estimator', 'cgm_estimator']
def _vec(A):
newshape = A.shape[:-2]
newshape = newshape + (A.shape[-2] * A.shape[-1],)
return A.reshape(newshape)... | gpl-3.0 | 84,450,061,899,274,080 | 27.706522 | 78 | 0.558122 | false |
Vaidyanath/tempest | tempest/common/cred_provider.py | 1 | 4110 | # Copyright (c) 2014 Deutsche Telekom AG
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
# 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... | apache-2.0 | 1,885,659,017,075,570,700 | 34.73913 | 79 | 0.659854 | false |
EwanC/MrMangler | test/itanium_runner.py | 1 | 4683 | #!/usr/bin/env python
''' Test harness for validating MrMangler binary
Checks itanium manglings generated by MrMangler matches
the counterpart demangling from c++filt.
'''
import argparse
import os
import subprocess
import sys
def run_mangler(func_signature, exe):
''' Runs MrMangler executable
Args:
... | mit | -4,054,789,201,465,943,000 | 31.075342 | 79 | 0.599402 | false |
cathyyul/sumo-0.18 | tests/complex/traci/busySocket/runner.py | 1 | 1168 | #!/usr/bin/env python
import os, subprocess, sys, time, shutil
sumoHome = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', '..'))
sys.path.append(os.path.join(sumoHome, "tools"))
import traci
if sys.argv[1]=="sumo":
sumoBinary = os.environ.get("SUMO_BINARY", os.path.join(sumoHome, 'bin',... | gpl-3.0 | -7,274,768,031,797,202,000 | 32.371429 | 121 | 0.662671 | false |
Azure/azure-sdk-for-python | sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/operations/_service_tags_operations.py | 1 | 4633 | # 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.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | mit | -2,006,565,035,034,045,000 | 44.421569 | 139 | 0.667386 | false |
javimosch/cdnsviewer | savecss.py | 1 | 1626 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# server.py: receive CSS and JS files from Chrome extension
# and save files locally
#
# Author: Tomi.Mickelsson@iki.fi
# 30.10.2011 - Created
try:
# python 2.x
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
except:
# python 3.x
from http.se... | mit | 2,339,234,633,292,802,600 | 25.655738 | 66 | 0.591021 | false |
qmarlats/pyquizz | env-3/bin/rst2odt_prepstyles.py | 1 | 1745 | #!/home/qmarlats/Documents/Projets/utbm/pyquizz/env-3/bin/python3
# $Id: rst2odt_prepstyles.py 5839 2009-01-07 19:09:28Z dkuhlman $
# Author: Dave Kuhlman <dkuhlman@rexx.com>
# Copyright: This module has been placed in the public domain.
"""
Fix a word-processor-generated styles.odt for odtwriter use: Drop page size
... | gpl-3.0 | -4,412,693,940,476,137,500 | 25.044776 | 75 | 0.633238 | false |
BotDevGroup/marvin | marvinbot/views.py | 1 | 1385 | import logging
from flask import (
request, session, g, redirect, url_for, abort, render_template,
flash, current_app, Blueprint
)
from flask_login import login_user, logout_user, current_user, login_required
from marvinbot.models import User
from marvinbot.forms import LoginForm
from marvinbot.utils.net import... | mit | -2,103,130,300,611,279,000 | 28.468085 | 77 | 0.658484 | false |
rszki/Protein | PDBList.py | 1 | 4456 | # -*- coding: utf-8 -*-
'''
Created on 2012/12/14
自作のPDB関連リストの操作をまとめたモジュール
対象となるものは、基本的にはリストになる。
セパレーターはデフォルトを "," とする
ReadList
ToInt
ToStr
WriteList
DivideList
ToDetailNum
ToPDBNum
MakeLinkerTupple
@author: ryosuke
'''
def ReadList(filename, shold_ToInt=True, sep=","):
'''
Read my definition PDB list file... | gpl-2.0 | -6,933,500,030,450,986,000 | 23.116667 | 69 | 0.571198 | false |
openstack/python-magnumclient | magnumclient/v1/client.py | 1 | 8312 | # Copyright 2014
# The Cloudscaling Group, 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 applicable law or agre... | apache-2.0 | -6,866,224,370,728,681,000 | 36.954338 | 77 | 0.611165 | false |
noxdafox/pebble | pebble/common.py | 1 | 5693 | # This file is part of Pebble.
# Copyright (c) 2013-2021, Matteo Cafasso
# Pebble is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation,
# either version 3 of the License, or (at your option) any later versio... | lgpl-3.0 | 3,995,260,078,226,853,400 | 28.194872 | 78 | 0.657825 | false |
derwentx/WooGenerator | tests/test_syncupdate.py | 1 | 2736 | import traceback
import unittest
from pprint import pformat
from context import get_testdata, TESTS_DATA_DIR, woogenerator
from woogenerator.namespace.core import (MatchNamespace, ParserNamespace,
SettingsNamespaceProto,
UpdateNamespace)... | gpl-2.0 | 173,407,668,335,882,200 | 37.535211 | 73 | 0.617325 | false |
clubit/edi-workflow | edi_tools/wizard/edi_wizard_archive_incoming.py | 1 | 1327 | from openerp.osv import osv
from openerp.tools.translate import _
from openerp import netsvc
class edi_tools_edi_wizard_archive_incoming(osv.TransientModel):
_name = 'edi.tools.edi.wizard.archive.incoming'
_description = 'Archive EDI Documents'
''' edi.tools.edi.wizard.archive.incoming:archive()
-... | agpl-3.0 | 7,202,058,422,622,266,000 | 44.758621 | 118 | 0.562924 | false |
jamesroutley/formation | test/test_parameter.py | 1 | 2073 | # -*- coding: utf-8 -*-
import pytest
import formation.parameter
from formation.parameter import Parameter
@pytest.mark.parametrize("parameter,expected_output", [
(
Parameter("A"),
"Parameter(title='A', param_type='String', **{})"
),
(
Parameter("A", "Number"),
"Parameter... | apache-2.0 | 6,632,965,659,923,859,000 | 25.576923 | 70 | 0.581766 | false |
samuelchen/code-snippets | python/logger.py | 1 | 1906 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Created on 2013-12-12
@author: samuelchen
'''
import logging, logging.handlers
import os
import sys
class LogLevelFilter(object):
def __init__(self, level):
self.__level = level
def filter(self, logRecord):
return logRecord... | gpl-2.0 | 3,733,849,311,889,806,300 | 23.756757 | 67 | 0.605981 | false |
ai-se/Tree-Learner | dEvol.py | 1 | 8919 | #! /Users/rkrsn/miniconda/bin/python
from __future__ import print_function, division
from os import environ, getcwd
import sys
# Update PYTHONPATH
cwd = getcwd() # Current Directory
axe = cwd + '/axe/' # AXE
pystat = cwd + '/pystats/' # PySTAT
where = cwd + '/_imports/' # Where
sys.path.extend([axe, pystat, cwd, w... | unlicense | 5,297,623,826,683,390,000 | 25.703593 | 81 | 0.528086 | false |
simpeg/simpeg | tests/em/vrm/waveform_tests.py | 1 | 2876 | import unittest
import SimPEG.VRM as VRM
import numpy as np
class VRM_waveform_tests(unittest.TestCase):
def test_discrete(self):
"""
Test ensures that if all different waveform classes are used to
construct the same waveform, the characteristic decay they
produce should be the s... | mit | 2,723,740,503,742,058,500 | 35.871795 | 88 | 0.620654 | false |
mverwe/UserCode | topConfigs/crabConfigPPMCWZTo3LNu.py | 1 | 1269 | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.section_('General')
config.General.requestName = 'MCWZTo3LNU_v2'
config.General.workArea = 'crab_projects'
config.General.transferOutputs = True
config.General.transferLogs = False
config.section_('JobType')
config.JobType.pl... | cc0-1.0 | 6,060,302,450,106,162,000 | 37.454545 | 160 | 0.78093 | false |
nextgis/nextgisweb | setup.py | 1 | 4264 | # -*- coding: utf-8 -*-
import sys
import io
import os
import os.path
from stat import S_IXUSR, S_IXGRP, S_IXOTH
from subprocess import check_output, CalledProcessError
from setuptools import setup, find_packages
from setuptools.command.develop import develop
from setuptools.command.install import install
with io.ope... | gpl-3.0 | 6,692,886,225,111,922,000 | 25.65 | 94 | 0.582552 | false |
gppezzi/easybuild-framework | test/framework/toolchainvariables.py | 1 | 7445 | # #
# Copyright 2012-2019 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (... | gpl-2.0 | 1,708,847,449,100,512,800 | 42.034682 | 120 | 0.578106 | false |
kvar/ansible | lib/ansible/modules/cloud/amazon/execute_lambda.py | 1 | 10521 | #!/usr/bin/python
# This file is part of Ansible
#
# Ansible 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.
#
# Ansible is distributed... | gpl-3.0 | 597,858,952,520,278,100 | 35.030822 | 116 | 0.639863 | false |
mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/eggs/mercurial-2.2.3-py2.7-linux-x86_64-ucs4.egg/mercurial/win32.py | 1 | 15830 | # win32.py - utility functions that use win32 API
#
# Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
import ctypes, errno, os, struct, subprocess, random
_kernel32 = ... | gpl-3.0 | -3,631,045,314,598,587,400 | 34.099778 | 80 | 0.6482 | false |
zstackio/zstack-woodpecker | zstackwoodpecker/zstackwoodpecker/operations/datamigrate_operations.py | 1 | 3332 | '''
All data migrate operations for test.
@author: Legion
'''
import apibinding.api_actions as api_actions
import zstackwoodpecker.test_util as test_util
import account_operations
import apibinding.inventory as inventory
def ps_migrage_vm(dst_ps_uuid, vm_uuid, session_uuid=None, withDataVolumes=False, withSnapshots... | apache-2.0 | 3,511,064,920,320,922,000 | 47.289855 | 141 | 0.752401 | false |
jeKnowledge/horarios-inforestudante | DataParser.py | 1 | 3411 | import csv
import datetime
import re
from Structs import AulaDataRaw
from Structs import AulaDataSripped
def openFile(filePath):
return open(filePath)
def csvIntoRawArray(csvFile):
# Array of arrays(lines) with data
filereader = csv.reader(csvFile)
# We will be returning an array of AulaDataRaw
... | mit | -2,165,584,668,745,276,400 | 25.238462 | 116 | 0.613603 | false |
ermo/privateer_wcu | modules/wrong_escort.py | 1 | 2543 | import escort_mission
import faction_ships
class wrong_escort (escort_mission.escort_mission):
def __init__ (self,factionname,missiondifficulty,distance_from_base,creds,numsysaway,jumps=(),var_to_set='',dynfg='',dyntype='',alternatesystems=(),alternatefactions=(),alternateflightgroups=(),alternatetypes=(),alternate... | gpl-2.0 | 8,869,745,354,992,858,000 | 49.86 | 267 | 0.585529 | false |
goodmami/pydelphin | tests/mrs_eds_test.py | 1 | 11908 |
import pytest
from delphin.mrs import simplemrs, eds
from delphin.mrs.components import Node, Pred, Lnk
from delphin.mrs.config import CVARSORT
# empty
empty = simplemrs.loads_one('''[ ]''')
# "It rains."
it_rains = simplemrs.loads_one('''
[ LTOP: h0
INDEX: e2 [ e SF: prop TENSE: pres MOOD: indicative PROG: - PER... | mit | -8,983,562,707,083,588,000 | 32.925926 | 126 | 0.477578 | false |
faneshion/MatchZoo | matchzoo/auto/tuner/callbacks/load_embedding_matrix.py | 1 | 1541 | from matchzoo.engine.base_model import BaseModel
from matchzoo.auto.tuner.callbacks.callback import Callback
class LoadEmbeddingMatrix(Callback):
"""
Load a pre-trained embedding after the model is built.
Used with tuner to load a pre-trained embedding matrix for each newly built
model instance.
... | apache-2.0 | -8,370,876,919,457,573,000 | 33.244444 | 79 | 0.595717 | false |
credativUK/vdirsyncer | vdirsyncer/sync.py | 1 | 11250 | # -*- coding: utf-8 -*-
'''
The function in `vdirsyncer.sync` can be called on two instances of `Storage`
to synchronize them. Due to the abstract API storage classes are implementing,
the two given instances don't have to be of the same exact type. This allows us
not only to synchronize a local vdir with a CalDAV serv... | mit | -7,033,694,881,106,067,000 | 33.829721 | 79 | 0.573778 | false |
cgqyh/pyalgotrade-mod | pyalgotrade/optimizer/server.py | 1 | 8087 | # PyAlgoTrade
#
# Copyright 2011-2015 Gabriel Martin Becedillas Ruiz
#
# 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 ap... | apache-2.0 | -4,952,820,957,967,452,000 | 32.556017 | 182 | 0.634599 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.