repo_name stringlengths 8 92 | path stringlengths 5 221 | copies stringclasses 10
values | size stringlengths 4 6 | content stringlengths 974 828k | license stringclasses 15
values | hash int64 -9,212,977,344,346,658,000 9,220,224,517B | line_mean float64 8.67 91.6 | line_max int64 15 966 | alpha_frac float64 0.29 0.86 | autogenerated bool 1
class | nl_text stringlengths 0 164k | nl_size int64 0 164k | nl_language stringclasses 17
values | nl_language_score float64 0.04 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TeamSWAP/swap | external/pyinstaller/tests/runtests.py | 1 | 24562 | #! /usr/bin/env python
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distr... | apache-2.0 | 3,188,461,673,179,419,000 | 34.961933 | 121 | 0.56852 | false | ! /usr/bin/env python----------------------------------------------------------------------------- Copyright (c) 2013, PyInstaller Development Team. Distributed under the terms of the GNU General Public License with exception for distributing bootloader. The full license is in the file COPYING.txt, distributed with thi... | 3,702 | en | 0.795325 |
NNTin/Reply-Dota-2-Reddit | displayreddit/drmatch.py | 1 | 5099 | from steamapi.getproplayerlist import proPlayerDictionary
from steamapi.getheroes import heroDictionary
from steamapi.getgameitems import itemDictionary
from converter import timeconverter, playerconverter
def displayResult(matchJson, playerSummariesJson):
introTemplate = '####	\n#####	 ' \
... | mit | -7,995,903,472,055,855,000 | 54.956044 | 176 | 0.574543 | false | print(introTemplate + tableTemplate + tableLineTemplate + outtroTemplate)TODO: Provide additional information if match is tournamentlevel, hero, player, kda, lh d, xpm, gpm, hd, hh, td<127 -> Radiant | 199 | en | 0.400593 |
UMDWeather/TheDisplayer | plugins/current/weather_underground.py | 1 | 1027 | import urllib, json
import datetime as dt
import logging
log = logging.getLogger(__name__)
################################################################################
## REQUIRED parameters:
################################################################################
## data_url - e.g. "http://api.wundergrou... | gpl-2.0 | 941,463,521,244,889,000 | 32.129032 | 103 | 0.523856 | false | buffer the data so that we don't do reads too often
REQUIRED parameters: data_url - e.g. "http://api.wunderground.com/api/3a5b82718926c103/conditions/q/MD/College_Park.json" is it time to get new data? | 203 | en | 0.826446 |
kkaushik24/python-design-patterns | structural/bridge_pattern.py | 1 | 1404 | from abc import ABCMeta, abstractmethod
class DrawingApi:
def draw_circle(self, x, y, radius):
pass
class DrawingApi1(DrawingApi):
def draw_circle(self, x, y, radius):
print "Api1 ", x, y, radius
class DrawingApi2(DrawingApi):
def draw_circle(self, x, y, radius):
print "Api1 ... | apache-2.0 | 922,079,697,343,518,000 | 22.79661 | 74 | 0.625356 | false | 0 | en | 0.110449 | |
jaeilepp/mne-python | mne/coreg.py | 1 | 42970 | """Coregistration between different coordinate frames."""
# Authors: Christian Brodbeck <christianbrodbeck@nyu.edu>
#
# License: BSD (3-clause)
from .externals.six.moves import configparser
from .externals.six import string_types
import fnmatch
from glob import glob, iglob
import os
import stat
import sys
import re
i... | bsd-3-clause | -3,178,512,339,683,785,700 | 35.018441 | 79 | 0.600931 | false | Decimate the number of points using a voxel grid.
Create a voxel grid with a specified resolution and retain at most one
point per voxel. For each voxel, the point closest to its center is
retained.
Parameters
----------
pts : array, shape (n_points, 3)
The points making up the head shape.
res : scalar
The re... | 14,156 | en | 0.699391 |
adybbroe/atrain_match | python_edit_the_code.py | 1 | 3570 | import re, glob, os
ROOT_DIR = "/home/a001865/git/rename_atrainmatch/atrain_match/"
files = glob.glob(ROOT_DIR + "/*.py")
files = files + glob.glob(ROOT_DIR + "/*/*.py")
files = files + glob.glob(ROOT_DIR + "/*/*/*.py")
var_name_dict ={
"time": "profile_time",
"utc_time": "prof... | gpl-3.0 | 4,090,333,391,999,040,500 | 41 | 77 | 0.527451 | false | "cloud_top_profile": "layer_top_altitude","cloud_top_profile_pressure":"layer_top_pressure","cloud_base_profile": "layer_base_altitude","number_of_layers_found": "number_layers_found","igbp": "igbp_surface_type","nsidc": "nsidc_surface_type",line = line.replace... | 1,748 | en | 0.323952 |
jhlee525/janna | janna/streamer/batch.py | 1 | 4174 | from .base import *
from ..logger import logger
import numpy as np
from itertools import count
class Batch(StreamerBase):
_count = count(0)
def __init__(self, prev, batch_size, squeeze=False, name=None):
if not isinstance(batch_size, int):
raise KeyError('Batch size must be integer')
... | mit | 8,256,329,126,504,383,000 | 32.392 | 89 | 0.516291 | false | Enables many-to-one get
Naming | 32 | en | 0.674126 |
openwsn-berkeley/range_test | raspberry/experiment_tx.py | 1 | 23331 | """
Transmission script of the range test.
author Jonathan Munoz (jonathan.munoz@inria.fr), January 2017
"""
import time
import logging
import threading
import sys
import sched
import Queue
import json
from datetime import datetime as dt
import datetime
import socket
from threading import Timer
import at86rf215_defs... | bsd-2-clause | -7,964,004,491,712,060,000 | 41.730769 | 123 | 0.541983 | false | "
:param item
it lights on a LED if the experiment will take place in the next minute
it uses the frame receive LED to indicate whether the experiment is going to start the next minute or not.
:return:
it sets the next runtime for the whole experiment sequence in hours, minutes
current_time[3] = hours, current_time[4] ... | 5,209 | en | 0.577075 |
jeromecc/doctoctocbot | src/moderation/twitter/user.py | 1 | 2364 | from moderation.models import SocialUser
from bot.tweepy_api import get_api as get_tweepy_api
from tweepy import TweepError
from tweepy.models import User as TweepyUser
from community.models import Community
import logging
from community.helpers import get_community_twitter_tweepy_api
import time
logger = logging.getL... | mpl-2.0 | 6,726,107,315,724,089,000 | 30.118421 | 79 | 0.565144 | false | 0 | en | 0.110449 | |
bugzPDX/airmozilla | airmozilla/manage/autocompeter.py | 1 | 5110 | import datetime
import json
import time
import sys
from pprint import pprint
import requests
from django.conf import settings
from django.utils import timezone
from django.db.models import Count
from django.core.exceptions import ImproperlyConfigured
from funfactory.urlresolvers import reverse
from airmozilla.main.... | bsd-3-clause | -4,856,101,207,579,082,000 | 28.709302 | 78 | 0.567515 | false | pragma: no cover pragma: no cover there are events, we'll need a hits_map and a median Only bother to set this up if there are events to loop over. Oftentimes the cronjob will trigger here with no new recently changed events and then the loop below ('for event in events:') will do nothing. future events can be importan... | 376 | en | 0.91554 |
ufal/neuralmonkey | neuralmonkey/evaluators/chrf.py | 1 | 3455 | from typing import List, Dict
from typeguard import check_argument_types
import numpy as np
from neuralmonkey.evaluators.evaluator import Evaluator
# pylint: disable=invalid-name
NGramDicts = List[Dict[str, int]]
# pylint: enable=invalid-name
class ChrFEvaluator(Evaluator[List[str]]):
"""Compute ChrF score.
... | bsd-3-clause | 5,065,427,443,965,041,000 | 33.207921 | 77 | 0.529957 | false | Compute ChrF score.
See http://www.statmt.org/wmt15/pdf/WMT49.pdf
pylint: disable=invalid-name pylint: enable=invalid-name type: List[str] type: Dict[str, int] pylint: disable=invalid-name | 191 | en | 0.355972 |
UMONS-GFA/bdas | doc/sensors/sim_pluvio.py | 1 | 18407 | __author__ = 'kaufmanno'
import numpy as np
from scipy.interpolate import pchip_interpolate, interp1d
import matplotlib.pyplot as plt
draw_graphs = True
#draw_graphs = False
load_calibration = True
save_calibration = False
calibration_file = 'calibration.txt'
single_flow = True # a varying flow otherwise a series o... | gpl-3.0 | 6,213,190,602,569,627,000 | 44.776119 | 194 | 0.574154 | false | draw_graphs = False a varying flow otherwise a series of flows if not single_flow : l/h l/h l/h General constants [mm/s²] void electric permittivity Tank parameters height above tube in tank [mm] height of the tube above the bottom of the tank [mm] hole diameter [mm] tank diameter [mm] Siphon gauge parameters height be... | 2,864 | en | 0.654221 |
public-ink/public-ink | server/appengine-staging/lib/graphene/types/generic.py | 1 | 1233 | from __future__ import unicode_literals
from graphql.language.ast import (BooleanValue, FloatValue, IntValue,
StringValue, ListValue, ObjectValue)
from graphene.types.scalars import MIN_INT, MAX_INT
from .scalars import Scalar
class GenericScalar(Scalar):
"""
The `GenericSc... | gpl-3.0 | 3,297,268,475,079,431,000 | 30.615385 | 103 | 0.631792 | false | The `GenericScalar` scalar type represents a generic
GraphQL scalar value that could be:
String, Boolean, Int, Float, List or Object. | 133 | en | 0.741087 |
rlazojr/totalinstaller | plugin.program.community.builds/resetAddon.py | 1 | 1229 | #
# Copyright (C) 2014 Richard Dean
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This Program is distributed in the ... | gpl-2.0 | -6,033,804,512,929,722,000 | 34.114286 | 182 | 0.729048 | false | Copyright (C) 2014 Richard Dean This Program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This Program is distributed in the hope that it will be us... | 731 | en | 0.898073 |
melinath/django-graph-api | django_graph_api/graphql/introspection.py | 1 | 7781 | from django_graph_api.graphql.types import (
BooleanField,
CharField,
Enum,
ENUM,
EnumField,
INPUT_OBJECT,
INTERFACE,
List,
LIST,
ManyEnumField,
ManyRelatedField,
NON_NULL,
Object,
OBJECT,
RelatedField,
SCALAR,
UNION,
NonNull,
)
class DirectiveLo... | mit | -8,515,198,416,324,023,000 | 25.198653 | 83 | 0.528081 | false | self.data will be an item from a declared fields dict self.data will be an object or scalar Don't return NonNull if self is already NonNull self.data will be the query_root. Sort: defined types, introspection types, scalars, and then by name. | 242 | en | 0.568635 |
fsimkovic/conkit | conkit/core/struct.py | 1 | 2751 | # BSD 3-Clause License
#
# Copyright (c) 2016-18, University of Liverpool
# 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 notic... | bsd-3-clause | 3,594,218,753,008,442,400 | 39.455882 | 118 | 0.708833 | false | A basic class representing a gap residue
A basic class representing a residue
A basic class representing a struct residue
Internal classes required by ConKit defining some sort of internal structure
BSD 3-Clause License Copyright (c) 2016-18, University of Liverpool All rights reserved. Redistribution and use in sour... | 1,720 | en | 0.883189 |
bravomikekilo/mxconsole | mxconsole/platform/flags.py | 1 | 4765 | # Copyright 2015 The TensorFlow Authors. 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 applica... | apache-2.0 | 3,211,316,646,001,435,600 | 32.321678 | 80 | 0.633998 | false | Global container and accessor for flags and their values.
Defines a flag of type 'boolean'.
Args:
flag_name: The name of the flag as a string.
default_value: The default value the flag should take as a boolean.
docstring: A helpful message explaining the use of the flag.
Defines a flag of type 'float'.
Args:
... | 2,183 | en | 0.680345 |
bundlewrap/bundlewrap | bundlewrap/utils/ui.py | 1 | 14061 | from contextlib import contextmanager, suppress
from datetime import datetime
from functools import wraps
from os import _exit, environ, getpid, kill
from os.path import join
from select import select
from shutil import get_terminal_size
from signal import signal, SIG_DFL, SIGINT, SIGQUIT, SIGTERM
from subprocess impor... | gpl-3.0 | -4,341,101,949,010,468,400 | 31.969484 | 98 | 0.527376 | false | Threadsafe singleton class that handles all IO.
Makes sure formatting from cut-off lines can't bleed into next one
View the given list of Unicode lines in a pager (e.g. `less`).
This handler is kept short since it interrupts execution of the
main thread. It's safer to handle these events in their own thread
because the... | 939 | en | 0.960711 |
susahe/sis | sis/schedule/models.py | 1 | 1278 | from __future__ import unicode_literals
from django.template.defaultfilters import slugify
from django.contrib.auth.models import User
from django.db import models
from course.models import Activity,Course,CourseGroup
from datetime import datetime
# Theory Session table create
# have relationship between course gro... | gpl-2.0 | 7,980,110,490,229,708,000 | 35.514286 | 68 | 0.79734 | false | Theory Session table create have relationship between course groups table an | 77 | en | 0.878734 |
Cinntax/home-assistant | homeassistant/components/plex/media_player.py | 1 | 28269 | """Support to interface with the Plex API."""
from datetime import timedelta
import json
import logging
import plexapi.exceptions
import plexapi.playlist
import plexapi.playqueue
import requests.exceptions
from homeassistant.components.media_player import MediaPlayerDevice
from homeassistant.components.media_player.c... | apache-2.0 | 1,241,736,605,791,758,600 | 33.986386 | 88 | 0.564894 | false | Representation of a Plex device.
Initialize the Plex device.
Get the active media type required by PlexAPI commands.
Set all Media Items to None.
Instruct Plex client to play a piece of media.
Find TV media and return a Plex media object.
Set up the Plex media_player platform.
Sync version of async add entities.
Return... | 3,347 | en | 0.905246 |
kwikteam/global_superclustering | global_code/emlaunch_synthetic_test_get_initclust.py | 1 | 1230 | #Be sure to run
#python setup.py build_ext --inplace
#before running this script
import pickle
import numpy as np
import matplotlib.pyplot as plt
import sorting
from supercluster import *
from klustakwik2 import *
import imp # lets you reload modules using e.g.imp.reload(sorting)
from IPython import embed
import tim... | gpl-2.0 | 7,085,543,806,165,810,000 | 28.285714 | 90 | 0.749593 | false | Be sure to run python setup.py build_ext --inplacebefore running this script lets you reload modules using e.g.imp.reload(sorting)script_params.update( run_monitoring_server=False, debug=True, )embed()produces an initial random clustering with 4 starting clusters.superdata used to be called silly | 318 | en | 0.40274 |
djaodjin/djaodjin-pages | pages/api/sources.py | 1 | 5950 | # Copyright (c) 2021, Djaodjin 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:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and t... | bsd-2-clause | 5,008,858,569,694,676,000 | 30.989247 | 78 | 0.64084 | false | Retrieves a template source file
**Examples
.. code-block:: http
GET /api/themes/sources/index.html HTTP/1.1
responds
.. code-block:: json
{
"text": "..."
}
Creates a template source file
**Examples
.. code-block:: http
POST /api/themes/sources/index.html HTTP/1.1
.. code-block:: json... | 2,184 | en | 0.725787 |
Zlash65/erpnext | erpnext/assets/doctype/asset/asset.py | 1 | 23671 | # -*- coding: utf-8 -*-
# Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe, erpnext, math, json
from frappe import _
from six import string_types
from frappe.utils import flt, add_months, cint, now... | gpl-3.0 | -5,258,987,987,461,458,000 | 38.320598 | 166 | 0.715137 | false | Returns status based on whether it is draft, submitted, scrapped or depreciated
Get and update status
-*- coding: utf-8 -*- Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors For license information, please see license.txt square root of flt(salvage_value) / flt(asset_cost) | 292 | en | 0.722349 |
AISpace2/AISpace2 | aispace2/jupyter/csp/csp.py | 1 | 23307 | import threading
from functools import partial
from time import sleep
from ipywidgets import register
from traitlets import Bool, Dict, Float, Instance, Unicode
from aipython.cspProblem import CSP
from ... import __version__
from ..stepdomwidget import ReturnableThread, StepDOMWidget
from .cspjsonbridge import (csp_... | gpl-3.0 | -6,535,950,557,674,089,000 | 38.105705 | 131 | 0.562449 | false | A Jupyter widget for visualizing constraint satisfaction problems (CSPs).
Handles arc consistency, domain splitting, and stochastic local search (SLS).
See the accompanying frontend file: `js/src/csp/CSPVisualizer.ts`
Sends a message to the front-end visualization to highlight arcs.
Args:
arcs ((string, Constrai... | 5,400 | en | 0.832596 |
lukefrasera/cs775Homework | hw_002/scripts/gaussian_classify.py | 1 | 9070 | #!/usr/bin/env python
import numpy as np
from numpy import linalg as la
import matplotlib.pyplot as plt
import argparse
import os
import pdb
from scipy import spatial
import time
import operator
'''
Python Program demonstrating the use of a gaussian classifier.
'''
#KNNCLassifier returns a tuple of the K closest featu... | lgpl-3.0 | -3,786,826,768,799,533,600 | 42.605769 | 159 | 0.653032 | false | !/usr/bin/env pythonKNNCLassifier returns a tuple of the K closest feature vectorspdb.set_trace()catch the case where K=1sample = meanMatfor each sample, compute the probability of it belonging to each classpdb.set_trace() Check if Arguments allow execution trainagainst training file train read file contents parse data... | 513 | en | 0.648284 |
srowe/xen-api | scripts/examples/smapiv2.py | 8 | 9466 | #!/usr/bin/env python
import os, sys, time, socket, traceback
log_f = os.fdopen(os.dup(sys.stdout.fileno()), "aw")
pid = None
def reopenlog(log_file):
global log_f
if log_f:
log_f.close()
if log_file:
log_f = open(log_file, "aw")
else:
log_f = os.fdopen(os.dup(sys.stdout.filen... | lgpl-2.1 | -7,150,863,785,080,457,000 | 31.754325 | 105 | 0.570251 | false | !/usr/bin/env python Functions to construct SMAPI return types Throw this to return an SR_BACKEND_FAILURE to the caller return ['Success', ['Vdi', {'vdi': location, 'virtual_size': str(virtual_size) }]] Type-checking helper functions Well-known feature flags understood by xapi Unmarshals arguments and marshals r... | 745 | en | 0.676293 |
Oksisane/RSS-Bot | Trolly-master/trolly/board.py | 1 | 5227 | """
Created on 8 Nov 2012
@author: plish
"""
from trolly.trelloobject import TrelloObject
class Board(TrelloObject):
"""
Class representing a Trello Board
"""
def __init__(self, trello_client, board_id, name=''):
super(Board, self).__init__(trello_client)
self.id = board_id
... | gpl-3.0 | -6,671,452,477,042,218,000 | 27.71978 | 79 | 0.579682 | false | Class representing a Trello Board
Create a list for a board. Returns a new List object.
Add a member to the board. Membership type can be normal or admin.
Returns JSON of all members if successful or raises an Unauthorised
exception if not.
Add a member to the board using the id. Membership type can be
normal or admin.... | 1,026 | en | 0.826979 |
nicolasdespres/hunittest | hunittest/test/test_stopwatch.py | 1 | 2631 | # -*- encoding: utf-8 -*-
"""Test 'stopwath' module.
"""
import unittest
import time
from datetime import timedelta
from hunittest.stopwatch import StopWatch
class TestStopWatch(unittest.TestCase):
def assertTimedeltaAlmostEqual(self, td1, td2, prec=1e-3):
return abs(td1 - td2).total_seconds <= prec
... | bsd-2-clause | 5,127,935,866,404,837,000 | 31.085366 | 78 | 0.558723 | false | Test 'stopwath' module.
-*- encoding: utf-8 -*- split 1 split 1 | 65 | en | 0.451594 |
Lukasa/testifi | testifi/server.py | 1 | 1038 | # -*- coding: utf-8 -*-
"""
testifi.server
~~~~~~~~~~~~~~
The primary server module in testifi.
"""
import sys
import structlog
from twisted.web import server, resource
from twisted.internet import reactor
from twisted.internet.defer import DeferredQueue
from twisted.internet.task import LoopingCall
from twisted.pyt... | mit | -7,580,820,496,910,374,000 | 21.085106 | 68 | 0.716763 | false | -*- coding: utf-8 -*- | 21 | en | 0.767281 |
trolldbois/ctypeslib | test/util.py | 1 | 5667 | # From clang/bindings/python/cindex/test
# This file provides common utility functions for the test suite.
#
import ctypes
import os
from io import StringIO
from ctypes import RTLD_GLOBAL
from clang.cindex import Cursor
from clang.cindex import TranslationUnit
import unittest
from ctypeslib.codegen import clangparser... | mit | 646,252,004,290,654,700 | 33.554878 | 107 | 0.562908 | false | Take a file input and generate the code.
because we rename "struct x" to struct_x, we have to reverse that
Compare offset of records' fields using clang offsets versus
python offsets.
name: the name of the structure.
The findings and offset comparaison of members fields is automatic.
Compare size of r... | 1,001 | en | 0.658584 |
zevanzhao/TCCL-Code | ADF/ADFDFTB2xyz.py | 1 | 1334 | #!/usr/bin/env python
#Time-stamp: <Last updated: Zhao,Yafan zhaoyafan@mail.thu.edu.cn 2013-11-25 20:20:08>
"""
A script to get the optimized geometry from ADF DFTB calculation out file.
"""
import sys, re
if (len(sys.argv) < 2):
print "Usage: ADFDFTB2xyz.py [adf.out]"
exit(0)
ADFOUT = sys.argv[1]
inp = open(AD... | gpl-3.0 | 2,415,750,034,143,794,000 | 25.68 | 85 | 0.60045 | false | !/usr/bin/env pythonTime-stamp: <Last updated: Zhao,Yafan zhaoyafan@mail.thu.edu.cn 2013-11-25 20:20:08>Search for the geometry sectionprint "Find start at line %d" %(i)print "Find end at line %d" %(i)print "%s" % (geolines)Search for the geometry section in angstromprint "%s" % (angstromgeo)print the geometry | 311 | en | 0.487839 |
calee0219/Course | ML/lab2/lab2_vedio.py | 1 | 1755 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import time
import pandas as pd
from sklearn.preprocessing import normalize
from sklearn.neighbors import KNeighborsClassifier as KNN
from sklearn.metrics import confusion_matrix
from sklearn.model_selection import KFold
from scipy.spatial.distance import cosine as Cos
d... | mit | 4,068,913,304,894,074,000 | 30.339286 | 75 | 0.679202 | false | !/usr/bin/env python3 -*- coding: utf-8 -*- Cos re | 50 | en | 0.320591 |
henkelis/sonospy | web2py/applications/sonospy/models/menu.py | 1 | 1952 | # -*- coding: utf-8 -*-
#########################################################################
## Customize your APP title, subtitle and menus here
#########################################################################
response.title = request.application
response.subtitle = T('UPnP ControlPoint')
###########... | gpl-3.0 | -4,725,703,634,237,785,000 | 36.538462 | 80 | 0.433402 | false | -*- coding: utf-8 -*- Customize your APP title, subtitle and menus here this is the main application menu add/remove items as required this is here to provide shortcuts during development. remove in production | 210 | en | 0.915915 |
mgramsay/PlasMarkov | tweet.py | 1 | 2137 | # -*- coding: utf-8 -*-
# Copyright (c) 2016 Martin Ramsay
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modif... | mit | 4,053,133,167,695,728,600 | 35.220339 | 79 | 0.680861 | false | -*- coding: utf-8 -*- Copyright (c) 2016 Martin Ramsay Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publ... | 1,075 | en | 0.876096 |
dataforimpact/veliquest | scrapers/v1-plus-local-storage/jcdecaux-scraper.py | 1 | 3422 | import os
import sys
import requests
import json
import datetime as dt
from boto.s3.connection import S3Connection, Location
from boto.s3.key import Key
def unsafe_getenviron(k):
v = os.environ.get(k)
if(v):
return v
else:
raise Exception('environment variable %s not set' % k)
JC_DECAUX_API_KEY = unsafe_gete... | mit | 4,501,067,044,483,126,000 | 25.944882 | 119 | 0.697545 | false | initiate S3 connection, location=Location.EU) attempts to create a bucket | 73 | en | 0.720504 |
dataunit/dataunit | dataunit/case.py | 1 | 1428 | import unittest
from dataunit.context import Context, get_global_context
class DataUnitTestCase(unittest.TestCase):
"""A class defining a single DataUnit tests case.
This class is designed to be instantiated with a
list of TestCommand instances which define the
behavior of this tests case.
:not... | apache-2.0 | -203,158,893,744,653,540 | 33.829268 | 99 | 0.663866 | false | A class defining a single DataUnit tests case.
This class is designed to be instantiated with a
list of TestCommand instances which define the
behavior of this tests case.
:note: This class will be executed as a test case by PyCharm. It should pass
due to an empty test_command list default.
:param test_commands: Lis... | 550 | en | 0.794354 |
gavinfish/leetcode-share | python/065 Valid Number.py | 1 | 1907 | '''
Validate if a given string is numeric.
Some examples:
"0" => true
" 0.1 " => true
"abc" => false
"1 a" => false
"2e10" => true
Note: It is intended for the problem statement to be ambiguous. You should gather all requirements up front before implementing one.
'''
class Solution(object):
def isNumber(self, s):... | mit | -3,100,469,301,061,550,000 | 32.473684 | 132 | 0.528579 | false | :type s: str
:rtype: bool
Validate if a given string is numeric.
Some examples:
"0" => true
" 0.1 " => true
"abc" => false
"1 a" => false
"2e10" => true
Note: It is intended for the problem statement to be ambiguous. You should gather all requirements up front before implementing one.
Deal with symbol Deal with digi... | 502 | en | 0.876216 |
phiros/nepi | src/nepi/resources/omf/interface.py | 1 | 11938 | #
# NEPI, a framework to manage network experiments
# Copyright (C) 2013 INRIA
#
# 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 ... | gpl-3.0 | 7,847,344,216,218,451,000 | 34.111765 | 135 | 0.570028 | false | NEPI, a framework to manage network experiments Copyright (C) 2013 INRIA 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 v... | 860 | en | 0.833667 |
AntreasAntoniou/DeepClassificationBot | deepanimebot/bot.py | 1 | 7412 | # -*- coding: utf-8 -*-
'''
Twitter bot who replies with the best guesses of
what a @mention'ed image is.
'''
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import functools
import logging
import os
import random
import time
import tweepy
import deploy
im... | mit | 5,811,651,441,929,854,000 | 35.875622 | 138 | 0.639234 | false | Twitter bot who replies with the best guesses of
what a @mention'ed image is.
-*- coding: utf-8 -*- change it to your input image size we are rate-limited. returning False disconnects the stream | 196 | en | 0.839353 |
grizmio/DictQueue | DictQueue/DictQueue.py | 1 | 4887 |
import asyncio
import time
from collections import OrderedDict
class KeyNotInDictException(Exception):
pass
class KeyVanishedException(Exception):
pass
class AlreadyWaitingForItException(Exception):
pass
class DictContainer:
def __init__(self, max_size):
self.__requested_keys = set()
... | mit | 1,505,946,286,195,720,000 | 28.089286 | 100 | 0.516268 | false | '' => (time.time(), obj) siempre el maximo a esperar es el tiempo que queda de timeout: timeout_left __size empieza en 1 http://stackoverflow.com/questions/23864341/equivalent-of-asyncio-queues-with-worker-threads http://stackoverflow.com/questions/35796421/async-def-and-coroutines-whats-the-link | 297 | es | 0.307338 |
ucsd-ccbb/Oncolist | src/server/Louvain/cluster_analysis_module.py | 1 | 30972 |
import pandas as pd
import numpy as np
import time, os, shutil, re, community
import networkx as nx
import matplotlib.pyplot as plt
import scipy.spatial.distance as ssd
import scipy.cluster.hierarchy as sch
# import cluster_connect module
import cluster_connect
"""
--------------------------------------------------... | mit | -3,302,082,777,373,428,000 | 38.912371 | 211 | 0.599348 | false | import cluster_connect module import the authomatic GO annotation tools NOTE: CHANGE THIS PATH!!sys.path.append('/Users/brin/Google_Drive/UCSD/cluster_code/go_annotation')from HypergeomCalculator import * don't need to make big network- takes a long time try using absolute value of correlationsesmall=[(u,v,d) for (u,v,... | 4,119 | en | 0.754676 |
Rfam/rfam-production | scripts/support/mirnas/report_to_mirna_input.py | 1 | 3367 | import argparse
import json
import os
from datetime import date
# -------------------------------------------------------------------------------
def extract_new_mirnas_from_report(report_tsv, type='new'):
"""
"""
new_mirnas = {}
fp = open(report_tsv, 'r')
count = 0
for line in fp:
... | apache-2.0 | -6,873,067,566,488,718,000 | 28.278261 | 105 | 0.471339 | false | ------------------------------------------------------------------------------- check if candidate mirna is a new family skip families requiring review ------------------------------------------------------------------------------- converts to upper to ensure labels match the constant trim any whitespace characters ---... | 476 | en | 0.262887 |
jucacrispim/toxicbuild | toxicbuild/master/slave.py | 1 | 21372 | # -*- coding: utf-8 -*-
# Copyright 2016-2020 Juca Crispim <juca@poraodojuca.net>
# This file is part of toxicbuild.
# toxicbuild is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of t... | agpl-3.0 | 5,881,850,398,815,286,000 | 36.494737 | 79 | 0.57828 | false | Slaves are the entities that actualy do the work
of execute steps. The comunication to slaves is through
the network (using :class:`toxicbuild.master.client.BuildClient`).
The steps are actually decided by the slave.
Returns an on-demand instance wrapper.
Returns a dict representation of the object.
-*- codi... | 1,877 | en | 0.912622 |
ekwan/PyQuiver | src/constants.py | 1 | 5346 | # This file holds physical constants and reads atomic weights.
import sys
import re
import os
import inspect
###############
# Physical Constants
PHYSICAL_CONSTANTS = {
'h' : 6.626070E-34, # Planck's constants in J * s
'c' : 2.997925E+10, # speed of light in units of cm/s
'Eh' : 4.359745E-18, # energy o... | apache-2.0 | -5,842,683,066,656,835,000 | 35.121622 | 136 | 0.589787 | false | This file holds physical constants and reads atomic weights. Physical Constants Planck's constants in J * s speed of light in units of cm/s energy of a hartree in units of J = kg m^2/s^2 bohr radius in m angstroms per bohr atomic mass unit in units kg Boltzmann's constant in J/KCM/2.998E10/,EM/1.440E13/,HBC/1.4387/ Ato... | 916 | en | 0.750048 |
kvidoo/MMexUpdater | mmupdater/MMexCategoryUpdater.py | 1 | 1514 | '''
Created on Aug 30, 2013
@author: novpa01
'''
import logging
import sys
import importlib
from mmupdater.Settings import Settings
from mmupdater.UserError import UserError
from mmupdater.MMexDb import MMexDb
from mmupdater.CategoryAssigner import CategoryAssigner
# Parse settings file
settings = Settings('settings... | mit | 5,669,176,103,942,437,000 | 28.686275 | 92 | 0.645971 | false | Created on Aug 30, 2013
@author: novpa01
Parse settings file initialize log level initialize the component to talk to the MMex database initialize category assignments get transactions with no categories fill-in categories where we can get just those transactions that have some category assigned save them to the dat... | 366 | en | 0.84879 |
arthursoprano/flow-pattern-map | buttons.py | 1 | 2571 | from ipywidgets import widgets, Layout
continuous_update = True
layout = Layout(width='50%', justify_content ='space-between', align_content='space-around')
ρ_L_button = widgets.FloatSlider(
min=800.0,
max=1200.0,
value=1000.0,
step=0.5,
continuous_update=continuous_update,
... | mit | -1,499,138,884,504,016,100 | 20.094828 | 93 | 0.609442 | false | Viscosity Surface Tension Pipe Diameter Pipe Inclination Pipe Roughness | 71 | en | 0.491068 |
FSUgenomics/TFLOW | tflow/segments/BUSCO_Analysis.py | 1 | 22978 | #TFLOW Segment: Analyze FASTA File for Gene Recapture using BUSCO Benchmark Database
#
#Dan Stribling
#Florida State University
#Center for Genomics and Personalized Medicine
#Version 0.9, 04/20/2015
#Project URL: http://www.github.com/fsugenomics/tflow
import os.path
import sys
import subprocess
import shutil
BUSCO_... | gpl-2.0 | -9,137,028,453,921,034,000 | 39.813499 | 104 | 0.581817 | false | TFLOW Segment: Analyze FASTA File for Gene Recapture using BUSCO Benchmark DatabaseDan StriblingFlorida State UniversityCenter for Genomics and Personalized MedicineVersion 0.9, 04/20/2015Project URL: http://www.github.com/fsugenomics/tflowTFLOW BUSCO_Analysis SettingsTFLOW Writing Defaults, Used if Global Not SetEnsur... | 1,386 | en | 0.71514 |
infinity0n3/python-fabtotum | fabtotum/loaders/gerber/excellon_statements.py | 1 | 31011 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# copyright 2014 Hamilton Kibbe <ham@hamiltonkib.be>
#
# 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... | gpl-3.0 | 4,613,957,387,060,365,000 | 30.708589 | 102 | 0.557447 | false | Excellon Statement abstract base class
Excellon Tool class
Parameters
----------
settings : FileSettings (dict-like)
File-wide settings.
kwargs : dict-like
Tool settings from the excellon statement. Valid keys are:
- `diameter` : Tool diameter [expressed in file units]
- `rpm` : Tool RPM
... | 3,707 | en | 0.680916 |
gmimano/commcaretest | corehq/apps/export/custom_export_helpers.py | 1 | 14645 | import json
from corehq.apps.reports.standard import export
from corehq.apps.reports.models import FormExportSchema, HQGroupExportConfiguration, CaseExportSchema
from corehq.apps.reports.standard.export import DeidExportReport
from couchexport.models import ExportTable, ExportSchema, ExportColumn
from django.utils.tran... | bsd-3-clause | 1,592,665,312,018,443,300 | 37.539474 | 116 | 0.601571 | false | Updates custom_export object from the request
and saves to the db
filled in below also update the schema to include potential new stuff enable configuring saved exports from this page update the custom export index (to stay in sync) show all questions in repeat groups by default this is js --> js conversion so the na... | 473 | en | 0.771208 |
Oslandia/vizitown_plugin | cyclone/web.py | 1 | 86048 | # coding: utf-8
#
# Copyright 2010 Alexandre Fiori
# based on the original Tornado by Facebook
#
# 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... | gpl-2.0 | 4,279,697,711,647,361,000 | 38.892443 | 88 | 0.589415 | false | coding: utf-8 Copyright 2010 Alexandre Fiori based on the original Tornado by Facebook 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 b... | 4,994 | en | 0.875158 |
larsyencken/cjktools | cjktools/resources/radkdict.py | 1 | 2575 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# radkdict.py
# cjktools
#
"""
Based on the radkfile, a dictionary mapping character to bag of radicals.
"""
import sys
from cjktools import maps
from cjktools.common import get_stream_context, stream_codec
from . import cjkdata
from six import text_type
def _def... | bsd-3-clause | -4,731,615,904,252,097,000 | 24.49505 | 76 | 0.582524 | false | Determines which radicals a character contains.
:param istream:
The radkfile to parse.
Parses the radkfile and populates the current dictionary.
:param line_stream:
A stream yielding the lines in the radkfile to parse.
Returns a memory-cached class instance.
Print out each kanji and the radicals it... | 547 | en | 0.845467 |
Ambuj-UF/ConCat-1.0 | src/Utils/Bio/MaxEntropy.py | 1 | 10435 | # Copyright 2001 by Jeffrey Chang. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Maximum Entropy code.
Uses Improved Iterative Scaling.
"""
# TODO Define terminology
from... | gpl-2.0 | -8,712,417,844,903,718,000 | 30.814024 | 92 | 0.601725 | false | Holds information for a Maximum Entropy classifier.
Members:
classes List of the possible classes of data.
alphas List of the weights for each feature.
feature_fns List of the feature functions.
_calc_empirical_expects(xs, ys, classes, features) -> list of expectations
Calculate the expectation of each fu... | 3,808 | en | 0.811643 |
jtoppins/beaker | IntegrationTests/src/bkr/inttest/server/selenium/test_job_export_xml.py | 1 | 2025 |
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
from bkr.inttest.server.selenium import WebDriverTestCase
from bkr.int... | gpl-2.0 | 621,352,936,695,160,400 | 42.085106 | 92 | 0.65284 | false | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Make sure the Export button is present in the jobs grid. We can't actually clic... | 614 | en | 0.929953 |
samueljackson92/NDImage | ndimage/gui/table_model.py | 1 | 1313 | from PyQt4 import QtCore
class DataFrameTableModel(QtCore.QAbstractTableModel):
def __init__(self, data=None, parent=None):
QtCore.QAbstractTableModel.__init__(self, parent=parent)
self.set_data(data)
def rowCount(self, parent):
return self._data.shape[0] if self._data is not None els... | mit | -1,186,761,553,999,052,300 | 34.486486 | 86 | 0.648134 | false | 0 | en | 0.110449 | |
homeworkprod/byceps | tests/services/user_avatar/test_models_image_path.py | 1 | 1182 | """
:Copyright: 2006-2019 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from pathlib import Path
from uuid import UUID
import pytest
from byceps.util.image.models import ImageType
from testfixtures.user import create_user
from testfixtures.user_avatar import create_avatar
from tests.hel... | bsd-3-clause | -2,107,900,215,533,090,800 | 28.55 | 96 | 0.694585 | false | :Copyright: 2006-2019 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details. | 91 | en | 0.50196 |
stdlib-js/stdlib | lib/node_modules/@stdlib/math/base/special/maxabs/benchmark/python/benchmark.py | 1 | 2209 | #!/usr/bin/env python
#
# @license Apache-2.0
#
# Copyright (c) 2018 The Stdlib 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
#
# ... | apache-2.0 | -5,144,522,500,454,437,000 | 21.773196 | 82 | 0.626981 | false | Run the benchmark and print benchmark results.
Run the benchmark.
Print benchmark results.
# Arguments
* `elapsed`: elapsed time (in seconds)
# Examples
``` python
python> print_results(0.131009101868)
```
Print the benchmark summary.
# Arguments
* `total`: total number of tests
* `passing`: number of passing tes... | 974 | en | 0.743142 |
henry0312/LightGBM | python-package/lightgbm/plotting.py | 1 | 25113 | # coding: utf-8
"""Plotting library."""
from copy import deepcopy
from io import BytesIO
import numpy as np
from .basic import Booster, _log_warning
from .compat import GRAPHVIZ_INSTALLED, MATPLOTLIB_INSTALLED
from .sklearn import LGBMModel
def _check_not_tuple_of_2_elements(obj, obj_name='obj'):
"""Check objec... | mit | -408,649,031,525,272,200 | 39.309791 | 115 | 0.614781 | false | Check object is not tuple or does not have 2 elements.
Convert specified tree to graphviz instance.
See:
- https://graphviz.readthedocs.io/en/stable/api.html#digraph
Recursively add node or edge.
Create a digraph representation of specified tree.
Each node in the graph represents a node in the tree.
Non-leaf nodes... | 10,483 | en | 0.585939 |
darknightghost/AutoDeployer | cmd_pipe/SubProc.py | 1 | 3581 | #! /usr/bin/python3
# -*- coding: utf-8 -*-
'''
Copyright 2016,王思远 <darknightghost.cn@gmail.com>
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, o... | gpl-3.0 | -127,845,725,472,308,430 | 29.29661 | 74 | 0.567552 | false | Copyright 2016,王思远 <darknightghost.cn@gmail.com>
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... | 735 | en | 0.880323 |
martinzlocha/mad | portal/forms.py | 1 | 2190 | from django import forms
from django.core.exceptions import ValidationError
from portal.models import Student, Hobby
class SignUpForm(forms.ModelForm):
class Meta:
model = Student
fields = ['name', 'username', 'gender', 'course']
widgets = {
'name': forms.TextInput(attrs={'pla... | mit | -1,180,396,039,648,989,400 | 34.322581 | 120 | 0.620091 | false | ToDo(martinzlocha): Check if the username provided looks valid | 62 | en | 0.175162 |
citiususc/construe | construe/utils/signal_processing/wave_extraction.py | 1 | 8755 | # -*- coding: utf-8 -*-
# pylint: disable-msg=C0103
"""
Created on Thu Oct 17 13:15:52 2013
This module provides the functionality to obtain basic primitive structures,
called "peaks", from a signal fragment and its corresponding simplification
using the Douglas-Peucker algorithm. The process is based on the paper:
"... | agpl-3.0 | 7,635,516,548,468,927,000 | 37.231441 | 79 | 0.531468 | false | This class provides the model of a Peak as is defined in the paper in which
this module is based. We have added an amplitude attribute.
This auxiliary function checks a sequence of wave objects, join two
consecutive waves if they are very close, and establishing the proper
join point if they overlap.
Returns the durati... | 2,576 | en | 0.876746 |
endreman0/Excalibot | excalibot/cogs/voice.py | 1 | 4864 | import asyncio, discord
from discord.ext.commands import guild_only
from .. import db, log
from ..core import command
class VoiceText(metaclass=command.Cog):
async def on_voice_state_update(self, member, before, after):
if before.channel is after.channel: return # Only care about changing channels
with self.bot.s... | gpl-3.0 | -6,292,609,427,924,506,000 | 52.450549 | 167 | 0.717516 | false | Only care about changing channels | 33 | en | 0.950004 |
piotrmaslanka/cyrkus | redaction/plugins/httpifc/__init__.py | 1 | 2636 | # coding=UTF-8
"""
SMS Plus GSM MultiInfo gateway
"""
from __future__ import division
from hashlib import sha1
import unicodedata, httplib, urllib, urlparse, json, BaseHTTPServer, time
from satella.threads import BaseThread
from cyrkus.redaction.plugins.httpifc.format import fformat
class HttpServerThread(BaseThread):... | bsd-3-clause | -2,995,706,234,309,641,700 | 34.146667 | 104 | 0.588771 | false | @param config: configuration, as seen in config.json
Received a report from other node
SMS Plus GSM MultiInfo gateway
coding=UTF-8 nodename => data dict nodename => last transmit time (timestamp) | 197 | en | 0.838139 |
pmeas/pmeas-backend | __main__.py | 1 | 10740 | #!/usr/bin/python
GPIO_CAPABLE = False
import time
from functools import partial
import signal
import sys
import pyo
try:
import RPi.GPIO as GPIO
GPIO_CAPABLE = True
except ImportError:
pass
if GPIO_CAPABLE:
import gpiocontrol
import bridge
import configparser
import jackserver
import flanger
impor... | gpl-3.0 | 3,335,811,969,404,656,000 | 32.457944 | 138 | 0.533799 | false | !/usr/bin/pythonsecondsdefault volume Make the source of the next effect the previously applied effect. If the volume was set, change the default value to the requested volume. Run through all the effects in our configuration file and apply them to the previously used stream (i.e source) print("Effect: " + effect + ", ... | 1,184 | en | 0.813815 |
yeming233/rally | rally/plugins/openstack/services/storage/cinder_common.py | 1 | 29782 | # 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 agreed to in... | apache-2.0 | -218,852,773,355,620,600 | 39.853224 | 80 | 0.601874 | false | Create encryption type for a volume type. Default: admin only.
:param volume_type: the volume type on which to add an encryption type
:param specs: the encryption type specifications to add
:return: an instance of :class: VolumeEncryptionType
Create encryption type for a volume type. Default: admin only.
:param volum... | 10,215 | en | 0.71595 |
tsauerwein/c2cgeoportal | c2cgeoportal/tests/xmlstr.py | 3 | 5978 | # -*- coding: utf-8 -*-
# Copyright (c) 2013-2014, Camptocamp SA
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice, this
#... | bsd-2-clause | -5,369,876,525,444,830,000 | 60.608247 | 776 | 0.732932 | false | -*- coding: utf-8 -*- Copyright (c) 2013-2014, Camptocamp SA All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of condi... | 1,535 | en | 0.886086 |
ayepezv/GAD_ERP | openerp/__init__.py | 2 | 2641 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
""" OpenERP core library."""
#----------------------------------------------------------
# Running mode flags (gevent, prefork)
#----------------------------------------------------------
# Is the server running with ge... | gpl-3.0 | -7,602,556,953,469,250,000 | 31.604938 | 79 | 0.537675 | false | Return the model registry for the given database, or the database mentioned
on the current thread. If the registry does not exist yet, it is created on
the fly.
OpenERP core library.
-*- coding: utf-8 -*- Part of Odoo. See LICENSE file for full copyright and licensing details.-----------------------------------------... | 1,815 | en | 0.697126 |
bburan/psiexperiment | psi/controller/calibration/chirp_calibration.py | 1 | 1129 | from ..util import acquire
def chirp_power(engine, freq_lb=50, freq_ub=100e3, attenuation=0, vrms=1,
repetitions=32, duration=0.1, iti=0.01):
calibration = FlatCalibration.as_attenuation(vrms=vrms)
ai_fs = engine.hw_ai_channels[0].fs
ao_fs = engine.hw_ao_channels[0].fs
queue = FIFOSig... | mit | -6,651,210,350,675,184,000 | 33.212121 | 75 | 0.643047 | false | Single output calibration at a fixed frequency
Returns
-------
sens : dB (V/Pa)
Sensitivity of output in dB (V/Pa). | 119 | en | 0.39068 |
nathanielksmith/done | parsedatetime/tests/TestFrenchLocale.py | 1 | 4203 | #!/usr/bin/env python
"""
Test parsing of simple date and times using the French locale
Note: requires PyICU
"""
import unittest, time, datetime
import parsedatetime.parsedatetime as pt
import parsedatetime.parsedatetime_consts as ptc
# a special compare function is used to allow us to ignore the seconds as
# ... | gpl-3.0 | 6,624,456,152,510,218,000 | 40.205882 | 111 | 0.596241 | false | Test parsing of simple date and times using the French locale
Note: requires PyICU
!/usr/bin/env python a special compare function is used to allow us to ignore the seconds as the running of the test could cross a minute boundary set it up so the current dow returns current day | 280 | en | 0.77592 |
wholmgren/pvlib-python | pvlib/test/conftest.py | 1 | 3981 | import inspect
import os
import platform
import numpy as np
import pandas as pd
from pkg_resources import parse_version
import pytest
import pvlib
pvlib_base_version = \
parse_version(parse_version(pvlib.__version__).base_version)
# decorator takes one argument: the base version for which it should fail
# for ... | bsd-3-clause | -1,695,744,012,780,262,100 | 25.019608 | 78 | 0.645566 | false | decorator takes one argument: the base version for which it should fail for example @fail_on_pvlib_version('0.7') will cause a test to fail on pvlib versions 0.7a, 0.7b, 0.7rc1, etc. test function may not take args, kwargs, or fixtures. second level of decorator takes the function under consideration third level defers... | 611 | en | 0.793053 |
optikfluffel/lagesonum | lagesonum/bottle_app.py | 1 | 4024 | # coding: utf-8
import sqlite3
import os
import time
import bottle
from bottle import default_app, route, view
from bottle import request
from bottle_utils.i18n import I18NPlugin
#from bottle_utils.i18n import lazy_gettext as _
#todo: refactor so that there is no error in Py3 local deployment and testing
import inpu... | mit | 4,199,236,689,896,837,600 | 30.193798 | 118 | 0.591451 | false | 1.Seite: Helfer steht am LaGeSo und gibt Nummern ein [_____]
coding: utf-8from bottle_utils.i18n import lazy_gettext as _todo: refactor so that there is no error in Py3 local deployment and testingtodo: populate list dynamically based on available/selected translations ('ar_AR', 'Arab'),todo: refactor fingerprint in... | 467 | en | 0.349122 |
shivam5992/pywordcloud-flask | words.py | 1 | 4499 | '''
Python implementation of HTML wordcloud of words collected from
a website, Paragraph Input or File Upload. Flask Web App implementation
of the same.
Author: Shivam Bansal
Email: shivam5992@gmail.com
Website: www.shivambansal.com
Version: 0.1
'''
from flask import Flask, render_template, request, flash, redirec... | mit | 8,035,192,736,946,009,000 | 25.162791 | 145 | 0.625695 | false | exclude = set(string.punctuation)article = str(article)article = ''.join(ch for ch in article if ch not in exclude) | 115 | en | 0.656553 |
steveb/heat | heat/engine/clients/os/neutron/__init__.py | 1 | 6485 | #
# 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, software
# ... | apache-2.0 | -6,405,323,272,617,855,000 | 38.542683 | 78 | 0.588743 | false | Returns the id of QoS policy.
Args:
policy: ID or name of the policy.
Returns a list of security group UUIDs.
Args:
security_groups: List of security group names or UUIDs
Check if specific extension is present.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in... | 1,019 | en | 0.848113 |
gazbot/conference-project | models.py | 1 | 5513 | #!/usr/bin/env python
"""models.py
Udacity conference server-side Python App Engine data & ProtoRPC models
$Id: models.py,v 1.1 2014/05/24 22:01:10 wesc Exp $
created/forked from conferences.py by wesc on 2014 may 24
"""
__author__ = 'wesc+api@google.com (Wesley Chun)'
import httplib
import endpoints
from protor... | apache-2.0 | -3,578,478,729,146,258,400 | 33.037037 | 87 | 0.6579 | false | BooleanMessage-- outbound Boolean value message
Conference -- Conference object
ConferenceForm -- Conference outbound form message
ConferenceForms -- multiple Conference outbound form message
ConferenceQueryForm -- Conference query inbound form message
ConferenceQueryForms -- multiple ConferenceQueryForm inbound form m... | 1,068 | en | 0.385704 |
LeastAuthority/txkube | src/txkube/test/test_authentication.py | 1 | 15146 | # Copyright Least Authority Enterprises.
# See LICENSE for details.
import os
from itertools import count, islice
from uuid import uuid4
from pykube import KubeConfig
import pem
import attr
from pyrsistent import InvariantException
from hypothesis import given
from fixtures import TempDir
from zope.interface.ve... | mit | -7,816,677,622,489,357,000 | 31.363248 | 92 | 0.630794 | false | Tests for ``authenticate_with_serviceaccount``.
Tests for ``Chain``.
Tests for ``ClientCertificatePolicyForHTTPS``.
Tests for ``https_policy_from_config``.
Tests for ``pairwise``.
Get an agent using ``authenticate_with_serviceaccount`` and issue a
request with it.
:return bytes: The bytes of the request the agent issu... | 2,194 | en | 0.822377 |
sensbio/sensbiotk | examples/scripts/expe_prima.py | 1 | 4757 |
# -*- coding: utf-8 -*-
"""
Reconstruction angles example comparison
"""
import numpy as np
from sensbiotk.algorithms import martin_ahrs
from sensbiotk.algorithms.basic import find_static_periods
from sensbiotk.io.iofox import load_foxcsvfile
from sensbiotk.io.ahrs import save_ahrs_csvfile
import sensbiotk... | gpl-3.0 | -5,332,932,333,264,223,000 | 31.737589 | 83 | 0.570107 | false | -*- coding: utf-8 -*- Compute (True) or load (False Load the recording data Find motionless begin periods Init output Initialization loop Applies the Scale and Offset to data Filter call Computation loop Applies the Scale and Offset to data Filter call Plot results Save results | 279 | en | 0.720124 |
Spandex-at-Exeter/demography_database | app/matrix_functions.py | 1 | 14553 | from models import Permission, Role, User, IUCNStatus, OrganismType, GrowthFormRaunkiaer, ReproductiveRepetition, \
DicotMonoc, AngioGymno, SpandExGrowthType, SourceType, Database, Purpose, MissingData, ContentEmail, Ecoregion, Continent, InvasiveStatusStudy, InvasiveStatusElsewhere, StageTypeClass,... | mit | 9,208,999,180,805,464,000 | 42.056213 | 279 | 0.698413 | false | mat_str = "[0 0 2.81;0.5 0 0;0 0.45 0.45]" for testing input: matlab format matrix output: input: matrix in string matlab format output: float input: matrix in string matlab format output: float input: matrix in string matlab format output: 0 or 1 input: matrix in string matlab format output: 0 or 1 input: matrix in ... | 11,146 | en | 0.444363 |
thepian/theapps | theapps/supervisor/sites.py | 1 | 1074 | from django.conf import settings
class SiteManager(object):
def __init__(self):
self.cur = None
# Map of Site instances
self.sites = {}
def get_current(self):
if not self.cur:
self.cur = Site()
return self.cur
def get_d... | gpl-3.0 | 8,910,944,919,843,968,000 | 25.85 | 113 | 0.555866 | false | Map of Site instancesTODO consider domain redirection rules | 59 | en | 0.691896 |
boldfield/s3-encryption | s3_encryption/crypto.py | 1 | 1913 | from Crypto import Random
from Crypto.Cipher import AES as pyAES
import codecs
class AES(object):
def __init__(self):
self.key = None
self._mode = None
self.iv = None
@staticmethod
def str_to_bytes(data):
t = type(b''.decode('utf-8'))
if isinstance(data, t):
... | bsd-3-clause | -4,556,593,097,893,904,400 | 23.844156 | 141 | 0.591218 | false | 0 | en | 0.110449 | |
AutorestCI/azure-sdk-for-python | azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/azure_reachability_report_parameters.py | 1 | 2096 | # 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 ... | mit | -2,620,773,727,717,192,700 | 40.098039 | 102 | 0.623569 | false | Geographic and time constraints for Azure reachability report.
:param provider_location:
:type provider_location:
~azure.mgmt.network.v2017_11_01.models.AzureReachabilityReportLocation
:param providers: List of Internet service providers.
:type providers: list[str]
:param azure_locations: Optional Azure regions to sc... | 1,011 | en | 0.603593 |
Micronaet/micronaet-product | duty_management/__init__.py | 1 | 1034 | # -*- coding: utf-8 -*-
###############################################################################
#
# Copyright (C) 2001-2014 Micronaet SRL (<http://www.micronaet.it>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License a... | agpl-3.0 | 5,231,561,752,225,363,000 | 43.956522 | 79 | 0.609284 | false | -*- coding: utf-8 -*- Copyright (C) 2001-2014 Micronaet SRL (<http://www.micronaet.it>). This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at y... | 816 | en | 0.843437 |
TheHonestGene/risk-predictor | setup.py | 1 | 1882 | from setuptools import setup, find_packages # Always prefer setuptools over distutils
from codecs import open # To use a consistent encoding
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='utf-8') as... | mit | -6,642,484,730,661,453,000 | 31.448276 | 99 | 0.605739 | false | Always prefer setuptools over distutils To use a consistent encoding Get the long description from the relevant file | 116 | en | 0.738511 |
pwarren/AGDeviceControl | agdevicecontrol/thirdparty/site-packages/darwin/phidgets/servomotor.py | 1 | 3317 | # This file was created automatically by SWIG.
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
import _servomotor
def _swig_setattr(self,class_type,name,value):
if (name == "this"):
if isinstance(value, class_type):
... | gpl-2.0 | 6,873,438,704,202,684,000 | 45.71831 | 127 | 0.708472 | false | This file was created automatically by SWIG. Don't modify this file, modify the SWIG interface instead. This file is compatible with both classic and new-style classes. | 168 | en | 0.945009 |
skosukhin/spack | var/spack/repos/builtin/packages/xfontsel/package.py | 1 | 1912 | ##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgpl-2.1 | 4,634,601,404,021,808,000 | 42.454545 | 79 | 0.676255 | false | xfontsel application provides a simple way to display the X11 core
protocol fonts known to your X server, examine samples of each, and
retrieve the X Logical Font Description ("XLFD") full name for a font.
Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National ... | 1,240 | en | 0.880595 |
snarasi/django-bookmarkApp | bookmark/urls.py | 1 | 1208 | """bookworm URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | gpl-3.0 | 6,150,545,808,403,012,000 | 35.606061 | 79 | 0.679636 | false | bookworm URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | 676 | en | 0.639419 |
brosner/django-sqlalchemy | django_sqlalchemy/management/sql.py | 1 | 1402 | from django.db.models.loading import get_models
from django.core.management.sql import custom_sql_for_model
from sqlalchemy import create_engine
from django_sqlalchemy.backend import metadata, session
def reset(engine, app):
metadata.drop_all(engine, tables=_get_tables_for_app(app))
session.commit()
def creat... | bsd-3-clause | -8,844,244,939,070,740,000 | 36.891892 | 99 | 0.616976 | false | TODO: complete this install custom sql for the specified models | 63 | en | 0.239217 |
TarasLevelUp/asynqp | src/asynqp/message.py | 1 | 8788 | import json
from collections import OrderedDict
from datetime import datetime
from io import BytesIO
from . import amqptypes
from . import serialisation
class Message(object):
"""
An AMQP Basic message.
Some of the constructor parameters are ignored by the AMQP broker and are provided
just for the co... | mit | 9,189,294,022,764,453,000 | 34.152 | 105 | 0.624033 | false | A message that has been delivered to the client.
Subclass of :class:`Message`.
.. attribute::delivery_tag
The *delivery tag* assigned to this message by the AMQP broker.
.. attribute::exchange_name
The name of the exchange to which the message was originally published.
.. attribute::routing_key
The r... | 2,269 | en | 0.712409 |
porksmash/swarfarm | bestiary/models.py | 1 | 75620 | from collections import OrderedDict
from functools import partial
from math import floor, ceil
from operator import is_not
from django.contrib.auth.models import User
from django.contrib.postgres.fields import ArrayField
from django.contrib.staticfiles.templatetags.staticfiles import static
from django.core.exceptions... | apache-2.0 | -5,660,210,679,202,290,000 | 39.546917 | 188 | 0.562391 | false | 1-star lvl 1 values from data source Base-star lvl MAX values as seen in-game 6-star lvl MAX values Homunculus monster fields Unicorn fields Add the actual calculated stats Check that base stat exists first Check that base stat exists first Check that base stat exists first Magic multipliers taken from summoner's war w... | 1,834 | en | 0.722137 |
akrause2014/dispel4py | dispel4py/new/mpi_process_test.py | 1 | 1115 | # Copyright (c) The University of Edinburgh 2014
#
# 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 agr... | apache-2.0 | 5,902,654,700,553,839,000 | 32.787879 | 86 | 0.747982 | false | Copyright (c) The University of Edinburgh 2014 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,... | 567 | en | 0.867316 |
dbdd4us/compose | compose/utils.py | 1 | 3235 | from __future__ import absolute_import
from __future__ import unicode_literals
import codecs
import hashlib
import json
import json.decoder
import logging
import ntpath
import six
from .errors import StreamParseError
json_decoder = json.JSONDecoder()
log = logging.getLogger(__name__)
def get_output_stream(stream... | apache-2.0 | -2,486,481,074,851,938,300 | 26.184874 | 85 | 0.636785 | false | Attempt to parse a json object from a buffer. If there is at least one
object, return it and the rest of the buffer, otherwise return None.
Given a stream of text, return a stream of json objects.
This handles streams which are inconsistently buffered (some entries may
be newline delimited, and others are not).
Given a... | 765 | en | 0.827049 |
javierwilson/forocacao | forocacao/app/png.py | 1 | 4177 | # -*- coding: utf-8 -*-
from PIL import Image, ImageDraw, ImageFont
import textwrap
from unidecode import unidecode
from reportlab.graphics import renderPM
from reportlab.graphics.barcode import code128
from reportlab.graphics.barcode import createBarcodeDrawing
from reportlab.graphics.barcode import createBarcodeImag... | bsd-3-clause | -7,824,533,436,109,494,000 | 38.40566 | 126 | 0.603304 | false | -*- coding: utf-8 -*-value = value.encode('ascii', 'ignore')img = Image.new('RGBA', (badge_size_x, badge_size_y), badge_color)'name': "%s %s" % (participant.first_name, participant.last_name ),'name': "%s %s" % (participant.first_name.partition(' ')[0], participant.last_name.partition(' ')[0]), calculate maximum size i... | 571 | en | 0.276174 |
mhahn/stacker | stacker/lookups/registry.py | 1 | 1745 | from ..exceptions import UnknownLookupType
from ..util import load_object_from_string
from .handlers import output
from .handlers import kms
from .handlers import xref
from .handlers import file as file_handler
LOOKUP_HANDLERS = {}
DEFAULT_LOOKUP = output.TYPE_NAME
def register_lookup_handler(lookup_type, handler_o... | bsd-2-clause | -1,027,917,854,892,513,400 | 29.614035 | 79 | 0.679083 | false | Register a lookup handler.
Args:
lookup_type (str): Name to register the handler under
handler_or_path (OneOf[func, str]): a function or a path to a handler
Resolve a set of lookups.
Args:
lookups (list of :class:`stacker.lookups.Lookup`): a list of stacker
lookups to resolve
context (:class:`... | 513 | en | 0.545351 |
SKIRT/PTS | do/core/remove_columns.py | 1 | 2196 | #!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | agpl-3.0 | -2,754,714,214,914,406,400 | 34.403226 | 82 | 0.51754 | false | !/usr/bin/env python -*- coding: utf8 -*- ***************************************************************** ** PTS -- Python Toolkit for working with SKIRT ** ** © Astronomical Observatory, Ghent University ** ***************************************************************** \package pts.d... | 1,089 | en | 0.234172 |
charlesfleche/charlesfleche.net | fabfile.py | 1 | 3663 | from fabric.api import *
import fabric.contrib.project as project
import http.server
import os
import shutil
import sys
import socketserver
# Local path configuration (can be absolute or relative to fabfile)
env.deploy_path = 'output'
DEPLOY_PATH = env.deploy_path
# Remote server configuration
production = 'root@char... | mit | -9,078,609,407,775,656,000 | 30.577586 | 223 | 0.663118 | false | Build local version of site
Build icons
Publish to Rackspace Cloud Files
Remove generated files
Copy icomoon fonts to theme folder
Publish to GitHub Pages
Create goaccess realtime web report
Build production version of site
Publish to production via rsync
`build` with the delete switch
Automatically regenerate site upo... | 583 | en | 0.618495 |
cylc/cylc | cylc/flow/broadcast_report.py | 1 | 3589 | # THIS FILE IS PART OF THE CYLC SUITE ENGINE.
# Copyright (C) NIWA & British Crown (Met Office) & Contributors.
#
# 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,... | gpl-3.0 | -5,435,023,536,567,714,000 | 35.252525 | 75 | 0.593201 | false | Return a string to report bad options for broadcast cancel/clear.
Return an iterator of broadcast changes.
Each broadcast change is a dict with keys:
change, point, namespace, key, value
Return a string for reporting modification to broadcast settings.
Provide a function to report modification to broadcast settings.
... | 1,067 | en | 0.894361 |
dceoy/fractus | fract/model/ewma.py | 1 | 1996 | #!/usr/bin/env python
import logging
import numpy as np
from .sieve import LRFeatureSieve
class Ewma(object):
def __init__(self, config_dict):
self.__logger = logging.getLogger(__name__)
self.__alpha = config_dict['model']['ewma']['alpha']
self.__sigma_band = config_dict['model']['ewma'][... | mit | -7,870,564,357,281,349,000 | 35.962963 | 77 | 0.491483 | false | !/usr/bin/env python | 20 | fr | 0.225372 |
tmm/django-username-email | cuser/admin.py | 1 | 1437 | from django.contrib import admin
from django.contrib.auth.admin import GroupAdmin as BaseGroupAdmin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import Group as StockGroup
from django.utils.translation import gettext_lazy as _
from cuser.forms import UserChangeForm, ... | mit | 9,063,590,292,572,750,000 | 34.925 | 79 | 0.637439 | false | 0 | en | 0.110449 | |
anthonyfok/frescobaldi | frescobaldi_app/docbrowser/browser.py | 1 | 10953 | # This file is part of the Frescobaldi project, http://www.frescobaldi.org/
#
# Copyright (c) 2008 - 2014 by Wilbert Berendsen
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
... | gpl-2.0 | 8,974,451,822,156,147,000 | 37.978648 | 98 | 0.619739 | false | LilyPond documentation browser widget.
A line edit that clears itself when ESC is pressed.
Puts the available documentation instances in the combobox.
Shows the homepage of the LilyPond documentation.
Shows the preferred start page.
If a local documentation instance already has a suitable version,
just loads it. Other... | 1,629 | en | 0.84837 |
ftrimble/route-grower | pyroute/compress/compress.py | 1 | 4419 | #!/usr/bin/python
#----------------------------------------------------------------
#
#------------------------------------------------------
# Usage:
#
#------------------------------------------------------
# Copyright 2007, Oliver White
#
# This program is free software: you can redistribute it and/or modify
# it un... | apache-2.0 | 2,230,958,692,004,118,500 | 30.564286 | 218 | 0.562118 | false | !/usr/bin/python---------------------------------------------------------------------------------------------------------------------- Usage:------------------------------------------------------ Copyright 2007, Oliver White This program is free software: you can redistribute it and/or modify it under the terms of the ... | 961 | en | 0.74516 |
tp81/openmicroscopy | components/tools/OmeroWeb/omeroweb/webclient/show.py | 1 | 29181 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2014 University of Dundee & Open Microscopy Environment.
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foun... | gpl-2.0 | -3,020,381,144,042,495,000 | 35.204715 | 79 | 0.533532 | false | Exception to signal that we are on the wrong menu.
This object is used by most of the top-level pages. The "show" and
"path" query strings are used by this object to both direct OMERO.web to
the correct locations in the hierarchy and select the correct objects
in that hierarchy.
Constructs a new Exception instance.
@... | 7,889 | en | 0.883084 |
DomNomNom/Cardo | Cardo.py | 1 | 4736 |
import sys, select # for timing out input
'''
This is the overall idea of the game's main logic:
stack = [] # last value is the top of the stack
while not gameOver:
if stack is empty:
stack = [ nextEvent() ]
# stack now has at least one element
top = stack[-1]
imminent(top) # this may ... | gpl-3.0 | 6,443,879,362,117,278,000 | 22.919192 | 85 | 0.614231 | false | for timing out input see whether there are any cards that want to be used here ====== Events ====== That's right, we don't even directly set it here TODO: cards ====== Units ====== A unit is anything that has health and dies when it's health goes to, or below zero returns an Event within a finite time TODO: allow for m... | 704 | en | 0.864638 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.