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
162fc7dd93638ec5fe98277d336961116226924c
408
py
Python
.history/award/serializers_20201129160732.py
Nyash-Mauro/awwards
aa8200a4d2a26a9d022f0ebda280379c1b3761c3
[ "MIT" ]
null
null
null
.history/award/serializers_20201129160732.py
Nyash-Mauro/awwards
aa8200a4d2a26a9d022f0ebda280379c1b3761c3
[ "MIT" ]
null
null
null
.history/award/serializers_20201129160732.py
Nyash-Mauro/awwards
aa8200a4d2a26a9d022f0ebda280379c1b3761c3
[ "MIT" ]
null
null
null
from .models import Post,Profile from rest_framework import serializers class PostSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Post fields = ('title','image','description','link') class ProfileSeralizer(serializers.HyperlinkedModelSerializer): class Meta: model = Profile fields = (' First_Name','Last_Name',' Email',' bio',' profile_pic')
34
75
0.710784
40
408
7.15
0.625
0.258741
0.293706
0.321678
0.356643
0
0
0
0
0
0
0
0.178922
408
12
75
34
0.853731
0
0
0.2
0
0
0.163814
0
0
0
0
0
0
1
0
false
0
0.2
0
0.6
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
0
0
1
0
0
4
163174da5b682d33915f2cafa6bb9737cd39f415
2,209
py
Python
maya/app/renderSetup/model/initialize.py
arjun-namdeo/py_stubs
605bb167e239978f5417f3f1fc1f5c12e2a243cc
[ "MIT" ]
null
null
null
maya/app/renderSetup/model/initialize.py
arjun-namdeo/py_stubs
605bb167e239978f5417f3f1fc1f5c12e2a243cc
[ "MIT" ]
null
null
null
maya/app/renderSetup/model/initialize.py
arjun-namdeo/py_stubs
605bb167e239978f5417f3f1fc1f5c12e2a243cc
[ "MIT" ]
null
null
null
from maya.app.renderSetup.model.applyOverride import * from maya.app.renderSetup.model.dragAndDropBehavior import * from maya.app.renderSetup.model.modelCmds import getMembersAsLongNames from maya.app.renderSetup.model.override import RelOverrideComputeClass from maya.app.renderSetup.model.override import AbsOverride from maya.app.renderSetup.model.selector import Selector from maya.app.renderSetup.model.override import Override from maya.app.renderSetup.model.modelCmds import getLongName from maya.app.renderSetup.model.modelCmds import getCollections from maya.app.renderSetup.model.override import RelOverride from maya.app.renderSetup.model.modelCmds import isCollectionMember from maya.app.renderSetup.model.selector import BasicSelector from maya.app.renderSetup.model.modelCmds import RenderSetupFindCollectionsCmd from maya.app.renderSetup.model.modelCmds import RenderSetupCmd from maya.app.renderSetup.model.renderLayer import RenderLayer from maya.app.renderSetup.model.modelCmds import notInRenderLayers from maya.app.renderSetup.model.modelCmds import RenderLayerMembersCmd from maya.app.renderSetup.model.override import ValueOverride from maya.app.renderSetup.model.override import UnapplyCmd from maya.app.renderSetup.model.modelCmds import longNamesToNamesDict from maya.app.renderSetup.model.override import fillVector from maya.app.renderSetup.model.override import AbsOverrideComputeClass from maya.app.renderSetup.model.modelCmds import renderSetupFindCollections from maya.app.renderSetup.model.collection import Collection from maya.app.renderSetup.model.modelCmds import inRenderLayers from maya.app.renderSetup.model.modelCmds import RenderSetupLegacyLayerCmd from maya.app.renderSetup.model.collection import LightsCollection from maya.app.renderSetup.model.modelCmds import renderLayerMembers def delete(*args, **kwargs): pass def getClassification(type): pass def uninitialize(mplugin): pass def initialize(mplugin): pass syntaxCommands = [] nodeTypes = [] kUnconnectableAttr = [] kNotInNeedAListToFilter = [] kLockedPlug = [] nodeDragAndDropBehaviors = [] classifications = {} kInvalidNodeName = [] kUnapplyCmdPrivate = [] commands = []
32.014493
78
0.840199
249
2,209
7.453815
0.220884
0.12069
0.165948
0.331897
0.61153
0.582435
0.561422
0
0
0
0
0
0.08737
2,209
68
79
32.485294
0.920635
0
0
0.086957
0
0
0
0
0
0
0
0
0
1
0.086957
false
0.086957
0.608696
0
0.695652
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
4
163c84fe8d93e45a6d1e4fc6375dcf9e6a19f3b4
1,412
py
Python
froide/publicbody/migrations/0033_auto_20210203_1554.py
xenein/froide
59bd3eeded3c3ed00fbc858fe20bfea99c8dbefa
[ "MIT" ]
198
2016-12-03T22:42:55.000Z
2022-03-25T15:08:36.000Z
froide/publicbody/migrations/0033_auto_20210203_1554.py
xenein/froide
59bd3eeded3c3ed00fbc858fe20bfea99c8dbefa
[ "MIT" ]
264
2016-11-30T18:53:17.000Z
2022-03-17T11:34:18.000Z
froide/publicbody/migrations/0033_auto_20210203_1554.py
xenein/froide
59bd3eeded3c3ed00fbc858fe20bfea99c8dbefa
[ "MIT" ]
42
2016-12-22T04:08:27.000Z
2022-02-26T08:30:38.000Z
# Generated by Django 3.1.4 on 2021-02-03 14:54 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("publicbody", "0032_auto_20201221_1953"), ] operations = [ migrations.RenameField( model_name="foilaw", old_name="description", new_name="_description", ), migrations.RenameField( model_name="foilaw", old_name="letter_end", new_name="_letter_end", ), migrations.RenameField( model_name="foilaw", old_name="letter_start", new_name="_letter_start", ), migrations.RenameField( model_name="foilaw", old_name="long_description", new_name="_long_description", ), migrations.RenameField( model_name="foilaw", old_name="name", new_name="_name", ), migrations.RenameField( model_name="foilaw", old_name="request_note", new_name="_request_note", ), migrations.RenameField( model_name="foilaw", old_name="slug", new_name="_slug", ), migrations.RenameField( model_name="foilaw", old_name="refusal_reasons", new_name="_refusal_reasons", ), ]
26.148148
50
0.531161
126
1,412
5.595238
0.325397
0.238298
0.295035
0.340426
0.53617
0.53617
0.53617
0.231206
0
0
0
0.03433
0.360482
1,412
53
51
26.641509
0.746401
0.03187
0
0.510638
1
0
0.188278
0.01685
0
0
0
0
0
1
0
false
0
0.021277
0
0.085106
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
163e13c28e42ab8be315f2aa8ebec1540b903b68
653
py
Python
bin/server/requests.py
vyahello/uah-ex-rate-bot
352b1954d5e53104816852d1f5f34b90bb5b02c7
[ "MIT" ]
null
null
null
bin/server/requests.py
vyahello/uah-ex-rate-bot
352b1954d5e53104816852d1f5f34b90bb5b02c7
[ "MIT" ]
null
null
null
bin/server/requests.py
vyahello/uah-ex-rate-bot
352b1954d5e53104816852d1f5f34b90bb5b02c7
[ "MIT" ]
2
2019-10-30T16:47:08.000Z
2020-01-01T18:45:46.000Z
from abc import ABC, ABCMeta, abstractmethod from typing import Dict, Any from flask import request from werkzeug.local import LocalProxy class Request(ABC): """Abstraction of a request.""" __metaclass__: type = ABCMeta @abstractmethod def method(self) -> str: pass @abstractmethod def dct(self) -> Dict[Any, Any]: pass class ServerRequest(Request): """Concrete server request.""" def __init__(self) -> None: self._request: LocalProxy = request def method(self) -> str: return self._request.method def dct(self) -> Dict[Any, Any]: return self._request.get_json()
20.40625
44
0.653905
77
653
5.38961
0.428571
0.050602
0.062651
0.077108
0.096386
0.096386
0
0
0
0
0
0
0.24196
653
31
45
21.064516
0.838384
0.07657
0
0.421053
0
0
0
0
0
0
0
0
0
1
0.263158
false
0.105263
0.210526
0.105263
0.736842
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
16470f3ad6b3ac681c7d776e0796696e77bda58d
3,669
py
Python
tests/test_service_catalog/test_api/test_request/test_request_delete.py
LaudateCorpus1/squest
98304f20c1d966fb3678d348ffd7c5be438bb6be
[ "Apache-2.0" ]
null
null
null
tests/test_service_catalog/test_api/test_request/test_request_delete.py
LaudateCorpus1/squest
98304f20c1d966fb3678d348ffd7c5be438bb6be
[ "Apache-2.0" ]
null
null
null
tests/test_service_catalog/test_api/test_request/test_request_delete.py
LaudateCorpus1/squest
98304f20c1d966fb3678d348ffd7c5be438bb6be
[ "Apache-2.0" ]
1
2022-03-24T03:37:12.000Z
2022-03-24T03:37:12.000Z
from rest_framework import status from rest_framework.reverse import reverse from service_catalog.models import Request, RequestState from tests.test_service_catalog.base_test_request import BaseTestRequest class TestApiRequestDelete(BaseTestRequest): def setUp(self): super(TestApiRequestDelete, self).setUp() self.test_request_standard_user_1 = Request.objects.create( fill_in_survey={}, instance=self.test_instance, operation=self.create_operation_test, user=self.standard_user ) self.test_request_standard_user_2 = Request.objects.create( fill_in_survey={}, instance=self.test_instance_2, operation=self.create_operation_test, user=self.standard_user_2 ) self.request_to_delete_id = self.test_request_standard_user_1.id self.kwargs = { 'pk': self.test_request_standard_user_1.id } self.get_request_details_url = reverse('api_request_details', kwargs=self.kwargs) def test_admin_delete_request(self): request_count = Request.objects.count() response = self.client.delete(self.get_request_details_url) self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) self.assertEqual(request_count - 1, Request.objects.count()) self.assertFalse(Request.objects.filter(id=self.request_to_delete_id).exists()) def test_customer_cannot_delete_his_request_not_canceled(self): self.client.force_login(user=self.standard_user) response = self.client.delete(self.get_request_details_url) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) self.assertTrue( "Request state must be 'CANCELED' to delete this request." in response.rendered_content.decode("utf-8")) def test_customer_delete_his_request_canceled(self): self.test_request_standard_user_1.state = RequestState.CANCELED self.test_request_standard_user_1.save() request_count = Request.objects.count() self.client.force_login(user=self.standard_user) response = self.client.delete(self.get_request_details_url) self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) self.assertEqual(request_count - 1, Request.objects.count()) self.assertFalse(Request.objects.filter(id=self.request_to_delete_id).exists()) def test_customer_cannot_delete_non_owned_request_not_canceled(self): self.client.force_login(user=self.standard_user) self.kwargs['pk'] = self.test_request_standard_user_2.id self.get_request_details_url = reverse('api_request_details', kwargs=self.kwargs) response = self.client.delete(self.get_request_details_url) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) def test_customer_cannot_delete_non_owned_request_canceled(self): self.test_request_standard_user_2.state = RequestState.CANCELED self.test_request_standard_user_2.save() self.kwargs['pk'] = self.test_request_standard_user_2.id self.get_request_details_url = reverse('api_request_details', kwargs=self.kwargs) self.client.logout() self.client.force_login(user=self.standard_user) response = self.client.delete(self.get_request_details_url) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) def test_cannot_delete_request_when_logout(self): self.client.logout() response = self.client.delete(self.get_request_details_url) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
48.92
116
0.738893
471
3,669
5.388535
0.167728
0.07565
0.059102
0.090623
0.807329
0.774626
0.750985
0.750985
0.631994
0.591017
0
0.010909
0.175525
3,669
74
117
49.581081
0.828099
0
0
0.515625
0
0
0.033797
0
0
0
0
0
0.171875
1
0.109375
false
0
0.0625
0
0.1875
0
0
0
0
null
0
0
0
1
1
1
1
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
164bf4a5b8487e53a451476177d50a18da86d0be
119
py
Python
tcgplayer_api/utils.py
ZaxR/tcgplayer-api-client-python
2ff2cad4eef334a20ba24ad0688bae496115f187
[ "CNRI-Python" ]
4
2020-07-12T12:25:34.000Z
2022-03-05T05:11:38.000Z
tcgplayer_api/utils.py
ZaxR/tcgplayer-api-client-python
2ff2cad4eef334a20ba24ad0688bae496115f187
[ "CNRI-Python" ]
1
2021-07-03T11:18:44.000Z
2021-07-03T11:18:44.000Z
tcgplayer_api/utils.py
ZaxR/tcgplayer-api-client-python
2ff2cad4eef334a20ba24ad0688bae496115f187
[ "CNRI-Python" ]
1
2021-04-10T17:57:52.000Z
2021-04-10T17:57:52.000Z
""" """ def words_to_snake_case(s): components = s.split(' ') return '_'.join(x.lower() for x in components)
17
50
0.605042
17
119
4
0.823529
0
0
0
0
0
0
0
0
0
0
0
0.201681
119
6
51
19.833333
0.715789
0
0
0
0
0
0.017857
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
165d7306c367302c5b0c4c42453516d93a6ae210
582
py
Python
allennlp_models/structured_prediction/dataset_readers/__init__.py
zhiyangxu-umass/allennlp-models
d922f7a8075387ebed1a3e38e588345f706d3f02
[ "Apache-2.0" ]
null
null
null
allennlp_models/structured_prediction/dataset_readers/__init__.py
zhiyangxu-umass/allennlp-models
d922f7a8075387ebed1a3e38e588345f706d3f02
[ "Apache-2.0" ]
null
null
null
allennlp_models/structured_prediction/dataset_readers/__init__.py
zhiyangxu-umass/allennlp-models
d922f7a8075387ebed1a3e38e588345f706d3f02
[ "Apache-2.0" ]
null
null
null
from allennlp_models.structured_prediction.dataset_readers.penn_tree_bank import ( PennTreeBankConstituencySpanDatasetReader, ) from allennlp_models.structured_prediction.dataset_readers.semantic_dependencies import ( SemanticDependenciesDatasetReader, ) from allennlp_models.structured_prediction.dataset_readers.srl import SrlReader from allennlp_models.structured_prediction.dataset_readers.universal_dependencies import ( UniversalDependenciesDatasetReader, ) from allennlp_models.structured_prediction.dataset_readers.srl_self_training import SrlSelfTrainingReader
48.5
105
0.893471
56
582
8.910714
0.392857
0.12024
0.180361
0.280561
0.533066
0.533066
0.533066
0.220441
0
0
0
0
0.065292
582
11
106
52.909091
0.917279
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.454545
0
0.454545
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
16b592fd8ff38aaacb77b3bed0c8907139b5b5b7
567
py
Python
models/user.py
yanchen01/movie-recommendation-api
1e661cebeda5e49bb868728b70901f548e72bea2
[ "MIT" ]
null
null
null
models/user.py
yanchen01/movie-recommendation-api
1e661cebeda5e49bb868728b70901f548e72bea2
[ "MIT" ]
null
null
null
models/user.py
yanchen01/movie-recommendation-api
1e661cebeda5e49bb868728b70901f548e72bea2
[ "MIT" ]
null
null
null
import mongoengine as me class User(me.Document): email = me.StringField(required=True, unique=True) username = me.StringField(required=True, unique=True) password_hash = me.StringField(required=True) name = me.StringField(required=True) # def __init__(self, email=None, password=None, name=None): # self.email = email # self.password_hash = password # self.name = name def json(self): return { 'name': self.name, 'username': self.username, 'email': self.email }
27
63
0.613757
65
567
5.261538
0.338462
0.152047
0.245614
0.292398
0.204678
0.204678
0
0
0
0
0
0
0.269841
567
20
64
28.35
0.826087
0.238095
0
0
0
0
0.039813
0
0
0
0
0
0
1
0.083333
false
0.083333
0.083333
0.083333
0.666667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
4
16c4fe89d83d6189e083f25a284bcb23e9a0f937
102
py
Python
io_utils.py
nicolay-r/frame-based-attitude-extraction-workflow
f20e6d17a9eb6613028545b889c74626a8260ccd
[ "MIT" ]
null
null
null
io_utils.py
nicolay-r/frame-based-attitude-extraction-workflow
f20e6d17a9eb6613028545b889c74626a8260ccd
[ "MIT" ]
6
2020-10-03T13:45:38.000Z
2021-07-13T18:31:57.000Z
io_utils.py
nicolay-r/frame-based-attitude-extraction-workflow
f20e6d17a9eb6613028545b889c74626a8260ccd
[ "MIT" ]
null
null
null
import os def create_dir(out_dir): if not os.path.exists(out_dir): os.makedirs(out_dir)
14.571429
35
0.676471
18
102
3.611111
0.611111
0.276923
0
0
0
0
0
0
0
0
0
0
0.215686
102
6
36
17
0.8125
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
16d44925a7934ecd12abb1036f7b55f8facf8402
196
py
Python
input_parameter.py
freyzor/efficacy
b40e52620b1fe3eb641fdfeb2d9a9d4daeb52d48
[ "MIT" ]
null
null
null
input_parameter.py
freyzor/efficacy
b40e52620b1fe3eb641fdfeb2d9a9d4daeb52d48
[ "MIT" ]
null
null
null
input_parameter.py
freyzor/efficacy
b40e52620b1fe3eb641fdfeb2d9a9d4daeb52d48
[ "MIT" ]
null
null
null
class InputBroker: """Abstract class responsible for providing raw values when considering scores""" def get_input_value(self, consideration, context): raise NotImplementedError()
39.2
85
0.755102
21
196
6.952381
0.952381
0
0
0
0
0
0
0
0
0
0
0
0.173469
196
4
86
49
0.901235
0.382653
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
bc4358302fde6593dce984178824a1bda8686951
1,558
py
Python
tests/test_components.py
cropsinsilico/yggdrasil
466a4f77605a6f461d57ef7b165a6db7eec4d1fd
[ "BSD-3-Clause" ]
22
2019-02-05T15:20:07.000Z
2022-02-25T09:00:40.000Z
tests/test_components.py
cropsinsilico/yggdrasil
466a4f77605a6f461d57ef7b165a6db7eec4d1fd
[ "BSD-3-Clause" ]
48
2019-02-15T20:41:24.000Z
2022-03-16T20:52:02.000Z
tests/test_components.py
cropsinsilico/yggdrasil
466a4f77605a6f461d57ef7b165a6db7eec4d1fd
[ "BSD-3-Clause" ]
16
2019-04-27T03:36:40.000Z
2021-12-02T09:47:06.000Z
import pytest from yggdrasil import components def test_import_component(): r"""Test dynamic import of component.""" # Test use of default components.import_component('serializer') components.import_component('serializer') # Test explict type (but still new to registry) components.import_component('serializer', 'direct') components.import_component('serializer', 'direct') # Using key specific to component components.import_component('serializer', seritype='direct') # Test using class name components.import_component('serializer', 'PandasSerialize') # Test access to file through comm (including error) components.import_component('comm', 'pickle') with pytest.raises(components.ComponentError): components.import_component('comm', 'invalid') # Tests with registry suspended out = components.suspend_registry() components.import_component('serializer') components.import_component('serializer', 'direct') components.import_component('serializer', 'PandasSerialize') components.restore_registry(out) def test_create_component(): r"""Test dynamic creation of component instance.""" x = components.create_component('serializer', seritype='direct') assert(components.isinstance_component(x, ['serializer'])) assert(components.isinstance_component(x, ['comm', 'serializer'])) assert(not components.isinstance_component(x, ['comm'])) x = components.create_component('serializer') assert(components.isinstance_component(x, ['serializer']))
42.108108
70
0.741335
164
1,558
6.902439
0.317073
0.159011
0.242933
0.278269
0.514134
0.34894
0.227032
0.227032
0.134276
0
0
0
0.14249
1,558
36
71
43.277778
0.847305
0.179718
0
0.384615
0
0
0.181458
0
0
0
0
0
0.153846
1
0.076923
false
0
0.538462
0
0.615385
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
bc4c7d2cb5095be39ea53ead06b37246c4c5d7a9
26
py
Python
tests/__init__.py
nialov/nialog
bcaed0df1b4c9d0843aab51ca2911e273dd70fcd
[ "MIT" ]
null
null
null
tests/__init__.py
nialov/nialog
bcaed0df1b4c9d0843aab51ca2911e273dd70fcd
[ "MIT" ]
null
null
null
tests/__init__.py
nialov/nialog
bcaed0df1b4c9d0843aab51ca2911e273dd70fcd
[ "MIT" ]
null
null
null
""" Tests for nialog. """
6.5
17
0.538462
3
26
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.192308
26
3
18
8.666667
0.666667
0.653846
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
bc682fba85fd557ac9eb915abcd32338e336a895
220
py
Python
src/inmediag/apps.py
TechFitU/MDSOM
01f58277ec99051cc857de65ce6b240a177da19c
[ "MIT" ]
null
null
null
src/inmediag/apps.py
TechFitU/MDSOM
01f58277ec99051cc857de65ce6b240a177da19c
[ "MIT" ]
null
null
null
src/inmediag/apps.py
TechFitU/MDSOM
01f58277ec99051cc857de65ce6b240a177da19c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class MDSOMConfig(AppConfig): name = 'inmediag' label = 'inmediag' verbose_name = u"Diagnóstico Médico Mante"
27.5
46
0.727273
26
220
5.923077
0.807692
0
0
0
0
0
0
0
0
0
0
0.005495
0.172727
220
8
46
27.5
0.840659
0.095455
0
0
0
0
0.20202
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
bcbbc982f94709092ab0ce4dd440d060c92f44be
91
py
Python
eshopper/apps.py
vaidgaurav7/quasar-burst
1e283783db79092e0ce04437418a42920dd1e0ae
[ "MIT" ]
null
null
null
eshopper/apps.py
vaidgaurav7/quasar-burst
1e283783db79092e0ce04437418a42920dd1e0ae
[ "MIT" ]
null
null
null
eshopper/apps.py
vaidgaurav7/quasar-burst
1e283783db79092e0ce04437418a42920dd1e0ae
[ "MIT" ]
null
null
null
from django.apps import AppConfig class EshopperConfig(AppConfig): name = 'eshopper'
15.166667
33
0.758242
10
91
6.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.164835
91
5
34
18.2
0.907895
0
0
0
0
0
0.087912
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
bcc29ca4e93c597c49343c60f8e7908a2ffa8322
200
py
Python
tensorflow/csv_test/date_test.py
cateto/python4NLP
1d2d5086f907bf75be01762bf0b384c76d8f704e
[ "MIT" ]
2
2021-12-16T22:38:27.000Z
2021-12-17T13:09:49.000Z
tensorflow/csv_test/date_test.py
cateto/python4NLP
1d2d5086f907bf75be01762bf0b384c76d8f704e
[ "MIT" ]
null
null
null
tensorflow/csv_test/date_test.py
cateto/python4NLP
1d2d5086f907bf75be01762bf0b384c76d8f704e
[ "MIT" ]
null
null
null
import datetime start_date = datetime.date(2021,6,1) end_date = datetime.date(2021,6,30) delta = datetime.timedelta(days=1) while start_date <= end_date: print(start_date) start_date += delta
25
36
0.745
32
200
4.46875
0.4375
0.251748
0.223776
0.27972
0.293706
0
0
0
0
0
0
0.080925
0.135
200
8
37
25
0.745665
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
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
bcd738c07170cda466d727e037766a7b10c89b23
724
py
Python
build/navigation-melodic-devel/dwa_local_planner/catkin_generated/pkg.develspace.context.pc.py
Louis-AD-git/racecar_ws
3c5cb561d1aee11d80a7f3847e0334e93f345513
[ "MIT" ]
null
null
null
build/navigation-melodic-devel/dwa_local_planner/catkin_generated/pkg.develspace.context.pc.py
Louis-AD-git/racecar_ws
3c5cb561d1aee11d80a7f3847e0334e93f345513
[ "MIT" ]
null
null
null
build/navigation-melodic-devel/dwa_local_planner/catkin_generated/pkg.develspace.context.pc.py
Louis-AD-git/racecar_ws
3c5cb561d1aee11d80a7f3847e0334e93f345513
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/lzh/racecar_ws/devel/include;/home/lzh/racecar_ws/src/navigation-melodic-devel/dwa_local_planner/include".split(';') if "/home/lzh/racecar_ws/devel/include;/home/lzh/racecar_ws/src/navigation-melodic-devel/dwa_local_planner/include" != "" else [] PROJECT_CATKIN_DEPENDS = "base_local_planner;dynamic_reconfigure;nav_msgs;pluginlib;sensor_msgs;roscpp;tf2;tf2_ros".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-ldwa_local_planner".split(';') if "-ldwa_local_planner" != "" else [] PROJECT_NAME = "dwa_local_planner" PROJECT_SPACE_DIR = "/home/lzh/racecar_ws/devel" PROJECT_VERSION = "1.16.7"
80.444444
287
0.794199
106
724
5.075472
0.481132
0.133829
0.130112
0.148699
0.377323
0.33829
0.33829
0.33829
0.33829
0.33829
0
0.008759
0.053867
724
8
288
90.5
0.776642
0.074586
0
0
1
0.285714
0.597305
0.5
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
bcf8f5f073874501e2a9ac4c33d485571a7109ce
23
py
Python
orf_annotate/__init__.py
camillaugolini-iit/ORF_annotate-1
60b6090c3569e07909deb8769d95ecc0da035832
[ "MIT" ]
null
null
null
orf_annotate/__init__.py
camillaugolini-iit/ORF_annotate-1
60b6090c3569e07909deb8769d95ecc0da035832
[ "MIT" ]
null
null
null
orf_annotate/__init__.py
camillaugolini-iit/ORF_annotate-1
60b6090c3569e07909deb8769d95ecc0da035832
[ "MIT" ]
1
2020-04-30T20:52:47.000Z
2020-04-30T20:52:47.000Z
__version__ = '0.1.0a'
11.5
22
0.652174
4
23
2.75
1
0
0
0
0
0
0
0
0
0
0
0.15
0.130435
23
1
23
23
0.4
0
0
0
0
0
0.26087
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
4c1724a9ffb0b547be84db37f7a84deec4848293
762
py
Python
mosqito/sound_level_meter/noct_spectrum/_nominal_frequency.py
MitchellAcoustics/MoSQITo
15e45888d08b2932909f50fd6af0ef9d5595a588
[ "Apache-2.0" ]
1
2022-02-20T15:09:32.000Z
2022-02-20T15:09:32.000Z
mosqito/sound_level_meter/noct_spectrum/_nominal_frequency.py
MitchellAcoustics/MoSQITo
15e45888d08b2932909f50fd6af0ef9d5595a588
[ "Apache-2.0" ]
1
2022-02-22T09:13:20.000Z
2022-02-22T09:13:20.000Z
mosqito/sound_level_meter/noct_spectrum/_nominal_frequency.py
MitchellAcoustics/MoSQITo
15e45888d08b2932909f50fd6af0ef9d5595a588
[ "Apache-2.0" ]
null
null
null
from numpy import array NOMINAL_OCTAVE_CENTER_FREQUENCIES = array( [ 31.5, 63.0, 125.0, 250.0, 500.0, 1000.0, 2000.0, 4000.0, 8000.0, 16000.0, ] ) NOMINAL_THIRD_OCTAVE_CENTER_FREQUENCIES = array( [ 25.0, 31.5, 40.0, 50.0, 63.0, 80.0, 100.0, 125.0, 160.0, 200.0, 250.0, 315.0, 400.0, 500.0, 630.0, 800.0, 1000.0, 1250.0, 1600.0, 2000.0, 2500.0, 3150.0, 4000.0, 5000.0, 6300.0, 8000.0, 10000.0, 12500.0, 16000.0, 20000.0, ] )
14.653846
48
0.364829
95
762
2.852632
0.431579
0.088561
0.169742
0.206642
0
0
0
0
0
0
0
0.478261
0.51706
762
51
49
14.941176
0.258152
0
0
0.408163
0
0
0
0
0
0
0
0
0
1
0
false
0
0.020408
0
0.020408
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
1
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
4c22820b09c44b3f70a8c6f5eae96997ab2c71d3
546
py
Python
awaard/serializer.py
Uomar7/awaards
0648be23bda2132730a01b4f3da7f8e24ffa1447
[ "MIT" ]
null
null
null
awaard/serializer.py
Uomar7/awaards
0648be23bda2132730a01b4f3da7f8e24ffa1447
[ "MIT" ]
3
2020-06-05T21:40:28.000Z
2021-06-10T21:40:06.000Z
awaard/serializer.py
Uomar7/awaards
0648be23bda2132730a01b4f3da7f8e24ffa1447
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Profile,Project,Comment class ProfileSerializer(serializers.ModelSerializer): class Meta: model = Profile fields = ("id","first_name","last_name","bio","profile_pic") class ProjectSerializer(serializers.ModelSerializer): class Meta: model = Project fields = ("id","title","project_image","project_description","link") class CommentSerializer(serializers.ModelSerializer): class Meta: model = Comment fields = ("id","review")
32.117647
76
0.701465
55
546
6.854545
0.509091
0.206897
0.246684
0.278515
0.318302
0
0
0
0
0
0
0
0.18315
546
17
77
32.117647
0.845291
0
0
0.214286
0
0
0.157221
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.571429
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
0
0
1
0
0
4
4c40087a3ecd3df493fb7de11484ce2ca6a5fadf
255
py
Python
stack.py
AishwaryaNair687/Py-Programs
cc5774e74f4a85cb76a337f0c63aadfc4e818eb7
[ "MIT" ]
4
2020-11-14T21:12:59.000Z
2020-12-12T17:29:12.000Z
stack.py
Bhavyakalra-13/Py-Programs
715b366718b45c45c1bdb8ab83d83e99d4876c5b
[ "MIT" ]
1
2020-09-28T06:06:48.000Z
2021-09-30T16:22:18.000Z
stack.py
Bhavyakalra-13/Py-Programs
715b366718b45c45c1bdb8ab83d83e99d4876c5b
[ "MIT" ]
4
2020-09-30T17:59:57.000Z
2021-10-03T17:26:27.000Z
stack = [] stack.append('a') stack.append('b') stack.append('c') print('Initial stack') print(stack) print('\nElements poped from stack:') print(stack.pop()) print(stack.pop()) print(stack.pop()) print('\nStack after elements are poped:') print(stack)
15.9375
42
0.694118
37
255
4.783784
0.405405
0.282486
0.220339
0.305085
0.248588
0.248588
0.248588
0
0
0
0
0
0.098039
255
15
43
17
0.769565
0
0
0.416667
0
0
0.301961
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
4c7a912cab5266eb01fa779f1ff8ac7d9a9cea4a
1,026
py
Python
DailyProgrammer/DP20120808A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
2
2020-12-23T18:59:22.000Z
2021-04-14T13:16:09.000Z
DailyProgrammer/DP20120808A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
DailyProgrammer/DP20120808A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
""" [8/8/2012] Challenge #86 [easy] (run-length encoding) https://www.reddit.com/r/dailyprogrammer/comments/xxbbo/882012_challenge_86_easy_runlength_encoding/ Run-Length encoding is a simple form of compression that detects 'runs' of repeated instances of a symbol in a string and compresses them to a list of pairs of 'symbol' 'length'. For example, the string "Heeeeelllllooooo nurse!" Could be compressed using run-length encoding to the list of pairs [(1,'H'),(5,'e'),(5,'l'),(5,'o'),(1,'n'),(1,'u'),(1,'r'),(1,'s'),(1,'e')] Which seems to not be compressed, but if you represent it as an array of 18bytes (each pair is 2 bytes), then we save 5 bytes of space compressing this string. Write a function that takes in a string and returns a run-length-encoding of that string. (either as a list of pairs or as a 2-byte-per pair array) BONUS: Write a decompression function that takes in the RLE representation and returns the original string """ def main(): pass if __name__ == "__main__": main()
41.04
119
0.722222
176
1,026
4.136364
0.539773
0.049451
0.093407
0.032967
0
0
0
0
0
0
0
0.034924
0.162768
1,026
24
120
42.75
0.812573
0.929825
0
0
0
0
0.125
0
0
0
0
0
0
1
0.25
true
0.25
0
0
0.25
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
1
1
0
0
0
0
0
4
d5b2f361aa42459762f0369a2c01907b217d8d5a
241
py
Python
pygeostat/statistics/__init__.py
MHadavand/pygeostat
020f1781e073ab7721d9181e04b9c63240b0121e
[ "MIT" ]
22
2020-08-04T15:13:53.000Z
2022-03-31T00:15:07.000Z
pygeostat/statistics/__init__.py
MHadavand/pygeostat
020f1781e073ab7721d9181e04b9c63240b0121e
[ "MIT" ]
15
2020-08-04T15:40:21.000Z
2021-12-22T15:18:01.000Z
pygeostat/statistics/__init__.py
MHadavand/pygeostat
020f1781e073ab7721d9181e04b9c63240b0121e
[ "MIT" ]
59
2020-08-04T17:09:26.000Z
2022-03-25T23:19:44.000Z
""" The :mod:`pygslib.statistics` module includes statistics functions. """ from __future__ import absolute_import, division, print_function from .kde import * from .cdf import * from .utils import * from .postsim import postsim_multfiles
24.1
67
0.780083
30
241
6.033333
0.633333
0.165746
0
0
0
0
0
0
0
0
0
0
0.13278
241
9
68
26.777778
0.866029
0.278008
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0.2
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
d5d6414d6b768410c443c3c15e03b2b059bce8e2
10,402
py
Python
env/lib/python3.6/site-packages/openpyxl/writer/theme.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
34
2018-07-13T11:30:46.000Z
2022-01-05T13:48:10.000Z
env/lib/python3.6/site-packages/openpyxl/writer/theme.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
4
2021-03-11T04:02:00.000Z
2022-03-27T08:31:56.000Z
env/lib/python3.6/site-packages/openpyxl/writer/theme.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
22
2018-07-13T11:30:48.000Z
2021-09-25T13:30:08.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import # Copyright (c) 2010-2018 openpyxl """Write the theme xml based on a fixed string.""" # package imports theme_xml = """<?xml version="1.0"?> <a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="&#xFF2D;&#xFF33; &#xFF30;&#x30B4;&#x30B7;&#x30C3;&#x30AF;"/> <a:font script="Hang" typeface="&#xB9D1;&#xC740; &#xACE0;&#xB515;"/> <a:font script="Hans" typeface="&#x5B8B;&#x4F53;"/> <a:font script="Hant" typeface="&#x65B0;&#x7D30;&#x660E;&#x9AD4;"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="&#xFF2D;&#xFF33; &#xFF30;&#x30B4;&#x30B7;&#x30C3;&#x30AF;"/> <a:font script="Hang" typeface="&#xB9D1;&#xC740; &#xACE0;&#xB515;"/> <a:font script="Hans" typeface="&#x5B8B;&#x4F53;"/> <a:font script="Hant" typeface="&#x65B0;&#x7D30;&#x660E;&#x9AD4;"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:shade val="51000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="80000"> <a:schemeClr val="phClr"> <a:shade val="93000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="94000"/> <a:satMod val="135000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults/> <a:extraClrSchemeLst/> </a:theme> """ def write_theme(): """Write the theme xml.""" return theme_xml
35.141892
100
0.489617
1,164
10,402
4.368557
0.215636
0.05703
0.125467
0.056637
0.73058
0.718387
0.718387
0.681023
0.665683
0.653097
0
0.075113
0.321669
10,402
295
101
35.261017
0.64555
0.008844
0
0.596491
0
0.010526
0.989075
0.054233
0
0
0
0
0
1
0.003509
false
0
0.003509
0
0.010526
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
d5e3c989b4c127bb887c556c07eca254cdbe3985
128
py
Python
examples/login.py
Alert-Aigul/Amino.ed
f126135f6b10010c6b4356199b5cfe5cf2f1124d
[ "MIT" ]
9
2021-10-01T18:23:59.000Z
2022-03-31T20:02:45.000Z
examples/login.py
Alert-Aigul/Amino.ed
f126135f6b10010c6b4356199b5cfe5cf2f1124d
[ "MIT" ]
2
2021-10-30T05:40:03.000Z
2021-12-08T12:35:38.000Z
examples/login.py
Alert-Aigul/Amino.ed
f126135f6b10010c6b4356199b5cfe5cf2f1124d
[ "MIT" ]
null
null
null
import aminoed @aminoed.run_with_client() async def main(client: aminoed.Client): await client.login("email", "password")
18.285714
43
0.742188
17
128
5.470588
0.705882
0
0
0
0
0
0
0
0
0
0
0
0.125
128
6
44
21.333333
0.830357
0
0
0
0
0
0.101563
0
0
0
0
0
0
1
0
true
0.25
0.25
0
0.25
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
1
0
0
0
0
0
4
d5e82948502b516ce0b316af3aed67691afe1ec8
20,919
py
Python
server/launch/sample/main_machine/main_instance/experiment_gpib/fake_linker.py
zstars/weblabdeusto
09bd9d93d483671bca67ee5c70a9c412eb5d352f
[ "BSD-2-Clause" ]
15
2015-03-12T12:15:41.000Z
2021-12-20T17:53:24.000Z
server/launch/sample/main_machine/main_instance/experiment_gpib/fake_linker.py
zstars/weblabdeusto
09bd9d93d483671bca67ee5c70a9c412eb5d352f
[ "BSD-2-Clause" ]
44
2015-01-07T09:22:05.000Z
2017-01-31T22:44:21.000Z
server/launch/sample/main_machine/main_instance/experiment_gpib/fake_linker.py
zstars/weblabdeusto
09bd9d93d483671bca67ee5c70a9c412eb5d352f
[ "BSD-2-Clause" ]
22
2015-01-13T13:55:48.000Z
2021-12-16T17:07:00.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2005 onwards University of Deusto # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. # # This software consists of contributions made by many individuals, # listed below: # # Author: Pablo Orduña <pablo@ordunya.com> # import os, sys if __name__ == '__main__': assert len(sys.argv) == 11, "Linker example: ilink32 -Tpe -c whatever.obj c0x32, whatever.exe, , visa32 import32 cw32 bidsf \n\ Got %s arguments; \"%s\"" % ( len(sys.argv), ' '.join(sys.argv) ) # assert sys.argv[0] == 'ilink32' #Not in the fake version assert sys.argv[1] == '-Tpe' assert sys.argv[2] == '-c' assert sys.argv[3][-4:].lower() == '.obj' assert sys.argv[4] == 'c0x32,' assert sys.argv[5][-5:].lower() == '.exe,' assert sys.argv[6] == ',' assert sys.argv[7] == 'visa32' assert sys.argv[8] == 'import32' assert sys.argv[9] == 'cw32' assert sys.argv[10] =='bidsf' fname = sys.argv[5][:-1] try: f = open(fname,'w') source_lines = "" stdout_lines = "" for i in xrange(50): # source_lines += "content sample line %i\\n" % i stdout_lines += "stdout sample line %i\\n" % i source_lines = """El nivel del marker -66.389 dBm PTO : FREC : VALOR: dBm ============================================================ 1 : 1950000 : 642 : -66.387634 2 : 1950200 : 643 : -66.359848 3 : 1950400 : 644 : -66.332062 4 : 1950600 : 644 : -66.332062 5 : 1950800 : 644 : -66.332062 6 : 1951000 : 645 : -66.304276 7 : 1951200 : 645 : -66.304276 8 : 1951400 : 644 : -66.332062 9 : 1951600 : 644 : -66.332062 10 : 1951800 : 642 : -66.387634 11 : 1952000 : 642 : -66.387634 12 : 1952200 : 642 : -66.387634 13 : 1952400 : 641 : -66.415421 14 : 1952600 : 640 : -66.443207 15 : 1952800 : 642 : -66.387634 16 : 1953000 : 642 : -66.387634 17 : 1953200 : 643 : -66.359848 18 : 1953400 : 642 : -66.387634 19 : 1953600 : 643 : -66.359848 20 : 1953800 : 641 : -66.415421 21 : 1954000 : 641 : -66.415421 22 : 1954200 : 642 : -66.387634 23 : 1954400 : 644 : -66.332062 24 : 1954600 : 644 : -66.332062 25 : 1954800 : 642 : -66.387634 26 : 1955000 : 641 : -66.415421 27 : 1955200 : 642 : -66.387634 28 : 1955400 : 645 : -66.304276 29 : 1955600 : 643 : -66.359848 30 : 1955800 : 644 : -66.332062 31 : 1956000 : 645 : -66.304276 32 : 1956200 : 644 : -66.332062 33 : 1956400 : 640 : -66.443207 34 : 1956600 : 641 : -66.415421 35 : 1956800 : 640 : -66.443207 36 : 1957000 : 640 : -66.443207 37 : 1957200 : 640 : -66.443207 38 : 1957400 : 640 : -66.443207 39 : 1957600 : 642 : -66.387634 40 : 1957800 : 641 : -66.415421 41 : 1958000 : 641 : -66.415421 42 : 1958200 : 641 : -66.415421 43 : 1958400 : 644 : -66.332062 44 : 1958600 : 642 : -66.387634 45 : 1958800 : 644 : -66.332062 46 : 1959000 : 644 : -66.332062 47 : 1959200 : 642 : -66.387634 48 : 1959400 : 642 : -66.387634 49 : 1959600 : 640 : -66.443207 50 : 1959800 : 643 : -66.359848 51 : 1960000 : 645 : -66.304276 52 : 1960200 : 643 : -66.359848 53 : 1960400 : 642 : -66.387634 54 : 1960600 : 642 : -66.387634 55 : 1960800 : 644 : -66.332062 56 : 1961000 : 644 : -66.332062 57 : 1961200 : 642 : -66.387634 58 : 1961400 : 641 : -66.415421 59 : 1961600 : 640 : -66.443207 60 : 1961800 : 640 : -66.443207 61 : 1962000 : 640 : -66.443207 62 : 1962200 : 640 : -66.443207 63 : 1962400 : 640 : -66.443207 64 : 1962600 : 640 : -66.443207 65 : 1962800 : 644 : -66.332062 66 : 1963000 : 640 : -66.443207 67 : 1963200 : 640 : -66.443207 68 : 1963400 : 641 : -66.415421 69 : 1963600 : 642 : -66.387634 70 : 1963800 : 640 : -66.443207 71 : 1964000 : 641 : -66.415421 72 : 1964200 : 641 : -66.415421 73 : 1964400 : 641 : -66.415421 74 : 1964600 : 641 : -66.415421 75 : 1964800 : 640 : -66.443207 76 : 1965000 : 640 : -66.443207 77 : 1965200 : 641 : -66.415421 78 : 1965400 : 640 : -66.443207 79 : 1965600 : 641 : -66.415421 80 : 1965800 : 641 : -66.415421 81 : 1966000 : 641 : -66.415421 82 : 1966200 : 641 : -66.415421 83 : 1966400 : 640 : -66.443207 84 : 1966600 : 642 : -66.387634 85 : 1966800 : 642 : -66.387634 86 : 1967000 : 640 : -66.443207 87 : 1967200 : 640 : -66.443207 88 : 1967400 : 641 : -66.415421 89 : 1967600 : 641 : -66.415421 90 : 1967800 : 641 : -66.415421 91 : 1968000 : 641 : -66.415421 92 : 1968200 : 640 : -66.443207 93 : 1968400 : 641 : -66.415421 94 : 1968600 : 642 : -66.387634 95 : 1968800 : 642 : -66.387634 96 : 1969000 : 640 : -66.443207 97 : 1969200 : 640 : -66.443207 98 : 1969400 : 641 : -66.415421 99 : 1969600 : 644 : -66.332062 100 : 1969800 : 644 : -66.332062 101 : 1970000 : 644 : -66.332062 102 : 1970200 : 644 : -66.332062 103 : 1970400 : 641 : -66.415421 104 : 1970600 : 640 : -66.443207 105 : 1970800 : 643 : -66.359848 106 : 1971000 : 643 : -66.359848 107 : 1971200 : 641 : -66.415421 108 : 1971400 : 640 : -66.443207 109 : 1971600 : 641 : -66.415421 110 : 1971800 : 641 : -66.415421 111 : 1972000 : 640 : -66.443207 112 : 1972200 : 641 : -66.415421 113 : 1972400 : 640 : -66.443207 114 : 1972600 : 642 : -66.387634 115 : 1972800 : 641 : -66.415421 116 : 1973000 : 640 : -66.443207 117 : 1973200 : 640 : -66.443207 118 : 1973400 : 642 : -66.387634 119 : 1973600 : 641 : -66.415421 120 : 1973800 : 640 : -66.443207 121 : 1974000 : 640 : -66.443207 122 : 1974200 : 642 : -66.387634 123 : 1974400 : 642 : -66.387634 124 : 1974600 : 640 : -66.443207 125 : 1974800 : 641 : -66.415421 126 : 1975000 : 640 : -66.443207 127 : 1975200 : 640 : -66.443207 128 : 1975400 : 641 : -66.415421 129 : 1975600 : 642 : -66.387634 130 : 1975800 : 641 : -66.415421 131 : 1976000 : 640 : -66.443207 132 : 1976200 : 643 : -66.359848 133 : 1976400 : 641 : -66.415421 134 : 1976600 : 641 : -66.415421 135 : 1976800 : 641 : -66.415421 136 : 1977000 : 642 : -66.387634 137 : 1977200 : 643 : -66.359848 138 : 1977400 : 642 : -66.387634 139 : 1977600 : 642 : -66.387634 140 : 1977800 : 640 : -66.443207 141 : 1978000 : 640 : -66.443207 142 : 1978200 : 640 : -66.443207 143 : 1978400 : 640 : -66.443207 144 : 1978600 : 641 : -66.415421 145 : 1978800 : 643 : -66.359848 146 : 1979000 : 642 : -66.387634 147 : 1979200 : 642 : -66.387634 148 : 1979400 : 642 : -66.387634 149 : 1979600 : 641 : -66.415421 150 : 1979800 : 642 : -66.387634 151 : 1980000 : 642 : -66.387634 152 : 1980200 : 644 : -66.332062 153 : 1980400 : 642 : -66.387634 154 : 1980600 : 641 : -66.415421 155 : 1980800 : 640 : -66.443207 156 : 1981000 : 640 : -66.443207 157 : 1981200 : 643 : -66.359848 158 : 1981400 : 643 : -66.359848 159 : 1981600 : 642 : -66.387634 160 : 1981800 : 640 : -66.443207 161 : 1982000 : 640 : -66.443207 162 : 1982200 : 640 : -66.443207 163 : 1982400 : 641 : -66.415421 164 : 1982600 : 642 : -66.387634 165 : 1982800 : 640 : -66.443207 166 : 1983000 : 642 : -66.387634 167 : 1983200 : 642 : -66.387634 168 : 1983400 : 640 : -66.443207 169 : 1983600 : 640 : -66.443207 170 : 1983800 : 640 : -66.443207 171 : 1984000 : 640 : -66.443207 172 : 1984200 : 640 : -66.443207 173 : 1984400 : 640 : -66.443207 174 : 1984600 : 640 : -66.443207 175 : 1984800 : 642 : -66.387634 176 : 1985000 : 640 : -66.443207 177 : 1985200 : 640 : -66.443207 178 : 1985400 : 641 : -66.415421 179 : 1985600 : 644 : -66.332062 180 : 1985800 : 645 : -66.304276 181 : 1986000 : 642 : -66.387634 182 : 1986200 : 644 : -66.332062 183 : 1986400 : 644 : -66.332062 184 : 1986600 : 645 : -66.304276 185 : 1986800 : 641 : -66.415421 186 : 1987000 : 642 : -66.387634 187 : 1987200 : 642 : -66.387634 188 : 1987400 : 641 : -66.415421 189 : 1987600 : 640 : -66.443207 190 : 1987800 : 640 : -66.443207 191 : 1988000 : 640 : -66.443207 192 : 1988200 : 640 : -66.443207 193 : 1988400 : 642 : -66.387634 194 : 1988600 : 642 : -66.387634 195 : 1988800 : 640 : -66.443207 196 : 1989000 : 641 : -66.415421 197 : 1989200 : 640 : -66.443207 198 : 1989400 : 640 : -66.443207 199 : 1989600 : 641 : -66.415421 200 : 1989800 : 643 : -66.359848 201 : 1990000 : 645 : -66.304276 202 : 1990200 : 645 : -66.304276 203 : 1990400 : 641 : -66.415421 204 : 1990600 : 641 : -66.415421 205 : 1990800 : 642 : -66.387634 206 : 1991000 : 641 : -66.415421 207 : 1991200 : 640 : -66.443207 208 : 1991400 : 642 : -66.387634 209 : 1991600 : 641 : -66.415421 210 : 1991800 : 641 : -66.415421 211 : 1992000 : 641 : -66.415421 212 : 1992200 : 642 : -66.387634 213 : 1992400 : 645 : -66.304276 214 : 1992600 : 644 : -66.332062 215 : 1992800 : 643 : -66.359848 216 : 1993000 : 642 : -66.387634 217 : 1993200 : 642 : -66.387634 218 : 1993400 : 640 : -66.443207 219 : 1993600 : 640 : -66.443207 220 : 1993800 : 641 : -66.415421 221 : 1994000 : 645 : -66.304276 222 : 1994200 : 644 : -66.332062 223 : 1994400 : 641 : -66.415421 224 : 1994600 : 641 : -66.415421 225 : 1994800 : 643 : -66.359848 226 : 1995000 : 642 : -66.387634 227 : 1995200 : 641 : -66.415421 228 : 1995400 : 640 : -66.443207 229 : 1995600 : 640 : -66.443207 230 : 1995800 : 641 : -66.415421 231 : 1996000 : 644 : -66.332062 232 : 1996200 : 641 : -66.415421 233 : 1996400 : 640 : -66.443207 234 : 1996600 : 641 : -66.415421 235 : 1996800 : 642 : -66.387634 236 : 1997000 : 641 : -66.415421 237 : 1997200 : 642 : -66.387634 238 : 1997400 : 640 : -66.443207 239 : 1997600 : 641 : -66.415421 240 : 1997800 : 642 : -66.387634 241 : 1998000 : 642 : -66.387634 242 : 1998200 : 644 : -66.332062 243 : 1998400 : 644 : -66.332062 244 : 1998600 : 642 : -66.387634 245 : 1998800 : 644 : -66.332062 246 : 1999000 : 645 : -66.304276 247 : 1999200 : 642 : -66.387634 248 : 1999400 : 641 : -66.415421 249 : 1999600 : 640 : -66.443207 250 : 1999800 : 642 : -66.387634 251 : 2000000 : 641 : -66.415421 252 : 2000200 : 644 : -66.332062 253 : 2000400 : 640 : -66.443207 254 : 2000600 : 641 : -66.415421 255 : 2000800 : 640 : -66.443207 256 : 2001000 : 644 : -66.332062 257 : 2001200 : 642 : -66.387634 258 : 2001400 : 642 : -66.387634 259 : 2001600 : 642 : -66.387634 260 : 2001800 : 642 : -66.387634 261 : 2002000 : 642 : -66.387634 262 : 2002200 : 643 : -66.359848 263 : 2002400 : 641 : -66.415421 264 : 2002600 : 641 : -66.415421 265 : 2002800 : 643 : -66.359848 266 : 2003000 : 643 : -66.359848 267 : 2003200 : 642 : -66.387634 268 : 2003400 : 642 : -66.387634 269 : 2003600 : 643 : -66.359848 270 : 2003800 : 644 : -66.332062 271 : 2004000 : 641 : -66.415421 272 : 2004200 : 641 : -66.415421 273 : 2004400 : 640 : -66.443207 274 : 2004600 : 638 : -66.498787 275 : 2004800 : 648 : -66.220909 276 : 2005000 : 640 : -66.443207 277 : 2005200 : 638 : -66.498787 278 : 2005400 : 649 : -66.193123 279 : 2005600 : 641 : -66.415421 280 : 2005800 : 644 : -66.332062 281 : 2006000 : 642 : -66.387634 282 : 2006200 : 640 : -66.443207 283 : 2006400 : 642 : -66.387634 284 : 2006600 : 641 : -66.415421 285 : 2006800 : 643 : -66.359848 286 : 2007000 : 641 : -66.415421 287 : 2007200 : 640 : -66.443207 288 : 2007400 : 640 : -66.443207 289 : 2007600 : 641 : -66.415421 290 : 2007800 : 640 : -66.443207 291 : 2008000 : 642 : -66.387634 292 : 2008200 : 644 : -66.332062 293 : 2008400 : 643 : -66.359848 294 : 2008600 : 643 : -66.359848 295 : 2008800 : 641 : -66.415421 296 : 2009000 : 640 : -66.443207 297 : 2009200 : 643 : -66.359848 298 : 2009400 : 643 : -66.359848 299 : 2009600 : 642 : -66.387634 300 : 2009800 : 642 : -66.387634 301 : 2010000 : 642 : -66.387634 302 : 2010200 : 640 : -66.443207 303 : 2010400 : 641 : -66.415421 304 : 2010600 : 641 : -66.415421 305 : 2010800 : 641 : -66.415421 306 : 2011000 : 641 : -66.415421 307 : 2011200 : 641 : -66.415421 308 : 2011400 : 641 : -66.415421 309 : 2011600 : 641 : -66.415421 310 : 2011800 : 643 : -66.359848 311 : 2012000 : 641 : -66.415421 312 : 2012200 : 640 : -66.443207 313 : 2012400 : 640 : -66.443207 314 : 2012600 : 640 : -66.443207 315 : 2012800 : 641 : -66.415421 316 : 2013000 : 641 : -66.415421 317 : 2013200 : 641 : -66.415421 318 : 2013400 : 640 : -66.443207 319 : 2013600 : 642 : -66.387634 320 : 2013800 : 643 : -66.359848 321 : 2014000 : 642 : -66.387634 322 : 2014200 : 641 : -66.415421 323 : 2014400 : 642 : -66.387634 324 : 2014600 : 644 : -66.332062 325 : 2014800 : 641 : -66.415421 326 : 2015000 : 641 : -66.415421 327 : 2015200 : 644 : -66.332062 328 : 2015400 : 643 : -66.359848 329 : 2015600 : 640 : -66.443207 330 : 2015800 : 640 : -66.443207 331 : 2016000 : 642 : -66.387634 332 : 2016200 : 640 : -66.443207 333 : 2016400 : 643 : -66.359848 334 : 2016600 : 642 : -66.387634 335 : 2016800 : 641 : -66.415421 336 : 2017000 : 642 : -66.387634 337 : 2017200 : 641 : -66.415421 338 : 2017400 : 641 : -66.415421 339 : 2017600 : 640 : -66.443207 340 : 2017800 : 642 : -66.387634 341 : 2018000 : 641 : -66.415421 342 : 2018200 : 641 : -66.415421 343 : 2018400 : 642 : -66.387634 344 : 2018600 : 640 : -66.443207 345 : 2018800 : 640 : -66.443207 346 : 2019000 : 641 : -66.415421 347 : 2019200 : 641 : -66.415421 348 : 2019400 : 641 : -66.415421 349 : 2019600 : 641 : -66.415421 350 : 2019800 : 640 : -66.443207 351 : 2020000 : 640 : -66.443207 352 : 2020200 : 640 : -66.443207 353 : 2020400 : 641 : -66.415421 354 : 2020600 : 640 : -66.443207 355 : 2020800 : 641 : -66.415421 356 : 2021000 : 644 : -66.332062 357 : 2021200 : 641 : -66.415421 358 : 2021400 : 640 : -66.443207 359 : 2021600 : 640 : -66.443207 360 : 2021800 : 640 : -66.443207 361 : 2022000 : 640 : -66.443207 362 : 2022200 : 640 : -66.443207 363 : 2022400 : 640 : -66.443207 364 : 2022600 : 641 : -66.415421 365 : 2022800 : 642 : -66.387634 366 : 2023000 : 641 : -66.415421 367 : 2023200 : 641 : -66.415421 368 : 2023400 : 640 : -66.443207 369 : 2023600 : 640 : -66.443207 370 : 2023800 : 640 : -66.443207 371 : 2024000 : 641 : -66.415421 372 : 2024200 : 641 : -66.415421 373 : 2024400 : 640 : -66.443207 374 : 2024600 : 640 : -66.443207 375 : 2024800 : 638 : -66.498787 376 : 2025000 : 650 : -66.165337 377 : 2025200 : 642 : -66.387634 378 : 2025400 : 643 : -66.359848 379 : 2025600 : 641 : -66.415421 380 : 2025800 : 640 : -66.443207 381 : 2026000 : 643 : -66.359848 382 : 2026200 : 642 : -66.387634 383 : 2026400 : 640 : -66.443207 384 : 2026600 : 640 : -66.443207 385 : 2026800 : 641 : -66.415421 386 : 2027000 : 641 : -66.415421 387 : 2027200 : 641 : -66.415421 388 : 2027400 : 641 : -66.415421 389 : 2027600 : 641 : -66.415421 390 : 2027800 : 641 : -66.415421 391 : 2028000 : 640 : -66.443207 392 : 2028200 : 644 : -66.332062 393 : 2028400 : 643 : -66.359848 394 : 2028600 : 642 : -66.387634 395 : 2028800 : 642 : -66.387634 396 : 2029000 : 642 : -66.387634 397 : 2029200 : 641 : -66.415421 398 : 2029400 : 640 : -66.443207 399 : 2029600 : 640 : -66.443207 400 : 2029800 : 640 : -66.443207 401 : 2030000 : 640 : -66.443207 402 : 2030200 : 641 : -66.415421 403 : 2030400 : 641 : -66.415421 404 : 2030600 : 640 : -66.443207 405 : 2030800 : 641 : -66.415421 406 : 2031000 : 642 : -66.387634 407 : 2031200 : 641 : -66.415421 408 : 2031400 : 641 : -66.415421 409 : 2031600 : 641 : -66.415421 410 : 2031800 : 642 : -66.387634 411 : 2032000 : 644 : -66.332062 412 : 2032200 : 640 : -66.443207 413 : 2032400 : 640 : -66.443207 414 : 2032600 : 641 : -66.415421 415 : 2032800 : 640 : -66.443207 416 : 2033000 : 641 : -66.415421 417 : 2033200 : 640 : -66.443 207 418 : 2033400 : 640 : -66.443207 419 : 2033600 : 640 : -66.443207 420 : 2033800 : 640 : -66.443207 421 : 2034000 : 641 : -66.415421 422 : 2034200 : 643 : -66.359848 423 : 2034400 : 642 : -66.387634 424 : 2034600 : 643 : -66.359848 425 : 2034800 : 644 : -66.332062 426 : 2035000 : 642 : -66.387634 427 : 2035200 : 641 : -66.415421 428 : 2035400 : 640 : -66.443207 429 : 2035600 : 641 : -66.415421 430 : 2035800 : 640 : -66.443207 431 : 2036000 : 641 : -66.415421 432 : 2036200 : 644 : -66.332062 433 : 2036400 : 642 : -66.387634 434 : 2036600 : 642 : -66.387634 435 : 2036800 : 640 : -66.443207 436 : 2037000 : 640 : -66.443207 437 : 2037200 : 640 : -66.443207 438 : 2037400 : 640 : -66.443207 439 : 2037600 : 638 : -66.498787 440 : 2037800 : 648 : -66.220909 441 : 2038000 : 641 : -66.415421 442 : 2038200 : 641 : -66.415421 443 : 2038400 : 642 : -66.387634 444 : 2038600 : 641 : -66.415421 445 : 2038800 : 640 : -66.443207 446 : 2039000 : 640 : -66.443207 447 : 2039200 : 642 : -66.387634 448 : 2039400 : 642 : -66.387634 449 : 2039600 : 642 : -66.387634 450 : 2039800 : 641 : -66.415421 451 : 2040000 : 643 : -66.359848 452 : 2040200 : 641 : -66.415421 453 : 2040400 : 640 : -66.443207 454 : 2040600 : 642 : -66.387634 455 : 2040800 : 642 : -66.387634 456 : 2041000 : 640 : -66.443207 457 : 2041200 : 640 : -66.443207 458 : 2041400 : 640 : -66.443207 459 : 2041600 : 641 : -66.415421 460 : 2041800 : 641 : -66.415421 461 : 2042000 : 641 : -66.415421 462 : 2042200 : 640 : -66.443207 463 : 2042400 : 640 : -66.443207 464 : 2042600 : 640 : -66.443207 465 : 2042800 : 640 : -66.443207 466 : 2043000 : 640 : -66.443207 467 : 2043200 : 640 : -66.443207 468 : 2043400 : 640 : -66.443207 469 : 2043600 : 640 : -66.443207 470 : 2043800 : 640 : -66.443207 471 : 2044000 : 640 : -66.443207 472 : 2044200 : 640 : -66.443207 473 : 2044400 : 640 : -66.443207 474 : 2044600 : 641 : -66.415421 475 : 2044800 : 644 : -66.332062 476 : 2045000 : 642 : -66.387634 477 : 2045200 : 641 : -66.415421 478 : 2045400 : 643 : -66.359848 479 : 2045600 : 642 : -66.387634 480 : 2045800 : 642 : -66.387634 481 : 2046000 : 641 : -66.415421 482 : 2046200 : 643 : -66.359848 483 : 2046400 : 641 : -66.415421 484 : 2046600 : 641 : -66.415421 485 : 2046800 : 641 : -66.415421 486 : 2047000 : 642 : -66.387634 487 : 2047200 : 643 : -66.359848 488 : 2047400 : 642 : -66.387634 489 : 2047600 : 643 : -66.359848 490 : 2047800 : 643 : -66.359848 491 : 2048000 : 643 : -66.359848 492 : 2048200 : 642 : -66.387634 493 : 2048400 : 644 : -66.332062 494 : 2048600 : 645 : -66.304276 495 : 2048800 : 645 : -66.304276 496 : 2049000 : 642 : -66.387634 497 : 2049200 : 641 : -66.415421 498 : 2049400 : 641 : -66.415421 499 : 2049600 : 641 : -66.415421 500 : 2049800 : 642 : -66.387634 501 : 2050000 : 642 : -66.387634 """ f.write("""#!/usr/bin/python import time print ""\"%s""\" open("gpib.txt","w").write(""\"%s""\") time.sleep(5) """ % (stdout_lines, source_lines)) f.close() except Exception, e: import traceback print traceback.print_stack(e) if hasattr(os, 'chmod'): try: os.chmod(fname, 0755) except: pass
36.635727
131
0.547397
2,751
20,919
4.15667
0.412941
0.063839
0.139484
0.002099
0.002274
0
0
0
0
0
0
0.731094
0.315407
20,919
570
132
36.7
0.067384
0.021846
0
0.003683
0
0.001842
0.946684
0.004794
0
0
0
0
0.020258
0
null
null
0.001842
0.009208
null
null
0.003683
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
d5ea7df96a8ed90fa652ffe0d82da280d0eb9668
239
py
Python
core/auth/local/group_management.py
sdklfjkjdf/yeti
c3639884963464bc2c3dd76f694ea20c4ef49068
[ "Apache-2.0" ]
1
2021-11-16T01:31:29.000Z
2021-11-16T01:31:29.000Z
core/auth/local/group_management.py
sdklfjkjdf/yeti
c3639884963464bc2c3dd76f694ea20c4ef49068
[ "Apache-2.0" ]
3
2020-12-04T21:17:20.000Z
2022-01-15T02:39:23.000Z
core/auth/local/group_management.py
sdklfjkjdf/yeti
c3639884963464bc2c3dd76f694ea20c4ef49068
[ "Apache-2.0" ]
null
null
null
from core.logger import userLogger from core.group import Group from mongoengine import NotUniqueError def create_group(groupname): try: return Group(groupname=groupname).save() except NotUniqueError: return False
23.9
48
0.753138
28
239
6.392857
0.571429
0.089385
0
0
0
0
0
0
0
0
0
0
0.192469
239
9
49
26.555556
0.927461
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.375
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
0
0
0
1
0
1
0
0
4
911a7c36682727bde661f01bcae72cce13e13137
193
py
Python
src/TrRosetta/feature/main.py
ruiyangsong/mCNN
889f182245f919fb9c7a8d97965b11576b01a96c
[ "MIT" ]
null
null
null
src/TrRosetta/feature/main.py
ruiyangsong/mCNN
889f182245f919fb9c7a8d97965b11576b01a96c
[ "MIT" ]
null
null
null
src/TrRosetta/feature/main.py
ruiyangsong/mCNN
889f182245f919fb9c7a8d97965b11576b01a96c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os os.system('./retrieve_pdb_chain.py') os.system('./map_pos.py') os.system('./TMalign.py') os.system('./CalSA.py') os.system('./coord.py')
21.444444
36
0.647668
32
193
3.8125
0.59375
0.327869
0.327869
0
0
0
0
0
0
0
0
0.005587
0.072539
193
9
37
21.444444
0.675978
0.217617
0
0
0
0
0.446667
0.153333
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
912be562c4955754686bc0124903f643f94e0789
976
py
Python
cohorts_proj/datasets/mymodels/raw_dictionary.py
gellerjulia/harmonization-website
c47b109d9110e34520ef43469b6b5ccac01cc178
[ "MIT" ]
null
null
null
cohorts_proj/datasets/mymodels/raw_dictionary.py
gellerjulia/harmonization-website
c47b109d9110e34520ef43469b6b5ccac01cc178
[ "MIT" ]
null
null
null
cohorts_proj/datasets/mymodels/raw_dictionary.py
gellerjulia/harmonization-website
c47b109d9110e34520ef43469b6b5ccac01cc178
[ "MIT" ]
null
null
null
from django.db import models CAT_FLO_TYPE = ( ('iris-setosa', 'Iris-setosa'), ('iris-virginica', 'Iris-virginica'), ('iris-versicolor', 'Iris-versicolor'), ) class FlowerTypeField(models.CharField): def __init__(self, *args, **kwargs): super(FlowerTypeField, self).__init__(*args, **kwargs) def get_prep_value(self, value): return str(value).lower() class RawDictionary(models.Model): cohort = models.CharField(max_length=100) var_name = models.CharField(max_length=100) form_name = models.CharField(max_length=100) section_name = models.CharField(max_length=100) field_type = models.CharField(max_length=100) field_label = models.CharField(max_length =100) field_choices = models.CharField(max_length= 100) field_min = models.CharField(max_length= 100) field_max = models.CharField(max_length= 100) # The type of flower #flower_type = FlowerTypeField(max_length=100, choices=CAT_FLO_TYPE)
32.533333
72
0.715164
125
976
5.32
0.352
0.225564
0.180451
0.324812
0.421053
0.33985
0
0
0
0
0
0.036585
0.159836
976
29
73
33.655172
0.77439
0.08709
0
0
0
0
0.09009
0
0
0
0
0
0
1
0.095238
false
0
0.047619
0.047619
0.714286
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
0
0
1
0
0
4
91519cb7674871a52428b5127ab4151498042145
3,738
py
Python
resources/clients.py
axonepro/sdk-ooti
146ba758f571352d02daa56349e8b3affd8ca5a9
[ "Unlicense" ]
1
2021-03-13T16:04:54.000Z
2021-03-13T16:04:54.000Z
resources/clients.py
axonepro/sdk-ooti
146ba758f571352d02daa56349e8b3affd8ca5a9
[ "Unlicense" ]
7
2021-07-21T12:42:39.000Z
2022-01-06T10:34:04.000Z
resources/clients.py
axonepro/sdk-ooti
146ba758f571352d02daa56349e8b3affd8ca5a9
[ "Unlicense" ]
2
2021-06-22T08:10:48.000Z
2021-09-01T09:16:41.000Z
import requests import json from .helper import Helper class Clients(Helper): def __init__(self, base_url, org_pk, teams_pk, access_token, _csrf_token, headers, pagination): super().__init__(base_url, org_pk, teams_pk, access_token, _csrf_token, headers, pagination) def get_clients_list(self, team_pk, page=1): """Get the clients list Keyword arguments: pk -- the pk of the team """ route = 'v1/clients/list/{0}/'.format(self.org_pk) parameters = '?team={0}&page_size={1}&page={2}'.format(team_pk, self.pagination, page) response = self.process_request(requests, 'GET', self.base_url, route, self.headers, parameters, None) return self.process_response(response, True) # TODO POST on /api/v1/clients/list/{org_pk}/ def get_clients_details(self, pk): """Get the client details Keyword arguments: pk -- the pk of the client """ route = 'v1/clients/{0}/'.format(pk) response = self.process_request(requests, 'GET', self.base_url, route, self.headers, None, None) return self.process_response(response) def create_client(self, data): """ Create client Keyword arguments: data -- data create, required fields: { "company_name": "string", "number": "string", "currency": "string" (currency_pk) "billing_address": "string", "team": "string", "tags": [] } """ route = 'v1/clients/list/{0}/'.format(self.org_pk) response = self.process_request(requests, 'POST', self.base_url, route, self.headers, None, json.dumps(data)) return self.process_response(response) def update_client(self, pk, data): """ Update client Keyword arguments: pk -- pk of the client data -- data create, required fields: { "company_name": "string", "currency": "string" (currency_pk), "number": "string", "business_vat_id: "string", "billing_address": "string", "group": "?" "address: "string" } """ route = 'v1/clients/{0}/'.format(pk) response = self.process_request(requests, 'PATCH', self.base_url, route, self.headers, None, json.dumps(data)) return self.process_response(response) def delete_client(self, pk): """ Delete client Keyword arguments: pk -- pk of the client """ route = 'v1/clients/{0}/'.format(pk) response = self.process_request(requests, 'DELETE', self.base_url, route, self.headers, None, None) return self.process_response(response) # TODO GET on /api/v1/clients/export/{org_pk}/ # TODO GET on /api/v1/clients/group/list/{org_pk}/ # TODO POST on /api/v1/clients/group/list/{org_pk}/ # TODO GET on /api/v1/clients/group/{id}/ # TODO PATCH on /api/v1/clients/group/{id}/ # TODO DELETE on /api/v1/clients/group/{id}/ # TODO GET on /api/v1/clients/project/list/{org_pk}/ # TODO POST on /api/v1/clients/project/list/{org_pk}/ # TODO GET on /api/v1/clients/project/{id}/ # TODO PATCH on /api/v1/clients/project/{id}/ # TODO DELETE on /api/v1/clients/project/{id}/ # TODO GET on /api/v1/clients/split/list/{org_pk}/ # TODO POST on /api/v1/clients/split/list/{org_pk}/ # TODO GET on /api/v1/clients/split/{id}/ # TODO PATCH on /api/v1/clients/split/{id}/ # TODO DELETE on /api/v1/clients/split/{id}/ # TODO POST on /api/v1/clients/{id}/apply_default_contact/
29.433071
118
0.59069
471
3,738
4.549894
0.159236
0.096594
0.058796
0.117592
0.759683
0.734484
0.671489
0.544564
0.474102
0.313579
0
0.01173
0.270198
3,738
127
119
29.433071
0.773827
0.43633
0
0.333333
0
0
0.076966
0.017847
0
0
0
0.015748
0
1
0.222222
false
0
0.111111
0
0.555556
0
0
0
0
null
0
0
0
0
1
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
0
1
0
0
4
e67821f267879245a88e03936e8dac826a09b8d2
196
py
Python
kita_friends/admin.py
FelixTheC/beak_emailer_list
8bb34681f1d6b35a8d0cc8a81e03d1044cf74f06
[ "MIT" ]
null
null
null
kita_friends/admin.py
FelixTheC/beak_emailer_list
8bb34681f1d6b35a8d0cc8a81e03d1044cf74f06
[ "MIT" ]
null
null
null
kita_friends/admin.py
FelixTheC/beak_emailer_list
8bb34681f1d6b35a8d0cc8a81e03d1044cf74f06
[ "MIT" ]
null
null
null
from django.contrib import admin from kita_friends.models import KitaFriends @admin.register(KitaFriends) class KitaFriendsAdmin(admin.ModelAdmin): list_display = ('name', 'email', 'kita')
21.777778
44
0.77551
23
196
6.521739
0.73913
0
0
0
0
0
0
0
0
0
0
0
0.117347
196
8
45
24.5
0.867052
0
0
0
0
0
0.066327
0
0
0
0
0
0
1
0
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
e687d064b1f15f8654e3b07bc99a16f26dc76104
9,687
py
Python
test/test_special.py
Sauci/pysvd
6ddfb606a47d3cb688b1041d0ed6058f90f144b9
[ "MIT" ]
2
2020-12-09T08:03:31.000Z
2021-07-02T08:53:19.000Z
test/test_special.py
Sauci/pysvd
6ddfb606a47d3cb688b1041d0ed6058f90f144b9
[ "MIT" ]
3
2019-09-05T10:41:32.000Z
2021-06-12T21:45:44.000Z
test/test_special.py
Sauci/pysvd
6ddfb606a47d3cb688b1041d0ed6058f90f144b9
[ "MIT" ]
1
2019-09-26T07:51:31.000Z
2019-09-26T07:51:31.000Z
import unittest import xml.etree.ElementTree as ET import pysvd class TestSpecialCluster(unittest.TestCase): @classmethod def setUpClass(cls): node = ET.parse("test/specialCluster.xml").getroot() cls.peripheral = pysvd.element.Peripheral(None, node) def test_general(self): peripheral = self.peripheral self.assertEqual(peripheral.name, "RTC") self.assertEqual(peripheral.version, "1.0.1") self.assertEqual(peripheral.description, "Real-Time Counter") self.assertEqual(peripheral.groupName, "RTC") self.assertEqual(peripheral.prependToName, "RTC_") self.assertEqual(peripheral.baseAddress, 0x40001400) def test_address_block(self): self.assertEqual(len(self.peripheral.addressBlocks), 1) addressBlock = self.peripheral.addressBlocks[0] self.assertEqual(addressBlock.offset, 0) self.assertEqual(addressBlock.size, 0x40) self.assertEqual(addressBlock.usage, pysvd.type.addressBlockUsage.registers) def test_interrupt(self): self.assertEqual(len(self.peripheral.interrupts), 1) interrupt = self.peripheral.interrupts[0] self.assertEqual(interrupt.name, "RTC_INTREQ") self.assertEqual(interrupt.value, 3) def test_register(self): peripheral = self.peripheral self.assertEqual(len(peripheral.registers), 0) def test_cluster(self): peripheral = self.peripheral cluster_index = 0 self.assertEqual(len(peripheral.clusters), 3) for cluster in peripheral.clusters: if cluster_index == 0: self.assertEqual(cluster.name, "MODE0") self.assertEqual(cluster.description, "32-bit Counter with Single 32-bit Compare") self.assertEqual(cluster.headerStructName, "RtcMode0") self.assertEqual(cluster.addressOffset, 0) elif cluster_index == 1: self.assertEqual(cluster.name, "MODE1") self.assertEqual(cluster.description, "16-bit Counter with Two 16-bit Compares") self.assertEqual(cluster.alternateCluster, "MODE0") self.assertEqual(cluster.headerStructName, "RtcMode1") self.assertEqual(cluster.addressOffset, 0) elif cluster_index == 2: self.assertEqual(cluster.name, "MODE2") self.assertEqual(cluster.description, "Clock/Calendar with Alarm") self.assertEqual(cluster.alternateCluster, "MODE0") self.assertEqual(cluster.headerStructName, "RtcMode2") self.assertEqual(cluster.addressOffset, 0) cluster_index += 1 def test_cluster0_register(self): peripheral = self.peripheral self.assertEqual(len(peripheral.clusters), 3) cluster = peripheral.clusters[0] register_index = 0 self.assertEqual(len(cluster.registers), 5) for register in cluster.registers: if register_index == 0: self.assertEqual(register.name, "CTRL") self.assertEqual(register.description, "MODE0 Control") self.assertEqual(register.addressOffset, 0x00) self.assertEqual(register.size, 16) elif register_index == 1: self.assertEqual(register.name, "READREQ") self.assertEqual(register.description, "Read Request") self.assertEqual(register.addressOffset, 0x02) self.assertEqual(register.size, 16) self.assertEqual(register.resetValue, 0x0010) elif register_index == 2: self.assertEqual(register.name, "STATUS") self.assertEqual(register.description, "Status") self.assertEqual(register.addressOffset, 0x0A) self.assertEqual(register.size, 8) elif register_index == 3: self.assertEqual(register.name, "COUNT") self.assertEqual(register.description, "MODE0 Counter Value") self.assertEqual(register.addressOffset, 0x10) self.assertEqual(register.size, 32) elif register_index == 4: self.assertEqual(register.name, "COMP0") self.assertEqual(register.description, "MODE0 Compare n Value") self.assertEqual(register.addressOffset, 0x18) self.assertEqual(register.size, 32) register_index += 1 def test_cluster1_register(self): peripheral = self.peripheral self.assertEqual(len(peripheral.clusters), 3) cluster = peripheral.clusters[1] register_index = 0 self.assertEqual(len(cluster.registers), 7) for register in cluster.registers: if register_index == 0: self.assertEqual(register.name, "CTRL") self.assertEqual(register.description, "MODE1 Control") self.assertEqual(register.addressOffset, 0x00) self.assertEqual(register.size, 16) elif register_index == 1: self.assertEqual(register.name, "READREQ") self.assertEqual(register.description, "Read Request") self.assertEqual(register.addressOffset, 0x02) self.assertEqual(register.size, 16) self.assertEqual(register.resetValue, 0x0010) elif register_index == 2: self.assertEqual(register.name, "STATUS") self.assertEqual(register.description, "Status") self.assertEqual(register.addressOffset, 0x0A) self.assertEqual(register.size, 8) elif register_index == 3: self.assertEqual(register.name, "COUNT") self.assertEqual(register.description, "MODE1 Counter Value") self.assertEqual(register.addressOffset, 0x10) self.assertEqual(register.size, 16) elif register_index == 4: self.assertEqual(register.name, "PER") self.assertEqual(register.description, "MODE1 Counter Period") self.assertEqual(register.addressOffset, 0x14) self.assertEqual(register.size, 16) elif register_index == 5: self.assertEqual(register.name, "COMP0") self.assertEqual(register.description, "MODE1 Compare n Value") self.assertEqual(register.addressOffset, 0x18) self.assertEqual(register.size, 16) elif register_index == 6: self.assertEqual(register.name, "COMP1") self.assertEqual(register.description, "MODE1 Compare n Value") self.assertEqual(register.addressOffset, 0x1A) self.assertEqual(register.size, 16) register_index += 1 def test_cluster2_register(self): peripheral = self.peripheral self.assertEqual(len(peripheral.clusters), 3) cluster = peripheral.clusters[2] register_index = 0 self.assertEqual(len(cluster.registers), 6) for register in cluster.registers: if register_index == 0: self.assertEqual(register.name, "CTRL") self.assertEqual(register.description, "MODE2 Control") self.assertEqual(register.addressOffset, 0x00) self.assertEqual(register.size, 16) elif register_index == 1: self.assertEqual(register.name, "READREQ") self.assertEqual(register.description, "Read Request") self.assertEqual(register.addressOffset, 0x02) self.assertEqual(register.size, 16) self.assertEqual(register.resetValue, 0x0010) elif register_index == 2: self.assertEqual(register.name, "STATUS") self.assertEqual(register.description, "Status") self.assertEqual(register.addressOffset, 0x0A) self.assertEqual(register.size, 8) elif register_index == 3: self.assertEqual(register.name, "CLOCK") self.assertEqual(register.description, "MODE2 Clock Value") self.assertEqual(register.addressOffset, 0x10) self.assertEqual(register.size, 32) elif register_index == 4: self.assertEqual(register.name, "ALARM0") self.assertEqual(register.description, "MODE2 Alarm n Value") self.assertEqual(register.addressOffset, 0x18) self.assertEqual(register.size, 32) elif register_index == 5: self.assertEqual(register.name, "MASK0") self.assertEqual(register.description, "MODE2 Alarm n Mask") self.assertEqual(register.addressOffset, 0x1C) self.assertEqual(register.size, 8) register_index += 1 class TestSpecialDerivePeripheral(unittest.TestCase): def test_ctor(self): pass def test_attributes(self): pass class TestSpecialDeriveRegister(unittest.TestCase): def test_ctor(self): pass def test_attributes(self): pass class TestSpecialDeriveField(unittest.TestCase): def test_ctor(self): pass def test_attributes(self): pass class TestSpecialDeriveEnumeratedValues(unittest.TestCase): def test_ctor(self): pass def test_attributes(self): pass class TestSpecialDeriveAll(unittest.TestCase): def test_ctor(self): pass def test_attributes(self): pass
37.257692
98
0.619387
922
9,687
6.450108
0.136659
0.277451
0.290062
0.081722
0.739869
0.699512
0.665378
0.650412
0.582142
0.532201
0
0.028373
0.286879
9,687
259
99
37.401544
0.832513
0
0
0.605128
0
0
0.060081
0.002374
0
0
0.010736
0
0.564103
1
0.097436
false
0.051282
0.015385
0
0.14359
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
1
0
0
0
0
0
4
e69383cb65f2a918d451002a11b8ee6ac7a14f8e
231
py
Python
gapipy/models/associated_service.py
wmak/gapipy
b6849606d4f6af24b9f871f65e87aaf0d0c013cc
[ "MIT" ]
4
2015-03-19T02:10:35.000Z
2018-10-22T19:51:44.000Z
gapipy/models/associated_service.py
wmak/gapipy
b6849606d4f6af24b9f871f65e87aaf0d0c013cc
[ "MIT" ]
69
2015-03-11T20:58:04.000Z
2021-10-12T18:39:15.000Z
gapipy/models/associated_service.py
wmak/gapipy
b6849606d4f6af24b9f871f65e87aaf0d0c013cc
[ "MIT" ]
1
2016-08-31T15:22:43.000Z
2016-08-31T15:22:43.000Z
from .base import BaseModel class AssociatedService(BaseModel): """ Represent an associated service. Each service can be associated to other services within the same booking. """ _as_is_fields = ['id', 'href']
25.666667
67
0.701299
28
231
5.678571
0.892857
0
0
0
0
0
0
0
0
0
0
0
0.212121
231
8
68
28.875
0.873626
0.458874
0
0
0
0
0.057143
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
e69ee0c351b3290fcfedc07394e71995e2b3e46b
91
py
Python
backend/apps/entities/apps.py
gabrielmbmb/intry4.0-backend
1ac28ad333c93ed6069dc2db4d9fe3a12b8a1b24
[ "MIT" ]
1
2020-09-19T11:00:31.000Z
2020-09-19T11:00:31.000Z
musicbrainz/entities/apps.py
tourdownunder/musicbrainz-django
bd8f8767ca0144dc10fd9ba2b59beb9de9788640
[ "BSD-3-Clause" ]
8
2019-12-30T14:30:13.000Z
2021-09-22T18:03:10.000Z
backend/apps/entities/apps.py
gabrielmbmb/intry4.0-backend
1ac28ad333c93ed6069dc2db4d9fe3a12b8a1b24
[ "MIT" ]
1
2021-10-03T10:06:29.000Z
2021-10-03T10:06:29.000Z
from django.apps import AppConfig class EntitiesConfig(AppConfig): name = "entities"
15.166667
33
0.758242
10
91
6.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.164835
91
5
34
18.2
0.907895
0
0
0
0
0
0.087912
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
e6a51d6f29698ab8325adcb3e32abe6570af534b
6,077
py
Python
generate.py
LordRonz/LordRonz
a8ab0f24376c8899f56a36a29650a010cc23fcca
[ "WTFPL" ]
3
2021-10-13T09:10:15.000Z
2022-02-12T16:29:48.000Z
generate.py
LordRonz/LordRonz
a8ab0f24376c8899f56a36a29650a010cc23fcca
[ "WTFPL" ]
9
2021-05-04T11:47:11.000Z
2022-03-02T00:46:51.000Z
generate.py
LordRonz/LordRonz
a8ab0f24376c8899f56a36a29650a010cc23fcca
[ "WTFPL" ]
9
2021-05-31T18:05:39.000Z
2022-03-16T05:58:22.000Z
from datetime import datetime with open("./README.md", "w") as f: f.write(f'''<p align="center"> <img src="https://readme-typing-svg.herokuapp.com?color=%23EB2754&size=40&center=true&width=600&height=69&lines=Henlo;Sussy+baka" alt="Typing SVG"> <img src="./shrek.gif" alt="Vibin Greenies"/> </p> <p align="center"> <a href="https://github.com/lordronz/" target="_blank"> <img src="https://komarev.com/ghpvc/?username=lordronz&label=Profile%20views&color=690000&style=flat-square" alt="LordRonz"/> </a> <a href="https://badges.pufler.dev" target="_blank"> <img src="https://badges.pufler.dev/years/lordronz?style=flat-square&color=690000" alt="Years Badge"/> </a> <a href="https://badges.pufler.dev" target="_blank"> <img src="https://badges.pufler.dev/repos/lordronz?style=flat-square&color=690000" alt="Repos Badge"/> </a> <a href="https://badges.pufler.dev" target="_blank"> <img src="https://badges.pufler.dev/gists/lordronz?style=flat-square&color=690000" alt="Gists Badge"/> </a> <a href="https://badges.pufler.dev" target="_blank"> <img src="https://badges.pufler.dev/commits/monthly/lordronz?style=flat-square&color=690000" alt="Commits Badge"/> </a> <a href="https://badges.pufler.dev" target="_blank"> <img src="https://img.shields.io/github/followers/lordronz?style=social" alt="GitHub followers"/> </a> <a href="https://badges.pufler.dev" target="_blank"> <img src="https://img.shields.io/github/stars/lordronz?affiliations=OWNER%2CCOLLABORATOR&style=social" alt="GitHub User's stars"/> </a> <a href="https://github.com/lordronz/" target="_blank"> <img src="https://img.shields.io/badge/isAwesome-true-blue?style=flat-square&color=690000" alt="LordRonz"/> </a> </p> <p align="center"> <img src="https://raw.githubusercontent.com/lordronz/lordronz/snek-output/github-contribution-grid-snake.svg" alt="Snek"/> <img src="https://github.com/LordRonz/LordRonz/blob/main/github-metrics.svg" alt="Metrics"/> <a href="https://github.com/ryo-ma/github-profile-trophy"> <img src="https://github-profile-trophy.vercel.app/?username=lordronz&theme=monokai" alt="lordronz"/> </a> </p> ## 🔧 Technologies <p align="center"> <a href="https://www.cprogramming.com/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/c/c-original.svg" alt="c" width="40" height="40"/> </a> <a href="https://www.w3schools.com/cpp/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/cplusplus/cplusplus-original.svg" alt="cplusplus" width="40" height="40"/> </a> <a href="https://www.w3schools.com/css/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/css3/css3-original-wordmark.svg" alt="css3" width="40" height="40"/> </a> <a href="https://git-scm.com/" target="_blank"> <img src="https://www.vectorlogo.zone/logos/git-scm/git-scm-icon.svg" alt="git" width="40" height="40"/> </a> <a href="https://www.w3.org/html/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/html5/html5-original-wordmark.svg" alt="html5" width="40" height="40"/> </a> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg" alt="javascript" width="40" height="40"/> </a> <a href="https://www.linux.org/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/linux/linux-original.svg" alt="linux" width="40" height="40"/> </a> <a href="https://nodejs.org" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/nodejs/nodejs-original-wordmark.svg" alt="nodejs" width="40" height="40"/> </a> <a href="https://www.python.org" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/python/python-original.svg" alt="python" width="40" height="40"/> </a> <a href="https://www.typescriptlang.org/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/typescript/typescript-original.svg" alt="typescript" width="40" height="40"/> </a> <a href="https://expressjs.com" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/express/express-original-wordmark.svg" alt="express" width="40" height="40"/> </a> <a href="https://reactjs.org/" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/react/react-original-wordmark.svg" alt="react" width="40" height="40"/> </a> <a href="https://nextjs.org/" target="_blank" rel="noreferrer"> <img src="https://cdn.worldvectorlogo.com/logos/nextjs-2.svg" alt="nextjs" width="40" height="40"/> </a> <a href="https://postman.com" target="_blank"> <img src="https://www.vectorlogo.zone/logos/getpostman/getpostman-icon.svg" alt="postman" width="40" height="40"/> </a> </p> <details> <summary>💻 GitHub Profile Stats</summary> <br/> <p align="center"> <img src="https://github-readme-stats.vercel.app/api/top-langs?username=lordronz&show_icons=true&theme=monokai&locale=en&layout=compact&langs_count=10&hide=html,css,vue,cmake,jupyter%20notebook,scss,tex,smarty" alt="Top Lang"/> <img src="https://github-readme-stats.vercel.app/api?username=lordronz&show_icons=true&theme=monokai&locale=en" alt="LordRonz"/> <img src="https://github-readme-streak-stats.herokuapp.com/?user=lordronz&theme=monokai" alt="LordRonz"/> </p> <b>Note:</b> Top languages is only a metric of the languages my public code consists of and doesn't reflect experience or skill level. </details> <br/> --- <div align="center"> <a href="https://lordronz.github.io" target="_blank">Website: lordronz.github.io</a><br/><br/> </div> ![](https://hit.yhype.me/github/profile?user_id=53823544) Updated: {datetime.now().strftime("%d/%m/%Y %H:%M:%S")} ''')
89.367647
2,791
0.697384
885
6,077
4.760452
0.227119
0.042725
0.075718
0.080703
0.582008
0.54854
0.51436
0.479231
0.417755
0.347971
0
0.023449
0.087708
6,077
68
2,792
89.367647
0.736111
0
0
0.440678
0
0.322034
0.987496
0.014808
0
0
0
0
0
1
0
true
0
0.016949
0
0.016949
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
e6b0717eb0c6ffcf32cfe7cc30c4e486c531c221
434
py
Python
PwnTheBox/Hacking For Vodka.py
Don2025/CTFwriteUp
41e0a5bf87a1a02dd1548e621853c145ff64cedb
[ "MIT" ]
2
2022-03-20T02:27:59.000Z
2022-03-20T02:28:02.000Z
PwnTheBox/Hacking For Vodka.py
Don2025/CTFwriteUp
41e0a5bf87a1a02dd1548e621853c145ff64cedb
[ "MIT" ]
null
null
null
PwnTheBox/Hacking For Vodka.py
Don2025/CTFwriteUp
41e0a5bf87a1a02dd1548e621853c145ff64cedb
[ "MIT" ]
null
null
null
a = [0x77, 0x60, 0x76, 0x66, 0x72, 0x77, 0x7D, 0x73, 0x60, 0x3D, 0x64, 0x60, 0x39, 0x52, 0x66, 0x3B, 0x73, 0x7A, 0x23, 0x7D, 0x73, 0x4A, 0x70, 0x78, 0x6A, 0x46, 0x69, 0x2B, 0x76, 0x68, 0x41, 0x77, 0x41, 0x42, 0x49, 0x4A, 0x4A, 0x42, 0x40, 0x48, 0x5A, 0x5A, 0x45, 0x41, 0x59, 0x03, 0x5A, 0x4A, 0x51, 0x5C, 0x4F] flag = '' for i in range(len(a)): flag += chr(a[i]^i) print(flag) # watevr{th4nk5_h4ck1ng_for_s0ju_hackingforsoju.team}
86.8
310
0.670507
73
434
3.931507
0.671233
0.055749
0
0
0
0
0
0
0
0
0
0.389041
0.158986
434
5
311
86.8
0.39726
0.117512
0
0
0
0
0
0
0
0
0.534031
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
4
e6ba5cb32c8c9200c90c0b7e93702166a725c3e6
11,888
py
Python
main.py
Carlos-Bonfim/Aplicar_filtros_imagens
a49468b82fefb1b60f5ac3d5b4a0b7d8a7e8e5d6
[ "MIT" ]
null
null
null
main.py
Carlos-Bonfim/Aplicar_filtros_imagens
a49468b82fefb1b60f5ac3d5b4a0b7d8a7e8e5d6
[ "MIT" ]
null
null
null
main.py
Carlos-Bonfim/Aplicar_filtros_imagens
a49468b82fefb1b60f5ac3d5b4a0b7d8a7e8e5d6
[ "MIT" ]
null
null
null
# import bibliotecas from typing import List import streamlit as st import numpy as np import cv2 from PIL import Image, ImageEnhance from io import BytesIO import base64 st.set_option('deprecation.showfileUploaderEncoding', False) def get_image_download_link(img): # Generates a link allowing the PIL image to be downloaded # in: PIL image # out: href string buffered = BytesIO() img.save(buffered, format="JPEG") img_str = base64.b64encode(buffered.getvalue()).decode() href = f'<a href="data:file/jpg;base64,{img_str}" download="My_photo.jpg">Download result</a>' return href def main(): banner = Image.open('images/banner.png') st.sidebar.image(banner, width=300) st.sidebar.subheader("Meu Portfolio, clique abaixo:") link = '[*carlosbonfim.com*](https://carlosbonfim.com)' st.sidebar.markdown(link, unsafe_allow_html=True) st.title('**Projeto 1 - Aplicação de filtros em Imagens**') st.sidebar.title('**Filtros**') # Menu com opções diferentes de páginas #opcoes_menu = ['Filtros', 'Sobre'] #st.sidebar.selectbox('Escolha uma opção', opcoes_menu) load_image = Image.open('images/empty.jpg') # carregando uma imagem type_images = ['jpeg', 'jpg', 'png'] image_file = st.file_uploader('Carregue uma foto e aplique o filtro no menu lateral', type=type_images) if image_file is not None: load_image = Image.open(image_file) st.sidebar.text('Imagem Original') st.sidebar.image(load_image, width=100) # filtros à serem aplicados filtros = st.sidebar.selectbox('**Selecione um filtro**', ['Original', 'Grayscale', 'Sketch', 'Sépia', 'Blur', 'Canny', 'Contraste e brilho', 'Sharpness']) if filtros == 'Grayscale': converted_image = np.array(load_image.convert('RGB')) gray_image = cv2.cvtColor(converted_image, cv2.COLOR_RGB2GRAY) opt_size = st.sidebar.slider('Selecione o tamanho', 1, 200, 50) width = int(load_image.size[0] * opt_size / 100) height = int(load_image.size[1] * opt_size / 100) dim = (width, height) st.sidebar.header("Ajuste o recorte da foto") left = st.sidebar.slider('Ajuste superior', 1, int(load_image.size[1]), 0) upper = st.sidebar.slider('Ajuste à esquerda', 1, int(load_image.size[1]), 0) right = st.sidebar.slider('Ajuste inferior', 1, int(load_image.size[0]), int(load_image.size[0])) lower = st.sidebar.slider('Ajuste à direita', 1, int(load_image.size[0]), int(load_image.size[0])) edited_photo_cont_gray = cv2.resize(gray_image[left:(right+1), upper:(lower+1)], dim, interpolation=cv2.INTER_AREA) st.image(edited_photo_cont_gray) # download da imagem result = Image.fromarray(edited_photo_cont_gray) st.markdown(get_image_download_link(result), unsafe_allow_html=True) elif filtros == 'Sketch': sketch_amount = st.sidebar.slider('Selecione a intensidade de contorno', 3, 81, 9, step=2) converted_image = np.array(load_image.convert('RGB')) gray_image = cv2.cvtColor(converted_image, cv2.COLOR_RGB2GRAY) inv_gray_image = 255 - gray_image blur_image = cv2.GaussianBlur(inv_gray_image, (sketch_amount, sketch_amount), 0, 0) sketch_image = cv2.divide(gray_image, 255 - blur_image, scale=256) opt_size = st.sidebar.slider('Selecione o tamanho', 1, 200, 50) width = int(load_image.size[0] * opt_size / 100) height = int(load_image.size[1] * opt_size / 100) dim = (width, height) st.sidebar.header("Ajuste o recorte da foto") left = st.sidebar.slider('Ajuste superior', 1, int(load_image.size[1]), 0) upper = st.sidebar.slider('Ajuste à esquerda', 1, int(load_image.size[1]), 0) right = st.sidebar.slider('Ajuste inferior', 1, int(load_image.size[0]), int(load_image.size[0])) lower = st.sidebar.slider('Ajuste à direita', 1, int(load_image.size[0]), int(load_image.size[0])) edited_photo_cont_sketch = cv2.resize(sketch_image[left:(right+1), upper:(lower+1)], dim, interpolation=cv2.INTER_AREA) st.image(edited_photo_cont_sketch) # download da imagem result = Image.fromarray(edited_photo_cont_sketch) st.markdown(get_image_download_link(result), unsafe_allow_html=True) elif filtros == 'Sépia': sepia_amount = st.sidebar.slider('Selecione a intensidade', 1, 3, 1, step=1) converted_image = np.array(load_image.convert('RGB')) kernel = np.array([[0.272, 0.534, 0.131], [0.349, 0.686, 0.168], [0.393, 0.769, 0.189]]) teste = kernel * sepia_amount sepia_image = cv2.filter2D(converted_image, -1, teste) opt_size = st.sidebar.slider('Selecione o tamanho', 1, 200, 50) width = int(load_image.size[0] * opt_size / 100) height = int(load_image.size[1] * opt_size / 100) dim = (width, height) st.sidebar.header("Ajuste o recorte da foto") left = st.sidebar.slider('Ajuste superior', 1, int(load_image.size[1]), 0) upper = st.sidebar.slider('Ajuste à esquerda', 1, int(load_image.size[1]), 0) right = st.sidebar.slider('Ajuste inferior', 1, int(load_image.size[0]), int(load_image.size[0])) lower = st.sidebar.slider('Ajuste à direita', 1, int(load_image.size[0]), int(load_image.size[0])) edited_photo_cont_sepia = cv2.resize(sepia_image[left:(right+1), upper:(lower+1)], dim, interpolation=cv2.INTER_AREA) #st.image(edited_photo_cont_sepia, channels='BGR') st.image(edited_photo_cont_sepia, channels='RGB') # download da imagem result = Image.fromarray(edited_photo_cont_sepia) st.markdown(get_image_download_link(result), unsafe_allow_html=True) elif filtros == 'Blur': b_amount = st.sidebar.slider('Selecione a intensidade', 3, 81, 9, step=2) converted_image = np.array(load_image.convert('RGB')) converted_image = cv2.cvtColor(converted_image, cv2.COLOR_RGB2BGR) blur_image = cv2.GaussianBlur(converted_image, (b_amount, b_amount), 0, 0) opt_size = st.sidebar.slider('Selecione o tamanho', 1, 200, 50) width = int(load_image.size[0] * opt_size / 100) height = int(load_image.size[1] * opt_size / 100) dim = (width, height) st.sidebar.header("Ajuste o recorte da foto") left = st.sidebar.slider('Ajuste superior', 1, int(load_image.size[1]), 0) upper = st.sidebar.slider('Ajuste à esquerda', 1, int(load_image.size[1]), 0) right = st.sidebar.slider('Ajuste inferior', 1, int(load_image.size[0]), int(load_image.size[0])) lower = st.sidebar.slider('Ajuste à direita', 1, int(load_image.size[0]), int(load_image.size[0])) edited_photo_cont_blur = cv2.resize(blur_image[left:(right+1), upper:(lower+1)], dim, interpolation=cv2.INTER_AREA) st.image(edited_photo_cont_blur, channels='BGR') # download da imagem result = Image.fromarray(edited_photo_cont_blur) st.markdown(get_image_download_link(result), unsafe_allow_html=True) elif filtros == 'Canny': b_amount = st.sidebar.slider('Selecione a intensidade', 1, 33, 3, step=2) converted_image = np.array(load_image.convert('RGB')) converted_image = cv2.cvtColor(converted_image, cv2.COLOR_RGB2BGR) blur_image = cv2.GaussianBlur(converted_image, (b_amount, b_amount), 0, 0) canny = cv2.Canny(blur_image, 100, 150) opt_size = st.sidebar.slider('Selecione o tamanho', 1, 200, 50) width = int(load_image.size[0] * opt_size / 100) height = int(load_image.size[1] * opt_size / 100) dim = (width, height) st.sidebar.header("Ajuste o recorte da foto") left = st.sidebar.slider('Ajuste superior', 1, int(load_image.size[1]), 0) upper = st.sidebar.slider('Ajuste à esquerda', 1, int(load_image.size[1]), 0) right = st.sidebar.slider('Ajuste inferior', 1, int(load_image.size[0]), int(load_image.size[0])) lower = st.sidebar.slider('Ajuste à direita', 1, int(load_image.size[0]), int(load_image.size[0])) edited_photo_cont_canny = cv2.resize(canny[left:(right+1), upper:(lower+1)], dim, interpolation=cv2.INTER_AREA) st.image(edited_photo_cont_canny) # download da imagem result = Image.fromarray(edited_photo_cont_canny) st.markdown(get_image_download_link(result), unsafe_allow_html=True) elif filtros == 'Contraste e brilho': bb_amount = st.sidebar.slider('brilho', -100, 100, 0) cc_amount = st.sidebar.slider('Contraste', -100, 100, 0) brightness = bb_amount contrast = cc_amount img = np.int16(load_image) img = img * (contrast / 127 + 1) - contrast + brightness img = np.clip(img, 0, 255) img = np.uint8(img) opt_size = st.sidebar.slider('Selecione o tamanho', 1, 200, 50) width = int(load_image.size[0] * opt_size / 100) height = int(load_image.size[1] * opt_size / 100) dim = (width, height) st.sidebar.header("Ajuste o recorte da foto") left = st.sidebar.slider('Ajuste superior', 1, int(load_image.size[1]), 0) upper = st.sidebar.slider('Ajuste à esquerda', 1, int(load_image.size[1]), 0) right = st.sidebar.slider('Ajuste inferior', 1, int(load_image.size[0]), int(load_image.size[0])) lower = st.sidebar.slider('Ajuste à direita', 1, int(load_image.size[0]), int(load_image.size[0])) edited_photo_cont_bril = cv2.resize(img[left:(right+1), upper:(lower+1)], dim, interpolation=cv2.INTER_AREA) st.image(edited_photo_cont_bril) # download da imagem result = Image.fromarray(edited_photo_cont_bril) st.markdown(get_image_download_link(result), unsafe_allow_html=True) elif filtros == 'Sharpness': sharp_amount = st.sidebar.slider('Selecione a intensidade', 0, 10, 1, step=1) converted_image = np.array(load_image.convert('RGB')) #converted_image = cv2.cvtColor(converted_image, cv2.COLOR_RGB2BGR) kernel = np.array([[-1.0, -1.0, -1.0], [-1.0, 9.0, -1.0], [-1.0, -1.0, -1.0]]) teste = kernel * sharp_amount sharp_image = cv2.filter2D(converted_image, -1, teste) opt_size = st.sidebar.slider('Selecione o tamanho', 1, 200, 50) width = int(load_image.size[0] * opt_size / 100) height = int(load_image.size[1] * opt_size / 100) dim = (width, height) st.sidebar.header("Ajuste o recorte da foto") left = st.sidebar.slider('Ajuste superior', 1, int(load_image.size[1]), 0) upper = st.sidebar.slider('Ajuste à esquerda', 1, int(load_image.size[1]), 0) right = st.sidebar.slider('Ajuste inferior', 1, int(load_image.size[0]), int(load_image.size[0])) lower = st.sidebar.slider('Ajuste à direita', 1, int(load_image.size[0]), int(load_image.size[0])) edited_photo_sharp = cv2.resize(sharp_image[left:(right + 1), upper:(lower + 1)], dim, interpolation=cv2.INTER_AREA) st.image(edited_photo_sharp, channels='RGB') # download da imagem result = Image.fromarray(edited_photo_sharp) st.markdown(get_image_download_link(result), unsafe_allow_html=True) elif filtros == 'Original': opt_size = st.sidebar.slider('Selecione o tamanho', min_value=int(load_image.size[0]/2), max_value=load_image.size[0]) st.image(load_image, width=opt_size) else: opt_size = st.sidebar.slider('Selecione o tamanho', min_value=int(load_image.size[0]/2), max_value=load_image.size[0]) st.image(load_image, width=opt_size) if __name__ == '__main__': main()
45.201521
127
0.652759
1,699
11,888
4.395527
0.125956
0.08677
0.104446
0.124264
0.735806
0.735806
0.735806
0.719068
0.699518
0.664837
0
0.040625
0.209034
11,888
263
128
45.201521
0.753589
0.044499
0
0.488636
0
0.005682
0.130059
0.009258
0
0
0
0
0
1
0.011364
false
0
0.039773
0
0.056818
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
e6c45c18d5a068957105efbc00418b636df5d6a5
141
py
Python
AIXOR/Utils/Utils.py
scando1993/MLPXORGate
0a1eefe32941f45be3c28b40d4f0637b23446fca
[ "BSD-3-Clause" ]
null
null
null
AIXOR/Utils/Utils.py
scando1993/MLPXORGate
0a1eefe32941f45be3c28b40d4f0637b23446fca
[ "BSD-3-Clause" ]
null
null
null
AIXOR/Utils/Utils.py
scando1993/MLPXORGate
0a1eefe32941f45be3c28b40d4f0637b23446fca
[ "BSD-3-Clause" ]
null
null
null
import json def save_file(filename, obj): with open(filename,'w') as fp: json.dump(obj, fp) def read_file(filename): pass
14.1
34
0.64539
22
141
4.045455
0.681818
0.269663
0
0
0
0
0
0
0
0
0
0
0.234043
141
10
35
14.1
0.824074
0
0
0
0
0
0.007042
0
0
0
0
0
0
1
0.333333
false
0.166667
0.166667
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
e6d972dedf63ed5eda159191889e6b094358c096
209
py
Python
src/__init__.py
transhapHigsn/neo4jFastAPI
03edd6cd49d104f74fd3f220d9d2cf8d0551fe1e
[ "Apache-2.0" ]
8
2020-08-17T20:12:03.000Z
2022-03-18T05:15:43.000Z
src/__init__.py
transhapHigsn/neo4jFastAPI
03edd6cd49d104f74fd3f220d9d2cf8d0551fe1e
[ "Apache-2.0" ]
1
2020-08-17T20:11:28.000Z
2020-08-31T05:40:29.000Z
src/__init__.py
transhapHigsn/neo4jFastAPI
03edd6cd49d104f74fd3f220d9d2cf8d0551fe1e
[ "Apache-2.0" ]
2
2020-08-17T20:12:06.000Z
2020-09-09T07:31:54.000Z
from neo4j import GraphDatabase from src.config import get_config driver = GraphDatabase.driver( get_config('neo4j', 'uri'), auth=( get_config('neo4j', 'username'), get_config('neo4j', 'password') ) )
19
34
0.717703
26
209
5.615385
0.461538
0.246575
0.287671
0
0
0
0
0
0
0
0
0.022099
0.133971
209
10
35
20.9
0.78453
0
0
0
0
0
0.162679
0
0
0
0
0
0
1
0
false
0.111111
0.222222
0
0.222222
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
e6fea186748fb91e3c2bf23506a0adaae3ab65ff
239
py
Python
setup.py
jeremyadavis/crdc-api
0539d2ac8cd50d855928b5fc18cc57ecb020c65a
[ "MIT" ]
null
null
null
setup.py
jeremyadavis/crdc-api
0539d2ac8cd50d855928b5fc18cc57ecb020c65a
[ "MIT" ]
null
null
null
setup.py
jeremyadavis/crdc-api
0539d2ac8cd50d855928b5fc18cc57ecb020c65a
[ "MIT" ]
null
null
null
# from setuptools import setup # setup( # name='crdc_api', # version='0.1.0', # packages=['crdc_api'], # entry_points={ # 'console_scripts': [ # 'crdc_api = crdc_api.__main__:main' # ] # })
19.916667
49
0.514644
25
239
4.52
0.64
0.247788
0
0
0
0
0
0
0
0
0
0.018293
0.313808
239
11
50
21.727273
0.670732
0.90795
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
fc064455be36cfe26117121448bf6429ea90d838
1,242
py
Python
TaobaoCrawler(new)/test/postman测试.py
Twentyfour2021/ECommerceCrawlers
901d1393382a6a121d476074586da2b994e1d4dd
[ "MIT" ]
3,469
2019-04-09T12:06:38.000Z
2022-03-31T14:06:43.000Z
TaobaoCrawler(new)/test/postman测试.py
Twentyfour2021/ECommerceCrawlers
901d1393382a6a121d476074586da2b994e1d4dd
[ "MIT" ]
48
2019-06-16T09:24:01.000Z
2022-03-12T00:03:32.000Z
TaobaoCrawler(new)/test/postman测试.py
Twentyfour2021/ECommerceCrawlers
901d1393382a6a121d476074586da2b994e1d4dd
[ "MIT" ]
1,069
2019-04-30T14:17:18.000Z
2022-03-31T07:12:48.000Z
import requests url = "https://h5api.m.taobao.com/h5/mtop.alimama.union.sem.landing.pc.items/1.0/?jsv=2.4.0&appKey=12574478&t=1582716745850&sign=1b91fff529136fed287df8f0056cecd6&api=mtop.alimama.union.sem.landing.pc.items&v=1.0&AntiCreep=true&dataType=jsonp&type=jsonp&ecode=0&callback=mtopjsonp2&data=%7B%22keyword%22%3A%22%E5%8D%8E%E4%B8%BA%E6%89%8B%E6%9C%BA%22%2C%22ppath%22%3A%22%22%2C%22loc%22%3A%22%22%2C%22minPrice%22%3A%22%22%2C%22maxPrice%22%3A%22%22%2C%22ismall%22%3A%22%22%2C%22ship%22%3A%22%22%2C%22itemAssurance%22%3A%22%22%2C%22exchange7%22%3A%22%22%2C%22custAssurance%22%3A%22%22%2C%22b%22%3A%22%22%2C%22clk1%22%3A%22%22%2C%22pvoff%22%3A%22%22%2C%22pageSize%22%3A%22100%22%2C%22page%22%3A%22%22%2C%22elemtid%22%3A%221%22%2C%22refpid%22%3A%22%22%2C%22pid%22%3A%22430673_1006%22%2C%22featureNames%22%3A%22spGoldMedal%2CdsrDescribe%2CdsrDescribeGap%2CdsrService%2CdsrServiceGap%2CdsrDeliver%2C%20dsrDeliverGap%22%2C%22ac%22%3A%22%22%2C%22wangwangid%22%3A%22%22%2C%22catId%22%3A%22%22%7D" payload = {} headers = { 'cookie': '_m_h5_tk=e0c7d67a1c53c77c6b99713095604dd2_1582728834870; _m_h5_tk_enc=4dd920929127292a2f2249db13ad10c4' } response = requests.request("GET", url, headers=headers, data=payload) print(response.text)
95.538462
983
0.788245
228
1,242
4.254386
0.434211
0.090722
0.11134
0.140206
0.23299
0.068041
0.068041
0
0
0
0
0.30198
0.024155
1,242
12
984
103.5
0.49835
0
0
0
0
0.125
0.874396
0.08132
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
fc3f71be83dd0e8341c5927688c47a87f47fd4ee
29
py
Python
feedback/tests/__init__.py
everyvoter/everyvoter
65d9b8bdf9b5c64057135c279f6e03b6c207e0fa
[ "MIT" ]
5
2019-07-01T17:50:44.000Z
2022-02-20T02:44:42.000Z
feedback/tests/__init__.py
everyvoter/everyvoter
65d9b8bdf9b5c64057135c279f6e03b6c207e0fa
[ "MIT" ]
3
2020-06-05T21:44:33.000Z
2021-06-10T21:39:26.000Z
feedback/tests/__init__.py
everyvoter/everyvoter
65d9b8bdf9b5c64057135c279f6e03b6c207e0fa
[ "MIT" ]
1
2021-12-09T06:32:40.000Z
2021-12-09T06:32:40.000Z
"""Tests for feedback app"""
14.5
28
0.655172
4
29
4.75
1
0
0
0
0
0
0
0
0
0
0
0
0.137931
29
1
29
29
0.76
0.758621
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
fc419b40610b35f9c4e9d26a70769ace5e041d58
1,832
py
Python
test/test_ezsigndocument_get_ezsignpages_v1_response.py
ezmaxinc/eZmax-SDK-python
6794b8001abfb7d9ae18a3b87aba164839b925a0
[ "MIT" ]
null
null
null
test/test_ezsigndocument_get_ezsignpages_v1_response.py
ezmaxinc/eZmax-SDK-python
6794b8001abfb7d9ae18a3b87aba164839b925a0
[ "MIT" ]
null
null
null
test/test_ezsigndocument_get_ezsignpages_v1_response.py
ezmaxinc/eZmax-SDK-python
6794b8001abfb7d9ae18a3b87aba164839b925a0
[ "MIT" ]
null
null
null
""" eZmax API Definition (Full) This API expose all the functionnalities for the eZmax and eZsign applications. # noqa: E501 The version of the OpenAPI document: 1.1.7 Contact: support-api@ezmax.ca Generated by: https://openapi-generator.tech """ import sys import unittest import eZmaxApi from eZmaxApi.model.common_response import CommonResponse from eZmaxApi.model.common_response_obj_debug import CommonResponseObjDebug from eZmaxApi.model.common_response_obj_debug_payload import CommonResponseObjDebugPayload from eZmaxApi.model.ezsigndocument_get_ezsignpages_v1_response_all_of import EzsigndocumentGetEzsignpagesV1ResponseAllOf from eZmaxApi.model.ezsigndocument_get_ezsignpages_v1_response_m_payload import EzsigndocumentGetEzsignpagesV1ResponseMPayload globals()['CommonResponse'] = CommonResponse globals()['CommonResponseObjDebug'] = CommonResponseObjDebug globals()['CommonResponseObjDebugPayload'] = CommonResponseObjDebugPayload globals()['EzsigndocumentGetEzsignpagesV1ResponseAllOf'] = EzsigndocumentGetEzsignpagesV1ResponseAllOf globals()['EzsigndocumentGetEzsignpagesV1ResponseMPayload'] = EzsigndocumentGetEzsignpagesV1ResponseMPayload from eZmaxApi.model.ezsigndocument_get_ezsignpages_v1_response import EzsigndocumentGetEzsignpagesV1Response class TestEzsigndocumentGetEzsignpagesV1Response(unittest.TestCase): """EzsigndocumentGetEzsignpagesV1Response unit test stubs""" def setUp(self): pass def tearDown(self): pass def testEzsigndocumentGetEzsignpagesV1Response(self): """Test EzsigndocumentGetEzsignpagesV1Response""" # FIXME: construct object with mandatory attributes with example values # model = EzsigndocumentGetEzsignpagesV1Response() # noqa: E501 pass if __name__ == '__main__': unittest.main()
38.978723
126
0.819323
159
1,832
9.238994
0.465409
0.049013
0.069435
0.046971
0.186521
0.165419
0.165419
0.112321
0
0
0
0.014879
0.119541
1,832
46
127
39.826087
0.895846
0.258188
0
0.130435
0
0
0.12282
0.106141
0
0
0
0.021739
0
1
0.130435
false
0.130435
0.391304
0
0.565217
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
1
0
1
0
0
4
fc42cf4f99e3e989028ee858ef73a6d7e1a753c2
7,615
py
Python
scanners/udp-probe.py
dev-zzo/pwn-tools
bb7a6ff42ec6945da3373e53d35836b22ce38413
[ "Unlicense" ]
7
2015-12-21T19:04:54.000Z
2020-05-14T12:12:03.000Z
scanners/udp-probe.py
dev-zzo/pwn-tools
bb7a6ff42ec6945da3373e53d35836b22ce38413
[ "Unlicense" ]
null
null
null
scanners/udp-probe.py
dev-zzo/pwn-tools
bb7a6ff42ec6945da3373e53d35836b22ce38413
[ "Unlicense" ]
null
null
null
#!/usr/bin/python """ UDP Service Scanner version 0.1 by dev_zzo This work has largely been inspired by: https://github.com/portcullislabs/udp-proto-scanner As is, this is more like a prober than scanner; it operates using predefined probes for each known protocol. """ import argparse import socket import struct import time __scan_spec = ( # port, service name, probe (53, 'DNSStatusRequest', "\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00"), (53, 'DNSVersionBindReq', "\x00\x06\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00\x07\x76\x65\x72\x73\x69\x6f\x6e\x04\x62\x69\x6e\x64\x00\x00\x10\x00\x03"), (69, 'tftp', "\x00\x01/etc/passwd\x00netascii\x00"), (111, 'rpc', "\x03\x9b\x65\x42\x00\x00\x00\x00\x00\x00\x00\x02\x00\x0f\x42\x43\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"), (111, 'RPCCheck', "\x72\xFE\x1D\x13\x00\x00\x00\x00\x00\x00\x00\x02\x00\x01\x86\xA0\x00\x01\x97\x7C\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"), (123, 'ntp', "\xcb\x00\x04\xfa\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbf\xbe\x70\x99\xcd\xb3\x40\x00"), (123, 'NTPRequest', "\xe3\x00\x04\xfa\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc5\x4f\x23\x4b\x71\xb1\x52\xf3"), (137, 'NBTStat', "\x80\xf0\x00\x10\x00\x01\x00\x00\x00\x00\x00\x00\x20\x43\x4b\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x00\x00\x21\x00\x01"), # SNMP v1 GetRequest PDU, with community=public (161, 'SNMPv1GetRequest-public', "\x30\x82\x00\x2f\x02\x01\x00\x04\x06\x70\x75\x62\x6c\x69\x63\xa0\x82\x00\x20\x02\x04\x4c\x33\xa7\x56\x02\x01\x00\x02\x01\x00\x30\x82\x00\x10\x30\x82\x00\x0c\x06\x08\x2b\x06\x01\x02\x01\x01\x05\x00\x05\x00"), # SNMP v3 GetRequest PDU, no auth, no priv, contextEngineID=0, contextName=0 # Unlikely to work... (161, 'SNMPv3GetRequest', "\x30\x3a\x02\x01\x03\x30\x0f\x02\x02\x4a\x69\x02\x03\x00\xff\xe3\x04\x01\x04\x02\x01\x03\x04\x10\x30\x0e\x04\x00\x02\x01\x00\x02\x01\x00\x04\x00\x04\x00\x04\x00\x30\x12\x04\x00\x04\x00\xa0\x0c\x02\x02\x37\xf0\x02\x01\x00\x02\x01\x00\x30\x00"), (177, 'xdmcp', "\x00\x01\x00\x02\x00\x01\x00\x00"), (500, 'ike', "\x5b\x5e\x64\xc0\x3e\x99\xb5\x11\x00\x00\x00\x00\x00\x00\x00\x00\x01\x10\x02\x00\x00\x00\x00\x00\x00\x00\x01\x50\x00\x00\x01\x34\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x01\x28\x01\x01\x00\x08\x03\x00\x00\x24\x01\x01"), (523, 'db2', "DB2GETADDR\x00SQL08020"), (1434, 'ms-sql', "\x02"), (1434, 'ms-sql-slam', "\x0A"), (1604, 'citrix', "\x1e\x00\x01\x30\x02\xfd\xa8\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"), (5405, 'net-support', "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"), (6502, 'netop', "\xd6\x81\x81\x52\x00\x00\x00\xf3\x87\x4e\x01\x02\x32\x00\xa8\xc0\x00\x00\x01\x13\xc1\xd9\x04\xdd\x03\x7d\x00\x00\x0d\x00\x54\x48\x43\x54\x48\x43\x54\x48\x43\x54\x48\x43\x54\x48\x43\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x02\x32\x00\xa8\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"), ) def ip2long(ipaddr): return long(struct.unpack('!L', socket.inet_aton(ipaddr))[0]) def long2ip(ipaddr): return socket.inet_ntoa(struct.pack('!L', ipaddr)) def __dump_bytes(data): return ' '.join([('%02X' % ord(x)) for x in data]) def __dump_chars(data): return ''.join([(x if 0x20 <= ord(x) < 0x80 else '.') for x in data]) def dump(data): i = 0 lines = [] while i < len(data): line = data[i:(i + 16)] p1 = __dump_bytes(line[:8]) p2 = __dump_bytes(line[8:]) if len(line) > 8 else '' lines.append('%08X %-24s %-24s %s' % (i, p1, p2, __dump_chars(line))) i += 16 return "\n".join(lines) def parse_targets(targets): "Parse the target specs provided by the user" results = [] for target_spec in targets: if '/' in target_spec: # a.b.c.d/m ? net_addr, net_mask = target_spec.split('/') net_addr = ip2long(net_addr) net_mask = int(net_mask) dev_mask = (1 << (32 - net_mask)) - 1 net_addr = net_addr & ~dev_mask # First address is not allocated, last address is broadcast for i in xrange(1, dev_mask): addr = long2ip(net_addr + i) results.append(addr) elif '-' in target_spec: # a.b.c.d-e.f.g.h ? start_addr, end_addr = target_spec.split('-') addr = ip2long(start_addr) end_addr = ip2long(end_addr) while addr <= end_addr: addr = long2ip(a) results.append(addr) addr += 1 else: addr = ip2long(target_spec) results.append(target_spec) return results def scan_main(args): "Main scanning routine" global __scan_spec targets = parse_targets(args.targets) responses = {} print("Starting scan.") s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.bind(('', 57022)) try: for port, name, probe in __scan_spec: print("Running probe '%s'..." % name) s.settimeout(None) for target in targets: s.sendto(probe, (target, port)) s.settimeout(0.0) # print("Waiting for replies...") time.sleep(args.delay) while True: try: response, addr = s.recvfrom(16384) # print("Response from %s:%d" % addr) try: target_responses = responses[addr] except KeyError: target_responses = responses[addr] = {} target_responses[name] = response except socket.error as e: # http://stackoverflow.com/a/2578794/1654774 # ICMP Port Unreachable can't be handled properly. :-( if e.args[0] in (11, 10035): break if e.args[0] not in (10054): raise finally: s.close() print("Scan completed.") for addr, target_responses in responses.iteritems(): print('') print('=' * 76) print("Report for %s:" % addr[0]) print('=' * 76) for name, response in target_responses.iteritems(): print('') print("Probe: %s, port: %d" % (name, addr[1])) print(dump(response)) def __main(): print('\nUDP Service Scanner version 0.1\n') parser = argparse.ArgumentParser(description='UDP Service Scanner') parser.add_argument('targets', metavar='target', nargs='+', help='IP address or range (ip/mask, ip-ip)') parser.add_argument('--delay', type=float, default=1.0, help='Time to wait (seconds) before moving on to the next probe') args = parser.parse_args() scan_main(args) if __name__ == '__main__': __main()
41.38587
457
0.601838
1,222
7,615
3.685761
0.279869
0.342362
0.453597
0.55151
0.285968
0.271758
0.260213
0.234458
0.212478
0.188499
0
0.225561
0.222193
7,615
183
458
41.612022
0.534864
0.098096
0
0.069767
0
0.100775
0.4407
0.367949
0
0
0.001157
0
0
1
0.062016
false
0.007752
0.031008
0.031008
0.139535
0.085271
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
fc4bf91c20a190907ea0d89defa2cfc6731d05ba
138
py
Python
stellar/__init__.py
kevinjqiu/stellar
32cd40723b481cbd52722f73749b5d1f3e3971bd
[ "MIT" ]
932
2015-01-01T16:51:32.000Z
2022-03-14T05:12:52.000Z
stellar/__init__.py
orf/stellar
2d0630f005186bab207c104d14f3430e176ca2a5
[ "MIT" ]
43
2015-01-05T13:31:30.000Z
2021-10-12T17:24:07.000Z
stellar/__init__.py
orf/stellar
2d0630f005186bab207c104d14f3430e176ca2a5
[ "MIT" ]
64
2015-01-02T14:44:22.000Z
2021-12-10T18:47:44.000Z
from . import app from . import command from . import config from . import models from . import operations __version__ = app.__version__
17.25
29
0.775362
18
138
5.5
0.444444
0.505051
0
0
0
0
0
0
0
0
0
0
0.173913
138
7
30
19.714286
0.868421
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.833333
0
0.833333
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
fc86d035eb620c343578585696eef3ed77ff8e13
163
py
Python
shoottikala/models/__init__.py
conikuvat/shootti-ilmo
bf5ab15e20173994bac25e6b5cd3aec42f671f05
[ "MIT" ]
null
null
null
shoottikala/models/__init__.py
conikuvat/shootti-ilmo
bf5ab15e20173994bac25e6b5cd3aec42f671f05
[ "MIT" ]
9
2017-02-15T20:36:49.000Z
2017-05-26T12:10:43.000Z
shoottikala/models/__init__.py
conikuvat/shootti-ilmo
bf5ab15e20173994bac25e6b5cd3aec42f671f05
[ "MIT" ]
null
null
null
# flake8: noqa from .day import Day from .event import Event from .cosplayer import Cosplayer from .photographer import Photographer from .message import Message
20.375
38
0.809816
22
163
6
0.409091
0
0
0
0
0
0
0
0
0
0
0.007194
0.147239
163
7
39
23.285714
0.942446
0.07362
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
fc8fd82de6f6b33469ee774334b88eaa9a0c5baf
843
py
Python
shop/migrations/0004_orders.py
bpmaurya/Ecom-website
6fd166918be254214069ad3fe3c81537cd5d5392
[ "MIT" ]
2
2020-11-02T11:00:22.000Z
2020-12-30T19:01:32.000Z
shop/migrations/0004_orders.py
bpmaurya/Ecom-website
6fd166918be254214069ad3fe3c81537cd5d5392
[ "MIT" ]
10
2020-12-30T17:38:13.000Z
2022-01-13T03:26:42.000Z
shop/migrations/0004_orders.py
bpmaurya/Ecom-website
6fd166918be254214069ad3fe3c81537cd5d5392
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-07-14 12:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop', '0003_contact'), ] operations = [ migrations.CreateModel( name='Orders', fields=[ ('order_id', models.AutoField(primary_key=True, serialize=False)), ('items_json', models.CharField(max_length=5000)), ('name', models.CharField(max_length=90)), ('email', models.CharField(max_length=111)), ('address', models.CharField(max_length=111)), ('city', models.CharField(max_length=111)), ('state', models.CharField(max_length=111)), ('zip_code', models.CharField(max_length=111)), ], ), ]
31.222222
82
0.553974
85
843
5.352941
0.588235
0.230769
0.276923
0.369231
0.296703
0
0
0
0
0
0
0.068143
0.303677
843
26
83
32.423077
0.706985
0.053381
0
0
1
0
0.091709
0
0
0
0
0
0
1
0
false
0
0.05
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
fca5589b5b38cb6a5ee7907622c07015a84392d7
122
py
Python
2. Backend/2.2. Django/django-mysql-integration-with-custom-validation-and-errors/my_app/admin.py
noreply-developers-pdm/Codesnipp
126f39b24e5f3b39862c38cd55c946ce5f9f9af8
[ "MIT" ]
1
2018-12-25T21:10:02.000Z
2018-12-25T21:10:02.000Z
2. Backend/2.2. Django/django-mysql-integration-with-custom-validation-and-errors/my_app/admin.py
noreply-developers-pdm/Codesnipp
126f39b24e5f3b39862c38cd55c946ce5f9f9af8
[ "MIT" ]
2
2019-10-01T16:07:46.000Z
2019-10-01T16:07:47.000Z
2. Backend/2.2. Django/django-mysql-integration-with-custom-validation-and-errors/my_app/admin.py
noreply-developers-pdm/Codesnipp
126f39b24e5f3b39862c38cd55c946ce5f9f9af8
[ "MIT" ]
4
2020-09-01T02:22:44.000Z
2020-10-07T12:14:58.000Z
from django.contrib import admin from .models import InfoModel # Register your models here. admin.site.register(InfoModel)
30.5
32
0.827869
17
122
5.941176
0.647059
0
0
0
0
0
0
0
0
0
0
0
0.106557
122
4
33
30.5
0.926606
0.213115
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
5d7e5aac4a6856a85625b8a64480cac6299c5dab
313
py
Python
updater/reports/repository/ReportRepository.py
steffen/hubble
eff5fcacfa8b4776b0a198eb324dd6df65df83e6
[ "MIT" ]
null
null
null
updater/reports/repository/ReportRepository.py
steffen/hubble
eff5fcacfa8b4776b0a198eb324dd6df65df83e6
[ "MIT" ]
null
null
null
updater/reports/repository/ReportRepository.py
steffen/hubble
eff5fcacfa8b4776b0a198eb324dd6df65df83e6
[ "MIT" ]
null
null
null
from ..Report import * # Abstract base class for all repository reports class ReportRepository(Report): def metaName(self): return self.repository + "/" + self.name() def fileName(self): return os.path.join(self.dataDirectory, "repository", self.repositoryOwner, self.repositoryName, self.name() + ".tsv")
34.777778
120
0.741214
38
313
6.105263
0.631579
0.086207
0
0
0
0
0
0
0
0
0
0
0.124601
313
9
120
34.777778
0.846715
0.146965
0
0
0
0
0.056391
0
0
0
0
0
0
1
0.333333
false
0
0.166667
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
0
1
1
0
0
4
5dc55546919e7a44a4e49ea26a4b32c227b2dc28
173
py
Python
Python/fizz-buzz.py
kuanhungchen/leetcode-practice
b75e773ada60b685da1576ae5f2234b70bc27842
[ "CNRI-Python" ]
1
2020-04-29T06:19:44.000Z
2020-04-29T06:19:44.000Z
Python/fizz-buzz.py
kuanhungchen/leetcode-practice
b75e773ada60b685da1576ae5f2234b70bc27842
[ "CNRI-Python" ]
null
null
null
Python/fizz-buzz.py
kuanhungchen/leetcode-practice
b75e773ada60b685da1576ae5f2234b70bc27842
[ "CNRI-Python" ]
null
null
null
class Solution: def fizzBuzz(self, n): return ["FizzBuzz" if i % 15 == 0 else "Fizz" if i % 3 == 0 else "Buzz" if i % 5 == 0 else str(i) for i in range(1, n+1)]
43.25
129
0.560694
34
173
2.852941
0.617647
0.092784
0
0
0
0
0
0
0
0
0
0.072
0.277457
173
3
130
57.666667
0.704
0
0
0
0
0
0.092486
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
5dc7e9c11c71b6bafd6a35afdfaf4728bcc51ae5
5,577
py
Python
exot/channel/covertchannels.py
ETHZ-TEC/exot_eengine
7b7ce6cb949e1b0a02e716b03f2f9af751713b29
[ "BSD-3-Clause" ]
null
null
null
exot/channel/covertchannels.py
ETHZ-TEC/exot_eengine
7b7ce6cb949e1b0a02e716b03f2f9af751713b29
[ "BSD-3-Clause" ]
null
null
null
exot/channel/covertchannels.py
ETHZ-TEC/exot_eengine
7b7ce6cb949e1b0a02e716b03f2f9af751713b29
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2015-2020, Swiss Federal Institute of Technology (ETH Zurich) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and the following disclaimer. # # * Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. # # * Neither the name of the copyright holder nor the names of its # contributors may be used to endorse or promote products derived from # this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # """Definition of all covert channels that can be analysed with ExOT out-of-the-box.""" import abc import importlib import typing as t import numpy as np from numpy import inf from ._base import Channel from .mixins.covertchannel import CapacityContinuous, PerformanceSweep if importlib.util.find_spec("tensorflow") is not None: import tensorflow as tf tfversion = tf.__version__.split(".") if tfversion[0] == 1 and tfversion[1] == 2: from .evaluate import RNNdecoderEval from .train import RNNdecoderTrain class CovertChannel(Channel): @property @abc.abstractmethod def signal(self) -> t.Mapping: pass @property def max_num_symbols(self) -> int: return len([k for k in self.signal if isinstance(k, int)]) @property @abc.abstractmethod def fixed_length_symbols(self) -> bool: pass @property def symbols(self) -> t.List: return list(self.signal.keys()) def __repr__(self) -> str: return ( f"<{self.__module__}.{self.__class__.__name__} at {hex(id(self))} " f"signal={self.signal}, fixed={self.fixed_length_symbols}>" ) """ Cache Covert Channels ---------- """ class CacheCC(CovertChannel, PerformanceSweep): @property def signal(self) -> t.Mapping: """ 0 -> Keep data in cache (low access time) 1 -> Remove data from cache (high access time) """ return {0: 0, 1: 1} @property def fixed_length_symbols(self) -> bool: return True @property def fixed_length_symbols(self) -> bool: return True @property def analyses_classes(self): return {} # At this point, no analyses are implemented # The classes below allow the user to differentiate more between different chache channel types. class FlushFlushCC(CacheCC): pass class FlushReloadCC(CacheCC): pass class FlushPrefetchCC(CacheCC): pass """ Frequency Covert Channels ---------- """ class FrequencyCC(CovertChannel): pass class ConservativeGovernorCC(FrequencyCC): @property def signal(self) -> t.Mapping: """ -X -> Decrease frequency by X levels (if possible) X -> Increase frequency by X levels (if possible) """ return { 0: [1, -1], 1: [-1, 1], "preamble": [5, -1], "postamble": [1, -5], inf: [inf, inf], } @property def fixed_length_symbols(self) -> bool: return False @property def analyses_classes(self): if importlib.util.find_spec("tensorflow") is not None: return {"RNNdecoderTrain": RNNdecoderTrain, "RNNdecoderEval": RNNdecoderEval} else: return {} """ Power Cache Covert Channels ---------- TODO """ class PowerCC(CovertChannel, CapacityContinuous, PerformanceSweep): @property def inputs(self) -> np.array: """ 0 -> Do not utilise core (cool down) n -> Utilise n cores """ return np.arange(999) @property def signal(self) -> t.Mapping: """ 0 -> Do not utilise core (low power consumption) 1 -> Utilise core (high power consumption) """ return {0: 0, 1: 1} @property def fixed_length_symbols(self) -> bool: return True @property def analyses_classes(self): return {} """ Thermal Covert Channels ---------- TODO """ class ThermalCC(CovertChannel, PerformanceSweep): @property def inputs(self) -> np.array: """ 0 -> Do not utilise core (cool down) -1 -> Fully utilise all cores (heat up) """ return np.array([0, 1]) @property def signal(self) -> t.Mapping: return {0: [0, -1], 1: [-1, 0], "carrier": [1, 0]} @property def fixed_length_symbols(self) -> bool: return True @property def analyses_classes(self): return {}
25.819444
96
0.649632
682
5,577
5.249267
0.368035
0.052235
0.035196
0.035196
0.291899
0.256983
0.217039
0.200279
0.188268
0.164804
0
0.011985
0.251928
5,577
215
97
25.939535
0.846117
0.389815
0
0.565657
0
0
0.064048
0.032684
0
0
0
0.009302
0
1
0.20202
false
0.060606
0.121212
0.121212
0.606061
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
5de24e04dbbbef7978da870bbb4db1ceea80cf8d
132
py
Python
main.py
tobiassernhede/MixxTape
e87c626e5a8503a0cbf6ac478b88b49a3053ea40
[ "MIT" ]
null
null
null
main.py
tobiassernhede/MixxTape
e87c626e5a8503a0cbf6ac478b88b49a3053ea40
[ "MIT" ]
null
null
null
main.py
tobiassernhede/MixxTape
e87c626e5a8503a0cbf6ac478b88b49a3053ea40
[ "MIT" ]
null
null
null
from lib import setup # import the setup.py in lib if __name__ == '__main__': setup.runServer() # if is mainfile run the server
33
53
0.719697
21
132
4.142857
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.19697
132
4
53
33
0.820755
0.424242
0
0
0
0
0.108108
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
b90a217df4cc62da936ddef4f956def17a71d5b8
146
py
Python
cardflip/card/forms.py
themillennialkingdom/framework
7d25702f6a69fdcc3dd384599b3495bdb0418477
[ "MIT" ]
null
null
null
cardflip/card/forms.py
themillennialkingdom/framework
7d25702f6a69fdcc3dd384599b3495bdb0418477
[ "MIT" ]
null
null
null
cardflip/card/forms.py
themillennialkingdom/framework
7d25702f6a69fdcc3dd384599b3495bdb0418477
[ "MIT" ]
1
2019-10-22T15:04:38.000Z
2019-10-22T15:04:38.000Z
from django import forms from .models import User class Signup_form(forms.ModelForm): class Meta: model=User fields='__all__'
20.857143
35
0.69863
19
146
5.105263
0.736842
0
0
0
0
0
0
0
0
0
0
0
0.232877
146
7
36
20.857143
0.866071
0
0
0
0
0
0.047619
0
0
0
0
0
0
1
0
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
b911137f8cf4ba6598e87be12e94a4ebe3e76e7e
92
py
Python
webapp/naccbisapp/apps.py
troymoench/naccbis
87fd79a79e9ae189236781fa4682811c1da6480f
[ "MIT" ]
1
2019-02-28T18:46:40.000Z
2019-02-28T18:46:40.000Z
webapp/naccbisapp/apps.py
troymoench/naccbis
87fd79a79e9ae189236781fa4682811c1da6480f
[ "MIT" ]
19
2018-04-17T04:47:40.000Z
2022-02-10T10:40:07.000Z
webapp/naccbisapp/apps.py
troymoench/naccbis
87fd79a79e9ae189236781fa4682811c1da6480f
[ "MIT" ]
null
null
null
from django.apps import AppConfig class NaccbisConfig(AppConfig): name = 'naccbisapp'
15.333333
33
0.76087
10
92
7
0.9
0
0
0
0
0
0
0
0
0
0
0
0.163043
92
5
34
18.4
0.909091
0
0
0
0
0
0.108696
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
f8dc48daaa59b3d3be347f4b8f11220153088839
627
py
Python
courses/backend/django-for-everybody/Web Application Technologies and Django/resources/dj4e-samples/crispy/forms.py
Nahid-Hassan/fullstack-software-development
892ffb33e46795061ea63378279a6469de317b1a
[ "CC0-1.0" ]
297
2019-01-25T08:44:08.000Z
2022-03-29T18:46:08.000Z
courses/backend/django-for-everybody/Web Application Technologies and Django/resources/dj4e-samples/crispy/forms.py
Nahid-Hassan/fullstack-software-development
892ffb33e46795061ea63378279a6469de317b1a
[ "CC0-1.0" ]
22
2019-05-06T14:21:04.000Z
2022-02-21T10:05:25.000Z
courses/backend/django-for-everybody/Web Application Technologies and Django/resources/dj4e-samples/crispy/forms.py
Nahid-Hassan/fullstack-software-development
892ffb33e46795061ea63378279a6469de317b1a
[ "CC0-1.0" ]
412
2019-02-12T20:44:43.000Z
2022-03-30T04:23:25.000Z
from django import forms from django.core.exceptions import ValidationError from django.core import validators class BasicForm(forms.Form): title = forms.CharField(validators=[ validators.MinLengthValidator(2, "Please enter 2 or more characters") ]) mileage = forms.IntegerField() purchase_date = forms.DateField() # References # https://docs.djangoproject.com/en/3.0/ref/forms/api/ # https://docs.djangoproject.com/en/3.0/ref/forms/fields/#datefield # https://docs.djangoproject.com/en/3.0/ref/forms/validation/#using-validation-in-practice # https://docs.djangoproject.com/en/3.0/ref/validators/
33
90
0.752791
84
627
5.607143
0.47619
0.076433
0.186837
0.212314
0.303609
0.303609
0.303609
0.303609
0.235669
0
0
0.017953
0.111643
627
18
91
34.833333
0.827648
0.432217
0
0
0
0
0.095101
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.777778
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
f8fccc4f7c7526a5302f464393c5bcadc01e6c82
83
py
Python
shet/apps.py
SurajPatidar201198/Assignment-2
628d0774419ced312cf2b79d3de883fa48774a9c
[ "MIT" ]
null
null
null
shet/apps.py
SurajPatidar201198/Assignment-2
628d0774419ced312cf2b79d3de883fa48774a9c
[ "MIT" ]
null
null
null
shet/apps.py
SurajPatidar201198/Assignment-2
628d0774419ced312cf2b79d3de883fa48774a9c
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ShetConfig(AppConfig): name = 'shet'
13.833333
33
0.73494
10
83
6.1
0.9
0
0
0
0
0
0
0
0
0
0
0
0.180723
83
5
34
16.6
0.897059
0
0
0
0
0
0.048193
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
5d0716217c00bd34e0efbbc174e31d7552bee275
50
py
Python
signals.py
BontaVlad/jira-cli
263473400e6b1842af531002d23af1ed4b56bfba
[ "MIT" ]
null
null
null
signals.py
BontaVlad/jira-cli
263473400e6b1842af531002d23af1ed4b56bfba
[ "MIT" ]
null
null
null
signals.py
BontaVlad/jira-cli
263473400e6b1842af531002d23af1ed4b56bfba
[ "MIT" ]
null
null
null
from blinker import signal echo = signal('echo')
12.5
26
0.74
7
50
5.285714
0.714286
0.540541
0
0
0
0
0
0
0
0
0
0
0.16
50
3
27
16.666667
0.880952
0
0
0
0
0
0.08
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
5d0f4cf01f04f55b63f3ad5fed7904b4ef89a735
1,268
py
Python
pymitblod/institution.py
slimcdk/pymitblod
8bae9401abec73e53a0687a5429b215722076b39
[ "Apache-2.0" ]
null
null
null
pymitblod/institution.py
slimcdk/pymitblod
8bae9401abec73e53a0687a5429b215722076b39
[ "Apache-2.0" ]
null
null
null
pymitblod/institution.py
slimcdk/pymitblod
8bae9401abec73e53a0687a5429b215722076b39
[ "Apache-2.0" ]
null
null
null
''' All model classes for pymitblod ''' from .url import Url class Institution(): ''' Class representing an institution. ''' def __init__( self, id:int, name:str, domain:Url, login_form:dict=None ): self._domain = domain self._id = id self._name = name self._login_form = login_form def __repr__(self) -> str: return str(self._name) def domain(self) -> Url: return self._domain def auth_path(self) -> str: return self._domain.join_path("auth").join_path("login") def homepage_path(self) -> str: return self._domain.join_path("startpage") def upcoming_booking_path(self) -> str: return self._domain.join_path("booking").join_path("get-coming-appointments") def donations_history_path(self) -> str: return self._domain.join_path("tableData").join_path("Donations") def messages_history_path(self) -> str: return self._domain.join_path("tableData").join_path("DonorMessages") def __login_form__(self, identification, password) -> dict: if self._login_form: return self._login_form return {'id':identification, 'password':password}
23.054545
85
0.620662
149
1,268
4.959732
0.295302
0.097429
0.105548
0.11502
0.301759
0.301759
0.301759
0.301759
0.159675
0.159675
0
0
0.263407
1,268
55
86
23.054545
0.791221
0.05205
0
0
0
0
0.083051
0.019492
0
0
0
0
0
1
0.3
false
0.066667
0.033333
0.233333
0.633333
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
5d28b79b30c42f5bafe9bf5a3b38e50fa013b6b5
1,016
py
Python
telemetry/telemetry/internal/platform/tracing_agent/chrome_report_events_tracing_agent.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
null
null
null
telemetry/telemetry/internal/platform/tracing_agent/chrome_report_events_tracing_agent.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
null
null
null
telemetry/telemetry/internal/platform/tracing_agent/chrome_report_events_tracing_agent.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2020 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import absolute_import from telemetry.internal.platform.tracing_agent import chrome_tracing_agent # A class that uses ReportEvents mode for chrome tracing. class ChromeReportEventsTracingAgent(chrome_tracing_agent.ChromeTracingAgent): @classmethod def IsSupported(cls, platform_backend): # TODO(crbug.com/1279968): Workaround to enable streaming for some fuchsia # platforms while progress is made on others. return (platform_backend.GetOSName() == 'fuchsia' and platform_backend.GetDeviceTypeName() in chrome_tracing_agent.NON_STREAM_FUCHSIA_BOARDS) def _GetTransferMode(self): return 'ReportEvents' def _StartStartupTracing(self, config): del config # Fuchsia doesn't support starting tracing with a config file return False def _RemoveTraceConfigFile(self): pass
35.034483
78
0.772638
126
1,016
6.063492
0.666667
0.062827
0.070681
0
0
0
0
0
0
0
0
0.01308
0.172244
1,016
28
79
36.285714
0.895363
0.38189
0
0
0
0
0.030645
0
0
0
0
0.035714
0
1
0.266667
false
0.066667
0.133333
0.133333
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
1
0
1
0
0
0
4
5d297340cfadfeecc22a429a2495b60ce37bdc0a
159
py
Python
cm/html/attachment/__init__.py
likwoka/ak
e6ac14e202e5a0d8f1b57e3e1a5c5a1ed9ecc14b
[ "Apache-2.0" ]
null
null
null
cm/html/attachment/__init__.py
likwoka/ak
e6ac14e202e5a0d8f1b57e3e1a5c5a1ed9ecc14b
[ "Apache-2.0" ]
null
null
null
cm/html/attachment/__init__.py
likwoka/ak
e6ac14e202e5a0d8f1b57e3e1a5c5a1ed9ecc14b
[ "Apache-2.0" ]
null
null
null
from cm.html.attachment.index import browse, _q_index, \ download, upload, _q_lookup, attach_to _q_exports = ['browse', 'download', 'upload', 'attach_to']
19.875
58
0.72956
22
159
4.909091
0.636364
0.259259
0
0
0
0
0
0
0
0
0
0
0.125786
159
7
59
22.714286
0.776978
0
0
0
0
0
0.185897
0
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
5d369dcd0785c398e2d42af0494afc3ae8273d15
103
py
Python
simplemfa/admin.py
mwhawkins/django-simple-mfa
58b5188473a776f5fcebda9843e2147123dce59f
[ "MIT" ]
3
2020-07-17T09:14:09.000Z
2020-12-15T09:26:56.000Z
simplemfa/admin.py
mwhawkins/django-simple-mfa
58b5188473a776f5fcebda9843e2147123dce59f
[ "MIT" ]
1
2020-11-25T10:41:02.000Z
2020-11-25T10:41:02.000Z
simplemfa/admin.py
mwhawkins/django-simple-mfa
58b5188473a776f5fcebda9843e2147123dce59f
[ "MIT" ]
2
2020-11-25T10:47:20.000Z
2021-11-04T15:41:21.000Z
from django.contrib import admin from simplemfa.models import AuthCode admin.site.register(AuthCode)
17.166667
37
0.834951
14
103
6.142857
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.106796
103
5
38
20.6
0.934783
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
5d36cb216c3680d2a0444496897bbd952d449285
601
py
Python
test/unit/v0/deps.py
KernelErr/b2-sdk-python
5310ebdf29f073895f34ffe58893fc50ebdd8c83
[ "MIT" ]
128
2019-02-02T17:53:23.000Z
2022-03-28T09:28:35.000Z
test/unit/v0/deps.py
KernelErr/b2-sdk-python
5310ebdf29f073895f34ffe58893fc50ebdd8c83
[ "MIT" ]
168
2019-02-26T22:14:16.000Z
2022-03-27T06:25:28.000Z
test/unit/v0/deps.py
KernelErr/b2-sdk-python
5310ebdf29f073895f34ffe58893fc50ebdd8c83
[ "MIT" ]
52
2019-01-28T16:40:56.000Z
2022-03-14T19:55:05.000Z
###################################################################### # # File: test/unit/v0/deps.py # # Copyright 2019 Backblaze Inc. All Rights Reserved. # # License https://www.backblaze.com/using_b2_code.html # ###################################################################### # TODO: This module is used in old-style unit tests, written separately for v0 and v1. # It will be removed when all test are rewritten for the new style, like e.g. test/unit/sync/. # configured by pytest using `--api` option # check test/unit/conftest.py:pytest_configure for details from apiver_deps import *
35.352941
95
0.572379
76
601
4.473684
0.789474
0.070588
0
0
0
0
0
0
0
0
0
0.015123
0.1198
601
16
96
37.5625
0.627599
0.678869
0
0
0
0
0
0
0
0
0
0.0625
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
1
0
1
0
0
4
5d3e64ead213de4d83cf483a3eff27875f5f549b
2,473
py
Python
tensorflow_probability/python/__init__.py
bolcom/probability
4a11efad1ecd8a1336e4c9fdb0105efbf2375ad7
[ "Apache-2.0" ]
1
2019-10-10T06:15:42.000Z
2019-10-10T06:15:42.000Z
tensorflow_probability/python/__init__.py
bolcom/probability
4a11efad1ecd8a1336e4c9fdb0105efbf2375ad7
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/__init__.py
bolcom/probability
4a11efad1ecd8a1336e4c9fdb0105efbf2375ad7
[ "Apache-2.0" ]
1
2019-10-10T06:15:44.000Z
2019-10-10T06:15:44.000Z
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ """Tools for probabilistic reasoning in TensorFlow.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow_probability.python import bijectors from tensorflow_probability.python import debugging from tensorflow_probability.python import distributions from tensorflow_probability.python import experimental from tensorflow_probability.python import glm from tensorflow_probability.python import layers from tensorflow_probability.python import math from tensorflow_probability.python import mcmc from tensorflow_probability.python import monte_carlo from tensorflow_probability.python import optimizer from tensorflow_probability.python import stats from tensorflow_probability.python import sts from tensorflow_probability.python import trainable_distributions from tensorflow_probability.python import util from tensorflow_probability.python import vi from tensorflow.python.util import lazy_loader # pylint: disable=g-direct-tensorflow-import from tensorflow.python.util.all_util import remove_undocumented # pylint: disable=g-direct-tensorflow-import edward2 = lazy_loader.LazyLoader('edward2', globals(), 'tensorflow_probability.python.edward2') positive_semidefinite_kernels = lazy_loader.LazyLoader( 'positive_semidefinite_kernels', globals(), 'tensorflow_probability.python.positive_semidefinite_kernels') _allowed_symbols = [ 'bijectors', 'debugging', 'distributions', 'edward2', 'experimental', 'glm', 'layers', 'math', 'mcmc', 'monte_carlo', 'optimizer', 'positive_semidefinite_kernels', 'trainable_distributions', 'stats', 'sts', 'util', 'vi', ] remove_undocumented(__name__, _allowed_symbols)
36.910448
109
0.763445
286
2,473
6.402098
0.381119
0.206445
0.250683
0.25396
0.356636
0.093938
0
0
0
0
0
0.005642
0.139911
2,473
66
110
37.469697
0.855195
0.317428
0
0
0
0
0.170966
0.106179
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0.022222
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
5d5abaf28a41e21ff0840bc3deec07e68068d370
63
py
Python
.history/postImages/index_20201005142229.py
Lambda-School-Labs/Labs27-C-Bridges-To-Prosperity-BE
9a8289d8550115362c46dea3ed8570b789c09a10
[ "MIT" ]
2
2020-10-21T22:14:15.000Z
2020-10-21T22:14:16.000Z
.history/postImages/index_20201005142229.py
Lambda-School-Labs/Labs27-C-Bridges-To-Prosperity-BE
9a8289d8550115362c46dea3ed8570b789c09a10
[ "MIT" ]
null
null
null
.history/postImages/index_20201005142229.py
Lambda-School-Labs/Labs27-C-Bridges-To-Prosperity-BE
9a8289d8550115362c46dea3ed8570b789c09a10
[ "MIT" ]
null
null
null
import pandas as pd df = pd.read_excel("bridgeData2.xlsx") \
12.6
38
0.714286
10
63
4.4
0.9
0
0
0
0
0
0
0
0
0
0
0.018868
0.15873
63
5
39
12.6
0.811321
0
0
0
0
0
0.25
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
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
1
0
0
0
1
0
0
0
0
4
5d5c64188639376bb08391268139af88ec2ee44a
706
py
Python
docs/user_guide/operation/scripts/examples/argus/post_equilibration/jan/PumpMicrobone.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
31
2016-03-07T02:38:17.000Z
2022-02-14T18:23:43.000Z
docs/user_guide/operation/scripts/examples/argus/post_equilibration/jan/PumpMicrobone.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
1,626
2015-01-07T04:52:35.000Z
2022-03-25T19:15:59.000Z
docs/user_guide/operation/scripts/examples/argus/post_equilibration/jan/PumpMicrobone.py
UIllinoisHALPychron/pychron
f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc
[ "Apache-2.0" ]
26
2015-05-23T00:10:06.000Z
2022-03-07T16:51:57.000Z
''' ''' def main(): info('Pump Microbone') close(description="Jan Inlet") if is_closed('F'): open(description= 'Microbone to CO2 Laser') else: close(name="T", description="Microbone to CO2 Laser") sleep(1) close(description= 'CO2 Laser to Roughing') #close(description= 'Microbone to Minibone') open(description= 'Microbone to Turbo') open(description= 'Microbone to Getter NP-10H') open(description= 'Microbone to Getter NP-10C') #open(description= 'Microbone to CO2 Laser') open(description= 'Microbone to Inlet Pipette') sleep(1) set_resource(name='CO2PumpTimeFlag', value=30) release('JanCO2Flag')
30.695652
61
0.63881
82
706
5.47561
0.45122
0.356347
0.391982
0.347439
0.36971
0.302895
0
0
0
0
0
0.025783
0.230878
706
23
62
30.695652
0.801105
0.126062
0
0.125
0
0
0.34647
0
0
0
0
0
0
1
0.0625
true
0
0
0
0.0625
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
538642e57be9fbd568f1bb61a054a68216db8c72
1,245
py
Python
PyOpenGL-3.0.2/OpenGL/raw/GL/ARB/clear_buffer_object.py
frederica07/Dragon_Programming_Process
c0dff2e20c1be6db5adc6f9977efae8f7f888ef5
[ "BSD-2-Clause" ]
null
null
null
PyOpenGL-3.0.2/OpenGL/raw/GL/ARB/clear_buffer_object.py
frederica07/Dragon_Programming_Process
c0dff2e20c1be6db5adc6f9977efae8f7f888ef5
[ "BSD-2-Clause" ]
null
null
null
PyOpenGL-3.0.2/OpenGL/raw/GL/ARB/clear_buffer_object.py
frederica07/Dragon_Programming_Process
c0dff2e20c1be6db5adc6f9977efae8f7f888ef5
[ "BSD-2-Clause" ]
null
null
null
'''Autogenerated by get_gl_extensions script, do not edit!''' from OpenGL import platform as _p, constants as _cs, arrays from OpenGL.GL import glget import ctypes EXTENSION_NAME = 'GL_ARB_clear_buffer_object' def _f( function ): return _p.createFunction( function,_p.GL,'GL_ARB_clear_buffer_object',False) @_f @_p.types(None,_cs.GLenum,_cs.GLenum,_cs.GLenum,_cs.GLenum,ctypes.POINTER(_cs.void)) def glClearBufferData( target,internalformat,format,type,data ):pass @_f @_p.types(None,_cs.GLenum,_cs.GLenum,_cs.GLintptr,_cs.GLsizeiptr,_cs.GLenum,_cs.GLenum,ctypes.POINTER(_cs.void)) def glClearBufferSubData( target,internalformat,offset,size,format,type,data ):pass @_f @_p.types(None,_cs.GLuint,_cs.GLenum,_cs.GLenum,_cs.GLenum,ctypes.POINTER(_cs.void)) def glClearNamedBufferDataEXT( buffer,internalformat,format,type,data ):pass @_f @_p.types(None,_cs.GLuint,_cs.GLenum,_cs.GLenum,_cs.GLenum,_cs.GLsizeiptr,_cs.GLsizeiptr,ctypes.POINTER(_cs.void)) def glClearNamedBufferSubDataEXT( buffer,internalformat,format,type,offset,size,data ):pass def glInitClearBufferObjectARB(): '''Return boolean indicating whether this extension is available''' from OpenGL import extensions return extensions.hasGLExtension( EXTENSION_NAME )
46.111111
114
0.804016
175
1,245
5.44
0.342857
0.117647
0.115546
0.151261
0.409664
0.340336
0.340336
0.338235
0.338235
0.261555
0
0
0.075502
1,245
26
115
47.884615
0.827107
0.093976
0
0.190476
1
0
0.046553
0.046553
0
0
0
0
0
1
0.285714
false
0.190476
0.190476
0.047619
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
539d9252ef49499068ac188b1f90466bf0595b40
863
py
Python
eth_utils/functional.py
TokenMarketNet/ethereum-utils
d58ff2d7151b80b41ef0b79bfe2c780b186f024c
[ "MIT" ]
1
2018-02-09T01:30:27.000Z
2018-02-09T01:30:27.000Z
eth_utils/functional.py
TokenMarketNet/ethereum-utils
d58ff2d7151b80b41ef0b79bfe2c780b186f024c
[ "MIT" ]
null
null
null
eth_utils/functional.py
TokenMarketNet/ethereum-utils
d58ff2d7151b80b41ef0b79bfe2c780b186f024c
[ "MIT" ]
2
2017-06-13T15:17:09.000Z
2021-06-17T11:09:32.000Z
import functools import itertools import collections def identity(value): return value def combine(f, g): return lambda x: f(g(x)) def compose(*functions): return functools.reduce(combine, reversed(functions), identity) def apply_to_return_value(callback): def outer(fn): @functools.wraps(fn) def inner(*args, **kwargs): return callback(fn(*args, **kwargs)) return inner return outer to_tuple = apply_to_return_value(tuple) to_list = apply_to_return_value(list) to_dict = apply_to_return_value(dict) to_ordered_dict = apply_to_return_value(collections.OrderedDict) sort_return = compose(apply_to_return_value(sorted), to_tuple) flatten_return = compose(apply_to_return_value(itertools.chain.from_iterable), to_tuple) reversed_return = compose(to_tuple, apply_to_return_value(reversed), to_tuple)
24.657143
88
0.754345
121
863
5.07438
0.305785
0.161238
0.169381
0.234528
0.254072
0.18241
0
0
0
0
0
0
0.150637
863
34
89
25.382353
0.837653
0
0
0
0
0
0
0
0
0
0
0
0
1
0.26087
false
0
0.130435
0.173913
0.652174
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
53bede9bc9da4dee03a1936c07d3bdedacb1192e
145
py
Python
app_polls/graphql/__types.py
Audiotuete/backend_wagtail_api
3c5a4a610ffdbb75d45a57fc670e2ae3b7178c62
[ "MIT" ]
null
null
null
app_polls/graphql/__types.py
Audiotuete/backend_wagtail_api
3c5a4a610ffdbb75d45a57fc670e2ae3b7178c62
[ "MIT" ]
null
null
null
app_polls/graphql/__types.py
Audiotuete/backend_wagtail_api
3c5a4a610ffdbb75d45a57fc670e2ae3b7178c62
[ "MIT" ]
null
null
null
from graphene_django import DjangoObjectType #Models from ..models import Poll class PollType(DjangoObjectType): class Meta: model = Poll
18.125
44
0.786207
17
145
6.647059
0.647059
0
0
0
0
0
0
0
0
0
0
0
0.158621
145
8
45
18.125
0.92623
0.041379
0
0
0
0
0
0
0
0
0
0
0
1
0
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
53e124cc2df21f290360a84d40875219de4b6ac1
215
py
Python
joint_teapot/__main__.py
BoYanZh/joint-teapot
9eefd8bc01024a2dd74df10295c5b4411aad0645
[ "MIT" ]
2
2021-06-10T15:40:25.000Z
2021-06-12T14:24:28.000Z
joint_teapot/__main__.py
BoYanZh/joint-teapot
9eefd8bc01024a2dd74df10295c5b4411aad0645
[ "MIT" ]
null
null
null
joint_teapot/__main__.py
BoYanZh/joint-teapot
9eefd8bc01024a2dd74df10295c5b4411aad0645
[ "MIT" ]
2
2021-09-15T16:09:59.000Z
2021-09-15T16:11:32.000Z
from joint_teapot.app import app from joint_teapot.utils.logger import logger as logger if __name__ == "__main__": try: app() except Exception: logger.exception("Unexpected error:")
23.888889
55
0.669767
26
215
5.153846
0.615385
0.134328
0.223881
0
0
0
0
0
0
0
0
0
0.246512
215
8
56
26.875
0.82716
0
0
0
0
0
0.120773
0
0
0
0
0
0
1
0
true
0
0.285714
0
0.285714
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
1
0
0
0
0
0
0
4
54cbc24981d5a2d2130c8388e8a1a941fcac1878
233
py
Python
podmena/parser.py
bmwant/podmena
cb3a6f6e9a3882f0ff5c081f226d93607fbbd1c9
[ "Unlicense" ]
50
2018-04-10T22:26:09.000Z
2021-12-02T16:14:24.000Z
podmena/parser.py
bmwant/podmena
cb3a6f6e9a3882f0ff5c081f226d93607fbbd1c9
[ "Unlicense" ]
1
2018-04-11T15:37:36.000Z
2018-04-25T14:06:57.000Z
podmena/parser.py
bmwant/podmena
cb3a6f6e9a3882f0ff5c081f226d93607fbbd1c9
[ "Unlicense" ]
3
2019-02-28T11:43:55.000Z
2019-11-26T14:07:03.000Z
import re class RegexParser(object): def __init__(self): self.pattern = re.compile( r'<span .+></span>:<span .+>([\w_]+)</span>:</div>') def parse(self, text): return self.pattern.findall(text)
21.181818
64
0.562232
28
233
4.5
0.642857
0.174603
0
0
0
0
0
0
0
0
0
0
0.240343
233
10
65
23.3
0.711864
0
0
0
0
0
0.206009
0.107296
0
0
0
0
0
1
0.285714
false
0
0.142857
0.142857
0.714286
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
0
0
0
1
1
0
0
4
54f3689d553f827f8afa1e2b6fa3dbb0578a13c7
96
py
Python
src/gs_shipping/apps.py
pygaur/gsshop
87a25239ebd3d15f67057865b66d07d6857f6084
[ "Apache-2.0" ]
2
2020-04-14T19:22:13.000Z
2020-08-18T17:08:33.000Z
src/gs_shipping/apps.py
pygaur/gsshop
87a25239ebd3d15f67057865b66d07d6857f6084
[ "Apache-2.0" ]
8
2020-05-25T14:05:45.000Z
2022-03-12T00:46:30.000Z
src/gs_shipping/apps.py
pygaur/gsshop
87a25239ebd3d15f67057865b66d07d6857f6084
[ "Apache-2.0" ]
1
2020-04-14T19:22:18.000Z
2020-04-14T19:22:18.000Z
from django.apps import AppConfig class GsShippingConfig(AppConfig): name = 'gs_shipping'
16
34
0.770833
11
96
6.636364
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.15625
96
5
35
19.2
0.901235
0
0
0
0
0
0.114583
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
07152a05d819e3daf7d6bdfd326e84d25e92ec54
117
py
Python
src/orders/tests/pay_signals/conftest.py
denkasyanov/education-backend
c796b6f2f1cc1cd09f83cab2ca0cc45344906ef5
[ "MIT" ]
151
2020-04-21T09:58:57.000Z
2021-09-12T09:01:21.000Z
src/orders/tests/pay_signals/conftest.py
denkasyanov/education-backend
c796b6f2f1cc1cd09f83cab2ca0cc45344906ef5
[ "MIT" ]
163
2020-05-29T20:52:00.000Z
2021-09-11T12:44:56.000Z
src/orders/tests/pay_signals/conftest.py
boochamoocha/education-backend
c6ffb0c00bc066c8f1e0a8c0ffe4d0215c7c416a
[ "MIT" ]
39
2020-04-21T12:28:16.000Z
2021-09-12T15:33:47.000Z
import pytest pytestmark = [pytest.mark.django_db] @pytest.fixture def order(factory): return factory.order()
13
36
0.74359
15
117
5.733333
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.145299
117
8
37
14.625
0.86
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0.2
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
4
072126377674f45929d30eddcc206e471edf8ac3
329
py
Python
Round 1B/fair-fight.test-generator.py
enigma-pattern/GoogleCodeJam-2019
558c57209a90319d31da13a58f8da60ca56d9f0a
[ "MIT" ]
54
2019-04-07T06:19:19.000Z
2022-01-19T10:58:00.000Z
Round 1B/fair-fight.test-generator.py
Escapist-007/GoogleCodeJam-2019
bfa4f2a9585c710f3bbc176b9f8aa4d2ee0a4ce4
[ "MIT" ]
1
2019-06-02T18:20:30.000Z
2019-06-02T18:40:32.000Z
Round 1B/fair-fight.test-generator.py
Escapist-007/GoogleCodeJam-2019
bfa4f2a9585c710f3bbc176b9f8aa4d2ee0a4ce4
[ "MIT" ]
21
2019-04-10T04:32:03.000Z
2021-07-22T22:38:53.000Z
import random B = 100000 N = 100000 T = 10 print T for _ in xrange(T): n = random.randint(1, N) k = random.randint(0, B) print n, k C, D = [], [] for _ in xrange(n): C.append(random.randint(0, B)) D.append(random.randint(0, B)) print " ".join(map(str, C)) print " ".join(map(str, D))
19.352941
38
0.541033
55
329
3.2
0.381818
0.295455
0.238636
0.255682
0.380682
0
0
0
0
0
0
0.076596
0.285714
329
16
39
20.5625
0.67234
0
0
0
0
0
0.006079
0
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.266667
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
072942cb5db41747a65be7199756b5a27613ed0a
124
py
Python
code/models/__init__.py
hiyouga/Cuisine_Prediction
e23900e5b2b7f4143e1cdb3eab8a227ddd8baf61
[ "MIT" ]
2
2021-12-31T04:24:04.000Z
2021-12-31T06:34:03.000Z
code/models/__init__.py
hiyouga/Cuisine_Prediction
e23900e5b2b7f4143e1cdb3eab8a227ddd8baf61
[ "MIT" ]
null
null
null
code/models/__init__.py
hiyouga/Cuisine_Prediction
e23900e5b2b7f4143e1cdb3eab8a227ddd8baf61
[ "MIT" ]
null
null
null
from .textcnn import textcnn from .textrnn import textrnn from .restext import restext from .dualtextcnn import dualtextcnn
24.8
36
0.83871
16
124
6.5
0.375
0
0
0
0
0
0
0
0
0
0
0
0.129032
124
4
37
31
0.962963
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
07556d9c7fe39d34c30315cb9099524522054463
15,422
py
Python
tests/ut/python/dataset/test_generator.py
TommyLike/mindspore
401dabb786a9097d6dd84f391657d266b04e9a37
[ "Apache-2.0" ]
1
2020-05-23T07:08:46.000Z
2020-05-23T07:08:46.000Z
tests/ut/python/dataset/test_generator.py
liyong126/mindspore
930a1fb0a8fa9432025442c4f4732058bb7af592
[ "Apache-2.0" ]
7
2020-03-30T08:31:56.000Z
2020-04-01T09:54:39.000Z
tests/ut/python/dataset/test_generator.py
liyong126/mindspore
930a1fb0a8fa9432025442c4f4732058bb7af592
[ "Apache-2.0" ]
1
2020-03-30T17:07:43.000Z
2020-03-30T17:07:43.000Z
# Copyright 2019 Huawei Technologies Co., Ltd # # 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 numpy as np import pytest import mindspore.common.dtype as mstype import mindspore.dataset as ds from mindspore import log as logger # Generate 1d int numpy array from 0 - 63 def generator_1d(): for i in range(64): yield (np.array([i]),) def test_case_0(): """ Test 1D Generator """ logger.info("Test 1D Generator : 0 - 63") # apply dataset operations data1 = ds.GeneratorDataset(generator_1d, ["data"]) i = 0 for item in data1.create_dict_iterator(): # each data is a dictionary golden = np.array([i]) assert np.array_equal(item["data"], golden) i = i + 1 # Generate md int numpy array from [[0, 1], [2, 3]] to [[63, 64], [65, 66]] def generator_md(): for i in range(64): yield (np.array([[i, i + 1], [i + 2, i + 3]]),) def test_case_1(): """ Test MD Generator """ logger.info("Test MD Generator : 0 - 63, with shape [2, 2]") # apply dataset operations data1 = ds.GeneratorDataset(generator_md, ["data"]) i = 0 for item in data1.create_dict_iterator(): # each data is a dictionary golden = np.array([[i, i + 1], [i + 2, i + 3]]) assert np.array_equal(item["data"], golden) i = i + 1 # Generate two columns, the first column is from Generator1D, the second column is from GeneratorMD def generator_mc(maxid=64): for i in range(maxid): yield (np.array([i]), np.array([[i, i + 1], [i + 2, i + 3]])) def test_case_2(): """ Test multi column generator """ logger.info("Test multi column generator") # apply dataset operations data1 = ds.GeneratorDataset(generator_mc, ["col0", "col1"]) i = 0 for item in data1.create_dict_iterator(): # each data is a dictionary golden = np.array([i]) assert np.array_equal(item["col0"], golden) golden = np.array([[i, i + 1], [i + 2, i + 3]]) assert np.array_equal(item["col1"], golden) i = i + 1 def test_case_3(): """ Test 1D Generator + repeat(4) """ logger.info("Test 1D Generator : 0 - 63 + Repeat(4)") # apply dataset operations data1 = ds.GeneratorDataset(generator_1d, ["data"]) data1 = data1.repeat(4) i = 0 for item in data1.create_dict_iterator(): # each data is a dictionary golden = np.array([i]) assert np.array_equal(item["data"], golden) i = i + 1 if i == 64: i = 0 def test_case_4(): """ Test fixed size 1D Generator + batch """ logger.info("Test 1D Generator : 0 - 63 + batch(4)") # apply dataset operations data1 = ds.GeneratorDataset(generator_1d, ["data"]) data1 = data1.batch(4) i = 0 for item in data1.create_dict_iterator(): # each data is a dictionary golden = np.array([[i], [i + 1], [i + 2], [i + 3]]) assert np.array_equal(item["data"], golden) i = i + 4 def generator_with_type(t): for i in range(64): yield (np.array([i], dtype=t),) def type_tester(t): logger.info("Test with Type {}".format(t.__name__)) # apply dataset operations data1 = ds.GeneratorDataset((lambda: generator_with_type(t)), ["data"]) data1 = data1.batch(4) i = 0 for item in data1.create_dict_iterator(): # each data is a dictionary golden = np.array([[i], [i + 1], [i + 2], [i + 3]], dtype=t) assert np.array_equal(item["data"], golden) i = i + 4 def test_case_5(): """ Test 1D Generator on different data type """ logger.info("Test 1D Generator on all data types") types = [np.int8, np.int16, np.int32, np.int64, np.uint8, np.uint16, np.uint32, np.uint64, np.float32, np.float64] for t in types: type_tester(t) def type_tester_with_type_check(t, c): logger.info("Test with Type {}".format(t.__name__)) # apply dataset operations data1 = ds.GeneratorDataset((lambda: generator_with_type(t)), ["data"], column_types=[c]) data1 = data1.batch(4) i = 0 for item in data1.create_dict_iterator(): # each data is a dictionary golden = np.array([[i], [i + 1], [i + 2], [i + 3]], dtype=t) assert np.array_equal(item["data"], golden) i = i + 4 def test_case_6(): """ Test 1D Generator on different data type with type check """ logger.info("Test 1D Generator on all data types with type check") np_types = [np.int8, np.int16, np.int32, np.int64, np.uint8, np.uint16, np.uint32, np.uint64, np.float32, np.float64] de_types = [mstype.int8, mstype.int16, mstype.int32, mstype.int64, mstype.uint8, mstype.uint16, mstype.uint32, mstype.uint64, mstype.float32, mstype.float64] for i in range(len(np_types)): type_tester_with_type_check(np_types[i], de_types[i]) def generator_with_type_2c(t): for i in range(64): yield (np.array([i], dtype=t), np.array([i], dtype=t)) def type_tester_with_type_check_2c(t, c): logger.info("Test with Type {}".format(t.__name__)) # apply dataset operations data1 = ds.GeneratorDataset((lambda: generator_with_type_2c(t)), ["data0", "data1"], column_types=c) data1 = data1.batch(4) i = 0 for item in data1.create_dict_iterator(): # each data is a dictionary golden = np.array([[i], [i + 1], [i + 2], [i + 3]], dtype=t) assert np.array_equal(item["data0"], golden) i = i + 4 def test_case_7(): """ Test 2 column Generator on different data type with type check """ logger.info("Test 2 column Generator on all data types with type check") np_types = [np.int8, np.int16, np.int32, np.int64, np.uint8, np.uint16, np.uint32, np.uint64, np.float32, np.float64] de_types = [mstype.int8, mstype.int16, mstype.int32, mstype.int64, mstype.uint8, mstype.uint16, mstype.uint32, mstype.uint64, mstype.float32, mstype.float64] for i in range(len(np_types)): type_tester_with_type_check_2c(np_types[i], [None, de_types[i]]) def test_case_8(): """ Test multi column generator with few mapops """ logger.info("Test multi column generator with mapops to check the order too") # apply dataset operations data1 = ds.GeneratorDataset(generator_mc(2048), ["col0", "col1"]) data1 = data1.map(input_columns="col0", output_columns="out0", operations=(lambda x: x * 3), num_parallel_workers=2) data1 = data1.map(input_columns="col1", output_columns=["out1", "out2"], operations=(lambda x: (x * 7, x)), num_parallel_workers=2, columns_order=["out0", "out1", "out2"]) data1 = data1.map(input_columns="out2", output_columns="out2", operations=(lambda x: x + 1), num_parallel_workers=2) i = 0 for item in data1.create_dict_iterator(): # each data is a dictionary golden = np.array([i * 3]) assert np.array_equal(item["out0"], golden) golden = np.array([[i * 7, (i + 1) * 7], [(i + 2) * 7, (i + 3) * 7]]) assert np.array_equal(item["out1"], golden) golden = np.array([[i + 1, i + 2], [i + 3, i + 4]]) assert np.array_equal(item["out2"], golden) i = i + 1 def test_case_9(): """ Test map column order when len(input_columns) == len(output_columns). """ logger.info("Test map column order when len(input_columns) == len(output_columns).") # apply dataset operations data1 = ds.GeneratorDataset(generator_mc(2048), ["image", "label"]) data2 = ds.GeneratorDataset(generator_mc(2048), ["label", "image"]) data1 = data1.map(input_columns="label", operations=(lambda x: x * 3), num_parallel_workers=4) data2 = data2.map(input_columns="label", operations=(lambda x: x * 3), num_parallel_workers=4) # Expected column order is not changed. # data1 = data[0] is "image" and data[1] is "label" # data2 = data[0] is "label" and data[1] is "image" i = 0 for data1, data2 in zip(data1, data2): # each data is a dictionary golden = np.array([i]) assert np.array_equal(data1[0], golden) golden = np.array([[i * 3, (i + 1) * 3], [(i + 2) * 3, (i + 3) * 3]]) assert np.array_equal(data1[1], golden) golden = np.array([i * 3]) assert np.array_equal(data2[0], golden) golden = np.array([[i, i + 1], [i + 2, i + 3]]) assert np.array_equal(data2[1], golden) i = i + 1 def test_case_10(): """ Test map column order when len(input_columns) != len(output_columns). """ logger.info("Test map column order when len(input_columns) != len(output_columns).") # apply dataset operations data1 = ds.GeneratorDataset(generator_mc(2048), ["col0", "col1"]) data1 = data1.map(input_columns="col1", output_columns=["out1", "out2"], operations=(lambda x: (x, x * 5)), columns_order=['col0', 'out1', 'out2'], num_parallel_workers=2) # Expected column order is |col0|out1|out2| i = 0 for item in data1.create_tuple_iterator(): golden = np.array([i]) assert np.array_equal(item[0], golden) golden = np.array([[i, i + 1], [i + 2, i + 3]]) assert np.array_equal(item[1], golden) golden = np.array([[i * 5, (i + 1) * 5], [(i + 2) * 5, (i + 3) * 5]]) assert np.array_equal(item[2], golden) i = i + 1 def test_case_11(): """ Test map column order when len(input_columns) != len(output_columns). """ logger.info("Test map column order when len(input_columns) != len(output_columns), " "and columns_order drops some columns.") # apply dataset operations data1 = ds.GeneratorDataset(generator_mc(2048), ["col0", "col1"]) data1 = data1.map(input_columns="col1", output_columns=["out1", "out2"], operations=(lambda x: (x, x * 5)), columns_order=['out1', 'out2'], num_parallel_workers=2) # Expected column order is |out1|out2| i = 0 for item in data1.create_tuple_iterator(): # len should be 2 because col0 is dropped (not included in columns_order) assert len(item) == 2 golden = np.array([[i, i + 1], [i + 2, i + 3]]) assert np.array_equal(item[0], golden) golden = np.array([[i * 5, (i + 1) * 5], [(i + 2) * 5, (i + 3) * 5]]) assert np.array_equal(item[1], golden) i = i + 1 def test_case_12(): """ Test map column order when input_columns and output_columns are None. """ logger.info("Test map column order when input_columns and output_columns are None.") # apply dataset operations data1 = ds.GeneratorDataset(generator_mc(2048), ["col0", "col1"]) data1 = data1.map(operations=(lambda x: (x * 5)), num_parallel_workers=2) # Expected column order is |col0|col1| i = 0 for item in data1.create_tuple_iterator(): assert len(item) == 2 golden = np.array([i * 5]) assert np.array_equal(item[0], golden) golden = np.array([[i, i + 1], [i + 2, i + 3]]) assert np.array_equal(item[1], golden) i = i + 1 data1 = ds.GeneratorDataset(generator_mc(2048), ["col0", "col1"]) data1 = data1.map(operations=(lambda x: (x * 5)), columns_order=["col1", "col0"], num_parallel_workers=2) # Expected column order is |col0|col1| i = 0 for item in data1.create_tuple_iterator(): assert len(item) == 2 golden = np.array([i * 5]) assert np.array_equal(item[1], golden) golden = np.array([[i, i + 1], [i + 2, i + 3]]) assert np.array_equal(item[0], golden) i = i + 1 def test_case_13(): """ Test map column order when input_columns is None. """ logger.info("Test map column order when input_columns is None.") # apply dataset operations data1 = ds.GeneratorDataset(generator_mc(2048), ["col0", "col1"]) data1 = data1.map(operations=(lambda x: (x * 5)), output_columns=["out0"], num_parallel_workers=2) # Expected column order is |out0|col1| i = 0 for item in data1.create_tuple_iterator(): assert len(item) == 2 golden = np.array([i * 5]) assert np.array_equal(item[0], golden) golden = np.array([[i, i + 1], [i + 2, i + 3]]) assert np.array_equal(item[1], golden) i = i + 1 for item in data1.create_dict_iterator(): # each data is a dictionary # len should be 2 because col0 is dropped (not included in columns_order) assert len(item) == 2 golden = np.array([i * 5]) assert np.array_equal(item["out0"], golden) golden = np.array([[i, i + 1], [i + 2, i + 3]]) assert np.array_equal(item["col1"], golden) i = i + 1 def test_case_error_1(): def generator_np(): for i in range(64): yield (np.array([{i}]),) with pytest.raises(RuntimeError) as info: data1 = ds.GeneratorDataset(generator_np, ["data"]) for _ in data1: pass assert "Invalid data type" in str(info.value) def test_case_error_2(): def generator_np(): for i in range(64): yield ({i},) with pytest.raises(RuntimeError) as info: data1 = ds.GeneratorDataset(generator_np, ["data"]) for _ in data1: pass assert "Generator should return a tuple of numpy arrays" in str(info.value) def test_case_error_3(): with pytest.raises(ValueError) as info: # apply dataset operations data1 = ds.GeneratorDataset(generator_mc(2048), ["label", "image"]) data1 = data1.map(input_columns=["label"], output_columns=["out1", "out2"], operations=(lambda x: (x, x * 5)), num_parallel_workers=2) for _ in data1: pass assert "When (len(input_columns) != len(output_columns)), columns_order must be specified." in str(info.value) def test_case_error_4(): with pytest.raises(RuntimeError) as info: # apply dataset operations data1 = ds.GeneratorDataset(generator_mc(2048), ["label", "image"]) data1 = data1.map(input_columns=["label"], operations=(lambda x: (x, x * 5)), num_parallel_workers=2) for _ in data1: pass assert "Unexpected error. Result of a tensorOp doesn't match output column names" in str(info.value) if __name__ == "__main__": test_case_0() test_case_1() test_case_2() test_case_3() test_case_4() test_case_5() test_case_6() test_case_7() test_case_8() test_case_9() test_case_10() test_case_11() test_case_12() test_case_13() test_case_error_1() test_case_error_2() test_case_error_3() test_case_error_4()
33.453362
118
0.606277
2,220
15,422
4.077928
0.096847
0.051033
0.032696
0.044847
0.799183
0.7698
0.754888
0.717663
0.685077
0.650834
0
0.049033
0.248865
15,422
460
119
33.526087
0.732476
0.173583
0
0.564103
0
0
0.107123
0.001683
0
0
0
0
0.139194
1
0.102564
false
0.014652
0.018315
0
0.120879
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
0764ee73ee29d54312a2ebb3b984fa9fb4550ed5
1,505
py
Python
netbox/exceptions.py
austinjhunt/python-netbox
0fced40eb40389f11f45e6b70748dd2169fd7e2b
[ "Apache-2.0" ]
1
2019-01-16T22:35:07.000Z
2019-01-16T22:35:07.000Z
netbox/exceptions.py
jixianbo/python-netbox
b893492653b99865981ebec566b37cd0f9bab0c3
[ "Apache-2.0" ]
null
null
null
netbox/exceptions.py
jixianbo/python-netbox
b893492653b99865981ebec566b37cd0f9bab0c3
[ "Apache-2.0" ]
null
null
null
class BaseExceptions(Exception): pass class DeleteException(BaseException): """Raised when delete failed""" def __init__(self, resp_data): if isinstance(resp_data, dict): self.err = ''.join('Failed with reason {}'.format(val) for key, val in resp_data.items()) else: self.err = 'Delete failed with an unknown reason' def __str__(self): return '{}'.format(self.err) class NotFoundException(BaseException): """Raised when item is not found""" def __init__(self, msg): self.msg = msg def __str__(self): return 'Unable to found {}'.format(self.msg) class CreateException(BaseException): """Raised when creation failed""" def __init__(self, resp_data): if isinstance(resp_data, dict): self.err = ''.join('{} '.format(val[0]) for key, val in resp_data.items()) else: self.err = 'Creation failed with unknown reason' def __str__(self): return '{}'.format(self.err) class UpdateException(BaseException): """Raised when an object update fails""" def __init__(self, resp_data): if isinstance(resp_data, dict): self.err = ''.join('{} '.format(val[0]) for key, val in resp_data.items()) else: self.err = 'Update failed with unknown reason' def __str__(self): return '{}'.format(self.err) class AuthException(BaseException): """Raised when an API call method is not allowed""" pass
27.363636
101
0.620598
183
1,505
4.879781
0.289617
0.080627
0.128779
0.071669
0.515118
0.515118
0.515118
0.515118
0.515118
0.515118
0
0.001771
0.249834
1,505
54
102
27.87037
0.789194
0.10897
0
0.606061
0
0
0.117871
0
0
0
0
0
0
1
0.242424
false
0.060606
0
0.121212
0.545455
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
076a45091932bf0f7855476b1c2625393fb16180
57
py
Python
{{ cookiecutter.project_slug }}/settings/dev.py
ibrag8998/cookiecutter-chaban
ffd513afe2d82fa21246f8efb99f357699127b2c
[ "MIT" ]
null
null
null
{{ cookiecutter.project_slug }}/settings/dev.py
ibrag8998/cookiecutter-chaban
ffd513afe2d82fa21246f8efb99f357699127b2c
[ "MIT" ]
null
null
null
{{ cookiecutter.project_slug }}/settings/dev.py
ibrag8998/cookiecutter-chaban
ffd513afe2d82fa21246f8efb99f357699127b2c
[ "MIT" ]
null
null
null
from .base import env ADMIN_ID = env.int("ADMIN_ID", 0)
14.25
33
0.701754
11
57
3.454545
0.727273
0.368421
0
0
0
0
0
0
0
0
0
0.020833
0.157895
57
3
34
19
0.770833
0
0
0
0
0
0.140351
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
4aea2535cfa938b19d10e997bfc7725a0943f127
1,197
py
Python
commands.py
lukepetrolekas/selene
f7a411279747d69a3e3eb7ee9e9e29b0c51e3826
[ "MIT" ]
null
null
null
commands.py
lukepetrolekas/selene
f7a411279747d69a3e3eb7ee9e9e29b0c51e3826
[ "MIT" ]
null
null
null
commands.py
lukepetrolekas/selene
f7a411279747d69a3e3eb7ee9e9e29b0c51e3826
[ "MIT" ]
null
null
null
class CommandBuilder(): def __init__(self, cindex): self.cindex = cindex class CodeBuilder(CommandBuilder): def __init__(self, cindex, cmd): super().__init__(cindex) self.cmd = cmd def __str__(self): return self.cmd class SlugBuilder(CommandBuilder): def __init__(self, cindex, time, location, transition): super().__init__(cindex) self.time = time self.location = location self.transition = transition def __str__(self): return F" scene bg {self.location}" + (F"\n with {self.transition}" if self.transition else "") class ActorBuilder(CommandBuilder): def __init__(self, cindex, alias, actor): super().__init__(cindex) self.alias = alias self.actor = actor def __str__(self): return F"define {self.alias} = Character(\"{self.actor.upper()}\", color=\"#fff\")" class LineBuilder(CommandBuilder): def __init__(self, cindex, actor, blocking, line): super().__init__(cindex) self.actor = actor self.blocking = blocking self.line = line def __str__(self): return F" {self.actor} \"{self.line}\""
29.925
109
0.619048
132
1,197
5.219697
0.25
0.087083
0.152395
0.181422
0.298984
0
0
0
0
0
0
0
0.254804
1,197
40
110
29.925
0.772422
0
0
0.3125
0
0
0.097663
0
0
0
0
0
0
1
0.28125
false
0
0
0.125
0.5625
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
4aea5cf91d94441afc3f3253e0ecdf90e1f667b3
64
py
Python
python/utir/ast/__init__.py
ChanTsune/Unit-Test-IR
201b5171b6abe600d4f6acf869fbe02ee6e18a3d
[ "MIT" ]
2
2021-01-21T05:57:07.000Z
2021-03-08T15:18:21.000Z
python/utir/ast/__init__.py
ChanTsune/Unit-Test-IR
201b5171b6abe600d4f6acf869fbe02ee6e18a3d
[ "MIT" ]
2
2020-11-18T07:53:30.000Z
2020-12-28T08:40:18.000Z
python/utir/ast/__init__.py
ChanTsune/Unit-Test-IR
201b5171b6abe600d4f6acf869fbe02ee6e18a3d
[ "MIT" ]
null
null
null
from .base import AST from .nodes import * from .suite import *
16
21
0.734375
10
64
4.7
0.6
0
0
0
0
0
0
0
0
0
0
0
0.1875
64
3
22
21.333333
0.903846
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
ab01b8ca14ad0f5ba4b9c410af856f303d8f25eb
5,160
py
Python
python/controls/text_control.py
mikaelho/examples
2efc52d841b5b9bdfb3ad83d023c978c02d51700
[ "MIT" ]
null
null
null
python/controls/text_control.py
mikaelho/examples
2efc52d841b5b9bdfb3ad83d023c978c02d51700
[ "MIT" ]
null
null
null
python/controls/text_control.py
mikaelho/examples
2efc52d841b5b9bdfb3ad83d023c978c02d51700
[ "MIT" ]
null
null
null
import pglet from pglet import Stack, Text def main(page): page.add( Text("Squares", size="large"), Stack( horizontal=True, controls=[ Text( "left top", align="left", vertical_align="top", width=100, height=100, bgcolor="salmon", color="white", padding=5, ), Text( "center top", align="center", vertical_align="top", width=100, height=100, bgcolor="salmon", color="white", padding=5, size="large", border="1px solid #555", ), Text( "right top", align="right", vertical_align="top", width=100, height=100, bgcolor="salmon", color="white", padding=5, border="2px solid #555", ), ], ), Stack( horizontal=True, controls=[ Text( "left center", align="left", vertical_align="center", width=100, height=100, bgcolor="PaleGoldenrod", padding=5, ), Text( "center center", align="center", vertical_align="center", width=100, height=100, bgcolor="PaleGoldenrod", padding=5, size="large", border="1px solid #555", ), Text( "right center", align="right", vertical_align="center", width=100, height=100, bgcolor="PaleGoldenrod", padding=5, border="2px solid #555", ), ], ), Stack( horizontal=True, controls=[ Text( "left bottom", align="left", vertical_align="center", width=100, height=100, bgcolor="PaleGreen", padding=5, ), Text( "center bottom", align="center", vertical_align="center", width=100, height=100, bgcolor="PaleGreen", padding=5, size="large", border="1px solid #555", ), Text( "right bottom", align="right", vertical_align="center", width=100, height=100, bgcolor="PaleGreen", padding=5, border="2px solid #555", ), ], ), Text("Circles", size="large"), Stack( horizontal=True, controls=[ Text( "regular", align="center", vertical_align="center", width=100, height=100, border_radius=50, bgcolor="salmon", ), Text( "bold italic", bold=True, italic=True, align="center", vertical_align="center", width=100, height=100, border_radius=50, bgcolor="PaleGoldenrod", size="large", border="1px solid #555", ), Text( "bold", bold=True, align="center", vertical_align="center", width=100, height=100, border_radius=50, bgcolor="PaleGreen", border="2px solid #555", ), ], ), Text("Markdown", size="large"), Text( """ # GitHub Flavored Markdown ## Autolink literals www.example.com, https://example.com, and contact@example.com. ## Strikethrough ~one~ or ~~two~~ tildes. ### Code sample ``` import pglet page = page.page() ``` ## Table | a | b | c | d | | - | :- | -: | :-: | """, markdown=True, ), ) pglet.app("python-text", target=main)
27.446809
62
0.325388
326
5,160
5.104294
0.214724
0.099159
0.100962
0.122596
0.721755
0.706731
0.694111
0.628005
0.628005
0.628005
0
0.054412
0.576163
5,160
187
63
27.593583
0.706447
0
0
0.849057
0
0
0.113664
0
0
0
0
0
0
1
0.006289
false
0
0.012579
0
0.018868
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
db4d10edd5dfeead283fded317ee4b1d51fc9cd7
90
py
Python
apps.py
AileenLumina/dwarf
5fc3b1b532290a474d17f84694dae1d0d53be7b4
[ "MIT" ]
null
null
null
apps.py
AileenLumina/dwarf
5fc3b1b532290a474d17f84694dae1d0d53be7b4
[ "MIT" ]
null
null
null
apps.py
AileenLumina/dwarf
5fc3b1b532290a474d17f84694dae1d0d53be7b4
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DwarfConfig(AppConfig): name = 'dwarf'
15
34
0.7
10
90
6.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.222222
90
5
35
18
0.9
0
0
0
0
0
0.058824
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
db540b9be4659914c537188852f374bf372b23cc
134
py
Python
mtaa/apps.py
tgalvinjr/majirani-IP
c4fb852130c3e4e6b9b6ff9707c125a3c964a67f
[ "MIT" ]
null
null
null
mtaa/apps.py
tgalvinjr/majirani-IP
c4fb852130c3e4e6b9b6ff9707c125a3c964a67f
[ "MIT" ]
4
2020-06-05T21:45:44.000Z
2021-06-10T21:39:38.000Z
mtaa/apps.py
tgalvinjr/majirani-IP
c4fb852130c3e4e6b9b6ff9707c125a3c964a67f
[ "MIT" ]
null
null
null
from django.apps import AppConfig class MtaaConfig(AppConfig): name = 'mtaa' def ready(self): import mtaa.signals
13.4
33
0.671642
16
134
5.625
0.8125
0
0
0
0
0
0
0
0
0
0
0
0.246269
134
9
34
14.888889
0.891089
0
0
0
0
0
0.030075
0
0
0
0
0
0
1
0.2
false
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
0
0
1
0
1
0
0
4
db8576a751b510395c7791eb66f7379e94b858d4
189
py
Python
python/testData/quickFixes/PyTypeHintsQuickFixTest/instanceCheckOnCallable.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/quickFixes/PyTypeHintsQuickFixTest/instanceCheckOnCallable.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/quickFixes/PyTypeHintsQuickFixTest/instanceCheckOnCallable.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
from typing import Callable class A: pass assert isinstance(A(), <error descr="Parameterized generics cannot be used with instance and class checks">Callable<caret>[..., str]</error>)
31.5
141
0.746032
26
189
5.423077
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.137566
189
6
141
31.5
0.865031
0
0
0
0
0
0.357895
0
0
0
0
0
0.25
0
null
null
0.25
0.25
null
null
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
1
0
0
1
0
0
0
0
0
4
db8bad619e798a005e405e27c036e2f84460d837
231
py
Python
apps/xfzauth/serializers.py
NAZBIN/web
cc9289dc5973e1041c0ed5df802d99b7efcf4d18
[ "MIT" ]
3
2019-08-26T11:11:31.000Z
2020-11-30T17:16:14.000Z
apps/xfzauth/serializers.py
NAZBIN/web
cc9289dc5973e1041c0ed5df802d99b7efcf4d18
[ "MIT" ]
7
2021-03-19T03:06:26.000Z
2022-03-11T23:57:45.000Z
apps/xfzauth/serializers.py
NAZBIN/web
cc9289dc5973e1041c0ed5df802d99b7efcf4d18
[ "MIT" ]
null
null
null
from rest_framework import serializers from .forms import User class UserSerializers(serializers.ModelSerializer): class Meta: model = User fields = ('uid','telephone','username','email','is_active','is_staff')
33
78
0.718615
26
231
6.269231
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.164502
231
7
78
33
0.84456
0
0
0
0
0
0.181034
0
0
0
0
0
0
1
0
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
dba347baa6c07f3e8f9bab237f4b6d14547be283
513
py
Python
apero/science/calib/__init__.py
njcuk9999/apero-drs
83b043e9f277a011b03e0227c77307961b200901
[ "MIT" ]
1
2021-03-09T17:49:31.000Z
2021-03-09T17:49:31.000Z
apero/science/calib/__init__.py
njcuk9999/apero-drs
83b043e9f277a011b03e0227c77307961b200901
[ "MIT" ]
43
2020-10-06T18:42:24.000Z
2022-03-28T21:23:10.000Z
apero/science/calib/__init__.py
njcuk9999/apero-drs
83b043e9f277a011b03e0227c77307961b200901
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ # CODE NAME HERE # CODE DESCRIPTION HERE Created on 2019-01-17 at 14:31 @author: cook """ __all__ = [] # ============================================================================= # Define functions # ============================================================================= # ============================================================================= # End of code # =============================================================================
22.304348
79
0.233918
29
513
4
0.896552
0
0
0
0
0
0
0
0
0
0
0.028017
0.095517
513
22
80
23.318182
0.221983
0.920078
0
0
0
0
0
0
0
1
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
4
dbb63f86d1ddff187c07cafbc7115125230dfde5
169
py
Python
bakery/custom_filebrowser/apps.py
yoniLavi/bobr_ru-bakery
4ae9b5de2bfd8462a515bd0685d8c6c38913c47f
[ "MIT" ]
null
null
null
bakery/custom_filebrowser/apps.py
yoniLavi/bobr_ru-bakery
4ae9b5de2bfd8462a515bd0685d8c6c38913c47f
[ "MIT" ]
null
null
null
bakery/custom_filebrowser/apps.py
yoniLavi/bobr_ru-bakery
4ae9b5de2bfd8462a515bd0685d8c6c38913c47f
[ "MIT" ]
null
null
null
from django.apps import AppConfig class CustomAdminConfig(AppConfig): name = 'bakery.custom_filebrowser' def ready(self): from . import forms # noqa
18.777778
38
0.704142
19
169
6.210526
0.842105
0
0
0
0
0
0
0
0
0
0
0
0.218935
169
8
39
21.125
0.893939
0.023669
0
0
0
0
0.153374
0.153374
0
0
0
0
0
1
0.2
false
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
0
0
1
0
1
0
0
4
dbd281fbb978887f616b5c1ff675e0e580ab6de4
61
py
Python
throttle/storage/base.py
Hanaasagi/throttle
c80aa6266e36f8ff0b99fbedac1c4e28e305f91d
[ "MIT" ]
null
null
null
throttle/storage/base.py
Hanaasagi/throttle
c80aa6266e36f8ff0b99fbedac1c4e28e305f91d
[ "MIT" ]
null
null
null
throttle/storage/base.py
Hanaasagi/throttle
c80aa6266e36f8ff0b99fbedac1c4e28e305f91d
[ "MIT" ]
null
null
null
class BaseStorage: """Abstract Storage Class""" pass
15.25
32
0.655738
6
61
6.666667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.229508
61
3
33
20.333333
0.851064
0.360656
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
915776791016162ecf151351fa76ec290cff203e
235
py
Python
common/data.py
kollad/turbo-ninja
9c3f66b2af64aec01f522d19b309cfdd723e67cf
[ "MIT" ]
null
null
null
common/data.py
kollad/turbo-ninja
9c3f66b2af64aec01f522d19b309cfdd723e67cf
[ "MIT" ]
1
2017-12-14T05:35:38.000Z
2017-12-14T05:35:38.000Z
common/data.py
kollad/turbo-ninja
9c3f66b2af64aec01f522d19b309cfdd723e67cf
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod __author__ = 'kollad' class DataObjectAbstract(metaclass=ABCMeta): @abstractmethod def reload_cache(self, key): pass @abstractmethod def drop_cache(self): pass
18.076923
44
0.697872
24
235
6.583333
0.708333
0.265823
0
0
0
0
0
0
0
0
0
0
0.229787
235
13
45
18.076923
0.872928
0
0
0.444444
0
0
0.025424
0
0
0
0
0
0
1
0.222222
false
0.222222
0.111111
0
0.444444
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
916df208b078621ca1c231c8872b3e92cd1518e6
2,536
py
Python
modules/dbnd/src/dbnd/_core/tracking/backends/channels/abstract_channel.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/_core/tracking/backends/channels/abstract_channel.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/_core/tracking/backends/channels/abstract_channel.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
import logging from abc import ABCMeta import six logger = logging.getLogger(__name__) @six.add_metaclass(ABCMeta) class TrackingChannel(object): def _handle(self, name, data): logger.info("Tracking %s.%s is not implemented", self.__class__.__name__, name) def init_scheduled_job(self, data): return self._handle(TrackingChannel.init_scheduled_job.__name__, data) def init_run(self, data): return self._handle(TrackingChannel.init_run.__name__, data) def add_task_runs(self, data): return self._handle(TrackingChannel.add_task_runs.__name__, data) def set_run_state(self, data): return self._handle(TrackingChannel.set_run_state.__name__, data) def set_task_reused(self, data): return self._handle(TrackingChannel.set_task_reused.__name__, data) def update_task_run_attempts(self, data): return self._handle(TrackingChannel.update_task_run_attempts.__name__, data) def set_unfinished_tasks_state(self, data): return self._handle(TrackingChannel.set_unfinished_tasks_state.__name__, data) def save_task_run_log(self, data): return self._handle(TrackingChannel.save_task_run_log.__name__, data) def save_external_links(self, data): return self._handle(TrackingChannel.save_external_links.__name__, data) def log_dataset(self, data): return self._handle(TrackingChannel.log_dataset.__name__, data) def log_datasets(self, data): return self._handle(TrackingChannel.log_datasets.__name__, data) def log_target(self, data): return self._handle(TrackingChannel.log_target.__name__, data) def log_targets(self, data): return self._handle(TrackingChannel.log_targets.__name__, data) def log_metric(self, data): return self._handle(TrackingChannel.log_metric.__name__, data) def log_metrics(self, data): return self._handle(TrackingChannel.log_metrics.__name__, data) def log_artifact(self, data): return self._handle(TrackingChannel.log_artifact.__name__, data) def heartbeat(self, data): return self._handle(TrackingChannel.heartbeat.__name__, data) def save_airflow_task_infos(self, data): return self._handle(TrackingChannel.save_airflow_task_infos.__name__, data) def is_ready(self): return self._handle(TrackingChannel.is_ready.__name__, None) def get_schema_by_handler_name(self, handler_name): raise NotImplementedError() def shutdown(self): pass
32.512821
87
0.738565
321
2,536
5.286604
0.193146
0.08957
0.17914
0.347083
0.449028
0.449028
0.380083
0.055392
0
0
0
0
0.172319
2,536
77
88
32.935065
0.80848
0
0
0
0
0
0.013013
0
0
0
0
0
0
1
0.44
false
0.02
0.06
0.38
0.9
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
9181131f7790bfdbf1b203f21d944628f5219a78
544
py
Python
src/type.py
hieunv495/backuptools
962a3719cfa306c85834aef74a19cb832200a13d
[ "MIT" ]
1
2021-07-27T11:23:17.000Z
2021-07-27T11:23:17.000Z
src/type.py
hieunv495/backuptools
962a3719cfa306c85834aef74a19cb832200a13d
[ "MIT" ]
null
null
null
src/type.py
hieunv495/backuptools
962a3719cfa306c85834aef74a19cb832200a13d
[ "MIT" ]
null
null
null
from typing import Any, Dict FileMeta = Dict[str, Any] class ParentNotFoundException(Exception): def __init__(self, message="Parent not found"): self.message = message super().__init__(self.message) class FileNotFoundException(Exception): def __init__(self, message="File not found"): self.message = message super().__init__(self.message) class FileExistedException(Exception): def __init__(self, message="File existed"): self.message = message super().__init__(self.message)
23.652174
51
0.691176
59
544
5.966102
0.372881
0.28125
0.255682
0.170455
0.650568
0.573864
0.397727
0.289773
0.289773
0.289773
0
0
0.200368
544
22
52
24.727273
0.809195
0
0
0.428571
0
0
0.077348
0
0
0
0
0
0
1
0.214286
false
0
0.071429
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
91a8e79f44493d453f1057af4955c2775a43ba46
104
py
Python
src/biblishelf_main/apps.py
x007007007/biblishelf
a79b105f6929ecc9df41b1e74a92713212cd06fa
[ "MIT" ]
null
null
null
src/biblishelf_main/apps.py
x007007007/biblishelf
a79b105f6929ecc9df41b1e74a92713212cd06fa
[ "MIT" ]
3
2018-01-28T15:17:55.000Z
2018-01-31T09:21:01.000Z
src/biblishelf_main/apps.py
x007007007/biblishelf
a79b105f6929ecc9df41b1e74a92713212cd06fa
[ "MIT" ]
1
2018-01-27T13:49:51.000Z
2018-01-27T13:49:51.000Z
from django.apps import AppConfig class BiblishelfMainConfig(AppConfig): name = 'biblishelf_main'
17.333333
38
0.788462
11
104
7.363636
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.144231
104
5
39
20.8
0.910112
0
0
0
0
0
0.144231
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
91b9059197cb6a954f639cfe3773f40982c651ff
98
py
Python
RL_Toy/base/__init__.py
Bobobert/RL_Toy
34d5955525aa761b3180181168b8a9b83061623f
[ "MIT" ]
null
null
null
RL_Toy/base/__init__.py
Bobobert/RL_Toy
34d5955525aa761b3180181168b8a9b83061623f
[ "MIT" ]
null
null
null
RL_Toy/base/__init__.py
Bobobert/RL_Toy
34d5955525aa761b3180181168b8a9b83061623f
[ "MIT" ]
null
null
null
from RL_Toy.base.basics import Environment, Policy, ActionSpace, ObservationSpace, Agent, AgentToy
98
98
0.846939
12
98
6.833333
1
0
0
0
0
0
0
0
0
0
0
0
0.081633
98
1
98
98
0.911111
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
91cc74c18f882a413f121876ebbcc3f5035f6360
43
py
Python
utils/data/processing/_abstract.py
m-zayan/deeplearning_utils
cc40636f46d13a81cb1020fdcfae84e52456fa06
[ "MIT" ]
null
null
null
utils/data/processing/_abstract.py
m-zayan/deeplearning_utils
cc40636f46d13a81cb1020fdcfae84e52456fa06
[ "MIT" ]
null
null
null
utils/data/processing/_abstract.py
m-zayan/deeplearning_utils
cc40636f46d13a81cb1020fdcfae84e52456fa06
[ "MIT" ]
null
null
null
__all__ = ['Meta'] class Meta: pass
6.142857
18
0.55814
5
43
4
0.8
0
0
0
0
0
0
0
0
0
0
0
0.302326
43
6
19
7.166667
0.666667
0
0
0
0
0
0.095238
0
0
0
0
0
0
1
0
false
0.333333
0
0
0.333333
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
0
1
0
0
0
0
0
4
37d038f91aaa246d15d5c61e62f9f0881f39043c
476
py
Python
src/arbies/__init__.py
broiledmeat/arbies
29f3ce498dbd3265b1181dde62629df3deda0440
[ "MIT" ]
null
null
null
src/arbies/__init__.py
broiledmeat/arbies
29f3ce498dbd3265b1181dde62629df3deda0440
[ "MIT" ]
null
null
null
src/arbies/__init__.py
broiledmeat/arbies
29f3ce498dbd3265b1181dde62629df3deda0440
[ "MIT" ]
null
null
null
import importlib from typing import Type, Dict _import_class_cache: Dict[str, Type] = {} def import_module_class_from_fullname(name) -> Type: if name not in _import_class_cache: name_index: int = name.rindex('.') module_name: str = name[:name_index] class_name: str = name[name_index + 1:] module = importlib.import_module(module_name) _import_class_cache[name] = getattr(module, class_name) return _import_class_cache[name]
31.733333
63
0.705882
65
476
4.8
0.338462
0.141026
0.205128
0.192308
0.128205
0
0
0
0
0
0
0.002625
0.19958
476
14
64
34
0.816273
0
0
0
0
0
0.002101
0
0
0
0
0
0
1
0.090909
false
0
0.727273
0
0.909091
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
37e756f9e12aea68d8c736176a9a3e6c2cd5fee9
71
py
Python
src/utils.py
aman313/SCAN
2819bfe7e5b3da0fd3bcceb68c67ff87b343f6e9
[ "BSD-3-Clause" ]
null
null
null
src/utils.py
aman313/SCAN
2819bfe7e5b3da0fd3bcceb68c67ff87b343f6e9
[ "BSD-3-Clause" ]
null
null
null
src/utils.py
aman313/SCAN
2819bfe7e5b3da0fd3bcceb68c67ff87b343f6e9
[ "BSD-3-Clause" ]
null
null
null
def create_paired_scan_dataset(instance_file, reference_file): pass
35.5
62
0.84507
10
71
5.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.098592
71
2
63
35.5
0.859375
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
4
37f69fb2c73a3280f8e050080b9aea5d461bff6a
97
py
Python
dealsengine/apps.py
lh15/dealscore_django
0f17cc5c399d28d89ea1db9b4f978515d8f29334
[ "MIT" ]
null
null
null
dealsengine/apps.py
lh15/dealscore_django
0f17cc5c399d28d89ea1db9b4f978515d8f29334
[ "MIT" ]
3
2021-03-19T11:32:01.000Z
2022-02-10T11:43:56.000Z
dealsengine/apps.py
lh15/dealscore_django
0f17cc5c399d28d89ea1db9b4f978515d8f29334
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DealsengineConfig(AppConfig): name = 'dealsengine'
16.166667
35
0.773196
10
97
7.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.154639
97
5
36
19.4
0.914634
0
0
0
0
0
0.113402
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
5308d29cfed8808640991b0a13bdf4ac39960f35
39
py
Python
Bronze/Bronze_V/18108.py
masterTyper/baekjoon_solved_ac
b9ce14d9bdaa5b5b06735ad075fb827de9f44b9c
[ "MIT" ]
null
null
null
Bronze/Bronze_V/18108.py
masterTyper/baekjoon_solved_ac
b9ce14d9bdaa5b5b06735ad075fb827de9f44b9c
[ "MIT" ]
null
null
null
Bronze/Bronze_V/18108.py
masterTyper/baekjoon_solved_ac
b9ce14d9bdaa5b5b06735ad075fb827de9f44b9c
[ "MIT" ]
null
null
null
year = int(input()) print(year - 543)
9.75
19
0.615385
6
39
4
0.833333
0
0
0
0
0
0
0
0
0
0
0.09375
0.179487
39
3
20
13
0.65625
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
0
0
0
0
0
1
0
4
5319e8ef45b4465b2db575a82bd9713034c1231d
223
py
Python
src/logits.py
hankyul2/KnowledgeDistillation
f019dfc17886f40339f13421bfb452b364e302f3
[ "Apache-2.0" ]
null
null
null
src/logits.py
hankyul2/KnowledgeDistillation
f019dfc17886f40339f13421bfb452b364e302f3
[ "Apache-2.0" ]
1
2021-08-30T00:22:02.000Z
2021-08-30T00:22:11.000Z
src/logits.py
hankyul2/KnowledgeDistillation
f019dfc17886f40339f13421bfb452b364e302f3
[ "Apache-2.0" ]
null
null
null
from torch import nn import torch.nn.functional as F class Logits(nn.Module): def __init__(self): super(Logits, self).__init__() def forward(self, s_feat, t_feat): return F.mse_loss(s_feat, t_feat)
24.777778
41
0.686099
36
223
3.888889
0.583333
0.071429
0.085714
0.142857
0
0
0
0
0
0
0
0
0.206278
223
9
41
24.777778
0.79096
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0.142857
0.857143
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
0
1
1
0
0
4
53221716448bba0fa996200170d76d60bcb6257c
58
py
Python
Codeforces/ACMSGURU/112-a^b-b^a.py
Pankajcoder1/Competitive_programming
72ee0d41f3f72f43a5c2a232255eb84a04b14df9
[ "MIT" ]
null
null
null
Codeforces/ACMSGURU/112-a^b-b^a.py
Pankajcoder1/Competitive_programming
72ee0d41f3f72f43a5c2a232255eb84a04b14df9
[ "MIT" ]
null
null
null
Codeforces/ACMSGURU/112-a^b-b^a.py
Pankajcoder1/Competitive_programming
72ee0d41f3f72f43a5c2a232255eb84a04b14df9
[ "MIT" ]
1
2020-10-02T04:51:22.000Z
2020-10-02T04:51:22.000Z
a,b=[int(x) for x in input().split()] print((a**b)-(b**a))
29
37
0.534483
14
58
2.214286
0.642857
0.129032
0
0
0
0
0
0
0
0
0
0
0.086207
58
2
38
29
0.584906
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
5341cf30131c2a96e4f9818ef4e0bcc0ce7bfc37
40
py
Python
vox/__init__.py
BastienLaby/vox
07ec972315f1714d3791d3e55e59e7b3fadff338
[ "MIT" ]
null
null
null
vox/__init__.py
BastienLaby/vox
07ec972315f1714d3791d3e55e59e7b3fadff338
[ "MIT" ]
1
2021-06-08T22:05:06.000Z
2021-06-08T22:05:06.000Z
vox/__init__.py
BastienLaby/vox
07ec972315f1714d3791d3e55e59e7b3fadff338
[ "MIT" ]
null
null
null
# vox/__init__.py __version__ = "0.1.0"
13.333333
21
0.675
7
40
2.714286
0.857143
0
0
0
0
0
0
0
0
0
0
0.085714
0.125
40
3
21
13.333333
0.457143
0.375
0
0
0
0
0.208333
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
534a223855036c4342853825e5f0f6fb379d15d1
48
py
Python
Interface.py
ijtodorov/Python_aksiom16
6242a5a164c0366fb3d48eed9b2182575cf59194
[ "MIT" ]
null
null
null
Interface.py
ijtodorov/Python_aksiom16
6242a5a164c0366fb3d48eed9b2182575cf59194
[ "MIT" ]
null
null
null
Interface.py
ijtodorov/Python_aksiom16
6242a5a164c0366fb3d48eed9b2182575cf59194
[ "MIT" ]
null
null
null
__author__ = 'Cib' class interface(): pass
9.6
18
0.645833
5
48
5.4
1
0
0
0
0
0
0
0
0
0
0
0
0.229167
48
4
19
12
0.72973
0
0
0
0
0
0.0625
0
0
0
0
0
0
1
0
false
0.333333
0
0
0.333333
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
0
1
0
0
0
0
0
4