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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1dc6adbf26b08ef0d038b8c3d73b368f4a084f22 | 1,943 | py | Python | setup.py | maxpivo/bumblebee-status | c7e1759e8526ebd5ee9671839a98f7189b780275 | [
"MIT"
] | null | null | null | setup.py | maxpivo/bumblebee-status | c7e1759e8526ebd5ee9671839a98f7189b780275 | [
"MIT"
] | null | null | null | setup.py | maxpivo/bumblebee-status | c7e1759e8526ebd5ee9671839a98f7189b780275 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Setup file for bumbleestatus bar to allow pip install of full package"""
# -*- coding: utf8 - *-
from setuptools import setup
import versioneer
with open('requirements/base.txt') as f:
INSTALL_REQS = [line for line in f.read().split('\n') if line]
# Module packages
def read_module(filenam... | 34.696429 | 81 | 0.669068 | 240 | 1,943 | 5.225 | 0.4125 | 0.215311 | 0.031898 | 0.019139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001827 | 0.154915 | 1,943 | 55 | 82 | 35.327273 | 0.761876 | 0.097272 | 0 | 0 | 0 | 0 | 0.291212 | 0.064331 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.065217 | 0 | 0.108696 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1dc94a77e3d3e78133e8b1d0cfe4dc3331ec48b8 | 233 | py | Python | manager/apps/main/views.py | willArrive/brand-manager | 8fc9b07921b970e88c2e2abd2a69c0e8a27ad212 | [
"MIT"
] | 3 | 2016-11-17T14:21:25.000Z | 2019-11-15T16:25:11.000Z | manager/apps/main/views.py | willArrive/brand-manager | 8fc9b07921b970e88c2e2abd2a69c0e8a27ad212 | [
"MIT"
] | null | null | null | manager/apps/main/views.py | willArrive/brand-manager | 8fc9b07921b970e88c2e2abd2a69c0e8a27ad212 | [
"MIT"
] | 1 | 2016-12-19T23:32:48.000Z | 2016-12-19T23:32:48.000Z | from django.shortcuts import render
from django.views.generic import View
class HomeView(View):
r"""
"""
template_name = 'main/home.jade'
def get(self, request):
return render(request, self.template_name)
| 17.923077 | 50 | 0.682403 | 30 | 233 | 5.233333 | 0.7 | 0.127389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2103 | 233 | 12 | 51 | 19.416667 | 0.853261 | 0 | 0 | 0 | 0 | 0 | 0.063063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
1dd19b88010f60b997658518f6056c60e8eb9674 | 1,510 | py | Python | jamsession/forms/fields.py | cmheisel/django-jamsession | 68147eef726b964f72451e8558437abe4b2848b2 | [
"MIT"
] | 1 | 2015-11-05T05:10:18.000Z | 2015-11-05T05:10:18.000Z | jamsession/forms/fields.py | cmheisel/django-jamsession | 68147eef726b964f72451e8558437abe4b2848b2 | [
"MIT"
] | null | null | null | jamsession/forms/fields.py | cmheisel/django-jamsession | 68147eef726b964f72451e8558437abe4b2848b2 | [
"MIT"
] | null | null | null | import pprint
from django import forms
from jamsession.util import FIELD_TYPE_TRANSLATIONS
class SchemaField(forms.CharField):
"""
Custom field to accept a comma and line delimited
text input of a schema definition
"""
def validate_key_value_pairs(self, key, value, schema):
if not(key a... | 31.458333 | 79 | 0.586755 | 190 | 1,510 | 4.563158 | 0.384211 | 0.055363 | 0.086505 | 0.096886 | 0.071511 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002935 | 0.323179 | 1,510 | 47 | 80 | 32.12766 | 0.845401 | 0 | 0 | 0.088235 | 0 | 0 | 0.111585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088235 | null | null | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1dd250a1ee205894928a9a1192b78eb99b7b98da | 1,857 | py | Python | src/scripts/models/dataset_split.py | UKPLab/conll2019-snopes-experiments | 102f4a05cfba781036bd3a7b06022246e53765ad | [
"Apache-2.0"
] | 5 | 2019-11-08T09:17:07.000Z | 2022-01-25T19:37:06.000Z | src/scripts/models/dataset_split.py | UKPLab/conll2019-snopes-experiments | 102f4a05cfba781036bd3a7b06022246e53765ad | [
"Apache-2.0"
] | 18 | 2020-01-28T22:17:34.000Z | 2022-03-11T23:57:22.000Z | src/scripts/models/dataset_split.py | UKPLab/conll2019-snopes-experiments | 102f4a05cfba781036bd3a7b06022246e53765ad | [
"Apache-2.0"
] | 1 | 2021-03-08T12:02:24.000Z | 2021-03-08T12:02:24.000Z | import argparse
import json
import os
from sklearn.model_selection import train_test_split
from common.dataset.reader import JSONLineReader
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--file', help='/path/to/jsonl/file', required=True)
parser.add_argument('--out', h... | 39.510638 | 120 | 0.710824 | 265 | 1,857 | 4.85283 | 0.301887 | 0.077761 | 0.130638 | 0.163297 | 0.455677 | 0.455677 | 0.387247 | 0.387247 | 0.387247 | 0.387247 | 0 | 0.009299 | 0.131395 | 1,857 | 47 | 121 | 39.510638 | 0.787973 | 0 | 0 | 0 | 0 | 0 | 0.122151 | 0.020055 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.217391 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ddb1bca315ff8439993041af2199bb664bdb6f0 | 2,131 | py | Python | accounts/models.py | Lucasfeelix/ong-joao-de-barro | be20042714883dac0a75a97f5ff9fd7804e6e218 | [
"MIT"
] | null | null | null | accounts/models.py | Lucasfeelix/ong-joao-de-barro | be20042714883dac0a75a97f5ff9fd7804e6e218 | [
"MIT"
] | null | null | null | accounts/models.py | Lucasfeelix/ong-joao-de-barro | be20042714883dac0a75a97f5ff9fd7804e6e218 | [
"MIT"
] | null | null | null | # coding=utf-8
import re
from django.db import models
from django.contrib.auth.models import AbstractBaseUser, UserManager
from django.contrib.auth.models import PermissionsMixin
from django.core import validators
class User(AbstractBaseUser, PermissionsMixin):
'''
Modelo para sobreescrever o admin do Django.... | 40.980769 | 78 | 0.602065 | 239 | 2,131 | 5.276151 | 0.569038 | 0.031721 | 0.026963 | 0.033307 | 0.150674 | 0.117367 | 0.065028 | 0.065028 | 0.065028 | 0 | 0 | 0.004772 | 0.311591 | 2,131 | 51 | 79 | 41.784314 | 0.854806 | 0.206945 | 0 | 0 | 0 | 0 | 0.166065 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.090909 | false | 0 | 0.151515 | 0.090909 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ddff6f1f395f17b01414835c5bad2a01c1585ce | 653 | py | Python | setup.py | lffelmann/printWithStyle | 8447ef488f2c8a07f09a8f5da212eaa616828e6f | [
"MIT"
] | 1 | 2021-06-18T19:22:04.000Z | 2021-06-18T19:22:04.000Z | setup.py | lffelmann/printWithStyle | 8447ef488f2c8a07f09a8f5da212eaa616828e6f | [
"MIT"
] | null | null | null | setup.py | lffelmann/printWithStyle | 8447ef488f2c8a07f09a8f5da212eaa616828e6f | [
"MIT"
] | null | null | null | import setuptools
VERSION="0.0.2"
DESCRIPTION="Small library to style print()."
with open("README.md", "r") as fh:
LONG_DESCRIPTION = fh.read()
setuptools.setup(
name="printWithStyle",
version=VERSION,
author="lffelmann",
desription=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_des... | 27.208333 | 54 | 0.675345 | 71 | 653 | 6.098592 | 0.71831 | 0.138568 | 0.180139 | 0.138568 | 0.12933 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011278 | 0.185299 | 653 | 24 | 55 | 27.208333 | 0.802632 | 0 | 0 | 0 | 0 | 0 | 0.362385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1de0043dddec8d281a0e5cc7e9b0af8d55094a1c | 2,249 | py | Python | install/core/python/tank/errors.py | JoanAzpeitia/lp_sg | e0ee79555e419dd2ae3a5f31e5515b3f40b22a62 | [
"MIT"
] | null | null | null | install/core/python/tank/errors.py | JoanAzpeitia/lp_sg | e0ee79555e419dd2ae3a5f31e5515b3f40b22a62 | [
"MIT"
] | null | null | null | install/core/python/tank/errors.py | JoanAzpeitia/lp_sg | e0ee79555e419dd2ae3a5f31e5515b3f40b22a62 | [
"MIT"
] | 1 | 2020-02-15T10:42:56.000Z | 2020-02-15T10:42:56.000Z | # Copyright (c) 2013 Shotgun Software Inc.
#
# CONFIDENTIAL AND PROPRIETARY
#
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
# Source Code License included in this distribution package. See LICENSE.
# By accessing, using, copying or modifying this work you indicate your
# agreement to the S... | 27.096386 | 101 | 0.715874 | 259 | 2,249 | 6.185328 | 0.517375 | 0.101124 | 0.109863 | 0.135456 | 0.220974 | 0.199126 | 0.10362 | 0.054931 | 0 | 0 | 0 | 0.002271 | 0.216985 | 2,249 | 82 | 102 | 27.426829 | 0.907439 | 0.559804 | 0 | 0 | 0 | 0 | 0.158552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1de0125e21aaa2dcb34675277c9d218ab97eef2d | 1,557 | py | Python | dev/circuitpython/examples/tmp117_rate_and_averaging_test.py | scripsi/picodeebee | 0ec77e92f09fa8711705623482e57a5e0b702696 | [
"MIT"
] | null | null | null | dev/circuitpython/examples/tmp117_rate_and_averaging_test.py | scripsi/picodeebee | 0ec77e92f09fa8711705623482e57a5e0b702696 | [
"MIT"
] | null | null | null | dev/circuitpython/examples/tmp117_rate_and_averaging_test.py | scripsi/picodeebee | 0ec77e92f09fa8711705623482e57a5e0b702696 | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2020 Bryan Siepert, written for Adafruit Industries
#
# SPDX-License-Identifier: Unlicense
# pylint:disable=no-member
# This example is best viewed using a serial plotter
# such as the one built into the Mu editor.
import time
import board
from adafruit_tmp117 import TMP117, AverageC... | 35.386364 | 83 | 0.7842 | 188 | 1,557 | 6.287234 | 0.468085 | 0.129442 | 0.167513 | 0.257191 | 0.452623 | 0.300338 | 0.114213 | 0 | 0 | 0 | 0 | 0.070948 | 0.140013 | 1,557 | 43 | 84 | 36.209302 | 0.8118 | 0.648683 | 0 | 0.111111 | 0 | 0 | 0.198758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1de171445c8f77a34b7ee13f79c3aef892b82704 | 885 | py | Python | setup.py | mcauser/micropython-tm1640 | 62c9ae24a4264b0d600834965576636a20d966a5 | [
"MIT"
] | 11 | 2017-12-05T15:42:45.000Z | 2021-12-21T23:40:06.000Z | setup.py | mcauser/micropython-tm1640 | 62c9ae24a4264b0d600834965576636a20d966a5 | [
"MIT"
] | null | null | null | setup.py | mcauser/micropython-tm1640 | 62c9ae24a4264b0d600834965576636a20d966a5 | [
"MIT"
] | 5 | 2019-02-21T04:45:31.000Z | 2022-01-11T02:07:36.000Z | import sys
# Remove current dir from sys.path, otherwise setuptools will peek up our
# module instead of system.
sys.path.pop(0)
from setuptools import setup
setup(
name='micropython-tm1640',
py_modules=['tm1640'],
version='1.0.0',
description='MicroPython library for TM1640 LED driver.',
long_desc... | 35.4 | 111 | 0.692655 | 108 | 885 | 5.638889 | 0.62963 | 0.044335 | 0.049261 | 0.065681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040446 | 0.189831 | 885 | 25 | 112 | 35.4 | 0.808926 | 0.109605 | 0 | 0 | 0 | 0 | 0.553435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1de32c3cc4606ffc2949d9e9d7d71f437b3d1318 | 8,325 | py | Python | Sketches/CL/Topology3D/Utils/TopologyViewer3DWithParams.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 12 | 2015-10-20T10:22:01.000Z | 2021-07-19T10:09:44.000Z | Sketches/CL/Topology3D/Utils/TopologyViewer3DWithParams.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 2 | 2015-10-20T10:22:55.000Z | 2017-02-13T11:05:25.000Z | Sketches/CL/Topology3D/Utils/TopologyViewer3DWithParams.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 6 | 2015-03-09T12:51:59.000Z | 2020-03-01T13:06:21.000Z | # -*- coding: utf-8 -*-
# Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1)
#
# (1) Kamaelia Contributors are listed in the AUTHORS file and at
# http://www.kamaelia.org/AUTHORS - please extend this file,
# not this notice.
#
# Licensed under the Apache License, Version 2.0 (the "Lice... | 48.970588 | 119 | 0.512072 | 859 | 8,325 | 4.901048 | 0.257276 | 0.039905 | 0.034204 | 0.028504 | 0.248456 | 0.152494 | 0.101188 | 0.032779 | 0.015202 | 0.015202 | 0 | 0.030663 | 0.373213 | 8,325 | 170 | 120 | 48.970588 | 0.776159 | 0.160601 | 0 | 0.114286 | 0 | 0 | 0.261656 | 0.035205 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.038095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1de4d1e061b2c2802a0ceea86c9beb0a2887603d | 4,770 | py | Python | tests/unittests/test_02_migration_files.py | sturmianseq/pydbvolve | e18bb8cf98997c52de0cf30a8e106c480ba0bb57 | [
"MIT"
] | 5 | 2017-05-12T15:03:51.000Z | 2020-11-10T02:36:45.000Z | tests/unittests/test_02_migration_files.py | sturmianseq/pydbvolve | e18bb8cf98997c52de0cf30a8e106c480ba0bb57 | [
"MIT"
] | 7 | 2017-06-09T16:51:44.000Z | 2017-11-06T14:03:26.000Z | tests/unittests/test_02_migration_files.py | sturmianseq/pydbvolve | e18bb8cf98997c52de0cf30a8e106c480ba0bb57 | [
"MIT"
] | 1 | 2021-08-21T02:46:42.000Z | 2021-08-21T02:46:42.000Z | import os
import sys
import sqlite3
import os
import sys
# Set path to force the import of the local module
sys.path.insert(1, os.path.abspath('.'))
import pydbvolve
TEST_CONFIG_FILE = os.path.join('tests', 'pydbvolve.conf')
def test_00_local_module(capsys):
"""Verify that we are using the local module."""
... | 41.478261 | 106 | 0.723061 | 649 | 4,770 | 5.118644 | 0.224961 | 0.024082 | 0.033715 | 0.061108 | 0.469597 | 0.413606 | 0.366045 | 0.32661 | 0.286574 | 0.272727 | 0 | 0.022671 | 0.158491 | 4,770 | 114 | 107 | 41.842105 | 0.804933 | 0.186792 | 0 | 0.324675 | 0 | 0 | 0.132341 | 0 | 0 | 0 | 0 | 0 | 0.402597 | 1 | 0.090909 | false | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1de811c1f07d4c2bcc6641ae559e1d6f7dbc3748 | 487 | py | Python | Home/migrations/0001_initial.py | Ubtohts/infinitydownloader | c3c3e579cb39bbf909491467f3d04ba49673c2a6 | [
"MIT"
] | null | null | null | Home/migrations/0001_initial.py | Ubtohts/infinitydownloader | c3c3e579cb39bbf909491467f3d04ba49673c2a6 | [
"MIT"
] | null | null | null | Home/migrations/0001_initial.py | Ubtohts/infinitydownloader | c3c3e579cb39bbf909491467f3d04ba49673c2a6 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-05-16 00:23
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='song',
fields=[
('id', models.BigAutoField(... | 22.136364 | 117 | 0.574949 | 51 | 487 | 5.411765 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053097 | 0.303901 | 487 | 21 | 118 | 23.190476 | 0.761062 | 0.092402 | 0 | 0 | 1 | 0 | 0.027273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1de9c06fb50eaa892870ab56a09c6eb3555a8d8a | 2,771 | py | Python | Asap-3.8.4/Test/RawRDF.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | 1 | 2021-10-19T11:35:34.000Z | 2021-10-19T11:35:34.000Z | Asap-3.8.4/Test/RawRDF.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | null | null | null | Asap-3.8.4/Test/RawRDF.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | 3 | 2016-07-18T19:22:48.000Z | 2021-07-06T03:06:42.000Z | "Test the RawRadialDistributionFunction function."
from numpy import *
from asap3 import *
from asap3 import _asap
from ase.lattice.cubic import FaceCenteredCubic
from asap3.testtools import *
from asap3.Internal.ListOfElements import ListOfElements
print_version(1)
# testtypes: latticeconst, maxRDF, bins, useEMT
te... | 29.168421 | 77 | 0.595453 | 365 | 2,771 | 4.476712 | 0.29589 | 0.011016 | 0.007344 | 0.009792 | 0.422277 | 0.422277 | 0.323133 | 0.323133 | 0.323133 | 0.323133 | 0 | 0.067913 | 0.266691 | 2,771 | 94 | 78 | 29.478723 | 0.73622 | 0.01624 | 0 | 0.26087 | 0 | 0 | 0.091811 | 0.01065 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.144928 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1df31b696c1e9bbb09bd4c7cf1a1ad5f0cfac27f | 2,102 | py | Python | libcst/codemod/commands/tests/test_add_trailing_commas.py | jschavesr/LibCST | e5ab7b90b4c9cd1f46e5b875ad317411abf48298 | [
"Apache-2.0"
] | null | null | null | libcst/codemod/commands/tests/test_add_trailing_commas.py | jschavesr/LibCST | e5ab7b90b4c9cd1f46e5b875ad317411abf48298 | [
"Apache-2.0"
] | null | null | null | libcst/codemod/commands/tests/test_add_trailing_commas.py | jschavesr/LibCST | e5ab7b90b4c9cd1f46e5b875ad317411abf48298 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
from libcst.codemod import CodemodTest
from libcst.codemod.commands.add_trailing_commas import AddTrailingCommas
class AddTrailingCommas... | 23.098901 | 78 | 0.52236 | 241 | 2,102 | 4.456432 | 0.33195 | 0.039106 | 0.078212 | 0.156425 | 0.434823 | 0.434823 | 0.39851 | 0.286778 | 0.106145 | 0.106145 | 0 | 0.004525 | 0.369172 | 2,102 | 90 | 79 | 23.355556 | 0.80543 | 0.080875 | 0 | 0.529412 | 0 | 0 | 0.439252 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 1 | 0.088235 | false | 0.132353 | 0.029412 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1df8fed911da1764543d57fb7f5ded92d44fb35b | 1,880 | py | Python | src/backend/app/models/contact_info.py | douglasdaly/dougliz-wedding | da673baf3a7387c3818960c0ffa12ab7c830a89b | [
"MIT"
] | 5 | 2020-02-02T02:39:23.000Z | 2021-08-17T15:50:57.000Z | src/backend/app/models/contact_info.py | douglasdaly/dougliz-wedding | da673baf3a7387c3818960c0ffa12ab7c830a89b | [
"MIT"
] | 4 | 2021-03-31T19:39:57.000Z | 2022-01-22T09:29:10.000Z | src/backend/app/models/contact_info.py | douglasdaly/dougliz-wedding | da673baf3a7387c3818960c0ffa12ab7c830a89b | [
"MIT"
] | 1 | 2020-04-12T17:11:43.000Z | 2020-04-12T17:11:43.000Z | # -*- coding: utf-8 -*-
"""
Contact information model.
"""
from enum import IntEnum
from typing import Optional
from uuid import UUID
from pydantic import EmailStr
from app.models.base import AppBaseModel
from app.models.base import get_custom_getter
class PreferredMethod(IntEnum):
PHONE = 1
MOBILE = 2
... | 21.363636 | 61 | 0.656383 | 192 | 1,880 | 6.348958 | 0.375 | 0.068909 | 0.103363 | 0.106645 | 0.09516 | 0.057424 | 0 | 0 | 0 | 0 | 0 | 0.003544 | 0.249468 | 1,880 | 87 | 62 | 21.609195 | 0.860383 | 0.175 | 0 | 0.088889 | 0 | 0 | 0.055939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0.044444 | 0.133333 | 0 | 0.755556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1df954209c8ebb4bdcc7c8a7a5916bdaad52598c | 8,409 | py | Python | avm/avm.py | SevanSSP/avm | 210ff60c960851684aec2097d178319c15cd412b | [
"MIT"
] | 1 | 2019-10-11T08:24:29.000Z | 2019-10-11T08:24:29.000Z | avm/avm.py | SevanSSP/avm | 210ff60c960851684aec2097d178319c15cd412b | [
"MIT"
] | 4 | 2019-08-21T08:03:30.000Z | 2022-01-19T08:24:15.000Z | avm/avm.py | SevanSSP/avm | 210ff60c960851684aec2097d178319c15cd412b | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""
Module for working with DNVGL Application Version Manager
"""
import logging
import os
from xml.dom import minidom
from collections import OrderedDict
# configure logger
logger = logging.getLogger(__name__)
def exe_path(appname, version=None, appverxml=None):
"""
Return absolute path t... | 35.782979 | 121 | 0.620645 | 878 | 8,409 | 5.925968 | 0.165148 | 0.03498 | 0.021526 | 0.025947 | 0.682106 | 0.638478 | 0.638478 | 0.622718 | 0.600038 | 0.600038 | 0 | 0.000167 | 0.287787 | 8,409 | 234 | 122 | 35.935897 | 0.868592 | 0.234867 | 0 | 0.59375 | 0 | 0 | 0.287952 | 0.065568 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023438 | false | 0 | 0.03125 | 0 | 0.140625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1dfda2acc1a1c1e72cb7fbeaf0236c26664d6857 | 13,346 | py | Python | poefixer/db.py | trh3/poefixer | dafc489ce41d176b0289ba1b48ec82bb6d9e9f07 | [
"MIT"
] | null | null | null | poefixer/db.py | trh3/poefixer | dafc489ce41d176b0289ba1b48ec82bb6d9e9f07 | [
"MIT"
] | null | null | null | poefixer/db.py | trh3/poefixer | dafc489ce41d176b0289ba1b48ec82bb6d9e9f07 | [
"MIT"
] | null | null | null | """
A database module for Python PoE API data.
Where possible the names of the fields in the API are preserved. However,
one major exception is in the "id" field, which is renamed to "api_id"
and a new, auto-incrementing primary key is labeled "id".
"""
import re
import time
import logging
import sqlalchemy
from sql... | 38.572254 | 79 | 0.67376 | 1,579 | 13,346 | 5.575681 | 0.207726 | 0.141754 | 0.194911 | 0.093707 | 0.391186 | 0.342572 | 0.224443 | 0.206497 | 0.165152 | 0.158678 | 0 | 0.006248 | 0.220516 | 13,346 | 345 | 80 | 38.684058 | 0.840046 | 0.161172 | 0 | 0.190476 | 0 | 0 | 0.073208 | 0.00382 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.025974 | 0.017316 | 0.554113 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1dff51c479b17fd73c0a3d271d81606da26234ad | 1,884 | py | Python | authors/apps/articles/migrations/0002_auto_20180924_2002.py | andela/ah-magnificent6 | daf55ce4819f57cec8510c5726e86a0b1e78e3e1 | [
"BSD-3-Clause"
] | null | null | null | authors/apps/articles/migrations/0002_auto_20180924_2002.py | andela/ah-magnificent6 | daf55ce4819f57cec8510c5726e86a0b1e78e3e1 | [
"BSD-3-Clause"
] | 75 | 2018-08-28T08:37:04.000Z | 2022-03-11T23:29:08.000Z | authors/apps/articles/migrations/0002_auto_20180924_2002.py | andela/ah-magnificent6 | daf55ce4819f57cec8510c5726e86a0b1e78e3e1 | [
"BSD-3-Clause"
] | 2 | 2018-08-27T08:13:55.000Z | 2018-12-18T09:17:26.000Z | # Generated by Django 2.1 on 2018-09-24 17:02
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('articles', '0001_initial')... | 33.052632 | 125 | 0.601911 | 180 | 1,884 | 6.166667 | 0.322222 | 0.056757 | 0.063063 | 0.099099 | 0.568468 | 0.514414 | 0.317117 | 0.259459 | 0.259459 | 0.259459 | 0 | 0.024444 | 0.283439 | 1,884 | 56 | 126 | 33.642857 | 0.797778 | 0.022824 | 0 | 0.54 | 1 | 0 | 0.108755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06 | 0 | 0.12 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3801da4cb901d495ad8b969271d51d09d3d4bb53 | 3,592 | py | Python | tests/test_fib.py | William-zx/sonic-mgmt | 3268daf93988fde7d80810f0e4fab1f40b34f6cd | [
"Apache-2.0"
] | null | null | null | tests/test_fib.py | William-zx/sonic-mgmt | 3268daf93988fde7d80810f0e4fab1f40b34f6cd | [
"Apache-2.0"
] | null | null | null | tests/test_fib.py | William-zx/sonic-mgmt | 3268daf93988fde7d80810f0e4fab1f40b34f6cd | [
"Apache-2.0"
] | null | null | null | import pytest
from netaddr import *
import time
import json
import logging
import requests
from ptf_runner import ptf_runner
from ansible_host import AnsibleHost
from datetime import datetime
logger = logging.getLogger(__name__)
@pytest.mark.parametrize("ipv4, ipv6, mtu", [pytest.param(True, True, 1514)])
def test_f... | 37.416667 | 121 | 0.557071 | 439 | 3,592 | 4.416856 | 0.364465 | 0.024755 | 0.021661 | 0.030944 | 0.111913 | 0.055699 | 0.055699 | 0.055699 | 0.055699 | 0.055699 | 0 | 0.016522 | 0.292316 | 3,592 | 95 | 122 | 37.810526 | 0.746263 | 0.033408 | 0 | 0.078947 | 0 | 0 | 0.198962 | 0.048155 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.118421 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3805102082748d8dd7d052d7201cd3211ed7eb94 | 572 | py | Python | app/setup.py | grischard/osm-observer | 9e833e98696abc4a2aab942c8899aaf039166fc1 | [
"MIT"
] | 4 | 2018-04-24T17:55:08.000Z | 2021-02-18T00:52:04.000Z | app/setup.py | grischard/osm-observer | 9e833e98696abc4a2aab942c8899aaf039166fc1 | [
"MIT"
] | 1 | 2021-02-08T20:30:42.000Z | 2021-02-08T20:30:42.000Z | app/setup.py | grischard/osm-observer | 9e833e98696abc4a2aab942c8899aaf039166fc1 | [
"MIT"
] | 2 | 2019-09-27T23:57:11.000Z | 2020-09-19T19:01:37.000Z | # -*- coding: utf-8 -*-
"""
setup.py
~~~~~~~~
:copyright: (c) 2016 by Omniscale GmbH & Co. KG.
------------
OSM Observer
------------
"""
from setuptools import setup, find_packages
setup(
name='osm_observer',
version='0.1.0',
url='<enter URL here>',
license='BSD',
author='Omniscale'... | 19.066667 | 52 | 0.603147 | 64 | 572 | 5.1875 | 0.75 | 0.066265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017505 | 0.201049 | 572 | 29 | 53 | 19.724138 | 0.708972 | 0.241259 | 0 | 0 | 0 | 0 | 0.232779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3809006de72c27ce19e689b788622b601a0aed0c | 493 | py | Python | algorithms/python/376.py | viing937/leetcode | e21ca52c98bddf59e43522c0aace5e8cf84350eb | [
"MIT"
] | 3 | 2016-10-01T10:15:09.000Z | 2017-07-09T02:53:36.000Z | algorithms/python/376.py | viing937/leetcode | e21ca52c98bddf59e43522c0aace5e8cf84350eb | [
"MIT"
] | null | null | null | algorithms/python/376.py | viing937/leetcode | e21ca52c98bddf59e43522c0aace5e8cf84350eb | [
"MIT"
] | null | null | null | class Solution:
def wiggleMaxLength(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
l = len(nums)
if l <= 1:
return l
state, rls = 0, 1
for i in range(1, l):
diff = nums[i] - nums[i-1]
if state >= 0 and diff <... | 24.65 | 41 | 0.381339 | 58 | 493 | 3.241379 | 0.431034 | 0.074468 | 0.095745 | 0.138298 | 0.287234 | 0.287234 | 0.287234 | 0.287234 | 0.287234 | 0 | 0 | 0.046025 | 0.515213 | 493 | 19 | 42 | 25.947368 | 0.740586 | 0.066937 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3809aa77e7fc76357bac1bf640af9730ef2f0de2 | 235 | py | Python | src/apps/common/apps.py | Arkhangel/django-project-template | 73ed232cddf677853735855dbcdfd1ca5d560c0e | [
"MIT",
"Unlicense"
] | 1 | 2018-08-03T06:16:21.000Z | 2018-08-03T06:16:21.000Z | src/apps/common/apps.py | Arkhangel/django-project-template | 73ed232cddf677853735855dbcdfd1ca5d560c0e | [
"MIT",
"Unlicense"
] | null | null | null | src/apps/common/apps.py | Arkhangel/django-project-template | 73ed232cddf677853735855dbcdfd1ca5d560c0e | [
"MIT",
"Unlicense"
] | null | null | null | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class CommonConfig(AppConfig):
name = 'src.apps.common'
label = 'common'
def ready(self):
self.verbose_name = _('Common')
| 21.363636 | 55 | 0.706383 | 29 | 235 | 5.586207 | 0.689655 | 0.123457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195745 | 235 | 10 | 56 | 23.5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.114894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
380e29e55882fb63652c16463fef1710cfdb84b6 | 3,175 | py | Python | hippy/tool/jithip.py | jweinraub/hippyvm | 09c7643aaa1c4ade566e8681abd2543f12bf874c | [
"MIT"
] | 289 | 2015-01-01T15:36:55.000Z | 2022-03-27T00:22:27.000Z | hippy/tool/jithip.py | jweinraub/hippyvm | 09c7643aaa1c4ade566e8681abd2543f12bf874c | [
"MIT"
] | 26 | 2015-01-21T16:34:41.000Z | 2020-08-26T15:12:54.000Z | hippy/tool/jithip.py | jweinraub/hippyvm | 09c7643aaa1c4ade566e8681abd2543f12bf874c | [
"MIT"
] | 35 | 2015-01-05T12:09:41.000Z | 2022-03-16T09:30:16.000Z |
""" Tests for hippy JIT without compiling the whole JIT to C
"""
import sys, os
from rpython.rtyper.lltypesystem import lltype
from rpython.jit.codewriter.policy import JitPolicy
from rpython.rtyper.annlowlevel import llhelper, llstr, hlstr
from rpython.rtyper.lltypesystem.rstr import STR
from rpython import conftest... | 30.238095 | 80 | 0.685039 | 383 | 3,175 | 5.524804 | 0.389034 | 0.062382 | 0.032136 | 0.02741 | 0.037807 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001614 | 0.219213 | 3,175 | 104 | 81 | 30.528846 | 0.851956 | 0.025827 | 0 | 0.075949 | 0 | 0 | 0.04135 | 0.008601 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.253165 | null | null | 0.063291 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3817a755e5930602684aecbb3b010a91baa909db | 2,280 | py | Python | lazyrename.py | smartao/lazyrename | 38c144614ce323e18aa0543b46b751ecca28f8c1 | [
"MIT"
] | null | null | null | lazyrename.py | smartao/lazyrename | 38c144614ce323e18aa0543b46b751ecca28f8c1 | [
"MIT"
] | null | null | null | lazyrename.py | smartao/lazyrename | 38c144614ce323e18aa0543b46b751ecca28f8c1 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# lazyrename.py - Renomeia arquivos a baseado em um regex
# Utilizacao: python3 lazyrename.py t stringxpto /diretorio/dos/arquivos
# python3 lazyrename.py r stringxpto /diretorio/dos/arquivos
#
import errno
import sys
import shutil
import os
import re
# Validando quantidade de argumento... | 36.190476 | 76 | 0.653947 | 290 | 2,280 | 5.137931 | 0.458621 | 0.028188 | 0.038255 | 0.040268 | 0.048322 | 0.048322 | 0.048322 | 0 | 0 | 0 | 0 | 0.010447 | 0.244298 | 2,280 | 62 | 77 | 36.774194 | 0.854324 | 0.296491 | 0 | 0.15 | 0 | 0 | 0.233627 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
381a4728e7180c523b54349c7841b5cfe5106305 | 876 | py | Python | scripts/quest/q1638e.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 54 | 2019-04-16T23:24:48.000Z | 2021-12-18T11:41:50.000Z | scripts/quest/q1638e.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 3 | 2019-05-19T15:19:41.000Z | 2020-04-27T16:29:16.000Z | scripts/quest/q1638e.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 49 | 2020-11-25T23:29:16.000Z | 2022-03-26T16:20:24.000Z | # [Silent Crusade] Arkarium, the Guardian of Time
CROW = 9073002
BASTILLE = 9073003
sm.setSpeakerID(CROW)
sm.sendNext("I think Arkarium's back! Someone saw him at the Temple of Time, though just for a moment...")
sm.setPlayerAsSpeaker()
sm.sendSay("Who's Arkarium?")
sm.setSpeakerID(BASTILLE)
sm.sendSay("You don't k... | 36.5 | 134 | 0.752283 | 140 | 876 | 4.707143 | 0.578571 | 0.054628 | 0.072838 | 0.088012 | 0.14871 | 0.054628 | 0 | 0 | 0 | 0 | 0 | 0.020053 | 0.146119 | 876 | 23 | 135 | 38.086957 | 0.860963 | 0.053653 | 0 | 0.266667 | 0 | 0.2 | 0.632406 | 0.047158 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
382969f584146f952fd4318f772d2caf180b0d0f | 915 | py | Python | tests/test_utils.py | naomi-henderson/pangeo-forge | ba4dc7430137ae854b358698f0eb84fb4232c032 | [
"Apache-2.0"
] | null | null | null | tests/test_utils.py | naomi-henderson/pangeo-forge | ba4dc7430137ae854b358698f0eb84fb4232c032 | [
"Apache-2.0"
] | null | null | null | tests/test_utils.py | naomi-henderson/pangeo-forge | ba4dc7430137ae854b358698f0eb84fb4232c032 | [
"Apache-2.0"
] | null | null | null | import pytest
from pangeo_forge.utils import chunk_bounds_and_conflicts, chunked_iterable
@pytest.mark.parametrize(
"iterable, size, expected",
[
([1, 2, 3], 1, [(1,), (2,), (3,)]),
([1, 2, 3], 2, [(1, 2), (3,)]),
([1, 2, 3], 3, [(1, 2, 3,)],),
([1, 2, 3], 4, [(1, 2, 3,)],),
... | 31.551724 | 100 | 0.535519 | 127 | 915 | 3.685039 | 0.299213 | 0.034188 | 0.051282 | 0.245727 | 0.299145 | 0.299145 | 0 | 0 | 0 | 0 | 0 | 0.113154 | 0.227322 | 915 | 28 | 101 | 32.678571 | 0.548798 | 0 | 0 | 0 | 0 | 0 | 0.02623 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.086957 | false | 0 | 0.086957 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3829c4ba6cc3cf15879c3d4149a9c3435752627c | 3,037 | py | Python | backend/api/tty.py | AnoyiX/KubernetesWebTTY | 64dc03f973116d90af34a90babd2acd496bd8904 | [
"MIT"
] | null | null | null | backend/api/tty.py | AnoyiX/KubernetesWebTTY | 64dc03f973116d90af34a90babd2acd496bd8904 | [
"MIT"
] | null | null | null | backend/api/tty.py | AnoyiX/KubernetesWebTTY | 64dc03f973116d90af34a90babd2acd496bd8904 | [
"MIT"
] | null | null | null | from starlette.websockets import WebSocketState
from api import app, k8s
from fastapi import WebSocket
from kubernetes.stream import stream
import json
from threading import Thread
import asyncio
from tezign import logs
async def close_websocket(websocket: WebSocket):
"""
Close websocket if it's connected
... | 33.744444 | 104 | 0.594337 | 308 | 3,037 | 5.655844 | 0.318182 | 0.206659 | 0.087256 | 0.051665 | 0.099885 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003364 | 0.314784 | 3,037 | 89 | 105 | 34.123596 | 0.833734 | 0.027 | 0 | 0.123077 | 0 | 0 | 0.036959 | 0.016543 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061538 | false | 0 | 0.123077 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3832da86b171513497746f290f59fede4a283900 | 632 | py | Python | bin/Singleton.py | eahlb/XSPEC-error-finder | d25fc105d722765219e17e02e08e57fc0a9cf5e9 | [
"MIT"
] | null | null | null | bin/Singleton.py | eahlb/XSPEC-error-finder | d25fc105d722765219e17e02e08e57fc0a9cf5e9 | [
"MIT"
] | null | null | null | bin/Singleton.py | eahlb/XSPEC-error-finder | d25fc105d722765219e17e02e08e57fc0a9cf5e9 | [
"MIT"
] | 1 | 2019-12-02T08:26:29.000Z | 2019-12-02T08:26:29.000Z | class Singleton(object):
# Adopted from http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python
## Metaclass implementation of a python singleton
# __new__( ... ) : when a new Singleton object is called a new object will be created iff
# no instances of this object exists,
# ... | 52.666667 | 97 | 0.674051 | 76 | 632 | 5.276316 | 0.539474 | 0.104738 | 0.142145 | 0.089776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014463 | 0.234177 | 632 | 11 | 98 | 57.454545 | 0.81405 | 0.553797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
38395c0d34eb8e5494580fd487629df6b5723723 | 2,147 | py | Python | Feedback/migrations/0001_initial.py | Fallenour/Teacher-Evaluation-System-Django | 16b8a6906d9dc65d96c848280d2d1e7d417452d9 | [
"MIT"
] | 1 | 2021-06-15T13:22:39.000Z | 2021-06-15T13:22:39.000Z | Feedback/migrations/0001_initial.py | Fallenour/Teacher-Evaluation-System-Django | 16b8a6906d9dc65d96c848280d2d1e7d417452d9 | [
"MIT"
] | 2 | 2021-06-04T23:25:24.000Z | 2021-06-09T17:55:08.000Z | Feedback/migrations/0001_initial.py | Fallenour/Teacher-Evaluation-System-Django | 16b8a6906d9dc65d96c848280d2d1e7d417452d9 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-06-08 06:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('Home', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Feed... | 63.147059 | 299 | 0.636237 | 224 | 2,147 | 6.004464 | 0.383929 | 0.073606 | 0.107063 | 0.089219 | 0.466915 | 0.466915 | 0.466915 | 0.466915 | 0.466915 | 0.466915 | 0 | 0.018034 | 0.199348 | 2,147 | 33 | 300 | 65.060606 | 0.764398 | 0.020959 | 0 | 0 | 1 | 0 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
383a6ba838182521db985d0b7552cd00bfd03634 | 1,884 | py | Python | code/minimal_disp_replacements.py | PaulKlinger/dna-sculpture | 7990464e102a8d4ee04682e2fa5ae07914b0e119 | [
"MIT"
] | 22 | 2020-01-26T22:44:27.000Z | 2020-07-13T18:20:40.000Z | code/minimal_disp_replacements.py | PaulKlinger/dna-sculpture | 7990464e102a8d4ee04682e2fa5ae07914b0e119 | [
"MIT"
] | null | null | null | code/minimal_disp_replacements.py | PaulKlinger/dna-sculpture | 7990464e102a8d4ee04682e2fa5ae07914b0e119 | [
"MIT"
] | null | null | null | import os
import struct
class MinimalMemoryFont(object):
"""
Replacement for Adafruit_CircuitPython_framebuf.Bitmapfont
Less features but should be a lot faster. Keeps font in memory
instead of in file.
"""
def __init__(self, font_name="font5x8.bin"):
self.font_name = fo... | 42.818182 | 102 | 0.552548 | 248 | 1,884 | 4.076613 | 0.467742 | 0.094955 | 0.064293 | 0.031652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011504 | 0.354034 | 1,884 | 44 | 103 | 42.818182 | 0.819228 | 0.279193 | 0 | 0 | 0 | 0 | 0.046347 | 0 | 0 | 0 | 0.002357 | 0.022727 | 0 | 1 | 0.111111 | false | 0 | 0.074074 | 0 | 0.259259 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
383b9d05a49f101de2d3ac3f2748db34b674623a | 1,095 | py | Python | login.py | artofscripting/Facebook_DataMiner | 7675fec2d3c4350c8b6bfe9a2853992a4b8ae03b | [
"BSD-3-Clause"
] | null | null | null | login.py | artofscripting/Facebook_DataMiner | 7675fec2d3c4350c8b6bfe9a2853992a4b8ae03b | [
"BSD-3-Clause"
] | null | null | null | login.py | artofscripting/Facebook_DataMiner | 7675fec2d3c4350c8b6bfe9a2853992a4b8ae03b | [
"BSD-3-Clause"
] | null | null | null | # Selenium imports
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
def login_firefox():
# Set up a new firefox profile
usr = raw_input('Enter Facebook User Name: ')
pwd = raw_input('Enter Facebook Password(This is not stored anywhere but memory): ')
firefox_profile = web... | 28.076923 | 88 | 0.678539 | 136 | 1,095 | 5.316176 | 0.522059 | 0.077455 | 0.070539 | 0.078838 | 0.074689 | 0.074689 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230137 | 1,095 | 38 | 89 | 28.815789 | 0.857651 | 0.115982 | 0 | 0 | 0 | 0 | 0.154886 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 1 | 0.038462 | false | 0.076923 | 0.076923 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
383c239780406442ed841d2904372a6c97feddbb | 409 | py | Python | maxblog/apps/feedback/views.py | masich/maxblog | 27807ba06415de7d06bdca3a2a1d7135f09ce612 | [
"MIT"
] | null | null | null | maxblog/apps/feedback/views.py | masich/maxblog | 27807ba06415de7d06bdca3a2a1d7135f09ce612 | [
"MIT"
] | null | null | null | maxblog/apps/feedback/views.py | masich/maxblog | 27807ba06415de7d06bdca3a2a1d7135f09ce612 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .forms import FeedbackForm
from django.shortcuts import redirect
def feedback(request):
if request.method == 'POST':
form = FeedbackForm(request.POST)
if form.is_valid:
form.save(commit=True)
return redirect('/')
else:
fo... | 27.266667 | 68 | 0.655257 | 46 | 409 | 5.804348 | 0.5 | 0.074906 | 0.142322 | 0.187266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237164 | 409 | 14 | 69 | 29.214286 | 0.855769 | 0 | 0 | 0 | 0 | 0 | 0.075795 | 0.05379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3844ddcb9e2651c7491bcad58380f2590b913635 | 563 | py | Python | nydkcd11/blog/migrations/0015_post_pub_date_2.py | asi14/nydkc11 | 4c40f7f3d0829ee3659a5edc9a03ffdb47b5bdc4 | [
"MIT"
] | null | null | null | nydkcd11/blog/migrations/0015_post_pub_date_2.py | asi14/nydkc11 | 4c40f7f3d0829ee3659a5edc9a03ffdb47b5bdc4 | [
"MIT"
] | 9 | 2020-02-11T21:47:24.000Z | 2022-03-11T23:11:44.000Z | nydkcd11/blog/migrations/0015_post_pub_date_2.py | asi14/nydkc11 | 4c40f7f3d0829ee3659a5edc9a03ffdb47b5bdc4 | [
"MIT"
] | 1 | 2018-04-26T04:37:10.000Z | 2018-04-26T04:37:10.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-11 22:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('blog', '0014_auto_20170706_0352'),
]
operations = [
... | 24.478261 | 100 | 0.642984 | 66 | 563 | 5.287879 | 0.727273 | 0.063037 | 0.108883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079812 | 0.243339 | 563 | 22 | 101 | 25.590909 | 0.739437 | 0.120782 | 0 | 0 | 1 | 0 | 0.107724 | 0.046748 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
384bd12ecfdfaa986e4e68a46829414f732dd0b9 | 1,932 | py | Python | examples/api.py | aleksuss/exonum-python-client | 5e7ff330440cd2fe2c5b707a0cff46048b311ea2 | [
"Apache-2.0"
] | 5 | 2019-10-04T13:16:06.000Z | 2022-01-06T08:53:28.000Z | examples/api.py | aleksuss/exonum-python-client | 5e7ff330440cd2fe2c5b707a0cff46048b311ea2 | [
"Apache-2.0"
] | 30 | 2019-11-28T07:06:36.000Z | 2022-02-11T02:59:05.000Z | examples/api.py | aleksuss/exonum-python-client | 5e7ff330440cd2fe2c5b707a0cff46048b311ea2 | [
"Apache-2.0"
] | 11 | 2019-10-03T10:58:42.000Z | 2022-01-06T07:29:12.000Z | """Example of a Basic API Interaction via Exonum Python Light Client."""
from exonum_client import ExonumClient
def run() -> None:
"""Example of a simple API interaction."""
client = ExonumClient(hostname="127.0.0.1", public_api_port=8080, private_api_port=8081)
# Get the available services:
print("A... | 37.153846 | 109 | 0.645445 | 232 | 1,932 | 5.155172 | 0.297414 | 0.14214 | 0.062709 | 0.052676 | 0.188963 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015102 | 0.211698 | 1,932 | 51 | 110 | 37.882353 | 0.77019 | 0.09058 | 0 | 0.153846 | 0 | 0.025641 | 0.334862 | 0.116972 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.025641 | 0 | 0.051282 | 0.487179 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
384c79a3bc0eb74936ee1217ff39a382c73b0a34 | 12,632 | py | Python | rptools/rpreport/rp_report.py | niraito/rptools | 5c631c6cc4cd8cb497ccf573891235b36dfde65f | [
"MIT"
] | 4 | 2021-01-14T14:52:55.000Z | 2022-01-28T09:31:59.000Z | rptools/rpreport/rp_report.py | niraito/rptools | 5c631c6cc4cd8cb497ccf573891235b36dfde65f | [
"MIT"
] | 5 | 2021-01-18T09:24:48.000Z | 2021-12-17T06:47:07.000Z | rptools/rpreport/rp_report.py | niraito/rptools | 5c631c6cc4cd8cb497ccf573891235b36dfde65f | [
"MIT"
] | 2 | 2021-09-14T07:02:20.000Z | 2022-01-31T16:59:42.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""rp_report.py: Parse SBML files and generate a web page with relevant pathways data."""
__author__ = 'Olivier TELLE - INRAE'
__license__ = 'MIT'
import os
import sys
import json
import logging
import tarfile
import tempfile
import fnmatch
from shutil import copyfile
fr... | 41.14658 | 132 | 0.612255 | 1,669 | 12,632 | 4.450569 | 0.165968 | 0.066236 | 0.050889 | 0.023694 | 0.486403 | 0.427033 | 0.380722 | 0.330237 | 0.248115 | 0.216882 | 0 | 0.001414 | 0.272166 | 12,632 | 306 | 133 | 41.281046 | 0.806504 | 0.217147 | 0 | 0.128492 | 1 | 0 | 0.192352 | 0.10662 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022346 | false | 0 | 0.067039 | 0 | 0.106145 | 0.011173 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6977f9f82ad79c60319f70d7b92116cc0617edd6 | 554 | py | Python | app/api/models.py | teamcodered/firewatch-backend | 4e56b00f30fa973f5cbba17ae5f4983273b0e8d8 | [
"MIT"
] | null | null | null | app/api/models.py | teamcodered/firewatch-backend | 4e56b00f30fa973f5cbba17ae5f4983273b0e8d8 | [
"MIT"
] | null | null | null | app/api/models.py | teamcodered/firewatch-backend | 4e56b00f30fa973f5cbba17ae5f4983273b0e8d8 | [
"MIT"
] | null | null | null | from app import db
class Base(db.Model):
__abstract__ = True
id = db.Column(db.Integer, primary_key = True)
date_created = db.Column(db.DateTime, default = db.func.current_timestamp())
date_modified = db.Column(db.DateTime, default = db.func.current_timestamp())
class Device(Base):
__abstract__... | 21.307692 | 81 | 0.687726 | 73 | 554 | 4.931507 | 0.452055 | 0.133333 | 0.166667 | 0.1 | 0.261111 | 0.261111 | 0.261111 | 0.261111 | 0.261111 | 0 | 0 | 0.006667 | 0.187726 | 554 | 26 | 82 | 21.307692 | 0.793333 | 0 | 0 | 0.133333 | 0 | 0 | 0.01982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
697991523249b8a2719256db97622a7161f26df3 | 1,908 | py | Python | storlets-3.0.0/tests/functional/common/test_capabilities.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 48 | 2015-08-17T08:06:34.000Z | 2022-01-24T09:42:05.000Z | storlets-3.0.0/tests/functional/common/test_capabilities.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | storlets-3.0.0/tests/functional/common/test_capabilities.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 17 | 2015-08-16T17:51:08.000Z | 2022-02-06T12:58:15.000Z | '''----------------------------------------------------------------
Copyright (c) 2010-2016 OpenStack Foundation
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/LICEN... | 39.75 | 75 | 0.608491 | 200 | 1,908 | 5.65 | 0.56 | 0.053097 | 0.023009 | 0.028319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008433 | 0.254193 | 1,908 | 47 | 76 | 40.595745 | 0.785664 | 0.383124 | 0 | 0 | 0 | 0 | 0.122118 | 0.017933 | 0 | 0 | 0 | 0.021277 | 0.16 | 1 | 0.08 | false | 0.04 | 0.12 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
697c9e568bd343f740ee541dc7238882ed008f27 | 551 | py | Python | generate_sine_signal.py | sustain-lab/arduino-wavemaker | d4095ef9124b9512333aeb75f79031450da82605 | [
"MIT"
] | 2 | 2019-01-15T23:44:57.000Z | 2019-12-12T20:32:47.000Z | generate_sine_signal.py | sustain-lab/arduino-wavemaker | d4095ef9124b9512333aeb75f79031450da82605 | [
"MIT"
] | null | null | null | generate_sine_signal.py | sustain-lab/arduino-wavemaker | d4095ef9124b9512333aeb75f79031450da82605 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import matplotlib.pyplot as plt
import numpy as np
# number of samples
n = 500
# generate a sine from 0 to 2*pi, last point excluded
sine = np.sin(np.linspace(0, 2 * np.pi, n, endpoint=False))
signalA = np.array([int(round(s)) for s in 255 * (0.5 * (1 - sine))])
signalB = 255 - signalA
lt.pl... | 22.958333 | 74 | 0.69147 | 94 | 551 | 4.053191 | 0.62766 | 0.062992 | 0.073491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038544 | 0.15245 | 551 | 23 | 75 | 23.956522 | 0.777302 | 0.165154 | 0 | 0 | 1 | 0 | 0.12035 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
697d24c1889bb302843d7f034b567a4839b81ad8 | 1,106 | py | Python | m2-modified/ims/common/agentless-system-crawler/crawler/plugins/applications/redis/redis_host_crawler.py | CCI-MOC/ABMI | 955c12ae9d2dc7afe7323f6c25f2af120f5b281a | [
"Apache-2.0"
] | 108 | 2015-07-21T10:40:36.000Z | 2021-07-01T06:54:51.000Z | m2-modified/ims/common/agentless-system-crawler/crawler/plugins/applications/redis/redis_host_crawler.py | CCI-MOC/ABMI | 955c12ae9d2dc7afe7323f6c25f2af120f5b281a | [
"Apache-2.0"
] | 320 | 2015-07-21T01:33:20.000Z | 2020-07-21T15:57:02.000Z | m2-modified/ims/common/agentless-system-crawler/crawler/plugins/applications/redis/redis_host_crawler.py | CCI-MOC/ABMI | 955c12ae9d2dc7afe7323f6c25f2af120f5b281a | [
"Apache-2.0"
] | 61 | 2015-07-20T18:26:37.000Z | 2021-03-17T01:18:54.000Z | from icrawl_plugin import IHostCrawler
from plugins.applications.redis import feature
from requests.exceptions import ConnectionError
import logging
logger = logging.getLogger('crawlutils')
class RedisHostCrawler(IHostCrawler):
'''
Crawling app provided metrics for redis on host.
Usually redis listens on... | 29.105263 | 78 | 0.677215 | 130 | 1,106 | 5.646154 | 0.5 | 0.059946 | 0.061308 | 0.054496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.233273 | 1,106 | 37 | 79 | 29.891892 | 0.856132 | 0.117541 | 0 | 0 | 0 | 0 | 0.099372 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0.086957 | false | 0 | 0.26087 | 0.043478 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69813234641169e6d38cbf76e48383f55c4f8f98 | 815 | py | Python | preimutils/object_detection/voc/rename_xml_path.py | ArianAmani/preimutils | d4f79525caae322d94d97febc4654229a2eb7407 | [
"MIT"
] | 6 | 2020-02-17T18:54:48.000Z | 2022-01-30T09:05:28.000Z | preimutils/object_detection/voc/rename_xml_path.py | ArianAmani/preimutils | d4f79525caae322d94d97febc4654229a2eb7407 | [
"MIT"
] | null | null | null | preimutils/object_detection/voc/rename_xml_path.py | ArianAmani/preimutils | d4f79525caae322d94d97febc4654229a2eb7407 | [
"MIT"
] | 3 | 2022-01-09T16:58:34.000Z | 2022-03-10T07:10:51.000Z | import os
import glob
import xml.etree.ElementTree as ET
import argparse
from tqdm import tqdm
from .label_json import LabelHandler
def xml_address_changer(xmls_dir, images_dir):
"""change the wrong path that exist in xmls files
you should do it after every move on your dataset
Args:
images_di... | 30.185185 | 74 | 0.660123 | 121 | 815 | 4.289256 | 0.504132 | 0.05395 | 0.063584 | 0.065511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001608 | 0.23681 | 815 | 26 | 75 | 31.346154 | 0.832797 | 0.280982 | 0 | 0 | 0 | 0 | 0.049002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.428571 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
698485d5767bbcaf0cf3141c600480328970b76c | 657 | py | Python | bann/b_pan_integration/net_connection_lib.py | arturOnRails/BANN | 027af04349304941fb73c2ede502aca4b76f1ad1 | [
"MIT"
] | null | null | null | bann/b_pan_integration/net_connection_lib.py | arturOnRails/BANN | 027af04349304941fb73c2ede502aca4b76f1ad1 | [
"MIT"
] | null | null | null | bann/b_pan_integration/net_connection_lib.py | arturOnRails/BANN | 027af04349304941fb73c2ede502aca4b76f1ad1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""".. moduleauthor:: Artur Lissin"""
from typing import Dict
from bann.b_frameworks.pytorch.pytorch_library import get_pytorch_connections
from bann.b_pan_integration.errors.custom_erors import NetConnectionError
from pan.public.interfaces.net_connection import NetConnectionDict
def net_conne... | 31.285714 | 77 | 0.73516 | 80 | 657 | 5.8375 | 0.55 | 0.059957 | 0.038544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009124 | 0.165906 | 657 | 20 | 78 | 32.85 | 0.843066 | 0.08067 | 0 | 0 | 0 | 0 | 0.083612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6989097a90a6f2513a05caccbf067d933c5f15b5 | 318 | py | Python | sandbox/lib/jumpscale/threebot_packages/smtp/tests/1_test.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | null | null | null | sandbox/lib/jumpscale/threebot_packages/smtp/tests/1_test.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | null | null | null | sandbox/lib/jumpscale/threebot_packages/smtp/tests/1_test.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | null | null | null | from smtplib import SMTP
def main(self):
with SMTP("localhost", 7002) as smtp:
print(smtp.noop())
smtp.login("localhost", "password")
# Send the mail
msg = "Hello!" # The /n separates the message from the headers
smtp.sendmail("you@gmail.com", "target@example.com", msg)
| 28.909091 | 71 | 0.616352 | 42 | 318 | 4.666667 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 0.251572 | 318 | 10 | 72 | 31.8 | 0.806723 | 0.185535 | 0 | 0 | 0 | 0 | 0.246094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.142857 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
698d26f6505cebb5bd5605ded80924b884acc4db | 1,048 | py | Python | setup.py | thompcinnamon/QM-calc-scripts | 60b06e14b2efd307d419201079bb24152ab0bd3c | [
"Apache-2.0"
] | null | null | null | setup.py | thompcinnamon/QM-calc-scripts | 60b06e14b2efd307d419201079bb24152ab0bd3c | [
"Apache-2.0"
] | 2 | 2018-07-18T19:53:08.000Z | 2019-02-25T23:25:51.000Z | setup.py | theavey/QM-calc-scripts | 60b06e14b2efd307d419201079bb24152ab0bd3c | [
"Apache-2.0"
] | 1 | 2017-01-04T20:50:21.000Z | 2017-01-04T20:50:21.000Z | from setuptools import setup
setup(
name='gautools',
packages=['gautools'],
scripts=[
'gautools/aml.py',
'gautools/create_runs.py',
'gautools/geomRegex.py',
'gautools/out_to_list.py',
'gautools/out_to_list_sf.py',
'gautools/submit_gaussian.py',
'gauto... | 27.578947 | 77 | 0.576336 | 111 | 1,048 | 5.315315 | 0.702703 | 0.135593 | 0.044068 | 0.050847 | 0.064407 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010652 | 0.283397 | 1,048 | 37 | 78 | 28.324324 | 0.774967 | 0 | 0 | 0.083333 | 0 | 0 | 0.525763 | 0.182252 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.027778 | 0 | 0.027778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
699084e349754006766f5dcfe6aeb9fa81359964 | 7,959 | py | Python | ampa/cole/views/cursos_views.py | jordiprats/django-ampa | b8e9d6076c32caa8bdc11094362ddccb12d95f8c | [
"Apache-2.0"
] | null | null | null | ampa/cole/views/cursos_views.py | jordiprats/django-ampa | b8e9d6076c32caa8bdc11094362ddccb12d95f8c | [
"Apache-2.0"
] | null | null | null | ampa/cole/views/cursos_views.py | jordiprats/django-ampa | b8e9d6076c32caa8bdc11094362ddccb12d95f8c | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth.decorators import user_passes_test
from django.shortcuts import render, redirect
from django.contrib import messages
from django.conf import settings
from cole.forms import *
import sys
import os
@user_passes_test(lambda u: u.is_staff)
def list_cursos(request):
cursos = Curs.objects.all(... | 44.463687 | 154 | 0.56389 | 888 | 7,959 | 4.815315 | 0.130631 | 0.043499 | 0.024322 | 0.022451 | 0.644995 | 0.573901 | 0.545837 | 0.485734 | 0.4558 | 0.391955 | 0 | 0.002465 | 0.33748 | 7,959 | 179 | 155 | 44.463687 | 0.808458 | 0.001633 | 0 | 0.630872 | 0 | 0 | 0.100101 | 0.018509 | 0 | 0 | 0 | 0.005587 | 0 | 1 | 0.04698 | false | 0.053691 | 0.04698 | 0 | 0.234899 | 0.073826 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
69925f66c80ab2406cb94ac78622e43cf04b2dc7 | 1,431 | py | Python | src/health/2016-12-22-2013-check_file_ids2.py | codexgigassys/codex-backend | 1e6b946f05e2fd9ce80b207046fe168f49cc2db2 | [
"MIT"
] | 161 | 2016-08-03T14:25:20.000Z | 2021-08-11T03:18:35.000Z | src/health/2016-12-22-2013-check_file_ids2.py | codexgigassys/codex-backend | 1e6b946f05e2fd9ce80b207046fe168f49cc2db2 | [
"MIT"
] | 115 | 2016-08-08T09:24:08.000Z | 2020-03-07T06:48:02.000Z | src/health/2016-12-22-2013-check_file_ids2.py | codexgigassys/codex-backend | 1e6b946f05e2fd9ce80b207046fe168f49cc2db2 | [
"MIT"
] | 46 | 2016-08-04T08:25:28.000Z | 2021-09-05T23:46:55.000Z | # This checks that all the
# file_id attributes in version_container documents
# are valid sha1 hashes. If they are not
# the value of _id, and file_id of the offender is printed.
# and the document gets deleted.
import pathmagic
from db_pool import *
from bson.objectid import ObjectId
def is_sha1(maybe_sha):
if ... | 26.018182 | 79 | 0.574423 | 199 | 1,431 | 3.919598 | 0.39196 | 0.076923 | 0.038462 | 0.04359 | 0.071795 | 0.071795 | 0.071795 | 0 | 0 | 0 | 0 | 0.03012 | 0.303983 | 1,431 | 54 | 80 | 26.5 | 0.753012 | 0.14116 | 0 | 0.219512 | 0 | 0 | 0.071954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073171 | null | null | 0.146341 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6997a70c9d265d8216840d368dcf97d65459c5cf | 150 | py | Python | Python32/aulas/vetorinverso.py | andersonsilvade/python_C | ffc00184883089f1c2d9b8a6c32503b2c8b8d035 | [
"MIT"
] | null | null | null | Python32/aulas/vetorinverso.py | andersonsilvade/python_C | ffc00184883089f1c2d9b8a6c32503b2c8b8d035 | [
"MIT"
] | null | null | null | Python32/aulas/vetorinverso.py | andersonsilvade/python_C | ffc00184883089f1c2d9b8a6c32503b2c8b8d035 | [
"MIT"
] | 1 | 2020-11-04T08:36:28.000Z | 2020-11-04T08:36:28.000Z | vetor = []
i=1
while i <= 10:
n=int(input("digite um numero: "))
vetor.append(n)
i=i+1
i=9
while i>=0:
print(vetor[i])
i=i-1
| 12.5 | 38 | 0.506667 | 29 | 150 | 2.62069 | 0.517241 | 0.078947 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066038 | 0.293333 | 150 | 11 | 39 | 13.636364 | 0.650943 | 0 | 0 | 0 | 0 | 0 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
699a7eaf0ab859042e2424d095d4d70050b5e983 | 3,094 | py | Python | firecares/firecares_core/tests/base.py | FireCARES/firecares | aa708d441790263206dd3a0a480eb6ca9031439d | [
"MIT"
] | 12 | 2016-01-30T02:28:35.000Z | 2019-05-29T15:49:56.000Z | firecares/firecares_core/tests/base.py | FireCARES/firecares | aa708d441790263206dd3a0a480eb6ca9031439d | [
"MIT"
] | 455 | 2015-07-27T20:21:56.000Z | 2022-03-11T23:26:20.000Z | firecares/firecares_core/tests/base.py | FireCARES/firecares | aa708d441790263206dd3a0a480eb6ca9031439d | [
"MIT"
] | 14 | 2015-07-29T09:45:53.000Z | 2020-10-21T20:03:17.000Z | from StringIO import StringIO
from urlparse import urlsplit, urlunsplit
from django.contrib.auth import get_user_model
from django.contrib.gis.geos import Point
from django.core.urlresolvers import resolve
from django.core.management import call_command
from django.db import connections
from django.test import TestCase... | 43.577465 | 137 | 0.717195 | 374 | 3,094 | 5.73262 | 0.352941 | 0.027985 | 0.037313 | 0.026586 | 0.227146 | 0.227146 | 0.1875 | 0.1875 | 0.130597 | 0.130597 | 0 | 0.013763 | 0.178087 | 3,094 | 70 | 138 | 44.2 | 0.829335 | 0 | 0 | 0.075472 | 0 | 0 | 0.117001 | 0.049127 | 0 | 0 | 0 | 0 | 0.132075 | 1 | 0.150943 | false | 0.056604 | 0.169811 | 0.018868 | 0.415094 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
699d51e8e184ea1d04c16ad4ed7119ec6ba39752 | 568 | py | Python | selfdrive/debug/internal/send_alert.py | l03ie/Gernby | dabe9d71ab1f7ee4fc4118ccce9b331ebcd801ca | [
"MIT"
] | 5 | 2018-06-27T04:19:32.000Z | 2018-08-01T19:16:28.000Z | selfdrive/debug/internal/send_alert.py | iambluefred/Test_9 | dabe9d71ab1f7ee4fc4118ccce9b331ebcd801ca | [
"MIT"
] | 3 | 2020-02-27T22:37:17.000Z | 2020-02-27T22:38:26.000Z | selfdrive/debug/internal/send_alert.py | iambluefred/Test_9 | dabe9d71ab1f7ee4fc4118ccce9b331ebcd801ca | [
"MIT"
] | 3 | 2018-07-24T05:09:26.000Z | 2018-08-01T16:03:31.000Z | #!/usr/bin/env python3
import time
import zmq
from hexdump import hexdump
import cereal.messaging as messaging
from cereal.services import service_list
if __name__ == "__main__":
controls_state = messaging.pub_sock('controlsState')
while 1:
dat = messaging.new_message()
dat.init('controlsState')
dat... | 24.695652 | 54 | 0.739437 | 71 | 568 | 5.71831 | 0.619718 | 0.157635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018828 | 0.158451 | 568 | 22 | 55 | 25.818182 | 0.830544 | 0.036972 | 0 | 0 | 0 | 0 | 0.139194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
699dd1459716aea5117d43df681da154e5439b06 | 1,880 | py | Python | hunchsdk/storage_clients/local_fs/storage_client.py | flipkart-incubator/Heimdall | 1e671d6335b49afd2c41a7cef81db53a6de5e8c5 | [
"Apache-2.0"
] | 15 | 2018-01-25T03:48:29.000Z | 2021-04-28T06:31:40.000Z | hunchsdk/storage_clients/local_fs/storage_client.py | flipkart-incubator/Heimdall | 1e671d6335b49afd2c41a7cef81db53a6de5e8c5 | [
"Apache-2.0"
] | null | null | null | hunchsdk/storage_clients/local_fs/storage_client.py | flipkart-incubator/Heimdall | 1e671d6335b49afd2c41a7cef81db53a6de5e8c5 | [
"Apache-2.0"
] | 16 | 2018-02-09T11:30:41.000Z | 2021-04-28T06:31:47.000Z | import os
class StorageClient(object):
def __init__(self, storage_client_config):
self.__modelrepo_dir = storage_client_config["modelrepo_dir"]
self.__model_repo_local_path = self.__modelrepo_dir + '/{model_id}_{model_version}'
def ___model_repo_local_path(self, model_id, model_version):
... | 33.571429 | 116 | 0.625532 | 234 | 1,880 | 4.615385 | 0.217949 | 0.116667 | 0.166667 | 0.211111 | 0.652778 | 0.483333 | 0.388889 | 0.361111 | 0.325926 | 0.325926 | 0 | 0 | 0.285638 | 1,880 | 55 | 117 | 34.181818 | 0.80417 | 0.210106 | 0 | 0.272727 | 0 | 0 | 0.081102 | 0.020658 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.045455 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69a2af1e9f879a16cba9be067671bc423cdf4802 | 1,705 | py | Python | model/content_model.py | sjtudesigner/NeuralSight | 2a0256f9f00ec07237c60e7fab8ce7621422eeda | [
"MIT"
] | null | null | null | model/content_model.py | sjtudesigner/NeuralSight | 2a0256f9f00ec07237c60e7fab8ce7621422eeda | [
"MIT"
] | null | null | null | model/content_model.py | sjtudesigner/NeuralSight | 2a0256f9f00ec07237c60e7fab8ce7621422eeda | [
"MIT"
] | null | null | null | import os
from Crypto.Hash import SHA
content_path = "./static/content/"
def folder_adapter(name):
import re
return re.sub("[/]", "A", name)
def get_hash_by_code(code):
sha = SHA.new()
sha.update(code)
return folder_adapter(sha.hexdigest())
def get_path_by_code(code, act):
path = content_path... | 29.912281 | 69 | 0.601173 | 250 | 1,705 | 4 | 0.24 | 0.048 | 0.096 | 0.128 | 0.476 | 0.407 | 0.386 | 0.308 | 0.308 | 0.148 | 0 | 0.015748 | 0.255132 | 1,705 | 56 | 70 | 30.446429 | 0.771654 | 0.067449 | 0 | 0.222222 | 0 | 0 | 0.045984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69b0b47c889267be9221ec64a594400de2b1522d | 618 | py | Python | Python/Strings/What's Your Name.py | Arunima-Chatterjee/Hackerrank | ebacd5dc7c509813c81ef6b0de43786b5a61069f | [
"MIT"
] | null | null | null | Python/Strings/What's Your Name.py | Arunima-Chatterjee/Hackerrank | ebacd5dc7c509813c81ef6b0de43786b5a61069f | [
"MIT"
] | null | null | null | Python/Strings/What's Your Name.py | Arunima-Chatterjee/Hackerrank | ebacd5dc7c509813c81ef6b0de43786b5a61069f | [
"MIT"
] | null | null | null | # You are given the firstname and lastname of a person on two different lines. Your task is to read them
# and print the following:
# Hello firstname lastname! You just delved into python.
#
# Complete the 'print_full_name' function below.
#
# The function is expected to return a STRING.
# The function accepts f... | 30.9 | 105 | 0.699029 | 89 | 618 | 4.651685 | 0.505618 | 0.065217 | 0.094203 | 0.082126 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004141 | 0.218447 | 618 | 19 | 106 | 32.526316 | 0.853002 | 0.566343 | 0 | 0 | 0 | 0 | 0.189873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
69b0f4483596a94d4ffe3e4045c85947263bc592 | 8,282 | py | Python | postfixadmin/pfa/models.py | fretscha/django-postfix-admin | 0474370fdd837ab34c8bf6ef03e02b66a54f3119 | [
"MIT"
] | 1 | 2015-01-24T13:29:58.000Z | 2015-01-24T13:29:58.000Z | postfixadmin/pfa/models.py | fretscha/django-postfix-admin | 0474370fdd837ab34c8bf6ef03e02b66a54f3119 | [
"MIT"
] | null | null | null | postfixadmin/pfa/models.py | fretscha/django-postfix-admin | 0474370fdd837ab34c8bf6ef03e02b66a54f3119 | [
"MIT"
] | 3 | 2015-01-25T19:48:31.000Z | 2021-01-08T20:49:50.000Z | # models.py
from os.path import normpath, join
from django.db import models
from django.conf import settings
from django.contrib.auth.models import (
BaseUserManager, AbstractBaseUser
)
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
import logging
import datetime
... | 34.945148 | 79 | 0.674958 | 1,014 | 8,282 | 5.328402 | 0.193294 | 0.062928 | 0.04405 | 0.069776 | 0.536554 | 0.465482 | 0.402554 | 0.305571 | 0.297612 | 0.266148 | 0 | 0.010799 | 0.217339 | 8,282 | 236 | 80 | 35.09322 | 0.82274 | 0.074499 | 0 | 0.273256 | 0 | 0 | 0.080438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.110465 | false | 0.02907 | 0.046512 | 0.069767 | 0.686047 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
69b301f4d9c14ae08bd53802ed71c146a2fa4154 | 5,533 | py | Python | test/sulsj9230ContigFilter_server_test.py | sulsj/sulsj9230ContigFilter | 589d52a8a4e98c873f429e84661791c025919314 | [
"MIT"
] | null | null | null | test/sulsj9230ContigFilter_server_test.py | sulsj/sulsj9230ContigFilter | 589d52a8a4e98c873f429e84661791c025919314 | [
"MIT"
] | null | null | null | test/sulsj9230ContigFilter_server_test.py | sulsj/sulsj9230ContigFilter | 589d52a8a4e98c873f429e84661791c025919314 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
import os # noqa: F401
import json # noqa: F401
import time
import requests
from os import environ
try:
from ConfigParser import ConfigParser # py2
except:
from configparser import ConfigParser # py3
from pprint import pprint # noqa: F401
from biokbase.workspace.c... | 37.134228 | 104 | 0.59371 | 573 | 5,533 | 5.570681 | 0.307155 | 0.0448 | 0.037594 | 0.056391 | 0.260025 | 0.238095 | 0.219298 | 0.177945 | 0.162281 | 0.095238 | 0 | 0.025811 | 0.292789 | 5,533 | 148 | 105 | 37.385135 | 0.789931 | 0.294777 | 0 | 0.114943 | 0 | 0 | 0.117157 | 0.032023 | 0 | 0 | 0 | 0.006757 | 0.057471 | 0 | null | null | 0 | 0.149425 | null | null | 0.045977 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69b34e9e852ddb72b3e6f149b28d7e7b47c19dd5 | 814 | py | Python | var/spack/repos/builtin/packages/r-geojsonsf/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/r-geojsonsf/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 8 | 2021-11-09T20:28:40.000Z | 2022-03-15T03:26:33.000Z | var/spack/repos/builtin/packages/r-geojsonsf/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class RGeojsonsf(RPackage):
"""GeoJSON to Simple Feature Converter.
Converts Betwee... | 33.916667 | 95 | 0.685504 | 109 | 814 | 5.06422 | 0.550459 | 0.097826 | 0.108696 | 0.172101 | 0.202899 | 0.202899 | 0.083333 | 0 | 0 | 0 | 0 | 0.094421 | 0.141278 | 814 | 23 | 96 | 35.391304 | 0.695279 | 0.34398 | 0 | 0 | 0 | 0 | 0.393474 | 0.122841 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69c39fba877b353e7d5b61861065a715739a077e | 2,188 | py | Python | sklearn-models/classification2.py | MoeMaher/keywords-extraction-python-script | 747dc9904092f8baa03f75f5facf6e170857752e | [
"MIT"
] | null | null | null | sklearn-models/classification2.py | MoeMaher/keywords-extraction-python-script | 747dc9904092f8baa03f75f5facf6e170857752e | [
"MIT"
] | null | null | null | sklearn-models/classification2.py | MoeMaher/keywords-extraction-python-script | 747dc9904092f8baa03f75f5facf6e170857752e | [
"MIT"
] | null | null | null | import scipy
from scipy.sparse import csr_matrix
from sklearn.metrics import accuracy_score, precision_recall_fscore_support
X_train = scipy.sparse.load_npz('X_train.npz')
Y_train = scipy.sparse.load_npz('Y_train.npz')
X_test = scipy.sparse.load_npz('X_test.npz')
Y_test = scipy.sparse.load_npz('Y_test.npz')
... | 37.084746 | 176 | 0.736289 | 334 | 2,188 | 4.568862 | 0.293413 | 0.052425 | 0.035387 | 0.032765 | 0.253604 | 0.185452 | 0.165793 | 0.072739 | 0 | 0 | 0 | 0.021134 | 0.113346 | 2,188 | 58 | 177 | 37.724138 | 0.765464 | 0.652651 | 0 | 0 | 0 | 0 | 0.062315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
69c73402b5d7403f8abacc0fa424e9c722bcaed8 | 4,392 | py | Python | backend/custom_logic/src/doc2vec.py | FrederikBanke/map-granted-applications | efa9d9d2ab4dda4d5982c929e7dedbbb956cf674 | [
"MIT"
] | null | null | null | backend/custom_logic/src/doc2vec.py | FrederikBanke/map-granted-applications | efa9d9d2ab4dda4d5982c929e7dedbbb956cf674 | [
"MIT"
] | 3 | 2021-03-10T20:35:07.000Z | 2021-03-30T14:05:30.000Z | backend/custom_logic/src/doc2vec.py | FrederikBanke/map-granted-applications | efa9d9d2ab4dda4d5982c929e7dedbbb956cf674 | [
"MIT"
] | null | null | null | from gensim.models.doc2vec import TaggedDocument, Doc2Vec
from custom_logic.src.utils import print_done, print_progress
import custom_logic.src.api as api
import custom_logic.src.text_processing as tp
import custom_logic.src.main as main
import collections
def train_doc2vec_model(delete_model=False):
'''Trains a ... | 36.907563 | 122 | 0.706284 | 614 | 4,392 | 4.876222 | 0.283388 | 0.084168 | 0.042084 | 0.04008 | 0.176019 | 0.169005 | 0.128257 | 0.06346 | 0.038076 | 0.038076 | 0 | 0.01231 | 0.20469 | 4,392 | 118 | 123 | 37.220339 | 0.844833 | 0.333333 | 0 | 0.096774 | 0 | 0 | 0.125708 | 0.03187 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.080645 | false | 0 | 0.129032 | 0 | 0.306452 | 0.225806 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69cc8d0fa5cb93cccc9329dbf2d9709130cfae68 | 1,550 | py | Python | factorio_mod_downloader/__main__.py | poksiala/factorio-mod-downloader | 869c6a5ef6765c177089cb47fda9896365bb6238 | [
"Apache-2.0"
] | null | null | null | factorio_mod_downloader/__main__.py | poksiala/factorio-mod-downloader | 869c6a5ef6765c177089cb47fda9896365bb6238 | [
"Apache-2.0"
] | null | null | null | factorio_mod_downloader/__main__.py | poksiala/factorio-mod-downloader | 869c6a5ef6765c177089cb47fda9896365bb6238 | [
"Apache-2.0"
] | null | null | null | import logging
import os
from typing import Optional
import requests
from .dependencies import solve_dependencies
from .download import download_mods
from .models import Auth
def fetch_token(client: requests.Session, username: str, token: str) -> str:
url = "https://auth.factorio.com/api-login"
login_data =... | 31.632653 | 88 | 0.697419 | 202 | 1,550 | 5.217822 | 0.386139 | 0.02277 | 0.059772 | 0.056926 | 0.039848 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005641 | 0.199355 | 1,550 | 48 | 89 | 32.291667 | 0.843674 | 0 | 0 | 0.05 | 0 | 0 | 0.126452 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.05 | false | 0.125 | 0.175 | 0 | 0.325 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
69d49871da1f3293fe99e951ba1e4f492bedffa2 | 4,190 | py | Python | pay-api/tests/unit/services/test_bcol_service.py | saravankumarpa/sbc-pay | 2362549e52c575ab4ea6c19de987f0ebc9d06571 | [
"Apache-2.0"
] | null | null | null | pay-api/tests/unit/services/test_bcol_service.py | saravankumarpa/sbc-pay | 2362549e52c575ab4ea6c19de987f0ebc9d06571 | [
"Apache-2.0"
] | null | null | null | pay-api/tests/unit/services/test_bcol_service.py | saravankumarpa/sbc-pay | 2362549e52c575ab4ea6c19de987f0ebc9d06571 | [
"Apache-2.0"
] | null | null | null | # Copyright © 2019 Province of British Columbia
#
# 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 agr... | 55.131579 | 116 | 0.62673 | 492 | 4,190 | 5.22561 | 0.384146 | 0.051342 | 0.046285 | 0.032672 | 0.195255 | 0.098794 | 0.079347 | 0.067289 | 0.036562 | 0.036562 | 0 | 0.059138 | 0.241289 | 4,190 | 75 | 117 | 55.866667 | 0.749292 | 0.305489 | 0 | 0 | 0 | 0.314286 | 0.525565 | 0.338783 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.028571 | false | 0 | 0.028571 | 0 | 0.057143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69da1d8fbe88e4bb00c248db26b119d4c668b3e4 | 3,266 | py | Python | old/client/show/texture/server.py | dcu-sharepoint/Browser-id | 4baeb18cb6bef26dad5a1a6fcf815ac1024203da | [
"MIT"
] | 1 | 2018-05-14T20:00:21.000Z | 2018-05-14T20:00:21.000Z | old/client/show/texture/server.py | zakybstrd21215/cross_browser | 4baeb18cb6bef26dad5a1a6fcf815ac1024203da | [
"MIT"
] | null | null | null | old/client/show/texture/server.py | zakybstrd21215/cross_browser | 4baeb18cb6bef26dad5a1a6fcf815ac1024203da | [
"MIT"
] | null | null | null | import BaseHTTPServer
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import SocketServer
import urllib
import json
import linecache
global ip2line
ip2line = {}
def not_insane_address_string(self):
host, port = self.client_address[:2]
return '%s (no getfqdn)' % host #used to call: socket.getfqd... | 28.902655 | 81 | 0.547152 | 350 | 3,266 | 4.98 | 0.334286 | 0.030981 | 0.052783 | 0.025818 | 0.199082 | 0.199082 | 0.172691 | 0.124498 | 0.124498 | 0.124498 | 0 | 0.01524 | 0.316901 | 3,266 | 112 | 82 | 29.160714 | 0.766024 | 0.031537 | 0 | 0.197674 | 0 | 0 | 0.108544 | 0.045886 | 0.034884 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081395 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69db9ab605ba873c8f36eca02bc2d497fc6269f8 | 988 | py | Python | shared/threading.py | EDF-Lab/EDF | 3ab2d9e1820dfb713bbd54c91ba72d7d32d998f9 | [
"MIT"
] | 16 | 2022-02-11T14:49:04.000Z | 2022-03-30T07:33:45.000Z | shared/threading.py | EDF-Lab/EDF | 3ab2d9e1820dfb713bbd54c91ba72d7d32d998f9 | [
"MIT"
] | 1 | 2022-02-16T15:23:50.000Z | 2022-02-21T15:30:21.000Z | shared/threading.py | EDF-Lab/EDF | 3ab2d9e1820dfb713bbd54c91ba72d7d32d998f9 | [
"MIT"
] | 1 | 2022-03-24T10:52:28.000Z | 2022-03-24T10:52:28.000Z | """
.. module:: threading
:platform: Unix
:synopsis: A module that implements threading tools to use a GUI.
.. Copyright 2022 EDF
.. moduleauthor:: Oscar RODRIGUEZ INFANTE, Tony ZHOU, Trang PHAM, Efflam OLLIVIER
.. License:: This source code is licensed under the MIT License.
"""
from PyQt5.QtCore import ... | 26 | 82 | 0.683198 | 119 | 988 | 5.605042 | 0.579832 | 0.035982 | 0.041979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.230769 | 988 | 37 | 83 | 26.702703 | 0.871053 | 0.520243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
69dfea70464a865267deb1e28786a3fa0973d9c5 | 597 | py | Python | environ/challenges/urls.py | CassandraTalbot32/Python-Django-CSS-HTML-JavaScript-webiste | de81b971026991c6689a133e68582b04431ae265 | [
"MIT"
] | null | null | null | environ/challenges/urls.py | CassandraTalbot32/Python-Django-CSS-HTML-JavaScript-webiste | de81b971026991c6689a133e68582b04431ae265 | [
"MIT"
] | null | null | null | environ/challenges/urls.py | CassandraTalbot32/Python-Django-CSS-HTML-JavaScript-webiste | de81b971026991c6689a133e68582b04431ae265 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import (
ChallengesListView,
ChallengesDetailView,
ChallengesCreateView,
ChallengesUpdateView,
ChallengesDeleteView
)
app_name = 'challenges'
urlpatterns = [
path('', ChallengesListView.as_view(), name='challenges-list'),
path('<int:id>/', ChallengesDetailView.as_view(),... | 31.421053 | 84 | 0.755444 | 61 | 597 | 7.278689 | 0.393443 | 0.189189 | 0.112613 | 0.225225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080402 | 597 | 18 | 85 | 33.166667 | 0.808743 | 0 | 0 | 0 | 0 | 0 | 0.236181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69e08dc6c2502f542532181f16067ce929a0bfa0 | 307 | py | Python | example/cities/urls.py | HOYINWUN/django-map-widgets | 2dd9bbd6833a781ea1683de9fa63d964c5936371 | [
"MIT"
] | null | null | null | example/cities/urls.py | HOYINWUN/django-map-widgets | 2dd9bbd6833a781ea1683de9fa63d964c5936371 | [
"MIT"
] | null | null | null | example/cities/urls.py | HOYINWUN/django-map-widgets | 2dd9bbd6833a781ea1683de9fa63d964c5936371 | [
"MIT"
] | 1 | 2019-08-05T14:15:55.000Z | 2019-08-05T14:15:55.000Z | from django.conf.urls import url
from cities.views import CityCreateView, CityListView, CityDetailView
urlpatterns = [
url(r'^$', CityListView.as_view(), name="list"),
url(r'^(?P<pk>\d+)/$', CityDetailView.as_view(), name="detail"),
url(r'^create/$', CityCreateView.as_view(), name="create"),
] | 38.375 | 69 | 0.684039 | 39 | 307 | 5.307692 | 0.564103 | 0.057971 | 0.144928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114007 | 307 | 8 | 70 | 38.375 | 0.761029 | 0 | 0 | 0 | 0 | 0 | 0.133117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69ecafaff8cc79d879036bfdeaf36b22e10562f2 | 275 | py | Python | setup.py | tsalo/NiMARE | 46e4e502e5736434afb8c707b3f54011fef4d63d | [
"MIT"
] | 1 | 2022-02-09T17:33:15.000Z | 2022-02-09T17:33:15.000Z | setup.py | yifan0330/NiMARE | cb542af17c4f969afd05e4fd381a1200a1e4817c | [
"MIT"
] | 2 | 2020-10-24T00:47:48.000Z | 2021-03-13T20:56:59.000Z | setup.py | yifan0330/NiMARE | cb542af17c4f969afd05e4fd381a1200a1e4817c | [
"MIT"
] | 3 | 2019-01-14T14:51:25.000Z | 2020-10-20T19:59:18.000Z | #!/usr/bin/env python
"""NiMARE setup script."""
from setuptools import setup
import versioneer
if __name__ == "__main__":
setup(
name="NiMARE",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
zip_safe=False,
)
| 19.642857 | 43 | 0.643636 | 30 | 275 | 5.533333 | 0.666667 | 0.156627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229091 | 275 | 13 | 44 | 21.153846 | 0.783019 | 0.149091 | 0 | 0 | 0 | 0 | 0.061404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69eedcdcb021035afdd4fd763064121d35cd2e54 | 884 | py | Python | src/opencv_matplotlib/expand.py | Tim-eyes/example_driven_guide_opencv | 5fa58985eea0b34f23b0393a196e3178b0112e74 | [
"MIT"
] | null | null | null | src/opencv_matplotlib/expand.py | Tim-eyes/example_driven_guide_opencv | 5fa58985eea0b34f23b0393a196e3178b0112e74 | [
"MIT"
] | null | null | null | src/opencv_matplotlib/expand.py | Tim-eyes/example_driven_guide_opencv | 5fa58985eea0b34f23b0393a196e3178b0112e74 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
from matplotlib import pyplot as plot
BLUE=[255,0,0]
img=cv2.imread('must_logo.png')
replicate = cv2.copyMakeBorder(img,10,10,10,10,cv2.BORDER_REPLICATE)
reflect = cv2.copyMakeBorder(img,10,10,10,10,cv2.BORDER_REFLECT)
reflect101 = cv2.copyMakeBorder(img,10,10,10,10,cv2.BORDER_REFLECT_10... | 42.095238 | 76 | 0.772624 | 143 | 884 | 4.72028 | 0.272727 | 0.088889 | 0.088889 | 0.162963 | 0.294815 | 0.294815 | 0.294815 | 0.294815 | 0.294815 | 0.13037 | 0 | 0.102837 | 0.042986 | 884 | 21 | 77 | 42.095238 | 0.695035 | 0 | 0 | 0 | 0 | 0 | 0.094915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69f801f0ee429f5efbcaf13fad8600c03adc81b3 | 1,721 | py | Python | autoencoder.py | wannabeOG/ExpertNet-Pytorch | e5c104981b3a60fca93eddd569045663157ad346 | [
"BSD-2-Clause"
] | 24 | 2019-09-28T10:58:36.000Z | 2021-11-22T13:50:16.000Z | autoencoder.py | luckilypop/ExpertNet-Pytorch | e5c104981b3a60fca93eddd569045663157ad346 | [
"BSD-2-Clause"
] | 1 | 2019-10-02T07:42:18.000Z | 2019-10-02T07:42:18.000Z | autoencoder.py | luckilypop/ExpertNet-Pytorch | e5c104981b3a60fca93eddd569045663157ad346 | [
"BSD-2-Clause"
] | 9 | 2019-10-02T07:40:54.000Z | 2022-03-26T19:41:12.000Z | #!/usr/bin/env python
# coding: utf-8
"""
Module containing the realization of all the models that are to be used un t
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
from torchvision import models
class Autoencoder(nn.Module):
"""
The class defines the autoencoder model which takes in t... | 26.890625 | 110 | 0.737362 | 263 | 1,721 | 4.661597 | 0.380228 | 0.039152 | 0.026917 | 0.036705 | 0.040783 | 0.040783 | 0 | 0 | 0 | 0 | 0 | 0.015162 | 0.156886 | 1,721 | 63 | 111 | 27.31746 | 0.829773 | 0.342824 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0 | 0.129032 | 0.064516 | 0.516129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
69f810ed0351a74e5b2690c573e5df43e2d237d5 | 206 | py | Python | alfred/Alfred.alfredpreferences/workflows/user.workflow.FC626593-799A-41F2-98B6-78C8887B7C2D/reset.py | snics/dotfiles | 77fe513591ecb7194fd0226b8083d5e45fc3123c | [
"BSD-2-Clause"
] | 4 | 2020-04-05T17:23:46.000Z | 2022-03-19T16:04:21.000Z | alfred/Alfred.alfredpreferences/workflows/user.workflow.FC626593-799A-41F2-98B6-78C8887B7C2D/reset.py | snics/dotfiles | 77fe513591ecb7194fd0226b8083d5e45fc3123c | [
"BSD-2-Clause"
] | null | null | null | alfred/Alfred.alfredpreferences/workflows/user.workflow.FC626593-799A-41F2-98B6-78C8887B7C2D/reset.py | snics/dotfiles | 77fe513591ecb7194fd0226b8083d5e45fc3123c | [
"BSD-2-Clause"
] | 2 | 2020-07-01T20:33:55.000Z | 2021-12-29T09:13:33.000Z | # encoding: utf-8
from workflow import Workflow
def main(wf):
wf.reset()
wf.delete_password('gitea_api_key')
if __name__ == u"__main__":
wf = Workflow()
log = wf.logger
wf.run(main)
| 14.714286 | 39 | 0.645631 | 30 | 206 | 4.066667 | 0.7 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0.223301 | 206 | 13 | 40 | 15.846154 | 0.75625 | 0.072816 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
69f85e376bf2903e28cfc04aac902145ebb45e02 | 2,417 | py | Python | training_modules/f01_data_type/NTRU.py | MakRude/SCA-with-keras | 79985987a17bbc437c132a4d66ff1593dd374494 | [
"MIT"
] | 2 | 2020-08-07T11:39:51.000Z | 2021-01-03T14:38:43.000Z | training_modules/f01_data_type/NTRU.py | MakRude/SCA-with-keras | 79985987a17bbc437c132a4d66ff1593dd374494 | [
"MIT"
] | null | null | null | training_modules/f01_data_type/NTRU.py | MakRude/SCA-with-keras | 79985987a17bbc437c132a4d66ff1593dd374494 | [
"MIT"
] | null | null | null | import training_modules.f01_data_type.generic_dl as gdl
import sys
import chipwhisperer as cw
import numpy as np
from numpy import empty
from keras.utils import to_categorical
class Ntru(gdl.GDL):
"""
TODO: add description
"""
def __load_from_file(self, ntru_file):
"""
TODO: add descr... | 31.802632 | 107 | 0.606537 | 323 | 2,417 | 4.263158 | 0.359133 | 0.040668 | 0.063907 | 0.023965 | 0.11329 | 0.074074 | 0.034858 | 0 | 0 | 0 | 0 | 0.013929 | 0.287133 | 2,417 | 75 | 108 | 32.226667 | 0.785258 | 0.217211 | 0 | 0.058824 | 0 | 0 | 0.002271 | 0 | 0 | 0 | 0 | 0.053333 | 0.029412 | 1 | 0.088235 | false | 0 | 0.176471 | 0 | 0.323529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69fca1b8a7bee4b22275b05bf00f11512bbce8c2 | 366 | py | Python | app/core/migrations/0006_auto_20200819_2041.py | dodge-ttu/gohan-api | bf3d4a4e7a93c699a00865c769975d6cfb3ec8cf | [
"MIT"
] | null | null | null | app/core/migrations/0006_auto_20200819_2041.py | dodge-ttu/gohan-api | bf3d4a4e7a93c699a00865c769975d6cfb3ec8cf | [
"MIT"
] | null | null | null | app/core/migrations/0006_auto_20200819_2041.py | dodge-ttu/gohan-api | bf3d4a4e7a93c699a00865c769975d6cfb3ec8cf | [
"MIT"
] | null | null | null | # Generated by Django 2.1.15 on 2020-08-19 20:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0005_location'),
]
operations = [
migrations.AlterField(
model_name='location',
name='loc_id',
... | 19.263158 | 48 | 0.579235 | 38 | 366 | 5.5 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 0.303279 | 366 | 18 | 49 | 20.333333 | 0.741176 | 0.125683 | 0 | 0 | 1 | 0 | 0.097484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e114ab7c59db139f3dbb499f3f29a244413c47b | 16,601 | py | Python | old-references/upload_to_galaxy.py | pajanne/galaxy-kickstart | a2e8a9d5f4e610f00548deab691d71290aa3a3b7 | [
"MIT"
] | 2 | 2016-08-04T19:16:17.000Z | 2016-08-04T19:45:58.000Z | old-references/upload_to_galaxy.py | pajanne/galaxy-kickstart | a2e8a9d5f4e610f00548deab691d71290aa3a3b7 | [
"MIT"
] | null | null | null | old-references/upload_to_galaxy.py | pajanne/galaxy-kickstart | a2e8a9d5f4e610f00548deab691d71290aa3a3b7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
create_ngslibraries.py
Created by Anne Pajon on 02 Apr 2012
Copyright (c) 2012 Cancer Research UK - Cambridge Research Institute.
To connect to LIMS database
ssh uk-cri-lbio08
/opt/local/server/database/mysql/bin/mysql -h uk-cri-lbio04 -u Galaxy -p
Galaxy web api: lib/galaxy/web/api/
Libra... | 47.567335 | 183 | 0.607554 | 2,048 | 16,601 | 4.704102 | 0.171875 | 0.027403 | 0.013494 | 0.005709 | 0.24891 | 0.149678 | 0.127465 | 0.101204 | 0.084804 | 0.06394 | 0 | 0.007167 | 0.294018 | 16,601 | 348 | 184 | 47.704023 | 0.814846 | 0.072586 | 0 | 0.131783 | 0 | 0.003876 | 0.106689 | 0.019249 | 0 | 0 | 0 | 0 | 0.007752 | 0 | null | null | 0.007752 | 0.100775 | null | null | 0.003876 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e11f4babc0cd27f0cdde31b6823eea0785ebb88 | 2,348 | py | Python | DfsShortestPath/dfs_solution.py | shams-sam/logic-lab | 559990b0c3d44bfe59d32dcb8038a0cab3efc26e | [
"MIT"
] | null | null | null | DfsShortestPath/dfs_solution.py | shams-sam/logic-lab | 559990b0c3d44bfe59d32dcb8038a0cab3efc26e | [
"MIT"
] | null | null | null | DfsShortestPath/dfs_solution.py | shams-sam/logic-lab | 559990b0c3d44bfe59d32dcb8038a0cab3efc26e | [
"MIT"
] | null | null | null | import sys
n, m = map(int, raw_input().strip().split())
v1, v2 = map(int, raw_input().strip().split())
x, y = map(int, raw_input().strip().split())
route_map = {}
distance_map = {}
def get_edge_name(x, y):
if x > y:
x, y = y, x
return str(x) + '_' + str(y)
def get_edge_distance(x,y):
edge_name = get... | 32.611111 | 110 | 0.620954 | 386 | 2,348 | 3.531088 | 0.139896 | 0.024945 | 0.044021 | 0.058694 | 0.729274 | 0.681585 | 0.595745 | 0.595745 | 0.548789 | 0.548789 | 0 | 0.016403 | 0.247019 | 2,348 | 71 | 111 | 33.070423 | 0.754525 | 0 | 0 | 0.393939 | 0 | 0 | 0.008095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015152 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e12eeb949cd33ce70d81104f0904e67ac21f232 | 562 | py | Python | Modulo4/scripts/archivos/personas.py | Flor246/PythonFlor | 6481e258286bdb939e42190363cdd6d3bb70c00d | [
"Apache-2.0"
] | null | null | null | Modulo4/scripts/archivos/personas.py | Flor246/PythonFlor | 6481e258286bdb939e42190363cdd6d3bb70c00d | [
"Apache-2.0"
] | null | null | null | Modulo4/scripts/archivos/personas.py | Flor246/PythonFlor | 6481e258286bdb939e42190363cdd6d3bb70c00d | [
"Apache-2.0"
] | null | null | null | import os
RUTA = os.getcwd()
file_path = os.path.join(RUTA,'personas.txt')
with open(file_path, mode='r',encoding='utf-8') as f:
data_personas = f.readlines()
pass # end with
# print(data_personas)
lista_persona = []
for p in data_personas:
# Separo linea por separador ';
data_p = p.split(';')
... | 20.814815 | 53 | 0.620996 | 81 | 562 | 4.111111 | 0.592593 | 0.075075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011601 | 0.233096 | 562 | 27 | 54 | 20.814815 | 0.761021 | 0.156584 | 0 | 0 | 0 | 0 | 0.108511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.058824 | 0 | 0.058824 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
38563a9216696f36236c3e4f5cae1d1fc1a2d1a3 | 4,812 | py | Python | Numerik042.py | matzegltg/miau | 89b580baccbd258fbfd81bc19b46603a07873f14 | [
"MIT"
] | null | null | null | Numerik042.py | matzegltg/miau | 89b580baccbd258fbfd81bc19b46603a07873f14 | [
"MIT"
] | 1 | 2021-05-07T15:50:51.000Z | 2021-05-07T15:50:51.000Z | Numerik042.py | matzegltg/miau | 89b580baccbd258fbfd81bc19b46603a07873f14 | [
"MIT"
] | null | null | null | import numpy
from numpy import copy
import matplotlib.pyplot as plt
import scipy.integrate as integrate
def solve(aa, bb, cc, dd):
""" Thomas Algorithmus zum Loesen eines tridiagonalen Gleichungssystems
aa -- N-1 Eintraege der unteren Nebendiagonale: (2,1) ... (N, N-1)
bb -- N Eintraege der Hauptdiagona... | 31.246753 | 92 | 0.594763 | 842 | 4,812 | 3.339667 | 0.216152 | 0.013869 | 0.02845 | 0.014225 | 0.311878 | 0.29303 | 0.269915 | 0.234708 | 0.234708 | 0.208393 | 0 | 0.074619 | 0.222984 | 4,812 | 154 | 93 | 31.246753 | 0.677454 | 0.067747 | 0 | 0.298969 | 0 | 0 | 0.044486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041237 | null | null | 0.185567 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3857bbf379668602b4df7c8825e0341fb6ab59fb | 933 | py | Python | repository/migrations/0012_reposize.py | christianwgd/django_restic_gui | c9f589ad01d30fa4dc47a4b33e166ef3ff9a9f4a | [
"MIT"
] | 5 | 2020-12-23T16:20:26.000Z | 2022-01-03T15:43:12.000Z | repository/migrations/0012_reposize.py | christianwgd/django_restic_gui | c9f589ad01d30fa4dc47a4b33e166ef3ff9a9f4a | [
"MIT"
] | 5 | 2020-10-28T06:12:08.000Z | 2021-09-23T15:46:33.000Z | repository/migrations/0012_reposize.py | christianwgd/django_restic_gui | c9f589ad01d30fa4dc47a4b33e166ef3ff9a9f4a | [
"MIT"
] | 1 | 2020-11-23T20:22:23.000Z | 2020-11-23T20:22:23.000Z | # Generated by Django 3.1.4 on 2020-12-15 16:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('repository', '0011_remove_repository_sudo'),
]
operations = [
migrations.CreateModel(
name='Rep... | 33.321429 | 147 | 0.596999 | 92 | 933 | 5.891304 | 0.597826 | 0.101476 | 0.051661 | 0.081181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028024 | 0.273312 | 933 | 27 | 148 | 34.555556 | 0.771386 | 0.048232 | 0 | 0 | 1 | 0 | 0.205418 | 0.054176 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
385df451f088dd66e5d3d2b0fabb831dec381dd0 | 5,899 | py | Python | sdk/python/pulumi_rancher2/get_certificate.py | pulumi/pulumi-rancher2 | 7a98af8cf598b711084a7f46c0fe71b43ed7a8ac | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-03-23T15:59:11.000Z | 2021-01-29T00:37:32.000Z | sdk/python/pulumi_rancher2/get_certificate.py | pulumi/pulumi-rancher2 | 7a98af8cf598b711084a7f46c0fe71b43ed7a8ac | [
"ECL-2.0",
"Apache-2.0"
] | 76 | 2020-01-16T20:00:25.000Z | 2022-03-31T20:30:08.000Z | sdk/python/pulumi_rancher2/get_certificate.py | pulumi/pulumi-rancher2 | 7a98af8cf598b711084a7f46c0fe71b43ed7a8ac | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-03-27T17:39:59.000Z | 2020-11-24T23:09:24.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 33.902299 | 144 | 0.64655 | 670 | 5,899 | 5.464179 | 0.208955 | 0.054084 | 0.034963 | 0.065556 | 0.260585 | 0.158154 | 0.115269 | 0.086042 | 0.04425 | 0.04425 | 0 | 0.002946 | 0.251907 | 5,899 | 173 | 145 | 34.098266 | 0.826649 | 0.234107 | 0 | 0.134615 | 1 | 0 | 0.138261 | 0.01702 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105769 | false | 0 | 0.048077 | 0.028846 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38614606118bd3661bd719baa35b9da6ff4b1ffb | 563 | py | Python | mmfewshot/classification/models/classifiers/proto_net.py | BIGWangYuDong/mmfewshot | dac097afc92df176bc2de76b7c90968584865197 | [
"Apache-2.0"
] | 376 | 2021-11-23T13:29:57.000Z | 2022-03-30T07:22:14.000Z | mmfewshot/classification/models/classifiers/proto_net.py | BIGWangYuDong/mmfewshot | dac097afc92df176bc2de76b7c90968584865197 | [
"Apache-2.0"
] | 51 | 2021-11-23T14:45:08.000Z | 2022-03-30T03:37:15.000Z | mmfewshot/classification/models/classifiers/proto_net.py | BIGWangYuDong/mmfewshot | dac097afc92df176bc2de76b7c90968584865197 | [
"Apache-2.0"
] | 56 | 2021-11-23T14:02:27.000Z | 2022-03-31T09:01:50.000Z | # Copyright (c) OpenMMLab. All rights reserved.
import copy
from typing import Dict
from mmcls.models.builder import CLASSIFIERS
from .base_metric import BaseMetricClassifier
@CLASSIFIERS.register_module()
class ProtoNet(BaseMetricClassifier):
"""Implementation of `ProtoNet <https://arxiv.org/abs/1703.05175>`_.... | 28.15 | 75 | 0.660746 | 61 | 563 | 5.901639 | 0.688525 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020501 | 0.220249 | 563 | 19 | 76 | 29.631579 | 0.799544 | 0.198934 | 0 | 0 | 0 | 0 | 0.029213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3863482609233724a8f285b59dbc7895ab5a786d | 892 | py | Python | iotbx/pymol.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 155 | 2016-11-23T12:52:16.000Z | 2022-03-31T15:35:44.000Z | iotbx/pymol.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 590 | 2016-12-10T11:31:18.000Z | 2022-03-30T23:10:09.000Z | iotbx/pymol.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 115 | 2016-11-15T08:17:28.000Z | 2022-02-09T15:30:14.000Z | from __future__ import absolute_import, division, print_function
from libtbx import adopt_init_args
class pml_stick(object):
def __init__(self, begin, end, colors=None, width=None):
if (colors is None):
colors = [[1,0,0]]*2
if (width is None):
width = 0.1
adopt_init_args(self, locals())
def... | 35.68 | 81 | 0.600897 | 137 | 892 | 3.788321 | 0.321168 | 0.096339 | 0.154143 | 0.084778 | 0.250482 | 0.190751 | 0.190751 | 0.190751 | 0.190751 | 0.134875 | 0 | 0.028728 | 0.180493 | 892 | 24 | 82 | 37.166667 | 0.681259 | 0 | 0 | 0 | 0 | 0 | 0.180493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.190476 | 0 | 0.333333 | 0.52381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
386572c544b85c67130196f36223f48da25f3705 | 2,109 | py | Python | titanic/titanic.py | iofu728/Task | dd1f050d57ea831320ab6e4c2b827714cc13dfe3 | [
"MIT"
] | 2 | 2019-05-23T10:46:51.000Z | 2020-03-21T13:42:22.000Z | titanic/titanic.py | iofu728/Task | dd1f050d57ea831320ab6e4c2b827714cc13dfe3 | [
"MIT"
] | 1 | 2019-05-23T11:10:50.000Z | 2019-05-23T14:37:42.000Z | titanic/titanic.py | iofu728/Task | dd1f050d57ea831320ab6e4c2b827714cc13dfe3 | [
"MIT"
] | 3 | 2019-12-30T00:59:21.000Z | 2020-04-13T05:51:26.000Z | # -*- coding: utf-8 -*-
# @Author: gunjianpan
# @Date: 2019-02-26 16:36:23
# @Last Modified by: gunjianpan
# @Last Modified time: 2019-03-04 22:31:29
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from pandas import Series, DataFrame
from matplotlib import rcParams
# rcParams['font.family'... | 29.704225 | 63 | 0.678046 | 330 | 2,109 | 4.236364 | 0.366667 | 0.090129 | 0.057225 | 0.060801 | 0.340486 | 0.168097 | 0.054363 | 0.054363 | 0.054363 | 0 | 0 | 0.039152 | 0.128023 | 2,109 | 70 | 64 | 30.128571 | 0.721044 | 0.5633 | 0 | 0.090909 | 0 | 0 | 0.082955 | 0.025 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.318182 | 0 | 0.318182 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3865eead1c9bc245da655e782b21812bbf8a9dfe | 5,213 | py | Python | Email_Input.py | saurabhkmr707/i_hack | 1a09be8f730e998104fecfe32843130c4dfeaeca | [
"MIT"
] | null | null | null | Email_Input.py | saurabhkmr707/i_hack | 1a09be8f730e998104fecfe32843130c4dfeaeca | [
"MIT"
] | null | null | null | Email_Input.py | saurabhkmr707/i_hack | 1a09be8f730e998104fecfe32843130c4dfeaeca | [
"MIT"
] | null | null | null | import glob
import re
import cPickle
import random
import numpy as np
from collections import Counter # Counter is a sict subclass. It is an unordered collection where elements are
# stored as keys, and their counts as dict values.
class DocReader():
def __init__(self):
pass
# Returns the ... | 33.632258 | 112 | 0.575484 | 593 | 5,213 | 4.979764 | 0.342327 | 0.013546 | 0.016255 | 0.010836 | 0.073146 | 0.073146 | 0.033864 | 0.033864 | 0.033864 | 0.033864 | 0 | 0.005158 | 0.33052 | 5,213 | 155 | 113 | 33.632258 | 0.840974 | 0.096873 | 0 | 0.089888 | 0 | 0 | 0.036269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011236 | 0.078652 | null | null | 0.067416 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
386d690a490462bdb3c769ae850426af232609f3 | 423 | py | Python | afwf_fts_anything/constant.py | MacHu-GWU/afwf_fts_anything-project | 7050f12f6df9688fd553a5673ab21e10fa571cf2 | [
"MIT"
] | 20 | 2019-01-03T22:31:41.000Z | 2021-10-14T11:32:29.000Z | afwf_fts_anything/constant.py | MacHu-GWU/afwf_fts_anything-project | 7050f12f6df9688fd553a5673ab21e10fa571cf2 | [
"MIT"
] | 2 | 2019-01-02T21:36:40.000Z | 2020-08-23T18:03:54.000Z | afwf_fts_anything/constant.py | MacHu-GWU/afwf_fts_anything-project | 7050f12f6df9688fd553a5673ab21e10fa571cf2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
dir settings
"""
from __future__ import unicode_literals
from pathlib_mate import PathCls as Path
HOME = Path.home()
"""
User home directory:
- Windows: C:\\Users\\<username>
- MacOS: /Users/<username>
- Ubuntu: /home/<username>
"""
ALFRED_FTS = Path(HOME, ".alfred-fts")
"""
Alfred Ful... | 16.269231 | 56 | 0.671395 | 56 | 423 | 4.910714 | 0.625 | 0.163636 | 0.094545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002786 | 0.1513 | 423 | 25 | 57 | 16.92 | 0.763231 | 0.082742 | 0 | 0 | 0 | 0 | 0.055276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
38729a0e2561add0932a491898c2029a0035bad6 | 420 | py | Python | osf/files/addons-weko-local.py | sifulan-access-federation/helm-charts | ea6a36cedc0e5743d6b04440816c9dd8071a23e2 | [
"Apache-2.0"
] | null | null | null | osf/files/addons-weko-local.py | sifulan-access-federation/helm-charts | ea6a36cedc0e5743d6b04440816c9dd8071a23e2 | [
"Apache-2.0"
] | null | null | null | osf/files/addons-weko-local.py | sifulan-access-federation/helm-charts | ea6a36cedc0e5743d6b04440816c9dd8071a23e2 | [
"Apache-2.0"
] | null | null | null | import os
REPOSITORIES = {
'weko2.rdm.nii.ac.jp': {
'host': 'https://weko2.rdm.nii.ac.jp/weko/sword/',
'client_id': os.environ['WEKO_CLIENT_ID'],
'client_secret': os.environ['WEKO_CLIENT_SECRET'],
'authorize_url': 'https://weko2.rdm.nii.ac.jp/oauth/authorize.php',
'access_token_url': 'ht... | 32.307692 | 73 | 0.664286 | 60 | 420 | 4.483333 | 0.45 | 0.118959 | 0.163569 | 0.193309 | 0.33829 | 0.282528 | 0.208178 | 0.208178 | 0 | 0 | 0 | 0.010989 | 0.133333 | 420 | 12 | 74 | 35 | 0.728022 | 0 | 0 | 0 | 0 | 0 | 0.559524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38745ff2a265d447b3984e269515755337e06d67 | 3,799 | py | Python | frontend/frontend/interpreter.py | LRAbbade/Interpreter | 6293ef3b57c292438c4e0402f783e1029f28b38f | [
"Unlicense"
] | null | null | null | frontend/frontend/interpreter.py | LRAbbade/Interpreter | 6293ef3b57c292438c4e0402f783e1029f28b38f | [
"Unlicense"
] | null | null | null | frontend/frontend/interpreter.py | LRAbbade/Interpreter | 6293ef3b57c292438c4e0402f783e1029f28b38f | [
"Unlicense"
] | null | null | null | import re
# tamanho da memoria
memory_size = 8
cache_size = 4
# for using with programa.pulp
def decode(line):
line = re.sub(' ', '', line)
if len(re.findall('#', line)) > 0:
line = line[:line.index('#')]
return line[:2], line[2:5], line[5:]
def bin2Int(bin_number):
return int(bin_number, 2)... | 25.843537 | 90 | 0.644643 | 553 | 3,799 | 4.189873 | 0.209765 | 0.072508 | 0.018127 | 0.020716 | 0.210617 | 0.174363 | 0.104445 | 0.056107 | 0.056107 | 0.056107 | 0 | 0.027853 | 0.225059 | 3,799 | 146 | 91 | 26.020548 | 0.759171 | 0.055804 | 0 | 0.074074 | 0 | 0 | 0.068474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.231481 | false | 0 | 0.009259 | 0.074074 | 0.361111 | 0.12963 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38774db5cff38500b58cdcc65309b751573d9d61 | 292 | py | Python | test1.py | chjacast/WaterComsumptionPaipayales | a0b7e83ce45d6c5deafa3503fbc222d5be7ec009 | [
"MIT"
] | 2 | 2021-12-03T16:13:19.000Z | 2021-12-07T18:56:07.000Z | test1.py | MechatronicsClub/WaterComsumptionPaipayales | 99b7db0a278f325739f6af7e4e9cb2838a416ffe | [
"MIT"
] | null | null | null | test1.py | MechatronicsClub/WaterComsumptionPaipayales | 99b7db0a278f325739f6af7e4e9cb2838a416ffe | [
"MIT"
] | 1 | 2021-12-07T18:56:11.000Z | 2021-12-07T18:56:11.000Z | import digitalio
import board
import busio
import adafruit_rfm9x
RADIO_FREQ_MHZ = 915.0
CS = digitalio.DigitalInOut(board.CE1)
RESET = digitalio.DigitalInOut(board.D25)
spi = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)
rfm9x = adafruit_rfm9x.RFM9x(spi, CS, RESET, RADIO_FREQ_MHZ)
| 26.545455 | 60 | 0.797945 | 45 | 292 | 5.044444 | 0.444444 | 0.114537 | 0.105727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041825 | 0.099315 | 292 | 10 | 61 | 29.2 | 0.821293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3878f56e3a92aed20ed78427675283de46a40ae9 | 356 | py | Python | setup.py | ciubecca/3dunet-cavity | cfcc827773b18a95d221ab86c1afc5e2f7c30ecb | [
"MIT"
] | null | null | null | setup.py | ciubecca/3dunet-cavity | cfcc827773b18a95d221ab86c1afc5e2f7c30ecb | [
"MIT"
] | null | null | null | setup.py | ciubecca/3dunet-cavity | cfcc827773b18a95d221ab86c1afc5e2f7c30ecb | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
exec(open('pytorch3dunet/__version__.py').read())
setup(
name="pytorch3dunet",
packages=find_packages(exclude=["tests"]),
version=__version__,
author="Adrian Wolny, Lorenzo Cerrone",
url="https://github.com/wolny/pytorch-3dunet",
license="MIT... | 27.384615 | 51 | 0.679775 | 40 | 356 | 5.775 | 0.8 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016835 | 0.16573 | 356 | 12 | 52 | 29.666667 | 0.760943 | 0 | 0 | 0 | 0 | 0 | 0.354651 | 0.081395 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38807fea1b6513084aa83f1aa3cf30ea20946fcb | 1,312 | py | Python | introduction_to_machine_learning_with_python/3.5/adjust_rand_score.py | HuangStomach/machine-learning | 47689469c431e2a833437b38832d3fdceda7b2b2 | [
"MIT"
] | null | null | null | introduction_to_machine_learning_with_python/3.5/adjust_rand_score.py | HuangStomach/machine-learning | 47689469c431e2a833437b38832d3fdceda7b2b2 | [
"MIT"
] | null | null | null | introduction_to_machine_learning_with_python/3.5/adjust_rand_score.py | HuangStomach/machine-learning | 47689469c431e2a833437b38832d3fdceda7b2b2 | [
"MIT"
] | null | null | null | import matplotlib
matplotlib.use('MacOSX')
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import mglearn
from sklearn.datasets import make_moons
from sklearn.metrics.cluster import adjusted_rand_score
X, y = make_moons(n_samples=200, noise=0.05, random_state=0)
from sklearn.preprocessing impor... | 35.459459 | 107 | 0.756098 | 196 | 1,312 | 4.882653 | 0.428571 | 0.068966 | 0.053292 | 0.075235 | 0.102403 | 0.102403 | 0.050157 | 0.050157 | 0 | 0 | 0 | 0.027188 | 0.102896 | 1,312 | 36 | 108 | 36.444444 | 0.785896 | 0 | 0 | 0 | 0 | 0 | 0.049543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.407407 | 0 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3882ececc503db5d00f55294418d280e27dedc55 | 1,453 | py | Python | server/routers/internal/carbon_offset.py | mitchLui/css_boeing_hackathon_2-22 | ded74fb3ea0cd1fbfa7539f091e6f3d4b8663234 | [
"MIT"
] | 1 | 2022-03-10T12:46:11.000Z | 2022-03-10T12:46:11.000Z | server/routers/internal/carbon_offset.py | mitchLui/css_boeing_hackathon_2-22 | ded74fb3ea0cd1fbfa7539f091e6f3d4b8663234 | [
"MIT"
] | 2 | 2022-02-26T12:17:38.000Z | 2022-02-26T14:11:39.000Z | server/routers/internal/carbon_offset.py | mitchLui/css_boeing_hackathon_2-22 | ded74fb3ea0cd1fbfa7539f091e6f3d4b8663234 | [
"MIT"
] | null | null | null | from typing import List, Union
class CarbonOffsetCalculator:
def __init__(self) -> None:
# carbon emitted per km
self.carbon_emissions = {
"scooter": 0.11,
"bus": 0.89,
"train": 0.035,
"ev": 33
}
def calculate_carbon_offset(self, dista... | 36.325 | 108 | 0.624226 | 182 | 1,453 | 4.785714 | 0.384615 | 0.15155 | 0.192882 | 0.126292 | 0.167623 | 0.10333 | 0 | 0 | 0 | 0 | 0 | 0.03407 | 0.252581 | 1,453 | 39 | 109 | 37.25641 | 0.767956 | 0.139023 | 0 | 0 | 0 | 0 | 0.089228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.038462 | 0 | 0.269231 | 0.076923 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
388436f7c2c9ec000c26e8aa08ca0c1b48936a73 | 377 | py | Python | setup.py | bekozi/simple-aws | bf2f22f5a9b56af70359fec5f587d567fed93420 | [
"MIT"
] | null | null | null | setup.py | bekozi/simple-aws | bf2f22f5a9b56af70359fec5f587d567fed93420 | [
"MIT"
] | 4 | 2015-04-01T16:46:50.000Z | 2015-04-04T20:40:59.000Z | setup.py | bekozi/simple-aws | bf2f22f5a9b56af70359fec5f587d567fed93420 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='saws',
version='0.01a',
packages=find_packages(where='./src'),
package_dir={'': 'src'},
url='https://github.com/bekozi/simple-aws',
license='MIT',
author='bekozi',
author_email='ben.koziol@gmail.com',
description='A simple ma... | 25.133333 | 82 | 0.671088 | 48 | 377 | 5.1875 | 0.8125 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009585 | 0.169761 | 377 | 14 | 83 | 26.928571 | 0.785942 | 0 | 0 | 0 | 0 | 0 | 0.387268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
388c6f39d79ee686ab63304cfb952e7c9f5d33fb | 240 | py | Python | Question_11_20/answers_py/answer_20.py | lusi1990/ImageProcessing100Wen | 3682e1d68a1b8472818402df2cc75ded82bb1805 | [
"MIT"
] | null | null | null | Question_11_20/answers_py/answer_20.py | lusi1990/ImageProcessing100Wen | 3682e1d68a1b8472818402df2cc75ded82bb1805 | [
"MIT"
] | null | null | null | Question_11_20/answers_py/answer_20.py | lusi1990/ImageProcessing100Wen | 3682e1d68a1b8472818402df2cc75ded82bb1805 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
import matplotlib.pyplot as plt
# Read image
img = cv2.imread("imori.jpg").astype(np.float)
img.ravel()
# Display histogram
plt.hist(img.ravel(), bins=255, range=(0, 255))
# plt.savefig("out.png")
plt.show()
| 20 | 48 | 0.7125 | 40 | 240 | 4.275 | 0.7 | 0.093567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042654 | 0.120833 | 240 | 11 | 49 | 21.818182 | 0.767773 | 0.2125 | 0 | 0 | 0 | 0 | 0.048649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
38abb0bf5b0638f2aaae63e02604ce3f99f97c54 | 5,930 | py | Python | cg_pyrosetta/tests/test_CG_movers.py | shirtsgroup/cg_pyrosetta | bf69737e9bd88735e17c48629b9bc420e5ca2024 | [
"MIT"
] | null | null | null | cg_pyrosetta/tests/test_CG_movers.py | shirtsgroup/cg_pyrosetta | bf69737e9bd88735e17c48629b9bc420e5ca2024 | [
"MIT"
] | 17 | 2020-01-22T18:48:04.000Z | 2021-07-22T20:20:41.000Z | cg_pyrosetta/tests/test_CG_movers.py | shirtsgroup/cg_pyrosetta | bf69737e9bd88735e17c48629b9bc420e5ca2024 | [
"MIT"
] | null | null | null | """
Unit and regression test for the cg_pyrosetta package.
"""
import cg_pyrosetta
import pyrosetta
import numpy as np
import pytest
import sys
import pytest
pyrosetta.init()
# @pytest.fixture()
# def pose():
# return(pyrosetta.pose_from_sequence('X[CG11x3:CGLower]X[CG11x3]X[CG11x3][CG11x3:CGUpper]'))
def test... | 34.08046 | 107 | 0.625801 | 805 | 5,930 | 4.429814 | 0.122981 | 0.047112 | 0.080763 | 0.111049 | 0.762199 | 0.708357 | 0.655637 | 0.608525 | 0.607403 | 0.57263 | 0 | 0.04473 | 0.238449 | 5,930 | 174 | 108 | 34.08046 | 0.744907 | 0.049241 | 0 | 0.513043 | 0 | 0 | 0.073981 | 0.063796 | 0 | 0 | 0 | 0 | 0.130435 | 1 | 0.086957 | false | 0.017391 | 0.052174 | 0 | 0.13913 | 0.008696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38ac9fa252c96fd712d4736e73d7a93d9c81a23f | 681 | py | Python | src/articles/views.py | SerhatTeker/django-rest-filtering-tutorial | b02cd9c14cceddbf604cee83026f7134f8109d75 | [
"BSD-3-Clause"
] | null | null | null | src/articles/views.py | SerhatTeker/django-rest-filtering-tutorial | b02cd9c14cceddbf604cee83026f7134f8109d75 | [
"BSD-3-Clause"
] | null | null | null | src/articles/views.py | SerhatTeker/django-rest-filtering-tutorial | b02cd9c14cceddbf604cee83026f7134f8109d75 | [
"BSD-3-Clause"
] | null | null | null | from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import viewsets
from rest_framework.filters import OrderingFilter, SearchFilter
from src.articles.models import Article
from src.articles.serializers import ArticleSerializer
class ArticleViewSet(viewsets.ModelViewSet):
serializer_... | 32.428571 | 69 | 0.745962 | 67 | 681 | 7.358209 | 0.507463 | 0.079108 | 0.077079 | 0.081136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165932 | 681 | 20 | 70 | 34.05 | 0.867958 | 0 | 0 | 0 | 0 | 0 | 0.10279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.294118 | 0 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
38b6b669f5d2a5a02cf87096fac4daf79be95394 | 603 | py | Python | ctapipe/io/__init__.py | cta-sst-1m/ctapipe | 10b058f8dcc166177d1eb5b2af638ca37722a021 | [
"BSD-3-Clause"
] | 1 | 2020-05-18T12:41:51.000Z | 2020-05-18T12:41:51.000Z | ctapipe/io/__init__.py | cta-sst-1m/ctapipe | 10b058f8dcc166177d1eb5b2af638ca37722a021 | [
"BSD-3-Clause"
] | null | null | null | ctapipe/io/__init__.py | cta-sst-1m/ctapipe | 10b058f8dcc166177d1eb5b2af638ca37722a021 | [
"BSD-3-Clause"
] | 1 | 2021-07-08T16:15:13.000Z | 2021-07-08T16:15:13.000Z | from .array import get_array_layout
from .eventseeker import EventSeeker
from .eventsource import EventSource, event_source
from .hdf5tableio import HDF5TableReader, HDF5TableWriter
from .tableio import TableWriter, TableReader
from .datalevels import DataLevel
# import event sources to make them visible to EventSourc... | 26.217391 | 67 | 0.764511 | 59 | 603 | 7.627119 | 0.423729 | 0.035556 | 0.062222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009881 | 0.160862 | 603 | 22 | 68 | 27.409091 | 0.879447 | 0.107794 | 0 | 0 | 0 | 0 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.368421 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
38bceafc07b55feca2563ed5126f04d3b3496ab7 | 385 | py | Python | World 1/Exercise 12.py | NikiReis/Python--Exercises | 2f50a3cd6900cec024edcf1a812d1cd86afcdea1 | [
"MIT"
] | null | null | null | World 1/Exercise 12.py | NikiReis/Python--Exercises | 2f50a3cd6900cec024edcf1a812d1cd86afcdea1 | [
"MIT"
] | null | null | null | World 1/Exercise 12.py | NikiReis/Python--Exercises | 2f50a3cd6900cec024edcf1a812d1cd86afcdea1 | [
"MIT"
] | null | null | null | from multiprocessing.sharedctypes import Value
print("-"*23)
print("Discount Calculator")
print("-"*23)
Value = float(input("Product's value: R$ "))
discountpercentage = int(input("Discount's percentage: "))
finalvalue = Value -(Value*(discountpercentage/100))
print("-"*23)
print("The final value with {}% o... | 32.083333 | 84 | 0.698701 | 44 | 385 | 6.113636 | 0.568182 | 0.104089 | 0.089219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035191 | 0.114286 | 385 | 12 | 85 | 32.083333 | 0.753666 | 0 | 0 | 0.4 | 0 | 0 | 0.272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
38bfc8f908e1fd0abd9595300fb0c77851911a12 | 411 | py | Python | accounts/urls.py | abhinav29aman/Quora-Clone | 50ab87edbcef2294d90a44a220272aac60eb7cf9 | [
"MIT"
] | null | null | null | accounts/urls.py | abhinav29aman/Quora-Clone | 50ab87edbcef2294d90a44a220272aac60eb7cf9 | [
"MIT"
] | 4 | 2021-03-30T14:02:16.000Z | 2021-09-22T19:29:46.000Z | accounts/urls.py | abhinav29aman/Quora-Clone | 50ab87edbcef2294d90a44a220272aac60eb7cf9 | [
"MIT"
] | 3 | 2020-07-31T12:39:00.000Z | 2020-08-16T14:41:06.000Z | from django.urls import path, include
from . import views
app_name = 'accounts'
urlpatterns = [
path('profile/<str:username>/', views.userProfile, name='profile'),
path('register/', views.registerUser, name='register'),
path('login/', views.loginUser, name='login'),
path('logout/', views.logoutUser, na... | 34.25 | 74 | 0.693431 | 46 | 411 | 6.173913 | 0.521739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126521 | 411 | 12 | 75 | 34.25 | 0.791086 | 0 | 0 | 0 | 0 | 0 | 0.264563 | 0.055825 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
38c4b1b7eccbf3a01389128dc3ce1b9afa9f5008 | 480 | py | Python | work/work/settings/dev.py | ralphleyga/django-jobportal | f7253c33d0c77f7f4fb19e477bcc012ea83dbcf5 | [
"MIT"
] | 3 | 2020-04-24T02:39:11.000Z | 2020-12-11T10:20:37.000Z | work/work/settings/dev.py | ralphleyga/django-jobportal | f7253c33d0c77f7f4fb19e477bcc012ea83dbcf5 | [
"MIT"
] | 3 | 2021-06-08T21:22:14.000Z | 2022-03-12T00:25:44.000Z | work/work/settings/dev.py | ralphleyga/django-jobportal | f7253c33d0c77f7f4fb19e477bcc012ea83dbcf5 | [
"MIT"
] | 1 | 2020-12-11T10:20:39.000Z | 2020-12-11T10:20:39.000Z | import json
from .base import *
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.getenv('DJANGO_SECRET_KEY')
ALLOWED_HOSTS = os.getenv('DJANGO_ALLOWED_HOSTS', '*').split(',')
DEBUG = os.getenv('DEBUG', True)
DATABASES = {
'default': {
'NAME': os.getenv('DATABASE_NAME'),... | 25.263158 | 66 | 0.65625 | 57 | 480 | 5.368421 | 0.561404 | 0.156863 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18125 | 480 | 18 | 67 | 26.666667 | 0.778626 | 0.133333 | 0 | 0 | 0 | 0 | 0.359903 | 0.070048 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
38c5e1fa48a9e49d7897912aed82236b5ee9b73a | 403 | py | Python | setup.py | SMFSW/python-SMFSWtoolbox | 887634248072a594fae7e925efd410c635632817 | [
"MIT"
] | null | null | null | setup.py | SMFSW/python-SMFSWtoolbox | 887634248072a594fae7e925efd410c635632817 | [
"MIT"
] | null | null | null | setup.py | SMFSW/python-SMFSWtoolbox | 887634248072a594fae7e925efd410c635632817 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name='SMFSWtoolbox',
packages=['SMFSWtoolbox'],
version='0.1.6',
url='https://github.com/SMFSW/python-SMFSWtoolbox',
license='MIT',
author='SMFSW',
author_email='xgarmanboziax@gmail.com',
description='Own-crafted toolbox with the aim to ... | 31 | 132 | 0.692308 | 46 | 403 | 6.043478 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009119 | 0.183623 | 403 | 12 | 133 | 33.583333 | 0.835866 | 0 | 0 | 0 | 0 | 0 | 0.554987 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38c683d0cbfd100ddf581caf0b8a3ea5cf4b504f | 3,211 | py | Python | sdk/python/pulumi_aws/elasticloadbalancing/app_cookie_stickiness_policy.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/elasticloadbalancing/app_cookie_stickiness_policy.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/elasticloadbalancing/app_cookie_stickiness_policy.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import pulumi
import pulumi.runtime
class AppCookieStickinessPolicy(pulumi.CustomResource):
"""
Provides an application cookie... | 40.64557 | 154 | 0.648396 | 369 | 3,211 | 5.327913 | 0.292683 | 0.073245 | 0.067141 | 0.065107 | 0.21058 | 0.12411 | 0.049847 | 0 | 0 | 0 | 0 | 0.00043 | 0.274992 | 3,211 | 78 | 155 | 41.166667 | 0.844072 | 0.131112 | 0 | 0 | 1 | 0 | 0.25423 | 0.032149 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.042553 | 0 | 0.106383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38cd6bd5b48f2656f13aa429be6bf6f8c2dca9b1 | 1,752 | py | Python | user_messages/models.py | matthiask/django-user-messages | dd76bb0c423a011f3a6473c128830b227e97f771 | [
"MIT"
] | 21 | 2018-04-18T17:58:12.000Z | 2022-01-19T12:41:01.000Z | user_messages/models.py | matthiask/django-user-messages | dd76bb0c423a011f3a6473c128830b227e97f771 | [
"MIT"
] | 4 | 2018-04-24T11:04:15.000Z | 2022-02-03T18:35:21.000Z | user_messages/models.py | matthiask/django-user-messages | dd76bb0c423a011f3a6473c128830b227e97f771 | [
"MIT"
] | 7 | 2018-03-04T16:03:44.000Z | 2022-02-03T15:50:39.000Z | import json
import sys
from django.conf import settings
from django.contrib.messages.storage.base import LEVEL_TAGS
from django.db import models
from django.utils import timezone
from django.utils.functional import cached_property
from django.utils.translation import gettext_lazy as _
class Message(models.Model):
... | 30.206897 | 81 | 0.66153 | 210 | 1,752 | 5.3 | 0.419048 | 0.053908 | 0.040431 | 0.050314 | 0.057502 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003731 | 0.23516 | 1,752 | 57 | 82 | 30.736842 | 0.826866 | 0.078196 | 0 | 0.088889 | 0 | 0 | 0.053383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.022222 | 0.177778 | 0.088889 | 0.644444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
38d185f6fa3d78dd5fbede1f191ced7596bc4a47 | 1,073 | py | Python | redmine_tracker/migrations/0007_auto_20170825_1653.py | desecho/redmine-time-tracker-not-finished | fd286833a20aa9a1bc28536b55c983f2550ec9fd | [
"MIT"
] | null | null | null | redmine_tracker/migrations/0007_auto_20170825_1653.py | desecho/redmine-time-tracker-not-finished | fd286833a20aa9a1bc28536b55c983f2550ec9fd | [
"MIT"
] | null | null | null | redmine_tracker/migrations/0007_auto_20170825_1653.py | desecho/redmine-time-tracker-not-finished | fd286833a20aa9a1bc28536b55c983f2550ec9fd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-08-25 20:53
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('redmine_tracker', '0006_project_is_hidden'),
]
operatio... | 26.825 | 122 | 0.586207 | 103 | 1,073 | 5.854369 | 0.504854 | 0.079602 | 0.086235 | 0.149254 | 0.149254 | 0.149254 | 0.149254 | 0 | 0 | 0 | 0 | 0.036096 | 0.302889 | 1,073 | 39 | 123 | 27.512821 | 0.770053 | 0.06151 | 0 | 0.375 | 1 | 0 | 0.13745 | 0.021912 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09375 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38d1c6085f9d24bc465188916c83cb6765279787 | 4,906 | py | Python | scripts/v1/simple_scripts/scan_files.py | kishore-arava/plgx-esp-sdk | 26fe7133ef1fd78ff5de54c089c55100e30983a4 | [
"MIT"
] | null | null | null | scripts/v1/simple_scripts/scan_files.py | kishore-arava/plgx-esp-sdk | 26fe7133ef1fd78ff5de54c089c55100e30983a4 | [
"MIT"
] | null | null | null | scripts/v1/simple_scripts/scan_files.py | kishore-arava/plgx-esp-sdk | 26fe7133ef1fd78ff5de54c089c55100e30983a4 | [
"MIT"
] | 4 | 2019-12-09T06:41:15.000Z | 2020-11-27T05:58:06.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Script for getting the reputation of all indicators collected in last 24 hrs from virustotal .
:copyright: (c) 2019 by PolyLogyx.
:license: MIT, see LICENSE for more details.
"""
import argparse
import json
import math
import time
import csv
import os
impo... | 34.549296 | 120 | 0.584183 | 576 | 4,906 | 4.821181 | 0.345486 | 0.022686 | 0.042852 | 0.021606 | 0.078142 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007272 | 0.299225 | 4,906 | 141 | 121 | 34.794326 | 0.800465 | 0.050143 | 0 | 0.115385 | 0 | 0.009615 | 0.191839 | 0.005766 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.067308 | 0.086538 | 0 | 0.182692 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
38d72f38b8a8651d725a1eddaddcf935cfff0b17 | 1,885 | py | Python | moses/char_rnn/trainer.py | rtriangle/moses | 1ef94d32f94f4f1cd7d46a91c76722bfa8a70632 | [
"MIT"
] | 2 | 2020-07-10T03:09:17.000Z | 2020-07-10T04:28:01.000Z | moses/char_rnn/trainer.py | stephenra/moses | 32dbc64c23bbae23fd964238108aa5c85852d537 | [
"MIT"
] | null | null | null | moses/char_rnn/trainer.py | stephenra/moses | 32dbc64c23bbae23fd964238108aa5c85852d537 | [
"MIT"
] | null | null | null | import torch.nn as nn
import torch.optim as optim
import tqdm
class CharRNNTrainer:
def __init__(self, config):
self.config = config
def fit(self, model, data):
def get_params():
return (p for p in model.parameters() if p.requires_grad)
if isinstance(data, tuple):
... | 29 | 86 | 0.587798 | 209 | 1,885 | 5.119617 | 0.320574 | 0.085047 | 0.035514 | 0.037383 | 0.061682 | 0.061682 | 0.061682 | 0 | 0 | 0 | 0 | 0.004637 | 0.313528 | 1,885 | 64 | 87 | 29.453125 | 0.822257 | 0 | 0 | 0.090909 | 0 | 0 | 0.022812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.068182 | 0.068182 | 0.022727 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
38d859d55e79f6faa205ccec15aa061bf094bd54 | 3,493 | py | Python | Contents/Libraries/Shared/subzero/history_storage.py | jippo015/Sub-Zero.bundle | 734e0f7128c05c0f639e11e7dfc77daa1014064b | [
"MIT"
] | 1,553 | 2015-11-09T02:17:06.000Z | 2022-03-31T20:24:52.000Z | Contents/Libraries/Shared/subzero/history_storage.py | saiterlz/Sub-Zero.bundle | 1a0bb9c3e4be84be35d46672907783363fe5a87b | [
"MIT"
] | 691 | 2015-11-05T21:32:26.000Z | 2022-03-17T10:52:45.000Z | Contents/Libraries/Shared/subzero/history_storage.py | saiterlz/Sub-Zero.bundle | 1a0bb9c3e4be84be35d46672907783363fe5a87b | [
"MIT"
] | 162 | 2015-11-06T19:38:55.000Z | 2022-03-16T02:42:41.000Z | # coding=utf-8
import datetime
import logging
import traceback
import types
from subzero.language import Language
from constants import mode_map
logger = logging.getLogger(__name__)
class SubtitleHistoryItem(object):
item_title = None
section_title = None
rating_key = None
provider_name = None
... | 28.867769 | 115 | 0.614372 | 428 | 3,493 | 4.817757 | 0.245327 | 0.043647 | 0.031523 | 0.026188 | 0.105723 | 0.084384 | 0.069835 | 0.069835 | 0.069835 | 0.069835 | 0 | 0.005219 | 0.286859 | 3,493 | 120 | 116 | 29.108333 | 0.822561 | 0.039794 | 0 | 0.069767 | 0 | 0 | 0.034369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162791 | false | 0 | 0.069767 | 0.093023 | 0.523256 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.