repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
relman/sevpn-mgmt-py | tests/cedar/test_session.py | 1 | 6285 | # -*- coding: utf-8 -*-
import mock
import socket
import ssl
import unittest
from SevpnMgmtPy.cedar import Session, Watermark
class TestSession(unittest.TestCase):
def test_start_rpc_session(self):
ba = bytearray('\xab\xcd\xef')
hello_pack = mock.MagicMock()
hello_pack.get_va... | mit | 4,562,754,564,933,619,000 | 41.645833 | 118 | 0.590772 | false |
Islandman93/reinforcepy | reinforcepy/learners/dqn/asynchronous/recurrent_thread_learner.py | 1 | 2073 | import numpy as np
from .q_thread_learner import QThreadLearner
class RecurrentThreadLearner(QThreadLearner):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.lstm_state_for_training = self.network.get_lstm_state()
def reset(self):
super().reset()
se... | gpl-3.0 | 1,719,155,660,870,951,400 | 40.46 | 118 | 0.599132 | false |
ruchikd/Algorithms | Python/RankingSystem/rankingSystem.py | 1 | 1182 | class Students:
def __init__ (self, name, percentage):
self.name = name
self.percentage = percentage
def getPercentile(percentageList):
percentageList = sorted(percentageList, reverse=True)
print percentageList
rank = []
for x in range(len(percentageList)):
if percentageList[x][0] != percentageList[x-1][0... | gpl-3.0 | -1,034,714,512,743,438,600 | 27.166667 | 100 | 0.639594 | false |
sam-m888/gramps | gramps/plugins/export/export.gpr.py | 1 | 6420 | #
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2009 Benny Malengier
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) ... | gpl-2.0 | 3,462,252,224,130,837,000 | 31.755102 | 82 | 0.58676 | false |
1200wd/1200wd_addons | delivery_transsmart_address_consolidation/models.py | 1 | 2895 | # -*- coding: utf-8 -*-
##############################################################################
#
# Delivery Transsmart Ingegration - Address Consolidation
# Copyright (C) 2016 1200 Web Development (<http://1200wd.com/>)
# (C) 2015 ONESTEiN BV (<http://www.onestein.nl>)
#
# This program is ... | agpl-3.0 | 3,679,411,118,529,793,000 | 47.25 | 105 | 0.597927 | false |
open-craft/XBlock | xblock/test/test_fields.py | 1 | 17132 | """
Tests for classes extending Field.
"""
# Allow accessing protected members for testing purposes
# pylint: disable=W0212
from mock import MagicMock, Mock
import unittest
import datetime as dt
import pytz
import warnings
from contextlib import contextmanager
from xblock.core import XBlock, Scope
from xblock.field... | apache-2.0 | -4,757,804,643,978,203,000 | 31.632381 | 114 | 0.62608 | false |
caromedellin/data-play | definingMarkovThings.py | 1 | 2434 | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 25 17:58:31 2016
Markov Chain Monte Carol ( or something like that, MCMC)
@author: katar
"""
import numpy
import random
"""
Concept: 1) define a markov chain
2) run a monte carlo simulation using the
markov chain to
"""
stateNames =['tropics','ci... | mit | 5,411,008,059,433,275 | 24.354167 | 68 | 0.639688 | false |
Nexenta/cinder | cinder/volume/drivers/huawei/rest_client.py | 1 | 87896 | # Copyright (c) 2016 Huawei Technologies Co., Ltd.
# 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
#
# ... | apache-2.0 | -4,538,004,271,043,138,000 | 36.530316 | 79 | 0.533608 | false |
rnowling/pop-gen-models | single-pop/single_pop.py | 1 | 3379 | import sys
import numpy as np
import numpy.random as npr
from sklearn.neighbors.kde import KernelDensity
from scipy.special import gammaln
import matplotlib.pyplot as plt
from calculate_phist import read_counts
from calculate_phist import normalize_haplotypes
def log_factorial(n):
return gammaln(n+1)
def log_multino... | apache-2.0 | 8,938,292,461,647,494,000 | 27.166667 | 100 | 0.692513 | false |
SUNET/eduid-webapp | src/eduid_webapp/reset_password/schemas.py | 1 | 4836 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2019 SUNET
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redistributions of source code must retain the above copyright
# noti... | bsd-3-clause | -5,484,295,031,040,792,000 | 38.966942 | 84 | 0.771299 | false |
USGSDenverPychron/pychron | pychron/experiment/run_history_view.py | 1 | 3330 | # ===============================================================================
# Copyright 2017 ross
#
# 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/LICE... | apache-2.0 | -8,427,186,691,387,601,000 | 34.806452 | 116 | 0.552252 | false |
matrix-org/synapse | synapse/rest/client/v2_alpha/sendtodevice.py | 1 | 2257 | # Copyright 2016 OpenMarket Ltd
#
# 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 writin... | apache-2.0 | -4,605,852,789,595,255,000 | 32.686567 | 86 | 0.677891 | false |
michaelsmit/openparliament | parliament/hansards/views.py | 1 | 10309 | import datetime
from urllib import urlencode
from django.core.paginator import Paginator, InvalidPage, EmptyPage
from django.core import urlresolvers
from django.http import HttpResponse, Http404, HttpResponsePermanentRedirect, HttpResponseRedirect
from django.shortcuts import get_object_or_404
from django.template im... | agpl-3.0 | -1,658,530,165,151,227,600 | 35.953405 | 107 | 0.639732 | false |
banksee/budger | config/urls.py | 1 | 1482 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from django.views import defaults as default_views
from re... | bsd-3-clause | -1,879,585,174,766,008,800 | 39.054054 | 110 | 0.670715 | false |
phil1425/qualitySensor | neuralnet.py | 1 | 1427 | import tflearn
from tflearn.data_preprocessing import DataPreprocessing
from tflearn.layers.core import input_data, dropout, fully_connected, reshape
from tflearn.layers.conv import conv_2d, max_pool_2d
from tflearn.layers.estimator import regression
from tflearn.metrics import Accuracy
from tflearn.data_augmentation i... | mit | -5,076,072,647,867,195,000 | 39.771429 | 104 | 0.740014 | false |
felixbb/forseti-security | google/cloud/security/common/gcp_type/resource.py | 1 | 4605 | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | apache-2.0 | -8,266,424,038,210,735,000 | 27.962264 | 75 | 0.608252 | false |
FlowFX/unkenmathe.de | src/um/exercises/views.py | 1 | 3723 | """Views for exercise app."""
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from django.http import HttpResponseRedirect
from django.shortcuts import redirect, reverse
from django.urls import reverse_lazy
from django.views.generic import CreateView, DeleteView, DetailView, ListView, Upd... | agpl-3.0 | 3,247,485,970,944,813,000 | 29.024194 | 116 | 0.684394 | false |
willemt/yabtorrent | clib.py | 1 | 5248 | #!/usr/bin/env python
# encoding: utf-8
# Willem-Hendrik Thiart, 2014
from waflib.Configure import conf
import simplejson as json
import os
import itertools
# TODO
# Add exception for instances where there are multiple packages with same name
class PackageNotFoundException(Exception):
pass
class ClibPackage... | bsd-3-clause | 3,550,750,064,680,354,000 | 27.677596 | 95 | 0.619855 | false |
dionyziz/rupture | backend/breach/tests/test_views.py | 1 | 8744 | from django.test import Client, TestCase
from django.core.urlresolvers import reverse
from breach.models import Target, Victim, Round, SampleSet
import json
from binascii import hexlify
from mock import patch
class ViewsTestCase(TestCase):
def setUp(self):
self.client = Client()
self.target1 = Ta... | mit | -1,765,085,259,026,067,200 | 35.739496 | 152 | 0.592292 | false |
crazy-canux/xplugin_nagios | plugin/plugins/jit/src/jit/session.py | 1 | 6030 | # -*- coding: utf-8 -*-
# Copyright (C) Canux CHENG <canuxcheng@gmail.com>
#
# 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 ... | gpl-2.0 | 458,092,327,978,902,800 | 34.470588 | 80 | 0.58524 | false |
kelle/astropy | astropy/io/ascii/tests/test_read.py | 1 | 47925 | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
# TEST_UNICODE_LITERALS
import re
from io import BytesIO, open
from collections import OrderedDict
import locale
import platform
import pytest
import numpy as np
from ....extern import six # noqa
from ....extern.six.moves impor... | bsd-3-clause | -193,984,975,679,825,300 | 36.198758 | 140 | 0.531704 | false |
mljar/mljar-api-python | tests/result_client_test.py | 1 | 4641 | '''
ResultClient tests.
'''
import os
import unittest
import pandas as pd
import time
from mljar.client.project import ProjectClient
from mljar.client.dataset import DatasetClient
from mljar.client.experiment import ExperimentClient
from mljar.client.result import ResultClient
from mljar.exceptions import BadRequestEx... | apache-2.0 | 7,429,345,541,325,760,000 | 39.710526 | 113 | 0.606119 | false |
mlperf/training_results_v0.7 | NVIDIA/benchmarks/ssd/implementations/mxnet/mlperf_log_utils.py | 1 | 2395 | import collections
import os
import subprocess
import numpy as np
from mlperf_logging.mllog import constants as mlperf_constants
from mlperf_logging import mllog
class MPIWrapper(object):
def __init__(self):
self.comm = None
self.MPI = None
def get_comm(self):
if self.comm is None:
... | apache-2.0 | 3,036,545,671,648,611,000 | 25.032609 | 92 | 0.609186 | false |
vladrulez/old_scripts | crtfile_check.py | 1 | 2457 | #!/usr/bin/env python
# vim: set filetype=python ts=4 sw=4 et si
# -*- coding: utf-8 -*-
# Author: Vladimir Blokhin
###########################
import sys,os,re,tempfile,subprocess
def run_command(command):
p = subprocess.Popen(command,stdout=subprocess.PIPE, shell=True)
return p.communicate()[0]
def... | apache-2.0 | 4,660,238,692,914,844,000 | 38.015873 | 126 | 0.553521 | false |
markcharyk/data-structures | data_structures/b_tree.py | 1 | 5000 | from data_structures.stack import Stack
class Node(object):
def __init__(self, key=None, val=None, capacity=3):
self.count = 0
if key is not None:
self.count = 1
self.elems = [(key, val)]
for i in xrange(capacity-1):
self.elems.append((None, None))
s... | mit | -6,869,153,203,930,512,000 | 31.051282 | 76 | 0.5344 | false |
Antiun/yelizariev-saas | saas_portal/models/saas_portal.py | 1 | 19270 | # -*- coding: utf-8 -*-
import openerp
from openerp import models, fields, api, SUPERUSER_ID, exceptions
from openerp.addons.saas_utils import connector, database
from openerp import http
from openerp.tools import config, scan_languages
from openerp.tools.translate import _
from openerp.addons.base.res.res_partner impo... | lgpl-3.0 | 926,847,361,229,939,000 | 37.463074 | 172 | 0.56082 | false |
ucsb-cs/submit | submit/__init__.py | 1 | 5135 | from pyramid.authentication import AuthTktAuthenticationPolicy
from pyramid.authorization import ACLAuthorizationPolicy
from pyramid.config import Configurator
from pyramid.security import ALL_PERMISSIONS, Allow, Authenticated
from pyramid.session import UnencryptedCookieSessionFactoryConfig
from sqlalchemy import engi... | bsd-2-clause | 7,304,255,547,139,121,000 | 46.110092 | 79 | 0.652775 | false |
NedJunk/APlasticBag | driver.py | 1 | 1662 | import tweepy, time, sys, yaml, json
class Bot(object):
"""docstring for Bot"""
def __init__(self):
super(Bot, self).__init__()
self.creds = None
self.api = self.load_api()
def load_api(self):
with open('credentials.yaml', 'r') as f:
self.creds = yaml.load(f)
auth = tweepy.OAuthHandler(self.creds[... | mit | 1,130,375,862,517,401,700 | 23.820896 | 89 | 0.633574 | false |
Grumbel/rfactortools | minised.py | 1 | 5031 | #!/usr/bin/env python3
# Minimal sed replacement
# Copyright (C) 2014 Ingo Ruhnke <grumbel@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | gpl-3.0 | 5,226,501,209,795,802,000 | 34.429577 | 110 | 0.570463 | false |
NikNitro/Python-iBeacon-Scan | sympy/simplify/tests/test_hyperexpand.py | 2 | 38226 | from random import randrange
from sympy.simplify.hyperexpand import (ShiftA, ShiftB, UnShiftA, UnShiftB,
MeijerShiftA, MeijerShiftB, MeijerShiftC, MeijerShiftD,
MeijerUnShiftA, MeijerUnShiftB, MeijerUnShiftC,
MeijerUnShiftD,
Re... | gpl-3.0 | -4,302,785,560,351,931,400 | 35.755769 | 85 | 0.488333 | false |
Kimanicodes/wananchi | AfricasTalkingGateway.py | 1 | 8915 | """
COPYRIGHT (C) 2014 AFRICASTALKING LTD <www.africastalking.com> #
AFRICAStALKING SMS GATEWAY CLASS IS A FREE SOFTWARE IE. CAN BE MODIFIED AND/OR REDISTRIBUTED
UNDER THER TERMS OF GNU GENERAL PUBLIC LICENCES AS PUBLISHED BY THE ... | mit | -3,734,447,362,411,763,000 | 36.616034 | 138 | 0.616713 | false |
UstadMobile/exelearning-ustadmobile-work | exe/webui/reflectionblock.py | 1 | 4588 | # ===========================================================================
# eXe
# Copyright 2004-2006, University of Auckland
#
# 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 ... | gpl-2.0 | 4,420,733,821,103,434,000 | 35 | 79 | 0.592197 | false |
SEMAFORInformatik/femagtools | tests/test_fsl.py | 1 | 15788 | #!/usr/bin/env python
#
import unittest
import femagtools.fsl
import femagtools.magnet
import copy
import re
modelpars = dict(
name="PM 130 L4",
outer_diam=0.13,
bore_diam=0.07,
lfe=0.1,
poles=4,
stator=dict(
num_slots=12,
mcvkey_yoke="3",
num_slots_gen=3,
nodedi... | bsd-2-clause | 7,500,071,665,891,163,000 | 31.089431 | 78 | 0.480492 | false |
wtsi-hgi/irobot | irobot/tests/unit/authentication/test_http.py | 1 | 5773 | """
Copyright (c) 2017 Genome Research Ltd.
Author: Christopher Harrison <ch12@sanger.ac.uk>
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 ... | gpl-3.0 | 799,001,320,884,289,400 | 36.487013 | 87 | 0.691841 | false |
senyorjou/jshop | jshop/config/settings.py | 1 | 13783 | # -*- coding: utf-8 -*-
"""
Django settings for src project.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/
"""
# Build paths inside the project like this: os.path.jo... | bsd-3-clause | 7,904,582,343,660,698,000 | 33.982234 | 119 | 0.639629 | false |
JohnGeorgiadis/invenio | invenio/ext/email/__init__.py | 1 | 20712 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 CERN.
#
# Invenio is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2... | gpl-2.0 | 3,127,137,064,116,380,000 | 40.758065 | 176 | 0.5927 | false |
dex4er/django-pyc | docs/conf.py | 1 | 12008 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# flake8: noqa
#
# django-pyc documentation build configuration file
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration va... | lgpl-3.0 | 3,586,888,981,436,137,000 | 30.18961 | 83 | 0.703531 | false |
fbrglez/gitBed | xBed/pLib/B/coord.py | 1 | 8879 | from itertools import imap
import time
import sys
import os
import pwd
import platform
import random
from math import log
def neighborhood(coordPivot = [0, 1, 0, 1, 0, 1, 0]):
thisCmd = "B.coord.neighborhood"
ABOUT = """
Procedure {} takes a binary coordinate such as 0101010 (here of
size L = 7) and returns a... | gpl-2.0 | 6,644,329,746,872,474,000 | 31.763838 | 153 | 0.585088 | false |
ferreum/distanceutils | tests/test_workshoplevelinfos.py | 1 | 4185 | import unittest
from distance import WorkshopLevelInfos
from distance.printing import PrintContext
from . import common
from .common import check_exceptions
class Version0Test(unittest.TestCase):
LEVEL_IDS = [469806096, 822049253, 738529116, 753242700, 819617632, 837765551, 895852129, 920857185, 922165443, 9233... | mit | 6,135,202,927,811,930,000 | 57.943662 | 717 | 0.624612 | false |
seekuoitdc/clubcheckout | workingdemo/basic/3server.py | 1 | 4657 | from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from os import curdir, sep
import urlparse, pickle, os
p = 'htmlsnips/'
nofile = 'Bud, I can\'t find the file.'
def makePage():
if not os.path.isfile('login.html'):
try:
with open(p+'header.xml', 'r') as h, open(p+'login.xml','r') as i, open(p+'login.h... | mit | -1,395,616,687,712,345,600 | 26.556213 | 171 | 0.625725 | false |
danielfreeman11/convex-nets | LaunchScripts/ConnectedCompsCalc.py | 1 | 22577 | import numpy as np
import sys
#Usage:
#python thisprog.py threshold numofnetworks
#Will randomly initialize numofnetworks neural networks and train them until the error on a training set is less than threshold
#Will then try to interpolate between these networks while keeping error below that of threshold.
#Will ... | mit | 4,426,660,372,430,676,500 | 31.899399 | 165 | 0.51269 | false |
zsiciarz/variablestars.net | observations/utils.py | 1 | 1279 | import time
def jd_now():
"""
Returns Julian Date at the current moment.
"""
return 2440587.5 + time.time() / 86400.0
def normalize_star_name(name):
"""
Normalize star name with GCVS names, for example: V339 -> V0339.
"""
digits = "123456789"
if name[0] == "V" and name[1] in digi... | mit | -9,047,926,380,575,265,000 | 29.452381 | 83 | 0.647381 | false |
grimoirelab/perceval | perceval/backends/core/git.py | 1 | 46476 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2019 Bitergia
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This ... | gpl-3.0 | -6,328,113,162,280,307,000 | 33.812734 | 104 | 0.579107 | false |
atcemgil/notes | HiddenMarkovModel.py | 1 | 8122 | import numpy as np
from notes_utilities import randgen, log_sum_exp, normalize_exp, normalize
class HMM(object):
def __init__(self, pi, A, B):
# p(x_0)
self.pi = pi
# p(x_k|x_{k-1})
self.A = A
# p(y_k|x_{k})
self.B = B
# Number of possible latent states at ea... | mit | 8,853,695,844,268,049,000 | 32.155102 | 144 | 0.481039 | false |
dandygithub/kodi | addons/plugin.audio.dandy.amdm.ru/default.py | 1 | 19076 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Writer (c) 2018, dandy
# Rev. 1.0.0
# Licence: GPL v.3: http://www.gnu.org/copyleft/gpl.html
import os
import urllib
import urllib2
import sys
import re
import socket
import json
import xbmc
import xbmcplugin
import xbmcgui
import xbmcaddon
from operator import itemgetter
im... | gpl-3.0 | -8,952,606,456,916,527,000 | 43.157407 | 249 | 0.554152 | false |
daviskirk/climatecontrol | climatecontrol/processors.py | 1 | 7460 | """Fragment processors."""
import glob
import logging
import os
from typing import Any, Callable, Iterable, Iterator, Mapping, Sequence, Tuple, Type
from climatecontrol.constants import REMOVED
from climatecontrol.file_loaders import (
FileLoader,
NoCompatibleLoaderFoundError,
iter_load,
load_from_file... | mit | -7,791,123,304,986,514,000 | 32.00885 | 105 | 0.591555 | false |
gem/oq-hazardlib | openquake/hazardlib/tests/gsim/fukushima_tanaka_1990_test.py | 1 | 1631 | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2013-2017 GEM Foundation
#
# OpenQuake 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 Licen... | agpl-3.0 | -6,087,422,980,811,626,000 | 33.702128 | 74 | 0.716125 | false |
WilliamWickerson/MLProject | fastNetwork.py | 1 | 7332 | from random import uniform
import numpy
def sigmoidFunction(x):
try:
ret = 1 / (1 + numpy.exp(-x))
except OverflowError:
ret = 0
return ret
def softMax(array):
exp = [numpy.exp(x) for x in array]
return numpy.array([x / sum(exp) for x in exp])
global sigmoid
sigmoid = nump... | mit | 3,611,374,203,057,257,500 | 44.259259 | 122 | 0.564103 | false |
named-data/ndn-atmos | lib/hep_translators/hep_translator/hep2ndn_parser/conf_file_parser.py | 1 | 4345 | #!/usr/bin/env python3
# -*- Mode:python; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
#
# Copyright (c) 2015, Colorado State University.
#
# This file is part of ndn-atmos.
#
# ndn-atmos is free software: you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as publish... | gpl-3.0 | -7,452,195,405,986,426,000 | 39.231481 | 101 | 0.619793 | false |
elvandy/nltools | nltools/data/adjacency.py | 1 | 34227 | from __future__ import division
'''
This data class is for working with similarity/dissimilarity matrices
'''
__author__ = ["Luke Chang"]
__license__ = "MIT"
import os
import pandas as pd
import numpy as np
import six
from copy import deepcopy
from sklearn.metrics.pairwise import pairwise_distances
from sklearn.mani... | mit | -4,808,218,691,736,605,000 | 38.984813 | 138 | 0.521986 | false |
sjl767/woo | py/tests/grid.py | 1 | 3704 | # encoding: utf-8
# 2013 © Václav Šmilauer <eu@doxos.eu>
import unittest
from minieigen import *
import woo._customConverters
import woo.dem
class TestGridStore(unittest.TestCase):
def setUp(self):
self.gs=woo.dem.GridStore(gridSize=(5,6,7),cellLen=4,denseLock=True,exNumMaps=4)
self.ijk=Vector3i(... | gpl-2.0 | 2,856,454,683,815,910,400 | 43.590361 | 138 | 0.590111 | false |
aspidites/beets | beetsplug/web/__init__.py | 1 | 3486 | # This file is part of beets.
# Copyright 2011, Adrian Sampson.
#
# 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, ... | mit | 7,085,092,965,231,370,000 | 26.888 | 77 | 0.644291 | false |
sadaszewski/scimd | tables.py | 1 | 4234 | #
# Copyright (C) 2015, Stanislaw Adaszewski
# s.adaszewski@gmail.com
# http://algoholic.eu
#
# License: 2-clause BSD
#
from markdown import Extension
from markdown.blockprocessors import BlockProcessor
from markdown.util import etree
import numpy as np
from collections import defaultdict
import numpy.core.defchararr... | bsd-2-clause | 5,751,365,898,379,827,000 | 38.943396 | 102 | 0.467643 | false |
levilucio/SyVOLT | UMLRT2Kiltera_MM/Properties/from_thesis/HSS3_then2_IsolatedLHS.py | 1 | 2493 | from core.himesis import Himesis, HimesisPreConditionPatternLHS
import uuid
class HSS3_then2_IsolatedLHS(HimesisPreConditionPatternLHS):
def __init__(self):
"""
Creates the himesis graph representing the AToM3 model HSS3_then2_IsolatedLHS.
"""
# Flag this instanc... | mit | 4,887,928,618,606,839,000 | 42.736842 | 125 | 0.486963 | false |
daniestevez/gr-satellites | python/pwsat2_submitter.py | 1 | 4853 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2018 Daniel Estevez <daniel@destevez.net>
#
# This file is part of gr-satellites
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This contains code taken from
# https://github.com/PW-Sat2/SimpleUploader-radio.pw-sat.pl
# That code is licenced under the foll... | gpl-3.0 | -5,202,236,390,342,492,000 | 34.423358 | 79 | 0.621059 | false |
erijo/sunnyportal-py | bin/testclient.py | 1 | 2557 | #!/usr/bin/env python3
# Copyright (c) 2016 Erik Johansson <erik@ejohansson.se>
#
# 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 late... | gpl-3.0 | 7,206,936,679,582,265,000 | 32.644737 | 81 | 0.643723 | false |
Serenytics/mrq | tests/conftest.py | 1 | 9561 | from __future__ import print_function
from future import standard_library
standard_library.install_aliases()
from builtins import range
from builtins import str
from builtins import object
from past.builtins import basestring
import pytest
import os
try:
import subprocess32 as subprocess
except:
import subproce... | mit | 1,068,642,993,664,898,200 | 29.644231 | 114 | 0.59157 | false |
KenKundert/abraxas | abraxas/secrets.py | 1 | 4131 | # Generate a Secret
import hashlib
import string
# Globals {{{1
DEFAULT_PASSPHRASE_LENGTH = 4
DEFAULT_PASSWORD_LENGTH = 12
DEFAULT_SEPARATOR = ' '
DEFAULT_ALPHABET = string.ascii_letters + string.digits
# Utilities {{{1
# Partition a string into chunks, each of chars_per_chunk characters, and return
# them one at a ... | gpl-3.0 | 9,177,539,458,046,021,000 | 38.721154 | 80 | 0.614863 | false |
imk1/IMKTFBindingCode | makeGetMergedPeakSignalsScript.py | 1 | 2401 | import sys
import argparse
from itertools import izip
def parseArgument():
# Parse the input
parser=argparse.ArgumentParser(description=\
"Get the positions with the top scores and their scores")
parser.add_argument("--bedFileNameList", required=True,\
help='File with list of bed files')
parser.add_argument(... | mit | 2,729,998,446,542,933,000 | 52.355556 | 279 | 0.73511 | false |
dutradda/alquimia | alquimia/models_attrs_reflect.py | 1 | 4950 | # Copyright 2015 Diogo Dutra
# This file is part of alquimia.
# alquimia is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# Th... | lgpl-3.0 | -8,595,888,538,156,235,000 | 38.285714 | 79 | 0.566061 | false |
asfaltboy/GitSavvy | core/git_mixins/active_branch.py | 1 | 5082 | import re
import string
class ActiveBranchMixin():
def get_current_branch_name(self):
"""
Return the name of the last checkout-out branch.
"""
stdout = self.git("branch", "--no-color")
try:
correct_line = next(line for line in stdout.split("\n") if line.startsw... | mit | 898,024,055,494,178,700 | 32.88 | 145 | 0.552538 | false |
mrshelly/openerp71313 | openerp/addons/project_issue/project_issue.py | 1 | 29439 | #-*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | -5,293,886,448,232,704,000 | 48.637437 | 272 | 0.55716 | false |
CSIRT-MU/Stream4Flow | applications/statistics/tls_classification/web-interface/controllers/tls_classification_statistics.py | 1 | 3061 | # -*- coding: utf-8 -*-
# Import Elasticsearch library
import elasticsearch
from elasticsearch_dsl import Search, Q, A
# Import advanced python collections
import collections
# Import global functions
from global_functions import escape
#----------------- Main Functions -------------------#
def tls_classification_s... | mit | 1,838,573,191,144,077,300 | 32.637363 | 126 | 0.600131 | false |
potatolondon/django-mediagenerator | mediagenerator/utils.py | 1 | 4864 | import functools
import threading
from . import settings as media_settings
from .settings import (GLOBAL_MEDIA_DIRS, PRODUCTION_MEDIA_URL,
IGNORE_APP_MEDIA_DIRS, MEDIA_GENERATORS, DEV_MEDIA_URL,
GENERATED_MEDIA_NAMES_MODULE)
from django.conf import settings
from django.core.exceptions import ImproperlyConfigure... | bsd-3-clause | 4,704,164,287,700,974,000 | 30.79085 | 107 | 0.633224 | false |
erdc/proteus | proteus/tests/surface_tension/rising_bubble_rans3p/pressure_n.py | 1 | 1214 | from __future__ import absolute_import
from proteus import *
from proteus.default_n import *
try:
from .pressure_p import *
except:
from pressure_p import *
triangleOptions = triangleOptions
femSpaces = {0:pbasis}
stepController=FixedStep
#matrix type
numericalFluxType = NumericalFlux.ConstantAdvection_exteri... | mit | 7,385,446,270,750,596,000 | 25.391304 | 61 | 0.788303 | false |
bnbowman/HlaTools | src/pbhla/fasta/subset_sequences.py | 1 | 1114 | #! /usr/bin/env python
import sys
from pbcore.io.FastaIO import FastaReader, FastaWriter
from pbhla.fasta.utils import write_fasta
def subset_sequences( fasta_file, summary_file, output_file ):
seq_ids = identify_sequences( summary_file )
sequences = subset_sequence_records( fasta_file, seq_ids )
write_f... | bsd-3-clause | 4,959,454,841,425,011,000 | 29.944444 | 62 | 0.630162 | false |
tmerr/bank_wrangler | bank_wrangler/bank/fidelity.py | 1 | 2374 | """
Uses OFX to fetch a 3 month window of transactions from Fidelity.
Other possibibilities:
* Download and parse statement PDFs.
Last 10 years are available, 1 month at a time.
* Download CSVs from Portfolio > Activity & Orders > History > Download.
Last 5 years are available, 3 months at a time.
"""
from io im... | gpl-3.0 | 5,555,873,815,300,967,000 | 27.261905 | 75 | 0.642797 | false |
FInAT/FInAT | finat/restricted.py | 1 | 8971 | from functools import singledispatch
from itertools import chain
import FIAT
from FIAT.polynomial_set import mis
import finat
from finat.fiat_elements import FiatElement
from finat.physically_mapped import PhysicallyMappedElement
# Sentinel for when restricted element is empty
null_element = object()
@singledispa... | mit | -7,434,664,180,916,831,000 | 33.442308 | 102 | 0.669793 | false |
quozl/terminal-activity | terminal.py | 1 | 22474 | # Copyright (C) 2007, Eduardo Silva <edsiper@gmail.com>.
# Copyright (C) 2008, One Laptop Per Child
# Copyright (C) 2009, Simon Schampijer
#
# 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-2.0 | -2,182,430,564,190,434,800 | 35.131833 | 81 | 0.577512 | false |
delving/nave | nave/void/migrations/0010_auto_20151111_1409.py | 1 | 5725 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import django.utils.timezone
import django_extensions.db.fields
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_nam... | gpl-2.0 | 6,720,341,373,530,971,000 | 46.31405 | 172 | 0.597205 | false |
google-research/falken | service/learner/brains/brain_cache.py | 1 | 3449 | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | -6,403,035,016,022,707,000 | 37.752809 | 79 | 0.690055 | false |
reiven/pungabot | modules/module_alias.py | 1 | 1945 | # -*- coding: utf-8 -*-
import sys
aliases = {}
def init(config):
dbCursor.execute("SELECT alias, command FROM ALIASES")
for alias, command in dbCursor.fetchall():
config_alias(alias, command)
def config_alias(alias, command):
mod = globals()
aliases[alias] = command
mod['command_' + al... | gpl-3.0 | 6,981,636,021,889,717,000 | 26.8 | 75 | 0.558869 | false |
KasenJ/CommunityPython | code/push/google/protobuf/text_format.py | 1 | 22190 | # Protocol Buffers - Google's data interchange format
# Copyright 2008 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions o... | gpl-2.0 | -4,898,001,095,182,444,000 | 29.027064 | 79 | 0.656242 | false |
ManjusakaSL/Practice | second/sunspots_roto.py | 1 | 1140 | from reportlab.lib import colors
from reportlab.graphics.shapes import *
from reportlab.graphics import renderPDF
data = [
# Year Month Predicted High Low
(2007, 8, 113.2, 114.2, 112.2),
(2007, 9, 112.8, 115.8, 109.8),
(2007, 10, 111.0, 116.0, 106.0),
(2007, 11, 109.8, ... | gpl-3.0 | 2,743,289,408,048,314,400 | 34.625 | 75 | 0.584211 | false |
ratoaq2/deluge | deluge/ui/gtkui/status_tab.py | 1 | 5369 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2008 Andrew Resch <andrewresch@gmail.com>
#
# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with
# the additional special exception to link portions of this program with the OpenSSL library.
# See LICENSE for more details.
#
from _... | gpl-3.0 | -857,093,366,319,036,200 | 41.275591 | 114 | 0.617992 | false |
trilomix/kmappy | blam.py | 1 | 1403 | #!/usr/bin/env python
import wx
from wx import Config
import blam
from blamframe import *
from multiprocessing import freeze_support
class blamapp(wx.App):
def OnInit(self):
## wxConfig *config = new wxConfig(wxT("Karnaugh Map Minimizer"));
##
## wxString lang;
## if ( config->Read(wxT("Language"), &lang) )
##... | mit | -6,739,091,266,916,046,000 | 24.527273 | 100 | 0.622951 | false |
jianwei1216/my-scripts | mytest/argparse/misc.py | 1 | 13565 | #!/usr/bin/python
# -*- conding:UTF-8 -*-
import sys
import os
import ssh
import thread
import time
import argparse
import textwrap
# according ssh get a client for remote exec cmds, close after using
def get_ssh_client(host):
global args
client = ssh.SSHClient()
client.set_missing_host_key_policy(ssh.Aut... | gpl-2.0 | -567,390,826,126,149,950 | 43.768977 | 146 | 0.568891 | false |
Unity-Technologies/ml-agents | ml-agents-envs/mlagents_envs/communicator_objects/agent_info_pb2.py | 1 | 5851 | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mlagents_envs/communicator_objects/agent_info.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from googl... | apache-2.0 | 4,261,256,173,049,420,300 | 46.569106 | 770 | 0.732866 | false |
mupi/tecsaladeaula | accounts/forms.py | 1 | 8712 | # -*- coding: utf-8 -*-
import datetime
import requests
from django.contrib.auth import get_user_model
from django import forms
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
from django.core.mail import send_mail
from django.template.loader import get_template
from django.temp... | agpl-3.0 | 9,010,623,114,994,189,000 | 36.068085 | 170 | 0.593962 | false |
persandstrom/home-assistant | homeassistant/monkey_patch.py | 1 | 2319 | """Monkey patch Python to work around issues causing segfaults.
Under heavy threading operations that schedule calls into
the asyncio event loop, Task objects are created. Due to
a bug in Python, GC may have an issue when switching between
the threads and objects with __del__ (which various components
in HASS have).
... | apache-2.0 | -5,944,090,392,623,569,000 | 30.337838 | 71 | 0.657611 | false |
SteveDiamond/cvxpy | cvxpy/atoms/norm1.py | 2 | 3043 | """
Copyright 2013 Steven Diamond
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... | gpl-3.0 | -3,142,778,377,888,879,000 | 27.439252 | 80 | 0.595465 | false |
HomeRad/TorCleaner | tests/proxy/rfc2616/test_datedwarn.py | 1 | 4112 | # -*- coding: iso-8859-1 -*-
# Copyright (C) 2005-2010 Bastian Kleineidam
"""
"""
import time
from .. import ProxyTest
from wc.http.date import get_date_rfc1123
class test_datedwarn_1old_0cur_0fut(ProxyTest):
def test_datedwarn_1old_0cur_0fut(self):
self.start_test()
def get_response_headers(self, ... | gpl-2.0 | -7,466,143,769,899,152,000 | 28.163121 | 62 | 0.561284 | false |
dreibh/planetlab-lxc-plcapi | PLC/Timestamp.py | 1 | 5841 | #
# Utilities to handle timestamps / durations from/to integers and strings
#
# datetime.{datetime,timedelta} are powerful tools, but these objects are not
# natively marshalled over xmlrpc
#
import time, calendar
import datetime
from PLC.Faults import *
from PLC.Parameter import Parameter, Mixed
# a dummy class mos... | bsd-3-clause | -3,804,732,864,046,200,000 | 34.834356 | 128 | 0.580209 | false |
mitsuhiko/click | src/click/shell_completion.py | 1 | 16736 | import os
import re
from .core import Argument
from .core import MultiCommand
from .core import Option
from .core import ParameterSource
from .parser import split_arg_string
from .utils import echo
def shell_complete(cli, ctx_args, prog_name, complete_var, instruction):
"""Perform shell completion for the given ... | bsd-3-clause | 513,507,486,935,452,400 | 29.935305 | 86 | 0.61048 | false |
edquist/autopyfactory | autopyfactory/plugins/batchsubmit/CondorGRAMBatchSubmitPlugin.py | 1 | 3021 | #!/bin/env python
#
# AutoPyfactory batch plugin for Condor
#
from CondorCEBatchSubmitPlugin import CondorCEBatchSubmitPlugin
from autopyfactory import jsd
class CondorGRAMBatchSubmitPlugin(CondorCEBatchSubmitPlugin):
def __init__(self, apfqueue, config=None):
if not config:
qcl = apfqu... | gpl-3.0 | 525,848,070,490,070,600 | 34.964286 | 106 | 0.576299 | false |
lynxis/tunneldigger-testing | test_nose.py | 1 | 1858 | #!/usr/bin/env python3
import logging
import lxc
import os
import tunneldigger
# random hash
CONTEXT = None
# lxc container
SERVER = None
CLIENT = None
# pids of tunneldigger client and server
SERVER_PID = None
CLIENT_PID = None
LOG = logging.getLogger("test_nose")
def setup_module():
global CONTEXT, SERVER, ... | mit | 3,219,963,839,346,046,500 | 32.781818 | 144 | 0.652853 | false |
captiosus/treadmill | tests/runtime/linux/finish_test.py | 1 | 29795 | """Unit test for treadmill.runtime.linux._finish.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import datetime
import io
import json
import os
import shutil
import tarfile
import tempfile
import time
import uni... | apache-2.0 | -6,719,706,996,681,265,000 | 37.346203 | 79 | 0.510086 | false |
lowandrew/OLCTools | olctools/accessoryFunctions/accessoryFunctions.py | 1 | 43913 | #!/usr/bin/env python3
# noinspection PyProtectedMember
from Bio.Application import _Option, AbstractCommandline, _Switch
from Bio.SeqRecord import SeqRecord
from Bio.Seq import Seq
from Bio import SeqIO
from subprocess import Popen, PIPE, STDOUT
from collections import defaultdict
import subprocess
import datetime
imp... | mit | -7,311,287,848,453,213,000 | 43.401416 | 120 | 0.585339 | false |
mulllhausen/btc-inquisitor | mysql_grunt.py | 1 | 1676 | """module containing some general mysql-related functions"""
import MySQLdb, re
import config_grunt
import email_grunt
import filesystem_grunt
def connect():
"connect and do setup"
global cursor, mysql_db
mysql_params = config_grunt.config_dict["mysql"]
mysql_connection_params = {
"host": mysq... | gpl-2.0 | -2,934,982,580,133,302,000 | 28.928571 | 79 | 0.655131 | false |
breznak/nupic.biodat | ECG/MIT-BIH-Arrhythmia/model/swarm/permutations.py | 1 | 3870 | ECG_MIN = 850
ECG_MAX = 1311
NCOLS = 2048
NCELLS = 4
HZ=360
AHEAD=1
DATA_FILE=u'file://./inputdata.csv'
ITERATIONS=15000 # or -1 for whole dataset #override for swarming
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, ... | gpl-2.0 | -2,569,282,454,392,104,400 | 34.833333 | 156 | 0.659948 | false |
sonictk/MARI-Extension-Pack | Scripts/Tools/View/extPack_screenshot_all_channels.py | 1 | 3102 | # ------------------------------------------------------------------------------
# Screenshot All Channels
# ------------------------------------------------------------------------------
# Will do Screenshots of all Channels and export them based on the path provided
# in Screenshot Settings
# ------------------------... | bsd-3-clause | 2,963,752,662,484,094,000 | 43.314286 | 110 | 0.637653 | false |
jonboiser/kolibri | kolibri/logger/serializers.py | 1 | 5206 | from django.db.models import Sum
from django.utils.timezone import now
from kolibri.auth.models import FacilityUser
from kolibri.core.serializers import KolibriModelSerializer
from kolibri.logger.models import AttemptLog, ContentSessionLog, ContentSummaryLog, ExamAttemptLog, ExamLog, MasteryLog, UserSessionLog
from res... | mit | -7,620,453,246,340,688,000 | 42.383333 | 150 | 0.675951 | false |
jazzband/silk | silk/auth.py | 1 | 1060 | from functools import wraps, WRAPPER_ASSIGNMENTS
from django.contrib.auth.decorators import login_required
from django.core.exceptions import PermissionDenied
from silk.config import SilkyConfig
def login_possibly_required(function=None, **kwargs):
if SilkyConfig().SILKY_AUTHENTICATION:
return login_req... | mit | -6,261,797,809,726,153,000 | 27.648649 | 58 | 0.676415 | false |
team-xue/xue | xue/classes/migrations/0001_initial.py | 1 | 2157 | # encoding: 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 'Major'
db.create_table('classes_major', (
('id', self.gf('django.d... | bsd-3-clause | 6,245,965,156,871,212,000 | 37.944444 | 104 | 0.552156 | false |
DayGitH/Python-Challenges | DailyProgrammer/DP20140709B.py | 1 | 2282 | """
[7/9/2014] Challenge #170 [Intermediate] Rummy Checker
https://www.reddit.com/r/dailyprogrammer/comments/2a9u0a/792014_challenge_170_intermediate_rummy_checker/
# [](#IntermediateIcon) _(Intermediate)_: Rummy Checker
[Rummy](http://en.wikipedia.org/wiki/Rummy) is another very common card game. This time, the aim ... | mit | -8,941,908,886,875,506,000 | 50.863636 | 119 | 0.738387 | false |
olitheolix/qtmacs | qtmacs/auxiliary.py | 1 | 49418 | # Copyright 2012, Oliver Nagy <olitheolix@gmail.com>
#
# This file is part of Qtmacs.
#
# Qtmacs 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... | gpl-3.0 | 1,003,229,690,201,010,400 | 33.924382 | 79 | 0.574649 | false |
ivandeex/dz | inst/hooks/pre_find_module_path/hook-queue.py | 1 | 1230 | # -----------------------------------------------------------------------------
# Copyright (c) 2005-2016, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this ... | mit | -7,272,152,165,413,723,000 | 37.4375 | 79 | 0.637398 | false |
bloodes/python | fixture/address.py | 1 | 9007 |
from model.address import Adress
import re
class Address:
def __init__(self, app):
self.app = app
def create_new_address(self, address):
wd = self.app.wd
# open home page
self.app.open_home_page_address()
# add_new_address
wd.find_element_by_link_text("add ne... | apache-2.0 | 6,659,749,808,211,276,000 | 43.369458 | 194 | 0.608527 | false |
konne88/MediaCMN | filter/options.py | 1 | 3243 | # MediaCMN - Tools to create a consistent music library.
# Copyright (C) 2009 Konstantin Weitz
#
# 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 op... | gpl-3.0 | 8,575,420,399,519,680,000 | 44.041667 | 161 | 0.629356 | false |
mitodl/micromasters | grades/management/commands/complete_course_run_freeze.py | 1 | 2627 | """
Sets the global freeze status for the course run to "complete"
"""
from celery.result import GroupResult
from django.core.cache import caches
from django.core.management import BaseCommand, CommandError
from courses.models import CourseRun
from grades.models import CourseRunGradingStatus
from grades.tasks import C... | bsd-3-clause | 2,715,154,964,011,390,500 | 36 | 102 | 0.598782 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.