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 |
|---|---|---|---|---|---|---|---|---|---|---|
jaeilepp/mne-python | mne/io/egi/tests/test_egi.py | 1 | 4257 | # -*- coding: utf-8 -*-
# Authors: Denis A. Engemann <denis.engemann@gmail.com>
# simplified BSD-3 license
import os.path as op
import warnings
import inspect
import numpy as np
from numpy.testing import assert_array_equal, assert_allclose
from nose.tools import assert_true, assert_raises, assert_equal
fr... | bsd-3-clause | 5,823,865,494,577,063,000 | 35.689655 | 75 | 0.631109 | false |
pklimai/py-junos-eznc | tests/unit/test_rpcmeta.py | 2 | 10679 | import unittest
import os
import re
from nose.plugins.attrib import attr
from jnpr.junos.device import Device
from jnpr.junos.rpcmeta import _RpcMetaExec
from jnpr.junos.facts.swver import version_info
from ncclient.manager import Manager, make_device_handler
from ncclient.transport import SSHSession
from jnpr.junos.e... | apache-2.0 | -2,393,148,167,078,573,600 | 41.88755 | 79 | 0.596404 | false |
havrlant/fca-search | src/tests/common_tests.py | 1 | 2118 | import unittest
import string
from common.list import splitlist
from common.string import sjoin, isletter, strip_accents, remove_nonletters,\
normalize_text, replace_white_spaces, replace_single, replace_dict
class TestString(unittest.TestCase):
def test_sjoin(self):
self.assertEqual('', sjoin([]))
self.assertEq... | bsd-2-clause | 3,779,701,016,056,375,300 | 39.431373 | 105 | 0.655507 | false |
molobrakos/home-assistant | tests/components/mqtt/test_vacuum.py | 1 | 26645 | """The tests for the Mqtt vacuum platform."""
import copy
import json
import pytest
from homeassistant.components import mqtt, vacuum
from homeassistant.components.mqtt import (
CONF_COMMAND_TOPIC, vacuum as mqttvacuum)
from homeassistant.components.mqtt.discovery import async_start
from homeassistant.components.v... | apache-2.0 | -4,801,818,435,601,318,000 | 33.160256 | 76 | 0.645787 | false |
iModels/ffci | github/tests/Issue54.py | 1 | 2363 | # -*- coding: utf-8 -*-
# ########################## Copyrights and license ############################
# #
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
# Copyright 2012 Zearin <zearin@gonk.net> ... | mit | -2,179,763,060,501,457,200 | 59.589744 | 151 | 0.467203 | false |
rickardo10/distributed-db-app | auth.py | 1 | 5815 | # -*- encoding: UTF-8 -*-
#
# Form based authentication for CherryPy. Requires the
# Session tool to be loaded.
#
import cherrypy
SESSION_KEY = '_cp_username'
def check_credentials(username, password):
"""Verifies credentials for username and password.
Returns None on success or a string describing the error... | mit | -520,245,451,711,775,000 | 33.39645 | 92 | 0.551617 | false |
Tepira/binwalk | src/binwalk/modules/disasm.py | 1 | 7773 | import capstone
import binwalk.core.common
import binwalk.core.compat
from binwalk.core.module import Module, Option, Kwarg
class ArchResult(object):
def __init__(self, **kwargs):
for (k,v) in kwargs.iteritems():
setattr(self, k, v)
class Architecture(object):
def __init__(self, **kwargs):... | mit | 5,751,563,290,571,580,000 | 47.58125 | 139 | 0.47755 | false |
drepetto/chiplotle | chiplotle/tools/mathtools/rotate_2d.py | 1 | 1793 | from chiplotle.geometry.core.coordinate import Coordinate
from chiplotle.geometry.core.coordinatearray import CoordinateArray
import math
## TODO: refactor, this is nasty. Take one type only!
def rotate_2d(xy, angle, pivot=(0, 0)):
'''2D rotation.
- `xy` is an (x, y) coordinate pair or a list of coordinate p... | gpl-3.0 | 1,062,780,138,223,611,800 | 28.883333 | 70 | 0.640268 | false |
noironetworks/group-based-policy | gbpservice/neutron/services/grouppolicy/config.py | 1 | 1327 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | apache-2.0 | 2,835,571,922,289,177,000 | 38.029412 | 78 | 0.617935 | false |
kcorring/ds4100-music-analytics | muslytics/ITunesUtils.py | 1 | 12418 | #!/usr/bin/python
'''itunes utility classes'''
from __future__ import absolute_import, print_function
import logging
import re
from muslytics.Utils import strip_featured_artists, AbstractTrack, MULT_ARTIST_PATTERN, UNKNOWN_GENRE
logger = logging.getLogger(__name__)
FEAT_GROUP_PATTERN = re.compile('.*\(feat\.(?P<art... | mit | -7,176,035,233,404,229,000 | 33.590529 | 101 | 0.551216 | false |
cryvate/project-euler | project_euler/solutions/problem_51.py | 1 | 1244 | from collections import Counter
from itertools import combinations
from ..library.number_theory.primes import is_prime, prime_sieve
from ..library.base import list_to_number, number_to_list
def solve() -> int:
primes = prime_sieve(1_000_000)
for prime in primes:
if prime < 100_000:
conti... | mit | -7,224,696,637,784,530,000 | 26.043478 | 67 | 0.534566 | false |
rue89-tech/edx-analytics-pipeline | edx/analytics/tasks/enrollments.py | 1 | 21343 | """Compute metrics related to user enrollments in courses"""
import logging
import datetime
import luigi
import luigi.task
from edx.analytics.tasks.database_imports import ImportAuthUserProfileTask
from edx.analytics.tasks.mapreduce import MapReduceJobTaskMixin, MapReduceJobTask
from edx.analytics.tasks.pathutil imp... | agpl-3.0 | 5,095,965,719,585,446,000 | 37.249104 | 125 | 0.604039 | false |
pricingassistant/mrq | mrq/scheduler.py | 1 | 4982 | from future.builtins import str, object
from .context import log, queue_job
import datetime
import ujson as json
import time
def _hash_task(task):
""" Returns a unique hash for identify a task and its params """
params = task.get("params")
if params:
params = json.dumps(sorted(list(task["params"]... | mit | -3,359,644,480,416,580,600 | 37.620155 | 128 | 0.566439 | false |
caterinaurban/Typpete | typpete/src/stubs/str_methods.py | 1 | 3955 | """Stub file for methods invoked on strings
TODO make some arguments optional
"""
from typing import List
def capitalize(s: str) -> str:
"""Return a new string with the first letter capitalized"""
pass
def center(s: str, width: int, fillchar: str) -> str:
"""Returns a space-padded string with the origi... | mpl-2.0 | 1,939,009,342,000,427,000 | 26.089041 | 120 | 0.650063 | false |
memsharded/conan | conans/test/unittests/search/disk_search_test.py | 1 | 3782 | import os
import unittest
from conans.client.cache.cache import ClientCache
from conans.client.tools import chdir
from conans.model.info import ConanInfo
from conans.model.ref import ConanFileReference
from conans.paths import (BUILD_FOLDER, CONANINFO, EXPORT_FOLDER, PACKAGES_FOLDER)
from conans.search.search import s... | mit | 2,705,337,590,404,923,000 | 44.02381 | 90 | 0.56716 | false |
ssundaresan/sculpte-simulator | flow.py | 1 | 5360 | import sys
import os
import random as rnd
import numpy as np
from numpy import random as rv
import route
import gen
import heapq
class flowgen(object):
'''
Flow generator class. Instantiates objects inside
- for flow arrival, size of flow and throughput assignment.
'''
def __init__(self,fptr,tm):
self.... | gpl-2.0 | 733,251,263,083,629,700 | 27.062827 | 101 | 0.613246 | false |
zakdoek/django-simple-resizer | simple_resizer/_version.py | 1 | 7478 |
# This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
# feature). Distribution tarballs (built by setup.py sdist) and build
# directories (produced by setup.py build) will contain a much shorter file
# that just contains t... | mit | 5,310,793,679,333,728,000 | 38.151832 | 77 | 0.600294 | false |
psiwczak/openstack | nova/virt/xenapi/volume_utils.py | 1 | 15660 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2010 Citrix Systems, 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/LICE... | apache-2.0 | -3,156,615,544,868,631,600 | 36.917676 | 79 | 0.532439 | false |
davidwilson-85/easymap | graphic_output/Pillow-4.2.1/Tests/test_file_sgi.py | 1 | 1819 | from helper import unittest, PillowTestCase, hopper
from PIL import Image, SgiImagePlugin
class TestFileSgi(PillowTestCase):
def test_rgb(self):
# Created with ImageMagick then renamed:
# convert hopper.ppm -compress None sgi:hopper.rgb
test_file = "Tests/images/hopper.rgb"
im =... | gpl-3.0 | 5,612,795,171,406,577,000 | 29.316667 | 75 | 0.606377 | false |
ruler501/acrTestingScripts | autorun.py | 1 | 2366 | import sys
import threading
import psutil
if sys.platform.startswith('win32'):
from winpexpect import EOF, TIMEOUT
from winpexpect import winspawn as spawn
else:
from pexpect import EOF, TIMEOUT
from pexpect import spawn
class PlatformError(Exception):
def __init__(self, platform):
self.platform =... | lgpl-3.0 | 8,905,766,464,803,754,000 | 21.445545 | 77 | 0.633559 | false |
tradel/AppDynamicsREST | docs/conf.py | 1 | 8506 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# AppDynamicsREST documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in th... | apache-2.0 | 7,371,730,204,130,473,000 | 29.930909 | 76 | 0.70656 | false |
JulyKikuAkita/PythonPrac | cs15211/BuddyStrings.py | 1 | 3894 | __source__ = 'https://leetcode.com/problems/buddy-strings/'
# Time: O(N) where NN is the length of A and B
# Space: O(1)
#
# Description: Leetcode # 859. Buddy Strings
#
# Given two strings A and B of lowercase letters,
# return true if and only if we can swap two letters in A so that the result equals B.
#
# Example ... | apache-2.0 | 4,949,498,763,733,287,000 | 26.041667 | 112 | 0.466102 | false |
kikusu/chainer | chainer/training/trainer.py | 1 | 12389 | import collections
import os
import six
from chainer import reporter as reporter_module
from chainer.training import extension as extension_module
from chainer.training import trigger as trigger_module
class _ExtensionEntry(object):
def __init__(self, extension, priority, trigger, invoke_before_training):
... | mit | -1,369,714,694,533,946,600 | 41.868512 | 79 | 0.650658 | false |
lmazuel/azure-sdk-for-python | azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/virtual_network_gateway_connection_list_entity.py | 1 | 7733 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | -2,750,844,050,204,453,400 | 49.875 | 133 | 0.669856 | false |
electrumalt/electrum-ixc | gui/qt/seed_dialog.py | 1 | 3876 | #!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2013 ecdsa@github
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your... | gpl-3.0 | -2,751,131,014,483,622,400 | 32.128205 | 160 | 0.646027 | false |
danic85/time-capsule | src/file-browser.py | 1 | 1530 | import os, time, datetime, sys
from PIL import Image
path = '../test_files'
def get_minimum_creation_time(exif_data):
mtime = '?'
if 306 in exif_data and exif_data[306] < mtime: # 306 = DateTime
mtime = exif_data[306]
if 36867 in exif_data and exif_data[36867] < mtime: # 36867 = DateTimeOriginal
... | gpl-3.0 | 6,660,376,120,331,384,000 | 39.263158 | 111 | 0.554902 | false |
mharnold/spiderosm | spiderosm/cannames.py | 1 | 14317 | '''
Canonical street names!
(To allow name matching between OSM and Portland City DB.)
'''
import re
import string
import pylev
# ratio of edit distance between strings to string length (= max number of edits possible)
def levenshtein_ratio(s1, s2):
assert len(s1) > 0 and len(s2) > 0
return pylev.levenshtein(... | mit | 799,062,922,037,463,200 | 24.611807 | 104 | 0.450444 | false |
WildflowerSchools/sensei | app/models/radio_observation.py | 1 | 1982 | import dateutil.parser
from shared import *
from sqlalchemy.dialects.postgresql import insert
import pytz
# Raw radio observation
class RadioObservation(db.Model):
classroom_id = db.Column(db.Integer, nullable=False, primary_key=True)
observed_at = db.Column(db.DateTime, nullable=False, primary_key=True)
r... | mit | 8,456,761,787,901,686,000 | 37.862745 | 119 | 0.671039 | false |
davy39/eric | UI/Previewer.py | 1 | 6911 | # -*- coding: utf-8 -*-
# Copyright (c) 2013 - 2014 Detlev Offenbach <detlev@die-offenbachs.de>
#
"""
Module implementing a previewer widget for HTML, Markdown and ReST files.
"""
from __future__ import unicode_literals
import os
from PyQt5.QtCore import QTimer
from PyQt5.QtWidgets import QStackedWidget
import Pr... | gpl-3.0 | 5,330,980,444,563,860,000 | 33.044335 | 79 | 0.561134 | false |
iuyte/VEX-709S-2018 | .ycm_extra_conf.py | 1 | 6322 | # This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
#
# Here's the license text for this file:
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either... | lgpl-3.0 | -1,320,671,473,060,579,300 | 33.358696 | 80 | 0.704524 | false |
luciddg/auth-tool | lib/plugin/token.py | 1 | 2084 | # -*- coding: utf-8 -*-
import hmac
import hashlib
import math
import time
from cherrypy.process import plugins
__all__ = ['TokenEnginePlugin']
class TokenEnginePlugin(plugins.SimplePlugin):
"""
Generates and verifies RFC-6238-compliant time-based one-time passwords.
Uses the SHA256 digest algorithm an... | mit | -6,591,820,149,578,088,000 | 33.163934 | 88 | 0.605086 | false |
yoosw/printrun_etri | printrun/gui/__init__.py | 1 | 23864 | # This file is part of the Printrun suite.
#
# Printrun 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.
#
# Printrun is distributed in ... | gpl-3.0 | 7,687,569,514,560,247,000 | 45.428016 | 105 | 0.616661 | false |
mdovgialo/steam-vr-wheel | steam_vr_wheel/pyvjoy/vjoydevice.py | 1 | 1698 |
from .constants import *
from .exceptions import *
import steam_vr_wheel.pyvjoy._sdk as _sdk
class VJoyDevice(object):
"""Object-oriented API for a vJoy Device"""
def __init__(self,rID=None, data=None):
"""Constructor"""
self.rID=rID
self._sdk= _sdk
self._vj=self._sdk._vj
if data:
... | mit | 6,191,126,794,867,331,000 | 21.915493 | 86 | 0.651355 | false |
gaursagar/cclib | src/cclib/bridge/cclib2pyquante.py | 1 | 1092 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2017, the cclib development team
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
"""Bridge for using cclib data in PyQuante (http://pyquante.sourceforge.net)."""
from __future__ import print_fu... | bsd-3-clause | 6,025,143,119,796,706,000 | 26 | 80 | 0.605311 | false |
charlyoleg/Cnc25D | cnc25d/gearbar.py | 1 | 18085 | # gearbar.py
# generates gearbar and simulates gear.
# created by charlyoleg on 2013/09/26
#
# (C) Copyright 2013 charlyoleg
#
# This file is part of the Cnc25D Python package.
#
# Cnc25D is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# th... | gpl-3.0 | -7,602,001,885,677,611,000 | 47.226667 | 257 | 0.612331 | false |
codasus/django-blogages | blogages/apps/blogages_core/views.py | 1 | 4123 | from django.core.urlresolvers import reverse
from django.shortcuts import get_object_or_404, render_to_response
from django.utils.functional import memoize
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import TemplateView, ListView as BaseListView
from bootstrap.views import (ListView,... | mit | -6,779,982,531,179,955,000 | 20.252577 | 73 | 0.615571 | false |
Akagi201/learning-python | grpc/helloworld/helloworld_pb2.py | 1 | 7591 | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: helloworld.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.p... | mit | -6,584,075,133,206,770,000 | 36.579208 | 330 | 0.75168 | false |
ericblau/ipf-xsede | ipf/glue2/sge.py | 1 | 26848 |
###############################################################################
# Copyright 2011-2014 The University of Texas at Austin #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #... | apache-2.0 | 903,594,117,533,543,200 | 37.190612 | 119 | 0.507561 | false |
HyperloopTeam/FullOpenMDAO | lib/python2.7/site-packages/openmdao.util-0.13.0-py2.7.egg/openmdao/util/publickey.py | 1 | 18058 | """
Support for generation, use, and storage of public/private key pairs.
The :func:`pk_encrypt`, :func:`pk_decrypt`, :func:`pk_sign`, and
:func:`pk_verify` functions provide a thin interface over
:class:`Crypto.PublicKey.RSA` methods for easier use and to work around some
issues found with some keys read from ssh ``id... | gpl-2.0 | -3,420,703,646,388,508,700 | 32.627561 | 85 | 0.553605 | false |
tkzeng/molecular-design-toolkit | moldesign/molecules/bonds.py | 1 | 3249 | # Copyright 2016 Autodesk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | apache-2.0 | -4,082,709,779,512,366,600 | 32.163265 | 100 | 0.597722 | false |
hrautila/go.opt | tests/py/testsocp.py | 1 | 1173 | #
# This is copied from CVXOPT examples and modified to be used as test reference
# for corresponding Go program.
#
from cvxopt import matrix, solvers
import helpers
def testsocp(opts):
c = matrix([-2., 1., 5.])
G = [matrix( [[12., 13., 12.],
[ 6., -3., -12.],
[-5.,... | lgpl-3.0 | 7,953,548,372,512,293,000 | 28.325 | 79 | 0.381074 | false |
niklasf/syzygy-tables.info | syzygy_tables_info/model.py | 1 | 3448 | # This file is part of the syzygy-tables.info tablebase probing website.
# Copyright (C) 2015-2020 Niklas Fiekas <niklas.fiekas@backscattering.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Fo... | agpl-3.0 | -7,992,721,278,212,646,000 | 23.985507 | 77 | 0.640371 | false |
tobley/wns | travis_pypi_setup.py | 1 | 3730 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Update encrypted deploy password in Travis config file
"""
from __future__ import print_function
import base64
import json
import os
from getpass import getpass
import yaml
from cryptography.hazmat.primitives.serialization import load_pem_public_key
from cryptography.h... | isc | -6,185,207,757,664,905,000 | 29.57377 | 79 | 0.67882 | false |
undertherain/vsmlib | vsmlib/corpus/corpus.py | 1 | 2196 | import numpy as np
import fnmatch
import os
import re
from vsmlib.misc.data import detect_archive_format_and_open
import logging
logger = logging.getLogger(__name__)
_default_tokenizer_patter = r"[\w\-']+|[.,!?…]"
class LineTokenizer:
def __init__(self, re_pattern=_default_tokenizer_patter):
self.re_to... | apache-2.0 | -2,976,931,912,692,841,500 | 27.467532 | 100 | 0.599909 | false |
stjj89/iop | idapython/reentrant_int_scanner.py | 1 | 4386 | # Copyright (c) <2013-2014>, <Samuel J. Tan (samueltan@gmail.com)>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# no... | bsd-3-clause | 7,073,669,339,903,740,000 | 39.62037 | 81 | 0.680575 | false |
nexdatas/tools | test/NXSCreatePyEvalH5Cpp_test.py | 1 | 85203 | #!/usr/bin/env python
# This file is part of nexdatas - Tango Server for NeXus data writer
#
# Copyright (C) 2012-2018 DESY, Jan Kotanski <jkotan@mail.desy.de>
#
# nexdatas is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the ... | gpl-3.0 | 1,060,320,455,034,014,500 | 32.399843 | 78 | 0.494889 | false |
jensengroup/propka-3.1 | tests/test_streamio.py | 1 | 3842 | """Tests for PROPKA stream io"""
import logging
from pathlib import Path
from io import StringIO
import pytest
from propka.parameters import Parameters
from propka.molecular_container import MolecularContainer
from propka.input import read_parameter_file, read_molecule_file
from propka.lib import loadOptions
from .tes... | lgpl-2.1 | -4,513,366,478,416,855,000 | 31.016667 | 77 | 0.654867 | false |
twilsonco/CPGobbler | kf.py | 1 | 12472 | #!/usr/bin/env python
# kf.py - Implementation of a Python interface to read and write KF files.
# This is an implementation that uses the KF utilities to do the actual work,
# so you need a working ADF installation.
#
# Copyright (C) 2006-2008 by Scientific Computing and Modelling NV.
# For support, c... | gpl-3.0 | -7,293,515,207,852,422,000 | 29.947891 | 130 | 0.563262 | false |
WojciechFocus/MMVD | tests/test_map_utilities.py | 1 | 1310 | # coding: utf-8
import pytest
from mmvdApp.utils import products, distances
from mmvdApp.shortest_path import a_star, neighbors
@pytest.mark.utils
@pytest.mark.map
def test_drop_zone(drop_zone1):
"""
Test if correct coordinates are returned for the drop zone in
warehouse_map1.
:param fixture drop_zo... | mit | -2,047,237,793,060,411,400 | 28.772727 | 79 | 0.648092 | false |
Yubico/yubikey-manager | tests/device/conftest.py | 1 | 2960 | from ykman.device import connect_to_device, list_all_devices, read_info
from ykman.pcsc import list_devices
from yubikit.core import TRANSPORT
from yubikit.core.otp import OtpConnection
from yubikit.core.fido import FidoConnection
from yubikit.core.smartcard import SmartCardConnection
from yubikit.management import USB... | bsd-2-clause | -3,838,959,158,811,504,000 | 27.737864 | 85 | 0.688514 | false |
Virako/authapi | authapi/captcha/tests.py | 1 | 8039 | import json
import os
from django.conf import settings
from django.contrib.auth.models import User
from django.test import TestCase
from django.test.utils import override_settings
from api import test_data
from api.models import ACL, AuthEvent
from api.tests import JClient
from authmethods.models import Code
from capt... | agpl-3.0 | -3,188,728,119,229,030,000 | 38.995025 | 100 | 0.627068 | false |
cbclab/MDT | mdt/lib/components.py | 1 | 14160 | import logging
from importlib.machinery import SourceFileLoader
import inspect
import os
from collections import defaultdict
from contextlib import contextmanager
import mdt
import mot
from mdt.configuration import get_config_dir
from mdt.model_building.signal_noise_models import SignalNoiseModel
from mot.library_funct... | lgpl-3.0 | -8,575,096,950,904,545,000 | 35.875 | 120 | 0.652825 | false |
smallyear/linuxLearn | salt/salt/modules/bigip.py | 1 | 69568 | # -*- coding: utf-8 -*-
'''
An execution module which can manipulate an f5 bigip via iControl REST
:maturity: develop
:platform: f5_bigip_11.6
'''
# Import python libs
from __future__ import absolute_import
import json
import logging as logger
# Import third party libs
try:
import requests
i... | apache-2.0 | -8,488,454,476,757,734,000 | 30.606997 | 171 | 0.599868 | false |
adamwg/volsched | sched/widgets.py | 1 | 3356 | from django.conf import settings
from django import newforms as forms
from datetime import datetime, time, date
from time import strptime
# DATETIMEWIDGET
calbtn = u"""
<script type="text/javascript">
Calendar.setup({
inputField : "%s",
ifFormat : "%s",
button ... | mit | 6,869,950,413,701,784,000 | 31.89899 | 78 | 0.52354 | false |
kclauw/Dueling_Network_Architectures | dqn/environment.py | 1 | 2430 | import gym
import random
import numpy as np
from .utils import rgb2gray, imresize
class Environment(object):
def __init__(self, config):
self.env = gym.make(config.env_name)
screen_width, screen_height, self.action_repeat, self.random_start = \
config.screen_width, config.screen_height, config.acti... | mit | 7,672,472,965,225,016,000 | 22.823529 | 95 | 0.661317 | false |
openai/baselines | baselines/common/mpi_running_mean_std.py | 1 | 3706 | try:
from mpi4py import MPI
except ImportError:
MPI = None
import tensorflow as tf, baselines.common.tf_util as U, numpy as np
class RunningMeanStd(object):
# https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Parallel_algorithm
def __init__(self, epsilon=1e-2, shape=()):
self.... | mit | 398,189,376,616,498,800 | 32.089286 | 126 | 0.585267 | false |
asidev/aybu-manager | aybu/manager/rest/__init__.py | 1 | 3955 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright 2010-2012 Asidev s.r.l.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required b... | apache-2.0 | -4,991,003,814,975,010,000 | 41.526882 | 76 | 0.687737 | false |
edt-devel/rss2maildir | rss2maildir.py | 1 | 12421 | #!/usr/bin/env python3
"""This script downloads rss feeds and stores them in a maildir"""
# Copyright(C) 2015 Edgar Thier
#
# 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 t... | gpl-3.0 | 4,040,953,493,592,904,700 | 28.644391 | 109 | 0.555108 | false |
ucsd-ccbb/jupyter-genomics | src/microbiome/test/test_exec_bowtie.py | 1 | 19830 | """ Module to test exec_bowtie member methods.
This module contains unit tests for exec_bowtie.py.
"""
import os
import unittest
import shutil
from src import exec_bowtie
__author__ = "YiDing Fang"
__maintainer__ = "YiDing Fang"
__email__ = "yif017@eng.ucsd.edu"
__status__ = "prototype"
# input file contents. F... | mit | 7,927,828,480,292,370,000 | 43.561798 | 150 | 0.61059 | false |
EmanueleCannizzaro/scons | test/scons-time/time/which.py | 1 | 2703 | #!/usr/bin/env python
#
# Copyright (c) 2001 - 2016 The SCons Foundation
#
# 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 us... | mit | 2,549,145,243,392,067,600 | 29.033333 | 103 | 0.702923 | false |
abrt/faf | src/pyfaf/actions/cleanup_unassigned.py | 1 | 3252 | # Copyright (C) 2016 ABRT Team
# Copyright (C) 2016 Red Hat, Inc.
#
# This file is part of faf.
#
# faf 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) ... | gpl-3.0 | 9,110,247,321,125,495,000 | 49.8125 | 115 | 0.622386 | false |
rfgil/MusicBooker | Music.py | 1 | 8811 | # coding=utf-8
import math
import i18n
_ = i18n.language.gettext
CHORUS_INDENTIFIER = '{CHORUS}'
ORDER_INDENTIFIER = '{ORDER}'
COMMENT_INDENTIFIER = '//'
class Music():
chorus = ''
chorus_chords = ''
verse = []
verse_chords = []
has_chorus = False
verses_before_chorus = 0
start_with_... | mit | 4,465,159,835,561,525,000 | 31.393382 | 140 | 0.515379 | false |
aethaniel/project_generator | project_generator/settings.py | 1 | 2243 | # Copyright 2014 0xc0170
#
# 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, soft... | apache-2.0 | 5,895,296,711,283,450,000 | 32.477612 | 83 | 0.60856 | false |
teleological/camxes-py | transformers/raw.py | 1 | 1215 |
# pylint: disable=I0011, C0111, too-few-public-methods, no-self-use
from collections import OrderedDict
from parsimonious.nodes import NodeVisitor
KEY_ORDER = {
"name" : 1,
"type" : 2,
"description" : 3,
"text" : 4,
"pos" : 5,
"chi... | mit | 4,783,790,687,242,463,000 | 23.795918 | 74 | 0.618107 | false |
kingmotley/SickRage | sickbeard/providers/__init__.py | 1 | 3649 | # coding=utf-8
# Author: Nic Wolfe <nic@wolfeden.ca>
#
# URL: https://sickrage.github.io
#
# This file is part of SickRage.
#
# SickRage 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 ... | gpl-3.0 | 8,506,098,761,667,267,000 | 38.663043 | 158 | 0.701836 | false |
gantsign/ansible-role-java | molecule/java-max-lts/tests/test_role.py | 1 | 1422 | import pytest
import re
def test_java(host):
cmd = host.run('. /etc/profile && java -version')
assert cmd.rc == 0
m = re.search('(?:java|openjdk) version "([0-9]+)', cmd.stderr)
assert m is not None
java_version = m.group(1)
assert '11' == java_version
def test_javac(host):
cmd = host.ru... | mit | -5,728,289,684,498,019,000 | 26.882353 | 78 | 0.587904 | false |
debsankha/bedtime-programming | ls222/visual-lv.py | 1 | 3375 | from math import *
import thread
import random
import time
import visual
cat_catch_rate=5*10**-4 #parameter
cat_efficiency=0.8 #parameter
a=0.2 #will ge... | gpl-3.0 | -2,549,225,903,359,082,500 | 22.767606 | 93 | 0.589926 | false |
ScaDS/ORC-Schlange | ORCSchlange/command/db.py | 1 | 3559 | """The db commands."""
import sys
from ORCSchlange.command import BaseCommand, really
def check_date(d):
"""Check if a string is a valide date of the form "YYYY-MM-DD".
:param d: The date string that is checked.
:return: True if it is a not valid date string.
"""
if len(d) != 10:
retu... | apache-2.0 | 6,756,867,353,874,134,000 | 34.949495 | 110 | 0.549593 | false |
kg-bot/SupyBot | plugins/Trivia/test.py | 1 | 1915 | ###
# Copyright (c) 2011, Valentin Lorentz
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditi... | gpl-3.0 | -5,680,964,784,045,308,000 | 44.595238 | 79 | 0.754047 | false |
egabancho/invenio | invenio/legacy/refextract/linker.py | 1 | 3721 | # -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2014 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 ... | gpl-2.0 | -1,354,909,630,057,597,700 | 31.929204 | 83 | 0.6853 | false |
JamesMura/sentry | src/sentry/models/dsymfile.py | 1 | 18884 | """
sentry.models.dsymfile
~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2016 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
import os
import shutil
import hashlib
import six
import tempfile
from requests.exceptions import Reque... | bsd-3-clause | -7,839,869,893,866,971,000 | 31.115646 | 81 | 0.522665 | false |
bitcraft/PyTMX | pytmx/__init__.py | 1 | 1082 | # -*- coding: utf-8 -*-
"""
Copyright (C) 2012-2017, Leif Theden <leif.theden@gmail.com>
This file is part of pytmx.
pytmx 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, ... | lgpl-3.0 | -2,368,980,745,109,895,000 | 30.823529 | 70 | 0.738447 | false |
jeffdasilva/stattrack | db/player/strings.py | 1 | 4472 | import unittest
class PlayerStrings(object):
Name = 'name'
Position = 'position'
Team = 'team'
FantasyOwner = 'owner'
Link = 'link'
Stats = 'stats'
GamesPlayed = 'GamesPlayed'
ProjectedPrefix = 'Projected'
def __init__(self, prefix=None):
if prefix is None:
se... | gpl-2.0 | -5,347,471,142,852,814,000 | 27.851613 | 78 | 0.646914 | false |
wasade/qiime | qiime/denoiser/cluster_utils.py | 1 | 9533 | #!/usr/bin/env python
"""Some utility functions for operating on a cluster or MP machine."""
__author__ = "Jens Reeder"
__copyright__ = "Copyright 2011, The QIIME Project"
# remember to add yourself if you make changes
__credits__ = ["Jens Reeder", "Rob Knight", "Nigel Cook", "Jai Ram Rideout"]
__license__ = "GPL"
__... | gpl-2.0 | -7,727,598,948,369,108,000 | 31.097643 | 86 | 0.628973 | false |
sterlingbaldwin/acme_workbench | workbench-backend/workbench/urls.py | 1 | 1920 | """workbench URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | bsd-2-clause | 5,277,792,416,190,892,000 | 52.333333 | 126 | 0.697917 | false |
MediaKraken/MediaKraken_Deployment | source/common/common_libblueray.py | 1 | 1325 | """
Copyright (C) 2017 Quinn D Granfor <spootdev@gmail.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
... | gpl-3.0 | 7,579,042,944,956,495,000 | 34.810811 | 71 | 0.689811 | false |
zepto/musio | musio/mp4v2/_mp4v2_wrapper.py | 1 | 10422 | #!/usr/bin/env python
# vim: sw=4:ts=4:sts=4:fdm=indent:fdl=0:
# -*- coding: UTF8 -*-
#
# mp4v2 object oriented wrapper module.
# Copyright (C) 2010 Josiah Gordon <josiahg@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 publi... | gpl-3.0 | -7,562,934,594,480,114,000 | 25.055 | 86 | 0.549799 | false |
danlrobertson/servo | components/script/dom/bindings/codegen/CodegenRust.py | 1 | 301911 | # 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 https://mozilla.org/MPL/2.0/.
# Common codegen classes.
from collections import defaultdict
from itertools import groupby
import operator
import os... | mpl-2.0 | -5,493,334,693,082,271,000 | 39.089098 | 120 | 0.572016 | false |
smartjump/backend | src/get_bus_data.py | 1 | 1725 | #!/usr/bin/env python3
#****************************************************************************#
# Project: Smart Jump #
# Author: Alfonso Bilbao Velez <alfon.linux@gmail.com> #
# Developed: Hackatinho Mobilidade Sostible ... | agpl-3.0 | -5,277,078,975,249,307,000 | 32.173077 | 96 | 0.537391 | false |
thnkloud9/Tandem | server/scripts/clean_orphaned_objects.py | 1 | 1406 | from pymongo import MongoClient
from bson.objectid import ObjectId
client = MongoClient('localhost', 27017)
db = client['tandem']
audios = db['audio']
users = db['users']
files = db['fs.files']
chunks = db['fs.chunks']
practice_sets = db['practice_sets']
practice_sessions = db['practice_sessions']
# remove practice... | gpl-2.0 | -5,276,407,539,512,718,000 | 36 | 85 | 0.672119 | false |
dwsilk/qgis-geosaurus-plugin | geosaurus/functions/processing/offsetcurve.py | 1 | 3600 | # -*- coding: utf-8 -*-
import re
from ...core import database as db
from ..enums import (
ReturnType, SpatialFunctionGroup, SpatialType)
from ..template import AbstractSpatialFunction
class OffsetCurve(AbstractSpatialFunction):
"""
ST_OffsetCurve
"""
def __init__(self, distance=0, quad_segs=8,... | bsd-3-clause | 2,769,592,511,752,946,700 | 26.692308 | 84 | 0.570556 | false |
irblsensitivity/irblsensitivity | scripts/translation/firstry.py | 1 | 18562 | #-*- coding: utf-8 -*-
'''
Created on 2017. 11. 06
Updated on 2017. 11. 06
'''
from __future__ import print_function
import os
import cgi
import re
import time
import codecs
import sys
import subprocess
import math
import dateutil.parser
from datetime import datetime
from commons import Subjects
from x... | apache-2.0 | -5,727,787,458,004,348,000 | 30.300885 | 113 | 0.602521 | false |
koddas/python-backend | src/test.py | 1 | 1313 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from unicorns import storage
from unicorns.Unicorn import Unicorn
storage.setup()
unicorns = storage.fetch_unicorns()
for unicorn in unicorns:
print(str(unicorn.id) + ': ' + unicorn.name)
print("")
unicorn = storage.fetch_unicorn(3)
print(str(unicorn.id) + ': ' + u... | mit | 5,953,038,980,278,517,000 | 28.044444 | 87 | 0.727621 | false |
huggingface/pytorch-transformers | src/transformers/utils/versions.py | 1 | 4611 | # Copyright 2020 The HuggingFace Team. 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 applicabl... | apache-2.0 | 5,593,534,099,608,531,000 | 35.595238 | 139 | 0.641076 | false |
wheever/AFProxy | PageFilter.py | 1 | 1740 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
import logging
from Exceptions import *
from ListFile import parse_line_to_regex, ListFiles
from colorama import init, Fore, Back, Style
init(autoreset=True)
logger = logging.getLogger('__main__')
# Class method action() will be passed with the http request o... | mit | 2,177,060,904,539,524,900 | 26.619048 | 106 | 0.568966 | false |
Spicyharambe/spni.github.io | opponents/make_images.py | 1 | 6566 | import os
import os.path
import sys
import time
import PIL.Image
setup_string_33 = "33***bc185.500.0.0.1_ga0*0*0*0*0*0*0*0*0#/]ua1.0.0.0_ub_uc7.0.30_ud7.0"
setup_string_36 = "36***bc185.500.0.0.1_ga0*0*0*0*0*0*0*0*0#/]a00_b00_c00_d00_w00_x00_y00_z00_ua1.0.0.0_ub_u0_v0_uc7.0.30_ud7.0"
#create error if not exist (not ... | mit | -2,295,183,526,946,184,700 | 33.197917 | 143 | 0.699665 | false |
aeklant/scipy | scipy/special/_logsumexp.py | 1 | 7948 | import numpy as np
from scipy._lib._util import _asarray_validated
__all__ = ["logsumexp", "softmax", "log_softmax"]
def logsumexp(a, axis=None, b=None, keepdims=False, return_sign=False):
"""Compute the log of the sum of exponentials of input elements.
Parameters
----------
a : array_like
I... | bsd-3-clause | 563,463,092,393,215,360 | 27.284698 | 94 | 0.569703 | false |
dongweiming/flask_reveal | social/backends/twilio.py | 1 | 1310 | """
Twilio support
"""
from re import sub
from social.p3 import urlencode
from social.backends.base import BaseAuth
class TwilioAuth(BaseAuth):
name = 'twilio'
ID_KEY = 'AccountSid'
def get_user_details(self, response):
"""Return twilio details, Twilio only provides AccountSID as
paramet... | bsd-3-clause | -2,718,034,480,383,495,700 | 33.473684 | 72 | 0.608397 | false |
izzygomez/cocoon | crypto/suffix_tree/suffix_tree.py | 1 | 6904 |
import _suffix_tree
def postOrderNodes(node):
'''Iterator through all nodes in the sub-tree rooted in node in
post-order.'''
def dfs(n):
c = n.firstChild
while c is not None:
for m in dfs(c):
yield m
c = c.next
yield n
for n in dfs(node):... | mit | -7,611,050,744,386,213,000 | 29.280702 | 78 | 0.573436 | false |
ziir/gandi.cli | gandi/cli/tests/fixtures/_hosting.py | 1 | 49432 | try:
# python3
from xmlrpc.client import DateTime
except ImportError:
# python2
from xmlrpclib import DateTime
def image_list(options):
ret = [{'author_id': 248842,
'datacenter_id': 3,
'date_created': DateTime('20130902T15:04:18'),
'date_updated': DateTime('201... | gpl-3.0 | 7,552,381,204,867,538,000 | 37.770196 | 79 | 0.418615 | false |
bdang2012/taiga-back-casting | taiga/base/utils/signals.py | 1 | 1646 | # Copyright (C) 2014-2015 Andrey Antukh <niwi@niwi.be>
# Copyright (C) 2014-2015 Jesús Espino <jespinog@gmail.com>
# Copyright (C) 2014-2015 David Barragán <bameda@dbarragan.com>
# Copyright (C) 2014-2015 Anler Hernández <hello@anler.me>
# This program is free software: you can redistribute it and/or modify
# it under ... | agpl-3.0 | -3,682,081,195,025,817,000 | 40.075 | 100 | 0.718198 | false |
uwosh/UWOshCommitteeOnCommittees | content/College.py | 1 | 3093 | # -*- coding: utf-8 -*-
#
# File: College.py
#
# Copyright (c) 2007 by []
# Generator: ArchGenXML Version 1.5.2
# http://plone.org/products/archgenxml
#
# GNU General Public License (GPL)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public L... | gpl-2.0 | -2,778,841,790,504,699,400 | 28.740385 | 110 | 0.703201 | false |
codeforamerica/epa_python | setup.py | 1 | 6118 | #!/usr/bin/env python
"""
Author: Zach Williams, <zach AT codeforamerica DOT org>
Copyright (c) 2011, Code for America. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code mu... | bsd-3-clause | 2,698,151,976,244,429,000 | 31.716578 | 98 | 0.649886 | false |
progrium/growl | external_dependencies/simple-mailer.py | 1 | 2584 | #!/usr/bin/env python
# Usage: simple-mailer [--[no-]tls] username[:password]@server[:port] from to subject
import optparse
parser = optparse.OptionParser(usage='%prog [options] username[:password]@server[:port] from to subject', description='Sends an email message, reading the password (unless specified on the comma... | bsd-3-clause | -2,278,448,834,802,627,600 | 40.677419 | 478 | 0.7113 | false |
benoitbryon/xal | setup.py | 1 | 2352 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Python packaging."""
import os
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class Tox(TestCommand):
"""Test command that runs tox."""
def finalize_options(self):
TestCommand.finalize_options(self)
... | bsd-3-clause | 2,497,441,404,691,888,600 | 25.122222 | 76 | 0.626542 | false |
igabriel85/dmon-adp | adpengine/multiprocRun.py | 1 | 1604 | import multiprocessing
import time
def test(times, processID):
print "Starting engine Point process %s" % processID
time.sleep(times)
print "Exit process %s" % processID
class AdpPointProcess():
def __init__(self, engine, processID):
self.processID = processID
self.engine = engine
... | apache-2.0 | 5,352,694,270,071,325,000 | 25.295082 | 76 | 0.668329 | false |
ABoothInTheWild/baseball-research | NBA/NBA_17/nba2017SeasonResults.py | 1 | 2218 | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 07 14:28:16 2018
@author: Alexander
"""
# -*- coding: utf-8 -*-
"""
Created on Fri Jul 27 15:01:09 2018
@author: abooth
"""
from xmlstats import xmlstats
import numpy as np
import pandas as pd
access_token = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... | gpl-3.0 | -4,958,257,404,184,953,000 | 32.65625 | 113 | 0.70514 | false |
googleapis/python-aiplatform | google/cloud/aiplatform_v1/services/job_service/transports/grpc_asyncio.py | 1 | 39034 | # -*- 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 | -1,837,601,772,241,525,000 | 43.256236 | 113 | 0.63624 | false |
tylertian/Openstack | openstack F/glance/glance/api/common.py | 1 | 2790 | # Copyright 2012 OpenStack LLC.
# 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 b... | apache-2.0 | 1,705,684,498,955,211,800 | 33.875 | 78 | 0.613978 | false |
apir8181/DLINE | Applications/GE/example/python_script/most_popular_flickr.py | 1 | 1164 |
import sys
from collections import defaultdict
if __name__ == "__main__":
in_path = sys.argv[1]
out_path = sys.argv[2]
group_count = defaultdict(int)
with open(in_path) as in_file:
for line in in_file:
args = line.strip().split()
for arg in args[1:]:
gro... | mit | -2,886,187,570,378,482,000 | 32.257143 | 68 | 0.499141 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.