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
140bd14af4f298770e406fc9ecedf919671ffd69
115
py
Python
mmrotate/core/evaluation/__init__.py
Justice-Eternal/mmrotate
c5bf348562fd84cc17906c2cf370d1a49fcd3035
[ "Apache-2.0" ]
449
2022-02-18T08:26:58.000Z
2022-03-31T11:58:32.000Z
mmrotate/core/evaluation/__init__.py
Justice-Eternal/mmrotate
c5bf348562fd84cc17906c2cf370d1a49fcd3035
[ "Apache-2.0" ]
162
2022-02-18T09:54:46.000Z
2022-03-31T15:40:46.000Z
mmrotate/core/evaluation/__init__.py
Justice-Eternal/mmrotate
c5bf348562fd84cc17906c2cf370d1a49fcd3035
[ "Apache-2.0" ]
98
2022-02-18T08:28:48.000Z
2022-03-31T08:52:11.000Z
# Copyright (c) OpenMMLab. All rights reserved. from .eval_map import eval_rbbox_map __all__ = ['eval_rbbox_map']
23
47
0.773913
17
115
4.705882
0.647059
0.225
0.3
0
0
0
0
0
0
0
0
0
0.130435
115
4
48
28.75
0.8
0.391304
0
0
0
0
0.205882
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
1
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
5
141d774c2dd98968814f10cff05b426e5e9c3f71
119
py
Python
twitter_authentication.py
CommunityDataScienceCollective/twitter-cdsw
569e3642f2f89c873a092ae8f6c5888ed437c7dc
[ "MIT" ]
null
null
null
twitter_authentication.py
CommunityDataScienceCollective/twitter-cdsw
569e3642f2f89c873a092ae8f6c5888ed437c7dc
[ "MIT" ]
null
null
null
twitter_authentication.py
CommunityDataScienceCollective/twitter-cdsw
569e3642f2f89c873a092ae8f6c5888ed437c7dc
[ "MIT" ]
null
null
null
CONSUMER_KEY = 'CHANGE_ME' CONSUMER_SECRET = 'CHANGE_ME' ACCESS_TOKEN = 'CHANGE_ME' ACCESS_TOKEN_SECRET = 'CHANGE_ME'
19.833333
33
0.789916
17
119
5
0.411765
0.376471
0.329412
0.447059
0
0
0
0
0
0
0
0
0.109244
119
5
34
23.8
0.801887
0
0
0
0
0
0.305085
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
1
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
5
144360ec01181183eb64e454a3aa159096530b8b
39
py
Python
src/graccreports/minerva_report/__init__.py
shreyb/fife_notes_report
b6fc6fa16c442b7ea43858cc6ac28c8a2d43d5af
[ "Apache-2.0" ]
null
null
null
src/graccreports/minerva_report/__init__.py
shreyb/fife_notes_report
b6fc6fa16c442b7ea43858cc6ac28c8a2d43d5af
[ "Apache-2.0" ]
null
null
null
src/graccreports/minerva_report/__init__.py
shreyb/fife_notes_report
b6fc6fa16c442b7ea43858cc6ac28c8a2d43d5af
[ "Apache-2.0" ]
null
null
null
from .. import Configuration, TextUtils
39
39
0.820513
4
39
8
1
0
0
0
0
0
0
0
0
0
0
0
0.102564
39
1
39
39
0.914286
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
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
1
0
1
0
0
0
0
5
145f683539f9d5633965bcfe809f023120b6cc46
1,228
py
Python
aggregator/migrations/0007_auto_20170515_1731.py
dipapaspyros/bdo_platform
336de07c6ed14290c54f2154117dbf90a187e4ea
[ "MIT" ]
2
2018-02-07T10:26:28.000Z
2018-09-21T09:12:58.000Z
aggregator/migrations/0007_auto_20170515_1731.py
dipapaspyros/bdo_platform
336de07c6ed14290c54f2154117dbf90a187e4ea
[ "MIT" ]
5
2018-09-21T10:40:44.000Z
2019-04-06T10:59:57.000Z
aggregator/migrations/0007_auto_20170515_1731.py
dipapaspyros/bdo_platform
336de07c6ed14290c54f2154117dbf90a187e4ea
[ "MIT" ]
3
2019-06-09T15:42:02.000Z
2022-02-14T19:50:33.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-05-15 14:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('aggregator', '0006_auto_20170515_1444'), ] operations = [ migrations.AlterField( model_name='dimension', name='name', field=models.CharField(max_length=256), ), migrations.AlterField( model_name='dimension', name='title', field=models.CharField(max_length=256), ), migrations.AlterField( model_name='dimension', name='unit', field=models.CharField(max_length=256), ), migrations.AlterField( model_name='variable', name='name', field=models.CharField(max_length=256), ), migrations.AlterField( model_name='variable', name='title', field=models.CharField(max_length=256), ), migrations.AlterField( model_name='variable', name='unit', field=models.CharField(max_length=256), ), ]
26.695652
51
0.55456
114
1,228
5.798246
0.377193
0.181543
0.226929
0.263238
0.706505
0.706505
0.649017
0.649017
0.588502
0.588502
0
0.060753
0.329805
1,228
45
52
27.288889
0.742406
0.053746
0
0.789474
1
0
0.094909
0.019845
0
0
0
0
0
1
0
false
0
0.052632
0
0.131579
0
0
0
0
null
0
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
148ec83fba3c0087bc81ba0ff0b25d7c673669dd
182
py
Python
new_tools/string/check_type.py
Michael07220823/new_tools
087c2811b37a2ee20e150459567a086d25e404b0
[ "MIT" ]
null
null
null
new_tools/string/check_type.py
Michael07220823/new_tools
087c2811b37a2ee20e150459567a086d25e404b0
[ "MIT" ]
null
null
null
new_tools/string/check_type.py
Michael07220823/new_tools
087c2811b37a2ee20e150459567a086d25e404b0
[ "MIT" ]
null
null
null
def check_bool(string=str()): string = str(string) return True if string.capitalize() == "True" or string.lower() == "true" or "True" in string or "true" in string else False
60.666667
127
0.675824
28
182
4.357143
0.5
0.147541
0.245902
0.229508
0
0
0
0
0
0
0
0
0.175824
182
3
127
60.666667
0.813333
0
0
0
0
0
0.087432
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
0
1
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
1
0
0
0
0
0
0
0
5
1ae6b5ea97bc2a807a0bac72f941bf5d1fceafa3
1,774
py
Python
mainsite/models.py
Bekarysalashybayev/Nomad
3dda626763fe2b57535717f223046e13340f6741
[ "MIT" ]
null
null
null
mainsite/models.py
Bekarysalashybayev/Nomad
3dda626763fe2b57535717f223046e13340f6741
[ "MIT" ]
null
null
null
mainsite/models.py
Bekarysalashybayev/Nomad
3dda626763fe2b57535717f223046e13340f6741
[ "MIT" ]
null
null
null
from django.db import models from django.db.models import Model class Insurance(models.Model): name = models.CharField(max_length=255) doc1 = models.CharField(max_length=255, null=True) doc2 = models.CharField(max_length=255, null=True) doc3 = models.CharField(max_length=255, null=True) price = models.IntegerField(default=0) def __str__(self): return self.name class Issue(models.Model): insurance = models.ForeignKey(Insurance, on_delete=models.DO_NOTHING) fio = models.CharField(max_length=255) iin = models.CharField(max_length=255) bday = models.DateTimeField(null=True) doc1 = models.CharField(max_length=255, null=True) doc2 = models.CharField(max_length=255, null=True) doc3 = models.CharField(max_length=255, null=True) phone = models.CharField(max_length=255) email = models.CharField(max_length=255) total = models.IntegerField(default=0) def __str__(self): return self.fio class TypeCar(models.Model): name = models.CharField(max_length=15) class City(models.Model): city = models.CharField(max_length=15) class Hospital(models.Model): name = models.CharField(max_length=15) class News(models.Model): name = models.CharField(max_length=255) description = models.TextField() img = models.ImageField(blank=True, null=True) created_at = models.DateTimeField(auto_now_add=True) def __str__(self): return self.name class ContactForm(models.Model): name = models.CharField(max_length=255) email = models.CharField(max_length=255) phone = models.CharField(max_length=255) description = models.TextField() created_at = models.DateTimeField(auto_now_add=True) def __str__(self): return self.name
28.15873
73
0.719842
236
1,774
5.233051
0.233051
0.218623
0.262348
0.349798
0.773279
0.729555
0.696356
0.68502
0.540891
0.391903
0
0.040054
0.169673
1,774
62
74
28.612903
0.798371
0
0
0.590909
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.045455
0.090909
1
0
0
0
0
null
1
1
1
0
1
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
5
213d5f48251f26f16eaf1b3e50476281d3052b1e
167
py
Python
app/settings/connection.py
Suspir0n/Programming-CEP-Search
7927a466857ec9e881df089816db25e55e84c788
[ "MIT" ]
1
2021-02-21T15:19:44.000Z
2021-02-21T15:19:44.000Z
app/settings/connection.py
Suspir0n/Programming-CEP-Search
7927a466857ec9e881df089816db25e55e84c788
[ "MIT" ]
null
null
null
app/settings/connection.py
Suspir0n/Programming-CEP-Search
7927a466857ec9e881df089816db25e55e84c788
[ "MIT" ]
null
null
null
def connect_db(app): app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:@localhost:3306/cearch' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
55.666667
89
0.760479
21
167
5.809524
0.809524
0.147541
0.311475
0
0
0
0
0
0
0
0
0.026316
0.08982
167
3
90
55.666667
0.776316
0
0
0
0
0
0.571429
0.571429
0
0
0
0
0
1
0.333333
false
0
0
0
0.333333
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
1
0
0
0
0
0
0
0
5
21412ffeab6ac4b4ba0118e770056acf2684f26c
265
py
Python
moto/kinesisvideoarchivedmedia/__init__.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
5,460
2015-01-01T01:11:17.000Z
2022-03-31T23:45:38.000Z
moto/kinesisvideoarchivedmedia/__init__.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
4,475
2015-01-05T19:37:30.000Z
2022-03-31T13:55:12.000Z
moto/kinesisvideoarchivedmedia/__init__.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
1,831
2015-01-14T00:00:44.000Z
2022-03-31T20:30:04.000Z
from .models import kinesisvideoarchivedmedia_backends from ..core.models import base_decorator kinesisvideoarchivedmedia_backend = kinesisvideoarchivedmedia_backends["us-east-1"] mock_kinesisvideoarchivedmedia = base_decorator(kinesisvideoarchivedmedia_backends)
44.166667
83
0.890566
24
265
9.541667
0.541667
0.432314
0.331878
0
0
0
0
0
0
0
0
0.004
0.056604
265
5
84
53
0.912
0
0
0
0
0
0.033962
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
1
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
5
214d1c2536bef7dbade376fe5becb040728f8ff3
10,640
bzl
Python
tests/new_sets_tests.bzl
Nexproc/bazel-skylib
a9f16d32742e15232a129c53b3d7dda1451d71a8
[ "Apache-2.0" ]
null
null
null
tests/new_sets_tests.bzl
Nexproc/bazel-skylib
a9f16d32742e15232a129c53b3d7dda1451d71a8
[ "Apache-2.0" ]
null
null
null
tests/new_sets_tests.bzl
Nexproc/bazel-skylib
a9f16d32742e15232a129c53b3d7dda1451d71a8
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed 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. """Unit tests for new_sets.bzl.""" load("//:lib.bzl", "new_sets", "asserts", "unittest") def _is_equal_test(ctx): """Unit tests for new_sets.is_equal. Note that if this test fails, the results for the other `sets` tests will be inconclusive because they use `asserts.new_set_equals`, which in turn calls `new_sets.is_equal`. """ env = unittest.begin(ctx) asserts.true(env, new_sets.is_equal(new_sets.make(), new_sets.make())) asserts.false(env, new_sets.is_equal(new_sets.make(), new_sets.make([1]))) asserts.false(env, new_sets.is_equal(new_sets.make([1]), new_sets.make())) asserts.true(env, new_sets.is_equal(new_sets.make([1]), new_sets.make([1]))) asserts.false(env, new_sets.is_equal(new_sets.make([1]), new_sets.make([1, 2]))) asserts.false(env, new_sets.is_equal(new_sets.make([1]), new_sets.make([2]))) asserts.false(env, new_sets.is_equal(new_sets.make([1]), new_sets.make([1, 2]))) # Verify that the implementation is not using == on the sets directly. asserts.true(env, new_sets.is_equal(new_sets.make(depset([1])), new_sets.make(depset([1])))) # If passing a list, verify that duplicate elements are ignored. asserts.true(env, new_sets.is_equal(new_sets.make([1, 1]), new_sets.make([1]))) unittest.end(env) is_equal_test = unittest.make(_is_equal_test) def _is_subset_test(ctx): """Unit tests for new_sets.is_subset.""" env = unittest.begin(ctx) asserts.true(env, new_sets.is_subset(new_sets.make(), new_sets.make())) asserts.true(env, new_sets.is_subset(new_sets.make(), new_sets.make([1]))) asserts.false(env, new_sets.is_subset(new_sets.make([1]), new_sets.make())) asserts.true(env, new_sets.is_subset(new_sets.make([1]), new_sets.make([1]))) asserts.true(env, new_sets.is_subset(new_sets.make([1]), new_sets.make([1, 2]))) asserts.false(env, new_sets.is_subset(new_sets.make([1]), new_sets.make([2]))) asserts.true(env, new_sets.is_subset(new_sets.make([1]), new_sets.make(depset([1, 2])))) # If passing a list, verify that duplicate elements are ignored. asserts.true(env, new_sets.is_subset(new_sets.make([1, 1]), new_sets.make([1, 2]))) unittest.end(env) is_subset_test = unittest.make(_is_subset_test) def _disjoint_test(ctx): """Unit tests for new_sets.disjoint.""" env = unittest.begin(ctx) asserts.true(env, new_sets.disjoint(new_sets.make(), new_sets.make())) asserts.true(env, new_sets.disjoint(new_sets.make(), new_sets.make([1]))) asserts.true(env, new_sets.disjoint(new_sets.make([1]), new_sets.make())) asserts.false(env, new_sets.disjoint(new_sets.make([1]), new_sets.make([1]))) asserts.false(env, new_sets.disjoint(new_sets.make([1]), new_sets.make([1, 2]))) asserts.true(env, new_sets.disjoint(new_sets.make([1]), new_sets.make([2]))) asserts.true(env, new_sets.disjoint(new_sets.make([1]), new_sets.make(depset([2])))) # If passing a list, verify that duplicate elements are ignored. asserts.false(env, new_sets.disjoint(new_sets.make([1, 1]), new_sets.make([1, 2]))) unittest.end(env) disjoint_test = unittest.make(_disjoint_test) def _intersection_test(ctx): """Unit tests for new_sets.intersection.""" env = unittest.begin(ctx) asserts.new_set_equals(env, new_sets.make(), new_sets.intersection(new_sets.make(), new_sets.make())) asserts.new_set_equals(env, new_sets.make(), new_sets.intersection(new_sets.make(), new_sets.make([1]))) asserts.new_set_equals(env, new_sets.make(), new_sets.intersection(new_sets.make([1]), new_sets.make())) asserts.new_set_equals(env, new_sets.make([1]), new_sets.intersection(new_sets.make([1]), new_sets.make([1]))) asserts.new_set_equals(env, new_sets.make([1]), new_sets.intersection(new_sets.make([1]), new_sets.make([1, 2]))) asserts.new_set_equals(env, new_sets.make(), new_sets.intersection(new_sets.make([1]), new_sets.make([2]))) asserts.new_set_equals(env, new_sets.make([1]), new_sets.intersection(new_sets.make([1]), new_sets.make(depset([1])))) # If passing a list, verify that duplicate elements are ignored. asserts.new_set_equals(env, new_sets.make([1]), new_sets.intersection(new_sets.make([1, 1]), new_sets.make([1, 2]))) unittest.end(env) intersection_test = unittest.make(_intersection_test) def _union_test(ctx): """Unit tests for new_sets.union.""" env = unittest.begin(ctx) asserts.new_set_equals(env, new_sets.make(), new_sets.union()) asserts.new_set_equals(env, new_sets.make([1]), new_sets.union(new_sets.make([1]))) asserts.new_set_equals(env, new_sets.make(), new_sets.union(new_sets.make(), new_sets.make())) asserts.new_set_equals(env, new_sets.make([1]), new_sets.union(new_sets.make(), new_sets.make([1]))) asserts.new_set_equals(env, new_sets.make([1]), new_sets.union(new_sets.make([1]), new_sets.make())) asserts.new_set_equals(env, new_sets.make([1]), new_sets.union(new_sets.make([1]), new_sets.make([1]))) asserts.new_set_equals(env, new_sets.make([1, 2]), new_sets.union(new_sets.make([1]), new_sets.make([1, 2]))) asserts.new_set_equals(env, new_sets.make([1, 2]), new_sets.union(new_sets.make([1]), new_sets.make([2]))) asserts.new_set_equals(env, new_sets.make([1]), new_sets.union(new_sets.make([1]), new_sets.make(depset([1])))) # If passing a list, verify that duplicate elements are ignored. asserts.new_set_equals(env, new_sets.make([1, 2]), new_sets.union(new_sets.make([1, 1]), new_sets.make([1, 2]))) unittest.end(env) union_test = unittest.make(_union_test) def _difference_test(ctx): """Unit tests for new_sets.difference.""" env = unittest.begin(ctx) asserts.new_set_equals(env, new_sets.make(), new_sets.difference(new_sets.make(), new_sets.make())) asserts.new_set_equals(env, new_sets.make(), new_sets.difference(new_sets.make(), new_sets.make([1]))) asserts.new_set_equals(env, new_sets.make([1]), new_sets.difference(new_sets.make([1]), new_sets.make())) asserts.new_set_equals(env, new_sets.make(), new_sets.difference(new_sets.make([1]), new_sets.make([1]))) asserts.new_set_equals(env, new_sets.make(), new_sets.difference(new_sets.make([1]), new_sets.make([1, 2]))) asserts.new_set_equals(env, new_sets.make([1]), new_sets.difference(new_sets.make([1]), new_sets.make([2]))) asserts.new_set_equals(env, new_sets.make(), new_sets.difference(new_sets.make([1]), new_sets.make(depset([1])))) # If passing a list, verify that duplicate elements are ignored. asserts.new_set_equals(env, new_sets.make([2]), new_sets.difference(new_sets.make([1, 2]), new_sets.make([1, 1]))) unittest.end(env) difference_test = unittest.make(_difference_test) def _to_list_test(ctx): """Unit tests for new_sets.to_list.""" env = unittest.begin(ctx) asserts.equals(env, [], new_sets.to_list(new_sets.make())) asserts.equals(env, [1], new_sets.to_list(new_sets.make([1, 1, 1]))) asserts.equals(env, [1, 2, 3], new_sets.to_list(new_sets.make([1, 2, 3]))) unittest.end(env) to_list_test = unittest.make(_to_list_test) def _make_test(ctx): """Unit tests for new_sets.make.""" env = unittest.begin(ctx) asserts.equals(env, {}, new_sets.make()._values) asserts.equals(env, {x: None for x in [1, 2, 3]}, new_sets.make([1, 1, 2, 2, 3, 3])._values) asserts.equals(env, {1: None, 2: None}, new_sets.make(depset([1, 2]))._values) unittest.end(env) make_test = unittest.make(_make_test) def _copy_test(ctx): """Unit tests for new_sets.copy.""" env = unittest.begin(ctx) asserts.new_set_equals(env, new_sets.copy(new_sets.make()), new_sets.make()) asserts.new_set_equals(env, new_sets.copy(new_sets.make([1, 2, 3])), new_sets.make([1, 2, 3])) # Ensure mutating the copy does not mutate the original original = new_sets.make([1, 2, 3]) copy = new_sets.copy(original) copy._values[5] = None asserts.false(env, new_sets.is_equal(original, copy)) unittest.end(env) copy_test = unittest.make(_copy_test) def _insert_test(ctx): """Unit tests for new_sets.insert.""" env = unittest.begin(ctx) asserts.new_set_equals(env, new_sets.make([1, 2, 3]), new_sets.insert(new_sets.make([1, 2]), 3)) # Ensure mutating the inserted set does mutate the original set. original = new_sets.make([1, 2, 3]) after_insert = new_sets.insert(original, 4) asserts.new_set_equals(env, original, after_insert, msg="Insert creates a new set which is an O(n) operation, insert should be O(1).") unittest.end(env) insert_test = unittest.make(_insert_test) def _contains_test(ctx): """Unit tests for new_sets.contains.""" env = unittest.begin(ctx) asserts.false(env, new_sets.contains(new_sets.make(), 1)) asserts.true(env, new_sets.contains(new_sets.make([1]), 1)) asserts.true(env, new_sets.contains(new_sets.make([1, 2]), 1)) asserts.false(env, new_sets.contains(new_sets.make([2, 3]), 1)) unittest.end(env) contains_test = unittest.make(_contains_test) def _length_test(ctx): """Unit test for new_sets.length.""" env = unittest.begin(ctx) asserts.equals(env, 0, new_sets.length(new_sets.make())) asserts.equals(env, 1, new_sets.length(new_sets.make([1]))) asserts.equals(env, 2, new_sets.length(new_sets.make([1, 2]))) unittest.end(env) length_test = unittest.make(_length_test) def _remove_test(ctx): """Unit test for new_sets.remove.""" env = unittest.begin(ctx) asserts.new_set_equals(env, new_sets.make([1, 2]), new_sets.remove(new_sets.make([1, 2, 3]), 3)) # Ensure mutating the inserted set does mutate the original set. original = new_sets.make([1, 2, 3]) after_removal = new_sets.remove(original, 3) asserts.new_set_equals(env, original, after_removal) unittest.end(env) remove_test = unittest.make(_remove_test) def new_sets_test_suite(): """Creates the test targets and test suite for new_sets.bzl tests.""" unittest.suite( "new_sets_tests", disjoint_test, intersection_test, is_equal_test, is_subset_test, difference_test, union_test, to_list_test, make_test, copy_test, insert_test, contains_test, length_test, remove_test, )
39.850187
120
0.718327
1,789
10,640
4.03242
0.080492
0.22997
0.228722
0.154699
0.720821
0.711533
0.704741
0.631411
0.611589
0.56723
0
0.020051
0.114098
10,640
267
121
39.850187
0.745279
0.178571
0
0.208054
0
0.006711
0.01413
0
0
0
0
0
0.483221
1
0.09396
false
0
0
0
0.09396
0
0
0
0
null
1
1
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
5
215841676e09d8f7cdd835fb5efcdc5ebc9672d4
135
py
Python
trans/__init__.py
squncle/Simple-GUI-Translator
ef39a84aa96c03289058108f3ee6ac9055993ff3
[ "MIT" ]
null
null
null
trans/__init__.py
squncle/Simple-GUI-Translator
ef39a84aa96c03289058108f3ee6ac9055993ff3
[ "MIT" ]
null
null
null
trans/__init__.py
squncle/Simple-GUI-Translator
ef39a84aa96c03289058108f3ee6ac9055993ff3
[ "MIT" ]
null
null
null
from .baidu import Baidu from .tencent import Tencent from .caiyun import Caiyun from .google import Google from .youdao import Youdao
22.5
28
0.814815
20
135
5.5
0.35
0
0
0
0
0
0
0
0
0
0
0
0.148148
135
5
29
27
0.956522
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
5
215e8588a92642858e60c19c68ece8084adea47e
479
py
Python
calcApp/stack.py
yfd-01/calcApp
bc0a72f42216461d10781e7f0a5fa597579cded5
[ "MIT" ]
null
null
null
calcApp/stack.py
yfd-01/calcApp
bc0a72f42216461d10781e7f0a5fa597579cded5
[ "MIT" ]
null
null
null
calcApp/stack.py
yfd-01/calcApp
bc0a72f42216461d10781e7f0a5fa597579cded5
[ "MIT" ]
null
null
null
class Stack: __stack = None def __init__(self): self.__stack = [] def push(self, val): self.__stack.append(val) def peek(self): if len(self.__stack) != 0: return self.__stack[len(self.__stack) - 1] def pop(self): if len(self.__stack) != 0: return self.__stack.pop() def len(self): return len(self.__stack) def convert_to_list(self): return self.__stack
21.772727
55
0.536534
59
479
3.915254
0.322034
0.350649
0.207792
0.112554
0.294372
0.294372
0.294372
0.294372
0.294372
0
0
0.009585
0.346555
479
22
56
21.772727
0.728435
0
0
0.125
0
0
0
0
0
0
0
0
0
1
0.375
false
0
0
0.125
0.75
0
0
0
0
null
1
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
1
0
0
0
1
1
0
0
5
0d2491969632897de3e48e2e08efc0d33c9210ec
72
py
Python
gym_flock/envs/formation/__init__.py
katetolstaya/gym-flock
3236d1dafcb1b9be0cf78b471672e8becb2d37af
[ "MIT" ]
19
2019-07-29T22:19:58.000Z
2022-01-27T04:38:38.000Z
gym_flock/envs/formation/__init__.py
henghenghahei849/gym-flock
b09bdfbbe4a96fe052958d1f9e1e9dd314f58419
[ "MIT" ]
null
null
null
gym_flock/envs/formation/__init__.py
henghenghahei849/gym-flock
b09bdfbbe4a96fe052958d1f9e1e9dd314f58419
[ "MIT" ]
5
2019-10-03T14:44:49.000Z
2021-12-09T20:39:39.000Z
from gym_flock.envs.formation.formation_flying import FormationFlyingEnv
72
72
0.916667
9
72
7.111111
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.041667
72
1
72
72
0.927536
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
5
b4936c158bff68cb6de6c3dab365f26b2a218acc
215
py
Python
setup.py
TylerNakamura/extract-reddit-page-links
8134f6d686e622a2e2ac47ea3782b0e36924a2a7
[ "MIT" ]
null
null
null
setup.py
TylerNakamura/extract-reddit-page-links
8134f6d686e622a2e2ac47ea3782b0e36924a2a7
[ "MIT" ]
null
null
null
setup.py
TylerNakamura/extract-reddit-page-links
8134f6d686e622a2e2ac47ea3782b0e36924a2a7
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='extract-reddit-page-links', version='0.1dev', packages=['extract-reddit-page-links', ], license='MIT', long_description=open('README.md').read(), )
21.5
46
0.665116
27
215
5.259259
0.814815
0.183099
0.239437
0.309859
0
0
0
0
0
0
0
0.010989
0.153488
215
9
47
23.888889
0.769231
0
0
0
0
0
0.316279
0.232558
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0
1
0
0
null
0
1
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
1
0
0
0
0
0
0
5
b4abd6a76b489666e8dd5799a2308f39f4a45a6a
338
py
Python
desktop/core/ext-py/xlwt-1.3.0/tests/utils.py
zhoudahong/hue
9ec1b48e6abf08e81b74fa5fc4a03770e37aff92
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/xlwt-1.3.0/tests/utils.py
zhoudahong/hue
9ec1b48e6abf08e81b74fa5fc4a03770e37aff92
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/xlwt-1.3.0/tests/utils.py
zhoudahong/hue
9ec1b48e6abf08e81b74fa5fc4a03770e37aff92
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
import os from os.path import join, dirname, abspath, isdir def in_tst_dir(filename): return join(dirname(abspath(__file__)), filename) def in_tst_output_dir(filename): output_dir = join(dirname(abspath(__file__)), 'output') if not isdir(output_dir): os.mkdir(output_dir, 0o755) return join(output_dir, filename)
30.727273
59
0.733728
49
338
4.714286
0.408163
0.194805
0.233766
0.190476
0
0
0
0
0
0
0
0.014035
0.156805
338
11
60
30.727273
0.796491
0
0
0
0
0
0.017699
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0.111111
0.666667
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
1
0
0
0
1
1
0
0
5
370ceba51f3af08befbeaf2e5f0031d5d640c5c6
355
py
Python
01-Explicit-Indexes/07-SlicingInBothDirections.py
Pegasus-01/Data-manipulation-and-merging-with-pandas
5346678d25820d9fe352bd70294484ecd96fccf7
[ "Apache-2.0" ]
1
2020-10-18T16:42:28.000Z
2020-10-18T16:42:28.000Z
01-Explicit-Indexes/07-SlicingInBothDirections.py
Pegasus-01/Data-manipulation-and-merging-with-pandas
5346678d25820d9fe352bd70294484ecd96fccf7
[ "Apache-2.0" ]
null
null
null
01-Explicit-Indexes/07-SlicingInBothDirections.py
Pegasus-01/Data-manipulation-and-merging-with-pandas
5346678d25820d9fe352bd70294484ecd96fccf7
[ "Apache-2.0" ]
null
null
null
# Subset rows from India, Hyderabad to Iraq, Baghdad print(temperatures_srt.loc[("India", "Hyderabad"):("Iraq", "Baghdad")]) # Subset columns from date to avg_temp_c print(temperatures_srt.loc[:, "date":"avg_temp_c"]) # Subset in both directions at once print(temperatures_srt.loc[("India", "Hyderabad"):("Iraq", "Baghdad"), "date":"avg_temp_c"])
44.375
92
0.709859
50
355
4.86
0.44
0.17284
0.246914
0.283951
0.395062
0.395062
0.395062
0.395062
0
0
0
0
0.112676
355
8
92
44.375
0.771429
0.346479
0
0
0
0
0.351351
0
0
0
0
0
0
1
0
true
0
0
0
0
1
0
0
0
null
0
1
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
1
0
0
0
0
1
0
5
3720ad6ec59985d71a7b4a655aa8174115aa2572
685
py
Python
pyboletox/Contracts/Cnab/Retorno/Cnab400/trailer.py
lucasbrahm/pyboletox
d7cfff477622a4d5df255045428325f04fbe695a
[ "MIT" ]
1
2022-03-14T12:22:42.000Z
2022-03-14T12:22:42.000Z
pyboletox/Contracts/Cnab/Retorno/Cnab400/trailer.py
lucasbrahm/pyboletox
d7cfff477622a4d5df255045428325f04fbe695a
[ "MIT" ]
null
null
null
pyboletox/Contracts/Cnab/Retorno/Cnab400/trailer.py
lucasbrahm/pyboletox
d7cfff477622a4d5df255045428325f04fbe695a
[ "MIT" ]
1
2022-03-14T12:22:27.000Z
2022-03-14T12:22:27.000Z
from abc import ABCMeta, abstractmethod class Trailer(metaclass=ABCMeta): @abstractmethod def getValorTitulos(self): pass @abstractmethod def getAvisos(self): pass @abstractmethod def getQuantidadeTitulos(self): pass @abstractmethod def getQuantidadeLiquidados(self): pass @abstractmethod def getQuantidadeBaixados(self): pass @abstractmethod def getQuantidadeEntradas(self): pass @abstractmethod def getQuantidadeAlterados(self): pass @abstractmethod def getQuantidadeErros(self): pass @abstractmethod def toDict(self): pass
16.707317
39
0.645255
54
685
8.185185
0.37037
0.346154
0.39819
0.452489
0
0
0
0
0
0
0
0
0.294891
685
40
40
17.125
0.915114
0
0
0.62069
0
0
0
0
0
0
0
0
0
1
0.310345
false
0.310345
0.034483
0
0.37931
0
0
0
0
null
1
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
1
0
1
0
0
0
0
0
5
2ebbe235147cdfe422bed6d75cd56efe69af50e0
903
py
Python
challenges/filtered/global_skills_hub/q001/sorting_bank_accounts_test.py
Joeffison/coding_challenges
0f0c5c2c3dad3a5aabfb66d66c5b6a89bff374ea
[ "MIT" ]
1
2018-02-27T15:53:17.000Z
2018-02-27T15:53:17.000Z
challenges/filtered/global_skills_hub/q001/sorting_bank_accounts_test.py
Joeffison/coding_challenges
0f0c5c2c3dad3a5aabfb66d66c5b6a89bff374ea
[ "MIT" ]
null
null
null
challenges/filtered/global_skills_hub/q001/sorting_bank_accounts_test.py
Joeffison/coding_challenges
0f0c5c2c3dad3a5aabfb66d66c5b6a89bff374ea
[ "MIT" ]
1
2021-04-18T09:43:21.000Z
2021-04-18T09:43:21.000Z
#!/usr/bin/env python3 import unittest from challenges.filtered.global_skills_hub.q001.sorting_bank_accounts_v001 import solution class SortingBankAccountsTestCase(unittest.TestCase): def test_description_examples(self): self.assertEqual(self.__format_solution(['03 10103538 2222 1233 6160 0141 1', '03 10103538 2222 1233 6160 0142 1', '30 10103538 2222 1233 6160 0141 2', '30 10103538 2222 1233 6160 0142 2']), solution(['03 10103538 2222 1233 6160 0141', '03 10103538 2222 1233 6160 0142', '30 10103538 2222 1233 6160 0141', '30 10103538 2222 1233 6160 0142', '30 10103538 2222 1233 6160 0141', '30 10103538 2222 1233 6160 0142'])) def __format_solution(self, response): return '\n'.join(response) + '\n\n' if __name__ == '__main__': unittest.main()
37.625
120
0.646733
114
903
4.938596
0.394737
0.213144
0.284192
0.35524
0.490231
0.490231
0.348135
0.227353
0.227353
0.227353
0
0.408133
0.264673
903
23
121
39.26087
0.439759
0.023256
0
0
0
0
0.376844
0
0
0
0
0
0.076923
1
0.153846
false
0
0.153846
0.076923
0.461538
0
0
0
0
null
1
1
1
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
5
2ed67dee1eb34e8d9a3dd982c884631d9d625ce4
165
py
Python
app/projects/__init__.py
hwc0919/TsyDigitalRailway
34d682f698b0b8bf066719c06fa431d2ab1436a0
[ "CC0-1.0" ]
null
null
null
app/projects/__init__.py
hwc0919/TsyDigitalRailway
34d682f698b0b8bf066719c06fa431d2ab1436a0
[ "CC0-1.0" ]
null
null
null
app/projects/__init__.py
hwc0919/TsyDigitalRailway
34d682f698b0b8bf066719c06fa431d2ab1436a0
[ "CC0-1.0" ]
null
null
null
# 不能更改代码顺序!!!请勿使用IDE的代码格式化功能!!! from flask import Blueprint # 第一行 projects = Blueprint('projects', __name__) # 第二行 from . import views # 第三行
20.625
51
0.630303
16
165
6.25
0.75
0
0
0
0
0
0
0
0
0
0
0
0.266667
165
7
52
23.571429
0.826446
0.248485
0
0
0
0
0.067227
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.666667
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
1
0
1
1
0
5
2c180777fca86930d59686554a1512e4c61304cf
134
py
Python
wcctrl/type/light.py
afri-bit/word-clock-de
86283a8b96b2a8965a13fd2b55b992fe558b6bdf
[ "MIT" ]
1
2021-05-30T19:39:34.000Z
2021-05-30T19:39:34.000Z
wcctrl/type/light.py
afri-bit/word-clock-de
86283a8b96b2a8965a13fd2b55b992fe558b6bdf
[ "MIT" ]
null
null
null
wcctrl/type/light.py
afri-bit/word-clock-de
86283a8b96b2a8965a13fd2b55b992fe558b6bdf
[ "MIT" ]
null
null
null
class Light: def __init__(self, always_on: bool, timeout: int): self.always_on = always_on self.timeout = timeout
26.8
54
0.656716
18
134
4.5
0.555556
0.296296
0.296296
0
0
0
0
0
0
0
0
0
0.253731
134
5
55
26.8
0.81
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
1
0
0
null
1
1
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
1
0
0
0
0
0
0
0
5
2c2f18ce2f478b0ac680545cee6c24d78aa08859
25,165
py
Python
esileapclient/tests/functional/v1/test_time.py
tzumainn/python-esileapclient
9d41149df3434596bbaa8cc6fe9fe4726997c7e6
[ "Apache-1.1" ]
null
null
null
esileapclient/tests/functional/v1/test_time.py
tzumainn/python-esileapclient
9d41149df3434596bbaa8cc6fe9fe4726997c7e6
[ "Apache-1.1" ]
null
null
null
esileapclient/tests/functional/v1/test_time.py
tzumainn/python-esileapclient
9d41149df3434596bbaa8cc6fe9fe4726997c7e6
[ "Apache-1.1" ]
null
null
null
import time import pytest from datetime import datetime, timedelta from tempest.lib.exceptions import CommandFailed import esileapclient.tests.functional.utils.esi_interfaces as esi from esileapclient.tests.functional.base import ESIBaseTestClass from esileapclient.tests.functional.utils.dummy_node import DummyNode class TimeTests(ESIBaseTestClass): @classmethod def setUpClass(cls): super(TimeTests, cls).setUpClass() cls._init_dummy_project(cls, 'main', 'owner') cls._init_dummy_project(cls, 'subproj1', ['owner', 'lessee'], parent='main') cls._init_dummy_project(cls, 'subproj2', 'lessee', parent='main') def setUp(self): super(TimeTests, self).setUp() self.clients = TimeTests.clients self.users = TimeTests.users self.projects = TimeTests.projects self.dummy_node = DummyNode(TimeTests.config['dummy_node_dir'], self.projects['main']['id']) def test_offer_claim_multiple(self): """ Tests that more that one lessee can claim the same offer provided that the times specified do not conflict. Test steps: 1) (owner) Create an offer for an owned node. 2) Check that offer details were returned. 3) Record what the time will be in five minutes. 4) (subproj1) Claim the offer from step 1, starting at the time recorded in step 3 and ending 30 minutes from then. 5) Check that lease details were returned. 6) (subproj2) Claim the offer from step 1, starting five minutes after the end time of the lease created in step 4 and ending 30 minutes from then. 7) Check that lease details were returned. 8) (owner) Check that both leases show up when listing leases. 9) (subproj2) (cleanup) Delete the lease created in step 6. 10) (subproj1) (cleanup) Delete the lease created in step 4. 11) (owner) (cleanup) Delete the offer created in step 1. """ offer = esi.offer_create(self.clients['main-owner'], self.dummy_node.uuid, resource_type='dummy_node') self.assertNotEqual(offer, {}) self.addCleanup(esi.offer_delete, self.clients['main-owner'], offer['uuid']) time_now = datetime.now() lease1_start_time = time_now + timedelta(minutes=5) lease1_end_time = lease1_start_time + timedelta(minutes=30) lease2_start_time = lease1_end_time + timedelta(minutes=5) lease2_end_time = lease2_start_time + timedelta(minutes=30) lease1 = esi.offer_claim(self.clients['subproj1-lessee'], offer['uuid'], start_time=str(lease1_start_time), end_time=str(lease1_end_time)) self.assertNotEqual(lease1, {}) self.addCleanup(esi.lease_delete, self.clients['subproj1-lessee'], lease1['uuid']) lease2 = esi.offer_claim(self.clients['subproj2-lessee'], offer['uuid'], start_time=str(lease2_start_time), end_time=str(lease2_end_time)) self.assertNotEqual(lease2, {}) self.addCleanup(esi.lease_delete, self.clients['subproj2-lessee'], lease2['uuid']) listings = esi.lease_list(self.clients['main-owner']) uuid_listings = [x['UUID'] for x in listings] self.assertNotEqual(listings, []) for lease_id in lease1['uuid'], lease2['uuid']: self.assertIn(lease_id, uuid_listings) def test_offer_create_multiple(self): """ Tests that more than one offer can be created for the same resource provided that the times specified do not conflict. Test steps: 1) Record what the time will be in five minutes. 2) Create an offer for an owned node, starting at the time recorded in step 1 and ending 30 minutes from then. 3) Check that offer details were returned. 4) Create an offer for the same node, starting five minutes after the end time of the offer created in step 2 and ending 30 minutes from then. 5) Check that offer details were returned. 6) Check that both offers show up when listing offers. 7) (cleanup) Delete the offer created in step 4. 8) (cleanup) Delete the offer created in step 2. """ time_now = datetime.now() offer1_start_time = time_now + timedelta(minutes=5) offer1_end_time = offer1_start_time + timedelta(minutes=30) offer2_start_time = offer1_end_time + timedelta(minutes=5) offer2_end_time = offer2_start_time + timedelta(minutes=30) offer1 = esi.offer_create(self.clients['main-owner'], self.dummy_node.uuid, resource_type='dummy_node', start_time=str(offer1_start_time), end_time=str(offer1_end_time)) self.assertNotEqual(offer1, {}) self.addCleanup(esi.offer_delete, self.clients['main-owner'], offer1['uuid']) offer2 = esi.offer_create(self.clients['main-owner'], self.dummy_node.uuid, resource_type='dummy_node', start_time=str(offer2_start_time), end_time=str(offer2_end_time)) self.assertNotEqual(offer2, {}) self.addCleanup(esi.offer_delete, self.clients['main-owner'], offer2['uuid']) listings = esi.offer_list(self.clients['main-owner']) uuid_listings = [x['UUID'] for x in listings] self.assertNotEqual(listings, []) for offer_id in offer1['uuid'], offer2['uuid']: self.assertIn(offer_id, uuid_listings) def test_lease_create_multiple(self): """ Tests that more than one lease can be created for the same resource provided that the times specified do not conflict. Test steps: 1) Record what the time will be in five minutes. 2) Create a lease on an owned node, starting at the time recorded in step 1 and ending 30 minutes from then. 3) Check that lease details were returned. 4) Create a lease on the same node, starting five minutes after the end time of the lease created in step 2 and ending 30 minutes from then. 5) Check that lease details were returned. 6) Check that both lease show up when listing leases. 7) (cleanup) Delete the lease created in step 4. 8) (cleanup) Delete the lease created in step 2. """ time_now = datetime.now() lease1_start_time = time_now + timedelta(minutes=5) lease1_end_time = lease1_start_time + timedelta(minutes=30) lease2_start_time = lease1_end_time + timedelta(minutes=5) lease2_end_time = lease2_start_time + timedelta(minutes=30) lease1 = esi.lease_create(self.clients['main-owner'], self.dummy_node.uuid, self.projects['main']['name'], resource_type='dummy_node', start_time=str(lease1_start_time), end_time=str(lease1_end_time)) self.assertNotEqual(lease1, {}) self.addCleanup(esi.lease_delete, self.clients['main-owner'], lease1['uuid']) lease2 = esi.lease_create(self.clients['main-owner'], self.dummy_node.uuid, self.projects['main']['name'], resource_type='dummy_node', start_time=str(lease2_start_time), end_time=str(lease2_end_time)) self.assertNotEqual(lease2, {}) self.addCleanup(esi.lease_delete, self.clients['main-owner'], lease2['uuid']) listings = esi.lease_list(self.clients['main-owner']) uuid_listings = [x['UUID'] for x in listings] self.assertNotEqual(listings, []) for lease_id in lease1['uuid'], lease2['uuid']: self.assertIn(lease_id, uuid_listings) @pytest.mark.negative def test_offer_claim_conflict(self): """ Tests that two lessees cannot make overlapping claims on the same offer. Test steps: 1) (owner) Create an offer for an owned node. 2) Check that offer details were returned. 3) Record the current time. 4) (subproj1) Claim the offer from step 1, ending 30 minutes after the time recorded in step 3. 5) Check that lease details were returned. 6) (subproj2) Attempt to claim the offer from step 1, starting 15 minutes after the time recorded in step 3, and ending 30 minutes after that. 7) Check that the command failed. (returned non-zero exit code) 8) Check that the proper error message was sent to stderr. 9) (subproj1) (cleanup) Delete the lease created in step 4. 10) (owner) (cleanup) Delete the offer created in step 1. """ offer = esi.offer_create(self.clients['main-owner'], self.dummy_node.uuid, resource_type='dummy_node') self.assertNotEqual(offer, {}) self.addCleanup(esi.offer_delete, self.clients['main-owner'], offer['uuid']) time_now = datetime.now() lease1_end_time = time_now + timedelta(minutes=30) lease2_start_time = time_now + timedelta(minutes=15) lease2_end_time = lease2_start_time + timedelta(minutes=30) lease1 = esi.offer_claim(self.clients['subproj1-lessee'], offer['uuid'], end_time=str(lease1_end_time)) self.assertNotEqual(lease1, {}) self.addCleanup(esi.lease_delete, self.clients['subproj1-lessee'], lease1['uuid']) e = self.assertRaises(CommandFailed, esi.offer_claim, self.clients['subproj2-lessee'], offer['uuid'], start_time=str(lease2_start_time), end_time=str(lease2_end_time)) err = ('Offer %s has no availabilities at given time range %s, %s' % (offer['uuid'], str(lease2_start_time), str(lease2_end_time))) self.assertIn(err, e.stderr.decode()) @pytest.mark.negative def test_offer_create_conflict(self): """ Tests that two overlapping offers cannot be created for the same node. Test steps: 1) Record the current time. 2) Create an offer for an owned node, ending 30 minutes after the time recorded in step 1. 3) Check that offer details were returned. 4) Attempt to create another offer for the same node as in step 2, starting 15 minutes after the time recorded in step 1, and ending 30 minutes after that. 5) Check that the command failed. (returned non-zero exit code) 6) Check that the proper error message was sent to stderr. 7) (cleanup) Delete the offer created in step 2. """ time_now = datetime.now() offer1_end_time = time_now + timedelta(minutes=30) offer2_start_time = time_now + timedelta(minutes=15) offer2_end_time = offer2_start_time + timedelta(minutes=30) offer1 = esi.offer_create(self.clients['main-owner'], self.dummy_node.uuid, resource_type='dummy_node', end_time=str(offer1_end_time)) self.assertNotEqual(offer1, {}) self.addCleanup(esi.offer_delete, self.clients['main-owner'], offer1['uuid']) e = self.assertRaises(CommandFailed, esi.offer_create, self.clients['main-owner'], self.dummy_node.uuid, resource_type='dummy_node', start_time=str(offer2_start_time), end_time=str(offer2_end_time)) self.assertIn('Time conflict for dummy_node %s.' % self.dummy_node.uuid, e.stderr.decode()) @pytest.mark.negative def test_lease_create_conflict(self): """ Tests that two overlapping leases cannot be created on the same node. Test steps: 1) Record the current time. 2) Create a lease on an owned node, ending 30 minutes after the time recorded in step 1. 3) Check that lease details were returned. 4) Attempt to create another lease on the same node as in step 2, starting 15 minutes after the time recorded in step 1, and ending 30 minutes after that. 5) Check that the command failed. (returned non-zero exit code) 6) Check that the proper error message was sent to stderr. 7) (cleanup) Delete the lease created in step 2. """ time_now = datetime.now() lease1_end_time = time_now + timedelta(minutes=30) lease2_start_time = time_now + timedelta(minutes=15) lease2_end_time = lease2_start_time + timedelta(minutes=30) lease1 = esi.lease_create(self.clients['main-owner'], self.dummy_node.uuid, self.projects['main']['name'], resource_type='dummy_node', end_time=str(lease1_end_time)) self.assertNotEqual(lease1, {}) self.addCleanup(esi.lease_delete, self.clients['main-owner'], lease1['uuid']) e = self.assertRaises(CommandFailed, esi.lease_create, self.clients['main-owner'], self.dummy_node.uuid, self.projects['main']['name'], resource_type='dummy_node', start_time=str(lease2_start_time), end_time=str(lease2_end_time)) self.assertIn('Time conflict for dummy_node %s.' % self.dummy_node.uuid, e.stderr.decode()) @pytest.mark.negative def test_offer_claim_out_of_range(self): """ Tests to ensure offers cannot be claimed for a time period that is outside of the range of the offer's availability. Test steps: 1) Record the current time. 2) (owner) Create an offer for an owned node, starting 15 minutes after the time recorded in step 1, and ending 30 minutes after that. 3) Check that offer details were returned. 4) Repeat steps 5 thru 7 with the following ranges (times are relative to the time recorded in step 1): - 5 minutes after thru 20 minutes after - 20 minutes after thru 60 minutes after - 5 minutes after thru 60 minutes after 5) (subproj1) Attempt to claim the offer created in step 2 for a time range outside of what was specified during creation. 6) Check that the command failed. (returned non-zero exit code) 7) Check that the proper error message was sent to stderr. 8) (owner) (cleanup) Delete the offer created in step 2. """ time_now = datetime.now() offer_start_time = time_now + timedelta(minutes=15) offer_end_time = time_now + timedelta(minutes=30) claim_time_early = time_now + timedelta(minutes=5) claim_time_valid = offer_start_time + timedelta(minutes=15) claim_time_late = offer_end_time + timedelta(minutes=15) offer = esi.offer_create(self.clients['main-owner'], self.dummy_node.uuid, resource_type='dummy_node', start_time=str(offer_start_time), end_time=str(offer_end_time)) self.assertNotEqual(offer, {}) self.addCleanup(esi.offer_delete, self.clients['main-owner'], offer['uuid']) for (start, end) in ((claim_time_early, claim_time_valid), (claim_time_valid, claim_time_late), (claim_time_early, claim_time_late)): err = ('Offer %s has no availabilities at given time range %s, %s.' % (offer['uuid'], str(start), str(end))) e = self.assertRaises(CommandFailed, esi.offer_claim, self.clients['subproj1-lessee'], offer['uuid'], start_time=str(start), end_time=str(end)) self.assertIn(err, e.stderr.decode()) @pytest.mark.negative @pytest.mark.slow def test_offer_create_sublease_out_of_range(self): """ Tests to ensure an offer for a leased node cannot be created for a time period outside of the original lease's availability. Test steps: 1) Record the current time. 2) (main-owner) Create a lease for an owned node, ending 30 minutes after the time recorded in step 1. 3) Check that lease details were returned. 4) Wait for the esi-leap manager service to move the lease from the created state to the active state. 5) (subproj1-owner) Attempt to create an offer on the node leased in step 2, starting 15 minutes after the time recorded in step 1, and ending 45 minutes after. 6) Check that the command failed. (returned non-zero exit code) 7) Check that the proper error message was sent to stderr. 8) (main-owner) (cleanup) Delete the offer created in step 2. """ time_now = datetime.now() lease_end_time = time_now + timedelta(minutes=30) offer_start_time = time_now + timedelta(minutes=15) offer_end_time = time_now + timedelta(minutes=45) lease = esi.lease_create(self.clients['main-owner'], self.dummy_node.uuid, self.projects['subproj1']['name'], resource_type='dummy_node', end_time=str(lease_end_time)) self.assertNotEqual(lease, {}) self.addCleanup(esi.lease_delete, self.clients['main-owner'], lease['uuid']) time.sleep(65) # NOTE: This error should be handled differently. When the way this # error is handled changes, this too should change. err = 'Access was denied to dummy_node %s.' % self.dummy_node.uuid e = self.assertRaises(CommandFailed, esi.offer_create, self.clients['subproj1-owner'], self.dummy_node.uuid, resource_type='dummy_node', start_time=str(offer_start_time), end_time=str(offer_end_time)) self.assertIn(err, e.stderr.decode()) @pytest.mark.negative @pytest.mark.slow def test_offer_expire(self): """ Tests to ensure expired offers cannot be claimed and that they do not show up in the list of offers after expiring. Test steps: 1) Record what the time will be in 30 seconds. 2) (owner) Create an offer for an owned node that ends at the time recorded in step 1. 3) Check that offer details were returned and that the offer's status is 'available'. 4) Wait 100 seconds to allow the esi-leap manager to move the offer from the 'available' state to the 'expired' state. 5) (owner) Check that state of the offer from step 2 is 'expired'. 6) (subproj1) Attempt to claim the expired offer. 7) Check that the command failed. (returned non-zero exit code) 8) Check that the proper error message was sent to stderr. 9) (subproj1) Check that the offer does not show up in the list of available offers. 10) (owner) (cleanup) Delete the offer from step 2 if needed. """ time_now = datetime.now() offer_end_time = time_now + timedelta(seconds=30) offer = esi.offer_create(self.clients['main-owner'], self.dummy_node.uuid, resource_type='dummy_node', lessee=self.projects['subproj1']['name'], end_time=str(offer_end_time)) self.assertNotEqual(offer, {}) # NOTE: this ensures the offer is deleted, ignoring failed attempts # to delete offers that expired correctly. self.addCleanup(esi.offer_delete, self.clients['main-owner'], offer['uuid'], fail_ok=True) self.assertEqual(offer['status'], 'available') time.sleep(100) details = esi.offer_show(self.clients['main-owner'], offer['uuid']) self.assertEqual(details['status'], 'expired') e = self.assertRaises(CommandFailed, esi.offer_claim, self.clients['subproj1-lessee'], offer['uuid']) self.assertIn('Offer with name or uuid %s not found.' % offer['uuid'], e.stderr.decode()) listings = esi.offer_list(self.clients['subproj1-lessee']) self.assertNotIn(offer['uuid'], [x['UUID'] for x in listings]) @pytest.mark.negative @pytest.mark.slow def test_lease_expire(self): """ Tests to ensure expired leases do not show up in the list of leases after expiring. Test steps: 1) Record what the time will be in 30 seconds. 2) Create an lease on an owned node that ends at the time recorded in step 1. 3) Check that lease details were returned and that the lease's status is either 'created' or 'active'. 4) Wait 100 seconds to allow the esi-leap manager to move the lease into the 'expired' state. 5) Check that state of the lease from step 2 is 'expired'. 6) Check that the lease does not show up in the list of leases. 7) (cleanup) Delete the lease from step 2 if needed. """ time_now = datetime.now() lease_end_time = time_now + timedelta(seconds=30) lease = esi.lease_create(self.clients['main-owner'], self.dummy_node.uuid, self.projects['main']['name'], resource_type='dummy_node', end_time=str(lease_end_time)) self.assertNotEqual(lease, {}) # NOTE: this ensures the lease is deleted, ignoring failed attempts # to delete leases that expired correctly. self.addCleanup(esi.lease_delete, self.clients['main-owner'], lease['uuid'], fail_ok=True) self.assertIn(lease['status'], ('created', 'active')) time.sleep(100) details = esi.lease_show(self.clients['main-owner'], lease['uuid']) self.assertEqual(details['status'], 'expired') listings = esi.lease_list(self.clients['main-owner']) self.assertNotIn(lease['uuid'], [x['UUID'] for x in listings])
50.229541
79
0.555971
2,928
25,165
4.650615
0.081284
0.030844
0.03525
0.047
0.831901
0.789895
0.748917
0.698245
0.655504
0.620548
0
0.023143
0.362964
25,165
500
80
50.33
0.826274
0.304351
0
0.734899
0
0
0.078423
0
0
0
0
0
0.130872
1
0.040268
false
0
0.02349
0
0.067114
0
0
0
0
null
0
0
0
1
1
1
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
5
259c44b174c4fa3d9daa485363b2ad4f55eb0b8a
1,633
py
Python
test_perimeter.py
silverscorpio/stl-to-voxel
0faf8394b2e5f93255863563a664f1a3cd367ff5
[ "MIT" ]
null
null
null
test_perimeter.py
silverscorpio/stl-to-voxel
0faf8394b2e5f93255863563a664f1a3cd367ff5
[ "MIT" ]
null
null
null
test_perimeter.py
silverscorpio/stl-to-voxel
0faf8394b2e5f93255863563a664f1a3cd367ff5
[ "MIT" ]
null
null
null
import random import perimeter import numpy as np import unittest import slice from util import printBigArray class PerimeterTest(unittest.TestCase): def test_lines_to_pixels(self): test = [[(0, 0, 0), (3, 0, 0)], [(9, 9, 0), (3, 9, 0)], [(3, 0, 0), (9, 9, 0)], [(3, 9, 0), (0, 0, 0)]] actual = np.zeros((13, 13), dtype=bool) perimeter.linesToVoxels(test,actual) expected = [ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ] self.assertEqual(expected, actual.astype(int).tolist()) def test_cross_line(self): self.assertTrue(perimeter.onLine([(0,0,0),(2,2,0)],1,1)) self.assertTrue(perimeter.onLine([(2,2,0),(0,0,0)],1,1)) self.assertFalse(perimeter.onLine([(2,2,0),(0,0,0)],2,1)) self.assertFalse(perimeter.onLine([(2,2,0),(0,0,0)],1,2)) self.assertTrue(perimeter.onLine([(0,0,0),(4,2,0)],2,1)) if __name__ == '__main__': unittest.main()
37.113636
65
0.429271
309
1,633
2.226537
0.145631
0.372093
0.475291
0.534884
0.507267
0.507267
0.507267
0.414244
0.414244
0.380814
0
0.218433
0.335579
1,633
43
66
37.976744
0.415668
0
0
0.105263
0
0
0.004899
0
0
0
0
0
0.157895
1
0.052632
false
0
0.157895
0
0.236842
0.026316
0
0
0
null
1
1
1
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
5
25d6841e2e077de30b9a97b6ff1a2678a2a15903
185
py
Python
Soft/Python/Colorimeter/__init__.py
Curedbio/Colorimeter
01622cf043dfebf23f9bdaebdf9389f21c4cdc3e
[ "Apache-2.0" ]
null
null
null
Soft/Python/Colorimeter/__init__.py
Curedbio/Colorimeter
01622cf043dfebf23f9bdaebdf9389f21c4cdc3e
[ "Apache-2.0" ]
null
null
null
Soft/Python/Colorimeter/__init__.py
Curedbio/Colorimeter
01622cf043dfebf23f9bdaebdf9389f21c4cdc3e
[ "Apache-2.0" ]
1
2021-12-24T14:59:56.000Z
2021-12-24T14:59:56.000Z
from colorimeter_serial import * import set_matplotlib_backend import main_window import table_widget import standard_curve import constants import import_export import dependency_hack
20.555556
32
0.897297
25
185
6.32
0.68
0.151899
0
0
0
0
0
0
0
0
0
0
0.097297
185
8
33
23.125
0.946108
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
5
25f6aeff48af7245e980145e82b4620ac62b3ac6
99
py
Python
AC_CDE_code/utils/__init__.py
Jiang-HB/AC_CDQ
4b4ec2d611c4481ad0b99cf7ea79eb23014a0325
[ "MIT" ]
7
2021-05-03T05:50:14.000Z
2022-03-24T15:35:59.000Z
AC_CDE_code/utils/__init__.py
Jiang-HB/AC_CDQ
4b4ec2d611c4481ad0b99cf7ea79eb23014a0325
[ "MIT" ]
null
null
null
AC_CDE_code/utils/__init__.py
Jiang-HB/AC_CDQ
4b4ec2d611c4481ad0b99cf7ea79eb23014a0325
[ "MIT" ]
1
2022-03-25T02:24:53.000Z
2022-03-25T02:24:53.000Z
from .env import Env, G1, G2, G3 from .estimators import ME, DE, CDE, AC_CDE from .commons import *
33
43
0.727273
18
99
3.944444
0.666667
0
0
0
0
0
0
0
0
0
0
0.036585
0.171717
99
3
44
33
0.829268
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
5
d30c28d8d4e2b4ba314f771f7da7fbef712a519f
1,440
py
Python
backend/api/migrations/0122_auto_20190425_1514.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
18
2017-05-10T21:55:11.000Z
2021-03-01T16:41:32.000Z
backend/api/migrations/0122_auto_20190425_1514.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
1,167
2017-03-04T00:18:43.000Z
2022-03-03T22:31:51.000Z
backend/api/migrations/0122_auto_20190425_1514.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
48
2017-03-09T17:19:39.000Z
2022-02-24T16:38:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-04-25 15:14 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0121_add_fuel_class_relationships'), ] operations = [ migrations.AddField( model_name='defaultcarbonintensitycategory', name='effective_date', field=models.DateField(blank=True, null=True), ), migrations.AddField( model_name='defaultcarbonintensitycategory', name='expiration_date', field=models.DateField(blank=True, null=True), ), migrations.AddField( model_name='energydensitycategory', name='effective_date', field=models.DateField(blank=True, null=True), ), migrations.AddField( model_name='energydensitycategory', name='expiration_date', field=models.DateField(blank=True, null=True), ), migrations.AddField( model_name='energyeffectivenessratiocategory', name='effective_date', field=models.DateField(blank=True, null=True), ), migrations.AddField( model_name='energyeffectivenessratiocategory', name='expiration_date', field=models.DateField(blank=True, null=True), ), ]
31.304348
58
0.606944
128
1,440
6.664063
0.359375
0.126612
0.161782
0.189918
0.767878
0.767878
0.665885
0.665885
0.665885
0.665885
0
0.02138
0.285417
1,440
45
59
32
0.80758
0.047917
0
0.789474
1
0
0.211257
0.145468
0
0
0
0
0
1
0
false
0
0.052632
0
0.131579
0
0
0
0
null
0
0
1
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
d322b737764c7009a2d55b3d1bcad03cc70830e7
6,204
py
Python
employer/forms.py
calumlim/talentalps
cc66eabf71e04b6ab5831ee15f57e771cba82279
[ "FSFAP" ]
null
null
null
employer/forms.py
calumlim/talentalps
cc66eabf71e04b6ab5831ee15f57e771cba82279
[ "FSFAP" ]
null
null
null
employer/forms.py
calumlim/talentalps
cc66eabf71e04b6ab5831ee15f57e771cba82279
[ "FSFAP" ]
null
null
null
from django import forms from user import models as user_models from talentalps import constants class ForgotPasswordForm(forms.Form): email = forms.EmailField(required=True) class ResetPasswordForm(forms.Form): password = forms.CharField(widget=(forms.PasswordInput()), required=True) confirm_password = forms.CharField(widget=(forms.PasswordInput()), required=True) def clean_password(self): password = self.cleaned_data.get('password') n = len(password) errors = [] if not any(x.isupper() for x in password): errors.append('Password requires at least 1 capital letter.') if not any(x.islower() for x in password): errors.append('Password requires at least 1 lower case letter.') if not any(x.isdigit() for x in password): errors.append('Password requires at least 1 digit.') if n < 9: errors.append('Password needs to be at least 8 characters long.') validation_error = "\n".join(errors) if errors: raise forms.ValidationError(validation_error) return password def clean_confirm_password(self): password = self.cleaned_data.get('password') confirm_password = self.cleaned_data.get('confirm_password') if password != confirm_password: raise forms.ValidationError("Passwords do not match!") return confirm_password class CompanyDetailsCreateForm(forms.ModelForm): logo_x = forms.FloatField(required=False, widget=(forms.HiddenInput())) logo_y = forms.FloatField(required=False, widget=(forms.HiddenInput())) logo_w = forms.FloatField(required=False, widget=(forms.HiddenInput())) logo_h = forms.FloatField(required=False, widget=(forms.HiddenInput())) header_x = forms.FloatField(required=False, widget=(forms.HiddenInput())) header_y = forms.FloatField(required=False, widget=(forms.HiddenInput())) header_w = forms.FloatField(required=False, widget=(forms.HiddenInput())) header_h = forms.FloatField(required=False, widget=(forms.HiddenInput())) other_industry_checkbox = forms.BooleanField(required=False) class Meta: model = user_models.Company fields = ['avatar', 'header_image', 'company_name', 'website', 'company_size', 'company_type', 'founded', 'industry', 'other_industry', 'registration_no'] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.fields['other_industry'].required = False self.fields['website'].required = False self.fields['industry'] = forms.MultipleChoiceField(choices=constants.INDUSTRY) def clean_industry(self): industry = self.cleaned_data.get('industry') other_industry_checkbox = self.data.get('other_industry_checkbox') other_industry = self.data.get('other_industry') if other_industry_checkbox: if other_industry == '': self.add_error('industry', forms.ValidationError("This field is required.")) return 'Other' return '|'.join(industry) class CompanyCreateDescriptionLocationForm(forms.ModelForm): class Meta: model = user_models.Company fields = ['description', 'address', 'postcode', 'state', 'country'] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.fields['country'].initial = 'MY' self.fields['country'].required = True def clean(self): cleaned_data = super().clean() country = cleaned_data.get('country') if country != 'MY': cleaned_data['state'] = None return cleaned_data class EmployerCompanyUpdateForm(forms.ModelForm): logo_x = forms.FloatField(required=False, widget=(forms.HiddenInput())) logo_y = forms.FloatField(required=False, widget=(forms.HiddenInput())) logo_w = forms.FloatField(required=False, widget=(forms.HiddenInput())) logo_h = forms.FloatField(required=False, widget=(forms.HiddenInput())) header_x = forms.FloatField(required=False, widget=(forms.HiddenInput())) header_y = forms.FloatField(required=False, widget=(forms.HiddenInput())) header_w = forms.FloatField(required=False, widget=(forms.HiddenInput())) header_h = forms.FloatField(required=False, widget=(forms.HiddenInput())) other_industry_checkbox = forms.BooleanField(required=False) class Meta: model = user_models.Company fields = ['avatar', 'header_image', 'company_name', 'website', 'company_size', 'company_type', 'founded', 'industry', 'other_industry', 'registration_no', 'description', 'address', 'postcode', 'state', 'country'] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.fields['other_industry'].required = False self.fields['website'].required = False self.fields['country'].required = True self.fields['industry'] = forms.MultipleChoiceField(choices=constants.INDUSTRY) self.fields['company_name'].disabled = True self.fields['company_name'].required = False self.fields['registration_no'].disabled = True self.fields['registration_no'].required = False if self.instance.other_industry: self.fields['other_industry_checkbox'].initial = True def clean(self): cleaned_data = super().clean() country = cleaned_data.get('country') if country != 'MY': cleaned_data['state'] = None return cleaned_data def clean_industry(self): self.cleaned_data = super().clean() industry = self.cleaned_data.get('industry') other_industry_checkbox = self.data.get('other_industry_checkbox') other_industry = self.data.get('other_industry') if other_industry_checkbox: if other_industry == '': self.add_error('industry', forms.ValidationError("This field is required.")) return 'Other' return '|'.join(industry) class CompanyImageUploadForm(forms.ModelForm): class Meta: model = user_models.CompanyImage fields = ['image']
43.384615
99
0.666344
680
6,204
5.908824
0.172059
0.077651
0.091588
0.111498
0.768044
0.736934
0.736934
0.714783
0.632653
0.632653
0
0.001017
0.207286
6,204
143
100
43.384615
0.815982
0
0
0.613445
0
0
0.140532
0.01112
0
0
0
0
0
1
0.07563
false
0.176471
0.02521
0
0.428571
0
0
0
0
null
0
0
0
0
1
1
1
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
1
0
0
0
0
0
5
d332a2f8234c0d7acb92e4b0a6de624d5d3cdcb7
681
py
Python
runners/great_expectations/expectations.py
omio-labs/richterin
c4165fe4910a556f5bba3c7224fed6d35c3fea57
[ "MIT" ]
null
null
null
runners/great_expectations/expectations.py
omio-labs/richterin
c4165fe4910a556f5bba3c7224fed6d35c3fea57
[ "MIT" ]
null
null
null
runners/great_expectations/expectations.py
omio-labs/richterin
c4165fe4910a556f5bba3c7224fed6d35c3fea57
[ "MIT" ]
null
null
null
from enum import Enum from functools import partial from typing import Dict, Any from great_expectations.dataset import SqlAlchemyDataset def not_null(dataset: SqlAlchemyDataset, options: Dict[str, Any]): return dataset.expect_column_values_to_not_be_null(**options) def is_null(dataset: SqlAlchemyDataset, options: Dict[str, Any]): return dataset.expect_column_values_to_be_null(**options) def values_between(dataset: SqlAlchemyDataset, options: Dict[str, Any]): return dataset.expect_column_values_to_be_between(**options) class ExpectationType(Enum): NOT_NULL = partial(not_null) NULL = partial(is_null) VALUES_BETWEEN = partial(values_between)
28.375
72
0.792952
91
681
5.659341
0.296703
0.040777
0.180583
0.203884
0.454369
0.454369
0.454369
0.454369
0.454369
0.454369
0
0
0.124816
681
23
73
29.608696
0.864094
0
0
0
0
0
0
0
0
0
0
0
0
1
0.214286
false
0
0.285714
0.214286
1
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
1
0
0
0
1
1
0
0
5
d36274fc3bcc4be90b8bae0eab0302f5a8119e6b
149
py
Python
src/dispatch/plugins/dispatch_opsgenie/config.py
kstringlo/dispatch
1384ee0816192375459cdf5c498b62350584b42d
[ "Apache-2.0" ]
null
null
null
src/dispatch/plugins/dispatch_opsgenie/config.py
kstringlo/dispatch
1384ee0816192375459cdf5c498b62350584b42d
[ "Apache-2.0" ]
1
2020-04-22T03:29:06.000Z
2020-04-22T03:29:06.000Z
src/dispatch/plugins/dispatch_opsgenie/config.py
kstringlo/dispatch
1384ee0816192375459cdf5c498b62350584b42d
[ "Apache-2.0" ]
null
null
null
from dispatch.config import config, Secret OPSGENIE_API_KEY = config("OPSGENIE_API_KEY", cast=Secret) OPSGENIE_TEAM_ID = config("OPSGENIE_TEAM_ID")
29.8
58
0.818792
22
149
5.181818
0.5
0.245614
0.245614
0
0
0
0
0
0
0
0
0
0.087248
149
4
59
37.25
0.838235
0
0
0
0
0
0.214765
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
1
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
5
d36df1ca343142d828a93729af258958b74104bc
14,360
py
Python
test/units/test_oci_autonomous_data_warehouse.py
slmjy/oci-ansible-modules
4713699064f4244b4554b5b2f97b5e5443fa2d6e
[ "Apache-2.0" ]
106
2018-06-29T16:38:56.000Z
2022-02-16T16:38:56.000Z
test/units/test_oci_autonomous_data_warehouse.py
slmjy/oci-ansible-modules
4713699064f4244b4554b5b2f97b5e5443fa2d6e
[ "Apache-2.0" ]
122
2018-09-11T12:49:39.000Z
2021-05-01T04:54:22.000Z
test/units/test_oci_autonomous_data_warehouse.py
slmjy/oci-ansible-modules
4713699064f4244b4554b5b2f97b5e5443fa2d6e
[ "Apache-2.0" ]
78
2018-07-04T05:48:54.000Z
2022-03-09T06:33:12.000Z
# Copyright (c) 2018, 2019, Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for details. import pytest from nose.plugins.skip import SkipTest import logging from ansible.modules.cloud.oracle import oci_autonomous_data_warehouse from ansible.module_utils.oracle import oci_utils, oci_db_utils import tempfile import os try: import oci from oci.util import to_dict from oci.database.models import AutonomousDataWarehouse from oci.exceptions import ServiceError, ClientError except ImportError: raise SkipTest("test_oci_autonomous_data_warehouse.py requires `oci` module") class FakeModule(object): def __init__(self, **kwargs): self.params = kwargs def fail_json(self, *args, **kwargs): self.exit_args = args self.exit_kwargs = kwargs raise Exception(kwargs["msg"]) def exit_json(self, *args, **kwargs): self.exit_args = args self.exit_kwargs = kwargs @pytest.fixture() def db_client(mocker): mock_db_client = mocker.patch("oci.database.database_client.DatabaseClient") return mock_db_client.return_value @pytest.fixture() def check_and_create_resource_patch(mocker): return mocker.patch.object(oci_utils, "check_and_create_resource") @pytest.fixture() def update_autonomous_data_warehouse_patch(mocker): return mocker.patch.object( oci_autonomous_data_warehouse, "update_autonomous_data_warehouse" ) @pytest.fixture() def check_and_update_resource_patch(mocker): return mocker.patch.object(oci_utils, "check_and_update_resource") @pytest.fixture() def create_and_wait_patch(mocker): return mocker.patch.object(oci_utils, "create_and_wait") @pytest.fixture() def get_existing_resource_patch(mocker): return mocker.patch.object(oci_utils, "get_existing_resource") @pytest.fixture() def delete_and_wait_patch(mocker): return mocker.patch.object(oci_utils, "delete_and_wait") @pytest.fixture() def execute_function_and_wait_patch(mocker): return mocker.patch.object(oci_db_utils, "execute_function_and_wait") @pytest.fixture() def call_with_backoff_patch(mocker): return mocker.patch.object(oci_utils, "call_with_backoff") @pytest.fixture() def write_stream_to_file_patch(mocker): return mocker.patch.object(oci_db_utils, "write_stream_to_file") def setUpModule(): logging.basicConfig( filename="/tmp/oci_ansible_module.log", filemode="a", level=logging.INFO ) oci_autonomous_data_warehouse.set_logger(logging) def test_create_or_update_autonomous_data_warehouse_create( db_client, check_and_create_resource_patch ): module = get_module() autonomous_data_warehouse = get_autonomous_data_warehouse() check_and_create_resource_patch.return_value = { "autonomous_data_warehouse": to_dict(autonomous_data_warehouse), "changed": True, } result = oci_autonomous_data_warehouse.create_or_update_autonomous_data_warehouse( db_client, module ) assert ( result["autonomous_data_warehouse"]["display_name"] is autonomous_data_warehouse.display_name ) def test_create_or_update_autonomous_data_warehouse_update( db_client, update_autonomous_data_warehouse_patch ): module = get_module( dict({"autonomous_data_warehouse_id": "ocid1.autonomous_data_warehouse.aaa"}) ) autonomous_data_warehouse = get_autonomous_data_warehouse() update_autonomous_data_warehouse_patch.return_value = { "autonomous_data_warehouse": to_dict(autonomous_data_warehouse), "changed": True, } result = oci_autonomous_data_warehouse.create_or_update_autonomous_data_warehouse( db_client, module ) assert ( result["autonomous_data_warehouse"]["display_name"] is autonomous_data_warehouse.display_name ) def test_create_or_update_autonomous_data_warehousee_client_error( db_client, check_and_create_resource_patch ): error_message = "databse attribute has no value" module = get_module() check_and_create_resource_patch.side_effect = ClientError(Exception(error_message)) try: oci_autonomous_data_warehouse.create_or_update_autonomous_data_warehouse( db_client, module ) except Exception as ex: assert error_message in ex.args[0] def test_create_or_update_autonomous_data_warehousee_service_error( db_client, check_and_create_resource_patch ): error_message = "Internal Server Error" module = get_module() check_and_create_resource_patch.side_effect = ServiceError( 499, "InternalServerError", dict(), error_message ) try: oci_autonomous_data_warehouse.create_or_update_autonomous_data_warehouse( db_client, module ) except Exception as ex: assert error_message in ex.args[0] def test_create_autonomous_data_warehouse(db_client, create_and_wait_patch): module = get_module() autonomous_data_warehouse = get_autonomous_data_warehouse() create_and_wait_patch.return_value = { "autonomous_data_warehouse": to_dict(autonomous_data_warehouse), "changed": True, } result = oci_autonomous_data_warehouse.create_autonomous_data_warehouse( db_client, module ) assert ( result["autonomous_data_warehouse"]["display_name"] is autonomous_data_warehouse.display_name ) def test_update_autonomous_data_warehouse_cpu_core_count( db_client, check_and_update_resource_patch ): autonomous_data_warehouse = get_autonomous_data_warehouse() autonomous_data_warehouse.cpu_core_count = 4 get_existing_resource_patch.return_value = autonomous_data_warehouse module = get_module( dict({"autonomous_data_warehouse_id": "ocid1.autonomousdbwarehouse.aaa"}) ) check_and_update_resource_patch.return_value = { "autonomous_data_warehouse": to_dict(autonomous_data_warehouse), "changed": True, } result = oci_autonomous_data_warehouse.update_autonomous_data_warehouse( db_client, module ) assert result["changed"] is True def test_update_autonomous_data_warehouse_freeform_tags( db_client, check_and_update_resource_patch ): autonomous_data_warehouse = get_autonomous_data_warehouse() get_existing_resource_patch.return_value = autonomous_data_warehouse module = get_module( dict( freeform_tags=dict(system_type="oracledb"), autonomous_data_warehouse_id="ocid1.autonomousdbwarehouse.aaa", ) ) check_and_update_resource_patch.return_value = { "autonomous_data_warehouse": to_dict(autonomous_data_warehouse), "changed": True, } result = oci_autonomous_data_warehouse.update_autonomous_data_warehouse( db_client, module ) assert result["changed"] is True def test_update_autonomous_data_warehouse_defined_tags( db_client, check_and_update_resource_patch ): autonomous_data_warehouse = get_autonomous_data_warehouse() get_existing_resource_patch.return_value = autonomous_data_warehouse module = get_module( dict( defined_tags=dict(system_strength=dict(shape="medium")), autonomous_data_warehouse_id="ocid1.autonomousdbwarehouse.aaa", ) ) check_and_update_resource_patch.return_value = { "autonomous_data_warehouse": to_dict(autonomous_data_warehouse), "changed": True, } result = oci_autonomous_data_warehouse.update_autonomous_data_warehouse( db_client, module ) assert result["changed"] is True def test_delete_db_system(db_client, delete_and_wait_patch): module = get_module( dict(autonomous_data_warehouse_id="ocid1.autonomousdatabase.aaa") ) autonomous_data_warehouse = get_autonomous_data_warehouse() delete_and_wait_patch.return_value = { "autonomous_data_warehouse": to_dict(autonomous_data_warehouse), "changed": True, } result = oci_autonomous_data_warehouse.delete_autonomous_data_warehouse( db_client, module ) assert ( result["autonomous_data_warehouse"]["display_name"] is autonomous_data_warehouse.display_name ) def test_restore_autonomous_data_warehouse(db_client, execute_function_and_wait_patch): autonomous_data_warehouse = get_autonomous_data_warehouse() module = get_module() execute_function_and_wait_patch.return_value = { "autonomous_data_warehouse": to_dict(autonomous_data_warehouse), "changed": True, } result = oci_autonomous_data_warehouse.restore_autonomous_data_warehouse( db_client, module ) assert result["changed"] is True def test_start_or_stop_autonomous_data_warehouse_start( db_client, get_existing_resource_patch, execute_function_and_wait_patch ): autonomous_data_warehouse = get_autonomous_data_warehouse() autonomous_data_warehouse.lifecycle_state = "STOPPED" get_existing_resource_patch.return_value = autonomous_data_warehouse module = get_module(dict(state="start")) execute_function_and_wait_patch.return_value = { "autonomous_data_warehouse": to_dict(autonomous_data_warehouse), "changed": True, } result = oci_autonomous_data_warehouse.start_or_stop_autonomous_data_warehouse( db_client, module ) assert result["changed"] is True def test_start_or_stop_autonomous_data_warehouse_start_idempotent( db_client, get_existing_resource_patch ): autonomous_data_warehouse = get_autonomous_data_warehouse() autonomous_data_warehouse.lifecycle_state = "AVAILABLE" get_existing_resource_patch.return_value = autonomous_data_warehouse module = get_module(dict(state="start")) result = oci_autonomous_data_warehouse.start_or_stop_autonomous_data_warehouse( db_client, module ) assert result["changed"] is False def test_start_or_stop_autonomous_data_warehouse_stop( db_client, get_existing_resource_patch, execute_function_and_wait_patch ): autonomous_data_warehouse = get_autonomous_data_warehouse() autonomous_data_warehouse.lifecycle_state = "AVAILABLE" get_existing_resource_patch.return_value = autonomous_data_warehouse module = get_module(dict(state="stop")) execute_function_and_wait_patch.return_value = { "autonomous_data_warehouse": to_dict(autonomous_data_warehouse), "changed": True, } result = oci_autonomous_data_warehouse.start_or_stop_autonomous_data_warehouse( db_client, module ) assert result["changed"] is True def test_start_or_stop_autonomous_data_warehouse_stop_idempotent( db_client, get_existing_resource_patch ): autonomous_data_warehouse = get_autonomous_data_warehouse() autonomous_data_warehouse.lifecycle_state = "STOPPED" get_existing_resource_patch.return_value = autonomous_data_warehouse module = get_module(dict(state="stop")) result = oci_autonomous_data_warehouse.start_or_stop_autonomous_data_warehouse( db_client, module ) assert result["changed"] is False def test_generate_wallet( db_client, call_with_backoff_patch, write_stream_to_file_patch ): call_with_backoff_patch.return_value = get_response(200, None, "test", None) write_stream_to_file_patch.return_value = True module = get_module(dict(password="password123", wallet_file="test_wallet_file")) result = oci_autonomous_data_warehouse.generate_wallet(db_client, module) assert result["changed"] is True def test_generate_wallet_no_wallet_file_defined(db_client): error_message = "Wallet file must be declared" module = get_module(dict(password="password123")) try: oci_autonomous_data_warehouse.generate_wallet(db_client, module) except Exception as ex: assert error_message in ex.args[0] def test_generate_wallet_empty_wallet_file_defined(db_client): error_message = "Wallet file must be declared" module = get_module(dict(password="password123", wallet_file=" ")) try: oci_autonomous_data_warehouse.generate_wallet(db_client, module) except Exception as ex: assert error_message in ex.args[0] def test_generate_wallet_service_error(db_client, call_with_backoff_patch): error_message = "Internal Server Error" module = get_module(dict(password="password123", wallet_file="test_wallet_file")) call_with_backoff_patch.side_effect = ServiceError( 499, "InternalServerError", dict(), error_message ) try: oci_autonomous_data_warehouse.generate_wallet(db_client, module) except Exception as ex: assert error_message in ex.args[0] def test_generate_wallet_client_error(db_client, call_with_backoff_patch): error_message = "Wallet file not valid" module = get_module(dict(password="password123", wallet_file="test_wallet_file")) call_with_backoff_patch.side_effect = ClientError(Exception(error_message)) try: oci_autonomous_data_warehouse.generate_wallet(db_client, module) except Exception as ex: assert error_message in ex.args[0] def get_autonomous_data_warehouse(): autonomous_data_warehouse = AutonomousDataWarehouse() autonomous_data_warehouse.display_name = "ansible_autonomous_data_warehousee" autonomous_data_warehouse.freeform_tags = {"system_type": "exadata"} autonomous_data_warehouse.defined_tags = {"system_strength": {"shape": "small"}} return autonomous_data_warehouse def get_response(status, header, data, request): return oci.Response(status, header, data, request) def get_module(additional_properties=None): params = { "compartment_id": "ocid1.compartment.oc1..xxxxxEXAMPLExxxxx..qndq", "admin_password": "BEstr0ng_#11", "data_storage_size_in_tbs": 1, "cpu_core_count": 1, "db_name": "ansibledbwarehouse", "display_name": "ansibleautodbwarehouse", "license_model": "LICENSE_INCLUDED", "wait": False, "freeform_tags": {"db_type": "test"}, } if additional_properties: params.update(additional_properties) module = FakeModule(**params) return module
34.769976
106
0.758148
1,772
14,360
5.681716
0.117946
0.182161
0.292412
0.059396
0.796782
0.750795
0.73232
0.718216
0.687823
0.652563
0
0.005086
0.164763
14,360
412
107
34.854369
0.834334
0.020891
0
0.541916
0
0
0.124306
0.065675
0
0
0
0
0.056886
1
0.107784
false
0.017964
0.035928
0.02994
0.185629
0
0
0
0
null
0
1
0
0
1
1
1
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
5
6c9634e96f3a89127a20a5dfb24ca6980ee1469c
140
py
Python
majortom_scripting/models/groundstation.py
kubos/majortom_script_package
1b34c8c09e83a517d8df413547f608fba99e6681
[ "Apache-2.0" ]
2
2019-09-30T21:58:06.000Z
2020-05-15T06:29:27.000Z
majortom_scripting/models/groundstation.py
kubos/majortom_script_package
1b34c8c09e83a517d8df413547f608fba99e6681
[ "Apache-2.0" ]
null
null
null
majortom_scripting/models/groundstation.py
kubos/majortom_script_package
1b34c8c09e83a517d8df413547f608fba99e6681
[ "Apache-2.0" ]
2
2019-09-30T21:58:06.000Z
2022-02-04T19:21:45.000Z
from majortom_scripting.models.system import System class GroundStation(System): def update_location(self, lat, long): #tbd pass
20
51
0.757143
18
140
5.777778
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.164286
140
7
52
20
0.888889
0.021429
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0.25
0.25
0
0.75
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
1
0
1
0
0
1
0
0
5
6cc762ba38f6454f6c953885aa9d9d8d393228ba
4,670
py
Python
Monte_Carlo/Lookback/Script_Lookback_JumpDiffusion.py
mattslezak-shell/PROJ_Option_Pricing_Matlab
6105bd00ba3471802180c122fdf81e90833a91c4
[ "MIT" ]
null
null
null
Monte_Carlo/Lookback/Script_Lookback_JumpDiffusion.py
mattslezak-shell/PROJ_Option_Pricing_Matlab
6105bd00ba3471802180c122fdf81e90833a91c4
[ "MIT" ]
null
null
null
Monte_Carlo/Lookback/Script_Lookback_JumpDiffusion.py
mattslezak-shell/PROJ_Option_Pricing_Matlab
6105bd00ba3471802180c122fdf81e90833a91c4
[ "MIT" ]
1
2022-01-07T15:31:45.000Z
2022-01-07T15:31:45.000Z
# Generated with SMOP 0.41-beta try: from smop.libsmop import * except ImportError: raise ImportError('File compiled with `smop3`, please install `smop3` to run it.') from None # Script_Lookback_JumpDiffusion.m ################################################################## ### MONTE CARLO LOOKBACK OPTION PRICER for Diffusions AND Jump Diffusions ################################################################## # Descritpion: Script to Price Lookback options in Diffusion and Jump Diffusion Models # using the Monte Carlo Simulation # Author: Justin Kirkby ################################################################## folder,name,ext=fileparts(which(mfilename('fullpath')),nargout=3) # Script_Lookback_JumpDiffusion.m:9 cd(folder) addpath('../') # --------------------- # Contract/Market Params # --------------------- call=1 # Script_Lookback_JumpDiffusion.m:17 S_0=100 # Script_Lookback_JumpDiffusion.m:18 M=252 # Script_Lookback_JumpDiffusion.m:19 r=0.05 # Script_Lookback_JumpDiffusion.m:20 q=0.0 # Script_Lookback_JumpDiffusion.m:21 T=1 # Script_Lookback_JumpDiffusion.m:22 # --------------------- # Model Params # --------------------- sigma=0.2 # Script_Lookback_JumpDiffusion.m:28 jumpModel=0 # Script_Lookback_JumpDiffusion.m:29 # --------------------- # Sim Params # --------------------- N_sim=10 ** 5 # Script_Lookback_JumpDiffusion.m:34 mult=3 # Script_Lookback_JumpDiffusion.m:35 ################################# jumpParams=cellarray([]) # Script_Lookback_JumpDiffusion.m:38 if jumpModel == 1: lambda_=1 # Script_Lookback_JumpDiffusion.m:41 muJ=- 0.1 # Script_Lookback_JumpDiffusion.m:41 sigJ=0.3 # Script_Lookback_JumpDiffusion.m:41 jumpParams.kappa = copy(exp(muJ + dot(0.5,sigJ ** 2)) - 1) # Script_Lookback_JumpDiffusion.m:43 jumpParams.lambda = copy(lambda_) # Script_Lookback_JumpDiffusion.m:43 jumpParams.muJ = copy(muJ) # Script_Lookback_JumpDiffusion.m:43 jumpParams.sigJ = copy(sigJ) # Script_Lookback_JumpDiffusion.m:43 else: if jumpModel == 2: lambda_=1 # Script_Lookback_JumpDiffusion.m:46 p_up=0.5 # Script_Lookback_JumpDiffusion.m:47 eta1=25 # Script_Lookback_JumpDiffusion.m:48 eta2=30 # Script_Lookback_JumpDiffusion.m:49 kappa=dot(p_up,eta1) / (eta1 - 1) + dot((1 - p_up),eta2) / (eta2 + 1) - 1 # Script_Lookback_JumpDiffusion.m:51 jumpParams.lambda = copy(lambda_) # Script_Lookback_JumpDiffusion.m:52 jumpParams.kappa = copy(kappa) # Script_Lookback_JumpDiffusion.m:52 jumpParams.eta1 = copy(eta1) # Script_Lookback_JumpDiffusion.m:52 jumpParams.eta2 = copy(eta2) # Script_Lookback_JumpDiffusion.m:52 jumpParams.p_up = copy(p_up) # Script_Lookback_JumpDiffusion.m:52 else: if jumpModel == 3: lambda_=1 # Script_Lookback_JumpDiffusion.m:55 a1=- 0.05 # Script_Lookback_JumpDiffusion.m:56 b1=0.07 # Script_Lookback_JumpDiffusion.m:57 a2=0.02 # Script_Lookback_JumpDiffusion.m:58 b2=0.03 # Script_Lookback_JumpDiffusion.m:59 p_up=0.6 # Script_Lookback_JumpDiffusion.m:60 kappa=dot(p_up,exp(a1 + dot(0.5,b1 ** 2))) + dot((1 - p_up),exp(a2 + dot(0.5,b2 ** 2))) - 1 # Script_Lookback_JumpDiffusion.m:62 jumpParams.lambda = copy(lambda_) # Script_Lookback_JumpDiffusion.m:63 jumpParams.kappa = copy(kappa) # Script_Lookback_JumpDiffusion.m:63 jumpParams.a1 = copy(a1) # Script_Lookback_JumpDiffusion.m:63 jumpParams.b1 = copy(b1) # Script_Lookback_JumpDiffusion.m:63 jumpParams.a2 = copy(a2) # Script_Lookback_JumpDiffusion.m:63 jumpParams.b2 = copy(b2) # Script_Lookback_JumpDiffusion.m:63 jumpParams.p_up = copy(p_up) # Script_Lookback_JumpDiffusion.m:63 ################################################ M_mult=dot(M,mult) # Script_Lookback_JumpDiffusion.m:68 Spath=Simulate_Jump_Diffusion_func(N_sim,M_mult + 1,T,S_0,r,q,sigma,jumpModel,jumpParams) # Script_Lookback_JumpDiffusion.m:69 disc=exp(dot(- r,T)) # Script_Lookback_JumpDiffusion.m:71 price,stdErr=Price_MC_Lookback_func(Spath,call,M,mult,disc,nargout=2) # Script_Lookback_JumpDiffusion.m:72
33.120567
108
0.591435
544
4,670
4.849265
0.257353
0.254738
0.491281
0.509477
0.49583
0.350265
0.137225
0.137225
0.036391
0.036391
0
0.0545
0.233833
4,670
141
109
33.120567
0.682784
0.452677
0
0.206897
1
0
0.034732
0
0
0
0
0
0
0
null
null
0
0.051724
null
null
0
0
0
0
null
1
1
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
1
0
0
0
0
0
0
0
0
5
6ccc3f36465679493eda561d624a9e4681f5c5fe
72
py
Python
c3pO/nc/__init__.py
maclandrol/c3pO
3f3be5132c02f1c313b9ef5abf8264cd3d1dda31
[ "MIT" ]
1
2021-10-15T09:32:08.000Z
2021-10-15T09:32:08.000Z
c3pO/nc/__init__.py
maclandrol/c3pO
3f3be5132c02f1c313b9ef5abf8264cd3d1dda31
[ "MIT" ]
null
null
null
c3pO/nc/__init__.py
maclandrol/c3pO
3f3be5132c02f1c313b9ef5abf8264cd3d1dda31
[ "MIT" ]
null
null
null
from .classifier import ClassifierNC from .regressor import RegressorNC
24
36
0.861111
8
72
7.75
0.75
0
0
0
0
0
0
0
0
0
0
0
0.111111
72
2
37
36
0.96875
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
5
6cff9b0637cf353f548a416598203806726cf984
33
py
Python
kikimr/public/sdk/python/client/issues.py
yandex-cloud/ydb-python-sdk
0df2dce2d77fc41ad3020072740f51dd91630177
[ "Apache-2.0" ]
19
2019-07-01T08:25:29.000Z
2022-01-26T14:46:51.000Z
kikimr/public/sdk/python/client/issues.py
yandex-cloud/ydb-python-sdk
0df2dce2d77fc41ad3020072740f51dd91630177
[ "Apache-2.0" ]
5
2019-07-02T13:36:42.000Z
2021-09-14T06:46:48.000Z
kikimr/public/sdk/python/client/issues.py
yandex-cloud/ydb-python-sdk
0df2dce2d77fc41ad3020072740f51dd91630177
[ "Apache-2.0" ]
10
2019-06-07T10:36:19.000Z
2021-10-15T08:58:11.000Z
from ydb.issues import * # noqa
16.5
32
0.69697
5
33
4.6
1
0
0
0
0
0
0
0
0
0
0
0
0.212121
33
1
33
33
0.884615
0.121212
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
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
1
0
1
0
0
0
0
5
9f22135ba06387d0cdf1df73039e8fe18af150f8
31
py
Python
twop/__init__.py
timchurchard/twopasswords
d8921fdb764a7633066c268e2c6a1a3d1289d703
[ "MIT" ]
2
2022-01-06T08:36:27.000Z
2022-02-22T19:00:56.000Z
twop/__init__.py
timchurchard/twopasswords
d8921fdb764a7633066c268e2c6a1a3d1289d703
[ "MIT" ]
null
null
null
twop/__init__.py
timchurchard/twopasswords
d8921fdb764a7633066c268e2c6a1a3d1289d703
[ "MIT" ]
null
null
null
# Copyright Tim Churchard 2020
15.5
30
0.806452
4
31
6.25
1
0
0
0
0
0
0
0
0
0
0
0.153846
0.16129
31
1
31
31
0.807692
0.903226
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
9f90740fc68bff3fdef933c80f09f10323b6d642
15,064
py
Python
resources/python/aws_cdk/assets/__init__.py
oneillryan93/bot-man
f644a02b0e819d92502799a561ac6272201b46ee
[ "MIT" ]
null
null
null
resources/python/aws_cdk/assets/__init__.py
oneillryan93/bot-man
f644a02b0e819d92502799a561ac6272201b46ee
[ "MIT" ]
null
null
null
resources/python/aws_cdk/assets/__init__.py
oneillryan93/bot-man
f644a02b0e819d92502799a561ac6272201b46ee
[ "MIT" ]
null
null
null
""" ## AWS CDK Assets <!--BEGIN STABILITY BANNER-->--- ![Deprecated](https://img.shields.io/badge/deprecated-critical.svg?style=for-the-badge) > This API may emit warnings. Backward compatibility is not guaranteed. --- <!--END STABILITY BANNER--> All types moved to @aws-cdk/core. """ import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from ._jsii import * import aws_cdk.core @jsii.data_type( jsii_type="@aws-cdk/assets.CopyOptions", jsii_struct_bases=[], name_mapping={ "exclude": "exclude", "follow": "follow", "ignore_mode": "ignoreMode", }, ) class CopyOptions: def __init__( self, *, exclude: typing.Optional[typing.List[builtins.str]] = None, follow: typing.Optional["FollowMode"] = None, ignore_mode: typing.Optional[aws_cdk.core.IgnoreMode] = None, ) -> None: """(deprecated) Obtains applied when copying directories into the staging location. :param exclude: (deprecated) Glob patterns to exclude from the copy. Default: nothing is excluded :param follow: (deprecated) A strategy for how to handle symlinks. Default: Never :param ignore_mode: (deprecated) The ignore behavior to use for exclude patterns. Default: - GLOB for file assets, DOCKER or GLOB for docker assets depending on whether the ' :deprecated: see ``core.CopyOptions`` :stability: deprecated """ self._values: typing.Dict[str, typing.Any] = {} if exclude is not None: self._values["exclude"] = exclude if follow is not None: self._values["follow"] = follow if ignore_mode is not None: self._values["ignore_mode"] = ignore_mode @builtins.property def exclude(self) -> typing.Optional[typing.List[builtins.str]]: """(deprecated) Glob patterns to exclude from the copy. :default: nothing is excluded :stability: deprecated """ result = self._values.get("exclude") return result @builtins.property def follow(self) -> typing.Optional["FollowMode"]: """(deprecated) A strategy for how to handle symlinks. :default: Never :stability: deprecated """ result = self._values.get("follow") return result @builtins.property def ignore_mode(self) -> typing.Optional[aws_cdk.core.IgnoreMode]: """(deprecated) The ignore behavior to use for exclude patterns. :default: - GLOB for file assets, DOCKER or GLOB for docker assets depending on whether the ' :stability: deprecated :aws-cdk: /aws-ecr-assets:dockerIgnoreSupport' flag is set. """ result = self._values.get("ignore_mode") return result def __eq__(self, rhs: typing.Any) -> builtins.bool: return isinstance(rhs, self.__class__) and rhs._values == self._values def __ne__(self, rhs: typing.Any) -> builtins.bool: return not (rhs == self) def __repr__(self) -> str: return "CopyOptions(%s)" % ", ".join( k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( jsii_type="@aws-cdk/assets.FingerprintOptions", jsii_struct_bases=[CopyOptions], name_mapping={ "exclude": "exclude", "follow": "follow", "ignore_mode": "ignoreMode", "extra_hash": "extraHash", }, ) class FingerprintOptions(CopyOptions): def __init__( self, *, exclude: typing.Optional[typing.List[builtins.str]] = None, follow: typing.Optional["FollowMode"] = None, ignore_mode: typing.Optional[aws_cdk.core.IgnoreMode] = None, extra_hash: typing.Optional[builtins.str] = None, ) -> None: """(deprecated) Options related to calculating source hash. :param exclude: (deprecated) Glob patterns to exclude from the copy. Default: nothing is excluded :param follow: (deprecated) A strategy for how to handle symlinks. Default: Never :param ignore_mode: (deprecated) The ignore behavior to use for exclude patterns. Default: - GLOB for file assets, DOCKER or GLOB for docker assets depending on whether the ' :param extra_hash: (deprecated) Extra information to encode into the fingerprint (e.g. build instructions and other inputs). Default: - hash is only based on source content :deprecated: see ``core.FingerprintOptions`` :stability: deprecated """ self._values: typing.Dict[str, typing.Any] = {} if exclude is not None: self._values["exclude"] = exclude if follow is not None: self._values["follow"] = follow if ignore_mode is not None: self._values["ignore_mode"] = ignore_mode if extra_hash is not None: self._values["extra_hash"] = extra_hash @builtins.property def exclude(self) -> typing.Optional[typing.List[builtins.str]]: """(deprecated) Glob patterns to exclude from the copy. :default: nothing is excluded :stability: deprecated """ result = self._values.get("exclude") return result @builtins.property def follow(self) -> typing.Optional["FollowMode"]: """(deprecated) A strategy for how to handle symlinks. :default: Never :stability: deprecated """ result = self._values.get("follow") return result @builtins.property def ignore_mode(self) -> typing.Optional[aws_cdk.core.IgnoreMode]: """(deprecated) The ignore behavior to use for exclude patterns. :default: - GLOB for file assets, DOCKER or GLOB for docker assets depending on whether the ' :stability: deprecated :aws-cdk: /aws-ecr-assets:dockerIgnoreSupport' flag is set. """ result = self._values.get("ignore_mode") return result @builtins.property def extra_hash(self) -> typing.Optional[builtins.str]: """(deprecated) Extra information to encode into the fingerprint (e.g. build instructions and other inputs). :default: - hash is only based on source content :stability: deprecated """ result = self._values.get("extra_hash") return result def __eq__(self, rhs: typing.Any) -> builtins.bool: return isinstance(rhs, self.__class__) and rhs._values == self._values def __ne__(self, rhs: typing.Any) -> builtins.bool: return not (rhs == self) def __repr__(self) -> str: return "FingerprintOptions(%s)" % ", ".join( k + "=" + repr(v) for k, v in self._values.items() ) @jsii.enum(jsii_type="@aws-cdk/assets.FollowMode") class FollowMode(enum.Enum): """(deprecated) Symlink follow mode. :deprecated: see ``core.SymlinkFollowMode`` :stability: deprecated """ NEVER = "NEVER" """(deprecated) Never follow symlinks. :stability: deprecated """ ALWAYS = "ALWAYS" """(deprecated) Materialize all symlinks, whether they are internal or external to the source directory. :stability: deprecated """ EXTERNAL = "EXTERNAL" """(deprecated) Only follows symlinks that are external to the source directory. :stability: deprecated """ BLOCK_EXTERNAL = "BLOCK_EXTERNAL" """(deprecated) Forbids source from having any symlinks pointing outside of the source tree. This is the safest mode of operation as it ensures that copy operations won't materialize files from the user's file system. Internal symlinks are not followed. If the copy operation runs into an external symlink, it will fail. :stability: deprecated """ @jsii.interface(jsii_type="@aws-cdk/assets.IAsset") class IAsset(typing_extensions.Protocol): """(deprecated) Common interface for all assets. :deprecated: use ``core.IAsset`` :stability: deprecated """ @builtins.staticmethod def __jsii_proxy_class__(): return _IAssetProxy @builtins.property # type: ignore @jsii.member(jsii_name="sourceHash") def source_hash(self) -> builtins.str: """(deprecated) A hash of the source of this asset, which is available at construction time. As this is a plain string, it can be used in construct IDs in order to enforce creation of a new resource when the content hash has changed. :stability: deprecated """ ... class _IAssetProxy: """(deprecated) Common interface for all assets. :deprecated: use ``core.IAsset`` :stability: deprecated """ __jsii_type__: typing.ClassVar[str] = "@aws-cdk/assets.IAsset" @builtins.property # type: ignore @jsii.member(jsii_name="sourceHash") def source_hash(self) -> builtins.str: """(deprecated) A hash of the source of this asset, which is available at construction time. As this is a plain string, it can be used in construct IDs in order to enforce creation of a new resource when the content hash has changed. :stability: deprecated """ return jsii.get(self, "sourceHash") class Staging( aws_cdk.core.AssetStaging, metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/assets.Staging", ): """(deprecated) Deprecated. :deprecated: use ``core.AssetStaging`` :stability: deprecated """ def __init__( self, scope: aws_cdk.core.Construct, id: builtins.str, *, source_path: builtins.str, extra_hash: typing.Optional[builtins.str] = None, exclude: typing.Optional[typing.List[builtins.str]] = None, follow: typing.Optional[FollowMode] = None, ignore_mode: typing.Optional[aws_cdk.core.IgnoreMode] = None, ) -> None: """ :param scope: - :param id: - :param source_path: (deprecated) Local file or directory to stage. :param extra_hash: (deprecated) Extra information to encode into the fingerprint (e.g. build instructions and other inputs). Default: - hash is only based on source content :param exclude: (deprecated) Glob patterns to exclude from the copy. Default: nothing is excluded :param follow: (deprecated) A strategy for how to handle symlinks. Default: Never :param ignore_mode: (deprecated) The ignore behavior to use for exclude patterns. Default: - GLOB for file assets, DOCKER or GLOB for docker assets depending on whether the ' :stability: deprecated """ props = StagingProps( source_path=source_path, extra_hash=extra_hash, exclude=exclude, follow=follow, ignore_mode=ignore_mode, ) jsii.create(Staging, self, [scope, id, props]) @jsii.data_type( jsii_type="@aws-cdk/assets.StagingProps", jsii_struct_bases=[FingerprintOptions], name_mapping={ "exclude": "exclude", "follow": "follow", "ignore_mode": "ignoreMode", "extra_hash": "extraHash", "source_path": "sourcePath", }, ) class StagingProps(FingerprintOptions): def __init__( self, *, exclude: typing.Optional[typing.List[builtins.str]] = None, follow: typing.Optional[FollowMode] = None, ignore_mode: typing.Optional[aws_cdk.core.IgnoreMode] = None, extra_hash: typing.Optional[builtins.str] = None, source_path: builtins.str, ) -> None: """(deprecated) Deprecated. :param exclude: (deprecated) Glob patterns to exclude from the copy. Default: nothing is excluded :param follow: (deprecated) A strategy for how to handle symlinks. Default: Never :param ignore_mode: (deprecated) The ignore behavior to use for exclude patterns. Default: - GLOB for file assets, DOCKER or GLOB for docker assets depending on whether the ' :param extra_hash: (deprecated) Extra information to encode into the fingerprint (e.g. build instructions and other inputs). Default: - hash is only based on source content :param source_path: (deprecated) Local file or directory to stage. :deprecated: use ``core.AssetStagingProps`` :stability: deprecated """ self._values: typing.Dict[str, typing.Any] = { "source_path": source_path, } if exclude is not None: self._values["exclude"] = exclude if follow is not None: self._values["follow"] = follow if ignore_mode is not None: self._values["ignore_mode"] = ignore_mode if extra_hash is not None: self._values["extra_hash"] = extra_hash @builtins.property def exclude(self) -> typing.Optional[typing.List[builtins.str]]: """(deprecated) Glob patterns to exclude from the copy. :default: nothing is excluded :stability: deprecated """ result = self._values.get("exclude") return result @builtins.property def follow(self) -> typing.Optional[FollowMode]: """(deprecated) A strategy for how to handle symlinks. :default: Never :stability: deprecated """ result = self._values.get("follow") return result @builtins.property def ignore_mode(self) -> typing.Optional[aws_cdk.core.IgnoreMode]: """(deprecated) The ignore behavior to use for exclude patterns. :default: - GLOB for file assets, DOCKER or GLOB for docker assets depending on whether the ' :stability: deprecated :aws-cdk: /aws-ecr-assets:dockerIgnoreSupport' flag is set. """ result = self._values.get("ignore_mode") return result @builtins.property def extra_hash(self) -> typing.Optional[builtins.str]: """(deprecated) Extra information to encode into the fingerprint (e.g. build instructions and other inputs). :default: - hash is only based on source content :stability: deprecated """ result = self._values.get("extra_hash") return result @builtins.property def source_path(self) -> builtins.str: """(deprecated) Local file or directory to stage. :stability: deprecated """ result = self._values.get("source_path") assert result is not None, "Required property 'source_path' is missing" return result def __eq__(self, rhs: typing.Any) -> builtins.bool: return isinstance(rhs, self.__class__) and rhs._values == self._values def __ne__(self, rhs: typing.Any) -> builtins.bool: return not (rhs == self) def __repr__(self) -> str: return "StagingProps(%s)" % ", ".join( k + "=" + repr(v) for k, v in self._values.items() ) __all__ = [ "CopyOptions", "FingerprintOptions", "FollowMode", "IAsset", "Staging", "StagingProps", ] publication.publish()
31.84778
182
0.639206
1,746
15,064
5.392898
0.126002
0.033985
0.01147
0.024214
0.772515
0.764125
0.756266
0.738318
0.728547
0.717077
0
0
0.255178
15,064
472
183
31.915254
0.839216
0.363449
0
0.647059
0
0
0.107067
0.025427
0
0
0
0
0.004525
1
0.126697
false
0
0.045249
0.045249
0.330317
0.027149
0
0
0
null
0
0
0
0
1
1
1
1
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
5
e28ee4d912191ffa98b6b835443ffcaa97ba3407
100
py
Python
code/mol_graph/exceptions.py
ms860309/AutomatedReactionMechanismDiscovery
7749afd60e828638bf0bf013bb04d33304735764
[ "MIT" ]
1
2022-02-09T20:08:17.000Z
2022-02-09T20:08:17.000Z
code/mol_graph/exceptions.py
ms860309/ARMD
7749afd60e828638bf0bf013bb04d33304735764
[ "MIT" ]
3
2021-04-28T15:03:45.000Z
2021-05-13T03:10:47.000Z
code/mol_graph/exceptions.py
ms860309/AutomatedReactionMechanismDiscovery
7749afd60e828638bf0bf013bb04d33304735764
[ "MIT" ]
null
null
null
class XYZfileWrongFormat(Exception): pass class XYZfileDidNotExist(Exception): pass
14.285714
37
0.72
8
100
9
0.625
0.361111
0
0
0
0
0
0
0
0
0
0
0.22
100
6
38
16.666667
0.923077
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
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
1
1
0
0
0
0
0
5
2c49f50a68d6670c114c2b171e353d083577cd7d
104
py
Python
tests/pyflakes_bears/pep8_naming_test_files/E04/valid.py
MacBox7/coala-pyflakes
637f8a2e77973384be79d30b0dae1f43072e60c8
[ "MIT" ]
null
null
null
tests/pyflakes_bears/pep8_naming_test_files/E04/valid.py
MacBox7/coala-pyflakes
637f8a2e77973384be79d30b0dae1f43072e60c8
[ "MIT" ]
12
2018-05-21T06:12:59.000Z
2018-07-30T10:37:16.000Z
tests/pyflakes_bears/pep8_naming_test_files/E04/valid.py
MacBox7/coala-pyflakes
637f8a2e77973384be79d30b0dae1f43072e60c8
[ "MIT" ]
1
2018-06-10T16:16:47.000Z
2018-06-10T16:16:47.000Z
def foo(): ''' >>> from mod import Good as Good ''' pass # Ignore PyUnusedCodeBear
17.333333
40
0.528846
11
104
5
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.346154
104
5
41
20.8
0.808824
0.548077
0
0
0
0
0
0
0
0
0
0
0
1
0.5
true
0.5
0
0
0.5
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
1
1
1
0
0
0
0
0
5
2c5c4d08f23243c46b6e124b58cc048c9cf54745
12,825
py
Python
models.py
lemmonation/spine
6b60528f7f10a9ae9346a273dc63262e18ae89b9
[ "MIT" ]
13
2018-02-13T01:50:21.000Z
2020-07-06T00:58:18.000Z
models.py
LaviniaYu/spine
6b60528f7f10a9ae9346a273dc63262e18ae89b9
[ "MIT" ]
1
2019-02-13T15:37:35.000Z
2019-04-05T03:45:10.000Z
models.py
LaviniaYu/spine
6b60528f7f10a9ae9346a273dc63262e18ae89b9
[ "MIT" ]
4
2018-10-20T13:31:26.000Z
2020-02-15T09:36:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division from __future__ import print_function import tensorflow as tf from tensorflow.contrib.tensorboard.plugins import projector import numpy as np import math import inits import graph import utils from aggregators import WeightedAggregator, MeanAggregator flags = tf.app.flags FLAGS = flags.FLAGS class Model(object): def __init__(self, **kwargs): allowed_kwargs = {'name', 'logging'} for kwarg in kwargs.keys(): assert kwarg in allowed_kwargs, 'Invalid keyword argument: ' + kwarg name = kwargs.get('name') if not name: name = self.__class__.__name__.lower() self.name = name logging = kwargs.get('logging', False) self.logging = logging self.vars = {} self.placeholders = {} self.layers = [] self.activations = [] self.inputs = None self.outputs = None self.loss = 0 self.accuracy = 0 self.optimizer = None self.opt_op = None def _build(self): raise NotImplementedError def build(self): """ Wrapper for _build() """ with tf.variable_scope(self.name): self._build() # Build sequential layer model self.activations.append(self.inputs) for layer in self.layers: hidden = layer(self.activations[-1]) self.activations.append(hidden) self.outputs = self.activations[-1] # Store model variables for easy access variables = tf.get_collection(tf.GraphKeys.GLOBAL_VARIABLES, scope=self.name) self.vars = {var.name: var for var in variables} # Build metrics self._loss() self._accuracy() self.opt_op = self.optimizer.minimize(self.loss) def predict(self): pass def _loss(self): raise NotImplementedError def _accuracy(self): raise NotImplementedError def save(self, sess=None): if not sess: raise AttributeError("TensorFlow session not provided.") saver = tf.train.Saver(self.vars) save_path = saver.save(sess, "tmp/%s.ckpt" % self.name) print("Model saved in file: %s" % save_path) def load(self, sess=None): if not sess: raise AttributeError("TensorFlow session not provided.") saver = tf.train.Saver(self.vars) save_path = "tmp/%s.ckpt" % self.name saver.restore(sess, save_path) print("Model restored from file: %s" % save_path) class GeneralizedModel(Model): """ Base class for models that aren't constructed from traditional, sequential layers. Subclasses must set self.outputs in _build method (Removes the layers idiom from build method of the Model class) """ def __init__(self, **kwargs): super(GeneralizedModel, self).__init__(**kwargs) def build(self): """ Wrapper for _build() """ with tf.variable_scope(self.name): self._build() # Store model variables for easy access variables = tf.get_collection(tf.GraphKeys.GLOBAL_VARIABLES, scope=self.name) self.vars = {var.name: var for var in variables} # Build metrics self._loss() self._accuracy() self.opt_op = self.optimizer.minimize(self.loss) class PretrainModel(GeneralizedModel): def __init__(self, placeholders, features, pretrained, dict_size, degree_permuted, rpr_matrix, rpr_arg, dropout = 0., nodevec_dim = 200, lr = 0.001, only_f = False, **kwargs): """ W_mlp is pretrained by node2vec """ super(PretrainModel, self).__init__(**kwargs) self.placeholders = placeholders self.degrees = degree_permuted self.only_f = only_f self.rpr_arg = tf.Variable(tf.constant(rpr_arg, dtype = tf.int64), trainable = False) self.rpr_matrix = tf.Variable(tf.constant(rpr_matrix, dtype = tf.float32), trainable = False) self.dropout = dropout self.feature_dim = features.shape[1] self.features = tf.Variable(tf.constant(features, dtype = tf.float32), trainable = False) self.train_inputs = placeholders["train_inputs"] self.train_labels = placeholders["train_labels"] self.batchsize = placeholders["batchsize"] self.dim = dict_size self.nodevec_dim = nodevec_dim self.lr = lr self.embeddings = tf.Variable(tf.constant(pretrained, dtype = tf.float32), trainable = True, name = "embeddings") self.nce_weights = tf.Variable(tf.constant(pretrained, dtype = tf.float32), trainable = True, name = "nce_weights") self.aggregator_t = WeightedAggregator(self.feature_dim, self.nodevec_dim, dropout = self.dropout, name = 'true_agg') self.optimizer = tf.train.AdamOptimizer(learning_rate = lr) self.build() def sample_aggregate(self, input_args, bs, aggregator): samples_arg = tf.nn.embedding_lookup(self.rpr_arg, input_args) samples_weights = tf.nn.embedding_lookup(self.rpr_matrix, input_args) samples_features = tf.nn.embedding_lookup(self.features, samples_arg) batch_out = aggregator((samples_features, samples_weights, bs, FLAGS.k_RPR)) # out should be bs * d return batch_out def _build(self): labels = tf.reshape(tf.cast(self.train_labels, dtype = tf.int64), [self.batchsize, 1]) self.neg_samples, _, _ = (tf.nn.fixed_unigram_candidate_sampler( true_classes = labels, num_true = 1, num_sampled = FLAGS.neg_sample_size, unique = True, range_max = len(self.degrees), distortion = 0.75, unigrams = self.degrees.tolist())) self.train_inputs_f = self.sample_aggregate(self.train_inputs, self.batchsize, self.aggregator_t) self.train_labels_f = self.sample_aggregate(self.train_labels, self.batchsize, self.aggregator_t) self.neg_samples_f = self.sample_aggregate(self.neg_samples, FLAGS.neg_sample_size, self.aggregator_t) self.embed = tf.nn.embedding_lookup(self.embeddings, self.train_inputs) self.true_w = tf.nn.embedding_lookup(self.nce_weights, self.train_labels) self.false_w = tf.nn.embedding_lookup(self.nce_weights, self.neg_samples) self.train_inputs_all = tf.add(self.train_inputs_f, self.embed) self.train_labels_all = tf.add(self.train_labels_f, self.true_w) self.neg_samples_all = tf.add(self.neg_samples_f, self.false_w) def build(self): self._build() self._loss() self._minimize_2() def _minimize(self): self.opt_op = self.optimizer.minimize(self.loss) def _minimize_2(self): var_list1 = [var for var in tf.trainable_variables() if var.name == "embeddings:0" or var.name == "nce_weights:0"] var_list2 = [var for var in tf.trainable_variables() if var not in var_list1] opt2 = tf.train.AdamOptimizer(learning_rate = self.lr) opt1 = tf.train.AdamOptimizer(learning_rate = 1e-5) grads = tf.gradients(self.loss, var_list1 + var_list2) grads1 = grads[:len(var_list1)] grads2 = grads[len(var_list1):] train_op1 = opt1.apply_gradients(zip(grads1, var_list1)) train_op2 = opt2.apply_gradients(zip(grads2, var_list2)) self.opt_op = tf.group(train_op1, train_op2) def _loss(self): p1 = tf.reduce_sum(tf.multiply(self.train_inputs_f, self.train_labels_f), 1) p1 = tf.log(tf.sigmoid(p1) + 0.001) p2 = tf.reduce_sum(tf.matmul(self.train_inputs_f, tf.transpose(self.neg_samples_f))) p2 = tf.log(tf.sigmoid(-p2) + 0.001) p3 = tf.reduce_sum(tf.multiply(self.embed, self.true_w), 1) p3 = tf.log(tf.sigmoid(p3) + 0.001) p4 = tf.reduce_sum(tf.matmul(self.embed, tf.transpose(self.false_w))) p4 = tf.log(tf.sigmoid(-p4) + 0.001) p5 = tf.reduce_sum(tf.multiply(self.embed, self.train_labels_f), 1) p5 = tf.log(tf.sigmoid(p5) + 0.001) p6 = tf.reduce_sum(tf.matmul(self.embed, tf.transpose(self.neg_samples_f))) p6 = tf.log(tf.sigmoid(-p6) + 0.001) p7 = tf.reduce_sum(tf.multiply(self.true_w, self.train_inputs_f), 1) p7 = tf.log(tf.sigmoid(p7) + 0.001) p8 = tf.reduce_sum(tf.matmul(self.true_w, tf.transpose(self.neg_samples_f))) p8 = tf.log(tf.sigmoid(-p8) + 0.001) rho1 = 1.5 rho2 = 0.75 rho3 = 1.5 temp_loss = rho1*(p1+p2)+rho2*(p3+p4)+rho3*(p5+p6)+rho3*(p7+p8) self.loss += -tf.reduce_sum(temp_loss) / tf.cast(self.batchsize, tf.float32) tf.summary.scalar('loss', self.loss) class AggregateModel(GeneralizedModel): def __init__(self, placeholders, features, dict_size, degree_permuted, rpr_matrix, rpr_arg, dropout = 0., nodevec_dim = 200, lr = 0.001, only_f = False, **kwargs): """ Aggregate feature informations of the neighbors of the current node, weighted by Rooted PageRank vector of the current node. """ super(AggregateModel, self).__init__(**kwargs) self.placeholders = placeholders self.degrees = degree_permuted self.only_f = only_f self.rpr_arg = tf.Variable(tf.constant(rpr_arg, dtype = tf.int64), trainable = False) self.rpr_matrix = tf.Variable(tf.constant(rpr_matrix, dtype = tf.float32), trainable = False) self.dropout = dropout self.feature_dim = features.shape[1] self.features = tf.Variable(tf.constant(features, dtype = tf.float32), trainable = False) self.train_inputs = placeholders["train_inputs"] self.train_labels = placeholders["train_labels"] self.batchsize = placeholders["batchsize"] self.dim = dict_size self.nodevec_dim = nodevec_dim self.embeddings = inits.glorot([dict_size, nodevec_dim], name = "embeddings") self.nce_weights = inits.glorot([dict_size, nodevec_dim], name = "nce_weights") self.aggregator_t = WeightedAggregator(self.feature_dim, self.nodevec_dim, dropout = self.dropout, name = 'true_agg') self.optimizer = tf.train.AdamOptimizer(learning_rate = lr) self.build() def sample_aggregate(self, input_args, bs, aggregator): samples_arg = tf.nn.embedding_lookup(self.rpr_arg, input_args) samples_weights = tf.nn.embedding_lookup(self.rpr_matrix, input_args) samples_features = tf.nn.embedding_lookup(self.features, samples_arg) batch_out = aggregator((samples_features, samples_weights, bs, FLAGS.k_RPR)) # out should be bs * d return batch_out def _build(self): labels = tf.reshape(tf.cast(self.train_labels, dtype = tf.int64), [self.batchsize, 1]) self.neg_samples, _, _ = (tf.nn.fixed_unigram_candidate_sampler( true_classes = labels, num_true = 1, num_sampled = FLAGS.neg_sample_size, unique = True, range_max = len(self.degrees), distortion = 0.75, unigrams = self.degrees.tolist())) self.train_inputs_f = self.sample_aggregate(self.train_inputs, self.batchsize, self.aggregator_t) self.train_labels_f = self.sample_aggregate(self.train_labels, self.batchsize, self.aggregator_t) self.neg_samples_f = self.sample_aggregate(self.neg_samples, FLAGS.neg_sample_size, self.aggregator_t) self.embed = tf.nn.embedding_lookup(self.embeddings, self.train_inputs) self.true_w = tf.nn.embedding_lookup(self.nce_weights, self.train_labels) self.false_w = tf.nn.embedding_lookup(self.nce_weights, self.neg_samples) self.train_inputs_all = tf.add(self.train_inputs_f, self.embed) self.train_labels_all = tf.add(self.train_labels_f, self.true_w) self.neg_samples_all = tf.add(self.neg_samples_f, self.false_w) def build(self): self._build() if self.only_f: self._f_loss() else: self._loss() self._minimize() def _minimize(self): self.opt_op = self.optimizer.minimize(self.loss) def _f_loss(self): p1 = tf.reduce_sum(tf.multiply(self.train_inputs_f, self.train_labels_f), 1) p1 = tf.log(tf.sigmoid(p1) + 0.001) p2 = tf.reduce_sum(tf.matmul(self.train_inputs_f, tf.transpose(self.neg_samples_f))) p2 = tf.log(tf.sigmoid(-p2) + 0.001) temp_loss = p1 + p2 self.loss=-tf.reduce_sum(temp_loss) / tf.cast(self.batchsize, tf.float32) tf.summary.scalar('loss', self.loss) def _loss(self): p1 = tf.reduce_sum(tf.multiply(self.train_inputs_f, self.train_labels_f), 1) p1 = tf.log(tf.sigmoid(p1) + 0.001) p2 = tf.reduce_sum(tf.matmul(self.train_inputs_f, tf.transpose(self.neg_samples_f))) p2 = tf.log(tf.sigmoid(-p2) + 0.001) p3 = tf.reduce_sum(tf.multiply(self.embed, self.true_w), 1) p3 = tf.log(tf.sigmoid(p3) + 0.001) p4 = tf.reduce_sum(tf.matmul(self.embed, tf.transpose(self.false_w))) p4 = tf.log(tf.sigmoid(-p4) + 0.001) p5 = tf.reduce_sum(tf.multiply(self.embed, self.train_labels_f), 1) p5 = tf.log(tf.sigmoid(p5) + 0.001) p6 = tf.reduce_sum(tf.matmul(self.embed, tf.transpose(self.neg_samples_f))) p6 = tf.log(tf.sigmoid(-p6) + 0.001) p7 = tf.reduce_sum(tf.multiply(self.true_w, self.train_inputs_f), 1) p7 = tf.log(tf.sigmoid(p7) + 0.001) p8 = tf.reduce_sum(tf.matmul(self.true_w, tf.transpose(self.neg_samples_f))) p8 = tf.log(tf.sigmoid(-p8) + 0.001) rho1 = 1.5 rho2 = 0.75 rho3 = 1.5 temp_loss = rho1*(p1+p2)+rho2*(p3+p4)+rho3*(p5+p6)+rho3*(p7+p8) self.loss += -tf.reduce_sum(temp_loss) / tf.cast(self.batchsize, tf.float32) tf.summary.scalar('loss', self.loss)
34.945504
105
0.704873
1,905
12,825
4.537533
0.132283
0.040606
0.026724
0.027071
0.778806
0.762147
0.751273
0.7441
0.7441
0.735423
0
0.025049
0.16577
12,825
367
106
34.945504
0.782877
0.048031
0
0.684615
0
0
0.029352
0
0
0
0
0
0.003846
1
0.092308
false
0.003846
0.038462
0
0.153846
0.011538
0
0
0
null
0
0
0
0
1
1
1
1
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
5
2c5cd1efb11efb3916625512d05c6679a31c6cc1
42
py
Python
tempCodeRunnerFile.py
VDHARV/self-driving-car-rasberrypi
45e70ce97f00471d38aca87dc94dbae032823f24
[ "MIT" ]
null
null
null
tempCodeRunnerFile.py
VDHARV/self-driving-car-rasberrypi
45e70ce97f00471d38aca87dc94dbae032823f24
[ "MIT" ]
null
null
null
tempCodeRunnerFile.py
VDHARV/self-driving-car-rasberrypi
45e70ce97f00471d38aca87dc94dbae032823f24
[ "MIT" ]
null
null
null
# motor.move(0.05, curve_val*sen, 0.2)
42
42
0.619048
9
42
2.777778
0.888889
0
0
0
0
0
0
0
0
0
0
0.142857
0.166667
42
1
42
42
0.571429
0.857143
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
2c663e558b6c1937136c180dc356ce2610340af0
65
py
Python
app/modules/auth/__init__.py
joostsijm/ssg
c2da0d7274aa76dc2d565e20d1b4c3f0ef5241a1
[ "Apache-2.0" ]
null
null
null
app/modules/auth/__init__.py
joostsijm/ssg
c2da0d7274aa76dc2d565e20d1b4c3f0ef5241a1
[ "Apache-2.0" ]
null
null
null
app/modules/auth/__init__.py
joostsijm/ssg
c2da0d7274aa76dc2d565e20d1b4c3f0ef5241a1
[ "Apache-2.0" ]
null
null
null
""" Website login page """ from .app import BLUEPRINT as Auth
9.285714
35
0.676923
9
65
4.888889
1
0
0
0
0
0
0
0
0
0
0
0
0.215385
65
6
36
10.833333
0.862745
0.276923
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
5
2c846f84dea8ba02030b9ac75b5000203c217199
58
py
Python
msldap/protocol/ldap_filter/__init__.py
blshkv/msldap
435601df85faa407793555ed0da582aa709e3be1
[ "MIT" ]
18
2018-03-03T20:17:19.000Z
2022-02-02T17:02:41.000Z
msldap/protocol/ldap_filter/__init__.py
blshkv/msldap
435601df85faa407793555ed0da582aa709e3be1
[ "MIT" ]
2
2018-03-05T00:28:29.000Z
2020-05-02T20:26:24.000Z
msldap/protocol/ldap_filter/__init__.py
blshkv/msldap
435601df85faa407793555ed0da582aa709e3be1
[ "MIT" ]
3
2020-03-10T22:49:07.000Z
2022-02-02T17:18:27.000Z
from .filter import Filter from .parser import ParseError
19.333333
30
0.827586
8
58
6
0.625
0
0
0
0
0
0
0
0
0
0
0
0.137931
58
2
31
29
0.96
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
5
2c9d9efd9053e2bf20ec3fc9415a36c4e24e4523
501
py
Python
Python-For-Everyone-Horstmann/Chapter11-Recursion/nose_is_lucky_number.py
islayy/Books-solutions
5fe05deb4e9f65875284d8af43bd383bf9ae145b
[ "MIT" ]
null
null
null
Python-For-Everyone-Horstmann/Chapter11-Recursion/nose_is_lucky_number.py
islayy/Books-solutions
5fe05deb4e9f65875284d8af43bd383bf9ae145b
[ "MIT" ]
null
null
null
Python-For-Everyone-Horstmann/Chapter11-Recursion/nose_is_lucky_number.py
islayy/Books-solutions
5fe05deb4e9f65875284d8af43bd383bf9ae145b
[ "MIT" ]
1
2019-09-22T06:27:49.000Z
2019-09-22T06:27:49.000Z
# Unit tests for is_lucky_number.py # IMPORTS from is_lucky_number import is_lucky from nose.tools import eq_ class TestIsLuckyNumber(): def test_is_lucky_8(self): eq_(True, is_lucky(8)) def test_is_lucky_number_less_than_8(self): eq_(False, is_lucky(5)) def test_is_lucky_number_18(self): eq_(True, is_lucky(18)) def test_is_lucky_number_81(self): eq_(True, is_lucky(81)) def test_is_lucky_number_91(self): eq_(False, is_lucky(91))
20.875
47
0.696607
83
501
3.759036
0.325301
0.291667
0.25
0.224359
0.535256
0
0
0
0
0
0
0.040404
0.209581
501
23
48
21.782609
0.747475
0.081836
0
0
0
0
0
0
0
0
0
0
0
1
0.384615
false
0
0.153846
0
0.615385
0
0
0
0
null
1
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
1
0
0
0
0
1
0
0
5
e2caa8f16d63a596ea98702f948bc7f9ca0f02f7
170
py
Python
datasets/VID2015/vid_2015_test.py
wakanda-ai/tf-detectors
9ae61b0070250a40dd90f8aeffcfece471151249
[ "MIT" ]
11
2019-02-13T16:16:39.000Z
2020-08-19T11:27:44.000Z
datasets/VID2015/vid_2015_test.py
KanaSukita/tf-detectors
b8cefb0445008056ecafa75bf44e7840c3de72ea
[ "MIT" ]
1
2019-09-15T09:25:38.000Z
2019-09-26T16:46:03.000Z
datasets/VID2015/vid_2015_test.py
wakanda-ai/tf-detectors
9ae61b0070250a40dd90f8aeffcfece471151249
[ "MIT" ]
6
2018-06-03T10:38:05.000Z
2020-05-18T12:29:13.000Z
import os import glob import tensorflow as tf # TODO:Make filename queue # TODO:Bucketd batch # TODO:Test Graph (Summarize to tensorboard) # TODO:Test code (Tf.test)
14.166667
44
0.752941
26
170
4.923077
0.692308
0.125
0
0
0
0
0
0
0
0
0
0
0.170588
170
11
45
15.454545
0.907801
0.652941
0
0
0
0
0
0
0
0
0
0.090909
0
1
0
true
0
1
0
1
0
1
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
1
0
1
0
1
0
0
5
39276408c74f6d1e87bd10de17fce8597df158f9
91
py
Python
neurolab/utils/__init__.py
udday2014/HebbianLearning
e0d17e53e3db8ce54b8fdd901702d2d6e0633732
[ "MIT" ]
6
2020-01-08T05:36:09.000Z
2022-02-09T21:07:04.000Z
neurolab/utils/__init__.py
GabrieleLagani/HebbianPCA
2736bb3017fa30ad2c160c891d42361bc5894df5
[ "MIT" ]
null
null
null
neurolab/utils/__init__.py
GabrieleLagani/HebbianPCA
2736bb3017fa30ad2c160c891d42361bc5894df5
[ "MIT" ]
2
2022-03-04T08:28:44.000Z
2022-03-16T19:00:34.000Z
from .utils import * from .logger import * from .progtracker import * from .config import *
22.75
26
0.747253
12
91
5.666667
0.5
0.441176
0
0
0
0
0
0
0
0
0
0
0.164835
91
4
27
22.75
0.894737
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
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
1
0
1
0
0
0
0
5
392b609951be5c0c57322c3b314f9ea1d65f9019
78
py
Python
truecaller_data.py
AarkTechHub/puppeteer_in_python
a5b7ad4c5f02e852b29c3484c225948661e82286
[ "MIT" ]
null
null
null
truecaller_data.py
AarkTechHub/puppeteer_in_python
a5b7ad4c5f02e852b29c3484c225948661e82286
[ "MIT" ]
null
null
null
truecaller_data.py
AarkTechHub/puppeteer_in_python
a5b7ad4c5f02e852b29c3484c225948661e82286
[ "MIT" ]
null
null
null
import asyncio import json from pyppeteer import launch from time import sleep
19.5
28
0.858974
12
78
5.583333
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.141026
78
4
29
19.5
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
5
393ee6156aa9b43acf1df41691520450193acae5
108
py
Python
Lib/tdb/controller.py
smnbackwards/jython_tdb
6d0e13c0c51b8d92d7b45691998c5928206162b0
[ "CNRI-Jython" ]
null
null
null
Lib/tdb/controller.py
smnbackwards/jython_tdb
6d0e13c0c51b8d92d7b45691998c5928206162b0
[ "CNRI-Jython" ]
null
null
null
Lib/tdb/controller.py
smnbackwards/jython_tdb
6d0e13c0c51b8d92d7b45691998c5928206162b0
[ "CNRI-Jython" ]
null
null
null
class Controller(): def __init__(self): self.debugger = None def get_cmd(self): pass
21.6
28
0.592593
13
108
4.538462
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.305556
108
5
29
21.6
0.786667
0
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0.2
0
0
0.6
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
1
0
1
0
0
1
0
0
5
39527647cf8318f3c372c1bcc7ee5b13f18cb67f
81
py
Python
automatization_of_data_mining_project/data_set_loader/classes/pandas_data_set_loader/loader_validator/pathname_checker/pathname_checker.py
Sale1996/automatization_of_data_mining_project
223aec59231586563a3b125bff064f8420630a8f
[ "MIT" ]
null
null
null
automatization_of_data_mining_project/data_set_loader/classes/pandas_data_set_loader/loader_validator/pathname_checker/pathname_checker.py
Sale1996/automatization_of_data_mining_project
223aec59231586563a3b125bff064f8420630a8f
[ "MIT" ]
null
null
null
automatization_of_data_mining_project/data_set_loader/classes/pandas_data_set_loader/loader_validator/pathname_checker/pathname_checker.py
Sale1996/automatization_of_data_mining_project
223aec59231586563a3b125bff064f8420630a8f
[ "MIT" ]
null
null
null
class PathNameChecker(object): def check(self, pathname: str): pass
16.2
35
0.654321
9
81
5.888889
1
0
0
0
0
0
0
0
0
0
0
0
0.246914
81
4
36
20.25
0.868852
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.333333
0
0
0.666667
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
1
0
1
0
0
1
0
0
5
1a30c8c07446a29b3131db3c5e0363a440ade735
9,174
py
Python
climacell/tests/test_api.py
marcelblijleven/weather
802331f92f2554c05b04d4df9a2b1fe5d4e9fbc5
[ "MIT" ]
null
null
null
climacell/tests/test_api.py
marcelblijleven/weather
802331f92f2554c05b04d4df9a2b1fe5d4e9fbc5
[ "MIT" ]
null
null
null
climacell/tests/test_api.py
marcelblijleven/weather
802331f92f2554c05b04d4df9a2b1fe5d4e9fbc5
[ "MIT" ]
null
null
null
import json import os from unittest import TestCase, mock from climacell.api import Client, Measurement, Response, Error from climacell.fields import ( FIELD_TEMP, FIELD_DEW_POINT, FIELD_HUMIDITY, FIELD_WIND_SPEED, FIELD_WIND_GUST, FIELD_WIND_DIRECTION, FIELD_SUNRISE, FIELD_SUNSET, ) from climacell.utils import join_fields ERROR_FILE = os.path.dirname(__file__) + '/data/error_example.json' HOURLY_FILE = os.path.dirname(__file__) + '/data/hourly_example.json' DAILY_FILE = os.path.dirname(__file__) + '/data/daily_example.json' NOWCAST_FILE = os.path.dirname(__file__) + '/data/nowcast_example.json' class MockResponse: def __init__(self, data, status_code): self.data = data self.status_code = status_code def json(self): return self.data def mock_requests_get(*args, **kwargs): base_url = 'https://api.climacell.co/v3' if args[0] is None: return MockResponse(None, 404) elif args[0] == base_url + '/weather/forecast/hourly': file = HOURLY_FILE elif args[0] == base_url + '/weather/nowcast': file = NOWCAST_FILE elif args[0] == base_url + '/weather/forecast/daily': file = DAILY_FILE with open(file) as json_file: data = json.load(json_file) return MockResponse(data, 200) class TestMeasurement(TestCase): def test_measurement__str__(self): m = Measurement('temp', 13.04, 'C', '2021-01-14T21:00:00.000Z') self.assertEqual('temp: 13.04 C at 2021-01-14 21:00:00+00:00', str(m)) m = Measurement('temp', 13.04, None, '2021-01-14T21:00:00.000Z') self.assertEqual('temp: 13.04 at 2021-01-14 21:00:00+00:00', str(m)) class TestResponse(TestCase): def test_get_measurements_error(self): with open(ERROR_FILE) as f: data = json.load(f) mock_response = MockResponse(data, 400) response = Response(mock_response, [FIELD_TEMP, FIELD_DEW_POINT, FIELD_HUMIDITY]) self.assertTrue(response.has_error) error = response.get_measurements() self.assertTrue(isinstance(error, Error)) class TestError(TestCase): def test_error(self): with open(ERROR_FILE) as f: data = json.load(f) error = Error(data) self.assertEqual(400, error.status_code) self.assertEqual('Message body content not allowed.', error.message) self.assertEqual('BadRequest', error.code) def test_error_str(self): with open(ERROR_FILE) as f: data = json.load(f) error = Error(data) expected_str = 'BadRequest (400): Message body content not allowed.' self.assertEqual(expected_str, str(error)) class TestClient(TestCase): @mock.patch('climacell.api.requests.get', side_effect=mock_requests_get) def test_hourly(self, mock_get): client = Client('apikey') lat = 52.446023244274045 lon = 4.819207798979252 fields = [FIELD_TEMP, FIELD_DEW_POINT, FIELD_HUMIDITY] response = client.hourly(lat=lat, lon=lon, fields=fields) measurements = response.get_measurements() expected_params = { 'lat': 52.446023244274045, 'lon': 4.819207798979252, 'start_time': 'now', 'unit_system': 'si', 'fields': join_fields([FIELD_TEMP, FIELD_DEW_POINT, FIELD_HUMIDITY]), } mock_get.assert_called_with( 'https://api.climacell.co/v3/weather/forecast/hourly', params=expected_params, headers={'apikey': 'apikey'} ) self.assertEqual(6, len(measurements)) def test_hourly_invalid_start_time(self): client = Client('apikey') lat = 52.446023244274045 lon = 4.819207798979252 fields = [FIELD_TEMP, FIELD_DEW_POINT, FIELD_HUMIDITY] start_time = 'yesterday' self.assertRaises( ValueError, client.hourly, lat, lon, fields, start_time ) def test_hourly_invalid_end_time(self): client = Client('apikey') lat = 52.446023244274045 lon = 4.819207798979252 fields = [FIELD_TEMP, FIELD_DEW_POINT, FIELD_HUMIDITY] start_time = 'now' end_time = 'tomorrow' self.assertRaises( ValueError, client.hourly, lat, lon, fields, start_time, end_time ) @mock.patch('climacell.api.requests.get', side_effect=mock_requests_get) def test_hourly_valid_end_time(self, mock_get): client = Client('apikey') lat = 52.446023244274045 lon = 4.819207798979252 fields = [FIELD_TEMP, FIELD_DEW_POINT, FIELD_HUMIDITY] start_time = 'now' end_time = '2021-01-14T21:00:00.000Z' response = client.hourly(lat, lon, fields, start_time, end_time) self.assertFalse(response.has_error) expected_params = { 'lat': 52.446023244274045, 'lon': 4.819207798979252, 'start_time': 'now', 'unit_system': 'si', 'fields': join_fields([FIELD_TEMP, FIELD_DEW_POINT, FIELD_HUMIDITY]), 'end_time': '2021-01-14T21:00:00.000Z', } mock_get.assert_called_with( 'https://api.climacell.co/v3/weather/forecast/hourly', params=expected_params, headers={'apikey': 'apikey'} ) @mock.patch('climacell.api.requests.get', side_effect=mock_requests_get) def test_nowcast(self, mock_get): client = Client('apikey') lat = 52.446023244274045 lon = 4.819207798979252 timestep = 30 fields = [ FIELD_TEMP, FIELD_DEW_POINT, FIELD_HUMIDITY, FIELD_WIND_SPEED, FIELD_WIND_GUST, FIELD_WIND_DIRECTION, FIELD_SUNRISE, FIELD_SUNSET, ] response = client.nowcast(lat=lat, lon=lon, fields=fields, timestep=timestep) measurements = response.get_measurements() expected_params = { 'lat': 52.446023244274045, 'lon': 4.819207798979252, 'timestep': 30, 'start_time': 'now', 'unit_system': 'si', 'fields': join_fields(fields), } mock_get.assert_called_with( 'https://api.climacell.co/v3/weather/nowcast', params=expected_params, headers={'apikey': 'apikey'} ) # 13 timesteps, 8 measurements per timestep self.assertEqual(13 * 8, len(measurements)) @mock.patch('climacell.api.requests.get', side_effect=mock_requests_get) def test_nowcast_valid_end_time(self, mock_get): client = Client('apikey') lat = 52.446023244274045 lon = 4.819207798979252 timestep = 30 fields = [FIELD_TEMP] start_time = 'now' end_time = '2021-01-14T21:00:00.000Z' response = client.nowcast( lat=lat, lon=lon, fields=fields, timestep=timestep, start_time=start_time, end_time=end_time ) self.assertFalse(response.has_error) expected_params = { 'lat': 52.446023244274045, 'lon': 4.819207798979252, 'timestep': 30, 'start_time': 'now', 'unit_system': 'si', 'fields': join_fields(fields), 'end_time': end_time } mock_get.assert_called_with( 'https://api.climacell.co/v3/weather/nowcast', params=expected_params, headers={'apikey': 'apikey'} ) def test_nowcast_invalid_start_time(self): client = Client('apikey') lat = 52.446023244274045 lon = 4.819207798979252 timestep = 30 fields = [FIELD_TEMP] start_time = 'yesterday' self.assertRaises( ValueError, client.nowcast, lat, lon, fields, timestep, start_time ) def test_nowcast_invalid_end_time(self): client = Client('apikey') lat = 52.446023244274045 lon = 4.819207798979252 timestep = 30 fields = [FIELD_TEMP] start_time = 'now' end_time = 'tomorrow' self.assertRaises( ValueError, client.nowcast, lat, lon, fields, timestep, start_time, end_time ) @mock.patch('climacell.api.requests.get', side_effect=mock_requests_get) def test_daily(self, mock_get): client = Client('apikey') lat = 52.446023244274045 lon = 4.819207798979252 fields = [FIELD_TEMP, FIELD_DEW_POINT, FIELD_HUMIDITY] response = client.daily(lat=lat, lon=lon, fields=fields) measurements = response.get_measurements() expected_params = { 'lat': 52.446023244274045, 'lon': 4.819207798979252, 'start_time': 'now', 'unit_system': 'si', 'fields': join_fields([FIELD_TEMP, FIELD_DEW_POINT, FIELD_HUMIDITY]), } mock_get.assert_called_with( 'https://api.climacell.co/v3/weather/forecast/daily', params=expected_params, headers={'apikey': 'apikey'} ) self.assertEqual(6, len(measurements))
32.076923
89
0.613909
1,051
9,174
5.126546
0.125595
0.033408
0.051967
0.059762
0.777654
0.755939
0.737379
0.710282
0.705457
0.701188
0
0.096813
0.274907
9,174
285
90
32.189474
0.713169
0.004469
0
0.541485
0
0.004367
0.136239
0.043369
0
0
0
0
0.09607
1
0.069869
false
0
0.026201
0.004367
0.131004
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
1a8742acff5db584692475278eb95a3f3e386231
101
py
Python
todoapp/uptodo/admin.py
singh1114/up_todo
95cee64efe81551dd6485e3997353890e0b835fc
[ "MIT" ]
1
2018-05-12T17:49:21.000Z
2018-05-12T17:49:21.000Z
todoapp/uptodo/admin.py
singh1114/up_todo
95cee64efe81551dd6485e3997353890e0b835fc
[ "MIT" ]
3
2020-06-05T18:08:47.000Z
2021-06-10T20:15:35.000Z
todoapp/uptodo/admin.py
singh1114/up_todo
95cee64efe81551dd6485e3997353890e0b835fc
[ "MIT" ]
null
null
null
from django.contrib import admin from uptodo.models import TodoTask admin.site.register(TodoTask)
14.428571
34
0.821782
14
101
5.928571
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.118812
101
6
35
16.833333
0.932584
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
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
1
0
1
0
1
0
0
5
1a93b8082c4aece19ca19a2f25f9f9217a9eb181
107
py
Python
topCoder/srms/400s/srm460/div2/the_questions_and_answers_div_two.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
25
2015-01-21T16:39:18.000Z
2021-05-24T07:01:24.000Z
topCoder/srms/400s/srm460/div2/the_questions_and_answers_div_two.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
2
2020-09-30T19:39:36.000Z
2020-10-01T17:15:16.000Z
topCoder/srms/400s/srm460/div2/the_questions_and_answers_div_two.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
15
2015-01-21T16:39:27.000Z
2020-10-01T17:00:22.000Z
class TheQuestionsAndAnswersDivTwo: def find(self, questions): return 2 ** len(set(questions))
26.75
39
0.700935
11
107
6.818182
0.909091
0
0
0
0
0
0
0
0
0
0
0.011628
0.196262
107
3
40
35.666667
0.860465
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
1
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
1
0
0
0
1
1
0
0
5
1acf1c903336e545480dffdb10478c73d777d910
61
py
Python
test/run/t73.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
2,671
2015-01-03T08:23:25.000Z
2022-03-31T06:15:48.000Z
test/run/t73.py
csev/skulpt
9aa25b7dbf29f23ee8d3140d01a6f4353d12e66f
[ "MIT" ]
972
2015-01-05T08:11:00.000Z
2022-03-29T13:47:15.000Z
test/run/t73.py
csev/skulpt
9aa25b7dbf29f23ee8d3140d01a6f4353d12e66f
[ "MIT" ]
845
2015-01-03T19:53:36.000Z
2022-03-29T18:34:22.000Z
xyzy = [100,101,102,103,104,105,106,107] del xyzy print xyzy
15.25
40
0.721311
13
61
3.384615
0.846154
0
0
0
0
0
0
0
0
0
0
0.444444
0.114754
61
3
41
20.333333
0.37037
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
46dfa1c99f416376d3044a05d5ffd044a7c618f5
3,818
py
Python
bookclub/bookclub/bookclub_server/historycontroller.py
bookclubapp/bookclub_server
be6cf974373eb8aac436c9b3812864dcb53cdc89
[ "MIT" ]
null
null
null
bookclub/bookclub/bookclub_server/historycontroller.py
bookclubapp/bookclub_server
be6cf974373eb8aac436c9b3812864dcb53cdc89
[ "MIT" ]
null
null
null
bookclub/bookclub/bookclub_server/historycontroller.py
bookclubapp/bookclub_server
be6cf974373eb8aac436c9b3812864dcb53cdc89
[ "MIT" ]
1
2019-07-05T12:46:18.000Z
2019-07-05T12:46:18.000Z
from django.forms import model_to_dict from rest_framework.decorators import api_view from rest_framework.utils import json from .models import User, History,Match,Book from django.http import JsonResponse @api_view(['GET']) def index_match(request): # WORKS if "user" in request.session: history = History.objects.filter(user_id=request.session['user']) if history.exists(): history_list = [] index = 0 for line in history: index += 1 if not line.match_id== None : givingbook = Book.objects.get(id=line.match_id.giving_book_id) wantedbook = Book.objects.get(id=line.match_id.wanted_book_id) history_list.append({"match_history_info": model_to_dict(line), "match_info": model_to_dict(line.match_id), "giving_book_info" : model_to_dict(givingbook), "wanted_book_info": model_to_dict(wantedbook), }) if index > 50: break status = 'success' message = 'history data send successfully' else: status = 'error' message = 'no history for this user' history_list = None else: status = 'error' message = 'there is no user in the session' history_list = None json_data = {"status": status, "message": message, "history": history_list, } return JsonResponse(json_data) @api_view(['GET']) def index_suggestion(request): # WORKS if "user" in request.session: history = History.objects.filter(user_id=request.session['user']) if history.exists(): history_list = [] index = 0 for line in history: index += 1 if not line.suggestion_id == None : givingbook = Book.objects.get(id=line.suggestion_id.giving_book_id) wantedbook = Book.objects.get(id=line.suggestion_id.wanted_book_id) history_list.append({"suggestion_history_info": model_to_dict(line), "suggestion_info": model_to_dict(line.suggestion_id), "giving_book_info": model_to_dict(givingbook), "wanted_book_info": model_to_dict(wantedbook), }) if index > 50: break status = 'success' message = 'history data send successfully' else: status = 'error' message = 'no history for this user' history_list = None else: status = 'error' message = 'there is no user in the session' history_list = None json_data = {"status": status, "message": message, "history": history_list, } return JsonResponse(json_data) @api_view(['GET']) def clear(request): # WORKS if "user" in request.session: history = History.objects.filter(user_id=request.session['user']) if history.exists(): for item in history: item.delete() status = 'success' message = 'history data deleted successfully' else: status = 'error' message = 'no history for this user' else: status = 'error' message = 'there is no user in the session' json_data = {"status": status, "message": message } return JsonResponse(json_data)
39.770833
97
0.523573
389
3,818
4.946015
0.172237
0.057173
0.051455
0.06237
0.85395
0.825884
0.745842
0.698025
0.660603
0.660603
0
0.003435
0.389995
3,818
96
98
39.770833
0.822671
0.004453
0
0.728261
0
0
0.138231
0.006056
0
0
0
0
0
1
0.032609
false
0
0.054348
0
0.119565
0
0
0
0
null
0
0
0
1
1
1
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
5
46e80c0198efd62a82d6c65280be72c38b64ff8d
7,940
py
Python
tests/commands/test_filter.py
alan-maguire/sdb
f8ce7f8571785dc7b9e3a80200df46b80a483f58
[ "Apache-2.0" ]
null
null
null
tests/commands/test_filter.py
alan-maguire/sdb
f8ce7f8571785dc7b9e3a80200df46b80a483f58
[ "Apache-2.0" ]
null
null
null
tests/commands/test_filter.py
alan-maguire/sdb
f8ce7f8571785dc7b9e3a80200df46b80a483f58
[ "Apache-2.0" ]
1
2020-08-18T07:57:43.000Z
2020-08-18T07:57:43.000Z
# # Copyright 2019 Delphix # # 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. # # pylint: disable=missing-docstring import pytest import drgn import sdb from tests import invoke, MOCK_PROGRAM def test_no_arg(): line = 'filter' objs = [] with pytest.raises(sdb.CommandArgumentsError): invoke(MOCK_PROGRAM, objs, line) def test_no_rhs(): line = 'filter obj ==' objs = [] with pytest.raises(sdb.CommandInvalidInputError): invoke(MOCK_PROGRAM, objs, line) def test_no_lhs(): line = 'filter == obj' objs = [] with pytest.raises(sdb.CommandInvalidInputError): invoke(MOCK_PROGRAM, objs, line) def test_no_operator(): line = 'filter obj' objs = [] with pytest.raises(sdb.CommandInvalidInputError): invoke(MOCK_PROGRAM, objs, line) def test_no_input(): line = 'filter obj == obj' objs = [] ret = invoke(MOCK_PROGRAM, objs, line) assert not ret def test_single_void_ptr_input_lhs_not_object(): line = 'filter 0 == obj' objs = [drgn.Object(MOCK_PROGRAM, 'void *', value=0)] with pytest.raises(sdb.CommandInvalidInputError): invoke(MOCK_PROGRAM, objs, line) def test_single_void_ptr_input_object_match(): line = 'filter obj == obj' objs = [drgn.Object(MOCK_PROGRAM, 'void *', value=0)] ret = invoke(MOCK_PROGRAM, objs, line) assert len(ret) == 1 assert ret[0].value_() == 0 assert ret[0].type_ == MOCK_PROGRAM.type('void *') def test_single_void_ptr_input_value_match(): line = 'filter obj == 0' objs = [drgn.Object(MOCK_PROGRAM, 'void *', value=0)] ret = invoke(MOCK_PROGRAM, objs, line) assert len(ret) == 1 assert ret[0].value_() == 0 assert ret[0].type_ == MOCK_PROGRAM.type('void *') def test_single_void_ptr_input_value_no_match(): line = 'filter obj == 1' objs = [drgn.Object(MOCK_PROGRAM, 'void *', value=0)] ret = invoke(MOCK_PROGRAM, objs, line) assert not ret def test_multi_void_ptr_input_value_match_eq(): line = 'filter obj == 1' objs = [ drgn.Object(MOCK_PROGRAM, 'void *', value=0), drgn.Object(MOCK_PROGRAM, 'void *', value=1), drgn.Object(MOCK_PROGRAM, 'void *', value=2), ] ret = invoke(MOCK_PROGRAM, objs, line) assert len(ret) == 1 assert ret[0].value_() == 1 assert ret[0].type_ == MOCK_PROGRAM.type('void *') def test_multi_void_ptr_input_value_match_ne(): line = 'filter obj != 1' objs = [ drgn.Object(MOCK_PROGRAM, 'void *', value=0), drgn.Object(MOCK_PROGRAM, 'void *', value=1), drgn.Object(MOCK_PROGRAM, 'void *', value=2), ] # # This throws an error for all the wrong reasons. The operator this # test is attempting to use is "!=", and due to a bug in the lexer # used within "invoke", this operator does not reach the "filter" # command. Instead, the lexer sees the "!" character and split the # string into the following parts: # # 1. filter obj # 2. = 1 # # As a result, the "filter" command fails because it doesn't see a # comparison operator as input to it. # with pytest.raises(sdb.CommandInvalidInputError): invoke(MOCK_PROGRAM, objs, line) def test_multi_void_ptr_input_value_match_gt(): line = 'filter obj > 1' objs = [ drgn.Object(MOCK_PROGRAM, 'void *', value=0), drgn.Object(MOCK_PROGRAM, 'void *', value=1), drgn.Object(MOCK_PROGRAM, 'void *', value=2), ] ret = invoke(MOCK_PROGRAM, objs, line) assert len(ret) == 1 assert ret[0].value_() == 2 assert ret[0].type_ == MOCK_PROGRAM.type('void *') def test_multi_void_ptr_input_value_match_ge(): line = 'filter obj >= 1' objs = [ drgn.Object(MOCK_PROGRAM, 'void *', value=0), drgn.Object(MOCK_PROGRAM, 'void *', value=1), drgn.Object(MOCK_PROGRAM, 'void *', value=2), ] ret = invoke(MOCK_PROGRAM, objs, line) assert len(ret) == 2 assert ret[0].value_() == 1 assert ret[0].type_ == MOCK_PROGRAM.type('void *') assert ret[1].value_() == 2 assert ret[1].type_ == MOCK_PROGRAM.type('void *') def test_multi_void_ptr_input_value_match_lt(): line = 'filter obj < 1' objs = [ drgn.Object(MOCK_PROGRAM, 'void *', value=0), drgn.Object(MOCK_PROGRAM, 'void *', value=1), drgn.Object(MOCK_PROGRAM, 'void *', value=2), ] ret = invoke(MOCK_PROGRAM, objs, line) assert len(ret) == 1 assert ret[0].value_() == 0 assert ret[0].type_ == MOCK_PROGRAM.type('void *') def test_multi_void_ptr_input_value_match_le(): line = 'filter obj <= 1' objs = [ drgn.Object(MOCK_PROGRAM, 'void *', value=0), drgn.Object(MOCK_PROGRAM, 'void *', value=1), drgn.Object(MOCK_PROGRAM, 'void *', value=2), ] ret = invoke(MOCK_PROGRAM, objs, line) assert len(ret) == 2 assert ret[0].value_() == 0 assert ret[0].type_ == MOCK_PROGRAM.type('void *') assert ret[1].value_() == 1 assert ret[1].type_ == MOCK_PROGRAM.type('void *') def test_char_array_input_object_match(): line = 'filter obj == obj' objs = [drgn.Object(MOCK_PROGRAM, 'char [4]', value=b"foo")] with pytest.raises(sdb.CommandError): invoke(MOCK_PROGRAM, objs, line) def test_char_array_input_string_match(): line = 'filter obj == "foo"' objs = [drgn.Object(MOCK_PROGRAM, 'char [4]', value=b"foo")] ret = invoke(MOCK_PROGRAM, objs, line) assert len(ret) == 1 assert ret[0].value_() == [102, 111, 111, 0] assert ret[0].string_() == b'foo' assert ret[0].type_ == MOCK_PROGRAM.type('char [4]') def test_struct_input_int_member_match_eq(): line = 'filter obj.ts_int == 1' objs = [MOCK_PROGRAM["global_struct"]] ret = invoke(MOCK_PROGRAM, objs, line) assert len(ret) == 1 assert ret[0].type_ == MOCK_PROGRAM.type('struct test_struct') assert ret[0].address_of_().value_() == 0xffffffffc0a8aee0 def test_struct_input_int_member_match_gt(): line = 'filter obj.ts_int > 1' objs = [MOCK_PROGRAM["global_struct"]] ret = invoke(MOCK_PROGRAM, objs, line) assert not ret def test_struct_input_int_member_match_ge(): line = 'filter obj.ts_int >= 1' objs = [MOCK_PROGRAM["global_struct"]] ret = invoke(MOCK_PROGRAM, objs, line) assert len(ret) == 1 assert ret[0].type_ == MOCK_PROGRAM.type('struct test_struct') assert ret[0].address_of_().value_() == 0xffffffffc0a8aee0 def test_struct_input_int_member_match_lt(): line = 'filter obj.ts_int < 1' objs = [MOCK_PROGRAM["global_struct"]] ret = invoke(MOCK_PROGRAM, objs, line) assert not ret def test_struct_input_int_member_match_le(): line = 'filter obj.ts_int <= 1' objs = [MOCK_PROGRAM["global_struct"]] ret = invoke(MOCK_PROGRAM, objs, line) assert len(ret) == 1 assert ret[0].type_ == MOCK_PROGRAM.type('struct test_struct') assert ret[0].address_of_().value_() == 0xffffffffc0a8aee0 def test_struct_input_invalid_syntax(): line = 'filter obj->ts_int == 1' objs = [MOCK_PROGRAM["global_struct"]] with pytest.raises(sdb.CommandEvalSyntaxError): invoke(MOCK_PROGRAM, objs, line) def test_struct_input_bogus_member(): line = 'filter obj.ts_bogus == 1' objs = [MOCK_PROGRAM["global_struct"]] with pytest.raises(sdb.CommandError): invoke(MOCK_PROGRAM, objs, line)
26.915254
74
0.65063
1,110
7,940
4.433333
0.140541
0.154237
0.086365
0.102418
0.778297
0.759805
0.753505
0.733184
0.715302
0.70758
0
0.0194
0.214484
7,940
294
75
27.006803
0.769601
0.126071
0
0.651429
0
0
0.11058
0
0
0
0.007816
0
0.24
1
0.137143
false
0
0.022857
0
0.16
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
2025889e562640ab3f7a5f84f7f26ec8f1708fa8
13,225
py
Python
UniShared_python/website/tests/helpers/helpers_tests.py
UniShared/unishared
0abc36be9e4262a4928945f70ec030e46e05149b
[ "MIT" ]
null
null
null
UniShared_python/website/tests/helpers/helpers_tests.py
UniShared/unishared
0abc36be9e4262a4928945f70ec030e46e05149b
[ "MIT" ]
null
null
null
UniShared_python/website/tests/helpers/helpers_tests.py
UniShared/unishared
0abc36be9e4262a4928945f70ec030e46e05149b
[ "MIT" ]
2
2019-03-03T17:34:48.000Z
2019-04-23T17:34:14.000Z
''' Created on Dec 7, 2012 @author: arnaud ''' import json import apiclient from apiclient.http import RequestMockBuilder from django.conf import settings from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django.utils import unittest from mock import Mock from UniShared_python.website.helpers.helpers import ProfileHelper, GoogleDriveHelper, LoggingHelper from website.models import Training class ProfileHelperTest(unittest.TestCase): def testIsGmail_with_gmail_adress(self): self.assertTrue(ProfileHelper.is_gmail('arnaud.breton91@gmail.com'), 'DNS test is not working') def testIsGmail_with_gapps_adress(self): self.assertTrue(ProfileHelper.is_gmail('arnaud@unishared.com'), 'DNS test is not working') def testIsGmail_with_not_google_adress(self): self.assertFalse(ProfileHelper.is_gmail('arnoo91@free.fr'), 'DNS test is not working') class GoogleDriveHelperTest(unittest.TestCase): def setUp(self): super(GoogleDriveHelperTest, self).setUp() self.logger = LoggingHelper.getDebugLogger() def tearDown(self): super(GoogleDriveHelperTest, self).tearDown() Training.objects.all().delete() User.objects.all().delete() def test_get_document_url(self): resource_id = 'toto' url_expected = '{0}{1}'.format(settings.BASE_URL, reverse('website.views.embedded_document', args=[resource_id])) self.assertEqual(GoogleDriveHelper.get_document_url(resource_id), url_expected) def test_get_unistar_collection_name(self): username = 'toto' folder_name = GoogleDriveHelper._get_unistar_collection_name(username) self.assertEqual(folder_name, '[UniShared-{0}] {1}'.format(settings.ENV_NAME, username)) def test_create_unistar_folder(self): response = { 'id' : 'abcdef' } requestBuilder = RequestMockBuilder( { 'drive.files.insert': (None, json.dumps(response)), } ) GoogleDriveHelper.get_docs_client = Mock() GoogleDriveHelper.get_docs_client.return_value = apiclient.discovery.build("drive", "v2", requestBuilder=requestBuilder) user = User.objects.create_user('arnaud.breton','test@unishared.com') self.assertEqual(GoogleDriveHelper.create_unistar_folder(user), 'abcdef') def test_search_documents(self): response = { 'items': [ { 'id':'abcdef' }, { 'id':'1234' } ] } requestBuilder = RequestMockBuilder( { 'drive.files.list': (None, json.dumps(response)), } ) GoogleDriveHelper.get_docs_client = Mock() GoogleDriveHelper.get_docs_client.return_value = apiclient.discovery.build("drive", "v2", requestBuilder=requestBuilder) creator = User.objects.create_user('test-user') Training.objects.create(resource_id='resource_id_test', title='toto', creator=creator, is_displayed=True, is_deleted=False) Training.objects.create(resource_id='resource_id_test2', title='tata', creator=creator, is_displayed=True, is_deleted=False) search_results = GoogleDriveHelper.search_documents('toto') self.assertGreater(len(search_results), 0) self.assertIn('abcdef', search_results) self.assertIn('1234', search_results) self.assertIn('resource_id_test', search_results) self.assertNotIn('resource_id_test2', search_results) def test_search_documents_title_only(self): response = { 'items': [ { 'id':'abcdef' }, { 'id':'1234' } ] } requestBuilder = RequestMockBuilder( { 'drive.files.list': (None, json.dumps(response)), } ) GoogleDriveHelper.get_docs_client = Mock() GoogleDriveHelper.get_docs_client.return_value = apiclient.discovery.build("drive", "v2", requestBuilder=requestBuilder) creator = User.objects.create_user('test-user') Training.objects.create(resource_id='resource_id_test', title='toto', creator=creator, is_displayed=True, is_deleted=False) search_results = GoogleDriveHelper.search_documents('toto', title_only=True) self.assertGreater(len(search_results), 0) self.assertNotIn('abcdef', search_results) self.assertNotIn('1234', search_results) self.assertIn('resource_id_test', search_results) self.assertEqual(GoogleDriveHelper.get_docs_client.call_count, 0) def test_get_documents(self): creator = User.objects.create_user('test-user') document = Training.objects.create(resource_id='resource_id_test', title='toto', creator=creator, is_displayed=True, is_deleted=False) document2 = Training.objects.create(resource_id='resource_id_test2', title='toto', creator=creator, is_displayed=True, is_deleted=False) document3 = Training.objects.create(resource_id='resource_id_test3', title='toto', creator=creator, is_displayed=True, is_deleted=False) results = GoogleDriveHelper.get_documents([document, document2, document3]) self.assertIn(document, results) self.assertIn(document2, results) self.assertIn(document3, results) def test_get_documents_max_documents(self): creator = User.objects.create_user('test-user') document = Training.objects.create(resource_id='resource_id_test', title='toto', creator=creator, is_displayed=True, is_deleted=False) document2 = Training.objects.create(resource_id='resource_id_test2', title='toto', creator=creator, is_displayed=True, is_deleted=False) document3 = Training.objects.create(resource_id='resource_id_test3', title='toto', creator=creator, is_displayed=True, is_deleted=False) results = GoogleDriveHelper.get_documents([document, document2, document3], max_documents=1) self.assertIn(document, results) self.assertNotIn(document2, results) self.assertNotIn(document3, results) def test_get_documents_max_documents_second_page(self): creator = User.objects.create_user('test-user') document = Training.objects.create(resource_id='resource_id_test', title='toto', creator=creator, is_displayed=True, is_deleted=False) document2 = Training.objects.create(resource_id='resource_id_test2', title='toto', creator=creator, is_displayed=True, is_deleted=False) document3 = Training.objects.create(resource_id='resource_id_test3', title='toto', creator=creator, is_displayed=True, is_deleted=False) results = GoogleDriveHelper.get_documents([document, document2, document3], max_documents=1, id_page=2) self.assertNotIn(document, results) self.assertIn(document2, results) self.assertNotIn(document3, results) def test_get_all_user_documents(self): creator = User.objects.create_user('test-user') other_user = User.objects.create_user('other-user') document = Training.objects.create(resource_id='resource_id_test', title='toto', creator=creator, is_displayed=True, is_deleted=False) document2 = Training.objects.create(resource_id='resource_id_test2', title='toto', creator=other_user, is_displayed=True, is_deleted=False) total_records, results = GoogleDriveHelper.get_all_user_documents(creator) self.assertEqual(total_records, 1) self.assertIn(document, results) self.assertNotIn(document2, results) def test_get_all_user_documents_max_documents(self): creator = User.objects.create_user('test-user') other_user = User.objects.create_user('other-user') document = Training.objects.create(resource_id='resource_id_test', title='toto', creator=creator, is_displayed=True, is_deleted=False) document2 = Training.objects.create(resource_id='resource_id_test2', title='toto', creator=other_user, is_displayed=True, is_deleted=False) document3 = Training.objects.create(resource_id='resource_id_test3', title='toto', creator=creator, is_displayed=True, is_deleted=False) total_records, results = GoogleDriveHelper.get_all_user_documents(creator, max_documents=1) self.assertEqual(total_records, 2) self.assertIn(document, results) self.assertNotIn(document2, results) self.assertNotIn(document3, results) def test_get_all_user_documents_max_documents_second_page(self): creator = User.objects.create_user('test-user') other_user = User.objects.create_user('other-user') document = Training.objects.create(resource_id='resource_id_test', title='toto', creator=creator, is_displayed=True, is_deleted=False) document2 = Training.objects.create(resource_id='resource_id_test2', title='toto', creator=other_user, is_displayed=True, is_deleted=False) document3 = Training.objects.create(resource_id='resource_id_test3', title='toto', creator=creator, is_displayed=True, is_deleted=False) total_records, results = GoogleDriveHelper.get_all_user_documents(creator, max_documents=1, id_page=2) self.assertEqual(total_records, 2) self.assertNotIn(document, results) self.assertNotIn(document2, results) self.assertIn(document3, results) def test_get_all_documents(self): creator = User.objects.create_user('test-user') other_user = User.objects.create_user('other-user') document = Training.objects.create(resource_id='resource_id_test', title='toto', creator=creator, is_displayed=True, is_deleted=False) document2 = Training.objects.create(resource_id='resource_id_test2', title='toto', creator=other_user, is_displayed=True, is_deleted=False) document3 = Training.objects.create(resource_id='resource_id_test3', title='toto', creator=creator, is_displayed=True, is_deleted=False) total_records, results = GoogleDriveHelper.get_all_documents() self.assertEqual(total_records, 3) self.assertIn(document, results) self.assertIn(document2, results) self.assertIn(document3, results) def test_get_all_documents_max_documents(self): creator = User.objects.create_user('test-user') other_user = User.objects.create_user('other-user') document = Training.objects.create(resource_id='resource_id_test', title='toto', creator=creator, is_displayed=True, is_deleted=False) document2 = Training.objects.create(resource_id='resource_id_test2', title='toto', creator=other_user, is_displayed=True, is_deleted=False) document3 = Training.objects.create(resource_id='resource_id_test3', title='toto', creator=creator, is_displayed=True, is_deleted=False) total_records, results = GoogleDriveHelper.get_all_documents(max_documents=1) self.assertEqual(total_records, 3) self.assertIn(document, results) self.assertNotIn(document2, results) self.assertNotIn(document3, results) def test_get_all_documents_max_documents_second_page(self): creator = User.objects.create_user('test-user') other_user = User.objects.create_user('other-user') document = Training.objects.create(resource_id='resource_id_test', title='toto', creator=creator, is_displayed=True, is_deleted=False) document2 = Training.objects.create(resource_id='resource_id_test2', title='toto', creator=other_user, is_displayed=True, is_deleted=False) document3 = Training.objects.create(resource_id='resource_id_test3', title='toto', creator=creator, is_displayed=True, is_deleted=False) total_records, results = GoogleDriveHelper.get_all_documents(max_documents=1, id_page=2) self.assertEqual(total_records, 3) self.assertNotIn(document, results) self.assertIn(document2, results) self.assertNotIn(document3, results) def test_build_document_json(self): creator_user = User.objects.create_user('test-user') cowriter_user = User.objects.create_user('cowriter-user') participant_user = User.objects.create_user('participant-user') document = Training.objects.create(resource_id='resource_id_test', title='toto', type='document', creator=creator_user, is_displayed=True, is_deleted=False) document.cowriters.add(cowriter_user) document.participants.add(participant_user) creator = ProfileHelper.get_user_json(creator_user) cowriters = [ProfileHelper.get_user_json(cowriter) for cowriter in document.cowriters.all()] participants = [{'id' : participant.id} for participant in document.participants.all()] json_expected = {'resource' : { 'id' : document.resource_id, 'type' : document.type, 'title' : unicode(document.title), 'updated' : document.last_updated}, 'creator' : creator, 'cowriters' : cowriters, 'participants': participants} self.assertEqual(GoogleDriveHelper._build_document_json(document), json_expected)
49.347015
239
0.710095
1,529
13,225
5.897319
0.096141
0.075413
0.069868
0.096484
0.761783
0.750915
0.745703
0.726517
0.715426
0.69247
0
0.010049
0.179811
13,225
268
240
49.347015
0.821241
0.002949
0
0.5
0
0
0.098869
0.004249
0
0
0
0
0.242574
1
0.09901
false
0
0.049505
0
0.158416
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
64a63b0d24a4c5c55dfc9676ed96138875891f26
184
py
Python
skdecide/builders/discrete_optimization/rcpsp/solver/__init__.py
galleon/bug-free-invention
37bcea112da39d1390ff2b30951b36ee5dbc0e6d
[ "MIT" ]
null
null
null
skdecide/builders/discrete_optimization/rcpsp/solver/__init__.py
galleon/bug-free-invention
37bcea112da39d1390ff2b30951b36ee5dbc0e6d
[ "MIT" ]
null
null
null
skdecide/builders/discrete_optimization/rcpsp/solver/__init__.py
galleon/bug-free-invention
37bcea112da39d1390ff2b30951b36ee5dbc0e6d
[ "MIT" ]
null
null
null
from .cp_solvers import CP_RCPSP_MZN, CP_MRCPSP_MZN from .rcpsp_lp_solver import LP_RCPSP_Solver, LP_RCPSP, LP_MRCPSP from .rcpsp_pile import PileSolverRCPSP, PileSolverRCPSP_Calendar
46
65
0.875
29
184
5.103448
0.413793
0.121622
0
0
0
0
0
0
0
0
0
0
0.086957
184
3
66
61.333333
0.880952
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
5
64d28de23962ec490336cab1bb52989ff14de3c6
96
py
Python
tests/api/mpi/config.py
calewis/sst-macro
067a2cb9f1606b652396b5dda6093096e5bcf2d7
[ "BSD-Source-Code" ]
1
2020-04-20T08:23:30.000Z
2020-04-20T08:23:30.000Z
tests/api/mpi/config.py
calewis/sst-macro
067a2cb9f1606b652396b5dda6093096e5bcf2d7
[ "BSD-Source-Code" ]
6
2020-04-20T08:22:20.000Z
2020-05-15T09:39:59.000Z
tests/api/mpi/config.py
calewis/sst-macro
067a2cb9f1606b652396b5dda6093096e5bcf2d7
[ "BSD-Source-Code" ]
null
null
null
import sst.macro sst.macro.loadLibrary("libsstmac_api_mpi_test.so") sst.macro.setupDeprecated()
24
50
0.833333
14
96
5.5
0.714286
0.311688
0
0
0
0
0
0
0
0
0
0
0.041667
96
3
51
32
0.836957
0
0
0
0
0
0.260417
0.260417
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
1
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
1
0
1
0
0
0
0
5
b3a8a88462c74f7cb6dfbb1b44dcbc3d1483ff69
99
py
Python
tgbotcallbackdata/__init__.py
Abstract-X/tgbotcallbackdata
4161d9bc695ac58477e0508032bc2efd12d2a2a4
[ "MIT" ]
null
null
null
tgbotcallbackdata/__init__.py
Abstract-X/tgbotcallbackdata
4161d9bc695ac58477e0508032bc2efd12d2a2a4
[ "MIT" ]
null
null
null
tgbotcallbackdata/__init__.py
Abstract-X/tgbotcallbackdata
4161d9bc695ac58477e0508032bc2efd12d2a2a4
[ "MIT" ]
null
null
null
from .builders import AbstractBuilder, JSONBuilder from .parsers import AbstractParser, JSONParser
33
50
0.858586
10
99
8.5
0.8
0
0
0
0
0
0
0
0
0
0
0
0.10101
99
2
51
49.5
0.955056
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
5
373d45f8a96bdcfb2e856afb82e814d2767e5e3f
68
py
Python
path_import.py
5A59/Zvm
d093558c567488472252a4f6f87cecbc0ec2bd38
[ "Apache-2.0" ]
485
2018-07-17T12:34:29.000Z
2022-03-19T20:02:25.000Z
path_import.py
5A59/Zvm
d093558c567488472252a4f6f87cecbc0ec2bd38
[ "Apache-2.0" ]
1
2019-05-28T07:48:54.000Z
2019-05-28T07:48:54.000Z
path_import.py
5A59/Zvm
d093558c567488472252a4f6f87cecbc0ec2bd38
[ "Apache-2.0" ]
54
2018-12-10T01:02:52.000Z
2021-08-31T03:32:31.000Z
# coding=utf-8 import sys import os sys.path.append([os.getcwd()])
11.333333
30
0.705882
12
68
4
0.75
0
0
0
0
0
0
0
0
0
0
0.016667
0.117647
68
5
31
13.6
0.783333
0.176471
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
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
1
0
1
0
1
0
0
5
3742ed1a018719d2dce1ce70a7feab2488f0b165
83
py
Python
gym_brt/envs/rendering/__init__.py
Data-Science-in-Mechanical-Engineering/vision-based-furuta-pendulum
84bfc5a089a2a8ace250f030f0298d45a3f9772f
[ "MIT" ]
null
null
null
gym_brt/envs/rendering/__init__.py
Data-Science-in-Mechanical-Engineering/vision-based-furuta-pendulum
84bfc5a089a2a8ace250f030f0298d45a3f9772f
[ "MIT" ]
null
null
null
gym_brt/envs/rendering/__init__.py
Data-Science-in-Mechanical-Engineering/vision-based-furuta-pendulum
84bfc5a089a2a8ace250f030f0298d45a3f9772f
[ "MIT" ]
null
null
null
from gym_brt.envs.rendering.qube_render import QubeRendererVpython as QubeRenderer
41.5
82
0.891566
11
83
6.545455
1
0
0
0
0
0
0
0
0
0
0
0
0.072289
83
1
83
83
0.935065
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
5
37447f54a1495edcad746c282742bf8ab998d3f7
32
py
Python
Software/devel/lib/python2.7/dist-packages/emotiv_epoc/srv/__init__.py
kaaninan/Centauri
0412c350b2bc7b88d6cf1685b49a984a86d841b0
[ "MIT" ]
1
2019-08-28T14:11:40.000Z
2019-08-28T14:11:40.000Z
Software/devel/lib/python2.7/dist-packages/emotiv_epoc/srv/__init__.py
kaaninan/Centauri
0412c350b2bc7b88d6cf1685b49a984a86d841b0
[ "MIT" ]
null
null
null
Software/devel/lib/python2.7/dist-packages/emotiv_epoc/srv/__init__.py
kaaninan/Centauri
0412c350b2bc7b88d6cf1685b49a984a86d841b0
[ "MIT" ]
null
null
null
from ._ChangeFrequency import *
16
31
0.8125
3
32
8.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.125
32
1
32
32
0.892857
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
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
1
0
1
0
0
0
0
5
37739ee84ec30da0eee8dc3827d7c2af23510a54
44
py
Python
models/cells/PC2015bForrest/__init__.py
HarshKhilawala/cerebmodels
d2a2f2ef947ef9dc23ddce6e55159240cd3233cb
[ "BSD-3-Clause" ]
null
null
null
models/cells/PC2015bForrest/__init__.py
HarshKhilawala/cerebmodels
d2a2f2ef947ef9dc23ddce6e55159240cd3233cb
[ "BSD-3-Clause" ]
9
2020-03-24T17:09:03.000Z
2021-05-17T16:11:17.000Z
models/cells/PC2015bForrest/__init__.py
myHBPwork/cerebmodels
371ea7f1bbe388f1acade17c7128b8ca6ab8fb7a
[ "BSD-3-Clause" ]
1
2021-05-21T03:08:41.000Z
2021-05-21T03:08:41.000Z
# ~/models/cells/PC2015bForrest/__init__.py
22
43
0.795455
5
44
6.2
1
0
0
0
0
0
0
0
0
0
0
0.095238
0.045455
44
1
44
44
0.642857
0.931818
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
37a7fd52d81a210de61e23ae3fcf184472024dcd
159
py
Python
day02/434.py
zsh2401/hello-python
6082071335123251cc653cf5667bce02031bb91f
[ "MulanPSL-1.0" ]
1
2020-08-07T12:05:40.000Z
2020-08-07T12:05:40.000Z
day02/434.py
zsh2401/hello-python
6082071335123251cc653cf5667bce02031bb91f
[ "MulanPSL-1.0" ]
null
null
null
day02/434.py
zsh2401/hello-python
6082071335123251cc653cf5667bce02031bb91f
[ "MulanPSL-1.0" ]
null
null
null
# squares = [] # for value in range(1,11): # squares.append(value ** 2); # print(squares); squares = [value ** 2 for value in range(1,11)] print(squares)
19.875
47
0.622642
24
159
4.125
0.416667
0.161616
0.20202
0.30303
0.363636
0.363636
0
0
0
0
0
0.062016
0.188679
159
8
48
19.875
0.705426
0.540881
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
0
1
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
1
0
5
37ace4fbac5573b3f944fe941d9da464ebb5f822
66
py
Python
polymera/bio/__init__.py
Edinburgh-Genome-Foundry/Polymera
2bccad046e2f705743079496c8fbe8e88ac3ece6
[ "MIT" ]
1
2020-10-12T12:12:32.000Z
2020-10-12T12:12:32.000Z
polymera/bio/__init__.py
Edinburgh-Genome-Foundry/Polymera
2bccad046e2f705743079496c8fbe8e88ac3ece6
[ "MIT" ]
null
null
null
polymera/bio/__init__.py
Edinburgh-Genome-Foundry/Polymera
2bccad046e2f705743079496c8fbe8e88ac3ece6
[ "MIT" ]
null
null
null
from .dna import DNAAlphabet from .protein import ProteinAlphabet
22
36
0.848485
8
66
7
0.75
0
0
0
0
0
0
0
0
0
0
0
0.121212
66
2
37
33
0.965517
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
5
37c160dad55cedf565e5d7db3afe891c40c49c9d
52
py
Python
models/__init__.py
kant/FRS-pytorch
7ff02ac405f0e66385466ecf720acfc0e4ec687d
[ "Apache-2.0" ]
null
null
null
models/__init__.py
kant/FRS-pytorch
7ff02ac405f0e66385466ecf720acfc0e4ec687d
[ "Apache-2.0" ]
null
null
null
models/__init__.py
kant/FRS-pytorch
7ff02ac405f0e66385466ecf720acfc0e4ec687d
[ "Apache-2.0" ]
null
null
null
from . import resnet from .model import build_model
17.333333
30
0.807692
8
52
5.125
0.625
0
0
0
0
0
0
0
0
0
0
0
0.153846
52
2
31
26
0.931818
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
5
806d52263eaaa269ceb3c55a7b61c0d5925606a4
20
py
Python
PDF Viewer/pdfviewer_test.py
james-elliott2017/Takeoff-AI
764ed6f0a4285760ab14422aedd61eb0f955ca78
[ "MIT" ]
null
null
null
PDF Viewer/pdfviewer_test.py
james-elliott2017/Takeoff-AI
764ed6f0a4285760ab14422aedd61eb0f955ca78
[ "MIT" ]
null
null
null
PDF Viewer/pdfviewer_test.py
james-elliott2017/Takeoff-AI
764ed6f0a4285760ab14422aedd61eb0f955ca78
[ "MIT" ]
null
null
null
#script for pdf GUI
10
19
0.75
4
20
3.75
1
0
0
0
0
0
0
0
0
0
0
0
0.2
20
1
20
20
0.9375
0.9
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
8072e99a26693fbcc5174c12250d4d4915cde27a
53
py
Python
transparency_epias/markets/__init__.py
ErenEla/transparencyEpias
ad74ea3568b29d7610898243b0b778adb10951d3
[ "MIT" ]
8
2020-05-14T12:10:19.000Z
2021-08-15T15:20:25.000Z
transparency_epias/markets/__init__.py
ErenEla/transparencyEpias
ad74ea3568b29d7610898243b0b778adb10951d3
[ "MIT" ]
2
2020-05-30T15:59:43.000Z
2020-06-25T12:39:14.000Z
transparency_epias/markets/__init__.py
ErenEla/transparencyEpias
ad74ea3568b29d7610898243b0b778adb10951d3
[ "MIT" ]
1
2020-10-30T03:27:21.000Z
2020-10-30T03:27:21.000Z
from transparency_epias.markets import dayaheadClient
53
53
0.924528
6
53
8
1
0
0
0
0
0
0
0
0
0
0
0
0.056604
53
1
53
53
0.96
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
5
8075d8eae7586c51a377ddd5414116503dbdb420
8,890
py
Python
ntcl_build_tools/unit_test_writer.py
cheshyre/ntcl-build
133bb44af6c7a2017431ca78fd0e60b91396322a
[ "BSD-3-Clause" ]
null
null
null
ntcl_build_tools/unit_test_writer.py
cheshyre/ntcl-build
133bb44af6c7a2017431ca78fd0e60b91396322a
[ "BSD-3-Clause" ]
null
null
null
ntcl_build_tools/unit_test_writer.py
cheshyre/ntcl-build
133bb44af6c7a2017431ca78fd0e60b91396322a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import os from .build_directory import BuildDirectory from .debug_writer import debug_print from .template_library import create_template_from_file class UnitTestBuilder(object): default_relative_template_directory = os.path.join('templates', 'test_templates') template_directory = template_path = os.path.join(os.path.dirname(__file__), default_relative_template_directory) unittest_template = os.path.join(template_directory, 'unittest_template.tpl') module_header_template = os.path.join(template_directory, 'package_test_module_header.tpl') run_header_template = os.path.join(template_directory, 'run_package_test_header.tpl') run_statements_template = os.path.join(template_directory, 'package_test_run_statements.tpl') ntcl_data_module_header_template = os.path.join(template_directory, 'unittest_ntcl-data-module_header.tpl') ntcl_data_run_template = os.path.join(template_directory, 'unittest_ntcl-data_run.tpl') ntcl_data_final_template = os.path.join(template_directory, 'unittest_ntcl-data_final.tpl') def __init__(this, info, names): this.info = info this.names = names def get_filename(this): if ( this.info.has_flags() ) : return 'unittest.F90' else: return 'unittest.f90' def get_module_header(this): s = '' module = None if "ntcl-algorithms" in this.info.uses or this.info.name=="ntcl-algorithms": module = "algorithms" elif "ntcl-tensor" in this.info.uses or this.info.name=="ntcl-tensor": module = "tensor" elif "ntcl-data" in this.info.uses or this.info.name=="ntcl-data": module = "data" if module is not None: s += create_template_from_file( this.ntcl_data_module_header_template).substitute(module=module) + "\n" if ( this.info.has_flags() ) : s += this.get_module_header_with_flags() else: s += this.get_module_header_without_flags(this.info.modules) return s def get_module_header_without_flags(this, names): s = '' for name in names: s += create_template_from_file( this.module_header_template).substitute(name=name) return s def get_module_header_with_flags(this): s = '' for flag in this.info.flags.keys(): if not this.info.flag_in_base_plugins(flag): continue s += f'#ifdef {flag}\n' s += this.get_module_header_for_flag(flag, this.info.base_plugins) s += '#endif\n\n' s += this.get_module_header_without_flags(this.info.modules) + "\n" for flag in this.info.flags.keys(): if not this.info.flag_in_plugins(flag): continue s += f'#ifdef {flag}\n' s += this.get_module_header_for_flag(flag, this.info.plugins) s += '#endif\n\n' if this.info.has_api(): s += this.get_module_header_without_flags(this.info.api) + "\n" return s[:-1] def get_module_header_for_flag(this, flag, names): s = '' for name in names: if ( this.info.module_in_flag(flag, name) ): s += create_template_from_file( this.module_header_template).substitute(name=name) return s def get_run_header(this): if ( this.info.has_flags() ) : return this.get_run_header_with_flags() else: return this.get_run_header_without_flags(this.info.modules) def get_run_header_without_flags(this, names): s = '' for name in names: s += create_template_from_file( this.run_header_template).substitute(name=name) return s def get_run_header_with_flags(this): s = '' for flag in this.info.flags.keys(): if not this.info.flag_in_base_plugins(flag): continue s += f'#ifdef {flag}\n' s += this.get_run_header_for_flag(flag, this.info.base_plugins) s += '#endif\n\n' s += this.get_run_header_without_flags(this.info.modules) + "\n" for flag in this.info.flags.keys(): if not this.info.flag_in_plugins(flag): continue s += f'#ifdef {flag}\n' s += this.get_run_header_for_flag(flag, this.info.plugins) s += '#endif\n\n' if this.info.has_api(): s += this.get_run_header_without_flags(this.info.api) + "\n" return s[:-1] def get_run_header_for_flag(this, flag, names): s = '' for name in names: if ( this.info.module_in_flag(flag, name) ): s += create_template_from_file( this.run_header_template).substitute(name=name) return s def get_run_statements(this): s = '' module = None if "ntcl-algorithms" in this.info.uses or this.info.name=="ntcl-algorithms": module = "algorithms" elif "ntcl-tensor" in this.info.uses or this.info.name=="ntcl-tensor": module = "tensor" elif "ntcl-data" in this.info.uses or this.info.name=="ntcl-data": module = "data" if module is not None: s += create_template_from_file( this.ntcl_data_run_template).substitute(module=module) + "\n" if ( this.info.has_flags() ) : s += this.get_run_statements_with_flags() else: s += this.get_run_statements_without_flags(this.info.modules) if module is not None: s += "\n" + create_template_from_file( this.ntcl_data_final_template).substitute(module=module) return s def get_run_statements_without_flags(this, names): s = '' for name in names: s += create_template_from_file( this.run_statements_template).substitute(name=name) + "\n" return s[:-1] def get_run_statements_with_flags(this): s = '' for flag in this.info.flags.keys(): if not this.info.flag_in_base_plugins(flag): continue s += f'#ifdef {flag}\n' s += this.get_run_statements_for_flag(flag, this.info.base_plugins) s += '#endif\n\n' s += this.get_run_statements_without_flags(this.info.modules) + "\n" for flag in this.info.flags.keys(): if not this.info.flag_in_plugins(flag): continue s += f'#ifdef {flag}\n' s += this.get_run_statements_for_flag(flag, this.info.plugins) s += '#endif\n\n' if this.info.has_api(): s += this.get_run_statements_without_flags(this.info.api) + "\n" return s[:-1] def get_run_statements_for_flag(this, flag, names): s = '' for name in names: if ( this.info.module_in_flag(flag, name) ): s += create_template_from_file( this.run_statements_template).substitute(name=name) + "\n" return s[:-1] def get_content(this): module_header = this.get_module_header() run_header = this.get_run_header() run_statements = this.get_run_statements() return create_template_from_file(this.unittest_template).substitute( module_header=module_header, run_header=run_header, run_statements=run_statements) class DistributedUnitTestBuilder(UnitTestBuilder): default_relative_template_directory = os.path.join('templates', 'test_templates') template_directory = template_path = os.path.join(os.path.dirname(__file__), default_relative_template_directory) module_header_template = os.path.join(template_directory, 'package_test_module_header.tpl') run_header_template = os.path.join(template_directory, 'run_package_test_header.tpl') unittest_template = os.path.join(template_directory, 'distributed_unittest_template.tpl') run_statements_template = os.path.join(template_directory, 'distributed_package_test_run_statements.tpl') class UnitTestWriter(object): def __init__(this, info, names, bdir): this.builder = UnitTestBuilder(info, names) this.bdir = bdir def write(this): this.bdir.create_directory_if_it_does_not_exist() this.bdir.create_makefile_if_it_does_not_exist() filename = os.path.join(this.bdir.path, this.builder.get_filename()) debug_print(f'Write unittest to: {filename}') with open(filename, 'w') as fh: fh.write(this.builder.get_content()) class DistributedUnitTestWriter(UnitTestWriter): def __init__(this, info, names, bdir): this.builder = DistributedUnitTestBuilder(info, names) this.bdir = bdir if __name__ == '__main__': names = ['test1', 'test2', 'test3'] bdir = BuildDirectory('test', './test', True, True) writer = UnitTestWriter(None, names, bdir) writer.write()
38.652174
117
0.64207
1,171
8,890
4.578992
0.084543
0.079075
0.02984
0.045132
0.806416
0.760724
0.740022
0.701604
0.67997
0.621969
0
0.00194
0.246232
8,890
229
118
38.820961
0.798239
0.002362
0
0.573864
0
0
0.092139
0.037442
0
0
0
0
0
1
0.102273
false
0
0.022727
0
0.3125
0.011364
0
0
0
null
0
0
0
1
1
1
1
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
5
2061eb0d3d1dc8431388e602c9c245c2a6409cf5
221
py
Python
embark/uploader/templatetags/filters.py
YulianaPoliakova/embark
5dc11114b2348ce1b580a9f18dd081018ac9d07f
[ "MIT" ]
149
2021-07-27T08:22:33.000Z
2022-03-26T23:25:20.000Z
embark/uploader/templatetags/filters.py
IoTSecurity101/embark
cb0336459bf8d2a59c54b001fc0f4bf126a9b986
[ "MIT" ]
105
2021-04-17T15:36:47.000Z
2021-07-13T19:48:09.000Z
embark/uploader/templatetags/filters.py
IoTSecurity101/embark
cb0336459bf8d2a59c54b001fc0f4bf126a9b986
[ "MIT" ]
23
2021-07-30T07:34:53.000Z
2022-03-24T12:37:51.000Z
from django import template from django.forms.fields import CheckboxInput register = template.Library() @register.filter(name='is_checkbox') def is_checkbox(value): return isinstance(value, CheckboxInput)
22.1
46
0.764706
26
221
6.423077
0.653846
0.11976
0
0
0
0
0
0
0
0
0
0
0.149321
221
9
47
24.555556
0.888298
0
0
0
0
0
0.051887
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0.166667
0.666667
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
1
1
1
0
0
5
20639e570dd5d33d8a91348d6bf7c332fb8fcbf5
37
py
Python
tests/__init__.py
bieniu/accuweather
97eba43ac837e016635116f851e180241694c17b
[ "Apache-2.0" ]
6
2020-09-18T14:57:24.000Z
2022-03-12T15:09:27.000Z
tests/__init__.py
bieniu/accuweather
97eba43ac837e016635116f851e180241694c17b
[ "Apache-2.0" ]
1
2021-03-14T14:34:59.000Z
2021-03-14T14:34:59.000Z
tests/__init__.py
bieniu/accuweather
97eba43ac837e016635116f851e180241694c17b
[ "Apache-2.0" ]
3
2021-03-14T13:34:54.000Z
2022-01-04T18:56:49.000Z
"""Tests for accuweather package."""
18.5
36
0.702703
4
37
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.108108
37
1
37
37
0.787879
0.810811
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
206da0dd987429ad8f3d11bca07a2b0235fe2f82
47
py
Python
www/speed/benchmarks/set_list_item.py
user202729/brython
f07ad4a3d69b752385357a30d18f671e9febf26d
[ "BSD-3-Clause" ]
3
2020-05-07T15:44:33.000Z
2021-11-13T15:15:55.000Z
www/speed/benchmarks/set_list_item.py
SungBeom/BBAM_Brython
107036ad20a94af1d43e5ce5bd7c73e6a470d687
[ "BSD-3-Clause" ]
2
2017-04-14T03:52:41.000Z
2017-04-14T04:02:06.000Z
www/speed/benchmarks/set_list_item.py
SungBeom/BBAM_Brython
107036ad20a94af1d43e5ce5bd7c73e6a470d687
[ "BSD-3-Clause" ]
2
2021-02-14T15:20:06.000Z
2021-11-13T15:15:58.000Z
a = [0] for i in range(1000000): a[0] = i
9.4
24
0.489362
10
47
2.3
0.7
0.173913
0
0
0
0
0
0
0
0
0
0.28125
0.319149
47
4
25
11.75
0.4375
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
20a61ca25f517112e1972b46dfbedec9916e7805
214
py
Python
generated-libraries/python/netapp/cifs/cifs_bc_version_control.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/cifs/cifs_bc_version_control.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/cifs/cifs_bc_version_control.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
class CifsBcVersionControl(basestring): """ Versions of CIFS BranchCache that are currently supported. """ @staticmethod def get_api_name(): return "cifs-bc-version-control"
21.4
62
0.64486
21
214
6.47619
0.952381
0
0
0
0
0
0
0
0
0
0
0
0.266355
214
9
63
23.777778
0.866242
0.271028
0
0
0
0
0.164286
0.164286
0
0
0
0
0
1
0.25
true
0
0
0.25
0.75
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
1
1
0
0
1
0
0
0
5
20e93cfbc74fb430a5835b774e100a345159bc0c
74
py
Python
frontend/src/gbuilder/Devices/UML_FreeDOS.py
ahmed-youssef/GINI
99c92a6e491bb17205b615b3dd8979895e3aa5bd
[ "MIT" ]
null
null
null
frontend/src/gbuilder/Devices/UML_FreeDOS.py
ahmed-youssef/GINI
99c92a6e491bb17205b615b3dd8979895e3aa5bd
[ "MIT" ]
null
null
null
frontend/src/gbuilder/Devices/UML_FreeDOS.py
ahmed-youssef/GINI
99c92a6e491bb17205b615b3dd8979895e3aa5bd
[ "MIT" ]
null
null
null
from UML import * class UML_FreeDOS(UML): device_type="UML_FreeDOS"
12.333333
29
0.72973
11
74
4.636364
0.636364
0.392157
0
0
0
0
0
0
0
0
0
0
0.175676
74
5
30
14.8
0.836066
0
0
0
0
0
0.150685
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
1
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
1
0
0
5
455f36375bbddd2676363fd03d53a17a15434d73
92
py
Python
backend/user/admin.py
feftio/eventer
dc222accea60c9d92cb5df8c1a9926b440c9ae2e
[ "MIT" ]
null
null
null
backend/user/admin.py
feftio/eventer
dc222accea60c9d92cb5df8c1a9926b440c9ae2e
[ "MIT" ]
null
null
null
backend/user/admin.py
feftio/eventer
dc222accea60c9d92cb5df8c1a9926b440c9ae2e
[ "MIT" ]
null
null
null
from django.contrib import admin from user import models admin.site.register(models.User)
15.333333
32
0.815217
14
92
5.357143
0.642857
0
0
0
0
0
0
0
0
0
0
0
0.119565
92
5
33
18.4
0.925926
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
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
1
0
1
0
1
0
0
5
4584bec0c4a7008d7b78d2d8a90569193a389091
134
py
Python
messagecounter/__init__.py
frawhst/gooncogs
2301ba28b58c4d039c5064a9a014503e224578a4
[ "MIT" ]
2
2021-10-06T08:05:01.000Z
2021-10-06T15:25:40.000Z
messagecounter/__init__.py
frawhst/gooncogs
2301ba28b58c4d039c5064a9a014503e224578a4
[ "MIT" ]
null
null
null
messagecounter/__init__.py
frawhst/gooncogs
2301ba28b58c4d039c5064a9a014503e224578a4
[ "MIT" ]
5
2021-09-11T23:44:44.000Z
2022-03-26T09:54:13.000Z
from redbot.core.bot import Red from .messagecounter import MessageCounter def setup(bot: Red): bot.add_cog(MessageCounter(bot))
22.333333
42
0.783582
19
134
5.473684
0.578947
0
0
0
0
0
0
0
0
0
0
0
0.126866
134
5
43
26.8
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.5
0
0.75
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
1
0
0
1
0
1
0
0
5
459a6ed0e3e6a3bd2158cdafd451ef679caba32b
171
py
Python
pyrez/exceptions/NoResult.py
CLeendert/Pyrez
598d72d8b6bb9484f0c42c6146a262817332c666
[ "MIT" ]
25
2018-07-26T02:32:14.000Z
2021-09-20T03:26:17.000Z
pyrez/exceptions/NoResult.py
CLeendert/Pyrez
598d72d8b6bb9484f0c42c6146a262817332c666
[ "MIT" ]
93
2018-08-26T11:44:25.000Z
2022-03-28T08:22:18.000Z
pyrez/exceptions/NoResult.py
CLeendert/Pyrez
598d72d8b6bb9484f0c42c6146a262817332c666
[ "MIT" ]
13
2018-09-05T09:38:07.000Z
2021-08-16T04:39:41.000Z
from .PyrezException import PyrezException class NoResult(PyrezException): def __init__(self, *args, **kwargs): PyrezException.__init__(self, *args, **kwargs)
34.2
54
0.736842
17
171
6.941176
0.588235
0.135593
0.20339
0.305085
0
0
0
0
0
0
0
0
0.146199
171
4
55
42.75
0.808219
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
1
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
1
0
0
0
0
0
0
0
5
45c64454dd39e8358bf585ff2447795ea12057dc
27
py
Python
datacatalog/views/__init__.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
null
null
null
datacatalog/views/__init__.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
2
2019-07-25T15:39:04.000Z
2019-10-21T15:31:46.000Z
datacatalog/views/__init__.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
1
2019-10-15T14:33:44.000Z
2019-10-15T14:33:44.000Z
from . import aggregations
13.5
26
0.814815
3
27
7.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.148148
27
1
27
27
0.956522
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
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
1
0
1
0
0
0
0
5
45cef87352f0a5dc122155f88faf78818669d5d8
92
py
Python
setup.py
WesleyMPG/infeng
236fb4fc2e93f66645e8dd769748ecea2a075d9c
[ "MIT" ]
null
null
null
setup.py
WesleyMPG/infeng
236fb4fc2e93f66645e8dd769748ecea2a075d9c
[ "MIT" ]
null
null
null
setup.py
WesleyMPG/infeng
236fb4fc2e93f66645e8dd769748ecea2a075d9c
[ "MIT" ]
1
2021-01-11T02:51:09.000Z
2021-01-11T02:51:09.000Z
from setuptools import setup, find_packages setup(name="infeng", packages=find_packages())
23
46
0.804348
12
92
6
0.666667
0.333333
0
0
0
0
0
0
0
0
0
0
0.086957
92
3
47
30.666667
0.857143
0
0
0
0
0
0.065217
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
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
1
0
1
0
0
0
0
5
b3037d21b0a3d9221febabe4ba4ecbd3c3f05d85
102,436
py
Python
ctypesgencore/parser/parsetab.py
luzfcb/ctypesgen
80dae4adcbec8ad5c67908767558d7f39b070903
[ "BSD-3-Clause" ]
3
2015-01-04T08:31:45.000Z
2015-02-09T21:18:49.000Z
ctypesgencore/parser/parsetab.py
luzfcb/ctypesgen
80dae4adcbec8ad5c67908767558d7f39b070903
[ "BSD-3-Clause" ]
1
2016-06-03T11:38:54.000Z
2016-10-14T15:28:52.000Z
ctypesgencore/parser/parsetab.py
luzfcb/ctypesgen
80dae4adcbec8ad5c67908767558d7f39b070903
[ "BSD-3-Clause" ]
3
2015-04-11T18:25:35.000Z
2018-10-19T21:46:10.000Z
# parsetab.py # This file is automatically generated. Do not edit. _lr_method = 'LALR' _lr_signature = 'XP\xd6":$v\xd1\xacQ\xe2\x1d\xc8\x10T\xa2' _lr_action_items = {'VOID':([118,261,15,238,171,3,50,37,359,33,170,24,68,197,284,328,361,12,2,141,39,29,73,173,232,288,222,60,166,8,21,281,82,135,65,168,239,0,13,388,27,278,4,16,333,187,231,9,53,280,279,354,164,169,74,18,1,360,138,243,117,131,36,48,61,236,270,52,35,23,57,31,134,206,287,88,5,6,357,10,32,38,19,66,59,26,340,40,228,67,124,28,55,],[-169,-219,-2,6,-142,6,-166,-130,-135,-243,6,-117,-138,-249,-145,6,-253,-118,6,6,-165,6,6,6,6,-251,6,6,-245,-124,-168,-137,6,-224,6,6,-170,-1,-134,-254,-167,-244,-164,-123,-156,6,-172,-125,-157,-143,6,-136,-218,6,-248,-131,6,-252,6,-220,-255,-171,-129,6,6,-173,-222,-104,-126,-3,-247,-242,-246,-250,6,6,-132,-122,-144,-119,-128,-133,-127,-139,-223,-120,-221,-121,-155,6,-174,6,6,]),'DIV_ASSIGN':([315,105,367,91,156,182,183,365,389,221,180,411,293,143,106,75,85,317,92,181,100,103,218,369,314,76,212,214,78,310,79,421,311,101,185,319,186,318,424,110,364,111,],[-7,-10,-25,-11,-4,-14,-44,-48,-32,-46,-15,-33,-21,252,-13,-20,-12,-26,-19,-16,-16,-4,-17,-23,-5,-18,-29,-28,-9,-8,-56,-34,-6,-22,-45,-24,-47,-27,-35,-43,-57,-49,]),'PP_DEFINE':([74,388,23,278,134,31,57,117,360,261,243,164,197,15,270,0,33,288,206,361,340,166,52,1,],[-248,-254,-3,-244,-246,-242,-247,-255,-252,-219,-220,-218,-249,-2,-222,-1,-243,-251,-250,-253,-221,-245,-104,11,]),'LE_OP':([78,302,310,100,214,293,301,79,311,212,297,103,307,298,364,75,182,369,218,76,91,186,110,101,92,299,86,185,97,105,156,300,183,143,106,221,309,296,411,181,84,367,111,318,180,389,312,87,319,421,98,365,315,85,317,306,313,308,314,424,],[-9,-67,-8,-16,-28,-21,-66,-56,-6,-29,-64,-4,-69,-59,-57,-20,-14,-23,-17,-18,-11,-47,-43,-22,-19,-61,-62,-45,202,-10,-4,-60,-44,-56,-13,-46,-70,-63,-33,-16,-65,-25,-49,-27,-15,-32,202,-68,-24,-34,-58,-48,-7,-12,-26,-71,202,-72,-5,-35,]),'(':([9,345,3,145,50,85,108,288,218,254,75,333,155,199,40,243,409,415,314,131,151,248,36,48,128,172,94,339,109,263,360,189,66,74,106,182,211,268,398,377,14,165,367,257,162,403,235,177,250,380,187,52,117,138,166,231,311,397,19,196,208,17,78,148,160,118,13,57,6,141,372,181,193,115,136,201,395,260,379,214,46,44,277,154,247,88,190,255,270,135,232,265,134,341,96,278,343,400,220,29,228,175,152,82,217,319,331,5,361,2,91,10,38,225,146,407,349,206,15,27,369,35,350,354,281,76,317,23,239,105,394,244,0,358,167,8,144,347,355,252,61,414,26,140,205,184,249,198,37,373,101,137,30,95,293,261,273,92,204,381,47,416,103,24,269,382,203,68,262,371,159,32,259,156,164,241,53,410,73,153,267,197,209,58,383,114,194,340,393,83,62,59,285,142,219,7,104,124,378,195,56,100,258,180,192,1,294,359,236,191,271,325,188,253,110,77,246,332,18,80,229,256,264,329,222,31,226,43,388,45,370,251,202,21,39,310,375,216,318,4,69,16,81,385,290,212,224,33,406,12,368,42,70,315,200,],[-125,-217,-111,-227,55,-12,-55,-251,-17,-90,-20,-156,-214,73,-121,-220,138,-234,-5,-171,265,-99,-129,73,232,17,-41,-237,-53,138,-252,73,-139,-248,-13,-14,73,138,-232,-197,17,17,-25,138,273,410,232,73,-98,-216,138,-104,-255,138,-245,-172,-6,-233,-127,-148,73,17,-9,138,-212,-169,-134,-247,-122,138,-195,-16,73,222,-211,305,138,-226,138,-28,-177,-176,138,-225,-93,-149,73,-94,-222,-224,232,138,-246,-241,-51,-244,138,-230,138,-109,-155,73,73,-147,138,-24,-196,-132,-253,-107,-11,-119,-133,73,258,138,-215,-250,-2,55,-23,-126,382,-136,-137,-18,-26,-3,-170,-10,-199,-240,-1,17,138,-124,-210,138,73,-92,138,-236,-120,-209,73,138,-100,73,-130,-202,-22,-213,17,-50,-21,-219,138,-19,73,138,71,-231,-4,-117,-239,138,73,-138,-228,-201,138,-128,-238,-4,-218,138,-157,138,138,267,138,-249,73,17,138,73,73,-221,-203,-52,-110,-223,73,138,73,-175,-54,-174,138,73,73,-16,138,-15,73,17,73,-135,-173,73,-229,-200,-146,-96,216,184,-95,328,-131,184,73,-97,138,73,222,-242,222,-112,-254,-179,73,-91,73,-168,-165,-8,-198,138,-27,-164,-180,-123,187,138,73,-29,328,-243,-235,-118,138,-108,-178,-7,-42,]),',':([182,218,183,274,300,29,90,405,39,100,372,70,313,185,318,107,387,325,386,186,212,346,311,120,176,38,24,65,371,75,234,4,45,106,323,293,66,92,356,352,315,161,304,110,402,321,111,228,13,245,301,235,40,384,93,143,314,118,236,413,367,423,239,2,85,421,331,8,296,127,180,5,338,224,322,348,87,373,50,76,422,16,316,86,128,123,101,364,102,103,7,68,281,307,424,163,9,35,396,133,342,214,306,332,122,178,308,394,375,221,26,231,78,6,401,275,392,377,282,299,43,389,403,297,418,276,317,46,97,283,344,129,36,336,365,53,42,419,98,124,156,64,312,353,292,21,333,359,10,335,391,181,62,72,113,417,19,32,12,27,116,174,18,44,303,411,334,390,369,298,37,63,351,393,404,69,363,3,399,105,130,84,125,302,91,420,149,309,319,131,233,324,286,354,320,79,310,],[-14,-17,-44,-114,-60,-109,-80,412,-165,-16,-195,-178,-74,-45,-27,-78,-151,-200,-154,-47,-29,263,-6,-160,291,-133,-117,-115,-201,-20,-185,-164,-179,-13,-85,-21,-139,-19,-153,-207,-7,-101,-83,-43,-206,368,-49,-155,-134,263,-66,-192,-121,-205,-84,-56,-5,-169,-173,-36,-25,412,-170,-107,-12,-34,-196,-124,-63,-183,-15,-132,-184,-193,263,263,-68,-202,-166,-18,-36,-123,-77,-62,-187,230,-22,-57,-76,-4,-175,-138,-137,-69,-35,-88,-125,-126,263,-115,-89,-28,-71,-194,-162,263,-72,-199,-198,-46,-120,-172,-9,-122,-208,-116,-87,-197,-150,-61,-112,-32,-39,-64,-38,-204,-26,-177,-73,-152,-102,237,-129,-189,-48,-157,-108,412,-58,-174,-4,165,-75,385,-81,-168,-156,-135,-119,-161,-31,-16,-110,-82,-86,263,-127,-128,-118,-167,-103,-256,-131,-176,-79,-33,-163,-36,-23,-59,-130,-113,263,-203,-37,-180,-257,-111,263,-10,238,-65,-188,-67,-11,-40,263,-70,-24,-171,-186,263,358,-136,-30,-56,-8,]),'LONG':([53,52,222,16,31,340,36,281,134,21,333,9,18,287,68,236,164,67,357,57,37,166,280,27,35,354,243,171,328,138,10,8,231,55,284,278,88,3,124,38,23,135,360,232,131,238,197,32,74,12,359,39,24,4,117,48,29,168,40,288,60,5,187,0,66,28,65,361,239,19,33,73,118,141,13,82,388,279,26,173,6,228,50,61,270,206,59,170,261,15,169,2,1,],[-157,-104,19,-123,-242,-221,-129,-137,-246,-168,-156,-125,-131,19,-138,-173,-218,19,-144,-247,-130,-245,-143,-167,-126,-136,-220,-142,19,19,-119,-124,-172,19,-145,-244,19,19,-174,-133,-3,-224,-252,19,-171,19,-249,-128,-248,-118,-135,-165,-117,-164,-255,19,19,19,-121,-251,19,-132,19,-1,-139,19,19,-253,-170,-127,-243,19,-169,19,-134,19,-254,19,-120,19,-122,-155,-166,19,-222,-250,-223,19,-219,-2,19,19,19,]),'ELLIPSIS':([238,],[337,]),'^':([315,156,298,296,91,97,314,100,79,212,312,76,369,424,293,110,301,299,182,90,317,311,75,303,107,389,85,316,306,367,214,308,365,313,180,307,310,102,78,111,87,92,292,185,221,183,302,106,300,181,98,143,364,319,297,309,218,101,318,86,421,411,84,105,103,186,],[-7,-4,-59,-63,-11,-73,-5,-16,-56,-29,-75,-18,-23,-35,-21,-43,-66,-61,-14,198,-26,-6,-20,-79,-78,-32,-12,-77,-71,-25,-28,-72,-48,-74,-15,-69,-8,-76,-9,-49,-68,-19,198,-45,-46,-44,-67,-13,-60,-16,-58,-56,-57,-24,-64,-70,-17,-22,-27,-62,-34,-33,-65,-10,-4,-47,]),'<':([301,212,421,105,313,186,101,365,221,315,106,364,389,314,312,181,367,297,299,91,309,78,103,156,75,293,87,310,182,296,218,183,306,97,185,79,319,369,86,298,85,98,411,311,424,300,317,100,308,307,318,84,214,302,92,180,110,111,143,76,],[-66,-29,-34,-10,203,-47,-22,-48,-46,-7,-13,-57,-32,-5,203,-16,-25,-64,-61,-11,-70,-9,-4,-4,-20,-21,-68,-8,-14,-63,-17,-44,-71,203,-45,-56,-24,-23,-62,-59,-12,-58,-33,-6,-35,-60,-26,-16,-72,-69,-27,-65,-28,-67,-19,-15,-43,-49,-56,-18,]),'GOTO':([347,136,137,164,407,409,414,244,148,262,268,269,160,260,261,395,241,243,400,135,398,159,270,61,271,416,341,140,406,349,259,141,397,415,154,264,345,155,59,340,383,144,380,145,381,379,339,52,],[139,-211,-213,-218,139,139,-236,-240,139,-228,139,-239,-212,-226,-219,139,139,-220,-230,-224,-232,139,-222,139,-229,-231,-241,-209,-235,-215,-238,139,-233,-234,-225,139,-217,-214,-223,-221,139,-210,-216,-227,139,139,-237,-104,]),'ENUM':([170,59,3,16,8,197,88,10,61,328,13,29,231,9,279,361,228,21,37,388,50,24,40,238,33,166,117,12,164,281,2,360,280,171,53,239,66,82,168,65,27,187,23,39,57,73,28,135,357,131,5,333,138,18,169,19,32,48,15,31,206,222,278,1,141,74,52,67,340,236,35,243,287,55,60,270,118,36,38,0,288,124,26,354,359,261,232,68,284,4,134,6,173,],[25,-223,25,-123,-124,-249,25,-119,25,25,-134,25,-172,-125,25,-253,-155,-168,-130,-254,-166,-117,-121,25,-243,-245,-255,-118,-218,-137,25,-252,-143,-142,-157,-170,-139,25,25,25,-167,25,-3,-165,-247,25,25,-224,-144,-171,-132,-156,25,-131,25,-127,-128,25,-2,-242,-250,25,-244,25,25,-248,-104,25,-221,-173,-126,-220,25,25,25,-222,-169,-129,-133,-1,-251,-174,-120,-136,-135,-219,25,-138,-145,-164,-246,-122,25,]),'PERIOD':([319,105,91,212,78,156,76,318,311,100,293,110,315,101,182,369,367,310,218,92,180,85,317,314,106,75,181,214,103,],[-24,-10,-11,-29,-9,-4,-18,-27,-6,-16,-21,213,-7,-22,-14,-23,-25,-8,-17,-19,-15,-12,-26,-5,-13,-20,-16,-28,-4,]),'PP_END_DEFINE':([310,311,323,306,362,281,100,36,101,116,19,91,103,319,98,115,107,292,88,46,371,307,84,332,289,331,32,5,308,369,316,6,364,110,359,97,111,44,312,373,303,315,86,180,302,183,223,377,221,196,16,7,318,99,226,182,389,290,296,314,4,69,106,375,18,372,181,411,35,309,70,37,313,424,8,75,82,367,393,228,48,49,301,218,39,298,325,79,421,102,38,185,45,175,13,93,105,68,392,113,365,394,76,66,9,90,212,297,299,186,293,317,300,304,224,89,188,85,333,72,92,87,214,78,354,53,],[-8,-6,-85,-71,388,-137,-16,-129,-22,-103,-127,-11,-4,-24,-58,-190,-78,-81,-149,-177,-201,-69,-65,-194,360,-196,-128,-132,-72,-23,-77,-122,-57,-43,-135,-73,-49,-176,-75,-202,-79,-7,-62,-15,-67,-44,-191,-197,-46,-148,-123,-175,-27,206,-192,-14,-32,361,-63,-5,-164,-180,-13,-198,-131,-195,-16,-33,-126,-70,-178,-130,-74,-35,-124,-20,-147,-25,-203,-155,74,117,-66,-17,-165,-59,-200,-56,-34,-76,-133,-45,-179,288,-134,-84,-10,-138,-87,-86,-48,-199,-18,-139,-125,-80,-29,-64,-61,-47,-21,-26,-60,-83,-193,197,-146,-12,-156,-82,-19,-68,-28,-9,-136,-157,]),'LEFT_OP':([110,299,302,309,308,103,92,76,389,75,306,111,87,86,365,91,364,424,180,106,311,105,143,181,98,212,218,317,156,101,367,369,100,310,421,182,85,186,298,318,314,79,411,185,296,300,183,214,221,315,293,307,319,84,297,301,78,],[-43,-61,-67,194,194,-4,-19,-18,-32,-20,194,-49,194,-62,-48,-11,-57,-35,-15,-13,-6,-10,-56,-16,-58,-29,-17,-26,-4,-22,-25,-23,-16,-8,-34,-14,-12,-47,-59,-27,-5,-56,-33,-45,-63,-60,-44,-28,-46,-7,-21,194,-24,-65,-64,-66,-9,]),'DOUBLE':([340,6,278,164,236,88,2,270,27,18,124,279,29,228,281,0,1,359,361,10,16,35,82,354,37,65,8,9,239,288,55,141,131,73,28,280,197,360,66,170,36,166,231,21,168,169,19,74,118,222,57,187,39,238,12,13,284,31,50,4,5,134,33,135,232,243,206,48,67,3,173,23,38,40,60,388,15,357,171,328,52,138,59,68,61,287,26,32,261,117,53,333,24,],[-221,-122,-244,-218,-173,36,36,-222,-167,-131,-174,36,36,-155,-137,-1,36,-135,-253,-119,-123,-126,36,-136,-130,36,-124,-125,-170,-251,36,36,-171,36,36,-143,-249,-252,-139,36,-129,-245,-172,-168,36,36,-127,-248,-169,36,-247,36,-165,36,-118,-134,-145,-242,-166,-164,-132,-246,-243,-224,36,-220,-250,36,36,36,36,-3,-133,-121,36,-254,-2,-144,-142,36,-104,36,-223,-138,36,36,-120,-128,-219,-255,-157,-156,-117,]),'INC_OP':([189,255,264,349,159,378,96,85,114,270,252,383,225,195,410,52,267,397,214,191,380,109,140,415,257,247,256,370,249,319,77,106,262,385,244,135,217,212,181,56,216,205,355,259,138,277,341,343,91,414,345,155,251,184,294,180,137,81,241,80,145,311,59,395,190,219,248,152,367,76,141,209,254,48,369,208,273,187,318,198,347,105,317,108,175,204,409,269,83,177,243,268,101,382,156,407,100,315,194,73,258,192,182,211,253,144,229,160,199,293,246,271,310,339,103,218,368,416,167,261,75,104,260,329,92,340,110,400,164,203,148,61,136,250,381,290,406,154,220,285,379,398,314,78,202,193,263,142,265,95,],[77,-94,77,-215,77,77,-51,-12,77,-222,-92,77,77,77,77,-104,77,-233,-28,77,-216,-53,-209,-234,77,-93,-97,77,-100,-24,77,-13,-228,77,-240,-224,77,-29,-16,77,77,77,77,-238,77,77,-241,77,-11,-236,-217,-214,-91,77,77,-15,-213,77,77,77,-227,-6,-223,77,77,77,-99,77,-25,-18,77,77,-90,77,-23,77,77,77,-27,77,77,-10,-26,-55,77,77,77,-239,-52,77,-220,77,-22,77,-4,77,-16,-7,77,77,77,77,-14,77,-96,-210,77,-212,77,-21,-95,-229,-8,-237,-4,-17,77,-231,77,-219,-20,-54,-226,77,-19,-221,214,-230,-218,77,77,77,-211,-98,77,77,-235,-225,77,77,77,-232,-5,-9,77,77,77,77,77,-50,]),'|':([316,421,105,301,297,212,186,293,317,107,365,310,296,182,85,308,309,78,369,411,300,100,101,313,97,185,319,92,315,180,86,292,311,307,84,389,111,143,76,72,181,314,364,303,75,299,87,218,306,91,79,103,102,298,156,98,183,318,90,221,110,106,424,312,214,367,302,304,],[-77,-34,-10,-66,-64,-29,-47,-21,-26,-78,-48,-8,-63,-14,-12,-72,-70,-9,-23,-33,-60,-16,-22,-74,-73,-45,-24,-19,-7,-15,-62,-81,-6,-69,-65,-32,-49,-56,-18,177,-16,-5,-57,-79,-20,-61,-68,-17,-71,-11,-56,-4,-76,-59,-4,-58,-44,-27,-80,-46,-43,-13,-35,-75,-28,-25,-67,177,]),'NE_OP':([421,105,221,186,182,297,293,78,317,365,313,212,85,309,369,296,302,86,316,101,97,185,306,300,100,411,180,319,389,92,315,84,311,367,181,307,301,76,310,218,111,143,102,364,298,98,318,314,424,308,75,299,110,87,106,156,91,79,214,103,183,312,],[-34,-10,-46,-47,-14,-64,-21,-9,-26,-48,-74,-29,-12,-70,-23,-63,-67,-62,208,-22,-73,-45,-71,-60,-16,-33,-15,-24,-32,-19,-7,-65,-6,-25,-16,-69,-66,-18,-8,-17,-49,-56,208,-57,-59,-58,-27,-5,-35,-72,-20,-61,-43,-68,-13,-4,-11,-56,-28,-4,-44,-75,]),'SHORT':([10,50,82,357,36,138,13,141,26,27,57,340,8,40,284,261,228,333,12,231,278,19,3,288,280,166,88,354,67,1,170,73,68,48,328,18,15,0,21,187,6,37,232,29,279,16,164,236,238,197,24,31,388,59,61,9,38,281,222,239,169,23,55,168,118,131,134,53,35,4,32,66,39,270,173,52,2,287,361,124,28,5,171,74,243,117,359,135,206,33,65,60,360,],[-119,-166,9,-144,-129,9,-134,9,-120,-167,-247,-221,-124,-121,-145,-219,-155,-156,-118,-172,-244,-127,9,-251,-143,-245,9,-136,9,9,9,9,-138,9,9,-131,-2,-1,-168,9,-122,-130,9,9,9,-123,-218,-173,9,-249,-117,-242,-254,-223,9,-125,-133,-137,9,-170,9,-3,9,9,-169,-171,-246,-157,-126,-164,-128,-139,-165,-222,9,-104,9,9,-253,-174,9,-132,-142,-248,-220,-255,-135,-224,-250,-243,9,9,-252,]),'CONSTANT':([152,257,345,61,368,407,144,155,263,190,140,184,343,349,225,251,398,211,341,217,160,203,294,409,381,138,416,199,137,269,271,205,290,378,192,59,73,370,220,395,52,270,154,267,253,260,259,273,250,83,191,258,195,208,248,202,142,104,194,410,347,193,136,159,329,80,339,177,216,262,261,198,385,209,175,96,406,355,187,141,167,340,249,277,383,380,382,48,219,241,414,254,400,204,247,81,256,246,415,77,135,148,56,252,285,189,109,244,229,255,268,264,145,108,397,243,164,265,379,95,114,],[78,78,-217,78,78,78,-210,-214,78,78,-209,78,78,-215,78,-91,-232,78,-241,78,-212,78,78,78,78,78,-231,78,-213,-239,-229,78,78,78,78,-223,78,78,78,78,-104,-222,-225,78,-96,-226,-238,78,-98,-52,78,78,78,78,-99,78,78,-54,78,78,78,78,-211,78,78,78,-237,78,78,-228,-219,78,78,78,78,-51,-235,78,78,78,78,-221,-100,78,78,-216,78,78,78,78,-236,-90,-230,78,-93,78,-97,-95,-234,78,-224,78,78,-92,78,78,-53,-240,78,-94,78,78,-227,-55,-233,-220,-218,78,78,-50,78,]),'DEC_OP':([52,397,192,190,252,258,285,395,268,81,219,246,92,250,416,95,400,409,249,270,78,256,310,343,269,254,407,259,263,76,85,314,140,379,109,208,257,108,145,144,277,155,311,271,199,294,198,175,182,193,253,135,243,340,204,367,220,247,187,203,398,152,211,378,177,156,75,385,225,241,218,217,355,194,96,105,184,154,244,382,137,255,414,260,61,48,181,103,164,59,191,262,114,202,229,212,267,205,369,91,73,100,261,56,83,410,167,273,159,248,349,110,142,341,264,104,293,315,180,370,141,101,381,195,380,345,347,329,290,317,251,339,216,80,265,318,383,138,406,160,415,189,368,136,77,319,214,106,148,209,],[-104,-233,80,80,-92,80,80,80,80,80,80,-95,-19,-98,-231,-50,-230,80,-100,-222,-9,-97,-8,80,-239,-90,80,-238,80,-18,-12,-5,-209,80,-53,80,80,-55,-227,-210,80,-214,-6,-229,80,80,80,80,-14,80,-96,-224,-220,-221,80,-25,80,-93,80,80,-232,80,80,80,80,-4,-20,80,80,80,-17,80,80,80,-51,-10,80,-225,-240,80,-213,-94,-236,-226,80,80,-16,-4,-218,-223,80,-228,80,80,80,-29,80,80,-23,-11,80,-16,-219,80,-52,80,80,80,80,-99,-215,212,80,-241,80,-54,-21,-7,-15,80,80,-22,80,80,-216,-217,80,80,80,-26,-91,-237,80,80,80,-27,80,80,-235,-212,-234,80,80,-211,80,-24,-28,-13,80,80,]),'STATIC':([340,281,141,4,360,206,118,74,37,131,28,53,288,3,57,359,135,0,6,124,228,29,9,27,333,239,31,12,66,8,40,164,197,361,39,61,35,1,134,388,24,18,222,354,168,238,32,13,38,36,68,59,16,328,10,60,5,166,270,232,19,2,21,278,52,15,117,261,26,23,55,33,65,236,50,243,231,],[-221,-137,10,-164,-252,-250,-169,-248,-130,-171,10,-157,-251,10,-247,-135,-224,-1,-122,-174,-155,10,-125,-167,-156,-170,-242,-118,-139,-124,-121,-218,-249,-253,-165,10,-126,10,-246,-254,-117,-131,10,-136,10,10,-128,-134,-133,-129,-138,-223,-123,10,-119,10,-132,-245,-222,10,-127,10,-168,-244,-104,-2,-255,-219,-120,-3,10,-243,10,-173,-166,-220,-172,]),'EQ_OP':([100,308,103,311,84,314,101,301,185,307,212,421,297,369,317,367,319,186,78,110,79,310,97,298,312,299,318,315,424,98,182,364,111,156,309,300,86,87,316,106,306,85,296,313,105,143,183,91,218,181,214,221,302,411,365,293,102,92,76,389,180,75,],[-16,-72,-4,-6,-65,-5,-22,-66,-45,-69,-29,-34,-64,-23,-26,-25,-24,-47,-9,-43,-56,-8,-73,-59,-75,-61,-27,-7,-35,-58,-14,-57,-49,-4,-70,-60,-62,-68,209,-13,-71,-12,-63,-74,-10,-56,-44,-11,-17,-16,-28,-46,-67,-33,-48,-21,209,-19,-18,-32,-15,-20,]),'SIZEOF':([80,343,203,254,192,73,268,247,345,368,191,96,187,219,253,81,249,339,95,415,406,381,209,407,269,199,190,264,290,380,263,410,152,259,77,217,167,56,265,195,141,148,137,341,204,270,193,398,378,244,383,400,379,114,241,255,246,285,145,142,229,164,294,347,144,250,414,409,251,395,220,48,397,216,225,160,267,194,262,205,189,140,184,260,349,177,59,109,370,329,211,108,83,136,138,52,261,256,61,252,135,248,154,277,104,159,273,155,416,257,208,340,271,355,385,198,175,258,382,243,202,],[81,81,81,-90,81,81,81,-93,-217,81,81,-51,81,81,-96,81,-100,-237,-50,-234,-235,81,81,81,-239,81,81,81,81,-216,81,81,81,-238,81,81,81,81,81,81,81,81,-213,-241,81,-222,81,-232,81,-240,81,-230,81,81,81,-94,-95,81,-227,81,81,-218,81,81,-210,-98,-236,81,-91,81,81,81,-233,81,81,-212,81,81,-228,81,81,-209,81,-226,-215,81,-223,-53,81,81,81,-55,-52,-211,81,-104,-219,-97,81,-92,-224,-99,-225,81,-54,81,81,-214,-231,81,81,-221,-229,81,81,81,81,81,81,-220,81,]),'+':([208,109,164,191,110,144,293,252,183,395,269,212,409,268,217,273,381,100,105,192,246,314,56,83,243,329,290,317,310,219,92,248,152,365,265,264,138,343,298,424,277,400,301,79,257,256,106,84,140,145,244,190,319,253,260,339,186,263,383,182,193,349,378,368,142,225,136,385,296,249,148,175,299,421,155,311,340,345,204,218,271,254,199,187,61,194,159,211,85,75,154,135,86,220,247,398,114,181,180,96,318,195,156,369,262,407,389,411,258,285,294,101,76,103,216,81,80,143,59,415,341,205,410,267,370,141,270,379,78,52,241,111,167,261,300,108,91,177,382,406,137,315,189,297,95,203,77,214,380,416,104,397,414,355,202,229,251,98,259,185,184,367,198,209,364,73,160,255,302,347,221,250,48,],[83,-53,-218,83,-43,-210,-21,-92,-44,83,-239,-29,83,83,83,83,83,-16,-10,83,-95,-5,83,-52,-220,83,83,-26,-8,83,-19,-99,83,-48,83,83,83,83,-59,-35,83,-230,189,-56,83,-97,-13,189,-209,-227,-240,83,-24,-96,-226,-237,-47,83,83,-14,83,-215,83,83,83,83,-211,83,-63,-100,83,83,-61,-34,-214,-6,-221,-217,83,-17,-229,-90,83,83,83,83,83,83,-12,-20,-225,-224,-62,83,-93,-232,83,-16,-15,-51,-27,83,-4,-23,-228,83,-32,-33,83,83,83,-22,-18,-4,83,83,83,-56,-223,-234,-241,83,83,83,83,83,-222,83,-9,-104,83,-49,83,-219,-60,-55,-11,83,83,-235,-213,-7,83,-64,-50,83,83,-28,-216,-231,-54,-233,-236,83,83,83,-91,-58,-238,-45,83,-25,83,83,-57,83,-212,-94,189,83,-46,-98,83,]),'UNSIGNED':([36,52,231,135,18,66,50,206,287,35,170,141,61,53,2,10,357,333,88,73,131,281,164,222,67,59,60,55,39,134,16,354,124,171,232,359,328,5,243,38,118,360,24,4,278,65,37,32,236,28,12,40,23,187,166,340,74,19,48,228,13,173,239,27,138,168,284,31,388,0,169,197,117,82,361,279,1,33,29,238,280,8,57,288,26,6,3,261,270,68,21,9,15,],[-129,-104,-172,-224,-131,-139,-166,-250,18,-126,18,18,18,-157,18,-119,-144,-156,18,18,-171,-137,-218,18,18,-223,18,18,-165,-246,-123,-136,-174,-142,18,-135,18,-132,-220,-133,-169,-252,-117,-164,-244,18,-130,-128,-173,18,-118,-121,-3,18,-245,-221,-248,-127,18,-155,-134,18,-170,-167,18,18,-145,-242,-254,-1,18,-249,-255,18,-253,18,18,-243,18,18,-143,-124,-247,-251,-120,-122,18,-219,-222,-138,-168,-125,-2,]),'/':([180,369,300,86,76,315,367,75,411,111,364,91,100,98,317,78,101,314,92,221,186,365,297,293,106,183,212,105,110,421,218,318,298,185,79,181,319,424,214,389,310,103,143,156,296,299,182,311,85,],[-15,-23,-60,193,-18,-7,-25,-20,-33,-49,-57,-11,-16,-58,-26,-9,-22,-5,-19,-46,-47,-48,193,-21,-13,-44,-29,-10,-43,-34,-17,-27,-59,-45,-56,-16,-24,-35,-28,-32,-8,-4,-56,-4,193,-61,-14,-6,-12,]),';':([113,42,245,333,90,50,359,264,38,116,63,98,312,145,342,367,301,124,212,409,131,5,182,75,4,270,88,52,309,66,397,13,12,240,356,303,317,148,21,424,298,2,311,158,185,118,218,271,231,10,319,76,282,214,314,36,302,299,243,172,261,84,144,260,35,398,380,181,64,395,269,339,268,26,316,242,105,306,160,276,341,82,135,296,241,79,384,414,30,196,136,143,87,3,244,107,421,19,292,186,262,155,29,354,389,402,349,392,163,37,106,8,408,140,85,154,111,416,65,343,369,91,286,386,364,161,68,156,61,275,323,407,164,411,180,27,18,293,387,379,308,53,137,97,58,43,159,141,281,347,221,142,258,236,102,62,59,101,110,365,147,20,283,157,40,297,315,310,304,340,400,345,274,300,183,344,78,9,381,103,6,313,239,86,415,259,133,16,93,92,307,39,383,318,24,406,100,72,188,228,149,32,],[-86,-108,341,-156,-80,-166,-135,145,-133,-103,-113,-58,-75,-227,-89,-25,-66,-174,-29,145,-171,-132,-14,-20,-164,-222,-149,-104,-70,-139,-233,-134,-118,339,-153,-79,-26,145,-168,-35,-59,-107,-6,271,-45,-169,-17,-229,-172,-119,-24,-18,-150,-28,-5,-129,-67,-61,-220,284,-219,-65,-210,-226,-126,-232,-216,-16,-106,145,-239,-237,145,-120,-77,271,-10,-71,-212,-204,-241,-147,-224,-63,145,-56,-205,-236,-105,-148,-211,-56,-68,-111,-240,-78,-34,-127,-81,-47,-228,-214,-109,-136,-32,-206,-215,-87,-88,-130,-13,-124,415,-209,-12,-225,-49,-231,-115,145,-23,-11,357,-154,-57,-101,-138,-4,145,-116,-85,145,-218,-33,-15,-167,-131,-21,-151,145,-72,-157,-213,-73,-105,-112,145,145,-137,145,-46,244,145,-173,-76,-110,-223,-22,-43,-48,259,52,-152,269,-121,-64,-7,-8,-83,-221,-230,-217,-114,-60,-44,-102,-9,-125,145,-4,-122,-74,-170,-62,-234,-238,-115,-123,-84,-19,-69,-165,145,-27,-117,-235,-16,-82,-146,-155,262,-128,]),'?':([85,111,302,369,91,103,107,100,365,323,92,221,101,364,97,367,93,183,303,317,110,313,411,218,180,309,102,98,185,301,86,181,90,78,318,314,212,310,143,306,319,315,84,298,389,312,300,182,311,307,421,76,72,299,424,113,75,87,304,316,292,105,214,79,106,296,308,297,186,293,156,],[-12,-49,-67,-23,-11,-4,-78,-16,-48,-85,-19,-46,-22,-57,-73,-25,-84,-44,-79,-26,-43,-74,-33,-17,-15,-70,-76,-58,-45,-66,-62,-16,-80,-9,-27,-5,-29,-8,-56,-71,-24,-7,-65,-59,-32,-75,-60,-14,-6,-69,-34,-18,-82,-61,-35,220,-20,-68,-83,-77,-81,-10,-28,-56,-13,-63,-72,-64,-47,-21,-4,]),'$end':([23,361,340,15,31,388,0,74,57,52,134,117,261,33,166,1,360,278,288,270,243,206,164,197,],[-3,-253,-221,-2,-242,-254,-1,-248,-247,-104,-246,-255,-219,-243,-245,0,-252,-244,-251,-222,-220,-250,-218,-249,]),'FOR':([347,141,340,135,400,155,144,268,52,164,243,397,136,260,345,61,137,406,262,244,339,407,241,160,159,271,154,395,145,381,264,59,259,383,379,415,341,148,398,380,349,409,416,140,414,261,269,270,],[146,146,-221,-224,-230,-214,-210,146,-104,-218,-220,-233,-211,-226,-217,146,-213,-235,-228,-240,-237,146,146,-212,146,-229,-225,146,-227,146,146,-223,-238,146,146,-234,-241,146,-232,-216,-215,146,-231,-209,-236,-219,-239,-222,]),'UNION':([228,65,173,238,68,40,37,284,278,287,13,357,3,23,333,236,24,354,164,1,21,232,66,38,170,222,36,12,280,243,39,57,328,33,141,0,8,29,60,135,35,82,169,16,231,48,67,10,206,270,5,15,32,61,73,18,361,28,52,59,281,134,55,124,27,168,197,6,261,239,53,340,9,118,19,288,4,74,50,138,388,171,31,279,360,26,2,166,131,88,187,117,359,],[-155,22,22,22,-138,-121,-130,-145,-244,22,-134,-144,22,-3,-156,-173,-117,-136,-218,22,-168,22,-139,-133,22,22,-129,-118,-143,-220,-165,-247,22,-243,22,-1,-124,22,22,-224,-126,22,22,-123,-172,22,22,-119,-250,-222,-132,-2,-128,22,22,-131,-253,22,-104,-223,-137,-246,22,-174,-167,22,-249,-122,-219,-170,-157,-221,-125,-169,-127,-251,-164,-248,-166,22,-254,-142,-242,22,-252,-120,22,-245,-171,22,22,-255,-135,]),'ELSE':([340,345,269,339,271,416,140,137,136,400,259,406,261,415,243,397,349,155,144,398,145,341,262,270,414,160,244,380,164,],[-221,-217,-239,-237,-229,-231,-209,-213,-211,409,-238,-235,-219,-234,-220,-233,-215,-214,-210,-232,-227,-241,-228,-222,-236,-212,-240,-216,-218,]),'[':([377,32,394,7,44,105,182,4,332,359,82,46,124,212,76,91,37,70,8,13,128,2,29,239,218,62,317,369,18,45,315,16,231,319,43,3,331,38,293,236,27,393,318,88,100,115,232,78,21,281,110,66,69,53,24,36,226,118,373,12,39,371,188,10,180,314,131,5,333,325,35,19,224,196,214,228,50,75,375,40,311,106,6,222,310,181,9,103,92,26,354,68,85,156,367,372,235,42,101,],[-197,-128,-199,-175,-176,-10,-14,-164,329,-135,-147,-177,-174,-29,-18,-11,-130,-178,-124,-134,225,-107,-109,-170,-17,-110,-26,-23,-131,-179,-7,-123,-172,-24,-112,-111,-196,-133,-21,-173,56,-203,-27,-149,-16,225,225,-9,-168,-137,217,-139,-180,-157,-117,-129,225,-169,-202,-118,-165,-201,-146,-119,-15,-5,-171,-132,-156,-200,-126,-127,329,-148,-28,-155,56,-20,-198,-121,-6,-13,-122,225,-8,-16,-125,-4,-19,-120,-136,-138,-12,-4,-25,-195,225,-108,-22,]),'OR_OP':([221,156,86,312,97,367,302,316,365,300,110,314,218,84,309,113,318,98,307,185,103,306,319,78,87,91,100,424,303,143,323,421,310,186,72,411,297,101,180,106,311,369,304,92,85,105,90,293,93,183,298,212,102,79,308,76,301,313,75,292,107,296,111,364,299,389,181,214,317,315,182,],[-46,-4,-62,-75,-73,-25,-67,-77,-48,-60,-43,-5,-17,-65,-70,219,-27,-58,-69,-45,-4,-71,-24,-9,-68,-11,-16,-35,-79,-56,-85,-34,-8,-47,-82,-33,-64,-22,-15,-13,-6,-23,-83,-19,-12,-10,-80,-21,-84,-44,-59,-29,-76,-56,-72,-18,-66,-74,-20,-81,-78,-63,-49,-57,-61,-32,-16,-28,-26,-7,-14,]),'SUB_ASSIGN':([293,105,79,186,367,421,318,221,218,424,111,78,411,317,92,311,389,185,91,314,310,103,180,315,365,76,183,214,182,85,156,101,212,143,110,369,364,181,106,100,75,319,],[-21,-10,-56,-47,-25,-34,-27,-46,-17,-35,-49,-9,-33,-26,-19,-6,-32,-45,-11,-5,-8,-4,-15,-7,-48,-18,-44,-28,-14,-12,-4,-22,-29,246,-43,-23,-57,-16,-13,-16,-20,-24,]),'XOR_ASSIGN':([182,156,91,311,78,183,85,100,369,365,389,315,185,424,76,214,143,310,92,221,110,106,421,79,319,218,101,411,75,186,180,367,111,103,317,364,105,181,314,318,212,293,],[-14,-4,-11,-6,-9,-44,-12,-16,-23,-48,-32,-7,-45,-35,-18,-28,248,-8,-19,-46,-43,-13,-34,-56,-24,-17,-22,-33,-20,-47,-15,-25,-49,-4,-26,-57,-10,-16,-5,-27,-29,-21,]),'INT':([2,29,32,61,27,59,88,82,117,65,16,124,3,239,236,9,288,131,360,359,24,1,28,141,279,232,281,55,66,8,135,170,197,354,53,164,118,280,231,238,48,284,18,37,361,13,388,31,357,0,73,52,169,21,173,38,40,206,287,270,5,33,36,15,12,19,74,26,278,39,50,57,68,138,134,166,60,168,67,6,261,35,340,222,187,228,4,243,10,328,171,23,333,],[35,35,-128,35,-167,-223,35,35,-255,35,-123,-174,35,-170,-173,-125,-251,-171,-252,-135,-117,35,35,35,35,35,-137,35,-139,-124,-224,35,-249,-136,-157,-218,-169,-143,-172,35,35,-145,-131,-130,-253,-134,-254,-242,-144,-1,35,-104,35,-168,35,-133,-121,-250,35,-222,-132,-243,-129,-2,-118,-127,-248,-120,-244,-165,-166,-247,-138,35,-246,-245,35,35,35,-122,-219,-126,-221,35,35,-155,-164,-220,-119,35,-142,-3,-156,]),'SIGNED':([31,6,53,168,50,28,287,284,0,36,2,170,35,27,124,38,360,10,57,32,281,134,131,359,333,171,59,118,67,13,173,388,3,88,166,23,328,288,138,354,222,5,66,73,236,74,48,278,24,141,239,279,37,197,65,12,9,243,39,68,187,15,206,357,280,55,261,82,169,29,4,1,228,19,16,40,26,270,231,60,8,340,238,21,117,18,361,61,33,135,164,52,232,],[-242,-122,-157,37,-166,37,37,-145,-1,-129,37,37,-126,-167,-174,-133,-252,-119,-247,-128,-137,-246,-171,-135,-156,-142,-223,-169,37,-134,37,-254,37,37,-245,-3,37,-251,37,-136,37,-132,-139,37,-173,-248,37,-244,-117,37,-170,37,-130,-249,37,-118,-125,-220,-165,-138,37,-2,-250,-144,-143,37,-219,37,37,37,-164,37,-155,-127,-123,-121,-120,-222,-172,37,-124,-221,37,-168,-255,-131,-253,37,-243,-224,-218,-104,37,]),'CONTINUE':([155,340,243,345,271,347,383,154,264,269,260,380,144,241,407,136,160,159,400,137,339,416,259,349,268,406,148,415,398,135,164,381,414,145,61,141,395,140,52,59,261,270,379,397,244,341,262,409,],[-214,-221,-220,-217,-229,147,147,-225,147,-239,-226,-216,-210,147,147,-211,-212,147,-230,-213,-237,-231,-238,-215,147,-235,147,-234,-232,-224,-218,147,-236,-227,147,147,147,-209,-104,-223,-219,-222,147,-233,-240,-241,-228,147,]),'MUL_ASSIGN':([311,105,76,318,100,317,389,365,183,314,78,91,181,315,182,85,369,424,185,319,364,106,310,75,411,79,214,143,180,221,111,421,92,103,212,186,101,110,156,293,367,218,],[-6,-10,-18,-27,-16,-26,-32,-48,-44,-5,-9,-11,-16,-7,-14,-12,-23,-35,-45,-24,-57,-13,-8,-20,-33,-56,-28,251,-15,-46,-49,-34,-19,-4,-29,-47,-22,-43,-4,-21,-25,-17,]),'{':([341,52,416,379,397,124,159,409,136,407,164,66,41,243,395,137,398,339,271,381,241,145,380,261,144,415,269,383,262,340,406,34,135,414,140,168,264,53,141,349,270,154,27,60,148,25,68,131,61,167,260,21,385,268,118,28,231,347,236,59,155,400,345,22,277,160,239,259,244,65,50,],[-241,-104,-231,61,-233,-174,61,61,-211,61,-218,169,67,-220,61,-213,-232,-237,-229,61,61,-227,-216,-219,-210,-234,-239,61,-228,-221,-235,-140,-224,-236,-209,61,61,119,61,-215,-222,-225,-167,61,61,54,173,-171,61,277,-226,-168,277,61,-169,61,-172,61,-173,-223,-214,-230,-217,-141,277,-212,-170,-238,-240,61,-166,]),'RIGHT_OP':([315,86,319,369,307,78,311,365,212,317,300,308,309,296,297,301,367,293,105,185,143,424,186,85,103,91,182,183,87,421,75,79,221,314,318,306,218,310,156,364,214,299,106,110,111,98,389,100,180,92,411,84,298,101,302,76,181,],[-7,-62,-24,-23,195,-9,-6,-48,-29,-26,-60,195,195,-63,-64,-66,-25,-21,-10,-45,-56,-35,-47,-12,-4,-11,-14,-44,195,-34,-20,-56,-46,-5,-27,195,-17,-8,-4,-57,-28,-61,-13,-43,-49,-58,-32,-16,-15,-19,-33,-65,-59,-22,-67,-18,-16,]),'REGISTER':([168,2,13,118,39,360,4,68,340,261,52,231,238,74,53,333,206,0,124,361,36,135,359,65,33,131,31,6,9,141,59,24,1,388,40,8,27,5,278,66,38,28,197,354,61,37,239,35,29,270,21,55,23,3,243,166,26,281,10,60,117,328,228,232,134,50,57,32,12,19,164,16,15,18,288,222,236,],[40,40,-134,-169,-165,-252,-164,-138,-221,-219,-104,-172,40,-248,-157,-156,-250,-1,-174,-253,-129,-224,-135,40,-243,-171,-242,-122,-125,40,-223,-117,40,-254,-121,-124,-167,-132,-244,-139,-133,40,-249,-136,40,-130,-170,-126,40,-222,-168,40,-3,40,-220,-245,-120,-137,-119,40,-255,40,-155,40,-246,-166,-247,-128,-118,-127,-218,-123,-2,-131,-251,40,-173,]),'RIGHT_ASSIGN':([221,185,183,218,182,364,369,367,78,186,156,111,389,315,91,421,318,310,105,103,110,75,92,79,181,100,106,76,143,424,365,317,311,293,212,319,101,214,85,180,314,411,],[-46,-45,-44,-17,-14,-57,-23,-25,-9,-47,-4,-49,-32,-7,-11,-34,-27,-8,-10,-4,-43,-20,-19,-56,-16,-16,-13,-18,256,-35,-48,-26,-6,-21,-29,-24,-22,-28,-12,-15,-5,-33,]),'DEFAULT':([159,52,155,407,345,140,381,141,260,416,154,383,397,341,379,380,59,269,339,136,270,137,271,164,160,145,241,414,243,395,262,406,261,259,61,340,400,268,135,349,415,148,244,347,144,264,398,409,],[150,-104,-214,150,-217,-209,150,150,-226,-231,-225,150,-233,-241,150,-216,-223,-239,-237,-211,-222,-213,-229,-218,-212,-227,150,-236,-220,150,-228,-235,-219,-238,150,-221,-230,150,-224,-215,-234,150,-240,150,-210,150,-232,150,]),'CHAR':([206,15,18,164,4,13,280,21,55,29,135,26,60,361,197,37,278,228,68,141,360,48,66,12,1,39,138,288,239,169,5,279,9,187,23,354,82,236,65,24,222,284,31,73,74,166,333,2,67,118,57,3,170,171,88,28,134,32,8,340,59,35,287,173,131,281,52,6,10,243,0,231,359,388,232,27,238,328,124,50,168,38,16,261,36,117,33,53,357,61,270,19,40,],[-250,-2,-131,-218,-164,-134,-143,-168,8,8,-224,-120,8,-253,-249,-130,-244,-155,-138,8,-252,8,-139,-118,8,-165,8,-251,-170,8,-132,8,-125,8,-3,-136,8,-173,8,-117,8,-145,-242,8,-248,-245,-156,8,8,-169,-247,8,8,-142,8,8,-246,-128,-124,-221,-223,-126,8,8,-171,-137,-104,-122,-119,-220,-1,-172,-135,-254,8,-167,8,8,-174,-166,8,-133,-123,-219,-129,-255,-243,-157,-144,8,-222,-127,-121,]),'WHILE':([244,160,347,137,269,259,341,52,136,145,164,415,349,397,339,379,380,59,264,409,345,159,141,148,155,272,243,260,398,140,154,406,381,61,270,407,400,241,268,340,383,414,135,416,262,271,261,144,395,],[-240,-212,151,-213,-239,-238,-241,-104,-211,-227,-218,-234,-215,-233,-237,151,-216,-223,151,151,-217,151,151,151,-214,350,-220,-226,-232,-209,-225,-235,151,151,-222,151,-230,151,151,-221,151,-236,-224,-231,-228,-229,-219,-210,151,]),'EXTERN':([4,1,31,23,117,29,270,361,32,21,281,59,333,65,57,359,206,124,68,236,328,66,261,15,26,50,232,6,243,53,164,197,24,118,36,238,12,33,222,134,40,60,228,61,16,5,38,2,19,231,3,340,0,27,28,360,55,9,39,131,37,288,10,8,239,74,278,35,18,135,141,168,13,354,388,166,52,],[-164,12,-242,-3,-255,12,-222,-253,-128,-168,-137,-223,-156,12,-247,-135,-250,-174,-138,-173,12,-139,-219,-2,-120,-166,12,-122,-220,-157,-218,-249,-117,-169,-129,12,-118,-243,12,-246,-121,12,-155,12,-123,-132,-133,12,-127,-172,12,-221,-1,-167,12,-252,12,-125,-165,-171,-130,-251,-119,-124,-170,-248,-244,-126,-131,-224,12,12,-134,-136,-254,-245,-104,]),'RETURN':([416,347,52,406,136,260,241,164,383,339,264,340,145,148,159,269,135,244,262,414,141,61,271,398,379,415,243,400,381,341,155,59,259,349,397,407,160,140,345,137,144,395,409,154,380,270,268,261,],[-231,142,-104,-235,-211,-226,142,-218,142,-237,142,-221,-227,142,142,-239,-224,-240,-228,-236,142,142,-229,-232,142,-234,-220,-230,142,-241,-214,-223,-238,-215,-233,142,-212,-209,-217,-213,-210,142,142,-225,-216,-222,142,-219,]),'__ASM__':([385,381,167,407,164,135,269,416,258,144,175,398,202,382,260,109,285,368,252,397,160,198,229,345,137,257,104,211,80,48,189,191,380,370,96,148,378,290,249,203,261,246,263,177,108,243,410,340,190,400,355,253,192,219,136,277,81,244,141,138,270,294,339,329,262,264,414,383,379,154,114,217,140,56,254,209,341,267,61,343,152,406,409,83,59,268,250,52,220,216,241,347,271,395,415,187,247,73,155,204,225,255,193,349,142,199,208,184,259,145,194,251,77,248,265,195,95,273,256,205,159,],[94,94,94,94,-218,-224,-239,-231,94,-210,94,-232,94,94,-226,-53,94,94,-92,-233,-212,94,94,-217,-213,94,-54,94,94,94,94,94,-216,94,-51,94,94,94,-100,94,-219,-95,94,94,-55,-220,94,-221,94,-230,94,-96,94,94,-211,94,94,-240,94,94,-222,94,-237,94,-228,94,-236,94,94,-225,94,94,-209,94,-90,94,-241,94,94,94,94,-235,94,-52,-223,94,-98,-104,94,94,94,94,-229,94,-234,94,-93,94,-214,94,94,-94,94,-215,94,94,94,94,-238,-227,94,-91,94,-99,94,94,-50,94,-97,94,94,]),'CASE':([381,395,259,341,345,241,339,409,379,137,380,159,136,269,154,270,145,397,264,164,243,135,148,59,340,260,144,271,407,140,141,244,52,414,155,416,398,400,262,268,160,406,349,347,383,61,415,261,],[152,152,-238,-241,-217,152,-237,152,152,-213,-216,152,-211,-239,-225,-222,-227,-233,152,-218,-220,-224,152,-223,-221,-226,-210,-229,152,-209,152,-240,-104,-236,-214,-231,-232,-230,-228,152,-212,-235,-215,152,152,152,-234,-219,]),'PP_DEFINE_MACRO_NAME':([11,],[47,]),'&':([205,98,106,256,52,329,214,407,136,91,308,202,95,148,156,381,318,211,219,187,306,191,198,260,349,315,184,192,385,290,140,181,257,142,145,84,92,277,285,254,154,340,312,249,216,409,241,319,220,389,382,195,251,300,313,83,261,398,316,185,78,355,271,73,270,416,424,167,104,85,370,255,177,341,317,218,262,379,248,189,383,135,252,209,314,77,48,108,293,301,194,79,364,225,310,298,87,183,190,59,406,414,307,250,61,294,56,253,229,369,411,299,246,267,160,365,111,421,114,311,180,243,264,199,378,144,103,368,203,339,347,102,164,258,143,367,96,193,296,107,75,247,268,137,309,141,101,109,400,395,343,80,244,265,273,212,397,100,186,302,217,410,204,97,105,175,182,76,269,138,86,208,155,81,221,159,415,345,259,152,297,263,380,110,303,],[95,-58,-13,-97,-104,95,-28,95,-211,-11,-72,95,-50,95,-4,95,-27,95,95,95,-71,95,95,-226,-215,-7,95,95,95,95,-209,-16,95,95,-227,-65,-19,95,95,-90,-225,-221,-75,-100,95,95,95,-24,95,-32,95,95,-91,-60,-74,-52,-219,-232,-77,-45,-9,95,-229,95,-222,-231,-35,95,-54,-12,95,-94,95,-241,-26,-17,-228,95,-99,95,95,-224,-92,95,-5,95,95,-55,-21,-66,95,-56,-57,95,-8,-59,-68,-44,95,-223,-235,-236,-69,-98,95,95,95,-96,95,-23,-33,-61,-95,95,-212,-48,-49,-34,95,-6,-15,-220,95,95,95,-210,-4,95,95,-237,95,-76,-218,95,-56,-25,-51,95,-63,211,-20,-93,95,-213,-70,95,-22,-53,-230,95,95,95,-240,95,95,-29,-233,-16,-47,-67,95,95,95,-73,-10,95,-14,-18,-239,95,-62,95,-214,95,-46,95,-234,-217,-238,95,-64,95,-216,-43,211,]),'*':([52,45,208,278,195,300,268,214,385,204,185,290,191,277,2,182,270,260,219,187,104,206,311,145,196,297,256,247,56,81,218,148,192,141,199,134,109,271,39,361,202,10,389,414,319,44,12,249,264,31,255,341,315,232,407,251,343,177,4,314,269,288,23,262,26,250,0,205,243,198,166,137,261,48,15,105,86,35,140,197,383,381,257,354,76,263,193,379,40,8,98,285,59,416,221,241,68,36,378,128,398,294,58,13,265,19,156,380,6,143,367,92,293,299,267,79,85,18,5,24,229,222,136,78,298,1,225,7,259,349,317,164,310,411,29,110,281,100,360,246,160,217,186,77,96,329,115,83,220,188,38,395,175,9,370,152,111,82,318,69,88,37,43,365,400,180,333,30,254,135,359,33,406,409,369,42,228,415,16,358,3,61,364,345,339,211,347,66,252,273,53,410,73,216,165,184,209,32,114,388,382,101,75,244,212,62,340,167,138,144,368,103,355,189,106,74,253,80,296,17,172,424,258,159,108,57,194,95,181,155,421,142,117,91,397,183,248,203,154,190,],[-104,-179,96,-244,96,-60,96,-28,96,96,-45,96,96,96,-107,-14,-222,-226,96,96,-54,-250,-6,-227,-148,191,-97,-93,96,96,-17,96,96,96,96,-246,-53,-229,-165,-253,96,-119,-32,-236,-24,7,-118,-100,96,-242,-94,-241,-7,7,96,-91,96,96,-164,-5,-239,-251,-3,-228,-120,-98,-1,96,-220,96,-245,-213,-219,96,-2,-10,191,-126,-209,-249,96,96,96,-136,-18,96,96,96,-121,-124,-58,96,-223,-231,-46,96,-138,-129,96,7,-232,96,7,-134,96,-127,-4,-216,-122,-56,-25,-19,-21,-61,96,-56,-12,-131,-132,-117,96,7,-211,-9,-59,7,96,7,-238,-215,-26,-218,-8,-33,-109,-43,-137,-16,-252,-95,-212,96,-47,96,-51,96,7,-52,96,-146,-133,96,96,-125,96,96,-49,-147,-27,-180,-149,-130,-112,-48,-230,-15,-156,7,-90,-224,-135,-243,-235,96,-23,-108,-155,-234,-123,7,-111,96,-57,-217,-237,96,96,-139,-92,96,-157,96,96,96,7,96,96,-128,96,-254,96,-22,-20,-240,-29,-110,-221,96,96,-210,96,-4,96,96,-13,-248,-96,96,191,7,7,-35,96,96,-55,-247,96,-50,-16,-214,-34,96,-255,-11,-233,-44,-99,96,-225,96,]),'SWITCH':([414,380,270,155,145,340,379,59,261,262,406,144,241,395,398,409,160,243,61,349,381,407,397,148,154,264,141,268,415,383,259,400,135,269,271,347,137,345,159,341,244,416,339,260,136,140,164,52,],[-236,-216,-222,-214,-227,-221,153,-223,-219,-228,-235,-210,153,153,-232,153,-212,-220,153,-215,153,153,-233,153,-225,153,153,153,-234,153,-238,-230,-224,-239,-229,153,-213,-217,153,-241,-240,-231,-237,-226,-211,-209,-218,-104,]),'AND_ASSIGN':([421,389,111,311,318,181,143,367,110,76,411,293,186,156,319,106,314,221,183,365,185,78,103,182,180,100,310,101,214,369,91,212,364,75,315,85,218,424,105,79,317,92,],[-34,-32,-49,-6,-27,-16,250,-25,-43,-18,-33,-21,-47,-4,-24,-13,-5,-46,-44,-48,-45,-9,-4,-14,-15,-16,-8,-22,-28,-23,-11,-29,-57,-20,-7,-12,-17,-35,-10,-56,-26,-19,]),'IDENTIFIER':([9,246,160,217,82,209,194,257,83,55,23,0,259,243,164,16,141,88,215,281,128,134,58,33,5,144,329,38,175,370,345,59,333,108,24,62,1,138,77,397,216,409,19,42,17,22,172,159,211,360,37,43,400,66,254,268,252,145,207,273,225,349,53,382,188,190,3,155,294,167,142,104,196,406,368,96,248,220,195,74,61,73,152,54,165,191,361,114,10,388,253,199,358,381,264,139,31,203,154,80,340,270,232,244,52,25,398,347,189,414,192,12,184,187,198,137,213,35,45,117,202,177,208,269,247,81,262,95,70,258,36,204,210,251,18,57,343,48,140,197,13,44,249,263,260,277,255,230,288,34,407,15,219,109,39,14,41,26,30,4,235,68,278,56,148,250,379,383,385,237,205,271,2,290,261,267,119,410,339,206,341,229,256,354,380,136,193,395,40,285,8,7,6,265,166,416,46,69,241,355,378,135,359,32,29,228,415,],[-125,-95,-212,103,-147,103,103,103,-52,125,-3,-1,-238,-220,-218,-123,156,-149,318,-137,21,-246,21,-243,-132,-210,103,-133,103,103,-217,-223,-156,-55,-117,-110,21,103,103,-233,103,156,-127,-108,21,-141,21,156,103,-252,-130,-112,-230,-139,-90,156,-92,-227,103,103,103,-215,-157,103,-146,103,-111,-214,103,103,103,-54,-148,-235,103,-51,-99,103,103,-248,156,103,103,122,21,103,-253,103,-119,-254,-96,103,21,156,156,240,-242,103,-225,103,-221,-222,21,-240,-104,53,-232,156,103,-236,103,-118,103,103,103,-213,317,-126,-179,-255,103,103,103,-239,-93,103,-228,-50,-178,103,-129,103,103,-91,-131,-247,103,103,-209,-249,-134,-176,-100,103,-226,103,-94,122,-251,-140,156,-2,103,-53,-165,21,68,-120,21,-164,21,-138,-244,103,156,-98,156,156,103,336,103,-229,-107,103,-219,103,122,103,-237,-250,-241,103,-97,-136,-216,-211,103,156,-121,103,-124,-175,-122,103,-245,-231,-177,-180,156,103,103,-224,-135,-128,-109,-155,-234,]),'ADD_ASSIGN':([424,181,369,78,91,218,156,293,185,79,182,315,85,221,314,100,111,143,214,367,92,180,364,421,105,212,317,103,186,183,75,365,310,101,411,106,311,318,319,389,110,76,],[-35,-16,-23,-9,-11,-17,-4,-21,-45,-56,-14,-7,-12,-46,-5,-16,-49,255,-28,-25,-19,-15,-57,-34,-10,-29,-26,-4,-47,-44,-20,-48,-8,-22,-33,-13,-6,-27,-24,-32,-43,-18,]),'>':([300,298,85,221,296,389,183,98,79,181,424,87,411,421,143,367,105,307,364,309,313,317,111,182,186,106,314,306,318,312,214,369,91,110,308,365,315,310,100,302,156,75,319,311,97,101,180,92,86,76,299,218,297,84,301,293,103,212,185,78,],[-60,-59,-12,-46,-63,-32,-44,-58,-56,-16,-35,-68,-33,-34,-56,-25,-10,-69,-57,-70,205,-26,-49,-14,-47,-13,-5,-71,-27,205,-28,-23,-11,-43,-72,-48,-7,-8,-16,-67,-4,-20,-24,-6,205,-22,-15,-19,-62,-18,-61,-17,-64,-65,-66,-21,-4,-29,-45,-9,]),'PP_MACRO_PARAM':([83,263,207,414,144,385,225,220,48,211,104,382,108,368,370,277,56,254,192,290,216,205,138,61,410,250,202,381,71,91,155,142,219,378,256,141,329,258,189,195,199,137,218,52,261,184,270,114,265,249,269,341,260,229,135,398,241,204,264,257,190,268,380,217,406,73,154,416,285,167,77,187,96,182,349,177,109,253,259,148,210,246,112,345,267,339,262,409,343,395,81,340,415,255,193,145,198,271,355,181,152,175,383,85,400,194,397,106,273,247,209,80,243,160,75,180,191,379,244,251,203,136,347,291,140,252,407,100,208,164,95,59,248,159,294,],[-52,100,310,-236,-210,100,100,100,100,100,-54,100,-55,100,100,100,100,-90,100,100,100,100,100,100,100,-98,100,100,174,-11,-214,100,100,100,-97,100,100,100,100,100,100,-213,-17,-104,-219,100,-222,100,100,-100,-239,-241,-226,100,-224,-232,100,100,100,100,100,100,-216,100,-235,100,-225,-231,100,100,100,100,-51,-14,-215,100,-53,-96,-238,100,315,-95,218,-217,100,-237,-228,100,100,100,100,-221,-234,-94,100,-227,100,-229,100,-16,100,100,100,-12,-230,100,-233,-13,100,-93,100,100,-220,-212,181,-15,100,100,-240,-91,100,-211,100,363,-209,-92,100,-16,100,-218,-50,-223,-99,100,100,]),'GE_OP':([110,84,297,186,214,79,106,317,302,78,306,221,367,312,300,182,156,98,180,87,299,181,411,103,301,389,307,424,97,75,364,111,86,308,293,76,315,212,314,183,101,310,313,296,92,143,311,100,218,91,319,421,185,85,105,298,318,365,369,309,],[-43,-65,-64,-47,-28,-56,-13,-26,-67,-9,-71,-46,-25,204,-60,-14,-4,-58,-15,-68,-61,-16,-33,-4,-66,-32,-69,-35,204,-20,-57,-49,-62,-72,-21,-18,-7,-29,-5,-44,-22,-8,204,-63,-19,-56,-6,-16,-17,-11,-24,-34,-45,-12,-10,-59,-27,-48,-23,-70,]),'STRING_LITERAL':([211,182,340,184,61,187,96,414,241,406,343,252,160,255,193,52,216,257,395,249,409,271,199,398,260,243,400,219,269,380,192,218,413,208,225,385,248,263,148,381,345,136,349,155,246,305,108,145,268,339,251,277,341,250,190,180,195,390,256,259,285,415,189,258,265,81,140,83,397,264,56,290,383,104,142,194,209,106,75,273,48,329,254,77,267,368,138,347,244,159,370,59,410,253,135,379,412,262,100,378,204,141,177,164,80,109,144,261,191,217,355,91,152,247,407,167,181,294,220,85,154,198,73,175,203,229,137,416,202,382,205,95,114,422,270,],[91,-14,-221,91,91,91,-51,-236,91,-235,91,-92,-212,-94,91,-104,91,91,91,-100,91,-229,91,-232,-226,-220,-230,91,-239,-216,91,-17,91,91,91,91,-99,91,91,91,-217,-211,-215,-214,-95,91,-55,-227,91,-237,-91,91,-241,-98,91,-15,91,91,-97,-238,91,-234,91,91,91,91,-209,-52,-233,91,91,91,91,-54,91,91,91,-13,91,91,91,91,-90,91,91,91,91,91,-240,91,91,-223,91,-96,-224,91,91,-228,-16,91,91,91,91,-218,91,-53,-210,-219,91,91,91,-11,91,-93,91,91,-16,91,91,-12,-225,91,91,91,91,91,-213,-231,91,91,91,-50,91,91,-222,]),'MOD_ASSIGN':([76,293,369,365,182,156,221,319,101,424,185,110,100,181,411,318,389,103,367,317,214,314,364,315,212,310,79,78,105,183,92,106,180,218,111,143,311,186,91,85,75,421,],[-18,-21,-23,-48,-14,-4,-46,-24,-22,-35,-45,-43,-16,-16,-33,-27,-32,-4,-25,-26,-28,-5,-57,-7,-29,-8,-56,-9,-10,-44,-19,-13,-15,-17,-49,247,-6,-47,-11,-12,-20,-34,]),':':([231,143,297,5,97,82,318,86,403,317,228,310,299,418,90,110,358,196,32,364,78,292,413,365,309,344,116,113,111,359,301,75,323,296,419,302,172,124,36,88,180,105,308,293,354,103,313,8,424,21,405,163,316,303,333,118,307,100,306,156,38,9,92,304,298,150,37,98,72,319,185,87,283,369,404,107,421,311,79,281,50,102,218,39,84,214,411,101,16,392,186,76,324,420,93,4,27,188,367,66,239,35,390,266,131,212,106,18,342,315,389,300,182,314,68,366,236,53,85,221,13,181,6,183,312,91,161,19,],[-172,-56,-64,-132,-73,-147,-27,-62,-39,-26,-155,-8,-61,-38,-80,-43,285,-148,-128,-57,-9,-81,-36,-48,-70,-102,-103,-86,-49,-135,-66,-20,-85,-63,422,-67,285,-174,-129,-149,-15,-10,-72,-21,-136,-4,-74,-124,-35,-168,413,-88,-77,-79,-156,-169,-69,-16,-71,268,-133,-125,-19,-83,-59,264,-130,-58,-82,-24,-45,-68,355,-23,-37,-78,-34,-6,-56,-137,-166,-76,-17,-165,-65,-28,-33,-22,-123,-87,-47,-18,370,-40,-84,-164,-167,-146,-25,-139,-170,-126,-36,347,-171,-29,-13,-131,-89,-7,-32,-60,-14,-5,-138,390,-173,-157,-12,-46,-134,-16,-122,-44,-75,-11,-101,-127,]),'TYPE_NAME':([57,13,65,67,228,74,53,173,82,68,138,41,35,32,361,278,169,279,60,21,37,28,16,124,197,166,354,5,12,59,24,236,19,61,168,55,357,22,8,243,360,388,4,359,6,10,333,2,48,134,141,36,88,135,66,38,340,3,33,231,27,9,34,50,39,29,15,1,238,288,164,131,40,18,239,222,270,52,328,206,287,284,187,26,73,118,261,280,170,117,0,171,31,232,281,23,],[-247,-134,13,13,-155,-248,-157,13,13,-138,13,66,-126,-128,-253,-244,13,13,13,-168,-130,13,-123,-174,-249,-245,-136,-132,-118,-223,-117,-173,-127,13,13,13,-144,-141,-124,-220,-252,-254,-164,-135,-122,-119,-156,13,13,-246,13,-129,13,-224,-139,-133,-221,13,-243,-172,-167,-125,-140,-166,-165,13,-2,13,13,-251,-218,-171,-121,-131,-170,13,-222,-104,13,-250,13,-145,13,-120,13,-169,-219,-143,13,-255,-1,-142,-242,13,-137,-3,]),'OR_ASSIGN':([110,91,218,76,78,185,212,317,221,318,424,75,365,315,182,111,364,85,106,103,101,314,100,180,92,293,183,79,389,105,369,143,319,310,311,186,367,214,181,411,156,421,],[-43,-11,-17,-18,-9,-45,-29,-26,-46,-27,-35,-20,-48,-7,-14,-49,-57,-12,-13,-4,-22,-5,-16,-15,-19,-21,-44,-56,-32,-10,-23,249,-24,-8,-6,-47,-25,-28,-16,-33,-4,-34,]),'BREAK':([241,407,269,59,155,260,397,270,137,154,345,135,61,141,349,262,383,261,409,259,400,145,416,264,341,243,268,415,380,271,347,244,398,148,340,414,159,164,339,144,395,136,140,160,406,381,52,379,],[157,157,-239,-223,-214,-226,-233,-222,-213,-225,-217,-224,157,157,-215,-228,157,-219,157,-238,-230,-227,-231,157,-241,-220,157,-234,-216,-229,157,-240,-232,157,-221,-236,157,-218,-237,-210,157,-211,-209,-212,-235,157,-104,157,]),'VOLATILE':([340,170,66,74,7,45,261,360,40,8,19,26,59,357,38,4,13,278,94,57,23,187,117,236,138,279,53,280,1,206,0,243,270,61,18,5,131,169,287,35,168,6,52,166,31,48,16,388,222,24,281,354,9,231,12,239,69,60,164,27,65,33,135,359,82,50,124,284,29,173,3,333,21,88,328,68,232,288,141,73,39,171,197,361,15,55,32,238,228,37,67,134,28,44,118,36,2,10,],[-221,39,-139,-248,39,-179,-219,-252,-121,-124,-127,-120,-223,-144,-133,-164,-134,-244,200,-247,-3,39,-255,-173,39,39,-157,-143,39,-250,-1,-220,-222,39,-131,-132,-171,39,39,-126,39,-122,-104,-245,-242,39,-123,-254,39,-117,-137,-136,-125,-172,-118,-170,-180,39,-218,-167,39,-243,-224,-135,39,-166,-174,-145,39,39,39,-156,-168,39,39,-138,39,-251,39,39,-165,-142,-249,-253,-2,39,-128,39,-155,-130,39,-246,39,39,-169,-129,39,-119,]),'error':([136,345,380,383,347,264,341,59,141,261,349,159,164,400,61,137,244,262,241,398,260,414,154,135,271,155,144,340,243,258,379,269,145,259,343,140,270,11,381,407,268,395,409,416,397,148,415,160,406,52,339,],[-211,-217,-216,242,242,242,-241,-223,242,-219,-215,242,-218,-230,158,-213,-240,-228,242,-232,-226,-236,-225,-224,-229,-214,-210,-221,-220,242,242,-239,-227,-238,242,-209,-222,49,242,242,242,242,242,-231,-233,242,-234,-212,-235,-104,-237,]),'~':([416,56,397,410,244,380,189,285,252,246,160,256,217,195,262,263,400,254,194,251,225,249,77,241,48,202,415,382,204,191,355,144,368,80,345,152,209,277,154,340,243,167,141,175,339,329,136,290,193,347,271,199,261,138,381,269,159,104,135,248,81,268,83,273,407,258,219,187,406,96,250,164,73,379,260,253,414,192,385,198,255,229,137,52,216,409,370,109,203,177,148,211,205,398,184,190,114,247,155,341,208,349,343,257,220,140,294,383,265,259,378,145,267,61,264,142,270,108,395,95,59,],[-231,104,-233,104,-240,-216,104,104,-92,-95,-212,-97,104,104,-228,104,-230,-90,104,-91,104,-100,104,104,104,104,-234,104,104,104,104,-210,104,104,-217,104,104,104,-225,-221,-220,104,104,104,-237,104,-211,104,104,104,-229,104,-219,104,104,-239,104,-54,-224,-99,104,104,-52,104,104,104,104,104,-235,-51,-98,-218,104,104,-226,-96,-236,104,104,104,-94,104,-213,-104,104,104,104,-53,104,104,104,104,104,-232,104,104,104,-93,-214,-241,104,-215,104,104,104,-209,104,104,104,-238,104,-227,104,104,104,104,-222,-55,104,-50,-223,]),'DO':([381,271,347,243,339,136,155,383,415,140,380,409,398,137,397,59,159,416,164,407,379,259,270,145,141,264,340,345,144,160,135,414,52,154,260,241,395,148,61,244,269,400,262,349,268,406,261,341,],[159,-229,159,-220,-237,-211,-214,159,-234,-209,-216,159,-232,-213,-233,-223,159,-231,-218,159,159,-238,-222,-227,159,159,-221,-217,-210,-212,-224,-236,-104,-225,-226,159,159,159,159,-240,-239,-230,-228,-215,159,-235,-219,-241,]),'CONST':([359,166,19,24,388,31,9,173,270,32,37,59,118,10,88,45,50,13,18,28,231,15,117,60,21,26,61,68,55,360,222,6,74,261,124,27,3,67,171,206,354,33,197,232,135,2,16,8,4,357,141,73,340,38,281,29,228,12,236,39,44,82,57,48,164,278,5,69,7,361,134,52,168,53,138,288,36,239,23,66,287,35,243,328,169,333,0,40,279,284,238,170,65,131,187,280,1,],[-135,-245,-127,-117,-254,-242,-125,4,-222,-128,-130,-223,-169,-119,4,-179,-166,-134,-131,4,-172,-2,-255,4,-168,-120,4,-138,4,-252,4,-122,-248,-219,-174,-167,4,4,-142,-250,-136,-243,-249,4,-224,4,-123,-124,-164,-144,4,4,-221,-133,-137,4,-155,-118,-173,-165,4,4,-247,4,-218,-244,-132,-180,4,-253,-246,-104,4,-157,4,-251,-129,-170,-3,-139,4,-126,-220,4,4,-156,-1,-121,4,-145,4,4,4,-171,4,-143,4,]),'!':([241,246,341,204,265,269,189,262,73,220,77,229,138,285,96,104,243,254,263,108,61,379,270,152,155,380,398,159,211,80,253,109,59,177,244,193,381,256,249,260,167,95,290,144,250,294,247,397,216,205,148,194,382,257,198,217,370,261,145,209,414,255,416,409,52,191,339,164,202,349,410,343,199,267,406,187,225,56,140,175,355,141,340,208,190,347,219,251,142,114,137,385,378,160,273,48,195,329,135,258,407,400,81,345,252,277,395,83,203,154,264,184,192,268,271,415,383,136,248,368,259,],[108,-95,-241,108,108,-239,108,-228,108,108,108,108,108,108,-51,-54,-220,-90,108,-55,108,108,-222,108,-214,-216,-232,108,108,108,-96,-53,-223,108,-240,108,108,-97,-100,-226,108,-50,108,-210,-98,108,-93,-233,108,108,108,108,108,108,108,108,108,-219,-227,108,-236,-94,-231,108,-104,108,-237,-218,108,-215,108,108,108,108,-235,108,108,108,-209,108,108,108,-221,108,108,108,108,-91,108,108,-213,108,108,-212,108,108,108,108,-224,108,108,-230,108,-217,-92,108,108,-52,108,-225,108,108,108,108,-229,-234,108,-211,-99,108,-238,]),'_BOOL':([238,88,18,138,66,50,53,135,74,236,28,12,16,2,36,3,6,388,59,280,270,288,9,357,206,13,243,82,8,197,231,33,117,171,239,328,57,222,68,32,40,354,278,168,29,134,37,279,131,118,169,261,35,164,124,26,187,0,361,340,4,52,141,60,10,359,67,1,39,38,333,5,228,232,61,287,166,15,19,360,23,173,65,24,73,281,27,48,31,55,21,284,170,],[16,16,-131,16,-139,-166,-157,-224,-248,-173,16,-118,-123,16,-129,16,-122,-254,-223,-143,-222,-251,-125,-144,-250,-134,-220,16,-124,-249,-172,-243,-255,-142,-170,16,-247,16,-138,-128,-121,-136,-244,16,16,-246,-130,16,-171,-169,16,-219,-126,-218,-174,-120,16,-1,-253,-221,-164,-104,16,16,-119,-135,16,16,-165,-133,-156,-132,-155,16,16,16,-245,-2,-127,-252,-3,16,16,-117,16,-137,-167,16,-242,16,-168,-145,16,]),'%':([424,98,311,314,86,92,103,212,293,76,111,389,75,365,110,180,299,300,296,214,91,78,319,315,100,310,183,186,297,182,367,411,79,221,421,218,318,298,364,369,156,101,143,185,317,85,181,106,105,],[-35,-58,-6,-5,192,-19,-4,-29,-21,-18,-49,-32,-20,-48,-43,-15,-61,-60,192,-28,-11,-9,-24,-7,-16,-8,-44,-47,192,-14,-25,-33,-56,-46,-34,-17,-27,-59,-57,-23,-4,-22,-56,-45,-26,-12,-16,-13,-10,]),')':([29,68,106,391,12,310,348,318,131,346,179,16,70,331,309,423,97,42,392,371,6,281,130,223,369,118,161,36,304,46,299,378,231,13,311,332,342,115,127,325,44,373,92,389,75,113,419,413,84,337,316,185,38,32,86,233,296,62,344,5,53,321,375,196,224,307,354,319,239,76,399,124,420,69,292,40,88,212,100,180,27,163,24,336,78,128,303,178,55,9,333,366,174,422,323,365,403,234,102,262,182,300,317,51,312,297,93,101,72,411,295,21,90,393,293,218,71,26,417,85,338,98,313,351,143,7,236,126,418,306,214,37,8,396,110,228,363,424,404,232,181,18,3,50,326,66,176,103,129,183,320,328,405,79,216,10,39,87,394,377,43,314,390,372,91,301,19,221,367,2,105,302,235,315,82,359,298,308,145,35,125,421,45,186,188,226,327,111,271,364,374,222,4,107,],[-109,-138,-13,-31,-118,-8,381,-27,-171,379,294,-123,-178,-196,-70,424,-73,-108,-87,-201,-122,-137,-181,-191,-23,-169,-101,-129,-83,-177,-61,395,-172,-134,-6,-194,-89,-190,-183,-200,-176,-202,-19,-32,-20,-86,421,-36,-65,-182,-77,-45,-133,-128,-62,-186,-63,-110,-102,-132,-157,367,-198,-148,-193,-69,-136,-24,-170,-18,408,-174,-40,-180,-81,-121,-149,-29,-16,-15,-167,-88,-117,-189,-9,-187,-79,293,124,-125,-156,389,-256,-36,-85,-48,-39,-185,-76,-228,-14,-60,-26,118,-75,-64,-84,-22,-82,-33,365,-168,-80,-203,-21,-17,175,-120,420,-12,-184,-58,-74,383,-56,-175,-173,231,-38,-71,-28,-130,-124,407,-43,-155,-257,-35,-37,325,-16,-131,-111,-166,371,-139,290,-4,236,-44,-30,373,411,-56,319,-119,-165,-68,-199,-197,-112,-5,-36,-195,-11,-66,-127,-46,-25,-107,-10,-67,-192,-7,-147,-135,-59,-72,-227,-126,-188,-34,-179,-47,-146,-192,372,-49,-229,-57,393,325,-164,-78,]),'-':([378,300,364,83,409,252,61,98,148,247,261,311,246,248,110,315,156,424,250,310,101,78,407,81,318,183,154,180,202,329,379,296,184,177,181,203,381,190,297,347,104,76,85,48,52,368,290,355,389,415,251,285,263,302,75,79,365,383,160,155,244,249,209,144,73,187,175,182,108,243,135,254,298,340,186,205,395,185,152,159,59,106,367,385,192,370,56,398,345,253,220,256,105,219,77,267,271,95,369,421,216,262,264,414,218,294,229,217,255,273,189,265,103,91,143,225,100,164,136,380,114,397,339,109,299,145,194,212,268,349,410,258,221,193,269,257,211,270,92,84,140,241,208,293,343,260,96,259,317,141,167,138,142,406,137,341,382,301,319,80,214,195,314,416,111,411,204,277,400,199,191,198,86,],[109,-60,-57,-52,109,-92,109,-58,109,-93,-219,-6,-95,-99,-43,-7,-4,-35,-98,-8,-22,-9,109,109,-27,-44,-225,-15,109,109,109,-63,109,109,-16,109,109,109,-64,109,-54,-18,-12,109,-104,109,109,109,-32,-234,-91,109,109,190,-20,-56,-48,109,-212,-214,-240,-100,109,-210,109,109,109,-14,-55,-220,-224,-90,-59,-221,-47,109,109,-45,109,109,-223,-13,-25,109,109,109,109,-232,-217,-96,109,-97,-10,109,109,109,-229,-50,-23,-34,109,-228,109,-236,-17,109,109,109,-94,109,109,109,-4,-11,-56,109,-16,-218,-211,-216,109,-233,-237,-53,-61,-227,109,-29,109,-215,109,109,-46,109,-239,109,109,-222,-19,190,-209,109,109,-21,109,-226,-51,-238,-26,109,109,109,109,-235,-213,-241,109,190,-24,109,-28,109,-5,-231,-49,-33,109,109,-230,109,109,109,-62,]),'CHARACTER_CONSTANT':([380,250,204,199,81,290,148,83,400,252,140,329,247,414,177,381,285,383,382,379,56,249,184,203,209,73,104,191,48,52,368,355,415,251,205,263,349,416,160,385,155,370,378,345,253,187,175,398,244,77,262,108,243,144,154,294,229,217,152,273,189,265,159,59,192,220,256,114,397,219,109,267,271,145,61,216,264,135,255,194,269,257,270,164,225,136,410,339,241,406,407,141,268,138,142,137,341,248,211,347,208,343,260,96,277,190,195,340,259,167,258,198,409,202,80,261,193,95,254,246,395,],[-216,-98,105,105,105,105,105,-52,-230,-92,-209,105,-93,-236,105,105,105,105,105,105,105,-100,105,105,105,105,-54,105,105,-104,105,105,-234,-91,105,105,-215,-231,-212,105,-214,105,105,-217,-96,105,105,-232,-240,105,-228,-55,-220,-210,-225,105,105,105,105,105,105,105,105,-223,105,105,-97,105,-233,105,-53,105,-229,-227,105,105,105,-224,-94,105,-239,105,-222,-218,105,-211,105,-237,105,-235,105,105,105,105,105,-213,-241,-99,105,105,105,105,-226,-51,105,105,105,-221,-238,105,105,105,105,105,105,-219,105,-50,-90,-95,105,]),'PP_STRINGIFY':([195,160,104,268,263,145,259,77,290,347,100,220,204,142,155,345,382,193,177,96,269,255,249,409,381,180,164,190,91,211,199,218,252,294,137,136,85,285,194,217,329,273,257,256,355,205,189,208,379,370,108,167,95,270,247,181,415,410,148,159,75,59,253,135,400,198,243,106,395,340,219,339,261,152,229,260,380,397,144,264,154,184,191,262,216,73,267,114,244,48,254,414,140,383,246,241,83,192,271,182,248,187,265,250,109,407,406,368,225,385,202,141,138,378,81,175,56,258,341,349,398,416,203,52,61,80,251,209,343,277,],[112,-212,-54,112,112,-227,-238,112,112,112,-16,112,112,112,-214,-217,112,112,112,-51,-239,-94,-100,112,112,-15,-218,112,-11,112,112,-17,-92,112,-213,-211,-12,112,112,112,112,112,112,-97,112,112,112,112,112,112,-55,112,-50,-222,-93,-16,-234,112,112,112,112,-223,-96,-224,-230,112,-220,-13,112,-221,112,-237,-219,112,112,-226,-216,-233,-210,112,-225,112,112,-228,112,112,112,112,-240,112,-90,-236,-209,112,-95,112,-52,112,-229,-14,-99,112,112,-98,-53,112,-235,112,112,112,112,112,112,112,112,112,112,112,-241,-215,-232,-231,112,-104,112,112,-91,112,112,112,]),'PTR_OP':([110,319,181,85,369,91,315,92,103,218,100,76,106,78,314,101,105,293,180,214,310,182,311,317,367,318,156,212,75,],[215,-24,-16,-12,-23,-11,-7,-19,-4,-17,-16,-18,-13,-9,-5,-22,-10,-21,-15,-28,-8,-14,-6,-26,-25,-27,-4,-29,-20,]),'=':([65,424,156,133,389,182,118,185,143,315,85,78,21,218,91,122,293,79,27,314,100,221,239,369,421,310,92,180,186,111,367,364,106,124,50,212,101,236,105,231,319,214,311,317,110,103,76,183,131,75,365,181,411,318,],[167,-35,-4,167,-32,-14,-169,-45,254,-7,-12,-9,-168,-17,-11,229,-21,-56,-167,-5,-16,-46,-170,-23,-34,-8,-19,-15,-47,-49,-25,-57,-13,-174,-166,-29,-22,-173,-10,-172,-24,-28,-6,-26,-43,-4,-18,-44,-171,-20,-48,-16,-33,-27,]),'TYPEDEF':([131,52,40,333,328,236,21,270,3,35,28,38,16,231,57,26,61,55,222,232,74,68,15,261,2,37,6,141,50,288,10,359,281,5,33,27,340,388,31,117,18,135,53,134,278,8,66,9,13,1,361,60,197,118,164,19,23,354,168,32,36,24,239,59,238,29,243,166,12,65,0,4,39,124,360,206,228,],[-171,-104,-121,-156,24,-173,-168,-222,24,-126,24,-133,-123,-172,-247,-120,24,24,24,24,-248,-138,-2,-219,24,-130,-122,24,-166,-251,-119,-135,-137,-132,-243,-167,-221,-254,-242,-255,-131,-224,-157,-246,-244,-124,-139,-125,-134,24,-253,24,-249,-169,-218,-127,-3,-136,24,-128,-129,-117,-170,-223,24,24,-220,-245,-118,24,-1,-164,-165,-174,-252,-250,-155,]),'AUTO':([278,60,36,3,57,31,236,28,33,8,59,37,27,65,232,18,66,333,340,40,288,231,13,228,39,206,10,360,361,35,26,74,131,38,32,261,239,243,68,16,15,124,9,359,270,12,118,21,388,1,135,2,197,50,117,24,5,141,53,164,168,23,61,238,29,55,222,4,281,354,328,166,6,52,19,0,134,],[-244,26,-129,26,-247,-242,-173,26,-243,-124,-223,-130,-167,26,26,-131,-139,-156,-221,-121,-251,-172,-134,-155,-165,-250,-119,-252,-253,-126,-120,-248,-171,-133,-128,-219,-170,-220,-138,-123,-2,-174,-125,-135,-222,-118,-169,-168,-254,26,-224,26,-249,-166,-255,-117,-132,26,-157,-218,26,-3,26,26,26,26,26,-164,-137,-136,26,-245,-122,-104,-127,-1,-246,]),'AND_OP':([101,301,97,76,308,107,424,93,293,364,111,319,75,311,411,84,296,90,86,143,183,100,300,106,302,72,92,212,367,185,314,299,105,421,110,310,307,91,313,180,186,292,323,79,312,303,156,298,87,309,218,182,306,318,317,103,365,369,102,98,297,181,221,315,85,214,389,304,316,78,],[-22,-66,-73,-18,-72,-78,-35,199,-21,-57,-49,-24,-20,-6,-33,-65,-63,-80,-62,-56,-44,-16,-60,-13,-67,-82,-19,-29,-25,-45,-5,-61,-10,-34,-43,-8,-69,-11,-74,-15,-47,-81,199,-56,-75,-79,-4,-59,-68,-70,-17,-14,-71,-27,-26,-4,-48,-23,-76,-58,-64,-16,-46,-7,-12,-28,-32,-83,-77,-9,]),']':([106,304,132,342,424,316,221,317,303,182,102,76,322,296,116,113,93,344,369,421,225,364,186,365,180,218,214,302,161,72,298,292,311,107,79,86,300,318,329,309,389,105,185,301,293,183,110,315,92,312,181,75,313,308,307,85,323,163,411,392,212,101,306,314,97,87,297,330,376,310,98,78,299,103,111,367,100,56,84,319,91,90,143,],[-13,-83,239,-89,-35,-77,-46,-26,-79,-14,-76,-18,369,-63,-103,-86,-84,-102,-23,-34,331,-57,-47,-48,-15,-17,-28,-67,-101,-82,-59,-81,-6,-78,-56,-62,-60,-27,375,-70,-32,-10,-45,-66,-21,-44,-43,-7,-19,-75,-16,-20,-74,-72,-69,-12,-85,-88,-33,-87,-29,-22,-71,-5,-73,-68,-64,377,394,-8,-58,-9,-61,-4,-49,-25,-16,131,-65,-24,-11,-80,-56,]),'IF':([241,260,61,262,269,145,144,141,349,159,398,244,379,400,259,415,340,341,339,164,381,140,137,380,154,261,395,148,52,409,416,406,243,160,155,383,347,271,414,264,268,397,59,407,135,136,345,270,],[162,-226,162,-228,-239,-227,-210,162,-215,162,-232,-240,162,-230,-238,-234,-221,-241,-237,-218,162,-209,-213,-216,-225,-219,162,162,-104,162,-231,-235,-220,-212,-214,162,162,-229,-236,162,162,-233,-223,162,-224,-211,-217,-222,]),'STRUCT':([15,354,124,238,29,39,359,48,12,74,26,131,53,171,68,138,360,21,261,170,18,88,278,37,3,27,67,31,357,59,66,32,388,231,206,38,10,270,281,16,57,187,61,284,117,1,5,164,239,173,82,134,166,36,280,222,6,73,141,279,169,328,118,55,197,28,340,50,65,228,236,0,333,287,40,4,35,19,60,9,13,361,23,135,288,24,52,168,33,232,2,8,243,],[-2,-136,-174,34,34,-165,-135,34,-118,-248,-120,-171,-157,-142,-138,34,-252,-168,-219,34,-131,34,-244,-130,34,-167,34,-242,-144,-223,-139,-128,-254,-172,-250,-133,-119,-222,-137,-123,-247,34,34,-145,-255,34,-132,-218,-170,34,34,-246,-245,-129,-143,34,-122,34,34,34,34,34,-169,34,-249,34,-221,-166,34,-155,-173,-1,-156,34,-121,-164,-126,-127,34,-125,-134,-253,-3,-224,-251,-117,-104,34,-243,34,34,-124,-220,]),'PP_IDENTIFIER_PASTE':([310,100,103,156,315,],[207,207,210,210,207,]),'PP_DEFINE_NAME':([11,],[48,]),'FLOAT':([13,357,88,340,29,231,53,1,35,82,39,10,279,55,173,74,239,228,9,222,360,36,141,8,32,238,135,168,281,52,278,287,24,21,134,61,50,138,187,66,23,12,6,73,28,328,124,4,0,354,206,359,388,57,3,18,19,48,166,232,164,236,65,40,170,37,26,31,333,27,261,59,243,16,2,270,197,33,288,67,169,5,60,131,280,117,15,284,171,118,361,68,38,],[-134,-144,32,-221,32,-172,-157,32,-126,32,-165,-119,32,32,32,-248,-170,-155,-125,32,-252,-129,32,-124,-128,32,-224,32,-137,-104,-244,32,-117,-168,-246,32,-166,32,32,-139,-3,-118,-122,32,32,32,-174,-164,-1,-136,-250,-135,-254,-247,32,-131,-127,32,-245,32,-218,-173,32,-121,32,-130,-120,-242,-156,-167,-219,-223,-220,-123,32,-222,-249,-243,-251,32,32,-132,32,-171,-143,-255,-2,-145,-142,-169,-253,-138,-133,]),'LEFT_ASSIGN':([367,101,314,365,85,421,180,186,317,221,364,79,212,369,318,218,100,78,111,319,110,424,143,389,315,293,181,106,92,185,311,411,76,183,182,310,156,105,91,214,75,103,],[-25,-22,-5,-48,-12,-34,-15,-47,-26,-46,-57,-56,-29,-23,-27,-17,-16,-9,-49,-24,-43,-35,253,-32,-7,-21,-16,-13,-19,-45,-6,-33,-18,-44,-14,-8,-4,-10,-11,-28,-20,-4,]),'}':([292,181,212,269,244,221,103,261,389,303,296,98,384,398,300,102,111,367,385,364,123,85,61,341,287,148,120,154,163,260,106,401,353,160,218,137,315,279,352,319,312,87,298,271,313,84,241,214,340,302,311,79,317,380,414,357,76,411,91,136,309,397,406,122,421,323,342,243,171,135,186,392,424,280,230,284,52,299,182,308,270,339,107,141,116,93,59,349,306,90,415,105,144,400,155,145,97,140,185,158,101,227,297,110,164,301,334,310,276,78,307,316,75,365,293,259,304,72,335,121,416,314,402,100,170,143,345,318,113,86,369,183,92,180,262,],[-81,-16,-29,-239,-240,-46,-4,-219,-32,-79,-63,-58,-205,-232,-60,-76,-49,-25,402,-57,-158,-12,164,-241,359,261,-160,-225,-88,-226,-13,-208,384,-212,-17,-213,-7,354,-207,-24,-75,-68,-59,-229,-74,-65,340,-28,-221,-67,-6,-56,-26,-216,-236,-144,-18,-33,-11,-211,-70,-233,-235,-162,-34,-85,-89,-220,-142,-224,-47,-87,-35,-143,-159,-145,-104,-61,-14,-72,-222,-237,-78,243,-103,-84,-223,-215,-71,-80,-234,-10,-210,-230,-214,-227,-73,-209,-45,270,-22,333,-64,-43,-218,-66,-163,-8,-204,-9,-69,-77,-20,-48,-21,-238,-83,-82,-161,228,-231,-5,-206,-16,281,-56,-217,-27,-86,-62,-23,-44,-19,-15,-228,]),} _lr_action = { } for _k, _v in _lr_action_items.items(): for _x,_y in zip(_v[0],_v[1]): _lr_action[(_x,_k)] = _y del _lr_action_items _lr_goto_items = {'expression_statement':([395,264,347,343,409,381,258,141,148,407,379,61,159,241,383,268,],[136,136,136,378,136,136,343,136,136,136,136,136,136,136,136,136,]),'storage_class_specifier':([29,141,28,222,55,60,61,232,65,2,3,328,1,238,168,],[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,]),'str_opt_expr_pair':([422,412,413,390,],[404,418,404,404,]),'constant':([191,152,211,329,61,187,159,407,81,409,205,273,80,277,202,56,241,114,209,379,383,203,194,395,385,378,48,368,355,268,265,190,189,229,177,225,264,204,381,370,347,193,257,198,382,220,343,217,290,216,77,142,141,267,192,258,199,73,148,175,208,195,184,410,294,219,263,138,167,285,],[92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,]),'volatile_opt':([94,],[201,]),'unary_expression':([273,202,208,114,209,138,192,370,229,194,263,175,198,241,265,195,184,177,410,225,187,219,409,381,148,77,407,167,189,193,257,191,382,217,152,211,290,159,142,141,385,294,379,80,258,285,368,73,203,268,56,347,383,329,204,395,48,355,205,343,277,190,264,216,61,267,81,199,220,378,],[143,79,79,79,79,143,79,79,79,79,143,79,79,143,143,79,143,79,143,79,143,79,143,143,143,183,143,143,79,79,143,79,143,143,79,79,79,143,143,143,143,79,143,185,143,79,143,143,79,143,79,143,143,79,79,143,79,79,79,143,143,79,143,143,143,143,186,79,143,143,]),'struct_or_union_specifier':([138,2,168,88,169,222,67,65,328,187,48,55,1,279,238,82,28,73,232,141,61,3,287,60,170,29,173,],[5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,]),'exclusive_or_expression':([329,355,148,73,264,184,219,152,216,407,229,48,141,285,61,410,138,370,343,267,187,167,257,217,177,241,347,159,383,199,382,395,379,220,56,381,277,385,378,290,263,268,273,258,368,175,142,225,265,409,],[90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,292,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,]),'identifier_list':([55,],[129,]),'define':([1,],[23,]),'initializer':([385,277,167,],[401,352,275,]),'macro_param':([329,225,167,208,56,81,191,148,193,273,257,294,203,159,381,209,385,395,343,355,194,378,265,383,177,80,205,189,190,410,219,229,75,175,264,216,241,142,192,202,217,220,48,211,114,409,187,267,368,285,277,290,184,73,258,268,77,195,61,141,198,382,407,347,138,199,204,263,152,370,379,],[106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,180,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,]),'struct_declaration_list':([173,67,169,],[287,170,279,]),'macro_parameter_list':([71,],[176,]),'enumerator':([54,119,230,],[120,120,335,]),'declaration_list':([61,28,65,],[141,60,168,]),'iteration_statement':([148,264,407,395,383,61,159,241,379,381,347,141,268,409,],[137,137,137,137,137,137,137,137,137,137,137,137,137,137,]),'additive_expression':([265,329,355,217,220,229,395,257,73,264,142,138,208,285,61,268,381,195,56,277,343,290,152,216,407,199,209,48,383,241,148,187,382,410,141,205,370,203,204,347,379,263,184,368,219,409,167,202,378,211,159,194,258,267,175,273,385,225,177,198,],[84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,302,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,301,84,84,84,84,84,84,84,84,]),'assignment_expression':([167,216,258,265,220,148,347,264,184,217,410,241,263,381,383,407,378,267,385,187,409,379,277,73,273,268,159,257,141,61,395,382,343,142,368,138,],[276,320,161,161,161,161,161,161,161,161,161,161,344,161,161,161,161,161,276,161,161,161,276,161,161,161,161,342,161,161,161,161,161,161,391,161,]),'external_declaration':([1,],[15,]),'type_specifier':([67,29,28,328,88,279,48,173,232,238,141,222,3,60,82,287,65,138,61,73,168,169,1,55,187,170,2,],[82,29,29,29,82,82,82,82,29,29,29,29,29,29,82,82,29,82,29,82,29,82,29,29,82,82,29,]),'compound_statement':([60,264,409,383,159,268,241,65,347,141,61,381,407,148,379,168,28,395,],[134,144,144,144,144,144,144,166,144,144,144,144,144,144,144,278,57,144,]),'inclusive_or_expression':([73,407,152,409,329,379,167,385,184,368,61,395,175,48,148,241,347,159,268,277,370,199,220,56,225,216,267,378,343,219,258,265,383,381,229,285,410,217,263,257,355,290,138,142,264,382,141,187,273,],[72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,304,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,]),'pointer':([58,44,165,17,232,358,7,172,30,128,115,1,222,],[14,70,14,14,235,14,46,14,14,235,226,14,226,]),'selection_statement':([407,141,61,347,159,268,148,241,264,409,395,379,381,383,],[160,160,160,160,160,160,160,160,160,160,160,160,160,160,]),'postfix_expression':([73,192,294,56,199,194,263,187,383,378,175,77,217,141,152,189,285,159,219,142,193,257,329,355,81,395,379,268,381,205,202,190,410,204,61,241,290,208,148,229,407,277,265,114,184,409,203,138,267,216,343,198,264,191,347,382,211,48,220,177,368,273,225,385,195,370,167,80,258,209,],[110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,]),'asm_expression':([290,241,56,142,395,273,385,202,141,205,48,378,204,265,329,268,383,199,80,198,184,192,148,343,194,73,159,370,229,258,187,257,225,189,138,114,407,211,219,177,263,285,355,209,175,203,277,379,264,195,220,409,152,347,216,193,267,382,190,61,167,410,368,381,81,77,208,217,294,191,],[111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,]),'declaration_impl':([28,168,65,61,141,1,60,],[20,20,20,20,20,20,20,]),'and_expression':([370,167,217,152,285,198,73,219,381,385,383,273,257,61,141,199,290,343,263,184,329,264,410,56,379,395,268,159,347,241,225,409,148,277,216,229,265,187,138,378,267,220,355,175,142,258,382,48,177,368,407,],[107,107,107,107,107,303,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,]),'type_name':([73,48,138,187,],[179,89,179,295,]),'relational_expression':([378,73,241,217,264,382,263,48,211,225,285,258,381,177,347,268,159,368,175,273,219,329,409,343,138,184,56,209,355,257,142,148,187,370,267,277,198,395,216,152,379,410,220,61,383,141,167,199,208,265,385,407,229,290,],[97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,313,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,312,97,97,97,97,97,]),'statement':([264,407,381,347,379,148,409,159,241,395,61,141,268,383,],[345,414,398,380,397,260,416,272,260,406,154,154,349,400,]),'cast_expression':([395,407,217,385,159,347,229,202,177,257,211,343,189,193,273,73,285,258,209,198,216,184,264,114,194,382,203,378,409,205,219,187,267,138,381,329,208,220,195,56,142,268,61,141,175,148,379,370,192,204,152,191,241,48,190,225,294,410,199,167,290,265,383,368,277,263,355,],[98,98,98,98,98,98,98,98,98,98,98,98,98,300,98,98,98,98,98,98,98,98,98,221,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,299,98,98,298,98,98,98,98,364,98,98,98,98,98,98,98,98,98,98,]),'init_declarator':([58,165,30,],[63,274,63,]),'struct_declarator_list':([172,],[286,]),'logical_or_expression':([343,407,265,217,285,395,347,258,273,257,410,138,184,378,264,73,381,216,142,382,268,61,141,187,267,175,220,370,148,48,409,56,167,379,152,263,329,290,241,225,383,385,277,368,159,229,355,],[113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,]),'unary_operator':([77,141,241,148,277,159,192,407,56,184,194,409,294,203,187,217,205,189,198,219,202,142,382,190,211,220,204,368,273,257,225,258,167,208,379,385,229,265,114,138,378,267,175,290,61,285,191,355,370,343,48,193,177,329,152,195,81,80,209,264,395,216,73,268,381,199,263,410,347,383,],[114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,]),'translation_unit':([0,],[1,]),'struct_or_union':([55,141,3,88,173,232,170,287,328,48,60,2,61,82,238,138,67,222,169,29,187,279,168,1,28,73,65,],[41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,]),'type_qualifier_list':([7,],[44,]),'struct_declaration':([279,169,67,287,173,170,],[280,171,171,280,171,280,]),'string_literal':([203,148,381,265,220,216,395,202,294,382,80,219,412,347,77,241,211,167,192,410,189,142,56,184,370,217,422,263,198,285,205,383,152,379,175,190,195,390,75,407,264,177,277,290,378,225,208,191,114,267,355,187,409,329,204,258,343,368,193,138,199,159,268,257,141,48,229,61,385,305,81,194,413,209,73,273,],[85,85,85,85,85,85,85,85,85,85,85,85,403,85,85,85,85,85,85,85,85,85,85,85,85,85,403,85,85,85,85,85,85,85,85,85,85,403,182,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,366,85,85,403,85,85,85,]),'parameter_type_list':([222,232,328,55,],[326,326,374,126,]),'parameter_declaration':([328,232,238,55,222,],[127,127,338,127,127,]),'multiplicative_expression':([381,167,61,195,355,204,138,379,203,409,198,175,177,258,285,277,225,187,219,211,268,48,194,148,142,257,73,378,56,395,202,229,407,159,189,209,343,385,329,273,265,208,368,290,382,205,141,184,199,383,220,190,264,410,216,217,152,241,370,267,347,263,],[86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,296,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,297,86,86,86,86,86,86,86,86,86,86,]),'declarator':([232,165,1,30,128,58,172,17,358,],[51,133,28,65,234,133,283,51,283,]),'argument_expression_list':([216,],[321,]),'str_opt_expr_pair_list':([390,413,422,],[405,419,423,]),'statement_list':([61,141,],[148,241,]),'constant_expression':([48,290,56,175,225,285,152,329,355,229,],[99,362,132,289,330,356,266,376,386,334,]),'enumerator_list_iso':([54,119,],[123,123,]),'primary_expression':([385,73,187,220,370,267,277,199,191,209,204,241,347,208,257,48,211,205,159,355,194,379,219,61,141,175,290,329,198,343,216,138,184,56,264,265,294,152,410,285,192,258,407,229,202,77,381,378,148,273,268,409,395,80,81,382,195,225,177,142,203,368,114,190,193,217,383,189,167,263,],[101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,]),'declaration_specifiers':([29,222,238,232,28,168,328,60,1,61,141,55,65,3,2,],[62,128,128,128,58,58,128,58,30,58,58,128,58,43,42,]),'declaration':([141,60,1,168,65,28,61,],[135,135,31,135,59,59,59,]),'direct_declarator':([172,1,128,235,14,30,358,232,58,17,165,],[27,27,27,50,50,27,27,27,27,27,27,]),'logical_and_expression':([347,56,407,355,138,378,61,141,379,395,290,220,48,175,263,410,258,285,277,225,187,267,73,229,142,381,329,273,265,167,368,343,385,383,184,264,241,409,370,268,216,217,152,219,148,257,159,382,],[93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,323,93,93,93,93,]),'init_declarator_list':([58,30,],[64,64,]),'shift_expression':([208,229,211,378,241,184,216,410,285,141,409,379,217,395,265,263,202,257,56,167,199,187,219,159,258,370,264,209,175,220,205,385,142,225,329,273,368,383,347,355,177,48,343,152,267,382,407,198,277,148,61,290,204,203,73,381,268,138,],[87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,306,87,87,87,87,87,87,87,87,87,87,87,87,87,309,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,308,307,87,87,87,87,]),'equality_expression':([48,268,381,378,343,368,216,267,56,199,385,225,177,198,383,265,355,241,217,148,229,395,257,347,409,61,379,277,184,290,152,167,407,211,159,258,175,273,187,382,329,141,220,73,264,370,142,138,263,285,219,410,],[102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,316,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,]),'jump_statement':([264,159,381,379,347,407,141,268,241,148,61,395,383,409,],[155,155,155,155,155,155,155,155,155,155,155,155,155,155,]),'struct_declarator':([358,172,],[387,282,]),'function_definition':([1,],[33,]),'parameter_list':([328,222,55,232,],[130,130,130,130,]),'enum_specifier':([82,170,29,168,61,1,3,88,48,222,169,232,65,287,60,238,173,28,328,67,187,141,73,279,138,55,2,],[38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,]),'type_qualifier':([187,55,88,82,44,28,169,328,238,279,65,173,222,60,141,7,287,2,138,73,232,29,168,67,3,61,48,170,1,],[88,3,88,88,69,3,88,3,3,88,3,88,3,3,3,45,88,3,88,88,3,3,3,88,3,3,88,88,3,]),'enumerator_list':([119,54,],[227,121,]),'labeled_statement':([141,148,395,407,61,383,379,159,268,241,347,264,409,381,],[140,140,140,140,140,140,140,140,140,140,140,140,140,140,]),'abstract_declarator':([115,222,232,128,],[223,327,327,233,]),'specifier_qualifier_list':([169,170,173,48,279,73,187,138,287,88,82,67,],[172,172,172,115,172,115,115,115,172,196,188,172,]),'multi_string_literal':([205,267,138,203,184,114,265,229,343,290,81,410,385,61,257,204,193,192,347,190,142,202,381,159,219,268,285,379,152,395,217,294,209,264,263,194,199,407,241,355,258,80,195,189,141,77,175,273,382,220,378,383,187,56,73,198,216,167,370,277,148,409,225,329,368,177,48,211,208,191,],[75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,]),'assignment_operator':([143,],[257,]),'initializer_list':([277,],[353,]),'conditional_expression':([257,56,217,285,187,265,141,258,241,148,48,385,216,368,273,184,329,159,378,343,267,407,73,225,263,410,370,277,268,382,264,167,175,152,395,409,138,61,290,355,229,220,381,383,142,379,347,],[163,116,163,116,163,163,163,163,163,163,116,163,163,163,163,163,116,163,163,163,163,163,163,116,163,163,392,163,163,163,163,163,116,116,163,163,163,163,116,116,116,163,163,163,163,163,163,]),'direct_abstract_declarator':([115,235,226,128,232,222,],[224,332,332,224,224,224,]),'identifier':([205,410,368,285,407,294,195,56,264,208,203,277,355,273,175,263,199,258,81,207,148,385,267,61,141,77,329,290,220,210,167,73,193,219,381,204,382,138,347,225,177,265,229,48,184,187,378,189,192,216,383,209,217,343,409,114,190,241,202,198,257,80,142,370,159,211,152,268,191,379,395,194,],[76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,311,76,76,76,76,76,76,76,76,76,314,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,]),'expression':([378,73,187,381,343,409,265,61,268,379,347,264,267,142,273,383,138,410,258,141,159,148,382,184,217,395,220,407,241,],[396,178,178,149,149,149,346,149,149,149,149,149,348,245,351,149,178,417,149,149,149,149,399,178,322,149,324,149,149,]),} _lr_goto = { } for _k, _v in _lr_goto_items.items(): for _x,_y in zip(_v[0],_v[1]): _lr_goto[(_x,_k)] = _y del _lr_goto_items _lr_productions = [ ("S'",1,None,None,None), ('translation_unit',0,'p_translation_unit','ctypesgencore/parser/cgrammar.py',57), ('translation_unit',2,'p_translation_unit','ctypesgencore/parser/cgrammar.py',58), ('translation_unit',2,'p_translation_unit','ctypesgencore/parser/cgrammar.py',59), ('identifier',1,'p_identifier','ctypesgencore/parser/cgrammar.py',67), ('identifier',3,'p_identifier','ctypesgencore/parser/cgrammar.py',68), ('identifier',3,'p_identifier','ctypesgencore/parser/cgrammar.py',69), ('identifier',3,'p_identifier','ctypesgencore/parser/cgrammar.py',70), ('identifier',3,'p_identifier','ctypesgencore/parser/cgrammar.py',71), ('constant',1,'p_constant','ctypesgencore/parser/cgrammar.py',87), ('constant',1,'p_constant','ctypesgencore/parser/cgrammar.py',88), ('string_literal',1,'p_string_literal','ctypesgencore/parser/cgrammar.py',111), ('multi_string_literal',1,'p_multi_string_literal','ctypesgencore/parser/cgrammar.py',115), ('multi_string_literal',1,'p_multi_string_literal','ctypesgencore/parser/cgrammar.py',116), ('multi_string_literal',2,'p_multi_string_literal','ctypesgencore/parser/cgrammar.py',117), ('multi_string_literal',2,'p_multi_string_literal','ctypesgencore/parser/cgrammar.py',118), ('macro_param',1,'p_macro_param','ctypesgencore/parser/cgrammar.py',127), ('macro_param',2,'p_macro_param','ctypesgencore/parser/cgrammar.py',128), ('primary_expression',1,'p_primary_expression','ctypesgencore/parser/cgrammar.py',136), ('primary_expression',1,'p_primary_expression','ctypesgencore/parser/cgrammar.py',137), ('primary_expression',1,'p_primary_expression','ctypesgencore/parser/cgrammar.py',138), ('primary_expression',3,'p_primary_expression','ctypesgencore/parser/cgrammar.py',139), ('postfix_expression',1,'p_postfix_expression','ctypesgencore/parser/cgrammar.py',147), ('postfix_expression',4,'p_postfix_expression','ctypesgencore/parser/cgrammar.py',148), ('postfix_expression',3,'p_postfix_expression','ctypesgencore/parser/cgrammar.py',149), ('postfix_expression',4,'p_postfix_expression','ctypesgencore/parser/cgrammar.py',150), ('postfix_expression',3,'p_postfix_expression','ctypesgencore/parser/cgrammar.py',151), ('postfix_expression',3,'p_postfix_expression','ctypesgencore/parser/cgrammar.py',152), ('postfix_expression',2,'p_postfix_expression','ctypesgencore/parser/cgrammar.py',153), ('postfix_expression',2,'p_postfix_expression','ctypesgencore/parser/cgrammar.py',154), ('argument_expression_list',1,'p_argument_expression_list','ctypesgencore/parser/cgrammar.py',187), ('argument_expression_list',3,'p_argument_expression_list','ctypesgencore/parser/cgrammar.py',188), ('asm_expression',5,'p_asm_expression','ctypesgencore/parser/cgrammar.py',197), ('asm_expression',7,'p_asm_expression','ctypesgencore/parser/cgrammar.py',198), ('asm_expression',9,'p_asm_expression','ctypesgencore/parser/cgrammar.py',199), ('asm_expression',11,'p_asm_expression','ctypesgencore/parser/cgrammar.py',200), ('str_opt_expr_pair_list',0,'p_str_opt_expr_pair_list','ctypesgencore/parser/cgrammar.py',212), ('str_opt_expr_pair_list',1,'p_str_opt_expr_pair_list','ctypesgencore/parser/cgrammar.py',213), ('str_opt_expr_pair_list',3,'p_str_opt_expr_pair_list','ctypesgencore/parser/cgrammar.py',214), ('str_opt_expr_pair',1,'p_str_opt_expr_pair','ctypesgencore/parser/cgrammar.py',218), ('str_opt_expr_pair',4,'p_str_opt_expr_pair','ctypesgencore/parser/cgrammar.py',219), ('volatile_opt',0,'p_volatile_opt','ctypesgencore/parser/cgrammar.py',223), ('volatile_opt',1,'p_volatile_opt','ctypesgencore/parser/cgrammar.py',224), ('unary_expression',1,'p_unary_expression','ctypesgencore/parser/cgrammar.py',239), ('unary_expression',2,'p_unary_expression','ctypesgencore/parser/cgrammar.py',240), ('unary_expression',2,'p_unary_expression','ctypesgencore/parser/cgrammar.py',241), ('unary_expression',2,'p_unary_expression','ctypesgencore/parser/cgrammar.py',242), ('unary_expression',2,'p_unary_expression','ctypesgencore/parser/cgrammar.py',243), ('unary_expression',4,'p_unary_expression','ctypesgencore/parser/cgrammar.py',244), ('unary_expression',1,'p_unary_expression','ctypesgencore/parser/cgrammar.py',245), ('unary_operator',1,'p_unary_operator','ctypesgencore/parser/cgrammar.py',262), ('unary_operator',1,'p_unary_operator','ctypesgencore/parser/cgrammar.py',263), ('unary_operator',1,'p_unary_operator','ctypesgencore/parser/cgrammar.py',264), ('unary_operator',1,'p_unary_operator','ctypesgencore/parser/cgrammar.py',265), ('unary_operator',1,'p_unary_operator','ctypesgencore/parser/cgrammar.py',266), ('unary_operator',1,'p_unary_operator','ctypesgencore/parser/cgrammar.py',267), ('cast_expression',1,'p_cast_expression','ctypesgencore/parser/cgrammar.py',272), ('cast_expression',4,'p_cast_expression','ctypesgencore/parser/cgrammar.py',273), ('multiplicative_expression',1,'p_multiplicative_expression','ctypesgencore/parser/cgrammar.py',287), ('multiplicative_expression',3,'p_multiplicative_expression','ctypesgencore/parser/cgrammar.py',288), ('multiplicative_expression',3,'p_multiplicative_expression','ctypesgencore/parser/cgrammar.py',289), ('multiplicative_expression',3,'p_multiplicative_expression','ctypesgencore/parser/cgrammar.py',290), ('additive_expression',1,'p_additive_expression','ctypesgencore/parser/cgrammar.py',305), ('additive_expression',3,'p_additive_expression','ctypesgencore/parser/cgrammar.py',306), ('additive_expression',3,'p_additive_expression','ctypesgencore/parser/cgrammar.py',307), ('shift_expression',1,'p_shift_expression','ctypesgencore/parser/cgrammar.py',322), ('shift_expression',3,'p_shift_expression','ctypesgencore/parser/cgrammar.py',323), ('shift_expression',3,'p_shift_expression','ctypesgencore/parser/cgrammar.py',324), ('relational_expression',1,'p_relational_expression','ctypesgencore/parser/cgrammar.py',341), ('relational_expression',3,'p_relational_expression','ctypesgencore/parser/cgrammar.py',342), ('relational_expression',3,'p_relational_expression','ctypesgencore/parser/cgrammar.py',343), ('relational_expression',3,'p_relational_expression','ctypesgencore/parser/cgrammar.py',344), ('relational_expression',3,'p_relational_expression','ctypesgencore/parser/cgrammar.py',345), ('equality_expression',1,'p_equality_expression','ctypesgencore/parser/cgrammar.py',360), ('equality_expression',3,'p_equality_expression','ctypesgencore/parser/cgrammar.py',361), ('equality_expression',3,'p_equality_expression','ctypesgencore/parser/cgrammar.py',362), ('and_expression',1,'p_and_expression','ctypesgencore/parser/cgrammar.py',372), ('and_expression',3,'p_and_expression','ctypesgencore/parser/cgrammar.py',373), ('exclusive_or_expression',1,'p_exclusive_or_expression','ctypesgencore/parser/cgrammar.py',382), ('exclusive_or_expression',3,'p_exclusive_or_expression','ctypesgencore/parser/cgrammar.py',383), ('inclusive_or_expression',1,'p_inclusive_or_expression','ctypesgencore/parser/cgrammar.py',392), ('inclusive_or_expression',3,'p_inclusive_or_expression','ctypesgencore/parser/cgrammar.py',393), ('logical_and_expression',1,'p_logical_and_expression','ctypesgencore/parser/cgrammar.py',402), ('logical_and_expression',3,'p_logical_and_expression','ctypesgencore/parser/cgrammar.py',403), ('logical_or_expression',1,'p_logical_or_expression','ctypesgencore/parser/cgrammar.py',412), ('logical_or_expression',3,'p_logical_or_expression','ctypesgencore/parser/cgrammar.py',413), ('conditional_expression',1,'p_conditional_expression','ctypesgencore/parser/cgrammar.py',422), ('conditional_expression',5,'p_conditional_expression','ctypesgencore/parser/cgrammar.py',423), ('assignment_expression',1,'p_assignment_expression','ctypesgencore/parser/cgrammar.py',444), ('assignment_expression',3,'p_assignment_expression','ctypesgencore/parser/cgrammar.py',445), ('assignment_operator',1,'p_assignment_operator','ctypesgencore/parser/cgrammar.py',460), ('assignment_operator',1,'p_assignment_operator','ctypesgencore/parser/cgrammar.py',461), ('assignment_operator',1,'p_assignment_operator','ctypesgencore/parser/cgrammar.py',462), ('assignment_operator',1,'p_assignment_operator','ctypesgencore/parser/cgrammar.py',463), ('assignment_operator',1,'p_assignment_operator','ctypesgencore/parser/cgrammar.py',464), ('assignment_operator',1,'p_assignment_operator','ctypesgencore/parser/cgrammar.py',465), ('assignment_operator',1,'p_assignment_operator','ctypesgencore/parser/cgrammar.py',466), ('assignment_operator',1,'p_assignment_operator','ctypesgencore/parser/cgrammar.py',467), ('assignment_operator',1,'p_assignment_operator','ctypesgencore/parser/cgrammar.py',468), ('assignment_operator',1,'p_assignment_operator','ctypesgencore/parser/cgrammar.py',469), ('assignment_operator',1,'p_assignment_operator','ctypesgencore/parser/cgrammar.py',470), ('expression',1,'p_expression','ctypesgencore/parser/cgrammar.py',475), ('expression',3,'p_expression','ctypesgencore/parser/cgrammar.py',476), ('constant_expression',1,'p_constant_expression','ctypesgencore/parser/cgrammar.py',482), ('declaration',2,'p_declaration','ctypesgencore/parser/cgrammar.py',487), ('declaration_impl',1,'p_declaration_impl','ctypesgencore/parser/cgrammar.py',494), ('declaration_impl',2,'p_declaration_impl','ctypesgencore/parser/cgrammar.py',495), ('declaration_specifiers',1,'p_declaration_specifiers','ctypesgencore/parser/cgrammar.py',519), ('declaration_specifiers',2,'p_declaration_specifiers','ctypesgencore/parser/cgrammar.py',520), ('declaration_specifiers',1,'p_declaration_specifiers','ctypesgencore/parser/cgrammar.py',521), ('declaration_specifiers',2,'p_declaration_specifiers','ctypesgencore/parser/cgrammar.py',522), ('declaration_specifiers',1,'p_declaration_specifiers','ctypesgencore/parser/cgrammar.py',523), ('declaration_specifiers',2,'p_declaration_specifiers','ctypesgencore/parser/cgrammar.py',524), ('init_declarator_list',1,'p_init_declarator_list','ctypesgencore/parser/cgrammar.py',532), ('init_declarator_list',3,'p_init_declarator_list','ctypesgencore/parser/cgrammar.py',533), ('init_declarator',1,'p_init_declarator','ctypesgencore/parser/cgrammar.py',541), ('init_declarator',3,'p_init_declarator','ctypesgencore/parser/cgrammar.py',542), ('storage_class_specifier',1,'p_storage_class_specifier','ctypesgencore/parser/cgrammar.py',549), ('storage_class_specifier',1,'p_storage_class_specifier','ctypesgencore/parser/cgrammar.py',550), ('storage_class_specifier',1,'p_storage_class_specifier','ctypesgencore/parser/cgrammar.py',551), ('storage_class_specifier',1,'p_storage_class_specifier','ctypesgencore/parser/cgrammar.py',552), ('storage_class_specifier',1,'p_storage_class_specifier','ctypesgencore/parser/cgrammar.py',553), ('type_specifier',1,'p_type_specifier','ctypesgencore/parser/cgrammar.py',558), ('type_specifier',1,'p_type_specifier','ctypesgencore/parser/cgrammar.py',559), ('type_specifier',1,'p_type_specifier','ctypesgencore/parser/cgrammar.py',560), ('type_specifier',1,'p_type_specifier','ctypesgencore/parser/cgrammar.py',561), ('type_specifier',1,'p_type_specifier','ctypesgencore/parser/cgrammar.py',562), ('type_specifier',1,'p_type_specifier','ctypesgencore/parser/cgrammar.py',563), ('type_specifier',1,'p_type_specifier','ctypesgencore/parser/cgrammar.py',564), ('type_specifier',1,'p_type_specifier','ctypesgencore/parser/cgrammar.py',565), ('type_specifier',1,'p_type_specifier','ctypesgencore/parser/cgrammar.py',566), ('type_specifier',1,'p_type_specifier','ctypesgencore/parser/cgrammar.py',567), ('type_specifier',1,'p_type_specifier','ctypesgencore/parser/cgrammar.py',568), ('type_specifier',1,'p_type_specifier','ctypesgencore/parser/cgrammar.py',569), ('type_specifier',1,'p_type_specifier','ctypesgencore/parser/cgrammar.py',570), ('struct_or_union_specifier',5,'p_struct_or_union_specifier','ctypesgencore/parser/cgrammar.py',579), ('struct_or_union_specifier',5,'p_struct_or_union_specifier','ctypesgencore/parser/cgrammar.py',580), ('struct_or_union_specifier',4,'p_struct_or_union_specifier','ctypesgencore/parser/cgrammar.py',581), ('struct_or_union_specifier',2,'p_struct_or_union_specifier','ctypesgencore/parser/cgrammar.py',582), ('struct_or_union_specifier',2,'p_struct_or_union_specifier','ctypesgencore/parser/cgrammar.py',583), ('struct_or_union',1,'p_struct_or_union','ctypesgencore/parser/cgrammar.py',599), ('struct_or_union',1,'p_struct_or_union','ctypesgencore/parser/cgrammar.py',600), ('struct_declaration_list',1,'p_struct_declaration_list','ctypesgencore/parser/cgrammar.py',605), ('struct_declaration_list',2,'p_struct_declaration_list','ctypesgencore/parser/cgrammar.py',606), ('struct_declaration',3,'p_struct_declaration','ctypesgencore/parser/cgrammar.py',614), ('struct_declaration',2,'p_struct_declaration','ctypesgencore/parser/cgrammar.py',615), ('specifier_qualifier_list',2,'p_specifier_qualifier_list','ctypesgencore/parser/cgrammar.py',635), ('specifier_qualifier_list',1,'p_specifier_qualifier_list','ctypesgencore/parser/cgrammar.py',636), ('specifier_qualifier_list',2,'p_specifier_qualifier_list','ctypesgencore/parser/cgrammar.py',637), ('specifier_qualifier_list',1,'p_specifier_qualifier_list','ctypesgencore/parser/cgrammar.py',638), ('struct_declarator_list',1,'p_struct_declarator_list','ctypesgencore/parser/cgrammar.py',647), ('struct_declarator_list',3,'p_struct_declarator_list','ctypesgencore/parser/cgrammar.py',648), ('struct_declarator',1,'p_struct_declarator','ctypesgencore/parser/cgrammar.py',656), ('struct_declarator',2,'p_struct_declarator','ctypesgencore/parser/cgrammar.py',657), ('struct_declarator',3,'p_struct_declarator','ctypesgencore/parser/cgrammar.py',658), ('enum_specifier',4,'p_enum_specifier','ctypesgencore/parser/cgrammar.py',669), ('enum_specifier',5,'p_enum_specifier','ctypesgencore/parser/cgrammar.py',670), ('enum_specifier',2,'p_enum_specifier','ctypesgencore/parser/cgrammar.py',671), ('enumerator_list',1,'p_enumerator_list','ctypesgencore/parser/cgrammar.py',684), ('enumerator_list',2,'p_enumerator_list','ctypesgencore/parser/cgrammar.py',685), ('enumerator_list_iso',1,'p_enumerator_list_iso','ctypesgencore/parser/cgrammar.py',692), ('enumerator_list_iso',3,'p_enumerator_list_iso','ctypesgencore/parser/cgrammar.py',693), ('enumerator',1,'p_enumerator','ctypesgencore/parser/cgrammar.py',701), ('enumerator',3,'p_enumerator','ctypesgencore/parser/cgrammar.py',702), ('type_qualifier',1,'p_type_qualifier','ctypesgencore/parser/cgrammar.py',710), ('type_qualifier',1,'p_type_qualifier','ctypesgencore/parser/cgrammar.py',711), ('declarator',2,'p_declarator','ctypesgencore/parser/cgrammar.py',716), ('declarator',1,'p_declarator','ctypesgencore/parser/cgrammar.py',717), ('direct_declarator',1,'p_direct_declarator','ctypesgencore/parser/cgrammar.py',729), ('direct_declarator',3,'p_direct_declarator','ctypesgencore/parser/cgrammar.py',730), ('direct_declarator',4,'p_direct_declarator','ctypesgencore/parser/cgrammar.py',731), ('direct_declarator',3,'p_direct_declarator','ctypesgencore/parser/cgrammar.py',732), ('direct_declarator',4,'p_direct_declarator','ctypesgencore/parser/cgrammar.py',733), ('direct_declarator',4,'p_direct_declarator','ctypesgencore/parser/cgrammar.py',734), ('direct_declarator',3,'p_direct_declarator','ctypesgencore/parser/cgrammar.py',735), ('pointer',1,'p_pointer','ctypesgencore/parser/cgrammar.py',764), ('pointer',2,'p_pointer','ctypesgencore/parser/cgrammar.py',765), ('pointer',2,'p_pointer','ctypesgencore/parser/cgrammar.py',766), ('pointer',3,'p_pointer','ctypesgencore/parser/cgrammar.py',767), ('type_qualifier_list',1,'p_type_qualifier_list','ctypesgencore/parser/cgrammar.py',784), ('type_qualifier_list',2,'p_type_qualifier_list','ctypesgencore/parser/cgrammar.py',785), ('parameter_type_list',1,'p_parameter_type_list','ctypesgencore/parser/cgrammar.py',793), ('parameter_type_list',3,'p_parameter_type_list','ctypesgencore/parser/cgrammar.py',794), ('parameter_list',1,'p_parameter_list','ctypesgencore/parser/cgrammar.py',803), ('parameter_list',3,'p_parameter_list','ctypesgencore/parser/cgrammar.py',804), ('parameter_declaration',2,'p_parameter_declaration','ctypesgencore/parser/cgrammar.py',812), ('parameter_declaration',2,'p_parameter_declaration','ctypesgencore/parser/cgrammar.py',813), ('parameter_declaration',1,'p_parameter_declaration','ctypesgencore/parser/cgrammar.py',814), ('identifier_list',1,'p_identifier_list','ctypesgencore/parser/cgrammar.py',822), ('identifier_list',3,'p_identifier_list','ctypesgencore/parser/cgrammar.py',823), ('type_name',1,'p_type_name','ctypesgencore/parser/cgrammar.py',835), ('type_name',2,'p_type_name','ctypesgencore/parser/cgrammar.py',836), ('abstract_declarator',1,'p_abstract_declarator','ctypesgencore/parser/cgrammar.py',852), ('abstract_declarator',1,'p_abstract_declarator','ctypesgencore/parser/cgrammar.py',853), ('abstract_declarator',2,'p_abstract_declarator','ctypesgencore/parser/cgrammar.py',854), ('direct_abstract_declarator',3,'p_direct_abstract_declarator','ctypesgencore/parser/cgrammar.py',873), ('direct_abstract_declarator',2,'p_direct_abstract_declarator','ctypesgencore/parser/cgrammar.py',874), ('direct_abstract_declarator',3,'p_direct_abstract_declarator','ctypesgencore/parser/cgrammar.py',875), ('direct_abstract_declarator',3,'p_direct_abstract_declarator','ctypesgencore/parser/cgrammar.py',876), ('direct_abstract_declarator',4,'p_direct_abstract_declarator','ctypesgencore/parser/cgrammar.py',877), ('direct_abstract_declarator',2,'p_direct_abstract_declarator','ctypesgencore/parser/cgrammar.py',878), ('direct_abstract_declarator',3,'p_direct_abstract_declarator','ctypesgencore/parser/cgrammar.py',879), ('direct_abstract_declarator',3,'p_direct_abstract_declarator','ctypesgencore/parser/cgrammar.py',880), ('direct_abstract_declarator',4,'p_direct_abstract_declarator','ctypesgencore/parser/cgrammar.py',881), ('initializer',1,'p_initializer','ctypesgencore/parser/cgrammar.py',918), ('initializer',3,'p_initializer','ctypesgencore/parser/cgrammar.py',919), ('initializer',4,'p_initializer','ctypesgencore/parser/cgrammar.py',920), ('initializer_list',1,'p_initializer_list','ctypesgencore/parser/cgrammar.py',924), ('initializer_list',3,'p_initializer_list','ctypesgencore/parser/cgrammar.py',925), ('statement',1,'p_statement','ctypesgencore/parser/cgrammar.py',929), ('statement',1,'p_statement','ctypesgencore/parser/cgrammar.py',930), ('statement',1,'p_statement','ctypesgencore/parser/cgrammar.py',931), ('statement',1,'p_statement','ctypesgencore/parser/cgrammar.py',932), ('statement',1,'p_statement','ctypesgencore/parser/cgrammar.py',933), ('statement',1,'p_statement','ctypesgencore/parser/cgrammar.py',934), ('labeled_statement',3,'p_labeled_statement','ctypesgencore/parser/cgrammar.py',938), ('labeled_statement',4,'p_labeled_statement','ctypesgencore/parser/cgrammar.py',939), ('labeled_statement',3,'p_labeled_statement','ctypesgencore/parser/cgrammar.py',940), ('compound_statement',2,'p_compound_statement','ctypesgencore/parser/cgrammar.py',944), ('compound_statement',3,'p_compound_statement','ctypesgencore/parser/cgrammar.py',945), ('compound_statement',3,'p_compound_statement','ctypesgencore/parser/cgrammar.py',946), ('compound_statement',4,'p_compound_statement','ctypesgencore/parser/cgrammar.py',947), ('compound_statement',3,'p_compound_statement_error','ctypesgencore/parser/cgrammar.py',951), ('declaration_list',1,'p_declaration_list','ctypesgencore/parser/cgrammar.py',956), ('declaration_list',2,'p_declaration_list','ctypesgencore/parser/cgrammar.py',957), ('statement_list',1,'p_statement_list','ctypesgencore/parser/cgrammar.py',961), ('statement_list',2,'p_statement_list','ctypesgencore/parser/cgrammar.py',962), ('expression_statement',1,'p_expression_statement','ctypesgencore/parser/cgrammar.py',966), ('expression_statement',2,'p_expression_statement','ctypesgencore/parser/cgrammar.py',967), ('expression_statement',2,'p_expression_statement_error','ctypesgencore/parser/cgrammar.py',970), ('selection_statement',5,'p_selection_statement','ctypesgencore/parser/cgrammar.py',975), ('selection_statement',7,'p_selection_statement','ctypesgencore/parser/cgrammar.py',976), ('selection_statement',5,'p_selection_statement','ctypesgencore/parser/cgrammar.py',977), ('iteration_statement',5,'p_iteration_statement','ctypesgencore/parser/cgrammar.py',981), ('iteration_statement',7,'p_iteration_statement','ctypesgencore/parser/cgrammar.py',982), ('iteration_statement',6,'p_iteration_statement','ctypesgencore/parser/cgrammar.py',983), ('iteration_statement',7,'p_iteration_statement','ctypesgencore/parser/cgrammar.py',984), ('jump_statement',3,'p_jump_statement','ctypesgencore/parser/cgrammar.py',988), ('jump_statement',2,'p_jump_statement','ctypesgencore/parser/cgrammar.py',989), ('jump_statement',2,'p_jump_statement','ctypesgencore/parser/cgrammar.py',990), ('jump_statement',2,'p_jump_statement','ctypesgencore/parser/cgrammar.py',991), ('jump_statement',3,'p_jump_statement','ctypesgencore/parser/cgrammar.py',992), ('external_declaration',1,'p_external_declaration','ctypesgencore/parser/cgrammar.py',996), ('external_declaration',1,'p_external_declaration','ctypesgencore/parser/cgrammar.py',997), ('function_definition',4,'p_function_definition','ctypesgencore/parser/cgrammar.py',1003), ('function_definition',3,'p_function_definition','ctypesgencore/parser/cgrammar.py',1004), ('function_definition',3,'p_function_definition','ctypesgencore/parser/cgrammar.py',1005), ('function_definition',2,'p_function_definition','ctypesgencore/parser/cgrammar.py',1006), ('define',3,'p_define','ctypesgencore/parser/cgrammar.py',1010), ('define',4,'p_define','ctypesgencore/parser/cgrammar.py',1011), ('define',4,'p_define','ctypesgencore/parser/cgrammar.py',1012), ('define',5,'p_define','ctypesgencore/parser/cgrammar.py',1013), ('define',6,'p_define','ctypesgencore/parser/cgrammar.py',1014), ('define',6,'p_define','ctypesgencore/parser/cgrammar.py',1015), ('define',7,'p_define','ctypesgencore/parser/cgrammar.py',1016), ('define',3,'p_define_error','ctypesgencore/parser/cgrammar.py',1049), ('macro_parameter_list',1,'p_macro_parameter_list','ctypesgencore/parser/cgrammar.py',1078), ('macro_parameter_list',3,'p_macro_parameter_list','ctypesgencore/parser/cgrammar.py',1079), ]
360.690141
63,748
0.686243
22,738
102,436
3.046354
0.033116
0.070494
0.100176
0.107597
0.269663
0.262473
0.24642
0.201854
0.171031
0.168057
0
0.50575
0.008435
102,436
283
63,749
361.964664
0.17621
0.000605
0
0.007299
1
0
0.18986
0.124939
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1
1
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
b3129ace6571614adcaca241a7d80cb8f7bda4b7
86
py
Python
data/snippets/py/USEFUL_IMPORTS.py
netcharm/ironclad
5892c43b540b216d638e0fed2e6cf3fd8289fdfc
[ "PSF-2.0" ]
null
null
null
data/snippets/py/USEFUL_IMPORTS.py
netcharm/ironclad
5892c43b540b216d638e0fed2e6cf3fd8289fdfc
[ "PSF-2.0" ]
null
null
null
data/snippets/py/USEFUL_IMPORTS.py
netcharm/ironclad
5892c43b540b216d638e0fed2e6cf3fd8289fdfc
[ "PSF-2.0" ]
null
null
null
from System import IntPtr, NullReferenceException from Ironclad import CPyMarshal
21.5
50
0.837209
9
86
8
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.151163
86
3
51
28.666667
0.986301
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
5
2fa3fbcfb8d25838969745efc535fa06d9956932
295
py
Python
crank/net/trainer/__init__.py
abeersaqib/crank
0241ef46a618e24212e4a73b399e2293b4ffca08
[ "MIT" ]
162
2020-05-28T05:24:50.000Z
2022-03-26T00:12:40.000Z
crank/net/trainer/__init__.py
abeersaqib/crank
0241ef46a618e24212e4a73b399e2293b4ffca08
[ "MIT" ]
39
2020-05-29T08:18:03.000Z
2022-01-08T13:32:47.000Z
crank/net/trainer/__init__.py
abeersaqib/crank
0241ef46a618e24212e4a73b399e2293b4ffca08
[ "MIT" ]
31
2020-05-28T12:31:08.000Z
2022-02-19T14:58:35.000Z
from .basetrainer import BaseTrainer # noqa from .trainer_vqvae import VQVAETrainer # noqa from .trainer_lsgan import LSGANTrainer # noqa from .trainer_cyclegan import CycleGANTrainer # noqa from .trainer_stargan import StarGANTrainer # noqa from .basetrainer import TrainerWrapper # noqa
42.142857
53
0.816949
34
295
6.970588
0.411765
0.168776
0.253165
0
0
0
0
0
0
0
0
0
0.142373
295
6
54
49.166667
0.936759
0.098305
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
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
1
0
1
0
1
0
0
5
2fdee3e464d987bc7037a463cf7a4ac6cd24b5a5
130
py
Python
helpdesk/tasks.py
AmatorAVG/django-helpdesk-atoria
0e530b02a6ff0144e9a7d0f12a2af4e33f6b7ed9
[ "BSD-3-Clause", "CC-BY-4.0", "MIT" ]
1
2020-04-10T15:49:13.000Z
2020-04-10T15:49:13.000Z
helpdesk/tasks.py
AmatorAVG/django-helpdesk-atoria
0e530b02a6ff0144e9a7d0f12a2af4e33f6b7ed9
[ "BSD-3-Clause", "CC-BY-4.0", "MIT" ]
null
null
null
helpdesk/tasks.py
AmatorAVG/django-helpdesk-atoria
0e530b02a6ff0144e9a7d0f12a2af4e33f6b7ed9
[ "BSD-3-Clause", "CC-BY-4.0", "MIT" ]
1
2021-11-12T19:43:11.000Z
2021-11-12T19:43:11.000Z
from celery import shared_task from .email import process_email @shared_task def helpdesk_process_email(): process_email()
14.444444
32
0.8
18
130
5.444444
0.5
0.367347
0
0
0
0
0
0
0
0
0
0
0.146154
130
8
33
16.25
0.882883
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
true
0
0.4
0
0.6
0
1
0
0
null
1
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
1
0
1
0
0
0
0
5
6408b47db9c14da5b66b2729935bb93507193cbc
63
py
Python
tests/guinea-pigs/nose/docstrings/testa.py
djeebus/teamcity-python
b4d38efc1f2c8269128715bf084de9a2d463a922
[ "Apache-2.0" ]
105
2015-06-24T15:40:41.000Z
2022-02-04T10:30:34.000Z
tests/guinea-pigs/nose/docstrings/testa.py
djeebus/teamcity-python
b4d38efc1f2c8269128715bf084de9a2d463a922
[ "Apache-2.0" ]
145
2015-06-24T15:26:28.000Z
2022-03-22T20:04:19.000Z
tests/guinea-pigs/nose/docstrings/testa.py
djeebus/teamcity-python
b4d38efc1f2c8269128715bf084de9a2d463a922
[ "Apache-2.0" ]
76
2015-07-20T08:18:21.000Z
2022-03-18T20:03:53.000Z
def test_func(): """ My cool test.name """ assert True
15.75
29
0.571429
9
63
3.888889
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.269841
63
3
30
21
0.76087
0.269841
0
0
0
0
0
0
0
0
0
0
0.5
1
0.5
true
0
0
0
0.5
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
1
0
1
1
0
0
0
0
0
0
5
642f9d30fbfa0e8008cd5ea1061ba7c3bfbc0e99
287
py
Python
wecs/panda3d/__init__.py
thetestgame/wecs
16ac277ec96d7689e7b5c9c245c0f81d57c955bb
[ "BSD-3-Clause" ]
13
2019-06-18T22:05:53.000Z
2021-11-29T21:43:23.000Z
wecs/panda3d/__init__.py
thetestgame/wecs
16ac277ec96d7689e7b5c9c245c0f81d57c955bb
[ "BSD-3-Clause" ]
21
2019-12-31T10:11:05.000Z
2020-11-01T23:00:24.000Z
wecs/panda3d/__init__.py
thetestgame/wecs
16ac277ec96d7689e7b5c9c245c0f81d57c955bb
[ "BSD-3-Clause" ]
6
2019-09-30T20:49:40.000Z
2020-11-10T01:31:55.000Z
from .core import ECSShowBase import wecs.panda3d.prototype import wecs.panda3d.camera import wecs.panda3d.ai import wecs.panda3d.animation import wecs.panda3d.debug import wecs.panda3d.spawnpoints import wecs.panda3d.mouseover import wecs.panda3d.avatar_ui import wecs.panda3d.gravity
23.916667
31
0.853659
41
287
5.95122
0.390244
0.368852
0.627049
0
0
0
0
0
0
0
0
0.034091
0.080139
287
11
32
26.090909
0.890152
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
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
1
0
1
0
1
0
0
5
64343735ec01a5554489357de370e02882774b62
71
py
Python
b2/account_info/__init__.py
SergeyBurma/B2_Command_Line_Tool
65d8adf080e1502cd51c78f9bc9ce3b0bc787147
[ "MIT" ]
1
2020-09-06T09:32:44.000Z
2020-09-06T09:32:44.000Z
b2/account_info/__init__.py
SergeyBurma/B2_Command_Line_Tool
65d8adf080e1502cd51c78f9bc9ce3b0bc787147
[ "MIT" ]
null
null
null
b2/account_info/__init__.py
SergeyBurma/B2_Command_Line_Tool
65d8adf080e1502cd51c78f9bc9ce3b0bc787147
[ "MIT" ]
null
null
null
from .in_memory import InMemoryAccountInfo assert InMemoryAccountInfo
17.75
42
0.887324
7
71
8.857143
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.098592
71
3
43
23.666667
0.96875
0
0
0
0
0
0
0
0
0
0
0
0.5
1
0
true
0
0.5
0
0.5
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
1
0
0
1
0
1
0
0
0
0
5
643c9d3941ee6de028f774e942032f993146016a
39
py
Python
tests/__init__.py
JessBinder/rafm
97032238506c9e4f70f89e7c4ab3d4ce06ea23b0
[ "MIT" ]
1
2022-01-27T18:55:05.000Z
2022-01-27T18:55:05.000Z
tests/__init__.py
JessBinder/rafm
97032238506c9e4f70f89e7c4ab3d4ce06ea23b0
[ "MIT" ]
44
2021-11-11T22:23:27.000Z
2022-03-28T22:37:02.000Z
tests/__init__.py
JessBinder/rafm
97032238506c9e4f70f89e7c4ab3d4ce06ea23b0
[ "MIT" ]
2
2021-11-01T16:38:55.000Z
2021-11-02T20:34:41.000Z
"""Test suite for the rafm package."""
19.5
38
0.666667
6
39
4.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.153846
39
1
39
39
0.787879
0.820513
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
ff2e378820d177808e26f4f3acd952da0df64664
509
py
Python
others/utils.py
booleangabs/Machine-Learning-With-Numpy
6a493c67979290e0a1d03cc8fb97f78448bd2156
[ "MIT" ]
null
null
null
others/utils.py
booleangabs/Machine-Learning-With-Numpy
6a493c67979290e0a1d03cc8fb97f78448bd2156
[ "MIT" ]
null
null
null
others/utils.py
booleangabs/Machine-Learning-With-Numpy
6a493c67979290e0a1d03cc8fb97f78448bd2156
[ "MIT" ]
null
null
null
import numpy as np class Constants: # Preprocessing (ppr) PPR_SCALE_MINMAX = 0 PPR_SCALE_STD = 1 # Encoding (enc) ENC_CAT2ONEHOT = 0 ENC_ONEHOT2CAT = 1 class Algorithm: def __init__(self): pass def fit(self): raise NotImplementedError() def predict(self): raise NotImplementedError() def initializeWeights(n_inputs, n_outputs): abs_n = 1 / n_inputs return np.random.uniform(-abs_n, abs_n, (n_inputs, n_outputs))
21.208333
66
0.630648
63
509
4.809524
0.539683
0.069307
0.184818
0.20462
0
0
0
0
0
0
0
0.019337
0.288802
509
24
66
21.208333
0.81768
0.066798
0
0.125
0
0
0
0
0
0
0
0
0
1
0.25
false
0.0625
0.0625
0
0.75
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
1
0
1
0
0
1
0
0
5
ff30d1dab628c8c5b96d9eca99eb627866ec8321
2,657
py
Python
algo/test/plot_donut.py
allengrr/deadlock_project
933878077c45a7df04daa087407bb2620c064617
[ "MIT" ]
null
null
null
algo/test/plot_donut.py
allengrr/deadlock_project
933878077c45a7df04daa087407bb2620c064617
[ "MIT" ]
null
null
null
algo/test/plot_donut.py
allengrr/deadlock_project
933878077c45a7df04daa087407bb2620c064617
[ "MIT" ]
1
2021-03-21T17:54:26.000Z
2021-03-21T17:54:26.000Z
import matplotlib.pyplot as plt import numpy as np import random as r import time from drawnow import * recipe = ["225 g flour", "90 g sugar", "1 egg", "60 g butter", "100 ml milk", "1/2 package of yeast", "225 g flour", "90 g sugar", "1 egg", "60 g butter", "225 g flour", "90 g sugar", "1 egg", "60 g butter", "100 ml milk"] data = [277, 250, 267, 213, 274, 297]#[225, 90, 50, 60, 100, 5] def gen_rand(): global data data=[] for i in range(15): data.append(r.randint(50,300)) def plotme(): print(data) #plt.subplots(figsize=(6, 3), subplot_kw=dict(aspect="equal")) wedges, texts = plt.pie(data, wedgeprops=dict(width=0.5), startangle=-40) bbox_props = dict(boxstyle="square,pad=0.3", fc="w", ec="k", lw=0.72) kw = dict(arrowprops=dict(arrowstyle="-"), bbox=bbox_props, zorder=0, va="center") for i, p in enumerate(wedges): ang = (p.theta2 - p.theta1)/2. + p.theta1 y = np.sin(np.deg2rad(ang)) x = np.cos(np.deg2rad(ang)) horizontalalignment = {-1: "right", 1: "left"}[int(np.sign(x))] connectionstyle = "angle,angleA=0,angleB={}".format(ang) kw["arrowprops"].update({"connectionstyle": connectionstyle}) plt.annotate(recipe[i], xy=(x, y), xytext=(np.sign(x),y), horizontalalignment=horizontalalignment, **kw) plt.title("Matplotlib bakery: A donut") #plt.legend() #plt.show() def plotme_easy(): print(data) #fig, ax = plt.subplots(figsize=(6, 3), subplot_kw=dict(aspect="equal")) wedges, texts = plt.pie(data, wedgeprops=dict(width=0.5), startangle=-40, labels=recipe) #bbox_props = dict(boxstyle="square,pad=0.3", fc="w", ec="k", lw=0.72) #kw = dict(arrowprops=dict(arrowstyle="-"), # bbox=bbox_props, zorder=0, va="center") #for i, p in enumerate(wedges): #ang = (p.theta2 - p.theta1)/2. + p.theta1 #y = np.sin(np.deg2rad(ang)) #x = np.cos(np.deg2rad(ang)) #horizontalalignment = {-1: "right", 1: "left"}[int(np.sign(x))] #connectionstyle = "angle,angleA=0,angleB={}".format(ang) #kw["arrowprops"].update({"connectionstyle": connectionstyle}) #plt.annotate(recipe[i], xy=(x, y), xytext=(np.sign(x),y) # horizontalalignment=horizontalalignment, **kw) plt.title("Matplotlib bakery: A donut") #plt.legend() #plt.show() def main(): while True: gen_rand() drawnow(plotme_easy) time.sleep(1) main()
29.853933
92
0.563794
361
2,657
4.121884
0.34072
0.016129
0.032258
0.022177
0.794355
0.794355
0.794355
0.794355
0.794355
0.794355
0
0.057477
0.260068
2,657
88
93
30.193182
0.69939
0.291306
0
0.288462
0
0
0.153433
0.012876
0
0
0
0
0
1
0.076923
false
0
0.096154
0
0.173077
0.038462
0
0
0
null
0
0
0
0
1
1
1
1
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
5
ff3bd5f02c422ab51b25b8e4a18c57aafedacd50
318
py
Python
cacreader/swig-4.0.2/Examples/test-suite/python/return_const_value_runme.py
kyletanyag/LL-Smartcard
02abea9de5a13f8bae4d7832ab34cb7f0d9514c9
[ "BSD-3-Clause" ]
1,031
2015-01-02T14:08:47.000Z
2022-03-29T02:25:27.000Z
cacreader/swig-4.0.2/Examples/test-suite/python/return_const_value_runme.py
kyletanyag/LL-Smartcard
02abea9de5a13f8bae4d7832ab34cb7f0d9514c9
[ "BSD-3-Clause" ]
240
2015-01-11T04:27:19.000Z
2022-03-30T00:35:57.000Z
cacreader/swig-4.0.2/Examples/test-suite/python/return_const_value_runme.py
kyletanyag/LL-Smartcard
02abea9de5a13f8bae4d7832ab34cb7f0d9514c9
[ "BSD-3-Clause" ]
224
2015-01-05T06:13:54.000Z
2022-02-25T14:39:51.000Z
import return_const_value import sys p = return_const_value.Foo_ptr_getPtr() if (p.getVal() != 17): print "Runtime test1 failed. p.getVal()=", p.getVal() sys.exit(1) p = return_const_value.Foo_ptr_getConstPtr() if (p.getVal() != 17): print "Runtime test2 failed. p.getVal()=", p.getVal() sys.exit(1)
24.461538
57
0.679245
50
318
4.12
0.4
0.203884
0.23301
0.165049
0.718447
0.718447
0.271845
0.271845
0
0
0
0.029851
0.157233
318
12
58
26.5
0.738806
0
0
0.4
0
0
0.207547
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.2
0
0
0
null
1
1
1
0
1
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
5
ff52fc989a6eac1fa873bb11a71cfde39833e8a2
12
py
Python
fast_test_tools/tools/fast_test_tools/dummy.py
CCMS-UCSD/ProteoSAFe_Workflow_Deployment
2ce1e68d0c153b76316ccd2b6956d1faa1ad6217
[ "CC0-1.0" ]
1
2021-04-12T18:40:34.000Z
2021-04-12T18:40:34.000Z
fast_test_tools/tools/fast_test_tools/dummy.py
CCMS-UCSD/ProteoSAFe_Workflow_Deployment
2ce1e68d0c153b76316ccd2b6956d1faa1ad6217
[ "CC0-1.0" ]
28
2019-09-05T20:41:22.000Z
2021-06-23T18:10:06.000Z
fast_test_tools/tools/fast_test_tools/dummy.py
CCMS-UCSD/CCMSDeployments
2ce1e68d0c153b76316ccd2b6956d1faa1ad6217
[ "CC0-1.0" ]
null
null
null
print("RUN")
12
12
0.666667
2
12
4
1
0
0
0
0
0
0
0
0
0
0
0
0
12
1
12
12
0.666667
0
0
0
0
0
0.230769
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
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
1
0
0
0
0
1
0
5
44208376dcf911e5a12d996ba2b137f1d8573e56
1,029
py
Python
solutions/2019/prob_23.py
PolPtoAmo/HPCodeWarsBCN
8a98b1feb6d8b7d2d5b8b4dace3e02af9e6bb4e8
[ "MIT" ]
1
2021-02-27T09:46:06.000Z
2021-02-27T09:46:06.000Z
solutions/2019/prob_23.py
PolPtoAmo/HPCodeWarsBCN
8a98b1feb6d8b7d2d5b8b4dace3e02af9e6bb4e8
[ "MIT" ]
null
null
null
solutions/2019/prob_23.py
PolPtoAmo/HPCodeWarsBCN
8a98b1feb6d8b7d2d5b8b4dace3e02af9e6bb4e8
[ "MIT" ]
1
2021-02-27T12:03:33.000Z
2021-02-27T12:03:33.000Z
n = int(input()) if n == 1: print('x') elif n % 2 == 0: for x in range(n//2): print(" " * x + "\\" + " " * 2*(n//2-(x+1)) + "/") for x in range(n//2): print(" " * (n//2-(x+1)) + "/" + " " * 2*x + "\\") elif (n % 2) == 1: for i in range(n//2): print(" " * i + "\\" + " " * (2*(n//2-(i+1))+1) + "/") print(" " * ((n//2)) + "X") for i in range(n//2): print(" " * (n//2-(i+1)) + "/" + " " * ((2*i)+1) + "\\") rows_cols = int(input()) if rows_cols == 1: print("X") elif (rows_cols % 2) == 0: for i in range(rows_cols//2): print(" " * i + "\\" + " " * 2*(rows_cols//2-(i+1)) + "/") for i in range(rows_cols//2): print(" " * (rows_cols//2-(i+1)) + "/" + " " * 2*i + "\\") elif (rows_cols % 2) == 1: for i in range(rows_cols//2): print(" " * i + "\\" + " " * (2*(rows_cols//2-(i+1))+1) + "/") print(" " * ((rows_cols//2)) + "X") for i in range(rows_cols//2): print(" " * (rows_cols//2-(i+1)) + "/" + " " * ((2*i)+1) + "\\")
34.3
72
0.371234
161
1,029
2.291925
0.099379
0.281843
0.268293
0.178862
0.696477
0.655827
0.620596
0.414634
0.414634
0.411924
0
0.065934
0.292517
1,029
29
73
35.482759
0.440934
0
0
0.285714
0
0
0.044704
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
0
0
0
null
1
1
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
1
0
5
4452a66413efb4217e31d8c90c9de6fbd4d4c89d
312
py
Python
uks_app/views/__init__.py
matkovskim/uks-project
81c5c8a82341b6b33c5c1ac97f6b7ec757fd0bcd
[ "MIT" ]
5
2020-02-12T14:32:45.000Z
2020-07-31T17:54:32.000Z
uks_app/views/__init__.py
matkovskim/uks-project
81c5c8a82341b6b33c5c1ac97f6b7ec757fd0bcd
[ "MIT" ]
28
2020-01-29T11:20:09.000Z
2022-03-12T00:14:47.000Z
uks_app/views/__init__.py
matkovskim/uks-project
81c5c8a82341b6b33c5c1ac97f6b7ec757fd0bcd
[ "MIT" ]
2
2020-07-03T10:14:52.000Z
2020-07-03T10:53:27.000Z
from .project_views import * from .issue_views import * from .subissue_views import * from .label_views import * from .views import * from .search_views import * from .code_change_views import * from .comment_views import * from .followers_views import * from .users_views import * from .milestone_views import *
28.363636
32
0.791667
44
312
5.363636
0.318182
0.512712
0.635593
0
0
0
0
0
0
0
0
0
0.137821
312
11
33
28.363636
0.877323
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
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
1
0
1
0
1
0
0
5
44839c4a12c570578f131c60e323c676ac5c2122
106
py
Python
AD-HOC/2377.py
jeconiassantos/uriissues
f6c32f8632b9940a4886240ea5d22300922dc79a
[ "MIT" ]
null
null
null
AD-HOC/2377.py
jeconiassantos/uriissues
f6c32f8632b9940a4886240ea5d22300922dc79a
[ "MIT" ]
null
null
null
AD-HOC/2377.py
jeconiassantos/uriissues
f6c32f8632b9940a4886240ea5d22300922dc79a
[ "MIT" ]
null
null
null
L, D = map(int, input().split(' ')) K, P = map(int, input().split(' ')) print((P * int(L / D)) + (L * K))
26.5
35
0.462264
19
106
2.578947
0.473684
0.081633
0.44898
0.653061
0
0
0
0
0
0
0
0
0.198113
106
3
36
35.333333
0.576471
0
0
0
0
0
0.018868
0
0
0
0
0
0
1
0
true
0
0
0
0
0.333333
1
0
0
null
0
1
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
1
0
0
0
0
0
0
5
92707e4cb09c76a75ab3bee79adfa1eb36f33d2f
88
py
Python
apps/auth/admin.py
dlooto/driver-vision
676256891971df1d5eee990be54fb31f485d0ae3
[ "MIT" ]
2
2020-06-16T01:52:47.000Z
2021-03-24T08:34:23.000Z
apps/auth/admin.py
dlooto/driver-vision
676256891971df1d5eee990be54fb31f485d0ae3
[ "MIT" ]
2
2020-02-12T03:09:54.000Z
2020-06-05T22:47:17.000Z
apps/auth/admin.py
dlooto/driver-vision
676256891971df1d5eee990be54fb31f485d0ae3
[ "MIT" ]
null
null
null
#coding=utf-8 # # Created on May 19, 2014, by Junn # from django.contrib import admin
11
34
0.704545
15
88
4.133333
1
0
0
0
0
0
0
0
0
0
0
0.098592
0.193182
88
7
35
12.571429
0.774648
0.511364
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
5
92a35967cac1f0a3ab29137cc6737597fb713ea4
24
py
Python
contests_atcoder/abc171/abc171_a.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
null
null
null
contests_atcoder/abc171/abc171_a.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
1
2021-01-02T06:36:51.000Z
2021-01-02T06:36:51.000Z
contests_atcoder/abc171/abc171_a.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
null
null
null
print("Aa"[input()>"Z"])
24
24
0.541667
4
24
3.25
1
0
0
0
0
0
0
0
0
0
0
0
0
24
1
24
24
0.541667
0
0
0
0
0
0.12
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
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
1
0
0
0
0
1
0
5
92a519191e0618b7f83b04f97f5817075734256a
74
py
Python
main.py
deshipu/ukeeb
323e2fcc10219366bdb5a442e088883bf8ac535a
[ "Apache-2.0" ]
13
2020-10-06T23:08:19.000Z
2022-02-24T22:01:39.000Z
main.py
deshipu/ukeeb
323e2fcc10219366bdb5a442e088883bf8ac535a
[ "Apache-2.0" ]
null
null
null
main.py
deshipu/ukeeb
323e2fcc10219366bdb5a442e088883bf8ac535a
[ "Apache-2.0" ]
1
2022-02-18T00:19:45.000Z
2022-02-18T00:19:45.000Z
import matrix matrix.Keeb(matrix.MATRIX, matrix.COLS, matrix.ROWS).run()
18.5
58
0.77027
11
74
5.181818
0.545455
0.631579
0
0
0
0
0
0
0
0
0
0
0.081081
74
3
59
24.666667
0.838235
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
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
1
0
1
0
0
0
0
5
2b7d8355ff25ce67c3a355e87ecd0694e1c8b715
85
py
Python
liquepy/exceptions.py
geosharma/liquepy
d567f6a7eb93eb76218f718375f2d34355d7edd4
[ "MIT" ]
4
2020-04-12T14:49:24.000Z
2020-09-22T09:28:10.000Z
liquepy/exceptions.py
geosharma/liquepy
d567f6a7eb93eb76218f718375f2d34355d7edd4
[ "MIT" ]
null
null
null
liquepy/exceptions.py
geosharma/liquepy
d567f6a7eb93eb76218f718375f2d34355d7edd4
[ "MIT" ]
4
2019-11-02T02:11:34.000Z
2021-04-30T06:06:41.000Z
import warnings def deprecation(message): warnings.warn(message, stacklevel=3)
14.166667
40
0.764706
10
85
6.5
0.8
0
0
0
0
0
0
0
0
0
0
0.013699
0.141176
85
5
41
17
0.876712
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
0.666667
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
1
0
0
1
0
1
0
0
5
2b964d2bf40376b581b67a54afc028334047090e
208
py
Python
setup.py
TobiPrae/operations_management_methods
8d056ad976e9c9c857f2c39a41a8a96aed7fac09
[ "MIT" ]
null
null
null
setup.py
TobiPrae/operations_management_methods
8d056ad976e9c9c857f2c39a41a8a96aed7fac09
[ "MIT" ]
null
null
null
setup.py
TobiPrae/operations_management_methods
8d056ad976e9c9c857f2c39a41a8a96aed7fac09
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='operations_management_methods', version='0.5', description='Methods used for OM', packages=['operations_management_methods'], zip_safe=False)
26
49
0.716346
24
208
6
0.791667
0.277778
0.375
0
0
0
0
0
0
0
0
0.011696
0.177885
208
7
50
29.714286
0.830409
0
0
0
0
0
0.384615
0.278846
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
0
1
0
0
null
1
1
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
1
0
0
0
0
0
0
5
2baee25a7f5c028d708fef78156c10de84a6fc56
10,990
py
Python
libtc/clients/tests/basetest.py
tobbez/libtc
c51cf2d28efa4fe3b398593a3990663f67cb617f
[ "MIT" ]
null
null
null
libtc/clients/tests/basetest.py
tobbez/libtc
c51cf2d28efa4fe3b398593a3990663f67cb617f
[ "MIT" ]
null
null
null
libtc/clients/tests/basetest.py
tobbez/libtc
c51cf2d28efa4fe3b398593a3990663f67cb617f
[ "MIT" ]
null
null
null
import hashlib import shutil import tempfile import time from pathlib import Path import pytest from libtc import TorrentData, TorrentState, bdecode, bencode @pytest.fixture def testfiles(): with tempfile.TemporaryDirectory() as tmp_path: tmp_path = Path(tmp_path) testfiles = Path(__file__).parent / "testfiles" shutil.copytree(testfiles, tmp_path / "testfiles") yield tmp_path / "testfiles" def test_test_connection(client): assert client.test_connection() def test_list(client): assert client.list() == [] def verify_torrent_state(client, states, do_not_fail=False): hard_states = set(["infohash", "name", "data_location",]) for _ in range(50): found_invalid_state = False time.sleep(0.1) torrent_list = client.list() if len(torrent_list) != len(states): continue for td, state in zip(torrent_list, states): assert isinstance(td, TorrentData) for k, v in state.items(): td_v = getattr(td, k) if v != td_v: print(f"Invalid state {k} is {td_v} should be {v}") if k in hard_states: assert v == td_v else: print(f"Invalid state {k} is {td_v} should be {v}") found_invalid_state = True break if not found_invalid_state: return else: if not do_not_fail: pytest.fail("Torrent states was never correctly added") def test_add_torrent_multifile(client, testfiles): torrent = testfiles / "Some-Release.torrent" torrent_data = bdecode(torrent.read_bytes()) infohash = hashlib.sha1(bencode(torrent_data[b"info"])).hexdigest() client.add(torrent_data, testfiles, fast_resume=False) verify_torrent_state( client, [ { "infohash": infohash, "name": "Some-Release", "state": TorrentState.ACTIVE, "progress": 100.0, } ], ) assert client.get_download_path(infohash) == testfiles / "Some-Release" client.remove(infohash) verify_torrent_state(client, []) assert (testfiles / "Some-Release").exists() def test_add_torrent_singlefile(client, testfiles): torrent = testfiles / "test_single.torrent" torrent_data = bdecode(torrent.read_bytes()) infohash = hashlib.sha1(bencode(torrent_data[b"info"])).hexdigest() client.add(torrent_data, testfiles, fast_resume=False) verify_torrent_state( client, [ { "infohash": infohash, "name": "file_a.txt", "state": TorrentState.ACTIVE, "progress": 100.0, } ], ) assert client.get_download_path(infohash) == testfiles client.remove(infohash) verify_torrent_state(client, []) assert (testfiles / "file_a.txt").exists() def test_add_torrent_multifile_no_add_name_to_folder(client, testfiles): torrent = testfiles / "Some-Release.torrent" torrent_data = bdecode(torrent.read_bytes()) infohash = hashlib.sha1(bencode(torrent_data[b"info"])).hexdigest() client.add( torrent_data, testfiles / "Some-Release", fast_resume=False, add_name_to_folder=False, ) verify_torrent_state( client, [{"infohash": infohash, "state": TorrentState.ACTIVE, "progress": 100.0}], ) assert client.get_download_path(infohash) == testfiles / "Some-Release" client.remove(infohash) verify_torrent_state(client, []) assert (testfiles / "Some-Release").exists() def test_add_torrent_multifile_no_add_name_to_folder_different_name(client, testfiles): new_path = Path(testfiles) / "New-Some-Release" (testfiles / "Some-Release").rename(new_path) torrent = testfiles / "Some-Release.torrent" torrent_data = bdecode(torrent.read_bytes()) infohash = hashlib.sha1(bencode(torrent_data[b"info"])).hexdigest() client.add( torrent_data, new_path, fast_resume=False, add_name_to_folder=False, minimum_expected_data="full", ) verify_torrent_state( client, [{"infohash": infohash, "state": TorrentState.ACTIVE, "progress": 100.0}], ) assert client.get_download_path(infohash) == testfiles / "New-Some-Release" client.remove(infohash) verify_torrent_state(client, []) assert (Path(testfiles) / "New-Some-Release").exists() def test_add_torrent_singlefile_no_add_name_to_folder(client, testfiles): torrent = testfiles / "test_single.torrent" torrent_data = bdecode(torrent.read_bytes()) infohash = hashlib.sha1(bencode(torrent_data[b"info"])).hexdigest() client.add(torrent_data, testfiles, fast_resume=False, add_name_to_folder=False) verify_torrent_state( client, [{"infohash": infohash, "state": TorrentState.ACTIVE, "progress": 100.0}], ) assert client.get_download_path(infohash) == testfiles client.remove(infohash) verify_torrent_state(client, []) assert (testfiles / "file_a.txt").exists() def test_add_torrent_singlefile_no_data(client, testfiles, tmp_path): torrent = testfiles / "test_single.torrent" torrent_data = bdecode(torrent.read_bytes()) infohash = hashlib.sha1(bencode(torrent_data[b"info"])).hexdigest() client.add(torrent_data, tmp_path, fast_resume=False, add_name_to_folder=False) verify_torrent_state( client, [{"infohash": infohash, "state": TorrentState.ACTIVE, "progress": 0.0,}] ) assert client.get_download_path(infohash) == Path(tmp_path) client.remove(infohash) verify_torrent_state(client, []) assert (testfiles / "file_a.txt").exists() def test_retrieve_torrent(client, testfiles): torrent = testfiles / "test_single.torrent" torrent_data = bdecode(torrent.read_bytes()) infohash = hashlib.sha1(bencode(torrent_data[b"info"])).hexdigest() client.add(torrent_data, testfiles, fast_resume=False) verify_torrent_state(client, [{"infohash": infohash,}]) retrieved_torrent_data = bdecode(client.retrieve_torrentfile(infohash)) assert ( hashlib.sha1(bencode(retrieved_torrent_data[b"info"])).hexdigest() == infohash ) client.remove(infohash) def test_add_torrent_multifile_stopped(client, testfiles): torrent = testfiles / "Some-Release.torrent" torrent_data = bdecode(torrent.read_bytes()) infohash = hashlib.sha1(bencode(torrent_data[b"info"])).hexdigest() client.add(torrent_data, testfiles, fast_resume=False, stopped=True) verify_torrent_state( client, [{"infohash": infohash, "name": "Some-Release", "progress": 100.0,}], do_not_fail=True, ) verify_torrent_state( client, [{"infohash": infohash, "state": TorrentState.STOPPED,}], ) client.start(infohash) verify_torrent_state( client, [{"infohash": infohash, "state": TorrentState.ACTIVE,}], ) assert client.get_download_path(infohash) == testfiles / "Some-Release" client.remove(infohash) verify_torrent_state(client, []) assert (testfiles / "Some-Release").exists() def test_start_stop(client, testfiles): torrent = testfiles / "Some-Release.torrent" torrent_data = bdecode(torrent.read_bytes()) infohash = hashlib.sha1(bencode(torrent_data[b"info"])).hexdigest() client.add(torrent_data, testfiles, fast_resume=False) time.sleep(2) # Weird bug with Deluge verify_torrent_state( client, [ { "infohash": infohash, "name": "Some-Release", "state": TorrentState.ACTIVE, "progress": 100.0, } ], ) client.stop(infohash) verify_torrent_state( client, [ { "infohash": infohash, "name": "Some-Release", "state": TorrentState.STOPPED, "progress": 100.0, } ], ) client.start(infohash) verify_torrent_state( client, [ { "infohash": infohash, "name": "Some-Release", "state": TorrentState.ACTIVE, "progress": 100.0, } ], ) client.remove(infohash) verify_torrent_state(client, []) assert (testfiles / "Some-Release").exists() def test_get_files_multifile(client, testfiles): torrent = testfiles / "Some-Release.torrent" torrent_data = bdecode(torrent.read_bytes()) infohash = hashlib.sha1(bencode(torrent_data[b"info"])).hexdigest() client.add(torrent_data, testfiles, fast_resume=False) verify_torrent_state( client, [ { "infohash": infohash, "name": "Some-Release", "state": TorrentState.ACTIVE, "progress": 100.0, } ], ) assert client.get_download_path(infohash) == testfiles / "Some-Release" files = sorted(client.get_files(infohash), key=lambda x: x.path) expected_filenames = sorted( [ "Sample/some-rls.mkv", "Subs/some-subs.rar", "Subs/some-subs.sfv", "some-rls.nfo", "some-rls.r00", "some-rls.r01", "some-rls.r02", "some-rls.r03", "some-rls.r04", "some-rls.r05", "some-rls.r06", "some-rls.rar", "some-rls.sfv", ] ) assert len(files) == len(expected_filenames) for f, name in zip(files, expected_filenames): assert f.path == name assert f.progress == 100.0 assert f.size == 12 client.remove(infohash) verify_torrent_state(client, []) assert (testfiles / "Some-Release").exists() def test_get_files_singlefile(client, testfiles): torrent = testfiles / "test_single.torrent" torrent_data = bdecode(torrent.read_bytes()) infohash = hashlib.sha1(bencode(torrent_data[b"info"])).hexdigest() client.add(torrent_data, testfiles, fast_resume=False) verify_torrent_state( client, [ { "infohash": infohash, "name": "file_a.txt", "state": TorrentState.ACTIVE, "progress": 100.0, } ], ) assert client.get_download_path(infohash) == testfiles files = sorted(client.get_files(infohash), key=lambda x: x.path) expected_filenames = sorted(["file_a.txt",]) assert len(files) == len(expected_filenames) for f, name in zip(files, expected_filenames): assert f.path == name assert f.progress == 100.0 assert f.size == 11 client.remove(infohash) verify_torrent_state(client, []) assert (testfiles / "file_a.txt").exists()
30.612813
88
0.616924
1,201
10,990
5.430475
0.117402
0.059031
0.071757
0.095676
0.790708
0.773689
0.773689
0.765103
0.749617
0.717725
0
0.010962
0.261237
10,990
358
89
30.698324
0.792339
0.001911
0
0.552901
0
0
0.114069
0
0
0
0
0
0.109215
1
0.051195
false
0
0.023891
0
0.078498
0.006826
0
0
0
null
0
0
0
0
1
1
1
1
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
5
2bb327599035526f681e050a45979b7ce9e9c2f0
2,613
py
Python
movimento/tests.py
pontual/sistema-v1
5f63d11083077035326787a56c3ae8b66ee2054c
[ "MIT" ]
1
2020-11-24T19:18:33.000Z
2020-11-24T19:18:33.000Z
movimento/tests.py
pontual/sistema-v1
5f63d11083077035326787a56c3ae8b66ee2054c
[ "MIT" ]
null
null
null
movimento/tests.py
pontual/sistema-v1
5f63d11083077035326787a56c3ae8b66ee2054c
[ "MIT" ]
null
null
null
from django.test import TestCase from registros.models import Empresa, Produto, Moeda, Configuracao from .models import Transacao, ItemDeLinha class ProdutoTests(TestCase): @classmethod def setUpTestData(cls): cls.pontual = Empresa.objects.create(nome="Pontual") cls.cctc = Empresa.objects.create(nome="CCTC") cls.cliente = Empresa.objects.create(nome="Cliente") cls.produto_1 = Produto.objects.create(codigo="1", nome="Produto 1", por_caixa=100) cls.produto_2 = Produto.objects.create(codigo="2", nome="Produto 2", por_caixa=200) cls.moeda = Moeda.objects.create(nome="Real", codigo="BRL") cls.conf = Configuracao.objects.create(empresa_ativa=cls.pontual) def testEstoqueCompra(self): compra = Transacao.objects.create(vendedor=self.cctc, comprador=self.pontual, moeda=self.moeda) itemCompra = ItemDeLinha.objects.create(transacao=compra, qtde=10000, produto=self.produto_1, preco_unitario=1) self.assertEquals(self.produto_1.estoque(), 10000) def testEstoqueVenda(self): compra = Transacao.objects.create(vendedor=self.cctc, comprador=self.pontual, moeda=self.moeda) itemCompra = ItemDeLinha.objects.create(transacao=compra, qtde=200, produto=self.produto_1, preco_unitario=1) venda = Transacao.objects.create(vendedor=self.pontual, comprador=self.cliente, moeda=self.moeda) itemVenda = ItemDeLinha.objects.create(transacao=venda, qtde=50, produto=self.produto_1, preco_unitario=1) self.assertEquals(self.produto_1.estoque(), 150) class TransacaoTests(TestCase): @classmethod def setUpTestData(cls): cls.pontual = Empresa.objects.create(nome="Pontual") cls.cctc = Empresa.objects.create(nome="CCTC") cls.cliente = Empresa.objects.create(nome="Cliente") cls.produto_1 = Produto.objects.create(codigo="1", nome="Produto 1", por_caixa=100) cls.produto_2 = Produto.objects.create(codigo="2", nome="Produto 2", por_caixa=200) cls.moeda = Moeda.objects.create(nome="Real", codigo="BRL") cls.conf = Configuracao.objects.create(empresa_ativa=cls.pontual) def testTransacaoTotal(self): compra = Transacao.objects.create(vendedor=self.cctc, comprador=self.pontual, moeda=self.moeda) itemCompra_1 = ItemDeLinha.objects.create(transacao=compra, qtde=200, produto=self.produto_1, preco_unitario=10) itemCompra_2 = ItemDeLinha.objects.create(transacao=compra, qtde=100, produto=self.produto_2, preco_unitario=30) self.assertEquals(compra.total(), 5000)
44.288136
120
0.716035
323
2,613
5.718266
0.182663
0.161884
0.073633
0.077964
0.781267
0.762859
0.739578
0.739036
0.739036
0.739036
0
0.030951
0.159204
2,613
58
121
45.051724
0.809741
0
0
0.552632
0
0
0.034443
0
0
0
0
0
0.078947
1
0.131579
false
0
0.078947
0
0.263158
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
2bb4bd02683ba6fae13666a16f9937b333aa96eb
338
py
Python
podoc/ast/__init__.py
podoc/podoc
1868e7f82a521b1722dca528802acedf9010b11a
[ "BSD-3-Clause" ]
54
2015-09-28T11:00:47.000Z
2021-11-10T13:38:56.000Z
podoc/ast/__init__.py
podoc/podoc
1868e7f82a521b1722dca528802acedf9010b11a
[ "BSD-3-Clause" ]
36
2015-09-14T15:50:44.000Z
2018-10-16T02:44:27.000Z
podoc/ast/__init__.py
podoc/podoc
1868e7f82a521b1722dca528802acedf9010b11a
[ "BSD-3-Clause" ]
9
2015-09-15T07:15:00.000Z
2018-05-29T02:11:38.000Z
# -*- coding: utf-8 -*- # flake8: noqa """JSON plugin.""" #------------------------------------------------------------------------------------------------- # Imports #------------------------------------------------------------------------------------------------- from ._ast import ASTNode, ASTPlugin, PandocPlugin, ast_from_pandoc
28.166667
98
0.278107
17
338
5.352941
0.882353
0
0
0
0
0
0
0
0
0
0
0.00639
0.073965
338
11
99
30.727273
0.284345
0.739645
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
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
1
0
1
0
1
0
0
5
2bd98a55c1d2bae9c8c0f549ecf381bbdf7f78b7
434
py
Python
torch_em/metric/__init__.py
JonasHell/torch-em
2e008e0cd2f0ea6681581374fce4f9f47b986d55
[ "MIT" ]
13
2021-03-09T21:31:09.000Z
2022-03-21T05:24:26.000Z
torch_em/metric/__init__.py
JonasHell/torch-em
2e008e0cd2f0ea6681581374fce4f9f47b986d55
[ "MIT" ]
16
2021-03-02T23:19:34.000Z
2022-03-25T19:43:41.000Z
torch_em/metric/__init__.py
JonasHell/torch-em
2e008e0cd2f0ea6681581374fce4f9f47b986d55
[ "MIT" ]
4
2021-05-18T08:29:33.000Z
2022-02-11T12:16:20.000Z
from .instance_segmentation_metric import (EmbeddingMWSIOUMetric, EmbeddingMWSRandMetric, EmbeddingMWSSBDMetric, EmbeddingMWSVOIMetric, HDBScanIOUMetric, HDBScanRandMetric, HDBScanSBDMetric, HDBScanVOIMetric, MulticutRandMetric, MulticutVOIMetric, MWSIOUMetric, MWSSBDMetric, MWSRandMetric, MWSVOIMetric)
86.8
135
0.626728
19
434
14.210526
1
0
0
0
0
0
0
0
0
0
0
0
0.336406
434
4
136
108.5
0.9375
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5