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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d57370505dd6c699ee24135375eff7199d64f441 | 1,058 | py | Python | metricsML/MetricsML.py | Elscha/MetricsML | 2ecbc42ad7bd2465f4f75658f44452ea5c552c3b | [
"Apache-2.0"
] | null | null | null | metricsML/MetricsML.py | Elscha/MetricsML | 2ecbc42ad7bd2465f4f75658f44452ea5c552c3b | [
"Apache-2.0"
] | null | null | null | metricsML/MetricsML.py | Elscha/MetricsML | 2ecbc42ad7bd2465f4f75658f44452ea5c552c3b | [
"Apache-2.0"
] | null | null | null | '''
Created on 03.12.2018
@author: el-sharkawy
'''
from metricsML import DataConvertor
from metricsML import MachineLearning
from metricsML import Normalizator
import numpy as np
### File Operations ###
def convertTwoCSVFiles(folder="data/", goodfile="all_good_output.csv", badfile="all_error_output.csv"):
DataCon... | 37.785714 | 142 | 0.793951 | 121 | 1,058 | 6.793388 | 0.438017 | 0.043796 | 0.069343 | 0.085158 | 0.3309 | 0.3309 | 0.3309 | 0.3309 | 0.192214 | 0.192214 | 0 | 0.011603 | 0.10397 | 1,058 | 28 | 143 | 37.785714 | 0.855485 | 0.12949 | 0 | 0 | 0 | 0 | 0.06541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.285714 | 0.142857 | 0.785714 | 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 | 1 | 0 | 0 | 0 | 2 |
d573e4185d520f3b0945c93a25dc8a1b391318cd | 51 | py | Python | unsplash_get/__init__.py | streanger/unsplash_get | 9de91c973fb9c449db9795fdd83cae7843f6f1e8 | [
"MIT"
] | 3 | 2020-07-23T11:33:31.000Z | 2020-08-31T23:06:56.000Z | unsplash_get/__init__.py | streanger/unsplash_get | 9de91c973fb9c449db9795fdd83cae7843f6f1e8 | [
"MIT"
] | null | null | null | unsplash_get/__init__.py | streanger/unsplash_get | 9de91c973fb9c449db9795fdd83cae7843f6f1e8 | [
"MIT"
] | null | null | null | from .unsplash_get import save_img, search, example | 51 | 51 | 0.843137 | 8 | 51 | 5.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 51 | 1 | 51 | 51 | 0.891304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
d5749c06941decb603c446b4a6e5e526c6140f9d | 2,099 | py | Python | sqlib.py | OwnerHunter/round2bot | 634bf2592216903c12636becdd91141d4b0588f7 | [
"MIT"
] | null | null | null | sqlib.py | OwnerHunter/round2bot | 634bf2592216903c12636becdd91141d4b0588f7 | [
"MIT"
] | null | null | null | sqlib.py | OwnerHunter/round2bot | 634bf2592216903c12636becdd91141d4b0588f7 | [
"MIT"
] | null | null | null | import sqlite3
class Table:
def __init__(self, table, columns: tuple):
self.conn = sqlite3.connect('data.db')
self.c = self.conn.cursor()
self.table = table
self.columns = columns
def get(self, id_str, columns: str='*'):
self.c.execute("SELECT {0} FROM {1} WHERE id=:id... | 30.42029 | 102 | 0.519771 | 252 | 2,099 | 4.230159 | 0.281746 | 0.042214 | 0.033771 | 0.045028 | 0.286116 | 0.174484 | 0.129456 | 0.129456 | 0.06379 | 0 | 0 | 0.009979 | 0.331586 | 2,099 | 68 | 103 | 30.867647 | 0.749822 | 0.009528 | 0 | 0.25 | 0 | 0 | 0.09533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134615 | false | 0 | 0.019231 | 0 | 0.288462 | 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 | 0 | 0 | 1 | 0 |
d57570a3a363af59763a311ae6f93a074dbbc0af | 454 | py | Python | HRserver/app.py | Tinformant/HalliganReviews | adf15793c4cb963aa53e0b20ce3790e1f45ed1da | [
"MIT"
] | 3 | 2020-06-09T21:31:54.000Z | 2020-06-10T02:13:37.000Z | HRserver/app.py | Jarvis7923/HalliganReviews | adf15793c4cb963aa53e0b20ce3790e1f45ed1da | [
"MIT"
] | 5 | 2020-06-09T22:43:14.000Z | 2022-02-27T10:10:30.000Z | HRserver/app.py | Jarvis7923/HalliganReviews | adf15793c4cb963aa53e0b20ce3790e1f45ed1da | [
"MIT"
] | 3 | 2020-06-03T02:00:07.000Z | 2021-04-13T15:44:46.000Z | from flask import Flask
from flask_restful import Api
from resources.searchRes import searchRes
from resources.reviewRes import reviewRes
from resources.detailRes import detailRes
from resources.manage import manageRes
app = Flask(__name__)
api = Api(app)
api.add_resource(searchRes, '/courses/<name>')
api.add_resour... | 26.705882 | 46 | 0.801762 | 62 | 454 | 5.725806 | 0.370968 | 0.146479 | 0.157746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009732 | 0.094714 | 454 | 17 | 47 | 26.705882 | 0.854015 | 0 | 0 | 0 | 0 | 0 | 0.079121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 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 |
d5766034b6755a99fc3c93ef4f55c3a9891d426c | 2,259 | py | Python | tests/test_client.py | bluethon/flasky-learn | db2e966e9b32fa7c0d34472a24c048cc27a0ff39 | [
"MIT"
] | 1 | 2017-10-22T02:36:18.000Z | 2017-10-22T02:36:18.000Z | tests/test_client.py | bluethon/flasky-learn | db2e966e9b32fa7c0d34472a24c048cc27a0ff39 | [
"MIT"
] | null | null | null | tests/test_client.py | bluethon/flasky-learn | db2e966e9b32fa7c0d34472a24c048cc27a0ff39 | [
"MIT"
] | 2 | 2017-10-26T08:18:57.000Z | 2018-09-04T02:17:38.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Date : 2016-07-14 15:27
# @Author : Bluethon (j5088794@gmail.com)
# @Link : http://github.com/bluethon
import re
import unittest
from flask import url_for
from app import create_app, db
from app.models import User, Role
class FlaskClientTestCase(unittest... | 32.73913 | 81 | 0.611775 | 267 | 2,259 | 5.059925 | 0.460674 | 0.026647 | 0.066617 | 0.046632 | 0.224278 | 0.173945 | 0.15396 | 0.060696 | 0 | 0 | 0 | 0.017407 | 0.262506 | 2,259 | 68 | 82 | 33.220588 | 0.793517 | 0.148296 | 0 | 0.095238 | 0 | 0 | 0.149081 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.095238 | false | 0.071429 | 0.119048 | 0 | 0.238095 | 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 |
d578d5f1779229089045f31733bae711e4fd76ce | 867 | py | Python | vagrancy/__init__.py | seeraven/vagrancyCtrl | 1908ab913dd896a45cc0582ebf356eba071fb2ab | [
"BSD-3-Clause-Clear"
] | null | null | null | vagrancy/__init__.py | seeraven/vagrancyCtrl | 1908ab913dd896a45cc0582ebf356eba071fb2ab | [
"BSD-3-Clause-Clear"
] | null | null | null | vagrancy/__init__.py | seeraven/vagrancyCtrl | 1908ab913dd896a45cc0582ebf356eba071fb2ab | [
"BSD-3-Clause-Clear"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Module for accessing a vagrancy instance.
Vagrancy stores the boxes for different versions and different providers in the
following way:
- Each box has a unique name consisting of ``<username>/<name>``.
- Each box has one or more versions. The version can be anything like a
semanti... | 36.125 | 85 | 0.707036 | 131 | 867 | 4.679389 | 0.618321 | 0.029364 | 0.032626 | 0.035889 | 0.04894 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012876 | 0.193772 | 867 | 23 | 86 | 37.695652 | 0.864092 | 0.988466 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d579c5b3c6c69430ad1dba477769dc68edc6b543 | 3,114 | py | Python | plagiarismdetector/tokenizer.py | singhay/plagiarism-detector | fca69af56974bb1ff6e62cfa81eea521df659b61 | [
"MIT"
] | null | null | null | plagiarismdetector/tokenizer.py | singhay/plagiarism-detector | fca69af56974bb1ff6e62cfa81eea521df659b61 | [
"MIT"
] | 1 | 2018-02-27T02:34:26.000Z | 2018-02-27T02:34:26.000Z | plagiarismdetector/tokenizer.py | singhay/plagiarism-detector | fca69af56974bb1ff6e62cfa81eea521df659b61 | [
"MIT"
] | null | null | null | import re
class TreebankWordTokenizer:
"""
The Treebank tokenizer uses regular expressions to tokenize text as in Penn Treebank.
This is the method that is invoked by ``tokenize()``.
This tokenizer performs the following steps:
- split standard contractions, e.g. ``don't`` -> ``do n't`` and ``th... | 35.793103 | 97 | 0.477521 | 376 | 3,114 | 3.917553 | 0.316489 | 0.10387 | 0.108622 | 0.074678 | 0.326544 | 0.324508 | 0.190767 | 0.145961 | 0.138493 | 0.076035 | 0 | 0.008043 | 0.28131 | 3,114 | 86 | 98 | 36.209302 | 0.650134 | 0.295119 | 0 | 0.102041 | 0 | 0 | 0.227401 | 0.120057 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0.020408 | 0.020408 | 0 | 0.244898 | 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 | 0 | 0 | 1 | 0 |
d57a504252f56e17f3bbc279ef28f03c57999728 | 45 | py | Python | platform/core/polyaxon/libs/repos/git/exceptions.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/polyaxon/libs/repos/git/exceptions.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/polyaxon/libs/repos/git/exceptions.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | class GitCloneException(Exception):
pass
| 15 | 35 | 0.777778 | 4 | 45 | 8.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 45 | 2 | 36 | 22.5 | 0.921053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
d57c7e00fb1f3b54590c0aed7560a46aa3cf7ab3 | 628 | py | Python | test_project/rename_forward/urls.py | epoiate/django-autocomplete-light | 6cefd5ea73d1ef2c1c800cd1fdcf6cc6fbe27886 | [
"MIT"
] | 1,368 | 2015-01-03T09:52:33.000Z | 2022-03-27T09:06:00.000Z | test_project/rename_forward/urls.py | epoiate/django-autocomplete-light | 6cefd5ea73d1ef2c1c800cd1fdcf6cc6fbe27886 | [
"MIT"
] | 919 | 2015-01-01T05:17:48.000Z | 2022-03-25T22:41:14.000Z | test_project/rename_forward/urls.py | epoiate/django-autocomplete-light | 6cefd5ea73d1ef2c1c800cd1fdcf6cc6fbe27886 | [
"MIT"
] | 469 | 2015-01-19T21:40:30.000Z | 2022-03-26T17:27:40.000Z | from dal import autocomplete
from django.conf.urls import url
from .models import TModel
class LinkedDataView(autocomplete.Select2QuerySetView):
def get_queryset(self):
qs = super(LinkedDataView, self).get_queryset()
possessor = self.forwarded.get('possessor', None)
secret = self.forwar... | 20.258065 | 57 | 0.632166 | 69 | 628 | 5.652174 | 0.536232 | 0.061538 | 0.082051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006508 | 0.265924 | 628 | 30 | 58 | 20.933333 | 0.839479 | 0 | 0 | 0 | 0 | 0 | 0.068471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d57d8c0b27441b3e6a130ef67c3109a4e8ff4d0b | 1,319 | py | Python | script/data_annotation/annotate_cluster.py | carushi/Catactor | 27d35261249daf695659f2f329aa470922f60922 | [
"MIT"
] | null | null | null | script/data_annotation/annotate_cluster.py | carushi/Catactor | 27d35261249daf695659f2f329aa470922f60922 | [
"MIT"
] | null | null | null | script/data_annotation/annotate_cluster.py | carushi/Catactor | 27d35261249daf695659f2f329aa470922f60922 | [
"MIT"
] | null | null | null | import os
import pandas as pd
import sys
gse_number = sys.argv[1]
for dirpath, dnames, fnames in os.walk("./"+gse_number+'/'):
all = None
for fname in fnames:
tail = 'celltype_annotation'
if tail in fname:
continue
if 'cell_ng' in fname and 'meta' in fname:
df = ... | 43.966667 | 139 | 0.595148 | 180 | 1,319 | 4.266667 | 0.344444 | 0.117188 | 0.070313 | 0.046875 | 0.221354 | 0.221354 | 0.221354 | 0.221354 | 0.221354 | 0.221354 | 0 | 0.001944 | 0.219864 | 1,319 | 30 | 140 | 43.966667 | 0.744412 | 0 | 0 | 0.068966 | 0 | 0 | 0.140909 | 0.024242 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.103448 | 0.206897 | 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 | 0 | 1 | 0 |
d57e3da3875c01e0d6644b979fd57f301a325ded | 3,137 | py | Python | pentestly-master/modules/pentestly/login.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | 8 | 2019-02-17T20:11:46.000Z | 2019-10-18T06:27:16.000Z | pentestly-master/modules/pentestly/login.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | null | null | null | pentestly-master/modules/pentestly/login.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | 4 | 2019-02-17T23:00:18.000Z | 2019-10-18T06:27:14.000Z | from __future__ import print_function
import sys
import os
from libs.pentestlymodule import PentestlyModule
class Module(PentestlyModule):
meta = {
'name': 'User Login',
'author': 'Cory Duplantis (@ctfhacker)',
'description': 'Attempts to login to all hosts with port 445 using given crede... | 39.708861 | 125 | 0.555308 | 346 | 3,137 | 4.953757 | 0.343931 | 0.102684 | 0.025671 | 0.045508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007892 | 0.313357 | 3,137 | 78 | 126 | 40.217949 | 0.787837 | 0.010838 | 0 | 0.033333 | 0 | 0 | 0.20832 | 0.009352 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.45 | 0.066667 | 0 | 0.15 | 0.016667 | 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 |
d57ffd90b51e46dfbf8af28cb4ecc6af09fd1c10 | 194 | py | Python | Python/11.container-with-most-water.py | Mo-Shakib/LeetCode | a3f1cfda648d9abf504e9d79697f1ca433c48460 | [
"Apache-2.0"
] | 1 | 2022-01-10T01:10:03.000Z | 2022-01-10T01:10:03.000Z | Python/11.container-with-most-water.py | Mo-Shakib/LeetCode | a3f1cfda648d9abf504e9d79697f1ca433c48460 | [
"Apache-2.0"
] | 3 | 2022-01-10T18:24:21.000Z | 2022-01-10T22:38:38.000Z | Python/11.container-with-most-water.py | Mo-Shakib/LeetCode | a3f1cfda648d9abf504e9d79697f1ca433c48460 | [
"Apache-2.0"
] | 2 | 2022-01-10T05:06:22.000Z | 2022-01-14T06:20:09.000Z | #
# @lc app=leetcode id=11 lang=python3
#
# [11] Container With Most Water
#
# @lc code=start
class Solution:
def maxArea(self, height: List[int]) -> int:
# @lc code=end
| 13.857143 | 48 | 0.592784 | 27 | 194 | 4.259259 | 0.814815 | 0.104348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035211 | 0.268041 | 194 | 13 | 49 | 14.923077 | 0.774648 | 0.484536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
d581a27c402119743d0fd709f001a408b09eda63 | 1,092 | py | Python | blink_dl.py | CodeYouMust/blink_cam_vision | de5838e35d15a4ba3d4cd38b633e3f35decbafc5 | [
"BSD-3-Clause"
] | 1 | 2019-09-07T21:31:03.000Z | 2019-09-07T21:31:03.000Z | blink_dl.py | CodeYouMust/blink_cam_vision | de5838e35d15a4ba3d4cd38b633e3f35decbafc5 | [
"BSD-3-Clause"
] | null | null | null | blink_dl.py | CodeYouMust/blink_cam_vision | de5838e35d15a4ba3d4cd38b633e3f35decbafc5 | [
"BSD-3-Clause"
] | null | null | null | from fire import Fire
from cameras.blink_api import BlinkApi
import time
from util.polite_access import PoliteAccess
POLITE_DL_WAIT_SECONDS = 60 * 1.5
polite = PoliteAccess('blink-api-access')
def dl_blink_videos(user, pwd, fldr):
x = BlinkApi()
x.login(user, pwd)
x.dl_all_videos(fldr)
polite.set_acc... | 25.395349 | 78 | 0.690476 | 160 | 1,092 | 4.3625 | 0.31875 | 0.120344 | 0.074499 | 0.073066 | 0.232092 | 0.186246 | 0.083095 | 0 | 0 | 0 | 0 | 0.004706 | 0.221612 | 1,092 | 42 | 79 | 26 | 0.816471 | 0.044872 | 0 | 0.066667 | 0 | 0 | 0.084713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.133333 | 0 | 0.333333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d581c7865172c3d3afbc5893affb2782540a00a3 | 5,177 | py | Python | pymapadmin/grpc/admin_grpc.py | icgood/pymap-admin | 6cde908af84f52d4cd591a80503a19f784e47a35 | [
"MIT"
] | 2 | 2021-11-17T22:28:46.000Z | 2021-11-18T14:47:07.000Z | pymapadmin/grpc/admin_grpc.py | icgood/pymap-admin | 6cde908af84f52d4cd591a80503a19f784e47a35 | [
"MIT"
] | null | null | null | pymapadmin/grpc/admin_grpc.py | icgood/pymap-admin | 6cde908af84f52d4cd591a80503a19f784e47a35 | [
"MIT"
] | null | null | null | # Generated by the Protocol Buffers compiler. DO NOT EDIT!
# source: pymapadmin/grpc/admin.proto
# plugin: grpclib.plugin.main
import abc
import typing
import grpclib.const
import grpclib.client
if typing.TYPE_CHECKING:
import grpclib.server
import pymapadmin.grpc.admin_pb2
class SystemBase(abc.ABC):
@abc.... | 35.703448 | 157 | 0.639946 | 508 | 5,177 | 6.387795 | 0.137795 | 0.215716 | 0.222496 | 0.250847 | 0.792604 | 0.792604 | 0.735901 | 0.651464 | 0.64037 | 0.483205 | 0 | 0.009653 | 0.25961 | 5,177 | 144 | 158 | 35.951389 | 0.836942 | 0.023179 | 0 | 0.547826 | 1 | 0.052174 | 0.192757 | 0.191569 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052174 | false | 0.052174 | 0.052174 | 0.026087 | 0.182609 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
d583ddd9da1e8a66b1c4175158f5b3a31784216e | 622 | py | Python | component/logging_.py | laashub-sua/businesser | 5c50daa561fe35c74d1ce1a2ba0e645f769a165c | [
"Apache-2.0"
] | 1 | 2020-12-17T10:56:44.000Z | 2020-12-17T10:56:44.000Z | component/logging_.py | laashub-sua/businesser | 5c50daa561fe35c74d1ce1a2ba0e645f769a165c | [
"Apache-2.0"
] | 1 | 2020-12-30T05:53:34.000Z | 2020-12-30T05:53:34.000Z | component/logging_.py | laashub-sua/businesser | 5c50daa561fe35c74d1ce1a2ba0e645f769a165c | [
"Apache-2.0"
] | null | null | null | import logging
import os
from logging.handlers import TimedRotatingFileHandler
logging.basicConfig(
level=logging.INFO
)
def do_init():
from __init__ import app
if not os.path.exists("logs"):
os.mkdir("logs")
formatter = logging.Formatter(
"[%(asctime)s][%(filename)s:%(lineno)d][%(le... | 23.923077 | 90 | 0.672026 | 76 | 622 | 5.434211 | 0.618421 | 0.053269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007843 | 0.180064 | 622 | 25 | 91 | 24.88 | 0.801961 | 0 | 0 | 0 | 0 | 0.052632 | 0.172026 | 0.104502 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.210526 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d58403c1fa4c0290dcdfef391ce8c75ae48bc48f | 944 | py | Python | backend/user/filters.py | sonpham08/dj_angular | 17881978726969c31c61febc51f4b8a552323873 | [
"MIT"
] | null | null | null | backend/user/filters.py | sonpham08/dj_angular | 17881978726969c31c61febc51f4b8a552323873 | [
"MIT"
] | 9 | 2020-06-05T21:28:57.000Z | 2022-02-12T12:30:39.000Z | backend/user/filters.py | sonpham08/dj_angular | 17881978726969c31c61febc51f4b8a552323873 | [
"MIT"
] | null | null | null | import django_filters
from .models import User
import coreapi
import coreschema
from django_filters.rest_framework import DjangoFilterBackend
class UserFilter(DjangoFilterBackend):
"""
Overrides get_schema_fields() to show filter_fields in Swagger.
"""
def get_schema_fields(self, view):
assert... | 28.606061 | 70 | 0.608051 | 101 | 944 | 5.524752 | 0.475248 | 0.080645 | 0.134409 | 0.060932 | 0.125448 | 0.125448 | 0.125448 | 0.125448 | 0 | 0 | 0 | 0 | 0.318856 | 944 | 32 | 71 | 29.5 | 0.867807 | 0.110169 | 0 | 0.083333 | 0 | 0 | 0.163835 | 0.050971 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.041667 | false | 0 | 0.208333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5845720b89f922c6865488be9b0fe6954b474be | 1,089 | py | Python | ejemplos/7 hola mundo con imagenes/hola.py | gentooza/taller-licenciado-software | 421ab6d23a945ef71b5a31c9d0a1c47b75a3ebac | [
"CC-BY-3.0"
] | null | null | null | ejemplos/7 hola mundo con imagenes/hola.py | gentooza/taller-licenciado-software | 421ab6d23a945ef71b5a31c9d0a1c47b75a3ebac | [
"CC-BY-3.0"
] | null | null | null | ejemplos/7 hola mundo con imagenes/hola.py | gentooza/taller-licenciado-software | 421ab6d23a945ef71b5a31c9d0a1c47b75a3ebac | [
"CC-BY-3.0"
] | null | null | null | #!/bin/python3
'''
Copyright 2022 Joaquín Cuéllar.
This file is part of Hola Mundo Especial.
Hola Mundo Especial is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free Software Foundation,
either version 3 of the ... | 33 | 102 | 0.724518 | 168 | 1,089 | 4.696429 | 0.60119 | 0.057034 | 0.086185 | 0.072243 | 0.103929 | 0.070976 | 0 | 0 | 0 | 0 | 0 | 0.006857 | 0.196511 | 1,089 | 32 | 103 | 34.03125 | 0.894857 | 0.666667 | 0 | 0 | 0 | 0 | 0.125402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5846b72013188d68b2e5949bd8de4747ea8754d | 1,824 | py | Python | plugins/holland.lib.lvm/tests/xfs/test_snapshot.py | a5a351e7/holland | 58a12a5ce10206eed9434ab42b02217de29784bb | [
"BSD-3-Clause"
] | 1 | 2019-06-06T01:07:34.000Z | 2019-06-06T01:07:34.000Z | plugins/holland.lib.lvm/tests/xfs/test_snapshot.py | a5a351e7/holland | 58a12a5ce10206eed9434ab42b02217de29784bb | [
"BSD-3-Clause"
] | null | null | null | plugins/holland.lib.lvm/tests/xfs/test_snapshot.py | a5a351e7/holland | 58a12a5ce10206eed9434ab42b02217de29784bb | [
"BSD-3-Clause"
] | 2 | 2015-12-04T12:17:59.000Z | 2022-03-23T07:22:02.000Z | import shutil
from nose.tools import *
from holland.lib.lvm import LogicalVolume
from holland.lib.lvm.snapshot import *
from tests.constants import *
class TestSnapshot(object):
def setup(self):
self.tmpdir = tempfile.mkdtemp()
def teardown(self):
shutil.rmtree(self.tmpdir)
def test_snap... | 34.415094 | 98 | 0.616776 | 215 | 1,824 | 5.093023 | 0.334884 | 0.032877 | 0.035616 | 0.049315 | 0.357991 | 0.357991 | 0.357991 | 0.357991 | 0.290411 | 0.290411 | 0 | 0.002229 | 0.262061 | 1,824 | 52 | 99 | 35.076923 | 0.811293 | 0.010965 | 0 | 0.341463 | 0 | 0 | 0.129444 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 1 | 0.170732 | false | 0.02439 | 0.121951 | 0 | 0.317073 | 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 | 0 | 0 | 1 | 0 |
d585e6b9ba2ab30b151e86f51487d51f7096feb6 | 4,094 | py | Python | src/lecture10/output.py | wakky927/Computational-Engineering-B | 3720d96668a32dc73f38ed0bc8afe4705452de9e | [
"MIT"
] | 1 | 2021-05-03T09:11:35.000Z | 2021-05-03T09:11:35.000Z | src/lecture10/output.py | wakky927/Computational-Engineering-B | 3720d96668a32dc73f38ed0bc8afe4705452de9e | [
"MIT"
] | null | null | null | src/lecture10/output.py | wakky927/Computational-Engineering-B | 3720d96668a32dc73f38ed0bc8afe4705452de9e | [
"MIT"
] | null | null | null | import os
import numpy as np
def grid(xp, yp, m, n, dt):
os.makedirs(f'../../data/lecture10/dt_{round(dt, 3)}/{m}_{n}',
exist_ok=True)
grid_mat = np.stack([xp, yp])
np.savetxt(
f'../../data/lecture10/dt_{round(dt, 3)}/{m}_{n}/grid.csv',
grid_mat, delimiter=',', fmt='%.10f'... | 28.430556 | 79 | 0.445774 | 737 | 4,094 | 2.385346 | 0.118046 | 0.021615 | 0.063709 | 0.091013 | 0.627986 | 0.512514 | 0.449374 | 0.40785 | 0.40785 | 0.39306 | 0 | 0.057541 | 0.316561 | 4,094 | 143 | 80 | 28.629371 | 0.570765 | 0.172692 | 0 | 0.375 | 0 | 0.090909 | 0.275483 | 0.140267 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056818 | false | 0 | 0.022727 | 0 | 0.136364 | 0.068182 | 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 | 0 | 1 | 0 |
d586e0b9a83c43e39d9998f70d6cc8f9eb25632d | 1,655 | py | Python | mmaction/core/utils/dist_utils.py | sovrasov/mmaction2 | 055625bf6d6e06e9f811cc4f8b0332c18cebc98c | [
"Apache-2.0"
] | null | null | null | mmaction/core/utils/dist_utils.py | sovrasov/mmaction2 | 055625bf6d6e06e9f811cc4f8b0332c18cebc98c | [
"Apache-2.0"
] | null | null | null | mmaction/core/utils/dist_utils.py | sovrasov/mmaction2 | 055625bf6d6e06e9f811cc4f8b0332c18cebc98c | [
"Apache-2.0"
] | null | null | null | from collections import OrderedDict
import torch.distributed as dist
from torch._utils import _flatten_dense_tensors, _unflatten_dense_tensors, _take_tensors
from mmcv.runner import OptimizerHook
def _allreduce_coalesced(tensors, world_size, bucket_size_mb=-1):
if bucket_size_mb > 0:
bucket_size_bytes = ... | 34.479167 | 96 | 0.693656 | 213 | 1,655 | 5.037559 | 0.314554 | 0.102516 | 0.100652 | 0.036347 | 0.177074 | 0.132339 | 0.085741 | 0.085741 | 0 | 0 | 0 | 0.009368 | 0.225982 | 1,655 | 47 | 97 | 35.212766 | 0.828259 | 0 | 0 | 0.108108 | 0 | 0 | 0.01148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.108108 | 0 | 0.243243 | 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 | 0 | 0 | 1 | 0 |
d586f302acc1562c0c4ae689fc7c91008984ede8 | 469 | py | Python | app/assets.py | tobymccann/flask-base | 3a93a9171b07d97036d144df7c45397735789431 | [
"MIT"
] | null | null | null | app/assets.py | tobymccann/flask-base | 3a93a9171b07d97036d144df7c45397735789431 | [
"MIT"
] | null | null | null | app/assets.py | tobymccann/flask-base | 3a93a9171b07d97036d144df7c45397735789431 | [
"MIT"
] | null | null | null | from flask_assets import Bundle
app_css = Bundle('app.scss', filters='scss', output='css/app.css')
app_js = Bundle('app.js', filters='jsmin', output='js/app.js')
vendor_css = Bundle('vendor/semantic.css', 'vendor/components/*.css', output='css/vendor.css')
vendor_js = Bundle('vendor/jquery-3.1.1.min.js', 'vendor/se... | 42.636364 | 108 | 0.684435 | 70 | 469 | 4.514286 | 0.314286 | 0.126582 | 0.10443 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007177 | 0.108742 | 469 | 10 | 109 | 46.9 | 0.748804 | 0 | 0 | 0 | 0 | 0 | 0.481876 | 0.215352 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 | 0 | 0 | 1 | 0 |
d5874bed0cd3c033a4979987b99271b1f947ea02 | 375 | py | Python | ea_server/model/ea_function_model.py | tamirho/evo-delivery | 02bc62401d63f5321fa4bc1ee9a83409f9948c97 | [
"MIT"
] | null | null | null | ea_server/model/ea_function_model.py | tamirho/evo-delivery | 02bc62401d63f5321fa4bc1ee9a83409f9948c97 | [
"MIT"
] | 15 | 2022-01-27T09:58:59.000Z | 2022-03-29T17:19:18.000Z | ea_server/model/ea_function_model.py | tamirho/evo-delivery | 02bc62401d63f5321fa4bc1ee9a83409f9948c97 | [
"MIT"
] | 1 | 2021-12-26T11:38:50.000Z | 2021-12-26T11:38:50.000Z | from dataclasses import dataclass
from typing import Callable, List
# class representation of possible kwarg of a Deap function
@dataclass
class KwargModel:
name: str
type: str
description: str
# class representation of possible EA functions to choose
@dataclass
class EaFunctionModel:
function: Call... | 19.736842 | 59 | 0.762667 | 45 | 375 | 6.355556 | 0.577778 | 0.132867 | 0.146853 | 0.202797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197333 | 375 | 18 | 60 | 20.833333 | 0.950166 | 0.301333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.833333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d58793b80ef5f72c4f7f559049461feeea80ac8d | 107 | py | Python | tutorials/prompt/placeholder.py | chouette254/quo | 8979afd118e77d3d0f93f9fbe8711efada7158c5 | [
"MIT"
] | 5 | 2021-06-17T21:06:39.000Z | 2022-03-11T06:45:51.000Z | tutorials/prompt/placeholder.py | chouette254/quo | 8979afd118e77d3d0f93f9fbe8711efada7158c5 | [
"MIT"
] | 39 | 2021-07-19T19:36:18.000Z | 2022-02-23T14:55:08.000Z | tutorials/prompt/placeholder.py | secretuminc/quo | c4f77d52f015c612d32ed0fc2fc79545af598f10 | [
"MIT"
] | 1 | 2021-05-31T17:19:15.000Z | 2021-05-31T17:19:15.000Z | import quo
from quo.widget.placeholder import *
s = quo.Elicit()
s.elicit("You said :", placeholder=grey)
| 17.833333 | 40 | 0.728972 | 16 | 107 | 4.875 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130841 | 107 | 5 | 41 | 21.4 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d587af9d25e5c593cce6ae428161bb61a3dfe55f | 735 | py | Python | scripts/uwds3_core_node.py | underworlds-robot/uwds3_core | 3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7 | [
"MIT"
] | 1 | 2021-06-08T02:55:15.000Z | 2021-06-08T02:55:15.000Z | scripts/uwds3_core_node.py | underworlds-robot/uwds3_core | 3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7 | [
"MIT"
] | null | null | null | scripts/uwds3_core_node.py | underworlds-robot/uwds3_core | 3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import rospy
import tf2_ros
from tf2_ros import Buffer, TransformListener
import numpy as np
from sensor_msgs.msg import CameraInfo, Image, JointState
from uwds3_msgs.msg import SceneChangesStamped
from uwds3_core.underworlds_core import UnderworldsCore
import message_filt... | 26.25 | 57 | 0.721088 | 90 | 735 | 5.622222 | 0.544444 | 0.118577 | 0.051383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.183673 | 735 | 27 | 58 | 27.222222 | 0.83 | 0.057143 | 0 | 0 | 0 | 0 | 0.101302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.45 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
d58809adbdbf2a2fc2b413121b0fd593f92bae53 | 518 | py | Python | pavo_cristatus/symbol_signature_replacer/__init__.py | MATTHEWFRAZER/pavo_cristatus | a4b96c0eb6c454fbe38d2092e29f63457a4ee955 | [
"MIT"
] | null | null | null | pavo_cristatus/symbol_signature_replacer/__init__.py | MATTHEWFRAZER/pavo_cristatus | a4b96c0eb6c454fbe38d2092e29f63457a4ee955 | [
"MIT"
] | null | null | null | pavo_cristatus/symbol_signature_replacer/__init__.py | MATTHEWFRAZER/pavo_cristatus | a4b96c0eb6c454fbe38d2092e29f63457a4ee955 | [
"MIT"
] | null | null | null | from pavo_cristatus.dependency_injection.ploceidae_configurator import pavo_cristatus_dependency_wrapper
from picidae import lazily_echo, access_attribute
from pavo_cristatus.symbol_signature_replacer import symbol_signature_replacer
dependency_module_name = "symbol_signature_replacer"
__all__ = [dependency_module_n... | 39.846154 | 116 | 0.839768 | 56 | 518 | 7.196429 | 0.428571 | 0.129032 | 0.228288 | 0.148883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117761 | 518 | 12 | 117 | 43.166667 | 0.881838 | 0 | 0 | 0 | 0 | 0 | 0.069633 | 0.048356 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
d589965f796bd5e6baad650eddf2a9493846b256 | 3,438 | py | Python | scripts/getPrototypeInfo.py | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | 4 | 2016-06-03T18:41:43.000Z | 2020-04-17T20:28:58.000Z | scripts/getPrototypeInfo.py | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | scripts/getPrototypeInfo.py | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
#
# Copyright (c) 2014-2022 The Voxie Authors
#
# 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,... | 36.967742 | 100 | 0.689645 | 401 | 3,438 | 5.892768 | 0.428928 | 0.037241 | 0.029623 | 0.040203 | 0.066864 | 0.054168 | 0 | 0 | 0 | 0 | 0 | 0.003325 | 0.212624 | 3,438 | 92 | 101 | 37.369565 | 0.869597 | 0.370855 | 0 | 0.074074 | 0 | 0 | 0.152082 | 0.072064 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.092593 | 0 | 0.111111 | 0.259259 | 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 | 0 | 1 | 0 |
d589a037968bcf740aed2dcef5dbc252418fcbd4 | 1,782 | py | Python | apollo/components/event/models.py | Aukbit/apollo | 0afd1360f5a102335c55afaf138e0ecb96644128 | [
"MIT"
] | null | null | null | apollo/components/event/models.py | Aukbit/apollo | 0afd1360f5a102335c55afaf138e0ecb96644128 | [
"MIT"
] | null | null | null | apollo/components/event/models.py | Aukbit/apollo | 0afd1360f5a102335c55afaf138e0ecb96644128 | [
"MIT"
] | null | null | null | import uuid
from datetime import datetime
import time
import simplejson as json
from blinker import signal
from cassandra.cqlengine import columns, ValidationError
from cassandra.cqlengine.models import Model
from .general import ACTIONS_MAP
class Event(Model):
"""
Event
"""
__table_name__ = 'event'
... | 26.597015 | 88 | 0.662177 | 204 | 1,782 | 5.509804 | 0.387255 | 0.064057 | 0.039146 | 0.030249 | 0.128114 | 0.088968 | 0.088968 | 0.088968 | 0.088968 | 0 | 0 | 0.000717 | 0.217172 | 1,782 | 66 | 89 | 27 | 0.805018 | 0.012907 | 0 | 0.093023 | 0 | 0 | 0.064252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.186047 | 0 | 0.627907 | 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 |
d58a3c01fcf5f3a56967acb56a0aa33122e205fa | 78 | py | Python | nordestao/tests/fixtures.py | intelivix/pyne-workshop-scraping-web | c0696b669934eef2dbda81da3b7c058810041fa5 | [
"MIT"
] | null | null | null | nordestao/tests/fixtures.py | intelivix/pyne-workshop-scraping-web | c0696b669934eef2dbda81da3b7c058810041fa5 | [
"MIT"
] | null | null | null | nordestao/tests/fixtures.py | intelivix/pyne-workshop-scraping-web | c0696b669934eef2dbda81da3b7c058810041fa5 | [
"MIT"
] | null | null | null |
import pytest
@pytest.fixture
def fixture_exemplo():
return 'not none'
| 9.75 | 22 | 0.717949 | 10 | 78 | 5.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 78 | 7 | 23 | 11.142857 | 0.873016 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0.25 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
d58bfd0e20ee60c02c3420764a7d8d41f3f95eee | 387 | py | Python | 2-4.bool_opr.py | iwhgao/python_practise | b85e5ffd8703faa04c5f1bd03c09ea4522e238f2 | [
"Apache-2.0"
] | 1 | 2017-08-30T09:06:41.000Z | 2017-08-30T09:06:41.000Z | 2-4.bool_opr.py | iwhgao/python_practise | b85e5ffd8703faa04c5f1bd03c09ea4522e238f2 | [
"Apache-2.0"
] | null | null | null | 2-4.bool_opr.py | iwhgao/python_practise | b85e5ffd8703faa04c5f1bd03c09ea4522e238f2 | [
"Apache-2.0"
] | 1 | 2018-10-08T06:13:51.000Z | 2018-10-08T06:13:51.000Z | #!/usr/bin/python
# -*- coding:utf-8 -*-
# ---------------------------
# Author: deangao
# Copyright: 2016 deangao
# Version: v1.0.0
# Created: 2016/2/15
# ---------------------------
__author__ = 'deangao'
'''
布尔值操作-只要是一些逻辑运算操作
'''
# ---产生bool值---
bool1 = True
bool2 = (2 > 3)
print bool1, bool2
# ---逻辑运算---
# --... | 13.821429 | 29 | 0.5323 | 45 | 387 | 4.488889 | 0.644444 | 0.148515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.160207 | 387 | 27 | 30 | 14.333333 | 0.541538 | 0.524548 | 0 | 0 | 0 | 0 | 0.047297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.571429 | 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 | 1 | 0 | 2 |
d58d09288e8a693fa23a5cc7bf11d95086946be2 | 11,038 | py | Python | src/sos/substep_executor.py | pgcudahy/sos | ee902841003c7630db501101038f370650955ef9 | [
"BSD-3-Clause"
] | null | null | null | src/sos/substep_executor.py | pgcudahy/sos | ee902841003c7630db501101038f370650955ef9 | [
"BSD-3-Clause"
] | null | null | null | src/sos/substep_executor.py | pgcudahy/sos | ee902841003c7630db501101038f370650955ef9 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright (c) Bo Peng and the University of Texas MD Anderson Cancer Center
# Distributed under the terms of the 3-clause BSD License.
import contextlib
import subprocess
import sys
import os
from io import StringIO
import zmq
from .controller import close_socket, create_socket, send_messa... | 35.152866 | 90 | 0.590959 | 1,294 | 11,038 | 4.867852 | 0.23493 | 0.017146 | 0.028576 | 0.019051 | 0.293856 | 0.233212 | 0.221305 | 0.200191 | 0.184632 | 0.161772 | 0 | 0.002549 | 0.324606 | 11,038 | 313 | 91 | 35.265176 | 0.842388 | 0.255662 | 0 | 0.333333 | 0 | 0 | 0.103512 | 0.003848 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.013333 | false | 0 | 0.053333 | 0 | 0.097778 | 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 | 0 | 0 | 1 | 0 |
d58d12ad60defa24864c4dcc70d63506876a50bc | 830 | py | Python | pytorch-frontend/caffe2/python/test/fakefp16_transform_test.py | AndreasKaratzas/stonne | 2915fcc46cc94196303d81abbd1d79a56d6dd4a9 | [
"MIT"
] | 40 | 2021-06-01T07:37:59.000Z | 2022-03-25T01:42:09.000Z | pytorch-frontend/caffe2/python/test/fakefp16_transform_test.py | AndreasKaratzas/stonne | 2915fcc46cc94196303d81abbd1d79a56d6dd4a9 | [
"MIT"
] | 14 | 2021-06-01T11:52:46.000Z | 2022-03-25T02:13:08.000Z | pytorch-frontend/caffe2/python/test/fakefp16_transform_test.py | AndreasKaratzas/stonne | 2915fcc46cc94196303d81abbd1d79a56d6dd4a9 | [
"MIT"
] | 7 | 2021-07-20T19:34:26.000Z | 2022-03-13T21:07:36.000Z | from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import unittest
from caffe2.python.fakefp16_transform_lib import fakeFp16FuseOps
from caffe2.python import core
class Transformer(unittest.TestCase):
def test_fuse(self):
net_swish = core.Net("tes... | 33.2 | 71 | 0.654217 | 94 | 830 | 5.468085 | 0.457447 | 0.077821 | 0.093385 | 0.062257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020249 | 0.226506 | 830 | 24 | 72 | 34.583333 | 0.780374 | 0 | 0 | 0 | 0 | 0 | 0.10241 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.047619 | false | 0 | 0.285714 | 0 | 0.380952 | 0.095238 | 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 | 0 | 1 | 0 |
d58e3dacf06c22cbf3e53b3c6fce879593ab1ce8 | 12,546 | py | Python | bert_ptrnet_coqa.py | yumere/for-QuAC | af1594a0856e20a526e3c3f383b1f8fbfdf7ddd3 | [
"MIT"
] | 2 | 2019-07-30T15:38:24.000Z | 2019-08-08T15:49:13.000Z | bert_ptrnet_coqa.py | yumere/for-QuAC | af1594a0856e20a526e3c3f383b1f8fbfdf7ddd3 | [
"MIT"
] | null | null | null | bert_ptrnet_coqa.py | yumere/for-QuAC | af1594a0856e20a526e3c3f383b1f8fbfdf7ddd3 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
import argparse
import logging
import os
import math
import numpy as np
import torch
from pytorch_transformers import AdamW, WarmupLinearSchedule
from pytorch_transformers import BertTokenizer
from pytorch_transformers.modeling_bert import BertPreTraine... | 45.129496 | 155 | 0.640682 | 1,658 | 12,546 | 4.583233 | 0.181544 | 0.034215 | 0.053691 | 0.012502 | 0.376629 | 0.335044 | 0.296355 | 0.278589 | 0.257139 | 0.231478 | 0 | 0.012513 | 0.241989 | 12,546 | 277 | 156 | 45.292419 | 0.78654 | 0.026303 | 0 | 0.113744 | 0 | 0 | 0.071194 | 0.002376 | 0 | 0 | 0 | 0.00361 | 0.004739 | 1 | 0.023697 | false | 0 | 0.080569 | 0.004739 | 0.127962 | 0.023697 | 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 | 0 | 1 | 0 |
d58e44cff21b274169bf4e894702c779f915b4ea | 2,192 | py | Python | sdk/containerregistry/azure-containerregistry/samples/sample_repository_actions.py | romahamu/azure-sdk-for-python | a57c9f73b9121f79d317e1679b81fd460d6a25b8 | [
"MIT"
] | 1 | 2021-04-05T17:38:42.000Z | 2021-04-05T17:38:42.000Z | sdk/containerregistry/azure-containerregistry/samples/sample_repository_actions.py | romahamu/azure-sdk-for-python | a57c9f73b9121f79d317e1679b81fd460d6a25b8 | [
"MIT"
] | null | null | null | sdk/containerregistry/azure-containerregistry/samples/sample_repository_actions.py | romahamu/azure-sdk-for-python | a57c9f73b9121f79d317e1679b81fd460d6a25b8 | [
"MIT"
] | 1 | 2021-12-18T20:01:22.000Z | 2021-12-18T20:01:22.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 35.934426 | 94 | 0.662865 | 223 | 2,192 | 6.35426 | 0.408072 | 0.105857 | 0.093155 | 0.104446 | 0.249824 | 0.249824 | 0.249824 | 0.156669 | 0.156669 | 0.156669 | 0 | 0.00056 | 0.184763 | 2,192 | 60 | 95 | 36.533333 | 0.792389 | 0.206204 | 0 | 0.176471 | 0 | 0 | 0.050808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.029412 | 0 | 0.205882 | 0.382353 | 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 | 0 | 1 | 0 |
d58f37dc64174329c72118114782bf793424350d | 15,588 | py | Python | python/ray/rllib/ddpg/models.py | songqing/ray | 166000b089ee15d44635ebca00f12320f51ce587 | [
"Apache-2.0"
] | 1 | 2018-06-25T08:00:51.000Z | 2018-06-25T08:00:51.000Z | python/ray/rllib/ddpg/models.py | songqing/ray | 166000b089ee15d44635ebca00f12320f51ce587 | [
"Apache-2.0"
] | 1 | 2018-01-26T05:11:04.000Z | 2018-01-26T05:11:04.000Z | python/ray/rllib/ddpg/models.py | songqing/ray | 166000b089ee15d44635ebca00f12320f51ce587 | [
"Apache-2.0"
] | 1 | 2020-10-16T08:42:32.000Z | 2020-10-16T08:42:32.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import tensorflow as tf
import tensorflow.contrib.layers as layers
from ray.rllib.models import ModelCatalog
def _build_p_network(registry, inputs, dim_actions, config):
"""
map a... | 39.765306 | 79 | 0.608417 | 2,006 | 15,588 | 4.422233 | 0.147557 | 0.018036 | 0.020291 | 0.019276 | 0.436591 | 0.376959 | 0.332995 | 0.255777 | 0.225566 | 0.183632 | 0 | 0.009169 | 0.300359 | 15,588 | 391 | 80 | 39.867008 | 0.804236 | 0.096869 | 0 | 0.214286 | 0 | 0 | 0.032797 | 0 | 0 | 0 | 0 | 0 | 0.003571 | 1 | 0.057143 | false | 0 | 0.071429 | 0.010714 | 0.178571 | 0.003571 | 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 | 0 | 1 | 0 |
d590209692c1d7210deccd9547439bea4bd197cf | 51,866 | py | Python | MindSPONGE/mindsponge/md/simulation.py | mindspore-ai/mindscience | b5269245915695de2d99fb290fef662c241db189 | [
"Apache-2.0"
] | 3 | 2021-11-10T06:17:50.000Z | 2022-03-21T14:25:30.000Z | MindSPONGE/mindsponge/md/simulation.py | mindspore-ai/mindscience | b5269245915695de2d99fb290fef662c241db189 | [
"Apache-2.0"
] | null | null | null | MindSPONGE/mindsponge/md/simulation.py | mindspore-ai/mindscience | b5269245915695de2d99fb290fef662c241db189 | [
"Apache-2.0"
] | 1 | 2021-12-05T11:41:29.000Z | 2021-12-05T11:41:29.000Z | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 62.71584 | 120 | 0.578433 | 6,119 | 51,866 | 4.58065 | 0.069946 | 0.044739 | 0.020336 | 0.031467 | 0.66499 | 0.571016 | 0.486782 | 0.41953 | 0.368297 | 0.330622 | 0 | 0.024143 | 0.331566 | 51,866 | 826 | 121 | 62.791768 | 0.784332 | 0.028072 | 0 | 0.264498 | 0 | 0.008487 | 0.018627 | 0.006262 | 0 | 0 | 0 | 0.001211 | 0.001414 | 1 | 0.032532 | false | 0 | 0.029703 | 0 | 0.084866 | 0.022631 | 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 | 0 | 1 | 0 |
d593ab3607b07be083ccac7468de89c6a5f553aa | 346 | py | Python | download_wmt16_en_de_data.py | kgarg8/NMT-RNN | 3c97f94dc244e7fbe188204793651ade36f4dced | [
"MIT"
] | 1 | 2021-10-01T15:03:35.000Z | 2021-10-01T15:03:35.000Z | download_wmt16_en_de_data.py | kgarg8/NMT-RNN | 3c97f94dc244e7fbe188204793651ade36f4dced | [
"MIT"
] | null | null | null | download_wmt16_en_de_data.py | kgarg8/NMT-RNN | 3c97f94dc244e7fbe188204793651ade36f4dced | [
"MIT"
] | null | null | null | from datasets import load_dataset
dataset = load_dataset('wmt16', 'de-en')
base = 'data/wmt16_en_de/'
with open(base + 'test.en','w') as en:
for data in dataset['test']['translation']:
en.write(data['en']+'\n')
with open(base + 'test.de','w') as de:
for data in dataset['test']['translation']:
... | 28.833333 | 47 | 0.615607 | 54 | 346 | 3.87037 | 0.37037 | 0.105263 | 0.114833 | 0.15311 | 0.296651 | 0.296651 | 0 | 0 | 0 | 0 | 0 | 0.013937 | 0.17052 | 346 | 12 | 48 | 28.833333 | 0.714286 | 0 | 0 | 0.222222 | 0 | 0 | 0.233429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 | 0 | 0 | 1 | 0 |
d594e3e8fe7c45b6ff37f0de5953a37cae49e1bc | 1,771 | py | Python | WordVectorFetcher.py | whosxavierwu/Chinese-Word-Vectors | 7841eb6a4ec235662828b3cb13f45956c28f2a3c | [
"Apache-2.0"
] | null | null | null | WordVectorFetcher.py | whosxavierwu/Chinese-Word-Vectors | 7841eb6a4ec235662828b3cb13f45956c28f2a3c | [
"Apache-2.0"
] | null | null | null | WordVectorFetcher.py | whosxavierwu/Chinese-Word-Vectors | 7841eb6a4ec235662828b3cb13f45956c28f2a3c | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
# Created by: wuzewei
# Created on: 2019/3/25 0025
from gensim.models import KeyedVectors
import numpy as np
from pyhanlp import HanLP
class WordVectorFetcher:
def __init__(self, filename):
self.wv_filename = filename
self.wv = None
def init(self):
self.wv = Ke... | 33.415094 | 126 | 0.667984 | 235 | 1,771 | 4.838298 | 0.378723 | 0.058047 | 0.074758 | 0.060686 | 0.253298 | 0.209323 | 0.079156 | 0.079156 | 0.079156 | 0 | 0 | 0.037901 | 0.225296 | 1,771 | 52 | 127 | 34.057692 | 0.790816 | 0.108978 | 0 | 0 | 0 | 0.027778 | 0.173248 | 0.157325 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0 | 0.083333 | 0 | 0.361111 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d59522b920665ba6dfb6d6975bb0f59df3dd2148 | 732 | py | Python | scipy/fftpack/helper.py | lesserwhirls/scipy-cwt | ee673656d879d9356892621e23ed0ced3d358621 | [
"BSD-3-Clause"
] | 8 | 2015-10-07T00:37:32.000Z | 2022-01-21T17:02:33.000Z | scipy/fftpack/helper.py | lesserwhirls/scipy-cwt | ee673656d879d9356892621e23ed0ced3d358621 | [
"BSD-3-Clause"
] | null | null | null | scipy/fftpack/helper.py | lesserwhirls/scipy-cwt | ee673656d879d9356892621e23ed0ced3d358621 | [
"BSD-3-Clause"
] | 8 | 2015-05-09T14:23:57.000Z | 2018-11-15T05:56:00.000Z | __all__ = ['fftshift', 'ifftshift', 'fftfreq', 'rfftfreq']
from numpy import array
from numpy.fft.helper import fftshift, ifftshift, fftfreq
def rfftfreq(n, d=1.0):
""" rfftfreq(n, d=1.0) -> f
DFT sample frequencies (for usage with rfft,irfft).
The returned float array contains the frequency bins in
... | 34.857143 | 86 | 0.61612 | 139 | 732 | 3.215827 | 0.453237 | 0.03132 | 0.026846 | 0.035794 | 0.152125 | 0.098434 | 0.098434 | 0.06264 | 0.06264 | 0.06264 | 0 | 0.050523 | 0.215847 | 732 | 20 | 87 | 36.6 | 0.728223 | 0.464481 | 0 | 0 | 0 | 0 | 0.241573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d595973d050f83ac64d0631fb100031b6ece759a | 158 | py | Python | micro_shop/staff/urls.py | SlavaSkvortsov/micro-shop | fd8ac23550da9be277a9234464fdab1213356f3d | [
"MIT"
] | 1 | 2021-06-17T15:11:03.000Z | 2021-06-17T15:11:03.000Z | micro_shop/staff/urls.py | SlavaSkvortsov/micro-shop | fd8ac23550da9be277a9234464fdab1213356f3d | [
"MIT"
] | 7 | 2020-06-30T11:25:28.000Z | 2021-06-09T18:51:55.000Z | micro_shop/staff/urls.py | SlavaSkvortsov/micro-shop | fd8ac23550da9be277a9234464fdab1213356f3d | [
"MIT"
] | 5 | 2020-10-02T20:01:43.000Z | 2021-06-21T08:57:29.000Z | from django.urls import path
from .views import UserProfileUpdate
urlpatterns = [
path('<int:pk>/', UserProfileUpdate.as_view(), name='profile_url')
]
| 17.555556 | 70 | 0.727848 | 19 | 158 | 5.947368 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139241 | 158 | 8 | 71 | 19.75 | 0.830882 | 0 | 0 | 0 | 0 | 0 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d5984597e026da67fe45ea35e3d5d4f7f24dc819 | 1,083 | py | Python | common_functions.py | KirillYabl/Comics_publisher | 85df6020f24fc5984f28ce0f875485e4f421f3a2 | [
"MIT"
] | null | null | null | common_functions.py | KirillYabl/Comics_publisher | 85df6020f24fc5984f28ce0f875485e4f421f3a2 | [
"MIT"
] | null | null | null | common_functions.py | KirillYabl/Comics_publisher | 85df6020f24fc5984f28ce0f875485e4f421f3a2 | [
"MIT"
] | null | null | null | import requests
def load_image(url, path):
"""Load image by url to file.
Params
--------------------------------------------
:param url: str
Url with image.
:param path: str
Path, where image will be saved.
--------------------------------------------
"""
response = request... | 25.186047 | 69 | 0.597415 | 135 | 1,083 | 4.703704 | 0.414815 | 0.075591 | 0.089764 | 0.127559 | 0.211024 | 0.154331 | 0.154331 | 0.154331 | 0 | 0 | 0 | 0.004768 | 0.2253 | 1,083 | 42 | 70 | 25.785714 | 0.752086 | 0.422899 | 0 | 0.266667 | 0 | 0 | 0.077758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d599ecfbc81eccc7acb2cf1afb0c4d9b6fde3f7a | 736 | py | Python | input_output/gpio_input.py | rakibulmdalam/IOT-Hardware-Abstraction-Layer | 4d344a82aa94ae561a7c2889f942c6a892e6810e | [
"MIT"
] | 1 | 2018-06-12T15:40:45.000Z | 2018-06-12T15:40:45.000Z | input_output/gpio_input.py | UyumazHakan/Hardware-Abstraction-Platform | 52f13df333351516a88497e4a655ee1333abe7eb | [
"MIT"
] | null | null | null | input_output/gpio_input.py | UyumazHakan/Hardware-Abstraction-Platform | 52f13df333351516a88497e4a655ee1333abe7eb | [
"MIT"
] | null | null | null | from .gpio_input_output import *
from time import sleep
from threading import Timer, Thread
class GPIOInput(GPIOInputOutput):
def __init__(self, config):
super(GPIOInput, self).__init__(config)
if self.config["gpiopullupdown"] != "none":
GPIO.setup(self.pin, GPIO.IN, \
pull_up_down = GPIO.PUD_UP if self.co... | 27.259259 | 86 | 0.736413 | 108 | 736 | 4.814815 | 0.398148 | 0.080769 | 0.063462 | 0.1 | 0.180769 | 0.180769 | 0 | 0 | 0 | 0 | 0 | 0.004724 | 0.137228 | 736 | 26 | 87 | 28.307692 | 0.814173 | 0 | 0 | 0.1 | 0 | 0 | 0.046322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.15 | 0 | 0.45 | 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 | 0 | 0 | 1 | 0 |
d59beefcb5d771dbc0b133551011f217f29ab97f | 964 | py | Python | os_scrapy_linkextractor/lx_extensions/regex.py | Ghamster0/scrapy-linkextractor | 11cd09c30e1a0d7f18474f240dc974488fb17c63 | [
"MIT"
] | 2 | 2020-07-20T03:54:01.000Z | 2020-07-29T12:00:59.000Z | os_scrapy_linkextractor/lx_extensions/regex.py | Ghamster0/os-scrapy-linkextractor | 11cd09c30e1a0d7f18474f240dc974488fb17c63 | [
"MIT"
] | 1 | 2020-07-21T03:14:02.000Z | 2020-07-21T03:14:02.000Z | os_scrapy_linkextractor/lx_extensions/regex.py | Ghamster0/os-scrapy-linkextractor | 11cd09c30e1a0d7f18474f240dc974488fb17c63 | [
"MIT"
] | 1 | 2020-07-21T01:17:56.000Z | 2020-07-21T01:17:56.000Z | from os_scrapy_linkextractor.linkextractors.regex import RegexLinkExtractor
from os_scrapy_linkextractor.lx_extensions import LinkExtractorExtension
class ReLinkExtractorExtension(LinkExtractorExtension):
def __init__(self):
self.name = "re"
super(ReLinkExtractorExtension, self).__init__(RegexLink... | 34.428571 | 88 | 0.640041 | 112 | 964 | 5.25 | 0.455357 | 0.054422 | 0.040816 | 0.085034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258299 | 964 | 27 | 89 | 35.703704 | 0.822378 | 0 | 0 | 0 | 0 | 0 | 0.067427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.090909 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d59cd017a36d985975d03a9f718909fa314e7e24 | 475 | py | Python | 01_binary_search.py | burakaslantas/Grokking-Algorithms | 2ecf73a683b11288d419cc1d8dc665ab2240e8bc | [
"MIT"
] | null | null | null | 01_binary_search.py | burakaslantas/Grokking-Algorithms | 2ecf73a683b11288d419cc1d8dc665ab2240e8bc | [
"MIT"
] | null | null | null | 01_binary_search.py | burakaslantas/Grokking-Algorithms | 2ecf73a683b11288d419cc1d8dc665ab2240e8bc | [
"MIT"
] | null | null | null | def binary_search(array, searched_value):
start = 0
end = len(array) - 1
while(start <= end):
mid = (start + end) // 2
guess = array[mid]
if(searched_value == guess):
return mid
elif(searched_value < guess):
end = mid - 1
elif(searched_value >... | 22.619048 | 41 | 0.555789 | 66 | 475 | 3.848485 | 0.393939 | 0.204724 | 0.212598 | 0.173228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064417 | 0.313684 | 475 | 20 | 42 | 23.75 | 0.714724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.176471 | 0.117647 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d59d2c94661a033f56d6a553671b7ccc14da900f | 1,210 | py | Python | variables.py | FoRavel/test-python | 8c4f01a7f1acd2c85893f7d53880a8c26ff62a24 | [
"Unlicense"
] | null | null | null | variables.py | FoRavel/test-python | 8c4f01a7f1acd2c85893f7d53880a8c26ff62a24 | [
"Unlicense"
] | null | null | null | variables.py | FoRavel/test-python | 8c4f01a7f1acd2c85893f7d53880a8c26ff62a24 | [
"Unlicense"
] | null | null | null |
#Exercice 4
t1=[100,28,31,1,31,30,31,31,30,31,30,31]
#a)Compter nombre éléments non nuls
compteur = 0
for i in range(len(t1)):
if t1[i] != 0:
compteur = compteur + 1
print(compteur)
#b)Le plus grand élément
max = max(t1)
#c)La position p du plus petit élément
plusPetit = min(t1)
p = 0
for i in range(len(... | 20.862069 | 83 | 0.642975 | 197 | 1,210 | 3.949239 | 0.375635 | 0.030848 | 0.046272 | 0.084833 | 0.160668 | 0.142674 | 0.083548 | 0.083548 | 0.083548 | 0.056555 | 0 | 0.063852 | 0.197521 | 1,210 | 57 | 84 | 21.22807 | 0.737384 | 0 | 0 | 0.184211 | 0 | 0 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.184211 | 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 |
d5a0090aa43ff53c9b28a557356175161cf42d2f | 736 | py | Python | falseSubmission.py | suhailnajeeb/pneumothorax-lungnet | eb3cafcef74e3840a5b013727d6cb39d0062f7ee | [
"MIT"
] | null | null | null | falseSubmission.py | suhailnajeeb/pneumothorax-lungnet | eb3cafcef74e3840a5b013727d6cb39d0062f7ee | [
"MIT"
] | null | null | null | falseSubmission.py | suhailnajeeb/pneumothorax-lungnet | eb3cafcef74e3840a5b013727d6cb39d0062f7ee | [
"MIT"
] | null | null | null | import pandas as pd
import glob2
import os
PATH_VAL = '..\\Data\\dicom-images-test\\'
CSVFILE = '..\\Data\\kanvari.csv'
SUBCSV = '..\\out\\submission.csv'
val = glob2.glob(os.path.join(PATH_VAL,'**/*.dcm'))
df = pd.read_csv('..\\Data\\kanvari.csv')
ids = []
rles = []
# Issue: f = '1.2.276.0.7230010.3.1.4.8323329.... | 20.444444 | 69 | 0.558424 | 110 | 736 | 3.672727 | 0.536364 | 0.037129 | 0.069307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.222826 | 736 | 36 | 70 | 20.444444 | 0.615385 | 0.091033 | 0 | 0.076923 | 0 | 0 | 0.211078 | 0.140719 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.115385 | 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 | 0 | 0 | 1 | 0 |
d5a07c9caf586abadb82cefa679b347214d86c90 | 12,967 | py | Python | aizynthfinder/analysis/routes.py | ShantamShorewala/aizynthfinder | 6b15d5846558b14c4ce3c353727d9d676af7f6fb | [
"MIT"
] | 219 | 2020-06-15T08:04:53.000Z | 2022-03-31T09:02:47.000Z | aizynthfinder/analysis/routes.py | ShantamShorewala/aizynthfinder | 6b15d5846558b14c4ce3c353727d9d676af7f6fb | [
"MIT"
] | 56 | 2020-08-14T14:50:42.000Z | 2022-03-22T12:49:06.000Z | aizynthfinder/analysis/routes.py | ShantamShorewala/aizynthfinder | 6b15d5846558b14c4ce3c353727d9d676af7f6fb | [
"MIT"
] | 58 | 2020-06-15T13:36:42.000Z | 2022-03-21T06:18:02.000Z | """ Module containing classes to store and manipulate collections of synthetic routes.
"""
from __future__ import annotations
from typing import TYPE_CHECKING
import numpy as np
from route_distances.clustering import ClusteringHelper
from route_distances.route_distances import route_distances_calculator
from aizynthf... | 37.915205 | 102 | 0.632529 | 1,551 | 12,967 | 5.121857 | 0.166989 | 0.058912 | 0.0321 | 0.016742 | 0.171198 | 0.111908 | 0.077039 | 0.060675 | 0.060675 | 0.060675 | 0 | 0.001279 | 0.276625 | 12,967 | 341 | 103 | 38.026393 | 0.845629 | 0.244004 | 0 | 0.164319 | 0 | 0 | 0.039785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098592 | false | 0 | 0.051643 | 0.00939 | 0.253521 | 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 | 0 | 0 | 1 | 0 |
d5a1131395736b2e09683a257a59f8aeb1dd31b9 | 15,570 | py | Python | specutils/manipulation/resample.py | parejkoj/specutils | 53a00def68882d9e91044d00a043f1bff1a046fd | [
"BSD-3-Clause"
] | null | null | null | specutils/manipulation/resample.py | parejkoj/specutils | 53a00def68882d9e91044d00a043f1bff1a046fd | [
"BSD-3-Clause"
] | null | null | null | specutils/manipulation/resample.py | parejkoj/specutils | 53a00def68882d9e91044d00a043f1bff1a046fd | [
"BSD-3-Clause"
] | null | null | null | from abc import ABC, abstractmethod
import numpy as np
from scipy.interpolate import CubicSpline
from astropy.units import Quantity
from astropy.nddata import StdDevUncertainty, VarianceUncertainty, InverseVariance
from ..spectra import Spectrum1D
__all__ = ['ResamplerBase', 'FluxConservingResampler',
'Li... | 38.06846 | 108 | 0.634297 | 1,874 | 15,570 | 5.113127 | 0.187834 | 0.045085 | 0.021916 | 0.021812 | 0.547694 | 0.534961 | 0.514506 | 0.497913 | 0.497913 | 0.47871 | 0 | 0.017728 | 0.282659 | 15,570 | 408 | 109 | 38.161765 | 0.840183 | 0.511111 | 0 | 0.342593 | 0 | 0 | 0.040717 | 0.012105 | 0 | 0 | 0 | 0.009804 | 0 | 1 | 0.138889 | false | 0 | 0.055556 | 0 | 0.351852 | 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 | 0 | 0 | 1 | 0 |
d5a1f8e45bc2fd24ac139bfff6fce49d306cde0d | 907 | py | Python | gmso/tests/test_gsd.py | zijiewu3/gmso | 49217ca8daa6c8b01f6bc667d271a321b6f6f16a | [
"MIT"
] | 1 | 2020-11-08T23:50:09.000Z | 2020-11-08T23:50:09.000Z | gmso/tests/test_gsd.py | zijiewu3/gmso | 49217ca8daa6c8b01f6bc667d271a321b6f6f16a | [
"MIT"
] | null | null | null | gmso/tests/test_gsd.py | zijiewu3/gmso | 49217ca8daa6c8b01f6bc667d271a321b6f6f16a | [
"MIT"
] | null | null | null | import unyt as u
import pytest
from gmso.formats.gsd import write_gsd
from gmso.external.convert_parmed import from_parmed
from gmso.tests.base_test import BaseTest
from gmso.utils.io import get_fn
from gmso.utils.io import import_, has_gsd, has_parmed
if has_parmed:
pmd = import_('parmed')
@pytest.mark.skipif(... | 30.233333 | 69 | 0.702315 | 144 | 907 | 4.229167 | 0.368056 | 0.065681 | 0.07225 | 0.049261 | 0.390805 | 0.19376 | 0.19376 | 0.19376 | 0.19376 | 0.19376 | 0 | 0.009447 | 0.183021 | 907 | 29 | 70 | 31.275862 | 0.812416 | 0.047409 | 0 | 0.285714 | 0 | 0 | 0.11949 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.095238 | false | 0 | 0.380952 | 0 | 0.52381 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
d5a265575d027993c7c43d372f8dbcbce4bf1072 | 3,283 | py | Python | src/utils/utilities.py | ShivangMathur1/Face-Recognition-System | 3a7eb1af8830d6c36218652ed30edd8a49b7bb4d | [
"MIT"
] | null | null | null | src/utils/utilities.py | ShivangMathur1/Face-Recognition-System | 3a7eb1af8830d6c36218652ed30edd8a49b7bb4d | [
"MIT"
] | 3 | 2022-01-15T06:46:26.000Z | 2022-02-23T11:14:03.000Z | src/utils/utilities.py | ShivangMathur1/Face-Recognition-System | 3a7eb1af8830d6c36218652ed30edd8a49b7bb4d | [
"MIT"
] | 3 | 2022-01-11T08:33:15.000Z | 2022-02-21T09:26:26.000Z | from json import load
import os
from datetime import datetime
import cv2
import requests
def get_user_id(name, creds):
student_url = 'http://127.0.0.1:8080/api/students'
student_details = requests.get(student_url, data={'first_name': name}, auth=(creds[0], creds[1]), params={'first_name': name}).json()
if ... | 33.845361 | 163 | 0.570819 | 460 | 3,283 | 3.96087 | 0.258696 | 0.032931 | 0.018112 | 0.023052 | 0.254665 | 0.130626 | 0.130626 | 0.130626 | 0.108672 | 0.108672 | 0 | 0.027425 | 0.255864 | 3,283 | 97 | 164 | 33.845361 | 0.718379 | 0.194639 | 0 | 0.0625 | 0 | 0 | 0.109631 | 0.011801 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078125 | false | 0.03125 | 0.078125 | 0 | 0.21875 | 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 | 0 | 0 | 1 | 0 |
d5a43ee3c91d95efecf4342234f30ff3f2618e78 | 3,584 | py | Python | tests/test_models/test_stylegan1.py | shinya7y/mmgeneration | c3b9e0af29d0117e27b18b712b0ddbf343275859 | [
"Apache-2.0"
] | 1 | 2021-05-27T13:04:41.000Z | 2021-05-27T13:04:41.000Z | tests/test_models/test_stylegan1.py | shinya7y/mmgeneration | c3b9e0af29d0117e27b18b712b0ddbf343275859 | [
"Apache-2.0"
] | null | null | null | tests/test_models/test_stylegan1.py | shinya7y/mmgeneration | c3b9e0af29d0117e27b18b712b0ddbf343275859 | [
"Apache-2.0"
] | null | null | null | import math
import pytest
import torch
from mmgen.models import build_model
# from mmgen.models.gans import StyleGANV1
class TestStyleGANV1:
@classmethod
def setup_class(cls):
cls.generator_cfg = dict(
type='StyleGANv1Generator', out_size=32, style_channels=512)
cls.discriminat... | 37.333333 | 79 | 0.538225 | 434 | 3,584 | 4.237327 | 0.262673 | 0.045677 | 0.073953 | 0.091354 | 0.555737 | 0.555737 | 0.555737 | 0.555737 | 0.555737 | 0.555737 | 0 | 0.066183 | 0.34654 | 3,584 | 95 | 80 | 37.726316 | 0.719044 | 0.022321 | 0 | 0.444444 | 0 | 0 | 0.064571 | 0.012286 | 0 | 0 | 0 | 0 | 0.148148 | 1 | 0.037037 | false | 0 | 0.049383 | 0 | 0.098765 | 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 | 0 | 0 | 1 | 0 |
d5a5bfc69f63922f80d7abc5218c00111e9972c6 | 7,658 | py | Python | generated-libraries/python/netapp/active_directory/__init__.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | 2 | 2017-03-28T15:31:26.000Z | 2018-08-16T22:15:18.000Z | generated-libraries/python/netapp/active_directory/__init__.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | generated-libraries/python/netapp/active_directory/__init__.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | from netapp.connection import NaConnection
from active_directory_account_get_iter_key_td import ActiveDirectoryAccountGetIterKeyTd # 1 properties
from active_directory_account_config import ActiveDirectoryAccountConfig # 5 properties
class ActiveDirectoryConnection(NaConnection):
def active_directory_account_... | 51.743243 | 156 | 0.644685 | 823 | 7,658 | 5.884569 | 0.18712 | 0.111501 | 0.127194 | 0.042949 | 0.561429 | 0.532521 | 0.463143 | 0.42804 | 0.415445 | 0.373116 | 0 | 0.000726 | 0.280883 | 7,658 | 147 | 157 | 52.095238 | 0.8787 | 0.473884 | 0 | 0.510638 | 0 | 0 | 0.229249 | 0.090301 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12766 | false | 0.234043 | 0.06383 | 0 | 0.340426 | 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 |
d5a5d9f285d99e4d51d173ac72c21fd4c540fc07 | 7,891 | py | Python | script/src/page_categories/page_categories.py | ncatlab/nlab | 8e35d93f6e34dd3d21c59bbb76b40b334365deda | [
"Ruby"
] | 78 | 2015-05-14T06:27:13.000Z | 2022-03-27T16:35:09.000Z | script/src/page_categories/page_categories.py | ncatlab/nlab | 8e35d93f6e34dd3d21c59bbb76b40b334365deda | [
"Ruby"
] | 10 | 2019-03-17T14:48:41.000Z | 2021-12-02T16:30:36.000Z | script/src/page_categories/page_categories.py | ncatlab/nlab | 8e35d93f6e34dd3d21c59bbb76b40b334365deda | [
"Ruby"
] | 11 | 2018-01-17T19:36:06.000Z | 2022-03-22T17:32:37.000Z | #!/usr/bin/python3.7
"""
API for listing all page categories for a given web, and for checking whether
a given string defines a page category in this web
---
To use, set up (if it is not already in place) a virtual environment as follows.
python3 -m venv venv
source venv/bin/activate
pip3 install MySQ... | 30.70428 | 80 | 0.637435 | 957 | 7,891 | 5.073145 | 0.229885 | 0.023687 | 0.011123 | 0.01483 | 0.378167 | 0.333883 | 0.287951 | 0.245108 | 0.208445 | 0.208445 | 0 | 0.002293 | 0.28146 | 7,891 | 256 | 81 | 30.824219 | 0.853968 | 0.128121 | 0 | 0.382514 | 0 | 0 | 0.260916 | 0.017648 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032787 | false | 0.016393 | 0.038251 | 0 | 0.131148 | 0.016393 | 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 | 0 | 1 | 0 |
d5a7137f1791e922a3801b5fb27951f1e74fe687 | 4,329 | py | Python | evaluation/check_grammaticality_preservation.py | demelin/wsd_biases_for_nmt | cd0bccfd653d5f5ee9286a98791944f876b97f1b | [
"MIT"
] | 2 | 2020-12-02T09:59:09.000Z | 2022-02-18T19:58:48.000Z | evaluation/check_grammaticality_preservation.py | demelin/wsd_biases_for_nmt | cd0bccfd653d5f5ee9286a98791944f876b97f1b | [
"MIT"
] | null | null | null | evaluation/check_grammaticality_preservation.py | demelin/wsd_biases_for_nmt | cd0bccfd653d5f5ee9286a98791944f876b97f1b | [
"MIT"
] | 1 | 2021-03-26T08:06:01.000Z | 2021-03-26T08:06:01.000Z | import sys
import json
import argparse
import language_tool_python
import numpy as np
def check_grammar(adversarial_samples_path):
""" Checks grammar preservation between natural seed sentences and adversarial samples that have been derived
from them. """
# Read in attractor phrase table
print('Read... | 41.228571 | 133 | 0.594133 | 536 | 4,329 | 4.537313 | 0.242537 | 0.057566 | 0.056743 | 0.041118 | 0.349507 | 0.26398 | 0.195724 | 0.120888 | 0.090461 | 0.058388 | 0 | 0.011773 | 0.313236 | 4,329 | 104 | 134 | 41.625 | 0.806256 | 0.057519 | 0 | 0.141026 | 0 | 0 | 0.163632 | 0.031988 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012821 | false | 0 | 0.064103 | 0 | 0.076923 | 0.153846 | 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 | 0 | 1 | 0 |
d5a9730e5e604235c70d82217d7abcd958783532 | 2,967 | py | Python | scripts/mosh.py | wmodes/blackrockstation | 8134322517803d225b936958a2d4ad16e286397a | [
"MIT"
] | 1 | 2021-04-18T06:46:07.000Z | 2021-04-18T06:46:07.000Z | scripts/mosh.py | wmodes/blackrockstation | 8134322517803d225b936958a2d4ad16e286397a | [
"MIT"
] | null | null | null | scripts/mosh.py | wmodes/blackrockstation | 8134322517803d225b936958a2d4ad16e286397a | [
"MIT"
] | null | null | null | import os
import sys
import getopt
#Load file and create temp files
inputfile = 'blank'
outputfile = 'blank'
filters = 'blank'
def printhelp():
print('py -3 mosh.py -i input.bmp -f [ffmpeg filters] -o output.bmp\npy -3 mosh.py --input=input.bmp --filter=[ffmpeg filters] --output=output.bmp\n[ffmpeg filters]:\... | 31.56383 | 237 | 0.559488 | 431 | 2,967 | 3.839907 | 0.278422 | 0.038066 | 0.016918 | 0.021752 | 0.25861 | 0.200604 | 0.194562 | 0.181269 | 0.167372 | 0.117825 | 0 | 0.020119 | 0.262892 | 2,967 | 93 | 238 | 31.903226 | 0.736626 | 0.109201 | 0 | 0.385542 | 0 | 0.024096 | 0.251232 | 0.024252 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024096 | false | 0.036145 | 0.036145 | 0 | 0.060241 | 0.192771 | 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 | 0 | 1 | 0 |
d5aa4545a646814ef6af3187191b63fb5876eb06 | 1,294 | py | Python | test/unit/gen_libs/prt_msg.py | deepcoder42/python-lib | 249f456fdd41a6883206fea8e19c9e098cc969e5 | [
"MIT"
] | null | null | null | test/unit/gen_libs/prt_msg.py | deepcoder42/python-lib | 249f456fdd41a6883206fea8e19c9e098cc969e5 | [
"MIT"
] | null | null | null | test/unit/gen_libs/prt_msg.py | deepcoder42/python-lib | 249f456fdd41a6883206fea8e19c9e098cc969e5 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Classification (U)
"""Program: prt_msg.py
Description: Unit testing of prt_msg in gen_libs.py.
Usage:
test/unit/gen_libs/prt_msg.py
Arguments:
"""
# Libraries and Global Variables
# Standard
import sys
import os
if sys.version_info < (2, 7):
import unittest2 as unit... | 15.780488 | 76 | 0.630603 | 162 | 1,294 | 4.777778 | 0.450617 | 0.062016 | 0.05168 | 0.033592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004233 | 0.269706 | 1,294 | 81 | 77 | 15.975309 | 0.814815 | 0.381762 | 0 | 0 | 0 | 0 | 0.071848 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.086957 | false | 0 | 0.304348 | 0 | 0.434783 | 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 |
d5aa8ee377904ab5a674241f789900ee6b5dc751 | 6,432 | py | Python | src/train.py | shabnam-b/crosslingual-nlp | ccd91baaea23004eab9c4d871910945ca3e61ab7 | [
"MIT"
] | 64 | 2019-11-25T09:33:29.000Z | 2022-03-31T22:38:21.000Z | src/train.py | shabnam-b/crosslingual-nlp | ccd91baaea23004eab9c4d871910945ca3e61ab7 | [
"MIT"
] | 2 | 2022-02-14T05:46:10.000Z | 2022-02-18T20:40:02.000Z | src/train.py | shabnam-b/crosslingual-nlp | ccd91baaea23004eab9c4d871910945ca3e61ab7 | [
"MIT"
] | 7 | 2021-04-02T07:00:36.000Z | 2022-03-28T15:08:50.000Z | import os
from argparse import ArgumentParser
import pytorch_lightning as pl
import util
from enumeration import Task
from model import Aligner, Classifier, DependencyParser, Model, Tagger
def main(hparams):
if hparams.cache_dataset:
if not hparams.cache_path:
hparams.cache_path = os.path.jo... | 41.766234 | 86 | 0.684546 | 793 | 6,432 | 5.278689 | 0.213115 | 0.064501 | 0.121835 | 0.049689 | 0.302914 | 0.271142 | 0.199236 | 0.111085 | 0.021978 | 0.021978 | 0 | 0.006068 | 0.180037 | 6,432 | 153 | 87 | 42.039216 | 0.787637 | 0.004353 | 0 | 0.07971 | 0 | 0 | 0.08528 | 0.0192 | 0 | 0 | 0 | 0 | 0.014493 | 1 | 0.007246 | false | 0 | 0.043478 | 0 | 0.050725 | 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 | 0 | 0 | 1 | 0 |
d5abcbe8cfb21a7294348cb0c5948348bf4ecebf | 338 | py | Python | docs/components_page/components/breadcrumb/simple.py | glsdown/dash-bootstrap-components | 0ebea4f7de43975f6e3a2958359c4480ae1d4927 | [
"Apache-2.0"
] | 776 | 2019-02-07T19:36:59.000Z | 2022-03-31T05:53:04.000Z | docs/components_page/components/breadcrumb/simple.py | glsdown/dash-bootstrap-components | 0ebea4f7de43975f6e3a2958359c4480ae1d4927 | [
"Apache-2.0"
] | 350 | 2019-02-05T10:42:19.000Z | 2022-03-31T19:23:35.000Z | docs/components_page/components/breadcrumb/simple.py | glsdown/dash-bootstrap-components | 0ebea4f7de43975f6e3a2958359c4480ae1d4927 | [
"Apache-2.0"
] | 219 | 2019-02-10T13:46:25.000Z | 2022-03-23T17:03:39.000Z | import dash_bootstrap_components as dbc
breadcrumb = dbc.Breadcrumb(
items=[
{"label": "Docs", "href": "/docs", "external_link": True},
{
"label": "Components",
"href": "/docs/components",
"external_link": True,
},
{"label": "Breadcrumb", "active"... | 24.142857 | 66 | 0.511834 | 29 | 338 | 5.827586 | 0.517241 | 0.153846 | 0.189349 | 0.248521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.310651 | 338 | 13 | 67 | 26 | 0.725322 | 0 | 0 | 0 | 0 | 0 | 0.295858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d5ae335355bc99ca0c56f7196c057bea2de78e07 | 1,599 | py | Python | tests/test_util_math.py | mirochaj/ares | b3335ad30435ee0d7f17d0110aa164a35f252d78 | [
"MIT"
] | 10 | 2020-03-26T01:08:10.000Z | 2021-12-04T13:02:10.000Z | tests/test_util_math.py | mirochaj/ares | b3335ad30435ee0d7f17d0110aa164a35f252d78 | [
"MIT"
] | 25 | 2020-06-08T14:52:28.000Z | 2022-03-08T02:30:54.000Z | tests/test_util_math.py | mirochaj/ares | b3335ad30435ee0d7f17d0110aa164a35f252d78 | [
"MIT"
] | 8 | 2020-03-24T14:11:25.000Z | 2021-11-06T06:32:59.000Z | """
test_util_stats.py
Author: Jordan Mirocha
Affiliation: McGill
Created on: Tue 24 Mar 2020 22:11:31 EDT
Description:
"""
import numpy as np
from scipy.interpolate import interp1d
from ares.util.Math import interp1d_wrapper, forward_difference, \
central_difference, five_pt_stencil, LinearNDInterpolator, smo... | 23.865672 | 69 | 0.619762 | 255 | 1,599 | 3.729412 | 0.407843 | 0.025237 | 0.046267 | 0.025237 | 0.126183 | 0.126183 | 0.039958 | 0 | 0 | 0 | 0 | 0.062704 | 0.23202 | 1,599 | 66 | 70 | 24.227273 | 0.711726 | 0.143215 | 0 | 0 | 0 | 0 | 0.023581 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.027778 | false | 0 | 0.083333 | 0 | 0.111111 | 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 | 0 | 0 | 1 | 0 |
d5aec803a6617ec14a27790815813f0c6e3a1936 | 175 | py | Python | mailer/cleaner.py | AgooDev/Automatic | b3d162aa0447a9fce340eac9604e9ff395967d11 | [
"BSD-3-Clause"
] | 2 | 2016-05-20T22:14:48.000Z | 2016-05-20T22:14:50.000Z | mailer/cleaner.py | AgooDev/Automatic | b3d162aa0447a9fce340eac9604e9ff395967d11 | [
"BSD-3-Clause"
] | null | null | null | mailer/cleaner.py | AgooDev/Automatic | b3d162aa0447a9fce340eac9604e9ff395967d11 | [
"BSD-3-Clause"
] | null | null | null | # Imports
import json
with open('../config/config.json') as config:
data = json.load(config)
historyPath = data['mailer']['paths']['history']
# Check if folder exists
| 15.909091 | 48 | 0.68 | 23 | 175 | 5.173913 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154286 | 175 | 10 | 49 | 17.5 | 0.804054 | 0.171429 | 0 | 0 | 0 | 0 | 0.276596 | 0.148936 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
d5af38e5eeb161d0d352eaa24c10832386dba330 | 6,398 | py | Python | Scripts/convertor2.py | hyller/GladiatorFirmware | 535de3f74a773614648279ceb7cab06714c2cec2 | [
"Unlicense"
] | 1 | 2015-09-17T07:00:59.000Z | 2015-09-17T07:00:59.000Z | Scripts/convertor2.py | hyller/GladiatorFirmware | 535de3f74a773614648279ceb7cab06714c2cec2 | [
"Unlicense"
] | null | null | null | Scripts/convertor2.py | hyller/GladiatorFirmware | 535de3f74a773614648279ceb7cab06714c2cec2 | [
"Unlicense"
] | null | null | null | # 1. Extract crash address form reset information in internal log
# 2. According the crash address to find the crash function by search IAR map file
# 3. Output the crash address and function name to file
# NOTE: map file should in UTF-8 format
import csv
import os
import sys
import os.path
code_list = []
co... | 46.362319 | 125 | 0.479056 | 712 | 6,398 | 4.164326 | 0.23736 | 0.125464 | 0.070152 | 0.04317 | 0.35312 | 0.314334 | 0.314334 | 0.314334 | 0.314334 | 0.302192 | 0 | 0.05599 | 0.380275 | 6,398 | 137 | 126 | 46.70073 | 0.691803 | 0.080025 | 0 | 0.208696 | 0 | 0 | 0.14966 | 0 | 0 | 0 | 0.013431 | 0 | 0.008696 | 1 | 0.026087 | false | 0 | 0.034783 | 0 | 0.078261 | 0.008696 | 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 | 0 | 1 | 0 |
d5b04b9b27666fa97a4c16c1aed953d2ea9e8b60 | 824 | py | Python | 1st_week/06_find_first_unique_character_sparta_ver.py | ysong0504/algorithm | 76bfef16bd5bdc13b7ad260ee5f4e9dc62316403 | [
"MIT"
] | null | null | null | 1st_week/06_find_first_unique_character_sparta_ver.py | ysong0504/algorithm | 76bfef16bd5bdc13b7ad260ee5f4e9dc62316403 | [
"MIT"
] | null | null | null | 1st_week/06_find_first_unique_character_sparta_ver.py | ysong0504/algorithm | 76bfef16bd5bdc13b7ad260ee5f4e9dc62316403 | [
"MIT"
] | null | null | null |
def find_not_repeating_first_character(string):
alphabet_occurrence_array = [0] * 26
for char in string:
if not char.isalpha():
continue
arr_index = ord(char) - ord("a")
alphabet_occurrence_array[arr_index] += 1
not_repeating_character_array = []
for index in range... | 29.428571 | 71 | 0.661408 | 107 | 824 | 4.803738 | 0.364486 | 0.210117 | 0.178988 | 0.151751 | 0.287938 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007924 | 0.234223 | 824 | 27 | 72 | 30.518519 | 0.806656 | 0 | 0 | 0.1 | 0 | 0 | 0.089915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.15 | 0.15 | 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 |
633433b979d95716a0827e164f37cd9e29c19d6a | 1,782 | py | Python | simulator.py | baumrasen/JSN-SR04T-Serial-Simulator | 883ffac31dce1d9a7456af8282fc1bc24a09d0a9 | [
"MIT"
] | null | null | null | simulator.py | baumrasen/JSN-SR04T-Serial-Simulator | 883ffac31dce1d9a7456af8282fc1bc24a09d0a9 | [
"MIT"
] | null | null | null | simulator.py | baumrasen/JSN-SR04T-Serial-Simulator | 883ffac31dce1d9a7456af8282fc1bc24a09d0a9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import time
import serial
# create serial
ser = serial.Serial(
port='/dev/ttyAMA1', #Replace ttyAMA1 for your needs
baudrate = 9600,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
bytesize=serial.EIGHTBITS,
timeout=0.05
)
# edit here for... | 23.76 | 102 | 0.530864 | 229 | 1,782 | 4.09607 | 0.475983 | 0.042644 | 0.025586 | 0.021322 | 0.031983 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070789 | 0.373737 | 1,782 | 74 | 103 | 24.081081 | 0.769713 | 0.354097 | 0 | 0 | 0 | 0 | 0.047028 | 0 | 0 | 0 | 0.014197 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
633477a8a78066ac7ae776d824603b118e7b3ca3 | 2,688 | py | Python | binary_image_classifier/simple_keras.py | bsaikiran535/catsdogs | 07a0b15bc5e65cd68d355feb64a622b279b78fd4 | [
"MIT"
] | null | null | null | binary_image_classifier/simple_keras.py | bsaikiran535/catsdogs | 07a0b15bc5e65cd68d355feb64a622b279b78fd4 | [
"MIT"
] | null | null | null | binary_image_classifier/simple_keras.py | bsaikiran535/catsdogs | 07a0b15bc5e65cd68d355feb64a622b279b78fd4 | [
"MIT"
] | null | null | null | from IPython import embed
from keras.layers import Conv2D, Activation, MaxPooling2D, Flatten, Dense, Dropout
from keras.models import Sequential
from keras.preprocessing.image import ImageDataGenerator, load_img, img_to_array
TRAIN_PATH = '/Users/sai/dev/datasets/catsdogs-kaggle/data2/train/'
# Constants
NUM_CHANNELS... | 25.358491 | 88 | 0.649926 | 354 | 2,688 | 4.669492 | 0.355932 | 0.072595 | 0.054446 | 0.053237 | 0.251664 | 0.209316 | 0.14882 | 0.14882 | 0.14882 | 0.113733 | 0 | 0.038312 | 0.232887 | 2,688 | 105 | 89 | 25.6 | 0.763337 | 0.075893 | 0 | 0.136986 | 0 | 0 | 0.06877 | 0.021036 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068493 | false | 0 | 0.054795 | 0 | 0.164384 | 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 | 0 | 0 | 1 | 0 |
63348b523a1e8dad3500b346984e69a09705dc2d | 1,326 | py | Python | NicBot/cogs/db/utils.py | nicdgonzalez/NicBot-discord.py | 3a21510c1e4e2c933f48708478ae792159324a7c | [
"MIT"
] | null | null | null | NicBot/cogs/db/utils.py | nicdgonzalez/NicBot-discord.py | 3a21510c1e4e2c933f48708478ae792159324a7c | [
"MIT"
] | null | null | null | NicBot/cogs/db/utils.py | nicdgonzalez/NicBot-discord.py | 3a21510c1e4e2c933f48708478ae792159324a7c | [
"MIT"
] | null | null | null | from json import dump, load
from os import getcwd, mkdir
from os.path import exists
from ...errors import UpdateNewFile
def mkconfig(file: str):
cwd = getcwd().replace('\\', '/')
dirs = (
file
.replace('\\', '/')
.replace(cwd, '')
.strip('./')
.split('/')
)
_... | 22.862069 | 63 | 0.436652 | 129 | 1,326 | 4.410853 | 0.550388 | 0.035149 | 0.063269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002611 | 0.422323 | 1,326 | 57 | 64 | 23.263158 | 0.740209 | 0.019608 | 0 | 0 | 0 | 0 | 0.122496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0.022222 | 0.088889 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
633516036af3a4c3e8ae99b1bb4a34061f655d7d | 959 | py | Python | Reacher-PyBullet/00_Random_Gym.py | hyunjun529/Learn-OpenAI-GYM | 51e1f3dc4cdfa7582690fc8338918aeb9671f4e3 | [
"MIT"
] | null | null | null | Reacher-PyBullet/00_Random_Gym.py | hyunjun529/Learn-OpenAI-GYM | 51e1f3dc4cdfa7582690fc8338918aeb9671f4e3 | [
"MIT"
] | null | null | null | Reacher-PyBullet/00_Random_Gym.py | hyunjun529/Learn-OpenAI-GYM | 51e1f3dc4cdfa7582690fc8338918aeb9671f4e3 | [
"MIT"
] | null | null | null | import gym
from gym import wrappers
env = gym.make('Reacher-v1')
env.reset()
env.render()
outdir = './log/'
f_act = open(outdir + 'log_act.txt', 'w')
f_obs = open(outdir + 'log_obs.txt', 'w')
f_rwd = open(outdir + 'log_rwd.txt', 'w')
f_info = open(outdir + 'log_info.txt', 'w')
env = wrappers.Monitor(env, directory=... | 25.236842 | 68 | 0.606882 | 137 | 959 | 4.145985 | 0.423358 | 0.079225 | 0.091549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.240876 | 959 | 37 | 69 | 25.918919 | 0.769231 | 0.091762 | 0 | 0.08 | 0 | 0 | 0.124567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 0.04 | 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 | 0 | 1 | 0 |
633589fb97c7e506f46870a065a0488ff3565e70 | 20 | py | Python | ckan_cloud_operator/providers/ckan/deployment/drone/constants.py | pdelboca/ckan-cloud-operator | 20d7e6ed8cc2f5cfce5bc6295cb5487156a53f61 | [
"MIT"
] | 14 | 2019-11-18T12:01:03.000Z | 2021-09-15T15:29:50.000Z | ckan_cloud_operator/providers/ckan/deployment/drone/constants.py | pdelboca/ckan-cloud-operator | 20d7e6ed8cc2f5cfce5bc6295cb5487156a53f61 | [
"MIT"
] | 52 | 2019-09-09T14:22:41.000Z | 2021-09-29T08:29:24.000Z | ckan_cloud_operator/providers/ckan/deployment/drone/constants.py | pdelboca/ckan-cloud-operator | 20d7e6ed8cc2f5cfce5bc6295cb5487156a53f61 | [
"MIT"
] | 8 | 2019-10-05T12:46:25.000Z | 2021-09-15T15:13:05.000Z | PROVIDER_ID='drone'
| 10 | 19 | 0.8 | 3 | 20 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 20 | 1 | 20 | 20 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
63359a3288cdf817808c76a0f398a98386d7b22c | 1,815 | py | Python | run_pipeline_beaco2n.py | openghg/gather | 0096cfe66b0093cdd294fa2a67c060d7fc28d2fa | [
"Apache-2.0"
] | null | null | null | run_pipeline_beaco2n.py | openghg/gather | 0096cfe66b0093cdd294fa2a67c060d7fc28d2fa | [
"Apache-2.0"
] | null | null | null | run_pipeline_beaco2n.py | openghg/gather | 0096cfe66b0093cdd294fa2a67c060d7fc28d2fa | [
"Apache-2.0"
] | null | null | null | """
This can be used to run the whole data scrape, process and export pipeline.
If you just want to run a single state see the scripts in the beaco2n/ directory.
"""
import argparse
from gather.pipeline import run_beaco2n
if __name__ == "__main__":
example_text = """Usage:
$ python run_pipeline_beaco2n.py --... | 34.245283 | 126 | 0.710744 | 243 | 1,815 | 5.144033 | 0.427984 | 0.0288 | 0.0544 | 0.0576 | 0.1536 | 0.1152 | 0.0912 | 0.0912 | 0.0912 | 0.0912 | 0 | 0.01174 | 0.202204 | 1,815 | 52 | 127 | 34.903846 | 0.851519 | 0.1427 | 0 | 0 | 0 | 0.060606 | 0.54075 | 0.085382 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.060606 | 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 | 0 | 0 | 1 | 0 |
633602ac685ea404ebc217673c3a63149c5038b0 | 3,412 | py | Python | app/forms.py | nickma101/2bij3 | d0a74cc1457470c711e97138865abd86aa320b5a | [
"MIT"
] | null | null | null | app/forms.py | nickma101/2bij3 | d0a74cc1457470c711e97138865abd86aa320b5a | [
"MIT"
] | null | null | null | app/forms.py | nickma101/2bij3 | d0a74cc1457470c711e97138865abd86aa320b5a | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
import wtforms
from wtforms import StringField, PasswordField, BooleanField, RadioField, SelectField, SubmitField, SelectMultipleField, TextAreaField, widgets, IntegerField
from wtforms.validators import DataRequired, ValidationError, Email, EqualTo, InputRequired, Length, NumberRange
f... | 46.108108 | 219 | 0.723916 | 337 | 3,412 | 7.284866 | 0.418398 | 0.116497 | 0.065173 | 0.050102 | 0.441548 | 0.364562 | 0.244399 | 0.189002 | 0.15723 | 0.15723 | 0 | 0.001404 | 0.164713 | 3,412 | 73 | 220 | 46.739726 | 0.86 | 0 | 0 | 0.316667 | 0 | 0 | 0.198417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.15 | 0.1 | 0 | 0.833333 | 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 | 1 | 0 | 0 | 2 |
63375c19200ea5c4ad796897e81df65ed7bb6676 | 3,176 | py | Python | phosphodisco/tests/test_classes.py | ruggleslab/phosphodisco-1 | 4663e2c97b96304483234a80bc9b35befbf92795 | [
"MIT"
] | 1 | 2020-10-30T18:08:58.000Z | 2020-10-30T18:08:58.000Z | phosphodisco/tests/test_classes.py | ruggleslab/phosphodisco-1 | 4663e2c97b96304483234a80bc9b35befbf92795 | [
"MIT"
] | 5 | 2020-09-09T21:53:44.000Z | 2021-11-09T00:43:06.000Z | phosphodisco/tests/test_classes.py | ruggleslab/phosphodisco-1 | 4663e2c97b96304483234a80bc9b35befbf92795 | [
"MIT"
] | 3 | 2020-05-11T14:46:31.000Z | 2021-08-20T19:22:34.000Z | import phosphodisco as phdc
import numpy as np
import pandas as pd
seed = 5
np.random.seed(seed)
prot = pd.util.testing.makeDataFrame()
phospho = pd.util.testing.makeDataFrame()
phospho.index = pd.MultiIndex.from_tuples(
[(prot.index[np.random.randint(0, 15)], ind) for ind in phospho.index]
)
def test_classes_r... | 34.901099 | 112 | 0.68199 | 378 | 3,176 | 5.542328 | 0.309524 | 0.036754 | 0.07685 | 0.057279 | 0.397136 | 0.349403 | 0.349403 | 0.344153 | 0.344153 | 0.295465 | 0 | 0.019668 | 0.183564 | 3,176 | 90 | 113 | 35.288889 | 0.788276 | 0.406801 | 0 | 0.367347 | 0 | 0 | 0.041622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.061224 | 0 | 0.142857 | 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 | 0 | 0 | 1 | 0 |
6337fe4a780a9017d4452a00d6c6cd11afc30a4d | 6,500 | py | Python | parsl/tests/configs/user_opts.py | vkhodygo/parsl | ce2552caed9d223c3d8a84c16f830abc5f926331 | [
"Apache-2.0"
] | 1 | 2020-11-21T17:32:09.000Z | 2020-11-21T17:32:09.000Z | parsl/tests/configs/user_opts.py | vkhodygo/parsl | ce2552caed9d223c3d8a84c16f830abc5f926331 | [
"Apache-2.0"
] | null | null | null | parsl/tests/configs/user_opts.py | vkhodygo/parsl | ce2552caed9d223c3d8a84c16f830abc5f926331 | [
"Apache-2.0"
] | 1 | 2022-03-09T10:51:12.000Z | 2022-03-09T10:51:12.000Z | """
Specification of user-specific configuration options.
The fields must be configured separately for each user. To disable any associated configurations, comment
out the entry.
User specific overrides that should not go in version control can be set by creating a
file called local_user_opts.py, which declares a dic... | 39.156627 | 149 | 0.616769 | 795 | 6,500 | 4.869182 | 0.34717 | 0.0465 | 0.026866 | 0.030741 | 0.326531 | 0.267889 | 0.23689 | 0.191682 | 0.137432 | 0.118316 | 0 | 0.029845 | 0.237077 | 6,500 | 165 | 150 | 39.393939 | 0.750756 | 0.777692 | 0 | 0.206897 | 0 | 0 | 0.269706 | 0.139876 | 0 | 0 | 0 | 0.006061 | 0 | 1 | 0 | false | 0.034483 | 0.103448 | 0 | 0.103448 | 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 | 0 | 0 | 1 | 0 |
6338d410ae60bec391fb5bbc9bdfc0b712ca6028 | 1,771 | py | Python | controller/notebook_menu.py | tuannguyendang/montypython | c0b8ff7a8130e811ba16bfab8d5e013eac37f432 | [
"Apache-2.0"
] | null | null | null | controller/notebook_menu.py | tuannguyendang/montypython | c0b8ff7a8130e811ba16bfab8d5e013eac37f432 | [
"Apache-2.0"
] | null | null | null | controller/notebook_menu.py | tuannguyendang/montypython | c0b8ff7a8130e811ba16bfab8d5e013eac37f432 | [
"Apache-2.0"
] | null | null | null | import sys
from model import NoteBook
class NoteBookMenu:
def __init__(self):
self.notebook = NoteBook()
self.choices = {
"1": self.show_notes,
"2": self.search_note,
"3": self.add_note,
"4": self.modify_note,
"5": self.quit,
}
... | 24.260274 | 78 | 0.52061 | 209 | 1,771 | 4.282297 | 0.301435 | 0.080447 | 0.02905 | 0.040223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013228 | 0.359684 | 1,771 | 72 | 79 | 24.597222 | 0.776014 | 0 | 0 | 0 | 0 | 0 | 0.188029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.034483 | 0 | 0.189655 | 0.103448 | 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 | 0 | 1 | 0 |
6339d0b5926989fda79429ab96aca5d2ce51621f | 5,500 | py | Python | prey_and_pred_size.py | gimon0330/Natural-Selection-Simulator | 171a34a901e6d863a8fb179a862e7dc4bc84e495 | [
"Apache-2.0"
] | 1 | 2021-11-12T12:33:36.000Z | 2021-11-12T12:33:36.000Z | prey_and_pred_size.py | gimon0330/Natural-Selection-Simulator | 171a34a901e6d863a8fb179a862e7dc4bc84e495 | [
"Apache-2.0"
] | null | null | null | prey_and_pred_size.py | gimon0330/Natural-Selection-Simulator | 171a34a901e6d863a8fb179a862e7dc4bc84e495 | [
"Apache-2.0"
] | null | null | null | import pygame, random, time, sys, math
pygame.init()
SCREEN_WIDTH = 1080
SCREEN_HEIGHT = 720
screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))
pygame.display.set_caption("이미지 불러오기")
clock = pygame.time.Clock()
screen.fill((255,255,255))
class Predetor(pygame.sprite.Sprite):
def ... | 29.72973 | 124 | 0.535091 | 679 | 5,500 | 4.220913 | 0.184094 | 0.055827 | 0.025122 | 0.018144 | 0.405094 | 0.334962 | 0.315422 | 0.271458 | 0.253315 | 0.253315 | 0 | 0.043261 | 0.344364 | 5,500 | 185 | 125 | 29.72973 | 0.751525 | 0.003636 | 0 | 0.362205 | 0 | 0 | 0.026587 | 0.006801 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03937 | false | 0 | 0.007874 | 0 | 0.062992 | 0.031496 | 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 | 0 | 1 | 0 |
6339f1ab281fecc21a9c0911b00b070cc3487a59 | 1,300 | py | Python | Homework3.py | msalum/Phyton-TkInter | b4ee45f6703d0a584970e059438e92ac8dcb0f9f | [
"MIT"
] | null | null | null | Homework3.py | msalum/Phyton-TkInter | b4ee45f6703d0a584970e059438e92ac8dcb0f9f | [
"MIT"
] | null | null | null | Homework3.py | msalum/Phyton-TkInter | b4ee45f6703d0a584970e059438e92ac8dcb0f9f | [
"MIT"
] | null | null | null | from tkinter import *
import tkinter.scrolledtext as scrl
from tkinter import messagebox
import tkinter.filedialog as tkfd
def showAbout():
helloText = "Hello World"
messagebox.showinfo("", helloText)
# SAVE
def saveAs():
fileContent = content.get(1.0, END)
fileName = tkfd.asksaveasfile(mode='w', d... | 20 | 128 | 0.672308 | 159 | 1,300 | 5.465409 | 0.528302 | 0.050633 | 0.06214 | 0.079402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.179231 | 1,300 | 65 | 129 | 20 | 0.804124 | 0.020769 | 0 | 0 | 0 | 0 | 0.123125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.102564 | 0 | 0.205128 | 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 | 0 | 0 | 1 | 0 |
633abef67a261f6f9857eba9e728f553af7a9bfd | 4,403 | py | Python | moto/mediapackage/responses.py | orenmazor/moto | 4778377e8ecaf729d26602a2c5202b72c1438503 | [
"Apache-2.0"
] | 1 | 2021-12-12T04:23:06.000Z | 2021-12-12T04:23:06.000Z | moto/mediapackage/responses.py | orenmazor/moto | 4778377e8ecaf729d26602a2c5202b72c1438503 | [
"Apache-2.0"
] | 4 | 2017-09-30T07:52:52.000Z | 2021-12-13T06:56:55.000Z | moto/mediapackage/responses.py | orenmazor/moto | 4778377e8ecaf729d26602a2c5202b72c1438503 | [
"Apache-2.0"
] | 2 | 2021-11-24T08:05:43.000Z | 2021-11-25T16:18:48.000Z | from __future__ import unicode_literals
from moto.core.responses import BaseResponse
from .models import mediapackage_backends
import json
class MediaPackageResponse(BaseResponse):
SERVICE_NAME = "mediapackage"
@property
def mediapackage_backend(self):
return mediapackage_backends[self.region]
... | 40.768519 | 84 | 0.684988 | 477 | 4,403 | 5.932914 | 0.140461 | 0.081625 | 0.114488 | 0.039576 | 0.706007 | 0.64947 | 0.64947 | 0.64947 | 0.576678 | 0.576678 | 0 | 0 | 0.226664 | 4,403 | 107 | 85 | 41.149533 | 0.831131 | 0 | 0 | 0.578947 | 0 | 0 | 0.07881 | 0.015217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.042105 | 0.010526 | 0.273684 | 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 | 0 | 0 | 1 | 0 |
633af4736f589b2ac6076fac4005749e84b59aa5 | 1,453 | py | Python | gsnodegraph/graph/btn.py | iwoithe/gsnodegraph | 54450c6703ac9f75b69f39c8a4490cab7d9a965a | [
"Apache-2.0"
] | 14 | 2021-05-19T15:45:24.000Z | 2022-03-29T21:31:52.000Z | gsnodegraph/graph/btn.py | iwoithe/gsnodegraph | 54450c6703ac9f75b69f39c8a4490cab7d9a965a | [
"Apache-2.0"
] | 9 | 2021-05-02T02:34:12.000Z | 2022-02-18T16:46:22.000Z | gsnodegraph/graph/btn.py | iwoithe/gsnodegraph | 54450c6703ac9f75b69f39c8a4490cab7d9a965a | [
"Apache-2.0"
] | 2 | 2021-09-28T22:18:23.000Z | 2021-11-21T20:55:32.000Z |
import wx
from gsnodegraph.constants import (BTN_NORMAL_COLOR, BTN_CLICKED_COLOR,
BTN_FOCUSED_COLOR)
from gsnodegraph.assets import ICON_ADD_NODE
class AddNodeBtn(object):
def __init__(self, parent):
self.parent = parent
self.bitmap = ICON_ADD_NODE.GetBitmap()... | 25.946429 | 77 | 0.61872 | 179 | 1,453 | 4.882682 | 0.301676 | 0.06865 | 0.080092 | 0.045767 | 0.080092 | 0.080092 | 0.080092 | 0 | 0 | 0 | 0 | 0.007663 | 0.281487 | 1,453 | 56 | 78 | 25.946429 | 0.829502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.075 | 0.125 | 0.475 | 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 | 1 | 0 | 0 | 0 | 2 |
633cbdf44eb8244abef9d93cca4e8be91fd33dc8 | 259 | py | Python | Lib/async/test/test_daytime.py | pyparallel/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 652 | 2015-07-26T00:00:17.000Z | 2022-02-24T18:30:04.000Z | Lib/async/test/test_daytime.py | tpn/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 8 | 2015-09-07T03:38:19.000Z | 2021-05-23T03:18:51.000Z | Lib/async/test/test_daytime.py | tpn/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 40 | 2015-07-24T19:45:08.000Z | 2021-11-01T14:54:56.000Z | import async
import async.services
QOTD_IP = '10.211.55.3'
QOTD_PORT = 20017
QOTD_DATA = b'An apple a day keeps the doctor away.\r\n'
server = async.server('10.211.55.3', 20013)
async.register(transport=server, protocol=async.services.Daytime)
async.run()
| 21.583333 | 65 | 0.749035 | 45 | 259 | 4.244444 | 0.666667 | 0.115183 | 0.073298 | 0.08377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113537 | 0.11583 | 259 | 11 | 66 | 23.545455 | 0.720524 | 0 | 0 | 0 | 0 | 0 | 0.244186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | 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 |
633cfa8e0c87a2f94a51376a2674ae1d228de67a | 1,211 | py | Python | dev_tools/text_translate.py | Torivon/MiniAdventure | a0f9873e5a3ae772ef9dc47cfaa944a48fae6bb4 | [
"MIT"
] | 5 | 2015-12-20T15:07:50.000Z | 2021-08-12T18:20:53.000Z | dev_tools/text_translate.py | Torivon/MiniAdventure | a0f9873e5a3ae772ef9dc47cfaa944a48fae6bb4 | [
"MIT"
] | 86 | 2016-01-07T22:28:53.000Z | 2016-12-13T19:19:28.000Z | dev_tools/text_translate.py | Torivon/MiniAdventure | a0f9873e5a3ae772ef9dc47cfaa944a48fae6bb4 | [
"MIT"
] | 3 | 2016-01-09T04:15:52.000Z | 2016-12-31T02:47:18.000Z | import sys
import struct
if len(sys.argv) == 1:
sys.exit("Must include a file to process")
with open(sys.argv[1]) as input_file:
header_file = ""
data_file = ""
text_dict = {}
count = 0
for line in input_file.readlines():
if count == 0:
header_file = line.strip()
... | 25.229167 | 57 | 0.501239 | 157 | 1,211 | 3.738854 | 0.324841 | 0.068143 | 0.076661 | 0.097104 | 0.166951 | 0.132879 | 0 | 0 | 0 | 0 | 0 | 0.014103 | 0.355904 | 1,211 | 47 | 58 | 25.765957 | 0.738462 | 0 | 0 | 0.057143 | 0 | 0 | 0.058678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.057143 | 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 | 0 | 0 | 1 | 0 |
633f13ba50e5024214a5521c3bb7da838e21a64e | 918 | py | Python | backee/model/items.py | pruh/backee | 3e88d799a50f75033ae15d6c16655da8ae791886 | [
"MIT"
] | null | null | null | backee/model/items.py | pruh/backee | 3e88d799a50f75033ae15d6c16655da8ae791886 | [
"MIT"
] | 2 | 2020-01-22T22:21:02.000Z | 2020-01-22T22:28:37.000Z | backee/model/items.py | pruh/backee | 3e88d799a50f75033ae15d6c16655da8ae791886 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import Tuple, Dict, Optional
from abc import ABC, abstractmethod
from backee.model.db_connectors import DbConnector
from backee.model.rotation_strategy import RotationStrategy
@dataclass
class BackupItem(ABC):
rotation_strategy: Optional[RotationStrategy]
@prope... | 17.653846 | 59 | 0.724401 | 93 | 918 | 7.11828 | 0.44086 | 0.10574 | 0.066465 | 0.086103 | 0.122357 | 0.084592 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 918 | 51 | 60 | 18 | 0.908093 | 0 | 0 | 0.361111 | 0 | 0 | 0.021786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.138889 | 0.083333 | 0.694444 | 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 | 1 | 0 | 0 | 2 |
633fe84973c2e35383e77383db0029a500fbf5d1 | 578 | py | Python | daemon.py | hyoungseok/corona | 19c327ab338c64335fe7f5352b8a07de7f65a153 | [
"Apache-2.0"
] | null | null | null | daemon.py | hyoungseok/corona | 19c327ab338c64335fe7f5352b8a07de7f65a153 | [
"Apache-2.0"
] | null | null | null | daemon.py | hyoungseok/corona | 19c327ab338c64335fe7f5352b8a07de7f65a153 | [
"Apache-2.0"
] | null | null | null | import os
import re
import time
import util
start_pattern = re.compile("^start_[a-zA-Z0-9]+$")
print(f"startDaemon={int(time.time())}")
while os.path.exists(f"state/daemon"):
time.sleep(5)
print(f"aliveCheck={int(time.time())}")
file_list = os.listdir("state")
start_match = list(filter(start_pattern.... | 27.52381 | 66 | 0.650519 | 86 | 578 | 4.22093 | 0.476744 | 0.049587 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010373 | 0.16609 | 578 | 20 | 67 | 28.9 | 0.742739 | 0 | 0 | 0 | 0 | 0 | 0.283737 | 0.150519 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.235294 | 0.176471 | 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 | 0 | 1 | 0 |
634048ca3fe820c1580baa3d86d72e8e2f474b56 | 352 | py | Python | django_eveonline_group_states/migrations/0003_remove_groupstate_default.py | KryptedGaming/django-group-states | 2c37ca53604eef5ca77c2bd0c8bce018387e090b | [
"MIT"
] | null | null | null | django_eveonline_group_states/migrations/0003_remove_groupstate_default.py | KryptedGaming/django-group-states | 2c37ca53604eef5ca77c2bd0c8bce018387e090b | [
"MIT"
] | 1 | 2020-11-24T05:01:30.000Z | 2020-12-29T16:09:11.000Z | django_eveonline_group_states/migrations/0003_remove_groupstate_default.py | KryptedGaming/django-eveonline-group-states | 2c37ca53604eef5ca77c2bd0c8bce018387e090b | [
"MIT"
] | null | null | null | # Generated by Django 2.2.4 on 2019-11-05 14:10
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('django_eveonline_group_states', '0002_groupstate_name'),
]
operations = [
migrations.RemoveField(
model_name='groupstate',
n... | 19.555556 | 66 | 0.619318 | 37 | 352 | 5.72973 | 0.756757 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07451 | 0.275568 | 352 | 17 | 67 | 20.705882 | 0.756863 | 0.127841 | 0 | 0 | 1 | 0 | 0.216393 | 0.095082 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
63411ef904c5bb1a60b8f39984a7821e83fe65a2 | 2,868 | py | Python | Project-:-Mars-Crater/code.py | sureshchaudhari13/ga-learner-dsmp-repo | 0a2d726b1f7be8c31592f5650e7dbd3f23cdb609 | [
"MIT"
] | null | null | null | Project-:-Mars-Crater/code.py | sureshchaudhari13/ga-learner-dsmp-repo | 0a2d726b1f7be8c31592f5650e7dbd3f23cdb609 | [
"MIT"
] | null | null | null | Project-:-Mars-Crater/code.py | sureshchaudhari13/ga-learner-dsmp-repo | 0a2d726b1f7be8c31592f5650e7dbd3f23cdb609 | [
"MIT"
] | null | null | null | # import libraries
import warnings
warnings.filterwarnings('ignore')
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import MinMaxScaler
import pandas as pd
# Code starts here
# Read the data
df = pd.read_csv(filepath_or_buffer=path,compression='zip')
print(df.head())
# Dependent vari... | 21.89313 | 126 | 0.766736 | 424 | 2,868 | 4.941038 | 0.238208 | 0.038186 | 0.025776 | 0.023866 | 0.225298 | 0.225298 | 0.195704 | 0.136516 | 0.0821 | 0.0821 | 0 | 0.012272 | 0.119247 | 2,868 | 130 | 127 | 22.061538 | 0.817102 | 0.258368 | 0 | 0.102041 | 0 | 0 | 0.062709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.22449 | 0 | 0.22449 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
63418a81f50d1bd2426bb311f19ae09d97821011 | 63 | py | Python | test.py | jessicafinnie/ExampleForClass | df675e5889b7851518bd14419057288b24187551 | [
"MIT"
] | null | null | null | test.py | jessicafinnie/ExampleForClass | df675e5889b7851518bd14419057288b24187551 | [
"MIT"
] | null | null | null | test.py | jessicafinnie/ExampleForClass | df675e5889b7851518bd14419057288b24187551 | [
"MIT"
] | null | null | null | # Testing commit, push, pull in PyCharm
print("Hello, world!") | 21 | 39 | 0.714286 | 9 | 63 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 63 | 3 | 40 | 21 | 0.833333 | 0.587302 | 0 | 0 | 0 | 0 | 0.52 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
63430951fe67dd703e48e204907feb9ad2486b73 | 345 | py | Python | sispo/plugins/plugins.py | oknuutti/sispo | c54019fca4e941a83cc78eda1356b8441bd04d17 | [
"BSD-2-Clause"
] | null | null | null | sispo/plugins/plugins.py | oknuutti/sispo | c54019fca4e941a83cc78eda1356b8441bd04d17 | [
"BSD-2-Clause"
] | null | null | null | sispo/plugins/plugins.py | oknuutti/sispo | c54019fca4e941a83cc78eda1356b8441bd04d17 | [
"BSD-2-Clause"
] | null | null | null | import importlib
def try_plugins(plugin_name, settings, env):
for plugin in plugin_name:
##Create error checking here
spec = importlib.util.spec_from_file_location("JetCreator", plugin)
foo = importlib.util.module_from_spec(spec)
spec.loader.exec_module(foo)
... | 31.363636 | 75 | 0.663768 | 43 | 345 | 5.116279 | 0.604651 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252174 | 345 | 10 | 76 | 34.5 | 0.852713 | 0.075362 | 0 | 0 | 0 | 0 | 0.031546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6343280840016ec3b7f24d4262cab88630fb8ed2 | 1,309 | py | Python | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/blend_color.py | temelkirci/Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | 1 | 2022-03-02T17:07:20.000Z | 2022-03-02T17:07:20.000Z | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/blend_color.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/blend_color.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | '''OpenGL extension EXT.blend_color
Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_EXT_blend_color'
_DEPRECATED = False
GL_CONSTANT_COLOR_EXT ... | 42.225806 | 96 | 0.811306 | 166 | 1,309 | 6.084337 | 0.355422 | 0.055446 | 0.094059 | 0.10396 | 0.310891 | 0.269307 | 0.073267 | 0 | 0 | 0 | 0 | 0.021739 | 0.086325 | 1,309 | 30 | 97 | 43.633333 | 0.822742 | 0.12605 | 0 | 0 | 1 | 0 | 0.229682 | 0.118375 | 0 | 0 | 0.026502 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.173913 | 0 | 0.26087 | 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 |
63439e6172bf80edaf0341030b779950b0eec1a7 | 165 | py | Python | python_runtime/exonum_runtime/merkledb/indices/__init__.py | alekseysidorov/exonum-python-backend | fae38042acba4c7fd9ca05f6afa1e9bec54dd86d | [
"Apache-2.0"
] | 2 | 2019-10-06T17:23:08.000Z | 2019-10-07T09:35:59.000Z | python_runtime/exonum_runtime/merkledb/indices/__init__.py | alekseysidorov/exonum-python-backend | fae38042acba4c7fd9ca05f6afa1e9bec54dd86d | [
"Apache-2.0"
] | null | null | null | python_runtime/exonum_runtime/merkledb/indices/__init__.py | alekseysidorov/exonum-python-backend | fae38042acba4c7fd9ca05f6afa1e9bec54dd86d | [
"Apache-2.0"
] | 1 | 2020-01-18T09:29:30.000Z | 2020-01-18T09:29:30.000Z | """TODO"""
from .list_index import ListIndex
from .map_index import MapIndex
from .proof_list_index import ProofListIndex
from .proof_map_index import ProofMapIndex
| 27.5 | 44 | 0.836364 | 23 | 165 | 5.73913 | 0.478261 | 0.333333 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10303 | 165 | 5 | 45 | 33 | 0.891892 | 0.024242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
63446e4d927fb53761761a122344b0bc8d13ee0c | 46 | py | Python | captum/__init__.py | ashkan-software/captum | b8b7d4b10a9646e4da827635d6947499fbde3326 | [
"BSD-3-Clause"
] | 1 | 2020-02-02T19:23:01.000Z | 2020-02-02T19:23:01.000Z | captum/__init__.py | ashkan-software/captum | b8b7d4b10a9646e4da827635d6947499fbde3326 | [
"BSD-3-Clause"
] | 7 | 2020-09-07T15:59:35.000Z | 2022-02-26T19:34:09.000Z | captum/__init__.py | orionr/captum-2 | 06009a0c68e56f549964a132ba9c4c4f418af7bd | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
__version__ = "0.2.0"
| 11.5 | 22 | 0.652174 | 8 | 46 | 3.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.130435 | 46 | 3 | 23 | 15.333333 | 0.55 | 0.456522 | 0 | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
63470210edc52e9575d1a514bb0b181522c66e68 | 1,857 | py | Python | utilities/mininet/test_topo.py | osinstom/p4rt-ovs | c3b1c38d47ea47175b38f92a9f0064ca15bb28e4 | [
"Apache-2.0"
] | 1 | 2020-04-29T20:35:07.000Z | 2020-04-29T20:35:07.000Z | utilities/mininet/test_topo.py | osinstom/p4rt-ovs | c3b1c38d47ea47175b38f92a9f0064ca15bb28e4 | [
"Apache-2.0"
] | null | null | null | utilities/mininet/test_topo.py | osinstom/p4rt-ovs | c3b1c38d47ea47175b38f92a9f0064ca15bb28e4 | [
"Apache-2.0"
] | null | null | null | import argparse
from mininet.net import Mininet
from mininet.topo import Topo
from mininet.topolib import TreeTopo
from mininet.log import setLogLevel
from mininet.cli import CLI
from mininet.node import OVSSwitch
from p4rtovs_mininet import P4rtOVSSwitch
class TestTopo(Topo):
def __init__(self, *args, **opts):... | 24.116883 | 102 | 0.630587 | 231 | 1,857 | 4.965368 | 0.376623 | 0.057541 | 0.028771 | 0.029643 | 0.1517 | 0.1517 | 0.1517 | 0.1517 | 0.1517 | 0.1517 | 0 | 0.017751 | 0.271944 | 1,857 | 76 | 103 | 24.434211 | 0.830621 | 0.155627 | 0 | 0 | 0 | 0 | 0.084783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.195122 | null | null | 0.02439 | 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 |
63483a1b74f7107fb533b7c581ef3d45942dcd1a | 310 | py | Python | src/dolphindb/month.py | premprabhat/api-python-cpp | 8543c91ba6b0ea26e07dd27e9a0f6a8654384a03 | [
"Apache-2.0"
] | 1 | 2021-08-28T04:02:12.000Z | 2021-08-28T04:02:12.000Z | src/dolphindb/month.py | premprabhat/api-python-cpp | 8543c91ba6b0ea26e07dd27e9a0f6a8654384a03 | [
"Apache-2.0"
] | null | null | null | src/dolphindb/month.py | premprabhat/api-python-cpp | 8543c91ba6b0ea26e07dd27e9a0f6a8654384a03 | [
"Apache-2.0"
] | 1 | 2022-01-27T11:11:12.000Z | 2022-01-27T11:11:12.000Z | class month(object):
def __init__(self, year=None, month = None):
self.__year = year
self.__month = month
def __str__(self):
if self.__month > 9:
return str(self.__year) + '-' + str(self.__month) + 'M'
return str(self.__year) + '-0' + str(self.__month) + 'M' | 38.75 | 67 | 0.564516 | 40 | 310 | 3.825 | 0.35 | 0.228758 | 0.169935 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008969 | 0.280645 | 310 | 8 | 68 | 38.75 | 0.67713 | 0 | 0 | 0 | 0 | 0 | 0.016077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 5 |
63495a91beceb69204b6a7d9ec3a3f68467b0207 | 4,611 | py | Python | peaksIdentification/plotter.py | andreagia/peaks-identification | ddcc3523f9a1154f6c2f69035dde1bfb9eac0f2a | [
"MIT"
] | null | null | null | peaksIdentification/plotter.py | andreagia/peaks-identification | ddcc3523f9a1154f6c2f69035dde1bfb9eac0f2a | [
"MIT"
] | null | null | null | peaksIdentification/plotter.py | andreagia/peaks-identification | ddcc3523f9a1154f6c2f69035dde1bfb9eac0f2a | [
"MIT"
] | null | null | null |
import matplotlib.pyplot as plt
import plotly.express as px
import pandas as pd
# from scipy.spatial import distance_matrix
import plotly.graph_objects as go
from peaksIdentification.postprocessing import sliding_avg
import numpy as np
def plotplot(spettro_old, spettro_new, associations):
print(associations)
... | 27.446429 | 112 | 0.52288 | 560 | 4,611 | 4.141071 | 0.2625 | 0.012937 | 0.025873 | 0.029323 | 0.195343 | 0.181544 | 0.162139 | 0.125054 | 0.125054 | 0.076757 | 0 | 0.024162 | 0.326827 | 4,611 | 167 | 113 | 27.610778 | 0.722938 | 0.166558 | 0 | 0.336538 | 0 | 0 | 0.094527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.057692 | 0 | 0.076923 | 0.019231 | 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 | 0 | 1 | 0 |
6349f6b9df91ef831b4fab9e98c2dfc2a30fb406 | 50 | py | Python | jellyConnect/__init_.py | jay4842/jellyDatabaseConnector | 6d5528db245e25b2d4ef19148337635596703145 | [
"MIT"
] | null | null | null | jellyConnect/__init_.py | jay4842/jellyDatabaseConnector | 6d5528db245e25b2d4ef19148337635596703145 | [
"MIT"
] | null | null | null | jellyConnect/__init_.py | jay4842/jellyDatabaseConnector | 6d5528db245e25b2d4ef19148337635596703145 | [
"MIT"
] | null | null | null | from connection import *
from queryEngine import * | 25 | 25 | 0.82 | 6 | 50 | 6.833333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 50 | 2 | 25 | 25 | 0.953488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
634b5edb577cf025eb6e507290b5b9b48d5eaebf | 2,776 | py | Python | fault/value_utils.py | makaimann/fault | 8c805415f398e64971d18fbd3014bc0b59fb38b8 | [
"BSD-3-Clause"
] | 31 | 2018-07-16T15:03:14.000Z | 2022-03-10T08:36:09.000Z | fault/value_utils.py | makaimann/fault | 8c805415f398e64971d18fbd3014bc0b59fb38b8 | [
"BSD-3-Clause"
] | 216 | 2018-07-18T20:00:34.000Z | 2021-10-05T17:40:47.000Z | fault/value_utils.py | makaimann/fault | 8c805415f398e64971d18fbd3014bc0b59fb38b8 | [
"BSD-3-Clause"
] | 10 | 2019-02-17T00:56:58.000Z | 2021-11-05T13:31:37.000Z | import fault
import magma
import magma as m
from magma.protocol_type import MagmaProtocol
from hwtypes import BitVector, Bit, FPVector
from fault.value import AnyValue, UnknownValue, HiZ
from fault.ms_types import RealType
from fault.array import Array
from fault.select_path import SelectPath
from hwtypes.adt import En... | 31.545455 | 80 | 0.668588 | 373 | 2,776 | 4.865952 | 0.209115 | 0.050138 | 0.093664 | 0.048485 | 0.333333 | 0.176309 | 0.176309 | 0.104683 | 0.104683 | 0.072727 | 0 | 0.001896 | 0.239914 | 2,776 | 87 | 81 | 31.908046 | 0.858294 | 0.019092 | 0 | 0.175676 | 0 | 0 | 0.023153 | 0 | 0 | 0 | 0 | 0.011494 | 0.027027 | 1 | 0.081081 | false | 0 | 0.148649 | 0.013514 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
634ed0d52bdd4c99e5cef73d6d695c8443f52073 | 752 | py | Python | minicom.py | nepeat/minicom-tone-gen | e03c627a86075f3ad7af0f576a683634504dd910 | [
"MIT"
] | null | null | null | minicom.py | nepeat/minicom-tone-gen | e03c627a86075f3ad7af0f576a683634504dd910 | [
"MIT"
] | null | null | null | minicom.py | nepeat/minicom-tone-gen | e03c627a86075f3ad7af0f576a683634504dd910 | [
"MIT"
] | 1 | 2021-12-18T02:04:04.000Z | 2021-12-18T02:04:04.000Z | from playsound import playsound
import tonemap
def displayMessage(message):
shift = False # whether the "shift" for special characters is currently on or off, starts off
chars = list(message.upper())
for i in range(len(chars)):
current_letter = tonemap.tonemap.get(chars[i])
if current_let... | 37.6 | 98 | 0.630319 | 92 | 752 | 5.097826 | 0.423913 | 0.138593 | 0.095949 | 0.166311 | 0.364606 | 0.26226 | 0.183369 | 0.183369 | 0 | 0 | 0 | 0 | 0.280585 | 752 | 19 | 99 | 39.578947 | 0.866913 | 0.102394 | 0 | 0.235294 | 0 | 0 | 0.17682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.176471 | 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 |
634ed756936c1307192650998b99ba8d51030a09 | 717 | py | Python | ps1/ps1b.py | willcohen/mit-6.00sc-python | 68d83c4baff918aed56e5ec6e634b620ed986d8e | [
"MIT"
] | null | null | null | ps1/ps1b.py | willcohen/mit-6.00sc-python | 68d83c4baff918aed56e5ec6e634b620ed986d8e | [
"MIT"
] | null | null | null | ps1/ps1b.py | willcohen/mit-6.00sc-python | 68d83c4baff918aed56e5ec6e634b620ed986d8e | [
"MIT"
] | null | null | null | # Problem Set 1
outstanding = float(raw_input('''Enter the outstanding balance on your
credit card: '''))
interestrate = float(raw_input('''Enter the annual credit card
interest rate as a decimal: '''))
minpay = 0
balance = outstanding
while balance > 0:
minpay += 10
updatedbalance = outstanding
for x in ... | 28.68 | 72 | 0.666667 | 91 | 717 | 5.230769 | 0.56044 | 0.033613 | 0.054622 | 0.07563 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028933 | 0.228731 | 717 | 24 | 73 | 29.875 | 0.831826 | 0.018131 | 0 | 0 | 0 | 0 | 0.27208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 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 |
6350381060c9588e76e613d273657138ea46c5c5 | 6,311 | py | Python | ledgereth/__main__.py | unparalleled-js/ledger-eth-lib | ec9e4d0e801c98d09e5c8b04983e12540cff1650 | [
"MIT"
] | 10 | 2020-10-26T05:46:47.000Z | 2022-03-07T22:28:50.000Z | ledgereth/__main__.py | unparalleled-js/ledger-eth-lib | ec9e4d0e801c98d09e5c8b04983e12540cff1650 | [
"MIT"
] | 13 | 2020-02-04T09:08:45.000Z | 2022-03-21T00:05:28.000Z | ledgereth/__main__.py | unparalleled-js/ledger-eth-lib | ec9e4d0e801c98d09e5c8b04983e12540cff1650 | [
"MIT"
] | 6 | 2020-02-04T18:22:56.000Z | 2022-03-01T13:44:51.000Z | import argparse
import sys
from enum import IntEnum
from eth_utils import decode_hex, encode_hex
from ledgereth import (
create_transaction,
find_account,
get_account_by_path,
get_accounts,
sign_message,
sign_typed_data_draft,
)
from ledgereth.comms import init_dongle
class ExitCodes(IntEnum... | 25.447581 | 86 | 0.61369 | 775 | 6,311 | 4.821935 | 0.192258 | 0.045759 | 0.081884 | 0.056195 | 0.224512 | 0.181964 | 0.174739 | 0.152796 | 0.144501 | 0.098475 | 0 | 0.006086 | 0.270955 | 6,311 | 247 | 87 | 25.550607 | 0.806129 | 0.010775 | 0 | 0.229268 | 0 | 0 | 0.26034 | 0.011222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029268 | false | 0 | 0.029268 | 0 | 0.082927 | 0.073171 | 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 | 0 | 1 | 0 |
63504c8288f6b3e29c374e6692908482fa639432 | 1,324 | py | Python | src/es/utils/nodes.py | DefenseStorm/es-cli | ad48c778dc426d5504fff7c36e9a2d61aeafb85f | [
"MIT"
] | null | null | null | src/es/utils/nodes.py | DefenseStorm/es-cli | ad48c778dc426d5504fff7c36e9a2d61aeafb85f | [
"MIT"
] | 2 | 2018-09-17T18:18:44.000Z | 2019-01-30T22:01:21.000Z | src/es/utils/nodes.py | DefenseStorm/es-cli | ad48c778dc426d5504fff7c36e9a2d61aeafb85f | [
"MIT"
] | 1 | 2018-09-07T17:19:08.000Z | 2018-09-07T17:19:08.000Z |
import argparse
import os
import re
import requests
import subprocess
from . import config as es_config
def _match_to_node(match):
return {"node": match.group("node"),
"node-type": match.group("nodetype"),
"zone": match.group("zone")}
def _get_nodes_by_type(nodetype):
env = es_conf... | 34.842105 | 100 | 0.664653 | 179 | 1,324 | 4.659218 | 0.363128 | 0.047962 | 0.047962 | 0.067146 | 0.077938 | 0.055156 | 0 | 0 | 0 | 0 | 0 | 0.004713 | 0.19864 | 1,324 | 37 | 101 | 35.783784 | 0.781338 | 0 | 0 | 0 | 0 | 0.037037 | 0.213908 | 0.134543 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.037037 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
6353578656d78a5bb7c9aaf1ae55612bd73bf0e5 | 6,840 | py | Python | run_klue.py | tucan9389/KLUE-baseline | add61158e61f86adfca65087237443828b650090 | [
"Apache-2.0"
] | 71 | 2021-07-29T11:34:50.000Z | 2022-03-21T08:17:21.000Z | run_klue.py | tucan9389/KLUE-baseline | add61158e61f86adfca65087237443828b650090 | [
"Apache-2.0"
] | 3 | 2021-08-20T14:19:58.000Z | 2021-12-03T06:42:27.000Z | run_klue.py | tucan9389/KLUE-baseline | add61158e61f86adfca65087237443828b650090 | [
"Apache-2.0"
] | 16 | 2021-08-01T02:29:11.000Z | 2022-02-25T07:51:03.000Z | import argparse
import logging
import os
import sys
from pathlib import Path
from typing import List, Optional, Dict, Any
import pytorch_lightning as pl
from pytorch_lightning.callbacks import EarlyStopping, ModelCheckpoint
from pytorch_lightning.loggers import CSVLogger
from klue_baseline import KLUE_TASKS
from klue... | 34.029851 | 176 | 0.660088 | 870 | 6,840 | 4.990805 | 0.296552 | 0.029019 | 0.050898 | 0.011746 | 0.096039 | 0.05251 | 0.05251 | 0.019346 | 0 | 0 | 0 | 0.006399 | 0.223246 | 6,840 | 200 | 177 | 34.2 | 0.810841 | 0.026316 | 0 | 0.139394 | 0 | 0.006061 | 0.223508 | 0.028709 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024242 | false | 0.006061 | 0.066667 | 0 | 0.10303 | 0.018182 | 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 | 0 | 1 | 0 |
63537ba60e3a4d8d1007a7de63eba806a0202456 | 1,917 | py | Python | common/net_simple.py | scotty1373/Torcs_PPO | 864e30e7d02bef852907cd2abb9bba7a0630b53a | [
"MIT"
] | 3 | 2022-01-07T09:04:42.000Z | 2022-02-06T16:32:56.000Z | common/net_simple.py | scotty1373/Torcs_PPO | 864e30e7d02bef852907cd2abb9bba7a0630b53a | [
"MIT"
] | null | null | null | common/net_simple.py | scotty1373/Torcs_PPO | 864e30e7d02bef852907cd2abb9bba7a0630b53a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import time
import torch
from torch import nn
from torch.distributions import Normal
class Actor_Model(nn.Module):
def __init__(self, state_dim):
super(Actor_Model, self).__init__()
self.Dense1 = nn.Linear(state_dim, 512)
self.Dense1act = nn.ReLU(inplace=True)
... | 35.5 | 70 | 0.661972 | 262 | 1,917 | 4.59542 | 0.198473 | 0.091362 | 0.053987 | 0.070598 | 0.66113 | 0.312292 | 0.312292 | 0.312292 | 0.312292 | 0.215947 | 0 | 0.039811 | 0.226917 | 1,917 | 53 | 71 | 36.169811 | 0.772605 | 0.010955 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.272727 | 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 | 0 | 0 | 1 | 0 |
63554d60d7544ece34d46b37302c0ae72070b00c | 6,489 | py | Python | CV1_assignment1/problem3_.py | cjy513203427/CV_Assignment | ac837dcd67f0d237017ef0124210bf9da0151487 | [
"MIT"
] | null | null | null | CV1_assignment1/problem3_.py | cjy513203427/CV_Assignment | ac837dcd67f0d237017ef0124210bf9da0151487 | [
"MIT"
] | null | null | null | CV1_assignment1/problem3_.py | cjy513203427/CV_Assignment | ac837dcd67f0d237017ef0124210bf9da0151487 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
# Plot 2D points
def displaypoints2d(points):
plt.figure(0)
plt.plot(points[0, :], points[1, :], '.b')
plt.xlabel('Screen X')
plt.ylabel('Screen Y')
# Plot 3D points
def displaypoints3d(points):
fig = plt.figure(1)
ax = fig.add_subplot(111, ... | 22.375862 | 108 | 0.602404 | 891 | 6,489 | 4.347924 | 0.195286 | 0.02349 | 0.036913 | 0.01936 | 0.273103 | 0.261487 | 0.220444 | 0.180176 | 0.135003 | 0.099897 | 0 | 0.026304 | 0.291108 | 6,489 | 289 | 109 | 22.453287 | 0.81587 | 0.501772 | 0 | 0.026316 | 0 | 0 | 0.024249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.026316 | 0 | 0.421053 | 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 |
6355cd9fc41a16ef9af937885f1b13913544530d | 2,370 | py | Python | OpenFOAM-wrapper/run_foam_single.py | Lenferd/ANSYS-OpenFOAM | b133cfa48aff7e734ccbd1f3b7fd6d6de029fe16 | [
"MIT"
] | null | null | null | OpenFOAM-wrapper/run_foam_single.py | Lenferd/ANSYS-OpenFOAM | b133cfa48aff7e734ccbd1f3b7fd6d6de029fe16 | [
"MIT"
] | null | null | null | OpenFOAM-wrapper/run_foam_single.py | Lenferd/ANSYS-OpenFOAM | b133cfa48aff7e734ccbd1f3b7fd6d6de029fe16 | [
"MIT"
] | null | null | null | import os
from executor.executor import Executor
from argparse import ArgumentParser
from configs.mesh import add_mesh_switch_arguments
from configs.mesh import SimpleBlockMeshConfig, SimpleBlockMeshArguments
from configs.mesh import RailMeshArguments, RailMeshConfig
from configs.fragmentation import FragmentationConf... | 39.5 | 102 | 0.781435 | 263 | 2,370 | 6.73384 | 0.296578 | 0.066064 | 0.025409 | 0.035573 | 0.112931 | 0.046302 | 0 | 0 | 0 | 0 | 0 | 0.001484 | 0.147257 | 2,370 | 59 | 103 | 40.169492 | 0.874814 | 0.006329 | 0 | 0.041667 | 0 | 0 | 0.099448 | 0.046324 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0 | false | 0 | 0.208333 | 0 | 0.208333 | 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 |
63561da871584dc80cc681224fdd788cac77302f | 892 | py | Python | lms/pshell.py | mattdricker/lms | 40b8a04f95e69258c6c0d7ada543f4b527918ecf | [
"BSD-2-Clause"
] | 38 | 2017-12-30T23:49:53.000Z | 2022-02-15T21:07:49.000Z | lms/pshell.py | mattdricker/lms | 40b8a04f95e69258c6c0d7ada543f4b527918ecf | [
"BSD-2-Clause"
] | 1,733 | 2017-11-09T18:46:05.000Z | 2022-03-31T11:05:50.000Z | lms/pshell.py | mattdricker/lms | 40b8a04f95e69258c6c0d7ada543f4b527918ecf | [
"BSD-2-Clause"
] | 10 | 2018-07-11T17:12:46.000Z | 2022-01-07T20:00:23.000Z | import sys
from contextlib import suppress
from transaction.interfaces import NoTransaction
from lms import models
def setup(env):
sys.path = ["."] + sys.path
from tests import factories # pylint:disable=import-outside-toplevel
sys.path = sys.path[1:]
request = env["request"]
request.tm.beg... | 23.473684 | 86 | 0.64574 | 111 | 892 | 5.027027 | 0.441441 | 0.050179 | 0.035842 | 0.050179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001433 | 0.217489 | 892 | 37 | 87 | 24.108108 | 0.797994 | 0.042601 | 0 | 0 | 0 | 0 | 0.224178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.208333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |