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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8574c69e4c8b6764f696eaf112a89b912eff58d1 | 1,747 | py | Python | Examples/delay/chorus.py | apohl79/AudioTK | 05ac241b0bc6a8f841d93257b4d81e5961b1f627 | [
"BSD-3-Clause"
] | 10 | 2018-05-17T15:29:05.000Z | 2021-12-19T22:26:08.000Z | Examples/delay/chorus.py | apohl79/AudioTK | 05ac241b0bc6a8f841d93257b4d81e5961b1f627 | [
"BSD-3-Clause"
] | null | null | null | Examples/delay/chorus.py | apohl79/AudioTK | 05ac241b0bc6a8f841d93257b4d81e5961b1f627 | [
"BSD-3-Clause"
] | 2 | 2020-04-21T13:43:57.000Z | 2020-04-28T19:10:14.000Z | #!/usr/bin/env python
from ATK.Core import DoubleInPointerFilter, DoubleOutPointerFilter
from ATK.Delay import DoubleUniversalVariableDelayLineFilter
from ATK.EQ import DoubleSecondOrderLowPassFilter
from ATK.Tools import DoubleWhiteNoiseGeneratorFilter
import matplotlib.pyplot as plt
sample_rate = 96000
def filter... | 32.351852 | 68 | 0.788208 | 220 | 1,747 | 6.045455 | 0.340909 | 0.067669 | 0.06015 | 0.075188 | 0.129323 | 0.129323 | 0.061654 | 0 | 0 | 0 | 0 | 0.032489 | 0.119061 | 1,747 | 53 | 69 | 32.962264 | 0.831709 | 0.011448 | 0 | 0.051282 | 0 | 0 | 0.015643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.051282 | 0.179487 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8577e9dc334e52117955e76c2f86a26336e777f0 | 638 | py | Python | setup.py | ResidentMario/datafy | dbc0d193a8c597bc784433ef04935e13856a6666 | [
"MIT"
] | null | null | null | setup.py | ResidentMario/datafy | dbc0d193a8c597bc784433ef04935e13856a6666 | [
"MIT"
] | 2 | 2017-05-29T16:23:25.000Z | 2017-05-29T16:26:58.000Z | setup.py | ResidentMario/datafy | dbc0d193a8c597bc784433ef04935e13856a6666 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name = 'datafy',
packages = ['datafy'], # this must be the same as the name above
install_requires=['requests', 'requests-file', 'python-magic'],
py_modules=['datafy'],
version = '0.1.0',
description = 'Read download URLs into datasets.',
author = 'Aleksey... | 42.533333 | 106 | 0.664577 | 75 | 638 | 5.6 | 0.653333 | 0.009524 | 0.014286 | 0.080952 | 0.171429 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.172414 | 638 | 15 | 107 | 42.533333 | 0.784091 | 0.061129 | 0 | 0 | 0 | 0 | 0.479933 | 0.041806 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
857a2f605caf2a5e16ac6796ff5f207150a29cc6 | 3,413 | py | Python | seo_position_tracker/seo_position_tracker.py | dimitryzub/seo-position-tracker | e129c511524d66cc712fc53b882a95f11483160e | [
"MIT"
] | 1 | 2021-11-22T07:53:45.000Z | 2021-11-22T07:53:45.000Z | seo_position_tracker/seo_position_tracker.py | dimitryzub/seo-position-tracker | e129c511524d66cc712fc53b882a95f11483160e | [
"MIT"
] | null | null | null | seo_position_tracker/seo_position_tracker.py | dimitryzub/seo-position-tracker | e129c511524d66cc712fc53b882a95f11483160e | [
"MIT"
] | 2 | 2022-01-07T21:32:38.000Z | 2022-03-13T04:49:31.000Z | import requests, lxml
from bs4 import BeautifulSoup
# TODO: add list of countries Google domain as an optional argument: "google.br/google.uk/google.au", etc.
# TODO: add corresponding language ("hl" param) to defined Google domain. Example: if google.br -> hl:es (spanish)
# TODO: loop through all domains with appropr... | 38.784091 | 143 | 0.607677 | 422 | 3,413 | 4.78673 | 0.310427 | 0.069307 | 0.075743 | 0.075248 | 0.554455 | 0.554455 | 0.554455 | 0.518812 | 0.518812 | 0.472277 | 0 | 0.031842 | 0.273074 | 3,413 | 87 | 144 | 39.229885 | 0.782346 | 0.108409 | 0 | 0.508475 | 0 | 0.033898 | 0.187294 | 0.006912 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.050847 | false | 0 | 0.033898 | 0 | 0.135593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
857eed5f665c98a28bae6c6074977958d9b6c182 | 1,691 | py | Python | src/modules/WeatherBot/__init__.py | Icaro-G-Silva/Bot-Suite | d18e17ea0432524c71f83db7c83603eb88c0c3cd | [
"MIT"
] | null | null | null | src/modules/WeatherBot/__init__.py | Icaro-G-Silva/Bot-Suite | d18e17ea0432524c71f83db7c83603eb88c0c3cd | [
"MIT"
] | null | null | null | src/modules/WeatherBot/__init__.py | Icaro-G-Silva/Bot-Suite | d18e17ea0432524c71f83db7c83603eb88c0c3cd | [
"MIT"
] | null | null | null | from .emailBot import MailBot
from .weatherBot import WheaterBot
from .utils import generateEmail
from datetime import datetime
from .validations import EmailValidation
from time import sleep
valid = EmailValidation()
class ForecastBot:
def __init__(self, cityCoords = ['-22.739651', '-47.174052'], mai... | 35.978723 | 111 | 0.596688 | 177 | 1,691 | 5.677966 | 0.412429 | 0.087562 | 0.044776 | 0.025871 | 0.035821 | 0.035821 | 0 | 0 | 0 | 0 | 0 | 0.042798 | 0.28149 | 1,691 | 46 | 112 | 36.76087 | 0.784362 | 0 | 0 | 0 | 1 | 0 | 0.179939 | 0.07538 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.275 | 0.125 | 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 |
8581297b171539d77109916e41c6ec1f27e95763 | 284 | py | Python | docs/user_gee_datasets_jsontocsv.py | elbeejay/rabpro | e18cc36cc2d4eff9281737d458e4d824200071ba | [
"BSD-3-Clause"
] | 6 | 2022-01-28T15:42:20.000Z | 2022-03-29T18:17:03.000Z | docs/user_gee_datasets_jsontocsv.py | elbeejay/rabpro | e18cc36cc2d4eff9281737d458e4d824200071ba | [
"BSD-3-Clause"
] | 45 | 2021-08-09T17:00:59.000Z | 2022-01-07T18:42:41.000Z | docs/user_gee_datasets_jsontocsv.py | elbeejay/rabpro | e18cc36cc2d4eff9281737d458e4d824200071ba | [
"BSD-3-Clause"
] | 4 | 2021-08-09T19:28:53.000Z | 2021-12-17T21:21:51.000Z | from email import header
import pandas as pd
dt = pd.read_json("Data/user_gee_datasets.json")
dt = dt[["name", "id"]]
res = "`" + dt.name + " <https://code.earthengine.google.com/?asset=" + dt.id + ">`_"
res.to_csv("docs/source/user_gee_datasets.csv", index=False, header=False)
| 23.666667 | 85 | 0.679577 | 45 | 284 | 4.133333 | 0.644444 | 0.075269 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123239 | 284 | 11 | 86 | 25.818182 | 0.746988 | 0 | 0 | 0 | 0 | 0 | 0.40636 | 0.212014 | 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 |
858558b928ee9ff90da802b0d598d16476bd006c | 8,378 | py | Python | proudcatowner/client.py | Dx-Gamer/proudcatowner | c2f6f220206e914654ab2cf7a3550216a2d86c93 | [
"MIT"
] | null | null | null | proudcatowner/client.py | Dx-Gamer/proudcatowner | c2f6f220206e914654ab2cf7a3550216a2d86c93 | [
"MIT"
] | null | null | null | proudcatowner/client.py | Dx-Gamer/proudcatowner | c2f6f220206e914654ab2cf7a3550216a2d86c93 | [
"MIT"
] | null | null | null | # coding = utf-8
import json
import time
from time import time as timestamp
from bs4 import BeautifulSoup
import requests
import secmail
from .helpers import constants, failed, log, print_banner, save
from . import entities, exceptions
from .device import get_device_id
from .headers import get_api_headers
... | 38.967442 | 133 | 0.594414 | 973 | 8,378 | 4.965057 | 0.201439 | 0.040985 | 0.017388 | 0.031463 | 0.296005 | 0.276961 | 0.175947 | 0.163527 | 0.145519 | 0.104119 | 0 | 0.010369 | 0.297804 | 8,378 | 214 | 134 | 39.149533 | 0.810471 | 0.001671 | 0 | 0.194444 | 0 | 0 | 0.114889 | 0.038419 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0.122222 | 0.066667 | 0.011111 | 0.238889 | 0.072222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
858a37d0c85cb1b33903e07e1285819ff6b9f472 | 5,174 | py | Python | hippy/module/standard/misc/funcs.py | jweinraub/hippyvm | 09c7643aaa1c4ade566e8681abd2543f12bf874c | [
"MIT"
] | 289 | 2015-01-01T15:36:55.000Z | 2022-03-27T00:22:27.000Z | hippy/module/standard/misc/funcs.py | jweinraub/hippyvm | 09c7643aaa1c4ade566e8681abd2543f12bf874c | [
"MIT"
] | 26 | 2015-01-21T16:34:41.000Z | 2020-08-26T15:12:54.000Z | hippy/module/standard/misc/funcs.py | jweinraub/hippyvm | 09c7643aaa1c4ade566e8681abd2543f12bf874c | [
"MIT"
] | 35 | 2015-01-05T12:09:41.000Z | 2022-03-16T09:30:16.000Z | from rpython.rlib.rstring import StringBuilder
from rpython.rtyper.lltypesystem import lltype, rffi
from rpython.rlib.rarithmetic import intmask
from rpython.rlib.rrandom import Random
from hippy.builtin import wrap, Optional, BoolArg, StringArg
from hippy.objects.base import W_Root
from hippy.module.date import timeli... | 26.80829 | 90 | 0.68535 | 651 | 5,174 | 5.345622 | 0.325653 | 0.122126 | 0.128736 | 0.025862 | 0.059483 | 0.039655 | 0.039655 | 0.039655 | 0.039655 | 0.039655 | 0 | 0.006028 | 0.198492 | 5,174 | 192 | 91 | 26.947917 | 0.833132 | 0.186703 | 0 | 0.218182 | 0 | 0 | 0.058838 | 0 | 0 | 0 | 0 | 0.005208 | 0 | 1 | 0.236364 | false | 0 | 0.1 | 0 | 0.618182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8591e0141826901b23149437ff4ebdf3cb662a0e | 459 | py | Python | pet/migrations/0007_auto_20171127_1626.py | tailongnguyen/petsite | 6192e6fe598397a94880b4e56b197f5b2f518abb | [
"MIT"
] | 2 | 2017-10-27T11:23:42.000Z | 2018-03-28T01:49:57.000Z | pet/migrations/0007_auto_20171127_1626.py | tailongnguyen/petsite | 6192e6fe598397a94880b4e56b197f5b2f518abb | [
"MIT"
] | null | null | null | pet/migrations/0007_auto_20171127_1626.py | tailongnguyen/petsite | 6192e6fe598397a94880b4e56b197f5b2f518abb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-11-27 09:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pet', '0006_auto_20171127_1157'),
]
operations = [
migrations.AlterField(
... | 21.857143 | 64 | 0.616558 | 52 | 459 | 5.25 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106509 | 0.263617 | 459 | 20 | 65 | 22.95 | 0.701183 | 0.148148 | 0 | 0 | 1 | 0 | 0.092784 | 0.059278 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8593bd1468321dc6a5652b9fa9c2a1dc5eade058 | 8,925 | py | Python | SongListGenerator/generator.py | gmcrist/KaraokeTools | 0d63a923a155c7ba6d323608e861826af81e4ea3 | [
"MIT"
] | null | null | null | SongListGenerator/generator.py | gmcrist/KaraokeTools | 0d63a923a155c7ba6d323608e861826af81e4ea3 | [
"MIT"
] | null | null | null | SongListGenerator/generator.py | gmcrist/KaraokeTools | 0d63a923a155c7ba6d323608e861826af81e4ea3 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
TEXT_ENCODING = 'utf8'
# General libraries
import argparse, fnmatch, os
from sets import Set
# Mutagen (for processing MP3 files)
from mutagen.mp3 import MP3
from mutagen.easyid3 import EasyID3
# Reportlab (for generating the PDF song list)
from reportlab.platypus imp... | 31.761566 | 152 | 0.540616 | 883 | 8,925 | 5.428086 | 0.271801 | 0.006676 | 0.013144 | 0.012518 | 0.204882 | 0.17004 | 0.166076 | 0.165658 | 0.150219 | 0.140622 | 0 | 0.034862 | 0.347563 | 8,925 | 280 | 153 | 31.875 | 0.788253 | 0.073613 | 0 | 0.269841 | 0 | 0 | 0.087373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
859680110db4f2e855f8c93dce288ec7025d6a45 | 2,153 | py | Python | jaxgp/jaxgp.py | sidneymau/jaxgp | 59c534d0ad645e1d8d5c212202949e00f952e7aa | [
"MIT"
] | null | null | null | jaxgp/jaxgp.py | sidneymau/jaxgp | 59c534d0ad645e1d8d5c212202949e00f952e7aa | [
"MIT"
] | null | null | null | jaxgp/jaxgp.py | sidneymau/jaxgp | 59c534d0ad645e1d8d5c212202949e00f952e7aa | [
"MIT"
] | null | null | null | """Gaussian process regression using JAX.
"""
import jax
import jax.numpy as np
import kernels
#-------------------------------------------------------------------------------
def mu_post(xs, xs_train, ys_train, kernel, hparams):
"""
Posterior mean conditioned on xs.
Note: a numerical jitter term of 1e-... | 36.491525 | 81 | 0.610776 | 312 | 2,153 | 4.012821 | 0.282051 | 0.117412 | 0.043131 | 0.091054 | 0.599042 | 0.50639 | 0.50639 | 0.404153 | 0.376198 | 0.376198 | 0 | 0.021225 | 0.234092 | 2,153 | 58 | 82 | 37.12069 | 0.738023 | 0.205295 | 0 | 0.216216 | 0 | 0 | 0.012628 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.054054 | false | 0 | 0.162162 | 0 | 0.27027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
859cecdd3d2e0052fc8a3cc188a23d320207559c | 6,369 | py | Python | src/Audio Matrix/3x3_Matrix_Simple/3x3matrix.py | shreyanshsajal/midi-band | 89382ad23e4f15cb6aa6d13686d1f16a64ffcac3 | [
"MIT"
] | 3 | 2017-01-12T12:08:13.000Z | 2020-07-19T18:07:24.000Z | src/Audio Matrix/3x3_Matrix_Simple/3x3matrix.py | shreyanshsajal/midi-band | 89382ad23e4f15cb6aa6d13686d1f16a64ffcac3 | [
"MIT"
] | null | null | null | src/Audio Matrix/3x3_Matrix_Simple/3x3matrix.py | shreyanshsajal/midi-band | 89382ad23e4f15cb6aa6d13686d1f16a64ffcac3 | [
"MIT"
] | 9 | 2016-10-11T16:34:35.000Z | 2017-10-06T11:41:57.000Z | from sys import argv #to use command line arguments
import serial #to read COM port using python
import pyaudio #to record and play audio
import wave #to read or write .wav files
import sys
import time
from array import array
from struct import pack
from sys import byteorder
import copy
com_port=argv[1]
pr... | 35.983051 | 143 | 0.512796 | 761 | 6,369 | 4.152431 | 0.289093 | 0.039873 | 0.006646 | 0.007595 | 0.101899 | 0.079747 | 0.034494 | 0.034494 | 0.031646 | 0.031646 | 0 | 0.025483 | 0.390014 | 6,369 | 176 | 144 | 36.1875 | 0.787902 | 0.087769 | 0 | 0.129496 | 0 | 0 | 0.065067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071942 | null | null | 0.05036 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
85a09ea34f8f920ea341228bd5f1115dfdddb98f | 10,248 | py | Python | CAP_Exam/evolve_cloud.py | rywjhzd/Computational-Astrophysics | 5d8988c3570821f0754acfb6500188941d60f1b8 | [
"MIT"
] | null | null | null | CAP_Exam/evolve_cloud.py | rywjhzd/Computational-Astrophysics | 5d8988c3570821f0754acfb6500188941d60f1b8 | [
"MIT"
] | null | null | null | CAP_Exam/evolve_cloud.py | rywjhzd/Computational-Astrophysics | 5d8988c3570821f0754acfb6500188941d60f1b8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 7 11:40:11 2019
@author: rywang
"""
import numpy as np
from amuse.units import units
from amuse.units import quantities
from amuse.units import constants
from amuse.units import nbody_system
from amuse.ext.bridge import bridge
from amuse.community... | 32.846154 | 83 | 0.61251 | 1,316 | 10,248 | 4.588906 | 0.237842 | 0.019374 | 0.03643 | 0.013247 | 0.274549 | 0.239444 | 0.205663 | 0.176188 | 0.132803 | 0.108627 | 0 | 0.027952 | 0.270394 | 10,248 | 311 | 84 | 32.951768 | 0.779724 | 0.004196 | 0 | 0.162602 | 0 | 0 | 0.041605 | 0.00207 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073171 | null | null | 0.060976 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
85a346612e6a46e212dea6552a53ef04c9fe8630 | 1,725 | py | Python | RoboticsCV/ComputerVision/feature_matching.py | FinneganHunter/RoboticsCV | 443fcf914770ed6c18d6a0c41b287e265ae30763 | [
"MIT"
] | null | null | null | RoboticsCV/ComputerVision/feature_matching.py | FinneganHunter/RoboticsCV | 443fcf914770ed6c18d6a0c41b287e265ae30763 | [
"MIT"
] | null | null | null | RoboticsCV/ComputerVision/feature_matching.py | FinneganHunter/RoboticsCV | 443fcf914770ed6c18d6a0c41b287e265ae30763 | [
"MIT"
] | null | null | null | # TODO: Check to see if feature matching works on different sizes of images, or just exactly match the template
import cv2 as cv
import numpy as np
cap = cv.VideoCapture(1)
def feature_match(frame_tf: bool): # show frame of the function internal video feed with a rectangle to show matches
ret, tb_matched_rgb... | 37.5 | 120 | 0.683478 | 265 | 1,725 | 4.335849 | 0.475472 | 0.05483 | 0.052219 | 0.024369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016296 | 0.217391 | 1,725 | 45 | 121 | 38.333333 | 0.834815 | 0.492174 | 0 | 0 | 0 | 0 | 0.051103 | 0.04065 | 0 | 0 | 0.004646 | 0.022222 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.190476 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
85a67545c094b113fa930fc34733b6e49b46d025 | 1,917 | py | Python | lintcode/600.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:49.000Z | 2021-01-08T06:57:49.000Z | lintcode/600.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | null | null | null | lintcode/600.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:52.000Z | 2021-01-08T06:57:52.000Z | """
600. Smallest Rectangle Enclosing Black Pixels
https://www.lintcode.com/problem/smallest-rectangle-enclosing-black-pixels/description
九章算法课上的方法
"""
class Solution:
"""
@param image: a binary matrix with '0' and '1'
@param x: the location of one of the black pixels
@param y: the location of one of t... | 29.953125 | 86 | 0.541471 | 257 | 1,917 | 3.945525 | 0.272374 | 0.071006 | 0.063116 | 0.063116 | 0.459566 | 0.25641 | 0.203156 | 0.203156 | 0.140039 | 0.140039 | 0 | 0.016963 | 0.354199 | 1,917 | 63 | 87 | 30.428571 | 0.8021 | 0.173187 | 0 | 0.545455 | 0 | 0 | 0.001291 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.113636 | false | 0 | 0 | 0 | 0.363636 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
85b0b397bb401b09c2312915c5a88458b41bbc7d | 3,053 | py | Python | Brain/codes_raw/representations_data.py | ujjwalll/get-that-flair | 345cf7bfa98fe5e5c137a5c84a85e9fd5835fbc4 | [
"MIT"
] | 1 | 2020-04-09T16:35:56.000Z | 2020-04-09T16:35:56.000Z | Brain/codes_raw/representations_data.py | ujjwalll/get-that-flair | 345cf7bfa98fe5e5c137a5c84a85e9fd5835fbc4 | [
"MIT"
] | 2 | 2021-03-31T19:51:24.000Z | 2021-06-10T23:05:09.000Z | Brain/codes_raw/representations_data.py | ujjwalll/get-that-flair | 345cf7bfa98fe5e5c137a5c84a85e9fd5835fbc4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Representations_data.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1dWB36Aj3SbtJbZSXfn9A_M63SJYJu7R3
"""
import pandas as pd
pd.options.mode.chained_assignment = None
import numpy as np
import re
import nltk
nltk.dow... | 25.872881 | 94 | 0.645922 | 418 | 3,053 | 4.636364 | 0.4689 | 0.013932 | 0.020124 | 0.016512 | 0.134159 | 0.0516 | 0.0516 | 0.0516 | 0.0516 | 0.0516 | 0 | 0.02381 | 0.22961 | 3,053 | 118 | 95 | 25.872881 | 0.80017 | 0.171962 | 0 | 0.148148 | 1 | 0 | 0.151757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049383 | false | 0 | 0.148148 | 0 | 0.234568 | 0 | 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 |
85b2897d100eb71890832387e1e17276dd9cf8da | 1,456 | py | Python | lib/states/state.py | dmatthewsbnd251/Inventory_Manager | 148ff7734141a80c960fb02b1171363e5c82169b | [
"Unlicense",
"MIT"
] | null | null | null | lib/states/state.py | dmatthewsbnd251/Inventory_Manager | 148ff7734141a80c960fb02b1171363e5c82169b | [
"Unlicense",
"MIT"
] | null | null | null | lib/states/state.py | dmatthewsbnd251/Inventory_Manager | 148ff7734141a80c960fb02b1171363e5c82169b | [
"Unlicense",
"MIT"
] | null | null | null | """State: Abstract class that
defines the desired state of inventory in a target system"""
class State(object):
def __init__(self):
self.logger = None
self.verify_connectivity()
def verify_connectivity(self):
raise NotImplementedError
def set_logger(self):
raise NotImplem... | 34.666667 | 70 | 0.686126 | 183 | 1,456 | 5.306011 | 0.31694 | 0.148301 | 0.123584 | 0.135942 | 0.507724 | 0.507724 | 0.454171 | 0.454171 | 0.454171 | 0.378991 | 0 | 0 | 0.243819 | 1,456 | 42 | 71 | 34.666667 | 0.881926 | 0.324176 | 0 | 0.363636 | 0 | 0 | 0.133765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.409091 | false | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a40dbd4ca5d1bbb2396c0a44766795a07c519b24 | 366 | py | Python | basic_filter.py | luogantt/pyspark-examples | 78ab0205a4d29e4ada2396c62a7bc10f008faa22 | [
"MIT"
] | 17 | 2017-07-11T07:34:31.000Z | 2021-09-17T11:07:06.000Z | basic_filter.py | kourouklides/pyspark | 726c86d2cd4107336885f3da47cadab7aded228c | [
"MIT"
] | null | null | null | basic_filter.py | kourouklides/pyspark | 726c86d2cd4107336885f3da47cadab7aded228c | [
"MIT"
] | 7 | 2017-08-23T20:30:27.000Z | 2018-08-08T21:52:57.000Z | '''
>>> print res
[4, 16, 36, 64]
'''
from pyspark import SparkContext
def even_squares(num):
return num.filter(lambda x: x % 2 == 0).map(lambda x: x * x)
if __name__ == "__main__":
sc = SparkContext('local', 'word_count')
nums = sc.parallelize([1, 2, 3, 4, 5, 6, 7, 8])
res = sorted(ev... | 20.333333 | 64 | 0.576503 | 54 | 366 | 3.703704 | 0.703704 | 0.03 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062044 | 0.251366 | 366 | 18 | 65 | 20.333333 | 0.667883 | 0 | 0 | 0 | 0 | 0 | 0.070769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a417cd06f82f2f7b094867e7ee9e34554f7a441a | 1,110 | py | Python | .ls/forms.py | millerthegorilla/django_users_app | f63c5bdcdd9700366099bc1189c3f21bf5e3fc2c | [
"MIT"
] | null | null | null | .ls/forms.py | millerthegorilla/django_users_app | f63c5bdcdd9700366099bc1189c3f21bf5e3fc2c | [
"MIT"
] | null | null | null | .ls/forms.py | millerthegorilla/django_users_app | f63c5bdcdd9700366099bc1189c3f21bf5e3fc2c | [
"MIT"
] | null | null | null | # users/forms.py
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django.forms import ModelForm
from .models import Profile
from captcha.fields import ReCaptchaField
from captcha.widgets import ReCaptchaV2Checkbox
class CustomUserCreationForm(UserCreationForm):
... | 28.461538 | 74 | 0.731532 | 128 | 1,110 | 6.273438 | 0.359375 | 0.03736 | 0.042341 | 0.052304 | 0.059776 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002165 | 0.167568 | 1,110 | 38 | 75 | 29.210526 | 0.866883 | 0.012613 | 0 | 0.071429 | 0 | 0 | 0.137237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.607143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a41e8537c9d51a10f188a30f77742a92f8d8ec86 | 468 | py | Python | books/migrations/0002_bookpage_page_number.py | Pepedou/Famas | 7fbeecb4b02ac4ddae5b4bc35ce02207b807bfd2 | [
"MIT"
] | null | null | null | books/migrations/0002_bookpage_page_number.py | Pepedou/Famas | 7fbeecb4b02ac4ddae5b4bc35ce02207b807bfd2 | [
"MIT"
] | null | null | null | books/migrations/0002_bookpage_page_number.py | Pepedou/Famas | 7fbeecb4b02ac4ddae5b4bc35ce02207b807bfd2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-07 18:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('books', '0001_initial'),
]
operations = [
migrations.AddField(
... | 22.285714 | 75 | 0.623932 | 50 | 468 | 5.68 | 0.82 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063401 | 0.258547 | 468 | 20 | 76 | 23.4 | 0.755043 | 0.145299 | 0 | 0 | 1 | 0 | 0.09068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a426e70d736c7683361dc4b12bd4f1c9955d3277 | 1,970 | py | Python | kombiton/run_scripts/faultinj/rm_startup_from_trace.py | vusec/firestarter | 2048c1f731b8f3c5570a920757f9d7730d5f716a | [
"Apache-2.0"
] | 3 | 2021-04-29T07:59:16.000Z | 2021-12-10T02:23:05.000Z | kombiton/run_scripts/faultinj/rm_startup_from_trace.py | vusec/firestarter | 2048c1f731b8f3c5570a920757f9d7730d5f716a | [
"Apache-2.0"
] | null | null | null | kombiton/run_scripts/faultinj/rm_startup_from_trace.py | vusec/firestarter | 2048c1f731b8f3c5570a920757f9d7730d5f716a | [
"Apache-2.0"
] | null | null | null | #!/bin/python
import json
import os
all_traces = []
bbtrace = {}
startup_bbs = []
NumKeysAltered = 0
NumEmptyKeys = 0
def load_all_traces():
global bbtrace, startup_bbs
bbtfile = "/tmp/rcvry_bbtrace_dump.json"
startupfile = "/tmp/rcvry_bbtrace_dump.json.startup"
jd = json.JSONDecoder()
line = ""
with open(bbt... | 22.134831 | 72 | 0.655838 | 300 | 1,970 | 4.153333 | 0.24 | 0.072231 | 0.038523 | 0.045746 | 0.282504 | 0.120385 | 0.120385 | 0.070626 | 0.070626 | 0.070626 | 0 | 0.006931 | 0.194416 | 1,970 | 88 | 73 | 22.386364 | 0.778198 | 0.006091 | 0 | 0.166667 | 0 | 0 | 0.167092 | 0.053143 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027778 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a429491de9c751ae20ce9a0cb7d950f00f3f3ac8 | 1,474 | py | Python | scripts/cursorKindNames.py | udalov/jclang | 4eef90bd4f830a12d9ee361c409180cc05cb5af0 | [
"Apache-2.0"
] | 7 | 2015-06-22T20:31:27.000Z | 2021-02-11T16:25:32.000Z | scripts/cursorKindNames.py | udalov/jclang | 4eef90bd4f830a12d9ee361c409180cc05cb5af0 | [
"Apache-2.0"
] | null | null | null | scripts/cursorKindNames.py | udalov/jclang | 4eef90bd4f830a12d9ee361c409180cc05cb5af0 | [
"Apache-2.0"
] | 5 | 2015-06-28T05:54:34.000Z | 2019-08-03T12:36:34.000Z | #!/usr/bin/env python
#
# Extracts constants from Clang's CXCursorKind enum and renames them
# according to Java name conventions.
#
# Prints almost a ready-to-use Java enum body to stdout.
# Doesn't handle the case of one enum value initialization by the other
# (e.g. AsmStmt=GCCAsmStmt)
import sys
if len(sys.argv)... | 27.811321 | 84 | 0.548847 | 199 | 1,474 | 4.045226 | 0.482412 | 0.009938 | 0.034783 | 0.014907 | 0.032298 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012922 | 0.317503 | 1,474 | 52 | 85 | 28.346154 | 0.787276 | 0.253731 | 0 | 0.138889 | 0 | 0 | 0.083563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027778 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a42cf891aa99efa78f8bcbea8ba70c0c701ffbc1 | 1,130 | py | Python | userlogin.py | kennedyCzar/python_username_password_authentication_system | 6117becd72424cd662442c02822e68f342524200 | [
"MIT"
] | null | null | null | userlogin.py | kennedyCzar/python_username_password_authentication_system | 6117becd72424cd662442c02822e68f342524200 | [
"MIT"
] | null | null | null | userlogin.py | kennedyCzar/python_username_password_authentication_system | 6117becd72424cd662442c02822e68f342524200 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 15 01:40:25 2018
@author: kennedy
"""
#sample --> 'kennedy':'ify1', 'andy': 'best56', 'great': 'op3'
#create new user
system = {} #database system
option = ""
def newusers():
uname= input("Enter a username: ")
if uname in system:
print("User a... | 26.27907 | 77 | 0.535398 | 136 | 1,130 | 4.389706 | 0.507353 | 0.083752 | 0.043551 | 0.050251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025707 | 0.311504 | 1,130 | 43 | 78 | 26.27907 | 0.741645 | 0.231858 | 0 | 0.074074 | 0 | 0 | 0.294335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.074074 | 0 | 0 | 0.111111 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a4372aef50fe50fae7d3034226f13aae5efea686 | 858 | py | Python | generate_result.py | wondervictor/Traffic_Prediction | 72137a0b68c2ad4e42a405c5fdeb274c037f50a2 | [
"Apache-2.0"
] | 19 | 2017-03-05T09:00:07.000Z | 2020-11-19T19:37:59.000Z | generate_result.py | wondervictor/Traffic_Prediction | 72137a0b68c2ad4e42a405c5fdeb274c037f50a2 | [
"Apache-2.0"
] | null | null | null | generate_result.py | wondervictor/Traffic_Prediction | 72137a0b68c2ad4e42a405c5fdeb274c037f50a2 | [
"Apache-2.0"
] | 8 | 2017-08-21T01:22:47.000Z | 2021-12-27T19:33:29.000Z | # -*- coding: utf-8 -*-
import sys
import csv_timestamp
def generate(point, file_name):
data = []
with open(file_name, 'r') as f:
line = f.readlines()[0]
data = map(int, line.rstrip('\r\n;').split(';'))
with open('result.csv', 'a+') as f:
line = '%s,' % point
line += ','... | 26 | 66 | 0.537296 | 118 | 858 | 3.694915 | 0.398305 | 0.08945 | 0.018349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043062 | 0.269231 | 858 | 32 | 67 | 26.8125 | 0.652313 | 0.141026 | 0 | 0 | 1 | 0 | 0.128591 | 0.031464 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.15 | 0 | 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 |
a43784e6c05bf7d956f0e9dbb7b8ee22459573db | 4,022 | py | Python | project/ml_models.py | LucFrachon/enron_fraud_detection | 730ea52865137a7a4b3ade92cf4e814ad302e804 | [
"MIT"
] | null | null | null | project/ml_models.py | LucFrachon/enron_fraud_detection | 730ea52865137a7a4b3ade92cf4e814ad302e804 | [
"MIT"
] | null | null | null | project/ml_models.py | LucFrachon/enron_fraud_detection | 730ea52865137a7a4b3ade92cf4e814ad302e804 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import numpy as np
import matplotlib.pyplot as plt
from sklearn.preprocessing import RobustScaler, StandardScaler
from sklearn.svm import SVC
from sklearn.ensemble import RandomForestClassifier
from sklearn.decomposition import PCA
from sklearn.model_selection import train_test_split, StratifiedShuff... | 34.084746 | 100 | 0.655893 | 502 | 4,022 | 5.099602 | 0.262948 | 0.035156 | 0.025 | 0.029688 | 0.625781 | 0.582031 | 0.582031 | 0.582031 | 0.582031 | 0.582031 | 0 | 0.007421 | 0.195922 | 4,022 | 117 | 101 | 34.376068 | 0.784168 | 0.097961 | 0 | 0.360656 | 0 | 0 | 0.058277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.213115 | null | null | 0.081967 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a438a2ae337378caf9dbe15fc6709d56d3cda23f | 1,388 | py | Python | sql_enum/models/business.py | thorwolpert/sql-enum | 7156d6e56654db3142b22b9d9aa4ef9f56027262 | [
"Apache-2.0"
] | null | null | null | sql_enum/models/business.py | thorwolpert/sql-enum | 7156d6e56654db3142b22b9d9aa4ef9f56027262 | [
"Apache-2.0"
] | null | null | null | sql_enum/models/business.py | thorwolpert/sql-enum | 7156d6e56654db3142b22b9d9aa4ef9f56027262 | [
"Apache-2.0"
] | null | null | null | """The Business Model."""
from __future__ import annotations
from typing import Optional
from enum import Enum, EnumMeta, auto
from .db import db
class BaseMeta(EnumMeta):
"""Meta class for the enum."""
def __contains__(self, other): # pylint: disable=C0203
"""Return True if 'in' the Enum."""
... | 26.188679 | 88 | 0.633285 | 170 | 1,388 | 5.029412 | 0.464706 | 0.024561 | 0.035088 | 0.051462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014577 | 0.258646 | 1,388 | 52 | 89 | 26.692308 | 0.816327 | 0.286744 | 0 | 0 | 0 | 0 | 0.01589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.142857 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a43f1a6a9b3b6b1e4dbb18f318f90048d35d10cd | 1,017 | py | Python | Lib/site-packages/leaflet/forms/fields.py | FelixGreeg/envdjango | aa1933a2fc92c0b50412e1f719efe5b975d5effb | [
"CNRI-Python-GPL-Compatible"
] | 2 | 2021-12-02T11:41:02.000Z | 2021-12-27T12:01:53.000Z | Lib/site-packages/leaflet/forms/fields.py | FelixGreeg/envdjango | aa1933a2fc92c0b50412e1f719efe5b975d5effb | [
"CNRI-Python-GPL-Compatible"
] | 16 | 2020-03-24T17:30:37.000Z | 2022-03-11T23:57:41.000Z | Lib/site-packages/leaflet/forms/fields.py | FelixGreeg/envdjango | aa1933a2fc92c0b50412e1f719efe5b975d5effb | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | from __future__ import unicode_literals
import django
from .widgets import LeafletWidget
if django.VERSION >= (1, 6, 0):
from django.contrib.gis.forms.fields import GeometryField as BaseGeometryField
else:
from .backport import GeometryField as BaseGeometryField
class GeometryField(BaseGeometryField):
... | 21.1875 | 82 | 0.752212 | 102 | 1,017 | 7.27451 | 0.460784 | 0.107817 | 0.198113 | 0.102426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003525 | 0.163225 | 1,017 | 47 | 83 | 21.638298 | 0.86839 | 0 | 0 | 0 | 0 | 0 | 0.083579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.185185 | 0 | 0.851852 | 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 |
a446d58adda7bd882014103e2b98bab2792f940d | 2,021 | py | Python | tests/main/util/hashlib/keccak_test.py | Sharmelen/python-xpx-chain-sdk | a1bfb1b7da20d50dd5049a950794955d1c492a71 | [
"Apache-2.0"
] | 1 | 2021-02-02T12:46:51.000Z | 2021-02-02T12:46:51.000Z | tests/main/util/hashlib/keccak_test.py | Sharmelen/python-xpx-chain-sdk | a1bfb1b7da20d50dd5049a950794955d1c492a71 | [
"Apache-2.0"
] | 4 | 2021-02-06T06:14:27.000Z | 2021-07-20T11:41:44.000Z | tests/main/util/hashlib/keccak_test.py | Sharmelen/python-xpx-chain-sdk | a1bfb1b7da20d50dd5049a950794955d1c492a71 | [
"Apache-2.0"
] | 1 | 2021-08-09T15:45:21.000Z | 2021-08-09T15:45:21.000Z | import binascii
from xpxchain.util.hashlib.keccak import crypto
from xpxchain.util.hashlib.keccak import fallback
from tests import harness
from .helper import *
def generate_testcase(bits, full_hexdigest):
name = "keccak_{}".format(bits)
digest_size = bits // 8
crypto_func = getattr(crypto, name)
fa... | 38.865385 | 170 | 0.711529 | 186 | 2,021 | 7.569892 | 0.306452 | 0.059659 | 0.028409 | 0.042614 | 0.111506 | 0.09517 | 0 | 0 | 0 | 0 | 0 | 0.140557 | 0.200891 | 2,021 | 51 | 171 | 39.627451 | 0.731269 | 0 | 0 | 0.105263 | 1 | 0 | 0.204354 | 0.170213 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.184211 | false | 0 | 0.131579 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4489dffe718a97ccb74e3c9f52f9b17c3e92dd1 | 318 | py | Python | src/onegov/onboarding/__init__.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/onboarding/__init__.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/onboarding/__init__.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | import logging
log = logging.getLogger('onegov.onboarding') # noqa
log.addHandler(logging.NullHandler()) # noqa
from translationstring import TranslationStringFactory
_ = TranslationStringFactory('onegov.onboarding') # noqa
from onegov.onboarding.app import OnboardingApp
__all__ = ['_', 'log', 'OnboardingApp']
| 28.909091 | 57 | 0.783019 | 30 | 318 | 8.1 | 0.5 | 0.197531 | 0.164609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106918 | 318 | 10 | 58 | 31.8 | 0.855634 | 0.044025 | 0 | 0 | 0 | 0 | 0.17 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a4571b7d662e38acb828ba8daed31eff0533815f | 5,401 | py | Python | utils/errors.py | langinator3/Botinator | c3b5073c2228a70b692039a8e548b74a54ea9837 | [
"MIT"
] | null | null | null | utils/errors.py | langinator3/Botinator | c3b5073c2228a70b692039a8e548b74a54ea9837 | [
"MIT"
] | null | null | null | utils/errors.py | langinator3/Botinator | c3b5073c2228a70b692039a8e548b74a54ea9837 | [
"MIT"
] | null | null | null | from discord.ext import commands
from discord.errors import DiscordException
__all__ = ['WrongChannel', 'CommandError', 'MissingRequiredArgument', 'BadArgument',
'NoPrivateMessage', 'CheckFailure', 'CommandNotFound',
'DisabledCommand', 'CommandInvokeError', 'TooManyArguments',
'UserIn... | 35.768212 | 103 | 0.658582 | 614 | 5,401 | 5.643322 | 0.29316 | 0.051948 | 0.065801 | 0.050794 | 0.314286 | 0.238672 | 0.238672 | 0.238672 | 0.223377 | 0.191631 | 0 | 0.003832 | 0.226995 | 5,401 | 151 | 104 | 35.768212 | 0.826108 | 0.400296 | 0 | 0.378788 | 0 | 0 | 0.191087 | 0.02262 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106061 | false | 0.121212 | 0.030303 | 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 |
a465e10b95cc2068f7e5726defd1bc98652a4cab | 1,183 | py | Python | 852_PeakIndexInAMountainArray.py | xyp8023/LeetCode | 09281f9a1eafb262b06336a6969c97d2418899b4 | [
"MIT"
] | null | null | null | 852_PeakIndexInAMountainArray.py | xyp8023/LeetCode | 09281f9a1eafb262b06336a6969c97d2418899b4 | [
"MIT"
] | null | null | null | 852_PeakIndexInAMountainArray.py | xyp8023/LeetCode | 09281f9a1eafb262b06336a6969c97d2418899b4 | [
"MIT"
] | null | null | null | class Solution:
def peakIndexInMountainArray(self, A):
"""
:type A: List[int]
:rtype: int
"""
A_new = sorted(A)
return A.index(A_new[-1])
# # other solutions
# # 1.
# class Solution:
# def peakIndexInMountainArray(self, A):
# """
# :type A: List[... | 20.396552 | 44 | 0.427726 | 138 | 1,183 | 3.652174 | 0.297101 | 0.103175 | 0.126984 | 0.31746 | 0.515873 | 0.515873 | 0.515873 | 0.515873 | 0.515873 | 0.515873 | 0 | 0.025714 | 0.408284 | 1,183 | 58 | 45 | 20.396552 | 0.694286 | 0.708369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0.111111 | 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 |
a47393bef867011353e117e2061defb404c98997 | 374 | py | Python | mqtt-client/micropython/wifi.py | flespi-software/examples | 16994080cceb99837f460bd210f39b5690d14c4b | [
"MIT"
] | 15 | 2019-04-03T15:29:25.000Z | 2021-12-03T18:36:00.000Z | mqtt-client/micropython/wifi.py | flespi-software/examples | 16994080cceb99837f460bd210f39b5690d14c4b | [
"MIT"
] | null | null | null | mqtt-client/micropython/wifi.py | flespi-software/examples | 16994080cceb99837f460bd210f39b5690d14c4b | [
"MIT"
] | 13 | 2019-04-04T06:19:18.000Z | 2021-02-08T10:50:06.000Z | def connect(ssid="test", password="12345678"):
import network
net = network.WLAN(network.STA_IF)
if net.isconnected() == True:
print("Already connected")
return
net.active(True)
net.connect(ssid, password)
while net.isconnected() == False:
pass
print("Connection ... | 19.684211 | 46 | 0.625668 | 42 | 374 | 5.547619 | 0.595238 | 0.094421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02847 | 0.248663 | 374 | 18 | 47 | 20.777778 | 0.800712 | 0 | 0 | 0 | 0 | 0 | 0.13369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.230769 | 0.076923 | 0 | 0.307692 | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a48d0b605ee1966d89799320f140c871d6a1aae5 | 1,281 | py | Python | Python/d029_first_genetic_algorithm/dna.py | yashaslokesh/100-Days-Of-Code | a5aadfb41675224828c6fce22abc5ab0263141c8 | [
"MIT"
] | 7 | 2018-07-03T15:52:34.000Z | 2022-01-20T19:26:32.000Z | Python/d029_first_genetic_algorithm/dna.py | yashaslokesh/100-Days-Of-Code | a5aadfb41675224828c6fce22abc5ab0263141c8 | [
"MIT"
] | null | null | null | Python/d029_first_genetic_algorithm/dna.py | yashaslokesh/100-Days-Of-Code | a5aadfb41675224828c6fce22abc5ab0263141c8 | [
"MIT"
] | 1 | 2018-07-31T06:37:41.000Z | 2018-07-31T06:37:41.000Z | import random
import math
class DNA():
def __init__(self, data_length):
self.chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ .!,?"
self.genes = [letter for letter in random.choices(self.chars, k=data_length)]
self._fitness = 0
def phrase(self):
return "".... | 33.710526 | 103 | 0.604996 | 160 | 1,281 | 4.7625 | 0.36875 | 0.106299 | 0.036745 | 0.052493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003308 | 0.291959 | 1,281 | 38 | 104 | 33.710526 | 0.836825 | 0.0726 | 0 | 0 | 0 | 0 | 0.04802 | 0.043808 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.068966 | 0.068966 | 0.482759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a48dcbe8cfd5e42eed5b4f542644434b89999f31 | 1,324 | py | Python | unified_planning/walkers/free_vars.py | aiplan4eu/unified-planning | d2fd18baa3a2110595e5dfdc3f55254df72c3016 | [
"Apache-2.0"
] | 9 | 2022-02-18T14:51:58.000Z | 2022-03-31T06:02:43.000Z | unified_planning/walkers/free_vars.py | aiplan4eu/unified-planning | d2fd18baa3a2110595e5dfdc3f55254df72c3016 | [
"Apache-2.0"
] | 37 | 2022-02-01T10:44:38.000Z | 2022-03-31T09:13:42.000Z | unified_planning/walkers/free_vars.py | aiplan4eu/unified-planning | d2fd18baa3a2110595e5dfdc3f55254df72c3016 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 AIPlan4EU project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 35.783784 | 86 | 0.719033 | 188 | 1,324 | 4.989362 | 0.526596 | 0.063966 | 0.027719 | 0.034115 | 0.049041 | 0.049041 | 0 | 0 | 0 | 0 | 0 | 0.008483 | 0.19864 | 1,324 | 36 | 87 | 36.777778 | 0.875589 | 0.512085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a493441d6ea0f85a702053bb2f2eabfd17be6121 | 1,643 | py | Python | repack/const.py | nickqiao/ApkRepack | 127efb404a37084ffebc2e5d96356590f1244c35 | [
"Apache-2.0"
] | 1 | 2017-05-15T03:18:58.000Z | 2017-05-15T03:18:58.000Z | repack/const.py | nickqiao/ApkRepack | 127efb404a37084ffebc2e5d96356590f1244c35 | [
"Apache-2.0"
] | null | null | null | repack/const.py | nickqiao/ApkRepack | 127efb404a37084ffebc2e5d96356590f1244c35 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
import os
import tempfile
# 配置java环境变量,这个是本机的jarsigner文件位置
java_home_sign = '/Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/bin/jarsigner'
# 重新打包的apk输出路径
outputdir = "/Users/nick/Desktop/H5output"
outputapk = "/Users/nick/Desktop/H5output/new.apk"
new_icon_na... | 32.86 | 97 | 0.745587 | 249 | 1,643 | 4.62249 | 0.325301 | 0.203301 | 0.135534 | 0.07298 | 0.247611 | 0.140747 | 0 | 0 | 0 | 0 | 0 | 0.008409 | 0.131467 | 1,643 | 49 | 98 | 33.530612 | 0.798178 | 0.132684 | 0 | 0 | 0 | 0.033333 | 0.219149 | 0.100709 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.033333 | 0.066667 | 0 | 0.066667 | 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 |
a493d56508e77362b8ad356ea4c4ef097ce14930 | 812 | py | Python | mlmodels/model_tf/misc/tf_serving/6.inception-flasksocketio/object_inception.py | gitter-badger/mlmodels | f08cc9b6ec202d4ad25ecdda2f44487da387569d | [
"MIT"
] | 1 | 2022-03-11T07:57:48.000Z | 2022-03-11T07:57:48.000Z | mlmodels/model_tf/misc/tf_serving/6.inception-flasksocketio/object_inception.py | whitetiger1002/mlmodels | f70f1da7434e8855eed50adc67b49cc169f2ea24 | [
"MIT"
] | null | null | null | mlmodels/model_tf/misc/tf_serving/6.inception-flasksocketio/object_inception.py | whitetiger1002/mlmodels | f70f1da7434e8855eed50adc67b49cc169f2ea24 | [
"MIT"
] | null | null | null | import json
import os
import numpy as np
import tensorflow as tf
import tensorflow.contrib.slim as slim
import cv2
import inception_v3
with open("real-label.json", "r") as fopen:
labels = json.load(fopen)
tf.reset_default_graph()
sess = tf.InteractiveSession()
X = tf.placeholder(tf.float32, [None, None, 3])
ima... | 27.066667 | 93 | 0.745074 | 128 | 812 | 4.578125 | 0.53125 | 0.112628 | 0.068259 | 0.075085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037921 | 0.123153 | 812 | 29 | 94 | 28 | 0.785112 | 0 | 0 | 0 | 0 | 0 | 0.04064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.304348 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a493dbccbdc1706c84802caae0dbb8e213209e99 | 253 | py | Python | Dataset/Leetcode/test/62/188.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/62/188.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/62/188.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, m: int, n: int) -> int:
pre = [1]*n
cur = [1]*n
for i in range(1,m):
for j in range(1,n):
cur[j] = cur[j-1] + pre[j]
pre = cur[:]
return cur[-1]
| 23 | 42 | 0.391304 | 40 | 253 | 2.475 | 0.425 | 0.060606 | 0.10101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0.442688 | 253 | 10 | 43 | 25.3 | 0.659574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
a49a39c61ed41abd7f8543435ebebdb78d258cb6 | 823 | py | Python | src/basic_app.py | beepboop-tech/printer-farm | 294a216711564c873173c90e1380a484cdc6ca7f | [
"MIT"
] | null | null | null | src/basic_app.py | beepboop-tech/printer-farm | 294a216711564c873173c90e1380a484cdc6ca7f | [
"MIT"
] | null | null | null | src/basic_app.py | beepboop-tech/printer-farm | 294a216711564c873173c90e1380a484cdc6ca7f | [
"MIT"
] | null | null | null | from orchestrators import Orchestrator
from printers import Printer
from jobs import Job
import threading
import time
class TestUser():
def __init__(self):
self.username = 'tom'
p = Printer('Duplicator i3', '192.168.0.201', 'B5A36115A3DC49148EFC52012E7EBCD9',
'Hackspace', 'duplicat... | 19.139535 | 81 | 0.63791 | 113 | 823 | 4.60177 | 0.460177 | 0.057692 | 0.069231 | 0.063462 | 0.063462 | 0.063462 | 0.063462 | 0.063462 | 0 | 0 | 0 | 0.052709 | 0.170109 | 823 | 42 | 82 | 19.595238 | 0.708638 | 0.420413 | 0 | 0 | 0 | 0 | 0.254989 | 0.070953 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0 | 0.583333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a49f1b1e7a7d29931b4ba642892fe7286f4e89ea | 3,223 | py | Python | mds/access_control/authenticate.py | Polyconseil/django-mds | 964655d3f17d51e74e67ae4c7b62b446435b5506 | [
"MIT"
] | 15 | 2019-01-02T13:44:29.000Z | 2020-09-03T16:39:46.000Z | mds/access_control/authenticate.py | Polyconseil/django-mds | 964655d3f17d51e74e67ae4c7b62b446435b5506 | [
"MIT"
] | 44 | 2018-11-30T11:04:03.000Z | 2020-01-21T17:21:39.000Z | mds/access_control/authenticate.py | Polyconseil/midas | 964655d3f17d51e74e67ae4c7b62b446435b5506 | [
"MIT"
] | 5 | 2019-04-23T16:22:49.000Z | 2021-03-21T07:45:38.000Z | from typing import Set, Optional, List, Dict
import jwt
from django.utils.translation import ugettext as _
from rest_framework import exceptions
from .auth_means import BaseAuthMean
from .jwt_decode import jwt_multi_decode
from mds.authent.public_api import get_revocation_list
class RemoteUser:
"""
Inspire... | 29.3 | 103 | 0.670804 | 381 | 3,223 | 5.493438 | 0.370079 | 0.055901 | 0.083612 | 0.054467 | 0.069756 | 0.044912 | 0 | 0 | 0 | 0 | 0 | 0.003636 | 0.232082 | 3,223 | 109 | 104 | 29.568807 | 0.84202 | 0.213776 | 0 | 0.153846 | 0 | 0 | 0.075802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.107692 | 0.107692 | 0.476923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a4a031632566fcd82ddb33b8005969c521befce2 | 3,337 | py | Python | proyecto_delta/src/ik.py | IngLuisZambrano/Teleoperacion_falcon | 8ee74c37b1f99089f6232e2f609b38480b21277a | [
"BSD-2-Clause"
] | null | null | null | proyecto_delta/src/ik.py | IngLuisZambrano/Teleoperacion_falcon | 8ee74c37b1f99089f6232e2f609b38480b21277a | [
"BSD-2-Clause"
] | null | null | null | proyecto_delta/src/ik.py | IngLuisZambrano/Teleoperacion_falcon | 8ee74c37b1f99089f6232e2f609b38480b21277a | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# Original code from
# http://forums.trossenrobotics.com/tutorials/introduction-129/delta-robot-kinematics-3276/
# License: MIT
import math
# Specific geometry for bitbeambot:
# http://flic.kr/p/cYaQah
e = 35.0
f = 60.0
re = 280.0
rf = 140.0
# Trigonometric constants
s ... | 26.484127 | 91 | 0.489661 | 551 | 3,337 | 2.958258 | 0.243194 | 0.01227 | 0.022086 | 0.018405 | 0.116564 | 0.100614 | 0.066258 | 0.066258 | 0.066258 | 0.066258 | 0 | 0.163111 | 0.325742 | 3,337 | 125 | 92 | 26.696 | 0.561333 | 0.235241 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012048 | null | null | 0.024096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a4a0657e1e97e5f69125200902ae59e91fb2fa12 | 5,526 | py | Python | source/frontend/controller.py | niklongstone/auto-check-in-app | 3c672ea438c35fdd32aa7e5b4c20d4a943b7a66d | [
"Apache-2.0"
] | 23 | 2020-01-23T12:40:01.000Z | 2022-03-17T22:51:54.000Z | source/frontend/controller.py | niklongstone/auto-check-in-app | 3c672ea438c35fdd32aa7e5b4c20d4a943b7a66d | [
"Apache-2.0"
] | null | null | null | source/frontend/controller.py | niklongstone/auto-check-in-app | 3c672ea438c35fdd32aa7e5b4c20d4a943b7a66d | [
"Apache-2.0"
] | 12 | 2020-01-26T03:01:07.000Z | 2021-11-12T03:22:11.000Z | import datetime, hashlib, hmac
import cv2
import requests
import math
import getpass
import boto3
from botocore.exceptions import ClientError
from video_capture import VideoCapture
from detector import Detector
from viewer import Viewer
class Controller(object):
def __init__(self, env, video_device):
tr... | 39.191489 | 98 | 0.535107 | 559 | 5,526 | 5.093023 | 0.341682 | 0.037935 | 0.024587 | 0.031612 | 0.067439 | 0.035125 | 0.01686 | 0 | 0 | 0 | 0 | 0.007391 | 0.363373 | 5,526 | 140 | 99 | 39.471429 | 0.801876 | 0.049041 | 0 | 0.082569 | 0 | 0 | 0.103928 | 0.016972 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055046 | false | 0.06422 | 0.091743 | 0.009174 | 0.201835 | 0.045872 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a4a4d884adcb242ab6130cda314775066e8a6d96 | 422 | py | Python | services/app/src/concrete_data/models.py | yingw787/tinydevcrm-saas-starter | 0a37a8f0dccc5ec4b9074de40371d0074744ae79 | [
"MIT"
] | 2 | 2020-05-22T22:23:01.000Z | 2020-06-22T05:02:00.000Z | services/app/src/concrete_data/models.py | yingw787/tinydevcrm-saas-starter | 0a37a8f0dccc5ec4b9074de40371d0074744ae79 | [
"MIT"
] | 7 | 2021-03-19T02:40:00.000Z | 2021-09-22T18:57:26.000Z | services/app/src/concrete_data/models.py | yingw787/tinydevcrm-saas-starter | 0a37a8f0dccc5ec4b9074de40371d0074744ae79 | [
"MIT"
] | null | null | null | """
Models for managing file uploads.
"""
import os
from django.conf import settings
from django.db import models
class File(models.Model):
"""
Model for files uploaded to TinyDevCRM.
"""
file_id = models.AutoField(primary_key=True)
file = models.FileField(
upload_to='concrete-data',
... | 17.583333 | 48 | 0.64455 | 53 | 422 | 5 | 0.660377 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251185 | 422 | 23 | 49 | 18.347826 | 0.838608 | 0.172986 | 0 | 0 | 0 | 0 | 0.039877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8efe7b3c5095d751ac3e0de139befef3e24c1e4f | 7,894 | py | Python | workflows/followup_nr2h5_workflow.py | Cyberface/nrutils_dev | 4dc4e684c3f9bce0ff594fe924198e62a3edfe44 | [
"MIT"
] | 5 | 2016-04-04T05:37:49.000Z | 2021-11-21T16:06:15.000Z | workflows/followup_nr2h5_workflow.py | Cyberface/nrutils_dev | 4dc4e684c3f9bce0ff594fe924198e62a3edfe44 | [
"MIT"
] | 36 | 2016-04-10T08:28:41.000Z | 2021-12-13T15:17:47.000Z | workflows/followup_nr2h5_workflow.py | Cyberface/nrutils_dev | 4dc4e684c3f9bce0ff594fe924198e62a3edfe44 | [
"MIT"
] | 6 | 2016-04-04T05:27:33.000Z | 2021-12-13T14:29:27.000Z | '''
Key reference:
https://dcc.ligo.org/DocDB/0123/T1500606/002/NRInjectionInfrastructure.pdf
-- lionel.london@ligo.org 2016 --
'''
# Import useful things
from os import system, remove, makedirs, path
from os.path import dirname, basename, isdir, realpath
from numpy import arccos as acos
from numpy import array,one... | 42.67027 | 248 | 0.626425 | 1,248 | 7,894 | 3.815705 | 0.270032 | 0.072239 | 0.088198 | 0.025409 | 0.185426 | 0.078538 | 0.078538 | 0.073709 | 0.062999 | 0.062999 | 0 | 0.037818 | 0.21282 | 7,894 | 184 | 249 | 42.902174 | 0.728516 | 0.234989 | 0 | 0 | 0 | 0.009174 | 0.253803 | 0.013844 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.082569 | null | null | 0.091743 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f107252512e145baeb4aa039db23ccdc6d60656c | 1,113 | py | Python | project/locations/micro_regions/views.py | CODE-Easyy/dash-back | 202df5d46c09b3639a37de6d65189a55e966be25 | [
"MIT"
] | null | null | null | project/locations/micro_regions/views.py | CODE-Easyy/dash-back | 202df5d46c09b3639a37de6d65189a55e966be25 | [
"MIT"
] | null | null | null | project/locations/micro_regions/views.py | CODE-Easyy/dash-back | 202df5d46c09b3639a37de6d65189a55e966be25 | [
"MIT"
] | null | null | null | from rest_framework.generics import DestroyAPIView
from rest_framework.generics import UpdateAPIView
from rest_framework.generics import ListAPIView
from rest_framework.generics import RetrieveAPIView
from rest_framework.generics import CreateAPIView
from rest_framework.filters import SearchFilter
from .serializers i... | 29.289474 | 51 | 0.801438 | 106 | 1,113 | 8.273585 | 0.320755 | 0.054732 | 0.116306 | 0.142531 | 0.502851 | 0.326112 | 0.326112 | 0.177879 | 0.177879 | 0.177879 | 0 | 0 | 0.134771 | 1,113 | 37 | 52 | 30.081081 | 0.910696 | 0 | 0 | 0.444444 | 0 | 0 | 0.008985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.296296 | 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 |
f10999fbf2026a9c291448bfcde3c148c7cf8831 | 1,749 | py | Python | Pygling/Env.py | dmsovetov/pygling | ac3a591a600a7e0f06223eff2c7c30ca8ee9c514 | [
"MIT"
] | 1 | 2015-01-27T11:31:39.000Z | 2015-01-27T11:31:39.000Z | Pygling/Env.py | dmsovetov/yap | ac3a591a600a7e0f06223eff2c7c30ca8ee9c514 | [
"MIT"
] | null | null | null | Pygling/Env.py | dmsovetov/yap | ac3a591a600a7e0f06223eff2c7c30ca8ee9c514 | [
"MIT"
] | 1 | 2017-05-22T18:21:05.000Z | 2017-05-22T18:21:05.000Z | #################################################################################
#
# The MIT License (MIT)
#
# Copyright (c) 2015 Dmitry Sovetov
#
# https://github.com/dmsovetov
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "... | 34.294118 | 81 | 0.662664 | 245 | 1,749 | 4.714286 | 0.518367 | 0.07619 | 0.022511 | 0.022511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004147 | 0.17267 | 1,749 | 51 | 82 | 34.294118 | 0.794057 | 0.647227 | 0 | 0 | 0 | 0 | 0.06089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | 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 |
f10fddf69ba8908733a226e8485e870903999dec | 3,439 | py | Python | fimutil/netam/sr_pce.py | fabric-testbed/information-model-utils | 90986768eaec6a700d610c8320558638d06a2a6f | [
"MIT"
] | null | null | null | fimutil/netam/sr_pce.py | fabric-testbed/information-model-utils | 90986768eaec6a700d610c8320558638d06a2a6f | [
"MIT"
] | 16 | 2021-03-24T18:53:54.000Z | 2022-03-31T21:20:06.000Z | fimutil/netam/sr_pce.py | fabric-testbed/information-model-utils | 90986768eaec6a700d610c8320558638d06a2a6f | [
"MIT"
] | null | null | null | import requests
from requests.auth import HTTPDigestAuth
import json
import os
from yaml import load as yload
from yaml import FullLoader
from jsonpath_ng.ext import parse
class SrPceClient:
"""
Retrieve Network AM resources information from Cisco SR-PCE.
"""
def __init__(self, *, config=None, config... | 42.45679 | 129 | 0.613841 | 459 | 3,439 | 4.379085 | 0.276688 | 0.049751 | 0.035821 | 0.023881 | 0.166667 | 0.146269 | 0.079602 | 0.035821 | 0.035821 | 0 | 0 | 0.010093 | 0.279732 | 3,439 | 80 | 130 | 42.9875 | 0.801373 | 0.068334 | 0 | 0.030303 | 0 | 0.030303 | 0.170801 | 0.042386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075758 | false | 0.060606 | 0.106061 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f1132900f71579afc4ed8e321e556a473366dfc7 | 597 | py | Python | test/lecroy_scope_test.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | null | null | null | test/lecroy_scope_test.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 1 | 2019-10-22T21:28:31.000Z | 2019-10-22T21:39:12.000Z | test/lecroy_scope_test.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 2 | 2019-06-06T15:06:46.000Z | 2020-07-20T02:03:22.000Z | """
Friedrich Schotte, NIH, 3 Feb 2012 - 9 Mar 2012
"""
from lecroy_scope import lecroy_scope
from lecroy_scope_waveform import read_waveform
from time import sleep
from pylab import *
__version__ = "1.1"
id14b_xscope = lecroy_scope("164.54.161.27") # id14b-xscope
xray_trace = id14b_xscope.channel(1)
dir = "/net/id14b... | 29.85 | 62 | 0.748744 | 99 | 597 | 4.30303 | 0.555556 | 0.103286 | 0.098592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085821 | 0.102178 | 597 | 19 | 63 | 31.421053 | 0.708955 | 0.020101 | 0 | 0 | 0 | 0.071429 | 0.448864 | 0.359848 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.357143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f113a9f32716e629fafb5c27c099ec05d4d0d606 | 447 | py | Python | System/HLEngine/HLEngine_update_MATTbot.py | HLDynamics/MATTBot | 2c21f408f86168093a7c13eed246302f65b3229c | [
"MIT"
] | null | null | null | System/HLEngine/HLEngine_update_MATTbot.py | HLDynamics/MATTBot | 2c21f408f86168093a7c13eed246302f65b3229c | [
"MIT"
] | null | null | null | System/HLEngine/HLEngine_update_MATTbot.py | HLDynamics/MATTBot | 2c21f408f86168093a7c13eed246302f65b3229c | [
"MIT"
] | null | null | null | #@author:Akhil P Jacob
#HLRobotics-Automation
import git
import cv2
import subprocess
import sys
def update():
try:
print("HLEngine:updating MATTBot 2020......")
git_dir = "../../../MATTBot/"
g = git.cmd.Git(git_dir)
g.pull()
return("HLEngine:MATTbot updated, reboot M... | 15.964286 | 73 | 0.57047 | 49 | 447 | 5.163265 | 0.673469 | 0.047431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015924 | 0.297539 | 447 | 27 | 74 | 16.555556 | 0.789809 | 0.09396 | 0 | 0 | 0 | 0 | 0.371571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f11ec111b5abe201facddaeec5765dac2ce8506f | 892 | py | Python | flask_unchained/bundles/session/extensions/session.py | achiang/flask-unchained | 12788a6e618904a25ff2b571eb05ff1dc8f1840f | [
"MIT"
] | null | null | null | flask_unchained/bundles/session/extensions/session.py | achiang/flask-unchained | 12788a6e618904a25ff2b571eb05ff1dc8f1840f | [
"MIT"
] | null | null | null | flask_unchained/bundles/session/extensions/session.py | achiang/flask-unchained | 12788a6e618904a25ff2b571eb05ff1dc8f1840f | [
"MIT"
] | null | null | null | import dill
from flask_session import Session as BaseSession
from ..session_interfaces import SqlAlchemySessionInterface
class Session(BaseSession):
"""
The `Session` extension::
from flask_unchained.bundles.session import session
"""
def init_app(self, app):
super().init_app(app)
... | 30.758621 | 64 | 0.672646 | 96 | 892 | 6 | 0.364583 | 0.109375 | 0.194444 | 0.135417 | 0.107639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248879 | 892 | 28 | 65 | 31.857143 | 0.859701 | 0.091928 | 0 | 0 | 0 | 0 | 0.012658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.470588 | 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 |
f12b4e9b6e7d98fadd0b2b5bc758efa4f2665f01 | 2,354 | py | Python | tests/python/correctness/line_properties.py | sid17/weaver | f9074397ca854a777a873eaf409621de679f9749 | [
"BSD-3-Clause"
] | 163 | 2015-01-02T03:51:38.000Z | 2022-03-21T23:06:39.000Z | tests/python/correctness/line_properties.py | sid17/weaver | f9074397ca854a777a873eaf409621de679f9749 | [
"BSD-3-Clause"
] | 1 | 2015-04-08T23:17:06.000Z | 2015-04-24T15:25:26.000Z | tests/python/correctness/line_properties.py | sid17/weaver | f9074397ca854a777a873eaf409621de679f9749 | [
"BSD-3-Clause"
] | 20 | 2015-02-17T19:24:05.000Z | 2020-10-29T01:59:18.000Z | #! /usr/bin/env python
#
# ===============================================================
# Description: Basic test for node/edge properties API.
#
# Created: 2013-12-17 14:50:18
#
# Author: Ayush Dubey, dubey@cs.cornell.edu
#
# Copyright (C) 2013, Cornell University, see the LICENSE file
# ... | 25.042553 | 118 | 0.629142 | 342 | 2,354 | 4.187135 | 0.345029 | 0.062849 | 0.043994 | 0.087989 | 0.292598 | 0.292598 | 0.292598 | 0.272346 | 0.272346 | 0.253492 | 0 | 0.025223 | 0.191589 | 2,354 | 93 | 119 | 25.311828 | 0.727273 | 0.220476 | 0 | 0.293103 | 0 | 0 | 0.205171 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0 | null | null | 0.017241 | 0.086207 | null | null | 0.206897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f131a5b001c17853c72ed71be0dcf0d3d425364b | 484 | py | Python | computable/tests/voting_test.py | computablelabs/computable.py | 0d5a5876ebbb716687775f80757d4e07c0e7ecea | [
"MIT"
] | 9 | 2019-05-09T22:14:35.000Z | 2020-05-17T15:27:53.000Z | computable/tests/voting_test.py | computablelabs/computable.py | 0d5a5876ebbb716687775f80757d4e07c0e7ecea | [
"MIT"
] | 11 | 2019-05-10T18:26:18.000Z | 2019-12-11T16:14:43.000Z | computable/tests/voting_test.py | computablelabs/computable.py | 0d5a5876ebbb716687775f80757d4e07c0e7ecea | [
"MIT"
] | null | null | null | import pytest
import web3
from web3 import Web3
from computable.helpers.transaction import call
def test_deploy(voting):
assert len(voting.account) == 42
assert len(voting.address) == 42
assert voting.account != voting.address
def test_is_candidate(voting):
hash = Web3.sha3(text='nope')
assert cal... | 26.888889 | 54 | 0.731405 | 68 | 484 | 5.102941 | 0.382353 | 0.060519 | 0.080692 | 0.103746 | 0.126801 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.157025 | 484 | 17 | 55 | 28.470588 | 0.821078 | 0 | 0 | 0 | 0 | 0 | 0.02686 | 0 | 0 | 0 | 0 | 0 | 0.357143 | 1 | 0.214286 | false | 0 | 0.285714 | 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 |
f133a263059f24e83fb5d406fa2e99cc7d27573e | 1,015 | py | Python | oneToOneApp/restaurant/migrations/0001_initial.py | Pkaran26/OneToOneRelation | 241d191db7fa24fee86402f097360b29a39c07bf | [
"Apache-2.0"
] | null | null | null | oneToOneApp/restaurant/migrations/0001_initial.py | Pkaran26/OneToOneRelation | 241d191db7fa24fee86402f097360b29a39c07bf | [
"Apache-2.0"
] | null | null | null | oneToOneApp/restaurant/migrations/0001_initial.py | Pkaran26/OneToOneRelation | 241d191db7fa24fee86402f097360b29a39c07bf | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.1 on 2018-09-21 03:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Place',
fi... | 31.71875 | 152 | 0.566502 | 98 | 1,015 | 5.765306 | 0.540816 | 0.042478 | 0.049558 | 0.077876 | 0.099115 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027066 | 0.308374 | 1,015 | 31 | 153 | 32.741935 | 0.777778 | 0.044335 | 0 | 0.333333 | 1 | 0 | 0.083244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f136e39f7789ee3e65db25514afd82158124a781 | 2,391 | py | Python | agent.py | ryuseiotsuka/prorobo2021 | 98ed3946f43b5817d4d97b40d06d270ede50cf7a | [
"BSD-3-Clause"
] | null | null | null | agent.py | ryuseiotsuka/prorobo2021 | 98ed3946f43b5817d4d97b40d06d270ede50cf7a | [
"BSD-3-Clause"
] | null | null | null | agent.py | ryuseiotsuka/prorobo2021 | 98ed3946f43b5817d4d97b40d06d270ede50cf7a | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# ### Agent
# ここでは学習対象の行動を反映するを記述しています.
# ### インポートするモジュール
# ここでは迷路部分を実装しているMapをインポートしています
# In[ ]:
import math
from map import Map
# ### Agent 行動の反映
# ここではAgentがどのように行動するのか,周囲の情報をどのように得ているのかについて記述しています.
#
# -----
# * 周囲の情報の獲得 26-37行目\
# ここでは学習を行う際に必要な自己位置の情報を得る部分について記述してい... | 30.265823 | 184 | 0.624425 | 304 | 2,391 | 4.828947 | 0.319079 | 0.11921 | 0.065395 | 0.049046 | 0.167575 | 0.166213 | 0.147139 | 0.147139 | 0.147139 | 0.147139 | 0 | 0.067303 | 0.21079 | 2,391 | 78 | 185 | 30.653846 | 0.710122 | 0.378921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028571 | 0.057143 | 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 |
f138d2d19b1aa0cbbf51acc6755a2721921148da | 2,592 | py | Python | TRAFFIC_ASSIGNMENT/PYTHON-PRAMESHK/Traffic-Assignment/Unused items/testing.py | uahservtel/uah-gist-mutraff-bastra | b5a4eab4763e1cf9d914c4af8a77426391e71e31 | [
"Xnet",
"Linux-OpenIB",
"X11"
] | 3 | 2019-11-20T15:22:27.000Z | 2021-06-13T07:52:14.000Z | TRAFFIC_ASSIGNMENT/PYTHON-PRAMESHK/Traffic-Assignment/Unused items/testing.py | uahservtel/uah-gist-mutraff-bastra | b5a4eab4763e1cf9d914c4af8a77426391e71e31 | [
"Xnet",
"Linux-OpenIB",
"X11"
] | null | null | null | TRAFFIC_ASSIGNMENT/PYTHON-PRAMESHK/Traffic-Assignment/Unused items/testing.py | uahservtel/uah-gist-mutraff-bastra | b5a4eab4763e1cf9d914c4af8a77426391e71e31 | [
"Xnet",
"Linux-OpenIB",
"X11"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun May 28 21:09:46 2017
@author: Pramesh Kumar
"""
#This is for calling graph
import xlrd # import xlrd python package to play with excel files
import time
import Convex_Combination
file_location = "network.xlsx" #defining excel file location
workbook = xlrd.open_workbook(fi... | 35.506849 | 96 | 0.649306 | 399 | 2,592 | 4.132832 | 0.433584 | 0.038205 | 0.05943 | 0.07641 | 0.200121 | 0.089751 | 0 | 0 | 0 | 0 | 0 | 0.025987 | 0.228009 | 2,592 | 72 | 97 | 36 | 0.798101 | 0.326003 | 0 | 0.047619 | 0 | 0 | 0.064614 | 0.036836 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.119048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f139cf4f557dba56e9f94ea65837898997164751 | 256 | py | Python | Tanay/Tanay_Program_1.py | GoogleDSC-AUL/Algorithmic-Quesions | 5b765b395216ec0207e12e9bfd8b9c8137ff63b7 | [
"MIT"
] | 2 | 2021-12-22T18:44:36.000Z | 2021-12-22T18:44:47.000Z | Tanay/Tanay_Program_1.py | GoogleDSC-AUL/Algorithmic-Quesions | 5b765b395216ec0207e12e9bfd8b9c8137ff63b7 | [
"MIT"
] | 3 | 2021-10-16T10:37:16.000Z | 2021-10-18T06:30:46.000Z | Tanay/Tanay_Program_1.py | GoogleDSC-AUL/Algorithmic-Quesions | 5b765b395216ec0207e12e9bfd8b9c8137ff63b7 | [
"MIT"
] | 14 | 2021-10-16T06:12:56.000Z | 2022-03-19T14:41:24.000Z | #Write a program to input a string and check if it is a palindrome or not.
#This solution is in python programing language
str = input("Enter the string: ")
if str == str[::-1]:
print("String is Palindrome")
else:
print("String is not Palindrome")
| 32 | 74 | 0.707031 | 42 | 256 | 4.309524 | 0.619048 | 0.121547 | 0.143646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004831 | 0.191406 | 256 | 7 | 75 | 36.571429 | 0.869565 | 0.464844 | 0 | 0 | 0 | 0 | 0.459259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 |
f13be94588ccf0176aad98c4116d886330afb34b | 264 | py | Python | 2013/Pico/Bitwise.py | parksjin01/ctf | 098a44f734bb8ce0a99369d1989630e01f248511 | [
"MIT"
] | null | null | null | 2013/Pico/Bitwise.py | parksjin01/ctf | 098a44f734bb8ce0a99369d1989630e01f248511 | [
"MIT"
] | 1 | 2017-03-05T07:08:18.000Z | 2017-03-05T07:12:12.000Z | 2013/Pico/Bitwise.py | parksjin01/ctf | 098a44f734bb8ce0a99369d1989630e01f248511 | [
"MIT"
] | null | null | null | import string
key = string.ascii_letters + '1234567890'
verify_arr = [193, 35, 9, 33, 1, 9, 3, 33, 9, 225]
res = {}
for char in key:
tmp = (((ord(char) << 5) | (ord(char) >> 3)) ^ 111) & 255
res[tmp] = char
for char in verify_arr:
print res[char],
| 18.857143 | 61 | 0.575758 | 44 | 264 | 3.386364 | 0.568182 | 0.120805 | 0.120805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 0.242424 | 264 | 13 | 62 | 20.307692 | 0.57 | 0 | 0 | 0 | 0 | 0 | 0.038023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f1431ba62a60cfaa8bd4f7d3165c1f2161612ec6 | 2,771 | py | Python | test/programytest/storage/stores/nosql/mongo/store/test_oobs.py | cdoebler1/AIML2 | ee692ec5ea3794cd1bc4cc8ec2a6b5e5c20a0d6a | [
"MIT"
] | 345 | 2016-11-23T22:37:04.000Z | 2022-03-30T20:44:44.000Z | test/programytest/storage/stores/nosql/mongo/store/test_oobs.py | MikeyBeez/program-y | 00d7a0c7d50062f18f0ab6f4a041068e119ef7f0 | [
"MIT"
] | 275 | 2016-12-07T10:30:28.000Z | 2022-02-08T21:28:33.000Z | test/programytest/storage/stores/nosql/mongo/store/test_oobs.py | VProgramMist/modified-program-y | f32efcafafd773683b3fe30054d5485fe9002b7d | [
"MIT"
] | 159 | 2016-11-28T18:59:30.000Z | 2022-03-20T18:02:44.000Z | import unittest
from unittest.mock import patch
import programytest.storage.engines as Engines
from programy.storage.stores.nosql.mongo.config import MongoStorageConfiguration
from programy.storage.stores.nosql.mongo.engine import MongoStorageEngine
from programy.storage.stores.nosql.mongo.store.oobs import MongoOOBSto... | 37.958904 | 122 | 0.739805 | 293 | 2,771 | 6.805461 | 0.167235 | 0.072217 | 0.06319 | 0.078235 | 0.721665 | 0.69007 | 0.652959 | 0.616851 | 0.616851 | 0.616851 | 0 | 0 | 0.179358 | 2,771 | 72 | 123 | 38.486111 | 0.876869 | 0 | 0 | 0.561404 | 0 | 0 | 0.060628 | 0.050523 | 0 | 0 | 0 | 0 | 0.140351 | 1 | 0.140351 | false | 0 | 0.122807 | 0 | 0.280702 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f1453ba0ac96a97680227f35aa621761a6a0be0f | 334 | py | Python | core/accounts/migrations/0005_remove_account_isverified.py | dotHashemi/qeshm-employment | 3f7bd2b50b8cae0df74c1abbb5befe1f46546dc9 | [
"MIT"
] | 2 | 2021-01-12T07:22:14.000Z | 2021-01-12T15:47:00.000Z | core/accounts/migrations/0005_remove_account_isverified.py | dotHashemi/qeshm-employment | 3f7bd2b50b8cae0df74c1abbb5befe1f46546dc9 | [
"MIT"
] | null | null | null | core/accounts/migrations/0005_remove_account_isverified.py | dotHashemi/qeshm-employment | 3f7bd2b50b8cae0df74c1abbb5befe1f46546dc9 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-01-12 14:38
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0004_auto_20210112_1657'),
]
operations = [
migrations.RemoveField(
model_name='account',
name='isVerified',
... | 18.555556 | 48 | 0.598802 | 35 | 334 | 5.6 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130802 | 0.290419 | 334 | 17 | 49 | 19.647059 | 0.696203 | 0.134731 | 0 | 0 | 1 | 0 | 0.167247 | 0.080139 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f1464b4dcf92765a48574dd775ef1230000811ec | 1,795 | py | Python | cnn/trainRegime/optimalModel.py | aqui-tna/darts-UNIQ | 293a27b104bc0f53c6093829d1184686b788fba9 | [
"Apache-2.0"
] | 6 | 2019-04-28T05:30:00.000Z | 2020-01-21T08:16:13.000Z | cnn/trainRegime/optimalModel.py | aqui-tna/darts-UNIQ | 293a27b104bc0f53c6093829d1184686b788fba9 | [
"Apache-2.0"
] | null | null | null | cnn/trainRegime/optimalModel.py | aqui-tna/darts-UNIQ | 293a27b104bc0f53c6093829d1184686b788fba9 | [
"Apache-2.0"
] | 5 | 2019-04-29T05:57:04.000Z | 2021-04-21T00:19:11.000Z | from torch import save as saveModel
from .regime import TrainRegime, save_checkpoint
class OptimalModel(TrainRegime):
def __init__(self, args, logger):
# update arguments relevant to optimal model training
args.init_weights_train = True
args.copyBaselineKeys = True
# args.infer_ep... | 43.780488 | 128 | 0.654596 | 177 | 1,795 | 6.531073 | 0.423729 | 0.038927 | 0.020761 | 0.029412 | 0.081315 | 0.081315 | 0 | 0 | 0 | 0 | 0 | 0.005113 | 0.237326 | 1,795 | 40 | 129 | 44.875 | 0.839299 | 0.613928 | 0 | 0 | 0 | 0 | 0.039039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f14b334eb59c9424c31b82c3d4bc670700f84808 | 13,746 | py | Python | trackhubs/models.py | Ensembl/thr | 3b393f28441c9b6b1490fbf60b721e18dd0af2d8 | [
"Apache-2.0"
] | null | null | null | trackhubs/models.py | Ensembl/thr | 3b393f28441c9b6b1490fbf60b721e18dd0af2d8 | [
"Apache-2.0"
] | 4 | 2020-09-01T17:01:13.000Z | 2021-06-10T20:33:50.000Z | trackhubs/models.py | Ensembl/thr | 3b393f28441c9b6b1490fbf60b721e18dd0af2d8 | [
"Apache-2.0"
] | 1 | 2020-12-17T16:55:35.000Z | 2020-12-17T16:55:35.000Z | """
.. See the NOTICE file distributed with this work for additional information
regarding copyright ownership.
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.or... | 39.274286 | 130 | 0.639822 | 1,635 | 13,746 | 5.190214 | 0.185321 | 0.056564 | 0.065755 | 0.087674 | 0.393943 | 0.366015 | 0.314047 | 0.281051 | 0.221895 | 0.189135 | 0 | 0.012688 | 0.260367 | 13,746 | 349 | 131 | 39.386819 | 0.821973 | 0.187909 | 0 | 0.21267 | 0 | 0 | 0.079989 | 0 | 0 | 0 | 0 | 0.008596 | 0 | 1 | 0.054299 | false | 0 | 0.058824 | 0.013575 | 0.552036 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f14c6c7782c9e58186f1df83c9207919235d3e5d | 341 | py | Python | sysman_api/systems/migrations/0018_remove_managedsystem_sys_scans.py | jsyme222/django-sysman | e54ca2ba904f295c1a70a6555ec617caa058d92d | [
"Apache-2.0"
] | null | null | null | sysman_api/systems/migrations/0018_remove_managedsystem_sys_scans.py | jsyme222/django-sysman | e54ca2ba904f295c1a70a6555ec617caa058d92d | [
"Apache-2.0"
] | null | null | null | sysman_api/systems/migrations/0018_remove_managedsystem_sys_scans.py | jsyme222/django-sysman | e54ca2ba904f295c1a70a6555ec617caa058d92d | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-18 17:49
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('systems', '0017_systemscan_subdomains'),
]
operations = [
migrations.RemoveField(
model_name='managedsystem',
name='sys_scan... | 18.944444 | 50 | 0.607038 | 35 | 341 | 5.8 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077869 | 0.284457 | 341 | 17 | 51 | 20.058824 | 0.754098 | 0.131965 | 0 | 0 | 1 | 0 | 0.187075 | 0.088435 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f14ee0863aba57951607fc2c2bdbc4d5dcf805e1 | 315 | py | Python | aptplay.py | rrashkin/apturl-elm | df0ed4191d819d783da784ddf0cdd921eccc2eff | [
"BSD-3-Clause"
] | null | null | null | aptplay.py | rrashkin/apturl-elm | df0ed4191d819d783da784ddf0cdd921eccc2eff | [
"BSD-3-Clause"
] | null | null | null | aptplay.py | rrashkin/apturl-elm | df0ed4191d819d783da784ddf0cdd921eccc2eff | [
"BSD-3-Clause"
] | null | null | null | ''' A file for testing the python apt module'''
# import sys
import apt
PACKAGE_NAME = "chromium-browser"
CACHE = apt.cache.Cache()
# CACHE.update()
if PACKAGE_NAME in CACHE:
PACKAGE = CACHE[PACKAGE_NAME]
print((PACKAGE.versions[0].description))
else:
print(("Package %s not found" % PACKAGE_NAME))
| 19.6875 | 50 | 0.701587 | 44 | 315 | 4.931818 | 0.590909 | 0.202765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003817 | 0.168254 | 315 | 15 | 51 | 21 | 0.824427 | 0.212698 | 0 | 0 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.25 | 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 |
f1560be20d0f116410495e6626e9be77bf4829e7 | 607 | py | Python | colassigner/tests/test_type_retention.py | endremborza/colassigner | 27075ac8227f82b0529bbf5c471344cf0aa7d86d | [
"MIT"
] | null | null | null | colassigner/tests/test_type_retention.py | endremborza/colassigner | 27075ac8227f82b0529bbf5c471344cf0aa7d86d | [
"MIT"
] | null | null | null | colassigner/tests/test_type_retention.py | endremborza/colassigner | 27075ac8227f82b0529bbf5c471344cf0aa7d86d | [
"MIT"
] | 1 | 2022-01-05T10:00:45.000Z | 2022-01-05T10:00:45.000Z | from colassigner import ColAccessor, get_att_value
def test_type_retention():
class TestCols(ColAccessor):
fing = int
class SubCol(ColAccessor):
a = int
b = float
class SubSubCol(ColAccessor):
x = str
y = str
class... | 23.346154 | 79 | 0.588138 | 64 | 607 | 5.421875 | 0.40625 | 0.069164 | 0.126801 | 0.146974 | 0.25072 | 0.178674 | 0 | 0 | 0 | 0 | 0 | 0.007426 | 0.334432 | 607 | 25 | 80 | 24.28 | 0.851485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.055556 | false | 0.055556 | 0.055556 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f165828c4684a335448c952a0b95b55b25a6e532 | 1,867 | py | Python | e81.py | tdierks/project-euler | 2364c5282b2b534c6ca413f20ef5bc667dd45340 | [
"MIT"
] | null | null | null | e81.py | tdierks/project-euler | 2364c5282b2b534c6ca413f20ef5bc667dd45340 | [
"MIT"
] | null | null | null | e81.py | tdierks/project-euler | 2364c5282b2b534c6ca413f20ef5bc667dd45340 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import argparse
import sys
from itertools import *
import math
import operator
def euler81(matrix):
"""Given an input matrix (array of MxN integers), find the path from top-left to
bottom-right with a minimal sum. Return that sum"""
# dict from (x,y) to (cost, (cell_list))
paths = {}
pa... | 25.22973 | 92 | 0.596144 | 265 | 1,867 | 4.120755 | 0.418868 | 0.049451 | 0.018315 | 0.029304 | 0.047619 | 0.047619 | 0.047619 | 0.047619 | 0 | 0 | 0 | 0.030239 | 0.23835 | 1,867 | 73 | 93 | 25.575342 | 0.737693 | 0.029459 | 0 | 0.107143 | 0 | 0 | 0.052002 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017857 | 0.089286 | 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 |
f174aea5e0bce7a93d4fbe0db55744b7dc9a45fa | 2,685 | py | Python | api_tests/requests/views/test_request_action_list.py | gaybro8777/osf.io | 30408511510a40bc393565817b343ef5fd76ab14 | [
"Apache-2.0"
] | 628 | 2015-01-15T04:33:22.000Z | 2022-03-30T06:40:10.000Z | api_tests/requests/views/test_request_action_list.py | gaybro8777/osf.io | 30408511510a40bc393565817b343ef5fd76ab14 | [
"Apache-2.0"
] | 4,712 | 2015-01-02T01:41:53.000Z | 2022-03-30T14:18:40.000Z | api_tests/requests/views/test_request_action_list.py | Johnetordoff/osf.io | de10bf249c46cede04c78f7e6f7e352c69e6e6b5 | [
"Apache-2.0"
] | 371 | 2015-01-12T16:14:08.000Z | 2022-03-31T18:58:29.000Z | import pytest
from api.base.settings.defaults import API_BASE
from api_tests.requests.mixins import PreprintRequestTestMixin
@pytest.mark.enable_quickfiles_creation
@pytest.mark.django_db
class TestPreprintRequestActionList(PreprintRequestTestMixin):
def url(self, request):
return '/{}requests/{}/actions/... | 53.7 | 167 | 0.678957 | 360 | 2,685 | 4.841667 | 0.194444 | 0.080321 | 0.075732 | 0.052209 | 0.693058 | 0.675273 | 0.660929 | 0.609868 | 0.600688 | 0.518072 | 0 | 0.015342 | 0.198883 | 2,685 | 49 | 168 | 54.795918 | 0.794979 | 0 | 0 | 0.465116 | 0 | 0 | 0.057728 | 0.008566 | 0 | 0 | 0 | 0 | 0.44186 | 1 | 0.116279 | false | 0 | 0.069767 | 0.023256 | 0.232558 | 0.046512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f1765b475a2ae403dc2ff1757b83243873a30e22 | 861 | py | Python | src/academics/models.py | git-vish/CodeSpaceAPI | 7ad4327e0eef3019098730358c4a23312bc85615 | [
"Apache-2.0"
] | 1 | 2021-07-01T17:15:11.000Z | 2021-07-01T17:15:11.000Z | src/academics/models.py | git-vish/CodeSpaceAPI | 7ad4327e0eef3019098730358c4a23312bc85615 | [
"Apache-2.0"
] | null | null | null | src/academics/models.py | git-vish/CodeSpaceAPI | 7ad4327e0eef3019098730358c4a23312bc85615 | [
"Apache-2.0"
] | null | null | null | """Pydantic schemas for Academics API.
"""
# Author Info
__author__ = 'Vishwajeet Ghatage'
__date__ = '10/07/21'
__email__ = 'cloudmail.vishwajeet@gmail.com'
# Library Imports
from typing import List
from pydantic import BaseModel
class Subject(BaseModel):
"""Used inside semester."""
key: str
name: str
... | 17.22 | 44 | 0.666667 | 99 | 861 | 5.656566 | 0.484848 | 0.092857 | 0.101786 | 0.096429 | 0.214286 | 0.214286 | 0.214286 | 0.214286 | 0.214286 | 0.214286 | 0 | 0.008837 | 0.211382 | 861 | 49 | 45 | 17.571429 | 0.815906 | 0.214866 | 0 | 0.24 | 0 | 0 | 0.087774 | 0.047022 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.88 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f17b9af109558c429b91f0c81c88c5fb2b85ec9a | 2,220 | py | Python | pyci/shell/secrets.py | iliapolo/pyrelease | 85784c556a0760d560378ef6edcfb32ab87048a5 | [
"Apache-2.0"
] | 5 | 2018-05-03T15:20:12.000Z | 2019-12-13T20:19:47.000Z | pyci/shell/secrets.py | iliapolo/pyci | 85784c556a0760d560378ef6edcfb32ab87048a5 | [
"Apache-2.0"
] | 54 | 2018-04-09T06:34:50.000Z | 2020-03-30T06:13:39.000Z | pyci/shell/secrets.py | iliapolo/pyrelease | 85784c556a0760d560378ef6edcfb32ab87048a5 | [
"Apache-2.0"
] | null | null | null | #############################################################################
# Copyright (c) 2018 Eli Polonsky. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http... | 33.134328 | 94 | 0.65045 | 271 | 2,220 | 5.195572 | 0.380074 | 0.068182 | 0.096591 | 0.036222 | 0.37642 | 0.37642 | 0.337358 | 0.245028 | 0.216619 | 0.152699 | 0 | 0.004535 | 0.205405 | 2,220 | 66 | 95 | 33.636364 | 0.793651 | 0.286036 | 0 | 0.103448 | 0 | 0 | 0.228592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0.241379 | 0.103448 | 0.034483 | 0.482759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f181593395d33c6b89dcd37c0625b133a1788f0a | 981 | py | Python | packages/core/minos-microservice-common/tests/test_common/test_database/test_locks.py | minos-framework/minos-python | 9a6ad6783361f3d8a497a088808b55ea7a938c6c | [
"MIT"
] | 247 | 2022-01-24T14:55:30.000Z | 2022-03-25T12:06:17.000Z | packages/core/minos-microservice-common/tests/test_common/test_database/test_locks.py | minos-framework/minos-python | 9a6ad6783361f3d8a497a088808b55ea7a938c6c | [
"MIT"
] | 168 | 2022-01-24T14:54:31.000Z | 2022-03-31T09:31:09.000Z | packages/core/minos-microservice-common/tests/test_common/test_database/test_locks.py | minos-framework/minos-python | 9a6ad6783361f3d8a497a088808b55ea7a938c6c | [
"MIT"
] | 21 | 2022-02-06T17:25:58.000Z | 2022-03-27T04:50:29.000Z | import unittest
from minos.common import (
DatabaseLock,
Lock,
)
from minos.common.testing import (
MockedDatabaseClient,
)
class TestDatabaseLock(unittest.IsolatedAsyncioTestCase):
def test_base(self):
self.assertTrue(issubclass(DatabaseLock, Lock))
async def test_client(self):
... | 25.153846 | 57 | 0.665647 | 97 | 981 | 6.56701 | 0.329897 | 0.054945 | 0.075353 | 0.160126 | 0.339089 | 0.339089 | 0.339089 | 0.339089 | 0.339089 | 0.229199 | 0 | 0 | 0.229358 | 981 | 38 | 58 | 25.815789 | 0.842593 | 0 | 0 | 0.241379 | 0 | 0 | 0.023445 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 1 | 0.034483 | false | 0 | 0.103448 | 0 | 0.172414 | 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 |
f18b59d6871ef46303432b491c45784663633aeb | 4,402 | py | Python | issuetracker/settings.py | alexander4k/unicorn-attractor-issue-tracker | 29b21046c528df40018c275d52f190d40d30d327 | [
"OML"
] | 1 | 2021-02-07T00:20:59.000Z | 2021-02-07T00:20:59.000Z | issuetracker/settings.py | alexander4k/unicorn-attractor-issue-tracker | 29b21046c528df40018c275d52f190d40d30d327 | [
"OML"
] | null | null | null | issuetracker/settings.py | alexander4k/unicorn-attractor-issue-tracker | 29b21046c528df40018c275d52f190d40d30d327 | [
"OML"
] | 2 | 2019-04-25T20:45:12.000Z | 2021-02-07T01:44:08.000Z | """
Django settings for issuetracker project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | 28.217949 | 91 | 0.701726 | 506 | 4,402 | 5.922925 | 0.371542 | 0.07374 | 0.045379 | 0.041708 | 0.160827 | 0.133133 | 0.067067 | 0.067067 | 0.041041 | 0 | 0 | 0.014348 | 0.160836 | 4,402 | 156 | 92 | 28.217949 | 0.796968 | 0.145161 | 0 | 0 | 1 | 0 | 0.481986 | 0.339205 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.04717 | 0.028302 | 0 | 0.028302 | 0.009434 | 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 |
f1911c94b3e03779f5ce7305305cf22cf8149908 | 8,108 | py | Python | app/main/models.py | gems-uff/sms | 01cfa84bd467617c58f58da04711c5097dd93fe6 | [
"MIT"
] | null | null | null | app/main/models.py | gems-uff/sms | 01cfa84bd467617c58f58da04711c5097dd93fe6 | [
"MIT"
] | null | null | null | app/main/models.py | gems-uff/sms | 01cfa84bd467617c58f58da04711c5097dd93fe6 | [
"MIT"
] | null | null | null | import jsonpickle
from datetime import datetime
from sqlalchemy import (Column, Integer, String, DateTime, UniqueConstraint,
ForeignKey, Date, Numeric, Boolean, CheckConstraint)
from sqlalchemy.orm import relationship, backref
from flask_sqlalchemy import Model
from app.extensions import db
fr... | 35.718062 | 76 | 0.643562 | 886 | 8,108 | 5.683973 | 0.190745 | 0.043884 | 0.032764 | 0.050238 | 0.401311 | 0.316124 | 0.221406 | 0.1666 | 0.148332 | 0.109611 | 0 | 0.00844 | 0.254687 | 8,108 | 226 | 77 | 35.876106 | 0.824921 | 0.087815 | 0 | 0.209877 | 0 | 0 | 0.10922 | 0.007082 | 0 | 0 | 0 | 0.004425 | 0 | 1 | 0.067901 | false | 0 | 0.04321 | 0.018519 | 0.598765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f191d777b2e630e890ad362ed3b4dbbdde7ff8c5 | 6,967 | py | Python | calingen/views/profile.py | Mischback/django-calingen | 3354c751e29d301609ec44e64d69a8729ec36de4 | [
"MIT"
] | null | null | null | calingen/views/profile.py | Mischback/django-calingen | 3354c751e29d301609ec44e64d69a8729ec36de4 | [
"MIT"
] | 51 | 2021-11-15T20:44:19.000Z | 2022-02-10T08:33:08.000Z | calingen/views/profile.py | Mischback/django-calingen | 3354c751e29d301609ec44e64d69a8729ec36de4 | [
"MIT"
] | null | null | null | # SPDX-License-Identifier: MIT
"""Views related to the :class:`calingen.models.profile.Profile` model."""
# Django imports
from django.conf import settings
from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.db import IntegrityError
from django.shortcuts import re... | 33.657005 | 106 | 0.667863 | 836 | 6,967 | 5.495215 | 0.273923 | 0.030475 | 0.045712 | 0.050936 | 0.432521 | 0.412712 | 0.323901 | 0.323901 | 0.306487 | 0.306487 | 0 | 0.000374 | 0.232238 | 6,967 | 206 | 107 | 33.820388 | 0.858478 | 0.331994 | 0 | 0.362319 | 0 | 0 | 0.079048 | 0.008058 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.507246 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
74aef98a13a8519f8c12432a2d6bfffdf6204b7b | 695 | py | Python | src/orders/migrations/0011_NotificationToGiverIsSent.py | denkasyanov/education-backend | c796b6f2f1cc1cd09f83cab2ca0cc45344906ef5 | [
"MIT"
] | 151 | 2020-04-21T09:58:57.000Z | 2021-09-12T09:01:21.000Z | src/orders/migrations/0011_NotificationToGiverIsSent.py | tlgtaa/education-backend | 86f8af315f9cff2c1fd19406899d593fc0852124 | [
"MIT"
] | 163 | 2020-05-29T20:52:00.000Z | 2021-09-11T12:44:56.000Z | src/orders/migrations/0011_NotificationToGiverIsSent.py | boochamoocha/education-backend | c6ffb0c00bc066c8f1e0a8c0ffe4d0215c7c416a | [
"MIT"
] | 39 | 2020-04-21T12:28:16.000Z | 2021-09-12T15:33:47.000Z | # Generated by Django 3.1.4 on 2020-12-31 21:27
from django.db import migrations, models
def mark_giver_notification_as_sent_for_all_previous_orders(apps, schema_editor):
apps.get_model('orders.Order').objects.filter(giver__isnull=False) \
.update(notification_to_giver_is_sent=True)
class Migration(mig... | 27.8 | 86 | 0.700719 | 84 | 695 | 5.440476 | 0.630952 | 0.039387 | 0.091904 | 0.100656 | 0.315098 | 0.205689 | 0.205689 | 0.205689 | 0.205689 | 0 | 0 | 0.037838 | 0.201439 | 695 | 24 | 87 | 28.958333 | 0.785586 | 0.064748 | 0 | 0 | 1 | 0 | 0.101852 | 0.044753 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74b8cd788d94d6170e359ee32cb4ebb66e51cf94 | 3,389 | py | Python | tests/test_hyperparameters.py | prodigyfinance/ml2p | a6df55e9ce81e68619fd2f2891981a39a9186651 | [
"0BSD"
] | 3 | 2021-10-11T05:35:45.000Z | 2022-02-21T09:54:16.000Z | tests/test_hyperparameters.py | hodgestar/ml2p | 3f82e7fbf79345cead67ee18de88589a1ae82b97 | [
"0BSD"
] | 7 | 2020-09-16T13:55:16.000Z | 2021-06-11T08:38:03.000Z | tests/test_hyperparameters.py | hodgestar/ml2p | 3f82e7fbf79345cead67ee18de88589a1ae82b97 | [
"0BSD"
] | 3 | 2020-09-15T14:38:25.000Z | 2020-09-17T20:35:35.000Z | # -*- coding: utf-8 -*-
""" Tests for ml2p.hyperparameters. """
import pytest
from ml2p.hyperparameters import HyperParameterEncodingError, decode, encode
class TestEncode:
def test_int(self):
assert encode({"a": 1}) == {"a": "1"}
def test_float(self):
assert encode({"a": 1.2}) == {"a": "1... | 30.809091 | 87 | 0.505164 | 457 | 3,389 | 3.660832 | 0.194748 | 0.096234 | 0.086073 | 0.091452 | 0.640167 | 0.564854 | 0.531978 | 0.467424 | 0.398087 | 0.1841 | 0 | 0.053174 | 0.284155 | 3,389 | 109 | 88 | 31.091743 | 0.636439 | 0.030983 | 0 | 0.341772 | 0 | 0 | 0.140153 | 0 | 0 | 0 | 0 | 0 | 0.291139 | 1 | 0.291139 | false | 0 | 0.025316 | 0 | 0.341772 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
74ba528df26009b93b90764faee4fb0e9e754da1 | 1,794 | py | Python | aiotracemoeapi/types.py | Fenicu/AioTraceMoeAPI | a56526503776bcbab82372527158b0ce9af1621d | [
"MIT"
] | 2 | 2021-08-29T14:28:00.000Z | 2021-09-10T10:02:05.000Z | aiotracemoeapi/types.py | Fenicu/AioTraceMoeAPI | a56526503776bcbab82372527158b0ce9af1621d | [
"MIT"
] | 1 | 2021-09-07T03:05:19.000Z | 2021-09-07T05:09:17.000Z | aiotracemoeapi/types.py | Fenicu/AioTraceMoeAPI | a56526503776bcbab82372527158b0ce9af1621d | [
"MIT"
] | 2 | 2021-09-24T09:12:08.000Z | 2021-09-24T09:53:49.000Z | from datetime import datetime
from typing import Dict, List, Optional, Union
from pydantic import BaseModel, Field, validator
from .utils import clamp
class RateLimit(BaseModel):
limit: int = Field(alias="X-RateLimit-Limit")
remaining: int = Field(alias="X-RateLimit-Remaining")
reset: int = Field(alias=... | 24.916667 | 75 | 0.665552 | 219 | 1,794 | 5.388128 | 0.351598 | 0.076271 | 0.066102 | 0.035593 | 0.058475 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001414 | 0.211817 | 1,794 | 71 | 76 | 25.267606 | 0.833098 | 0 | 0 | 0.113208 | 0 | 0 | 0.081382 | 0.011706 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0 | 0.075472 | 0.09434 | 0.886792 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
74bcad2a54bfa977b8219dc0fe6d7e8591416a36 | 1,819 | py | Python | linter.py | phpdude/api-blueprint-sublime-plugin | cd4b76c3e46fa7e9e3f29a12f44dcc97ab9ac258 | [
"MIT"
] | 130 | 2015-01-12T01:39:17.000Z | 2021-05-09T07:16:40.000Z | linter.py | phpdude/api-blueprint-sublime-plugin | cd4b76c3e46fa7e9e3f29a12f44dcc97ab9ac258 | [
"MIT"
] | 25 | 2015-01-23T08:01:10.000Z | 2021-08-17T03:24:18.000Z | linter.py | phpdude/api-blueprint-sublime-plugin | cd4b76c3e46fa7e9e3f29a12f44dcc97ab9ac258 | [
"MIT"
] | 24 | 2015-01-23T06:04:23.000Z | 2022-02-05T15:48:32.000Z | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by William Meldon
# Copyright (c) 2013 William Meldon
# https://github.com/WMeldon/SublimeLinter-apiblueprint
#
# Modified by Zdenek Nemec
#
# License: MIT
"""This module exports the Apiblueprint plugin class."""
def ... | 29.33871 | 104 | 0.592084 | 203 | 1,819 | 5.241379 | 0.551724 | 0.032895 | 0.020677 | 0.022556 | 0.065789 | 0.065789 | 0.065789 | 0 | 0 | 0 | 0 | 0.010015 | 0.286421 | 1,819 | 61 | 105 | 29.819672 | 0.809707 | 0.247389 | 0 | 0 | 0 | 0.03125 | 0.19429 | 0.092784 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.65625 | 0.15625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
74c0f1ba67732b594d67eb5181d803c768fa9cfc | 572 | py | Python | mintoweb/http_parser.py | decebel/mintoweb | 6479c20331ed339d35de1ef9bfef09f2abd5a1a8 | [
"Apache-2.0"
] | null | null | null | mintoweb/http_parser.py | decebel/mintoweb | 6479c20331ed339d35de1ef9bfef09f2abd5a1a8 | [
"Apache-2.0"
] | null | null | null | mintoweb/http_parser.py | decebel/mintoweb | 6479c20331ed339d35de1ef9bfef09f2abd5a1a8 | [
"Apache-2.0"
] | null | null | null | import os
import sys
from request import Request, RequestError
BASE_URL = "http://appengine.com/"
RESOURCE_SEPARATOR = "/"
def get_url_endpoint(url):
if not url:
return None
if RESOURCE_SEPARATOR not in url:
return None
parts = url.split("/")
if not parts or not parts[0]:
return None
return parts[... | 11.673469 | 48 | 0.687063 | 88 | 572 | 4.397727 | 0.534091 | 0.077519 | 0.067183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004515 | 0.225524 | 572 | 48 | 49 | 11.916667 | 0.869074 | 0 | 0 | 0.130435 | 0 | 0 | 0.055437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
74d7af2ad88553650a6e63a27da84b3c2ca3f7b0 | 715 | py | Python | apps/organization/migrations/0008_auto_20190601_0033.py | zhangcw/mxonline | f9ccb5dbdc895e2c71e9426392de154d304f2b39 | [
"Apache-2.0"
] | null | null | null | apps/organization/migrations/0008_auto_20190601_0033.py | zhangcw/mxonline | f9ccb5dbdc895e2c71e9426392de154d304f2b39 | [
"Apache-2.0"
] | null | null | null | apps/organization/migrations/0008_auto_20190601_0033.py | zhangcw/mxonline | f9ccb5dbdc895e2c71e9426392de154d304f2b39 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.1 on 2019-06-01 00:33
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('organization', '0007_auto_20190529_0137'),
]
operations = [
migrations.AddField(
model_name='co... | 28.6 | 152 | 0.627972 | 80 | 715 | 5.4875 | 0.6375 | 0.05467 | 0.063781 | 0.100228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 0.246154 | 715 | 24 | 153 | 29.791667 | 0.753247 | 0.062937 | 0 | 0.222222 | 1 | 0 | 0.136228 | 0.065868 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74e4dcaed7baab7581fd89386738f3d3f99cdd0f | 969 | py | Python | app/__init__.py | Liangchengdeye/FlaskQuickStart | b91994b0c1a088182e37568a879ee533ce63a74e | [
"Apache-2.0"
] | 44 | 2019-06-12T06:43:25.000Z | 2021-11-15T06:14:12.000Z | app/__init__.py | Solin1998/FlaskQuickStart | b91994b0c1a088182e37568a879ee533ce63a74e | [
"Apache-2.0"
] | 2 | 2019-08-07T09:09:55.000Z | 2021-05-20T12:34:24.000Z | app/__init__.py | Solin1998/FlaskQuickStart | b91994b0c1a088182e37568a879ee533ce63a74e | [
"Apache-2.0"
] | 25 | 2019-07-03T09:47:55.000Z | 2021-12-19T06:48:18.000Z | #!/usr/bin/python3
# encoding: utf-8
"""
@version: v1.0
@author: W_H_J
@license: Apache Licence
@contact: 415900617@qq.com
@software: PyCharm
@file: __init__.py.py
@time: 2019/5/27 17:51
@describe: flask 各类配置连接初始化
"""
import sys
import os
from flask_login import LoginManager
from config import Config
from ... | 26.916667 | 91 | 0.752322 | 138 | 969 | 5.07971 | 0.521739 | 0.064194 | 0.03709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.114551 | 969 | 35 | 92 | 27.685714 | 0.786713 | 0.278638 | 0 | 0 | 0 | 0 | 0.078603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.45 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
74f2d4ebfc008e3190ab75f42f7c993648623482 | 3,084 | py | Python | cryptodetector/method.py | nondejus/crypto-detector | af6a95ed837d407027e2a09956e2c90eb9f52899 | [
"Apache-2.0"
] | 109 | 2017-06-22T08:33:50.000Z | 2022-03-15T10:17:30.000Z | cryptodetector/method.py | nondejus/crypto-detector | af6a95ed837d407027e2a09956e2c90eb9f52899 | [
"Apache-2.0"
] | 2 | 2020-04-09T08:40:31.000Z | 2020-05-02T22:45:13.000Z | cryptodetector/method.py | nondejus/crypto-detector | af6a95ed837d407027e2a09956e2c90eb9f52899 | [
"Apache-2.0"
] | 21 | 2018-06-02T21:51:42.000Z | 2022-03-18T12:59:05.000Z | """
Copyright (c) 2017 Wind River Systems, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | 34.266667 | 100 | 0.653372 | 379 | 3,084 | 5.237467 | 0.403694 | 0.040302 | 0.052393 | 0.028715 | 0.24937 | 0.238287 | 0.215113 | 0.215113 | 0.175819 | 0.175819 | 0 | 0.003604 | 0.280156 | 3,084 | 89 | 101 | 34.651685 | 0.890541 | 0.499676 | 0 | 0.214286 | 0 | 0 | 0.113602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.107143 | 0.071429 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
74f3a60fdc23f8b257baf3fbaf25c828e2f7dc42 | 454 | py | Python | main.py | bendun-io/pyfolio-performance | 48d4257da803d0ecced01f1f70f9c75c6aaa7e02 | [
"MIT"
] | null | null | null | main.py | bendun-io/pyfolio-performance | 48d4257da803d0ecced01f1f70f9c75c6aaa7e02 | [
"MIT"
] | null | null | null | main.py | bendun-io/pyfolio-performance | 48d4257da803d0ecced01f1f70f9c75c6aaa7e02 | [
"MIT"
] | null | null | null | from pyfolio_performance import Portfolio, Security
if __name__ == "__main__":
portPerf = Portfolio("02_portfolio.xml")
testSecurity = Security.getSecurityByName("BP")
print(portPerf.getShares(testSecurity)) # should be around 122
# Testing the methods
print(Security.getSecurityByIsin("US885... | 30.266667 | 66 | 0.735683 | 45 | 454 | 7.2 | 0.666667 | 0.12037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051948 | 0.151982 | 454 | 15 | 67 | 30.266667 | 0.78961 | 0.088106 | 0 | 0 | 0 | 0 | 0.106796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.555556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
74ff93d152d2f99e4afecf0d17ca6f7f2785507f | 1,423 | py | Python | utils/accumulators.py | iam-sr13/attention-cnn | aa54b12f0a6446d447788b9f7265004922228b3b | [
"Apache-2.0"
] | 974 | 2019-11-12T08:00:21.000Z | 2022-03-31T02:24:07.000Z | utils/accumulators.py | iam-sr13/attention-cnn | aa54b12f0a6446d447788b9f7265004922228b3b | [
"Apache-2.0"
] | 7 | 2020-01-25T10:37:29.000Z | 2021-12-02T15:08:23.000Z | utils/accumulators.py | iam-sr13/attention-cnn | aa54b12f0a6446d447788b9f7265004922228b3b | [
"Apache-2.0"
] | 124 | 2019-11-13T23:31:59.000Z | 2022-03-05T15:32:02.000Z | import torch
from copy import deepcopy
class Mean:
"""
Running average of the values that are 'add'ed
"""
def __init__(self, update_weight=1):
"""
:param update_weight: 1 for normal, 2 for t-average
"""
self.average = None
self.counter = 0
self.update_wei... | 26.849057 | 105 | 0.565706 | 176 | 1,423 | 4.494318 | 0.306818 | 0.111252 | 0.08091 | 0.040455 | 0.275601 | 0.275601 | 0.212389 | 0.212389 | 0.212389 | 0.131479 | 0 | 0.006376 | 0.338721 | 1,423 | 52 | 106 | 27.365385 | 0.834219 | 0.243148 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0 | 0.482759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2d077f34e1855d1701c7b86184a128aef793d10d | 1,676 | py | Python | jojo/action/list_version_action.py | spiarh/jojo | 074ec90b216341a1fac5252ebfc7e3f7e2864b4c | [
"MIT"
] | null | null | null | jojo/action/list_version_action.py | spiarh/jojo | 074ec90b216341a1fac5252ebfc7e3f7e2864b4c | [
"MIT"
] | null | null | null | jojo/action/list_version_action.py | spiarh/jojo | 074ec90b216341a1fac5252ebfc7e3f7e2864b4c | [
"MIT"
] | null | null | null | import argparse
import logging
import typing
import action
import config
import util
LOGGER = logging.getLogger(__name__)
class ListVersionAction(action.JojoAction):
'''
List the available version of a package from OS repo or GIT.
'''
def run(
self,
parser: argparse.Argument... | 29.403509 | 74 | 0.598449 | 196 | 1,676 | 4.94898 | 0.367347 | 0.102062 | 0.024742 | 0.061856 | 0.043299 | 0.043299 | 0.043299 | 0.043299 | 0 | 0 | 0 | 0 | 0.318019 | 1,676 | 56 | 75 | 29.928571 | 0.848644 | 0.152148 | 0 | 0 | 0 | 0 | 0.061119 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.029412 | false | 0 | 0.176471 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
2d0acf4b0a47bd777089ebc2ff105dab4e28c057 | 3,597 | py | Python | tests/economics/test_cost.py | textbook/py_wlc | dd54d747029d3528b5a2f78a43f22391f8a8c4f5 | [
"MIT"
] | null | null | null | tests/economics/test_cost.py | textbook/py_wlc | dd54d747029d3528b5a2f78a43f22391f8a8c4f5 | [
"MIT"
] | 1 | 2015-09-11T16:34:06.000Z | 2015-09-11T16:34:06.000Z | tests/economics/test_cost.py | textbook/py_wlc | dd54d747029d3528b5a2f78a43f22391f8a8c4f5 | [
"MIT"
] | null | null | null | import pytest
from py_wlc.economics import Cost, Discount, GdpDeflator
TOLERANCE = 0.0001
@pytest.fixture(scope="module")
def discount():
return Discount(2010)
@pytest.fixture(scope="module")
def deflator():
return GdpDeflator(2010, {2010: 0.03}, True)
class TestClassMethods:
def test_validate_type_... | 37.082474 | 77 | 0.626077 | 441 | 3,597 | 4.981859 | 0.15873 | 0.160218 | 0.100592 | 0.095585 | 0.595357 | 0.458807 | 0.436959 | 0.401912 | 0.345471 | 0.324533 | 0 | 0.074905 | 0.268835 | 3,597 | 97 | 78 | 37.082474 | 0.760456 | 0 | 0 | 0.146667 | 0 | 0 | 0.003335 | 0 | 0 | 0 | 0 | 0 | 0.213333 | 1 | 0.173333 | false | 0.066667 | 0.026667 | 0.026667 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2d128b00fbda118ab4cfee5369195510057f8800 | 2,812 | py | Python | notification_channels/models.py | anilkumarmeena/Bitora | c8ccfa6c2369c9da4bd273dddb783f870c09889f | [
"Apache-2.0"
] | 2 | 2018-02-12T09:54:33.000Z | 2019-03-31T14:32:32.000Z | notification_channels/models.py | frknnlzts/howto | bba8b8080df480c2ee95a7f9913a7153cc02f65e | [
"Apache-2.0"
] | 8 | 2017-12-27T16:19:25.000Z | 2017-12-29T00:21:03.000Z | notification_channels/models.py | frknnlzts/howto | bba8b8080df480c2ee95a7f9913a7153cc02f65e | [
"Apache-2.0"
] | 2 | 2019-02-22T08:13:29.000Z | 2019-10-08T12:11:21.000Z | from django.db import models
from django.contrib.auth.models import User
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.utils.timesince import timesince
from django.utils import timezone
class Notification(models.Model):
Type... | 41.352941 | 111 | 0.66643 | 333 | 2,812 | 5.45045 | 0.213213 | 0.064463 | 0.042975 | 0.056198 | 0.432507 | 0.417631 | 0.320661 | 0.299725 | 0.263361 | 0.18292 | 0 | 0.007323 | 0.222973 | 2,812 | 67 | 112 | 41.970149 | 0.823341 | 0 | 0 | 0.098361 | 0 | 0.016393 | 0.188834 | 0.015292 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032787 | false | 0 | 0.098361 | 0.016393 | 0.508197 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2d171fafb9c30b722a822a1444b5c6d69e483458 | 914 | pyw | Python | xrt/gui/xrtQookStart.pyw | adinatan/xrt | 75b884c0cba7e1aac15b30f2d0d803597328a208 | [
"MIT"
] | 71 | 2016-07-04T06:40:52.000Z | 2022-03-31T10:03:07.000Z | xrt/gui/xrtQookStart.pyw | adinatan/xrt | 75b884c0cba7e1aac15b30f2d0d803597328a208 | [
"MIT"
] | 99 | 2016-07-10T16:39:05.000Z | 2022-03-28T07:50:10.000Z | xrt/gui/xrtQookStart.pyw | adinatan/xrt | 75b884c0cba7e1aac15b30f2d0d803597328a208 | [
"MIT"
] | 30 | 2016-07-08T17:12:30.000Z | 2022-03-30T06:54:21.000Z | # -*- coding: utf-8 -*-
"""This script launches xrtQook."""
__author__ = "Roman Chernikov, Konstantin Klementiev"
__date__ = "27 Oct 2017"
import sys
import os
sys.path.append(os.path.join('..', '..'))
import xrt.gui.xrtQook as xQ
if __name__ == '__main__':
if any('spyder' in name.lower() for name in os.environ)... | 28.5625 | 79 | 0.635667 | 129 | 914 | 4.325581 | 0.643411 | 0.048387 | 0.053763 | 0.060932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.205689 | 914 | 31 | 80 | 29.483871 | 0.753444 | 0.373085 | 0 | 0 | 0 | 0 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2d188b3eedbf60a4936719870bf4dc8decdcc401 | 2,494 | py | Python | spider/pipelines.py | adamlabrash/Canadian-Constituencies | 5e555875bb0f436ec76c703bdcb64daa28d3d691 | [
"MIT"
] | 1 | 2020-08-18T15:52:16.000Z | 2020-08-18T15:52:16.000Z | spider/pipelines.py | adamlabrash/Canadian-Constituencies | 5e555875bb0f436ec76c703bdcb64daa28d3d691 | [
"MIT"
] | 1 | 2021-04-13T18:25:23.000Z | 2021-08-19T01:26:42.000Z | spider/pipelines.py | adamlabrash/Canadian-Constituencies | 5e555875bb0f436ec76c703bdcb64daa28d3d691 | [
"MIT"
] | 1 | 2021-04-13T17:58:08.000Z | 2021-04-13T17:58:08.000Z | import psycopg2
from scrapy.exceptions import NotConfigured
#Pipeline inputs each data item from scrape into a postgres db. Note that the postgres db and tables must already be initialized beforehand
class PostgresPipeline(object):
def __init__(self, db, user, passwd, host):
self.db = db
self.user... | 39.587302 | 147 | 0.556937 | 267 | 2,494 | 5.074906 | 0.382022 | 0.051661 | 0.017712 | 0.020664 | 0.042804 | 0.00738 | 0.00738 | 0.00738 | 0.00738 | 0 | 0 | 0.001241 | 0.353649 | 2,494 | 62 | 148 | 40.225806 | 0.83933 | 0.180433 | 0 | 0 | 0 | 0.022727 | 0.205796 | 0.100688 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0.113636 | 0.045455 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2d214424cf92964c5848625ab693b965f3893933 | 19,506 | py | Python | code/main.py | WilliamsRizzi/LUS1 | 4a1429e3510cca0b0bdfe8301a5ed43e2f85332f | [
"MIT"
] | null | null | null | code/main.py | WilliamsRizzi/LUS1 | 4a1429e3510cca0b0bdfe8301a5ed43e2f85332f | [
"MIT"
] | null | null | null | code/main.py | WilliamsRizzi/LUS1 | 4a1429e3510cca0b0bdfe8301a5ed43e2f85332f | [
"MIT"
] | null | null | null | from collections import Counter
import math
from subprocess import Popen
import os
print 'LUS1 willo'
#FOLDER OFFSET
DATA = '../data/'
SANDBOX = 'sandbox/'
RESULTS = '../result/'
#TRAIN DATA
train_data_in = DATA + 'NLSPARQL.train.data'
train_feat_in = DATA + 'NLSPARQL.train.feats.txt'
#TEST DATA
test_data_in = DAT... | 37.225191 | 218 | 0.638521 | 2,404 | 19,506 | 5.017887 | 0.12396 | 0.041781 | 0.025201 | 0.009119 | 0.464644 | 0.403134 | 0.320567 | 0.289978 | 0.247285 | 0.225814 | 0 | 0.010486 | 0.242182 | 19,506 | 523 | 219 | 37.296367 | 0.805574 | 0.035015 | 0 | 0.286164 | 0 | 0 | 0.144241 | 0.015386 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003145 | 0.031447 | null | null | 0.106918 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2d24e9c96d2da713546978378a9971afd7086add | 3,951 | py | Python | tareas/Res_PDB.py | zara-ms/python_class-2 | edd5a4b7a3b3f2759f63208bbf42d5f9e7acb45b | [
"MIT"
] | null | null | null | tareas/Res_PDB.py | zara-ms/python_class-2 | edd5a4b7a3b3f2759f63208bbf42d5f9e7acb45b | [
"MIT"
] | 1 | 2021-12-01T17:05:15.000Z | 2021-12-01T17:05:15.000Z | tareas/Res_PDB.py | zara-ms/python_class-2 | edd5a4b7a3b3f2759f63208bbf42d5f9e7acb45b | [
"MIT"
] | 4 | 2021-04-09T19:06:40.000Z | 2021-11-29T01:17:50.000Z | '''
NAME
Res_PDB.py
VERSION
[1.0]
AUTHOR
[Rodelmar Ocampo] <joserodelmar@gmail.com>
[Other authors]: [Modifications]
DESCRIPTION
[The function within this program allows the user to obtain
the specific residues of a determined chain and path
from a PDB file. This residues are saved in a list... | 37.628571 | 111 | 0.640091 | 543 | 3,951 | 4.559853 | 0.337017 | 0.056543 | 0.073506 | 0.107431 | 0.076333 | 0.076333 | 0.076333 | 0.054523 | 0 | 0 | 0 | 0.024171 | 0.267021 | 3,951 | 104 | 112 | 37.990385 | 0.830801 | 0.800051 | 0 | 0 | 0 | 0 | 0.030144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d275dce36ff45df619b1f64fbd25457240ed15a | 1,482 | py | Python | sdk/servicefabric/azure-servicefabric/azure/servicefabric/operations/__init__.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/servicefabric/azure-servicefabric/azure/servicefabric/operations/__init__.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/servicefabric/azure-servicefabric/azure/servicefabric/operations/__init__.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 42.342857 | 91 | 0.753036 | 124 | 1,482 | 8.677419 | 0.532258 | 0.148699 | 0.026022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000752 | 0.102564 | 1,482 | 34 | 92 | 43.588235 | 0.808271 | 0.304993 | 0 | 0 | 0 | 0 | 0.23945 | 0.200196 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2d380eb1d724166e2c1952dd57813595a868c0c0 | 6,592 | py | Python | sql_queries.py | yougun-han/Data-Warehouse | bd2f8a1a7d13d4c38641c9cdab54abe2562e407d | [
"MIT"
] | null | null | null | sql_queries.py | yougun-han/Data-Warehouse | bd2f8a1a7d13d4c38641c9cdab54abe2562e407d | [
"MIT"
] | null | null | null | sql_queries.py | yougun-han/Data-Warehouse | bd2f8a1a7d13d4c38641c9cdab54abe2562e407d | [
"MIT"
] | null | null | null | import configparser
# READ ETL FILE/DATABASE LOCATION AND CREDENTIALS.
config = configparser.ConfigParser()
config.read('dwh.cfg')
ARN = config.get('IAM_ROLE', 'ARN')
LOG_DATA = config.get('S3', 'LOG_DATA')
LOG_JSONPATH = config.get('S3', 'LOG_JSONPATH')
SONG_DATA = config.get('S3', 'SONG_DATA')
# DROP TABLES
sta... | 30.37788 | 181 | 0.6429 | 832 | 6,592 | 4.852163 | 0.144231 | 0.033688 | 0.027743 | 0.031211 | 0.22814 | 0.158781 | 0.113203 | 0.018826 | 0.018826 | 0 | 0 | 0.002541 | 0.283525 | 6,592 | 216 | 182 | 30.518519 | 0.852213 | 0.017445 | 0 | 0.239362 | 0 | 0.005319 | 0.779444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.005319 | 0 | 0.005319 | 0 | 0 | 0 | 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 |
2d3b5b902825d5bd66816aa2f12e929e72657b3e | 491 | py | Python | todoapi/migrations/0018_task_note.py | Faysa1/Gestion-Tickets-Taches | eeba92df59c3217d15b02a5bb1ed3c6e673537a4 | [
"Apache-2.0"
] | null | null | null | todoapi/migrations/0018_task_note.py | Faysa1/Gestion-Tickets-Taches | eeba92df59c3217d15b02a5bb1ed3c6e673537a4 | [
"Apache-2.0"
] | null | null | null | todoapi/migrations/0018_task_note.py | Faysa1/Gestion-Tickets-Taches | eeba92df59c3217d15b02a5bb1ed3c6e673537a4 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.7 on 2020-02-17 19:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('todoapi', '0017_note'),
]
operations = [
migrations.AddField(
model_name='task',
... | 24.55 | 124 | 0.602851 | 56 | 491 | 5.232143 | 0.642857 | 0.081911 | 0.095563 | 0.150171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053371 | 0.274949 | 491 | 19 | 125 | 25.842105 | 0.769663 | 0.09165 | 0 | 0 | 1 | 0 | 0.084706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d3d1a83c3b3e6869ea0e66ffffe2d07a66ac6eb | 1,262 | py | Python | src/products/migrations/0004_auto_20200402_1315.py | aleksey1593/nazrep | c006fc60594091305d0d1c3017f81ce301d65e9d | [
"Apache-2.0"
] | null | null | null | src/products/migrations/0004_auto_20200402_1315.py | aleksey1593/nazrep | c006fc60594091305d0d1c3017f81ce301d65e9d | [
"Apache-2.0"
] | null | null | null | src/products/migrations/0004_auto_20200402_1315.py | aleksey1593/nazrep | c006fc60594091305d0d1c3017f81ce301d65e9d | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.4 on 2020-04-02 10:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('products', '0003_product_price'),
]
operations = [
migrations.CreateModel(
name='Category',
... | 32.358974 | 117 | 0.566561 | 123 | 1,262 | 5.642276 | 0.560976 | 0.034582 | 0.040346 | 0.063401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025086 | 0.305071 | 1,262 | 38 | 118 | 33.210526 | 0.766249 | 0.035658 | 0 | 0.15625 | 1 | 0 | 0.140741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.15625 | 0 | 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 |
2d3fdabd94356eec1619a991cd9604ea88571976 | 1,088 | py | Python | db_wrapper/config.py | Alecyrus/Ares | 228c602f41d9ad1cfdc9f9bc25964b6bcc9d746b | [
"MIT"
] | 2 | 2017-04-01T07:05:23.000Z | 2017-09-09T02:19:50.000Z | db_wrapper/config.py | Alecyrus/Ares | 228c602f41d9ad1cfdc9f9bc25964b6bcc9d746b | [
"MIT"
] | null | null | null | db_wrapper/config.py | Alecyrus/Ares | 228c602f41d9ad1cfdc9f9bc25964b6bcc9d746b | [
"MIT"
] | null | null | null | import sys
import os
sys.path.append(os.path.dirname(__file__))
import configparser
from main import *
# Start the Database Connection
config = configparser.ConfigParser()
config.read('setting.conf')
database_config = config['database']
connection_string = database_config['server'] + '://' + database_config['user'] +... | 35.096774 | 104 | 0.662684 | 109 | 1,088 | 6.302752 | 0.366972 | 0.142649 | 0.081514 | 0.084425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190257 | 1,088 | 30 | 105 | 36.266667 | 0.779796 | 0.026654 | 0 | 0 | 0 | 0 | 0.127841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2d42d28410785326db32ada0654738b2e57061b2 | 8,684 | py | Python | exp/eval/light_light.py | stefantkeller/VECSELsetup | c1740e170b54be40f7315808e451c0731a5d7f3b | [
"MIT"
] | null | null | null | exp/eval/light_light.py | stefantkeller/VECSELsetup | c1740e170b54be40f7315808e451c0731a5d7f3b | [
"MIT"
] | null | null | null | exp/eval/light_light.py | stefantkeller/VECSELsetup | c1740e170b54be40f7315808e451c0731a5d7f3b | [
"MIT"
] | null | null | null | #! /usr/bin/python2.7
# -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
import errorvalues as ev # github.com/stefantkeller/errorvalues
from VECSELsetup.eval.varycolor import varycolor
from VECSELsetup.eval.gen_functions import load, extract, plotinstructions_write, plotinstructions_read, lu... | 38.595556 | 206 | 0.561953 | 1,117 | 8,684 | 4.287377 | 0.274843 | 0.007517 | 0.013782 | 0.027146 | 0.233869 | 0.172479 | 0.146377 | 0.123408 | 0.067237 | 0.067237 | 0 | 0.027833 | 0.251152 | 8,684 | 224 | 207 | 38.767857 | 0.708596 | 0.304583 | 0 | 0.253968 | 0 | 0 | 0.087954 | 0.01491 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039683 | null | null | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2d433371d5e486908150b9a3a0f60ddc6751fbd9 | 653 | py | Python | generate_train_and_valid_data.py | bkdnntdat/CustomDeeplabv3 | e1223312d3a81073ce8c89480f0034fd11c45653 | [
"MIT"
] | null | null | null | generate_train_and_valid_data.py | bkdnntdat/CustomDeeplabv3 | e1223312d3a81073ce8c89480f0034fd11c45653 | [
"MIT"
] | null | null | null | generate_train_and_valid_data.py | bkdnntdat/CustomDeeplabv3 | e1223312d3a81073ce8c89480f0034fd11c45653 | [
"MIT"
] | null | null | null | import os
list_dir = os.listdir("/Users/ntdat/Tài liệu/Năm 4/Kỳ 2/Các hệ thống đa phương tiện/Data_Camera_SanTennis_Labeled/Labels/")
train_txt = open("/Users/ntdat/Tài liệu/Năm 4/Kỳ 2/Các hệ thống đa phương tiện/Data_Camera_SanTennis_Labeled/train.txt", "w")
valid_txt = open("/Users/ntdat... | 43.533333 | 139 | 0.675345 | 112 | 653 | 3.741071 | 0.339286 | 0.050119 | 0.093079 | 0.121718 | 0.620525 | 0.548926 | 0.548926 | 0.548926 | 0.548926 | 0.548926 | 0 | 0.025862 | 0.111792 | 653 | 14 | 140 | 46.642857 | 0.696552 | 0 | 0 | 0 | 0 | 0.25 | 0.532925 | 0.20827 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d43ee348bd7b3bd4350b1c0cf239d40bb78d581 | 2,868 | py | Python | State/python/state.py | JaviMiot/patternDesignJS_Python | 110cd02320e485c17f7d3b6bbafc4ffa53ae974c | [
"MIT"
] | null | null | null | State/python/state.py | JaviMiot/patternDesignJS_Python | 110cd02320e485c17f7d3b6bbafc4ffa53ae974c | [
"MIT"
] | null | null | null | State/python/state.py | JaviMiot/patternDesignJS_Python | 110cd02320e485c17f7d3b6bbafc4ffa53ae974c | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class StateAbstract(ABC):
@abstractmethod
def buy(self, cost: float):
pass
@abstractmethod
def deposit(self, amount: float):
pass
@abstractmethod
def setContext(self, context):
pass
class Context:
def __init__(self, initState... | 25.380531 | 100 | 0.641213 | 324 | 2,868 | 5.404321 | 0.212963 | 0.150771 | 0.071959 | 0.054255 | 0.472302 | 0.416334 | 0.382067 | 0.34209 | 0.34209 | 0.316391 | 0 | 0.009359 | 0.254881 | 2,868 | 112 | 101 | 25.607143 | 0.810014 | 0 | 0 | 0.5125 | 0 | 0 | 0.133891 | 0.041841 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275 | false | 0.0375 | 0.0125 | 0.0125 | 0.3625 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
74100902f680fc1f9e676f57ff56fd47c76bee13 | 2,618 | py | Python | database/neo4j/neomodel/users.py | aiscenblue/sanic-framework-starterkit | 505ef3fc76c181b949a1dc5826296d6d990d37cd | [
"MIT"
] | 1 | 2017-10-30T04:33:33.000Z | 2017-10-30T04:33:33.000Z | database/neo4j/neomodel/users.py | aiscenblue/sanic-framework-starterkit | 505ef3fc76c181b949a1dc5826296d6d990d37cd | [
"MIT"
] | null | null | null | database/neo4j/neomodel/users.py | aiscenblue/sanic-framework-starterkit | 505ef3fc76c181b949a1dc5826296d6d990d37cd | [
"MIT"
] | null | null | null | from neomodel import (StructuredNode, UniqueIdProperty, StringProperty, EmailProperty, DateTimeProperty, db)
from validators import email as email_validator
import bcrypt
class Users(StructuredNode):
uid = UniqueIdProperty()
firstname = StringProperty(required=True)
middlename = StringProperty(default=Non... | 35.863014 | 108 | 0.645531 | 313 | 2,618 | 5.178914 | 0.297125 | 0.034547 | 0.048118 | 0.035163 | 0.178902 | 0.041949 | 0.041949 | 0.041949 | 0 | 0 | 0 | 0.005084 | 0.248663 | 2,618 | 72 | 109 | 36.361111 | 0.819014 | 0.017953 | 0 | 0.122807 | 0 | 0 | 0.065158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140351 | false | 0.105263 | 0.052632 | 0.017544 | 0.491228 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
74140d0424cf3d4a24e36ebb4b5bb68f3b8fea7e | 40,092 | py | Python | predict_.py | cousinskeeta/crypto-prediction | 5a7e54df2c0d53967029f09998c99dccf52c3564 | [
"MIT"
] | null | null | null | predict_.py | cousinskeeta/crypto-prediction | 5a7e54df2c0d53967029f09998c99dccf52c3564 | [
"MIT"
] | null | null | null | predict_.py | cousinskeeta/crypto-prediction | 5a7e54df2c0d53967029f09998c99dccf52c3564 | [
"MIT"
] | null | null | null | import time
import numpy as np
import pandas as pd
import datetime
from sklearn.preprocessing import StandardScaler
import requests
import pickle
import math
from sklearn.metrics import r2_score
from sklearn.metrics import mean_squared_error
class predict_(object):
asset = ""
name = ""
date = ""
... | 40.092 | 174 | 0.520553 | 4,848 | 40,092 | 4.117987 | 0.082508 | 0.035764 | 0.023693 | 0.016229 | 0.730164 | 0.686035 | 0.650571 | 0.63349 | 0.621519 | 0.619665 | 0 | 0.011579 | 0.353786 | 40,092 | 999 | 175 | 40.132132 | 0.758993 | 0.151202 | 0 | 0.634969 | 0 | 0.009202 | 0.087215 | 0.015487 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019939 | false | 0 | 0.044479 | 0.003067 | 0.088957 | 0.125767 | 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 |
7415f2fda23df86c05ec4498f343b0e5e4229012 | 4,433 | py | Python | app/models/schedule.py | StartFuture/workstation-backend | 3b88946a3a7e2c9449de938d008a665fc4a17d34 | [
"MIT"
] | 1 | 2022-03-20T23:55:34.000Z | 2022-03-20T23:55:34.000Z | app/models/schedule.py | StartFuture/workstation-backend | 3b88946a3a7e2c9449de938d008a665fc4a17d34 | [
"MIT"
] | 1 | 2022-03-10T19:26:53.000Z | 2022-03-10T19:26:53.000Z | app/models/schedule.py | StartFuture/workstation-backend | 3b88946a3a7e2c9449de938d008a665fc4a17d34 | [
"MIT"
] | 1 | 2022-03-08T21:40:51.000Z | 2022-03-08T21:40:51.000Z | from flask_restful import Resource, reqparse
from . import dao as Bank
class GenerateSchedule(Resource):
def post(self):
argumentos = reqparse.RequestParser()
argumentos.add_argument('data_inicio')
argumentos.add_argument('hora_inicio')
argumentos.add_argument('hora_f... | 37.567797 | 91 | 0.480713 | 358 | 4,433 | 5.642458 | 0.215084 | 0.083663 | 0.135149 | 0.056931 | 0.535149 | 0.450495 | 0.283168 | 0.19505 | 0.19505 | 0.114851 | 0 | 0 | 0.433792 | 4,433 | 118 | 92 | 37.567797 | 0.804781 | 0 | 0 | 0.258427 | 1 | 0 | 0.126522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044944 | false | 0 | 0.022472 | 0 | 0.168539 | 0 | 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 |
7416a2b21be502159fe8ec77c1324969293fac9c | 346 | py | Python | ExampleCreds.py | nchemsak/doorbell_dash | ea6e1baa538316c9b068af94130171174947e434 | [
"MIT"
] | 11 | 2017-04-12T13:27:39.000Z | 2021-05-16T16:27:15.000Z | ExampleCreds.py | vramya309/doorbell_dash | ea6e1baa538316c9b068af94130171174947e434 | [
"MIT"
] | null | null | null | ExampleCreds.py | vramya309/doorbell_dash | ea6e1baa538316c9b068af94130171174947e434 | [
"MIT"
] | 1 | 2019-01-10T18:33:42.000Z | 2019-01-10T18:33:42.000Z | ##PUT ALL INFO BETWEEN QUOTES BELOW AND RENAME THIS FILE TO 'creds.py'
#Twilio API Account info
ACCOUNT_SID = ""
AUTH_TOKEN = ""
# your cell phone number below (must begin with '+', example: "+15555555555")
TO_PHONE = ""
# your Twilio phone number below (must begin with '+', example: "+15555555555")
FROM_PHONE = ""
... | 24.714286 | 79 | 0.696532 | 49 | 346 | 4.816327 | 0.653061 | 0.09322 | 0.135593 | 0.169492 | 0.398305 | 0.398305 | 0.398305 | 0.398305 | 0 | 0 | 0 | 0.077193 | 0.176301 | 346 | 14 | 80 | 24.714286 | 0.750877 | 0.734104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
74181107432b44bb6641c78a9048e1a385a27fcd | 4,712 | py | Python | aux/testDB.py | AlainLich/logtools | 584e575d25f0ebcd7a51cc6d5aefb530f80f6d22 | [
"Apache-2.0"
] | 2 | 2021-06-08T21:48:18.000Z | 2022-03-09T05:50:13.000Z | aux/testDB.py | AlainLich/logtools | 584e575d25f0ebcd7a51cc6d5aefb530f80f6d22 | [
"Apache-2.0"
] | null | null | null | aux/testDB.py | AlainLich/logtools | 584e575d25f0ebcd7a51cc6d5aefb530f80f6d22 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: Python -*-
#
#
# 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 requi... | 30.205128 | 87 | 0.640492 | 597 | 4,712 | 4.954774 | 0.442211 | 0.056795 | 0.04023 | 0.046653 | 0.020284 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008327 | 0.184423 | 4,712 | 155 | 88 | 30.4 | 0.761384 | 0.303268 | 0 | 0.024096 | 0 | 0 | 0.198881 | 0.022685 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012048 | false | 0 | 0.325301 | 0 | 0.361446 | 0.060241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.