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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
wji/plenarnavi_backend | data/UUID.py | 1 | 1035 | from sqlalchemy.types import TypeDecorator, CHAR
from sqlalchemy.dialects.postgresql import UUID
import uuid
class GUID(TypeDecorator):
"""Platform-independent GUID type.
Uses PostgreSQL's UUID type, otherwise uses
CHAR(32), storing as stringified hex values.
"""
impl = CHAR
def load_dialect... | gpl-3.0 | 666,983,228,280,939,600 | 27.777778 | 53 | 0.590338 | false | 4.539474 | false | false | false |
HPCGISLab/NAWS | workflow.py | 1 | 7938 | #!/usr/bin/python
"""
Copyright (c) 2014 High-Performance Computing and GIS (HPCGIS) Laboratory. All rights reserved.
Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Authors and contributors: Eric Shook (eshook@kent.edu)
"""
import os
import datetime
import time
import... | bsd-3-clause | 6,810,888,699,355,148,000 | 35.75 | 120 | 0.644621 | false | 4.11722 | false | false | false |
ecolell/aquire | setup.py | 1 | 2553 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
import os
import subprocess
from setuptools.command import easy_install
def parse_requirements(filename):
return list(filter(lambda line: (line.strip())[0] != '#',
[line.strip() for line in open(filename).readlines()... | mit | 4,310,986,713,263,461,400 | 33.04 | 78 | 0.614179 | false | 3.915644 | false | false | false |
crispycret/crispys_webkit | tests/urls.py | 1 | 3789 | import unittest
from crispys_webkit.urls import LazyUrl
stackoverflow_url = 'http://stackoverflow.com/'
def create_stackoverflow_lazyurl():
return LazyUrl(stackoverflow_url)
class LazyUrlMixin(object):
def check_stackoverflow_url(self, url):
self.assertEqual(url.scheme, 'http')
self.assertEqual(url.host, 's... | mit | 4,662,887,234,070,625,000 | 31.393162 | 107 | 0.691475 | false | 3.235696 | true | false | false |
Pointedstick/ReplicatorG | skein_engines/skeinforge-44/fabmetheus_utilities/xml_simple_reader.py | 1 | 25544 | """
The xml_simple_reader.py script is an xml parser that can parse a line separated xml text.
This xml parser will read a line seperated xml text and produce a tree of the xml with a document element. Each element can have an attribute table, childNodes, a class name, parentNode, text and a link to the document elem... | gpl-2.0 | -4,695,995,734,451,366,000 | 29.555024 | 228 | 0.743541 | false | 3.431028 | false | false | false |
fablabnbg/inkscape-chain-paths | setup.py | 1 | 1767 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# sudo zypper in python-setuptools
# http://docs.python.org/2/distutils/setupscript.html#installing-additional-files
#
from __future__ import print_function
import sys,os,glob,re
from distutils.core import setup
from setuptools.command.test import test as TestCommand
im... | gpl-2.0 | 4,223,029,791,495,990,000 | 31.127273 | 91 | 0.624222 | false | 3.635802 | true | false | false |
haandol/algorithm_in_python | tree/check_full_bin_tree.py | 1 | 1126 | # http://www.geeksforgeeks.org/check-whether-binary-tree-full-binary-tree-not/
from __init__ import Node
def solution(root):
if not root:
return True
if root.left and not root.right:
return False
if root.right and not root.left:
return False
return solution(root.left) and ... | mit | 7,824,998,618,597,669,000 | 20.653846 | 78 | 0.615453 | false | 3.059783 | false | false | false |
TinyOS-Camp/DDEA-DEV | Archive/[14_10_11] Dr_Jung_Update/pre_bn_state_processing.py | 1 | 91559 | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 5 15:28:13 2014
@author: deokwooj
"""
from __future__ import division # To forace float point division
import numpy as np
from scipy import stats
from scipy.interpolate import interp1d
from sklearn import mixture
#from sklearn.cluster import Ward
from sklearn.cluster imp... | gpl-2.0 | -6,386,651,215,079,214,000 | 46.074036 | 156 | 0.550858 | false | 3.155901 | false | false | false |
jualjiman/knowledge-base | src/knowledge_base/users/api.py | 1 | 6130 | # -*- coding: utf-8 -*-
import os
from django.contrib.auth import get_user_model
from rest_framework import status
from rest_framework.decorators import detail_route
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from knowledge_base.api.v1.routers import router
fr... | apache-2.0 | -7,804,503,449,449,819,000 | 27.915094 | 76 | 0.596574 | false | 4.693721 | false | false | false |
google-research/episodic-curiosity | episodic_curiosity/constants.py | 1 | 6595 | # coding=utf-8
# Copyright 2019 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 ... | apache-2.0 | 3,986,055,241,371,008,500 | 36.471591 | 80 | 0.643821 | false | 3.749289 | false | false | false |
pterk/django-bop | bop/api.py | 1 | 5312 | import operator
from django.contrib.auth.models import User, Group, Permission
from django.contrib.contenttypes.models import ContentType
from django.db.models import Q
from bop.models import ObjectPermission
def get_model_perms(model):
return [p[0] for p in model._meta.permissions] + \
[model._meta.get... | mit | -8,878,782,757,124,568,000 | 30.431953 | 128 | 0.512236 | false | 4.219222 | false | false | false |
ColorTyWorld/GISRS | src/python/landsat/ndvi.py | 1 | 8766 | import sys, os, math, time
import arcpy
from arcpy import env
from arcpy.sa import *
arcpy.CheckOutExtension("spatial")
#Metadata exists in one of two standard formats (finds the correct name for each field)
def acquireMetadata(metadata, band):
band = str(band)
metadatalist = []
if ("RADIANCE_M... | gpl-3.0 | -8,988,101,215,451,264,000 | 32.458015 | 166 | 0.646019 | false | 3.017556 | false | false | false |
hpcugent/easybuild-framework | easybuild/tools/multidiff.py | 1 | 10576 | # #
# Copyright 2014-2019 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (... | gpl-2.0 | -2,696,512,201,220,367,000 | 35.343643 | 104 | 0.574414 | false | 3.904024 | false | false | false |
grlurton/orbf_data_validation | src/data_preparation/excel_consolidation/get_excel_metadata.py | 1 | 2188 | #%%
import xlrd
import itertools
import os
import pandas as pd
def combine_paths(directory, files):
return (os.path.join(directory, filename) for filename in files)
def get_excel_for_district(district_path):
files = os.walk(district_path)
files_per_directory = [combine_paths(walk[0],walk[2]) fo... | mit | 5,083,607,058,927,558,000 | 36.385965 | 137 | 0.603291 | false | 3.616529 | false | false | false |
ranjaykrishna/simple-amt | reject_assignments.py | 1 | 1247 | import argparse, json
import simpleamt
if __name__ == '__main__':
parser = argparse.ArgumentParser(add_help=False)
parser.add_argument('--prod', action='store_false', dest='sandbox',
default=True,
help="Whether to run on the production AMT site.")
parser.add_argument('... | mit | 336,828,048,293,545,300 | 35.676471 | 82 | 0.639936 | false | 3.552707 | false | false | false |
tgcmteam/tgcmlinux | src/tgcm/ui/MSD/MSDActionsManager.py | 1 | 2000 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Authors : Roberto Majadas <roberto.majadas@openshine.com>
# Cesar Garcia Tapia <tapia@openshine.com>
# Oier Blasco <oierblasco@gmail.com>
# Alvaro Peña <alvaro.pena@openshine.com>
#
# Copyright (c) 2003-2012, Telefonica Móviles España S.A.U.
#
... | gpl-2.0 | 3,031,636,920,097,830,000 | 33.431034 | 68 | 0.68002 | false | 3.44905 | false | false | false |
pp-mo/pylogy | newideas.py | 1 | 3123 | #
# mechanism
#
def Pred__possibles(args):
for rule in self.rules:
for possible in rule.possibles(args):
yield possible
def Rule__possibles(args):
locals = self.match_args(self.args, args)
if locals is None:
return
# E.G. "pred(X, 1)" matches ("Q", "V") producing {'X':Var("Q... | gpl-3.0 | -2,520,361,608,389,034,000 | 29.617647 | 88 | 0.51521 | false | 3.151362 | false | false | false |
SauloAislan/ironic | ironic/conf/opts.py | 1 | 3708 | # 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 under the Li... | apache-2.0 | 3,209,014,342,729,036,300 | 33.654206 | 77 | 0.653722 | false | 3.660415 | false | false | false |
WladimirSidorenko/SentiLex | scripts/visualize_graph.py | 1 | 9464 | #!/usr/bin/env python2.7
##################################################################
# Imports
from __future__ import print_function, unicode_literals
from germanet import Germanet
from wordnet import Wordnet
from collections import Counter, defaultdict
from itertools import chain
from matplotlib import colle... | mit | -6,633,096,336,561,518,000 | 33.414545 | 74 | 0.539941 | false | 3.169457 | false | false | false |
keighrim/bananaNER | scripts/entity_extr.py | 1 | 2984 | # /usr/bin/python
# -*- coding: utf-8 -*-
"""
This program is to
extract named entities from an annotated data file
CS137B, programming assignment #1, Spring 2015
"""
import sys
reload(sys)
sys.setdefaultencoding('utf8')
__author__ = 'krim'
__date__ = '2/6/2015'
__email__ = 'krim@brandeis.edu'
def read(input_file... | gpl-3.0 | -1,419,966,461,462,060,800 | 29.141414 | 70 | 0.413539 | false | 4.196906 | false | false | false |
kedder/soaring-coupons | coupons/models.py | 1 | 8712 | from typing import Sequence
import logging
import pytz
import random
import string
import itertools
from datetime import date, datetime
from decimal import Decimal
from django.db import models
log = logging.getLogger(__name__)
SEASON_START_MONTH = 4
SEASON_END_MONTH = 10
class CouponType(models.Model):
id = mo... | agpl-3.0 | -2,247,421,808,241,636,900 | 31.75188 | 88 | 0.607094 | false | 3.903226 | false | false | false |
teoliphant/scipy | scipy/sparse/tests/test_base.py | 2 | 65539 | #
# Authors: Travis Oliphant, Ed Schofield, Robert Cimrman, Nathan Bell, and others
""" Test functions for sparse matrices
"""
__usage__ = """
Build sparse:
python setup.py build
Run tests if scipy is installed:
python -c 'import scipy;scipy.sparse.test()'
Run tests if sparse is not installed:
python tests/test... | bsd-3-clause | -5,126,287,273,559,635,000 | 34.541757 | 99 | 0.507576 | false | 2.958471 | true | false | false |
sayoun/pyvac | pyvac/views/base.py | 1 | 7745 | # -*- coding: utf-8 -*-
import logging
import traceback
from datetime import datetime
from webob import Response
from pyramid.security import authenticated_userid
from pyramid.httpexceptions import HTTPFound
from pyramid.url import route_url
# from pyramid.response import Response
from pyramid.settings import asbool
... | bsd-3-clause | -2,335,569,999,331,767,300 | 28.116541 | 78 | 0.541382 | false | 4.348681 | false | false | false |
pombredanne/https-gitlab.lrde.epita.fr-vcsn-vcsn | tests/python/automaton.py | 1 | 13433 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import vcsn
from test import *
## -------------- ##
## dot: parsing. ##
## -------------- ##
# Check invalid input.
def xfail(a):
XFAIL(lambda: vcsn.automaton(a))
# Syntax error: missing }.
xfail(r'''digraph
{
vcsn_context = "lal_char(a), b"
''')
# Syntax error... | gpl-3.0 | 8,603,536,619,741,621,000 | 22.114385 | 135 | 0.531004 | false | 2.620751 | false | false | false |
nacl-webkit/chrome_deps | tools/telemetry/telemetry/page_unittest.py | 1 | 1754 | # Copyright (c) 2012 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.
import unittest
from telemetry import page
class TestPage(unittest.TestCase):
def testGetUrlBaseDirAndFileForAbsolutePath(self):
apage = page.Page... | bsd-3-clause | 6,564,029,803,146,257,000 | 41.780488 | 73 | 0.640251 | false | 3.755889 | true | false | false |
Jean-Simon-Barry/djangoproject | djangoproject/settings.py | 1 | 2131 | """
Django settings for djangoproject project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, .... | gpl-2.0 | -9,102,493,995,731,263,000 | 23.77907 | 71 | 0.727827 | false | 3.28858 | false | false | false |
chris-ch/lemvi-risk | scripts/track-drawdowns.py | 1 | 5109 | import argparse
import json
import logging
import os
from datetime import datetime
import tenacity
import gservices
from risklimits import extract_navs, compute_high_watermark, extract_flows
def from_excel_datetime(excel_date):
return datetime.fromordinal(datetime(1900, 1, 1).toordinal() + int(excel_date) - 2)
... | mit | 385,711,334,942,550,340 | 43.043103 | 120 | 0.633001 | false | 3.482618 | true | false | false |
aishmittal/Product-Info-Crawler | demo/app/views.py | 1 | 1977 | from app import app
import os
from flask import render_template
from flask import Flask, redirect, url_for, request, send_from_directory
from flask import json
import sys
import sys
import csv
curfilePath = os.path.abspath(__file__)
curDir = os.path.abspath(os.path.join(curfilePath, os.pardir))
parDir = os.path.abspa... | mit | -3,283,697,977,506,034,700 | 30.903226 | 109 | 0.607486 | false | 3.794626 | false | false | false |
Rahveiz/PingCheck | main.py | 1 | 6665 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import subprocess
import time
import socket
import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from mainwindow4 import Ui_MainWindow
#On cree un thread pour les operations de ping
class pingThread(QThread):
def ... | gpl-3.0 | -1,618,018,899,325,959,200 | 31.99505 | 157 | 0.613053 | false | 3.52459 | false | false | false |
mallconnectionorg/openerp | rrhh/l10n_cl_hr_payroll/model/hr_family_responsibilities.py | 1 | 2469 | #!/usr/bin/python
# -*- coding: utf-8 -*-
##############################################################################
#
# Pedro Arroyo M <parroyo@mallconnection.com>
# Copyright (C) 2015 Mall Connection(<http://www.mallconnection.org>).
#
# This program is free software: you can redistribute it and/or modify
#... | agpl-3.0 | 8,236,057,115,983,737,000 | 42.333333 | 177 | 0.565411 | false | 4.346831 | false | false | false |
airalcorn2/Deep-Semantic-Similarity-Model | deep_semantic_similarity_keras.py | 1 | 8280 | # Michael A. Alcorn (malcorn@redhat.com)
# An implementation of the Deep Semantic Similarity Model (DSSM) found in [1].
# [1] Shen, Y., He, X., Gao, J., Deng, L., and Mesnil, G. 2014. A latent semantic model
# with convolutional-pooling structure for information retrieval. In CIKM, pp. 101-110.
# http:/... | mit | 1,212,973,223,307,917,600 | 46.551724 | 168 | 0.68685 | false | 3.012013 | false | false | false |
protonyx/labtronyx-gui | labtronyxgui/applets/Resources/VISA.py | 1 | 2904 | """
.. codeauthor:: Kevin Kennedy <kennedy.kevin@gmail.com>
"""
from Base_Applet import Base_Applet
import Tkinter as Tk
from widgets import *
class VISA(Base_Applet):
info = {
# Description
'description': 'Generic view for VISA Resources',
# List of compatibl... | mit | -527,448,498,447,606,460 | 32.37931 | 68 | 0.474518 | false | 3.851459 | false | false | false |
SetBased/py-kerapu | kerapu/command/TestsetShredderCommand.py | 1 | 11590 | import csv
import datetime
import os
import random
import shutil
import string
import zipfile
from typing import Iterable, List, Dict
from cleo import Command
from lxml import etree
from kerapu.style.KerapuStyle import KerapuStyle
class TestShredderCommand(Command):
"""
Converteert XML-bestand met de testse... | mit | 6,899,941,541,554,615,000 | 42.246269 | 124 | 0.528645 | false | 3.991047 | true | false | false |
effigies/mne-python | examples/export/plot_epochs_to_nitime.py | 2 | 2043 | """
=======================
Export epochs to NiTime
=======================
This script shows how to export Epochs to the NiTime library
for further signal processing and data analysis.
"""
# Author: Denis Engemann <denis.engemann@gmail.com>
# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
#
# ... | bsd-3-clause | -4,635,458,188,188,562,000 | 30.430769 | 79 | 0.625551 | false | 3.217323 | false | false | false |
Knygar/hwios | services/web_ui/models/ws_realm.py | 1 | 7844 | '''
Copyright (c) OS-Networks, http://os-networks.net
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following... | bsd-3-clause | -7,726,291,159,420,705,000 | 37.455882 | 117 | 0.610785 | false | 4.508046 | false | false | false |
swannapa/erpnext | erpnext/accounts/doctype/sales_invoice/sales_invoice.py | 1 | 35544 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe, erpnext
import frappe.defaults
from frappe.utils import cint, flt
from frappe import _, msgprint, throw
from erpnext.accounts.party impor... | gpl-3.0 | -4,458,028,978,484,492,300 | 35.605561 | 153 | 0.692044 | false | 3.099137 | false | false | false |
tavisrudd/eventlet | eventlet/convenience.py | 1 | 4364 | import sys
from eventlet import greenio
from eventlet import greenthread
from eventlet import greenpool
from eventlet.green import socket
from eventlet.support import greenlets as greenlet
def connect(addr, family=socket.AF_INET, bind=None):
"""Convenience function for opening client sockets.
:param addr: Ad... | mit | 2,061,297,895,791,826,400 | 37.280702 | 122 | 0.683089 | false | 4.037003 | false | false | false |
zstars/weblabdeusto | server/src/weblab/core/coordinator/redis/priority_queue_scheduler.py | 1 | 33851 | #!/usr/bin/env python
#-*-*- encoding: utf-8 -*-*-
#
# Copyright (C) 2005 onwards University of Deusto
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
#
# This software consists of contributions made by many individual... | bsd-2-clause | 1,431,921,179,492,637,200 | 49.902256 | 271 | 0.629483 | false | 4.337519 | false | false | false |
cloudify-cosmo/softlayer-python | SoftLayer/CLI/mq/queue_add.py | 1 | 1390 | """Create a queue."""
# :license: MIT, see LICENSE for more details.
import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import mq
import click
@click.command()
@click.argument('account-id')
@click.argument('queue-name')
@click.option('--datacenter', help="Datacenter, E.G.: dal05")
@click.opti... | mit | 7,730,772,881,855,012,000 | 31.325581 | 78 | 0.621583 | false | 4.064327 | false | false | false |
cloudendpoints/endpoints-tools | auth/generate-jwt.py | 1 | 2375 | #!/usr/bin/env python
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | apache-2.0 | 7,548,041,424,393,917,000 | 32.450704 | 100 | 0.703579 | false | 3.912685 | false | false | false |
xjw1001001/IGCexpansion | test/Ancestral_reconstruction/IGCcluster_analysis.py | 1 | 46187 | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 30 22:00:31 2017
@author: xjw1001001
"""
import numpy as np
from IGCexpansion.CodonGeneconFunc import *
llpath = '/Users/xjw1001001/Documents/GitHub/IGCexpansion2/test/Ancestral_reconstruction/'
path = llpath + 'matrix/sitewise_IGC_statmatrix/'
paralog_list = [['YLR406C... | gpl-3.0 | 2,687,871,542,146,271,000 | 60.666222 | 219 | 0.559486 | false | 3.296717 | false | false | false |
docusign/docusign-python-client | docusign_esign/models/workspace_settings.py | 1 | 3403 | # coding: utf-8
"""
DocuSign REST API
The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501
OpenAPI spec version: v2.1
Contact: devcenter@docusign.com
Generated by: https://github.com/swagger-api/swagger-codegen.gi... | mit | -6,446,043,402,609,773,000 | 28.08547 | 140 | 0.566559 | false | 4.307595 | false | false | false |
FEniCS/fiat | FIAT/orthopoly.py | 1 | 10895 | """
orthopoly.py - A suite of functions for generating orthogonal polynomials
and quadrature rules.
Copyright (c) 2014 Greg von Winckel
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
... | lgpl-3.0 | -129,732,180,367,428,380 | 27.372396 | 90 | 0.553281 | false | 3.116419 | false | false | false |
slremy/testingpubsub | myBallPlate/remote.py | 1 | 7502 | '''
Copyright (c) 2013 Sekou Remy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... | mit | 1,301,263,015,616,686,600 | 34.220657 | 157 | 0.624367 | false | 3.283151 | false | false | false |
RyanWHowe/SunStat | SunStat/SunStat.py | 1 | 9538 | from __future__ import division
import datetime
import math
__author__ = 'Ryan W. Howe'
class SunStat:
def __init__(self, latitude, longitude, year, month, day, utcoffset=0):
"""SunStat class is able to provide the sunset, sunrise, or noon time for the Sun at a provided date.
DISCLAIMER These cal... | mit | 2,214,814,354,007,430,400 | 49.739362 | 120 | 0.622458 | false | 3.535211 | false | false | false |
xmendez/wfuzz | src/wfuzz/plugins/payloads/permutation.py | 1 | 1709 | from wfuzz.externals.moduleman.plugin import moduleman_plugin
from wfuzz.plugin_api.base import BasePayload
from wfuzz.exception import FuzzExceptBadOptions
from wfuzz.fuzzobjects import FuzzWordType
@moduleman_plugin
class permutation(BasePayload):
name = "permutation"
author = ("Xavi Mendez (@xmendez)",)
... | gpl-2.0 | -24,799,782,009,886,480 | 26.564516 | 88 | 0.564073 | false | 3.797778 | false | false | false |
jankeromnes/depot_tools | gcl.py | 1 | 49489 | #!/usr/bin/env python
# Copyright (c) 2012 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.
"""\
Wrapper script around Rietveld's upload.py that simplifies working with groups
of files.
"""
import json
import optparse
impo... | bsd-3-clause | 6,702,259,805,813,352,000 | 32.757844 | 80 | 0.648548 | false | 3.736711 | true | false | false |
supersteph/supersteph.github.io | word2vec_as_MF.py | 1 | 12494 | import matplotlib.pyplot as plt
import os
import csv
import pickle
import operator
import numpy as np
from numpy.linalg import svd, qr
from scipy.spatial.distance import cosine
from scipy.sparse.linalg import svds
class Word2vecMF(object):
def __init__(self):
"""
Main class for working with w... | mit | 4,738,436,276,298,297,000 | 30.08209 | 78 | 0.421722 | false | 3.830166 | false | false | false |
logston/pester | models.py | 1 | 5903 | import re
from django.core.exceptions import ValidationError
from django.db import models
from django.utils import timezone
# phone number regex
pnum_pattern = re.compile(r'[0-9]{10}')
def validate_pnum(pnum):
"""Raise validation error if not a 10 digit phone number"""
if not re.match(pnum_pattern, pnum):
... | gpl-2.0 | -8,974,291,282,706,841,000 | 31.977654 | 77 | 0.623581 | false | 3.738442 | false | false | false |
GoogleCloudPlatform/mimus-game-simulator | mimus_cfg.py | 1 | 3414 | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | 6,784,159,353,470,306,000 | 36.933333 | 78 | 0.654657 | false | 3.075676 | false | false | false |
akariv/redash | redash/handlers/api.py | 1 | 6007 | from flask_restful import Api
from werkzeug.wrappers import Response
from flask import make_response
from redash.utils import json_dumps
from redash.handlers.base import org_scoped_rule
from redash.handlers.alerts import AlertResource, AlertListResource, AlertSubscriptionListResource, AlertSubscriptionResource
from re... | bsd-2-clause | 3,339,268,984,470,864,400 | 64.293478 | 162 | 0.786915 | false | 3.780365 | false | false | false |
ExcaliburZero/r-dailyprogrammer-solutions | 2015/11/23-Funny-Plant.py | 1 | 1154 | # Problem: 242 [Easy] Funny Plant
# https://www.reddit.com/r/dailyprogrammer/comments/3twuwf/20151123_challenge_242_easy_funny_plant/
# Author: ExcaliburZero
# License: MIT
import fileinput
def main():
# Iterate over each of the input lines
for line in fileinput.input():
# Get the input values
... | mit | 2,605,174,256,789,166,000 | 30.189189 | 99 | 0.587522 | false | 3.846667 | false | false | false |
jacobwindsor/pubchem-ranker | manage.py | 1 | 1837 | import sys
from flask_script import Manager
from CompoundRanker import app
from CompoundRanker.DataManipulators.CIDGatherer import CIDGatherer
from CompoundRanker.DataManipulators.PubChemAssayCounter import PubChemAssayCounter
from CompoundRanker.DataManipulators.PubChemPathwayCounter import PubChemPathwayCounter
from ... | mit | -5,863,559,762,759,437,000 | 28.15873 | 94 | 0.702232 | false | 3.420857 | false | false | false |
ooici/coi-services | ion/services/sa/tcaa/test/test_terrestrial_endpoint.py | 1 | 31848 | #!/usr/bin/env python
"""
@package ion.services.sa.tcaa.test.test_terrestrial_endpoint
@file ion/services/sa/tcaa/test/test_terrestrial_endpoint.py
@author Edward Hunter
@brief Test cases for 2CAA terrestrial endpoint.
"""
__author__ = 'Edward Hunter'
# Pyon log and config objects.
from pyon.public import log
from p... | bsd-2-clause | -1,828,002,971,545,074,700 | 36.735782 | 202 | 0.587101 | false | 3.827425 | true | false | false |
durandj/dockerscript | dockerscript/operations/run.py | 1 | 1025 | """
Run operation for adding shell commands to the Dockerfile
"""
import typing
from .base_operation import Operation
# pylint: disable=too-few-public-methods
class RunOperation(Operation):
"""
An operation for running a shell command
"""
commands: typing.List[str]
def __init__(self, commands: ... | mit | 624,003,003,467,350,400 | 22.295455 | 82 | 0.626341 | false | 4.051383 | false | false | false |
ARudiuk/mne-python | mne/epochs.py | 1 | 129314 | # -*- coding: utf-8 -*-
"""Tools for working with epoched data"""
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Matti Hamalainen <msh@nmr.mgh.harvard.edu>
# Daniel Strohmeier <daniel.strohmeier@tu-ilmenau.de>
# Denis Engemann <denis.engemann@gmail.com>
# ... | bsd-3-clause | -8,414,976,939,089,250,000 | 40.604569 | 80 | 0.568995 | false | 4.072918 | false | false | false |
Ximpia/ximpia | ximpia/xpsite/constants.py | 1 | 3312 | # coding: utf-8
class Services:
USERS = 'Users'
class Slugs:
LOGIN = 'login'
LOGOUT = 'logout'
REMINDER_NEW_PASSWORD = 'reminder-new-password'
CHANGE_PASSWORD = 'change-password'
SIGNUP = 'signup'
ACTIVATION_USER = 'activation-user'
HOME_LOGIN = 'in'
SITE = 'site'
... | apache-2.0 | 3,870,277,391,610,701,300 | 22.533333 | 58 | 0.658514 | false | 2.723684 | false | false | false |
profxj/desispec | py/desispec/io/frame.py | 1 | 3003 | """
desispec.io.frame
=================
IO routines for frame.
"""
import os.path
import numpy as np
import scipy,scipy.sparse
from astropy.io import fits
from desispec.frame import Frame
from desispec.io import findfile
from desispec.io.util import fitsheader, native_endian, makepath
from desispec.log import get_lo... | bsd-3-clause | 1,386,145,176,748,292,600 | 29.03 | 80 | 0.638362 | false | 3.504084 | false | false | false |
wpoa/wiki-imports | lib/python2.7/site-packages/pywikibot-2.0b1-py2.7.egg/pywikibot/userinterfaces/terminal_interface_win32.py | 1 | 2982 | # -*- coding: utf-8 -*-
#
# (C) Pywikipedia bot team, 2003-2012
#
# Distributed under the terms of the MIT license.
#
__version__ = '$Id: d6e1d28165e1e0b54b746762992665e7d30cab04 $'
import re
from . import terminal_interface_base
try:
import ctypes
ctypes_found = True
except ImportError:
ctypes_found = Fa... | gpl-3.0 | -2,789,536,079,870,463,000 | 29.742268 | 112 | 0.550302 | false | 3.690594 | false | false | false |
ZeikJT/DisgaeaHacking | unpacker.py | 1 | 4726 | #!/usr/bin/python
import os,struct,sys
''' Version 0.1.0
ARC, DAT and MPP unpacker. '''
class FileBundle:
def __init__(self):
self.files = []
def addFiles(self):
raise NotImplementedError()
def extractFiles(self, outputFolder):
if not os.path.exists(outputFolder):
... | mit | 4,212,476,860,702,476,000 | 37.383333 | 96 | 0.596064 | false | 3.649421 | false | false | false |
tanghaibao/goatools | goatools/semantic.py | 1 | 9628 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
Compute semantic similarities between GO terms. Borrowed from book chapter from
Alex Warwick Vesztrocy and Christophe Dessimoz (thanks). For details, please
check out:
notebooks/semantic_similarity.ipynb
"""
from __future__ import print_function
import sys
from collec... | bsd-2-clause | -4,900,397,585,464,170,000 | 35.608365 | 95 | 0.634919 | false | 3.317712 | false | false | false |
gajim/gajim | test/gtk/htmltextview.py | 1 | 5593 | from unittest.mock import MagicMock
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
from gajim.common import app
from gajim.common import configpaths
configpaths.init()
from gajim import gui
gui.init('gtk')
from gajim.common.helpers import AdditionalDataDict
from gajim.conversation_textvi... | gpl-3.0 | 3,587,926,064,607,005,000 | 25.126168 | 81 | 0.528349 | false | 3.094079 | false | false | false |
AlexisTM/flyingros | flyingros_nav/nodes/control_thread.py | 1 | 6591 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
control_thread.py
This script sends positions to control the UAV in X, Y, Z
ILPS 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 th... | gpl-3.0 | 7,663,449,591,026,991,000 | 28.799065 | 113 | 0.62206 | false | 3.38347 | false | false | false |
robbje/eis | src/eqc/eqc.py | 1 | 3399 | #!/usr/bin/env python2
from parser import Node
from copy import deepcopy
import numpy as np
from eqclib import getClassDefinition, resetClassDefinition
class CircuitTree(Node):
def __init__(
self,
params=[],
eqc=lambda w,
p: 0,
name="",
pNa... | mit | -6,485,698,705,719,781,000 | 32.653465 | 92 | 0.531921 | false | 3.759956 | false | false | false |
zbqf109/goodo | openerp/addons/account/__init__.py | 1 | 1247 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
import wizard
import report
from openerp import SUPERUSER_ID
def _auto_install_l10n(cr, registry):
#check the country of the main company (only) and eventually load some module needed in that country
... | gpl-3.0 | 3,208,437,055,561,920,000 | 43.535714 | 136 | 0.61668 | false | 3.48324 | false | false | false |
StephDC/MiniBioKit | bioChemTool/wigUtil.py | 1 | 4604 | from . import commonUtil
class ucscFile():
'''Universal file structure for UCSC Genome Sequence files including wig and bedgraph'''
def __init__(self,name,description='',visibility='hide',color='0,0,0',priority='100',additionConf='',browserConf=None):
self.config = commonUtil.equalDict()
self.c... | gpl-3.0 | 7,058,044,371,761,962,000 | 33.878788 | 127 | 0.570808 | false | 3.938409 | true | false | false |
faisalp4p/slang-python | step6/AST.py | 1 | 14814 | from abc import ABCMeta, abstractmethod
from Lexer import RELATIONAL_OPERATOR
class OPERATOR:
PLUS = "+"
MINUS = "-"
DIV = "/"
MUL = "*"
class TYPE_INFO:
TYPE_ILLEGAL = -1
TYPE_NUMERIC = 0
TYPE_BOOL = 1
TYPE_STRING = 2
class SYMBOL_INFO:
def __init__(self, symbol_name=None... | mit | 8,989,551,126,098,030,000 | 27.765049 | 192 | 0.524706 | false | 3.815091 | false | false | false |
percyfal/ratatosk | ratatosk/lib/tools/fastqc.py | 1 | 2849 | # Copyright (c) 2013 Per Unneberg
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | apache-2.0 | -1,005,853,423,500,576,800 | 35.063291 | 103 | 0.665146 | false | 3.574655 | false | false | false |
prlosana/BuzzBoards | fortitoServer_broadcast.py | 1 | 14915 | import time
import pygame
import buzzbox
import tricolourleds8
import buttons8
import wear_multiplexer
import wear_sensor_heat
import wear_sensor_light
import wear_sensor_motion
from twisted.internet.protocol import Protocol, Factory
from twisted.internet import reactor, task
i2cBus = 1 #This depends on the model of ... | agpl-3.0 | 8,068,275,674,875,720,000 | 28.132813 | 85 | 0.648676 | false | 2.812559 | false | false | false |
cmpe-295/project-backend | safe_ride/ride/migrations/0001_initial.py | 1 | 1399 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0004_client_activation_link_offset'),
]
operations = [
migrations.CreateModel(
name='Ride',
... | mit | 6,725,087,668,841,999,000 | 41.393939 | 114 | 0.565404 | false | 4.427215 | false | false | false |
dbdd4us/compose | compose/config/types.py | 1 | 6996 | """
Types for objects parsed from the configuration.
"""
from __future__ import absolute_import
from __future__ import unicode_literals
import os
from collections import namedtuple
import six
from compose.config.config import V1
from compose.config.errors import ConfigurationError
from compose.const import IS_WINDOW... | apache-2.0 | 5,409,932,919,929,041,000 | 30.656109 | 83 | 0.575472 | false | 4.13231 | true | false | false |
shinose/qplaybox | packages/addons/driver/hdhomerun/source/resources/actions.py | 1 | 1477 | ################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
#
# OpenELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General ... | gpl-2.0 | -2,070,411,174,875,305,700 | 45.15625 | 90 | 0.633717 | false | 3.777494 | false | false | false |
axelberndt/Raspberry-Pi-Tools | src/ShutdownRebootVolumeControl.py | 1 | 6353 | #!/usr/bin/env python3.5
# This is a combination of ShutdownRebootButton.py and VolumeRotaryControl.py. It is handy for those who use a rotary switch.
# Author: Axel Berndt
from RPi import GPIO
from time import sleep, time
from subprocess import call
import alsaaudio
GPIOpinButton = 27 # Button is on GPI... | gpl-3.0 | 9,147,913,887,483,484,000 | 60.096154 | 210 | 0.582087 | false | 4.354352 | false | false | false |
andikleen/pmu-tools | interval-plot.py | 1 | 3554 | #!/usr/bin/env python
# plot interval CSV output from perf/toplev
# perf stat -I1000 -x, -o file ...
# toplev -I1000 -x, -o file ...
# interval-plot.py file (or stdin)
# delimeter must be ,
# this is for data that is not normalized
# TODO: move legend somewhere else where it doesn't overlap?
from __future__ import prin... | gpl-2.0 | 6,773,985,436,433,152,000 | 27.66129 | 75 | 0.612549 | false | 3.227975 | false | false | false |
wglass/kiel | kiel/protocol/join_group.py | 1 | 1780 | from .part import Part
from .request import Request
from .response import Response
from .primitives import Array, String, Bytes, Int16, Int32
api_name = "join_group"
__all__ = [
"JoinGroupRequest",
"JoinGroupResponse",
"GroupProtocol",
"Member",
]
class GroupProtocol(Part):
"""
::
G... | apache-2.0 | -4,484,983,534,276,010,500 | 18.139785 | 58 | 0.51573 | false | 4.091954 | false | false | false |
annavonzansen/exams | exams/migrations/0027_auto__del_field_orderitem_special_arrangement__del_field_historicalord.py | 1 | 38780 | # -*- 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):
# Deleting field 'OrderItem.special_arrangement'
db.delete_column(u'exams_orderitem', 'special_arrangement_i... | gpl-2.0 | 5,900,534,965,387,721,000 | 87.339408 | 220 | 0.555982 | false | 3.568274 | true | false | false |
phelios/moneyleft | moneyleft/migrations/0001_initial.py | 1 | 2230 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as 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 'Entry'
db.create_table('moneyleft_entry', (
(... | apache-2.0 | 6,019,200,249,292,548,000 | 41.09434 | 114 | 0.58296 | false | 3.68595 | false | false | false |
zrecore/alexventure.com | alexventure/portfolio/models.py | 1 | 1277 | from django.db import models
# Create your models here.
class Category(models.Model):
name = models.CharField( max_length = 110 )
slug = models.CharField( max_length = 110 )
published = models.IntegerField( default = 0 )
parent = models.ForeignKey( 'self', on_delet... | gpl-3.0 | 204,253,478,973,647,900 | 38.90625 | 120 | 0.602976 | false | 4.066879 | false | false | false |
fletin/AutoComp | Comp.avs.py | 1 | 4350 | # ver 1.01
# .supports multitask simultaneously
import os,sys
import uuid
#Generate uuid to make sure filename unique
task_uuid=str(uuid.uuid1())
#tools path
x264_path=sys.path[0]+"\\x264\\x264.exe"
ffms2_path=sys.path[0]+"\\ffms2\\ffms2.dll"
bepipe_path=sys.path[0]+"\\BePipe\\BePipe.exe"
nero_path=sys.path[0]+"\\ne... | gpl-2.0 | -3,835,330,320,334,072,300 | 30.521739 | 211 | 0.665747 | false | 2.520278 | false | false | false |
timofeymukha/turbulucid | turbulucid/core/case.py | 1 | 14104 | # This file is part of turbulucid
# (c) 2018 Timofey Mukha
# The code is released under the GNU GPL Version 3 licence.
# See LICENCE.txt and the Legal section in the README for more information
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as ... | gpl-3.0 | -8,321,563,673,050,837,000 | 28.383333 | 85 | 0.573454 | false | 4.255884 | false | false | false |
bbfamily/abu | abupy/TradeBu/ABuTradeProxy.py | 1 | 14496 | # -*- encoding:utf-8 -*-
"""
交易执行代理模块
"""
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from contextlib import contextmanager
from functools import total_ordering
from enum import Enum
import numpy as np
import pandas as pd
from . import ABuTradeDra... | gpl-3.0 | -5,568,852,503,388,017,000 | 35.951456 | 115 | 0.632335 | false | 2.223997 | false | false | false |
eort/OpenSesame | libqtopensesame/items/qtautoplugin.py | 2 | 5912 | #-*- coding:utf-8 -*-
"""
This file is part of OpenSesame.
OpenSesame 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.
OpenSesame is distri... | gpl-3.0 | 3,340,131,450,445,400,600 | 32.782857 | 79 | 0.653755 | false | 2.953047 | false | false | false |
oVirt/jenkins | stdci_libs/stdci_dsl/api/formatters/runners.py | 1 | 1620 | #!/bin/env python
"""runners.py - Set of data formatters for stdci runners"""
import logging
from yaml import safe_dump
_formatters = {}
logger = logging.getLogger(__name__)
class FormatterNotFoundError(Exception):
pass
def get_formatter(formatter_name):
"""Given formatter name, return formatter function... | gpl-3.0 | -3,148,337,800,633,962,500 | 25.129032 | 75 | 0.648148 | false | 3.96088 | false | false | false |
Juniper/contrail-horizon | openstack_dashboard/dashboards/project/networking/views.py | 1 | 6510 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 NEC Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#... | apache-2.0 | 5,272,953,729,970,121,000 | 37.070175 | 93 | 0.634101 | false | 4.249347 | false | false | false |
datawire/telepresence | telepresence/cli.py | 1 | 17399 | # Copyright 2018 Datawire. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | apache-2.0 | 8,950,086,370,324,174,000 | 31.042357 | 79 | 0.579918 | false | 4.222033 | false | false | false |
mindbody/API-Examples | SDKs/Python/swagger_client/models/get_class_payroll_response.py | 1 | 4756 | # coding: utf-8
"""
MINDBODY Public API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
impor... | bsd-2-clause | -2,032,422,677,886,335,000 | 31.135135 | 119 | 0.609336 | false | 4.201413 | false | false | false |
Pushjet/Pushjet-Server-Api | controllers/subscription.py | 1 | 1428 | from flask import Blueprint, jsonify
from utils import Error, has_service, has_uuid, queue_zmq_message
from shared import db
from models import Subscription
from json import dumps as json_encode
from config import zeromq_relay_uri
subscription = Blueprint('subscription', __name__)
@subscription.route('/subscription'... | bsd-2-clause | 6,787,025,586,137,599,000 | 30.733333 | 103 | 0.721989 | false | 3.828418 | false | false | false |
HyShai/youtube-dl | youtube_dl/downloader/f4m.py | 1 | 12552 | from __future__ import unicode_literals
import base64
import io
import itertools
import os
import time
import xml.etree.ElementTree as etree
from .common import FileDownloader
from .http import HttpFD
from ..compat import (
compat_urlparse,
)
from ..utils import (
struct_pack,
struct_unpack,
format_by... | unlicense | -2,441,628,705,126,840,000 | 32.832884 | 88 | 0.565249 | false | 3.888476 | false | false | false |
makson96/free-engineer | games/doom3/game.py | 2 | 2138 | #!/usr/bin/env python3
#-*- coding: utf-8 -*-
##This software is available to you under the terms of the GPL-3, see "/usr/share/common-licenses/GPL-3".
##Copyright:
##- Tomasz Makarewicz (makson96@gmail.com)
import os, shutil
from subprocess import check_output
recultis_dir = os.getenv("HOME") + "/.recultis/"
self_d... | gpl-3.0 | 4,665,695,567,504,706,000 | 34.633333 | 156 | 0.707203 | false | 2.787484 | false | false | false |
alirizakeles/tendenci | tendenci/apps/base/management/commands/upload_addon.py | 1 | 1366 | from optparse import make_option
import os
import zipfile
from django.conf import settings
from django.core.files.storage import default_storage
from django.core.management.base import BaseCommand
class Command(BaseCommand):
"""
Addon upload process.
Usage:
example:
python manage.py uplo... | gpl-3.0 | 7,041,375,665,213,064,000 | 28.695652 | 77 | 0.627379 | false | 4.005865 | false | false | false |
xS1ender/CytaPWN | cytapwn.py | 1 | 7318 | #!/usr/bin/python
#!/usr/bin/python2
#!/usr/bin/python3
# +-------------------------------------------------------------------------------------------------------------+
# | ZTE ZXHN H267N Router with <= V1.0.01_CYTA_A01 - RCE Root Exploit |
# | Copyright (c) 2017 Kropalis ... | apache-2.0 | -4,255,299,614,088,935,400 | 48.120805 | 113 | 0.410768 | false | 4.467643 | false | false | false |
wuliming/pcp | src/python/pcp/pmcc.py | 1 | 23035 | """ Convenience Classes building on the base PMAPI extension module """
#
# Copyright (C) 2013-2015 Red Hat
# Copyright (C) 2009-2012 Michael T. Werner
#
# This file is part of the "pcp" module, the python interfaces for the
# Performance Co-Pilot toolkit.
#
# This program is free software; you can redistribute it and/... | lgpl-2.1 | -2,193,649,800,487,159,300 | 35.161695 | 82 | 0.584545 | false | 3.997744 | false | false | false |
Osmose/pontoon | pontoon/administration/management/commands/sync_projects.py | 1 | 17746 | from collections import Counter
from datetime import datetime
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand, CommandError
from django.template.loader import render_to_string
from django.utils import timezone
from bulk_update.helper import bulk_update
from pontoon.adm... | bsd-3-clause | 6,697,951,671,892,925,000 | 39.515982 | 101 | 0.575679 | false | 4.520122 | false | false | false |
sunweaver/ganetimgr | ganeti/utils.py | 1 | 18377 | import requests
from requests.exceptions import ConnectionError
from bs4 import BeautifulSoup
import json
from gevent.pool import Pool
from django.conf import settings
from django.core.urlresolvers import reverse
from django.core.cache import cache
from django.core.mail import send_mail
from django.contrib.sites.model... | gpl-3.0 | -5,637,533,463,556,239,000 | 34.545455 | 109 | 0.502313 | false | 4.262816 | false | false | false |
saydulk/newfies-dialer | newfies/mod_utils/templatetags/utils_tags.py | 1 | 2429 | #
# Newfies-Dialer License
# http://www.newfies-dialer.org
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Copyright (C) 2011-2015 Star2Billing S.L.
#
# The primar... | mpl-2.0 | 6,704,997,681,144,459,000 | 31.824324 | 105 | 0.625772 | false | 3.383008 | false | false | false |
soedinglab/hh-suite | scripts/a3m.py | 1 | 8020 | #!/usr/bin/env python
class A3MFormatError(Exception):
def __init__(self, value):
self.value = "ERROR: "+value
def __str__(self):
return repr(self.value)
class A3M_Container:
RESIDUES = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
VALID_MATCH_STATES = set(RESIDUES)
VALID_INSERTION_STATES = set(... | gpl-3.0 | 6,906,977,804,485,290,000 | 32.416667 | 77 | 0.522818 | false | 4.261424 | false | false | false |
meteotest/hurray | hurray/server/platform/posix.py | 1 | 1906 | #!/usr/bin/env python
#
# Copyright 2011 Facebook
# Modifications copyright 2016 Meteotest
#
# 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
#... | bsd-3-clause | 186,925,933,638,133,950 | 25.84507 | 80 | 0.640084 | false | 3.708171 | false | false | false |
kartikshah1/Test | discussion_forum/views.py | 1 | 29002 | """
Views for Discussion Forum
Keeping activity for add operations only. Can be extended easily if required
TODO
- introduce user specific variable "follow" for thread
Whether user is following thread or not ?
- introduce 'liked', variable for Thread/Comment/Reply
- handle anonymity while serializ... | mit | -2,295,580,879,099,539,200 | 36.373711 | 111 | 0.623716 | false | 4.400243 | false | false | false |
gobins/python-madclient | madclient/openstack/common/apiclient/base.py | 1 | 17430 | # Copyright 2010 Jacob Kaplan-Moss
# Copyright 2011 OpenStack Foundation
# Copyright 2012 Grid Dynamics
# Copyright 2013 OpenStack Foundation
# 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... | apache-2.0 | -13,708,069,029,369,212 | 31.763158 | 79 | 0.572117 | false | 4.176851 | false | false | false |
googleads/google-ads-python | google/ads/googleads/v8/services/services/language_constant_service/transports/grpc.py | 1 | 10459 | # -*- 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 | -6,344,020,487,974,135,000 | 41.173387 | 98 | 0.607611 | false | 4.802112 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.