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 |
|---|---|---|---|---|---|---|---|---|---|---|
bnbowman/HlaTools | src/pbhla/io/utils.py | 1 | 4688 | #! /usr/bin/env python
from pbhla.filenames import get_file_type
__author__ = 'bbowman@pacificbiosciences.com'
import logging
from tempfile import NamedTemporaryFile
from pbcore.io.FastaIO import FastaRecord, FastaWriter
from pbcore.io.FastqIO import FastqRecord, FastqWriter
from pbhla.io.AmpAnalysisIO import Amplic... | bsd-3-clause | 7,961,908,533,006,520,000 | 32.726619 | 84 | 0.636092 | false |
jashort/clexp | tests/test_expenseList.py | 1 | 2297 | from unittest import TestCase
import datetime
from ExpenseList import ExpenseList
class TestExpenseList(TestCase):
def setUp(self):
self.el = ExpenseList()
# passing amount as a float is valid
self.el.add_expense([2.11, "Food", "Candy Bar", "12/01/2013"])
# so is a string
... | mit | 7,159,833,294,169,194,000 | 37.949153 | 88 | 0.62168 | false |
apache/airflow | airflow/timetables/interval.py | 2 | 3585 | # 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
# "License"); you may not u... | apache-2.0 | -9,126,267,543,298,766,000 | 37.967391 | 85 | 0.697071 | false |
andreasjansson/head-in-the-clouds | headintheclouds/firewall.py | 1 | 3928 | from fabric.api import * # pylint: disable=W0614,W0401
CHAIN = 'HEAD_IN_THE_CLOUDS'
def set_rules(open_list, from_chains=('INPUT',)):
rules = make_rules(open_list, from_chains)
rules = ['iptables ' + r for r in rules]
cmd = ' && '.join(rules)
sudo(cmd)
def make_rules(open_list, from_chains=('INPUT',)... | gpl-3.0 | 6,920,921,952,457,535,000 | 29.6875 | 118 | 0.598778 | false |
lukasmartinelli/opencodereview | opencodereview/apps/reviews/views.py | 1 | 2271 | from django.shortcuts import render_to_response, redirect, render
from django.contrib.auth import logout as auth_logout
from django.contrib.auth.models import User
from django.contrib.auth.decorators import login_required
from django.conf import settings
from github3 import login
from .forms import ReviewRequestForm
... | mit | -2,511,120,545,363,810,000 | 28.493506 | 79 | 0.667547 | false |
JohnOmernik/pimeup | animatronics/oldPWM/JO_Servo.py | 1 | 1554 | #!/usr/bin/python
from Adafruit_PWM_Servo_Driver import PWM
import time
import sys
# ===========================================================================
# Example Code
# ===========================================================================
# Initialise the PWM device using the default address
pwm = PWM(... | apache-2.0 | -5,419,668,898,720,730,000 | 22.19403 | 77 | 0.545045 | false |
leejw51/BumblebeeNet | Test/AddLayer.py | 1 | 1320 | import numpy as np
import matplotlib.pylab as plt
from MulLayer import MulLayer
class AddLayer:
def __init__ (self):
pass
def forward(self, x, y):
out = x + y
return out
def backward(self, dout):
dx = dout * 1
... | mit | -5,489,069,071,422,700,000 | 27.085106 | 81 | 0.568182 | false |
stephenliu1989/HK_DataMiner | hkdataminer/cluster/faiss_dbscan_.py | 1 | 14197 | # -*- coding: utf-8 -*-
"""
DBSCAN Acclerated by Facebook AI Faiss
DBSCAN: Density-Based Spatial Clustering of Applications with Noise
"""
# Author: Robert Layton <robertlayton@gmail.com>
# Joel Nothman <joel.nothman@gmail.com>
# Lars Buitinck
#
# License: BSD 3 clause
import numpy as np
import time
f... | apache-2.0 | -5,220,703,586,160,923,000 | 39.21813 | 178 | 0.657111 | false |
davidfstr/iTunes-Connect-Autodownload | autodownload.py | 1 | 2639 | import os
import re
import datetime
import subprocess
vendorid = 85838187 # David Foster
# Find all reports in the current directory
reports = [] # list of (vendorid, YYYYMMDD), both strings
for filename in os.listdir('.'):
# NOTE: Download filename format changed on... | mit | 4,098,500,137,916,123,000 | 40.888889 | 165 | 0.648731 | false |
workforce-data-initiative/tpot-warehouse | migrations/transactional/versions/42026ba5bc27_createdb.py | 1 | 3890 | """createdb
Revision ID: 42026ba5bc27
Revises:
Create Date: 2017-06-22 20:07:58.548427
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '42026ba5bc27'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
op.create_table('entity_type'... | apache-2.0 | -7,156,879,574,634,049,000 | 39.520833 | 90 | 0.674807 | false |
jmflinuxtx/kerneltest-harness | kerneltest/app.py | 1 | 2477 | # Licensed under the terms of the GNU GPL License version 2
"""
This module handles the creation and configuration of the Flask application.
"""
import collections
import datetime
from flask_restful import Api
from sqlalchemy.orm.exc import NoResultFound
import flask
from . import default_config, db, __version__, ui... | gpl-2.0 | -2,710,535,832,293,777,000 | 26.522222 | 80 | 0.659265 | false |
dparlevliet/elastic-firewall | api/digital_ocean.py | 1 | 1323 | """
@fileoverview Digital Ocean API
@author David Parlevliet
@version 20130315
@preserve Copyright 2013 David Parlevliet.
Digital Ocean API
=================
Class to get the server details via the Digital Ocean API.
"""
import requests
import json
import re
class Api():
group_name = "Digital Ocean"
client_key ... | mit | -8,083,045,312,272,190,000 | 24.442308 | 90 | 0.605442 | false |
joergsimon/gesture-analysis | analysis/feature_selection.py | 1 | 6744 | from analysis.preparation import labelMatrixToArray
from analysis.preparation import normalizeZeroClassArray
from visualise.trace_features import trace_feature_origin
from visualise.confusion_matrix import plot_confusion_matrix
import numpy as np
import sklearn
import sklearn.linear_model
import sklearn.preprocessing ... | apache-2.0 | 9,204,650,859,059,847,000 | 47.178571 | 120 | 0.696323 | false |
Stanford-Online/notifier | notifier/tests/test_user.py | 1 | 10684 | """
"""
from django.test import TestCase
from django.test.utils import override_settings
from mock import patch
from notifier.user import get_digest_subscribers, DIGEST_NOTIFICATION_PREFERENCE_KEY
from notifier.user import get_moderators
from .utils import make_mock_json_response
TEST_API_KEY = 'ZXY123!@#$%'
# som... | agpl-3.0 | -2,097,093,915,212,685,600 | 33.801303 | 136 | 0.544833 | false |
CLVsol/oehealth_ichu | oehealth_patient/__openerp__.py | 1 | 2606 | # -*- encoding: utf-8 -*-
################################################################################
# #
# Copyright (C) 2012 Carlos Eduardo Vercelino - CLVsol #
# ... | agpl-3.0 | -572,427,993,051,303,940 | 45.535714 | 87 | 0.44551 | false |
Rignak/Scripts-Python | DeepLearning/TagPrediction/TagPrediction.py | 1 | 10291 | import numpy as np
import matplotlib.pyplot as plt
import os
from os.path import join
import cv2
from skimage.transform import resize
from tqdm import tqdm
from datetime import datetime
import functools
os.environ['TF_CPP_MIN_VLOG_LEVEL'] = '3'
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
from keras import optimizers
fro... | gpl-3.0 | 7,879,356,906,679,736,000 | 34.982517 | 113 | 0.598095 | false |
yajunyang/ShakeCamera | MicroAgent/local/proxylib.py | 1 | 105526 | #!/usr/bin/env python
# coding:utf-8
__version__ = '1.1'
import sys
import os
import glob
import errno
import time
import struct
import collections
import binascii
import zlib
import itertools
import re
import fnmatch
import io
import random
import base64
import string
import hashlib
import threading
import thread
im... | mit | -8,006,201,042,803,955,000 | 44.801215 | 252 | 0.569537 | false |
botswana-harvard/bcvp | bcvp/bcvp_dashboard/classes/subject_dashboard.py | 1 | 2829 | from edc_dashboard.subject import RegisteredSubjectDashboard
from bcvp.bcvp_lab.models import SubjectRequisition
from bcvp.bcvp_subject.models import SubjectVisit, SubjectConsent, SubjectLocator
from bcvp.bcvp_subject.models.subject_eligibility import SubjectEligibility
class SubjectDashboard(RegisteredSubjectDashbo... | gpl-2.0 | -9,080,255,707,335,773,000 | 38.291667 | 114 | 0.683634 | false |
mayconbordin/boardhood | server_app/api/boardhood/tests/test_model_interests.py | 1 | 4432 | import unittest
from config import app
from datetime import datetime
from boardhood.models.base import ValidationException
from boardhood.models.interests import Interest
from boardhood.helpers.validator import is_integer
class TestInterestModel(unittest.TestCase):
def setUp(self):
Interest.db = app.db.ge... | mit | 8,091,921,844,353,246,000 | 30.211268 | 101 | 0.635153 | false |
iulian787/spack | var/spack/repos/builtin/packages/ninja-fortran/package.py | 2 | 3110 | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class NinjaFortran(Package):
"""A Fortran capable fork of ninja."""
homepage = "https://git... | lgpl-2.1 | -1,166,708,126,163,917,600 | 44.735294 | 107 | 0.694534 | false |
muthu-s/chef-repo | cookbooks/wsi/files/createqueues.py | 1 | 1183 | import os;
import sys;
import traceback;
#####################################################################
## Create MQ Queues at cluster level
#####################################################################
def createQueues(clusterName, DisplayName, jndiName, queueName, queueMgrName):
clusterid=Adm... | apache-2.0 | 7,639,029,678,157,415,000 | 37.16129 | 137 | 0.510566 | false |
getupcloud/referral | utils.py | 1 | 1456 | from urllib.parse import unquote
from flask import request, url_for
from playhouse.shortcuts import model_to_dict, dict_to_model
from decimal import Decimal
def to_dict(obj):
"""
Helper method that returns a mongoengine document in python dict format
"""
from models import ReferralProgram
def ... | apache-2.0 | -5,856,686,055,878,276,000 | 28.12 | 96 | 0.608516 | false |
z-william131/small_projects | FileSort/FileSort.py | 1 | 3269 | # !/usr/bin/python
# The FiltSort function need an input: the path to a folder,
# and then it will generate an output.txt file that includes
# the "index, file name, address, maintag, subtag, subtag2"
# of every file in that folder.
# It can also return the output file as a list.
import os
def setLabel(pat... | mit | 7,337,251,025,384,431,000 | 27.929204 | 89 | 0.542368 | false |
chawins/aml | lib/RandomEnhance.py | 1 | 2811 | import random
import numpy as np
from PIL import Image, ImageEnhance
class RandomEnhance():
"""
Class to randomly enhance image by adjusting color, contrast, sharpness and
brightness
"""
def __init__(self, seed=None, p=1.0, intensity=0.5):
"""
Initialises an instance.
Pa... | mit | -8,288,442,314,468,944,000 | 32.070588 | 91 | 0.599075 | false |
inspirehep/json-merger | json_merger/__init__.py | 1 | 16680 | # -*- coding: utf-8 -*-
#
# This file is part of Inspirehep.
# Copyright (C) 2016 CERN.
#
# Inspirehep 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... | gpl-2.0 | 5,904,750,406,376,395,000 | 37.604167 | 79 | 0.640163 | false |
YannickB/odoo-hosting | clouder_template_drupal/__manifest__.py | 1 | 1507 | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Yannick Buron
# Copyright 2015, TODAY Clouder SASU
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License with Attribution
# ... | agpl-3.0 | -5,479,058,793,165,318,000 | 34.880952 | 79 | 0.60783 | false |
SUNET/eduid-signup | eduid_signup/session.py | 1 | 1724 | from zope.interface import implementer
from pyramid.interfaces import ISessionFactory, ISession
from eduid_common.session.pyramid_session import SessionFactory as CommonSessionFactory
from eduid_common.session.pyramid_session import Session as CommonSession
import logging
logger = logging.getLogger(__name__)
_EDIT_U... | bsd-3-clause | -769,802,457,438,294,800 | 31.528302 | 87 | 0.664153 | false |
peterfeiner/wcp | wcp/cli.py | 1 | 4339 | # Copyright (C) 2014 Peter Feiner
import argparse
import sys
import os
import signal
from . import record
from . import report
SIGNALS = {}
for name in dir(signal):
if name.startswith('SIG') and not name.startswith('SIG_'):
SIGNALS[name] = getattr(signal, name)
def parse_signal(string):
if string ... | gpl-2.0 | 6,219,256,643,953,565,000 | 35.771186 | 78 | 0.577322 | false |
ralph-group/pymeasure | pymeasure/display/windows.py | 1 | 37114 | #
# This file is part of the PyMeasure package.
#
# Copyright (c) 2013-2021 PyMeasure Developers
#
# 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 limit... | mit | -5,536,501,795,903,811,000 | 38.315678 | 139 | 0.630975 | false |
openstack/tripleo-heat-templates | tripleo_heat_templates/tests/test_environment_generator.py | 1 | 18885 | # Copyright 2015 Red Hat 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 agreed to in writing... | apache-2.0 | 992,682,378,127,931,500 | 23.654047 | 80 | 0.562775 | false |
t11e/django | django/core/cache/backends/filebased.py | 1 | 4639 | "File-based cache backend"
import os
import time
import shutil
try:
import cPickle as pickle
except ImportError:
import pickle
from django.core.cache.backends.base import BaseCache
from django.utils.hashcompat import md5_constructor
class CacheClass(BaseCache):
def __init__(self, dir, params):
Ba... | bsd-3-clause | -217,061,094,118,470,720 | 28.176101 | 116 | 0.533951 | false |
Wikidata/StrepHit | doc/update_doc.py | 1 | 3071 | import requests
import click
import subprocess
import os
class WikimediaApi:
logged_in = False
def __init__(self, endpoint='https://www.mediawiki.org/w/api.php'):
self.session = requests.Session()
self.api_endpoint = endpoint
def call_api(self, action, **kwargs):
r = self.session... | gpl-3.0 | -4,140,018,537,711,046,700 | 30.659794 | 116 | 0.537284 | false |
TeamWorkQualityReport/TeamWorkQualityReport | Backend/Analise/Analisador.py | 1 | 9696 | import numpy as np
from Analise.IAnalisador import IAnalisador
from Analise.entidades.formulario import Formulario
from Analise.entidades.variavel import Variavel
from Analise.entidades.questao import Questao
from Analise.entidades.relatorioResultado import RelatorioResultado
from Analise.entidades.constructo import C... | gpl-3.0 | -2,382,247,268,170,386,400 | 49.5 | 293 | 0.649031 | false |
cronuspaas/cronusagent | agent/agent/lib/agent_thread/download_thread.py | 1 | 13166 | #pylint: disable=W0703,W0511,W0402,R0911,R0915,R0912,W0331,W0612,R0904,W0105
""" Thread to download a package """
from agent.lib import utils, contextutils, configutil
from agent.lib.agent_thread.agent_thread import AgentThread
from agent.lib.errors import Errors, FileNotFoundError, AgentException
from agent.lib.packa... | apache-2.0 | 156,922,315,942,817,570 | 45.687943 | 125 | 0.544205 | false |
algorhythms/LeetCode | 283 Move Zeroes.py | 1 | 1204 | """
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-
zero elements.
For example, given nums = [0, 1, 0, 3, 12], after calling your function, nums should be [1, 3, 12, 0, 0].
Note:
You must do this in-place without making a copy of the array.
Minim... | mit | -4,577,519,818,686,035,500 | 24.083333 | 119 | 0.531561 | false |
almlab/SmileTrain | tools/get_taxonomies.py | 1 | 2955 | #!/usr/bin/env python
'''
Get greengenes taxonomies. Given an otu table with otu ids in the first column, search through
the greengenes taxonomy list. Output the taxonomies in order.
If the input database is a pickle, just load that dictionary.
'''
import sys, argparse, re, cPickle as pickle
def table_ids(fn):
... | mit | -2,087,470,422,215,640,300 | 32.977011 | 165 | 0.601015 | false |
jimsize/PySolFC | pysollib/tk/tkhtml.py | 1 | 4931 | #!/usr/bin/env python
# -*- mode: python; coding: utf-8; -*-
# ---------------------------------------------------------------------------
#
# Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
# Copyright (C) 2003 Mt. Hood Playing Card Co.
# Copyright (C) 2005-2009 Skomoroh
#
# This program is free software... | gpl-3.0 | -2,449,040,235,664,294,000 | 34.221429 | 78 | 0.528493 | false |
jeremiahmarks/dangerzone | scripts/python/remoteAccessScripts/dirTree.py | 1 | 2490 |
#this script will mount a remote file system using fuse and then generate a
#directory tree using os.walk
#TODO: for some reason the files that are on the top level all have a double slash
# I know that it is due to the line:
# k.write('{}{}/{}'.format(subindent,root.replace(startpath, 'http://jlmarks... | mit | -4,775,350,889,011,808,000 | 40.5 | 102 | 0.675502 | false |
eLvErDe/nicotine-plus | test/unit/test_login.py | 1 | 2247 | __author__ = 'Lene Preuss <lene.preuss@gmail.com>'
from queue import Queue
from time import sleep
from unittest.mock import Mock, MagicMock
import pytest
from pynicotine.slskproto import SlskProtoThread
from pynicotine.slskmessages import ServerConn, Login, SetWaitPort
from pynicotine.utils import ApplyTranslation
f... | gpl-3.0 | -8,034,834,033,154,774,000 | 31.1 | 91 | 0.705385 | false |
spoonysonny/SAKS-tutorials | chengying/sakspins.py | 1 | 1183 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016 NXEZ.COM.
# http://www.nxez.com
#
# Licensed under the GNU General Public 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.gnu.org/licen... | gpl-2.0 | 2,732,638,948,741,312,000 | 23.666667 | 77 | 0.652578 | false |
leppa/home-assistant | homeassistant/components/volumio/media_player.py | 1 | 9924 | """
Volumio Platform.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/media_player.volumio/
Volumio rest API: https://volumio.github.io/docs/API/REST_API.html
"""
import asyncio
from datetime import timedelta
import logging
import socket
import aiohttp
... | apache-2.0 | -1,982,843,421,541,624,000 | 29.535385 | 86 | 0.602479 | false |
dgu-dna/DNA-Bot | apps/quiz.py | 1 | 7875 | from apps.decorators import on_command
from apps.slackutils import cat_token, isNumber, get_nickname
from time import localtime, strftime
import os
import re
import json
import time
import urllib
import random
CACHE_DEFAULT_URL = './apps/quiz_cache/'
CACHE_CATEGORY_URL = './apps/quiz_cache/category/'
def get_random_q... | mit | -6,365,272,749,459,497,000 | 36.55102 | 124 | 0.519429 | false |
WillisXChen/django-oscar | oscar/lib/python2.7/site-packages/debug_toolbar/settings.py | 1 | 8768 | from __future__ import absolute_import, unicode_literals
import warnings
from django.conf import settings
from django.utils import six
from debug_toolbar.compat import import_module
# Always import this module as follows:
# from debug_toolbar import settings [as dt_settings]
# Don't import directly CONFIG or PANE... | bsd-3-clause | -511,903,050,244,851,650 | 36.793103 | 82 | 0.676551 | false |
Molecular-Image-Recognition/Molecular-Image-Recognition | code/rmgpy/molecule/draw.py | 1 | 72901 | #!/usr/bin/env python
# encoding: utf-8
################################################################################
#
# RMG - Reaction Mechanism Generator
#
# Copyright (c) 2002-2017 Prof. William H. Green (whgreen@mit.edu),
# Prof. Richard H. West (r.west@neu.edu) and the RMG Team (rmg_dev@mit.edu)
#
# ... | mit | 4,890,292,243,272,668,000 | 45.023359 | 191 | 0.526934 | false |
Inspq/ansible | lib/ansible/modules/web_infrastructure/htpasswd.py | 1 | 9184 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2013, Nimbis Services, Inc.
#
# 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
# (... | gpl-3.0 | -283,431,518,286,145,500 | 31.338028 | 110 | 0.62304 | false |
avilaton/sqlalchemy-continuum | sqlalchemy_continuum/transaction.py | 1 | 5496 | from datetime import datetime
try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict
import six
import sqlalchemy as sa
from sqlalchemy.ext.compiler import compiles
from .dialects.postgresql import (
CreateTemporaryTransactionTableSQL,
InsertTemporaryTransacti... | bsd-3-clause | -4,239,641,394,936,761,300 | 29.876404 | 100 | 0.532751 | false |
RTHMaK/RPGOne | deep_qa-master/deep_qa/tensors/masked_operations.py | 1 | 4270 | from keras import backend as K
from .backend import switch
def masked_batch_dot(tensor_a, tensor_b, mask_a, mask_b):
'''
The simplest case where this function is applicable is the following:
tensor_a: (batch_size, a_length, embed_dim)
tensor_b: (batch_size, b_length, embed_dim)
mask_a: None or (... | apache-2.0 | -8,834,312,388,142,465,000 | 42.571429 | 101 | 0.628806 | false |
OpenEneaLinux/rt-tools | partrt/test/test_partition.py | 1 | 50786 | #!/usr/bin/env python3
# Copyright (c) 2014 by Enea Software AB
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# noti... | bsd-3-clause | -2,476,286,391,616,804,400 | 31.286078 | 224 | 0.514709 | false |
spiceqa/tp-spice | spice/client-tests/help_version.py | 1 | 1860 | #!/usr/bin/python
# 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.
#
# This program is distributed in the hope that it w... | gpl-2.0 | -7,757,124,006,179,228,000 | 34.769231 | 79 | 0.686559 | false |
j0057/ansible-1 | lib/ansible/utils/plugins.py | 1 | 9861 | # (c) 2012, Daniel Hokka Zakrisson <daniel@hozac.com>
#
# 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 lat... | gpl-3.0 | 5,597,246,298,605,420,000 | 31.4375 | 100 | 0.579353 | false |
wooga/airflow | tests/providers/google/cloud/operators/test_presto_to_gcs_system.py | 1 | 6439 | #
# 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
# "License"); you may not... | apache-2.0 | 5,968,015,441,872,007,000 | 37.789157 | 110 | 0.588135 | false |
AnselCmy/ARPS | ML_model/test/report_classifier.py | 1 | 2434 | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from __future__ import print_function
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import pymongo as pm
sys.path.append('..')
from model.main import Multi_Label_Model
def check_contain_chinese(check_str):
for ch in check_str.decode('utf-8'):
if u'\u4e00' <= ch ... | mit | 1,969,431,880,389,390,300 | 28.142857 | 93 | 0.628788 | false |
teamCarel/EyeTracker | src/capture/eye.py | 1 | 20620 | '''
(*)~---------------------------------------------------------------------------
Pupil - eye tracking platform
Copyright (C) 2012-2017 Pupil Labs
Distributed under the terms of the GNU
Lesser General Public License (LGPL v3.0).
See COPYING and COPYING.LESSER for license details.
---------------------------... | lgpl-3.0 | 3,157,418,032,018,782,700 | 42.535637 | 220 | 0.533511 | false |
cogeorg/BlackRhino | networkx/drawing/nx_pylab.py | 1 | 32861 | # Copyright (C) 2004-2016 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
#
# Author: Aric Hagberg (hagberg@lanl.gov)
"""
**********
Matplotlib
**********
Draw networks with matplotlib.
See Also
--------
m... | gpl-3.0 | 2,971,644,789,041,964,000 | 30.177419 | 124 | 0.581601 | false |
svidela/pyzcasp | pyzcasp/asp/adapters.py | 1 | 3307 | # Copyright (c) 2014, Santiago Videla
#
# This file is part of pyzcasp.
#
# caspo 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.
#
# c... | gpl-3.0 | 265,944,677,918,393,200 | 29.62037 | 94 | 0.614454 | false |
kalhartt/pycclone | pycclone/source.py | 1 | 6074 | """
#pycclone.source
Provides a class for handling source files. The primary goal is to create a
generator yielding (docs, code) tuples from a source file.
"""
import logging
import re
import os
import pycclone.utils as utils
import pycclone.languages as languages
try:
from StringIO import StringIO
except ImportE... | mit | -2,936,048,722,182,657,500 | 28.921182 | 93 | 0.515311 | false |
googleapis/googleapis-gen | google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/enums/types/campaign_serving_status.py | 1 | 1207 | # -*- coding: utf-8 -*-
# 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... | apache-2.0 | 5,789,341,695,327,524,000 | 28.439024 | 74 | 0.67937 | false |
jcassee/django-geckoboard | django_geckoboard/decorators.py | 1 | 18337 | """
Geckoboard decorators.
"""
from __future__ import absolute_import
from collections import OrderedDict
from functools import wraps
from hashlib import md5
from xml.dom.minidom import Document
import base64
import json
from Crypto import Random
from Crypto.Cipher import AES
from django.conf import settings
from dja... | mit | -4,231,649,804,232,618,500 | 33.274766 | 94 | 0.578012 | false |
eukaryote/asn1crypto | asn1crypto/_win/_ws2_32.py | 1 | 2000 | # coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
import socket
from .._ffi import (
buffer_from_bytes,
bytes_from_buffer,
cast_void_p,
FFIEngineError,
is_null,
string_from_buffer,
unicode_buffer,
)
try:
from ._ws2_32_cffi import ws2_32... | mit | 7,021,345,125,814,088,000 | 24 | 89 | 0.6515 | false |
PLOS/allofplos | allofplos/elements/license.py | 1 | 5138 | import lxml.etree as et
import re
# Creative Commons links
xlink_href = '{http://www.w3.org/1999/xlink}href'
cc_by_4_link = 'https://creativecommons.org/licenses/by/4.0/'
cc_by_3_link = 'https://creativecommons.org/licenses/by/3.0/'
cc0_link = 'https://creativecommons.org/publicdomain/zero/1.0/'
cc_by_3_igo_link = 'ht... | mit | 7,154,977,985,650,922,000 | 44.052632 | 135 | 0.560358 | false |
JuezUN/INGInious | inginious/frontend/pages/course_admin/aggregation_info.py | 1 | 2947 | # -*- coding: utf-8 -*-
#
# This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for
# more information about the licensing of this file.
import web
from bson.objectid import ObjectId
from inginious.frontend.pages.course_admin.utils import make_csv, INGIniousAdminPage
class CourseAggregationInf... | agpl-3.0 | 3,588,982,702,635,367,000 | 39.930556 | 161 | 0.522226 | false |
l11x0m7/Paper | Modulation/code/signal_analysis.py | 1 | 7322 | # -*- encoding:utf-8 -*-
import os
import sys
import logging
from copy import deepcopy
from matplotlib import pyplot as plt
import numpy as np
from sklearn.model_selection import train_test_split
reload(sys)
def drawModulation(dirpath, rownum=200):
"""信号文件绘图
:param filepath: 需要显示绘图的信号文件路径
:return: None
... | apache-2.0 | -3,099,339,534,664,653,000 | 34.088235 | 115 | 0.516904 | false |
centricular/meson | mesonbuild/dependencies.py | 1 | 52213 | # Copyright 2013-2015 The Meson development team
# 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 agree... | apache-2.0 | 5,174,436,312,750,799,000 | 37.056122 | 100 | 0.547775 | false |
11mariom/sensu-checks | unifi/unifi-get-stats.py | 1 | 1510 | #!/usr/bin/env python
#
# Get stats from a Unifi AP controller using the API
#
# Requires the unifi python module
#
import argparse
import json
from unifi.controller import Controller
parser = argparse.ArgumentParser()
parser.add_argument('-c', '--controller', default='unifi', help='the controller address (default "... | gpl-2.0 | -6,542,056,813,486,104,000 | 38.736842 | 123 | 0.654967 | false |
philvoyer/ANI2012A17 | Module09/EXE04/ANI2012A17_Locator.py | 1 | 6945 | # ANI2102A17_Locator.py | Programmation Python avec Maya | coding=utf-8
# Génération d'une représentation visuelle d'un localisateur à partir d'une arborescence de primitives géométriques (sphère, cylindre, cube).
print "\n<début de l'exécution>\n"
# paramètres du programme
# facteur de dimensionnement
scaleFactor =... | mit | 6,334,168,545,797,120,000 | 44.9 | 146 | 0.76093 | false |
attakei/hieroglyph | src/hieroglyph/__init__.py | 1 | 2964 | import unicodedata
from hieroglyph import builder
from hieroglyph import directives
from hieroglyph import html
from hieroglyph import slides
def version():
"""Return the installed package version."""
import pkg_resources
return pkg_resources.get_distribution('hieroglyph').version
def setup(app):
... | bsd-3-clause | -2,948,857,152,409,221,600 | 38 | 77 | 0.70108 | false |
rajalokan/keystone | keystone/token/persistence/backends/sql.py | 1 | 12167 | # Copyright 2012 OpenStack Foundation
#
# 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 | 407,838,895,909,105,800 | 39.828859 | 79 | 0.592422 | false |
jmesteve/openerp | openerp/addons/account_balance_reporting/account_balance_reporting_report.py | 1 | 21960 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP - Account balance reporting engine
# Copyright (C) 2009 Pexego Sistemas Informáticos. All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
# it... | agpl-3.0 | 6,735,523,408,756,101,000 | 49.020501 | 124 | 0.491234 | false |
richardotis/pycalphad-fitting | fit.py | 1 | 2193 | """
Automated fitting script.
"""
import os
import sys
import fnmatch
import argparse
import logging
import multiprocessing
from paramselect import fit, load_datasets
from distributed import Client, LocalCluster
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument(
"--dask-scheduler",
met... | mit | 7,039,180,532,096,761,000 | 28.24 | 124 | 0.668947 | false |
JeremyMorgan/Raspberry_Pi_Temperature | temp-humidity.py | 1 | 1864 | import os
import glob
import subprocess
import calendar
import time
import urllib2
import json
import Adafruit_DHT
#initialize
os.system('modprobe w1-gpio')
os.system('modprobe w1-therm')
sensor = Adafruit_DHT.DHT22
pin = 8
#Temperature device
base_dir = '/sys/bus/w1/devices/'
device_folder = glob.glob(base_dir + '28... | gpl-2.0 | -9,041,252,855,166,964,000 | 24.888889 | 99 | 0.674356 | false |
christiansandberg/canopen | examples/simple_ds402_node.py | 1 | 4328 | import canopen
import sys
import os
import traceback
import time
try:
# Start with creating a network representing one CAN bus
network = canopen.Network()
# Connect to the CAN bus
network.connect(bustype='kvaser', channel=0, bitrate=1000000)
network.check()
# Add some nodes with correspond... | mit | -1,015,862,993,798,331,600 | 26.392405 | 95 | 0.594732 | false |
USGSDenverPychron/pychron | pychron/experiment/tests/analysis_grouping_test.py | 1 | 3212 | from pychron.experiment.automated_run.persistence import AutomatedRunPersister
from pychron.experiment.automated_run.spec import AutomatedRunSpec
__author__ = 'ross'
import unittest
runs = [('references', 'bu-j-1', 'b1'), ('A', '11111', 'u1'),
('references', 'bu-j-2', 'b2'), ('B','22222','u2'), ('B','33333',... | apache-2.0 | -8,337,034,916,786,816,000 | 23.707692 | 79 | 0.554172 | false |
zielmicha/hera | hera/webapp/urls.py | 1 | 1682 | from django.conf.urls import include, url, patterns
from django.contrib import admin
from django.conf.urls.static import static
from django.conf import settings
from django.views.generic import RedirectView, TemplateView
from hera.webapp import account_views
from hera.webapp import sandbox_views
from hera.webapp import... | agpl-3.0 | 6,931,740,068,921,254,000 | 59.071429 | 98 | 0.580856 | false |
fu-berlin-swp-2014/center-points | centerpoints/visualise.py | 1 | 19882 | import time
import colorsys
import sys
from PySide import QtGui, QtOpenGL, QtCore
from PySide.QtCore import QTimer, SIGNAL
from PySide.QtGui import QLabel
import copy
import numpy as np
from OpenGL.GL import *
from OpenGL.GLU import *
import centerpoints.data_set
class Color:
def __init__(self, color=None):
... | mit | 1,970,213,918,985,893,400 | 29.447167 | 85 | 0.572427 | false |
dbaty/deform_ext_autocomplete | docs/conf.py | 1 | 2104 | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
import datetime
import pkg_resources
# -- Path setup --------------------------------... | bsd-3-clause | 3,511,380,996,741,106,700 | 33.491803 | 84 | 0.656369 | false |
rajalokan/keystone | keystone/identity/backends/ldap/common.py | 1 | 71718 | # Copyright 2012 OpenStack Foundation
#
# 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 | 5,470,165,449,788,208,000 | 38.90985 | 79 | 0.570345 | false |
threatstream/snort_hpfeeds | src/tests.py | 1 | 2791 | import unittest
import json
from snort import Alert
class TestSnortParser(unittest.TestCase):
maxDiff = None
def test_parse_buffer_udp(self):
buf = """[**] [1:2003195:5] ET POLICY Unusual number of DNS No Such Name Responses [**]
[Classification: Potentially Bad Traffic] [Priority: 2]
05/04/14-11... | gpl-3.0 | -1,745,970,661,202,109,700 | 57.145833 | 371 | 0.657829 | false |
gkc1000/pyscf | pyscf/geomopt/berny_solver.py | 1 | 9010 | #!/usr/bin/env python
# Copyright 2014-2019 The PySCF Developers. 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
#
# U... | apache-2.0 | -6,266,812,189,044,078,000 | 33.922481 | 91 | 0.626415 | false |
ingenioustechie/cookiecutter-django-openshift | hooks/post_gen_project.py | 1 | 8246 | """
Does the following:
1. Generates and saves random secret key
2. Removes the taskapp if celery isn't going to be used
3. Removes the .idea directory if PyCharm isn't going to be used
4. Copy files from /docs/ to {{ cookiecutter.project_slug }}/docs/
TODO: this might have to be moved to a pre_gen_hook
A portio... | mit | -1,349,989,129,254,802,700 | 32.116466 | 127 | 0.657531 | false |
smuthunoori/ComicCreator | generaloptions.py | 1 | 1035 | __author__ = 'smuthunoori'
import kivy
kivy.require('1.7.0')
from kivy.uix.boxlayout import BoxLayout
from kivy.properties import ListProperty
class GeneralOptions(BoxLayout):
group_mode = False
translation = ListProperty(None)
def clear(self, instance):
self.drawing_space.clear_widgets()
... | mit | -7,419,711,629,351,038,000 | 24.243902 | 76 | 0.628986 | false |
RusticiSoftware/TinCanPython | test/lrs_response_test.py | 1 | 6200 | # coding=utf-8
#
# Copyright 2014 Rustici Software
#
# 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 respuired by applic... | apache-2.0 | -417,415,810,103,817,200 | 30.065327 | 77 | 0.62407 | false |
ericchill/gnofract4d | fract4d/gradient.py | 1 | 28489 | #!/usr/bin/env python
import math
import re
import StringIO
import copy
import random
import types
import struct
import colorsys
#Class definition for Gradients
#These use the format defined by the GIMP
#The file format is:
# GIMP Gradient ; literal identifier
# Name: <utf8-name> ; optional, else get from filename
... | bsd-3-clause | 3,981,176,068,436,644,000 | 33.241587 | 144 | 0.496753 | false |
CactusTribe/PyRobot | src/server/modules/CameraModule.py | 1 | 1742 | import threading, io, struct, time
from ThreadClient import ThreadClient
from devices.Devices import *
class CameraModule(ThreadClient):
def __init__(self, name):
ThreadClient.__init__(self, name)
self.camera_capture = False
# Execute command
def execute_cmd(self, cmd):
args = cmd.split(" ")
cmd = args[0]... | gpl-3.0 | 3,101,360,533,350,989,000 | 24.632353 | 78 | 0.607348 | false |
bitmazk/django-document-library | document_library/templatetags/document_library_tags.py | 1 | 1256 | """Templatetags for the ``document_library`` app."""
from django import template
from ..models import Document
register = template.Library()
@register.assignment_tag
def get_files_for_document(document):
"""
Returns the available files for all languages.
In case the file is already present in another ... | mit | -5,710,013,912,025,376,000 | 26.304348 | 79 | 0.680732 | false |
fabianopetroni/connector | connector/connector.py | 1 | 1179 | import os
import sys
# Constant for verify connection
FTRACK_CONNECTED = False
sys.path += ["D:/server/apps/3rdparty/ftrack-python"]
os.environ['FTRACK_SERVER'] = 'https://cas.ftrackapp.com'
os.environ['LOGNAME'] = 'fabianopetroni'
import ftrack
FTRACK_CONNECTED = True
class Connector(object):
"""Class for Co... | mit | 2,735,098,389,936,490,500 | 21.245283 | 73 | 0.628499 | false |
quodlibet/quodlibet | quodlibet/qltk/songlistcolumns.py | 1 | 16188 | # Copyright 2005 Joe Wreschnig
# 2012 Christoph Reiter
# 2011-2020 Nick Boultbee
# 2014 Jan Path
#
# 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 th... | gpl-2.0 | -8,249,796,910,159,764,000 | 31.376 | 79 | 0.602916 | false |
Pajn/RAXA-Django | common/models/Temp.py | 1 | 1389 | '''
Copyright (C) 2013 Rasmus Eneman <rasmus@eneman.eu>
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 your option) any later version.
This program is... | agpl-3.0 | 3,343,948,646,732,781,000 | 31.302326 | 79 | 0.722102 | false |
geomf/omf-fork | omf/model/user.py | 1 | 2023 | #
# Open Modeling Framework (OMF) Software for simulating power systems behavior
# Copyright (c) 2015, Intel Corporation.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundat... | gpl-2.0 | 2,636,837,996,714,867,700 | 37.169811 | 141 | 0.694513 | false |
sohyongsheng/kaggle-carvana | plot_learning_curves.py | 1 | 2337 | import numpy
import matplotlib.pyplot
import pylab
import sys
def plot_learning_curves(experiment, epochs, train_losses, cross_validation_losses, dice_scores, x_limits = None, y_limits = None):
axes = matplotlib.pyplot.figure().gca()
x_axis = axes.get_xaxis()
x_axis.set_major_locator(pylab.MaxNLocator(... | gpl-3.0 | 1,077,009,801,315,857,200 | 43.942308 | 131 | 0.685494 | false |
czcorpus/kontext | lib/plugins/default_query_history/__init__.py | 1 | 13623 | # Copyright (c) 2013 Charles University in Prague, Faculty of Arts,
# Institute of the Czech National Corpus
# Copyright (c) 2013 Tomas Machalek <tomas.machalek@gmail.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
#... | gpl-2.0 | 2,395,338,510,441,172,000 | 40.407295 | 120 | 0.51369 | false |
MikeTheGreat/GLT | glt/MyClasses/CourseInfo.py | 1 | 21912 | """Contains the CourseInfo object"""
import datetime
import collections
import csv
import os
import shutil
import sys
#import git
import subprocess
import tempfile
import gitlab
from colorama import Fore, Style, init # Back,
init()
from glt.MyClasses.Student import Student
from glt.MyClasses.StudentCollection import ... | gpl-3.0 | -5,202,144,037,664,315,000 | 41.798828 | 133 | 0.522453 | false |
tengqm/senlin | senlin/tests/apiv1/shared.py | 1 | 4578 | # 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
# distributed unde... | apache-2.0 | 4,580,353,874,016,427,000 | 33.946565 | 75 | 0.627785 | false |
h3biomed/eggo | bin/toaster.py | 1 | 1048 | #! /usr/bin/env python
# Licensed to Big Data Genomics (BDG) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The BDG licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you... | apache-2.0 | 6,761,270,908,058,689,000 | 39.307692 | 74 | 0.752863 | false |
PyMamba/mamba-storm | storm/schema/schema.py | 1 | 4673 | #
# Copyright (c) 2006, 2007 Canonical
#
# Written by Gustavo Niemeyer <gustavo@niemeyer.net>
#
# This file is part of Storm Object Relational Mapper.
#
# Storm 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 Found... | lgpl-2.1 | -5,923,921,601,448,790,000 | 35.224806 | 79 | 0.661459 | false |
texastribune/tx_election_scrapers | tx_elections_scrapers/sos/test_utils.py | 1 | 1962 | from __future__ import unicode_literals
import unittest
from .utils import slugify, corrected
from . import utils
class correctedTest(unittest.TestCase):
def test_it_works(self):
utils._corrections_cache = {
'all': {
'a0': 'a1',
},
'foo': {
... | bsd-3-clause | 4,407,651,845,405,037,600 | 29.65625 | 79 | 0.494903 | false |
jbinary/django-database-email-backend | database_email_backend/admin.py | 1 | 5693 | #-*- coding: utf-8 -*-
from functools import update_wrapper
from django.core.exceptions import PermissionDenied
from django.http import HttpResponseRedirect
from django.contrib import admin
from django import forms
from django.http import HttpResponse
from django.core.urlresolvers import reverse
from django.core.mail i... | mit | 2,261,844,363,294,276,000 | 33.50303 | 111 | 0.607764 | false |
troismph/matasano-challenges | src/dh.py | 1 | 1134 | from math_g4z3 import mod_exp
from converts import big_int_to_bin_str
import random
DH_p = 0xffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe64... | gpl-3.0 | 4,353,548,245,432,018,400 | 35.612903 | 393 | 0.72134 | false |
chronicle/api-samples-python | detect/v2/get_error_test.py | 1 | 2456 | # Copyright 2021 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, s... | apache-2.0 | 6,060,797,037,974,437,000 | 36.212121 | 74 | 0.69259 | false |
marcua/qurk_experiments | qurkexp/hitlayer/models.py | 1 | 10554 | import sys,os,base64,time,math,hashlib,traceback
from datetime import datetime, timedelta
from qurkexp.hitlayer import settings
from django.db import models
from django.db import transaction
from boto.mturk import connection, question, price, qualification
class HIT(models.Model):
hid = models.CharField(max_le... | bsd-3-clause | -3,170,994,810,895,449,600 | 31.776398 | 121 | 0.544722 | false |
WarriorIng64/type-fight | gamelog.py | 1 | 1492 | #!/bin/python
import datetime, logging, platform, pygame, os
from gameglobals import *
# Logging setup
if platform.system() == 'Windows':
# Logging on Windows
logdir = os.path.join(os.getenv('APPDATA'), 'typefight')
else:
# Assume Linux
logdir = os.path.join(os.path.expanduser('~'), '.typefight')
try:... | gpl-3.0 | 5,761,751,310,062,124,000 | 35.390244 | 76 | 0.643432 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.