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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5adc1023528d08816b59b3f7e9f077fdbfbfb352 | 3,533 | py | Python | src/ontask/views.py | uts-cic/ontask_b | b313e2352c77b40655f41dd5acba3a7635e6f3b3 | [
"MIT"
] | null | null | null | src/ontask/views.py | uts-cic/ontask_b | b313e2352c77b40655f41dd5acba3a7635e6f3b3 | [
"MIT"
] | null | null | null | src/ontask/views.py | uts-cic/ontask_b | b313e2352c77b40655f41dd5acba3a7635e6f3b3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function
from django.contrib.auth import get_user_model
from django.core import signing
from django.http import Http404
from django.http import HttpResponse
from django.shortcuts import render, redirect
from django.views import generic
from django.... | 28.264 | 77 | 0.7045 | 485 | 3,533 | 4.969072 | 0.348454 | 0.043568 | 0.021577 | 0.043154 | 0.092946 | 0.032365 | 0 | 0 | 0 | 0 | 0 | 0.014973 | 0.206057 | 3,533 | 124 | 78 | 28.491935 | 0.844207 | 0.230399 | 0 | 0.112676 | 0 | 0 | 0.079626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098592 | false | 0 | 0.225352 | 0.084507 | 0.507042 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5adc63708ec54d7a76b9ae21f596d33bebacb4df | 12,742 | py | Python | tests/peptide_prediction_rapid.py | onakanob/Peptide_Graph_Autograd | 54d34830d3d06fec5e4cb712f7fd2a75de29b3fa | [
"MIT"
] | 2 | 2019-04-08T21:34:57.000Z | 2019-12-27T16:42:53.000Z | tests/peptide_prediction_rapid.py | onakanob/Peptide_Graph_Autograd | 54d34830d3d06fec5e4cb712f7fd2a75de29b3fa | [
"MIT"
] | null | null | null | tests/peptide_prediction_rapid.py | onakanob/Peptide_Graph_Autograd | 54d34830d3d06fec5e4cb712f7fd2a75de29b3fa | [
"MIT"
] | 2 | 2019-04-08T21:35:04.000Z | 2020-12-08T13:23:56.000Z | """ Testing peptide deep convnet
Based on regression example from https://github.com/HIPS/neural-fingerprint
Oliver Nakano-Baker"""
from time import time
import pickle
import autograd.numpy as np
import autograd.numpy.random as npr
from matplotlib import pyplot as plt
from scipy.stats.stats import pearsonr
from pepg... | 42.758389 | 108 | 0.625726 | 1,601 | 12,742 | 4.707058 | 0.16802 | 0.023355 | 0.014862 | 0.018312 | 0.465234 | 0.445462 | 0.419719 | 0.381768 | 0.333466 | 0.313562 | 0 | 0.019309 | 0.252158 | 12,742 | 297 | 109 | 42.902357 | 0.77154 | 0.061136 | 0 | 0.307054 | 0 | 0 | 0.109372 | 0.005302 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.049793 | null | null | 0.082988 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5add6f9803941f570ff5290bcfb09e44e6847421 | 469 | py | Python | setup.py | ContraPasta/ashy | 21339124f9542cee87899ad2ad578bf0fadb55f0 | [
"MIT"
] | null | null | null | setup.py | ContraPasta/ashy | 21339124f9542cee87899ad2ad578bf0fadb55f0 | [
"MIT"
] | null | null | null | setup.py | ContraPasta/ashy | 21339124f9542cee87899ad2ad578bf0fadb55f0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup (
name='ash',
version='dev',
description='ash is a Markov chain based random poetry generator.',
author='Isaac Stead',
author_email='isaac.stead@protonmail.com',
url='https://github.com/isaac-rks/ash',
packages=['ash'... | 22.333333 | 71 | 0.607676 | 55 | 469 | 5.109091 | 0.781818 | 0.071174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00277 | 0.230277 | 469 | 20 | 72 | 23.45 | 0.775623 | 0.044776 | 0 | 0 | 0 | 0 | 0.378076 | 0.058166 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5ae491902b6bfd6d1faf869939d20c69055aa80c | 396 | py | Python | studygroups/migrations/0141_studygroup_online.py | p2pu/learning-circles | ccd94208ec18082f8fda6d7f21eacdd71bad6023 | [
"MIT"
] | 10 | 2016-05-03T20:41:25.000Z | 2021-09-17T18:42:01.000Z | studygroups/migrations/0141_studygroup_online.py | p2pu/learning-circles | ccd94208ec18082f8fda6d7f21eacdd71bad6023 | [
"MIT"
] | 655 | 2016-05-04T19:00:35.000Z | 2022-03-28T13:09:20.000Z | studygroups/migrations/0141_studygroup_online.py | p2pu/learning-circles | ccd94208ec18082f8fda6d7f21eacdd71bad6023 | [
"MIT"
] | 8 | 2016-05-06T10:24:27.000Z | 2020-10-21T00:56:59.000Z | # Generated by Django 2.2.13 on 2020-11-11 14:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('studygroups', '0140_auto_20201110_0854'),
]
operations = [
migrations.AddField(
model_name='studygroup',
name='onli... | 20.842105 | 53 | 0.608586 | 41 | 396 | 5.780488 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112281 | 0.280303 | 396 | 18 | 54 | 22 | 0.719298 | 0.116162 | 0 | 0 | 1 | 0 | 0.143678 | 0.066092 | 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 |
5ae5d8b62e370cd42b2ab3a7954878cdcea8a5e7 | 462 | py | Python | ledgerpay/models.py | shibaken/ledgerpay | 661893b626839c9963ad377d36b55abc473aeb24 | [
"Apache-2.0"
] | null | null | null | ledgerpay/models.py | shibaken/ledgerpay | 661893b626839c9963ad377d36b55abc473aeb24 | [
"Apache-2.0"
] | null | null | null | ledgerpay/models.py | shibaken/ledgerpay | 661893b626839c9963ad377d36b55abc473aeb24 | [
"Apache-2.0"
] | null | null | null | from django.db import models
class PaymentItem(models.Model):
display_name = models.CharField(max_length=100, blank=True)
api_url = models.URLField(max_length=200, verbose_name='API URL', blank=True)
description = models.TextField(blank=True)
enabled = models.BooleanField(default=True)
class Meta... | 24.315789 | 81 | 0.731602 | 58 | 462 | 5.637931 | 0.62069 | 0.082569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015707 | 0.17316 | 462 | 18 | 82 | 25.666667 | 0.840314 | 0 | 0 | 0 | 0 | 0 | 0.034632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0.083333 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5aeb2cfaa7fb993738181ddc1d70ee04911f0300 | 4,034 | py | Python | app/pulzarutils/constants.py | cleve/varidb | fc1b10aa4d708cee1c83909f10773948cee0c539 | [
"Apache-2.0"
] | null | null | null | app/pulzarutils/constants.py | cleve/varidb | fc1b10aa4d708cee1c83909f10773948cee0c539 | [
"Apache-2.0"
] | 6 | 2020-11-05T02:18:15.000Z | 2022-03-12T00:50:09.000Z | app/pulzarutils/constants.py | cleve/pulzar | fc1b10aa4d708cee1c83909f10773948cee0c539 | [
"Apache-2.0"
] | null | null | null | from enum import Enum
class Response(Enum):
JSON = 0
TEXT = 1
OPTIONS = 3
class ReqType(Enum):
GET = 1
POST = 2
PUT = 3
DELETE = 4
class Constants:
DEBUG = False
# Logger configuration
# INFO, DEBUG, ERROR
DEBUG_LEVEL = 'ERROR'
BASE_DIR = 'storage/' if DEBUG else '... | 32.015873 | 171 | 0.633614 | 550 | 4,034 | 4.363636 | 0.263636 | 0.02625 | 0.04125 | 0.0525 | 0.169583 | 0.111667 | 0.0925 | 0.0925 | 0.069167 | 0 | 0 | 0.008728 | 0.20476 | 4,034 | 126 | 172 | 32.015873 | 0.739402 | 0.050074 | 0 | 0 | 0 | 0.010204 | 0.395915 | 0.178843 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.030612 | 0.010204 | 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 |
5aedea7555eadc3c2e0a54e9fb61d304f402abdc | 587 | py | Python | mlp_predict.py | willbradshaw/mnist-mlp | b67ec54c7f3f1bbaf352c5f1d2fd083e01029398 | [
"MIT"
] | null | null | null | mlp_predict.py | willbradshaw/mnist-mlp | b67ec54c7f3f1bbaf352c5f1d2fd083e01029398 | [
"MIT"
] | null | null | null | mlp_predict.py | willbradshaw/mnist-mlp | b67ec54c7f3f1bbaf352c5f1d2fd083e01029398 | [
"MIT"
] | null | null | null | import numpy as np
from mlp_train import *
# Predict classes from weights
def output(inputs, weights, biases):
"""Get the output of a trained MLP for a given set of inputs."""
return forward_propagation(inputs, weights, biases)[-1]
def predict_single(output):
"""Convert MLP outputs into class predictions,... | 30.894737 | 70 | 0.729131 | 82 | 587 | 5.158537 | 0.585366 | 0.061466 | 0.089835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006224 | 0.178876 | 587 | 18 | 71 | 32.611111 | 0.871369 | 0.44293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5aee5e07e17c33bac23b7ed412dd9308946c7efa | 1,410 | py | Python | scripts/conversionScripts/Opt_FD_name.py | rinelson456/raven | 1114246136a2f72969e75b5e99a11b35500d4eef | [
"Apache-2.0"
] | 159 | 2017-03-24T21:07:06.000Z | 2022-03-20T13:44:40.000Z | scripts/conversionScripts/Opt_FD_name.py | rinelson456/raven | 1114246136a2f72969e75b5e99a11b35500d4eef | [
"Apache-2.0"
] | 1,667 | 2017-03-27T14:41:22.000Z | 2022-03-31T19:50:06.000Z | scripts/conversionScripts/Opt_FD_name.py | rinelson456/raven | 1114246136a2f72969e75b5e99a11b35500d4eef | [
"Apache-2.0"
] | 95 | 2017-03-24T21:05:03.000Z | 2022-03-08T17:30:22.000Z | # Copyright 2017 Battelle Energy Alliance, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | 36.153846 | 92 | 0.741844 | 202 | 1,410 | 5.128713 | 0.574257 | 0.057915 | 0.055019 | 0.030888 | 0.083012 | 0.083012 | 0.083012 | 0 | 0 | 0 | 0 | 0.009532 | 0.18156 | 1,410 | 38 | 93 | 37.105263 | 0.888215 | 0.639716 | 0 | 0 | 0 | 0 | 0.145022 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5af30acbaffb810d793636e5eb44018f4ffb0970 | 375 | py | Python | torchMoji/examples/create_twitter_vocab.py | UmaTaru/run | be29e4d41a4de3dee27cd6796801bfe51382d294 | [
"MIT"
] | 163 | 2019-06-23T14:07:57.000Z | 2022-02-25T23:06:07.000Z | torchMoji/examples/create_twitter_vocab.py | UmaTaru/run | be29e4d41a4de3dee27cd6796801bfe51382d294 | [
"MIT"
] | 8 | 2019-07-24T12:41:31.000Z | 2022-02-10T00:17:20.000Z | torchMoji/examples/create_twitter_vocab.py | UmaTaru/run | be29e4d41a4de3dee27cd6796801bfe51382d294 | [
"MIT"
] | 31 | 2019-06-26T01:21:07.000Z | 2021-09-06T17:23:24.000Z | """ Creates a vocabulary from a tsv file.
"""
import codecs
from torchMoji.torchmoji.create_vocab import VocabBuilder
from torchMoji.torchmoji.word_generator import TweetWordGenerator
with codecs.open('../../twitterdata/tweets.2016-09-01', 'rU', 'utf-8') as stream:
wg = TweetWordGenerator(stream)
vb = VocabBu... | 28.846154 | 81 | 0.741333 | 49 | 375 | 5.571429 | 0.673469 | 0.095238 | 0.161172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.136 | 375 | 12 | 82 | 31.25 | 0.814815 | 0.098667 | 0 | 0 | 0 | 0 | 0.127273 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5afbda1a9146b3bf386d27e5858447dd20e13d4f | 2,313 | py | Python | tests/tensortrade/base/test_registry.py | viranca/tensortrade | 3a8b59edadbaf86432ef8bbc521c7eee9d406398 | [
"Apache-2.0"
] | 6 | 2020-03-05T14:49:01.000Z | 2022-02-28T01:55:50.000Z | tests/tensortrade/base/test_registry.py | Machine-Learning-Labs/tensortrade | 3fe7793a6c1d3d7bfe772166578f624f3f572eca | [
"Apache-2.0"
] | null | null | null | tests/tensortrade/base/test_registry.py | Machine-Learning-Labs/tensortrade | 3fe7793a6c1d3d7bfe772166578f624f3f572eca | [
"Apache-2.0"
] | null | null | null |
import pytest
import warnings
import unittest.mock as mock
import tensortrade.actions as actions
import tensortrade.exchanges as exchanges
import tensortrade.rewards as rewards
import tensortrade.slippage as slippage
import tensortrade.environments as envs
from tensortrade.environments import TradingEnvironment
from... | 29.278481 | 74 | 0.739732 | 276 | 2,313 | 5.971014 | 0.231884 | 0.050971 | 0.063107 | 0.069175 | 0.453884 | 0.413835 | 0.32585 | 0.252427 | 0.252427 | 0.252427 | 0 | 0 | 0.152183 | 2,313 | 78 | 75 | 29.653846 | 0.840388 | 0 | 0 | 0.125 | 0 | 0 | 0.172145 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.270833 | false | 0 | 0.208333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
850aa882cc0798ea01f109a2d08f8939a76a2829 | 442 | py | Python | des082.py | LeonardoPereirajr/Curso_em_video_Python | 9d8a97ba3389c8e86b37dfd089fab5d04adc146d | [
"MIT"
] | null | null | null | des082.py | LeonardoPereirajr/Curso_em_video_Python | 9d8a97ba3389c8e86b37dfd089fab5d04adc146d | [
"MIT"
] | null | null | null | des082.py | LeonardoPereirajr/Curso_em_video_Python | 9d8a97ba3389c8e86b37dfd089fab5d04adc146d | [
"MIT"
] | null | null | null | lista = []
lista_par = []
lista_impar = []
while True:
n = (int(input('Digite os numeros: ')))
lista.append(n)
if n % 2 == 0:
lista_par.append(n)
else:
lista_impar.append(n)
res = str(input('Quer continuar [S/N] : '))
if res in 'Nn':
break
print(f'O numeros da... | 27.625 | 49 | 0.572398 | 65 | 442 | 3.8 | 0.492308 | 0.097166 | 0.08502 | 0.17004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006211 | 0.271493 | 442 | 16 | 49 | 27.625 | 0.76087 | 0 | 0 | 0 | 0 | 0 | 0.35514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1875 | 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 |
85116f5a706ea5193fdd09ca90a6fbad27fa2603 | 2,109 | py | Python | calc.py | VIkill33/SParry | adf12aa277bb8ac87289609a8aac8143a59f64c3 | [
"MIT"
] | null | null | null | calc.py | VIkill33/SParry | adf12aa277bb8ac87289609a8aac8143a59f64c3 | [
"MIT"
] | null | null | null | calc.py | VIkill33/SParry | adf12aa277bb8ac87289609a8aac8143a59f64c3 | [
"MIT"
] | null | null | null | import numpy as np
from pretreat import read
from utils.dispatcher import dispatch
from utils.debugger import Logger
# set logging test update lcx added by wenake
logger = Logger(__name__)
def getINF():
"""
function:
return the INF of this tool.
parameters:
None, no ... | 33.47619 | 161 | 0.621622 | 293 | 2,109 | 4.433447 | 0.433447 | 0.020785 | 0.021555 | 0.026174 | 0.124711 | 0.093918 | 0.064665 | 0 | 0 | 0 | 0 | 0.026403 | 0.28165 | 2,109 | 62 | 162 | 34.016129 | 0.831023 | 0.487435 | 0 | 0 | 0 | 0 | 0.055249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.294118 | 0 | 0.529412 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8515f4fb6989cede4970b302fc875be7c5bc6b8f | 920 | py | Python | hardhat/recipes/fastcppcsvparser.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | hardhat/recipes/fastcppcsvparser.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | hardhat/recipes/fastcppcsvparser.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | import os
import shutil
from .base import GnuRecipe
class FastCppCsvParserRecipe(GnuRecipe):
def __init__(self, *args, **kwargs):
super(FastCppCsvParserRecipe, self).__init__(*args, **kwargs)
self.sha256 = '5e2beea28f8e85f8e26a37e5a34ff918' \
'0f817f75049d5bf395ab6e0759c7f8ca... | 31.724138 | 78 | 0.656522 | 94 | 920 | 6.297872 | 0.521277 | 0.030405 | 0.050676 | 0.047297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092697 | 0.226087 | 920 | 28 | 79 | 32.857143 | 0.738764 | 0 | 0 | 0.090909 | 0 | 0 | 0.23587 | 0.113043 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.090909 | 0.136364 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8518f715bfc6743ea23eb90ac766848197b43006 | 465 | py | Python | secret/models/models.py | semantic-agency/secret | e2d2a4084bbe3af78d1d7f097102b91f23b6febe | [
"MIT"
] | null | null | null | secret/models/models.py | semantic-agency/secret | e2d2a4084bbe3af78d1d7f097102b91f23b6febe | [
"MIT"
] | null | null | null | secret/models/models.py | semantic-agency/secret | e2d2a4084bbe3af78d1d7f097102b91f23b6febe | [
"MIT"
] | null | null | null | from secret.extensions import db
class Entries(db.Model):
"""Database model for entry links."""
__tablename__ = "links"
id = db.Column(db.Integer, primary_key=True)
encrypted_text = db.Column(db.LargeBinary)
date_created = db.Column(db.DateTime)
date_expires = db.Column(db.DateTime, nullable... | 27.352941 | 69 | 0.692473 | 64 | 465 | 4.8125 | 0.59375 | 0.12987 | 0.162338 | 0.116883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005236 | 0.178495 | 465 | 16 | 70 | 29.0625 | 0.801047 | 0.066667 | 0 | 0 | 0 | 0 | 0.067757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0.1 | 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 |
851a8312e6a8aa0c128f231af56e283921b1109f | 2,758 | py | Python | clinicadl/clinicadl/quality_check/t1_linear/quality_check.py | cristhiandcl/AD-DL | b7abb3fe619e736b269067033ba4aad1f03cf3b8 | [
"MIT"
] | null | null | null | clinicadl/clinicadl/quality_check/t1_linear/quality_check.py | cristhiandcl/AD-DL | b7abb3fe619e736b269067033ba4aad1f03cf3b8 | [
"MIT"
] | null | null | null | clinicadl/clinicadl/quality_check/t1_linear/quality_check.py | cristhiandcl/AD-DL | b7abb3fe619e736b269067033ba4aad1f03cf3b8 | [
"MIT"
] | null | null | null | """
This file contains all methods needed to perform the quality check procedure after t1-linear preprocessing.
"""
from os import makedirs
from os.path import dirname, join, exists, splitext, abspath
from pathlib import Path
import pandas as pd
import torch
from torch.utils.data import DataLoader
from .utils import ... | 32.833333 | 107 | 0.680566 | 358 | 2,758 | 5.055866 | 0.410615 | 0.027624 | 0.01105 | 0.016575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027327 | 0.217186 | 2,758 | 83 | 108 | 33.228916 | 0.811024 | 0.064902 | 0 | 0.033898 | 0 | 0 | 0.134346 | 0.024922 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0.067797 | 0.169492 | 0 | 0.186441 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
851de09a46bb43d3ba430f7c2470041186856bf8 | 5,764 | py | Python | pocket_geiger_DAQ.py | cllamb0/dosenet-raspberrypi | ba48aa86fbf8df90093f8c59bc3b16446a98207c | [
"MIT"
] | 7 | 2015-11-02T22:15:48.000Z | 2020-04-02T07:47:43.000Z | pocket_geiger_DAQ.py | cllamb0/dosenet-raspberrypi | ba48aa86fbf8df90093f8c59bc3b16446a98207c | [
"MIT"
] | 91 | 2015-10-21T23:54:28.000Z | 2019-10-24T19:56:42.000Z | pocket_geiger_DAQ.py | cllamb0/dosenet-raspberrypi | ba48aa86fbf8df90093f8c59bc3b16446a98207c | [
"MIT"
] | 29 | 2015-10-22T21:00:50.000Z | 2022-03-11T02:04:38.000Z | import time
import datetime
import csv
import numpy as np
from matplotlib.dates import DateFormatter
import matplotlib.pyplot as plt
from matplotlib.gridspec import GridSpec
from collections import deque
from sensor import Sensor
import sys
sys.stdout.flush()
class pocket_geiger_DAQ(object):
def __init__(self, m... | 34.722892 | 139 | 0.558293 | 731 | 5,764 | 4.261286 | 0.243502 | 0.043339 | 0.033387 | 0.048796 | 0.310754 | 0.287961 | 0.189085 | 0.173034 | 0.14992 | 0.14992 | 0 | 0.028924 | 0.310201 | 5,764 | 165 | 140 | 34.933333 | 0.754527 | 0.024636 | 0 | 0.176 | 0 | 0 | 0.060363 | 0.005876 | 0.008 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016 | 0.088 | null | null | 0.016 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
85202a6f418258e506aefc164a7179cfb444fd8f | 2,336 | py | Python | djapi/authtoken/__init__.py | Suor/djapi | 929b266d01aacc49f805c3ac7eec55766634babe | [
"BSD-2-Clause"
] | 12 | 2017-10-23T10:52:30.000Z | 2021-09-06T19:08:57.000Z | djapi/authtoken/__init__.py | Suor/djapi | 929b266d01aacc49f805c3ac7eec55766634babe | [
"BSD-2-Clause"
] | null | null | null | djapi/authtoken/__init__.py | Suor/djapi | 929b266d01aacc49f805c3ac7eec55766634babe | [
"BSD-2-Clause"
] | null | null | null | """
This module provides auth token authorization for djapi.
It is closely based on rest_framework.authtoken module coming under following license.
Copyright (c) 2011-2017, Tom Christie
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that th... | 40.275862 | 86 | 0.77911 | 327 | 2,336 | 5.519878 | 0.529052 | 0.022161 | 0.018837 | 0.025485 | 0.101939 | 0.075346 | 0.075346 | 0.075346 | 0.075346 | 0.075346 | 0 | 0.005074 | 0.15625 | 2,336 | 57 | 87 | 40.982456 | 0.910705 | 0.629709 | 0 | 0 | 0 | 0 | 0.2019 | 0.068884 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.3 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
852a041d7cb8f6403a523d06ea1815fd72fe1956 | 407 | py | Python | rapidsms/backends/kannel/urls.py | fakegit/rapidsms | a77e96e5b0ccf0dd01d7fba8c10961e7ecc458d7 | [
"BSD-3-Clause"
] | null | null | null | rapidsms/backends/kannel/urls.py | fakegit/rapidsms | a77e96e5b0ccf0dd01d7fba8c10961e7ecc458d7 | [
"BSD-3-Clause"
] | null | null | null | rapidsms/backends/kannel/urls.py | fakegit/rapidsms | a77e96e5b0ccf0dd01d7fba8c10961e7ecc458d7 | [
"BSD-3-Clause"
] | null | null | null | from django.urls import include, path
from rapidsms.backends.kannel import views
urlpatterns = (
path('account/', include('rapidsms.urls.login_logout')),
path('delivery-report/',
views.DeliveryReportView.as_view(),
name='kannel-delivery-report'),
path('backend/kannel/',
views.Kanne... | 29.071429 | 71 | 0.690418 | 45 | 407 | 6.155556 | 0.488889 | 0.108303 | 0.122744 | 0.173285 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164619 | 407 | 13 | 72 | 31.307692 | 0.814706 | 0 | 0 | 0 | 0 | 0 | 0.282555 | 0.117936 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 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 |
852bc639449ba36fa15d5c26e97cbd400fabfa69 | 806 | py | Python | vintools/_single_cell/__init__.py | mvinyard/vintools | 496889c8a89a41cc481b6903453de23bd4a50500 | [
"MIT"
] | 2 | 2021-08-20T01:34:56.000Z | 2021-12-20T01:40:33.000Z | vintools/_single_cell/__init__.py | mvinyard/vintools | 496889c8a89a41cc481b6903453de23bd4a50500 | [
"MIT"
] | null | null | null | vintools/_single_cell/__init__.py | mvinyard/vintools | 496889c8a89a41cc481b6903453de23bd4a50500 | [
"MIT"
] | 1 | 2021-08-28T01:24:20.000Z | 2021-08-28T01:24:20.000Z | # single-cell data utilities __init__.py
__author__ = ", ".join(["Michael E. Vinyard"])
__email__ = ", ".join(["vinyard@g.harvard.edu",])
# general data formatting functions
from ._general_formatting_tools import (
_check_if_scipy_sparse_mtx as check_if_scipy_sparse_mtx,
)
# single-cell AnnData formatting functi... | 35.043478 | 87 | 0.826303 | 111 | 806 | 5.369369 | 0.369369 | 0.04698 | 0.114094 | 0.060403 | 0.234899 | 0.16443 | 0.16443 | 0.16443 | 0 | 0 | 0 | 0.0375 | 0.1067 | 806 | 22 | 88 | 36.636364 | 0.790278 | 0.183623 | 0 | 0.142857 | 0 | 0 | 0.06585 | 0.032159 | 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 |
516b2a53f00c43b3a6914e862e37ab13b61c2cdb | 1,110 | py | Python | create_yaml_config_template.py | ReconCycle/raspi_ros | 79ec20ecacd99720ee023f9c156338444c5e347d | [
"BSD-3-Clause"
] | null | null | null | create_yaml_config_template.py | ReconCycle/raspi_ros | 79ec20ecacd99720ee023f9c156338444c5e347d | [
"BSD-3-Clause"
] | 26 | 2020-11-20T09:52:35.000Z | 2022-01-05T13:34:48.000Z | create_yaml_config_template.py | ReconCycle/raspi_ros | 79ec20ecacd99720ee023f9c156338444c5e347d | [
"BSD-3-Clause"
] | null | null | null |
from digital_interface_msgs.msg import RaspiConfig
import yaml
from rospy_message_converter import message_converter
#create empty config template
config_template=RaspiConfig()
#fill it with raspberry 4 specific
config_template.config_name="empty"
config_template.hardware_type='raspberry 4'
for i in range(0,... | 24.666667 | 92 | 0.78018 | 163 | 1,110 | 5.055215 | 0.423313 | 0.203884 | 0.103155 | 0.145631 | 0.264563 | 0.143204 | 0.143204 | 0.143204 | 0.143204 | 0.143204 | 0 | 0.015275 | 0.115315 | 1,110 | 45 | 93 | 24.666667 | 0.823829 | 0.091892 | 0 | 0 | 0 | 0 | 0.190239 | 0.119522 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 0.15 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
516b3130d432507d98f4ecd09ef64155d2a61fb7 | 3,158 | py | Python | wk_client/endpoints.py | Eviekim/waning-keyboard | 6e814cd8e8cb8052fda0d4334e16cb2752967035 | [
"MIT"
] | null | null | null | wk_client/endpoints.py | Eviekim/waning-keyboard | 6e814cd8e8cb8052fda0d4334e16cb2752967035 | [
"MIT"
] | null | null | null | wk_client/endpoints.py | Eviekim/waning-keyboard | 6e814cd8e8cb8052fda0d4334e16cb2752967035 | [
"MIT"
] | null | null | null | from flask import current_app
from wk_client import logic
from wk_client.constants import FEE_TYPE, INTEREST_TYPES, REPAYMENT_TYPES, DECLINED_STATE_NAME
from wk_client.constants import MIN_LOAN_AMOUNT, MAX_LOAN_AMOUNT
from wk_client.logic import approve_user, decline_user
from wk_client.request_utils import time_now
f... | 37.152941 | 139 | 0.651045 | 374 | 3,158 | 5.21123 | 0.323529 | 0.079015 | 0.036942 | 0.023089 | 0.058492 | 0.030785 | 0 | 0 | 0 | 0 | 0 | 0.014175 | 0.262825 | 3,158 | 84 | 140 | 37.595238 | 0.823024 | 0.052565 | 0 | 0.136986 | 0 | 0 | 0.127133 | 0.022416 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.041096 | false | 0 | 0.09589 | 0.013699 | 0.232877 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
517021c943995befae6dfa7d1c7e069747ef04fd | 1,635 | py | Python | person/models.py | JoseAntpr/mooviest-back | 76feb4211da4cb81506eb6e92e9d17af0bc6be53 | [
"MIT"
] | null | null | null | person/models.py | JoseAntpr/mooviest-back | 76feb4211da4cb81506eb6e92e9d17af0bc6be53 | [
"MIT"
] | 1 | 2017-12-30T16:51:34.000Z | 2017-12-30T16:51:34.000Z | person/models.py | JoseAntpr/mooviest-back | 76feb4211da4cb81506eb6e92e9d17af0bc6be53 | [
"MIT"
] | null | null | null | from django.db import models
from common.models import Lang
FEMALE = 1
MALE = 2
GENDER_CHOICES = (
(FEMALE, "Female"),
(MALE, "Male")
)
class Person(models.Model):
"""
`Person` represents a person that work in the cinema world could be
an actor, producer, director ...
Attributes:
"""
... | 26.803279 | 79 | 0.688073 | 205 | 1,635 | 5.385366 | 0.380488 | 0.057065 | 0.070652 | 0.092391 | 0.381341 | 0.289855 | 0.119565 | 0.119565 | 0.119565 | 0.119565 | 0 | 0.008365 | 0.195719 | 1,635 | 60 | 80 | 27.25 | 0.831179 | 0.191437 | 0 | 0.137931 | 0 | 0 | 0.023368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0.034483 | 0.793103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51781b8566718fd131ce26c7979fea4ae63bb518 | 1,131 | py | Python | skynet-agent/core/SkynetConfig.py | skynetera/skynet | 24a50f2a2eb95b777802934a2b66f162bf4b2d53 | [
"Apache-2.0"
] | 3 | 2016-09-12T08:54:46.000Z | 2016-09-18T07:54:10.000Z | skynet-agent/core/SkynetConfig.py | skynetera/skynet | 24a50f2a2eb95b777802934a2b66f162bf4b2d53 | [
"Apache-2.0"
] | null | null | null | skynet-agent/core/SkynetConfig.py | skynetera/skynet | 24a50f2a2eb95b777802934a2b66f162bf4b2d53 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author: whoami
@license: Apache Licence 2.0
@contact: skynet199@foxmail.com
@site: http://www.itweet.cn
@software: PyCharm
@file: SkynetConfig.py
@time: 2016-09-17 16:13
"""
import ConfigParser
class SkynetConfig():
def __init__(self,path):
self.__path ... | 23.081633 | 67 | 0.597701 | 143 | 1,131 | 4.538462 | 0.545455 | 0.046225 | 0.041602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023669 | 0.252874 | 1,131 | 48 | 68 | 23.5625 | 0.744379 | 0.109637 | 0 | 0.222222 | 0 | 0 | 0.071515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 0.148148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5178ea26b1c25752fdf7cb8865d65fa02801c607 | 565 | py | Python | tests/common/notification/test_service.py | ErikGartner/hyperdock | 19510b4bf1e123576d7be067555d959cb8a7cf45 | [
"Apache-2.0"
] | 8 | 2018-05-07T19:12:35.000Z | 2021-12-21T01:30:48.000Z | tests/common/notification/test_service.py | ErikGartner/hyperdock | 19510b4bf1e123576d7be067555d959cb8a7cf45 | [
"Apache-2.0"
] | 92 | 2018-05-15T14:57:48.000Z | 2019-12-27T10:48:25.000Z | tests/common/notification/test_service.py | ErikGartner/hyperdock | 19510b4bf1e123576d7be067555d959cb8a7cf45 | [
"Apache-2.0"
] | 2 | 2019-06-01T22:42:17.000Z | 2019-12-25T12:48:36.000Z | from unittest import TestCase, mock
import os
from hyperdock.common.notification.service import Service
class TestSlack(TestCase):
def test_verify_credentials(self):
"""
Service should raise NotImplementedError for verify_credentials
"""
with self.assertRaises(NotImplementedError)... | 26.904762 | 71 | 0.684956 | 53 | 565 | 7.188679 | 0.45283 | 0.178478 | 0.089239 | 0.115486 | 0.56168 | 0.56168 | 0.330709 | 0 | 0 | 0 | 0 | 0 | 0.246018 | 565 | 20 | 72 | 28.25 | 0.894366 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5179e10758745b517705304633c8005249efb865 | 1,619 | py | Python | Simulations/onn_test.py | Xoreus/neuroptica | 2ab6771ea3cfe94a62701078a83712d2a33409e3 | [
"MIT"
] | 1 | 2021-09-15T04:31:47.000Z | 2021-09-15T04:31:47.000Z | Simulations/onn_test.py | Xoreus/neuroptica | 2ab6771ea3cfe94a62701078a83712d2a33409e3 | [
"MIT"
] | null | null | null | Simulations/onn_test.py | Xoreus/neuroptica | 2ab6771ea3cfe94a62701078a83712d2a33409e3 | [
"MIT"
] | null | null | null | import numpy as np
from sklearn.preprocessing import MinMaxScaler as mms
import ONN_Simulation_Class as ONN_Cls
from plot_scatter_matrix import plot_scatter_matrix
import ONN_Setups
import training_onn as train
import test_trained_onns as test
import create_datasets
from sklearn import preprocessing
import sys
sys.path... | 40.475 | 120 | 0.772699 | 266 | 1,619 | 4.56015 | 0.37218 | 0.054411 | 0.027205 | 0.037923 | 0.217642 | 0.217642 | 0.191261 | 0.191261 | 0.191261 | 0.191261 | 0 | 0.011872 | 0.115503 | 1,619 | 39 | 121 | 41.512821 | 0.835196 | 0.394688 | 0 | 0 | 0 | 0 | 0.140187 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.038462 | 0.423077 | 0 | 0.423077 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
517f0aa5a9dcd0654180924da3166f8febfdcf86 | 673 | py | Python | pype9/simulate/nest/units.py | tclose/Pype9 | 23f96c0885fd9df12d9d11ff800f816520e4b17a | [
"MIT"
] | null | null | null | pype9/simulate/nest/units.py | tclose/Pype9 | 23f96c0885fd9df12d9d11ff800f816520e4b17a | [
"MIT"
] | null | null | null | pype9/simulate/nest/units.py | tclose/Pype9 | 23f96c0885fd9df12d9d11ff800f816520e4b17a | [
"MIT"
] | 1 | 2021-04-08T12:46:21.000Z | 2021-04-08T12:46:21.000Z | from nineml import units as un
from pype9.simulate.common.units import UnitHandler as BaseUnitHandler
class UnitHandler(BaseUnitHandler):
basis = [un.ms, un.mV, un.pA, un.mM, un.pF, un.um, un.nS, un.K, un.cd]
compounds = []
unit_name_map = {un.ms: 'ms', un.mV: 'mV', un.pA: 'pA', un.mM: 'mM',
... | 33.65 | 74 | 0.607727 | 100 | 673 | 3.92 | 0.48 | 0.020408 | 0.030612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001949 | 0.237741 | 673 | 19 | 75 | 35.421053 | 0.762183 | 0 | 0 | 0 | 0 | 0 | 0.028232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5180e5681b5d570e87395599f51d0ef76adacccf | 1,995 | py | Python | model/decorators/modifier.py | dongniu/cadnano2 | 6805fe2af856c59b06373c0ee0142ad6bc286262 | [
"Unlicense"
] | 17 | 2015-02-07T03:46:49.000Z | 2021-09-25T09:23:41.000Z | model/decorators/modifier.py | scholer/cadnano2 | 0b8bba1ab3277ac9859ef78615890d351561784c | [
"Unlicense"
] | 2 | 2017-08-22T03:17:16.000Z | 2021-07-03T14:42:41.000Z | model/decorators/modifier.py | scholer/cadnano2 | 0b8bba1ab3277ac9859ef78615890d351561784c | [
"Unlicense"
] | 9 | 2015-09-06T22:41:38.000Z | 2022-03-27T13:57:37.000Z | #!/usr/bin/env python
# encoding: utf-8
# The MIT License
#
# Copyright (c) 2011 Wyss Institute at Harvard University
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, i... | 38.365385 | 79 | 0.714787 | 283 | 1,995 | 4.982332 | 0.533569 | 0.062411 | 0.01844 | 0.017021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003861 | 0.221053 | 1,995 | 52 | 80 | 38.365385 | 0.903475 | 0.720802 | 0 | 0 | 0 | 0 | 0.061856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5183b457f54a926b1cefe97511c12542037cb4f5 | 584 | py | Python | main.py | c-rainbow/magictranslator | e3b1401be69aef283d682b6638552bd5ac186559 | [
"MIT"
] | null | null | null | main.py | c-rainbow/magictranslator | e3b1401be69aef283d682b6638552bd5ac186559 | [
"MIT"
] | null | null | null | main.py | c-rainbow/magictranslator | e3b1401be69aef283d682b6638552bd5ac186559 | [
"MIT"
] | null | null | null |
from magictranslator import translator
if __name__ == '__main__':
t = translator.FromJSONConfigFile('config.json')
res = t.Translate('ありがとうございます')
print(res)
# Yandex test
res = t.Translate('Мне подойдёт любой день')
print(res)
# AWS
res = t.Translate('hola amigo buenas noches'... | 20.137931 | 52 | 0.636986 | 70 | 584 | 5.2 | 0.528571 | 0.065934 | 0.214286 | 0.076923 | 0.285714 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 584 | 29 | 53 | 20.137931 | 0.83105 | 0.119863 | 0 | 0.4 | 0 | 0 | 0.246063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.4 | 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 |
518489e0458874ed4e28a2604022a3203e40da4b | 1,375 | py | Python | scripts/pth2onnx.py | beizhengren/pytorch-deeplab-xception | 8dc3107104f4d25ec74ea29ba72af360f192afc1 | [
"MIT"
] | null | null | null | scripts/pth2onnx.py | beizhengren/pytorch-deeplab-xception | 8dc3107104f4d25ec74ea29ba72af360f192afc1 | [
"MIT"
] | null | null | null | scripts/pth2onnx.py | beizhengren/pytorch-deeplab-xception | 8dc3107104f4d25ec74ea29ba72af360f192afc1 | [
"MIT"
] | null | null | null | import os
import time
import gc
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import torch.onnx as torch_onnx
from torchvision import datasets, transforms
from torch.autograd import Variable
import tensorrt as trt
TRT_LOGGER = trt.Logger(trt.Logger.WARNING)
from src ... | 28.061224 | 92 | 0.731636 | 201 | 1,375 | 4.731343 | 0.323383 | 0.056782 | 0.058885 | 0.071504 | 0.299685 | 0.154574 | 0 | 0 | 0 | 0 | 0 | 0.015598 | 0.160727 | 1,375 | 49 | 93 | 28.061224 | 0.808492 | 0.108364 | 0 | 0 | 0 | 0 | 0.141571 | 0.081015 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.441176 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
518558ae8d7f6055433f36d84e00eb55a520aa22 | 670 | py | Python | flydra_analysis/flydra_analysis/a2/plot_camera_positions.py | liyi2017/flydra | 9ec83f14514f73e660ae8fbda32a3cc0348d0cb4 | [
"Apache-2.0",
"MIT"
] | null | null | null | flydra_analysis/flydra_analysis/a2/plot_camera_positions.py | liyi2017/flydra | 9ec83f14514f73e660ae8fbda32a3cc0348d0cb4 | [
"Apache-2.0",
"MIT"
] | null | null | null | flydra_analysis/flydra_analysis/a2/plot_camera_positions.py | liyi2017/flydra | 9ec83f14514f73e660ae8fbda32a3cc0348d0cb4 | [
"Apache-2.0",
"MIT"
] | 1 | 2019-11-18T07:57:47.000Z | 2019-11-18T07:57:47.000Z | import flydra_core.reconstruct
import pymvg
import pymvg.multi_camera_system
from pymvg.plot_utils import plot_system
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import sys, os
def show_flydra_cal( flydra_filename ):
R = flydra_core.reconstruct.Reconstructor(flydra_filename)
syst... | 23.103448 | 62 | 0.732836 | 97 | 670 | 4.742268 | 0.536082 | 0.121739 | 0.091304 | 0.082609 | 0.117391 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012522 | 0.165672 | 670 | 28 | 63 | 23.928571 | 0.810376 | 0 | 0 | 0 | 0 | 0 | 0.019403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.318182 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51869c6c0ab042ba4879ab5e7a78252f31f51b33 | 2,737 | py | Python | fs_dump/utils.py | fogstream/django_fs_dump | 7e6e1142081c376b4a76193aedf554e55544b668 | [
"MIT"
] | 1 | 2020-12-09T06:08:54.000Z | 2020-12-09T06:08:54.000Z | fs_dump/utils.py | fogstream/django-fs-dump | 7e6e1142081c376b4a76193aedf554e55544b668 | [
"MIT"
] | null | null | null | fs_dump/utils.py | fogstream/django-fs-dump | 7e6e1142081c376b4a76193aedf554e55544b668 | [
"MIT"
] | null | null | null | import os
import pexpect
import shutil
import tarfile
from django.conf import settings
from django.db import connection
from . import settings as local_settings
from .models import Dump
def dump_database(dump):
db_host = settings.DATABASES['default']['HOST']
db_port = settings.DATABASES['default']['PORT']
... | 34.2125 | 108 | 0.666423 | 389 | 2,737 | 4.473008 | 0.251928 | 0.048276 | 0.137931 | 0.032184 | 0.566667 | 0.517816 | 0.483333 | 0.428736 | 0.428736 | 0.428736 | 0 | 0.000459 | 0.203142 | 2,737 | 79 | 109 | 34.64557 | 0.797341 | 0 | 0 | 0.354839 | 0 | 0.032258 | 0.235294 | 0.027037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.064516 | 0.129032 | 0 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5186ef92e70cdea436b60f414edb843f6110fa8d | 8,286 | py | Python | foreignnews.py | apium-io/corpus-UOC | 6b88cba34d5cad9dd60fd84fa97c6a481ef24e09 | [
"MIT"
] | null | null | null | foreignnews.py | apium-io/corpus-UOC | 6b88cba34d5cad9dd60fd84fa97c6a481ef24e09 | [
"MIT"
] | null | null | null | foreignnews.py | apium-io/corpus-UOC | 6b88cba34d5cad9dd60fd84fa97c6a481ef24e09 | [
"MIT"
] | null | null | null |
import os
fileList = os.listdir('.') #replace the . with your article directory
foreignList=['(4E)',
'(AA)',
'(AAP)',
'(ABR)',
'(AFNEWS)',
'(AFP)',
'(AFPS)',
'(AGERPRES)',
'(AGI)',
'(AHN)',
'(AIP)',
'(AMNA)',
'(ANA)',
'(ANI)',
'(ANN)',
'(ANNCOL)',
'(ANP)',
'(ANSA)',
'(ANTARA)',
'(AP)',
'(APA)',
'(APEM)',
'(APP)',
'(A... | 19.588652 | 77 | 0.682959 | 978 | 8,286 | 5.786299 | 0.526585 | 0.102492 | 0.009896 | 0.012723 | 0.03923 | 0.031808 | 0.0258 | 0.018024 | 0.018024 | 0 | 0 | 0.000137 | 0.121048 | 8,286 | 423 | 78 | 19.588652 | 0.776878 | 0.020034 | 0 | 0.028504 | 0 | 0 | 0.744885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.002375 | 0 | 0.002375 | 0.007126 | 0 | 0 | 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 |
5190dc58aab55daca0fea311ebd8cd22d0d83d00 | 608 | py | Python | backend/migrations/versions/779014da5b3d_.py | dasdachs/flask-blog | d484026c1057e991a89df54d3fec20b43a507d1b | [
"MIT"
] | null | null | null | backend/migrations/versions/779014da5b3d_.py | dasdachs/flask-blog | d484026c1057e991a89df54d3fec20b43a507d1b | [
"MIT"
] | null | null | null | backend/migrations/versions/779014da5b3d_.py | dasdachs/flask-blog | d484026c1057e991a89df54d3fec20b43a507d1b | [
"MIT"
] | 1 | 2020-04-08T17:48:34.000Z | 2020-04-08T17:48:34.000Z | """empty message
Revision ID: 779014da5b3d
Revises: f58846daf788
Create Date: 2016-02-04 12:41:50.300585
"""
# revision identifiers, used by Alembic.
revision = '779014da5b3d'
down_revision = 'f58846daf788'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - ... | 22.518519 | 83 | 0.692434 | 76 | 608 | 5.5 | 0.605263 | 0.064593 | 0.100478 | 0.110048 | 0.210526 | 0.210526 | 0.210526 | 0.210526 | 0 | 0 | 0 | 0.109127 | 0.171053 | 608 | 26 | 84 | 23.384615 | 0.720238 | 0.478618 | 0 | 0 | 0 | 0 | 0.147887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5192677d7a49326b6237e9892ef550df02ef32d7 | 1,891 | py | Python | modelseedpy/core/msmedia.py | freiburgermsu/ModelSEEDpy | f368354f99ddfe0b9f5ac0c8b2de72a89ccb6016 | [
"MIT"
] | 5 | 2021-06-22T18:22:29.000Z | 2022-03-02T02:17:49.000Z | modelseedpy/core/msmedia.py | freiburgermsu/ModelSEEDpy | f368354f99ddfe0b9f5ac0c8b2de72a89ccb6016 | [
"MIT"
] | 8 | 2021-06-18T07:12:48.000Z | 2022-03-30T15:35:06.000Z | modelseedpy/core/msmedia.py | freiburgermsu/ModelSEEDpy | f368354f99ddfe0b9f5ac0c8b2de72a89ccb6016 | [
"MIT"
] | 7 | 2021-05-05T22:54:01.000Z | 2022-03-11T10:18:43.000Z | from cobra.core.dictlist import DictList
class MediaCompound:
def __init__(self, compound_id, lower_bound, upper_bound, concentration=None):
self.id = compound_id
self.lower_bound = lower_bound
self.upper_bound = upper_bound
self.concentration = concentration
@prop... | 29.546875 | 83 | 0.564252 | 212 | 1,891 | 4.853774 | 0.367925 | 0.058309 | 0.02138 | 0.027211 | 0.178814 | 0.178814 | 0.104956 | 0.104956 | 0.104956 | 0.104956 | 0 | 0.022599 | 0.344791 | 1,891 | 63 | 84 | 30.015873 | 0.80791 | 0.208355 | 0 | 0.108108 | 0 | 0 | 0.005979 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.162162 | false | 0 | 0.027027 | 0.054054 | 0.351351 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
5192f7f31c0d5a07c60ea0533bf73ec3b6afec11 | 2,209 | py | Python | alipay/aop/api/response/AlipayFundTransRefundResponse.py | articuly/alipay-sdk-python-all | 0259cd28eca0f219b97dac7f41c2458441d5e7a6 | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/response/AlipayFundTransRefundResponse.py | articuly/alipay-sdk-python-all | 0259cd28eca0f219b97dac7f41c2458441d5e7a6 | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/response/AlipayFundTransRefundResponse.py | articuly/alipay-sdk-python-all | 0259cd28eca0f219b97dac7f41c2458441d5e7a6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import simplejson as json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayFundTransRefundResponse(AlipayResponse):
def __init__(self):
super(AlipayFundTransRefundResponse, self).__init__()
self._order_id = None
s... | 29.065789 | 102 | 0.664554 | 270 | 2,209 | 5.085185 | 0.151852 | 0.09177 | 0.07866 | 0.046613 | 0.162418 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000605 | 0.251698 | 2,209 | 75 | 103 | 29.453333 | 0.830006 | 0.019013 | 0 | 0.098361 | 0 | 0 | 0.061894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.229508 | false | 0 | 0.032787 | 0.098361 | 0.377049 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5196770eebd2b7d53cf3fba1ad1e1f689ab0967f | 410 | py | Python | decorators/Pickleable1.py | dejbug/dejan7 | 0e3d9f4068cd7b39a3a992f4b21fa5042c88227b | [
"MIT"
] | null | null | null | decorators/Pickleable1.py | dejbug/dejan7 | 0e3d9f4068cd7b39a3a992f4b21fa5042c88227b | [
"MIT"
] | null | null | null | decorators/Pickleable1.py | dejbug/dejan7 | 0e3d9f4068cd7b39a3a992f4b21fa5042c88227b | [
"MIT"
] | null | null | null | import base64
from SignatureDict import *
def Pickleable1(ext=".pickle", keys=None):
def _(cls):
setattr(cls, "derive_pickle_path", lambda self: self.get_pickleable_name() + ext)
setattr(cls, "get_pickleable_name", lambda self: base64.b64encode(unicode(self.get_signature_dict()), "+-"))
if not hasattr(... | 31.538462 | 111 | 0.719512 | 53 | 410 | 5.339623 | 0.509434 | 0.070671 | 0.120141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020057 | 0.14878 | 410 | 12 | 112 | 34.166667 | 0.790831 | 0 | 0 | 0 | 0 | 0 | 0.160804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
519a2014141003f89b18bb5c3de571729a952f8e | 9,365 | py | Python | mastiff/plugins/analysis/EXE/EXE-resources.py | tt1379/mastiff | 04d569e4fa59513572e77c74b049cad82f9b0310 | [
"Apache-2.0"
] | 164 | 2015-02-09T18:19:26.000Z | 2022-02-23T09:49:18.000Z | mastiff/plugins/analysis/EXE/EXE-resources.py | ashishhmittal/mastiff | 04d569e4fa59513572e77c74b049cad82f9b0310 | [
"Apache-2.0"
] | 1 | 2016-05-20T16:21:33.000Z | 2016-05-20T16:21:33.000Z | mastiff/plugins/analysis/EXE/EXE-resources.py | ashishhmittal/mastiff | 04d569e4fa59513572e77c74b049cad82f9b0310 | [
"Apache-2.0"
] | 43 | 2015-03-03T11:15:58.000Z | 2021-10-02T02:14:57.000Z | #!/usr/bin/env python
"""
Copyright 2012-2013 The MASTIFF Project, All Rights Reserved.
This software, having been partly or wholly developed and/or
sponsored by KoreLogic, Inc., is hereby released under the terms
and conditions set forth in the project's "README.LICENSE" file.
For a list of all contributors... | 38.539095 | 139 | 0.525254 | 1,048 | 9,365 | 4.590649 | 0.258588 | 0.021825 | 0.013719 | 0.021617 | 0.256288 | 0.205155 | 0.165038 | 0.107254 | 0.107254 | 0.107254 | 0 | 0.013863 | 0.360705 | 9,365 | 242 | 140 | 38.698347 | 0.789711 | 0.052643 | 0 | 0.24359 | 0 | 0.012821 | 0.214926 | 0.007856 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044872 | null | null | 0.00641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
519c0d7ff7e9edad63a635cc7178d42a89020cc4 | 34,289 | py | Python | baseline/onnx/apis/grpc_service_pb2_grpc.py | sagnik/baseline | 8d75616e04c1cca509dbebbb6d08ad7e1a7b9f88 | [
"Apache-2.0"
] | 241 | 2016-04-25T20:02:31.000Z | 2019-09-03T05:44:09.000Z | baseline/onnx/apis/grpc_service_pb2_grpc.py | sagnik/baseline | 8d75616e04c1cca509dbebbb6d08ad7e1a7b9f88 | [
"Apache-2.0"
] | 131 | 2019-10-12T10:53:17.000Z | 2021-12-03T19:52:47.000Z | baseline/onnx/apis/grpc_service_pb2_grpc.py | sagnik/baseline | 8d75616e04c1cca509dbebbb6d08ad7e1a7b9f88 | [
"Apache-2.0"
] | 75 | 2016-06-28T01:18:58.000Z | 2019-08-29T06:47:22.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import baseline.onnx.apis.grpc_service_pb2 as grpc__service__pb2
class GRPCInferenceServiceStub(object):
"""@@
@@.. cpp:var:: service InferenceService
... | 46.336486 | 125 | 0.65575 | 2,567 | 34,289 | 8.439813 | 0.069731 | 0.05585 | 0.071082 | 0.03988 | 0.729702 | 0.52541 | 0.433049 | 0.403231 | 0.397508 | 0.3946 | 0 | 0.004401 | 0.27102 | 34,289 | 739 | 126 | 46.399188 | 0.862338 | 0.107877 | 0 | 0.532609 | 1 | 0 | 0.099861 | 0.067014 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068841 | false | 0 | 0.003623 | 0.032609 | 0.110507 | 0 | 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 |
51a0e7ef10ed95a864e403e82ef1235f4e496725 | 797 | py | Python | src/SoundModelParams.py | erikma/AudioExp | d0932260491f3ebcf5917b817f6ae32d49fad63e | [
"MIT"
] | 1 | 2019-11-06T02:31:51.000Z | 2019-11-06T02:31:51.000Z | src/SoundModelParams.py | erikma/AudioExp | d0932260491f3ebcf5917b817f6ae32d49fad63e | [
"MIT"
] | null | null | null | src/SoundModelParams.py | erikma/AudioExp | d0932260491f3ebcf5917b817f6ae32d49fad63e | [
"MIT"
] | null | null | null | import json
class SoundModelParams:
"""
Hyperparameters, or perhaps mega-hyperparameters or hyper-hyperparameters,
related to a trained MFCC model. Including:
mfccRows: The window size of MFCC rows needed to run the model against.
The window must be normalized with MfccWav.normalizeMfccArray().
... | 34.652174 | 88 | 0.706399 | 94 | 797 | 5.946809 | 0.617021 | 0.064401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222083 | 797 | 22 | 89 | 36.227273 | 0.901613 | 0.534504 | 0 | 0 | 0 | 0 | 0.060423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51a3fcf0fdede707c5941f9ed58024eb26fb6ebf | 664 | py | Python | cart/middleware.py | spaceofmiah/ecommerce | 9dfc4ef94fc678400ba4d76a560991fbf426ad83 | [
"MIT"
] | 2 | 2019-10-18T22:16:19.000Z | 2019-11-05T19:39:52.000Z | cart/middleware.py | spaceofmiah/ecommerce | 9dfc4ef94fc678400ba4d76a560991fbf426ad83 | [
"MIT"
] | 14 | 2019-11-04T19:26:29.000Z | 2022-03-12T00:09:24.000Z | cart/middleware.py | spaceofmiah/ecommerce | 9dfc4ef94fc678400ba4d76a560991fbf426ad83 | [
"MIT"
] | 1 | 2019-10-22T22:38:23.000Z | 2019-10-22T22:38:23.000Z | from django.contrib.sessions.models import Session
from cart.models import Cart
from django.core import cache
class CartMiddleware:
def __init__(self, get_response):
self.get_response = get_response
def __call__(self, request):
cart = ''
if request.session.get('cart_present', Fals... | 27.666667 | 70 | 0.662651 | 87 | 664 | 4.862069 | 0.471264 | 0.104019 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248494 | 664 | 23 | 71 | 28.869565 | 0.847695 | 0.13253 | 0 | 0 | 0 | 0 | 0.054101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
51a9f509a1413cee9a54eba8a238e47cc391971c | 1,453 | py | Python | mva_demo/cms/models.py | dieterplex/cookiebutter-django-demo | 56a76328e4fecdd4dcb7ace28a4539742c5b5f10 | [
"MIT"
] | null | null | null | mva_demo/cms/models.py | dieterplex/cookiebutter-django-demo | 56a76328e4fecdd4dcb7ace28a4539742c5b5f10 | [
"MIT"
] | null | null | null | mva_demo/cms/models.py | dieterplex/cookiebutter-django-demo | 56a76328e4fecdd4dcb7ace28a4539742c5b5f10 | [
"MIT"
] | null | null | null | from mva_demo.users.models import User
from django.db import models
from django.urls import reverse
class SongManager(models.Manager):
def get_queryset(self):
return super(SongManager, self).get_queryset().filter(is_active=True)
class Category(models.Model):
name = models.CharField(max_length=255, db... | 31.586957 | 95 | 0.714384 | 185 | 1,453 | 5.405405 | 0.383784 | 0.05 | 0.06 | 0.072 | 0.341 | 0.208 | 0.208 | 0.138 | 0 | 0 | 0 | 0.012521 | 0.175499 | 1,453 | 45 | 96 | 32.288889 | 0.822204 | 0 | 0 | 0.176471 | 0 | 0 | 0.055059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.088235 | 0.147059 | 0.911765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51b21be990bf66005c6147c72e6240a7c2721712 | 255 | py | Python | employeemanager/staff/tests/factories/user.py | hi-man-shu/EmployeeTaskManager | 3ae13052a8609ac7b3138fd69292c94876200193 | [
"MIT"
] | 10 | 2019-02-07T10:57:23.000Z | 2021-06-28T10:12:07.000Z | employeemanager/staff/tests/factories/user.py | hi-man-shu/EmployeeTaskManager | 3ae13052a8609ac7b3138fd69292c94876200193 | [
"MIT"
] | 2 | 2017-01-21T23:07:37.000Z | 2019-05-20T06:15:09.000Z | employeemanager/staff/tests/factories/user.py | hi-man-shu/EmployeeTaskManager | 3ae13052a8609ac7b3138fd69292c94876200193 | [
"MIT"
] | 13 | 2018-05-05T11:29:52.000Z | 2022-03-09T05:37:52.000Z | from django.contrib.auth.models import User
import factory
class UserFactory(factory.django.DjangoModelFactory):
username = factory.Faker('name')
email = factory.Sequence(lambda n: 'test%s@example.com' % n)
class Meta:
model = User
| 23.181818 | 64 | 0.713725 | 32 | 255 | 5.6875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180392 | 255 | 10 | 65 | 25.5 | 0.870813 | 0 | 0 | 0 | 0 | 0 | 0.086275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 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 | 0 | 1 | 0 | 0 | 1 |
51b42962c918dc384bc394499136ca1ce6da750e | 3,248 | py | Python | conohadnsclient/tests/test_utils.py | naototty/python-conohadns-client | 04f360450d2e1a6020d2870272d8125cb112fa01 | [
"Apache-2.0"
] | null | null | null | conohadnsclient/tests/test_utils.py | naototty/python-conohadns-client | 04f360450d2e1a6020d2870272d8125cb112fa01 | [
"Apache-2.0"
] | null | null | null | conohadnsclient/tests/test_utils.py | naototty/python-conohadns-client | 04f360450d2e1a6020d2870272d8125cb112fa01 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2015 Thales Services SAS
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 37.767442 | 77 | 0.697968 | 397 | 3,248 | 5.445844 | 0.327456 | 0.077706 | 0.033303 | 0.064755 | 0.375578 | 0.223404 | 0.12766 | 0.101758 | 0.051804 | 0 | 0 | 0.044393 | 0.20936 | 3,248 | 85 | 78 | 38.211765 | 0.797508 | 0.172722 | 0 | 0.111111 | 0 | 0 | 0.089379 | 0.053852 | 0 | 0 | 0 | 0 | 0.203704 | 1 | 0.203704 | false | 0 | 0.092593 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51b6496ed774fd0f8eaa9497e115f1785592f400 | 3,661 | py | Python | app/marks/settings.py | CFelipe/marks | cc7e42eca9599f7e9df96f93c764faadf15f9bea | [
"MIT"
] | 21 | 2019-05-13T12:54:47.000Z | 2022-01-10T19:51:26.000Z | app/marks/settings.py | CFelipe/marks | cc7e42eca9599f7e9df96f93c764faadf15f9bea | [
"MIT"
] | 19 | 2018-11-18T20:10:09.000Z | 2019-11-16T02:47:38.000Z | app/marks/settings.py | CFelipe/marks | cc7e42eca9599f7e9df96f93c764faadf15f9bea | [
"MIT"
] | 1 | 2022-02-23T16:23:06.000Z | 2022-02-23T16:23:06.000Z | from .config import *
import os
import logging
SECRET_KEY = "defaultkey"
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if os.environ.get("DJANGO_DEVELOPMENT") is not None:
DEBUG = True
else:
DEBUG = False
ALLOWED_HOSTS = ["127.0.0.1", ".bmarks.net"]
INTERNAL_IPS = ["127.0.0.1",]
A... | 24.245033 | 90 | 0.646545 | 365 | 3,661 | 6.279452 | 0.441096 | 0.09075 | 0.05192 | 0.036649 | 0.15096 | 0.136998 | 0.045375 | 0.045375 | 0 | 0 | 0 | 0.005921 | 0.215788 | 3,661 | 150 | 91 | 24.406667 | 0.792407 | 0.017482 | 0 | 0.070175 | 0 | 0 | 0.46509 | 0.343255 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.061404 | 0.026316 | 0 | 0.026316 | 0.008772 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51bb06fc3a0c903640f9ac0465a5dded360a6fce | 736 | py | Python | care/facility/migrations/0121_auto_20200619_2306.py | gigincg/care | 07be6a7982b5c46a854e3435a52662f32800c8ae | [
"MIT"
] | 189 | 2020-03-17T17:18:58.000Z | 2022-02-22T09:49:45.000Z | care/facility/migrations/0121_auto_20200619_2306.py | gigincg/care | 07be6a7982b5c46a854e3435a52662f32800c8ae | [
"MIT"
] | 598 | 2020-03-19T21:22:09.000Z | 2022-03-30T05:08:37.000Z | care/facility/migrations/0121_auto_20200619_2306.py | gigincg/care | 07be6a7982b5c46a854e3435a52662f32800c8ae | [
"MIT"
] | 159 | 2020-03-19T18:45:56.000Z | 2022-03-17T13:23:12.000Z | # Generated by Django 2.2.11 on 2020-06-19 17:36
from django.db import migrations, models
import django.db.models.deletion
import fernet_fields.fields
class Migration(migrations.Migration):
dependencies = [
('facility', '0120_patientsample_icmr_label'),
]
operations = [
migrations.AddFi... | 28.307692 | 117 | 0.650815 | 79 | 736 | 5.911392 | 0.594937 | 0.051392 | 0.059957 | 0.094218 | 0.188437 | 0.188437 | 0 | 0 | 0 | 0 | 0 | 0.040998 | 0.237772 | 736 | 25 | 118 | 29.44 | 0.791444 | 0.0625 | 0 | 0.315789 | 1 | 0 | 0.155523 | 0.042151 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51bc54740a41ed9210193401563f9b80aeb42d57 | 533 | py | Python | scripts/create_database.py | Medhi83/Rick-and-Morty | 3d40b976e8add6b7f8059e7621d1322aa710329c | [
"MIT"
] | null | null | null | scripts/create_database.py | Medhi83/Rick-and-Morty | 3d40b976e8add6b7f8059e7621d1322aa710329c | [
"MIT"
] | null | null | null | scripts/create_database.py | Medhi83/Rick-and-Morty | 3d40b976e8add6b7f8059e7621d1322aa710329c | [
"MIT"
] | null | null | null | import logging
import sqlalchemy
DB_NAME = "rick_n_morty"
DB_USER = "root"
DB_PASSWORD = "test"
def create_database() -> None:
engine = sqlalchemy.create_engine(f"mysql+pymysql://{DB_USER}:{DB_PASSWORD}@localhost")
conn = engine.connect()
conn.execute("commit")
try:
conn.execute(f"CREATE DAT... | 22.208333 | 91 | 0.67167 | 70 | 533 | 4.842857 | 0.557143 | 0.123894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189493 | 533 | 23 | 92 | 23.173913 | 0.784722 | 0 | 0 | 0 | 0 | 0 | 0.285178 | 0.091932 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.117647 | 0.117647 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
51d0632397e8a718b898df3c392ca0329782d9ba | 6,805 | py | Python | pyreststore/pyreststore/settings_dev.py | peterdv/pyreststore | d1d66f80b2497400f30abc608bb944b78bc0d821 | [
"BSD-3-Clause"
] | null | null | null | pyreststore/pyreststore/settings_dev.py | peterdv/pyreststore | d1d66f80b2497400f30abc608bb944b78bc0d821 | [
"BSD-3-Clause"
] | 3 | 2015-08-05T13:12:38.000Z | 2021-03-19T22:03:49.000Z | pyreststore/pyreststore/settings_dev.py | peterdv/pyreststore | d1d66f80b2497400f30abc608bb944b78bc0d821 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8; mode: Python; -*-
'''
Development Django settings for pyreststore project.
Generated by 'django-admin startproject' using Django 1.8.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.d... | 28.354167 | 75 | 0.585893 | 679 | 6,805 | 5.768778 | 0.397644 | 0.049783 | 0.033699 | 0.038295 | 0.150625 | 0.133776 | 0.087822 | 0.075823 | 0.020424 | 0 | 0 | 0.012937 | 0.273035 | 6,805 | 239 | 76 | 28.472803 | 0.778856 | 0.285966 | 0 | 0.196203 | 1 | 0.006329 | 0.4543 | 0.270046 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006329 | 0 | 0.006329 | 0 | 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 |
51d0dfc61a2df8de4914ed33e9e53e88b70ef473 | 5,352 | py | Python | python/chisel/mteval/__init__.py | wilkeraziz/chisel | 3e23a7c0937bbd56d2dffb1df7594878fb9c75eb | [
"Apache-2.0"
] | 1 | 2017-01-15T01:01:16.000Z | 2017-01-15T01:01:16.000Z | python/chisel/mteval/__init__.py | wilkeraziz/chisel | 3e23a7c0937bbd56d2dffb1df7594878fb9c75eb | [
"Apache-2.0"
] | null | null | null | python/chisel/mteval/__init__.py | wilkeraziz/chisel | 3e23a7c0937bbd56d2dffb1df7594878fb9c75eb | [
"Apache-2.0"
] | null | null | null | """
To add support to your own mteval metric, you need to wrap it exposing the interface mteval.LossFunction
Your module should also define a constructor function named 'construct' which takes exactly one string parameter:
def construct(alias):
return MyWrappedMetric(alias)
where alias is the name the user chose... | 28.020942 | 113 | 0.615845 | 703 | 5,352 | 4.617354 | 0.257468 | 0.017252 | 0.051756 | 0.062847 | 0.36907 | 0.298829 | 0.238447 | 0.177449 | 0.126925 | 0.083179 | 0 | 0.009103 | 0.281577 | 5,352 | 190 | 114 | 28.168421 | 0.835111 | 0.261771 | 0 | 0.192308 | 0 | 0 | 0.113302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.282051 | false | 0.038462 | 0.102564 | 0.064103 | 0.474359 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51d15ab414918a16815dacd291c8fa2f46eb9774 | 1,926 | py | Python | app/main.py | widoyo/ewslogung | 67e01a0457aa85a6b2b654d110eb30c680d0910f | [
"MIT"
] | null | null | null | app/main.py | widoyo/ewslogung | 67e01a0457aa85a6b2b654d110eb30c680d0910f | [
"MIT"
] | null | null | null | app/main.py | widoyo/ewslogung | 67e01a0457aa85a6b2b654d110eb30c680d0910f | [
"MIT"
] | null | null | null | from fastapi import FastAPI, Request
from fastapi.responses import HTMLResponse
from fastapi.staticfiles import StaticFiles
from fastapi.templating import Jinja2Templates
from .routes import map
app = FastAPI(docs_url='/apidocs', redoc_url=None)
templates = Jinja2Templates(directory="templates")
app.mount("/static",... | 35.666667 | 86 | 0.751298 | 223 | 1,926 | 6.41704 | 0.201794 | 0.176101 | 0.157233 | 0.188679 | 0.612858 | 0.401118 | 0.401118 | 0.401118 | 0.401118 | 0.401118 | 0 | 0.001157 | 0.102804 | 1,926 | 53 | 87 | 36.339623 | 0.826968 | 0 | 0 | 0.179487 | 0 | 0 | 0.148494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.128205 | 0 | 0.358974 | 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 |
51d2e700beeef27e209f5294ad78874fa6a2b468 | 5,653 | py | Python | uninas/models/abstract.py | cogsys-tuebingen/uninas | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | [
"MIT"
] | 18 | 2020-11-22T16:03:08.000Z | 2022-03-15T12:11:46.000Z | uninas/models/abstract.py | cogsys-tuebingen/uninas | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | [
"MIT"
] | 2 | 2022-01-04T08:10:17.000Z | 2022-01-05T08:13:14.000Z | uninas/models/abstract.py | cogsys-tuebingen/uninas | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | [
"MIT"
] | 6 | 2021-03-08T07:08:52.000Z | 2022-02-24T12:00:43.000Z | import os
import numpy as np
import torch
from uninas.utils.args import ArgsInterface, Namespace
from uninas.utils.paths import replace_standard_paths
from uninas.utils.types import CheckpointType
from uninas.utils.np import squeeze_keep_batch
from uninas.register import Register
class AbstractModel(ArgsInterface):
... | 36.947712 | 126 | 0.639307 | 718 | 5,653 | 4.824513 | 0.175487 | 0.032333 | 0.032333 | 0.04388 | 0.45179 | 0.419169 | 0.401559 | 0.401559 | 0.354215 | 0.354215 | 0 | 0.00048 | 0.262339 | 5,653 | 152 | 127 | 37.190789 | 0.830216 | 0.239165 | 0 | 0.27907 | 0 | 0 | 0.081175 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 1 | 0.22093 | false | 0 | 0.093023 | 0.011628 | 0.488372 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51d459486dc54affdf14e131e9f5aeac57cd182f | 6,395 | py | Python | safe_browsing_check/bin/safebrowsingcheck.py | ThomasMethlie/safebrowsingcheck | b93a4feee805c53939a73328d11c0440e7428079 | [
"MIT"
] | null | null | null | safe_browsing_check/bin/safebrowsingcheck.py | ThomasMethlie/safebrowsingcheck | b93a4feee805c53939a73328d11c0440e7428079 | [
"MIT"
] | null | null | null | safe_browsing_check/bin/safebrowsingcheck.py | ThomasMethlie/safebrowsingcheck | b93a4feee805c53939a73328d11c0440e7428079 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import logging
import logging.handlers
import os
import sys
import urllib2
from splunklib.searchcommands import dispatch, StreamingCommand, Configuration, Option, validators
from ConfigParser import SafeConfigParser
@Configuration()
class SafeBrowsingCheckCommand(... | 42.919463 | 210 | 0.583737 | 707 | 6,395 | 5.162659 | 0.335219 | 0.029589 | 0.02411 | 0.032603 | 0.118356 | 0.089863 | 0.065205 | 0.046027 | 0.046027 | 0.025205 | 0 | 0.019896 | 0.308366 | 6,395 | 148 | 211 | 43.209459 | 0.804205 | 0.005942 | 0 | 0.09434 | 0 | 0.018868 | 0.215446 | 0.039877 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066038 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51db6144ac79cda20895d38303fe02f17f0c343a | 1,219 | py | Python | backend/backend/barovian_activity_map/migrations/0003_event_eventtypes.py | bstoots/barovian-activity-map | 2f69feaa38a187dae59b85e9a4237f1585d51dd3 | [
"Unlicense"
] | null | null | null | backend/backend/barovian_activity_map/migrations/0003_event_eventtypes.py | bstoots/barovian-activity-map | 2f69feaa38a187dae59b85e9a4237f1585d51dd3 | [
"Unlicense"
] | 1 | 2021-02-10T04:57:20.000Z | 2021-02-10T04:57:20.000Z | backend/backend/barovian_activity_map/migrations/0003_event_eventtypes.py | bstoots/barovian-activity-map | 2f69feaa38a187dae59b85e9a4237f1585d51dd3 | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1.5 on 2021-02-05 03:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('barovian_activity_map', '0002_auto_20210128_2228'),
]
operations = [
migrations.CreateModel(
na... | 34.828571 | 138 | 0.575882 | 117 | 1,219 | 5.837607 | 0.512821 | 0.035139 | 0.040996 | 0.064422 | 0.298682 | 0.298682 | 0.298682 | 0.298682 | 0.298682 | 0.298682 | 0 | 0.042725 | 0.289582 | 1,219 | 34 | 139 | 35.852941 | 0.745958 | 0.036916 | 0 | 0.428571 | 1 | 0 | 0.139932 | 0.064846 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 0 | 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 |
51dd626347efef79575d320aa335d60450ce0ad8 | 648 | py | Python | jira/get_group_users.py | bertrandvidal/stuff | 107628d42176eebd6e79adec3cf46bd686f40643 | [
"Unlicense"
] | null | null | null | jira/get_group_users.py | bertrandvidal/stuff | 107628d42176eebd6e79adec3cf46bd686f40643 | [
"Unlicense"
] | 1 | 2021-03-06T15:01:49.000Z | 2021-03-06T15:01:49.000Z | jira/get_group_users.py | bertrandvidal/stuff | 107628d42176eebd6e79adec3cf46bd686f40643 | [
"Unlicense"
] | null | null | null | from jira import JIRA
import sys
import os
(_, group) = sys.argv
with open(os.path.expanduser("~/.jira"), "r") as f:
(u, p) = f.readline().strip("\n").split(" ")
api = JIRA("https://tools.crowdtwist.com/issues", basic_auth=(u, p))
users = api.group_members(group)
users = [k for k,v in users.iteritems() if v['ac... | 30.857143 | 75 | 0.507716 | 87 | 648 | 3.747126 | 0.528736 | 0.06135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.310185 | 648 | 20 | 76 | 32.4 | 0.729306 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51e65bd4baa6632c6b37c203b93790f55b26675e | 4,932 | py | Python | pyqtsocius/ui_elements/compound_widgets/converted_files/Ui_links_tab_widget.py | Giddius/PyQt_Socius | 6d0ee2fe65e5ca181677fbcbae7f59a5c1952b74 | [
"MIT"
] | null | null | null | pyqtsocius/ui_elements/compound_widgets/converted_files/Ui_links_tab_widget.py | Giddius/PyQt_Socius | 6d0ee2fe65e5ca181677fbcbae7f59a5c1952b74 | [
"MIT"
] | null | null | null | pyqtsocius/ui_elements/compound_widgets/converted_files/Ui_links_tab_widget.py | Giddius/PyQt_Socius | 6d0ee2fe65e5ca181677fbcbae7f59a5c1952b74 | [
"MIT"
] | 1 | 2021-01-19T17:24:32.000Z | 2021-01-19T17:24:32.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'd:\Dropbox\hobby\Modding\Programs\Github\My_Repos\PyQt_Socius\designer_files\links_tab_widget.ui'
#
# Created by: PyQt5 UI code generator 5.15.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do n... | 64.894737 | 151 | 0.762165 | 621 | 4,932 | 5.768116 | 0.227053 | 0.103573 | 0.119765 | 0.07426 | 0.446957 | 0.307649 | 0.290899 | 0.290899 | 0.198492 | 0.198492 | 0 | 0.029238 | 0.140105 | 4,932 | 76 | 152 | 64.894737 | 0.815374 | 0.072587 | 0 | 0 | 1 | 0 | 0.069849 | 0.028465 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.032258 | 0 | 0.080645 | 0 | 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 |
51e927a26612acf86bce1887066b74eead982f4c | 452 | py | Python | IMU/VTK-6.2.0/Examples/Infovis/Python/create_tree.py | timkrentz/SunTracker | 9a189cc38f45e5fbc4e4c700d7295a871d022795 | [
"MIT"
] | 4 | 2019-05-30T01:52:12.000Z | 2021-09-29T21:12:13.000Z | IMU/VTK-6.2.0/Examples/Infovis/Python/create_tree.py | timkrentz/SunTracker | 9a189cc38f45e5fbc4e4c700d7295a871d022795 | [
"MIT"
] | null | null | null | IMU/VTK-6.2.0/Examples/Infovis/Python/create_tree.py | timkrentz/SunTracker | 9a189cc38f45e5fbc4e4c700d7295a871d022795 | [
"MIT"
] | 2 | 2019-08-30T23:36:13.000Z | 2019-11-08T16:52:01.000Z | #!/usr/bin/env python
from vtk import *
graph = vtkMutableDirectedGraph()
a = graph.AddVertex()
b = graph.AddChild(a)
c = graph.AddChild(a)
d = graph.AddChild(b)
e = graph.AddChild(c)
f = graph.AddChild(c)
tree = vtkTree()
tree.CheckedShallowCopy(graph)
view = vtkGraphLayoutView()
view.AddRepresentati... | 18.833333 | 41 | 0.705752 | 54 | 452 | 5.907407 | 0.555556 | 0.203762 | 0.087774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015666 | 0.152655 | 452 | 23 | 42 | 19.652174 | 0.817232 | 0.044248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 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 |
51eaeaea64be5cdc1c1c16accc8a85823395a330 | 1,672 | py | Python | quickJSON.py | angelCarias/quickJSON | 56af7776b180e19799f249673599ce9e2699010a | [
"MIT"
] | null | null | null | quickJSON.py | angelCarias/quickJSON | 56af7776b180e19799f249673599ce9e2699010a | [
"MIT"
] | null | null | null | quickJSON.py | angelCarias/quickJSON | 56af7776b180e19799f249673599ce9e2699010a | [
"MIT"
] | null | null | null | """
quickJSON
A basic, simple Python module that interfaces with JSON files.
"""
# Imports
import json
class JSONManager:
"""Manages JSON files"""
def __init__(self, filename = None):
self.filename = filename
if self.filename != None:
self.loadJSON(self.fil... | 30.4 | 129 | 0.544856 | 186 | 1,672 | 4.876344 | 0.354839 | 0.105843 | 0.070562 | 0.044101 | 0.202867 | 0.110254 | 0.110254 | 0.110254 | 0.110254 | 0 | 0 | 0.000926 | 0.354067 | 1,672 | 54 | 130 | 30.962963 | 0.838889 | 0.239234 | 0 | 0.206897 | 0 | 0 | 0.003404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.034483 | 0 | 0.310345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51ec7e15e4c8cac2ae409b924bf6adbd3725533e | 5,644 | py | Python | tests/analyzers/morphological/test_article_morphological_analyzer.py | fidelisrafael/esperanto-analyzer | af1e8609ec0696e3d1975aa0ba0c88e5f04f8468 | [
"BSD-2-Clause"
] | 18 | 2018-09-05T00:46:47.000Z | 2021-12-08T08:54:35.000Z | tests/analyzers/morphological/test_article_morphological_analyzer.py | fidelisrafael/esperanto-analyzer | af1e8609ec0696e3d1975aa0ba0c88e5f04f8468 | [
"BSD-2-Clause"
] | null | null | null | tests/analyzers/morphological/test_article_morphological_analyzer.py | fidelisrafael/esperanto-analyzer | af1e8609ec0696e3d1975aa0ba0c88e5f04f8468 | [
"BSD-2-Clause"
] | 3 | 2019-03-12T17:54:18.000Z | 2020-01-11T13:05:03.000Z | # pylint: disable=missing-docstring,no-self-use
import re
import pytest
from context import esperanto_analyzer
from esperanto_analyzer.speech import Article
from esperanto_analyzer.analyzers.morphological import ArticleMorphologicalAnalyzer
class TestArticleMorphologicalAnalyzerBasic():
TEST_WORD = 'la'
de... | 32.813953 | 108 | 0.68905 | 574 | 5,644 | 6.597561 | 0.142857 | 0.048059 | 0.04357 | 0.051492 | 0.636916 | 0.600475 | 0.596778 | 0.529707 | 0.479799 | 0.443887 | 0 | 0.000464 | 0.236534 | 5,644 | 171 | 109 | 33.005848 | 0.878394 | 0.043586 | 0 | 0.495575 | 0 | 0 | 0.016688 | 0 | 0 | 0 | 0 | 0 | 0.265487 | 1 | 0.230089 | false | 0 | 0.053097 | 0 | 0.362832 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51ed2d4603a71c37e245b4be45ba429840da053c | 2,493 | py | Python | 492/492.py | kaixiang1992/python-flask | 2b4c597d83f5a6ed662d42d7ff692e563a9adbf8 | [
"MIT"
] | null | null | null | 492/492.py | kaixiang1992/python-flask | 2b4c597d83f5a6ed662d42d7ff692e563a9adbf8 | [
"MIT"
] | null | null | null | 492/492.py | kaixiang1992/python-flask | 2b4c597d83f5a6ed662d42d7ff692e563a9adbf8 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine, Column, Integer, String, ForeignKey
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, relationship, backref
# TODO: db_uri
# dialect+driver://username:password@host:port/database?charset=utf8
DB_URI = 'mysql+pymysql://root:root123@127... | 28.329545 | 93 | 0.705576 | 284 | 2,493 | 6.06338 | 0.362676 | 0.045296 | 0.053426 | 0.069686 | 0.288037 | 0.250871 | 0.250871 | 0.220674 | 0.140534 | 0.068525 | 0 | 0.015245 | 0.158043 | 2,493 | 87 | 94 | 28.655172 | 0.805145 | 0.251504 | 0 | 0.162791 | 0 | 0.023256 | 0.113341 | 0.039588 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.046512 | false | 0 | 0.069767 | 0 | 0.488372 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
51efa4d61a3e101ce89f5ad8234729b221ab9943 | 4,644 | py | Python | requestLogic.py | rfaile313/Abstract-Scraper | a6b19489d3274be4a54617f02cbdd1890fe58bdf | [
"MIT"
] | 1 | 2021-10-11T21:23:07.000Z | 2021-10-11T21:23:07.000Z | requestLogic.py | rfaile313/Abstract-Scraper | a6b19489d3274be4a54617f02cbdd1890fe58bdf | [
"MIT"
] | null | null | null | requestLogic.py | rfaile313/Abstract-Scraper | a6b19489d3274be4a54617f02cbdd1890fe58bdf | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
from constants import Constants
class ScanForResults:
def search_sort(self, search_string, journal, aytag, srt_by):
#Search String
self.search_tag = search_string
self.journal = journal
#debugging / turn off in prod
#########... | 42.605505 | 234 | 0.57795 | 563 | 4,644 | 4.579041 | 0.223801 | 0.058185 | 0.070597 | 0.060512 | 0.57564 | 0.542669 | 0.542669 | 0.542669 | 0.542669 | 0.52948 | 0 | 0.010986 | 0.274763 | 4,644 | 109 | 235 | 42.605505 | 0.754454 | 0.067183 | 0 | 0.410959 | 0 | 0 | 0.193631 | 0 | 0 | 0 | 0 | 0.009174 | 0 | 1 | 0.09589 | false | 0.054795 | 0.041096 | 0.013699 | 0.30137 | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51f20866c3bd09757e0bc4ad5186caf67396ab3e | 1,456 | py | Python | 6_google_trace/tensorflow/exam5.py | nguyenthieu95/machine_learning | 40595a003815445a7a9fef7e8925f71d19f8fa30 | [
"MIT"
] | 1 | 2017-12-30T20:10:07.000Z | 2017-12-30T20:10:07.000Z | 6_google_trace/tensorflow/exam5.py | ThieuNv/machine_learning | 40595a003815445a7a9fef7e8925f71d19f8fa30 | [
"MIT"
] | null | null | null | 6_google_trace/tensorflow/exam5.py | ThieuNv/machine_learning | 40595a003815445a7a9fef7e8925f71d19f8fa30 | [
"MIT"
] | 1 | 2019-12-23T15:30:16.000Z | 2019-12-23T15:30:16.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 15 10:17:15 2018
@author: thieunv
Magic method: https://www.youtube.com/watch?v=3ohzBxoFHAY
"""
class Employee:
# class variable
raise_amount = 1.04
def __init__(self, first, last, pay):
self.first = first
self... | 17.333333 | 83 | 0.568681 | 183 | 1,456 | 4.245902 | 0.404372 | 0.045045 | 0.050193 | 0.048906 | 0.059202 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037879 | 0.274725 | 1,456 | 83 | 84 | 17.542169 | 0.697917 | 0.162088 | 0 | 0 | 0 | 0 | 0.075188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.322581 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51f8c1f61d16372079947cc272f18f001a1bdc1e | 1,524 | py | Python | Dragon/python/dragon/vm/torch/ops/modules/control_flow.py | awesome-archive/Dragon | b35f9320909d07d138c2f6b345a4c24911f7c521 | [
"BSD-2-Clause"
] | null | null | null | Dragon/python/dragon/vm/torch/ops/modules/control_flow.py | awesome-archive/Dragon | b35f9320909d07d138c2f6b345a4c24911f7c521 | [
"BSD-2-Clause"
] | null | null | null | Dragon/python/dragon/vm/torch/ops/modules/control_flow.py | awesome-archive/Dragon | b35f9320909d07d138c2f6b345a4c24911f7c521 | [
"BSD-2-Clause"
] | null | null | null | # ------------------------------------------------------------
# Copyright (c) 2017-present, SeetaTech, Co.,Ltd.
#
# Licensed under the BSD 2-Clause License.
# You should have received a copy of the BSD 2-Clause License
# along with the software. If not, See,
#
# <https://opensource.org/licenses/BSD-2-Clause>
#
# ... | 31.102041 | 62 | 0.575459 | 177 | 1,524 | 4.717514 | 0.446328 | 0.028743 | 0.057485 | 0.031138 | 0.304192 | 0.256287 | 0.203593 | 0.203593 | 0.112575 | 0.112575 | 0 | 0.010144 | 0.223753 | 1,524 | 49 | 63 | 31.102041 | 0.695689 | 0.23622 | 0 | 0.206897 | 0 | 0 | 0.063258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.137931 | 0 | 0.482759 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4001cf1999ae841ccd9a1869b7336960d82962c | 1,639 | py | Python | leo/core/leoVersion.py | drmikecrowe/leo-editor | 16d8e1e8564799496c7a90c5d3cc85461deca7e7 | [
"MIT"
] | null | null | null | leo/core/leoVersion.py | drmikecrowe/leo-editor | 16d8e1e8564799496c7a90c5d3cc85461deca7e7 | [
"MIT"
] | null | null | null | leo/core/leoVersion.py | drmikecrowe/leo-editor | 16d8e1e8564799496c7a90c5d3cc85461deca7e7 | [
"MIT"
] | null | null | null | #@+leo-ver=5-thin
#@+node:ekr.20090717092906.12765: * @file leoVersion.py
'''
A module holding the following version-related info:
leoVersion.branch: The git branch name, or ''.
leoVersion.build: The timestamp field from commit_timestamp.json.
leoVersion.date: The asctime field from commit_timestamp.json.
leoVer... | 30.924528 | 78 | 0.689445 | 263 | 1,639 | 4.281369 | 0.444867 | 0.035524 | 0.050622 | 0.042629 | 0.101243 | 0.067496 | 0 | 0 | 0 | 0 | 0 | 0.141509 | 0.159243 | 1,639 | 52 | 79 | 31.519231 | 0.675617 | 0.877364 | 0 | 0 | 0 | 0 | 0.058442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4039de6f8ea0c41849558e100f86c597444aaa5 | 322 | py | Python | pyart/tests/test_debug_info.py | kmuehlbauer/pyart | 4accda3fc02490d135373ad5b054899c6781e762 | [
"OLDAP-2.6",
"Python-2.0"
] | null | null | null | pyart/tests/test_debug_info.py | kmuehlbauer/pyart | 4accda3fc02490d135373ad5b054899c6781e762 | [
"OLDAP-2.6",
"Python-2.0"
] | null | null | null | pyart/tests/test_debug_info.py | kmuehlbauer/pyart | 4accda3fc02490d135373ad5b054899c6781e762 | [
"OLDAP-2.6",
"Python-2.0"
] | null | null | null | """ Unit Tests for Py-ART's config.py module. """
import pyart
from StringIO import StringIO
def test_debug_info():
# test to see that something is written when _debug_info is called
# we don't care what is written, just that something is.
buf = StringIO()
pyart._debug_info(buf)
assert buf.len > ... | 24.769231 | 70 | 0.701863 | 52 | 322 | 4.230769 | 0.653846 | 0.122727 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003968 | 0.217391 | 322 | 12 | 71 | 26.833333 | 0.869048 | 0.506211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | 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 |
a40661a7abbbb3fb05c1b9326feb204ba7c71b71 | 2,069 | py | Python | checker.py | Ian-Goodall-Halliwell/qlib | 38c411e905d9d4a54c5cdc84d63aea1f2d727d3a | [
"MIT"
] | null | null | null | checker.py | Ian-Goodall-Halliwell/qlib | 38c411e905d9d4a54c5cdc84d63aea1f2d727d3a | [
"MIT"
] | null | null | null | checker.py | Ian-Goodall-Halliwell/qlib | 38c411e905d9d4a54c5cdc84d63aea1f2d727d3a | [
"MIT"
] | null | null | null | import os
import csv
type = 'day'
def import_csv(csvfilename):
data = []
row_index = 0
with open(csvfilename, "r", encoding="utf-8", errors="ignore") as scraped:
reader = csv.reader(scraped, delimiter=',')
for row in reader:
if row: # avoid blank lines
row_inde... | 36.298246 | 88 | 0.536008 | 285 | 2,069 | 3.849123 | 0.221053 | 0.020055 | 0.050137 | 0.090246 | 0.621696 | 0.621696 | 0.621696 | 0.621696 | 0.621696 | 0.621696 | 0 | 0.026298 | 0.301595 | 2,069 | 56 | 89 | 36.946429 | 0.732872 | 0.012083 | 0 | 0.307692 | 0 | 0 | 0.240568 | 0.207251 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.096154 | 0 | 0.173077 | 0.115385 | 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 |
a40ce3c4bb6a9ca260ff5f158c7546c985445ae7 | 391 | py | Python | setup.py | freemansw1/ramscube | 2f4c687e4e4ec84153b687061ea90cac8a7fbd83 | [
"BSD-3-Clause"
] | null | null | null | setup.py | freemansw1/ramscube | 2f4c687e4e4ec84153b687061ea90cac8a7fbd83 | [
"BSD-3-Clause"
] | null | null | null | setup.py | freemansw1/ramscube | 2f4c687e4e4ec84153b687061ea90cac8a7fbd83 | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup
setup(name='ramscube',
version='0.1',
description='Load RAMS output into iris cubes',
url='http://github.com/mheikenfeld/wrfcube',
author='Max Heikenfeld',
author_email='max.heikenfeld@physics.ox.ac.uk',
license='GNU',
packages=['ramscube'],
... | 30.076923 | 54 | 0.641944 | 46 | 391 | 5.391304 | 0.869565 | 0.104839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009494 | 0.191816 | 391 | 12 | 55 | 32.583333 | 0.775316 | 0.069054 | 0 | 0 | 0 | 0 | 0.374656 | 0.085399 | 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 |
cf9169b3aba58dc59f825b790c012b6b4a678af7 | 4,149 | py | Python | dryxPython/command_line.py | thespacedoctor/dryxPython | 8f34f997192eebef9403bd40e4b7c1b1d216f53c | [
"BSD-3-Clause"
] | 2 | 2015-08-01T16:00:44.000Z | 2017-02-24T21:06:50.000Z | dryxPython/command_line.py | thespacedoctor/dryxPython | 8f34f997192eebef9403bd40e4b7c1b1d216f53c | [
"BSD-3-Clause"
] | null | null | null | dryxPython/command_line.py | thespacedoctor/dryxPython | 8f34f997192eebef9403bd40e4b7c1b1d216f53c | [
"BSD-3-Clause"
] | null | null | null | from dryxPython import commonutils
from dryxPython import fitstools
def _set_up_command_line_tool():
import logging
import logging.config
import yaml
loggerConfig = """
version: 1
formatters:
file_style:
format: '* %(asctime)s - %(name)s - %(levelname)s (%(pathname)s > %(f... | 28.22449 | 485 | 0.567848 | 475 | 4,149 | 4.844211 | 0.32 | 0.046936 | 0.045198 | 0.039113 | 0.183833 | 0.131247 | 0.111256 | 0.111256 | 0.083442 | 0.044329 | 0 | 0.009768 | 0.284406 | 4,149 | 146 | 486 | 28.417808 | 0.765241 | 0.081465 | 0 | 0.166667 | 0 | 0.047619 | 0.412158 | 0.150456 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.154762 | null | null | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cf93422f9374c140e6ab4fd0d4ff0efc27bd35b7 | 322 | py | Python | config/api_router.py | pawanvirsingh/invoice_management_system | dcca98b560a1af803f1fba726fa74cfc04ac02a3 | [
"MIT"
] | null | null | null | config/api_router.py | pawanvirsingh/invoice_management_system | dcca98b560a1af803f1fba726fa74cfc04ac02a3 | [
"MIT"
] | 2 | 2022-02-28T12:04:26.000Z | 2022-03-02T12:05:30.000Z | config/api_router.py | pawanvirsingh/invoice_management_system | dcca98b560a1af803f1fba726fa74cfc04ac02a3 | [
"MIT"
] | null | null | null | from django.conf import settings
from rest_framework.routers import DefaultRouter, SimpleRouter
from invoice_management_system.invoice_manager.api.urls import router as invoice_router
if settings.DEBUG:
router = DefaultRouter()
else:
router = SimpleRouter()
app_name = "api"
urlpatterns = invoice_router.urls... | 21.466667 | 87 | 0.804348 | 40 | 322 | 6.3 | 0.6 | 0.103175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13354 | 322 | 14 | 88 | 23 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 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 |
cf98fe8917ebaf47c5ec68898b768c50822e85fc | 4,462 | py | Python | manager/views.py | EruDev/eru_manager | 9bc7fb3af361c7de734bfa6c4e1562dd7f978500 | [
"Apache-2.0"
] | 17 | 2018-07-06T11:37:54.000Z | 2022-01-04T01:15:54.000Z | manager/views.py | EruDev/eru_manager | 9bc7fb3af361c7de734bfa6c4e1562dd7f978500 | [
"Apache-2.0"
] | 3 | 2018-07-17T01:56:44.000Z | 2020-06-05T18:34:48.000Z | manager/views.py | EruDev/eru_manager | 9bc7fb3af361c7de734bfa6c4e1562dd7f978500 | [
"Apache-2.0"
] | 4 | 2018-07-16T01:48:04.000Z | 2019-11-06T12:25:35.000Z | import hashlib
from django.shortcuts import render, reverse, redirect
from .models import UseInfo, HostInfo
from remoteCMD.remote import Remote
# Create your views here.
def hash_password(password):
"""
md5加密
:param password:
:return:
"""
md5 = hashlib.md5()
md5.update(password.encode('utf-... | 28.240506 | 107 | 0.587629 | 514 | 4,462 | 5.003891 | 0.249027 | 0.055599 | 0.073872 | 0.032659 | 0.282659 | 0.162908 | 0.149689 | 0.094868 | 0.094868 | 0.094868 | 0 | 0.006177 | 0.274316 | 4,462 | 158 | 108 | 28.240506 | 0.788141 | 0.048633 | 0 | 0.357798 | 0 | 0 | 0.093727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.110092 | false | 0.12844 | 0.036697 | 0 | 0.348624 | 0.027523 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cf9da2373d58efe4a759ad5a5430c473e1953bdf | 1,042 | py | Python | cms/admin.py | vinaypai/django-simple-cms | ab1527602a20719487a9ae22c530667ff86b623e | [
"MIT"
] | 4 | 2019-08-14T09:48:11.000Z | 2020-10-25T02:40:39.000Z | cms/admin.py | vinaypai/django-simple-cms | ab1527602a20719487a9ae22c530667ff86b623e | [
"MIT"
] | null | null | null | cms/admin.py | vinaypai/django-simple-cms | ab1527602a20719487a9ae22c530667ff86b623e | [
"MIT"
] | 1 | 2020-10-25T22:55:31.000Z | 2020-10-25T22:55:31.000Z | from django import forms
from django.conf import settings
from django.contrib import admin
from django.forms.widgets import Textarea
from mptt.admin import DraggableMPTTAdmin
from cms import models
class PageForm(forms.ModelForm):
class Meta:
model = models.Page
fields = [
'title', 'sl... | 28.944444 | 79 | 0.638196 | 113 | 1,042 | 5.787611 | 0.504425 | 0.061162 | 0.033639 | 0.045872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008805 | 0.237044 | 1,042 | 35 | 80 | 29.771429 | 0.813836 | 0 | 0 | 0 | 0 | 0 | 0.153551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.259259 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cf9ef1a2cea463547541860f513466c3af6bfe40 | 3,318 | py | Python | src/lib/charms/nodepool.py | centauri-charmers/charm-nodepool | 823ef2575921c86f3dd46c04e7c84f131c41e594 | [
"Apache-2.0"
] | null | null | null | src/lib/charms/nodepool.py | centauri-charmers/charm-nodepool | 823ef2575921c86f3dd46c04e7c84f131c41e594 | [
"Apache-2.0"
] | null | null | null | src/lib/charms/nodepool.py | centauri-charmers/charm-nodepool | 823ef2575921c86f3dd46c04e7c84f131c41e594 | [
"Apache-2.0"
] | null | null | null | import subprocess
import yaml
from charmhelpers.core import hookenv
from charmhelpers.core.unitdata import kv
def log(msg, *args):
hookenv.log(msg.format(*args), hookenv.INFO)
def log_err(msg, *args):
hookenv.log(msg.format(*args), hookenv.ERROR)
def get_credentials():
"""
Get the credentials fr... | 28.852174 | 75 | 0.622363 | 401 | 3,318 | 5.014963 | 0.334165 | 0.067131 | 0.02735 | 0.016907 | 0.036798 | 0.036798 | 0.036798 | 0.036798 | 0 | 0 | 0 | 0.012448 | 0.273659 | 3,318 | 114 | 76 | 29.105263 | 0.821992 | 0.137131 | 0 | 0.103896 | 0 | 0 | 0.191249 | 0.018349 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.051948 | 0.051948 | 0.025974 | 0.207792 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cfa56451afd6c1e868cb91dec2494b6b3ae0f4d9 | 459 | py | Python | referral_system/referral/migrations/0005_smscode_phone.py | todd-sudo/referral_system | a2220a780e7705f3f235ac5cb99f0b8802925300 | [
"MIT"
] | null | null | null | referral_system/referral/migrations/0005_smscode_phone.py | todd-sudo/referral_system | a2220a780e7705f3f235ac5cb99f0b8802925300 | [
"MIT"
] | 1 | 2022-03-24T17:24:11.000Z | 2022-03-24T17:24:11.000Z | referral_system/referral/migrations/0005_smscode_phone.py | todd-sudo/referral_system | a2220a780e7705f3f235ac5cb99f0b8802925300 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.12 on 2022-03-24 15:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('referral', '0004_smscode'),
]
operations = [
migrations.AddField(
model_name='smscode',
name='phone',
f... | 22.95 | 98 | 0.605664 | 50 | 459 | 5.46 | 0.82 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069277 | 0.276688 | 459 | 19 | 99 | 24.157895 | 0.753012 | 0.100218 | 0 | 0 | 1 | 0 | 0.094891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 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 |
cfa6e0743c7fea66bcd2c60111edf7cc4c73b505 | 1,180 | py | Python | poco/utils/multitouch_gesture.py | HBoPRC/Poco | c8b0dc5362db45ff7a8397eebb0c52d9047f4b67 | [
"Apache-2.0"
] | 1,444 | 2018-01-24T03:27:52.000Z | 2022-03-31T07:40:57.000Z | poco/utils/multitouch_gesture.py | HBoPRC/Poco | c8b0dc5362db45ff7a8397eebb0c52d9047f4b67 | [
"Apache-2.0"
] | 524 | 2018-03-14T01:08:06.000Z | 2022-03-31T08:21:52.000Z | poco/utils/multitouch_gesture.py | HBoPRC/Poco | c8b0dc5362db45ff7a8397eebb0c52d9047f4b67 | [
"Apache-2.0"
] | 268 | 2018-01-25T03:58:33.000Z | 2022-03-24T08:18:59.000Z | # coding=utf-8
import math
from poco.utils.track import MotionTrack
def make_pinching(direction, center, size, percent, dead_zone, duration):
w, h = size
half_distance = percent / 2
dead_zone_distance = dead_zone / 2
pa0 = center
pb0 = list(pa0)
pa1 = list(pa0)
pb1 = list(pa0)
if dire... | 27.44186 | 73 | 0.584746 | 168 | 1,180 | 3.892857 | 0.25 | 0.146789 | 0.220183 | 0.085627 | 0.220183 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056355 | 0.29322 | 1,180 | 42 | 74 | 28.095238 | 0.727818 | 0.010169 | 0 | 0 | 0 | 0 | 0.001715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.029412 | 0.058824 | 0 | 0.147059 | 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 |
cfac008b1e9b13c99469b2d53bc3f68ca24c547c | 3,785 | py | Python | src/support/linux_scripts/tcpdump_app.py | Paulche/vfd | aff17c97d7ef35fb1f4bda5a4f6ab2f2266bdacc | [
"Apache-2.0"
] | 71 | 2016-04-14T20:21:48.000Z | 2021-11-27T20:01:28.000Z | src/support/linux_scripts/tcpdump_app.py | Paulche/vfd | aff17c97d7ef35fb1f4bda5a4f6ab2f2266bdacc | [
"Apache-2.0"
] | 62 | 2016-06-03T18:04:32.000Z | 2018-09-07T21:13:27.000Z | src/support/linux_scripts/tcpdump_app.py | Paulche/vfd | aff17c97d7ef35fb1f4bda5a4f6ab2f2266bdacc | [
"Apache-2.0"
] | 35 | 2016-04-14T17:12:46.000Z | 2021-10-13T03:34:11.000Z | #!/usr/bin/env python
# vi: sw=4 ts=4:
import socket
import argparse
import subprocess
import sys
import os
import dpkt
from dpkt.ip import IP
from dpkt.ethernet import Ethernet
from dpkt.arp import ARP
fname = "/tmp/" + str(os.getpid()) + ".pcap"
def parse_args():
ap = argparse.ArgumentParser()
ap.add_argum... | 38.622449 | 165 | 0.596037 | 603 | 3,785 | 3.585406 | 0.227197 | 0.011101 | 0.035615 | 0.033303 | 0.395005 | 0.383441 | 0.377891 | 0.375116 | 0.375116 | 0.375116 | 0 | 0.004266 | 0.256803 | 3,785 | 97 | 166 | 39.020619 | 0.764309 | 0.009247 | 0 | 0.223529 | 0 | 0.094118 | 0.201441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105882 | null | null | 0.141176 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cfc3eb600b1fe6d55186c4ac1e18c53bcb7a4a79 | 14,131 | py | Python | ExploratoryRead.py | bugdaniel/Mozilla-and-Eclipse-Defect-Tracking | 444021e39b4f8ea201313a63306d5eddb7c625dd | [
"MIT"
] | null | null | null | ExploratoryRead.py | bugdaniel/Mozilla-and-Eclipse-Defect-Tracking | 444021e39b4f8ea201313a63306d5eddb7c625dd | [
"MIT"
] | null | null | null | ExploratoryRead.py | bugdaniel/Mozilla-and-Eclipse-Defect-Tracking | 444021e39b4f8ea201313a63306d5eddb7c625dd | [
"MIT"
] | null | null | null | #Script: Read.py
#Author: Luca Gaegauf & Daniel Salamanca
#Date: 14 December 2015
""" What this script does:
1. opens the necessary CSV files from the Eclipse and Mozilla Defect Tracking Dataset
and stores into lists named respecitvely
2. create the dependent dummy variable indicating whethe... | 36.420103 | 89 | 0.706673 | 1,918 | 14,131 | 5.201773 | 0.154327 | 0.016438 | 0.024657 | 0.027563 | 0.403428 | 0.35642 | 0.33898 | 0.318332 | 0.275834 | 0.261602 | 0 | 0.014791 | 0.172316 | 14,131 | 387 | 90 | 36.514212 | 0.838235 | 0.28993 | 0 | 0.3125 | 0 | 0 | 0.042712 | 0.008816 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.008929 | null | null | 0.013393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cfcdb65e9fe608577382301dbe2dd97763075a12 | 3,249 | py | Python | nematus/translate.py | KPatr1ck/nematus | 01c80ebcdc8e1bc18c27020c1d69e8b8f780049d | [
"BSD-3-Clause"
] | null | null | null | nematus/translate.py | KPatr1ck/nematus | 01c80ebcdc8e1bc18c27020c1d69e8b8f780049d | [
"BSD-3-Clause"
] | null | null | null | nematus/translate.py | KPatr1ck/nematus | 01c80ebcdc8e1bc18c27020c1d69e8b8f780049d | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
"""Translates a source file using a translation model (or ensemble)."""
import logging
if __name__ == '__main__':
# Parse console arguments.
from settings import TranslationSettings
settings = TranslationSettings(from_console_arguments=True)
# Set the logging level. This needs t... | 36.1 | 78 | 0.651585 | 369 | 3,249 | 5.569106 | 0.371274 | 0.038929 | 0.027737 | 0.040876 | 0.141119 | 0.090511 | 0.090511 | 0.059367 | 0.059367 | 0.059367 | 0 | 0.003827 | 0.276085 | 3,249 | 89 | 79 | 36.505618 | 0.869898 | 0.224992 | 0 | 0.111111 | 0 | 0 | 0.035887 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.018519 | false | 0 | 0.203704 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfe058b4a2493ad94e6ddf350e0aecfdd9467cda | 211 | py | Python | homeworks/nikita_marchenkov/lesson13/level01.py | tgrx/Z22 | b2539682ff26c8b6d9f63a7670c8a9c6b614a8ff | [
"Apache-2.0"
] | null | null | null | homeworks/nikita_marchenkov/lesson13/level01.py | tgrx/Z22 | b2539682ff26c8b6d9f63a7670c8a9c6b614a8ff | [
"Apache-2.0"
] | 8 | 2019-11-15T18:15:56.000Z | 2020-02-03T18:05:05.000Z | homeworks/nikita_marchenkov/lesson13/level01.py | tgrx/Z22 | b2539682ff26c8b6d9f63a7670c8a9c6b614a8ff | [
"Apache-2.0"
] | null | null | null | def get_headers(text):
list_a = text.split("\n")[1:]
list_headers = []
for i in list_a:
if not i:
break
list_headers.append(i.split(": "))
return dict(list_headers)
| 19.181818 | 42 | 0.549763 | 30 | 211 | 3.666667 | 0.6 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0.312796 | 211 | 10 | 43 | 21.1 | 0.751724 | 0 | 0 | 0 | 0 | 0 | 0.018957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 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 |
cfe6f69ab241a98b4f37fc1413f9e338175e5a0c | 1,172 | py | Python | 02_assignment/toolbox/Toolbox_Python02450/Scripts/ex3_1_3.py | LukaAvbreht/ML_projects | 8b36acdeb017ce8a57959c609b96111968852d5f | [
"MIT"
] | null | null | null | 02_assignment/toolbox/Toolbox_Python02450/Scripts/ex3_1_3.py | LukaAvbreht/ML_projects | 8b36acdeb017ce8a57959c609b96111968852d5f | [
"MIT"
] | null | null | null | 02_assignment/toolbox/Toolbox_Python02450/Scripts/ex3_1_3.py | LukaAvbreht/ML_projects | 8b36acdeb017ce8a57959c609b96111968852d5f | [
"MIT"
] | null | null | null | # exercise 3.1.4
from sklearn.feature_extraction.text import CountVectorizer
# As before, load the corpus and preprocess:
with open('../Data/textDocs.txt', 'r') as f:
raw_file = f.read()
corpus = raw_file.split('\n')
corpus = list(filter(None, corpus))
# Load and process the stop words in a similar manner:
with o... | 31.675676 | 63 | 0.699659 | 176 | 1,172 | 4.607955 | 0.482955 | 0.055487 | 0.024661 | 0.017263 | 0.046856 | 0.046856 | 0.046856 | 0.046856 | 0 | 0 | 0 | 0.006079 | 0.15785 | 1,172 | 37 | 64 | 31.675676 | 0.815603 | 0.243174 | 0 | 0.230769 | 0 | 0 | 0.288636 | 0.023864 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 0.461538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cfe727d2251da6642b6670cf621f0a43d8e73885 | 2,651 | py | Python | tests/test_models.py | Averbach-Transcription/freshbooks-python-sdk | 118adbe9e0ff573b4d32fef36b8a925fa8675716 | [
"MIT"
] | null | null | null | tests/test_models.py | Averbach-Transcription/freshbooks-python-sdk | 118adbe9e0ff573b4d32fef36b8a925fa8675716 | [
"MIT"
] | null | null | null | tests/test_models.py | Averbach-Transcription/freshbooks-python-sdk | 118adbe9e0ff573b4d32fef36b8a925fa8675716 | [
"MIT"
] | null | null | null | import pytest
from freshbooks.models import ListResult
from tests import get_fixture
class TestListResult:
def test_adding_list_results(self):
data_1 = get_fixture("list_clients_response")["response"]["result"]
client_results_1 = ListResult("clients", "client", data_1)
assert len(client_... | 40.166667 | 75 | 0.67069 | 338 | 2,651 | 4.931953 | 0.162722 | 0.171566 | 0.092382 | 0.075585 | 0.796641 | 0.758848 | 0.690462 | 0.634673 | 0.582484 | 0.468506 | 0 | 0.03913 | 0.219163 | 2,651 | 65 | 76 | 40.784615 | 0.766184 | 0 | 0 | 0.54902 | 0 | 0 | 0.161449 | 0.056205 | 0 | 0 | 0 | 0 | 0.392157 | 1 | 0.078431 | false | 0 | 0.058824 | 0 | 0.156863 | 0 | 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 |
cfea04b235bd7a2aaf8fa06b2f712b0a7255ed6b | 4,106 | py | Python | Rossman Store Sales Challenge/rossman-baseline.py | rupakc/Kaggle-Compendium | 61634ba742f9a0239f2d1e45973c4bb477ac6306 | [
"MIT"
] | 17 | 2018-01-11T05:49:06.000Z | 2021-08-22T16:50:10.000Z | Rossman Store Sales Challenge/rossman-baseline.py | Tuanlase02874/Machine-Learning-Kaggle | c31651acd8f2407d8b60774e843a2527ce19b013 | [
"MIT"
] | null | null | null | Rossman Store Sales Challenge/rossman-baseline.py | Tuanlase02874/Machine-Learning-Kaggle | c31651acd8f2407d8b60774e843a2527ce19b013 | [
"MIT"
] | 8 | 2017-11-27T06:58:50.000Z | 2021-08-22T16:50:13.000Z | import pandas as pd
from sklearn.ensemble import RandomForestRegressor
from sklearn.ensemble import BaggingRegressor
from sklearn.ensemble import ExtraTreesRegressor
from sklearn.ensemble import AdaBoostRegressor
from sklearn.ensemble import GradientBoostingRegressor
from sklearn.ensemble import RandomTreesEmbedding
fr... | 41.06 | 112 | 0.77813 | 547 | 4,106 | 5.533821 | 0.255942 | 0.068715 | 0.037661 | 0.049554 | 0.151966 | 0.085563 | 0.025107 | 0 | 0 | 0 | 0 | 0.009346 | 0.11398 | 4,106 | 99 | 113 | 41.474747 | 0.822705 | 0.028738 | 0 | 0 | 0 | 0 | 0.090841 | 0.010289 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.177215 | null | null | 0.101266 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cfea7dc03ab0db0c83a54878e18f31a5e22d77d4 | 3,770 | py | Python | pages/migrations/0001_initial.py | Garinmckayl/monet | 1b2e79f0cbfdaa9bf35f301e2463a3b4959e2b3b | [
"MIT"
] | null | null | null | pages/migrations/0001_initial.py | Garinmckayl/monet | 1b2e79f0cbfdaa9bf35f301e2463a3b4959e2b3b | [
"MIT"
] | null | null | null | pages/migrations/0001_initial.py | Garinmckayl/monet | 1b2e79f0cbfdaa9bf35f301e2463a3b4959e2b3b | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2022-02-17 00:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | 44.880952 | 131 | 0.594695 | 375 | 3,770 | 5.845333 | 0.24 | 0.036496 | 0.057482 | 0.090328 | 0.637774 | 0.567062 | 0.524179 | 0.480383 | 0.480383 | 0.480383 | 0 | 0.01442 | 0.264191 | 3,770 | 83 | 132 | 45.421687 | 0.775775 | 0.011936 | 0 | 0.473684 | 1 | 0 | 0.095353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfedb5f0c008a6c69d1a0e04e6833676b869dc1c | 3,234 | py | Python | supervisely/train/src/sly_train_results_visualizer.py | supervisely-ecosystem/detectron2 | 3c8f8f08d49950cf3c65d5e7a7b7b00918528cc4 | [
"Apache-2.0"
] | null | null | null | supervisely/train/src/sly_train_results_visualizer.py | supervisely-ecosystem/detectron2 | 3c8f8f08d49950cf3c65d5e7a7b7b00918528cc4 | [
"Apache-2.0"
] | null | null | null | supervisely/train/src/sly_train_results_visualizer.py | supervisely-ecosystem/detectron2 | 3c8f8f08d49950cf3c65d5e7a7b7b00918528cc4 | [
"Apache-2.0"
] | null | null | null | import datetime
import logging
import time
from typing import Optional
from detectron2.utils.events import EventWriter
from supervisely.app.v1.widgets.compare_gallery import CompareGallery
import sly_globals as g
import os
def preview_predictions(gt_image, pred_image):
gallery_preview = CompareGallery(g.task_i... | 34.774194 | 104 | 0.703772 | 472 | 3,234 | 4.504237 | 0.288136 | 0.024459 | 0.032926 | 0.039511 | 0.310442 | 0.277516 | 0.210724 | 0.210724 | 0.210724 | 0.123236 | 0 | 0.01091 | 0.178108 | 3,234 | 92 | 105 | 35.152174 | 0.788563 | 0.091218 | 0 | 0.133333 | 0 | 0 | 0.131741 | 0.067918 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.083333 | false | 0 | 0.133333 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
cfef7e9cdfb6e377e4765c73fb2d357e5e0e590f | 2,240 | py | Python | results-visualizations/runner.py | alepulver/my-thesis | 0f4ddb38d1b7bb61012692631e043f474d3771dc | [
"MIT"
] | null | null | null | results-visualizations/runner.py | alepulver/my-thesis | 0f4ddb38d1b7bb61012692631e043f474d3771dc | [
"MIT"
] | null | null | null | results-visualizations/runner.py | alepulver/my-thesis | 0f4ddb38d1b7bb61012692631e043f474d3771dc | [
"MIT"
] | null | null | null | import os
import sys
import pyx
import argparse
import layouts
import samplers
import data_loader
def main(arguments):
parser = argparse.ArgumentParser(description='Generate clustering visualizations.')
parser.add_argument(
'--tables_dir', dest='tables_dir', default='input/tables',
help='conte... | 32.941176 | 101 | 0.666071 | 275 | 2,240 | 5.265455 | 0.381818 | 0.037293 | 0.070442 | 0.03453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005675 | 0.213393 | 2,240 | 67 | 102 | 33.432836 | 0.816118 | 0 | 0 | 0.105263 | 1 | 0 | 0.273661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.122807 | 0 | 0.175439 | 0.017544 | 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 |
cfefd67aa5aaa205a1f24fc2156c17649f9111af | 2,785 | py | Python | 4/figs/figX7/3d_exp_well_numerical.py | t-young31/thesis | 2dea31ef64f4b7d55b8bdfc2094bab6579a529e0 | [
"MIT"
] | null | null | null | 4/figs/figX7/3d_exp_well_numerical.py | t-young31/thesis | 2dea31ef64f4b7d55b8bdfc2094bab6579a529e0 | [
"MIT"
] | null | null | null | 4/figs/figX7/3d_exp_well_numerical.py | t-young31/thesis | 2dea31ef64f4b7d55b8bdfc2094bab6579a529e0 | [
"MIT"
] | null | null | null | from scipy.integrate import odeint
import matplotlib.pyplot as plt
import numpy as np
def radial(y, r, m, k, a, l, E):
"""
Radial ODE with an exponential well
φ = dψ/dr
dφ/dr = -2φ/r - (2m(E-ke^ar) - (l(l+1)/r^2))ψ
:param y: (np.ndarray) First order ODEs
--------------------- all in atomic... | 24.866071 | 79 | 0.511311 | 436 | 2,785 | 3.206422 | 0.348624 | 0.017167 | 0.038627 | 0.008584 | 0.060801 | 0.02432 | 0.012876 | 0 | 0 | 0 | 0 | 0.206202 | 0.305206 | 2,785 | 111 | 80 | 25.09009 | 0.516279 | 0.303052 | 0 | 0.192308 | 0 | 0 | 0.028322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.057692 | 0 | 0.211538 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 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 |
cff1bab6c09820851c5b67312a68e77afb5d05af | 5,668 | py | Python | main.py | amukanya/blogz | 7a81196723b6f62b88cab5232e86ba114007c801 | [
"MIT"
] | null | null | null | main.py | amukanya/blogz | 7a81196723b6f62b88cab5232e86ba114007c801 | [
"MIT"
] | null | null | null | main.py | amukanya/blogz | 7a81196723b6f62b88cab5232e86ba114007c801 | [
"MIT"
] | null | null | null | from flask import Flask, request, redirect, render_template, session, flash
from flask_sqlalchemy import SQLAlchemy
import cgi
from bcrypt import gensalt, hashpw,checkpw
from app import app, db
from models import Blog, User
@app.route("/login", methods=['GET', 'POST'])
def login():
if request.method == 'GET':
... | 33.94012 | 110 | 0.591037 | 684 | 5,668 | 4.763158 | 0.22076 | 0.055862 | 0.055249 | 0.017188 | 0.28453 | 0.184162 | 0.148557 | 0.148557 | 0.103131 | 0.103131 | 0 | 0.003173 | 0.27717 | 5,668 | 167 | 111 | 33.94012 | 0.792043 | 0.060692 | 0 | 0.269231 | 0 | 0 | 0.168455 | 0.007905 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069231 | false | 0.092308 | 0.046154 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cff37db954781bbd54157719cb274944472158a4 | 276 | py | Python | Practical-3.py | viztushar/PythonPrograms | db950c5a723d25455eb85bfc52b45ecb36d208c5 | [
"Apache-2.0"
] | null | null | null | Practical-3.py | viztushar/PythonPrograms | db950c5a723d25455eb85bfc52b45ecb36d208c5 | [
"Apache-2.0"
] | null | null | null | Practical-3.py | viztushar/PythonPrograms | db950c5a723d25455eb85bfc52b45ecb36d208c5 | [
"Apache-2.0"
] | null | null | null | #WAP to find, a given number is prime or not
num = int(input("enter number"))
if num>1:
#check for factors
for i in range(2,num):
if(num / i) == 0:
print(num," is not prime number")
break
else:
print(num," is not a prime number") | 21.230769 | 45 | 0.565217 | 46 | 276 | 3.391304 | 0.586957 | 0.064103 | 0.128205 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.315217 | 276 | 13 | 46 | 21.230769 | 0.809524 | 0.217391 | 0 | 0 | 0 | 0 | 0.251163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
32086e9491c37e12d5e8ea06a5b2efb00cfc85d6 | 635 | py | Python | client/kblab/result.py | peterk/kblab | 425d8f58dc0081aec2583ed8e8b746fd3e9b32e8 | [
"MIT"
] | 4 | 2020-09-12T21:15:16.000Z | 2021-01-28T12:25:25.000Z | client/kblab/result.py | peterk/kblab | 425d8f58dc0081aec2583ed8e8b746fd3e9b32e8 | [
"MIT"
] | 1 | 2022-01-12T16:18:53.000Z | 2022-01-12T16:18:53.000Z | client/kblab/result.py | peterk/kblab | 425d8f58dc0081aec2583ed8e8b746fd3e9b32e8 | [
"MIT"
] | 2 | 2020-09-12T14:10:47.000Z | 2020-09-21T11:03:11.000Z | import kblab
from typing import NamedTuple
from collections import namedtuple
from collections.abc import Iterator
Hit = namedtuple('Hit', [ 'key', 'package' ])
class Result(NamedTuple):
start: int
n: int
m: int
keys: Iterator
hits: Iterator
def __iter__(self):
return self.keys
def ... | 19.84375 | 74 | 0.625197 | 79 | 635 | 4.898734 | 0.405063 | 0.054264 | 0.103359 | 0.160207 | 0.103359 | 0.103359 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285039 | 635 | 31 | 75 | 20.483871 | 0.852423 | 0 | 0 | 0 | 0 | 0 | 0.020505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.173913 | 0.086957 | 0.652174 | 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 |
3208b58757a89871d4e97393c3db78b2a76d169c | 364 | py | Python | tests/conftest.py | python-odin/odin | 582fab2de6702ebb05624cb0c15299fb27f7b6e1 | [
"BSD-3-Clause"
] | 22 | 2016-07-12T12:46:54.000Z | 2022-01-18T20:48:48.000Z | tests/conftest.py | python-odin/odin | 582fab2de6702ebb05624cb0c15299fb27f7b6e1 | [
"BSD-3-Clause"
] | 86 | 2015-09-27T14:28:55.000Z | 2021-09-06T03:11:33.000Z | tests/conftest.py | python-odin/odin | 582fab2de6702ebb05624cb0c15299fb27f7b6e1 | [
"BSD-3-Clause"
] | 7 | 2015-09-27T14:26:08.000Z | 2021-10-06T22:03:03.000Z | import os
import sys
import datetime
HERE = os.path.abspath(os.path.dirname(__file__))
SRC = os.path.normpath(os.path.join(HERE, "..", "src"))
sys.path.insert(0, SRC)
import odin.datetimeutil
ARE_YOU_EXPERIENCED = datetime.date(1967, 5, 12)
MWT = odin.datetimeutil.FixedTimezone(-6, "Mountain War Time")
BOOM = dateti... | 26 | 62 | 0.725275 | 58 | 364 | 4.448276 | 0.603448 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068323 | 0.115385 | 364 | 13 | 63 | 28 | 0.732919 | 0 | 0 | 0 | 0 | 0 | 0.06044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
32169dac5ed4dc06701c7805b3bcab564138267b | 1,932 | py | Python | noloco/queries.py | noloco-io/python-sdk | 0ae6c8ff026abb60fdd2fc6eaf67f08f786f15a2 | [
"MIT"
] | null | null | null | noloco/queries.py | noloco-io/python-sdk | 0ae6c8ff026abb60fdd2fc6eaf67f08f786f15a2 | [
"MIT"
] | null | null | null | noloco/queries.py | noloco-io/python-sdk | 0ae6c8ff026abb60fdd2fc6eaf67f08f786f15a2 | [
"MIT"
] | null | null | null | from noloco.fields import DataTypeFieldsBuilder
from noloco.utils import build_operation_args
PROJECT_DOCUMENT_QUERY = '''query ($projectId: String!) {
project(projectId: $projectId) {
id
name
apiKeys {
user
project
__typename
}
dataTypes {
id
name
display
... | 19.515152 | 72 | 0.571946 | 172 | 1,932 | 6.005814 | 0.337209 | 0.077444 | 0.037754 | 0.049371 | 0.187803 | 0.133591 | 0.133591 | 0 | 0 | 0 | 0 | 0 | 0.359731 | 1,932 | 98 | 73 | 19.714286 | 0.835085 | 0.010352 | 0 | 0.39759 | 0 | 0 | 0.417277 | 0.015183 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.024096 | false | 0 | 0.024096 | 0 | 0.072289 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
321be1f4fa8822bc99643935ca5b429c24798104 | 667 | py | Python | spactor/predict.py | BishrGhalil/spactor | eee0a5d5a668541549a5bea58a59dfa764fc07d9 | [
"MIT"
] | null | null | null | spactor/predict.py | BishrGhalil/spactor | eee0a5d5a668541549a5bea58a59dfa764fc07d9 | [
"MIT"
] | null | null | null | spactor/predict.py | BishrGhalil/spactor | eee0a5d5a668541549a5bea58a59dfa764fc07d9 | [
"MIT"
] | 1 | 2022-03-14T19:05:15.000Z | 2022-03-14T19:05:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of Spactor, The SMS spam detector.
# License: MIT, see the file "LICENSE" for details.
import pickle
from os import (getcwd, path)
from sys import argv
from sklearn.feature_extraction.text import TfidfVectorizer
def predict(sms, clf_path="/etc/spactor... | 27.791667 | 83 | 0.688156 | 100 | 667 | 4.52 | 0.55 | 0.030973 | 0.061947 | 0.053097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003676 | 0.184408 | 667 | 23 | 84 | 29 | 0.827206 | 0.263868 | 0 | 0 | 0 | 0 | 0.091286 | 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 |
3221e93102134845150b359279579ab431183f2a | 2,761 | py | Python | one_dimensional_optimization/test.py | avdosev/optimization_methods | fc65a983b6a925a6b2a3285ed87a277f03db2bba | [
"MIT"
] | 13 | 2019-10-17T07:46:38.000Z | 2022-03-14T20:11:03.000Z | one_dimensional_optimization/test.py | avdosev/optimization_methods | fc65a983b6a925a6b2a3285ed87a277f03db2bba | [
"MIT"
] | null | null | null | one_dimensional_optimization/test.py | avdosev/optimization_methods | fc65a983b6a925a6b2a3285ed87a277f03db2bba | [
"MIT"
] | 9 | 2019-10-04T09:12:31.000Z | 2021-12-07T17:03:50.000Z | import unittest
import math
def func_1(x):
return 4*x**3 - 8*x**2 - 11*x + 5
def func_2(x):
return x + 3/(x**2)
def func_3(x):
return (x+2.5)/(4-x**2)
def func_4(x):
return -math.sin(x) - (math.sin(3*x)/3)
def func_5(x):
return -2*math.sin(x) - math.sin(2*x) - (2*math.sin(3*x)/3)
arr_of_func =... | 29.688172 | 144 | 0.555958 | 387 | 2,761 | 3.793282 | 0.21447 | 0.023842 | 0.042916 | 0.047003 | 0.527929 | 0.461853 | 0.411444 | 0.386921 | 0.350136 | 0.288828 | 0 | 0.065479 | 0.308584 | 2,761 | 92 | 145 | 30.01087 | 0.70351 | 0.073162 | 0 | 0.289855 | 0 | 0 | 0.070114 | 0.012143 | 0 | 0 | 0 | 0 | 0.028986 | 1 | 0.130435 | false | 0.057971 | 0.086957 | 0.072464 | 0.304348 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5c57456abbcaab7d05aee1e9bf35b1ac81338d5d | 1,843 | py | Python | python/test_KosmoSuite_elmag.py | ProkopHapala/SimpleSimulationEngine | 240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5 | [
"MIT"
] | 26 | 2016-12-04T04:45:12.000Z | 2022-03-24T09:39:28.000Z | python/test_KosmoSuite_elmag.py | Aki78/FlightAI | 9c5480f2392c9c89b9fee4902db0c4cde5323a6c | [
"MIT"
] | null | null | null | python/test_KosmoSuite_elmag.py | Aki78/FlightAI | 9c5480f2392c9c89b9fee4902db0c4cde5323a6c | [
"MIT"
] | 2 | 2019-02-09T12:31:06.000Z | 2019-04-28T02:24:50.000Z | #!/usr/bin/python
from pylab import *
import numpy as np
from pySimE.KosmoSuiteCpp import main as KS
print " =========== sample magnetic field ============="
n = 100
ps = zeros((n,3))
dIs = zeros((n,3))
m = 100
wheres = zeros((m,3))
Bs = zeros((m,3))
R = 1.0
dl = 2*pi*R/n;
I = 1.0e+6;
#phis = linspace( 0,... | 20.943182 | 101 | 0.52306 | 332 | 1,843 | 2.855422 | 0.301205 | 0.018987 | 0.012658 | 0.041139 | 0.139241 | 0.109705 | 0.075949 | 0.040084 | 0 | 0 | 0 | 0.127083 | 0.218665 | 1,843 | 87 | 102 | 21.183908 | 0.53125 | 0.181226 | 0 | 0.037037 | 0 | 0 | 0.083556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5c579915126ba32f601f6f22e5de095cdab21725 | 1,219 | py | Python | Lib/site-packages/optional_django/conf.py | srimannaarayana/boxtestpy | 181332102ccbb49dd50ddb31ca875cb9d3adcc2d | [
"bzip2-1.0.6"
] | 1 | 2021-06-07T17:07:58.000Z | 2021-06-07T17:07:58.000Z | Lib/site-packages/optional_django/conf.py | srimannaarayana/boxtestpy | 181332102ccbb49dd50ddb31ca875cb9d3adcc2d | [
"bzip2-1.0.6"
] | 1 | 2018-08-30T21:35:33.000Z | 2018-08-30T21:35:33.000Z | Lib/site-packages/optional_django/conf.py | srimannaarayana/boxtestpy | 181332102ccbb49dd50ddb31ca875cb9d3adcc2d | [
"bzip2-1.0.6"
] | 1 | 2018-08-20T16:55:05.000Z | 2018-08-20T16:55:05.000Z | from .exceptions import ConfigurationError
from .env import DJANGO_CONFIGURED, DJANGO_SETTINGS
class Conf(object):
_namespace = None
_settings = None
_has_been_configured = False
_configured_from_env = False
def __init__(self, namespace, settings):
self._namespace = namespace
self... | 32.078947 | 104 | 0.664479 | 132 | 1,219 | 5.848485 | 0.280303 | 0.093264 | 0.066062 | 0.054404 | 0.067358 | 0.067358 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258409 | 1,219 | 37 | 105 | 32.945946 | 0.853982 | 0 | 0 | 0.066667 | 0 | 0 | 0.054963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.066667 | 0.033333 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5c5a96901f94ae27111c0853cd5900310e47414f | 653 | py | Python | cpdb/data/migrations/0089_attachmentfile_change_unique_together.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 25 | 2018-07-20T22:31:40.000Z | 2021-07-15T16:58:41.000Z | cpdb/data/migrations/0089_attachmentfile_change_unique_together.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 13 | 2018-06-18T23:08:47.000Z | 2022-02-10T07:38:25.000Z | cpdb/data/migrations/0089_attachmentfile_change_unique_together.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 6 | 2018-05-17T21:59:43.000Z | 2020-11-17T00:30:26.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-11-02 07:58
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('data', '0088_attachmentfile_correct_data'),
]
operations = [
migrations.Alt... | 26.12 | 80 | 0.623277 | 66 | 653 | 5.939394 | 0.742424 | 0.091837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049383 | 0.255743 | 653 | 24 | 81 | 27.208333 | 0.757202 | 0.104135 | 0 | 0.117647 | 1 | 0 | 0.183849 | 0.054983 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c5e3bf7f3113db6ce9c5ff1e0d7e830452948de | 265 | py | Python | src/brewlog/utils/app.py | zgoda/brewlog | 13a930b328f81d01a2be9aca07d3b14703b80faa | [
"BSD-3-Clause"
] | 3 | 2019-03-11T04:30:06.000Z | 2020-01-26T03:21:52.000Z | src/brewlog/utils/app.py | zgoda/brewlog | 13a930b328f81d01a2be9aca07d3b14703b80faa | [
"BSD-3-Clause"
] | 23 | 2019-02-06T20:37:37.000Z | 2020-06-01T07:08:35.000Z | src/brewlog/utils/app.py | zgoda/brewlog | 13a930b328f81d01a2be9aca07d3b14703b80faa | [
"BSD-3-Clause"
] | null | null | null | from flask import Flask
class Brewlog(Flask):
@property
def jinja_options(self):
options = dict(super().jinja_options)
options.update({
'trim_blocks': True,
'lstrip_blocks': True,
})
return options
| 18.928571 | 45 | 0.573585 | 27 | 265 | 5.481481 | 0.666667 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.328302 | 265 | 13 | 46 | 20.384615 | 0.831461 | 0 | 0 | 0 | 0 | 0 | 0.090566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c61a3562e68b3ef088f29f823a89dad0f6a4dd5 | 3,294 | py | Python | mods/NERO/teams.py | LeRoi46/opennero | 43e12a1bcba6e228639db3886fec1dc47ddc24cb | [
"BSD-3-Clause"
] | 215 | 2015-08-26T19:41:28.000Z | 2022-01-19T13:23:17.000Z | mods/NERO/teams.py | ikarpov/opennero | 43e12a1bcba6e228639db3886fec1dc47ddc24cb | [
"BSD-3-Clause"
] | 6 | 2015-11-03T19:40:24.000Z | 2019-10-15T11:19:32.000Z | mods/NERO/teams.py | ikarpov/opennero | 43e12a1bcba6e228639db3886fec1dc47ddc24cb | [
"BSD-3-Clause"
] | 56 | 2015-08-26T19:42:05.000Z | 2022-02-26T16:45:41.000Z | import json
import constants
import OpenNero
import agent as agents
def factory(ai, *args):
cls = ai_map.get(ai, NeroTeam)
return cls(*args)
class TeamEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, NeroTeam):
return {
'team_ai': inv_ai_map.get(ob... | 27 | 67 | 0.569824 | 413 | 3,294 | 4.353511 | 0.230024 | 0.048943 | 0.046719 | 0.026696 | 0.161847 | 0.083426 | 0.083426 | 0.048943 | 0.048943 | 0.048943 | 0 | 0.002234 | 0.320583 | 3,294 | 121 | 68 | 27.223141 | 0.801162 | 0.021251 | 0 | 0.206522 | 0 | 0 | 0.034913 | 0.00717 | 0 | 0 | 0 | 0.008264 | 0 | 1 | 0.228261 | false | 0.032609 | 0.043478 | 0.032609 | 0.402174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5c61f9c7e8735133ec1719fc929242500d097b4f | 2,659 | py | Python | LSTM/lstm.py | Sakshi-0311/clarifAI | 5e9ef3a0922a8d213c3c7589db9a6885cf2f1d83 | [
"MIT"
] | 6 | 2021-02-16T06:00:37.000Z | 2021-05-23T03:57:35.000Z | LSTM/lstm.py | Sakshi-0311/clarifAI | 5e9ef3a0922a8d213c3c7589db9a6885cf2f1d83 | [
"MIT"
] | 1 | 2021-05-17T05:21:41.000Z | 2021-06-13T10:24:56.000Z | LSTM/lstm.py | Sakshi-0311/clarifAI | 5e9ef3a0922a8d213c3c7589db9a6885cf2f1d83 | [
"MIT"
] | 4 | 2021-03-13T15:37:38.000Z | 2021-08-12T03:56:09.000Z | # -*- coding: utf-8 -*-
"""lstm.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1YtsBEgYSZVgE9UPbH3jyHLd2IdfKkhOu
"""
from keras.preprocessing.text import Tokenizer
import nltk
from nltk.tokenize import word_tokenize
import numpy as np
import re
... | 28.902174 | 86 | 0.763069 | 385 | 2,659 | 5.109091 | 0.361039 | 0.032028 | 0.012201 | 0.016777 | 0.082359 | 0.044738 | 0.044738 | 0.044738 | 0 | 0 | 0 | 0.013479 | 0.107183 | 2,659 | 91 | 87 | 29.21978 | 0.81508 | 0.114705 | 0 | 0.0625 | 1 | 0 | 0.064103 | 0.019231 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.234375 | 0 | 0.234375 | 0.046875 | 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 |
5c6b60779dfa74eaee2e337805c9ad5157ce4208 | 235 | py | Python | src/data processing - clinical notes and structured data/step4_combine_after_negex.py | arjun-parthi/SSRI-Project | 62f610a594e5849ccf0f3c25cd6adcd63888ec2a | [
"MIT"
] | 2 | 2019-02-12T00:37:37.000Z | 2021-03-25T05:40:06.000Z | src/data processing - clinical notes and structured data/step4_combine_after_negex.py | arjun-parthi/SSRI-Project | 62f610a594e5849ccf0f3c25cd6adcd63888ec2a | [
"MIT"
] | null | null | null | src/data processing - clinical notes and structured data/step4_combine_after_negex.py | arjun-parthi/SSRI-Project | 62f610a594e5849ccf0f3c25cd6adcd63888ec2a | [
"MIT"
] | 1 | 2021-03-25T05:40:17.000Z | 2021-03-25T05:40:17.000Z | import shutil
filenames = ['negex_combined.txt','ts_negex_357072.txt']
with open('out/negex_all.txt','wb') as wfd:
for f in filenames:
with open('output/{0}'.format(f),'rb') as fd:
shutil.copyfileobj(fd, wfd)
| 26.111111 | 56 | 0.642553 | 36 | 235 | 4.083333 | 0.666667 | 0.108844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036842 | 0.191489 | 235 | 8 | 57 | 29.375 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0.290598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5c79d353daa1f8a4feb8ecfea670be116ee20ee4 | 1,666 | py | Python | src/onegov/fsi/models/course.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/fsi/models/course.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/fsi/models/course.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | from arrow import utcnow
from onegov.core.html import html_to_text
from onegov.core.orm import Base
from onegov.core.orm.types import UUID
from onegov.search import ORMSearchable
from sqlalchemy import Column, Text, Boolean, Integer
from sqlalchemy.ext.hybrid import hybrid_property
from uuid import uuid4
class Course... | 27.311475 | 74 | 0.672869 | 205 | 1,666 | 5.380488 | 0.42439 | 0.045331 | 0.038078 | 0.030825 | 0.068903 | 0.068903 | 0 | 0 | 0 | 0 | 0 | 0.006324 | 0.240696 | 1,666 | 60 | 75 | 27.766667 | 0.863241 | 0.133854 | 0 | 0.076923 | 0 | 0 | 0.037615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.230769 | 0.025641 | 0.717949 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5c7d856f62282e8cb7e892ed16c0093217bdea9f | 740 | py | Python | lintcode/0466-count-linked-list-nodes.py | runzezhang/Data-Structure-and-Algorithm-Notebook | 15a94d7df2ac1d2ad081004d61433324654085e5 | [
"Apache-2.0"
] | 1 | 2020-07-24T03:37:05.000Z | 2020-07-24T03:37:05.000Z | lintcode/0466-count-linked-list-nodes.py | runzezhang/Code-NoteBook | 15a94d7df2ac1d2ad081004d61433324654085e5 | [
"Apache-2.0"
] | null | null | null | lintcode/0466-count-linked-list-nodes.py | runzezhang/Code-NoteBook | 15a94d7df2ac1d2ad081004d61433324654085e5 | [
"Apache-2.0"
] | null | null | null | # Description
# Count how many nodes in a linked list.
# Example
# Example 1:
# Input: 1->3->5->null
# Output: 3
# Explanation:
# return the length of the list.
# Example 2:
# Input: null
# Output: 0
# Explanation:
# return the length of list.
"""
Definition of ListNode
class ListNode(object):
def... | 19.473684 | 47 | 0.585135 | 92 | 740 | 4.663043 | 0.521739 | 0.04662 | 0.09324 | 0.121212 | 0.130536 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017717 | 0.313514 | 740 | 38 | 48 | 19.473684 | 0.826772 | 0.608108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c7de8ef4385e5bd6cefb8c48a79592aad5ebab4 | 2,799 | py | Python | apt-sync/tunasync/apt-sync.py | taoky/ustcmirror-images | 2203353a475fcfed73600b2111c075be29804816 | [
"MIT"
] | null | null | null | apt-sync/tunasync/apt-sync.py | taoky/ustcmirror-images | 2203353a475fcfed73600b2111c075be29804816 | [
"MIT"
] | null | null | null | apt-sync/tunasync/apt-sync.py | taoky/ustcmirror-images | 2203353a475fcfed73600b2111c075be29804816 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import hashlib
import traceback
import json
import os
import re
import shutil
import subprocess as sp
import tempfile
import argparse
from pathlib import Path
from typing import List
OS_TEMPLATE = {
'ubuntu-current': ["trusty", "xenial", "bionic", "eoan"],
'ubuntu-lts': ["trusty", "xenia... | 31.449438 | 79 | 0.60736 | 364 | 2,799 | 4.483516 | 0.348901 | 0.04902 | 0.0625 | 0.022059 | 0.052083 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00575 | 0.254377 | 2,799 | 88 | 80 | 31.806818 | 0.776234 | 0.015363 | 0 | 0 | 0 | 0 | 0.162368 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.040541 | false | 0.013514 | 0.148649 | 0 | 0.202703 | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.