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
73b766005de1b1ebc0817db1d6b86365ecdb4eda
19,894
py
Python
percona-nagios-plugins/nagios/bin/pmp-check-aws-rds.py
waja/pkg-nagios-plugins-contrib
fd1480282a016212ac28e4479ff477c72052f6fb
[ "Artistic-1.0-Perl" ]
null
null
null
percona-nagios-plugins/nagios/bin/pmp-check-aws-rds.py
waja/pkg-nagios-plugins-contrib
fd1480282a016212ac28e4479ff477c72052f6fb
[ "Artistic-1.0-Perl" ]
null
null
null
percona-nagios-plugins/nagios/bin/pmp-check-aws-rds.py
waja/pkg-nagios-plugins-contrib
fd1480282a016212ac28e4479ff477c72052f6fb
[ "Artistic-1.0-Perl" ]
null
null
null
#!/usr/bin/env python """Nagios plugin for Amazon RDS monitoring. This program is part of $PROJECT_NAME$ License: GPL License (see COPYING) Author Roman Vynar Copyright 2014-2015 Percona LLC and/or its affiliates """ import datetime import optparse import pprint import sys import boto import boto.rds import boto.ec...
35.335702
128
0.574646
2,544
19,894
4.437893
0.197327
0.007972
0.01364
0.017361
0.316032
0.264925
0.231267
0.200177
0.167228
0.144553
0
0.029444
0.312004
19,894
562
129
35.398577
0.795426
0.031567
0
0.228571
0
0.007143
0.204456
0.00367
0
0
0
0
0
0
null
null
0
0.025
null
null
0.075
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
73b8ee371edcd1de2c6323d46904474aacbb56a5
4,331
py
Python
mysql-utilities-1.6.0/mysql/fabric/errors.py
bopopescu/mysql-dbcompare
1e912fd87282be3b3bed48487e6beb0ecb1de339
[ "Apache-2.0" ]
2
2018-03-20T07:42:58.000Z
2018-03-20T07:43:49.000Z
mysql-utilities-1.6.0/mysql/fabric/errors.py
bopopescu/mysql-dbcompare
1e912fd87282be3b3bed48487e6beb0ecb1de339
[ "Apache-2.0" ]
null
null
null
mysql-utilities-1.6.0/mysql/fabric/errors.py
bopopescu/mysql-dbcompare
1e912fd87282be3b3bed48487e6beb0ecb1de339
[ "Apache-2.0" ]
1
2020-07-23T23:07:08.000Z
2020-07-23T23:07:08.000Z
# # Copyright (c) 2013,2014, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the...
26.900621
77
0.704687
561
4,331
5.426025
0.381462
0.103482
0.124836
0.110381
0.287122
0.204008
0.153088
0.128121
0.103811
0.080158
0
0.005952
0.224198
4,331
160
78
27.06875
0.9
0.657354
0
0.446809
0
0
0
0
0
0
0
0
0
1
0.021277
false
0.446809
0
0
0.510638
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
73bfe56921017dcb523a86ec016510d86ea5e00b
1,982
py
Python
tests/validation/response/test_response_content_type_validation.py
maroux/flex
dfd7c6d79d065d7ce1b0c799e51e9bb5292612b2
[ "MIT" ]
160
2015-01-15T05:36:44.000Z
2021-08-04T00:43:54.000Z
tests/validation/response/test_response_content_type_validation.py
maroux/flex
dfd7c6d79d065d7ce1b0c799e51e9bb5292612b2
[ "MIT" ]
151
2015-01-20T16:45:36.000Z
2022-02-23T21:07:58.000Z
tests/validation/response/test_response_content_type_validation.py
maroux/flex
dfd7c6d79d065d7ce1b0c799e51e9bb5292612b2
[ "MIT" ]
90
2015-01-20T11:19:36.000Z
2021-08-03T08:58:18.000Z
import pytest from flex.error_messages import MESSAGES from flex.exceptions import ValidationError from flex.validation.response import ( validate_response, ) from tests.factories import ( SchemaFactory, ResponseFactory, ) from tests.utils import assert_message_in_errors def test_response_content_type_...
22.522727
75
0.553986
168
1,982
6.339286
0.345238
0.0723
0.042254
0.061972
0.692958
0.692958
0.659155
0.659155
0.659155
0.602817
0
0.007508
0.327952
1,982
87
76
22.781609
0.792042
0.025227
0
0.507042
0
0
0.151813
0
0
0
0
0
0.014085
1
0.042254
false
0
0.084507
0
0.126761
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
73c45c9b79fa5f39675bf18d6787b004d6345888
740
py
Python
src/clarityv2/crm/migrations/0010_auto_20171126_2024.py
Clarity-89/clarityv2
7c4af765c5473778fc0750d1505f8b5f1724e5c5
[ "MIT" ]
null
null
null
src/clarityv2/crm/migrations/0010_auto_20171126_2024.py
Clarity-89/clarityv2
7c4af765c5473778fc0750d1505f8b5f1724e5c5
[ "MIT" ]
1
2022-03-11T23:38:16.000Z
2022-03-11T23:38:16.000Z
src/clarityv2/crm/migrations/0010_auto_20171126_2024.py
Clarity-89/clarityv2
7c4af765c5473778fc0750d1505f8b5f1724e5c5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-11-26 18:24 from __future__ import unicode_literals from django.db import migrations import django_countries.fields class Migration(migrations.Migration): dependencies = [ ('crm', '0009_auto_20171115_2254'), ] operations = [ m...
27.407407
107
0.633784
80
740
5.65
0.575
0.097345
0.139381
0.128319
0.380531
0.380531
0.380531
0.380531
0.380531
0.380531
0
0.062724
0.245946
740
26
108
28.461538
0.747312
0.091892
0
0.421053
1
0
0.106129
0.03438
0
0
0
0
0
1
0
false
0
0.157895
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
73d4e527a91659a59b4ad845da420648ab1e563c
990
py
Python
djangocms_content_expiry/test_utils/polymorphic_project/admin.py
Aiky30/djangocms-content-expiry
da7d348bcdafbf1a9862e4cc69a8363b3305a31a
[ "BSD-3-Clause" ]
null
null
null
djangocms_content_expiry/test_utils/polymorphic_project/admin.py
Aiky30/djangocms-content-expiry
da7d348bcdafbf1a9862e4cc69a8363b3305a31a
[ "BSD-3-Clause" ]
4
2021-09-27T10:15:13.000Z
2021-11-23T17:18:04.000Z
djangocms_content_expiry/test_utils/polymorphic_project/admin.py
Aiky30/djangocms-content-expiry
da7d348bcdafbf1a9862e4cc69a8363b3305a31a
[ "BSD-3-Clause" ]
4
2021-09-06T20:13:45.000Z
2021-10-02T15:00:58.000Z
from django.contrib import admin from django.urls import re_path from .models import ( ArtProjectContent, ProjectContent, ProjectGrouper, ResearchProjectContent, ) from .views import PreviewView class VersionedContentAdmin(admin.ModelAdmin): def get_urls(self): info = self.model._meta.app...
23.023256
70
0.70101
93
990
7.322581
0.473118
0.076358
0.07489
0.111601
0
0
0
0
0
0
0
0
0.2
990
42
71
23.571429
0.859848
0
0
0.129032
0
0
0.035354
0.022222
0
0
0
0
0
1
0.032258
false
0.129032
0.129032
0
0.354839
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
73da17eade5527389fe47ff1d0e1709462391aa1
4,254
py
Python
test_user_add_remove_product.py
mlaxmla/test-selenium-webdriver
1b4df2c389643cb49e1103c4c08d40ecbdd075ae
[ "Apache-2.0" ]
null
null
null
test_user_add_remove_product.py
mlaxmla/test-selenium-webdriver
1b4df2c389643cb49e1103c4c08d40ecbdd075ae
[ "Apache-2.0" ]
null
null
null
test_user_add_remove_product.py
mlaxmla/test-selenium-webdriver
1b4df2c389643cb49e1103c4c08d40ecbdd075ae
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import unittest, time class TestCaseUserAddRemoveProduct(unittest.TestCase): def setUp(self): ...
68.612903
360
0.667842
617
4,254
4.481361
0.410049
0.0217
0.042315
0.0434
0.284268
0.23038
0.209042
0.159132
0.133816
0.104159
0
0.008284
0.205454
4,254
61
361
69.737705
0.809467
0.422661
0
0.057143
0
0
0.237058
0.186524
0
0
0
0.016393
0
1
0.085714
false
0
0.142857
0
0.257143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
73e38bd07b276fb38ff0ac8ddb94aa8bee7e53af
1,276
py
Python
src/aria/aria/reading/__init__.py
tliron/aria-ng
55cf7af3b0a8fe62d422dd687dd7da3849824524
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/aria/aria/reading/__init__.py
tliron/aria-ng
55cf7af3b0a8fe62d422dd687dd7da3849824524
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/aria/aria/reading/__init__.py
tliron/aria-ng
55cf7af3b0a8fe62d422dd687dd7da3849824524
[ "ECL-2.0", "Apache-2.0" ]
2
2020-06-16T09:52:49.000Z
2020-06-16T14:52:45.000Z
# # Copyright (c) 2016 GigaSpaces Technologies Ltd. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
31.121951
101
0.751567
149
1,276
6.409396
0.604027
0.062827
0.027225
0.033508
0
0
0
0
0
0
0
0.007576
0.172414
1,276
40
102
31.9
0.89678
0.465517
0
0
0
0
0.253754
0
0
0
0
0
0
1
0
false
0
0.391304
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
73e403e5472509e0b51dc220b4aa54046f21627e
76,733
py
Python
arcgishub/hub.py
Esri/hub-py
b6c28b8fe322780358eae6aa81226ca91d6e1a02
[ "Apache-2.0" ]
19
2020-03-14T14:40:20.000Z
2022-03-15T20:40:13.000Z
arcgishub/hub.py
esridc/hub-py
48982003920faa53cf37532fef383a6295d0c1ba
[ "Apache-2.0" ]
61
2018-03-14T14:15:05.000Z
2020-03-06T04:04:56.000Z
arcgishub/hub.py
Esri/hub-py
b6c28b8fe322780358eae6aa81226ca91d6e1a02
[ "Apache-2.0" ]
6
2020-03-09T16:02:53.000Z
2021-12-06T14:58:31.000Z
from arcgis.gis import GIS from arcgis.features import FeatureLayer from arcgis.geocoding import geocode from arcgis._impl.common._mixins import PropertyMap from arcgishub import discussions from arcgishub.discussions import ChannelManager, PostManager from arcgishub.sites import SiteManager, PageManager from arcgis.fe...
45.457938
1,647
0.522813
7,340
76,733
5.326022
0.118937
0.015936
0.010027
0.006446
0.356637
0.302637
0.242575
0.208554
0.184585
0.154631
0
0.004251
0.285718
76,733
1,688
1,648
45.457938
0.709008
0.404832
0
0.289441
0
0.002484
0.132808
0.009695
0
0
0
0
0
1
0.125466
false
0.009938
0.019876
0.003727
0.288199
0.004969
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
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
73e61390989474ce1b7e6d859cf9ab56b420f82d
6,285
py
Python
KG/DuEL_Baseline/data/eval.py
pkulzb/Research
88da4910a356f1e95e1e1e05316500055533683d
[ "Apache-2.0" ]
1,319
2020-02-14T10:42:07.000Z
2022-03-31T15:42:18.000Z
KG/DuEL_Baseline/data/eval.py
pkulzb/Research
88da4910a356f1e95e1e1e05316500055533683d
[ "Apache-2.0" ]
192
2020-02-14T02:53:34.000Z
2022-03-31T02:25:48.000Z
KG/DuEL_Baseline/data/eval.py
pkulzb/Research
88da4910a356f1e95e1e1e05316500055533683d
[ "Apache-2.0" ]
720
2020-02-14T02:12:38.000Z
2022-03-31T12:21:15.000Z
# !/bin/env python # -*- coding: utf-8 -*- ##################################################################################### # # Copyright (c) CCKS 2020 Entity Linking Organizing Committee. # All Rights Reserved. # ##################################################################################### """ @version ...
33.790323
89
0.460302
654
6,285
4.224771
0.204893
0.063699
0.06587
0.091205
0.488961
0.4097
0.31958
0.296417
0.225841
0.225841
0
0.020886
0.42864
6,285
185
90
33.972973
0.748538
0.034527
0
0.462069
0
0
0.048197
0.009818
0
0
0
0
0
0
null
null
0
0.02069
null
null
0.013793
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
73e7672bdc54ecd76c09e5af8f0ae930684638b3
830
py
Python
newspaper.py
mrzysv5/newspaper
4147e9d78e70eee49277f3687f4155b145286e6a
[ "MIT" ]
null
null
null
newspaper.py
mrzysv5/newspaper
4147e9d78e70eee49277f3687f4155b145286e6a
[ "MIT" ]
null
null
null
newspaper.py
mrzysv5/newspaper
4147e9d78e70eee49277f3687f4155b145286e6a
[ "MIT" ]
null
null
null
# coding: utf-8 from trie import TrieTree from utils import extract_urls, extract_meta class NewsPaper(object): def __init__(self, url, title): self.url = url self.title = title self.trie = TrieTree() self.mapper = {} self.meta = {} self._init() @property ...
23.055556
105
0.601205
106
830
4.528302
0.386792
0.058333
0.045833
0
0
0
0
0
0
0
0
0.001661
0.274699
830
36
106
23.055556
0.795681
0.015663
0
0
0
0
0.055147
0
0
0
0
0
0
0
null
null
0.04
0.08
null
null
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
73eb011d320fd9bb2239866e568c31686bdde2f4
1,019
py
Python
setup.py
andrewsanchez/q2-quality-filter
bd97ec13e36e2e20ed64fd55182e41c713a230ae
[ "BSD-3-Clause" ]
null
null
null
setup.py
andrewsanchez/q2-quality-filter
bd97ec13e36e2e20ed64fd55182e41c713a230ae
[ "BSD-3-Clause" ]
null
null
null
setup.py
andrewsanchez/q2-quality-filter
bd97ec13e36e2e20ed64fd55182e41c713a230ae
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2017-2020, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
31.84375
78
0.582924
106
1,019
5.462264
0.622642
0.093264
0.15544
0
0
0
0
0
0
0
0
0.01979
0.157017
1,019
31
79
32.870968
0.654249
0.327772
0
0
0
0
0.38257
0.113737
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
73f867eddd04388858dd053deab9866658dc2a45
242
py
Python
Class 3/Rectangle.py
teenage-coder/Introduction-to-Python
fee751071bdac27b4644279c44eb8f008271fcd1
[ "Apache-2.0" ]
1
2021-09-16T03:17:19.000Z
2021-09-16T03:17:19.000Z
Formulas with Python/Rectangle.py
teenage-coder/Data-Analysis-with-Python
5b4cd1277fd0ab6db9f8953087070fc30b0e293f
[ "Apache-2.0" ]
null
null
null
Formulas with Python/Rectangle.py
teenage-coder/Data-Analysis-with-Python
5b4cd1277fd0ab6db9f8953087070fc30b0e293f
[ "Apache-2.0" ]
null
null
null
length = int( input("Enter the length of rectagle: ") ) width = int( input("Enter the width of rectange: ") ) perimeter = 2 * (length + width) area = length * width print("Area: ", area, "square cm") print("Perimeter:", perimeter, "cm")
22
55
0.644628
32
242
4.875
0.46875
0.102564
0.166667
0.205128
0
0
0
0
0
0
0
0.005076
0.18595
242
10
56
24.2
0.786802
0
0
0
0
0
0.355372
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
73fa1f1cbe521cd225061e55b20d541424302e3b
361
py
Python
packages/pytea/pytest/unit_tests/passes/pass_conv2d_tuple02.py
lego0901/pytea
8ede650def2e68f4610ba816451d8b9e28f09f76
[ "MIT" ]
null
null
null
packages/pytea/pytest/unit_tests/passes/pass_conv2d_tuple02.py
lego0901/pytea
8ede650def2e68f4610ba816451d8b9e28f09f76
[ "MIT" ]
null
null
null
packages/pytea/pytest/unit_tests/passes/pass_conv2d_tuple02.py
lego0901/pytea
8ede650def2e68f4610ba816451d8b9e28f09f76
[ "MIT" ]
null
null
null
''' pass_conv2d_tuple02.py Copyright (c) Seoul National University Licensed under the MIT license. Author: Woo Sung Song Tuple parameters in nn.Conv2d. ''' import torch import torch.nn as nn import torch.nn.functional as F a = torch.rand(10, 32, 28, 28) conv = nn.Conv2d(32, 64, (3, 5), (2, 2)) b = conv(a) # shape ...
17.190476
40
0.698061
64
361
3.90625
0.65625
0.132
0.104
0
0
0
0
0
0
0
0
0.09699
0.171745
361
20
41
18.05
0.73913
0.457064
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
73fbadabce9238f8e526f738a9bc1c1d19f6d0b9
2,334
py
Python
featureserver_http_server.py
AstunTechnology/featureserver
0697730de12b7bc4c8d90bab829d95a865253e77
[ "BSD-3-Clause-Open-MPI", "MIT" ]
55
2015-01-20T14:29:59.000Z
2020-12-13T12:54:28.000Z
featureserver_http_server.py
makinacorpus/featureserver
379c1a7f51e75517ae7237751e1908f45c0c4d9a
[ "BSD-3-Clause-Open-MPI", "MIT" ]
3
2017-01-17T13:52:43.000Z
2021-01-13T10:50:27.000Z
featureserver_http_server.py
makinacorpus/featureserver
379c1a7f51e75517ae7237751e1908f45c0c4d9a
[ "BSD-3-Clause-Open-MPI", "MIT" ]
19
2015-02-08T12:32:25.000Z
2021-12-01T08:14:32.000Z
#!/usr/bin/python """A simple, standalone web server that serves FeatureServer requests.""" __author__ = "MetaCarta" __version__ = "FeatureServer $Id: featureserver_http_server.py 564 2008-05-24 14:32:18Z crschmidt $" __license__ = "Clear BSD" __copyright__ = "2006-2008 MetaCarta" import mimetypes, os from optparse...
32.873239
122
0.650814
277
2,334
5.220217
0.462094
0.062241
0.058783
0.031812
0.029737
0
0
0
0
0
0
0.024485
0.230077
2,334
70
123
33.342857
0.780189
0.006855
0
0.145455
0
0
0.184657
0.012489
0
0
0
0
0
0
null
null
0.036364
0.090909
null
null
0.036364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
73fbcada34f75845958cca46528bfdc47fee0d2c
337
py
Python
app/settings/local.py
codetigerco/django-base-project
f4fdb5232af00f3c743552f34562555c83ed1e2a
[ "MIT" ]
null
null
null
app/settings/local.py
codetigerco/django-base-project
f4fdb5232af00f3c743552f34562555c83ed1e2a
[ "MIT" ]
1
2015-03-26T21:07:25.000Z
2015-03-26T21:07:25.000Z
app/settings/local.py
codetigerco/django-base-project
f4fdb5232af00f3c743552f34562555c83ed1e2a
[ "MIT" ]
null
null
null
from .base import * # Database # https://docs.djangoproject.com/en/1.7/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'baseproject', 'USER': 'baseproject', 'PASSWORD': '', 'HOST': '127.0.0.1', 'PORT': '...
18.722222
63
0.545994
34
337
5.382353
0.882353
0
0
0
0
0
0
0
0
0
0
0.052
0.25816
337
17
64
19.823529
0.68
0.204748
0
0
0
0
0.419847
0.145038
0
0
0
0
0
1
0
false
0.090909
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
73fd072026934344ce3c01d3a80cfb7add9b6cf1
5,736
py
Python
python/dsbox/combinatorial_search/BanditDimensionalSearch.py
usc-isi-i2/dsbox-ta2
85e0e8f5bbda052fa77cb98f4eef1f4b50909fd2
[ "MIT" ]
7
2018-05-10T22:19:44.000Z
2020-07-21T07:28:39.000Z
python/dsbox/combinatorial_search/BanditDimensionalSearch.py
usc-isi-i2/dsbox-ta2
85e0e8f5bbda052fa77cb98f4eef1f4b50909fd2
[ "MIT" ]
187
2018-04-13T17:19:24.000Z
2020-04-21T00:41:15.000Z
python/dsbox/combinatorial_search/BanditDimensionalSearch.py
usc-isi-i2/dsbox-ta2
85e0e8f5bbda052fa77cb98f4eef1f4b50909fd2
[ "MIT" ]
7
2018-07-10T00:14:07.000Z
2019-07-25T17:59:44.000Z
import traceback import logging import time import traceback import typing import random from multiprocessing import Pool from pprint import pprint from math import sqrt, log import pandas as pd from d3m.container.dataset import Dataset from d3m.metadata.base import Metadata from dsbox.combinatorial_search.Configurati...
42.80597
100
0.705195
643
5,736
6.060653
0.265941
0.017963
0.033872
0.04311
0.339235
0.289453
0.269951
0.254555
0.254555
0.254555
0
0.00813
0.228033
5,736
133
101
43.12782
0.871951
0.316423
0
0.298507
0
0
0.024747
0.009047
0
0
0
0
0
1
0.044776
false
0
0.313433
0
0.373134
0.059701
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fb4c72a3f5ef4f5909ffc5de59aa1b80a3ce75b5
421
py
Python
setup.py
dantaki/pybamer
22c9f3e1c11946154c1d232b705abb42122f1f6d
[ "MIT" ]
null
null
null
setup.py
dantaki/pybamer
22c9f3e1c11946154c1d232b705abb42122f1f6d
[ "MIT" ]
null
null
null
setup.py
dantaki/pybamer
22c9f3e1c11946154c1d232b705abb42122f1f6d
[ "MIT" ]
2
2017-10-30T11:19:34.000Z
2019-11-26T12:28:53.000Z
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='pybamer', version='0.1', author='Danny Antaki', author_email='dantaki@ucsd.edu', packages=['pybamer'], scripts=['pybamer/pybamer'], url='https://github.com/dantaki/pybamer', license='LIC...
21.05
45
0.660333
48
421
5.729167
0.770833
0.08
0
0
0
0
0
0
0
0
0
0.00578
0.178147
421
19
46
22.157895
0.789017
0
0
0
0
0
0.27791
0
0
0
0
0
0
1
0
true
0
0.157895
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
fb50513aa1e6c67b5d034dcff900c7f890e63cd9
519
py
Python
examples/lcd.py
Elecrow-RD/Raspberry-Pi-Starter-Kit
9adad7bfb403a697119bf80bbc2290bc3832750d
[ "MIT" ]
1
2020-08-11T23:39:23.000Z
2020-08-11T23:39:23.000Z
examples/lcd.py
Elecrow-RD/Raspberry-Pi-Starter-Kit
9adad7bfb403a697119bf80bbc2290bc3832750d
[ "MIT" ]
null
null
null
examples/lcd.py
Elecrow-RD/Raspberry-Pi-Starter-Kit
9adad7bfb403a697119bf80bbc2290bc3832750d
[ "MIT" ]
1
2020-08-05T18:30:45.000Z
2020-08-05T18:30:45.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import sys import time import Adafruit_CharLCD as LCD # Define LCD column and row size for 16x2 LCD. lcd_columns = 16 lcd_rows = 2 # Initialize the LCD using the pins lcd = LCD.Adafruit_CharLCDBackpack(address=0x21) try: while True: # Turn backlight on lcd.set...
19.961538
48
0.687861
77
519
4.558442
0.662338
0.034188
0.08547
0
0
0
0
0
0
0
0
0.031941
0.2158
519
25
49
20.76
0.830467
0.339114
0
0.133333
0
0
0.032738
0
0
0
0.011905
0
0
0
null
null
0
0.2
null
null
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
1
0
0
0
0
0
0
0
0
1
fb54c836e505cb1b10b0589a346d607756c9c33f
5,799
py
Python
Betsy/Betsy/modules/infer_read_strandedness.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
9
2017-01-13T02:38:41.000Z
2021-04-08T00:44:39.000Z
Betsy/Betsy/modules/infer_read_strandedness.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
null
null
null
Betsy/Betsy/modules/infer_read_strandedness.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
4
2017-01-05T16:25:25.000Z
2019-12-12T20:07:38.000Z
from Module import AbstractModule class Module(AbstractModule): def __init__(self): AbstractModule.__init__(self) self.cache = {} def run( self, network, antecedents, out_attributes, user_options, num_cores, outfile): from genomicode import filelib from genomico...
32.762712
77
0.603207
745
5,799
4.55302
0.253691
0.026533
0.049528
0.020637
0.365271
0.295696
0.264741
0.21816
0.185142
0.14888
0
0.020202
0.28298
5,799
176
78
32.948864
0.795575
0.248146
0
0.224299
0
0
0.085032
0
0
0
0
0
0.158879
0
null
null
0
0.074766
null
null
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
1
0
0
0
0
0
0
0
0
1
fb585bf23a4a04463e1118652eaefb381f91f896
2,282
py
Python
io_import_rbsp/bsp_tool/branches/raven/soldier_of_fortune2.py
snake-biscuits/io_import_rbsp
0de47dc70c373cc0417cc222d5d83e6dde72068b
[ "MIT" ]
7
2021-09-30T11:13:00.000Z
2022-03-25T16:19:19.000Z
io_import_rbsp/bsp_tool/branches/raven/soldier_of_fortune2.py
snake-biscuits/io_import_rbsp
0de47dc70c373cc0417cc222d5d83e6dde72068b
[ "MIT" ]
1
2021-11-15T18:36:51.000Z
2021-11-15T18:36:51.000Z
io_import_rbsp/bsp_tool/branches/raven/soldier_of_fortune2.py
snake-biscuits/io_import_rbsp
0de47dc70c373cc0417cc222d5d83e6dde72068b
[ "MIT" ]
null
null
null
# https://github.com/TTimo/GtkRadiant/blob/master/tools/quake3/q3map2/game_sof2.h # https://github.com/TTimo/GtkRadiant/blob/master/tools/urt/tools/quake3/q3map2/bspfile_rbsp.c import enum from .. import shared from ..id_software import quake from ..id_software import quake3 FILE_MAGIC = b"RBSP" BSP_VERSION = 1 GA...
27.493976
99
0.631464
269
2,282
5.211896
0.468401
0.031384
0.039943
0.054208
0.194009
0.194009
0.194009
0.194009
0.162625
0.162625
0
0.033768
0.260298
2,282
82
100
27.829268
0.796801
0.36766
0
0
0
0
0.16561
0
0
0
0
0
0
1
0
false
0
0.095238
0
0.547619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fb5c460343b3536072fef6f79ec5f58388cf8caf
2,986
py
Python
edx_data_research/reporting/basic/map_answer_key_to_value.py
gopa1959/test
3e224d0d86015b1e3e2da426e914aeb86c80d3c8
[ "MIT" ]
null
null
null
edx_data_research/reporting/basic/map_answer_key_to_value.py
gopa1959/test
3e224d0d86015b1e3e2da426e914aeb86c80d3c8
[ "MIT" ]
null
null
null
edx_data_research/reporting/basic/map_answer_key_to_value.py
gopa1959/test
3e224d0d86015b1e3e2da426e914aeb86c80d3c8
[ "MIT" ]
null
null
null
import csv import sys import json # These modules can be found under reporting scripts. You will have to add them # in the same directory as this script from common.base_edx import EdXConnection from common.generate_csv_report import CSV db_name = sys.argv[1] answer_distribution = sys.argv[2] connection = EdXConnecti...
38.282051
134
0.630944
354
2,986
5.081921
0.274011
0.132296
0.077821
0.05114
0.190106
0.152307
0.116732
0.116732
0.116732
0.116732
0
0.002237
0.251507
2,986
77
135
38.779221
0.802685
0.06296
0
0.215385
0
0
0.103831
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.015385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fb5e67102d471d02ede1d93116987232dc9d761a
190
py
Python
Python_Everyday DAY1 20secs.py
cleanandsimple/Python_everyday
658e246782caaa4e6f6f6a47bed46c7945f116bd
[ "MIT" ]
null
null
null
Python_Everyday DAY1 20secs.py
cleanandsimple/Python_everyday
658e246782caaa4e6f6f6a47bed46c7945f116bd
[ "MIT" ]
null
null
null
Python_Everyday DAY1 20secs.py
cleanandsimple/Python_everyday
658e246782caaa4e6f6f6a47bed46c7945f116bd
[ "MIT" ]
null
null
null
import time input("엔터를 누르고 마음속으로 20초를 세세요.") start=time.time() input("20초를 다 세셨으면, 다시 엔터를 눌러주세요.") end=time.time() et=end-start print ('실제시간 :',et,'초') print ('차이 :',abs(et-20),'초')
21.111111
36
0.621053
34
190
3.470588
0.617647
0.152542
0
0
0
0
0
0
0
0
0
0.0375
0.157895
190
8
37
23.75
0.7
0
0
0
0
0
0.335165
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fb5f394a5b0870f156f81b67e9e91c195bbb8492
3,144
py
Python
pydantic_pandas/core.py
schlinkertc/pydantic-pandas
323d1dfd4e3fe5c6186956373aa7e704eb063ac7
[ "Apache-2.0" ]
null
null
null
pydantic_pandas/core.py
schlinkertc/pydantic-pandas
323d1dfd4e3fe5c6186956373aa7e704eb063ac7
[ "Apache-2.0" ]
null
null
null
pydantic_pandas/core.py
schlinkertc/pydantic-pandas
323d1dfd4e3fe5c6186956373aa7e704eb063ac7
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 00_core.ipynb (unless otherwise specified). __all__ = ['DataFrame', 'BaseModel', 'BaseFrame'] # Internal Cell from pandas.core.frame import DataFrame as PandasDataFrame from pydantic import ( validator, root_validator ) from pydantic import BaseModel as PydanticBas...
23.639098
95
0.645674
369
3,144
5.292683
0.357724
0.043011
0.02765
0.02765
0.08807
0.08807
0.08807
0.047107
0
0
0
0.002984
0.253817
3,144
133
96
23.639098
0.829497
0.069975
0
0.139535
1
0
0.050807
0
0
0
0
0
0.011628
1
0.127907
false
0.023256
0.127907
0.046512
0.44186
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fb614b77888aec1a681e3b692ec6e338fca103eb
429
py
Python
tests/conftest.py
Volody2006/pycbrf
eff364a0f2c3ba9ea1e19ec58a698d8e0e354d5b
[ "BSD-3-Clause" ]
null
null
null
tests/conftest.py
Volody2006/pycbrf
eff364a0f2c3ba9ea1e19ec58a698d8e0e354d5b
[ "BSD-3-Clause" ]
null
null
null
tests/conftest.py
Volody2006/pycbrf
eff364a0f2c3ba9ea1e19ec58a698d8e0e354d5b
[ "BSD-3-Clause" ]
null
null
null
import pytest from os import path @pytest.fixture def dir_fixtures(request): return path.join(path.dirname(path.abspath(request.module.__file__)), 'fixtures') @pytest.fixture def read_fixture(dir_fixtures): from pycbrf.utils import BytesIO def read_fixture_(name): with open(path.join(dir_fixt...
18.652174
85
0.694639
58
429
4.931034
0.465517
0.115385
0.111888
0
0
0
0
0
0
0
0
0
0.202797
429
22
86
19.5
0.836257
0
0
0.153846
0
0
0.02331
0
0
0
0
0
0
1
0.230769
false
0
0.230769
0.076923
0.692308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fb6709540a704724788f1bd3f0fb9014392cbd0c
17,237
py
Python
pyalgotrade/plotter.py
gabrielpreti/pyalgotrade
75a69961e8daf6cb3b44e525ed28f48e9fcd7cfe
[ "Apache-2.0" ]
null
null
null
pyalgotrade/plotter.py
gabrielpreti/pyalgotrade
75a69961e8daf6cb3b44e525ed28f48e9fcd7cfe
[ "Apache-2.0" ]
null
null
null
pyalgotrade/plotter.py
gabrielpreti/pyalgotrade
75a69961e8daf6cb3b44e525ed28f48e9fcd7cfe
[ "Apache-2.0" ]
null
null
null
# PyAlgoTrade # # Copyright 2011-2018 Gabriel Martin Becedillas Ruiz # # 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 ap...
33.276062
183
0.655392
1,828
17,237
6.031729
0.20186
0.022674
0.008979
0.013967
0.255396
0.18674
0.165246
0.148739
0.145112
0.129875
0
0.002724
0.254685
17,237
517
184
33.340426
0.85553
0.22092
0
0.333333
0
0
0.01044
0.001779
0
0
0
0
0
1
0.245098
false
0.003268
0.019608
0.091503
0.454248
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fb74c2717f2f6f38fa217c1949274088d7fe41d2
640
py
Python
pulse/consumers.py
mettamage/Meditation_Youtube_Player
79aa55c02a0e1e904bf6f2b53b198e24957c32f8
[ "MIT" ]
null
null
null
pulse/consumers.py
mettamage/Meditation_Youtube_Player
79aa55c02a0e1e904bf6f2b53b198e24957c32f8
[ "MIT" ]
null
null
null
pulse/consumers.py
mettamage/Meditation_Youtube_Player
79aa55c02a0e1e904bf6f2b53b198e24957c32f8
[ "MIT" ]
null
null
null
from django.http import HttpResponse from channels.handler import AsgiHandler import pulse.model as model import json #routed via ^/echo$ def ws_message(message): # ASGI WebSocket packet-received and send-packet message types # both have a "text" key for their textual data. # message.content = {'text': 'hello world...
30.47619
117
0.717188
91
640
4.967033
0.67033
0.066372
0.079646
0
0
0
0
0
0
0
0
0.03964
0.132813
640
20
118
32
0.774775
0.520313
0
0
0
0
0.026667
0
0
0
0
0
0
1
0.1
false
0
0.4
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fb757164aeb3ad7d05bef3874f5f87ce59de0e4e
1,730
py
Python
rio/blueprints/event/controllers.py
soasme/rio
e6b89634db8d3ad75ac7f7b25ddec5b19d4f66e2
[ "MIT" ]
null
null
null
rio/blueprints/event/controllers.py
soasme/rio
e6b89634db8d3ad75ac7f7b25ddec5b19d4f66e2
[ "MIT" ]
14
2016-04-14T04:18:41.000Z
2016-05-12T03:46:37.000Z
rio/blueprints/event/controllers.py
soasme/rio
e6b89634db8d3ad75ac7f7b25ddec5b19d4f66e2
[ "MIT" ]
1
2016-04-06T08:54:20.000Z
2016-04-06T08:54:20.000Z
# -*- coding: utf-8 -*- """ rio.blueprints.event.controllers ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ """ import json import logging from uuid import uuid4 from rio.core import cache from rio.core import graph from rio.models import get_data_by_slug_or_404 from rio.tasks import exec_event logger = logging.getLogger('rio.eve...
25.441176
86
0.678613
226
1,730
5.022124
0.314159
0.063436
0.044934
0.029956
0.028194
0
0
0
0
0
0
0.004425
0.216185
1,730
67
87
25.820896
0.832596
0.316185
0
0.151515
0
0
0.054965
0
0
0
0
0
0
1
0.030303
false
0.090909
0.212121
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fb8adb3e7ec21b0394913f542a26d41799a908fa
1,643
py
Python
project/models.py
VidhiRambhia/NSV_KJ
a9a450f8da31b192c3fdbf9a2e97210afe5ffe9b
[ "MIT" ]
5
2019-10-06T17:42:24.000Z
2021-10-01T10:46:07.000Z
project/models.py
VidhiRambhia/Trumped
a9a450f8da31b192c3fdbf9a2e97210afe5ffe9b
[ "MIT" ]
null
null
null
project/models.py
VidhiRambhia/Trumped
a9a450f8da31b192c3fdbf9a2e97210afe5ffe9b
[ "MIT" ]
null
null
null
from flask_login import UserMixin from project import login_manager, db @login_manager.user_loader def load_user(user_id): return User.query.get(int(user_id)) class User(db.Model,UserMixin): __tablename__ = 'user' id = db.Column(db.Integer, primary_key = True) email = db.Column(db.String(30),unique=True,nullable ...
42.128205
118
0.713329
241
1,643
4.688797
0.257261
0.099115
0.123894
0.127434
0.39115
0.375221
0.286726
0.286726
0.228319
0.095575
0
0.017869
0.114425
1,643
38
119
43.236842
0.758763
0.0493
0
0.193548
0
0.032258
0.141388
0.014139
0
0
0
0
0
1
0.096774
false
0.032258
0.064516
0.096774
0.967742
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fb8d4acac5b600d303963a0b63724b8a40469a80
769
py
Python
tests/pyposmat/data/PyposmatDataAnalyzer/test__read.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
4
2018-01-18T19:59:56.000Z
2020-08-25T11:56:52.000Z
tests/pyposmat/data/PyposmatDataAnalyzer/test__read.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2018-04-22T23:02:13.000Z
2018-04-22T23:02:13.000Z
tests/pyposmat/data/PyposmatDataAnalyzer/test__read.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2019-09-14T07:04:42.000Z
2019-09-14T07:04:42.000Z
import pytest import os from collections import OrderedDict import pypospack.utils from pypospack.pyposmat.data import PyposmatDataAnalyzer def get_testing_set(): pypospack_root_dir = pypospack.utils.get_pypospack_root_directory() testing_set = OrderedDict() testing_set['data_directory'] = os.path.join( ...
32.041667
71
0.728218
93
769
5.677419
0.365591
0.189394
0.079545
0.130682
0.162879
0.162879
0.162879
0.162879
0.162879
0
0
0
0.16775
769
23
72
33.434783
0.825
0
0
0
0
0
0.19896
0.06502
0
0
0
0
0
0
null
null
0
0.263158
null
null
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
1
0
0
0
0
0
0
0
0
1
fb99cc10040171c316ead276713afc42ba8d5c7c
700
py
Python
tests/system/NVDA Core/variables.py
SWEN-712/screen-reader-Hiten1928
51d0e7a753d67957d9c8fcc72e93bd1a2b791136
[ "bzip2-1.0.6" ]
4
2019-12-26T16:46:04.000Z
2020-05-02T06:19:19.000Z
tests/system/NVDA Core/variables.py
SWEN-712/screen-reader-Hiten1928
51d0e7a753d67957d9c8fcc72e93bd1a2b791136
[ "bzip2-1.0.6" ]
null
null
null
tests/system/NVDA Core/variables.py
SWEN-712/screen-reader-Hiten1928
51d0e7a753d67957d9c8fcc72e93bd1a2b791136
[ "bzip2-1.0.6" ]
2
2019-07-13T23:09:46.000Z
2019-10-16T20:56:26.000Z
WELCOME_DIALOG_TEXT = ( "Welcome to NVDA dialog Welcome to NVDA! Most commands for controlling NVDA require you to hold " "down the NVDA key while pressing other keys. By default, the numpad Insert and main Insert keys " "may both be used as the NVDA key. You can also configure NVDA to use the Caps Lock as the ...
50
101
0.717143
117
700
4.25641
0.57265
0.056225
0.060241
0.048193
0
0
0
0
0
0
0
0
0.228571
700
13
102
53.846154
0.922222
0
0
0
0
0.153846
0.876274
0
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
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
1
fb9be15197416d9dbc2fd5a1476c247ab045eeea
9,444
py
Python
src/bhmm.py
akullpp/ClusterPy
f17e43293ac1085e515c4efb4ee3f5508edefecc
[ "MIT" ]
4
2015-01-06T08:03:35.000Z
2021-04-12T09:05:48.000Z
src/bhmm.py
akullpp/ClusterPy
f17e43293ac1085e515c4efb4ee3f5508edefecc
[ "MIT" ]
null
null
null
src/bhmm.py
akullpp/ClusterPy
f17e43293ac1085e515c4efb4ee3f5508edefecc
[ "MIT" ]
3
2016-10-22T16:00:15.000Z
2018-10-08T01:56:21.000Z
from codecs import open from random import randint, uniform from collections import defaultdict from math import log from utility import change_count from utility import get_value class BHMM(object): """ Bayesian Hidden Markov Model with Gibbs sampling. """ def __init__(self, args): # Input file ...
38.234818
92
0.527531
871
9,444
5.560276
0.202067
0.040264
0.026017
0.032211
0.218047
0.198224
0.134008
0.079083
0.079083
0.052653
0
0.007467
0.390195
9,444
247
93
38.234818
0.833478
0.098475
0
0.082759
0
0
0.037062
0.00281
0
0
0
0
0
0
null
null
0
0.048276
null
null
0.089655
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fb9e2fb264c453705459940ff3b4b3162f74fb8a
914
py
Python
telegrambot/views.py
StudentiUniMi/backend
7915de730b273ef36f1adca10b1c3cacff820faa
[ "MIT" ]
5
2021-08-09T20:37:28.000Z
2022-03-08T12:25:49.000Z
telegrambot/views.py
StudentiUniMi/backend
7915de730b273ef36f1adca10b1c3cacff820faa
[ "MIT" ]
4
2021-08-14T12:36:44.000Z
2021-12-12T01:25:08.000Z
telegrambot/views.py
StudentiUniMi/backend
7915de730b273ef36f1adca10b1c3cacff820faa
[ "MIT" ]
2
2021-08-09T19:57:16.000Z
2021-08-11T20:19:30.000Z
import json from django.http import JsonResponse from django.views import View from telegrambot.handlers.dispatcher import dispatch_telegram_update from telegrambot.models import TelegramBot class TelegramBotWebhookView(View): @staticmethod def post(request, *args, **kwargs): token = request.GET.get...
32.642857
115
0.677243
102
914
6.029412
0.490196
0.117073
0.130081
0.121951
0.146341
0
0
0
0
0
0
0.012397
0.205689
914
27
116
33.851852
0.834711
0
0
0.1
0
0
0.110503
0
0
0
0
0
0
1
0.1
false
0
0.25
0.05
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fb9fd73aae9f9180b538c65adb7b51ce8cdcf157
470
py
Python
setup.py
devquixote/cfnviz
e5363cbf1efef72acbe9e0cad1bc4374b682085c
[ "MIT" ]
null
null
null
setup.py
devquixote/cfnviz
e5363cbf1efef72acbe9e0cad1bc4374b682085c
[ "MIT" ]
null
null
null
setup.py
devquixote/cfnviz
e5363cbf1efef72acbe9e0cad1bc4374b682085c
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="cfnviz", version="0.0.1", description="Cloudformation template visualization tool", url="https://github.com/devquixote/cfnviz", author="Lance Woodson", author_email="lance.woodson@bazaarvoice.com", license="MIT", packages=["cfnviz"], install...
20.434783
61
0.612766
48
470
5.9375
0.791667
0.084211
0
0
0
0
0
0
0
0
0
0.008357
0.23617
470
22
62
21.363636
0.785515
0
0
0.095238
0
0
0.385106
0.061702
0
0
0
0
0
1
0
true
0
0.047619
0
0.047619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
fba693cd5410faebb0df3d92811b0e1d25c569fd
334
py
Python
sources/nhdplus_h_2001_hu4.py
kueda/underfoot
b9d1a05fced70c494e582280c577bf5e16b73f77
[ "MIT" ]
4
2018-10-12T18:48:55.000Z
2022-03-10T05:30:18.000Z
sources/nhdplus_h_2001_hu4.py
kueda/underfoot
b9d1a05fced70c494e582280c577bf5e16b73f77
[ "MIT" ]
4
2020-07-16T09:44:48.000Z
2020-11-21T08:09:53.000Z
sources/nhdplus_h_2001_hu4.py
kueda/underfoot
b9d1a05fced70c494e582280c577bf5e16b73f77
[ "MIT" ]
null
null
null
import os import util # EPSG 4269 url = "https://prd-tnm.s3.amazonaws.com/StagedProducts/Hydrography/NHDPlusHR/Beta/GDB/NHDPLUS_H_2001_HU4_GDB.zip" # noqa: E501 dir_name = "NHDPLUS_H_2001_HU4_GDB" gdb_name = "NHDPLUS_H_2001_HU4_GDB.gdb" util.process_nhdplus_hr_source( os.path.realpath(__file__), url, dir_name,...
22.266667
127
0.781437
55
334
4.327273
0.581818
0.10084
0.151261
0.189076
0.285714
0.210084
0.210084
0
0
0
0
0.077181
0.107784
334
14
128
23.857143
0.721477
0.05988
0
0
0
0.090909
0.491961
0.154341
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fba9f97af7b654afb5fed2a47151b13c5cfedad2
646
py
Python
python/py-gdbm/files/setup.py
davidlrichmond/macports-ports
c79eda419c3963c074e4e9ce31a95296636bd500
[ "BSD-3-Clause" ]
1,199
2016-10-16T01:55:27.000Z
2022-03-28T17:07:12.000Z
python/py-gdbm/files/setup.py
davidlrichmond/macports-ports
c79eda419c3963c074e4e9ce31a95296636bd500
[ "BSD-3-Clause" ]
11,428
2016-10-31T16:54:32.000Z
2022-03-31T22:58:45.000Z
python/py-gdbm/files/setup.py
davidlrichmond/macports-ports
c79eda419c3963c074e4e9ce31a95296636bd500
[ "BSD-3-Clause" ]
1,772
2016-10-16T22:28:33.000Z
2022-03-31T08:52:24.000Z
try: import distutils from distutils import sysconfig from distutils.command.install import install from distutils.core import setup, Extension except: raise SystemExit, "Distutils problem" prefix = "__PREFIX__" inc_dirs = [prefix + "/include"] lib_dirs = [prefix + "/lib"] libs = ["gdbm"] setup(na...
28.086957
56
0.577399
62
646
5.774194
0.516129
0.108939
0
0
0
0
0
0
0
0
0
0
0.323529
646
22
57
29.363636
0.819222
0
0
0
0
0
0.151703
0
0
0
0
0
0
0
null
null
0
0.210526
null
null
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
1
0
0
0
0
0
0
0
0
1
fbaae94962e5d924717bf74c6e391b469f90e551
10,859
py
Python
thorn/auth_api.py
eubr-bigsea/thorn
4fa4d680e3fd63a7ea787677bfff888c7d69cfa2
[ "Apache-2.0" ]
null
null
null
thorn/auth_api.py
eubr-bigsea/thorn
4fa4d680e3fd63a7ea787677bfff888c7d69cfa2
[ "Apache-2.0" ]
23
2016-11-15T20:08:09.000Z
2021-07-14T20:12:23.000Z
thorn/auth_api.py
eubr-bigsea/thorn
4fa4d680e3fd63a7ea787677bfff888c7d69cfa2
[ "Apache-2.0" ]
2
2019-11-05T13:44:27.000Z
2020-11-13T22:03:18.000Z
# -*- coding: utf-8 -*-} import json import logging import urllib import jwt from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import serialization from thorn.app_auth import requires_auth, requires_permission from flask import request, current_app, Response from flask_restfu...
41.926641
90
0.508334
1,103
10,859
4.842248
0.186763
0.016476
0.015727
0.015915
0.311178
0.24003
0.173376
0.144168
0.137427
0.102603
0
0.0093
0.376186
10,859
258
91
42.089147
0.779156
0.049452
0
0.221698
0
0
0.097713
0.002044
0
0
0
0
0
1
0.042453
false
0.051887
0.061321
0.009434
0.15566
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fbad5c0a38249fdd6eea460f7f76014279805afc
9,106
py
Python
cctbx/web/emma.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
cctbx/web/emma.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
cctbx/web/emma.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division from cctbx import euclidean_model_matching as emma from cctbx import crystal from cctbx import sgtbx from cctbx import uctbx from cctbx.web import io_utils from cctbx.web import cgi_utils from itertools import count import sys def interpret_form_data(form): inp = cgi_utils.inp_from_fo...
34.888889
76
0.686251
1,204
9,106
4.932724
0.168605
0.035023
0.028288
0.018858
0.340461
0.265365
0.212157
0.157939
0.145816
0.12359
0
0.01217
0.205908
9,106
260
77
35.023077
0.809155
0
0
0.218107
0
0
0.109488
0.003075
0
0
0
0
0.024691
0
null
null
0.00823
0.045267
null
null
0.09465
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fbb564b7d15d74932777b7343a5f6b295b17d57e
1,739
py
Python
kubernetes/models/v1/NodeSelector.py
riconnon/kubernetes-py
42a4537876985ed105ee44b6529763ba5d57c179
[ "Apache-2.0" ]
null
null
null
kubernetes/models/v1/NodeSelector.py
riconnon/kubernetes-py
42a4537876985ed105ee44b6529763ba5d57c179
[ "Apache-2.0" ]
null
null
null
kubernetes/models/v1/NodeSelector.py
riconnon/kubernetes-py
42a4537876985ed105ee44b6529763ba5d57c179
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # This file is subject to the terms and conditions defined in # file 'LICENSE.md', which is part of this source code package. # from kubernetes.models.v1.NodeSelectorTerm import NodeSelectorTerm from kubernetes.utils import is_valid_list class NodeSelector(object): ...
30.508772
109
0.565842
182
1,739
5.181319
0.39011
0.127253
0.180276
0.133616
0.106045
0
0
0
0
0
0
0.003831
0.249569
1,739
56
110
31.053571
0.718774
0.248419
0
0.125
0
0
0.080997
0
0
0
0
0
0
1
0.15625
false
0
0.0625
0.03125
0.3125
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fbc0779f3e2f6bb608d3e370314d5b5d389335bd
5,054
py
Python
pygluu/kubernetes/terminal/configuration.py
danilosoarescardoso/cloud-native-edition
b8aa66119dc4440b1ca3741a4065c9ae7feb42fb
[ "Apache-2.0" ]
1
2021-04-04T04:25:49.000Z
2021-04-04T04:25:49.000Z
pygluu/kubernetes/terminal/configuration.py
danilosoarescardoso/cloud-native-edition
b8aa66119dc4440b1ca3741a4065c9ae7feb42fb
[ "Apache-2.0" ]
null
null
null
pygluu/kubernetes/terminal/configuration.py
danilosoarescardoso/cloud-native-edition
b8aa66119dc4440b1ca3741a4065c9ae7feb42fb
[ "Apache-2.0" ]
null
null
null
""" pygluu.kubernetes.terminal.configuration ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module contains helpers to interact with user's inputs for configuration terminal prompts. License terms and conditions for Gluu Cloud Native Edition: https://www.apache.org/licenses/LICENSE-2.0 """ import re import click from...
51.050505
136
0.589434
562
5,054
5.258007
0.300712
0.138071
0.091371
0.086294
0.393232
0.253807
0.154315
0.069036
0.069036
0.069036
0
0.006715
0.263356
5,054
98
137
51.571429
0.787
0.083894
0
0.031746
0
0.015873
0.383565
0.120555
0
0
0
0
0
1
0.031746
false
0.095238
0.047619
0
0.095238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fbc3faae891c6324a780ed42df09c76de5ebee73
2,631
py
Python
openelex/tasks/validate.py
Mpopoma/oe-core
860b99e14b9089a56b54cdd00285216a5cf77046
[ "MIT" ]
156
2015-04-09T02:56:10.000Z
2022-01-04T12:03:57.000Z
openelex/tasks/validate.py
Mpopoma/oe-core
860b99e14b9089a56b54cdd00285216a5cf77046
[ "MIT" ]
54
2015-01-10T00:09:53.000Z
2021-11-08T17:37:41.000Z
openelex/tasks/validate.py
Mpopoma/oe-core
860b99e14b9089a56b54cdd00285216a5cf77046
[ "MIT" ]
94
2015-01-10T18:45:15.000Z
2022-03-24T02:00:09.000Z
from __future__ import print_function import sys from collections import OrderedDict import click from .utils import load_module, split_args @click.command(name='validate.list', help="Show available validations for state") @click.option('--state', required=True, help="Two-letter state-abbreviation, e.g. NY") def li...
32.085366
86
0.627898
323
2,631
4.987616
0.28483
0.029795
0.047176
0.029795
0.355059
0.271881
0.2036
0.2036
0.2036
0.2036
0
0
0.251615
2,631
81
87
32.481481
0.818182
0.099202
0
0.275862
0
0
0.203688
0
0
0
0
0
0
1
0.051724
false
0.051724
0.086207
0
0.137931
0.155172
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fbc408a26decac1a53c7a01537431b17da6fdd09
448
py
Python
app/services/tokyo_commodities_exchange/export_site_to_db/__init__.py
Tinitto/crypto-exchange
cb61664ff0119d8120315b8c6feb77aeba0ec050
[ "MIT" ]
null
null
null
app/services/tokyo_commodities_exchange/export_site_to_db/__init__.py
Tinitto/crypto-exchange
cb61664ff0119d8120315b8c6feb77aeba0ec050
[ "MIT" ]
null
null
null
app/services/tokyo_commodities_exchange/export_site_to_db/__init__.py
Tinitto/crypto-exchange
cb61664ff0119d8120315b8c6feb77aeba0ec050
[ "MIT" ]
null
null
null
"""Module containing all the controllers for the export_site_to_db nomics service""" from .quotes_by_trade_date import ControllerForQuotesByTradeDate from .quotes_by_day_session import ControllerForQuotesByDaySession from .quotes_by_night_session import ControllerForQuotesByNightSession TOKYO_C_E_EXPORT_SITE_TO_DB_CO...
37.333333
84
0.870536
45
448
8.244444
0.6
0.080863
0.097035
0.075472
0
0
0
0
0
0
0
0
0.095982
448
11
85
40.727273
0.916049
0.174107
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fbc87a4ac1cc97dfa5fe26be16f3164bea25c59d
2,412
py
Python
fq2sam.py
IRRI-Bioinformatics/variant-calling-pipeline
0620542131cf24cc184fbd18ada8c80833c9cbab
[ "CC0-1.0" ]
null
null
null
fq2sam.py
IRRI-Bioinformatics/variant-calling-pipeline
0620542131cf24cc184fbd18ada8c80833c9cbab
[ "CC0-1.0" ]
3
2017-09-18T05:36:30.000Z
2017-09-18T06:45:21.000Z
fq2sam.py
IRRI-Bioinformatics/variant-calling-pipeline
0620542131cf24cc184fbd18ada8c80833c9cbab
[ "CC0-1.0" ]
2
2017-09-12T16:57:17.000Z
2020-02-22T01:45:05.000Z
#fq2sam.py: Align fastq read pairs to reference genome. #created by: Jeffrey A. Detras #!/usr/bin/python import sys, getopt, re, os, subprocess def main(argv): #define variables bwa_threads = '' reference = '' read_pair1 = '' output_dir = '' genome_dir = '' #get arguments try: ...
27.724138
67
0.485075
278
2,412
4.021583
0.33813
0.080501
0.039356
0.060823
0.264759
0.214669
0.109123
0.109123
0.109123
0.109123
0
0.018843
0.36194
2,412
86
68
28.046512
0.707602
0.143864
0
0.193548
0
0
0.171053
0
0
0
0
0
0
0
null
null
0
0.016129
null
null
0.048387
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fbcbf02c48ad0851d6d03dac0ef98dc09aa95123
348
py
Python
students/migrations/0003_remove_institutionalemail_address_email.py
estudeplus/perfil
58b847aa226b885ca6a7a128035f09de2322519f
[ "MIT" ]
null
null
null
students/migrations/0003_remove_institutionalemail_address_email.py
estudeplus/perfil
58b847aa226b885ca6a7a128035f09de2322519f
[ "MIT" ]
21
2019-05-11T18:01:10.000Z
2022-02-10T11:22:01.000Z
students/migrations/0003_remove_institutionalemail_address_email.py
estudeplus/perfil
58b847aa226b885ca6a7a128035f09de2322519f
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-06-28 05:49 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('students', '0002_institutionalemail'), ] operations = [ migrations.RemoveField( model_name='institutionalemail', name='addre...
19.333333
48
0.614943
34
348
6.205882
0.794118
0
0
0
0
0
0
0
0
0
0
0.075697
0.278736
348
17
49
20.470588
0.76494
0.12931
0
0
1
0
0.20598
0.076412
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fbcc1659caffc86da2e69c344b334da5814de02f
832
py
Python
main.py
bychkovav/gradient_descent
e4193c6839d2f90016af57f652faf7fc0662e636
[ "MIT" ]
null
null
null
main.py
bychkovav/gradient_descent
e4193c6839d2f90016af57f652faf7fc0662e636
[ "MIT" ]
null
null
null
main.py
bychkovav/gradient_descent
e4193c6839d2f90016af57f652faf7fc0662e636
[ "MIT" ]
null
null
null
import simpleGD as simple from mpl_toolkits import mplot3d import matplotlib.pyplot as plt import numpy as np from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFormatter # Gradient descent will be performed for Rosenbrock function: (a-x)**2+ b(y-x**2)**2 history = simple.process(100, 0.00...
28.689655
103
0.670673
150
832
3.7
0.453333
0.043243
0.064865
0.140541
0.234234
0.234234
0.190991
0.190991
0.190991
0.190991
0
0.05968
0.174279
832
28
104
29.714286
0.74818
0.240385
0
0
0
0
0.012759
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fbdb9584fbce5ea13f8bc4a14559f7231d13b350
976
py
Python
LintCode/824.py
RENHANFEI/LintCode
d572dee248ba4c2a95b52cd737d76c7297f4e7b4
[ "CNRI-Python" ]
null
null
null
LintCode/824.py
RENHANFEI/LintCode
d572dee248ba4c2a95b52cd737d76c7297f4e7b4
[ "CNRI-Python" ]
null
null
null
LintCode/824.py
RENHANFEI/LintCode
d572dee248ba4c2a95b52cd737d76c7297f4e7b4
[ "CNRI-Python" ]
null
null
null
class Solution: """ @param nums: The number array @return: Return the single number """ def getSingleNumber(self, nums): n = len(nums) if n == 1: return nums[0] if nums[n // 2] == nums[n - n // 2]: if n // 2 % 2 == 0: return se...
34.857143
67
0.400615
109
976
3.587156
0.183486
0.076726
0.168798
0.445013
0.680307
0.580563
0.580563
0.542199
0.43734
0.43734
0
0.051233
0.460041
976
28
68
34.857143
0.690702
0.064549
0
0.5
0
0
0
0
0
0
0
0
0
1
0.045455
false
0
0
0
0.409091
0.045455
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fbde7a1c4e3a6e6e21fb6a22735f7b4b1ddac464
45,992
py
Python
skcuda/cusolver.py
Eric89GXL/scikits.cuda
d40e9a58daa16f353c6b9d794135ffb81519095e
[ "BSD-3-Clause" ]
null
null
null
skcuda/cusolver.py
Eric89GXL/scikits.cuda
d40e9a58daa16f353c6b9d794135ffb81519095e
[ "BSD-3-Clause" ]
null
null
null
skcuda/cusolver.py
Eric89GXL/scikits.cuda
d40e9a58daa16f353c6b9d794135ffb81519095e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Python interface to CUSOLVER functions. Note: this module does not explicitly depend on PyCUDA. """ from . import cudart if int(cudart._cudart_version) < 7000: raise ImportError('CUSOLVER library only available in CUDA 7.0 and later') import ctypes import sys import numpy as np from...
40.736935
100
0.479257
4,046
45,992
5.24518
0.066485
0.102912
0.082933
0.090472
0.730091
0.696777
0.666007
0.666007
0.653426
0.653426
0
0.001803
0.433358
45,992
1,128
101
40.77305
0.812517
0.17977
0
0.666667
0
0
0.007632
0
0
0
0
0
0
1
0.061012
false
0.020833
0.008929
0
0.114583
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fbe0e4e4c92a96ccd0ba355efa5c2613eb7d5058
25,297
py
Python
skspec/plotting/advanced_plots.py
hugadams/scikit-spectra
c451be6d54080fbcc2a3bc5daf8846b83b7343ee
[ "BSD-3-Clause" ]
83
2015-01-15T18:57:22.000Z
2022-01-18T11:43:55.000Z
skspec/plotting/advanced_plots.py
hugadams/scikit-spectra
c451be6d54080fbcc2a3bc5daf8846b83b7343ee
[ "BSD-3-Clause" ]
18
2015-02-02T22:46:51.000Z
2019-04-29T17:23:32.000Z
skspec/plotting/advanced_plots.py
hugadams/scikit-spectra
c451be6d54080fbcc2a3bc5daf8846b83b7343ee
[ "BSD-3-Clause" ]
43
2015-01-02T20:47:11.000Z
2021-12-18T16:14:40.000Z
""" 2d and 3d wrappers for plotting 2d and 3d data in dataframes """ __author__ = "Adam Hughes" __copyright__ = "Copyright 2012, GWU Physics" __license__ = "Free BSD" __maintainer__ = "Adam Hughes" __email__ = "hugadams@gwmail.gwu.edu" __status__ = "Development" import datetime import matplotlib.pyplot as plt import ...
33.329381
127
0.56987
3,132
25,297
4.52235
0.226373
0.024569
0.003812
0.002965
0.100184
0.080839
0.068272
0.063753
0.063753
0.055705
0
0.01894
0.323754
25,297
758
128
33.373351
0.809026
0.205163
0
0.11811
0
0
0.095023
0.001406
0
0
0
0.001319
0
0
null
null
0.013123
0.044619
null
null
0.005249
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8373e3e1002163b2bcb4e9422d27ed6170e7e3ad
1,416
py
Python
montlake/atomgeom/utils.py
sjkoelle/montlake
b908a43e0c00763bd1cf86120eaa6bdf7d8d1196
[ "Apache-2.0" ]
8
2021-11-24T19:39:24.000Z
2021-12-03T01:30:14.000Z
montlake/atomgeom/utils.py
sjkoelle/montlake
b908a43e0c00763bd1cf86120eaa6bdf7d8d1196
[ "Apache-2.0" ]
null
null
null
montlake/atomgeom/utils.py
sjkoelle/montlake
b908a43e0c00763bd1cf86120eaa6bdf7d8d1196
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/atomgeom.utils.ipynb (unless otherwise specified). __all__ = ['get_atoms_4'] # Cell import numpy as np from scipy import sparse def get_atoms_4(natoms, ii, jj): # ii = self.ii # jj = self.jj natoms = natoms adj = np.asarray([ii, jj]) adj2 = adj.copy...
36.307692
98
0.585452
182
1,416
4.505495
0.412088
0.019512
0.117073
0
0
0
0
0
0
0
0
0.044248
0.28178
1,416
39
99
36.307692
0.762045
0.204096
0
0
1
0
0.009839
0
0
0
0
0
0
1
0.037037
false
0
0.074074
0
0.148148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
83761393e56d15c950bec1a5d2b9ad240e6fdb2b
621
py
Python
ion/core/__init__.py
ooici/coi-services
43246f46a82e597345507afd7dfc7373cb346afa
[ "BSD-2-Clause" ]
3
2016-09-20T09:50:06.000Z
2018-08-10T01:41:38.000Z
ion/core/__init__.py
ooici/coi-services
43246f46a82e597345507afd7dfc7373cb346afa
[ "BSD-2-Clause" ]
null
null
null
ion/core/__init__.py
ooici/coi-services
43246f46a82e597345507afd7dfc7373cb346afa
[ "BSD-2-Clause" ]
2
2016-03-16T22:25:49.000Z
2016-11-26T14:54:21.000Z
''' @file ion/core/__init__.py @mainpage Overview @section intro Introduction This is the repository that defines the COI services. @note Initially, all ION services are defined here and later moved to subsystem repositories. COI services are intended to be deployed as part of the ION system launch. Services are d...
29.571429
123
0.808374
85
621
5.811765
0.705882
0.066802
0.068826
0.1417
0.222672
0.222672
0.222672
0.222672
0
0
0
0
0.119163
621
20
124
31.05
0.903108
0.942029
0
0
0
0
0.357143
0
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
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
837e5d0cbab085b4fd9c78d4f66b751b2fdd0298
702
py
Python
src/script/test/video_show.py
marcelo-leite/ardrone_supervisor
6efd6844f503292033eb256c6554a5affe6e5e6d
[ "MIT" ]
null
null
null
src/script/test/video_show.py
marcelo-leite/ardrone_supervisor
6efd6844f503292033eb256c6554a5affe6e5e6d
[ "MIT" ]
null
null
null
src/script/test/video_show.py
marcelo-leite/ardrone_supervisor
6efd6844f503292033eb256c6554a5affe6e5e6d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import cv2 # cam = cv2.VideoCapture('tcp://192.168.1.1:5555') cam = cv2.VideoCapture("output.264") running = True while running: # get current frame of video running, frame = cam.read() # print(frame) # print('\n\n') grayFrame = cv2.cvtColor(frame, cv...
26
55
0.603989
88
702
4.806818
0.568182
0.06383
0.085106
0
0
0
0
0
0
0
0
0.061185
0.254986
702
26
56
27
0.74761
0.353276
0
0
0
0
0.108108
0
0
0
0.009009
0
0
0
null
null
0
0.071429
null
null
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
837f7c2ea6bc78dce1199269819a29ed77db2de7
5,134
py
Python
Lib/dos_8x3/cgihttps.py
AtjonTV/Python-1.4
2a80562c5a163490f444181cb75ca1b3089759ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
Lib/dos_8x3/cgihttps.py
AtjonTV/Python-1.4
2a80562c5a163490f444181cb75ca1b3089759ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
Lib/dos_8x3/cgihttps.py
AtjonTV/Python-1.4
2a80562c5a163490f444181cb75ca1b3089759ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
"""CGI-savvy HTTP Server. This module builds on SimpleHTTPServer by implementing GET and POST requests to cgi-bin scripts. """ __version__ = "0.3" import os import sys import time import socket import string import urllib import BaseHTTPServer import SimpleHTTPServer class CGIHTTPRequestHandler(SimpleHTTPServer...
25.166667
71
0.657187
711
5,134
4.64557
0.30661
0.019074
0.015743
0.02089
0.065395
0.052074
0.02422
0.02422
0.02422
0
0
0.012432
0.216595
5,134
203
72
25.29064
0.808802
0.041099
0
0.20438
0
0
0.111527
0
0
0
0
0
0
0
null
null
0.007299
0.080292
null
null
0.007299
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8387a9cbbe819f623604aa561929631066f4eb95
2,236
py
Python
GeneratingTools/PDDL/python/PddlState.py
sleyzerzon/soar
74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71
[ "Unlicense" ]
1
2016-04-01T04:02:28.000Z
2016-04-01T04:02:28.000Z
GeneratingTools/PDDL/python/PddlState.py
sleyzerzon/soar
74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71
[ "Unlicense" ]
null
null
null
GeneratingTools/PDDL/python/PddlState.py
sleyzerzon/soar
74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71
[ "Unlicense" ]
null
null
null
import operator def iterator_is_empty(iter): try: iter.next() except StopIteration: return True return False class PddlState: def __init__(self): # a mapping from predicate names to sets of tuples that the # predicate currently holds for self.predicates = {} ...
32.882353
104
0.649821
298
2,236
4.731544
0.352349
0.059574
0.036879
0.034043
0.112057
0.058156
0.058156
0
0
0
0
0.000614
0.271914
2,236
67
105
33.373134
0.865479
0.293828
0
0.054054
0
0
0.015335
0
0
0
0
0
0
0
null
null
0
0.027027
null
null
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
1
0
0
0
0
0
0
0
0
1
838899227004f4000509da87716a96b8781c3958
881
py
Python
python/easy/771_Jewels_and_Stones.py
JackWang0107/leetcode
c02932190b639ef87a8d0fcd07d9cd6ec7344a67
[ "MIT" ]
1
2021-05-22T03:27:33.000Z
2021-05-22T03:27:33.000Z
python/easy/771_Jewels_and_Stones.py
JackWang0107/leetcode
c02932190b639ef87a8d0fcd07d9cd6ec7344a67
[ "MIT" ]
null
null
null
python/easy/771_Jewels_and_Stones.py
JackWang0107/leetcode
c02932190b639ef87a8d0fcd07d9cd6ec7344a67
[ "MIT" ]
null
null
null
from typing import * class Solution: # 32 ms, faster than 53.65% of Python3 online submissions for Jewels and Stones. # 14.1 MB, less than 90.99% of Python3 online submissions for Jewels and Stones. def numJewelsInStones(self, jewels: str, stones: str) -> int: num = 0 for letter in jewels: ...
41.952381
84
0.637911
122
881
4.540984
0.434426
0.064982
0.108303
0.187726
0.487365
0.487365
0.487365
0.487365
0.487365
0.3213
0
0.052147
0.259932
881
21
85
41.952381
0.797546
0.356413
0
0.142857
0
0
0.024867
0
0
0
0
0
0
1
0.142857
false
0
0.071429
0.071429
0.428571
0.071429
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8388a8425bd5bcdc3f683953baa56ce0015f98a8
582
py
Python
e2e/Tests/Transactions/MultiInputClaimTest.py
kayabaNerve/Currency
260ebc20f1704f42ad6183fee39ad58ec6d07961
[ "CC0-1.0" ]
66
2019-01-14T08:39:52.000Z
2022-01-06T11:39:15.000Z
e2e/Tests/Transactions/MultiInputClaimTest.py
kayabaNerve/Currency
260ebc20f1704f42ad6183fee39ad58ec6d07961
[ "CC0-1.0" ]
228
2019-01-16T15:42:44.000Z
2022-02-05T07:48:07.000Z
e2e/Tests/Transactions/MultiInputClaimTest.py
kayabaNerve/Currency
260ebc20f1704f42ad6183fee39ad58ec6d07961
[ "CC0-1.0" ]
19
2019-01-14T08:53:04.000Z
2021-11-03T20:19:28.000Z
from typing import Dict, Any import json from e2e.Classes.Transactions.Transactions import Transactions from e2e.Meros.RPC import RPC from e2e.Meros.Liver import Liver from e2e.Meros.Syncer import Syncer def MultiInputClaimTest( rpc: RPC ) -> None: with open("e2e/Vectors/Transactions/MultiInputClaim.json", "r") ...
32.333333
79
0.754296
73
582
6.013699
0.410959
0.063781
0.082005
0.145786
0
0
0
0
0
0
0
0.009823
0.12543
582
17
80
34.235294
0.852652
0
0
0
0
0
0.134021
0.07732
0
0
0
0
0
1
0.071429
false
0
0.428571
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
838b4069ad0bb748a8ccae01b1eaab0590c367b4
3,860
py
Python
book_recomendation.py
ramonmedeiros/book_recomendation
6dfbe44f2df72bd620e57663a58c424f9e97022c
[ "Apache-2.0" ]
2
2021-02-07T14:10:42.000Z
2021-04-23T12:00:38.000Z
book_recomendation.py
ramonmedeiros/book_recomendation
6dfbe44f2df72bd620e57663a58c424f9e97022c
[ "Apache-2.0" ]
null
null
null
book_recomendation.py
ramonmedeiros/book_recomendation
6dfbe44f2df72bd620e57663a58c424f9e97022c
[ "Apache-2.0" ]
2
2021-06-07T22:52:09.000Z
2021-11-16T10:11:34.000Z
#!/usr/bin/env python import numpy as np import pandas as pd from scipy.sparse import csr_matrix from sklearn.neighbors import NearestNeighbors import matplotlib.pyplot as plt from scipy.sparse import csr_matrix # get data files books_filename = 'BX-Books.csv' ratings_filename = 'BX-Book-Ratings.csv' users_filename =...
33.565217
110
0.698446
526
3,860
4.954373
0.351711
0.041443
0.04835
0.027629
0.204144
0.168074
0.102072
0.102072
0.059094
0
0
0.017289
0.160881
3,860
114
111
33.859649
0.785736
0.135492
0
0.21519
0
0
0.199519
0
0
0
0
0.008772
0
1
0.025316
false
0.088608
0.075949
0
0.113924
0.075949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
838f97626c1bd88f77e18c02718289512d98ec5a
310
py
Python
src/web/__init__.py
friedm/crockpi
36e0502f32dc45676ed8a5da895f9b0d47bc5b74
[ "MIT" ]
1
2017-01-25T14:41:39.000Z
2017-01-25T14:41:39.000Z
src/web/__init__.py
friedm/crockpi
36e0502f32dc45676ed8a5da895f9b0d47bc5b74
[ "MIT" ]
null
null
null
src/web/__init__.py
friedm/crockpi
36e0502f32dc45676ed8a5da895f9b0d47bc5b74
[ "MIT" ]
null
null
null
from threading import Lock import os from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy app = Flask(__name__) app.config.from_object(os.environ['APP_CONFIG']) db = SQLAlchemy(app) from database import Database db_lock = Lock() database = Database(db_lock) from web import views, models
16.315789
48
0.783871
46
310
5.108696
0.391304
0.076596
0.119149
0
0
0
0
0
0
0
0
0
0.13871
310
18
49
17.222222
0.88015
0
0
0
0
0
0.032468
0
0
0
0
0
0
1
0
false
0
0.545455
0
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
0
0
0
1
0
0
0
0
1
8394f557c8466cb7716b7fdeafec8ebeef6ae754
13,176
py
Python
python_implementation/sort.py
mannyray/sort
f0ee0488aa4e7213d30ff50bcb848a843fedde42
[ "MIT" ]
2
2021-11-08T09:25:23.000Z
2022-03-14T08:44:09.000Z
python_implementation/sort.py
mannyray/sort
f0ee0488aa4e7213d30ff50bcb848a843fedde42
[ "MIT" ]
null
null
null
python_implementation/sort.py
mannyray/sort
f0ee0488aa4e7213d30ff50bcb848a843fedde42
[ "MIT" ]
null
null
null
import numpy as np import hungarian import intersection import ddekf from scipy import linalg import math from copy import copy, deepcopy class trackedObject: def __init__(self,position,width,height,velocity,velocity_covariance,time,name,objectType = None ): self.position = position self.velocity...
47.73913
343
0.641545
1,349
13,176
6.20682
0.120089
0.177714
0.183805
0.086946
0.490027
0.461244
0.419324
0.363311
0.31733
0.274334
0
0.015227
0.252353
13,176
275
344
47.912727
0.834738
0.030131
0
0.345794
0
0
0.001096
0
0
0
0
0
0.004673
1
0.084112
false
0
0.03271
0.014019
0.163551
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
839a1724db4ac075dec856664f7c6f462babd3b8
4,142
py
Python
tests/test_models.py
Thermondo/django-heroku-connect
609ad3206731af3f6414a604a3559ffb559f0e26
[ "Apache-2.0" ]
18
2017-11-30T12:52:56.000Z
2021-06-30T21:37:28.000Z
tests/test_models.py
thermondo/django-heroku-connect
609ad3206731af3f6414a604a3559ffb559f0e26
[ "Apache-2.0" ]
105
2017-12-01T10:46:14.000Z
2021-11-22T13:54:31.000Z
tests/test_models.py
Thermondo/django-heroku-connect
609ad3206731af3f6414a604a3559ffb559f0e26
[ "Apache-2.0" ]
5
2019-07-23T12:28:49.000Z
2020-10-12T18:28:24.000Z
import pytest from django.core.exceptions import FieldDoesNotExist from heroku_connect.models import TRIGGER_LOG_STATE, TriggerLog, TriggerLogArchive from tests.conftest import make_trigger_log, make_trigger_log_for_model @pytest.mark.django_db class TestTriggerLog: def test_is_archived(self, archived_trigger_lo...
37.654545
83
0.698213
490
4,142
5.518367
0.155102
0.203402
0.04142
0.055473
0.678994
0.517012
0.459689
0.419379
0.283284
0.283284
0
0.003067
0.212941
4,142
109
84
38
0.82638
0
0
0.325581
0
0
0.02028
0
0
0
0
0
0.232558
1
0.127907
false
0
0.046512
0
0.186047
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
83a156ad5122e917a5d0d49d2a1c4380a93730c5
1,155
py
Python
tools/strategy_agent.py
JakubPetriska/poker-agent-kit
12c28711c91447c708719454d1fbd224fa03189e
[ "MIT" ]
19
2018-09-21T15:27:09.000Z
2022-03-09T03:55:21.000Z
tools/strategy_agent.py
JakubPetriska/poker-agent-kit
12c28711c91447c708719454d1fbd224fa03189e
[ "MIT" ]
6
2018-05-09T17:09:58.000Z
2019-07-09T15:15:05.000Z
tools/strategy_agent.py
JakubPetriska/poker-cfr
12c28711c91447c708719454d1fbd224fa03189e
[ "MIT" ]
2
2018-09-11T02:49:57.000Z
2018-11-17T00:29:38.000Z
import random import sys import acpc_python_client as acpc from tools.agent_utils import select_action, get_info_set from tools.io_util import read_strategy_from_file class StrategyAgent(acpc.Agent): """Agent able to play any game when provided with game definition and correct strategy.""" def __init__(sel...
28.875
94
0.705628
165
1,155
4.557576
0.430303
0.046543
0.06383
0.053191
0
0
0
0
0
0
0
0.006515
0.202597
1,155
39
95
29.615385
0.809989
0.072727
0
0.076923
0
0
0.077934
0
0
0
0
0
0
1
0.153846
false
0.076923
0.192308
0
0.423077
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
83a4994f8c76784b079eb9a8ee1cfcdc937aaba9
295
py
Python
procurement/urls.py
thegangtechnology/thairod-django
b073186a4b5bc42dfef99685b3da30abf8e42862
[ "MIT" ]
null
null
null
procurement/urls.py
thegangtechnology/thairod-django
b073186a4b5bc42dfef99685b3da30abf8e42862
[ "MIT" ]
3
2021-07-27T13:11:36.000Z
2021-08-10T22:54:55.000Z
procurement/urls.py
thegangtechnology/thairod-django
b073186a4b5bc42dfef99685b3da30abf8e42862
[ "MIT" ]
null
null
null
from rest_framework.routers import DefaultRouter from django.urls import path, include from procurement.views import ProcurementViewSet router = DefaultRouter() router.register(r'procurements', ProcurementViewSet, basename="procurement") urlpatterns = [ path('', include(router.urls)) ]
22.692308
76
0.79322
31
295
7.516129
0.612903
0.094421
0
0
0
0
0
0
0
0
0
0
0.111864
295
12
77
24.583333
0.889313
0
0
0
0
0
0.077966
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
83a4c24beab4634349003de1b8f2d7041fc71cac
9,512
py
Python
totalimpactwebapp/tweeter.py
ourresearch/total-impact-webapp
ab0d011dc783491bc85aadc2dc9c0f204e59429e
[ "MIT" ]
2
2015-02-19T15:17:49.000Z
2015-03-17T16:54:27.000Z
totalimpactwebapp/tweeter.py
Impactstory/total-impact-webapp
ab0d011dc783491bc85aadc2dc9c0f204e59429e
[ "MIT" ]
2
2015-01-11T05:45:59.000Z
2015-02-11T20:37:05.000Z
totalimpactwebapp/tweeter.py
Impactstory/total-impact-webapp
ab0d011dc783491bc85aadc2dc9c0f204e59429e
[ "MIT" ]
2
2015-01-09T20:47:31.000Z
2015-01-10T03:23:54.000Z
from totalimpactwebapp import json_sqlalchemy from util import commit from util import cached_property from util import dict_from_dir from totalimpactwebapp import db from birdy.twitter import AppClient, TwitterApiError, TwitterRateLimitError, TwitterClientError from collections import defaultdict import os import re ...
38.510121
184
0.669575
1,155
9,512
5.265801
0.27619
0.03124
0.01973
0.023019
0.361723
0.295955
0.2805
0.229037
0.125617
0.080566
0
0.048963
0.199117
9,512
247
185
38.510121
0.749409
0.505362
0
0.074074
0
0
0.098493
0.009609
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.009259
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
83bd36e9c791f79a3862b8c628667e576e4cffcd
793
py
Python
ninja_star.py
lunchspider03/Turtle-Graphics-In-Python
6640bcadfed388f8e028bcf6debd9423e894e20e
[ "MIT" ]
null
null
null
ninja_star.py
lunchspider03/Turtle-Graphics-In-Python
6640bcadfed388f8e028bcf6debd9423e894e20e
[ "MIT" ]
null
null
null
ninja_star.py
lunchspider03/Turtle-Graphics-In-Python
6640bcadfed388f8e028bcf6debd9423e894e20e
[ "MIT" ]
null
null
null
import turtle def snowflake(trtl: turtle.Turtle, level, length): def bump(length): trtl.forward(length/3) trtl.left(60) #trtl.forward(length/3) if level > 1: snowflake(trtl, level=level-1, length=length/3) trtl.right(120) trtl.forward(length/3) t...
18.022727
59
0.582598
105
793
4.361905
0.342857
0.120087
0.18559
0.157205
0.299127
0.299127
0.299127
0.231441
0.231441
0.231441
0
0.059649
0.281211
793
43
60
18.44186
0.74386
0.027743
0
0.3
0
0
0.007792
0
0
0
0
0
0
1
0.066667
false
0
0.033333
0
0.1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
83bec34d0d97039059a6970737b7976b25e3879b
951
py
Python
scraper/storage_spiders/mechipxinhcom.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
null
null
null
scraper/storage_spiders/mechipxinhcom.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
10
2020-02-11T23:34:28.000Z
2022-03-11T23:16:12.000Z
scraper/storage_spiders/mechipxinhcom.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
3
2018-08-05T14:54:25.000Z
2021-06-07T01:49:59.000Z
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//div[@class='rightcol']/h2", 'price' : "//div[@class='rightcol']/p[@class='price']", 'category' : "//div[@class='breadcrumb']/ul[...
35.222222
87
0.637224
111
951
5.351351
0.603604
0.06734
0.053872
0.084175
0.097643
0
0
0
0
0
0
0.002424
0.132492
951
26
88
36.576923
0.717576
0.126183
0
0
1
0
0.464976
0.262077
0
0
0
0
0
1
0
false
0
0.086957
0
0.086957
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
83beca11db348357c91340a9e2b5b8f65fe14806
1,925
py
Python
99BottlesOfBeer.py
MarsCandyBars/beginner_project_solutions
df46c8bb8e4c8ba6d34898cd13cdb0348eb4e74d
[ "MIT" ]
2
2020-08-07T04:01:15.000Z
2021-12-17T18:26:33.000Z
99BottlesOfBeer.py
MarsCandyBars/beginner_project_solutions
df46c8bb8e4c8ba6d34898cd13cdb0348eb4e74d
[ "MIT" ]
null
null
null
99BottlesOfBeer.py
MarsCandyBars/beginner_project_solutions
df46c8bb8e4c8ba6d34898cd13cdb0348eb4e74d
[ "MIT" ]
1
2021-08-05T16:43:00.000Z
2021-08-05T16:43:00.000Z
''' Created on Sat 04/04/2020 11:55:38 99 Bottles of Beer @author: MarsCandyBars ''' class BottlesOfBeer(): def __init__(self): ''' Description: This method provides attributes for the main lyrics of the song to make looping cleaner. Args: None. ...
28.308824
98
0.583377
261
1,925
4.237548
0.35249
0.059675
0.105787
0.059675
0.227848
0.169982
0.130199
0.108499
0.057866
0
0
0.032941
0.337662
1,925
67
99
28.731343
0.83451
0.37039
0
0.086957
0
0
0.319741
0
0
0
0
0
0
1
0.086957
false
0.086957
0
0
0.130435
0.217391
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
83bf00309c55cd3d918e484dc39699d735ee7475
1,213
py
Python
Python_OOP_Softuni/Exam_Prep_02AprilExam/tests/test_advanced.py
borisboychev/SoftUni
22062312f08e29a1d85377a6d41ef74966d37e99
[ "MIT" ]
1
2020-12-14T23:25:19.000Z
2020-12-14T23:25:19.000Z
Python_OOP_Softuni/Exam_Prep_02AprilExam/tests/test_advanced.py
borisboychev/SoftUni
22062312f08e29a1d85377a6d41ef74966d37e99
[ "MIT" ]
null
null
null
Python_OOP_Softuni/Exam_Prep_02AprilExam/tests/test_advanced.py
borisboychev/SoftUni
22062312f08e29a1d85377a6d41ef74966d37e99
[ "MIT" ]
null
null
null
import unittest from project.player.advanced import Advanced class TestAdvanced(unittest.TestCase): def test_set_attr(self): p1 = Advanced('player1') self.assertEqual('player1', p1.username) self.assertEqual(250, p1.health) self.assertEqual("Advanced", p1.__class__.__name__) ...
31.102564
99
0.665293
149
1,213
5.174497
0.348993
0.136187
0.072633
0.070039
0.300908
0.212711
0.212711
0
0
0
0
0.03095
0.227535
1,213
39
100
31.102564
0.791889
0
0
0.214286
0
0
0.114498
0
0
0
0
0
0.428571
1
0.178571
false
0
0.071429
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
83cb4d42973fc110f5b2d60161345dff13896052
1,549
py
Python
ldt/tests/relations/test_word.py
Darkdragon84/ldt
0f65dc515a22c8bef159ef087071d691062fbc61
[ "Apache-2.0" ]
14
2018-09-27T18:28:28.000Z
2021-11-23T16:17:04.000Z
ldt/tests/relations/test_word.py
Darkdragon84/ldt
0f65dc515a22c8bef159ef087071d691062fbc61
[ "Apache-2.0" ]
3
2018-11-13T16:50:33.000Z
2021-05-07T16:34:24.000Z
ldt/tests/relations/test_word.py
Darkdragon84/ldt
0f65dc515a22c8bef159ef087071d691062fbc61
[ "Apache-2.0" ]
4
2019-01-19T14:52:38.000Z
2021-05-12T10:55:17.000Z
# -*- coding: utf-8 -*- """Testing the assembly of information from ld.dicts""" import unittest import os os.environ["TESTING_LDT"] = "TRUE" import ldt from ldt.helpers.ignore import ignore_warnings class Tests(unittest.TestCase): """ The tests in this block inspect the loading of all the information from ...
26.706897
75
0.63073
180
1,549
5.322222
0.411111
0.051148
0.083507
0.06263
0.284969
0.244259
0
0
0
0
0
0.000833
0.224661
1,549
58
76
26.706897
0.796836
0.300194
0
0.074074
0
0
0.082596
0
0
0
0
0
0.222222
1
0.296296
false
0
0.148148
0
0.481481
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
83d30db220c60d140b9a2e1564a45af33711dff4
908
py
Python
Lab11/create-aws-queues.py
chdonncha/Cloud-Computing-Labs
c816bceaf492c712edbe307ac01ba5d4e65255c7
[ "MIT" ]
null
null
null
Lab11/create-aws-queues.py
chdonncha/Cloud-Computing-Labs
c816bceaf492c712edbe307ac01ba5d4e65255c7
[ "MIT" ]
null
null
null
Lab11/create-aws-queues.py
chdonncha/Cloud-Computing-Labs
c816bceaf492c712edbe307ac01ba5d4e65255c7
[ "MIT" ]
1
2018-08-05T14:58:49.000Z
2018-08-05T14:58:49.000Z
# This script created a queue # # Author - Paul Doyle Nov 2015 # # import boto.sqs import boto.sqs.queue import httplib from boto.sqs.message import Message from boto.sqs.connection import SQSConnection from boto.exception import SQSError import sys conn = httplib.HTTPConnection("ec2-52-30-7-5.eu-west-1.compute.amazon...
22.7
120
0.746696
157
908
4.197452
0.496815
0.081942
0.050076
0
0
0
0
0
0
0
0
0.037132
0.139868
908
39
121
23.282051
0.806658
0.264317
0
0
0
0.066667
0.128333
0.08
0
0
0
0
0
1
0
false
0
0.466667
0
0.466667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
83d899e54702d1a9fef365913f40d6255bfb18dc
1,347
py
Python
old_playground/minimal_induction.py
sterin/pyzz
75e8ae7ec67d87c110672b2ee2a927d32137c148
[ "MIT-0" ]
null
null
null
old_playground/minimal_induction.py
sterin/pyzz
75e8ae7ec67d87c110672b2ee2a927d32137c148
[ "MIT-0" ]
null
null
null
old_playground/minimal_induction.py
sterin/pyzz
75e8ae7ec67d87c110672b2ee2a927d32137c148
[ "MIT-0" ]
null
null
null
from pyzz import * def not_equal( N, ws1, ws2 ): return disjunction( N, ( w1 ^ w2 for w1, w2 in zip(ws1, ws2) ) ) def not_equal_states(U, i, j): return not_equal( U.F, U[U.N.get_Flops(), i], U[U.N.get_Flops(), j] ) def unique(U): return conjunction( U.F, ( not_equal_states(U, i, j) for i,j in i_lt_j(U.fr...
21.725806
88
0.477357
187
1,347
3.347594
0.331551
0.055911
0.057508
0.047923
0.226837
0.14377
0.089457
0
0
0
0
0.020556
0.386043
1,347
61
89
22.081967
0.736397
0
0
0.27027
0
0
0.026726
0
0
0
0
0
0
0
null
null
0
0.027027
null
null
0.189189
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
83dabd3405b250dee386eb26c4d2992f53303891
748
py
Python
GPIO/gpio/old/pin.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
GPIO/gpio/old/pin.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
GPIO/gpio/old/pin.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python import os,sys comps=sys.argv[0] comps=comps.split("/") command=comps[ len(comps)-1 ] if (len(sys.argv)==1 ): comps=[ "Usage:", command, "pin_id", ] print " ".join( comps ) exit() pin=int(sys.argv[1]) import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.s...
17
63
0.613636
111
748
4.126126
0.486486
0.045852
0.034935
0.074236
0.183406
0.183406
0.183406
0.183406
0.183406
0.183406
0
0.006601
0.18984
748
43
64
17.395349
0.749175
0.122995
0
0.076923
0
0
0.09816
0
0
0
0
0
0
0
null
null
0
0.115385
null
null
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
83e558bdeebff1316a62702f6b18ed2b9f720f11
1,623
py
Python
09_pingometer/pingometer.py
unexdk/water
b1defd998d299badcf25f1aca34f8ed9d3c0490a
[ "MIT" ]
null
null
null
09_pingometer/pingometer.py
unexdk/water
b1defd998d299badcf25f1aca34f8ed9d3c0490a
[ "MIT" ]
null
null
null
09_pingometer/pingometer.py
unexdk/water
b1defd998d299badcf25f1aca34f8ed9d3c0490a
[ "MIT" ]
null
null
null
import subprocess, time import RPi.GPIO as GPIO from squid import * HOSTNAME = "us.mineplex.com" # HOSTNAME = "google.com" PING_PERIOD = 3.0 # seconds GOOD_PING = 0.1 # seconds OK_PING = 0.3 # seconds SERVO_PIN = 25 # control pin of servo MIN_ANGLE = 30 MAX_ANGLE = 150 # Configure the GPIO pin GPIO.setmode(GPI...
24.969231
82
0.632779
251
1,623
3.960159
0.398406
0.040241
0.052314
0.028169
0
0
0
0
0
0
0
0.045
0.260628
1,623
65
83
24.969231
0.783333
0.198398
0
0.040816
0
0
0.024125
0
0
0
0
0
0
0
null
null
0
0.061224
null
null
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
83eaf76936a51d995ae325928afef169d623031e
2,421
py
Python
tests/short/utils/aug_out_filter.py
Gullumluvl/Augustus
e69fa139c7f3b1e55176c14a143b31df925b99bf
[ "Artistic-1.0" ]
1
2021-03-25T17:53:03.000Z
2021-03-25T17:53:03.000Z
tests/short/utils/aug_out_filter.py
Gullumluvl/Augustus
e69fa139c7f3b1e55176c14a143b31df925b99bf
[ "Artistic-1.0" ]
null
null
null
tests/short/utils/aug_out_filter.py
Gullumluvl/Augustus
e69fa139c7f3b1e55176c14a143b31df925b99bf
[ "Artistic-1.0" ]
null
null
null
#!/usr/bin/env python3 import os import sys def pred(sourcepath, targetpath): startwith = '# ----- prediction' ignores = [] ignoredlines = search_for_lines_to_ignore(sourcepath, startwith, ignores) filter(sourcepath, targetpath, ignoredlines) def cgp(sourcepath, targetpath): # this case could b...
27.511364
80
0.5981
260
2,421
5.45
0.315385
0.127029
0.055046
0.056457
0.503176
0.448836
0.448836
0.448836
0.448836
0.400847
0
0.005931
0.303594
2,421
87
81
27.827586
0.83452
0.070632
0
0.508197
0
0
0.043653
0
0
0
0
0.011494
0
1
0.098361
false
0
0.032787
0
0.147541
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
83f0aa7a6c35b3d08e47fd7fe2ca8569ea725b7b
734
py
Python
examples/captcha_examples.py
Ziki2001/new-school-sdk
b606e666888e1c9813e2f1a6a64bbede3744026e
[ "MIT" ]
9
2021-09-03T11:55:08.000Z
2022-01-29T04:42:01.000Z
examples/captcha_examples.py
Ziki2001/new-school-sdk
b606e666888e1c9813e2f1a6a64bbede3744026e
[ "MIT" ]
15
2022-01-06T08:45:47.000Z
2022-03-31T13:45:07.000Z
examples/captcha_examples.py
Ziki2001/new-school-sdk
b606e666888e1c9813e2f1a6a64bbede3744026e
[ "MIT" ]
6
2021-12-01T04:52:06.000Z
2022-01-29T04:42:04.000Z
# -*- coding: utf-8 -*- ''' :file: use_verify.py :author: -Farmer :url: https://blog.farmer233.top :date: 2022/01/14 21:33:06 ''' from school_sdk.client import UserClient from school_sdk import SchoolClient # 实例化学校 # 并根据验证码类型指定captcha_type为kap或者cap # 使用Kaptcha(与旧版系统类似的验证码) Gdust = SchoolClient("172.16...
22.242424
79
0.724796
102
734
5.098039
0.627451
0.040385
0.05
0.084615
0.2
0.2
0.2
0.2
0.2
0.2
0
0.083981
0.123978
734
33
80
22.242424
0.724728
0.328338
0
0
0
0
0.114719
0
0
0
0
0
0
1
0
false
0.090909
0.181818
0
0.181818
0.272727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8606e0b266a7cc2a3593985cfb96f0c9593042a0
1,025
py
Python
tests/helper.py
agoragames/activity-feed
ae088f27f9aec960bd8d1c68b7d836ddad1c407c
[ "MIT" ]
null
null
null
tests/helper.py
agoragames/activity-feed
ae088f27f9aec960bd8d1c68b7d836ddad1c407c
[ "MIT" ]
null
null
null
tests/helper.py
agoragames/activity-feed
ae088f27f9aec960bd8d1c68b7d836ddad1c407c
[ "MIT" ]
null
null
null
import unittest import datetime from activity_feed import ActivityFeed from activity_feed.utils import datetime_to_timestamp, utcnow def timestamp(*args): return datetime_to_timestamp(datetime.datetime(*args)) def timestamp_utcnow(): return datetime_to_timestamp(utcnow()) class BaseTest(unittest.TestCase):...
26.282051
73
0.642927
139
1,025
4.568345
0.388489
0.066142
0.062992
0.07874
0
0
0
0
0
0
0
0.013021
0.250732
1,025
38
74
26.973684
0.813802
0.10439
0
0
0
0
0.03352
0.030168
0
0
0
0
0
1
0.208333
false
0
0.166667
0.083333
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
860738cbf92871a2dc18062c20820c39346f18c9
2,119
py
Python
tclocalizable/localized_string.py
tickleapp/tclocalizable
80e98ed77b76db03c0e512ad99ddd064a87b7f52
[ "Apache-2.0" ]
1
2016-01-06T01:34:13.000Z
2016-01-06T01:34:13.000Z
tclocalizable/localized_string.py
tickleapp/tclocalizable
80e98ed77b76db03c0e512ad99ddd064a87b7f52
[ "Apache-2.0" ]
null
null
null
tclocalizable/localized_string.py
tickleapp/tclocalizable
80e98ed77b76db03c0e512ad99ddd064a87b7f52
[ "Apache-2.0" ]
null
null
null
# # Copyright 2015 Tickle Labs, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
28.253333
120
0.610193
243
2,119
5.1893
0.407407
0.072165
0.020619
0.025377
0.063442
0.063442
0.063442
0
0
0
0
0.005215
0.276074
2,119
74
121
28.635135
0.816819
0.323738
0
0.068966
0
0
0.067783
0.017544
0
0
0
0
0.034483
1
0.241379
false
0
0
0.034483
0.482759
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
f7a2971ae3089d8f88064e90e284ac01e3077af2
1,047
py
Python
Day4/adventofcode4.py
oomoepoo/Adventofcode2k19
8cb4837b021bbffb7a8800b6d810eb1144ce8867
[ "Unlicense" ]
null
null
null
Day4/adventofcode4.py
oomoepoo/Adventofcode2k19
8cb4837b021bbffb7a8800b6d810eb1144ce8867
[ "Unlicense" ]
null
null
null
Day4/adventofcode4.py
oomoepoo/Adventofcode2k19
8cb4837b021bbffb7a8800b6d810eb1144ce8867
[ "Unlicense" ]
null
null
null
import re def pairup(str): results=[] for i in range(len(str)-1): results.append(str[i]+str[i+1]) return results def ascending(seq): for i in range(len(seq)-1): if (int(seq[i])>int(seq[i+1])): return False return True def check_tripple(seq): if len(seq) == 1: ...
23.266667
68
0.60554
170
1,047
3.711765
0.329412
0.055468
0.028526
0.052298
0.158479
0
0
0
0
0
0
0.043062
0.201528
1,047
44
69
23.795455
0.711722
0.120344
0
0.233333
0
0
0.039474
0
0
0
0
0
0
1
0.1
false
0.233333
0.033333
0
0.333333
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f7a8f410a29513d538e5b9b94024718970d9643c
1,182
py
Python
estudo_poo/pessoa.py
gabriel-correia0408/Sala_Green_GabrielCorreia
1d22f466d372786c5f8c8eaba7202844b5f03445
[ "Apache-2.0" ]
null
null
null
estudo_poo/pessoa.py
gabriel-correia0408/Sala_Green_GabrielCorreia
1d22f466d372786c5f8c8eaba7202844b5f03445
[ "Apache-2.0" ]
null
null
null
estudo_poo/pessoa.py
gabriel-correia0408/Sala_Green_GabrielCorreia
1d22f466d372786c5f8c8eaba7202844b5f03445
[ "Apache-2.0" ]
null
null
null
#criando uma classe "Pessoa", que posteriormente será importada ,no #arquivo "main" #aonde tem o if deve ser usado soemnte o retun e msg que está escrita #pois deve haver um método #get para os outros métoods que vão conter ações ou valores class Pessoa: #cridndo método connstrutor,e passando parametros para ele ...
33.771429
86
0.701354
175
1,182
4.714286
0.48
0.038788
0.031515
0.036364
0
0
0
0
0
0
0
0
0.23181
1,182
34
87
34.764706
0.90859
0.620981
0
0
0
0
0.144522
0
0
0
0
0.029412
0
1
0.181818
false
0
0
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
f7a9899b9607e75f56fb3c659ba90d5a772020ac
282
py
Python
catalog/bindings/gmd/position.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/position.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/position.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from bindings.gmd.point_property_type import PointPropertyType __NAMESPACE__ = "http://www.opengis.net/gml" @dataclass class Position(PointPropertyType): class Meta: name = "position" namespace = "http://www.opengis.net/gml"
23.5
62
0.741135
32
282
6.34375
0.625
0.128079
0.157635
0.226601
0.285714
0.285714
0
0
0
0
0
0
0.159574
282
11
63
25.636364
0.85654
0
0
0
0
0
0.212766
0
0
0
0
0
0
1
0
false
0
0.25
0
0.5
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f7ab71b3c87abbc1c5cd6a072638740ef5ab110c
352
py
Python
src/Python/301-400/349.IntersectionOfTwoArrays.py
Peefy/PeefyLeetCode
92156e4b48ba19e3f02e4286b9f733e9769a1dee
[ "Apache-2.0" ]
2
2018-05-03T07:50:03.000Z
2018-06-17T04:32:13.000Z
src/Python/301-400/349.IntersectionOfTwoArrays.py
Peefy/PeefyLeetCode
92156e4b48ba19e3f02e4286b9f733e9769a1dee
[ "Apache-2.0" ]
null
null
null
src/Python/301-400/349.IntersectionOfTwoArrays.py
Peefy/PeefyLeetCode
92156e4b48ba19e3f02e4286b9f733e9769a1dee
[ "Apache-2.0" ]
3
2018-11-09T14:18:11.000Z
2021-11-17T15:23:52.000Z
class Solution: def intersection(self, nums1, nums2): """ :type nums1: List[int] :type nums2: List[int] :rtype: List[int] """ return list(set(nums1) & set(nums2)) if __name__ == '__main__': solution = Solution() print(solution.intersection([1, 2,...
22
54
0.525568
40
352
4.425
0.525
0.118644
0.033898
0
0
0
0
0
0
0
0
0.050209
0.321023
352
15
55
23.466667
0.690377
0.178977
0
0
0
0
0.032258
0
0
0
0
0
0
1
0.125
false
0.125
0
0
0.375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f7b38238528cb0561da5a804f4d701cd34028f9d
2,854
py
Python
celf/WWW11_CELF++/celfpp_experimenter.py
hncuong/IM
b796eefb64db5d2a0320234967065db3580769a2
[ "MIT" ]
23
2018-03-09T03:03:21.000Z
2022-01-13T12:12:44.000Z
celf/WWW11_CELF++/celfpp_experimenter.py
hncuong/IM
b796eefb64db5d2a0320234967065db3580769a2
[ "MIT" ]
null
null
null
celf/WWW11_CELF++/celfpp_experimenter.py
hncuong/IM
b796eefb64db5d2a0320234967065db3580769a2
[ "MIT" ]
6
2019-03-26T14:17:38.000Z
2021-12-14T06:13:37.000Z
#!/usr/bin/python import sys import subprocess import os import psutil import shutil import pdb def init_alloc_core(): global allocated total_cores = psutil.cpu_count() for i in range(total_cores): allocated[i] = 0 return def return_free_core(): #select the core having minimum...
15.344086
131
0.612824
399
2,854
4.192982
0.298246
0.043036
0.029289
0.019725
0.074118
0.053796
0.029886
0.029886
0
0
0
0.013857
0.241416
2,854
185
132
15.427027
0.758891
0.028732
0
0.238636
0
0
0.113091
0
0.011364
0
0
0
0
0
null
null
0
0.068182
null
null
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f7b528df62b4e8b75dc6e372cf44b2b9ef3adc46
1,705
py
Python
index_plot.py
Durabun/QWell
746c6e53441556d28bdbdeb6d07561e9dd75842a
[ "Apache-2.0" ]
1
2019-06-19T01:32:53.000Z
2019-06-19T01:32:53.000Z
index_plot.py
Durabun/QWell
746c6e53441556d28bdbdeb6d07561e9dd75842a
[ "Apache-2.0" ]
null
null
null
index_plot.py
Durabun/QWell
746c6e53441556d28bdbdeb6d07561e9dd75842a
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt evenR = np.array([1.212,3.368]) oddR = np.array([2.381]) S = evenR.size+oddR.size prop = np.zeros(S) tunn = np.zeros(S) i=0 j=1 a=0.469 def rad(x): return np.sqrt((1.1*np.pi)**2-x**2) print (S) print (prop) print (tunn) while i< evenR.size: prop[2*i] = evenR[i]...
18.736264
74
0.591202
396
1,705
2.545455
0.179293
0.013889
0.077381
0.083333
0.446429
0.414683
0.414683
0.414683
0.333333
0.333333
0
0.084652
0.147801
1,705
91
75
18.736264
0.609085
0.106745
0
0.098361
0
0
0.003963
0
0
0
0
0
0
1
0.114754
false
0
0.032787
0.114754
0.262295
0.147541
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
f7b56897fc0a4c479582e4d893846531119a8de1
206
py
Python
1 - Beginner/2787.py
andrematte/uri-submissions
796e7fee56650d9e882880318d6e7734038be2dc
[ "MIT" ]
1
2020-09-09T12:48:09.000Z
2020-09-09T12:48:09.000Z
1 - Beginner/2787.py
andrematte/uri-submissions
796e7fee56650d9e882880318d6e7734038be2dc
[ "MIT" ]
null
null
null
1 - Beginner/2787.py
andrematte/uri-submissions
796e7fee56650d9e882880318d6e7734038be2dc
[ "MIT" ]
null
null
null
# URI Online Judge 2787 L = int(input()) C = int(input()) if L % 2 == 0: if C % 2 == 0: print(1) else: print(0) else: if C % 2 == 0: print(0) else: print(1)
13.733333
23
0.42233
33
206
2.636364
0.424242
0.068966
0.091954
0.114943
0.229885
0
0
0
0
0
0
0.115702
0.412621
206
15
24
13.733333
0.603306
0.101942
0
0.75
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f7b58954d3b6f04aa0cd232287cc71474ad419b2
1,422
py
Python
hextech_core/blog/migrations/0010_auto_20210329_1016.py
duonghao314/hextech-core
a01ac513d0b5b7f9cbcc5230689738296f2d1d52
[ "MIT" ]
null
null
null
hextech_core/blog/migrations/0010_auto_20210329_1016.py
duonghao314/hextech-core
a01ac513d0b5b7f9cbcc5230689738296f2d1d52
[ "MIT" ]
5
2021-04-06T07:44:48.000Z
2022-03-02T00:24:03.000Z
hextech_core/blog/migrations/0010_auto_20210329_1016.py
duonghao314/hextech-core
a01ac513d0b5b7f9cbcc5230689738296f2d1d52
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-29 10:16 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import modelcluster.fields class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
38.432432
140
0.623066
152
1,422
5.664474
0.473684
0.046458
0.065041
0.102207
0.269454
0.204413
0.204413
0.204413
0.204413
0.148664
0
0.028837
0.244023
1,422
36
141
39.5
0.772093
0.031646
0
0.066667
1
0
0.107636
0.016727
0
0
0
0
0
1
0
false
0
0.133333
0
0.233333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f7b918ae9a20e05bf2649468303a59a0de71e5f8
1,762
py
Python
Python/graphs/Directed_Acyclic_Graph.py
zhcet19/NeoAlgo-1
c534a23307109280bda0e4867d6e8e490002a4ee
[ "MIT" ]
897
2020-06-25T00:12:52.000Z
2022-03-24T00:49:31.000Z
Python/graphs/Directed_Acyclic_Graph.py
zhcet19/NeoAlgo-1
c534a23307109280bda0e4867d6e8e490002a4ee
[ "MIT" ]
5,707
2020-06-24T17:53:28.000Z
2022-01-22T05:03:15.000Z
Python/graphs/Directed_Acyclic_Graph.py
zhcet19/NeoAlgo-1
c534a23307109280bda0e4867d6e8e490002a4ee
[ "MIT" ]
1,817
2020-06-25T03:51:05.000Z
2022-03-29T05:14:07.000Z
''' Author : @anushkrishnav Built using : networkx since it is a gold standard for Python DAGs (and other graphs). You can create a networkx directed graph with a list of tuples that represent the graph edges: ''' import networkx as nx from matplotlib import pyplot as plt class DAG: def __init__(self): ...
40.045455
186
0.632804
249
1,762
4.405622
0.433735
0.073838
0.027347
0.057429
0.123974
0.087511
0.087511
0.087511
0.087511
0.087511
0
0.00229
0.256527
1,762
43
187
40.976744
0.835115
0.3042
0
0.2
0
0
0.165812
0.019658
0
0
0
0
0
1
0.133333
false
0.066667
0.066667
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f7be8584e499bba0a087efca00fc099a0f069f60
1,163
py
Python
audio.py
iuliux/LunarLander
43fdd5fadb9591402d65b6d87f6d1d4205a293f5
[ "MIT" ]
null
null
null
audio.py
iuliux/LunarLander
43fdd5fadb9591402d65b6d87f6d1d4205a293f5
[ "MIT" ]
null
null
null
audio.py
iuliux/LunarLander
43fdd5fadb9591402d65b6d87f6d1d4205a293f5
[ "MIT" ]
null
null
null
import math import array import pyaudio from random import randint # Audio helper constants _T = 11025 _q = 127 _p = -_q _N = 255 * 4 class SoundFX: # Defined sounds NO_SOUND = '' CRASH_SOUND = array.array('b', (max(_p, min(_q, int(_T * math.sin(i * 0.01)))) for i in ...
27.690476
82
0.593293
156
1,163
4.198718
0.442308
0.201527
0.137405
0.116031
0.212214
0.149618
0.08855
0
0
0
0
0.02104
0.305245
1,163
41
83
28.365854
0.789604
0.084265
0
0.137931
0
0
0.001885
0
0
0
0
0
0
1
0.137931
false
0
0.137931
0
0.413793
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f7bf5796e8d7b2f9b8bec80d34a63ddf3ea79317
855
py
Python
mavsim_python/parameters/planner_parameters.py
akshitj1/mavsim_template_files
25c646ed274385c13492ed64d9821c1b8033c8ef
[ "MIT" ]
55
2019-01-25T02:43:00.000Z
2022-03-24T12:55:42.000Z
mavsim_python/parameters/planner_parameters.py
akshitj1/mavsim_template_files
25c646ed274385c13492ed64d9821c1b8033c8ef
[ "MIT" ]
6
2019-08-24T13:46:11.000Z
2021-09-29T23:58:48.000Z
mavsim_python/parameters/planner_parameters.py
akshitj1/mavsim_template_files
25c646ed274385c13492ed64d9821c1b8033c8ef
[ "MIT" ]
36
2019-01-30T01:09:16.000Z
2022-01-25T20:11:28.000Z
import sys sys.path.append('..') import numpy as np import parameters.aerosonde_parameters as MAV # size of the waypoint array used for the path planner. This is the # maximum number of waypoints that might be transmitted to the path # manager. size_waypoint_array = 100 # airspeed commanded by planner Va0 = MAV.u0 ...
28.5
77
0.720468
132
855
4.55303
0.55303
0.069884
0.063228
0.079867
0
0
0
0
0
0
0
0.027576
0.194152
855
29
78
29.482759
0.844702
0.706433
0
0
0
0
0.008811
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f7c1f367b5defab653bd95f74bb493fa5902914b
1,718
py
Python
starter/templates/python-django/main/utils/views.py
klen/starter-python-django
f02d799d183370d11ee2501ac59d0949f362bd9a
[ "BSD-3-Clause" ]
2
2015-05-18T13:50:59.000Z
2015-05-18T14:38:38.000Z
starter/templates/python-django/main/utils/views.py
klen/starter-python-django
f02d799d183370d11ee2501ac59d0949f362bd9a
[ "BSD-3-Clause" ]
null
null
null
starter/templates/python-django/main/utils/views.py
klen/starter-python-django
f02d799d183370d11ee2501ac59d0949f362bd9a
[ "BSD-3-Clause" ]
null
null
null
from StringIO import StringIO from django import http from django.core.serializers.json import Serializer from django.db.models.query import QuerySet from django.views.generic import TemplateView class TemplateContextView(TemplateView): """ Allow define context in as_view method. """ context = dict() ...
27.709677
65
0.671129
178
1,718
6.359551
0.432584
0.058304
0.030035
0.035336
0.047703
0
0
0
0
0
0
0
0.235739
1,718
61
66
28.163934
0.862148
0.136787
0
0
0
0
0.059908
0
0
0
0
0
0
1
0.131579
false
0.026316
0.131579
0
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f7c2076a2d3d08264fa950298c970e5f50d4ec31
2,467
py
Python
src/scenes/interfaces/dialog_interface.py
GRUPO-ES2-GJLRT/XADREZ_ES2
2a0d05a17590311d140fa287f69b8704346a493d
[ "MIT" ]
1
2015-05-02T23:02:12.000Z
2015-05-02T23:02:12.000Z
src/scenes/interfaces/dialog_interface.py
GRUPO-ES2-GJLRT/XADREZ_ES2
2a0d05a17590311d140fa287f69b8704346a493d
[ "MIT" ]
null
null
null
src/scenes/interfaces/dialog_interface.py
GRUPO-ES2-GJLRT/XADREZ_ES2
2a0d05a17590311d140fa287f69b8704346a493d
[ "MIT" ]
null
null
null
# coding: UTF-8 from __future__ import (absolute_import, division, print_function, unicode_literals) from .menu_interface import MenuInterface from scenes.elements import ( GameDiv, GameTextElement, ButtonGroup, ) from consts.i18n import ( YES, NO, ) class DialogInterface...
33.794521
63
0.394812
196
2,467
4.816327
0.311224
0.084746
0.088983
0.050847
0.402542
0.338983
0.338983
0.338983
0.338983
0.338983
0
0.026316
0.522497
2,467
72
64
34.263889
0.775042
0.00527
0
0.4
0
0
0.005302
0
0
0
0
0
0
1
0.015385
false
0
0.061538
0
0.107692
0.015385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f7c506b585242583b54c29cc8e90ac17376eded3
410
py
Python
JetMETAnalysis/METSkims/python/RECOSIMSumET_EventContent_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
JetMETAnalysis/METSkims/python/RECOSIMSumET_EventContent_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
JetMETAnalysis/METSkims/python/RECOSIMSumET_EventContent_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from Configuration.EventContent.EventContent_cff import * from JetMETAnalysis.METSkims.sumET_EventContent_cff import * RECOSIMSumETEventContent = cms.PSet( outputCommands = cms.untracked.vstring() ) RECOSIMSumETEventContent.outputCommands.extend(RECOSIMEventContent.outputCo...
37.272727
82
0.868293
36
410
9.805556
0.583333
0.084986
0.11898
0
0
0
0
0
0
0
0
0
0.065854
410
10
83
41
0.921671
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f7c6ebb83b36a9d5071d9c650239735d33ee6d8a
2,341
py
Python
kubos-core/docker.py
kubostech/kubos
44afcdfbd06207c5efdeec8e5f3c25dd790c33be
[ "Apache-2.0" ]
60
2017-01-12T18:14:33.000Z
2018-01-05T00:15:13.000Z
kubos-core/docker.py
kubostech/kubos
44afcdfbd06207c5efdeec8e5f3c25dd790c33be
[ "Apache-2.0" ]
120
2016-10-26T20:18:32.000Z
2018-01-05T23:27:36.000Z
kubos-core/docker.py
kubostech/kubos
44afcdfbd06207c5efdeec8e5f3c25dd790c33be
[ "Apache-2.0" ]
20
2016-11-23T15:25:37.000Z
2018-01-06T21:52:07.000Z
#!/usr/bin/env python2 # # KubOS Core Flight Services # Copyright (C) 2015 Kubos Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
30.012821
79
0.669799
316
2,341
4.835443
0.455696
0.05301
0.039267
0.020942
0.034031
0
0
0
0
0
0
0.005946
0.209739
2,341
77
80
30.402597
0.82
0.291328
0
0.043478
0
0
0.145732
0
0
0
0
0
0
0
null
null
0
0.130435
null
null
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f7cb8c94d19b845fe704f06bdd0efb0fa6a9fd50
2,224
py
Python
Chapter06/led_notifier.py
PacktPublishing/Raspberry-Pi-Zero-Cookbook
d646b78de5170f11534951238ab96e57e3afdecd
[ "MIT" ]
8
2017-05-01T20:18:39.000Z
2021-11-13T08:11:13.000Z
Chapter06/led_notifier.py
PacktPublishing/Raspberry-Pi-Zero-Cookbook
d646b78de5170f11534951238ab96e57e3afdecd
[ "MIT" ]
null
null
null
Chapter06/led_notifier.py
PacktPublishing/Raspberry-Pi-Zero-Cookbook
d646b78de5170f11534951238ab96e57e3afdecd
[ "MIT" ]
3
2017-07-27T02:47:40.000Z
2021-08-31T02:45:04.000Z
#!/usr/bin/env python # Raspberry Pi Zero Cookbook # Chapter 6 # New Email and Tweet LED Notifier from tweepy.streaming import StreamListener from tweepy import OAuthHandler from tweepy import Stream import time import imaplib import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) #Set up GPIO 22,23,24 as our LED outputs GPIO....
25.860465
70
0.709982
297
2,224
5.242424
0.447811
0.028902
0.02569
0.028259
0.092486
0.092486
0.038536
0
0
0
0
0.052345
0.17536
2,224
85
71
26.164706
0.796619
0.132194
0
0.085714
0
0
0.140625
0.088542
0
0
0
0
0
0
null
null
0
0.085714
null
null
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f7cfec42dd43a1a13af0bbed528255972ca7cb62
11,408
py
Python
2DNet/src/dataset/dataset.py
BhaveshJP25/RSNA
48d85faf82651b1ae4fdcd829ce2d4978a858d3f
[ "MIT" ]
null
null
null
2DNet/src/dataset/dataset.py
BhaveshJP25/RSNA
48d85faf82651b1ae4fdcd829ce2d4978a858d3f
[ "MIT" ]
null
null
null
2DNet/src/dataset/dataset.py
BhaveshJP25/RSNA
48d85faf82651b1ae4fdcd829ce2d4978a858d3f
[ "MIT" ]
null
null
null
import torch.utils.data as data import torch import albumentations import cv2 import numpy as np import random import math from settings import train_png_dir def generate_transforms(image_size): IMAGENET_SIZE = image_size train_transform = albumentations.Compose([ albumentations.Resize(IMAGENET_SIZE, ...
35.428571
127
0.585905
1,523
11,408
4.148391
0.130663
0.025483
0.037987
0.018835
0.624248
0.561095
0.529915
0.506806
0.460589
0.460589
0
0.041201
0.278752
11,408
321
128
35.538941
0.726665
0.016392
0
0.47561
1
0
0.023722
0
0
0
0
0
0
1
0.069106
false
0
0.03252
0.00813
0.186992
0.00813
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f7d15b81ee1c28eef5bfbb4b66ee9ae22d81b9a2
875
py
Python
tests/propagate.py
dkales/clusterfk
3b4f2a5967054e7b77602f1aa25b2a6c7d58d3f3
[ "MIT" ]
3
2017-12-20T14:07:45.000Z
2020-08-24T08:09:26.000Z
tests/propagate.py
dkales/clusterfk
3b4f2a5967054e7b77602f1aa25b2a6c7d58d3f3
[ "MIT" ]
16
2017-12-19T12:23:44.000Z
2018-07-14T21:23:34.000Z
tests/propagate.py
dkales/clusterfk
3b4f2a5967054e7b77602f1aa25b2a6c7d58d3f3
[ "MIT" ]
2
2019-08-05T19:45:36.000Z
2020-04-07T02:33:10.000Z
from context import Mantis, Propagation tweak = [[[0xa],[0],[0],[0]], [[0xa],[0],[0],[0]], [[0],[0],[0],[0]], [[0],[0],[0],[0]]] emptystate = [[[0],[0],[0],[0]], [[0],[0],[0],[0]], [[0],[0],[0],[0]], [[0],[0],[0],[0]]] T = Mantis.MantisState("T", tweak) S = Man...
24.305556
62
0.604571
119
875
4.445378
0.260504
0.102079
0.136106
0.15879
0.05104
0.05104
0.05104
0.05104
0.05104
0.05104
0
0.047297
0.154286
875
35
63
25
0.667568
0
0
0.185185
0
0
0.006857
0
0
0
0.006857
0
0
0
null
null
0
0.037037
null
null
0.185185
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f7d666c2baa8dbe44ddc2710da9946633bfd4e0f
5,917
py
Python
neurosynth/functions.py
vsoch/wordfish-plugins
c8aada9948efe624e5fa7e4a0b89a8755f7f63b2
[ "MIT" ]
1
2021-07-12T16:48:35.000Z
2021-07-12T16:48:35.000Z
neurosynth/functions.py
vsoch/wordfish-plugins
c8aada9948efe624e5fa7e4a0b89a8755f7f63b2
[ "MIT" ]
4
2015-11-08T23:47:14.000Z
2015-11-11T01:07:16.000Z
neurosynth/functions.py
vsoch/wordfish-plugins
c8aada9948efe624e5fa7e4a0b89a8755f7f63b2
[ "MIT" ]
1
2021-07-12T16:48:36.000Z
2021-07-12T16:48:36.000Z
''' neurosynth: plugin for the deepdive python package functions for working with neurosynth database ''' from neurosynth.base.dataset import Dataset from neurosynth.base.dataset import FeatureTable from wordfish.plugins.pubmed.functions import get_articles from neurosynth.analysis import meta from scipy.stats import...
33.429379
120
0.679229
783
5,917
5.003831
0.257982
0.027565
0.026544
0.017866
0.276672
0.226136
0.226136
0.177131
0.137825
0.137825
0
0.007829
0.201284
5,917
176
121
33.619318
0.821202
0.050532
0
0.241667
0
0
0.145426
0.013096
0
0
0
0
0
0
null
null
0.008333
0.175
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f7e63383696486ddf24f8017d95360ed42494a6c
1,363
py
Python
poultrycam/ftp/utils.py
AlexGolovaschenko/PoultryCam
350c50f9c8250221f2f8decebd0fd4f8d3ebd636
[ "MIT" ]
null
null
null
poultrycam/ftp/utils.py
AlexGolovaschenko/PoultryCam
350c50f9c8250221f2f8decebd0fd4f8d3ebd636
[ "MIT" ]
null
null
null
poultrycam/ftp/utils.py
AlexGolovaschenko/PoultryCam
350c50f9c8250221f2f8decebd0fd4f8d3ebd636
[ "MIT" ]
null
null
null
import re from datetime import datetime from django.utils.timezone import make_aware # return the file paths who has .jpg extension def select_jpg(files): return [f for f in files if re.search(r'.jpg$', f)] # parse data from file path # string example: # inbox/cam1/6M07E3EPAGC7C0F/2021-05-28/001/jpg/09/30.20[R]...
28.395833
122
0.645635
231
1,363
3.683983
0.333333
0.028202
0.035253
0.037603
0.344301
0.32785
0.266745
0.240893
0.240893
0.240893
0
0.035879
0.202495
1,363
47
123
29
0.74701
0.203228
0
0.366667
0
0.033333
0.150278
0.081633
0
0
0
0
0
1
0.166667
false
0
0.1
0.066667
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f7ef09c968f4e4051fe0f2a346bff30cdb292c64
3,084
py
Python
vespa/simulation/auto_gui/calculate_add_sub.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
null
null
null
vespa/simulation/auto_gui/calculate_add_sub.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
4
2021-04-17T13:58:31.000Z
2022-01-20T14:19:57.000Z
vespa/simulation/auto_gui/calculate_add_sub.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
3
2021-06-05T16:34:57.000Z
2022-01-19T16:13:22.000Z
# -*- coding: UTF-8 -*- # # generated by wxGlade 0.9.3 on Wed Sep 11 13:49:50 2019 # import wx # begin wxGlade: dependencies # end wxGlade # begin wxGlade: extracode # end wxGlade class MyDialog(wx.Dialog): def __init__(self, *args, **kwds): # begin wxGlade: MyDialog.__init__ kwds["style"] = kw...
46.029851
522
0.673476
461
3,084
4.336226
0.305857
0.015008
0.024012
0.033017
0.174087
0.095048
0.049025
0.049025
0.028014
0
0
0.02923
0.212387
3,084
66
523
46.727273
0.793742
0.11511
0
0
1
0.025
0.237094
0.016962
0
0
0
0
0
1
0.1
false
0
0.025
0
0.15
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f7f1042ec2a468f3cd2b74be86e97bdc8f93b186
1,261
py
Python
9/9.3/admin.py
liqiwa/python_work
3d1198d5616b28a37fee7dfba5bbef0e1d489c2d
[ "Apache-2.0" ]
null
null
null
9/9.3/admin.py
liqiwa/python_work
3d1198d5616b28a37fee7dfba5bbef0e1d489c2d
[ "Apache-2.0" ]
null
null
null
9/9.3/admin.py
liqiwa/python_work
3d1198d5616b28a37fee7dfba5bbef0e1d489c2d
[ "Apache-2.0" ]
null
null
null
class User(): """存储用户信息""" def __init__(self,first_name,last_name): self.first_name = first_name self.last_name = last_name def describe_user(self): print("Hi Welcome "+self.first_name+self.last_name) def greet_user(self): print('Welcome ') my_user = User('he','mm') my_user.describe_user() my_user.greet_u...
28.022222
88
0.735131
187
1,261
4.668449
0.229947
0.061856
0.059565
0.058419
0.482245
0.350515
0.350515
0.286369
0.286369
0.286369
0
0
0.114988
1,261
44
89
28.659091
0.782258
0.176844
0
0.129032
0
0
0.148874
0
0
0
0
0
0
1
0.225806
false
0
0
0
0.322581
0.129032
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
f7fcf96d3c14550d50ca53e82769bf24822182de
2,034
py
Python
src/z3c/autoinclude/dependency.py
datakurre/z3c.autoinclude
5e42815357d97d2704bff61f3eb7ed2ddc891907
[ "ZPL-2.1" ]
null
null
null
src/z3c/autoinclude/dependency.py
datakurre/z3c.autoinclude
5e42815357d97d2704bff61f3eb7ed2ddc891907
[ "ZPL-2.1" ]
null
null
null
src/z3c/autoinclude/dependency.py
datakurre/z3c.autoinclude
5e42815357d97d2704bff61f3eb7ed2ddc891907
[ "ZPL-2.1" ]
null
null
null
import os import logging from zope.dottedname.resolve import resolve from pkg_resources import resource_exists from pkg_resources import get_provider from pkg_resources import get_distribution from z3c.autoinclude.utils import DistributionManager from z3c.autoinclude.utils import ZCMLInfo class DependencyFinder(Distri...
41.510204
83
0.67355
236
2,034
5.631356
0.449153
0.022573
0.030098
0.039127
0.081264
0
0
0
0
0
0
0.002007
0.264995
2,034
48
84
42.375
0.886957
0.218781
0
0
0
0
0.057275
0
0
0
0
0
0
1
0.0625
false
0
0.3125
0
0.46875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
790ccbf04d0a0c8937f8e6013f1a21b3be29c911
8,889
py
Python
nixnet/database/_subframe.py
ni-ldp/nixnet-python
83f30c5b44098de0dc4828838e263b7be0866228
[ "MIT" ]
16
2017-06-14T19:44:45.000Z
2022-02-06T15:14:52.000Z
nixnet/database/_subframe.py
ni-ldp/nixnet-python
83f30c5b44098de0dc4828838e263b7be0866228
[ "MIT" ]
216
2017-06-15T16:41:10.000Z
2021-09-23T23:00:50.000Z
nixnet/database/_subframe.py
ni-ldp/nixnet-python
83f30c5b44098de0dc4828838e263b7be0866228
[ "MIT" ]
23
2017-06-14T22:51:08.000Z
2022-03-03T03:04:40.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import typing # NOQA: F401 from nixnet import _cconsts from nixnet import _errors from nixnet import _props from nixnet import constants from nixnet.database import _collection from nixnet.database import _d...
38.647826
118
0.657779
1,155
8,889
4.907359
0.212121
0.03705
0.023994
0.02964
0.164255
0.068102
0.016937
0.016937
0.016937
0.016937
0
0.001834
0.264034
8,889
229
119
38.816594
0.864567
0.59883
0
0.181818
0
0
0.009537
0
0
0
0
0
0
1
0.194805
false
0
0.194805
0.025974
0.571429
0.012987
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
790e30859321a5e763de3820ea1fea1dd98d732c
11,751
py
Python
sorolla/sorolla.py
bq/sorolla
f9fc2f35a673f2f11d370975be4e06c520341d88
[ "Apache-2.0" ]
16
2015-04-22T09:17:17.000Z
2015-12-05T17:17:22.000Z
sorolla/sorolla.py
bq/sorolla
f9fc2f35a673f2f11d370975be4e06c520341d88
[ "Apache-2.0" ]
null
null
null
sorolla/sorolla.py
bq/sorolla
f9fc2f35a673f2f11d370975be4e06c520341d88
[ "Apache-2.0" ]
null
null
null
import subprocess import math import os from pipes import quote import platform class Sorolla: """ Main class which will launch ImageMagick commands to apply selected transformations to the given images. It needs ImageMagick & GhostScript installed in the system and in PATH to work properly ""...
41.522968
129
0.512722
1,229
11,751
4.820993
0.230269
0.03038
0.032068
0.038819
0.454684
0.427004
0.407089
0.376371
0.344304
0.344304
0
0.020123
0.40371
11,751
282
130
41.670213
0.82546
0.168667
0
0.469388
0
0.013605
0.226695
0
0
0
0
0
0
0
null
null
0
0.034014
null
null
0.040816
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7915dccf0737d1dcc759a8696dbcbf7e9f4826f8
930
py
Python
algorithms/sorting/quick_sort.py
appleface2050/algorithms
9bd825b78133b3b9d0e366b853769059d955eed7
[ "BSD-3-Clause" ]
null
null
null
algorithms/sorting/quick_sort.py
appleface2050/algorithms
9bd825b78133b3b9d0e366b853769059d955eed7
[ "BSD-3-Clause" ]
null
null
null
algorithms/sorting/quick_sort.py
appleface2050/algorithms
9bd825b78133b3b9d0e366b853769059d955eed7
[ "BSD-3-Clause" ]
null
null
null
""" Quick Sort ---------- Uses partitioning to recursively divide and sort the list Time Complexity: O(n**2) worst case Space Complexity: O(n**2) this version Stable: No Psuedo Code: CLRS. Introduction to Algorithms. 3rd ed. """ count = 0 def sort(seq): """ Takes a list of inte...
21.627907
75
0.539785
135
930
3.659259
0.525926
0.030364
0.04251
0.052632
0
0
0
0
0
0
0
0.046774
0.333333
930
42
76
22.142857
0.75
0.035484
0
0.111111
0
0
0.017937
0
0
0
0
0
0
0
null
null
0
0
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1