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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
40a0c02ad22b941af8159f65f284f536c99461a2 | 3,889 | py | Python | ink2canvas/GradientHelper.py | greipfrut/pdftohtml5canvas | bd4b829a5fd02b503e6b32c268b265daa92e92e5 | [
"MIT"
] | 4 | 2016-05-06T21:29:39.000Z | 2020-02-25T08:47:48.000Z | ink2canvas/GradientHelper.py | letw/pdftohtml5canvas | bd4b829a5fd02b503e6b32c268b265daa92e92e5 | [
"MIT"
] | null | null | null | ink2canvas/GradientHelper.py | letw/pdftohtml5canvas | bd4b829a5fd02b503e6b32c268b265daa92e92e5 | [
"MIT"
] | null | null | null | from ink2canvas.lib.simpletransform import parseTransform
class GradientHelper(object):
def __init__(self, abstractShape):
self.abstractShape = abstractShape
def hasGradient(self, key):
style = self.abstractShape.getStyle()
if key in style:
styleParamate... | 43.696629 | 141 | 0.609154 | 350 | 3,889 | 6.757143 | 0.254286 | 0.150951 | 0.17759 | 0.013531 | 0.347992 | 0.293446 | 0.293446 | 0.224101 | 0.224101 | 0.106554 | 0 | 0.016985 | 0.273335 | 3,889 | 89 | 142 | 43.696629 | 0.819887 | 0 | 0 | 0.287671 | 0 | 0 | 0.043188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123288 | false | 0 | 0.013699 | 0.013699 | 0.273973 | 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 |
40a223cfd00d5ab5d2f6c9db56030a295e86ca65 | 1,624 | py | Python | examples/plotting/field_pole_figure.py | heprom/pymicro | 176bf3a829dbf67796a3d4471f18868a3da229a7 | [
"MIT"
] | 30 | 2017-03-02T14:43:48.000Z | 2022-02-25T13:22:22.000Z | examples/plotting/field_pole_figure.py | heprom/pymicro | 176bf3a829dbf67796a3d4471f18868a3da229a7 | [
"MIT"
] | 14 | 2019-12-29T12:41:29.000Z | 2021-12-01T21:13:20.000Z | examples/plotting/field_pole_figure.py | heprom/pymicro | 176bf3a829dbf67796a3d4471f18868a3da229a7 | [
"MIT"
] | 18 | 2017-03-21T12:43:19.000Z | 2022-03-22T14:30:06.000Z | from pymicro.crystal.microstructure import *
from pymicro.crystal.texture import *
from pymicro.examples import PYMICRO_EXAMPLES_DATA_DIR
from matplotlib import pyplot as plt, colors, colorbar, cm
import pathlib as pl
'''This example demonstrate how a field can be used to color each symbol on
the pole figure with th... | 34.553191 | 93 | 0.75431 | 264 | 1,624 | 4.477273 | 0.488636 | 0.038071 | 0.013536 | 0.055838 | 0.069374 | 0.05753 | 0 | 0 | 0 | 0 | 0 | 0.038036 | 0.109606 | 1,624 | 46 | 94 | 35.304348 | 0.779391 | 0.141626 | 0 | 0 | 0 | 0 | 0.12 | 0.019592 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40a57bcb86583811e90d8029258fdefae6a38a7d | 11,634 | py | Python | model/img2seq_torch.py | marcoleewow/LaTeX_OCR | 0980ea719f8d3175a6bbf6af18873dd72d04b8c7 | [
"Apache-2.0"
] | 290 | 2019-04-04T01:52:32.000Z | 2022-03-30T08:07:53.000Z | model/img2seq_torch.py | w32zhong/LaTeX_OCR | 1e1f196468e678c93dfa2d8ab2ba02fbda38a3c0 | [
"Apache-2.0"
] | 23 | 2019-06-11T05:07:58.000Z | 2022-03-11T23:44:17.000Z | model/img2seq_torch.py | w32zhong/LaTeX_OCR | 1e1f196468e678c93dfa2d8ab2ba02fbda38a3c0 | [
"Apache-2.0"
] | 81 | 2019-04-06T11:40:34.000Z | 2022-02-28T15:08:05.000Z | import time
import sys
import os
import numpy as np
import torch
import torch.nn as nn
import torchvision.models as models
from torch.nn.utils.rnn import pack_padded_sequence
from model.base_torch import BaseModel
from model.utils.general import init_dir, get_logger
from model.utils.general import Progb... | 42.772059 | 147 | 0.577016 | 1,342 | 11,634 | 4.845007 | 0.228763 | 0.017994 | 0.019379 | 0.012919 | 0.335589 | 0.311596 | 0.277607 | 0.262996 | 0.262996 | 0.262996 | 0 | 0.011461 | 0.317518 | 11,634 | 271 | 148 | 42.929889 | 0.807431 | 0.228382 | 0 | 0.213836 | 0 | 0 | 0.018451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069182 | false | 0 | 0.150943 | 0.012579 | 0.308176 | 0.012579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40a5a49f8963d40bc4247496570aa980197c909d | 719 | py | Python | src/third_party/dart/tools/dom/scripts/all_tests.py | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | 21 | 2021-06-04T21:08:21.000Z | 2022-03-04T14:21:34.000Z | src/third_party/dart/tools/dom/scripts/all_tests.py | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | 1 | 2021-01-21T14:45:59.000Z | 2021-01-21T14:45:59.000Z | src/third_party/dart/tools/dom/scripts/all_tests.py | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | 9 | 2021-03-16T09:29:26.000Z | 2022-01-06T08:38:10.000Z | #!/usr/bin/python
# Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
"""This entry point runs all script tests."""
import logging.config
import unittest
if ... | 37.842105 | 76 | 0.719054 | 88 | 719 | 5.670455 | 0.738636 | 0.052104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0067 | 0.16968 | 719 | 18 | 77 | 39.944444 | 0.829146 | 0.365786 | 0 | 0 | 0 | 0 | 0.391499 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 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 |
40a5dc8510f8fdf8f4c9c7d29bd318a4e6deedc1 | 49,691 | py | Python | imgaug/augmentables/bbs.py | bill0714/imgaug | 5abdc4d9d7f512ba34c78955557b174a64ad22a6 | [
"MIT"
] | 1 | 2019-10-25T17:43:20.000Z | 2019-10-25T17:43:20.000Z | imgaug/augmentables/bbs.py | RTANC/imgaug | 2a3161550a4a1895a227bb8856d525e69a7d503d | [
"MIT"
] | null | null | null | imgaug/augmentables/bbs.py | RTANC/imgaug | 2a3161550a4a1895a227bb8856d525e69a7d503d | [
"MIT"
] | null | null | null | from __future__ import print_function, division, absolute_import
import copy
import numpy as np
import skimage.draw
import skimage.measure
from .. import imgaug as ia
from .utils import normalize_shape, project_coords
# TODO functions: square(), to_aspect_ratio(), contains_point()
class BoundingBox(object):
""... | 33.327297 | 127 | 0.55666 | 6,363 | 49,691 | 4.285086 | 0.084394 | 0.033081 | 0.023619 | 0.012323 | 0.496039 | 0.425952 | 0.383078 | 0.337453 | 0.310973 | 0.264138 | 0 | 0.021349 | 0.346743 | 49,691 | 1,490 | 128 | 33.349664 | 0.818613 | 0.505444 | 0 | 0.208333 | 0 | 0.002193 | 0.054572 | 0.006335 | 0 | 0 | 0 | 0.007383 | 0.019737 | 1 | 0.122807 | false | 0 | 0.019737 | 0.013158 | 0.287281 | 0.002193 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40a624029504fa50d779ccdfdaa5ed5b7ed61a95 | 1,202 | py | Python | cubes_pilingup.py | akiselev1/hackerrank-solutions | 53c2a76c71c9b3553c077ccfde5178b27594ae72 | [
"MIT"
] | null | null | null | cubes_pilingup.py | akiselev1/hackerrank-solutions | 53c2a76c71c9b3553c077ccfde5178b27594ae72 | [
"MIT"
] | null | null | null | cubes_pilingup.py | akiselev1/hackerrank-solutions | 53c2a76c71c9b3553c077ccfde5178b27594ae72 | [
"MIT"
] | null | null | null | """
Created by akiselev on 2019-06-14
There is a horizontal row of cubes. The length of each cube is given. You need to create a new vertical pile of cubes. The new pile should follow these directions: if is on top of then
.
When stacking the cubes, you can only pick up either the leftmost or the rightmost cube ... | 23.115385 | 205 | 0.689684 | 221 | 1,202 | 3.728507 | 0.461538 | 0.036408 | 0.033981 | 0.036408 | 0.067961 | 0.067961 | 0.067961 | 0.067961 | 0.067961 | 0.067961 | 0 | 0.030336 | 0.232113 | 1,202 | 51 | 206 | 23.568627 | 0.862405 | 0.754576 | 0 | 0.222222 | 0 | 0 | 0.017668 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40a999434640883a137547c775c396581c90f8a2 | 14,674 | py | Python | flask_web/bootstrap_web_core_py3.py | bopopescu/docker_images_a | 348d0982c5962f2ae34d10183ed9522b7a6fe286 | [
"MIT"
] | null | null | null | flask_web/bootstrap_web_core_py3.py | bopopescu/docker_images_a | 348d0982c5962f2ae34d10183ed9522b7a6fe286 | [
"MIT"
] | null | null | null | flask_web/bootstrap_web_core_py3.py | bopopescu/docker_images_a | 348d0982c5962f2ae34d10183ed9522b7a6fe286 | [
"MIT"
] | null | null | null | #
#
# File: flask_web_py3.py
#
#
#
import os
import json
import redis
import urllib
import flask
from flask import Flask
from flask import render_template,jsonify
from flask_httpauth import HTTPDigestAuth
from flask import request, session, url_for
from redis_support_py3.graph_query_support_py3 impo... | 34.855107 | 147 | 0.568284 | 1,735 | 14,674 | 4.50951 | 0.155043 | 0.018788 | 0.018277 | 0.013292 | 0.327582 | 0.245527 | 0.203221 | 0.150818 | 0.130879 | 0.106851 | 0 | 0.006823 | 0.32084 | 14,674 | 420 | 148 | 34.938095 | 0.778045 | 0.036323 | 0 | 0.227437 | 0 | 0.01444 | 0.20495 | 0.039574 | 0.00361 | 0 | 0 | 0 | 0.00361 | 1 | 0.075812 | false | 0.00722 | 0.075812 | 0 | 0.194946 | 0.032491 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40ab6e634c98f0a3601e54792ef5853e9f4bf06f | 6,429 | py | Python | SQED-Generator/Generators/constraint_generator.py | upscale-project/generic-sqed-demo | aa44a7563e6249c6f0641c13e8ca0b013c497df1 | [
"BSD-3-Clause"
] | 6 | 2019-09-10T02:56:47.000Z | 2021-12-18T11:17:16.000Z | SQED-Generator/Generators/constraint_generator.py | upscale-project/generic-sqed-demo | aa44a7563e6249c6f0641c13e8ca0b013c497df1 | [
"BSD-3-Clause"
] | 1 | 2019-07-19T17:05:20.000Z | 2019-07-19T17:05:20.000Z | SQED-Generator/Generators/constraint_generator.py | upscale-project/generic-sqed-demo | aa44a7563e6249c6f0641c13e8ca0b013c497df1 | [
"BSD-3-Clause"
] | 2 | 2019-10-02T00:35:14.000Z | 2019-10-23T21:13:14.000Z | # Copyright (c) Stanford University
#
# This source code is patent protected and being made available under the
# terms explained in the ../LICENSE-Academic and ../LICENSE-GOV files.
# Author: Mario J Srouji
# Email: msrouji@stanford.edu
import copy
import sys
sys.path.append("../FormatParsers/")
sys.path.append("../... | 36.737143 | 116 | 0.586872 | 750 | 6,429 | 4.856 | 0.182667 | 0.074684 | 0.078254 | 0.074684 | 0.350906 | 0.318232 | 0.255629 | 0.193575 | 0.143328 | 0.068644 | 0 | 0.010277 | 0.30378 | 6,429 | 174 | 117 | 36.948276 | 0.803396 | 0.109659 | 0 | 0.34188 | 0 | 0 | 0.055536 | 0 | 0 | 0 | 0 | 0 | 0.017094 | 1 | 0.008547 | false | 0 | 0.034188 | 0 | 0.051282 | 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 |
40abfa616e38a32a5059cf71c64a0d859cac8dd9 | 3,624 | py | Python | modules/losses.py | Sapperdomonik/retinaface-tf2 | af06baffb7f5bd099e5ca6fec51c94ed298a3926 | [
"MIT"
] | null | null | null | modules/losses.py | Sapperdomonik/retinaface-tf2 | af06baffb7f5bd099e5ca6fec51c94ed298a3926 | [
"MIT"
] | null | null | null | modules/losses.py | Sapperdomonik/retinaface-tf2 | af06baffb7f5bd099e5ca6fec51c94ed298a3926 | [
"MIT"
] | null | null | null | import tensorflow as tf
def _smooth_l1_loss(y_true, y_pred):
t = tf.abs(y_pred - y_true)
return tf.where(t < 1, 0.5 * t ** 2, t - 0.5)
def MultiBoxLoss(num_class=2, neg_pos_ratio=3):
"""multi-box loss"""
def multi_box_loss(y_true, y_pred):
num_batch = tf.shape(y_true)[0]
num_prior = ... | 48.32 | 79 | 0.625828 | 537 | 3,624 | 3.854749 | 0.162011 | 0.073913 | 0.05314 | 0.077295 | 0.274396 | 0.091787 | 0 | 0 | 0 | 0 | 0 | 0.022924 | 0.265728 | 3,624 | 74 | 80 | 48.972973 | 0.754979 | 0.102925 | 0 | 0 | 0 | 0 | 0.003088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.019231 | 0 | 0.134615 | 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 |
40acba1acfb883bbd0db070af8041dc100486a53 | 1,153 | py | Python | fds/config.py | dvershinin/fds | 4c4c96deb3d2bbe4d0853f601c3dc2b87801ced4 | [
"BSD-2-Clause"
] | 9 | 2020-04-29T14:25:06.000Z | 2021-12-30T03:28:05.000Z | fds/config.py | dvershinin/fds | 4c4c96deb3d2bbe4d0853f601c3dc2b87801ced4 | [
"BSD-2-Clause"
] | 18 | 2020-01-28T22:07:07.000Z | 2022-03-20T16:06:12.000Z | fds/config.py | dvershinin/fds | 4c4c96deb3d2bbe4d0853f601c3dc2b87801ced4 | [
"BSD-2-Clause"
] | null | null | null | from cds.CloudflareWrapper import suggest_set_up, cf_config_filename
from .FirewallWrapper import FirewallWrapper
import logging as log
def open_web_if_webserver_running():
fw = FirewallWrapper()
from .utils import is_process_running, query_yes_no
webserver_running = is_process_running('nginx')
if web... | 36.03125 | 86 | 0.692975 | 149 | 1,153 | 5.147651 | 0.395973 | 0.045632 | 0.070404 | 0.078227 | 0.065189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23157 | 1,153 | 31 | 87 | 37.193548 | 0.865688 | 0.104076 | 0 | 0.08 | 0 | 0 | 0.146602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.2 | 0 | 0.28 | 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 |
40adc41d2f17560f722bc8589f813ea290672937 | 21,395 | py | Python | hikari/events/channel_events.py | Reliku/hikari | c6e62b750ce35885a5e4124ffe8df6445ab34acd | [
"MIT"
] | null | null | null | hikari/events/channel_events.py | Reliku/hikari | c6e62b750ce35885a5e4124ffe8df6445ab34acd | [
"MIT"
] | null | null | null | hikari/events/channel_events.py | Reliku/hikari | c6e62b750ce35885a5e4124ffe8df6445ab34acd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# cython: language_level=3
# Copyright (c) 2020 Nekokatt
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights... | 33.906498 | 119 | 0.686282 | 2,534 | 21,395 | 5.702447 | 0.117206 | 0.043599 | 0.053287 | 0.032388 | 0.69827 | 0.666021 | 0.641384 | 0.607197 | 0.595502 | 0.565329 | 0 | 0.000359 | 0.218602 | 21,395 | 630 | 120 | 33.960317 | 0.863979 | 0.27642 | 0 | 0.610092 | 0 | 0 | 0.025168 | 0.006432 | 0 | 0 | 0 | 0.003175 | 0.027523 | 1 | 0.087156 | false | 0 | 0.077982 | 0.036697 | 0.477064 | 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 |
40af4a6cd5eabd173caad42e65be14761273bd46 | 3,911 | py | Python | other/string chains/strings4.py | saulc/myth-math | 5e278eb8fbaf16a01f5f021aca2142e5ce3131ec | [
"MIT"
] | null | null | null | other/string chains/strings4.py | saulc/myth-math | 5e278eb8fbaf16a01f5f021aca2142e5ce3131ec | [
"MIT"
] | null | null | null | other/string chains/strings4.py | saulc/myth-math | 5e278eb8fbaf16a01f5f021aca2142e5ce3131ec | [
"MIT"
] | null | null | null | # Saul Castro
# Hiralben Hirpara
# config file format
import random
def openFile():
file = open("test.txt", 'r')
return file
def printFile(f):
print(f.read())
def readInput():
testout = "CarpenteRatcheThread"
file = open("test.txt", 'r')
s = str(file.read())
words = s.split(" ");
... | 25.730263 | 85 | 0.504475 | 505 | 3,911 | 3.879208 | 0.241584 | 0.049005 | 0.069423 | 0.02246 | 0.133231 | 0.105156 | 0.093925 | 0.050026 | 0 | 0 | 0 | 0.011881 | 0.354385 | 3,911 | 151 | 86 | 25.900662 | 0.76396 | 0.183073 | 0 | 0.215686 | 0 | 0 | 0.078066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.009804 | 0 | 0.186275 | 0.22549 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40b1a05b02e671eeb4b12cc51ccc3740e6e21280 | 2,010 | py | Python | qnarre/base/proof.py | quantapix/qnarre.com | f51d5945c20ef8182c4aa11f1b407d064c190c70 | [
"MIT"
] | null | null | null | qnarre/base/proof.py | quantapix/qnarre.com | f51d5945c20ef8182c4aa11f1b407d064c190c70 | [
"MIT"
] | null | null | null | qnarre/base/proof.py | quantapix/qnarre.com | f51d5945c20ef8182c4aa11f1b407d064c190c70 | [
"MIT"
] | null | null | null | # Copyright 2019 Quantapix Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 30.454545 | 79 | 0.570149 | 231 | 2,010 | 4.926407 | 0.450216 | 0.052724 | 0.022847 | 0.02812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006388 | 0.299005 | 2,010 | 65 | 80 | 30.923077 | 0.801278 | 0.325373 | 0 | 0.093023 | 0 | 0 | 0.035048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0 | 0.069767 | 0.023256 | 0.348837 | 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 |
40b2a0543dc5434ad9bc96313563cef627bd5d42 | 6,636 | py | Python | learningPygame/Dave/06-SpaceInvaders/space_invaders.py | Rosebotics/catapult2019 | 4f125632f4d144b97ee3ecaf00a517780d510a70 | [
"MIT"
] | null | null | null | learningPygame/Dave/06-SpaceInvaders/space_invaders.py | Rosebotics/catapult2019 | 4f125632f4d144b97ee3ecaf00a517780d510a70 | [
"MIT"
] | null | null | null | learningPygame/Dave/06-SpaceInvaders/space_invaders.py | Rosebotics/catapult2019 | 4f125632f4d144b97ee3ecaf00a517780d510a70 | [
"MIT"
] | null | null | null | import pygame, sys, random, time
from pygame.locals import *
class Missile:
def __init__(self, screen, x):
# Store the data. Initialize: y to 591 and exploded to False.
self.screen = screen
self.x = x
self.y = 591
self.exploded = False
def move(self):
# ... | 32.851485 | 104 | 0.583484 | 901 | 6,636 | 4.208657 | 0.211987 | 0.019778 | 0.021361 | 0.022416 | 0.276371 | 0.181171 | 0.156909 | 0.104167 | 0.097046 | 0.097046 | 0 | 0.025885 | 0.318867 | 6,636 | 201 | 105 | 33.014925 | 0.813053 | 0.242013 | 0 | 0.280303 | 0 | 0 | 0.013005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.143939 | false | 0 | 0.015152 | 0.015152 | 0.212121 | 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 |
40b4eef32d47c4960807376665ec44995d7e4116 | 14,062 | py | Python | model/_UNet_trainer.py | yasahi-hpc/AMRNet | 5858d464bdfe409a5ab50889104768dda3c70508 | [
"MIT"
] | null | null | null | model/_UNet_trainer.py | yasahi-hpc/AMRNet | 5858d464bdfe409a5ab50889104768dda3c70508 | [
"MIT"
] | null | null | null | model/_UNet_trainer.py | yasahi-hpc/AMRNet | 5858d464bdfe409a5ab50889104768dda3c70508 | [
"MIT"
] | null | null | null | from ._base_trainer import _BaseTrainer, MeasureMemory
import pathlib
import torch.multiprocessing as mp
import torch
from torch import nn
import horovod.torch as hvd
import numpy as np
import xarray as xr
import itertools
from .flow_dataset import FlowDataset
from .unet import UNet
import sys
from .visualization impor... | 39.061111 | 147 | 0.595435 | 1,722 | 14,062 | 4.571429 | 0.157956 | 0.08435 | 0.051829 | 0.019436 | 0.620554 | 0.605691 | 0.601499 | 0.595528 | 0.583079 | 0.583079 | 0 | 0.020406 | 0.303015 | 14,062 | 359 | 148 | 39.169916 | 0.782777 | 0.115417 | 0 | 0.574879 | 0 | 0 | 0.053187 | 0.02704 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.067633 | 0 | 0.120773 | 0.004831 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40b61330deb7990837ff7794fbef7bc995f41538 | 5,557 | py | Python | agents/vpg_policy_translation_with_dislocation.py | pjarosik/rlus | 5804a37ed9221362c470ad4eb0e6b03e533bf1d8 | [
"Apache-2.0"
] | 3 | 2020-09-20T20:02:43.000Z | 2022-01-14T09:37:46.000Z | agents/vpg_policy_translation_with_dislocation.py | pjarosik/rlus | 5804a37ed9221362c470ad4eb0e6b03e533bf1d8 | [
"Apache-2.0"
] | null | null | null | agents/vpg_policy_translation_with_dislocation.py | pjarosik/rlus | 5804a37ed9221362c470ad4eb0e6b03e533bf1d8 | [
"Apache-2.0"
] | 1 | 2021-06-29T07:02:19.000Z | 2021-06-29T07:02:19.000Z | from spinup import vpg
import tensorflow as tf
import numpy as np
from gym.spaces import Box, Discrete
from envs.focal_point_task_us_env import FocalPointTaskUsEnv
from envs.phantom import (
ScatterersPhantom,
Ball,
Teddy
)
from envs.imaging import ImagingSystem, Probe
from envs.generator import ConstPhanto... | 31.936782 | 81 | 0.620659 | 720 | 5,557 | 4.529167 | 0.329167 | 0.037105 | 0.029439 | 0.038638 | 0.199325 | 0.171113 | 0.133088 | 0.111009 | 0.111009 | 0.058264 | 0 | 0.049135 | 0.282167 | 5,557 | 173 | 82 | 32.121387 | 0.768363 | 0.069822 | 0 | 0.047297 | 0 | 0 | 0.021726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033784 | false | 0 | 0.074324 | 0 | 0.135135 | 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 |
40b7ac2bc7f8f3621a710ed64cc2cd9096f796f1 | 791 | py | Python | lib/losses/dice.py | zongdaoming/CMT | fc3773bb6c6b1ab091688addfffca3fb1e382ae4 | [
"MIT"
] | 3 | 2021-05-10T20:12:23.000Z | 2021-11-24T18:01:13.000Z | lib/losses/dice.py | zongdaoming/CMT | fc3773bb6c6b1ab091688addfffca3fb1e382ae4 | [
"MIT"
] | null | null | null | lib/losses/dice.py | zongdaoming/CMT | fc3773bb6c6b1ab091688addfffca3fb1e382ae4 | [
"MIT"
] | null | null | null | import sys,os
sys.path.append('/home/zongdaoming/cv/multi-organ/multi-organ-ijcai')
from lib.losses.BaseClass import _AbstractDiceLoss
from lib.losses.basic import *
class DiceLoss(_AbstractDiceLoss):
"""Computes Dice Loss according to https://arxiv.org/abs/1606.04797.
For multi-class segmentation `weight` pa... | 35.954545 | 102 | 0.737042 | 106 | 791 | 5.283019 | 0.584906 | 0.064286 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015198 | 0.168142 | 791 | 21 | 103 | 37.666667 | 0.835866 | 0.207332 | 0 | 0 | 0 | 0 | 0.082102 | 0.082102 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0.083333 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40b7ae2027514475dd06028f5df19e3941be6b6d | 1,190 | py | Python | icons.py | jasantunes/alfred-golinks | f35fa87adedf07329469c0161c8808401a6925d0 | [
"MIT"
] | 312 | 2015-01-02T12:44:03.000Z | 2020-06-21T03:53:29.000Z | icons.py | jasantunes/alfred-golinks | f35fa87adedf07329469c0161c8808401a6925d0 | [
"MIT"
] | 7 | 2015-03-22T11:57:50.000Z | 2020-02-09T08:35:05.000Z | icons.py | jasantunes/alfred-golinks | f35fa87adedf07329469c0161c8808401a6925d0 | [
"MIT"
] | 35 | 2015-09-06T09:36:32.000Z | 2020-06-21T19:17:55.000Z | # encoding: utf-8
#
# Copyright (c) 2019 Dean Jackson <deanishe@deanishe.net>
#
# MIT Licence. See http://opensource.org/licenses/MIT
#
# Created on 2019-09-06
#
"""Overlay check mark on icons."""
from __future__ import print_function, absolute_import
from Cocoa import (
NSBitmapImageRep,
NSPNGFileType,
... | 25.869565 | 70 | 0.691597 | 132 | 1,190 | 6.113636 | 0.575758 | 0.026022 | 0.033457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01556 | 0.189916 | 1,190 | 45 | 71 | 26.444444 | 0.821577 | 0.313445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.173913 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40b9ac7b9f67d52c5c73796669c1ff5e0996665b | 2,491 | py | Python | project/python/Main/CTRL/tracker.py | warak/IOT-GrannyWarden | 54ad51b7bf7377ce7b87e72091c9dbf7f686050d | [
"MIT"
] | null | null | null | project/python/Main/CTRL/tracker.py | warak/IOT-GrannyWarden | 54ad51b7bf7377ce7b87e72091c9dbf7f686050d | [
"MIT"
] | null | null | null | project/python/Main/CTRL/tracker.py | warak/IOT-GrannyWarden | 54ad51b7bf7377ce7b87e72091c9dbf7f686050d | [
"MIT"
] | null | null | null | import datetime
from threading import Thread
from time import sleep
import DBC.dbcreate as dbc
class Tracker(Thread):
max_idle_time = 720 # minutes
default_sleep = 3600 # secs
def track(self):
dbcl = dbc.DBClient()
# print(dbcl.getlasttime())
print("Tracker activated")
... | 30.753086 | 91 | 0.470092 | 234 | 2,491 | 4.978632 | 0.32906 | 0.077253 | 0.030901 | 0.029185 | 0.176824 | 0.176824 | 0.176824 | 0.176824 | 0.176824 | 0.176824 | 0 | 0.028649 | 0.411481 | 2,491 | 81 | 92 | 30.753086 | 0.76603 | 0.078683 | 0 | 0.25 | 0 | 0 | 0.034136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053571 | false | 0 | 0.071429 | 0 | 0.178571 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40bac90ddb15602100d2d54bde81a9850ed02d27 | 4,737 | py | Python | utils/get_dataset.py | gautierdag/pytorch-attentive-lm | d08ce1813a5ee575c0aac86773cd95aa174ab5e1 | [
"MIT"
] | 16 | 2019-01-28T16:39:52.000Z | 2021-12-25T11:07:55.000Z | utils/get_dataset.py | MarkWuCL/pytorch-attentive-lm | d08ce1813a5ee575c0aac86773cd95aa174ab5e1 | [
"MIT"
] | 1 | 2021-09-14T22:14:28.000Z | 2021-09-15T16:12:43.000Z | utils/get_dataset.py | MarkWuCL/pytorch-attentive-lm | d08ce1813a5ee575c0aac86773cd95aa174ab5e1 | [
"MIT"
] | 6 | 2019-01-25T00:08:33.000Z | 2022-02-15T06:47:54.000Z | import os
import torch
from torch.utils.data import DataLoader, TensorDataset
import requests
import io
import zipfile
from .data_reader import read_vocabulary, read_lm_data, lm_data_producer
from .pre_process_wikitext import pre_process
def get_dataset(dataset, batch_size, device):
"""
Returns data iterator... | 37.896 | 90 | 0.677222 | 647 | 4,737 | 4.786708 | 0.180835 | 0.040685 | 0.025186 | 0.040685 | 0.417178 | 0.319341 | 0.291572 | 0.187601 | 0.079755 | 0.061995 | 0 | 0.014244 | 0.199704 | 4,737 | 124 | 91 | 38.201613 | 0.802691 | 0.05552 | 0 | 0.107527 | 0 | 0.043011 | 0.218055 | 0.086234 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043011 | false | 0 | 0.086022 | 0 | 0.150538 | 0.043011 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40bb7183ce1df8b018466acd5e09bcd49d75d2d5 | 289 | py | Python | Conteudo das Aulas/087/calc_est.py | cerberus707/lab-python | ebba3c9cde873d70d4bb61084f79ce30b7f9e047 | [
"Apache-2.0"
] | null | null | null | Conteudo das Aulas/087/calc_est.py | cerberus707/lab-python | ebba3c9cde873d70d4bb61084f79ce30b7f9e047 | [
"Apache-2.0"
] | null | null | null | Conteudo das Aulas/087/calc_est.py | cerberus707/lab-python | ebba3c9cde873d70d4bb61084f79ce30b7f9e047 | [
"Apache-2.0"
] | null | null | null | from tkinter import *
#Cria a nossa tela
instancia = Tk()
#Dá um título a tela
instancia.title('Calculadora para Estatística')
#Dá um tamanho a tela
instancia.geometry("800x600")
#Dá um ícone ao aplicativo
#instancia.wm_iconbitmap('icone.ico')
#Inicia o programa
instancia.mainloop()
| 17 | 47 | 0.761246 | 42 | 289 | 5.214286 | 0.714286 | 0.178082 | 0.127854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.138408 | 289 | 16 | 48 | 18.0625 | 0.855422 | 0.463668 | 0 | 0 | 0 | 0 | 0.234899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
40bb7e3f95f2a2dc9b27a2c8dd06c761ef722a37 | 6,235 | py | Python | property_scraper.py | iplaughlin/property_scraping | 739d05a272eddb5f2b48f9fc85f407904067b931 | [
"MIT"
] | null | null | null | property_scraper.py | iplaughlin/property_scraping | 739d05a272eddb5f2b48f9fc85f407904067b931 | [
"MIT"
] | null | null | null | property_scraper.py | iplaughlin/property_scraping | 739d05a272eddb5f2b48f9fc85f407904067b931 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 19 09:42:09 2022
@author: iaala
"""
import requests
import sql_configs
import datetime
import os
from bs4 import BeautifulSoup
import time
from find_tables import (
table_information_one,
table_information_two,
table_information_three,
table_information_... | 42.705479 | 121 | 0.559262 | 615 | 6,235 | 5.460163 | 0.273171 | 0.052412 | 0.044669 | 0.031269 | 0.206373 | 0.127457 | 0.051817 | 0.033949 | 0.033949 | 0.033949 | 0 | 0.014091 | 0.339856 | 6,235 | 145 | 122 | 43 | 0.801749 | 0.016199 | 0 | 0.05042 | 0 | 0.016807 | 0.119837 | 0.018449 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008403 | false | 0.016807 | 0.07563 | 0 | 0.084034 | 0.008403 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40be64921673daa0d8c5613e61a252c64c6e744e | 1,002 | py | Python | matches/tests/test_view_index.py | ToxaZ/nostradamus | adda478685d60df24da106c15d734d02f01ed339 | [
"WTFPL"
] | null | null | null | matches/tests/test_view_index.py | ToxaZ/nostradamus | adda478685d60df24da106c15d734d02f01ed339 | [
"WTFPL"
] | 4 | 2021-06-02T23:01:40.000Z | 2021-07-25T15:02:42.000Z | matches/tests/test_view_index.py | ToxaZ/nostradamus | adda478685d60df24da106c15d734d02f01ed339 | [
"WTFPL"
] | null | null | null | from django.urls import resolve, reverse
from django.test import TestCase
from matches.views import matches_index
from matches.models import Match
class AllMatchesTests(TestCase):
def setUp(self):
self.match = Match.objects.create(
match_id=1,
home_team='Netherlands',
g... | 33.4 | 77 | 0.675649 | 126 | 1,002 | 5.119048 | 0.436508 | 0.068217 | 0.055814 | 0.049612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021823 | 0.222555 | 1,002 | 29 | 78 | 34.551724 | 0.806162 | 0 | 0 | 0 | 0 | 0 | 0.101796 | 0.020958 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.166667 | false | 0 | 0.166667 | 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 |
40be6781a367fb391b4b06b4f46533ac8dd9e99d | 5,871 | py | Python | hmc/applications/banana/banana.py | JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo | 7ee1b530db0eb536666dbc872fbf8200e53dd49b | [
"MIT"
] | 1 | 2021-11-23T15:40:07.000Z | 2021-11-23T15:40:07.000Z | hmc/applications/banana/banana.py | JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo | 7ee1b530db0eb536666dbc872fbf8200e53dd49b | [
"MIT"
] | null | null | null | hmc/applications/banana/banana.py | JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo | 7ee1b530db0eb536666dbc872fbf8200e53dd49b | [
"MIT"
] | null | null | null | from typing import Callable, Tuple
import numpy as np
def posterior_factory(y: np.ndarray, sigma_y: float, sigma_theta: float) -> Tuple[Callable]:
"""The banana distribution is a distribution that exhibits a characteristic
banana-shaped ridge that resembles the posterior that can emerge from
models that ... | 35.36747 | 106 | 0.62698 | 769 | 5,871 | 4.685306 | 0.143043 | 0.036081 | 0.058285 | 0.082431 | 0.605051 | 0.545934 | 0.475715 | 0.410491 | 0.386067 | 0.386067 | 0 | 0.011497 | 0.288878 | 5,871 | 165 | 107 | 35.581818 | 0.851497 | 0.52342 | 0 | 0.229167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.041667 | 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 |
40c04be7b7e97b73786d758981e90307e422880f | 3,141 | py | Python | msp430.py | sprout42/binaryninja-msp430 | 9bc5a79b1c6232260c2abc3bb4334e5ca3478baf | [
"MIT"
] | null | null | null | msp430.py | sprout42/binaryninja-msp430 | 9bc5a79b1c6232260c2abc3bb4334e5ca3478baf | [
"MIT"
] | null | null | null | msp430.py | sprout42/binaryninja-msp430 | 9bc5a79b1c6232260c2abc3bb4334e5ca3478baf | [
"MIT"
] | null | null | null | from binaryninja import (
Architecture,
BranchType,
FlagRole,
InstructionInfo,
LowLevelILFlagCondition,
RegisterInfo,
)
from .instructions import TYPE3_INSTRUCTIONS, Instruction, Registers
from .lifter import Lifter
class MSP430(Architecture):
name = "msp430"
address_size = 2
defa... | 30.794118 | 86 | 0.617638 | 344 | 3,141 | 5.508721 | 0.369186 | 0.14248 | 0.041161 | 0.065963 | 0.14934 | 0.14934 | 0.14934 | 0.14934 | 0.14934 | 0.14934 | 0 | 0.007343 | 0.262974 | 3,141 | 101 | 87 | 31.09901 | 0.811231 | 0.063037 | 0 | 0.121622 | 0 | 0 | 0.027239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040541 | false | 0 | 0.040541 | 0 | 0.324324 | 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 |
40c32fb91113902b7c534e034974797ba31567b9 | 3,868 | py | Python | metric_calculation/faster_metrics.py | imatge-upc/saliency-2018-videosalgan | 5e4bf3892d55d8b9f37490e119113c2094be3bce | [
"MIT"
] | 10 | 2018-09-06T03:56:59.000Z | 2020-07-26T11:02:50.000Z | metric_calculation/faster_metrics.py | imatge-upc/saliency-2018-videosalgan | 5e4bf3892d55d8b9f37490e119113c2094be3bce | [
"MIT"
] | null | null | null | metric_calculation/faster_metrics.py | imatge-upc/saliency-2018-videosalgan | 5e4bf3892d55d8b9f37490e119113c2094be3bce | [
"MIT"
] | 3 | 2019-01-07T19:34:12.000Z | 2019-07-03T07:41:48.000Z | from salience_metrics import auc_judd, auc_shuff, cc, nss, similarity, normalize_map
"""
DHF1K paper: "we employ five classic met-rics, namely Normalized Scanpath Saliency (NSS), Sim-ilarity Metric (SIM), Linear Correlation Coefficient (CC),AUC-Judd (AUC-J), and shuffled AUC (s-AUC).""
"""
import cv2
import o... | 39.876289 | 207 | 0.668046 | 596 | 3,868 | 4.166107 | 0.291946 | 0.056383 | 0.048329 | 0.022151 | 0.300846 | 0.13975 | 0.020137 | 0.020137 | 0 | 0 | 0 | 0.012581 | 0.198552 | 3,868 | 96 | 208 | 40.291667 | 0.788387 | 0.144519 | 0 | 0.029412 | 0 | 0 | 0.120415 | 0.04122 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0.102941 | 0 | 0.132353 | 0.220588 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40c346f9a8e289985909d8a308d6ecd6f7e032ea | 1,061 | py | Python | tests/rules/test_pacman_invalid_option.py | RogueScholar/thefuck-termux | cc33d5fa0077b2b2323b8a62f3478ff8efef3fba | [
"MIT"
] | null | null | null | tests/rules/test_pacman_invalid_option.py | RogueScholar/thefuck-termux | cc33d5fa0077b2b2323b8a62f3478ff8efef3fba | [
"MIT"
] | null | null | null | tests/rules/test_pacman_invalid_option.py | RogueScholar/thefuck-termux | cc33d5fa0077b2b2323b8a62f3478ff8efef3fba | [
"MIT"
] | null | null | null | import pytest
from thefuck.rules.pacman_invalid_option import get_new_command
from thefuck.rules.pacman_invalid_option import match
from thefuck.types import Command
good_output = """community/shared_meataxe 1.0-3
A set of programs for working with matrix representations over finite fields
"""
bad_output = "erro... | 31.205882 | 80 | 0.748351 | 146 | 1,061 | 5.246575 | 0.328767 | 0.065274 | 0.104439 | 0.140992 | 0.586162 | 0.543081 | 0.464752 | 0.224543 | 0.224543 | 0.224543 | 0 | 0.003209 | 0.118756 | 1,061 | 33 | 81 | 32.151515 | 0.816043 | 0 | 0 | 0.090909 | 0 | 0 | 0.255419 | 0.02262 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.181818 | false | 0 | 0.181818 | 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 |
40c37866ffff9cefa653877b146a68fc96c42ddf | 11,329 | py | Python | dimod/reference/composites/scalecomposite.py | joseppinilla/dimod | e33ca5045e31ee2d9d58515f017fb6be5276cd8e | [
"Apache-2.0"
] | 1 | 2022-02-01T14:40:05.000Z | 2022-02-01T14:40:05.000Z | dimod/reference/composites/scalecomposite.py | xpin/dimod | 5e399317b0bfaae6ed20e22b9f2ef242f5fa5e6c | [
"Apache-2.0"
] | null | null | null | dimod/reference/composites/scalecomposite.py | xpin/dimod | 5e399317b0bfaae6ed20e22b9f2ef242f5fa5e6c | [
"Apache-2.0"
] | 1 | 2022-02-01T14:40:31.000Z | 2022-02-01T14:40:31.000Z | # Copyright 2019 D-Wave Systems Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 37.637874 | 101 | 0.603231 | 1,237 | 11,329 | 5.364592 | 0.199677 | 0.088758 | 0.048523 | 0.063291 | 0.405967 | 0.377637 | 0.333333 | 0.322483 | 0.305003 | 0.298975 | 0 | 0.004535 | 0.31874 | 11,329 | 300 | 102 | 37.763333 | 0.855273 | 0.346368 | 0 | 0.154412 | 0 | 0 | 0.04775 | 0.004644 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095588 | false | 0 | 0.073529 | 0.022059 | 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 |
40c6d377ec913783afe6edc196ecab48e0003b36 | 6,122 | py | Python | leasing/forms.py | suutari-ai/mvj | c39dbc692afcb3b26366783414c2d5a88a57b25a | [
"MIT"
] | 1 | 2021-01-12T08:14:10.000Z | 2021-01-12T08:14:10.000Z | leasing/forms.py | suutari-ai/mvj | c39dbc692afcb3b26366783414c2d5a88a57b25a | [
"MIT"
] | 249 | 2017-04-18T14:00:13.000Z | 2022-03-30T12:18:03.000Z | leasing/forms.py | suutari-ai/mvj | c39dbc692afcb3b26366783414c2d5a88a57b25a | [
"MIT"
] | 7 | 2017-04-18T08:43:54.000Z | 2021-07-28T07:29:30.000Z | from django import forms
from django.core import validators
from django.core.exceptions import ValidationError
from leasing.enums import (
InfillDevelopmentCompensationState,
LeaseState,
TenantContactType,
)
from leasing.models import Contact, DecisionMaker, District, LeaseType, Municipality
from leasing.v... | 36.658683 | 87 | 0.679353 | 654 | 6,122 | 6.229358 | 0.180428 | 0.13083 | 0.07462 | 0.078547 | 0.444281 | 0.41998 | 0.410898 | 0.380461 | 0.361316 | 0.324742 | 0 | 0.009992 | 0.215289 | 6,122 | 166 | 88 | 36.879518 | 0.838052 | 0.010127 | 0 | 0.253333 | 0 | 0 | 0.088808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0 | 0.04 | 0 | 0.38 | 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 |
40c7af774d2446afa75acb06651e91eb7c9447fd | 2,358 | py | Python | tests/client_asyncio_test.py | ninchat/ninchat-python | 7e5fcadb7389ca8c7722c32d69839289675d7baa | [
"BSD-2-Clause"
] | null | null | null | tests/client_asyncio_test.py | ninchat/ninchat-python | 7e5fcadb7389ca8c7722c32d69839289675d7baa | [
"BSD-2-Clause"
] | 4 | 2017-10-12T21:05:12.000Z | 2018-05-17T22:19:08.000Z | tests/client_asyncio_test.py | ninchat/ninchat-python | 7e5fcadb7389ca8c7722c32d69839289675d7baa | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2017, Somia Reality Oy
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions an... | 38.655738 | 133 | 0.725615 | 330 | 2,358 | 5.081818 | 0.493939 | 0.014311 | 0.025045 | 0.02743 | 0.135957 | 0.081097 | 0.081097 | 0.081097 | 0.081097 | 0.081097 | 0 | 0.003627 | 0.18151 | 2,358 | 60 | 134 | 39.3 | 0.865285 | 0.551315 | 0 | 0 | 0 | 0 | 0.205996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.041667 | 0.166667 | 0 | 0.291667 | 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 |
40ce727b047c06c9d0537e694ab36bc40c4d524b | 552 | py | Python | API_SIMIT_Mail/multapp/urls.py | profefonso/Services-SM | 98b9949a237121451a13fce5bc8f2945fa5a3cee | [
"MIT"
] | null | null | null | API_SIMIT_Mail/multapp/urls.py | profefonso/Services-SM | 98b9949a237121451a13fce5bc8f2945fa5a3cee | [
"MIT"
] | 16 | 2019-12-04T23:02:52.000Z | 2022-02-10T11:57:03.000Z | API_SIMIT_Mail/multapp/urls.py | profefonso/Services-SM | 98b9949a237121451a13fce5bc8f2945fa5a3cee | [
"MIT"
] | null | null | null | from django.urls import path
from django.contrib import admin
from rest_framework_swagger.views import get_swagger_view
from .views import notification
schema_view = get_swagger_view(title='MAIL API')
urlpatterns = [
path('front/betsy/irish/embargo/admin/', admin.site.urls),
# Swagger API
path(
... | 21.230769 | 62 | 0.681159 | 60 | 552 | 6.116667 | 0.45 | 0.054496 | 0.076294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221014 | 552 | 25 | 63 | 22.08 | 0.853488 | 0.043478 | 0 | 0.222222 | 0 | 0 | 0.114286 | 0.060952 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40d10458dee4b20d938050badf13c455b5c17307 | 1,097 | py | Python | tests/legacy_mocket.py | jepler/Adafruit_CircuitPython_Requests | 9a9527110726036bfad94b14166e62aa61c1276e | [
"MIT"
] | null | null | null | tests/legacy_mocket.py | jepler/Adafruit_CircuitPython_Requests | 9a9527110726036bfad94b14166e62aa61c1276e | [
"MIT"
] | null | null | null | tests/legacy_mocket.py | jepler/Adafruit_CircuitPython_Requests | 9a9527110726036bfad94b14166e62aa61c1276e | [
"MIT"
] | null | null | null | from unittest import mock
SOCK_STREAM = 0
set_interface = mock.Mock()
interface = mock.MagicMock()
getaddrinfo = mock.Mock()
socket = mock.Mock()
class Mocket:
def __init__(self, response):
self.settimeout = mock.Mock()
self.close = mock.Mock()
self.connect = mock.Mock()
self.sen... | 26.756098 | 61 | 0.610757 | 139 | 1,097 | 4.589928 | 0.330935 | 0.112853 | 0.075235 | 0.08464 | 0.247649 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005083 | 0.282589 | 1,097 | 40 | 62 | 27.425 | 0.805591 | 0 | 0 | 0.121212 | 0 | 0 | 0.013674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.030303 | 0 | 0.272727 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40d10aff20e4192696c984a95bd52419f7e1299a | 2,228 | py | Python | run.py | romeroyakovlev/ii | ae9485df2c3565871994c146001a72db511f3700 | [
"CC0-1.0"
] | 1 | 2017-09-29T09:35:04.000Z | 2017-09-29T09:35:04.000Z | run.py | romeroyakovlev/ii | ae9485df2c3565871994c146001a72db511f3700 | [
"CC0-1.0"
] | null | null | null | run.py | romeroyakovlev/ii | ae9485df2c3565871994c146001a72db511f3700 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
import api,points
from api.bottle import *
II_PATH=os.path.dirname(__file__) or '.'
TEMPLATE_PATH.insert(0,II_PATH)
@route('/list.txt')
def list_txt():
response.set_header ('content-type','text/plain; charset=utf-8')
lst = api.load_echo(False)[1:]
if request.query.n:
retur... | 29.706667 | 84 | 0.62702 | 355 | 2,228 | 3.825352 | 0.309859 | 0.020619 | 0.07511 | 0.106038 | 0.240059 | 0.240059 | 0.240059 | 0.240059 | 0.207658 | 0.207658 | 0 | 0.020675 | 0.175045 | 2,228 | 74 | 85 | 30.108108 | 0.718172 | 0.026481 | 0 | 0.135593 | 0 | 0 | 0.215605 | 0.012927 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152542 | false | 0 | 0.050847 | 0.033898 | 0.40678 | 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 |
40d1ab4064e3ebc59780f56e6705f5033ef843d8 | 2,080 | py | Python | learning_labs/yang/01-yang/add_loopback_ip.py | hpreston/sbx_nxos | 8952d369b80810d22e0c86485b667cde1519272d | [
"MIT"
] | 33 | 2017-05-19T19:47:33.000Z | 2021-05-16T07:33:39.000Z | learning_labs/yang/01-yang/add_loopback_ip.py | AJNOURI/sbx_nxos | 449ee3c1c88cbd831fd3f90490fc28dd7e02d448 | [
"MIT"
] | 13 | 2017-08-25T16:48:16.000Z | 2021-09-23T23:21:58.000Z | learning_labs/yang/01-yang/add_loopback_ip.py | vbohinc/sbx_nxos | 744c34fffd32b1c973ac791123afd6cc811e0d8b | [
"MIT"
] | 20 | 2017-06-19T09:32:20.000Z | 2022-02-20T05:33:14.000Z | #!/usr/bin/env python
from ncclient import manager
import sys
from lxml import etree
# Set the device variables
DEVICES = ['172.16.30.101', '172.16.30.102']
USER = 'admin'
PASS = 'admin'
PORT = 830
LOOPBACK_IP = {
'172.16.30.101': '10.99.99.1/24',
'172.16.30.102': '10.99.99.2/24'
}
DEVICE_NAMES = {'172.16.3... | 30.144928 | 117 | 0.479327 | 231 | 2,080 | 4.199134 | 0.445887 | 0.030928 | 0.043299 | 0.030928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076019 | 0.386538 | 2,080 | 68 | 118 | 30.588235 | 0.684169 | 0.1 | 0 | 0 | 0 | 0.02 | 0.508658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0.04 | 0.06 | 0 | 0.08 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40d1e35fdcc4995890f4efabdc25434ef9f00eb5 | 5,704 | py | Python | Plotly_Dash/spacex_dash_app.py | AtypicalLogic/Coursera-IBM_DS-Applied_Data_Science_Capstone | 2659fcae1a8d5fec13ab632aee1492a29e9585ee | [
"MIT"
] | null | null | null | Plotly_Dash/spacex_dash_app.py | AtypicalLogic/Coursera-IBM_DS-Applied_Data_Science_Capstone | 2659fcae1a8d5fec13ab632aee1492a29e9585ee | [
"MIT"
] | null | null | null | Plotly_Dash/spacex_dash_app.py | AtypicalLogic/Coursera-IBM_DS-Applied_Data_Science_Capstone | 2659fcae1a8d5fec13ab632aee1492a29e9585ee | [
"MIT"
] | null | null | null | # To run this file, Win Start > cmd > file dir > run: python spacex_dash_app.py
# Import required libraries
import pandas as pd
import dash
from dash import html
from dash import dcc
from dash.dependencies import Input, Output
import plotly.express as px
# Read the airline data into pandas dataframe
spacex_df = pd.rea... | 52.330275 | 223 | 0.58082 | 696 | 5,704 | 4.630747 | 0.287356 | 0.049643 | 0.036302 | 0.047161 | 0.409246 | 0.338815 | 0.230841 | 0.188644 | 0.166925 | 0.137139 | 0 | 0.015782 | 0.30014 | 5,704 | 108 | 224 | 52.814815 | 0.791583 | 0.274194 | 0 | 0.15 | 0 | 0 | 0.200537 | 0.019541 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.1 | 0 | 0.183333 | 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 |
40d2f193783c709a9e4416360cda1c6098d93420 | 1,430 | py | Python | configs/mnist_paper_residual_cnn_gp.py | rhaps0dy/cnn-gp | 5726bd10debbddcffb3dc1f5c671f5dceedf007d | [
"BSD-2-Clause"
] | 23 | 2019-06-21T15:03:45.000Z | 2022-01-24T11:34:16.000Z | configs/mnist_paper_residual_cnn_gp.py | rhaps0dy/cnn-gp | 5726bd10debbddcffb3dc1f5c671f5dceedf007d | [
"BSD-2-Clause"
] | null | null | null | configs/mnist_paper_residual_cnn_gp.py | rhaps0dy/cnn-gp | 5726bd10debbddcffb3dc1f5c671f5dceedf007d | [
"BSD-2-Clause"
] | 10 | 2019-06-21T14:52:55.000Z | 2021-12-01T19:05:38.000Z | """
The best randomly-searched ResNet reported in the paper.
In the original paper there is a bug. This network sums together layers after
the ReLU nonlinearity, which are not Gaussian, and also do not have mean 0. As
a result, the overall network does not converge to a Gaussian process. The
defined kernel is still va... | 31.086957 | 79 | 0.702098 | 220 | 1,430 | 4.431818 | 0.504545 | 0.050256 | 0.049231 | 0.055385 | 0.135385 | 0.135385 | 0.135385 | 0.135385 | 0.135385 | 0.135385 | 0 | 0.05277 | 0.204895 | 1,430 | 45 | 80 | 31.777778 | 0.804749 | 0.403497 | 0 | 0.25 | 0 | 0 | 0.022485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 |
40d5469fd32315fb7f4708a40672a155712e5afb | 22,427 | py | Python | src/thespian/tweaks.py | mtttech/dndpersonae | c4fa129d1e940c9f9a5e29d703e3988b45d90356 | [
"MIT"
] | 1 | 2022-03-28T16:10:15.000Z | 2022-03-28T16:10:15.000Z | src/thespian/tweaks.py | mtttech/dndpersonae | c4fa129d1e940c9f9a5e29d703e3988b45d90356 | [
"MIT"
] | null | null | null | src/thespian/tweaks.py | mtttech/dndpersonae | c4fa129d1e940c9f9a5e29d703e3988b45d90356 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
import logging
from attributes import get_ability_modifier
from sourcetree.utils import (
get_feats_list,
get_feat_perks,
get_feat_proficiencies,
get_feat_requirements,
)
from stdio import prompt
log = logging.getLogger("thespian.tweaks")
class AbilityScoreImproveme... | 40.481949 | 101 | 0.514112 | 2,171 | 22,427 | 5.15707 | 0.15661 | 0.038317 | 0.010004 | 0.010807 | 0.198106 | 0.158092 | 0.115577 | 0.08503 | 0.045731 | 0.030904 | 0 | 0.004164 | 0.411022 | 22,427 | 553 | 102 | 40.555154 | 0.84344 | 0.156864 | 0 | 0.239075 | 0 | 0 | 0.123938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030848 | false | 0 | 0.012853 | 0 | 0.143959 | 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 |
40d5a5d08da3928cd30de9755f828a4c98f498bf | 4,135 | py | Python | atomic1D/ImpuritySpecies.py | TBody/atomic1D | fcab88f3b303468f23ac75b847c76244593f4b7f | [
"MIT"
] | 1 | 2019-05-18T22:32:21.000Z | 2019-05-18T22:32:21.000Z | atomic1D/ImpuritySpecies.py | TBody/atomic1D | fcab88f3b303468f23ac75b847c76244593f4b7f | [
"MIT"
] | null | null | null | atomic1D/ImpuritySpecies.py | TBody/atomic1D | fcab88f3b303468f23ac75b847c76244593f4b7f | [
"MIT"
] | null | null | null | class ImpuritySpecies(object):
# For storing OpenADAS data related to a particular impurity species
# Loosely based on cfe316/atomic/atomic_data.py/AtomicData class (although with much less code since
# all of the F77 importing is done in the seperate <<make json_update>> code since BOUT++ protocol
# requires fort... | 47.528736 | 163 | 0.680774 | 525 | 4,135 | 5.095238 | 0.299048 | 0.043738 | 0.058318 | 0.038131 | 0.090467 | 0.069533 | 0.051589 | 0.034393 | 0.034393 | 0 | 0 | 0.010207 | 0.194438 | 4,135 | 86 | 164 | 48.081395 | 0.792855 | 0.386941 | 0 | 0.081633 | 0 | 0 | 0.177804 | 0.02148 | 0 | 0 | 0 | 0 | 0.020408 | 1 | 0.081633 | false | 0 | 0.061224 | 0 | 0.183673 | 0.22449 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40d66ffe931947e9a30f4f5ac4f0646b982e924f | 7,906 | py | Python | networking_calico/plugins/ml2/drivers/calico/policy.py | manojcode/networking-calico | db709fb27b492d3be3c094fa43e8c696962369b7 | [
"Apache-2.0"
] | null | null | null | networking_calico/plugins/ml2/drivers/calico/policy.py | manojcode/networking-calico | db709fb27b492d3be3c094fa43e8c696962369b7 | [
"Apache-2.0"
] | null | null | null | networking_calico/plugins/ml2/drivers/calico/policy.py | manojcode/networking-calico | db709fb27b492d3be3c094fa43e8c696962369b7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2018 Tigera, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | 39.728643 | 79 | 0.611055 | 1,001 | 7,906 | 4.605395 | 0.24975 | 0.045119 | 0.02538 | 0.020824 | 0.248807 | 0.158568 | 0.085466 | 0.085466 | 0.055965 | 0.055965 | 0 | 0.006087 | 0.293448 | 7,906 | 198 | 80 | 39.929293 | 0.819191 | 0.245383 | 0 | 0.207692 | 0 | 0 | 0.120027 | 0.011342 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084615 | false | 0.015385 | 0.030769 | 0.030769 | 0.184615 | 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 |
40d757b3788e8715de2cff8adf8b1027f7b43c6d | 4,359 | py | Python | 25/main.py | gosha20777/mipt-bioinfo-2021 | ed14975e9f597e7b2427bc589f12ac08d451c509 | [
"MIT"
] | null | null | null | 25/main.py | gosha20777/mipt-bioinfo-2021 | ed14975e9f597e7b2427bc589f12ac08d451c509 | [
"MIT"
] | null | null | null | 25/main.py | gosha20777/mipt-bioinfo-2021 | ed14975e9f597e7b2427bc589f12ac08d451c509 | [
"MIT"
] | null | null | null | def global_alignment(seq1, seq2, score_matrix, penalty):
len1, len2 = len(seq1), len(seq2)
s = [[0] * (len2 + 1) for i in range(len1 + 1)]
backtrack = [[0] * (len2 + 1) for i in range(len1 + 1)]
for i in range(1, len1 + 1):
s[i][0] = - i * penalty
for j in range(1, len2 + 1):
s[0][j]... | 39.990826 | 115 | 0.532003 | 685 | 4,359 | 3.256934 | 0.128467 | 0.073958 | 0.029583 | 0.039444 | 0.23532 | 0.155087 | 0.127297 | 0.084267 | 0.053788 | 0 | 0 | 0.046602 | 0.291122 | 4,359 | 108 | 116 | 40.361111 | 0.675405 | 0 | 0 | 0.132653 | 0 | 0 | 0.008718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05102 | false | 0 | 0 | 0 | 0.132653 | 0.010204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40db83a1176151c4bc0bdff2477e10a8b1ab20a4 | 12,376 | py | Python | examples/applications/plot_impact_imbalanced_classes.py | cdchushig/imbalanced-learn | f02e7c7c2c021c85823cace405ca2c58ad4ff147 | [
"MIT"
] | 5,678 | 2016-07-19T10:22:35.000Z | 2022-03-31T22:46:41.000Z | examples/applications/plot_impact_imbalanced_classes.py | cdchushig/imbalanced-learn | f02e7c7c2c021c85823cace405ca2c58ad4ff147 | [
"MIT"
] | 759 | 2016-07-19T05:41:59.000Z | 2022-03-28T11:00:10.000Z | examples/applications/plot_impact_imbalanced_classes.py | cdchushig/imbalanced-learn | f02e7c7c2c021c85823cace405ca2c58ad4ff147 | [
"MIT"
] | 1,165 | 2016-07-19T22:56:42.000Z | 2022-03-31T22:46:45.000Z | """
==========================================================
Fitting model on imbalanced datasets and how to fight bias
==========================================================
This example illustrates the problem induced by learning on datasets having
imbalanced classes. Subsequently, we compare different approac... | 33.906849 | 87 | 0.747253 | 1,629 | 12,376 | 5.527317 | 0.220994 | 0.026655 | 0.026655 | 0.04398 | 0.387828 | 0.346513 | 0.285207 | 0.285207 | 0.26255 | 0.26255 | 0 | 0.004165 | 0.126939 | 12,376 | 364 | 88 | 34 | 0.829153 | 0.461619 | 0 | 0.428571 | 0 | 0 | 0.179822 | 0.043765 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136054 | 0 | 0.136054 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40dd78243c51556a2be73588a2b4ac205cbb6f28 | 570 | py | Python | 2021/02/part2.py | FranciscoAT/advent-of-code | 69f20696e4c59ff6dfa010b22dd3593ea3d12208 | [
"MIT"
] | null | null | null | 2021/02/part2.py | FranciscoAT/advent-of-code | 69f20696e4c59ff6dfa010b22dd3593ea3d12208 | [
"MIT"
] | null | null | null | 2021/02/part2.py | FranciscoAT/advent-of-code | 69f20696e4c59ff6dfa010b22dd3593ea3d12208 | [
"MIT"
] | null | null | null | def main(file: str) -> None:
depth = 0
distance = 0
aim = 0
with open(f"{file}.in") as f:
for line in f.readlines():
line = line.rstrip().split(" ")
command = line[0]
unit = int(line[1])
if command == "forward":
distance += unit
... | 23.75 | 43 | 0.436842 | 62 | 570 | 3.887097 | 0.516129 | 0.087137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.421053 | 570 | 23 | 44 | 24.782609 | 0.715152 | 0 | 0 | 0 | 0 | 0 | 0.114035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.05 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40dd84dd99f72ec266d9a45433b99fd282b94576 | 6,068 | py | Python | tf_seal/python/tensor.py | karlhigley/tf-seal | 74a38e3ff71d29e862881d56bca84aaa23efd710 | [
"Apache-2.0"
] | 94 | 2019-08-06T16:03:27.000Z | 2022-03-24T18:19:07.000Z | tf_seal/python/tensor.py | karlhigley/tf-seal | 74a38e3ff71d29e862881d56bca84aaa23efd710 | [
"Apache-2.0"
] | 23 | 2019-08-19T16:22:12.000Z | 2022-03-31T15:09:58.000Z | tf_seal/python/tensor.py | karlhigley/tf-seal | 74a38e3ff71d29e862881d56bca84aaa23efd710 | [
"Apache-2.0"
] | 17 | 2019-08-08T22:45:46.000Z | 2022-03-22T08:05:16.000Z | import numpy as np
import tensorflow as tf
import tf_seal.python.ops.seal_ops as ops
from tensorflow.python.keras.utils import tf_utils
from tensorflow.python.client import session as tf_session
from tensorflow.python.framework import ops as tf_ops
class Tensor(object):
def __init__(self, value, secret_key, publ... | 30.492462 | 102 | 0.742914 | 909 | 6,068 | 4.716172 | 0.179318 | 0.055983 | 0.041987 | 0.053184 | 0.45603 | 0.394215 | 0.362025 | 0.355493 | 0.31024 | 0.252391 | 0 | 0.006064 | 0.157548 | 6,068 | 198 | 103 | 30.646465 | 0.832551 | 0.143375 | 0 | 0.169492 | 0 | 0 | 0.061654 | 0 | 0 | 0 | 0 | 0.005051 | 0.059322 | 1 | 0.186441 | false | 0 | 0.050847 | 0.076271 | 0.466102 | 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 |
40de3e3ad949140a43a1a19f490e5fc039aedb2f | 25,087 | py | Python | program/admin.py | Dumbaz/autoradio-pv | 8aae293e58b2e79a05956c535bb109f74edc89c3 | [
"BSD-3-Clause"
] | null | null | null | program/admin.py | Dumbaz/autoradio-pv | 8aae293e58b2e79a05956c535bb109f74edc89c3 | [
"BSD-3-Clause"
] | null | null | null | program/admin.py | Dumbaz/autoradio-pv | 8aae293e58b2e79a05956c535bb109f74edc89c3 | [
"BSD-3-Clause"
] | null | null | null | from django.core.exceptions import ObjectDoesNotExist
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from django.shortcuts import render
from django.conf import settings
from .models import Language, Type, MusicFocus, Category, Topic, RTRCategory, Host, Note, RRule, Schedule, ... | 42.305228 | 173 | 0.585363 | 2,796 | 25,087 | 5.101216 | 0.153433 | 0.020823 | 0.026502 | 0.016687 | 0.280726 | 0.240623 | 0.197013 | 0.154876 | 0.142046 | 0.105868 | 0 | 0.004864 | 0.311636 | 25,087 | 593 | 174 | 42.305228 | 0.821067 | 0.174353 | 0 | 0.177465 | 0 | 0 | 0.109124 | 0.012318 | 0 | 0 | 0 | 0.001686 | 0 | 1 | 0.04507 | false | 0.008451 | 0.022535 | 0.011268 | 0.329577 | 0.011268 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40de4834e40d2116182061d040e90ff70baa0986 | 2,177 | py | Python | test/logic/test_block_features.py | Sam-prog-sudo/Sam.github.io | 75f41ec26b4b3aafcb117e467e38fca1e69f5c87 | [
"MIT"
] | 3 | 2020-07-06T21:03:03.000Z | 2020-07-18T07:02:59.000Z | test/logic/test_block_features.py | Sam-prog-sudo/Sam.github.io | 75f41ec26b4b3aafcb117e467e38fca1e69f5c87 | [
"MIT"
] | null | null | null | test/logic/test_block_features.py | Sam-prog-sudo/Sam.github.io | 75f41ec26b4b3aafcb117e467e38fca1e69f5c87 | [
"MIT"
] | 4 | 2020-07-17T11:16:05.000Z | 2020-10-01T08:57:21.000Z | import hashlib
import json
from time import time
import pytest
from app.chaine.blockchain import Blockchain
@pytest.fixture
def first_block():
return {
'index': 1,
'timestamp': time(),
'transactions': [],
'proof': 1989,
'previous_hash': 1,
}
def test_initialization_... | 23.408602 | 76 | 0.622876 | 260 | 2,177 | 4.95 | 0.234615 | 0.083916 | 0.059829 | 0.043512 | 0.074592 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019289 | 0.237942 | 2,177 | 92 | 77 | 23.663043 | 0.75648 | 0 | 0 | 0.186667 | 0 | 0 | 0.155719 | 0 | 0 | 0 | 0 | 0 | 0.173333 | 1 | 0.093333 | false | 0 | 0.066667 | 0.013333 | 0.2 | 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 |
40e07b3163c543bc0b7215aac128eae673625978 | 1,721 | py | Python | core/rest/wscdn.py | cybert79/Osmedeus | 684d853144e2f85343c3367440120142455f296b | [
"MIT"
] | 1 | 2019-06-13T09:14:11.000Z | 2019-06-13T09:14:11.000Z | core/rest/wscdn.py | KbaHaxor/Osmedeus | 0894d52ad5949e9151b0fd05d9746ecafc8057b5 | [
"MIT"
] | null | null | null | core/rest/wscdn.py | KbaHaxor/Osmedeus | 0894d52ad5949e9151b0fd05d9746ecafc8057b5 | [
"MIT"
] | 2 | 2020-01-09T17:48:23.000Z | 2020-01-09T17:48:24.000Z | import os
import glob
import json
from pathlib import Path
from flask_restful import Api, Resource, reqparse
from flask_jwt_extended import jwt_required
from flask import Flask, request, escape, make_response, send_from_directory
import utils
# incase you can't install ansi2html it's won't break the api
try:
from ... | 30.732143 | 91 | 0.654852 | 217 | 1,721 | 4.986175 | 0.396313 | 0.064695 | 0.048059 | 0.085028 | 0.238447 | 0.147874 | 0.147874 | 0.09427 | 0.09427 | 0 | 0 | 0.008668 | 0.262638 | 1,721 | 55 | 92 | 31.290909 | 0.843972 | 0.077862 | 0 | 0 | 0 | 0 | 0.052191 | 0.016108 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0.028571 | 0.257143 | 0 | 0.485714 | 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 |
40e08ff17bc877d0938f412ad22362a39a6d45db | 13,534 | py | Python | custom_components/hahm/services.py | noxhirsch/custom_homematic | afc03c813f44d342f75477e6fcce85fc78515258 | [
"MIT"
] | null | null | null | custom_components/hahm/services.py | noxhirsch/custom_homematic | afc03c813f44d342f75477e6fcce85fc78515258 | [
"MIT"
] | null | null | null | custom_components/hahm/services.py | noxhirsch/custom_homematic | afc03c813f44d342f75477e6fcce85fc78515258 | [
"MIT"
] | null | null | null | """Module with hahomematic services."""
from __future__ import annotations
from datetime import datetime
import logging
from hahomematic.const import (
ATTR_ADDRESS,
ATTR_INTERFACE_ID,
ATTR_NAME,
ATTR_PARAMETER,
ATTR_VALUE,
HmPlatform,
)
from hahomematic.device import HmDevice
from hahomematic... | 32.455635 | 85 | 0.691813 | 1,689 | 13,534 | 5.207815 | 0.108348 | 0.048772 | 0.022169 | 0.026376 | 0.562983 | 0.483174 | 0.417349 | 0.387221 | 0.332879 | 0.27342 | 0 | 0.002468 | 0.221664 | 13,534 | 416 | 86 | 32.533654 | 0.832542 | 0.044554 | 0 | 0.362805 | 0 | 0 | 0.026639 | 0.006018 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021341 | false | 0 | 0.051829 | 0 | 0.131098 | 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 |
40e2d06c8105c95bcdc7c6b4d3475a48fa240fbc | 6,284 | py | Python | scripts/ape_protocol_deploy.py | coordinape/coordinape-protocol | 8c90de1b1fbc19bab05e1c5848813d022492753a | [
"MIT"
] | 22 | 2021-10-17T23:19:38.000Z | 2022-03-24T05:13:56.000Z | scripts/ape_protocol_deploy.py | coordinape/coordinape-protocol | 8c90de1b1fbc19bab05e1c5848813d022492753a | [
"MIT"
] | 12 | 2021-09-29T16:27:03.000Z | 2022-03-30T17:54:08.000Z | scripts/ape_protocol_deploy.py | coordinape/coordinape-protocol | 8c90de1b1fbc19bab05e1c5848813d022492753a | [
"MIT"
] | 4 | 2021-10-14T19:08:36.000Z | 2022-03-29T16:42:21.000Z | from brownie import accounts, Wei, chain, ApeToken, ApeVaultFactory, ApeDistributor, ApeRegistry, ApeRouter, FeeRegistry, MockRegistry, MockVaultFactory, MockToken, MockVault
def deploy_token():
funds = accounts.load('moist', '\0')
user = accounts.load('ape_deployer', '\0')
multi_sig = '0x15B513F658f7390D8720dCE32... | 56.107143 | 174 | 0.732336 | 915 | 6,284 | 4.714754 | 0.118033 | 0.063978 | 0.045897 | 0.06815 | 0.607325 | 0.524108 | 0.513213 | 0.391748 | 0.321975 | 0.29694 | 0 | 0.022526 | 0.102801 | 6,284 | 111 | 175 | 56.612613 | 0.742639 | 0.14895 | 0 | 0.073171 | 0 | 0 | 0.202589 | 0.053273 | 0 | 0 | 0.015757 | 0 | 0 | 1 | 0.060976 | false | 0 | 0.012195 | 0 | 0.073171 | 0.170732 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40e730ac41b56af4d3f51d091a10e9b22fdce408 | 2,200 | py | Python | src/programy/braintree.py | motazsaad/fit-bot-fb-clt | 580477aa1ec91855b621d9ae276f2705962f6a87 | [
"MIT"
] | null | null | null | src/programy/braintree.py | motazsaad/fit-bot-fb-clt | 580477aa1ec91855b621d9ae276f2705962f6a87 | [
"MIT"
] | null | null | null | src/programy/braintree.py | motazsaad/fit-bot-fb-clt | 580477aa1ec91855b621d9ae276f2705962f6a87 | [
"MIT"
] | 4 | 2019-04-01T15:42:23.000Z | 2020-11-05T08:14:27.000Z | """
Copyright (c) 2016-2019 Keith Sterling http://www.keithsterling.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, m... | 55 | 120 | 0.782727 | 292 | 2,200 | 5.770548 | 0.486301 | 0.052226 | 0.01543 | 0.030861 | 0.061721 | 0.061721 | 0.061721 | 0.061721 | 0 | 0 | 0 | 0.004345 | 0.163182 | 2,200 | 39 | 121 | 56.410256 | 0.910918 | 0.495909 | 0 | 0 | 0 | 0 | 0.036331 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.1875 | 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 |
40ea3c645ea543c1874475b7543e5383d030798e | 6,095 | py | Python | reana_commons/publisher.py | marcdiazsan/reana-commons | 6e3a64db6798ab86aa521da02fa889459a382083 | [
"MIT"
] | null | null | null | reana_commons/publisher.py | marcdiazsan/reana-commons | 6e3a64db6798ab86aa521da02fa889459a382083 | [
"MIT"
] | null | null | null | reana_commons/publisher.py | marcdiazsan/reana-commons | 6e3a64db6798ab86aa521da02fa889459a382083 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# This file is part of REANA.
# Copyright (C) 2018 CERN.
#
# REANA is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""REANA-Commons module to manage AMQP connections on REANA."""
import json
import logging
fr... | 34.828571 | 85 | 0.620673 | 661 | 6,095 | 5.544629 | 0.260212 | 0.038199 | 0.024557 | 0.027285 | 0.107231 | 0.097408 | 0.024011 | 0.024011 | 0 | 0 | 0 | 0.001623 | 0.292207 | 6,095 | 174 | 86 | 35.028736 | 0.847937 | 0.340935 | 0 | 0.127451 | 0 | 0 | 0.089976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.039216 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40ead0d637c17ba1e4a9c64f3e4137d28ac75a83 | 13,825 | py | Python | tests/components/template/test_select.py | JeffersonBledsoe/core | 3825f80a2dd087ae70654079cd9f3071289b8423 | [
"Apache-2.0"
] | 5 | 2017-01-26T16:33:09.000Z | 2018-07-20T13:50:47.000Z | tests/components/template/test_select.py | JeffersonBledsoe/core | 3825f80a2dd087ae70654079cd9f3071289b8423 | [
"Apache-2.0"
] | 87 | 2020-07-06T22:22:54.000Z | 2022-03-31T06:01:46.000Z | tests/components/template/test_select.py | yuvalkob/home-assistant | 6a5895222ec908acad3cf478897ca2455f88f730 | [
"Apache-2.0"
] | 3 | 2021-05-31T15:32:08.000Z | 2021-08-10T22:08:42.000Z | """The tests for the Template select platform."""
import pytest
from homeassistant import setup
from homeassistant.components.input_select import (
ATTR_OPTION as INPUT_SELECT_ATTR_OPTION,
ATTR_OPTIONS as INPUT_SELECT_ATTR_OPTIONS,
DOMAIN as INPUT_SELECT_DOMAIN,
SERVICE_SELECT_OPTION as INPUT_SELECT_SE... | 32.529412 | 132 | 0.502351 | 1,291 | 13,825 | 5.051123 | 0.099923 | 0.08603 | 0.057967 | 0.058273 | 0.699739 | 0.670909 | 0.633492 | 0.631805 | 0.630425 | 0.599755 | 0 | 0.001504 | 0.374828 | 13,825 | 424 | 133 | 32.606132 | 0.752979 | 0.01302 | 0 | 0.558333 | 0 | 0.005556 | 0.171792 | 0.036614 | 0 | 0 | 0 | 0 | 0.122222 | 1 | 0.005556 | false | 0 | 0.022222 | 0 | 0.030556 | 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 |
40eb7e71257ab84eead04db6c8b696939ea7b84e | 6,729 | py | Python | cmsfix/lib/macro.py | trmznt/cmsfix | 18d0be238f9247421db9603f1946478452336afb | [
"BSD-2-Clause"
] | null | null | null | cmsfix/lib/macro.py | trmznt/cmsfix | 18d0be238f9247421db9603f1946478452336afb | [
"BSD-2-Clause"
] | null | null | null | cmsfix/lib/macro.py | trmznt/cmsfix | 18d0be238f9247421db9603f1946478452336afb | [
"BSD-2-Clause"
] | null | null | null |
from rhombus.lib.utils import get_dbhandler
from rhombus.lib.tags import *
from cmsfix.models.node import Node
import re
# the pattern below is either
# ///123
# <<MacroName>>
# [[MacroName]]
pattern = re.compile('///(\d+)|///\{([\w-]+)\}|\<\;\<\;(.+)\>\;\>\;|\[\[(.+)\]\]')
# syntax for Macro is:
# [[MacroN... | 24.558394 | 96 | 0.541537 | 815 | 6,729 | 4.35092 | 0.228221 | 0.018049 | 0.029611 | 0.038917 | 0.191765 | 0.169205 | 0.116751 | 0.01692 | 0 | 0 | 0 | 0.006966 | 0.317283 | 6,729 | 273 | 97 | 24.648352 | 0.764911 | 0.159013 | 0 | 0.277419 | 0 | 0 | 0.080527 | 0.012079 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058065 | false | 0.012903 | 0.025806 | 0.006452 | 0.180645 | 0.006452 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40ed1faf7a529d9d2608043132523587818592bc | 2,629 | py | Python | xastropy/sdss/qso.py | bpholden/xastropy | 66aff0995a84c6829da65996d2379ba4c946dabe | [
"BSD-3-Clause"
] | 3 | 2015-08-23T00:32:58.000Z | 2020-12-31T02:37:52.000Z | xastropy/sdss/qso.py | Kristall-WangShiwei/xastropy | 723fe56cb48d5a5c4cdded839082ee12ef8c6732 | [
"BSD-3-Clause"
] | 104 | 2015-07-17T18:31:54.000Z | 2018-06-29T17:04:09.000Z | xastropy/sdss/qso.py | Kristall-WangShiwei/xastropy | 723fe56cb48d5a5c4cdded839082ee12ef8c6732 | [
"BSD-3-Clause"
] | 16 | 2015-07-17T15:50:37.000Z | 2019-04-21T03:42:47.000Z | '''
#;+
#; NAME:
#; sdss.qso
#; Version 1.1
#;
#; PURPOSE:
#; Class for SDSS QSO
#; 2015 Written by JXP
#;-
#;------------------------------------------------------------------------------
'''
# Import libraries
import numpy as np
import os
from astropy.table import QTable, Column
from astropy.coordinates i... | 30.218391 | 80 | 0.573602 | 319 | 2,629 | 4.626959 | 0.388715 | 0.089431 | 0.04336 | 0.054201 | 0.116531 | 0.116531 | 0.094173 | 0.094173 | 0.058266 | 0 | 0 | 0.01298 | 0.267402 | 2,629 | 86 | 81 | 30.569767 | 0.753375 | 0.272727 | 0 | 0 | 0 | 0 | 0.084615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.225 | 0 | 0.375 | 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 |
40f05be8c6d026f9f65c428c8494f859b10c0a2f | 6,848 | py | Python | lab4_runTFCurveFitting.py | pskdev/EveryBodyTensorFlow | 5166a366fca850a72de66e5ac48c421d4bb766f4 | [
"Unlicense"
] | 1 | 2018-04-15T07:36:22.000Z | 2018-04-15T07:36:22.000Z | lab4_runTFCurveFitting.py | pskdev/EveryBodyTensorFlow | 5166a366fca850a72de66e5ac48c421d4bb766f4 | [
"Unlicense"
] | null | null | null | lab4_runTFCurveFitting.py | pskdev/EveryBodyTensorFlow | 5166a366fca850a72de66e5ac48c421d4bb766f4 | [
"Unlicense"
] | null | null | null | #-*- coding: utf-8 -*-
#! /usr/bin/env python
'''
#------------------------------------------------------------
filename: lab4_runTFCurveFitting.py
This is an example for linear regression in tensorflow
Which is a curve fitting example
written by Jaewook Kang @ Aug 2017
#---------------------------------------... | 32.923077 | 131 | 0.631425 | 954 | 6,848 | 4.348008 | 0.269392 | 0.02893 | 0.017358 | 0.008679 | 0.135969 | 0.101254 | 0.047734 | 0.018322 | 0 | 0 | 0 | 0.017914 | 0.176694 | 6,848 | 207 | 132 | 33.082126 | 0.717808 | 0.382739 | 0 | 0.021053 | 0 | 0 | 0.07435 | 0.010587 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.126316 | 0 | 0.126316 | 0.073684 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40f148fc7af6cb3cf9e625820f51746d54b4fd9d | 1,168 | py | Python | script/calculate_correct_percentage_kingdom.py | xie186/dragmap-meth | 6e9ccfd281bd317a56b8c4e87b5386978eb8de45 | [
"MIT"
] | 4 | 2021-12-18T20:33:16.000Z | 2022-01-03T02:54:13.000Z | script/calculate_correct_percentage_kingdom.py | xie186/dragmap-meth | 6e9ccfd281bd317a56b8c4e87b5386978eb8de45 | [
"MIT"
] | null | null | null | script/calculate_correct_percentage_kingdom.py | xie186/dragmap-meth | 6e9ccfd281bd317a56b8c4e87b5386978eb8de45 | [
"MIT"
] | null | null | null | from Bio import TogoWS
import argparse
import sys
import os
def summary(options):
num_reads = 0
num_correct = 0
with open(options.input) as file_input:
for line in file_input:
line = line.rstrip()
ele = line.split("\t")
if "FAILED" in line:
contin... | 29.948718 | 77 | 0.5625 | 136 | 1,168 | 4.676471 | 0.477941 | 0.050314 | 0.028302 | 0.034591 | 0.122642 | 0.122642 | 0.122642 | 0.122642 | 0 | 0 | 0 | 0.013889 | 0.321918 | 1,168 | 38 | 78 | 30.736842 | 0.789141 | 0.108733 | 0 | 0.137931 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.137931 | 0 | 0.172414 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40f2de4fdec91fb98024a2bfc2b3ed4d725f2c72 | 5,108 | py | Python | aiida/backends/general/migrations/utils.py | pranavmodx/aiida-core | 0edbbf82dfb97ab130914d1674a6f2217eba5971 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | aiida/backends/general/migrations/utils.py | pranavmodx/aiida-core | 0edbbf82dfb97ab130914d1674a6f2217eba5971 | [
"BSD-2-Clause",
"MIT"
] | 2 | 2019-03-06T11:23:42.000Z | 2020-03-09T09:34:07.000Z | aiida/backends/general/migrations/utils.py | lorisercole/aiida-core | 84c2098318bf234641219e55795726f99dc25a16 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... | 34.053333 | 119 | 0.66758 | 723 | 5,108 | 4.596127 | 0.230982 | 0.048149 | 0.045742 | 0.023473 | 0.396329 | 0.360819 | 0.286187 | 0.275955 | 0.250075 | 0.250075 | 0 | 0.006258 | 0.217894 | 5,108 | 149 | 120 | 34.281879 | 0.825532 | 0.461825 | 0 | 0.163636 | 0 | 0.018182 | 0.03659 | 0.024116 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.018182 | 0.127273 | 0 | 0.472727 | 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 |
40f4220eb6198005a87664aaa2c6ba2fd068a95c | 350 | py | Python | packages/pyright-internal/src/tests/samples/genericTypes12.py | sasano8/pyright | e804f324ee5dbd25fd37a258791b3fd944addecd | [
"MIT"
] | 4,391 | 2019-05-07T01:18:57.000Z | 2022-03-31T20:45:44.000Z | packages/pyright-internal/src/tests/samples/genericTypes12.py | sasano8/pyright | e804f324ee5dbd25fd37a258791b3fd944addecd | [
"MIT"
] | 2,740 | 2019-05-07T03:29:30.000Z | 2022-03-31T12:57:46.000Z | packages/pyright-internal/src/tests/samples/genericTypes12.py | sasano8/pyright | e804f324ee5dbd25fd37a258791b3fd944addecd | [
"MIT"
] | 455 | 2019-05-07T12:55:14.000Z | 2022-03-31T17:09:15.000Z | # This sample tests the checker's ability to enforce
# type invariance for type arguments.
# pyright: strict
from typing import Dict, Union
foo: Dict[Union[int, str], str] = {}
bar: Dict[str, str] = {}
# This should generate an error because
# both type parameters for Dict are invariant,
# and str isn't assignable ... | 23.333333 | 52 | 0.72 | 55 | 350 | 4.581818 | 0.672727 | 0.071429 | 0.087302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182857 | 350 | 14 | 53 | 25 | 0.881119 | 0.657143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
40fbdeebc9d14240c78ed2bb4a08d9c0a87ce714 | 1,509 | py | Python | nlpproject/main/words.py | Hrishi2312/IR-reimagined | 2bcaf207a402bdae9fc39be516ccb607ce78d174 | [
"MIT"
] | null | null | null | nlpproject/main/words.py | Hrishi2312/IR-reimagined | 2bcaf207a402bdae9fc39be516ccb607ce78d174 | [
"MIT"
] | null | null | null | nlpproject/main/words.py | Hrishi2312/IR-reimagined | 2bcaf207a402bdae9fc39be516ccb607ce78d174 | [
"MIT"
] | null | null | null | import nltk
from nltk.corpus import stopwords
from nltk.stem import WordNetLemmatizer, PorterStemmer
from nltk.tokenize import sent_tokenize , word_tokenize
import glob
import re
import os
import numpy as np
import sys
nltk.download('stopwords')
nltk.download('punkt')
Stopwords = set(stopwords.words('english'))
all_w... | 28.471698 | 64 | 0.705765 | 224 | 1,509 | 4.558036 | 0.330357 | 0.03526 | 0.044074 | 0.06856 | 0.164545 | 0.146915 | 0.146915 | 0.048972 | 0 | 0 | 0 | 0.004065 | 0.184891 | 1,509 | 52 | 65 | 29.019231 | 0.826016 | 0 | 0 | 0 | 0 | 0 | 0.035785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.191489 | 0 | 0.297872 | 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 |
40fd39b618c9cae6572cdfad086049a95c4b491f | 4,911 | py | Python | oseoserver/operations/describeresultaccess.py | pyoseo/oseoserver | 8c97ee5a7d698cc989e1c8cab8cfe0db78491307 | [
"Apache-2.0"
] | null | null | null | oseoserver/operations/describeresultaccess.py | pyoseo/oseoserver | 8c97ee5a7d698cc989e1c8cab8cfe0db78491307 | [
"Apache-2.0"
] | 10 | 2015-02-10T17:10:33.000Z | 2018-04-05T10:05:01.000Z | oseoserver/operations/describeresultaccess.py | pyoseo/oseoserver | 8c97ee5a7d698cc989e1c8cab8cfe0db78491307 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Ricardo Garcia Silva
#
# 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 agree... | 34.584507 | 76 | 0.696192 | 573 | 4,911 | 5.802792 | 0.342059 | 0.037895 | 0.018045 | 0.024361 | 0.152782 | 0.043308 | 0 | 0 | 0 | 0 | 0 | 0.002662 | 0.235186 | 4,911 | 141 | 77 | 34.829787 | 0.882588 | 0.319894 | 0 | 0.026667 | 0 | 0 | 0.040025 | 0.006879 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.146667 | 0 | 0.226667 | 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 |
40ff8361da6ba11cdb915421c267126671120831 | 872 | py | Python | oo/pessoa.py | wfs18/pythonbirds | aa3332763f9109c1fb7f1140a82a4b51c6402fdb | [
"MIT"
] | null | null | null | oo/pessoa.py | wfs18/pythonbirds | aa3332763f9109c1fb7f1140a82a4b51c6402fdb | [
"MIT"
] | null | null | null | oo/pessoa.py | wfs18/pythonbirds | aa3332763f9109c1fb7f1140a82a4b51c6402fdb | [
"MIT"
] | null | null | null | class Person:
olhos = 2
def __init__(self, *children, name=None, year=0):
self.year = year
self.name = name
self.children = list(children)
def cumprimentar(self):
return 'Hello'
@staticmethod
def metodo_estatico():
return 123
@classmethod
def metod... | 22.947368 | 53 | 0.605505 | 112 | 872 | 4.517857 | 0.375 | 0.094862 | 0.047431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007788 | 0.263761 | 872 | 37 | 54 | 23.567568 | 0.780374 | 0.044725 | 0 | 0 | 0 | 0 | 0.055422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0 | 0.096774 | 0.290323 | 0.322581 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dc002c294c966dc124207adcde546a050c2603e1 | 1,323 | py | Python | elastalert_modules/top_count_keys_enhancement.py | OpenCoreCH/elastalert | 28502d8e81e67649976a6a3d2ccc198a5dd60631 | [
"Apache-2.0"
] | null | null | null | elastalert_modules/top_count_keys_enhancement.py | OpenCoreCH/elastalert | 28502d8e81e67649976a6a3d2ccc198a5dd60631 | [
"Apache-2.0"
] | 1 | 2018-10-05T14:38:22.000Z | 2018-10-05T14:38:22.000Z | elastalert_modules/top_count_keys_enhancement.py | OpenCoreCH/elastalert | 28502d8e81e67649976a6a3d2ccc198a5dd60631 | [
"Apache-2.0"
] | 4 | 2018-10-05T12:11:42.000Z | 2022-01-31T10:31:26.000Z | """Enhancement to reformat `top_events_X`
from match in order to reformat and put it
back to be able to use in alert message.
New format:
top_events_keys_XXX -- contains array of corresponding key values defined in `top_count_keys`,
where `XXX` key from `top_count_keys` array.
top_events_values_XXX -- contains arra... | 31.5 | 94 | 0.675737 | 185 | 1,323 | 4.551351 | 0.356757 | 0.106888 | 0.114014 | 0.042755 | 0.12114 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012597 | 0.219955 | 1,323 | 41 | 95 | 32.268293 | 0.803295 | 0.573696 | 0 | 0 | 0 | 0 | 0.116697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dc0041528fa6c63f72d3e18e309efd1fc5282e9f | 4,054 | py | Python | nets.py | koreyou/SWEM-chainer | 728443fb5fc53409648d8bff3ae3e545fb9ac36c | [
"MIT"
] | null | null | null | nets.py | koreyou/SWEM-chainer | 728443fb5fc53409648d8bff3ae3e545fb9ac36c | [
"MIT"
] | null | null | null | nets.py | koreyou/SWEM-chainer | 728443fb5fc53409648d8bff3ae3e545fb9ac36c | [
"MIT"
] | null | null | null | import numpy
import chainer
import chainer.functions as F
import chainer.links as L
from chainer import reporter
embed_init = chainer.initializers.Uniform(.25)
def block_embed(embed, x, dropout=0.):
"""Embedding function followed by convolution
Args:
embed (callable): A :func:`~chainer.functions.em... | 34.355932 | 88 | 0.620868 | 578 | 4,054 | 4.214533 | 0.269896 | 0.031609 | 0.031609 | 0.034483 | 0.25821 | 0.25821 | 0.25821 | 0.220033 | 0.220033 | 0.186371 | 0 | 0.010104 | 0.267637 | 4,054 | 117 | 89 | 34.649573 | 0.810374 | 0.375432 | 0 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140351 | false | 0 | 0.087719 | 0.017544 | 0.403509 | 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 |
dc00c9713e8a8c4632743cc1feb90632ddde0bf5 | 13,726 | py | Python | artifacts/kernel_db/autotvm_scripts/tune_tilling_dense_select_codegen.py | LittleQili/nnfusion | 6c1a25db5be459a1053798f1c75bfbd26863ed08 | [
"MIT"
] | null | null | null | artifacts/kernel_db/autotvm_scripts/tune_tilling_dense_select_codegen.py | LittleQili/nnfusion | 6c1a25db5be459a1053798f1c75bfbd26863ed08 | [
"MIT"
] | null | null | null | artifacts/kernel_db/autotvm_scripts/tune_tilling_dense_select_codegen.py | LittleQili/nnfusion | 6c1a25db5be459a1053798f1c75bfbd26863ed08 | [
"MIT"
] | 1 | 2021-08-11T09:09:53.000Z | 2021-08-11T09:09:53.000Z | """
matmul autotvm
[batch,in_dim] x [in_dim,out_dim]
search_matmul_config(batch,in_dim,out_dim,num_trials):
input: batch,in_dim,out_dim,num_trials
[batch,in_dim] x [in_dim,out_dim]
num_trials: num of trials, default: 1000
output: log (json format)
use autotvm to search configs for the matm... | 35.4677 | 159 | 0.633396 | 2,175 | 13,726 | 3.756782 | 0.135632 | 0.01897 | 0.026924 | 0.029617 | 0.497491 | 0.425162 | 0.383552 | 0.345857 | 0.31881 | 0.295925 | 0 | 0.024439 | 0.201078 | 13,726 | 387 | 160 | 35.4677 | 0.720682 | 0.113143 | 0 | 0.251938 | 0 | 0 | 0.107482 | 0.017652 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034884 | false | 0 | 0.050388 | 0 | 0.108527 | 0.046512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dc00d047f5d2f7ce7b721b7c45d3556d9ebe4b5d | 2,240 | py | Python | src/olympia/activity/admin.py | dante381/addons-server | 9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7 | [
"BSD-3-Clause"
] | null | null | null | src/olympia/activity/admin.py | dante381/addons-server | 9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7 | [
"BSD-3-Clause"
] | null | null | null | src/olympia/activity/admin.py | dante381/addons-server | 9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from .models import ActivityLog, ReviewActionReasonLog
from olympia.reviewers.models import ReviewActionReason
class ActivityLogAdmin(admin.ModelAdmin):
list_display = (
'created',
'user',
'__str__',
)
raw_id_fields = ('user',)
readonly_fields ... | 26.666667 | 87 | 0.634821 | 230 | 2,240 | 5.817391 | 0.317391 | 0.082212 | 0.078475 | 0.089686 | 0.261584 | 0.207773 | 0.13154 | 0.13154 | 0.06577 | 0 | 0 | 0 | 0.258482 | 2,240 | 83 | 88 | 26.987952 | 0.805539 | 0 | 0 | 0.528571 | 0 | 0 | 0.1375 | 0.044643 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.042857 | 0.057143 | 0.471429 | 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 |
dc022c593385d4751afcdb05a041b275d5e72149 | 2,041 | py | Python | tests/utilities/test_upgrade_checkpoint.py | cuent/pytorch-lightning | b50ad528e69618d831aa01ee69f29b4f2a6a3e84 | [
"Apache-2.0"
] | null | null | null | tests/utilities/test_upgrade_checkpoint.py | cuent/pytorch-lightning | b50ad528e69618d831aa01ee69f29b4f2a6a3e84 | [
"Apache-2.0"
] | null | null | null | tests/utilities/test_upgrade_checkpoint.py | cuent/pytorch-lightning | b50ad528e69618d831aa01ee69f29b4f2a6a3e84 | [
"Apache-2.0"
] | null | null | null | # Copyright The PyTorch Lightning team.
#
# 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 i... | 40.82 | 110 | 0.677609 | 252 | 2,041 | 5.305556 | 0.424603 | 0.035901 | 0.071803 | 0.095737 | 0.277487 | 0.277487 | 0.257292 | 0.253553 | 0.223635 | 0.112939 | 0 | 0.026862 | 0.197452 | 2,041 | 49 | 111 | 41.653061 | 0.789377 | 0.273885 | 0 | 0.121212 | 0 | 0 | 0.288828 | 0.100136 | 0 | 0 | 0 | 0 | 0.030303 | 1 | 0.030303 | false | 0 | 0.151515 | 0 | 0.181818 | 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 |
dc02390fc5cc8acb642fb9142268442719d14ed1 | 4,258 | py | Python | rnn/train_rnn_oneflow.py | XinYangDong/models | ea1ab12add5812c8a3e14ecfad6b39fa56a779a9 | [
"Apache-2.0"
] | null | null | null | rnn/train_rnn_oneflow.py | XinYangDong/models | ea1ab12add5812c8a3e14ecfad6b39fa56a779a9 | [
"Apache-2.0"
] | null | null | null | rnn/train_rnn_oneflow.py | XinYangDong/models | ea1ab12add5812c8a3e14ecfad6b39fa56a779a9 | [
"Apache-2.0"
] | null | null | null | import oneflow.experimental as flow
from oneflow.experimental import optim
import oneflow.experimental.nn as nn
from utils.dataset import *
from utils.tensor_utils import *
from models.rnn_model import RNN
import argparse
import time
import math
import numpy as np
flow.env.init()
flow.enable_eager_execution()
def ... | 30.198582 | 113 | 0.615782 | 574 | 4,258 | 4.360627 | 0.30662 | 0.053935 | 0.046744 | 0.035957 | 0.209748 | 0.181782 | 0.172593 | 0.130244 | 0.130244 | 0.093488 | 0 | 0.020719 | 0.274542 | 4,258 | 140 | 114 | 30.414286 | 0.788605 | 0.079615 | 0 | 0.036697 | 0 | 0.009174 | 0.056748 | 0.005879 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055046 | false | 0 | 0.091743 | 0 | 0.192661 | 0.036697 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dc0343ffb97fa10db053e01b9eed2a7adc7c042b | 4,763 | py | Python | metaflow/datastore/local_storage.py | RobBlumberg/metaflow | 9f737e6026eee250c1593a2cb1d1c4b19a00adf4 | [
"Apache-2.0"
] | 2 | 2020-03-05T08:33:05.000Z | 2021-05-31T12:54:40.000Z | metaflow/datastore/local_storage.py | RobBlumberg/metaflow | 9f737e6026eee250c1593a2cb1d1c4b19a00adf4 | [
"Apache-2.0"
] | 5 | 2021-12-12T21:04:10.000Z | 2022-01-22T21:05:58.000Z | metaflow/datastore/local_storage.py | RobBlumberg/metaflow | 9f737e6026eee250c1593a2cb1d1c4b19a00adf4 | [
"Apache-2.0"
] | 2 | 2020-04-18T22:45:03.000Z | 2020-06-25T14:36:20.000Z | import json
import os
from ..metaflow_config import DATASTORE_LOCAL_DIR, DATASTORE_SYSROOT_LOCAL
from .datastore_storage import CloseAfterUse, DataStoreStorage
from .exceptions import DataException
class LocalStorage(DataStoreStorage):
TYPE = "local"
METADATA_DIR = "_meta"
@classmethod
def get_datas... | 34.766423 | 88 | 0.515431 | 528 | 4,763 | 4.435606 | 0.248106 | 0.047822 | 0.028181 | 0.038429 | 0.226302 | 0.18702 | 0.156704 | 0.118702 | 0.118702 | 0.118702 | 0 | 0.00356 | 0.410246 | 4,763 | 136 | 89 | 35.022059 | 0.830189 | 0.023725 | 0 | 0.295082 | 0 | 0 | 0.020022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07377 | false | 0.008197 | 0.040984 | 0 | 0.237705 | 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 |
dc0442493abb70d64838a4469e6b402804bec72d | 2,499 | py | Python | script/spider/www_chinapoesy_com.py | gitter-badger/poetry-1 | faf50558852d5d37d4fee68a8c5a114aba149689 | [
"MIT"
] | 1 | 2021-08-03T03:07:41.000Z | 2021-08-03T03:07:41.000Z | script/spider/www_chinapoesy_com.py | gitter-badger/poetry-1 | faf50558852d5d37d4fee68a8c5a114aba149689 | [
"MIT"
] | null | null | null | script/spider/www_chinapoesy_com.py | gitter-badger/poetry-1 | faf50558852d5d37d4fee68a8c5a114aba149689 | [
"MIT"
] | null | null | null |
'''
pip3 install BeautifulSoup4
pip3 install pypinyin
'''
import requests
import re
import os
import shutil
from bs4 import BeautifulSoup
from util import Profile, write_poem
def parse_poem_profile_td(td):
container = td.find('div')
if container is None:
container = td
title_a = contain... | 25.5 | 77 | 0.609444 | 329 | 2,499 | 4.477204 | 0.346505 | 0.020367 | 0.029871 | 0.02444 | 0.108622 | 0.050238 | 0.050238 | 0.050238 | 0.050238 | 0 | 0 | 0.008073 | 0.256503 | 2,499 | 97 | 78 | 25.762887 | 0.781485 | 0.086835 | 0 | 0.065574 | 0 | 0 | 0.10238 | 0.010328 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065574 | false | 0 | 0.098361 | 0 | 0.262295 | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dc06b7c456a20378a588b26699aae0b601ae716d | 5,086 | py | Python | tests/test_events.py | hhtong/dwave-cloud-client | 45e4d1d4f187b10495e38d47478f2c8d87514434 | [
"Apache-2.0"
] | null | null | null | tests/test_events.py | hhtong/dwave-cloud-client | 45e4d1d4f187b10495e38d47478f2c8d87514434 | [
"Apache-2.0"
] | null | null | null | tests/test_events.py | hhtong/dwave-cloud-client | 45e4d1d4f187b10495e38d47478f2c8d87514434 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 D-Wave Systems Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 34.835616 | 87 | 0.592411 | 568 | 5,086 | 5.204225 | 0.301056 | 0.071042 | 0.054127 | 0.023342 | 0.301083 | 0.171516 | 0.111637 | 0.111637 | 0.111637 | 0.111637 | 0 | 0.010071 | 0.277625 | 5,086 | 145 | 88 | 35.075862 | 0.794502 | 0.203893 | 0 | 0.102273 | 0 | 0 | 0.18041 | 0.005747 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.147727 | 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 |
dc06e2ba70d0080f14386cfea2dd13fc3ab64b71 | 12,084 | py | Python | ex3_nn_TF2.py | Melykuti/Ng_Machine_learning_exercises | c561190ee2705b6af9432323d7639f6655c973e5 | [
"BSD-3-Clause"
] | 3 | 2020-03-06T19:15:28.000Z | 2020-03-09T10:29:38.000Z | ex3_nn_TF2.py | Melykuti/Ng_Machine_learning_exercises | c561190ee2705b6af9432323d7639f6655c973e5 | [
"BSD-3-Clause"
] | null | null | null | ex3_nn_TF2.py | Melykuti/Ng_Machine_learning_exercises | c561190ee2705b6af9432323d7639f6655c973e5 | [
"BSD-3-Clause"
] | null | null | null | '''
Neural networks. Forward propagation in an already trained network in TensorFlow 2.0-2.1 (to use the network for classification).
TF 2.0:
Option 0 takes 0.08 sec.
Option 1 takes 0.08 sec.
Option 6 takes 0.08 sec.
Option 2 takes 4.7 sec.
Option 3 takes 1.6 sec.
Option 4 takes 5.2 sec.
Option 5 takes 0.08 sec.
Optio... | 48.923077 | 347 | 0.70043 | 1,912 | 12,084 | 4.366632 | 0.204498 | 0.053899 | 0.04779 | 0.061325 | 0.533836 | 0.496347 | 0.456222 | 0.426518 | 0.404 | 0.386753 | 0 | 0.046734 | 0.153592 | 12,084 | 246 | 348 | 49.121951 | 0.769554 | 0.593098 | 0 | 0.213483 | 0 | 0 | 0.068036 | 0.017009 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044944 | false | 0 | 0.067416 | 0 | 0.157303 | 0.05618 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dc0981553f7be2b377b0b4a03e7bcb8ef94d1db4 | 846 | py | Python | addons/purchase_request/migrations/13.0.4.0.0/post-migration.py | jerryxu4j/odoo-docker-build | 339a3229192582c289c19e276347af1326ce683f | [
"CC-BY-3.0"
] | null | null | null | addons/purchase_request/migrations/13.0.4.0.0/post-migration.py | jerryxu4j/odoo-docker-build | 339a3229192582c289c19e276347af1326ce683f | [
"CC-BY-3.0"
] | null | null | null | addons/purchase_request/migrations/13.0.4.0.0/post-migration.py | jerryxu4j/odoo-docker-build | 339a3229192582c289c19e276347af1326ce683f | [
"CC-BY-3.0"
] | null | null | null | from odoo import SUPERUSER_ID, api
from odoo.tools.sql import column_exists
def migrate(cr, version=None):
env = api.Environment(cr, SUPERUSER_ID, {})
if column_exists(cr, "product_template", "purchase_request"):
_migrate_purchase_request_to_property(env)
def _migrate_purchase_request_to_property(en... | 42.3 | 88 | 0.734043 | 114 | 846 | 5.219298 | 0.482456 | 0.151261 | 0.07395 | 0.080672 | 0.117647 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152482 | 846 | 19 | 89 | 44.526316 | 0.829847 | 0.08156 | 0 | 0 | 0 | 0 | 0.271077 | 0.033722 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 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 |
dc0a134e4c11e64835152cefa26ff2db3778cd60 | 13,678 | py | Python | cfy/server.py | buhanec/cloudify-flexiant-plugin | da0c42a4330c9e5ffd55d9f5024a9a36f052af16 | [
"Apache-2.0"
] | null | null | null | cfy/server.py | buhanec/cloudify-flexiant-plugin | da0c42a4330c9e5ffd55d9f5024a9a36f052af16 | [
"Apache-2.0"
] | null | null | null | cfy/server.py | buhanec/cloudify-flexiant-plugin | da0c42a4330c9e5ffd55d9f5024a9a36f052af16 | [
"Apache-2.0"
] | null | null | null | # coding=UTF-8
"""Server stuff."""
from __future__ import print_function
from cfy import (create_server,
create_ssh_key,
attach_ssh_key,
wait_for_state,
wait_for_cond,
create_nic,
attach_nic,
get_res... | 36.281167 | 79 | 0.615222 | 1,680 | 13,678 | 4.74881 | 0.15119 | 0.030835 | 0.039108 | 0.030083 | 0.371647 | 0.344322 | 0.297443 | 0.277639 | 0.268864 | 0.215217 | 0 | 0.00479 | 0.282644 | 13,678 | 376 | 80 | 36.37766 | 0.808296 | 0.217576 | 0 | 0.201646 | 0 | 0 | 0.093488 | 0 | 0 | 0 | 0 | 0.00266 | 0 | 1 | 0.020576 | false | 0.032922 | 0.065844 | 0 | 0.102881 | 0.004115 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dc0ae53c3bb6f54a76cfb756f32ba1e86d22317c | 7,317 | py | Python | markdown2dita.py | mattcarabine/markdown2dita | f4a02c3e9514d33eb3cea9c9b5d3c44817afad97 | [
"BSD-3-Clause"
] | 6 | 2019-06-28T12:47:01.000Z | 2022-02-14T18:18:53.000Z | markdown2dita.py | mattcarabine/markdown2dita | f4a02c3e9514d33eb3cea9c9b5d3c44817afad97 | [
"BSD-3-Clause"
] | null | null | null | markdown2dita.py | mattcarabine/markdown2dita | f4a02c3e9514d33eb3cea9c9b5d3c44817afad97 | [
"BSD-3-Clause"
] | 2 | 2018-02-09T22:17:48.000Z | 2020-02-20T13:59:30.000Z | # coding: utf-8
"""
markdown2dita
~~~~~~~~~~~~~
A markdown to dita-ot conversion tool written in pure python.
Uses mistune to parse the markdown.
"""
from __future__ import print_function
import argparse
import sys
import mistune
__version__ = '0.3'
__author__ = 'Matt Carabine <matt.carabine@gmail.c... | 31.403433 | 83 | 0.577012 | 899 | 7,317 | 4.59733 | 0.249166 | 0.019356 | 0.023712 | 0.011614 | 0.115654 | 0.089039 | 0.059521 | 0.041132 | 0.026615 | 0.026615 | 0 | 0.008494 | 0.275933 | 7,317 | 232 | 84 | 31.538793 | 0.771612 | 0.057127 | 0 | 0.13125 | 0 | 0 | 0.20664 | 0.040338 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16875 | false | 0 | 0.025 | 0.09375 | 0.3875 | 0.01875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dc0c391d6f0cc20589629aa4ecb77f77c49b34a1 | 2,957 | py | Python | tests/integration/test_reload_certificate/test.py | roanhe-ts/ClickHouse | 22de534fdcd3f05e27423d13f5875f97c3ba5f10 | [
"Apache-2.0"
] | 1 | 2022-02-08T03:09:51.000Z | 2022-02-08T03:09:51.000Z | tests/integration/test_reload_certificate/test.py | roanhe-ts/ClickHouse | 22de534fdcd3f05e27423d13f5875f97c3ba5f10 | [
"Apache-2.0"
] | 1 | 2022-03-21T07:27:34.000Z | 2022-03-21T07:27:34.000Z | tests/integration/test_reload_certificate/test.py | roanhe-ts/ClickHouse | 22de534fdcd3f05e27423d13f5875f97c3ba5f10 | [
"Apache-2.0"
] | null | null | null | import pytest
import os
from helpers.cluster import ClickHouseCluster
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
cluster = ClickHouseCluster(__file__)
node = cluster.add_instance('node', main_configs=["configs/first.crt", "configs/first.key",
"configs/sec... | 38.907895 | 142 | 0.622929 | 337 | 2,957 | 5.323442 | 0.35905 | 0.042921 | 0.074136 | 0.097547 | 0.420847 | 0.384058 | 0.384058 | 0.365663 | 0.315496 | 0.282051 | 0 | 0.010619 | 0.235712 | 2,957 | 75 | 143 | 39.426667 | 0.783186 | 0.15793 | 0 | 0.25 | 0 | 0 | 0.463295 | 0.238989 | 0 | 0 | 0 | 0 | 0.115385 | 1 | 0.057692 | false | 0 | 0.057692 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dc0d3f00ae59f64419ff5f7a5aba262466241f01 | 1,811 | py | Python | pretraining/python/download_tensorboard_logs.py | dl4nlp-rg/PTT5 | cee2d996ba7eac80d7764072eef01a7f9c38836c | [
"MIT"
] | 51 | 2020-08-11T13:34:07.000Z | 2022-01-20T23:09:32.000Z | pretraining/python/download_tensorboard_logs.py | dl4nlp-rg/PTT5 | cee2d996ba7eac80d7764072eef01a7f9c38836c | [
"MIT"
] | 4 | 2020-09-28T20:33:31.000Z | 2022-03-12T00:46:13.000Z | pretraining/python/download_tensorboard_logs.py | unicamp-dl/PTT5 | aee3e0d0b6ad1bb6f8c2d9afd1d2e89679301f6f | [
"MIT"
] | 6 | 2021-01-25T07:47:40.000Z | 2022-02-23T20:06:03.000Z | import tensorflow.compat.v1 as tf
import os
import tqdm
GCS_BUCKET = 'gs://ptt5-1'
TENSORBOARD_LOGS_LOCAL = '../logs_tensorboard'
os.makedirs(TENSORBOARD_LOGS_LOCAL, exist_ok=True)
# where to look for events files - experiment names
base_paths = [
# Main initial experiments - all weights are updated
'small_s... | 38.531915 | 77 | 0.699613 | 231 | 1,811 | 5.142857 | 0.372294 | 0.076599 | 0.141414 | 0.073232 | 0.09596 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011181 | 0.209829 | 1,811 | 46 | 78 | 39.369565 | 0.819008 | 0.110436 | 0 | 0 | 0 | 0 | 0.421184 | 0.264798 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081081 | 0 | 0.081081 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dc0f94e928edc42769b1d0d49b60f125df3ce1e6 | 4,497 | py | Python | architecture_tool_django/nodes/tasks.py | goldginkgo/architecture_tool_django | e4229c5938a4dd01d0877afa7b93daf68e09283b | [
"MIT"
] | 1 | 2021-08-13T01:37:29.000Z | 2021-08-13T01:37:29.000Z | architecture_tool_django/nodes/tasks.py | goldginkgo/architecture_tool_django | e4229c5938a4dd01d0877afa7b93daf68e09283b | [
"MIT"
] | null | null | null | architecture_tool_django/nodes/tasks.py | goldginkgo/architecture_tool_django | e4229c5938a4dd01d0877afa7b93daf68e09283b | [
"MIT"
] | 1 | 2021-07-19T07:57:54.000Z | 2021-07-19T07:57:54.000Z | import logging
import re
from celery import shared_task
from django.conf import settings
from django.db.models import Q
from django.shortcuts import get_object_or_404
from django.template.loader import get_template
from django.urls import reverse
from django.utils import timezone
from architecture_tool_django.utils.c... | 32.824818 | 99 | 0.683344 | 541 | 4,497 | 5.451017 | 0.253235 | 0.074941 | 0.023059 | 0.027128 | 0.248559 | 0.167514 | 0.094947 | 0.094947 | 0.094947 | 0.070532 | 0 | 0.003324 | 0.197243 | 4,497 | 136 | 100 | 33.066176 | 0.813573 | 0.032466 | 0 | 0.038095 | 0 | 0 | 0.163063 | 0.043008 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.104762 | 0 | 0.209524 | 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 |
dc107c520e6be07939c0ec67b42b5fccd394dfb1 | 3,195 | py | Python | crosswalk/views/alias_or_create.py | cofin/django-crosswalk | 349ebbd5676d3ef3ccf889ec3849b2f1cff4be32 | [
"MIT"
] | 4 | 2019-04-08T23:24:30.000Z | 2021-12-22T16:42:12.000Z | crosswalk/views/alias_or_create.py | cofin/django-crosswalk | 349ebbd5676d3ef3ccf889ec3849b2f1cff4be32 | [
"MIT"
] | 12 | 2017-12-18T04:27:14.000Z | 2021-06-10T18:05:46.000Z | crosswalk/views/alias_or_create.py | cofin/django-crosswalk | 349ebbd5676d3ef3ccf889ec3849b2f1cff4be32 | [
"MIT"
] | 3 | 2019-08-12T14:36:04.000Z | 2020-10-17T20:54:09.000Z | from crosswalk.authentication import AuthenticatedView
from crosswalk.models import Domain, Entity
from crosswalk.serializers import EntitySerializer
from crosswalk.utils import import_class
from django.core.exceptions import ObjectDoesNotExist
from rest_framework import status
from rest_framework.response import Respo... | 32.272727 | 78 | 0.571831 | 309 | 3,195 | 5.750809 | 0.333333 | 0.027575 | 0.04502 | 0.02251 | 0.028137 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007637 | 0.344288 | 3,195 | 98 | 79 | 32.602041 | 0.840573 | 0.039437 | 0 | 0.0875 | 0 | 0 | 0.089233 | 0.008561 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0125 | false | 0 | 0.1125 | 0 | 0.2 | 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 |
dc10e734b445882a7de1ca38ba65c2b849b9fe68 | 3,629 | py | Python | hoist/fastapi_wrapper.py | ZeroIntensity/Hoist | 08388af0328f225fc3066cf09b8043c30cb900e3 | [
"MIT"
] | null | null | null | hoist/fastapi_wrapper.py | ZeroIntensity/Hoist | 08388af0328f225fc3066cf09b8043c30cb900e3 | [
"MIT"
] | null | null | null | hoist/fastapi_wrapper.py | ZeroIntensity/Hoist | 08388af0328f225fc3066cf09b8043c30cb900e3 | [
"MIT"
] | 2 | 2021-07-26T17:10:19.000Z | 2021-09-02T00:13:17.000Z | from fastapi import FastAPI, Response, WebSocket, WebSocketDisconnect
from threading import Thread
from .server import Server
from .errors import HoistExistsError
from .error import Error
from .version import __version__
from .flask_wrapper import HTML
import uvicorn
from typing import List, Callable
from fastapi.respo... | 34.894231 | 124 | 0.58005 | 396 | 3,629 | 5.199495 | 0.315657 | 0.027198 | 0.020398 | 0.022341 | 0.02137 | 0.02137 | 0 | 0 | 0 | 0 | 0 | 0.004841 | 0.316892 | 3,629 | 103 | 125 | 35.23301 | 0.825736 | 0.067512 | 0 | 0.081081 | 0 | 0 | 0.051894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0.135135 | 0.040541 | 0.432432 | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dc110c5732b9e3f42c8a0c8715b260a938e9705c | 4,874 | py | Python | network/mqtt_client/main_mqtt_publisher.py | flashypepo/myMicropython-Examples | b2b63df865b5ad471b351ca5f279135025859f5d | [
"MIT"
] | 3 | 2017-09-03T17:17:44.000Z | 2017-12-10T12:26:46.000Z | network/mqtt_client/main_mqtt_publisher.py | flashypepo/myMicropython-Examples | b2b63df865b5ad471b351ca5f279135025859f5d | [
"MIT"
] | null | null | null | network/mqtt_client/main_mqtt_publisher.py | flashypepo/myMicropython-Examples | b2b63df865b5ad471b351ca5f279135025859f5d | [
"MIT"
] | 2 | 2017-10-01T01:10:55.000Z | 2018-07-15T19:49:29.000Z | # This file is executed on every boot (including wake-boot from deepsleep)
# 2017-1210 PePo send timestamp and temperature (Celsius) to MQTT-server on BBB
# 2017-1105 PePo add _isLocal: sensor data to serial port (False) of stored in file (True)
# 2017-0819 PePo add sensor, led and print to serial port
# 2017-0811 ... | 33.383562 | 164 | 0.622897 | 616 | 4,874 | 4.866883 | 0.350649 | 0.023349 | 0.031688 | 0.023015 | 0.105404 | 0.105404 | 0.081388 | 0.064043 | 0.064043 | 0.064043 | 0 | 0.042026 | 0.238408 | 4,874 | 145 | 165 | 33.613793 | 0.765625 | 0.421009 | 0 | 0.181818 | 0 | 0.012987 | 0.143729 | 0.014487 | 0 | 0 | 0 | 0.006897 | 0 | 1 | 0.103896 | false | 0.012987 | 0.142857 | 0 | 0.272727 | 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 |
dc11cc17aee754089dc4fb18a3e6534b5f45cf92 | 1,724 | py | Python | 2015/07.py | Valokoodari/advent-of-code | c664987f739e0b07ddad34bad87d56768556a5a5 | [
"MIT"
] | 2 | 2021-12-27T18:59:11.000Z | 2022-01-10T02:31:36.000Z | 2015/07.py | Valokoodari/advent-of-code-2019 | c664987f739e0b07ddad34bad87d56768556a5a5 | [
"MIT"
] | null | null | null | 2015/07.py | Valokoodari/advent-of-code-2019 | c664987f739e0b07ddad34bad87d56768556a5a5 | [
"MIT"
] | 2 | 2021-12-23T17:29:10.000Z | 2021-12-24T03:21:49.000Z | #!/usr/bin/python3
lines = open("inputs/07.in", "r").readlines()
for i,line in enumerate(lines):
lines[i] = line.split("\n")[0]
l = lines.copy();
wires = {}
def func_set(p, i):
if p[0].isdigit():
wires[p[2]] = int(p[0])
lines.pop(i)
elif p[0] in wires.keys():
wires[p[2]] = wires[p... | 23.297297 | 53 | 0.487239 | 291 | 1,724 | 2.845361 | 0.171821 | 0.123188 | 0.119565 | 0.135266 | 0.451691 | 0.396135 | 0.364734 | 0.341787 | 0.320048 | 0.292271 | 0 | 0.039529 | 0.310325 | 1,724 | 73 | 54 | 23.616438 | 0.656855 | 0.009861 | 0 | 0.266667 | 0 | 0 | 0.032825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116667 | false | 0 | 0 | 0 | 0.116667 | 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 |
dc1360cdb290733689a5e8387a3d39ce467c6a9c | 1,659 | py | Python | soccer_embedded/Development/Ethernet/lwip-rtos-config/test_udp_echo.py | ghsecuritylab/soccer_ws | 60600fb826c06362182ebff00f3031e87ac45f7c | [
"BSD-3-Clause"
] | 56 | 2016-12-25T22:29:00.000Z | 2022-01-06T04:42:00.000Z | soccer_embedded/Development/Ethernet/lwip-rtos-config/test_udp_echo.py | ghsecuritylab/soccer_ws | 60600fb826c06362182ebff00f3031e87ac45f7c | [
"BSD-3-Clause"
] | 244 | 2021-04-05T03:22:25.000Z | 2022-03-31T16:47:36.000Z | soccer_embedded/Development/Ethernet/lwip-rtos-config/test_udp_echo.py | ghsecuritylab/soccer_ws | 60600fb826c06362182ebff00f3031e87ac45f7c | [
"BSD-3-Clause"
] | 7 | 2017-01-24T23:38:07.000Z | 2022-01-19T16:58:08.000Z | import socket
import time
import numpy
# This script sends a message to the board, at IP address and port given by
# server_address, using User Datagram Protocol (UDP). The board should be
# programmed to echo back UDP packets sent to it. The time taken for num_samples
# echoes is measured.
# Create a UDP socket
sock... | 27.65 | 110 | 0.650995 | 223 | 1,659 | 4.748879 | 0.44843 | 0.056657 | 0.050992 | 0.020774 | 0.03966 | 0.03966 | 0 | 0 | 0 | 0 | 0 | 0.019216 | 0.215793 | 1,659 | 59 | 111 | 28.118644 | 0.794773 | 0.196504 | 0 | 0.166667 | 0 | 0 | 0.219789 | 0.02719 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.194444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dc140fb927ee173544f8803200f7806b0546c054 | 16,058 | py | Python | test.py | keke185321/emotions | f7cef86c20880b99469c9a35b071d6062e56ac40 | [
"MIT"
] | 58 | 2017-04-04T18:59:36.000Z | 2022-02-16T14:54:09.000Z | test.py | keke185321/emotions | f7cef86c20880b99469c9a35b071d6062e56ac40 | [
"MIT"
] | 4 | 2017-06-28T13:56:04.000Z | 2021-07-02T03:42:21.000Z | test.py | keke185321/emotions | f7cef86c20880b99469c9a35b071d6062e56ac40 | [
"MIT"
] | 26 | 2017-08-22T14:41:28.000Z | 2022-03-08T05:41:03.000Z | #!/usr/bin/env python
#
# This file is part of the Emotions project. The complete source code is
# available at https://github.com/luigivieira/emotions.
#
# Copyright (c) 2016-2017, Luiz Carlos Vieira (http://www.luiz.vieira.nom.br)
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaini... | 31.924453 | 80 | 0.5482 | 1,931 | 16,058 | 4.523563 | 0.241326 | 0.021637 | 0.016027 | 0.015112 | 0.257699 | 0.235718 | 0.182255 | 0.170922 | 0.133028 | 0.116772 | 0 | 0.025772 | 0.318595 | 16,058 | 503 | 81 | 31.924453 | 0.772528 | 0.285714 | 0 | 0.296154 | 0 | 0 | 0.103258 | 0.004388 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026923 | false | 0.007692 | 0.038462 | 0 | 0.080769 | 0.011538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dc1615d2555d04af3309f9652b1529186785aefa | 1,711 | py | Python | ichnaea/taskapp/app.py | mikiec84/ichnaea | ec223cefb788bb921c0e7f5f51bd3b20eae29edd | [
"Apache-2.0"
] | 348 | 2015-01-13T11:48:07.000Z | 2022-03-31T08:33:07.000Z | ichnaea/taskapp/app.py | mikiec84/ichnaea | ec223cefb788bb921c0e7f5f51bd3b20eae29edd | [
"Apache-2.0"
] | 1,274 | 2015-01-02T18:15:56.000Z | 2022-03-23T15:29:08.000Z | ichnaea/taskapp/app.py | mikiec84/ichnaea | ec223cefb788bb921c0e7f5f51bd3b20eae29edd | [
"Apache-2.0"
] | 149 | 2015-01-04T21:15:07.000Z | 2021-12-10T06:05:09.000Z | """
Holds global celery application state and startup / shutdown handlers.
"""
from celery import Celery
from celery.app import app_or_default
from celery.signals import (
beat_init,
worker_process_init,
worker_process_shutdown,
setup_logging,
)
from ichnaea.log import configure_logging
from ichnaea.ta... | 24.442857 | 74 | 0.733489 | 218 | 1,711 | 5.53211 | 0.279817 | 0.067164 | 0.039801 | 0.052239 | 0.356551 | 0.339138 | 0.266998 | 0.266998 | 0.225539 | 0.225539 | 0 | 0 | 0.177674 | 1,711 | 69 | 75 | 24.797101 | 0.857143 | 0.370544 | 0 | 0.09375 | 0 | 0 | 0.019192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.15625 | 0 | 0.28125 | 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 |
dc16a13d387c0b0bc002823fb7755299735633f4 | 1,771 | py | Python | gmqtt/storage.py | sabuhish/gmqtt | b88aaaaa88b0d8eb1e2757a327060298524a976a | [
"MIT"
] | null | null | null | gmqtt/storage.py | sabuhish/gmqtt | b88aaaaa88b0d8eb1e2757a327060298524a976a | [
"MIT"
] | null | null | null | gmqtt/storage.py | sabuhish/gmqtt | b88aaaaa88b0d8eb1e2757a327060298524a976a | [
"MIT"
] | null | null | null | import asyncio
from typing import Tuple
import heapq
class BasePersistentStorage(object):
async def push_message(self, mid, raw_package):
raise NotImplementedError
def push_message_nowait(self, mid, raw_package) -> asyncio.Future:
try:
asyncio.get_event_loop()
except Runt... | 29.032787 | 73 | 0.648786 | 216 | 1,771 | 5.087963 | 0.305556 | 0.058235 | 0.094631 | 0.046406 | 0.33576 | 0.293904 | 0.244768 | 0.244768 | 0 | 0 | 0 | 0.000765 | 0.261434 | 1,771 | 60 | 74 | 29.516667 | 0.83945 | 0 | 0 | 0.272727 | 0 | 0 | 0.022586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.068182 | 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 |
dc16d9cdd8796257d1bb841212fc202433a9eade | 10,638 | py | Python | test/testframework/runner.py | 5GExchange/escape | eb35d460597a0386b18dd5b6a5f62a3f30eed5fa | [
"Apache-2.0"
] | 10 | 2016-11-16T16:26:16.000Z | 2021-04-26T17:20:28.000Z | test/testframework/runner.py | 5GExchange/escape | eb35d460597a0386b18dd5b6a5f62a3f30eed5fa | [
"Apache-2.0"
] | 3 | 2017-04-20T11:29:17.000Z | 2017-11-06T17:12:12.000Z | test/testframework/runner.py | 5GExchange/escape | eb35d460597a0386b18dd5b6a5f62a3f30eed5fa | [
"Apache-2.0"
] | 10 | 2017-03-27T13:58:52.000Z | 2020-06-24T22:42:51.000Z | # Copyright 2017 Lajos Gerecs, Janos Czentye
#
# 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... | 28.142857 | 80 | 0.650498 | 1,377 | 10,638 | 4.830065 | 0.218591 | 0.02556 | 0.020298 | 0.013231 | 0.302661 | 0.271237 | 0.256803 | 0.236656 | 0.221019 | 0.201473 | 0 | 0.002376 | 0.248355 | 10,638 | 377 | 81 | 28.217507 | 0.829415 | 0.221376 | 0 | 0.350877 | 0 | 0 | 0.084268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175439 | false | 0.013158 | 0.052632 | 0.04386 | 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 |
dc1774c173332a4ec6c00f25e59d94cce3123021 | 868 | py | Python | Calliope/13 Clock/Clock.py | frankyhub/Python | 323ef1399efcbc24ddc66ad069ff99b4999fff38 | [
"MIT"
] | null | null | null | Calliope/13 Clock/Clock.py | frankyhub/Python | 323ef1399efcbc24ddc66ad069ff99b4999fff38 | [
"MIT"
] | null | null | null | Calliope/13 Clock/Clock.py | frankyhub/Python | 323ef1399efcbc24ddc66ad069ff99b4999fff38 | [
"MIT"
] | null | null | null | from microbit import *
hands = Image.ALL_CLOCKS
#A centre dot of brightness 2.
ticker_image = Image("2\n").crop(-2,-2,5,5)
#Adjust these to taste
MINUTE_BRIGHT = 0.1111
HOUR_BRIGHT = 0.55555
#Generate hands for 5 minute intervals
def fiveticks():
fivemins = 0
hours = 0
while True:
yield hands[f... | 24.8 | 71 | 0.624424 | 125 | 868 | 4.272 | 0.536 | 0.061798 | 0.067416 | 0.074906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053055 | 0.28341 | 868 | 35 | 72 | 24.8 | 0.805466 | 0.245392 | 0 | 0 | 0 | 0 | 0.004608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.041667 | 0 | 0.125 | 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 |
dc18cde3ecea098343bc73407dcfa2ce64cc68f5 | 528 | py | Python | home/kakadu31/sabertooth.py | rv8flyboy/pyrobotlab | 4e04fb751614a5cb6044ea15dcfcf885db8be65a | [
"Apache-2.0"
] | 63 | 2015-02-03T18:49:43.000Z | 2022-03-29T03:52:24.000Z | home/kakadu31/sabertooth.py | hirwaHenryChristian/pyrobotlab | 2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9 | [
"Apache-2.0"
] | 16 | 2016-01-26T19:13:29.000Z | 2018-11-25T21:20:51.000Z | home/kakadu31/sabertooth.py | hirwaHenryChristian/pyrobotlab | 2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9 | [
"Apache-2.0"
] | 151 | 2015-01-03T18:55:54.000Z | 2022-03-04T07:04:23.000Z | #Variables
#Working with build 2234
saberPort = "/dev/ttyUSB0"
#Initializing Motorcontroller
saber = Runtime.start("saber", "Sabertooth")
saber.connect(saberPort)
sleep(1)
#Initializing Joystick
joystick = Runtime.start("joystick","Joystick")
print(joystick.getControllers())
python.subscribe("joystick","publishJoysti... | 21.12 | 51 | 0.751894 | 68 | 528 | 5.838235 | 0.485294 | 0.060453 | 0.030227 | 0.055416 | 0.211587 | 0.211587 | 0.211587 | 0.211587 | 0.211587 | 0 | 0 | 0.046025 | 0.094697 | 528 | 24 | 52 | 22 | 0.784519 | 0.153409 | 0 | 0.375 | 0 | 0 | 0.182844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
904fd225f8fe0b9727c74b7b31cf0eb0c1430fbd | 794 | py | Python | src/constants.py | MitraSeifari/pystackoverflow | 70da1c6a8407df34496fe9843e8ae7f4c15aac0e | [
"MIT"
] | null | null | null | src/constants.py | MitraSeifari/pystackoverflow | 70da1c6a8407df34496fe9843e8ae7f4c15aac0e | [
"MIT"
] | null | null | null | src/constants.py | MitraSeifari/pystackoverflow | 70da1c6a8407df34496fe9843e8ae7f4c15aac0e | [
"MIT"
] | null | null | null | from types import SimpleNamespace
from src.utils.keyboard import create_keyboard
keys = SimpleNamespace(
settings=':gear: Settings',
cancel=':cross_mark: Cancel',
back=':arrow_left: Back',
next=':arrow_right: Next',
add=':heavy_plus_sign: Add',
edit=':pencil: Edit',
save=':check_mark_butt... | 26.466667 | 66 | 0.715365 | 97 | 794 | 5.587629 | 0.463918 | 0.101476 | 0.099631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153652 | 794 | 29 | 67 | 27.37931 | 0.806548 | 0 | 0 | 0 | 0 | 0 | 0.360202 | 0.062972 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 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 |
90534359708ff8911197cad1bfec21d46c458905 | 1,302 | py | Python | covid_data_tracker/util.py | granularai/gh5050_covid_data_tracker | 7af3013ad9142a20cf42963e39c8968081cec7db | [
"MIT"
] | null | null | null | covid_data_tracker/util.py | granularai/gh5050_covid_data_tracker | 7af3013ad9142a20cf42963e39c8968081cec7db | [
"MIT"
] | 51 | 2020-05-31T17:36:37.000Z | 2020-06-24T05:23:19.000Z | covid_data_tracker/util.py | granularai/gh5050_covid_data_tracker | 7af3013ad9142a20cf42963e39c8968081cec7db | [
"MIT"
] | 1 | 2020-06-11T19:35:41.000Z | 2020-06-11T19:35:41.000Z | import click
from covid_data_tracker.registry import PluginRegistry
def plugin_selector(selected_country: str):
"""plugin selector uses COUNTRY_MAP to find the appropriate plugin
for a given country.
Parameters
----------
selected_country : str
specify the country of interest.
Ret... | 25.529412 | 70 | 0.675115 | 145 | 1,302 | 5.937931 | 0.448276 | 0.090592 | 0.034843 | 0.080139 | 0.083624 | 0.083624 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235791 | 1,302 | 50 | 71 | 26.04 | 0.865327 | 0.369432 | 0 | 0 | 0 | 0 | 0.198347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
905714b59b0d263f8c19b411a33bd80163e9bbb7 | 1,813 | py | Python | tests/test_model.py | artemudovyk/django-updown | 0353cf8ec5c50b4ffd869a56f51ede65b6368ef8 | [
"BSD-2-Clause"
] | 41 | 2015-01-07T07:43:33.000Z | 2020-09-23T04:35:09.000Z | tests/test_model.py | artemudovyk/django-updown | 0353cf8ec5c50b4ffd869a56f51ede65b6368ef8 | [
"BSD-2-Clause"
] | 20 | 2015-01-28T21:02:56.000Z | 2018-08-14T13:39:31.000Z | tests/test_model.py | artemudovyk/django-updown | 0353cf8ec5c50b4ffd869a56f51ede65b6368ef8 | [
"BSD-2-Clause"
] | 19 | 2015-01-06T12:50:05.000Z | 2022-01-21T17:01:56.000Z | # -*- coding: utf-8 -*-
"""
tests.test_model
~~~~~~~~~~~~~~~~
Tests the models provided by the updown rating app
:copyright: 2016, weluse (https://weluse.de)
:author: 2016, Daniel Banck <dbanck@weluse.de>
:license: BSD, see LICENSE for more details.
"""
from __future__ import unicode_literals
import random
from djan... | 31.258621 | 75 | 0.629344 | 219 | 1,813 | 5.109589 | 0.351598 | 0.096515 | 0.096515 | 0.062556 | 0.46202 | 0.399464 | 0.352994 | 0.352994 | 0.352994 | 0.261841 | 0 | 0.054945 | 0.247104 | 1,813 | 57 | 76 | 31.807018 | 0.764835 | 0.166575 | 0 | 0.25 | 0 | 0 | 0.054253 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.21875 | 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 |
90571fc1423b9d2a5a71dbb91569f10170f5532e | 5,179 | py | Python | nlptk/ratings/rake/rake.py | GarryGaller/nlp_toolkit | df98ee25f8a1f4379e751fdd4fd9f5389ffbfd1b | [
"MIT"
] | null | null | null | nlptk/ratings/rake/rake.py | GarryGaller/nlp_toolkit | df98ee25f8a1f4379e751fdd4fd9f5389ffbfd1b | [
"MIT"
] | null | null | null | nlptk/ratings/rake/rake.py | GarryGaller/nlp_toolkit | df98ee25f8a1f4379e751fdd4fd9f5389ffbfd1b | [
"MIT"
] | null | null | null | import sys,os
from typing import List
from collections import defaultdict, Counter
from itertools import groupby, chain, product
import heapq
from pprint import pprint
import string
class Rake():
def __init__(
self,
text:List[List[str]],
stopwords=[],
max_words=100... | 30.827381 | 85 | 0.519598 | 551 | 5,179 | 4.764065 | 0.284936 | 0.036571 | 0.042667 | 0.017143 | 0.188571 | 0.114286 | 0.065524 | 0.065524 | 0.036571 | 0.036571 | 0 | 0.005749 | 0.395443 | 5,179 | 167 | 86 | 31.011976 | 0.832641 | 0.166634 | 0 | 0.225225 | 0 | 0 | 0.000467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.099099 | false | 0 | 0.063063 | 0 | 0.216216 | 0.018018 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9059c31682941520b3a9802d364d8232668dc8f3 | 3,228 | py | Python | SEPHIRA/FastAPI/main.py | dman926/Flask-API | 49e052159a3915ec25305141ecdd6cdeb1d7a25c | [
"MIT"
] | 4 | 2021-04-23T16:51:57.000Z | 2021-06-06T20:28:08.000Z | SEPHIRA/FastAPI/main.py | dman926/Flask-API | 49e052159a3915ec25305141ecdd6cdeb1d7a25c | [
"MIT"
] | 15 | 2021-10-22T01:55:53.000Z | 2022-01-15T11:40:48.000Z | SEPHIRA/FastAPI/main.py | dman926/Flask-API | 49e052159a3915ec25305141ecdd6cdeb1d7a25c | [
"MIT"
] | 3 | 2021-03-21T22:29:05.000Z | 2021-06-06T20:30:18.000Z | from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from starlette import status
from starlette.middleware.base import BaseHTTPMiddleware, RequestResponseEndpoint
from starlette.requests import Request
from starlette.responses import Response
from starlette.types import ASGIApp
from config ... | 32.606061 | 160 | 0.763011 | 386 | 3,228 | 6.186529 | 0.375648 | 0.027219 | 0.027219 | 0.04397 | 0.107621 | 0.063652 | 0 | 0 | 0 | 0 | 0 | 0.002837 | 0.126394 | 3,228 | 99 | 161 | 32.606061 | 0.843972 | 0.005576 | 0 | 0.052632 | 0 | 0.026316 | 0.198306 | 0.032946 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0 | 0.210526 | 0 | 0.276316 | 0.131579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
905b8e431341e337a25074cf4f7919a71c8959b2 | 94,831 | py | Python | bio_rtd/uo/sc_uo.py | open-biotech/bio-rtd | c3e2cf4d7d646bda719e5fc6f694a1cae0e412c0 | [
"MIT"
] | 5 | 2020-03-30T13:26:12.000Z | 2021-04-02T07:10:49.000Z | bio_rtd/uo/sc_uo.py | open-biotech/bio-rtd | c3e2cf4d7d646bda719e5fc6f694a1cae0e412c0 | [
"MIT"
] | null | null | null | bio_rtd/uo/sc_uo.py | open-biotech/bio-rtd | c3e2cf4d7d646bda719e5fc6f694a1cae0e412c0 | [
"MIT"
] | 1 | 2020-06-03T07:50:56.000Z | 2020-06-03T07:50:56.000Z | """Semi continuous unit operations.
Unit operations that accept constant or box-shaped flow rate profile
and provide periodic flow rate profile.
"""
__all__ = ['AlternatingChromatography', 'ACC', 'PCC', 'PCCWithWashDesorption']
__version__ = '0.7.1'
__author__ = 'Jure Sencar'
import typing as _typing
import numpy as... | 39.595407 | 79 | 0.571891 | 11,582 | 94,831 | 4.340097 | 0.056381 | 0.037858 | 0.027016 | 0.015895 | 0.633716 | 0.542801 | 0.489864 | 0.443571 | 0.394692 | 0.356775 | 0 | 0.005981 | 0.35113 | 94,831 | 2,394 | 80 | 39.611947 | 0.810931 | 0.232688 | 0 | 0.267857 | 0 | 0 | 0.078114 | 0.011601 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.03869 | false | 0 | 0.006944 | 0 | 0.063492 | 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 |
905cb03976073d3a05d5e9b6aad19e20554ed770 | 551 | py | Python | fluree/query-generate.py | ivankoster/aioflureedb | d421391a7db1d2acaf8d39f6dfe2997e8097ade8 | [
"BSD-3-Clause"
] | 4 | 2020-09-09T14:58:10.000Z | 2021-12-04T14:11:44.000Z | fluree/query-generate.py | ivankoster/aioflureedb | d421391a7db1d2acaf8d39f6dfe2997e8097ade8 | [
"BSD-3-Clause"
] | 10 | 2020-09-15T14:05:32.000Z | 2022-01-20T11:46:07.000Z | fluree/query-generate.py | ivankoster/aioflureedb | d421391a7db1d2acaf8d39f6dfe2997e8097ade8 | [
"BSD-3-Clause"
] | 1 | 2020-12-01T10:10:00.000Z | 2020-12-01T10:10:00.000Z | #!/usr/bin/python3
import json
from aioflureedb.signing import DbSigner
def free_test(signer):
data = {"foo": 42, "bar": "appelvlaai"}
body, headers, uri = signer.sign_query(data)
rval = dict()
rval["body"] = body
rval["headers"] = headers
rval["uri"] = uri
rval = json.dumps(rval, indent=4,... | 27.55 | 76 | 0.716878 | 61 | 551 | 6.409836 | 0.606557 | 0.040921 | 0.071611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120172 | 0.154265 | 551 | 19 | 77 | 29 | 0.718884 | 0.030853 | 0 | 0 | 0 | 0 | 0.266917 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.2 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
905d2dacd283245c26f6f827ba4beeef737df514 | 3,447 | py | Python | actions/delete_bridge_domain.py | StackStorm-Exchange/network_essentials | 99cb5a966812fb503d340c6689390dfb08c4e374 | [
"Apache-2.0"
] | 5 | 2017-02-27T23:48:10.000Z | 2020-11-12T18:55:28.000Z | actions/delete_bridge_domain.py | StackStorm-Exchange/network_essentials | 99cb5a966812fb503d340c6689390dfb08c4e374 | [
"Apache-2.0"
] | 5 | 2017-03-07T01:19:21.000Z | 2020-09-16T18:22:05.000Z | actions/delete_bridge_domain.py | StackStorm-Exchange/network_essentials | 99cb5a966812fb503d340c6689390dfb08c4e374 | [
"Apache-2.0"
] | 2 | 2017-06-20T00:52:58.000Z | 2021-01-28T17:45:48.000Z | # Copyright 2016 Brocade Communications Systems, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or ... | 41.53012 | 100 | 0.607775 | 408 | 3,447 | 4.977941 | 0.389706 | 0.141802 | 0.065485 | 0.079271 | 0.140817 | 0.123584 | 0.089119 | 0 | 0 | 0 | 0 | 0.006364 | 0.316217 | 3,447 | 82 | 101 | 42.036585 | 0.855325 | 0.232666 | 0 | 0.12766 | 0 | 0 | 0.119213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0.042553 | 0.085106 | 0 | 0.234043 | 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 |
905dd4ceac49c186f37f935a9aa23bbcc3c6c3d1 | 1,182 | py | Python | python/signature.py | IUIDSL/kgap_lincs-idg | 1f781e5f34cc5d006a22b8357100dc01845a0690 | [
"CC0-1.0"
] | 4 | 2021-01-14T14:01:06.000Z | 2021-06-21T12:41:32.000Z | python/signature.py | IUIDSL/kgap_lincs-idg | 1f781e5f34cc5d006a22b8357100dc01845a0690 | [
"CC0-1.0"
] | null | null | null | python/signature.py | IUIDSL/kgap_lincs-idg | 1f781e5f34cc5d006a22b8357100dc01845a0690 | [
"CC0-1.0"
] | 1 | 2020-09-01T09:56:58.000Z | 2020-09-01T09:56:58.000Z | #!/usr/bin/env python3
###
# Based on signature.R
###
import sys,os,logging
import numpy as np
import pandas as pd
if __name__=="__main__":
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG)
if (len(sys.argv) < 3):
logging.error("3 file args required, LINCS sig info for GSE70138 and... | 35.818182 | 104 | 0.678511 | 187 | 1,182 | 4.074866 | 0.486631 | 0.047244 | 0.047244 | 0.044619 | 0.178478 | 0.178478 | 0.136483 | 0.136483 | 0.136483 | 0.136483 | 0 | 0.065049 | 0.128596 | 1,182 | 32 | 105 | 36.9375 | 0.674757 | 0.116751 | 0 | 0 | 0 | 0 | 0.309709 | 0.024272 | 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 |
905ec305866e4908924c5460c3c40007ef7a2438 | 8,289 | py | Python | HW3 - Contest Data Base/main.py | 916-Maria-Popescu/Fundamental-of-Programming | 6ddf951622bd6cfde16ede5ab6ee966cff657db2 | [
"MIT"
] | null | null | null | HW3 - Contest Data Base/main.py | 916-Maria-Popescu/Fundamental-of-Programming | 6ddf951622bd6cfde16ede5ab6ee966cff657db2 | [
"MIT"
] | null | null | null | HW3 - Contest Data Base/main.py | 916-Maria-Popescu/Fundamental-of-Programming | 6ddf951622bd6cfde16ede5ab6ee966cff657db2 | [
"MIT"
] | null | null | null | # ASSIGNMENT 3
"""
During a programming contest, each contestant had to solve 3 problems (named P1, P2 and P3).
Afterwards, an evaluation committee graded the solutions to each of the problems using integers between 0 and 10.
The committee needs a program that will allow managing the list of scores and esta... | 37.849315 | 120 | 0.583183 | 1,213 | 8,289 | 3.906843 | 0.1385 | 0.016037 | 0.037983 | 0.018569 | 0.474995 | 0.386368 | 0.346065 | 0.301962 | 0.262714 | 0.25997 | 0 | 0.046228 | 0.248402 | 8,289 | 218 | 121 | 38.022936 | 0.714446 | 0.434552 | 0 | 0.235849 | 0 | 0 | 0.135991 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.160377 | false | 0 | 0 | 0 | 0.226415 | 0.056604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90667496af942d519fbd83a19bb664048a86c4ea | 3,708 | py | Python | examples/nested/mog4_fast.py | ivandebono/nnest | 490b0797312c22a1019f5f400db684b1be5e8fe5 | [
"MIT"
] | null | null | null | examples/nested/mog4_fast.py | ivandebono/nnest | 490b0797312c22a1019f5f400db684b1be5e8fe5 | [
"MIT"
] | null | null | null | examples/nested/mog4_fast.py | ivandebono/nnest | 490b0797312c22a1019f5f400db684b1be5e8fe5 | [
"MIT"
] | null | null | null | import os
import sys
import argparse
import copy
import numpy as np
import scipy.special
sys.path.append(os.getcwd())
def log_gaussian_pdf(theta, sigma=1, mu=0, ndim=None):
if ndim is None:
try:
ndim = len(theta)
except TypeError:
assert isinstance(theta, (float, int)), t... | 34.654206 | 135 | 0.618932 | 505 | 3,708 | 4.378218 | 0.253465 | 0.061058 | 0.115332 | 0.043419 | 0.153777 | 0.132067 | 0.095884 | 0.036183 | 0.036183 | 0.036183 | 0 | 0.025379 | 0.234898 | 3,708 | 107 | 136 | 34.654206 | 0.753965 | 0 | 0 | 0.073171 | 0 | 0 | 0.081693 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 1 | 0.097561 | false | 0 | 0.085366 | 0.02439 | 0.268293 | 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 |
9066a9157ffc22c0ce94777109f0d24999e2d0dd | 3,060 | py | Python | sendria/message.py | scottcove/sendria | 26e7581cc8d7673887ac8018d8d32ff4ad23cfbd | [
"MIT"
] | 85 | 2020-10-03T22:11:55.000Z | 2022-03-25T12:49:44.000Z | sendria/message.py | scottcove/sendria | 26e7581cc8d7673887ac8018d8d32ff4ad23cfbd | [
"MIT"
] | 13 | 2020-10-05T10:59:34.000Z | 2022-03-26T08:16:24.000Z | sendria/message.py | scottcove/sendria | 26e7581cc8d7673887ac8018d8d32ff4ad23cfbd | [
"MIT"
] | 13 | 2020-10-15T13:32:40.000Z | 2022-03-28T01:46:58.000Z | __all__ = ['Message']
import uuid
from email.header import decode_header as _decode_header
from email.message import Message as EmailMessage
from email.utils import getaddresses
from typing import Union, List, Dict, Any
class Message:
__slots__ = (
'id',
'sender_envelope', 'sender_message',
... | 34.382022 | 113 | 0.56732 | 374 | 3,060 | 4.457219 | 0.240642 | 0.071986 | 0.053989 | 0.071986 | 0.152969 | 0.134973 | 0.10018 | 0 | 0 | 0 | 0 | 0.003699 | 0.293137 | 3,060 | 88 | 114 | 34.772727 | 0.76699 | 0 | 0 | 0.090909 | 0 | 0 | 0.106536 | 0.020915 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077922 | false | 0 | 0.064935 | 0.025974 | 0.246753 | 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 |
9067bc1c116c9890747e5871781d17c6c8744561 | 30,017 | py | Python | nce_glue/run_glue.py | salesforce/ebm_calibration_nlu | e0598923551c4587e0ea8c4feb001cb9cc736103 | [
"BSD-3-Clause"
] | 7 | 2021-04-22T09:56:54.000Z | 2022-03-20T14:44:02.000Z | nce_glue/run_glue.py | salesforce/ebm_calibration_nlu | e0598923551c4587e0ea8c4feb001cb9cc736103 | [
"BSD-3-Clause"
] | 1 | 2022-02-22T04:41:44.000Z | 2022-02-22T18:21:23.000Z | nce_glue/run_glue.py | salesforce/ebm_calibration_nlu | e0598923551c4587e0ea8c4feb001cb9cc736103 | [
"BSD-3-Clause"
] | 1 | 2021-06-21T09:06:24.000Z | 2021-06-21T09:06:24.000Z | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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 cop... | 50.279732 | 467 | 0.667922 | 3,877 | 30,017 | 4.874387 | 0.134898 | 0.027939 | 0.019685 | 0.019473 | 0.498518 | 0.436766 | 0.384432 | 0.347603 | 0.32178 | 0.300243 | 0 | 0.007772 | 0.22414 | 30,017 | 596 | 468 | 50.364094 | 0.803684 | 0.107306 | 0 | 0.207824 | 0 | 0.002445 | 0.116845 | 0.024761 | 0 | 0 | 0 | 0 | 0.00978 | 1 | 0.012225 | false | 0 | 0.0489 | 0 | 0.146699 | 0.02445 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |