hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 | qsc_code_num_words_quality_signal int64 | qsc_code_num_chars_quality_signal float64 | qsc_code_mean_word_length_quality_signal float64 | qsc_code_frac_words_unique_quality_signal float64 | qsc_code_frac_chars_top_2grams_quality_signal float64 | qsc_code_frac_chars_top_3grams_quality_signal float64 | qsc_code_frac_chars_top_4grams_quality_signal float64 | qsc_code_frac_chars_dupe_5grams_quality_signal float64 | qsc_code_frac_chars_dupe_6grams_quality_signal float64 | qsc_code_frac_chars_dupe_7grams_quality_signal float64 | qsc_code_frac_chars_dupe_8grams_quality_signal float64 | qsc_code_frac_chars_dupe_9grams_quality_signal float64 | qsc_code_frac_chars_dupe_10grams_quality_signal float64 | qsc_code_frac_chars_replacement_symbols_quality_signal float64 | qsc_code_frac_chars_digital_quality_signal float64 | qsc_code_frac_chars_whitespace_quality_signal float64 | qsc_code_size_file_byte_quality_signal float64 | qsc_code_num_lines_quality_signal float64 | qsc_code_num_chars_line_max_quality_signal float64 | qsc_code_num_chars_line_mean_quality_signal float64 | qsc_code_frac_chars_alphabet_quality_signal float64 | qsc_code_frac_chars_comments_quality_signal float64 | qsc_code_cate_xml_start_quality_signal float64 | qsc_code_frac_lines_dupe_lines_quality_signal float64 | qsc_code_cate_autogen_quality_signal float64 | qsc_code_frac_lines_long_string_quality_signal float64 | qsc_code_frac_chars_string_length_quality_signal float64 | qsc_code_frac_chars_long_word_length_quality_signal float64 | qsc_code_frac_lines_string_concat_quality_signal float64 | qsc_code_cate_encoded_data_quality_signal float64 | qsc_code_frac_chars_hex_words_quality_signal float64 | qsc_code_frac_lines_prompt_comments_quality_signal float64 | qsc_code_frac_lines_assert_quality_signal float64 | qsc_codepython_cate_ast_quality_signal float64 | qsc_codepython_frac_lines_func_ratio_quality_signal float64 | qsc_codepython_cate_var_zero_quality_signal bool | qsc_codepython_frac_lines_pass_quality_signal float64 | qsc_codepython_frac_lines_import_quality_signal float64 | qsc_codepython_frac_lines_simplefunc_quality_signal float64 | qsc_codepython_score_lines_no_logic_quality_signal float64 | qsc_codepython_frac_lines_print_quality_signal float64 | qsc_code_num_words int64 | qsc_code_num_chars int64 | qsc_code_mean_word_length int64 | qsc_code_frac_words_unique null | qsc_code_frac_chars_top_2grams int64 | qsc_code_frac_chars_top_3grams int64 | qsc_code_frac_chars_top_4grams int64 | qsc_code_frac_chars_dupe_5grams int64 | qsc_code_frac_chars_dupe_6grams int64 | qsc_code_frac_chars_dupe_7grams int64 | qsc_code_frac_chars_dupe_8grams int64 | qsc_code_frac_chars_dupe_9grams int64 | qsc_code_frac_chars_dupe_10grams int64 | qsc_code_frac_chars_replacement_symbols int64 | qsc_code_frac_chars_digital int64 | qsc_code_frac_chars_whitespace int64 | qsc_code_size_file_byte int64 | qsc_code_num_lines int64 | qsc_code_num_chars_line_max int64 | qsc_code_num_chars_line_mean int64 | qsc_code_frac_chars_alphabet int64 | qsc_code_frac_chars_comments int64 | qsc_code_cate_xml_start int64 | qsc_code_frac_lines_dupe_lines int64 | qsc_code_cate_autogen int64 | qsc_code_frac_lines_long_string int64 | qsc_code_frac_chars_string_length int64 | qsc_code_frac_chars_long_word_length int64 | qsc_code_frac_lines_string_concat null | qsc_code_cate_encoded_data int64 | qsc_code_frac_chars_hex_words int64 | qsc_code_frac_lines_prompt_comments int64 | qsc_code_frac_lines_assert int64 | qsc_codepython_cate_ast int64 | qsc_codepython_frac_lines_func_ratio int64 | qsc_codepython_cate_var_zero int64 | qsc_codepython_frac_lines_pass int64 | qsc_codepython_frac_lines_import int64 | qsc_codepython_frac_lines_simplefunc int64 | qsc_codepython_score_lines_no_logic int64 | qsc_codepython_frac_lines_print int64 | effective string | hits int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dcadba06d3d1dd54ece65a8004a3986299c7345c | 679 | py | Python | python/convertSVGs.py | JustgeekDE/imdb-visualizations | ebadb8b06b956f0a07a344370457926ad496434e | [
"Unlicense"
] | null | null | null | python/convertSVGs.py | JustgeekDE/imdb-visualizations | ebadb8b06b956f0a07a344370457926ad496434e | [
"Unlicense"
] | null | null | null | python/convertSVGs.py | JustgeekDE/imdb-visualizations | ebadb8b06b956f0a07a344370457926ad496434e | [
"Unlicense"
] | null | null | null | '''
Created on 10.08.2014
@author: Philip Peter <philip.peter@justgeek.de>
As long as you retain this notice you can do whatever you want with this stuff.
If we meet some day, and you think this stuff is worth it, you can buy me a
beer in return
Philip Peter
'''
import os
if __name__ == '__main__':
pass
inputDir = '../plots/svg/'
outputDir = '../plots/'
width = 1800
heigth = 1200
for item in os.listdir(inputDir):
split = item.split(".")
if split[-1] == "svg":
filename = '.'.join(split[:-1])
print "Converting "+filename
os.system("inkscape.exe -z -e "+outputDir+filename+".png -w " + str(width) + " -h " + str(heigth) + " "+inputDir+item)
| 23.413793 | 122 | 0.648012 | 103 | 679 | 4.194175 | 0.669903 | 0.076389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033149 | 0.200295 | 679 | 28 | 123 | 24.25 | 0.762431 | 0 | 0 | 0 | 0 | 0 | 0.188406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.076923 | 0.076923 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f49f790d9571cf03ed43cb10b00ff30ef123ff75 | 961 | py | Python | v2.5.7/toontown/racing/DistributedKartPadAI.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 4 | 2019-07-01T15:46:43.000Z | 2021-07-23T16:26:48.000Z | v2.5.7/toontown/racing/DistributedKartPadAI.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 1 | 2019-06-29T03:40:05.000Z | 2021-06-13T01:15:16.000Z | v2.5.7/toontown/racing/DistributedKartPadAI.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 4 | 2019-07-28T21:18:46.000Z | 2021-02-25T06:37:25.000Z | from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectAI import DistributedObjectAI
class DistributedKartPadAI(DistributedObjectAI):
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedKartPadAI')
def __init__(self, air):
DistributedObjectAI.__init__(self, air)
self.air = air
self.startingBlocks = []
self.area = None
return
def setArea(self, area):
self.area = area
def d_setArea(self, area):
self.sendUpdate('setArea', [area])
def b_setArea(self, area):
self.setArea(area)
self.d_setArea(self, area)
def getArea(self):
return self.area
def addStartingBlock(self, block):
self.startingBlocks.append(block)
def updateMovieState(self):
pass
def removeStartingBlock(self, block):
if self.startingBlocks.count(block):
self.startingBlocks.remove(block) | 27.457143 | 80 | 0.679501 | 96 | 961 | 6.6875 | 0.34375 | 0.087227 | 0.093458 | 0.088785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231009 | 961 | 35 | 81 | 27.457143 | 0.868742 | 0 | 0 | 0 | 0 | 0 | 0.028067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0.038462 | 0.076923 | 0.038462 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f4a7996845ec8bc3004f9b2f07ce077ddf8b18ec | 214 | py | Python | src/video_retrieval/FrameSaver.py | DoodleBobBuffPants/EyesInTheSky | 1bd18fc40631b0046cbd029a48413f31a63afcca | [
"MIT"
] | null | null | null | src/video_retrieval/FrameSaver.py | DoodleBobBuffPants/EyesInTheSky | 1bd18fc40631b0046cbd029a48413f31a63afcca | [
"MIT"
] | null | null | null | src/video_retrieval/FrameSaver.py | DoodleBobBuffPants/EyesInTheSky | 1bd18fc40631b0046cbd029a48413f31a63afcca | [
"MIT"
] | null | null | null | # save frames asynchronously
import cv2 as cv
def frame_saver(queue, lock):
while True:
lock.take_lock()
cv.imwrite("frame.jpg", queue.peek()) # peek non existent
lock.release_lock()
| 21.4 | 66 | 0.649533 | 29 | 214 | 4.689655 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.242991 | 214 | 9 | 67 | 23.777778 | 0.833333 | 0.205607 | 0 | 0 | 0 | 0 | 0.053892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f4aadeae1ada83a420b6b77187f7404ea44db94a | 1,529 | py | Python | zhiwehu/post/urls.py | zhiwehu/zhiwehu | 4d07fa14fc00d5544226326161a0efc2d1202329 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2021-05-15T17:40:21.000Z | 2021-05-15T17:40:21.000Z | zhiwehu/post/urls.py | zhiwehu/zhiwehu | 4d07fa14fc00d5544226326161a0efc2d1202329 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | zhiwehu/post/urls.py | zhiwehu/zhiwehu | 4d07fa14fc00d5544226326161a0efc2d1202329 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from .views import PostListView, PostDetailView
urlpatterns = patterns('',
# URL pattern for the PostListView # noqa
url(
regex=r'^$',
view=PostListView.as_view(),
name='post_list'
),
url(
regex=r'^category/(?P<category>[\w-]+)/$',
view=PostListView.as_view(),
name='category_post_list'
),
url(
regex=r'^tag/(?P<tag>[\w-]+)/$',
view=PostListView.as_view(),
name='tag_post_list'
),
url(
regex=r'^(?P<year>\d{4})/(?P<month>\d{1,2})/$',
view=PostListView.as_view(),
name='archive_post_list'
),
url(
regex=r'^blog/(?P<slug>[\w-]+)/$',
view=PostDetailView.as_view(),
name='post_detail'
),
url(
regex=r'^add/comment/$',
view='post.views.add_comment',
name='add_comment',
),
) | 35.55814 | 74 | 0.325049 | 110 | 1,529 | 4.381818 | 0.372727 | 0.099585 | 0.112033 | 0.182573 | 0.360996 | 0.112033 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0.555265 | 1,529 | 43 | 75 | 35.55814 | 0.702941 | 0.039895 | 0 | 0.470588 | 0 | 0 | 0.158362 | 0.093515 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f4af472ea7697545e5951704f8ee5043fcc2bdef | 95 | py | Python | freight/__init__.py | buahaha/aa-freight | 69eb85188988d7cfaffc7c485d22ddb442a4a2b3 | [
"MIT"
] | null | null | null | freight/__init__.py | buahaha/aa-freight | 69eb85188988d7cfaffc7c485d22ddb442a4a2b3 | [
"MIT"
] | null | null | null | freight/__init__.py | buahaha/aa-freight | 69eb85188988d7cfaffc7c485d22ddb442a4a2b3 | [
"MIT"
] | null | null | null | default_app_config = "freight.apps.FreightConfig"
__version__ = "1.5.1"
__title__ = "Freight"
| 19 | 49 | 0.757895 | 12 | 95 | 5.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.105263 | 95 | 4 | 50 | 23.75 | 0.694118 | 0 | 0 | 0 | 0 | 0 | 0.4 | 0.273684 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f4b531bd4f8e27016a07006efb457088789ed103 | 368 | py | Python | copycat01.py | OneOfaKindGeek/mycode | bbb4391b333aaa1667314b76393f2102c05a2571 | [
"Apache-2.0"
] | null | null | null | copycat01.py | OneOfaKindGeek/mycode | bbb4391b333aaa1667314b76393f2102c05a2571 | [
"Apache-2.0"
] | null | null | null | copycat01.py | OneOfaKindGeek/mycode | bbb4391b333aaa1667314b76393f2102c05a2571 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# import additional code to complete our task
import shutil
import os
# move into the working directory
os.chdir("/home/student/mycode/")
# copy the fileA to fileB
shutil.copy("5g_research/sdn_network.txt", "5g_research/sdn_network.txt.copy")
# copy the entire directoryA to directoryB
shutil.copytree("5g_research/", "5g_research_backup/")
| 24.533333 | 78 | 0.774457 | 56 | 368 | 4.964286 | 0.625 | 0.143885 | 0.093525 | 0.143885 | 0.165468 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015337 | 0.11413 | 368 | 14 | 79 | 26.285714 | 0.837423 | 0.440217 | 0 | 0 | 0 | 0 | 0.552239 | 0.39801 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f4bec0b744cca8c20ff1afc50477b19675f4e48d | 2,559 | py | Python | prepper.py | shawntan/quora-codesprint-2013 | 50a119ccb22cdb8bc081cc27f3d68442c0885b82 | [
"Unlicense"
] | 3 | 2016-01-24T06:22:10.000Z | 2016-06-15T00:16:56.000Z | prepper.py | shawntan/quora-codesprint-2013 | 50a119ccb22cdb8bc081cc27f3d68442c0885b82 | [
"Unlicense"
] | null | null | null | prepper.py | shawntan/quora-codesprint-2013 | 50a119ccb22cdb8bc081cc27f3d68442c0885b82 | [
"Unlicense"
] | null | null | null | import json,sys,re,math
from random import random
import numpy as np
from pprint import pprint
from sklearn import svm
from sklearn.pipeline import Pipeline
from sklearn.feature_extraction.text import CountVectorizer,TfidfTransformer
from sklearn.feature_extraction import DictVectorizer
from sklearn.naive_bayes import MultinomialNB,GaussianNB
from sklearn.linear_model import SGDClassifier,LogisticRegression
from sklearn.ensemble import RandomForestClassifier
from sklearn.svm import SVC,LinearSVC,SVR
from sklearn.linear_model import *
from nltk.tokenize import wordpunct_tokenize
from nltk.corpus import stopwords
from nltk.corpus import words
stopwords = [
w for w in stopwords.words('english')
if w not in ['who','what','when','where','how','is']
]
def word_tokenize_filter(string):
return [ w for w in wordpunct_tokenize(string) if not re.match(r'^[\'\"\:\;\.\,\!]$',w) ]
#eng_words = set([ w.lower() for w in words.words('en') ])
def prep_words(training_data,target,clsf,n):
counter = CountVectorizer(
tokenizer=word_tokenize_filter,
# stop_words=stopwords,
binary=True,
dtype=np.byte,
ngram_range = (1,1),
min_df = 1
)
model = Pipeline([
('vect',counter),
('clsf',clsf)
])
training_data = [ d['question_text'] for d in training_data ]
#training_data = input_data[1:5000]
model.fit(training_data,target)
words = counter.get_feature_names()
weights = np.abs(clsf.coef_)
important = zip(weights,words)
important.sort()
print [ w for _,w in important[-n:] ]
def prep_topics(training_data,target,clsf,n):
counter = DictVectorizer()
model = Pipeline([
('vect',counter),
('clsf',clsf)
])
training_count = int(sys.stdin.next())
training_data = [ { t['name']:1 for t in d['topics']} for d in training_data ]
#training_data = input_data[1:5000]
model.fit(training_data,target)
words = counter.get_feature_names()
weights = clsf.coef_.toarray()[0]
important = zip(abs(weights),words)
important.sort()
print [ w for _,w in important[-n:] ]
if __name__=="__main__":
training_count = int(sys.stdin.next())
training_data = [ json.loads(sys.stdin.next()) for _ in xrange(training_count) ]
target = [ math.log(math.log(obj['__ans__']+1)+1) for obj in training_data ]
#prep_topics(training_data,target,SVR(kernel='linear'),50)
#prep_words(training_data,target,Ridge(),200)
training_data.sort(key=lambda x:x['__ans__'])
for i in training_data:
print "%0.3f %s"%(math.log(math.log(i['__ans__']+0.9)+0.9),i['question_text'].encode('utf-8'))
| 34.12 | 96 | 0.718249 | 370 | 2,559 | 4.775676 | 0.335135 | 0.108659 | 0.061121 | 0.015846 | 0.36446 | 0.290889 | 0.256933 | 0.216186 | 0.170911 | 0.170911 | 0 | 0.013218 | 0.142634 | 2,559 | 74 | 97 | 34.581081 | 0.79216 | 0.098476 | 0 | 0.290323 | 0 | 0.048387 | 0.054348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.354839 | null | null | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f4cbf5dfb144c1dccb1554376a7cd38916728ee3 | 2,040 | py | Python | sandbox/simstream/simstream/eventmonitor.py | docquantum/airavata | 4ec5fa0aab1b75ca1e98a16648c57cd8abdb4b9c | [
"ECL-2.0",
"Apache-2.0"
] | 74 | 2015-04-10T02:57:26.000Z | 2022-02-28T16:10:03.000Z | sandbox/simstream/simstream/eventmonitor.py | docquantum/airavata | 4ec5fa0aab1b75ca1e98a16648c57cd8abdb4b9c | [
"ECL-2.0",
"Apache-2.0"
] | 126 | 2015-04-26T02:55:26.000Z | 2022-02-16T22:43:28.000Z | sandbox/simstream/simstream/eventmonitor.py | docquantum/airavata | 4ec5fa0aab1b75ca1e98a16648c57cd8abdb4b9c | [
"ECL-2.0",
"Apache-2.0"
] | 163 | 2015-01-22T14:05:24.000Z | 2022-03-17T12:24:34.000Z | #
#
# 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 this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
"""
Utility for monitoring collected data.
Author: Jeff Kinnison (jkinniso@nd.edu)
"""
# TODO: Add method to add handlers
# TODO: Add method to create PikaProducer
# TODO: Add method to use PikaProducer to respond to events
# TODO: Add method to deactivate monitor
class EventCheckerNotCallableException(Exception):
pass
class EventHandlerNotCallableException(Exception):
pass
class EventHandlerDoesNotExistException(Exception):
pass
class EventMonitor(object):
"""Checks data for user-defined bounds violations.
Instance variables:
handlers -- a dict of EventHandler objects indexed by name
"""
def __init__(self, event_check, handlers={}):
self._event_check = event_check
self.handlers = handlers
def __call__(self, val):
if not callable(self._event_check):
raise EventCheckerNotCallableException
self._run_handler(self.event_check(val))
def _run_handler(self, handler_names):
for name in handler_names:
if name not in self.handlers:
raise EventHandlerDoesNotExistException
if not callable(self.handlers[name]):
raise EventHandlerNotCallableException
self.handlers[name]()
| 30.447761 | 62 | 0.726961 | 255 | 2,040 | 5.733333 | 0.490196 | 0.04104 | 0.035568 | 0.04104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002474 | 0.207353 | 2,040 | 66 | 63 | 30.909091 | 0.90167 | 0.554412 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.142857 | false | 0.142857 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f4cd42c245f80917627216ad30dc10c24df5fd00 | 234 | py | Python | make_valid.py | shawnlewis/wordle | c7c19f0d1571d07aa4d2bd0e73ee5bf4d0175ccf | [
"MIT"
] | null | null | null | make_valid.py | shawnlewis/wordle | c7c19f0d1571d07aa4d2bd0e73ee5bf4d0175ccf | [
"MIT"
] | null | null | null | make_valid.py | shawnlewis/wordle | c7c19f0d1571d07aa4d2bd0e73ee5bf4d0175ccf | [
"MIT"
] | null | null | null | words_file = open('wordlist.txt')
print("export const VALIDGUESSES6 = [")
for word in words_file.read().split('\n'):
word = word.strip()
if word.isalpha() and len(word) == 6:
print(' "%s",' % word.lower())
print("];") | 33.428571 | 42 | 0.598291 | 32 | 234 | 4.3125 | 0.71875 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.179487 | 234 | 7 | 43 | 33.428571 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0.225532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
f4d2efff6733a7fa83b900da723a343483f0adb4 | 488 | py | Python | code/part_I_D/arima.py | Spacebody/MCM-ICM-2018-Problem-C | 89acbec8b7b08733002e570ff67637e7ba100190 | [
"MIT"
] | 1 | 2021-09-18T08:01:19.000Z | 2021-09-18T08:01:19.000Z | code/part_I_D/arima.py | Spacebody/MCM-ICM-2018-Problem-C | 89acbec8b7b08733002e570ff67637e7ba100190 | [
"MIT"
] | null | null | null | code/part_I_D/arima.py | Spacebody/MCM-ICM-2018-Problem-C | 89acbec8b7b08733002e570ff67637e7ba100190 | [
"MIT"
] | 1 | 2018-05-13T08:39:46.000Z | 2018-05-13T08:39:46.000Z | import pandas as pd
import re
import numpy as np
import os
import sys
from collections import OrderedDict, defaultdict
import matplotlib as mpl
import matplotlib.pyplot as plt
import seaborn as sns
# from theano import *
# load state data
az_year = pd.read_csv("data/csv/price_expenditures/sector/az/price/teacd.csv", engine='c', low_memory=True)["Year"]
az_price = pd.read_csv("data/csv/price_expenditures/sector/az/price/teacd.csv", engine='c', low_memory=True, date_parser=az_year)
| 28.705882 | 129 | 0.788934 | 81 | 488 | 4.62963 | 0.469136 | 0.056 | 0.048 | 0.069333 | 0.394667 | 0.394667 | 0.394667 | 0.394667 | 0.394667 | 0.394667 | 0 | 0 | 0.110656 | 488 | 16 | 130 | 30.5 | 0.864055 | 0.07377 | 0 | 0 | 0 | 0 | 0.250559 | 0.237136 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.818182 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f4de5cc58d12df4855fb7893f7de106c2f5a9481 | 5,409 | py | Python | octavia/controller/worker/v2/flows/flow_utils.py | zhangi/octavia | e68c851fecf55e1b5ffe7d5b849f729626af28a3 | [
"Apache-2.0"
] | 129 | 2015-06-23T08:06:23.000Z | 2022-03-31T12:38:20.000Z | octavia/controller/worker/v2/flows/flow_utils.py | zhangi/octavia | e68c851fecf55e1b5ffe7d5b849f729626af28a3 | [
"Apache-2.0"
] | 6 | 2016-05-20T11:05:27.000Z | 2021-03-23T06:05:52.000Z | octavia/controller/worker/v2/flows/flow_utils.py | zhangi/octavia | e68c851fecf55e1b5ffe7d5b849f729626af28a3 | [
"Apache-2.0"
] | 166 | 2015-07-15T16:24:05.000Z | 2022-03-02T20:54:36.000Z |
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from octavia.api.drivers import utils as provider_utils
from octavia.controller.worker.v2.flows import amphora_flows
from octavia.controller.worker.v2.flows import health_monitor_flows
from octavia.controller.worker.v2.flows import l7policy_flows
from octavia.controller.worker.v2.flows import l7rule_flows
from octavia.controller.worker.v2.flows import listener_flows
from octavia.controller.worker.v2.flows import load_balancer_flows
from octavia.controller.worker.v2.flows import member_flows
from octavia.controller.worker.v2.flows import pool_flows
LB_FLOWS = load_balancer_flows.LoadBalancerFlows()
AMP_FLOWS = amphora_flows.AmphoraFlows()
HM_FLOWS = health_monitor_flows.HealthMonitorFlows()
L7_POLICY_FLOWS = l7policy_flows.L7PolicyFlows()
L7_RULES_FLOWS = l7rule_flows.L7RuleFlows()
LISTENER_FLOWS = listener_flows.ListenerFlows()
M_FLOWS = member_flows.MemberFlows()
P_FLOWS = pool_flows.PoolFlows()
def get_create_load_balancer_flow(topology, listeners=None):
return LB_FLOWS.get_create_load_balancer_flow(topology,
listeners=listeners)
def get_delete_load_balancer_flow(lb):
return LB_FLOWS.get_delete_load_balancer_flow(lb)
def get_listeners_on_lb(db_lb):
"""Get a list of the listeners on a load balancer.
:param db_lb: A load balancer database model object.
:returns: A list of provider dict format listeners.
"""
listener_dicts = []
for listener in db_lb.listeners:
prov_listener = provider_utils.db_listener_to_provider_listener(
listener)
listener_dicts.append(prov_listener.to_dict())
return listener_dicts
def get_pools_on_lb(db_lb):
"""Get a list of the pools on a load balancer.
:param db_lb: A load balancer database model object.
:returns: A list of provider dict format pools.
"""
pool_dicts = []
for pool in db_lb.pools:
prov_pool = provider_utils.db_pool_to_provider_pool(pool)
pool_dicts.append(prov_pool.to_dict())
return pool_dicts
def get_cascade_delete_load_balancer_flow(lb, listeners=(), pools=()):
return LB_FLOWS.get_cascade_delete_load_balancer_flow(lb, listeners,
pools)
def get_update_load_balancer_flow():
return LB_FLOWS.get_update_load_balancer_flow()
def get_create_amphora_flow():
return AMP_FLOWS.get_create_amphora_flow()
def get_delete_amphora_flow(amphora, retry_attempts=None, retry_interval=None):
return AMP_FLOWS.get_delete_amphora_flow(amphora, retry_attempts,
retry_interval)
def get_failover_LB_flow(amps, lb):
return LB_FLOWS.get_failover_LB_flow(amps, lb)
def get_failover_amphora_flow(amphora_dict, lb_amp_count):
return AMP_FLOWS.get_failover_amphora_flow(amphora_dict, lb_amp_count)
def cert_rotate_amphora_flow():
return AMP_FLOWS.cert_rotate_amphora_flow()
def update_amphora_config_flow():
return AMP_FLOWS.update_amphora_config_flow()
def get_create_health_monitor_flow():
return HM_FLOWS.get_create_health_monitor_flow()
def get_delete_health_monitor_flow():
return HM_FLOWS.get_delete_health_monitor_flow()
def get_update_health_monitor_flow():
return HM_FLOWS.get_update_health_monitor_flow()
def get_create_l7policy_flow():
return L7_POLICY_FLOWS.get_create_l7policy_flow()
def get_delete_l7policy_flow():
return L7_POLICY_FLOWS.get_delete_l7policy_flow()
def get_update_l7policy_flow():
return L7_POLICY_FLOWS.get_update_l7policy_flow()
def get_create_l7rule_flow():
return L7_RULES_FLOWS.get_create_l7rule_flow()
def get_delete_l7rule_flow():
return L7_RULES_FLOWS.get_delete_l7rule_flow()
def get_update_l7rule_flow():
return L7_RULES_FLOWS.get_update_l7rule_flow()
def get_create_listener_flow():
return LISTENER_FLOWS.get_create_listener_flow()
def get_create_all_listeners_flow():
return LISTENER_FLOWS.get_create_all_listeners_flow()
def get_delete_listener_flow():
return LISTENER_FLOWS.get_delete_listener_flow()
def get_update_listener_flow():
return LISTENER_FLOWS.get_update_listener_flow()
def get_create_member_flow():
return M_FLOWS.get_create_member_flow()
def get_delete_member_flow():
return M_FLOWS.get_delete_member_flow()
def get_update_member_flow():
return M_FLOWS.get_update_member_flow()
def get_batch_update_members_flow(old_members, new_members, updated_members):
return M_FLOWS.get_batch_update_members_flow(old_members, new_members,
updated_members)
def get_create_pool_flow():
return P_FLOWS.get_create_pool_flow()
def get_delete_pool_flow():
return P_FLOWS.get_delete_pool_flow()
def get_update_pool_flow():
return P_FLOWS.get_update_pool_flow()
| 29.396739 | 79 | 0.765391 | 775 | 5,409 | 4.932903 | 0.174194 | 0.047083 | 0.054931 | 0.0565 | 0.529689 | 0.448601 | 0.348156 | 0.217892 | 0.135496 | 0.076903 | 0 | 0.008424 | 0.16602 | 5,409 | 183 | 80 | 29.557377 | 0.83906 | 0.157146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.340426 | false | 0 | 0.095745 | 0.319149 | 0.776596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
f4eed8815cb84898320683d05ba025d24a490e96 | 182 | py | Python | 2018/1/solution1.py | frenzymadness/aoc | c9018e757bae61a696e675a827aef873995abdd3 | [
"WTFPL"
] | 2 | 2020-12-04T09:45:38.000Z | 2020-12-07T14:06:12.000Z | 2018/1/solution1.py | frenzymadness/aoc | c9018e757bae61a696e675a827aef873995abdd3 | [
"WTFPL"
] | null | null | null | 2018/1/solution1.py | frenzymadness/aoc | c9018e757bae61a696e675a827aef873995abdd3 | [
"WTFPL"
] | null | null | null | with open("input.txt") as input_file:
lines = input_file.readlines()
result = 0
for line in lines:
print(line.strip(), result)
result += int(line.strip())
print(result)
| 20.222222 | 37 | 0.67033 | 27 | 182 | 4.444444 | 0.592593 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.181319 | 182 | 8 | 38 | 22.75 | 0.798658 | 0 | 0 | 0 | 0 | 0 | 0.049451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7604f665e3aa02bc719696d186c91d7d6c300052 | 3,305 | py | Python | 120_GruneisenParam/FeNiSi/collectScalingParam.py | r-a-morrison/fe_alloy_sound_velocities | 8da1b0d073e93fb4b4be3d61b73e58b7a7a3097b | [
"MIT"
] | null | null | null | 120_GruneisenParam/FeNiSi/collectScalingParam.py | r-a-morrison/fe_alloy_sound_velocities | 8da1b0d073e93fb4b4be3d61b73e58b7a7a3097b | [
"MIT"
] | null | null | null | 120_GruneisenParam/FeNiSi/collectScalingParam.py | r-a-morrison/fe_alloy_sound_velocities | 8da1b0d073e93fb4b4be3d61b73e58b7a7a3097b | [
"MIT"
] | null | null | null | # Front matter
##############
import os
from os import fdopen, remove
from tempfile import mkstemp
from shutil import move
import glob
import re
import time
import pandas as pd
import numpy as np
from scipy import constants
from scipy.optimize import curve_fit, fsolve
from scipy.interpolate import interp1d
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.ticker import AutoMinorLocator
from matplotlib import gridspec
from scipy.interpolate import spline
import math
import seaborn as sns
matplotlib.rc('xtick', labelsize=16)
matplotlib.rc('ytick', labelsize=16)
rc = {'lines.linewidth': 1,
'axes.labelsize': 20,
'axes.titlesize': 20,
'legend.fontsize': 26,
'xtick.direction': u'in',
'ytick.direction': u'in'}
sns.set_style('ticks', rc=rc)
start_time = time.time()
# Input scaling parameter results
##########################################
xi_filename = 'Results/scalingparameters.csv'
xi_df = pd.read_csv(xi_filename)
# Rename columns to avoid confusion
xi_df = xi_df.rename(columns={'Vi':'Vj', 'dVi':'dVj', 'V':'Vk','dV':'dVk',
'V/Vi':'Vk/Vj','xi':'xi(Vk/Vj)','dxi':'dxi(Vk/Vj)'})
# Transform scaling parameters to each reference volume
#######################################################
folder_list = xi_df.drop_duplicates(subset='Ref Folder')['Ref Folder'].values
for ref_folder in folder_list:
# for ref_folder in ['2009Oct_30GPa']:
print('Rescaling to '+ref_folder)
# Reference volume to scale everything to
Vi = xi_df[xi_df['Ref Folder']==ref_folder].iloc[-1]['Vj']
xi_rescaled_df = xi_df[['Vj','Vk','xi(Vk/Vj)','dxi(Vk/Vj)']].copy()
xi_rescaled_df['Vi'] = Vi*np.ones(len(xi_rescaled_df))
# rescaled xi(Vk/Vi) = xi(Vk/Vj) * complementary xi(Vj/Vi)
# Complementary xi needed to calculate rescaled xi:
xi_rescaled_df['xi(Vj/Vi)'] = [xi_rescaled_df[(xi_rescaled_df['Vj']==Vi) &
(xi_rescaled_df['Vk']==Vj)].iloc[-1]['xi(Vk/Vj)'] for Vj in xi_rescaled_df['Vj']]
xi_rescaled_df['dxi(Vj/Vi)'] = [xi_rescaled_df[(xi_rescaled_df['Vj']==Vi) &
(xi_rescaled_df['Vk']==Vj)].iloc[-1]['dxi(Vk/Vj)'] for Vj in xi_rescaled_df['Vj']]
xi_rescaled_df['Vk/Vi'] = xi_rescaled_df['Vk']/xi_rescaled_df['Vi']
# Calculate rescaled xi
xi_rescaled_df['xi(Vk/Vi)'] = xi_rescaled_df['xi(Vk/Vj)']*xi_rescaled_df['xi(Vj/Vi)']
# Calculate uncertainty on rescaled xi
# If c = a*b, dc = sqrt((b*da)^2 + (a*db)^2)
xi_rescaled_df['dxi(Vk/Vi)'] = np.sqrt(
(xi_rescaled_df['xi(Vj/Vi)']*xi_rescaled_df['dxi(Vk/Vj)'])**2 +
(xi_rescaled_df['xi(Vk/Vj)']*xi_rescaled_df['dxi(Vj/Vi)'])**2)
# Eliminate data points where Vi = Vk
xi_rescaled_df = xi_rescaled_df[xi_rescaled_df['Vk'] != Vi]
xi_rescaled_df = xi_rescaled_df.round(decimals=4)
xi_rescaled_df.to_csv(ref_folder+'/rescaledparameters.csv',index=False)
# Plot scaling parameters
fig, (ax0) = plt.subplots(nrows = 1, ncols=1, figsize=(6,4.5))
ax0.errorbar(xi_rescaled_df['Vk/Vi'],xi_rescaled_df['xi(Vk/Vi)'],
yerr=xi_rescaled_df['dxi(Vk/Vi)'],
marker = 'o', color = 'gray', mfc='lightgray', ms=6, markeredgewidth=1,
ls='none',elinewidth=1)
ax0.set_xlabel(r'$V/V_i$',fontsize = 16)
ax0.set_ylabel(r'$\xi$',fontsize = 16)
ax0.tick_params(direction='in',right='on',top='on')
fig.savefig(ref_folder+'/scalingparam.pdf', format='pdf',
bbox_inches='tight')
plt.close() | 34.072165 | 86 | 0.681392 | 530 | 3,305 | 4.069811 | 0.316981 | 0.15299 | 0.183588 | 0.084376 | 0.246175 | 0.235512 | 0.20306 | 0.166898 | 0.159481 | 0.083449 | 0 | 0.014681 | 0.113767 | 3,305 | 97 | 87 | 34.072165 | 0.721748 | 0.144629 | 0 | 0 | 0 | 0 | 0.18535 | 0.019238 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.306452 | 0 | 0.306452 | 0.016129 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
7614576866838e113eac6ed1704be36e192c3e82 | 3,096 | py | Python | meterological_data.py | ask-santosh/Weather-Data-Analysis | c9b4dcfe0ce729554eb8fdff6cabc0e1e824ab8f | [
"Apache-2.0"
] | null | null | null | meterological_data.py | ask-santosh/Weather-Data-Analysis | c9b4dcfe0ce729554eb8fdff6cabc0e1e824ab8f | [
"Apache-2.0"
] | null | null | null | meterological_data.py | ask-santosh/Weather-Data-Analysis | c9b4dcfe0ce729554eb8fdff6cabc0e1e824ab8f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[3]:
import pandas as pd
# In[4]:
weather_data = pd.read_csv("weatherHistory.csv")
# weather_data.columns = weather_data.iloc[0]
# weather_data.columns
# weather_data
# weather_data.head()
weather_data.columns.values
# In[5]:
weather_data = weather_data.iloc[1:]
# In[6]:
weather_data.head()
# In[7]:
list(weather_data.columns.values)
# In[ ]:
# We first convert all the numeric data to from object data type to float/int data type.
# In[8]:
weather_data['Temperature (C)'] = weather_data['Temperature (C)'].astype('float')
weather_data['Apparent Temperature (C)'] = weather_data['Apparent Temperature (C)'].astype('float')
weather_data['Humidity'] = weather_data['Humidity'].astype('float')
weather_data['Wind Speed (km/h)'] = weather_data['Wind Speed (km/h)'].astype('float')
weather_data['Wind Bearing (degrees)'] = weather_data['Wind Bearing (degrees)'].astype('int')
weather_data['Visibility (km)'] = weather_data['Visibility (km)'].astype('float')
weather_data['Loud Cover'] = weather_data['Loud Cover'].astype('int')
weather_data['Pressure (millibars)'] = weather_data['Pressure (millibars)'].astype('float')
# In[9]:
weather_data['Precip Type'].fillna(weather_data['Precip Type'].value_counts().index[0], inplace=True)
# In[ ]:
#After removing all the null values.
# In[10]:
weather_data.isnull().sum()
# In[ ]:
# Heat map representation of above data
# In[11]:
import seaborn as sns
# In[12]:
sns.heatmap(weather_data.isnull(), yticklabels=False, cbar=True)
# In[27]:
from datetime import timedelta
import datetime as dt
weather_data
# In[28]:
#Most frequent weather from the Summary column
# weather_data['Formatted Date'] = pd.to_datetime(weather_data['Formatted Date'])
weather = weather_data['Summary'].value_counts().reset_index()
weather.columns = ['Weather', 'Count']
print(weather)
# In[ ]:
#We can observe that the most common weather that prevails is Partly cloudy
# In[35]:
import matplotlib.pyplot as plt
sns.set(rc={'figure.figsize':(8,4)})
plt.xticks(rotation=90)
sns.lineplot(x=weather['Weather'], y=weather['Count'], data=weather)
plt.show()
# In[ ]:
#In the below graph we can observe that maximum temperature is when the weather is dry.
# In[36]:
plt.figure(figsize=(12,6))
plt.xticks(rotation=90)
plt.title('Weather')
sns.barplot(x=weather_data['Summary'], y=weather_data['Temperature (C)'])
# In[ ]:
# In[ ]:
# In[45]:
#In the below graph remarks that maximum humidity is for the weather types: Foggy, Breezy and Foggy
#and Rainy weather'''
# In[44]:
plt.figure(figsize=(12,6))
plt.xticks(rotation=90)
plt.title('Weather')
sns.barplot(x=weather_data['Summary'], y=weather_data['Humidity'])
# In[40]:
plt.figure(figsize=(8,4))
plt.title("Weather vs Pressue")
plt.xticks(rotation=90)
sns.lineplot(y=weather_data['Pressure (millibars)'],x=weather_data['Summary'])
# In[41]:
pip install pywedge
# In[43]:
import pywedge as pw
x = pw.Pywedge_Charts(weather_data, c=None, y='Humidity')
charts = x.make_charts()
# In[ ]:
| 15.557789 | 101 | 0.699935 | 454 | 3,096 | 4.665198 | 0.330396 | 0.21813 | 0.042493 | 0.051936 | 0.294618 | 0.170916 | 0.088763 | 0.088763 | 0.088763 | 0.088763 | 0 | 0.019725 | 0.132106 | 3,096 | 198 | 102 | 15.636364 | 0.768515 | 0.289406 | 0 | 0.177778 | 0 | 0 | 0.226091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.022222 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
76179c4c064e78d6f85438575931fbff3c4f84e8 | 282 | py | Python | tests/neural_networks/art_fuzzy/test_class.py | DavidVinicius/artmap-fuzzy-tcc | 1ff039ca2ade7a2a96137c75feaa9509e401e387 | [
"MIT"
] | null | null | null | tests/neural_networks/art_fuzzy/test_class.py | DavidVinicius/artmap-fuzzy-tcc | 1ff039ca2ade7a2a96137c75feaa9509e401e387 | [
"MIT"
] | null | null | null | tests/neural_networks/art_fuzzy/test_class.py | DavidVinicius/artmap-fuzzy-tcc | 1ff039ca2ade7a2a96137c75feaa9509e401e387 | [
"MIT"
] | null | null | null | from src.neural_networks.art_fuzzy import ARTFUZZY
import numpy as np
def test_If_I_isintance_numpy():
A = ARTFUZZY([1.0, 2.0])
assert isinstance(A.I, np.ndarray)
def test_If_W_isintance_numpy():
A = ARTFUZZY([1.0, 2.0])
assert isinstance(A.I, np.ndarray) | 25.636364 | 50 | 0.695035 | 48 | 282 | 3.875 | 0.5 | 0.075269 | 0.096774 | 0.247312 | 0.580645 | 0.580645 | 0.580645 | 0.580645 | 0.580645 | 0.580645 | 0 | 0.034783 | 0.184397 | 282 | 11 | 51 | 25.636364 | 0.773913 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
76239cf65a40116502dab08045c558ccfa503910 | 6,997 | py | Python | _unittests/ut_profiling/test_event_profiler.py | sdpython/cpyquickhelper | c2bdebad2201c7e10a5999a836bbf53e27b963c7 | [
"MIT"
] | 2 | 2017-10-03T20:39:13.000Z | 2019-02-06T15:24:04.000Z | _unittests/ut_profiling/test_event_profiler.py | sdpython/cpyquickhelper | c2bdebad2201c7e10a5999a836bbf53e27b963c7 | [
"MIT"
] | 21 | 2017-09-17T11:14:04.000Z | 2021-01-01T13:24:20.000Z | _unittests/ut_profiling/test_event_profiler.py | sdpython/cpyquickhelper | c2bdebad2201c7e10a5999a836bbf53e27b963c7 | [
"MIT"
] | null | null | null | """
@brief test log(time=3s)
"""
import unittest
import inspect
import logging
from time import sleep, perf_counter
from pyquickhelper.pycode import ExtTestCase
from cpyquickhelper.profiling import (
EventProfiler, WithEventProfiler)
from cpyquickhelper.profiling.event_profiler import EventProfilerDebug
class TestEventProfiler(ExtTestCase):
def test_profiling_exc(self):
ev = EventProfiler(impl='python')
self.assertRaise(lambda: ev.stop(), RuntimeError)
ev.start()
self.assertRaise(lambda: ev.start(), RuntimeError)
ev.stop()
self.assertRaise(lambda: ev.stop(), RuntimeError)
def test_profiling(self):
def f1(t):
sleep(t)
def f2():
f1(0.1)
def f3():
li = [0 for i in range(0, 10000)]
f1(0.2)
return li
def f4():
f2()
f3()
ev = EventProfiler(impl='python')
ev.start()
f4()
ev.stop()
res = ev.retrieve_raw_results()
self.assertEqual(res.shape[1], ev.n_columns)
df = ev.retrieve_results(False)
self.assertEqual(df.shape, (res.shape[0], 10))
expected = ['time', 'value1', 'value2', 'event',
'name', 'mod', 'lineno', 'from_name',
'from_mod', 'from_line']
self.assertEqual(list(df.columns), expected)
self.assertIn('sleep', set(df['name']))
self.assertIn('time', set(df['mod']))
def test_profiling_20(self):
def f1(t):
sleep(t)
def f2():
f1(0.1)
def f3():
f1(0.2)
def f4():
f2()
f3()
ev = EventProfiler(size=30, impl='python')
ev.start()
f4()
ev.stop()
res = ev.retrieve_raw_results()
self.assertGreater(res.shape[0], 10)
self.assertEqual(res.shape[1], ev.n_columns)
df = ev.retrieve_results(False)
self.assertEqual(df.shape, (res.shape[0], 10))
expected = ['time', 'value1', 'value2', 'event',
'name', 'mod', 'lineno', 'from_name',
'from_mod', 'from_line']
self.assertEqual(list(df.columns), expected)
def test_profiling_raise(self):
def fraise():
raise RuntimeError("issue")
def catch_exc():
try:
fraise()
return None
except RuntimeError as e:
return str(e)
ev = EventProfiler(impl='python')
ev.start()
catch_exc()
ev.stop()
df = ev.retrieve_results(True)
self.assertEqual(df.shape[1], 10)
self.assertGreater(df.shape[0], 5)
self.assertIn("catch_exc", set(df['name']))
def test_with_sleep(self):
def fsleep():
sleep(0.1)
prof = WithEventProfiler(impl='python')
with prof:
fsleep()
df = prof.report
self.assertGreater(df.shape[0], 1)
self.assertEqual(df.shape[1], 10)
def test_with_raise(self):
def fraise():
raise RuntimeError("TESTISSUE")
try:
prof = WithEventProfiler(impl='python')
with prof:
fraise()
except RuntimeError as e:
self.assertEqual(str(e), 'TESTISSUE')
def test_debug(self):
N = 100000
ev = EventProfilerDebug(impl='python')
ev.start()
begin = perf_counter()
for _ in range(N):
ev.log_event(inspect.currentframe(), 'call', None)
ev.log_event(inspect.currentframe(), 'return', None)
end = perf_counter()
ev.stop()
duration = end - begin
msg = "evpy: %1.6f microsecond" % (duration / N * 1e6)
self.assertNotEmpty(msg)
if __name__ == "__main__":
print(msg)
def test_debug_c(self):
N = 100000
ev = EventProfilerDebug(impl='pybind11', size=10000000)
ev.start()
begin = perf_counter()
for _ in range(N):
ev._buffer.c_log_event( # pylint: disable=W0212
inspect.currentframe(), 'call', None)
ev._buffer.c_log_event( # pylint: disable=W0212
inspect.currentframe(), 'return', None)
end = perf_counter()
ev.stop()
duration = end - begin
msg = "evc+: %1.6f microsecond" % (duration / N * 1e6)
self.assertNotEmpty(msg)
if __name__ == "__main__":
print(msg)
def test_debug_logging(self):
N = 100
logger = logging.getLogger('cpyquickhelper-ut')
logger.setLevel(logging.INFO)
ev = EventProfilerDebug(impl='pybind11', size=10000000)
ev.start()
begin = perf_counter()
for _ in range(N):
logger.info("call %d", inspect.currentframe().f_lineno)
logger.info("return %d", inspect.currentframe().f_lineno)
end = perf_counter()
ev.stop()
duration = end - begin
msg = "logg: %1.6f microsecond" % (duration / N * 1e6)
self.assertNotEmpty(msg)
if __name__ == "__main__":
print(msg)
def test_profiling_c(self):
def f1(t):
sleep(t)
def f2():
f1(0.1)
def f3():
li = [0 for i in range(0, 10000)]
f1(0.2)
return li
def f4():
f2()
f3()
ev = EventProfiler(impl='pybind11')
ev.start()
f4()
ev.stop()
res = ev.retrieve_raw_results()
self.assertEqual(res.shape[1], ev.n_columns)
df = ev.retrieve_results(False)
self.assertEqual(df.shape, (res.shape[0], 10))
expected = ['time', 'value1', 'value2', 'event',
'name', 'mod', 'lineno', 'from_name',
'from_mod', 'from_line']
self.assertEqual(list(df.columns), expected)
self.assertIn('sleep', set(df['name']))
self.assertIn('time', set(df['mod']))
def test_profiling_c_20(self):
def f1(t):
sleep(t)
def f2():
f1(0.1)
def f3():
li = [0 for i in range(0, 10000)]
f1(0.2)
return li
def f4():
f2()
f3()
ev = EventProfiler(impl='pybind11', size=220)
ev.start()
f4()
ev.stop()
res = ev.retrieve_raw_results()
self.assertEqual(res.shape[1], ev.n_columns)
df = ev.retrieve_results(False)
self.assertEqual(df.shape, (res.shape[0], 10))
expected = ['time', 'value1', 'value2', 'event',
'name', 'mod', 'lineno', 'from_name',
'from_mod', 'from_line']
self.assertEqual(list(df.columns), expected)
self.assertIn('sleep', set(df['name']))
self.assertIn('time', set(df['mod']))
if __name__ == "__main__":
unittest.main()
| 28.100402 | 70 | 0.523653 | 781 | 6,997 | 4.555698 | 0.162612 | 0.063238 | 0.026981 | 0.037099 | 0.74733 | 0.703204 | 0.596965 | 0.596965 | 0.596965 | 0.586003 | 0 | 0.039203 | 0.340146 | 6,997 | 248 | 71 | 28.21371 | 0.731427 | 0.010576 | 0 | 0.73399 | 0 | 0 | 0.079838 | 0 | 0 | 0 | 0 | 0 | 0.152709 | 1 | 0.152709 | false | 0 | 0.034483 | 0 | 0.216749 | 0.014778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
52095086bb446dc1b08b9d315803c1b73ef88590 | 541 | py | Python | project/api/views/bank_list.py | Rafiatu/cinch | 05f3927363a9f75598611e3f152b90464a588de2 | [
"MIT"
] | null | null | null | project/api/views/bank_list.py | Rafiatu/cinch | 05f3927363a9f75598611e3f152b90464a588de2 | [
"MIT"
] | null | null | null | project/api/views/bank_list.py | Rafiatu/cinch | 05f3927363a9f75598611e3f152b90464a588de2 | [
"MIT"
] | null | null | null | from rest_framework import status
from rest_framework.viewsets import ViewSet
from rest_framework.decorators import action
from rest_framework.permissions import AllowAny, IsAuthenticated
from api.lib.response import Response
from payment.get_bank_list import BankList
class BankListViewSet(ViewSet):
@action(methods=['get'], detail=False, permission_classes=[IsAuthenticated], url_path='*')
def get_bank_list(self, request):
banks = BankList.call()
return Response({'banks':banks.value}, status=status.HTTP_200_OK) | 41.615385 | 94 | 0.791128 | 69 | 541 | 6.028986 | 0.565217 | 0.076923 | 0.163462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006303 | 0.120148 | 541 | 13 | 95 | 41.615385 | 0.867647 | 0 | 0 | 0 | 0 | 0 | 0.016605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.545455 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
5209b7eaee6151a55b670766ca8043416e38ee6c | 290 | py | Python | Pipeline/4_R0_ARRP/Executable/r0_arrp_make.py | johnlspouge/R0_Unstratified_Case_Data | 696b4f45265904de04213bb4bd21390684ad00a6 | [
"Unlicense"
] | null | null | null | Pipeline/4_R0_ARRP/Executable/r0_arrp_make.py | johnlspouge/R0_Unstratified_Case_Data | 696b4f45265904de04213bb4bd21390684ad00a6 | [
"Unlicense"
] | null | null | null | Pipeline/4_R0_ARRP/Executable/r0_arrp_make.py | johnlspouge/R0_Unstratified_Case_Data | 696b4f45265904de04213bb4bd21390684ad00a6 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
from os import system
log = f'r0_arrp.log'
C = ' -c ../../1_Prem_Matrices_to_df/Data/UNSDMethodology.csv'
E = ' -e ../../3_Prem_Matrices_to_PF_Eigenvalue/Output/pf_eigenvalue.csv'
S = ' -s ../../2_ARRP/Output/slope.csv'
system( f'r0_arrp.py {C} {E} {S} > {log}' )
| 24.166667 | 73 | 0.662069 | 51 | 290 | 3.509804 | 0.588235 | 0.03352 | 0.078212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019685 | 0.124138 | 290 | 11 | 74 | 26.363636 | 0.685039 | 0.068966 | 0 | 0 | 0 | 0 | 0.732342 | 0.535316 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
520c123c3cc2054e4fcd79af635f3285abb8eea2 | 3,818 | py | Python | Scripts/simulation/business/advertising_manager.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/business/advertising_manager.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/business/advertising_manager.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\business\advertising_manager.py
# Compiled at: 2017-04-27 01:01:18
# Size of source mod 2**32: 6129 bytes
from protocolbuffers import Business_pb2, DistributorOps_pb2
from business.business_enums import BusinessAdvertisingType
from distributor.ops import GenericProtocolBufferOp
from distributor.system import Distributor
import services, sims4
logger = sims4.log.Logger('Business', default_owner='jdimailig')
class HasAdvertisingManagerMixin:
def __init__(self, *args, **kwargs):
(super().__init__)(*args, **kwargs)
self._advertising_manager = AdvertisingManager.create_from_business_manager(self)
def get_advertising_multiplier(self):
return self._advertising_manager.get_advertising_multiplier()
def set_advertising_type(self, advertising_type):
self._advertising_manager.set_advertising_type(advertising_type)
def get_advertising_type_for_gsi(self):
return str(self._advertising_manager._advertising_type)
def get_current_advertising_cost(self):
return self._advertising_manager.get_current_advertising_cost()
class AdvertisingManager:
@classmethod
def create_from_business_manager(cls, business_manager):
return AdvertisingManager(business_manager, business_manager.tuning_data.advertising_configuration)
def __init__(self, business_manager, advertising_configuration):
self._business_manager = business_manager
self._configuration = advertising_configuration
self._advertising_type = advertising_configuration.default_advertising_type
self._advertising_update_time = None
self._advertising_cost = 0
def clear_state(self):
self._advertising_cost = 0
self._advertising_update_time = None
def open_business(self):
self.set_advertising_type(self._advertising_type)
def get_current_advertising_cost(self):
return self._advertising_cost + self._get_advertising_cost_since_last_update()
def get_advertising_cost_per_hour(self):
return self._configuration.get_advertising_cost_per_hour(self._advertising_type)
def set_advertising_type(self, advertising_type):
self._advertising_cost += self._get_advertising_cost_since_last_update()
self._advertising_update_time = services.time_service().sim_now
if advertising_type == BusinessAdvertisingType.INVALID:
logger.error('Attempting to set an INVALID advertising type to {}. This will be ignored.', advertising_type)
else:
self._advertising_type = advertising_type
self._send_advertisement_update_message()
def get_advertising_multiplier(self):
return self._configuration.get_customer_count_multiplier(self._advertising_type)
def _get_advertising_cost_since_last_update(self):
now = services.time_service().sim_now
running_cost = 0
if self._advertising_update_time is None:
self._advertising_update_time = now
running_cost = 0
else:
hours_in_ad_type = (now - self._advertising_update_time).in_hours()
running_cost = hours_in_ad_type * self.get_advertising_cost_per_hour()
return running_cost
def _send_advertisement_update_message(self):
msg = Business_pb2.BusinessAdvertisementUpdate()
msg.zone_id = self._business_manager.business_zone_id
msg.advertisement_chosen = self._advertising_type
op = GenericProtocolBufferOp(DistributorOps_pb2.Operation.BUSINESS_ADVERTISEMENT_DATA_UPDATE, msg)
Distributor.instance().add_op_with_no_owner(op) | 43.885057 | 120 | 0.76087 | 458 | 3,818 | 5.914847 | 0.303493 | 0.127353 | 0.056109 | 0.066445 | 0.290882 | 0.207457 | 0.166482 | 0.121078 | 0.121078 | 0.08601 | 0 | 0.023615 | 0.168151 | 3,818 | 87 | 121 | 43.885057 | 0.829345 | 0.08198 | 0 | 0.222222 | 0 | 0 | 0.026007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.079365 | 0.111111 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
520d7cb39f32defc0f55c008264ebcf3b5b045f7 | 8,603 | py | Python | app.py | ansokolov/28days | 98c3bd093dd716aa38a67ad03b7457c5b83220bc | [
"MIT"
] | null | null | null | app.py | ansokolov/28days | 98c3bd093dd716aa38a67ad03b7457c5b83220bc | [
"MIT"
] | null | null | null | app.py | ansokolov/28days | 98c3bd093dd716aa38a67ad03b7457c5b83220bc | [
"MIT"
] | null | null | null | import os
import datetime
import csv
import json
i = 0
def initial_menu():
user_action = input("1. Log In \n" +
"2. Create new user \n" +
"3. Create with CSV \n" +
"4. Update with CSV \n")
if user_action == "1":
user_name = input("What is your name? \n")
file_name = user_name + ".json"
if os.path.isfile(file_name):
secondary_menu(file_name)
else:
user_choice = input("There is no such a user. Would you like to create new user? \n")
if user_choice == "Yes":
initial_menu()
else:
exit()
if user_action == "2":
user_name = input("What is your name? \n")
file_name = user_name + ".json"
user_profile = open(file_name,"w")
current_date = datetime.datetime.now()
filled_profile = { "name": "",
"created_on": "",
"words": []}
filled_profile["name"] = user_name
filled_profile["created_on"] = current_date.strftime("%Y-%m-%d")
json.dump(filled_profile, user_profile)
user_profile.close()
print("The profile was create successfully. You can log in now.")
if user_action == "3":
user_name = input("What is your name? \n")
file_name = user_name + ".json"
csv_file = open(user_name + ".csv","r")
csv_data = csv.reader(csv_file, delimiter=";")
user_profile = open(file_name,"w")
filled_profile = { "name": "",
"created_on": "",
"words": []}
filled_profile["name"] = user_name
current_date = datetime.datetime.now()
filled_profile["created_on"] = current_date.strftime("%Y-%m-%d")
words = filled_profile["words"]
word_profile = {"word": "",
"sentence": "",
"translation": "",
"learnt_on": "",
"last_repeat": "",
"repetitions": ""}
for row in csv_data:
word_profile["word"] = row[0]
word_profile["sentence"] = row[1]
word_profile["translation"] = row[2]
word_profile["learnt_on"] = row[3]
word_profile["last_repeat"] = row[4]
word_profile["repetitions"] = row[5]
words.append(word_profile)
json.dump(filled_profile, user_profile)
user_profile.close()
print("The profile was create successfully. You can log in now.")
if user_action == "4":
user_name = input("What is your name? \n")
file_name = user_name + ".json"
if os.path.isfile(file_name):
user_file = open(file_name,"r")
user_profile = user_file.read()
user_data = json.loads(user_profile)
user_file.close()
csv_file = open(user_name + ".csv","r")
csv_data = csv.reader(csv_file, delimiter=";")
user_file = open(file_name,"w")
words = user_data["words"]
word_profile = {"word": "",
"sentence": "",
"translation": "",
"learnt_on": "",
"last_repeat": "",
"repetitions": ""}
for row in csv_data:
word_profile["word"] = row[0]
word_profile["sentence"] = row[1]
word_profile["translation"] = row[2]
word_profile["learnt_on"] = row[3]
word_profile["last_repeat"] = row[4]
word_profile["repetitions"] = row[5]
words.append(word_profile)
json.dump(user_data, user_file)
user_file.close()
print("The profile was updated successfully.")
else:
user_choice = input("There is no such a user. Would you like to create new user? \n")
if user_choice == "Yes":
initial_menu()
else:
exit()
def secondary_menu(file_name):
user_choice = input("1. Repeat Words \n" +
"2. Add new words \n")
if user_choice == "1":
repeat_words(file_name)
elif user_choice == "2":
new_word(file_name)
else:
print("There is no such option.")
secondary_menu(file_name)
def words_menu(user_profile):
user_choice = input("1. Add new word \n" +
"2. Back \n")
if user_choice == "1":
new_word(user_profile)
elif user_choice == "2":
secondary_menu(user_profile)
else:
print("There is no such option.")
words_menu(user_profile)
def new_word(file_name):
user_profile = open(file_name,"r")
data = user_profile.read()
user_profile.close()
serialized_data = json.loads(data)
word_profile = {"word": "",
"sentence": "",
"translation": "",
"learnt_on": "",
"last_repeat": "",
"repetitions": ""}
word = input("What is the word you learnt? \n")
sentence = input("In which sentence did you see that word? \n")
translation = input("What does the word mean? \n")
words = serialized_data["words"]
word_profile["word"] = word
word_profile["sentence"] = sentence
word_profile["translation"] = translation
current_date = datetime.datetime.now()
word_profile["learnt_on"] = current_date.strftime("%Y-%m-%d")
word_profile["repetitions"] = 0
words.append(word_profile)
user_profile = open(file_name,"w+")
json.dump(serialized_data, user_profile)
user_profile.close()
print("The word has been successfully saved.")
user_choice = input("1. Add new word \n" +
"2. Back \n")
if user_choice == "1":
new_word(file_name)
elif user_choice == "2":
secondary_menu(user_profile)
else:
print("There is no such option.")
secondary_menu(user_profile)
def repeat_words(file_name):
user_profile = open(file_name,"r")
data = user_profile.read()
user_profile.close()
serialized_data = json.loads(data)
words = serialized_data["words"]
i = 0
while i < len(words):
word = words[i]
count = 0
if int(word["repetitions"]) == 0:
last_repeat = word["learnt_on"]
calculated_date = calculate_date_difference(1)
if calculated_date == last_repeat:
word, i, count = show_sentence(word, i, count)
else:
i += 1
elif int(word["repetitions"]) < 7 and word["repetitions"] > 0:
last_repeat = word["last_repeat"]
calculated_date = calculate_date_difference(1)
if calculated_date == last_repeat:
word, i, count = show_sentence(word, i, count)
else:
i += 1
elif int(word["repetitions"]) == 7:
last_repeat = word["last_repeat"]
calculated_date = calculate_date_difference(7)
if calculated_date == last_repeat:
word, i, count = show_sentence(word, i, count)
else:
i += 1
elif int(word["repetitions"]) == 8:
last_repeat = word["last_repeat"]
calculated_date = calculate_date_difference(14)
if calculated_date == last_repeat:
word, i, count = show_sentence(word, i, count)
else:
i += 1
else:
i += 1
if count == 0:
print("There is no words for today. Come tomorrow.")
else:
print("That's all the words for today.")
user_profile = open(file_name,"w+")
json.dump(serialized_data, user_profile)
user_profile.close()
def calculate_date_difference(difference):
current_date = datetime.datetime.now()
calculated_date = current_date - datetime.timedelta(days=difference)
calculated_date = calculated_date.strftime("%Y-%m-%d")
return calculated_date
def show_sentence(word, i, count):
print(word["sentence"])
word["repetitions"] = int(word["repetitions"]) + 1
current_date = datetime.datetime.now()
word["last_repeat"] = current_date.strftime("%Y-%m-%d")
count += 1
i += 1
return word, i, count
print("Welcome to 28 days words learning app. \n")
initial_menu() | 34.550201 | 97 | 0.535511 | 987 | 8,603 | 4.448835 | 0.123607 | 0.065133 | 0.022774 | 0.025962 | 0.724664 | 0.686404 | 0.638351 | 0.617399 | 0.617399 | 0.605101 | 0 | 0.010076 | 0.342439 | 8,603 | 249 | 98 | 34.550201 | 0.76613 | 0 | 0 | 0.708333 | 0 | 0 | 0.172594 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032407 | false | 0 | 0.018519 | 0 | 0.060185 | 0.050926 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
522b2b0fa12d2a1dd5f454984652774d2801eebd | 1,886 | py | Python | Middleware.py | huobingli/fpyd | b64f3369a3603b61310e57f5fc3d7c5de994dec1 | [
"MIT"
] | null | null | null | Middleware.py | huobingli/fpyd | b64f3369a3603b61310e57f5fc3d7c5de994dec1 | [
"MIT"
] | null | null | null | Middleware.py | huobingli/fpyd | b64f3369a3603b61310e57f5fc3d7c5de994dec1 | [
"MIT"
] | null | null | null | from mysql_comm.mysql_comm import *
from redis_comm.redis_comm import *
def insert_datas(datas):
with UsingMysql(log_time=True) as um:
pass
def insert_data(database, data):
with UsingMysql(log_time=True) as um:
sql = "insert into " + database + "(fp_id, fp_title, fp_res_org, fp_report_time, fp_stock_name, fp_stock_code, fp_source_id, fp_is_stock) \
values(%s, %s, %s, %s, %s, %s, %s, %s)"
params = ('%s' % data[0], '%s' % data[1], "%s" % data[2], "%s" % data[3], "%s" % data[4], "%s" % data[5], "%s" % data[6], "%d" % data[7])
# print(sql)
um.cursor.execute(sql, params)
def test_insert_data():
pass
def fecth_data(database, condition=""):
with UsingMysql(log_time=True) as um:
sql = 'select * from %s %s' % (database, condition)
print(sql)
um.cursor.execute(sql)
data_list = um.cursor.fetchall()
print('-- 总数: %d' % len(data_list))
return data_list
def test_feach_data():
pass
def update_data(database, setdata, condition=""):
with UsingMysql(log_time=True) as um:
sql = "update %s %s %s" % (database, setdata, condition)
um.cursor.execute(sql)
def test_update_data():
pass
def delete_data(database, condition=""):
with UsingMysql(log_time=True) as um:
sql = 'delete from %s %s' % (database, condition)
um.cursor.execute(sql)
def redis_set(key, value):
with UsingRedis(log_time=True) as ur:
ur.set_key_value(key, value)
def redis_get(key):
with UsingRedis(log_time=True) as ur:
return ur.get_key_value(key)
def redis_zset_set(set, key, value):
with UsingRedis(log_time=True) as ur:
ur.zset_set_key_value(set, key, value)
def redis_zset_get(key):
with UsingRedis(log_time=True) as ur:
return ur.zset_get_key_value(key)
if __name__ == '__main__':
pass | 30.918033 | 148 | 0.629905 | 285 | 1,886 | 3.940351 | 0.238596 | 0.01959 | 0.088157 | 0.104185 | 0.476402 | 0.443455 | 0.343722 | 0.310775 | 0.28228 | 0.24577 | 0 | 0.005476 | 0.225345 | 1,886 | 61 | 149 | 30.918033 | 0.763176 | 0.005302 | 0 | 0.361702 | 0 | 0.021277 | 0.0512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255319 | false | 0.106383 | 0.042553 | 0 | 0.361702 | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
5233405403bf14c4dfbcafd95285eeecc8a3a127 | 4,730 | py | Python | 2021/python/tests/test_day25.py | shalgrim/advent-of-code | d3bd1c9f7eeaebff4153f6fd73ef8fc32d2b1ea8 | [
"MIT"
] | null | null | null | 2021/python/tests/test_day25.py | shalgrim/advent-of-code | d3bd1c9f7eeaebff4153f6fd73ef8fc32d2b1ea8 | [
"MIT"
] | null | null | null | 2021/python/tests/test_day25.py | shalgrim/advent-of-code | d3bd1c9f7eeaebff4153f6fd73ef8fc32d2b1ea8 | [
"MIT"
] | null | null | null | import pytest
from day25_1 import map_step, map_step_n
from day25_1 import main as main1
@pytest.fixture
def test_input():
with open('../../data/test25.txt') as f:
return [line.strip() for line in f.readlines()]
example_1_0 = [
list('...>...'),
list('.......'),
list('......>'),
list('v.....>'),
list('......>'),
list('.......'),
list('..vvv..'),
]
example_1_1 = [
list('..vv>..'),
list('.......'),
list('>......'),
list('v.....>'),
list('>......'),
list('.......'),
list('....v..'),
]
example_1_2 = [
list('....v>.'),
list('..vv...'),
list('.>.....'),
list('......>'),
list('v>.....'),
list('.......'),
list('.......'),
]
example_1_3 = [
list('......>'),
list('..v.v..'),
list('..>v...'),
list('>......'),
list('..>....'),
list('v......'),
list('.......'),
]
example_1_4 = [
list('>......'),
list('..v....'),
list('..>.v..'),
list('.>.v...'),
list('...>...'),
list('.......'),
list('v......'),
]
def map_from_text(raw_text):
lines = raw_text.split()
return [list(line.strip()) for line in lines]
example_2_0 = map_from_text(
"""v...>>.vv>
.vv>>.vv..
>>.>v>...v
>>v>>.>.v.
v>v.vv.v..
>.>>..v...
.vv..>.>v.
v.v..>>v.v
....v..v.>"""
)
example_2_1 = map_from_text(
"""....>.>v.>
v.v>.>v.v.
>v>>..>v..
>>v>v>.>.v
.>v.v...v.
v>>.>vvv..
..v...>>..
vv...>>vv.
>.v.v..v.v"""
)
example_2_2 = map_from_text(
""">.v.v>>..v
v.v.>>vv..
>v>.>.>.v.
>>v>v.>v>.
.>..v....v
.>v>>.v.v.
v....v>v>.
.vv..>>v..
v>.....vv."""
)
example_2_3 = map_from_text(
"""v>v.v>.>v.
v...>>.v.v
>vv>.>v>..
>>v>v.>.v>
..>....v..
.>.>v>v..v
..v..v>vv>
v.v..>>v..
.v>....v.."""
)
example_2_4 = map_from_text(
"""v>..v.>>..
v.v.>.>.v.
>vv.>>.v>v
>>.>..v>.>
..v>v...v.
..>>.>vv..
>.v.vv>v.v
.....>>vv.
vvv>...v.."""
)
example_2_5 = map_from_text(
"""vv>...>v>.
v.v.v>.>v.
>.v.>.>.>v
>v>.>..v>>
..v>v.v...
..>.>>vvv.
.>...v>v..
..v.v>>v.v
v.v.>...v."""
)
example_2_10 = map_from_text(
"""..>..>>vv.
v.....>>.v
..v.v>>>v>
v>.>v.>>>.
..v>v.vv.v
.v.>>>.v..
v.v..>v>..
..v...>v.>
.vv..v>vv."""
)
example_2_20 = map_from_text(
"""v>.....>>.
>vv>.....v
.>v>v.vv>>
v>>>v.>v.>
....vv>v..
.v.>>>vvv.
..v..>>vv.
v.v...>>.v
..v.....v>"""
)
example_2_30 = map_from_text(
""".vv.v..>>>
v>...v...>
>.v>.>vv.>
>v>.>.>v.>
.>..v.vv..
..v>..>>v.
....v>..>v
v.v...>vv>
v.v...>vvv"""
)
example_2_40 = map_from_text(
""">>v>v..v..
..>>v..vv.
..>>>v.>.v
..>>>>vvv>
v.....>...
v.v...>v>>
>vv.....v>
.>v...v.>v
vvv.v..v.>"""
)
example_2_50 = map_from_text(
"""..>>v>vv.v
..v.>>vv..
v.>>v>>v..
..>>>>>vv.
vvv....>vv
..v....>>>
v>.......>
.vv>....v>
.>v.vv.v.."""
)
example_2_55 = map_from_text(
"""..>>v>vv..
..v.>>vv..
..>>v>>vv.
..>>>>>vv.
v......>vv
v>v....>>v
vvv...>..>
>vv.....>.
.>v.vv.v.."""
)
example_2_56 = map_from_text(
"""..>>v>vv..
..v.>>vv..
..>>v>>vv.
..>>>>>vv.
v......>vv
v>v....>>v
vvv....>.>
>vv......>
.>v.vv.v.."""
)
example_2_57 = map_from_text(
"""..>>v>vv..
..v.>>vv..
..>>v>>vv.
..>>>>>vv.
v......>vv
v>v....>>v
vvv.....>>
>vv......>
.>v.vv.v.."""
)
example_2_58 = map_from_text(
"""..>>v>vv..
..v.>>vv..
..>>v>>vv.
..>>>>>vv.
v......>vv
v>v....>>v
vvv.....>>
>vv......>
.>v.vv.v..
"""
)
def test_map_step():
assert map_step([list('...>>>>>...')]) == [list('...>>>>.>..')]
assert map_step([list('...>>>>.>..')]) == [list('...>>>.>.>.')]
assert map_step(
[list('..........'), list('.>v....v..'), list('.......>..'), list('..........')]
) == [
list('..........'),
list('.>........'),
list('..v....v>.'),
list('..........'),
]
assert map_step(example_1_0) == example_1_1
assert map_step(example_1_1) == example_1_2
assert map_step(example_1_2) == example_1_3
assert map_step(example_1_3) == example_1_4
assert map_step(example_2_0) == example_2_1
assert map_step(example_2_1) == example_2_2
assert map_step(example_2_2) == example_2_3
assert map_step(example_2_3) == example_2_4
assert map_step(example_2_4) == example_2_5
assert map_step(map_step(map_step(map_step(map_step(example_2_5))))) == example_2_10
assert map_step(example_2_55) == example_2_56
assert map_step(example_2_56) == example_2_57
assert map_step(example_2_57) == example_2_58
def test_map_step_n():
assert map_step_n(example_2_10, 10) == example_2_20
assert map_step_n(example_2_20, 10) == example_2_30
assert map_step_n(example_2_30, 10) == example_2_40
assert map_step_n(example_2_40, 10) == example_2_50
assert map_step_n(example_2_50, 5) == example_2_55
def test_main1(test_input):
assert main1(test_input) == 58
| 16.596491 | 88 | 0.443552 | 737 | 4,730 | 2.588874 | 0.069199 | 0.162474 | 0.177673 | 0.176101 | 0.681342 | 0.507338 | 0.415618 | 0.354822 | 0.286688 | 0.252621 | 0 | 0.040547 | 0.165751 | 4,730 | 284 | 89 | 16.65493 | 0.44298 | 0 | 0 | 0.205128 | 0 | 0 | 0.123067 | 0.006627 | 0 | 0 | 0 | 0 | 0.188034 | 1 | 0.042735 | false | 0 | 0.025641 | 0 | 0.08547 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
524200af22407131ff0b4d610415254327069f0f | 1,078 | py | Python | test/com/facebook/buck/core/module/impl/test_app.py | Unknoob/buck | 2dfc734354b326f2f66896dde7746a11965d5a13 | [
"Apache-2.0"
] | 8,027 | 2015-01-02T05:31:44.000Z | 2022-03-31T07:08:09.000Z | test/com/facebook/buck/core/module/impl/test_app.py | Unknoob/buck | 2dfc734354b326f2f66896dde7746a11965d5a13 | [
"Apache-2.0"
] | 2,355 | 2015-01-01T15:30:53.000Z | 2022-03-30T20:21:16.000Z | test/com/facebook/buck/core/module/impl/test_app.py | Unknoob/buck | 2dfc734354b326f2f66896dde7746a11965d5a13 | [
"Apache-2.0"
] | 1,280 | 2015-01-09T03:29:04.000Z | 2022-03-30T15:14:14.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import subprocess
import unittest
class TestApp(unittest.TestCase):
"""
This is a Python test that allows to do testing of arbitrary applications
The main purpose of using this approach is to provide an ability to run tests on Windows
(which doesn't support sh_test).
The command is passed to this test using `CMD` environment variable.
"""
def test_app(self):
self.assertEquals(0, subprocess.call(os.environ["CMD"].split(" ")))
| 33.6875 | 92 | 0.737477 | 163 | 1,078 | 4.865031 | 0.650307 | 0.075662 | 0.032787 | 0.040353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005721 | 0.189239 | 1,078 | 31 | 93 | 34.774194 | 0.901602 | 0.777365 | 0 | 0 | 0 | 0 | 0.02 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
524335c52fc4efb7aa6390e9a66eced8d1cd6c0e | 1,488 | py | Python | models/FastNeuralStyleTransferModel.py | taivu1998/GANime | a1d1569a1797f3fc50159475de2e3d47697abfed | [
"MIT"
] | 24 | 2020-03-20T05:43:16.000Z | 2022-03-23T22:09:35.000Z | models/FastNeuralStyleTransferModel.py | bobyang9/GANime | c4e98274cc8ecddda0d6273c5d2670a8d356648f | [
"MIT"
] | null | null | null | models/FastNeuralStyleTransferModel.py | bobyang9/GANime | c4e98274cc8ecddda0d6273c5d2670a8d356648f | [
"MIT"
] | 2 | 2020-05-24T23:07:08.000Z | 2021-04-02T11:33:35.000Z | '''
This program implements a Fast Neural Style Transfer model.
References:
https://www.tensorflow.org/tutorials/generative/style_transfer
'''
from __future__ import absolute_import, division, print_function, unicode_literals
import tensorflow as tf
import tensorflow_hub as hub
import os, sys
import time
import numpy as np
from BaseModel import BaseModel
from utils.data_pipeline import *
class FastNeuralStyleTransfer(BaseModel):
''' A Fast Neural Style Transfer model. '''
def __init__(self):
''' Initializes the class. '''
super().__init__()
def build_model(self):
''' Builds network architectures. '''
hub_module_path = 'https://tfhub.dev/google/magenta/arbitrary-image-stylization-v1-256/1'
self.hub_module = hub.load(hub_module_path)
def fit(self, content_image, style_image, output_path = 'stylized_image_fast.png'):
''' Trains the model. '''
start = time.time()
self.stylized_image = self.hub_module(tf.constant(content_image), tf.constant(style_image))[0]
self.save_output(output_path)
end = time.time()
print("Total time: {:.1f}".format(end - start))
def predict(self):
''' Generates an output image from an input. '''
return self.stylized_image
def save_output(self, img_path):
''' Saves the output image. '''
output = tensor_to_image(self.stylized_image)
output.save(img_path)
| 29.76 | 102 | 0.672043 | 185 | 1,488 | 5.178378 | 0.459459 | 0.037578 | 0.053236 | 0.033403 | 0.060543 | 0.060543 | 0 | 0 | 0 | 0 | 0 | 0.006029 | 0.219758 | 1,488 | 49 | 103 | 30.367347 | 0.819121 | 0.213038 | 0 | 0 | 0 | 0.04 | 0.097604 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.32 | 0 | 0.6 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
525064b1ed219ef71b739ece262ba4a5a5c4ba31 | 609 | py | Python | ejercicios_basicos/poo/poo10/test_figura_geo.py | JuanDuran85/ejemplos_python | 47aa49c65384ab89654f362f3da6cd2b0ef386e5 | [
"Apache-2.0"
] | null | null | null | ejercicios_basicos/poo/poo10/test_figura_geo.py | JuanDuran85/ejemplos_python | 47aa49c65384ab89654f362f3da6cd2b0ef386e5 | [
"Apache-2.0"
] | null | null | null | ejercicios_basicos/poo/poo10/test_figura_geo.py | JuanDuran85/ejemplos_python | 47aa49c65384ab89654f362f3da6cd2b0ef386e5 | [
"Apache-2.0"
] | null | null | null | from Cuadrado import Cuadrado
from Rectangulo import Rectangulo
print("Creacion objeto Cuadrado".center(50, "-"))
cuadrado1 = Cuadrado(lado=10, color='azul')
print(cuadrado1)
print(cuadrado1.color)
print(cuadrado1.ancho)
print(cuadrado1.alto)
print(cuadrado1.area())
# trabajando con el metodo MRO - Method Resolution Order
print(Cuadrado.__mro__)
print(Cuadrado.mro())
print("Creacion Objeto Rectangulo".center(50, "-"))
reactangulo1 = Rectangulo(base=10, altura=20,color='verde')
print(reactangulo1)
print(reactangulo1.color)
print(reactangulo1.ancho)
print(reactangulo1.alto)
print(reactangulo1.area()) | 26.478261 | 59 | 0.784893 | 76 | 609 | 6.236842 | 0.394737 | 0.147679 | 0.080169 | 0.088608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039286 | 0.08046 | 609 | 23 | 60 | 26.478261 | 0.807143 | 0.08867 | 0 | 0 | 0 | 0 | 0.110108 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.777778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
5253378a89fcd0af689b45bb751a44315a891df5 | 1,252 | py | Python | loopchain/blockchain/blocks/v0_5/block_builder.py | windies21/loopchain | 6e96c8a7e006747af04187155678f2fae59e1389 | [
"Apache-2.0"
] | 105 | 2018-04-03T05:29:08.000Z | 2022-01-28T17:33:20.000Z | loopchain/blockchain/blocks/v0_5/block_builder.py | laurenceyoon/loopchain | e87032779be4715c135c2c91d2757d9c63bf4e31 | [
"Apache-2.0"
] | 135 | 2018-09-04T07:11:02.000Z | 2021-12-15T06:25:47.000Z | loopchain/blockchain/blocks/v0_5/block_builder.py | laurenceyoon/loopchain | e87032779be4715c135c2c91d2757d9c63bf4e31 | [
"Apache-2.0"
] | 46 | 2018-05-07T09:12:07.000Z | 2022-02-23T09:58:37.000Z | # Copyright 2018-current ICON Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""block builder for version 0.5 block"""
from loopchain.blockchain.blocks import BlockProverType
from loopchain.blockchain.blocks.v0_4 import BlockBuilder
from loopchain.blockchain.blocks.v0_5 import BlockHeader, BlockBody, BlockProver
from loopchain.blockchain.types import Hash32
class BlockBuilder(BlockBuilder):
version = BlockHeader.version
BlockHeaderClass = BlockHeader
BlockBodyClass = BlockBody
def _build_transactions_hash(self):
if not self.transactions:
return Hash32.empty()
block_prover = BlockProver(self.transactions.keys(), BlockProverType.Transaction)
return block_prover.get_proof_root()
| 37.939394 | 89 | 0.769968 | 164 | 1,252 | 5.823171 | 0.597561 | 0.062827 | 0.096335 | 0.091099 | 0.064921 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017176 | 0.162939 | 1,252 | 32 | 90 | 39.125 | 0.894084 | 0.476837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
525e027715d3144b67819590485c36cad49673b9 | 1,757 | py | Python | coord2vec/pipelines/lagoon_utils/auto_stage.py | jonzarecki/coord2vec | 4f267fdd87af7b3d3558ca834b88e9ab7c309c18 | [
"Apache-2.0"
] | null | null | null | coord2vec/pipelines/lagoon_utils/auto_stage.py | jonzarecki/coord2vec | 4f267fdd87af7b3d3558ca834b88e9ab7c309c18 | [
"Apache-2.0"
] | null | null | null | coord2vec/pipelines/lagoon_utils/auto_stage.py | jonzarecki/coord2vec | 4f267fdd87af7b3d3558ca834b88e9ab7c309c18 | [
"Apache-2.0"
] | 1 | 2021-01-25T09:21:17.000Z | 2021-01-25T09:21:17.000Z | from typing import Union, List
from lagoon import Stage, Task
from coord2vec.pipelines.lagoon_utils.lambda_task import LambdaTask
class AutoStage(Stage):
def __init__(self, name: str, **kwargs):
super().__init__(name, **kwargs)
self.output_param_to_task = dict()
def update_output_params(self, task):
# TODO: kind-of ugly, uses internal _dict_graph
if isinstance(task, LambdaTask) and task not in self._dict_graph:
for output_param in (task.pass_input_names + task.func_output_names):
self.output_param_to_task[output_param] = task
def add_auto(self, task: LambdaTask):
relevant_connections = set()
for input_param in task.func_input_names:
if input_param in self.output_param_to_task:
relevant_connections.add(self.output_param_to_task[input_param])
else:
pass # can come from pipelines variable
# raise AssertionError(f"input {input_param} not presented before")
if len(relevant_connections) == 0:
self.add(task)
else:
self.add_dependency(list(relevant_connections), task)
def add_dependency(
self, current_task: Union[Task, List[Task]], next_task: Union[Task, List[Task]]
) -> "Stage":
if not isinstance(current_task, list):
current_task = [current_task]
if not isinstance(next_task, list):
next_task = [next_task]
for task in (next_task + current_task):
self.update_output_params(task) # will try for all NEW tasks
return super(AutoStage, self).add_dependency(current_task, next_task)
def add_to_DAG(task: LambdaTask, s: AutoStage):
s.add_auto(task) | 37.382979 | 87 | 0.660216 | 228 | 1,757 | 4.802632 | 0.315789 | 0.060274 | 0.054795 | 0.0621 | 0.115068 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001524 | 0.253273 | 1,757 | 47 | 88 | 37.382979 | 0.833079 | 0.097325 | 0 | 0.058824 | 0 | 0 | 0.003161 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.147059 | false | 0.058824 | 0.088235 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
527eb99dfa2b028f29819a3104c6f9c9adfe7aae | 2,886 | py | Python | pyxlsb2/cell.py | cccs-jh/pyxlsb2 | 6c5a2990a62e0d80a366d87eb65cbc20573c7b08 | [
"Apache-2.0",
"MIT"
] | 16 | 2020-04-24T20:07:12.000Z | 2022-02-03T18:58:11.000Z | pyxlsb2/cell.py | cccs-jh/pyxlsb2 | 6c5a2990a62e0d80a366d87eb65cbc20573c7b08 | [
"Apache-2.0",
"MIT"
] | 12 | 2020-06-08T14:10:13.000Z | 2022-03-31T14:58:06.000Z | pyxlsb2/cell.py | cccs-jh/pyxlsb2 | 6c5a2990a62e0d80a366d87eb65cbc20573c7b08 | [
"Apache-2.0",
"MIT"
] | 13 | 2020-06-06T07:58:06.000Z | 2021-12-24T11:39:43.000Z | import sys
if sys.version_info > (3,):
basestring = (str, bytes)
long = int
class DeprecatedCellMixin(object):
"""Deprecated Cell properties to preserve source compatibility with the 1.0.x releases."""
__slots__ = ()
@property
def r(self):
"""The row number of this cell.
.. deprecated:: 1.1.0
Use the ``row_num`` property instead.
"""
return self.row.num
@property
def c(self):
"""The column number of this cell.
.. deprecated:: 1.1.0
Use the ``col`` property instead.
"""
return self.col
@property
def v(self):
"""The value of this cell.
.. deprecated:: 1.1.0
Use the ``value`` or the typed ``*_value`` properties instead.
"""
return self.value
@property
def f(self):
"""The formula of this cell.
.. deprecated:: 1.1.0
Use the ``formula`` property instead.
"""
return self.formula
class Cell(DeprecatedCellMixin):
"""A cell in a worksheet.
Attributes:
row (Row): The containing row.
col (int): The column index for this cell.
value (mixed): The cell value.
formula (bytes): The formula PTG bytes.
style_id (int): The style index in the style table.
"""
__slots__ = ('row', 'col', 'value', 'formula', 'style_id')
def __init__(self, row, col, value=None, formula=None, style_id=None):
self.row = row
self.col = col
self.value = value
self.formula = formula
self.style_id = style_id
def __repr__(self):
return 'Cell(row={}, col={}, value={}, formula={}, style_id={})' \
.format(self.row, self.col, self.value, self.formula, self.style_id)
@property
def row_num(self):
"""The row number of this cell."""
return self.row.num
@property
def string_value(self):
"""The string value of this cell or None if not a string."""
if isinstance(self.value, basestring):
return self.value
@property
def numeric_value(self):
"""The numeric value of this cell or None if not a number."""
if isinstance(self.value, (int, long, float)):
return self.value
@property
def bool_value(self):
"""The boolean value of this cell or None if not a boolean."""
if isinstance(self.value, bool):
return self.value
@property
def date_value(self):
"""The date value of this cell or None if not a numeric cell."""
return self.row.sheet.workbook.convert_date(self.value)
@property
def is_date_formatted(self):
"""If this cell is formatted using a date-like format code."""
fmt = self.row.sheet.workbook.styles._get_format(self.style_id)
return fmt.is_date_format
| 27.226415 | 94 | 0.582814 | 375 | 2,886 | 4.381333 | 0.224 | 0.053561 | 0.054778 | 0.045648 | 0.292149 | 0.22885 | 0.165551 | 0.14364 | 0.14364 | 0.042605 | 0 | 0.007418 | 0.299376 | 2,886 | 105 | 95 | 27.485714 | 0.805143 | 0.361053 | 0 | 0.313725 | 0 | 0 | 0.048972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.019608 | 0.019608 | 0.54902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
529658a483417869521cdbb5cf8a291986f401d8 | 85 | py | Python | personal_assistant/constants.py | avryhof/personal-assistant | 115b384a405ee6b2c5099619beff433b113e24ff | [
"MIT"
] | null | null | null | personal_assistant/constants.py | avryhof/personal-assistant | 115b384a405ee6b2c5099619beff433b113e24ff | [
"MIT"
] | 2 | 2021-04-06T17:59:11.000Z | 2021-06-01T23:40:39.000Z | personal_assistant/constants.py | avryhof/personal-assistant | 115b384a405ee6b2c5099619beff433b113e24ff | [
"MIT"
] | null | null | null | RECOGNIZER_SNOWBOY = 'snowboy'
RECOGNIZER_SPHINX = 'sphinx'
RECOGNIZER_WIT = 'wit.ai' | 28.333333 | 30 | 0.788235 | 10 | 85 | 6.4 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094118 | 85 | 3 | 31 | 28.333333 | 0.831169 | 0 | 0 | 0 | 0 | 0 | 0.22093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bfe2baa9a9cbbb83b453c87c86d2b93ecfcf0cc5 | 484 | py | Python | apps/teacheres/adminx.py | ECNU-Studio/emoc | b11d1ebe91e2d9a4bc5b74ca7be3a13137f1c53c | [
"MIT"
] | 1 | 2018-03-10T08:50:18.000Z | 2018-03-10T08:50:18.000Z | apps/teacheres/adminx.py | ECNU-Studio/emoc | b11d1ebe91e2d9a4bc5b74ca7be3a13137f1c53c | [
"MIT"
] | 13 | 2018-04-28T02:33:21.000Z | 2018-05-04T09:05:38.000Z | apps/teacheres/adminx.py | ECNU-Studio/emoc | b11d1ebe91e2d9a4bc5b74ca7be3a13137f1c53c | [
"MIT"
] | null | null | null | # _*_ coding:utf-8 _*_
import xadmin
from .models import Teacheres
from courses.models import Courses
class AddCourses(object):
model = Courses
extra = 0
#培训师
class TeacheresAdmin(object):
list_display = ['name', 'username', 'email', 'phone', 'weixin', 'password']
search_fields = ['name']
list_filter = ['name']
# 列表页直接编辑
list_editable = ['name']
model_icon = 'fa fa-user'
inlines = [AddCourses]
xadmin.site.register(Teacheres, TeacheresAdmin) | 23.047619 | 79 | 0.677686 | 55 | 484 | 5.8 | 0.654545 | 0.075235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0.190083 | 484 | 21 | 80 | 23.047619 | 0.808673 | 0.06405 | 0 | 0 | 0 | 0 | 0.128889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.214286 | 0 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
bff41132c693f640921216d313ea2aaf31ff07fc | 1,076 | py | Python | revolt/plugins/commands/context.py | ppotatoo/revolt.py | 56d09b050e26898c6051eaee3fdd268a5b16bc22 | [
"MIT"
] | null | null | null | revolt/plugins/commands/context.py | ppotatoo/revolt.py | 56d09b050e26898c6051eaee3fdd268a5b16bc22 | [
"MIT"
] | null | null | null | revolt/plugins/commands/context.py | ppotatoo/revolt.py | 56d09b050e26898c6051eaee3fdd268a5b16bc22 | [
"MIT"
] | null | null | null | from revolt.types.file import File
from revolt.embed import Embed
from revolt.message import Message
from typing import Optional
class Context:
def __init__(self, message, bot):
self.message = message
self.bot = bot
async def send(self, content: Optional[str] = None, embeds: Optional[list[Embed]] = None, embed: Optional[Embed] = None, attachments: Optional[list[File]] = None) -> Message:
"""Sends a message in a channel, you must send at least one of either `content`, `embeds` or `attachments`
Parameters
-----------
content: Optional[:class:`str`]
The content of the message, this will not include system message's content
attachments: Optional[list[:class:`File`]]
The attachments of the message
embeds: Optional[list[:class:`Embed`]]
The embeds of the message
Returns
--------
:class:`Message`
The message that was just sent
"""
return await self.message.channel.send(content, embeds, embed, attachments) | 37.103448 | 178 | 0.635688 | 131 | 1,076 | 5.19084 | 0.381679 | 0.070588 | 0.052941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257435 | 1,076 | 29 | 179 | 37.103448 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
bff7028914bc52a8b384670d2126ddb356c5fd23 | 2,860 | py | Python | 372_palanced.py | RLeary/rdp_challenges | b14cc27bf3afd1d373f26e5d154e6c0cf3d7ca05 | [
"MIT"
] | null | null | null | 372_palanced.py | RLeary/rdp_challenges | b14cc27bf3afd1d373f26e5d154e6c0cf3d7ca05 | [
"MIT"
] | null | null | null | 372_palanced.py | RLeary/rdp_challenges | b14cc27bf3afd1d373f26e5d154e6c0cf3d7ca05 | [
"MIT"
] | null | null | null | """Given a string containing only the characters x and y, find whether there are the same number of xs and ys.
balanced("xxxyyy") => true
balanced("yyyxxx") => true
balanced("xxxyyyy") => false
balanced("yyxyxxyxxyyyyxxxyxyx") => true
balanced("xyxxxxyyyxyxxyxxyy") => false
balanced("") => true
balanced("x") => false
"""
"""Optional bonus
Given a string containing only lowercase letters, find whether every letter that appears in the string appears the same number of times. Don't forget to handle the empty string ("") correctly!
balanced_bonus("xxxyyyzzz") => true
balanced_bonus("abccbaabccba") => true
balanced_bonus("xxxyyyzzzz") => false
balanced_bonus("abcdefghijklmnopqrstuvwxyz") => true
balanced_bonus("pqq") => false
balanced_bonus("fdedfdeffeddefeeeefddf") => false
balanced_bonus("www") => true
balanced_bonus("x") => true
balanced_bonus("") => true
Note that balanced_bonus behaves differently than balanced for a few inputs, e.g. "x".
"""
def balanced(string):
x_count, y_count = 0, 0
for char in string:
if char == 'x':
x_count = x_count + 1
elif char =='y':
y_count = y_count + 1
else:
print("Strings may only contain 'x' or 'y'. Exiting")
exit()
if x_count == y_count:
return True
else:
return False
# From reddit comments
def balanced_bonus(string):
if len(string) == 0:
return True
letters = {}
for letter in string:
try:
letters[letter] += 1
except:
letters[letter] = 1
return len(set(letters.values())) == 1
print("balanced(\"xxxyyy\"): ", balanced("xxxyyy"))
print("balanced(\"yyyxxx\"): ", balanced("yyyxxx"))
print("balanced(\"xxxyyyy\"): ", balanced("xxxyyyy"))
print("balanced(\"yyxyxxyxxyyyyxxxyxyx\"): ", balanced("yyxyxxyxxyyyyxxxyxyx"))
print("balanced(\"xyxxxxyyyxyxxyxxyy\"): ", balanced("xyxxxxyyyxyxxyxxyy"))
print("balanced(\"\"): ", balanced(""))
print("balanced(\"x\"): ", balanced("x"))
#print("balanced(\"xxxyyya\"): ", balanced("xxxyyya"))
print("balanced_bonus(\"xxxyyyzzz\"): ", balanced_bonus("xxxyyyzzz"))
print("balanced_bonus(\"abccbaabccba\"): ", balanced_bonus("abccbaabccba"))
print("balanced_bonus(\"xxxyyyzzzz\"): ", balanced_bonus("xxxyyyzzzz"))
print("balanced_bonus(\"abcdefghijklmnopqrstuvwxyz\"): ", balanced_bonus("abcdefghijklmnopqrstuvwxyz"))
print("balanced_bonus(\"pqq\"): ", balanced_bonus("pqq"))
print("balanced_bonus(\"fdedfdeffeddefeeeefddf\"): ", balanced_bonus("fdedfdeffeddefeeeefddf"))
print("balanced_bonus(\"www\"): ", balanced_bonus("www"))
print("balanced_bonus(\"\"): ", balanced_bonus(""))
print("balanced_bonus(\"x\"): ", balanced_bonus("x"))
# one line solution from reddit:
#def balanced(string):
# return string.lower().count("x") == string.lower().count("y") | 35.308642 | 193 | 0.662587 | 322 | 2,860 | 5.770186 | 0.276398 | 0.202906 | 0.087191 | 0.023681 | 0.027987 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003354 | 0.166084 | 2,860 | 81 | 194 | 35.308642 | 0.775681 | 0.177622 | 0 | 0.1 | 0 | 0 | 0.277812 | 0.029502 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.15 | 0.425 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
870471c2d2cfa3694cd35571e655bc89ffdfcb61 | 1,032 | py | Python | python/test/test_super_multiple_order_api.py | ashwinkp/ksapi | c348765cefb4d51fd90febcbfa9ff890b67bdc7d | [
"Apache-2.0"
] | 7 | 2022-02-05T16:20:37.000Z | 2022-02-27T16:48:28.000Z | python/test/test_super_multiple_order_api.py | ashwinkp/ksapi | c348765cefb4d51fd90febcbfa9ff890b67bdc7d | [
"Apache-2.0"
] | 19 | 2022-02-03T12:40:08.000Z | 2022-03-30T09:12:46.000Z | python/test/test_super_multiple_order_api.py | ashwinkp/ksapi | c348765cefb4d51fd90febcbfa9ff890b67bdc7d | [
"Apache-2.0"
] | 12 | 2021-12-23T06:14:21.000Z | 2022-03-28T07:47:19.000Z | # coding: utf-8
from __future__ import absolute_import
import unittest
import ks_api_client
from ks_api_client.api.super_multiple_order_api import SuperMultipleOrderApi # noqa: E501
from ks_api_client.rest import ApiException
class TestSuperMultipleOrderApi(unittest.TestCase):
"""SuperMultipleOrderApi unit test stubs"""
def setUp(self):
self.api = ks_api_client.api.super_multiple_order_api.SuperMultipleOrderApi() # noqa: E501
def tearDown(self):
pass
def test_cancel_sm_order(self):
"""Test case for cancel_sm_order
Cancel an Super Multiple order # noqa: E501
"""
pass
def test_modify_sm_order(self):
"""Test case for modify_sm_order
Modify an existing super multiple order # noqa: E501
"""
pass
def test_place_new_sm_order(self):
"""Test case for place_new_sm_order
Place a New Super Multiple order # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()
| 21.5 | 99 | 0.679264 | 131 | 1,032 | 5.015267 | 0.328244 | 0.063927 | 0.136986 | 0.068493 | 0.365297 | 0.365297 | 0.219178 | 0.219178 | 0 | 0 | 0 | 0.020645 | 0.249031 | 1,032 | 47 | 100 | 21.957447 | 0.827097 | 0.306202 | 0 | 0.222222 | 0 | 0 | 0.012461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0.222222 | 0.277778 | 0 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8710f101398ef0acb5a1b6361f52aad333d1ef26 | 2,505 | py | Python | performance/build/testsuite.py | marksantos/thrust | 67bbec34a7fdb9186aea6c269870b517e42e4388 | [
"Apache-2.0"
] | 28 | 2017-10-04T03:41:56.000Z | 2021-07-18T14:53:36.000Z | performance/build/testsuite.py | marksantos/thrust | 67bbec34a7fdb9186aea6c269870b517e42e4388 | [
"Apache-2.0"
] | 13 | 2017-09-06T10:49:44.000Z | 2019-09-07T13:53:24.000Z | performance/build/testsuite.py | marksantos/thrust | 67bbec34a7fdb9186aea6c269870b517e42e4388 | [
"Apache-2.0"
] | 15 | 2018-02-13T00:08:55.000Z | 2022-02-14T05:46:43.000Z | """functions that generate reports and figures using the .xml output from the performance tests"""
__all__ = ['TestSuite', 'parse_testsuite_xml']
class TestSuite:
def __init__(self, name, platform, tests):
self.name = name
self.platform = platform
self.tests = tests
def __repr__(self):
import pprint
return 'TestSuite' + pprint.pformat( (self.name, self.platform, self.tests) )
class Test:
def __init__(self, name, variables, results):
self.name = name
self.variables = variables
self.results = results
def __repr__(self):
return 'Test' + repr( (self.name, self.variables, self.results) )
def scalar_element(element):
value = element.get('value')
try:
return int(value)
except:
try:
return float(value)
except:
return value
def parse_testsuite_platform(et):
testsuite_platform = {}
platform_element = et.find('platform')
device_element = platform_element.find('device')
device = {}
device['name'] = device_element.get('name')
for property_element in device_element.findall('property'):
device[property_element.get('name')] = scalar_element(property_element)
testsuite_platform['device'] = device
return testsuite_platform
def parse_testsuite_tests(et):
testsuite_tests = {}
for test_element in et.findall('test'):
# test name
test_name = test_element.get('name')
# test variables: name -> value
test_variables = {}
for variable_element in test_element.findall('variable'):
test_variables[variable_element.get('name')] = scalar_element(variable_element)
# test results: name -> (value, units)
test_results = {}
for result_element in test_element.findall('result'):
# TODO make this a thing that can be converted to its first element when treated like a number
test_results[result_element.get('name')] = scalar_element(result_element)
testsuite_tests[test_name] = Test(test_name, test_variables, test_results)
return testsuite_tests
def parse_testsuite_xml(filename):
import xml.etree.ElementTree as ET
et = ET.parse(filename)
testsuite_name = et.getroot().get('name')
testsuite_platform = parse_testsuite_platform(et)
testsuite_tests = parse_testsuite_tests(et)
return TestSuite(testsuite_name, testsuite_platform, testsuite_tests)
| 29.821429 | 106 | 0.668663 | 293 | 2,505 | 5.460751 | 0.232082 | 0.074375 | 0.04375 | 0.0375 | 0.125625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233533 | 2,505 | 83 | 107 | 30.180723 | 0.833333 | 0.10499 | 0 | 0.148148 | 1 | 0 | 0.053788 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.148148 | false | 0 | 0.037037 | 0.018519 | 0.37037 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
87214198b671c3bd959654596c5df39383991bf6 | 3,663 | py | Python | sample_project/batchimport/batchimport_settings.py | gitdaniel228/realtor | 4366d57b064be87b31c8a036b3ed7a99b2036461 | [
"BSD-3-Clause"
] | null | null | null | sample_project/batchimport/batchimport_settings.py | gitdaniel228/realtor | 4366d57b064be87b31c8a036b3ed7a99b2036461 | [
"BSD-3-Clause"
] | null | null | null | sample_project/batchimport/batchimport_settings.py | gitdaniel228/realtor | 4366d57b064be87b31c8a036b3ed7a99b2036461 | [
"BSD-3-Clause"
] | null | null | null | """
The batchimport_settings.py module initializes itself with defaults but
allows for the values to be overridden via the django project's settings
file.
NOTE: These values should be considered CONSTANTS even though I'm kind
of cheating and using them as variables to initialize them here.
"""
import settings
def get_setting(setting_name, default):
"""
A simple setting retrieval function to pull settings from the
main settings.py file.
"""
setting = default
print setting_name
print default
try:
setting=getattr(settings, setting_name)
except (AttributeError, NameError):
pass
return setting
# INITIALIZE BATCHIMPORT SETTINGS...
BATCH_IMPORT_START_TEMPLATE = get_setting('BATCH_IMPORT_START_TEMPLATE', 'batchimport/start.html')
BATCH_IMPORT_OPTIONS_TEMPLATE = get_setting('BATCH_IMPORT_OPTIONS_TEMPLATE', 'batchimport/options.html')
BATCH_IMPORT_EXECUTE_TEMPLATE = get_setting('BATCH_IMPORT_EXECUTE_TEMPLATE', 'batchimport/processing.html')
BATCH_IMPORT_RESULTS_TEMPLATE = get_setting('BATCH_IMPORT_RESULTS_TEMPLATE', 'batchimport/results.html')
# Specify the list of models in your application which are importable
# in batch. If you do not provide a list, the system will use introspection
# to get a list of ALL models in your application (via INSTALLED_APPS).
BATCH_IMPORT_IMPORTABLE_MODELS = get_setting('BATCH_IMPORT_IMPORTABLE_MODELS', [])
# Specify where the uploaded Microsoft Excel file will be saved to the
# system.
# NOTE: This must be a absolute path.
# NOTE: Django must have read/write access to this location.
BATCH_IMPORT_TEMPFILE_LOCATION = get_setting('BATCH_IMPORT_TEMPFILE_LOCATION', '/tmp/')
# By default, the system does not allow you to import data for fields
# that are not EDITABLE (i.e. in their model field declarations, you've
# set editable=False). You can override this behavior here:
BATCH_IMPORT_UNEDITABLE_FIELDS = get_setting('BATCH_IMPORT_UNEDITABLE_FIELDS', False)
# Sometimes you will want to override the value coming in from the XLS
# file with a constant or a dynamically generated value.
# The following setting is a dictionary of values (or callables) per
# each fully specified model field.
# NOTE: You must import the item into your settings file if it is a
# callable.
BATCH_IMPORT_VALUE_OVERRIDES = get_setting('BATCH_IMPORT_VALUE_OVERRIDES', {})
# The system can show you individual imports, updates,
# or errors individually using the following boolean options.
# Note that True is assumed for all three if no setting is
# present.
BATCH_IMPORT_SHOW_SUCCESSFUL_IMPORTS = get_setting('BATCH_IMPORT_SHOW_SUCCESSFUL_IMPORTS', True)
BATCH_IMPORT_SHOW_SUCCESSFUL_UPDATES = get_setting('BATCH_IMPORT_SHOW_SUCCESSFUL_UPDATES', True)
BATCH_IMPORT_SHOW_ERRORS = get_setting('BATCH_IMPORT_SHOW_ERRORS', True)
# Whether the system should stop on the first error
# or process the entire uploaded spreadsheet and show
# errors afterwards.
BATCH_IMPORT_STOP_ON_FIRST_ERROR = get_setting('BATCH_IMPORT_STOP_ON_FIRST_ERROR', False)
# Whether or not to update duplicates or simply
# ignore them. Note that duplicates are determined
# based on the user's specification of model fields
# as identification fields. If these are not set, a duplicate
# must match at all column/fields.
BATCH_IMPORT_UPDATE_DUPS = get_setting('BATCH_IMPORT_UPDATE_DUPS', False)
# If no options are set for start/end row, defaults are used that
# assume (1) the spreadsheet has a header row (indicating that data
# starts on row #2 and (2) the entire spreadsheet is to be processed.
BATCH_IMPORT_START_ROW = get_setting('BATCH_IMPORT_START_ROW', 2)
BATCH_IMPORT_END_ROW = get_setting('BATCH_IMPORT_END_ROW', -1)
| 43.094118 | 107 | 0.803986 | 551 | 3,663 | 5.128857 | 0.352087 | 0.116773 | 0.079618 | 0.111465 | 0.141897 | 0.043878 | 0 | 0 | 0 | 0 | 0 | 0.001574 | 0.132951 | 3,663 | 84 | 108 | 43.607143 | 0.888224 | 0.451542 | 0 | 0 | 0 | 0 | 0.334177 | 0.318354 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.04 | 0.64 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
872b15d4a269e14f5342a8109b8993012c978013 | 1,222 | py | Python | trieste/models/gpflow/__init__.py | henrymoss/trieste | 4c8d14ead793fb49cdbb883789b799310873db70 | [
"Apache-2.0"
] | 1 | 2021-10-02T19:53:48.000Z | 2021-10-02T19:53:48.000Z | trieste/models/gpflow/__init__.py | TsingQAQ/trieste | 6b2bb0e73649debaac81157f0f9fdb8d3fdfef5b | [
"Apache-2.0"
] | null | null | null | trieste/models/gpflow/__init__.py | TsingQAQ/trieste | 6b2bb0e73649debaac81157f0f9fdb8d3fdfef5b | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
r"""
This package contains the primary interface for Gaussian process models. It also contains a
number of :class:`TrainableProbabilisticModel` wrappers for GPflow-based models.
"""
from . import config, optimizer
from .interface import GPflowPredictor
from .models import GaussianProcessRegression, SparseVariational, VariationalGaussianProcess
from .sampler import (
BatchReparametrizationSampler,
IndependentReparametrizationSampler,
RandomFourierFeatureTrajectorySampler,
)
from .utils import (
M,
assert_data_is_compatible,
check_optimizer,
randomize_hyperparameters,
squeeze_hyperparameters,
)
| 34.914286 | 92 | 0.787234 | 149 | 1,222 | 6.416107 | 0.671141 | 0.062762 | 0.027197 | 0.033473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007752 | 0.155483 | 1,222 | 34 | 93 | 35.941176 | 0.918605 | 0.601473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0 | true | 0 | 0.3125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
872daf06ad41c681b338cb82204799f97cdb8c02 | 829 | py | Python | expenses_tracker/expenses_tracker/web/vaidators.py | LBistrev/python-web-basic | e798d5eb22657a014d3dd0f98e4c3c585336c4fc | [
"MIT"
] | null | null | null | expenses_tracker/expenses_tracker/web/vaidators.py | LBistrev/python-web-basic | e798d5eb22657a014d3dd0f98e4c3c585336c4fc | [
"MIT"
] | null | null | null | expenses_tracker/expenses_tracker/web/vaidators.py | LBistrev/python-web-basic | e798d5eb22657a014d3dd0f98e4c3c585336c4fc | [
"MIT"
] | null | null | null | from django.core.exceptions import ValidationError
from django.utils.deconstruct import deconstructible
VALIDATE_ONLY_LETTERS_EXCEPTION_MESSAGE = 'Ensure this value contains only letters.'
def validate_only_letters(value):
if not value.isalpha():
raise ValidationError(VALIDATE_ONLY_LETTERS_EXCEPTION_MESSAGE)
@deconstructible
class ImageMaxSizeInMbValidator:
def __init__(self, max_size):
self.max_size = max_size
def __call__(self, value):
filesize = value.file.size
if filesize > self.__megabytes_to_bytes(self.max_size):
raise ValidationError(self.__get_exception_message())
@staticmethod
def __megabytes_to_bytes(value):
return value * 1024 * 1024
def __get_exception_message(self):
return f'Max file size is {self.max_size:.2f}MB'
| 29.607143 | 84 | 0.74427 | 101 | 829 | 5.722772 | 0.425743 | 0.060554 | 0.076125 | 0.096886 | 0.121107 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013314 | 0.18456 | 829 | 27 | 85 | 30.703704 | 0.841716 | 0 | 0 | 0 | 0 | 0 | 0.094089 | 0.025332 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.105263 | 0.105263 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
872e1c57fa4968272b0db8d13d59197b314f92ad | 566 | py | Python | pretalx_mattermost/apps.py | toshywoshy/pretalx-mattermost | 69499093750f613f74ab47c9798f5f90431372ba | [
"Apache-2.0"
] | null | null | null | pretalx_mattermost/apps.py | toshywoshy/pretalx-mattermost | 69499093750f613f74ab47c9798f5f90431372ba | [
"Apache-2.0"
] | null | null | null | pretalx_mattermost/apps.py | toshywoshy/pretalx-mattermost | 69499093750f613f74ab47c9798f5f90431372ba | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
from django.utils.translation import gettext_lazy
class PluginApp(AppConfig):
name = 'pretalx_mattermost'
verbose_name = 'MatterMost integration for pretalx'
class PretalxPluginMeta:
name = gettext_lazy('MatterMost integration for pretalx')
author = 'Toshaan Bharvani'
description = gettext_lazy(
'Receive notifications whenever a submission changes its state.'
)
visible = True
version = '0.0.0'
def ready(self):
from . import signals # NOQA
| 28.3 | 76 | 0.674912 | 60 | 566 | 6.283333 | 0.65 | 0.087533 | 0.127321 | 0.164456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.257951 | 566 | 19 | 77 | 29.789474 | 0.890476 | 0.007067 | 0 | 0 | 0 | 0 | 0.301786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
872f00ae4d30467f373664e873bfd51982763b06 | 20,371 | py | Python | mscreen/autodocktools_prepare_py3k/AutoDockTools/VisionInterface/Adt/Macro/AutodockVS.py | e-mayo/mscreen | a50f0b2f7104007c730baa51b4ec65c891008c47 | [
"MIT"
] | 9 | 2021-03-06T04:24:28.000Z | 2022-01-03T09:53:07.000Z | AutoDockTools/VisionInterface/Adt/Macro/AutodockVS.py | e-mayo/autodocktools-prepare-py3k | 2dd2316837bcb7c19384294443b2855e5ccd3e01 | [
"BSD-3-Clause"
] | 3 | 2021-03-07T05:37:16.000Z | 2021-09-19T15:06:54.000Z | AutoDockTools/VisionInterface/Adt/Macro/AutodockVS.py | e-mayo/autodocktools-prepare-py3k | 2dd2316837bcb7c19384294443b2855e5ccd3e01 | [
"BSD-3-Clause"
] | 4 | 2019-08-28T23:11:39.000Z | 2021-11-27T08:43:36.000Z | ########################################################################
#
# Vision Macro - Python source code - file generated by vision
# Thursday 01 July 2010 13:22:44
#
# The Scripps Research Institute (TSRI)
# Molecular Graphics Lab
# La Jolla, CA 92037, USA
#
# Copyright: Daniel Stoffler, Michel Sanner and TSRI
#
# revision: Guillaume Vareille
#
#########################################################################
#
# $Header: /opt/cvs/python/packages/share1.5/AutoDockTools/VisionInterface/Adt/Macro/AutodockVS.py,v 1.9 2010/07/02 00:22:59 jren Exp $
#
# $Id: AutodockVS.py,v 1.9 2010/07/02 00:22:59 jren Exp $
#
from NetworkEditor.macros import MacroNode
class AutodockVS(MacroNode):
'''
Runs Autodock Virtual Screening on remote server in parallel
Inputs:
port 1: LigandDB object containing info about the ligand library
port 2: autogrid_result object containing info about autogrid results
port 3: DPF template object
Outputs:
port 1: string containing URL to autodock virtual screening results
'''
def __init__(self, constrkw={}, name='AutodockVS', **kw):
kw['name'] = name
MacroNode.__init__(*(self,), **kw)
def beforeAddingToNetwork(self, net):
MacroNode.beforeAddingToNetwork(self, net)
from WebServices.VisionInterface.WSNodes import wslib
from Vision.StandardNodes import stdlib
net.getEditor().addLibraryInstance(wslib,"WebServices.VisionInterface.WSNodes", "wslib")
from WebServices.VisionInterface.WSNodes import addOpalServerAsCategory
try:
addOpalServerAsCategory("http://kryptonite.nbcr.net/opal2", replace=False)
except:
pass
def afterAddingToNetwork(self):
masterNet = self.macroNetwork
from NetworkEditor.macros import MacroNode
MacroNode.afterAddingToNetwork(self)
from WebServices.VisionInterface.WSNodes import wslib
from Vision.StandardNodes import stdlib
## building macro network ##
AutodockVS_9 = self
from traceback import print_exc
from WebServices.VisionInterface.WSNodes import wslib
from Vision.StandardNodes import stdlib
masterNet.getEditor().addLibraryInstance(wslib,"WebServices.VisionInterface.WSNodes", "wslib")
from WebServices.VisionInterface.WSNodes import addOpalServerAsCategory
try:
addOpalServerAsCategory("http://kryptonite.nbcr.net/opal2", replace=False)
except:
pass
try:
## saving node input Ports ##
input_Ports_10 = self.macroNetwork.ipNode
input_Ports_10.configure(*(), **{'paramPanelImmediate': 1, 'expanded': False})
except:
print("WARNING: failed to restore MacroInputNode named input Ports in network self.macroNetwork")
print_exc()
input_Ports_10=None
try:
## saving node output Ports ##
output_Ports_11 = self.macroNetwork.opNode
output_Ports_11.configure(*(), **{'paramPanelImmediate': 1, 'expanded': False})
except:
print("WARNING: failed to restore MacroOutputNode named output Ports in network self.macroNetwork")
print_exc()
output_Ports_11=None
try:
## saving node PrepareADVSInputs ##
from Vision.StandardNodes import Generic
PrepareADVSInputs_12 = Generic(constrkw={}, name='PrepareADVSInputs', library=stdlib)
self.macroNetwork.addNode(PrepareADVSInputs_12,217,76)
PrepareADVSInputs_12.addInputPort(*(), **{'singleConnection': True, 'name': 'ligands', 'cast': True, 'datatype': 'LigandDB', 'defaultValue': None, 'required': True, 'height': 8, 'width': 12, 'shape': 'rect', 'color': '#FFCCFF', 'originalDatatype': 'None'})
PrepareADVSInputs_12.addInputPort(*(), **{'singleConnection': True, 'name': 'autogrid_results', 'cast': True, 'datatype': 'autogrid_results', 'defaultValue': None, 'required': True, 'height': 8, 'width': 12, 'shape': 'triangle', 'color': '#FF33CC', 'originalDatatype': 'None'})
PrepareADVSInputs_12.addInputPort(*(), **{'singleConnection': True, 'name': 'dpf_template_obj', 'cast': True, 'datatype': 'dpf_template', 'defaultValue': None, 'required': True, 'height': 8, 'width': 12, 'shape': 'triangle', 'color': '#9933FF', 'originalDatatype': 'None'})
PrepareADVSInputs_12.addOutputPort(*(), **{'name': 'filter_file', 'datatype': 'string', 'height': 8, 'width': 12, 'shape': 'oval', 'color': 'white'})
PrepareADVSInputs_12.addOutputPort(*(), **{'name': 'ligand_lib', 'datatype': 'string', 'height': 8, 'width': 12, 'shape': 'oval', 'color': 'white'})
PrepareADVSInputs_12.addOutputPort(*(), **{'name': 'dpf_template_file', 'datatype': 'string', 'height': 8, 'width': 12, 'shape': 'oval', 'color': 'white'})
PrepareADVSInputs_12.addOutputPort(*(), **{'name': 'autogrid_res_url', 'datatype': 'string', 'height': 8, 'width': 12, 'shape': 'oval', 'color': 'white'})
PrepareADVSInputs_12.addOutputPort(*(), **{'name': 'autogrid_res_local', 'datatype': 'string', 'height': 8, 'width': 12, 'shape': 'oval', 'color': 'white'})
code = """def doit(self, ligands, autogrid_results, dpf_template_obj):
dpf = dpf_template_obj.fullpath
if not(os.path.exists(dpf)):
print "ERROR: DPF template " + dpf + " does not exist!"
return '''stop'''
filter_file = ligands.filter_file
if autogrid_results.type == '''url''':
autogrid_result_url = autogrid_results.path
autogrid_result_local = ""
else:
autogrid_result_url = ""
autogrid_result_local = autogrid_results.path
ligand_lib = ligands.loc
pass
self.outputData(filter_file=filter_file, ligand_lib=ligand_lib, dpf_template_file=dpf, autogrid_res_url=autogrid_result_url, autogrid_res_local=autogrid_result_local)
## to ouput data on port filter_file use
## self.outputData(filter_file=data)
## to ouput data on port ligand_lib use
## self.outputData(ligand_lib=data)
## to ouput data on port dpf_template_file use
## self.outputData(dpf_template_file=data)
## to ouput data on port autogrid_res_url use
## self.outputData(autogrid_res_url=data)
## to ouput data on port autogrid_res_local use
## self.outputData(autogrid_res_local=data)
"""
PrepareADVSInputs_12.configure(function=code)
PrepareADVSInputs_12.configure(*(), **{'paramPanelImmediate': 1, 'expanded': False})
except:
print("WARNING: failed to restore Generic named PrepareADVSInputs in network self.macroNetwork")
print_exc()
PrepareADVSInputs_12=None
try:
## saving node autodock_kryptonite_nbcr_net ##
from NetworkEditor.items import FunctionNode
autodock_kryptonite_nbcr_net_13 = FunctionNode(functionOrString='autodock_kryptonite_nbcr_net', host="http://kryptonite.nbcr.net/opal2", namedArgs={'ga_run': '', 'lib': '', 'filter_file_url': '', 'ga_num_evals': '', 'filter_file': '', 'sched': 'SGE', 'urllib': '', 'ga_num_generations': '', 'dpf': '', 'u': '', 'utar': '', 'userlib': '', 'ga_pop_size': '', 'localRun': False, 'email': '', 'execPath': ''}, constrkw={'functionOrString': "'autodock_kryptonite_nbcr_net'", 'host': '"http://kryptonite.nbcr.net/opal2"', 'namedArgs': {'ga_run': '', 'lib': '', 'filter_file_url': '', 'ga_num_evals': '', 'filter_file': '', 'sched': 'SGE', 'urllib': '', 'ga_num_generations': '', 'dpf': '', 'u': '', 'utar': '', 'userlib': '', 'ga_pop_size': '', 'localRun': False, 'email': '', 'execPath': ''}}, name='autodock_kryptonite_nbcr_net', library=wslib)
self.macroNetwork.addNode(autodock_kryptonite_nbcr_net_13,217,132)
autodock_kryptonite_nbcr_net_13.inputPortByName['ga_run'].configure(*(), **{'defaultValue': None})
autodock_kryptonite_nbcr_net_13.inputPortByName['lib'].configure(*(), **{'defaultValue': None})
autodock_kryptonite_nbcr_net_13.inputPortByName['filter_file_url'].configure(*(), **{'defaultValue': None})
autodock_kryptonite_nbcr_net_13.inputPortByName['ga_num_evals'].configure(*(), **{'defaultValue': None})
autodock_kryptonite_nbcr_net_13.inputPortByName['filter_file'].configure(*(), **{'defaultValue': None})
autodock_kryptonite_nbcr_net_13.inputPortByName['sched'].configure(*(), **{'defaultValue': None})
autodock_kryptonite_nbcr_net_13.inputPortByName['urllib'].configure(*(), **{'defaultValue': None})
autodock_kryptonite_nbcr_net_13.inputPortByName['ga_num_generations'].configure(*(), **{'defaultValue': None})
autodock_kryptonite_nbcr_net_13.inputPortByName['dpf'].configure(*(), **{'defaultValue': None})
autodock_kryptonite_nbcr_net_13.inputPortByName['u'].configure(*(), **{'defaultValue': None})
autodock_kryptonite_nbcr_net_13.inputPortByName['utar'].configure(*(), **{'defaultValue': None})
autodock_kryptonite_nbcr_net_13.inputPortByName['userlib'].configure(*(), **{'defaultValue': None})
autodock_kryptonite_nbcr_net_13.inputPortByName['ga_pop_size'].configure(*(), **{'defaultValue': None})
autodock_kryptonite_nbcr_net_13.inputPortByName['localRun'].configure(*(), **{'defaultValue': None})
autodock_kryptonite_nbcr_net_13.inputPortByName['email'].configure(*(), **{'defaultValue': None})
autodock_kryptonite_nbcr_net_13.inputPortByName['execPath'].configure(*(), **{'defaultValue': None})
autodock_kryptonite_nbcr_net_13.inputPortByName['ga_run'].widget.set(r"", run=False)
autodock_kryptonite_nbcr_net_13.inputPortByName['lib'].widget.configure(*(), **{'choices': ('sample', 'NCIDS_SC', 'NCI_DS1', 'NCI_DS2', 'human_metabolome', 'chembridge_building_blocks', 'drugbank_nutraceutics', 'drugbank_smallmol', 'fda_approved')})
autodock_kryptonite_nbcr_net_13.inputPortByName['lib'].widget.set(r"", run=False)
autodock_kryptonite_nbcr_net_13.inputPortByName['filter_file_url'].widget.set(r"", run=False)
autodock_kryptonite_nbcr_net_13.inputPortByName['ga_num_evals'].widget.set(r"", run=False)
autodock_kryptonite_nbcr_net_13.inputPortByName['filter_file'].rebindWidget()
autodock_kryptonite_nbcr_net_13.inputPortByName['filter_file'].widget.set(r"", run=False)
autodock_kryptonite_nbcr_net_13.inputPortByName['filter_file'].unbindWidget()
autodock_kryptonite_nbcr_net_13.inputPortByName['sched'].widget.configure(*(), **{'choices': ('SGE', 'CSF')})
autodock_kryptonite_nbcr_net_13.inputPortByName['sched'].widget.set(r"SGE", run=False)
autodock_kryptonite_nbcr_net_13.inputPortByName['urllib'].rebindWidget()
autodock_kryptonite_nbcr_net_13.inputPortByName['urllib'].widget.set(r"", run=False)
autodock_kryptonite_nbcr_net_13.inputPortByName['urllib'].unbindWidget()
autodock_kryptonite_nbcr_net_13.inputPortByName['ga_num_generations'].widget.set(r"", run=False)
autodock_kryptonite_nbcr_net_13.inputPortByName['dpf'].rebindWidget()
autodock_kryptonite_nbcr_net_13.inputPortByName['dpf'].widget.set(r"", run=False)
autodock_kryptonite_nbcr_net_13.inputPortByName['dpf'].unbindWidget()
autodock_kryptonite_nbcr_net_13.inputPortByName['u'].rebindWidget()
autodock_kryptonite_nbcr_net_13.inputPortByName['u'].widget.set(r"", run=False)
autodock_kryptonite_nbcr_net_13.inputPortByName['u'].unbindWidget()
autodock_kryptonite_nbcr_net_13.inputPortByName['utar'].rebindWidget()
autodock_kryptonite_nbcr_net_13.inputPortByName['utar'].widget.set(r"", run=False)
autodock_kryptonite_nbcr_net_13.inputPortByName['utar'].unbindWidget()
autodock_kryptonite_nbcr_net_13.inputPortByName['userlib'].widget.set(r"", run=False)
autodock_kryptonite_nbcr_net_13.inputPortByName['ga_pop_size'].widget.set(r"", run=False)
autodock_kryptonite_nbcr_net_13.inputPortByName['localRun'].widget.set(0, run=False)
autodock_kryptonite_nbcr_net_13.inputPortByName['email'].widget.set(r"", run=False)
autodock_kryptonite_nbcr_net_13.inputPortByName['execPath'].widget.set(r"", run=False)
autodock_kryptonite_nbcr_net_13.configure(*(), **{'paramPanelImmediate': 1, 'expanded': False})
except:
print("WARNING: failed to restore FunctionNode named autodock_kryptonite_nbcr_net in network self.macroNetwork")
print_exc()
autodock_kryptonite_nbcr_net_13=None
try:
## saving node GetMainURLFromList ##
from WebServices.VisionInterface.WSNodes import GetMainURLFromListNode
GetMainURLFromList_14 = GetMainURLFromListNode(constrkw={}, name='GetMainURLFromList', library=wslib)
self.macroNetwork.addNode(GetMainURLFromList_14,217,188)
GetMainURLFromList_14.inputPortByName['urls'].configure(*(), **{'defaultValue': None})
GetMainURLFromList_14.configure(*(), **{'paramPanelImmediate': 1, 'expanded': False})
except:
print("WARNING: failed to restore GetMainURLFromListNode named GetMainURLFromList in network self.macroNetwork")
print_exc()
GetMainURLFromList_14=None
#self.macroNetwork.run()
self.macroNetwork.freeze()
## saving connections for network AutodockVS ##
input_Ports_10 = self.macroNetwork.ipNode
if input_Ports_10 is not None and PrepareADVSInputs_12 is not None:
try:
self.macroNetwork.connectNodes(
input_Ports_10, PrepareADVSInputs_12, "new", "ligands", blocking=True
, splitratio=[0.60597534741634829, 0.41083180453223428])
except:
print("WARNING: failed to restore connection between input_Ports_10 and PrepareADVSInputs_12 in network self.macroNetwork")
if input_Ports_10 is not None and PrepareADVSInputs_12 is not None:
try:
self.macroNetwork.connectNodes(
input_Ports_10, PrepareADVSInputs_12, "new", "autogrid_results", blocking=True
, splitratio=[0.64561658610430228, 0.21974682015753622])
except:
print("WARNING: failed to restore connection between input_Ports_10 and PrepareADVSInputs_12 in network self.macroNetwork")
if input_Ports_10 is not None and PrepareADVSInputs_12 is not None:
try:
self.macroNetwork.connectNodes(
input_Ports_10, PrepareADVSInputs_12, "new", "dpf_template_obj", blocking=True
, splitratio=[0.52491295380143521, 0.32751034461281114])
except:
print("WARNING: failed to restore connection between input_Ports_10 and PrepareADVSInputs_12 in network self.macroNetwork")
if autodock_kryptonite_nbcr_net_13 is not None and GetMainURLFromList_14 is not None:
try:
self.macroNetwork.connectNodes(
autodock_kryptonite_nbcr_net_13, GetMainURLFromList_14, "result", "urls", blocking=True
, splitratio=[0.36974288957131424, 0.63465596053596318])
except:
print("WARNING: failed to restore connection between autodock_kryptonite_nbcr_net_13 and GetMainURLFromList_14 in network self.macroNetwork")
output_Ports_11 = self.macroNetwork.opNode
if GetMainURLFromList_14 is not None and output_Ports_11 is not None:
try:
self.macroNetwork.connectNodes(
GetMainURLFromList_14, output_Ports_11, "newurl", "new", blocking=True
, splitratio=[0.34850477186787743, 0.35637513198385085])
except:
print("WARNING: failed to restore connection between GetMainURLFromList_14 and output_Ports_11 in network self.macroNetwork")
if PrepareADVSInputs_12 is not None and autodock_kryptonite_nbcr_net_13 is not None:
try:
self.macroNetwork.connectNodes(
PrepareADVSInputs_12, autodock_kryptonite_nbcr_net_13, "filter_file", "filter_file", blocking=True
, splitratio=[0.33230642287344903, 0.65770700108889613])
except:
print("WARNING: failed to restore connection between PrepareADVSInputs_12 and autodock_kryptonite_nbcr_net_13 in network self.macroNetwork")
if PrepareADVSInputs_12 is not None and autodock_kryptonite_nbcr_net_13 is not None:
try:
self.macroNetwork.connectNodes(
PrepareADVSInputs_12, autodock_kryptonite_nbcr_net_13, "ligand_lib", "urllib", blocking=True
, splitratio=[0.50680104599665787, 0.51414170500293577])
except:
print("WARNING: failed to restore connection between PrepareADVSInputs_12 and autodock_kryptonite_nbcr_net_13 in network self.macroNetwork")
if PrepareADVSInputs_12 is not None and autodock_kryptonite_nbcr_net_13 is not None:
try:
self.macroNetwork.connectNodes(
PrepareADVSInputs_12, autodock_kryptonite_nbcr_net_13, "dpf_template_file", "dpf", blocking=True
, splitratio=[0.51615646597598808, 0.25661305528484007])
except:
print("WARNING: failed to restore connection between PrepareADVSInputs_12 and autodock_kryptonite_nbcr_net_13 in network self.macroNetwork")
if PrepareADVSInputs_12 is not None and autodock_kryptonite_nbcr_net_13 is not None:
try:
self.macroNetwork.connectNodes(
PrepareADVSInputs_12, autodock_kryptonite_nbcr_net_13, "autogrid_res_url", "u", blocking=True
, splitratio=[0.5760732944947704, 0.2032376887917188])
except:
print("WARNING: failed to restore connection between PrepareADVSInputs_12 and autodock_kryptonite_nbcr_net_13 in network self.macroNetwork")
if PrepareADVSInputs_12 is not None and autodock_kryptonite_nbcr_net_13 is not None:
try:
self.macroNetwork.connectNodes(
PrepareADVSInputs_12, autodock_kryptonite_nbcr_net_13, "autogrid_res_local", "utar", blocking=True
, splitratio=[0.52802808938949819, 0.66978534572736881])
except:
print("WARNING: failed to restore connection between PrepareADVSInputs_12 and autodock_kryptonite_nbcr_net_13 in network self.macroNetwork")
self.macroNetwork.runOnNewData.value = False
## modifying MacroInputNode dynamic ports
input_Ports_10 = self.macroNetwork.ipNode
input_Ports_10.outputPorts[1].configure(name='PrepareADVSInputs_ligands')
input_Ports_10.outputPorts[2].configure(name='PrepareADVSInputs_autogrid_results')
input_Ports_10.outputPorts[3].configure(name='PrepareADVSInputs_dpf_template_obj')
## modifying MacroOutputNode dynamic ports
output_Ports_11 = self.macroNetwork.opNode
output_Ports_11.inputPorts[1].configure(singleConnection='auto')
output_Ports_11.inputPorts[1].configure(name='GetMainURLFromList_newurl')
## configure MacroNode input ports
AutodockVS_9.inputPorts[0].configure(name='PrepareADVSInputs_ligands')
AutodockVS_9.inputPorts[0].configure(datatype='LigandDB')
AutodockVS_9.inputPorts[1].configure(name='PrepareADVSInputs_autogrid_results')
AutodockVS_9.inputPorts[1].configure(datatype='autogrid_results')
AutodockVS_9.inputPorts[2].configure(name='PrepareADVSInputs_dpf_template_obj')
AutodockVS_9.inputPorts[2].configure(datatype='dpf_template')
## configure MacroNode output ports
AutodockVS_9.outputPorts[0].configure(name='GetMainURLFromList_newurl')
AutodockVS_9.outputPorts[0].configure(datatype='string')
AutodockVS_9.shrink()
## reset modifications ##
AutodockVS_9.resetTags()
AutodockVS_9.buildOriginalList()
| 64.059748 | 852 | 0.676206 | 2,137 | 20,371 | 6.18905 | 0.13664 | 0.079389 | 0.096401 | 0.134205 | 0.688568 | 0.625132 | 0.596023 | 0.543021 | 0.492968 | 0.426357 | 0 | 0.047974 | 0.202886 | 20,371 | 317 | 853 | 64.26183 | 0.766535 | 0.059005 | 0 | 0.352459 | 1 | 0.004098 | 0.29044 | 0.06426 | 0 | 0 | 0 | 0.012618 | 0 | 1 | 0.012295 | false | 0.012295 | 0.057377 | 0 | 0.077869 | 0.090164 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
87375bd58b68763ac46aa57f63b861f0eab7f1f4 | 943 | py | Python | main/PublicEmotionDatasets/Adobe/process/train_glove.py | cvlab-stonybrook/Emotion-Prediction | fb45f943208467ef91d8e43874599263f669166d | [
"MIT"
] | 10 | 2019-12-19T21:17:46.000Z | 2022-02-22T15:47:29.000Z | main/PublicEmotionDatasets/Adobe/process/train_glove.py | cvlab-stonybrook/Emotion-Prediction | fb45f943208467ef91d8e43874599263f669166d | [
"MIT"
] | 2 | 2020-06-05T03:14:15.000Z | 2020-06-14T09:14:54.000Z | main/PublicEmotionDatasets/Adobe/process/train_glove.py | cvlab-stonybrook/Emotion-Prediction | fb45f943208467ef91d8e43874599263f669166d | [
"MIT"
] | 2 | 2020-01-08T14:49:46.000Z | 2021-06-06T03:36:04.000Z | """
Copyright (c) 2019 Yevheniia Soroka
Licensed under the MIT License
Author: Yevheniia Soroka
Email: ysoroka@cs.stonybrook.edu
Last modified: 18/12/2019
Usage:
Run this script to train GloVe model on Adobe tags.
"""
import os
import gluonnlp as nlp
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sb
from glove import Corpus, Glove
import glob
import pickle
from gensim.models import Word2Vec
from gensim.models import KeyedVectors
model_folder = "/nfs/bigfovea/add_disk0/eugenia/Emotion/wordembedding_models/"
#Creating a corpus object
corpus = Corpus()
#Training the corpus to generate the co occurence matrix which is used in GloVe
corpus.fit(lines, window=10)
# train the model
glove = Glove(no_components=5, learning_rate=0.05)
glove.fit(corpus.matrix, epochs=30, no_threads=4, verbose=True)
glove.add_dictionary(corpus.dictionary)
# save the model
glove.save(os.path.join(model_folder, 'glove_adobe.model')) | 25.486486 | 79 | 0.795334 | 148 | 943 | 5.006757 | 0.621622 | 0.040486 | 0.043185 | 0.059379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027845 | 0.124072 | 943 | 37 | 80 | 25.486486 | 0.869249 | 0.364793 | 0 | 0 | 0 | 0 | 0.132428 | 0.103565 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.588235 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
873d8b0d8fb5d84af7dbc0818d054644154458aa | 2,212 | py | Python | sdk/python/pulumi_azure_native/security/v20170801preview/_enums.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | 31 | 2020-09-21T09:41:01.000Z | 2021-02-26T13:21:59.000Z | sdk/python/pulumi_azure_native/security/v20170801preview/_enums.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | 231 | 2020-09-21T09:38:45.000Z | 2021-03-01T11:16:03.000Z | sdk/python/pulumi_azure_native/security/v20170801preview/_enums.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | 4 | 2020-09-29T14:14:59.000Z | 2021-02-10T20:38:16.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from enum import Enum
__all__ = [
'AlertNotifications',
'AlertsToAdmins',
'DataSource',
'ExportData',
'RecommendationConfigStatus',
'RecommendationType',
'SecuritySolutionStatus',
]
class AlertNotifications(str, Enum):
"""
Whether to send security alerts notifications to the security contact
"""
ON = "On"
OFF = "Off"
class AlertsToAdmins(str, Enum):
"""
Whether to send security alerts notifications to subscription admins
"""
ON = "On"
OFF = "Off"
class DataSource(str, Enum):
TWIN_DATA = "TwinData"
class ExportData(str, Enum):
RAW_EVENTS = "RawEvents"
class RecommendationConfigStatus(str, Enum):
"""
Recommendation status. The recommendation is not generated when the status is disabled
"""
DISABLED = "Disabled"
ENABLED = "Enabled"
class RecommendationType(str, Enum):
"""
The recommendation type.
"""
IO_T_ACR_AUTHENTICATION = "IoT_ACRAuthentication"
IO_T_AGENT_SENDS_UNUTILIZED_MESSAGES = "IoT_AgentSendsUnutilizedMessages"
IO_T_BASELINE = "IoT_Baseline"
IO_T_EDGE_HUB_MEM_OPTIMIZE = "IoT_EdgeHubMemOptimize"
IO_T_EDGE_LOGGING_OPTIONS = "IoT_EdgeLoggingOptions"
IO_T_INCONSISTENT_MODULE_SETTINGS = "IoT_InconsistentModuleSettings"
IO_T_INSTALL_AGENT = "IoT_InstallAgent"
IO_T_IP_FILTER_DENY_ALL = "IoT_IPFilter_DenyAll"
IO_T_IP_FILTER_PERMISSIVE_RULE = "IoT_IPFilter_PermissiveRule"
IO_T_OPEN_PORTS = "IoT_OpenPorts"
IO_T_PERMISSIVE_FIREWALL_POLICY = "IoT_PermissiveFirewallPolicy"
IO_T_PERMISSIVE_INPUT_FIREWALL_RULES = "IoT_PermissiveInputFirewallRules"
IO_T_PERMISSIVE_OUTPUT_FIREWALL_RULES = "IoT_PermissiveOutputFirewallRules"
IO_T_PRIVILEGED_DOCKER_OPTIONS = "IoT_PrivilegedDockerOptions"
IO_T_SHARED_CREDENTIALS = "IoT_SharedCredentials"
IO_T_VULNERABLE_TLS_CIPHER_SUITE = "IoT_VulnerableTLSCipherSuite"
class SecuritySolutionStatus(str, Enum):
"""
Security solution status
"""
ENABLED = "Enabled"
DISABLED = "Disabled"
| 28.358974 | 90 | 0.735986 | 242 | 2,212 | 6.359504 | 0.491736 | 0.031189 | 0.025341 | 0.020793 | 0.083171 | 0.063678 | 0.063678 | 0.063678 | 0.063678 | 0 | 0 | 0.000552 | 0.181284 | 2,212 | 77 | 91 | 28.727273 | 0.849255 | 0.198011 | 0 | 0.186047 | 1 | 0 | 0.329599 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023256 | 0 | 0.790698 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
875bf153c38837563607848c2a4373f619fc49b1 | 893 | py | Python | Programming I Python/Chapter 5/b project 5a/Eric Blanco Problem 13.py | eebr99/Python-Projects | 016f72b3f13793cb73c333c6eaab313eddfae9e7 | [
"MIT"
] | null | null | null | Programming I Python/Chapter 5/b project 5a/Eric Blanco Problem 13.py | eebr99/Python-Projects | 016f72b3f13793cb73c333c6eaab313eddfae9e7 | [
"MIT"
] | null | null | null | Programming I Python/Chapter 5/b project 5a/Eric Blanco Problem 13.py | eebr99/Python-Projects | 016f72b3f13793cb73c333c6eaab313eddfae9e7 | [
"MIT"
] | null | null | null | #Write a function named "falling_distance" that accepts an object's falling time
#(in seconds) as an argument. The function should return the distance, in meters
#, that the object has fallen during the time interval.Write a program that
#calls the function in a loop that passes the values 1 through 10 as arguments
#and displays the return value.
def main():
print("This program shows an object's fall distance (in meters) with each")
print('passing second from 1 to 10.')
print()
print('Time(s)\tDistance(m)')
print('--------------------')
for time in range (10 + 1):
distance = falling_distance(time)
print(time, '\t', format(distance, ',.1f'))
def falling_distance(time):
g = 9.8
distance = 0.5*g*time**2 #I believe the formula is incorrect, i think it
return distance #means (1/2)gt^2
main()
| 35.72 | 81 | 0.646137 | 134 | 893 | 4.283582 | 0.522388 | 0.078397 | 0.031359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026354 | 0.235162 | 893 | 24 | 82 | 37.208333 | 0.814056 | 0.449048 | 0 | 0 | 0 | 0 | 0.303688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0 | 0 | 0.214286 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 2 |
8767ef401078ac093bf46d8edd93e289989ab422 | 2,152 | py | Python | dash/migrations/0001_initial.py | mohammedaliyu136/degree_pln2 | 70ac9f8ab774197a49fedcee9951c4b373a59ffd | [
"MIT"
] | null | null | null | dash/migrations/0001_initial.py | mohammedaliyu136/degree_pln2 | 70ac9f8ab774197a49fedcee9951c4b373a59ffd | [
"MIT"
] | null | null | null | dash/migrations/0001_initial.py | mohammedaliyu136/degree_pln2 | 70ac9f8ab774197a49fedcee9951c4b373a59ffd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2018-08-03 08:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Education_and_Experience',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('organisation', models.CharField(max_length=200)),
('title', models.CharField(max_length=100)),
('summary', models.CharField(max_length=500)),
],
),
migrations.CreateModel(
name='Profile',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('firstname', models.CharField(max_length=100)),
('lastname', models.CharField(max_length=100)),
('image', models.ImageField(upload_to=b'pictures/', verbose_name=b'image')),
('title1', models.CharField(max_length=600)),
('phone', models.CharField(max_length=20)),
('email', models.EmailField(max_length=254)),
('address', models.CharField(max_length=150)),
('bio', models.TextField()),
('twitter_url', models.URLField()),
('facebook_url', models.URLField()),
('linkedin_url', models.URLField()),
('github_url', models.URLField()),
],
),
migrations.CreateModel(
name='Project',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200)),
('image', models.ImageField(upload_to=b'pictures/', verbose_name=b'image')),
('project_url', models.URLField(max_length=100)),
('github_url', models.URLField(max_length=500)),
],
),
]
| 39.851852 | 114 | 0.555762 | 208 | 2,152 | 5.567308 | 0.375 | 0.093264 | 0.139896 | 0.186529 | 0.46114 | 0.299655 | 0.299655 | 0.299655 | 0.299655 | 0.299655 | 0 | 0.03503 | 0.296933 | 2,152 | 53 | 115 | 40.603774 | 0.730337 | 0.031599 | 0 | 0.377778 | 1 | 0 | 0.108121 | 0.011533 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044444 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8772fcb6548267d8d0141e21abb8c45135824111 | 68 | py | Python | premailer/__init__.py | locationlabs/premailer | 85b0a65d1e30fa8b3c816a7d65e6efabe7d0a243 | [
"BSD-3-Clause"
] | null | null | null | premailer/__init__.py | locationlabs/premailer | 85b0a65d1e30fa8b3c816a7d65e6efabe7d0a243 | [
"BSD-3-Clause"
] | null | null | null | premailer/__init__.py | locationlabs/premailer | 85b0a65d1e30fa8b3c816a7d65e6efabe7d0a243 | [
"BSD-3-Clause"
] | 1 | 2021-09-08T09:52:55.000Z | 2021-09-08T09:52:55.000Z | __version__ = '1.12.1-LL'
__build__ = '' # set by the build server
| 22.666667 | 41 | 0.661765 | 11 | 68 | 3.363636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 0.191176 | 68 | 2 | 42 | 34 | 0.6 | 0.338235 | 0 | 0 | 0 | 0 | 0.209302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5e3e80878441d234675aaeb1a994f2e6b44649b7 | 278 | py | Python | asnets/experiments/actprop_2l_h_add_pe.py | xf1590281/ASNets | 5f4b29fb62a5e72004b813228442d06246c9ec33 | [
"MIT"
] | 21 | 2017-12-05T13:27:36.000Z | 2021-11-16T20:32:33.000Z | asnets/experiments/actprop_2l_h_add_pe.py | xf1590281/ASNets | 5f4b29fb62a5e72004b813228442d06246c9ec33 | [
"MIT"
] | 2 | 2018-07-16T12:15:46.000Z | 2020-10-31T00:02:49.000Z | asnets/experiments/actprop_2l_h_add_pe.py | xf1590281/ASNets | 5f4b29fb62a5e72004b813228442d06246c9ec33 | [
"MIT"
] | 7 | 2018-03-19T13:45:13.000Z | 2022-03-24T07:52:20.000Z | """A two-layer configuration for the action/proposition network w/ h-add
teacher & probabilistic evaluation (hence "_pe" at end of name)."""
# use defaults from actprop_2l
from .actprop_2l_h_add import * # noqa F401
# stochastic evaluation!
DET_EVAL = False
EVAL_ROUNDS = 30
| 27.8 | 72 | 0.758993 | 42 | 278 | 4.857143 | 0.833333 | 0.039216 | 0.127451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029787 | 0.154676 | 278 | 9 | 73 | 30.888889 | 0.838298 | 0.708633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
5e4091a3f85cb6be76f428d3575ec7a731ef06d0 | 599 | py | Python | tutorials/W3D1_RealNeurons/solutions/W3D1_Tutorial3_Solution_a0b79725.py | NinelK/course-content | 317b4cf153a89afbddbd194e7fbb15c91588b3c5 | [
"CC-BY-4.0"
] | 26 | 2020-07-01T20:38:44.000Z | 2021-06-20T06:37:27.000Z | tutorials/W3D1_RealNeurons/solutions/W3D1_Tutorial3_Solution_a0b79725.py | Andy-Dufrein/course-content | 977f4ddaaa4f33746672930ae01d5ea592dbbba0 | [
"CC-BY-4.0"
] | 3 | 2020-06-23T03:46:36.000Z | 2020-07-07T05:26:01.000Z | tutorials/W3D1_RealNeurons/solutions/W3D1_Tutorial3_Solution_a0b79725.py | Andy-Dufrein/course-content | 977f4ddaaa4f33746672930ae01d5ea592dbbba0 | [
"CC-BY-4.0"
] | 16 | 2020-07-06T06:48:02.000Z | 2021-07-30T08:18:52.000Z |
"""
Discussion:
Because we have a facilitatory synapses, as the input rate increases synaptic
resources released per spike also increase. Therefore, we expect that the synaptic
conductance will increase with input rate. However, total synaptic resources are
finite. And they recover in a finite time. Therefore, at high frequency inputs
synaptic resources are rapidly deleted at a higher rate than their recovery, so
after first few spikes, only a small number of synaptic resources are left. This
results in decrease in the steady-state synaptic conductance at high frequency inputs.
"""; | 49.916667 | 87 | 0.799666 | 89 | 599 | 5.382022 | 0.662921 | 0.141962 | 0.125261 | 0.087683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165275 | 599 | 12 | 88 | 49.916667 | 0.958 | 0.981636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5e424c562fb15f5458ab49e2921617b64a604404 | 804 | py | Python | nlpaug/model/audio/normalization.py | techthiyanes/nlpaug | bb2fc63349bf949f6f6047ff447a0efb16983c0a | [
"MIT"
] | 3,121 | 2019-04-21T07:02:47.000Z | 2022-03-31T22:17:36.000Z | nlpaug/model/audio/normalization.py | techthiyanes/nlpaug | bb2fc63349bf949f6f6047ff447a0efb16983c0a | [
"MIT"
] | 186 | 2019-05-31T18:18:13.000Z | 2022-03-28T10:11:05.000Z | nlpaug/model/audio/normalization.py | techthiyanes/nlpaug | bb2fc63349bf949f6f6047ff447a0efb16983c0a | [
"MIT"
] | 371 | 2019-03-17T17:59:56.000Z | 2022-03-31T01:45:15.000Z | import numpy as np
from nlpaug.model.audio import Audio
class Normalization(Audio):
def manipulate(self, data, method, start_pos, end_pos):
aug_data = data.copy()
if method == 'minmax':
new_data = self._min_max(aug_data[start_pos:end_pos])
elif method == 'max':
new_data = self._max(aug_data[start_pos:end_pos])
elif method == 'standard':
new_data = self._standard(aug_data[start_pos:end_pos])
aug_data[start_pos:end_pos] = new_data
return aug_data
def get_support_methods(self):
return ['minmax', 'max', 'standard']
def _standard(self, data):
return (data - np.mean(data)) / np.std(data)
def _max(self, data):
return data / np.amax(np.abs(data))
def _min_max(self, data):
lower = np.amin(np.abs(data))
return (data - lower) / (np.amax(np.abs(data)) - lower)
| 25.125 | 57 | 0.696517 | 129 | 804 | 4.108527 | 0.286822 | 0.079245 | 0.103774 | 0.132075 | 0.375472 | 0.24717 | 0.128302 | 0.128302 | 0.128302 | 0 | 0 | 0 | 0.156716 | 804 | 31 | 58 | 25.935484 | 0.781711 | 0 | 0 | 0 | 0 | 0 | 0.042289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.090909 | 0.136364 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
5e4eb52ef7b6c379dfa8984ef60db75a5c9a0675 | 305 | py | Python | test/test_torch.py | li012589/tf_gpu_manager | ed42d74f40cdc4b2463f3b7535cfe0f43bea85ae | [
"MIT"
] | 1 | 2021-07-15T03:13:10.000Z | 2021-07-15T03:13:10.000Z | test/test_torch.py | li012589/tf_gpu_manager | ed42d74f40cdc4b2463f3b7535cfe0f43bea85ae | [
"MIT"
] | null | null | null | test/test_torch.py | li012589/tf_gpu_manager | ed42d74f40cdc4b2463f3b7535cfe0f43bea85ae | [
"MIT"
] | null | null | null | import os
import sys
sys.path.append(os.getcwd())
import torch
from manager_torch import torchGPUmanager
def test_tf_auto_choice():
t = torchGPUmanager()
with t.choice():
x = torch.Tensor(8, 42)
x = x.cuda()
print(x)
if __name__ == "__main__":
test_tf_auto_choice() | 17.941176 | 41 | 0.655738 | 43 | 305 | 4.302326 | 0.604651 | 0.064865 | 0.108108 | 0.172973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012766 | 0.229508 | 305 | 17 | 42 | 17.941176 | 0.774468 | 0 | 0 | 0 | 0 | 0 | 0.026144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
5e628844bf5aecb08d12d6a5e607b840f94ea6a1 | 694 | py | Python | derbot/names/signals.py | bdunnette/derbot | c860c3e95ee830a5b9202d8343ab64ece2e995e5 | [
"MIT"
] | null | null | null | derbot/names/signals.py | bdunnette/derbot | c860c3e95ee830a5b9202d8343ab64ece2e995e5 | [
"MIT"
] | 2 | 2022-02-08T00:29:20.000Z | 2022-02-08T14:01:07.000Z | derbot/names/signals.py | bdunnette/derbot | c860c3e95ee830a5b9202d8343ab64ece2e995e5 | [
"MIT"
] | null | null | null | from django.db.models.signals import pre_save
from django.dispatch import receiver
import random
import fractions
import humanize
# from derbot.names.tasks import generate_number
from derbot.names.models import DerbyName
@receiver(pre_save, sender=DerbyName)
def generate_number(sender, instance, **kwargs):
if instance.cleared and not instance.number:
jersey_number = str(random.uniform(1, 9999))[
random.randint(0, 3) : random.randint(5, 7)
].strip(".")
to_humanize = bool(random.getrandbits(1))
if to_humanize == True:
jersey_number = humanize.fractional(jersey_number).replace("/", "⁄")
instance.number = jersey_number
| 33.047619 | 80 | 0.708934 | 88 | 694 | 5.488636 | 0.511364 | 0.099379 | 0.062112 | 0.10766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017699 | 0.185879 | 694 | 20 | 81 | 34.7 | 0.835398 | 0.066282 | 0 | 0 | 1 | 0 | 0.004644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
5e6d782f97c85edb12dff2726544e15db5a78e2a | 2,136 | py | Python | src/types/program.py | embiem/chia-blockchain | 301801993ca3d4cc5bf71952af29effae507b2ea | [
"Apache-2.0"
] | 2 | 2019-12-06T01:03:24.000Z | 2020-09-27T00:46:20.000Z | src/types/program.py | yllierop/chia-blockchain | 301801993ca3d4cc5bf71952af29effae507b2ea | [
"Apache-2.0"
] | null | null | null | src/types/program.py | yllierop/chia-blockchain | 301801993ca3d4cc5bf71952af29effae507b2ea | [
"Apache-2.0"
] | null | null | null | import io
from typing import Any, List, Set
from src.types.sized_bytes import bytes32
from src.util.clvm import run_program, sexp_from_stream, sexp_to_stream
from clvm import SExp
from src.util.hash import std_hash
from clvm_tools.curry import curry
class Program(SExp): # type: ignore # noqa
"""
A thin wrapper around s-expression data intended to be invoked with "eval".
"""
def __init__(self, v):
if isinstance(v, SExp):
v = v.v
super(Program, self).__init__(v)
@classmethod
def parse(cls, f):
return sexp_from_stream(f, cls.to)
def stream(self, f):
sexp_to_stream(self, f)
@classmethod
def from_bytes(cls, blob: bytes) -> Any:
f = io.BytesIO(blob)
return cls.parse(f) # type: ignore # noqa
def __bytes__(self) -> bytes:
f = io.BytesIO()
self.stream(f) # type: ignore # noqa
return f.getvalue()
def __str__(self) -> str:
return bytes(self).hex()
def _tree_hash(self, precalculated: Set[bytes32]) -> bytes32:
"""
Hash values in `precalculated` are presumed to have been hashed already.
"""
if self.listp():
left = self.to(self.first())._tree_hash(precalculated)
right = self.to(self.rest())._tree_hash(precalculated)
s = b"\2" + left + right
else:
atom = self.as_atom()
if atom in precalculated:
return bytes32(atom)
s = b"\1" + atom
return bytes32(std_hash(s))
def get_tree_hash(self, *args: List[bytes32]) -> bytes32:
"""
Any values in `args` that appear in the tree
are presumed to have been hashed already.
"""
return self._tree_hash(set(args))
def run(self, args) -> "Program":
prog_args = Program.to(args)
cost, r = run_program(self, prog_args)
return Program.to(r)
def curry(self, *args) -> "Program":
cost, r = curry(self, list(args))
return Program.to(r)
def __deepcopy__(self, memo):
return type(self).from_bytes(bytes(self))
| 28.48 | 80 | 0.595974 | 286 | 2,136 | 4.27972 | 0.304196 | 0.03268 | 0.034314 | 0.02451 | 0.093137 | 0.093137 | 0.055556 | 0 | 0 | 0 | 0 | 0.010547 | 0.289794 | 2,136 | 74 | 81 | 28.864865 | 0.796309 | 0.137172 | 0 | 0.081633 | 0 | 0 | 0.010181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22449 | false | 0 | 0.142857 | 0.061224 | 0.591837 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5e7a6b6af87cb5adada613cffcf3ff5831de98c2 | 108 | py | Python | array.py | nkukadiya89/learn-python | d0a8c438dd77b8feeb1e0126ec379873ef4b2978 | [
"MIT"
] | 1 | 2021-06-16T16:42:41.000Z | 2021-06-16T16:42:41.000Z | array.py | nkukadiya89/learn-python | d0a8c438dd77b8feeb1e0126ec379873ef4b2978 | [
"MIT"
] | null | null | null | array.py | nkukadiya89/learn-python | d0a8c438dd77b8feeb1e0126ec379873ef4b2978 | [
"MIT"
] | null | null | null | #Array In Python
from array import array
numbers = array("i",[1,2,3])
numbers[0] = 0
print(list(numbers))
| 13.5 | 28 | 0.685185 | 19 | 108 | 3.894737 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054348 | 0.148148 | 108 | 7 | 29 | 15.428571 | 0.75 | 0.138889 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5e919f500bdb61fdacf742cd30485e1fec67466a | 2,439 | py | Python | src/python/grpcio/grpc/experimental/aio/__init__.py | nondejus/grpc | e5e8d7dc70f97b1e52612facb3f57990b2240005 | [
"Apache-2.0"
] | 3 | 2020-10-12T15:47:01.000Z | 2022-01-14T19:51:26.000Z | src/python/grpcio/grpc/experimental/aio/__init__.py | nondejus/grpc | e5e8d7dc70f97b1e52612facb3f57990b2240005 | [
"Apache-2.0"
] | 11 | 2021-04-08T22:10:50.000Z | 2022-03-12T00:52:35.000Z | src/python/grpcio/grpc/experimental/aio/__init__.py | nondejus/grpc | e5e8d7dc70f97b1e52612facb3f57990b2240005 | [
"Apache-2.0"
] | 2 | 2019-11-13T05:27:48.000Z | 2020-01-21T06:35:19.000Z | # Copyright 2019 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""gRPC's Asynchronous Python API."""
import abc
import types
import six
import grpc
from grpc._cython import cygrpc
from grpc._cython.cygrpc import init_grpc_aio
from ._server import server
from ._channel import Channel
from ._channel import UnaryUnaryMultiCallable
def insecure_channel(target, options=None, compression=None):
"""Creates an insecure asynchronous Channel to a server.
Args:
target: The server address
options: An optional list of key-value pairs (channel args
in gRPC Core runtime) to configure the channel.
compression: An optional value indicating the compression method to be
used over the lifetime of the channel. This is an EXPERIMENTAL option.
Returns:
A Channel.
"""
from grpc.experimental.aio import _channel # pylint: disable=cyclic-import
return _channel.Channel(target, ()
if options is None else options, None, compression)
class _AioRpcError:
"""Private implementation of AioRpcError"""
class AioRpcError:
"""An RpcError to be used by the asynchronous API.
Parent classes: (cygrpc._AioRpcError, RpcError)
"""
# Dynamically registered as subclass of _AioRpcError and RpcError, because the former one is
# only available after the cython code has been compiled.
_class_built = _AioRpcError
def __new__(cls, *args, **kwargs):
if cls._class_built is _AioRpcError:
cls._class_built = types.new_class(
"AioRpcError", (cygrpc._AioRpcError, grpc.RpcError))
cls._class_built.__doc__ = cls.__doc__
return cls._class_built(*args, **kwargs)
################################### __all__ #################################
__all__ = (
'init_grpc_aio',
'Channel',
'UnaryUnaryMultiCallable',
'insecure_channel',
'AioRpcError',
)
| 31.269231 | 96 | 0.693727 | 305 | 2,439 | 5.383607 | 0.44918 | 0.036541 | 0.031669 | 0.019488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004147 | 0.209102 | 2,439 | 77 | 97 | 31.675325 | 0.847071 | 0.523985 | 0 | 0 | 0 | 0 | 0.080278 | 0.022795 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.344828 | 0 | 0.586207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
5e9585f59d070272ad95cdcbd7dd8d78e2818f13 | 765 | py | Python | saph/users/views/auth.py | smallproblem/saph | eec9755ad26d5515f70604ebaa708583185649bb | [
"MIT"
] | null | null | null | saph/users/views/auth.py | smallproblem/saph | eec9755ad26d5515f70604ebaa708583185649bb | [
"MIT"
] | 2 | 2020-09-28T03:09:06.000Z | 2020-10-02T08:55:34.000Z | saph/users/views/auth.py | smallproblem/saph | eec9755ad26d5515f70604ebaa708583185649bb | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.contrib.auth.views import LoginView
from django.contrib.auth.forms import AuthenticationForm
from django.views.generic import CreateView
from django.shortcuts import reverse, redirect
from users.forms import JoinusForm
class LoginView(LoginView):
template_name = 'users/login.html'
authentication_form = AuthenticationForm
class SignupView(CreateView):
form_class = JoinusForm
template_name = 'users/joinus.html'
def form_valid(self, form):
username = form.cleaned_data['username']
password = form.cleaned_data['password']
User.objects.create_user(
username=username,
password=password
).save()
return redirect('login') | 29.423077 | 56 | 0.729412 | 87 | 765 | 6.321839 | 0.436782 | 0.090909 | 0.092727 | 0.114545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189542 | 765 | 26 | 57 | 29.423077 | 0.887097 | 0 | 0 | 0 | 0 | 0 | 0.070496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.1 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
5e9b711115f13a486c2ea830660e274a63129004 | 478 | py | Python | src/bpmn_python/graph/classes/events/intermediate_catch_event_type.py | ToJestKrzysio/ProcessVisualization | 9a359a31816bf1be65e3684a571509e3a2c2c0ac | [
"MIT"
] | null | null | null | src/bpmn_python/graph/classes/events/intermediate_catch_event_type.py | ToJestKrzysio/ProcessVisualization | 9a359a31816bf1be65e3684a571509e3a2c2c0ac | [
"MIT"
] | null | null | null | src/bpmn_python/graph/classes/events/intermediate_catch_event_type.py | ToJestKrzysio/ProcessVisualization | 9a359a31816bf1be65e3684a571509e3a2c2c0ac | [
"MIT"
] | null | null | null | # coding=utf-8
"""
Class used for representing tIntermediateCatchEvent of BPMN 2.0 graph
"""
import graph.classes.events.catch_event_type as catch_event
class IntermediateCatchEvent(catch_event.CatchEvent):
"""
Class used for representing tIntermediateCatchEvent of BPMN 2.0 graph
"""
def __init__(self):
"""
Default constructor, initializes object fields with new instances.
"""
super(IntermediateCatchEvent, self).__init__()
| 26.555556 | 74 | 0.715481 | 53 | 478 | 6.226415 | 0.641509 | 0.090909 | 0.072727 | 0.145455 | 0.363636 | 0.363636 | 0.363636 | 0.363636 | 0.363636 | 0.363636 | 0 | 0.013055 | 0.198745 | 478 | 17 | 75 | 28.117647 | 0.848564 | 0.460251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5ea0d191ed54273a061ed7e8a50245385460de2f | 224 | py | Python | World_1/002Usingformat.py | wesleyendliche/Python_exercises | 44cdcb921201eb0b11ff1ac4b01b4a86859c2ffe | [
"MIT"
] | null | null | null | World_1/002Usingformat.py | wesleyendliche/Python_exercises | 44cdcb921201eb0b11ff1ac4b01b4a86859c2ffe | [
"MIT"
] | null | null | null | World_1/002Usingformat.py | wesleyendliche/Python_exercises | 44cdcb921201eb0b11ff1ac4b01b4a86859c2ffe | [
"MIT"
] | null | null | null | nome = input('Digite seu nome: ')
name = input('Type your name: ')
print('É um prazer te conhecer, {}{}{}!'.format('\033[1;36m', nome, '\033[m'))
print('It is nice to meet you, {}{}{}!'.format('\033[4;30m', name, '\033[m'))
| 44.8 | 78 | 0.584821 | 37 | 224 | 3.540541 | 0.702703 | 0.137405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092308 | 0.129464 | 224 | 4 | 79 | 56 | 0.579487 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
5ead65667024bc75288d96cebf09e19da2212ee1 | 325 | py | Python | pyatmos/class_atmos.py | lcx366/ATMOS | e079601ea4704d26defd7447ceed0b8be1f89e2f | [
"MIT"
] | 11 | 2019-12-12T01:15:22.000Z | 2022-03-11T02:38:10.000Z | pyatmos/class_atmos.py | lcx366/ATMOS | e079601ea4704d26defd7447ceed0b8be1f89e2f | [
"MIT"
] | 2 | 2021-06-19T23:41:18.000Z | 2022-03-24T22:59:11.000Z | pyatmos/class_atmos.py | lcx366/ATMOS | e079601ea4704d26defd7447ceed0b8be1f89e2f | [
"MIT"
] | null | null | null | class ATMOS(object):
'''
class ATMOS
- attributes:
- self defined
- methods:
- None
'''
def __init__(self,info):
self.info = info
for key in info.keys():
setattr(self, key, info[key])
def __repr__(self):
return 'Instance of class ATMOS' | 19.117647 | 43 | 0.513846 | 35 | 325 | 4.542857 | 0.571429 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.375385 | 325 | 17 | 44 | 19.117647 | 0.783251 | 0.206154 | 0 | 0 | 0 | 0 | 0.101322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
5ec20deb24c94cf9ee316404a6b77dc4dd8b8ff6 | 842 | py | Python | students/K33401/laboratory_works/Egorov_Michil/laboratory_work_2/room/models.py | EgorovM/ITMO_ICT_WebDevelopment_2021-2022 | 35c41ba024d7a3cd89654bd4db23f7d447e0f0a2 | [
"MIT"
] | null | null | null | students/K33401/laboratory_works/Egorov_Michil/laboratory_work_2/room/models.py | EgorovM/ITMO_ICT_WebDevelopment_2021-2022 | 35c41ba024d7a3cd89654bd4db23f7d447e0f0a2 | [
"MIT"
] | null | null | null | students/K33401/laboratory_works/Egorov_Michil/laboratory_work_2/room/models.py | EgorovM/ITMO_ICT_WebDevelopment_2021-2022 | 35c41ba024d7a3cd89654bd4db23f7d447e0f0a2 | [
"MIT"
] | null | null | null | from django.db import models
class Room(models.Model):
SUBJECTS = (
('math', 'Математика'),
('inf', 'Информатика'),
('othr', 'Другое')
)
SUBJECTS_COLOR = (
('math', '#28a745'),
('inf', '#007bff'),
('othr', '#6c757d')
)
name = models.CharField(max_length=32)
subject = models.CharField(max_length=4, choices=SUBJECTS)
description = models.TextField()
creator = models.CharField(max_length=162)
max_people = models.IntegerField(default=5)
audio_works = models.BooleanField(default=False)
pub_date = models.DateTimeField(auto_now=True)
def __str__(self):
return self.name
def subject_name(self):
return dict(self.SUBJECTS)[self.subject]
def subject_color(self):
return dict(self.SUBJECTS_COLOR)[self.subject]
| 24.764706 | 62 | 0.627078 | 93 | 842 | 5.516129 | 0.537634 | 0.087719 | 0.105263 | 0.140351 | 0.101365 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.232779 | 842 | 33 | 63 | 25.515152 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.083135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.04 | 0.12 | 0.68 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
5ed383700e85d30633a0a565fb47e10ed17d6cee | 975 | py | Python | utils/keychain.py | remcoroyen/ShallotNetwork | d8f36533d613839f70b8eab30112d85229764af2 | [
"MIT"
] | null | null | null | utils/keychain.py | remcoroyen/ShallotNetwork | d8f36533d613839f70b8eab30112d85229764af2 | [
"MIT"
] | null | null | null | utils/keychain.py | remcoroyen/ShallotNetwork | d8f36533d613839f70b8eab30112d85229764af2 | [
"MIT"
] | null | null | null | from Crypto.Util import number
def random_prime(bit_size):
return number.getPrime(bit_size)
def random_int(bit_size):
return number.getRandomInteger(bit_size)
class KeyChain:
def __init__(self):
self.keys = []
self.keyids = []
def new_key(self, key, key_id):
self.keys.append(key)
self.keyids.append(key_id)
def has_key(self, key_id):
return key_id in self.keyids
def get_key(self, key_id):
if self.has_key(key_id):
return self.keys[self.keyids.index(key_id)]
else:
return None
def destroy_key(self, key_id):
if self.has_key(key_id):
index = self.keyids.index(key_id)
self.keyids.pop(index)
self.keys.pop(index)
else:
print('Key not found, none removed')
def clear(self):
for key_id in self.keyids:
self.destroy_key(key_id)
| 23.780488 | 55 | 0.57641 | 132 | 975 | 4.037879 | 0.295455 | 0.11257 | 0.075047 | 0.067542 | 0.247655 | 0.108818 | 0.108818 | 0.108818 | 0.108818 | 0.108818 | 0 | 0 | 0.327179 | 975 | 40 | 56 | 24.375 | 0.8125 | 0 | 0 | 0.137931 | 0 | 0 | 0.027692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0.034483 | 0.103448 | 0.517241 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
0d6071d50184dd01af4d40afcaa5d56fe50daa79 | 430 | py | Python | scripts/A-A/ctsslmate.py | warsocket/recon | 4e26086b2c0338db980a0a3e736c499acf51ef15 | [
"Apache-2.0"
] | null | null | null | scripts/A-A/ctsslmate.py | warsocket/recon | 4e26086b2c0338db980a0a3e736c499acf51ef15 | [
"Apache-2.0"
] | null | null | null | scripts/A-A/ctsslmate.py | warsocket/recon | 4e26086b2c0338db980a0a3e736c499acf51ef15 | [
"Apache-2.0"
] | 1 | 2018-02-23T13:37:59.000Z | 2018-02-23T13:37:59.000Z | #!/usr/bin/env python
import requests
import sys
domains = set()
for line in sys.stdin:
domain = line.strip()
certs = requests.get("https://certspotter.com/api/v0/certs?domain=%s" % domain).json()
try:
for cert in certs:
for domain in cert["dns_names"]:
domain = domain.replace("*.", "")
domains.add(domain)
except:
pass
for d in domains:
print d
| 21.5 | 90 | 0.574419 | 56 | 430 | 4.392857 | 0.607143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003289 | 0.293023 | 430 | 19 | 91 | 22.631579 | 0.805921 | 0.046512 | 0 | 0 | 0 | 0 | 0.139364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.066667 | 0.133333 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0d6bbc4a1deb02ea0fe6dd3bf20550182a612637 | 71,145 | py | Python | third_party/ray/core/generated/common_pb2.py | HuantWang/SUPERSONIC | bea7090e8bc4a54ed52495dd910ef946c88bec67 | [
"CC-BY-4.0"
] | 78 | 2022-02-02T00:23:02.000Z | 2022-03-15T11:44:02.000Z | third_party/ray/core/generated/common_pb2.py | HuantWang/SUPERSONIC | bea7090e8bc4a54ed52495dd910ef946c88bec67 | [
"CC-BY-4.0"
] | null | null | null | third_party/ray/core/generated/common_pb2.py | HuantWang/SUPERSONIC | bea7090e8bc4a54ed52495dd910ef946c88bec67 | [
"CC-BY-4.0"
] | 3 | 2022-01-30T05:10:14.000Z | 2022-03-04T21:18:44.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: src/ray/protobuf/common.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='src/ray/protobuf/common.proto',
package='ray.rpc',
syntax='proto3',
serialized_options=_b('\n\030io.ray.runtime.generated'),
serialized_pb=_b('\n\x1dsrc/ray/protobuf/common.proto\x12\x07ray.rpc\"v\n\x07\x41\x64\x64ress\x12\x1b\n\traylet_id\x18\x01 \x01(\x0cR\x08rayletId\x12\x1d\n\nip_address\x18\x02 \x01(\tR\tipAddress\x12\x12\n\x04port\x18\x03 \x01(\x05R\x04port\x12\x1b\n\tworker_id\x18\x04 \x01(\x0cR\x08workerId\"z\n\x16JavaFunctionDescriptor\x12\x1d\n\nclass_name\x18\x01 \x01(\tR\tclassName\x12#\n\rfunction_name\x18\x02 \x01(\tR\x0c\x66unctionName\x12\x1c\n\tsignature\x18\x03 \x01(\tR\tsignature\"\xa4\x01\n\x18PythonFunctionDescriptor\x12\x1f\n\x0bmodule_name\x18\x01 \x01(\tR\nmoduleName\x12\x1d\n\nclass_name\x18\x02 \x01(\tR\tclassName\x12#\n\rfunction_name\x18\x03 \x01(\tR\x0c\x66unctionName\x12#\n\rfunction_hash\x18\x04 \x01(\tR\x0c\x66unctionHash\"\x8d\x01\n\x15\x43ppFunctionDescriptor\x12\x19\n\x08lib_name\x18\x01 \x01(\tR\x07libName\x12\'\n\x0f\x66unction_offset\x18\x02 \x01(\tR\x0e\x66unctionOffset\x12\x30\n\x14\x65xec_function_offset\x18\x03 \x01(\tR\x12\x65xecFunctionOffset\"\xc5\x02\n\x12\x46unctionDescriptor\x12[\n\x18java_function_descriptor\x18\x01 \x01(\x0b\x32\x1f.ray.rpc.JavaFunctionDescriptorH\x00R\x16javaFunctionDescriptor\x12\x61\n\x1apython_function_descriptor\x18\x02 \x01(\x0b\x32!.ray.rpc.PythonFunctionDescriptorH\x00R\x18pythonFunctionDescriptor\x12X\n\x17\x63pp_function_descriptor\x18\x03 \x01(\x0b\x32\x1e.ray.rpc.CppFunctionDescriptorH\x00R\x15\x63ppFunctionDescriptorB\x15\n\x13\x66unction_descriptor\"\xe5\x07\n\x08TaskSpec\x12%\n\x04type\x18\x01 \x01(\x0e\x32\x11.ray.rpc.TaskTypeR\x04type\x12-\n\x08language\x18\x02 \x01(\x0e\x32\x11.ray.rpc.LanguageR\x08language\x12L\n\x13\x66unction_descriptor\x18\x03 \x01(\x0b\x32\x1b.ray.rpc.FunctionDescriptorR\x12\x66unctionDescriptor\x12\x15\n\x06job_id\x18\x04 \x01(\x0cR\x05jobId\x12\x17\n\x07task_id\x18\x05 \x01(\x0cR\x06taskId\x12$\n\x0eparent_task_id\x18\x06 \x01(\x0cR\x0cparentTaskId\x12%\n\x0eparent_counter\x18\x07 \x01(\x04R\rparentCounter\x12\x1b\n\tcaller_id\x18\x08 \x01(\x0cR\x08\x63\x61llerId\x12\x37\n\x0e\x63\x61ller_address\x18\t \x01(\x0b\x32\x10.ray.rpc.AddressR\rcallerAddress\x12$\n\x04\x61rgs\x18\n \x03(\x0b\x32\x10.ray.rpc.TaskArgR\x04\x61rgs\x12\x1f\n\x0bnum_returns\x18\x0b \x01(\x04R\nnumReturns\x12W\n\x12required_resources\x18\x0c \x03(\x0b\x32(.ray.rpc.TaskSpec.RequiredResourcesEntryR\x11requiredResources\x12s\n\x1crequired_placement_resources\x18\r \x03(\x0b\x32\x31.ray.rpc.TaskSpec.RequiredPlacementResourcesEntryR\x1arequiredPlacementResources\x12W\n\x18\x61\x63tor_creation_task_spec\x18\x0e \x01(\x0b\x32\x1e.ray.rpc.ActorCreationTaskSpecR\x15\x61\x63torCreationTaskSpec\x12>\n\x0f\x61\x63tor_task_spec\x18\x0f \x01(\x0b\x32\x16.ray.rpc.ActorTaskSpecR\ractorTaskSpec\x12\x1f\n\x0bmax_retries\x18\x10 \x01(\x05R\nmaxRetries\x1a\x44\n\x16RequiredResourcesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x01R\x05value:\x02\x38\x01\x1aM\n\x1fRequiredPlacementResourcesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x01R\x05value:\x02\x38\x01\"\x86\x01\n\x07TaskArg\x12\x1d\n\nobject_ids\x18\x01 \x03(\x0cR\tobjectIds\x12\x12\n\x04\x64\x61ta\x18\x02 \x01(\x0cR\x04\x64\x61ta\x12\x1a\n\x08metadata\x18\x03 \x01(\x0cR\x08metadata\x12,\n\x12nested_inlined_ids\x18\x04 \x03(\x0cR\x10nestedInlinedIds\"\xba\x02\n\x15\x41\x63torCreationTaskSpec\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\x0cR\x07\x61\x63torId\x12,\n\x12max_actor_restarts\x18\x03 \x01(\x03R\x10maxActorRestarts\x12\x34\n\x16\x64ynamic_worker_options\x18\x04 \x03(\tR\x14\x64ynamicWorkerOptions\x12\'\n\x0fmax_concurrency\x18\x05 \x01(\x05R\x0emaxConcurrency\x12\x1f\n\x0bis_detached\x18\x06 \x01(\x08R\nisDetached\x12\x12\n\x04name\x18\x07 \x01(\tR\x04name\x12\x1d\n\nis_asyncio\x18\x08 \x01(\x08R\tisAsyncio\x12%\n\x0e\x65xtension_data\x18\t \x01(\tR\rextensionData\"\xe0\x01\n\rActorTaskSpec\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\x0cR\x07\x61\x63torId\x12\x42\n\x1e\x61\x63tor_creation_dummy_object_id\x18\x04 \x01(\x0cR\x1a\x61\x63torCreationDummyObjectId\x12#\n\ractor_counter\x18\x05 \x01(\x04R\x0c\x61\x63torCounter\x12K\n#previous_actor_task_dummy_object_id\x18\x07 \x01(\x0cR\x1epreviousActorTaskDummyObjectId\"]\n\x11TaskExecutionSpec\x12%\n\x0elast_timestamp\x18\x02 \x01(\x01R\rlastTimestamp\x12!\n\x0cnum_forwards\x18\x03 \x01(\x04R\x0bnumForwards\"\x82\x01\n\x04Task\x12.\n\ttask_spec\x18\x01 \x01(\x0b\x32\x11.ray.rpc.TaskSpecR\x08taskSpec\x12J\n\x13task_execution_spec\x18\x02 \x01(\x0b\x32\x1a.ray.rpc.TaskExecutionSpecR\x11taskExecutionSpec\">\n\nResourceId\x12\x14\n\x05index\x18\x01 \x01(\x03R\x05index\x12\x1a\n\x08quantity\x18\x02 \x01(\x01R\x08quantity\"^\n\x10ResourceMapEntry\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x36\n\x0cresource_ids\x18\x02 \x03(\x0b\x32\x13.ray.rpc.ResourceIdR\x0bresourceIds\"\xf4\x03\n\x08ViewData\x12\x1b\n\tview_name\x18\x01 \x01(\tR\x08viewName\x12\x35\n\x08measures\x18\x02 \x03(\x0b\x32\x19.ray.rpc.ViewData.MeasureR\x08measures\x1a\x93\x03\n\x07Measure\x12\x12\n\x04tags\x18\x01 \x01(\tR\x04tags\x12\x1b\n\tint_value\x18\x02 \x01(\x03R\x08intValue\x12!\n\x0c\x64ouble_value\x18\x03 \x01(\x01R\x0b\x64oubleValue\x12)\n\x10\x64istribution_min\x18\x04 \x01(\x01R\x0f\x64istributionMin\x12+\n\x11\x64istribution_mean\x18\x05 \x01(\x01R\x10\x64istributionMean\x12)\n\x10\x64istribution_max\x18\x06 \x01(\x01R\x0f\x64istributionMax\x12-\n\x12\x64istribution_count\x18\x07 \x01(\x01R\x11\x64istributionCount\x12\x44\n\x1e\x64istribution_bucket_boundaries\x18\x08 \x03(\x01R\x1c\x64istributionBucketBoundaries\x12<\n\x1a\x64istribution_bucket_counts\x18\t \x03(\x01R\x18\x64istributionBucketCounts\"\xa3\x02\n\rObjectRefInfo\x12\x1b\n\tobject_id\x18\x01 \x01(\x0cR\x08objectId\x12\x1b\n\tcall_site\x18\x02 \x01(\tR\x08\x63\x61llSite\x12\x1f\n\x0bobject_size\x18\x03 \x01(\x03R\nobjectSize\x12&\n\x0flocal_ref_count\x18\x04 \x01(\x03R\rlocalRefCount\x12\x37\n\x18submitted_task_ref_count\x18\x05 \x01(\x03R\x15submittedTaskRefCount\x12,\n\x12\x63ontained_in_owned\x18\x06 \x03(\x0cR\x10\x63ontainedInOwned\x12(\n\x10pinned_in_memory\x18\x07 \x01(\x08R\x0epinnedInMemory\"\x87\x07\n\x0f\x43oreWorkerStats\x12*\n\x11\x63urrent_task_desc\x18\x01 \x01(\tR\x0f\x63urrentTaskDesc\x12*\n\x11num_pending_tasks\x18\x02 \x01(\x05R\x0fnumPendingTasks\x12\x34\n\x17num_object_ids_in_scope\x18\x03 \x01(\x05R\x13numObjectIdsInScope\x12\x33\n\x16\x63urrent_task_func_desc\x18\x04 \x01(\tR\x13\x63urrentTaskFuncDesc\x12\x1d\n\nip_address\x18\x06 \x01(\tR\tipAddress\x12\x12\n\x04port\x18\x07 \x01(\x03R\x04port\x12\x19\n\x08\x61\x63tor_id\x18\x08 \x01(\x0cR\x07\x61\x63torId\x12R\n\x0eused_resources\x18\t \x03(\x0b\x32+.ray.rpc.CoreWorkerStats.UsedResourcesEntryR\rusedResources\x12O\n\rwebui_display\x18\n \x03(\x0b\x32*.ray.rpc.CoreWorkerStats.WebuiDisplayEntryR\x0cwebuiDisplay\x12\"\n\rnum_in_plasma\x18\x0b \x01(\x05R\x0bnumInPlasma\x12*\n\x11num_local_objects\x18\x0c \x01(\x05R\x0fnumLocalObjects\x12\x37\n\x18used_object_store_memory\x18\r \x01(\x03R\x15usedObjectStoreMemory\x12*\n\x11task_queue_length\x18\x0e \x01(\x05R\x0ftaskQueueLength\x12,\n\x12num_executed_tasks\x18\x0f \x01(\x05R\x10numExecutedTasks\x12\x1f\n\x0b\x61\x63tor_title\x18\x10 \x01(\tR\nactorTitle\x12\x37\n\x0bobject_refs\x18\x11 \x03(\x0b\x32\x16.ray.rpc.ObjectRefInfoR\nobjectRefs\x1a@\n\x12UsedResourcesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x01R\x05value:\x02\x38\x01\x1a?\n\x11WebuiDisplayEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01*)\n\x08Language\x12\n\n\x06PYTHON\x10\x00\x12\x08\n\x04JAVA\x10\x01\x12\x07\n\x03\x43PP\x10\x02*$\n\nWorkerType\x12\n\n\x06WORKER\x10\x00\x12\n\n\x06\x44RIVER\x10\x01*U\n\x08TaskType\x12\x0f\n\x0bNORMAL_TASK\x10\x00\x12\x17\n\x13\x41\x43TOR_CREATION_TASK\x10\x01\x12\x0e\n\nACTOR_TASK\x10\x02\x12\x0f\n\x0b\x44RIVER_TASK\x10\x03\x42\x1a\n\x18io.ray.runtime.generatedb\x06proto3')
)
_LANGUAGE = _descriptor.EnumDescriptor(
name='Language',
full_name='ray.rpc.Language',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='PYTHON', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='JAVA', index=1, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='CPP', index=2, number=2,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=4697,
serialized_end=4738,
)
_sym_db.RegisterEnumDescriptor(_LANGUAGE)
Language = enum_type_wrapper.EnumTypeWrapper(_LANGUAGE)
_WORKERTYPE = _descriptor.EnumDescriptor(
name='WorkerType',
full_name='ray.rpc.WorkerType',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='WORKER', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='DRIVER', index=1, number=1,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=4740,
serialized_end=4776,
)
_sym_db.RegisterEnumDescriptor(_WORKERTYPE)
WorkerType = enum_type_wrapper.EnumTypeWrapper(_WORKERTYPE)
_TASKTYPE = _descriptor.EnumDescriptor(
name='TaskType',
full_name='ray.rpc.TaskType',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='NORMAL_TASK', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='ACTOR_CREATION_TASK', index=1, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='ACTOR_TASK', index=2, number=2,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='DRIVER_TASK', index=3, number=3,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=4778,
serialized_end=4863,
)
_sym_db.RegisterEnumDescriptor(_TASKTYPE)
TaskType = enum_type_wrapper.EnumTypeWrapper(_TASKTYPE)
PYTHON = 0
JAVA = 1
CPP = 2
WORKER = 0
DRIVER = 1
NORMAL_TASK = 0
ACTOR_CREATION_TASK = 1
ACTOR_TASK = 2
DRIVER_TASK = 3
_ADDRESS = _descriptor.Descriptor(
name='Address',
full_name='ray.rpc.Address',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='raylet_id', full_name='ray.rpc.Address.raylet_id', index=0,
number=1, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='rayletId', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='ip_address', full_name='ray.rpc.Address.ip_address', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='ipAddress', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='port', full_name='ray.rpc.Address.port', index=2,
number=3, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='port', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='worker_id', full_name='ray.rpc.Address.worker_id', index=3,
number=4, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='workerId', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=42,
serialized_end=160,
)
_JAVAFUNCTIONDESCRIPTOR = _descriptor.Descriptor(
name='JavaFunctionDescriptor',
full_name='ray.rpc.JavaFunctionDescriptor',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='class_name', full_name='ray.rpc.JavaFunctionDescriptor.class_name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='className', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='function_name', full_name='ray.rpc.JavaFunctionDescriptor.function_name', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='functionName', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='signature', full_name='ray.rpc.JavaFunctionDescriptor.signature', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='signature', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=162,
serialized_end=284,
)
_PYTHONFUNCTIONDESCRIPTOR = _descriptor.Descriptor(
name='PythonFunctionDescriptor',
full_name='ray.rpc.PythonFunctionDescriptor',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='module_name', full_name='ray.rpc.PythonFunctionDescriptor.module_name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='moduleName', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='class_name', full_name='ray.rpc.PythonFunctionDescriptor.class_name', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='className', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='function_name', full_name='ray.rpc.PythonFunctionDescriptor.function_name', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='functionName', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='function_hash', full_name='ray.rpc.PythonFunctionDescriptor.function_hash', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='functionHash', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=287,
serialized_end=451,
)
_CPPFUNCTIONDESCRIPTOR = _descriptor.Descriptor(
name='CppFunctionDescriptor',
full_name='ray.rpc.CppFunctionDescriptor',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='lib_name', full_name='ray.rpc.CppFunctionDescriptor.lib_name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='libName', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='function_offset', full_name='ray.rpc.CppFunctionDescriptor.function_offset', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='functionOffset', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='exec_function_offset', full_name='ray.rpc.CppFunctionDescriptor.exec_function_offset', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='execFunctionOffset', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=454,
serialized_end=595,
)
_FUNCTIONDESCRIPTOR = _descriptor.Descriptor(
name='FunctionDescriptor',
full_name='ray.rpc.FunctionDescriptor',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='java_function_descriptor', full_name='ray.rpc.FunctionDescriptor.java_function_descriptor', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='javaFunctionDescriptor', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='python_function_descriptor', full_name='ray.rpc.FunctionDescriptor.python_function_descriptor', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='pythonFunctionDescriptor', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='cpp_function_descriptor', full_name='ray.rpc.FunctionDescriptor.cpp_function_descriptor', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='cppFunctionDescriptor', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='function_descriptor', full_name='ray.rpc.FunctionDescriptor.function_descriptor',
index=0, containing_type=None, fields=[]),
],
serialized_start=598,
serialized_end=923,
)
_TASKSPEC_REQUIREDRESOURCESENTRY = _descriptor.Descriptor(
name='RequiredResourcesEntry',
full_name='ray.rpc.TaskSpec.RequiredResourcesEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='ray.rpc.TaskSpec.RequiredResourcesEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='key', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='ray.rpc.TaskSpec.RequiredResourcesEntry.value', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='value', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=_b('8\001'),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1776,
serialized_end=1844,
)
_TASKSPEC_REQUIREDPLACEMENTRESOURCESENTRY = _descriptor.Descriptor(
name='RequiredPlacementResourcesEntry',
full_name='ray.rpc.TaskSpec.RequiredPlacementResourcesEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='ray.rpc.TaskSpec.RequiredPlacementResourcesEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='key', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='ray.rpc.TaskSpec.RequiredPlacementResourcesEntry.value', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='value', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=_b('8\001'),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1846,
serialized_end=1923,
)
_TASKSPEC = _descriptor.Descriptor(
name='TaskSpec',
full_name='ray.rpc.TaskSpec',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='type', full_name='ray.rpc.TaskSpec.type', index=0,
number=1, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='type', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='language', full_name='ray.rpc.TaskSpec.language', index=1,
number=2, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='language', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='function_descriptor', full_name='ray.rpc.TaskSpec.function_descriptor', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='functionDescriptor', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='job_id', full_name='ray.rpc.TaskSpec.job_id', index=3,
number=4, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='jobId', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='task_id', full_name='ray.rpc.TaskSpec.task_id', index=4,
number=5, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='taskId', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='parent_task_id', full_name='ray.rpc.TaskSpec.parent_task_id', index=5,
number=6, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='parentTaskId', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='parent_counter', full_name='ray.rpc.TaskSpec.parent_counter', index=6,
number=7, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='parentCounter', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='caller_id', full_name='ray.rpc.TaskSpec.caller_id', index=7,
number=8, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='callerId', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='caller_address', full_name='ray.rpc.TaskSpec.caller_address', index=8,
number=9, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='callerAddress', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='args', full_name='ray.rpc.TaskSpec.args', index=9,
number=10, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='args', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='num_returns', full_name='ray.rpc.TaskSpec.num_returns', index=10,
number=11, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='numReturns', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='required_resources', full_name='ray.rpc.TaskSpec.required_resources', index=11,
number=12, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='requiredResources', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='required_placement_resources', full_name='ray.rpc.TaskSpec.required_placement_resources', index=12,
number=13, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='requiredPlacementResources', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='actor_creation_task_spec', full_name='ray.rpc.TaskSpec.actor_creation_task_spec', index=13,
number=14, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='actorCreationTaskSpec', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='actor_task_spec', full_name='ray.rpc.TaskSpec.actor_task_spec', index=14,
number=15, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='actorTaskSpec', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='max_retries', full_name='ray.rpc.TaskSpec.max_retries', index=15,
number=16, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='maxRetries', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_TASKSPEC_REQUIREDRESOURCESENTRY, _TASKSPEC_REQUIREDPLACEMENTRESOURCESENTRY, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=926,
serialized_end=1923,
)
_TASKARG = _descriptor.Descriptor(
name='TaskArg',
full_name='ray.rpc.TaskArg',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='object_ids', full_name='ray.rpc.TaskArg.object_ids', index=0,
number=1, type=12, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='objectIds', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='data', full_name='ray.rpc.TaskArg.data', index=1,
number=2, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='data', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='metadata', full_name='ray.rpc.TaskArg.metadata', index=2,
number=3, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='metadata', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='nested_inlined_ids', full_name='ray.rpc.TaskArg.nested_inlined_ids', index=3,
number=4, type=12, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='nestedInlinedIds', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1926,
serialized_end=2060,
)
_ACTORCREATIONTASKSPEC = _descriptor.Descriptor(
name='ActorCreationTaskSpec',
full_name='ray.rpc.ActorCreationTaskSpec',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='actor_id', full_name='ray.rpc.ActorCreationTaskSpec.actor_id', index=0,
number=2, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='actorId', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='max_actor_restarts', full_name='ray.rpc.ActorCreationTaskSpec.max_actor_restarts', index=1,
number=3, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='maxActorRestarts', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='dynamic_worker_options', full_name='ray.rpc.ActorCreationTaskSpec.dynamic_worker_options', index=2,
number=4, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='dynamicWorkerOptions', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='max_concurrency', full_name='ray.rpc.ActorCreationTaskSpec.max_concurrency', index=3,
number=5, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='maxConcurrency', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='is_detached', full_name='ray.rpc.ActorCreationTaskSpec.is_detached', index=4,
number=6, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='isDetached', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='name', full_name='ray.rpc.ActorCreationTaskSpec.name', index=5,
number=7, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='name', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='is_asyncio', full_name='ray.rpc.ActorCreationTaskSpec.is_asyncio', index=6,
number=8, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='isAsyncio', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='extension_data', full_name='ray.rpc.ActorCreationTaskSpec.extension_data', index=7,
number=9, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='extensionData', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2063,
serialized_end=2377,
)
_ACTORTASKSPEC = _descriptor.Descriptor(
name='ActorTaskSpec',
full_name='ray.rpc.ActorTaskSpec',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='actor_id', full_name='ray.rpc.ActorTaskSpec.actor_id', index=0,
number=2, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='actorId', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='actor_creation_dummy_object_id', full_name='ray.rpc.ActorTaskSpec.actor_creation_dummy_object_id', index=1,
number=4, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='actorCreationDummyObjectId', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='actor_counter', full_name='ray.rpc.ActorTaskSpec.actor_counter', index=2,
number=5, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='actorCounter', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='previous_actor_task_dummy_object_id', full_name='ray.rpc.ActorTaskSpec.previous_actor_task_dummy_object_id', index=3,
number=7, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='previousActorTaskDummyObjectId', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2380,
serialized_end=2604,
)
_TASKEXECUTIONSPEC = _descriptor.Descriptor(
name='TaskExecutionSpec',
full_name='ray.rpc.TaskExecutionSpec',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='last_timestamp', full_name='ray.rpc.TaskExecutionSpec.last_timestamp', index=0,
number=2, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='lastTimestamp', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='num_forwards', full_name='ray.rpc.TaskExecutionSpec.num_forwards', index=1,
number=3, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='numForwards', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2606,
serialized_end=2699,
)
_TASK = _descriptor.Descriptor(
name='Task',
full_name='ray.rpc.Task',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='task_spec', full_name='ray.rpc.Task.task_spec', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='taskSpec', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='task_execution_spec', full_name='ray.rpc.Task.task_execution_spec', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='taskExecutionSpec', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2702,
serialized_end=2832,
)
_RESOURCEID = _descriptor.Descriptor(
name='ResourceId',
full_name='ray.rpc.ResourceId',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='index', full_name='ray.rpc.ResourceId.index', index=0,
number=1, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='index', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='quantity', full_name='ray.rpc.ResourceId.quantity', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='quantity', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2834,
serialized_end=2896,
)
_RESOURCEMAPENTRY = _descriptor.Descriptor(
name='ResourceMapEntry',
full_name='ray.rpc.ResourceMapEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='ray.rpc.ResourceMapEntry.name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='name', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='resource_ids', full_name='ray.rpc.ResourceMapEntry.resource_ids', index=1,
number=2, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='resourceIds', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2898,
serialized_end=2992,
)
_VIEWDATA_MEASURE = _descriptor.Descriptor(
name='Measure',
full_name='ray.rpc.ViewData.Measure',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='tags', full_name='ray.rpc.ViewData.Measure.tags', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='tags', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='int_value', full_name='ray.rpc.ViewData.Measure.int_value', index=1,
number=2, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='intValue', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='double_value', full_name='ray.rpc.ViewData.Measure.double_value', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='doubleValue', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='distribution_min', full_name='ray.rpc.ViewData.Measure.distribution_min', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='distributionMin', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='distribution_mean', full_name='ray.rpc.ViewData.Measure.distribution_mean', index=4,
number=5, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='distributionMean', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='distribution_max', full_name='ray.rpc.ViewData.Measure.distribution_max', index=5,
number=6, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='distributionMax', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='distribution_count', full_name='ray.rpc.ViewData.Measure.distribution_count', index=6,
number=7, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='distributionCount', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='distribution_bucket_boundaries', full_name='ray.rpc.ViewData.Measure.distribution_bucket_boundaries', index=7,
number=8, type=1, cpp_type=5, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='distributionBucketBoundaries', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='distribution_bucket_counts', full_name='ray.rpc.ViewData.Measure.distribution_bucket_counts', index=8,
number=9, type=1, cpp_type=5, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='distributionBucketCounts', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=3092,
serialized_end=3495,
)
_VIEWDATA = _descriptor.Descriptor(
name='ViewData',
full_name='ray.rpc.ViewData',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='view_name', full_name='ray.rpc.ViewData.view_name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='viewName', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='measures', full_name='ray.rpc.ViewData.measures', index=1,
number=2, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='measures', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_VIEWDATA_MEASURE, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2995,
serialized_end=3495,
)
_OBJECTREFINFO = _descriptor.Descriptor(
name='ObjectRefInfo',
full_name='ray.rpc.ObjectRefInfo',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='object_id', full_name='ray.rpc.ObjectRefInfo.object_id', index=0,
number=1, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='objectId', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='call_site', full_name='ray.rpc.ObjectRefInfo.call_site', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='callSite', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='object_size', full_name='ray.rpc.ObjectRefInfo.object_size', index=2,
number=3, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='objectSize', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='local_ref_count', full_name='ray.rpc.ObjectRefInfo.local_ref_count', index=3,
number=4, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='localRefCount', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='submitted_task_ref_count', full_name='ray.rpc.ObjectRefInfo.submitted_task_ref_count', index=4,
number=5, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='submittedTaskRefCount', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='contained_in_owned', full_name='ray.rpc.ObjectRefInfo.contained_in_owned', index=5,
number=6, type=12, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='containedInOwned', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='pinned_in_memory', full_name='ray.rpc.ObjectRefInfo.pinned_in_memory', index=6,
number=7, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='pinnedInMemory', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=3498,
serialized_end=3789,
)
_COREWORKERSTATS_USEDRESOURCESENTRY = _descriptor.Descriptor(
name='UsedResourcesEntry',
full_name='ray.rpc.CoreWorkerStats.UsedResourcesEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='ray.rpc.CoreWorkerStats.UsedResourcesEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='key', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='ray.rpc.CoreWorkerStats.UsedResourcesEntry.value', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='value', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=_b('8\001'),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=4566,
serialized_end=4630,
)
_COREWORKERSTATS_WEBUIDISPLAYENTRY = _descriptor.Descriptor(
name='WebuiDisplayEntry',
full_name='ray.rpc.CoreWorkerStats.WebuiDisplayEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='ray.rpc.CoreWorkerStats.WebuiDisplayEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='key', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='ray.rpc.CoreWorkerStats.WebuiDisplayEntry.value', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='value', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=_b('8\001'),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=4632,
serialized_end=4695,
)
_COREWORKERSTATS = _descriptor.Descriptor(
name='CoreWorkerStats',
full_name='ray.rpc.CoreWorkerStats',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='current_task_desc', full_name='ray.rpc.CoreWorkerStats.current_task_desc', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='currentTaskDesc', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='num_pending_tasks', full_name='ray.rpc.CoreWorkerStats.num_pending_tasks', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='numPendingTasks', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='num_object_ids_in_scope', full_name='ray.rpc.CoreWorkerStats.num_object_ids_in_scope', index=2,
number=3, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='numObjectIdsInScope', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='current_task_func_desc', full_name='ray.rpc.CoreWorkerStats.current_task_func_desc', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='currentTaskFuncDesc', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='ip_address', full_name='ray.rpc.CoreWorkerStats.ip_address', index=4,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='ipAddress', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='port', full_name='ray.rpc.CoreWorkerStats.port', index=5,
number=7, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='port', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='actor_id', full_name='ray.rpc.CoreWorkerStats.actor_id', index=6,
number=8, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='actorId', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='used_resources', full_name='ray.rpc.CoreWorkerStats.used_resources', index=7,
number=9, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='usedResources', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='webui_display', full_name='ray.rpc.CoreWorkerStats.webui_display', index=8,
number=10, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='webuiDisplay', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='num_in_plasma', full_name='ray.rpc.CoreWorkerStats.num_in_plasma', index=9,
number=11, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='numInPlasma', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='num_local_objects', full_name='ray.rpc.CoreWorkerStats.num_local_objects', index=10,
number=12, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='numLocalObjects', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='used_object_store_memory', full_name='ray.rpc.CoreWorkerStats.used_object_store_memory', index=11,
number=13, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='usedObjectStoreMemory', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='task_queue_length', full_name='ray.rpc.CoreWorkerStats.task_queue_length', index=12,
number=14, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='taskQueueLength', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='num_executed_tasks', full_name='ray.rpc.CoreWorkerStats.num_executed_tasks', index=13,
number=15, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='numExecutedTasks', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='actor_title', full_name='ray.rpc.CoreWorkerStats.actor_title', index=14,
number=16, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='actorTitle', file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='object_refs', full_name='ray.rpc.CoreWorkerStats.object_refs', index=15,
number=17, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='objectRefs', file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_COREWORKERSTATS_USEDRESOURCESENTRY, _COREWORKERSTATS_WEBUIDISPLAYENTRY, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=3792,
serialized_end=4695,
)
_FUNCTIONDESCRIPTOR.fields_by_name['java_function_descriptor'].message_type = _JAVAFUNCTIONDESCRIPTOR
_FUNCTIONDESCRIPTOR.fields_by_name['python_function_descriptor'].message_type = _PYTHONFUNCTIONDESCRIPTOR
_FUNCTIONDESCRIPTOR.fields_by_name['cpp_function_descriptor'].message_type = _CPPFUNCTIONDESCRIPTOR
_FUNCTIONDESCRIPTOR.oneofs_by_name['function_descriptor'].fields.append(
_FUNCTIONDESCRIPTOR.fields_by_name['java_function_descriptor'])
_FUNCTIONDESCRIPTOR.fields_by_name['java_function_descriptor'].containing_oneof = _FUNCTIONDESCRIPTOR.oneofs_by_name['function_descriptor']
_FUNCTIONDESCRIPTOR.oneofs_by_name['function_descriptor'].fields.append(
_FUNCTIONDESCRIPTOR.fields_by_name['python_function_descriptor'])
_FUNCTIONDESCRIPTOR.fields_by_name['python_function_descriptor'].containing_oneof = _FUNCTIONDESCRIPTOR.oneofs_by_name['function_descriptor']
_FUNCTIONDESCRIPTOR.oneofs_by_name['function_descriptor'].fields.append(
_FUNCTIONDESCRIPTOR.fields_by_name['cpp_function_descriptor'])
_FUNCTIONDESCRIPTOR.fields_by_name['cpp_function_descriptor'].containing_oneof = _FUNCTIONDESCRIPTOR.oneofs_by_name['function_descriptor']
_TASKSPEC_REQUIREDRESOURCESENTRY.containing_type = _TASKSPEC
_TASKSPEC_REQUIREDPLACEMENTRESOURCESENTRY.containing_type = _TASKSPEC
_TASKSPEC.fields_by_name['type'].enum_type = _TASKTYPE
_TASKSPEC.fields_by_name['language'].enum_type = _LANGUAGE
_TASKSPEC.fields_by_name['function_descriptor'].message_type = _FUNCTIONDESCRIPTOR
_TASKSPEC.fields_by_name['caller_address'].message_type = _ADDRESS
_TASKSPEC.fields_by_name['args'].message_type = _TASKARG
_TASKSPEC.fields_by_name['required_resources'].message_type = _TASKSPEC_REQUIREDRESOURCESENTRY
_TASKSPEC.fields_by_name['required_placement_resources'].message_type = _TASKSPEC_REQUIREDPLACEMENTRESOURCESENTRY
_TASKSPEC.fields_by_name['actor_creation_task_spec'].message_type = _ACTORCREATIONTASKSPEC
_TASKSPEC.fields_by_name['actor_task_spec'].message_type = _ACTORTASKSPEC
_TASK.fields_by_name['task_spec'].message_type = _TASKSPEC
_TASK.fields_by_name['task_execution_spec'].message_type = _TASKEXECUTIONSPEC
_RESOURCEMAPENTRY.fields_by_name['resource_ids'].message_type = _RESOURCEID
_VIEWDATA_MEASURE.containing_type = _VIEWDATA
_VIEWDATA.fields_by_name['measures'].message_type = _VIEWDATA_MEASURE
_COREWORKERSTATS_USEDRESOURCESENTRY.containing_type = _COREWORKERSTATS
_COREWORKERSTATS_WEBUIDISPLAYENTRY.containing_type = _COREWORKERSTATS
_COREWORKERSTATS.fields_by_name['used_resources'].message_type = _COREWORKERSTATS_USEDRESOURCESENTRY
_COREWORKERSTATS.fields_by_name['webui_display'].message_type = _COREWORKERSTATS_WEBUIDISPLAYENTRY
_COREWORKERSTATS.fields_by_name['object_refs'].message_type = _OBJECTREFINFO
DESCRIPTOR.message_types_by_name['Address'] = _ADDRESS
DESCRIPTOR.message_types_by_name['JavaFunctionDescriptor'] = _JAVAFUNCTIONDESCRIPTOR
DESCRIPTOR.message_types_by_name['PythonFunctionDescriptor'] = _PYTHONFUNCTIONDESCRIPTOR
DESCRIPTOR.message_types_by_name['CppFunctionDescriptor'] = _CPPFUNCTIONDESCRIPTOR
DESCRIPTOR.message_types_by_name['FunctionDescriptor'] = _FUNCTIONDESCRIPTOR
DESCRIPTOR.message_types_by_name['TaskSpec'] = _TASKSPEC
DESCRIPTOR.message_types_by_name['TaskArg'] = _TASKARG
DESCRIPTOR.message_types_by_name['ActorCreationTaskSpec'] = _ACTORCREATIONTASKSPEC
DESCRIPTOR.message_types_by_name['ActorTaskSpec'] = _ACTORTASKSPEC
DESCRIPTOR.message_types_by_name['TaskExecutionSpec'] = _TASKEXECUTIONSPEC
DESCRIPTOR.message_types_by_name['Task'] = _TASK
DESCRIPTOR.message_types_by_name['ResourceId'] = _RESOURCEID
DESCRIPTOR.message_types_by_name['ResourceMapEntry'] = _RESOURCEMAPENTRY
DESCRIPTOR.message_types_by_name['ViewData'] = _VIEWDATA
DESCRIPTOR.message_types_by_name['ObjectRefInfo'] = _OBJECTREFINFO
DESCRIPTOR.message_types_by_name['CoreWorkerStats'] = _COREWORKERSTATS
DESCRIPTOR.enum_types_by_name['Language'] = _LANGUAGE
DESCRIPTOR.enum_types_by_name['WorkerType'] = _WORKERTYPE
DESCRIPTOR.enum_types_by_name['TaskType'] = _TASKTYPE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
Address = _reflection.GeneratedProtocolMessageType('Address', (_message.Message,), {
'DESCRIPTOR' : _ADDRESS,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.Address)
})
_sym_db.RegisterMessage(Address)
JavaFunctionDescriptor = _reflection.GeneratedProtocolMessageType('JavaFunctionDescriptor', (_message.Message,), {
'DESCRIPTOR' : _JAVAFUNCTIONDESCRIPTOR,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.JavaFunctionDescriptor)
})
_sym_db.RegisterMessage(JavaFunctionDescriptor)
PythonFunctionDescriptor = _reflection.GeneratedProtocolMessageType('PythonFunctionDescriptor', (_message.Message,), {
'DESCRIPTOR' : _PYTHONFUNCTIONDESCRIPTOR,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.PythonFunctionDescriptor)
})
_sym_db.RegisterMessage(PythonFunctionDescriptor)
CppFunctionDescriptor = _reflection.GeneratedProtocolMessageType('CppFunctionDescriptor', (_message.Message,), {
'DESCRIPTOR' : _CPPFUNCTIONDESCRIPTOR,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.CppFunctionDescriptor)
})
_sym_db.RegisterMessage(CppFunctionDescriptor)
FunctionDescriptor = _reflection.GeneratedProtocolMessageType('FunctionDescriptor', (_message.Message,), {
'DESCRIPTOR' : _FUNCTIONDESCRIPTOR,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.FunctionDescriptor)
})
_sym_db.RegisterMessage(FunctionDescriptor)
TaskSpec = _reflection.GeneratedProtocolMessageType('TaskSpec', (_message.Message,), {
'RequiredResourcesEntry' : _reflection.GeneratedProtocolMessageType('RequiredResourcesEntry', (_message.Message,), {
'DESCRIPTOR' : _TASKSPEC_REQUIREDRESOURCESENTRY,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.TaskSpec.RequiredResourcesEntry)
})
,
'RequiredPlacementResourcesEntry' : _reflection.GeneratedProtocolMessageType('RequiredPlacementResourcesEntry', (_message.Message,), {
'DESCRIPTOR' : _TASKSPEC_REQUIREDPLACEMENTRESOURCESENTRY,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.TaskSpec.RequiredPlacementResourcesEntry)
})
,
'DESCRIPTOR' : _TASKSPEC,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.TaskSpec)
})
_sym_db.RegisterMessage(TaskSpec)
_sym_db.RegisterMessage(TaskSpec.RequiredResourcesEntry)
_sym_db.RegisterMessage(TaskSpec.RequiredPlacementResourcesEntry)
TaskArg = _reflection.GeneratedProtocolMessageType('TaskArg', (_message.Message,), {
'DESCRIPTOR' : _TASKARG,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.TaskArg)
})
_sym_db.RegisterMessage(TaskArg)
ActorCreationTaskSpec = _reflection.GeneratedProtocolMessageType('ActorCreationTaskSpec', (_message.Message,), {
'DESCRIPTOR' : _ACTORCREATIONTASKSPEC,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.ActorCreationTaskSpec)
})
_sym_db.RegisterMessage(ActorCreationTaskSpec)
ActorTaskSpec = _reflection.GeneratedProtocolMessageType('ActorTaskSpec', (_message.Message,), {
'DESCRIPTOR' : _ACTORTASKSPEC,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.ActorTaskSpec)
})
_sym_db.RegisterMessage(ActorTaskSpec)
TaskExecutionSpec = _reflection.GeneratedProtocolMessageType('TaskExecutionSpec', (_message.Message,), {
'DESCRIPTOR' : _TASKEXECUTIONSPEC,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.TaskExecutionSpec)
})
_sym_db.RegisterMessage(TaskExecutionSpec)
Task = _reflection.GeneratedProtocolMessageType('Task', (_message.Message,), {
'DESCRIPTOR' : _TASK,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.Task)
})
_sym_db.RegisterMessage(Task)
ResourceId = _reflection.GeneratedProtocolMessageType('ResourceId', (_message.Message,), {
'DESCRIPTOR' : _RESOURCEID,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.ResourceId)
})
_sym_db.RegisterMessage(ResourceId)
ResourceMapEntry = _reflection.GeneratedProtocolMessageType('ResourceMapEntry', (_message.Message,), {
'DESCRIPTOR' : _RESOURCEMAPENTRY,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.ResourceMapEntry)
})
_sym_db.RegisterMessage(ResourceMapEntry)
ViewData = _reflection.GeneratedProtocolMessageType('ViewData', (_message.Message,), {
'Measure' : _reflection.GeneratedProtocolMessageType('Measure', (_message.Message,), {
'DESCRIPTOR' : _VIEWDATA_MEASURE,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.ViewData.Measure)
})
,
'DESCRIPTOR' : _VIEWDATA,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.ViewData)
})
_sym_db.RegisterMessage(ViewData)
_sym_db.RegisterMessage(ViewData.Measure)
ObjectRefInfo = _reflection.GeneratedProtocolMessageType('ObjectRefInfo', (_message.Message,), {
'DESCRIPTOR' : _OBJECTREFINFO,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.ObjectRefInfo)
})
_sym_db.RegisterMessage(ObjectRefInfo)
CoreWorkerStats = _reflection.GeneratedProtocolMessageType('CoreWorkerStats', (_message.Message,), {
'UsedResourcesEntry' : _reflection.GeneratedProtocolMessageType('UsedResourcesEntry', (_message.Message,), {
'DESCRIPTOR' : _COREWORKERSTATS_USEDRESOURCESENTRY,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.CoreWorkerStats.UsedResourcesEntry)
})
,
'WebuiDisplayEntry' : _reflection.GeneratedProtocolMessageType('WebuiDisplayEntry', (_message.Message,), {
'DESCRIPTOR' : _COREWORKERSTATS_WEBUIDISPLAYENTRY,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.CoreWorkerStats.WebuiDisplayEntry)
})
,
'DESCRIPTOR' : _COREWORKERSTATS,
'__module__' : 'src.ray.protobuf.common_pb2'
# @@protoc_insertion_point(class_scope:ray.rpc.CoreWorkerStats)
})
_sym_db.RegisterMessage(CoreWorkerStats)
_sym_db.RegisterMessage(CoreWorkerStats.UsedResourcesEntry)
_sym_db.RegisterMessage(CoreWorkerStats.WebuiDisplayEntry)
DESCRIPTOR._options = None
_TASKSPEC_REQUIREDRESOURCESENTRY._options = None
_TASKSPEC_REQUIREDPLACEMENTRESOURCESENTRY._options = None
_COREWORKERSTATS_USEDRESOURCESENTRY._options = None
_COREWORKERSTATS_WEBUIDISPLAYENTRY._options = None
# @@protoc_insertion_point(module_scope)
| 46.591356 | 7,878 | 0.753813 | 8,964 | 71,145 | 5.692883 | 0.06805 | 0.05189 | 0.052674 | 0.034019 | 0.694205 | 0.61447 | 0.54949 | 0.52135 | 0.506143 | 0.501852 | 0 | 0.041151 | 0.119095 | 71,145 | 1,526 | 7,879 | 46.621887 | 0.773104 | 0.021843 | 0 | 0.628852 | 1 | 0.002801 | 0.225188 | 0.171195 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004202 | 0 | 0.004202 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0d966087cea0a7295db776cecd1d057649f3d673 | 829 | py | Python | src/PyMIPS/tests/memory_test.py | shenganzhang/Py-MI-PS | 2d22327c75bac1b58a4804a61e7a703ecc5ba978 | [
"MIT"
] | 3 | 2019-05-14T21:24:59.000Z | 2021-08-04T01:43:22.000Z | src/PyMIPS/tests/memory_test.py | shenganzhang/Py-MI-PS | 2d22327c75bac1b58a4804a61e7a703ecc5ba978 | [
"MIT"
] | null | null | null | src/PyMIPS/tests/memory_test.py | shenganzhang/Py-MI-PS | 2d22327c75bac1b58a4804a61e7a703ecc5ba978 | [
"MIT"
] | 2 | 2021-08-04T01:43:25.000Z | 2021-11-23T06:54:17.000Z | try:
from src.PyMIPS.Datastructure.memory import Memory
except:
from PyMIPS.Datastructure.memory import Memory
import unittest
class TestMemory(unittest.TestCase):
def test_storage(self):
Memory.store_word(16, 2214)
Memory.store_word(17, 2014)
self.assertEqual(Memory.get_word(2214), 16)
self.assertEqual(Memory.get_word(2014), 17)
def test_bad_access(self):
Memory.store_word(16, 2000)
Memory.get_word(2004)
Memory.get_word(2001)
Memory.get_word(2002)
Memory.get_word(2003)
def test_overwrite(self):
Memory.store_word(16, 2000)
self.assertEqual(Memory.get_word(2000), 16)
Memory.store_word(20, 2001)
self.assertEqual(Memory.get_word(2001), 20)
self.assertEqual(Memory.get_word(2000), 0)
| 25.121212 | 54 | 0.671894 | 110 | 829 | 4.9 | 0.309091 | 0.150278 | 0.217069 | 0.222635 | 0.543599 | 0.211503 | 0 | 0 | 0 | 0 | 0 | 0.11646 | 0.22316 | 829 | 32 | 55 | 25.90625 | 0.720497 | 0 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.130435 | false | 0 | 0.130435 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0dac47ce9c74512652d2d18d61755c2ace5c01fc | 819 | py | Python | banner4.py | KingNasirul/BHBVirus | 219c28ace488e9e47d94f82911c86a1d5974f941 | [
"Unlicense"
] | null | null | null | banner4.py | KingNasirul/BHBVirus | 219c28ace488e9e47d94f82911c86a1d5974f941 | [
"Unlicense"
] | null | null | null | banner4.py | KingNasirul/BHBVirus | 219c28ace488e9e47d94f82911c86a1d5974f941 | [
"Unlicense"
] | null | null | null |
import time
import sys
# Set color
R = '\033[31m' # Red
N = '\033[1;37m' # White
G = '\033[32m' # Green
O = '\033[0;33m' # Orange
B = '\033[1;34m' #Blue
def delay_print(s):
for c in s:
sys.stdout.write(c)
sys.stdout.flush()
time.sleep(0.01)
delay_print
delay_print (""+R+" db db d888888b d8888b. db db .d8888. \n")
delay_print (""+R+" 88 88 `88' 88 `8D 88 88 88' YP \n")
delay_print (""+R+" Y8 8P 88 88oobY' 88 88 `8bo. \n")
delay_print (""+R+" `8b d8' 88 88`8b 88 88 `Y8b. \n")
delay_print (""+R+" `8bd8' .88. 88 `88. 88b d88 db 8D \n")
delay_print (""+R+" YP Y888888P 88 YD ~Y8888P' `8888Y' "+G+"kingNasirul\n")
print
| 32.76 | 82 | 0.467643 | 122 | 819 | 3.07377 | 0.467213 | 0.106667 | 0.176 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217054 | 0.369963 | 819 | 24 | 83 | 34.125 | 0.50969 | 0.043956 | 0 | 0 | 0 | 0 | 0.428387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.15 | 0.45 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
0dae67493e4ce5dba398f2d0ee4a34110cbc91fc | 1,463 | py | Python | aioneo4j4/client.py | zhangmoon/aioneo4j4 | 94b4544d2764eba5eea740959f194e289a581fd2 | [
"MIT"
] | null | null | null | aioneo4j4/client.py | zhangmoon/aioneo4j4 | 94b4544d2764eba5eea740959f194e289a581fd2 | [
"MIT"
] | null | null | null | aioneo4j4/client.py | zhangmoon/aioneo4j4 | 94b4544d2764eba5eea740959f194e289a581fd2 | [
"MIT"
] | null | null | null | import asyncio
import collections
from yarl import URL
from .transport import Transport
class Client:
def __init__(
self,
url='http://127.0.0.1:7474/',
auth=None,
transport=Transport,
request_timeout=...,
*, loop=None
):
if loop is None:
loop = asyncio.get_event_loop()
self.loop = loop
url = URL(url)
if url.user and url.password:
auth = url.user, url.password
url = url.with_user(None)
# TODO: not sure is it needed
url = url.with_password(None)
self.transport = transport(
url=url,
auth=auth,
request_timeout=request_timeout,
loop=self.loop,
)
async def begin_and_commit(
self,
cypher,
db='neo4j',
path='db/%s/tx/commit',
request_timeout=...,
):
_, data = await self.transport.perform_request(
method='POST',
path=path % db,
data={
"statements": [{
"statement": cypher,
}]
},
request_timeout=request_timeout,
)
return data
async def close(self):
await self.transport.close()
async def __aenter__(self): # noqa
return self
async def __aexit__(self, *exc_info): # noqa
await self.close()
| 20.041096 | 55 | 0.500342 | 150 | 1,463 | 4.7 | 0.386667 | 0.119149 | 0.051064 | 0.079433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012586 | 0.402597 | 1,463 | 72 | 56 | 20.319444 | 0.79405 | 0.025291 | 0 | 0.156863 | 0 | 0 | 0.04571 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.019608 | false | 0.058824 | 0.078431 | 0 | 0.156863 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0db65eebf31a3d9c1ea003346b7e0a6a218692e0 | 527 | py | Python | DailyAssingments/Week1/Day2Assignments2.py | smooth-dasilva/Smoothstack-Workload | 165ac6df72c7765a594fa472131def1ab2e44c78 | [
"MIT"
] | null | null | null | DailyAssingments/Week1/Day2Assignments2.py | smooth-dasilva/Smoothstack-Workload | 165ac6df72c7765a594fa472131def1ab2e44c78 | [
"MIT"
] | null | null | null | DailyAssingments/Week1/Day2Assignments2.py | smooth-dasilva/Smoothstack-Workload | 165ac6df72c7765a594fa472131def1ab2e44c78 | [
"MIT"
] | null | null | null |
#doc4
#1.
print([1, 'Hello', 1.0])
#2
print([1, 1, [1,2]][2][1])
#3. out: 'b', 'c'
print(['a','b', 'c'][1:])
#4.
weekDict= {'Sunday':0,'Monday':1,'Tuesday':2,'Wednesday':3,'Thursday':4,'Friday':5,'Saturday':6, }
#5. out: 2 if you replace D[k1][1] with D['k1][1]
D={'k1':[1,2,3]}
print(D['k1'][1])
#6.
tup = ( 'a', [1,[2,3]] )
print(tup)
#7.
x= set('Missipi')
print(x)
#8
x.add('X')
print(x)
#9 out: [1, 2, ,3]
print(set([1,1,2,3]))
#10
for i in range(2000,3001):
if (i%7==0) and (i%5!=0):
print(i) | 13.175 | 98 | 0.489564 | 110 | 527 | 2.345455 | 0.4 | 0.03876 | 0.062016 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141876 | 0.170778 | 527 | 40 | 99 | 13.175 | 0.448513 | 0.187856 | 0 | 0.125 | 0 | 0 | 0.170673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
0dc54bb903b475f38621941bf098cb9e92be0daf | 548 | py | Python | authentication/urls.py | thestackcoder/notifao_app | e21ab3c0eed72a64ee24508b92045de13c8385bb | [
"MIT"
] | null | null | null | authentication/urls.py | thestackcoder/notifao_app | e21ab3c0eed72a64ee24508b92045de13c8385bb | [
"MIT"
] | null | null | null | authentication/urls.py | thestackcoder/notifao_app | e21ab3c0eed72a64ee24508b92045de13c8385bb | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
"""
License: MIT
Copyright (c) 2019 - present AppSeed.us
"""
from django.urls import path
from .views import login_view, register_user, reset_password
from django.contrib.auth.views import LogoutView
from .views import *
urlpatterns = [
path('login/', login_view, name="login"),
path('register/', register_user, name="register"),
path("logout/", LogoutView.as_view(), name="logout"),
path('reset/', reset_view, name="reset"),
path('reset_password/<str:pk>/',reset_password, name="reset_password"),
]
| 28.842105 | 75 | 0.695255 | 71 | 548 | 5.225352 | 0.450704 | 0.140162 | 0.080863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.133212 | 548 | 18 | 76 | 30.444444 | 0.770526 | 0.140511 | 0 | 0 | 0 | 0 | 0.194384 | 0.051836 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
0dc75b65a9507820b7a1135f0816c7e8f573fa2d | 654 | py | Python | mitmproxy/contentviews/auto.py | KarlParkinson/mitmproxy | fd5caf40c75ca73c4b767170497abf6a5bf016a0 | [
"MIT"
] | 24,939 | 2015-01-01T17:13:21.000Z | 2022-03-31T17:50:04.000Z | mitmproxy/contentviews/auto.py | PeterDaveHello/mitmproxy | 4bd7b6c4eadeaca712f63e0e73f20bcf6aadbffb | [
"MIT"
] | 3,655 | 2015-01-02T12:31:43.000Z | 2022-03-31T20:24:57.000Z | mitmproxy/contentviews/auto.py | PeterDaveHello/mitmproxy | 4bd7b6c4eadeaca712f63e0e73f20bcf6aadbffb | [
"MIT"
] | 3,712 | 2015-01-06T06:47:06.000Z | 2022-03-31T10:33:27.000Z | from mitmproxy import contentviews
from . import base
class ViewAuto(base.View):
name = "Auto"
def __call__(self, data, **metadata):
# TODO: The auto view has little justification now that views implement render_priority,
# but we keep it around for now to not touch more parts.
priority, view = max(
(v.render_priority(data, **metadata), v)
for v in contentviews.views
)
if priority == 0 and not data:
return "No content", []
return view(data, **metadata)
def render_priority(self, data: bytes, **metadata) -> float:
return -1 # don't recurse.
| 31.142857 | 96 | 0.616208 | 83 | 654 | 4.771084 | 0.626506 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00431 | 0.29052 | 654 | 20 | 97 | 32.7 | 0.849138 | 0.238532 | 0 | 0 | 0 | 0 | 0.02834 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.071429 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0dd15e9fbd8b5095490c20bbe408b720a1df4284 | 76 | py | Python | nicos_mlz/resi/setups/resi.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 12 | 2019-11-06T15:40:36.000Z | 2022-01-01T16:23:00.000Z | nicos_mlz/resi/setups/resi.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 91 | 2020-08-18T09:20:26.000Z | 2022-02-01T11:07:14.000Z | nicos_mlz/resi/setups/resi.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 6 | 2020-01-11T10:52:30.000Z | 2022-02-25T12:35:23.000Z | description = 'Resi instrument setup'
group = 'basic'
includes = ['base']
| 12.666667 | 37 | 0.684211 | 8 | 76 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171053 | 76 | 5 | 38 | 15.2 | 0.825397 | 0 | 0 | 0 | 0 | 0 | 0.394737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0de5d6a47d80b154cdbdae53819a355507f08a2e | 800 | py | Python | class3/exercises/exercise1.py | twin-bridges/netmiko_course | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | [
"Apache-2.0"
] | 11 | 2020-09-16T06:53:16.000Z | 2021-08-24T21:27:37.000Z | class3/exercises/exercise1.py | twin-bridges/netmiko_course | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | [
"Apache-2.0"
] | null | null | null | class3/exercises/exercise1.py | twin-bridges/netmiko_course | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | [
"Apache-2.0"
] | 5 | 2020-10-18T20:25:59.000Z | 2021-10-20T16:27:00.000Z | import os
from getpass import getpass
from pprint import pprint
from netmiko import ConnectHandler
# Code so automated tests will run properly
password = os.getenv("NETMIKO_PASSWORD") if os.getenv("NETMIKO_PASSWORD") else getpass()
arista1 = {
"device_type": "arista_eos",
"host": "arista1.lasthop.io",
"username": "pyclass",
"password": password,
}
with ConnectHandler(**arista1) as net_connect:
show_vlan = net_connect.send_command("show vlan", use_textfsm=True)
print()
print("VLAN Table:")
print("-" * 18)
pprint(show_vlan)
print()
for vlan_dict in show_vlan:
if vlan_dict["vlan_id"] == "7":
print()
print(f"VLAN ID: {vlan_dict['vlan_id']}")
print(f"VLAN name: {vlan_dict['name']}")
print()
| 25.806452 | 88 | 0.6425 | 102 | 800 | 4.872549 | 0.480392 | 0.064386 | 0.060362 | 0.092555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009662 | 0.22375 | 800 | 30 | 89 | 26.666667 | 0.79066 | 0.05125 | 0 | 0.166667 | 0 | 0 | 0.248349 | 0.029062 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.166667 | 0 | 0.166667 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 2 |
0de9893144b5910f320fefedfcebe7eebec65b42 | 475 | py | Python | app/controllers/user.py | souravlahoti/GithubAction | 6cda8f4ab022f78df7539b32571c1406f8943ad5 | [
"MIT"
] | null | null | null | app/controllers/user.py | souravlahoti/GithubAction | 6cda8f4ab022f78df7539b32571c1406f8943ad5 | [
"MIT"
] | null | null | null | app/controllers/user.py | souravlahoti/GithubAction | 6cda8f4ab022f78df7539b32571c1406f8943ad5 | [
"MIT"
] | null | null | null | from flask import jsonify
from flask_restful import Resource
class User(Resource):
def get(self, id):
data = {'name': 'nabin khadka'}
return jsonify(data)
def put(self, id):
pass
def patch(self, id):
pass
def delete(self, id):
pass
class UserList(Resource):
def get(self):
data = [{'name': 'nabin khadka', 'email': 'sourav@gmail.com'}]
return jsonify(data)
def post(self):
pass
| 16.964286 | 70 | 0.572632 | 59 | 475 | 4.59322 | 0.457627 | 0.088561 | 0.110701 | 0.132841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.305263 | 475 | 27 | 71 | 17.592593 | 0.821212 | 0 | 0 | 0.333333 | 0 | 0 | 0.111579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.222222 | 0.111111 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0decb58388efdb35753edb1a250f99a3c2fcefa4 | 771 | py | Python | coderdojochi/migrations/0021_auto_20180815_1757.py | rgroves/weallcode-website | ead60d3272dbbfe610b2d500978d1de44aef6386 | [
"MIT"
] | 15 | 2019-05-04T00:24:00.000Z | 2021-08-21T16:34:05.000Z | coderdojochi/migrations/0021_auto_20180815_1757.py | rgroves/weallcode-website | ead60d3272dbbfe610b2d500978d1de44aef6386 | [
"MIT"
] | 73 | 2019-04-24T15:53:42.000Z | 2021-08-06T20:41:41.000Z | coderdojochi/migrations/0021_auto_20180815_1757.py | rgroves/weallcode-website | ead60d3272dbbfe610b2d500978d1de44aef6386 | [
"MIT"
] | 20 | 2019-04-26T20:13:08.000Z | 2021-06-21T14:53:21.000Z | # Generated by Django 2.0.6 on 2018-08-15 22:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('coderdojochi', '0020_mentor_shirt_size'),
]
operations = [
migrations.AddField(
model_name='mentor',
name='home_address',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='mentor',
name='phone',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='mentor',
name='work_place',
field=models.CharField(blank=True, max_length=255, null=True),
),
]
| 26.586207 | 74 | 0.581064 | 82 | 771 | 5.329268 | 0.512195 | 0.12357 | 0.157895 | 0.185355 | 0.590389 | 0.590389 | 0.505721 | 0.505721 | 0.505721 | 0.505721 | 0 | 0.051852 | 0.299611 | 771 | 28 | 75 | 27.535714 | 0.757407 | 0.058366 | 0 | 0.545455 | 1 | 0 | 0.109116 | 0.030387 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
216ee6cd0a2a320e0ac816601363649bae571b45 | 1,691 | py | Python | test/tests/set.py | jvkersch/pyston | 2c7e7a5e0ed7a0a8b4528919f855fa8336b43902 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | test/tests/set.py | jvkersch/pyston | 2c7e7a5e0ed7a0a8b4528919f855fa8336b43902 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | test/tests/set.py | jvkersch/pyston | 2c7e7a5e0ed7a0a8b4528919f855fa8336b43902 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | s1 = {1}
def sorted(s):
l = list(s)
l.sort()
return repr(l)
s1 = set() | set(range(3))
print sorted(s1)
s2 = set(range(1, 5))
print sorted(s2)
print repr(sorted(s1)), str(sorted(s1))
print sorted(s1 - s2)
print sorted(s2 - s1)
print sorted(s1 ^ s2)
print sorted(s1 & s2)
print sorted(s1 | s2)
print len(set(range(5)))
s = set(range(5))
print sorted(s)
s.add(3)
print sorted(s)
s.add("")
print len(s)
s.add(None)
print len(s)
print set([1])
for i in set([1]):
print i
s = frozenset(range(5))
print len(s)
print sorted(s)
print frozenset()
print hasattr(s, "remove")
print hasattr(s, "add")
print frozenset() | frozenset()
print set() | frozenset()
print frozenset() | set()
print set() | set()
for i in xrange(8):
print i, i in set(range(2, 5))
print i, i in frozenset(range(2, 5))
s = set(range(5))
print len(s)
s.clear()
print s
s.update((10, 15))
print sorted(s)
s.update((10, 15), range(8))
print sorted(s)
s.remove(6)
print sorted(s)
try:
s.remove(6)
except KeyError, e:
print e
def f2():
print {5}
f2()
s = set([])
s2 = s.copy()
s.add(1)
print s, s2
s1 = set([3, 5])
s2 = set([1, 5])
print sorted(s1.union(s2)), sorted(s1.intersection(s2))
print sorted(s1.union(range(5, 7))), sorted(s1.intersection(range(5, 7)))
print sorted(s2.union([], [], [], [])), sorted(s2.intersection())
s = frozenset([1, 5])
d = s.difference([1], [1], [2])
print d, len(s)
print
l = []
s = set(range(5))
while s:
l.append(s.pop())
l.sort()
print l
s = set([1])
s.discard(1)
print s
s.discard(1)
print s
s = set(range(5))
for i in xrange(10):
s2 = set(range(i))
print s.issubset(s2), s.issuperset(s2), s == s2, s != s2, s.difference(s2)
| 15.234234 | 78 | 0.608516 | 313 | 1,691 | 3.28754 | 0.162939 | 0.17104 | 0.088435 | 0.072886 | 0.206997 | 0.13897 | 0.077745 | 0.048591 | 0.048591 | 0 | 0 | 0.062229 | 0.182732 | 1,691 | 110 | 79 | 15.372727 | 0.682344 | 0 | 0 | 0.270588 | 0 | 0 | 0.005322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.505882 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
21758ae5b904cd586ad12411253dc0f4bd9495ef | 350 | py | Python | tests/data/dos.py | granrothge/multiphonon | 486a998eeb6b73b964a58ba0f98fe3ece15bdf6e | [
"MIT"
] | 1 | 2019-05-22T08:46:09.000Z | 2019-05-22T08:46:09.000Z | tests/data/dos.py | granrothge/multiphonon | 486a998eeb6b73b964a58ba0f98fe3ece15bdf6e | [
"MIT"
] | 118 | 2016-04-04T12:27:15.000Z | 2021-08-18T01:46:13.000Z | tests/data/dos.py | granrothge/multiphonon | 486a998eeb6b73b964a58ba0f98fe3ece15bdf6e | [
"MIT"
] | 5 | 2017-09-28T16:01:12.000Z | 2020-01-31T18:58:09.000Z | #!/usr/bin/env python
#
# Jiao Lin <jiao.lin@gmail.com>
import os
datadir = os.path.abspath(os.path.dirname(__file__))
def loadDOS():
f = os.path.join(datadir, 'V-dos.dat')
from multiphonon.dos import io
E, Z, error = io.fromascii(f)
from multiphonon.dos.nice import nice_dos
E,g = nice_dos(E, Z)
return E,g
# End of file
| 19.444444 | 52 | 0.66 | 60 | 350 | 3.75 | 0.566667 | 0.08 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197143 | 350 | 17 | 53 | 20.588235 | 0.800712 | 0.177143 | 0 | 0 | 0 | 0 | 0.03169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
219042565e81d8c12997684eb40b91c86b416cb5 | 701 | py | Python | ex18.py | arunkumarang/python | 1960e285dfe2ef54d2e3ab37584bfef8b24ecca9 | [
"Apache-2.0"
] | null | null | null | ex18.py | arunkumarang/python | 1960e285dfe2ef54d2e3ab37584bfef8b24ecca9 | [
"Apache-2.0"
] | null | null | null | ex18.py | arunkumarang/python | 1960e285dfe2ef54d2e3ab37584bfef8b24ecca9 | [
"Apache-2.0"
] | null | null | null | #this one is like your scripts with argv
def print_two(*args):
arg1, arg2 = args
print "arg1: %r, arg2: %r" % (arg1, arg2)
#ok, the *args is actually pointless, we can just do this
def print_two_again(arg1, arg2):
print "arg1: %r, arg2: %r" % (arg1, arg2)
#this just takes one argument
def print_one(arg1):
print "arg1: %r" % arg1
#this one takes no arguments
def print_none():
print "I got nothin'."
def print_places(*argv):
place1, place2, place3 = argv
print "place1: %r \t place2: %r \t place3: %r" %(place1, place2, place3)
print_two("Zed","Shaw")
print_two_again("Zed","Shaw")
print_one("First!")
print_none()
print_places("Bengaluru", "Chennai", "New Delhi")
| 24.172414 | 76 | 0.663338 | 111 | 701 | 4.081081 | 0.396396 | 0.0883 | 0.066225 | 0.06181 | 0.101545 | 0.101545 | 0.101545 | 0 | 0 | 0 | 0 | 0.041958 | 0.184023 | 701 | 28 | 77 | 25.035714 | 0.75 | 0.21398 | 0 | 0.117647 | 0 | 0 | 0.25777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.882353 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
21abd949743f6366711da7e003fd265439edaff6 | 1,683 | py | Python | python/ray/tests/test_list_actors.py | jianoaix/ray | 1701b923bc83905f8961c06a6a173e3eba46a936 | [
"Apache-2.0"
] | null | null | null | python/ray/tests/test_list_actors.py | jianoaix/ray | 1701b923bc83905f8961c06a6a173e3eba46a936 | [
"Apache-2.0"
] | null | null | null | python/ray/tests/test_list_actors.py | jianoaix/ray | 1701b923bc83905f8961c06a6a173e3eba46a936 | [
"Apache-2.0"
] | null | null | null | import pytest
import sys
import ray
from ray._private.test_utils import wait_for_condition
def test_list_named_actors_basic(ray_start_regular):
@ray.remote
class A:
pass
a = A.remote()
assert not ray.util.list_named_actors()
a = A.options(name="hi").remote()
assert len(ray.util.list_named_actors()) == 1
assert "hi" in ray.util.list_named_actors()
b = A.options(name="hi2").remote()
assert len(ray.util.list_named_actors()) == 2
assert "hi" in ray.util.list_named_actors()
assert "hi2" in ray.util.list_named_actors()
def one_actor():
actors = ray.util.list_named_actors()
return actors == ["hi2"]
del a
wait_for_condition(one_actor)
del b
wait_for_condition(lambda: not ray.util.list_named_actors())
@pytest.mark.parametrize("ray_start_regular", [{"local_mode": True}], indirect=True)
def test_list_named_actors_basic_local_mode(ray_start_regular):
@ray.remote
class A:
pass
a = A.remote()
assert not ray.util.list_named_actors()
a = A.options(name="hi").remote() # noqa: F841
assert len(ray.util.list_named_actors()) == 1
assert "hi" in ray.util.list_named_actors()
b = A.options(name="hi2").remote() # noqa: F841
assert len(ray.util.list_named_actors()) == 2
assert "hi" in ray.util.list_named_actors()
assert "hi2" in ray.util.list_named_actors()
if __name__ == "__main__":
import os
# Test suite is timing out. Disable on windows for now.
if os.environ.get("PARALLEL_CI"):
sys.exit(pytest.main(["-n", "auto", "--boxed", "-vs", __file__]))
else:
sys.exit(pytest.main(["-sv", __file__]))
| 26.714286 | 84 | 0.66429 | 252 | 1,683 | 4.150794 | 0.277778 | 0.137667 | 0.229446 | 0.214149 | 0.641491 | 0.620459 | 0.544933 | 0.544933 | 0.544933 | 0.544933 | 0 | 0.011095 | 0.196673 | 1,683 | 62 | 85 | 27.145161 | 0.762574 | 0.044563 | 0 | 0.545455 | 0 | 0 | 0.057357 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.068182 | false | 0.045455 | 0.113636 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
21ae2a24ae236e3d5b5a92a327d356b5c7ba6074 | 90 | py | Python | aiida_crystal_dft/__init__.py | tilde-lab/aiida-crystal-dft | 971fd13a3f414d6e80cc654dc92a8758f6e0365c | [
"MIT"
] | 2 | 2019-02-05T16:49:08.000Z | 2020-01-29T12:27:14.000Z | aiida_crystal_dft/__init__.py | tilde-lab/aiida-crystal-dft | 971fd13a3f414d6e80cc654dc92a8758f6e0365c | [
"MIT"
] | 36 | 2020-03-09T19:35:10.000Z | 2021-12-07T22:13:31.000Z | aiida_crystal_dft/__init__.py | tilde-lab/aiida-crystal-dft | 971fd13a3f414d6e80cc654dc92a8758f6e0365c | [
"MIT"
] | 1 | 2019-11-13T23:12:10.000Z | 2019-11-13T23:12:10.000Z | """
aiida_crystal_dft
AiiDA plugin for running the CRYSTAL code
"""
__version__ = "0.8"
| 11.25 | 41 | 0.722222 | 13 | 90 | 4.538462 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.166667 | 90 | 7 | 42 | 12.857143 | 0.76 | 0.666667 | 0 | 0 | 0 | 0 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
21b1eb4686bf40669ec47b042269eff5341c4c0e | 377 | py | Python | tkinterLearning/graphinKivyExample.py | MertEfeSevim/ECar-ABUTeam | 4a37cbddff1609a1e1e8bd55fe6077b384471024 | [
"Apache-2.0"
] | null | null | null | tkinterLearning/graphinKivyExample.py | MertEfeSevim/ECar-ABUTeam | 4a37cbddff1609a1e1e8bd55fe6077b384471024 | [
"Apache-2.0"
] | null | null | null | tkinterLearning/graphinKivyExample.py | MertEfeSevim/ECar-ABUTeam | 4a37cbddff1609a1e1e8bd55fe6077b384471024 | [
"Apache-2.0"
] | null | null | null | from kivy.garden.matplotlib.backend_kivyagg import FigureCanvasKivyAgg
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
import matplotlib.pyplot as plt
plt.plot([1, 23, 2, 4])
plt.ylabel('some numbers')
class MyApp(App):
def build(self):
box = BoxLayout()
box.add_widget(FigureCanvasKivyAgg(plt.gcf()))
return box
MyApp().run()
| 22.176471 | 70 | 0.71618 | 52 | 377 | 5.153846 | 0.634615 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016026 | 0.172414 | 377 | 16 | 71 | 23.5625 | 0.842949 | 0 | 0 | 0 | 0 | 0 | 0.03183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
21b3aa32ee34e39e88f108b17ea530a57eb6e324 | 1,912 | py | Python | pandas_market_calendars/exchange_calendars_mirror.py | matbox/pandas_market_calendars | 942ad6de5f3e2700a4f8b2c2d44ccb65fa9fdab5 | [
"MIT"
] | null | null | null | pandas_market_calendars/exchange_calendars_mirror.py | matbox/pandas_market_calendars | 942ad6de5f3e2700a4f8b2c2d44ccb65fa9fdab5 | [
"MIT"
] | null | null | null | pandas_market_calendars/exchange_calendars_mirror.py | matbox/pandas_market_calendars | 942ad6de5f3e2700a4f8b2c2d44ccb65fa9fdab5 | [
"MIT"
] | null | null | null | """
Imported calendars from the exchange_calendars project
GitHub: https://github.com/gerrymanoim/exchange_calendars
"""
from datetime import time
from .market_calendar import MarketCalendar
import exchange_calendars
class TradingCalendar(MarketCalendar):
def __init__(self, open_time=None, close_time=None):
self._tc = self._tc_class() # noqa: _tc.class is defined in the class generator below
super().__init__(open_time, close_time)
@property
def name(self):
return self._tc.name
@property
def tz(self):
return self._tc.tz
@property
def open_time_default(self):
return self._tc.open_times[0][1].replace(tzinfo=self.tz)
@property
def close_time_default(self):
return self._tc.close_times[0][1].replace(tzinfo=self.tz)
@property
def break_start(self):
tc_time = self._tc.break_start_times
return tc_time[0][1] if tc_time else None
@property
def break_end(self):
tc_time = self._tc.break_end_times
return tc_time[0][1] if tc_time else None
@property
def regular_holidays(self):
return self._tc.regular_holidays
@property
def adhoc_holidays(self):
return self._tc.adhoc_holidays
@property
def special_opens(self):
return self._tc.special_opens
@property
def special_opens_adhoc(self):
return self._tc.special_opens_adhoc
@property
def special_closes(self):
return self._tc.special_closes
@property
def special_closes_adhoc(self):
return self._tc.special_closes_adhoc
calendars = exchange_calendars.calendar_utils._default_calendar_factories # noqa
for exchange in calendars:
locals()[exchange + 'ExchangeCalendar'] = type(exchange, (TradingCalendar, ),
{'_tc_class': calendars[exchange], 'alias': [exchange]})
| 26.191781 | 107 | 0.680962 | 242 | 1,912 | 5.078512 | 0.247934 | 0.078112 | 0.113914 | 0.130187 | 0.353133 | 0.314076 | 0.135069 | 0.135069 | 0.135069 | 0.074858 | 0 | 0.005431 | 0.229603 | 1,912 | 72 | 108 | 26.555556 | 0.828921 | 0.091527 | 0 | 0.285714 | 0 | 0 | 0.017361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.265306 | false | 0 | 0.061224 | 0.204082 | 0.591837 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
21bdf99390c3df665d25199aea9fff225ef4b831 | 1,004 | py | Python | tests/pyrem_tests.py | sgdxbc/PyREM | e162efd5f95d1d335fb96d77cbe047def02c340e | [
"MIT"
] | 5 | 2016-01-20T22:34:41.000Z | 2020-12-19T15:24:33.000Z | tests/pyrem_tests.py | sgdxbc/PyREM | e162efd5f95d1d335fb96d77cbe047def02c340e | [
"MIT"
] | 12 | 2015-11-11T23:03:03.000Z | 2021-09-28T17:09:53.000Z | tests/pyrem_tests.py | sgdxbc/PyREM | e162efd5f95d1d335fb96d77cbe047def02c340e | [
"MIT"
] | 4 | 2015-12-10T05:14:30.000Z | 2021-08-14T02:48:05.000Z | from pyrem.task import Task, TaskStatus
class DummyTask(Task):
def _start(self):
pass
def _wait(self):
pass
def _stop(self):
pass
class TestDummyTask(object):
@classmethod
def setup_class(klass):
"""This method is run once for each class before any tests are run"""
pass
@classmethod
def teardown_class(klass):
"""This method is run once for each class _after_ all tests are run"""
pass
def setup(self):
self.task = DummyTask()
def teardown(self):
"""This method is run once after _each_ test method is executed"""
pass
def test_status(self):
assert self.task._status == TaskStatus.IDLE
self.task.start()
assert self.task._status == TaskStatus.STARTED
self.task.wait()
assert self.task._status == TaskStatus.STOPPED
def test_status2(self):
self.task.start(wait=True)
assert self.task._status == TaskStatus.STOPPED
| 23.904762 | 78 | 0.625498 | 126 | 1,004 | 4.865079 | 0.325397 | 0.104405 | 0.091354 | 0.130506 | 0.383361 | 0.254486 | 0.133768 | 0.133768 | 0.133768 | 0.133768 | 0 | 0.001389 | 0.282869 | 1,004 | 41 | 79 | 24.487805 | 0.85 | 0.188247 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.321429 | false | 0.214286 | 0.035714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
21c9e3f18e9ff9713871cd9e59f532296cc7c00f | 8,500 | py | Python | python/sparktk/models/classification/naive_bayes.py | aayushidwivedi01/spark-tk-old | fcf25f86498ac416cce77de0db4cf0aa503d20ac | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2017-05-17T07:09:59.000Z | 2017-05-17T07:09:59.000Z | python/sparktk/models/classification/naive_bayes.py | aayushidwivedi01/spark-tk-old | fcf25f86498ac416cce77de0db4cf0aa503d20ac | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | python/sparktk/models/classification/naive_bayes.py | aayushidwivedi01/spark-tk-old | fcf25f86498ac416cce77de0db4cf0aa503d20ac | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # vim: set encoding=utf-8
# Copyright (c) 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from sparktk.loggers import log_load; log_load(__name__); del log_load
from sparktk.propobj import PropertiesObject
from sparktk.frame.ops.classification_metrics_value import ClassificationMetricsValue
from sparktk import TkContext
__all__ = ["train", "load", "NaiveBayesModel"]
def train(frame, label_column, observation_columns, lambda_parameter = 1.0):
"""
Creates a Naive Bayes by training on the given frame
:param frame: (Frame) frame of training data
:param label_column: (str) Column containing the label for each observation
:param observation_columns: (List[str]) Column(s) containing the observations
:param lambda_parameter: (float) Additive smoothing parameter Default is 1.0
:return: (NaiveBayesModel) Trained Naive Bayes model
"""
if frame is None:
raise ValueError("frame cannot be None")
tc = frame._tc
_scala_obj = get_scala_obj(tc)
scala_model = _scala_obj.train(frame._scala,
label_column,
tc.jutils.convert.to_scala_list_string(observation_columns),
lambda_parameter)
return NaiveBayesModel(tc, scala_model)
def load(path, tc=TkContext.implicit):
"""load NaiveBayesModel from given path"""
TkContext.validate(tc)
return tc.load(path, NaiveBayesModel)
def get_scala_obj(tc):
"""Gets reference to the scala object"""
return tc.sc._jvm.org.trustedanalytics.sparktk.models.classification.naive_bayes.NaiveBayesModel
class NaiveBayesModel(PropertiesObject):
"""
A trained Naive Bayes model
Example
-------
>>> frame = tc.frame.create([[1,19.8446136104,2.2985856384],
... [1,16.8973559126,2.6933495054],
... [1,5.5548729596, 2.7777687995],
... [0,46.1810010826,3.1611961917],
... [0,44.3117586448,3.3458963222],
... [0,34.6334526911,3.6429838715]],
... [('Class', int), ('Dim_1', float), ('Dim_2', float)])
>>> model = tc.models.classification.naive_bayes.train(frame, 'Class', ['Dim_1', 'Dim_2'], 0.9)
>>> model.label_column
u'Class'
>>> model.observation_columns
[u'Dim_1', u'Dim_2']
>>> model.lambda_parameter
0.9
>>> predicted_frame = model.predict(frame, ['Dim_1', 'Dim_2'])
>>> predicted_frame.inspect()
[#] Class Dim_1 Dim_2 predicted_class
========================================================
[0] 1 19.8446136104 2.2985856384 0.0
[1] 1 16.8973559126 2.6933495054 1.0
[2] 1 5.5548729596 2.7777687995 1.0
[3] 0 46.1810010826 3.1611961917 0.0
[4] 0 44.3117586448 3.3458963222 0.0
[5] 0 34.6334526911 3.6429838715 0.0
>>> model.save("sandbox/naivebayes")
>>> restored = tc.load("sandbox/naivebayes")
>>> restored.label_column == model.label_column
True
>>> restored.lambda_parameter == model.lambda_parameter
True
>>> set(restored.observation_columns) == set(model.observation_columns)
True
>>> metrics = model.test(frame)
>>> metrics.precision
1.0
>>> predicted_frame2 = restored.predict(frame, ['Dim_1', 'Dim_2'])
>>> predicted_frame2.inspect()
[#] Class Dim_1 Dim_2 predicted_class
========================================================
[0] 1 19.8446136104 2.2985856384 0.0
[1] 1 16.8973559126 2.6933495054 1.0
[2] 1 5.5548729596 2.7777687995 1.0
[3] 0 46.1810010826 3.1611961917 0.0
[4] 0 44.3117586448 3.3458963222 0.0
[5] 0 34.6334526911 3.6429838715 0.0
>>> canonical_path = model.export_to_mar("sandbox/naivebayes.mar")
<hide>
>>> import os
>>> os.path.exists(canonical_path)
True
</hide>
"""
def __init__(self, tc, scala_model):
self._tc = tc
tc.jutils.validate_is_jvm_instance_of(scala_model, get_scala_obj(tc))
self._scala = scala_model
@staticmethod
def _from_scala(tc, scala_model):
return NaiveBayesModel(tc, scala_model)
@property
def label_column(self):
return self._scala.labelColumn()
@property
def observation_columns(self):
return self._tc.jutils.convert.from_scala_seq(self._scala.observationColumns())
@property
def lambda_parameter(self):
return self._scala.lambdaParameter()
def predict(self, future_periods = 0, ts = None):
"""
Forecasts future periods using ARIMA.
Provided fitted values of the time series as 1-step ahead forecasts, based on current model parameters, then
provide future periods of forecast. We assume AR terms prior to the start of the series are equal to the
model's intercept term (or 0.0, if fit without an intercept term). Meanwhile, MA terms prior to the start
are assumed to be 0.0. If there is differencing, the first d terms come from the original series.
:param future_periods: (int) Periods in the future to forecast (beyond length of time series that the
model was trained with).
:param ts: (Optional(List[float])) Optional list of time series values to use as golden values. If no time
series values are provided, the values used during training will be used during forecasting.
"""
if not isinstance(future_periods, int):
raise TypeError("'future_periods' parameter must be an integer.")
if ts is not None:
if not isinstance(ts, list):
raise TypeError("'ts' parameter must be a list of float values." )
ts_predict_values = self._tc.jutils.convert.to_scala_option_list_double(ts)
return list(self._tc.jutils.convert.from_scala_seq(self._scala.predict(future_periods, ts_predict_values)))
def predict(self, frame, columns=None):
"""
Predicts the labels for the observation columns in the given input frame. Creates a new frame
with the existing columns and a new predicted column.
Parameters
----------
:param frame: (Frame) Frame used for predicting the values
:param c: (List[str]) Names of the observation columns.
:return: (Frame) A new frame containing the original frame's columns and a prediction column
"""
c = self.__columns_to_option(columns)
from sparktk.frame.frame import Frame
return Frame(self._tc, self._scala.predict(frame._scala, c))
def test(self, frame, columns=None):
c = self.__columns_to_option(columns)
return ClassificationMetricsValue(self._tc, self._scala.test(frame._scala, c))
def __columns_to_option(self, c):
if c is not None:
c = self._tc.jutils.convert.to_scala_list_string(c)
return self._tc.jutils.convert.to_scala_option(c)
def save(self, path):
self._scala.save(self._tc._scala_sc, path)
def export_to_mar(self, path):
"""
Exports the trained model as a model archive (.mar) to the specified path
Parameters
----------
:param path: (str) Path to save the trained model
:return: (str) Full path to the saved .mar file
"""
if isinstance(path, basestring):
return self._scala.exportToMar(self._tc._scala_sc, path)
del PropertiesObject
| 36.170213 | 116 | 0.609529 | 1,046 | 8,500 | 4.805927 | 0.25239 | 0.013129 | 0.017903 | 0.007957 | 0.203302 | 0.156754 | 0.130495 | 0.093495 | 0.093495 | 0.077581 | 0 | 0.083073 | 0.283412 | 8,500 | 234 | 117 | 36.324786 | 0.742243 | 0.579765 | 0 | 0.112903 | 0 | 0 | 0.044314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.080645 | 0.064516 | 0.516129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
21cb6726d5d75e89f98527599cbd57bd6acc970a | 75 | py | Python | custom_model_runner/datarobot_drum/drum/description.py | cartertroy/datarobot-user-models | d2c2b47e0d46a0ce8d07f1baa8d57155a829d2fc | [
"Apache-2.0"
] | null | null | null | custom_model_runner/datarobot_drum/drum/description.py | cartertroy/datarobot-user-models | d2c2b47e0d46a0ce8d07f1baa8d57155a829d2fc | [
"Apache-2.0"
] | null | null | null | custom_model_runner/datarobot_drum/drum/description.py | cartertroy/datarobot-user-models | d2c2b47e0d46a0ce8d07f1baa8d57155a829d2fc | [
"Apache-2.0"
] | null | null | null | version = "1.1.5rc1"
__version__ = version
project_name = "datarobot-drum"
| 18.75 | 31 | 0.746667 | 10 | 75 | 5.1 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0.12 | 75 | 3 | 32 | 25 | 0.712121 | 0 | 0 | 0 | 0 | 0 | 0.293333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
21e723f45f87fc926e72e1075bacd22832327764 | 715 | py | Python | scripts/convert_0.0_to_0.1.py | codecraftingtools/hildegard | cc658ab4972dfaf67e995c797d0493a5d82a611f | [
"MIT"
] | null | null | null | scripts/convert_0.0_to_0.1.py | codecraftingtools/hildegard | cc658ab4972dfaf67e995c797d0493a5d82a611f | [
"MIT"
] | null | null | null | scripts/convert_0.0_to_0.1.py | codecraftingtools/hildegard | cc658ab4972dfaf67e995c797d0493a5d82a611f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) 2020 Jeffrey A. Webb
import sys
f = open(sys.argv[1])
for line in f:
s = line.strip()
if s.startswith("source:"):
id = s.split(":")[-1].strip()
indent = ' '*line.index("source")
sys.stdout.write(f"{indent}source:\n")
sys.stdout.write(f"{indent} - Endpoint:\n")
sys.stdout.write(f"{indent} connector: {id}\n")
elif s.startswith("sink:"):
id = s.split(":")[-1].strip()
indent = ' '*line.index("sink")
sys.stdout.write(f"{indent}sink:\n")
sys.stdout.write(f"{indent} - Endpoint:\n")
sys.stdout.write(f"{indent} connector: {id}\n")
else:
sys.stdout.write(line)
| 29.791667 | 60 | 0.548252 | 99 | 715 | 3.959596 | 0.363636 | 0.160714 | 0.25 | 0.229592 | 0.581633 | 0.47449 | 0.47449 | 0.47449 | 0.326531 | 0.326531 | 0 | 0.014787 | 0.243357 | 715 | 23 | 61 | 31.086957 | 0.709797 | 0.078322 | 0 | 0.333333 | 0 | 0 | 0.252664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
21f35dbbfba3587292969ac6f42df8409ca16d0e | 223 | py | Python | data/python/pattern_10/code.py | MKAbuMattar/grammind-api | ccf6e9898f50f9e4c7671abecf65029198e2dc72 | [
"MIT"
] | 3 | 2021-12-29T13:03:27.000Z | 2021-12-31T20:27:17.000Z | data/python/pattern_10/code.py | MKAbuMattar/grammind-api | ccf6e9898f50f9e4c7671abecf65029198e2dc72 | [
"MIT"
] | 2 | 2022-01-15T13:08:13.000Z | 2022-01-18T19:41:07.000Z | data/python/pattern_10/code.py | MKAbuMattar/grammind-api | ccf6e9898f50f9e4c7671abecf65029198e2dc72 | [
"MIT"
] | null | null | null | #MAIN PROGRAM STARTS HERE:
num = int(input('Enter the number of rows and columns for the square: '))
for x in range(1, num + 1):
for y in range(1, num - 2 + 1):
print ('{} {} '.format(x, y), end='')
print() | 31.857143 | 73 | 0.573991 | 38 | 223 | 3.368421 | 0.657895 | 0.109375 | 0.125 | 0.171875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02994 | 0.251121 | 223 | 7 | 74 | 31.857143 | 0.736527 | 0.112108 | 0 | 0 | 0 | 0 | 0.29798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
21f45310f90a55cefdff3888526c635be854305a | 373 | py | Python | test/py/RunClientServer.py | KirinDave/powerset_thrift | 283603cce87e6da4117af1d3c91570e7466846c2 | [
"BSL-1.0"
] | 1 | 2016-05-08T06:27:22.000Z | 2016-05-08T06:27:22.000Z | test/py/RunClientServer.py | wmorgan/thrift | d9ba3d7a3e25f0f88766c344b2e937422858320b | [
"BSL-1.0"
] | null | null | null | test/py/RunClientServer.py | wmorgan/thrift | d9ba3d7a3e25f0f88766c344b2e937422858320b | [
"BSL-1.0"
] | 1 | 2021-02-09T10:25:34.000Z | 2021-02-09T10:25:34.000Z | #!/usr/bin/env python
import subprocess
import sys
import os
import signal
serverproc = subprocess.Popen([sys.executable, "TestServer.py"])
try:
ret = subprocess.call([sys.executable, "TestClient.py"])
if ret != 0:
raise Exception("subprocess failed")
finally:
# fixme: should check that server didn't die
os.kill(serverproc.pid, signal.SIGKILL)
| 21.941176 | 64 | 0.707775 | 49 | 373 | 5.387755 | 0.714286 | 0.098485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003236 | 0.171582 | 373 | 16 | 65 | 23.3125 | 0.851133 | 0.168901 | 0 | 0 | 0 | 0 | 0.13961 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
21fdcfcb45fd6e4c2b13357b9059ca59108a10c0 | 968 | py | Python | recipes/happly/all/conanfile.py | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 562 | 2019-09-04T12:23:43.000Z | 2022-03-29T16:41:43.000Z | recipes/happly/all/conanfile.py | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 9,799 | 2019-09-04T12:02:11.000Z | 2022-03-31T23:55:45.000Z | recipes/happly/all/conanfile.py | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 1,126 | 2019-09-04T11:57:46.000Z | 2022-03-31T16:43:38.000Z | from conans import ConanFile, tools
class HapplyConan(ConanFile):
name = "happly"
url = "https://github.com/conan-io/conan-center-index"
homepage = "https://github.com/nmwsharp/happly"
topics = ("conan", "happly", "ply", "3D")
license = "MIT"
description = "A C++ header-only parser for the PLY file format. Parse .ply happily!"
settings = "compiler"
no_copy_source = True
@property
def _source_subfolder(self):
return "source_subfolder"
def validate(self):
if self.settings.compiler.cppstd:
tools.check_min_cppstd(self, 11)
def source(self):
tools.get(**self.conan_data["sources"][self.version], destination=self._source_subfolder, strip_root=True)
def package(self):
self.copy("LICENSE", src=self._source_subfolder, dst="licenses")
self.copy("happly.h", src=self._source_subfolder, dst="include")
def package_id(self):
self.info.header_only()
| 31.225806 | 114 | 0.663223 | 122 | 968 | 5.122951 | 0.557377 | 0.12 | 0.0912 | 0.0704 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003881 | 0.201446 | 968 | 30 | 115 | 32.266667 | 0.804657 | 0 | 0 | 0 | 0 | 0 | 0.242769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.043478 | 0.043478 | 0.695652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1d0414064a76791a07370cb0449ad44c12e6bd53 | 556 | py | Python | src/148.py | cloudzfy/euler | b82efad753ee98375fd40ec4e3989be57828e82c | [
"MIT"
] | 12 | 2016-10-19T09:03:20.000Z | 2021-01-10T10:53:23.000Z | src/148.py | cloudzfy/euler | b82efad753ee98375fd40ec4e3989be57828e82c | [
"MIT"
] | null | null | null | src/148.py | cloudzfy/euler | b82efad753ee98375fd40ec4e3989be57828e82c | [
"MIT"
] | 6 | 2018-09-12T03:13:58.000Z | 2021-07-07T00:29:43.000Z | # We can easily verify that none of the entries in the first seven
# rows of Pascal's triangle are divisible by 7:
# 1
# 1 1
# 1 2 1
# 1 3 3 1
# 1 4 6 4 1
# 1 5 10 10 5 1
# 1 6 15 20 15 6 1
# However, if we check the first one hundred rows, we will find
# that only 2361 of the 5050 entries are not divisible by 7.
# Find the number of entries which are not divisible by 7 in the
# first one billion (10^9) rows of Pascal's triangle. | 34.75 | 66 | 0.546763 | 97 | 556 | 3.134021 | 0.453608 | 0.046053 | 0.118421 | 0.085526 | 0.256579 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143731 | 0.411871 | 556 | 16 | 67 | 34.75 | 0.785933 | 0.947842 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
df0aff4197ef0ad00e311fbd3784ea4b9b5eea37 | 2,142 | py | Python | snuba/utils/types.py | fpacifici/snuba | cf732b71383c948f9387fbe64e9404ca71f8e9c5 | [
"Apache-2.0"
] | null | null | null | snuba/utils/types.py | fpacifici/snuba | cf732b71383c948f9387fbe64e9404ca71f8e9c5 | [
"Apache-2.0"
] | null | null | null | snuba/utils/types.py | fpacifici/snuba | cf732b71383c948f9387fbe64e9404ca71f8e9c5 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from typing import Any, Generic, TypeVar
from typing_extensions import Protocol
TComparable = TypeVar("TComparable", contravariant=True)
class Comparable(Protocol[TComparable]):
"""
Defines the protocol for comparable objects. Objects that satisfy this
protocol are assumed to have an ordering via the "rich comparison"
methods defined here.
"An ordering" does not necessarily imply a *total* ordering, or even that
the ordering itself is deterministic. The Python documentation provides a
more detailed explanation about the guarantees (or lack thereof) provided
by these methods: https://docs.python.org/3/reference/datamodel.html#object.__lt__
This class exists primarily to satisfy the type checker when dealing with
generics that will be directly compared, and secondarily to provide
documentation via type annotations.
In reality, this class provides little to no practical benefit, since all
of these methods defined in the protocol are part of the ``object`` class
definition (which is shared by all classes by default) but returns
``NotImplemented`` rather than returning a valid result. (This protocol
is not defined as runtime checkable for that reason.)
"""
def __lt__(self, other: TComparable) -> bool:
raise NotImplementedError
def __le__(self, other: TComparable) -> bool:
raise NotImplementedError
def __gt__(self, other: TComparable) -> bool:
raise NotImplementedError
def __ge__(self, other: TComparable) -> bool:
raise NotImplementedError
def __eq__(self, other: object) -> bool:
raise NotImplementedError
def __ne__(self, other: object) -> bool:
raise NotImplementedError
T = TypeVar("T", bound=Comparable[Any])
@dataclass(frozen=True)
class InvalidRangeError(ValueError, Generic[T]):
lower: T
upper: T
@dataclass(frozen=True)
class Interval(Generic[T]):
lower: T
upper: T
def __post_init__(self) -> None:
if not self.upper >= self.lower:
raise InvalidRangeError(self.lower, self.upper)
| 31.5 | 86 | 0.723156 | 267 | 2,142 | 5.674157 | 0.498127 | 0.035644 | 0.110891 | 0.10231 | 0.217822 | 0.217822 | 0.134653 | 0 | 0 | 0 | 0 | 0.000588 | 0.206349 | 2,142 | 67 | 87 | 31.970149 | 0.890588 | 0.460317 | 0 | 0.413793 | 0 | 0 | 0.01107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.103448 | 0 | 0.586207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
df0edbdfa3781bf2e4a9e3ef7d2addd8064bef5a | 830 | py | Python | scripts/pyqtgraph-develop/pyqtgraph/pixmaps/__init__.py | kuldeepaman/tf-pose | 8050912c52a7b4f3c8a2656f267d47ba21d093f6 | [
"Apache-2.0"
] | null | null | null | scripts/pyqtgraph-develop/pyqtgraph/pixmaps/__init__.py | kuldeepaman/tf-pose | 8050912c52a7b4f3c8a2656f267d47ba21d093f6 | [
"Apache-2.0"
] | null | null | null | scripts/pyqtgraph-develop/pyqtgraph/pixmaps/__init__.py | kuldeepaman/tf-pose | 8050912c52a7b4f3c8a2656f267d47ba21d093f6 | [
"Apache-2.0"
] | null | null | null | """
Allows easy loading of pixmaps used in UI elements.
Provides support for frozen environments as well.
"""
import os, sys, pickle
from ..functions import makeQImage
from ..Qt import QtGui
from ..python2_3 import basestring
if sys.version_info[0] == 2:
from . import pixmapData_2 as pixmapData
else:
from . import pixmapData_3 as pixmapData
def getPixmap(name):
"""
Return a QPixmap corresponding to the image file with the given name.
(eg. getPixmap('auto') loads pyqtgraph/pixmaps/auto.png)
"""
key = name+'.png'
data = pixmapData.pixmapData[key]
if isinstance(data, basestring) or isinstance(data, bytes):
pixmapData.pixmapData[key] = pickle.loads(data)
arr = pixmapData.pixmapData[key]
return QtGui.QPixmap(makeQImage(arr, alpha=True))
| 29.642857 | 74 | 0.687952 | 107 | 830 | 5.299065 | 0.570093 | 0.10582 | 0.121693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009231 | 0.216867 | 830 | 27 | 75 | 30.740741 | 0.863077 | 0.275904 | 0 | 0 | 0 | 0 | 0.007313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
df193d81eacd388f5ab18d96aacd2c5b1b7b5976 | 548 | py | Python | sarikasama/0012/0012.py | saurabh896/python-1 | f8d3aedf4c0fe6e24dfa3269ea7e642c9f7dd9b7 | [
"MIT"
] | 3,976 | 2015-01-01T15:49:39.000Z | 2022-03-31T03:47:56.000Z | sarikasama/0012/0012.py | oyesam7/python-1 | 220734af09fa09a6f615d4f1b4612a0ab75d91d1 | [
"MIT"
] | 97 | 2015-01-11T02:59:46.000Z | 2022-03-16T14:01:56.000Z | sarikasama/0012/0012.py | oyesam7/python-1 | 220734af09fa09a6f615d4f1b4612a0ab75d91d1 | [
"MIT"
] | 3,533 | 2015-01-01T06:19:30.000Z | 2022-03-28T13:14:54.000Z | #!/usr/bin/env python3
#filter sensitive words in user's input
def replace_sensitive_words(input_word):
s_words = []
with open('filtered_words','r') as f:
line = f.readline()
while line != '':
s_words.append(line.strip())
line = f.readline()
for word in s_words:
if word in input_word:
input_word = input_word.replace(word, "**")
print(input_word)
if __name__ == '__main__':
while True:
input_word = input('--> ')
replace_sensitive_words(input_word)
| 27.4 | 55 | 0.600365 | 71 | 548 | 4.309859 | 0.43662 | 0.205882 | 0.137255 | 0.169935 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002513 | 0.273723 | 548 | 19 | 56 | 28.842105 | 0.766332 | 0.107664 | 0 | 0.133333 | 0 | 0 | 0.059548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.066667 | 0.066667 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
df1b5b5a58e2e52b261ca94c9d20882cbf00caf2 | 1,172 | py | Python | moceansdk/modules/command/mc_object/tg_request_contact.py | d3no/mocean-sdk-python | cbc215a0eb8aa26c04afb940eab6482f23150c75 | [
"MIT"
] | 2 | 2019-10-31T02:37:43.000Z | 2021-07-25T02:45:27.000Z | moceansdk/modules/command/mc_object/tg_request_contact.py | d3no/mocean-sdk-python | cbc215a0eb8aa26c04afb940eab6482f23150c75 | [
"MIT"
] | 18 | 2019-05-30T01:09:34.000Z | 2022-01-04T07:31:47.000Z | moceansdk/modules/command/mc_object/tg_request_contact.py | d3no/mocean-sdk-python | cbc215a0eb8aa26c04afb940eab6482f23150c75 | [
"MIT"
] | 4 | 2019-04-19T08:34:47.000Z | 2021-07-21T02:02:07.000Z | from builtins import super
from moceansdk.modules.command.mc_object import AbstractMc
class TgRequestContact(AbstractMc):
def __init__(self, param=None):
super().__init__(param)
self.set_button_text('Share button')
def action(self):
return 'send-telegram'
def required_key(self):
return ('to', 'from')
def set_to(self, _to, _contact_type='chat_id'):
self._params['to'] = {}
self._params['to']['type'] = _contact_type
self._params['to']['id'] = _to
return self
def set_from(self, _from, _contact_type='bot_username'):
self._params['from'] = {}
self._params['from']['type'] = _contact_type
self._params['from']['id'] = _from
return self
def set_content(self, _text):
self._params['content'] = {}
self._params['content']['type'] = 'text'
self._params['content']['text'] = _text
return self
def set_button_text(self, _text):
self._params['tg_keyboard'] = {}
self._params['tg_keyboard']['button_request'] = 'contact'
self._params['tg_keyboard']['button_text'] = _text
return self
| 29.3 | 65 | 0.610068 | 138 | 1,172 | 4.804348 | 0.282609 | 0.180995 | 0.054299 | 0.072398 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238908 | 1,172 | 39 | 66 | 30.051282 | 0.743274 | 0 | 0 | 0.133333 | 0 | 0 | 0.151877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.066667 | 0.066667 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
df1f060044c4759d5a15d50dfadd88be86823530 | 688 | py | Python | pyoat/__init__.py | berkanlafci/pyoat | b0cee99adde3c14c5d94f26f6e893a0b2e1fcae2 | [
"MIT"
] | 5 | 2022-03-07T16:30:58.000Z | 2022-03-28T13:42:01.000Z | pyoat/__init__.py | berkanlafci/pyoat | b0cee99adde3c14c5d94f26f6e893a0b2e1fcae2 | [
"MIT"
] | 1 | 2022-03-28T13:41:42.000Z | 2022-03-28T13:41:42.000Z | pyoat/__init__.py | berkanlafci/pyoat | b0cee99adde3c14c5d94f26f6e893a0b2e1fcae2 | [
"MIT"
] | null | null | null | #-----
# Description : Import classes/functions from subfolders
# Date : February 2021
# Author : Berkan Lafci
# E-mail : lafciberkan@gmail.com
#-----
# package version
__version__ = "1.0.0"
# oa recon codes
from pyoat.reconstruction import cpuBP, cpuMB, modelOA
# data readers
from pyoat.readers import oaReader
# preprocessing tools
from pyoat.preprocessing import sigMatFilter
from pyoat.preprocessing import sigMatNormalize
# simulation
from pyoat.simulation import forward
# utils
from pyoat.utils import saveImagePng, saveImageMat, saveSignalPng, saveSignalMat, saveImageH5
from pyoat.utils import calculateDelay
from pyoat.utils import averageSignals | 25.481481 | 93 | 0.767442 | 78 | 688 | 6.717949 | 0.589744 | 0.137405 | 0.080153 | 0.114504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013865 | 0.161337 | 688 | 27 | 94 | 25.481481 | 0.894281 | 0.356105 | 0 | 0 | 0 | 0 | 0.011574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.888889 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
df2344b9d30d0dc68153136f3c88de8e8dd0db2a | 370 | py | Python | Dataset/Leetcode/valid/35/31.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/35/31.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/35/31.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, nums: List[int], target: int) -> int:
l, r = 0, len(nums)-1
# 找到第一个大于或等于target的位置
while l<r:
m = (l+r) // 2
if nums[m] >= target:
r = m
else:
l = m + 1
if nums[r] >= target:
return r
else:
return r+1
| 20.555556 | 55 | 0.381081 | 45 | 370 | 3.133333 | 0.466667 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027174 | 0.502703 | 370 | 17 | 56 | 21.764706 | 0.73913 | 0.051351 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
df2add4292563c4782461ccc1a9f4bd18f1826e0 | 293 | py | Python | ex012.py | sml07/Meus-Estudos-Python | 8f06ec8ad170674cd0cc5cf792b5647dbb894a1c | [
"MIT"
] | null | null | null | ex012.py | sml07/Meus-Estudos-Python | 8f06ec8ad170674cd0cc5cf792b5647dbb894a1c | [
"MIT"
] | null | null | null | ex012.py | sml07/Meus-Estudos-Python | 8f06ec8ad170674cd0cc5cf792b5647dbb894a1c | [
"MIT"
] | null | null | null | #Faça um algoritimo que leia o preço de um produto e mostre o seu novo preço com 5% de desconto.
price = float(input("Digite o preço do produto: "))
sale = price - (price * 0.05)
print("O valor bruto do produto é: {:.2f}R$.".format(price))
print("Com o desconto de 5%: {:.2f}R$".format(sale)) | 48.833333 | 96 | 0.682594 | 54 | 293 | 3.703704 | 0.574074 | 0.06 | 0.09 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.163823 | 293 | 6 | 97 | 48.833333 | 0.787755 | 0.324232 | 0 | 0 | 0 | 0 | 0.474747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
df2c143e3b261adc27b58c068491f0de1cd09b82 | 514 | py | Python | tests/r/test_bcdeter.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | tests/r/test_bcdeter.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | tests/r/test_bcdeter.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import shutil
import sys
import tempfile
from observations.r.bcdeter import bcdeter
def test_bcdeter():
"""Test module bcdeter.py by downloading
bcdeter.csv and testing shape of
extracted data has 95 rows and 3 columns
"""
test_path = tempfile.mkdtemp()
x_train, metadata = bcdeter(test_path)
try:
assert x_train.shape == (95, 3)
except:
shutil.rmtree(test_path)
raise()
| 21.416667 | 43 | 0.752918 | 72 | 514 | 5.097222 | 0.569444 | 0.081744 | 0.13079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014252 | 0.180934 | 514 | 23 | 44 | 22.347826 | 0.857482 | 0.215953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.466667 | 0 | 0.533333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
df3ca98f6de6dd3416b0ed3855860078017dafec | 163,982 | py | Python | tests/examples/minlplib/arki0019.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 2 | 2021-07-03T13:19:10.000Z | 2022-02-06T10:48:13.000Z | tests/examples/minlplib/arki0019.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 1 | 2021-07-04T14:52:14.000Z | 2021-07-15T10:17:11.000Z | tests/examples/minlplib/arki0019.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | null | null | null | # NLP written by GAMS Convert at 04/21/18 13:51:02
#
# Equation counts
# Total E G L N X C B
# 3 2 0 1 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc si
# Total cont binary integer sos1 sos2 scont sint
# 511 511 0 0 0 0 0 0
# FX 0 0 0 0 0 0 0 0
#
# Nonzero counts
# Total const NL DLL
# 1022 512 510 0
#
# Reformulation has removed 1 variable and 1 equation
from pyomo.environ import *
model = m = ConcreteModel()
m.x1 = Var(within=Reals,bounds=(0,None),initialize=40)
m.x2 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x3 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x4 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x5 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x6 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x7 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x8 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x9 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x10 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x11 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x12 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x13 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x14 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x15 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x16 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x17 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x18 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x19 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x20 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x21 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x22 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x23 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x24 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x25 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x26 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x27 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x28 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x29 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x30 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x31 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x32 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x33 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x34 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x35 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x36 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x37 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x38 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x39 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x40 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x41 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x42 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x43 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x44 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x45 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x46 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x47 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x48 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x49 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x50 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x51 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x52 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x53 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x54 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x55 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x56 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x57 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x58 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x59 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x60 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x61 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x62 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x63 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x64 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x65 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x66 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x67 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x68 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x69 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x70 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x71 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x72 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x73 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x74 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x75 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x76 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x77 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x78 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x79 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x80 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x81 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x82 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x83 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x84 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x85 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x86 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x87 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x88 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x89 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x90 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x91 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x92 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x93 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x94 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x95 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x96 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x97 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x98 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x99 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x100 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x101 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x102 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x103 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x104 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x105 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x106 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x107 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x108 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x109 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x110 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x111 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x112 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x113 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x114 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x115 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x116 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x117 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x118 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x119 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x120 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x121 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x122 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x123 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x124 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x125 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x126 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x127 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x128 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x129 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x130 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x131 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x132 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x133 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x134 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x135 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x136 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x137 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x138 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x139 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x140 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x141 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x142 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x143 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x144 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x145 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x146 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x147 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x148 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x149 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x150 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x151 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x152 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x153 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x154 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x155 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x156 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x157 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x158 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x159 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x160 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x161 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x162 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x163 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x164 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x165 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x166 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x167 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x168 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x169 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x170 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x171 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x172 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x173 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x174 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x175 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x176 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x177 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x178 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x179 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x180 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x181 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x182 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x183 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x184 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x185 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x186 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x187 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x188 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x189 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x190 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x191 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x192 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x193 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x194 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x195 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x196 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x197 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x198 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x199 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x200 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x201 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x202 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x203 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x204 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x205 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x206 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x207 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x208 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x209 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x210 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x211 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x212 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x213 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x214 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x215 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x216 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x217 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x218 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x219 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x220 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x221 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x222 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x223 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x224 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x225 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x226 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x227 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x228 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x229 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x230 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x231 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x232 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x233 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x234 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x235 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x236 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x237 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x238 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x239 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x240 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x241 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x242 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x243 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x244 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x245 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x246 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x247 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x248 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x249 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x250 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x251 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x252 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x253 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x254 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x255 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x256 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x257 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x258 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x259 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x260 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x261 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x262 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x263 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x264 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x265 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x266 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x267 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x268 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x269 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x270 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x271 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x272 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x273 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x274 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x275 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x276 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x277 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x278 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x279 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x280 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x281 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x282 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x283 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x284 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x285 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x286 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x287 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x288 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x289 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x290 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x291 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x292 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x293 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x294 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x295 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x296 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x297 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x298 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x299 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x300 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x301 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x302 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x303 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x304 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x305 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x306 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x307 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x308 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x309 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x310 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x311 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x312 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x313 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x314 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x315 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x316 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x317 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x318 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x319 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x320 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x321 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x322 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x323 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x324 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x325 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x326 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x327 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x328 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x329 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x330 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x331 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x332 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x333 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x334 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x335 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x336 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x337 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x338 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x339 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x340 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x341 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x342 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x343 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x344 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x345 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x346 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x347 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x348 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x349 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x350 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x351 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x352 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x353 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x354 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x355 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x356 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x357 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x358 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x359 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x360 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x361 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x362 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x363 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x364 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x365 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x366 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x367 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x368 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x369 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x370 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x371 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x372 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x373 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x374 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x375 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x376 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x377 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x378 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x379 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x380 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x381 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x382 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x383 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x384 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x385 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x386 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x387 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x388 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x389 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x390 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x391 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x392 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x393 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x394 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x395 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x396 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x397 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x398 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x399 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x400 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x401 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x402 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x403 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x404 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x405 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x406 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x407 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x408 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x409 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x410 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x411 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x412 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x413 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x414 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x415 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x416 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x417 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x418 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x419 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x420 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x421 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x422 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x423 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x424 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x425 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x426 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x427 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x428 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x429 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x430 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x431 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x432 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x433 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x434 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x435 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x436 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x437 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x438 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x439 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x440 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x441 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x442 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x443 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x444 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x445 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x446 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x447 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x448 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x449 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x450 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x451 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x452 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x453 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x454 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x455 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x456 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x457 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x458 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x459 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x460 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x461 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x462 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x463 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x464 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x465 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x466 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x467 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x468 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x469 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x470 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x471 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x472 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x473 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x474 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x475 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x476 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x477 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x478 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x479 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x480 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x481 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x482 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x483 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x484 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x485 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x486 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x487 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x488 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x489 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x490 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x491 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x492 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x493 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x494 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x495 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x496 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x497 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x498 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x499 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x500 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x501 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x502 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x503 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x504 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x505 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x506 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x507 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x508 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x509 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.x510 = Var(within=Reals,bounds=(5E-5,None),initialize=0.05)
m.obj = Objective(expr=-1000*(5.1896555300528e-7*log(100 + 0.77*m.x2*(3115.6025 + m.x1)/(0.000697151847870123 + m.x2) -
m.x1) + 2.38853851131484e-6*log(100 + 0.77*m.x3*(3115.6025 + m.x1)/(0.00441135490801732 + m.x3)
- m.x1) + 1.75006368705556e-6*log(100 + 0.77*m.x4*(3115.6025 + m.x1)/(0.000853304974954616 +
m.x4) - m.x1) + 5.4205853966032e-7*log(116.725409814076 - 0.994631725384071*m.x1) +
1.28420497011416e-6*log(100 + 0.77*m.x5*(3115.6025 + m.x1)/(0.00111268459826716 + m.x5) - m.x1)
+ 1.13642040985436e-6*log(100 + 0.77*m.x6*(3115.6025 + m.x1)/(0.000326187439886633 + m.x6) -
m.x1) + 8.3264643528916e-7*log(100 + 0.77*m.x7*(3115.6025 + m.x1)/(0.00019264225638747 + m.x7) -
m.x1) + 2.5790096715064e-7*log(273.722164695496 - 0.944241229522862*m.x1) + 6.1099986822816e-7*
log(100 + 0.77*m.x8*(3115.6025 + m.x1)/(0.000292444426062126 + m.x8) - m.x1) + 7.2368781007106e-6
*log(100 + 0.77*m.x9*(3115.6025 + m.x1)/(0.000340072769701281 + m.x9) - m.x1) +
2.24152501608832e-6*log(122.167672752509 - 0.992884948335833*m.x1) + 5.31045518239344e-6*log(100
+ 0.77*m.x10*(3115.6025 + m.x1)/(0.000928640395934794 + m.x10) - m.x1) + 1.40112029745028e-6*
log(100 + 0.77*m.x11*(3115.6025 + m.x1)/(0.000520524158336466 + m.x11) - m.x1) +
3.31943054456628e-6*log(100 + 0.77*m.x12*(3115.6025 + m.x1)/(0.000148520174019557 + m.x12) - m.x1
) + 6.4780110964124e-7*log(100 + 0.77*m.x13*(3115.6025 + m.x1)/(0.00104750410938401 + m.x13) -
m.x1) + 9.559575451052e-8*log(369.775187215178 - 0.913411551308237*m.x1) + 7.004225000328e-8*log(
463.468636910111 - 0.883339213872723*m.x1) + 2.169464931432e-8*log(448.707925466966 -
0.88807688867018*m.x1) + 5.139736486672e-8*log(809.359927930429 - 0.772320144199901*m.x1) +
5.8738086293776e-7*log(100 + 0.77*m.x14*(3115.6025 + m.x1)/(0.000494204879879725 + m.x14) - m.x1)
+ 1.8193327718832e-7*log(147.784367425591 - 0.984662880638467*m.x1) + 4.3102285130624e-7*log(100
+ 0.77*m.x15*(3115.6025 + m.x1)/(0.000378101608644323 + m.x15) - m.x1) + 1.152774843986e-7*log(
439.112527740056 - 0.891156677483711*m.x1) + 2.7310693619852e-7*log(100 + 0.77*m.x16*(3115.6025
+ m.x1)/(7.68864972863027e-5 + m.x16) - m.x1) + 5.447264353996e-8*log(642.105475210568 -
0.826003004166749*m.x1) + 2.4063538402192e-7*log(100 + 0.77*m.x17*(3115.6025 + m.x1)/(
0.000285184441727289 + m.x17) - m.x1) + 7.453356083372e-8*log(493.516505615775 -
0.873694893486645*m.x1) + 1.7657938873836e-7*log(100 + 0.77*m.x18*(3115.6025 + m.x1)/(
0.000288214605454492 + m.x18) - m.x1) + 4.7303472465e-8*log(440.16955630314 - 0.890817408092611*
m.x1) + 1.120678412982e-7*log(295.420037315374 - 0.937276967355311*m.x1) + 2.2412317111e-8*log(
573.716341402481 - 0.847953536626549*m.x1) + 6.7932840206568e-7*log(100 + 0.77*m.x19*(3115.6025
+ m.x1)/(0.000204377628677949 + m.x19) - m.x1) + 1.60941456154132e-6*log(100 + 0.77*m.x20*(
3115.6025 + m.x1)/(6.19657352352374e-5 + m.x20) - m.x1) + 3.1708525773332e-7*log(100 + 0.77*m.x21
*(3115.6025 + m.x1)/(0.000484370227279492 + m.x21) - m.x1) + 1.7433187894212e-7*log(100 + 0.77*
m.x22*(3115.6025 + m.x1)/(2.04333582846966e-5 + m.x22) - m.x1) + 4.3774137231148e-7*log(
119.000522100771 - 0.993901493499004*m.x1) + 2.01470428953719e-6*log(103.022920309924 -
0.999029747758283*m.x1) + 1.47615824512421e-6*log(115.545995934311 - 0.99501027620362*m.x1) +
4.5722003637812e-7*log(101.873352153701 - 0.99939871913901*m.x1) + 1.08321186770806e-6*log(
111.940081528697 - 0.996167649265689*m.x1) + 9.5855732013751e-7*log(140.246799210435 -
0.987082177777674*m.x1) + 7.0232752660181e-7*log(167.363613619287 - 0.978378623839438*m.x1) +
2.1753644847374e-7*log(120.667450462708 - 0.993366467492979*m.x1) + 5.1537124044456e-7*log(
144.803854659423 - 0.985619521534142*m.x1) + 6.10422200994085e-6*log(100 + 0.77*m.x23*(3115.6025
+ m.x1)/(0.00305512052568459 + m.x23) - m.x1) + 1.89070012630112e-6*log(102.487967250958 -
0.999201449077359*m.x1) + 4.47930681656604e-6*log(100 + 0.77*m.x24*(3115.6025 + m.x1)/(
0.0083426507129411 + m.x24) - m.x1) + 1.18182857846273e-6*log(125.379696264084 -
0.991854000545935*m.x1) + 2.79990082859373e-6*log(100 + 0.77*m.x25*(3115.6025 + m.x1)/(
0.00133426452380755 + m.x25) - m.x1) + 5.4641265701959e-7*log(112.679121242756 -
0.995930443231203*m.x1) + 8.063390050507e-8*log(133.363509020125 - 0.989291474435482*m.x1) +
5.907981841698e-8*log(146.753601064768 - 0.984993720776393*m.x1) + 1.829918287962e-8*log(
144.573259758642 - 0.985693534474105*m.x1) + 4.335307594052e-8*log(207.104998133011 -
0.965623022149645*m.x1) + 4.9544888581316e-7*log(126.716260334795 - 0.991425009982886*m.x1) +
1.5345859077612e-7*log(105.414841252999 - 0.998262024358692*m.x1) + 3.6356273231584e-7*log(
134.800988433026 - 0.988830093558782*m.x1) + 9.723520939885e-8*log(143.170525043829 -
0.986143763511607*m.x1) + 2.3036250546307e-7*log(261.936397566447 - 0.948024050704014*m.x1) +
4.594703752211e-8*log(175.505916825191 - 0.975765227809006*m.x1) + 2.0297313110372e-7*log(
145.922600022893 - 0.985260443197458*m.x1) + 6.286818655627e-8*log(151.27829160512 -
0.983541452542447*m.x1) + 1.4894264850651e-7*log(145.448936430143 - 0.985412472730349*m.x1) +
3.989992559625e-8*log(143.324491011074 - 0.986094345793125*m.x1) + 9.452791299495e-8*log(
123.450262944899 - 0.992473281509788*m.x1) + 1.890452726975e-8*log(163.953187166908 -
0.979473252070215*m.x1) + 5.7300555932538e-7*log(163.598133703279 - 0.979587211878512*m.x1) +
1.35752235328037e-6*log(100 + 0.77*m.x26*(3115.6025 + m.x1)/(0.000556683176287833 + m.x26) - m.x1
) + 2.6745770515237e-7*log(127.252545117543 - 0.991252881226812*m.x1) + 1.4704690028817e-7*log(
100 + 0.77*m.x27*(3115.6025 + m.x1)/(0.000183567688642283 + m.x27) - m.x1) + 8.573813856476e-8*
log(175.098075010055 - 0.975896130841449*m.x1) + 3.9460970899603e-7*log(112.189454534394 -
0.996087609207402*m.x1) + 2.8912748067577e-7*log(161.708775393222 - 0.980193630158783*m.x1) +
8.955332375044e-8*log(107.565006489971 - 0.997571896129249*m.x1) + 2.1216310607822e-7*log(
147.609223184625 - 0.984719095845948*m.x1) + 1.8774766456787e-7*log(254.987449685228 -
0.950254421196148*m.x1) + 1.3756126014697e-7*log(351.179935246506 - 0.919379980197568*m.x1) +
4.260773904838e-8*log(181.517913158427 - 0.973835586164016*m.x1) + 1.0094309932872e-7*log(
271.59122797394 - 0.944925186067883*m.x1) + 1.19560239361145e-6*log(249.052415932832 -
0.952159360530481*m.x1) + 3.7032165490144e-7*log(110.039136596835 - 0.99677778644842*m.x1) +
8.7733865886348e-7*log(156.821256781618 - 0.981762353579567*m.x1) + 2.3147865116101e-7*log(
199.523689768056 - 0.968056358355068*m.x1) + 5.4840209400801e-7*log(415.971843439801 -
0.898584032000295*m.x1) + 1.0702302104483e-7*log(150.509314160132 - 0.983788267546925*m.x1) +
1.579334504759e-8*log(229.558267186124 - 0.958416304009859*m.x1) + 1.157165846826e-8*log(
278.639758958691 - 0.942662852864352*m.x1) + 3.58416630594e-9*log(270.755418624658 -
0.945193451788327*m.x1) + 8.49134275924e-9*log(481.615742418209 - 0.877514624404683*m.x1) +
9.704101076692e-8*log(204.592823836379 - 0.966429342691701*m.x1) + 3.005714047644e-8*log(
121.768604799103 - 0.993013035263933*m.x1) + 7.120915200608e-8*log(234.90398420317 -
0.956700514843222*m.x1) + 1.904495755745e-8*log(265.661094609679 - 0.946828552548126*m.x1) +
4.511991249359e-8*log(643.645574905152 - 0.825508685750139*m.x1) + 8.99940859807e-9*log(
378.882844396923 - 0.910488310239537*m.x1) + 3.975529739764e-8*log(275.639640374999 -
0.943625786545299*m.x1) + 1.231366654199e-8*log(294.870657652889 - 0.937453299112166*m.x1) +
2.917262622087e-8*log(273.926918368189 - 0.944175510718011*m.x1) + 7.81499206125e-9*log(
266.221094994647 - 0.946648811908885*m.x1) + 1.851469341315e-8*log(192.176519000713 -
0.970414544538107*m.x1) + 3.70273198075e-9*log(339.418986006275 - 0.923154835699909*m.x1) +
1.1223163527906e-7*log(338.189154866992 - 0.923549568705574*m.x1) + 2.6589088213369e-7*log(
739.647257673155 - 0.794695485809517*m.x1) + 5.238555739769e-8*log(206.622092527959 -
0.965778018046924*m.x1) + 2.880131582229e-8*log(1358.00873885992 - 0.596222965265974*m.x1) +
8.2928697456672e-7*log(117.708072269849 - 0.994316324925966*m.x1) + 3.81679258712616e-6*log(
102.816009888922 - 0.999096158804301*m.x1) + 2.79653439796344e-6*log(114.487098874626 -
0.995350145317118*m.x1) + 8.6618867820768e-7*log(101.745069142043 - 0.999439893522347*m.x1) +
2.05211010291984e-6*log(111.125650567867 - 0.996429053267268*m.x1) + 1.81595606503464e-6*log(100
+ 0.77*m.x28*(3115.6025 + m.x1)/(0.00314596400504048 + m.x28) - m.x1) + 1.33053694836984e-6*log(
100 + 0.77*m.x29*(3115.6025 + m.x1)/(0.00185796732288463 + m.x29) - m.x1) + 4.1211581683536e-7*
log(119.262530850324 - 0.99381739780658*m.x1) + 9.7635426715584e-7*log(141.787032240127 -
0.986587816565134*m.x1) + 1.15642525996044e-5*log(100 + 0.77*m.x30*(3115.6025 + m.x1)/(
0.00327988316455864 + m.x30) - m.x1) + 3.58187068147968e-6*log(102.317637448576 -
0.999256119017565*m.x1) + 8.48590293956256e-6*log(100 + 0.77*m.x31*(3115.6025 + m.x1)/(
0.00895641248557199 + m.x31) - m.x1) + 2.23893629499672e-6*log(100 + 0.77*m.x32*(3115.6025 + m.x1
)/(0.00502027382308052 + m.x32) - m.x1) + 5.30432221878072e-6*log(100 + 0.77*m.x33*(3115.6025 +
m.x1)/(0.00143242523884508 + m.x33) - m.x1) + 1.03516123415976e-6*log(111.814530003852 -
0.996207946936796*m.x1) + 1.5275833546248e-7*log(131.106832242588 - 0.990015789163544*m.x1) +
1.1192481901872e-7*log(143.607926262619 - 0.986003372939064*m.x1) + 3.466721440368e-8*log(
141.571690034213 - 0.986656933920738*m.x1) + 8.213101036128e-8*log(200.071509157679 -
0.967880527391514*m.x1) + 9.3861200598624e-7*log(124.904463963847 - 0.992006533579349*m.x1) +
2.9072237287968e-7*log(105.044555247892 - 0.998380873282811*m.x1) + 6.8875792286976e-7*log(
132.448415533481 - 0.989585187605453*m.x1) + 1.842089821164e-7*log(140.261800370076 -
0.987077362927371*m.x1) + 4.3641436997448e-7*log(100 + 0.77*m.x34*(3115.6025 + m.x1)/(
0.000741543429815745 + m.x34) - m.x1) + 8.704518728904e-8*log(170.483695524706 -
0.977377186106153*m.x1) + 3.8452607968608e-7*log(142.831818536397 - 0.986252476515731*m.x1) +
1.1910176081928e-7*log(147.834377406707 - 0.984646829174548*m.x1) + 2.8216706525064e-7*log(
142.389460178795 - 0.986394458157356*m.x1) + 7.558912791e-8*log(140.405570410136 -
0.987031217746765*m.x1) + 1.790800960068e-7*log(121.857913496112 - 0.992984370279549*m.x1) +
3.5814019914e-8*log(159.679650282215 - 0.980844908719192*m.x1) + 1.08554063371632e-6*log(100 +
0.77*m.x35*(3115.6025 + m.x1)/(0.00197115089250469 + m.x35) - m.x1) + 2.57178251010168e-6*log(100
+ 0.77*m.x36*(3115.6025 + m.x1)/(0.00059763788778525 + m.x36) - m.x1) + 5.0669003470968e-7*log(
125.40476939922 - 0.991845952941936*m.x1) + 2.7857563112088e-7*log(100 + 0.77*m.x37*(3115.6025 +
m.x1)/(0.000197072608583864 + m.x37) - m.x1) + 1.29788901763516e-6*log(100 + 0.77*m.x38*(
3115.6025 + m.x1)/(0.00103350340834749 + m.x38) - m.x1) + 5.97353308727723e-6*log(100 + 0.77*
m.x39*(3115.6025 + m.x1)/(0.00653968048251619 + m.x39) - m.x1) + 4.37676147566657e-6*log(100 +
0.77*m.x40*(3115.6025 + m.x1)/(0.00126499499738795 + m.x40) - m.x1) + 1.35564262688804e-6*log(
111.307816465541 - 0.996370584352291*m.x1) + 3.21168816976702e-6*log(100 + 0.77*m.x41*(3115.6025
+ m.x1)/(0.00164951628291331 + m.x41) - m.x1) + 2.84209146604267e-6*log(100 + 0.77*m.x42*(
3115.6025 + m.x1)/(0.000483561553932482 + m.x42) - m.x1) + 2.08237841158577e-6*log(100 + 0.77*
m.x43*(3115.6025 + m.x1)/(0.000285585456276797 + m.x43) - m.x1) + 6.4498853722358e-7*log(100 +
0.77*m.x44*(3115.6025 + m.x1)/(0.000949480964356804 + m.x44) - m.x1) + 1.52805906703752e-6*log(
100 + 0.77*m.x45*(3115.6025 + m.x1)/(0.00043353870754387 + m.x45) - m.x1) + 1.80988209226695e-5*
log(100 + 0.77*m.x46*(3115.6025 + m.x1)/(0.000504146073263974 + m.x46) - m.x1) +
5.60586475207904e-6*log(100 + 0.77*m.x47*(3115.6025 + m.x1)/(0.00794759125316883 + m.x47) - m.x1)
+ 1.32809999044427e-5*log(100 + 0.77*m.x48*(3115.6025 + m.x1)/(0.00137667714323634 + m.x48) -
m.x1) + 3.50408352908141e-6*log(100 + 0.77*m.x49*(3115.6025 + m.x1)/(0.00077165899138256 + m.x49)
- m.x1) + 8.30161544180841e-6*log(100 + 0.77*m.x50*(3115.6025 + m.x1)/(0.00022017600114885 +
m.x50) - m.x1) + 1.62009586367803e-6*log(100 + 0.77*m.x51*(3115.6025 + m.x1)/(0.00155288847130484
+ m.x51) - m.x1) + 2.3907690827119e-7*log(288.890309631698 - 0.939372782750143*m.x1) +
1.7516975167866e-7*log(357.894740601638 - 0.917224761309686*m.x1) + 5.425648566354e-8*log(
346.901414191408 - 0.920753236591829*m.x1) + 1.2854046864884e-7*log(100 + 0.77*m.x52*(3115.6025
+ m.x1)/(0.000176557293751724 + m.x52) - m.x1) + 1.46898992960372e-6*log(100 + 0.77*m.x53*(
3115.6025 + m.x1)/(0.000732641574913837 + m.x53) - m.x1) + 4.5499976065404e-7*log(
132.443353443726 - 0.989586812360137*m.x1) + 1.07795174808928e-6*log(100 + 0.77*m.x54*(3115.6025
+ m.x1)/(0.000560522506580771 + m.x54) - m.x1) + 2.8829925245545e-7*log(100 + 0.77*m.x55*(
3115.6025 + m.x1)/(0.000450253536640847 + m.x55) - m.x1) + 6.8301738155719e-7*log(100 + 0.77*
m.x56*(3115.6025 + m.x1)/(0.00011398156261661 + m.x56) - m.x1) + 1.3623148088087e-7*log(100 +
0.77*m.x57*(3115.6025 + m.x1)/(0.000253899142154748 + m.x57) - m.x1) + 6.0180877202324e-7*log(100
+ 0.77*m.x58*(3115.6025 + m.x1)/(0.000422776032844626 + m.x58) - m.x1) + 1.8640214074159e-7*log(
100 + 0.77*m.x59*(3115.6025 + m.x1)/(0.00037775801625084 + m.x59) - m.x1) + 4.4161013781567e-7*
log(100 + 0.77*m.x60*(3115.6025 + m.x1)/(0.000427268145358538 + m.x60) - m.x1) +
1.1830198951125e-7*log(340.563369854733 - 0.922787528301594*m.x1) + 2.8027220613915e-7*log(
235.410795115064 - 0.956537846174195*m.x1) + 5.605131221075e-8*log(441.491937984964 -
0.890392969582941*m.x1) + 1.69894295932146e-6*log(100 + 0.77*m.x61*(3115.6025 + m.x1)/(
0.000302982738228342 + m.x61) - m.x1) + 4.02500989160129e-6*log(100 + 0.77*m.x62*(3115.6025 +
m.x1)/(9.1862050946334e-5 + m.x62) - m.x1) + 7.9300344942529e-7*log(100 + 0.77*m.x63*(3115.6025
+ m.x1)/(0.000718062043907347 + m.x63) - m.x1) + 4.3598930563389e-7*log(100 + 0.77*m.x64*(
3115.6025 + m.x1)/(3.02917441813244e-5 + m.x64) - m.x1) + 2.386749707546e-7*log(100 + 0.77*m.x65*
(3115.6025 + m.x1)/(0.000480318835957082 + m.x65) - m.x1) + 1.09850134760005e-6*log(
138.827733020974 - 0.98753764865031*m.x1) + 8.0486343825295e-7*log(100 + 0.77*m.x66*(3115.6025 +
m.x1)/(0.000587904132419288 + m.x66) - m.x1) + 2.492955560374e-7*log(124.199690905835 -
0.992232741209498*m.x1) + 5.906125790237e-7*log(100 + 0.77*m.x67*(3115.6025 + m.x1)/(
0.000766609702979113 + m.x67) - m.x1) + 5.2264568720645e-7*log(100 + 0.77*m.x68*(3115.6025 + m.x1
)/(0.000224734355806163 + m.x68) - m.x1) + 3.8293844830495e-7*log(100 + 0.77*m.x69*(3115.6025 +
m.x1)/(0.000132725323223145 + m.x69) - m.x1) + 1.186100029873e-7*log(344.164724732999 -
0.921631618689162*m.x1) + 2.810020334412e-7*log(100 + 0.77*m.x70*(3115.6025 + m.x1)/(
0.000201486328606083 + m.x70) - m.x1) + 3.32827806978575e-6*log(100 + 0.77*m.x71*(3115.6025 +
m.x1)/(0.00023430097385907 + m.x71) - m.x1) + 1.0308890726224e-6*log(132.041291503744 -
0.989715860253757*m.x1) + 2.4423060991458e-6*log(100 + 0.77*m.x72*(3115.6025 + m.x1)/(
0.000639808207294919 + m.x72) - m.x1) + 6.4438254924835e-7*log(100 + 0.77*m.x73*(3115.6025 + m.x1
)/(0.000358627117726995 + m.x73) - m.x1) + 1.52662345999335e-6*log(100 + 0.77*m.x74*(3115.6025 +
m.x1)/(0.000102326397497417 + m.x74) - m.x1) + 2.9792711674805e-7*log(255.436528988183 -
0.950110282364909*m.x1) + 4.396498723265e-8*log(472.644004866244 - 0.880394240001334*m.x1) +
3.22127969271e-8*log(593.778869946635 - 0.841514163008075*m.x1) + 9.9774826299e-9*log(
574.960968571768 - 0.847554054610058*m.x1) + 2.36379167854e-8*log(1008.34110667307 -
0.708454109061388*m.x1) + 2.701395294382e-7*log(100 + 0.77*m.x75*(3115.6025 + m.x1)/(
0.000340493844136466 + m.x75) - m.x1) + 8.36720652474e-8*log(168.737850847238 - 0.977937541503694
*m.x1) + 1.982296625168e-7*log(100 + 0.77*m.x76*(3115.6025 + m.x1)/(0.000260501819069085 + m.x76)
- m.x1) + 5.301671769575e-8*log(562.675437637781 - 0.851497282584097*m.x1) + 1.2560330764265e-7*
log(100 + 0.77*m.x77*(3115.6025 + m.x1)/(5.29727246513075e-5 + m.x77) - m.x1) + 2.505225352345e-8
*log(813.995783375217 - 0.770832195899439*m.x1) + 1.106694710494e-7*log(100 + 0.77*m.x78*(
3115.6025 + m.x1)/(0.000196484395045369 + m.x78) - m.x1) + 3.427837425665e-8*log(631.785089268111
- 0.829315488972643*m.x1) + 8.120978396145e-8*log(582.55897619313 - 0.845115358524353*m.x1) +
2.175511426875e-8*log(564.030854811577 - 0.851062240830922*m.x1) + 5.154058605525e-8*log(
373.579196696883 - 0.91219059661915*m.x1) + 1.030754180125e-8*log(731.294065299251 -
0.797376569925319*m.x1) + 3.124266833451e-7*log(100 + 0.77*m.x79*(3115.6025 + m.x1)/(
0.000140810678480119 + m.x79) - m.x1) + 7.4017817017615e-7*log(100 + 0.77*m.x80*(3115.6025 + m.x1
)/(4.26927216908973e-5 + m.x80) - m.x1) + 1.4582916761615e-7*log(412.601143991731 -
0.899665909244927*m.x1) + 8.017614245715e-8*log(100 + 0.77*m.x81*(3115.6025 + m.x1)/(
1.40780332089543e-5 + m.x81) - m.x1) + 4.674802317404e-8*log(390.022082245375 - 0.906913002462485
*m.x1) + 2.1515773644787e-7*log(151.027826575194 - 0.983621843102516*m.x1) + 1.5764440881433e-7*
log(342.309228866923 - 0.922227168303106*m.x1) + 4.882822188676e-8*log(131.865551273648 -
0.989772266753012*m.x1) + 1.1568020913038e-7*log(290.304903067674 - 0.938918747475753*m.x1) +
1.0236788809523e-7*log(644.934834943347 - 0.825094878135658*m.x1) + 7.500415899913e-8*log(
897.171525613417 - 0.744135676610409*m.x1) + 2.323152340102e-8*log(412.345505235737 -
0.899747960391052*m.x1) + 5.503840444488e-8*log(692.287531223752 - 0.80989631019241*m.x1) +
6.5189248727705e-7*log(627.577976915564 - 0.830665825657938*m.x1) + 2.0191487236576e-7*log(
142.147090668079 - 0.986472250337429*m.x1) + 4.7836177274892e-7*log(324.491484308978 -
0.927946044365744*m.x1) + 1.2621185309029e-7*log(473.12785885208 - 0.880238939706821*m.x1) +
2.9901178435329e-7*log(1041.09237573213 - 0.697942091222442*m.x1) + 5.835343234307e-8*log(
301.153639757546 - 0.935436680463074*m.x1) + 8.61119301911e-9*log(568.894701148243 -
0.849501115386753*m.x1) + 6.30935272554e-9*log(711.870091064714 - 0.803610989827902*m.x1) +
1.95423754626e-9*log(689.945276050275 - 0.810648092608003*m.x1) + 4.62983562196e-9*log(
1169.90196090969 - 0.656598696107834*m.x1) + 5.291082237268e-8*log(489.770582229685 -
0.874897204560054*m.x1) + 1.638841154076e-8*log(189.977742290068 - 0.971120275359239*m.x1) +
3.882621134432e-8*log(585.248078101017 - 0.844252250375002*m.x1) + 1.038410831105e-8*log(
675.57524783692 - 0.815260371681907*m.x1) + 2.460126555311e-8*log(1431.31698254577 -
0.572693569688118*m.x1) + 4.90685439103e-9*log(960.954196259431 - 0.723663658550977*m.x1) +
2.167625277556e-8*log(703.571997904625 - 0.80627438901316*m.x1) + 6.71392659671e-9*log(
755.836939027607 - 0.789499161389296*m.x1) + 1.590613733223e-8*log(698.810231655749 -
0.807802750300865*m.x1) + 4.26106090125e-9*log(677.162823229841 - 0.814750815217974*m.x1) +
1.009498609635e-8*log(448.644758163218 - 0.888097163176876*m.x1) + 2.01888451675e-9*log(
868.998821335345 - 0.753178134458634*m.x1) + 6.119338691874e-8*log(866.013581015413 -
0.754136292734579*m.x1) + 1.4497484232601e-7*log(1557.17087140146 - 0.532298850254018*m.x1) +
2.856279938201e-8*log(496.376909904565 - 0.872776803233222*m.x1) + 1.570368335541e-8*log(
2077.53138725867 - 0.365281229791454*m.x1) + 4.5216208910888e-7*log(100 + 0.77*m.x82*(3115.6025
+ m.x1)/(0.000609790965265749 + m.x82) - m.x1) + 2.08107562619314e-6*log(100 + 0.77*m.x83*(
3115.6025 + m.x1)/(0.0038585630601252 + m.x83) - m.x1) + 1.52478800997526e-6*log(100 + 0.77*m.x84
*(3115.6025 + m.x1)/(0.000746376368266585 + m.x84) - m.x1) + 4.7228244782872e-7*log(
119.10247354294 - 0.993868770633308*m.x1) + 1.11889661802836e-6*log(100 + 0.77*m.x85*(3115.6025
+ m.x1)/(0.000973252839086021 + m.x85) - m.x1) + 9.9013551795506e-7*log(100 + 0.77*m.x86*(
3115.6025 + m.x1)/(0.00028531252471569 + m.x86) - m.x1) + 7.2546462764086e-7*log(100 + 0.77*m.x87
*(3115.6025 + m.x1)/(0.000168502038447399 + m.x87) - m.x1) + 2.2470285246244e-7*log(
296.570952433757 - 0.936907563646596*m.x1) + 5.3234935394736e-7*log(100 + 0.77*m.x88*(3115.6025
+ m.x1)/(0.000255797885926617 + m.x88) - m.x1) + 6.3053162231951e-6*log(100 + 0.77*m.x89*(
3115.6025 + m.x1)/(0.000297457868225251 + m.x89) - m.x1) + 1.95298633636672e-6*log(
125.309989139262 - 0.991876374107653*m.x1) + 4.62687069591624e-6*log(100 + 0.77*m.x90*(3115.6025
+ m.x1)/(0.000812271422864163 + m.x90) - m.x1) + 1.22076210476638e-6*log(100 + 0.77*m.x91*(
3115.6025 + m.x1)/(0.000455296690277536 + m.x91) - m.x1) + 2.89213925855238e-6*log(100 + 0.77*
m.x92*(3115.6025 + m.x1)/(0.000129908943874298 + m.x92) - m.x1) + 5.6441338228754e-7*log(100 +
0.77*m.x93*(3115.6025 + m.x1)/(0.000916240190616427 + m.x93) - m.x1) + 8.329026044042e-8*log(
403.534122457219 - 0.902576107684719*m.x1) + 6.102611224188e-8*log(506.712574347542 -
0.869459414560252*m.x1) + 1.890202133772e-8*log(490.532628751666 - 0.874652614140711*m.x1) +
4.478127640312e-8*log(878.027135329109 - 0.750280359792654*m.x1) + 5.1177068795896e-7*log(100 +
0.77*m.x94*(3115.6025 + m.x1)/(0.000432275510222909 + m.x94) - m.x1) + 1.5851404821672e-7*log(
154.474683040325 - 0.982515522105171*m.x1) + 3.7553974781504e-7*log(100 + 0.77*m.x95*(3115.6025
+ m.x1)/(0.000330721270564153 + m.x95) - m.x1) + 1.004384739431e-7*log(479.999644229205 -
0.878033335693753*m.x1) + 2.3795144418842e-7*log(100 + 0.77*m.x96*(3115.6025 + m.x1)/(
6.72517637862611e-5 + m.x96) - m.x1) + 4.746069206266e-8*log(700.334669156876 - 0.807313458903414
*m.x1) + 2.0965976898232e-7*log(100 + 0.77*m.x97*(3115.6025 + m.x1)/(0.000249447658398885 + m.x97
) - m.x1) + 6.493928234762e-8*log(539.563417544517 - 0.858915436887563*m.x1) + 1.5384933516906e-7
*log(100 + 0.77*m.x98*(3115.6025 + m.x1)/(0.000252098108899402 + m.x98) - m.x1) +
4.12143673275e-8*log(481.160537164744 - 0.877660729452893*m.x1) + 9.76419898197e-8*log(
320.839421249599 - 0.929118229540001*m.x1) + 1.95273078685e-8*log(626.683196813309 -
0.830953018938292*m.x1) + 5.9188234689228e-7*log(100 + 0.77*m.x99*(3115.6025 + m.x1)/(
0.000178766838029624 + m.x99) - m.x1) + 1.40224384099222e-6*log(100 + 0.77*m.x100*(3115.6025 +
m.x1)/(5.42007392190642e-5 + m.x100) - m.x1) + 2.7626868822422e-7*log(100 + 0.77*m.x101*(
3115.6025 + m.x1)/(0.000423673249007549 + m.x101) - m.x1) + 1.5189113443902e-7*log(100 + 0.77*
m.x102*(3115.6025 + m.x1)/(1.78728311631289e-5 + m.x102) - m.x1) + 7.0766353293472e-7*log(100 +
0.77*m.x103*(3115.6025 + m.x1)/(0.000276679422907153 + m.x103) - m.x1) + 3.25702080163016e-6*log(
100 + 0.77*m.x104*(3115.6025 + m.x1)/(0.00175073928860366 + m.x104) - m.x1) + 2.38639394169944e-6
*log(100 + 0.77*m.x105*(3115.6025 + m.x1)/(0.00033865208670899 + m.x105) - m.x1) +
7.3915322319968e-7*log(141.701349131272 - 0.986615317861867*m.x1) + 1.75114710581584e-6*log(100
+ 0.77*m.x106*(3115.6025 + m.x1)/(0.000441592363940183 + m.x106) - m.x1) + 1.54962748005064e-6*
log(100 + 0.77*m.x107*(3115.6025 + m.x1)/(0.000129454369092067 + m.x107) - m.x1) +
1.13540005626584e-6*log(100 + 0.77*m.x108*(3115.6025 + m.x1)/(7.64541448002395e-5 + m.x108) -
m.x1) + 3.5167480481936e-7*log(100 + 0.77*m.x109*(3115.6025 + m.x1)/(0.000254185756096936 +
m.x109) - m.x1) + 8.3316189845184e-7*log(100 + 0.77*m.x110*(3115.6025 + m.x1)/(
0.000116062741972903 + m.x110) - m.x1) + 9.8682363299644e-6*log(100 + 0.77*m.x111*(3115.6025 +
m.x1)/(0.000134965055252807 + m.x111) - m.x1) + 3.05655260327168e-6*log(100 + 0.77*m.x112*(
3115.6025 + m.x1)/(0.00212765138815038 + m.x112) - m.x1) + 7.24135822522656e-6*log(100 + 0.77*
m.x113*(3115.6025 + m.x1)/(0.000368550538337489 + m.x113) - m.x1) + 1.91057332036472e-6*log(100
+ 0.77*m.x114*(3115.6025 + m.x1)/(0.000206580996920193 + m.x114) - m.x1) + 4.52638895374872e-6*
log(100 + 0.77*m.x115*(3115.6025 + m.x1)/(5.89433652988846e-5 + m.x115) - m.x1) +
8.8334422050376e-7*log(100 + 0.77*m.x116*(3115.6025 + m.x1)/(0.000415724111415154 + m.x116) -
m.x1) + 1.3035475857448e-7*log(100 + 0.77*m.x117*(3115.6025 + m.x1)/(0.000156618059539867 +
m.x117) - m.x1) + 9.550989618672e-8*log(100 + 0.77*m.x118*(3115.6025 + m.x1)/(
0.000111130510572367 + m.x118) - m.x1) + 2.958291179568e-8*log(819.669890654164 -
0.769011004884556*m.x1) + 7.008565519328e-8*log(100 + 0.77*m.x119*(3115.6025 + m.x1)/(
4.72661916261924e-5 + m.x119) - m.x1) + 8.0095492704224e-7*log(100 + 0.77*m.x120*(3115.6025 +
m.x1)/(0.000196135635845714 + m.x120) - m.x1) + 2.4808495467168e-7*log(216.865217149611 -
0.962490331436821*m.x1) + 5.8774450821376e-7*log(100 + 0.77*m.x121*(3115.6025 + m.x1)/(
0.000150057602514548 + m.x121) - m.x1) + 1.571928452764e-7*log(100 + 0.77*m.x122*(3115.6025 +
m.x1)/(0.00012053747251679 + m.x122) - m.x1) + 3.7240972588648e-7*log(100 + 0.77*m.x123*(
3115.6025 + m.x1)/(3.05140289931351e-5 + m.x123) - m.x1) + 7.427911766504e-8*log(100 + 0.77*
m.x124*(3115.6025 + m.x1)/(6.79713947342661e-5 + m.x124) - m.x1) + 3.2813138563808e-7*log(100 +
0.77*m.x125*(3115.6025 + m.x1)/(0.000113181463981294 + m.x125) - m.x1) + 1.0163426585128e-7*log(
100 + 0.77*m.x126*(3115.6025 + m.x1)/(0.000101129680938306 + m.x126) - m.x1) + 2.4078437066664e-7
*log(100 + 0.77*m.x127*(3115.6025 + m.x1)/(0.000114384048402347 + m.x127) - m.x1) +
6.450320691e-8*log(100 + 0.77*m.x128*(3115.6025 + m.x1)/(0.000120101258419391 + m.x128) - m.x1)
+ 1.528161629268e-7*log(100 + 0.77*m.x129*(3115.6025 + m.x1)/(0.000223759740569752 + m.x129) -
m.x1) + 3.0561526514e-8*log(1018.11416141955 - 0.705317298525872*m.x1) + 9.2633496432432e-7*log(
100 + 0.77*m.x130*(3115.6025 + m.x1)/(8.11115749466991e-5 + m.x130) - m.x1) + 2.19460422369368e-6
*log(100 + 0.77*m.x131*(3115.6025 + m.x1)/(2.45924096985208e-5 + m.x131) - m.x1) +
4.3237874350168e-7*log(100 + 0.77*m.x132*(3115.6025 + m.x1)/(0.000192232546419447 + m.x132) -
m.x1) + 2.3771965719288e-7*log(100 + 0.77*m.x133*(3115.6025 + m.x1)/(8.10940944291689e-6 + m.x133
) - m.x1) + 3.69643743012e-8*log(259.243438352797 - 0.948888396914306*m.x1) + 1.701285009261e-7*
log(126.655917760543 - 0.991444377849696*m.x1) + 1.246518363399e-7*log(231.702010264842 -
0.957728237069767*m.x1) + 3.86092191228e-8*log(116.581295018683 - 0.994677981219144*m.x1) +
9.14701041714e-8*log(202.310059251124 - 0.967162030698356*m.x1) + 8.09438490669e-8*log(
416.457222584263 - 0.898428242182928*m.x1) + 5.93069314839e-8*log(590.940569459868 -
0.842425158710115*m.x1) + 1.83695195706e-8*log(272.323136981283 - 0.944690268742151*m.x1) +
4.35197051064e-8*log(447.679121507101 - 0.888407098945677*m.x1) + 5.154613236615e-7*log(
405.179826008594 - 0.902047894104401*m.x1) + 1.596571664928e-7*log(121.977097201104 -
0.992946116457056*m.x1) + 3.782479433076e-7*log(221.559135870346 - 0.960983746845002*m.x1) +
9.97976355387e-8*log(308.580883515259 - 0.93305279363614*m.x1) + 2.364331744287e-7*log(
700.293486922057 - 0.80732667696792*m.x1) + 4.61409481821e-8*log(208.388630306009 -
0.96521102088408*m.x1) + 6.8090015433e-9*log(367.695674982814 - 0.914079002381461*m.x1) +
4.9889013462e-9*log(460.789282500999 - 0.884199193414115*m.x1) + 1.5452454078e-9*log(
446.118879639336 - 0.888907882299062*m.x1) + 3.6608815788e-9*log(805.013912804639 -
0.773715063842503*m.x1) + 4.18373935404e-8*log(318.676489558247 - 0.929812455357111*m.x1) +
1.29585667428e-8*log(147.377954877314 - 0.984793324925977*m.x1) + 3.07004769696e-8*log(
378.042793763629 - 0.910757937264581*m.x1) + 8.2108726815e-9*log(436.583029316824 -
0.89196855846764*m.x1) + 1.94525955633e-8*log(1040.3513804883 - 0.698179924913946*m.x1) +
3.8799245409e-9*log(638.457618384797 - 0.827173839286367*m.x1) + 1.71397433868e-8*log(
455.219495877816 - 0.885986901128171*m.x1) + 5.3088040713e-9*log(490.658159781153 -
0.874612323047901*m.x1) + 1.25772251769e-8*log(452.032892933289 - 0.887009689800516*m.x1) +
3.3692857875e-9*log(437.633465661542 - 0.89163140494927*m.x1) + 7.9822593405e-9*log(
293.861493987256 - 0.937777205536568*m.x1) + 1.5963627525e-9*log(570.412097376226 -
0.849014083992991*m.x1) + 4.83865435422e-8*log(568.252989540977 - 0.849707082485337*m.x1) +
1.146338170503e-7*log(1166.15178222077 - 0.657802372985397*m.x1) + 2.25850407303e-8*log(
322.704323762715 - 0.928519660719647*m.x1) + 1.24171417323e-8*log(1798.72481850053 -
0.454768437725759*m.x1) + 3.5753099129492e-7*log(120.525902665119 - 0.993411899411071*m.x1) +
1.64553607990201e-6*log(103.26736425089 - 0.998951289758276*m.x1) + 1.20567155418859e-6*log(
116.796000913132 - 0.99460906809738*m.x1) + 3.7344044494348e-7*log(102.024916542162 -
0.99935007224376*m.x1) + 8.8472746087274e-7*log(112.901715639768 - 0.995858998174585*m.x1) +
7.8291422871929e-7*log(143.446715021488 - 0.986055116138375*m.x1) + 5.7363519347899e-7*log(
172.653107945594 - 0.976680880200348*m.x1) + 1.7767573956946e-7*log(122.32539836666 -
0.992834323901505*m.x1) + 4.2093620145624e-7*log(148.358661660843 - 0.984478552170618*m.x1) +
4.98570316708715e-6*log(100 + 0.77*m.x134*(3115.6025 + m.x1)/(0.00282626697367363 + m.x134) -
m.x1) + 1.54425405766048e-6*log(102.68920156283 - 0.99913685986488*m.x1) + 3.65853242974116e-6*
log(100 + 0.77*m.x135*(3115.6025 + m.x1)/(0.00771771783949399 + m.x135) - m.x1) +
9.6527394924367e-7*log(127.411304883875 - 0.991201924865616*m.x1) + 2.28685562319267e-6*log(100
+ 0.77*m.x136*(3115.6025 + m.x1)/(0.00123431718195035 + m.x136) - m.x1) + 4.4628968445161e-7*
log(113.699934767029 - 0.995602797607516*m.x1) + 6.585879289253e-8*log(136.024511029641 -
0.988437385375817*m.x1) + 4.825421442942e-8*log(150.459788227524 - 0.983804163648115*m.x1) +
1.494609696198e-8*log(148.110144892852 - 0.984558317406392*m.x1) + 3.540919181308e-8*log(
215.360654511061 - 0.9629732436949*m.x1) + 4.0466435773564e-7*log(128.853558453294 -
0.990739011650782*m.x1) + 1.2533931118548e-7*log(105.852231884397 - 0.998121637184334*m.x1) +
2.9694461685536e-7*log(137.574819672958 - 0.987939790241869*m.x1) + 7.941812906915e-8*log(
146.598306222914 - 0.985043565017388*m.x1) + 1.8815158937453e-7*log(274.097414622119 -
0.944120787352649*m.x1) + 3.752784386269e-8*log(181.412433739765 - 0.973869441387415*m.x1) +
1.6578095962588e-7*log(149.564301239472 - 0.984091583814215*m.x1) + 5.134841365733e-8*log(
155.334716319722 - 0.982239481345993*m.x1) + 1.2165085627029e-7*log(149.05385875812 -
0.984255418090684*m.x1) + 3.258878610375e-8*log(146.764254564814 - 0.98499030137355*m.x1) +
7.720690932105e-8*log(125.329071289493 - 0.991870249401362*m.x1) + 1.544051991025e-8*log(
168.982812305731 - 0.977858917398567*m.x1) + 4.6800978523302e-7*log(168.600655860411 -
0.977981576320981*m.x1) + 1.10877413782123e-6*log(100 + 0.77*m.x137*(3115.6025 + m.x1)/(
0.000514983046565565 + m.x137) - m.x1) + 2.1844957890923e-7*log(129.432213686124 -
0.990553283454444*m.x1) + 1.2010247911743e-7*log(100 + 0.77*m.x138*(3115.6025 + m.x1)/(
0.000169816965151329 + m.x138) - m.x1) + 5.595595833396e-7*log(100 + 0.77*m.x139*(3115.6025 +
m.x1)/(0.000969631097815696 + m.x139) - m.x1) + 2.5753725010113e-6*log(119.392186516001 -
0.993775782849063*m.x1) + 1.8869555057667e-6*log(100 + 0.77*m.x140*(3115.6025 + m.x1)/(
0.00118681610349971 + m.x140) - m.x1) + 5.844589276524e-7*log(112.048952823725 -
0.996132705367991*m.x1) + 1.3846568309562e-6*log(100 + 0.77*m.x141*(3115.6025 + m.x1)/(
0.00154757330391728 + m.x141) - m.x1) + 1.2253124072577e-6*log(100 + 0.77*m.x142*(3115.6025 +
m.x1)/(0.000453676607753738 + m.x142) - m.x1) + 8.977769135187e-7*log(100 + 0.77*m.x143*(
3115.6025 + m.x1)/(0.000267935777718076 + m.x143) - m.x1) + 2.780742515298e-7*log(
227.498426217162 - 0.959077441291961*m.x1) + 6.587929193112e-7*log(100 + 0.77*m.x144*(3115.6025
+ m.x1)/(0.000406745260389136 + m.x144) - m.x1) + 7.8029543025795e-6*log(100 + 0.77*m.x145*(
3115.6025 + m.x1)/(0.000472988967941613 + m.x145) - m.x1) + 2.4168594558624e-6*log(
115.979755437715 - 0.994871054495008*m.x1) + 5.7258445613508e-6*log(100 + 0.77*m.x146*(3115.6025
+ m.x1)/(0.00129159609823484 + m.x146) - m.x1) + 1.5107173979271e-6*log(100 + 0.77*m.x147*(
3115.6025 + m.x1)/(0.000723969121833849 + m.x147) - m.x1) + 3.5790798862971e-6*log(100 + 0.77*
m.x148*(3115.6025 + m.x1)/(0.00020656874083075 + m.x148) - m.x1) + 6.984727924593e-7*log(100 +
0.77*m.x149*(3115.6025 + m.x1)/(0.0014569172593482 + m.x149) - m.x1) + 1.030733547789e-7*log(
300.294195813365 - 0.935712532066152*m.x1) + 7.55210283246e-8*log(372.950133675651 -
0.912392503961705*m.x1) + 2.33916275574e-8*log(361.393387088831 - 0.916101817517212*m.x1) +
5.54177207004e-8*log(656.239567646576 - 0.821466452268357*m.x1) + 6.333264106332e-7*log(100 +
0.77*m.x150*(3115.6025 + m.x1)/(0.000687363049653602 + m.x150) - m.x1) + 1.961642891124e-7*log(
134.549709596937 - 0.988910745322313*m.x1) + 4.647379111968e-7*log(100 + 0.77*m.x151*(3115.6025
+ m.x1)/(0.000525881239497159 + m.x151) - m.x1) + 1.242946102395e-7*log(353.903089657918 -
0.918505942379389*m.x1) + 2.944696474389e-7*log(100 + 0.77*m.x152*(3115.6025 + m.x1)/(
0.000106937303542527 + m.x152) - m.x1) + 5.87335508997e-8*log(516.195273474239 -
0.866415798076218*m.x1) + 2.594581363644e-7*log(100 + 0.77*m.x153*(3115.6025 + m.x1)/(
0.000396647737730021 + m.x153) - m.x1) + 8.03636542029e-8*log(396.605249264855 -
0.904800034900198*m.x1) + 1.903916138877e-7*log(100 + 0.77*m.x154*(3115.6025 + m.x1)/(
0.000400862229867344 + m.x154) - m.x1) + 5.10035997375e-8*log(354.727360960765 -
0.918241379970402*m.x1) + 1.208339054865e-7*log(243.796027825877 - 0.953846478225038*m.x1) +
2.41654320825e-8*log(460.605646202893 - 0.88425813427647*m.x1) + 7.324661827926e-7*log(100 + 0.77
*m.x155*(3115.6025 + m.x1)/(0.000284257877346811 + m.x155) - m.x1) + 1.7353046580099e-6*log(100
+ 0.77*m.x156*(3115.6025 + m.x1)/(8.61848162156681e-5 + m.x156) - m.x1) + 3.418879994499e-7*log(
100 + 0.77*m.x157*(3115.6025 + m.x1)/(0.000673684559054268 + m.x157) - m.x1) + 1.879683015159e-7*
log(100 + 0.77*m.x158*(3115.6025 + m.x1)/(2.84196616363883e-5 + m.x158) - m.x1) +
4.074501436232e-8*log(249.07063798668 - 0.952153511885204*m.x1) + 1.8752889355546e-7*log(
124.859074951742 - 0.992021101872995*m.x1) + 1.3740096939214e-7*log(223.191842620706 -
0.960459704785605*m.x1) + 4.255809052408e-8*log(115.459144825851 - 0.995038152387588*m.x1) +
1.0082547800804e-7*log(195.619011271494 - 0.969309624295303*m.x1) + 8.922261921434e-8*log(
397.575610857661 - 0.904488582591116*m.x1) + 6.537272227054e-8*log(563.967667251912 -
0.851082521839063*m.x1) + 2.024831619316e-8*log(261.374980189838 - 0.948204246148269*m.x1) +
4.797081089904e-8*log(427.227345312113 - 0.894971407516808*m.x1) + 5.681816460539e-7*log(
386.878396754352 - 0.9079220161255*m.x1) + 1.7598657260608e-7*log(120.492923527267 -
0.993422484566864*m.x1) + 4.1693436380136e-7*log(213.671510258415 - 0.963515400228876*m.x1) +
1.1000473212982e-7*log(295.531454568911 - 0.937241206293514*m.x1) + 2.6061507248382e-7*log(
669.104546649669 - 0.817337241625121*m.x1) + 5.086014931706e-8*log(201.317582629125 -
0.967480581162351*m.x1) + 7.50541219538e-9*log(351.372276733356 - 0.91931824527251*m.x1) +
5.49915589932e-9*log(439.694024130733 - 0.890970037374558*m.x1) + 1.70328992508e-9*log(
425.744308464212 - 0.895447410745045*m.x1) + 4.03530900568e-9*log(770.412001886567 -
0.784821073328011*m.x1) + 4.611643597144e-8*log(305.054577441609 - 0.934184615193495*m.x1) +
1.428394225608e-8*log(144.210295969209 - 0.985810033221758*m.x1) + 3.384045851456e-8*log(
361.165768375904 - 0.916174875204426*m.x1) + 9.0506638259e-9*log(416.6832011542 -
0.898355710924548*m.x1) + 2.144216696738e-8*log(1000.33799452779 - 0.711022829604292*m.x1) +
4.27675523074e-9*log(609.571269923759 - 0.836445352087194*m.x1) + 1.889276103448e-8*log(
434.3964722351 - 0.892670367213051*m.x1) + 5.85177761618e-9*log(468.1319046228 -
0.881842467188032*m.x1) + 1.386359786034e-8*log(431.366382166974 - 0.89364292069769*m.x1) +
3.7138893975e-9*log(417.681098644165 - 0.898035420550547*m.x1) + 8.7986683833e-9*log(
281.656582108581 - 0.941694557598865*m.x1) + 1.7596354465e-9*log(544.304427698094 -
0.857393737584273*m.x1) + 5.333541954492e-8*log(542.237671927793 - 0.858057094277016*m.x1) +
1.2635832772558e-7*log(1124.54527292762 - 0.671156614835294*m.x1) + 2.489499217358e-8*log(
308.855541867342 - 0.932964637861428*m.x1) + 1.368714141078e-8*log(1763.23723209658 -
0.466158718226546*m.x1) + 6.37686849336e-8*log(569.736214727577 - 0.849231018806932*m.x1) +
2.934953175558e-7*log(188.889418976798 - 0.971469589276296*m.x1) + 2.150417483922e-7*log(
498.037793762171 - 0.872243717302778*m.x1) + 6.66062709384e-8*log(155.847309756665 -
0.982074956687618*m.x1) + 1.577986470492e-7*log(417.53184038923 - 0.898083327257174*m.x1) +
1.396393934982e-7*log(921.108334776294 - 0.736452793712839*m.x1) + 1.023127024242e-7*log(
1223.70253679607 - 0.63933058315492*m.x1) + 3.16899752268e-8*log(602.595974199814 -
0.838684179320111*m.x1) + 7.50775419792e-8*log(981.05542553819 - 0.717211863343225*m.x1) +
8.89242449397e-7*log(898.744559240035 - 0.743630787547502*m.x1) + 2.754308097984e-7*log(
173.625982517328 - 0.976368621312466*m.x1) + 6.525302911128e-7*log(470.737308077767 -
0.881006223329912*m.x1) + 1.721647964586e-7*log(689.934119679135 - 0.81065167341497*m.x1) +
4.078800978786e-7*log(1379.48685669706 - 0.589329236737658*m.x1) + 7.95995507238e-8*log(
434.53489173985 - 0.892625939368116*m.x1) + 1.17464743374e-8*log(821.528017445544 -
0.768414610835129*m.x1) + 8.6065484436e-9*log(1005.40092452386 - 0.70939780523226*m.x1) +
2.6657631684e-9*log(978.126239585041 - 0.718152030117757*m.x1) + 6.3155297064e-9*log(
1509.82444407999 - 0.547495406079565*m.x1) + 7.21753206312e-8*log(713.319521316552 -
0.803145773147713*m.x1) + 2.23553292984e-8*log(254.833607664751 - 0.950303799132029*m.x1) +
5.29625911488e-8*log(843.299200702345 - 0.761426818503854*m.x1) + 1.4164896957e-8*log(
960.073904810529 - 0.723946201477714*m.x1) + 3.35584318974e-8*log(1751.11759537046 -
0.470048699931889*m.x1) + 6.6934092702e-9*log(1294.134940734 - 0.61672423207582*m.x1) +
2.95684403304e-8*log(995.115859229992 - 0.712698953338883*m.x1) + 9.1584251214e-9*log(
1059.13998011045 - 0.692149438155075*m.x1) + 2.16974620782e-8*log(989.193128395073 -
0.714599943864767*m.x1) + 5.812486425e-9*log(962.075202498917 - 0.723303854551755*m.x1) +
1.3770507159e-8*log(655.123209981677 - 0.821824764236877*m.x1) + 2.753947695e-9*log(
1191.8558240632 - 0.649552269885778*m.x1) + 8.34735149316e-8*log(1188.45417529629 -
0.650644080784922*m.x1) + 1.977592722834e-7*log(1857.44137536029 - 0.435922465924234*m.x1) +
3.89623353234e-8*log(722.540865408159 - 0.800186042536505*m.x1) + 2.14212958794e-8*log(
2241.25089526186 - 0.312732964085803*m.x1) + 1.37450609492688e-6*log(100 + 0.77*m.x159*(3115.6025
+ m.x1)/(0.000940324545070664 + m.x159) - m.x1) + 6.32616311960964e-6*log(100 + 0.77*m.x160*(
3115.6025 + m.x1)/(0.00595007430547527 + m.x160) - m.x1) + 4.63513077204876e-6*log(100 + 0.77*
m.x161*(3115.6025 + m.x1)/(0.00115094525652066 + m.x161) - m.x1) + 1.43566901937072e-6*log(
112.422531061639 - 0.996012799751689*m.x1) + 3.40128077544936e-6*log(100 + 0.77*m.x162*(3115.6025
+ m.x1)/(0.00150079877413969 + m.x162) - m.x1) + 3.00986601268356e-6*log(100 + 0.77*m.x163*(
3115.6025 + m.x1)/(0.000439964488305142 + m.x163) - m.x1) + 2.20530552287436e-6*log(100 + 0.77*
m.x164*(3115.6025 + m.x1)/(0.000259837570039233 + m.x164) - m.x1) + 6.8306354667144e-7*log(100 +
0.77*m.x165*(3115.6025 + m.x1)/(0.000863877417965782 + m.x165) - m.x1) + 1.61826355914336e-6*log(
100 + 0.77*m.x166*(3115.6025 + m.x1)/(0.000394451614430133 + m.x166) - m.x1) +
1.91672318134926e-5*log(100 + 0.77*m.x167*(3115.6025 + m.x1)/(0.000458693143304774 + m.x167) -
m.x1) + 5.93679056095872e-6*log(100 + 0.77*m.x168*(3115.6025 + m.x1)/(0.00723105029860804 +
m.x168) - m.x1) + 1.40650048404302e-5*log(100 + 0.77*m.x169*(3115.6025 + m.x1)/(
0.00125255833504483 + m.x169) - m.x1) + 3.71093683852188e-6*log(100 + 0.77*m.x170*(3115.6025 +
m.x1)/(0.000702087563679832 + m.x170) - m.x1) + 8.79167699815788e-6*log(100 + 0.77*m.x171*(
3115.6025 + m.x1)/(0.000200325317210912 + m.x171) - m.x1) + 1.71573347854404e-6*log(100 + 0.77*
m.x172*(3115.6025 + m.x1)/(0.0014128827573583 + m.x172) - m.x1) + 2.5319011341492e-7*log(100 +
0.77*m.x173*(3115.6025 + m.x1)/(0.00053228318911196 + m.x173) - m.x1) + 1.8551038498488e-7*log(
100 + 0.77*m.x174*(3115.6025 + m.x1)/(0.000377688899663851 + m.x174) - m.x1) + 5.745935840472e-8*
log(368.627863474912 - 0.913779802309533*m.x1) + 1.3612847878512e-7*log(100 + 0.77*m.x175*(
3115.6025 + m.x1)/(0.000160639196334586 + m.x175) - m.x1) + 1.55570744816496e-6*log(100 + 0.77*
m.x176*(3115.6025 + m.x1)/(0.000666587889373534 + m.x176) - m.x1) + 4.8185933905872e-7*log(
135.61051678515 - 0.988570263124019*m.x1) + 1.14158547275904e-6*log(100 + 0.77*m.x177*(3115.6025
+ m.x1)/(0.000509986775800951 + m.x177) - m.x1) + 3.053181545406e-7*log(100 + 0.77*m.x178*(
3115.6025 + m.x1)/(0.000409659463712101 + m.x178) - m.x1) + 7.2333731246292e-7*log(100 + 0.77*
m.x179*(3115.6025 + m.x1)/(0.00010370518389028 + m.x179) - m.x1) + 1.4427350740116e-7*log(100 +
0.77*m.x180*(3115.6025 + m.x1)/(0.000231008038688752 + m.x180) - m.x1) + 6.3733479048432e-7*log(
100 + 0.77*m.x181*(3115.6025 + m.x1)/(0.000384659283695111 + m.x181) - m.x1) + 1.9740584524212e-7
*log(100 + 0.77*m.x182*(3115.6025 + m.x1)/(0.000343700012896749 + m.x182) - m.x1) +
4.6767929904756e-7*log(100 + 0.77*m.x183*(3115.6025 + m.x1)/(0.000388746395185924 + m.x183) -
m.x1) + 1.25285601015e-7*log(361.799939823277 - 0.915971328234819*m.x1) + 2.968172550522e-7*log(
248.001154118093 - 0.952496778996007*m.x1) + 5.9360137281e-8*log(470.110557767541 -
0.881207388372701*m.x1) + 1.79923508157528e-6*log(100 + 0.77*m.x184*(3115.6025 + m.x1)/(
0.000275666343417648 + m.x184) - m.x1) + 4.26261456332172e-6*log(100 + 0.77*m.x185*(3115.6025 +
m.x1)/(8.35799287817407e-5 + m.x185) - m.x1) + 8.3981608575372e-7*log(100 + 0.77*m.x186*(
3115.6025 + m.x1)/(0.00065332282343346 + m.x186) - m.x1) + 4.6172665749852e-7*log(100 + 0.77*
m.x187*(3115.6025 + m.x1)/(2.75606934013358e-5 + m.x187) - m.x1) + 1.1756568780872e-6*log(100 +
0.77*m.x188*(3115.6025 + m.x1)/(0.000592771973025286 + m.x188) - m.x1) + 5.4109597701466e-6*log(
100 + 0.77*m.x189*(3115.6025 + m.x1)/(0.00375087229637144 + m.x189) - m.x1) + 3.9645683588494e-6*
log(100 + 0.77*m.x190*(3115.6025 + m.x1)/(0.000725545338711303 + m.x190) - m.x1) +
1.2279713880568e-6*log(119.646430506762 - 0.99369417937405*m.x1) + 2.9092189206884e-6*log(100 +
0.77*m.x191*(3115.6025 + m.x1)/(0.000946089789024766 + m.x191) - m.x1) + 2.5744299665114e-6*log(
100 + 0.77*m.x192*(3115.6025 + m.x1)/(0.000277349580164474 + m.x192) - m.x1) + 1.8862649033134e-6
*log(100 + 0.77*m.x193*(3115.6025 + m.x1)/(0.000163799222157577 + m.x193) - m.x1) +
5.842450315636e-7*log(100 + 0.77*m.x194*(3115.6025 + m.x1)/(0.000544580404908056 + m.x194) - m.x1
) + 1.3841500527984e-6*log(100 + 0.77*m.x195*(3115.6025 + m.x1)/(0.00024865868170142 + m.x195) -
m.x1) + 1.6394316473819e-5*log(100 + 0.77*m.x196*(3115.6025 + m.x1)/(0.000289155952586038 +
m.x196) - m.x1) + 5.0779175752768e-6*log(100 + 0.77*m.x197*(3115.6025 + m.x1)/(
0.00455838781941915 + m.x197) - m.x1) + 1.20302265242856e-5*log(100 + 0.77*m.x198*(3115.6025 +
m.x1)/(0.000789601291900758 + m.x198) - m.x1) + 3.1740771717622e-6*log(100 + 0.77*m.x199*(
3115.6025 + m.x1)/(0.000442589563933731 + m.x199) - m.x1) + 7.5197887961022e-6*log(100 + 0.77*
m.x200*(3115.6025 + m.x1)/(0.000126283243538118 + m.x200) - m.x1) + 1.4675190400826e-6*log(100 +
0.77*m.x201*(3115.6025 + m.x1)/(0.000890668337993608 + m.x201) - m.x1) + 2.165612065298e-7*log(
100 + 0.77*m.x202*(3115.6025 + m.x1)/(0.00033554644284477 + m.x202) - m.x1) + 1.586726758572e-7*
log(100 + 0.77*m.x203*(3115.6025 + m.x1)/(0.000238091619980701 + m.x203) - m.x1) +
4.91467372668e-8*log(499.876211729988 - 0.871653649099977*m.x1) + 1.164348291928e-7*log(100 +
0.77*m.x204*(3115.6025 + m.x1)/(0.00010126547675015 + m.x204) - m.x1) + 1.3306439080024e-6*log(
100 + 0.77*m.x205*(3115.6025 + m.x1)/(0.00042021089468532 + m.x205) - m.x1) + 4.121489517768e-7*
log(156.002187849084 - 0.982025246208692*m.x1) + 9.764327840576e-7*log(100 + 0.77*m.x206*(
3115.6025 + m.x1)/(0.000321490988290235 + m.x206) - m.x1) + 2.61147905939e-7*log(100 + 0.77*
m.x207*(3115.6025 + m.x1)/(0.000258245570474664 + m.x207) - m.x1) + 6.186924086498e-7*log(100 +
0.77*m.x208*(3115.6025 + m.x1)/(6.53747972334079e-5 + m.x208) - m.x1) + 1.234015199554e-7*log(100
+ 0.77*m.x209*(3115.6025 + m.x1)/(0.000145625349881665 + m.x209) - m.x1) + 5.451318352408e-7*
log(100 + 0.77*m.x210*(3115.6025 + m.x1)/(0.000242485686174776 + m.x210) - m.x1) +
1.688472248978e-7*log(100 + 0.77*m.x211*(3115.6025 + m.x1)/(0.000216665337347236 + m.x211) - m.x1
) + 4.000203321714e-7*log(100 + 0.77*m.x212*(3115.6025 + m.x1)/(0.000245062163791024 + m.x212) -
m.x1) + 1.07160585975e-7*log(490.323466912148 - 0.874719747813738*m.x1) + 2.53876827993e-7*log(
100 + 0.77*m.x213*(3115.6025 + m.x1)/(0.000479394172170398 + m.x213) - m.x1) + 5.0772531265e-8*
log(638.410997400727 - 0.82718880300015*m.x1) + 1.5389405014332e-6*log(100 + 0.77*m.x214*(
3115.6025 + m.x1)/(0.000173777535789056 + m.x214) - m.x1) + 3.6459439128718e-6*log(100 + 0.77*
m.x215*(3115.6025 + m.x1)/(5.26880209061672e-5 + m.x215) - m.x1) + 7.183202469518e-7*log(100 +
0.77*m.x216*(3115.6025 + m.x1)/(0.000411848718720832 + m.x216) - m.x1) + 3.949288567638e-7*log(
100 + 0.77*m.x217*(3115.6025 + m.x1)/(1.73740084645212e-5 + m.x217) - m.x1) + 2.3027003834052e-7*
log(310.644288882208 - 0.932390512306301*m.x1) + 1.05981765339381e-6*log(135.946817505807 -
0.988462322293743*m.x1) + 7.7652019480479e-7*log(274.907218484447 - 0.943860868488696*m.x1) +
2.4051662000988e-7*log(122.393839487144 - 0.992812356683131*m.x1) + 5.6981417358594e-7*log(
236.453447120506 - 0.956203191157888*m.x1) + 5.0424073396149e-7*log(509.329744330999 -
0.868619394055885*m.x1) + 3.6945328156719e-7*log(719.780347180692 - 0.801072072839622*m.x1) +
1.1443315505226e-7*log(327.517012158458 - 0.926974955194555*m.x1) + 2.7110655469944e-7*log(
547.744519196025 - 0.856289587906023*m.x1) + 3.21107285072415e-6*log(495.371037182199 -
0.873099653379339*m.x1) + 9.9458634278688e-7*log(129.657584748611 - 0.990480947184819*m.x1) +
2.35630035822996e-6*log(261.674211430671 - 0.948108203331243*m.x1) + 6.2169063581427e-7*log(
373.959049138861 - 0.912068677201645*m.x1) + 1.47286345758327e-6*log(846.602134340364 -
0.760366691726443*m.x1) + 2.8743562167141e-7*log(244.433016330596 - 0.953642027078038*m.x1) +
4.241676143793e-8*log(448.653645634299 - 0.888094310607884*m.x1) + 3.107842418502e-8*log(
563.774842073764 - 0.851144412012199*m.x1) + 9.62612585838e-9*log(545.832820860844 -
0.856903176557072*m.x1) + 2.280550820748e-8*log(964.57779102352 - 0.722500610708998*m.x1) +
2.6062657347084e-7*log(386.804719169038 - 0.90794566406689*m.x1) + 8.072555581188e-8*log(
163.697577366872 - 0.979555293922485*m.x1) + 1.9124901050016e-7*log(461.599091032222 -
0.88393927305161*m.x1) + 5.114973546615e-8*log(534.130728924762 - 0.860659140912629*m.x1) +
1.2118019067993e-7*log(1218.02524091695 - 0.641152797599519*m.x1) + 2.417003911689e-8*log(
775.353772232083 - 0.783234936988245*m.x1) + 1.0677224872428e-7*log(556.971636607364 -
0.853328004260054*m.x1) + 3.307126226673e-8*log(600.07781259564 - 0.839492421579569*m.x1) +
7.834998369249e-8*log(553.074587453001 - 0.854578821446895*m.x1) + 2.098900852875e-8*log(
535.421327803972 - 0.860244903576765*m.x1) + 4.972558576005e-8*log(355.163421699796 -
0.918101419645222*m.x1) + 9.94456200525e-9*log(695.545998372881 - 0.808850455610791*m.x1) +
3.0142458643662e-7*log(692.989141812062 - 0.809671117605002*m.x1) + 7.1411281663263e-7*log(
1347.27032802532 - 0.599669621517727*m.x1) + 1.4069379756063e-7*log(391.919406907936 -
0.906304027260237*m.x1) + 7.735274184483e-8*log(1939.03334836773 - 0.409734281453512*m.x1) +
2.2272443732888e-6*log(100 + 0.77*m.x218*(3115.6025 + m.x1)/(0.000274060001623156 + m.x218) -
m.x1) + 1.02508903122814e-5*log(100 + 0.77*m.x219*(3115.6025 + m.x1)/(0.00173416442478794 +
m.x219) - m.x1) + 7.5107480204026e-6*log(100 + 0.77*m.x220*(3115.6025 + m.x1)/(
0.000335445948448057 + m.x220) - m.x1) + 2.3263525400872e-6*log(100 + 0.77*m.x221*(3115.6025 +
m.x1)/(0.00279966370191667 + m.x221) - m.x1) + 5.5114222461836e-6*log(100 + 0.77*m.x222*(
3115.6025 + m.x1)/(0.000437411653915557 + m.x222) - m.x1) + 4.8771752747006e-6*log(100 + 0.77*
m.x223*(3115.6025 + m.x1)/(0.000128228779107299 + m.x223) - m.x1) + 3.5734685610586e-6*log(100 +
0.77*m.x224*(3115.6025 + m.x1)/(7.57303265558781e-5 + m.x224) - m.x1) + 1.1068335357244e-6*log(
100 + 0.77*m.x225*(3115.6025 + m.x1)/(0.000251779290257831 + m.x225) - m.x1) + 2.6222280278736e-6
*log(100 + 0.77*m.x226*(3115.6025 + m.x1)/(0.00011496393522606 + m.x226) - m.x1) +
3.1058508482201e-5*log(100 + 0.77*m.x227*(3115.6025 + m.x1)/(0.000133687293666454 + m.x227) -
m.x1) + 9.6199525204672e-6*log(100 + 0.77*m.x228*(3115.6025 + m.x1)/(0.00210750816509285 + m.x228
) - m.x1) + 2.27908795797624e-5*log(100 + 0.77*m.x229*(3115.6025 + m.x1)/(0.000365061340932758 +
m.x229) - m.x1) + 6.0131877361138e-6*log(100 + 0.77*m.x230*(3115.6025 + m.x1)/(
0.000204625222058021 + m.x230) - m.x1) + 1.42459994889738e-5*log(100 + 0.77*m.x231*(3115.6025 +
m.x1)/(5.83853277549572e-5 + m.x231) - m.x1) + 2.7801679092254e-6*log(100 + 0.77*m.x232*(
3115.6025 + m.x1)/(0.000411788305223751 + m.x232) - m.x1) + 4.102682829542e-7*log(100 + 0.77*
m.x233*(3115.6025 + m.x1)/(0.000155135301356022 + m.x233) - m.x1) + 3.006003121188e-7*log(100 +
0.77*m.x234*(3115.6025 + m.x1)/(0.000110078398992706 + m.x234) - m.x1) + 9.31069226772e-8*log(100
+ 0.77*m.x235*(3115.6025 + m.x1)/(0.000115570007588387 + m.x235) - m.x1) + 2.205820618312e-7*
log(100 + 0.77*m.x236*(3115.6025 + m.x1)/(4.68187059871874e-5 + m.x236) - m.x1) +
2.5208623469896e-6*log(100 + 0.77*m.x237*(3115.6025 + m.x1)/(0.000194278750885906 + m.x237) -
m.x1) + 7.808030139672e-7*log(100 + 0.77*m.x238*(3115.6025 + m.x1)/(0.000967158090120206 + m.x238
) - m.x1) + 1.8498206957504e-6*log(100 + 0.77*m.x239*(3115.6025 + m.x1)/(0.000148636954481809 +
m.x239) - m.x1) + 4.94736359681e-7*log(100 + 0.77*m.x240*(3115.6025 + m.x1)/(0.000119396301924079
+ m.x240) - m.x1) + 1.1720929904342e-6*log(100 + 0.77*m.x241*(3115.6025 + m.x1)/(
3.02251419621976e-5 + m.x241) - m.x1) + 2.337802347766e-7*log(100 + 0.77*m.x242*(3115.6025 + m.x1
)/(6.73278856644583e-5 + m.x242) - m.x1) + 1.0327348356232e-6*log(100 + 0.77*m.x243*(3115.6025 +
m.x1)/(0.000112109935305285 + m.x243) - m.x1) + 3.198756700262e-7*log(100 + 0.77*m.x244*(
3115.6025 + m.x1)/(0.000100172250725714 + m.x244) - m.x1) + 7.578257318406e-7*log(100 + 0.77*
m.x245*(3115.6025 + m.x1)/(0.0001133011344372 + m.x245) - m.x1) + 2.03012304525e-7*log(100 + 0.77
*m.x246*(3115.6025 + m.x1)/(0.000118964217618766 + m.x246) - m.x1) + 4.80961534947e-7*log(100 +
0.77*m.x247*(3115.6025 + m.x1)/(0.000221641328507187 + m.x247) - m.x1) + 9.6186937435e-8*log(100
+ 0.77*m.x248*(3115.6025 + m.x1)/(7.98854666975635e-5 + m.x248) - m.x1) + 2.9154735846228e-6*
log(100 + 0.77*m.x249*(3115.6025 + m.x1)/(8.03436631751567e-5 + m.x249) - m.x1) +
6.9071241929722e-6*log(100 + 0.77*m.x250*(3115.6025 + m.x1)/(2.43595847174932e-5 + m.x250) - m.x1
) + 1.3608347452922e-6*log(100 + 0.77*m.x251*(3115.6025 + m.x1)/(0.000190412613378249 + m.x251)
- m.x1) + 7.481800944402e-7*log(100 + 0.77*m.x252*(3115.6025 + m.x1)/(8.03263481518263e-6 +
m.x252) - m.x1) + 3.48578463039596e-6*log(100 + 0.77*m.x253*(3115.6025 + m.x1)/(
0.000115610604617764 + m.x253) - m.x1) + 1.60433207630746e-5*log(100 + 0.77*m.x254*(3115.6025 +
m.x1)/(0.000731547093588758 + m.x254) - m.x1) + 1.17548169955132e-5*log(100 + 0.77*m.x255*(
3115.6025 + m.x1)/(0.000141505906323334 + m.x255) - m.x1) + 3.64089546094324e-6*log(100 + 0.77*
m.x256*(3115.6025 + m.x1)/(0.00118102171563895 + m.x256) - m.x1) + 8.62574003453462e-6*log(100 +
0.77*m.x257*(3115.6025 + m.x1)/(0.000184519541255673 + m.x257) - m.x1) + 7.63310161030727e-6*log(
100 + 0.77*m.x258*(3115.6025 + m.x1)/(5.40925585426253e-5 + m.x258) - m.x1) + 5.59271444872837e-6
*log(100 + 0.77*m.x259*(3115.6025 + m.x1)/(3.19463941807333e-5 + m.x259) - m.x1) +
1.73226762788398e-6*log(100 + 0.77*m.x260*(3115.6025 + m.x1)/(0.000106211617180695 + m.x260) -
m.x1) + 4.10396015209512e-6*log(100 + 0.77*m.x261*(3115.6025 + m.x1)/(4.84968619353583e-5 +
m.x261) - m.x1) + 4.86086182588105e-5*log(100 + 0.77*m.x262*(3115.6025 + m.x1)/(
5.63952009010913e-5 + m.x262) - m.x1) + 1.50558614237142e-5*log(100 + 0.77*m.x263*(3115.6025 +
m.x1)/(0.000889039961177141 + m.x263) - m.x1) + 3.56692326648611e-5*log(100 + 0.77*m.x264*(
3115.6025 + m.x1)/(0.000153998985980601 + m.x264) - m.x1) + 9.41103618516721e-6*log(100 + 0.77*
m.x265*(3115.6025 + m.x1)/(8.63199500184675e-5 + m.x265) - m.x1) + 2.22959306391542e-5*log(100 +
0.77*m.x266*(3115.6025 + m.x1)/(2.46295081463161e-5 + m.x266) - m.x1) + 4.35114650377943e-6*log(
100 + 0.77*m.x267*(3115.6025 + m.x1)/(0.000173710481863398 + m.x267) - m.x1) + 6.4209697517339e-7
*log(100 + 0.77*m.x268*(3115.6025 + m.x1)/(6.54429171754531e-5 + m.x268) - m.x1) +
4.7045935346946e-7*log(100 + 0.77*m.x269*(3115.6025 + m.x1)/(4.64359271237298e-5 + m.x269) - m.x1
) + 1.4571848690874e-7*log(100 + 0.77*m.x270*(3115.6025 + m.x1)/(4.87525300074436e-5 + m.x270) -
m.x1) + 3.4522550380804e-7*log(100 + 0.77*m.x271*(3115.6025 + m.x1)/(1.97501965793709e-5 + m.x271
) - m.x1) + 3.94531616281732e-6*log(100 + 0.77*m.x272*(3115.6025 + m.x1)/(8.19553518254294e-5 +
m.x272) - m.x1) + 1.22200831578924e-6*log(100 + 0.77*m.x273*(3115.6025 + m.x1)/(
0.000407989968975871 + m.x273) - m.x1) + 2.89509163321568e-6*log(100 + 0.77*m.x274*(3115.6025 +
m.x1)/(6.27016276523772e-5 + m.x274) - m.x1) + 7.7429509727645e-7*log(100 + 0.77*m.x275*(
3115.6025 + m.x1)/(5.03666298358569e-5 + m.x275) - m.x1) + 1.83440298713939e-6*log(100 + 0.77*
m.x276*(3115.6025 + m.x1)/(1.27502988988239e-5 + m.x276) - m.x1) + 3.6588151666147e-7*log(100 +
0.77*m.x277*(3115.6025 + m.x1)/(2.8401873761961e-5 + m.x277) - m.x1) + 1.61629826545444e-6*log(
100 + 0.77*m.x278*(3115.6025 + m.x1)/(4.72929188044174e-5 + m.x278) - m.x1) + 5.0062656239579e-7*
log(100 + 0.77*m.x279*(3115.6025 + m.x1)/(4.22570765661979e-5 + m.x279) - m.x1) +
1.18604735082027e-6*log(100 + 0.77*m.x280*(3115.6025 + m.x1)/(4.77954191731146e-5 + m.x280) -
m.x1) + 3.1772767253625e-7*log(100 + 0.77*m.x281*(3115.6025 + m.x1)/(5.01843576053702e-5 + m.x281
) - m.x1) + 7.5273658626615e-7*log(100 + 0.77*m.x282*(3115.6025 + m.x1)/(9.34980947428967e-5 +
m.x282) - m.x1) + 1.5053891354575e-7*log(100 + 0.77*m.x283*(3115.6025 + m.x1)/(
3.36992156840782e-5 + m.x283) - m.x1) + 4.56290882737626e-6*log(100 + 0.77*m.x284*(3115.6025 +
m.x1)/(3.38925031813217e-5 + m.x284) - m.x1) + 1.08101058154415e-5*log(100 + 0.77*m.x285*(
3115.6025 + m.x1)/(1.02759479703261e-5 + m.x285) - m.x1) + 2.12979630638549e-6*log(100 + 0.77*
m.x286*(3115.6025 + m.x1)/(8.03244443885601e-5 + m.x286) - m.x1) + 1.17095129086209e-6*log(100 +
0.77*m.x287*(3115.6025 + m.x1)/(3.38851989402637e-6 + m.x287) - m.x1) + 1.8183738183868e-7*log(
193.364173093206 - 0.970033348896977*m.x1) + 8.3690639350379e-7*log(115.254735565526 -
0.995103760648052*m.x1) + 6.1319483935361e-7*log(176.825857180065 - 0.975341572880345*m.x1) +
1.8992880179492e-7*log(109.471992936955 - 0.996959819830368*m.x1) + 4.4996525907646e-7*log(
159.35999423299 - 0.980947507189062*m.x1) + 3.9818386942891e-7*log(291.087251996003 -
0.938667640690363*m.x1) + 2.9174623809521e-7*log(406.623520914578 - 0.901584518270679*m.x1) +
9.036444975734e-8*log(201.277457067861 - 0.967493460071411*m.x1) + 2.1408476092296e-7*log(
311.19442233872 - 0.932213938607791*m.x1) + 2.53568846505985e-6*log(283.883103312431 -
0.940979921760741*m.x1) + 7.8539517293792e-7*log(112.566524343699 - 0.995966582918168*m.x1) +
1.86070011997164e-6*log(170.777277381972 - 0.97728295654469*m.x1) + 4.9093055416493e-7*log(
223.415319381483 - 0.960387976520919*m.x1) + 1.16307634663593e-6*log(483.165743746284 -
0.877017127908235*m.x1) + 2.2697933812219e-7*log(162.956712613236 - 0.979793085731175*m.x1) +
3.349525149487e-8*log(260.157811542521 - 0.948594914934585*m.x1) + 2.454170471418e-8*log(
319.709287061812 - 0.929480963293035*m.x1) + 7.60146450642e-9*log(310.18391133055 -
0.932538277482269*m.x1) + 1.800882969332e-8*log(559.688690006188 - 0.852455924654641*m.x1) +
2.0580903229556e-7*log(229.632746466765 - 0.958392398752163*m.x1) + 6.374656391292e-8*log(
127.215287247597 - 0.991264839706735*m.x1) + 1.5102363989344e-7*log(266.673373771106 -
0.946503646157972*m.x1) + 4.039142063785e-8*log(304.020979998872 - 0.934516364010212*m.x1) +
9.569238257287e-8*log(744.280921668034 - 0.793208240888228*m.x1) + 1.908635905751e-8*log(
439.474870738743 - 0.891040377988289*m.x1) + 8.431486050452e-8*log(316.086561642226 -
0.930643732105676*m.x1) + 2.611538951407e-8*log(339.269581293755 - 0.923202789414325*m.x1) +
6.187064545791e-8*log(314.017393171395 - 0.931307863191343*m.x1) + 1.657439407125e-8*log(
304.698766948572 - 0.934298817981892*m.x1) + 3.926681208795e-8*log(214.392130109138 -
0.96328410632963*m.x1) + 7.85292403475e-9*log(392.620228975356 - 0.9060790877606*m.x1) +
2.3802600639858e-7*log(391.153960662165 - 0.906549708872629*m.x1) + 5.6391359401217e-7*log(
850.86177688669 - 0.758999494676651*m.x1) + 1.1110169596417e-7*log(232.119855144384 -
0.957594123401691*m.x1) + 6.108315331197e-8*log(1491.69160837479 - 0.55331541543737*m.x1) +
1.75878843630284e-6*log(100 + 0.77*m.x288*(3115.6025 + m.x1)/(0.00320020232823025 + m.x288) -
m.x1) + 8.09482226524927e-6*log(105.908941656468 - 0.998103435320627*m.x1) + 5.93101364389693e-6*
log(100 + 0.77*m.x289*(3115.6025 + m.x1)/(0.00391700685565556 + m.x289) - m.x1) +
1.83705119893396e-6*log(103.663543949195 - 0.998824129859571*m.x1) + 4.35220572579398e-6*log(100
+ 0.77*m.x290*(3115.6025 + m.x1)/(0.00510766177101759 + m.x290) - m.x1) + 3.85135981387583e-6*
log(100 + 0.77*m.x291*(3115.6025 + m.x1)/(0.00149732917979604 + m.x291) - m.x1) +
2.82186151553773e-6*log(100 + 0.77*m.x292*(3115.6025 + m.x1)/(0.000884304042641739 + m.x292) -
m.x1) + 8.7403342304542e-7*log(140.116885035848 - 0.987123875707556*m.x1) + 2.07069524479848e-6*
log(100 + 0.77*m.x293*(3115.6025 + m.x1)/(0.00134243541922925 + m.x293) - m.x1) +
2.45259775812781e-5*log(100 + 0.77*m.x294*(3115.6025 + m.x1)/(0.00156106832778344 + m.x294) -
m.x1) + 7.59658951379296e-6*log(104.864298820897 - 0.998438729324137*m.x1) + 1.79972776848313e-5*
log(100 + 0.77*m.x295*(3115.6025 + m.x1)/(0.00426282619236897 + m.x295) - m.x1) +
4.74843496404409e-6*log(100 + 0.77*m.x296*(3115.6025 + m.x1)/(0.00238941147254734 + m.x296) -
m.x1) + 1.12496407961671e-5*log(100 + 0.77*m.x297*(3115.6025 + m.x1)/(0.000681766258152549 +
m.x297) - m.x1) + 2.19541565728847e-6*log(100 + 0.77*m.x298*(3115.6025 + m.x1)/(
0.00480845758341298 + m.x298) - m.x1) + 3.2397662353331e-7*log(164.437067242418 -
0.979317943401824*m.x1) + 2.3737509868434e-7*log(189.824673314027 - 0.971169405174753*m.x1) +
7.352375918346e-8*log(185.708911713758 - 0.972490421446973*m.x1) + 1.7418707361316e-7*log(
301.02255994106 - 0.935478752523449*m.x1) + 1.99064979064228e-6*log(100 + 0.77*m.x299*(3115.6025
+ m.x1)/(0.00226859558939085 + m.x299) - m.x1) + 6.1657684646796e-7*log(110.574382290427 -
0.996605991203812*m.x1) + 1.46074821781472e-6*log(100 + 0.77*m.x300*(3115.6025 + m.x1)/(
0.00173563571837019 + m.x300) - m.x1) + 3.9067854379205e-7*log(183.057292642768 -
0.973341498909836*m.x1) + 9.2556686754731e-7*log(100 + 0.77*m.x301*(3115.6025 + m.x1)/(
0.00035293938957031 + m.x301) - m.x1) + 1.8460927704763e-7*log(243.449327510641 -
0.953957756963335*m.x1) + 8.1551989015876e-7*log(100 + 0.77*m.x302*(3115.6025 + m.x1)/(
0.00130910922373505 + m.x302) - m.x1) + 2.5259627378291e-7*log(198.343400264271 -
0.968435190219461*m.x1) + 5.9843237225283e-7*log(100 + 0.77*m.x303*(3115.6025 + m.x1)/(
0.00132301887203383 + m.x303) - m.x1) + 1.6031276042625e-7*log(183.348480295548 -
0.973248037804711*m.x1) + 3.7980097564335e-7*log(145.468442132924 - 0.985406212078427*m.x1) +
7.595595495175e-8*log(222.047016072243 - 0.960827154275219*m.x1) + 2.30226251258154e-6*log(100 +
0.77*m.x304*(3115.6025 + m.x1)/(0.000938174036447789 + m.x304) - m.x1) + 5.45434991525821e-6*log(
100 + 0.77*m.x305*(3115.6025 + m.x1)/(0.000284447198664313 + m.x305) - m.x1) +
1.07461060063421e-6*log(100 + 0.77*m.x306*(3115.6025 + m.x1)/(0.00222345064966968 + m.x306) -
m.x1) + 5.9081550015561e-7*log(100 + 0.77*m.x307*(3115.6025 + m.x1)/(9.37971848687272e-5 + m.x307
) - m.x1) + 2.75262012741516e-6*log(100 + 0.77*m.x308*(3115.6025 + m.x1)/(0.000497933292970139 +
m.x308) - m.x1) + 1.26689317687422e-5*log(100 + 0.77*m.x309*(3115.6025 + m.x1)/(
0.00315076332727193 + m.x309) - m.x1) + 9.28242828710157e-6*log(100 + 0.77*m.x310*(3115.6025 +
m.x1)/(0.000609464003265626 + m.x310) - m.x1) + 2.87510652270804e-6*log(100 + 0.77*m.x311*(
3115.6025 + m.x1)/(0.00508664437731854 + m.x311) - m.x1) + 6.81148956417702e-6*log(100 + 0.77*
m.x312*(3115.6025 + m.x1)/(0.000794723140654341 + m.x312) - m.x1) + 6.02763261502767e-6*log(100
+ 0.77*m.x313*(3115.6025 + m.x1)/(0.000232975909860184 + m.x313) - m.x1) + 4.41639974662077e-6*
log(100 + 0.77*m.x314*(3115.6025 + m.x1)/(0.000137592682829811 + m.x314) - m.x1) +
1.36792006511358e-6*log(100 + 0.77*m.x315*(3115.6025 + m.x1)/(0.000457451982621508 + m.x315) -
m.x1) + 3.24077489419752e-6*log(100 + 0.77*m.x316*(3115.6025 + m.x1)/(0.000208875321100784 +
m.x316) - m.x1) + 3.83847756451445e-5*log(100 + 0.77*m.x317*(3115.6025 + m.x1)/(
0.000242893359006603 + m.x317) - m.x1) + 1.1889164588399e-5*log(100 + 0.77*m.x318*(3115.6025 +
m.x1)/(0.00382908295406458 + m.x318) - m.x1) + 2.81669288763827e-5*log(100 + 0.77*m.x319*(
3115.6025 + m.x1)/(0.000663271526491096 + m.x319) - m.x1) + 7.43161450573641e-6*log(100 + 0.77*
m.x320*(3115.6025 + m.x1)/(0.000371778844197042 + m.x320) - m.x1) + 1.76064312469634e-5*log(100
+ 0.77*m.x321*(3115.6025 + m.x1)/(0.000106078954747077 + m.x321) - m.x1) + 3.43597058154303e-6*
log(100 + 0.77*m.x322*(3115.6025 + m.x1)/(0.000748168669679125 + m.x322) - m.x1) +
5.0704482491619e-7*log(100 + 0.77*m.x323*(3115.6025 + m.x1)/(0.000281861749261525 + m.x323) -
m.x1) + 3.7150771570866e-7*log(100 + 0.77*m.x324*(3115.6025 + m.x1)/(0.000199998903052942 +
m.x324) - m.x1) + 1.1506954173354e-7*log(100 + 0.77*m.x325*(3115.6025 + m.x1)/(
0.000209976479990677 + m.x325) - m.x1) + 2.7261428086884e-7*log(100 + 0.77*m.x326*(3115.6025 +
m.x1)/(8.50638265588891e-5 + m.x326) - m.x1) + 3.11549846886372e-6*log(100 + 0.77*m.x327*(
3115.6025 + m.x1)/(0.000352980579470926 + m.x327) - m.x1) + 9.6498350947404e-7*log(100 + 0.77*
m.x328*(3115.6025 + m.x1)/(0.00175720721660966 + m.x328) - m.x1) + 2.28616749032928e-6*log(100 +
0.77*m.x329*(3115.6025 + m.x1)/(0.000270055052776176 + m.x329) - m.x1) + 6.1143773793045e-7*log(
100 + 0.77*m.x330*(3115.6025 + m.x1)/(0.000216928385876834 + m.x330) - m.x1) +
1.44857331120219e-6*log(100 + 0.77*m.x331*(3115.6025 + m.x1)/(5.49153629810655e-5 + m.x331) -
m.x1) + 2.8892571796587e-7*log(100 + 0.77*m.x332*(3115.6025 + m.x1)/(0.000122326481861876 +
m.x332) - m.x1) + 1.27634251944324e-6*log(100 + 0.77*m.x333*(3115.6025 + m.x1)/(
0.000203689954501239 + m.x333) - m.x1) + 3.9532986058659e-7*log(100 + 0.77*m.x334*(3115.6025 +
m.x1)/(0.000182000650852623 + m.x334) - m.x1) + 9.3658620830067e-7*log(100 + 0.77*m.x335*(
3115.6025 + m.x1)/(0.000205854216716901 + m.x335) - m.x1) + 2.5090006388625e-7*log(100 + 0.77*
m.x336*(3115.6025 + m.x1)/(0.000216143341872927 + m.x336) - m.x1) + 5.9441362496415e-7*log(100 +
0.77*m.x337*(3115.6025 + m.x1)/(0.000402695015355116 + m.x337) - m.x1) + 1.1887608883575e-7*log(
100 + 0.77*m.x338*(3115.6025 + m.x1)/(0.000145142061072707 + m.x338) - m.x1) +
3.60319297075146e-6*log(100 + 0.77*m.x339*(3115.6025 + m.x1)/(0.000145974547679888 + m.x339) -
m.x1) + 8.53641805279629e-6*log(100 + 0.77*m.x340*(3115.6025 + m.x1)/(4.42583673718464e-5 +
m.x340) - m.x1) + 1.68183660262029e-6*log(100 + 0.77*m.x341*(3115.6025 + m.x1)/(
0.000345956283445014 + m.x341) - m.x1) + 9.2466530012889e-7*log(100 + 0.77*m.x342*(3115.6025 +
m.x1)/(1.45943088413546e-5 + m.x342) - m.x1) + 1.9937603495584e-7*log(337.116032640652 -
0.923894003602625*m.x1) + 9.1762802938952e-7*log(140.874328942254 - 0.986880762567672*m.x1) +
6.7233895742168e-7*log(297.292766602765 - 0.936675886412735*m.x1) + 2.0824789184096e-7*log(
125.483573075406 - 0.991820659703731*m.x1) + 4.9336549127248e-7*log(254.25882364464 -
0.950488284803777*m.x1) + 4.3658966196808e-7*log(555.572368624705 - 0.853777120597154*m.x1) +
3.1988586492248e-7*log(781.652769600945 - 0.781213177996569*m.x1) + 9.908031842192e-8*log(
355.861242670046 - 0.917877443393358*m.x1) + 2.3473375136448e-7*log(597.242366314084 -
0.840402501181045*m.x1) + 2.7802617203068e-6*log(540.385754980185 - 0.858651495182654*m.x1) +
8.6114842762496e-7*log(133.73528945573 - 0.98917214585117*m.x1) + 2.04016912480032e-6*log(
282.505104930273 - 0.941422211296122*m.x1) + 5.3828198766584e-7*log(407.270363915862 -
0.901376904173154*m.x1) + 1.27525785951384e-6*log(915.333422034018 - 0.738306339774083*m.x1) +
2.4887204156872e-7*log(263.204514879424 - 0.9476170291687*m.x1) + 3.672594911656e-8*log(
489.383061907709 - 0.875021585100247*m.x1) + 2.690881119984e-8*log(614.577491492312 -
0.834838529147312*m.x1) + 8.33464405296e-9*log(595.172961948805 - 0.841066707980622*m.x1) +
1.974582466016e-8*log(1038.00461477439 - 0.698933155056079*m.x1) + 2.2565980879328e-7*log(
421.441706101908 - 0.896828396401047*m.x1) + 6.989507342496e-8*log(172.31269511839 -
0.976790140873751*m.x1) + 1.6559023343872e-7*log(503.543143364888 - 0.870476691630307*m.x1) +
4.42872703708e-8*log(582.495725195754 - 0.845135659893791*m.x1) + 1.0492214318056e-7*log(
1296.19682040876 - 0.616062440440088*m.x1) + 2.092728432488e-8*log(840.465204251466 -
0.762336432760127*m.x1) + 9.244723172576e-8*log(607.224377039528 - 0.837198623046577*m.x1) +
2.863428168616e-8*log(653.71932095886 - 0.822275363767085*m.x1) + 6.783821812008e-8*log(
603.009773354627 - 0.838551364188908*m.x1) + 1.817303427e-8*log(583.894696018611 -
0.844686638934649*m.x1) + 4.30541906196e-8*log(386.497448150095 - 0.908044287372958*m.x1) +
8.610357458e-9*log(755.890960453142 - 0.78948182239129*m.x1) + 2.6098418758704e-7*log(
753.168856574781 - 0.790355523024911*m.x1) + 6.1830441735896e-7*log(1425.13050916184 -
0.574679212395729*m.x1) + 1.2181772193496e-7*log(427.078436558279 - 0.895019202045743*m.x1) +
6.697477046136e-8*log(1993.11512355808 - 0.392375913307915*m.x1) + 3.1203660011952e-7*log(
825.500626441516 - 0.767139541568119*m.x1) + 1.43614818364956e-6*log(253.821676807616 -
0.950628593728624*m.x1) + 1.05225466264404e-6*log(727.460064530513 - 0.798607150774044*m.x1) +
3.2592163931088e-7*log(197.663258929557 - 0.968653491923454*m.x1) + 7.7214942381144e-7*log(
612.435114895593 - 0.835526157494227*m.x1) + 6.8329151895324e-7*log(1253.77546341785 -
0.629678220049622*m.x1) + 5.0064240538644e-7*log(1565.13156178004 - 0.529743745622224*m.x1) +
1.5506721109176e-7*log(869.119411862432 - 0.753139429095197*m.x1) + 3.6737375043744e-7*log(
1319.24310584124 - 0.608665384675599*m.x1) + 4.3512923448354e-6*log(1228.83305190904 -
0.637683866311882*m.x1) + 1.34775389436288e-6*log(228.026463886737 - 0.95890795957227*m.x1) +
3.19299878499696e-6*log(689.056338131733 - 0.810933410750655*m.x1) + 8.4244669312452e-7*log(
981.250272507588 - 0.717149324245443*m.x1) + 1.99586237556852e-6*log(1708.54761640287 -
0.483712182024867*m.x1) + 3.8950110394716e-7*log(637.181320846455 - 0.827583486389405*m.x1) +
5.747852444268e-8*log(1140.45340526994 - 0.666050657851911*m.x1) + 4.211405830152e-8*log(
1345.26734846551 - 0.600312508265894*m.x1) + 1.304426579688e-8*log(1316.09032651707 -
0.609677317142649*m.x1) + 3.090351352848e-8*log(1820.87972878856 - 0.447657482368638*m.x1) +
3.5317243386384e-7*log(1010.3724312703 - 0.707802124542429*m.x1) + 1.0939038426288e-7*log(
362.464060898813 - 0.915758168476623*m.x1) + 2.5915959993216e-7*log(1165.73400069356 -
0.657936466319577*m.x1) + 6.93124892274e-8*log(1296.55636528799 - 0.615947039043656*m.x1) +
1.6421005083468e-7*log(2012.48192595162 - 0.386159843577085*m.x1) + 3.275257556364e-8*log(
1631.26886676703 - 0.508515971865144*m.x1) + 1.4468599440528e-7*log(1334.31202758498 -
0.603828785095344*m.x1) + 4.481453303148e-8*log(1401.59969118774 - 0.582231786247527*m.x1) +
1.0617127050924e-7*log(1327.97752237393 - 0.605861940868924*m.x1) + 2.8441993185e-8*log(
1298.7307493202 - 0.615249137423596*m.x1) + 6.73826383638e-8*log(937.204525824623 -
0.731286476428035*m.x1) + 1.3475775399e-8*log(1534.49263325395 - 0.539577775645657*m.x1) +
4.0845740862312e-7*log(1531.19227562112 - 0.540637075615032*m.x1) + 9.6768705563988e-7*log(
2090.8347738355 - 0.361011305570753*m.x1) + 1.9065274216788e-7*log(1021.75459043966 -
0.704148847473432*m.x1) + 1.0481991816708e-7*log(2347.09064275551 - 0.278762087668273*m.x1) +
6.80740688226184e-6*log(100 + 0.77*m.x343*(3115.6025 + m.x1)/(0.000162399166573692 + m.x343) -
m.x1) + 3.133108432017e-5*log(100 + 0.77*m.x344*(3115.6025 + m.x1)/(0.00102761021535188 + m.x344)
- m.x1) + 2.29560430719712e-5*log(100 + 0.77*m.x345*(3115.6025 + m.x1)/(0.000198774509727227 +
m.x345) - m.x1) + 7.11032362765496e-6*log(100 + 0.77*m.x346*(3115.6025 + m.x1)/(
0.00165899091142481 + m.x346) - m.x1) + 1.68452524472295e-5*log(100 + 0.77*m.x347*(3115.6025 +
m.x1)/(0.000259196116269397 + m.x347) - m.x1) + 1.49067237206526e-5*log(100 + 0.77*m.x348*(
3115.6025 + m.x1)/(7.59842616013031e-5 + m.x348) - m.x1) + 1.0922041051192e-5*log(100 + 0.77*
m.x349*(3115.6025 + m.x1)/(4.48753624906532e-5 + m.x349) - m.x1) + 3.38295443417492e-6*log(100 +
0.77*m.x350*(3115.6025 + m.x1)/(0.000149196331665396 + m.x350) - m.x1) + 8.01464506449648e-6*log(
100 + 0.77*m.x351*(3115.6025 + m.x1)/(6.81239405829684e-5 + m.x351) - m.x1) + 9.49280226858643e-5
*log(100 + 0.77*m.x352*(3115.6025 + m.x1)/(7.92188022489237e-5 + m.x352) - m.x1) +
2.9402669855289e-5*log(100 + 0.77*m.x353*(3115.6025 + m.x1)/(0.00124884174097374 + m.x353) - m.x1
) + 6.96586294547383e-5*log(100 + 0.77*m.x354*(3115.6025 + m.x1)/(0.00021632364140928 + m.x354)
- m.x1) + 1.83788613724093e-5*log(100 + 0.77*m.x355*(3115.6025 + m.x1)/(0.000121254343302067 +
m.x355) - m.x1) + 4.35418385737073e-5*log(100 + 0.77*m.x356*(3115.6025 + m.x1)/(
3.45972725365983e-5 + m.x356) - m.x1) + 8.49737657262922e-6*log(100 + 0.77*m.x357*(3115.6025 +
m.x1)/(0.000244012541695467 + m.x357) - m.x1) + 1.25395451278306e-6*log(100 + 0.77*m.x358*(
3115.6025 + m.x1)/(9.1928203667674e-5 + m.x358) - m.x1) + 9.1876251123084e-7*log(100 + 0.77*
m.x359*(3115.6025 + m.x1)/(6.52289285131175e-5 + m.x359) - m.x1) + 2.8457438879196e-7*log(100 +
0.77*m.x360*(3115.6025 + m.x1)/(6.8483079625303e-5 + m.x360) - m.x1) + 6.7419267675416e-7*log(100
+ 0.77*m.x361*(3115.6025 + m.x1)/(2.77432634727662e-5 + m.x361) - m.x1) + 7.70482839509528e-6*
log(100 + 0.77*m.x362*(3115.6025 + m.x1)/(0.000115123356345274 + m.x362) - m.x1) +
2.38646637733896e-6*log(100 + 0.77*m.x363*(3115.6025 + m.x1)/(0.000573106862914264 + m.x363) -
m.x1) + 5.65383946468672e-6*log(100 + 0.77*m.x364*(3115.6025 + m.x1)/(8.80774917424437e-5 +
m.x364) - m.x1) + 1.5121249110283e-6*log(100 + 0.77*m.x365*(3115.6025 + m.x1)/(
7.07504189214491e-5 + m.x365) - m.x1) + 3.58241510694706e-6*log(100 + 0.77*m.x366*(3115.6025 +
m.x1)/(1.79104496648944e-5 + m.x366) - m.x1) + 7.1453191137938e-7*log(100 + 0.77*m.x367*(
3115.6025 + m.x1)/(3.98963455240416e-5 + m.x367) - m.x1) + 3.15647726485976e-6*log(100 + 0.77*
m.x368*(3115.6025 + m.x1)/(6.64327517710652e-5 + m.x368) - m.x1) + 9.7767620999266e-7*log(100 +
0.77*m.x369*(3115.6025 + m.x1)/(5.93588627866824e-5 + m.x369) - m.x1) + 2.31623802235458e-6*log(
100 + 0.77*m.x370*(3115.6025 + m.x1)/(6.7138618169301e-5 + m.x370) - m.x1) + 6.204920194575e-7*
log(100 + 0.77*m.x371*(3115.6025 + m.x1)/(7.04943796210888e-5 + m.x371) - m.x1) +
1.4700231830721e-6*log(100 + 0.77*m.x372*(3115.6025 + m.x1)/(0.000131337542197591 + m.x372) -
m.x1) + 2.939882249705e-7*log(100 + 0.77*m.x373*(3115.6025 + m.x1)/(4.73375652638053e-5 + m.x373)
- m.x1) + 8.91092831259804e-6*log(100 + 0.77*m.x374*(3115.6025 + m.x1)/(4.76090777999194e-5 +
m.x374) - m.x1) + 2.11111117090605e-5*log(100 + 0.77*m.x375*(3115.6025 + m.x1)/(
1.44347085775828e-5 + m.x375) - m.x1) + 4.15929025203646e-6*log(100 + 0.77*m.x376*(3115.6025 +
m.x1)/(0.000112832407263379 + m.x376) - m.x1) + 2.28675684857286e-6*log(100 + 0.77*m.x377*(
3115.6025 + m.x1)/(4.75988174724677e-6 + m.x377) - m.x1) + 8.43089005274e-8*log(268.6379716465 -
0.945873078595071*m.x1) + 3.8803164215845e-7*log(128.327406131493 - 0.990907888239436*m.x1) +
2.8430778199855e-7*log(239.572993467521 - 0.955201925320216*m.x1) + 8.80604873206e-8*log(
117.625736786455 - 0.994342751751401*m.x1) + 2.086263885053e-7*log(208.508539802713 -
0.965172534107701*m.x1) + 1.8461794764005e-7*log(433.744528262518 - 0.892879618544882*m.x1) +
1.3526814078655e-7*log(615.400559449551 - 0.834574352970396*m.x1) + 4.18974763537e-8*log(
282.426455742256 - 0.941447454949001*m.x1) + 9.92603975628e-8*log(466.371952966359 -
0.882407350434993*m.x1) + 1.17567193504175e-6*log(421.946311777256 - 0.896666435536223*m.x1) +
3.641484651856e-7*log(123.358083734547 - 0.992502867829081*m.x1) + 8.627135946402e-7*log(
228.858395401842 - 0.958640938501673*m.x1) + 2.2761994722115e-7*log(320.599393198273 -
0.929195270193077*m.x1) + 5.3926033812615e-7*log(728.407398947384 - 0.798303089387243*m.x1) +
1.0523896817045e-7*log(214.936952702276 - 0.96310923723348*m.x1) + 1.553007306785e-8*log(
382.680820667042 - 0.909269292001453*m.x1) + 1.13787611799e-8*log(480.056384794622 -
0.878015123946453*m.x1) + 3.5244189531e-9*log(464.742740831163 - 0.882930270844512*m.x1) +
8.3497937326e-9*log(836.025395487855 - 0.763761456897067*m.x1) + 9.54233560558e-8*log(
331.215308112915 - 0.925787930869578*m.x1) + 2.95560938106e-8*log(150.321278984262 -
0.98384862029599*m.x1) + 7.00221093392e-8*log(393.527383487514 - 0.905787922725215*m.x1) +
1.872748183175e-8*log(454.782462930071 - 0.886127173498522*m.x1) + 4.436777235785e-8*log(
1075.75197813101 - 0.686817564778881*m.x1) + 8.84939021305e-9*log(664.584532393001 -
0.818788008934708*m.x1) + 3.90925843486e-8*log(474.243770813553 - 0.879880770793594*m.x1) +
1.210840012385e-8*log(511.198542742875 - 0.868019574787581*m.x1) + 2.868632423505e-8*log(
470.917477630236 - 0.880948395172287*m.x1) + 7.68471766875e-9*log(455.879896829577 -
0.885774935400271*m.x1) + 1.820605708725e-8*log(305.111286054903 - 0.934166413701715*m.x1) +
3.64100816125e-9*log(594.114163141561 - 0.841406545558504*m.x1) + 1.103607558219e-7*log(
591.874012592349 - 0.842125555942278*m.x1) + 2.6145853301935e-7*log(1202.70807178794 -
0.646069075953064*m.x1) + 5.151230037935e-8*log(335.44915647061 - 0.924429012856868*m.x1) +
2.832120350835e-8*log(1828.83738966731 - 0.445103350100885*m.x1) + 8.1546287696304e-7*log(100 +
0.77*m.x378*(3115.6025 + m.x1)/(0.00029817724214172 + m.x378) - m.x1) + 3.75316718979612e-6*log(
100 + 0.77*m.x379*(3115.6025 + m.x1)/(0.00188677064343949 + m.x379) - m.x1) + 2.74991656161108e-6
*log(100 + 0.77*m.x380*(3115.6025 + m.x1)/(0.00036496514341188 + m.x380) - m.x1) +
8.5174943437776e-7*log(138.743343180511 - 0.987564734852886*m.x1) + 2.01790171520088e-6*log(100
+ 0.77*m.x381*(3115.6025 + m.x1)/(0.000475903816218067 + m.x381) - m.x1) + 1.78568433201948e-6*
log(100 + 0.77*m.x382*(3115.6025 + m.x1)/(0.000139512893129108 + m.x382) - m.x1) +
1.30835708397588e-6*log(100 + 0.77*m.x383*(3115.6025 + m.x1)/(8.23945843435174e-5 + m.x383) -
m.x1) + 4.0524590394552e-7*log(100 + 0.77*m.x384*(3115.6025 + m.x1)/(0.000273935831397647 +
m.x384) - m.x1) + 9.6007857840288e-7*log(100 + 0.77*m.x385*(3115.6025 + m.x1)/(
0.000125080744904183 + m.x385) - m.x1) + 1.13714781300258e-5*log(100 + 0.77*m.x386*(3115.6025 +
m.x1)/(0.000145451756180262 + m.x386) - m.x1) + 3.52216139938176e-6*log(100 + 0.77*m.x387*(
3115.6025 + m.x1)/(0.00229296857891227 + m.x387) - m.x1) + 8.34444412724592e-6*log(100 + 0.77*
m.x388*(3115.6025 + m.x1)/(0.000397186686153369 + m.x388) - m.x1) + 2.20161354084804e-6*log(100
+ 0.77*m.x389*(3115.6025 + m.x1)/(0.000222632212013906 + m.x389) - m.x1) + 5.21589991103604e-6*
log(100 + 0.77*m.x390*(3115.6025 + m.x1)/(6.35232281558983e-5 + m.x390) - m.x1) +
1.01790524151132e-6*log(100 + 0.77*m.x391*(3115.6025 + m.x1)/(0.000448025616546069 + m.x391) -
m.x1) + 1.5021187542636e-7*log(100 + 0.77*m.x392*(3115.6025 + m.x1)/(0.000168787185445507 +
m.x392) - m.x1) + 1.1005904797704e-7*log(100 + 0.77*m.x393*(3115.6025 + m.x1)/(
0.000119765282188656 + m.x393) - m.x1) + 3.408931679976e-8*log(782.545765405689 -
0.780926557413634*m.x1) + 8.076189793296e-8*log(100 + 0.77*m.x394*(3115.6025 + m.x1)/(
5.09387453448955e-5 + m.x394) - m.x1) + 9.2296547543568e-7*log(100 + 0.77*m.x395*(3115.6025 +
m.x1)/(0.000211375252874563 + m.x395) - m.x1) + 2.8587607168176e-7*log(208.821730508207 -
0.965072010788216*m.x1) + 6.7727642485632e-7*log(100 + 0.77*m.x396*(3115.6025 + m.x1)/(
0.00016171698498591 + m.x396) - m.x1) + 1.811382442098e-7*log(100 + 0.77*m.x397*(3115.6025 + m.x1
)/(0.000129903159230785 + m.x397) - m.x1) + 4.2913940361036e-7*log(100 + 0.77*m.x398*(3115.6025
+ m.x1)/(3.28849500848452e-5 + m.x398) - m.x1) + 8.559415622028e-8*log(100 + 0.77*m.x399*(
3115.6025 + m.x1)/(7.32527298684983e-5 + m.x399) - m.x1) + 3.7811608384656e-7*log(100 + 0.77*
m.x400*(3115.6025 + m.x1)/(0.000121975593403019 + m.x400) - m.x1) + 1.1711635116396e-7*log(100 +
0.77*m.x401*(3115.6025 + m.x1)/(0.000108987394306425 + m.x401) - m.x1) + 2.7746337983148e-7*log(
100 + 0.77*m.x402*(3115.6025 + m.x1)/(0.000123271617886315 + m.x402) - m.x1) + 7.4329067745e-8*
log(100 + 0.77*m.x403*(3115.6025 + m.x1)/(0.000129433051569077 + m.x403) - m.x1) +
1.760948559126e-7*log(100 + 0.77*m.x404*(3115.6025 + m.x1)/(0.000241145733370368 + m.x404) - m.x1
) + 3.5217005223e-8*log(976.093683297966 - 0.718804409966301*m.x1) + 1.06744482354024e-6*log(100
+ 0.77*m.x405*(3115.6025 + m.x1)/(8.74138939182849e-5 + m.x405) - m.x1) + 2.52891125621076e-6*
log(100 + 0.77*m.x406*(3115.6025 + m.x1)/(2.65032246506635e-5 + m.x406) - m.x1) +
4.9824358286676e-7*log(100 + 0.77*m.x407*(3115.6025 + m.x1)/(0.000207168895825208 + m.x407) -
m.x1) + 2.7393181440516e-7*log(100 + 0.77*m.x408*(3115.6025 + m.x1)/(8.73950551754048e-6 + m.x408
) - m.x1) + 1.27625335484744e-6*log(100 + 0.77*m.x409*(3115.6025 + m.x1)/(0.000344826568804241 +
m.x409) - m.x1) + 5.87395496790682e-6*log(100 + 0.77*m.x410*(3115.6025 + m.x1)/(
0.00218195272860088 + m.x410) - m.x1) + 4.30380135804238e-6*log(100 + 0.77*m.x411*(3115.6025 +
m.x1)/(0.000422063324591525 + m.x411) - m.x1) + 1.33304421798136e-6*log(133.575365188442 -
0.989223475976656*m.x1) + 3.15814969207268e-6*log(100 + 0.77*m.x412*(3115.6025 + m.x1)/(
0.000550358165662165 + m.x412) - m.x1) + 2.79471412349978e-6*log(100 + 0.77*m.x413*(3115.6025 +
m.x1)/(0.000161339449973174 + m.x413) - m.x1) + 2.04766539953518e-6*log(100 + 0.77*m.x414*(
3115.6025 + m.x1)/(9.52850781070775e-5 + m.x414) - m.x1) + 6.3423665142772e-7*log(100 + 0.77*
m.x415*(3115.6025 + m.x1)/(0.000316792630231961 + m.x415) - m.x1) + 1.50258649561968e-6*log(100
+ 0.77*m.x416*(3115.6025 + m.x1)/(0.000144649416498018 + m.x416) - m.x1) + 1.77971156296763e-5*
log(100 + 0.77*m.x417*(3115.6025 + m.x1)/(0.000168207438132896 + m.x417) - m.x1) +
5.51241562217536e-6*log(100 + 0.77*m.x418*(3115.6025 + m.x1)/(0.00265169964603287 + m.x418) -
m.x1) + 1.30596071416471e-5*log(100 + 0.77*m.x419*(3115.6025 + m.x1)/(0.000459325873353868 +
m.x419) - m.x1) + 3.44567085389494e-6*log(100 + 0.77*m.x420*(3115.6025 + m.x1)/(
0.000257462646118264 + m.x420) - m.x1) + 8.16322845351294e-6*log(100 + 0.77*m.x421*(3115.6025 +
m.x1)/(7.34613300701079e-5 + m.x421) - m.x1) + 1.59308904929402e-6*log(100 + 0.77*m.x422*(
3115.6025 + m.x1)/(0.000518118468667565 + m.x422) - m.x1) + 2.3509152331346e-7*log(100 + 0.77*
m.x423*(3115.6025 + m.x1)/(0.000195193655951906 + m.x423) - m.x1) + 1.7224969177644e-7*log(100 +
0.77*m.x424*(3115.6025 + m.x1)/(0.000138502358605079 + m.x424) - m.x1) + 5.335203619836e-8*log(
713.834896128684 - 0.802980355764677*m.x1) + 1.2639771360856e-7*log(100 + 0.77*m.x425*(3115.6025
+ m.x1)/(5.89080261468274e-5 + m.x425) - m.x1) + 1.44450203401048e-6*log(100 + 0.77*m.x426*(
3115.6025 + m.x1)/(0.00024444455470623 + m.x426) - m.x1) + 4.4741496622536e-7*log(194.68097059979
- 0.969610702713266*m.x1) + 1.05998241465152e-6*log(100 + 0.77*m.x427*(3115.6025 + m.x1)/(
0.000187017334554172 + m.x427) - m.x1) + 2.834933366003e-7*log(100 + 0.77*m.x428*(3115.6025 +
m.x1)/(0.000150226289413102 + m.x428) - m.x1) + 6.7163155923746e-7*log(100 + 0.77*m.x429*(
3115.6025 + m.x1)/(3.80297450657429e-5 + m.x429) - m.x1) + 1.3396051753858e-7*log(100 + 0.77*
m.x430*(3115.6025 + m.x1)/(8.47129959170147e-5 + m.x430) - m.x1) + 5.9177668801816e-7*log(100 +
0.77*m.x431*(3115.6025 + m.x1)/(0.000141058469281279 + m.x431) - m.x1) + 1.8329483818706e-7*log(
100 + 0.77*m.x432*(3115.6025 + m.x1)/(0.000126038288340387 + m.x432) - m.x1) + 4.3424854688178e-7
*log(100 + 0.77*m.x433*(3115.6025 + m.x1)/(0.000142557254609265 + m.x433) - m.x1) +
1.163299087575e-7*log(100 + 0.77*m.x434*(3115.6025 + m.x1)/(0.000149682634200548 + m.x434) - m.x1
) + 2.756001002361e-7*log(100 + 0.77*m.x435*(3115.6025 + m.x1)/(0.000278872576668224 + m.x435) -
m.x1) + 5.51169431905e-8*log(100 + 0.77*m.x436*(3115.6025 + m.x1)/(0.000100513140244829 + m.x436)
- m.x1) + 1.67062177279164e-6*log(100 + 0.77*m.x437*(3115.6025 + m.x1)/(0.000101089650199842 +
m.x437) - m.x1) + 3.95791343300686e-6*log(100 + 0.77*m.x438*(3115.6025 + m.x1)/(
3.06496094500486e-5 + m.x438) - m.x1) + 7.7978417182286e-7*log(100 + 0.77*m.x439*(3115.6025 +
m.x1)/(0.000239580120190449 + m.x439) - m.x1) + 4.2872141333526e-7*log(100 + 0.77*m.x440*(
3115.6025 + m.x1)/(1.0106786416741e-5 + m.x440) - m.x1) + 9.273520298852e-8*log(358.539933407436
- 0.917017676867496*m.x1) + 4.2681369198781e-7*log(144.935947672355 - 0.98557712427296*m.x1) +
3.1272308985079e-7*log(315.477181856525 - 0.930839321814473*m.x1) + 9.686174432188e-8*log(
128.034017517148 - 0.991002055776644*m.x1) + 2.2947767514194e-7*log(268.780873913804 -
0.945827211939327*m.x1) + 2.0306969658749e-7*log(592.240115646012 - 0.842008049600033*m.x1) +
1.4878759437319e-7*log(829.685004457404 - 0.765796501813885*m.x1) + 4.608494417626e-8*log(
378.760424559288 - 0.910527602748012*m.x1) + 1.0918103615544e-7*log(636.338426930868 -
0.827854026009137*m.x1) + 1.29317515543415e-6*log(576.130636396736 - 0.847178631934999*m.x1) +
4.0054349689888e-7*log(137.098673227772 - 0.988092616684005*m.x1) + 9.4893801033396e-7*log(
299.450015262575 - 0.935983484651018*m.x1) + 2.5036955621227e-7*log(434.053417972084 -
0.892780475695444*m.x1) + 5.9315702858127e-7*log(968.024268423618 - 0.721394411378339*m.x1) +
1.1575713850541e-7*log(278.501752054383 - 0.942707148278902*m.x1) + 1.708223531993e-8*log(
521.879880291747 - 0.864591237074772*m.x1) + 1.251601813302e-8*log(654.639033329393 -
0.821980168096093*m.x1) + 3.87666907038e-9*log(634.152014126405 - 0.828555788446567*m.x1) +
9.18431875948e-9*log(1093.6490504942 - 0.681073227250844*m.x1) + 1.0496049928684e-7*log(
449.2537526685 - 0.887901697129688*m.x1) + 3.251009492388e-8*log(179.393118324343 -
0.974517571376855*m.x1) + 7.702051008416e-8*log(536.964765902902 - 0.859749513648515*m.x1) +
2.059921097615e-8*log(620.749808952132 - 0.83285742999881*m.x1) + 4.880213536193e-8*log(
1354.01132259096 - 0.597505996804482*m.x1) + 9.73384770289e-9*log(890.73349355316 -
0.746202060900529*m.x1) + 4.299971559628e-8*log(646.879588813031 - 0.824470679808149*m.x1) +
1.331858126873e-8*log(695.864610493836 - 0.808748192205573*m.x1) + 3.155339571849e-8*log(
642.42996136499 - 0.825898855401166*m.x1) + 8.45277127875e-9*log(622.229472198603 -
0.832382509579254*m.x1) + 2.002567213005e-8*log(411.739691140382 - 0.89994240563731*m.x1) +
4.00491085525e-9*log(802.850834872808 - 0.774409336597718*m.x1) + 1.2139082622462e-7*log(
800.012103104391 - 0.775320470726163*m.x1) + 2.8759015929463e-7*log(1482.01660573493 -
0.556420754658229*m.x1) + 5.666072742263e-8*log(455.294784271713 - 0.885962736173272*m.x1) +
3.115178278683e-8*log(2030.55035493416 - 0.380360506536326*m.x1) + 1.4513664887868e-7*log(
244.798336775476 - 0.953524771925984*m.x1) + 6.6799130162379e-7*log(124.108480080755 -
0.992262016710811*m.x1) + 4.8943205843361e-7*log(219.621784363451 - 0.961605569271609*m.x1) +
1.5159495555492e-7*log(114.990579362077 - 0.995188545598459*m.x1) + 3.5914754795646e-7*log(
192.815416502162 - 0.970209480669578*m.x1) + 3.1781733690891e-7*log(389.595030572337 -
0.907050071190937*m.x1) + 2.3286230197521e-7*log(552.485529158339 - 0.854767888664122*m.x1) +
7.212594727734e-8*log(256.774613290639 - 0.949680803860364*m.x1) + 1.7087545180296e-7*log(
418.572098212241 - 0.897749440690126*m.x1) + 2.02390357085985e-6*log(379.146592813175 -
0.910403656174632*m.x1) + 6.2687673069792e-7*log(119.873056718799 - 0.993621440245089*m.x1) +
1.48514995789164e-6*log(210.363968705052 - 0.964577005986787*m.x1) + 3.9184470620493e-7*log(
290.040074396276 - 0.939003748264974*m.x1) + 9.2832948667593e-7*log(655.767806524211 -
0.821617871174448*m.x1) + 1.8116748144219e-7*log(198.35403749885 - 0.968431776037267*m.x1) +
2.673481385487e-8*log(344.486646749132 - 0.921528292922755*m.x1) + 1.958838575418e-8*log(
430.76167441788 - 0.893837010845292*m.x1) + 6.06724026642e-9*log(417.122283752445 -
0.898214780687702*m.x1) + 1.437405865332e-8*log(755.551665629421 - 0.789590724224473*m.x1) +
1.6427003597556e-7*log(299.31993900287 - 0.936025234604585*m.x1) + 5.088042167292e-8*log(
142.88596479926 - 0.986235097449286*m.x1) + 1.2054212821344e-7*log(354.043606427674 -
0.918460841385358*m.x1) + 3.223911043785e-8*log(408.265351965367 - 0.90105754762831*m.x1) +
7.637852893287e-8*log(982.98447692449 - 0.716592704966538*m.x1) + 1.523410733751e-8*log(
597.250560461113 - 0.840399871144951*m.x1) + 6.729736306452e-8*log(425.581399511489 -
0.895499698850707*m.x1) + 2.084444947407e-8*log(458.581981464026 - 0.884907660247408*m.x1) +
4.938312493791e-8*log(422.618704492563 - 0.896450620869458*m.x1) + 1.322913907125e-8*log(
409.240663257227 - 0.900744506638049*m.x1) + 3.134148468795e-8*log(276.523652448133 -
0.943342049427636*m.x1) + 6.26794703475e-9*log(533.199969835709 - 0.860957882195913*m.x1) +
1.8998457063858e-7*log(531.173474307521 - 0.861608316751729*m.x1) + 4.5009738077217e-7*log(
1106.40538864313 - 0.676978886541806*m.x1) + 8.867773872417e-8*log(303.024440850973 -
0.934836218403672*m.x1) + 4.875457447197e-8*log(1747.34237541307 - 0.471260414185356*m.x1) +
3.14345285277512e-6*log(100 + 0.77*m.x441*(3115.6025 + m.x1)/(0.000157156288200091 + m.x441) -
m.x1) + 1.44677390510339e-5*log(100 + 0.77*m.x442*(3115.6025 + m.x1)/(0.000994434950427626 +
m.x442) - m.x1) + 1.06004004654177e-5*log(100 + 0.77*m.x443*(3115.6025 + m.x1)/(
0.000192357293430744 + m.x443) - m.x1) + 3.28333056596728e-6*log(100 + 0.77*m.x444*(3115.6025 +
m.x1)/(0.00160543221555821 + m.x444) - m.x1) + 7.77862375156964e-6*log(100 + 0.77*m.x445*(
3115.6025 + m.x1)/(0.000250828254899286 + m.x445) - m.x1) + 6.88347031632794e-6*log(100 + 0.77*
m.x446*(3115.6025 + m.x1)/(7.35311933356927e-5 + m.x446) - m.x1) + 5.04346540383214e-6*log(100 +
0.77*m.x447*(3115.6025 + m.x1)/(4.34266107976881e-5 + m.x447) - m.x1) + 1.56214516787956e-6*log(
100 + 0.77*m.x448*(3115.6025 + m.x1)/(0.000144379692287175 + m.x448) - m.x1) +
3.70091862110064e-6*log(100 + 0.77*m.x449*(3115.6025 + m.x1)/(6.59246341312025e-5 + m.x449) -
m.x1) + 4.38348652991099e-5*log(100 + 0.77*m.x450*(3115.6025 + m.x1)/(7.66613103980958e-5 +
m.x450) - m.x1) + 1.35772560733293e-5*log(100 + 0.77*m.x451*(3115.6025 + m.x1)/(
0.00120852425970865 + m.x451) - m.x1) + 3.21662302940158e-5*log(100 + 0.77*m.x452*(3115.6025 +
m.x1)/(0.000209339870709147 + m.x452) - m.x1) + 8.48679757374262e-6*log(100 + 0.77*m.x453*(
3115.6025 + m.x1)/(0.000117339780268179 + m.x453) - m.x1) + 2.01062929022566e-5*log(100 + 0.77*
m.x454*(3115.6025 + m.x1)/(3.34803376668285e-5 + m.x454) - m.x1) + 3.92382930685946e-6*log(100 +
0.77*m.x455*(3115.6025 + m.x1)/(0.000236134865321051 + m.x455) - m.x1) + 5.7903794479058e-7*log(
100 + 0.77*m.x456*(3115.6025 + m.x1)/(8.89604027786557e-5 + m.x456) - m.x1) + 4.2425650279212e-7*
log(100 + 0.77*m.x457*(3115.6025 + m.x1)/(6.31230843400847e-5 + m.x457) - m.x1) +
1.3140777240828e-7*log(100 + 0.77*m.x458*(3115.6025 + m.x1)/(6.62721787647855e-5 + m.x458) - m.x1
) + 3.1132161331288e-7*log(100 + 0.77*m.x459*(3115.6025 + m.x1)/(2.68476027428296e-5 + m.x459) -
m.x1) + 3.55785473346904e-6*log(100 + 0.77*m.x460*(3115.6025 + m.x1)/(0.000111406725478175 +
m.x460) - m.x1) + 1.10199737897928e-6*log(100 + 0.77*m.x461*(3115.6025 + m.x1)/(
0.000554604738545467 + m.x461) - m.x1) + 2.61077060645696e-6*log(100 + 0.77*m.x462*(3115.6025 +
m.x1)/(8.52340068502479e-5 + m.x462) - m.x1) + 6.982531597619e-7*log(100 + 0.77*m.x463*(3115.6025
+ m.x1)/(6.84663195069478e-5 + m.x463) - m.x1) + 1.65425002244258e-6*log(100 + 0.77*m.x464*(
3115.6025 + m.x1)/(1.73322305077971e-5 + m.x464) - m.x1) + 3.2994904140034e-7*log(100 + 0.77*
m.x465*(3115.6025 + m.x1)/(3.86083359144677e-5 + m.x465) - m.x1) + 1.45756491929368e-6*log(100 +
0.77*m.x466*(3115.6025 + m.x1)/(6.42880434889493e-5 + m.x466) - m.x1) + 4.5146105184338e-7*log(
100 + 0.77*m.x467*(3115.6025 + m.x1)/(5.74425272256582e-5 + m.x467) - m.x1) + 1.06956806681394e-6
*log(100 + 0.77*m.x468*(3115.6025 + m.x1)/(6.49711217673195e-5 + m.x468) - m.x1) +
2.865242877975e-7*log(100 + 0.77*m.x469*(3115.6025 + m.x1)/(6.821854615363e-5 + m.x469) - m.x1)
+ 6.788118660153e-7*log(100 + 0.77*m.x470*(3115.6025 + m.x1)/(0.000127097454183856 + m.x470) -
m.x1) + 1.357547948065e-7*log(100 + 0.77*m.x471*(3115.6025 + m.x1)/(4.58093240639472e-5 + m.x471)
- m.x1) + 4.11479488586172e-6*log(100 + 0.77*m.x472*(3115.6025 + m.x1)/(4.60720711166307e-5 +
m.x472) - m.x1) + 9.74846743772878e-6*log(100 + 0.77*m.x473*(3115.6025 + m.x1)/(
1.39686998964588e-5 + m.x473) - m.x1) + 1.92063336809678e-6*log(100 + 0.77*m.x474*(3115.6025 +
m.x1)/(0.000109189737166214 + m.x474) - m.x1) + 1.05595456002198e-6*log(100 + 0.77*m.x475*(
3115.6025 + m.x1)/(4.60621420325593e-6 + m.x475) - m.x1) + 6.944196785648e-8*log(438.328502947439
- 0.891408322163229*m.x1) + 3.1960659732844e-7*log(160.672269148748 - 0.98052631259965*m.x1) +
2.3417328105796e-7*log(383.737721647126 - 0.908930063560058*m.x1) + 7.253200423312e-8*log(
137.946787402231 - 0.987820401542806*m.x1) + 1.7183745576056e-7*log(323.76453259191 -
0.928179370573778*m.x1) + 1.5206263520876e-7*log(723.154378888364 - 0.799989126055598*m.x1) +
1.1141511543556e-7*log(994.136523516822 - 0.713013286028361*m.x1) + 3.450932449624e-8*log(
463.72887675709 - 0.883255685936479*m.x1) + 8.175693543456e-8*log(774.830149075393 -
0.783403001802896*m.x1) + 9.683553244346e-7*log(704.117904521328 - 0.806099171983163*m.x1) +
2.9993495178112e-7*log(150.148891888383 - 0.983903950555829*m.x1) + 7.1058369085104e-7*log(
363.245448869307 - 0.915507370125263*m.x1) + 1.8748171260148e-7*log(532.438202944837 -
0.861202382863399*m.x1) + 4.4416780235748e-7*log(1144.15218362596 - 0.664863478692818*m.x1) +
8.668125191084e-8*log(336.316624140497 - 0.924150585917011*m.x1) + 1.279151819132e-8*log(
639.374735800217 - 0.826879476505679*m.x1) + 9.37224377448e-9*log(796.090332382495 -
0.776579222676033*m.x1) + 2.90292704712e-9*log(772.282933330948 - 0.784220569430488*m.x1) +
6.87740089552e-9*log(1275.69246176927 - 0.622643626146379*m.x1) + 7.859651332816e-8*log(
551.137259264743 - 0.855200636389031*m.x1) + 2.434420688112e-8*log(206.64947926604 -
0.965769227856879*m.x1) + 5.767449267584e-8*log(657.476234564291 - 0.821069525215655*m.x1) +
1.54250996426e-8*log(756.635274889761 - 0.789242923354388*m.x1) + 3.654401139932e-8*log(
1535.04726916935 - 0.5393997568145*m.x1) + 7.28889911836e-9*log(1061.02290920942 -
0.691545083427869*m.x1) + 3.219904385872e-8*log(787.089182577275 - 0.779468278582626*m.x1) +
9.97321904252e-9*log(843.590944378369 - 0.761333178934614*m.x1) + 2.362781145276e-8*log(
781.918774588875 - 0.781127799650669*m.x1) + 6.329603565e-9*log(758.365707096016 -
0.788687514823853*m.x1) + 1.49956223262e-8*log(504.84109778787 - 0.870060093420817*m.x1) +
2.998957051e-9*log(964.386178144426 - 0.722562111776317*m.x1) + 9.089986953288e-8*log(
961.226291333032 - 0.723576325499472*m.x1) + 2.1535324185412e-7*log(1656.41268033145 -
0.500445682550503*m.x1) + 4.242868172612e-8*log(558.546332794591 - 0.852822581573037*m.x1) +
2.332707568692e-8*log(2135.61678696677 - 0.34663783747549*m.x1) + 1.0868132303496e-7*log(
952.855197136797 - 0.726263155477377*m.x1) + 5.0020569578538e-7*log(292.358397193926 -
0.938259647309332*m.x1) + 3.6649684319742e-7*log(845.268759609223 - 0.760794658622458*m.x1) +
1.1351743658424e-7*log(222.900839352747 - 0.960553106709618*m.x1) + 2.6893710843012e-7*log(
716.158724669567 - 0.802234487657021*m.x1) + 2.3798819199402e-7*log(1397.99930308635 -
0.583387385558217*m.x1) + 1.7437210559262e-7*log(1698.31981573055 - 0.486994950180406*m.x1) +
5.400940035348e-8*log(1000.01299130032 - 0.711127144332334*m.x1) + 1.2795507075312e-7*log(
1462.69503446476 - 0.562622306772202*m.x1) + 1.5155408332467e-6*log(1373.12671852222 -
0.591370619800755*m.x1) + 4.6941825513024e-7*log(260.562902565146 - 0.948464894810828*m.x1) +
1.11211099040808e-6*log(802.513881672884 - 0.774517486851136*m.x1) + 2.9342141646246e-7*log(
1119.29289935334 - 0.672842444004541*m.x1) + 6.9515231062446e-7*log(1830.61326417666 -
0.444533356172151*m.x1) + 1.3566195531018e-7*log(744.203496969942 - 0.793233091522445*m.x1) +
2.001958129314e-8*log(1283.98039223831 - 0.619983488831353*m.x1) + 1.466818819596e-8*log(
1488.17838576561 - 0.554443037657848*m.x1) + 4.54327493724e-9*log(1459.59879689333 -
0.563616091303903*m.x1) + 1.076359226904e-8*log(1931.71652847139 - 0.412082726062971*m.x1) +
1.2300879883032e-7*log(1149.82151209152 - 0.663043821510761*m.x1) + 3.810031158024e-8*log(
424.287526310851 - 0.895914987129825*m.x1) + 9.026443752768e-8*log(1309.64325245314 -
0.611746603601347*m.x1) + 2.41413123627e-8*log(1440.37165493351 - 0.569787334894773*m.x1) +
5.719382140914e-8*log(2099.27686813522 - 0.358301687029966*m.x1) + 1.140761450322e-8*log(
1759.78384606747 - 0.467267134986742*m.x1) + 5.039365667544e-8*log(1477.46685899388 -
0.55788106506081*m.x1) + 1.560875467554e-8*log(1542.89054316818 - 0.536882338755287*m.x1) +
3.697910483202e-8*log(1471.26264848806 - 0.559872400767407*m.x1) + 9.9062528175e-9*log(
1442.51559884057 - 0.56909920349577*m.x1) + 2.34691516449e-8*log(1072.76969944935 -
0.687774772471984*m.x1) + 4.6935683145e-9*log(1669.57680330368 - 0.496220457101417*m.x1) +
1.4226437397276e-7*log(1666.47040697755 - 0.497217502239919*m.x1) + 3.3704222341374e-7*log(
2166.0852268286 - 0.336858528381396*m.x1) + 6.640372395774e-8*log(1161.70370083739 -
0.659230052345448*m.x1) + 3.650843324934e-8*log(2377.97102001738 - 0.268850561001483*m.x1) +
2.34922704076588e-6*log(100 + 0.77*m.x476*(3115.6025 + m.x1)/(0.000455053041852194 + m.x476) -
m.x1) + 1.08123154344204e-5*log(100 + 0.77*m.x477*(3115.6025 + m.x1)/(0.00287943075201725 +
m.x477) - m.x1) + 7.92209986363301e-6*log(100 + 0.77*m.x478*(3115.6025 + m.x1)/(
0.000556979122506819 + m.x478) - m.x1) + 2.45376320581172e-6*log(100 + 0.77*m.x479*(3115.6025 +
m.x1)/(0.00464860058445214 + m.x479) - m.x1) + 5.81327416474486e-6*log(100 + 0.77*m.x480*(
3115.6025 + m.x1)/(0.000726284399317671 + m.x480) - m.x1) + 5.14429048527031e-6*log(100 + 0.77*
m.x481*(3115.6025 + m.x1)/(0.000212912849887539 + m.x481) - m.x1) + 3.76918180763861e-6*log(100
+ 0.77*m.x482*(3115.6025 + m.x1)/(0.000125743688446365 + m.x482) - m.x1) + 1.16745306574094e-6*
log(100 + 0.77*m.x483*(3115.6025 + m.x1)/(0.000418057838534042 + m.x483) - m.x1) +
2.76584332820136e-6*log(100 + 0.77*m.x484*(3115.6025 + m.x1)/(0.000190887718448796 + m.x484) -
m.x1) + 3.27595340894288e-5*log(100 + 0.77*m.x485*(3115.6025 + m.x1)/(0.0002219762434489 + m.x485
) - m.x1) + 1.01468221731747e-5*log(100 + 0.77*m.x486*(3115.6025 + m.x1)/(0.0034993358956939 +
m.x486) - m.x1) + 2.40391001695772e-5*log(100 + 0.77*m.x487*(3115.6025 + m.x1)/(
0.000606152932460819 + m.x487) - m.x1) + 6.34252056051713e-6*log(100 + 0.77*m.x488*(3115.6025 +
m.x1)/(0.00033976256726883 + m.x488) - m.x1) + 1.50262304503281e-5*log(100 + 0.77*m.x489*(
3115.6025 + m.x1)/(9.6943810979624e-5 + m.x489) - m.x1) + 2.93243332817479e-6*log(100 + 0.77*
m.x490*(3115.6025 + m.x1)/(0.000683739034450168 + m.x490) - m.x1) + 4.3273803083467e-7*log(100 +
0.77*m.x491*(3115.6025 + m.x1)/(0.000257588813991856 + m.x491) - m.x1) + 3.1706371791138e-7*log(
100 + 0.77*m.x492*(3115.6025 + m.x1)/(0.000182775706075957 + m.x492) - m.x1) + 9.820624223322e-8*
log(100 + 0.77*m.x493*(3115.6025 + m.x1)/(0.000191894049436265 + m.x493) - m.x1) +
2.3266299404612e-7*log(100 + 0.77*m.x494*(3115.6025 + m.x1)/(7.77384311788353e-5 + m.x494) - m.x1
) + 2.65892600857796e-6*log(100 + 0.77*m.x495*(3115.6025 + m.x1)/(0.00032258314250264 + m.x495)
- m.x1) + 8.2356636564972e-7*log(100 + 0.77*m.x496*(3115.6025 + m.x1)/(0.00160588275652981 +
m.x496) - m.x1) + 1.95113246267104e-6*log(100 + 0.77*m.x497*(3115.6025 + m.x1)/(
0.000246798868379189 + m.x497) - m.x1) + 5.2183229112685e-7*log(100 + 0.77*m.x498*(3115.6025 +
m.x1)/(0.000198247281816642 + m.x498) - m.x1) + 1.23628667803267e-6*log(100 + 0.77*m.x499*(
3115.6025 + m.x1)/(5.01862464746856e-5 + m.x499) - m.x1) + 2.4658401014291e-7*log(100 + 0.77*
m.x500*(3115.6025 + m.x1)/(0.000111792158620858 + m.x500) - m.x1) + 1.08929609650532e-6*log(100
+ 0.77*m.x501*(3115.6025 + m.x1)/(0.000186148897250143 + m.x501) - m.x1) + 3.3739475682187e-7*
log(100 + 0.77*m.x502*(3115.6025 + m.x1)/(0.000166327399591117 + m.x502) - m.x1) +
7.9933065395931e-7*log(100 + 0.77*m.x503*(3115.6025 + m.x1)/(0.000188126780871317 + m.x503) -
m.x1) + 2.1413096879625e-7*log(100 + 0.77*m.x504*(3115.6025 + m.x1)/(0.000197529843021106 +
m.x504) - m.x1) + 5.0730304093095e-7*log(100 + 0.77*m.x505*(3115.6025 + m.x1)/(
0.000368016347296246 + m.x505) - m.x1) + 1.0145494454975e-7*log(100 + 0.77*m.x506*(3115.6025 +
m.x1)/(0.000132642940980837 + m.x506) - m.x1) + 3.07514948237178e-6*log(100 + 0.77*m.x507*(
3115.6025 + m.x1)/(0.000133403736790733 + m.x507) - m.x1) + 7.28541650959397e-6*log(100 + 0.77*
m.x508*(3115.6025 + m.x1)/(4.04469935718446e-5 + m.x508) - m.x1) + 1.43536552162597e-6*log(100 +
0.77*m.x509*(3115.6025 + m.x1)/(0.000316163753964881 + m.x509) - m.x1) + 7.8915674018577e-7*log(
100 + 0.77*m.x510*(3115.6025 + m.x1)/(1.33374986684954e-5 + m.x510) - m.x1) + 1.7351096111916e-7*
log(1756.34518082976 - 0.468370826885087*m.x1) + 7.9858404930423e-7*log(725.200186930332 -
0.799332492854807*m.x1) + 5.8511635425957e-7*log(1648.94114589024 - 0.502843785145813*m.x1) +
1.8123187108404e-7*log(529.899097644463 - 0.862017347320634*m.x1) + 4.2936113456502e-7*log(
1498.32765799351 - 0.551185474400694*m.x1) + 3.7995083952567e-7*log(2083.00079499621 -
0.363525740207165*m.x1) + 2.7838703825877e-7*log(2234.54546771311 - 0.314885173024123*m.x1) +
8.622661836558e-8*log(1799.10804348668 - 0.454645435838916*m.x1) + 2.0428171728552e-7*log(
2119.22302589951 - 0.351899664382889*m.x1) + 2.41957807697445e-6*log(2068.46991167032 -
0.368189648175491*m.x1) + 7.4943155217504e-7*log(639.346029121697 - 0.826888690350679*m.x1) +
1.77549777117468e-6*log(1601.95443552502 - 0.517924884344193*m.x1) + 4.6845060919041e-7*log(
1897.31212561191 - 0.423125342333654*m.x1) + 1.10981852421741e-6*log(2289.83683300728 -
0.297138568540986*m.x1) + 2.1658584562503e-7*log(1533.35146924954 - 0.539944049586061*m.x1) +
3.196148790219e-8*log(2013.37867265892 - 0.385872019084936*m.x1) + 2.341792831266e-8*log(
2132.89963200708 - 0.347509949678408*m.x1) + 7.25338980954e-9*log(2117.53920216988 -
0.352440113214097*m.x1) + 1.718419676484e-8*log(2328.32819868025 - 0.28478417940663*m.x1) +
1.9638493823172e-7*log(1920.39808889742 - 0.415715551358873*m.x1) + 6.082757825004e-8*log(
1029.01261405065 - 0.701819274425846*m.x1) + 1.4410819516128e-7*log(2029.74189826765 -
0.380619992997292*m.x1) + 3.854187816045e-8*log(2106.97326999007 - 0.355831409818786*m.x1) +
9.131058258819e-8*log(2385.97240833931 - 0.266282393745893*m.x1) + 1.821238554387e-8*log(
2260.97728055389 - 0.306401480755683*m.x1) + 8.045404269924e-8*log(2127.19009521653 -
0.3493425123338*m.x1) + 2.491955333259e-8*log(2161.20757843742 - 0.338424083804843*m.x1) +
5.903755899867e-8*log(2123.85717760185 - 0.350412262924476*m.x1) + 1.581544463625e-8*log(
2108.16088165946 - 0.355450227793995*m.x1) + 3.746876597415e-8*log(1860.5916573208 -
0.434911335024029*m.x1) + 7.49333488575e-9*log(2221.71201851028 - 0.319004263698504*m.x1) +
2.2712668167546e-7*log(2220.3062861031 - 0.319455454890955*m.x1) + 5.3809172072229e-7*log(
2407.06872653783 - 0.259511209617455*m.x1) + 1.0601429614629e-7*log(1929.17750011989 -
0.412897665822297*m.x1) + 5.828612649489e-8*log(2467.89538756556 - 0.239987967795776*m.x1))
, sense=minimize)
m.c2 = Constraint(expr= m.x1 - m.x2 - m.x3 - m.x4 - m.x5 - m.x6 - m.x7 - m.x8 - m.x9 - m.x10 - m.x11 - m.x12 - m.x13
- m.x14 - m.x15 - m.x16 - m.x17 - m.x18 - m.x19 - m.x20 - m.x21 - m.x22 - m.x23 - m.x24 - m.x25
- m.x26 - m.x27 - m.x28 - m.x29 - m.x30 - m.x31 - m.x32 - m.x33 - m.x34 - m.x35 - m.x36 - m.x37
- m.x38 - m.x39 - m.x40 - m.x41 - m.x42 - m.x43 - m.x44 - m.x45 - m.x46 - m.x47 - m.x48 - m.x49
- m.x50 - m.x51 - m.x52 - m.x53 - m.x54 - m.x55 - m.x56 - m.x57 - m.x58 - m.x59 - m.x60 - m.x61
- m.x62 - m.x63 - m.x64 - m.x65 - m.x66 - m.x67 - m.x68 - m.x69 - m.x70 - m.x71 - m.x72 - m.x73
- m.x74 - m.x75 - m.x76 - m.x77 - m.x78 - m.x79 - m.x80 - m.x81 - m.x82 - m.x83 - m.x84 - m.x85
- m.x86 - m.x87 - m.x88 - m.x89 - m.x90 - m.x91 - m.x92 - m.x93 - m.x94 - m.x95 - m.x96 - m.x97
- m.x98 - m.x99 - m.x100 - m.x101 - m.x102 - m.x103 - m.x104 - m.x105 - m.x106 - m.x107 - m.x108
- m.x109 - m.x110 - m.x111 - m.x112 - m.x113 - m.x114 - m.x115 - m.x116 - m.x117 - m.x118
- m.x119 - m.x120 - m.x121 - m.x122 - m.x123 - m.x124 - m.x125 - m.x126 - m.x127 - m.x128
- m.x129 - m.x130 - m.x131 - m.x132 - m.x133 - m.x134 - m.x135 - m.x136 - m.x137 - m.x138
- m.x139 - m.x140 - m.x141 - m.x142 - m.x143 - m.x144 - m.x145 - m.x146 - m.x147 - m.x148
- m.x149 - m.x150 - m.x151 - m.x152 - m.x153 - m.x154 - m.x155 - m.x156 - m.x157 - m.x158
- m.x159 - m.x160 - m.x161 - m.x162 - m.x163 - m.x164 - m.x165 - m.x166 - m.x167 - m.x168
- m.x169 - m.x170 - m.x171 - m.x172 - m.x173 - m.x174 - m.x175 - m.x176 - m.x177 - m.x178
- m.x179 - m.x180 - m.x181 - m.x182 - m.x183 - m.x184 - m.x185 - m.x186 - m.x187 - m.x188
- m.x189 - m.x190 - m.x191 - m.x192 - m.x193 - m.x194 - m.x195 - m.x196 - m.x197 - m.x198
- m.x199 - m.x200 - m.x201 - m.x202 - m.x203 - m.x204 - m.x205 - m.x206 - m.x207 - m.x208
- m.x209 - m.x210 - m.x211 - m.x212 - m.x213 - m.x214 - m.x215 - m.x216 - m.x217 - m.x218
- m.x219 - m.x220 - m.x221 - m.x222 - m.x223 - m.x224 - m.x225 - m.x226 - m.x227 - m.x228
- m.x229 - m.x230 - m.x231 - m.x232 - m.x233 - m.x234 - m.x235 - m.x236 - m.x237 - m.x238
- m.x239 - m.x240 - m.x241 - m.x242 - m.x243 - m.x244 - m.x245 - m.x246 - m.x247 - m.x248
- m.x249 - m.x250 - m.x251 - m.x252 - m.x253 - m.x254 - m.x255 - m.x256 - m.x257 - m.x258
- m.x259 - m.x260 - m.x261 - m.x262 - m.x263 - m.x264 - m.x265 - m.x266 - m.x267 - m.x268
- m.x269 - m.x270 - m.x271 - m.x272 - m.x273 - m.x274 - m.x275 - m.x276 - m.x277 - m.x278
- m.x279 - m.x280 - m.x281 - m.x282 - m.x283 - m.x284 - m.x285 - m.x286 - m.x287 - m.x288
- m.x289 - m.x290 - m.x291 - m.x292 - m.x293 - m.x294 - m.x295 - m.x296 - m.x297 - m.x298
- m.x299 - m.x300 - m.x301 - m.x302 - m.x303 - m.x304 - m.x305 - m.x306 - m.x307 - m.x308
- m.x309 - m.x310 - m.x311 - m.x312 - m.x313 - m.x314 - m.x315 - m.x316 - m.x317 - m.x318
- m.x319 - m.x320 - m.x321 - m.x322 - m.x323 - m.x324 - m.x325 - m.x326 - m.x327 - m.x328
- m.x329 - m.x330 - m.x331 - m.x332 - m.x333 - m.x334 - m.x335 - m.x336 - m.x337 - m.x338
- m.x339 - m.x340 - m.x341 - m.x342 - m.x343 - m.x344 - m.x345 - m.x346 - m.x347 - m.x348
- m.x349 - m.x350 - m.x351 - m.x352 - m.x353 - m.x354 - m.x355 - m.x356 - m.x357 - m.x358
- m.x359 - m.x360 - m.x361 - m.x362 - m.x363 - m.x364 - m.x365 - m.x366 - m.x367 - m.x368
- m.x369 - m.x370 - m.x371 - m.x372 - m.x373 - m.x374 - m.x375 - m.x376 - m.x377 - m.x378
- m.x379 - m.x380 - m.x381 - m.x382 - m.x383 - m.x384 - m.x385 - m.x386 - m.x387 - m.x388
- m.x389 - m.x390 - m.x391 - m.x392 - m.x393 - m.x394 - m.x395 - m.x396 - m.x397 - m.x398
- m.x399 - m.x400 - m.x401 - m.x402 - m.x403 - m.x404 - m.x405 - m.x406 - m.x407 - m.x408
- m.x409 - m.x410 - m.x411 - m.x412 - m.x413 - m.x414 - m.x415 - m.x416 - m.x417 - m.x418
- m.x419 - m.x420 - m.x421 - m.x422 - m.x423 - m.x424 - m.x425 - m.x426 - m.x427 - m.x428
- m.x429 - m.x430 - m.x431 - m.x432 - m.x433 - m.x434 - m.x435 - m.x436 - m.x437 - m.x438
- m.x439 - m.x440 - m.x441 - m.x442 - m.x443 - m.x444 - m.x445 - m.x446 - m.x447 - m.x448
- m.x449 - m.x450 - m.x451 - m.x452 - m.x453 - m.x454 - m.x455 - m.x456 - m.x457 - m.x458
- m.x459 - m.x460 - m.x461 - m.x462 - m.x463 - m.x464 - m.x465 - m.x466 - m.x467 - m.x468
- m.x469 - m.x470 - m.x471 - m.x472 - m.x473 - m.x474 - m.x475 - m.x476 - m.x477 - m.x478
- m.x479 - m.x480 - m.x481 - m.x482 - m.x483 - m.x484 - m.x485 - m.x486 - m.x487 - m.x488
- m.x489 - m.x490 - m.x491 - m.x492 - m.x493 - m.x494 - m.x495 - m.x496 - m.x497 - m.x498
- m.x499 - m.x500 - m.x501 - m.x502 - m.x503 - m.x504 - m.x505 - m.x506 - m.x507 - m.x508
- m.x509 - m.x510 == 0)
m.c3 = Constraint(expr= m.x1 <= 100)
| 97.260973 | 120 | 0.592053 | 24,204 | 163,982 | 4.011155 | 0.176872 | 0.053674 | 0.073543 | 0.105061 | 0.335682 | 0.272768 | 0.215036 | 0.214954 | 0.214954 | 0.214954 | 0 | 0.528833 | 0.234587 | 163,982 | 1,685 | 121 | 97.318694 | 0.244674 | 0.004135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.000602 | 0 | 0.000602 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
df4589c5936fa29d3d24eba4e44f5da8d49bf94e | 714 | py | Python | pizza_store/models/user.py | astsu-dev/pizza-store-backend | 902f6e5e2c88ba029b2bff61da8fc4684664ead9 | [
"MIT"
] | 2 | 2021-07-10T15:47:45.000Z | 2021-12-13T18:09:30.000Z | pizza_store/models/user.py | astsu-dev/pizza-store-backend | 902f6e5e2c88ba029b2bff61da8fc4684664ead9 | [
"MIT"
] | null | null | null | pizza_store/models/user.py | astsu-dev/pizza-store-backend | 902f6e5e2c88ba029b2bff61da8fc4684664ead9 | [
"MIT"
] | null | null | null | import datetime
import uuid
from pizza_store.enums.role import Role
from pydantic import BaseModel
class UserBase(BaseModel):
username: str
email: str
class UserCreate(UserBase):
"""User register model"""
password: str
class UserIn(BaseModel):
"""User login model."""
username: str
password: str
class User(UserBase):
id: uuid.UUID
role: Role
class Config:
orm_mode = True
class UserInDB(User):
password_hash: str
class UserInToken(User):
pass
class TokenResponse(BaseModel):
access_token: str
token_type: str
expires_in: int
class Token(BaseModel):
exp: datetime.datetime
iat: datetime.datetime
user: UserInToken
| 13.730769 | 39 | 0.683473 | 86 | 714 | 5.604651 | 0.465116 | 0.06639 | 0.06639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 714 | 51 | 40 | 14 | 0.882784 | 0.051821 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.137931 | 0.137931 | 0 | 0.931034 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
df526964a362846faf5e5acce4b5cfd42b2a61de | 562 | py | Python | tests/test_scriptfields.py | ttimasdf/pyes | e5dd8bfde7ca72b9bdf52f31ee7dbbf9681891ac | [
"BSD-3-Clause"
] | 175 | 2015-01-04T00:41:48.000Z | 2022-01-12T08:42:28.000Z | tests/test_scriptfields.py | yoloseem/pyes | d146d7cbe8a883b7b6a821e4c41acb16d2a5e3d0 | [
"BSD-3-Clause"
] | 35 | 2015-01-23T16:17:33.000Z | 2021-05-17T12:12:29.000Z | tests/test_scriptfields.py | yoloseem/pyes | d146d7cbe8a883b7b6a821e4c41acb16d2a5e3d0 | [
"BSD-3-Clause"
] | 69 | 2015-01-10T17:28:26.000Z | 2021-10-13T06:55:56.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import unittest
from pyes import scriptfields
class ScriptFieldsTest(unittest.TestCase):
def test_scriptfieldserror_imported(self):
self.assertTrue(hasattr(scriptfields, 'ScriptFieldsError'))
def test_ignore_failure(self):
fields = scriptfields.ScriptFields("a_field", "return _source.field", ignore_failure=True)
serialized = fields.serialize()
self.assertIn("ignore_failure", serialized.get("a_field", {}))
if __name__ == '__main__':
unittest.main()
| 33.058824 | 98 | 0.729537 | 60 | 562 | 6.466667 | 0.583333 | 0.100515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002105 | 0.154804 | 562 | 16 | 99 | 35.125 | 0.814737 | 0.037367 | 0 | 0 | 0 | 0 | 0.135436 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
df5bcc25e0eb5cf59dcd57c576a359b2d756670b | 1,308 | py | Python | .ipynb_checkpoints/get-checkpoint.py | Ferruolo/delphi | 369d74053ff211f7114b01d51621a388693a0dc7 | [
"MIT"
] | null | null | null | .ipynb_checkpoints/get-checkpoint.py | Ferruolo/delphi | 369d74053ff211f7114b01d51621a388693a0dc7 | [
"MIT"
] | null | null | null | .ipynb_checkpoints/get-checkpoint.py | Ferruolo/delphi | 369d74053ff211f7114b01d51621a388693a0dc7 | [
"MIT"
] | null | null | null |
import requests
import io
import dask
from bs4 import BeautifulSoup as BS
import nltk
import pandas
import numpy as np
def News(ticker):
B = BS(requests.get(f"https://www.wsj.com/market-data/quotes/{ticker}", headers={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36'}).content, features="html.parser")
News = B.find('ul', {'id': "newsSummary_c"})
News = [a.getText() for a in News.find_all('a')]
News = [nltk.word_tokenize(h) for h in News]
return dask.dataframe.from_array(np.asarray(News))
api_key = 'MZE3U0MSR1DCE53Z'
def daily(ticker, outputsize = 'compact'):
csv = pandas.read_csv(io.StringIO(requests.get(f'https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&&symbol={ticker}&apikey={api_key}&outputsize={outputsize}&datatype=csv').content.decode('utf-8')))
return csv
def intraday_data(ticker, time='1min', outputsize = 'compact'):
return pandas.read_csv(io.StringIO(requests.get(f'https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol={ticker}&interval={time}&apikey={api_key}&outputsize={outputsize}&datatype=csv').content.decode('utf-8')))
def tickers():
return pandas.read_csv("NYSE_TICKERS.csv").iloc[:,0]
| 39.636364 | 250 | 0.714832 | 194 | 1,308 | 4.731959 | 0.5 | 0.035948 | 0.039216 | 0.055556 | 0.326797 | 0.305011 | 0.305011 | 0.305011 | 0.305011 | 0.305011 | 0 | 0.033043 | 0.120795 | 1,308 | 33 | 251 | 39.636364 | 0.765217 | 0 | 0 | 0 | 0 | 0.142857 | 0.419725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.333333 | 0.095238 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
df6ab267b27cf156ebd687d010ea932b0b451fd7 | 1,520 | py | Python | kfdata/tests/test_attribute.py | kylef-archive/KFData.py | 685d58255c9f8518834e395d94d3b75d3dd3eceb | [
"BSD-3-Clause"
] | 1 | 2015-11-08T13:23:39.000Z | 2015-11-08T13:23:39.000Z | kfdata/tests/test_attribute.py | kylef/KFData.py | 685d58255c9f8518834e395d94d3b75d3dd3eceb | [
"BSD-3-Clause"
] | null | null | null | kfdata/tests/test_attribute.py | kylef/KFData.py | 685d58255c9f8518834e395d94d3b75d3dd3eceb | [
"BSD-3-Clause"
] | null | null | null | import unittest
from kfdata.attributes import Attribute, NumberAttribute, BooleanAttribute
class AttributeTests(unittest.TestCase):
def setUp(self):
self.attribute = Attribute(name='firstName', is_indexed=True, is_optional=False)
def test_creation(self):
self.assertEqual(self.attribute.name, 'firstName')
self.assertTrue(self.attribute.is_indexed)
self.assertFalse(self.attribute.is_optional)
self.assertFalse(self.attribute.is_transient)
def test_str(self):
self.assertEqual(str(self.attribute), 'firstName')
def test_repr(self):
self.assertEqual(repr(self.attribute), '<Attribute firstName>')
def test_equality(self):
self.assertEqual(self.attribute, Attribute(name='firstName',
is_indexed=True, is_optional=False))
def test_inequality(self):
self.assertNotEqual(self.attribute, Attribute(name='firstName',
is_indexed=True, is_optional=True))
class NumberAttributeTests(unittest.TestCase):
def test_creation(self):
attribute = NumberAttribute('age', minimum_value=5, maximum_value=10)
self.assertEqual(attribute.name, 'age')
self.assertEqual(attribute.default_value, 0)
self.assertEqual(attribute.minimum_value, 5)
self.assertEqual(attribute.maximum_value, 10)
class BooleanAttributeTests(unittest.TestCase):
def test_default(self):
attribute = BooleanAttribute('isHuman')
self.assertEqual(attribute.default_value, False)
| 35.348837 | 88 | 0.718421 | 167 | 1,520 | 6.407186 | 0.257485 | 0.133645 | 0.11215 | 0.072897 | 0.356075 | 0.185047 | 0.185047 | 0.185047 | 0.185047 | 0.185047 | 0 | 0.005582 | 0.175 | 1,520 | 42 | 89 | 36.190476 | 0.847687 | 0 | 0 | 0.064516 | 0 | 0 | 0.052008 | 0 | 0 | 0 | 0 | 0 | 0.419355 | 1 | 0.258065 | false | 0 | 0.064516 | 0 | 0.419355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
df6fa3edddb6528b81a9ef12ac57b8e80546f328 | 1,454 | py | Python | db.py | L1mPeX/Casino-Bot | b08be7be75854cc2e386906a9ef8ee3ab768ae78 | [
"MIT"
] | 2 | 2020-11-21T17:33:32.000Z | 2021-08-17T16:52:57.000Z | db.py | L1mPeX/Casino-Bot | b08be7be75854cc2e386906a9ef8ee3ab768ae78 | [
"MIT"
] | null | null | null | db.py | L1mPeX/Casino-Bot | b08be7be75854cc2e386906a9ef8ee3ab768ae78 | [
"MIT"
] | null | null | null | #!/usr/bin/python3.6
import sqlite3
def make_connect():
conn = sqlite3.connect("bot.db")
cursor = conn.cursor()
return conn, cursor
def create_tables():
conn, cursor = make_connect()
try:
cursor.execute("CREATE TABLE users(user_id INTEGER, bal FLOAT, count_games INTEGER, sum_games FLOAT, ref_id INTEGER, ref_sum FLOAT)")
except:
pass
try:
cursor.execute("CREATE TABLE qiwi_popoln(user_id INTEGER, sum FLOAT, phone INTEGER, random_code INTEGER)")
except:
pass
try:
cursor.execute("CREATE TABLE withdraw(user_id INTEGER, sum FLOAT, num TEXT, type INTEGER)")
except:
pass
try:
cursor.execute("CREATE TABLE dice(hash INTEGER, sum_bet FLOAT, creator_user_id INTEGER, player_user_id INTEGER, creator_value INTEGER, player_value INTEGER, type TEXT)")
except:
pass
try:
cursor.execute("CREATE TABLE history_dice(user_id INTEGER, hash INTEGER, sum_win FLOAT)")
except:
pass
try:
cursor.execute("CREATE TABLE ban(user_id INTEGER, S INTEGER)")
except:
pass
try:
cursor.execute("CREATE TABLE nontrueusers(user_id INTEGER, S INTEGER)")
except:
pass
try:
cursor.execute("CREATE TABLE quetions(hash TEXT, quetion TEXT, answer TEXT)")
except:
pass
try:
cursor.execute("CREATE TABLE support(user_id INTEGER, quetion TEXT)")
except:
pass
| 32.311111 | 178 | 0.658184 | 187 | 1,454 | 4.983957 | 0.294118 | 0.096567 | 0.154506 | 0.212446 | 0.47103 | 0.396996 | 0.396996 | 0.396996 | 0.124464 | 0.124464 | 0 | 0.00367 | 0.250344 | 1,454 | 44 | 179 | 33.045455 | 0.851376 | 0.013067 | 0 | 0.627907 | 0 | 0.046512 | 0.495816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0.209302 | 0.023256 | 0 | 0.093023 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
df7edd38a1a100de662fe567b387d768f816c859 | 1,354 | py | Python | tests/test_distgit/test_convert_source_url_to_https.py | sosiouxme/doozer | 9658169207773f9c228ad011f611867a4a9d5a77 | [
"Apache-2.0"
] | null | null | null | tests/test_distgit/test_convert_source_url_to_https.py | sosiouxme/doozer | 9658169207773f9c228ad011f611867a4a9d5a77 | [
"Apache-2.0"
] | null | null | null | tests/test_distgit/test_convert_source_url_to_https.py | sosiouxme/doozer | 9658169207773f9c228ad011f611867a4a9d5a77 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, print_function, unicode_literals
import unittest
from doozerlib import distgit
class TestDistgitConvertSourceURLToHTTPS(unittest.TestCase):
def test_conversion_from_ssh_source(self):
source = "git@github.com:myorg/myproject.git"
actual = distgit.convert_source_url_to_https(source)
expected = "https://github.com/myorg/myproject"
self.assertEqual(actual, expected)
def test_conversion_from_already_https_source(self):
source = "https://github.com/myorg/myproject"
actual = distgit.convert_source_url_to_https(source)
expected = "https://github.com/myorg/myproject"
self.assertEqual(actual, expected)
def test_conversion_from_https_source_with_dotgit_suffix(self):
source = "https://github.com/myorg/myproject.git"
actual = distgit.convert_source_url_to_https(source)
expected = "https://github.com/myorg/myproject"
self.assertEqual(actual, expected)
def test_conversion_from_https_source_with_dotgit_elsewhere(self):
source = "https://foo.gitlab.com/myorg/myproject"
actual = distgit.convert_source_url_to_https(source)
expected = "https://foo.gitlab.com/myorg/myproject"
self.assertEqual(actual, expected)
if __name__ == '__main__':
unittest.main()
| 31.488372 | 72 | 0.728951 | 159 | 1,354 | 5.867925 | 0.264151 | 0.068596 | 0.145766 | 0.14791 | 0.720257 | 0.720257 | 0.695606 | 0.607717 | 0.607717 | 0.607717 | 0 | 0 | 0.17356 | 1,354 | 42 | 73 | 32.238095 | 0.83378 | 0 | 0 | 0.423077 | 0 | 0 | 0.215657 | 0.025111 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0 | 0.115385 | 0 | 0.307692 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.