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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
347053f4c65de4c7e2c7c13a8144cc85060f99be | 2,367 | py | Python | statsneighborhoods/price.py | joehand/statistics-neighborhoods | 5a9cbbfd46da2d3dc5b715c2a9dec3276cee3fe8 | [
"MIT"
] | 1 | 2018-05-06T19:19:32.000Z | 2018-05-06T19:19:32.000Z | statsneighborhoods/price.py | joehand/statistics-neighborhoods | 5a9cbbfd46da2d3dc5b715c2a9dec3276cee3fe8 | [
"MIT"
] | null | null | null | statsneighborhoods/price.py | joehand/statistics-neighborhoods | 5a9cbbfd46da2d3dc5b715c2a9dec3276cee3fe8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
price calculations
~~~~~~~~~
WARNING: This is specific to US income data.
If this needs to be changed,
you will need to update the BINS values and some of the regex expressions.
:copyright: (c) 2015 by Joe Hand, Santa Fe Institute.
:license: MIT
"""
import numpy... | 36.415385 | 118 | 0.621462 | 342 | 2,367 | 4.070175 | 0.359649 | 0.116379 | 0.094828 | 0.028736 | 0.357759 | 0.317529 | 0.232759 | 0.152299 | 0.109195 | 0.071839 | 0 | 0.101816 | 0.232362 | 2,367 | 64 | 119 | 36.984375 | 0.664282 | 0.114068 | 0 | 0.15 | 0 | 0 | 0.138768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.075 | 0 | 0.275 | 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 |
34709103517f1e3b70cf5ad2dd28c6bb65951e42 | 5,945 | py | Python | 2018/day4/guard.py | sthilaid/AdventOfCode | f4a6006167debeb717843db41e7089d10d323d21 | [
"MIT"
] | null | null | null | 2018/day4/guard.py | sthilaid/AdventOfCode | f4a6006167debeb717843db41e7089d10d323d21 | [
"MIT"
] | null | null | null | 2018/day4/guard.py | sthilaid/AdventOfCode | f4a6006167debeb717843db41e7089d10d323d21 | [
"MIT"
] | null | null | null |
#!/usr/bin/python3
import array
import datetime
import functools
import io
import sys
class Guard():
def __init__(self, id):
self.id = id
self.shifts = []
self.sleepIntervals = []
def registerShift(self, shift):
self.shifts += [shift.date]
self.sle... | 31.62234 | 103 | 0.514382 | 606 | 5,945 | 5 | 0.232673 | 0.053465 | 0.021782 | 0.011221 | 0.066667 | 0.026403 | 0.012541 | 0.012541 | 0 | 0 | 0 | 0.013477 | 0.375946 | 5,945 | 187 | 104 | 31.791444 | 0.803235 | 0.009756 | 0 | 0.161074 | 0 | 0 | 0.057158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134228 | false | 0 | 0.033557 | 0.033557 | 0.342282 | 0.020134 | 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 |
3472110f997eb86fec5734bbdab064fe7075504b | 10,492 | py | Python | helpdesk/views/api/index.py | dispensable/helpdesk | f1dff07d5f051ea739a5995dbe06fef8a690e4b4 | [
"BSD-3-Clause"
] | null | null | null | helpdesk/views/api/index.py | dispensable/helpdesk | f1dff07d5f051ea739a5995dbe06fef8a690e4b4 | [
"BSD-3-Clause"
] | null | null | null | helpdesk/views/api/index.py | dispensable/helpdesk | f1dff07d5f051ea739a5995dbe06fef8a690e4b4 | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
import logging
from typing import Optional
from authlib.jose import jwt, errors as jwterrors
from starlette.responses import RedirectResponse # NOQA
from starlette.authentication import requires, has_required_scope # NOQA
from fastapi import Query, HTTPException, Depends, Request
from helpdesk impo... | 38.432234 | 122 | 0.681186 | 1,371 | 10,492 | 4.990518 | 0.15682 | 0.038585 | 0.073663 | 0.08594 | 0.401198 | 0.345951 | 0.270535 | 0.224203 | 0.199649 | 0.182695 | 0 | 0.008404 | 0.217499 | 10,492 | 272 | 123 | 38.573529 | 0.82497 | 0.018014 | 0 | 0.226852 | 0 | 0 | 0.108964 | 0.028933 | 0 | 0 | 0 | 0 | 0.013889 | 1 | 0.009259 | false | 0 | 0.074074 | 0 | 0.157407 | 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 |
3476a86dc9e0ac6fd8216803840ae80b2e93eb7b | 3,785 | py | Python | musicSpide.py | Brucechen13/converweb | 75e53960e0340a3c3a762bfe0b6087e3e7ac8ea0 | [
"MIT"
] | null | null | null | musicSpide.py | Brucechen13/converweb | 75e53960e0340a3c3a762bfe0b6087e3e7ac8ea0 | [
"MIT"
] | null | null | null | musicSpide.py | Brucechen13/converweb | 75e53960e0340a3c3a762bfe0b6087e3e7ac8ea0 | [
"MIT"
] | null | null | null | import requests
import json,os
import base64
from Crypto.Cipher import AES
import codecs
import binascii
from lxml import etree
musicUrl = ['http://music.163.com/discover/toplist?id=3779629']
basicUrl = 'http://music.163.com'
def getMusic():
return get_html(musicUrl[0])
def get_html(url):
headers = {
... | 39.427083 | 274 | 0.614795 | 448 | 3,785 | 5.147321 | 0.419643 | 0.020815 | 0.028621 | 0.032524 | 0.06418 | 0.01301 | 0 | 0 | 0 | 0 | 0 | 0.105724 | 0.215324 | 3,785 | 96 | 275 | 39.427083 | 0.670707 | 0.025363 | 0 | 0.04878 | 0 | 0.012195 | 0.288931 | 0.097396 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0.036585 | 0.085366 | 0.02439 | 0.231707 | 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 |
3477643ed6a1e9f2e57cd610eb10b9c823a21e5d | 2,891 | py | Python | package/src/snobedo/modis/__main__.py | UofU-Cryosphere/isnoda | 147742a8e589e472f73f9926cef27c2a1fe1d8d5 | [
"MIT"
] | 3 | 2021-12-02T01:55:08.000Z | 2022-01-05T21:40:55.000Z | package/src/snobedo/modis/__main__.py | UofU-Cryosphere/isnoda | 147742a8e589e472f73f9926cef27c2a1fe1d8d5 | [
"MIT"
] | 12 | 2020-09-24T22:32:48.000Z | 2022-02-17T20:29:54.000Z | package/src/snobedo/modis/__main__.py | UofU-Cryosphere/isnoda | 147742a8e589e472f73f9926cef27c2a1fe1d8d5 | [
"MIT"
] | 1 | 2020-08-26T19:45:32.000Z | 2020-08-26T19:45:32.000Z | import argparse
from datetime import datetime, timedelta
from pathlib import Path
from typing import NamedTuple
import dask
import numpy as np
from snobedo.lib import ModisGeoTiff
from snobedo.lib.command_line_helpers import add_dask_options, \
add_water_year_option
from snobedo.lib.dask_utils import run_with_cli... | 26.045045 | 79 | 0.675199 | 368 | 2,891 | 5.078804 | 0.315217 | 0.043339 | 0.048154 | 0.019262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 0.240055 | 2,891 | 110 | 80 | 26.281818 | 0.838871 | 0 | 0 | 0.08046 | 0 | 0 | 0.158423 | 0.029747 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057471 | false | 0 | 0.126437 | 0 | 0.287356 | 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 |
3477dcb657d5c2ddc0c119b91b421d868e92f3de | 2,114 | py | Python | repos/system_upgrade/el8toel9/actors/sssdcheck/actor.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | null | null | null | repos/system_upgrade/el8toel9/actors/sssdcheck/actor.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | 1 | 2022-03-07T15:34:11.000Z | 2022-03-07T15:35:15.000Z | repos/system_upgrade/el8toel9/actors/sssdcheck/actor.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | null | null | null | from leapp.actors import Actor
from leapp.models import SSSDConfig8to9
from leapp import reporting
from leapp.reporting import Report, create_report
from leapp.tags import IPUWorkflowTag, ChecksPhaseTag
COMMON_REPORT_TAGS = [reporting.Tags.AUTHENTICATION, reporting.Tags.SECURITY]
related = [
reporting.RelatedRes... | 34.655738 | 86 | 0.668401 | 241 | 2,114 | 5.784232 | 0.410788 | 0.094692 | 0.054519 | 0.027977 | 0.06241 | 0.045911 | 0.045911 | 0 | 0 | 0 | 0 | 0.007079 | 0.264901 | 2,114 | 60 | 87 | 35.233333 | 0.889961 | 0.25071 | 0 | 0.108108 | 0 | 0 | 0.207097 | 0.016774 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.135135 | 0 | 0.405405 | 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 |
3478bed71b27fbe54d8a0036b43d502dea8a018c | 11,308 | py | Python | karborclient/common/base.py | thuylt2/karborclient | 884d685c3cd1c1075e895791d7027b56c30dd328 | [
"Apache-2.0"
] | null | null | null | karborclient/common/base.py | thuylt2/karborclient | 884d685c3cd1c1075e895791d7027b56c30dd328 | [
"Apache-2.0"
] | null | null | null | karborclient/common/base.py | thuylt2/karborclient | 884d685c3cd1c1075e895791d7027b56c30dd328 | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 32.776812 | 79 | 0.57508 | 1,406 | 11,308 | 4.438834 | 0.216216 | 0.035892 | 0.027239 | 0.020189 | 0.255248 | 0.236661 | 0.229931 | 0.216952 | 0.189232 | 0.189232 | 0 | 0.0037 | 0.330828 | 11,308 | 344 | 80 | 32.872093 | 0.821065 | 0.221348 | 0 | 0.257919 | 0 | 0 | 0.046193 | 0.003274 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113122 | false | 0.004525 | 0.027149 | 0.013575 | 0.294118 | 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 |
3478c3f0864fb6087e6bd877632d57facc873d5f | 1,640 | py | Python | src/py_wizard/console_wiz_iface/ConsoleCurrencyQuestion.py | shearern/PyWizard | fac7f859707bc7fe36737caa794c159a66ea0789 | [
"MIT"
] | null | null | null | src/py_wizard/console_wiz_iface/ConsoleCurrencyQuestion.py | shearern/PyWizard | fac7f859707bc7fe36737caa794c159a66ea0789 | [
"MIT"
] | null | null | null | src/py_wizard/console_wiz_iface/ConsoleCurrencyQuestion.py | shearern/PyWizard | fac7f859707bc7fe36737caa794c159a66ea0789 | [
"MIT"
] | null | null | null | '''
Created on Sep 20, 2013
@author: nshearer
'''
from ConsoleSimpleQuestion import ConsoleSimpleQuestion
from ConsoleSimpleQuestion import UserAnswerValidationError
class ConsoleCurrencyQuestion(ConsoleSimpleQuestion):
def __init__(self, question):
super(ConsoleCurrencyQuestion, self)._... | 32.156863 | 83 | 0.568293 | 166 | 1,640 | 5.475904 | 0.445783 | 0.044004 | 0.033003 | 0.030803 | 0.044004 | 0.044004 | 0 | 0 | 0 | 0 | 0 | 0.031716 | 0.346341 | 1,640 | 50 | 84 | 32.8 | 0.816231 | 0.175 | 0 | 0.076923 | 0 | 0 | 0.063913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34791ea44dea16eb3c5f6adbe45ec3f5e3a3b266 | 21,113 | py | Python | peersockets.py | kaykurokawa/pushtx | 8155665e17f494a22f65f32ec75002da846e5135 | [
"MIT"
] | 7 | 2015-07-28T20:35:05.000Z | 2021-03-13T03:30:16.000Z | peersockets.py | kaykurokawa/pushtx | 8155665e17f494a22f65f32ec75002da846e5135 | [
"MIT"
] | 1 | 2015-08-07T05:08:58.000Z | 2015-08-13T16:32:13.000Z | peersockets.py | kaykurokawa/pushtx | 8155665e17f494a22f65f32ec75002da846e5135 | [
"MIT"
] | 4 | 2015-11-08T10:30:58.000Z | 2020-10-31T21:55:40.000Z | import logging
import struct
import socket
import select
import time
from hashlib import sha256
import protocol
import cryptoconfig
USER_AGENT='/Satoshi:0.10.0/' #BIP 14
TCP_RECV_PACKET_SIZE=4096
SOCKET_BLOCK_SECONDS=0 # None means blocking calls, 0 means non blocking calls
ADDRESS_TO_GET_IP='google.com' #connect t... | 39.911153 | 115 | 0.614929 | 2,704 | 21,113 | 4.576553 | 0.150518 | 0.02101 | 0.033778 | 0.039919 | 0.344242 | 0.257212 | 0.165414 | 0.133495 | 0.089455 | 0.089455 | 0 | 0.01314 | 0.289916 | 21,113 | 528 | 116 | 39.986742 | 0.8123 | 0.119642 | 0 | 0.260241 | 0 | 0 | 0.051756 | 0 | 0 | 0 | 0 | 0 | 0.00241 | 1 | 0.084337 | false | 0.043373 | 0.019277 | 0.009639 | 0.178313 | 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 |
3479528b4dfe049877b66a81c47c90223d199db2 | 2,330 | py | Python | code/models/textcnn.py | hiyouga/Toxic_Detection | 7545f71ebf8f65043db8e8fb0f5a8072b8b346cf | [
"MIT"
] | 2 | 2022-01-01T06:37:41.000Z | 2022-02-14T05:30:44.000Z | code/models/textcnn.py | hiyouga/Toxic_Detection | 7545f71ebf8f65043db8e8fb0f5a8072b8b346cf | [
"MIT"
] | null | null | null | code/models/textcnn.py | hiyouga/Toxic_Detection | 7545f71ebf8f65043db8e8fb0f5a8072b8b346cf | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from .env import multienv
class TextCNN(nn.Module):
def __init__(self, kernel_num, kernel_sizes, configs):
super(TextCNN, self).__init__()
WN, WD = configs['embedding_matrix'].shape
KN = kernel_num
KS = kernel_sizes
C = configs['num_cla... | 38.196721 | 112 | 0.626609 | 323 | 2,330 | 4.343653 | 0.321981 | 0.039914 | 0.035638 | 0.025659 | 0.085531 | 0.085531 | 0.051319 | 0.035638 | 0 | 0 | 0 | 0.010619 | 0.272532 | 2,330 | 60 | 113 | 38.833333 | 0.817109 | 0 | 0 | 0 | 0 | 0 | 0.11073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.06 | 0.02 | 0.18 | 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 |
347adf97af54d63546ef5ec7a08e7789395b81c9 | 12,026 | py | Python | bsuite_exp/option_critic/option_critic.py | DavidSlayback/rlpyt | 445adbd3917842caae0cae0d06e4b2866c8f1258 | [
"MIT"
] | null | null | null | bsuite_exp/option_critic/option_critic.py | DavidSlayback/rlpyt | 445adbd3917842caae0cae0d06e4b2866c8f1258 | [
"MIT"
] | null | null | null | bsuite_exp/option_critic/option_critic.py | DavidSlayback/rlpyt | 445adbd3917842caae0cae0d06e4b2866c8f1258 | [
"MIT"
] | null | null | null | # python3
# pylint: disable=g-bad-file-header
# Copyright 2019 DeepMind Technologies Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org... | 37.347826 | 110 | 0.657492 | 1,547 | 12,026 | 4.908209 | 0.201034 | 0.011853 | 0.024628 | 0.018965 | 0.353747 | 0.310022 | 0.285263 | 0.285263 | 0.272224 | 0.239431 | 0 | 0.006953 | 0.234575 | 12,026 | 321 | 111 | 37.464174 | 0.817925 | 0.206885 | 0 | 0.294372 | 0 | 0 | 0.012443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069264 | false | 0 | 0.064935 | 0 | 0.281385 | 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 |
347c5bc64ff65cc737eacd82e9e3755436605323 | 22,430 | py | Python | sopel_modules/SpiceBot/Users.py | deathbybandaid/Sopel-SpiceBotSERV | 816dddc88943b9194f3f0aa6558759eedd585343 | [
"EFL-2.0"
] | 2 | 2018-07-24T14:04:36.000Z | 2019-01-11T21:41:50.000Z | sopel_modules/SpiceBot/Users.py | deathbybandaid/Sopel-SpiceBotSERV | 816dddc88943b9194f3f0aa6558759eedd585343 | [
"EFL-2.0"
] | 947 | 2018-07-24T01:50:29.000Z | 2019-04-14T22:40:57.000Z | sopel_modules/SpiceBot/Users.py | deathbybandaid/Sopel-SpiceBotSERV | 816dddc88943b9194f3f0aa6558759eedd585343 | [
"EFL-2.0"
] | 6 | 2019-04-12T17:09:07.000Z | 2019-09-30T05:56:15.000Z | # coding=utf8
from __future__ import unicode_literals, absolute_import, division, print_function
"""A way to track users"""
import sopel
from sopel.tools import Identifier
from .Database import db as botdb
from .Tools import is_number, inlist, similar, array_arrangesort, bot_privs, channel_privs
from sopel_modules.s... | 39.144852 | 181 | 0.575881 | 2,800 | 22,430 | 4.458929 | 0.096786 | 0.076892 | 0.028114 | 0.026912 | 0.607048 | 0.569243 | 0.529996 | 0.465278 | 0.429876 | 0.390629 | 0 | 0.001702 | 0.319126 | 22,430 | 572 | 182 | 39.213287 | 0.815807 | 0.127864 | 0 | 0.428571 | 0 | 0 | 0.07228 | 0 | 0 | 0 | 0 | 0.001748 | 0 | 1 | 0.086735 | false | 0.028061 | 0.022959 | 0.002551 | 0.204082 | 0.002551 | 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 |
347c6d0817ffa67e0ca371af20acaf843bc16260 | 444 | py | Python | Lesson-1/uniqueOut.py | dhingratul/Data-Analysis | 8aa9695375b143fbbcb1355e9ade7a57ab68592d | [
"MIT"
] | null | null | null | Lesson-1/uniqueOut.py | dhingratul/Data-Analysis | 8aa9695375b143fbbcb1355e9ade7a57ab68592d | [
"MIT"
] | null | null | null | Lesson-1/uniqueOut.py | dhingratul/Data-Analysis | 8aa9695375b143fbbcb1355e9ade7a57ab68592d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon May 8 13:48:29 2017
@author: dhingratul
Input: Filename, columnName
Output : Unique number of a column of data
"""
import pandas as pd
def uniqueOut(filename, columnName):
file = pd.read_csv(filename)
return len(file[columnName].unique())
fi... | 21.142857 | 62 | 0.722973 | 62 | 444 | 5.129032 | 0.758065 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034121 | 0.141892 | 444 | 20 | 63 | 22.2 | 0.800525 | 0.385135 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 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 |
3480169d44a71f7ec54dde6653589dc344e1247c | 10,063 | py | Python | oss2/select_response.py | xkdcc/aliyun-oss-python-sdk | c34c10c830b3a0f884af4bd2a1b501b3d4e52038 | [
"MIT"
] | 840 | 2015-12-07T04:00:04.000Z | 2022-03-25T15:04:53.000Z | oss2/select_response.py | xkdcc/aliyun-oss-python-sdk | c34c10c830b3a0f884af4bd2a1b501b3d4e52038 | [
"MIT"
] | 270 | 2016-01-11T01:55:46.000Z | 2022-03-30T10:27:49.000Z | oss2/select_response.py | xkdcc/aliyun-oss-python-sdk | c34c10c830b3a0f884af4bd2a1b501b3d4e52038 | [
"MIT"
] | 424 | 2015-12-05T12:26:04.000Z | 2022-03-23T10:57:16.000Z | import platform
import struct
import requests
from .compat import to_bytes
from .exceptions import RequestError
from .exceptions import SelectOperationFailed
from .exceptions import SelectOperationClientError
from .exceptions import InconsistentError
from . import utils
import logging
logger = logging.getLogger(__nam... | 41.929167 | 164 | 0.617311 | 1,221 | 10,063 | 4.773956 | 0.141687 | 0.060216 | 0.031223 | 0.062275 | 0.499056 | 0.39029 | 0.349116 | 0.276548 | 0.219077 | 0.164179 | 0 | 0.027426 | 0.293451 | 10,063 | 239 | 165 | 42.104603 | 0.792405 | 0.018384 | 0 | 0.293194 | 0 | 0.005236 | 0.029078 | 0.002486 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036649 | false | 0 | 0.052356 | 0.010471 | 0.167539 | 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 |
3481af2e70769439b70e72f6601e14cbab1fe00b | 10,622 | py | Python | datagenerationpipeline.py | odeliss/wapetex | 1ad6740f537724e3640175234ea5d120912a0c3c | [
"MIT"
] | null | null | null | datagenerationpipeline.py | odeliss/wapetex | 1ad6740f537724e3640175234ea5d120912a0c3c | [
"MIT"
] | null | null | null | datagenerationpipeline.py | odeliss/wapetex | 1ad6740f537724e3640175234ea5d120912a0c3c | [
"MIT"
] | null | null | null | import os
import cv2
import imutils
import random
from skimage.transform import rotate
#3 next ones used for the skewing
from skimage.transform import warp
from skimage import data
from skimage.transform import ProjectiveTransform
import numpy as np
#this class will rotate, translate, crop, add noise, skew, flip verti... | 40.234848 | 134 | 0.720015 | 1,341 | 10,622 | 5.683072 | 0.208054 | 0.015746 | 0.019682 | 0.028343 | 0.492193 | 0.392993 | 0.354809 | 0.334602 | 0.308883 | 0.308883 | 0 | 0.023799 | 0.165317 | 10,622 | 263 | 135 | 40.387833 | 0.835777 | 0.238185 | 0 | 0.323864 | 0 | 0 | 0.069408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.051136 | 0 | 0.107955 | 0.073864 | 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 |
3481d1c2600c28f0691d9c43bd72bdf90e3ec7b3 | 3,381 | py | Python | esheep_sdk/example/medusa/algorithm1/config.py | skygoo/esheep-sdk | b413bba8f703dbdd3752d0f7c5787bce030c0a67 | [
"Apache-2.0"
] | 3 | 2019-01-15T00:32:34.000Z | 2019-05-14T09:04:38.000Z | esheep-sdk/example/medusa/algorithm1/config.py | seekloud/esheep-sdk | 1c8978e2bf00f9f4838981a71a555c169a97fb21 | [
"Apache-2.0"
] | null | null | null | esheep-sdk/example/medusa/algorithm1/config.py | seekloud/esheep-sdk | 1c8978e2bf00f9f4838981a71a555c169a97fb21 | [
"Apache-2.0"
] | 3 | 2019-01-23T07:44:09.000Z | 2019-03-24T15:11:16.000Z | # Author: Taoz
# Date : 8/29/2018
# Time : 3:08 PM
# FileName: config.py
import time
import sys
import configparser
import os
def load_conf(conf_file):
# 获取当前文件路径
current_path = os.path.abspath(__file__)
# config.ini文件路径,获取当前目录的父目录的父目录与congig.ini拼接
default_conf_file = os.path.join(os.path.abspath(... | 31.598131 | 117 | 0.736469 | 481 | 3,381 | 4.800416 | 0.274428 | 0.118233 | 0.101343 | 0.054569 | 0.12343 | 0.102209 | 0.080554 | 0.069294 | 0.043309 | 0.043309 | 0 | 0.010238 | 0.104407 | 3,381 | 106 | 118 | 31.896226 | 0.752312 | 0.091689 | 0 | 0.032258 | 0 | 0 | 0.231004 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016129 | false | 0 | 0.064516 | 0 | 0.096774 | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
caa368ee3f86b500c3851b882996cf49e1b7ed27 | 9,657 | py | Python | sqlorm4es/sql.py | floatliang/sqlorm4es | 343d8b350087e0d73784d70c4fa152febc0e0b14 | [
"MIT"
] | 6 | 2019-10-11T17:03:22.000Z | 2019-10-14T02:11:02.000Z | sqlorm4es/sql.py | floatliang/sqlorm4es | 343d8b350087e0d73784d70c4fa152febc0e0b14 | [
"MIT"
] | 1 | 2019-10-14T02:11:23.000Z | 2019-10-14T12:41:25.000Z | sqlorm4es/sql.py | floatliang/sqlorm4es | 343d8b350087e0d73784d70c4fa152febc0e0b14 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2019/10/4 18:22
# @Author : floatsliang
# @File : sql.py
from typing import Union
import re
from copy import deepcopy
from .epool import POOL
from .compiler import QueryCompiler
from .field import Expr, Field, OP_DICT, OP
from .utils import result_wrapper, SearchResu... | 33.53125 | 120 | 0.569224 | 1,203 | 9,657 | 4.334165 | 0.144638 | 0.025508 | 0.029919 | 0.01611 | 0.249521 | 0.181435 | 0.138282 | 0.125432 | 0.112006 | 0.094361 | 0 | 0.003582 | 0.306099 | 9,657 | 287 | 121 | 33.648084 | 0.774511 | 0.016051 | 0 | 0.247788 | 0 | 0.013274 | 0.114815 | 0.030065 | 0 | 0 | 0 | 0 | 0 | 1 | 0.154867 | false | 0.030973 | 0.030973 | 0.00885 | 0.331858 | 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 |
caaa92936e9bdaba1fb9ce03d01d0d8201e0f71d | 702 | py | Python | warp_stl.py | rcpedersen/stl-warper | 2c838795f0527d1159907b477f09ca40ade6d121 | [
"MIT"
] | 3 | 2016-02-23T10:35:57.000Z | 2017-09-11T00:14:03.000Z | warp_stl.py | rcpedersen/stl-warper | 2c838795f0527d1159907b477f09ca40ade6d121 | [
"MIT"
] | null | null | null | warp_stl.py | rcpedersen/stl-warper | 2c838795f0527d1159907b477f09ca40ade6d121 | [
"MIT"
] | null | null | null | from reader import read_stl_verticies
from utils import split_triangles, push2d, top_wider, push3d
from writer import Binary_STL_Writer
if __name__ == '__main__':
faces = []
triangles = read_stl_verticies("./input.stl")
more_triangles = split_triangles(triangles,5)
for triangle in more_triangles:
... | 35.1 | 60 | 0.655271 | 95 | 702 | 4.6 | 0.515789 | 0.08238 | 0.073227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.240741 | 702 | 19 | 61 | 36.947368 | 0.795497 | 0.051282 | 0 | 0 | 0 | 0 | 0.046617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 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 |
caaae961bfa85f149e075a0231d58bb0c94823f0 | 3,511 | py | Python | dcms/news/tests.py | regiondavid/django-demo | 4e1829c222d5f37ef222818b6f5afccc76a24f39 | [
"MIT"
] | 1 | 2019-08-31T16:54:28.000Z | 2019-08-31T16:54:28.000Z | dcms/news/tests.py | regiondavid/django-demo | 4e1829c222d5f37ef222818b6f5afccc76a24f39 | [
"MIT"
] | 9 | 2020-06-05T17:25:55.000Z | 2022-01-13T00:39:47.000Z | dcms/news/tests.py | regiondavid/django-demo | 4e1829c222d5f37ef222818b6f5afccc76a24f39 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import datetime
from django.utils import timezone
from django.test import TestCase
from django.urls import reverse
from .models import Question
# Create your tests here.
class QuestionMethodTest(TestCase):
def test_was_published_recently_with_future... | 39.449438 | 94 | 0.679578 | 411 | 3,511 | 5.552311 | 0.216545 | 0.070114 | 0.070114 | 0.079755 | 0.703769 | 0.689746 | 0.640228 | 0.50745 | 0.457055 | 0.457055 | 0 | 0.009065 | 0.214469 | 3,511 | 89 | 95 | 39.449438 | 0.818347 | 0.104813 | 0 | 0.339286 | 0 | 0 | 0.130144 | 0 | 0 | 0 | 0 | 0 | 0.196429 | 1 | 0.160714 | false | 0 | 0.107143 | 0 | 0.321429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
caab037d5577b045c5e211a62efa05a95efb90b3 | 1,227 | py | Python | sample/PutRowsWithDataFrame.py | nguyentientungduong/python_client | 83e43e470f26291edb8ce09a99544c80e187f701 | [
"Apache-2.0"
] | 79 | 2018-03-28T14:13:24.000Z | 2021-12-23T18:29:12.000Z | sample/PutRowsWithDataFrame.py | nguyentientungduong/python_client | 83e43e470f26291edb8ce09a99544c80e187f701 | [
"Apache-2.0"
] | 20 | 2018-07-03T18:12:52.000Z | 2022-01-06T03:11:11.000Z | sample/PutRowsWithDataFrame.py | nguyentientungduong/python_client | 83e43e470f26291edb8ce09a99544c80e187f701 | [
"Apache-2.0"
] | 73 | 2018-08-11T09:45:25.000Z | 2021-12-27T03:24:13.000Z | #!/usr/bin/python
import griddb_python as griddb
import sys
import pandas
factory = griddb.StoreFactory.get_instance()
argv = sys.argv
blob = bytearray([65, 66, 67, 68, 69, 70, 71, 72, 73, 74])
update = False
containerName = "SamplePython_PutRows"
try:
# Get GridStore object
gridstore = factory.get_store(h... | 29.926829 | 124 | 0.620212 | 154 | 1,227 | 4.850649 | 0.532468 | 0.053548 | 0.028112 | 0.040161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033049 | 0.235534 | 1,227 | 40 | 125 | 30.675 | 0.763326 | 0.05216 | 0 | 0 | 0 | 0 | 0.091458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.035714 | 0.107143 | 0 | 0.107143 | 0.25 | 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 |
caab073dbfab127f4fb02cfb6a42eb41a7a18c2b | 443 | py | Python | Python/MaxSumInSlidingWindow.py | ChanderJindal/Data_Structure_and_Algorithms | 8268a5b8be6bc967af41d1985db1224d6c6afc5e | [
"MIT"
] | 14 | 2019-10-26T11:43:56.000Z | 2021-01-23T00:37:17.000Z | Python/MaxSumInSlidingWindow.py | ChanderJindal/Data_Structure_and_Algorithms | 8268a5b8be6bc967af41d1985db1224d6c6afc5e | [
"MIT"
] | 28 | 2019-10-13T17:49:42.000Z | 2020-11-15T07:08:10.000Z | Python/MaxSumInSlidingWindow.py | ChanderJindal/Data_Structure_and_Algorithms | 8268a5b8be6bc967af41d1985db1224d6c6afc5e | [
"MIT"
] | 73 | 2019-10-11T06:38:10.000Z | 2022-01-26T20:04:24.000Z | import math
# this algorithm calculates the maximum sum present in the sublists of length k
# in the array
nums=list(map(int,input("enter the elements of the list\n").split()))
k=int(input("enter the size of the window :"))
cursum=sum(nums[:k])
maxsum= cursum
for i in range(1,len(nums)-k):
cursum=cursum-nums[i-1]+n... | 27.6875 | 79 | 0.704289 | 77 | 443 | 4.051948 | 0.493506 | 0.048077 | 0.083333 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007792 | 0.130926 | 443 | 15 | 80 | 29.533333 | 0.802597 | 0.20316 | 0 | 0 | 0 | 0 | 0.223496 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
caabe05d542fa1d4213fb15dc48b72856aee1f2d | 748 | py | Python | tests/configs/learning-gem5-p1-two-level.py | samgh1230/gem5 | 01c41ec521352ccd6e857aa2bed808d38557b40d | [
"BSD-3-Clause"
] | 3 | 2017-11-19T06:49:54.000Z | 2018-12-26T18:08:11.000Z | tests/configs/learning-gem5-p1-two-level.py | samgh1230/gem5 | 01c41ec521352ccd6e857aa2bed808d38557b40d | [
"BSD-3-Clause"
] | 1 | 2020-08-20T05:53:30.000Z | 2020-08-20T05:53:30.000Z | tests/configs/learning-gem5-p1-two-level.py | samgh1230/gem5 | 01c41ec521352ccd6e857aa2bed808d38557b40d | [
"BSD-3-Clause"
] | 6 | 2016-07-31T18:48:18.000Z | 2022-03-06T22:41:28.000Z |
# A wrapper around configs/learning_gem5/part1/two_level.py
# For some reason, this is implicitly needed by run.py
root = None
import m5
def run_test(root):
# Called from tests/run.py
# Add paths that we need
m5.util.addToPath('../configs/learning_gem5/part1')
m5.util.addToPath('../... | 29.92 | 76 | 0.653743 | 112 | 748 | 4.303571 | 0.580357 | 0.093361 | 0.118257 | 0.149378 | 0.141079 | 0.141079 | 0.141079 | 0 | 0 | 0 | 0 | 0.02509 | 0.254011 | 748 | 24 | 77 | 31.166667 | 0.83871 | 0.550802 | 0 | 0 | 0 | 0 | 0.267692 | 0.215385 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
caaccb98746ecf642948cea481675b0e4f50f8ca | 13,233 | py | Python | src/stactools/landsat/mtl_metadata.py | pjhartzell/landsat | 56c1cdd4343a9ce44607b5f5b33def5278eca3a4 | [
"Apache-2.0"
] | null | null | null | src/stactools/landsat/mtl_metadata.py | pjhartzell/landsat | 56c1cdd4343a9ce44607b5f5b33def5278eca3a4 | [
"Apache-2.0"
] | null | null | null | src/stactools/landsat/mtl_metadata.py | pjhartzell/landsat | 56c1cdd4343a9ce44607b5f5b33def5278eca3a4 | [
"Apache-2.0"
] | null | null | null | from collections import defaultdict
from datetime import datetime
from typing import Any, Dict, List, Optional
from pyproj import Geod
from pystac.utils import str_to_datetime
from stactools.core.io import ReadHrefModifier
from stactools.core.io.xml import XmlElement
from stactools.core.projection import transform_fro... | 37.808571 | 153 | 0.607194 | 1,594 | 13,233 | 4.793601 | 0.220828 | 0.036644 | 0.03455 | 0.046067 | 0.333857 | 0.291323 | 0.216333 | 0.199712 | 0.123806 | 0.096584 | 0 | 0.019047 | 0.297741 | 13,233 | 349 | 154 | 37.916905 | 0.803185 | 0.202448 | 0 | 0.260331 | 0 | 0 | 0.215144 | 0.182567 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119835 | false | 0.004132 | 0.03719 | 0.053719 | 0.309917 | 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 |
caad7ba8a2fcd067353d0063eebca93ac75d8669 | 2,191 | py | Python | wrappers.py | cross32768/PlaNet_PyTorch | 022baf724b52bf79e610f9d7a31e4195d6be6455 | [
"MIT"
] | 26 | 2019-12-30T06:45:16.000Z | 2022-03-18T02:00:15.000Z | wrappers.py | cross32768/PlaNet_PyTorch | 022baf724b52bf79e610f9d7a31e4195d6be6455 | [
"MIT"
] | 7 | 2019-12-29T14:46:36.000Z | 2020-01-01T09:11:34.000Z | wrappers.py | cross32768/PlaNet_PyTorch | 022baf724b52bf79e610f9d7a31e4195d6be6455 | [
"MIT"
] | 3 | 2020-05-23T17:23:22.000Z | 2020-10-27T18:03:58.000Z | import gym
import numpy as np
from viewer import OpenCVImageViewer
class GymWrapper(object):
"""
Gym interface wrapper for dm_control env wrapped by pixels.Wrapper
"""
metadata = {'render.modes': ['human', 'rgb_array']}
reward_range = (-np.inf, np.inf)
def __init__(self, env):
self._e... | 28.089744 | 89 | 0.600639 | 267 | 2,191 | 4.722846 | 0.314607 | 0.072165 | 0.02617 | 0.022205 | 0.079302 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007101 | 0.293017 | 2,191 | 77 | 90 | 28.454545 | 0.806972 | 0.053857 | 0 | 0.140351 | 0 | 0 | 0.03477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175439 | false | 0 | 0.052632 | 0.035088 | 0.45614 | 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 |
cab187b9189478433c28cb351566cfef54a3c790 | 3,175 | py | Python | project/services/views.py | Aleksey-Hugo/Avtoservis-Ulyanovsk-one- | 073cf02eda5efc7ed7598a39bcf62815f2bfeebb | [
"Apache-2.0"
] | 1 | 2021-06-29T13:28:44.000Z | 2021-06-29T13:28:44.000Z | project/services/views.py | Aleksey-Hugo/Avtoservis-Ulyanovsk-one- | 073cf02eda5efc7ed7598a39bcf62815f2bfeebb | [
"Apache-2.0"
] | null | null | null | project/services/views.py | Aleksey-Hugo/Avtoservis-Ulyanovsk-one- | 073cf02eda5efc7ed7598a39bcf62815f2bfeebb | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from . import models
from project import additional_scripts as scripts
from django.http import HttpResponse, JsonResponse
from django.template.loader import render_to_string
from django.views.decorators.csrf import csrf_exempt
import re
# Create your views here.
def get_default_... | 50.396825 | 226 | 0.748976 | 433 | 3,175 | 5.163972 | 0.187067 | 0.09839 | 0.046512 | 0.059034 | 0.602862 | 0.569767 | 0.501789 | 0.483453 | 0.426655 | 0.426655 | 0 | 0.003662 | 0.139843 | 3,175 | 62 | 227 | 51.209677 | 0.815086 | 0.007244 | 0 | 0.244898 | 0 | 0 | 0.079365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0 | 0.142857 | 0 | 0.367347 | 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 |
cab46f38ed7e33ed8da42d9ab11d078861215107 | 11,952 | py | Python | vispy/app/backends/_ipynb_webgl.py | robmcmullen/vispy | 8d5092fdae4a24fc364ae51c7e34e12d3fd6d0a2 | [
"BSD-3-Clause"
] | null | null | null | vispy/app/backends/_ipynb_webgl.py | robmcmullen/vispy | 8d5092fdae4a24fc364ae51c7e34e12d3fd6d0a2 | [
"BSD-3-Clause"
] | null | null | null | vispy/app/backends/_ipynb_webgl.py | robmcmullen/vispy | 8d5092fdae4a24fc364ae51c7e34e12d3fd6d0a2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2014, Vispy Development Team.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
"""
Vispy backend for the IPython notebook (WebGL approach).
"""
from __future__ import division
from ..base import (BaseApplicationBackend, BaseCanvasBackend,
... | 34.643478 | 79 | 0.556727 | 1,267 | 11,952 | 5.026835 | 0.269929 | 0.027634 | 0.032972 | 0.032972 | 0.196106 | 0.125922 | 0.109593 | 0.089339 | 0.089339 | 0.089339 | 0 | 0.005235 | 0.328732 | 11,952 | 344 | 80 | 34.744186 | 0.788608 | 0.166332 | 0 | 0.191837 | 0 | 0 | 0.060407 | 0.004538 | 0 | 0 | 0 | 0.002907 | 0 | 1 | 0.15102 | false | 0.032653 | 0.053061 | 0.020408 | 0.273469 | 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 |
cab5e991d555f4eb25c36074f5ce2e555de8a284 | 635 | py | Python | [functions] Time_related.py | 3n5/functions-python | be42f7b2108f8ed481956ce1c1ddc356c4ce17d6 | [
"MIT"
] | 2 | 2020-12-29T06:32:43.000Z | 2020-12-29T06:32:45.000Z | [functions] Time_related.py | h4r3/functions-python | be42f7b2108f8ed481956ce1c1ddc356c4ce17d6 | [
"MIT"
] | null | null | null | [functions] Time_related.py | h4r3/functions-python | be42f7b2108f8ed481956ce1c1ddc356c4ce17d6 | [
"MIT"
] | null | null | null | #Time-related functions 2020/12/22
"""Get elapsed time"""#[関数] プログラムの計測時間の表示
def time_elapsed():
import time
print(__doc__)
start = time.time()
print('== Replace the program you want to time here ==') and time.sleep(1)
end = time.time()
_time=end-start
hour,min,sec=_time//3600,_... | 28.863636 | 79 | 0.637795 | 93 | 635 | 4.172043 | 0.516129 | 0.061856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04175 | 0.207874 | 635 | 22 | 80 | 28.863636 | 0.729622 | 0.108661 | 0 | 0.117647 | 0 | 0.058824 | 0.231969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.294118 | 0.294118 | 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 |
cab6fe7833f5fec0c5468b98e097935105bdd403 | 6,661 | py | Python | tables/save_global_basin_curves_xls.py | thomasfrederikse/sealevelbudget_20c | eb3155da7255cd7e17cd574464e730b6ba16cb7d | [
"FSFAP"
] | 12 | 2020-08-19T21:32:37.000Z | 2022-02-23T12:35:42.000Z | tables/save_global_basin_curves_xls.py | thomasfrederikse/sealevelbudget_20c | eb3155da7255cd7e17cd574464e730b6ba16cb7d | [
"FSFAP"
] | 1 | 2020-12-09T08:51:00.000Z | 2020-12-09T08:51:00.000Z | tables/save_global_basin_curves_xls.py | thomasfrederikse/sealevelbudget_20c | eb3155da7255cd7e17cd574464e730b6ba16cb7d | [
"FSFAP"
] | null | null | null | # ---------------------------------------------------------
# Save global and basin-mean sea-level curves as Excel file
# Single file per basin
# ---------------------------------------------------------
import numpy as np
import os
import pandas as pd
def main():
settings = {}
settings['dir_data'] = os.gete... | 76.563218 | 236 | 0.629035 | 813 | 6,661 | 4.99262 | 0.130381 | 0.078837 | 0.092387 | 0.050259 | 0.575265 | 0.239221 | 0.066519 | 0 | 0 | 0 | 0 | 0.010959 | 0.123255 | 6,661 | 86 | 237 | 77.453488 | 0.684075 | 0.029275 | 0 | 0 | 0 | 0 | 0.449141 | 0.016411 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0 | 0.04 | 0 | 0.066667 | 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 |
cab7a62a6440c568cac6b6e233a81c664d529376 | 3,053 | py | Python | catalog/views.py | OdidiLavender/FoodWasteManagementProject | a5f339de79c9fb78771197089967caaf2ec1db18 | [
"MIT"
] | null | null | null | catalog/views.py | OdidiLavender/FoodWasteManagementProject | a5f339de79c9fb78771197089967caaf2ec1db18 | [
"MIT"
] | null | null | null | catalog/views.py | OdidiLavender/FoodWasteManagementProject | a5f339de79c9fb78771197089967caaf2ec1db18 | [
"MIT"
] | null | null | null | from multiprocessing import context
from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth.decorators import login_required
from .models import Food, Order
from .forms import FoodForm
# Create your views here.
def home_view(request, template='index.html'):
products = Food.objects... | 34.303371 | 65 | 0.603013 | 333 | 3,053 | 5.453453 | 0.249249 | 0.099119 | 0.073238 | 0.104075 | 0.376652 | 0.317181 | 0.232379 | 0.14978 | 0.14978 | 0.14978 | 0 | 0.002735 | 0.281363 | 3,053 | 89 | 66 | 34.303371 | 0.824977 | 0.007534 | 0 | 0.414634 | 0 | 0 | 0.094421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.060976 | 0 | 0.292683 | 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 |
cab9ed4e026d9fabb8a1a1bf7202062d7c63720a | 744 | py | Python | InnovationMaps/urls.py | OnlineS3/5.6.-RIS3-innovation-maps | 118c1460ad13f1d56d5228187a0a570b42944cc6 | [
"MIT"
] | null | null | null | InnovationMaps/urls.py | OnlineS3/5.6.-RIS3-innovation-maps | 118c1460ad13f1d56d5228187a0a570b42944cc6 | [
"MIT"
] | null | null | null | InnovationMaps/urls.py | OnlineS3/5.6.-RIS3-innovation-maps | 118c1460ad13f1d56d5228187a0a570b42944cc6 | [
"MIT"
] | null | null | null | """Innovation Maps URL Configuration
The `urlpatterns` list routes URLs to views.
"""
from django.conf.urls import url
from InnovationMaps.views import *
urlpatterns = [
url(r'^about/$', about, name='innovationmaps_about'),
url(r'^guide/$', guide, name='innovationmaps_guide'),
url(r'^pdf/$', pdf, name='inn... | 39.157895 | 66 | 0.678763 | 90 | 744 | 5.511111 | 0.322222 | 0.080645 | 0.03629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13172 | 744 | 18 | 67 | 41.333333 | 0.767802 | 0.11828 | 0 | 0 | 0 | 0 | 0.40832 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 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 |
cababfdd4a279ee379d1a2e9140e141a7bd6a78b | 2,892 | py | Python | nc2json_HYCOM_GLBy_forecast.py | cyhsu/leaflet-velocity | 3759902e995b0ebd5047c5558bbbf9887d1ebed0 | [
"MIT"
] | null | null | null | nc2json_HYCOM_GLBy_forecast.py | cyhsu/leaflet-velocity | 3759902e995b0ebd5047c5558bbbf9887d1ebed0 | [
"MIT"
] | null | null | null | nc2json_HYCOM_GLBy_forecast.py | cyhsu/leaflet-velocity | 3759902e995b0ebd5047c5558bbbf9887d1ebed0 | [
"MIT"
] | null | null | null | import os, sys, json
import numpy as np
import xarray as xr
from glob import glob
from datetime import datetime
from netCDF4 import Dataset, num2date, date2num
from scipy.interpolate import griddata
#- HYCOM GLBv0.08/latest (daily-mean) present + forecast
#- Detail info: https://www.hycom.org/dataserver/gofs-3pt1/ana... | 40.166667 | 117 | 0.662863 | 463 | 2,892 | 4.034557 | 0.269978 | 0.147752 | 0.076552 | 0.091542 | 0.485011 | 0.398822 | 0.346895 | 0.243041 | 0.110278 | 0.110278 | 0 | 0.065109 | 0.097165 | 2,892 | 71 | 118 | 40.732394 | 0.650326 | 0.089903 | 0 | 0 | 0 | 0.036364 | 0.205412 | 0.065549 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.127273 | 0 | 0.127273 | 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 |
cac27a4fdd875de8d39aa95f71a8e785bf4a097c | 901 | py | Python | lens/models/ext_models/deep_red/arffImporter.py | pietrobarbiero/logic_explained_networks | 238f2a220ae8fc4f31ab0cf12649603aba0285d5 | [
"Apache-2.0"
] | 18 | 2021-05-24T07:47:57.000Z | 2022-01-05T14:48:39.000Z | lens/models/ext_models/deep_red/arffImporter.py | pietrobarbiero/logic_explained_networks | 238f2a220ae8fc4f31ab0cf12649603aba0285d5 | [
"Apache-2.0"
] | 1 | 2021-08-25T16:33:10.000Z | 2021-08-25T16:33:10.000Z | lens/models/ext_models/deep_red/arffImporter.py | pietrobarbiero/deep-logic | 238f2a220ae8fc4f31ab0cf12649603aba0285d5 | [
"Apache-2.0"
] | 2 | 2021-05-26T08:15:14.000Z | 2021-08-23T18:58:16.000Z | import arff as arff
import numpy as np
datasetRepo = 'BreastCancer'
datasetName = 'breast-cancer-wisconsinBinary'
data_list=[]
for row in arff.load('/home/lukas/Uni/AAThesis/Datasets/'+ datasetRepo +'/'+ datasetName +'.arff'):
data_list.append(row)
data_np=np.array(data_list,dtype=float)
#eliminate missing
#i... | 30.033333 | 104 | 0.756937 | 140 | 901 | 4.7 | 0.507143 | 0.054711 | 0.06383 | 0.06079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003681 | 0.09545 | 901 | 30 | 105 | 30.033333 | 0.803681 | 0.145394 | 0 | 0 | 0 | 0 | 0.319426 | 0.131682 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.277778 | 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 |
cac2971ae42c2e1eedf0e79789b0fb4607584896 | 1,550 | py | Python | clipl/scripts/hadd.py | thomas-mueller/clipl | 4c8c61dd4a09fee6ad2ec65f3baa6854cf9cce69 | [
"MIT"
] | null | null | null | clipl/scripts/hadd.py | thomas-mueller/clipl | 4c8c61dd4a09fee6ad2ec65f3baa6854cf9cce69 | [
"MIT"
] | null | null | null | clipl/scripts/hadd.py | thomas-mueller/clipl | 4c8c61dd4a09fee6ad2ec65f3baa6854cf9cce69 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import clipl.utility.logger as logger
log = logging.getLogger(__name__)
import argparse
import clipl.utility.jsonTools as jsonTools
import clipl.utility.tools as tools
import glob
import os
import shlex
import sys
from clipl.utility.tools import hadd
de... | 28.703704 | 139 | 0.672903 | 204 | 1,550 | 4.955882 | 0.45098 | 0.087043 | 0.06726 | 0.035608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004045 | 0.202581 | 1,550 | 53 | 140 | 29.245283 | 0.813916 | 0.027097 | 0 | 0 | 0 | 0.027027 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.27027 | 0 | 0.297297 | 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 |
cac588be03ffc7ee32885771e6c662fba728e2e2 | 12,135 | py | Python | process.py | Jacob-Zhou/CWS_Dict-rewrite | ef73c2c05acedef6a8e886286e2cd652676c9879 | [
"MIT"
] | null | null | null | process.py | Jacob-Zhou/CWS_Dict-rewrite | ef73c2c05acedef6a8e886286e2cd652676c9879 | [
"MIT"
] | null | null | null | process.py | Jacob-Zhou/CWS_Dict-rewrite | ef73c2c05acedef6a8e886286e2cd652676c9879 | [
"MIT"
] | 1 | 2019-06-23T07:21:05.000Z | 2019-06-23T07:21:05.000Z | import codecs
import collections
from typing import *
import os
import tensorflow as tf
import csv
import tokenization
import numpy as np
import re
import utils
class InputExample(object):
"""A single training/test example for simple sequence classification."""
def __init__(self, guid, text, labels=None):
... | 33.896648 | 95 | 0.567614 | 1,620 | 12,135 | 4.081481 | 0.162346 | 0.01588 | 0.008167 | 0.011645 | 0.37311 | 0.320327 | 0.287205 | 0.271022 | 0.253176 | 0.247429 | 0 | 0.01218 | 0.316687 | 12,135 | 357 | 96 | 33.991597 | 0.785215 | 0.189617 | 0 | 0.421053 | 0 | 0 | 0.026436 | 0 | 0 | 0 | 0 | 0 | 0.020243 | 1 | 0.11336 | false | 0 | 0.048583 | 0.008097 | 0.279352 | 0.004049 | 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 |
caca10fc98e62440f55454d66c538a4a9f921292 | 807 | py | Python | 0778 Swim in Rising Water.py | MdAbedin/leetcode | e835f2e716ea5fe87f30b84801ede9bc023749e7 | [
"MIT"
] | 4 | 2020-09-11T02:36:11.000Z | 2021-09-29T20:47:11.000Z | 0778 Swim in Rising Water.py | MdAbedin/leetcode | e835f2e716ea5fe87f30b84801ede9bc023749e7 | [
"MIT"
] | 3 | 2020-09-10T03:51:42.000Z | 2021-09-25T01:41:57.000Z | 0778 Swim in Rising Water.py | MdAbedin/leetcode | e835f2e716ea5fe87f30b84801ede9bc023749e7 | [
"MIT"
] | 6 | 2020-09-10T03:46:15.000Z | 2021-09-25T01:24:48.000Z | class Solution:
def swimInWater(self, grid: List[List[int]]) -> int:
t = 0
seen = set((0,0))
frontier = [(0,0)]
while True:
new_frontier = []
while frontier:
y,x = frontier.pop()
if grid[y]... | 32.28 | 87 | 0.359356 | 96 | 807 | 2.989583 | 0.333333 | 0.041812 | 0.069686 | 0.027875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.496902 | 807 | 24 | 88 | 33.625 | 0.672414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
caca13b9f9987b6f832d8d595f3219235635f8e0 | 5,108 | py | Python | GUI/RPi_data.py | leander-dsouza/URC-2019 | 6773e6b66dfb840bdbb4463441e8a855b42b1123 | [
"MIT"
] | 5 | 2020-05-10T11:03:48.000Z | 2022-01-17T07:00:40.000Z | GUI/RPi_data.py | leander-dsouza/URC-2019 | 6773e6b66dfb840bdbb4463441e8a855b42b1123 | [
"MIT"
] | null | null | null | GUI/RPi_data.py | leander-dsouza/URC-2019 | 6773e6b66dfb840bdbb4463441e8a855b42b1123 | [
"MIT"
] | 3 | 2020-07-13T14:11:12.000Z | 2022-01-07T18:05:05.000Z | from PyQt5 import QtCore, QtWidgets, QtGui
import pyqtgraph as pg
import numpy as np
import socket
import pyproj
from pyqtgraph import functions as fn
from gps3 import gps3
import sys
from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QPushButton, QAction, QLineEdit, QMessageBox
from PyQt5.QtGui import QIc... | 31.530864 | 141 | 0.646045 | 642 | 5,108 | 5.0919 | 0.386293 | 0.017131 | 0.016519 | 0.019272 | 0.055063 | 0.055063 | 0.023861 | 0.023861 | 0.023861 | 0.023861 | 0 | 0.060309 | 0.201449 | 5,108 | 161 | 142 | 31.726708 | 0.741113 | 0.193226 | 0 | 0.042105 | 0 | 0 | 0.035985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063158 | false | 0 | 0.136842 | 0 | 0.231579 | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cacf9a2cc70649787fc954ebbb125da02d448c66 | 3,839 | py | Python | index/DiskIndex.py | pythonlittleboy/python_gentleman_crawler | 751b624d22a5024746c256080ea0815a9986e3d7 | [
"Apache-2.0"
] | 1 | 2017-05-03T12:18:31.000Z | 2017-05-03T12:18:31.000Z | index/DiskIndex.py | pythonlittleboy/python_gentleman_crawler | 751b624d22a5024746c256080ea0815a9986e3d7 | [
"Apache-2.0"
] | null | null | null | index/DiskIndex.py | pythonlittleboy/python_gentleman_crawler | 751b624d22a5024746c256080ea0815a9986e3d7 | [
"Apache-2.0"
] | 1 | 2020-10-29T04:00:04.000Z | 2020-10-29T04:00:04.000Z | import os
import index.MovieDAO as movieDAO
from pprint import pprint
from index import SysConst
import shutil
def getAllMovies(path):
movieTypes = set(["avi", "mp4", "mkv", "rmvb", "wmv", "txt"])
results = []
for fpath, dirs, fs in os.walk(path):
for filename in fs:
fullpath... | 33.675439 | 96 | 0.567856 | 395 | 3,839 | 5.511392 | 0.217722 | 0.058797 | 0.031236 | 0.03491 | 0.532843 | 0.532843 | 0.532843 | 0.532843 | 0.502526 | 0.502526 | 0 | 0.011918 | 0.300599 | 3,839 | 114 | 97 | 33.675439 | 0.798883 | 0.099766 | 0 | 0.55 | 0 | 0 | 0.063006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.0625 | 0 | 0.225 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cad081edcdd3a2dbd2df62ac950a790986e0574a | 30,555 | py | Python | mmaction/models/recognizers/recognizer3d_semi_appsup_tempsup_simclr_crossclip_ptv.py | lambert-x/video_semisup | 8ff44343bb34485f8ad08d50ca4d8de22e122c1d | [
"Apache-2.0"
] | null | null | null | mmaction/models/recognizers/recognizer3d_semi_appsup_tempsup_simclr_crossclip_ptv.py | lambert-x/video_semisup | 8ff44343bb34485f8ad08d50ca4d8de22e122c1d | [
"Apache-2.0"
] | null | null | null | mmaction/models/recognizers/recognizer3d_semi_appsup_tempsup_simclr_crossclip_ptv.py | lambert-x/video_semisup | 8ff44343bb34485f8ad08d50ca4d8de22e122c1d | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn.functional as F
import torch.nn as nn
# Custom imports
from .base_semi_apppearance_temporal_simclr import SemiAppTemp_SimCLR_BaseRecognizer
from ..builder import RECOGNIZERS
from ..losses import CosineSimiLoss
from ...utils import GatherLayer
@RECOGNIZERS.register_module()
class Semi_App... | 52.409949 | 142 | 0.602291 | 3,845 | 30,555 | 4.39922 | 0.069961 | 0.026012 | 0.024594 | 0.019036 | 0.759563 | 0.678215 | 0.619509 | 0.57653 | 0.556547 | 0.528466 | 0 | 0.013962 | 0.299133 | 30,555 | 582 | 143 | 52.5 | 0.775905 | 0.146261 | 0 | 0.434555 | 0 | 0 | 0.056434 | 0.038894 | 0 | 0 | 0 | 0.001718 | 0 | 1 | 0.013089 | false | 0.002618 | 0.018325 | 0 | 0.04712 | 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 |
cad40e90be13cab47bd5268c5b82d265267aefbf | 29,968 | py | Python | experiments/classCali_full_CRF/gpu_crf_eval_with_ece.py | neelabh17/SegmenTron | 69a4d1da858aba9222994847000f9945be3f4cd5 | [
"Apache-2.0"
] | null | null | null | experiments/classCali_full_CRF/gpu_crf_eval_with_ece.py | neelabh17/SegmenTron | 69a4d1da858aba9222994847000f9945be3f4cd5 | [
"Apache-2.0"
] | null | null | null | experiments/classCali_full_CRF/gpu_crf_eval_with_ece.py | neelabh17/SegmenTron | 69a4d1da858aba9222994847000f9945be3f4cd5 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
from ast import dump
from numpy.lib.npyio import save
from calibration_library.metrics import ECELoss, CCELoss
import io
from logging import log
from experiments.classCali_full_CRF import convcrf
from experiments.classCali_full_CRF.convcrf import GaussCRF, get_default_conf
import... | 37.181141 | 189 | 0.531734 | 3,414 | 29,968 | 4.465729 | 0.122437 | 0.038961 | 0.024793 | 0.028335 | 0.658337 | 0.631379 | 0.618195 | 0.611964 | 0.590975 | 0.565263 | 0 | 0.021066 | 0.356881 | 29,968 | 806 | 190 | 37.181141 | 0.769989 | 0.121997 | 0 | 0.521101 | 0 | 0.001835 | 0.05671 | 0.019773 | 0 | 0 | 0 | 0 | 0.005505 | 1 | 0.016514 | false | 0.007339 | 0.06422 | 0 | 0.086239 | 0.005505 | 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 |
cad510dc56f073e7603af970c006b57ebebf4ae0 | 9,585 | py | Python | leavable_wait_page/pages.py | chkgk/leavable_wait_page | 7bafe7492329d91e6e1df57996bd110fccb92abc | [
"MIT"
] | 2 | 2020-02-01T11:47:03.000Z | 2020-03-27T17:14:34.000Z | leavable_wait_page/pages.py | chkgk/leavable_wait_page | 7bafe7492329d91e6e1df57996bd110fccb92abc | [
"MIT"
] | 1 | 2020-08-13T02:34:56.000Z | 2020-08-13T02:36:22.000Z | leavable_wait_page/pages.py | chkgk/leavable_wait_page | 7bafe7492329d91e6e1df57996bd110fccb92abc | [
"MIT"
] | null | null | null | import time
from django.http import HttpResponseRedirect
from otree.models import Participant
from . import models
from ._builtin import Page, WaitPage
class DecorateIsDisplayMixin(object):
def __init__(self):
super(DecorateIsDisplayMixin, self).__init__()
# We need to edit is_displayed() method ... | 49.153846 | 127 | 0.649557 | 1,217 | 9,585 | 4.768283 | 0.184059 | 0.027917 | 0.027572 | 0.020851 | 0.521971 | 0.460279 | 0.396347 | 0.351198 | 0.311046 | 0.294847 | 0 | 0.001436 | 0.273552 | 9,585 | 194 | 128 | 49.407216 | 0.831969 | 0.183307 | 0 | 0.244444 | 0 | 0 | 0.090991 | 0.056132 | 0 | 0 | 0 | 0 | 0.007407 | 1 | 0.125926 | false | 0.037037 | 0.037037 | 0 | 0.311111 | 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 |
cad58261e324fbea414f99255ccc6dcba0116684 | 7,424 | py | Python | test/new_tests/test_info_single_node.py | syaiful6/aerospike-client-python | 59fa0d36aa899a164282643fe49b27d12aaf323f | [
"Apache-2.0"
] | 105 | 2015-01-07T09:51:13.000Z | 2022-03-24T04:23:54.000Z | test/new_tests/test_info_single_node.py | syaiful6/aerospike-client-python | 59fa0d36aa899a164282643fe49b27d12aaf323f | [
"Apache-2.0"
] | 180 | 2015-01-01T19:29:50.000Z | 2022-03-19T14:14:06.000Z | test/new_tests/test_info_single_node.py | syaiful6/aerospike-client-python | 59fa0d36aa899a164282643fe49b27d12aaf323f | [
"Apache-2.0"
] | 94 | 2015-01-21T19:17:48.000Z | 2022-01-31T07:17:47.000Z | # -*- coding: utf-8 -*-
import pytest
import time
import sys
import socket
from .test_base_class import TestBaseClass
from .as_status_codes import AerospikeStatus
from aerospike import exception as e
aerospike = pytest.importorskip("aerospike")
try:
import aerospike
except:
print("Please install aerospike pyt... | 32.419214 | 95 | 0.626212 | 882 | 7,424 | 5.02381 | 0.183673 | 0.078989 | 0.110585 | 0.076732 | 0.592417 | 0.504401 | 0.451365 | 0.411871 | 0.40149 | 0.305349 | 0 | 0.011465 | 0.271552 | 7,424 | 228 | 96 | 32.561404 | 0.807877 | 0.103718 | 0 | 0.410072 | 0 | 0.007194 | 0.102265 | 0.012763 | 0 | 0 | 0 | 0 | 0.093525 | 1 | 0.122302 | false | 0.007194 | 0.064748 | 0 | 0.208633 | 0.007194 | 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 |
cada338b322e830c14a3de91f1b4a499e17be809 | 7,494 | py | Python | buildroot/package/lmsmpris/src/mpris.py | mgrosso/hifiberry-os | 47bad0e9abea0b72914cbd8b13b2b3fdbe656c6f | [
"MIT"
] | 637 | 2016-12-05T15:13:49.000Z | 2022-03-25T21:28:09.000Z | buildroot/package/lmsmpris/src/mpris.py | mgrosso/hifiberry-os | 47bad0e9abea0b72914cbd8b13b2b3fdbe656c6f | [
"MIT"
] | 294 | 2018-10-10T15:58:17.000Z | 2022-03-29T09:35:36.000Z | buildroot/package/lmsmpris/src/mpris.py | mgrosso/hifiberry-os | 47bad0e9abea0b72914cbd8b13b2b3fdbe656c6f | [
"MIT"
] | 89 | 2018-06-04T05:18:24.000Z | 2022-03-15T13:46:12.000Z | import dbus
import time
import logging
from metadata import Metadata
PLAYING = "playing"
mpris = None
MPRIS_NEXT = "Next"
MPRIS_PREV = "Previous"
MPRIS_PAUSE = "Pause"
MPRIS_PLAYPAUSE = "PlayPause"
MPRIS_STOP = "Stop"
MPRIS_PLAY = "Play"
mpris_commands = [MPRIS_NEXT, MPRIS_PREV,
MPRIS_PAUSE, MPRI... | 29.388235 | 76 | 0.52442 | 764 | 7,494 | 5.014398 | 0.217277 | 0.039937 | 0.051162 | 0.031323 | 0.173584 | 0.12947 | 0.087706 | 0.067345 | 0.067345 | 0.067345 | 0 | 0.003704 | 0.38751 | 7,494 | 254 | 77 | 29.503937 | 0.830937 | 0.086603 | 0 | 0.22093 | 0 | 0 | 0.088684 | 0.03641 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.023256 | 0.005814 | 0.19186 | 0.011628 | 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 |
cadf2c0206812d71cdeb1d4e64b0d2ed452aaeca | 2,587 | py | Python | tests/nlu_core_tests/test_entire_namespace_unittest.py | UPbook-innovations/nlu | 2ae02ce7b6ca163f47271e98b71de109d38adefe | [
"Apache-2.0"
] | 1 | 2021-05-01T01:23:18.000Z | 2021-05-01T01:23:18.000Z | tests/nlu_core_tests/test_entire_namespace_unittest.py | adbmd/nlu | c9b52a4ae001505bdb09c22c9ebd7e5b2ccf3b54 | [
"Apache-2.0"
] | 2 | 2021-09-28T05:55:05.000Z | 2022-02-26T11:16:21.000Z | tests/nlu_core_tests/test_entire_namespace_unittest.py | atdavidpark/nlu | 619d07299e993323d83086c86506db71e2a139a9 | [
"Apache-2.0"
] | 1 | 2021-09-13T10:06:20.000Z | 2021-09-13T10:06:20.000Z | # content of test_expectation.py
import pytest
import nlu
from nose2.tools import params
import unittest
from parameterized import parameterized, parameterized_class
'''
Test every component in the NLU namespace.
This can take very long
'''
all_default_references = []
i=0
for nlu_reference in nlu.NameSpace.component_... | 33.166667 | 85 | 0.707383 | 352 | 2,587 | 4.965909 | 0.235795 | 0.130435 | 0.051487 | 0.05492 | 0.615561 | 0.600114 | 0.503432 | 0.449085 | 0.365561 | 0.30492 | 0 | 0.003788 | 0.18361 | 2,587 | 77 | 86 | 33.597403 | 0.823864 | 0.384615 | 0 | 0.142857 | 0 | 0 | 0.127187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.171429 | 0 | 0.228571 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cae17f3ada10180582eda453dfd1179f17df81e8 | 2,158 | py | Python | format.py | suut/psychic-happiness | 56c0daef93f40b91e8a859f04a4660dde2b5c5c1 | [
"Unlicense"
] | 1 | 2020-02-25T10:47:00.000Z | 2020-02-25T10:47:00.000Z | format.py | suut/psychic-happiness | 56c0daef93f40b91e8a859f04a4660dde2b5c5c1 | [
"Unlicense"
] | null | null | null | format.py | suut/psychic-happiness | 56c0daef93f40b91e8a859f04a4660dde2b5c5c1 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python3.4
# -*- coding: utf-8 -*-
from forbiddenfruit import curse
controlcodes = {'bold': '\x02',
'underlined': '\x1F',
'italic': '\x1D',
'reset': '\x0F',
'reverse': '\x16'}
colorlist = {'white': '00',
... | 29.972222 | 97 | 0.460612 | 221 | 2,158 | 4.357466 | 0.552036 | 0.029076 | 0.024922 | 0.047767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034589 | 0.397127 | 2,158 | 71 | 98 | 30.394366 | 0.705611 | 0.113068 | 0 | 0.036364 | 0 | 0 | 0.107725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.018182 | 0.018182 | 0.218182 | 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 |
cae475cf15eaab315664af14b56874ea55231098 | 1,171 | py | Python | plugins/module_utils/ovh.py | PiMath22/infra-ovh-ansible-module | cbd9d1513f61001d1dcce56b1387fa0c9e3721f5 | [
"MIT"
] | 61 | 2017-03-28T09:38:19.000Z | 2022-03-16T00:38:25.000Z | plugins/module_utils/ovh.py | PiMath22/infra-ovh-ansible-module | cbd9d1513f61001d1dcce56b1387fa0c9e3721f5 | [
"MIT"
] | 30 | 2017-08-16T08:57:09.000Z | 2021-12-19T16:04:16.000Z | plugins/module_utils/ovh.py | PiMath22/infra-ovh-ansible-module | cbd9d1513f61001d1dcce56b1387fa0c9e3721f5 | [
"MIT"
] | 25 | 2017-05-30T10:25:32.000Z | 2022-01-24T10:31:16.000Z | from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
try:
import ovh
from ovh.exceptions import APIError
HAS_OVH = True
except ImportError:
HAS_OVH = False
def ovh_api_connect(module):
if not HAS_OVH:
module.fail_json(msg='python-ovh must be installed to... | 30.815789 | 88 | 0.671221 | 141 | 1,171 | 5.35461 | 0.439716 | 0.063576 | 0.090066 | 0.127152 | 0.18543 | 0.148344 | 0 | 0 | 0 | 0 | 0 | 0.001121 | 0.238258 | 1,171 | 37 | 89 | 31.648649 | 0.845291 | 0 | 0 | 0.064516 | 0 | 0 | 0.108454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.129032 | 0.032258 | 0.258065 | 0.032258 | 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 |
cae4ec0d8b6fef60b4e8998414d13025c2d142e9 | 5,962 | py | Python | subs2vec/similarities.py | jvparidon/sub2vec | adb9e72b64dc6dbde3c2060ee0d3964ab623a149 | [
"MIT"
] | 19 | 2019-09-23T20:31:54.000Z | 2022-03-01T22:19:12.000Z | subs2vec/similarities.py | ClarasMind/subs2vec | adb9e72b64dc6dbde3c2060ee0d3964ab623a149 | [
"MIT"
] | 4 | 2019-11-26T21:12:53.000Z | 2022-03-29T02:46:25.000Z | subs2vec/similarities.py | ClarasMind/subs2vec | adb9e72b64dc6dbde3c2060ee0d3964ab623a149 | [
"MIT"
] | 2 | 2020-09-30T15:02:32.000Z | 2022-03-01T22:19:20.000Z | """Compute rank correlations between word vector cosine similarities and human ratings of semantic similarity."""
import numpy as np
import pandas as pd
import argparse
import os
import scipy.spatial.distance
import scipy.stats
from .vecs import Vectors
from .utensils import log_timer
import logging
logging.b... | 48.080645 | 159 | 0.679638 | 727 | 5,962 | 5.437414 | 0.233838 | 0.031875 | 0.010119 | 0.015178 | 0.267898 | 0.177081 | 0.158361 | 0.140147 | 0.09613 | 0.07235 | 0 | 0.009424 | 0.216874 | 5,962 | 123 | 160 | 48.471545 | 0.837224 | 0.249748 | 0 | 0.1 | 0 | 0 | 0.167137 | 0.006591 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1125 | 0 | 0.2 | 0.0125 | 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 |
cae50b168c1643c324a44991b116ba28feaccea9 | 1,772 | py | Python | projectq/setups/ibm16_test.py | gavarela/ProjectQ | f2cec3cc1ea3775edd77c898ed8802af9f802533 | [
"Apache-2.0"
] | 2 | 2019-06-18T11:58:23.000Z | 2020-04-26T20:39:32.000Z | projectq/setups/ibm16_test.py | gavarela/ProjectQ | f2cec3cc1ea3775edd77c898ed8802af9f802533 | [
"Apache-2.0"
] | 8 | 2019-08-13T11:22:36.000Z | 2019-11-19T15:47:05.000Z | projectq/setups/ibm16_test.py | gavarela/ProjectQ | f2cec3cc1ea3775edd77c898ed8802af9f802533 | [
"Apache-2.0"
] | 1 | 2020-08-16T22:40:08.000Z | 2020-08-16T22:40:08.000Z | # Copyright 2017 ProjectQ-Framework (www.projectq.ch)
#
# 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 app... | 36.916667 | 76 | 0.719526 | 246 | 1,772 | 5.065041 | 0.455285 | 0.048154 | 0.045746 | 0.025682 | 0.051364 | 0.051364 | 0 | 0 | 0 | 0 | 0 | 0.019041 | 0.199774 | 1,772 | 47 | 77 | 37.702128 | 0.859662 | 0.353273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cae5ebe8c6d1f42aa7dd3dd33da4b132a54dd359 | 8,345 | py | Python | module/tokenizer.py | irebai/wav2vec2 | 461dc98292ad0dc7aa6f76a1d8d923f84a758d4f | [
"Apache-2.0"
] | 3 | 2021-06-02T22:30:57.000Z | 2022-03-02T15:31:04.000Z | module/tokenizer.py | irebai/wav2vec2 | 461dc98292ad0dc7aa6f76a1d8d923f84a758d4f | [
"Apache-2.0"
] | 1 | 2022-03-16T14:21:11.000Z | 2022-03-16T14:21:11.000Z | module/tokenizer.py | irebai/wav2vec2 | 461dc98292ad0dc7aa6f76a1d8d923f84a758d4f | [
"Apache-2.0"
] | null | null | null | import sentencepiece as spm
import logging
import json
import sys
import os
import re
import copy
from typing import Any, Dict, List, Optional, Union
from transformers import Wav2Vec2CTCTokenizer
from itertools import groupby
logger = logging.getLogger(__name__)
logging.basicConfig(
format="%(asctime)s - %(levelna... | 31.254682 | 103 | 0.545956 | 947 | 8,345 | 4.542767 | 0.214361 | 0.025105 | 0.031381 | 0.016039 | 0.131102 | 0.064156 | 0.033938 | 0.02185 | 0.02185 | 0 | 0 | 0.003876 | 0.350749 | 8,345 | 266 | 104 | 31.37218 | 0.78959 | 0.069982 | 0 | 0.138756 | 0 | 0 | 0.09072 | 0.016506 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043062 | false | 0 | 0.047847 | 0.004785 | 0.133971 | 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 |
caee7405f72c31710c4a76b26d18b5e0202497d9 | 2,794 | py | Python | tests/unit/app/test_session.py | cswarth/whylogs | 6805b252f1d07efde84836d3924949f7ec2d97b1 | [
"Apache-2.0"
] | 603 | 2020-07-31T23:26:10.000Z | 2022-03-31T23:05:36.000Z | tests/unit/app/test_session.py | cswarth/whylogs | 6805b252f1d07efde84836d3924949f7ec2d97b1 | [
"Apache-2.0"
] | 284 | 2021-03-02T21:28:03.000Z | 2022-03-31T22:36:08.000Z | tests/unit/app/test_session.py | cswarth/whylogs | 6805b252f1d07efde84836d3924949f7ec2d97b1 | [
"Apache-2.0"
] | 39 | 2020-08-14T21:22:08.000Z | 2022-03-29T20:24:54.000Z | import pytest
from whylogs.app.config import SessionConfig
from whylogs.app.session import (
Session,
get_or_create_session,
get_session,
reset_default_session,
session_from_config,
)
def test_get_global_session():
session = get_or_create_session()
global_session = get_session()
ass... | 27.126214 | 98 | 0.721546 | 353 | 2,794 | 5.467422 | 0.195467 | 0.046632 | 0.039896 | 0.065285 | 0.351295 | 0.237306 | 0.11399 | 0.11399 | 0.073575 | 0.073575 | 0 | 0.002179 | 0.178597 | 2,794 | 102 | 99 | 27.392157 | 0.83878 | 0 | 0 | 0.185714 | 0 | 0 | 0.107015 | 0 | 0 | 0 | 0 | 0 | 0.271429 | 1 | 0.128571 | false | 0.014286 | 0.057143 | 0 | 0.185714 | 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 |
caef0d0629c15343e9df7473db70cc7cfee8bd44 | 863 | py | Python | paper/scripts/parse_hg19_Genome_FASTA.py | CEGRcode/GenoPipe | 76c2bd553582a51aa1f83a3b5e916663dd8f1e18 | [
"MIT"
] | null | null | null | paper/scripts/parse_hg19_Genome_FASTA.py | CEGRcode/GenoPipe | 76c2bd553582a51aa1f83a3b5e916663dd8f1e18 | [
"MIT"
] | null | null | null | paper/scripts/parse_hg19_Genome_FASTA.py | CEGRcode/GenoPipe | 76c2bd553582a51aa1f83a3b5e916663dd8f1e18 | [
"MIT"
] | null | null | null | import sys
import argparse
valid_chr = ["chr1", "chr2",
"chr3", "chr4",
"chr5", "chr6",
"chr7", "chr8",
"chr9", "chr10",
"chr11", "chr12",
"chr13", "chr14",
"chr15", "chr16",
"chr17", "chr18",
"chr19", "chr20",
"chr21", "chr22",
"chrM",
"chrX", "chrY"]
def get_params():
parser = argparse.ArgumentParser(d... | 23.324324 | 138 | 0.64774 | 117 | 863 | 4.641026 | 0.709402 | 0.029466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053279 | 0.151796 | 863 | 36 | 139 | 23.972222 | 0.688525 | 0 | 0 | 0.060606 | 0 | 0 | 0.301275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.060606 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
caef9773708a6b2a6663f3f50808e394425a0baf | 1,742 | py | Python | demos/python_demos/image_retrieval_demo/image_retrieval_demo/roi_detector_on_video.py | evgeny-izutov/open_model_zoo | 2cd6145ef342fc9b7ccf32676af73f4a1cb8d9ba | [
"Apache-2.0"
] | 5 | 2020-03-09T07:39:04.000Z | 2021-08-16T07:17:28.000Z | demos/python_demos/image_retrieval_demo/image_retrieval_demo/roi_detector_on_video.py | evgeny-izutov/open_model_zoo | 2cd6145ef342fc9b7ccf32676af73f4a1cb8d9ba | [
"Apache-2.0"
] | 8 | 2020-09-26T00:40:13.000Z | 2022-03-12T00:14:30.000Z | demos/python_demos/image_retrieval_demo/image_retrieval_demo/roi_detector_on_video.py | evgeny-izutov/open_model_zoo | 2cd6145ef342fc9b7ccf32676af73f4a1cb8d9ba | [
"Apache-2.0"
] | 4 | 2020-04-21T17:31:00.000Z | 2021-10-18T07:04:49.000Z | """
Copyright (c) 2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | 30.034483 | 99 | 0.668197 | 254 | 1,742 | 4.385827 | 0.484252 | 0.05386 | 0.023339 | 0.028725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01608 | 0.250287 | 1,742 | 57 | 100 | 30.561404 | 0.836907 | 0.392078 | 0 | 0 | 0 | 0 | 0.017493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.037037 | 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 |
caf41dbd85255511abe44215a30940d32474994c | 519 | py | Python | produtos.py | rodrigomoreira777/POO2021.2 | 7c5d45148882337e4d72258f50f14eda8d42d1df | [
"MIT"
] | null | null | null | produtos.py | rodrigomoreira777/POO2021.2 | 7c5d45148882337e4d72258f50f14eda8d42d1df | [
"MIT"
] | null | null | null | produtos.py | rodrigomoreira777/POO2021.2 | 7c5d45148882337e4d72258f50f14eda8d42d1df | [
"MIT"
] | null | null | null | import ferramentas_usuarios as fe
class Produto:
codigo = fe.gera_codigo()
def __init__(self, data_ger, prazo_ent, inicio_pro, final_proc, inicio_cont, final_cont):
"""Cria um banco de dados baseado em um arquivo TXT"""
self.data_geracao = data_ger
self.prazo_entrega = prazo_ent
... | 32.4375 | 93 | 0.695568 | 70 | 519 | 4.814286 | 0.485714 | 0.077151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236994 | 519 | 15 | 94 | 34.6 | 0.85101 | 0.092486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
caf71c9e764e7f9cc0a44834ec06b0816dd53183 | 1,108 | py | Python | data_processing.py | lanlehoang67/Galaxies-Classification | 2ee35a418e1e93529b3c0522a6f0f07be6818a51 | [
"MIT"
] | null | null | null | data_processing.py | lanlehoang67/Galaxies-Classification | 2ee35a418e1e93529b3c0522a6f0f07be6818a51 | [
"MIT"
] | null | null | null | data_processing.py | lanlehoang67/Galaxies-Classification | 2ee35a418e1e93529b3c0522a6f0f07be6818a51 | [
"MIT"
] | null | null | null | import warnings
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from PIL import Image
solutions = pd.read_csv('D:\\code\\galaxy-zoo-the-galaxy-challenge\\training_solutions_rev1.csv', sep = ',')
solutions = solutions.loc[solutions["Class1.3"] < 0.5]
solutions = solutions.loc[:, ["GalaxyID", "Clas... | 52.761905 | 133 | 0.695848 | 156 | 1,108 | 4.884615 | 0.384615 | 0.07874 | 0.057743 | 0.073491 | 0.283465 | 0.283465 | 0.283465 | 0.191601 | 0 | 0 | 0 | 0.038306 | 0.104693 | 1,108 | 21 | 134 | 52.761905 | 0.729839 | 0 | 0 | 0 | 0 | 0 | 0.355275 | 0.246168 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.25 | 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 |
caf8c9497a6a18b4424ce269c5bc4d42454d82d8 | 4,155 | py | Python | methods/arope_main.py | aida-ugent/graph-vis-eval | 8e15737542488c3abe1cbdf7da4dbd87011a0d8c | [
"MIT"
] | null | null | null | methods/arope_main.py | aida-ugent/graph-vis-eval | 8e15737542488c3abe1cbdf7da4dbd87011a0d8c | [
"MIT"
] | null | null | null | methods/arope_main.py | aida-ugent/graph-vis-eval | 8e15737542488c3abe1cbdf7da4dbd87011a0d8c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file was originally developed for EvalNE by Alexandru Cristian Mara
import argparse
import numpy as np
import networkx as nx
import ast
import time
from utils import AROPE
# Although the method says it requires python 3.5, it should be run with python 2.7 for optim... | 36.447368 | 119 | 0.612996 | 556 | 4,155 | 4.47482 | 0.318345 | 0.036174 | 0.068328 | 0.019293 | 0.229502 | 0.198955 | 0.155949 | 0.123794 | 0.069936 | 0.041801 | 0 | 0.01224 | 0.272443 | 4,155 | 113 | 120 | 36.769912 | 0.810784 | 0.172082 | 0 | 0.088235 | 0 | 0.014706 | 0.192792 | 0.006153 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.088235 | 0 | 0.132353 | 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 |
cafa51ff6545b99480852d33b0550b9abe3eb455 | 15,670 | py | Python | mygrid/power_flow/backward_forward_sweep_3p.py | grei-ufc/MyGrid | c42fe9d4e0838f253dd5b0716cbf0c892136d931 | [
"MIT"
] | 3 | 2018-03-02T11:18:51.000Z | 2021-07-30T23:22:18.000Z | mygrid/power_flow/backward_forward_sweep_3p.py | grei-ufc/MyGrid | c42fe9d4e0838f253dd5b0716cbf0c892136d931 | [
"MIT"
] | 8 | 2017-11-06T12:15:15.000Z | 2019-04-29T13:41:27.000Z | mygrid/power_flow/backward_forward_sweep_3p.py | grei-ufc/MyGrid | c42fe9d4e0838f253dd5b0716cbf0c892136d931 | [
"MIT"
] | 4 | 2019-03-20T11:26:04.000Z | 2021-06-03T19:28:05.000Z | # -*- coding: utf-8 -*-
import copy
from mygrid.util import Phasor, R, P
from mygrid.util import r2p, p2r
from mygrid.grid import Section, TransformerModel, Auto_TransformerModel
import numpy as np
# from pycallgraph import PyCallGraph
# from pycallgraph.output import GraphvizOutput
from numba import jit
from functo... | 32.04499 | 101 | 0.572942 | 1,984 | 15,670 | 4.28881 | 0.155242 | 0.069573 | 0.026795 | 0.03796 | 0.428135 | 0.353861 | 0.301798 | 0.247503 | 0.231049 | 0.178869 | 0 | 0.016035 | 0.28762 | 15,670 | 488 | 102 | 32.110656 | 0.746215 | 0.200574 | 0 | 0.26616 | 0 | 0 | 0.008368 | 0 | 0 | 0 | 0 | 0.002049 | 0 | 1 | 0.076046 | false | 0 | 0.030418 | 0.003802 | 0.190114 | 0.011407 | 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 |
cafc4de57835e7699aa3fc23c1d712de48724ce8 | 3,785 | py | Python | test4/test_brownian_motion.py | WINGS-ABC-programming-tutorial/mlflow-demo | 2af7ad439c5feebc5af3ba67086c0077fe142bbe | [
"MIT"
] | null | null | null | test4/test_brownian_motion.py | WINGS-ABC-programming-tutorial/mlflow-demo | 2af7ad439c5feebc5af3ba67086c0077fe142bbe | [
"MIT"
] | null | null | null | test4/test_brownian_motion.py | WINGS-ABC-programming-tutorial/mlflow-demo | 2af7ad439c5feebc5af3ba67086c0077fe142bbe | [
"MIT"
] | null | null | null | import numpy as np
import pytest
from lib4.brownian_motion import BrownianMotion, ParamBrownianMotion
CORRECT_DATASET = [
# (seed, initial_state, sigma, state_trajectory)
(123, 0.0, 10.0, np.array([
0.,
-9.891213503,
-13.56908001,
-0.68982741,
])),
(456, -2.0, 1.0, np.ar... | 30.039683 | 93 | 0.564333 | 390 | 3,785 | 5.307692 | 0.187179 | 0.104348 | 0.085024 | 0.098551 | 0.668116 | 0.641063 | 0.478744 | 0.473913 | 0.449275 | 0.308213 | 0 | 0.071118 | 0.331308 | 3,785 | 125 | 94 | 30.28 | 0.74674 | 0.031968 | 0 | 0.557692 | 0 | 0 | 0.030688 | 0 | 0 | 0 | 0 | 0 | 0.048077 | 1 | 0.067308 | false | 0 | 0.028846 | 0 | 0.105769 | 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 |
cafc7e9bfd9667324e0c0cf4454da54de8d2d177 | 4,280 | py | Python | src/exec/exec.py | rdoddanavar/hpr-sim | d2bc892865a093939f0a7e7c0713af849e87099a | [
"MIT"
] | 3 | 2021-01-30T21:22:06.000Z | 2022-01-12T06:49:01.000Z | src/exec/exec.py | rdoddanavar/hpr-sim | d2bc892865a093939f0a7e7c0713af849e87099a | [
"MIT"
] | 68 | 2019-04-22T20:06:11.000Z | 2022-03-26T19:03:17.000Z | src/exec/exec.py | rdoddanavar/hpr-sim | d2bc892865a093939f0a7e7c0713af849e87099a | [
"MIT"
] | 2 | 2021-01-30T21:22:08.000Z | 2021-04-27T06:15:33.000Z | # System modules
import sys
import os
import pdb
import pathlib
import copy
import multiprocessing as mp
import numpy as np
import yaml
# Path modifications
paths = ["../../build/src", "../preproc", "../util"]
for item in paths:
addPath = pathlib.Path(__file__).parent / item
sys.path.append(str(addPath.resolv... | 24.457143 | 80 | 0.577336 | 426 | 4,280 | 5.692488 | 0.321596 | 0.030928 | 0.011134 | 0.01732 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005539 | 0.198598 | 4,280 | 175 | 81 | 24.457143 | 0.701458 | 0.214252 | 0 | 0 | 0 | 0 | 0.093121 | 0.008711 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.150538 | 0 | 0.182796 | 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 |
1b02aed7e5de0af16b5239e868db60820eb7d130 | 448 | py | Python | C1-G/generator.py | Matrix53/algo | 7a176dac9ed9c6ad65d1514afb6388f7ee6b912a | [
"MIT"
] | 1 | 2021-12-14T08:54:11.000Z | 2021-12-14T08:54:11.000Z | C1-G/generator.py | Matrix53/algo | 7a176dac9ed9c6ad65d1514afb6388f7ee6b912a | [
"MIT"
] | null | null | null | C1-G/generator.py | Matrix53/algo | 7a176dac9ed9c6ad65d1514afb6388f7ee6b912a | [
"MIT"
] | 1 | 2021-12-13T09:31:40.000Z | 2021-12-13T09:31:40.000Z | from cyaron import *
max_node = 1000000
for i in range(5):
io = IO(str(i + 1) + '.in', str(i + 1) + '.out')
tree = Graph.tree(max_node)
leaf = []
for i in tree.edges:
if len(i) == 1:
leaf.append(randint(0, 10000))
io.input_writeln(max_node)
io.input_writeln(tree.to_str(outp... | 28 | 76 | 0.613839 | 72 | 448 | 3.694444 | 0.569444 | 0.078947 | 0.045113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05698 | 0.216518 | 448 | 15 | 77 | 29.866667 | 0.700855 | 0 | 0 | 0 | 0 | 0 | 0.138393 | 0.122768 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 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 |
1b02b03b1b37281b6a5b8bf7031ec157a8175644 | 19,091 | py | Python | src/model/soccer.py | celsomilne/soccer | b3b164b6610ebd88b13601970d2d4e65423d0a57 | [
"MIT"
] | null | null | null | src/model/soccer.py | celsomilne/soccer | b3b164b6610ebd88b13601970d2d4e65423d0a57 | [
"MIT"
] | 2 | 2021-06-08T20:34:37.000Z | 2022-02-10T01:12:59.000Z | src/model/soccer.py | celsomilne/soccer | b3b164b6610ebd88b13601970d2d4e65423d0a57 | [
"MIT"
] | null | null | null | import numpy as np
import cv2
import pandas as pd
from ._base import ModelBase
def merge_similar_lines(l, lines):
# Put unique lines in array if theres only 1, for looping
if len(lines.shape) == 1:
lines = np.array([lines])
# Translate line to align with each unique line
d = np.column_stack... | 36.926499 | 104 | 0.510031 | 2,574 | 19,091 | 3.695027 | 0.169775 | 0.040374 | 0.003785 | 0.008516 | 0.180528 | 0.163285 | 0.117338 | 0.069709 | 0.058353 | 0.045001 | 0 | 0.04352 | 0.351265 | 19,091 | 516 | 105 | 36.998062 | 0.724425 | 0.206537 | 0 | 0.087464 | 0 | 0 | 0.033256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023324 | false | 0.002915 | 0.011662 | 0 | 0.087464 | 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 |
1b03eaa75d1aee551f363fcba0197ce33eaa2183 | 766 | py | Python | osprey/cli/parser_worker.py | rmcgibbo/osprey | 0e0e11cafa3976854c0009be3bc562b8344218c6 | [
"Apache-2.0"
] | 5 | 2015-01-13T20:17:45.000Z | 2016-07-12T15:14:07.000Z | osprey/cli/parser_worker.py | rmcgibbo/osprey | 0e0e11cafa3976854c0009be3bc562b8344218c6 | [
"Apache-2.0"
] | null | null | null | osprey/cli/parser_worker.py | rmcgibbo/osprey | 0e0e11cafa3976854c0009be3bc562b8344218c6 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function, absolute_import, division
from argparse import ArgumentDefaultsHelpFormatter
def func(args, parser):
# delay import of the rest of the module to improve `osprey -h` performance
from ..execute_worker import execute
execute(args, parser)
def configure_parser(sub_pars... | 40.315789 | 79 | 0.703655 | 95 | 766 | 5.515789 | 0.578947 | 0.038168 | 0.045802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001634 | 0.201044 | 766 | 18 | 80 | 42.555556 | 0.854575 | 0.0953 | 0 | 0 | 0 | 0 | 0.206946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.384615 | 0.076923 | 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 |
1b08b94f653176a7bb3c4eeecbcb0204092d0a1b | 2,711 | py | Python | configboy/build_config.py | aaronhua123/configboy | ac0a0d65cd6b8a9b7b0cbb9679ed7b5e551d547c | [
"MIT"
] | 1 | 2019-12-06T06:44:39.000Z | 2019-12-06T06:44:39.000Z | configboy/build_config.py | aaronhua123/configboy | ac0a0d65cd6b8a9b7b0cbb9679ed7b5e551d547c | [
"MIT"
] | null | null | null | configboy/build_config.py | aaronhua123/configboy | ac0a0d65cd6b8a9b7b0cbb9679ed7b5e551d547c | [
"MIT"
] | null | null | null | import configparser
from jinja2 import Template
conf = configparser.ConfigParser()
# 用config对象读取配置文件
conf.read("base.config.ini")
sections = conf.sections()
dit = {}
def analyze_ini():
'''
分析ini配置文件读取的数据,放到dit里面
:return:
'''
for classname in sections:
print(classname, conf.items(classname... | 25.575472 | 69 | 0.520472 | 270 | 2,711 | 5.111111 | 0.333333 | 0.039855 | 0.028261 | 0.024638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002735 | 0.32571 | 2,711 | 105 | 70 | 25.819048 | 0.752188 | 0.073036 | 0 | 0.043478 | 0 | 0 | 0.172172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0 | 0.028986 | 0 | 0.101449 | 0.028986 | 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 |
1b0944c79f8a702fe2867a9d3d9ea2355da44f81 | 5,633 | py | Python | utils/codes_distance.py | wemozj/Image-Compression-based-GMM-and-Attention-Module | 93f804dbcea8ffc1621456f3d104d0342c75373b | [
"Apache-2.0"
] | null | null | null | utils/codes_distance.py | wemozj/Image-Compression-based-GMM-and-Attention-Module | 93f804dbcea8ffc1621456f3d104d0342c75373b | [
"Apache-2.0"
] | null | null | null | utils/codes_distance.py | wemozj/Image-Compression-based-GMM-and-Attention-Module | 93f804dbcea8ffc1621456f3d104d0342c75373b | [
"Apache-2.0"
] | null | null | null | """
Calculates distance of some (bpp, metric) point (for some metric) to some codec on some dataset.
"""
import os
import numpy as np
import scipy.interpolate
from utils import other_codecs
import constants
from utils import logdir_helpers
from collections import defaultdict
from fjcommon import functools_ext as ft
f... | 37.304636 | 118 | 0.650985 | 745 | 5,633 | 4.645638 | 0.271141 | 0.028604 | 0.036984 | 0.021959 | 0.141578 | 0.072811 | 0.030049 | 0.030049 | 0.030049 | 0 | 0 | 0.023447 | 0.242855 | 5,633 | 151 | 119 | 37.304636 | 0.788042 | 0.091603 | 0 | 0.097345 | 0 | 0 | 0.113293 | 0.03495 | 0 | 0 | 0 | 0.006623 | 0.035398 | 1 | 0.053097 | false | 0.017699 | 0.079646 | 0 | 0.20354 | 0.026549 | 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 |
1b0a363108dd0c38113cdb177788d3d39fa06984 | 854 | py | Python | statistics/phoneNumber.py | SLIPO-EU/poi-data-exploration | 4d11a14423a5b68c56da4131e67ff36e11dabe16 | [
"Apache-2.0"
] | 1 | 2019-02-25T09:36:36.000Z | 2019-02-25T09:36:36.000Z | statistics/phoneNumber.py | SLIPO-EU/poi-data-exploration | 4d11a14423a5b68c56da4131e67ff36e11dabe16 | [
"Apache-2.0"
] | null | null | null | statistics/phoneNumber.py | SLIPO-EU/poi-data-exploration | 4d11a14423a5b68c56da4131e67ff36e11dabe16 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import numpy as np
from collections import OrderedDict
from .statistics import Statistics
class PhoneNumber(Statistics):
categories = {
('Only numbers', '^[0-9]+$'),
('Numbers and parentheses', '^(?:[0-9]*[\(][0-9]+[\)][0-9]*)+$'),
('Numbers and + symbol', '^(?:[0-9]*[\+][0-9]+)+$'),
('Nu... | 35.583333 | 67 | 0.569087 | 102 | 854 | 4.666667 | 0.313725 | 0.063025 | 0.132353 | 0.05042 | 0.32563 | 0.32563 | 0.32563 | 0.321429 | 0.321429 | 0.321429 | 0 | 0.040323 | 0.128806 | 854 | 23 | 68 | 37.130435 | 0.599462 | 0 | 0 | 0 | 0 | 0 | 0.471897 | 0.128806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.2 | 0 | 0.35 | 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 |
1b0a78407a818985d4fb61e0d744f1663cbde1b1 | 2,256 | py | Python | tests/e2e/test_service.py | bleckfisk/audio-transcoder | e66e8c0038c594c12b84dd12fdcbc30d28b2263b | [
"MIT"
] | null | null | null | tests/e2e/test_service.py | bleckfisk/audio-transcoder | e66e8c0038c594c12b84dd12fdcbc30d28b2263b | [
"MIT"
] | 1 | 2022-01-12T21:06:30.000Z | 2022-01-12T21:06:30.000Z | tests/e2e/test_service.py | bleckfisk/audio-transcoder | e66e8c0038c594c12b84dd12fdcbc30d28b2263b | [
"MIT"
] | 1 | 2020-02-20T07:40:57.000Z | 2020-02-20T07:40:57.000Z | from pydub import AudioSegment
import os
from pydub.utils import mediainfo
from unittest import mock
from service.core import process_message
from service.aws_boto3 import (
listen_sqs_queue,
create_s3_resource,
create_sqs_resource,
)
from service.settings import (
REQUEST_QUEUE_NAME
)
"""
These two f... | 27.512195 | 78 | 0.698582 | 306 | 2,256 | 4.928105 | 0.405229 | 0.05305 | 0.037135 | 0.039788 | 0.18435 | 0.18435 | 0.18435 | 0.144562 | 0.144562 | 0.086207 | 0 | 0.005143 | 0.224291 | 2,256 | 81 | 79 | 27.851852 | 0.856571 | 0.138298 | 0 | 0.291667 | 0 | 0 | 0.078086 | 0.030227 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.041667 | false | 0 | 0.145833 | 0 | 0.1875 | 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 |
1b0ed233a468637761bc287409daba800a6b9ca3 | 17,877 | py | Python | topnum/utils.py | machine-intelligence-laboratory/OptimalNumberOfTopics | 87267223987a4cb54b3f0ec431e87ee684044c7b | [
"MIT"
] | 5 | 2020-05-06T14:13:54.000Z | 2020-09-06T15:54:01.000Z | topnum/utils.py | machine-intelligence-laboratory/OptimalNumberOfTopics | 87267223987a4cb54b3f0ec431e87ee684044c7b | [
"MIT"
] | 54 | 2020-02-10T07:08:31.000Z | 2020-09-08T21:45:39.000Z | topnum/utils.py | machine-intelligence-laboratory/OptimalNumberOfTopics | 87267223987a4cb54b3f0ec431e87ee684044c7b | [
"MIT"
] | 2 | 2021-01-16T08:40:25.000Z | 2021-06-04T05:35:36.000Z | import glob
import numpy as np
import os
import pandas as pd
import strictyaml
import tempfile
import shutil
import warnings
from collections import defaultdict
from inspect import signature
from strictyaml import Map, Str, Optional, Int, CommaSeparated
import topicnet
from topicnet.cooking_machine.dataset import Da... | 31.753108 | 100 | 0.654976 | 2,099 | 17,877 | 5.321582 | 0.216293 | 0.037243 | 0.022381 | 0.020949 | 0.235452 | 0.200806 | 0.184691 | 0.154252 | 0.140018 | 0.112086 | 0 | 0.012005 | 0.240477 | 17,877 | 562 | 101 | 31.809609 | 0.81065 | 0.09213 | 0 | 0.104478 | 0 | 0 | 0.120507 | 0.042097 | 0 | 0 | 0 | 0.001779 | 0.004975 | 1 | 0.029851 | false | 0 | 0.042289 | 0.002488 | 0.119403 | 0.007463 | 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 |
1b11280aec2954ad2cb925dd13d21f509185c325 | 4,757 | py | Python | approaches/networkx-graph/pac_naive_regexp_checker.py | athityakumar/btp | a1bdad0ed6162faa482673347707c09228d6cd9c | [
"MIT"
] | 1 | 2022-01-26T15:51:30.000Z | 2022-01-26T15:51:30.000Z | approaches/networkx-graph/pac_naive_regexp_checker.py | athityakumar/btp | a1bdad0ed6162faa482673347707c09228d6cd9c | [
"MIT"
] | 7 | 2017-08-25T12:36:20.000Z | 2018-04-23T04:08:38.000Z | approaches/networkx-graph/pac_naive_regexp_checker.py | athityakumar/btp | a1bdad0ed6162faa482673347707c09228d6cd9c | [
"MIT"
] | null | null | null | from pac_library import *
from regexp_naive import *
def fetch_training_words(language):
return(read_wordpairs('../daru-dataframe/spec/fixtures/'+language+'-train-high'))
def fetch_testing_words(language):
return(read_wordpairs('../daru-dataframe/spec/fixtures/'+language+'-dev'))
def fetch_common_words(language)... | 36.037879 | 145 | 0.741644 | 622 | 4,757 | 5.392283 | 0.186495 | 0.050686 | 0.042934 | 0.029815 | 0.451699 | 0.420394 | 0.38223 | 0.380441 | 0.307096 | 0.251044 | 0 | 0.006787 | 0.163759 | 4,757 | 131 | 146 | 36.312977 | 0.83635 | 0.04898 | 0 | 0.216981 | 0 | 0 | 0.058212 | 0.014166 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0 | 0.018868 | 0.018868 | 0.09434 | 0.04717 | 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 |
1b11d7196c949a260576fffad7c4fd1f42930580 | 454 | py | Python | product/urls.py | Gandabh/E-commerce-Site | 8bc4ca85c9cd6f3ed1435e5767aef4ab315df559 | [
"MIT"
] | 1 | 2022-01-01T21:46:48.000Z | 2022-01-01T21:46:48.000Z | product/urls.py | Gandabh/E-commerce-Site | 8bc4ca85c9cd6f3ed1435e5767aef4ab315df559 | [
"MIT"
] | null | null | null | product/urls.py | Gandabh/E-commerce-Site | 8bc4ca85c9cd6f3ed1435e5767aef4ab315df559 | [
"MIT"
] | null | null | null | from django.urls import path,include
from product.views import (
ProductDetailView,
ProductView,
shopping_cart,
wishlist
)
app_name='product'
urlpatterns = [
path('product-detail/<int:pk>/', ProductDetailView.as_view(),name='product_detail'),
path('product-list/', ProductView.as_view(),name=... | 21.619048 | 88 | 0.702643 | 52 | 454 | 5.980769 | 0.423077 | 0.154341 | 0.064309 | 0.109325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140969 | 454 | 20 | 89 | 22.7 | 0.797436 | 0 | 0 | 0 | 0 | 0 | 0.251101 | 0.052863 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 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 |
1b11ee2a8c6b97121d035177bf542ec2e234d162 | 1,346 | py | Python | GestureAgentsDemo/Utils.py | chaosct/GestureAgents | 9ec0adb1e59bf995d5808431edd4cb8bf8907728 | [
"MIT"
] | 1 | 2015-01-22T10:42:09.000Z | 2015-01-22T10:42:09.000Z | GestureAgentsDemo/Utils.py | chaosct/GestureAgents | 9ec0adb1e59bf995d5808431edd4cb8bf8907728 | [
"MIT"
] | null | null | null | GestureAgentsDemo/Utils.py | chaosct/GestureAgents | 9ec0adb1e59bf995d5808431edd4cb8bf8907728 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from GestureAgentsDemo.Render import Update, drawBatch
from pyglet.text import Label
from pyglet.clock import schedule_once
class DynamicValue(object):
"""docstring for DynamicValue"""
def __init__(self, value=0):
self.value = value
self.target = value
self.tim... | 28.638298 | 67 | 0.559435 | 164 | 1,346 | 4.463415 | 0.329268 | 0.086066 | 0.030055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023307 | 0.330609 | 1,346 | 46 | 68 | 29.26087 | 0.789123 | 0.036404 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0 | 0.083333 | 0 | 0.305556 | 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 |
1b14ba6dfc104cd29d8728d7b3da4a46ddc37365 | 1,590 | py | Python | tcfcli/cmds/native/common/runtime/python3.6/pstool/winps.py | alfredhuang211/scfcli | f5e086ff4fcee8d645682e85cd1486b28a224d08 | [
"Apache-2.0"
] | 103 | 2019-06-11T06:09:56.000Z | 2021-12-18T22:48:59.000Z | tcfcli/cmds/native/common/runtime/python3.6/pstool/winps.py | TencentCloud/Serverless-cli | 57f98b24cfd10712770a4806212cfb69d981a11a | [
"Apache-2.0"
] | 8 | 2019-07-12T12:08:40.000Z | 2020-10-20T07:18:17.000Z | tcfcli/cmds/native/common/runtime/python3.6/pstool/winps.py | TencentCloud/Serverless-cli | 57f98b24cfd10712770a4806212cfb69d981a11a | [
"Apache-2.0"
] | 49 | 2019-06-11T06:26:05.000Z | 2020-02-19T08:13:36.000Z | __all__ = ['win_peak_memory']
import ctypes
from ctypes import wintypes
GetCurrentProcess = ctypes.windll.kernel32.GetCurrentProcess
GetCurrentProcess.argtypes = []
GetCurrentProcess.restype = wintypes.HANDLE
SIZE_T = ctypes.c_size_t
class PROCESS_MEMORY_COUNTERS_EX(ctypes.Structure):
_fields_ = [
('cb'... | 32.44898 | 81 | 0.692453 | 159 | 1,590 | 6.672956 | 0.402516 | 0.051838 | 0.079171 | 0.065033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006265 | 0.196855 | 1,590 | 49 | 82 | 32.44898 | 0.824589 | 0.057233 | 0 | 0 | 0 | 0 | 0.143049 | 0.047683 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.225 | 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 |
1b1629216fd1f26d4a22e42ef8c1b7d156606871 | 3,120 | py | Python | trojai/test/modelgen/test_modelgen_config.py | C0ldstudy/trojai | 10ac6c719f367a569a48b19e7ef18cf90df3a310 | [
"Apache-2.0"
] | 59 | 2019-07-11T02:33:38.000Z | 2022-02-02T01:51:29.000Z | trojai/test/modelgen/test_modelgen_config.py | C0ldstudy/trojai | 10ac6c719f367a569a48b19e7ef18cf90df3a310 | [
"Apache-2.0"
] | 4 | 2020-04-13T03:48:32.000Z | 2021-09-11T05:13:57.000Z | trojai/test/modelgen/test_modelgen_config.py | C0ldstudy/trojai | 10ac6c719f367a569a48b19e7ef18cf90df3a310 | [
"Apache-2.0"
] | 19 | 2019-09-17T21:09:06.000Z | 2022-03-31T17:55:18.000Z | import unittest
from unittest.mock import Mock
import os
import shutil
import tempfile
import torchvision.models as models
from trojai.modelgen.architecture_factory import ArchitectureFactory
from trojai.modelgen.data_manager import DataManager
from trojai.modelgen.config import ModelGeneratorConfig
class MyArchFa... | 35.454545 | 109 | 0.707692 | 372 | 3,120 | 5.717742 | 0.198925 | 0.059238 | 0.067701 | 0.067701 | 0.651622 | 0.557123 | 0.546309 | 0.546309 | 0.546309 | 0.546309 | 0 | 0.011236 | 0.201282 | 3,120 | 87 | 110 | 35.862069 | 0.842295 | 0.038462 | 0 | 0.360656 | 0 | 0 | 0.003341 | 0 | 0 | 0 | 0 | 0 | 0.295082 | 1 | 0.163934 | false | 0.032787 | 0.147541 | 0.016393 | 0.360656 | 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 |
1b18622eafedd5518564e3002df72bcc43626932 | 1,006 | py | Python | geolucidate/links/yahoo.py | kurtraschke/geolucidate | 827195a90d972fa5efce5a03bdbe53d8395d94ba | [
"MIT"
] | 3 | 2015-09-17T01:01:53.000Z | 2019-09-10T14:30:43.000Z | geolucidate/links/yahoo.py | kurtraschke/geolucidate | 827195a90d972fa5efce5a03bdbe53d8395d94ba | [
"MIT"
] | null | null | null | geolucidate/links/yahoo.py | kurtraschke/geolucidate | 827195a90d972fa5efce5a03bdbe53d8395d94ba | [
"MIT"
] | 5 | 2018-09-11T21:54:36.000Z | 2020-06-25T19:05:45.000Z | from geolucidate.links.tools import default_link
def yahoo_maps_link(type='hybrid', link=default_link):
'''
Returns a function for generating links to Yahoo Maps.
:param type: map type, one of 'map', 'satellite', or 'hybrid'
:param link: Link-generating function; defaults to :func:`~.default_link`
... | 37.259259 | 149 | 0.593439 | 135 | 1,006 | 4.340741 | 0.407407 | 0.075085 | 0.044369 | 0.044369 | 0.064846 | 0.064846 | 0 | 0 | 0 | 0 | 0 | 0.070968 | 0.229622 | 1,006 | 26 | 150 | 38.692308 | 0.685161 | 0.4334 | 0 | 0 | 0 | 0 | 0.127341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.416667 | 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 |
1b1be0edc4e55b6e8f3880be837ef0d3a77f96c8 | 4,056 | py | Python | config/settings/common.py | cni-iisc/campus-rakshak-simulator-app | ef30a1fb57b72d25534945526fdb77d158ad16c1 | [
"Apache-2.0"
] | 1 | 2021-07-29T10:33:26.000Z | 2021-07-29T10:33:26.000Z | config/settings/common.py | cni-iisc/campus-rakshak-simulator-app | ef30a1fb57b72d25534945526fdb77d158ad16c1 | [
"Apache-2.0"
] | null | null | null | config/settings/common.py | cni-iisc/campus-rakshak-simulator-app | ef30a1fb57b72d25534945526fdb77d158ad16c1 | [
"Apache-2.0"
] | null | null | null | """
Common Django settings for campussim project.
"""
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent.parent
# Application definition
INSTALLED_APPS = [
### Django apps for core functionalitites and packages for static fi... | 27.221477 | 99 | 0.664201 | 403 | 4,056 | 6.51861 | 0.511166 | 0.059383 | 0.031976 | 0.029692 | 0.044538 | 0.032737 | 0.032737 | 0 | 0 | 0 | 0 | 0.005311 | 0.210799 | 4,056 | 148 | 100 | 27.405405 | 0.81537 | 0.175542 | 0 | 0.046296 | 0 | 0 | 0.483998 | 0.307065 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018519 | 0 | 0.018519 | 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 |
1b1c2c85a3b57a89a03330a9170df389c8a29620 | 5,562 | py | Python | Mp3Processing.py | yNeshy/voice-change | 2535351bcd8a9f2d58fcbff81a2051c4f6ac6ab4 | [
"MIT"
] | null | null | null | Mp3Processing.py | yNeshy/voice-change | 2535351bcd8a9f2d58fcbff81a2051c4f6ac6ab4 | [
"MIT"
] | null | null | null | Mp3Processing.py | yNeshy/voice-change | 2535351bcd8a9f2d58fcbff81a2051c4f6ac6ab4 | [
"MIT"
] | null | null | null | # Aziz Nechi
# If you have any trouble with submitting to S3, please contact me. This part is on me.
# As for the conversion, the fetching from url and the sound editing, I have made sure
# of its veracity.
# Please make sure the url you provide is correct, and doesn't block downloads from
# unknown sources.
# Your ... | 29.903226 | 102 | 0.613448 | 783 | 5,562 | 4.218391 | 0.268199 | 0.065395 | 0.09446 | 0.029064 | 0.246443 | 0.222525 | 0.201635 | 0.153497 | 0.129882 | 0.109295 | 0 | 0.018896 | 0.286408 | 5,562 | 185 | 103 | 30.064865 | 0.813303 | 0.265013 | 0 | 0.267327 | 0 | 0 | 0.014876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128713 | false | 0 | 0.079208 | 0 | 0.29703 | 0.009901 | 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 |
1b1ea6c3e05799e453822258bb77692c266ee6a2 | 5,343 | py | Python | jsonwspclient/jsonwspresponse.py | ellethee/jsonwspclient | cafd6d5ee27d686329338bd861ae85a69eeaeb4b | [
"MIT"
] | 2 | 2018-03-22T10:29:46.000Z | 2019-09-26T16:58:20.000Z | jsonwspclient/jsonwspresponse.py | ellethee/jsonwspclient | cafd6d5ee27d686329338bd861ae85a69eeaeb4b | [
"MIT"
] | null | null | null | jsonwspclient/jsonwspresponse.py | ellethee/jsonwspclient | cafd6d5ee27d686329338bd861ae85a69eeaeb4b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
====================================================
Jsonwspresponse :mod:`jsonwspclient.jsonwspresponse`
====================================================
"""
import logging
from . import jsonwspexceptions as excs
from . import jsonwsputils as utils
from .jsonwspmultipart import MultiPa... | 33.186335 | 84 | 0.588059 | 587 | 5,343 | 5.153322 | 0.267462 | 0.05157 | 0.042314 | 0.017851 | 0.057521 | 0.035702 | 0 | 0 | 0 | 0 | 0 | 0.000524 | 0.285607 | 5,343 | 160 | 85 | 33.39375 | 0.791983 | 0.195957 | 0 | 0.094737 | 0 | 0 | 0.040707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.168421 | false | 0 | 0.042105 | 0.042105 | 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 |
1b26031be43a4955c5bab323a43414cfbaa1a9e0 | 8,986 | py | Python | onir/pipelines/catfog.py | tgeral68/OpenNIR | 225b26185bd67fdc00f24de3ef70d35768e22243 | [
"MIT"
] | 3 | 2021-01-07T15:44:38.000Z | 2021-08-23T03:44:47.000Z | onir/pipelines/catfog.py | tgeral68/OpenNIR | 225b26185bd67fdc00f24de3ef70d35768e22243 | [
"MIT"
] | null | null | null | onir/pipelines/catfog.py | tgeral68/OpenNIR | 225b26185bd67fdc00f24de3ef70d35768e22243 | [
"MIT"
] | 1 | 2021-11-16T09:10:47.000Z | 2021-11-16T09:10:47.000Z | import os
import json
from onir import util, pipelines
import onir
import pickle
@pipelines.register('catfog')
class CatfogPipeline(pipelines.BasePipeline):
name = None
@staticmethod
def default_config():
return {
'max_epoch': 1000,
'early_stop': 20,
'warmup': -... | 41.795349 | 130 | 0.565546 | 1,070 | 8,986 | 4.504673 | 0.158879 | 0.06722 | 0.042324 | 0.026556 | 0.351245 | 0.2361 | 0.146058 | 0.115768 | 0.0639 | 0.055602 | 0 | 0.003829 | 0.302471 | 8,986 | 214 | 131 | 41.990654 | 0.765156 | 0.060316 | 0 | 0.197605 | 0 | 0 | 0.175362 | 0.008537 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041916 | false | 0 | 0.02994 | 0.005988 | 0.101796 | 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 |
1b286add96d725a4355a582d1095f8902eb24f33 | 1,425 | py | Python | launch/no_roof_small_warehouse.launch.py | ros2-gbp/aws_robomaker_small_warehouse_world-release | 6c3f0c113772b0148e1b50dcdd45269869622d5d | [
"MIT-0"
] | 1 | 2022-02-24T21:33:26.000Z | 2022-02-24T21:33:26.000Z | launch/no_roof_small_warehouse.launch.py | ros2-gbp/aws_robomaker_small_warehouse_world-release | 6c3f0c113772b0148e1b50dcdd45269869622d5d | [
"MIT-0"
] | 1 | 2022-03-31T00:36:19.000Z | 2022-03-31T00:36:19.000Z | launch/no_roof_small_warehouse.launch.py | ros2-gbp/aws_robomaker_small_warehouse_world-release | 6c3f0c113772b0148e1b50dcdd45269869622d5d | [
"MIT-0"
] | 1 | 2022-03-11T05:24:38.000Z | 2022-03-11T05:24:38.000Z | # Copyright (c) 2018 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 38.513514 | 175 | 0.739649 | 174 | 1,425 | 5.867816 | 0.568966 | 0.058766 | 0.044074 | 0.070519 | 0.107738 | 0.107738 | 0.107738 | 0.107738 | 0.107738 | 0 | 0 | 0.006932 | 0.190175 | 1,425 | 36 | 176 | 39.583333 | 0.877816 | 0.391579 | 0 | 0 | 0 | 0 | 0.194607 | 0.181712 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.277778 | 0 | 0.388889 | 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 |
1b28b59d6ecded6cdbfbf6ca62928fab85bd51f4 | 2,028 | py | Python | analysis/att_weights.py | sagarika1101/twitter_abusive_behavior_detection | edf90364d10f44aa6ace4d54ef9ed1f9bf495c0c | [
"Apache-2.0"
] | 1 | 2021-09-24T08:51:38.000Z | 2021-09-24T08:51:38.000Z | analysis/att_weights.py | sagarika1101/twitter_abusive_behavior_detection | edf90364d10f44aa6ace4d54ef9ed1f9bf495c0c | [
"Apache-2.0"
] | null | null | null | analysis/att_weights.py | sagarika1101/twitter_abusive_behavior_detection | edf90364d10f44aa6ace4d54ef9ed1f9bf495c0c | [
"Apache-2.0"
] | null | null | null | from keras.models import model_from_json
from sklearn.metrics import classification_report
from load_data import read_file, preprocess_doc, \
pad_sequences, build_input_data_rnn, build_vocab
from model import AttentionWithContext, dot_product
# load json and create model
json_file = open('model.json', 'r')
loaded... | 28.971429 | 74 | 0.727811 | 321 | 2,028 | 4.367601 | 0.342679 | 0.078459 | 0.008559 | 0.024251 | 0.015692 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00576 | 0.143984 | 2,028 | 69 | 75 | 29.391304 | 0.801843 | 0.038462 | 0 | 0 | 0 | 0 | 0.107914 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.125 | 0 | 0.166667 | 0.166667 | 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 |
1b2c3495062849e7ab61a70eaff4509c4559a318 | 879 | py | Python | examples/examples.py | benjaminkrenn/perpetual | b8925636391baf5a96daa20adf8741f4fd965f30 | [
"MIT"
] | null | null | null | examples/examples.py | benjaminkrenn/perpetual | b8925636391baf5a96daa20adf8741f4fd965f30 | [
"MIT"
] | null | null | null | examples/examples.py | benjaminkrenn/perpetual | b8925636391baf5a96daa20adf8741f4fd965f30 | [
"MIT"
] | 1 | 2019-12-20T08:33:54.000Z | 2019-12-20T08:33:54.000Z | # A simple example
# Author: Martin Lackner
from __future__ import print_function
import sys
sys.path.insert(0, '..')
import profiles
import perpetual_rules as perpetual
apprsets1 = {1: [1], 2: [1], 3: [2], 4: [3]}
apprsets2 = {1: [1], 2: [2], 3: [2], 4: [3]}
apprsets3 = {1: [1], 2: [1], 3: [2], 4: [3]}
voters = [1... | 28.354839 | 72 | 0.709898 | 121 | 879 | 5.066116 | 0.338843 | 0.016313 | 0.014682 | 0.019576 | 0.261011 | 0.261011 | 0.261011 | 0.261011 | 0 | 0 | 0 | 0.057292 | 0.12628 | 879 | 30 | 73 | 29.3 | 0.740885 | 0.044369 | 0 | 0 | 0 | 0 | 0.139785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.35 | 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 |
1b2c403fc778412b306d10be87e5d0448be413c4 | 424 | py | Python | database.py | dwang/discord-logger | db476659265ee24fa97c5ba3d6cde65192214ab7 | [
"MIT"
] | null | null | null | database.py | dwang/discord-logger | db476659265ee24fa97c5ba3d6cde65192214ab7 | [
"MIT"
] | null | null | null | database.py | dwang/discord-logger | db476659265ee24fa97c5ba3d6cde65192214ab7 | [
"MIT"
] | null | null | null | import os
from pymongo import MongoClient
client = MongoClient(os.getenv("MONGODB_IP", "127.0.0.1"), 27017)
db = client.discord_logger
def add_message(guild, message_id, time, content, author, channel):
post = {
"message_id": str(message_id),
"time": str(time),
"content": str(content),
... | 23.555556 | 67 | 0.632075 | 55 | 424 | 4.745455 | 0.527273 | 0.103448 | 0.099617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033133 | 0.216981 | 424 | 17 | 68 | 24.941176 | 0.753012 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 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 |
1b2c5562aee4802c9392f1d199a158fa1f1ff402 | 1,337 | py | Python | azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sql_data_directory.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 1 | 2021-09-07T18:36:04.000Z | 2021-09-07T18:36:04.000Z | azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sql_data_directory.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 2 | 2019-10-02T23:37:38.000Z | 2020-10-02T01:17:31.000Z | azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sql_data_directory.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 1 | 2019-06-17T22:18:23.000Z | 2019-06-17T22:18:23.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 ... | 34.282051 | 76 | 0.586387 | 145 | 1,337 | 5.303448 | 0.558621 | 0.085826 | 0.028609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000922 | 0.188482 | 1,337 | 38 | 77 | 35.184211 | 0.707834 | 0.572177 | 0 | 0 | 0 | 0 | 0.171154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1b30e9bcb03004d191594b655b0f016407530407 | 5,278 | py | Python | functions_ordered.py | mpleung/equil_compute | 13c5d6488f894c1b2e7b539780dfa1c69e6e8133 | [
"MIT"
] | null | null | null | functions_ordered.py | mpleung/equil_compute | 13c5d6488f894c1b2e7b539780dfa1c69e6e8133 | [
"MIT"
] | null | null | null | functions_ordered.py | mpleung/equil_compute | 13c5d6488f894c1b2e7b539780dfa1c69e6e8133 | [
"MIT"
] | null | null | null | import numpy as np, pandas as pd, networkx as nx, itertools, sys, traceback
def assemble_data(data_folder):
"""
We don't include a dummy for missings for data.church because Card and Guiliano do not report its coefficient. We don't include a dummy for missings for data.parent_HS, data.parent_college because Ca... | 49.327103 | 359 | 0.650057 | 852 | 5,278 | 3.916667 | 0.284038 | 0.059934 | 0.02727 | 0.019479 | 0.213965 | 0.172011 | 0.106083 | 0.031166 | 0.031166 | 0.022176 | 0 | 0.042157 | 0.195529 | 5,278 | 106 | 360 | 49.792453 | 0.743759 | 0.268473 | 0 | 0 | 0 | 0.030769 | 0.170479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061538 | false | 0 | 0.015385 | 0 | 0.153846 | 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 |
1b32180c77f0ecbaa74ea5dff4762e2a920c7894 | 299 | py | Python | P1365.py | Muntaha-Islam0019/Leetcode-Solutions | 0bc56ce43a6d8ad10461b69078166a2a5b913e7f | [
"MIT"
] | null | null | null | P1365.py | Muntaha-Islam0019/Leetcode-Solutions | 0bc56ce43a6d8ad10461b69078166a2a5b913e7f | [
"MIT"
] | null | null | null | P1365.py | Muntaha-Islam0019/Leetcode-Solutions | 0bc56ce43a6d8ad10461b69078166a2a5b913e7f | [
"MIT"
] | null | null | null | class Solution:
def smallerNumbersThanCurrent(self, nums: List[int]) -> List[int]:
result = {}
for index, number in enumerate(sorted(nums)):
if number not in result:
result[number] = index
return [result[number] for number in nums]
| 27.181818 | 70 | 0.578595 | 33 | 299 | 5.242424 | 0.545455 | 0.080925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.324415 | 299 | 10 | 71 | 29.9 | 0.856436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1b3291fd4770bd69c2af0fd2c1b2340f6739c8dc | 1,184 | py | Python | ee/models/dashboard_privilege.py | msnitish/posthog | cb86113f568e72eedcb64b5fd00c313d21e72f90 | [
"MIT"
] | null | null | null | ee/models/dashboard_privilege.py | msnitish/posthog | cb86113f568e72eedcb64b5fd00c313d21e72f90 | [
"MIT"
] | null | null | null | ee/models/dashboard_privilege.py | msnitish/posthog | cb86113f568e72eedcb64b5fd00c313d21e72f90 | [
"MIT"
] | null | null | null | from django.db import models
from posthog.models.dashboard import Dashboard
from posthog.models.utils import UUIDModel, sane_repr
# We call models that grant a user access to some resource (which isn't a grouping of users) a "privilege"
class DashboardPrivilege(UUIDModel):
dashboard: models.ForeignKey = models.F... | 39.466667 | 113 | 0.735642 | 129 | 1,184 | 6.550388 | 0.434109 | 0.07574 | 0.040237 | 0.07574 | 0.27929 | 0.186982 | 0.111243 | 0 | 0 | 0 | 0 | 0 | 0.170608 | 1,184 | 29 | 114 | 40.827586 | 0.860489 | 0.087838 | 0 | 0 | 0 | 0 | 0.158627 | 0.085343 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.478261 | 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 |
1b33c63a9914002051440cf798e5f124574105d1 | 3,496 | py | Python | niphlem/report/html_report.py | CoAxLab/brainhack-physio-project | b87cd6c6db486639f271b786ca1cf4aa27a70fad | [
"BSD-3-Clause"
] | 1 | 2022-03-13T14:33:44.000Z | 2022-03-13T14:33:44.000Z | niphlem/report/html_report.py | CoAxLab/niphlem | a275cfe0b6286fcb8a60a2d999354453804dd5d2 | [
"BSD-3-Clause"
] | 11 | 2021-12-07T03:33:13.000Z | 2022-02-28T20:41:12.000Z | niphlem/report/html_report.py | CoAxLab/brainhack-physio-project | b87cd6c6db486639f271b786ca1cf4aa27a70fad | [
"BSD-3-Clause"
] | null | null | null | import weakref
from html import escape
import warnings
MAX_IMG_VIEWS_BEFORE_WARNING = 10
class HTMLDocument(object):
"""
Embeds a plot in a web page.
If you are running a Jupyter notebook, the plot will be displayed
inline if this object is the output of a cell.
Otherwise, use open_in_browser() t... | 32.672897 | 78 | 0.606407 | 467 | 3,496 | 4.344754 | 0.316916 | 0.029571 | 0.027107 | 0.041893 | 0.210941 | 0.114342 | 0.088714 | 0.088714 | 0.088714 | 0.088714 | 0 | 0.004965 | 0.308638 | 3,496 | 106 | 79 | 32.981132 | 0.834506 | 0.300915 | 0 | 0.178571 | 0 | 0 | 0.095559 | 0.011216 | 0 | 0 | 0 | 0 | 0 | 1 | 0.196429 | false | 0 | 0.053571 | 0.035714 | 0.464286 | 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 |
1b33d7ab4bd7f7cef81cb68e4a2eedff151354aa | 1,244 | py | Python | onegram/utils/validation.py | pauloromeira/onegram | 8294e237e8b8aa70c783347e42ea03d24098c48e | [
"MIT"
] | 150 | 2018-03-17T20:38:43.000Z | 2020-11-18T14:08:06.000Z | onegram/utils/validation.py | pauloromeira/onegram | 8294e237e8b8aa70c783347e42ea03d24098c48e | [
"MIT"
] | 14 | 2018-04-08T11:39:59.000Z | 2019-08-10T14:16:23.000Z | onegram/utils/validation.py | pauloromeira/onegram | 8294e237e8b8aa70c783347e42ea03d24098c48e | [
"MIT"
] | 11 | 2018-03-22T04:34:29.000Z | 2021-06-10T10:55:35.000Z | import json
from ..exceptions import AuthFailed, AuthUserError
from ..exceptions import RequestFailed, RateLimitedError
def validate_response(session, response, auth=False):
try:
try:
js_response = json.loads(response.text)
except:
response.raise_for_status()
if... | 26.468085 | 57 | 0.611736 | 130 | 1,244 | 5.723077 | 0.346154 | 0.053763 | 0.053763 | 0.05914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292605 | 1,244 | 46 | 58 | 27.043478 | 0.845455 | 0 | 0 | 0.263158 | 0 | 0 | 0.098875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.078947 | 0 | 0.184211 | 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 |
1b352ccb19fe75f43dea62f1c3041514829e96c3 | 5,233 | py | Python | sdk/python/tests/unit/test_proto_json.py | achals/feast | ce3ad0332edd6507e63fb80310c13d24952100d4 | [
"Apache-2.0"
] | 2,258 | 2020-05-17T02:41:07.000Z | 2022-03-31T22:30:57.000Z | sdk/python/tests/unit/test_proto_json.py | achals/feast | ce3ad0332edd6507e63fb80310c13d24952100d4 | [
"Apache-2.0"
] | 1,768 | 2020-05-16T05:37:28.000Z | 2022-03-31T23:30:05.000Z | sdk/python/tests/unit/test_proto_json.py | achals/feast | ce3ad0332edd6507e63fb80310c13d24952100d4 | [
"Apache-2.0"
] | 415 | 2020-05-16T18:21:27.000Z | 2022-03-31T09:59:10.000Z | import assertpy
import pytest
from google.protobuf.json_format import MessageToDict, Parse
from feast import proto_json
from feast.protos.feast.serving.ServingService_pb2 import (
FeatureList,
GetOnlineFeaturesResponse,
)
from feast.protos.feast.types.Value_pb2 import RepeatedValue
FieldValues = GetOnlineFeat... | 45.112069 | 106 | 0.68928 | 787 | 5,233 | 4.287166 | 0.125794 | 0.13278 | 0.170717 | 0.14997 | 0.679016 | 0.63278 | 0.547421 | 0.468287 | 0.397747 | 0.255483 | 0 | 0.020838 | 0.156316 | 5,233 | 115 | 107 | 45.504348 | 0.743375 | 0.155742 | 0 | 0.065217 | 0 | 0 | 0.121907 | 0 | 0 | 0 | 0 | 0 | 0.358696 | 1 | 0.043478 | false | 0 | 0.065217 | 0 | 0.108696 | 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 |
1b38ff047687aae355024d77f7e305c5f8f0b8c3 | 1,584 | py | Python | tests/test_models.py | andleb/rule-vetting | 57330c4e59affc89d6ae0ab5e619adb88e17c51e | [
"MIT"
] | null | null | null | tests/test_models.py | andleb/rule-vetting | 57330c4e59affc89d6ae0ab5e619adb88e17c51e | [
"MIT"
] | null | null | null | tests/test_models.py | andleb/rule-vetting | 57330c4e59affc89d6ae0ab5e619adb88e17c51e | [
"MIT"
] | 1 | 2021-11-16T22:03:58.000Z | 2021-11-16T22:03:58.000Z | from os.path import join as oj
import importlib
import numpy as np
import os
import rulevetting
import rulevetting.api.util
DATA_PATH = oj(os.path.dirname(os.path.abspath(__file__)), '..', 'data')
def test_models(project):
"""Check that each baseline is implemented properly
"""
if not project == 'None'... | 36.837209 | 93 | 0.688131 | 221 | 1,584 | 4.701357 | 0.357466 | 0.046198 | 0.031761 | 0.034649 | 0.147257 | 0.109721 | 0.075072 | 0 | 0 | 0 | 0 | 0.011155 | 0.207702 | 1,584 | 42 | 94 | 37.714286 | 0.816733 | 0.039773 | 0 | 0 | 0 | 0 | 0.163696 | 0.054785 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.033333 | false | 0 | 0.266667 | 0 | 0.3 | 0.033333 | 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 |
1b3a078d3c031de0b5f904e504751cabdb4ea3b8 | 3,295 | py | Python | backend/core/tests.py | fabiomsrs/vinta_teste | c05ab993ae20f4c7a8df9e1fce2ac1ba5ce1f150 | [
"MIT"
] | null | null | null | backend/core/tests.py | fabiomsrs/vinta_teste | c05ab993ae20f4c7a8df9e1fce2ac1ba5ce1f150 | [
"MIT"
] | 3 | 2021-04-08T21:57:14.000Z | 2021-06-10T20:30:28.000Z | backend/core/tests.py | fabiomsrs/vinta_teste | c05ab993ae20f4c7a8df9e1fce2ac1ba5ce1f150 | [
"MIT"
] | null | null | null | from django.test import Client, RequestFactory, TestCase
from django.contrib.sessions.middleware import SessionMiddleware
from core.serializers import RepoSerializer
from core.models import Repo
from .views import *
import datetime
# Create your tests here.
class RepoSerializerTestCase(TestCase):
def setUp(self):... | 33.622449 | 118 | 0.630046 | 368 | 3,295 | 5.505435 | 0.285326 | 0.043435 | 0.071076 | 0.076012 | 0.365252 | 0.350444 | 0.305035 | 0.231491 | 0.204837 | 0.204837 | 0 | 0.010417 | 0.242489 | 3,295 | 98 | 119 | 33.622449 | 0.801282 | 0.055539 | 0 | 0.257143 | 0 | 0 | 0.090763 | 0.012552 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.171429 | false | 0 | 0.085714 | 0 | 0.285714 | 0.014286 | 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 |
1b3b3a87bbd82bb7b65edd23db6d4c072bb7d617 | 1,910 | py | Python | examples/sunflower_callback.py | neurophysik/jitcdde | 44d7ed6ad187d3591407155b6eeb063f73e462cd | [
"BSD-3-Clause"
] | 49 | 2016-10-24T10:00:33.000Z | 2022-03-27T11:03:51.000Z | examples/sunflower_callback.py | neurophysik/jitcdde | 44d7ed6ad187d3591407155b6eeb063f73e462cd | [
"BSD-3-Clause"
] | 45 | 2016-11-20T22:05:07.000Z | 2022-03-29T07:13:25.000Z | examples/sunflower_callback.py | neurophysik/jitcdde | 44d7ed6ad187d3591407155b6eeb063f73e462cd | [
"BSD-3-Clause"
] | 11 | 2016-11-14T07:19:16.000Z | 2022-03-16T14:27:06.000Z | # In this example, we implement the sunflower equation. First, we do it regularly, then we repeat the process using callbacks.
from jitcdde import jitcdde, y, t
import numpy as np
a = 4.8
b = 0.186
tau = 40
# Regular implementation
# ----------------------
# To implement the sine function, we use SymEngine’s sine. T... | 33.508772 | 274 | 0.727749 | 323 | 1,910 | 4.213622 | 0.390093 | 0.03086 | 0.022043 | 0.038207 | 0.11903 | 0.11903 | 0.11903 | 0.11903 | 0.036738 | 0.036738 | 0 | 0.022291 | 0.15445 | 1,910 | 56 | 275 | 34.107143 | 0.820433 | 0.536649 | 0 | 0.0625 | 0 | 0 | 0.057405 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.03125 | false | 0 | 0.125 | 0 | 0.1875 | 0.03125 | 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 |
1b3bea91a0d8eade96c2b7f6b821f5c913db2dcb | 3,249 | py | Python | examples/correct_nlg.py | drahnr/nlprule | ae208aa911cf46c96731ed4012aba9b03fa6242e | [
"Apache-2.0",
"MIT"
] | 412 | 2020-12-28T19:00:53.000Z | 2022-03-29T18:11:15.000Z | examples/correct_nlg.py | drahnr/nlprule | ae208aa911cf46c96731ed4012aba9b03fa6242e | [
"Apache-2.0",
"MIT"
] | 65 | 2021-01-01T19:24:39.000Z | 2022-02-04T11:05:42.000Z | examples/correct_nlg.py | drahnr/nlprule | ae208aa911cf46c96731ed4012aba9b03fa6242e | [
"Apache-2.0",
"MIT"
] | 35 | 2021-01-18T17:51:43.000Z | 2022-02-16T04:58:31.000Z | from collections import Counter
from datasets import load_dataset
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
from nlprule import Rules, Tokenizer, SplitOn
from argparse import ArgumentParser
# gets a window from start - offset to end + offset or until a newline character is reached
def win... | 30.942857 | 91 | 0.615266 | 389 | 3,249 | 4.958869 | 0.344473 | 0.024883 | 0.044064 | 0.015552 | 0.107828 | 0.029031 | 0 | 0 | 0 | 0 | 0 | 0.016488 | 0.253309 | 3,249 | 104 | 92 | 31.240385 | 0.778648 | 0.055709 | 0 | 0.038961 | 0 | 0.012987 | 0.09889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025974 | false | 0 | 0.064935 | 0 | 0.116883 | 0.103896 | 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 |
1b3ce1736d1cfa9705fe8c6171cbc3a878c29378 | 3,541 | py | Python | __main__.py | TatianaPorras/MNIG_to_FMMSP | 1a62884237a4133f1417982d88f8a1421a972a08 | [
"MIT"
] | null | null | null | __main__.py | TatianaPorras/MNIG_to_FMMSP | 1a62884237a4133f1417982d88f8a1421a972a08 | [
"MIT"
] | null | null | null | __main__.py | TatianaPorras/MNIG_to_FMMSP | 1a62884237a4133f1417982d88f8a1421a972a08 | [
"MIT"
] | 2 | 2021-05-24T03:25:26.000Z | 2022-01-27T23:59:03.000Z | from algorithms import DNEH_SMR, destruction_reconstruction, local_search
from API.functions import PT, c_range, makespan
import numpy as np
import random
import math
# Soluciones probadas:
# Makespan: (36, 44, 52)
# Secuencias:
# [7, 8, 6, 10, 1, 9, 5, 4, 2, 3]
# [7, 8, 6, 10, 5, 9, 1, 4, 2, 3]
# [6, 1, 9, 7, 8, 10,... | 24.253425 | 214 | 0.558882 | 678 | 3,541 | 2.823009 | 0.231563 | 0.015674 | 0.025078 | 0.034483 | 0.171891 | 0.134274 | 0.100836 | 0.064786 | 0.064786 | 0.064786 | 0 | 0.150223 | 0.238633 | 3,541 | 146 | 215 | 24.253425 | 0.559718 | 0.333522 | 0 | 0.037736 | 0 | 0 | 0.026701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.113208 | 0 | 0.113208 | 0.037736 | 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 |
1b443c2b930af2451df3f82a9a3ab6cc53195965 | 10,087 | py | Python | Prescient.py | mpolatcan/prescient | b9fbee679e6c370d14deda5e88cd4f1cc5965d78 | [
"Apache-2.0"
] | 1 | 2018-09-08T15:07:52.000Z | 2018-09-08T15:07:52.000Z | Prescient.py | mpolatcan/prescient | b9fbee679e6c370d14deda5e88cd4f1cc5965d78 | [
"Apache-2.0"
] | null | null | null | Prescient.py | mpolatcan/prescient | b9fbee679e6c370d14deda5e88cd4f1cc5965d78 | [
"Apache-2.0"
] | 1 | 2018-12-10T16:51:30.000Z | 2018-12-10T16:51:30.000Z | '''
_______ _______ _______ _______ ________ ___ _______ __ __ ___________
/ __ / / ___ \ / ____/ / _____/ / ______\ / / / ____/ / \ / / /____ _____/
/ /__/ / / |__| | / /___ / /____ / / / / / /___ / \ / / / /
/ ______/ / __ ___/ / ____/ /___... | 47.805687 | 166 | 0.603747 | 1,042 | 10,087 | 5.380038 | 0.239923 | 0.079201 | 0.071174 | 0.046379 | 0.326971 | 0.26436 | 0.2137 | 0.116661 | 0.116661 | 0.097752 | 0 | 0.006042 | 0.245167 | 10,087 | 210 | 167 | 48.033333 | 0.730234 | 0.195697 | 0 | 0.045802 | 0 | 0 | 0.168505 | 0.106802 | 0 | 0 | 0 | 0.004762 | 0 | 1 | 0.038168 | false | 0 | 0.099237 | 0 | 0.137405 | 0.007634 | 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 |
1b4b3e39f0ad43f972262fa6b24bdff4b514234e | 1,848 | py | Python | python/forgetting_hash_map/forgetting_hash_map.py | cob16/forgetting_hash_map | b3bd608384d7c8c0a0a484fbb6cdedd7ccc37564 | [
"MIT"
] | null | null | null | python/forgetting_hash_map/forgetting_hash_map.py | cob16/forgetting_hash_map | b3bd608384d7c8c0a0a484fbb6cdedd7ccc37564 | [
"MIT"
] | 1 | 2020-09-24T05:41:09.000Z | 2020-09-28T05:47:41.000Z | python/forgetting_hash_map/forgetting_hash_map.py | cob16/forgetting_hash_map | b3bd608384d7c8c0a0a484fbb6cdedd7ccc37564 | [
"MIT"
] | 1 | 2017-03-23T15:56:34.000Z | 2017-03-23T15:56:34.000Z | class ForgettingHash:
"""A fixed size hash that deletes the least used elements when full.
max_len must be more than 0
Uses a second dict with the same keys to record usage
Value is refereed to as 'content'
"""
def __init__(self, max_len, items=None): # type: int, list
if max_len <= ... | 33 | 113 | 0.604978 | 266 | 1,848 | 4.071429 | 0.364662 | 0.060942 | 0.062789 | 0.025854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00468 | 0.306277 | 1,848 | 55 | 114 | 33.6 | 0.840094 | 0.323593 | 0 | 0 | 0 | 0 | 0.079352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1b4d2979efd4bf450ecdffaf76ebf2999530bf76 | 4,281 | py | Python | elasticdl/python/tests/checkpoint_test.py | chunyang-wen/elasticdl | 7b16b44f5314507494a552c11caaf3b2bce6d209 | [
"MIT"
] | null | null | null | elasticdl/python/tests/checkpoint_test.py | chunyang-wen/elasticdl | 7b16b44f5314507494a552c11caaf3b2bce6d209 | [
"MIT"
] | null | null | null | elasticdl/python/tests/checkpoint_test.py | chunyang-wen/elasticdl | 7b16b44f5314507494a552c11caaf3b2bce6d209 | [
"MIT"
] | null | null | null | import os
import tempfile
import unittest
from elasticdl.proto import elasticdl_pb2
from elasticdl.python.common.model_utils import (
get_module_file_path,
load_module,
)
from elasticdl.python.master.checkpoint_service import CheckpointService
from elasticdl.python.master.servicer import MasterServicer
_model... | 37.226087 | 79 | 0.6057 | 417 | 4,281 | 5.93765 | 0.218225 | 0.028271 | 0.043619 | 0.067851 | 0.511712 | 0.483441 | 0.351777 | 0.342084 | 0.342084 | 0.342084 | 0 | 0.014291 | 0.313478 | 4,281 | 114 | 80 | 37.552632 | 0.828173 | 0.022658 | 0 | 0.47 | 0 | 0 | 0.023918 | 0.016264 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0.03 | false | 0 | 0.07 | 0 | 0.11 | 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 |
1b4d531c59a83982bb5c89cb4e755707e96fcd9f | 3,525 | py | Python | geometry/d2/circle.py | TheBiggerFish/fishpy | 632a7c603a33ad694650aa2bed058931775a4259 | [
"MIT"
] | null | null | null | geometry/d2/circle.py | TheBiggerFish/fishpy | 632a7c603a33ad694650aa2bed058931775a4259 | [
"MIT"
] | null | null | null | geometry/d2/circle.py | TheBiggerFish/fishpy | 632a7c603a33ad694650aa2bed058931775a4259 | [
"MIT"
] | null | null | null | """This module provides a class for storing and evaluating circles"""
from functools import cached_property
from math import pi
from typing import Optional, Tuple
from .point2d import Point2D
from .vector2d import Vector2D
class Circle:
"""This class stores and provides methods for evaluating circles"""
de... | 31.473214 | 94 | 0.604539 | 442 | 3,525 | 4.753394 | 0.255656 | 0.066635 | 0.030462 | 0.039981 | 0.187054 | 0.097097 | 0.066635 | 0.066635 | 0.066635 | 0.066635 | 0 | 0.021523 | 0.288227 | 3,525 | 111 | 95 | 31.756757 | 0.815863 | 0.207376 | 0 | 0.2 | 0 | 0.014286 | 0.059235 | 0.027594 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.042857 | 0.071429 | 0.028571 | 0.414286 | 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 |
1b519a77db4799ab628dbd803d76bfec3ce31a64 | 9,134 | py | Python | analyze_model_results.py | awwong1/topic-traceability | 60d6fd8b52855d1e5faeaec3c160f2541e3ec0ca | [
"MIT"
] | 2 | 2019-04-28T09:13:14.000Z | 2019-11-19T02:49:30.000Z | analyze_model_results.py | awwong1/topic-traceability | 60d6fd8b52855d1e5faeaec3c160f2541e3ec0ca | [
"MIT"
] | 1 | 2021-06-01T23:40:18.000Z | 2021-06-01T23:40:18.000Z | analyze_model_results.py | awwong1/topic-traceability | 60d6fd8b52855d1e5faeaec3c160f2541e3ec0ca | [
"MIT"
] | 1 | 2019-04-28T09:13:25.000Z | 2019-04-28T09:13:25.000Z | #!/usr/bin/env python3
"""Calculate distances using the topic models on the course material/discussion
posts feature vectors.
"""
import os
import numpy as np
from datetime import datetime
from numpy import ravel
from pickle import load
from json import dump
from scipy.spatial.distance import cosine, euclidean
from gen... | 36.979757 | 101 | 0.639041 | 1,127 | 9,134 | 4.843833 | 0.176575 | 0.039568 | 0.02015 | 0.02473 | 0.412713 | 0.386884 | 0.299139 | 0.254809 | 0.254809 | 0.218905 | 0 | 0.002177 | 0.245676 | 9,134 | 246 | 102 | 37.130081 | 0.790131 | 0.133676 | 0 | 0.146739 | 0 | 0 | 0.126429 | 0.048412 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027174 | false | 0 | 0.048913 | 0 | 0.092391 | 0.027174 | 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 |
1b55c6de90397835acdc52e5f1e0da9fa1f29285 | 7,555 | py | Python | TCCDjango/app/views.py | hkirschke/App-Web-TCC | 7cb8eecff6f5afe4c996c8a424358de099faefd0 | [
"MIT"
] | null | null | null | TCCDjango/app/views.py | hkirschke/App-Web-TCC | 7cb8eecff6f5afe4c996c8a424358de099faefd0 | [
"MIT"
] | null | null | null | TCCDjango/app/views.py | hkirschke/App-Web-TCC | 7cb8eecff6f5afe4c996c8a424358de099faefd0 | [
"MIT"
] | null | null | null | """
Definition of views.
"""
from datetime import datetime
from django.shortcuts import render
from django.http import HttpRequest
from .graficoLinhaTempo import GraficoLT as graphLT
from .graficoBarra import GraficoBarra as graphBar
from .graficoScatter import GraficoScatter as grapScatter
import plotly as pl
def ... | 26.232639 | 73 | 0.611383 | 688 | 7,555 | 6.710756 | 0.122093 | 0.072775 | 0.104613 | 0.154646 | 0.670782 | 0.670782 | 0.659519 | 0.455924 | 0.455924 | 0.421702 | 0 | 0.001438 | 0.263799 | 7,555 | 288 | 74 | 26.232639 | 0.828659 | 0.01231 | 0 | 0.552529 | 0 | 0 | 0.13629 | 0 | 0 | 0 | 0 | 0 | 0.081712 | 1 | 0.081712 | false | 0 | 0.027237 | 0 | 0.190661 | 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 |
1b57f40012ee74179621d2d5c1a27c6037745bba | 862 | py | Python | setup.py | yacchin1205/Jupyter-LC_nblineage | 1b105540c5ff2b0dfd749fb73f2f6c896d6c422e | [
"BSD-3-Clause"
] | 3 | 2017-06-11T11:07:08.000Z | 2019-03-25T03:21:56.000Z | setup.py | yacchin1205/Jupyter-LC_nblineage | 1b105540c5ff2b0dfd749fb73f2f6c896d6c422e | [
"BSD-3-Clause"
] | 11 | 2017-05-27T09:51:51.000Z | 2020-07-20T04:41:49.000Z | setup.py | yacchin1205/Jupyter-LC_nblineage | 1b105540c5ff2b0dfd749fb73f2f6c896d6c422e | [
"BSD-3-Clause"
] | 3 | 2017-05-27T07:00:18.000Z | 2019-12-22T14:57:20.000Z | #!/usr/bin/env python
from setuptools import setup
import os
import sys
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION_NS = {}
with open(os.path.join(HERE, 'nblineage', '_version.py')) as f:
exec(f.read(), {}, VERSION_NS)
setup_args = dict (name='lc-nblineage',
version=VERSION_NS['__version__'],... | 26.121212 | 63 | 0.62645 | 98 | 862 | 5.204082 | 0.612245 | 0.035294 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00744 | 0.220418 | 862 | 32 | 64 | 26.9375 | 0.751488 | 0.023202 | 0 | 0 | 0 | 0 | 0.281807 | 0.032105 | 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 |
1b5832d9eb1333c10d47499797f086c5fa200f38 | 1,868 | py | Python | projects/vdk-control-cli/tests/vdk/internal/control/utils/cli_utils_test.py | alod83/versatile-data-kit | 9ca672d3929eb3dc6fe5c677e8c8a75e2a0d2be8 | [
"Apache-2.0"
] | 100 | 2021-10-04T09:32:04.000Z | 2022-03-30T11:23:53.000Z | projects/vdk-control-cli/tests/vdk/internal/control/utils/cli_utils_test.py | alod83/versatile-data-kit | 9ca672d3929eb3dc6fe5c677e8c8a75e2a0d2be8 | [
"Apache-2.0"
] | 208 | 2021-10-04T16:56:40.000Z | 2022-03-31T10:41:44.000Z | projects/vdk-control-cli/tests/vdk/internal/control/utils/cli_utils_test.py | alod83/versatile-data-kit | 9ca672d3929eb3dc6fe5c677e8c8a75e2a0d2be8 | [
"Apache-2.0"
] | 14 | 2021-10-11T14:15:13.000Z | 2022-03-11T13:39:17.000Z | # Copyright 2021 VMware, Inc.
# SPDX-License-Identifier: Apache-2.0
from vdk.internal.control.utils.cli_utils import GqlQueryBuilder
from vdk.internal.control.utils.cli_utils import QueryField
def test_query_builder_simple():
jobs_builder = GqlQueryBuilder()
jobs_builder.start().add_return_new("jobs").add_ret... | 35.923077 | 88 | 0.667024 | 212 | 1,868 | 5.627358 | 0.235849 | 0.07544 | 0.100587 | 0.070411 | 0.576697 | 0.487008 | 0.487008 | 0.430847 | 0.295054 | 0.295054 | 0 | 0.011928 | 0.192184 | 1,868 | 51 | 89 | 36.627451 | 0.778661 | 0.033726 | 0 | 0.317073 | 0 | 0 | 0.27303 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 1 | 0.073171 | false | 0 | 0.04878 | 0 | 0.121951 | 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 |
1b5f0887853abb3afaca7a9088409bbdada5a133 | 742 | py | Python | src/scripts/copy_bug_classes.py | ucd-plse/eesi | aacbcecbb8c1f1d2e152ee4a0aa417ac92ae74bb | [
"BSD-3-Clause"
] | 5 | 2019-07-01T09:05:32.000Z | 2019-09-03T17:36:26.000Z | src/scripts/copy_bug_classes.py | defreez-ucd/eesi-doi | 49b51f9a01b8c1dbbe110898c27ec714034132aa | [
"CC-BY-4.0"
] | 3 | 2019-08-01T03:14:48.000Z | 2019-09-03T20:40:52.000Z | src/scripts/copy_bug_classes.py | defreez-ucd/eesi-doi | 49b51f9a01b8c1dbbe110898c27ec714034132aa | [
"CC-BY-4.0"
] | 2 | 2019-06-10T23:08:27.000Z | 2020-09-29T01:20:49.000Z | import argparse
parser = argparse.ArgumentParser()
parser.add_argument('fromcsv', help="Path to classified bug csv")
parser.add_argument('tocsv', help="Path to new csv")
args = parser.parse_args()
fromcsv = open(args.fromcsv)
tocsv = open(args.tocsv)
from_lines = [x.strip() for x in fromcsv.readlines()]
to_lines = [... | 27.481481 | 66 | 0.650943 | 108 | 742 | 4.324074 | 0.37037 | 0.117773 | 0.077088 | 0.059957 | 0.171306 | 0.171306 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 0.175202 | 742 | 26 | 67 | 28.538462 | 0.756536 | 0 | 0 | 0.095238 | 0 | 0 | 0.086253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 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 |