repo_name stringlengths 5 92 | path stringlengths 4 221 | copies stringclasses 19
values | size stringlengths 4 6 | content stringlengths 766 896k | 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 32 997 | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class | ratio float64 1.5 13.6 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
HaroldMills/Vesper | scripts/create_randomized_station_night_list.py | 1 | 2218 | '''
Script that creates a randomized list of station/night pairs.
Given a list of station names and a list of night dates, this script
writes a semi-randomized list of the elements of the cartesian product
of the two lists to a CSV file. The station names cycle through an
alphabetized version of the input station name... | mit | -5,986,494,067,936,976,000 | 20.745098 | 72 | 0.671326 | false | 3.295691 | false | false | false |
SamProtas/PALiquor | geocode_fixes.py | 1 | 2733 | import os
import pandas as pd
import numpy as np
import sqlite3
import requests
import time
def fix_location(lid, new_address):
pd.set_option('display.mpl_style', 'default')
PROJECT_ROOT = os.path.dirname(os.path.realpath(__file__))
DATABASE1 = os.path.join(PROJECT_ROOT, 'dbs', 'licensees.db')
... | gpl-2.0 | -2,758,837,332,182,143,000 | 33.1625 | 136 | 0.706915 | false | 2.86478 | false | false | false |
markherringer/waywayd | third-party/django_multilingual/multilingual/query.py | 1 | 26323 | """
Django-multilingual: a QuerySet subclass for models with translatable
fields.
This file contains the implementation for QSRF Django.
"""
import datetime
from django.core.exceptions import FieldError
from django.db import connection
from django.db.models.fields import FieldDoesNotExist
from django.db.models.query... | agpl-3.0 | 8,766,511,261,829,303,000 | 43.919795 | 115 | 0.512821 | false | 4.453976 | false | false | false |
Braiiin/outline-client | outline_client/admin/views.py | 1 | 2399 | from flask import Blueprint, render_template, request, redirect, url_for, \
jsonify
from flask_login import login_required, current_user
from outline_client.libs.outline import Outline
from client.libs.service import Service, Employment
from .forms import AddOutlineForm, EditOutlineForm
import functools
# setup ad... | apache-2.0 | -3,712,959,128,799,209,500 | 31.863014 | 75 | 0.668612 | false | 3.795886 | false | false | false |
mjtamlyn/archery-scoring | tamlynscore/settings.py | 1 | 3308 | import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = not os.environ.get('PRODUCTION')
ALLOWED_HOSTS = [
'tamlynscore.co.uk',
'www.tamlynscore.co.uk',
'127.0.0.1',
'localhost',
'192.168.1.101',
'192.168.1.100',
]
ADMINS = (
('Marc Tamlyn', 'marc.... | bsd-3-clause | 7,236,107,738,233,246,000 | 25.464 | 91 | 0.662334 | false | 3.117813 | false | true | false |
goujonpa/assotextmining | gabriel.py | 1 | 3496 | # gets all the asso posts and puts it in a single .txt file
import json
import os
txt_250 = list()
txt_500 = list()
txt_1000 = list()
txt_1500 = list()
txt_plus = list()
stats_250 = list()
stats_500 = list()
stats_1000 = list()
stats_1500 = list()
stats_plus = list()
varrad = u'txt_'
varrad2 = u'stats_'
for i in r... | mit | 7,392,025,437,876,024,000 | 38.280899 | 203 | 0.484268 | false | 3.063979 | false | false | false |
yarikoptic/NiPy-OLD | nipy/fixes/scipy/stats/models/tests/rmodelwrap.py | 1 | 1153 | ''' Wrapper for R models to allow comparison to scipy models '''
import numpy as np
from rpy import r
from exampledata import x, y
class RModel(object):
''' Class gives R models scipy.models -like interface '''
def __init__(self, y, design, model_type=r.lm):
''' Set up and estimate R model with data... | bsd-3-clause | -4,254,897,468,352,540,000 | 37.433333 | 73 | 0.5915 | false | 3.7557 | false | false | false |
Eluvatar/trawler-python-region-scan | wa_scanner.py | 1 | 3652 | #!/usr/bin/python
from parser import api
from ns import id_str
import urllib2
import time
import json
from operator import itemgetter as get
import argparse
parser = argparse.ArgumentParser(description="Scan region")
parser.add_argument('-u', '--user', metavar='USER', required=True, help='a nation name, email, or we... | gpl-3.0 | -8,256,628,711,192,047,000 | 35.888889 | 255 | 0.692497 | false | 3.066331 | false | false | false |
cpascoe95/cryptotools | tests/cipher_tests.py | 1 | 4829 | import unittest
import crypto.ciphers as ciphers
from crypto.alphabets import EnglishAlphabet
class SubstitutionCipherTests(unittest.TestCase):
def setUp(self):
self.alph = EnglishAlphabet()
self.key = {letter: letter for letter in self.alph}
def test_invalid_key_type(self):
with self... | gpl-2.0 | -3,983,513,460,971,492,400 | 30.980132 | 98 | 0.628495 | false | 3.393535 | true | false | false |
rockyzhengwu/mlscratch | rnn/char_rnn.py | 1 | 4815 | #!/usr/bin/env python
# -*-coding:utf-8-*-
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
... | apache-2.0 | -5,488,489,251,875,216,000 | 38.793388 | 125 | 0.593977 | false | 2.844064 | false | false | false |
sensusaps/RoboBraille.Web.API | WorkingDirectory/DaisyPipeline/transformers/ca_cnib_rtf2dtbook/rtf2xml-py/rtf2xml/delete_info.py | 1 | 8983 | #########################################################################
# #
# #
# copyright 2002 Paul Henry Tremblay #
# ... | apache-2.0 | -7,226,164,426,623,397,000 | 33.953307 | 97 | 0.436046 | false | 4.449232 | false | false | false |
MikeWinter/bio-data-repository | bdr/utils/transports.py | 1 | 13814 | """
A set of classes for abstracting communication with remote servers. While the
urllib-family of modules provides similar functionality, they not provide for
querying the source for its metadata (size and modification date, in this case)
prior to fetching the resource itself.
All exceptions raised by these types inh... | gpl-2.0 | -1,830,276,783,654,762,800 | 34.973958 | 106 | 0.600333 | false | 4.601599 | false | false | false |
rehandalal/buchner | buchner/cmdline.py | 1 | 4058 | import os
import os.path
import string
from optparse import OptionParser
from buchner import __version__
USAGE = '%prog [options] [command] [command-options]'
VERSION = '%prog ' + __version__
def build_parser(usage):
parser = OptionParser(usage=usage, version=VERSION)
return parser
DIGIT_TO_WORD = {
... | bsd-3-clause | 4,306,350,212,375,323,000 | 24.3625 | 81 | 0.569246 | false | 3.716117 | false | false | false |
thomasw/convertly | converter/views.py | 1 | 3286 | from converter import *
from django.template import RequestContext, Context, loader
from django.shortcuts import render_to_response
from django.http import HttpResponse, Http404
from converter.forms import UploadDoc
from zipfile import ZipFile
def index(request):
""" Interface for uploading, co... | mit | 6,260,761,604,533,570,000 | 31.215686 | 98 | 0.664029 | false | 3.282717 | false | false | false |
propdata/scrum-pm | scrum_pm/artifacts/migrations/0001_initial.py | 1 | 5055 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Sprint'
db.create_table('artifacts_sprint', (
('id', self.gf('django.db.models.f... | mit | 6,145,486,394,306,137,000 | 65.526316 | 182 | 0.563403 | false | 3.730627 | false | false | false |
davidpaulrosser/Forms | forms/util/mesh.py | 1 | 3205 | """
This module provides various mesh utilities for cleaning and extruding.
"""
import pymel.core as pm
import maya.mel as mel
"""
Combine multiple polygon meshes with the option of removing duplicate internal faces.
Parameters:
instanceGroup -- A group of meshes to combine ( pymel.core.general.group )
... | mit | -1,726,906,930,116,694,500 | 29.235849 | 136 | 0.616849 | false | 3.409574 | false | false | false |
jerjorg/BZI | BZI/convergence.py | 1 | 6793 | import numpy as np
import matplotlib.pyplot as plt
import time
from BZI.symmetry import make_ptvecs
from BZI.sampling import make_grid
from BZI.pseudopots import Al_PP
from BZI.integration import monte_carlo
from BZI.plots import PlotMesh
class Convergence(object):
""" Compare integrations of pseudo-potentials by... | gpl-3.0 | -3,526,169,047,747,902,000 | 48.583942 | 91 | 0.554541 | false | 4.048272 | false | false | false |
stxnext-kindergarten/presence-analyzer-pzarebski | src/presence_analyzer/utils.py | 1 | 3612 | # -*- coding: utf-8 -*-
"""
Helper functions used in views.
"""
import csv
from json import dumps
from functools import wraps
from datetime import datetime
from flask import Response
from presence_analyzer.main import app
import logging
log = logging.getLogger(__name__) # pylint: disable=invalid-name
def jsonify... | mit | 8,764,287,398,231,358,000 | 26.157895 | 79 | 0.551495 | false | 3.875536 | false | false | false |
robot-tools/iconograph | server/modules/persistent.py | 1 | 1150 | #!/usr/bin/python3
import argparse
import os
import icon_lib
parser = argparse.ArgumentParser(description='iconograph persistent')
parser.add_argument(
'--chroot-path',
dest='chroot_path',
action='store',
required=True)
FLAGS = parser.parse_args()
def main():
module = icon_lib.IconModule(FLAGS.c... | apache-2.0 | 3,711,239,642,971,571,700 | 19.175439 | 69 | 0.713913 | false | 3.125 | false | false | false |
ratoaq2/deluge | packaging/win32/deluge-bbfreeze.py | 1 | 7783 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2012-2015 Calum Lind <calumlind@gmail.com>
# Copyright (C) 2010 Damien Churchill <damoxc@gmail.com>
# Copyright (C) 2009-2010 Andrew Resch <andrewresch@gmail.com>
# Copyright (C) 2009 Jesper Lund <mail@jesperlund.com>
#
# This file is part of Deluge and is... | gpl-3.0 | 7,283,705,416,891,160,000 | 34.701835 | 105 | 0.654118 | false | 3.341778 | false | false | false |
zplab/rpc-scope | scope/gui/microscope_widget.py | 1 | 23339 | # This code is licensed under the MIT License (see LICENSE file for details)
from PyQt5 import Qt
import pkg_resources
from . import device_widget
from . import status_widget
from ..simple_rpc import rpc_client
from .. import util
class MicroscopeWidget(device_widget.DeviceWidget):
PROPERTY_ROOT = 'scope.'
P... | mit | -6,965,134,118,459,684,000 | 45.769539 | 129 | 0.597395 | false | 3.87417 | false | false | false |
Antreasgr/Random-Graphs | Python/SHET.py | 1 | 8516 | import os
# import networkx as nx
import numpy
from numpy.random import RandomState
from clique_tree import *
from nx_converters import *
from randomizer import *
from subtrees import *
from datetime import datetime
from Runners import *
from report_generator import *
from enum import Enum
import yaml
from yaml import... | mit | 1,985,836,268,281,842,400 | 34.781513 | 127 | 0.564937 | false | 3.184742 | false | false | false |
lmiphay/gentoo-oam | oam/eventparser/scanner.py | 1 | 1799 | #!/usr/bin/python
from __future__ import print_function
import sys
import os
import subprocess
import logging
import glob
import collections
import unittest
import re
class Scanner:
def __init__(self, report, checker):
self.report = report
self.checker = checker
self.logger = logging.getL... | gpl-2.0 | 8,609,256,467,794,436,000 | 30.017241 | 89 | 0.526959 | false | 4.223005 | true | false | false |
cdeil/gammalib | inst/cta/test/test_irf_offset.py | 1 | 5601 | #! /usr/bin/env python
# ===========================================================================================#
# This script tests the offset angle dependence of the instrumental response function.
#
# ===========================================================================================#
from gammalib impo... | gpl-3.0 | 4,921,560,824,327,337,000 | 22.834043 | 94 | 0.518657 | false | 3.296645 | false | false | false |
Ehnonymoose/delver | server/delver.py | 1 | 2586 | from flask import Flask, request, jsonify, send_from_directory, make_response
from functools import wraps, update_wrapper
from datetime import datetime
from sqlalchemy import and_, or_
from sqlalchemy.sql import select
app = Flask(__name__)
from database import db_session
import query
import models
import json
NUM... | mit | 8,030,225,006,713,413,000 | 20.371901 | 119 | 0.678268 | false | 3.093301 | false | false | false |
hlt-bme-hu/eval-embed | translate.py | 1 | 5706 | import sys
import numpy
from collections import defaultdict
from itertools import chain
import argparse
def renormalize(M):
M /= numpy.linalg.norm(M, axis=1)[:, None]
return
def renormalize_vector(v):
return v / numpy.linalg.norm(v)
def outer(l1, l2):
return list(chain(*[[(x,y) for x in l1] for y in ... | lgpl-3.0 | 7,749,965,516,054,434,000 | 38.625 | 100 | 0.502454 | false | 3.739187 | false | false | false |
wilg64/MarkovTweet | markovtweet.py | 1 | 5870 | import tweepy
import json
import re
import time
import random
def create_api(config_filename):
"""
Creates an authorized tweepy API object given a config file containing
appropriate twitter application keys
:param config_filename: string containing the config filename
:return: the tweepy API obje... | mit | 7,790,373,430,743,105,000 | 27.5 | 101 | 0.529642 | false | 4.031593 | false | false | false |
henryiii/rootpy | rootpy/plotting/utils.py | 1 | 14257 | # Copyright 2012 the rootpy developers
# distributed under the terms of the GNU General Public License
from __future__ import absolute_import
from math import log
import operator
import ROOT
from .canvas import _PadBase
from .hist import _Hist, Hist, HistStack
from .graph import _Graph1DBase, Graph
from ..context im... | gpl-3.0 | 2,577,957,560,046,515,000 | 30.966368 | 79 | 0.556779 | false | 3.651895 | false | false | false |
q3k/kasownik | webapp/models.py | 1 | 13156 | #!/usr/bin/env python2
# - * - coding=utf-8 - * -
# Copyright (c) 2015, Sergiusz Bazanski <q3k@q3k.org>
# Copyright (c) 2015, Remigiusz Marcinkiewicz <enleth@enleth.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the followi... | bsd-2-clause | -2,691,253,247,546,642,400 | 35.80112 | 145 | 0.607931 | false | 3.756935 | false | false | false |
perrette/pyglacier | pyglacier/plotting.py | 1 | 1106 | import matplotlib.pyplot as plt
#
# plotting
#
def plot_elevation(ds, ax=None):
if ax is None:
ax = plt.gca()
ds['hs'].plot(ax=ax,label="surface")
ds['hb'].plot(ax=ax,label="bottom")
# add horizontal line to indicate sea level
ax.hlines(0, ds.x[0], ds.x[-1], linestyle='dashed', color='blac... | mit | -7,186,009,462,917,936,000 | 25.97561 | 83 | 0.577758 | false | 2.737624 | false | false | false |
samzhang111/wikipedia-jargon | all-subjects/make_tf_differences.py | 1 | 2815 | from __future__ import print_function
import msgpack
import sys
import os
from collections import defaultdict
from helpers import text_dict_to_term_dict
from WikiExtractor import clean, compact
import pandas as pd
def remove_wikipedia_markup(text):
return compact(clean(text.decode('utf8')))
def print_help_and_exi... | gpl-3.0 | 5,142,175,881,754,362,000 | 30.988636 | 79 | 0.588988 | false | 3.462485 | false | false | false |
fkie-cad/iva | local_repositories/tasks/datetime_utils.py | 1 | 1476 | from datetime import datetime, timedelta
TIME_FORMAT = '%H:%M:%S'
def calculate_task_execution_timeout(task_time):
current_datetime = datetime.now()
current_time = get_time_from_datetime(current_datetime)
return calculate_delta_time(task_time, current_time)
def calculate_task_next_execution_datetime(ta... | lgpl-3.0 | 7,140,560,285,524,920,000 | 26.867925 | 105 | 0.708672 | false | 3.400922 | false | false | false |
lmazuel/azure-sdk-for-python | azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/effective_network_security_group_py3.py | 1 | 2060 | # 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 | -5,176,465,326,651,729,000 | 44.777778 | 136 | 0.658252 | false | 4.35518 | false | false | false |
raymondanthony/youtube-dl | youtube_dl/extractor/pornotube.py | 1 | 1760 | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
compat_urllib_parse,
unified_strdate,
)
class PornotubeIE(InfoExtractor):
_VALID_URL = r'https?://(?:\w+\.)?pornotube\.com(/c/(?P<channel>[0-9]+))?(/m/(?P<videoid>[0-9]+))(/(?P<title>.+))$'
_TE... | unlicense | 507,547,985,690,037,800 | 30.428571 | 119 | 0.546591 | false | 3.18264 | false | false | false |
szepeviktor/courier-pythonfilter-custom | email-correct.py | 1 | 9398 | #!/usr/bin/python
# file: email-correct.py
# -*- coding: utf-8 -*-
import os
import sys
import email
import email.charset
import email.encoders
from email.header import Header
from email.utils import getaddresses
from email.utils import formataddr
from email.utils import parseaddr
from email.utils import make_msgid
fr... | mit | -9,201,266,120,644,209,000 | 36.146245 | 205 | 0.632581 | false | 3.607678 | false | false | false |
cloudbase/maas | src/provisioningserver/testing/fakeapi.py | 1 | 6224 | # Copyright 2012, 2013 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
"""Fake Provisioning API.
:class:`FakeSynchronousProvisioningAPI` is intended to be useful in a Django
environment, or similar, where the Provisioning API is being used via
... | agpl-3.0 | 4,621,239,559,335,503,000 | 29.509804 | 76 | 0.64653 | false | 3.971921 | false | false | false |
sassoftware/catalog-service | catalogService/rest/drivers/openstack/openstackclient.py | 1 | 23160 | #
# Copyright (c) SAS Institute 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 w... | apache-2.0 | 6,831,616,599,087,930,000 | 36.056 | 156 | 0.60095 | false | 4.227049 | true | false | false |
openjck/apod-scraper | scraper.py | 1 | 6524 | #!/usr/bin/env python
import bleach
from bs4 import BeautifulSoup
from collections import OrderedDict
from dateutil import parser
import regex
import requests
import scraperwiki
import urlparse
class Page:
def __init__(self, path, basename, encoding):
self.path = path
self.basename = basename
... | gpl-3.0 | -8,320,870,269,722,252,000 | 31.949495 | 215 | 0.601625 | false | 3.75374 | false | false | false |
kyxw007/MovieRename | kyxw007/FileTool.py | 1 | 1084 | # coding=utf-8
import os
import Utils, Rename
root_dir = "/Volumes/XiaoMi-usb0/下载"
tool = Rename.RenameTool()
def get_suffix(file_name):
index = file_name.rfind('.')
return file_name[index:len(file_name)]
def folder_rename(root_dir):
file_list = os.listdir(root_dir)
for file_name in filter(Utils.... | apache-2.0 | 1,555,840,494,825,192,000 | 27.628571 | 101 | 0.645709 | false | 2.486352 | false | false | false |
srmnitc/tis-tools | runscripts/make_q4q6_dist/make_q4q6_dist.py | 1 | 13555 | import os
import sys
import subprocess as sub
import numpy as np
import time
import logging
import tistools_helpers.tistools_helpers as tistools_helpers
#SRM:set up logger for the general error messages
logger = logging.getLogger(__name__)
handler = logging.FileHandler("analysis.log")
formatter = logging.Formatter('%(... | gpl-3.0 | 3,505,470,412,904,452,600 | 33.579082 | 115 | 0.507562 | false | 3.752769 | false | false | false |
galbiati/video-representations | models/ATWModel.py | 1 | 3142 | import tensorflow as tf
from tensorflow.python.framework import ops
from model import Model
class ATWModel(Model):
"""
ATWModel implements a variant on the E-T-D model from model.Model()
Instead of doing next frame prediction, ATW attempts to encode the entire
sequence, then reproduce the video from o... | mit | -998,173,920,038,844,300 | 37.790123 | 96 | 0.610121 | false | 4.156085 | false | false | false |
jhermann/rituals | src/rituals/util/antglob.py | 1 | 6871 | # -*- coding: utf-8 -*-
# pylint: disable=too-few-public-methods
""" Recursive globbing with ant-style syntax.
"""
#
# The MIT License (MIT)
#
# Original source (2014-02-17) from https://github.com/zacherates/fileset.py
# Copyright (c) 2012 Aaron Maenpaa
#
# Modifications at https://github.com/jhermann/rituals
# Copyri... | gpl-2.0 | 4,840,534,147,977,032,000 | 33.862944 | 116 | 0.600903 | false | 4.265839 | false | false | false |
DigiThinkIT/stem | test/unit/version.py | 1 | 8982 | """
Unit tests for the stem.version.Version parsing and class.
"""
import unittest
import stem.util.system
import stem.version
from stem.version import Version
try:
# added in python 3.3
from unittest.mock import patch
except ImportError:
from mock import patch
TOR_VERSION_OUTPUT = """Mar 22 23:09:37.088 [no... | lgpl-3.0 | -1,618,298,573,717,635,800 | 34.223529 | 86 | 0.676353 | false | 3.205567 | true | false | false |
cadrev/Titanic-Prediction | data-munging.py | 1 | 3412 | #
# Title : Data munging(AKA cleaning) the Titanic Data
# Author : Felan Carlo Garcia
#
# Notes:
# -- Code is based on the Kaggle Python Tutorial
# -- data cleaning prior to implementing a machine learning algorithm.
import numpy as np
import pandas as pd
def processdata(filename, outputname):
df = pd.read... | mit | 6,481,765,875,969,964,000 | 36.911111 | 91 | 0.663247 | false | 3.412 | false | false | false |
bfirsh/docker-py | setup.py | 1 | 2327 | #!/usr/bin/env python
import codecs
import os
import sys
from setuptools import setup, find_packages
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
requirements = [
'requests >= 2.5.2, != 2.11.0',
'six >= 1.4.0',
'websocket-client >= 0.32.0',
'docker-pycreds >= 0.2.1'
]
if... | apache-2.0 | -7,816,205,614,684,412,000 | 30.026667 | 78 | 0.646755 | false | 3.699523 | true | false | false |
NERC-CEH/ecomaps | ecomaps/controllers/wmsviz.py | 1 | 9385 | # Copyright (C) 2007 STFC & NERC (Science and Technology Facilities Council).
# This software may be distributed under the terms of the
# Q Public License, version 1.0 or later.
# http://ndg.nerc.ac.uk/public_docs/QPublic_license.txt
#
"""
Controller for the 'View' tab - allowing the display of WMC map layers
@autho... | gpl-2.0 | 131,777,740,538,252,640 | 36.242063 | 175 | 0.558977 | false | 4.593735 | false | false | false |
EtienneCmb/tensorpac | tensorpac/methods/meth_erpac.py | 1 | 5370 | """Individual methods for assessing ERPAC."""
import numpy as np
from scipy.stats import chi2
from joblib import Parallel, delayed
from tensorpac.gcmi import nd_mi_gg
from tensorpac.config import CONFIG
def pearson(x, y, st='i...j, k...j->ik...'):
"""Pearson correlation for multi-dimensional arrays.
Parame... | bsd-3-clause | -5,151,203,058,610,020,000 | 32.987342 | 79 | 0.577281 | false | 3.27439 | false | false | false |
tobiasgoecke/django-messages | tests/settings.py | 1 | 1335 | import os.path
INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django_messages'
]
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'dj... | bsd-3-clause | -2,423,822,688,440,526,300 | 25.7 | 71 | 0.632959 | false | 3.608108 | false | true | false |
bruckhaus/challenges | python_challenges/project_euler/p012_highly_divisible.py | 1 | 2097 | __author__ = 'tilmannbruckhaus'
import numpy
import sys
class HighlyDivisible:
# Highly divisible triangular number
# Problem 12
# The sequence of triangle numbers is generated by adding the natural numbers.
# So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28.
# The first ten te... | mit | -1,834,102,411,324,664,800 | 27.337838 | 95 | 0.556986 | false | 3.731317 | false | false | false |
nathanielvarona/airflow | airflow/jobs/local_task_job.py | 1 | 8884 | #
# 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 | 6,241,240,399,067,721,000 | 41.711538 | 109 | 0.605583 | false | 4.376355 | false | false | false |
ykoga-kyutech/nippou_proj | nippou_app/migrations/0001_initial.py | 1 | 4531 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.core.validators
import django.utils.timezone
import django.contrib.auth.models
import datetime
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
(... | mit | -7,798,382,819,515,398,000 | 62.557143 | 432 | 0.612272 | false | 4.063014 | false | false | false |
sapphon/minecraftpython | src/main/resources/assets/minecraftpython/scripts/base/items.py | 1 | 4641 | IRON_SHOVEL = 'iron_shovel'
IRON_PICKAXE = 'iron_pickaxe'
IRON_AXE = 'iron_axe'
FLINT_AND_STEEL = 'flint_and_steel'
APPLE = 'apple'
BOW = 'bow'
ARROW = 'arrow'
COAL = 'coal'
DIAMOND = 'diamond'
IRON_INGOT = 'iron_ingot'
GOLD_INGOT = 'gold_ingot'
IRON_SWORD = 'iron_sword'
WOODEN_SWORD = 'wooden_sword'
WOODEN_SHOVEL = 'w... | gpl-3.0 | 2,584,095,510,397,654,000 | 25.83237 | 49 | 0.721827 | false | 2.132813 | false | true | false |
rocky/python-spark | example/python2/py2_parser.py | 1 | 20426 | # Copyright (c) 2016-2017 Rocky Bernstein
"""
More complex expression parsing
"""
# from __future__ import print_function
import sys
from spark_parser.ast import AST
from py2_scan import Python2Scanner, ENDMARKER
from spark_parser import GenericASTBuilder
DEFAULT_DEBUG = {'rules': False, 'transition': False, 'red... | mit | -2,205,583,393,401,705,700 | 31.015674 | 88 | 0.527808 | false | 3.892149 | true | false | false |
maru/fiubar | fiubar/config/settings/local.py | 1 | 2473 | # -*- coding: utf-8 -*-
"""
Local settings
- Run in Debug mode
- Use console backend for emails
- Add Django Debug Toolbar
- Add django-extensions as app
"""
import socket
from django.contrib.messages import constants as message_constants
from .common import * # noqa
# DEBUG
# -----------------------------------... | mit | -7,611,459,301,191,556,000 | 29.158537 | 80 | 0.534169 | false | 4.101161 | false | false | false |
NicovincX2/Python-3.5 | Génie logiciel/Architecture logicielle/Patron de conception/Patron de structure/flyweight.py | 1 | 2973 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""http://codesnipers.com/?q=python-flyweights"""
import weakref
class FlyweightMeta(type):
def __new__(mcs, name, parents, dct):
"""
:param name: class name
:param parents: class parents
:param dct: dict: includes class attributes,... | gpl-3.0 | -3,190,265,489,521,152,500 | 24.62931 | 74 | 0.557686 | false | 3.329227 | false | false | false |
drivefast/pycipherwallet | example/http_router.py | 1 | 3024 | import time
import bottle
import bcrypt
import sqlalchemy
from sqlalchemy.sql import text as sql_statement
import cipherwallet.api_router
ROOT = '/path/to/pycipherwallet/example'
@bottle.route('/<folder:re:css>/<filename:re:.*\.css>')
@bottle.route('/<folder:re:js>/<filename:re:.*\.js>')
@bottle.route('/<folder:re:i... | mit | -8,174,461,802,536,404,000 | 34.576471 | 100 | 0.642526 | false | 3.669903 | false | false | false |
zhlinh/leetcode | 0038.Count and Say/solution.py | 1 | 1175 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
*****************************************
Author: zhlinh
Email: zhlinhng@gmail.com
Version: 0.0.1
Created Time: 2016-02-17
Last_modify: 2016-02-17
******************************************
'''
'''
The count-and-say sequence is the sequence... | apache-2.0 | -3,460,842,501,020,716,500 | 25.111111 | 76 | 0.455319 | false | 3.706625 | false | false | false |
vitorio/ocropodium | ocradmin/nodelib/nodes/cuneiform.py | 1 | 1938 | """
Cuneiform Recogniser
"""
from __future__ import absolute_import
import os
import codecs
import shutil
import tempfile
import subprocess as sp
import numpy
from nodetree import node
from . import base
from .. import stages, types, utils
class CuneiformRecognizer(base.CommandLineRecognizerNode):
"""
Re... | apache-2.0 | -6,946,050,462,958,837,000 | 27.925373 | 82 | 0.54644 | false | 3.923077 | false | false | false |
jamesblunt/psutil | psutil/_pslinux.py | 1 | 45271 | # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Linux platform implementation."""
from __future__ import division
import base64
import errno
import functools
import os
import re
import socket
import... | bsd-3-clause | 3,847,961,493,654,271,000 | 36.321517 | 80 | 0.510216 | false | 3.983721 | false | false | false |
adamgilman/tourbillon | tourbillon/streams.py | 1 | 1427 | from datetime import datetime
from threading import Timer
class TourbillonStream(object):
def __init__(self, tb, stream_name):
self.tb = tb
self.r = self.tb.r
self.stream_name = stream_name
self.channel = None
# self.message_queue
self.halt_next = False
self.seconds_delay = 1
def add(self, tick_tuple):... | mit | 9,180,900,712,580,681,000 | 22.8 | 64 | 0.704275 | false | 2.979123 | false | false | false |
cmos3511/cmos_linux | python/op/nop/core/report/report.py | 1 | 5302 | """
Generate report module of OnePiece Platform
Usage:
a) dic :
1. instantiation
2. call method: read_dic
b) json :
1. instantiation
2. call method: read_json
API:
Input: gen_rpt_path
gen_rpt_path: generate report path
Ouput:
1) stdout: show the report o... | gpl-3.0 | 7,415,528,286,573,856,000 | 30.372781 | 89 | 0.50132 | false | 3.572776 | false | false | false |
smart-cities/reading_aginova_sensors | scripts/parse_log.py | 1 | 2425 | #!/usr/bin/env python
"""Parse a log file and submit last values
Parse a specified log file looking the most recent data being inserted to the
'NOVA_LASTDATA_T' table and submit this over http. MAX_BYTES is used to
limit the volume of data that is read from the log file into memory.
"""
# beware this is horrible ha... | gpl-2.0 | 3,628,607,066,047,131,000 | 29.696203 | 109 | 0.602474 | false | 3.246319 | false | false | false |
mablae/weblate | weblate/trans/south_migrations/0018_auto__add_field_change_translation.py | 1 | 14751 | # -*- coding: utf-8 -*-
#
# Copyright © 2012 - 2015 Michal Čihař <michal@cihar.com>
#
# This file is part of Weblate <http://weblate.org/>
#
# 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, eithe... | gpl-3.0 | 320,020,449,889,908,400 | 73.484848 | 182 | 0.550041 | false | 3.707391 | false | false | false |
google-research/language | language/capwap/utils/text_utils.py | 1 | 11097 | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | apache-2.0 | -2,312,943,053,695,171,000 | 30.796562 | 80 | 0.635217 | false | 3.464564 | false | false | false |
haisland0909/Denoising-Dirty-Documents | script/prediction.py | 1 | 5057 | # coding: UTF8
from sklearn.pipeline import FeatureUnion
from sklearn.grid_search import GridSearchCV
from sklearn import preprocessing
from sklearn.ensemble import GradientBoostingRegressor, RandomForestRegressor
import sklearn.linear_model
import img_to_pickle as i_p
import features as f
import classify
import prepr... | apache-2.0 | -8,497,978,010,576,337,000 | 29.281437 | 98 | 0.58513 | false | 3.34679 | true | false | false |
tgbugs/hypush | hyputils/memex/models/user.py | 1 | 8621 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import datetime
import re
import sqlalchemy as sa
from sqlalchemy.ext.hybrid import Comparator, hybrid_property
from sqlalchemy.ext.declarative import declared_attr
from hyputils.memex._compat import string_types
from hyputils.memex.db import Base
from ... | mit | -137,838,271,922,611,360 | 30.122744 | 88 | 0.609094 | false | 4.259387 | false | false | false |
kriberg/eve-armada | armada/logistics/models.py | 1 | 2472 | from django.db import models
from django.contrib import admin
from armada.capsuler.models import UserPilot, \
UserCorporation, \
UserAPIKey, \
Capsuler
class LogisticsTeam(models.Model):
name = models.CharField(max_length=200)
corporation = models.ForeignKey(UserCorporation)
creato... | agpl-3.0 | -895,496,008,196,292,100 | 32.863014 | 97 | 0.64644 | false | 3.662222 | false | false | false |
vivyly/fancast | fancast/casting/views.py | 1 | 6503 | import simplejson
from django.views import generic
from django.http import HttpResponse
from django.views.decorators.csrf import (csrf_exempt,
requires_csrf_token)
from rest_framework import (viewsets,
generics,
)
from re... | bsd-3-clause | -2,488,046,979,807,079,400 | 33.775401 | 78 | 0.584807 | false | 4.576355 | false | false | false |
blab/nextstrain-augur | builds/dengue/dengue.process.py | 1 | 9677 | from __future__ import print_function
import os, sys
# we assume (and assert) that this script is running from the virus directory, i.e. inside H7N9 or zika
sys.path.append(os.path.join(os.path.dirname(__file__), '../..'))
import base.process
from base.process import process
import argparse
import numpy as np
from deng... | agpl-3.0 | -5,209,273,781,426,590,000 | 48.372449 | 152 | 0.571045 | false | 3.406195 | true | false | false |
LowerSilesians/geo-squizzy | build_big_data/main.py | 1 | 2041 | import random
import json
from models import CITY
class Duplicates:
def __init__(self):
self.storage = dict()
pass
class Feature:
def __init__(self, *args, **kwargs):
self.data = dict({"type": "Feature", "properties": dict(), "geometry": {"type": kwargs['type'], "coordinates": []}})
... | mit | -4,119,395,978,009,548,000 | 33.033333 | 124 | 0.590397 | false | 3.872865 | false | false | false |
mrh1997/cymu | libclang/build-and-test-clang.py | 1 | 1065 | import subprocess
import sys
from os.path import dirname, join
prj_path = dirname(sys.argv[0])
if len(sys.argv) == 1 or sys.argv[1] != 'no-rebuild':
subprocess.check_call(['vagrant', 'powershell', '-c', 'cmd.exe', '-c',
r'C:\vagrant\build.cmd'])
sys.path.append(join(prj_path, r'src\tools... | gpl-3.0 | 7,588,159,631,043,952,000 | 31.272727 | 148 | 0.647887 | false | 2.97486 | false | false | false |
jhauberg/cards.py | cards/templatefield.py | 1 | 2868 | # coding=utf-8
"""
This module provides functions for working with template fields.
"""
import re
from typing import Iterator
class TemplateField: # pylint: disable=too-few-public-methods
""" Represents a field in a template. """
def __init__(self,
name: str=None,
contex... | mit | -7,489,422,013,993,804,000 | 36.246753 | 98 | 0.561018 | false | 4.280597 | false | false | false |
mrunge/horizon_lib | horizon_lib/tables/actions.py | 1 | 38071 | # Copyright 2012 Nebula, 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 agree... | apache-2.0 | 7,165,437,380,666,320,000 | 38.906709 | 79 | 0.614168 | false | 4.479995 | false | false | false |
marwoodandrew/superdesk-aap | server/aap/publish/formatters/anpa_formatter_test.py | 1 | 15888 | # -*- coding: utf-8; -*-
#
# This file is part of Superdesk.
#
# Copyright 2013, 2014, 2015 Sourcefabric z.u. and contributors.
#
# For the full copyright and license information, please see the
# AUTHORS and LICENSE files distributed with this source code, or
# at https://www.sourcefabric.org/superdesk/license
from d... | agpl-3.0 | -7,921,156,450,565,238,000 | 41.368 | 120 | 0.592837 | false | 3.659143 | true | false | false |
repotvsupertuga/repo | plugin.video.zen/resources/lib/indexers/navigator.py | 1 | 14704 | # -*- coding: utf-8 -*-
'''
zen Add-on
Copyright (C) 2016 zen
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... | gpl-2.0 | -5,556,857,216,013,222,000 | 55.122137 | 222 | 0.696477 | false | 3.348668 | false | false | false |
crccheck/atx-bandc | bandc/apps/agenda/tests/test_utils.py | 1 | 3059 | import datetime
import os.path
from unittest import mock
from django.test import TestCase
from ..factories import BandCFactory
from ..utils import (
MeetingCancelled,
parse_date,
clean_text,
process_page,
get_number_of_pages,
_save_page,
)
from .. import scrape_logger
BASE_DIR = os.path.dirn... | bsd-3-clause | -7,105,842,265,565,726,000 | 33.761364 | 82 | 0.632887 | false | 3.44482 | true | false | false |
wyrdmeister/OnlineAnalysis | OAGui/src/GuiBase.py | 1 | 5421 | # -*- coding: utf-8 -*-
"""
Online Analysis Configuration Editor - Base class with logging functions
Version 2.0
Michele Devetta (c) 2013
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 ver... | gpl-3.0 | 5,279,471,035,327,872,000 | 32.060976 | 119 | 0.608006 | false | 4.116173 | false | false | false |
gpodder/gpodder | share/gpodder/extensions/notification-win32.py | 1 | 6754 | # -*- coding: utf-8 -*-
#
# gPodder - A media aggregator and podcast client
# Copyright (c) 2005-2018 The gPodder Team
#
# gPodder 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 Licens... | gpl-3.0 | -7,643,252,481,788,382,000 | 40.950311 | 126 | 0.659165 | false | 3.652785 | false | false | false |
chencoyote/owasp-pysec | pysec/load.py | 1 | 11062 | # Python Security Project (PySec) and its related class files.
#
# PySec is a set of tools for secure application development under Linux
#
# Copyright 2014 PySec 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... | apache-2.0 | 2,443,859,515,778,118,700 | 30.696275 | 79 | 0.568975 | false | 3.666556 | false | false | false |
kedz/cuttsum | old/python/cuttsum/readers.py | 1 | 2494 | import codecs
import numpy as np
from sklearn.feature_extraction import DictVectorizer
def gold_reader(bow_file, l_file, sim_idx, vector=u'latent'):
op = codecs.open
sims = []
vectors = []
labels = []
unicodes = []
last_hour = None
with op(bow_file, u'r', u'utf-8') as bf, op(l_file, u'r', u... | apache-2.0 | -8,457,494,943,271,030,000 | 32.702703 | 78 | 0.468324 | false | 3.667647 | false | false | false |
Karajlug/karajlug | dbot/views.py | 1 | 2174 | # -----------------------------------------------------------------------------
# Karajlug.org
# Copyright (C) 2010 Karajlug community
#
# 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 Found... | gpl-2.0 | 284,063,036,326,837,600 | 33.507937 | 79 | 0.596136 | false | 4.464066 | false | false | false |
tos-kamiya/agec2 | src/gen_ngram.py | 1 | 25223 | #!/usr/bin/env python
#coding: utf-8
__author__ = 'Toshihiro Kamiya <kamiya@mbj.nifty.com>'
__status__ = 'experimental'
import collections
import os
import sys
import datetime
from _utilities import sort_uniq
import asm_manip as am
import ope_manip as om
import precomp_manip as pm
UNTRACKED_CLAZS = frozenset([
... | mit | 5,821,878,241,560,408,000 | 43.960784 | 153 | 0.587638 | false | 3.543552 | false | false | false |
mattclark/osf.io | addons/github/models.py | 1 | 16200 | # -*- coding: utf-8 -*-
import os
import urlparse
import markupsafe
from addons.base.models import (BaseOAuthNodeSettings, BaseOAuthUserSettings,
BaseStorageAddon)
from django.db import models
from framework.auth import Auth
from github3 import GitHubError
from osf.models.external impo... | apache-2.0 | 8,612,263,753,383,808,000 | 32.333333 | 117 | 0.553457 | false | 4.422604 | false | false | false |
rhyolight/hypersearch | setup.py | 1 | 1371 | #!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2014, Numenta, Inc. Unless you have purchased from
# Numenta, Inc. a separate commercial license for this software code, the
# following terms and conditio... | gpl-3.0 | 1,950,163,098,414,486,500 | 36.054054 | 78 | 0.644785 | false | 4.554817 | false | false | false |
tboggs/fretboard | fretboard/displays/common.py | 1 | 1370 | from __future__ import division, print_function, unicode_literals
class Fret(object):
'''Represents an individual fret on a fretboard.'''
def __init__(self, string, fret, note):
self.string = string
self.number = fret
self.note = note
self.text = None
class FretboardDis... | gpl-3.0 | -8,315,247,631,235,190,000 | 29.444444 | 87 | 0.545985 | false | 3.702703 | false | false | false |
omji/django-tabbed-admin | tabbed_admin/templatetags/tabbed_admin_tags.py | 1 | 1878 | # -*- coding: utf-8 -*-
from django import template
from django.contrib.admin.helpers import Fieldset
from django.template.loader import render_to_string
from django.core.exceptions import ImproperlyConfigured
register = template.Library()
@register.simple_tag(takes_context=True)
def render_tab_fieldsets_inlines(con... | bsd-3-clause | 6,588,136,163,030,727,000 | 37.326531 | 78 | 0.620873 | false | 4.327189 | false | false | false |
fredgj/lazy | lazy/lazy.py | 1 | 1420 | class LazyRef(object):
def __init__(self, fget):
self.fget = fget
self.name = fget.__name__
def __get__(self, instance, cls):
value = self.fget(instance)
instance.__dict__[self.name] = value
return value
class LazyProperty(object):
def __init__(self, fget=None, fse... | mit | -501,561,031,706,150,700 | 26.307692 | 73 | 0.557042 | false | 3.944444 | false | false | false |
frePPLe/frePPLe | contrib/odoo/addons_v8/frepple/res_company.py | 1 | 1239 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2014 by frePPLe bv
#
# This library 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.
#
... | agpl-3.0 | -7,058,372,471,046,832,000 | 34.4 | 114 | 0.719935 | false | 3.731928 | false | false | false |
cpcloud/numpy | numpy/distutils/command/autodist.py | 3 | 1650 | """This module implements additional tests ala autoconf which can be useful.
"""
from __future__ import division, absolute_import, print_function
# We put them here since they could be easily reused outside numpy.distutils
def check_inline(cmd):
"""Return the inline identifier (may be empty)."""
cmd._check_... | bsd-3-clause | 3,202,266,910,410,981,400 | 20.428571 | 76 | 0.638788 | false | 3.416149 | false | false | false |
GeoMop/GeoMop | src/LayerEditor/ui/dialogs/layers/split_layer.py | 1 | 4224 | """
Dialog for appending new layer to the end.
"""
import PyQt5.QtWidgets as QtWidgets
import PyQt5.QtGui as QtGui
from .layers_helpers import LayersHelpers
from LayerEditor.leconfig import cfg
import gm_base.icon as icon
class SplitLayerDlg(QtWidgets.QDialog):
def __init__(self, min, max, copy_block, parent=Non... | gpl-3.0 | 2,672,201,235,913,936,000 | 38.111111 | 105 | 0.624763 | false | 3.885925 | false | false | false |
MartinThoma/hwrt | hwrt/features_plugin.py | 1 | 2007 | """Features in development."""
# Core Library modules
import os
import urllib.request
# Local modules
from . import handwritten_data, utils
class Bitmap:
"""n × n grayscale bitmap of the recording."""
normalize = True
def __init__(self, n=28):
self.n = n # Size of the bitmap (n x n)
def... | mit | -5,350,278,061,378,514,000 | 28.072464 | 87 | 0.536391 | false | 3.575758 | false | false | false |
openstack/heat | heat/policies/build_info.py | 1 | 1502 | # 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
# d... | apache-2.0 | 7,344,856,664,631,625,000 | 29.04 | 78 | 0.673768 | false | 3.901299 | false | false | false |
levibostian/VSAS | VSAS system/VSAS/vsasGUI/EmailScreen.py | 1 | 4232 | """
Test of an Email Screen
Author: Kristen Nielsen kristen.e.nielsen@gmail.com
Modeled after tkSimpleDialog.py from pythonware.com
"""
from Tkinter import *
import tkMessageBox as MsgBox
from multilistbox import MultiListbox
from emailInputNew import EmailInput
class EmailSettings(Toplevel):
def _... | mit | 3,505,993,686,349,974,500 | 34.17094 | 105 | 0.587902 | false | 3.925788 | false | false | false |
Lana-B/Pheno4T | madanalysis/enumeration/observable_type.py | 1 | 6721 | ################################################################################
#
# Copyright (C) 2012-2013 Eric Conte, Benjamin Fuks
# The MadAnalysis development team, email: <ma5team@iphc.cnrs.fr>
#
# This file is part of MadAnalysis 5.
# Official website: <https://launchpad.net/madanalysis5>
#
# MadAnal... | gpl-3.0 | 7,029,142,806,390,245,000 | 37.626437 | 190 | 0.586371 | false | 2.84547 | false | false | false |
mganeva/mantid | scripts/Muon/GUI/Common/context_example/context_example_widget.py | 1 | 1841 | # Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
from __future__ import (absolute_import, div... | gpl-3.0 | -1,136,197,275,128,112,800 | 31.875 | 93 | 0.689299 | false | 4.127803 | false | false | false |
cumc-dbmi/pmi_sprint_reporter | file_transfer.py | 1 | 3848 | from base64 import b64encode
from io import BytesIO
from uuid import uuid4
import requests
import time
import wddx
import settings
TRANSFER_API_URL_FMT = 'https://transfer.nyp.org/seos/1000/%s.api'
TRANSFER_LOGIN_URL = TRANSFER_API_URL_FMT % 'login'
TRANSFER_FIND_URL = TRANSFER_API_URL_FMT % 'find'
TRANSFER_PUT_URL ... | mit | -8,684,232,296,754,300,000 | 35.301887 | 116 | 0.661123 | false | 3.451121 | false | false | false |
funkring/fdoo | addons-funkring/shop_delivery/__openerp__.py | 1 | 1296 | # -*- coding: utf-8 -*-
#############################################################################
#
# Copyright (c) 2007 Martin Reisenhofer <martin.reisenhofer@funkring.net>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pu... | agpl-3.0 | -7,352,487,846,455,987,000 | 34.054054 | 78 | 0.574074 | false | 3.95122 | false | false | false |
giraldeau/autovm | autovm/helpers.py | 1 | 3970 | #!/usr/bin/env python
# coding=utf-8
import os
from os.path import join, dirname, exists
from os import makedirs, utime, unlink, walk
from heapq import heappush, heappop, heappushpop
import platform
import sys
def default_dist():
(a, b, c) = platform.dist()
return c
def default_arch():
mapping = { 'x86_6... | gpl-3.0 | -6,377,656,115,338,019,000 | 28.857143 | 106 | 0.589673 | false | 3.491645 | false | false | false |
endlessm/chromium-browser | chrome/android/java/src/PRESUBMIT.py | 1 | 8949 | # Copyright (c) 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Presubmit script for Android Java code.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the presub... | bsd-3-clause | -43,752,571,225,410,950 | 41.614286 | 80 | 0.721086 | false | 3.66162 | false | false | false |
Uli1/mapnik | scons/scons-local-2.4.0/SCons/Tool/ifort.py | 1 | 3327 | """SCons.Tool.ifort
Tool-specific initialization for newer versions of the Intel Fortran Compiler
for Linux/Windows (and possibly Mac OS X).
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) ... | lgpl-2.1 | -6,600,932,587,542,999,000 | 36.806818 | 104 | 0.685903 | false | 3.676243 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.