repo_name
stringlengths
5
92
path
stringlengths
4
221
copies
stringclasses
19 values
size
stringlengths
4
6
content
stringlengths
766
896k
license
stringclasses
15 values
hash
int64
-9,223,277,421,539,062,000
9,223,102,107B
line_mean
float64
6.51
99.9
line_max
int64
32
997
alpha_frac
float64
0.25
0.96
autogenerated
bool
1 class
ratio
float64
1.5
13.6
config_test
bool
2 classes
has_no_keywords
bool
2 classes
few_assignments
bool
1 class
hamonikr-root/system-config-printer-gnome
PhysicalDevice.py
1
11477
#!/usr/bin/python ## Copyright (C) 2008, 2009, 2010, 2012 Red Hat, Inc. ## Authors: ## Tim Waugh <twaugh@redhat.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 2 of the...
gpl-2.0
6,027,811,522,915,123,000
37.513423
82
0.51442
false
3.847469
false
false
false
timestocome/Test-stock-prediction-algorithms
StockMarketTimeSeriesAnomalies/FindPatterns.py
1
4161
# http://github.com/timestocome import numpy as np import pandas as pd import matplotlib.pyplot as plt # look for signature patterns before very high or low return days # meh, the month before tends to have more extreme returns # and more of them are lower than average, (like an earthquake?) # but there isn't a ...
mit
-3,519,715,092,887,859,700
25.509554
103
0.685652
false
3.043892
false
false
false
avatar29A/pyfuzzy
fuzzy/norm/DualOfHarmonicMean.py
1
1256
# -*- coding: utf-8 -*- # # Copyright (C) 2009 Rene Liebscher # # This program 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....
mit
-4,267,947,875,288,818,700
34.885714
86
0.678344
false
3.598854
false
false
false
PythonT/Crawler
XiuPaiPicMultiCrawler.py
1
2724
#!/usr/bin/env python #coding:utf-8 import urllib import urllib.request from queue import Queue import time,re,threading head = {'User-Agent':'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6'} lock = threading.Lock()# lock to serialize console output def do_work(item): ti...
apache-2.0
-7,517,515,320,149,850,000
35.32
232
0.520558
false
3.885877
false
false
false
mgraupe/acq4
acq4/devices/Laser/LaserTaskGui.py
1
11574
from PyQt4 import QtGui, QtCore from acq4.pyqtgraph import PlotWidget from acq4.devices.DAQGeneric import DAQGenericTaskGui from acq4.util.SequenceRunner import runSequence from acq4.pyqtgraph.functions import siFormat from acq4.pyqtgraph.WidgetGroup import WidgetGroup import taskTemplate from acq4.util.HelpfulExceptio...
mit
6,053,857,047,404,167,000
43.179389
174
0.614654
false
3.886501
false
false
false
momijiame/jpgrep
jpgrep/cmd/jpgrep_cmd.py
1
2779
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys from concurrent import futures from concurrent.futures import ProcessPoolExecutor from concurrent.futures import ThreadPoolExecutor import click from future.utils import text_type from jpgrep.util import get_encoding from jpgrep.util import filepathe...
apache-2.0
1,412,952,036,770,468,900
22.654206
69
0.630581
false
3.009512
false
false
false
kasun/YapDi
examples/basic.py
1
2303
# !/usr/bin/env python ''' YapDi Example - Demonstrate basic YapDi functionality. Author - Kasun Herath <kasunh01@gmail.com> USAGE - python basic.py start|stop|restart python basic.py start would execute count() in daemon mode if there is no instance already running. count() prints a counting n...
isc
1,526,457,386,641,257,200
27.432099
100
0.660443
false
3.720517
false
false
false
padraicc/Evolib
evolib/data/AlignmentObjects.py
1
6446
from evolib.tools.GeneralMethods import create_ids from evolib.stats.StatObjects import IOstats from evolib.generic.AlignmentSite import Site from evolib.data.DataObjects import SeqTable, IOtable from evolib.tools.DNAmethods import booleanDNA, booleanIO from evolib.generic.GeneticSequence import DNAsequence from evo...
mit
-7,136,375,593,400,998,000
25.970711
98
0.489296
false
3.762989
false
false
false
VigneshChennai/BlackPearl
lib/BlackPearl/application.py
1
10798
#!/usr/bin/env python # This file is part of BlackPearl. # BlackPearl 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. # BlackPearl i...
gpl-3.0
-4,571,076,748,584,257,000
39.441948
103
0.514262
false
4.926095
false
false
false
faneshion/MatchZoo
matchzoo/metrics/precision.py
1
1787
"""Precision for ranking.""" import numpy as np from matchzoo.engine.base_metric import BaseMetric, sort_and_couple class Precision(BaseMetric): """Precision metric.""" ALIAS = 'precision' def __init__(self, k: int = 1, threshold: float = 0.): """ :class:`PrecisionMetric` constructor. ...
apache-2.0
-571,538,120,318,125,900
30.350877
68
0.51427
false
3.699793
false
false
false
willcassella/WillowEngine
Scripts/Editor/MeshExporter.py
1
1121
import bpy import bmesh import struct import array # Target file to save to target = "C:/Users/Will/Source/WillowEngine/bin/Content/Maps/Sactuary.wmesh" # Get the active object active = bpy.context.object active.update_from_editmode() # Copy and triangulify it's mesh data mesh = bmesh.new() mesh.from_mesh(active.dat...
mit
-6,927,467,421,728,766,000
25.093023
76
0.67975
false
3.268222
false
false
false
open-synergy/opnsynid-l10n-indonesia
l10n_id_djbc_kite_lap_pemakaian_bahan_baku/reports/djbc_kite_lap_pemakaian_bahan_baku_subkon.py
1
4109
# -*- coding: utf-8 -*- # Copyright 2017 OpenSynergy Indonesia # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from openerp import models, fields from openerp import tools class LapKitePemakaianBahanBakuSubkon(models.Model): _name = "l10n_id.lap_kite_pemakaian_bahan_baku_subkon" _description ...
agpl-3.0
-4,611,849,417,877,237,000
28.992701
76
0.514724
false
3.435619
false
false
false
catseye/T-Rext
src/t_rext/processors.py
1
7130
# encoding: UTF-8 import re class Processor(object): """An abstract base class that defines the protocol for Processor objects. """ def __init__(self, iterable): """Given an iterable of objects, become an iterable of other objects. The two sets of objects need not be the same type. ...
unlicense
2,738,914,160,866,594,000
27.586345
84
0.518123
false
4.404703
false
false
false
ezotrank/wheezy.template
src/wheezy/template/ext/tests/test_determined.py
1
1192
""" Unit tests for ``wheezy.templates.ext.determined``. """ import unittest class DeterminedTestCase(unittest.TestCase): """ Test the ``DeterminedExtension``. """ def setUp(self): from wheezy.template.ext.determined import DeterminedExtension self.preprocess = DeterminedExtension( ...
mit
-1,081,235,211,300,768,900
28.8
70
0.528523
false
4.241993
true
false
false
LighthouseHPC/lighthouse
sandbox/petsc/timing/fix.py
1
1498
#!/usr/bin/env python import glob,os def writefile(fd, newlines, stat): fd.seek(0) fd.write(''.join(newlines)) fd.truncate() fd.close() os.utime(f, (stat.st_atime, stat.st_mtime)) for f in glob.glob("*.log"): stat = os.stat(f) fd = open(f,'r+') newlines = [] lines = fd.readlines() #if n...
mit
-672,911,683,012,588,300
30.87234
104
0.610814
false
2.99002
false
false
false
desihub/desispec
doc/nb/tsnr_refset_etc.py
1
3295
import os import json import numpy as np from astropy.table import Table, join from desispec.io import findfile from desiutil.log import get_logger from pkg_resources import resource_filename log=get_logger() fname='/project/projectdirs/desi/spectro/redux/daily/tsnr-exposures.fits' opath=resource_filename('desisp...
bsd-3-clause
5,179,725,702,002,123,000
31.95
245
0.618816
false
2.913351
false
false
false
docwhite/appleseed
sandbox/shaders/src/compile_shaders.py
1
2324
#!/usr/bin/python # # This source file is part of appleseed. # Visit http://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2015-2016 Esteban Tovagliari, The appleseedhq Organization # # Permission is hereby granted, free of charge, to ...
mit
2,278,735,905,753,137,200
39.068966
116
0.694923
false
3.809836
false
false
false
zapstar/gae-location
main.py
1
5991
#!/usr/bin/env python import os import webapp2 from google.appengine.ext.webapp import template from google.appengine.api import users from google.appengine.ext import db #Data store model class GeoLocation(db.Model): user = db.UserProperty() date = db.DateTimeProperty(auto_now_add = True) #GeoPt object wh...
mit
-1,185,012,889,165,203,500
44.052632
178
0.581372
false
4.097811
false
false
false
prasunkgupta/sca
SCAtool_resize.py
1
5123
# -*- coding: utf-8 -*- # Snow cover area assessment tool using Python # # Created: Fri Apr 25 2014 # Authors: Antara / Prasun (@pkg_sd) # # Published under GPLv3 from PySide import QtCore, QtGui import gdal import numpy import pylab as plt import glob class Ui_Dialog(object): folder = '' files = [] ...
gpl-3.0
-4,829,754,988,613,635,000
38.10687
137
0.635565
false
3.70159
false
false
false
polyanskiy/refractiveindex.info-scripts
scripts/Adachi 1991 - ZnSe.py
1
3247
# -*- coding: utf-8 -*- # Author: Mikhail Polyanskiy # Last modified: 2017-04-09 # Original data: Adachi and Taguchi 1991, https://doi.org/10.1103/PhysRevB.43.9569 import numpy as np import matplotlib.pyplot as plt π = np.pi # parameters from table II E0 = 2.69 #eV Δ0 = 3.10-E0 #eV G0 = 0.017 #eV A = 23.4 ...
gpl-3.0
-7,386,708,689,700,512,000
23.379845
82
0.567112
false
1.905455
false
false
false
pbanaszkiewicz/amy
amy/workshops/migrations/0040_invoice_status.py
1
1412
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models def migrate_invoiced(apps, schema_editor): """Migrate `invoiced` bool field into `invoice_status` text field.""" Event = apps.get_model('workshops', 'Event') # null → 'unknown' Event.objects.filt...
mit
3,336,593,032,867,878,400
35.051282
384
0.633713
false
3.960563
false
false
false
tbicr/osm-validator
init_env.py
1
1437
import os import cryptography.fernet def wizard(): print('This is osm validator setting initialization wizard.') print('Please read and enter a few settings.') print('Press ENTER to continue.') input() print() if os.path.exists('.env'): print('You already have `.env` file, please mov...
mit
4,221,900,792,476,179,500
34.04878
96
0.659708
false
3.801587
false
false
false
Habitissimo/vespapp-web
web/urls.py
1
2169
from django.conf.urls import url from web import views from web.views import HomePageView from web.views import FAQView from web.views import SightingExpertCommentsView from web.views import SightingView from web.views import SightingsView from web.views import SightQuestionView from web.views import LocationsPageView ...
gpl-3.0
-6,261,989,701,574,931,000
50.642857
120
0.693868
false
3.10745
false
true
false
mordred-descriptor/mordred
mordred/BaryszMatrix.py
1
2410
from __future__ import division import numpy as np from networkx import Graph, floyd_warshall_numpy from ._base import Descriptor from ._atomic_property import AtomicProperty, get_properties from ._matrix_attributes import methods, get_method __all__ = ("BaryszMatrix",) class BaryszMatrixBase(Descriptor): expl...
bsd-3-clause
-6,378,623,785,350,799,000
23.343434
84
0.581328
false
3.502907
false
false
false
asadoughi/python-neutronclient
neutronclient/neutron/v2_0/floatingip.py
1
5690
# Copyright 2012 OpenStack Foundation. # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
apache-2.0
-3,693,814,631,943,761,400
36.434211
79
0.620562
false
4.096472
false
false
false
bob48523/modified_wrn
dpn.py
1
3609
'''Dual Path Networks in PyTorch.''' import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable class Bottleneck(nn.Module): def __init__(self, last_planes, in_planes, out_planes, dense_depth, stride, first_layer): super(Bottleneck, self).__init__() sel...
apache-2.0
741,063,464,851,315,500
35.09
116
0.581602
false
2.864286
false
false
false
HookTeam/learning_proj
arcanoid.py
1
11082
import pygame from pygame.locals import * from lib.gameelements import * __version__ = "0.1.1" __author__ = 'MaxA <max.mazin@gmail.com>' WINDOWWIDTH = 480 WINDOWHEIGHT = 640 BARWIDTH = 70 BARHEIGHT = 20 BARCOLOR = (180, 180, 180) BASELINE = 10 BRICKWIDTH = 55 BRICKHEIGHT = 20 BRICKINTERVAL = 4 BRICKCOLOR = (0, ...
gpl-2.0
3,227,290,233,103,899,600
37.884211
107
0.453258
false
2.743069
false
false
false
kmggh/python-guess-number
test_player.py
1
3149
#!/usr/bin/env python # Fri 2013-05-03 23:44:30 -0400 # Copyright (c) 2013 by Ken Guyton. All Rights Reserved. """Test the guess binary player classes.""" __author__ = 'Ken Guyton' import guess_num2 import player import unittest NUM_TO_GUESS = 42 HIGH_GUESS = 50 LOW_GUESS = 21 # Binary search. EXPECTED_SEQUENCE =...
artistic-2.0
2,927,562,909,394,932,000
28.157407
69
0.66402
false
3.075195
true
false
false
Code-ReaQtor/NoCase
nocase/nocase.py
1
2103
#!/usr/bin/python __author__ = 'Ronie Martinez' import re import inspect import sys _camel = re.compile('^[a-z0-9]+([A-Z][a-z0-9]+)+$') _snake = re.compile('^[a-z0-9]+(_[a-z0-9]+)+$') _camel_splitter = re.compile('([A-Z][a-z0-9]+)') def _to_snake_case(string): return '_'.join([m.lower() for m in _camel_splitter....
lgpl-2.1
9,000,033,571,745,704,000
26.671053
129
0.624346
false
3.447541
false
false
false
tboyce1/home-assistant
homeassistant/components/android_ip_webcam.py
2
9799
""" Support for IP Webcam, an Android app that acts as a full-featured webcam. For more details about this component, please refer to the documentation at https://home-assistant.io/components/android_ip_webcam/ """ import asyncio import logging from datetime import timedelta import voluptuous as vol from homeassista...
apache-2.0
3,411,025,067,473,729,500
32.443686
77
0.614961
false
3.675544
true
false
false
Huyuwei/tvm
nnvm/python/nnvm/frontend/onnx.py
1
36119
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
apache-2.0
4,637,215,337,602,989,000
33.796724
100
0.559345
false
3.822521
false
false
false
nealchenzhang/Py4Invst
Backtest_Futures/execution.py
1
2231
# -*- coding: utf-8 -*- # execution.py from abc import ABCMeta, abstractmethod import datetime import queue from Backtest_Futures.event import FillEvent, OrderEvent class ExecutionHandler(object): """ The ExecutionHandler abstract class handles the interaction between a set of order objects generated b...
mit
-8,232,657,005,454,368,000
30
70
0.647692
false
4.903297
false
false
false
dsheets4/Trajic
tmt/MakeSmallTestFile.py
1
2422
# TaxiVis product for analyzing trends in taxi trajectories. # Copyright (C) 2012 David Sheets (dsheets4@kent.edu) # # This 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 ...
gpl-3.0
4,561,901,100,396,659,700
37.444444
79
0.578035
false
3.46
false
false
false
Clemson-DPA/dpa-pipe
setup.py
1
2409
"""Python setuptools installer module""" # ----------------------------------------------------------------------------- from codecs import open from os import pardir, path from setuptools import setup, find_packages # ----------------------------------------------------------------------------- AUTHOR = "Clemson D...
mit
-4,348,415,758,490,599,400
24.09375
79
0.580739
false
3.955665
false
true
false
geminy/aidear
oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/third_party/sfntly/src/cpp/tools/font_data_generator_xml.py
7
2406
# Copyright 2011 Google Inc. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed t...
gpl-3.0
3,879,662,110,680,641,500
37.190476
79
0.682461
false
3.957237
false
false
false
MacHu-GWU/sqlite4dummy-project
sqlite4dummy/tests/sqlite3_in_python/syntax/test_UPDATE.py
1
1070
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function from pprint import pprint as ppt import unittest import sqlite3 import pickle class Unittest(unittest.TestCase): def test_UPDATE(self): connect = sqlite3.connect(":memory:") cursor = connect.cursor() # ...
mit
-4,189,850,799,309,553,700
27.945946
73
0.539252
false
4.068441
true
false
false
WhisperSystems/Signal-iOS
Scripts/sds_codegen/sds_common.py
1
1652
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import subprocess SDS_JSON_FILE_EXTENSION = '.sdsjson' def fail(*args): error = ' '.join(str(arg) for arg in args) raise Exception(error) git_repo_path = os.path.abspath(subprocess.check_output(['git', 'rev-parse', '--show-toplevel']).strip()) print '...
gpl-3.0
8,872,971,926,036,813,000
24.415385
105
0.616223
false
3.176923
false
false
false
tushargit/aakashlab
ac/forms.py
1
10612
from django import forms from django.contrib.auth.models import User # import from ac models from ac.models import Contact from ac.models import Coordinator, AakashCentre, User from ac.models import Project, TeamMember, Mentor ,Manager from captcha.fields import ReCaptchaField class ContactForm(forms.ModelForm): ...
gpl-3.0
7,588,071,567,527,484,000
34.972881
93
0.558707
false
4.475749
false
false
false
jeremiah-c-leary/vhdl-style-guide
vsg/token/selected_force_assignment.py
1
1364
from vsg import parser class with_keyword(parser.keyword): ''' unique_id = selected_force_assignment : with_keyword ''' def __init__(self, sString): parser.keyword.__init__(self, sString) class select_keyword(parser.keyword): ''' unique_id = selected_force_assignment : select_keywo...
gpl-3.0
-1,488,912,512,271,898,400
19.984615
58
0.611437
false
3.810056
false
false
false
danielhers/ucca
uccaapp/export_units_by_filter.py
1
7955
import argparse import os import sys import urllib.request from itertools import product from ucca import layer1, convert from uccaapp.download_task import TaskDownloader desc = "Get all units according to a specified filter. Units that meet any of the filters are output." CONSECUTIVE = "CONSECUTIVE" SUBSEQUENCE = "...
gpl-3.0
-7,023,550,245,908,607,000
46.071006
161
0.603017
false
3.876706
false
false
false
zenodo/invenio
invenio/modules/pages/models.py
1
3345
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 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 of the # License, or (at your option) any...
gpl-2.0
185,426,025,631,271,140
32.45
76
0.609268
false
4.0743
false
false
false
craighiller/serendipity
main.py
1
12699
#!/usr/bin/env python # # Copyright 2007 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 o...
mit
-6,922,116,196,989,017,000
38.933962
405
0.624065
false
3.687282
false
false
false
antchain/antchain.org
web/tx.py
1
17060
# -*- coding:utf-8 -*- import math import web def GetMinerTransactionResult(result) : html = '' html = html + '<div class="container">\n' html = html + '<div class="row">\n' html = html + '<div class="column column-10"><b>'+ _("MinerTransaction") +'</b></div>\n' html = html + '<div class="column"><a href="/tx...
mit
-3,990,035,989,149,739,500
35.375267
290
0.56524
false
2.819835
false
false
false
msincenselee/vnpy
vnpy/app/risk_manager/ui/widget.py
1
5448
from vnpy.event import EventEngine from vnpy.trader.engine import MainEngine from vnpy.trader.ui import QtWidgets from ..engine import APP_NAME class RiskManager(QtWidgets.QDialog): """""" def __init__(self, main_engine: MainEngine, event_engine: EventEngine): """""" super().__init__() ...
mit
756,416,297,767,593,700
37.955224
97
0.624904
false
3.301708
false
false
false
bt3gl/Numerical-Methods-for-Physics
others/ODES/verlet-converge.py
1
3194
# integrate the equations of motion of a pendulum, w/o the small angle # approximation import numpy import pylab import math # global parameters g = 9.81 # gravitational acceleration [m/s] L = 9.81 # length of pendulum [m] class pendulumHistory: """ simple container to store the pendulum history """ ...
apache-2.0
320,792,559,437,235,260
21.814286
102
0.617095
false
2.81162
false
false
false
realitix/vulk
vulk/graphic/d2/batch.py
1
29169
'''BaseBatch module BaseBatch is used by SpriteBatch and BlockBatch. ''' from abc import ABC, abstractmethod from os import path import math from vulk import PATH_VULK_SHADER from vulk import vulkanconstant as vc from vulk import vulkanobject as vo from vulk import vulkanutil as vu from vulk.graphic import mesh as me...
apache-2.0
-6,750,403,882,061,250,000
30.602384
120
0.56536
false
3.866004
false
false
false
buck06191/BayesCMD
bayescmd/abc/dtaidistance/dtw_visualisation.py
1
6156
""" dtaidistance.dtw - Dynamic Time Warping __author__ = "Wannes Meert" __copyright__ = "Copyright 2016 KU Leuven, DTAI Research Group" __license__ = "APL" .. Part of the DTAI distance code. Copyright 2016 KU Leuven, DTAI Research Group Licensed under the Apache License, Version 2.0 (the "License"); ...
gpl-2.0
-4,601,631,592,461,294,000
33.391061
86
0.613385
false
2.971042
false
false
false
armab/st2
st2actions/tests/unit/test_paramiko_remote_script_runner.py
1
5238
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
apache-2.0
2,243,674,468,910,821,400
45.353982
91
0.697213
false
3.956193
true
false
false
adrientetar/robofab
Lib/ufoLib/plistlib.py
1
15077
"""plistlib.py -- a tool to generate and parse MacOSX .plist files. The PropertList (.plist) file format is a simple XML pickle supporting basic object types, like dictionaries, lists, numbers and strings. Usually the top level object is a dictionary. To write out a plist file, use the writePlist(rootObject, pathOrFi...
bsd-3-clause
7,137,606,865,641,836,000
30.942797
152
0.616568
false
3.757976
false
false
false
ngannguyen/aimseqtk
lib/sample.py
1
23967
#Copyright (C) 2013 by Ngan Nguyen # #Released under the MIT license, see LICENSE.txt ''' Object represents a TCR repertoire sample ''' import os import random import copy import time import gzip import cPickle as pickle from jobTree.scriptTree.target import Target from sonLib.bioio import system from sonLib.bioio i...
mit
-7,928,144,477,451,427,000
33.634393
88
0.56728
false
3.494751
false
false
false
monkeymia/js
mmdb/DB_Interface.py
1
14431
#!/usr/bin/env python # -*- coding: utf-8 -*- # # https://github.com/monkeymia/ # # Copyright (c) 2014, monkeymia, All rights reserved. # # 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; e...
lgpl-3.0
2,860,058,342,691,675,000
34.283619
79
0.486591
false
3.891855
false
false
false
alecperkins/py-ninja
examples/web_app.py
1
2984
""" An example web app that displays a list of devices, with links to a page for each device's data. The device page updates every 2 seconds with the latest heartbeat. Note: requires Flask """ from _examples import * from flask import Flask from ninja.api import NinjaAPI import json api = NinjaAPI(secrets.ACCESS...
unlicense
-8,983,361,077,322,436,000
20.163121
98
0.493633
false
3.683951
false
false
false
rmoritz/chessrank
chessrank/server/main.py
1
2072
#! python import pymongo import motor from os import path from tornado.ioloop import IOLoop from tornado.options import options from requesthandlers.api import ApiHandler from requesthandlers.api.player import PlayerHandler from requesthandlers.api.user import UserHandler from requesthandlers.api.tournament import To...
mit
-5,630,893,928,674,735,000
34.118644
82
0.619691
false
3.924242
false
false
false
ErickMurillo/geodjango-example
geodjango/settings.py
1
2225
""" Django settings for geodjango project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) ...
mit
1,494,220,483,510,673,200
23.184783
71
0.722247
false
3.238719
false
false
false
redhat-openstack/trove
trove/guestagent/datastore/experimental/postgresql/pgutil.py
1
8041
# Copyright (c) 2013 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
apache-2.0
-8,859,612,235,505,157,000
30.410156
78
0.599055
false
4.372485
false
false
false
johandry/RosPi
test/distance.py
1
1426
#!/usr/bin/env python import time import RPi.GPIO as GPIO GPIO.setwarnings(False) GPIO_TRIGGER=17 GPIO_ECHO=27 GPIO.setmode(GPIO.BCM) GPIO.setup(GPIO_TRIGGER,GPIO.OUT) GPIO.setup(GPIO_ECHO,GPIO.IN) def getDistance_1(): GPIO.output(GPIO_TRIGGER, GPIO.LOW) time.sleep(0.3) GPIO.output(GPIO_TRIGGER, True) ti...
mit
9,043,258,076,341,595,000
18.805556
76
0.682328
false
2.88664
false
false
false
thanos/ilabs
ilabs/patterns.py
1
10432
""" integration pattern classes for message processing (c) integrationLabs 1996- 2004 coded by: thanos and friends integrationLabs opensource $RCSfile: __init__.py,v $ $Date: 2004/07/16 17:31:19 $ $Revision: 1.3 $ """ from types import ListType, TupleType from ilabs.core import Node, RoutingStrategy, RouteTable,...
isc
-8,347,245,802,435,815,000
25.817481
116
0.689417
false
3.047619
true
false
false
lukeroge/Ralybot
plugins/attacks.py
1
5206
import codecs import json import os import random import asyncio import re from cloudbot import hook from cloudbot.util import textgen nick_re = re.compile("^[A-Za-z0-9_|.\-\]\[]*$", re.I) def is_valid(target): """ Checks if a string is a valid IRC nick. """ if nick_re.match(target): return True ...
gpl-3.0
871,965,403,281,068,200
28.412429
103
0.626201
false
3.496306
false
false
false
kaushik94/sympy
sympy/parsing/autolev/test-examples/ruletest10.py
8
2679
import sympy.physics.mechanics as me import sympy as sm import math as m import numpy as np x, y = me.dynamicsymbols('x y') a, b = sm.symbols('a b', real=True) e = a*(b*x+y)**2 m = sm.Matrix([e,e]).reshape(2, 1) e = e.expand() m = sm.Matrix([i.expand() for i in m]).reshape((m).shape[0], (m).shape[1]) e = sm.factor(e, ...
bsd-3-clause
4,608,471,831,100,164,600
40.859375
116
0.640911
false
1.996274
false
false
false
pombredanne/SmartNotes
mercurial/hgweb/protocol.py
1
6254
# # Copyright 21 May 2005 - (c) 2005 Jake Edge <jake@edge2.net> # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> # # This software may be used and distributed according to the terms # of the GNU General Public License, incorporated herein by reference. import cStringIO, zlib, tempfile, errno, os, sys from mercuria...
gpl-3.0
-9,050,525,145,168,187,000
31.572917
77
0.564119
false
3.729278
false
false
false
blstream/myHoard_Python
myhoard/apps/media/models.py
1
5791
import logging from datetime import datetime from PIL import Image, ImageOps from werkzeug.exceptions import Forbidden, InternalServerError, NotFound from flask import current_app, g from flask.ext.mongoengine import Document from mongoengine import MapField, ImageField, DateTimeField, ObjectIdField, ValidationError ...
apache-2.0
3,235,573,336,128,406,000
31.903409
109
0.619755
false
4.06101
false
false
false
DLR-SC/DataFinder
src/datafinder/gui/user/models/repository/repository.py
1
28254
# $Filename$ # $Authors$ # Last Changed: $Date$ $Committer$ $Revision-Id$ # # Copyright (c) 2003-2011, German Aerospace Center (DLR) # #Redistribution and use in source and binary forms, with or without # All rights reserved. #modification, are permitted provided that the following conditions are #met: # # ...
bsd-3-clause
-2,833,630,415,100,707,300
38.888567
133
0.581369
false
4.732663
false
false
false
ChrisFadden/PartyTowers
webrouter.py
1
4597
# This file runs the websockets. import string, cgi, time import sys sys.path.insert(0, 'PyWebPlug') from wsserver import * from time import sleep def setupMessages(): return class Client: def __init__(self, socket): self.socket = socket self.needsConfirmation = True def handle(se...
mit
5,511,224,919,330,852,000
24.971751
96
0.510115
false
4.141441
false
false
false
BrainTech/openbci
obci/interfaces/hybrid/p300etr/signalAnalysis.py
1
3428
#!/usr/bin/env python #-*- coding: utf-8 -*- """ Modul dedicated for signal analysis. Author: Dawid Laszuk Contact: laszukdawid@gmail.com """ from scipy.signal import butter, buttord from scipy.signal import filtfilt, lfilter from scipy.signal import cheb2ord, cheby2 import numpy as np import sys class DataAnalysi...
gpl-3.0
-3,986,371,602,798,707,700
27.566667
119
0.527421
false
2.771221
false
false
false
skosukhin/spack
var/spack/repos/builtin/packages/dia/package.py
1
2553
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
lgpl-2.1
524,486,476,142,904,800
37.681818
107
0.62358
false
3.673381
false
false
false
iansmcf/busybees
busybees/hive.py
1
3541
import threading import logging import operator import locked_queue import queen_dir import queen import worker # imports for high-level scheduling import random import job_list # configures debug logging? logging.basicConfig(filename='/tmp/hive.log', level=logging.DEBUG, format='%(asctime)s (%(threadName)-2s...
bsd-3-clause
-6,159,453,586,008,030,000
32.72381
120
0.709122
false
3.018755
false
false
false
madre/analytics_nvd3
django_nvd3/templatetags/nvd3_tags.py
1
4675
from django.template.defaultfilters import register from django.utils.safestring import mark_safe from django.conf import settings from nvd3.NVD3Chart import NVD3Chart from nvd3 import lineWithFocusChart, lineChart, \ multiBarChart, pieChart, stackedAreaChart, \ multiBarHorizontalChart, linePlusBarChart, \ ...
apache-2.0
-5,722,957,427,420,694,000
32.633094
95
0.614118
false
3.402475
false
false
false
kgilmo/penning_artiq
examples/master/repository/photon_histogram.py
1
1824
from artiq import * class PhotonHistogram(EnvExperiment): """Photon histogram""" def build(self): self.setattr_device("core") self.setattr_device("dds_bus") self.setattr_device("bd_dds") self.setattr_device("bd_sw") self.setattr_device("bdd_dds") self.setattr_d...
gpl-3.0
5,865,015,544,503,428,000
25.057143
63
0.549342
false
3.352941
false
false
false
hansroh/skitai
tools/benchmark/skitaiapp.py
1
1808
#!/usr/bin/python from atila import Atila import shutil, os app =Alita (__name__) app.debug = True app.use_reloader = True app.securekey = "iodfjksdfkjsdhkfjsd0987987sdf" app.realm = "Skitai API" app.user = "app" app.password = "1111" app.authorization = "digest" MULTIPART = """ <form action = "/" enctype="multipar...
mit
3,297,317,775,655,858,700
23.767123
87
0.621128
false
2.639416
false
false
false
kristianeschenburg/parcellearning
parcellearning/cgat/cgat.py
1
5303
from parcellearning.conv.cgatconv import CGATConv import numpy as np import dgl from dgl import data from dgl.data import DGLDataset import dgl.function as fn from dgl.nn.pytorch import edge_softmax import torch import torch.nn as nn import torch.nn.functional as F class CGAT(nn.Module): """ Instantiate...
mit
6,641,609,600,299,827,000
32.77707
88
0.441448
false
4.919295
false
false
false
zarmstrong/raspberrypi
buttondoubletime.py
1
4470
#!/usr/bin/env python import RPi.GPIO as GPIO import time import thread SDI = 11 RCLK = 12 SRCLK = 13 SDIB = 15 RCLKB = 16 SRCLKB = 18 BTN = 22 segCode = [0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0x40,0x80] #code0=0x3f #code1=0x06 #code2=0x5b #code3=0x4f #code4=0x66 #code5=...
gpl-3.0
-138,420,117,470,972,080
29.408163
101
0.501566
false
3.486739
false
false
false
mafshar/lost-n-found-service
app/app/settings.py
1
2840
#Mohammad Afshar, @mafshar, ma2510@nyu.edu """ Django settings for app project. Generated by 'django-admin startproject' using Django 1.10.3. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject....
apache-2.0
-1,344,660,734,142,850,300
25.296296
72
0.689789
false
3.287037
false
false
false
FedericoCeratto/debian-py3status
py3status/modules/dpms.py
1
1188
# -*- coding: utf-8 -*- """ This module allows activation and deactivation of DPMS (Display Power Management Signaling) by clicking on 'DPMS' in the status bar. Written and contributed by @tasse: Andre Doser <dosera AT tf.uni-freiburg.de> """ from os import system class Py3status: def __init__(self): ...
bsd-2-clause
-3,580,776,968,557,446,700
25.4
70
0.526936
false
3.633028
false
false
false
MrKepzie/Natron-Tests
TestPY/test___01.py
1
2726
from __future__ import print_function import NatronEngine f1 = open('test___01-output.txt','w+') reader = app.createNode("fr.inria.openfx.ReadOIIO") writer = app.createNode("fr.inria.openfx.WriteOIIO") blur = app.createNode("net.sf.cimg.CImgBlur") reader = app.Read1 writer = app.Write1 blur = app.BlurCImg1 print(blu...
gpl-2.0
-3,707,290,140,379,969,500
29.629213
159
0.731842
false
2.466968
false
true
false
YutingZhang/lmdis-rep
net_modules/auto_struct/generic_decoder.py
1
14641
from abc import ABCMeta, abstractmethod import tensorflow as tf import prettytensor as pt import zutils.tf_math_funcs as tmf import net_modules.auto_struct.utils as asu from net_modules import keypoints_2d from net_modules.distribution_utils import reshape_extended_features from zutils.py_utils import * import zutils.p...
apache-2.0
-3,684,738,132,048,602,000
42.966967
120
0.612868
false
3.856955
false
false
false
JoshBorke/redline
budgets/models.py
1
3890
import datetime from decimal import Decimal from django.db import models from redline.categories.models import Category, StandardMetadata, ActiveManager from redline.transactions.models import Transaction class BudgetManager(ActiveManager): def most_current_for_date(self, date): return super(BudgetManager,...
gpl-3.0
9,138,809,675,651,087,000
35.018519
119
0.674807
false
3.933266
false
false
false
TaskEvolution/Task-Coach-Evolution
taskcoach/taskcoachlib/thirdparty/gntp/__init__.py
1
13824
import re import hashlib import time import StringIO __version__ = '0.8' #GNTP/<version> <messagetype> <encryptionAlgorithmID>[:<ivValue>][ <keyHashAlgorithmID>:<keyHash>.<salt>] GNTP_INFO_LINE = re.compile( 'GNTP/(?P<version>\d+\.\d+) (?P<messagetype>REGISTER|NOTIFY|SUBSCRIBE|\-OK|\-ERROR)' + ' (?P<encryptionAlgor...
gpl-3.0
7,948,145,079,560,482,000
26.159136
105
0.68627
false
3.149692
false
false
false
danielru/pySDC
pySDC/implementations/problem_classes/GeneralizedFisher_1D_FD_implicit.py
1
6049
from __future__ import division import numpy as np import scipy.sparse as sp from scipy.sparse.linalg import spsolve from pySDC.core.Problem import ptype from pySDC.core.Errors import ParameterError, ProblemError # noinspection PyUnusedLocal class generalized_fisher(ptype): """ Example implementing the gene...
bsd-2-clause
7,795,971,368,924,652,000
35.439759
119
0.535791
false
3.362424
false
false
false
pgfoster/p4-phylogenetics
p4/mcmccheckpointreader.py
1
8159
import os import p4.func import pickle import math import numpy import glob from p4.p4exceptions import P4Error class McmcCheckPointReader(object): """Read in and display mcmc_checkPoint files. Three options-- To read in a specific checkpoint file, specify the file name by fName=whatever To re...
gpl-2.0
-2,065,459,768,183,199,200
36.086364
104
0.530702
false
3.670265
false
false
false
PapenfussLab/MHC-clogs
lib/mhc/proteintools.py
1
7336
""" proteintools.py """ import re import string from mhc.data import * from mhc.biomart import * from mhc.hmmer2 import * from mungolite.fasta import FastaFile class Protein: """ Container for protein data. """ def __init__(self, ensembl_protein_id=None, ensembl_transcript_id=None, ...
artistic-2.0
114,229,983,989,476,510
33.441315
124
0.589558
false
3.385325
false
false
false
gvx/deja
dis.py
1
3209
import struct from bytecode import ( OPCODES, unsigned_int_s, signed_int_s, double_s, signed_long_int_s, unsigned_long_int_s, signed_char_s, positional_instructions ) from strquot import quote DECODE_OPCODES = {} for k in OPCODES: DECODE_OPCODES[OPCODES[k] / 0x1000000] = k WORD_ARG = set('GET SET GET_GLOBAL SET_GL...
isc
-680,923,642,128,849,900
26.904348
100
0.609847
false
2.534755
false
false
false
Seldaiendil/meyeOS
devtools/qooxdoo-1.5-sdk/tool/pylib/generator/code/Class.py
1
11441
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################################ # # qooxdoo - the new era of web development # # http://qooxdoo.org # # Copyright: # 2010-2010 1&1 Internet AG, Germany, http://www.1und1.de # # License: # LGPL: http://www.gnu.org/li...
agpl-3.0
-8,735,955,568,168,217,000
37.914966
119
0.558081
false
3.935673
false
false
false
ios-xr/iosxr-ansible
local/library/iosxr_show_install_last_log.py
1
2176
#!/usr/bin/python #------------------------------------------------------------------------------ # # Copyright (C) 2016 Cisco Systems, Inc. # # 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 Fou...
gpl-3.0
5,030,021,011,373,954,000
36.517241
92
0.59329
false
4.523909
false
false
false
MCLConsortium/mcl-site
src/jpl.mcl.site.sciencedata/src/jpl/mcl/site/sciencedata/interfaces.py
1
1169
# encoding: utf-8 u'''MCL Site Knowledge — interfaces.''' from . import MESSAGE_FACTORY as _ from zope import schema from zope.interface import Interface class IIngestor(Interface): u'''Interface for objects that are ingestors.''' def ingest(): u'''Ingest data from your RDF source and populate your ...
apache-2.0
-6,736,158,160,591,152,000
31.416667
122
0.644387
false
4.138298
false
false
false
markgw/jazzparser
src/jazzparser/formalisms/music_halfspan/semantics/distance.py
1
20539
"""Semantic distance metrics. """ """ ============================== License ======================================== Copyright (C) 2008, 2010-12 University of Edinburgh, Mark Granroth-Wilding This file is part of The Jazz Parser. The Jazz Parser is free software: you can redistribute it and/or modify it under...
gpl-3.0
4,548,497,790,447,544,000
40.242972
102
0.542431
false
4.421744
false
false
false
AntonioMtn/NZBMegaSearch
werkzeug/local.py
1
13380
# -*- coding: utf-8 -*- """ werkzeug.local ~~~~~~~~~~~~~~ This module implements context-local objects. :copyright: (c) 2011 by the Werkzeug Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from wsgi import ClosingIterator from _internal import _patch_wrapper #...
gpl-2.0
-5,777,710,656,410,376,000
32.959391
78
0.577055
false
3.966795
false
false
false
robynsen/adventofcode2016
aoc10-part1.py
1
2772
import re def add_value(my_bots, bot_i, val_n): if bot_i in my_bots: my_bots[bot_i].append(val_n) else: my_bots[bot_i] = [val_n] def transfer_chips(my_bots, bot_id): # note: does not cater to both high and low going to same bot that currently holds one chip for key, v...
mit
4,804,833,572,897,079,000
35.972603
113
0.516955
false
3.343788
false
false
false
HewlettPackard/oneview-ansible
library/module_utils/icsp.py
1
2419
#!/usr/bin/python # -*- coding: utf-8 -*- ### # Copyright 2017 Hewlett Packard Enterprise Development LP # # 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/LIC...
apache-2.0
825,880,208,411,244,400
35.104478
114
0.625052
false
4.106961
false
false
false
donnell74/CSC-450-Scheduler
genetic/interface.py
1
50921
import csv from structures import * import os import yaml import xml.etree.ElementTree as ET from scheduler import * from time import strftime, gmtime from weakref import ref from datetime import date, time as time_obj import constraint from Tkinter import Tk from tkMessageBox import showinfo def course_has_all_attri...
mit
4,397,106,580,024,335,400
42.821859
133
0.560319
false
4.320465
false
false
false
slackapi/python-slackclient
slack_sdk/models/views/__init__.py
1
8553
import copy import logging from typing import List, Optional, Union, Dict from slack_sdk.models.basic_objects import JsonObject, JsonValidator from slack_sdk.models.blocks import Block, TextObject, PlainTextObject, Option class View(JsonObject): """View object for modals and Home tabs. https://api.slack.com...
mit
-5,961,893,389,910,910,000
35.241525
99
0.582836
false
3.871888
false
false
false
alirizakeles/tendenci
tendenci/apps/profiles/management/commands/update_admin_group_perms.py
1
1507
from django.core.management.base import BaseCommand, CommandError from django.contrib.auth.models import Group as Auth_Group, Permission from django.contrib.contenttypes.models import ContentType from django.conf import settings class Command(BaseCommand): # create an admin auth group if it doesn't exists, and ass...
gpl-3.0
9,070,616,667,420,341,000
43.323529
91
0.668879
false
4.33046
false
false
false
prculley/gramps
gramps/gui/views/navigationview.py
1
17531
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2001-2007 Donald N. Allingham # Copyright (C) 2009-2010 Nick Hall # # 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 v...
gpl-2.0
7,257,362,902,535,874,000
33.646245
84
0.541384
false
4.179023
false
false
false
python-odin/odinweb
odinweb/decorators.py
1
20305
""" Decorators ~~~~~~~~~~ A collection of decorators for identifying the various types of route. """ from __future__ import absolute_import import odin from odin.exceptions import ValidationError from odin.utils import force_tuple, lazy_property, getmeta from .constants import HTTPStatus, Method, Type from .data_s...
bsd-3-clause
8,623,202,511,612,728,000
34.4363
119
0.606304
false
4.249686
true
false
false
Mgamerz/fsoi_plugins
FSOI_Plugins/Plugins/Desktoppr/DesktopprPlugin.py
1
2766
import SourceBase class DesktopprPlugin(SourceBase.SourceBase): pluginid = '_fsiplugin_desktoppr' #OVERRIDE THIS IN YOUR SUBCLASS. If you don't, the program will ignore your plugin. sourcename = 'Desktoppr' sourceurl = 'http://Desktoppr.co' def __init__(self): '''Your plugin will b...
gpl-3.0
-8,432,820,261,917,502,000
51.230769
156
0.670282
false
4.680203
false
false
false
Mikescher/Project-Euler_Befunge
compiled/Python2/Euler_Problem-024.py
1
3038
#!/usr/bin/env python2 # transpiled with BefunCompile v1.3.0 (c) 2017 import sys import zlib, base64 _g = ("AR+LCAAAAAAABACdUDGOAyEM/AoHW7FBYna5XIKQdQ9B3BUr0VJZKXj8mZAUKXMuzGA8nsHsse3h8/x1uaq3g/RxHNpa8PtcxQ3btQEu/YP8NMA0pWdODzAm0sSU4TLf" + "qw1hRUVItKFGrJ36QD5ThIum/DDZPM4ldiHuaApBkqAaUC1Qfz/6Q3l59bFAFZFs54tluRSpdadv...
mit
7,913,050,719,196,176,000
16.45977
136
0.505925
false
2.07372
false
false
false
lambdamusic/testproject
konproj/apps/registration/backends/default/__init__.py
1
5254
from django.conf import settings from django.contrib.sites.models import RequestSite from django.contrib.sites.models import Site from registration import signals from registration.forms import RegistrationForm from registration.models import RegistrationProfile class DefaultBackend(object): """ A registration bac...
gpl-2.0
-193,884,851,103,439,680
33.116883
87
0.730681
false
4.022971
false
false
false
IronLanguages/ironpython3
Tests/test_ipye.py
1
8082
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information. ## ## Testing IronPython Engine ## from iptest.assert_util import * skiptest("win32") import sys remove_ironpy...
apache-2.0
-117,330,867,685,867,000
37.669856
354
0.682876
false
3.887446
true
false
false
NikNitro/Python-iBeacon-Scan
sympy/core/numbers.py
1
109599
from __future__ import print_function, division import decimal import fractions import math import warnings import re as regex from collections import defaultdict from .containers import Tuple from .sympify import converter, sympify, _sympify, SympifyError from .singleton import S, Singleton from .expr import Expr, A...
gpl-3.0
5,382,836,522,082,844,000
28.597353
108
0.533299
false
3.900876
false
false
false
pdeesawat/PSIT58_test_01
Test_Python_code/final_code/Malaysia/epidemic.py
1
2085
import plotly.plotly as py import plotly.graph_objs as go #Get data data = open('Real_Final_database_02.csv') alldata = data.readlines() listdata = [] for i in alldata: listdata.append(i.strip().split(',')) #Seperate information year = [] affect = [] damage = [] death =[] for j in listdata: if j[0] == 'Malays...
apache-2.0
-5,695,956,762,500,826,000
20.060606
49
0.52518
false
3.183206
false
false
false
levilucio/SyVOLT
UMLRT2Kiltera_MM/transformation_reduced/Himesis/HState2ProcDef.py
1
9626
from core.himesis import Himesis import cPickle as pickle from uuid import UUID class HState2ProcDef(Himesis): def __init__(self): """ Creates the himesis graph representing the AToM3 model HState2ProcDef. """ # Flag this instance as compiled now self.is_compiled = True ...
mit
1,067,458,510,316,786,800
53.384181
536
0.511947
false
2.495722
false
false
false