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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
db28e6ce30f246cb646cceb39e63cc7f2f678c06
| 129
|
py
|
Python
|
clarisse/var/lib/linux/menus/main_menu/edit/enable.py
|
GuillaumeVFX/pipel
|
a1bd726239e6887745396723c3aad5d61e88ce44
|
[
"MIT"
] | 2
|
2020-05-12T11:38:44.000Z
|
2022-03-07T04:13:50.000Z
|
clarisse/var/lib/linux/menus/main_menu/edit/enable.py
|
GuillaumeVFX/pipel
|
a1bd726239e6887745396723c3aad5d61e88ce44
|
[
"MIT"
] | null | null | null |
clarisse/var/lib/linux/menus/main_menu/edit/enable.py
|
GuillaumeVFX/pipel
|
a1bd726239e6887745396723c3aad5d61e88ce44
|
[
"MIT"
] | null | null | null |
ix.enable_command_history()
ix.api.SdkHelpers.enable_disable_items_selected(ix.application, False)
ix.disable_command_history()
| 25.8
| 70
| 0.860465
| 18
| 129
| 5.777778
| 0.611111
| 0.269231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.03876
| 129
| 5
| 71
| 25.8
| 0.83871
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 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
| 0
| 0
| 0
| 0
|
0
| 4
|
db290ff13cf6cf264eb25a0a7493e8dbf673a523
| 1,667
|
py
|
Python
|
deploy/models.py
|
chenbin743/OpsSystem
|
7427627aef8c3886b7d5bd8f2d8fc9215c0a1a19
|
[
"MIT"
] | 1
|
2018-11-14T08:33:57.000Z
|
2018-11-14T08:33:57.000Z
|
deploy/models.py
|
chenbin743/OpsSystem
|
7427627aef8c3886b7d5bd8f2d8fc9215c0a1a19
|
[
"MIT"
] | null | null | null |
deploy/models.py
|
chenbin743/OpsSystem
|
7427627aef8c3886b7d5bd8f2d8fc9215c0a1a19
|
[
"MIT"
] | 1
|
2018-11-14T08:33:58.000Z
|
2018-11-14T08:33:58.000Z
|
from __future__ import unicode_literals
from django.db import models
class RepoModel(models.Model):
repo_type_choice=(('svn','svn repo type'),('git','git repo type'))
repoName=models.CharField(max_length=100)
repoAddress=models.CharField(max_length=200)
repoUser=models.CharField(max_length=50,blank=False)
repoPassword=models.CharField(max_length=50,blank=True)
wwwDir=models.CharField(max_length=50)
testDeployIP=models.CharField(max_length=50)
preDeployIP=models.CharField(max_length=50)
onlineDeployIP=models.CharField(max_length=500)
localCheckoutDir=models.CharField(max_length=100)
excludeDir=models.CharField(max_length=500)
repoType=models.CharField(max_length=5,choices=repo_type_choice)
addDate=models.DateTimeField()
class Meta:
db_table='ops_repo_info'
class DeployInfoModel(models.Model):
repoName=models.CharField(max_length=100)
target=models.CharField(max_length=10)
revision=models.CharField(max_length=100)
person=models.CharField(max_length=50)
date=models.DateTimeField()
remark=models.CharField(max_length=80,default=None)
log=models.TextField()
class Meta:
db_table='ops_deploy_info'
class RollBackInfoModel(models.Model):
repoName=models.CharField(max_length=100)
curRevision=models.CharField(max_length=30)
backRevision=models.CharField(max_length=30)
status=models.CharField(max_length=10,choices=(('success','rollback success'),('failed','rollback failed')))
rollDate=models.DateTimeField()
target=models.CharField(max_length=10)
person=models.CharField(max_length=30)
class Meta:
db_table='ops_rollback_info'
| 36.23913
| 112
| 0.770846
| 215
| 1,667
| 5.790698
| 0.311628
| 0.26506
| 0.318072
| 0.424096
| 0.51245
| 0.203213
| 0.073896
| 0.073896
| 0
| 0
| 0
| 0.034436
| 0.111578
| 1,667
| 45
| 113
| 37.044444
| 0.806212
| 0
| 0
| 0.210526
| 0
| 0
| 0.072585
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.026316
| 0.052632
| 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
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
db2f1dfc6e971373eb634b0d29e35486e3fdf98d
| 270
|
py
|
Python
|
wagtail/wagtailimages/api/admin/serializers.py
|
patphongs/wagtail
|
32555f7a1c599c139e0f26c22907c9612af2e015
|
[
"BSD-3-Clause"
] | 3
|
2019-08-08T09:09:35.000Z
|
2020-12-15T18:04:17.000Z
|
wagtail/wagtailimages/api/admin/serializers.py
|
patphongs/wagtail
|
32555f7a1c599c139e0f26c22907c9612af2e015
|
[
"BSD-3-Clause"
] | null | null | null |
wagtail/wagtailimages/api/admin/serializers.py
|
patphongs/wagtail
|
32555f7a1c599c139e0f26c22907c9612af2e015
|
[
"BSD-3-Clause"
] | 2
|
2017-08-08T01:39:02.000Z
|
2018-05-06T06:16:10.000Z
|
from __future__ import absolute_import, unicode_literals
from ..fields import ImageRenditionField
from ..v2.serializers import ImageSerializer
class AdminImageSerializer(ImageSerializer):
thumbnail = ImageRenditionField('max-165x165', source='*', read_only=True)
| 30
| 78
| 0.818519
| 27
| 270
| 7.925926
| 0.740741
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.028807
| 0.1
| 270
| 8
| 79
| 33.75
| 0.851852
| 0
| 0
| 0
| 0
| 0
| 0.044444
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.6
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
db37a8c0fefab364445cf604befcc5dd647b7a20
| 165
|
py
|
Python
|
Hackerrank/Python/triangle-quest-2.py
|
PROxZIMA/Competitive-Coding
|
ba6b365ea130b6fcaa15c5537b530ed363bab793
|
[
"MIT"
] | 1
|
2021-01-10T13:29:21.000Z
|
2021-01-10T13:29:21.000Z
|
Hackerrank/Python/triangle-quest-2.py
|
PROxZIMA/Competitive-Coding
|
ba6b365ea130b6fcaa15c5537b530ed363bab793
|
[
"MIT"
] | null | null | null |
Hackerrank/Python/triangle-quest-2.py
|
PROxZIMA/Competitive-Coding
|
ba6b365ea130b6fcaa15c5537b530ed363bab793
|
[
"MIT"
] | null | null | null |
num = int(input())
for i in range(1, num+1):
s = ''
for j in range(1, i):
s += str(j)
for j in range(i, 0, -1):
s += str(j)
print(s)
| 18.333333
| 29
| 0.430303
| 32
| 165
| 2.21875
| 0.40625
| 0.295775
| 0.225352
| 0.309859
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.048077
| 0.369697
| 165
| 9
| 30
| 18.333333
| 0.634615
| 0
| 0
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.125
| 0
| 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
| 4
|
db382fcb4b5a0080bccabe48e3053fa1b3322e9d
| 359
|
py
|
Python
|
challenges/challenge21.py
|
stevenliu216/challenges
|
a8991fc3cc2309f8ef0ba6d189be001377153583
|
[
"MIT"
] | null | null | null |
challenges/challenge21.py
|
stevenliu216/challenges
|
a8991fc3cc2309f8ef0ba6d189be001377153583
|
[
"MIT"
] | 14
|
2018-09-18T02:00:28.000Z
|
2019-07-08T15:59:56.000Z
|
challenges/challenge21.py
|
stevenliu216/challenges
|
a8991fc3cc2309f8ef0ba6d189be001377153583
|
[
"MIT"
] | 7
|
2018-09-17T14:52:24.000Z
|
2020-10-02T21:55:20.000Z
|
def replace_spaces_dashes(line):
return "-".join(line.split())
def last_five_lowercase(line):
return line[-5:].lower()
def backwards_skipped(line):
return line[::-2]
if __name__ == '__main__':
line = input("Enter a string: ")
print(replace_spaces_dashes(line))
print(last_five_lowercase(line))
print(backwards_skipped(line))
| 19.944444
| 38
| 0.688022
| 47
| 359
| 4.87234
| 0.510638
| 0.131004
| 0.165939
| 0.200873
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006667
| 0.164345
| 359
| 17
| 39
| 21.117647
| 0.756667
| 0
| 0
| 0
| 0
| 0
| 0.069638
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.272727
| false
| 0
| 0
| 0.272727
| 0.545455
| 0.272727
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
e1f666faedcb28e657f56f1d4ad941ef9c8712e6
| 103
|
py
|
Python
|
boundlexx/boundless/apps.py
|
AngellusMortis/boundlexx
|
407f5e38e8e0f067cbcb358787fc9af6a9be9b2a
|
[
"MIT"
] | 1
|
2021-04-23T11:49:50.000Z
|
2021-04-23T11:49:50.000Z
|
boundlexx/boundless/apps.py
|
AngellusMortis/boundlexx
|
407f5e38e8e0f067cbcb358787fc9af6a9be9b2a
|
[
"MIT"
] | 1
|
2021-04-17T18:17:12.000Z
|
2021-04-17T18:17:12.000Z
|
boundlexx/boundless/apps.py
|
AngellusMortis/boundlexx
|
407f5e38e8e0f067cbcb358787fc9af6a9be9b2a
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class BoundlessConfig(AppConfig):
name = "boundlexx.boundless"
| 17.166667
| 33
| 0.776699
| 11
| 103
| 7.272727
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145631
| 103
| 5
| 34
| 20.6
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0.184466
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
e1ffda61b54a71ad174a871f4b57b8360c98feb1
| 131
|
py
|
Python
|
processing-shelter-data/fix_export_file.py
|
Save-All-The-Pets/data-processing
|
d008b6e1341db7bdbb2be5854cb15eea810731ac
|
[
"MIT"
] | null | null | null |
processing-shelter-data/fix_export_file.py
|
Save-All-The-Pets/data-processing
|
d008b6e1341db7bdbb2be5854cb15eea810731ac
|
[
"MIT"
] | null | null | null |
processing-shelter-data/fix_export_file.py
|
Save-All-The-Pets/data-processing
|
d008b6e1341db7bdbb2be5854cb15eea810731ac
|
[
"MIT"
] | null | null | null |
import pandas as pd
df = pd.read_csv("DataExport.csv", sep="|")
df.to_csv("DataExport_for_postgres.csv", header=False, index=False)
| 43.666667
| 67
| 0.755725
| 22
| 131
| 4.318182
| 0.681818
| 0.273684
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076336
| 131
| 3
| 67
| 43.666667
| 0.785124
| 0
| 0
| 0
| 0
| 0
| 0.318182
| 0.204545
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 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
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
c001aee31dc6c56ab16eab80bc38e552f397a313
| 56
|
py
|
Python
|
ex40.py
|
sandeepsharmaproject/python_hardway
|
8a88831667b57140a3153a475cea3d378aea37fe
|
[
"MIT"
] | null | null | null |
ex40.py
|
sandeepsharmaproject/python_hardway
|
8a88831667b57140a3153a475cea3d378aea37fe
|
[
"MIT"
] | null | null | null |
ex40.py
|
sandeepsharmaproject/python_hardway
|
8a88831667b57140a3153a475cea3d378aea37fe
|
[
"MIT"
] | null | null | null |
#this is class file which i will do when i'll get time .
| 56
| 56
| 0.732143
| 13
| 56
| 3.153846
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.214286
| 56
| 1
| 56
| 56
| 0.931818
| 0.982143
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 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
| 4
|
c00e633acf64dfb3492d2d586bd58ec7285863d3
| 43
|
py
|
Python
|
packages/clutter-gtk.py
|
mhutch/bockbuild
|
0d989e2d0259d17d41a195f8d28b3844a4652e7b
|
[
"MIT"
] | null | null | null |
packages/clutter-gtk.py
|
mhutch/bockbuild
|
0d989e2d0259d17d41a195f8d28b3844a4652e7b
|
[
"MIT"
] | null | null | null |
packages/clutter-gtk.py
|
mhutch/bockbuild
|
0d989e2d0259d17d41a195f8d28b3844a4652e7b
|
[
"MIT"
] | null | null | null |
GnomeXzPackage ('clutter-gtk', '1.2', '0')
| 21.5
| 42
| 0.627907
| 6
| 43
| 4.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 0.093023
| 43
| 1
| 43
| 43
| 0.615385
| 0
| 0
| 0
| 0
| 0
| 0.348837
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 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
| 0
| 0
| 0
| 0
|
0
| 4
|
c011782c01e38581227dec7d845905876e2fca8c
| 61
|
py
|
Python
|
code/arc026_1_02.py
|
KoyanagiHitoshi/AtCoder
|
731892543769b5df15254e1f32b756190378d292
|
[
"MIT"
] | 3
|
2019-08-16T16:55:48.000Z
|
2021-04-11T10:21:40.000Z
|
code/arc026_1_02.py
|
KoyanagiHitoshi/AtCoder
|
731892543769b5df15254e1f32b756190378d292
|
[
"MIT"
] | null | null | null |
code/arc026_1_02.py
|
KoyanagiHitoshi/AtCoder
|
731892543769b5df15254e1f32b756190378d292
|
[
"MIT"
] | null | null | null |
N,A,B=map(int,input().split())
print(A*max(0,N-5)+B*min(N,5))
| 30.5
| 30
| 0.606557
| 17
| 61
| 2.176471
| 0.705882
| 0.108108
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.05
| 0.016393
| 61
| 2
| 31
| 30.5
| 0.566667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.5
| 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
| 0
| 0
| 0
| 1
|
0
| 4
|
c055afffcbc16ebcfd5412ef530a871ca21e7f34
| 110
|
py
|
Python
|
PythonLearn/basic/packageSample/sample2.py
|
OKKyu/PythonLearn
|
48dc4cc2a1a34d99b09f8d37a5566d448dcf987c
|
[
"MIT"
] | null | null | null |
PythonLearn/basic/packageSample/sample2.py
|
OKKyu/PythonLearn
|
48dc4cc2a1a34d99b09f8d37a5566d448dcf987c
|
[
"MIT"
] | null | null | null |
PythonLearn/basic/packageSample/sample2.py
|
OKKyu/PythonLearn
|
48dc4cc2a1a34d99b09f8d37a5566d448dcf987c
|
[
"MIT"
] | null | null | null |
#! python3
# -*- coding: utf-8 -*-
def method(args1='sample2'):
print(args1 + " is runned")
print("")
| 18.333333
| 31
| 0.554545
| 13
| 110
| 4.692308
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057471
| 0.209091
| 110
| 5
| 32
| 22
| 0.643678
| 0.281818
| 0
| 0
| 0
| 0
| 0.220779
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.333333
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
c05f89b0d49fc7a7e2ecdd0fdea1e2b10dcbe717
| 1,263
|
py
|
Python
|
snakejazz/__init__.py
|
mchalela/SnakeJazz
|
4c2de7195c1b802a278e4549372d5e7909b8a576
|
[
"MIT"
] | 2
|
2021-06-30T19:42:46.000Z
|
2021-10-13T23:26:12.000Z
|
snakejazz/__init__.py
|
mchalela/SnakeJazz
|
4c2de7195c1b802a278e4549372d5e7909b8a576
|
[
"MIT"
] | 2
|
2020-11-30T16:41:19.000Z
|
2020-12-05T21:22:32.000Z
|
snakejazz/__init__.py
|
mchalela/SnakeJazz
|
4c2de7195c1b802a278e4549372d5e7909b8a576
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of the
# SnakeJazz Project (https://github.com/mchalela/SnakeJazz/).
# Copyright (c) 2020, Martin Chalela
# License: MIT
# Full Text: https://github.com/mchalela/SnakeJazz/blob/master/LICENSE
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# DOCS
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
SnakeJazz.
Listen to the running status of your ~~Snake~~ Python functions.
"""
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# METADATA
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__version__ = "0.1.1"
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# IMPORTS
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
from . import sounds # noqa
from .snakejazz import zzz, www, rattle # noqa
from .snakejazz import play_sound, get_sound # noqa
from .snakejazz import DEFAULT_URL_START, DEFAULT_START # noqa
from .snakejazz import DEFAULT_URL_FINISH, DEFAULT_FINISH # noqa
from .snakejazz import DEFAULT_URL_ERROR, DEFAULT_ERROR # noqa
from .snakejazz import SnakeNotFoundError, URLError # noqa
| 33.236842
| 78
| 0.461599
| 107
| 1,263
| 5.308411
| 0.560748
| 0.084507
| 0.179577
| 0.242958
| 0.283451
| 0.174296
| 0
| 0
| 0
| 0
| 0
| 0.007086
| 0.106097
| 1,263
| 37
| 79
| 34.135135
| 0.496014
| 0.66825
| 0
| 0
| 0
| 0
| 0.012853
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.875
| 0
| 0.875
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
fbebd1f526c12cbd05d66e63b3bbebb4cc903df8
| 149
|
py
|
Python
|
python/testData/override/instanceCheck_after.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/override/instanceCheck_after.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/override/instanceCheck_after.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
class MyType(type):
def __instancecheck__(self, instance):
<selection>return super(MyType, self).__instancecheck__(instance)</selection>
| 37.25
| 85
| 0.744966
| 15
| 149
| 6.866667
| 0.666667
| 0.330097
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134228
| 149
| 3
| 86
| 49.666667
| 0.79845
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fbf330e19e5b1d808ae9187b0ebec66377debcd6
| 340
|
py
|
Python
|
Exercicios/ex016.py
|
vaniaferreira/Python
|
5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab
|
[
"MIT"
] | null | null | null |
Exercicios/ex016.py
|
vaniaferreira/Python
|
5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab
|
[
"MIT"
] | null | null | null |
Exercicios/ex016.py
|
vaniaferreira/Python
|
5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab
|
[
"MIT"
] | null | null | null |
#Tuplas são imutavéis
lanche = ('hamburguer','suco','pizza','pudim', 'batata frita')
print(sorted(lanche))
print(len(lanche))
print(lanche)
print(lanche[2])
for comida in lanche:
print('Eu vou comer {}'.format(comida))
print('Comi pra caramba')
for cont in range(0, len(lanche)):
print (lanche[cont])
print('Comi pra caramba')
| 18.888889
| 62
| 0.688235
| 49
| 340
| 4.77551
| 0.55102
| 0.235043
| 0.217949
| 0.17094
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006803
| 0.135294
| 340
| 17
| 63
| 20
| 0.789116
| 0.058824
| 0
| 0.181818
| 0
| 0
| 0.261006
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.727273
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
fbf44abe7c24382157344fb74c0beaae35b2c971
| 327
|
py
|
Python
|
input2.py
|
sshan0509/day3
|
21cb110f28346e5171252a1ecd37b48526e7afd6
|
[
"Apache-2.0"
] | null | null | null |
input2.py
|
sshan0509/day3
|
21cb110f28346e5171252a1ecd37b48526e7afd6
|
[
"Apache-2.0"
] | null | null | null |
input2.py
|
sshan0509/day3
|
21cb110f28346e5171252a1ecd37b48526e7afd6
|
[
"Apache-2.0"
] | null | null | null |
print("Sum > ")
num1 = input("First number : ")
num2 = input("second number : ")
print(int(num1) + int(num2))
# 빼기, 곱하기, 나누기, 나머지
print(int(num1) - int(num2))
print(int(num1) * int(num2))
print(int(num1) / int(num2))
print(int(num1) % int(num2))
if(int(num1)%2 == 0):
print("num1 is even")
else:
print("num1 is odd")
| 20.4375
| 32
| 0.608563
| 53
| 327
| 3.754717
| 0.377358
| 0.211055
| 0.301508
| 0.376884
| 0.477387
| 0.38191
| 0.38191
| 0.38191
| 0.38191
| 0.38191
| 0
| 0.0625
| 0.168196
| 327
| 16
| 33
| 20.4375
| 0.669118
| 0.051988
| 0
| 0
| 0
| 0
| 0.194175
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.666667
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
221724be567fc53fdd237d8f12dd185c1d142a59
| 227
|
py
|
Python
|
test/test_distro.py
|
sestrella/asdf-ghc
|
2d824f096434893d0fdd8b503cee3a6cd0597803
|
[
"MIT"
] | null | null | null |
test/test_distro.py
|
sestrella/asdf-ghc
|
2d824f096434893d0fdd8b503cee3a6cd0597803
|
[
"MIT"
] | null | null | null |
test/test_distro.py
|
sestrella/asdf-ghc
|
2d824f096434893d0fdd8b503cee3a6cd0597803
|
[
"MIT"
] | null | null | null |
from lib.distro import get_distro
import unittest
class TestDistro(unittest.TestCase):
def test_get_distro(self):
distro = get_distro('darwin')
self.assertEqual(distro, {'name': 'apple', 'version': 0.0})
| 22.7
| 67
| 0.69163
| 29
| 227
| 5.275862
| 0.62069
| 0.176471
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010753
| 0.180617
| 227
| 9
| 68
| 25.222222
| 0.811828
| 0
| 0
| 0
| 0
| 0
| 0.096916
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 1
| 0.166667
| 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
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
222596945575299b2bd4a1f6aa4f2cafe85a2e66
| 204
|
py
|
Python
|
src/markovNodeSetAbstract.py
|
maniatic0/Python-Markov-Experiment
|
427821be5a6b7a974d89a1c250d2d83474dcbc50
|
[
"MIT"
] | null | null | null |
src/markovNodeSetAbstract.py
|
maniatic0/Python-Markov-Experiment
|
427821be5a6b7a974d89a1c250d2d83474dcbc50
|
[
"MIT"
] | null | null | null |
src/markovNodeSetAbstract.py
|
maniatic0/Python-Markov-Experiment
|
427821be5a6b7a974d89a1c250d2d83474dcbc50
|
[
"MIT"
] | null | null | null |
from abc import ABC, abstractmethod
class MarkovNodeSetAbstract(ABC):
@abstractmethod
def markAsDirty(self, node):
pass
@abstractmethod
def markAsClean(self, node):
pass
| 18.545455
| 35
| 0.681373
| 20
| 204
| 6.95
| 0.6
| 0.244604
| 0.172662
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 204
| 11
| 36
| 18.545455
| 0.908497
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.25
| 0.125
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
22416260ad3a26f1986bb1829ef7a8fbb8e1e66b
| 3,216
|
py
|
Python
|
metropolis_example.py
|
bobbywlindsey/stokepy
|
e7f4ad0c27d8fc22129558db6ae0dbbab0627ace
|
[
"MIT"
] | 9
|
2017-05-09T20:00:10.000Z
|
2020-07-02T18:00:22.000Z
|
metropolis_example.py
|
bobbywlindsey/stokepy
|
e7f4ad0c27d8fc22129558db6ae0dbbab0627ace
|
[
"MIT"
] | null | null | null |
metropolis_example.py
|
bobbywlindsey/stokepy
|
e7f4ad0c27d8fc22129558db6ae0dbbab0627ace
|
[
"MIT"
] | 2
|
2017-08-10T14:47:07.000Z
|
2019-01-25T02:37:34.000Z
|
import stokepy as sp
import numpy as np
import urllib.request
import unidecode
# --- In this example, we use the Metropolis algo to decode a cipher --- #
# instantiate class
steps = 5000
samples = 50
ciphered_text = '/ uc.azf-2ff"xu!tffzu.s"ffxf/d1x""tfd7 sk2f?7.f.7f/ uc!f/d1x""2"tzff/d1x""2"fx82f!2kup2"fy-up-fxcc7yf"702f1271c2f.7f!8uk2f,870ff17u5.fxff.7ff17u5.f/fk28df,x".fy-uc".f7.-28f1271c2f!x"-f,870f17u5.f/f.7f17u5.fxfk28df,x".tf1271c2ffcuku5?ffx.ff17u5.ffpiff/2u5?ffxff17u5.f!u82p.cdffu5ff/2.y225iffx82f7,.25f?uk25f.7fy75!28fy-x.s"f"7f?82x.fx/7 .f17u5.fxf.-x.f"7f0x5df1271c2f7,f17u5.f/fx82f"7fm225ff.7ff?2.f.-282iffx5!ffy-x.s"f"7f?82x.fx/7 .f17u5.f/f.-x.f"7f0x5df1271c2f7,f17u5.fxfx82f"7fm225f.7f?2.f.-282tf.-2dff7,.25ffyu"-ff.-x.ff1271c2fy7 c!ffv ".ff75p2fx5!f,78fxccfy78mf7 .fy-282f.-2f-2ccf.-2dfyx5.2!f.7f/2tff08f187""28fyx5.2!f.7f/2fx.f17u5.f!tf17u5.f!ffyx"5s.ffx5dy-282ffu5f1x8.up cx8ifu.fyx"fv ".fx5dfp75k25u25.f17u5.fxfk28dfc75?fyxdf,870f17u5."fxif/fx5!fptf-2fy7 c!f-xk2fxf5up2fcu..c2fp7..x?2ffx.ff17u5.f!iffyu.-ffxe2"f7k28f.-2f!778ifx5!f"125!fxf1c2x"x5.fx07 5.f7,f.u02fx.f17u5.f2ify-up-fy7 c!f/2f.-2f52x82".f1 /f.7f17u5.f!tff-u"ffyu,2f7,ffp7 8"2ffyx5.2!ffpcu0/u5?f87"2"if/ .f-2fyx5.2!fxe2"tf-2f!u!5s.fm57yfy-df;f-2ffv ".ffcum2!ffxe2"tff-2ff,c "-2!ff-7.cdff 5!28ff.-2f!28u"uk2f?8u5"f7,f.-2f/ cc!7:28f!8uk28"tff-2f"-u,.2!f-u"fy2u?-.f,870f,77.ff.7ff,77.iff/ .ffu.ffyx"ff2( xccdf 5p70,78.x/c2ff75ff2xp-tff7/ku7 "cdf"702/7!df-x!f/225fx11xccu5?cdfu5p7012.25.fx5!f-2f-712!f.7f?7!fu.fyx"5s.f-u0tff08f187""28f"xu!9fzd7 fy282f( u.2f25.u.c2!f.7f0xm2fx5df" ??2".u75"f78f187.2"."fx.f.-2fx118718ux.2f.u02fd7 fm57ytzffzx118718ux.2f.u02azf-77.2!fx8.- 8tfzx118718ux.2f.u02af.-2f,u8".fufm52yffx/7 .fu.fyx"fy-25fxfy78m0x5fx88uk2!fx.f0df-702fd2".28!xdtfufx"m2!f-u0fu,f-2s!fp702f.7fpc2x5f.-2fyu5!7y"fx5!f-2f"xu!ff57ff-2s!fp702ff.7ff!207cu"-ff.-2f-7 "2tf-2f!u!5s.f.2ccf02f".8xu?-.fxyxdf7,fp7 8"2tf7-f57tf,u8".f-2fyu12!fxfp7 1c2f7,fyu5!7y"fx5!fp-x8?2!ff02fxf,uk28tf.-25f-2f.7c!f02tzffz/ .f08f!25.if.-2f1cx5"f-xk2f/225fxkxucx/c2fu5f.-2fc7pxcf1cx55u5?f7,,up2f,78f.-2fcx".f5u52f075.-tzffz7-fd2"ify2ccfx"f"775fx"fuf-2x8!fufy25.ff".8xu?-.ff87 5!ff.7ff"22f.-20iffd2".28!xdffx,.285775tffd7 f-x!5s.f2exp.cdf?752f7 .f7,fd7 8fyxdf.7fp'
metro = sp.Metropolis(steps, samples, ciphered_text)
# get corpus about a bad-ass detective
url = 'https://www.gutenberg.org/cache/epub/1661/pg1661.txt'
adv_of_sherlock_holmes = urllib.request.urlopen(url)
corpus = adv_of_sherlock_holmes.read()
corpus = corpus.decode("utf-8") + '/'
# remove unicode accents
corpus = unidecode.unidecode(corpus)
# decide which characters you don't want in corpus
chars_to_remove = ['[', ']', '\n', '\r', '$', '#', '%', '*', '@', \
'&', '+', '<', '>', '=', '_', '{', '}', '|']
# clean the corpus
ts = sp.TextStats(corpus)
ts.clean_corpus(chars_to_remove)
ts.set_corpus_frequencies(ngram = 2, groupby='chars', log=True)
# set target plausibility then run the Markov chain
metro.set_target_plausibility(ts.corpus, ts.corpus_len, ts.unique_symbols, \
ts.ngram, ts.M)
metro.run()
# print results
print(metro.deciphered_text)
| 86.918919
| 2,018
| 0.702425
| 559
| 3,216
| 4.003578
| 0.559928
| 0.008043
| 0.002681
| 0.004468
| 0.014298
| 0.014298
| 0.014298
| 0.014298
| 0
| 0
| 0
| 0.207729
| 0.098881
| 3,216
| 36
| 2,019
| 89.333333
| 0.564527
| 0.086754
| 0
| 0
| 0
| 0.045455
| 0.71165
| 0.634096
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.181818
| 0
| 0.181818
| 0.045455
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
224335e33e776365de3709e2277fb26a5d63e0f8
| 73
|
py
|
Python
|
lib/models/origin_path.py
|
farioso-fernando/Spy-Cockroach
|
22e3c572df308484c08e4ceaeccd0a3b53e960ad
|
[
"MIT"
] | null | null | null |
lib/models/origin_path.py
|
farioso-fernando/Spy-Cockroach
|
22e3c572df308484c08e4ceaeccd0a3b53e960ad
|
[
"MIT"
] | null | null | null |
lib/models/origin_path.py
|
farioso-fernando/Spy-Cockroach
|
22e3c572df308484c08e4ceaeccd0a3b53e960ad
|
[
"MIT"
] | 2
|
2021-12-10T08:02:31.000Z
|
2021-12-19T02:40:24.000Z
|
import os
def originFolderApp():
path = os.getcwd()
return path
| 12.166667
| 22
| 0.657534
| 9
| 73
| 5.333333
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.246575
| 73
| 5
| 23
| 14.6
| 0.872727
| 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
| 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
| 0
| 1
| 0
|
0
| 4
|
224aa3c60801f6b22aa3a13a08e24040aeec53ea
| 144
|
py
|
Python
|
tracardi/process_engine/action/v1/metrics/key_counter/model/configuration.py
|
bytepl/tracardi
|
e8fa4684fa6bd3d05165fe48aa925fc6c1e74923
|
[
"MIT"
] | 153
|
2021-11-02T00:35:41.000Z
|
2022-03-25T16:37:44.000Z
|
tracardi/process_engine/action/v1/metrics/key_counter/model/configuration.py
|
bytepl/tracardi
|
e8fa4684fa6bd3d05165fe48aa925fc6c1e74923
|
[
"MIT"
] | 243
|
2021-10-17T17:00:22.000Z
|
2022-03-28T10:13:34.000Z
|
tracardi/process_engine/action/v1/metrics/key_counter/model/configuration.py
|
bytepl/tracardi
|
e8fa4684fa6bd3d05165fe48aa925fc6c1e74923
|
[
"MIT"
] | 14
|
2021-10-17T11:39:04.000Z
|
2022-03-14T14:44:02.000Z
|
from typing import Union, List
from pydantic import BaseModel
class Configuration(BaseModel):
key: Union[str, List[str]]
save_in: str
| 18
| 31
| 0.743056
| 20
| 144
| 5.3
| 0.65
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.180556
| 144
| 7
| 32
| 20.571429
| 0.898305
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 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
| 0
| 0
|
0
| 4
|
2252030df7beacde5e936813c08f81578996545a
| 135
|
py
|
Python
|
D01/cond_if.py
|
shdx8/dtwrhs
|
108decb8056931fc7601ed455a72ef0d65983ab0
|
[
"MIT"
] | null | null | null |
D01/cond_if.py
|
shdx8/dtwrhs
|
108decb8056931fc7601ed455a72ef0d65983ab0
|
[
"MIT"
] | null | null | null |
D01/cond_if.py
|
shdx8/dtwrhs
|
108decb8056931fc7601ed455a72ef0d65983ab0
|
[
"MIT"
] | null | null | null |
nilai = 9
if (nilai > 7):
print ("Selamat Anda Jadi programmer")
if (nilai > 10):
print ("Selamat Anda Jadi programmer handal")
| 27
| 49
| 0.659259
| 19
| 135
| 4.684211
| 0.578947
| 0.157303
| 0.359551
| 0.449438
| 0.674157
| 0
| 0
| 0
| 0
| 0
| 0
| 0.037736
| 0.214815
| 135
| 5
| 49
| 27
| 0.801887
| 0
| 0
| 0
| 0
| 0
| 0.463235
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.4
| 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
| 0
|
0
| 4
|
2268001f12c599f35d0e6af5981d8a22eb36286f
| 77
|
py
|
Python
|
python/extratrees/__init__.py
|
paolo-losi/libextratrees
|
f903d9afe5fae65d671270da20956a0bab19f59a
|
[
"MIT"
] | 3
|
2016-02-02T20:29:08.000Z
|
2018-03-15T13:50:10.000Z
|
python/extratrees/__init__.py
|
paolo-losi/libextratrees
|
f903d9afe5fae65d671270da20956a0bab19f59a
|
[
"MIT"
] | null | null | null |
python/extratrees/__init__.py
|
paolo-losi/libextratrees
|
f903d9afe5fae65d671270da20956a0bab19f59a
|
[
"MIT"
] | 1
|
2021-11-30T14:22:46.000Z
|
2021-11-30T14:22:46.000Z
|
from .cbindings import convert_to_problem, convert_from_problem, train, load
| 38.5
| 76
| 0.857143
| 11
| 77
| 5.636364
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 77
| 1
| 77
| 77
| 0.885714
| 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
| 0
| 0
|
0
| 4
|
22685b6010caf8d889d19534156ee532b9e53a25
| 3,137
|
gyp
|
Python
|
binding.gyp
|
medooze/fake-h264-encoder
|
fb7c5774cec7d13159f9dbd0a6dd1498ed34afdd
|
[
"MIT"
] | null | null | null |
binding.gyp
|
medooze/fake-h264-encoder
|
fb7c5774cec7d13159f9dbd0a6dd1498ed34afdd
|
[
"MIT"
] | null | null | null |
binding.gyp
|
medooze/fake-h264-encoder
|
fb7c5774cec7d13159f9dbd0a6dd1498ed34afdd
|
[
"MIT"
] | null | null | null |
{
'variables':
{
'external_libmediaserver%' : '<!(echo $LIBMEDIASERVER)',
'external_libmediaserver_include_dirs%' : '<!(echo $LIBMEDIASERVER_INCLUDE)',
},
"targets":
[
{
"target_name": "medooze-fake-h264-encoder",
"cflags":
[
"-march=native",
"-fexceptions",
"-O3",
"-g",
"-Wno-unused-function -Wno-comment",
#"-O0",
#"-fsanitize=address"
],
"cflags_cc":
[
"-fexceptions",
"-std=c++17",
"-O3",
"-g",
"-Wno-unused-function",
"-faligned-new",
"-Wall"
#"-O0",
#"-fsanitize=address,leak"
],
"include_dirs" :
[
'/usr/include/nodejs/',
"<!(node -e \"require('nan')\")"
],
"ldflags" : [" -lpthread -lresolv"],
"link_settings":
{
'libraries': ["-lpthread -lpthread -lresolv"]
},
"sources":
[
"src/fake-h264-encoder_wrap.cxx",
"src/FakeH264VideoEncoderWorker.cpp",
],
"conditions":
[
[
"external_libmediaserver == ''",
{
"include_dirs" :
[
'media-server/include',
'media-server/src',
'media-server/ext/crc32c/include',
'media-server/ext/libdatachannels/src',
'media-server/ext/libdatachannels/src/internal',
],
"sources":
[
"media-server/src/EventLoop.cpp",
"media-server/src/MediaFrameListenerBridge.cpp",
"media-server/src/rtp/DependencyDescriptor.cpp",
"media-server/src/rtp/RTPPacket.cpp",
"media-server/src/rtp/RTPPayload.cpp",
"media-server/src/rtp/RTPHeader.cpp",
"media-server/src/rtp/RTPHeaderExtension.cpp",
"media-server/src/rtp/LayerInfo.cpp",
"media-server/src/VideoLayerSelector.cpp",
"media-server/src/DependencyDescriptorLayerSelector.cpp",
"media-server/src/h264/h264depacketizer.cpp",
"media-server/src/vp8/vp8depacketizer.cpp",
"media-server/src/h264/H264LayerSelector.cpp",
"media-server/src/vp8/VP8LayerSelector.cpp",
"media-server/src/vp9/VP9PayloadDescription.cpp",
"media-server/src/vp9/VP9LayerSelector.cpp",
"media-server/src/vp9/VP9Depacketizer.cpp",
"media-server/src/av1/AV1Depacketizer.cpp",
],
"conditions" : [
['OS=="mac"', {
"xcode_settings": {
"CLANG_CXX_LIBRARY": "libc++",
"CLANG_CXX_LANGUAGE_STANDARD": "c++17",
"OTHER_CFLAGS": [ "-Wno-aligned-allocation-unavailable","-march=native"]
},
}]
]
},
{
"libraries" : [ "<(external_libmediaserver)" ],
"include_dirs" : [ "<@(external_libmediaserver_include_dirs)" ],
'conditions':
[
['OS=="linux"', {
"ldflags" : [" -Wl,-Bsymbolic "],
}],
['OS=="mac"', {
"xcode_settings": {
"CLANG_CXX_LIBRARY": "libc++",
"CLANG_CXX_LANGUAGE_STANDARD": "c++17",
"OTHER_CFLAGS": [ "-Wno-aligned-allocation-unavailable","-march=native"]
},
}],
]
}
]
]
}
]
}
| 27.278261
| 83
| 0.536181
| 271
| 3,137
| 6.092251
| 0.354244
| 0.15324
| 0.161114
| 0.175045
| 0.363416
| 0.141732
| 0.141732
| 0.141732
| 0.141732
| 0.141732
| 0
| 0.019991
| 0.282435
| 3,137
| 114
| 84
| 27.517544
| 0.713461
| 0.01817
| 0
| 0.256881
| 0
| 0
| 0.626815
| 0.413712
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
226c7c7d4c2eb5577f36f611b8ee30ff2eba9205
| 1,153
|
py
|
Python
|
apps/util/animation/__init__.py
|
donno2048/Rosehip-L
|
0c60603a00a7cec14bb44107caae44f43bc94026
|
[
"MIT"
] | 2
|
2020-10-27T14:11:27.000Z
|
2021-05-03T10:45:18.000Z
|
apps/util/animation/__init__.py
|
donno2048/Rosehip-L
|
0c60603a00a7cec14bb44107caae44f43bc94026
|
[
"MIT"
] | 1
|
2020-11-08T13:37:03.000Z
|
2021-11-22T18:19:05.000Z
|
apps/util/animation/__init__.py
|
donno2048/Rosehip-L
|
0c60603a00a7cec14bb44107caae44f43bc94026
|
[
"MIT"
] | null | null | null |
import os;import pygame;import pygame_gui;from pygame_gui.elements.ui_image import UIImage;from math import floor
class Dance(pygame_gui.elements.UIWindow):
def __init__(self, pos, manager):super().__init__(pygame.Rect(pos, (352,300)),manager=manager,window_display_title="animation",object_id="#animation",);self.FRAMES = [];self.FRAMES_LEN = 0;self.FRAME_INDEX = 0;self.dsurf = UIImage(pygame.Rect((0, 0),(320, 240)),pygame.Surface((320, 240)).convert(),manager=manager,container=self,parent_element=self,);app_path = os.path.dirname(os.path.abspath(__file__));frames_path = app_path + "/frames/";[self.FRAMES.append(pygame.transform.scale(pygame.image.load(frames_path + "frame-" + str(floor(x/2)) + ".png"),(320, 240))) for x in range(len([name for name in os.listdir('.') if os.path.isfile(name)])*2-1)];self.FRAMES_LEN = len(self.FRAMES)
def update(self, delta):super().update(delta);self.dsurf.image.blit(self.FRAMES[self.FRAME_INDEX], (0, 0));self.FRAME_INDEX = (self.FRAME_INDEX + 1) % self.FRAMES_LEN
def load(manager, params):
pos = (100, 100)
if params is not None and len(params) > 0:pos = params[0]
Dance(pos, manager)
| 128.111111
| 690
| 0.730269
| 184
| 1,153
| 4.407609
| 0.391304
| 0.086313
| 0.069051
| 0.036991
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.040038
| 0.090199
| 1,153
| 8
| 691
| 144.125
| 0.733079
| 0
| 0
| 0
| 0
| 0
| 0.032958
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.375
| false
| 0
| 0.125
| 0
| 0.625
| 0
| 0
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
22752cd715213e1a90b7a209f6fca183b725b6af
| 1,013
|
py
|
Python
|
torchmm/models/__init__.py
|
njustkmg/PaddleMM
|
92ae66d6e27c7a666820bc7baf8fd8fa2bd74aa5
|
[
"Apache-2.0"
] | 42
|
2022-01-05T13:49:48.000Z
|
2022-03-30T20:20:18.000Z
|
torchmm/models/__init__.py
|
njustkmg/PaddleMM
|
92ae66d6e27c7a666820bc7baf8fd8fa2bd74aa5
|
[
"Apache-2.0"
] | null | null | null |
torchmm/models/__init__.py
|
njustkmg/PaddleMM
|
92ae66d6e27c7a666820bc7baf8fd8fa2bd74aa5
|
[
"Apache-2.0"
] | 5
|
2022-01-19T00:27:24.000Z
|
2022-03-23T08:29:50.000Z
|
from torchmm.models.retrieval.scan import SCAN
from torchmm.models.retrieval.sgraf import SGRAF
from torchmm.models.retrieval.vsepp import VSEPP
from torchmm.models.retrieval.imram import IMRAM
from torchmm.models.retrieval.bfan import BFAN
from torchmm.models.captioning.aoanet import AoANet
from torchmm.models.multitask.vilbert import VILBERTFinetune, VILBERTPretrain
from torchmm.models.multitask.layers.bert_config import BertConfig
from torchmm.models.fusion.early import EarlyFusion
from torchmm.models.fusion.late import LateFusion
from torchmm.models.fusion.lmf import LMFFusion
from torchmm.models.fusion.tmc import TMCFusion
from torchmm.models.fusion.cmml import CMML
from torchmm.models.captioning.nic import NIC
__all__ = [
'SCAN',
'SGRAF',
'VSEPP',
'IMRAM',
'BFAN',
'CMML',
'NIC',
'AoANet',
'BertConfig',
'VILBERTPretrain',
'VILBERTFinetune',
'EarlyFusion',
'LateFusion',
'LMFFusion',
'TMCFusion'
]
| 28.138889
| 78
| 0.737414
| 117
| 1,013
| 6.34188
| 0.273504
| 0.207547
| 0.320755
| 0.175202
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172754
| 1,013
| 35
| 79
| 28.942857
| 0.885442
| 0
| 0
| 0
| 0
| 0
| 0.117587
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.451613
| 0
| 0.451613
| 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
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
227c93006c1a13f40b794c6a80478cb3d5821d67
| 65
|
py
|
Python
|
Python/py-ttylog/ttylog.py
|
egustafson/sandbox
|
9804e966347b33558b0497a04edb1a591d2d7773
|
[
"Apache-2.0"
] | 2
|
2019-09-27T21:25:26.000Z
|
2019-12-29T11:26:54.000Z
|
Python/py-ttylog/ttylog.py
|
egustafson/sandbox
|
9804e966347b33558b0497a04edb1a591d2d7773
|
[
"Apache-2.0"
] | 7
|
2020-08-11T17:32:14.000Z
|
2020-08-11T17:32:39.000Z
|
Python/py-ttylog/ttylog.py
|
egustafson/sandbox
|
9804e966347b33558b0497a04edb1a591d2d7773
|
[
"Apache-2.0"
] | 2
|
2016-07-18T10:55:50.000Z
|
2020-08-19T01:46:08.000Z
|
#!/usr/pkg/bin/python
name = "Eric"
print "Hello, ", name, "\n"
| 13
| 27
| 0.584615
| 10
| 65
| 3.8
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 65
| 5
| 27
| 13
| 0.690909
| 0.307692
| 0
| 0
| 0
| 0
| 0.288889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.5
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
97d8b1f035290ce4167272dbc4eb1f2b6150eb9b
| 52
|
py
|
Python
|
icnsutil/__main__.py
|
relikd/icnsutil
|
34f3aa6654e4a8edbd366044d3cb7a0a40bbdc6c
|
[
"MIT"
] | 2
|
2021-12-07T16:27:20.000Z
|
2022-02-03T13:15:47.000Z
|
icnsutil/__main__.py
|
relikd/icnsutil
|
34f3aa6654e4a8edbd366044d3cb7a0a40bbdc6c
|
[
"MIT"
] | null | null | null |
icnsutil/__main__.py
|
relikd/icnsutil
|
34f3aa6654e4a8edbd366044d3cb7a0a40bbdc6c
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
from .cli import main
main()
| 13
| 22
| 0.711538
| 9
| 52
| 4.111111
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022222
| 0.134615
| 52
| 3
| 23
| 17.333333
| 0.8
| 0.403846
| 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 | 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
| 4
|
97fa49b2b85fc0dafc92fbb0f3c58d678beeeff2
| 1,550
|
py
|
Python
|
text2speech/modules/festival_tts.py
|
ChanceNCounter/text2speech
|
c87eb67d3ee2d18e8b58f101220764f7d92b3680
|
[
"Apache-2.0"
] | null | null | null |
text2speech/modules/festival_tts.py
|
ChanceNCounter/text2speech
|
c87eb67d3ee2d18e8b58f101220764f7d92b3680
|
[
"Apache-2.0"
] | null | null | null |
text2speech/modules/festival_tts.py
|
ChanceNCounter/text2speech
|
c87eb67d3ee2d18e8b58f101220764f7d92b3680
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2017 Mycroft AI Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import subprocess
from text2speech.modules import TTS, TTSValidator
class FestivalTTS(TTS):
audio_ext = "wav"
def __init__(self, config=None):
config = config or {"lang": "en-us"}
super().__init__(config, FestivalValidator(self), ssml_tags=[])
def get_tts(self, sentence, wav_file):
subprocess.call('echo "{utt}" | text2wave -o {wave}'.format(
utt=sentence, wave=wav_file), shell=True)
return wav_file, None
def describe_voices(self):
voices = {} # TODO
return voices
class FestivalValidator(TTSValidator):
def validate_voice(self):
pass # TODO
def validate_lang(self):
pass # TODO
def validate_connection(self):
try:
subprocess.call(["text2wave", "-h"])
except:
raise Exception(
'Festival not installed. Run sudo apt-get install festival')
def get_tts_class(self):
return FestivalTTS
| 29.807692
| 76
| 0.671613
| 200
| 1,550
| 5.105
| 0.585
| 0.058766
| 0.025465
| 0.031342
| 0.045054
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009291
| 0.236129
| 1,550
| 51
| 77
| 30.392157
| 0.853041
| 0.365161
| 0
| 0.074074
| 0
| 0
| 0.118012
| 0
| 0
| 0
| 0
| 0.019608
| 0
| 1
| 0.259259
| false
| 0.074074
| 0.074074
| 0.037037
| 0.555556
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
3f1920958cfc8e2e9f0a74e6732768d707aacb24
| 227
|
py
|
Python
|
game_screens/logic/__init__.py
|
chceswieta/age-of-divisiveness
|
1edad57d47ad975950639fc391b645e47509cf58
|
[
"MIT"
] | 5
|
2021-04-02T13:26:13.000Z
|
2021-06-28T17:14:00.000Z
|
game_screens/logic/__init__.py
|
chceswieta/age-of-divisiveness
|
1edad57d47ad975950639fc391b645e47509cf58
|
[
"MIT"
] | null | null | null |
game_screens/logic/__init__.py
|
chceswieta/age-of-divisiveness
|
1edad57d47ad975950639fc391b645e47509cf58
|
[
"MIT"
] | 1
|
2021-06-17T18:47:57.000Z
|
2021-06-17T18:47:57.000Z
|
from .city import City
from .granary import Granary
from .units import Unit, Settler
from .garrison import Garrison
from .tiles import Tile, BorderTile, BlinkingTile
from .player import Player
from .game_logic import GameLogic
| 28.375
| 49
| 0.819383
| 32
| 227
| 5.78125
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136564
| 227
| 7
| 50
| 32.428571
| 0.943878
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
3f21dc1bb315189a2b3129aa64545458eedd9bd7
| 675
|
py
|
Python
|
expressivar/exceptions.py
|
NCBI-Hackathons/ExpressiVar
|
73a18a8760e3fcf5c163edeaf5aa35f7b201053e
|
[
"MIT"
] | 4
|
2018-08-08T22:02:20.000Z
|
2018-08-14T05:50:45.000Z
|
expressivar/exceptions.py
|
NCBI-Hackathons/Expressive
|
73a18a8760e3fcf5c163edeaf5aa35f7b201053e
|
[
"MIT"
] | 2
|
2018-08-08T19:44:59.000Z
|
2019-11-05T17:39:28.000Z
|
expressivar/exceptions.py
|
NCBI-Hackathons/Expressive
|
73a18a8760e3fcf5c163edeaf5aa35f7b201053e
|
[
"MIT"
] | 1
|
2018-08-08T16:43:07.000Z
|
2018-08-08T16:43:07.000Z
|
class UnmodifiableModeError(Exception):
"""Raised when file-like object has indeterminate open mode."""
def __init__(self, target, *args, **kwargs):
super().__init__(target, *args, **kwargs)
self.target = target
def __repr__(self):
return '{}: {}'.format(self.__class__.__name__, self.target)
class UnmodifiableAttributeError(AttributeError):
"""Raised when file-like object attribute cannot be modified."""
def __init__(self, target, *args, **kwargs):
super().__init__(target, *args, **kwargs)
self.target = target
def __repr__(self):
return '{}: {}'.format(self.__class__.__name__, self.target)
| 32.142857
| 68
| 0.659259
| 72
| 675
| 5.625
| 0.402778
| 0.148148
| 0.158025
| 0.088889
| 0.681481
| 0.562963
| 0.562963
| 0.562963
| 0.562963
| 0.562963
| 0
| 0
| 0.195556
| 675
| 20
| 69
| 33.75
| 0.745856
| 0.171852
| 0
| 0.833333
| 0
| 0
| 0.021898
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.166667
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
3f327dcf43d51ce2a6f27c5c8cce65de3efbc18a
| 4,194
|
py
|
Python
|
Contents/Libraries/Shared/subzero/lib/dict.py
|
jippo015/Sub-Zero.bundle
|
734e0f7128c05c0f639e11e7dfc77daa1014064b
|
[
"MIT"
] | 1
|
2019-05-20T03:07:17.000Z
|
2019-05-20T03:07:17.000Z
|
Contents/Libraries/Shared/subzero/lib/dict.py
|
saiterlz/Sub-Zero.bundle
|
1a0bb9c3e4be84be35d46672907783363fe5a87b
|
[
"MIT"
] | null | null | null |
Contents/Libraries/Shared/subzero/lib/dict.py
|
saiterlz/Sub-Zero.bundle
|
1a0bb9c3e4be84be35d46672907783363fe5a87b
|
[
"MIT"
] | null | null | null |
# coding=utf-8
class DictProxy(object):
store = None
def __init__(self, d):
self.Dict = d
super(DictProxy, self).__init__()
if self.store not in self.Dict or not self.Dict[self.store]:
self.Dict[self.store] = self.setup_defaults()
self.save()
self.__initialized = True
def __getattr__(self, name):
if name in self.Dict[self.store]:
return self.Dict[self.store][name]
return getattr(super(DictProxy, self), name)
def __setattr__(self, name, value):
if not self.__dict__.has_key(
'_DictProxy__initialized'): # this test allows attributes to be set in the __init__ method
return object.__setattr__(self, name, value)
elif self.__dict__.has_key(name): # any normal attributes are handled normally
object.__setattr__(self, name, value)
else:
if name in self.Dict[self.store]:
self.Dict[self.store][name] = value
return
object.__setattr__(self, name, value)
def __cmp__(self, d):
return cmp(self.Dict[self.store], d)
def __contains__(self, item):
return item in self.Dict[self.store]
def __setitem__(self, key, item):
self.Dict[self.store][key] = item
self.Dict.Save()
def __iter__(self):
return iter(self.Dict[self.store])
def __getitem__(self, key):
if key in self.Dict[self.store]:
return self.Dict[self.store][key]
def __repr__(self):
return repr(self.Dict[self.store])
def __str__(self):
return str(self.Dict[self.store])
def __len__(self):
return len(self.Dict[self.store].keys())
def __delitem__(self, key):
del self.Dict[self.store][key]
def save(self):
self.Dict.Save()
def clear(self):
del self.Dict[self.store]
return None
def copy(self):
return self.Dict[self.store].copy()
def has_key(self, k):
return k in self.Dict[self.store]
def pop(self, k, d=None):
return self.Dict[self.store].pop(k, d)
def update(self, *args, **kwargs):
return self.Dict[self.store].update(*args, **kwargs)
def keys(self):
return self.Dict[self.store].keys()
def values(self):
return self.Dict[self.store].values()
def items(self):
return self.Dict[self.store].items()
def __unicode__(self):
return unicode(repr(self.Dict[self.store]))
def setup_defaults(self):
raise NotImplementedError
class Dicked(object):
"""
mirrors a dictionary; readonly
"""
_entries = None
def __init__(self, **entries):
self._entries = entries or None
for key, value in entries.iteritems():
self.__dict__[key] = (Dicked(**value) if isinstance(value, dict) else value)
def __repr__(self):
return str(self)
def __unicode__(self):
return unicode(self.__digged__)
def __str__(self):
return str(self.__digged__)
def __lt__(self, d):
return self._entries < d
def __le__(self, d):
return self._entries <= d
def __eq__(self, d):
if d is None and not self._entries:
return True
return self._entries == d
def __ne__(self, d):
return self._entries != d
def __gt__(self, d):
return self._entries > d
def __ge__(self, d):
return self._entries >= d
def __getattr__(self, name):
# fixme: this might be wildly stupid; maybe implement stuff like .iteritems() directly
return getattr(self._entries, name, Dicked())
@property
def __digged__(self):
return {key: value for key, value in self.__dict__.iteritems() if key != "_entries"}
def __len__(self):
return len(self.__digged__)
def __nonzero__(self):
return bool(self.__digged__)
def __iter__(self):
return iter(self.__digged__)
def __hash__(self):
return hash(self.__digged__)
def __getitem__(self, name):
if name in self._entries:
return getattr(self, name)
raise KeyError(name)
| 25.573171
| 107
| 0.605389
| 537
| 4,194
| 4.351955
| 0.189944
| 0.112965
| 0.12837
| 0.181857
| 0.436457
| 0.335045
| 0.126658
| 0.065041
| 0.035944
| 0.035944
| 0
| 0.000331
| 0.280401
| 4,194
| 163
| 108
| 25.730061
| 0.774023
| 0.055556
| 0
| 0.163636
| 0
| 0
| 0.007864
| 0.005835
| 0
| 0
| 0
| 0.006135
| 0
| 1
| 0.363636
| false
| 0
| 0
| 0.254545
| 0.736364
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
3f4e557cc8a61093dc34176f40ed8e813e32199e
| 1,153
|
py
|
Python
|
test/box/bootstrap.test.py
|
Mons/tarantool
|
35daf23419c88e12758d49c7c60d2cc5f8a00ad1
|
[
"BSD-2-Clause"
] | 2
|
2015-12-08T21:37:42.000Z
|
2015-12-08T22:11:02.000Z
|
test/box/bootstrap.test.py
|
Mons/tarantool
|
35daf23419c88e12758d49c7c60d2cc5f8a00ad1
|
[
"BSD-2-Clause"
] | null | null | null |
test/box/bootstrap.test.py
|
Mons/tarantool
|
35daf23419c88e12758d49c7c60d2cc5f8a00ad1
|
[
"BSD-2-Clause"
] | 1
|
2020-01-29T15:33:33.000Z
|
2020-01-29T15:33:33.000Z
|
import sys
import yaml
server_uuid = server.get_param('server')['uuid']
sys.stdout.push_filter(server_uuid, '<server uuid>')
cluster_uuid = yaml.load(server.admin('box.space._schema:get("cluster")',
silent = True))[0][1]
sys.stdout.push_filter(cluster_uuid, '<cluster uuid>')
sys.stdout.push_filter(server.sourcedir, '<sourcedir>')
server.admin('dofile("%s/extra/schema_erase.lua")' % server.sourcedir)
server.admin('box.space._schema:select{}')
server.admin('box.space._cluster:select{}')
server.admin('box.space._space:select{}')
server.admin('box.space._index:select{}')
server.admin('box.space._user:select{}')
server.admin('box.space._func:select{}')
server.admin('box.space._priv:select{}')
server.admin('dofile("%s/extra/schema_fill.lua")' % server.sourcedir)
server.admin("box.snapshot()")
server.restart()
server.admin('box.space._schema:select{}')
server.admin('box.space._cluster:select{}')
server.admin('box.space._space:select{}')
server.admin('box.space._index:select{}')
server.admin('box.space._user:select{}')
server.admin('box.space._func:select{}')
server.admin('box.space._priv:select{}')
# Cleanup
sys.stdout.pop_filter()
| 32.942857
| 73
| 0.738075
| 164
| 1,153
| 5.030488
| 0.219512
| 0.24
| 0.271515
| 0.345455
| 0.740606
| 0.710303
| 0.509091
| 0.509091
| 0.509091
| 0.509091
| 0
| 0.001823
| 0.048569
| 1,153
| 34
| 74
| 33.911765
| 0.750228
| 0.006071
| 0
| 0.518519
| 0
| 0
| 0.448819
| 0.394576
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.074074
| 0
| 0.074074
| 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
| 0
| 0
|
0
| 4
|
3f63082b001b9517d2150a95d67223290d5b311f
| 31,411
|
py
|
Python
|
example/convertCaffe/layers3.py
|
ddddwee1/SULT
|
0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784
|
[
"WTFPL"
] | 18
|
2017-12-19T07:55:17.000Z
|
2020-03-12T11:07:45.000Z
|
example/convertCaffe/layers3.py
|
ddddwee1/SULT
|
0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784
|
[
"WTFPL"
] | 1
|
2019-04-18T10:31:41.000Z
|
2019-05-23T06:47:24.000Z
|
example/convertCaffe/layers3.py
|
ddddwee1/SULT
|
0ff31b602d20dd8bc5cf4a6f4f5bc193d636e784
|
[
"WTFPL"
] | 5
|
2018-06-06T00:51:48.000Z
|
2020-03-12T11:07:46.000Z
|
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import tensorflow as tf
from tensorflow.keras.layers import Layer as KLayer
import numpy as np
import time
import helper
import pickle
params_dict = {}
def init_caffe_input(x):
global caffe_string, layer_counter
if not 'caffe_string' in globals():
caffe_string = ''
if not 'layer_counter' in globals():
layer_counter = 0
caffe_string += 'layer{\n'
caffe_string += ' name: "%s"\n'%x[1]()
caffe_string += ' type: "Input"\n'
caffe_string += ' top: "%s"\n'%x[1]()
caffe_string += ' input_param{\n shape{\n dim:%d\n dim:%d\n dim:%d\n dim:%d\n }\n }\n}\n'%(x[0].shape[0], x[0].shape[3], x[0].shape[1], x[0].shape[2])
layer_counter += 1
# def pad_correction(x, conv_layer):
# # TF padding is shifted by 1 compared to caffe
# # we achieve this by creating a dummy layer
# global caffe_string, layer_counter
# if not 'caffe_string' in globals():
# caffe_string = ''
# if not 'layer_counter' in globals():
# layer_counter = 0
# layer_name = 'dummy%d'%layer_counter
# caffe_string += 'layer{\n'
# caffe_string += ' name: "%s"\n'%layer_name
# caffe_string += ' type: "Input"\n'
# caffe_string += ' top: "%s"\n'%layer_name
# caffe_string += ' input_param{\n shape{\n dim:%d\n dim:%d\n dim:%d\n dim:%d\n }\n }\n}\n'%(x.shape[0], x.shape[3], x.shape[1], x.shape[2])
# layer_name0 = layer_name
# layer_name = 'crop%d'%layer_counter
# caffe_string += 'layer{\n'
# caffe_string += ' name: "%s"\n'%layer_name
# caffe_string += ' type: "Crop"\n'
# caffe_string += ' bottom: "%s"\n'%conv_layer
# caffe_string += ' bottom: "%s"\n'%layer_name0
# caffe_string += ' top: "%s"\n'%layer_name
# caffe_string += ' crop_param{\n offset:%d\n offset:%d\n }\n}\n'%(1,1)
# return layer_name
def pad_correction(x, conv_layer):
# TF padding is shifted by 1 compared to caffe
# We dont have dummy data and cropping layers.
# We achieve this by incorporating a 2x2 depthwise conv
def get_kernel(outchn):
res = np.zeros([2,2, outchn, 1]).astype(np.float32)
for i in range(outchn):
res[1,1,i] = 1
return res
global caffe_string, layer_counter
if not 'caffe_string' in globals():
caffe_string = ''
if not 'layer_counter' in globals():
layer_counter = 0
layer_name = 'padshift%d'%layer_counter
outchn = x.shape[-1]
caffe_string += 'layer{\n'
caffe_string += ' name: "%s"\n'%layer_name
caffe_string += ' type: "Convolution"\n'
caffe_string += ' bottom: "%s"\n'%conv_layer
caffe_string += ' top: "%s"\n'%layer_name
caffe_string += ' convolution_param{\n'
caffe_string += ' num_output: %d\n'%outchn
caffe_string += ' bias_term: %s\n'%('false')
caffe_string += ' group: %d\n'%outchn
caffe_string += ' stride: 1\n'
caffe_string += ' pad_h: 0\n'
caffe_string += ' pad_w: 0\n'
caffe_string += ' kernel_h: 2\n'
caffe_string += ' kernel_w: 2\n'
caffe_string += ' }\n}\n'
params_dict[layer_name] = {}
params_dict[layer_name]['dwkernel'] = get_kernel(outchn)
return layer_name
def save_params(name):
pickle.dump(params_dict, open(name, 'wb'))
# dumb layer declaration
class Layer(KLayer):
"""
Layer template. Implement some basic functions by override initialize, build and forward.
"""
def __init__(self, *args, **kwargs):
"""
Default initialization. Not recommended to touch.
"""
super(Layer, self).__init__()
self.initialize(*args, **kwargs)
def initialize(self, *args, **kwargs):
"""
Write initialization logic here.
This is a method to assign pre-defined parameters to the class.
"""
pass
def build(self, input_shape):
pass
def call(self, x, *args, **kwargs):
return self.forward(x, *args, **kwargs)
def forward(self, x, *args, **kwargs):
"""
Alternative for *call*.
:param x: Input tensor or numpy array. The object will be automatically converted to tensor if the input is np.array. Note that other arrays in args or kwargs will not be auto-converted.
"""
pass
class conv2D(KLayer):
"""
Basic convolution 2D layer
"""
def __init__(self, size, outchn, stride=1,pad='SAME',dilation_rate=1,usebias=True,values=None):
"""
:type size: int or list[int]
:param size: Indicate the size of convolution kernel.
:type outchn: int
:param outchn: Number of output channels
:type stride: int or list[int]
:param stride: Stride number. Can be either integer or list of integers
:type pad: String
:param pad: Padding method, must be one of 'SAME', 'VALID', 'SAME_LEFT'. 'VALID' does not use auto-padding scheme. 'SAME' uses tensorflow-style auto-padding and 'SAME_LEFT' uses pytorch-style auto-padding.
:type dilation_rate: int or list[int]
:param dilation_rate: Dilation rate. Can be either integer or list of integers. When dilation_rate is larger than 1, stride should be 1.
:type usebias: bool
:param usebias: Whether to add bias term in this layer.
:type values: list[np.array]
:param values: If the param 'values' is set, the layer will be initialized with the list of numpy array.
"""
super(conv2D, self).__init__()
self.size = size
self.outchn = outchn
self.stride = stride
self.usebias = usebias
self.values = values
self.dilation_rate = dilation_rate
assert (pad in ['SAME','VALID','SAME_LEFT'])
self.pad = pad
def _parse_args(self, input_shape):
inchannel = input_shape[0][-1]
# parse args
if isinstance(self.size,list):
self.size = [self.size[0],self.size[1],inchannel,self.outchn]
else:
self.size = [self.size, self.size, inchannel, self.outchn]
# set stride
if isinstance(self.stride,list):
self.stride = [1,self.stride[0],self.stride[1],1]
else:
self.stride = [1,self.stride, self.stride, 1]
# set dilation
if isinstance(self.dilation_rate,list):
self.dilation_rate = [1,self.dilation_rate[0],self.dilation_rate[1],1]
else:
self.dilation_rate = [1,self.dilation_rate,self.dilation_rate,1]
def build(self, input_shape):
values = self.values
self._parse_args(input_shape)
if self.values is not None:
self.kernel = self.add_variable('kernel', shape=self.size, initializer=tf.initializers.constant(values[0]))
else:
self.kernel = self.add_variable('kernel', shape=self.size, initializer=tf.initializers.VarianceScaling(scale=2.0, mode='fan_out', distribution='untruncated_normal'))
if self.usebias:
if self.values is not None:
self.bias = self.add_variable('bias', shape=[self.outchn], initializer=tf.initializers.constant(values[1]))
else:
self.bias = self.add_variable('bias', shape=[self.outchn], initializer=tf.initializers.constant(0.0))
if self.pad == 'SAME_LEFT':
self.pad_value = [self.size[0]//2, self.size[1]//2]
def _write_caffe(self, name, out):
global caffe_string, layer_counter
if not 'caffe_string' in globals():
caffe_string = ''
if not 'layer_counter' in globals():
layer_counter = 0
layer_name = 'conv%d'%layer_counter
stride = self.stride[1]
if stride==1:
pad = self.size[0]//2
else:
pad = self.size[0]//2 + 1
caffe_string += 'layer{\n'
caffe_string += ' name: "%s"\n'%layer_name
caffe_string += ' type: "Convolution"\n'
caffe_string += ' bottom: "%s"\n'%name()
caffe_string += ' top: "%s"\n'%layer_name
caffe_string += ' convolution_param{\n'
caffe_string += ' num_output: %d\n'%self.outchn
caffe_string += ' bias_term: %s\n'%('true' if self.usebias else 'false')
caffe_string += ' group: 1\n'
caffe_string += ' stride: %d\n'%stride
caffe_string += ' pad_h: %d\n'%pad
caffe_string += ' pad_w: %d\n'%pad
caffe_string += ' kernel_h: %d\n'%(self.size[0])
caffe_string += ' kernel_w: %d\n'%(self.size[1])
caffe_string += ' }\n}\n'
params_dict[layer_name] = {}
params_dict[layer_name]['kernel'] = self.kernel.numpy()
if self.usebias:
params_dict[layer_name]['bias'] = self.bias.numpy()
if stride>1:
layer_name = pad_correction(out, layer_name)
layer_counter += 1
return helper.LayerName(layer_name)
def call(self, x):
"""
:param x: Input tensor or numpy array. The object will be automatically converted to tensor if the input is np.array. Note that other arrays in args or kwargs will not be auto-converted.
"""
name = x[1]
x = x[0]
if self.pad=='SAME_LEFT':
x = tf.pad(x, [[0,0], [self.pad_value[0], self.pad_value[0]], [self.pad_value[1], self.pad_value[1]], [0,0]])
pad = 'VALID'
else:
pad = self.pad
out = tf.nn.conv2d(x, self.kernel, self.stride, pad, dilations=self.dilation_rate)
if self.usebias:
out = tf.nn.bias_add(out, self.bias)
lname = self._write_caffe(name, out)
return out, lname
class dwconv2D(KLayer):
"""
Basic depth-wise convolution layer.
"""
def __init__(self, size, multiplier, stride=1,pad='SAME',dilation_rate=1,usebias=True,values=None):
"""
:type size: int or list[int]
:param size: Indicate the size of convolution kernel.
:type multiplier: int
:param multiplier: Multiplier of number of output channel. (outchannel = multiplier * inchannel)
:type stride: int or list[int]
:param stride: Stride number. Can be either integer or list of integers
:type pad: String
:param pad: Padding method, must be one of 'SAME', 'VALID', 'SAME_LEFT'. 'VALID' does not use auto-padding scheme. 'SAME' uses tensorflow-style auto-padding and 'SAME_LEFT' uses pytorch-style auto-padding.
:type dilation_rate: int or list[int]
:param dilation_rate: Dilation rate. Can be either integer or list of integers. When dilation_rate is larger than 1, stride should be 1.
:type usebias: bool
:param usebias: Whether to add bias term in this layer.
:type values: list[np.array]
:param values: If the param 'values' is set, the layer will be initialized with the list of numpy array.
"""
super(dwconv2D, self).__init__()
self.size = size
self.multiplier = multiplier
self.stride = stride
self.usebias = usebias
self.values = values
self.dilation_rate = dilation_rate
assert (pad in ['SAME','VALID','SAME_LEFT'])
self.pad = pad
def _parse_args(self, input_shape):
inchannel = input_shape[0][-1]
self.inchannel = inchannel
self.outchn = inchannel * self.multiplier
# parse args
if isinstance(self.size,list):
self.size = [self.size[0],self.size[1],inchannel,self.multiplier]
else:
self.size = [self.size, self.size, inchannel, self.multiplier]
# set stride
if isinstance(self.stride,list):
self.stride = [1,self.stride[0],self.stride[1],1]
else:
self.stride = [1,self.stride, self.stride, 1]
# set dilation
if isinstance(self.dilation_rate,list):
self.dilation_rate = [self.dilation_rate[0],self.dilation_rate[1]]
else:
self.dilation_rate = [self.dilation_rate,self.dilation_rate]
def build(self, input_shape):
values = self.values
self._parse_args(input_shape)
if self.values is not None:
self.kernel = self.add_variable('kernel', shape=self.size, initializer=tf.initializers.constant(values[0]))
else:
self.kernel = self.add_variable('kernel', shape=self.size, initializer=tf.initializers.VarianceScaling(scale=2.0, mode='fan_out', distribution='untruncated_normal'))
if self.usebias:
if self.values is not None:
self.bias = self.add_variable('bias', shape=[self.outchn], initializer=tf.initializers.constant(values[1]))
else:
self.bias = self.add_variable('bias', shape=[self.outchn], initializer=tf.initializers.constant(0.0))
if self.pad == 'SAME_LEFT':
self.pad_value = [self.size[0]//2, self.size[1]//2]
def _write_caffe(self, name, out):
global caffe_string, layer_counter
if not 'caffe_string' in globals():
caffe_string = ''
if not 'layer_counter' in globals():
layer_counter = 0
layer_name = 'conv%d'%layer_counter
stride = self.stride[1]
if stride==1:
pad = self.size[0]//2
else:
pad = self.size[0]//2 + 1
caffe_string += 'layer{\n'
caffe_string += ' name: "%s"\n'%layer_name
caffe_string += ' type: "Convolution"\n'
caffe_string += ' bottom: "%s"\n'%name()
caffe_string += ' top: "%s"\n'%layer_name
caffe_string += ' convolution_param{\n'
caffe_string += ' num_output: %d\n'%self.outchn
caffe_string += ' bias_term: %s\n'%('true' if self.usebias else 'false')
caffe_string += ' group: %d\n'%self.inchannel
caffe_string += ' stride: %d\n'%stride
caffe_string += ' pad_h: %d\n'%pad
caffe_string += ' pad_w: %d\n'%pad
caffe_string += ' kernel_h: %d\n'%(self.size[0])
caffe_string += ' kernel_w: %d\n'%(self.size[1])
caffe_string += ' }\n}\n'
params_dict[layer_name] = {}
params_dict[layer_name]['dwkernel'] = self.kernel.numpy()
if self.usebias:
params_dict[layer_name]['bias'] = self.bias.numpy()
if stride>1:
layer_name = pad_correction(out, layer_name)
layer_counter += 1
return helper.LayerName(layer_name)
def call(self, x):
"""
:param x: Input tensor or numpy array. The object will be automatically converted to tensor if the input is np.array. Note that other arrays in args or kwargs will not be auto-converted.
"""
name = x[1]
x = x[0]
if self.pad=='SAME_LEFT':
x = tf.pad(x, [[0,0], [self.pad_value[0], self.pad_value[0]], [self.pad_value[1], self.pad_value[1]], [0,0]])
pad = 'VALID'
else:
pad = self.pad
out = tf.nn.depthwise_conv2d(x, self.kernel, self.stride, pad, dilations=self.dilation_rate)
if self.usebias:
out = tf.nn.bias_add(out, self.bias)
lname = self._write_caffe(name, out)
return out, lname
class globalAvgpoolLayer(KLayer):
"""
Basic global average pooling layer
"""
def __init__(self):
super(globalAvgpoolLayer, self).__init__()
def build(self, input_shape):
self.num_dim = len(input_shape[0])
self.ksize = input_shape[0][1]
def _write_caffe(self, name):
global caffe_string, layer_counter
if not 'caffe_string' in globals():
caffe_string = ''
if not 'layer_counter' in globals():
layer_counter = 0
layer_name = 'gavgpool%d'%layer_counter
caffe_string += 'layer{\n'
caffe_string += ' name: "%s"\n'%layer_name
caffe_string += ' type: "Pooling"\n'
caffe_string += ' bottom:"%s"\n'%name()
caffe_string += ' top: "%s"\n'%layer_name
caffe_string += ' pooling_param{\n pool:AVE\n kernel_size:%d\n }\n'%self.ksize
caffe_string += '}\n'
return helper.LayerName(layer_name)
def call(self, x):
"""
:param x: Input tensor or numpy array. The object will be automatically converted to tensor if the input is np.array. Note that other arrays in args or kwargs will not be auto-converted.
"""
name = x[1]
x = x[0]
if self.num_dim==3:
res = tf.reduce_mean(x, axis=1, keepdims=True)
elif self.num_dim==4:
res = tf.reduce_mean(x, axis=[1,2], keepdims=True)
elif self.num_dim==5:
res = tf.reduce_mean(x, axis=[1,2,3], keepdims=True)
lname = self._write_caffe(name)
return res , lname
class activation(KLayer):
"""
Basic activation layer
"""
def __init__(self, param, **kwargs):
"""
Possible values:
- model3.PARAM_RELU
- model3.PARAM_LRELU
- model3.PARAM_ELU
- model3.PARAM_TANH
- model3.PARAM_MFM
- model3.PARAM_MFM_FC
- model3.PARAM_SIGMOID
- model3.PARAM_SWISH
"""
super(activation, self).__init__()
self.param = param
self.kwargs = kwargs
def _write_caffe(self, btm):
global caffe_string, layer_counter
if not 'caffe_string' in globals():
caffe_string = ''
if not 'layer_counter' in globals():
layer_counter = 0
layer_name = 'actv%d_%d'%(layer_counter, self.param)
caffe_string += 'layer{\n'
caffe_string += ' name: "%s"\n'%layer_name
if self.param == 0:
caffe_string += ' type: "ReLU"\n'
elif self.param == 1:
caffe_string += ' type: "PReLU"\n'
params_dict[layer_name] = {}
params_dict[layer_name]['gamma'] = 0.2
elif self.param == 6:
caffe_string += ' type: "Sigmoid"\n'
caffe_string += ' bottom: "%s"\n'%btm()
caffe_string += ' top: "%s"\n'%btm()
caffe_string += '}\n'
layer_counter += 1
return btm
def call(self, x):
"""
:param x: Input tensor or numpy array. The object will be automatically converted to tensor if the input is np.array. Note that other arrays in args or kwargs will not be auto-converted.
"""
name = x[1]
x = x[0]
if self.param == 0:
res = tf.nn.relu(x)
elif self.param == 1:
if 'leaky' in self.kwargs:
leaky = self.kwargs['leaky']
else:
leaky = 0.2
res = tf.maximum(x,x*leaky)
elif self.param == 2:
res = tf.nn.elu(x)
elif self.param == 3:
res = tf.tanh(x)
elif self.param == 4:
shape = x.get_shape().as_list()
res = tf.reshape(x,[-1,shape[1],shape[2],2,shape[-1]//2]) # potential bug in conv_net
res = tf.reduce_max(res,axis=[3])
elif self.param == 5:
shape = x.get_shape().as_list()
res = tf.reduce_max(tf.reshape(x,[-1,2,shape[-1]//2]),axis=[1])
elif self.param == 6:
res = tf.sigmoid(x)
elif self.param == 7:
# res = tf.nn.swish(x)
# res = tf.sigmoid(x) * x
res = swish(x)
else:
res = x
lname = self._write_caffe(name)
return res, lname
class fcLayer(KLayer):
"""
Basic fully connected layer
"""
def __init__(self, outsize, usebias=True, values=None, norm=False, map_shape=None):
"""
:type outsize: int
:param outsize: Number of output channels
:type usebias: bool
:param usebias: Whether to add bias term in this layer.
:type values: list[np.array]
:param values: If the param 'values' is set, the layer will be initialized with the list of numpy array.
:type norm: bool (default=False)
:param norm: Whether to normalize the kernel (along axis 0) before matrix multiplication
:type map_shape: list (default=None)
:param map_shape: If shape is set, weight will be re-shaped to fit NCHW format
"""
super(fcLayer, self).__init__()
self.outsize = outsize
self.usebias = usebias
self.values = values
self.norm = norm
self.map_shape = map_shape
def _parse_args(self, input_shape):
# set size
insize = input_shape[0][-1]
self.size = [insize, self.outsize]
def build(self, input_shape):
values = self.values
self._parse_args(input_shape)
if self.values is not None:
self.kernel = self.add_variable('kernel', shape=self.size, initializer=tf.initializers.constant(values[0]))
else:
self.kernel = self.add_variable('kernel', shape=self.size, initializer=tf.initializers.GlorotUniform())
if self.usebias:
if self.values is not None:
self.bias = self.add_variable('bias', shape=[self.outsize], initializer=tf.initializers.constant(values[1]))
else:
self.bias = self.add_variable('bias', shape=[self.outsize], initializer=tf.initializers.constant(0.0))
def _write_caffe(self, name):
global caffe_string, layer_counter
if not 'caffe_string' in globals():
caffe_string = ''
if not 'layer_counter' in globals():
layer_counter = 0
layer_name = 'fc%d'%layer_counter
caffe_string += 'layer{\n'
caffe_string += ' name: "%s"\n'%layer_name
caffe_string += ' type: "InnerProduct"\n'
caffe_string += ' bottom: "%s"\n'%name()
caffe_string += ' top: "%s"\n'%layer_name
caffe_string += ' inner_product_param{\n'
caffe_string += ' num_output: %d\n'%self.outsize
caffe_string += ' bias_term: %s\n'%('true' if self.usebias else 'false')
caffe_string += ' }\n}\n'
params_dict[layer_name] = {}
if self.map_shape is None:
params_dict[layer_name]['fckernel'] = self.kernel.numpy()
else:
transpose_w = self.kernel.numpy()
transpose_w = np.reshape(transpose_w, [self.map_shape[0], self.map_shape[1], self.map_shape[2], self.outsize])
transpose_w = np.transpose(transpose_w, [2,1,0,3])
transpose_w = np.reshape(transpose_w, [-1, self.outsize])
params_dict[layer_name]['fckernel'] = transpose_w
if self.usebias:
params_dict[layer_name]['bias'] = self.bias.numpy()
layer_counter += 1
return helper.LayerName(layer_name)
def call(self, x):
"""
:param x: Input tensor or numpy array. The object will be automatically converted to tensor if the input is np.array. Note that other arrays in args or kwargs will not be auto-converted.
"""
name = x[1]
x = x[0]
if self.norm:
k = tf.nn.l2_normalize(self.kernel, axis=0)
else:
k = self.kernel
res = tf.matmul(x, k)
if self.usebias:
res = tf.nn.bias_add(res, self.bias)
lname = self._write_caffe(name)
return res, lname
class batch_norm(KLayer):
"""
Basic batch normalization layer
"""
def __init__(self, decay=1e-2, epsilon=1e-5, is_training=None, values=None):
"""
:type decay: float
:param decay: Decay rate.
:type epsilon: float
:param epsilon: Epsilon value to avoid 0 division.
:type is_training: bool
:param is_training: Define whether this layer is in training mode
:type values: list[np.array]
:param values: If the param 'values' is set, the layer will be initialized with the list of numpy array.
"""
super(batch_norm, self).__init__()
self.decay = decay
self.epsilon = epsilon
self.is_training = is_training
self.values = values
def build(self, input_shape):
values = self.values
shape = input_shape[-1]
if self.values is None:
self.moving_average = self.add_variable('moving_average',[shape],initializer=tf.initializers.constant(0.0),trainable=False)
self.variance = self.add_variable('variance',[shape],initializer=tf.initializers.constant(1.0),trainable=False)
self.gamma = self.add_variable('gamma',[shape],initializer=tf.initializers.constant(1.0),trainable=True)
self.beta = self.add_variable('beta',[shape],initializer=tf.initializers.constant(0.0),trainable=True)
else:
self.moving_average = self.add_variable('moving_average',[shape],initializer=tf.initializers.constant(self.values[0]),trainable=False)
self.variance = self.add_variable('variance',[shape],initializer=tf.initializers.constant(values[1]),trainable=False)
self.gamma = self.add_variable('gamma',[shape],initializer=tf.initializers.constant(values[2]),trainable=True)
self.beta = self.add_variable('beta',[shape],initializer=tf.initializers.constant(values[3]),trainable=True)
def update(self,variable,value):
delta = (variable - value) * self.decay
variable.assign_sub(delta)
def _write_caffe(self, btm):
global caffe_string, layer_counter
if not 'caffe_string' in globals():
caffe_string = ''
if not 'layer_counter' in globals():
layer_counter = 0
layer_name = 'bn%d'%layer_counter
caffe_string += 'layer{\n'
caffe_string += ' name: "%s"\n'%layer_name
caffe_string += ' type: "BatchNorm"\n'
caffe_string += ' bottom: "%s"\n'%btm()
caffe_string += ' top: "%s"\n'%btm()
caffe_string += ' batch_norm_param{\n use_global_stats:true\n eps:1e-5\n }\n'
caffe_string += '}\n'
params_dict[layer_name] = {}
params_dict[layer_name]['mean'] = self.moving_average.numpy()
params_dict[layer_name]['var'] = self.variance.numpy()
params_dict[layer_name]['scale'] = 1.
layer_name = 'scale%d'%layer_counter
caffe_string += 'layer{\n'
caffe_string += ' name: "%s"\n'%layer_name
caffe_string += ' type: "Scale"\n'
caffe_string += ' bottom: "%s"\n'%btm()
caffe_string += ' top: "%s"\n'%btm()
caffe_string += ' scale_param{\n bias_term:true\n }\n'
caffe_string += '}\n'
params_dict[layer_name] = {}
params_dict[layer_name]['scale'] = self.gamma.numpy()
params_dict[layer_name]['bias'] = self.beta.numpy()
return btm
def call(self, x):
"""
:param x: Input tensor or numpy array. The object will be automatically converted to tensor if the input is np.array. Note that other arrays in args or kwargs will not be auto-converted.
"""
name = x[1]
x = x[0]
if self.is_training is None:
is_training = bool(tf.keras.backend.learning_phase())
else:
is_training = self.is_training
# is_training = True
# print(is_training, time.time())
inp_shape = x.get_shape().as_list()
inp_dim_num = len(inp_shape)
if inp_dim_num==3:
x = tf.expand_dims(x, axis=1)
elif inp_dim_num==2:
x = tf.expand_dims(x, axis=1)
x = tf.expand_dims(x, axis=1)
elif inp_dim_num==5:
x = tf.reshape(x, [inp_shape[0], inp_shape[1], inp_shape[2]*inp_shape[3], inp_shape[4]])
if is_training:
res, mean, var = tf.compat.v1.nn.fused_batch_norm(x, self.gamma, self.beta, None, None, self.epsilon, is_training=is_training)
self.update(self.moving_average, mean)
self.update(self.variance, var)
else:
res, mean, var = tf.compat.v1.nn.fused_batch_norm(x, self.gamma, self.beta, self.moving_average, self.variance, self.epsilon, is_training=is_training)
if inp_dim_num==3:
res = tf.squeeze(res , axis=1)
elif inp_dim_num==2:
res = tf.squeeze(res, axis=[1,2])
elif inp_dim_num==5:
res = tf.reshape(res, inp_shape)
lname = self._write_caffe(name)
return res, lname
class flatten(KLayer):
"""
Basic flatten layer
"""
def __init__(self):
super(flatten, self).__init__()
def build(self, input_shape):
self.shape = input_shape
def _write_caffe(self, name):
global caffe_string, layer_counter
if not 'caffe_string' in globals():
caffe_string = ''
if not 'layer_counter' in globals():
layer_counter = 0
layer_name = 'flatten%d'%layer_counter
caffe_string += 'layer{\n'
caffe_string += ' name: "%s"\n'%layer_name
caffe_string += ' type: "Flatten"\n'
caffe_string += ' bottom: "%s"\n'%name()
caffe_string += ' top: "%s"\n'%layer_name
# caffe_string += ' crop_param{\n offset:%d\n offset:%d\n }\n}\n'%(1,1)
caffe_string += '}\n'
layer_counter += 1
return helper.LayerName(layer_name)
def call(self, x):
"""
:param x: Input tensor or numpy array. The object will be automatically converted to tensor if the input is np.array. Note that other arrays in args or kwargs will not be auto-converted.
"""
name = x[1]
x = x[0]
self.shape = x.get_shape().as_list()
num = 1
for k in self.shape[1:]:
num *= k
res = tf.reshape(x, [-1, num])
lname = self._write_caffe(name)
return res , lname
class NNUpSample2D(KLayer):
"""docstring for NNUpSample"""
def __init__(self, factor):
super(NNUpSample2D, self).__init__()
self.factor = factor
def _get_weights(self):
w = np.zeros([self.factor, self.factor, self.chn, self.chn])
w = np.float32(w)
for i in range(self.chn):
w[:,:,i,i] = 1
return w
def build(self, input_shape):
self.chn = input_shape[0][-1]
def _write_caffe(self, name):
global caffe_string, layer_counter
if not 'caffe_string' in globals():
caffe_string = ''
if not 'layer_counter' in globals():
layer_counter = 0
layer_name = 'nnup%d'%layer_counter
caffe_string += 'layer{\n'
caffe_string += ' name: "%s"\n'%layer_name
caffe_string += ' type: "Deconvolution"\n'
caffe_string += ' bottom: "%s"\n'%name()
caffe_string += ' top: "%s"\n'%layer_name
caffe_string += ' convolution_param{\n'
caffe_string += ' num_output: %d\n'%self.chn
caffe_string += ' bias_term: %s\n'%('false')
caffe_string += ' stride: %d\n'%self.factor
caffe_string += ' kernel_h: %d\n'%(self.factor)
caffe_string += ' kernel_w: %d\n'%(self.factor)
caffe_string += ' }\n}\n'
params_dict[layer_name] = {}
params_dict[layer_name]['kernel'] = self._get_weights()
layer_counter += 1
return helper.LayerName(layer_name)
def call(self, x):
name = x[1]
x = x[0]
shape = x.get_shape().as_list()
w = self._get_weights()
outshape = [shape[0], shape[1]*self.factor, shape[2]*self.factor, self.chn]
stride = [1, self.factor, self.factor, 1]
x = tf.nn.conv2d_transpose(x, w, outshape, stride)
lname = self._write_caffe(name)
return x, lname
class BroadcastMUL(KLayer):
def __init__(self):
super(BroadcastMUL, self).__init__()
def _write_caffe(self, names, tiles, outchn):
global caffe_string, layer_counter
if not 'caffe_string' in globals():
caffe_string = ''
if not 'layer_counter' in globals():
layer_counter = 0
# manual tiling layers to match the size
# layer_name = 'tile_0_%d'%layer_counter
# caffe_string += 'layer{\n'
# caffe_string += ' name: "%s"\n'%layer_name
# caffe_string += ' type: "Tile"\n'
# caffe_string += ' bottom:"%s"\n'%names[0]()
# caffe_string += ' top: "%s"\n'%layer_name
# caffe_string += ' tile_param{\n axis:2\n tiles:%d\n }\n'%tiles
# caffe_string += '}\n'
# layer_name = 'tile_1_%d'%layer_counter
# caffe_string += 'layer{\n'
# caffe_string += ' name: "%s"\n'%layer_name
# caffe_string += ' type: "Tile"\n'
# caffe_string += ' bottom:"tile_0_%d"\n'%layer_counter
# caffe_string += ' top: "%s"\n'%layer_name
# caffe_string += ' tile_param{\n axis:3\n tiles:%d\n }\n'%tiles
# caffe_string += '}\n'
layer_name = 'tile_0_%d'%layer_counter
caffe_string += 'layer{\n'
caffe_string += ' name: "%s"\n'%layer_name
caffe_string += ' type: "Deconvolution"\n'
caffe_string += ' bottom: "%s"\n'%names[0]()
caffe_string += ' top: "%s"\n'%layer_name
caffe_string += ' convolution_param{\n'
caffe_string += ' num_output: %d\n'%outchn
caffe_string += ' bias_term: %s\n'%('false')
caffe_string += ' group: %d\n'%outchn
caffe_string += ' stride: 1\n'
caffe_string += ' pad_h: 0\n'
caffe_string += ' pad_w: 0\n'
caffe_string += ' kernel_h: %d\n'%tiles
caffe_string += ' kernel_w: %d\n'%tiles
caffe_string += ' }\n}\n'
params_dict[layer_name] = {}
params_dict[layer_name]['dwkernel'] = np.ones([tiles, tiles, outchn, 1]).astype(np.float32)
# do multiplication
layer_name = 'mul%d'%layer_counter
caffe_string += 'layer{\n'
caffe_string += ' name: "%s"\n'%layer_name
caffe_string += ' type: "Eltwise"\n'
caffe_string += ' bottom:"tile_0_%d"\n'%layer_counter
caffe_string += ' bottom:"%s"\n'%names[1]()
caffe_string += ' top: "%s"\n'%layer_name
caffe_string += ' eltwise_param{\n operation:PROD\n }\n'
caffe_string += '}\n'
layer_counter += 1
return helper.LayerName(layer_name)
def call(self, x):
names = [i[1] for i in x]
xs = [i[0] for i in x]
out = xs[0]*xs[1]
lname = self._write_caffe(names, xs[1].shape[1], xs[1].shape[-1])
return out, lname
class SUM(KLayer):
def __init__(self):
super(SUM, self).__init__()
def _write_caffe(self, names):
global caffe_string, layer_counter
if not 'caffe_string' in globals():
caffe_string = ''
if not 'layer_counter' in globals():
layer_counter = 0
layer_name = 'add%d'%layer_counter
caffe_string += 'layer{\n'
caffe_string += ' name: "%s"\n'%layer_name
caffe_string += ' type: "Eltwise"\n'
for n in names:
caffe_string += ' bottom:"%s"\n'%n()
caffe_string += ' top: "%s"\n'%layer_name
caffe_string += ' eltwise_param{\n operation:SUM\n }\n'
caffe_string += '}\n'
layer_counter += 1
return helper.LayerName(layer_name)
def call(self, x):
names = [i[1] for i in x]
xs = [i[0] for i in x]
lname = self._write_caffe(names)
return sum(xs), lname
class CONCAT(KLayer):
def __init__(self):
super(CONCAT, self).__init__()
def _write_caffe(self, names):
global caffe_string, layer_counter
if not 'caffe_string' in globals():
caffe_string = ''
if not 'layer_counter' in globals():
layer_counter = 0
layer_name = 'concat%d'%layer_counter
caffe_string += 'layer{\n'
caffe_string += ' name: "%s"\n'%layer_name
caffe_string += ' type: "Concat"\n'
for n in names:
caffe_string += ' bottom:"%s"\n'%n()
caffe_string += ' top: "%s"\n'%layer_name
caffe_string += ' concat_param{\n axis:1\n }\n'
caffe_string += '}\n'
layer_counter += 1
return helper.LayerName(layer_name)
def call(self, x):
names = [i[1] for i in x]
xs = [i[0] for i in x]
lname = self._write_caffe(names)
return tf.concat(xs, axis=-1), lname
| 33.274364
| 207
| 0.677533
| 4,863
| 31,411
| 4.202139
| 0.06971
| 0.114118
| 0.034059
| 0.017764
| 0.771764
| 0.743822
| 0.716222
| 0.703988
| 0.689063
| 0.667825
| 0
| 0.012593
| 0.168285
| 31,411
| 943
| 208
| 33.30965
| 0.769608
| 0.223743
| 0
| 0.644513
| 0
| 0.001546
| 0.125541
| 0.001873
| 0
| 0
| 0
| 0
| 0.003091
| 1
| 0.083462
| false
| 0.004637
| 0.010819
| 0.001546
| 0.153014
| 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
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3f63d4b7caf156ff7216d671bd32c442d7e3223f
| 1,926
|
py
|
Python
|
SSMParameterInput/SSMParameterInput.py
|
benkehoe/cfn-lbr-library
|
aa9c80245e650d2b57eb4cb7f7cb3d32986ee4a1
|
[
"Apache-2.0"
] | null | null | null |
SSMParameterInput/SSMParameterInput.py
|
benkehoe/cfn-lbr-library
|
aa9c80245e650d2b57eb4cb7f7cb3d32986ee4a1
|
[
"Apache-2.0"
] | null | null | null |
SSMParameterInput/SSMParameterInput.py
|
benkehoe/cfn-lbr-library
|
aa9c80245e650d2b57eb4cb7f7cb3d32986ee4a1
|
[
"Apache-2.0"
] | 1
|
2018-07-24T15:46:58.000Z
|
2018-07-24T15:46:58.000Z
|
"""
MySSMParameter:
Type: Custom::SSMParameterInput
Properties:
Name: My/Parameter/Name
A drop-in replacement for CloudFormation SSM parameter types
(see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html#aws-ssm-parameter-types )
CloudFormation SSM parameter types don't allow for building the key from other
inputs. They also don't allow for SecureString types. This resource will allow
getting the encrypted value of a SecureString, and the KeyId is available as
an attribute.
Access value by Ref-ing the resource.
All outputs from GetParameter are available as attributes.
Copyright 2018 iRobot Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
from cfn_custom_resource import CloudFormationCustomResource
class SSMParameterInput(CloudFormationCustomResource):
DISABLE_PHYSICAL_RESOURCE_ID_GENERATION = True
def _get(self):
client = self.get_boto3_client('ssm')
kwargs = {
'Name': self.resource_properties['Name'],
'WithDecryption': False,
}
response = client.get_parameter(**kwargs)
value = response['Parameter']['Value']
self.physical_resource_id = value
return response['Parameter']
def create(self):
return self._get()
def update(self):
return self._get()
def delete(self):
pass
| 32.1
| 127
| 0.720145
| 246
| 1,926
| 5.577236
| 0.560976
| 0.043732
| 0.037172
| 0.04519
| 0.029155
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005925
| 0.211319
| 1,926
| 60
| 128
| 32.1
| 0.897301
| 0.617342
| 0
| 0.105263
| 0
| 0
| 0.065753
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.210526
| false
| 0.052632
| 0.052632
| 0.105263
| 0.526316
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
58b7bf286dee0241942bd9548872d0a1fb640ed3
| 212
|
py
|
Python
|
audesc/constants.py
|
RainOfAshes/audesc
|
037d461c9cd256abcc9981fa62fdb8c25ebf36a0
|
[
"MIT"
] | 1
|
2022-01-23T12:09:44.000Z
|
2022-01-23T12:09:44.000Z
|
audesc/constants.py
|
RainOfAshes/audesc
|
037d461c9cd256abcc9981fa62fdb8c25ebf36a0
|
[
"MIT"
] | null | null | null |
audesc/constants.py
|
RainOfAshes/audesc
|
037d461c9cd256abcc9981fa62fdb8c25ebf36a0
|
[
"MIT"
] | 1
|
2022-01-23T12:09:48.000Z
|
2022-01-23T12:09:48.000Z
|
INT_LITTLE_ENDIAN = '<i' # little-endian with 4 bytes
INT_BIG_ENDIAN = '>i' # big-endian with 4 bytes
SHORT_LITTLE_ENDIAN = '<h' # little-endian with 2 bytes
SHORT_BIG_ENDIAN = '<h' # big-endian with 2 bytes
| 42.4
| 56
| 0.716981
| 36
| 212
| 4
| 0.305556
| 0.333333
| 0.222222
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022727
| 0.169811
| 212
| 4
| 57
| 53
| 0.795455
| 0.476415
| 0
| 0
| 0
| 0
| 0.075472
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 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
| 4
|
58b9550ff2cc8f1c6c0e66c51b3f2d2a181e4869
| 89
|
py
|
Python
|
learn_suc/predict/apps.py
|
adamwang0705/learn_suc-gui
|
1ae5dfbe49fcaaef5917c324c984bd0148a2a944
|
[
"MIT"
] | 3
|
2019-05-18T14:26:18.000Z
|
2020-04-25T16:15:24.000Z
|
app/predict/apps.py
|
lohedges/proof-webui
|
17ae4dd5f93087e26ac15df276bea0e317efd4cd
|
[
"MIT"
] | 112
|
2018-04-24T19:10:55.000Z
|
2022-02-26T16:55:02.000Z
|
app/predict/apps.py
|
lohedges/proof-webui
|
17ae4dd5f93087e26ac15df276bea0e317efd4cd
|
[
"MIT"
] | 11
|
2020-07-28T00:45:51.000Z
|
2020-11-22T18:34:52.000Z
|
from django.apps import AppConfig
class PredictConfig(AppConfig):
name = 'predict'
| 14.833333
| 33
| 0.752809
| 10
| 89
| 6.7
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.168539
| 89
| 5
| 34
| 17.8
| 0.905405
| 0
| 0
| 0
| 0
| 0
| 0.078652
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
450f68b5521d1f9ed2fd3fbb2739ef099105895d
| 48
|
py
|
Python
|
tools/Sikuli/TypeHome.sikuli/DoCtrlF4.py
|
marmyshev/vanessa-automation
|
9f87bd6df58b4c205104d3ae8e3643752d67eef7
|
[
"BSD-3-Clause"
] | 296
|
2018-05-27T08:03:14.000Z
|
2022-03-19T08:36:11.000Z
|
tools/Sikuli/TypeHome.sikuli/DoCtrlF4.py
|
marmyshev/vanessa-automation
|
9f87bd6df58b4c205104d3ae8e3643752d67eef7
|
[
"BSD-3-Clause"
] | 1,562
|
2018-05-27T18:36:25.000Z
|
2022-03-31T07:35:11.000Z
|
tools/Sikuli/TypeHome.sikuli/DoCtrlF4.py
|
marmyshev/vanessa-automation
|
9f87bd6df58b4c205104d3ae8e3643752d67eef7
|
[
"BSD-3-Clause"
] | 299
|
2018-06-18T20:00:56.000Z
|
2022-03-29T12:29:55.000Z
|
type(Key.F4, KeyModifier.CTRL)
sleep(1)
exit(0)
| 12
| 30
| 0.729167
| 9
| 48
| 3.888889
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068182
| 0.083333
| 48
| 3
| 31
| 16
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 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
| 0
| 0
| 0
| 0
|
0
| 4
|
451423ebbab77d7d1a15c832a65b41f25de061a6
| 87
|
py
|
Python
|
app/toyApp/apps.py
|
dgundogan/toys_svc
|
9ef18045a32ee818ab71c8a7d4c9821eea956273
|
[
"Apache-2.0"
] | null | null | null |
app/toyApp/apps.py
|
dgundogan/toys_svc
|
9ef18045a32ee818ab71c8a7d4c9821eea956273
|
[
"Apache-2.0"
] | null | null | null |
app/toyApp/apps.py
|
dgundogan/toys_svc
|
9ef18045a32ee818ab71c8a7d4c9821eea956273
|
[
"Apache-2.0"
] | null | null | null |
from django.apps import AppConfig
class ToyappConfig(AppConfig):
name = 'toyApp'
| 14.5
| 33
| 0.747126
| 10
| 87
| 6.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172414
| 87
| 5
| 34
| 17.4
| 0.902778
| 0
| 0
| 0
| 0
| 0
| 0.068966
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
452b88ea8f6b1869b3d8fdf2f7ee95b7d2f548c8
| 70
|
py
|
Python
|
yc212/821.py
|
c-yan/yukicoder
|
cdbbd65402177225dd989df7fe01f67908484a69
|
[
"MIT"
] | null | null | null |
yc212/821.py
|
c-yan/yukicoder
|
cdbbd65402177225dd989df7fe01f67908484a69
|
[
"MIT"
] | null | null | null |
yc212/821.py
|
c-yan/yukicoder
|
cdbbd65402177225dd989df7fe01f67908484a69
|
[
"MIT"
] | null | null | null |
N, K = map(int, input().split())
print((2 * N - K + 1) * K // 2 + 1)
| 17.5
| 35
| 0.428571
| 14
| 70
| 2.142857
| 0.642857
| 0.133333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078431
| 0.271429
| 70
| 3
| 36
| 23.333333
| 0.509804
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.5
| 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
| 0
| 0
| 0
| 1
|
0
| 4
|
45374821e78d014914c0459ddc0b052c00967806
| 72
|
py
|
Python
|
beehave.py
|
maximx1/beehave
|
6ffa3aa1bea56ce71927fb97b8c281d53cbc0b58
|
[
"MIT"
] | null | null | null |
beehave.py
|
maximx1/beehave
|
6ffa3aa1bea56ce71927fb97b8c281d53cbc0b58
|
[
"MIT"
] | null | null | null |
beehave.py
|
maximx1/beehave
|
6ffa3aa1bea56ce71927fb97b8c281d53cbc0b58
|
[
"MIT"
] | null | null | null |
from beehave.common.game import BeehaveGame
BeehaveGame("Bzzz").play()
| 18
| 43
| 0.791667
| 9
| 72
| 6.333333
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 72
| 3
| 44
| 24
| 0.863636
| 0
| 0
| 0
| 0
| 0
| 0.055556
| 0
| 0
| 0
| 0
| 0
| 0
| 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
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
18877628cd7e57e830c4a815fb8408327214e2ab
| 128
|
py
|
Python
|
language/syntax/grammar/syntax/grammar/lex/_.py
|
jedhsu/language
|
3772a4a0ff287e1fc5ebefc716b8d91928d04c72
|
[
"MIT"
] | null | null | null |
language/syntax/grammar/syntax/grammar/lex/_.py
|
jedhsu/language
|
3772a4a0ff287e1fc5ebefc716b8d91928d04c72
|
[
"MIT"
] | null | null | null |
language/syntax/grammar/syntax/grammar/lex/_.py
|
jedhsu/language
|
3772a4a0ff287e1fc5ebefc716b8d91928d04c72
|
[
"MIT"
] | null | null | null |
from types import CodeType as Code
def construct():
...
def create() -> Object:
...
def define() -> Code:
...
| 9.142857
| 34
| 0.539063
| 14
| 128
| 4.928571
| 0.785714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.289063
| 128
| 13
| 35
| 9.846154
| 0.758242
| 0
| 0
| 0.428571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.428571
| true
| 0
| 0.142857
| 0
| 0.571429
| 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
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
18bc1f047d1ccbf7ccaed78266f188f19ab30255
| 170
|
py
|
Python
|
sqlight/__init__.py
|
laomafeima/sqlight
|
57835552c86e7a286955447af04ea0d1d14e7367
|
[
"Apache-2.0"
] | 1
|
2020-03-30T19:43:36.000Z
|
2020-03-30T19:43:36.000Z
|
sqlight/__init__.py
|
laomafeima/sqlight
|
57835552c86e7a286955447af04ea0d1d14e7367
|
[
"Apache-2.0"
] | 1
|
2020-04-27T11:53:31.000Z
|
2020-04-27T11:53:31.000Z
|
sqlight/__init__.py
|
laomafeima/sqlight
|
57835552c86e7a286955447af04ea0d1d14e7367
|
[
"Apache-2.0"
] | null | null | null |
from sqlight.connection import Connection
from sqlight.dburl import DBUrl
from sqlight.row import Row
VERSION = "2.0.1"
Connection = Connection
DBUrl = DBUrl
Row = Row
| 17
| 41
| 0.782353
| 25
| 170
| 5.32
| 0.4
| 0.24812
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020833
| 0.152941
| 170
| 9
| 42
| 18.888889
| 0.902778
| 0
| 0
| 0
| 0
| 0
| 0.029412
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.428571
| 0
| 0.428571
| 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
| 0
| 0
|
0
| 4
|
18d2614c8742f68c51f02cd4ab3848326e66de63
| 636
|
py
|
Python
|
nova/util.py
|
hepteract/nova
|
cf0e866aa5c0f59a3528de9d71671c567219c2ee
|
[
"MIT"
] | null | null | null |
nova/util.py
|
hepteract/nova
|
cf0e866aa5c0f59a3528de9d71671c567219c2ee
|
[
"MIT"
] | null | null | null |
nova/util.py
|
hepteract/nova
|
cf0e866aa5c0f59a3528de9d71671c567219c2ee
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
"""Basic utilities for nova"""
class _superpass(object):
"""Simple object to be a placeholder"""
def __getattr__(self, name):
return self
def __setattr__(self, name, value):
return
def __delattr__(self, name):
return
def __getitem__(self, name):
return self
def __setitem__(self, name, value):
return
def __delitem__(self, name):
return
def __repr__(self):
return "superpass"
def __eq__(self, other):
return True
def __call__(self, *args, **kwargs):
return self
superpass = _superpass()
| 18.705882
| 43
| 0.603774
| 71
| 636
| 4.873239
| 0.478873
| 0.138728
| 0.16185
| 0.104046
| 0.248555
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002222
| 0.292453
| 636
| 33
| 44
| 19.272727
| 0.766667
| 0.125786
| 0
| 0.35
| 0
| 0
| 0.016514
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.45
| false
| 0.15
| 0
| 0.45
| 0.95
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
18e780c4a99cf55831c5b5fcd74aaa22e92e75b5
| 178
|
py
|
Python
|
JupiterMag/Internal/_ReadTestPos.py
|
mattkjames7/JupiterMag
|
0c2bc82e9efadc4b026b82f4aeea30b068ba7fbd
|
[
"MIT"
] | null | null | null |
JupiterMag/Internal/_ReadTestPos.py
|
mattkjames7/JupiterMag
|
0c2bc82e9efadc4b026b82f4aeea30b068ba7fbd
|
[
"MIT"
] | null | null | null |
JupiterMag/Internal/_ReadTestPos.py
|
mattkjames7/JupiterMag
|
0c2bc82e9efadc4b026b82f4aeea30b068ba7fbd
|
[
"MIT"
] | null | null | null |
import numpy as np
import os
from .. import Globals
import PyFileIO as pf
def _ReadTestPos():
fname = Globals.ModulePath+"__data/testpos.dat"
return pf.ReadASCIIData(fname)
| 17.8
| 48
| 0.769663
| 25
| 178
| 5.36
| 0.72
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.146067
| 178
| 9
| 49
| 19.777778
| 0.881579
| 0
| 0
| 0
| 0
| 0
| 0.101124
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0.571429
| 0
| 0.857143
| 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
| 0
| 1
| 0
|
0
| 4
|
18ec030dbf51d02b04b8e4f933b5f9daadf329ad
| 84
|
py
|
Python
|
Interview Preparation Kit - Python/04. Sorting/002. Mark and Toys.py
|
stonehengee/HackerrankPractice
|
ec052e7447391e40d1919cf0b641ff5023da3da3
|
[
"MIT"
] | null | null | null |
Interview Preparation Kit - Python/04. Sorting/002. Mark and Toys.py
|
stonehengee/HackerrankPractice
|
ec052e7447391e40d1919cf0b641ff5023da3da3
|
[
"MIT"
] | null | null | null |
Interview Preparation Kit - Python/04. Sorting/002. Mark and Toys.py
|
stonehengee/HackerrankPractice
|
ec052e7447391e40d1919cf0b641ff5023da3da3
|
[
"MIT"
] | null | null | null |
# Problem: https://www.hackerrank.com/challenges/mark-and-toys/problem
# Score: 35
| 28
| 70
| 0.75
| 12
| 84
| 5.25
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025974
| 0.083333
| 84
| 2
| 71
| 42
| 0.792208
| 0.940476
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 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
| 4
|
18f564db58bf6f8e85588c0205a0cbab03309589
| 225
|
py
|
Python
|
endorsement/apps.py
|
uw-it-aca/service-endorsement
|
a1ba3e4221bb3fe6c81c9f6947ad5e93f10a4a45
|
[
"Apache-2.0"
] | 3
|
2017-10-16T17:19:32.000Z
|
2019-07-31T22:31:48.000Z
|
endorsement/apps.py
|
uw-it-aca/service-endorsement
|
a1ba3e4221bb3fe6c81c9f6947ad5e93f10a4a45
|
[
"Apache-2.0"
] | 284
|
2016-06-17T18:21:31.000Z
|
2022-03-21T16:55:03.000Z
|
endorsement/apps.py
|
uw-it-aca/service-endorsement
|
a1ba3e4221bb3fe6c81c9f6947ad5e93f10a4a45
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2021 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
from __future__ import unicode_literals
from django.apps import AppConfig
class EndorsementConfig(AppConfig):
name = 'endorsement'
| 22.5
| 48
| 0.795556
| 28
| 225
| 6.214286
| 0.892857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.030769
| 0.133333
| 225
| 9
| 49
| 25
| 0.861538
| 0.364444
| 0
| 0
| 0
| 0
| 0.078571
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7a1a8ac714953d3c36b596672dadc4cb86ae6398
| 192
|
py
|
Python
|
swyft/inference/__init__.py
|
adam-coogan/swyft
|
c54bdd9f77ddf02fda857e26640df012cbe545fc
|
[
"MIT"
] | null | null | null |
swyft/inference/__init__.py
|
adam-coogan/swyft
|
c54bdd9f77ddf02fda857e26640df012cbe545fc
|
[
"MIT"
] | null | null | null |
swyft/inference/__init__.py
|
adam-coogan/swyft
|
c54bdd9f77ddf02fda857e26640df012cbe545fc
|
[
"MIT"
] | null | null | null |
from .microscope import Microscope
from .posteriors import Posteriors
from .ratios import IsolatedRatio
from .task import Task
__all__ = ["Posteriors", "Microscope", "IsolatedRatio", "Task"]
| 27.428571
| 63
| 0.786458
| 21
| 192
| 7
| 0.380952
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119792
| 192
| 6
| 64
| 32
| 0.869822
| 0
| 0
| 0
| 0
| 0
| 0.192708
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.8
| 0
| 0.8
| 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
| 0
| 1
| 0
|
0
| 4
|
e1347398a72ec8ecadea83a584bff57a66e808c5
| 6,406
|
py
|
Python
|
example/Si_fitting_external.py
|
jochym/ALM
|
6552b6d818c2cb83f90193ebba839fd85d6957f1
|
[
"MIT"
] | 10
|
2017-01-12T21:18:36.000Z
|
2020-07-27T11:07:16.000Z
|
example/Si_fitting_external.py
|
jochym/ALM
|
6552b6d818c2cb83f90193ebba839fd85d6957f1
|
[
"MIT"
] | 25
|
2018-04-24T07:32:17.000Z
|
2021-04-20T03:08:54.000Z
|
example/Si_fitting_external.py
|
jochym/ALM
|
6552b6d818c2cb83f90193ebba839fd85d6957f1
|
[
"MIT"
] | 12
|
2016-11-08T22:56:38.000Z
|
2021-04-20T02:27:38.000Z
|
#
# Si_fitting_external.py
#
# This is an example to run ALM in the fitting mode.
# Compare internal optimizer and the numpy routine for fitting
#
from alm import ALM
import numpy as np
lavec = [[20.406, 0, 0],
[0, 20.406, 0],
[0, 0, 20.406]]
xcoord = [[0.0000000000000000, 0.0000000000000000, 0.0000000000000000],
[0.0000000000000000, 0.0000000000000000, 0.5000000000000000],
[0.0000000000000000, 0.2500000000000000, 0.2500000000000000],
[0.0000000000000000, 0.2500000000000000, 0.7500000000000000],
[0.0000000000000000, 0.5000000000000000, 0.0000000000000000],
[0.0000000000000000, 0.5000000000000000, 0.5000000000000000],
[0.0000000000000000, 0.7500000000000000, 0.2500000000000000],
[0.0000000000000000, 0.7500000000000000, 0.7500000000000000],
[0.1250000000000000, 0.1250000000000000, 0.1250000000000000],
[0.1250000000000000, 0.1250000000000000, 0.6250000000000000],
[0.1250000000000000, 0.3750000000000000, 0.3750000000000000],
[0.1250000000000000, 0.3750000000000000, 0.8750000000000000],
[0.1250000000000000, 0.6250000000000000, 0.1250000000000000],
[0.1250000000000000, 0.6250000000000000, 0.6250000000000000],
[0.1250000000000000, 0.8750000000000000, 0.3750000000000000],
[0.1250000000000000, 0.8750000000000000, 0.8750000000000000],
[0.2500000000000000, 0.0000000000000000, 0.2500000000000000],
[0.2500000000000000, 0.0000000000000000, 0.7500000000000000],
[0.2500000000000000, 0.2500000000000000, 0.0000000000000000],
[0.2500000000000000, 0.2500000000000000, 0.5000000000000000],
[0.2500000000000000, 0.5000000000000000, 0.2500000000000000],
[0.2500000000000000, 0.5000000000000000, 0.7500000000000000],
[0.2500000000000000, 0.7500000000000000, 0.0000000000000000],
[0.2500000000000000, 0.7500000000000000, 0.5000000000000000],
[0.3750000000000000, 0.1250000000000000, 0.3750000000000000],
[0.3750000000000000, 0.1250000000000000, 0.8750000000000000],
[0.3750000000000000, 0.3750000000000000, 0.1250000000000000],
[0.3750000000000000, 0.3750000000000000, 0.6250000000000000],
[0.3750000000000000, 0.6250000000000000, 0.3750000000000000],
[0.3750000000000000, 0.6250000000000000, 0.8750000000000000],
[0.3750000000000000, 0.8750000000000000, 0.1250000000000000],
[0.3750000000000000, 0.8750000000000000, 0.6250000000000000],
[0.5000000000000000, 0.0000000000000000, 0.0000000000000000],
[0.5000000000000000, 0.0000000000000000, 0.5000000000000000],
[0.5000000000000000, 0.2500000000000000, 0.2500000000000000],
[0.5000000000000000, 0.2500000000000000, 0.7500000000000000],
[0.5000000000000000, 0.5000000000000000, 0.0000000000000000],
[0.5000000000000000, 0.5000000000000000, 0.5000000000000000],
[0.5000000000000000, 0.7500000000000000, 0.2500000000000000],
[0.5000000000000000, 0.7500000000000000, 0.7500000000000000],
[0.6250000000000000, 0.1250000000000000, 0.1250000000000000],
[0.6250000000000000, 0.1250000000000000, 0.6250000000000000],
[0.6250000000000000, 0.3750000000000000, 0.3750000000000000],
[0.6250000000000000, 0.3750000000000000, 0.8750000000000000],
[0.6250000000000000, 0.6250000000000000, 0.1250000000000000],
[0.6250000000000000, 0.6250000000000000, 0.6250000000000000],
[0.6250000000000000, 0.8750000000000000, 0.3750000000000000],
[0.6250000000000000, 0.8750000000000000, 0.8750000000000000],
[0.7500000000000000, 0.0000000000000000, 0.2500000000000000],
[0.7500000000000000, 0.0000000000000000, 0.7500000000000000],
[0.7500000000000000, 0.2500000000000000, 0.0000000000000000],
[0.7500000000000000, 0.2500000000000000, 0.5000000000000000],
[0.7500000000000000, 0.5000000000000000, 0.2500000000000000],
[0.7500000000000000, 0.5000000000000000, 0.7500000000000000],
[0.7500000000000000, 0.7500000000000000, 0.0000000000000000],
[0.7500000000000000, 0.7500000000000000, 0.5000000000000000],
[0.8750000000000000, 0.1250000000000000, 0.3750000000000000],
[0.8750000000000000, 0.1250000000000000, 0.8750000000000000],
[0.8750000000000000, 0.3750000000000000, 0.1250000000000000],
[0.8750000000000000, 0.3750000000000000, 0.6250000000000000],
[0.8750000000000000, 0.6250000000000000, 0.3750000000000000],
[0.8750000000000000, 0.6250000000000000, 0.8750000000000000],
[0.8750000000000000, 0.8750000000000000, 0.1250000000000000],
[0.8750000000000000, 0.8750000000000000, 0.6250000000000000]]
kd = [14] * 64
force = np.loadtxt("force.dat").reshape((-1, 64, 3))[:22]
disp = np.loadtxt("disp.dat").reshape((-1, 64, 3))[:22]
# Initialize object
with ALM(lavec, xcoord, kd) as alm:
# Set displacement and force data
alm.displacements = disp
alm.forces = force
# Define the taylor expansion model and find force constants
alm.define(2, [[[-1]], [[7.3]]])
# Set up options for translational invariance
alm.set_constraint(translation=True)
#
# Run fitting by internal function
#
alm.optimize()
fc_values1, elem_indices1 = alm.get_fc(2)
#
# Run fitting by numpy function
#
# First, get matrix elements for fitting
amat, bvec = alm.get_matrix_elements()
# Perform fitting
fc = np.linalg.lstsq(amat, bvec, rcond=1.0e-15)
# Copy the solution values to alm object
# This is necessary to use get_fc function
alm.set_fc(fc[0])
fc_values2, elem_indices2 = alm.get_fc(2)
c = "xyz"
diffs = []
for (fc, fc_ext, elem) in zip(fc_values1, fc_values2, elem_indices2):
v1 = elem[0] // 3
c1 = elem[0] % 3
v2 = elem[1] // 3
c2 = elem[1] % 3
v3 = elem[2] // 3
c3 = elem[2] % 3
diffs.append(fc - fc_ext)
print("%15.7f %15.7f %15.6e %d%s %d%s %d%s"
% ((fc, fc_ext, fc - fc_ext,
v1 + 1, c[c1], v2 + 1, c[c2], v3 + 1, c[c3])))
print("")
print("* Largest difference between internal and external: %e"
% np.max(np.abs(diffs)))
| 48.530303
| 73
| 0.674368
| 661
| 6,406
| 6.505295
| 0.183056
| 0.094884
| 0.100465
| 0.047442
| 0.767674
| 0.763953
| 0.756512
| 0.667907
| 0.667907
| 0
| 0
| 0.660043
| 0.206525
| 6,406
| 131
| 74
| 48.900763
| 0.185914
| 0.076022
| 0
| 0
| 0
| 0.010101
| 0.018823
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.020202
| 0
| 0.020202
| 0.030303
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 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
| 4
|
e16a97c93b21e858f2bcd000543702f2eeb4596d
| 379
|
py
|
Python
|
core/slack/matchers/callbackMatcher.py
|
ryanolee/pager-duty-sync
|
1fd88634e461b5db647d856bc6b59f990944685e
|
[
"MIT"
] | null | null | null |
core/slack/matchers/callbackMatcher.py
|
ryanolee/pager-duty-sync
|
1fd88634e461b5db647d856bc6b59f990944685e
|
[
"MIT"
] | 2
|
2020-09-27T18:19:17.000Z
|
2021-06-29T09:21:04.000Z
|
core/slack/matchers/callbackMatcher.py
|
ryanolee/pager-duty-sync
|
1fd88634e461b5db647d856bc6b59f990944685e
|
[
"MIT"
] | null | null | null |
from .matcher import Matcher
class CallbackMatcher(Matcher):
def __init__(self, event_type, callback):
super().__init__(event_type)
self.callback = callback
def match(self, *args, **kwags):
return self.callback(*args, **kwags)
def __repr__(self):
return f"<CallbackMatcher(event_type={self.event_type}, callback={self.callback})"
| 34.454545
| 90
| 0.675462
| 44
| 379
| 5.454545
| 0.409091
| 0.15
| 0.108333
| 0.175
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.197889
| 379
| 11
| 90
| 34.454545
| 0.789474
| 0
| 0
| 0
| 0
| 0
| 0.189474
| 0.186842
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.111111
| 0.222222
| 0.777778
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
e1b701a76088bcfd645f26ee2f1f0e3de160a74d
| 707
|
py
|
Python
|
isegm/utils/exp_imports/default.py
|
qinliuliuqin/iSegFormer
|
67b634588cc0a1e09fb3e092966eae997eb209fa
|
[
"MIT"
] | 14
|
2021-12-09T08:33:23.000Z
|
2022-03-26T13:11:01.000Z
|
isegm/utils/exp_imports/default.py
|
qinliuliuqin/iSegFormer
|
67b634588cc0a1e09fb3e092966eae997eb209fa
|
[
"MIT"
] | null | null | null |
isegm/utils/exp_imports/default.py
|
qinliuliuqin/iSegFormer
|
67b634588cc0a1e09fb3e092966eae997eb209fa
|
[
"MIT"
] | null | null | null |
import torch
from functools import partial
from easydict import EasyDict as edict
from albumentations import *
from isegm.data.datasets import *
from isegm.model.losses import *
from isegm.data.transforms import *
from isegm.engine.trainer import ISTrainer
from isegm.model.metrics import AdaptiveIoU
from isegm.data.points_sampler import MultiPointSampler
from isegm.utils.log import logger
from isegm.model import initializer
from isegm.model.is_hrnet_model import HRNetModel
from isegm.model.is_deeplab_model import DeeplabModel
from isegm.model.is_segformer_model import SegformerModel
from isegm.model.is_hrformer_model import HRFormerModel
from isegm.model.is_swinformer_model import SwinformerModel
| 37.210526
| 59
| 0.861386
| 100
| 707
| 5.98
| 0.38
| 0.195652
| 0.187291
| 0.133779
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097595
| 707
| 19
| 59
| 37.210526
| 0.937304
| 0
| 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
| 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
| 4
|
beda6a21efff5eb2853f3b06d7045cb30b5c484f
| 87
|
py
|
Python
|
utils/box/__init__.py
|
XrosLiang/MutualGuide
|
350170944cde473abb62f63a279f7e83c2a528ce
|
[
"MIT"
] | 3
|
2021-06-15T09:20:45.000Z
|
2022-03-06T08:05:41.000Z
|
utils/box/__init__.py
|
XrosLiang/MutualGuide
|
350170944cde473abb62f63a279f7e83c2a528ce
|
[
"MIT"
] | null | null | null |
utils/box/__init__.py
|
XrosLiang/MutualGuide
|
350170944cde473abb62f63a279f7e83c2a528ce
|
[
"MIT"
] | 2
|
2021-07-22T12:48:24.000Z
|
2021-09-16T05:48:35.000Z
|
from .box_utils import *
from .detection import Detect
from .prior_box import PriorBox
| 21.75
| 31
| 0.816092
| 13
| 87
| 5.307692
| 0.615385
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137931
| 87
| 3
| 32
| 29
| 0.92
| 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
| 0
| 0
|
0
| 4
|
bef73a1e98748d7970d7c0b14cffae3ceb615097
| 10,578
|
py
|
Python
|
bot/stockDict.py
|
phi63897/stonks_bot
|
acd7626e6a98b11c01a8fba9500eb95533395bd2
|
[
"MIT"
] | null | null | null |
bot/stockDict.py
|
phi63897/stonks_bot
|
acd7626e6a98b11c01a8fba9500eb95533395bd2
|
[
"MIT"
] | null | null | null |
bot/stockDict.py
|
phi63897/stonks_bot
|
acd7626e6a98b11c01a8fba9500eb95533395bd2
|
[
"MIT"
] | null | null | null |
#function to generate dicitonary of terms
def stockDictGen():
stockDict = []
stockDict.append({"word": "stock", "definition": "the capital raised by a business or corporation through the issuing of shares"})
stockDict.append({"word":"share", "definition": "the piece of paper that signifies ownership of the company"})
stockDict.append({"word":"position" , "definition": "another term for owning stock. Ex: I have a position in Jim’s Coffee Company."})
stockDict.append({"word":"stock price" , "definition": "the public price at which buyers and sellers trade shares"})
stockDict.append({"word":"market price" , "definition": "the public price at which buyers and sellers trade shares"})
stockDict.append({"word":"buyer" , "definition": "Someone who wants to purchase shares of a stock, gaining ownership"})
stockDict.append({"word":"seller" , "definition": "Someone who wants to sell their shares of a stock, losing ownership"})
stockDict.append({"word":"stock broker" , "definition": "Person/Company who executes trades for you. Example: E-trade, Scottrade, Edward Jones, etc."})
stockDict.append({"word":"stock account" , "definition": "Holds your different shares/positions in stocks, usually set up through a broker"})
stockDict.append({"word":"bid" , "definition": "Current highest price someone’s willing to pay for a stock"})
stockDict.append({"word":"ask" , "definition": "Current lowest price someone’s willing to sell the stock at"})
stockDict.append({"word":"spread" , "definition": "Difference between current bid and ask price of the stock"})
stockDict.append({"word":"volume" , "definition": "Amount of shares being traded"})
stockDict.append({"word":"volatility" , "definition": "How quickly stock prices move"})
stockDict.append({"word":"liquidity" , "definition": "Ease of getting in and out of a position, volume level of a stock"})
stockDict.append({"word":"buy" , "definition": "Purchasing a stock. Increases the demand for a stock"})
stockDict.append({"word":"sell", "definition": "Selling a stock. Increases the supply for a stock"})
stockDict.append({"word":"short sell" , "definition": "Borrowing shares from broker, selling them and holding the money in your account hoping stock price falls and then you buy back the borrowed shares for a cheaper price and keep the difference"})
stockDict.append({"word":"short", "definition": "Borrowing shares from broker, selling them and holding the money in your account hoping stock price falls and then you buy back the borrowed shares for a cheaper price and keep the difference"})
stockDict.append({"word":"buy to cover" , "definition": "Buying back the borrowed shares, ending your short sell trade"})
stockDict.append({"word":"cover" , "definition": "Buying back the borrowed shares, ending your short sell trade"})
stockDict.append({"word":"market order" , "definition": "An order placed at current market price, executes quickly usually" })
stockDict.append({"word":"limit order" , "definition": "An order placed to trade stock at a certain specified price or else order doesn’t get filled"})
stockDict.append({"word":"limit" , "definition": "An order placed to trade stock at a certain specified price or else order doesn’t get filled"})
stockDict.append({"word":"stop loss order" , "definition": "Order placed to liquidate/sell position when a specified price is reached or passed to stop any further losses."})
stockDict.append({"word":"stop loss" , "definition": "Order placed to liquidate/sell position when a specified price is reached or passed to stop any further losses."})
stockDict.append({"word":"trailing stop loss order" , "definition": "A stop loss order that adjusts as stock price changes to lock in more and more profit potential"})
stockDict.append({"word":"trailing stop loss" , "definition": "A stop loss order that adjusts as stock price changes to lock in more and more profit potential"})
stockDict.append({"word":"moving average" , "definition": "Average volume for the past X days. Helps you know how a stock’s price is behaving compared to volume in a term period."})
stockDict.append({"word":"moves on low volume" , "definition": "When a stock is thinly traded meaning there is low volume, price movement can’t be taken as serious because little trading volume leaves people less options for prices to buy and sell to the spread is bigger usually."})
stockDict.append({"word":"moves on high volume" , "definition": "A heavily traded stock gives more proof that a price move is legit as a lot of people are trading and interested in buying or selling the stock for some reason. This should cause you to take a closer look at why."})
stockDict.append({"word":"market valuation" , "definition": "Company Value (Shares x Stock Price)"})
stockDict.append({"word":"market cap" , "definition": "Company Value (Shares x Stock Price)"})
stockDict.append({"word":"shares outstanding" , "definition": "the # of shares issued by the company."})
stockDict.append({"word":"outstanding shares" , "definition": "the # of shares issued by the company."})
stockDict.append({"word":"float" , "definition": "# of shares available to public to trade"})
stockDict.append({"word":"restricted shares" , "definition": "shares owned by the company insiders still, not trade-able by the public. Insiders can sell these to raise more capital causing the float to increase."})
stockDict.append({"word":"micro cap" , "definition": "company valued under $250 million (most penny stocks)"})
stockDict.append({"word":"small cap" , "definition": "company valued between $250 million and $1 billion"})
stockDict.append({"word":"mid cap" , "definition": "company valued between $1 billion and $10 billion"})
stockDict.append({"word":"large cap" , "definition": "company valued over $10 billion"})
stockDict.append({"word":"independent investors" , "definition": "Traders who use personal capital/leverage to trade"})
stockDict.append({"word":"independent traders" , "definition": "Traders who use personal capital/leverage to trade"})
stockDict.append({"word":"institutional investors" , "definition": "Traders working for firms"})
stockDict.append({"word":"institutional traders" , "definition": "Traders working for firms"})
stockDict.append({"word":"distressed investors" , "definition": "Traders who buy suffering companies and turn them around"})
stockDict.append({"word":"distressed traders" , "definition": "Traders who buy suffering companies and turn them around"})
stockDict.append({"word":"value investors" , "definition": "Invest in stocks that have solid fundamentals"})
stockDict.append({"word":"value traders" , "definition": "Invest in stocks that have solid fundamentals"})
stockDict.append({"word":"growth investors" , "definition": "Invest in fast growing companies. High % growth seen in the EPS of recent quarter compared to year ago quarter."})
stockDict.append({"word":"growth traders" , "definition": "Invest in fast growing companies. High % growth seen in the EPS of recent quarter compared to year ago quarter."})
stockDict.append({"word":"penny stocks" , "definition": "Investing in stocks under $5 but usually stocks under $1"})
stockDict.append({"word":"hedge funds" , "definition": "Huge million and billion dollar funds made up of high net worth individuals. Usually focus on high priced stocks and less risk so not anything to worry about in penny stocks."})
stockDict.append({"word":"mutual funds" , "definition": "Pooled money by many investors used on higher priced stocks usually. Mutual funds can have down years and the managers still reap huge gains unlike hedge fund managers who only do well when they perform well."})
stockDict.append({"word":"sec" , "definition": "They regulate the stock market and can hault stocks and eliminate scam companies."})
stockDict.append({"word":"securities exchange commission" , "definition": "They regulate the stock market and can hault stocks and eliminate scam companies."})
stockDict.append({"word":"ipo" , "definition": "Private company sells shares to public for first time to raise capital."})
stockDict.append({"word":"initial public offering" , "definition": "Private company sells shares to public for first time to raise capital."})
stockDict.append({"word":"merger" , "definition": "two companies combine to cut costs and get rid of wasted labor and resources. More efficient"})
stockDict.append({"word":"ipo share lock up" , "definition": "After an IPO, insiders are restricted from trading for 6 months usually but sometimes up to a year or two. They can’t sell their shares until the lock up period ends."})
stockDict.append({"word":"secondary offering" , "definition": "When insiders and executives of the company sell stock for personal gain like if they received stock as part of compensation package or bonus. Capital goes to them personally and not the company."})
stockDict.append({"word":"margin " , "definition": "using money borrowed from broker to trade stocks"})
stockDict.append({"word":"short squeeze" , "definition": "Short seller buys to cover position when price is going up and not down like they wanted. Short squeeze results in more demand to buy stock raising the price."})
stockDict.append({"word":"pre borrow" , "definition": "Ability to reserve shares from your broker ahead of time to borrow when you short sell"})
stockDict.append({"word":"pink sheets" , "definition": "tiny companies, penny stock type companies, very volatile"})
stockDict.append({"word":"otc bulletin board" , "definition": "Non Nasdaq listed stocks that rarely trade over $5"})
stockDict.append({"word":"otcbb" , "definition": "Non Nasdaq listed stocks that rarely trade over $5"})
stockDict.append({"word":"nasdaq" , "definition": "American stock exchange at One Liberty Plaza"})
stockDict.append({"word":"russell 2000" , "definition": "represents the 2000 smallest publicly traded companies but doesn’t include pink sheet and OTCBB stocks"})
stockDict.append({"word":"s&p 500" , "definition": "The 500 biggest companies by market cap"})
stockDict.append({"word":"dow jones industrial average" , "definition": "A price weighted index of 30 significant and actively traded blue chip stocks."})
return stockDict
| 135.615385
| 289
| 0.722537
| 1,436
| 10,578
| 5.322423
| 0.270891
| 0.139343
| 0.176501
| 0.017009
| 0.456889
| 0.392778
| 0.3776
| 0.3776
| 0.364255
| 0.364255
| 0
| 0.003716
| 0.160427
| 10,578
| 77
| 290
| 137.376623
| 0.856885
| 0.003781
| 0
| 0
| 1
| 0.216216
| 0.720008
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.013514
| false
| 0.027027
| 0
| 0
| 0.027027
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8302c43de1fe95d797ada99eeabdaa84a7832593
| 345
|
py
|
Python
|
sleekxmpp/stanza/__init__.py
|
aristanetworks/SleekXMPP
|
91f53bf1964a564f6f12477a31884e9ec38cef75
|
[
"MIT"
] | null | null | null |
sleekxmpp/stanza/__init__.py
|
aristanetworks/SleekXMPP
|
91f53bf1964a564f6f12477a31884e9ec38cef75
|
[
"MIT"
] | 1
|
2020-04-10T22:09:06.000Z
|
2020-04-10T22:09:06.000Z
|
sleekxmpp/stanza/__init__.py
|
aristanetworks/SleekXMPP
|
91f53bf1964a564f6f12477a31884e9ec38cef75
|
[
"MIT"
] | 1
|
2019-12-05T12:10:16.000Z
|
2019-12-05T12:10:16.000Z
|
"""
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2010 Nathanael C. Fritz
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
from sleekxmpp.stanza.error import Error
from sleekxmpp.stanza.iq import Iq
from sleekxmpp.stanza.message import Message
from sleekxmpp.stanza.presence import Presence
| 24.642857
| 48
| 0.762319
| 48
| 345
| 5.479167
| 0.5625
| 0.197719
| 0.288973
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014134
| 0.17971
| 345
| 13
| 49
| 26.538462
| 0.915194
| 0.434783
| 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
| 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
| 4
|
8309018cf8ed0db7d86a4790aa8e2f778a8a10b3
| 24
|
py
|
Python
|
data/studio21_generated/introductory/3723/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
data/studio21_generated/introductory/3723/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
data/studio21_generated/introductory/3723/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
def array_change(arr):
| 12
| 22
| 0.75
| 4
| 24
| 4.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 24
| 2
| 23
| 12
| 0.809524
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8311126b705a667ba549cae74b851620b8649776
| 21,713
|
py
|
Python
|
neutron/tests/unit/agent/linux/test_l3_tc_lib.py
|
dangervon/neutron
|
06ce0c2c94d2256a8f6804a1eacb0733747dcf46
|
[
"Apache-2.0"
] | null | null | null |
neutron/tests/unit/agent/linux/test_l3_tc_lib.py
|
dangervon/neutron
|
06ce0c2c94d2256a8f6804a1eacb0733747dcf46
|
[
"Apache-2.0"
] | null | null | null |
neutron/tests/unit/agent/linux/test_l3_tc_lib.py
|
dangervon/neutron
|
06ce0c2c94d2256a8f6804a1eacb0733747dcf46
|
[
"Apache-2.0"
] | null | null | null |
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from unittest import mock
from neutron_lib import constants
from neutron_lib import exceptions
from neutron.agent.linux import l3_tc_lib as tc_lib
from neutron.agent.linux import tc_lib as base_tc_lib
from neutron.tests import base
FLOATING_IP_DEVICE_NAME = "qg-device_rfp"
FLOATING_IP_ROUTER_NAMESPACE = "qrouter-namespace_snat-namespace"
FLOATING_IP_1 = "172.16.5.146"
FLOATING_IP_2 = "172.16.10.105"
FILETER_ID_1 = "800::800"
FILETER_ID_2 = "800::801"
TC_INGRESS_FILTERS_BASE = (
'filter protocol ip u32 \n'
'filter protocol ip u32 %(chain_value)sfh 800: ht divisor 1 \n'
'filter protocol ip u32 %(chain_value)sfh %(filter_id1)s order 2048 key '
'ht 800 bkt 0 '
'flowid :1 (rule hit 0 success 0)\n'
' match IP dst %(fip1)s/32 (success 0 ) \n'
' police 0x3 rate 3000Kbit burst 3Mb mtu 64Kb action drop overhead 0b \n'
'ref 1 bind 1\n'
'\n'
' Sent 111 bytes 222 pkts (dropped 0, overlimits 0) \n'
'filter protocol ip u32 %(chain_value)sfh %(filter_id2)s order 2049 key '
'ht 800 bkt 0 '
'flowid :1 (rule hit 0 success 0)\n'
' match IP dst %(fip2)s/32 (success 0 ) \n'
' police 0x1b rate 22000Kbit burst 22Mb mtu 64Kb action drop '
'overhead 0b \n'
'ref 1 bind 1\n'
'\n'
' Sent 111 bytes 222 pkts (dropped 0, overlimits 0)\n')
TC_INGRESS_FILTERS_WITHOUT_CHAIN = TC_INGRESS_FILTERS_BASE % {
"chain_value": "",
"filter_id1": FILETER_ID_1,
"fip1": FLOATING_IP_1,
"filter_id2": FILETER_ID_2,
"fip2": FLOATING_IP_2}
# NOTE(slaweq): in iproute 4.15 chain value was added to filter output
TC_INGRESS_FILTERS_WITH_CHAIN = TC_INGRESS_FILTERS_BASE % {
"chain_value": "chain 1 ",
"filter_id1": FILETER_ID_1,
"fip1": FLOATING_IP_1,
"filter_id2": FILETER_ID_2,
"fip2": FLOATING_IP_2}
TC_INGRESS_FILTERS_DUP_WITHOUT_CHAIN = TC_INGRESS_FILTERS_WITHOUT_CHAIN + (
'filter protocol ip u32 %(chain_value)sfh %(filter_id2)s order 2049 key '
'ht 800 bkt 0 '
'flowid :1 (rule hit 0 success 0)\n'
' match IP dst %(fip2)s/32 (success 0 ) \n'
' police 0x1b rate 22000Kbit burst 22Mb mtu 64Kb action drop '
'overhead 0b \n'
'ref 1 bind 1\n'
'\n'
' Sent 111 bytes 222 pkts (dropped 0, overlimits 0)\n') % {
"chain_value": "",
"filter_id2": FILETER_ID_2,
"fip2": FLOATING_IP_2}
TC_INGRESS_FILTERS_DUP_WITH_CHAIN = TC_INGRESS_FILTERS_WITH_CHAIN + (
'filter protocol ip u32 %(chain_value)sfh %(filter_id2)s order 2049 key '
'ht 800 bkt 0 '
'flowid :1 (rule hit 0 success 0)\n'
' match IP dst %(fip2)s/32 (success 0 ) \n'
' police 0x1b rate 22000Kbit burst 22Mb mtu 64Kb action drop '
'overhead 0b \n'
'ref 1 bind 1\n'
'\n'
' Sent 111 bytes 222 pkts (dropped 0, overlimits 0)\n') % {
"chain_value": "chain 1 ",
"filter_id2": FILETER_ID_2,
"fip2": FLOATING_IP_2}
TC_EGRESS_FILTERS_BASE = (
'filter protocol ip u32 \n'
'filter protocol ip u32 %(chain_name)sfh 800: ht divisor 1 \n'
'filter protocol ip u32 %(chain_name)sfh %(filter_id1)s order 2048 key '
'ht 800 bkt 0 '
'flowid :1 (rule hit 0 success 0)\n'
' match IP src %(fip1)s/32 (success 0 ) \n'
' police 0x4 rate 3000Kbit burst 3Mb mtu 64Kb action drop overhead 0b \n'
'ref 1 bind 1\n'
'\n'
' Sent 111 bytes 222 pkts (dropped 0, overlimits 0) \n'
'filter protocol ip u32 %(chain_name)sfh %(filter_id2)s order 2049 key '
'ht 800 bkt 0 '
'flowid :1 (rule hit 0 success 0)\n'
' match IP src %(fip2)s/32 (success 0 ) \n'
' police 0x1c rate 22000Kbit burst 22Mb mtu 64Kb action drop '
'overhead 0b \n'
'ref 1 bind 1\n'
'\n'
' Sent 111 bytes 222 pkts (dropped 0, overlimits 0)\n')
TC_EGRESS_FILTERS_WITHOUT_CHAIN = TC_EGRESS_FILTERS_BASE % {
"chain_name": "",
"filter_id1": FILETER_ID_1,
"fip1": FLOATING_IP_1,
"filter_id2": FILETER_ID_2,
"fip2": FLOATING_IP_2}
TC_EGRESS_FILTERS_WITH_CHAIN = TC_EGRESS_FILTERS_BASE % {
"chain_name": "chain 1 ",
"filter_id1": FILETER_ID_1,
"fip1": FLOATING_IP_1,
"filter_id2": FILETER_ID_2,
"fip2": FLOATING_IP_2}
INGRESS_QSIC_ID = "ffff:"
EGRESS_QDISC_ID = "1:"
QDISC_IDS = {constants.INGRESS_DIRECTION: INGRESS_QSIC_ID,
constants.EGRESS_DIRECTION: EGRESS_QDISC_ID}
TC_QDISCS = [{'handle': '1:', 'qdisc_type': 'htb', 'parent': 'root'},
{'handle': 'ffff:', 'qdisc_type': 'ingress', 'parent': 'ingress'}]
TC_FILTERS_ADD_BY_OTHERS_BASE = (
'filter protocol %(protocol)s u32 %(chain_name)s \n'
'filter protocol %(protocol)s u32 %(chain_name)s fh 800: ht divisor 1 \n'
'filter protocol %(protocol)s u32 %(chain_name)s fh %(filter_id1)s order '
'2048 key ht 800 bkt 0 flowid :1 not_in_hw (rule hit 0 success 0) \n'
'match %(matches)s at 16 (success 0 ) \n'
'police 0x3 rate 3000Kbit burst 3Mb mtu 64Kb action drop overhead 0b '
'linklayer ethernet \n'
'ref 1 bind 1 installed 22 sec used 22 sec \n'
'\n'
' Sent 111 bytes 222 pkts (dropped 0, overlimits 0)\n'
)
TC_FILTERS_ADD_BY_OTHERS_FOR_ALL_PROTOCOL = TC_FILTERS_ADD_BY_OTHERS_BASE % {
"protocol": "all",
"chain_name": "chain 1 ",
"filter_id1": FILETER_ID_1,
"matches": "c0a8dc06/ffffffff"
}
class TestFloatingIPTcCommandBase(base.BaseTestCase):
def setUp(self):
super(TestFloatingIPTcCommandBase, self).setUp()
self.tc = tc_lib.FloatingIPTcCommandBase(
FLOATING_IP_DEVICE_NAME,
namespace=FLOATING_IP_ROUTER_NAMESPACE)
self.execute = mock.patch('neutron.agent.common.utils.execute').start()
def test__get_qdisc_id_for_filter(self):
with mock.patch.object(base_tc_lib, 'list_tc_qdiscs',
return_value=TC_QDISCS):
q1 = self.tc._get_qdisc_id_for_filter(constants.INGRESS_DIRECTION)
self.assertEqual(INGRESS_QSIC_ID, q1)
q2 = self.tc._get_qdisc_id_for_filter(constants.EGRESS_DIRECTION)
self.assertEqual(EGRESS_QDISC_ID, q2)
@mock.patch.object(base_tc_lib, 'add_tc_qdisc')
def test__add_qdisc(self, mock_add_tc_qdisc):
self.tc._add_qdisc(constants.INGRESS_DIRECTION)
mock_add_tc_qdisc.assert_called_once_with(
self.tc.name, 'ingress', namespace=self.tc.namespace)
mock_add_tc_qdisc.reset_mock()
self.tc._add_qdisc(constants.EGRESS_DIRECTION)
mock_add_tc_qdisc.assert_called_once_with(
self.tc.name, 'htb', parent='root', namespace=self.tc.namespace)
def test__get_filters(self):
self.tc._get_filters(INGRESS_QSIC_ID)
self.execute.assert_called_with(
['ip', 'netns', 'exec', FLOATING_IP_ROUTER_NAMESPACE,
'tc', '-p', '-s', '-d', 'filter', 'show', 'dev',
FLOATING_IP_DEVICE_NAME,
'parent', INGRESS_QSIC_ID, 'prio', 1],
run_as_root=True,
check_exit_code=True,
log_fail_as_error=True,
extra_ok_codes=None,
privsep_exec=True
)
def _test__get_filterid_for_ip(self, filters):
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_filters') as get_filters:
get_filters.return_value = filters
f_id = self.tc._get_filterid_for_ip(INGRESS_QSIC_ID, FLOATING_IP_1)
self.assertEqual(FILETER_ID_1, f_id)
def test__get_filterid_for_ip_without_chain(self):
self._test__get_filterid_for_ip(TC_EGRESS_FILTERS_WITHOUT_CHAIN)
def test__get_filterid_for_ip_with_chain(self):
self._test__get_filterid_for_ip(TC_EGRESS_FILTERS_WITH_CHAIN)
def test__get_filterid_for_ip_no_output(self):
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_filters') as get_filters:
get_filters.return_value = ""
self.assertRaises(exceptions.FilterIDForIPNotFound,
self.tc._get_filterid_for_ip,
INGRESS_QSIC_ID, FLOATING_IP_1)
def _test__get_filterid_for_ip_duplicated(self, filters):
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_filters') as get_filters:
get_filters.return_value = filters
self.assertRaises(exceptions.MultipleFilterIDForIPFound,
self.tc._get_filterid_for_ip,
INGRESS_QSIC_ID, FLOATING_IP_2)
def test__get_filterid_for_ip_duplicated_without_chain(self):
self._test__get_filterid_for_ip_duplicated(
TC_INGRESS_FILTERS_DUP_WITHOUT_CHAIN)
def test__get_filterid_for_ip_duplicated_with_chain(self):
self._test__get_filterid_for_ip_duplicated(
TC_INGRESS_FILTERS_DUP_WITH_CHAIN)
def _test__get_filterid_for_ip_not_found(self, filters):
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_filters') as get_filters:
get_filters.return_value = filters
self.assertRaises(exceptions.FilterIDForIPNotFound,
self.tc._get_filterid_for_ip,
INGRESS_QSIC_ID, "1.1.1.1")
def test__get_filterid_for_ip_not_found_without_chain(self):
self._test__get_filterid_for_ip_not_found(
TC_EGRESS_FILTERS_WITHOUT_CHAIN)
def test__get_filterid_for_ip_not_found_with_chain(self):
self._test__get_filterid_for_ip_not_found(TC_EGRESS_FILTERS_WITH_CHAIN)
def test__get_filterid_for_ip_with_additional_filters(self):
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_filters') as get_filters:
get_filters.return_value = \
TC_FILTERS_ADD_BY_OTHERS_FOR_ALL_PROTOCOL
self.assertRaises(exceptions.FilterIDForIPNotFound,
self.tc._get_filterid_for_ip,
INGRESS_QSIC_ID, "192.168.220.6")
def test__del_filter_by_id(self):
self.tc._del_filter_by_id(INGRESS_QSIC_ID, FLOATING_IP_1)
self.execute.assert_called_once_with(
['ip', 'netns', 'exec', FLOATING_IP_ROUTER_NAMESPACE,
'tc', 'filter', 'del', 'dev', FLOATING_IP_DEVICE_NAME,
'parent', INGRESS_QSIC_ID,
'prio', 1, 'handle', FLOATING_IP_1, 'u32'],
run_as_root=True,
check_exit_code=True,
log_fail_as_error=True,
extra_ok_codes=None,
privsep_exec=True
)
def _test__get_qdisc_filters(self, filters):
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_filters') as get_filters:
get_filters.return_value = filters
f_ids = self.tc._get_qdisc_filters(INGRESS_QSIC_ID)
self.assertEqual([FILETER_ID_1, FILETER_ID_2], f_ids)
def test__get_qdisc_filters_without_chain(self):
self._test__get_qdisc_filters(TC_EGRESS_FILTERS_WITHOUT_CHAIN)
def test__get_qdisc_filters_with_chain(self):
self._test__get_qdisc_filters(TC_EGRESS_FILTERS_WITH_CHAIN)
def test__get_qdisc_filters_no_output(self):
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_filters') as get_filters:
get_filters.return_value = ""
f_ids = self.tc._get_qdisc_filters(INGRESS_QSIC_ID)
self.assertEqual(0, len(f_ids))
def test__add_filter(self):
protocol = ['protocol', 'ip']
prio = ['prio', 1]
match = ['u32', 'match', 'ip', 'dst', FLOATING_IP_1]
police = ['police', 'rate', '1kbit', 'burst', '1kbit',
'mtu', '64kb', 'drop', 'flowid', ':1']
args = protocol + prio + match + police
cmd = ['tc', 'filter', 'add', 'dev', FLOATING_IP_DEVICE_NAME,
'parent', INGRESS_QSIC_ID] + args
self.tc._add_filter(INGRESS_QSIC_ID,
constants.INGRESS_DIRECTION,
FLOATING_IP_1, 1, 1)
self.execute.assert_called_once_with(
['ip', 'netns', 'exec', FLOATING_IP_ROUTER_NAMESPACE] + cmd,
run_as_root=True,
check_exit_code=True,
log_fail_as_error=True,
extra_ok_codes=None,
privsep_exec=True
)
def test__get_or_create_qdisc(self):
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_qdisc_id_for_filter') as get_disc1:
get_disc1.return_value = None
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_add_qdisc'):
with mock.patch.object(
tc_lib.FloatingIPTcCommandBase,
'_get_qdisc_id_for_filter') as get_disc2:
get_disc2.return_value = INGRESS_QSIC_ID
qdisc_id = self.tc._get_or_create_qdisc(
constants.INGRESS_DIRECTION)
self.assertEqual(INGRESS_QSIC_ID, qdisc_id)
def test__get_or_create_qdisc_failed(self):
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_qdisc_id_for_filter') as get_disc1:
get_disc1.return_value = None
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_add_qdisc'):
with mock.patch.object(
tc_lib.FloatingIPTcCommandBase,
'_get_qdisc_id_for_filter') as get_disc2:
get_disc2.return_value = None
self.assertRaises(exceptions.FailedToAddQdiscToDevice,
self.tc._get_or_create_qdisc,
constants.INGRESS_DIRECTION)
class TestFloatingIPTcCommand(base.BaseTestCase):
def setUp(self):
super(TestFloatingIPTcCommand, self).setUp()
self.tc = tc_lib.FloatingIPTcCommand(
FLOATING_IP_DEVICE_NAME,
namespace=FLOATING_IP_ROUTER_NAMESPACE)
self.execute = mock.patch('neutron.agent.common.utils.execute').start()
def _test_clear_all_filters(self, filters):
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_qdisc_id_for_filter') as get_disc:
get_disc.return_value = EGRESS_QDISC_ID
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_filters') as get_filters:
get_filters.return_value = filters
self.tc.clear_all_filters(constants.EGRESS_DIRECTION)
self.assertEqual(2, self.execute.call_count)
def test_clear_all_filters_without_chain(self):
self._test_clear_all_filters(TC_EGRESS_FILTERS_WITHOUT_CHAIN)
def test_clear_all_filters_with_chain(self):
self._test_clear_all_filters(TC_EGRESS_FILTERS_WITH_CHAIN)
def test_set_ip_rate_limit_filter_existed(self):
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_qdisc_id_for_filter') as get_disc:
get_disc.return_value = EGRESS_QDISC_ID
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_filterid_for_ip') as get_filter:
get_filter.return_value = FILETER_ID_1
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_del_filter_by_id') as del_filter:
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_add_filter') as add_filter:
ip = "111.111.111.111"
self.tc.set_ip_rate_limit(constants.EGRESS_DIRECTION,
ip, 1, 1)
del_filter.assert_called_once_with(
EGRESS_QDISC_ID, FILETER_ID_1)
add_filter.assert_called_once_with(
EGRESS_QDISC_ID, constants.EGRESS_DIRECTION,
ip, 1, 1)
def _test_set_ip_rate_limit_no_qdisc(self, filters):
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_qdisc_id_for_filter') as get_disc:
get_disc.return_value = None
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_add_qdisc'):
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_filters') as get_filters:
get_filters.return_value = filters
get_disc.return_value = INGRESS_QSIC_ID
ip = "111.111.111.111"
self.tc.set_ip_rate_limit(constants.INGRESS_DIRECTION,
ip, 1, 1)
protocol = ['protocol', 'ip']
prio = ['prio', 1]
_match = 'dst'
match = ['u32', 'match', 'ip', _match, ip]
police = ['police', 'rate', '1kbit', 'burst', '1kbit',
'mtu', '64kb', 'drop', 'flowid', ':1']
args = protocol + prio + match + police
self.execute.assert_called_once_with(
['ip', 'netns', 'exec', FLOATING_IP_ROUTER_NAMESPACE,
'tc', 'filter', 'add', 'dev', FLOATING_IP_DEVICE_NAME,
'parent', INGRESS_QSIC_ID] + args,
run_as_root=True,
check_exit_code=True,
log_fail_as_error=True,
extra_ok_codes=None,
privsep_exec=True
)
def test_set_ip_rate_limit_no_qdisc_without_chain(self):
self._test_set_ip_rate_limit_no_qdisc(TC_INGRESS_FILTERS_WITHOUT_CHAIN)
def test_set_ip_rate_limit_no_qdisc_with_chain(self):
self._test_set_ip_rate_limit_no_qdisc(TC_INGRESS_FILTERS_WITH_CHAIN)
def test_clear_ip_rate_limit(self):
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_qdisc_id_for_filter') as get_disc:
get_disc.return_value = EGRESS_QDISC_ID
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_filterid_for_ip') as get_filter_id:
get_filter_id.return_value = FILETER_ID_1
self.tc.clear_ip_rate_limit(constants.EGRESS_DIRECTION,
FLOATING_IP_1)
self.execute.assert_called_once_with(
['ip', 'netns', 'exec', FLOATING_IP_ROUTER_NAMESPACE,
'tc', 'filter', 'del', 'dev', FLOATING_IP_DEVICE_NAME,
'parent', EGRESS_QDISC_ID,
'prio', 1, 'handle', FILETER_ID_1, 'u32'],
run_as_root=True,
check_exit_code=True,
log_fail_as_error=True,
extra_ok_codes=None,
privsep_exec=True
)
def test_get_filter_id_for_ip(self):
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_qdisc_id_for_filter') as get_disc:
get_disc.return_value = EGRESS_QDISC_ID
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_filterid_for_ip') as get_filter_id:
self.tc.get_filter_id_for_ip(constants.EGRESS_DIRECTION,
'8.8.8.8')
get_filter_id.assert_called_once_with(EGRESS_QDISC_ID,
'8.8.8.8')
def test_get_existing_filter_ids(self):
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_qdisc_id_for_filter') as get_disc:
get_disc.return_value = EGRESS_QDISC_ID
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_qdisc_filters') as get_filter_ids:
self.tc.get_existing_filter_ids(constants.EGRESS_DIRECTION)
get_filter_ids.assert_called_once_with(EGRESS_QDISC_ID)
def test_delete_filter_ids(self):
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_get_qdisc_id_for_filter') as get_disc:
get_disc.return_value = EGRESS_QDISC_ID
with mock.patch.object(tc_lib.FloatingIPTcCommandBase,
'_del_filter_by_id') as del_filter_id:
self.tc.delete_filter_ids(constants.EGRESS_DIRECTION,
[FILETER_ID_1, FILETER_ID_2])
del_filter_id.assert_has_calls(
[mock.call(EGRESS_QDISC_ID, FILETER_ID_1),
mock.call(EGRESS_QDISC_ID, FILETER_ID_2)])
| 45.235417
| 79
| 0.616543
| 2,740
| 21,713
| 4.487956
| 0.09708
| 0.015451
| 0.039034
| 0.047898
| 0.824266
| 0.772465
| 0.732211
| 0.69025
| 0.640969
| 0.618687
| 0
| 0.033187
| 0.297794
| 21,713
| 479
| 80
| 45.329854
| 0.773332
| 0.028324
| 0
| 0.545232
| 0
| 0
| 0.187696
| 0.017266
| 0
| 0
| 0.001186
| 0
| 0.05868
| 1
| 0.085575
| false
| 0
| 0.01467
| 0
| 0.105134
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
55d164fe2cc25671c0c2e8390eef9ecf362de8f7
| 101
|
py
|
Python
|
config.py
|
Donskov7/mypocketbot
|
8696404b0752aad4305b367640e618d8ff07dd9d
|
[
"MIT"
] | null | null | null |
config.py
|
Donskov7/mypocketbot
|
8696404b0752aad4305b367640e618d8ff07dd9d
|
[
"MIT"
] | null | null | null |
config.py
|
Donskov7/mypocketbot
|
8696404b0752aad4305b367640e618d8ff07dd9d
|
[
"MIT"
] | null | null | null |
-*- coding: utf-8 -*-
token = **bot_token**
host = 'localhost'
port = 27017
group_id = **group_id**
| 16.833333
| 23
| 0.613861
| 14
| 101
| 4.214286
| 0.785714
| 0.237288
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 0.168317
| 101
| 5
| 24
| 20.2
| 0.630952
| 0
| 0
| 0
| 0
| 0
| 0.089109
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
55d2aa0596560c987b0d0a2d40582c1ef981c61b
| 379
|
py
|
Python
|
src/backend/TeamProj/myapp/admin.py
|
DbettKK/1821-D4
|
9144ea230a15573845792222f33a83f4ee93539e
|
[
"MIT"
] | null | null | null |
src/backend/TeamProj/myapp/admin.py
|
DbettKK/1821-D4
|
9144ea230a15573845792222f33a83f4ee93539e
|
[
"MIT"
] | 1
|
2020-08-10T12:12:04.000Z
|
2020-08-10T12:12:04.000Z
|
src/backend/TeamProj/myapp/admin.py
|
DbettKK/1821-D4
|
9144ea230a15573845792222f33a83f4ee93539e
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from . import models
# Register your models here.
admin.site.register(models.User)
admin.site.register(models.File)
admin.site.register(models.Comment)
admin.site.register(models.Team)
admin.site.register(models.TeamMember)
admin.site.register(models.UserBrowseFile)
admin.site.register(models.UserKeptFile)
admin.site.register(models.Modify)
| 25.266667
| 42
| 0.82058
| 52
| 379
| 5.980769
| 0.346154
| 0.231511
| 0.437299
| 0.59164
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.063325
| 379
| 14
| 43
| 27.071429
| 0.876056
| 0.068602
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.2
| 0
| 0.2
| 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
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
55e667c17297c995344cacc4603deb82ebbc2fed
| 1,220
|
py
|
Python
|
1684 Count the Number of Consistent Strings.py
|
AtharvRedij/leetcode-solutions
|
7194d202302989d53c241b12c9befb06923b1510
|
[
"MIT"
] | null | null | null |
1684 Count the Number of Consistent Strings.py
|
AtharvRedij/leetcode-solutions
|
7194d202302989d53c241b12c9befb06923b1510
|
[
"MIT"
] | null | null | null |
1684 Count the Number of Consistent Strings.py
|
AtharvRedij/leetcode-solutions
|
7194d202302989d53c241b12c9befb06923b1510
|
[
"MIT"
] | 1
|
2021-03-06T06:15:48.000Z
|
2021-03-06T06:15:48.000Z
|
'''
URL: https://leetcode.com/problems/count-the-number-of-consistent-strings/
Difficulty: Easy
Description: Count the Number of Consistent Strings
You are given a string allowed consisting of distinct characters and an array of strings words. A string is consistent if all characters in the string appear in the string allowed.
Return the number of consistent strings in the array words.
Example 1:
Input: allowed = "ab", words = ["ad","bd","aaab","baa","badab"]
Output: 2
Explanation: Strings "aaab" and "baa" are consistent since they only contain characters 'a' and 'b'.
Example 2:
Input: allowed = "abc", words = ["a","b","c","ab","ac","bc","abc"]
Output: 7
Explanation: All strings are consistent.
Example 3:
Input: allowed = "cad", words = ["cc","acd","b","ba","bac","bad","ac","d"]
Output: 4
Explanation: Strings "cc", "acd", "ac", and "d" are consistent.
Constraints:
1 <= words.length <= 104
1 <= allowed.length <= 26
1 <= words[i].length <= 10
The characters in allowed are distinct.
words[i] and allowed contain only lowercase English letters.
'''
class Solution:
def countConsistentStrings(self, allowed, words):
return sum([1 for s in words if set(s).issubset(set(allowed))])
| 27.111111
| 180
| 0.70082
| 183
| 1,220
| 4.672131
| 0.453552
| 0.031579
| 0.038596
| 0.073684
| 0.109942
| 0.077193
| 0
| 0
| 0
| 0
| 0
| 0.016505
| 0.155738
| 1,220
| 44
| 181
| 27.727273
| 0.813592
| 0.87377
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
3609581d92bf59d396f74970b4ae84bed98d22ea
| 226
|
py
|
Python
|
scalyr_agent/third_party/docker/types/__init__.py
|
code-sauce/scalyr-agent-2
|
41023d5c1272186193dd02900782b150dda5f38e
|
[
"Apache-2.0"
] | 1
|
2019-04-16T21:23:15.000Z
|
2019-04-16T21:23:15.000Z
|
scalyr_agent/third_party/docker/types/__init__.py
|
code-sauce/scalyr-agent-2
|
41023d5c1272186193dd02900782b150dda5f38e
|
[
"Apache-2.0"
] | 5
|
2020-02-26T20:10:50.000Z
|
2021-09-23T23:23:18.000Z
|
scalyr_agent/third_party/docker/types/__init__.py
|
code-sauce/scalyr-agent-2
|
41023d5c1272186193dd02900782b150dda5f38e
|
[
"Apache-2.0"
] | null | null | null |
# flake8: noqa
from .containers import LogConfig, Ulimit
from .services import (
ContainerSpec, DriverConfig, Mount, Resources, RestartPolicy, TaskTemplate,
UpdateConfig
)
from .swarm import SwarmSpec, SwarmExternalCA
| 28.25
| 79
| 0.787611
| 22
| 226
| 8.090909
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005181
| 0.146018
| 226
| 7
| 80
| 32.285714
| 0.917098
| 0.053097
| 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 | 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
| 4
|
3613c36c96d12f68140a7bee18003779d53ffe4c
| 343
|
py
|
Python
|
calculator/calculator.py
|
ayushnvs/calculator
|
34b93286868e505982493b3db04661798fa4f1da
|
[
"MIT"
] | null | null | null |
calculator/calculator.py
|
ayushnvs/calculator
|
34b93286868e505982493b3db04661798fa4f1da
|
[
"MIT"
] | null | null | null |
calculator/calculator.py
|
ayushnvs/calculator
|
34b93286868e505982493b3db04661798fa4f1da
|
[
"MIT"
] | null | null | null |
class Calculator:
def __init__(self):
self.calculation = 0
self.operation = None
def plus(self, num):
self.calculation += num
def minus(self, num):
self.calculation -= num
def multiply(self, num):
self.calculation *= num
def divide(self, num):
self.calculation /= num
| 21.4375
| 31
| 0.577259
| 39
| 343
| 4.974359
| 0.358974
| 0.386598
| 0.226804
| 0.453608
| 0.561856
| 0.43299
| 0
| 0
| 0
| 0
| 0
| 0.004274
| 0.317784
| 343
| 16
| 32
| 21.4375
| 0.824786
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.416667
| false
| 0
| 0
| 0
| 0.5
| 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
| 0
| 0
|
0
| 4
|
362cfa2a2d53f0190bf26be70c4ac681d4359d9d
| 156
|
py
|
Python
|
run.py
|
HannesHolst1/pydoku
|
628abfa35e230007c9b14e550096b47ec489e0fe
|
[
"MIT"
] | null | null | null |
run.py
|
HannesHolst1/pydoku
|
628abfa35e230007c9b14e550096b47ec489e0fe
|
[
"MIT"
] | null | null | null |
run.py
|
HannesHolst1/pydoku
|
628abfa35e230007c9b14e550096b47ec489e0fe
|
[
"MIT"
] | null | null | null |
# -*- encoding: utf-8 -*-
from app import app
if __name__ == '__main__':
#app.run(debug=True) # for local webserver
app.run(host='0.0.0.0', port=80)
| 22.285714
| 45
| 0.628205
| 26
| 156
| 3.461538
| 0.730769
| 0.066667
| 0.066667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.054264
| 0.173077
| 156
| 7
| 46
| 22.285714
| 0.643411
| 0.403846
| 0
| 0
| 0
| 0
| 0.166667
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
368ab806ae613e456ed415a3b2c87f069dc74757
| 33
|
py
|
Python
|
BotDr/__init__.py
|
botfg/BotDr
|
02776f309a770d7a34aa0330690a8cf7597bef3d
|
[
"Apache-2.0"
] | 5
|
2019-12-04T22:51:27.000Z
|
2020-03-30T10:27:47.000Z
|
BotDr/__init__.py
|
botfg/BotDr
|
02776f309a770d7a34aa0330690a8cf7597bef3d
|
[
"Apache-2.0"
] | null | null | null |
BotDr/__init__.py
|
botfg/BotDr
|
02776f309a770d7a34aa0330690a8cf7597bef3d
|
[
"Apache-2.0"
] | null | null | null |
__version__ = '1.5'
__all__ = []
| 11
| 19
| 0.606061
| 4
| 33
| 3
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.074074
| 0.181818
| 33
| 2
| 20
| 16.5
| 0.37037
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 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
| 0
| 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
| 4
|
369aa478be430ff450e7370bd4400054a4251d9e
| 396
|
py
|
Python
|
blogs/settings.py
|
arjunsinghy96/djangoblogs
|
071240f6f82017f35cde10e49c58b5ab04da0459
|
[
"MIT"
] | null | null | null |
blogs/settings.py
|
arjunsinghy96/djangoblogs
|
071240f6f82017f35cde10e49c58b5ab04da0459
|
[
"MIT"
] | 15
|
2018-10-26T13:03:46.000Z
|
2018-11-06T17:30:47.000Z
|
blogs/settings.py
|
arjunsinghy96/django-blogs
|
071240f6f82017f35cde10e49c58b5ab04da0459
|
[
"MIT"
] | 5
|
2018-10-28T06:48:48.000Z
|
2018-10-28T07:10:36.000Z
|
from django.conf import settings as project_settings
class BlogSettings(object):
def __init__(self):
pass
settings = BlogSettings()
settings.SHOW_FOOTER_LINK = getattr(project_settings, 'BLOGS_SHOW_FOOTER_LINK', True)
settings.PARENT_SITE_NAME = getattr(project_settings, 'BLOGS_PARENT_SITE_NAME', '')
settings.GA_TRACKING_ID = getattr(project_settings, 'BLOGS_GA_TRACKING_ID', '')
| 36
| 85
| 0.795455
| 51
| 396
| 5.72549
| 0.509804
| 0.205479
| 0.226027
| 0.277397
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108586
| 396
| 11
| 86
| 36
| 0.827195
| 0
| 0
| 0
| 0
| 0
| 0.161209
| 0.110831
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0.125
| 0.125
| 0
| 0.375
| 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
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
369b4d5b667cb4bc486ab9c1d5fbbb70496b15cc
| 12,211
|
py
|
Python
|
tests/parsers/syslog.py
|
jonathan-greig/plaso
|
b88a6e54c06a162295d09b016bddbfbfe7ca9070
|
[
"Apache-2.0"
] | 6
|
2015-07-30T11:07:24.000Z
|
2021-07-23T07:12:30.000Z
|
tests/parsers/syslog.py
|
jonathan-greig/plaso
|
b88a6e54c06a162295d09b016bddbfbfe7ca9070
|
[
"Apache-2.0"
] | null | null | null |
tests/parsers/syslog.py
|
jonathan-greig/plaso
|
b88a6e54c06a162295d09b016bddbfbfe7ca9070
|
[
"Apache-2.0"
] | 1
|
2021-07-23T07:12:37.000Z
|
2021-07-23T07:12:37.000Z
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the syslog parser."""
import unittest
from plaso.parsers import syslog
from tests.parsers import test_lib
class SyslogParserTest(test_lib.ParserTestCase):
"""Tests for the syslog parser."""
# pylint: disable=protected-access
def testEnablePlugins(self):
"""Tests the EnablePlugins function."""
parser = syslog.SyslogParser()
number_of_plugins = len(parser._plugin_classes)
parser.EnablePlugins([])
self.assertEqual(len(parser._plugins), 0)
parser.EnablePlugins(parser.ALL_PLUGINS)
self.assertEqual(len(parser._plugins), number_of_plugins)
parser.EnablePlugins(['cron'])
self.assertEqual(len(parser._plugins), 1)
def testParseRsyslog(self):
"""Tests the Parse function on a rsyslog file."""
parser = syslog.SyslogParser()
knowledge_base_values = {'year': 2020}
storage_writer = self._ParseFile(
['syslog_rsyslog'], parser, knowledge_base_values=knowledge_base_values)
number_of_events = storage_writer.GetNumberOfAttributeContainers('event')
self.assertEqual(number_of_events, 5)
number_of_warnings = storage_writer.GetNumberOfAttributeContainers(
'extraction_warning')
self.assertEqual(number_of_warnings, 0)
number_of_warnings = storage_writer.GetNumberOfAttributeContainers(
'recovery_warning')
self.assertEqual(number_of_warnings, 0)
def testParseRsyslogTraditional(self):
"""Tests the Parse function on a traditional rsyslog file."""
parser = syslog.SyslogParser()
knowledge_base_values = {'year': 2016}
storage_writer = self._ParseFile(
['syslog_rsyslog_traditional'], parser,
knowledge_base_values=knowledge_base_values)
number_of_events = storage_writer.GetNumberOfAttributeContainers('event')
self.assertEqual(number_of_events, 8)
number_of_warnings = storage_writer.GetNumberOfAttributeContainers(
'extraction_warning')
self.assertEqual(number_of_warnings, 0)
number_of_warnings = storage_writer.GetNumberOfAttributeContainers(
'recovery_warning')
self.assertEqual(number_of_warnings, 0)
events = list(storage_writer.GetSortedEvents())
expected_event_values = {
'date_time': '2016-01-22 07:54:32',
'data_type': 'syslog:line',
'hostname': 'myhostname.myhost.com',
'reporter': 'Job',
'severity': None}
self.CheckEventValues(storage_writer, events[0], expected_event_values)
def testParseRsyslogProtocol23(self):
"""Tests the Parse function on a protocol 23 rsyslog file."""
parser = syslog.SyslogParser()
knowledge_base_values = {'year': 2021}
storage_writer = self._ParseFile(
['syslog_rsyslog_SyslogProtocol23Format'], parser,
knowledge_base_values=knowledge_base_values)
number_of_events = storage_writer.GetNumberOfAttributeContainers('event')
self.assertEqual(number_of_events, 9)
number_of_warnings = storage_writer.GetNumberOfAttributeContainers(
'extraction_warning')
self.assertEqual(number_of_warnings, 0)
number_of_warnings = storage_writer.GetNumberOfAttributeContainers(
'recovery_warning')
self.assertEqual(number_of_warnings, 0)
events = list(storage_writer.GetSortedEvents())
expected_event_values = {
'date_time': '2021-03-06 04:07:38.251122',
'data_type': 'syslog:line',
'hostname': 'hostname',
'reporter': 'log_tag',
'severity': 'DEBUG'}
self.CheckEventValues(storage_writer, events[0], expected_event_values)
def testParseRsyslogSysklogd(self):
"""Tests the Parse function on a syslogkd format rsyslog file."""
parser = syslog.SyslogParser()
knowledge_base_values = {'year': 2021}
storage_writer = self._ParseFile(
['syslog_rsyslog_SysklogdFileFormat'], parser,
knowledge_base_values=knowledge_base_values)
number_of_events = storage_writer.GetNumberOfAttributeContainers('event')
self.assertEqual(number_of_events, 9)
number_of_warnings = storage_writer.GetNumberOfAttributeContainers(
'extraction_warning')
self.assertEqual(number_of_warnings, 0)
number_of_warnings = storage_writer.GetNumberOfAttributeContainers(
'recovery_warning')
self.assertEqual(number_of_warnings, 0)
events = list(storage_writer.GetSortedEvents())
expected_event_values = {
'date_time': '2021-03-06 04:07:28',
'data_type': 'syslog:line',
'hostname': 'hostname',
'reporter': 'log_tag',
'severity': None}
self.CheckEventValues(storage_writer, events[0], expected_event_values)
def testParseDarwin(self):
"""Tests the Parse function on an Darwin-style syslog file."""
parser = syslog.SyslogParser()
knowledge_base_values = {'year': 2016}
storage_writer = self._ParseFile(
['syslog_osx'], parser,
knowledge_base_values=knowledge_base_values)
number_of_events = storage_writer.GetNumberOfAttributeContainers('event')
self.assertEqual(number_of_events, 2)
number_of_warnings = storage_writer.GetNumberOfAttributeContainers(
'extraction_warning')
self.assertEqual(number_of_warnings, 0)
number_of_warnings = storage_writer.GetNumberOfAttributeContainers(
'recovery_warning')
self.assertEqual(number_of_warnings, 0)
def testParseChromeOS(self):
"""Tests the Parse function."""
parser = syslog.SyslogParser()
knowledge_base_values = {'year': 2016}
storage_writer = self._ParseFile(
['syslog_chromeos'], parser,
knowledge_base_values=knowledge_base_values)
number_of_events = storage_writer.GetNumberOfAttributeContainers('event')
self.assertEqual(number_of_events, 8)
number_of_warnings = storage_writer.GetNumberOfAttributeContainers(
'extraction_warning')
self.assertEqual(number_of_warnings, 0)
number_of_warnings = storage_writer.GetNumberOfAttributeContainers(
'recovery_warning')
self.assertEqual(number_of_warnings, 0)
events = list(storage_writer.GetSortedEvents())
# Note that syslog_chromeos contains -07:00 as time zone offset.
expected_event_values = {
'body': 'cleanup_logs: job completed',
'date_time': '2016-10-25 12:37:23.297265',
'data_type': 'syslog:line',
'reporter': 'periodic_scheduler',
'pid': 13707,
'severity': 'INFO',
'timestamp': '2016-10-25 19:37:23.297265'}
self.CheckEventValues(storage_writer, events[0], expected_event_values)
expected_event_values = {
'date_time': '2016-10-25 12:37:24.987014',
'data_type': 'syslog:line',
'reporter': 'kernel',
'severity': 'DEBUG'}
self.CheckEventValues(storage_writer, events[2], expected_event_values)
# Testing year increment.
expected_event_values = {
'date_time': '2016-10-25 12:37:24.993079',
'data_type': 'syslog:line',
'reporter': 'kernel',
'severity': 'DEBUG'}
self.CheckEventValues(storage_writer, events[4], expected_event_values)
expected_event_values = {
'date_time': '2016-10-25 12:37:25.007963',
'data_type': 'syslog:line',
'reporter': 'kernel',
'severity': 'ERR'}
self.CheckEventValues(storage_writer, events[6], expected_event_values)
expected_event_values = {
'body': (
'[ 316.587330] cfg80211: This is a multi-line\n\tmessage that '
'screws up many syslog parsers.'),
'date_time': '2016-10-25 12:37:25.014015',
'data_type': 'syslog:line',
'reporter': 'aprocess',
'severity': 'INFO'}
self.CheckEventValues(storage_writer, events[7], expected_event_values)
def testParse(self):
"""Tests the Parse function."""
parser = syslog.SyslogParser()
knowledge_base_values = {'year': 2012}
storage_writer = self._ParseFile(
['syslog'], parser, knowledge_base_values=knowledge_base_values)
number_of_events = storage_writer.GetNumberOfAttributeContainers('event')
self.assertEqual(number_of_events, 16)
number_of_warnings = storage_writer.GetNumberOfAttributeContainers(
'extraction_warning')
self.assertEqual(number_of_warnings, 1)
number_of_warnings = storage_writer.GetNumberOfAttributeContainers(
'recovery_warning')
self.assertEqual(number_of_warnings, 0)
events = list(storage_writer.GetSortedEvents())
expected_event_values = {
'body': 'INFO No new content in ímynd.dd.',
'date_time': '2012-01-22 07:52:33',
'data_type': 'syslog:line',
'hostname': 'myhostname.myhost.com',
'pid': 30840,
'reporter': 'client',
'severity': None}
self.CheckEventValues(storage_writer, events[0], expected_event_values)
expected_event_values = {
'date_time': '2012-02-29 01:15:43',
'data_type': 'syslog:line',
'reporter': '---',
'severity': None}
self.CheckEventValues(storage_writer, events[6], expected_event_values)
# Testing year increment.
expected_event_values = {
'body': 'This syslog message has a fractional value for seconds.',
'date_time': '2013-03-23 23:01:18',
'data_type': 'syslog:line',
'reporter': 'somrandomexe',
'severity': None}
self.CheckEventValues(storage_writer, events[9], expected_event_values)
expected_event_values = {
'date_time': '2013-12-31 17:54:32',
'data_type': 'syslog:line',
'reporter': '/sbin/anacron',
'severity': None}
self.CheckEventValues(storage_writer, events[11], expected_event_values)
expected_event_values = {
'body': (
'This is a multi-line message that screws up\n\tmany syslog '
'parsers.'),
'date_time': '2013-11-18 01:15:20',
'data_type': 'syslog:line',
'pid': 10100,
'reporter': 'aprocess',
'severity': None}
self.CheckEventValues(storage_writer, events[10], expected_event_values)
expected_event_values = {
'body': '[997.390602] sda2: rw=0, want=65, limit=2',
'date_time': '2014-11-18 08:30:20',
'data_type': 'syslog:line',
'hostname': None,
'reporter': 'kernel',
'severity': None}
self.CheckEventValues(storage_writer, events[14], expected_event_values)
# Testing non-leap year.
parser = syslog.SyslogParser()
knowledge_base_values = {'year': 2013}
storage_writer = self._ParseFile(
['syslog'], parser,
knowledge_base_values=knowledge_base_values)
number_of_events = storage_writer.GetNumberOfAttributeContainers('event')
self.assertEqual(number_of_events, 15)
number_of_warnings = storage_writer.GetNumberOfAttributeContainers(
'extraction_warning')
self.assertEqual(number_of_warnings, 2)
number_of_warnings = storage_writer.GetNumberOfAttributeContainers(
'recovery_warning')
self.assertEqual(number_of_warnings, 0)
def testParseWithTimeZone(self):
"""Tests the Parse function with a time zone."""
parser = syslog.SyslogParser()
knowledge_base_values = {'year': 2016}
storage_writer = self._ParseFile(
['syslog_rsyslog_traditional'], parser,
knowledge_base_values=knowledge_base_values, timezone='CET')
number_of_events = storage_writer.GetNumberOfAttributeContainers('event')
self.assertEqual(number_of_events, 8)
number_of_warnings = storage_writer.GetNumberOfAttributeContainers(
'extraction_warning')
self.assertEqual(number_of_warnings, 0)
number_of_warnings = storage_writer.GetNumberOfAttributeContainers(
'recovery_warning')
self.assertEqual(number_of_warnings, 0)
events = list(storage_writer.GetSortedEvents())
expected_event_values = {
'date_time': '2016-01-22 07:54:32',
'data_type': 'syslog:line',
'hostname': 'myhostname.myhost.com',
'reporter': 'Job',
'severity': None,
'timestamp': '2016-01-22 06:54:32.000000'}
self.CheckEventValues(storage_writer, events[0], expected_event_values)
if __name__ == '__main__':
unittest.main()
| 34.013928
| 80
| 0.693064
| 1,324
| 12,211
| 6.111027
| 0.164653
| 0.091583
| 0.07119
| 0.076752
| 0.825238
| 0.775429
| 0.764553
| 0.6967
| 0.682487
| 0.642937
| 0
| 0.0432
| 0.192449
| 12,211
| 358
| 81
| 34.108939
| 0.777305
| 0.054869
| 0
| 0.678431
| 0
| 0
| 0.196794
| 0.017946
| 0
| 0
| 0
| 0
| 0.117647
| 1
| 0.035294
| false
| 0
| 0.011765
| 0
| 0.05098
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
36ef8b9ba79eaca7e7304f1e5fd28fc3328bfe82
| 156
|
py
|
Python
|
usf_dime_novels/common/tests/__init__.py
|
thePortus/usf-dime-novels
|
04b21e758a29c405af54782c8b8c2c5ef397270f
|
[
"MIT"
] | 1
|
2018-08-11T03:30:10.000Z
|
2018-08-11T03:30:10.000Z
|
usf_dime_novels/common/tests/__init__.py
|
thePortus/usf-dime-novels
|
04b21e758a29c405af54782c8b8c2c5ef397270f
|
[
"MIT"
] | 4
|
2017-06-26T16:19:22.000Z
|
2021-06-01T22:17:21.000Z
|
usf_dime_novels/common/tests/__init__.py
|
thePortus/usf-dime-novels
|
04b21e758a29c405af54782c8b8c2c5ef397270f
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""common/tests/__init__.py
By David J. Thomas, thePortus.com, dave.a.base@gmail.com
The init file for the common module tests
"""
| 22.285714
| 56
| 0.692308
| 26
| 156
| 4
| 0.807692
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007463
| 0.141026
| 156
| 6
| 57
| 26
| 0.768657
| 0.942308
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 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
| 4
|
36fb7b1f0949f17a082e85a42e470a3b2f8c78ff
| 2,166
|
py
|
Python
|
dlabsite/views.py
|
vanandrew/dglabsite
|
001a01f850af386b7a32bece072ab4f6802739a0
|
[
"MIT"
] | null | null | null |
dlabsite/views.py
|
vanandrew/dglabsite
|
001a01f850af386b7a32bece072ab4f6802739a0
|
[
"MIT"
] | null | null | null |
dlabsite/views.py
|
vanandrew/dglabsite
|
001a01f850af386b7a32bece072ab4f6802739a0
|
[
"MIT"
] | 1
|
2018-10-09T14:48:27.000Z
|
2018-10-09T14:48:27.000Z
|
from django.shortcuts import render
from django.http import HttpResponseRedirect
from .models import (lab_member, publication, job_listing,
media_listing, current_study, data_listing, software_listing)
from datetime import datetime
# homepage
def home_page(request):
return render(request, 'dlabsite/index.html')
# lab member page
def people_page(request):
# Get all lab members
members = lab_member.objects.all().order_by('last_name')
return render(request, 'dlabsite/people.html', {'members': members})
# research
def research_page(request):
return render(request, 'dlabsite/research.html')
# publications
def publications_page(request):
publications = publication.objects.all().order_by('-date')
dateobjs = publication.objects.dates('date','year',order='DESC')
years = [date.year for date in dateobjs]
return render(request, 'dlabsite/publications.html', {'publications': publications, 'years': years})
# media
def media_page(request):
media = media_listing.objects.all().order_by('-date')
dateobjs = media_listing.objects.dates('date','year',order='DESC')
years = [date.year for date in dateobjs]
return render(request, 'dlabsite/media_coverage.html', {'media': media, 'years': years})
# data
def data_page(request):
data = data_listing.objects.all().order_by('title')
return render(request, 'dlabsite/data.html', {'data': data})
# software
def software_page(request):
software = software_listing.objects.all().order_by('title')
return render(request, 'dlabsite/software.html', {'software': software})
# directions
def directions_page(request):
return render(request, 'dlabsite/directions.html')
# participate
def participate_page(request):
currentstudies = current_study.objects.all().order_by('title')
return render(request, 'dlabsite/participate.html', {'currentstudies': currentstudies})
# careers
def careers_page(request):
jobpostings = job_listing.objects.all().order_by('-post_date')
return render(request, 'dlabsite/careers.html', {'jobpostings': jobpostings})
# contact
def contact_page(request):
return render(request, 'dlabsite/contact.html')
| 34.935484
| 104
| 0.739612
| 264
| 2,166
| 5.939394
| 0.212121
| 0.077168
| 0.133291
| 0.189413
| 0.366071
| 0.346301
| 0.212372
| 0.212372
| 0.212372
| 0.181122
| 0
| 0
| 0.125577
| 2,166
| 61
| 105
| 35.508197
| 0.827878
| 0.05771
| 0
| 0.052632
| 0
| 0
| 0.189842
| 0.093195
| 0
| 0
| 0
| 0
| 0
| 1
| 0.289474
| false
| 0
| 0.105263
| 0.105263
| 0.684211
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
7fdf7ce1e557d379b88ef74c797b1e8d10ad02cd
| 164
|
py
|
Python
|
pyapple/src/__init__.py
|
fxrcha/Pyapple
|
0d28ea0e85e096eb21639814ccff352b73281b99
|
[
"MIT"
] | null | null | null |
pyapple/src/__init__.py
|
fxrcha/Pyapple
|
0d28ea0e85e096eb21639814ccff352b73281b99
|
[
"MIT"
] | null | null | null |
pyapple/src/__init__.py
|
fxrcha/Pyapple
|
0d28ea0e85e096eb21639814ccff352b73281b99
|
[
"MIT"
] | null | null | null |
from .jailbreak import Jailbreak
from .ipsw import IPSWME
from .shsh2 import SHSH2
from .swscan import SWSCAN
__all__ = ["Jailbreak", "IPSWME", "SHSH2", "SWSCAN"]
| 23.428571
| 52
| 0.75
| 21
| 164
| 5.666667
| 0.380952
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021277
| 0.140244
| 164
| 6
| 53
| 27.333333
| 0.822695
| 0
| 0
| 0
| 0
| 0
| 0.158537
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.8
| 0
| 0.8
| 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
| 0
| 1
| 0
|
0
| 4
|
7fe2a73483ddc6220a208311123a1ef2a7bd5096
| 480
|
py
|
Python
|
src/sage/rings/padics/all.py
|
defeo/sage
|
d8822036a9843bd4d75845024072515ede56bcb9
|
[
"BSL-1.0"
] | 2
|
2018-06-30T01:37:35.000Z
|
2018-06-30T01:37:39.000Z
|
src/sage/rings/padics/all.py
|
boothby/sage
|
1b1e6f608d1ef8ee664bb19e991efbbc68cbd51f
|
[
"BSL-1.0"
] | null | null | null |
src/sage/rings/padics/all.py
|
boothby/sage
|
1b1e6f608d1ef8ee664bb19e991efbbc68cbd51f
|
[
"BSL-1.0"
] | null | null | null |
from __future__ import absolute_import
from .generic_nodes import is_pAdicField, is_pAdicRing
from .factory import Zp, Zq, Zp as pAdicRing, ZpCR, ZpCA, ZpFM, ZqCR, ZqCA, ZqFM #, ZpL, ZqL
from .factory import Qp, Qq, Qp as pAdicField, QpCR, QqCR #, QpL, QqL
from .factory import pAdicExtension
from .padic_generic import local_print_mode
from .pow_computer import PowComputer
from .pow_computer_ext import PowComputer_ext_maker
from .discrete_value_group import DiscreteValueGroup
| 48
| 92
| 0.820833
| 71
| 480
| 5.295775
| 0.577465
| 0.087766
| 0.135638
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122917
| 480
| 9
| 93
| 53.333333
| 0.893112
| 0.041667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0.111111
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7ff3ea739ea25c7169ebcdcf38aa31f34e46a73c
| 484
|
py
|
Python
|
Classes/Packets/Server/Socket/KeepAliveServerMessage.py
|
ServerBSvvv/BSDS-V41
|
5ffbc308c520f6d4e8a8fb9d7eca497c59735653
|
[
"Apache-2.0"
] | 19
|
2021-12-23T19:15:09.000Z
|
2022-03-03T12:40:33.000Z
|
Classes/Packets/Server/Socket/KeepAliveServerMessage.py
|
ServerBSvvv/BSDS-V41
|
5ffbc308c520f6d4e8a8fb9d7eca497c59735653
|
[
"Apache-2.0"
] | 12
|
2021-12-23T19:16:31.000Z
|
2022-03-04T08:58:18.000Z
|
Classes/Packets/Server/Socket/KeepAliveServerMessage.py
|
ServerBSvvv/BSDS-V41
|
5ffbc308c520f6d4e8a8fb9d7eca497c59735653
|
[
"Apache-2.0"
] | 13
|
2021-12-24T10:00:11.000Z
|
2022-03-14T02:03:54.000Z
|
from Classes.Packets.PiranhaMessage import PiranhaMessage
class KeepAliveServerMessage(PiranhaMessage):
def __init__(self, messageData):
super().__init__(messageData)
self.messageVersion = 0
def encode(self, fields):
pass
def decode(self):
return {}
def execute(message, calling_instance, fields):
pass
def getMessageType(self):
return 20108
def getMessageVersion(self):
return self.messageVersion
| 22
| 57
| 0.67562
| 46
| 484
| 6.913043
| 0.565217
| 0.09434
| 0.081761
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016484
| 0.247934
| 484
| 22
| 58
| 22
| 0.857143
| 0
| 0
| 0.133333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0.133333
| 0.066667
| 0.2
| 0.733333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
7ff77a3d17cf69e093327077319a2cf8a8ae422b
| 301
|
py
|
Python
|
discord/ext/converters/bot.py
|
Gobot1234/discord-ext-converters
|
b083160aa2df09cde4f6de11bb5e057eadbd65fc
|
[
"Apache-2.0"
] | 5
|
2020-07-31T12:39:24.000Z
|
2021-02-06T12:20:32.000Z
|
discord/ext/converters/bot.py
|
Gobot1234/discord-ext-converters
|
b083160aa2df09cde4f6de11bb5e057eadbd65fc
|
[
"Apache-2.0"
] | 3
|
2020-10-14T17:45:59.000Z
|
2021-03-29T01:06:32.000Z
|
discord/ext/converters/bot.py
|
Gobot1234/discord-ext-converters
|
b083160aa2df09cde4f6de11bb5e057eadbd65fc
|
[
"Apache-2.0"
] | 6
|
2020-07-31T13:25:22.000Z
|
2021-02-25T13:57:50.000Z
|
from discord.ext.commands.bot import BotBase, Bot, AutoShardedBot
from .core import ConvertersGroupMixin
class ConvertersBotBase(BotBase, ConvertersGroupMixin):
...
class ConvertersBot(Bot, ConvertersBotBase):
...
class AutoShardedConvertersBot(AutoShardedBot, ConvertersBotBase):
...
| 23.153846
| 66
| 0.784053
| 25
| 301
| 9.44
| 0.56
| 0.211864
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126246
| 301
| 12
| 67
| 25.083333
| 0.897338
| 0
| 0
| 0.375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.25
| 0
| 0.625
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
3d5bba8827a603a018b980ff3fb4827fe76d476b
| 301
|
py
|
Python
|
api/webdriver/Info.py
|
Cleyton-Oliveira/WhatsAppAPI
|
c0c12aa7aca9749ca59a176331d42be4d749c7e6
|
[
"MIT"
] | null | null | null |
api/webdriver/Info.py
|
Cleyton-Oliveira/WhatsAppAPI
|
c0c12aa7aca9749ca59a176331d42be4d749c7e6
|
[
"MIT"
] | null | null | null |
api/webdriver/Info.py
|
Cleyton-Oliveira/WhatsAppAPI
|
c0c12aa7aca9749ca59a176331d42be4d749c7e6
|
[
"MIT"
] | null | null | null |
info = {
'driver_path' : "\\\\webdriver\\\\content\\\\geckodriver.exe",
'profile_path' : "\\\\webdriver\\\\content\\\\firefox_profile",
'primary_url' : "https://web.whatsapp.com",
'send_url' : "https://web.whatsapp.com/send?phone={}&text={}",
'send_button_class_name' : "_2Ujuu"
}
| 37.625
| 67
| 0.61794
| 33
| 301
| 5.363636
| 0.666667
| 0.146893
| 0.225989
| 0.214689
| 0.293785
| 0.293785
| 0
| 0
| 0
| 0
| 0
| 0.003817
| 0.129568
| 301
| 7
| 68
| 43
| 0.671756
| 0
| 0
| 0
| 0
| 0
| 0.750831
| 0.358804
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e9ec180df89b34b6157c07df64caefaa0791ba17
| 1,912
|
py
|
Python
|
sqlite4dummy-0.0.6/build/lib/sqlite4dummy/tests/functionality/test_Delete.py
|
link-money-dev/link-api-web-service
|
3da226c7115ee4267f8346620029b710b9987e74
|
[
"BSD-3-Clause"
] | null | null | null |
sqlite4dummy-0.0.6/build/lib/sqlite4dummy/tests/functionality/test_Delete.py
|
link-money-dev/link-api-web-service
|
3da226c7115ee4267f8346620029b710b9987e74
|
[
"BSD-3-Clause"
] | 1
|
2021-06-01T22:32:25.000Z
|
2021-06-01T22:32:25.000Z
|
sqlite4dummy-0.0.6/sqlite4dummy/tests/functionality/test_Delete.py
|
link-money-dev/link-api-web-service
|
3da226c7115ee4267f8346620029b710b9987e74
|
[
"BSD-3-Clause"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
本测试模块用于测试与 :class:`sqlite4dummy.schema.Delete` 有关的功能
class, method, func, exception
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
from __future__ import print_function, unicode_literals
from sqlite4dummy import *
from sqlite4dummy.tests.basetest import *
import unittest
# class DeleteUnittest(AdvanceUnittest):
# """Unittest of :class:`sqlite4dummy.schema.Delete`.
# """
# def test_delete_all_sql(self):
# print("{:=^100}".format("delete all formatted sql:"))
# print(self.all_type.delete().sql)
# print(self.has_pk.delete().sql)
# print(self.non_pk.delete().sql)
# pass
#
# def test_delete_where_sql(self):
# print("{:=^100}".format("delete where formatted sql:"))
# print(self.all_type.delete().\
# where(self.all_type.c._id >= 500,
# self.all_type.c._int <= 500,
# self.all_type.c._float >= 0.5,).sql)
# pass
#
# def test_delete_all(self):
# # see how many records in database at beginning
# self.assertEqual(
# self.engine.execute(
# "SELECT COUNT(*) FROM (SELECT * FROM %s)" % self.all_type).\
# fetchone()[0],
# 1000,
# )
#
# # delete 300 records (_id from 701 to 1000)
# self.engine.execute(self.all_type.delete().\
# where(self.all_type.c._id >= 701).sql)
#
# # see if we still got 700 results
# self.assertEqual(
# self.engine.execute(
# "SELECT COUNT(*) FROM (SELECT * FROM %s)" % self.all_type).\
# fetchone()[0],
# 700,
# )
if __name__ == "__main__":
unittest.main()
| 33.54386
| 80
| 0.502092
| 197
| 1,912
| 4.680203
| 0.390863
| 0.06833
| 0.107375
| 0.052061
| 0.437093
| 0.361171
| 0.302603
| 0.247289
| 0.247289
| 0.247289
| 0
| 0.033846
| 0.320084
| 1,912
| 57
| 81
| 33.54386
| 0.675385
| 0.819038
| 0
| 0
| 0
| 0
| 0.033195
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0.166667
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
e9f4a2e9a5a8ffef40ade2a20083575459d711a1
| 87
|
py
|
Python
|
pysynth/__main__.py
|
simberaj/pysynth
|
c4231e8e1beb88d34c5af6a7fa8c5e34b2bc39fe
|
[
"MIT"
] | 9
|
2020-07-08T12:59:31.000Z
|
2021-12-28T12:50:45.000Z
|
pysynth/__main__.py
|
FatemeZamanian/pysynth
|
c4231e8e1beb88d34c5af6a7fa8c5e34b2bc39fe
|
[
"MIT"
] | 7
|
2020-01-06T21:12:15.000Z
|
2021-11-12T22:13:50.000Z
|
pysynth/__main__.py
|
FatemeZamanian/pysynth
|
c4231e8e1beb88d34c5af6a7fa8c5e34b2bc39fe
|
[
"MIT"
] | 32
|
2020-02-08T14:12:42.000Z
|
2022-03-30T09:27:17.000Z
|
import sys
import pysynth
if __name__ == '__main__':
pysynth.main(*sys.argv[1:])
| 12.428571
| 31
| 0.678161
| 12
| 87
| 4.25
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013889
| 0.172414
| 87
| 6
| 32
| 14.5
| 0.694444
| 0
| 0
| 0
| 0
| 0
| 0.091954
| 0
| 0
| 0
| 0
| 0
| 0
| 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
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
18063b7a995b7367338a793f01ae8c14a535a786
| 2,942
|
py
|
Python
|
Main Build/Scripts/Tile_Classes.py
|
Phill544/B.Ash
|
76ef7d71482c9a6138645c6b48484f39f6b38439
|
[
"MIT"
] | null | null | null |
Main Build/Scripts/Tile_Classes.py
|
Phill544/B.Ash
|
76ef7d71482c9a6138645c6b48484f39f6b38439
|
[
"MIT"
] | null | null | null |
Main Build/Scripts/Tile_Classes.py
|
Phill544/B.Ash
|
76ef7d71482c9a6138645c6b48484f39f6b38439
|
[
"MIT"
] | null | null | null |
import cv2
###########################################################
# These classes are used as part of the pyGrids for #
# a more accurate player movement. #
###########################################################
class Tile:
# Basic Tile Class
pos = (-1,-1)
walkable = False
interactable = False
playerFace = ""
unique_img = None #Takes an image
def __init__(self, p , w, i, f = ""):
self.pos = p
self.walkable = w
self.interactable = i
self.playerFace = f
#These four values are used for pathfinding
self.g = 0
self.h = 0
self.f = 0
self.parent = None
def tile_print(self):
print("Position : " + str(self.pos))
print("Walkable: " + str(self.walkable))
print("Interactable: " + str(self.interactable))
print("Player Direction: " + self.playerFace)
def grab_uniq_img(self):
return cv2.imread("..\\littleroot_tiles\\" + str(self.pos[1]-1) + "," + str(self.pos[0]-1) + ".bmp")
#Definitions for pathfinding
def __lt__(self, other):
return(self.pos < other.pos)
def __le__(self, other):
return(self.pos <= other.pos)
def __eq__(self, other):
return(self.pos == other.pos)
def __ne__(self, other):
return(self.pos != other.pos)
def __gt__(self, other):
return(self.pos > other.pos)
def __ge__(self, other):
return(self.pos >= other.pos)
# A transition tile is a tile that when walked on, will change the player's
# current region.
class Transition(Tile):
newArea = ""
# TODO: add what tile coord the player will be on
def __init__(self, p , w, i, f, a ):
Tile.__init__(self, p , w, i, f)
self.newArea = a
#Definitions for pathfinding
def __lt__(self, other):
return(self.pos < other.pos)
def __le__(self, other):
return(self.pos <= other.pos)
def __eq__(self, other):
return(self.pos == other.pos)
def __ne__(self, other):
return(self.pos != other.pos)
def __gt__(self, other):
return(self.pos > other.pos)
def __ge__(self, other):
return(self.pos >= other.pos)
class Item(Tile):
item_id = -1
def __init__(self, p , w, i, f = "", _item_id = -1 ):
Tile.__init__(self, p , w, i, f)
self.item_id = _item_id
class Obstacle(Tile):
ob_type = -1 # Each number is a different obstacle, e.g. a rocksmash rock may have an id of 2 and a cut tree may have id of 3
def __init__(self, p , w, i, f = "", _ob_type = -1 ):
Tile.__init__(self, p , w, i, f)
self.ob_type = _ob_type
def TransFromUnknown(pos,walkable,interactable, facing, newArea):
return Transition(pos, walkable, interactable, facing, newArea)
def TileFromUnknown(pos,walkable,interactable, facing):
return Tile(pos, walkable, interactable, facing)
| 29.717172
| 129
| 0.57308
| 390
| 2,942
| 4.084615
| 0.264103
| 0.070308
| 0.112994
| 0.143126
| 0.419335
| 0.374137
| 0.374137
| 0.333961
| 0.321406
| 0.295041
| 0
| 0.007892
| 0.267845
| 2,942
| 98
| 130
| 30.020408
| 0.731662
| 0.166213
| 0
| 0.409091
| 0
| 0
| 0.034468
| 0.009479
| 0
| 0
| 0
| 0.010204
| 0
| 1
| 0.30303
| false
| 0
| 0.015152
| 0.227273
| 0.545455
| 0.075758
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
1822b1124f06d358c835e3b8d578222a231ef3e3
| 663
|
py
|
Python
|
randombtc/__init__.py
|
callebtc/randombtc
|
3588d6386f7cf6f2ef4aa492b0596c32b53bbb94
|
[
"MIT"
] | 5
|
2022-01-05T11:15:21.000Z
|
2022-02-03T03:39:59.000Z
|
randombtc/__init__.py
|
callebtc/randombtc
|
3588d6386f7cf6f2ef4aa492b0596c32b53bbb94
|
[
"MIT"
] | null | null | null |
randombtc/__init__.py
|
callebtc/randombtc
|
3588d6386f7cf6f2ef4aa492b0596c32b53bbb94
|
[
"MIT"
] | null | null | null |
from .base import HashSource
from .source_mempoolspace import MempoolSpace
# from .functions import *
BLOCKCHAIN_SOURCE = MempoolSpace
ENTROPY_SOUCE = "merkle_root"
generator = BLOCKCHAIN_SOURCE(ENTROPY_SOUCE)
def random():
return generator.random()
def uniform(a, b) -> float:
return generator.uniform(a, b)
def entropy():
return generator.entropy()
def choice(seq):
return generator.choice(seq)
def choices(population, k=1):
return generator.choices(population, k)
def sample_once():
return generator.sample_once()
def sample(k):
return generator.sample(k)
def get_timestamp():
return generator.get_timestamp()
| 16.170732
| 45
| 0.733032
| 82
| 663
| 5.804878
| 0.365854
| 0.252101
| 0.037815
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.001808
| 0.165913
| 663
| 40
| 46
| 16.575
| 0.858951
| 0.036199
| 0
| 0
| 0
| 0
| 0.017268
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.380952
| false
| 0
| 0.095238
| 0.380952
| 0.857143
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
1824e13b08cd082318d03097f0c50cc6420931c5
| 124
|
py
|
Python
|
run.py
|
jonathan-sudo/flask_oc
|
fa55a58fea6e3a591f988f0d381ccae06bfef355
|
[
"MIT"
] | null | null | null |
run.py
|
jonathan-sudo/flask_oc
|
fa55a58fea6e3a591f988f0d381ccae06bfef355
|
[
"MIT"
] | null | null | null |
run.py
|
jonathan-sudo/flask_oc
|
fa55a58fea6e3a591f988f0d381ccae06bfef355
|
[
"MIT"
] | null | null | null |
#! /usr/bin/env/ python
"""
Runs the project
"""
from fbapp import app
if __name__ == "__main__":
app.run(debug=True)
| 12.4
| 26
| 0.645161
| 18
| 124
| 4
| 0.944444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.185484
| 124
| 9
| 27
| 13.777778
| 0.712871
| 0.314516
| 0
| 0
| 0
| 0
| 0.103896
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
184c5d0d9432d28439ba0fe35eed5fc8761a73d5
| 197
|
py
|
Python
|
examples/cupoftee/__init__.py
|
est/werkzeug
|
1a852423e6fc6d9bd3a0e0c756dde5680c38cee0
|
[
"BSD-3-Clause"
] | 1
|
2020-08-08T21:54:22.000Z
|
2020-08-08T21:54:22.000Z
|
examples/cupoftee/__init__.py
|
est/werkzeug
|
1a852423e6fc6d9bd3a0e0c756dde5680c38cee0
|
[
"BSD-3-Clause"
] | 1
|
2019-05-11T16:26:21.000Z
|
2019-05-11T16:26:21.000Z
|
examples/cupoftee/__init__.py
|
est/werkzeug
|
1a852423e6fc6d9bd3a0e0c756dde5680c38cee0
|
[
"BSD-3-Clause"
] | 1
|
2021-01-14T08:58:12.000Z
|
2021-01-14T08:58:12.000Z
|
# -*- coding: utf-8 -*-
"""
cupoftee
~~~~~~~~
Werkzeug powered Teeworlds Server Browser.
:copyright: 2007 Pallets
:license: BSD-3-Clause
"""
from .application import make_app
| 16.416667
| 46
| 0.614213
| 21
| 197
| 5.714286
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.039474
| 0.228426
| 197
| 11
| 47
| 17.909091
| 0.75
| 0.675127
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
43e88305ebdf17f4c79469b2e3f60c23470e3c00
| 1,716
|
py
|
Python
|
pdpp/styles/graph_style.py
|
UWNETLAB/pdpp
|
011b8f27c191a0c7427c5a90eb75ce1fa0452bac
|
[
"MIT"
] | 1
|
2022-02-06T14:36:22.000Z
|
2022-02-06T14:36:22.000Z
|
pdpp/styles/graph_style.py
|
UWNETLAB/pdpp
|
011b8f27c191a0c7427c5a90eb75ce1fa0452bac
|
[
"MIT"
] | 4
|
2020-08-12T18:13:34.000Z
|
2021-01-19T19:07:52.000Z
|
pdpp/styles/graph_style.py
|
UWNETLAB/pdpp
|
011b8f27c191a0c7427c5a90eb75ce1fa0452bac
|
[
"MIT"
] | null | null | null |
class base_graph_style():
NAME:str = ''
class default_graph_style(base_graph_style):
NAME:str = 'default'
# Task Nodes:
TASK_NODE_STYLE = 'filled'
TASK_NODE_SHAPE = 'box3d'
TASK_NODE_PENWIDTH = 1,
TASK_NODE_FONTCOLOR = 'black'
DISABLED_TASK_COLOR = 'dimgrey'
DISABLED_TASK_FONTCOLOR = TASK_NODE_FONTCOLOR
DISABLED_TASK_STYLE = 'dashed'
START_TASK_COLOR = '#3E8DCF'
END_TASK_COLOR = '#E95C3F'
MID_TASK_COLOR = '#F2A93B'
# File Nodes:
FILE_NODE_STYLE = 'filled'
FILE_FILE_SHAPE = 'note'
FILE_DIR_SHAPE = 'tab'
FILE_NODE_COLOR = '#bbd698'
FILE_NODE_PENWIDTH = 1
# Source Nodes:
SOURCE_STYLE = 'filled'
SOURCE_FONT_COLOR = 'black'
SOURCE_FILL_COLOR = '#9d6edb'
SOURCE_SHAPE = 'component'
SOURCE_PENWIDTH = 1
# Edges:
EDGE_COLOR = '#828282'
EDGE_PEN_WIDTH = 1.5
class greyscale_graph_style(base_graph_style):
NAME:str = 'greyscale'
# Task Nodes:
TASK_NODE_STYLE = 'filled'
TASK_NODE_SHAPE = 'box3d'
TASK_NODE_PENWIDTH = 1,
TASK_NODE_FONTCOLOR = 'black'
DISABLED_TASK_COLOR = 'black'
DISABLED_TASK_FONTCOLOR = 'black'
DISABLED_TASK_STYLE = 'dashed'
START_TASK_COLOR = '#c4c4c4'
MID_TASK_COLOR = '#b0b0b0'
END_TASK_COLOR = '#787878'
# File Nodes:
FILE_NODE_STYLE = 'filled'
FILE_FILE_SHAPE = 'note'
FILE_DIR_SHAPE = 'tab'
FILE_NODE_COLOR = '#f0f0f0'
FILE_NODE_PENWIDTH = 1
# Source Nodes:
SOURCE_STYLE = 'filled'
SOURCE_FONT_COLOR = 'black'
SOURCE_FILL_COLOR = 'white'
SOURCE_SHAPE = 'component'
SOURCE_PENWIDTH = 1
# Edges:
EDGE_COLOR = '#828282'
EDGE_PEN_WIDTH = 1.5
| 23.189189
| 49
| 0.65676
| 212
| 1,716
| 4.882075
| 0.231132
| 0.069565
| 0.057971
| 0.052174
| 0.777778
| 0.757488
| 0.757488
| 0.626087
| 0.626087
| 0.626087
| 0
| 0.040217
| 0.246504
| 1,716
| 73
| 50
| 23.506849
| 0.760247
| 0.051865
| 0
| 0.6
| 0
| 0
| 0.139492
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
43f0b6dd839da03e398ff00fc1b28f1f1055666d
| 65
|
py
|
Python
|
sample/alumni/admin.py
|
hdknr/flier
|
eca75b972ed91c3107b5c6007366caf93313d8e8
|
[
"BSD-2-Clause-FreeBSD"
] | null | null | null |
sample/alumni/admin.py
|
hdknr/flier
|
eca75b972ed91c3107b5c6007366caf93313d8e8
|
[
"BSD-2-Clause-FreeBSD"
] | null | null | null |
sample/alumni/admin.py
|
hdknr/flier
|
eca75b972ed91c3107b5c6007366caf93313d8e8
|
[
"BSD-2-Clause-FreeBSD"
] | null | null | null |
from flier.admin import register
register(__name__, globals())
| 13
| 32
| 0.784615
| 8
| 65
| 5.875
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123077
| 65
| 4
| 33
| 16.25
| 0.824561
| 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 | 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
| 4
|
43fd24a0219ac561a3880e26d1dcc5e45881362d
| 638
|
py
|
Python
|
output/examples/example6/view.py
|
cy15196/FastCAE
|
0870752ec2e590f3ea6479e909ebf6c345ac2523
|
[
"BSD-3-Clause"
] | 117
|
2020-03-07T12:07:05.000Z
|
2022-03-27T07:35:22.000Z
|
output/examples/example6/view.py
|
cy15196/FastCAE
|
0870752ec2e590f3ea6479e909ebf6c345ac2523
|
[
"BSD-3-Clause"
] | 4
|
2020-03-12T15:36:57.000Z
|
2022-02-08T02:19:17.000Z
|
output/examples/example6/view.py
|
cy15196/FastCAE
|
0870752ec2e590f3ea6479e909ebf6c345ac2523
|
[
"BSD-3-Clause"
] | 76
|
2020-03-16T01:47:46.000Z
|
2022-03-21T16:37:07.000Z
|
MainWindow.clearData()
MainWindow.openPost3D()
PostProcess.script_openFile(-1,"Post3D","%examplesPath%/water.vtk")
PostProcess.script_openFile(-1,"Post3D","%examplesPath%/platform.vtk")
PostProcess.script_applyClicked(-1,"Post3D")
PostProcess.script_Properties_streamline_integration_direction(-1,"Post3D",3,2)
PostProcess.script_Properties_streamline_integration_type(-1,"Post3D",3,1)
PostProcess.script_Properties_streamline_integration_stepUnit(-1,"Post3D",3,2)
PostProcess.script_Properties_streamline_seeds_num_points(-1,"Post3D",3,100)
PostProcess.script_FilterStreamLine(-1,"Post3D",1)
PostProcess.script_applyClicked(-1,"Post3D")
| 53.166667
| 79
| 0.838558
| 77
| 638
| 6.662338
| 0.337662
| 0.298246
| 0.210526
| 0.288499
| 0.699805
| 0.350877
| 0.179337
| 0.179337
| 0
| 0
| 0
| 0.047847
| 0.017241
| 638
| 11
| 80
| 58
| 0.770335
| 0
| 0
| 0.181818
| 0
| 0
| 0.164577
| 0.079937
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 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
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
a103c6c34acdf905f255ca05bdb42262cea3995d
| 163
|
py
|
Python
|
pwd_manager/app/__init__.py
|
CodeJxer/password-manage
|
9c86a4e9b3581d9a2fe630ebf0c1d5b2d384bf2f
|
[
"MIT"
] | null | null | null |
pwd_manager/app/__init__.py
|
CodeJxer/password-manage
|
9c86a4e9b3581d9a2fe630ebf0c1d5b2d384bf2f
|
[
"MIT"
] | null | null | null |
pwd_manager/app/__init__.py
|
CodeJxer/password-manage
|
9c86a4e9b3581d9a2fe630ebf0c1d5b2d384bf2f
|
[
"MIT"
] | null | null | null |
# -*- coding=UTF-8 -*-
#
# Copyright © pwd-manager Project Contributors
# Licensed under the terms of the MIT License
# (see pwd-manager/__init__.py for details)
| 23.285714
| 46
| 0.717791
| 24
| 163
| 4.75
| 0.875
| 0.175439
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007299
| 0.159509
| 163
| 6
| 47
| 27.166667
| 0.817518
| 0.92638
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 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
| 4
|
a1118d2a48490ce498ce89c55e73023eee6224e5
| 32
|
py
|
Python
|
tests/test_core/test_util/__init__.py
|
kucera-lukas/ImageSecrets
|
d7720886b215c5a40b94d4f06cb10d3c106dfcde
|
[
"MIT"
] | null | null | null |
tests/test_core/test_util/__init__.py
|
kucera-lukas/ImageSecrets
|
d7720886b215c5a40b94d4f06cb10d3c106dfcde
|
[
"MIT"
] | 74
|
2021-08-09T11:50:51.000Z
|
2022-03-30T21:23:24.000Z
|
tests/test_core/test_util/__init__.py
|
kucera-lukas/imagesecrets
|
d7720886b215c5a40b94d4f06cb10d3c106dfcde
|
[
"MIT"
] | null | null | null |
"""Test the utility package."""
| 16
| 31
| 0.65625
| 4
| 32
| 5.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 32
| 1
| 32
| 32
| 0.75
| 0.78125
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
a11899aa3dd3aaecd0a448f93ad6ac5870728c06
| 148,199
|
py
|
Python
|
maya/OpenMayaRender.py
|
arjun-namdeo/py_stubs
|
605bb167e239978f5417f3f1fc1f5c12e2a243cc
|
[
"MIT"
] | null | null | null |
maya/OpenMayaRender.py
|
arjun-namdeo/py_stubs
|
605bb167e239978f5417f3f1fc1f5c12e2a243cc
|
[
"MIT"
] | null | null | null |
maya/OpenMayaRender.py
|
arjun-namdeo/py_stubs
|
605bb167e239978f5417f3f1fc1f5c12e2a243cc
|
[
"MIT"
] | null | null | null |
from __builtin__ import object as _object
from __builtin__ import property as _swig_property
class RV_PIXEL(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
__dict__ = None
__weakref__ = None
a = None
b = None
g = None
r = None
thisown = None
__swig_destroy__ = None
class MRenderSetupPrivate(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def className(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
class MCommonRenderSettingsData(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def getBufferName(*args, **kwargs):
pass
def getImageName(*args, **kwargs):
pass
def isAnimated(*args, **kwargs):
pass
def isMovieFormat(*args, **kwargs):
pass
def setFieldName(*args, **kwargs):
pass
def setPassName(*args, **kwargs):
pass
def shouldRenderFrameAtTime(*args, **kwargs):
pass
def className(*args, **kwargs):
pass
def getPostRenderFrameCmd(*args, **kwargs):
pass
def getPreRenderFrameCmd(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
customExt = None
customImageFormat = None
deviceAspectRatio = None
dotPerInch = None
enableDefaultLight = None
frameBy = None
frameEnd = None
framePadding = None
frameStart = None
height = None
imageFormat = None
name = None
namePattern = None
namingScheme = None
pixelAspectRatio = None
postMel = None
postRenderLayerMel = None
postRenderMel = None
preMel = None
preRenderLayerMel = None
preRenderMel = None
renderAll = None
renumberBy = None
renumberFrames = None
renumberStart = None
skipExistingFrames = None
thisown = None
useCustomExt = None
width = None
__swig_destroy__ = None
kFullPathImage = 1
kFullPathTmp = 2
kRelativePath = 0
class MRenderData(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def screenToWorld(*args, **kwargs):
pass
def worldToScreen(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
aspectRatio = None
bottom = None
bytesPerChannel = None
depthArr = None
eyePoint = None
fieldOfView = None
internalData = None
left = None
perspective = None
resX = None
resY = None
rgbaArr = None
right = None
thisown = None
top = None
viewDirection = None
worldToEyeMatrix = None
xsize = None
ysize = None
__swig_destroy__ = None
class new_instancemethod(_object):
"""
instancemethod(function, instance, class)
Create an instance method object.
"""
def __call__(*args, **kwargs):
"""
x.__call__(...) <==> x(...)
"""
pass
def __cmp__(*args, **kwargs):
"""
x.__cmp__(y) <==> cmp(x,y)
"""
pass
def __delattr__(*args, **kwargs):
"""
x.__delattr__('name') <==> del x.name
"""
pass
def __get__(*args, **kwargs):
"""
descr.__get__(obj[, type]) -> value
"""
pass
def __getattribute__(*args, **kwargs):
"""
x.__getattribute__('name') <==> x.name
"""
pass
def __hash__(*args, **kwargs):
"""
x.__hash__() <==> hash(x)
"""
pass
def __repr__(*args, **kwargs):
"""
x.__repr__() <==> repr(x)
"""
pass
def __setattr__(*args, **kwargs):
"""
x.__setattr__('name', value) <==> x.name = value
"""
pass
__func__ = None
__self__ = None
im_class = None
im_func = None
im_self = None
__new__ = None
class MGeometryManager(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def className(*args, **kwargs):
pass
def dereferenceDefaultGeometry(*args, **kwargs):
pass
def getGeometry(*args, **kwargs):
pass
def referenceDefaultGeometry(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
kDefaultCube = 2
kDefaultPlane = 1
kDefaultSphere = 0
class MRenderUtil(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def className(*args, **kwargs):
pass
def convertPsdFile(*args, **kwargs):
pass
def diffuseReflectance(*args, **kwargs):
pass
def eval2dTexture(*args, **kwargs):
pass
def exactFileTextureName(*args, **kwargs):
pass
def exactImagePlaneFileName(*args, **kwargs):
pass
def generatingIprFile(*args, **kwargs):
pass
def getCommonRenderSettings(*args, **kwargs):
pass
def hemisphereCoverage(*args, **kwargs):
pass
def inCurrentRenderLayer(*args, **kwargs):
pass
def lightAttenuation(*args, **kwargs):
pass
def mainBeautyPassCustomTokenString(*args, **kwargs):
pass
def mainBeautyPassName(*args, **kwargs):
pass
def maximumSpecularReflection(*args, **kwargs):
pass
def mayaRenderState(*args, **kwargs):
pass
def noise1(*args, **kwargs):
pass
def noise2(*args, **kwargs):
pass
def noise3(*args, **kwargs):
pass
def noise4(*args, **kwargs):
pass
def noiseTableCubeSide(*args, **kwargs):
pass
def noiseTableSize(*args, **kwargs):
pass
def raytrace(*args, **kwargs):
pass
def raytraceFirstGeometryIntersections(*args, **kwargs):
pass
def relativeFileName(*args, **kwargs):
pass
def renderObjectItem(*args, **kwargs):
pass
def renderPass(*args, **kwargs):
pass
def sampleShadingNetwork(*args, **kwargs):
pass
def sendRenderProgressInfo(*args, **kwargs):
pass
def valueInNoiseTable(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
kAll = 0
kAmbientOnly = 3
kBatchRender = 1
kColorOnly = 1
kDiffuseOnly = 4
kHardwareRender = 4
kInteractiveRender = 2
kIprRender = 3
kNotRendering = 0
kShadowOnly = 2
kSpecularOnly = 5
class MRenderShadowData(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def worldToZbuffer(*args, **kwargs):
pass
def zbufferToWorld(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
depthMaps = None
internalData = None
lightPosition = None
lightType = None
midDistMaps = None
perspective = None
perspectiveMatrix = None
projectionMatrix = None
shadowResX = None
shadowResY = None
thisown = None
useMidDistMap = None
__swig_destroy__ = None
kDirectional = 2
kInvalid = 0
kPoint = 1
kSpot = 3
from . import OpenMaya
class MFnRenderPass(OpenMaya.MFnDependencyNode):
def __init__(self, *args):
pass
def __repr__(self):
pass
def customTokenString(*args, **kwargs):
pass
def frameBufferChannels(*args, **kwargs):
pass
def frameBufferType(*args, **kwargs):
pass
def getImplementation(*args, **kwargs):
pass
def passID(*args, **kwargs):
pass
def setImplementation(*args, **kwargs):
pass
def usesFiltering(*args, **kwargs):
pass
def className(*args, **kwargs):
pass
thisown = None
__swig_destroy__ = None
class MVaryingParameter(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def addElement(*args, **kwargs):
pass
def assign(*args, **kwargs):
pass
def destinationSet(*args, **kwargs):
pass
def dimension(*args, **kwargs):
pass
def getBuffer(*args, **kwargs):
pass
def getElement(*args, **kwargs):
pass
def getElementSize(*args, **kwargs):
pass
def getMaximumStride(*args, **kwargs):
pass
def getSourceSetName(*args, **kwargs):
pass
def getSourceType(*args, **kwargs):
pass
def getUpdateId(*args, **kwargs):
pass
def name(*args, **kwargs):
pass
def numElements(*args, **kwargs):
pass
def removeElements(*args, **kwargs):
pass
def semantic(*args, **kwargs):
pass
def semanticName(*args, **kwargs):
pass
def setSource(*args, **kwargs):
pass
def type(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
kBinormal = 8
kChar = 3
kColor = 4
kDouble = 2
kFloat = 1
kInt16 = 5
kInt32 = 7
kInvalidParameter = -1
kNoSemantic = 0
kNormal = 2
kPosition = 1
kStructure = 0
kTangent = 7
kTexCoord = 3
kUnsignedChar = 4
kUnsignedInt16 = 6
kUnsignedInt32 = 8
kWeight = 5
class MHwrCallback(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def deviceDeleted(*args, **kwargs):
pass
def deviceLost(*args, **kwargs):
pass
def deviceNew(*args, **kwargs):
pass
def deviceReset(*args, **kwargs):
pass
def addCallback(*args, **kwargs):
pass
def removeCallback(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
class MGeometryData(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def collectionNumber(*args, **kwargs):
pass
def data(*args, **kwargs):
pass
def dataType(*args, **kwargs):
pass
def elementCount(*args, **kwargs):
pass
def elementSize(*args, **kwargs):
pass
def elementType(*args, **kwargs):
pass
def elementTypeSize(*args, **kwargs):
pass
def objectName(*args, **kwargs):
pass
def objectOwnsData(*args, **kwargs):
pass
def setCollectionNumber(*args, **kwargs):
pass
def setObjectOwnsData(*args, **kwargs):
pass
def uniqueID(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
kAPISupported = 6
kBiNormal = 8
kChar = 2
kColor = 4
kColorMask = 11
kDouble = 1
kFloat = 0
kFour = 4
kInt16 = 4
kInt32 = 6
kInvalidDataType = 0
kInvalidElementSize = 0
kInvalidElementType = -1
kMaxDataTypeIndex = 13
kNormal = 2
kOne = 1
kPosition = 1
kPrimitiveCenter = 10
kTangent = 7
kTexCoord = 3
kThree = 3
kTwo = 2
kUnsignedChar = 3
kUnsignedInt16 = 5
kUnsignedInt32 = 7
kUserData = 12
kVelocity = 9
kWeight = 5
class MUniformParameterList(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def append(*args, **kwargs):
pass
def assign(*args, **kwargs):
pass
def getElement(*args, **kwargs):
pass
def length(*args, **kwargs):
pass
def setElement(*args, **kwargs):
pass
def setLength(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
class MFnRenderLayer(OpenMaya.MFnDependencyNode):
def __init__(self, *args):
pass
def __repr__(self):
pass
def adjustmentPlug(*args, **kwargs):
pass
def externalRenderPasses(*args, **kwargs):
pass
def inCurrentRenderLayer(*args, **kwargs):
pass
def inLayer(*args, **kwargs):
pass
def isPlugAdjusted(*args, **kwargs):
pass
def layerChildren(*args, **kwargs):
pass
def listMembers(*args, **kwargs):
pass
def passHasLight(*args, **kwargs):
pass
def passHasObject(*args, **kwargs):
pass
def className(*args, **kwargs):
pass
def currentLayer(*args, **kwargs):
pass
def defaultRenderLayer(*args, **kwargs):
pass
def findLayerByName(*args, **kwargs):
pass
def listAllRenderLayers(*args, **kwargs):
pass
thisown = None
__swig_destroy__ = None
class MGeometryRequirements(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def addBinormal(*args, **kwargs):
pass
def addColor(*args, **kwargs):
pass
def addComponentId(*args, **kwargs):
pass
def addFaceOffsets(*args, **kwargs):
pass
def addNormal(*args, **kwargs):
pass
def addPosition(*args, **kwargs):
pass
def addTangent(*args, **kwargs):
pass
def addTexCoord(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
class MSwatchRenderBase(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def cancelParallelRendering(*args, **kwargs):
pass
def doIteration(*args, **kwargs):
pass
def image(*args, **kwargs):
pass
def node(*args, **kwargs):
pass
def renderParallel(*args, **kwargs):
pass
def renderQuality(*args, **kwargs):
pass
def resolution(*args, **kwargs):
pass
def setRenderQuality(*args, **kwargs):
pass
def swatchNode(*args, **kwargs):
pass
def cancelCurrentSwatchRender(*args, **kwargs):
pass
def enableSwatchRender(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
class MRenderingInfo(_object):
def __init__(self, *args, **kwargs):
pass
def __repr__(self):
pass
def cameraPath(*args, **kwargs):
pass
def height(*args, **kwargs):
pass
def originX(*args, **kwargs):
pass
def originY(*args, **kwargs):
pass
def projectionMatrix(*args, **kwargs):
pass
def renderTarget(*args, **kwargs):
pass
def renderingAPI(*args, **kwargs):
pass
def renderingVersion(*args, **kwargs):
pass
def viewMatrix(*args, **kwargs):
pass
def width(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
class MRenderSetup(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def className(*args, **kwargs):
pass
def getEnabledSelectedNodeNames(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
class MDrawProcedureBase(_object):
def __init__(self, *args, **kwargs):
pass
def __repr__(self):
pass
def enabled(*args, **kwargs):
pass
def execute(*args, **kwargs):
pass
def name(*args, **kwargs):
pass
def setEnabled(*args, **kwargs):
pass
def setName(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
class MLightLinks(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def getIgnoredLights(*args, **kwargs):
pass
def getIgnoredObjects(*args, **kwargs):
pass
def getLinkedLights(*args, **kwargs):
pass
def getLinkedObjects(*args, **kwargs):
pass
def getShadowIgnoredLights(*args, **kwargs):
pass
def getShadowIgnoredObjects(*args, **kwargs):
pass
def getShadowLinkedLights(*args, **kwargs):
pass
def getShadowLinkedObjects(*args, **kwargs):
pass
def parseLinks(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
class MViewportRenderer(_object):
def UIname(*args, **kwargs):
pass
def __init__(self, *args, **kwargs):
pass
def __repr__(self):
pass
def deregisterRenderer(*args, **kwargs):
pass
def initialize(*args, **kwargs):
pass
def name(*args, **kwargs):
pass
def nativelySupports(*args, **kwargs):
pass
def override(*args, **kwargs):
pass
def overrideThenStandardExclusion(*args, **kwargs):
pass
def registerRenderer(*args, **kwargs):
pass
def render(*args, **kwargs):
pass
def renderingOverride(*args, **kwargs):
pass
def setRenderingOverride(*args, **kwargs):
pass
def setUIName(*args, **kwargs):
pass
def uninitialize(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
kDirect3D = 1
kExcludeAll = -1
kExcludeCVs = 131072
kExcludeCameras = 32
kExcludeDeformers = 256
kExcludeDimensions = 4096
kExcludeDynamicConstraints = 134217728
kExcludeDynamics = 512
kExcludeFluids = 2097152
kExcludeFollicles = 4194304
kExcludeGrid = 65536
kExcludeHairSystems = 8388608
kExcludeHulls = 262144
kExcludeIkHandles = 128
kExcludeImagePlane = 16777216
kExcludeJoints = 64
kExcludeLights = 16
kExcludeLocators = 2048
kExcludeManipulators = 268435456
kExcludeMeshes = 4
kExcludeMotionTrails = 1073741824
kExcludeNCloths = 33554432
kExcludeNParticles = 536870912
kExcludeNRigids = 67108864
kExcludeNone = 0
kExcludeNurbsCurves = 1
kExcludeNurbsSurfaces = 2
kExcludeParticleInstancers = 1024
kExcludePivots = 16384
kExcludePlanes = 8
kExcludePluginShapes = -2147483648
kExcludeSelectHandles = 8192
kExcludeStrokes = 524288
kExcludeSubdivSurfaces = 1048576
kExcludeTextures = 32768
kNoOverride = 0
kOpenGL = 0
kOverrideAllDrawing = 1
kOverrideThenStandard = 2
kOverrideThenUI = 3
kSoftware = 2
class MRenderCallback(_object):
def __disown__(self):
pass
def __init__(self, *args):
pass
def __repr__(self):
pass
def postProcessCallback(*args, **kwargs):
pass
def renderCallback(*args, **kwargs):
pass
def shadowCastCallback(*args, **kwargs):
pass
def addCallback(*args, **kwargs):
pass
def addRenderTileCallback(*args, **kwargs):
pass
def className(*args, **kwargs):
pass
def removeCallback(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
class MGeometryList(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def addLast(*args, **kwargs):
pass
def cullMode(*args, **kwargs):
pass
def geometry(*args, **kwargs):
pass
def isDone(*args, **kwargs):
pass
def length(*args, **kwargs):
pass
def next(*args, **kwargs):
pass
def objectToWorldMatrix(*args, **kwargs):
pass
def path(*args, **kwargs):
pass
def projectionMatrix(*args, **kwargs):
pass
def reset(*args, **kwargs):
pass
def setCurrentElement(*args, **kwargs):
pass
def viewMatrix(*args, **kwargs):
pass
MSetupFlags = None
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
kAll = -1
kCullCCW = 2
kCullCW = 1
kCullNone = 0
kCulling = 4
kFixedFunctionLighting = 2
kMatrices = 1
kNone = 0
class MRenderView(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def className(*args, **kwargs):
pass
def doesRenderEditorExist(*args, **kwargs):
pass
def endRender(*args, **kwargs):
pass
def getRenderRegion(*args, **kwargs):
pass
def refresh(*args, **kwargs):
pass
def setCurrentCamera(*args, **kwargs):
pass
def setDrawTileBoundary(*args, **kwargs):
pass
def startRegionRender(*args, **kwargs):
pass
def startRender(*args, **kwargs):
pass
def updatePixels(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
class MRenderTarget(_object):
def __init__(self, *args, **kwargs):
pass
def __repr__(self):
pass
def height(*args, **kwargs):
pass
def makeTargetCurrent(*args, **kwargs):
pass
def width(*args, **kwargs):
pass
def writeColorBuffer(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
class MFnImageSource(OpenMaya.MFnDependencyNode):
def __init__(self, *args):
pass
def __repr__(self):
pass
def getImageName(*args, **kwargs):
pass
def sourceCamera(*args, **kwargs):
pass
def sourceLayer(*args, **kwargs):
pass
def className(*args, **kwargs):
pass
thisown = None
__swig_destroy__ = None
class MRenderProfile(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def addRenderer(*args, **kwargs):
pass
def hasRenderer(*args, **kwargs):
pass
def numberOfRenderers(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
kMayaD3D = 2
kMayaOpenGL = 1
kMayaSoftware = 0
class MVaryingParameterList(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def append(*args, **kwargs):
pass
def assign(*args, **kwargs):
pass
def getElement(*args, **kwargs):
pass
def length(*args, **kwargs):
pass
def setElement(*args, **kwargs):
pass
def setLength(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
class MHwTextureManager(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def className(*args, **kwargs):
pass
def deregisterTextureFile(*args, **kwargs):
pass
def glBind(*args, **kwargs):
pass
def registerTextureFile(*args, **kwargs):
pass
def textureFile(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
class MGeometry(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def assign(*args, **kwargs):
pass
def binormal(*args, **kwargs):
pass
def color(*args, **kwargs):
pass
def componentId(*args, **kwargs):
pass
def data(*args, **kwargs):
pass
def normal(*args, **kwargs):
pass
def position(*args, **kwargs):
pass
def primitiveArray(*args, **kwargs):
pass
def primitiveArrayCount(*args, **kwargs):
pass
def tangent(*args, **kwargs):
pass
def texCoord(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
class RV_AOV(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
__dict__ = None
__weakref__ = None
name = None
numberOfChannels = None
pPixels = None
thisown = None
__swig_destroy__ = None
class MHardwareRenderer(_object):
def __init__(self, *args, **kwargs):
pass
def __repr__(self):
pass
def addDrawProcedure(*args, **kwargs):
pass
def backEndString(*args, **kwargs):
pass
def dereferenceGeometry(*args, **kwargs):
pass
def drawSwatchBackGroundQuads(*args, **kwargs):
pass
def findDrawProcedure(*args, **kwargs):
pass
def getBufferSize(*args, **kwargs):
pass
def getColorBufferPixelFormat(*args, **kwargs):
pass
def getCurrentExposureNumber(*args, **kwargs):
pass
def getDepthBufferPixelFormat(*args, **kwargs):
pass
def getDrawProcedureCount(*args, **kwargs):
pass
def getDrawProcedureListNames(*args, **kwargs):
pass
def getSwatchLightDirection(*args, **kwargs):
pass
def getSwatchOrthoCameraSetting(*args, **kwargs):
pass
def getSwatchPerspectiveCameraSetting(*args, **kwargs):
pass
def getSwatchPerspectiveCameraTranslation(*args, **kwargs):
pass
def getTotalExposureCount(*args, **kwargs):
pass
def glFunctionTable(*args, **kwargs):
pass
def insertDrawProcedure(*args, **kwargs):
pass
def makeResourceContextCurrent(*args, **kwargs):
pass
def makeSwatchContextCurrent(*args, **kwargs):
pass
def readSwatchContextPixels(*args, **kwargs):
pass
def referenceDefaultGeometry(*args, **kwargs):
pass
def removeDrawProcedure(*args, **kwargs):
pass
def restoreCurrent(*args, **kwargs):
pass
def theRenderer(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
kDefaultCube = 2
kDefaultPlane = 1
kDefaultSphere = 0
kDepth_Float32 = 2
kFailure = 1
kItemExists = 2
kItemNotFound = 3
kLocationNotFound = 4
kPostExposure = 2
kPostRendering = 3
kPreExposure = 1
kPreRendering = 0
kRGBA_Fix8 = 0
kRGBA_Float16 = 1
kSuccess = 0
class MD3D9Renderer(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def getD3D9Device(*args, **kwargs):
pass
def makeSwatchContextCurrent(*args, **kwargs):
pass
def readSwatchContextPixels(*args, **kwargs):
pass
def setBackgroundColor(*args, **kwargs):
pass
def theRenderer(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
class MUniformParameter(_object):
def UIHidden(*args, **kwargs):
pass
def __init__(self, *args):
pass
def __repr__(self):
pass
def assign(*args, **kwargs):
pass
def getAsBool(*args, **kwargs):
pass
def getAsFloat(*args, **kwargs):
pass
def getAsFloatArray(*args, **kwargs):
pass
def getAsInt(*args, **kwargs):
pass
def getAsString(*args, **kwargs):
pass
def getPlug(*args, **kwargs):
pass
def getSource(*args, **kwargs):
pass
def hasChanged(*args, **kwargs):
pass
def isATexture(*args, **kwargs):
pass
def keyable(*args, **kwargs):
pass
def name(*args, **kwargs):
pass
def numColumns(*args, **kwargs):
pass
def numElements(*args, **kwargs):
pass
def numRows(*args, **kwargs):
pass
def semantic(*args, **kwargs):
pass
def setAsBool(*args, **kwargs):
pass
def setAsFloat(*args, **kwargs):
pass
def setAsFloatArray(*args, **kwargs):
pass
def setAsInt(*args, **kwargs):
pass
def setAsString(*args, **kwargs):
pass
def setDirty(*args, **kwargs):
pass
def setEnumFieldNames(*args, **kwargs):
pass
def setKeyable(*args, **kwargs):
pass
def setRangeMax(*args, **kwargs):
pass
def setRangeMin(*args, **kwargs):
pass
def setSoftRangeMax(*args, **kwargs):
pass
def setSoftRangeMin(*args, **kwargs):
pass
def setUIHidden(*args, **kwargs):
pass
def setUINiceName(*args, **kwargs):
pass
def type(*args, **kwargs):
pass
def userData(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
kSemanticBackgroundColor = 46
kSemanticBump = 11
kSemanticBumpTexture = 30
kSemanticColor = 9
kSemanticColorTexture = 28
kSemanticEnvironment = 12
kSemanticFrameNumber = 47
kSemanticHWSEdgeLevel = 52
kSemanticHWSFaceLevel = 51
kSemanticHWSFrontCCW = 55
kSemanticHWSHighlighting = 57
kSemanticHWSInstancedDraw = 56
kSemanticHWSObjectLevel = 50
kSemanticHWSOccluder = 54
kSemanticHWSPrimitiveBase = 48
kSemanticHWSPrimitiveCountPerInstance = 49
kSemanticHWSVertexLevel = 53
kSemanticLocalViewer = 44
kSemanticNormal = 10
kSemanticNormalTexture = 29
kSemanticNormalizationTexture = 31
kSemanticObjectDir = 1
kSemanticObjectPos = 5
kSemanticOpaqueDepthTexture = 33
kSemanticProjectionDir = 4
kSemanticProjectionInverseMatrix = 20
kSemanticProjectionInverseTransposeMatrix = 21
kSemanticProjectionMatrix = 19
kSemanticProjectionPos = 8
kSemanticProjectionTransposeMatrix = 37
kSemanticTime = 34
kSemanticTranspDepthTexture = 32
kSemanticUnknown = 0
kSemanticViewDir = 3
kSemanticViewInverseMatrix = 17
kSemanticViewInverseTransposeMatrix = 18
kSemanticViewMatrix = 16
kSemanticViewPos = 7
kSemanticViewProjectionInverseMatrix = 41
kSemanticViewProjectionInverseTransposeMatrix = 43
kSemanticViewProjectionMatrix = 40
kSemanticViewProjectionTransposeMatrix = 42
kSemanticViewTransposeMatrix = 36
kSemanticViewportPixelSize = 45
kSemanticWorldDir = 2
kSemanticWorldInverseMatrix = 14
kSemanticWorldInverseTransposeMatrix = 15
kSemanticWorldMatrix = 13
kSemanticWorldPos = 6
kSemanticWorldTransposeMatrix = 35
kSemanticWorldViewInverseMatrix = 23
kSemanticWorldViewInverseTransposeMatrix = 24
kSemanticWorldViewMatrix = 22
kSemanticWorldViewProjectionInverseMatrix = 26
kSemanticWorldViewProjectionInverseTransposeMatrix = 27
kSemanticWorldViewProjectionMatrix = 25
kSemanticWorldViewProjectionTransposeMatrix = 39
kSemanticWorldViewTransposeMatrix = 38
kType1DTexture = 4
kType2DTexture = 5
kType3DTexture = 6
kTypeBool = 1
kTypeCubeTexture = 7
kTypeEnum = 10
kTypeEnvTexture = 8
kTypeFloat = 3
kTypeInt = 2
kTypeString = 9
kTypeUnknown = 0
class MGeometryPrimitive(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def data(*args, **kwargs):
pass
def dataType(*args, **kwargs):
pass
def drawPrimitiveType(*args, **kwargs):
pass
def elementCount(*args, **kwargs):
pass
def uniqueID(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
kInvalidIndexType = 0
kLineLoop = 4
kLineStrip = 3
kLines = 2
kMaxDrawPrimitiveTypeIndex = 11
kPoints = 1
kPolygon = 10
kQuadStrip = 9
kQuads = 8
kTriangleFan = 7
kTriangleStrip = 6
kTriangles = 5
class MSwatchRenderRegister(_object):
def __init__(self, *args):
pass
def __repr__(self):
pass
def registerSwatchRender(*args, **kwargs):
pass
def unregisterSwatchRender(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
__swig_destroy__ = None
class MGLFunctionTable(_object):
def __init__(self, *args, **kwargs):
pass
def __repr__(self):
pass
def extensionExists(*args, **kwargs):
pass
def glAccum(*args, **kwargs):
pass
def glActiveTexture(*args, **kwargs):
pass
def glActiveVaryingNV(*args, **kwargs):
pass
def glAlphaFragmentOp1ATI(*args, **kwargs):
pass
def glAlphaFragmentOp2ATI(*args, **kwargs):
pass
def glAlphaFragmentOp3ATI(*args, **kwargs):
pass
def glAlphaFunc(*args, **kwargs):
pass
def glAreProgramsResidentNV(*args, **kwargs):
pass
def glAreTexturesResident(*args, **kwargs):
pass
def glArrayElement(*args, **kwargs):
pass
def glAttachObjectARB(*args, **kwargs):
pass
def glBegin(*args, **kwargs):
pass
def glBeginFragmentShaderATI(*args, **kwargs):
pass
def glBeginOcclusionQueryNV(*args, **kwargs):
pass
def glBeginQueryARB(*args, **kwargs):
pass
def glBeginTransformFeedbackEXT(*args, **kwargs):
pass
def glBeginTransformFeedbackNV(*args, **kwargs):
pass
def glBeginVertexShaderEXT(*args, **kwargs):
pass
def glBindAttribLocationARB(*args, **kwargs):
pass
def glBindBufferARB(*args, **kwargs):
pass
def glBindBufferBaseEXT(*args, **kwargs):
pass
def glBindBufferBaseNV(*args, **kwargs):
pass
def glBindBufferOffsetEXT(*args, **kwargs):
pass
def glBindBufferOffsetNV(*args, **kwargs):
pass
def glBindBufferRangeEXT(*args, **kwargs):
pass
def glBindBufferRangeNV(*args, **kwargs):
pass
def glBindFragmentShaderATI(*args, **kwargs):
pass
def glBindFramebufferEXT(*args, **kwargs):
pass
def glBindLightParameterEXT(*args, **kwargs):
pass
def glBindMaterialParameterEXT(*args, **kwargs):
pass
def glBindParameterEXT(*args, **kwargs):
pass
def glBindProgram(*args, **kwargs):
pass
def glBindProgramNV(*args, **kwargs):
pass
def glBindRenderbufferEXT(*args, **kwargs):
pass
def glBindTexGenParameterEXT(*args, **kwargs):
pass
def glBindTexture(*args, **kwargs):
pass
def glBindTextureUnitParameterEXT(*args, **kwargs):
pass
def glBindVertexShaderEXT(*args, **kwargs):
pass
def glBitmap(*args, **kwargs):
pass
def glBlendEquationEXT(*args, **kwargs):
pass
def glBlendFunc(*args, **kwargs):
pass
def glBlitFramebufferEXT(*args, **kwargs):
pass
def glBufferDataARB(*args, **kwargs):
pass
def glBufferSubDataARB(*args, **kwargs):
pass
def glCallList(*args, **kwargs):
pass
def glCallLists(*args, **kwargs):
pass
def glCheckFramebufferStatusEXT(*args, **kwargs):
pass
def glClear(*args, **kwargs):
pass
def glClearAccum(*args, **kwargs):
pass
def glClearColor(*args, **kwargs):
pass
def glClearDepth(*args, **kwargs):
pass
def glClearIndex(*args, **kwargs):
pass
def glClearStencil(*args, **kwargs):
pass
def glClientActiveTexture(*args, **kwargs):
pass
def glClipPlane(*args, **kwargs):
pass
def glColor3b(*args, **kwargs):
pass
def glColor3bv(*args, **kwargs):
pass
def glColor3d(*args, **kwargs):
pass
def glColor3dv(*args, **kwargs):
pass
def glColor3f(*args, **kwargs):
pass
def glColor3fv(*args, **kwargs):
pass
def glColor3i(*args, **kwargs):
pass
def glColor3iv(*args, **kwargs):
pass
def glColor3s(*args, **kwargs):
pass
def glColor3sv(*args, **kwargs):
pass
def glColor3ub(*args, **kwargs):
pass
def glColor3ubv(*args, **kwargs):
pass
def glColor3ui(*args, **kwargs):
pass
def glColor3uiv(*args, **kwargs):
pass
def glColor3us(*args, **kwargs):
pass
def glColor3usv(*args, **kwargs):
pass
def glColor4b(*args, **kwargs):
pass
def glColor4bv(*args, **kwargs):
pass
def glColor4d(*args, **kwargs):
pass
def glColor4dv(*args, **kwargs):
pass
def glColor4f(*args, **kwargs):
pass
def glColor4fv(*args, **kwargs):
pass
def glColor4i(*args, **kwargs):
pass
def glColor4iv(*args, **kwargs):
pass
def glColor4s(*args, **kwargs):
pass
def glColor4sv(*args, **kwargs):
pass
def glColor4ub(*args, **kwargs):
pass
def glColor4ubv(*args, **kwargs):
pass
def glColor4ui(*args, **kwargs):
pass
def glColor4uiv(*args, **kwargs):
pass
def glColor4us(*args, **kwargs):
pass
def glColor4usv(*args, **kwargs):
pass
def glColorFragmentOp1ATI(*args, **kwargs):
pass
def glColorFragmentOp2ATI(*args, **kwargs):
pass
def glColorFragmentOp3ATI(*args, **kwargs):
pass
def glColorMask(*args, **kwargs):
pass
def glColorMaterial(*args, **kwargs):
pass
def glColorPointer(*args, **kwargs):
pass
def glCombinerInputNV(*args, **kwargs):
pass
def glCombinerOutputNV(*args, **kwargs):
pass
def glCombinerParameterfNV(*args, **kwargs):
pass
def glCombinerParameterfvNV(*args, **kwargs):
pass
def glCombinerParameteriNV(*args, **kwargs):
pass
def glCombinerParameterivNV(*args, **kwargs):
pass
def glCompileShaderARB(*args, **kwargs):
pass
def glCompressedTexImage1D(*args, **kwargs):
pass
def glCompressedTexImage2D(*args, **kwargs):
pass
def glCompressedTexImage3D(*args, **kwargs):
pass
def glCompressedTexSubImage1D(*args, **kwargs):
pass
def glCompressedTexSubImage2D(*args, **kwargs):
pass
def glCompressedTexSubImage3D(*args, **kwargs):
pass
def glCopyPixels(*args, **kwargs):
pass
def glCopyTexImage1D(*args, **kwargs):
pass
def glCopyTexImage2D(*args, **kwargs):
pass
def glCopyTexSubImage1D(*args, **kwargs):
pass
def glCopyTexSubImage2D(*args, **kwargs):
pass
def glCopyTexSubImage3D(*args, **kwargs):
pass
def glCreateProgramObjectARB(*args, **kwargs):
pass
def glCreateShaderObjectARB(*args, **kwargs):
pass
def glCullFace(*args, **kwargs):
pass
def glCullParameterdvEXT(*args, **kwargs):
pass
def glCullParameterfvEXT(*args, **kwargs):
pass
def glDeleteBuffersARB(*args, **kwargs):
pass
def glDeleteFencesNV(*args, **kwargs):
pass
def glDeleteFragmentShaderATI(*args, **kwargs):
pass
def glDeleteFramebuffersEXT(*args, **kwargs):
pass
def glDeleteLists(*args, **kwargs):
pass
def glDeleteObjectARB(*args, **kwargs):
pass
def glDeleteOcclusionQueriesNV(*args, **kwargs):
pass
def glDeletePrograms(*args, **kwargs):
pass
def glDeleteProgramsNV(*args, **kwargs):
pass
def glDeleteQueriesARB(*args, **kwargs):
pass
def glDeleteRenderbuffersEXT(*args, **kwargs):
pass
def glDeleteTextures(*args, **kwargs):
pass
def glDeleteVertexShaderEXT(*args, **kwargs):
pass
def glDepthFunc(*args, **kwargs):
pass
def glDepthMask(*args, **kwargs):
pass
def glDepthRange(*args, **kwargs):
pass
def glDetachObjectARB(*args, **kwargs):
pass
def glDisable(*args, **kwargs):
pass
def glDisableClientState(*args, **kwargs):
pass
def glDisableVariantClientStateEXT(*args, **kwargs):
pass
def glDisableVertexAttribArray(*args, **kwargs):
pass
def glDrawArrays(*args, **kwargs):
pass
def glDrawBuffer(*args, **kwargs):
pass
def glDrawElements(*args, **kwargs):
pass
def glDrawPixels(*args, **kwargs):
pass
def glDrawRangeElements(*args, **kwargs):
pass
def glEdgeFlag(*args, **kwargs):
pass
def glEdgeFlagPointer(*args, **kwargs):
pass
def glEdgeFlagv(*args, **kwargs):
pass
def glEnable(*args, **kwargs):
pass
def glEnableClientState(*args, **kwargs):
pass
def glEnableVariantClientStateEXT(*args, **kwargs):
pass
def glEnableVertexAttribArray(*args, **kwargs):
pass
def glEnd(*args, **kwargs):
pass
def glEndFragmentShaderATI(*args, **kwargs):
pass
def glEndList(*args, **kwargs):
pass
def glEndOcclusionQueryNV(*args, **kwargs):
pass
def glEndQueryARB(*args, **kwargs):
pass
def glEndTransformFeedbackEXT(*args, **kwargs):
pass
def glEndTransformFeedbackNV(*args, **kwargs):
pass
def glEndVertexShaderEXT(*args, **kwargs):
pass
def glEvalCoord1d(*args, **kwargs):
pass
def glEvalCoord1dv(*args, **kwargs):
pass
def glEvalCoord1f(*args, **kwargs):
pass
def glEvalCoord1fv(*args, **kwargs):
pass
def glEvalCoord2d(*args, **kwargs):
pass
def glEvalCoord2dv(*args, **kwargs):
pass
def glEvalCoord2f(*args, **kwargs):
pass
def glEvalCoord2fv(*args, **kwargs):
pass
def glEvalMesh1(*args, **kwargs):
pass
def glEvalMesh2(*args, **kwargs):
pass
def glEvalPoint1(*args, **kwargs):
pass
def glEvalPoint2(*args, **kwargs):
pass
def glExecuteProgramNV(*args, **kwargs):
pass
def glExtractComponentEXT(*args, **kwargs):
pass
def glFeedbackBuffer(*args, **kwargs):
pass
def glFinalCombinerInputNV(*args, **kwargs):
pass
def glFinish(*args, **kwargs):
pass
def glFinishFenceNV(*args, **kwargs):
pass
def glFlush(*args, **kwargs):
pass
def glFlushVertexArrayRangeNV(*args, **kwargs):
pass
def glFogCoordPointerEXT(*args, **kwargs):
pass
def glFogCoorddEXT(*args, **kwargs):
pass
def glFogCoorddvEXT(*args, **kwargs):
pass
def glFogCoordfEXT(*args, **kwargs):
pass
def glFogCoordfvEXT(*args, **kwargs):
pass
def glFogf(*args, **kwargs):
pass
def glFogfv(*args, **kwargs):
pass
def glFogi(*args, **kwargs):
pass
def glFogiv(*args, **kwargs):
pass
def glFramebufferRenderbufferEXT(*args, **kwargs):
pass
def glFramebufferTexture1DEXT(*args, **kwargs):
pass
def glFramebufferTexture2DEXT(*args, **kwargs):
pass
def glFramebufferTexture3DEXT(*args, **kwargs):
pass
def glFrontFace(*args, **kwargs):
pass
def glFrustum(*args, **kwargs):
pass
def glGenBuffersARB(*args, **kwargs):
pass
def glGenFencesNV(*args, **kwargs):
pass
def glGenFragmentShadersATI(*args, **kwargs):
pass
def glGenFramebuffersEXT(*args, **kwargs):
pass
def glGenLists(*args, **kwargs):
pass
def glGenOcclusionQueriesNV(*args, **kwargs):
pass
def glGenPrograms(*args, **kwargs):
pass
def glGenProgramsNV(*args, **kwargs):
pass
def glGenQueriesARB(*args, **kwargs):
pass
def glGenRenderbuffersEXT(*args, **kwargs):
pass
def glGenSymbolsEXT(*args, **kwargs):
pass
def glGenTextures(*args, **kwargs):
pass
def glGenVertexShadersEXT(*args, **kwargs):
pass
def glGenerateMipmapEXT(*args, **kwargs):
pass
def glGetActiveAttribARB(*args, **kwargs):
pass
def glGetActiveUniformARB(*args, **kwargs):
pass
def glGetActiveVaryingNV(*args, **kwargs):
pass
def glGetAttachedObjectsARB(*args, **kwargs):
pass
def glGetAttribLocationARB(*args, **kwargs):
pass
def glGetBooleanv(*args, **kwargs):
pass
def glGetBufferParameterivARB(*args, **kwargs):
pass
def glGetBufferPointervARB(*args, **kwargs):
pass
def glGetBufferSubDataARB(*args, **kwargs):
pass
def glGetClipPlane(*args, **kwargs):
pass
def glGetCombinerInputParameterfvNV(*args, **kwargs):
pass
def glGetCombinerInputParameterivNV(*args, **kwargs):
pass
def glGetCombinerOutputParameterfvNV(*args, **kwargs):
pass
def glGetCombinerOutputParameterivNV(*args, **kwargs):
pass
def glGetCompressedTexImage(*args, **kwargs):
pass
def glGetDoublev(*args, **kwargs):
pass
def glGetError(*args, **kwargs):
pass
def glGetFenceivNV(*args, **kwargs):
pass
def glGetFinalCombinerInputParameterfvNV(*args, **kwargs):
pass
def glGetFinalCombinerInputParameterivNV(*args, **kwargs):
pass
def glGetFloatv(*args, **kwargs):
pass
def glGetFramebufferAttachmentParameterivEXT(*args, **kwargs):
pass
def glGetHandleARB(*args, **kwargs):
pass
def glGetInfoLogARB(*args, **kwargs):
pass
def glGetIntegerv(*args, **kwargs):
pass
def glGetInvariantBooleanvEXT(*args, **kwargs):
pass
def glGetInvariantFloatvEXT(*args, **kwargs):
pass
def glGetInvariantIntegervEXT(*args, **kwargs):
pass
def glGetLightfv(*args, **kwargs):
pass
def glGetLightiv(*args, **kwargs):
pass
def glGetLocalConstantBooleanvEXT(*args, **kwargs):
pass
def glGetLocalConstantFloatvEXT(*args, **kwargs):
pass
def glGetLocalConstantIntegervEXT(*args, **kwargs):
pass
def glGetMapdv(*args, **kwargs):
pass
def glGetMapfv(*args, **kwargs):
pass
def glGetMapiv(*args, **kwargs):
pass
def glGetMaterialfv(*args, **kwargs):
pass
def glGetMaterialiv(*args, **kwargs):
pass
def glGetObjectParameterfvARB(*args, **kwargs):
pass
def glGetObjectParameterivARB(*args, **kwargs):
pass
def glGetOcclusionQueryivNV(*args, **kwargs):
pass
def glGetOcclusionQueryuivNV(*args, **kwargs):
pass
def glGetPixelMapfv(*args, **kwargs):
pass
def glGetPixelMapuiv(*args, **kwargs):
pass
def glGetPixelMapusv(*args, **kwargs):
pass
def glGetPointerv(*args, **kwargs):
pass
def glGetPolygonStipple(*args, **kwargs):
pass
def glGetProgramEnvParameterdv(*args, **kwargs):
pass
def glGetProgramEnvParameterfv(*args, **kwargs):
pass
def glGetProgramLocalParameterdv(*args, **kwargs):
pass
def glGetProgramLocalParameterfv(*args, **kwargs):
pass
def glGetProgramParameterdvNV(*args, **kwargs):
pass
def glGetProgramParameterfvNV(*args, **kwargs):
pass
def glGetProgramString(*args, **kwargs):
pass
def glGetProgramStringNV(*args, **kwargs):
pass
def glGetProgramiv(*args, **kwargs):
pass
def glGetProgramivNV(*args, **kwargs):
pass
def glGetQueryObjectivARB(*args, **kwargs):
pass
def glGetQueryObjectuivARB(*args, **kwargs):
pass
def glGetQueryivARB(*args, **kwargs):
pass
def glGetRenderbufferParameterivEXT(*args, **kwargs):
pass
def glGetShaderSourceARB(*args, **kwargs):
pass
def glGetString(*args, **kwargs):
pass
def glGetTexEnvfv(*args, **kwargs):
pass
def glGetTexEnviv(*args, **kwargs):
pass
def glGetTexGendv(*args, **kwargs):
pass
def glGetTexGenfv(*args, **kwargs):
pass
def glGetTexGeniv(*args, **kwargs):
pass
def glGetTexImage(*args, **kwargs):
pass
def glGetTexLevelParameterfv(*args, **kwargs):
pass
def glGetTexLevelParameteriv(*args, **kwargs):
pass
def glGetTexParameterfv(*args, **kwargs):
pass
def glGetTexParameteriv(*args, **kwargs):
pass
def glGetTrackMatrixivNV(*args, **kwargs):
pass
def glGetTransformFeedbackVaryingEXT(*args, **kwargs):
pass
def glGetTransformFeedbackVaryingNV(*args, **kwargs):
pass
def glGetUniformLocationARB(*args, **kwargs):
pass
def glGetUniformfvARB(*args, **kwargs):
pass
def glGetUniformivARB(*args, **kwargs):
pass
def glGetVariantBooleanvEXT(*args, **kwargs):
pass
def glGetVariantFloatvEXT(*args, **kwargs):
pass
def glGetVariantIntegervEXT(*args, **kwargs):
pass
def glGetVariantPointervEXT(*args, **kwargs):
pass
def glGetVaryingLocationNV(*args, **kwargs):
pass
def glGetVertexAttribPointerv(*args, **kwargs):
pass
def glGetVertexAttribPointervNV(*args, **kwargs):
pass
def glGetVertexAttribdv(*args, **kwargs):
pass
def glGetVertexAttribdvNV(*args, **kwargs):
pass
def glGetVertexAttribfv(*args, **kwargs):
pass
def glGetVertexAttribfvNV(*args, **kwargs):
pass
def glGetVertexAttribiv(*args, **kwargs):
pass
def glGetVertexAttribivNV(*args, **kwargs):
pass
def glHint(*args, **kwargs):
pass
def glIndexMask(*args, **kwargs):
pass
def glIndexPointer(*args, **kwargs):
pass
def glIndexd(*args, **kwargs):
pass
def glIndexdv(*args, **kwargs):
pass
def glIndexf(*args, **kwargs):
pass
def glIndexfv(*args, **kwargs):
pass
def glIndexi(*args, **kwargs):
pass
def glIndexiv(*args, **kwargs):
pass
def glIndexs(*args, **kwargs):
pass
def glIndexsv(*args, **kwargs):
pass
def glIndexub(*args, **kwargs):
pass
def glIndexubv(*args, **kwargs):
pass
def glInitNames(*args, **kwargs):
pass
def glInsertComponentEXT(*args, **kwargs):
pass
def glInterleavedArrays(*args, **kwargs):
pass
def glIsBufferARB(*args, **kwargs):
pass
def glIsEnabled(*args, **kwargs):
pass
def glIsFenceNV(*args, **kwargs):
pass
def glIsFramebufferEXT(*args, **kwargs):
pass
def glIsList(*args, **kwargs):
pass
def glIsOcclusionQueryNV(*args, **kwargs):
pass
def glIsProgram(*args, **kwargs):
pass
def glIsProgramNV(*args, **kwargs):
pass
def glIsQueryARB(*args, **kwargs):
pass
def glIsRenderbufferEXT(*args, **kwargs):
pass
def glIsTexture(*args, **kwargs):
pass
def glIsVariantEnabledEXT(*args, **kwargs):
pass
def glLightModelf(*args, **kwargs):
pass
def glLightModelfv(*args, **kwargs):
pass
def glLightModeli(*args, **kwargs):
pass
def glLightModeliv(*args, **kwargs):
pass
def glLightf(*args, **kwargs):
pass
def glLightfv(*args, **kwargs):
pass
def glLighti(*args, **kwargs):
pass
def glLightiv(*args, **kwargs):
pass
def glLineStipple(*args, **kwargs):
pass
def glLineWidth(*args, **kwargs):
pass
def glLinkProgramARB(*args, **kwargs):
pass
def glListBase(*args, **kwargs):
pass
def glLoadIdentity(*args, **kwargs):
pass
def glLoadMatrixd(*args, **kwargs):
pass
def glLoadMatrixf(*args, **kwargs):
pass
def glLoadName(*args, **kwargs):
pass
def glLoadProgramNV(*args, **kwargs):
pass
def glLoadTransposeMatrixd(*args, **kwargs):
pass
def glLoadTransposeMatrixdARB(*args, **kwargs):
pass
def glLoadTransposeMatrixf(*args, **kwargs):
pass
def glLoadTransposeMatrixfARB(*args, **kwargs):
pass
def glLockArraysEXT(*args, **kwargs):
pass
def glLogicOp(*args, **kwargs):
pass
def glMap1d(*args, **kwargs):
pass
def glMap1f(*args, **kwargs):
pass
def glMap2d(*args, **kwargs):
pass
def glMap2f(*args, **kwargs):
pass
def glMapBufferARB(*args, **kwargs):
pass
def glMapGrid1d(*args, **kwargs):
pass
def glMapGrid1f(*args, **kwargs):
pass
def glMapGrid2d(*args, **kwargs):
pass
def glMapGrid2f(*args, **kwargs):
pass
def glMaterialf(*args, **kwargs):
pass
def glMaterialfv(*args, **kwargs):
pass
def glMateriali(*args, **kwargs):
pass
def glMaterialiv(*args, **kwargs):
pass
def glMatrixMode(*args, **kwargs):
pass
def glMultMatrixd(*args, **kwargs):
pass
def glMultMatrixf(*args, **kwargs):
pass
def glMultTransposeMatrixd(*args, **kwargs):
pass
def glMultTransposeMatrixdARB(*args, **kwargs):
pass
def glMultTransposeMatrixf(*args, **kwargs):
pass
def glMultTransposeMatrixfARB(*args, **kwargs):
pass
def glMultiDrawArrays(*args, **kwargs):
pass
def glMultiDrawElements(*args, **kwargs):
pass
def glMultiTexCoord1d(*args, **kwargs):
pass
def glMultiTexCoord1dv(*args, **kwargs):
pass
def glMultiTexCoord1f(*args, **kwargs):
pass
def glMultiTexCoord1fv(*args, **kwargs):
pass
def glMultiTexCoord1i(*args, **kwargs):
pass
def glMultiTexCoord1iv(*args, **kwargs):
pass
def glMultiTexCoord1s(*args, **kwargs):
pass
def glMultiTexCoord1sv(*args, **kwargs):
pass
def glMultiTexCoord2d(*args, **kwargs):
pass
def glMultiTexCoord2dv(*args, **kwargs):
pass
def glMultiTexCoord2f(*args, **kwargs):
pass
def glMultiTexCoord2fv(*args, **kwargs):
pass
def glMultiTexCoord2i(*args, **kwargs):
pass
def glMultiTexCoord2iv(*args, **kwargs):
pass
def glMultiTexCoord2s(*args, **kwargs):
pass
def glMultiTexCoord2sv(*args, **kwargs):
pass
def glMultiTexCoord3d(*args, **kwargs):
pass
def glMultiTexCoord3dv(*args, **kwargs):
pass
def glMultiTexCoord3f(*args, **kwargs):
pass
def glMultiTexCoord3fv(*args, **kwargs):
pass
def glMultiTexCoord3i(*args, **kwargs):
pass
def glMultiTexCoord3iv(*args, **kwargs):
pass
def glMultiTexCoord3s(*args, **kwargs):
pass
def glMultiTexCoord3sv(*args, **kwargs):
pass
def glMultiTexCoord4d(*args, **kwargs):
pass
def glMultiTexCoord4dv(*args, **kwargs):
pass
def glMultiTexCoord4f(*args, **kwargs):
pass
def glMultiTexCoord4fv(*args, **kwargs):
pass
def glMultiTexCoord4i(*args, **kwargs):
pass
def glMultiTexCoord4iv(*args, **kwargs):
pass
def glMultiTexCoord4s(*args, **kwargs):
pass
def glMultiTexCoord4sv(*args, **kwargs):
pass
def glNewList(*args, **kwargs):
pass
def glNormal3b(*args, **kwargs):
pass
def glNormal3bv(*args, **kwargs):
pass
def glNormal3d(*args, **kwargs):
pass
def glNormal3dv(*args, **kwargs):
pass
def glNormal3f(*args, **kwargs):
pass
def glNormal3fv(*args, **kwargs):
pass
def glNormal3i(*args, **kwargs):
pass
def glNormal3iv(*args, **kwargs):
pass
def glNormal3s(*args, **kwargs):
pass
def glNormal3sv(*args, **kwargs):
pass
def glNormalPointer(*args, **kwargs):
pass
def glOrtho(*args, **kwargs):
pass
def glPassTexCoordATI(*args, **kwargs):
pass
def glPassThrough(*args, **kwargs):
pass
def glPixelMapfv(*args, **kwargs):
pass
def glPixelMapuiv(*args, **kwargs):
pass
def glPixelMapusv(*args, **kwargs):
pass
def glPixelStoref(*args, **kwargs):
pass
def glPixelStorei(*args, **kwargs):
pass
def glPixelTransferf(*args, **kwargs):
pass
def glPixelTransferi(*args, **kwargs):
pass
def glPixelZoom(*args, **kwargs):
pass
def glPointParameterf(*args, **kwargs):
pass
def glPointParameterfv(*args, **kwargs):
pass
def glPointSize(*args, **kwargs):
pass
def glPolygonMode(*args, **kwargs):
pass
def glPolygonOffset(*args, **kwargs):
pass
def glPolygonStipple(*args, **kwargs):
pass
def glPopAttrib(*args, **kwargs):
pass
def glPopClientAttrib(*args, **kwargs):
pass
def glPopMatrix(*args, **kwargs):
pass
def glPopName(*args, **kwargs):
pass
def glPrimitiveRestartIndexNV(*args, **kwargs):
pass
def glPrimitiveRestartNV(*args, **kwargs):
pass
def glPrioritizeTextures(*args, **kwargs):
pass
def glProgramEnvParameter4d(*args, **kwargs):
pass
def glProgramEnvParameter4dv(*args, **kwargs):
pass
def glProgramEnvParameter4f(*args, **kwargs):
pass
def glProgramEnvParameter4fv(*args, **kwargs):
pass
def glProgramLocalParameter4d(*args, **kwargs):
pass
def glProgramLocalParameter4dv(*args, **kwargs):
pass
def glProgramLocalParameter4f(*args, **kwargs):
pass
def glProgramLocalParameter4fv(*args, **kwargs):
pass
def glProgramParameter4dNV(*args, **kwargs):
pass
def glProgramParameter4dvNV(*args, **kwargs):
pass
def glProgramParameter4fNV(*args, **kwargs):
pass
def glProgramParameter4fvNV(*args, **kwargs):
pass
def glProgramParameters4dvNV(*args, **kwargs):
pass
def glProgramParameters4fvNV(*args, **kwargs):
pass
def glProgramString(*args, **kwargs):
pass
def glPushAttrib(*args, **kwargs):
pass
def glPushClientAttrib(*args, **kwargs):
pass
def glPushMatrix(*args, **kwargs):
pass
def glPushName(*args, **kwargs):
pass
def glRasterPos2d(*args, **kwargs):
pass
def glRasterPos2dv(*args, **kwargs):
pass
def glRasterPos2f(*args, **kwargs):
pass
def glRasterPos2fv(*args, **kwargs):
pass
def glRasterPos2i(*args, **kwargs):
pass
def glRasterPos2iv(*args, **kwargs):
pass
def glRasterPos2s(*args, **kwargs):
pass
def glRasterPos2sv(*args, **kwargs):
pass
def glRasterPos3d(*args, **kwargs):
pass
def glRasterPos3dv(*args, **kwargs):
pass
def glRasterPos3f(*args, **kwargs):
pass
def glRasterPos3fv(*args, **kwargs):
pass
def glRasterPos3i(*args, **kwargs):
pass
def glRasterPos3iv(*args, **kwargs):
pass
def glRasterPos3s(*args, **kwargs):
pass
def glRasterPos3sv(*args, **kwargs):
pass
def glRasterPos4d(*args, **kwargs):
pass
def glRasterPos4dv(*args, **kwargs):
pass
def glRasterPos4f(*args, **kwargs):
pass
def glRasterPos4fv(*args, **kwargs):
pass
def glRasterPos4i(*args, **kwargs):
pass
def glRasterPos4iv(*args, **kwargs):
pass
def glRasterPos4s(*args, **kwargs):
pass
def glRasterPos4sv(*args, **kwargs):
pass
def glReadBuffer(*args, **kwargs):
pass
def glReadPixels(*args, **kwargs):
pass
def glRectd(*args, **kwargs):
pass
def glRectdv(*args, **kwargs):
pass
def glRectf(*args, **kwargs):
pass
def glRectfv(*args, **kwargs):
pass
def glRecti(*args, **kwargs):
pass
def glRectiv(*args, **kwargs):
pass
def glRects(*args, **kwargs):
pass
def glRectsv(*args, **kwargs):
pass
def glRenderMode(*args, **kwargs):
pass
def glRenderbufferStorageEXT(*args, **kwargs):
pass
def glRequestResidentProgramsNV(*args, **kwargs):
pass
def glRotated(*args, **kwargs):
pass
def glRotatef(*args, **kwargs):
pass
def glSampleCoverage(*args, **kwargs):
pass
def glSampleMapATI(*args, **kwargs):
pass
def glScaled(*args, **kwargs):
pass
def glScalef(*args, **kwargs):
pass
def glScissor(*args, **kwargs):
pass
def glSecondaryColor3bEXT(*args, **kwargs):
pass
def glSecondaryColor3bvEXT(*args, **kwargs):
pass
def glSecondaryColor3dEXT(*args, **kwargs):
pass
def glSecondaryColor3dvEXT(*args, **kwargs):
pass
def glSecondaryColor3fEXT(*args, **kwargs):
pass
def glSecondaryColor3fvEXT(*args, **kwargs):
pass
def glSecondaryColor3iEXT(*args, **kwargs):
pass
def glSecondaryColor3ivEXT(*args, **kwargs):
pass
def glSecondaryColor3sEXT(*args, **kwargs):
pass
def glSecondaryColor3svEXT(*args, **kwargs):
pass
def glSecondaryColor3ubEXT(*args, **kwargs):
pass
def glSecondaryColor3ubvEXT(*args, **kwargs):
pass
def glSecondaryColor3uiEXT(*args, **kwargs):
pass
def glSecondaryColor3uivEXT(*args, **kwargs):
pass
def glSecondaryColor3usEXT(*args, **kwargs):
pass
def glSecondaryColor3usvEXT(*args, **kwargs):
pass
def glSecondaryColorPointerEXT(*args, **kwargs):
pass
def glSelectBuffer(*args, **kwargs):
pass
def glSetFenceNV(*args, **kwargs):
pass
def glSetFragmentShaderConstantATI(*args, **kwargs):
pass
def glSetInvariantEXT(*args, **kwargs):
pass
def glSetLocalConstantEXT(*args, **kwargs):
pass
def glShadeModel(*args, **kwargs):
pass
def glShaderOp1EXT(*args, **kwargs):
pass
def glShaderOp2EXT(*args, **kwargs):
pass
def glShaderOp3EXT(*args, **kwargs):
pass
def glShaderSourceARB(*args, **kwargs):
pass
def glStencilFunc(*args, **kwargs):
pass
def glStencilMask(*args, **kwargs):
pass
def glStencilOp(*args, **kwargs):
pass
def glSwizzleEXT(*args, **kwargs):
pass
def glTestFenceNV(*args, **kwargs):
pass
def glTexCoord1d(*args, **kwargs):
pass
def glTexCoord1dv(*args, **kwargs):
pass
def glTexCoord1f(*args, **kwargs):
pass
def glTexCoord1fv(*args, **kwargs):
pass
def glTexCoord1i(*args, **kwargs):
pass
def glTexCoord1iv(*args, **kwargs):
pass
def glTexCoord1s(*args, **kwargs):
pass
def glTexCoord1sv(*args, **kwargs):
pass
def glTexCoord2d(*args, **kwargs):
pass
def glTexCoord2dv(*args, **kwargs):
pass
def glTexCoord2f(*args, **kwargs):
pass
def glTexCoord2fv(*args, **kwargs):
pass
def glTexCoord2i(*args, **kwargs):
pass
def glTexCoord2iv(*args, **kwargs):
pass
def glTexCoord2s(*args, **kwargs):
pass
def glTexCoord2sv(*args, **kwargs):
pass
def glTexCoord3d(*args, **kwargs):
pass
def glTexCoord3dv(*args, **kwargs):
pass
def glTexCoord3f(*args, **kwargs):
pass
def glTexCoord3fv(*args, **kwargs):
pass
def glTexCoord3i(*args, **kwargs):
pass
def glTexCoord3iv(*args, **kwargs):
pass
def glTexCoord3s(*args, **kwargs):
pass
def glTexCoord3sv(*args, **kwargs):
pass
def glTexCoord4d(*args, **kwargs):
pass
def glTexCoord4dv(*args, **kwargs):
pass
def glTexCoord4f(*args, **kwargs):
pass
def glTexCoord4fv(*args, **kwargs):
pass
def glTexCoord4i(*args, **kwargs):
pass
def glTexCoord4iv(*args, **kwargs):
pass
def glTexCoord4s(*args, **kwargs):
pass
def glTexCoord4sv(*args, **kwargs):
pass
def glTexCoordPointer(*args, **kwargs):
pass
def glTexEnvf(*args, **kwargs):
pass
def glTexEnvfv(*args, **kwargs):
pass
def glTexEnvi(*args, **kwargs):
pass
def glTexEnviv(*args, **kwargs):
pass
def glTexGend(*args, **kwargs):
pass
def glTexGendv(*args, **kwargs):
pass
def glTexGenf(*args, **kwargs):
pass
def glTexGenfv(*args, **kwargs):
pass
def glTexGeni(*args, **kwargs):
pass
def glTexGeniv(*args, **kwargs):
pass
def glTexImage1D(*args, **kwargs):
pass
def glTexImage2D(*args, **kwargs):
pass
def glTexImage3D(*args, **kwargs):
pass
def glTexParameterf(*args, **kwargs):
pass
def glTexParameterfv(*args, **kwargs):
pass
def glTexParameteri(*args, **kwargs):
pass
def glTexParameteriv(*args, **kwargs):
pass
def glTexSubImage1D(*args, **kwargs):
pass
def glTexSubImage2D(*args, **kwargs):
pass
def glTexSubImage3D(*args, **kwargs):
pass
def glTrackMatrixNV(*args, **kwargs):
pass
def glTransformFeedbackAttribsNV(*args, **kwargs):
pass
def glTransformFeedbackVaryingsEXT(*args, **kwargs):
pass
def glTransformFeedbackVaryingsNV(*args, **kwargs):
pass
def glTranslated(*args, **kwargs):
pass
def glTranslatef(*args, **kwargs):
pass
def glUniform1fARB(*args, **kwargs):
pass
def glUniform1fvARB(*args, **kwargs):
pass
def glUniform1iARB(*args, **kwargs):
pass
def glUniform1ivARB(*args, **kwargs):
pass
def glUniform2fARB(*args, **kwargs):
pass
def glUniform2fvARB(*args, **kwargs):
pass
def glUniform2iARB(*args, **kwargs):
pass
def glUniform2ivARB(*args, **kwargs):
pass
def glUniform3fARB(*args, **kwargs):
pass
def glUniform3fvARB(*args, **kwargs):
pass
def glUniform3iARB(*args, **kwargs):
pass
def glUniform3ivARB(*args, **kwargs):
pass
def glUniform4fARB(*args, **kwargs):
pass
def glUniform4fvARB(*args, **kwargs):
pass
def glUniform4iARB(*args, **kwargs):
pass
def glUniform4ivARB(*args, **kwargs):
pass
def glUniformMatrix2fvARB(*args, **kwargs):
pass
def glUniformMatrix3fvARB(*args, **kwargs):
pass
def glUniformMatrix4fvARB(*args, **kwargs):
pass
def glUnlockArraysEXT(*args, **kwargs):
pass
def glUnmapBufferARB(*args, **kwargs):
pass
def glUseProgramObjectARB(*args, **kwargs):
pass
def glValidateProgramARB(*args, **kwargs):
pass
def glVariantPointerEXT(*args, **kwargs):
pass
def glVariantbvEXT(*args, **kwargs):
pass
def glVariantdvEXT(*args, **kwargs):
pass
def glVariantfvEXT(*args, **kwargs):
pass
def glVariantivEXT(*args, **kwargs):
pass
def glVariantsvEXT(*args, **kwargs):
pass
def glVariantubvEXT(*args, **kwargs):
pass
def glVariantuivEXT(*args, **kwargs):
pass
def glVariantusvEXT(*args, **kwargs):
pass
def glVertex2d(*args, **kwargs):
pass
def glVertex2dv(*args, **kwargs):
pass
def glVertex2f(*args, **kwargs):
pass
def glVertex2fv(*args, **kwargs):
pass
def glVertex2i(*args, **kwargs):
pass
def glVertex2iv(*args, **kwargs):
pass
def glVertex2s(*args, **kwargs):
pass
def glVertex2sv(*args, **kwargs):
pass
def glVertex3d(*args, **kwargs):
pass
def glVertex3dv(*args, **kwargs):
pass
def glVertex3f(*args, **kwargs):
pass
def glVertex3fv(*args, **kwargs):
pass
def glVertex3i(*args, **kwargs):
pass
def glVertex3iv(*args, **kwargs):
pass
def glVertex3s(*args, **kwargs):
pass
def glVertex3sv(*args, **kwargs):
pass
def glVertex4d(*args, **kwargs):
pass
def glVertex4dv(*args, **kwargs):
pass
def glVertex4f(*args, **kwargs):
pass
def glVertex4fv(*args, **kwargs):
pass
def glVertex4i(*args, **kwargs):
pass
def glVertex4iv(*args, **kwargs):
pass
def glVertex4s(*args, **kwargs):
pass
def glVertex4sv(*args, **kwargs):
pass
def glVertexArrayRangeNV(*args, **kwargs):
pass
def glVertexAttrib1d(*args, **kwargs):
pass
def glVertexAttrib1dNV(*args, **kwargs):
pass
def glVertexAttrib1dv(*args, **kwargs):
pass
def glVertexAttrib1dvNV(*args, **kwargs):
pass
def glVertexAttrib1f(*args, **kwargs):
pass
def glVertexAttrib1fNV(*args, **kwargs):
pass
def glVertexAttrib1fv(*args, **kwargs):
pass
def glVertexAttrib1fvNV(*args, **kwargs):
pass
def glVertexAttrib1s(*args, **kwargs):
pass
def glVertexAttrib1sNV(*args, **kwargs):
pass
def glVertexAttrib1sv(*args, **kwargs):
pass
def glVertexAttrib1svNV(*args, **kwargs):
pass
def glVertexAttrib2d(*args, **kwargs):
pass
def glVertexAttrib2dNV(*args, **kwargs):
pass
def glVertexAttrib2dv(*args, **kwargs):
pass
def glVertexAttrib2dvNV(*args, **kwargs):
pass
def glVertexAttrib2f(*args, **kwargs):
pass
def glVertexAttrib2fNV(*args, **kwargs):
pass
def glVertexAttrib2fv(*args, **kwargs):
pass
def glVertexAttrib2fvNV(*args, **kwargs):
pass
def glVertexAttrib2s(*args, **kwargs):
pass
def glVertexAttrib2sNV(*args, **kwargs):
pass
def glVertexAttrib2sv(*args, **kwargs):
pass
def glVertexAttrib2svNV(*args, **kwargs):
pass
def glVertexAttrib3d(*args, **kwargs):
pass
def glVertexAttrib3dNV(*args, **kwargs):
pass
def glVertexAttrib3dv(*args, **kwargs):
pass
def glVertexAttrib3dvNV(*args, **kwargs):
pass
def glVertexAttrib3f(*args, **kwargs):
pass
def glVertexAttrib3fNV(*args, **kwargs):
pass
def glVertexAttrib3fv(*args, **kwargs):
pass
def glVertexAttrib3fvNV(*args, **kwargs):
pass
def glVertexAttrib3s(*args, **kwargs):
pass
def glVertexAttrib3sNV(*args, **kwargs):
pass
def glVertexAttrib3sv(*args, **kwargs):
pass
def glVertexAttrib3svNV(*args, **kwargs):
pass
def glVertexAttrib4Nbv(*args, **kwargs):
pass
def glVertexAttrib4Niv(*args, **kwargs):
pass
def glVertexAttrib4Nsv(*args, **kwargs):
pass
def glVertexAttrib4Nub(*args, **kwargs):
pass
def glVertexAttrib4Nubv(*args, **kwargs):
pass
def glVertexAttrib4Nuiv(*args, **kwargs):
pass
def glVertexAttrib4Nusv(*args, **kwargs):
pass
def glVertexAttrib4bv(*args, **kwargs):
pass
def glVertexAttrib4d(*args, **kwargs):
pass
def glVertexAttrib4dNV(*args, **kwargs):
pass
def glVertexAttrib4dv(*args, **kwargs):
pass
def glVertexAttrib4dvNV(*args, **kwargs):
pass
def glVertexAttrib4f(*args, **kwargs):
pass
def glVertexAttrib4fNV(*args, **kwargs):
pass
def glVertexAttrib4fv(*args, **kwargs):
pass
def glVertexAttrib4fvNV(*args, **kwargs):
pass
def glVertexAttrib4iv(*args, **kwargs):
pass
def glVertexAttrib4s(*args, **kwargs):
pass
def glVertexAttrib4sNV(*args, **kwargs):
pass
def glVertexAttrib4sv(*args, **kwargs):
pass
def glVertexAttrib4svNV(*args, **kwargs):
pass
def glVertexAttrib4ubNV(*args, **kwargs):
pass
def glVertexAttrib4ubv(*args, **kwargs):
pass
def glVertexAttrib4ubvNV(*args, **kwargs):
pass
def glVertexAttrib4uiv(*args, **kwargs):
pass
def glVertexAttrib4usv(*args, **kwargs):
pass
def glVertexAttribPointer(*args, **kwargs):
pass
def glVertexAttribPointerNV(*args, **kwargs):
pass
def glVertexAttribs1dvNV(*args, **kwargs):
pass
def glVertexAttribs1fvNV(*args, **kwargs):
pass
def glVertexAttribs1svNV(*args, **kwargs):
pass
def glVertexAttribs2dvNV(*args, **kwargs):
pass
def glVertexAttribs2fvNV(*args, **kwargs):
pass
def glVertexAttribs2svNV(*args, **kwargs):
pass
def glVertexAttribs3dvNV(*args, **kwargs):
pass
def glVertexAttribs3fvNV(*args, **kwargs):
pass
def glVertexAttribs3svNV(*args, **kwargs):
pass
def glVertexAttribs4dvNV(*args, **kwargs):
pass
def glVertexAttribs4fvNV(*args, **kwargs):
pass
def glVertexAttribs4svNV(*args, **kwargs):
pass
def glVertexAttribs4ubvNV(*args, **kwargs):
pass
def glVertexPointer(*args, **kwargs):
pass
def glVertexWeightPointerEXT(*args, **kwargs):
pass
def glVertexWeightfEXT(*args, **kwargs):
pass
def glVertexWeightfvEXT(*args, **kwargs):
pass
def glViewport(*args, **kwargs):
pass
def glWriteMaskEXT(*args, **kwargs):
pass
def maxTextureSize(*args, **kwargs):
pass
def maxVertexAttributes(*args, **kwargs):
pass
def numTexImageUnits(*args, **kwargs):
pass
def numTexInterpolants(*args, **kwargs):
pass
def numTexUnits(*args, **kwargs):
pass
__dict__ = None
__weakref__ = None
thisown = None
kMGL_Version11 = 0
kMGL_Version12 = 1
kMGL_Version121 = 2
kMGL_Version13 = 3
kMGL_Version14 = 4
kMGL_Version15 = 5
kMGL_Version20 = 6
def MHardwareRenderer_theRenderer(*args, **kwargs):
pass
def MRenderUtil_noiseTableSize(*args, **kwargs):
pass
def MRenderView_updatePixels(*args, **kwargs):
pass
def MCommonRenderSettingsData_getPreRenderFrameCmd(*args, **kwargs):
pass
def MCommonRenderSettingsData_getPostRenderFrameCmd(*args, **kwargs):
pass
def MRenderUtil_convertPsdFile(*args, **kwargs):
pass
def MRenderView_className(*args, **kwargs):
pass
def MRenderSetupPrivate__switchToLegacyRenderLayer(*args, **kwargs):
pass
def MHwTextureManager_swigregister(*args, **kwargs):
pass
def MRenderCallback_addCallback(*args, **kwargs):
pass
def MRenderUtil_mainBeautyPassCustomTokenString(*args, **kwargs):
pass
def MRenderShadowData_swigregister(*args, **kwargs):
pass
def MRenderUtil_swigregister(*args, **kwargs):
pass
def MGeometry_swigregister(*args, **kwargs):
pass
def MRenderUtil_renderObjectItem(*args, **kwargs):
pass
def MUniformParameterList_swigregister(*args, **kwargs):
pass
def MRenderUtil_exactImagePlaneFileName(*args, **kwargs):
pass
def MGeometryData_swigregister(*args, **kwargs):
pass
def MViewportRenderer_swigregister(*args, **kwargs):
pass
def MDrawProcedureBase_swigregister(*args, **kwargs):
pass
def MRenderingInfo_swigregister(*args, **kwargs):
pass
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
pass
def MRenderUtil_generatingIprFile(*args, **kwargs):
pass
def MRenderUtil_noiseTableCubeSide(*args, **kwargs):
pass
def MRenderView_refresh(*args, **kwargs):
pass
def RV_PIXEL_swigregister(*args, **kwargs):
pass
def MSwatchRenderBase_cancelCurrentSwatchRender(*args, **kwargs):
pass
def MRenderUtil_noise3(*args, **kwargs):
pass
def MSwatchRenderRegister_registerSwatchRender(*args, **kwargs):
pass
def MGeometryPrimitive_swigregister(*args, **kwargs):
pass
def MRenderView_swigregister(*args, **kwargs):
pass
def MHwTextureManager_textureFile(*args, **kwargs):
pass
def MRenderUtil_noise2(*args, **kwargs):
pass
def MRenderUtil_raytrace(*args, **kwargs):
pass
def MSwatchRenderRegister_swigregister(*args, **kwargs):
pass
def MGeometryManager_getGeometry(*args, **kwargs):
pass
def MHwTextureManager_glBind(*args, **kwargs):
pass
def MGeometryManager_className(*args, **kwargs):
pass
def MHwrCallback_addCallback(*args, **kwargs):
pass
def MRenderView_doesRenderEditorExist(*args, **kwargs):
pass
def MRenderCallback_removeCallback(*args, **kwargs):
pass
def MCommonRenderSettingsData_swigregister(*args, **kwargs):
pass
def MRenderView_startRender(*args, **kwargs):
pass
def MRenderUtil_className(*args, **kwargs):
pass
def MHwTextureManager_className(*args, **kwargs):
pass
def MFnRenderLayer_className(*args, **kwargs):
pass
def MHwTextureManager_registerTextureFile(*args, **kwargs):
pass
def MGeometryRequirements_swigregister(*args, **kwargs):
pass
def MUniformParameter_swigregister(*args, **kwargs):
pass
def _swig_getattr(self, class_type, name):
pass
def MRenderUtil_valueInNoiseTable(*args, **kwargs):
pass
def MCommonRenderSettingsData_className(*args, **kwargs):
pass
def MSwatchRenderBase_enableSwatchRender(*args, **kwargs):
pass
def MRenderUtil_maximumSpecularReflection(*args, **kwargs):
pass
def _swig_setattr_nondynamic_method(set):
pass
def MRenderUtil_inCurrentRenderLayer(*args, **kwargs):
pass
def MRenderUtil_noise4(*args, **kwargs):
pass
def MHardwareRenderer_swigregister(*args, **kwargs):
pass
def MVaryingParameterList_swigregister(*args, **kwargs):
pass
def MD3D9Renderer_theRenderer(*args, **kwargs):
pass
def MSwatchRenderRegister_unregisterSwatchRender(*args, **kwargs):
pass
def MFnRenderPass_swigregister(*args, **kwargs):
pass
def MRenderSetup_getEnabledSelectedNodeNames(*args, **kwargs):
pass
def MHwrCallback_removeCallback(*args, **kwargs):
pass
def MRenderUtil_diffuseReflectance(*args, **kwargs):
pass
def weakref_proxy(*args, **kwargs):
"""
proxy(object[, callback]) -- create a proxy object that weakly
references 'object'. 'callback', if given, is called with a
reference to the proxy when 'object' is about to be finalized.
"""
pass
def _swig_setattr(self, class_type, name, value):
pass
def MRenderUtil_relativeFileName(*args, **kwargs):
pass
def MGeometryManager_referenceDefaultGeometry(*args, **kwargs):
pass
def MRenderUtil_sendRenderProgressInfo(*args, **kwargs):
pass
def MRenderTarget_swigregister(*args, **kwargs):
pass
def MRenderUtil_raytraceFirstGeometryIntersections(*args, **kwargs):
pass
def MRenderView_setCurrentCamera(*args, **kwargs):
pass
def MRenderSetupPrivate_swigregister(*args, **kwargs):
pass
def MRenderCallback_addRenderTileCallback(*args, **kwargs):
pass
def MGLFunctionTable_swigregister(*args, **kwargs):
pass
def MRenderUtil_eval2dTexture(*args, **kwargs):
pass
def MRenderView_startRegionRender(*args, **kwargs):
pass
def MLightLinks_swigregister(*args, **kwargs):
pass
def MRenderView_endRender(*args, **kwargs):
pass
def MRenderCallback_swigregister(*args, **kwargs):
pass
def MHwTextureManager_deregisterTextureFile(*args, **kwargs):
pass
def MRenderUtil_exactFileTextureName(*args, **kwargs):
pass
def MRenderSetup_swigregister(*args, **kwargs):
pass
def MD3D9Renderer_swigregister(*args, **kwargs):
pass
def MRenderUtil_noise1(*args, **kwargs):
pass
def MRenderView_setDrawTileBoundary(*args, **kwargs):
pass
def MSwatchRenderBase_swigregister(*args, **kwargs):
pass
def MRenderProfile_swigregister(*args, **kwargs):
pass
def MFnRenderLayer_listAllRenderLayers(*args, **kwargs):
pass
def MRenderSetup_className(*args, **kwargs):
pass
def MRenderData_swigregister(*args, **kwargs):
pass
def MRenderUtil_renderPass(*args, **kwargs):
pass
def MFnRenderLayer_currentLayer(*args, **kwargs):
pass
def MRenderUtil_hemisphereCoverage(*args, **kwargs):
pass
def MFnRenderLayer_swigregister(*args, **kwargs):
pass
def MRenderUtil_lightAttenuation(*args, **kwargs):
pass
def MFnRenderPass_className(*args, **kwargs):
pass
def MGeometryList_swigregister(*args, **kwargs):
pass
def MRenderSetupPrivate_className(*args, **kwargs):
pass
def MFnRenderLayer_findLayerByName(*args, **kwargs):
pass
def MFnImageSource_className(*args, **kwargs):
pass
def MRenderUtil_mainBeautyPassName(*args, **kwargs):
pass
def RV_AOV_swigregister(*args, **kwargs):
pass
def MRenderSetupPrivate__triggerSelectionChanged(*args, **kwargs):
pass
def MRenderUtil_getCommonRenderSettings(*args, **kwargs):
pass
def MFnRenderLayer_defaultRenderLayer(*args, **kwargs):
pass
def _swig_repr(self):
pass
def MFnImageSource_swigregister(*args, **kwargs):
pass
def MVaryingParameter_swigregister(*args, **kwargs):
pass
def MRenderUtil_mayaRenderState(*args, **kwargs):
pass
def MGeometryManager_swigregister(*args, **kwargs):
pass
def MHwrCallback_swigregister(*args, **kwargs):
pass
def MGeometryManager_dereferenceDefaultGeometry(*args, **kwargs):
pass
def MRenderView_getRenderRegion(*args, **kwargs):
pass
def MRenderUtil_sampleShadingNetwork(*args, **kwargs):
pass
def MRenderCallback_className(*args, **kwargs):
pass
MGL_MAP2_VERTEX_ATTRIB4_4_NV = 34420
MGL_NOR = 5384
MGL_VARIANT_EXT = 34753
MGL_SWIZZLE_STRQ_ATI = 35194
MGL_COLOR_BUFFER_BIT = 16384
MGL_MAP2_TEXTURE_COORD_3 = 3509
MGL_MAP2_VERTEX_ATTRIB3_4_NV = 34419
MGL_SWIZZLE_STQ_DQ_ATI = 35193
MGL_VERTEX_ARRAY_STRIDE = 32892
MGL_CULL_VERTEX_OBJECT_POSITION_EXT = 33196
MGL_MAP2_VERTEX_ATTRIB2_4_NV = 34418
MGL_VERTEX_ARRAY_RANGE_NV = 34077
MGL_ALPHA12 = 32829
MGL_COLOR_INDEX = 6400
MGL_CULL_VERTEX_EYE_POSITION_EXT = 33195
MGL_PASS_THROUGH_NV = 34534
MGL_MAP2_VERTEX_ATTRIB1_4_NV = 34417
MGL_SWIZZLE_STQ_ATI = 35191
MGL_LIGHT2 = 16386
MGL_CULL_VERTEX_EXT = 33194
MGL_MAP2_VERTEX_ATTRIB0_4_NV = 34416
MGL_LIGHT_MODEL_COLOR_CONTROL = 33272
MGL_VERTEX_ARRAY_COUNT_EXT = 32893
MGL_ALPHA4 = 32827
MGL_STENCIL_BUFFER_BIT = 1024
MGL_MAP1_VERTEX_ATTRIB15_4_NV = 34415
MGL_COLOR_ALPHA_PAIRING_ATI = 35189
MGL_CONSTANT_ALPHA_EXT = 32771
MGL_ACCUM_BUFFER_BIT = 512
kMGLext_MGLX_create_context_with_config_sgix = 89
MGL_MAP1_VERTEX_ATTRIB14_4_NV = 34414
MGL_OR = 5383
MGL_POLYGON_OFFSET_LINE = 10754
MGL_ALWAYS = 519
MGL_TEXTURE2_ARB = 33986
MGL_MAP1_VERTEX_ATTRIB13_4_NV = 34413
MGL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI = 35187
MGL_VERTEX_ARRAY_TYPE = 32891
MGL_GEQUAL = 518
MGL_MAP1_VERTEX_ATTRIB12_4_NV = 34412
MGL_READ_BUFFER = 3074
MGL_POLYGON_OFFSET_UNITS = 10752
MGL_NOTEQUAL = 517
MGL_CONST_EYE_NV = 34533
MGL_MAP1_VERTEX_ATTRIB11_4_NV = 34411
MGL_VERTEX_ATTRIB_ARRAY9_NV = 34393
MGL_GREATER = 516
kMGLext_EXT_compiled_vertex_array = 52
MGL_MAP1_VERTEX_ATTRIB10_4_NV = 34410
MGL_ENABLE_BIT = 8192
MGL_NUM_PASSES_ATI = 35184
MGL_LEQUAL = 515
MGL_MAP1_VERTEX_ATTRIB9_4_NV = 34409
MGL_TEXTURE_COMPARE_OPERATOR_SGIX = 33179
MGL_CLAMP = 10496
MGL_CONSTANT_ALPHA = 32771
MGL_EQUAL = 514
MGL_MAP1_VERTEX_ATTRIB8_4_NV = 34408
MGL_VBO_FREE_MEMORY_ATI = 34811
MGL_MATRIX21 = 35029
MGL_READ_WRITE_ARB = 35002
MGL_MAP1_VERTEX_ATTRIB7_4_NV = 34407
MGL_TEXTURE_WRAP_S = 10242
MGL_VERTEX_ARRAY_SIZE = 32890
kMGLext_texture_border_clamp = 15
MGL_MATRIX20 = 35028
MGL_CCW = 2305
MGL_CLAMP_READ_COLOR = 35100
MGL_TEXTURE_MIN_FILTER = 10241
MGL_VERTEX_ATTRIB_ARRAY_POINTER = 34373
MGL_MATRIX19 = 35027
MGL_PREVIOUS_TEXTURE_INPUT_NV = 34532
MGL_MAP1_VERTEX_ATTRIB5_4_NV = 34405
MGL_TEXTURE_MAG_FILTER = 10240
MGL_VERTEX_ATTRIB_ARRAY8_NV = 34392
MGL_DEPTH_TEXTURE_MODE_ARB = 34891
MGL_EXP2 = 2049
MGL_TRANSFORM_BIT = 4096
MGL_LINEAR_MIPMAP_LINEAR = 9987
MGL_MATRIX17 = 35025
MGL_EXP = 2048
MGL_NEAREST_MIPMAP_LINEAR = 9986
MGL_ONE_MINUS_CONSTANT_COLOR_EXT = 32770
MGL_VERTEX_ARRAY_RANGE_LENGTH_NV = 34078
MGL_DEPTH_COMPONENT32_ARB = 33191
MGL_LINE_RESET_TOKEN = 1799
MGL_TEXTURE_BINDING_CUBE_MAP = 34068
MGL_LINEAR_MIPMAP_NEAREST = 9985
MGL_MATRIX15 = 35023
MGL_WRITE_ONLY_ARB = 35001
MGL_COPY_PIXEL_TOKEN = 1798
MGL_NEAREST_MIPMAP_NEAREST = 9984
MGL_OP_SET_GE_EXT = 34700
MGL_MATRIX14 = 35022
MGL_DRAW_PIXEL_TOKEN = 1797
MGL_AUX_BUFFERS = 3072
MGL_LINEAR = 9729
MGL_POINT_DISTANCE_ATTENUATION_ARB = 33065
MGL_CON_2_ATI = 35139
MGL_BITMAP_TOKEN = 1796
MGL_NEAREST = 9728
MGL_NICEST = 4354
MGL_POINT_FADE_THRESHOLD_SIZE_ARB = 33064
MGL_TEXTURE23_ARB = 34007
MGL_POLYGON_TOKEN = 1795
MGL_VIEWPORT_BIT = 2048
MGL_EYE_PLANE = 9474
MGL_POINT_SIZE_MAX_ARB = 33063
MGL_LINE_TOKEN = 1794
MGL_OBJECT_PLANE = 9473
MGL_ONE_MINUS_CONSTANT_COLOR = 32770
MGL_POINT_SIZE_MIN_ARB = 33062
MGL_TEXTURE20 = 34004
MGL_POINT_TOKEN = 1793
MGL_TEXTURE_CUBE_MAP = 34067
MGL_HI_SCALE_NV = 34574
MGL_DSDT8_NV = 34569
MGL_CLIP_VOLUME_CLIPPING_HINT_EXT = 33008
MGL_READ_ONLY_ARB = 35000
kMGLext_WMGL_ARB_pbuffer = 77
MGL_PASS_THROUGH_TOKEN = 1792
MGL_SPHERE_MAP = 9218
MGL_TEXTURE_COORD_ARRAY = 32888
MGL_UNSIGNED_NORMALIZED = 35863
MGL_MATRIX8 = 35016
MGL_4D_COLOR_TEXTURE = 1540
MGL_SWIZZLE_STR_ATI = 35190
MGL_VARIANT_DATATYPE_EXT = 34789
MGL_OBJECT_LINEAR = 9217
MGL_BGR_EXT = 32992
MGL_TEXTURE_CUBE_MAP_POSITIVE_Y = 34071
MGL_3D_COLOR_TEXTURE = 1539
MGL_SIGNED_ALPHA8_NV = 34566
MGL_VERTEX_ATTRIB_ARRAY6_NV = 34390
MGL_MULTISAMPLE_BIT_ARB = 536870912
MGL_VERTEX_ATTRIB_ARRAY11_NV = 34395
MGL_STENCIL_ATTACHMENT = 36128
MGL_3D_COLOR = 1538
MGL_ARRAY_ELEMENT_LOCK_COUNT_EXT = 33193
MGL_SIGNED_ALPHA_NV = 34565
MGL_VARIABLE_F_NV = 34088
MGL_SAMPLE_COVERAGE_INVERT_ARB = 32939
kMGLext_ARB_occlusion_query = 40
MGL_3D = 1537
MGL_TEXTURE26_ARB = 34010
MGL_SIGNED_LUMINANCE8_ALPHA8_NV = 34564
MGL_CON_26_ATI = 35163
MGL_MATRIX4 = 35012
MGL_2D = 1536
MGL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX = 36937
MGL_SIGNED_LUMINANCE_ALPHA_NV = 34563
MGL_MATRIX3 = 35011
MGL_SECONDARY_COLOR_ARRAY_POINTER_EXT = 33885
MGL_OUT_OF_MEMORY = 1285
MGL_DECAL = 8449
MGL_OP_MAX_EXT = 34698
MGL_SAMPLE_BUFFERS_ARB = 32936
MGL_STACK_UNDERFLOW = 1284
MGL_RGBA_FLOAT_MODE = 34848
MGL_MODULATE = 8448
MGL_MATRIX1 = 35009
MGL_OFFSET_TEXTURE_2D_MATRIX_NV = 34529
MGL_STACK_OVERFLOW = 1283
MGL_ALPHA8 = 32828
MGL_Q = 8195
MGL_VERTEX_ATTRIB_ARRAY5_NV = 34389
MGL_MATRIX0 = 35008
MGL_INVALID_OPERATION = 1282
MGL_ARRAY_ELEMENT_LOCK_FIRST_EXT = 33192
MGL_SIGNED_RGB_NV = 34558
MGL_PROGRAM_ERROR_STRING = 34932
MGL_INVALID_VALUE = 1281
MGL_SIGNED_RGBA8_NV = 34556
MGL_CON_25_ATI = 35162
MGL_MAX_PROGRAM_MATRIX_STACK_DEPTH = 34350
kMGLext_MGLX_choose_fbconfig_sgix = 88
MGL_INVALID_ENUM = 1280
MGL_NORMAL_MAP = 34065
MGL_S = 8192
MGL_MAX_PROGRAM_MATRICES = 34351
MGL_DYNAMIC_READ_ARB = 35049
MGL_AUX3 = 1036
MGL_SIGNED_HILO16_NV = 34554
MGL_COLOR_ARRAY = 32886
MGL_MAX_VERTEX_ATTRIBS = 34921
MGL_AUX2 = 1035
MGL_MAX_RECTANGLE_TEXTURE_SIZE = 34040
MGL_SIGNED_HILO_NV = 34553
MGL_CURRENT_MATRIX_STACK_DEPTH = 34368
MGL_REG_31_ATI = 35136
MGL_AUX1 = 1034
MGL_HILO16_NV = 34552
MGL_TEXTURE_BORDER = 4101
MGL_TRANSPOSE_CURRENT_MATRIX = 34999
kMGLext_ARB_ES2_compatibility = 51
MGL_AUX0 = 1033
MGL_CLAMP_TO_BORDER_ARB = 33069
MGL_DSDT_MAG_VIB_NV = 34551
MGL_CURRENT_MATRIX = 34369
MGL_CURRENT_OCCLUSION_QUERY_ID_NV = 34917
MGL_FRONT_AND_BACK = 1032
MGL_TEXTURE_COMPARE_SGIX = 33178
MGL_DSDT_MAG_NV = 34550
MGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = 34074
MGL_PROGRAM_ERROR_POSITION = 34379
MGL_TEXTURE18_ARB = 34002
kMGLext_ARB_texture_env_crossbar = 31
MGL_INCR = 7682
MGL_PROGRAM_STRING = 34344
MGL_SECONDARY_COLOR_ARRAY_TYPE_EXT = 33883
MGL_LEFT = 1030
MGL_HILO_NV = 34548
MGL_NORMAL_ARRAY = 32885
MGL_PROGRAM_UNDER_NATIVE_LIMITS = 34998
MGL_BACK = 1029
MGL_RENDERBUFFER_WIDTH = 36162
MGL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV = 34547
MGL_MAX_PROGRAM_ENV_PARAMETERS = 34997
MGL_CLAMP_TO_BORDER_SGIS = 33069
MGL_TEXTURE15_ARB = 33999
MGL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV = 34546
MGL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV = 35973
MGL_MAX_PROGRAM_LOCAL_PARAMETERS = 34996
MGL_TEXTURE14_ARB = 33998
MGL_MAX_NAME_STACK_DEPTH = 3383
MGL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV = 34545
MGL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS = 34995
MGL_PIXEL_COUNTER_BITS_NV = 34916
MGL_BACK_LEFT = 1026
kMGLext_ARB_vertex_buffer_object = 41
MGL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV = 34544
MGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = 34073
MGL_PROXY_TEXTURE_1D = 32867
MGL_TEXTURE12_ARB = 33996
kMGLext_ARB_point_parameters = 30
MGL_DOT_PRODUCT_TEXTURE_3D_NV = 34543
MGL_MAX_PROGRAM_ADDRESS_REGISTERS = 34993
MGL_SECONDARY_COLOR_ARRAY_SIZE_EXT = 33882
MGL_FRONT_LEFT = 1024
MGL_DOT_PRODUCT_TEXTURE_2D_NV = 34542
MGL_VERTEX_ARRAY = 32884
MGL_PROGRAM_ADDRESS_REGISTERS = 34992
MGL_HALF_FLOAT = 5131
MGL_NUM_INSTRUCTIONS_TOTAL_ATI = 35186
MGL_DOT_PRODUCT_DEPTH_REPLACE_NV = 34541
MGL_TEXTURE_WRAP_T = 10243
MGL_MAX_PROGRAM_NATIVE_ATTRIBS = 34991
MGL_REG_29_ATI = 35134
MGL_DOUBLE = 5130
MGL_DOT_PRODUCT_NV = 34540
MGL_VERTEX_ATTRIB_ARRAY2_NV = 34386
MGL_PROGRAM_NATIVE_ATTRIBS = 34990
MGL_4_BYTES = 5129
MGL_OUTPUT_TEXTURE_COORD3_EXT = 34720
MGL_ISOTROPIC_BRDF_NV = 34539
MGL_TEXTURE28_ARB = 34012
MGL_TEXTURE_GREEN_SIZE = 32861
MGL_RGB5 = 32848
MGL_3_BYTES = 5128
MGL_DEPENDENT_GB_TEXTURE_2D_NV = 34538
MGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = 34072
MGL_TEXTURE_RED_SIZE = 32860
MGL_BUFFER_MAP_POINTER_ARB = 35005
kMGLext_ARB_matrix_palette = 29
MGL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV = 34573
MGL_COLOR_MATERIAL_PARAMETER = 2902
kMGLext_color_matrix = 25
MGL_RGBA16 = 32859
MGL_CURRENT_SECONDARY_COLOR_EXT = 33881
MGL_BUFFER_MAPPED_ARB = 35004
MGL_MAX_CLIP_PLANES = 3378
MGL_COLOR_MATERIAL_FACE = 2901
MGL_TEXTURE_BINDING_2D = 32873
MGL_TEXTURE_DEPTH_TYPE = 35862
MGL_RGBA12 = 32858
MGL_BUFFER_ACCESS_ARB = 35003
MGL_POLYGON_OFFSET_FACTOR = 32824
MGL_SHADE_MODEL = 2900
MGL_RGB10_A2 = 32857
MGL_COMPRESSED_TEXTURE_FORMATS = 34467
MGL_BUFFER_USAGE_ARB = 34661
MGL_LIGHT_MODEL_AMBIENT = 2899
MGL_VERTEX_ATTRIB_ARRAY1_NV = 34385
MGL_RGBA8 = 32856
MGL_PROXY_TEXTURE_2D = 32868
MGL_VERTEX_ATTRIB_ARRAY10_NV = 34394
MGL_BUFFER_SIZE_ARB = 34660
MGL_OUTPUT_TEXTURE_COORD2_EXT = 34719
MGL_LIGHT_MODEL_TWO_SIDE = 2898
MGL_RGB5_A1 = 32855
MGL_RGB4 = 32847
kMGLext_ARB_fragment_program = 39
MGL_TEXTURE1_ARB = 33985
MGL_LIGHT_MODEL_LOCAL_VIEWER = 2897
MGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = 34071
MGL_RGBA4 = 32854
MGL_TEXTURE0_ARB = 33984
kMGLext_ARB_vertex_blend = 28
MGL_VECTOR_EXT = 34751
MGL_LIGHTING = 2896
MGL_REG_3_ATI = 35108
MGL_RGBA2 = 32853
MGL_COLOR_SUM_EXT = 33880
MGL_SECONDARY_COLOR_ARRAY_EXT = 33886
MGL_TEXTURE_COMPRESSED_IMAGE_SIZE = 34464
MGL_OFFSET_TEXTURE_2D_SCALE_NV = 34530
MGL_TEXTURE_BINDING_1D = 32872
MGL_RGB16 = 32852
MGL_FRAGMENT_SHADER_ARB = 35632
kMGLext_WMGL_ARB_extensions_string = 75
MGL_DYNAMIC_COPY_ARB = 35050
MGL_REPEAT = 10497
MGL_CULL_FACE_MODE = 2885
MGL_MATRIX22 = 35030
MGL_RGB12 = 32851
MGL_REG_27_ATI = 35132
MGL_SECONDARY_COLOR_ARRAY_STRIDE_EXT = 33884
MGL_TEXTURE25_ARB = 34009
MGL_CULL_FACE = 2884
MGL_VERTEX_ATTRIB_ARRAY0_NV = 34384
MGL_RGB10 = 32850
MGL_DYNAMIC_DRAW_ARB = 35048
MGL_MAX_PIXEL_MAP_TABLE = 3380
MGL_EDGE_FLAG = 2883
MGL_RGB8 = 32849
MGL_TEXTURE_FLOAT_COMPONENTS_NV = 34956
MGL_STATIC_COPY_ARB = 35046
MGL_POLYGON_STIPPLE = 2882
MGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = 34070
MGL_FLOAT_RGBA_MODE_NV = 34958
kMGLext_MGLX_create_pbuffer_sgix = 87
MGL_STATIC_READ_ARB = 35045
kMGLext_convolution = 27
MGL_POLYGON_SMOOTH = 2881
MGL_FLOAT_CLEAR_COLOR_VALUE_NV = 34957
MGL_STREAM_COPY_ARB = 35042
MGL_STATIC_DRAW_ARB = 35044
MGL_POLYGON_MODE = 2880
MGL_TEXTURE_RESIDENT = 32871
MGL_R3_G3_B2 = 10768
MGL_FOG_COORDINATE_ARRAY_EXT = 33879
MGL_LUMINANCE16F = 34846
MGL_LIST_INDEX = 2867
MGL_INTENSITY16 = 32845
MGL_TEXTURE_COMPRESSED = 34465
MGL_FOG_COORDINATE_ARRAY_POINTER_EXT = 33878
MGL_LIST_BASE = 2866
MGL_SELECTION_BUFFER_SIZE = 3572
MGL_FLOAT_RGBA16_NV = 34954
kMGLext_ARB_instanced_arrays = 50
MGL_FOG_COORDINATE_ARRAY_STRIDE_EXT = 33877
MGL_OUTPUT_TEXTURE_COORD0_EXT = 34717
MGL_MAX_LIST_NESTING = 2865
MGL_MAP1_INDEX = 3473
MGL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB = 34466
MGL_FLOAT_RGB32_NV = 34953
MGL_FLOAT_RGBA32_NV = 34955
MGL_FOG_COORDINATE_ARRAY_TYPE_EXT = 33876
MGL_LIST_MODE = 2864
MGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB = 34069
MGL_INTENSITY4 = 32842
MGL_CURRENT_FOG_COORDINATE_EXT = 33875
kMGLext_color_table = 26
MGL_LINE_STIPPLE_REPEAT = 2854
MGL_FLOAT_RG32_NV = 34951
MGL_MODELVIEW_PROJECTION_NV = 34345
MGL_FRAGMENT_DEPTH_EXT = 33874
MGL_LINE_STIPPLE_PATTERN = 2853
MGL_LUMINANCE16_ALPHA16 = 32840
MGL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB = 34972
MGL_INTENSITY16F = 34845
MGL_LINE_STIPPLE = 2852
MGL_PROGRAM_TEX_INSTRUCTIONS_ARB = 34822
MGL_VERTEX_ATTRIB_ARRAY_NORMALIZED = 34922
MGL_LUMINANCE12_ALPHA12 = 32839
MGL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB = 34971
MGL_LINE_WIDTH_GRANULARITY = 2851
MGL_TEXTURE16 = 34000
MGL_LUMINANCE12_ALPHA4 = 32838
MGL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB = 34970
MGL_COMPARE_R_TO_TEXTURE_ARB = 34894
MGL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI = 34869
MGL_MODELVIEW1_STACK_DEPTH_EXT = 34050
MGL_LUMINANCE8_ALPHA8 = 32837
MGL_INTENSITY12 = 32844
MGL_VERTEX_PROGRAM_BINDING_NV = 34378
MGL_INDEX_ARRAY_BUFFER_BINDING_ARB = 34969
MGL_MODELVIEW0_STACK_DEPTH_EXT = 2979
MGL_TEXTURE_BINDING_CUBE_MAP_ARB = 34068
MGL_LUMINANCE6_ALPHA2 = 32836
MGL_STREAM_READ_ARB = 35041
MGL_COLOR_ARRAY_BUFFER_BINDING_ARB = 34968
MGL_COEFF = 2560
MGL_LINE_SMOOTH = 2848
MGL_FLOAT_RG_NV = 34945
MGL_STREAM_DRAW_ARB = 35040
MGL_NORMAL_ARRAY_BUFFER_BINDING_ARB = 34967
MGL_POINT_SIZE_GRANULARITY = 2835
MGL_LUMINANCE16 = 32834
MGL_VERTEX_ARRAY_BUFFER_BINDING_ARB = 34966
MGL_COLOR_ATTACHMENT14 = 36078
MGL_POINT_SIZE_RANGE = 2834
kMGLext_texture_env_combine = 13
MGL_LUMINANCE12 = 32833
MGL_REG_24_ATI = 35129
kMGLext_ATI_fragment_shader = 61
MGL_ELEMENT_ARRAY_BUFFER_BINDING_ARB = 34965
MGL_MAX_TEXTURE_COORDS_ARB = 34929
MGL_TRACK_MATRIX_TRANSFORM_NV = 34377
MGL_RGBA_FLOAT_MODE_ATI = 34848
MGL_TEXTURE_COMPARE_MODE_ARB = 34892
MGL_ARRAY_BUFFER_BINDING_ARB = 34964
MGL_MAX_LIGHTS = 3377
MGL_POINT_SMOOTH = 2832
MGL_MIRROR_CLAMP_TO_EDGE_ATI = 34627
MGL_INTENSITY8 = 32843
MGL_VERTEX_ATTRIB_ARRAY3_NV = 34387
MGL_CLIP_PLANE5 = 12293
MGL_ELEMENT_ARRAY_BUFFER_ARB = 34963
MGL_DOMAIN = 2562
MGL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 34831
MGL_TEXTURE_CUBE_MAP_ARB = 34067
MGL_MIRROR_CLAMP_ATI = 34626
MGL_ARRAY_BUFFER_ARB = 34962
MGL_MAP1_VERTEX_ATTRIB6_4_NV = 34406
MGL_SIGNED_RGB_UNSIGNED_ALPHA_NV = 34572
MGL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 34830
MGL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 34047
MGL_TEXTURE_MAG_SIZE_NV = 34591
MGL_PROGRAM_LENGTH_NV = 34343
MGL_LUMINANCE8 = 32832
MGL_INVERSE_NV = 34347
MGL_T2F_N3F_V3F = 10795
MGL_CURRENT_RASTER_POSITION = 2823
MGL_TEXTURE_DT_SIZE_NV = 34590
MGL_T2F_C3F_V3F = 10794
MGL_RGB16F = 34843
MGL_CURRENT_RASTER_TEXTURE_COORDS = 2822
MGL_TEXTURE_DS_SIZE_NV = 34589
MGL_NEVER = 512
MGL_MATRIX29 = 35037
MGL_CURRENT_RASTER_INDEX = 2821
MGL_TRACK_MATRIX_NV = 34376
MGL_TEXTURE_LO_SIZE_NV = 34588
MGL_MATRIX28 = 35036
MGL_OUTPUT_VERTEX_EXT = 34714
kMGLext_ARB_texture_float = 43
MGL_CURRENT_RASTER_COLOR = 2820
MGL_TEXTURE_HI_SIZE_NV = 34587
MGL_FLOAT_RGB16_NV = 34952
kMGLext_ARB_vertex_program = 38
MGL_TEXTURE_FREE_MEMORY_ATI = 34812
MGL_MATRIX27 = 35035
MGL_CURRENT_TEXTURE_COORDS = 2819
MGL_REFLECTION_MAP_ARB = 34066
MGL_TEXTURE_BORDER_VALUES_NV = 34586
MGL_MATRIX26 = 35034
MGL_CW = 2304
MGL_CURRENT_NORMAL = 2818
MGL_VIBRANCE_BIAS_NV = 34585
MGL_CURRENT_ATTRIB_NV = 34342
MGL_N3F_V3F = 10789
MGL_TEXTURE_COMPRESSION_HINT = 34031
MGL_CURRENT_INDEX = 2817
MGL_NORMAL_ARRAY_POINTER_EXT = 32911
MGL_MAGNITUDE_BIAS_NV = 34584
kMGLext_NVX_gpu_memory_info = 72
MGL_MATRIX24 = 35032
MGL_RGBA16F = 34842
MGL_CURRENT_COLOR = 2816
MGL_TEXTURE_BLUE_TYPE = 35858
MGL_DT_BIAS_NV = 34583
MGL_ADD = 260
MGL_C4UB_V3F = 10787
MGL_PROGRAM_ALU_INSTRUCTIONS_ARB = 34821
MGL_FEEDBACK_BUFFER_POINTER = 3568
MGL_TRANSPOSE_COLOR_MATRIX_ARB = 34022
MGL_DS_BIAS_NV = 34582
MGL_C4UB_V2F = 10786
MGL_OP_MOV_EXT = 34713
MGL_ORDER = 2561
MGL_LO_BIAS_NV = 34581
MGL_INTENSITY = 32841
MGL_V3F = 10785
MGL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX = 36935
MGL_FOG_MODE = 2917
MGL_BLEND = 3042
kMGLext_MGLX_destroy_pbuffer = 86
MGL_V2F = 10784
MGL_MAP1_VERTEX_ATTRIB4_4_NV = 34404
MGL_PROGRAM_ERROR_STRING_NV = 34932
MGL_BLEND_SRC = 3041
MGL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB = 34973
MGL_EDGE_FLAG_ARRAY_POINTER = 32915
MGL_FRAGMENT_PROGRAM_BINDING_NV = 34931
MGL_BLEND_DST = 3040
MGL_TEXTURE_COORD_ARRAY_POINTER = 32914
MGL_LUMINANCE_ALPHA32F = 34841
MGL_SEPARATE_ATTRIBS_EXT = 35981
MGL_DT_SCALE_NV = 34577
MGL_MULT = 259
MGL_INDEX_ARRAY_POINTER = 32913
MGL_INTERLEAVED_ATTRIBS_EXT = 35980
MGL_PRIMITIVE_ID_NV = 35964
MGL_DS_SCALE_NV = 34576
kMGLext_ARB_explicit_attrib_location = 49
MGL_COLOR_ARRAY_POINTER = 32912
MGL_TEXTURE_DEPTH_SIZE_ARB = 34890
MGL_FRAGMENT_PROGRAM_NV = 34928
MGL_TEXTURE_COMPRESSED_ARB = 34465
MGL_ALPHA_TEST_FUNC = 3009
MGL_FLOAT_RG16_NV = 34950
MGL_NORMAL_ARRAY_POINTER = 32911
MGL_FENCE_CONDITION_NV = 34036
MGL_FOG_END = 2916
MGL_ALPHA_TEST = 3008
MGL_VERTEX_ARRAY_POINTER = 32910
MGL_MAP1_VERTEX_ATTRIB3_4_NV = 34403
MGL_FENCE_STATUS_NV = 34035
MGL_CLIENT_ATTRIB_STACK_DEPTH = 2993
MGL_ATTRIB_ARRAY_STRIDE_NV = 34340
MGL_EDGE_FLAG_ARRAY_STRIDE = 32908
MGL_ALL_COMPLETED_NV = 34034
MGL_ATTRIB_STACK_DEPTH = 2992
MGL_COMBINER_INPUT_NV = 34114
MGL_TEXTURE_COORD_ARRAY_STRIDE = 32906
MGL_COLOR_ATTACHMENT10 = 36074
MGL_PRIMITIVES_GENERATED_EXT = 35975
MGL_VERTEX_ATTRIB_ARRAY_TYPE = 34341
MGL_TEXTURE_MATRIX = 2984
MGL_RETURN = 258
MGL_OP_MULTIPLY_MATRIX_EXT = 34712
MGL_ACCUM = 256
MGL_VERTEX_ID_NV = 35963
MGL_PROJECTION_MATRIX = 2983
MGL_OP_CROSS_PRODUCT_EXT = 34711
MGL_MATRIX16 = 35024
MGL_TRANSFORM_FEEDBACK_BUFFER_START_EXT = 35972
MGL_MODELVIEW_MATRIX = 2982
MGL_FLOAT_R32_NV = 34949
MGL_OP_SUB_EXT = 34710
MGL_TRANSFORM_FEEDBACK_VARYINGS_EXT = 35971
MGL_INCR_WRAP_EXT = 34055
MGL_TEXTURE_STACK_DEPTH = 2981
MGL_INDEX_ARRAY_TYPE = 32901
MGL_MAP1_VERTEX_ATTRIB2_4_NV = 34402
MGL_MAX_TEXTURE_UNITS_ARB = 34018
MGL_PROJECTION_STACK_DEPTH = 2980
MGL_ATTRIB_ARRAY_SIZE_NV = 34339
MGL_COLOR_ARRAY_STRIDE = 32899
MGL_CLIENT_ACTIVE_TEXTURE_ARB = 34017
kMGLext_MGLX_create_pbuffer = 82
MGL_MODELVIEW_STACK_DEPTH = 2979
MGL_OP_POWER_EXT = 34707
MGL_INTENSITY32F = 34839
MGL_ACTIVE_TEXTURE_ARB = 34016
MGL_VIEWPORT = 2978
MGL_COMPRESSED_LUMINANCE = 34026
kMGLext_EXT_transform_feedback = 60
MGL_COLOR_ARRAY_SIZE = 32897
MGL_TEXTURE31_ARB = 34015
MGL_TEXTURE10 = 33994
MGL_NORMALIZE = 2977
MGL_NORMAL_ARRAY_STRIDE = 32895
MGL_DEPTH_COMPONENT24_ARB = 33190
MGL_TEXTURE30_ARB = 34014
MGL_MATRIX_MODE = 2976
MGL_FLOAT_R16_NV = 34948
MGL_NORMAL_ARRAY_TYPE = 32894
MGL_SEPARATE_ATTRIBS_NV = 35981
MGL_FOG_DENSITY = 2914
MGL_STENCIL_WRITEMASK = 2968
MGL_OP_FLOOR_EXT = 34703
MGL_MAP1_VERTEX_ATTRIB1_4_NV = 34401
MGL_INTERLEAVED_ATTRIBS_NV = 35980
MGL_STENCIL_REF = 2967
MGL_VERTEX_STATE_PROGRAM_NV = 34337
MGL_OP_CLAMP_EXT = 34702
MGL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV = 35979
MGL_STENCIL_PASS_DEPTH_PASS = 2966
MGL_TEXTURE_LUMINANCE_TYPE = 35860
MGL_OP_SET_LT_EXT = 34701
MGL_COLOR_ATTACHMENT8 = 36072
MGL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV = 35978
MGL_STENCIL_PASS_DEPTH_FAIL = 2965
MGL_COMPRESSED_ALPHA = 34025
MGL_EDGE_FLAG_ARRAY = 32889
MGL_RASTERIZER_DISCARD_NV = 35977
MGL_TEXTURE_COORD_NV = 35961
MGL_STENCIL_FAIL = 2964
MGL_COLOR_TABLE_RED_SIZE_EXT = 32986
MGL_OP_MIN_EXT = 34699
MGL_DEPTH_COMPONENT16_ARB = 33189
MGL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV = 35976
MGL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 34076
MGL_FLOAT_RGBA_NV = 34947
kMGLext_ARB_texgen_reflection = 37
MGL_INDEX_ARRAY = 32887
MGL_PRIMITIVES_GENERATED_NV = 35975
MGL_DOT3_RGBA_ARB = 34479
MGL_STENCIL_FUNC = 2962
MGL_OP_FRAC_EXT = 34697
MGL_MAP1_VERTEX_ATTRIB0_4_NV = 34400
MGL_TEXTURE_3D_EXT = 32879
MGL_TRANSFORM_FEEDBACK_RECORD_NV = 35974
MGL_STENCIL_CLEAR_VALUE = 2961
MGL_VERTEX_PROGRAM_NV = 34336
MGL_OP_MADD_EXT = 34696
MGL_COMPRESSED_RGBA = 34030
MGL_STENCIL_TEST = 2960
MGL_OP_ADD_EXT = 34695
MGL_RGB32F = 34837
MGL_TRANSFORM_FEEDBACK_BUFFER_START_NV = 35972
MGL_TEXTURE_1D = 3552
MGL_TEXTURE_GREEN_TYPE = 35857
MGL_ACCUM_CLEAR_VALUE = 2944
MGL_MAX_CUBE_MAP_TEXTURE_SIZE = 34076
MGL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV = 35967
MGL_OP_MUL_EXT = 34694
MGL_TRANSFORM_FEEDBACK_VARYINGS_NV = 35971
MGL_TEXTURE8 = 33992
MGL_CON_3_ATI = 35140
MGL_TRANSPOSE_TEXTURE_MATRIX_ARB = 34021
MGL_SWIZZLE_STR_DR_ATI = 35192
MGL_DEPTH_FUNC = 2932
MGL_OP_DOT4_EXT = 34693
MGL_MATRIX13 = 35021
MGL_ACTIVE_VARYING_MAX_LENGTH_NV = 35970
MGL_DEPTH_CLEAR_VALUE = 2931
MGL_FLOAT_RGB_NV = 34946
kMGLext_histogram = 24
MGL_OP_DOT3_EXT = 34692
MGL_ACTIVE_VARYINGS_NV = 35969
MGL_FLAT = 7424
MGL_DEPTH_WRITEMASK = 2930
kMGLext_ARB_shadow_ambient = 34
kMGLext_MGLX_destroy_window = 85
MGL_OP_NEGATE_EXT = 34691
MGL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 36054
MGL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV = 35968
MGL_DEPTH_TEST = 2929
MGL_OPERAND3_ALPHA_NV = 34203
MGL_OP_INDEX_EXT = 34690
MGL_TEXTURE15 = 33999
MGL_DEPTH_RANGE = 2928
MGL_VERTEX_SHADER_BINDING_EXT = 34689
MGL_RGBA32F = 34836
MGL_TEXTURE14 = 33998
MGL_FOG_COLOR = 2918
MGL_REG_16_ATI = 35121
MGL_VERTEX_SHADER_EXT = 34688
MGL_GENERIC_ATTRIB_NV = 35965
MGL_NORMAL_MAP_ARB = 34065
kMGLext_ARB_OpenMGL20 = 48
MGL_OBJECT_ATTACHED_OBJECTS_ARB = 35717
MGL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI = 34808
MGL_MATRIX12 = 35020
MGL_TEXTURE12 = 33996
MGL_TEXTURE_IMAGE_SIZE_ARB = 34464
MGL_DECR_WRAP_EXT = 34056
MGL_LUMINANCE4_ALPHA4 = 32835
MGL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI = 34807
MGL_TEXTURE11 = 33995
MGL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB = 35657
MGL_FOG_START = 2915
MGL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI = 34806
MGL_ACTIVE_TEXTURE = 34016
MGL_CLIP_DISTANCE_NV = 35962
MGL_DOT3_RGBA_EXT = 34479
MGL_OPERAND3_RGB_NV = 34195
MGL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI = 34805
MGL_TEXTURE9 = 33993
MGL_FOG_INDEX = 2913
kMGLext_texture_cube_map = 11
MGL_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 34804
MGL_DSDT8_MAG8_INTENSITY8_NV = 34571
MGL_BACK_SECONDARY_COLOR_NV = 35960
MGL_FRAGMENT_PROGRAM_ARB = 34820
MGL_FOG = 2912
MGL_TEXTURE_MAX_ANISOTROPY_EXT = 34046
MGL_PN_TRIANGLES_NORMAL_MODE_ATI = 34803
MGL_TEXTURE7 = 33991
MGL_Y_EXT = 34774
MGL_DOT3_RGB_ARB = 34478
MGL_PN_TRIANGLES_POINT_MODE_ATI = 34802
MGL_MATRIX11 = 35019
MGL_TEXTURE6 = 33990
MGL_COMPRESSED_TEXTURE_FORMATS_ARB = 34467
MGL_FLOAT_R_NV = 34944
MGL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 34801
MGL_TEXTURE5 = 33989
MGL_CON_8_ATI = 35145
MGL_VERTEX_ATTRIB_ARRAY14_NV = 34398
MGL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB = 35722
MGL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB = 34975
MGL_PN_TRIANGLES_ATI = 34800
MGL_VARIANT_VALUE_EXT = 34788
MGL_TEXTURE4 = 33988
MGL_OBJECT_ACTIVE_ATTRIBUTES_ARB = 35721
MGL_SOURCE3_ALPHA_NV = 34187
MGL_PIXEL_MAP_I_TO_R_SIZE = 3250
MGL_TEXTURE3 = 33987
MGL_PIXEL_MAP_I_TO_B_SIZE = 3252
MGL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB = 35661
MGL_PIXEL_MAP_S_TO_S_SIZE = 3249
MGL_DSDT8_MAG8_NV = 34570
MGL_TEXTURE2 = 33986
MGL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB = 35660
MGL_MAX_TEXTURE_IMAGE_UNITS_ARB = 34930
kMGLext_texture_compression_s3tc = 59
MGL_CURRENT_QUERY_ARB = 34917
MGL_TEXTURE1 = 33985
MGL_COMPRESSED_RGBA_ARB = 34030
MGL_SAMPLES_PASSED_ARB = 35092
MGL_MATRIX10 = 35018
MGL_TEXTURE0 = 33984
MGL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB = 35658
MGL_PROXY_TEXTURE_3D_EXT = 32880
MGL_PIXEL_COUNTER_BITS_ARB = 34916
MGL_TEXTURE_COMPONENTS = 4099
MGL_RENDER = 7168
MGL_W_EXT = 34776
MGL_COMPRESSED_INTENSITY_ARB = 34028
MGL_PIXEL_COUNT_AVAILABLE_NV = 34919
MGL_TEXTURE30 = 34014
MGL_LOGIC_OP = 3057
MGL_TEXTURE4_ARB = 33988
MGL_COMPRESSED_LUMINANCE_ALPHA_ARB = 34027
MGL_SOURCE3_RGB_NV = 34179
kMGLext_blend_minmax = 22
MGL_PIXEL_MAP_R_TO_R = 3190
MGL_GENERATE_MIPMAP_SGIS = 33169
MGL_PIXEL_MAP_I_TO_G_SIZE = 3251
MGL_COMPRESSED_LUMINANCE_ARB = 34026
MGL_TEXTURE_ALPHA_TYPE = 35859
MGL_PIXEL_MAP_I_TO_A = 3189
MGL_TEXTURE_GEN_MODE = 9472
MGL_FRONT_FACE = 2886
MGL_OCCLUSION_TEST_RESULT_HP = 33126
MGL_FLOAT_MAT2_ARB = 35674
MGL_POINT_SIZE = 2833
MGL_PIXEL_MAP_I_TO_B = 3188
MGL_OCCLUSION_TEST_HP = 33125
MGL_BOOL_VEC4_ARB = 35673
MGL_VERTEX_ATTRIB_ARRAY7_NV = 34391
MGL_PIXEL_MAP_I_TO_G = 3187
MGL_MATRIX9 = 35017
MGL_OFFSET_TEXTURE_2D_BIAS_NV = 34531
MGL_FOG_SPECULAR_TEXTURE_WIN = 33004
MGL_BOOL_VEC3_ARB = 35672
MGL_RENDERBUFFER_GREEN_SIZE = 36177
MGL_VERSION = 7938
kMGLext_SGIX_shadow = 36
MGL_PIXEL_MAP_I_TO_R = 3186
MGL_SCALAR_EXT = 34750
MGL_FILL = 6914
MGL_VERTEX_WEIGHT_ARRAY_EXT = 34060
MGL_BOOL_VEC2_ARB = 35671
MGL_PIXEL_MAP_S_TO_S = 3185
MGL_TEXTURE29 = 34013
MGL_TEXTURE_3D = 32879
MGL_PHONG_WIN = 33002
MGL_REG_0_ATI = 35105
MGL_BOOL_ARB = 35670
MGL_COMBINE4_NV = 34051
MGL_TEXTURE13 = 33997
MGL_PIXEL_MAP_I_TO_I = 3184
MGL_COMPRESSED_RGB = 34029
MGL_OUTPUT_TEXTURE_COORD31_EXT = 34748
MGL_QUERY_RESULT_AVAILABLE_ARB = 34919
MGL_INT_VEC4_ARB = 35669
MGL_TEXTURE_GEN_Q = 3171
MGL_SIGNED_INTENSITY8_NV = 34568
MGL_COLOR_INDEX12_EXT = 32998
MGL_MAP2_GRID_SEGMENTS = 3539
MGL_TEXTURE_RED_TYPE = 35856
MGL_INT_VEC3_ARB = 35668
MGL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 34832
MGL_TRANSFORM_FEEDBACK_ATTRIBS_NV = 35966
MGL_TEXTURE_GEN_R = 3170
MGL_COLOR_INDEX8_EXT = 32997
MGL_MODELVIEW1_EXT = 34058
MGL_TEXTURE_GEN_T = 3169
MGL_BGRA_EXT = 32993
MGL_OUTPUT_TEXTURE_COORD28_EXT = 34745
MGL_FLOAT_VEC4_ARB = 35666
MGL_LUMINANCE4 = 32831
MGL_TEXTURE_GEN_S = 3168
MGL_OUTPUT_TEXTURE_COORD27_EXT = 34744
MGL_CON_5_ATI = 35142
MGL_FLOAT_VEC3_ARB = 35665
kMGLext_ARB_shadow = 33
kMGLext_MGLX_create_new_context = 84
MGL_FOG_HINT = 3156
MGL_TEXTURE28 = 34012
MGL_COLOR_INDEX1_EXT = 32994
MGL_FLOAT_VEC2_ARB = 35664
MGL_RED_BITS = 3410
MGL_POLYGON_SMOOTH_HINT = 3155
kMGLext_NV_fence = 63
MGL_COLOR_TABLE_INTENSITY_SIZE_EXT = 32991
MGL_QUERY_RESULT_ARB = 34918
MGL_SHADER_OBJECT_ARB = 35656
MGL_LINE_SMOOTH_HINT = 3154
MGL_SIGNED_INTENSITY_NV = 34567
MGL_OUTPUT_TEXTURE_COORD24_EXT = 34741
MGL_OBJECT_SHADER_SOURCE_LENGTH_ARB = 35720
MGL_CURRENT_RASTER_DISTANCE = 2825
MGL_POINT_SMOOTH_HINT = 3153
MGL_OUTPUT_TEXTURE_COORD23_EXT = 34740
MGL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB = 35719
MGL_PERSPECTIVE_CORRECTION_HINT = 3152
MGL_MATRIX7 = 35015
MGL_COLOR_TABLE_BLUE_SIZE_EXT = 32988
MGL_NAME_STACK_DEPTH = 3440
MGL_OBJECT_ACTIVE_UNIFORMS_ARB = 35718
MGL_ALPHA16 = 32830
MGL_RENDER_MODE = 3136
MGL_STENCIL_VALUE_MASK = 2963
MGL_COLOR_TABLE_GREEN_SIZE_EXT = 32987
MGL_TEXTURE_COMPRESSION_HINT_ARB = 34031
MGL_REPLACE = 7681
MGL_STEREO = 3123
MGL_TEXTURE27 = 34011
MGL_COMBINE_ALPHA = 34162
MGL_OUTPUT_TEXTURE_COORD20_EXT = 34737
MGL_OBJECT_INFO_LOG_LENGTH_ARB = 35716
MGL_INDEX_BITS = 3409
MGL_DOUBLEBUFFER = 3122
MGL_OUTPUT_TEXTURE_COORD19_EXT = 34736
MGL_PIXEL_MAP_I_TO_I_SIZE = 3248
MGL_OBJECT_VALIDATE_STATUS_ARB = 35715
kMGLext_texture_compression = 10
MGL_RGBA_MODE = 3121
MGL_EYE_LINEAR = 9216
MGL_COLOR_TABLE_FORMAT_EXT = 32984
MGL_INDEX_OFFSET = 3347
MGL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV = 34920
MGL_OBJECT_LINK_STATUS_ARB = 35714
MGL_CURRENT_RASTER_POSITION_VALID = 2824
MGL_COLOR_TABLE_WIDTH_EXT = 32985
MGL_INDEX_MODE = 3120
MGL_COLOR_ARRAY_STRIDE_EXT = 32899
MGL_T4F_C4F_N3F_V4F = 10797
MGL_X_EXT = 34773
MGL_OBJECT_COMPILE_STATUS_ARB = 35713
MGL_COLOR_WRITEMASK = 3107
MGL_MATRIX6 = 35014
MGL_T2F_C4F_N3F_V3F = 10796
MGL_OBJECT_DELETE_STATUS_ARB = 35712
MGL_UNPACK_IMAGE_HEIGHT_EXT = 32878
MGL_PROGRAM_RESIDENT_NV = 34375
MGL_COLOR_CLEAR_VALUE = 3106
MGL_OUTPUT_TEXTURE_COORD15_EXT = 34732
MGL_MAX_VARYING_FLOATS_ARB = 35659
MGL_OBJECT_SUBTYPE_ARB = 35663
MGL_CLAMP_VERTEX_COLOR = 35098
MGL_WEIGHT_ARRAY_BUFFER_BINDING_ARB = 34974
MGL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV = 34080
MGL_TEXTURE26 = 34010
MGL_OUTPUT_TEXTURE_COORD14_EXT = 34731
MGL_LINE_WIDTH = 2849
MGL_TEXTURE10_ARB = 33994
MGL_OBJECT_TYPE_ARB = 35662
MGL_SUBPIXEL_BITS = 3408
MGL_INDEX_CLEAR_VALUE = 3104
MGL_OUTPUT_TEXTURE_COORD13_EXT = 34730
MGL_PIXEL_MAP_A_TO_A = 3193
MGL_PROGRAM_OBJECT_ARB = 35648
MGL_SCISSOR_TEST = 3089
MGL_TEXTURE_ENV = 8960
kMGLext_NV_float_buffer = 47
MGL_OUTPUT_TEXTURE_COORD12_EXT = 34729
MGL_RENDERBUFFER_FREE_MEMORY_ATI = 34813
MGL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB = 34829
kMGLext_EXT_texture_filter_anisotropic = 58
MGL_SCISSOR_BOX = 3088
MGL_OUTPUT_TEXTURE_COORD11_EXT = 34728
MGL_2_BYTES = 5127
MGL_TEXTURE_CUBE_MAP_NEGATIVE_X = 34070
MGL_FIXED_ONLY = 35101
MGL_COMBINER5_NV = 34133
MGL_OUTPUT_TEXTURE_COORD10_EXT = 34727
MGL_TEXTURE_CUBE_MAP_POSITIVE_X = 34069
MGL_UNPACK_IMAGE_HEIGHT = 32878
MGL_DRAW_BUFFER = 3073
MGL_OUTPUT_TEXTURE_COORD9_EXT = 34726
MGL_COMPRESSED_RGB_ARB = 34029
MGL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX = 36939
MGL_CLAMP_FRAGMENT_COLOR = 35099
MGL_POLYGON = 9
MGL_OUTPUT_TEXTURE_COORD8_EXT = 34725
MGL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX = 36938
MGL_OPERAND2_RGB_EXT = 34194
kMGLext_blend_color = 21
MGL_COLOR_LOGIC_OP = 3058
MGL_OUTPUT_TEXTURE_COORD7_EXT = 34724
MGL_PIXEL_MAP_B_TO_B = 3192
MGL_TEXTURE_2D = 3553
MGL_REFLECTION_MAP = 34066
MGL_INDEX_LOGIC_OP = 3057
MGL_TEXTURE_ENV_COLOR = 8705
MGL_OUTPUT_TEXTURE_COORD6_EXT = 34723
MGL_EIGHTH_BIT_ATI = 32
MGL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB = 34828
MGL_LOGIC_OP_MODE = 3056
MGL_OUTPUT_TEXTURE_COORD5_EXT = 34722
MGL_MATRIX1_NV = 34353
MGL_MULTISAMPLE_BIT = 536870912
MGL_PROXY_TEXTURE_RECTANGLE = 34039
MGL_MAP_STENCIL = 3345
MGL_OUTPUT_TEXTURE_COORD4_EXT = 34721
MGL_SAMPLE_COVERAGE_INVERT = 32939
MGL_UNPACK_SKIP_IMAGES_EXT = 32877
MGL_RENDERBUFFER = 36161
MGL_MAX_MODELVIEW_STACK_DEPTH = 3382
MGL_VERTEX_SHADER_ARB = 35633
MGL_SAMPLE_COVERAGE_VALUE = 32938
MGL_FRAMEBUFFER = 36160
MGL_TEXTURE24 = 34008
MGL_MAX_ATTRIB_STACK_DEPTH = 3381
MGL_SAMPLES = 32937
MGL_OPERAND1_RGB_EXT = 34193
MGL_LUMINANCE_ALPHA16F = 34847
MGL_COMPRESSED_INTENSITY = 34028
MGL_OUTPUT_TEXTURE_COORD1_EXT = 34718
MGL_PIXEL_MAP_G_TO_G = 3191
MGL_SAMPLE_BUFFERS = 32936
MGL_POLYGON_OFFSET_FILL = 32823
kMGLext_NV_occlusion_query = 69
MGL_DEPTH_ATTACHMENT = 36096
MGL_TEXTURE_ENV_MODE = 8704
MGL_MAX_TEXTURE_SIZE = 3379
MGL_SAMPLE_COVERAGE = 32928
MGL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB = 34827
MGL_COLOR_ATTACHMENT15 = 36079
MGL_OUTPUT_COLOR1_EXT = 34716
MGL_UNSIGNED_INT = 5125
MGL_SAMPLE_ALPHA_TO_ONE = 32927
MGL_ALPHA16F = 34844
MGL_SAMPLES_ARB = 32937
MGL_CLAMP_TO_EDGE = 33071
MGL_OUTPUT_COLOR0_EXT = 34715
MGL_SAMPLE_ALPHA_TO_COVERAGE = 32926
MGL_UNPACK_SKIP_IMAGES = 32877
MGL_COLOR_ATTACHMENT13 = 36077
MGL_MAX_EVAL_ORDER = 3376
MGL_FLOAT_MAT4_ARB = 35676
MGL_MULTISAMPLE = 32925
kMGLext_MGLX_choose_fbconfig = 83
MGL_QUADS = 7
MGL_DEPTH_BIAS = 3359
MGL_TRANSPOSE_COLOR_MATRIX = 34022
MGL_OPERAND0_RGB_EXT = 34192
MGL_COLOR_ATTACHMENT11 = 36075
MGL_DEPTH_SCALE = 3358
MGL_PIXEL_COUNT_NV = 34918
MGL_INVARIANT_VALUE_EXT = 34794
MGL_LUMINANCE32F = 34840
MGL_SIGNED_LUMINANCE8_NV = 34562
MGL_ALPHA_BIAS = 3357
MGL_TRANSPOSE_PROJECTION_MATRIX = 34020
MGL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 34826
MGL_FUNC_REVERSE_SUBTRACT = 32779
MGL_COLOR_ATTACHMENT9 = 36073
MGL_ALPHA_SCALE = 3356
MGL_MAX_TRACK_MATRICES_NV = 34351
MGL_TRANSPOSE_MODELVIEW_MATRIX = 34019
kMGLext_ATI_pixel_format_float = 46
MGL_ALPHA32F = 34838
MGL_COMBINER2_NV = 34130
MGL_BLUE_BIAS = 3355
kMGLext_SGIX_depth_texture = 35
MGL_MAX_TEXTURE_UNITS = 34018
MGL_COLOR_ATTACHMENT7 = 36071
MGL_BLUE_SCALE = 3354
MGL_FLOAT_MAT3_ARB = 35675
MGL_CLIENT_ACTIVE_TEXTURE = 34017
MGL_COLOR_ATTACHMENT6 = 36070
MGL_TEXTURE22 = 34006
MGL_COMBINE_RGB = 34161
MGL_GREEN_BIAS = 3353
MGL_T2F_V3F = 10791
MGL_COLOR_ATTACHMENT5 = 36069
MGL_GREEN_SCALE = 3352
MGL_PROGRAM_PARAMETERS = 34984
MGL_TEXTURE31 = 34015
MGL_COLOR_ATTACHMENT4 = 36068
MGL_SIGNED_LUMINANCE_NV = 34561
MGL_ZOOM_Y = 3351
MGL_MVP_MATRIX_EXT = 34787
MGL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 34825
MGL_TEXTURE_INTENSITY_TYPE = 35861
MGL_COLOR_ATTACHMENT3 = 36067
MGL_ZOOM_X = 3350
MGL_UNSIGNED_SHORT = 5123
MGL_VERTEX_SHADER_OPTIMIZED_EXT = 34772
MGL_CURRENT_VERTEX_EXT = 34786
MGL_COLOR_ATTACHMENT2 = 36066
MGL_PACK_SKIP_PIXELS = 3332
MGL_TRANSPOSE_TEXTURE_MATRIX = 34021
MGL_RED_BIAS = 3349
MGL_FULL_RANGE_EXT = 34785
MGL_COLOR_ATTACHMENT1 = 36065
MGL_RED_SCALE = 3348
MGL_COMPRESSED_ALPHA_ARB = 34025
MGL_NORMALIZED_RANGE_EXT = 34784
MGL_COLOR_ATTACHMENT0 = 36064
MGL_TEXTURE21 = 34005
MGL_COMBINER6_NV = 34134
MGL_TEXTURE9_ARB = 33993
MGL_NEGATIVE_ONE_EXT = 34783
MGL_SOURCE1_ALPHA_EXT = 34185
MGL_MAX_COLOR_ATTACHMENTS = 36063
MGL_INDEX_SHIFT = 3346
MGL_OUTPUT_TEXTURE_COORD18_EXT = 34735
MGL_ONE_EXT = 34782
MGL_FRAMEBUFFER_UNSUPPORTED = 36061
MGL_SIGNED_RGB8_NV = 34559
MGL_COMBINER4_NV = 34132
MGL_BIAS_BIT_ATI = 8
MGL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 34824
kMGLext_EXT_vertex_shader = 57
MGL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER = 36060
MGL_COMBINER3_NV = 34131
MGL_MATRIX_EXT = 34752
MGL_NEGATIVE_W_EXT = 34780
MGL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = 36059
MGL_COMBINER0_NV = 34128
MGL_PACK_ALIGNMENT = 3333
MGL_NEGATIVE_Z_EXT = 34779
MGL_FRAMEBUFFER_INCOMPLETE_FORMATS = 36058
MGL_COMBINER1_NV = 34129
MGL_VERTEX_WEIGHT_ARRAY_POINTER_EXT = 34064
MGL_NEGATIVE_Y_EXT = 34778
MGL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 36057
MGL_NEGATIVE_X_EXT = 34777
MGL_PACK_SKIP_ROWS = 3331
MGL_8X_BIT_ATI = 4
MGL_MATRIX25 = 35033
kMGLext_imaging_subset = 20
MGL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT = 36056
MGL_PACK_ROW_LENGTH = 3330
MGL_VERTEX_ARRAY_STRIDE_EXT = 32892
MGL_TEXTURE19 = 34003
MGL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 36055
MGL_R = 8194
MGL_NUM_GENERAL_COMBINERS_NV = 34126
MGL_TEXTURE18 = 34002
MGL_PROGRAM_TEX_INDIRECTIONS_ARB = 34823
MGL_MAX_GENERAL_COMBINERS_NV = 34125
MGL_UNSIGNED_BYTE = 5121
MGL_2X_BIT_ATI = 1
MGL_FRAMEBUFFER_COMPLETE = 36053
MGL_COLOR_SUM_CLAMP_NV = 34127
MGL_COMBINER_SUM_OUTPUT_NV = 34124
MGL_FALSE = 0
MGL_VENDOR = 7936
MGL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET = 36052
MGL_COMBINER_CD_OUTPUT_NV = 34123
MGL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT = 34063
MGL_CLIENT_ALL_ATTRIB_BITS = -1
MGL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 36051
MGL_LINE_STRIP = 3
MGL_COMBINER_AB_OUTPUT_NV = 34122
MGL_VERTEX_SHADER_LOCALS_EXT = 34771
MGL_C3F_V3F = 10788
MGL_DOT3_RGBA = 34479
MGL_COMBINER_BIAS_NV = 34121
MGL_VERTEX_ARRAY_TYPE_EXT = 32891
MGL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 34770
kMGLext_frame_buffer_object = 74
MGL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 36049
MGL_T = 8193
MGL_COMBINER_SCALE_NV = 34120
MGL_PROXY_TEXTURE_CUBE_MAP_ARB = 34075
MGL_VERTEX_SHADER_INVARIANTS_EXT = 34769
MGL_AND_INVERTED = 5380
MGL_PREVIOUS = 34168
MGL_TEXTURE24_ARB = 34008
MGL_COMBINER_MUX_SUM_NV = 34119
MGL_PHONG_HINT_WIN = 33003
MGL_COMPRESSED_RGBA_S3TC_DXT3_EXT = 33778
MGL_VERTEX_SHADER_VARIANTS_EXT = 34768
MGL_PRIMARY_COLOR = 34167
MGL_PACK_LSB_FIRST = 3329
MGL_COMBINER_CD_DOT_PRODUCT_NV = 34118
MGL_VERTEX_SHADER_INSTRUCTIONS_EXT = 34767
MGL_FRAMEBUFFER_BINDING = 36006
MGL_TEXTURE_SHADER_NV = 34526
MGL_TEXTURE25 = 34009
MGL_COMBINER_AB_DOT_PRODUCT_NV = 34117
MGL_VERTEX_WEIGHT_ARRAY_TYPE_EXT = 34062
MGL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT = 34766
MGL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT = 35983
MGL_MAX_RENDERBUFFER_SIZE = 34024
MGL_4X_BIT_ATI = 2
MGL_COMBINER_COMPONENT_USAGE_NV = 34116
MGL_MODELVIEW_MATRIX1_EXT = 34054
MGL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 34765
MGL_MATRIX23 = 35031
MGL_MATRIX31 = 35039
MGL_INVALID_FRAMEBUFFER_OPERATION = 1286
MGL_COMBINER_MAPPING_NV = 34115
MGL_VERTEX_ARRAY_SIZE_EXT = 32890
MGL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT = 34764
MGL_ADD_SIGNED = 34164
MGL_SIGNED_RGBA_NV = 34555
MGL_PIXEL_MAP_I_TO_A_SIZE = 3253
MGL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT = 34763
MGL_REG_1_ATI = 35106
MGL_RGB_SCALE = 34163
MGL_BIAS_BY_NEGATIVE_ONE_HALF_NV = 34113
MGL_OUTPUT_FOG_EXT = 34749
MGL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT = 34762
kMGLext_ARB_fragment_program_shadow = 45
MGL_OPERAND2_ALPHA = 34202
MGL_PACK_SWAP_BYTES = 3328
MGL_SCALE_BY_ONE_HALF_NV = 34112
MGL_MAX_VERTEX_SHADER_LOCALS_EXT = 34761
MGL_OPERAND1_ALPHA = 34201
MGL_SCALE_BY_FOUR_NV = 34111
MGL_VERTEX_WEIGHT_ARRAY_SIZE_EXT = 34061
MGL_MAP2_GRID_DOMAIN = 3538
MGL_OPERAND0_ALPHA = 34200
MGL_TEXTURE17 = 34001
MGL_SCALE_BY_TWO_NV = 34110
MGL_SUBTRACT = 34023
MGL_MAP1_GRID_SEGMENTS = 3537
MGL_OPERAND2_RGB = 34194
MGL_SIGNED_NEGATE_NV = 34109
MGL_MAX_PROGRAM_NATIVE_INSTRUCTIONS = 34979
MGL_MAX_VERTEX_SHADER_VARIANTS_EXT = 34758
MGL_DEPTH = 6145
MGL_OPERAND1_RGB = 34193
MGL_EXTENSIONS = 7939
MGL_SIGNED_IDENTITY_NV = 34108
MGL_MAP2_VERTEX_4 = 3512
MGL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX = 36936
MGL_OPERAND0_RGB = 34192
MGL_HALF_BIAS_NEGATE_NV = 34107
MGL_COLOR_INDEX16_EXT = 32999
MGL_MAP2_VERTEX_3 = 3511
MGL_SOURCE2_ALPHA = 34186
MGL_UNPACK_ALIGNMENT = 3317
MGL_HALF_BIAS_NORMAL_NV = 34106
MGL_LOCAL_CONSTANT_EXT = 34755
MGL_LIGHTING_BIT = 64
MGL_EXPAND_NEGATE_NV = 34105
MGL_CULL_MODES_NV = 34528
MGL_INVARIANT_EXT = 34754
MGL_SOURCE0_ALPHA = 34184
MGL_TEXTURE22_ARB = 34006
MGL_EXPAND_NORMAL_NV = 34104
MGL_TEXTURE8_ARB = 33992
MGL_MAP2_TEXTURE_COORD_2 = 3508
MGL_SOURCE2_RGB = 34178
MGL_UNSIGNED_INVERT_NV = 34103
MGL_TEXTURE_COORD_ARRAY_EXT = 32888
MGL_OUTPUT_TEXTURE_COORD17_EXT = 34734
MGL_MAP2_TEXTURE_COORD_1 = 3507
MGL_SOURCE1_RGB = 34177
MGL_ABGR_EXT = 32768
MGL_UNSIGNED_IDENTITY_NV = 34102
MGL_MAP2_NORMAL = 3506
MGL_FRAGMENT_SHADER_ATI = 35104
kMGLext_EXT_vertex_weighting = 56
MGL_SOURCE0_RGB = 34176
MGL_SPARE0_PLUS_SECONDARY_COLOR_NV = 34098
MGL_OUTPUT_TEXTURE_COORD30_EXT = 34747
MGL_MAP2_INDEX = 3505
MGL_MATRIX5 = 35013
MGL_CON_1_ATI = 35138
MGL_UNPACK_SKIP_PIXELS = 3316
MGL_E_TIMES_F_NV = 34097
MGL_REG_20_ATI = 35125
MGL_MAP2_COLOR_4 = 3504
MGL_HI_BIAS_NV = 34580
MGL_CON_0_ATI = 35137
MGL_ONE_MINUS_SRC_COLOR = 769
MGL_DISCARD_NV = 34096
MGL_CURRENT_VERTEX_WEIGHT_EXT = 34059
MGL_MAP1_VERTEX_4 = 3480
MGL_CON_4_ATI = 35141
MGL_COMBINE = 34160
MGL_TEXTURE21_ARB = 34005
MGL_SPARE1_NV = 34095
MGL_MAP1_VERTEX_3 = 3479
kMGLext_ARB_texture_rectangle = 19
MGL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT = 35968
MGL_REG_30_ATI = 35135
MGL_SPARE0_NV = 34094
MGL_MAX_PROGRAM_INSTRUCTIONS = 34977
MGL_MAP1_TEXTURE_COORD_4 = 3478
MGL_CLAMP_TO_BORDER = 33069
MGL_RENDERER = 7937
MGL_SECONDARY_COLOR_NV = 34093
MGL_MAP1_TEXTURE_COORD_3 = 3477
MGL_LOCAL_CONSTANT_DATATYPE_EXT = 34797
MGL_REG_28_ATI = 35133
MGL_PRIMARY_COLOR_NV = 34092
MGL_OUTPUT_TEXTURE_COORD29_EXT = 34746
MGL_MAP1_TEXTURE_COORD_2 = 3476
MGL_NUM_COMPRESSED_TEXTURE_FORMATS = 34466
MGL_UNPACK_SKIP_ROWS = 3315
kMGLext_ARB_half_float_pixel = 42
MGL_CONSTANT_COLOR1_NV = 34091
MGL_MAP1_TEXTURE_COORD_1 = 3475
MGL_VIBRANCE_SCALE_NV = 34579
MGL_REG_26_ATI = 35131
MGL_INT_VEC2_ARB = 35667
MGL_MAP1_NORMAL = 3474
MGL_REG_25_ATI = 35130
MGL_TEXTURE20_ARB = 34004
MGL_SAMPLE_COVERAGE_VALUE_ARB = 32938
MGL_PROGRAM_STRING_NV = 34344
MGL_LESS = 513
MGL_COLOR_ARRAY_EXT = 32886
MGL_MAP1_COLOR_4 = 3472
MGL_POLYGON_OFFSET_POINT = 10753
MGL_REG_23_ATI = 35128
MGL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 36050
MGL_MAP1_GRID_DOMAIN = 3536
MGL_AUTO_NORMAL = 3456
MGL_LOCAL_CONSTANT_VALUE_EXT = 34796
MGL_REG_22_ATI = 35127
MGL_COLOR_INDEX4_EXT = 32996
MGL_COMPRESSED_RGBA_S3TC_DXT1_EXT = 33777
MGL_ATTRIB_ARRAY_TYPE_NV = 34341
MGL_NUM_LOOPBACK_COMPONENTS_ATI = 35188
MGL_REG_21_ATI = 35126
MGL_UNPACK_ROW_LENGTH = 3314
MGL_DOT3_RGB = 34478
MGL_ACCUM_ALPHA_BITS = 3419
MGL_MAGNITUDE_SCALE_NV = 34578
MGL_T2F_C4UB_V3F = 10793
MGL_COMPRESSED_LUMINANCE_ALPHA = 34027
MGL_MODELVIEW0_EXT = 5888
MGL_ACCUM_BLUE_BITS = 3418
MGL_KEEP = 7680
MGL_TEXTURE_1D_BINDING = 32872
MGL_TRANSFORM_FEEDBACK_BUFFER_EXT = 35982
MGL_LOAD = 257
MGL_TEXTURE19_ARB = 34003
MGL_DRAW_FRAMEBUFFER = 36009
MGL_MODELVIEW0_MATRIX_EXT = 2982
MGL_ACCUM_GREEN_BITS = 3417
MGL_MAX_PROGRAM_NATIVE_PARAMETERS = 34987
MGL_MATRIX30 = 35038
MGL_REG_18_ATI = 35123
MGL_READ_FRAMEBUFFER = 36008
MGL_PROGRAM_BINDING = 34423
MGL_VARIANT_ARRAY_POINTER_EXT = 34793
MGL_ACCUM_RED_BITS = 3416
MGL_REG_17_ATI = 35122
MGL_DECR = 7683
MGL_CULL_FRAGMENT_NV = 34535
MGL_RENDERBUFFER_STENCIL_SIZE = 36181
MGL_STENCIL_BITS = 3415
MGL_INVARIANT_DATATYPE_EXT = 34795
MGL_PROXY_TEXTURE_CUBE_MAP = 34075
MGL_RENDERBUFFER_HEIGHT = 36163
MGL_RENDERBUFFER_DEPTH_SIZE = 36180
MGL_COLOR_INDEX2_EXT = 32995
MGL_DEPTH_BITS = 3414
kMGLext_ARB_color_buffer_float = 44
MGL_REG_15_ATI = 35120
MGL_UNPACK_LSB_FIRST = 3313
MGL_RENDERBUFFER_ALPHA_SIZE = 36179
MGL_ALPHA_BITS = 3413
MGL_DITHER = 3024
MGL_REG_14_ATI = 35119
MGL_RENDERBUFFER_BLUE_SIZE = 36178
MGL_DSDT_MAG_INTENSITY_NV = 34524
MGL_BLUE_BITS = 3412
MGL_REG_13_ATI = 35118
MGL_RIGHT = 1031
MGL_PROXY_TEXTURE_3D = 32880
MGL_GREEN_BITS = 3411
MGL_REG_12_ATI = 35117
MGL_RENDERBUFFER_RED_SIZE = 36176
MGL_VERTEX_ARRAY_EXT = 32884
MGL_OPERAND2_ALPHA_EXT = 34202
MGL_REG_11_ATI = 35116
MGL_DSDT_NV = 34549
MGL_STENCIL_INDEX16 = 36169
MGL_MAP_COLOR = 3344
MGL_MAX_TEXTURE_IMAGE_UNITS_NV = 34930
MGL_OPERAND1_ALPHA_EXT = 34201
MGL_MAX_TEXTURE_COORDS_NV = 34929
MGL_REG_10_ATI = 35115
MGL_LINE_WIDTH_RANGE = 2850
MGL_STENCIL_INDEX8 = 36168
MGL_OUTPUT_TEXTURE_COORD26_EXT = 34743
MGL_NORMAL_ARRAY_COUNT_EXT = 32896
MGL_OPERAND0_ALPHA_EXT = 34200
MGL_REG_9_ATI = 35114
MGL_UNPACK_SWAP_BYTES = 3312
MGL_STENCIL_INDEX4 = 36167
MGL_MAX_CLIENT_ATTRIB_STACK_DEPTH = 3387
MGL_ALPHA_TEST_REF = 3010
MGL_REG_8_ATI = 35113
MGL_STENCIL_INDEX1 = 36166
MGL_UNSIGNED_INT_S8_S8_8_8_REV_NV = 34523
MGL_MAX_VIEWPORT_DIMS = 3386
MGL_TEXTURE_DEPTH = 32881
MGL_REG_7_ATI = 35112
MGL_TEXTURE17_ARB = 34001
MGL_RENDERBUFFER_INTERNAL_FORMAT = 36164
MGL_TEXTURE7_ARB = 33991
MGL_MAX_TEXTURE_STACK_DEPTH = 3385
MGL_REG_6_ATI = 35111
MGL_PACK_IMAGE_HEIGHT_EXT = 32876
MGL_MAX_3D_TEXTURE_SIZE_EXT = 32883
kMGLext_texture_env_add = 12
MGL_SOURCE2_ALPHA_EXT = 34186
kMGLext_WMGL_NV_allocate_memory = 81
MGL_REG_5_ATI = 35110
MGL_RENDERBUFFER_BINDING = 36007
MGL_PACK_IMAGE_HEIGHT = 32876
MGL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT = 35979
kMGLext_EXT_fog_coord = 55
MGL_REG_4_ATI = 35109
MGL_PACK_SKIP_IMAGES_EXT = 32875
MGL_OUTPUT_TEXTURE_COORD25_EXT = 34742
MGL_SOURCE0_ALPHA_EXT = 34184
MGL_NOOP = 5381
MGL_PIXEL_MAP_A_TO_A_SIZE = 3257
MGL_PACK_SKIP_IMAGES = 32875
MGL_TEXTURE_COMPARE_FAIL_VALUE_ARB = 32959
MGL_REG_19_ATI = 35124
MGL_SOURCE2_RGB_EXT = 34178
MGL_LO_SCALE_NV = 34575
MGL_REG_2_ATI = 35107
MGL_RESCALE_NORMAL_EXT = 32826
MGL_UNSIGNED_INT_S8_S8_8_8_NV = 34522
MGL_SOURCE1_RGB_EXT = 34177
MGL_COPY = 5379
MGL_TEXTURE16_ARB = 34000
MGL_UNSIGNED_INT_10_10_10_2_EXT = 32822
MGL_SOURCE0_RGB_EXT = 34176
kMGLext_ARB_texture_non_power_of_two = 18
MGL_AND_REVERSE = 5378
MGL_UNSIGNED_INT_8_8_8_8_EXT = 32821
MGL_VARIABLE_G_NV = 34089
MGL_PREVIOUS_EXT = 34168
MGL_AND = 5377
MGL_CONSTANT = 34166
MGL_UNSIGNED_SHORT_5_5_5_1_EXT = 32820
MGL_ZERO_EXT = 34781
MGL_PRIMARY_COLOR_EXT = 34167
MGL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT = 35978
MGL_CLEAR = 5376
MGL_UNSIGNED_SHORT_4_4_4_4_EXT = 32819
MGL_COLOR_TABLE_LUMINANCE_SIZE_EXT = 32990
MGL_CONSTANT_EXT = 34166
MGL_COMPILE_AND_EXECUTE = 4865
MGL_PIXEL_MAP_B_TO_B_SIZE = 3256
MGL_UNSIGNED_BYTE_3_3_2_EXT = 32818
MGL_INTERPOLATE_EXT = 34165
MGL_SECONDARY_INTERPOLATOR_ATI = 35181
MGL_VERTEX_ARRAY_RANGE_POINTER_NV = 34081
MGL_COMPILE = 4864
MGL_FUNC_REVERSE_SUBTRACT_EXT = 32779
MGL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV = 34521
MGL_ADD_SIGNED_EXT = 34164
MGL_VERTEX_WEIGHTING_EXT = 34057
MGL_QUADRATIC_ATTENUATION = 4617
MGL_FRONT = 1028
MGL_NUM_FRAGMENT_CONSTANTS_ATI = 35183
MGL_RGB_SCALE_EXT = 34163
MGL_LINEAR_ATTENUATION = 4616
MGL_NUM_FRAGMENT_REGISTERS_ATI = 35182
MGL_TEXTURE_WRAP_R_EXT = 32882
MGL_COMBINE_ALPHA_EXT = 34162
kMGLext_texture_env_dot3 = 14
kMGLext_NV_vertex_array_range = 66
MGL_CONSTANT_ATTENUATION = 4615
MGL_FUNC_SUBTRACT = 32778
MGL_COMBINE_RGB_EXT = 34161
MGL_RASTERIZER_DISCARD_EXT = 35977
MGL_SPOT_CUTOFF = 4614
MGL_TEXTURE_COMPARE_FUNC_ARB = 34893
MGL_BLEND_EQUATION_EXT = 32777
MGL_COLOR_TABLE_ALPHA_SIZE_EXT = 32989
MGL_COMBINE_EXT = 34160
MGL_VERTEX_ATTRIB_ARRAY4_NV = 34388
MGL_SPOT_EXPONENT = 4613
MGL_PIXEL_MAP_G_TO_G_SIZE = 3255
MGL_CND0_ATI = 35179
MGL_EMBOSS_MAP_NV = 34143
MGL_DOT2_ADD_ATI = 35180
MGL_T4F_V4F = 10792
MGL_TEXTURE23 = 34007
MGL_MAX_EXT = 32776
MGL_COLOR_INDEXES = 5635
MGL_EMBOSS_CONSTANT_NV = 34142
MGL_POSITION = 4611
MGL_BACK_RIGHT = 1027
kMGLext_WMGL_ARB_render_texture = 80
MGL_MAX = 32776
MGL_EMBOSS_LIGHT_NV = 34141
MGL_SPECULAR = 4610
MGL_MAD_ATI = 35176
MGL_VARIABLE_E_NV = 34087
MGL_VARIANT_ARRAY_EXT = 34792
MGL_PRIMITIVE_RESTART_INDEX_NV = 34137
MGL_DIFFUSE = 4609
MGL_INTERPOLATE = 34165
MGL_TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074
MGL_MIN = 32775
MGL_PRIMITIVE_RESTART_NV = 34136
MGL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT = 35976
MGL_AMBIENT = 4608
MGL_FUNC_ADD_EXT = 32774
MGL_OUTPUT_TEXTURE_COORD22_EXT = 34739
MGL_COMBINER7_NV = 34135
MGL_LIGHT7 = 16391
MGL_PIXEL_MAP_R_TO_R_SIZE = 3254
MGL_FUNC_ADD = 32774
MGL_BLEND_EQUATION = 32777
MGL_LIGHT6 = 16390
MGL_BLEND_COLOR_EXT = 32773
MGL_MAP2_VERTEX_ATTRIB14_4_NV = 34430
MGL_LIGHT5 = 16389
MGL_TEXTURE13_ARB = 33997
MGL_ADD_ATI = 35171
MGL_LIGHT4 = 16388
MGL_MOV_ATI = 35169
MGL_VARIABLE_D_NV = 34086
MGL_TRIANGLE_FAN = 6
MGL_LIGHT3 = 16387
kMGLext_SGIS_generate_mipmap = 73
MGL_CON_31_ATI = 35168
MGL_SPOT_DIRECTION = 4612
MGL_CON_30_ATI = 35167
MGL_OUTPUT_TEXTURE_COORD21_EXT = 34738
MGL_NORMAL_ARRAY_STRIDE_EXT = 32895
kMGLext_blend_subtract = 23
MGL_LIGHT1 = 16385
MGL_PROGRAM_NATIVE_ADDRESS_REGISTERS = 34994
MGL_CON_29_ATI = 35166
MGL_CND_ATI = 35178
MGL_LIGHT0 = 16384
kMGLext_NUMBER_OF_EXTENSIONS = 91
MGL_CON_28_ATI = 35165
MGL_SHININESS = 5633
MGL_TEXTURE_BINDING_RECTANGLE = 34038
MGL_FRONT_RIGHT = 1025
MGL_CON_27_ATI = 35164
MGL_TEXTURE6_ARB = 33990
MGL_TEXTURE_COORD_ARRAY_TYPE = 32905
MGL_FASTEST = 4353
MGL_CONSTANT_COLOR_EXT = 32769
MGL_VARIABLE_C_NV = 34085
MGL_DONT_CARE = 4352
MGL_CONSTANT_COLOR = 32769
MGL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT = 35973
kMGLext_EXT_secondary_color = 54
MGL_CON_24_ATI = 35161
MGL_FOG_COORDINATE_EXT = 33873
MGL_SAMPLE_COVERAGE_ARB = 32928
MGL_TEXTURE_BORDER_COLOR = 4100
MGL_TEXTURE_INTENSITY_SIZE = 32865
MGL_CON_23_ATI = 35160
MGL_TEXTURE_GEQUAL_R_SGIX = 33181
MGL_SAMPLE_ALPHA_TO_ONE_ARB = 32927
MGL_LERP_ATI = 35177
MGL_TEXTURE_INTERNAL_FORMAT = 4099
kMGLext_EXT_cull_vertex = 53
MGL_CON_22_ATI = 35159
MGL_EMISSION = 5632
MGL_SAMPLE_ALPHA_TO_COVERAGE_ARB = 32926
MGL_Z_EXT = 34775
MGL_TEXTURE_HEIGHT = 4097
MGL_TEXTURE11_ARB = 33995
MGL_CON_21_ATI = 35158
MGL_TEXTURE3_ARB = 33987
MGL_MULTISAMPLE_ARB = 32925
MGL_TEXTURE_COORD_ARRAY_SIZE = 32904
kMGLext_multi_draw_arrays = 17
MGL_TEXTURE_WIDTH = 4096
MGL_CON_20_ATI = 35157
MGL_VARIABLE_B_NV = 34084
MGL_EDGE_FLAG_ARRAY_POINTER_EXT = 32915
MGL_PROGRAM_ERROR_POSITION_NV = 34379
kMGLext_NV_transform_feedback = 71
MGL_CON_19_ATI = 35156
MGL_TEXTURE_COORD_ARRAY_POINTER_EXT = 32914
MGL_TRANSPOSE_PROJECTION_MATRIX_ARB = 34020
MGL_SELECTION_BUFFER_POINTER = 3571
MGL_CON_18_ATI = 35155
MGL_INDEX_ARRAY_POINTER_EXT = 32913
MGL_FEEDBACK_BUFFER_TYPE = 3570
MGL_TEXTURE_LUMINANCE_SIZE = 32864
MGL_CON_17_ATI = 35154
MGL_COLOR_ARRAY_POINTER_EXT = 32912
MGL_MIN_EXT = 32775
MGL_FEEDBACK_BUFFER_SIZE = 3569
MGL_CON_16_ATI = 35153
MGL_MAP2_VERTEX_ATTRIB11_4_NV = 34427
MGL_MAX_PROJECTION_STACK_DEPTH = 3384
MGL_CON_15_ATI = 35152
MGL_VERTEX_ARRAY_POINTER_EXT = 32910
MGL_INDEX_ARRAY_STRIDE = 32902
MGL_PROGRAM_TARGET_NV = 34374
MGL_CON_14_ATI = 35151
MGL_VARIABLE_A_NV = 34083
MGL_EDGE_FLAG_ARRAY_COUNT_EXT = 32909
kMGLext_NV_texture_shader = 65
MGL_ATTRIB_ARRAY_POINTER_NV = 34373
kMGLext_NV_primitive_restart = 70
MGL_CON_13_ATI = 35150
MGL_EDGE_FLAG_ARRAY_STRIDE_EXT = 32908
MGL_TRANSPOSE_MODELVIEW_MATRIX_ARB = 34019
MGL_PROGRAM_PARAMETER_NV = 34372
MGL_CON_12_ATI = 35149
MGL_COMPRESSED_RGBA_S3TC_DXT5_EXT = 33779
MGL_TEXTURE_COORD_ARRAY_COUNT_EXT = 32907
MGL_VERTEX_PROGRAM_TWO_SIDE_NV = 34371
MGL_TEXTURE_ALPHA_SIZE = 32863
MGL_SMOOTH = 7425
MGL_TEXTURE_COORD_ARRAY_STRIDE_EXT = 32906
MGL_DOT4_ATI = 35175
MGL_VERTEX_PROGRAM_POINT_SIZE_NV = 34370
MGL_CON_10_ATI = 35147
MGL_NAND = 5390
MGL_TEXTURE_COORD_ARRAY_TYPE_EXT = 32905
MGL_CURRENT_MATRIX_NV = 34369
MGL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 34760
kMGLext_WMGL_ARB_make_current_read = 79
MGL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 36048
MGL_CON_9_ATI = 35146
MGL_TEXTURE_COORD_ARRAY_SIZE_EXT = 32904
MGL_OP_RECIP_SQRT_EXT = 34709
MGL_CURRENT_MATRIX_STACK_DEPTH_NV = 34368
kMGLext_ATI_meminfo = 62
MGL_FEEDBACK = 7169
MGL_REGISTER_COMBINERS_NV = 34082
MGL_VARIANT_ARRAY_TYPE_EXT = 34791
MGL_INDEX_ARRAY_COUNT_EXT = 32903
MGL_CON_11_ATI = 35148
MGL_MATRIX7_NV = 34359
MGL_TEXTURE_CUBE_MAP_POSITIVE_Z = 34073
MGL_CON_7_ATI = 35144
MGL_PROGRAM_ATTRIBS = 34988
MGL_INDEX_ARRAY_STRIDE_EXT = 32902
MGL_TEXTURE_PRIORITY = 32870
MGL_MATRIX6_NV = 34358
MGL_VERTEX_ATTRIB_ARRAY13_NV = 34397
MGL_CON_6_ATI = 35143
MGL_INDEX_ARRAY_TYPE_EXT = 32901
MGL_CONSTANT_COLOR0_NV = 34090
MGL_MATRIX5_NV = 34357
MGL_TEXTURE_BLUE_SIZE = 32862
MGL_LINE = 6913
MGL_COLOR_ARRAY_COUNT_EXT = 32900
MGL_DOT3_ATI = 35174
MGL_MATRIX4_NV = 34356
MGL_POINT = 6912
MGL_MAP2_VERTEX_ATTRIB9_4_NV = 34425
MGL_MAX_PROGRAM_ATTRIBS = 34989
MGL_MATRIX3_NV = 34355
MGL_MAX_VERTEX_SHADER_INVARIANTS_EXT = 34759
MGL_BITMAP = 6656
MGL_COLOR_ARRAY_TYPE_EXT = 32898
MGL_OP_RECIP_EXT = 34708
kMGLext_WMGL_ARB_buffer_region = 76
MGL_MATRIX2_NV = 34354
MGL_LUMINANCE_ALPHA = 6410
MGL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV = 34099
MGL_COLOR_ARRAY_SIZE_EXT = 32897
MGL_TRIANGLE_STRIP = 5
MGL_FLOAT = 5126
kMGLext_NV_fragment_program = 68
MGL_LUMINANCE = 6409
MGL_PROGRAM_NATIVE_PARAMETERS = 34986
MGL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT = 35967
MGL_MATRIX0_NV = 34352
MGL_RGBA = 6408
MGL_OUTPUT_TEXTURE_COORD16_EXT = 34733
MGL_MAX_PROGRAM_PARAMETERS = 34985
MGL_INT = 5124
MGL_COLOR_ATTACHMENT12 = 36076
MGL_RGB = 6407
MGL_NORMAL_ARRAY_TYPE_EXT = 32894
MGL_SUB_ATI = 35173
MGL_MAX_TRACK_MATRIX_STACK_DEPTH_NV = 34350
kMGLext_MGLX_get_visual_from_fbconfig_sgix = 90
MGL_ALPHA = 6406
MGL_COPY_INVERTED = 5388
MGL_MAX_PROGRAM_NATIVE_TEMPORARIES = 34983
MGL_TEXTURE_RECTANGLE = 34037
MGL_INVERSE_TRANSPOSE_NV = 34349
MGL_BACK_PRIMARY_COLOR_NV = 35959
MGL_BLUE = 6405
MGL_TEXTURE5_ARB = 33989
MGL_PROGRAM_NATIVE_TEMPORARIES = 34982
MGL_COLOR_ARRAY_TYPE = 32898
MGL_TRANSPOSE_NV = 34348
MGL_GREEN = 6404
MGL_FUNC_SUBTRACT_EXT = 32778
MGL_MAX_PROGRAM_TEMPORARIES = 34981
MGL_BYTE = 5120
kMGLext_NV_vertex_program = 67
MGL_RED = 6403
MGL_PROGRAM_TEMPORARIES = 34980
MGL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT = 35958
MGL_IDENTITY_NV = 34346
MGL_DEPTH_COMPONENT = 6402
MGL_TEXTURE_BIT = 262144
MGL_EDGE_FLAG_ARRAY_EXT = 32889
MGL_DOT3_RGB_EXT = 34478
MGL_MATRIX2 = 35010
MGL_CLIP_PLANE4 = 12292
MGL_STENCIL_INDEX = 6401
MGL_TEXTURE_LEQUAL_R_SGIX = 33180
MGL_PROGRAM_NATIVE_INSTRUCTIONS = 34978
MGL_MUL_ATI = 35172
MGL_CLIP_PLANE3 = 12291
MGL_SHADER_OPERATION_NV = 34527
MGL_MAP2_VERTEX_ATTRIB7_4_NV = 34423
MGL_INDEX_ARRAY_EXT = 32887
MGL_CLIP_PLANE2 = 12290
MGL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT = 34757
MGL_STENCIL = 6146
MGL_PROGRAM_INSTRUCTIONS = 34976
MGL_OP_LOG_BASE_2_EXT = 34706
MGL_POLYGON_STIPPLE_BIT = 16
MGL_CLIP_PLANE1 = 12289
MGL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 35983
MGL_SHADER_CONSISTENT_NV = 34525
MGL_INDEX_WRITEMASK = 3105
MGL_NORMAL_ARRAY_EXT = 32885
MGL_PROGRAM_LENGTH = 34343
MGL_CLIP_PLANE0 = 12288
MGL_DEPENDENT_AR_TEXTURE_2D_NV = 34537
MGL_COLOR = 6144
MGL_PROGRAM_FORMAT = 34934
MGL_SRC_ALPHA_SATURATE = 776
MGL_TEXTURE = 5890
MGL_MIRRORED_REPEAT_IBM = 33648
MGL_FOG_BIT = 128
MGL_ONE_MINUS_DST_COLOR = 775
MGL_PROJECTION = 5889
MGL_MAX_3D_TEXTURE_SIZE = 32883
MGL_BLEND_COLOR = 32773
MGL_DST_COLOR = 774
MGL_MODELVIEW = 5888
MGL_MAP2_VERTEX_ATTRIB6_4_NV = 34422
MGL_CURRENT_VERTEX_ATTRIB = 34342
MGL_ONE_MINUS_DST_ALPHA = 773
MGL_LOCAL_EXT = 34756
MGL_MAP2_VERTEX_ATTRIB15_4_NV = 34431
MGL_COLOR_MATERIAL = 2903
MGL_TEXTURE_WRAP_R = 32882
MGL_OP_EXP_BASE_2_EXT = 34705
MGL_DST_ALPHA = 772
MGL_AMBIENT_AND_DIFFUSE = 5634
MGL_VERTEX_ARRAY_RANGE_VALID_NV = 34079
MGL_TEXTURE_DEPTH_EXT = 32881
MGL_ONE_MINUS_SRC_ALPHA = 771
MGL_OFFSET_TEXTURE_2D_NV = 34536
MGL_VERTEX_ATTRIB_ARRAY15_NV = 34399
MGL_MAP2_VERTEX_ATTRIB13_4_NV = 34429
MGL_VERTEX_ATTRIB_ARRAY_STRIDE = 34340
MGL_TRANSFORM_FEEDBACK_BUFFER_NV = 35982
MGL_SRC_ALPHA = 770
MGL_MAP2_VERTEX_ATTRIB12_4_NV = 34428
MGL_SEPARATE_SPECULAR_COLOR = 33274
MGL_VERTEX_ATTRIB_ARRAY_SIZE = 34339
MGL_NUM_INSTRUCTIONS_PER_PASS_ATI = 35185
MGL_FOG_COORDINATE_SOURCE_EXT = 33872
MGL_SHORT = 5122
MGL_SET = 5391
MGL_VERTEX_ATTRIB_ARRAY_ENABLED = 34338
MGL_ONE_MINUS_CONSTANT_ALPHA_EXT = 32772
MGL_SRC_COLOR = 768
MGL_C4F_N3F_V3F = 10790
MGL_MAP2_VERTEX_ATTRIB10_4_NV = 34426
MGL_EQUIV = 5385
MGL_PROGRAM_FORMAT_ASCII = 34933
MGL_SELECT = 7170
MGL_ALL_ATTRIB_BITS = 1048575
MGL_MAP2_TEXTURE_COORD_4 = 3510
kMGLext_WMGL_ARB_pixel_format = 78
MGL_OR_INVERTED = 5389
MGL_COLOR_SUM = 33880
MGL_OP_ROUND_EXT = 34704
MGL_SCISSOR_BIT = 524288
MGL_MAP2_VERTEX_ATTRIB8_4_NV = 34424
MGL_VARIANT_ARRAY_STRIDE_EXT = 34790
MGL_VERTEX_PROGRAM_TWO_SIDE = 34371
MGL_COMPRESSED_RGB_S3TC_DXT1_EXT = 33776
MGL_SOURCE1_ALPHA = 34185
MGL_TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072
MGL_OR_REVERSE = 5387
MGL_VERTEX_PROGRAM_POINT_SIZE = 34370
MGL_TEXTURE29_ARB = 34013
MGL_TEXTURE_2D_BINDING = 32873
MGL_LIST_BIT = 131072
MGL_VERTEX_ATTRIB_ARRAY12_NV = 34396
MGL_MATRIX18 = 35026
MGL_INVERT = 5386
MGL_HINT_BIT = 32768
MGL_VERTEX_PROGRAM = 34336
MGL_XOR = 5382
MGL_EVAL_BIT = 65536
MGL_MAP2_VERTEX_ATTRIB5_4_NV = 34421
MGL_TEXTURE27_ARB = 34011
MGL_SWIZZLE_STRQ_DQ_ATI = 35195
MGL_ONE_MINUS_CONSTANT_ALPHA = 32772
MGL_SINGLE_COLOR = 33273
| 15.47447
| 70
| 0.631603
| 15,994
| 148,199
| 5.468863
| 0.230837
| 0.096194
| 0.185506
| 0.218455
| 0.16894
| 0.092616
| 0.069213
| 0.064331
| 0.061347
| 0.048657
| 0
| 0.09127
| 0.294921
| 148,199
| 9,576
| 71
| 15.476086
| 0.745818
| 0.00359
| 0
| 0.329968
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.26638
| false
| 0.271321
| 0.000644
| 0
| 0.365628
| 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
| 0
| 0
|
0
| 4
|
a130203295c94aad6472e8fd99ae94fd8ce35199
| 207
|
py
|
Python
|
features/depth_of_field/test_depth_of_field.py
|
fanzhikang/relaxrender
|
39e040c9b2af716d80b4cd1941d7b6aa9e6ddc8b
|
[
"MIT"
] | null | null | null |
features/depth_of_field/test_depth_of_field.py
|
fanzhikang/relaxrender
|
39e040c9b2af716d80b4cd1941d7b6aa9e6ddc8b
|
[
"MIT"
] | null | null | null |
features/depth_of_field/test_depth_of_field.py
|
fanzhikang/relaxrender
|
39e040c9b2af716d80b4cd1941d7b6aa9e6ddc8b
|
[
"MIT"
] | null | null | null |
import unittest
from depth_of_field import DepthOfField
class TestDepthOfField(unittest.TestCase):
def testDepthOfField(self):
DepthOfField.DepthOfField(["./", "./depth_of_field/city.png"])
| 29.571429
| 70
| 0.748792
| 22
| 207
| 6.863636
| 0.636364
| 0.092715
| 0.15894
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140097
| 207
| 6
| 71
| 34.5
| 0.848315
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 0.120773
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 0
| 0.8
| 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
| 0
| 1
| 0
|
0
| 4
|
a13470edf5aeb14855d11dc1bef736fb4ad734d5
| 188
|
py
|
Python
|
datatrans/utils/classes/jsonenum.py
|
KooCook/datatrans
|
65c80da4d8a1ed67963b9d704b361c864cb1151b
|
[
"BSD-3-Clause"
] | 1
|
2020-10-24T04:07:42.000Z
|
2020-10-24T04:07:42.000Z
|
datatrans/utils/classes/jsonenum.py
|
KooCook/datatrans
|
65c80da4d8a1ed67963b9d704b361c864cb1151b
|
[
"BSD-3-Clause"
] | null | null | null |
datatrans/utils/classes/jsonenum.py
|
KooCook/datatrans
|
65c80da4d8a1ed67963b9d704b361c864cb1151b
|
[
"BSD-3-Clause"
] | null | null | null |
import enum
__all__ = ['JSONEnum']
class JSONEnum(enum.Enum):
""" JSON serializable enum (with default=utils.json_encoder). """
def json_serial(self):
return self.value
| 18.8
| 69
| 0.675532
| 23
| 188
| 5.26087
| 0.695652
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.196809
| 188
| 9
| 70
| 20.888889
| 0.801325
| 0.303191
| 0
| 0
| 0
| 0
| 0.065041
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
a14e14175f8e7d82c18776ebee4dd5cc7273cf81
| 41
|
py
|
Python
|
nasbench301/surrogate_models/bananas/bananas_src/bo/acq/__init__.py
|
Basvanstein/nasbench301
|
2984dec45c760d47762f50efe39b71e9d1ac22e0
|
[
"Apache-2.0"
] | 167
|
2019-10-26T19:54:49.000Z
|
2021-12-14T15:25:32.000Z
|
nasbench301/surrogate_models/bananas/bananas_src/bo/acq/__init__.py
|
Basvanstein/nasbench301
|
2984dec45c760d47762f50efe39b71e9d1ac22e0
|
[
"Apache-2.0"
] | 12
|
2020-11-07T12:50:19.000Z
|
2022-01-21T08:52:53.000Z
|
nasbench301/surrogate_models/bananas/bananas_src/bo/acq/__init__.py
|
Basvanstein/nasbench301
|
2984dec45c760d47762f50efe39b71e9d1ac22e0
|
[
"Apache-2.0"
] | 23
|
2019-10-28T12:26:32.000Z
|
2020-10-12T12:31:39.000Z
|
"""
Code for acquisition strategies.
"""
| 10.25
| 32
| 0.682927
| 4
| 41
| 7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.146341
| 41
| 3
| 33
| 13.666667
| 0.8
| 0.780488
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
a1655df0699e68a8fb02fc9eb25966c43af3b645
| 214
|
py
|
Python
|
python/7kyu/list_filtering.py
|
Sigmanificient/codewars
|
b34df4bf55460d312b7ddf121b46a707b549387a
|
[
"MIT"
] | 3
|
2021-06-08T01:57:13.000Z
|
2021-06-26T10:52:47.000Z
|
python/7kyu/list_filtering.py
|
Sigmanificient/codewars
|
b34df4bf55460d312b7ddf121b46a707b549387a
|
[
"MIT"
] | null | null | null |
python/7kyu/list_filtering.py
|
Sigmanificient/codewars
|
b34df4bf55460d312b7ddf121b46a707b549387a
|
[
"MIT"
] | 2
|
2021-06-10T21:20:13.000Z
|
2021-06-30T10:13:26.000Z
|
"""Kate url: https://www.codewars.com/kata/53dbd5315a3c69eed20002dd."""
from typing import List, Any
def filter_list(collection: List[Any]) -> List[int]:
return [x for x in collection if isinstance(x, int)]
| 26.75
| 71
| 0.719626
| 31
| 214
| 4.935484
| 0.741935
| 0.091503
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075676
| 0.135514
| 214
| 7
| 72
| 30.571429
| 0.751351
| 0.303738
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.333333
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
|
0
| 4
|
a177635fdfc43e940fea3ca609007a4ca2038d91
| 153
|
py
|
Python
|
pymaxpro_lite/__init__.py
|
yonghoonlee/pyMaxPro-lite
|
011a149e2424251645b31e7c290c7bb94646941b
|
[
"BSD-3-Clause"
] | 2
|
2021-11-17T14:57:24.000Z
|
2021-11-17T14:57:27.000Z
|
pymaxpro_lite/__init__.py
|
yonghoonlee/pyMaxPro_lite
|
011a149e2424251645b31e7c290c7bb94646941b
|
[
"BSD-3-Clause"
] | null | null | null |
pymaxpro_lite/__init__.py
|
yonghoonlee/pyMaxPro_lite
|
011a149e2424251645b31e7c290c7bb94646941b
|
[
"BSD-3-Clause"
] | null | null | null |
from .__about__ import (
__title__, __description__, __version__, __author__, __uri__, __license__
)
from pymaxpro_lite.maxpro import maxpro_design
| 25.5
| 77
| 0.810458
| 16
| 153
| 5.875
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130719
| 153
| 5
| 78
| 30.6
| 0.706767
| 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 | 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
| 4
|
a19402c8b0aaef6ccbf969c24566c335a0639f23
| 5,825
|
py
|
Python
|
leetcode-solutions/python/lru_cache.py
|
saruberoz/leetcode-oj
|
3b34bcb7f3d8c3eaaf3bae3ed2a2578d33f37cbb
|
[
"MIT"
] | 1
|
2019-05-09T08:09:39.000Z
|
2019-05-09T08:09:39.000Z
|
leetcode-solutions/python/lru_cache.py
|
saruberoz/leetcode-oj
|
3b34bcb7f3d8c3eaaf3bae3ed2a2578d33f37cbb
|
[
"MIT"
] | null | null | null |
leetcode-solutions/python/lru_cache.py
|
saruberoz/leetcode-oj
|
3b34bcb7f3d8c3eaaf3bae3ed2a2578d33f37cbb
|
[
"MIT"
] | null | null | null |
# https://oj.leetcode.com/problems/lru-cache/
# 17 / 17 test cases passed.
# Design and implement a data structure for Least Recently Used (LRU) cache.
# It should support the following operations: get and set.
#
# get(key) - Get the value (will always be positive) of the key
# if the key exists in the cache, otherwise return -1.
# set(key, value) - Set or insert the value if the key is not already present.
# When the cache reached its capacity, it should invalidate the least recently
# used item before inserting a new item.
class LRUCache:
def __init__(self, capacity):
''' Initialize the cache
@param capacity, an integer
'''
self.max_capacity = capacity
self.count = 0
self.cache = {}
self.history = []
def get(self, key):
''' Get cache value using key
@return an integer
'''
if self.cache.has_key(key):
self.history.remove(key)
self.history.append(key)
return self.cache[key]
return -1
def set(self, key, value):
''' Set cache value
@param key, an integer
@param value, an integer
@return nothing
'''
# not found
if self.get(key) == -1:
if self.count == self.max_capacity:
# if full delete first
del self.cache[self.history.pop(0)]
self.cache[key] = value
self.history.append(key)
else:
self.cache[key] = value
self.history.append(key)
self.count += 1
else:
# already there, just change the val
self.cache[key] = value
def print_all(self):
''' For debugging purpose '''
print self.cache
print self.history
if __name__ == '__main__':
# test
lru_cache = LRUCache(3)
lru_cache.set(1,1)
lru_cache.set(2,2)
lru_cache.set(3,3)
lru_cache.set(4,4)
assert lru_cache.get(4) == 4
assert lru_cache.get(3) == 3
assert lru_cache.get(2) == 2
assert lru_cache.get(1) == -1
lru_cache.set(5,5)
assert lru_cache.get(1) == -1
assert lru_cache.get(2) == 2
assert lru_cache.get(3) == 3
assert lru_cache.get(4) == -1
assert lru_cache.get(5) == 5
# # test
lru_cache = LRUCache(2)
lru_cache.set(2,1)
lru_cache.set(2,2)
result = lru_cache.get(2)
lru_cache.set(1,1)
lru_cache.set(4,1)
result = lru_cache.get(2)
# # test first
lru_cache = LRUCache(2)
lru_cache.set(2,1)
lru_cache.set(1,1)
assert lru_cache.get(2) == 1
lru_cache.set(4,1)
assert lru_cache.get(1) == -1
assert lru_cache.get(2) == 1
# test second
lru_cache = LRUCache(1)
lru_cache.set(2, 1)
assert lru_cache.get(2) == 1
lru_cache.set(3, 2)
assert lru_cache.get(2) == -1
assert lru_cache.get(3) == 2
# test third
lru_cache = LRUCache(10)
lru_cache.set(10,13)
lru_cache.set(3,17)
lru_cache.set(6,11)
lru_cache.set(10,5)
lru_cache.set(9,10)
result = lru_cache.get(13)
lru_cache.set(2,19)
result = lru_cache.get(2)
result = lru_cache.get(3)
lru_cache.set(5,25)
result = lru_cache.get(8)
lru_cache.set(9,22)
lru_cache.set(5,5)
lru_cache.set(1,30)
result = lru_cache.get(11)
lru_cache.set(9,12)
result = lru_cache.get(7)
result = lru_cache.get(5)
result = lru_cache.get(8)
result = lru_cache.get(9)
lru_cache.set(4,30)
lru_cache.set(9,3)
result = lru_cache.get(9)
result = lru_cache.get(10)
result = lru_cache.get(10)
lru_cache.set(6,14)
lru_cache.set(3,1)
result = lru_cache.get(3)
lru_cache.set(10,11)
result = lru_cache.get(8)
lru_cache.set(2,14)
result = lru_cache.get(1)
result = lru_cache.get(5)
result = lru_cache.get(4)
lru_cache.set(11,4)
lru_cache.set(12,24)
lru_cache.set(5,18)
result = lru_cache.get(13)
lru_cache.set(7,23)
result = lru_cache.get(8)
result = lru_cache.get(12)
lru_cache.set(3,27)
lru_cache.set(2,12)
result = lru_cache.get(5)
lru_cache.set(2,9)
lru_cache.set(13,4)
lru_cache.set(8,18)
lru_cache.set(1,7)
result = lru_cache.get(6)
lru_cache.set(9,29)
lru_cache.set(8,21)
result = lru_cache.get(5)
lru_cache.set(6,30)
lru_cache.set(1,12)
result = lru_cache.get(10)
lru_cache.set(4,15)
lru_cache.set(7,22)
lru_cache.set(11,26)
lru_cache.set(8,17)
lru_cache.set(9,29)
result = lru_cache.get(5)
lru_cache.set(3,4)
lru_cache.set(11,30)
result = lru_cache.get(12)
lru_cache.set(4,29)
result = lru_cache.get(3)
result = lru_cache.get(9)
result = lru_cache.get(6)
lru_cache.set(3,4)
result = lru_cache.get(1)
result = lru_cache.get(10)
lru_cache.set(3,29)
lru_cache.set(10,28)
lru_cache.set(1,20)
lru_cache.set(11,13)
result = lru_cache.get(3)
lru_cache.set(3,12)
lru_cache.set(3,8)
lru_cache.set(10,9)
lru_cache.set(3,26)
result = lru_cache.get(8)
result = lru_cache.get(7)
result = lru_cache.get(5)
lru_cache.set(13,17)
lru_cache.set(2,27)
lru_cache.set(11,15)
result = lru_cache.get(12)
lru_cache.set(9,19)
lru_cache.set(2,15)
lru_cache.set(3,16)
result = lru_cache.get(1)
lru_cache.set(12,17)
lru_cache.set(9,1)
lru_cache.set(6,19)
result = lru_cache.get(4)
result = lru_cache.get(5)
result = lru_cache.get(5)
lru_cache.set(8,1)
lru_cache.set(11,7)
lru_cache.set(5,2)
lru_cache.set(9,28)
result = lru_cache.get(1)
lru_cache.set(2,2)
lru_cache.set(7,4)
lru_cache.set(4,22)
lru_cache.set(7,24)
lru_cache.set(9,26)
lru_cache.set(13,28)
lru_cache.set(11,26)
| 26.967593
| 78
| 0.604635
| 977
| 5,825
| 3.440123
| 0.126919
| 0.349896
| 0.268373
| 0.217495
| 0.517108
| 0.434395
| 0.409104
| 0.409104
| 0.212734
| 0.135079
| 0
| 0.07678
| 0.262146
| 5,825
| 215
| 79
| 27.093023
| 0.705212
| 0.106781
| 0
| 0.468208
| 0
| 0
| 0.001635
| 0
| 0
| 0
| 0
| 0
| 0.086705
| 0
| null | null | 0
| 0
| null | null | 0.017341
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
a1955738f74f8429f7541cf18cb0a7dbfe938af7
| 2,446
|
py
|
Python
|
nbs/dl2/selfmade/exp/nb_05.py
|
Hustens0hn/fastai-course-v3
|
5f803c0a9b6b7169b8675f16ee81758c3b5f2f14
|
[
"Apache-2.0"
] | null | null | null |
nbs/dl2/selfmade/exp/nb_05.py
|
Hustens0hn/fastai-course-v3
|
5f803c0a9b6b7169b8675f16ee81758c3b5f2f14
|
[
"Apache-2.0"
] | null | null | null |
nbs/dl2/selfmade/exp/nb_05.py
|
Hustens0hn/fastai-course-v3
|
5f803c0a9b6b7169b8675f16ee81758c3b5f2f14
|
[
"Apache-2.0"
] | null | null | null |
#################################################
### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ###
#################################################
# file to edit: dev_nb/05_anneal.ipynb
from exp.nb_04 import *
def create_learner(model_func, loss_func, data):
return Learner(*model_func(data), loss_func, data)
class Recorder(Callback):
def begin_fit(self): self.lrs, self.losses = [], []
def after_batch(self):
if not self.in_train: return
self.lrs.append(self.opt.param_groups[-1]['lr'])
self.losses.append(self.loss.detach().cpu())
def plot_lr(self): plt.plot(self.lrs)
def plot_loss(self): plt.plot(self.losses)
class ParamScheduler(Callback):
_order = 1
def __init__(self, pname, sched_func): self.pname, self.sched_func = pname, sched_func
def set_param(self):
for pg in self.opt.param_groups:
pg[self.pname] = self.sched_func(self.n_epochs / self.epochs)
def begin_batch(self):
if self.in_train: self.set_param()
def sched_lin(start, end):
def _inner(start, end, pos): return start + pos * (end-start)
return partial(_inner, start, end)
def annealer(f):
def _inner(start, end): return partial(f, start, end)
return _inner
@annealer
def sched_lin(start, end, pos): return start + pos * (end - start)
@annealer
def sched_cos(start, end, pos): return start + (1 + math.cos(math.pi*(1-pos))) * (end - start) / 2
@annealer
def sched_no(start, end, pos): return start
@annealer
def sched_exp(start, end, pos): return start * (end/start) ** pos
def cos_1cycle_anneal(start, high, end):
return [sched_cos(start, high), sched_cos(high, end)]
# This monkey-patch is there to be able to plot tensors
torch.Tensor.ndim = property(lambda x: len(x.shape))
def combine_scheds(pcts, scheds): # combine_scheds([0.3, 0.7], [sched_cos(0.3, 0.6), sched_cos(0.6, 0.2)])
assert sum(pcts) == 1.
pcts = tensor([0] + listify(pcts))
assert torch.all(pcts >= 0)
pcts = torch.cumsum(pcts, 0)
# print(pcts) # pcts should be [0, 0.3, 1] now
def _inner(pos): # with pos = 0.5
idx = (pos >= pcts).nonzero().max()
# print(idx) # should be 1 here
if idx == 2: idx = 1 # why is that line needed?
actual_pos = (pos - pcts[idx]) / (pcts[idx+1] - pcts[idx]) # should be (0.5 - 0.3) / (1 - 0.3) = 0.2 / 0.7
# print(actual_pos)
return scheds[idx](actual_pos)
return _inner
| 32.184211
| 114
| 0.61897
| 376
| 2,446
| 3.890957
| 0.303191
| 0.054682
| 0.037594
| 0.0581
| 0.140807
| 0.045113
| 0.045113
| 0.045113
| 0
| 0
| 0
| 0.023955
| 0.197874
| 2,446
| 76
| 115
| 32.184211
| 0.721713
| 0.163941
| 0
| 0.12766
| 1
| 0
| 0.001037
| 0
| 0
| 0
| 0
| 0
| 0.042553
| 1
| 0.404255
| false
| 0
| 0.021277
| 0.170213
| 0.617021
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
a19851ed10481e9f76ee3a13133e180675177cac
| 16
|
py
|
Python
|
back/apps/worker/management/commands/__init__.py
|
8area8/work-calendar
|
f51fc1b81e434953bb41d13b466fc764d70cdb1f
|
[
"MIT"
] | 1
|
2020-09-16T22:54:33.000Z
|
2020-09-16T22:54:33.000Z
|
back/apps/worker/management/commands/__init__.py
|
8area8/work-calendar
|
f51fc1b81e434953bb41d13b466fc764d70cdb1f
|
[
"MIT"
] | 2
|
2020-09-30T16:44:53.000Z
|
2020-09-30T16:45:41.000Z
|
back/apps/worker/management/commands/__init__.py
|
8area8/work-calendar
|
f51fc1b81e434953bb41d13b466fc764d70cdb1f
|
[
"MIT"
] | null | null | null |
"""Commands."""
| 8
| 15
| 0.5
| 1
| 16
| 8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 16
| 1
| 16
| 16
| 0.533333
| 0.5625
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
a1d6c7bd07a2c6a61cb72782bbfd2412bd542f47
| 134
|
py
|
Python
|
py/config.py
|
SamSafonov2020/OAuth-Client
|
80ad0a47ccf1dbbe3dd85b2ab2cfb8fa018a75b6
|
[
"0BSD"
] | 1
|
2021-08-05T14:29:22.000Z
|
2021-08-05T14:29:22.000Z
|
py/config.py
|
SamSafonov2020/OAuth-Client
|
80ad0a47ccf1dbbe3dd85b2ab2cfb8fa018a75b6
|
[
"0BSD"
] | 1
|
2020-10-13T03:52:06.000Z
|
2020-10-13T03:52:06.000Z
|
py/config.py
|
SamSafonov2020/OAuth-Client
|
80ad0a47ccf1dbbe3dd85b2ab2cfb8fa018a75b6
|
[
"0BSD"
] | 1
|
2021-02-20T09:09:14.000Z
|
2021-02-20T09:09:14.000Z
|
<?php return [
'app_id' => 0,
'secret' => '',
'api' => [
'route' => '/v4/me.json',
'params' => []
]
];
| 16.75
| 33
| 0.328358
| 12
| 134
| 3.583333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.024096
| 0.380597
| 134
| 8
| 34
| 16.75
| 0.493976
| 0
| 0
| 0
| 0
| 0
| 0.274074
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
| 4
|
a1f1c5a891d45795060a79786af13eba2f6f9d8e
| 191
|
py
|
Python
|
Sorting/Bubble_Sort.py
|
Anshir08/D.S.A.
|
39d518a6edf0b9a9468c6b44e7795275de9b39e6
|
[
"MIT"
] | 1
|
2021-08-29T16:01:52.000Z
|
2021-08-29T16:01:52.000Z
|
Sorting/Bubble_Sort.py
|
Anshir08/D.S.A.
|
39d518a6edf0b9a9468c6b44e7795275de9b39e6
|
[
"MIT"
] | null | null | null |
Sorting/Bubble_Sort.py
|
Anshir08/D.S.A.
|
39d518a6edf0b9a9468c6b44e7795275de9b39e6
|
[
"MIT"
] | null | null | null |
a = [5, 4, 8, 3, 4, 14, 90, 45, 9, 3, 2, 4]
for i in range(len(a), 0, -1):
for j in range(0, i - 1):
if a[j] > a[j + 1]:
a[j], a[j + 1] = a[j + 1], a[j]
print(a)
| 31.833333
| 44
| 0.366492
| 46
| 191
| 1.521739
| 0.434783
| 0.171429
| 0.128571
| 0.171429
| 0.214286
| 0.171429
| 0.171429
| 0
| 0
| 0
| 0
| 0.184874
| 0.376963
| 191
| 6
| 45
| 31.833333
| 0.403361
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.166667
| 0
| 0
| 1
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
| 4
|
a1f78dbc5add1f828910b59b0db29039311e356c
| 121
|
py
|
Python
|
legal_radar/entrypoints/streamlit_app/__init__.py
|
meaningfy-ws/legal-radar
|
c7c04b402f6766877e9eac0f17544c5f7fe36fe8
|
[
"Apache-2.0"
] | null | null | null |
legal_radar/entrypoints/streamlit_app/__init__.py
|
meaningfy-ws/legal-radar
|
c7c04b402f6766877e9eac0f17544c5f7fe36fe8
|
[
"Apache-2.0"
] | 7
|
2021-11-22T12:31:02.000Z
|
2022-01-11T13:29:39.000Z
|
legal_radar/entrypoints/streamlit_app/__init__.py
|
meaningfy-ws/legal-radar
|
c7c04b402f6766877e9eac0f17544c5f7fe36fe8
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python3
# __init__.py
# Date: 27.08.2021
# Author: Stratulat Ștefan
# Email: stefan.stratulat1997@gmail.com
| 17.285714
| 39
| 0.727273
| 17
| 121
| 4.941176
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122642
| 0.123967
| 121
| 6
| 40
| 20.166667
| 0.669811
| 0.909091
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 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
| 4
|
b816773da856b85f0579421253ab5708abad1c08
| 114
|
py
|
Python
|
Exercise-2/09_uniqueVals.py
|
abhay-lal/18CSC207J-APP
|
79a955a99837e6d41c89cb1a9e84eb0230c0fa7b
|
[
"MIT"
] | null | null | null |
Exercise-2/09_uniqueVals.py
|
abhay-lal/18CSC207J-APP
|
79a955a99837e6d41c89cb1a9e84eb0230c0fa7b
|
[
"MIT"
] | null | null | null |
Exercise-2/09_uniqueVals.py
|
abhay-lal/18CSC207J-APP
|
79a955a99837e6d41c89cb1a9e84eb0230c0fa7b
|
[
"MIT"
] | null | null | null |
c = 0
arr = [8,7,3,2,1,8,18,9,7,3,4]
for i in range(len(arr)):
if arr.count(i) == 1:
c += 1
print(c)
| 16.285714
| 30
| 0.473684
| 29
| 114
| 1.862069
| 0.655172
| 0.074074
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.180723
| 0.27193
| 114
| 6
| 31
| 19
| 0.46988
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.166667
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
| 4
|
62b174bb2a539362e9e705e954e045cd07c353ca
| 62
|
py
|
Python
|
src/timeCalculator/__init__.py
|
SandunWebDev/py-multi-toolbox
|
5e521fb932ad25ebca0d4e2e4216b4b54e26bf21
|
[
"0BSD"
] | null | null | null |
src/timeCalculator/__init__.py
|
SandunWebDev/py-multi-toolbox
|
5e521fb932ad25ebca0d4e2e4216b4b54e26bf21
|
[
"0BSD"
] | null | null | null |
src/timeCalculator/__init__.py
|
SandunWebDev/py-multi-toolbox
|
5e521fb932ad25ebca0d4e2e4216b4b54e26bf21
|
[
"0BSD"
] | null | null | null |
# flake8: noqa
from timeCalculator.calculator import add_time
| 20.666667
| 46
| 0.83871
| 8
| 62
| 6.375
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018182
| 0.112903
| 62
| 2
| 47
| 31
| 0.909091
| 0.193548
| 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
| 0
| 0
|
0
| 4
|
1a039f8b44447af3d9927bcc9981357bac477fa6
| 1,243
|
py
|
Python
|
meraki/exceptions.py
|
fgbs/meraki-dashboard-api
|
a2dfcfed2d9627659565b58a6adf0efaba2e7523
|
[
"MIT"
] | 2
|
2019-05-14T13:19:16.000Z
|
2019-07-11T12:50:39.000Z
|
meraki/exceptions.py
|
fgbs/meraki-dashboard-api
|
a2dfcfed2d9627659565b58a6adf0efaba2e7523
|
[
"MIT"
] | null | null | null |
meraki/exceptions.py
|
fgbs/meraki-dashboard-api
|
a2dfcfed2d9627659565b58a6adf0efaba2e7523
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
class APIError(Exception):
pass
class ConnectionError(Exception):
pass
class ApiKeyMissing(Exception):
def __init__(self):
Exception.__init__(self, 'Meraki API Key missing.')
class ParameterMissing(Exception):
def __init__(self, message):
super().__init__(message)
class NetworkIdMissing(Exception):
def __init__(self):
Exception.__init__(self, 'If you need all networks, use organizations.networks(<orgId>)')
class IpMissing(Exception):
def __init__(self):
Exception.__init__(self, 'The destination IP used to obtain the requested stats is required.')
class ClientIdMissing(Exception):
def __init__(self):
Exception.__init__(self, 'client ID, MAC or IP is required.')
class MacAddressMissing(Exception):
def __init__(self):
Exception.__init__(self, 'MAC Address is required.')
class DevicePolicyMissing(Exception):
def __init__(self):
Exception.__init__(self, 'Can be Whitelisted, Blocked, Normal, and Group policy, is required.')
class SerialMissing(Exception):
def __init__(self):
Exception.__init__(self, 'Device serial is required.')
| 28.25
| 103
| 0.711987
| 142
| 1,243
| 5.746479
| 0.471831
| 0.147059
| 0.156863
| 0.196078
| 0.317402
| 0.317402
| 0.317402
| 0
| 0
| 0
| 0
| 0.000982
| 0.181014
| 1,243
| 43
| 104
| 28.906977
| 0.800589
| 0.033789
| 0
| 0.310345
| 0
| 0
| 0.250209
| 0.025855
| 0
| 0
| 0
| 0
| 0
| 1
| 0.275862
| false
| 0.068966
| 0.034483
| 0
| 0.655172
| 0.034483
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
1a1827decdf8d6ce4eea44bdab90c8b9d0985f27
| 506
|
py
|
Python
|
8 kyu - Convert a String to a Number!.py
|
tiago040/CODEWARS-SOLUTIONS
|
c24e675a6f4263552b447f97639189300723be38
|
[
"MIT"
] | null | null | null |
8 kyu - Convert a String to a Number!.py
|
tiago040/CODEWARS-SOLUTIONS
|
c24e675a6f4263552b447f97639189300723be38
|
[
"MIT"
] | null | null | null |
8 kyu - Convert a String to a Number!.py
|
tiago040/CODEWARS-SOLUTIONS
|
c24e675a6f4263552b447f97639189300723be38
|
[
"MIT"
] | null | null | null |
'''
Note: This kata is inspired by Convert a Number to a String!. Try that one too.
Description
We need a function that can transform a string into a number. What ways of achieving this do you know?
Note: Don't worry, all inputs will be strings, and every string is a perfectly valid representation of an integral number.
Examples
stringToNumber("1234") == 1234
stringToNumber("605" ) == 605
stringToNumber("1405") == 1405
stringToNumber("-7" ) == -7
'''
def string_to_number(num):
return int(num)
| 29.764706
| 122
| 0.735178
| 79
| 506
| 4.683544
| 0.683544
| 0.037838
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057143
| 0.16996
| 506
| 17
| 123
| 29.764706
| 0.82381
| 0.889328
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
1a21e72e2a54fa6f9afd5dab5c6fdc488db95068
| 87
|
py
|
Python
|
PythonGUI_apps/Table/__init__.py
|
SarthakJariwala/Python_GUI_apps
|
be78d92568e430c551ccf2a081521a0a81def20d
|
[
"MIT"
] | 9
|
2019-05-01T02:27:52.000Z
|
2021-12-20T17:49:32.000Z
|
PythonGUI_apps/Table/__init__.py
|
python-gui-application/Python_GUI_apps
|
e5007c3504c966df28aaa1d25a4b93996906d0e6
|
[
"MIT"
] | 8
|
2019-08-28T22:40:38.000Z
|
2022-01-13T02:49:53.000Z
|
PythonGUI_apps/Table/__init__.py
|
python-gui-application/Python_GUI_apps
|
e5007c3504c966df28aaa1d25a4b93996906d0e6
|
[
"MIT"
] | 3
|
2020-02-13T05:32:57.000Z
|
2021-01-08T07:48:55.000Z
|
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 2 17:52:35 2019
@author: Sarthak
"""
| 10.875
| 35
| 0.563218
| 14
| 87
| 3.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.176471
| 0.218391
| 87
| 7
| 36
| 12.428571
| 0.544118
| 0.873563
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 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
| 4
|
1a269732569b133839b83d87c29f4cf5ff6b2215
| 170
|
py
|
Python
|
backtester/__init__.py
|
unbalancedparentheses/backtester_options
|
46efd30e405f360c560f8eae8b2ee7d26f4532db
|
[
"MIT"
] | 91
|
2020-01-31T10:15:35.000Z
|
2022-03-27T19:15:12.000Z
|
backtester/__init__.py
|
unbalancedparentheses/backtester_options
|
46efd30e405f360c560f8eae8b2ee7d26f4532db
|
[
"MIT"
] | 38
|
2019-05-12T02:00:46.000Z
|
2019-12-06T14:54:25.000Z
|
backtester/__init__.py
|
unbalancedparentheses/backtester_options
|
46efd30e405f360c560f8eae8b2ee7d26f4532db
|
[
"MIT"
] | 20
|
2020-06-12T08:21:30.000Z
|
2022-03-28T05:52:59.000Z
|
from . import datahandler
from .backtester import Backtest
from .enums import Stock, Type, Direction
__all__ = ['datahandler', 'Backtest', 'Stock', 'Type', 'Direction']
| 28.333333
| 67
| 0.741176
| 19
| 170
| 6.421053
| 0.526316
| 0.147541
| 0.295082
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129412
| 170
| 5
| 68
| 34
| 0.824324
| 0
| 0
| 0
| 0
| 0
| 0.217647
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 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
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.