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 |
|---|---|---|---|---|---|---|---|---|---|---|
jfhbrook/pyee | tests/test_async.py | 1 | 3955 | # -*- coding: utf-8 -*-
import pytest
import pytest_asyncio.plugin # noqa
from asyncio import Future, wait_for
try:
from asyncio.exceptions import TimeoutError
except ImportError:
from concurrent.futures import TimeoutError
from mock import Mock
from twisted.internet.defer import succeed
from pyee import... | mit | -4,029,142,267,549,402,000 | 19.492228 | 79 | 0.655626 | false |
cedricbonhomme/pyAggr3g470r | newspipe/notifications/emails.py | 1 | 3028 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Newspipe - A web news aggregator.
# Copyright (C) 2010-2021 Cédric Bonhomme - https://www.cedricbonhomme.org
#
# For more information: https://sr.ht/~cedric/newspipe
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | 7,342,659,087,970,925,000 | 31.548387 | 80 | 0.661381 | false |
vvinuv/pymorph | pymorph/yetbackfunc.py | 1 | 3453 | import os
import sys
import numpy as np
import pymconvolve
import numpy.ma as ma
import fitsio
from mask_or_fit import GetSExObj
from runsexfunc import RunSex
def QuarterMask(z, zm, xcntr, ycntr, bbya, pa, quarter):
nxpts, nypts = z.shape
zmm = np.ones_like(z)
co = np.cos(pa * np.pi / 180.0)
si = np.s... | gpl-2.0 | 7,017,160,199,089,343,000 | 27.073171 | 87 | 0.523313 | false |
sylsaint/computation | chapter1/spec/nfa_spec.py | 1 | 1757 | #!/usr/bin/env python
#!coding:utf-8
import unittest
import sys
import set_path
from nfa import NFA
class TestNFA(unittest.TestCase):
EPSILON = 'epsilon'
start = 'q0'
final = {'q0'}
sigma = ['0', '1', 'epsilon']
states = ['q0', 'q1', 'q2']
ttable = [[{}, {'q1'}, {'q2'}],
[{'q... | mit | -8,341,895,363,137,537,000 | 27.33871 | 65 | 0.574274 | false |
DataDog/integrations-core | network/datadog_checks/network/network.py | 1 | 47373 | # (C) Datadog, Inc. 2010-present
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
"""
Collects network metrics.
"""
import array
import distutils.spawn
import os
import re
import socket
import struct
from collections import defaultdict
import psutil
from six import PY3, iteritems, itervalu... | bsd-3-clause | 250,857,119,354,836,900 | 44.993204 | 149 | 0.522956 | false |
artwr/airflow | tests/hooks/test_oracle_hook.py | 2 | 10269 | # -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
#... | apache-2.0 | -6,088,350,576,261,644,000 | 39.588933 | 89 | 0.609407 | false |
pFernbach/hpp-rbprm-corba | script/scenarios/sandbox/dynamic/slalom_hyq_interpKino05.py | 1 | 4188 | #Importing helper class for RBPRM
from hpp.corbaserver.rbprm.rbprmbuilder import Builder
from hpp.corbaserver.rbprm.rbprmfullbody import FullBody
from hpp.corbaserver.rbprm.problem_solver import ProblemSolver
from hpp.gepetto import Viewer
#calling script darpa_hyq_path to compute root path
import slalom_hyq_pathKino0... | lgpl-3.0 | -8,926,711,783,031,606,000 | 28.914286 | 126 | 0.776027 | false |
endolith/scikit-image | skimage/restoration/_denoise.py | 1 | 10008 | # coding: utf-8
import numpy as np
from .. import img_as_float
from ..restoration._denoise_cy import _denoise_bilateral, _denoise_tv_bregman
from .._shared.utils import _mode_deprecations
def denoise_bilateral(image, win_size=5, sigma_range=None, sigma_spatial=1,
bins=10000, mode='constant', cva... | bsd-3-clause | -854,628,907,179,249,500 | 34.211268 | 92 | 0.6072 | false |
itu-oss-project-team/oss-github-analysis-project | github_analysis_tool/analyzer/analysis_utilities.py | 1 | 11551 | import os.path
import sys
import numpy as np
import pandas as pd
import random
import collections
from sklearn.feature_selection import SelectKBest, chi2
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
from github_analysis_tool.services.database_service import DatabaseSer... | mit | 8,226,618,677,649,915,000 | 40.851449 | 109 | 0.598996 | false |
JMMolenaar/cadnano2.5 | cadnano/part/removeallstrandscmd.py | 1 | 1893 | from cadnano.cnproxy import UndoCommand
class RemoveAllStrandsCommand(UndoCommand):
"""
1. Remove all strands. Emits strandRemovedSignal for each.
2. Remove all oligos.
"""
def __init__(self, part):
super(RemoveAllStrandsCommand, self).__init__("remove all strands")
self._part = pa... | mit | 4,979,934,590,713,284,000 | 32.22807 | 76 | 0.555203 | false |
cthit/CodeIT | behaviours/Jump.py | 1 | 1201 | import random
import pygame
from behaviours.Behaviour import Behaviour
from behaviours.Collide import Collide
from src.GameMethods import GameMethods
class Jump(Behaviour):
def __init__(self, jump_velocity=10, jump_key=None):
self.jump_velocity = jump_velocity
self.can_jump = False
self.... | mit | -5,081,456,756,045,194,000 | 29.794872 | 74 | 0.592007 | false |
openstack-packages/DLRN | dlrn/tests/test_driver_git.py | 1 | 5008 | # -*- coding: utf-8 -*-
# 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, softw... | apache-2.0 | -2,759,557,301,672,723,500 | 36.096296 | 78 | 0.621006 | false |
tyiannak/inf_teiste_info_theory_lab | compressText.py | 1 | 2472 | import ITlib, sys, bitarray, cPickle, os
if __name__ == '__main__':
mode, inputFilePath, outputFilePath = (sys.argv[1], sys.argv[2], sys.argv[3])
if mode == "compress":
method = sys.argv[4]
f = open(inputFilePath) # read the input file
text = f.rea... | apache-2.0 | -2,836,186,854,288,598,000 | 60.825 | 112 | 0.529531 | false |
mbaldessari/pcp | src/python/setup.py | 1 | 2568 | """ Build script for the PCP python package """
#
# Copyright (C) 2012-2014 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/or modify it
# under th... | lgpl-2.1 | 4,887,346,861,633,221,000 | 41.098361 | 80 | 0.630841 | false |
Blazemeter/apiritif | tests/test_transactions.py | 1 | 4566 | import logging
import time
import unittest
import threading
import apiritif
from apiritif import http, transaction, transaction_logged, smart_transaction
target = http.target('https://httpbin.org')
target.keep_alive(True)
target.auto_assert_ok(False)
target.use_cookies(True)
class TestRequests(unittest.TestCase):
... | apache-2.0 | 2,616,180,987,506,200,000 | 30.708333 | 105 | 0.635786 | false |
AMOboxTV/AMOBox.LegoBuild | plugin.video.exodus/resources/lib/sources/primewire_mv_tv.py | 1 | 9244 | # -*- coding: utf-8 -*-
'''
Exodus Add-on
Copyright (C) 2016 Exodus
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 l... | gpl-2.0 | 5,713,432,665,606,945,000 | 40.828054 | 188 | 0.535482 | false |
aerialhedgehog/VyPy | tests/data/ordered_bunch.py | 1 | 5662 |
# ----------------------------------------------------------------------
# Imports
# ----------------------------------------------------------------------
from VyPy.data import OrderedBunch, Property
import pickle
from copy import deepcopy
from time import time, sleep
import numpy as np
# ---... | bsd-3-clause | -5,173,433,652,382,378,000 | 23.399103 | 80 | 0.310138 | false |
RedHatQE/mgmtsystem | tests/test_hawkular.py | 1 | 13600 | # -*- coding: utf-8 -*-
"""Unit tests for Hawkular client."""
import json
import os
from random import sample
from urllib.parse import urlparse
import pytest
from mock import patch
from wrapanapi.systems import HawkularSystem
from wrapanapi.systems.hawkular import (CanonicalPath, Resource, ResourceData,
... | mit | 5,295,584,554,794,557,000 | 37.636364 | 98 | 0.653015 | false |
aosprey/rose | lib/python/rose/suite_hook.py | 1 | 5734 | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown Copyright 2012-8 Met Office.
#
# This file is part of Rose, a framework for meteorological suites.
#
# Rose is free software: you can redistribute it and/or modify
# it under the terms of the GNU ... | gpl-3.0 | -6,236,962,520,064,511,000 | 37.483221 | 79 | 0.571503 | false |
cloudify-cosmo/packman | setup.py | 1 | 2853 | ########
# Copyright (c) 2014 GigaSpaces Technologies 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
#
# Unless... | apache-2.0 | -7,370,398,719,941,188,000 | 30.7 | 79 | 0.629863 | false |
05bit/bachata | docs/conf.py | 1 | 9441 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Bachata documentation build configuration file, created by
# sphinx-quickstart on Wed Oct 7 22:16:05 2015.
#
# 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
# au... | apache-2.0 | 263,612,688,371,594,240 | 30.787879 | 79 | 0.705646 | false |
mcdallas/nba_py | nba_py/constants.py | 1 | 17673 | CURRENT_SEASON = '2016-17'
TEAMS = {
'ATL': {
'abbr': 'ATL',
'city': 'Atlanta',
'code': 'hawks',
'conference': 'Eastern',
'displayAbbr': 'ATL',
'displayConference': 'Eastern',
'division': 'Southeast',
'id': '1610612737',
'name': 'Hawks',
... | bsd-3-clause | -3,240,081,273,265,094,000 | 21.951948 | 90 | 0.502009 | false |
swiftcoder/ashima-iv | src/game.py | 1 | 2465 |
import pyglet
from pyglet.gl import *
import math
from app import AppState, enter_state
from outcome import OutcomeState
from window import Window
from entity import World
import factories
from euclid import Vector3
from resources import Resources
from camera import Camera
from controller import Controller
from te... | bsd-3-clause | 3,728,101,832,243,301,400 | 22.037383 | 81 | 0.691278 | false |
Reilithion/xmms2-reilithion | wafadmin/Tools/gas.py | 1 | 1258 | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2008 (ita)
"as and gas"
import os, sys
import Task
from TaskGen import extension, taskgen, after, before
EXT_ASM = ['.s', '.S', '.asm', '.ASM', '.spp', '.SPP']
as_str = '${AS} ${ASFLAGS} ${_ASINCFLAGS} ${SRC} -o ${TGT}'
Task.simple_task_type('asm', as_str, 'PIN... | lgpl-2.1 | 4,753,860,226,152,624,000 | 26.347826 | 78 | 0.651828 | false |
YannickB/odoo-hosting | clouder_template_gitlab/oneclick.py | 1 | 3584 | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Yannick Buron
# Copyright 2015, TODAY Clouder SASU
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License with Attribution
# ... | agpl-3.0 | 4,088,218,775,987,584,500 | 37.12766 | 79 | 0.57394 | false |
mlperf/training_results_v0.6 | Fujitsu/benchmarks/resnet/implementations/mxnet/3rdparty/tvm/nnvm/tests/python/compiler/test_fold_axis.py | 1 | 5980 | """Unittest cases for fold_axis"""
import nnvm
import nnvm.testing.resnet
import numpy as np
from nnvm import symbol as sym
from nnvm.compiler import graph_util, graph_attr
def test_fold_axis_conv():
# Before simplify
def before(x, conv_weight, conv_bias, in_scale, out_scale, channels):
x = x * sym.exp... | apache-2.0 | -4,966,185,714,852,103,000 | 37.089172 | 85 | 0.550502 | false |
FairyDevicesRD/FairyMaCorpus | scripts/validate.py | 1 | 1535 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import codecs
import sys
def operation(inf, outf):
'''
Check
'''
err = False
annotations = set([])
for line in inf:
if line.startswith(";"):
continue
items = line[:-1].split("\t")
if len(items)... | apache-2.0 | -762,907,266,110,665,200 | 23.365079 | 88 | 0.517915 | false |
codebox/star-charts | diagram.py | 1 | 2486 |
from svg import Svg
import codecs
MARGIN_X=20
MARGIN_Y=60
MAGNIFICATION = 500
MIN_D = 1
MAX_D = 4
DIMMEST_MAG = 6
BRIGHTEST_MAG = -1.5
LABEL_OFFSET_X = 4
LABEL_OFFSET_Y = 3
FONT_SIZE=16
FONT_COLOUR='#167ac6'
TITLE_SIZE=16
TITLE_COLOUR='#000'
COORDS_SIZE=12
COORDS_COLOUR='#000'
STAR_COLOUR='#000'
CURVE_WIDTH = 0... | mit | -7,223,114,317,514,982,000 | 30.871795 | 174 | 0.604988 | false |
avinassh/prawoauth2 | prawoauth2/PrawOAuth2Server.py | 1 | 3785 | #!/usr/bin/env python
import webbrowser
import tornado.ioloop
import tornado.web
__all__ = ['PrawOAuth2Server']
application = None
REDIRECT_URL = 'http://127.0.0.1:65010/authorize_callback'
SCOPES = ['identity', 'read']
REFRESHABLE = True
CODE = None
class AuthorizationHandler(tornado.web.RequestHandler):
de... | mit | -6,661,762,104,879,166,000 | 35.747573 | 81 | 0.639102 | false |
d1m0/bap_play | lib/z3_embed/embedder.py | 1 | 8204 | from bap import disasm
from bap.adt import Visitor, visit
from ..util import flatten
from z3 import If, eq, Const, And, BitVecRef, ArrayRef, BitVecNumRef, \
BitVecVal, BitVecSort, Context
from re import compile
def boolToBV(boolExp, ctx):
return If(boolExp, BitVecVal(1, 1, ctx=ctx), BitVecVal(0, 1, ctx=ct... | gpl-3.0 | 1,772,084,412,615,283,500 | 29.498141 | 76 | 0.53998 | false |
teamfruit/defend_against_fruit | defend_against_fruit/daf_fruit_dist/daf_fruit_dist/tests/checksum_dependency_helper_tests.py | 1 | 3031 | from collections import namedtuple
from nose.tools import eq_, raises
from pip.exceptions import DistributionNotFound
from requests import RequestException
from daf_fruit_dist.checksum_dependency_helper import ChecksumDependencyHelper
def found_files_and_checksums_test():
"""
Verify that finding a package and... | apache-2.0 | 7,144,934,150,456,840,000 | 32.307692 | 79 | 0.627516 | false |
eguil/ENSO_metrics | scripts/driverCCollection_testMC3.py | 1 | 27073 | from cdms2 import open as CDMS2open
from os.path import join as join_path
from os import environ
from sys import exit
#from EnsoMetrics.EnsoCollectionsLib import CmipVariables, defCollection, ReferenceObservations
#from EnsoMetrics.EnsoComputeMetricsLib import ComputeCollection
from EnsoCollectionsLib import CmipVaria... | bsd-3-clause | -6,984,128,249,758,549,000 | 57.221505 | 144 | 0.518635 | false |
h3llrais3r/Auto-Subliminal | tests/core/test_item.py | 1 | 4529 | # coding=utf-8
import datetime
from autosubliminal.core.item import WantedItem
wanted_item = WantedItem()
wanted_item.timestamp = '2018-01-01 12:30:01'
def test_compare_wanted_items():
wanted_item_1 = WantedItem(type='episode', title='testequal', season=1, episode=1)
wanted_item_2 = WantedItem(type='episod... | gpl-3.0 | 1,611,014,061,796,929,800 | 40.935185 | 110 | 0.705895 | false |
nextgis-extra/tests | lib_gdal/gdrivers/ngsgeoid.py | 1 | 2609 | #!/usr/bin/env python
###############################################################################
# $Id: ngsgeoid.py 32002 2015-12-05 06:03:16Z goatbar $
#
# Project: GDAL/OGR Test Suite
# Purpose: Test read functionality for NGSGEOID driver.
# Author: Even Rouault <even dot rouault at mines dash paris dot org>... | gpl-2.0 | 1,945,217,051,635,007,200 | 38.530303 | 155 | 0.620544 | false |
pculture/mirocommunity | localtv/inline_edit/urls.py | 1 | 1638 | from django.conf.urls.defaults import patterns
from localtv import models
urlpatterns = patterns(
'localtv.inline_edit',
(r'^video/(?P<id>[0-9]+)/name/$', 'simple.edit_field',
{'model': models.Video, 'field': 'name'},
'localtv_admin_video_edit_name'),
(r'^video/(?P<id>[0-9]+)/when_published/$',... | agpl-3.0 | -4,088,861,361,132,173,000 | 44.5 | 79 | 0.601954 | false |
sglumac/pyislands | pyislands/evolution.py | 1 | 1937 | from itertools import islice
def evolution(island):
'''
Infinite generator for evolution of some population.
This generator yields population:
population - tuple together containing tuples/individuals
population_0 = create()
population_1 = evolve(population_0, info_0)
.
.
popu... | mit | 3,788,803,665,080,810,000 | 27.910448 | 75 | 0.681466 | false |
pekin0609/- | agent/cognitive/interpreter.py | 1 | 27170 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
interpreter.py
=====
This module contains the class `NetworkBuilder` and `AgentkBuilder` which interprets
the contents of BriCA language files.
"""
# BriCA Language Interpreter for V1 (Interpreter version 1)
# Originally licenced for WBAI (wbai.jp) under the Apache... | apache-2.0 | 1,350,167,149,328,328,400 | 39.549254 | 120 | 0.536109 | false |
rossgoodwin/bizarromoma | bot.py | 1 | 5642 | import os
import time
import json
import string
from collections import defaultdict, Counter
from random import random
import tweepy
class TwitterAPI:
"""
Class for accessing the Twitter API.
Requires API credentials to be available in environment
variables. These will be set appropriately if the bot... | gpl-3.0 | 573,573,843,229,703,900 | 28.694737 | 90 | 0.55654 | false |
elbuo8/sendgrid-django | tests/test_mail.py | 1 | 10276 | from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.core.mail import EmailMessage
from django.core.mail import EmailMultiAlternatives
from django.test import SimpleTestCase as TestCase
from sgbackend import SendGridBackend
settings.configure()
class SendGridBackendTe... | mit | 3,232,107,922,976,133,600 | 41.639004 | 83 | 0.479953 | false |
eugeneks/zmeyka | zmeyka_auth/user_auth.py | 1 | 3511 |
import datetime
from datetime import datetime
import sqlalchemy
from sqlalchemy import create_engine
from sqlalchemy import Table, Column, Integer, String, DateTime, ForeignKey, UniqueConstraint
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
try:
... | mit | -7,564,987,325,090,481,000 | 24.635036 | 124 | 0.569638 | false |
Diiaablo95/friendsNet | test/services_api_test_rate.py | 1 | 7003 | import unittest
import json
import flask
import friendsNet.resources as resources
import friendsNet.database as database
DB_PATH = 'db/friendsNet_test.db'
ENGINE = database.Engine(DB_PATH)
COLLECTION_JSON = "application/vnd.collection+json"
HAL_JSON = "application/hal+json"
RATE_PROFILE = "/profiles/rate-profile"
#... | gpl-3.0 | 8,076,253,096,272,787,000 | 35.479167 | 138 | 0.60417 | false |
steveb/heat | heat/common/exception.py | 1 | 15643 | #
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
#
# 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 a... | apache-2.0 | -5,168,321,806,644,968,000 | 29.91502 | 78 | 0.623729 | false |
pmarcis/nlp-example | train-truecaser.py | 1 | 1640 | """
This script trains the TrueCase System
"""
import nltk
import os
import sys
import argparse
import cPickle
script_path=os.path.dirname(os.path.realpath(__file__))
truecaser_script_dir = os.path.join(script_path,"dependencies","truecaser")
sys.path.insert(1,truecaser_script_dir)
from TrainFunctions import *
def mai... | mit | -6,295,123,703,930,949,000 | 37.139535 | 115 | 0.710976 | false |
jrydberg/edgy | src/edgy/xml/utils.py | 1 | 1436 | from edgy.xml.element import _namespace_map
def lookupPrefix(uri):
return _namespace_map.get(uri, None)
def findtext(n, qname, default=None):
for c in n.getchildren():
#print repr(c), qname
if c.tag == str(qname):
return c.text
return default
def find(n, qname, default=None)... | mit | -5,665,341,722,381,874,000 | 18.944444 | 50 | 0.533426 | false |
colab-chat/colab-server | web/colab_server/streaming/avroserialiser.py | 1 | 1426 | from fastavro import writer
import io
import uuid
from .avroschema import schema, event_schema
class AvroSerialiser:
def __init__(self):
pass
@staticmethod
def serialise_message(message):
buffer = io.BytesIO()
writer(buffer, schema,
[{'id': uuid.uuid4().int,
... | gpl-3.0 | -6,876,747,384,578,060,000 | 32.952381 | 69 | 0.542076 | false |
EndPointCorp/lg_ros_nodes | lg_mirror/scripts/touch_router_node.py | 1 | 1598 | #!/usr/bin/env python3
from functools import partial
import rospy
import sys
from lg_mirror.touch_router import TouchRouter
from lg_common.helpers import on_new_scene, load_director_message
from lg_msg_defs.msg import StringArray
from lg_common.helpers import handle_initial_state
from lg_mirror.touch_router import Su... | apache-2.0 | 7,490,353,579,126,744,000 | 27.535714 | 80 | 0.717772 | false |
felipenaselva/repo.felipe | plugin.video.salts/scrapers/moviewatcher_scraper.py | 1 | 5058 | """
SALTS XBMC Addon
Copyright (C) 2014 tknorris
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.
T... | gpl-2.0 | 9,100,844,278,614,173,000 | 41.864407 | 167 | 0.566825 | false |
xArm-Developer/xArm-Python-SDK | xarm/x3/utils.py | 1 | 4241 | # !/usr/bin/env python3
# Software License Agreement (BSD License)
#
# Copyright (c) 2018, UFACTORY, Inc.
# All rights reserved.
#
# Author: Vinman <vinman.wen@ufactory.cc> <vinman.cub@gmail.com>
import time
import functools
from ..core.utils.log import logger
from .code import APIState
def check_modbus_baud(baud=20... | bsd-3-clause | -534,950,684,337,418,000 | 32.928 | 116 | 0.560481 | false |
yassersouri/omgh | src/utils.py | 1 | 1183 | import numpy
import sklearn.metrics
import os
import cv2
import numpy as np
def mean_accuracy(groundtruth, predictions):
groundtruth_cm = sklearn.metrics.confusion_matrix(groundtruth, groundtruth).astype(numpy.float32)
predictions_cm = sklearn.metrics.confusion_matrix(predictions, groundtruth).astype(numpy.fl... | mit | 7,947,427,460,157,325,000 | 26.511628 | 101 | 0.662722 | false |
abinashk-inf/AstroBox | src/astroprint/api/cloud.py | 1 | 7527 | # coding=utf-8
__author__ = "AstroPrint Product Team <product@astroprint.com>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
import os
import json
import uuid
from flask import request, jsonify, abort
from flask.ext.login import current_user
from requests import ConnectionErr... | agpl-3.0 | 6,595,280,205,975,772,000 | 29.848361 | 107 | 0.554271 | false |
bcgov/gwells | app/backend/aquifers/models/__init__.py | 1 | 31074 | """
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
distri... | apache-2.0 | 2,642,793,636,649,225,000 | 46.496942 | 841 | 0.661655 | false |
wfxiang08/Nuitka | misc/make-pypi-upload.py | 1 | 2245 | #!/usr/bin/env python
# Copyright 2015, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this fi... | apache-2.0 | -1,278,441,740,454,644,000 | 32.014706 | 78 | 0.700223 | false |
Parallels/githooks | test.py | 1 | 19045 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim:ts=4:sw=4:expandtab
#
'''
Unit tests for githooks
How it works:
* Create a workspace tmp/ in cwd, set up a dummy STASH_HOME,
a remote repo and a local repo there.
* Replace temp/remote_repo.git/hooks/update in the remote repo with
hook_fixture.py. The hook_fixt... | mit | -1,477,752,506,485,911,800 | 32.350263 | 123 | 0.564722 | false |
jackyyf/paste.py | src/paste.py | 1 | 2800 | _version = '0.0.1'
import sys
import os
import argparse
from lib import logger, config, uri
from lib.provider import ProviderBase, getProvider
# Change default encoding to UTF-8
reload(sys)
sys.setdefaultencoding('UTF-8')
del sys.setdefaultencoding
sys.path = [os.path.abspath('.')] + sys.path
class _Smart_formatt... | mit | 9,107,660,406,084,468,000 | 46.457627 | 121 | 0.666786 | false |
apple/llvm-project | lldb/test/API/commands/expression/import-std-module/vector-of-vectors/TestVectorOfVectorsFromStdModule.py | 5 | 2035 | """
Test std::vector functionality when it's contents are vectors.
"""
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
class TestVectorOfVectors(TestBase):
mydir = TestBase.compute_mydir(__file__)
@add_test_categories(["libc++"])
@skipIf... | apache-2.0 | -44,866,906,489,282,680 | 36.685185 | 80 | 0.474693 | false |
AnhellO/DAS_Sistemas | Ene-Jun-2021/guerrero-lopez-cristian-edgardo/PARCIAL 1 PRACTICA 1/Practica 1.py | 1 | 1520 | class Automovil:
def __init__(self, Vel, Kilometraje_Marcado, Cupo_Max):
self.Vel = Vel
self.Kilometraje_Marcado = Kilometraje_Marcado
self.Cupo_Max = Cupo_Max
def Costo(self, Cupo_Max):
Costo = self.Cupo_Max*100
return Costo
def Precio(self, Cupo_Max):
... | mit | -3,127,128,528,588,065,300 | 34.372093 | 157 | 0.589474 | false |
Nablaquabla/sns-analysis | run-am-analysis-v4.py | 1 | 3313 | import os
import time as tm
import sys
# Handles the creation of condor files for a given set of directories
# -----------------------------------------------------------------------------
def createCondorFile(dataDir,outDir,run,day,times):
# Condor submission file name convention: run-day-time.condor
with ope... | gpl-3.0 | -7,294,928,957,756,611,000 | 31.165049 | 102 | 0.532146 | false |
PeytonXu/learn-python | cases/henghan_oa_checkin_checkout/test_fun.py | 1 | 1511 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import logging.handlers
import configparser
import re
import time
handler = logging.handlers.TimedRotatingFileHandler(filename="test", when='s', interval=2, backupCount=5,
encoding='UTF-8')
handler.suffix = '%Y-%m-%d-%H-... | mit | 6,081,286,916,630,466,000 | 30.479167 | 105 | 0.632694 | false |
smlbiobot/SML-Cogs | royalerant/royalerant.py | 1 | 6221 | # -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2017 SML
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 | -1,134,916,283,987,317,100 | 35.810651 | 96 | 0.620961 | false |
xuru/pyvisdk | pyvisdk/do/dv_port_config_spec.py | 1 | 1075 |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def DVPortConfigSpec(vim, *args, **kwargs):
'''Specification to reconfigure a Distributed... | mit | -482,861,134,010,992,100 | 30.647059 | 124 | 0.594419 | false |
rupak0577/ginga | ginga/misc/plugins/SaveImage.py | 1 | 17618 | """Save output images local plugin for Ginga."""
from __future__ import absolute_import, division, print_function
from ginga.util.six import itervalues
from ginga.util.six.moves import map
# STDLIB
import os
import shutil
# THIRD-PARTY
from astropy.io import fits
# GINGA
from ginga.GingaPlugin import GlobalPlugin
fr... | bsd-3-clause | -5,133,613,292,894,115,000 | 33.887129 | 240 | 0.566353 | false |
MatthieuDartiailh/eapii | eapii/core/iprops/proxies.py | 1 | 4998 | # -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
# Copyright 2014 by Eapii Authors, see AUTHORS for more details.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENCE, distributed with this software.
#------------... | bsd-3-clause | -3,187,524,225,825,217,500 | 31.666667 | 79 | 0.576631 | false |
victronenergy/dbus-fronius | test/src/fronius_sim/app.py | 1 | 5868 | #!/usr/bin/python -u
import datetime
import modbus_tcp_sim
import os
import sys
from twisted.internet import reactor
from fronius_sim import FroniusSim
app_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
bottle_dir = os.path.normpath(os.path.join(app_dir, '..', '..', 'software', 'ext', 'bottle'))
sy... | mit | -4,941,800,377,040,512,000 | 31.966292 | 134 | 0.605658 | false |
cloud9ers/j25framework | j25/loaders/ControllerLoader.py | 1 | 2345 | from j25.web import Controller
import inspect
import logging
import pkgutil
import traceback
logger = logging.getLogger("ControllerLoader")
class AutoControllerLoader(object):
@classmethod
def load(cls, app_name, router, dispatcher, package_or_packages):
if not isinstance(package_or_packages, list):
... | lgpl-3.0 | -2,055,934,310,574,117,400 | 51.133333 | 180 | 0.53049 | false |
markelg/xray | xray/test/test_conventions.py | 1 | 25820 | import contextlib
import numpy as np
import pandas as pd
import warnings
from xray import conventions, Variable, Dataset, open_dataset
from xray.core import utils, indexing
from . import TestCase, requires_netCDF4, unittest
from .test_backends import CFEncodedDataTest
from xray.core.pycompat import iteritems
from xray... | apache-2.0 | 6,889,391,297,185,541,000 | 45.606498 | 85 | 0.547289 | false |
nejstastnejsistene/gardendb | gardendb/postgres.py | 1 | 5218 | import binascii
import threading
import psycopg2
from psycopg2.extensions import new_type, register_type
try:
import cPickles as pickle
except ImportError:
import pickle
from . import BaseGarden
def adapt_bytea(obj):
'''Adapt an object to a bytea by pickling.'''
if isinstance(obj, str):
# Co... | bsd-3-clause | 2,349,762,603,324,349,000 | 28.150838 | 72 | 0.561518 | false |
ellisonbg/nbgrader | nbgrader/tests/nbextensions/test_assignment_list.py | 1 | 12592 | import pytest
import os
import time
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException, NoSuchElementException
from .. import run_nbgrader
from .con... | bsd-3-clause | 4,763,972,484,128,794,000 | 36.813814 | 146 | 0.687976 | false |
zhaipro/AlphaLineupPuzzle | AlphaLineupPuzzle/models/__init__.py | 1 | 1118 | # coding: utf-8
import numpy as np
import chainer.links as L
import chainer.functions as F
from chainer import serializers, Variable
import policy
from AlphaLineupPuzzle.preprocessing import preprocessing
def load_policy_network(name):
in_dim = preprocessing.state_to_tensor.features
out_dim = preprocessing.a... | mit | 446,345,322,601,292,350 | 28.135135 | 74 | 0.648423 | false |
estaban/pyload | module/plugins/hoster/YoupornCom.py | 1 | 1531 | # -*- coding: utf-8 -*-
import re
from module.plugins.Hoster import Hoster
class YoupornCom(Hoster):
__name__ = "YoupornCom"
__type__ = "hoster"
__pattern__ = r'http://(?:www\.)?youporn\.com/watch/.+'
__version__ = "0.2"
__description__ = """Youporn.com hoster plugin"""
__author_name__ = "wil... | gpl-3.0 | 1,178,821,542,456,942,600 | 28.442308 | 111 | 0.556499 | false |
CiscoSystems/networking-cisco | networking_cisco/plugins/cisco/cfg_agent/cfg_exceptions.py | 1 | 3138 | # Copyright 2014 Cisco Systems, 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 requir... | apache-2.0 | 111,988,582,621,257,380 | 38.721519 | 79 | 0.681963 | false |
ExCiteS/geokey-airquality | geokey_airquality/serializers.py | 1 | 10302 | """All serializers for the extension."""
import json
from django.core.exceptions import ValidationError
from django.contrib.gis.geos import Point
from django.utils import timezone
from django.utils.dateparse import parse_datetime
from rest_framework.serializers import BaseSerializer
from geokey_airquality.models im... | mit | 3,727,138,254,284,817,400 | 28.019718 | 78 | 0.553582 | false |
arnau126/django-mysql | src/django_mysql/forms.py | 1 | 9665 | import json
from django import forms
from django.core import validators
from django.core.exceptions import ValidationError
from django.utils.text import format_lazy
from django.utils.translation import ugettext_lazy as _
from django_mysql.validators import (
ListMaxLengthValidator,
ListMinLengthValidator,
... | bsd-3-clause | -4,095,754,749,629,425,700 | 32.793706 | 88 | 0.455354 | false |
rizar/actor-critic-public | lvsr/main.py | 1 | 52286 | from __future__ import print_function
import time
import logging
import pprint
import math
import os
import re
import cPickle as pickle
import sys
import yaml
import copy
from collections import OrderedDict
import numpy
from lvsr.algorithms import BurnIn
from blocks_extras.extensions.embed_ipython import EmbedIPython
... | mit | 3,864,441,679,378,537,500 | 40.996787 | 110 | 0.608499 | false |
takeflight/wagtailannotatedimage | wagtailannotatedimage/edit_handlers.py | 1 | 2726 | import json
from django import forms
from django.template.loader import render_to_string
from django.utils.safestring import mark_safe
from wagtail.wagtailadmin.edit_handlers import (BaseCompositeEditHandler,
FieldPanel, widget_with_script)
from wagtail.wagtailimages.edi... | bsd-3-clause | -207,208,430,859,362,340 | 36.861111 | 80 | 0.628393 | false |
ultrabug/py3status | py3status/modules/wanda_the_fish.py | 1 | 5557 | """
Display a fortune-telling, swimming fish.
Wanda has no use what-so-ever. It only takes up disk space and compilation time,
and if loaded, it also takes up precious bar space, memory, and cpu cycles.
Anybody found using it should be promptly sent for a psychiatric evaluation.
Configuration parameters:
cache_ti... | bsd-3-clause | -7,311,590,463,705,585,000 | 29.032432 | 86 | 0.559935 | false |
bmccary/csvu | csvu/tail.py | 1 | 1800 |
import traceback
from csvu import (
reader_make,
writer_make,
)
from csvu.cli import (
default_arg_parser,
positive_int,
)
def cli_arg_parser():
description = 'CSVU Tail is like GNU Tail, but for CSV files.'
parser = default_arg_parser(
descripti... | mit | -4,675,949,467,743,082,000 | 20.95122 | 66 | 0.455556 | false |
chkothe/pylsl | pylsl/pylsl.py | 1 | 51549 | """Python API for the lab streaming layer.
The lab streaming layer provides a set of functions to make instrument data
accessible in real time within a lab network. From there, streams can be
picked up by recording programs, viewing programs or custom experiment
applications that access data streams in real time.
The... | mit | 5,422,760,942,595,016,000 | 40.571774 | 88 | 0.599721 | false |
linebp/pandas | pandas/tests/plotting/test_datetimelike.py | 1 | 50792 | """ Test cases for time series specific (freq conversion, etc) """
from datetime import datetime, timedelta, date, time
import pytest
from pandas.compat import lrange, zip
import numpy as np
from pandas import Index, Series, DataFrame, NaT
from pandas.compat import is_platform_mac
from pandas.core.indexes.datetimes ... | bsd-3-clause | -2,776,164,112,799,334,400 | 34.819464 | 79 | 0.528883 | false |
ArcAwe/coseq | Software/RaspberryPi/main/xbox_read.py | 1 | 1990 |
# from https://github.com/zephod/lego-pi/blob/master/lib/xbox_read.py
from os import popen
from sys import stdin
import re
import time
s = re.compile('[ :]')
class Event:
def __init__(self,key,value,old_value):
self.key = key
self.value = value
self.old_value = old_value
def is_press... | mit | 3,269,753,871,665,201,700 | 22.702381 | 75 | 0.513568 | false |
igorvc/iso8583py | examples/echoClient.py | 1 | 2943 | """
(C) Copyright 2009 Igor V. Custodio
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
any later version.
This program is distributed in the hope that ... | gpl-3.0 | 1,896,742,353,546,762,200 | 22.731092 | 90 | 0.638464 | false |
w1z2g3/crossbar | crossbar/adapter/rest/test/test_signature.py | 1 | 11871 | #####################################################################################
#
# Copyright (C) Tavendo GmbH
#
# Unless a separate license agreement exists between you and Tavendo GmbH (e.g. you
# have purchased a commercial license), the license terms below apply.
#
# Should you enter into a separate licen... | agpl-3.0 | 3,433,306,572,119,676,000 | 35.082067 | 96 | 0.61486 | false |
Southpaw-TACTIC/TACTIC | src/tactic/startup/first_run_init.py | 1 | 4352 | ###########################################################
#
# Copyright (c) 2005-2008, Southpaw Technology
# All Rights Reserved
#
# PROPRIETARY INFORMATION. This software is proprietary to
# Southpaw Technology, and is not to be reproduced, transmitted,
# or disclosed in any way without written ... | epl-1.0 | 8,725,499,631,576,695,000 | 31.969697 | 88 | 0.55239 | false |
alfa-addon/addon | plugin.video.alfa/channels/help.py | 1 | 11830 | # -*- coding: utf-8 -*-
import os
from core.item import Item
from platformcode import config, logger, platformtools
from channelselector import get_thumb
if config.is_xbmc():
import xbmcgui
class TextBox(xbmcgui.WindowXMLDialog):
""" Create a skinned textbox window """
def __i... | gpl-3.0 | -6,673,242,564,879,324,000 | 50.598214 | 119 | 0.517484 | false |
kkamkou/gitmostwanted.com | tests/unit/lib/test_bigquery.py | 1 | 2352 | from unittest import TestCase
from gitmostwanted.lib.bigquery.result import ResultJob
class LibBigQueryResultTestCase(TestCase):
def setUp(self):
pass
def test_convert_incoming_obj(self):
result = ResultJob(self.response_example())
self.assertEqual(len(result), 2)
self.assert... | mit | -4,338,712,916,941,077,500 | 30.36 | 85 | 0.39966 | false |
jakobzhao/qq-xingyun | qqcrawler/report.py | 1 | 2335 | # !/usr/bin/python
# -*- coding: utf-8 -*-
#
# Created on Oct 16, 2015
# @author: Bo Zhao
# @email: bo_zhao@hks.harvard.edu
# @website: http://yenching.org
# @organization: Harvard Kennedy School
# libraries
import socket
import smtplib
from pymongo import MongoClient
from qqcrawler.settings import ... | lgpl-3.0 | -3,129,869,230,584,553,500 | 27.47561 | 84 | 0.604711 | false |
eustislab/horton | doc/conf.py | 1 | 9564 | # -*- coding: utf-8 -*-
# HORTON: Helpful Open-source Research TOol for N-fermion systems.
# Copyright (C) 2011-2015 The HORTON Development Team
#
# This file is part of HORTON.
#
# HORTON 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 | -3,263,852,963,252,831,000 | 32.795053 | 95 | 0.700544 | false |
chipaca/snapcraft | snapcraft/internal/project_loader/_extensions/kde_neon.py | 1 | 4701 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright (C) 2018-2019 Canonical Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in ... | gpl-3.0 | -2,491,254,435,194,227,700 | 34.613636 | 94 | 0.581578 | false |
mitodl/open-discussions | notifications/api.py | 1 | 9247 | """Notifications API"""
import logging
from django.conf import settings
from django.db.models import Q
from django.contrib.auth.models import User
from channels.models import Subscription, ChannelGroupRole, Channel
from channels.api import get_admin_api
from channels.constants import ROLE_MODERATORS
from notificatio... | bsd-3-clause | 3,742,379,848,601,232,400 | 34.293893 | 88 | 0.670704 | false |
datafiniti/Diamond | src/collectors/postgres/postgres.py | 1 | 15406 | # coding=utf-8
"""
Collect metrics from postgresql
#### Dependencies
* psycopg2
"""
import diamond.collector
from diamond.collector import str_to_bool
try:
import psycopg2
import psycopg2.extras
psycopg2 # workaround for pyflakes issue #13
except ImportError:
psycopg2 = None
class PostgresqlCo... | mit | 6,480,879,459,344,446,000 | 29.997988 | 80 | 0.541867 | false |
kosqx/srcnip | tests/tests.py | 1 | 10084 | #!/usr/bin/env python
#-*- coding: utf-8 -*-
import random
import unittest
from srcnip.languages import languages
from srcnip.storage import Snippet, MemoryStorage, parse_timediff
from srcnip.parser import parse, simplify, parse_tags, ParseError, LexerError, SyntaxError
class LanguagesTestCase(unittest.TestCase):... | gpl-2.0 | 5,710,369,025,244,942,000 | 48.64532 | 145 | 0.483528 | false |
natethedrummer/Bail | release/ModelDiagnostics.py | 1 | 3387 | # import packages
import matplotlib; matplotlib.use('Agg')
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from sklearn.feature_selection import chi2
from sklearn.metrics import roc_auc_score, roc_curve, auc, precision_score, f1_score, mean_squared_error, accuracy_score
# report coefficients
de... | mit | -5,627,800,905,781,793,000 | 29.241071 | 120 | 0.598169 | false |
jaredscarr/django-imager | imagersite/imagersite/settings.py | 1 | 4051 | """
Django settings for imagersite project.
Generated by 'django-admin startproject' using Django 1.9.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os... | mit | 2,117,890,535,857,599,700 | 24.639241 | 91 | 0.691681 | false |
xswxm/nrf24-injection | Experiments/Scripts/ping.py | 1 | 1628 | #!/usr/bin/env python2
'''
Author: xswxm
Blog: xswxm.com
This script will measure the successful pings per seconds.
e.g.: sudo python ping.py -l -a 61:8E:9C:CD:03 -f 74 -t 0 -r 0
'''
import sys, time, threading
from lib import common
common.init_args('./ping.py')
common.parser.add_argument('-a', '--address', type=str... | gpl-3.0 | 6,024,926,676,848,217,000 | 28.089286 | 129 | 0.677518 | false |
REGOVAR/Regovar | regovar/core/managers/pipeline_manager.py | 1 | 12599 | #!env/python3
# coding: utf-8
try:
import ipdb
except ImportError:
pass
import os
import shutil
import json
import zipfile
import datetime
import time
import uuid
import subprocess
import requests
from config import *
from core.framework.common import *
from core.framework.postgresql import execute
from co... | agpl-3.0 | -2,622,789,942,192,497,000 | 35.625 | 159 | 0.560124 | false |
asanfilippo7/osf.io | website/addons/wiki/model.py | 1 | 8106 | # -*- coding: utf-8 -*-
import datetime
import functools
import logging
from bleach import linkify
from bleach.callbacks import nofollow
from website.models import NodeLog
import markdown
from markdown.extensions import codehilite, fenced_code, wikilinks
from modularodm import fields
from framework.forms.utils impo... | apache-2.0 | 2,979,544,810,616,633,300 | 30.297297 | 93 | 0.613003 | false |
FedoraScientific/salome-kernel | bin/appliskel/salome_tester/salome_instance.py | 1 | 3184 | # Copyright (C) 2015-2016 CEA/DEN, EDF R&D, OPEN CASCADE
#
# This library 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 2.1 of the License, or (at your option) any later version.
#
#... | lgpl-2.1 | -4,801,765,214,694,821,000 | 27.428571 | 85 | 0.652952 | false |
dtroyer/python-openstacksdk | openstack/network/v2/router.py | 1 | 5820 | # 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 t... | apache-2.0 | -3,754,145,010,826,601,500 | 38.060403 | 79 | 0.656873 | false |
dparks1134/GenomeTreeTk | scripts/checkm_compare.py | 1 | 4871 | #!/usr/bin/env python
###############################################################################
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License... | gpl-3.0 | -6,658,379,957,902,644,000 | 39.256198 | 117 | 0.49497 | false |
pablocscode/TFG-CAEBAT | simulacion_basica_v1.py | 1 | 2696 | # -*- coding: utf-8 -*-
'''
Creado por Pablo Castro
28/03/17
Objetivo:
Automatizar todo el proceso de simulacion desde el terminal de linux.
Funciona para CAEBAT 1.0
Como usarlo:
1- Se situa el script en la carpeta 'examples'.
2- Se crea una carpeta llamada 'Mis simulaciones' en el escritorio.
3- Se ejecuta... | gpl-3.0 | -8,891,207,074,465,465,000 | 37.057971 | 130 | 0.751763 | false |
indashnet/InDashNet.Open.UN2000 | android/external/llvm/utils/lit/lit/ShUtil.py | 1 | 12179 | from __future__ import absolute_import
import itertools
import lit.Util
from lit.ShCommands import Command, Pipeline, Seq
class ShLexer:
def __init__(self, data, win32Escapes = False):
self.data = data
self.pos = 0
self.end = len(data)
self.win32Escapes = win32Escapes
def eat(... | apache-2.0 | -4,915,834,333,598,974,000 | 33.307042 | 79 | 0.416126 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.