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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
95ed83bdcd3b08d6b6486793f81f485baedd65dd | 3,383 | py | Python | srf/endpoints.py | lsapan/starlette-rest-framework | 9635e7a1ab74f0d2c7ad6e3d829593e304fdfa84 | [
"MIT"
] | null | null | null | srf/endpoints.py | lsapan/starlette-rest-framework | 9635e7a1ab74f0d2c7ad6e3d829593e304fdfa84 | [
"MIT"
] | null | null | null | srf/endpoints.py | lsapan/starlette-rest-framework | 9635e7a1ab74f0d2c7ad6e3d829593e304fdfa84 | [
"MIT"
] | null | null | null | import asyncio
from typing import Union, get_type_hints
from pydantic.error_wrappers import ValidationError
from starlette.concurrency import run_in_threadpool
from starlette.endpoints import HTTPEndpoint
from starlette.exceptions import HTTPException
from starlette.responses import Response, JSONResponse
from srf.pe... | 36.771739 | 98 | 0.678688 | 391 | 3,383 | 5.757033 | 0.29156 | 0.039094 | 0.019991 | 0.021324 | 0.109285 | 0.109285 | 0.109285 | 0.109285 | 0.070191 | 0.070191 | 0 | 0.003507 | 0.241502 | 3,383 | 91 | 99 | 37.175824 | 0.873733 | 0.019509 | 0 | 0.090909 | 0 | 0 | 0.003455 | 0 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0 | false | 0 | 0.151515 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
95eef90b3bcfb5715162d8612ce81e07393f8983 | 171 | py | Python | examples/shutdownWiiu.py | NessieHax/uGecko | 0f3d16e7d20055ad13e20dec0337e3cca1787490 | [
"MIT"
] | 3 | 2021-08-30T07:10:49.000Z | 2022-03-01T13:55:15.000Z | examples/shutdownWiiu.py | NessieHax/uGecko | 0f3d16e7d20055ad13e20dec0337e3cca1787490 | [
"MIT"
] | 2 | 2021-08-03T16:38:05.000Z | 2021-09-03T14:51:10.000Z | examples/shutdownWiiu.py | NessieHax/uGecko | 0f3d16e7d20055ad13e20dec0337e3cca1787490 | [
"MIT"
] | 3 | 2021-06-05T01:56:00.000Z | 2022-02-11T10:11:05.000Z | from ugecko import uGecko
gecko = uGecko("192.168.1.57")
gecko.connect()
gecko.call(gecko.getSymbol("coreinit.rpl", "OSShutdown"), 1)
gecko.disconnect()
print("Done.") | 17.1 | 60 | 0.719298 | 24 | 171 | 5.125 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.093567 | 171 | 10 | 61 | 17.1 | 0.729032 | 0 | 0 | 0 | 0 | 0 | 0.226744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
95f0b2e010a663fad20d8e413104b1a06749281a | 904 | py | Python | build.py | kumar303/unicode-in-python | d843635f6c51778ddbeecf22e9961b03b7256fef | [
"WTFPL"
] | 97 | 2015-01-16T02:31:17.000Z | 2021-11-08T11:44:24.000Z | build.py | cybernetics/unicode-in-python | 8447485995682896a90f73073435b1349ae42ee5 | [
"WTFPL"
] | 2 | 2015-07-30T21:10:49.000Z | 2017-09-19T01:22:01.000Z | build.py | cybernetics/unicode-in-python | 8447485995682896a90f73073435b1349ae42ee5 | [
"WTFPL"
] | 18 | 2015-01-15T13:18:00.000Z | 2019-04-06T18:22:26.000Z | #!/usr/bin/env python
import os
import optparse
from subprocess import check_call
import codecs
def setup_doctest():
u = 'Ivan Krsti\xc4\x87'.decode('utf-8')
f = open('/tmp/ivan_utf8.txt','w')
f.write(u.encode('utf-8'))
f.close()
f = open('/tmp/ivan_utf16.txt','w')
f.write(u.encode('utf-16'))
... | 29.16129 | 73 | 0.602876 | 122 | 904 | 4.303279 | 0.581967 | 0.068571 | 0.019048 | 0.045714 | 0.07619 | 0.07619 | 0.07619 | 0 | 0 | 0 | 0 | 0.016461 | 0.193584 | 904 | 30 | 74 | 30.133333 | 0.703704 | 0.022124 | 0 | 0.076923 | 0 | 0 | 0.322763 | 0.026048 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | 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 |
95f1c02ec9f267d0a48914aa4d0552943f8e8b07 | 7,111 | py | Python | mailchimp_marketing_asyncio/models/clicks.py | john-parton/mailchimp-asyncio | 3865ca0867bec8f537dc1e3256aa3a160c00f8a2 | [
"Apache-2.0"
] | null | null | null | mailchimp_marketing_asyncio/models/clicks.py | john-parton/mailchimp-asyncio | 3865ca0867bec8f537dc1e3256aa3a160c00f8a2 | [
"Apache-2.0"
] | null | null | null | mailchimp_marketing_asyncio/models/clicks.py | john-parton/mailchimp-asyncio | 3865ca0867bec8f537dc1e3256aa3a160c00f8a2 | [
"Apache-2.0"
] | 1 | 2022-03-09T14:52:22.000Z | 2022-03-09T14:52:22.000Z | # coding: utf-8
"""
Mailchimp Marketing API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 3.0.74
Contact: apihelp@mailchimp.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import... | 30.917391 | 141 | 0.611025 | 885 | 7,111 | 4.711864 | 0.155932 | 0.053717 | 0.105516 | 0.057554 | 0.545564 | 0.451559 | 0.404796 | 0.346523 | 0.2506 | 0.223022 | 0 | 0.020867 | 0.305864 | 7,111 | 229 | 142 | 31.052402 | 0.823947 | 0.381943 | 0 | 0.071429 | 1 | 0 | 0.068027 | 0.019592 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163265 | false | 0 | 0.030612 | 0 | 0.336735 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
95f4bafb02712791362c6c09954d6590cef6099a | 7,739 | py | Python | src/FLANNEL/utils/generate_bar.py | mannbiher/DeepLearningForHealthCareProject | 4692031591bd88c489c9b905e7c340ac76a5366b | [
"MIT"
] | null | null | null | src/FLANNEL/utils/generate_bar.py | mannbiher/DeepLearningForHealthCareProject | 4692031591bd88c489c9b905e7c340ac76a5366b | [
"MIT"
] | 14 | 2021-05-10T18:00:58.000Z | 2021-05-12T00:29:41.000Z | src/FLANNEL/utils/generate_bar.py | mannbiher/DeepLearningForHealthCareProject | 4692031591bd88c489c9b905e7c340ac76a5366b | [
"MIT"
] | null | null | null | #
# This utility is to generate the bar chart of FLANNEL vs Patched FLANNEL Covid-19 scores
# Make sure results_home and measure_detail* file names are adjusted accordingly while running this util.
# results_home - line 12
# measure_detail* files in create_f1df function
#
import pandas as pd
import numpy... | 43.477528 | 129 | 0.675152 | 1,174 | 7,739 | 4.178024 | 0.189949 | 0.027115 | 0.022018 | 0.017329 | 0.48685 | 0.387564 | 0.301121 | 0.27156 | 0.240571 | 0.203874 | 0 | 0.047249 | 0.185037 | 7,739 | 178 | 130 | 43.477528 | 0.730458 | 0.13503 | 0 | 0.101563 | 1 | 0 | 0.175262 | 0.008096 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0 | 0.023438 | 0 | 0.09375 | 0.015625 | 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 |
95fd462b946e5843218ff716ccce10b721cb9383 | 1,799 | py | Python | Q/questionnaire/tests/tests_unit/test_middleware.py | trubliphone/esdoc-test | 2f7a39b22cdda89e55d5936ed131873812cf3791 | [
"MIT"
] | null | null | null | Q/questionnaire/tests/tests_unit/test_middleware.py | trubliphone/esdoc-test | 2f7a39b22cdda89e55d5936ed131873812cf3791 | [
"MIT"
] | 2 | 2017-11-01T14:29:46.000Z | 2017-11-02T12:16:03.000Z | Q/questionnaire/tests/tests_unit/test_middleware.py | trubliphone/esdoc-test | 2f7a39b22cdda89e55d5936ed131873812cf3791 | [
"MIT"
] | null | null | null | ####################
# ES-DOC CIM Questionnaire
# Copyright (c) 2017 ES-DOC. All rights reserved.
#
# University of Colorado, Boulder
# http://cires.colorado.edu/
#
# This project is distributed according to the terms of the MIT license [http://www.opensource.org/licenses/MIT].
####################
"""
.. mo... | 28.555556 | 115 | 0.710951 | 223 | 1,799 | 5.547085 | 0.38565 | 0.062247 | 0.033953 | 0.03557 | 0.244139 | 0.244139 | 0.190784 | 0.190784 | 0.190784 | 0.190784 | 0 | 0.003408 | 0.184547 | 1,799 | 62 | 116 | 29.016129 | 0.839809 | 0.239578 | 0 | 0.214286 | 0 | 0 | 0.020579 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.107143 | false | 0.071429 | 0.25 | 0 | 0.392857 | 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 |
95ff4988a5cbe5ab65fd449c56112c122f284069 | 1,575 | py | Python | Wrapping/Python/vtkmodules/test/ErrorObserver.py | cclauss/VTK | f62a52cce9044159efb4adb7cc0cfd7ec0bc8b6d | [
"BSD-3-Clause"
] | 1,755 | 2015-01-03T06:55:00.000Z | 2022-03-29T05:23:26.000Z | Wrapping/Python/vtkmodules/test/ErrorObserver.py | cclauss/VTK | f62a52cce9044159efb4adb7cc0cfd7ec0bc8b6d | [
"BSD-3-Clause"
] | 29 | 2015-04-23T20:58:30.000Z | 2022-03-02T16:16:42.000Z | Wrapping/Python/vtkmodules/test/ErrorObserver.py | cclauss/VTK | f62a52cce9044159efb4adb7cc0cfd7ec0bc8b6d | [
"BSD-3-Clause"
] | 1,044 | 2015-01-05T22:48:27.000Z | 2022-03-31T02:38:26.000Z | from vtkmodules.vtkCommonCore import vtkCommand
class vtkErrorObserver(object):
def __init__(self):
self.CallDataType = 'string0'
self.reset()
def __call__(self, caller, event, data):
if event == 'ErrorEvent':
self._error_message = data
elif event == 'WarningEvent'... | 29.166667 | 78 | 0.589206 | 178 | 1,575 | 5 | 0.303371 | 0.094382 | 0.107865 | 0.042697 | 0.224719 | 0.119101 | 0 | 0 | 0 | 0 | 0 | 0.001848 | 0.313016 | 1,575 | 53 | 79 | 29.716981 | 0.820702 | 0 | 0 | 0.190476 | 0 | 0 | 0.102222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.02381 | 0.095238 | 0.380952 | 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 |
250e55c224cc7d3ca888cfc6fea26c73f703089e | 1,267 | py | Python | turvallisuusneuvonta/csaf/core/rules/mandatory/unique_group_ids.py | sthagen/turvallisuusneuvonta | 503e6026463e475b02cb75fd23ae3faeb5f25b11 | [
"MIT"
] | 1 | 2021-12-08T11:12:30.000Z | 2021-12-08T11:12:30.000Z | turvallisuusneuvonta/csaf/core/rules/mandatory/unique_group_ids.py | sthagen/turvallisuusneuvonta | 503e6026463e475b02cb75fd23ae3faeb5f25b11 | [
"MIT"
] | 2 | 2022-02-14T15:43:08.000Z | 2022-02-14T21:22:13.000Z | turvallisuusneuvonta/csaf/core/rules/mandatory/unique_group_ids.py | sthagen/turvallisuusneuvonta | 503e6026463e475b02cb75fd23ae3faeb5f25b11 | [
"MIT"
] | null | null | null | """6.1.5 Multiple Definition of Product Group ID
For each Product Group ID (type /$defs/product_group_id_t) Product Group elements (/product_tree/product_groups[])
it must be tested that the group_id was not already defined within the same document.
The relevant path for this test is:
/product_tree/product_group... | 23.90566 | 114 | 0.590371 | 144 | 1,267 | 5 | 0.409722 | 0.0875 | 0.077778 | 0.1 | 0.325 | 0.325 | 0.144444 | 0.144444 | 0.144444 | 0 | 0 | 0.08506 | 0.276243 | 1,267 | 52 | 115 | 24.365385 | 0.700109 | 0.821626 | 0 | 0 | 0 | 0 | 0.369863 | 0.178082 | 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 |
250e768b68e84db0bf792ad268f35040718edd4e | 1,001 | py | Python | AprendeAyudando/forum/migrations/0005_auto_20201202_1959.py | memoriasIT/AprendeAyudando | 0a32f59d3606075abb99a74ce1983a6171aa34cd | [
"CC0-1.0"
] | 1 | 2021-09-09T09:54:04.000Z | 2021-09-09T09:54:04.000Z | AprendeAyudando/forum/migrations/0005_auto_20201202_1959.py | memoriasIT/AprendeAyudando | 0a32f59d3606075abb99a74ce1983a6171aa34cd | [
"CC0-1.0"
] | null | null | null | AprendeAyudando/forum/migrations/0005_auto_20201202_1959.py | memoriasIT/AprendeAyudando | 0a32f59d3606075abb99a74ce1983a6171aa34cd | [
"CC0-1.0"
] | null | null | null | # Generated by Django 3.1.3 on 2020-12-02 19:59
from django.conf import settings
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('forum', '0004_auto_20201201_... | 29.441176 | 105 | 0.627373 | 102 | 1,001 | 6 | 0.54902 | 0.088235 | 0.112745 | 0.132353 | 0.24183 | 0.24183 | 0.183007 | 0.183007 | 0.183007 | 0 | 0 | 0.046448 | 0.268731 | 1,001 | 33 | 106 | 30.333333 | 0.789617 | 0.044955 | 0 | 0.407407 | 1 | 0 | 0.101677 | 0.024109 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.222222 | 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 |
2523433cbe2bcbce2ef60b1a89bc356258416f29 | 1,009 | py | Python | HuffmanCoding/Decode.py | KianBankeLarsen/Algorithms | de59e64f4ae98be7d38bb8648239693f140df6e7 | [
"MIT"
] | null | null | null | HuffmanCoding/Decode.py | KianBankeLarsen/Algorithms | de59e64f4ae98be7d38bb8648239693f140df6e7 | [
"MIT"
] | null | null | null | HuffmanCoding/Decode.py | KianBankeLarsen/Algorithms | de59e64f4ae98be7d38bb8648239693f140df6e7 | [
"MIT"
] | 1 | 2021-03-01T17:26:27.000Z | 2021-03-01T17:26:27.000Z | """
Huffman decoding/decompression script
Authors:
- Kian Banke Larsen (kilar20)
- Silas Pockendahl (silch20)
"""
from Huffman import Huffman
from sys import argv
if __name__ == "__main__":
if len(argv) != 3:
print(f"Usage: python {argv[0]} <input file> <output file>")
else:
print(f"D... | 32.548387 | 68 | 0.556987 | 121 | 1,009 | 4.570248 | 0.512397 | 0.086799 | 0.028933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04539 | 0.301288 | 1,009 | 31 | 69 | 32.548387 | 0.739007 | 0.133796 | 0 | 0 | 0 | 0 | 0.32526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
2526844bfbbb7f37fda22db056fb00bd672dba1a | 5,065 | py | Python | python_card_game/engine/engine.py | Evanpunked/Python-Card-Game | 84ace21637ca51d4be85afb26c33c468621d8da9 | [
"0BSD"
] | 2 | 2016-08-21T00:58:07.000Z | 2021-01-26T04:59:55.000Z | python_card_game/engine/engine.py | Evanpunked/Python-Card-Game | 84ace21637ca51d4be85afb26c33c468621d8da9 | [
"0BSD"
] | 1 | 2016-01-31T14:41:32.000Z | 2016-01-31T14:41:32.000Z | python_card_game/engine/engine.py | Evanpunked/Python-Card-Game | 84ace21637ca51d4be85afb26c33c468621d8da9 | [
"0BSD"
] | 3 | 2016-01-21T20:03:02.000Z | 2022-03-27T20:33:14.000Z |
import sys
# import pygame
import random
from card import Card
# totally untested
class MouseButton:
LEFT = 1
MIDDLE = 2
RIGHT = 3
WHEEL_UP = 4
WHEEL_DOWN = 5
# totally untested
class EventHandler:
def __init__(self):
self.functions = []
def __iadd__(self, function):
if function not in s... | 23.891509 | 77 | 0.659822 | 658 | 5,065 | 4.969605 | 0.255319 | 0.055657 | 0.029969 | 0.029052 | 0.182875 | 0.088685 | 0.057492 | 0.045872 | 0 | 0 | 0 | 0.0091 | 0.240671 | 5,065 | 211 | 78 | 24.004739 | 0.841134 | 0.101283 | 0 | 0.216216 | 0 | 0 | 0.011902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02027 | null | null | 0.013514 | 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 |
2527f46b1b09c920caef7b6aa3837f096825761a | 1,153 | py | Python | tests/miscelaneos/gui-1.py | agennaro1/VISCA-IP-Controller-main | b88fbc44c57039408b17af88b3397044418d7bb9 | [
"MIT"
] | null | null | null | tests/miscelaneos/gui-1.py | agennaro1/VISCA-IP-Controller-main | b88fbc44c57039408b17af88b3397044418d7bb9 | [
"MIT"
] | null | null | null | tests/miscelaneos/gui-1.py | agennaro1/VISCA-IP-Controller-main | b88fbc44c57039408b17af88b3397044418d7bb9 | [
"MIT"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from tkinter import *
from tkinter import ttk
# Crea una clase Python para definir el interfaz de usuario de
# la aplicación. Cuando se cree un objeto del tipo 'Aplicacion'
# se ejecutará automáticamente el método __init__() qué
# construye y muestra la ventana con todo... | 30.342105 | 63 | 0.687771 | 161 | 1,153 | 4.73913 | 0.627329 | 0.028834 | 0.044561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.222897 | 1,153 | 38 | 64 | 30.342105 | 0.842634 | 0.601041 | 0 | 0 | 0 | 0 | 0.078475 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.125 | false | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
25414e2ddbf841f9a9fc0c5e3693798fc640730c | 5,376 | py | Python | Factories/CreateItemContentMatrices.py | dnzprmksz/Movie-Recommender | 7543ee938b830cc7c74e75c02ffc2a1c7ce366f0 | [
"MIT"
] | 1 | 2017-07-28T09:26:37.000Z | 2017-07-28T09:26:37.000Z | Factories/CreateItemContentMatrices.py | dnzprmksz/movie-recommender | 7543ee938b830cc7c74e75c02ffc2a1c7ce366f0 | [
"MIT"
] | 2 | 2017-11-19T00:06:38.000Z | 2017-11-19T00:06:41.000Z | Factories/CreateItemContentMatrices.py | dnzprmksz/movie-recommender | 7543ee938b830cc7c74e75c02ffc2a1c7ce366f0 | [
"MIT"
] | null | null | null | import numpy as np
from scipy.sparse import csc_matrix, csr_matrix
import mysql.connector
import time
start_time = time.time()
def create_director_content_matrices(conn):
cursor = conn.cursor()
movie_cursor = conn.cursor()
# Get movies
movie_cursor.execute("SELECT * FROM movie_list;")
movies = movie_cursor.fetc... | 32.385542 | 130 | 0.745722 | 779 | 5,376 | 4.869063 | 0.139923 | 0.05062 | 0.054838 | 0.022146 | 0.48405 | 0.37121 | 0.3198 | 0.298445 | 0.289744 | 0.279462 | 0 | 0.012774 | 0.126302 | 5,376 | 165 | 131 | 32.581818 | 0.794763 | 0.083519 | 0 | 0.278261 | 0 | 0 | 0.11127 | 0.040147 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017391 | 0.034783 | null | null | 0.017391 | 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 |
25440a83de50b8021b9d620e9fefbe0592fae6b0 | 1,139 | py | Python | app/model.py | datacenter/NCA- | 683c3429139df0749d4d9ebead66f16f1ee68244 | [
"Apache-2.0"
] | 14 | 2016-05-11T22:15:19.000Z | 2020-09-07T12:28:32.000Z | app/model.py | datacenter/NCA- | 683c3429139df0749d4d9ebead66f16f1ee68244 | [
"Apache-2.0"
] | 2 | 2016-06-08T14:36:01.000Z | 2017-04-18T11:53:20.000Z | app/model.py | datacenter/NCA- | 683c3429139df0749d4d9ebead66f16f1ee68244 | [
"Apache-2.0"
] | 14 | 2016-05-11T22:15:20.000Z | 2021-03-31T18:57:40.000Z | """
Model and database definition
"""
from peewee import *
__author__ = 'Santiago Flores Kanter (sfloresk@cisco.com)'
database = SqliteDatabase('l2-integration.db')
class base(Model):
class Meta:
database = database
class network(base):
encapsulation = IntegerField()
name = CharField()
gro... | 19.637931 | 119 | 0.716418 | 122 | 1,139 | 6.532787 | 0.393443 | 0.087829 | 0.071518 | 0.057716 | 0.080301 | 0.080301 | 0 | 0 | 0 | 0 | 0 | 0.001071 | 0.179982 | 1,139 | 57 | 120 | 19.982456 | 0.852248 | 0.025461 | 0 | 0.125 | 0 | 0 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.03125 | 0 | 0.84375 | 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 |
2549ef697a5f2cad8d0485175da997a932f1d97d | 784 | py | Python | djangocms_misc/tests/test_app/admin.py | bnzk/djangocms-tools | 6e5702594a7cd8c87b92ed46e27a72ff09257fd5 | [
"MIT"
] | 2 | 2016-09-23T14:15:35.000Z | 2016-10-13T07:10:05.000Z | djangocms_misc/tests/test_app/admin.py | bnzk/djangocms-tools | 6e5702594a7cd8c87b92ed46e27a72ff09257fd5 | [
"MIT"
] | 28 | 2017-06-16T09:41:55.000Z | 2022-02-08T15:50:04.000Z | djangocms_misc/tests/test_app/admin.py | benzkji/djangocms-tools | 6e5702594a7cd8c87b92ed46e27a72ff09257fd5 | [
"MIT"
] | 1 | 2017-04-04T12:16:50.000Z | 2017-04-04T12:16:50.000Z | from django.contrib import admin
from modeltranslation.admin import TranslationTabularInline, TranslationStackedInline, TranslationAdmin
from .models import TestModel, TestInlineModel
from ...basic.admin import LanguageTabsMixin
class TestInlineModelInline(TranslationStackedInline, admin.StackedInline):
model = ... | 29.037037 | 103 | 0.756378 | 62 | 784 | 9.564516 | 0.548387 | 0.037099 | 0.084317 | 0.08769 | 0.104553 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010448 | 0.145408 | 784 | 26 | 104 | 30.153846 | 0.874627 | 0 | 0 | 0.235294 | 0 | 0 | 0.049745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.764706 | 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 |
254fb9e8f5f6547cf94c01f03838f0d8bc1d40de | 1,882 | py | Python | main.py | rodrigofuku/desafio7-TNT-mtbc2020 | 31cbe1ae37e63ba2fa933a381c266fd0c2d7c951 | [
"Apache-2.0"
] | null | null | null | main.py | rodrigofuku/desafio7-TNT-mtbc2020 | 31cbe1ae37e63ba2fa933a381c266fd0c2d7c951 | [
"Apache-2.0"
] | null | null | null | main.py | rodrigofuku/desafio7-TNT-mtbc2020 | 31cbe1ae37e63ba2fa933a381c266fd0c2d7c951 | [
"Apache-2.0"
] | null | null | null | import csv
import paho.mqtt.client as mqtt
import data_manager
def on_connect(client, userdata, flags, rc):
print("Connected with result code " + str(rc))
client.subscribe("tnt")
arquivo = open('dados.csv', 'w', newline='', encoding='utf-8')
arquivo.write("Tempo,Estação,LAT,LONG,Movimentação,Original_4... | 34.851852 | 149 | 0.647184 | 213 | 1,882 | 5.596244 | 0.455399 | 0.120805 | 0.125839 | 0.171141 | 0.276846 | 0.276846 | 0.276846 | 0.224832 | 0.14094 | 0.14094 | 0 | 0.019557 | 0.18491 | 1,882 | 54 | 150 | 34.851852 | 0.757497 | 0 | 0 | 0 | 0 | 0.023256 | 0.183218 | 0.067977 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.069767 | 0 | 0.116279 | 0.116279 | 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 |
25551293ef4e1feb16008282877ad5411071930e | 873 | py | Python | command.py | renatojobal/DiscordBotJokeTester | dbdcb4c160913e44e3703e24dd848f8970a92b74 | [
"MIT"
] | null | null | null | command.py | renatojobal/DiscordBotJokeTester | dbdcb4c160913e44e3703e24dd848f8970a92b74 | [
"MIT"
] | 1 | 2021-04-30T00:36:45.000Z | 2021-05-01T00:48:20.000Z | command.py | renatojobal/DiscordBotJokeTester | dbdcb4c160913e44e3703e24dd848f8970a92b74 | [
"MIT"
] | null | null | null | from discord.message import Message
class Command():
"""
Comands class.
If you want to create a new command you should use this class
"""
def __init__(self, content: str = None,
alt: str = '',
description: str = 'Sin descripción aún, pregúntale al develper chanca... | 25.676471 | 104 | 0.570447 | 94 | 873 | 5.202128 | 0.553191 | 0.067485 | 0.07362 | 0.0818 | 0.118609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.33677 | 873 | 33 | 105 | 26.454545 | 0.84456 | 0.103093 | 0 | 0 | 0 | 0.058824 | 0.267936 | 0.079063 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.058824 | 0.058824 | 0 | 0.294118 | 0.058824 | 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 |
255607c41cdae1276e7398aee4c0e6e855dd9a38 | 371 | py | Python | utils/cuda.py | M3DV/SimTA | 0bb0caccbb87123e4de0e2dba17555e17e11c85d | [
"Apache-2.0"
] | 11 | 2020-11-08T11:16:53.000Z | 2022-02-20T13:33:07.000Z | utils/cuda.py | M3DV/SimTA | 0bb0caccbb87123e4de0e2dba17555e17e11c85d | [
"Apache-2.0"
] | null | null | null | utils/cuda.py | M3DV/SimTA | 0bb0caccbb87123e4de0e2dba17555e17e11c85d | [
"Apache-2.0"
] | null | null | null | import os
import pickle
import torch.nn as nn
def put_var_on_gpu(var, devices, requires_grad=False):
if len(devices) == 1:
var = var.cuda(devices[0])
return var
def put_model_on_gpu(model, devices):
if len(devices) == 1:
model = model.cuda(devices[0])
else:
model = nn.DataPa... | 19.526316 | 58 | 0.657682 | 56 | 371 | 4.214286 | 0.464286 | 0.050847 | 0.101695 | 0.110169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.234501 | 371 | 18 | 59 | 20.611111 | 0.816901 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2564187b6671938a7f5d4dabad53deacb312fa99 | 38,305 | py | Python | synapse/tests/test_lib_storm.py | cmd-not-found/synapse | a768c441623d369c0c0ef59bc0d1278cd63bb8de | [
"Apache-2.0"
] | null | null | null | synapse/tests/test_lib_storm.py | cmd-not-found/synapse | a768c441623d369c0c0ef59bc0d1278cd63bb8de | [
"Apache-2.0"
] | null | null | null | synapse/tests/test_lib_storm.py | cmd-not-found/synapse | a768c441623d369c0c0ef59bc0d1278cd63bb8de | [
"Apache-2.0"
] | null | null | null | import asyncio
import datetime
import synapse.exc as s_exc
import synapse.common as s_common
import synapse.lib.storm as s_storm
import synapse.tests.utils as s_t_utils
from synapse.tests.utils import alist
class StormTest(s_t_utils.SynTest):
async def test_storm_tree(self):
async with self.getTestCor... | 40.836887 | 106 | 0.516747 | 4,757 | 38,305 | 4.134959 | 0.090814 | 0.04667 | 0.05694 | 0.041535 | 0.764413 | 0.72242 | 0.680529 | 0.623132 | 0.580275 | 0.538434 | 0 | 0.030977 | 0.320741 | 38,305 | 937 | 107 | 40.88047 | 0.724778 | 0.053231 | 0 | 0.519747 | 0 | 0.026856 | 0.209997 | 0.00475 | 0 | 0 | 0.006076 | 0 | 0 | 1 | 0.00158 | false | 0.00316 | 0.011058 | 0 | 0.014218 | 0.011058 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
256bf4cb812d9aae427c3aac6b66729b66ae1b16 | 499 | py | Python | scieldas/services/coveralls/api.py | autophagy/scieldas | 0159f45321e4edb2211010e096dfc09f5c103df0 | [
"MIT"
] | 6 | 2018-06-13T06:54:12.000Z | 2021-01-15T13:59:33.000Z | scieldas/services/coveralls/api.py | Autophagy/scieldas | 0159f45321e4edb2211010e096dfc09f5c103df0 | [
"MIT"
] | 1 | 2020-06-21T17:56:32.000Z | 2020-06-23T07:48:57.000Z | scieldas/services/coveralls/api.py | autophagy/scieldas | 0159f45321e4edb2211010e096dfc09f5c103df0 | [
"MIT"
] | null | null | null | from typing import Optional
from scieldas.api import API
from scieldas.services import ServiceAPI
class Coveralls(ServiceAPI):
base_url = "https://coveralls.io/"
@ServiceAPI.call
def coverage(
self, vcs: str, user: str, project: str, api: API, branch=None
) -> Optional[float]:
branch... | 29.352941 | 83 | 0.685371 | 64 | 499 | 5.28125 | 0.5625 | 0.071006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204409 | 499 | 16 | 84 | 31.1875 | 0.851385 | 0 | 0 | 0 | 0 | 0 | 0.096192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c2501c995114867334c20590299341d656ec20c7 | 16,340 | py | Python | mouse_burrows/algorithm/processes/ground_detector.py | david-zwicker/cv-mouse-burrows | 906476f49ff9711cd672feca5f70efedaab82b01 | [
"BSD-3-Clause"
] | 1 | 2016-03-06T05:16:38.000Z | 2016-03-06T05:16:38.000Z | mouse_burrows/algorithm/processes/ground_detector.py | david-zwicker/cv-mouse-burrows | 906476f49ff9711cd672feca5f70efedaab82b01 | [
"BSD-3-Clause"
] | null | null | null | mouse_burrows/algorithm/processes/ground_detector.py | david-zwicker/cv-mouse-burrows | 906476f49ff9711cd672feca5f70efedaab82b01 | [
"BSD-3-Clause"
] | null | null | null | '''
Created on Dec 3, 2014
@author: David Zwicker <dzwicker@seas.harvard.edu>
'''
from __future__ import division
import math
import numpy as np
from scipy import ndimage, optimize, signal
import cv2
from ..objects import GroundProfile
from video.analysis import image, curves, regions
from video.analysis.active_co... | 41.472081 | 88 | 0.569584 | 2,018 | 16,340 | 4.465312 | 0.216551 | 0.008878 | 0.021307 | 0.008323 | 0.327156 | 0.300744 | 0.289424 | 0.24115 | 0.238042 | 0.238042 | 0 | 0.016756 | 0.346206 | 16,340 | 393 | 89 | 41.577608 | 0.826734 | 0.202264 | 0 | 0.254545 | 0 | 0 | 0.048306 | 0.017197 | 0 | 0 | 0 | 0.002545 | 0.004545 | 0 | null | null | 0.004545 | 0.040909 | null | null | 0.004545 | 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 |
c261f06947382b94f6987dbc235baec2cf4e51f6 | 33,096 | py | Python | face/cluster/cluster.py | kkltcjk/face | 5fd509c746f5c733dec679af73c129b4f6bab009 | [
"Apache-2.0"
] | null | null | null | face/cluster/cluster.py | kkltcjk/face | 5fd509c746f5c733dec679af73c129b4f6bab009 | [
"Apache-2.0"
] | null | null | null | face/cluster/cluster.py | kkltcjk/face | 5fd509c746f5c733dec679af73c129b4f6bab009 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
import os
import sys
import shutil
import subprocess
import threadpool
import threading
from face.common import utils
reload(sys)
sys.setdefaultencoding('utf8')
path_char = os.sep
mutex = threading.Lock()
###########################
#函数功能:根据输入文件,读取其下的票务结构化信息
#函数输入:票务信息文件,一天... | 38.041379 | 151 | 0.618776 | 4,582 | 33,096 | 4.047796 | 0.084461 | 0.037203 | 0.041408 | 0.033159 | 0.624198 | 0.533617 | 0.462123 | 0.426592 | 0.390575 | 0.340486 | 0 | 0.009442 | 0.24157 | 33,096 | 869 | 152 | 38.085155 | 0.729453 | 0.09965 | 0 | 0.372263 | 0 | 0 | 0.051447 | 0.003957 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00365 | 0.012774 | null | null | 0.074818 | 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 |
c2621d6fbec00acc175d0f71f681cf90e3685dd8 | 819 | py | Python | instagram_api/response/model/broadcast.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | 13 | 2019-08-07T21:24:34.000Z | 2020-12-12T12:23:50.000Z | instagram_api/response/model/broadcast.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | instagram_api/response/model/broadcast.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | from ..mapper import PropertyMapper, ApiInterfaceBase
from ..mapper.types import Timestamp, AnyType
from .user import User
__all__ = ['Broadcast', 'BroadcastInterface']
class BroadcastInterface(ApiInterfaceBase):
broadcast_owner: User
broadcast_status: str
cover_frame_url: str
published_time: str
... | 22.75 | 53 | 0.749695 | 97 | 819 | 5.989691 | 0.536082 | 0.041308 | 0.072289 | 0.061962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196581 | 819 | 35 | 54 | 23.4 | 0.882979 | 0 | 0 | 0 | 0 | 0 | 0.032967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.035714 | 0.107143 | 0 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c262b456a82a368a93ce11be207d5320f894acea | 1,133 | py | Python | orbit.py | jamieomoya/trashpandas-backend | b858fd2e3b26765b5e09d79702dc6d8217200a60 | [
"MIT"
] | null | null | null | orbit.py | jamieomoya/trashpandas-backend | b858fd2e3b26765b5e09d79702dc6d8217200a60 | [
"MIT"
] | null | null | null | orbit.py | jamieomoya/trashpandas-backend | b858fd2e3b26765b5e09d79702dc6d8217200a60 | [
"MIT"
] | null | null | null | from spacetrack import SpaceTrackClient
from sgp4 import omm
from sgp4.api import Satrec, SatrecArray
from skyfield.api import load, EarthSatellite
username = 's164024@student.dtu.dk'
password = '0r3HIhzNKGLJpjquYMpFHw27kpKUOiii'
st = SpaceTrackClient(username, password)
valid_predicates = st.get_predicates('gp', con... | 24.106383 | 71 | 0.704325 | 141 | 1,133 | 5.397163 | 0.489362 | 0.052562 | 0.068331 | 0.089356 | 0.1682 | 0.0841 | 0 | 0 | 0 | 0 | 0 | 0.01326 | 0.201236 | 1,133 | 46 | 72 | 24.630435 | 0.827624 | 0.091792 | 0 | 0 | 0 | 0 | 0.118511 | 0.052889 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.214286 | 0 | 0.321429 | 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 |
c26adc4e9fc345c64880e9f80ec3414237e08193 | 6,125 | py | Python | src/oci/apm_traces/models/trace_snapshot.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/apm_traces/models/trace_snapshot.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/apm_traces/models/trace_snapshot.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 30.778894 | 245 | 0.645224 | 733 | 6,125 | 5.180082 | 0.20191 | 0.041085 | 0.125099 | 0.060574 | 0.564656 | 0.455359 | 0.37714 | 0.287069 | 0.262839 | 0.190677 | 0 | 0.004101 | 0.283429 | 6,125 | 198 | 246 | 30.934343 | 0.861016 | 0.523755 | 0 | 0.080645 | 0 | 0 | 0.104724 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.032258 | 0.032258 | 0.419355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c26ef6d3edfb45937535aed9dcf9969fb59fd031 | 3,644 | py | Python | update_player_ids.py | rbrnk/phpffl-gamestats | b6d62d6cf8271a6cec3a7ef250c33521f5c176ec | [
"MIT"
] | 3 | 2015-12-16T20:50:29.000Z | 2016-06-06T04:06:30.000Z | update_player_ids.py | rbrnk/phpffl-gamestats | b6d62d6cf8271a6cec3a7ef250c33521f5c176ec | [
"MIT"
] | null | null | null | update_player_ids.py | rbrnk/phpffl-gamestats | b6d62d6cf8271a6cec3a7ef250c33521f5c176ec | [
"MIT"
] | 2 | 2018-08-03T20:29:35.000Z | 2019-11-17T20:57:55.000Z | import sys
import MySQLdb
import MySQLdb.cursors
import json
import nflgame
import os
import config as c
db = MySQLdb.connect(host=c.dbhost, user=c.dbuser, passwd=c.dbpass, db=c.dbname, cursorclass=MySQLdb.cursors.DictCursor)
# File to save a lookup table to be used for nflgame -> cbs player id lookup
lookupfile = o... | 37.56701 | 223 | 0.594127 | 505 | 3,644 | 4.237624 | 0.243564 | 0.008411 | 0.019626 | 0.044393 | 0.459813 | 0.44486 | 0.437383 | 0.378037 | 0.324299 | 0.264486 | 0 | 0.003884 | 0.222832 | 3,644 | 96 | 224 | 37.958333 | 0.751766 | 0.135016 | 0 | 0.225 | 0 | 0.0625 | 0.270554 | 0.050988 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.0125 | 0.0875 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2716bd80798eed836bc91693f9cb5327a21a68d | 8,432 | py | Python | account/serializers.py | ianahart/devtrove | b743881a5a4b470ffb235bb2311b9a71952ad05b | [
"MIT"
] | null | null | null | account/serializers.py | ianahart/devtrove | b743881a5a4b470ffb235bb2311b9a71952ad05b | [
"MIT"
] | null | null | null | account/serializers.py | ianahart/devtrove | b743881a5a4b470ffb235bb2311b9a71952ad05b | [
"MIT"
] | null | null | null | from typing import OrderedDict
from rest_framework import serializers, status
from rest_framework_simplejwt.tokens import RefreshToken, TokenError
import re
import json
from language.serializers import LanguageSerializer
from .models import CustomUser
from language.models import Language
from .services.file_upload imp... | 32.183206 | 88 | 0.524075 | 768 | 8,432 | 5.645833 | 0.257813 | 0.027906 | 0.019373 | 0.03321 | 0.284825 | 0.207565 | 0.134686 | 0.118081 | 0.068266 | 0.068266 | 0 | 0.004951 | 0.377135 | 8,432 | 261 | 89 | 32.306513 | 0.82064 | 0 | 0 | 0.351598 | 0 | 0 | 0.10638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059361 | false | 0.050228 | 0.045662 | 0.018265 | 0.278539 | 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 |
c27e8e93ea1d01a810d64b7b6f7f7b1466774366 | 450 | py | Python | tests/pytorch/test_debug_transients.py | spcl/dace-onnx | ddd1120db96c900bd017b8b134dfce0bfb66d1bd | [
"BSD-3-Clause"
] | 30 | 2020-09-09T21:13:36.000Z | 2022-03-15T01:58:10.000Z | tests/pytorch/test_debug_transients.py | Shigangli/daceml | c2133c677d5174763e30cf2d98dcb3fd64059db3 | [
"BSD-3-Clause"
] | 83 | 2020-09-05T11:45:06.000Z | 2021-09-28T14:21:44.000Z | tests/pytorch/test_debug_transients.py | Shigangli/daceml | c2133c677d5174763e30cf2d98dcb3fd64059db3 | [
"BSD-3-Clause"
] | 7 | 2020-09-03T13:28:45.000Z | 2021-12-12T02:53:22.000Z | import torch
from torch import nn
from daceml.pytorch import dace_module
from daceml.testing import torch_tensors_close
@dace_module(debug_transients=True)
class Module(nn.Module):
def forward(self, x):
y = x + 3
return y * 5
def test_debug_transients():
module = Module()
x = torch.ra... | 18.75 | 54 | 0.664444 | 68 | 450 | 4.235294 | 0.382353 | 0.125 | 0.177083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020115 | 0.226667 | 450 | 23 | 55 | 19.565217 | 0.807471 | 0 | 0 | 0 | 0 | 0 | 0.015556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c28ddc08b2107777ba6d438f11ee3f02c42b20af | 6,578 | py | Python | haros/hpl/tests.py | mikaelarguedas/haros | cda8af75d7438b7f3988f98f8e8b41bd36b02ab6 | [
"MIT"
] | 1 | 2021-03-27T14:14:27.000Z | 2021-03-27T14:14:27.000Z | haros/hpl/tests.py | mikaelarguedas/haros | cda8af75d7438b7f3988f98f8e8b41bd36b02ab6 | [
"MIT"
] | 2 | 2021-04-07T09:45:06.000Z | 2021-04-07T13:55:50.000Z | haros/hpl/tests.py | mikaelarguedas/haros | cda8af75d7438b7f3988f98f8e8b41bd36b02ab6 | [
"MIT"
] | 1 | 2021-03-26T16:02:38.000Z | 2021-03-26T16:02:38.000Z | # -*- coding: utf-8 -*-
#Copyright (c) 2018 André Santos
#
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including without limitation the rights
#to use, copy, modify, me... | 29.9 | 83 | 0.540134 | 814 | 6,578 | 4.30344 | 0.292383 | 0.028261 | 0.04853 | 0.013703 | 0.211248 | 0.189552 | 0.171853 | 0.151299 | 0.135884 | 0.095347 | 0 | 0.018876 | 0.250988 | 6,578 | 219 | 84 | 30.03653 | 0.692105 | 0.207662 | 0 | 0.234848 | 0 | 0.007576 | 0.387039 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0 | null | null | 0.007576 | 0.045455 | null | null | 0.159091 | 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 |
c2975e0a0634522ec0995bddf19a4200d42bee34 | 1,183 | py | Python | doc/examples/citationparsing-urls.py | redhog/ferenda | 6935e26fdc63adc68b8e852292456b8d9155b1f7 | [
"BSD-2-Clause"
] | 18 | 2015-03-12T17:42:44.000Z | 2021-12-27T10:32:22.000Z | doc/examples/citationparsing-urls.py | redhog/ferenda | 6935e26fdc63adc68b8e852292456b8d9155b1f7 | [
"BSD-2-Clause"
] | 13 | 2016-01-27T10:19:07.000Z | 2021-12-13T20:24:36.000Z | doc/examples/citationparsing-urls.py | redhog/ferenda | 6935e26fdc63adc68b8e852292456b8d9155b1f7 | [
"BSD-2-Clause"
] | 6 | 2016-11-28T15:41:29.000Z | 2022-01-08T11:16:48.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from ferenda.compat import Mock
from ferenda.elements.html import elements_from_soup
from bs4 import BeautifulSoup
doc = Mock()
doc.body = elements_from_soup(BeautifulSoup("""<html>
<body>
URLs often appear like http://example.org/foo, in running text
</b... | 33.8 | 73 | 0.788673 | 166 | 1,183 | 5.548193 | 0.53012 | 0.047774 | 0.034745 | 0.039088 | 0.052117 | 0.052117 | 0 | 0 | 0 | 0 | 0 | 0.001942 | 0.129332 | 1,183 | 34 | 74 | 34.794118 | 0.892233 | 0.434489 | 0 | 0 | 0 | 0 | 0.155725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 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 |
c29b79e8db2932f5424ded43b4c8c8517a64eecf | 2,289 | py | Python | engine/sanity_e2e_test.py | adrnswanberg/deep_learning | b03bac7ab1a80b75ac9a99c4440b1dbf3212a7eb | [
"CNRI-Python"
] | 1 | 2021-04-17T17:29:11.000Z | 2021-04-17T17:29:11.000Z | engine/sanity_e2e_test.py | adrnswanberg/deep_learning | b03bac7ab1a80b75ac9a99c4440b1dbf3212a7eb | [
"CNRI-Python"
] | null | null | null | engine/sanity_e2e_test.py | adrnswanberg/deep_learning | b03bac7ab1a80b75ac9a99c4440b1dbf3212a7eb | [
"CNRI-Python"
] | null | null | null | """Tests that implementations in engine package are runnable."""
import unittest
import deep_learning.experimental.other_runners
from deep_learning.engine import environment_impl
from deep_learning.engine import policy_impl
from deep_learning.engine import qfunc_impl
from deep_learning.engine import runner_impl
cla... | 34.164179 | 79 | 0.748362 | 303 | 2,289 | 5.458746 | 0.231023 | 0.029625 | 0.03023 | 0.039299 | 0.736397 | 0.675937 | 0.6052 | 0.6052 | 0.6052 | 0.6052 | 0 | 0.017268 | 0.165138 | 2,289 | 66 | 80 | 34.681818 | 0.848247 | 0.135867 | 0 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145833 | false | 0 | 0.125 | 0 | 0.3125 | 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 |
c29cfdbecb2a8ba902970315f3d74995034565b9 | 2,668 | py | Python | test-graphs/Romania.py | zachdj/graph-search | 74e63d9b1613efb478cbe6a9973692094c1e4c9d | [
"MIT"
] | null | null | null | test-graphs/Romania.py | zachdj/graph-search | 74e63d9b1613efb478cbe6a9973692094c1e4c9d | [
"MIT"
] | null | null | null | test-graphs/Romania.py | zachdj/graph-search | 74e63d9b1613efb478cbe6a9973692094c1e4c9d | [
"MIT"
] | null | null | null | # Toy problem from the textbook: Romanian road map
from pygraphml import Graph, GraphMLParser
romania = Graph()
oradea = romania.add_node("Oradea")
zerind = romania.add_node("Zerind")
arad = romania.add_node("Arad")
sibiu = romania.add_node("Sibiu")
fagaras = romania.add_node("Fagaras")
timisoara = romania.add_node(... | 26.68 | 59 | 0.735007 | 376 | 2,668 | 5.101064 | 0.236702 | 0.224192 | 0.167883 | 0.020855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042984 | 0.11057 | 2,668 | 99 | 60 | 26.949495 | 0.765276 | 0.017991 | 0 | 0 | 0 | 0 | 0.11039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014286 | 0 | 0.014286 | 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 |
c2a6a7a23799fa357b73c7d82958aa330824d2a6 | 532 | py | Python | lib/logger.py | martin-tauber/thresholdMigration | c1e9b9b1cd9ed73b6b7e08da8dff176f04c53e28 | [
"Apache-2.0"
] | null | null | null | lib/logger.py | martin-tauber/thresholdMigration | c1e9b9b1cd9ed73b6b7e08da8dff176f04c53e28 | [
"Apache-2.0"
] | null | null | null | lib/logger.py | martin-tauber/thresholdMigration | c1e9b9b1cd9ed73b6b7e08da8dff176f04c53e28 | [
"Apache-2.0"
] | null | null | null | import logging
#-----------------------
# Logger
#-----------------------
class LoggerFactory():
def __init__(self):
pass
def getLogger(self, name):
logger = logging.getLogger(name)
ch = logging.StreamHandler()
ch.setLevel(logging.INFO)
formatter = logging.Formatter('%(... | 25.333333 | 93 | 0.575188 | 49 | 532 | 6.163265 | 0.489796 | 0.099338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227444 | 532 | 21 | 94 | 25.333333 | 0.734793 | 0.099624 | 0 | 0 | 0 | 0 | 0.109015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0.071429 | 0 | 0.357143 | 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 |
c2a9bd5a1794d0d83764ac5381e43666f245ab8c | 536 | py | Python | hypha/public/funds/migrations/0005_link_text_optional.py | maxpearl/hypha | e181ebadfb744aab34617bb766e746368d6f2de0 | [
"BSD-3-Clause"
] | 20 | 2021-04-08T16:38:49.000Z | 2022-02-09T20:05:57.000Z | hypha/public/funds/migrations/0005_link_text_optional.py | maxpearl/hypha | e181ebadfb744aab34617bb766e746368d6f2de0 | [
"BSD-3-Clause"
] | 1,098 | 2017-12-15T11:23:03.000Z | 2020-01-24T07:58:07.000Z | hypha/public/funds/migrations/0005_link_text_optional.py | maxpearl/hypha | e181ebadfb744aab34617bb766e746368d6f2de0 | [
"BSD-3-Clause"
] | 17 | 2020-02-07T14:55:54.000Z | 2021-04-04T19:32:38.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-25 13:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('public_funds', '0004_fundpagerelatedpage'),
]
operations = [
migrations.Alt... | 25.52381 | 125 | 0.647388 | 63 | 536 | 5.333333 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059113 | 0.242537 | 536 | 20 | 126 | 26.8 | 0.768473 | 0.126866 | 0 | 0 | 1 | 0 | 0.215054 | 0.051613 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 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 |
c2aa563f355b8d66367c1e67f77b54a582086754 | 456 | py | Python | settings.py | joeyespo/gistmail | fe1f58fa47364b62d0908d8170b08dca14a7c9ea | [
"MIT"
] | 6 | 2017-09-09T13:55:26.000Z | 2021-10-06T01:59:02.000Z | settings.py | joeyespo/gistmail.com | fe1f58fa47364b62d0908d8170b08dca14a7c9ea | [
"MIT"
] | 1 | 2020-10-01T12:21:28.000Z | 2020-10-01T12:21:28.000Z | settings.py | joeyespo/gistmail.com | fe1f58fa47364b62d0908d8170b08dca14a7c9ea | [
"MIT"
] | 5 | 2018-02-25T15:56:32.000Z | 2020-10-01T11:48:18.000Z | """
Default Configuration
Do NOT change the values here for risk of accidentally committing them.
Use the appropriate environment variable or create a local_config.py instead.
"""
import os
DEBUG = os.environ.get('DEBUG')
HOST = os.environ.get('HOST', 'localhost')
PORT = int(os.environ.get('PORT', 5000))
SPARKPOS... | 24 | 77 | 0.756579 | 69 | 456 | 4.869565 | 0.608696 | 0.160714 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0.118421 | 456 | 18 | 78 | 25.333333 | 0.825871 | 0.377193 | 0 | 0 | 0 | 0 | 0.221014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
c2b396069f70b167c1704d58630c34a36929ef92 | 515 | py | Python | PyCommons/itimer/cleanup.py | slafi/PyCommons | 874a713b61aea91ee867bc834efddeceffda318e | [
"MIT"
] | null | null | null | PyCommons/itimer/cleanup.py | slafi/PyCommons | 874a713b61aea91ee867bc834efddeceffda318e | [
"MIT"
] | null | null | null | PyCommons/itimer/cleanup.py | slafi/PyCommons | 874a713b61aea91ee867bc834efddeceffda318e | [
"MIT"
] | null | null | null |
class AllJobsTerminated(Exception):
"""This class is a special exception that is raised if a job assigned to
a thread should be properly terminated
"""
def __init__(self, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)
def signal_cleanup_handler(signum, frame):
"""... | 23.409091 | 89 | 0.675728 | 62 | 515 | 5.451613 | 0.596774 | 0.017751 | 0.071006 | 0.106509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246602 | 515 | 22 | 90 | 23.409091 | 0.871134 | 0.491262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2b8d2a4385a143da95c350153c3efa38f83eca4 | 984 | py | Python | publications/variety.py | mkoo21/rss-review-scraper | 4adde8586ce55d7bb211bcfbb9bcccd1edc8b6a5 | [
"BSD-3-Clause"
] | null | null | null | publications/variety.py | mkoo21/rss-review-scraper | 4adde8586ce55d7bb211bcfbb9bcccd1edc8b6a5 | [
"BSD-3-Clause"
] | 1 | 2021-06-01T23:47:57.000Z | 2021-06-01T23:47:57.000Z | publications/variety.py | mkoo21/rss-review-scraper | 4adde8586ce55d7bb211bcfbb9bcccd1edc8b6a5 | [
"BSD-3-Clause"
] | null | null | null | from . import YESTERDAY
from bs4 import BeautifulSoup
from datetime import datetime
import requests
def get_pubdate(article):
try:
return datetime.strptime(article.footer.time['datetime'], '%Y-%m-%dT%H:%M:%S%z')
except (AttributeError, KeyError):
return None
def STRINGIFY(article):
retur... | 30.75 | 93 | 0.63313 | 130 | 984 | 4.707692 | 0.5 | 0.052288 | 0.035948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006305 | 0.194106 | 984 | 31 | 94 | 31.741935 | 0.765448 | 0 | 0 | 0 | 0 | 0 | 0.159553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.173913 | 0.086957 | 0.608696 | 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 |
c2bfe45c315da858cde6389988e9260964b4113f | 14,687 | py | Python | scripts/run_EPIC.py | nithyanandan/MOFF | c2bd68b792a5269cfffe1d93b4710eae9ba8ca55 | [
"MIT"
] | 3 | 2019-12-11T07:14:10.000Z | 2020-11-07T19:25:32.000Z | scripts/run_EPIC.py | nithyanandan/MOFF | c2bd68b792a5269cfffe1d93b4710eae9ba8ca55 | [
"MIT"
] | 8 | 2015-08-20T19:46:29.000Z | 2015-09-19T01:31:43.000Z | scripts/run_EPIC.py | epic-astronomy/EPIC | c2bd68b792a5269cfffe1d93b4710eae9ba8ca55 | [
"MIT"
] | 1 | 2019-09-24T19:05:34.000Z | 2019-09-24T19:05:34.000Z | #!python
import sys, copy
import subprocess
import numpy as NP
import yaml, argparse, warnings
import h5py
import scipy.constants as FCNST
import progressbar as PGB
from astroutils import geometry as GEOM
from astroutils import DSP_modules as DSP
from astroutils import mathops as OPS
import epic
from epic import sim_o... | 45.330247 | 254 | 0.624974 | 1,835 | 14,687 | 4.849046 | 0.209264 | 0.010789 | 0.020229 | 0.008766 | 0.217465 | 0.160148 | 0.130254 | 0.105305 | 0.077995 | 0.077995 | 0 | 0.017231 | 0.241302 | 14,687 | 323 | 255 | 45.470588 | 0.781298 | 0.014571 | 0 | 0.095745 | 0 | 0 | 0.170469 | 0.002558 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056738 | null | null | 0.003546 | 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 |
c2c782128b784fd5e2b6f5505442449ccd2ef11d | 730 | py | Python | hgapp/characters/migrations/0031_auto_20210418_2033.py | shadytradesman/The-Contract-Website | d8b353064f91c53ebab951dec784a0a36caba260 | [
"Apache-2.0"
] | 6 | 2020-10-03T12:15:05.000Z | 2021-10-15T04:43:36.000Z | hgapp/characters/migrations/0031_auto_20210418_2033.py | shadytradesman/The-Contract-Website | d8b353064f91c53ebab951dec784a0a36caba260 | [
"Apache-2.0"
] | 99 | 2020-06-04T17:43:56.000Z | 2022-03-12T01:07:20.000Z | hgapp/characters/migrations/0031_auto_20210418_2033.py | shadytradesman/The-Contract-Website | d8b353064f91c53ebab951dec784a0a36caba260 | [
"Apache-2.0"
] | 9 | 2020-06-06T16:39:09.000Z | 2020-10-02T16:24:17.000Z | # Generated by Django 2.2.13 on 2021-04-18 20:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('characters', '0030_auto_20210415_1930'),
]
operations = [
migrations.AlterField(
model_name='character',
name='equi... | 38.421053 | 384 | 0.671233 | 101 | 730 | 4.80198 | 0.742574 | 0.016495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063903 | 0.206849 | 730 | 18 | 385 | 40.555556 | 0.773748 | 0.063014 | 0 | 0 | 1 | 0.083333 | 0.508798 | 0.033724 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2c95204ff72fee134ceb0d6ee3a63df0c125ffd | 1,813 | py | Python | atm/frames/coordinate_frame.py | moeyensj/atm | 0523600cf44423a1ef72ca40fff29bbfbe1281a8 | [
"BSD-3-Clause"
] | 10 | 2019-05-04T01:02:16.000Z | 2021-12-29T11:20:23.000Z | atm/frames/coordinate_frame.py | moeyensj/atm | 0523600cf44423a1ef72ca40fff29bbfbe1281a8 | [
"BSD-3-Clause"
] | 22 | 2019-04-26T03:17:24.000Z | 2021-03-03T23:38:02.000Z | atm/frames/coordinate_frame.py | moeyensj/atm | 0523600cf44423a1ef72ca40fff29bbfbe1281a8 | [
"BSD-3-Clause"
] | 2 | 2019-09-23T05:52:18.000Z | 2021-12-29T11:20:21.000Z | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
__all__ = ["CoordinateFrame"]
class CoordinateFrame(object):
"""
CoordinateFrame: Base coordinate frame class.
Parameters
----------
frameName : str
Name of the coordinate system.
coordinateRanges : dict
Dictionary with coordinate ... | 27.469697 | 79 | 0.663541 | 178 | 1,813 | 6.668539 | 0.421348 | 0.05476 | 0.040438 | 0.033698 | 0.10278 | 0.10278 | 0.10278 | 0 | 0 | 0 | 0 | 0.000748 | 0.262548 | 1,813 | 65 | 80 | 27.892308 | 0.887061 | 0.388307 | 0 | 0.222222 | 0 | 0 | 0.097308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.074074 | 0.444444 | 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 |
c2c9fe4e7834b66fe4447ee534a834ba756a7f6d | 3,156 | py | Python | gui/main/python/whoop/widgets/ValidateWidget.py | glam-imperial/Bornean-Gibbons-Call-Detection | 831739e2207ae0b72dbc4cfe5860d07403ae458a | [
"MIT"
] | null | null | null | gui/main/python/whoop/widgets/ValidateWidget.py | glam-imperial/Bornean-Gibbons-Call-Detection | 831739e2207ae0b72dbc4cfe5860d07403ae458a | [
"MIT"
] | null | null | null | gui/main/python/whoop/widgets/ValidateWidget.py | glam-imperial/Bornean-Gibbons-Call-Detection | 831739e2207ae0b72dbc4cfe5860d07403ae458a | [
"MIT"
] | null | null | null | import os
from PyQt5.QtWidgets import QFileDialog, QLineEdit, QShortcut
from PyQt5.QtCore import pyqtSignal, pyqtSlot
from PyQt5.QtGui import QKeySequence
from .ValidateView import ValidateView
class ValidateWidget(ValidateView):
moveSignal = pyqtSignal(str, bool)
def __init__(self):
super().__init... | 35.066667 | 121 | 0.61597 | 304 | 3,156 | 6.299342 | 0.358553 | 0.034465 | 0.054308 | 0.01671 | 0.167102 | 0.146214 | 0.116971 | 0.05953 | 0.05953 | 0.05953 | 0 | 0.003552 | 0.286439 | 3,156 | 89 | 122 | 35.460674 | 0.846803 | 0.12801 | 0 | 0.033333 | 0 | 0 | 0.016082 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.133333 | false | 0 | 0.083333 | 0 | 0.266667 | 0.083333 | 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 |
c2d05a21427e93eb678d3c615360c4efab49f375 | 8,065 | py | Python | tests/cbc/test.py | cbc-casper/py-evm | e1f1e85a4bf4983ae586143efe7e5e248745ed78 | [
"MIT"
] | 1 | 2018-12-09T11:56:53.000Z | 2018-12-09T11:56:53.000Z | tests/cbc/test.py | cbc-casper/py-evm | e1f1e85a4bf4983ae586143efe7e5e248745ed78 | [
"MIT"
] | null | null | null | tests/cbc/test.py | cbc-casper/py-evm | e1f1e85a4bf4983ae586143efe7e5e248745ed78 | [
"MIT"
] | 2 | 2018-12-09T15:58:11.000Z | 2020-09-29T07:10:21.000Z | from eth_keys import keys
from eth_utils import encode_hex, decode_hex
from eth_typing import Address
from eth import constants
from eth.chains.base import MiningChain
from eth.vm.forks.stretch import StretchVM
from eth.vm.forks.byzantium.transactions import ByzantiumTransaction
from eth.db.atomic import AtomicDB
from ... | 42.225131 | 159 | 0.655425 | 1,039 | 8,065 | 4.87103 | 0.134745 | 0.031614 | 0.017783 | 0.016598 | 0.667852 | 0.638609 | 0.638609 | 0.625568 | 0.614108 | 0.604624 | 0 | 0.019784 | 0.128828 | 8,065 | 190 | 160 | 42.447368 | 0.700541 | 0.059392 | 0 | 0.432927 | 0 | 0 | 0.228545 | 0.049379 | 0 | 0 | 0.000396 | 0 | 0 | 1 | 0.006098 | false | 0 | 0.085366 | 0.006098 | 0.097561 | 0.286585 | 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 |
c2d8298a4737b2ebcb1631ea035a4fd92c1f089e | 531 | py | Python | src/pyCovertAudio/EncoderFactory.py | bcarr092/pyCovertAudio | 02ddb61e110ad891429e9f57d3c42d800b69c9b5 | [
"Apache-2.0"
] | 4 | 2016-05-27T00:12:34.000Z | 2021-09-08T05:00:28.000Z | src/pyCovertAudio/EncoderFactory.py | bcarr092/pyCovertAudio | 02ddb61e110ad891429e9f57d3c42d800b69c9b5 | [
"Apache-2.0"
] | null | null | null | src/pyCovertAudio/EncoderFactory.py | bcarr092/pyCovertAudio | 02ddb61e110ad891429e9f57d3c42d800b69c9b5 | [
"Apache-2.0"
] | 2 | 2017-05-16T14:37:00.000Z | 2017-11-25T14:32:43.000Z | class EncoderFactory:
@staticmethod
def create(configuration):
try:
classInfo = configuration['class']
(moduleName, className) = classInfo.split('.')
module = __import__(moduleName)
classObject = getattr(module, className)
instance = \
... | 26.55 | 60 | 0.52354 | 40 | 531 | 6.85 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.384181 | 531 | 19 | 61 | 27.947368 | 0.83792 | 0 | 0 | 0 | 0 | 0 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | 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 |
c2d83ab5cc94a4856e59d27aba3819ffcd66e070 | 1,321 | py | Python | bin/license_finder_pip.py | nitram509/LicenseFinder | 848fd2e1837fcf427cfecd1f3aca9eaa60e26be1 | [
"MIT"
] | 1,039 | 2015-01-02T03:34:44.000Z | 2022-03-28T09:51:55.000Z | bin/license_finder_pip.py | nitram509/LicenseFinder | 848fd2e1837fcf427cfecd1f3aca9eaa60e26be1 | [
"MIT"
] | 525 | 2015-01-02T22:05:58.000Z | 2022-03-31T11:21:02.000Z | bin/license_finder_pip.py | nitram509/LicenseFinder | 848fd2e1837fcf427cfecd1f3aca9eaa60e26be1 | [
"MIT"
] | 274 | 2015-01-03T21:18:23.000Z | 2022-03-30T03:11:05.000Z | #!/usr/bin/env python
import json
import sys
try:
from pip._internal.req import parse_requirements
except ImportError:
from pip.req import parse_requirements
try:
# since pip 19.3
from pip._internal.network.session import PipSession
except ImportError:
try:
# since pip 10
f... | 30.022727 | 95 | 0.695685 | 173 | 1,321 | 5.213873 | 0.410405 | 0.054324 | 0.049889 | 0.05765 | 0.097561 | 0.097561 | 0.097561 | 0.097561 | 0 | 0 | 0 | 0.008637 | 0.211204 | 1,321 | 43 | 96 | 30.72093 | 0.857006 | 0.087055 | 0 | 0.225806 | 0 | 0 | 0.02579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.387097 | 0 | 0.387097 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c2da6ab18334718b9bd5b99f6b55ef631c389639 | 1,777 | py | Python | PCCModel.py | yydlmzyz/PCGCv2 | 21ec0871543a89ed9e7aa1a1efa58341cbc7ff6b | [
"Apache-2.0"
] | 13 | 2020-11-30T10:11:19.000Z | 2022-02-16T10:53:21.000Z | PCCModel.py | xtorker/PCGCv2 | 845e8ac02d9393ee129392c6f47504894c5870c3 | [
"Apache-2.0"
] | null | null | null | PCCModel.py | xtorker/PCGCv2 | 845e8ac02d9393ee129392c6f47504894c5870c3 | [
"Apache-2.0"
] | 2 | 2021-10-20T13:06:21.000Z | 2021-12-10T16:49:20.000Z | # 2020.02.13 compression network
import sys
import torch
import torch.nn as nn
import MinkowskiEngine as ME
import MinkowskiEngine.MinkowskiFunctional as MF
from models.AutoEncoder import Encoder, Decoder
from models.EntropyModel import EntropyBottleneck
class PCC(nn.Module):
"""
Encoder
"""
def __init__(self, ... | 31.175439 | 137 | 0.750703 | 251 | 1,777 | 5.091633 | 0.378486 | 0.018779 | 0.021127 | 0.037559 | 0.174491 | 0.158059 | 0.158059 | 0.158059 | 0.076682 | 0.076682 | 0 | 0.014351 | 0.13731 | 1,777 | 56 | 138 | 31.732143 | 0.819309 | 0.123241 | 0 | 0 | 0 | 0 | 0.049383 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.060606 | false | 0 | 0.212121 | 0 | 0.333333 | 0.060606 | 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 |
c2ea1d8b0be3cab42bafccda5f8ce5e6f3ac8219 | 4,206 | py | Python | Python/Machine Learning/Krish Nair/Feature Engineering/Outliers.py | omkarsutar1255/Python-Data | 169d0c54b23d9dd5a7f1aea41ab385121c3b3c63 | [
"CC-BY-3.0"
] | null | null | null | Python/Machine Learning/Krish Nair/Feature Engineering/Outliers.py | omkarsutar1255/Python-Data | 169d0c54b23d9dd5a7f1aea41ab385121c3b3c63 | [
"CC-BY-3.0"
] | null | null | null | Python/Machine Learning/Krish Nair/Feature Engineering/Outliers.py | omkarsutar1255/Python-Data | 169d0c54b23d9dd5a7f1aea41ab385121c3b3c63 | [
"CC-BY-3.0"
] | null | null | null | # todo: Discussion Related With Outliers And Impact On Machine Learning!!
# todo: Which Machine LEarning Models Are Sensitive To Outliers?
# 1. Naivye Bayes Classifier--- Not Sensitive To Outliers
# 2. SVM-------- Not Sensitive To Outliers
# 3. Linear Regression---------- Sensitive To Outlier... | 38.236364 | 119 | 0.722539 | 623 | 4,206 | 4.754414 | 0.29695 | 0.01688 | 0.022282 | 0.030385 | 0.202566 | 0.191087 | 0.160702 | 0.149224 | 0.083052 | 0.055368 | 0 | 0.027408 | 0.123871 | 4,206 | 109 | 120 | 38.587156 | 0.776391 | 0.431051 | 0 | 0.105263 | 0 | 0 | 0.162919 | 0.038184 | 0 | 0 | 0 | 0.009174 | 0 | 1 | 0 | false | 0.070175 | 0.105263 | 0 | 0.105263 | 0.122807 | 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 |
c2ea865e57255c70a3a1fa95792afb10e4c2734e | 19,748 | py | Python | vb2py/PythonCard/components/multicolumnlist.py | ceprio/xl_vb2py | 899fec0301140fd8bd313e8c80b3fa839b3f5ee4 | [
"BSD-3-Clause"
] | null | null | null | vb2py/PythonCard/components/multicolumnlist.py | ceprio/xl_vb2py | 899fec0301140fd8bd313e8c80b3fa839b3f5ee4 | [
"BSD-3-Clause"
] | null | null | null | vb2py/PythonCard/components/multicolumnlist.py | ceprio/xl_vb2py | 899fec0301140fd8bd313e8c80b3fa839b3f5ee4 | [
"BSD-3-Clause"
] | null | null | null |
"""
+__version__ = "$Revision: 1.28 $"
+__date__ = "$Date: 2004/11/07 18:13:13 $"
"""
import wx
from wx.lib.mixins.listctrl import ColumnSorterMixin, ListCtrlAutoWidthMixin
from types import TupleType, ListType, StringTypes, NoneType, IntType
from PythonCard import event, widget
class MultiColumnListEvent(event.Even... | 37.190207 | 108 | 0.570286 | 1,994 | 19,748 | 5.55667 | 0.199599 | 0.035199 | 0.008664 | 0.012996 | 0.343321 | 0.276805 | 0.23204 | 0.206137 | 0.198195 | 0.184928 | 0 | 0.013245 | 0.338566 | 19,748 | 530 | 109 | 37.260377 | 0.835018 | 0.119101 | 0 | 0.41623 | 0 | 0 | 0.034347 | 0.004725 | 0 | 0 | 0 | 0.001887 | 0 | 0 | null | null | 0.007853 | 0.015707 | 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 |
c2f519fcadf7464d0a1ebe43325b1048bd5ac246 | 6,235 | py | Python | imdb_STF.py | rikunert/Star_Trek_ratings | 2070046b710373dd3087da1bb3b6eb5df34b24c0 | [
"MIT"
] | 1 | 2019-03-16T19:13:14.000Z | 2019-03-16T19:13:14.000Z | imdb_STF.py | rikunert/Star_Trek_ratings | 2070046b710373dd3087da1bb3b6eb5df34b24c0 | [
"MIT"
] | null | null | null | imdb_STF.py | rikunert/Star_Trek_ratings | 2070046b710373dd3087da1bb3b6eb5df34b24c0 | [
"MIT"
] | 1 | 2021-05-05T08:02:28.000Z | 2021-05-05T08:02:28.000Z | # Please use Python version 2.7
# This script uses the IMDb API and web scraping in order to get Star Trek movie ratings and produce a scatter plot
# author: Richard Kunert (rikunert@gmail.com) May 2017
import imdb as imdb # to access imdb API
import pandas as pd # for data array handling
from BeautifulSoup import... | 52.838983 | 120 | 0.657899 | 961 | 6,235 | 4.174818 | 0.338189 | 0.033898 | 0.022682 | 0.028415 | 0.240528 | 0.164756 | 0.10319 | 0.096461 | 0.072034 | 0.039631 | 0 | 0.029406 | 0.176423 | 6,235 | 117 | 121 | 53.290598 | 0.751899 | 0.272815 | 0 | 0 | 0 | 0 | 0.219775 | 0.036017 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1125 | 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 |
c2f5d8d7db3c0ce68dc066bdbe827bb57dae1520 | 1,230 | py | Python | bluebottle/contact/migrations/0001_initial.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/contact/migrations/0001_initial.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/contact/migrations/0001_initial.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-05-23 13:25
from __future__ import unicode_literals
from django.db import migrations, models
import django_extensions.db.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Cre... | 41 | 182 | 0.64065 | 135 | 1,230 | 5.651852 | 0.503704 | 0.100917 | 0.070773 | 0.094364 | 0.133683 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02487 | 0.215447 | 1,230 | 29 | 183 | 42.413793 | 0.765803 | 0.054472 | 0 | 0 | 1 | 0 | 0.142241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2f8e20631fa223656c5391504310397a63bd053 | 564 | py | Python | mypy_drf_plugin/monkeypatch.py | rafales/djangorestframework-stubs | e73110c5e35f9aae22f19fed4f71dcb440bd3619 | [
"MIT"
] | 47 | 2018-11-23T19:54:53.000Z | 2020-11-09T22:21:55.000Z | mypy_drf_plugin/monkeypatch.py | rafales/djangorestframework-stubs | e73110c5e35f9aae22f19fed4f71dcb440bd3619 | [
"MIT"
] | 13 | 2019-02-26T09:09:54.000Z | 2019-04-07T17:12:28.000Z | mypy_drf_plugin/monkeypatch.py | rafales/djangorestframework-stubs | e73110c5e35f9aae22f19fed4f71dcb440bd3619 | [
"MIT"
] | 6 | 2019-02-26T08:24:09.000Z | 2019-06-24T08:53:56.000Z | from mypy.types import Instance, Type
from mypy_drf_plugin import helpers
def make_field_repr_not_return_any_generics():
from mypy import messages
# format_bare
old_format_bare = messages.MessageBuilder.format_bare
def patched_format_bare(self, typ: Type, verbosity: int = 0) -> str:
if isin... | 29.684211 | 83 | 0.746454 | 75 | 564 | 5.32 | 0.48 | 0.175439 | 0.065163 | 0.160401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00216 | 0.179078 | 564 | 18 | 84 | 31.333333 | 0.859611 | 0.019504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.6 | 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 |
c2f9d4049a30203270ea801c5d6dcd0610b2204c | 558 | py | Python | modules/intelligence-gathering/asm.py | decidedlygray/ptf | f17f50606fac5ef30f42c0b5e0fa57b58f696b99 | [
"FTL"
] | 4,391 | 2015-05-12T19:30:45.000Z | 2022-03-30T13:39:27.000Z | modules/intelligence-gathering/asm.py | decidedlygray/ptf | f17f50606fac5ef30f42c0b5e0fa57b58f696b99 | [
"FTL"
] | 340 | 2015-05-14T13:50:44.000Z | 2022-01-13T14:40:14.000Z | modules/intelligence-gathering/asm.py | decidedlygray/ptf | f17f50606fac5ef30f42c0b5e0fa57b58f696b99 | [
"FTL"
] | 1,290 | 2015-05-13T00:24:58.000Z | 2022-03-30T08:20:22.000Z | #!/usr/bin/env python
#######################################
# Installation module for AttackSurfaceMapper
#######################################
DESCRIPTION="This module will install/update Attack Surface Mapper (ASM) by Andreas Georgiou - A tool that aim to automate the recon process"
AUTHOR="Andrew Schwartz"
IN... | 29.368421 | 141 | 0.681004 | 65 | 558 | 5.769231 | 0.815385 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003945 | 0.091398 | 558 | 18 | 142 | 31 | 0.7357 | 0.114695 | 0 | 0 | 0 | 0.142857 | 0.702899 | 0.062802 | 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 |
6c088c13804a21f405eaeb640c56892b771cd5a1 | 5,481 | py | Python | BatyaGGPreprocessor.py | BatyaGG/BCI-controlled-UR-manipulator | e19d79b29ea63977bf780de5597537654ab40717 | [
"MIT"
] | 10 | 2018-06-23T12:18:34.000Z | 2021-03-11T07:04:21.000Z | BatyaGGPreprocessor.py | BatyaGG/BCI-controlled-UR-manipulator | e19d79b29ea63977bf780de5597537654ab40717 | [
"MIT"
] | null | null | null | BatyaGGPreprocessor.py | BatyaGG/BCI-controlled-UR-manipulator | e19d79b29ea63977bf780de5597537654ab40717 | [
"MIT"
] | 4 | 2018-08-13T07:43:00.000Z | 2020-12-24T01:30:21.000Z | import numpy as np
import scipy.signal as sign
from matplotlib import pyplot as plt
class BatyaGGPreprocessor:
def __init__(self, fs, bands=[8, 28]):
self.fs = fs
self.bands = bands
def fit_train(self, X, y):
X = detrend(X)
X = spatial_filter(X)
X = bad_channel_removal(... | 34.689873 | 104 | 0.606824 | 820 | 5,481 | 3.891463 | 0.230488 | 0.028204 | 0.019743 | 0.015669 | 0.208399 | 0.149483 | 0.116264 | 0.099969 | 0.083986 | 0.057035 | 0 | 0.018445 | 0.268017 | 5,481 | 158 | 105 | 34.689873 | 0.776919 | 0.041781 | 0 | 0.140625 | 0 | 0 | 0.071892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023438 | 0.132813 | null | null | 0.007813 | 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 |
6c0a84d5114d43f8deb07f76f3c7f9f05979fbea | 9,638 | py | Python | cps-tools/src/cps_tools/web.py | bopopescu/conpaas-2 | 0141a11b67b14757f445b44613ea79819b9c2eaf | [
"BSD-3-Clause"
] | 5 | 2016-02-24T14:44:03.000Z | 2020-11-29T19:18:40.000Z | cps-tools/src/cps_tools/web.py | bopopescu/conpaas-2 | 0141a11b67b14757f445b44613ea79819b9c2eaf | [
"BSD-3-Clause"
] | 25 | 2015-03-23T16:05:19.000Z | 2018-02-13T17:22:22.000Z | cps-tools/src/cps_tools/web.py | bopopescu/conpaas-2 | 0141a11b67b14757f445b44613ea79819b9c2eaf | [
"BSD-3-Clause"
] | 2 | 2015-11-06T15:16:09.000Z | 2020-07-26T03:18:03.000Z | import os
import sys
from .service import ServiceCmd
class WebCmd(ServiceCmd):
def __init__(self, web_parser, client, service_type="web",
description="Web server service sub-commands help"):
roles = [('backend', 1), ('proxy', 0), ('web', 0)] # (role name, default number)
Service... | 44.414747 | 105 | 0.584872 | 1,142 | 9,638 | 4.662872 | 0.127846 | 0.047324 | 0.042066 | 0.044695 | 0.577653 | 0.562254 | 0.51831 | 0.475681 | 0.453709 | 0.424413 | 0 | 0.002552 | 0.308778 | 9,638 | 216 | 106 | 44.62037 | 0.796758 | 0.022204 | 0 | 0.323529 | 0 | 0.005882 | 0.229446 | 0.004461 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017647 | null | null | 0.047059 | 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 |
6c101b8f40f9daee5581e577cabd27d9363bdeef | 140 | py | Python | a1_t1_7.py | koshikka/assingment1 | c22bcb684fcdde377250ffaf5d0579bfba47abc1 | [
"BSD-3-Clause"
] | null | null | null | a1_t1_7.py | koshikka/assingment1 | c22bcb684fcdde377250ffaf5d0579bfba47abc1 | [
"BSD-3-Clause"
] | null | null | null | a1_t1_7.py | koshikka/assingment1 | c22bcb684fcdde377250ffaf5d0579bfba47abc1 | [
"BSD-3-Clause"
] | null | null | null | def k_to_c(k):
c = (k - 273.15)
return c
k = 268.0
c = k_to_c(k)
print("kelvin of" + str(k) + "is" + str(c) + "in kelvin" )
| 11.666667 | 58 | 0.485714 | 29 | 140 | 2.206897 | 0.517241 | 0.15625 | 0.125 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092784 | 0.307143 | 140 | 11 | 59 | 12.727273 | 0.56701 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c1b5518566c4e49c18c6b8c2fd2c89dd43d1a8d | 9,282 | py | Python | collectors/nct/parser.py | almeidaah/collectors | f03096855b8d702969d22af0b20a4d6a0d820bd0 | [
"MIT"
] | 17 | 2016-06-28T21:20:21.000Z | 2022-03-02T16:31:25.000Z | collectors/nct/parser.py | almeidaah/collectors | f03096855b8d702969d22af0b20a4d6a0d820bd0 | [
"MIT"
] | 41 | 2016-04-04T10:36:45.000Z | 2017-04-24T10:04:57.000Z | collectors/nct/parser.py | kenferrara/collectors | e6c1f45df3a1ffd5d60dada1816484812eb51417 | [
"MIT"
] | 25 | 2016-05-18T09:27:42.000Z | 2021-03-21T14:44:31.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
import xmltodict
try:
from lxml import etree
except ImportError:
import xml.etree.ElementTree as etree
from .record import ... | 24.426316 | 71 | 0.632299 | 1,158 | 9,282 | 4.810017 | 0.137306 | 0.080431 | 0.131418 | 0.16158 | 0.592819 | 0.537522 | 0.477917 | 0.4386 | 0.4386 | 0.347935 | 0 | 0.00158 | 0.249838 | 9,282 | 379 | 72 | 24.490765 | 0.798363 | 0.020793 | 0 | 0.441781 | 0 | 0 | 0.241067 | 0.068262 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013699 | false | 0 | 0.034247 | 0 | 0.061644 | 0.003425 | 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 |
6c1ec3dd1c3c1e73c0634d3dc235aa5263232eee | 907 | py | Python | stat-warmup.py | saketsuman07/hacker-rank-solutions | 9055acf2e710b1a9caefe542b2b5e39b050e59fb | [
"MIT"
] | null | null | null | stat-warmup.py | saketsuman07/hacker-rank-solutions | 9055acf2e710b1a9caefe542b2b5e39b050e59fb | [
"MIT"
] | null | null | null | stat-warmup.py | saketsuman07/hacker-rank-solutions | 9055acf2e710b1a9caefe542b2b5e39b050e59fb | [
"MIT"
] | null | null | null | from math import sqrt
def calc_median(s):
q = len(s) // 2
if len(s) % 2 == 1:
return s[q]
else:
return float(s[q] + s[q-1]) / 2.0
def calc_mode(s):
most_frequent_idx = 0
d = {}
for i in s:
res = d.get(i) if d.has_key(i) else 0
d.update({ i: res + 1 })
if d.get(i) > d.get(most_frequent_idx):
most_fr... | 22.121951 | 76 | 0.611907 | 176 | 907 | 3.022727 | 0.301136 | 0.015038 | 0.112782 | 0.041353 | 0.12406 | 0.12406 | 0 | 0 | 0 | 0 | 0 | 0.03168 | 0.199559 | 907 | 40 | 77 | 22.675 | 0.701102 | 0 | 0 | 0 | 0 | 0 | 0.023153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028571 | null | null | 0.142857 | 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 |
6c24ab9625b75d8d1ebd3131f3cece1446c1ae8b | 730 | py | Python | scieldas/services/crates/api.py | autophagy/scieldas | 0159f45321e4edb2211010e096dfc09f5c103df0 | [
"MIT"
] | 6 | 2018-06-13T06:54:12.000Z | 2021-01-15T13:59:33.000Z | scieldas/services/crates/api.py | Autophagy/scieldas | 0159f45321e4edb2211010e096dfc09f5c103df0 | [
"MIT"
] | 1 | 2020-06-21T17:56:32.000Z | 2020-06-23T07:48:57.000Z | scieldas/services/crates/api.py | autophagy/scieldas | 0159f45321e4edb2211010e096dfc09f5c103df0 | [
"MIT"
] | null | null | null | from typing import Optional
from pydash import get
from scieldas.api import API
from scieldas.services import ServiceAPI
class Crates(ServiceAPI):
base_url = "https://crates.io/api/v1/crates/"
@ServiceAPI.call
def downloads(self, crate: str, api: API, version: str = None) -> Optional[int]:
if ve... | 30.416667 | 84 | 0.647945 | 95 | 730 | 4.894737 | 0.336842 | 0.116129 | 0.077419 | 0.096774 | 0.363441 | 0.197849 | 0.197849 | 0.197849 | 0.197849 | 0.197849 | 0 | 0.001786 | 0.232877 | 730 | 23 | 85 | 31.73913 | 0.828571 | 0 | 0 | 0.222222 | 0 | 0 | 0.110959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6c2fe050f0832dc7fa6270264f1cfaf89d7955bb | 742 | py | Python | monetio/models/hrrr_smoke.py | mebruckner/monetio | e5229ca5b48d3ce825fb48337393118ca01ba4f0 | [
"MIT"
] | 1 | 2022-01-15T21:03:28.000Z | 2022-01-15T21:03:28.000Z | monetio/models/hrrr_smoke.py | mebruckner/monetio | e5229ca5b48d3ce825fb48337393118ca01ba4f0 | [
"MIT"
] | null | null | null | monetio/models/hrrr_smoke.py | mebruckner/monetio | e5229ca5b48d3ce825fb48337393118ca01ba4f0 | [
"MIT"
] | null | null | null | # HRRR-Smoke READER
import xarray as xr
def open_dataset(fname):
''' Open a single dataset from HRRR-Smoke output, following conversion
to netCDF from grib2.
Parameters
----------
fname: string
Filename to be opened
Returns
-------
... | 20.611111 | 75 | 0.553908 | 81 | 742 | 5.012346 | 0.481481 | 0.066502 | 0.078818 | 0.098522 | 0.310345 | 0.182266 | 0.182266 | 0.182266 | 0.182266 | 0 | 0 | 0.004115 | 0.345013 | 742 | 35 | 76 | 21.2 | 0.831276 | 0.528302 | 0 | 0.285714 | 0 | 0 | 0.020305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c36412836e5222f408b80474c483efd4e01e4c0 | 2,216 | py | Python | xform_python/xform_python/processor/processor.py | mgharbi/xform_recipes | 69404155f07860a7c754670dcb61c5ce03d88809 | [
"MIT"
] | 9 | 2016-01-11T16:58:42.000Z | 2020-06-11T02:05:57.000Z | xform_python/xform_python/processor/processor.py | mgharbi/xform_recipes | 69404155f07860a7c754670dcb61c5ce03d88809 | [
"MIT"
] | 1 | 2018-05-04T07:09:03.000Z | 2018-05-04T07:09:03.000Z | xform_python/xform_python/processor/processor.py | mgharbi/xform_recipes | 69404155f07860a7c754670dcb61c5ce03d88809 | [
"MIT"
] | 5 | 2016-04-03T09:09:57.000Z | 2020-05-04T10:09:08.000Z | # ----------------------------------------------------------------------------
# File: processor.py
# Author: Michael Gharbi <gharbi@mit.edu>
# Created: 2015-02-11
# ----------------------------------------------------------------------------
#
#
#
# -----------------------------------------------------------------... | 29.546667 | 83 | 0.531588 | 224 | 2,216 | 5.165179 | 0.46875 | 0.069144 | 0.034572 | 0.039758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.290162 | 2,216 | 74 | 84 | 29.945946 | 0.728544 | 0.326264 | 0 | 0 | 0 | 0 | 0.006374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.342105 | 0 | 0.447368 | 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 |
6c3dcb2553360e58a9d27fb0add96733410dbb5b | 3,759 | py | Python | salt/modules/runit.py | jkur/salt | 3e62675550f9869d550d7787800270e632955d2f | [
"Apache-2.0"
] | 3 | 2016-09-03T06:26:42.000Z | 2019-06-30T13:04:53.000Z | salt/modules/runit.py | jkur/salt | 3e62675550f9869d550d7787800270e632955d2f | [
"Apache-2.0"
] | 16 | 2015-11-18T00:44:03.000Z | 2018-10-29T20:48:27.000Z | salt/modules/runit.py | jkur/salt | 3e62675550f9869d550d7787800270e632955d2f | [
"Apache-2.0"
] | 1 | 2018-04-19T16:57:27.000Z | 2018-04-19T16:57:27.000Z | # -*- coding: utf-8 -*-
'''
runit service module
This module is compatible with the :mod:`service <salt.states.service>` states,
so it can be used to maintain services using the ``provider`` argument:
.. code-block:: yaml
myservice:
service:
- running
- provider: runit
Note that the ``enab... | 19.276923 | 81 | 0.613993 | 472 | 3,759 | 4.741525 | 0.25 | 0.044236 | 0.062556 | 0.084897 | 0.419571 | 0.409741 | 0.409741 | 0.322163 | 0.322163 | 0.322163 | 0 | 0.003933 | 0.255919 | 3,759 | 194 | 82 | 19.376289 | 0.79621 | 0.447725 | 0 | 0.166667 | 0 | 0 | 0.157716 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203704 | false | 0 | 0.074074 | 0 | 0.462963 | 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 |
6c3e0826df07d3ba047295a3ec2951fec189ad6c | 2,750 | py | Python | bin/python/mq_strains2ref_peptides.py | reid-wagner/proteomics-pipelines | 2214c2ad4c14fabcb50a3c0800e9d383ce73df3d | [
"MIT"
] | 2 | 2018-09-06T14:05:59.000Z | 2022-02-18T10:09:06.000Z | bin/python/mq_strains2ref_peptides.py | reid-wagner/proteomics-pipelines | 2214c2ad4c14fabcb50a3c0800e9d383ce73df3d | [
"MIT"
] | 7 | 2018-09-30T00:49:04.000Z | 2022-01-27T07:55:26.000Z | bin/python/mq_strains2ref_peptides.py | reid-wagner/proteomics-pipelines | 2214c2ad4c14fabcb50a3c0800e9d383ce73df3d | [
"MIT"
] | 3 | 2019-10-29T12:20:45.000Z | 2021-10-06T14:38:43.000Z | #!/usr/bin/env python3
import pandas as pd
import sys
import multiprocessing
import numpy as np
import pandas as pd
import sys
import importlib.machinery
import Bio; from Bio import SeqIO
import sequtils
import shutil
import algo
import os
import subprocess
from collections import defaultdict
import json
from Bio.SeqR... | 32.738095 | 151 | 0.731636 | 369 | 2,750 | 5.330623 | 0.355014 | 0.017794 | 0.021352 | 0.016268 | 0.115913 | 0.089476 | 0.089476 | 0.057956 | 0.057956 | 0.057956 | 0 | 0.011854 | 0.141091 | 2,750 | 83 | 152 | 33.13253 | 0.820914 | 0.032727 | 0 | 0.132353 | 0 | 0 | 0.13597 | 0.054614 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.411765 | 0 | 0.411765 | 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 |
6c42dcbae3fa776fac08341779fa23e4a9bb5803 | 3,847 | py | Python | upload/tasks/import_gene_coverage_task.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 5 | 2021-01-14T03:34:42.000Z | 2022-03-07T15:34:18.000Z | upload/tasks/import_gene_coverage_task.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 551 | 2020-10-19T00:02:38.000Z | 2022-03-30T02:18:22.000Z | upload/tasks/import_gene_coverage_task.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | null | null | null | import logging
import re
import pandas as pd
from genes.canonical_transcripts.canonical_transcript_manager import CanonicalTranscriptManager
from genes.gene_matching import GeneSymbolMatcher
from genes.models import GeneCoverageCollection, AnnotationConsortium, TranscriptVersion
from library.file_utils import name_fr... | 45.797619 | 116 | 0.68131 | 406 | 3,847 | 6.182266 | 0.369458 | 0.066932 | 0.061355 | 0.03506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002779 | 0.251625 | 3,847 | 83 | 117 | 46.349398 | 0.869052 | 0.052508 | 0 | 0.136364 | 0 | 0 | 0.032967 | 0.006868 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.045455 | false | 0.015152 | 0.242424 | 0 | 0.378788 | 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 |
6c498de3969d9052d365d4a7f890e48076097db8 | 1,007 | py | Python | data_admin/menu.py | love1900905/frepple-data-admin | bf5115681005975e83343377b202ba598ddc7055 | [
"MIT"
] | 7 | 2021-04-24T16:26:57.000Z | 2021-09-04T00:31:45.000Z | data_admin/menu.py | love1900905/frepple-data-admin | bf5115681005975e83343377b202ba598ddc7055 | [
"MIT"
] | null | null | null | data_admin/menu.py | love1900905/frepple-data-admin | bf5115681005975e83343377b202ba598ddc7055 | [
"MIT"
] | 4 | 2021-04-16T14:25:07.000Z | 2022-02-04T12:32:42.000Z | from importlib import import_module
from django.conf import settings
from django.utils.translation import gettext_lazy as _
from .common.menus import Menu
# Create the navigation menu.
# This is the one and only menu object in the application.
menu = Menu()
# Add our default topics.
menu.addGroup("admin", label=_("... | 32.483871 | 67 | 0.688183 | 151 | 1,007 | 4.543046 | 0.556291 | 0.021866 | 0.034985 | 0.040816 | 0.061224 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0.01269 | 0.217478 | 1,007 | 30 | 68 | 33.566667 | 0.857868 | 0.366435 | 0 | 0 | 0 | 0 | 0.130366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.352941 | 0 | 0.352941 | 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 |
6c4afeeb142d20044037e69777d637c88b455cfb | 487 | py | Python | movie/movieapp/models.py | pedrogiudici/MovieApp-FinalProject-Harvard | 2ac03bb169b093b0ce46e8ea4afa9d76a297e1db | [
"MIT"
] | null | null | null | movie/movieapp/models.py | pedrogiudici/MovieApp-FinalProject-Harvard | 2ac03bb169b093b0ce46e8ea4afa9d76a297e1db | [
"MIT"
] | null | null | null | movie/movieapp/models.py | pedrogiudici/MovieApp-FinalProject-Harvard | 2ac03bb169b093b0ce46e8ea4afa9d76a297e1db | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class User(AbstractUser):
watchlist = models.TextField(blank=True)
class Comment(models.Model):
rate = models.IntegerField()
comment = models.TextField()
timestamp = models.DateTimeField(auto_... | 27.055556 | 88 | 0.759754 | 57 | 487 | 6.438596 | 0.578947 | 0.054496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13963 | 487 | 18 | 88 | 27.055556 | 0.875895 | 0.049281 | 0 | 0 | 0 | 0 | 0.028139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6c4c3bc8971f1e3a53639d70061d76549fb1759f | 671 | py | Python | domaino/players/behaviors/fake_start.py | 2kodevs/domaino | b809bbf91c3acb8b576ad1d974e824feae646a33 | [
"MIT"
] | 1 | 2021-09-16T12:58:24.000Z | 2021-09-16T12:58:24.000Z | domaino/players/behaviors/fake_start.py | 2kodevs/domaino | b809bbf91c3acb8b576ad1d974e824feae646a33 | [
"MIT"
] | 3 | 2021-09-08T23:20:20.000Z | 2022-01-30T22:45:44.000Z | src/games/domino/module/players/behaviors/fake_start.py | 2kodevs/cooperAItive | 910c4c1cb356e3c404ce4b9a64c812cab3333742 | [
"MIT"
] | null | null | null | from ..player import BasePlayer
from ..utils import count_min
class FakeStart(BasePlayer):
''' Select the pieces that have a number that is unique in the hand
'''
def __init__(self, name):
super().__init__(f"FakeStart::{name}")
def filter(self, valids=None):
valids = super().filter(val... | 29.173913 | 73 | 0.543964 | 82 | 671 | 4.304878 | 0.54878 | 0.045326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004545 | 0.344262 | 671 | 22 | 74 | 30.5 | 0.797727 | 0.09389 | 0 | 0 | 0 | 0 | 0.041946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6c4f72d7f36b78100610f1063e4d5d4958b3e79a | 1,774 | py | Python | src/apps/blog/models.py | StaticallyTypedRice/binarytwig.com | de2db1fd9dc00bb163e61e0ddd54e191ec3f4b18 | [
"MIT-0",
"CC-BY-4.0",
"MIT"
] | null | null | null | src/apps/blog/models.py | StaticallyTypedRice/binarytwig.com | de2db1fd9dc00bb163e61e0ddd54e191ec3f4b18 | [
"MIT-0",
"CC-BY-4.0",
"MIT"
] | null | null | null | src/apps/blog/models.py | StaticallyTypedRice/binarytwig.com | de2db1fd9dc00bb163e61e0ddd54e191ec3f4b18 | [
"MIT-0",
"CC-BY-4.0",
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
def article_file_path(instance, filename):
'''Returns the path of an associated article file.'''
return 'articles/{0}/{1}'.format(instance.article, filename)
class Article(models.Model):
'''The main model for blog posts.'''
title = models.TextF... | 41.255814 | 100 | 0.677001 | 223 | 1,774 | 5.201794 | 0.327354 | 0.048276 | 0.062069 | 0.082759 | 0.496552 | 0.467241 | 0.467241 | 0.467241 | 0.467241 | 0.424138 | 0 | 0.011577 | 0.22097 | 1,774 | 42 | 101 | 42.238095 | 0.827786 | 0.081172 | 0 | 0.307692 | 0 | 0 | 0.131351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.038462 | 0.076923 | 0.807692 | 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 |
6c510d07ec22e1cb1a9ec766a6adb20a439381a6 | 2,519 | py | Python | run/scripts/validate_infile.py | loriglenwinkel/TargetOrtho | 33b85f6bbdff3438b4f3496c317b0a84442e4838 | [
"MIT"
] | 3 | 2017-03-13T14:47:12.000Z | 2018-05-28T03:48:58.000Z | run/scripts/validate_infile.py | loriglenwinkel/TargetOrtho | 33b85f6bbdff3438b4f3496c317b0a84442e4838 | [
"MIT"
] | null | null | null | run/scripts/validate_infile.py | loriglenwinkel/TargetOrtho | 33b85f6bbdff3438b4f3496c317b0a84442e4838 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#Author: Lori Glenwinkel
# CREATE DATE: 2014
# DESCRIPTION:valides motif input file to ensure log-odds PSSM in MEME v4 format is used.
import os
import sys
def validate(infile,TargetOrtho_path,jobID):
print 'validating motif input'
try:
lines=file(infile,'r').readlines()
line... | 36.507246 | 178 | 0.512505 | 273 | 2,519 | 4.681319 | 0.369963 | 0.056338 | 0.025039 | 0.056338 | 0.167449 | 0.137715 | 0.045383 | 0 | 0 | 0 | 0 | 0.02 | 0.384676 | 2,519 | 68 | 179 | 37.044118 | 0.804516 | 0.069075 | 0 | 0.226415 | 0 | 0.037736 | 0.170586 | 0.011116 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037736 | null | null | 0.132075 | 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 |
6c5152b3f7e29454d0c79ff30b66fd8a3444aec7 | 1,080 | py | Python | ufs_tools/file_search.py | weijia/ufs-tools | 16bcfcb85ce84936875aede7beb130dbec04759a | [
"0BSD"
] | null | null | null | ufs_tools/file_search.py | weijia/ufs-tools | 16bcfcb85ce84936875aede7beb130dbec04759a | [
"0BSD"
] | 1 | 2021-03-25T21:56:37.000Z | 2021-03-25T21:56:37.000Z | ufs_tools/file_search.py | weijia/ufs-tools | 16bcfcb85ce84936875aede7beb130dbec04759a | [
"0BSD"
] | null | null | null | import os
import re
from .app_tools import get_executable_folder
def find_filename_in_folder(root_path, filename):
for dirpath, dirnames, filenames in os.walk(root_path):
if filename in filenames:
print('find file:', os.path.join(dirpath, filename))
return os.path.join(dirpath, fil... | 31.764706 | 81 | 0.689815 | 145 | 1,080 | 4.875862 | 0.255172 | 0.084866 | 0.080622 | 0.072136 | 0.38331 | 0.285714 | 0.110325 | 0.110325 | 0 | 0 | 0 | 0 | 0.227778 | 1,080 | 33 | 82 | 32.727273 | 0.847722 | 0.044444 | 0 | 0.086957 | 0 | 0 | 0.04276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.130435 | 0.086957 | 0.565217 | 0.130435 | 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 |
6c55f49d7acf1f286c48e059bbd8cacfb2499284 | 4,043 | py | Python | lr.py | isnowfy/ranklogistic | 19fb90414d3ef2a7c056f5be0f15537395b7207b | [
"MIT"
] | 19 | 2016-04-24T16:03:46.000Z | 2020-10-12T07:31:43.000Z | lr.py | isnowfy/ranklogistics | 19fb90414d3ef2a7c056f5be0f15537395b7207b | [
"MIT"
] | null | null | null | lr.py | isnowfy/ranklogistics | 19fb90414d3ef2a7c056f5be0f15537395b7207b | [
"MIT"
] | 7 | 2016-07-01T13:50:43.000Z | 2019-03-18T09:58:34.000Z | # -*- coding: utf-8 -*-
import math
import os
import sys
import cal_auc
EPS = 1e-15
MAX_EXP_NUM = 50
MIN_SIGMOID = 1e-15
MAX_ITER = 10
def sign(x):
return (x > EPS) - (x < -EPS)
def safe_exp(x):
return math.exp(max(min(x, MAX_EXP_NUM), -MAX_EXP_NUM))
def sigmoid(z):
return 1.0 / (1.0 + safe_exp(-1 ... | 24.95679 | 78 | 0.465249 | 638 | 4,043 | 2.887147 | 0.184953 | 0.098806 | 0.030402 | 0.045603 | 0.238328 | 0.184582 | 0.119978 | 0.086319 | 0.072747 | 0.072747 | 0 | 0.045383 | 0.367796 | 4,043 | 161 | 79 | 25.111801 | 0.675274 | 0.005194 | 0 | 0.177778 | 0 | 0 | 0.064925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02963 | null | null | 0.074074 | 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 |
6c58997cdec5a87f68f0c0d8f3d4cf0c672f0264 | 12,258 | py | Python | setupfreesurfer.py | AndrewJSchoen/setupfreesurfer | 11579327c2f4e63b6fe5b4bc18dd1de79e171c92 | [
"MIT"
] | null | null | null | setupfreesurfer.py | AndrewJSchoen/setupfreesurfer | 11579327c2f4e63b6fe5b4bc18dd1de79e171c92 | [
"MIT"
] | null | null | null | setupfreesurfer.py | AndrewJSchoen/setupfreesurfer | 11579327c2f4e63b6fe5b4bc18dd1de79e171c92 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import os
import shutil
import subprocess
import math
import socket
import string
from docopt.docopt import docopt
from palantir import palantir
Version = "0.2"
doc = """
Setup FreeSurfer.
Usage:
setupfreesurfer [options] (--data_dir <dir> | -d <dir>) (--code_dir <dir> | -c <dir>) [... | 37.486239 | 238 | 0.594958 | 1,388 | 12,258 | 5.04683 | 0.179395 | 0.036117 | 0.056531 | 0.084797 | 0.300928 | 0.223412 | 0.093076 | 0.08137 | 0.063383 | 0.046824 | 0 | 0.003066 | 0.255099 | 12,258 | 326 | 239 | 37.601227 | 0.7641 | 0.023984 | 0 | 0.093496 | 0 | 0.020325 | 0.352604 | 0.075694 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004065 | 0.036585 | null | null | 0.012195 | 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 |
6c59e74e810af5b9b3a9ff98c8b6d35cf8d074ae | 3,114 | py | Python | src/abaqus/PredefinedField/InitialState.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/PredefinedField/InitialState.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/PredefinedField/InitialState.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | from abaqusConstants import *
from .PredefinedField import PredefinedField
from ..Assembly.PartInstanceArray import PartInstanceArray
class InitialState(PredefinedField):
"""The InitialState object stores the data for an initial state predefined field.
The InitialState object is derived from the PredefinedFie... | 36.635294 | 105 | 0.64483 | 333 | 3,114 | 5.957958 | 0.276276 | 0.032258 | 0.072581 | 0.051411 | 0.586694 | 0.586694 | 0.586694 | 0.556452 | 0.556452 | 0.556452 | 0 | 0 | 0.307643 | 3,114 | 84 | 106 | 37.071429 | 0.920223 | 0.652216 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6c5a33c0392ce1dc12f1127d65f1dfd86c281ab5 | 778 | py | Python | language_demos/read_delimited_file.py | t4d-classes/python_03222021_afternoon | c954702cf55c0f9d919ac32404a29830601883ba | [
"MIT"
] | null | null | null | language_demos/read_delimited_file.py | t4d-classes/python_03222021_afternoon | c954702cf55c0f9d919ac32404a29830601883ba | [
"MIT"
] | null | null | null | language_demos/read_delimited_file.py | t4d-classes/python_03222021_afternoon | c954702cf55c0f9d919ac32404a29830601883ba | [
"MIT"
] | null | null | null |
def read_delimited_lines(file_handle, delimiter='|',
omit_delimiter=False, read_size=4):
delimited_line = ""
data = file_handle.read(read_size)
while data:
delimiter_index = data.find(delimiter)
if delimiter_index < 0:
delimited_line += data
... | 25.933333 | 78 | 0.600257 | 89 | 778 | 4.955056 | 0.359551 | 0.206349 | 0.154195 | 0.081633 | 0.258503 | 0.117914 | 0 | 0 | 0 | 0 | 0 | 0.009381 | 0.31491 | 778 | 29 | 79 | 26.827586 | 0.818011 | 0 | 0 | 0.105263 | 0 | 0 | 0.014157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.052632 | 0.052632 | 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 |
6c66c0bd2a0c11bc9d663b281b7253f76d3af123 | 1,236 | py | Python | pypheus/etc/testx.py | xod442/pypheus | 11988d7c0efe2772bca80c2d40a71cc8ba707153 | [
"Apache-2.0"
] | null | null | null | pypheus/etc/testx.py | xod442/pypheus | 11988d7c0efe2772bca80c2d40a71cc8ba707153 | [
"Apache-2.0"
] | null | null | null | pypheus/etc/testx.py | xod442/pypheus | 11988d7c0efe2772bca80c2d40a71cc8ba707153 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# coding=utf-8
# author: @netwookie.
# -*- coding: utf-8 -*-
"""
This is a test file that tests the API
"""
import urllib3
urllib3.disable_warnings()
from pypheus.network import Network
from pypheus.storage import Storage
from pypheus.logs import Logs
from pypheus.monitoring import Monitoring
imp... | 20.949153 | 56 | 0.727346 | 171 | 1,236 | 5.116959 | 0.350877 | 0.123429 | 0.104 | 0.109714 | 0.203429 | 0.148571 | 0 | 0 | 0 | 0 | 0 | 0.016304 | 0.106796 | 1,236 | 58 | 57 | 21.310345 | 0.776268 | 0.143204 | 0 | 0.297297 | 0 | 0 | 0.030983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.135135 | 0.189189 | 0 | 0.189189 | 0.297297 | 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 |
6c69c75609cefacdb81544cc11ed41b1ec83ffce | 739 | py | Python | accelerator/tests/test_site_program_authorization.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | 6 | 2017-06-14T19:34:01.000Z | 2020-03-08T07:16:59.000Z | accelerator/tests/test_site_program_authorization.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | 160 | 2017-06-20T17:12:13.000Z | 2022-03-30T13:53:12.000Z | accelerator/tests/test_site_program_authorization.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | null | null | null | # MIT License
# Copyright (c) 2017 MassChallenge, Inc.
from __future__ import unicode_literals
from django.test import TestCase
from accelerator.tests.factories import SiteProgramAuthorizationFactory
class TestSiteProgramAuthorization(TestCase):
def test_str(self):
site_program_authorization = SitePro... | 30.791667 | 71 | 0.738836 | 77 | 739 | 6.805195 | 0.467532 | 0.146947 | 0.320611 | 0.122137 | 0.270992 | 0.215649 | 0.148855 | 0 | 0 | 0 | 0 | 0.006861 | 0.211096 | 739 | 23 | 72 | 32.130435 | 0.891938 | 0.067659 | 0 | 0.133333 | 0 | 0 | 0.023324 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.333333 | 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 |
6c6ad9aef296d038fd66f5f5a40c5b6b805cde8b | 248 | py | Python | Wizard/serializers.py | ytpmeeb/UOFT-TACO | 12efb7bfc56852443e0541ffcd1e745c677aae21 | [
"MIT"
] | 3 | 2022-02-09T09:29:42.000Z | 2022-02-19T21:24:42.000Z | Wizard/serializers.py | ytpmeeb/UOFT-TACO | 12efb7bfc56852443e0541ffcd1e745c677aae21 | [
"MIT"
] | null | null | null | Wizard/serializers.py | ytpmeeb/UOFT-TACO | 12efb7bfc56852443e0541ffcd1e745c677aae21 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Spell
class SpellSerializer(serializers.ModelSerializer):
class Meta:
fields =(
'id',
'name',
'description',
)
model = Spell | 22.545455 | 51 | 0.580645 | 21 | 248 | 6.809524 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.342742 | 248 | 11 | 52 | 22.545455 | 0.877301 | 0 | 0 | 0 | 0 | 0 | 0.068273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c6b068de3d8cc1cb277a55de8c343c0efa9c02a | 2,214 | py | Python | Python/distinct-subsequences.py | RideGreg/LeetCode | b70818b1e6947bf29519a24f78816e022ebab59e | [
"MIT"
] | 1 | 2022-01-30T06:55:28.000Z | 2022-01-30T06:55:28.000Z | Python/distinct-subsequences.py | RideGreg/LeetCode | b70818b1e6947bf29519a24f78816e022ebab59e | [
"MIT"
] | null | null | null | Python/distinct-subsequences.py | RideGreg/LeetCode | b70818b1e6947bf29519a24f78816e022ebab59e | [
"MIT"
] | 1 | 2021-12-31T03:56:39.000Z | 2021-12-31T03:56:39.000Z | # Time: O(n^2)
# Space: O(n)
#
# Given a string S and a string T, count the number of distinct subsequences of T in S.
#
# A subsequence of a string is a new string which is formed from the original string
# by deleting some (can be none) of the characters without disturbing the relative positions
# of the remaining c... | 28.025316 | 94 | 0.494128 | 357 | 2,214 | 3.02521 | 0.29972 | 0.012963 | 0.013889 | 0.018519 | 0.057407 | 0.02037 | 0.02037 | 0.02037 | 0.02037 | 0 | 0 | 0.033779 | 0.358175 | 2,214 | 78 | 95 | 28.384615 | 0.726249 | 0.264679 | 0 | 0 | 0 | 0 | 0.014433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.023256 | 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 |
6c73a71584d2dafef9834f255b094b1548edc37a | 2,159 | py | Python | loaner/web_app/backend/api/messages/chrome_message.py | McDiesel/loaner | dcf5fa640ee9059a814650fa4432fa1116df78e9 | [
"Apache-2.0"
] | null | null | null | loaner/web_app/backend/api/messages/chrome_message.py | McDiesel/loaner | dcf5fa640ee9059a814650fa4432fa1116df78e9 | [
"Apache-2.0"
] | null | null | null | loaner/web_app/backend/api/messages/chrome_message.py | McDiesel/loaner | dcf5fa640ee9059a814650fa4432fa1116df78e9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 32.223881 | 80 | 0.755906 | 295 | 2,159 | 5.447458 | 0.416949 | 0.037337 | 0.046671 | 0.019913 | 0.138146 | 0.103298 | 0.103298 | 0.103298 | 0.103298 | 0.103298 | 0 | 0.010017 | 0.16767 | 2,159 | 66 | 81 | 32.712121 | 0.884252 | 0.646596 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6c74b95a2f66a0a94c4fa75d909cc1024ffa0b68 | 7,021 | py | Python | demos/test_process_dic.py | VibroSim/closure_measurements | 3c5560db85e0e9e276aaccc06c49c63224dbddca | [
"MIT"
] | null | null | null | demos/test_process_dic.py | VibroSim/closure_measurements | 3c5560db85e0e9e276aaccc06c49c63224dbddca | [
"MIT"
] | null | null | null | demos/test_process_dic.py | VibroSim/closure_measurements | 3c5560db85e0e9e276aaccc06c49c63224dbddca | [
"MIT"
] | null | null | null | import sys
import os
import multiprocessing
import numpy as np
from matplotlib import pyplot as pl
from function_as_script import scriptify
from closure_measurements.process_dic import load_dgs
from closure_measurements.process_dic import Calc_CTODs as calc_CTODs_function
from closure_measurements.process_dic impor... | 45.296774 | 491 | 0.79604 | 915 | 7,021 | 5.737705 | 0.265574 | 0.055048 | 0.08419 | 0.103619 | 0.496762 | 0.489524 | 0.407619 | 0.362667 | 0.354095 | 0.354095 | 0 | 0.028766 | 0.143427 | 7,021 | 154 | 492 | 45.590909 | 0.844197 | 0.212648 | 0 | 0.134146 | 0 | 0 | 0.021486 | 0.011653 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.073171 | 0.158537 | 0 | 0.158537 | 0.012195 | 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 |
6c7f42d6209ad07a35bba2885fe3f126a2bb0a85 | 2,896 | py | Python | cmc_api/test_cases/TC_api_target_user_report.py | 9nehS/mop_cmc_test | 2d6cabaf7e6fe3a6825961d5b8ddd69d7467542e | [
"Apache-2.0"
] | null | null | null | cmc_api/test_cases/TC_api_target_user_report.py | 9nehS/mop_cmc_test | 2d6cabaf7e6fe3a6825961d5b8ddd69d7467542e | [
"Apache-2.0"
] | null | null | null | cmc_api/test_cases/TC_api_target_user_report.py | 9nehS/mop_cmc_test | 2d6cabaf7e6fe3a6825961d5b8ddd69d7467542e | [
"Apache-2.0"
] | null | null | null | import requests
import unittest
from cmc_api.common.api import Api
from cmc_api.common.exceptions import InvalidHasWapException
class MopCmcApiTest(unittest.TestCase):
def setUp(self):
self._api_host = 'vmlnx-k8s04.calix.local'
self._api_port = '8080'
self.org_id = '160090'
self.pa... | 35.317073 | 104 | 0.613605 | 367 | 2,896 | 4.634877 | 0.258856 | 0.070547 | 0.053498 | 0.044092 | 0.52087 | 0.481481 | 0.440329 | 0.382716 | 0.363316 | 0.3204 | 0 | 0.025439 | 0.253453 | 2,896 | 82 | 105 | 35.317073 | 0.761332 | 0.027624 | 0 | 0.377049 | 0 | 0.016393 | 0.253286 | 0.049023 | 0 | 0 | 0 | 0 | 0.081967 | 0 | null | null | 0.016393 | 0.065574 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c8046cb5c677bc3707d3f3413ef51866f7e77b7 | 3,002 | py | Python | ipython/old/ipy_user_conf.py | jalanb/jab | 63aad9124824a6739c019d9bffee08a069b8a7d5 | [
"MIT"
] | 12 | 2017-08-01T03:52:08.000Z | 2020-12-28T02:57:07.000Z | ipython/old/ipy_user_conf.py | jalanb/jab | 63aad9124824a6739c019d9bffee08a069b8a7d5 | [
"MIT"
] | 2 | 2021-01-14T08:34:03.000Z | 2021-01-23T08:45:07.000Z | ipython/old/ipy_user_conf.py | jalanb/jab | 63aad9124824a6739c019d9bffee08a069b8a7d5 | [
"MIT"
] | 8 | 2018-02-04T20:45:21.000Z | 2020-10-02T09:33:52.000Z | """ User configuration file for IPython
This is a more flexible and safe way to configure ipython than *rc files
(ipythonrc, ipythonrc-pysh etc.)
This file is always imported on ipython startup. You can import the
ipython extensions you need here (see IPython/Extensions directory).
Feel free to edit this file to cus... | 34.113636 | 139 | 0.710526 | 455 | 3,002 | 4.573626 | 0.503297 | 0.046132 | 0.08073 | 0.077847 | 0.123018 | 0.068236 | 0 | 0 | 0 | 0 | 0 | 0.009544 | 0.197202 | 3,002 | 87 | 140 | 34.505747 | 0.853942 | 0.590939 | 0 | 0 | 0 | 0.035714 | 0.240167 | 0.070293 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.357143 | 0 | 0.392857 | 0.035714 | 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 |
6c8496dfd82d32f9849d57a8c3f9480b6b027677 | 2,098 | py | Python | myui.py | ZhuMon/SheetVision | 1ae39eadb35146ffb38263d047269c0cc1d6fa49 | [
"MIT"
] | null | null | null | myui.py | ZhuMon/SheetVision | 1ae39eadb35146ffb38263d047269c0cc1d6fa49 | [
"MIT"
] | null | null | null | myui.py | ZhuMon/SheetVision | 1ae39eadb35146ffb38263d047269c0cc1d6fa49 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\myui.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtC... | 46.622222 | 83 | 0.704004 | 254 | 2,098 | 5.614173 | 0.358268 | 0.106592 | 0.071529 | 0.095372 | 0.262272 | 0.117812 | 0 | 0 | 0 | 0 | 0 | 0.037647 | 0.189704 | 2,098 | 44 | 84 | 47.681818 | 0.801176 | 0.129171 | 0 | 0 | 1 | 0 | 0.093521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.033333 | 0 | 0.133333 | 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 |
6c8504418473aa48a889606bd856817790534d88 | 619 | py | Python | populous/news/middleware.py | caiges/populous | d07094f9d6b2528d282ed99af0063002480bc00b | [
"BSD-3-Clause"
] | 2 | 2016-05-09T01:17:08.000Z | 2017-07-18T23:35:01.000Z | populous/news/middleware.py | caiges/populous | d07094f9d6b2528d282ed99af0063002480bc00b | [
"BSD-3-Clause"
] | null | null | null | populous/news/middleware.py | caiges/populous | d07094f9d6b2528d282ed99af0063002480bc00b | [
"BSD-3-Clause"
] | null | null | null | from django.http import Http404
from django.conf import settings
from populous.news.views import collection
class CollectionFallbackMiddleware(object):
def process_response(self, request, response):
if response.status_code != 404:
return response # No need to check for a collection for non-404... | 34.388889 | 86 | 0.660743 | 70 | 619 | 5.8 | 0.628571 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027335 | 0.290792 | 619 | 18 | 87 | 34.388889 | 0.897494 | 0.184168 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 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 |
665f8da3787f10365a777d965161d6cc368be718 | 1,111 | py | Python | Day_03/part1.py | Uklusi/AdventOfCode2019 | 4f9bd09183129b78258647fa2b0a42d84d9c0820 | [
"MIT"
] | null | null | null | Day_03/part1.py | Uklusi/AdventOfCode2019 | 4f9bd09183129b78258647fa2b0a42d84d9c0820 | [
"MIT"
] | null | null | null | Day_03/part1.py | Uklusi/AdventOfCode2019 | 4f9bd09183129b78258647fa2b0a42d84d9c0820 | [
"MIT"
] | null | null | null | result = 0
with open("input.txt", "r") as input:
[line1, line2] = [ l.split(",") for l in input.read().strip().split('\n') ]
def readInstruction(instruction):
letter = instruction[0]
value = int(instruction[1:])
return (letter, value)
def setPositions(instructionList):
pos = (0,0)
positions ... | 26.452381 | 79 | 0.543654 | 140 | 1,111 | 4.321429 | 0.35 | 0.039669 | 0.046281 | 0.033058 | 0.112397 | 0.112397 | 0.072727 | 0.072727 | 0 | 0 | 0 | 0.03866 | 0.30153 | 1,111 | 41 | 80 | 27.097561 | 0.739691 | 0 | 0 | 0 | 0 | 0 | 0.026126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.030303 | 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 |
666acf2912709cffff4344079bd029fa15f0b754 | 2,226 | py | Python | 2019-PicoCTF/exploits/exploit_rop64.py | Caesurus/CTF_Writeups | 1373302af4c12875d2654786cebc7a4a92ec60f6 | [
"Apache-2.0"
] | 17 | 2017-06-26T04:33:59.000Z | 2021-08-20T16:39:11.000Z | 2019-PicoCTF/exploits/exploit_rop64.py | Caesurus/CTF_Writeups | 1373302af4c12875d2654786cebc7a4a92ec60f6 | [
"Apache-2.0"
] | null | null | null | 2019-PicoCTF/exploits/exploit_rop64.py | Caesurus/CTF_Writeups | 1373302af4c12875d2654786cebc7a4a92ec60f6 | [
"Apache-2.0"
] | 5 | 2017-06-26T06:01:46.000Z | 2021-05-24T05:54:27.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
# This exploit template was generated via:
# $ pwn template ./vuln
from pwn import *
# /problems/rop64_4_a266556e68202c0c42d6c14f6c7102b3
exe = context.binary = ELF('./vuln')
def start(argv=[], *a, **kw):
'''Start the exploit against the target.'''
if args.GDB:
... | 21.2 | 74 | 0.59973 | 304 | 2,226 | 4.259868 | 0.417763 | 0.060232 | 0.048649 | 0.049421 | 0.023166 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107401 | 0.192722 | 2,226 | 104 | 75 | 21.403846 | 0.613244 | 0.33513 | 0 | 0 | 1 | 0 | 0.062284 | 0.015917 | 0 | 0 | 0.081661 | 0 | 0 | 1 | 0.035088 | false | 0 | 0.017544 | 0 | 0.105263 | 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 |
666b7f62e919a630d219a93130ca5e355791786c | 9,841 | py | Python | autoclass/tests/features/test_autoprops.py | erocarrera/python-autoclass | c798f931f20ea63a8c8e939637b441c390681eb1 | [
"BSD-3-Clause"
] | 33 | 2017-08-19T19:54:54.000Z | 2022-03-04T10:24:03.000Z | autoclass/tests/features/test_autoprops.py | erocarrera/python-autoclass | c798f931f20ea63a8c8e939637b441c390681eb1 | [
"BSD-3-Clause"
] | 42 | 2017-08-07T13:46:39.000Z | 2021-09-16T13:56:25.000Z | autoclass/tests/features/test_autoprops.py | smarie/python-classtools-autocode | 1f21d646193bb374ced052eb451378ca78ddf8c2 | [
"BSD-3-Clause"
] | 2 | 2020-03-18T21:01:38.000Z | 2021-04-19T22:14:26.000Z | import sys
try:
from typing import List
except ImportError:
pass
import pytest
from autoclass import autoargs, autoprops, getter_override, setter_override, \
IllegalSetterSignatureException, DuplicateOverrideError, autoprops_decorate
def test_autoprops_no_contract():
""" Basic @autoprops functionali... | 31.440895 | 116 | 0.563053 | 1,116 | 9,841 | 4.857527 | 0.176523 | 0.035971 | 0.02435 | 0.022136 | 0.571297 | 0.52352 | 0.488655 | 0.456558 | 0.451762 | 0.410256 | 0 | 0.009758 | 0.333503 | 9,841 | 312 | 117 | 31.541667 | 0.81674 | 0.255665 | 0 | 0.622549 | 0 | 0 | 0.110107 | 0.015571 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.132353 | false | 0.058824 | 0.063725 | 0.014706 | 0.269608 | 0.009804 | 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 |
667488758af16364c3df223a5bb270fe6d9effe4 | 1,388 | py | Python | purchase.py | aaronamk/my-purchase.online | 7554678ff2ce6ff10ddef08aa2210a3f81c3c36d | [
"MIT"
] | null | null | null | purchase.py | aaronamk/my-purchase.online | 7554678ff2ce6ff10ddef08aa2210a3f81c3c36d | [
"MIT"
] | null | null | null | purchase.py | aaronamk/my-purchase.online | 7554678ff2ce6ff10ddef08aa2210a3f81c3c36d | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import pyrebase
from getpass import getpass
config = { "apiKey": "AIzaSyA25LKCxy0ruBc3c3-g5DzZkfyNQ64nxZQ", "authDomain": "my-purchases-bb5f8.firebaseapp.com", "databaseURL": "https://my-purchases-bb5f8.firebaseio.com", "storageBucket": "my-purchases-bb5f8.appspot.com", "serviceAccou... | 31.545455 | 312 | 0.661383 | 178 | 1,388 | 5.08427 | 0.47191 | 0.046409 | 0.066298 | 0.086188 | 0.166851 | 0.103867 | 0 | 0 | 0 | 0 | 0 | 0.021222 | 0.151297 | 1,388 | 43 | 313 | 32.27907 | 0.747029 | 0.225504 | 0 | 0 | 0 | 0 | 0.272897 | 0.150467 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.291667 | 0.125 | 0 | 0.125 | 0.041667 | 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 |
667a1f823e172c07771d97a4b01dd6af9db4fbb9 | 2,408 | py | Python | test/test_status.py | RimuEirnarn/RPG-Status | c01faa3ff77d3d791de385bb0bc952d7be23dbbd | [
"BSD-3-Clause"
] | 1 | 2022-01-18T08:18:32.000Z | 2022-01-18T08:18:32.000Z | test/test_status.py | RimuEirnarn/RPG-Status | c01faa3ff77d3d791de385bb0bc952d7be23dbbd | [
"BSD-3-Clause"
] | null | null | null | test/test_status.py | RimuEirnarn/RPG-Status | c01faa3ff77d3d791de385bb0bc952d7be23dbbd | [
"BSD-3-Clause"
] | null | null | null | """RPGStatus - Status Test"""
from io import StringIO
from sys import path
from os.path import realpath
path.insert(0, realpath(f"{__file__}/../../"))
from status import BaseCharacter, Attribute, CharAttribute, setDebug
import unittest
from pprint import pprint
# We don't really need other classes like Attribute, et... | 44.592593 | 153 | 0.65407 | 345 | 2,408 | 4.449275 | 0.431884 | 0.007818 | 0.005863 | 0.007818 | 0.061238 | 0.061238 | 0.024756 | 0 | 0 | 0 | 0 | 0.033084 | 0.221761 | 2,408 | 53 | 154 | 45.433962 | 0.786019 | 0.309385 | 0 | 0 | 0 | 0 | 0.119466 | 0.016374 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.088235 | false | 0 | 0.176471 | 0 | 0.294118 | 0.088235 | 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 |
667dc245d715360c9138d4fc3f4c78bf5d4dafab | 2,903 | py | Python | Server/app/util/send_email.py | miraedbswo/DMS-Backend-V3-Student | 37269d1d24b2c57b5edb96b69c74eecd3995fd2f | [
"MIT"
] | 10 | 2019-08-19T09:46:09.000Z | 2021-04-29T10:47:54.000Z | Server/app/util/send_email.py | DSM-DMS/DMS-Backend-V3-Student | 3eedd071fab46ae29e9cc3d7b05ef9e5cfd446b6 | [
"MIT"
] | 6 | 2018-10-10T23:37:20.000Z | 2018-12-27T04:57:32.000Z | Server/app/util/send_email.py | DSM-DMS/DMS-Backend-V3-Student | 3eedd071fab46ae29e9cc3d7b05ef9e5cfd446b6 | [
"MIT"
] | 3 | 2021-02-27T05:41:11.000Z | 2021-06-28T03:10:31.000Z | import sendgrid
import os
from sendgrid.helpers.mail import *
import smtplib
import random
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
html = """
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>JoinCod... | 30.239583 | 151 | 0.621082 | 357 | 2,903 | 4.952381 | 0.453782 | 0.020362 | 0.036199 | 0.015837 | 0.067873 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0.033514 | 0.239408 | 2,903 | 95 | 152 | 30.557895 | 0.76721 | 0 | 0 | 0 | 0 | 0.038462 | 0.607512 | 0.130944 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.089744 | 0 | 0.115385 | 0.051282 | 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 |
667e17281065897ea7dcfd436fbbaf3363bd6f69 | 4,763 | py | Python | test/functional/tests/conftest.py | mraveendrababu/open-cas-linux | 06b3e69c0f7bd58e863bef228aec843374d4735a | [
"BSD-3-Clause-Clear"
] | null | null | null | test/functional/tests/conftest.py | mraveendrababu/open-cas-linux | 06b3e69c0f7bd58e863bef228aec843374d4735a | [
"BSD-3-Clause-Clear"
] | null | null | null | test/functional/tests/conftest.py | mraveendrababu/open-cas-linux | 06b3e69c0f7bd58e863bef228aec843374d4735a | [
"BSD-3-Clause-Clear"
] | 1 | 2020-01-08T07:23:25.000Z | 2020-01-08T07:23:25.000Z | #
# Copyright(c) 2019 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause-Clear
#
import pytest
import os
import sys
import yaml
from IPy import IP
sys.path.append(os.path.join(os.path.dirname(__file__), "../test-framework"))
from core.test_run_utils import TestRun
from api.cas import installer
from api.cas imp... | 31.335526 | 94 | 0.673105 | 626 | 4,763 | 4.982428 | 0.338658 | 0.031741 | 0.027252 | 0.026932 | 0.16127 | 0.127605 | 0.08849 | 0.024367 | 0.024367 | 0 | 0 | 0.003186 | 0.209322 | 4,763 | 151 | 95 | 31.543046 | 0.825013 | 0.191266 | 0 | 0.210526 | 0 | 0 | 0.175839 | 0 | 0 | 0 | 0 | 0.013245 | 0 | 1 | 0.094737 | false | 0.021053 | 0.115789 | 0.031579 | 0.252632 | 0.010526 | 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 |
6684a4dffb7e6ae58aab799de96467ce60b4cb63 | 1,436 | py | Python | guitk/__init__.py | RhetTbull/guitk | 7e5cf8264cb7ee4629be879ceb7c99783b347125 | [
"MIT"
] | 4 | 2021-03-08T06:18:02.000Z | 2021-12-12T19:10:56.000Z | guitk/__init__.py | RhetTbull/guitk | 7e5cf8264cb7ee4629be879ceb7c99783b347125 | [
"MIT"
] | 22 | 2021-03-08T16:31:20.000Z | 2021-04-04T16:33:32.000Z | guitk/__init__.py | RhetTbull/guitk | 7e5cf8264cb7ee4629be879ceb7c99783b347125 | [
"MIT"
] | null | null | null | """ Set of classes to simplify building a GUI app with tkinter.
Inspired by PySimpleGUI.
No dependencies outside python standard library.
Published under the MIT License.
Copyright Rhet Turnbull, 2021, all rights reserved.
"""
# TODO: add way to specify tooltip delay
# TODO: add cursor to all contr... | 19.671233 | 68 | 0.665738 | 147 | 1,436 | 6.414966 | 0.673469 | 0.022269 | 0.027572 | 0.036055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006323 | 0.229109 | 1,436 | 72 | 69 | 19.944444 | 0.845528 | 0.333565 | 0 | 0 | 0 | 0 | 0.341253 | 0.022678 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0 | false | 0 | 0.06 | 0 | 0.06 | 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 |
6684d792ad5cf2962f8feb1767dbc3b986ce6f1f | 2,576 | py | Python | tests/test_schedule.py | skrytebane/meinheld | 87a05b1fdd3e359454dc907343d63592590d07e5 | [
"BSD-3-Clause"
] | 1,186 | 2015-01-05T05:52:40.000Z | 2022-03-31T09:44:46.000Z | tests/test_schedule.py | skrytebane/meinheld | 87a05b1fdd3e359454dc907343d63592590d07e5 | [
"BSD-3-Clause"
] | 65 | 2015-03-22T07:30:43.000Z | 2021-12-31T06:45:26.000Z | tests/test_schedule.py | skrytebane/meinheld | 87a05b1fdd3e359454dc907343d63592590d07e5 | [
"BSD-3-Clause"
] | 84 | 2015-06-02T06:26:49.000Z | 2022-02-01T09:58:23.000Z | from base import *
import requests
ASSERT_RESPONSE = b"Hello world!"
RESPONSE = [b"Hello ", b"world!"]
class App(BaseApp):
environ = None
def __call__(self, environ, start_response):
status = '200 OK'
response_headers = [('Content-type','text/plain')]
start_response(status, response_... | 20.774194 | 58 | 0.55823 | 358 | 2,576 | 3.863128 | 0.173184 | 0.039046 | 0.039046 | 0.091106 | 0.579899 | 0.563268 | 0.53073 | 0.516269 | 0.480839 | 0.480839 | 0 | 0.055762 | 0.269022 | 2,576 | 123 | 59 | 20.943089 | 0.678704 | 0 | 0 | 0.539326 | 0 | 0 | 0.060218 | 0 | 0 | 0 | 0 | 0 | 0.179775 | 1 | 0.235955 | false | 0 | 0.022472 | 0 | 0.292135 | 0.011236 | 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 |
66885d5ea58d12cdbfdd589426506466a3fdd38d | 848 | py | Python | weirdCrashOnSelf.py | binnev/what-can-be-computed | 58d01ef09096bda2d0a1876575b992d47fcd0470 | [
"CC-BY-4.0"
] | null | null | null | weirdCrashOnSelf.py | binnev/what-can-be-computed | 58d01ef09096bda2d0a1876575b992d47fcd0470 | [
"CC-BY-4.0"
] | null | null | null | weirdCrashOnSelf.py | binnev/what-can-be-computed | 58d01ef09096bda2d0a1876575b992d47fcd0470 | [
"CC-BY-4.0"
] | null | null | null | # SISO program weirdCrashOnSelf.py
# This program is deliberately crafted to enable a certain proof by
# contradiction. Given input string progString representing a python
# program P, weirdCrashOnSelf returns successfully if P(P) causes a
# crash; otherwise, weirdCrashOnSelf crashes.
import utils
from utils import rf... | 29.241379 | 70 | 0.724057 | 101 | 848 | 6.079208 | 0.683168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003021 | 0.21934 | 848 | 28 | 71 | 30.285714 | 0.924471 | 0.556604 | 0 | 0 | 0 | 0 | 0.057377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0.214286 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6689eb717fbd8515e0527cca0ab87ccfcdae26e9 | 1,567 | py | Python | plynx/db/input.py | live-wire/plynx | ed29db2b7880ed512974cd98993587886763a5f5 | [
"Apache-2.0"
] | null | null | null | plynx/db/input.py | live-wire/plynx | ed29db2b7880ed512974cd98993587886763a5f5 | [
"Apache-2.0"
] | null | null | null | plynx/db/input.py | live-wire/plynx | ed29db2b7880ed512974cd98993587886763a5f5 | [
"Apache-2.0"
] | null | null | null | from plynx.db.db_object import DBObject, DBObjectField
class InputValue(DBObject):
"""Basic Value of the Input structure."""
FIELDS = {
'node_id': DBObjectField(
type=str,
default='',
is_list=False,
),
'output_id': DBObjectField(
typ... | 23.044118 | 72 | 0.47224 | 140 | 1,567 | 5.035714 | 0.307143 | 0.192908 | 0.093617 | 0.191489 | 0.507801 | 0.394326 | 0.394326 | 0.295035 | 0.124823 | 0 | 0 | 0.002125 | 0.399489 | 1,567 | 67 | 73 | 23.38806 | 0.747078 | 0.037013 | 0 | 0.672727 | 0 | 0 | 0.081442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072727 | false | 0 | 0.018182 | 0.072727 | 0.236364 | 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 |
668a62ccff000a947bd03feadc3f365f6c510699 | 911 | py | Python | botFunctions/f_iam.py | sanjogpandasp/dollhouse | 8b3d50a819072e341b808db66f8851939000ca3c | [
"Apache-2.0"
] | 1 | 2019-09-09T02:32:57.000Z | 2019-09-09T02:32:57.000Z | botFunctions/f_iam.py | sanjogpandasp/dollhouse | 8b3d50a819072e341b808db66f8851939000ca3c | [
"Apache-2.0"
] | null | null | null | botFunctions/f_iam.py | sanjogpandasp/dollhouse | 8b3d50a819072e341b808db66f8851939000ca3c | [
"Apache-2.0"
] | null | null | null | from utils.config import get_value
import os
def check_blacklisted_roles(role):
roles_list = get_value('showRoles','roles').split(",")
for item in roles_list:
if role.lower() == item:
return True #Role is blacklisted
else:
continue
#return False #Role is not... | 33.740741 | 118 | 0.677278 | 117 | 911 | 5.119658 | 0.461538 | 0.141903 | 0.140234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002782 | 0.210757 | 911 | 27 | 119 | 33.740741 | 0.83032 | 0.060373 | 0 | 0 | 0 | 0 | 0.152225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.047619 | 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 |
668d1672aeef27c5645482ec4268a9623166296b | 352 | py | Python | tests/__init__.py | ONSdigital/sdx-sequence | 1a5d7a3adaa883ec959eb5e31fe15ac76e84b05d | [
"MIT"
] | null | null | null | tests/__init__.py | ONSdigital/sdx-sequence | 1a5d7a3adaa883ec959eb5e31fe15ac76e84b05d | [
"MIT"
] | 58 | 2016-06-22T08:59:28.000Z | 2021-03-19T23:46:38.000Z | tests/__init__.py | ONSdigital/sdx-sequence | 1a5d7a3adaa883ec959eb5e31fe15ac76e84b05d | [
"MIT"
] | 1 | 2021-04-11T07:51:34.000Z | 2021-04-11T07:51:34.000Z | from sqlalchemy import create_engine
import testing.postgresql
import settings
from sequences import create_sequences
# Launch new PostgreSQL server
Postgres = testing.postgresql.PostgresqlFactory(cache_initialized_db=False)
postgresql = Postgres()
settings.DB_URL = postgresql.url()
engine = create_engine(postgresql.... | 27.076923 | 75 | 0.840909 | 42 | 352 | 6.880952 | 0.452381 | 0.083045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 352 | 12 | 76 | 29.333333 | 0.903125 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 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 |
6692640e5440a5f1102f655c5f283b3a03e074e1 | 1,397 | py | Python | Python-Beginner/control_flow.py | carlosmertens/Django-Full-Stack | e9713618936d6a90e098056cd6168d427dc91bd3 | [
"MIT"
] | null | null | null | Python-Beginner/control_flow.py | carlosmertens/Django-Full-Stack | e9713618936d6a90e098056cd6168d427dc91bd3 | [
"MIT"
] | null | null | null | Python-Beginner/control_flow.py | carlosmertens/Django-Full-Stack | e9713618936d6a90e098056cd6168d427dc91bd3 | [
"MIT"
] | null | null | null | # ** CONTROL FLOW **
# IF, ELIF AND ELSE
age = 21
if age >= 21:
print("You can drive alone")
elif age < 16:
print("You are not allow to drive")
else:
print("You can drive with supervision")
# FOR LOOPS
# Iterate a List
print("\nIterate a List:")
my_list = [1, 2, 3, 4, 5]
for item in my_list:
print(... | 19.676056 | 71 | 0.644953 | 231 | 1,397 | 3.844156 | 0.354978 | 0.033784 | 0.010135 | 0.013514 | 0.016892 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037273 | 0.212598 | 1,397 | 70 | 72 | 19.957143 | 0.77 | 0.299213 | 0 | 0 | 0 | 0 | 0.238293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.538462 | 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 | 0 | 1 | 0 | 1 |
66980b907c9b9c1904db79db9d3f8aac65cbc2fb | 703 | py | Python | mysite/mysite/urls.py | jared-wallace/jared-wallace.com | af58635d18f394906b6a0125eb4573f89546d7d5 | [
"WTFPL"
] | null | null | null | mysite/mysite/urls.py | jared-wallace/jared-wallace.com | af58635d18f394906b6a0125eb4573f89546d7d5 | [
"WTFPL"
] | null | null | null | mysite/mysite/urls.py | jared-wallace/jared-wallace.com | af58635d18f394906b6a0125eb4573f89546d7d5 | [
"WTFPL"
] | null | null | null | from django.conf.urls import include, url
from django.contrib import admin
from accounts import views as accounts_views
from base import views as base_views
admin.autodiscover()
urlpatterns = [
url(r'^accounts/', include('accounts.urls')),
url(r'^contact/', accounts_views.contact, name="contact"),
url(r'^... | 35.15 | 62 | 0.672831 | 97 | 703 | 4.804124 | 0.278351 | 0.085837 | 0.103004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130868 | 703 | 19 | 63 | 37 | 0.762684 | 0 | 0 | 0 | 0 | 0 | 0.227596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.235294 | 0 | 0.235294 | 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 |
669fe2b55966fc7690010c62ea7592646adf8bf9 | 1,632 | py | Python | functions/petCatsDetection.py | tianyicchenn/Raspi4B-IoT-Playbot | 4e3c6c977751dd077994e1e0877f33fa5e28904b | [
"MIT"
] | 1 | 2020-06-22T04:19:00.000Z | 2020-06-22T04:19:00.000Z | functions/petCatsDetection.py | tianyicchenn/Raspi4B-IoT-Playbot | 4e3c6c977751dd077994e1e0877f33fa5e28904b | [
"MIT"
] | null | null | null | functions/petCatsDetection.py | tianyicchenn/Raspi4B-IoT-Playbot | 4e3c6c977751dd077994e1e0877f33fa5e28904b | [
"MIT"
] | null | null | null | import base64
import json
import urllib.parse
import urllib.request
import requests
from components import WebCam
def capture():
camera = WebCam()
return camera.capture()
def formatted_image(impath):
f = open(impath, 'rb')
img = base64.b64encode(f.read()).decode('utf-8')
return img
def get_t... | 27.661017 | 96 | 0.689338 | 217 | 1,632 | 5.009217 | 0.37788 | 0.055198 | 0.033119 | 0.034959 | 0.161914 | 0.062558 | 0 | 0 | 0 | 0 | 0 | 0.011119 | 0.173407 | 1,632 | 58 | 97 | 28.137931 | 0.794663 | 0.023284 | 0 | 0 | 0 | 0.02381 | 0.213074 | 0.018856 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.119048 | false | 0 | 0.142857 | 0 | 0.404762 | 0.02381 | 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 |
66a84b48b233f4455b68b68a43bda316768c166d | 32,592 | py | Python | room.py | tawnkramer/Adventure | c1ba861350b2cf394a6ea0f742d60bd16c834601 | [
"MIT"
] | 2 | 2018-01-21T03:04:26.000Z | 2021-06-05T00:17:35.000Z | room.py | tawnkramer/Adventure | c1ba861350b2cf394a6ea0f742d60bd16c834601 | [
"MIT"
] | null | null | null | room.py | tawnkramer/Adventure | c1ba861350b2cf394a6ea0f742d60bd16c834601 | [
"MIT"
] | null | null | null | from prettytable import *
from stuff import *
from triggers import *
from monsters import *
from commentary import *
from player import *
import util
import combat
#As the name implies, a barrier between two rooms. May be locked, and may have a key assigned.
class Door ( object):
def __init__(self, desc, key=None, lo... | 30.805293 | 249 | 0.670042 | 5,102 | 32,592 | 4.163465 | 0.102901 | 0.019772 | 0.013181 | 0.013558 | 0.388523 | 0.309058 | 0.242068 | 0.230063 | 0.198522 | 0.180303 | 0 | 0.006581 | 0.216771 | 32,592 | 1,057 | 250 | 30.834437 | 0.825557 | 0.047772 | 0 | 0.39083 | 0 | 0.015284 | 0.154042 | 0.002874 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007642 | 0.008734 | null | null | 0.122271 | 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 |
66b47918e54d64238f684dbe162aa1850bc9ffdb | 1,526 | py | Python | tests/connect_tests.py | oemof/oemof.db | 4e131cae28879fa1f86814e0294fbd1d6bab1e2f | [
"MIT"
] | 3 | 2017-03-14T20:42:23.000Z | 2017-11-29T09:07:51.000Z | tests/connect_tests.py | oemof/oemof.db | 4e131cae28879fa1f86814e0294fbd1d6bab1e2f | [
"MIT"
] | 31 | 2016-02-02T14:59:06.000Z | 2020-05-15T06:08:11.000Z | tests/connect_tests.py | oemof/oemof-db | 4e131cae28879fa1f86814e0294fbd1d6bab1e2f | [
"MIT"
] | 5 | 2017-03-23T17:34:43.000Z | 2020-05-15T06:17:45.000Z | # -*- coding: utf-8 -
"""Tests of the component module.
SPDX-License-Identifier: MIT
"""
from configparser import NoSectionError
from unittest.mock import MagicMock
import getpass
import os
import keyring
import pytest
from oemof.db import connect
def test_url_with_keyring():
os.chdir(os.path.dirname(__file_... | 31.142857 | 78 | 0.738532 | 226 | 1,526 | 4.725664 | 0.327434 | 0.033708 | 0.033708 | 0.078652 | 0.484082 | 0.382959 | 0.382959 | 0.382959 | 0.337079 | 0.337079 | 0 | 0.030465 | 0.139581 | 1,526 | 48 | 79 | 31.791667 | 0.78294 | 0.05308 | 0 | 0.225806 | 0 | 0 | 0.223227 | 0.133519 | 0 | 0 | 0 | 0 | 0.096774 | 1 | 0.129032 | false | 0.225806 | 0.225806 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.