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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1624f2e5103a885b70d0acf49e5a664df0ee116a | 522 | py | Python | Dynamic_Programming/111.Climbing Stairs/Solution.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 12 | 2019-05-04T04:21:27.000Z | 2022-03-02T07:06:57.000Z | Dynamic_Programming/111.Climbing Stairs/Solution.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 1 | 2019-07-24T18:43:53.000Z | 2019-07-24T18:43:53.000Z | Dynamic_Programming/111.Climbing Stairs/Solution.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 10 | 2019-07-01T04:03:04.000Z | 2022-03-09T03:57:37.000Z | class Solution:
"""
@param n: An integer
@return: An integer
"""
def climbStairs(self, n):
# write your code here
# initialization:
dp = [0 for _ in range(n + 1)]
dp[0] = 1
dp[1] = 1
# state: dp[i] represents how many ways to reach step i
# f... | 24.857143 | 64 | 0.484674 | 80 | 522 | 3.15 | 0.45 | 0.083333 | 0.047619 | 0.047619 | 0.087302 | 0.087302 | 0.087302 | 0.087302 | 0 | 0 | 0 | 0.0375 | 0.386973 | 522 | 20 | 65 | 26.1 | 0.75 | 0.434866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1628f90aa014d5bf608af3b0e97e095b249f7e5b | 505 | py | Python | src/web/modules/entrance/migrations/0072_selectenrollmenttypeentrancestep_review_info.py | fossabot/SIStema | 1427dda2082688a9482c117d0e24ad380fdc26a6 | [
"MIT"
] | 5 | 2018-03-08T17:22:27.000Z | 2018-03-11T14:20:53.000Z | src/web/modules/entrance/migrations/0072_selectenrollmenttypeentrancestep_review_info.py | fossabot/SIStema | 1427dda2082688a9482c117d0e24ad380fdc26a6 | [
"MIT"
] | 263 | 2018-03-08T18:05:12.000Z | 2022-03-11T23:26:20.000Z | src/web/modules/entrance/migrations/0072_selectenrollmenttypeentrancestep_review_info.py | fossabot/SIStema | 1427dda2082688a9482c117d0e24ad380fdc26a6 | [
"MIT"
] | 6 | 2018-03-12T19:48:19.000Z | 2022-01-14T04:58:52.000Z | # Generated by Django 2.0.3 on 2018-04-09 20:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('entrance', '0071_auto_20180409_2042'),
]
operations = [
migrations.AddField(
model_name='selectenrollmenttypeentrancestep',
... | 26.578947 | 139 | 0.657426 | 52 | 505 | 6.25 | 0.865385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079897 | 0.231683 | 505 | 18 | 140 | 28.055556 | 0.757732 | 0.089109 | 0 | 0 | 1 | 0 | 0.268559 | 0.120087 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
162986bf7f8dcb80db02ff12f41e8b073becf5ed | 2,354 | py | Python | examples/esgf_integration_example.py | prashantarya12/climate | 0e4248410ea95336dee907c0db8157f31348f77f | [
"Apache-2.0"
] | 132 | 2015-03-27T20:35:06.000Z | 2021-11-16T10:56:06.000Z | examples/esgf_integration_example.py | prashantarya12/climate | 0e4248410ea95336dee907c0db8157f31348f77f | [
"Apache-2.0"
] | 318 | 2015-01-16T03:56:40.000Z | 2019-11-14T17:26:59.000Z | examples/esgf_integration_example.py | prashantarya12/climate | 0e4248410ea95336dee907c0db8157f31348f77f | [
"Apache-2.0"
] | 133 | 2015-02-12T21:14:18.000Z | 2022-03-30T03:50:32.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 31.810811 | 95 | 0.715378 | 344 | 2,354 | 4.805233 | 0.462209 | 0.036298 | 0.023593 | 0.019359 | 0.030248 | 0.030248 | 0 | 0 | 0 | 0 | 0 | 0.014862 | 0.19966 | 2,354 | 73 | 96 | 32.246575 | 0.862527 | 0.569244 | 0 | 0 | 0 | 0.043478 | 0.231177 | 0.091198 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.130435 | 0.217391 | 0 | 0.26087 | 0.217391 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1630805a236dd6b879461a75ce1cc06de8b10be5 | 1,910 | py | Python | server/src/tests/samples/typedDict6.py | 9at8/pyright | 5b5cd448a57b69c58364238d21f2f4eaeae7288d | [
"MIT"
] | null | null | null | server/src/tests/samples/typedDict6.py | 9at8/pyright | 5b5cd448a57b69c58364238d21f2f4eaeae7288d | [
"MIT"
] | 1 | 2021-08-31T20:37:43.000Z | 2021-08-31T20:37:43.000Z | server/src/tests/samples/typedDict6.py | 9at8/pyright | 5b5cd448a57b69c58364238d21f2f4eaeae7288d | [
"MIT"
] | null | null | null | # This sample tests the type analyzer's handling of TypedDict
# "alternate syntax" defined in PEP 589.
from typing import TypedDict
Movie = TypedDict("Movie", {"name": str, "year": int})
# This should generate an error because
# the arguments are missing.
Movie2 = TypedDict()
# This should generate an error because... | 24.805195 | 83 | 0.693194 | 257 | 1,910 | 5.120623 | 0.307393 | 0.083587 | 0.150456 | 0.167173 | 0.382219 | 0.382219 | 0.382219 | 0.245441 | 0.244681 | 0.244681 | 0 | 0.032671 | 0.182723 | 1,910 | 76 | 84 | 25.131579 | 0.810378 | 0.434555 | 0 | 0 | 0 | 0 | 0.184834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.033333 | 0.033333 | 0.1 | 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 |
163b7a25e8d5ee34b025fde30d9370f77e36a90e | 4,792 | py | Python | pysnmp/OPENBSD-SENSORS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/OPENBSD-SENSORS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/OPENBSD-SENSORS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module OPENBSD-SENSORS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/OPENBSD-SENSORS-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:25:51 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default... | 116.878049 | 620 | 0.737479 | 564 | 4,792 | 6.262411 | 0.287234 | 0.010759 | 0.010193 | 0.01359 | 0.378256 | 0.275764 | 0.216874 | 0.216874 | 0.213477 | 0.206116 | 0 | 0.089494 | 0.088272 | 4,792 | 40 | 621 | 119.8 | 0.718929 | 0.069282 | 0 | 0 | 0 | 0 | 0.205572 | 0.009885 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.212121 | 0 | 0.212121 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
163db1196ad453ae533afd9dab36f515c0d4aba7 | 3,715 | py | Python | plugin/update.py | cristivlas/zerobugs | 5f080c8645b123d7887fd8a64f60e8d226e3b1d5 | [
"BSL-1.0"
] | 2 | 2018-03-19T23:27:47.000Z | 2018-06-24T16:15:19.000Z | plugin/update.py | cristivlas/zerobugs | 5f080c8645b123d7887fd8a64f60e8d226e3b1d5 | [
"BSL-1.0"
] | null | null | null | plugin/update.py | cristivlas/zerobugs | 5f080c8645b123d7887fd8a64f60e8d226e3b1d5 | [
"BSL-1.0"
] | 1 | 2021-11-28T05:39:05.000Z | 2021-11-28T05:39:05.000Z | from datetime import datetime
import httplib
import urllib
import zero
server="www.zero-bugs.com"
published_dir="/8001/published/"
#
#strptime may not always be available, using the following
#implementation from http://effbot.org/librarybook/
#
import re
import string
MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "J... | 28.143939 | 81 | 0.4786 | 518 | 3,715 | 3.405405 | 0.312741 | 0.029478 | 0.013605 | 0.013605 | 0.093537 | 0.048753 | 0.039683 | 0.018141 | 0 | 0 | 0 | 0.016839 | 0.296635 | 3,715 | 131 | 82 | 28.358779 | 0.658247 | 0.08856 | 0 | 0.055046 | 0 | 0.018349 | 0.237107 | 0.044754 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009174 | 0.055046 | null | null | 0.009174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
163e31aaa08d3cff2f071c32059d185a13585ea9 | 8,682 | py | Python | src/summary.py | yonglin-wang/spacecraft-crash-predictor | 527839e1d5084dfb8b45411e2eccf89086e31253 | [
"MIT"
] | null | null | null | src/summary.py | yonglin-wang/spacecraft-crash-predictor | 527839e1d5084dfb8b45411e2eccf89086e31253 | [
"MIT"
] | 1 | 2022-01-16T06:02:51.000Z | 2022-01-16T06:05:06.000Z | src/summary.py | yonglin-wang/spacecraft-crash-predictor | 527839e1d5084dfb8b45411e2eccf89086e31253 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Author: Yonglin Wang
# Date: 2021/1/29
# Functions to generate csv summaries of data statistics and merge result statistics
import os
import argparse
import re
from typing import Tuple
import pandas as pd
import numpy as np
import consts as C
from processing.marsdataloader import MARSDataLoa... | 45.21875 | 131 | 0.617715 | 1,110 | 8,682 | 4.604505 | 0.194595 | 0.033262 | 0.015653 | 0.025044 | 0.593817 | 0.552925 | 0.512424 | 0.506163 | 0.50088 | 0.478967 | 0 | 0.008494 | 0.281272 | 8,682 | 192 | 132 | 45.21875 | 0.810577 | 0.147547 | 0 | 0.539683 | 1 | 0.015873 | 0.164443 | 0.014838 | 0 | 0 | 0 | 0 | 0.007937 | 1 | 0.055556 | false | 0 | 0.063492 | 0 | 0.150794 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1643725614bf978af5c83c9bb9cc5b8ef5750141 | 333 | py | Python | setup.py | zephyr-ai/OpenNE | 2647fdb219ac8f931b513bff316717a0a84b2fbb | [
"MIT"
] | null | null | null | setup.py | zephyr-ai/OpenNE | 2647fdb219ac8f931b513bff316717a0a84b2fbb | [
"MIT"
] | null | null | null | setup.py | zephyr-ai/OpenNE | 2647fdb219ac8f931b513bff316717a0a84b2fbb | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="openne",
url="https://github.com/thunlp/OpenNE",
license="MIT",
author="THUNLP",
description="Open Source Network Embedding toolkit",
packages=find_packages(),
long_description=open("README.md").read(),
zip_safe=False,
setup_r... | 23.785714 | 56 | 0.684685 | 39 | 333 | 5.717949 | 0.769231 | 0.107623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171171 | 333 | 13 | 57 | 25.615385 | 0.807971 | 0 | 0 | 0 | 0 | 0 | 0.279279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1646e753d98c4728b0dfb3eaa441266cc910eb91 | 1,358 | py | Python | envpool/python/api.py | TachikakaMin/envpool | 4ecd296b27d2c05b515aab6219f17c561c725017 | [
"Apache-2.0"
] | 330 | 2021-11-10T00:17:48.000Z | 2022-03-31T01:51:29.000Z | envpool/python/api.py | TachikakaMin/envpool | 4ecd296b27d2c05b515aab6219f17c561c725017 | [
"Apache-2.0"
] | 35 | 2021-11-10T01:43:06.000Z | 2022-03-29T12:37:48.000Z | envpool/python/api.py | TachikakaMin/envpool | 4ecd296b27d2c05b515aab6219f17c561c725017 | [
"Apache-2.0"
] | 30 | 2021-11-10T06:18:50.000Z | 2022-03-30T00:45:05.000Z | # Copyright 2021 Garena Online Private Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 37.722222 | 79 | 0.740059 | 185 | 1,358 | 5.335135 | 0.567568 | 0.06079 | 0.026342 | 0.032421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008711 | 0.154639 | 1,358 | 35 | 80 | 38.8 | 0.851045 | 0.530191 | 0 | 0 | 0 | 0 | 0.053834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
164817c9eb6849d24721944cceb7a059f5963edc | 427 | py | Python | setup.py | tsavola/tap | e7b5dea6b0e9c7ebbb2710842ebfb62352cb54cc | [
"BSD-2-Clause"
] | 1 | 2019-12-09T20:55:59.000Z | 2019-12-09T20:55:59.000Z | setup.py | tsavola/tap | e7b5dea6b0e9c7ebbb2710842ebfb62352cb54cc | [
"BSD-2-Clause"
] | null | null | null | setup.py | tsavola/tap | e7b5dea6b0e9c7ebbb2710842ebfb62352cb54cc | [
"BSD-2-Clause"
] | null | null | null | from distutils.core import setup, Extension
from glob import glob
setup(
name = "tap",
packages = [
"tap",
],
ext_modules = [
Extension(
"tap/core",
extra_compile_args = [
"-Iboost/core/include",
"-Iboost/endian/include",
"-Wextra",
"-Wno-missing-field-initializers",
"-Wno-unused-para... | 17.08 | 43 | 0.594848 | 47 | 427 | 5.340426 | 0.680851 | 0.055777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002985 | 0.215457 | 427 | 24 | 44 | 17.791667 | 0.746269 | 0 | 0 | 0.130435 | 0 | 0 | 0.370023 | 0.173302 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.086957 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1648f8f61c08c4f933784bc333fb7775b9584f01 | 2,677 | py | Python | openstack-dashboard/openstack_dashboard/dashboards/project/users/tables.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | 1 | 2019-09-11T11:56:19.000Z | 2019-09-11T11:56:19.000Z | tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/users/tables.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | null | null | null | tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/users/tables.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | null | null | null | import logging
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from horizon import tables
from horizon.utils import filters
LOG = logging.getLogger(__name__)
class ConsumptionLink(tables.LinkAction):
name = "sumption_detail"
verbose_name = _("Comsumption ... | 40.560606 | 77 | 0.568547 | 252 | 2,677 | 5.77381 | 0.305556 | 0.113402 | 0.038488 | 0.071478 | 0.294845 | 0.294845 | 0.294845 | 0.294845 | 0.247423 | 0.247423 | 0 | 0 | 0.314158 | 2,677 | 65 | 78 | 41.184615 | 0.792484 | 0.175943 | 0 | 0.170732 | 0 | 0 | 0.143183 | 0.012768 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.121951 | 0 | 0.682927 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
164de9b9315e6698b80d346dd204206a9b029195 | 1,054 | py | Python | barique/commands/file/list.py | mboudet/baricadr_cli | 31ea6944365634b781fde081968356965fd6887e | [
"MIT"
] | null | null | null | barique/commands/file/list.py | mboudet/baricadr_cli | 31ea6944365634b781fde081968356965fd6887e | [
"MIT"
] | 2 | 2021-09-01T09:17:30.000Z | 2021-09-06T07:53:06.000Z | barique/commands/file/list.py | mboudet/baricadr_cli | 31ea6944365634b781fde081968356965fd6887e | [
"MIT"
] | 1 | 2020-12-08T09:21:19.000Z | 2020-12-08T09:21:19.000Z | import click
from barique.cli import pass_context, json_loads
from barique.decorators import custom_exception, list_output
@click.command('list')
@click.argument("path", type=str)
@click.option(
"--full",
help="List full information for each file (size (in bytes), mtime, etc..)",
is_flag=True
)
@click.opt... | 25.707317 | 103 | 0.702087 | 159 | 1,054 | 4.534591 | 0.415094 | 0.055479 | 0.041609 | 0.069348 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00346 | 0.177419 | 1,054 | 40 | 104 | 26.35 | 0.828143 | 0.098672 | 0 | 0.21875 | 0 | 0 | 0.297125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.0625 | 0.09375 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1650662abe523984e6356ba3f2b448728cd9dfd8 | 4,431 | py | Python | notmad/helpers/config_utils.py | cnellington/SampleSpecificDAGs | 8c22ea79478432a4b038c2fec2387e22a367b68b | [
"MIT"
] | 2 | 2020-09-14T14:06:17.000Z | 2020-09-25T21:24:17.000Z | src/helpers/config_utils.py | cnellington/notears-tensorflow2 | 48cd7a1d201361543dfaccbaa01e308c1b2328b9 | [
"MIT"
] | null | null | null | src/helpers/config_utils.py | cnellington/notears-tensorflow2 | 48cd7a1d201361543dfaccbaa01e308c1b2328b9 | [
"MIT"
] | null | null | null | import sys
import yaml
import argparse
def load_yaml_config(path, skip_lines=0):
with open(path, 'r') as infile:
for i in range(skip_lines):
# Skip some lines (e.g., namespace at the first line)
_ = infile.readline()
return yaml.safe_load(infile)
def save_yaml_config(con... | 33.067164 | 87 | 0.457007 | 416 | 4,431 | 4.747596 | 0.348558 | 0.095696 | 0.180759 | 0.063291 | 0.188354 | 0.082025 | 0.028354 | 0 | 0 | 0 | 0 | 0.020145 | 0.439856 | 4,431 | 133 | 88 | 33.315789 | 0.775584 | 0.030919 | 0 | 0.27551 | 0 | 0 | 0.216458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030612 | false | 0 | 0.030612 | 0 | 0.081633 | 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 |
165073e925ed3757208efbbf1399fa65301941c7 | 331 | py | Python | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/urls.py | hairmare/cookiecutter-django-json-api | d3c8f2f46e3c0669796d0d600f9bbb141c2b26ad | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/urls.py | hairmare/cookiecutter-django-json-api | d3c8f2f46e3c0669796d0d600f9bbb141c2b26ad | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/urls.py | hairmare/cookiecutter-django-json-api | d3c8f2f46e3c0669796d0d600f9bbb141c2b26ad | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import include, url
from rest_framework_jwt.views import obtain_jwt_token, refresh_jwt_token
urlpatterns = [
url(r'^api-token-auth/', obtain_jwt_token),
url(r'^api-token-refresh/', refresh_jwt_token),
url(r'^api/v1/', include('{{cookiecutter.project_name}}.{{cookiecutter.django_app}}.... | 36.777778 | 96 | 0.740181 | 48 | 331 | 4.854167 | 0.479167 | 0.137339 | 0.090129 | 0.103004 | 0.128755 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003356 | 0.099698 | 331 | 8 | 97 | 41.375 | 0.778523 | 0 | 0 | 0 | 0 | 0 | 0.317221 | 0.187311 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1650f4f81ce191c2c72b451ee0b83f4c472bb9ad | 898 | py | Python | {{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/utils.py | scil/full-stack-fastapi-postgresql-for-uper | deaca1d4853c5bba90ef883b9741fdcc8409fff3 | [
"MIT"
] | null | null | null | {{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/utils.py | scil/full-stack-fastapi-postgresql-for-uper | deaca1d4853c5bba90ef883b9741fdcc8409fff3 | [
"MIT"
] | null | null | null | {{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/utils.py | scil/full-stack-fastapi-postgresql-for-uper | deaca1d4853c5bba90ef883b9741fdcc8409fff3 | [
"MIT"
] | null | null | null | from fastapi import APIRouter, Depends
from pydantic import EmailStr
from app.api.utils.security import get_current_active_superuser
from app.core.celery_app import celery_app
from app.models.msg import Msg
from app.models.user import UserInDB
from app.utils import send_test_email
router = APIRouter()
@router.post(... | 27.212121 | 86 | 0.741648 | 127 | 898 | 5.015748 | 0.322835 | 0.054945 | 0.075353 | 0.117739 | 0.285714 | 0.285714 | 0.285714 | 0.285714 | 0.172684 | 0 | 0 | 0.007823 | 0.14588 | 898 | 32 | 87 | 28.0625 | 0.822686 | 0.035635 | 0 | 0.1 | 0 | 0 | 0.097006 | 0.026347 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.35 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
165199be7103a8d44f2997f7e2940035c7dbc12a | 458 | py | Python | bookwyrm/migrations/0093_alter_sitesettings_instance_short_description.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 270 | 2020-01-27T06:06:07.000Z | 2020-06-21T00:28:18.000Z | bookwyrm/migrations/0093_alter_sitesettings_instance_short_description.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 158 | 2020-02-10T20:36:54.000Z | 2020-06-26T17:12:54.000Z | bookwyrm/migrations/0093_alter_sitesettings_instance_short_description.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 15 | 2020-02-13T21:53:33.000Z | 2020-06-17T16:52:46.000Z | # Generated by Django 3.2.4 on 2021-09-10 19:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("bookwyrm", "0092_sitesettings_instance_short_description"),
]
operations = [
migrations.AlterField(
model_name="sitesettings",
... | 24.105263 | 74 | 0.648472 | 49 | 458 | 5.897959 | 0.77551 | 0.089965 | 0.16609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063768 | 0.246725 | 458 | 18 | 75 | 25.444444 | 0.773913 | 0.098253 | 0 | 0 | 1 | 0 | 0.218978 | 0.170316 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
16552f62259225abfabfaeb15a6290cc30e0ff69 | 4,838 | py | Python | mod/pe/pedetailHandler.py | HeraldStudio/HeraldWebservice | 030fddcfbc48389ba62323778e579bd335f6222d | [
"MIT"
] | null | null | null | mod/pe/pedetailHandler.py | HeraldStudio/HeraldWebservice | 030fddcfbc48389ba62323778e579bd335f6222d | [
"MIT"
] | null | null | null | mod/pe/pedetailHandler.py | HeraldStudio/HeraldWebservice | 030fddcfbc48389ba62323778e579bd335f6222d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Date : 2016-02-21 15:43:36
# @Author : jerry.liangj@qq.com
import base64
import json
import urllib
from sgmllib import SGMLParser
from time import time
import tornado.gen
import tornado.web
from sqlalchemy.orm.exc import NoResultFound
from tornado.httpclient import HTTPRequ... | 28.797619 | 132 | 0.606862 | 580 | 4,838 | 5 | 0.381034 | 0.018621 | 0.01931 | 0.02069 | 0.15069 | 0.095862 | 0.071034 | 0.071034 | 0.071034 | 0.046207 | 0 | 0.03172 | 0.244109 | 4,838 | 168 | 133 | 28.797619 | 0.76128 | 0.053948 | 0 | 0.161972 | 0 | 0.021127 | 0.182417 | 0.016129 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028169 | 0.077465 | 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 |
165e59e099add76e80d2048f40d80b2cbd671ff2 | 362 | py | Python | simapi/onlinesim/number.py | nm17/simapi | df72b2b20fd049eee61665ce51782b2c7e9f30c9 | [
"Unlicense"
] | null | null | null | simapi/onlinesim/number.py | nm17/simapi | df72b2b20fd049eee61665ce51782b2c7e9f30c9 | [
"Unlicense"
] | null | null | null | simapi/onlinesim/number.py | nm17/simapi | df72b2b20fd049eee61665ce51782b2c7e9f30c9 | [
"Unlicense"
] | null | null | null | import simapi.api_handler as baseapi
class OnlineSMSNumber(baseapi.Number):
def __init__(self, api_handler, *args, **kwargs):
self.__api_handler = api_handler
super().__init__(*args, **kwargs)
async def set_activation_status(self, status: int):
pass
@property
asyn... | 25.857143 | 56 | 0.654696 | 42 | 362 | 5.238095 | 0.547619 | 0.181818 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251381 | 362 | 14 | 57 | 25.857143 | 0.811808 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.2 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1662d644bc2a543bb5f23472fd2a9e9552dc138a | 1,637 | py | Python | generate_semantic_similar_lists.py | murrayds/histwords | 3aa84fc85a107eec31b26e83a4896d7d804c0885 | [
"Apache-2.0"
] | null | null | null | generate_semantic_similar_lists.py | murrayds/histwords | 3aa84fc85a107eec31b26e83a4896d7d804c0885 | [
"Apache-2.0"
] | null | null | null | generate_semantic_similar_lists.py | murrayds/histwords | 3aa84fc85a107eec31b26e83a4896d7d804c0885 | [
"Apache-2.0"
] | 1 | 2020-08-28T18:08:44.000Z | 2020-08-28T18:08:44.000Z | #!/usr/bin/env python
# Constructs a list of neighbor words for each target term.
from representations.sequentialembedding import SequentialEmbedding
import pandas as pd
import numpy as np
save_as = "lingua_technica_neighbors.csv"
embedding_path = "embeddings/all-eng"
print("loading embeddings...")
embeddings = Seq... | 24.073529 | 76 | 0.675015 | 219 | 1,637 | 4.958904 | 0.420091 | 0.032228 | 0.027624 | 0.046961 | 0.07919 | 0.07919 | 0.05709 | 0.05709 | 0 | 0 | 0 | 0.018779 | 0.219304 | 1,637 | 67 | 77 | 24.432836 | 0.830986 | 0.226023 | 0 | 0 | 0 | 0 | 0.17077 | 0.023034 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1663506fc7908d1f102919df0c8156fd4b923da8 | 16,701 | py | Python | plugins/modules/oci_database_autonomous_container_database_dataguard_association_actions.py | slmjy/oci-ansible-collection | 349c91e2868bf4706a6e3d6fb3b47fc622bfe11b | [
"Apache-2.0"
] | 108 | 2020-05-19T20:46:10.000Z | 2022-03-25T14:10:01.000Z | plugins/modules/oci_database_autonomous_container_database_dataguard_association_actions.py | slmjy/oci-ansible-collection | 349c91e2868bf4706a6e3d6fb3b47fc622bfe11b | [
"Apache-2.0"
] | 90 | 2020-06-14T22:07:11.000Z | 2022-03-07T05:40:29.000Z | plugins/modules/oci_database_autonomous_container_database_dataguard_association_actions.py | slmjy/oci-ansible-collection | 349c91e2868bf4706a6e3d6fb3b47fc622bfe11b | [
"Apache-2.0"
] | 42 | 2020-08-30T23:09:12.000Z | 2022-03-25T16:58:01.000Z | #!/usr/bin/python
# Copyright (c) 2020, 2021 Oracle and/or its affiliates.
# This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Apache License v2.0
# See LICENSE.TXT for d... | 42.388325 | 160 | 0.682354 | 1,689 | 16,701 | 6.477205 | 0.174068 | 0.121572 | 0.170293 | 0.102011 | 0.664899 | 0.607313 | 0.56234 | 0.53702 | 0.480073 | 0.459049 | 0 | 0.014269 | 0.253039 | 16,701 | 393 | 161 | 42.496183 | 0.862685 | 0.026525 | 0 | 0.450581 | 0 | 0.037791 | 0.648792 | 0.208518 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026163 | false | 0.002907 | 0.020349 | 0.020349 | 0.072674 | 0.002907 | 0 | 0 | 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 |
1663950b94c9e6f2f1f0bb5b96aaefef07f29f03 | 474 | py | Python | static/data/pre_processed/get_strand_info_GRCm38.py | joshim5/CRISPR-Library-Designer | 2def1e4351c82056587620f7520ec922761ac8f3 | [
"BSD-3-Clause"
] | 17 | 2017-05-24T18:57:56.000Z | 2021-04-18T05:00:10.000Z | static/data/pre_processed/get_strand_info_GRCm38.py | joshim5/CRISPR-Library-Designer | 2def1e4351c82056587620f7520ec922761ac8f3 | [
"BSD-3-Clause"
] | 10 | 2017-09-11T09:17:51.000Z | 2022-03-11T23:18:50.000Z | static/data/pre_processed/get_strand_info_GRCm38.py | joshim5/CRISPR-Library-Designer | 2def1e4351c82056587620f7520ec922761ac8f3 | [
"BSD-3-Clause"
] | 5 | 2017-07-28T23:59:51.000Z | 2022-01-04T19:22:22.000Z | # Goal: create a cPickle'd python dictionary
# containing the strand of each ensembl gene
#m mouse
import csv
import cPickle
if __name__ == "__main__":
mapping = {}
with open('../gtex/gtex_mouse/refGene_mouse.txt', 'r') as csvfile:
reader = csv.reader(csvfile, delimiter='\t')
for row in reader:
gene... | 24.947368 | 68 | 0.675105 | 68 | 474 | 4.485294 | 0.647059 | 0.078689 | 0.091803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010582 | 0.202532 | 474 | 18 | 69 | 26.333333 | 0.796296 | 0.194093 | 0 | 0 | 0 | 0 | 0.18254 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | 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 |
1664b0776bc0872cba5782d3bde320737f2959ce | 3,180 | py | Python | Software/Funcionales/Clases/funciones_datos.py | matiasleize/tesis_licenciatura | 5df6e341314583702b466b8ed7977d410f0ee457 | [
"MIT"
] | null | null | null | Software/Funcionales/Clases/funciones_datos.py | matiasleize/tesis_licenciatura | 5df6e341314583702b466b8ed7977d410f0ee457 | [
"MIT"
] | null | null | null | Software/Funcionales/Clases/funciones_datos.py | matiasleize/tesis_licenciatura | 5df6e341314583702b466b8ed7977d410f0ee457 | [
"MIT"
] | null | null | null | import numpy as np
import numpy.ma as ma
from numpy.linalg import inv
import pandas as pd
class DataFrame:
def __init__(self,dataset,datafile):
self.dataset=dataset #Implementar poner varios datasets
self.datafile=datafile
def crear_df(self ,min_z = 0 ,max_z = 3):
if self.dataset=='SN':
'''Toma la data de ... | 32.121212 | 92 | 0.695283 | 526 | 3,180 | 4.087452 | 0.281369 | 0.050233 | 0.027907 | 0.048837 | 0.449302 | 0.41907 | 0.409767 | 0.356744 | 0.326047 | 0.326047 | 0 | 0.020076 | 0.169811 | 3,180 | 98 | 93 | 32.44898 | 0.794318 | 0 | 0 | 0.185185 | 0 | 0 | 0.120901 | 0.088595 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.148148 | 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 |
1666f83dc028b190ac6c10c1e1ca1593c9fc934f | 9,557 | py | Python | safecerthax.py | MrNbaYoh/safecerthax-proxy | 51e3da49bf4356038c1f9535201366de5f849059 | [
"MIT"
] | 4 | 2020-12-19T00:52:05.000Z | 2022-03-08T21:55:12.000Z | safecerthax.py | MrNbaYoh/safecerthax-proxy | 51e3da49bf4356038c1f9535201366de5f849059 | [
"MIT"
] | 1 | 2021-09-02T05:45:15.000Z | 2021-09-02T05:45:15.000Z | safecerthax.py | MrNbaYoh/safecerthax-proxy | 51e3da49bf4356038c1f9535201366de5f849059 | [
"MIT"
] | 1 | 2021-01-20T04:40:13.000Z | 2021-01-20T04:40:13.000Z | from mitmproxy import ctx
from mitmproxy import http
from mitmproxy import log
from mitmproxy.tools.console import eventlog
from mitmproxy.tools.console.window import WindowStack
from mitmproxy import command
from base64 import b64encode
from struct import pack
import sys
class CerthaxLog(eventlog.EventLog):
titl... | 69.253623 | 1,565 | 0.683687 | 1,121 | 9,557 | 5.77074 | 0.19893 | 0.043283 | 0.01855 | 0.031535 | 0.533931 | 0.502087 | 0.451847 | 0.419694 | 0.394497 | 0.348431 | 0 | 0.021178 | 0.16501 | 9,557 | 137 | 1,566 | 69.759124 | 0.789474 | 0 | 0 | 0.33871 | 0 | 0.032258 | 0.485613 | 0.091451 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0 | 0.072581 | 0 | 0.177419 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
166a4eba33d6ad8400377907d79b5003bd6c7935 | 9,679 | py | Python | Object Distance Measurement /main.py | aloysiussenjaya/Smart-Lamp-System | 9c15e1e5913eebd06cd754482b7ef7347ed34227 | [
"MIT"
] | 1 | 2021-07-15T07:18:11.000Z | 2021-07-15T07:18:11.000Z | Object Distance Measurement /main.py | aloysiussenjaya/Smart-Lamp-System | 9c15e1e5913eebd06cd754482b7ef7347ed34227 | [
"MIT"
] | null | null | null | Object Distance Measurement /main.py | aloysiussenjaya/Smart-Lamp-System | 9c15e1e5913eebd06cd754482b7ef7347ed34227 | [
"MIT"
] | null | null | null | # Import necessary library
import cv2
import numpy as np
import socket
import time
# Define IP Address for Arduinos
Arduino_1 = '192.168.43.137'
Arduino_2 = '192.168.43.87'
# Define Port Number
PORT = 8888
# Class to provide function that use for socket programming
class Connection:
# Initialize function to in... | 46.533654 | 201 | 0.663705 | 1,327 | 9,679 | 4.768651 | 0.258478 | 0.011852 | 0.022756 | 0.021492 | 0.280973 | 0.244153 | 0.216182 | 0.173831 | 0.153445 | 0.090234 | 0 | 0.027929 | 0.260151 | 9,679 | 208 | 202 | 46.533654 | 0.855746 | 0.483314 | 0 | 0.116667 | 0 | 0 | 0.043478 | 0.014085 | 0 | 0 | 0.000816 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
166bcb05bcb065bd6fa66c655fc746ca9338a30c | 9,311 | py | Python | sample/simple_http_notify_endpoint.py | jasonz93/python-toralimns | 95a0bb1699db6518d7285818b5022703f80784f5 | [
"MIT"
] | null | null | null | sample/simple_http_notify_endpoint.py | jasonz93/python-toralimns | 95a0bb1699db6518d7285818b5022703f80784f5 | [
"MIT"
] | null | null | null | sample/simple_http_notify_endpoint.py | jasonz93/python-toralimns | 95a0bb1699db6518d7285818b5022703f80784f5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#coding=utf8
# Copyright (C) 2015, Alibaba Cloud Computing
#Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to us... | 43.713615 | 461 | 0.636129 | 1,155 | 9,311 | 4.969697 | 0.281385 | 0.015854 | 0.017422 | 0.009408 | 0.053136 | 0.027178 | 0.027178 | 0.014286 | 0.014286 | 0.014286 | 0 | 0.010287 | 0.248308 | 9,311 | 212 | 462 | 43.919811 | 0.80983 | 0.128021 | 0 | 0.077844 | 0 | 0.005988 | 0.139856 | 0.018304 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071856 | null | null | 0.017964 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1671fa629a0923cef5ab51609d61aa92e6c1d5b7 | 1,174 | py | Python | reviewboard/webapi/resources/draft_patched_file.py | pombredanne/reviewboard | 15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d | [
"MIT"
] | null | null | null | reviewboard/webapi/resources/draft_patched_file.py | pombredanne/reviewboard | 15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d | [
"MIT"
] | null | null | null | reviewboard/webapi/resources/draft_patched_file.py | pombredanne/reviewboard | 15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d | [
"MIT"
] | null | null | null | from django.core.exceptions import ObjectDoesNotExist
from djblets.webapi.errors import DOES_NOT_EXIST
from reviewboard.webapi.resources import resources
from reviewboard.webapi.resources.base_patched_file import \
BasePatchedFileResource
class DraftPatchedFileResource(BasePatchedFileResource):
"""Provides t... | 33.542857 | 74 | 0.690801 | 126 | 1,174 | 6.214286 | 0.460317 | 0.056194 | 0.045977 | 0.076628 | 0.173691 | 0.173691 | 0.173691 | 0.173691 | 0.173691 | 0.173691 | 0 | 0.003363 | 0.240204 | 1,174 | 34 | 75 | 34.529412 | 0.874439 | 0.103918 | 0 | 0.272727 | 0 | 0 | 0.022094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1673d517852449ca9f18260be4a4bc184a68729f | 385 | py | Python | openpyxl/styles/tests/test_protection.py | hfutxqd/openpyxl | 50d6e37e0592aac63bc1ffeaf7b13e3b863bb066 | [
"MIT"
] | 12 | 2019-08-07T16:48:21.000Z | 2021-12-13T02:47:22.000Z | openpyxl/styles/tests/test_protection.py | hfutxqd/openpyxl | 50d6e37e0592aac63bc1ffeaf7b13e3b863bb066 | [
"MIT"
] | 19 | 2019-12-29T05:07:36.000Z | 2021-04-22T18:09:49.000Z | openpyxl/styles/tests/test_protection.py | hfutxqd/openpyxl | 50d6e37e0592aac63bc1ffeaf7b13e3b863bb066 | [
"MIT"
] | 1 | 2020-05-26T20:33:10.000Z | 2020-05-26T20:33:10.000Z | # Copyright (c) 2010-2019 openpyxl
import pytest
@pytest.fixture
def Protection():
from .. protection import Protection
return Protection
def test_default(Protection):
pt = Protection()
assert dict(pt) == {'hidden':'0', 'locked':'1'}
def test_round_trip(Protection):
args = {'hidden':'1', 'lock... | 19.25 | 51 | 0.651948 | 47 | 385 | 5.276596 | 0.510638 | 0.056452 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038585 | 0.192208 | 385 | 19 | 52 | 20.263158 | 0.758842 | 0.083117 | 0 | 0 | 0 | 0 | 0.079772 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.25 | false | 0 | 0.166667 | 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 |
1673f8c5670aaedb9cfe988baeb6085050da8964 | 2,729 | py | Python | Desktop/cs61a/projects/scheme/tests/05.py | cpvb13/cal-hack-5-proj | 13e31fff3f56b57030c34147b04cef1d6309c62b | [
"MIT"
] | null | null | null | Desktop/cs61a/projects/scheme/tests/05.py | cpvb13/cal-hack-5-proj | 13e31fff3f56b57030c34147b04cef1d6309c62b | [
"MIT"
] | null | null | null | Desktop/cs61a/projects/scheme/tests/05.py | cpvb13/cal-hack-5-proj | 13e31fff3f56b57030c34147b04cef1d6309c62b | [
"MIT"
] | null | null | null | test = {
'name': 'Problem 5',
'points': 2,
'suites': [
{
'cases': [
{
'code': r"""
>>> expr = read_line('(+ 2 2)')
>>> scheme_eval(expr, create_global_frame()) # Type SchemeError if you think this errors
4
>>> expr = read_line('(+ (+ 2 2) (+ 1 3)... | 26.240385 | 98 | 0.407842 | 282 | 2,729 | 3.897163 | 0.241135 | 0.016379 | 0.021838 | 0.10919 | 0.606915 | 0.574158 | 0.564149 | 0.420382 | 0.33121 | 0.236579 | 0 | 0.050132 | 0.444485 | 2,729 | 103 | 99 | 26.495146 | 0.674802 | 0 | 0 | 0.407767 | 0 | 0.019417 | 0.761451 | 0.024185 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019417 | 0 | 0.019417 | 0.029126 | 0 | 0 | 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 |
1678f5344a9caaf321a7473ea0bc5deef986bcb0 | 1,417 | py | Python | lexicon.py | mzc9/lexicon-py | 6786abafc88f941062523b44bd87a167091853e5 | [
"MIT"
] | null | null | null | lexicon.py | mzc9/lexicon-py | 6786abafc88f941062523b44bd87a167091853e5 | [
"MIT"
] | null | null | null | lexicon.py | mzc9/lexicon-py | 6786abafc88f941062523b44bd87a167091853e5 | [
"MIT"
] | null | null | null | '''basic script for the interactive dictionary
TODO: not tested
for now, using a small data file with the words, will perhaps
use Flask to create a dB of all the words,
or use the Oxford Dictionary API and make it work in a website
we'll see how this goes
TODO: add words to the dictionary in the database by the u... | 37.289474 | 127 | 0.683839 | 221 | 1,417 | 4.334842 | 0.488688 | 0.050104 | 0.078288 | 0.068894 | 0.064718 | 0.064718 | 0.064718 | 0 | 0 | 0 | 0 | 0.00364 | 0.224418 | 1,417 | 37 | 128 | 38.297297 | 0.868062 | 0.317572 | 0 | 0.125 | 0 | 0 | 0.282881 | 0 | 0 | 0 | 0 | 0.054054 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
167a013cc222513efc9d1d0cdc17429055f63842 | 1,398 | py | Python | MxOnlie/apps/courses/adminx.py | why168/PythonProjects | 264caca9354426ca91a4565079969aa34f95ce3f | [
"Artistic-2.0"
] | null | null | null | MxOnlie/apps/courses/adminx.py | why168/PythonProjects | 264caca9354426ca91a4565079969aa34f95ce3f | [
"Artistic-2.0"
] | null | null | null | MxOnlie/apps/courses/adminx.py | why168/PythonProjects | 264caca9354426ca91a4565079969aa34f95ce3f | [
"Artistic-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
__author__ = 'Edwin.Wu'
__date__ = '2017/3/11 15:44'
import xadmin
from .models import Course, Lesson, Video, CourseResource
class CourseAdmin(object):
list_display = ['name', 'desc', 'detail', 'degree', 'learn_times', 'students', 'fav_nums', 'image', 'click_nums',
'add... | 34.95 | 117 | 0.646638 | 159 | 1,398 | 5.402516 | 0.295597 | 0.097788 | 0.076834 | 0.088475 | 0.474971 | 0.324796 | 0.194412 | 0.194412 | 0.194412 | 0.142026 | 0 | 0.010345 | 0.170243 | 1,398 | 39 | 118 | 35.846154 | 0.730172 | 0.014306 | 0 | 0.111111 | 0 | 0 | 0.311773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
167b90baf7f98b14b2cec305de31a7a6d33554cf | 4,547 | py | Python | sdk/boost_1_30_0/tools/build/test/tree.py | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | 2 | 2020-01-30T12:51:49.000Z | 2020-08-31T08:36:49.000Z | sdk/boost_1_30_0/tools/build/test/tree.py | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | sdk/boost_1_30_0/tools/build/test/tree.py | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | # Copyright (C) 2001 Vladimir Prus. Permission to copy, use, modify, sell and
# distribute this software is granted, provided this copyright notice appears
# in all copies and modified versions are clearly marked as such. This software
# is provided "as is" without express or implied warranty, and with no claim as
... | 38.533898 | 109 | 0.604355 | 583 | 4,547 | 4.516295 | 0.238422 | 0.044436 | 0.031903 | 0.031903 | 0.237372 | 0.143183 | 0.072921 | 0.051652 | 0 | 0 | 0 | 0.003813 | 0.307895 | 4,547 | 117 | 110 | 38.863248 | 0.832857 | 0.1181 | 0 | 0.16092 | 0 | 0 | 0.063463 | 0 | 0 | 0 | 0 | 0 | 0.022989 | 0 | null | null | 0 | 0.011494 | null | null | 0.114943 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
168b43982dc342531fd4cc1d527be6a13c6dcbe1 | 2,557 | py | Python | mb_aligner/stitching/missing_matches_policies/use_microscope_coords.py | tomuram/mb_aligner_adisuissa | eaaa81fd7bc9ffc58c2683dc6cca8e2d5e90c11a | [
"MIT"
] | 3 | 2021-07-31T08:49:07.000Z | 2022-01-04T08:51:43.000Z | mb_aligner/stitching/missing_matches_policies/use_microscope_coords.py | Gilhirith/mb_aligner_SH | 325a97711c5e34e9d55584a2cf6e1a93943a0c66 | [
"MIT"
] | null | null | null | mb_aligner/stitching/missing_matches_policies/use_microscope_coords.py | Gilhirith/mb_aligner_SH | 325a97711c5e34e9d55584a2cf6e1a93943a0c66 | [
"MIT"
] | 3 | 2020-04-28T05:23:09.000Z | 2021-04-13T20:10:00.000Z | import numpy as np
from rh_logger.api import logger
import logging
import rh_logger
class UseMicroscopeCoordinates(object):
def __init__(self, **kwargs):
self._missing_matches = {}
# TODO - add policy (inner mofv or also between mfov)
self._intra_mfov_only = kwargs.get("intra_mfov_only", ... | 43.338983 | 184 | 0.581541 | 297 | 2,557 | 4.740741 | 0.292929 | 0.115057 | 0.06392 | 0.088068 | 0.245739 | 0.242898 | 0.183239 | 0.183239 | 0.183239 | 0.183239 | 0 | 0.041501 | 0.312084 | 2,557 | 58 | 185 | 44.086207 | 0.758954 | 0.09386 | 0 | 0.051282 | 0 | 0 | 0.022964 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.102564 | false | 0 | 0.102564 | 0 | 0.282051 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
168e77d6040e85f1c8effe01845fa59b7b75bb81 | 2,304 | py | Python | tests/scim/test_schema.py | movermeyer/python-scim | 018abbf0eecd64d973817fd522e7d3200f8d5367 | [
"MIT"
] | 20 | 2015-04-02T03:34:25.000Z | 2021-11-10T18:24:42.000Z | tests/scim/test_schema.py | movermeyer/python-scim | 018abbf0eecd64d973817fd522e7d3200f8d5367 | [
"MIT"
] | 1 | 2015-01-15T02:56:36.000Z | 2015-02-24T03:01:06.000Z | tests/scim/test_schema.py | movermeyer/python-scim | 018abbf0eecd64d973817fd522e7d3200f8d5367 | [
"MIT"
] | 7 | 2016-11-03T17:17:41.000Z | 2021-03-17T08:18:23.000Z | # -*- coding: utf-8 -*-
from datetime import datetime
from scim import schema
class TestUser:
def test_serialize(self):
u = schema.User()
u.id = '43568296982626'
u.external_id = '42'
u.meta.created = datetime.now()
u.meta.attributes.append('blue')
u.meta.attributes... | 37.16129 | 72 | 0.550781 | 287 | 2,304 | 4.376307 | 0.184669 | 0.100318 | 0.071656 | 0.044586 | 0.555732 | 0.555732 | 0.555732 | 0.555732 | 0.555732 | 0.555732 | 0 | 0.027152 | 0.248698 | 2,304 | 61 | 73 | 37.770492 | 0.69844 | 0.009115 | 0 | 0.423077 | 0 | 0 | 0.192459 | 0 | 0 | 0 | 0 | 0 | 0.442308 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.096154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
16912c9206ab16393ad8bc584abcc4a39e964ced | 774 | py | Python | req2.py | lucaspdfborges/mylab-node | 698dba6b8c8afcd66960db813f91c2028396f7b3 | [
"MIT"
] | 1 | 2019-08-20T17:25:35.000Z | 2019-08-20T17:25:35.000Z | req2.py | lucaspdfborges/mylab-node | 698dba6b8c8afcd66960db813f91c2028396f7b3 | [
"MIT"
] | null | null | null | req2.py | lucaspdfborges/mylab-node | 698dba6b8c8afcd66960db813f91c2028396f7b3 | [
"MIT"
] | null | null | null | import requests
import time
import math
from random import randint
url = 'http://127.0.0.1:8000/api/datum/'
headers = {'Authorization': 'Token 5fb496972e75e3ce8ea14175b37d0742e3884b73'}
def funcData(value):
return {'probe_hash': '38ca7d9fc6d488ac37f3b7dc3fb906ad', 'value': str(value), 'note':''}
def funcData2(va... | 29.769231 | 93 | 0.698966 | 105 | 774 | 5.133333 | 0.47619 | 0.077922 | 0.059369 | 0.074212 | 0.170686 | 0.081633 | 0.081633 | 0.081633 | 0.081633 | 0 | 0 | 0.140299 | 0.134367 | 774 | 25 | 94 | 30.96 | 0.664179 | 0.085271 | 0 | 0.117647 | 0 | 0 | 0.273759 | 0.147518 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.235294 | 0.117647 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
16943d300a922524ccd8d42a191286927c5850af | 19,363 | py | Python | case_studies/boeing_comparison/boeing_comparison.py | convexengineering/ondemand-evtol | 5ffb5b26c1b8b074272041cf9a371f81c7bda81b | [
"MIT"
] | 21 | 2019-02-24T20:36:28.000Z | 2022-03-18T09:44:40.000Z | case_studies/boeing_comparison/boeing_comparison.py | convexengineering/ondemand-evtol | 5ffb5b26c1b8b074272041cf9a371f81c7bda81b | [
"MIT"
] | 1 | 2017-11-16T19:48:12.000Z | 2017-11-16T19:50:04.000Z | case_studies/boeing_comparison/boeing_comparison.py | convexengineering/ondemand_evtol | 5ffb5b26c1b8b074272041cf9a371f81c7bda81b | [
"MIT"
] | 14 | 2017-12-11T01:18:28.000Z | 2022-02-05T07:31:14.000Z | #Vehicle configuration top-level trade study
import os
import sys
sys.path.append(os.path.abspath(os.path.dirname(__file__) + '/../..'))
import numpy as np
from gpkit import Model, ureg
from matplotlib import pyplot as plt
from aircraft_models import OnDemandAircraft
from aircraft_models import OnDemandSizingMission... | 41.911255 | 158 | 0.729794 | 2,864 | 19,363 | 4.759777 | 0.125 | 0.05135 | 0.028169 | 0.017165 | 0.589935 | 0.514011 | 0.418354 | 0.369205 | 0.355487 | 0.333847 | 0 | 0.019775 | 0.096369 | 19,363 | 462 | 159 | 41.911255 | 0.75933 | 0.072148 | 0 | 0.382514 | 0 | 0.010929 | 0.221391 | 0.033772 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02459 | 0.035519 | null | null | 0.027322 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
16977c4fdae40c07f8015837f2c07a515f8b644d | 2,592 | py | Python | appengine/standard/ndb/modeling/contact_with_group_models.py | summersab/python-docs-samples | 7c1e9685fe190f7789d8e1dbcfe8c01a20e3dc66 | [
"Apache-2.0"
] | 4 | 2018-12-23T18:17:14.000Z | 2020-01-05T19:13:58.000Z | appengine/standard/ndb/modeling/contact_with_group_models.py | summersab/python-docs-samples | 7c1e9685fe190f7789d8e1dbcfe8c01a20e3dc66 | [
"Apache-2.0"
] | 320 | 2020-11-08T21:02:43.000Z | 2022-02-10T10:43:29.000Z | appengine/standard/ndb/modeling/contact_with_group_models.py | summersab/python-docs-samples | 7c1e9685fe190f7789d8e1dbcfe8c01a20e3dc66 | [
"Apache-2.0"
] | 4 | 2018-06-03T14:43:25.000Z | 2019-11-24T04:05:18.000Z | # Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 30.494118 | 74 | 0.703704 | 330 | 2,592 | 5.475758 | 0.466667 | 0.075263 | 0.014942 | 0.017709 | 0.161594 | 0.132817 | 0.132817 | 0.132817 | 0.132817 | 0.132817 | 0 | 0.003855 | 0.19946 | 2,592 | 84 | 75 | 30.857143 | 0.866988 | 0.606096 | 0 | 0.090909 | 0 | 0 | 0.023758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.863636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
16a435fc8895182e8e4020f621f802ac2e6cc3b6 | 1,015 | py | Python | setup.py | RichieHakim/BMI_IDAP | 4bac918250ad343a02b66cd03a885791f8c92a4b | [
"MIT"
] | null | null | null | setup.py | RichieHakim/BMI_IDAP | 4bac918250ad343a02b66cd03a885791f8c92a4b | [
"MIT"
] | null | null | null | setup.py | RichieHakim/BMI_IDAP | 4bac918250ad343a02b66cd03a885791f8c92a4b | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='BMI_IDAP',
packages=find_packages(),
version='0.1.0',
description="BMI interday analysis pipeline",
author='Rich Hakim',
license='MIT',
install_requires=['numpy==1.18.3',
'jupyterlab',
'open... | 27.432432 | 49 | 0.412808 | 85 | 1,015 | 4.847059 | 0.635294 | 0.050971 | 0.067961 | 0.082524 | 0.101942 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0375 | 0.448276 | 1,015 | 37 | 50 | 27.432432 | 0.698214 | 0.174384 | 0 | 0 | 0 | 0 | 0.261446 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.038462 | 0 | 0.038462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
16a4e6f6d51f170bd8a3d6ba938af4edb1946b1d | 1,867 | py | Python | src/snakefiles/raw.py | jlanga/smsk_exfi_paper | 13b18f2e22aefd463d3d4f297bdb9ac0f5b416c9 | [
"MIT"
] | null | null | null | src/snakefiles/raw.py | jlanga/smsk_exfi_paper | 13b18f2e22aefd463d3d4f297bdb9ac0f5b416c9 | [
"MIT"
] | null | null | null | src/snakefiles/raw.py | jlanga/smsk_exfi_paper | 13b18f2e22aefd463d3d4f297bdb9ac0f5b416c9 | [
"MIT"
] | null | null | null | def get_reads(wildcards):
sample = wildcards.sample
library = wildcards.library
forward, reverse = (
samples
[(samples["sample"] == sample and samples["library"] == library)]
[["forward", "reverse"]]
.values
.tolist()[0]
)
return forward, reverse
rule raw_li... | 23.049383 | 73 | 0.565613 | 187 | 1,867 | 5.486631 | 0.235294 | 0.040936 | 0.087719 | 0.146199 | 0.39961 | 0.254386 | 0.166667 | 0.166667 | 0.166667 | 0.11501 | 0 | 0.006803 | 0.291377 | 1,867 | 80 | 74 | 23.3375 | 0.768707 | 0 | 0 | 0.3125 | 0 | 0 | 0.311194 | 0.06481 | 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 |
16a7f0c63a090cf0e014cf45cd0a2e09fd8b2c9f | 1,391 | py | Python | kwat/function_heat_map/_make_data_annotation.py | KwatME/ccal | d96dfa811482eee067f346386a2181ec514625f4 | [
"MIT"
] | 5 | 2017-05-05T17:50:28.000Z | 2019-01-30T19:23:02.000Z | kwat/function_heat_map/_make_data_annotation.py | KwatME/ccal | d96dfa811482eee067f346386a2181ec514625f4 | [
"MIT"
] | 5 | 2017-05-05T01:52:31.000Z | 2019-04-20T21:06:05.000Z | kwat/function_heat_map/_make_data_annotation.py | KwatME/ccal | d96dfa811482eee067f346386a2181ec514625f4 | [
"MIT"
] | 5 | 2017-07-17T18:55:54.000Z | 2019-02-02T04:46:19.000Z | from ..dictionary import merge
from ..string import trim
from .ANNOTATION import ANNOTATION
def _get_x(ie):
return 1.08 + ie / 6.4
def _make_data_annotation(y, la, he, ro_, st):
annotations = []
if la:
for ie, text in enumerate(["Score (\u0394)", "P-Value", "Q-Value"]):
annotati... | 22.079365 | 88 | 0.363767 | 125 | 1,391 | 3.952 | 0.408 | 0.089069 | 0.133603 | 0.194332 | 0.228745 | 0.228745 | 0.228745 | 0.157895 | 0.157895 | 0 | 0 | 0.019691 | 0.488857 | 1,391 | 62 | 89 | 22.435484 | 0.675105 | 0 | 0 | 0.288889 | 0 | 0 | 0.087707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.066667 | 0.022222 | 0.155556 | 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 |
16ad58594d99be08cc0822d0fe02e8039177b09a | 1,269 | py | Python | scripts/autoload.py | skonzem/model-t | 96e8ca32626190e7019e65b8777348191cabcef8 | [
"MIT"
] | null | null | null | scripts/autoload.py | skonzem/model-t | 96e8ca32626190e7019e65b8777348191cabcef8 | [
"MIT"
] | null | null | null | scripts/autoload.py | skonzem/model-t | 96e8ca32626190e7019e65b8777348191cabcef8 | [
"MIT"
] | null | null | null | import os
import serial
import time
s = serial.Serial('/dev/ttyUSB0', 9600, timeout=0.5)
while True:
time.sleep(0.2)
# command arduino to wait for board connection
print "Waiting for board connection"
s.write('r')
time.sleep(0.4)
# wait for arduino to indicate board connected
if s.r... | 20.142857 | 64 | 0.579984 | 185 | 1,269 | 3.978378 | 0.318919 | 0.110054 | 0.122283 | 0.119565 | 0.524457 | 0.512228 | 0.436141 | 0.436141 | 0.436141 | 0.436141 | 0 | 0.044776 | 0.313633 | 1,269 | 62 | 65 | 20.467742 | 0.80023 | 0.273444 | 0 | 0.558824 | 0 | 0 | 0.185307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088235 | null | null | 0.147059 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
16b2855e4cd11732bae96322d0a59481f13147f9 | 409 | py | Python | realestateapp/views.py | khabdrick/realestate-app | 106e161118737ccf8d1fa7ee1f9848631906919c | [
"MIT"
] | null | null | null | realestateapp/views.py | khabdrick/realestate-app | 106e161118737ccf8d1fa7ee1f9848631906919c | [
"MIT"
] | 1 | 2020-09-20T20:23:41.000Z | 2020-09-20T20:23:41.000Z | realestateapp/views.py | khabdrick/realestate-app | 106e161118737ccf8d1fa7ee1f9848631906919c | [
"MIT"
] | null | null | null | from django.contrib.auth import authenticate, login, get_user_model
from django.shortcuts import render, redirect
from properties.models import Property
def home_page(request):
object_list = Property.objects.all().featured()
context = {
"object_list": object_list,
}
return render(request, 'i... | 22.722222 | 67 | 0.731051 | 51 | 409 | 5.72549 | 0.588235 | 0.10274 | 0.130137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168704 | 409 | 17 | 68 | 24.058824 | 0.858824 | 0 | 0 | 0 | 0 | 0 | 0.075795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
16b96b44c683d7f59160de5eff5bd086d81108c3 | 2,130 | py | Python | telegram_messages_dump/exporters/jsonl.py | emanuelegit/telegram-messages-dump | 54cb537e4b20737d58a0c0acdf8c4cba6e111f03 | [
"MIT"
] | 109 | 2017-10-13T11:50:29.000Z | 2022-03-28T13:49:06.000Z | telegram_messages_dump/exporters/jsonl.py | pvpshoot/urbantrip_parser | 8156d70d315067cadf5276b464822c965fb87edc | [
"MIT"
] | 36 | 2018-02-05T21:16:29.000Z | 2021-12-08T13:56:53.000Z | telegram_messages_dump/exporters/jsonl.py | pvpshoot/urbantrip_parser | 8156d70d315067cadf5276b464822c965fb87edc | [
"MIT"
] | 25 | 2018-03-08T20:39:08.000Z | 2021-12-04T18:00:19.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# pylint: disable=missing-docstring
import json
from datetime import date, datetime
from .common import common
class jsonl(object):
""" jsonl exporter plugin.
As opposed to json exporter jsonl serializes messages as one JSON object per line, not as
one giant ... | 34.354839 | 116 | 0.624413 | 259 | 2,130 | 4.969112 | 0.505792 | 0.040404 | 0.020979 | 0.017094 | 0.041958 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005818 | 0.273709 | 2,130 | 61 | 117 | 34.918033 | 0.826115 | 0.40892 | 0 | 0.071429 | 0 | 0 | 0.092774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0.107143 | 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 |
16c1217c71a93fd8240e22456a893b50658e434b | 2,202 | py | Python | logMonitor/lambda_function.py | vasugarg/Cloudwatch-Log-Monitor | 0b947b4bbb0ec7fb05db7f4824feb75f19adbad6 | [
"MIT"
] | null | null | null | logMonitor/lambda_function.py | vasugarg/Cloudwatch-Log-Monitor | 0b947b4bbb0ec7fb05db7f4824feb75f19adbad6 | [
"MIT"
] | null | null | null | logMonitor/lambda_function.py | vasugarg/Cloudwatch-Log-Monitor | 0b947b4bbb0ec7fb05db7f4824feb75f19adbad6 | [
"MIT"
] | null | null | null | import logging
import time
import boto3
import os
import smtplib
from botocore.exceptions import ClientError
from datetime import datetime, timedelta
from html_generate import html_generate
from sendMail import sendMail
from queries_data import queries
logger = logging.getLogger()
logger.setLevel(logging.INFO)
client... | 30.583333 | 87 | 0.627157 | 251 | 2,202 | 5.40239 | 0.394422 | 0.066372 | 0.020649 | 0.042773 | 0.036873 | 0.036873 | 0 | 0 | 0 | 0 | 0 | 0.012727 | 0.250681 | 2,202 | 71 | 88 | 31.014085 | 0.809091 | 0 | 0 | 0 | 1 | 0 | 0.140781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
16c22b2dbabe3a95ae1734be26973502e21804ea | 1,144 | py | Python | python_helper/api/src/annotation/EnvironmentAnnotation.py | SamuelJansen/helper | 3f406db0fa7b4e1364840f9fd515240afd3afa68 | [
"MIT"
] | null | null | null | python_helper/api/src/annotation/EnvironmentAnnotation.py | SamuelJansen/helper | 3f406db0fa7b4e1364840f9fd515240afd3afa68 | [
"MIT"
] | null | null | null | python_helper/api/src/annotation/EnvironmentAnnotation.py | SamuelJansen/helper | 3f406db0fa7b4e1364840f9fd515240afd3afa68 | [
"MIT"
] | null | null | null | from python_helper.api.src.service import SettingHelper, ReflectionHelper, ObjectHelper
def EnvironmentVariable(*outerArgs, environmentVariables=None, **outerKwargs) :
def innerMethodWrapper(resourceInstanceMethod,*innerMethodArgs,**innerMethodKwargs) :
def innerResourceInstanceMethod(*innerArgs,**innerKwa... | 57.2 | 133 | 0.744755 | 66 | 1,144 | 12.893939 | 0.575758 | 0.047004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203671 | 1,144 | 19 | 134 | 60.210526 | 0.934138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.055556 | 0 | 0.388889 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
16ca1edc9e6de02d498c2d0173323df03bd86533 | 8,990 | py | Python | scripts/eagles_all_around.py | sumedhpb/TAF | fc6f4cb8dc0b8234393f2e52a7b4a1aa723d9449 | [
"Apache-2.0"
] | 9 | 2019-02-19T05:55:00.000Z | 2022-01-20T10:37:28.000Z | scripts/eagles_all_around.py | sumedhpb/TAF | fc6f4cb8dc0b8234393f2e52a7b4a1aa723d9449 | [
"Apache-2.0"
] | 2 | 2019-02-19T07:28:54.000Z | 2019-06-18T11:22:29.000Z | scripts/eagles_all_around.py | sumedhpb/TAF | fc6f4cb8dc0b8234393f2e52a7b4a1aa723d9449 | [
"Apache-2.0"
] | 155 | 2018-11-13T14:57:07.000Z | 2022-03-28T11:53:22.000Z | from com.jcraft.jsch import JSchException
from com.jcraft.jsch import JSch
from org.python.core.util import FileUtil
import sys
failed = []
exclude = "'Rollback point not found\|No space left on device\|Permission denied\|Already exists\|Unsupported key supplied'"
def run(command, session):
output = []
error... | 44.95 | 198 | 0.550834 | 1,153 | 8,990 | 4.248049 | 0.291414 | 0.105145 | 0.027766 | 0.017967 | 0.152511 | 0.102491 | 0.076562 | 0.0441 | 0.0441 | 0.0245 | 0 | 0.169737 | 0.269299 | 8,990 | 199 | 199 | 45.175879 | 0.575887 | 0 | 0 | 0.132184 | 0 | 0.011494 | 0.309455 | 0.022581 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011494 | 0.045977 | null | null | 0.126437 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
16ceaa3114b5532cbc50b138c1fa7492486f6c69 | 300 | py | Python | corehq/blobs/migrations/0009_delete_blobexpiration.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 471 | 2015-01-10T02:55:01.000Z | 2022-03-29T18:07:18.000Z | corehq/blobs/migrations/0009_delete_blobexpiration.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 14,354 | 2015-01-01T07:38:23.000Z | 2022-03-31T20:55:14.000Z | corehq/blobs/migrations/0009_delete_blobexpiration.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 175 | 2015-01-06T07:16:47.000Z | 2022-03-29T13:27:01.000Z | # Generated by Django 1.11.21 on 2019-06-12 15:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blobs', '0008_deletedblobmeta'),
]
operations = [
migrations.DeleteModel(
name='BlobExpiration',
),
]
| 17.647059 | 49 | 0.61 | 30 | 300 | 6.066667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097222 | 0.28 | 300 | 16 | 50 | 18.75 | 0.74537 | 0.156667 | 0 | 0 | 1 | 0 | 0.155378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
16d41ddb8c4fd78b2a0c0de46b6fa96b72e490ac | 15,251 | py | Python | sdk/lusid/models/configuration_recipe_snippet.py | slemasne/lusid-sdk-python-preview | 94a97951ec2052bc1672b7be21e52ad2fcf6eea0 | [
"MIT"
] | null | null | null | sdk/lusid/models/configuration_recipe_snippet.py | slemasne/lusid-sdk-python-preview | 94a97951ec2052bc1672b7be21e52ad2fcf6eea0 | [
"MIT"
] | null | null | null | sdk/lusid/models/configuration_recipe_snippet.py | slemasne/lusid-sdk-python-preview | 94a97951ec2052bc1672b7be21e52ad2fcf6eea0 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
LUSID API
FINBOURNE Technology # noqa: E501
The version of the OpenAPI document: 0.11.3725
Contact: info@finbourne.com
Generated by: https://openapi-generator.tech
"""
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getf... | 40.887399 | 478 | 0.659432 | 1,804 | 15,251 | 5.451774 | 0.128603 | 0.038231 | 0.104118 | 0.08785 | 0.673411 | 0.567667 | 0.533299 | 0.468022 | 0.380478 | 0.320691 | 0 | 0.015615 | 0.265163 | 15,251 | 372 | 479 | 40.997312 | 0.861961 | 0.445807 | 0 | 0.121387 | 1 | 0.011561 | 0.149952 | 0.011831 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132948 | false | 0 | 0.040462 | 0 | 0.300578 | 0.011561 | 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 |
16da66a1a281e8ecce124e57db3bcbc7b877dda4 | 1,940 | py | Python | LockLog.py | esitarski/CrossMgr | de33b5ed662556ec659e6e2910f5fd0f88f25fa0 | [
"MIT"
] | 25 | 2015-02-26T01:26:10.000Z | 2022-03-25T15:46:55.000Z | LockLog.py | esitarski/CrossMgr | de33b5ed662556ec659e6e2910f5fd0f88f25fa0 | [
"MIT"
] | 76 | 2015-12-09T04:24:30.000Z | 2022-02-18T16:39:28.000Z | LockLog.py | esitarski/CrossMgr | de33b5ed662556ec659e6e2910f5fd0f88f25fa0 | [
"MIT"
] | 17 | 2015-04-23T07:37:13.000Z | 2020-01-22T17:47:16.000Z | import sys
import inspect
import threading
#import logging
class logging:
@staticmethod
def debug( msg ):
print( msg, file=sys.stderr)
def format_frame( frame ):
return '{}:{} {}'.format( *[str(getattr(frame, a)) for a in ('filename', 'lineno', 'function')] )
# Class to wrap Lock and simplify logging of lock us... | 26.944444 | 98 | 0.678351 | 292 | 1,940 | 4.414384 | 0.287671 | 0.062064 | 0.065167 | 0.060512 | 0.403414 | 0.357642 | 0.29713 | 0.276183 | 0.276183 | 0.276183 | 0 | 0.00806 | 0.168557 | 1,940 | 71 | 99 | 27.323944 | 0.791073 | 0.163402 | 0 | 0.170213 | 0 | 0 | 0.113338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234043 | false | 0 | 0.06383 | 0.042553 | 0.468085 | 0.06383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
16dc9609b3fa29340373137ba9d32bfbf507b730 | 521 | py | Python | todoapp/migrations/0008_task_image.py | Bridgit-wairimu/Brii-to-do | bbf14ebfbea398213f83e129dc62f7bb917b54be | [
"MIT"
] | null | null | null | todoapp/migrations/0008_task_image.py | Bridgit-wairimu/Brii-to-do | bbf14ebfbea398213f83e129dc62f7bb917b54be | [
"MIT"
] | null | null | null | todoapp/migrations/0008_task_image.py | Bridgit-wairimu/Brii-to-do | bbf14ebfbea398213f83e129dc62f7bb917b54be | [
"MIT"
] | 1 | 2021-03-16T10:47:36.000Z | 2021-03-16T10:47:36.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2021-02-03 08:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('todoapp', '0007_remove_task_description'),
]
operations = [
mig... | 24.809524 | 103 | 0.602687 | 56 | 521 | 5.428571 | 0.803571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05291 | 0.274472 | 521 | 20 | 104 | 26.05 | 0.751323 | 0.126679 | 0 | 0 | 1 | 0 | 0.141204 | 0.064815 | 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 |
16de4c29d2230ce600d2777f4bcc592a68135de5 | 4,940 | py | Python | changes/models/jobplan.py | alex/changes | 69a17b4c639e7082a75d037384ccb68ead3a0b4b | [
"Apache-2.0"
] | 1 | 2015-11-08T13:00:44.000Z | 2015-11-08T13:00:44.000Z | changes/models/jobplan.py | alex/changes | 69a17b4c639e7082a75d037384ccb68ead3a0b4b | [
"Apache-2.0"
] | null | null | null | changes/models/jobplan.py | alex/changes | 69a17b4c639e7082a75d037384ccb68ead3a0b4b | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
import uuid
from collections import defaultdict
from datetime import datetime
from sqlalchemy import Column, DateTime, ForeignKey
from sqlalchemy.orm import relationship
from sqlalchemy.schema import Index
from changes.config import db
from changes.db.types.guid import GUID
fro... | 30.875 | 96 | 0.619636 | 585 | 4,940 | 5.054701 | 0.235897 | 0.018262 | 0.020291 | 0.02976 | 0.088603 | 0.014204 | 0 | 0 | 0 | 0 | 0 | 0.000846 | 0.282389 | 4,940 | 159 | 97 | 31.069182 | 0.833286 | 0.06417 | 0 | 0.081301 | 0 | 0 | 0.05913 | 0.014783 | 0 | 0 | 0 | 0.012579 | 0 | 1 | 0.065041 | false | 0 | 0.113821 | 0.01626 | 0.414634 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
16de7334a03872013a3a445ceaa94d2b1ca1f017 | 5,900 | py | Python | triple_agent/tests/test_iterate_over_replays.py | andrewzwicky/TripleAgent | 8d056df5c53a3d264dc778bad6771a0a2f62e7e7 | [
"MIT"
] | 3 | 2020-04-25T11:42:03.000Z | 2020-07-08T16:38:26.000Z | triple_agent/tests/test_iterate_over_replays.py | andrewzwicky/TripleAgent | 8d056df5c53a3d264dc778bad6771a0a2f62e7e7 | [
"MIT"
] | 17 | 2019-08-11T19:09:55.000Z | 2021-03-30T17:12:28.000Z | triple_agent/tests/test_iterate_over_replays.py | andrewzwicky/TripleAgent | 8d056df5c53a3d264dc778bad6771a0a2f62e7e7 | [
"MIT"
] | null | null | null | import pytest
from triple_agent.organization.replay_file_iterator import iterate_over_replays
from triple_agent.classes.missions import Missions
from triple_agent.classes.venues import Venue
from triple_agent.classes.outcomes import WinType
from triple_agent.parsing.replay.parse_single_replay import parse_single_repla... | 36.196319 | 144 | 0.69661 | 770 | 5,900 | 5.188312 | 0.25974 | 0.189987 | 0.057071 | 0.080851 | 0.326909 | 0.203504 | 0.170463 | 0.153442 | 0.153442 | 0.094118 | 0 | 0.035132 | 0.199153 | 5,900 | 162 | 145 | 36.419753 | 0.81037 | 0.098305 | 0 | 0.138462 | 0 | 0.007692 | 0.111132 | 0.06894 | 0 | 0 | 0 | 0 | 0.538462 | 1 | 0.023077 | false | 0 | 0.069231 | 0 | 0.092308 | 0.007692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
16e1e25b8648cdb5c0dd86aa079703147b24198b | 6,150 | py | Python | Keras_tensorflow_nightly/source2.7/tensorflow/contrib/proto/python/ops/gen_encode_proto_op.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 1 | 2019-06-27T12:09:44.000Z | 2019-06-27T12:09:44.000Z | Keras_tensorflow_nightly/source2.7/tensorflow/contrib/proto/python/ops/gen_encode_proto_op.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | null | null | null | Keras_tensorflow_nightly/source2.7/tensorflow/contrib/proto/python/ops/gen_encode_proto_op.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | null | null | null | """Python wrappers around TensorFlow ops.
This file is MACHINE GENERATED! Do not edit.
Original C++ source file: gen_encode_proto_op_py.cc
"""
import collections as _collections
import six as _six
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
from tensorflow.python.eager import context as _co... | 38.4375 | 344 | 0.717886 | 818 | 6,150 | 5.031785 | 0.216381 | 0.063168 | 0.058309 | 0.045918 | 0.409621 | 0.335763 | 0.335763 | 0.316327 | 0.304665 | 0.304665 | 0 | 0.022687 | 0.175772 | 6,150 | 159 | 345 | 38.679245 | 0.789308 | 0.182927 | 0 | 0.311828 | 1 | 0.010753 | 0.148201 | 0.040437 | 0 | 0 | 0 | 0.006289 | 0 | 1 | 0.032258 | false | 0 | 0.16129 | 0 | 0.247312 | 0 | 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 |
16e408b5d38f4930dd12bfaa42dc4155a05a51a2 | 512 | py | Python | adaptive_filters/filters/sslms.py | IsaacCorley/Adaptive-Filters | 8bcb63d0ff51a216ca9c12ca77d525a05ba1616f | [
"MIT"
] | 1 | 2022-02-01T11:25:28.000Z | 2022-02-01T11:25:28.000Z | adaptive_filters/filters/sslms.py | IsaacCorley/Adaptive-Filters | 8bcb63d0ff51a216ca9c12ca77d525a05ba1616f | [
"MIT"
] | null | null | null | adaptive_filters/filters/sslms.py | IsaacCorley/Adaptive-Filters | 8bcb63d0ff51a216ca9c12ca77d525a05ba1616f | [
"MIT"
] | 1 | 2022-02-01T11:25:28.000Z | 2022-02-01T11:25:28.000Z | import numpy as np
from .base import AdaptiveFilter
class SSLMSFilter(AdaptiveFilter):
def __init__(self, *args, **kwargs):
super(SSLMSFilter, self).__init__(*args, **kwargs)
def step(self, xi, yi, wi):
# Predict
yi_hat = self.predict(xi)
# Compute error
ei = yi - y... | 21.333333 | 60 | 0.564453 | 69 | 512 | 4.028986 | 0.507246 | 0.053957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 512 | 24 | 61 | 21.333333 | 0.789773 | 0.169922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
16e54df4873710e794c6a4309bb54176ab986e76 | 16,114 | py | Python | home/Lib/xml/sax/saxlib.py | jbalint/spark | caccf1cd9122dd4a7dc0f26a57ee4a649056aa6f | [
"CNRI-Jython"
] | 1 | 2015-05-21T20:00:12.000Z | 2015-05-21T20:00:12.000Z | home/Lib/xml/sax/saxlib.py | jbalint/spark | caccf1cd9122dd4a7dc0f26a57ee4a649056aa6f | [
"CNRI-Jython"
] | null | null | null | home/Lib/xml/sax/saxlib.py | jbalint/spark | caccf1cd9122dd4a7dc0f26a57ee4a649056aa6f | [
"CNRI-Jython"
] | null | null | null | """
This module contains the core classes of version 2.0 of SAX for Python.
This file provides only default classes with absolutely minimum
functionality, from which drivers and applications can be subclassed.
Many of these classes are empty and are included only as documentation
of the interfaces.
$Id: saxli... | 37.387471 | 78 | 0.649187 | 2,002 | 16,114 | 5.184316 | 0.216783 | 0.013971 | 0.040466 | 0.049138 | 0.309375 | 0.278351 | 0.246363 | 0.219482 | 0.168417 | 0.158397 | 0 | 0.002252 | 0.256113 | 16,114 | 430 | 79 | 37.474419 | 0.863602 | 0.614311 | 0 | 0.251701 | 0 | 0 | 0.32175 | 0.003353 | 0 | 0 | 0 | 0 | 0 | 1 | 0.387755 | false | 0 | 0.027211 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
16e61d85cdfbbad75c833557bef4cc36333b9155 | 238,038 | py | Python | py-fedex/pyfedex/upload_document_service_v11.py | QwadwoNyamekye/purplship-carriers | ce34e3054de246e3d85ddf6928b607193d061ae2 | [
"MIT"
] | 2 | 2021-04-12T22:40:28.000Z | 2021-04-21T18:28:31.000Z | py-fedex/pyfedex/upload_document_service_v11.py | QwadwoNyamekye/purplship-carriers | ce34e3054de246e3d85ddf6928b607193d061ae2 | [
"MIT"
] | 2 | 2021-01-29T07:14:31.000Z | 2021-02-18T18:29:23.000Z | py-fedex/pyfedex/upload_document_service_v11.py | QwadwoNyamekye/purplship-carriers | ce34e3054de246e3d85ddf6928b607193d061ae2 | [
"MIT"
] | 3 | 2020-09-09T17:04:46.000Z | 2021-03-05T00:32:32.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated Fri Mar 6 15:54:41 2020 by generateDS.py version 2.35.15.
# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)]
#
# Command line options:
# ('--no-namespace-defs', '')
# ('-o', './python/upload_document_service_v11.py')
... | 49.43676 | 519 | 0.652829 | 24,150 | 238,038 | 6.119959 | 0.034824 | 0.020318 | 0.018329 | 0.016374 | 0.735888 | 0.677314 | 0.6582 | 0.623159 | 0.610574 | 0.577021 | 0 | 0.003171 | 0.255371 | 238,038 | 4,814 | 520 | 49.44703 | 0.830663 | 0.034494 | 0 | 0.633221 | 1 | 0.000224 | 0.084091 | 0.034379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.127273 | false | 0.013917 | 0.018406 | 0.032997 | 0.27385 | 0.055443 | 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 |
16ec850064dd786bf5b995ab619144bda7cb51d2 | 11,280 | py | Python | synapse/http/proxyagent.py | adamvy/synapse | d4c4798a2548a53b63546a176f6dd350c4ad26bc | [
"Apache-2.0"
] | 1 | 2021-03-29T22:47:31.000Z | 2021-03-29T22:47:31.000Z | synapse/http/proxyagent.py | adamvy/synapse | d4c4798a2548a53b63546a176f6dd350c4ad26bc | [
"Apache-2.0"
] | 1 | 2019-04-04T05:08:04.000Z | 2019-04-04T05:08:04.000Z | synapse/http/proxyagent.py | f35f0ef9d0e827dae86552d3899f78fc/synapse | 7b76a6f597b840a2db333682e52edf2c19f09994 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2019 The Matrix.org Foundation C.I.C.
#
# 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 require... | 36.153846 | 92 | 0.641489 | 1,352 | 11,280 | 5.22929 | 0.268491 | 0.022914 | 0.016832 | 0.011881 | 0.090948 | 0.053465 | 0.021782 | 0.012164 | 0 | 0 | 0 | 0.003376 | 0.290957 | 11,280 | 311 | 93 | 36.270096 | 0.880595 | 0.436348 | 0 | 0.070922 | 0 | 0 | 0.029397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0.056738 | 0.106383 | 0 | 0.234043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
16edd74ae06ba606df35d2970e0734c3cf12f1d8 | 621 | py | Python | value/measures/forms.py | M3SOulu/value | 9e320fd97427f6cc448144f9f6f02e8476c253c2 | [
"MIT"
] | 2 | 2020-01-18T20:26:29.000Z | 2020-01-23T00:40:57.000Z | value/measures/forms.py | M3SOulu/value | 9e320fd97427f6cc448144f9f6f02e8476c253c2 | [
"MIT"
] | 5 | 2020-03-24T17:43:03.000Z | 2021-06-10T22:09:55.000Z | value/measures/forms.py | vitorfs/value | f0aaa726608480893bed7b700e6e9f4537045fe9 | [
"MIT"
] | null | null | null | # coding: utf-8
from django import forms
from django.utils.translation import ugettext_lazy as _
from value.measures.models import Measure
class BaseMeasureForm(forms.ModelForm):
class Meta:
model = Measure
fields = ('name',)
class CreateMeasureForm(BaseMeasureForm):
pass
class ChangeMea... | 21.413793 | 67 | 0.676329 | 65 | 621 | 6.353846 | 0.630769 | 0.048426 | 0.067797 | 0.101695 | 0.150121 | 0.150121 | 0 | 0 | 0 | 0 | 0 | 0.002088 | 0.228663 | 621 | 28 | 68 | 22.178571 | 0.860125 | 0.020934 | 0 | 0.222222 | 0 | 0 | 0.108911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
16eecc5670a4263aee47bd68eb4cec082e56db7d | 2,880 | py | Python | pygtk/fixed.py | demonMOE-s/Toys | 09ddd7e3f1d3956427c2f3d9e99ca05fc63c177e | [
"BSD-2-Clause"
] | 2 | 2019-01-06T05:32:18.000Z | 2019-12-12T04:54:56.000Z | pygtk/fixed.py | demonMOE-s/Toys | 09ddd7e3f1d3956427c2f3d9e99ca05fc63c177e | [
"BSD-2-Clause"
] | null | null | null | pygtk/fixed.py | demonMOE-s/Toys | 09ddd7e3f1d3956427c2f3d9e99ca05fc63c177e | [
"BSD-2-Clause"
] | null | null | null | import gtk
import gtk.gdk as gdk
import gobject
class Fixed(gtk.Container):
def __init__(self):
gtk.Container.__init__(self)
self._children = []
self._changed = False
def max_xy(self):
X = 0
Y = 0
for x, y, child in self._children:
w, h = child.size_request()
X = max(X, x+w)
Y = max(Y, y+h)
... | 25.263158 | 76 | 0.702083 | 451 | 2,880 | 4.32816 | 0.35255 | 0.007172 | 0.016906 | 0.029201 | 0.091189 | 0.069672 | 0.069672 | 0.043033 | 0.043033 | 0.043033 | 0 | 0.006332 | 0.177431 | 2,880 | 113 | 77 | 25.486726 | 0.817645 | 0.240625 | 0 | 0.085714 | 0 | 0 | 0.028624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042857 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
16ef024e1d16f017c29c0fab15ed344d61670d46 | 592 | py | Python | wagtail_ab_testing/migrations/0008_finished_status.py | alxbridge/wagtail-ab-testing | 1e959cc4ea1fa9b6d9adda2525fc3aae8e8b7807 | [
"BSD-3-Clause"
] | 14 | 2021-02-19T08:52:37.000Z | 2022-03-16T05:16:38.000Z | wagtail_ab_testing/migrations/0008_finished_status.py | alxbridge/wagtail-ab-testing | 1e959cc4ea1fa9b6d9adda2525fc3aae8e8b7807 | [
"BSD-3-Clause"
] | 10 | 2021-04-09T16:16:17.000Z | 2022-03-31T17:30:18.000Z | wagtail_ab_testing/migrations/0008_finished_status.py | alxbridge/wagtail-ab-testing | 1e959cc4ea1fa9b6d9adda2525fc3aae8e8b7807 | [
"BSD-3-Clause"
] | 11 | 2021-04-23T15:19:06.000Z | 2022-03-28T16:15:14.000Z | # Generated by Django 3.1.3 on 2020-12-09 11:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wagtail_ab_testing', '0007_grant_moderators_add_abtest_permission'),
]
operations = [
migrations.AlterField(
model_name='abtest'... | 31.157895 | 225 | 0.623311 | 61 | 592 | 5.901639 | 0.754098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044872 | 0.209459 | 592 | 18 | 226 | 32.888889 | 0.724359 | 0.076014 | 0 | 0 | 1 | 0 | 0.304587 | 0.078899 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc3f028daec3577c0b0eaa531eb556f93147cd37 | 5,208 | py | Python | scripts/tagConverter.py | eudaimoniatech/microNER | 30ee51ee2360d8796844149bee6c47069d84c32a | [
"MIT"
] | 9 | 2018-09-28T03:30:31.000Z | 2021-03-26T11:27:51.000Z | scripts/tagConverter.py | eudaimoniatech/microNER | 30ee51ee2360d8796844149bee6c47069d84c32a | [
"MIT"
] | 7 | 2019-12-12T14:20:50.000Z | 2022-02-10T00:06:17.000Z | scripts/tagConverter.py | eudaimoniatech/microNER | 30ee51ee2360d8796844149bee6c47069d84c32a | [
"MIT"
] | 2 | 2020-06-25T15:05:54.000Z | 2020-07-07T15:30:50.000Z | # -*- coding: utf-8 -*-
# @Author: Jie Yang
# @Date: 2017-11-27 16:53:36
# @Last Modified by: Jie Yang, Contact: jieynlp@gmail.com
# @Last Modified time: 2018-06-25 10:26:30
"""
convert NER/Chunking tag schemes, i.e. BIO->BIOES, BIOES->BIO, IOB->BIO, IOB->BIOES
"""
from __future__ import print_function
i... | 35.917241 | 108 | 0.496352 | 649 | 5,208 | 3.879815 | 0.1849 | 0.067911 | 0.06672 | 0.081017 | 0.661239 | 0.650516 | 0.613582 | 0.594519 | 0.541303 | 0.541303 | 0 | 0.025242 | 0.345814 | 5,208 | 144 | 109 | 36.166667 | 0.713824 | 0.049155 | 0 | 0.715517 | 0 | 0 | 0.073555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.017241 | 0 | 0.051724 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc3fb7276dc97e4d2bceb053ba3bf073639a9393 | 8,997 | py | Python | third_party/mapreduce/mapreduce/base_handler.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/mapreduce/mapreduce/base_handler.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 4,640 | 2015-07-08T16:19:08.000Z | 2019-12-02T15:01:27.000Z | third_party/mapreduce/mapreduce/base_handler.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 698 | 2015-06-02T19:18:35.000Z | 2022-03-29T16:57:15.000Z | #!/usr/bin/env python
# Copyright 2010 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | 31.131488 | 79 | 0.707347 | 1,151 | 8,997 | 5.397915 | 0.299739 | 0.024787 | 0.025752 | 0.01352 | 0.184774 | 0.091743 | 0.081764 | 0.072107 | 0.047642 | 0.019636 | 0 | 0.00529 | 0.201512 | 8,997 | 288 | 80 | 31.239583 | 0.859549 | 0.139491 | 0 | 0.328571 | 0 | 0 | 0.145742 | 0.009716 | 0 | 0 | 0 | 0.003472 | 0 | 0 | null | null | 0.014286 | 0.1 | 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 |
bc3fbda4e1aa10fe3852fa801b0a9bb277668736 | 12,798 | py | Python | Personalization/script_Bonprix.py | pedrohserrano/persona-training-scripts | d6cea528e209abb7fb7c89f58b214ebd74781dc2 | [
"MIT"
] | null | null | null | Personalization/script_Bonprix.py | pedrohserrano/persona-training-scripts | d6cea528e209abb7fb7c89f58b214ebd74781dc2 | [
"MIT"
] | null | null | null | Personalization/script_Bonprix.py | pedrohserrano/persona-training-scripts | d6cea528e209abb7fb7c89f58b214ebd74781dc2 | [
"MIT"
] | 1 | 2021-06-21T15:02:20.000Z | 2021-06-21T15:02:20.000Z | # imports
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import TimeoutException
from selen... | 37.976261 | 174 | 0.625176 | 1,605 | 12,798 | 4.849844 | 0.210592 | 0.015416 | 0.015545 | 0.032117 | 0.665853 | 0.648638 | 0.644527 | 0.630781 | 0.620504 | 0.608941 | 0 | 0.02647 | 0.267932 | 12,798 | 336 | 175 | 38.089286 | 0.804355 | 0.269261 | 0 | 0.574257 | 0 | 0.014851 | 0.159983 | 0.015025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019802 | false | 0.039604 | 0.074257 | 0 | 0.09901 | 0.084158 | 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 |
bc406ff83e799c185cc9de644072841dfca5cbf5 | 740 | py | Python | show_temp.py | StrawberryTeam/pi_robot | c1b8ce2ad49c64173673df0eb59e0941624556e7 | [
"MIT"
] | 2 | 2018-08-30T14:38:53.000Z | 2019-12-12T09:33:42.000Z | show_temp.py | StrawberryTeam/pi_robot | c1b8ce2ad49c64173673df0eb59e0941624556e7 | [
"MIT"
] | 1 | 2018-12-10T05:15:48.000Z | 2018-12-10T05:15:48.000Z | show_temp.py | StrawberryTeam/pi_robot | c1b8ce2ad49c64173673df0eb59e0941624556e7 | [
"MIT"
] | 2 | 2019-06-28T06:05:17.000Z | 2019-10-28T08:34:50.000Z | # -*- coding: utf-8 -*-
#!/usr/bin/python3
import commands
def get_cpu_temp():
tempFile = open( "/sys/class/thermal/thermal_zone0/temp" )
cpu_temp = tempFile.read()
tempFile.close()
return float(cpu_temp)/1000
# Uncomment the next line if you want the temp in Fahrenheit
#return float(1.8*cpu_... | 28.461538 | 116 | 0.652703 | 109 | 740 | 4.211009 | 0.422018 | 0.091503 | 0.043573 | 0.087146 | 0.265795 | 0.265795 | 0.265795 | 0.265795 | 0.265795 | 0.265795 | 0 | 0.025253 | 0.197297 | 740 | 25 | 117 | 29.6 | 0.747475 | 0.291892 | 0 | 0 | 0 | 0 | 0.205029 | 0.071567 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc4093113f26a581df15ee9338586f3496729f52 | 1,031 | py | Python | apps/recetas/migrations/0001_initial.py | Monse200599/sistema_medico | c220c5278d96bb9cd86f92fbac1bc66d6eebfd56 | [
"MIT"
] | null | null | null | apps/recetas/migrations/0001_initial.py | Monse200599/sistema_medico | c220c5278d96bb9cd86f92fbac1bc66d6eebfd56 | [
"MIT"
] | null | null | null | apps/recetas/migrations/0001_initial.py | Monse200599/sistema_medico | c220c5278d96bb9cd86f92fbac1bc66d6eebfd56 | [
"MIT"
] | 1 | 2021-11-30T06:02:11.000Z | 2021-11-30T06:02:11.000Z | # Generated by Django 3.2.6 on 2021-09-25 17:21
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('bienes', '0002_alter_bienes_tipo_bienes'),
migrations.swappable... | 34.366667 | 122 | 0.634336 | 110 | 1,031 | 5.790909 | 0.554545 | 0.050235 | 0.065934 | 0.103611 | 0.172684 | 0.172684 | 0.172684 | 0.172684 | 0.172684 | 0.172684 | 0 | 0.024235 | 0.239573 | 1,031 | 29 | 123 | 35.551724 | 0.788265 | 0.043647 | 0 | 0 | 1 | 0 | 0.096545 | 0.029472 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 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 |
bc41de053aef8afaaad37536b2d3c33a26cb6891 | 509 | py | Python | scan.py | freespace/arduino-ADS7825 | 0cf56782dd5ca0e080be1c229399933c8b6841a7 | [
"MIT"
] | 1 | 2015-08-15T04:06:12.000Z | 2015-08-15T04:06:12.000Z | scan.py | freespace/arduino-ADS7825 | 0cf56782dd5ca0e080be1c229399933c8b6841a7 | [
"MIT"
] | null | null | null | scan.py | freespace/arduino-ADS7825 | 0cf56782dd5ca0e080be1c229399933c8b6841a7 | [
"MIT"
] | null | null | null | import time
from ads7825 import ADS7825
def main(serialport, nscans, nchannels):
adc = ADS7825(serialport)
adc.scan()
done = False
while not done:
time.sleep(3)
try:
data = adc.read_scan(nscans, nchannels=nchannels)
done = True
except Exception, ex:
print ex
print len(da... | 18.851852 | 59 | 0.628684 | 70 | 509 | 4.442857 | 0.528571 | 0.144695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044156 | 0.243615 | 509 | 26 | 60 | 19.576923 | 0.763636 | 0 | 0 | 0 | 0 | 0 | 0.082677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc4201333d9bdf7e890fc4d8760ea2a884b948f0 | 2,460 | py | Python | cogs/fun.py | MaT1g3R/YasenBaka | c5ff3b0419801c2d37a86bac644d72ffff97d482 | [
"Apache-2.0"
] | 6 | 2017-04-08T15:16:17.000Z | 2019-06-22T20:14:39.000Z | cogs/fun.py | MaT1g3R/YasenBaka | c5ff3b0419801c2d37a86bac644d72ffff97d482 | [
"Apache-2.0"
] | 8 | 2017-07-20T22:01:21.000Z | 2018-01-10T18:57:32.000Z | cogs/fun.py | MaT1g3R/YasenBaka | c5ff3b0419801c2d37a86bac644d72ffff97d482 | [
"Apache-2.0"
] | 5 | 2017-11-23T21:25:51.000Z | 2019-06-22T20:14:46.000Z | from random import choice
from discord.ext import commands
from discord.ext.commands import BucketType, Context
from bot import Yasen
from core.fun_core import generate_dice_rolls, parse_repeat, parse_salt
class Fun:
"""
Class to hold `Fun` commands.
"""
__slots__ = ('bot',)
def __init__(self, ... | 31.948052 | 78 | 0.567886 | 317 | 2,460 | 4.33123 | 0.375394 | 0.046613 | 0.06992 | 0.050255 | 0.05681 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017293 | 0.318293 | 2,460 | 76 | 79 | 32.368421 | 0.801431 | 0.039837 | 0 | 0.175 | 1 | 0 | 0.11725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.125 | 0 | 0.225 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc467ced7b84845961794f7ba407450a8571d859 | 959 | py | Python | src/bepasty/tests/test_storage.py | Emojigit/bepasty-server | c68524d16f5387ec1df3d717afe83eb195c42b34 | [
"BSD-2-Clause"
] | 123 | 2015-01-01T21:03:29.000Z | 2022-03-27T05:35:25.000Z | src/bepasty/tests/test_storage.py | Emojigit/bepasty-server | c68524d16f5387ec1df3d717afe83eb195c42b34 | [
"BSD-2-Clause"
] | 134 | 2015-01-09T20:21:21.000Z | 2022-03-09T09:13:54.000Z | src/bepasty/tests/test_storage.py | Emojigit/bepasty-server | c68524d16f5387ec1df3d717afe83eb195c42b34 | [
"BSD-2-Clause"
] | 40 | 2015-01-21T14:13:53.000Z | 2022-01-13T20:39:57.000Z | import pytest
from bepasty.storage.filesystem import Storage
def test_contains(tmpdir):
storage = Storage(str(tmpdir))
name = "foo"
# check if it is not there yet
assert name not in storage
with storage.create(name, 0):
# we just want it created, no need to write sth into it
pass
... | 25.236842 | 67 | 0.632951 | 135 | 959 | 4.466667 | 0.362963 | 0.092869 | 0.099502 | 0.114428 | 0.452736 | 0.331675 | 0.222222 | 0.222222 | 0.222222 | 0.222222 | 0 | 0.004298 | 0.272159 | 959 | 37 | 68 | 25.918919 | 0.859599 | 0.203337 | 0 | 0.375 | 0 | 0 | 0.029062 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 1 | 0.125 | false | 0.083333 | 0.083333 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bc4922af1f3ba238dfd6fee52572704cbe08788f | 2,568 | py | Python | docs/source/conf.py | ulope/matrix-python-sdk | baf18f43f170f083211eb4bace57926f104f2e8b | [
"Apache-2.0"
] | null | null | null | docs/source/conf.py | ulope/matrix-python-sdk | baf18f43f170f083211eb4bace57926f104f2e8b | [
"Apache-2.0"
] | null | null | null | docs/source/conf.py | ulope/matrix-python-sdk | baf18f43f170f083211eb4bace57926f104f2e8b | [
"Apache-2.0"
] | 1 | 2018-07-24T07:11:10.000Z | 2018-07-24T07:11:10.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Matrix Python SDK documentation build configuration file, created by
# sphinx-quickstart on Tue May 3 14:25:58 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in... | 26.204082 | 79 | 0.712227 | 347 | 2,568 | 5.170029 | 0.489914 | 0.040134 | 0.050167 | 0.06243 | 0.06466 | 0.06466 | 0.06466 | 0.06466 | 0 | 0 | 0 | 0.013457 | 0.160826 | 2,568 | 97 | 80 | 26.474227 | 0.819026 | 0.519081 | 0 | 0 | 0 | 0 | 0.359102 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.073171 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
bc5be998fe9f40b66bed6d25785ab28be8148758 | 1,697 | py | Python | up/utils/general/registry_factory.py | ModelTC/EOD | 164bff80486e9ae6a095a97667b365c46ceabd86 | [
"Apache-2.0"
] | 196 | 2021-10-30T05:15:36.000Z | 2022-03-30T18:43:40.000Z | up/utils/general/registry_factory.py | ModelTC/EOD | 164bff80486e9ae6a095a97667b365c46ceabd86 | [
"Apache-2.0"
] | 12 | 2021-10-30T11:33:28.000Z | 2022-03-31T14:22:58.000Z | up/utils/general/registry_factory.py | ModelTC/EOD | 164bff80486e9ae6a095a97667b365c46ceabd86 | [
"Apache-2.0"
] | 23 | 2021-11-01T07:26:17.000Z | 2022-03-27T05:55:37.000Z | from .registry import Registry
# model
MODULE_ZOO_REGISTRY = Registry()
MODULE_PROCESS_REGISTRY = Registry()
MODULE_WRAPPER_REGISTRY = Registry()
MODEL_WRAPPER_REGISTRY = Registry()
EMA_REGISTRY = Registry()
# data
DATASET_REGISTRY = Registry()
DATALOADER_REGISTRY = Registry()
BATCH_SAMPLER_REGISTRY = Registry()
AUGM... | 18.445652 | 38 | 0.791986 | 180 | 1,697 | 7.1 | 0.283333 | 0.488263 | 0.053991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120212 | 1,697 | 91 | 39 | 18.648352 | 0.855995 | 0.119623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023256 | 0 | 0.023256 | 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 |
bc604efe9ff52417181af35e169b139dbb9bb242 | 3,547 | py | Python | pysmartapp/request.py | andrewsayre/pysmartapp | 5c3be867584d7e82d00b5998295b20bd12eccf94 | [
"MIT"
] | 10 | 2019-02-07T20:07:10.000Z | 2020-12-30T20:29:32.000Z | pysmartapp/request.py | andrewsayre/pysmartapp | 5c3be867584d7e82d00b5998295b20bd12eccf94 | [
"MIT"
] | 1 | 2021-12-05T15:00:13.000Z | 2021-12-05T15:00:13.000Z | pysmartapp/request.py | andrewsayre/pysmartapp | 5c3be867584d7e82d00b5998295b20bd12eccf94 | [
"MIT"
] | 2 | 2020-10-17T20:20:45.000Z | 2021-09-28T12:58:50.000Z | """Define the request module."""
from httpsig.verify import HeaderVerifier
from .errors import SignatureVerificationError
class Response:
"""Defines a response."""
def to_data(self) -> dict:
"""Create a data structure for the response."""
raise NotImplementedError
class EmptyDataResponse(... | 30.316239 | 74 | 0.617987 | 400 | 3,547 | 5.3025 | 0.2275 | 0.090523 | 0.033003 | 0.042904 | 0.17586 | 0.069778 | 0.048091 | 0 | 0 | 0 | 0 | 0 | 0.281365 | 3,547 | 116 | 75 | 30.577586 | 0.832091 | 0.193121 | 0 | 0.180556 | 0 | 0 | 0.027503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.027778 | 0 | 0.430556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bc60b1ee1656d339b170736cbe2c9371a2a4f5ed | 31,702 | py | Python | client.py | mabhisharma/Secure-Instant-Messaging-App | 9e9cb126308a840a45af9f08e109de518b8e720b | [
"MIT"
] | null | null | null | client.py | mabhisharma/Secure-Instant-Messaging-App | 9e9cb126308a840a45af9f08e109de518b8e720b | [
"MIT"
] | null | null | null | client.py | mabhisharma/Secure-Instant-Messaging-App | 9e9cb126308a840a45af9f08e109de518b8e720b | [
"MIT"
] | null | null | null | #!/usr/bin/python2.7
import os, sys, socket, json, argparse, threading, csv, getpass,time, ConfigParser
from base64 import b64encode
from Queue import Queue
from Utility.crypto import *
q = Queue()
clientdict = {}
clientusernamedict ={}
def rsa_decrypt(cipher,private_key):
if len(cipher) > 256:
x = len(c... | 56.309059 | 157 | 0.514195 | 3,301 | 31,702 | 4.74644 | 0.090579 | 0.036188 | 0.03255 | 0.026679 | 0.68809 | 0.654455 | 0.606204 | 0.594205 | 0.569888 | 0.517488 | 0 | 0.030615 | 0.374582 | 31,702 | 563 | 158 | 56.309059 | 0.759621 | 0.023752 | 0 | 0.585742 | 0 | 0 | 0.096705 | 0.008148 | 0.001927 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021195 | 0.007707 | null | null | 0.065511 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bc62ebaf5fd93e14cdcc024673036cb9ae69f665 | 9,711 | py | Python | hw1/dagger_pytorch.py | zjzijielu/CS294-homework | 1e42152acd7dd22eba657be546efdffb406c008e | [
"MIT"
] | null | null | null | hw1/dagger_pytorch.py | zjzijielu/CS294-homework | 1e42152acd7dd22eba657be546efdffb406c008e | [
"MIT"
] | null | null | null | hw1/dagger_pytorch.py | zjzijielu/CS294-homework | 1e42152acd7dd22eba657be546efdffb406c008e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Code to load an expert policy and generate roll-out data for behavioral cloning.
Example usage:
python dagger_pytorch.py experts/Humanoid-v1.pkl Humanoid-v2 --render \
--num_rollouts 20
Author of this script and included expert policies: Jonathan Ho (hoj@openai.com)
"""
impo... | 30.537736 | 127 | 0.662445 | 1,353 | 9,711 | 4.57354 | 0.168514 | 0.022624 | 0.03022 | 0.008888 | 0.468164 | 0.384454 | 0.361829 | 0.34276 | 0.310278 | 0.300905 | 0 | 0.012812 | 0.204304 | 9,711 | 317 | 128 | 30.634069 | 0.788016 | 0.09412 | 0 | 0.402597 | 1 | 0 | 0.08398 | 0.008558 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038961 | false | 0 | 0.064935 | 0 | 0.134199 | 0.069264 | 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 |
bc6bfcc285ae4138ad028f429129353b961cb0f3 | 695 | py | Python | blog/schemas.py | jorgesalhani/LearningFastAPI | 0bcf02cfbaf5d48d92c4d78514bebf1f0fc17843 | [
"MIT"
] | null | null | null | blog/schemas.py | jorgesalhani/LearningFastAPI | 0bcf02cfbaf5d48d92c4d78514bebf1f0fc17843 | [
"MIT"
] | null | null | null | blog/schemas.py | jorgesalhani/LearningFastAPI | 0bcf02cfbaf5d48d92c4d78514bebf1f0fc17843 | [
"MIT"
] | null | null | null | from typing import List, Optional
from pydantic import BaseModel
class BlogBase(BaseModel):
title: str
body: str
class Blog(BlogBase):
class Config():
orm_mode = True
class User(BaseModel):
name: str
email: str
password: str
class ShowUser(BaseModel):
name: str
email: str
... | 16.95122 | 33 | 0.654676 | 85 | 695 | 5.294118 | 0.376471 | 0.071111 | 0.093333 | 0.12 | 0.393333 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261871 | 695 | 41 | 34 | 16.95122 | 0.877193 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.0625 | 0 | 0.90625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bc6e40027bc909e24b94ce525c39aca670822ab0 | 53,792 | py | Python | clipPrimers_both_ends.py | lshzhang/OTA-pipeline | fa69a5f85bc80add1e1f74f1d74ce1a233e114b8 | [
"Zlib"
] | null | null | null | clipPrimers_both_ends.py | lshzhang/OTA-pipeline | fa69a5f85bc80add1e1f74f1d74ce1a233e114b8 | [
"Zlib"
] | null | null | null | clipPrimers_both_ends.py | lshzhang/OTA-pipeline | fa69a5f85bc80add1e1f74f1d74ce1a233e114b8 | [
"Zlib"
] | 1 | 2021-08-14T04:10:18.000Z | 2021-08-14T04:10:18.000Z | #!/usr/bin/python
import pysam
import csv
import Bio.Seq
import regex
import sys, getopt
# http://www.tutorialspoint.com/python/python_command_line_arguments.htm
# Returns "Start" if You need to look for the primer at the "start" of the read, returns "End" if you need to look for the primer at the end of the... | 42.999201 | 264 | 0.630744 | 5,331 | 53,792 | 6.314575 | 0.127556 | 0.012358 | 0.008585 | 0.00505 | 0.386775 | 0.32662 | 0.291566 | 0.264177 | 0.251404 | 0.228352 | 0 | 0.015881 | 0.29298 | 53,792 | 1,250 | 265 | 43.0336 | 0.869242 | 0.326536 | 0 | 0.416789 | 0 | 0.002946 | 0.05181 | 0.001388 | 0.005891 | 0 | 0 | 0.0008 | 0 | 0 | null | null | 0.001473 | 0.007364 | null | null | 0.044183 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bc714cf29dcbeb0cccab2501a2de3a0566d6a326 | 652 | py | Python | test/tests/generators.py | jonco3/dynamic | 76d10b012a7860595c7d9abbdf542c7d8f2a4d53 | [
"MIT"
] | 1 | 2020-11-26T23:37:19.000Z | 2020-11-26T23:37:19.000Z | test/tests/generators.py | jonco3/dynamic | 76d10b012a7860595c7d9abbdf542c7d8f2a4d53 | [
"MIT"
] | null | null | null | test/tests/generators.py | jonco3/dynamic | 76d10b012a7860595c7d9abbdf542c7d8f2a4d53 | [
"MIT"
] | null | null | null | # output: ok
def foo(x):
yield 1
yield x
iter = foo(2)
assert next(iter) == 1
assert next(iter) == 2
def bar(array):
for x in array:
yield 2 * x
iter = bar([1, 2, 3])
assert next(iter) == 2
assert next(iter) == 4
assert next(iter) == 6
def collect(iter):
result = []
for x in iter:
... | 13.87234 | 38 | 0.56135 | 105 | 652 | 3.485714 | 0.333333 | 0.136612 | 0.191257 | 0.081967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040254 | 0.276074 | 652 | 46 | 39 | 14.173913 | 0.735169 | 0.015337 | 0 | 0.058824 | 0 | 0 | 0.003125 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 1 | 0.176471 | false | 0 | 0 | 0.029412 | 0.235294 | 0.029412 | 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 |
bc771984d5a501d29279afd40d28fe6e9a7e48f3 | 455 | py | Python | test/functional/test_framework/beerchainconfig.py | beerchainproject/beerchain | 85a2701aff25358bbf2da6651d407a8d63ea2be8 | [
"MIT"
] | null | null | null | test/functional/test_framework/beerchainconfig.py | beerchainproject/beerchain | 85a2701aff25358bbf2da6651d407a8d63ea2be8 | [
"MIT"
] | null | null | null | test/functional/test_framework/beerchainconfig.py | beerchainproject/beerchain | 85a2701aff25358bbf2da6651d407a8d63ea2be8 | [
"MIT"
] | 2 | 2020-09-15T08:11:39.000Z | 2021-03-22T21:56:28.000Z | COINBASE_MATURITY = 500
INITIAL_BLOCK_REWARD = 20000
INITIAL_HASH_UTXO_ROOT = 0x21b463e3b52f6201c0ad6c991be0485b6ef8c092e64583ffa655cc1b171fe856
INITIAL_HASH_STATE_ROOT = 0x9514771014c9ae803d8cea2731b2063e83de44802b40dce2d06acd02d0ff65e9
MAX_BLOCK_BASE_SIZE = 2000000
BEERCHAIN_MIN_GAS_PRICE = 40
BEERCHAIN_MIN_GAS_PRICE... | 37.916667 | 92 | 0.896703 | 51 | 455 | 7.45098 | 0.803922 | 0.057895 | 0.078947 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28436 | 0.072527 | 455 | 11 | 93 | 41.363636 | 0.616114 | 0 | 0 | 0 | 0 | 0 | 0.021978 | 0 | 0 | 0 | 0.29011 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc77d75f2e0e737e5b55e99d2f42c83d06b503db | 9,175 | py | Python | junk/samplr.py | simplegeo/betashapes | 25d964c6dc20281b8f4c0b9049cd417af3e21e35 | [
"PostgreSQL",
"Unlicense"
] | 14 | 2015-02-13T16:35:28.000Z | 2021-01-18T04:20:50.000Z | junk/samplr.py | simplegeo/betashapes | 25d964c6dc20281b8f4c0b9049cd417af3e21e35 | [
"PostgreSQL",
"Unlicense"
] | null | null | null | junk/samplr.py | simplegeo/betashapes | 25d964c6dc20281b8f4c0b9049cd417af3e21e35 | [
"PostgreSQL",
"Unlicense"
] | 1 | 2017-03-23T22:09:36.000Z | 2017-03-23T22:09:36.000Z | from shapely.geometry import Point, MultiPoint, Polygon, MultiPolygon
from shapely.ops import cascaded_union, polygonize
from shapely.prepared import prep
from rtree import Rtree
import sys, random, json, numpy, math, pickle, os
SAMPLE_ITERATIONS = 200
SAMPLE_SIZE = 5
MEDIAN_THRESHOLD = 5.0
median_distance_cache = {}... | 36.122047 | 120 | 0.629101 | 1,255 | 9,175 | 4.464542 | 0.152191 | 0.059968 | 0.082456 | 0.01874 | 0.264144 | 0.203819 | 0.141531 | 0.116723 | 0.107085 | 0.092807 | 0 | 0.013279 | 0.228447 | 9,175 | 253 | 121 | 36.264822 | 0.778217 | 0 | 0 | 0.231638 | 0 | 0 | 0.092234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028249 | null | null | 0.146893 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bc810e489faa83510717669712ff51cfeeb74b87 | 38,679 | py | Python | third_party/boost.context/tools/build/src/tools/gcc.py | sunny-shu/libgo | 948e34f31d3a5335aeab19e82ade8776fcbb6478 | [
"MIT"
] | 2,831 | 2015-12-24T03:21:07.000Z | 2022-03-31T18:37:29.000Z | third_party/boost.context/tools/build/src/tools/gcc.py | sunny-shu/libgo | 948e34f31d3a5335aeab19e82ade8776fcbb6478 | [
"MIT"
] | 238 | 2016-01-26T03:35:35.000Z | 2022-03-18T11:17:00.000Z | third_party/boost.context/tools/build/src/tools/gcc.py | sunny-shu/libgo | 948e34f31d3a5335aeab19e82ade8776fcbb6478 | [
"MIT"
] | 781 | 2015-12-24T04:28:34.000Z | 2022-03-26T05:23:12.000Z | # Status: being ported by Steven Watanabe
# Base revision: 47077
# TODO: common.jam needs to be ported
# TODO: generators.jam needs to have register_c_compiler.
#
# Copyright 2001 David Abrahams.
# Copyright 2002-2006 Rene Rivera.
# Copyright 2002-2003 Vladimir Prus.
# Copyright (c) 2005 Reece H. Dunn.
# Copyright 200... | 45.773964 | 153 | 0.619225 | 4,994 | 38,679 | 4.709652 | 0.172207 | 0.054082 | 0.077168 | 0.081888 | 0.383844 | 0.268155 | 0.217092 | 0.191794 | 0.140604 | 0.119048 | 0 | 0.018739 | 0.199798 | 38,679 | 844 | 154 | 45.828199 | 0.741172 | 0.274412 | 0 | 0.200422 | 0 | 0.010549 | 0.355041 | 0.039366 | 0 | 0 | 0 | 0.005924 | 0 | 0 | null | null | 0.006329 | 0.035865 | null | null | 0.010549 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bc84a2cd6de9fa0aeb6cbb7285bd6beb6e6784c7 | 4,482 | py | Python | shbus/protos/Request_pb2.py | hebingchang/shanghai-realtime-bus | bd30275c32c452b710c94932c8ad1014c71d6e3a | [
"Apache-2.0"
] | 26 | 2019-01-12T18:49:01.000Z | 2022-03-26T08:28:34.000Z | shbus/protos/Request_pb2.py | BobLiu0518/shanghai-realtime-bus | aec1b6071719832d4c02301d6fb70c3e7146a246 | [
"Apache-2.0"
] | 3 | 2019-06-12T05:33:53.000Z | 2020-03-12T16:36:33.000Z | shbus/protos/Request_pb2.py | BobLiu0518/shanghai-realtime-bus | aec1b6071719832d4c02301d6fb70c3e7146a246 | [
"Apache-2.0"
] | 3 | 2019-08-13T08:41:23.000Z | 2020-03-12T15:22:01.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: Request.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _refle... | 33.699248 | 347 | 0.746765 | 575 | 4,482 | 5.535652 | 0.231304 | 0.042727 | 0.05278 | 0.046183 | 0.561106 | 0.490418 | 0.472196 | 0.425071 | 0.401194 | 0.401194 | 0 | 0.033018 | 0.128291 | 4,482 | 132 | 348 | 33.954545 | 0.781674 | 0.061133 | 0 | 0.550459 | 1 | 0.009174 | 0.161152 | 0.118067 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055046 | 0 | 0.055046 | 0 | 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 |
bc922d181e1170663096b7518100f0dd7753d926 | 469 | py | Python | ucsrb/migrations/0026_streamflowreading_segment_id.py | Ecotrust/ucsrb | 29d97cf1f21537aaf24f38e7dedc7c8cfccf1f12 | [
"MIT"
] | 1 | 2018-07-31T00:58:30.000Z | 2018-07-31T00:58:30.000Z | ucsrb/migrations/0026_streamflowreading_segment_id.py | Ecotrust/ucsrb | 29d97cf1f21537aaf24f38e7dedc7c8cfccf1f12 | [
"MIT"
] | 264 | 2017-10-24T23:54:52.000Z | 2021-10-16T15:40:47.000Z | ucsrb/migrations/0026_streamflowreading_segment_id.py | Ecotrust/ucsrb | 29d97cf1f21537aaf24f38e7dedc7c8cfccf1f12 | [
"MIT"
] | 1 | 2019-07-16T06:37:45.000Z | 2019-07-16T06:37:45.000Z | # Generated by Django 2.2.19 on 2021-03-19 10:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ucsrb', '0025_auto_20210317_1105'),
]
operations = [
migrations.AddField(
model_name='streamflowreading',
name='seg... | 24.684211 | 121 | 0.635394 | 54 | 469 | 5.388889 | 0.777778 | 0.061856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096591 | 0.249467 | 469 | 18 | 122 | 26.055556 | 0.730114 | 0.098081 | 0 | 0 | 1 | 0 | 0.171021 | 0.054632 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc93dca038ae3aa69d8940dd8c34d316d9d24e4c | 3,669 | py | Python | cpab/gpu/test.py | freifeld/cpabDiffeo | 22df6cdbd7111b9ae3e7f1c0e31ff85e92d281a6 | [
"MIT"
] | 17 | 2016-03-16T21:35:36.000Z | 2021-11-11T04:16:21.000Z | cpab/gpu/test.py | freifeld/cpabDiffeo | 22df6cdbd7111b9ae3e7f1c0e31ff85e92d281a6 | [
"MIT"
] | null | null | null | cpab/gpu/test.py | freifeld/cpabDiffeo | 22df6cdbd7111b9ae3e7f1c0e31ff85e92d281a6 | [
"MIT"
] | 4 | 2016-08-12T23:02:09.000Z | 2019-03-14T18:20:36.000Z | #!/usr/bin/env python
"""
Created on Sun Feb 9 16:47:35 2014
Author: Oren Freifeld
Email: freifeld@csail.mit.edu
"""
from of.utils import *
import pylab
from pylab import plt
import numpy as np
#pylab.ion()
pylab.close('all')
#from js.utils.timing import StopWatch
from transform_cpu.cy.transform.transform impor... | 28.664063 | 69 | 0.491415 | 485 | 3,669 | 3.573196 | 0.307216 | 0.058857 | 0.027698 | 0.039238 | 0.233122 | 0.176572 | 0.176572 | 0.147721 | 0.121177 | 0.121177 | 0 | 0.045493 | 0.358953 | 3,669 | 127 | 70 | 28.889764 | 0.691327 | 0.12483 | 0 | 0.21519 | 0 | 0 | 0.05042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075949 | null | null | 0.063291 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc97866560c2c0841adf32472fc5d4afaffb89b5 | 888 | py | Python | cli.py | mrunmay-epi/bbscript | 24a4cb95c32c8e1162f7ad74e2af0643f87f545c | [
"MIT"
] | 1 | 2021-09-13T14:35:18.000Z | 2021-09-13T14:35:18.000Z | cli.py | mrunmay-epi/bbscript | 24a4cb95c32c8e1162f7ad74e2af0643f87f545c | [
"MIT"
] | null | null | null | cli.py | mrunmay-epi/bbscript | 24a4cb95c32c8e1162f7ad74e2af0643f87f545c | [
"MIT"
] | 4 | 2021-05-21T06:22:23.000Z | 2021-06-22T10:17:37.000Z | import click
import ujson
import bbscript
from bbscript.flags import RepeatStatement
def test_input(ctx):
"""
To get custom user input!
input: Yes/No
If yes
it stores value in user_input of context
"""
if ctx.get("user_input"):
print("We got: ", ctx.get("user_input"))
return
val = input("Say y... | 16.754717 | 59 | 0.643018 | 133 | 888 | 4.18797 | 0.458647 | 0.08079 | 0.035907 | 0.05386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 888 | 53 | 60 | 16.754717 | 0.792319 | 0.206081 | 0 | 0.129032 | 0 | 0 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0.064516 | 0.129032 | 0 | 0.322581 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bc9a7d8582a8720a32b2b24001434fdbe36b85e4 | 1,995 | py | Python | src/gui/file_transfer_dialog.py | zindy/uPyLoader | 3245c72fa59ec167b97d828f868fd3dbf6f35a69 | [
"MIT"
] | 2 | 2019-05-28T10:25:09.000Z | 2020-06-20T21:12:58.000Z | src/gui/file_transfer_dialog.py | zindy/uPyLoader | 3245c72fa59ec167b97d828f868fd3dbf6f35a69 | [
"MIT"
] | null | null | null | src/gui/file_transfer_dialog.py | zindy/uPyLoader | 3245c72fa59ec167b97d828f868fd3dbf6f35a69 | [
"MIT"
] | 1 | 2020-10-08T20:08:43.000Z | 2020-10-08T20:08:43.000Z | from time import sleep
from PyQt5.QtCore import pyqtSignal, Qt
from PyQt5.QtWidgets import QMessageBox, QDialog
from gui.file_transfer import Ui_FileTransferDialog
from src.logic.file_transfer import FileTransfer
class FileTransferDialog(QDialog, Ui_FileTransferDialog):
_update_signal = pyqtSignal()
#FIXME... | 31.171875 | 116 | 0.651128 | 218 | 1,995 | 5.788991 | 0.385321 | 0.085578 | 0.050713 | 0.047544 | 0.041204 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010013 | 0.249123 | 1,995 | 63 | 117 | 31.666667 | 0.832443 | 0.021554 | 0 | 0.041667 | 0 | 0 | 0.04818 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.104167 | false | 0 | 0.104167 | 0.020833 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc9b13463a4f3bce3eac317a132523f4fa80e249 | 1,007 | py | Python | classic_tetris_project/migrations/0004_twitchuser_username.py | Kirby703/classic-tetris-project | 042b99e6d5cb62a380e2a6bf0743d29126c488a3 | [
"MIT"
] | 17 | 2019-11-23T12:56:06.000Z | 2022-02-05T21:48:00.000Z | classic_tetris_project/migrations/0004_twitchuser_username.py | Kirby703/classic-tetris-project | 042b99e6d5cb62a380e2a6bf0743d29126c488a3 | [
"MIT"
] | 43 | 2019-10-03T20:16:11.000Z | 2022-03-12T00:24:52.000Z | classic_tetris_project/migrations/0004_twitchuser_username.py | Kirby703/classic-tetris-project | 042b99e6d5cb62a380e2a6bf0743d29126c488a3 | [
"MIT"
] | 17 | 2020-02-09T01:55:01.000Z | 2021-11-12T21:16:50.000Z | # Generated by Django 2.2.2 on 2019-08-07 00:36
from django.db import migrations, models
from .. import twitch
def gen_usernames(apps, schema_editor):
TwitchUser = apps.get_model('classic_tetris_project', 'TwitchUser')
for twitch_user in TwitchUser.objects.all():
twitch_user.username = twitch.client.... | 30.515152 | 85 | 0.656405 | 111 | 1,007 | 5.747748 | 0.558559 | 0.062696 | 0.062696 | 0.0721 | 0.159875 | 0.159875 | 0.159875 | 0.159875 | 0 | 0 | 0 | 0.045455 | 0.235353 | 1,007 | 32 | 86 | 31.46875 | 0.783117 | 0.044687 | 0 | 0.24 | 1 | 0 | 0.117708 | 0.069792 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.08 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bcb276005f36204d965628e2a345e0af47030bca | 625 | py | Python | tests/test_default.py | jpnewman/ansible-role-locale-timezone | 5030fedbb7ab820da3e11da1f4a01f46b4c71ba0 | [
"MIT"
] | null | null | null | tests/test_default.py | jpnewman/ansible-role-locale-timezone | 5030fedbb7ab820da3e11da1f4a01f46b4c71ba0 | [
"MIT"
] | 1 | 2016-06-27T10:00:04.000Z | 2016-06-27T10:00:04.000Z | tests/test_default.py | jpnewman/ansible-role-locale-timezone | 5030fedbb7ab820da3e11da1f4a01f46b4c71ba0 | [
"MIT"
] | 3 | 2016-06-10T08:40:22.000Z | 2021-05-02T17:12:39.000Z | """Timezone Specs."""
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
'.molecule/ansible_inventory').get_hosts('all')
def test_python_package(host):
"""Test Python is installed."""
python = host.package('python')
assert python.is_installed
def ... | 25 | 71 | 0.7008 | 78 | 625 | 5.487179 | 0.461538 | 0.049065 | 0.098131 | 0.126168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003766 | 0.1504 | 625 | 24 | 72 | 26.041667 | 0.80226 | 0.1184 | 0 | 0 | 0 | 0 | 0.2 | 0.050943 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bcb4dbbd9243f54a8f1ce73bb24e3fc1da32976b | 903 | py | Python | scripts/gencmds/kpn_timg/gen_convert_to_float_img.py | shantanu-gupta/spad-timg-denoise | 3c9e5ae004dc3175ae796499ac7827e9bc2b4573 | [
"Apache-2.0"
] | null | null | null | scripts/gencmds/kpn_timg/gen_convert_to_float_img.py | shantanu-gupta/spad-timg-denoise | 3c9e5ae004dc3175ae796499ac7827e9bc2b4573 | [
"Apache-2.0"
] | null | null | null | scripts/gencmds/kpn_timg/gen_convert_to_float_img.py | shantanu-gupta/spad-timg-denoise | 3c9e5ae004dc3175ae796499ac7827e9bc2b4573 | [
"Apache-2.0"
] | null | null | null | """ scripts.gencmds.kpn_timg.gen_convert_to_float_img
Generate convert_to_float_img commands
"""
import json
import scripts.gencmds.common as common
def _create_parser():
help_str = 'Generate a bunch of convert_to_float_img commands'
return common.parser(help_str)
def main(args):
metadata = json.load... | 31.137931 | 71 | 0.643411 | 115 | 903 | 4.782609 | 0.486957 | 0.065455 | 0.101818 | 0.123636 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220377 | 903 | 28 | 72 | 32.25 | 0.78125 | 0.097453 | 0 | 0 | 1 | 0 | 0.252802 | 0.041096 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bcb5bfcee06ec4145d6bc9b9f8858a993255302c | 489 | py | Python | 14-Retake_Exams/Mid_Exam_Retake-10_December_2019/01-Disneyland_Journey.py | eclipse-ib/Software-University-Fundamentals_Module | 994ef75c70d1bae8e615dbb789aeffd6e0a42c34 | [
"MIT"
] | null | null | null | 14-Retake_Exams/Mid_Exam_Retake-10_December_2019/01-Disneyland_Journey.py | eclipse-ib/Software-University-Fundamentals_Module | 994ef75c70d1bae8e615dbb789aeffd6e0a42c34 | [
"MIT"
] | null | null | null | 14-Retake_Exams/Mid_Exam_Retake-10_December_2019/01-Disneyland_Journey.py | eclipse-ib/Software-University-Fundamentals_Module | 994ef75c70d1bae8e615dbb789aeffd6e0a42c34 | [
"MIT"
] | null | null | null | journey_cost = float(input())
months = int(input())
saved_money = 0
for i in range(1, months+1):
if i % 2 != 0 and i != 1:
saved_money = saved_money * 0.84
if i % 4 == 0:
saved_money = saved_money * 1.25
saved_money += journey_cost / 4
diff = abs(journey_cost - saved_money)
if saved_mo... | 24.45 | 92 | 0.633947 | 83 | 489 | 3.590361 | 0.46988 | 0.268456 | 0.073826 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045333 | 0.233129 | 489 | 20 | 93 | 24.45 | 0.749333 | 0 | 0 | 0 | 0 | 0.071429 | 0.230612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 |
bcb5e602699ba73f42fca78afa5b574f63bc20a0 | 709 | py | Python | Desafios/DescontoProduto.py | OtavioCampagnoli/Aprendendo-Python | 37bf341d3edbb5392c1ccf866ac0109d5905f68f | [
"MIT"
] | null | null | null | Desafios/DescontoProduto.py | OtavioCampagnoli/Aprendendo-Python | 37bf341d3edbb5392c1ccf866ac0109d5905f68f | [
"MIT"
] | null | null | null | Desafios/DescontoProduto.py | OtavioCampagnoli/Aprendendo-Python | 37bf341d3edbb5392c1ccf866ac0109d5905f68f | [
"MIT"
] | null | null | null | #Crie um programa que calcule determinado(Qualquer valor) desconto,
# e aplique esse desconto no final da comprar daquele usuario
#Entrada de Dados
nomeC = str(input('Seja Bem-Vindo!\nInfome seu nome completo, por favor.')).upper()
nomeProduto = str(input('Informe o nome do produto: ')).upper()
valorP = float(input('I... | 44.3125 | 176 | 0.74189 | 102 | 709 | 5.156863 | 0.558824 | 0.068441 | 0.074144 | 0.068441 | 0.095057 | 0.095057 | 0 | 0 | 0 | 0 | 0 | 0.016287 | 0.133992 | 709 | 16 | 176 | 44.3125 | 0.840391 | 0.252468 | 0 | 0 | 0 | 0.166667 | 0.621673 | 0.04943 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bcb8d7294b0e35713af92117ec65bb1accce9164 | 469 | py | Python | podcast/migrations/0029_auto_20171211_0424.py | richardcornish/django-applepodcast | 50732acfbe1ca258e5afb44c117a6ac5fa0c1219 | [
"BSD-3-Clause"
] | 7 | 2017-11-18T13:02:13.000Z | 2021-07-31T21:55:24.000Z | podcast/migrations/0029_auto_20171211_0424.py | dmitriydef/django-applepodcast | 50732acfbe1ca258e5afb44c117a6ac5fa0c1219 | [
"BSD-3-Clause"
] | 24 | 2017-07-17T21:53:58.000Z | 2018-02-16T07:13:39.000Z | podcast/migrations/0029_auto_20171211_0424.py | dmitriydef/django-applepodcast | 50732acfbe1ca258e5afb44c117a6ac5fa0c1219 | [
"BSD-3-Clause"
] | 4 | 2017-09-21T12:43:54.000Z | 2020-07-19T21:56:30.000Z | # Generated by Django 2.0 on 2017-12-11 04:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('podcast', '0028_auto_20171211_0424'),
]
operations = [
migrations.AlterField(
model_name='show',
name='managing_editor... | 24.684211 | 128 | 0.637527 | 54 | 469 | 5.388889 | 0.814815 | 0.034364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0.249467 | 469 | 18 | 129 | 26.055556 | 0.732955 | 0.091684 | 0 | 0 | 1 | 0 | 0.221698 | 0.054245 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bcbd14e976c8e351f74c6a0c13b61926295ac384 | 1,406 | py | Python | controlpanel/api/models/iam_managed_policy.py | ministryofjustice/analytics-platform-control-panel-public | 289143280ed79a05be470d57dc3b1fd9179758cf | [
"MIT"
] | null | null | null | controlpanel/api/models/iam_managed_policy.py | ministryofjustice/analytics-platform-control-panel-public | 289143280ed79a05be470d57dc3b1fd9179758cf | [
"MIT"
] | 93 | 2021-08-09T16:09:59.000Z | 2022-03-28T16:13:31.000Z | controlpanel/api/models/iam_managed_policy.py | ministryofjustice/analytics-platform-control-panel-public | 289143280ed79a05be470d57dc3b1fd9179758cf | [
"MIT"
] | 2 | 2021-03-30T15:13:24.000Z | 2021-04-11T06:26:09.000Z | import re
from django.core.validators import RegexValidator
from django.db import models
from django_extensions.db.models import TimeStampedModel
from controlpanel.api import cluster
POLICY_NAME_PATTERN = r"[a-z0-9_+@,.:=-]{2,63}"
POLICY_NAME_REGEX = re.compile(POLICY_NAME_PATTERN)
# TODO rename this to RoleGroup... | 23.830508 | 69 | 0.662873 | 168 | 1,406 | 5.380952 | 0.470238 | 0.044248 | 0.088496 | 0.057522 | 0.066372 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007414 | 0.232575 | 1,406 | 58 | 70 | 24.241379 | 0.830399 | 0.064011 | 0 | 0.051282 | 0 | 0 | 0.072574 | 0.066463 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.102564 | false | 0 | 0.128205 | 0.051282 | 0.435897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
bcbfb40f314b999789a5cb05e65484813461c007 | 2,605 | py | Python | test/UnitTest/data.py | jason-fox/fogflow | e396ef0dee0125936954e381ab2862fd472e1774 | [
"BSD-3-Clause"
] | 102 | 2017-11-18T01:09:38.000Z | 2022-02-21T16:32:15.000Z | test/UnitTest/data.py | cnetboy/fogflow | eaa31d846233f60783d45ebac72eb0254a5c1a53 | [
"DOC",
"BSD-4-Clause"
] | 169 | 2018-02-23T07:42:20.000Z | 2022-03-30T06:12:28.000Z | test/UnitTest/data.py | cnetboy/fogflow | eaa31d846233f60783d45ebac72eb0254a5c1a53 | [
"DOC",
"BSD-4-Clause"
] | 68 | 2018-02-08T06:55:33.000Z | 2022-01-18T06:21:06.000Z | subscription_data=\
{
"description": "A subscription to get info about Room1",
"subject": {
"entities": [
{
"id": "Room1",
"type": "Room",
}
],
"condition": {
"attrs": [
"p3"
]
}
},
"notification": {
"http": {
"url": "http://192.168.100.162:88... | 12.645631 | 74 | 0.515163 | 246 | 2,605 | 5.45122 | 0.382114 | 0.060403 | 0.09396 | 0.067114 | 0.719612 | 0.601044 | 0.601044 | 0.601044 | 0.601044 | 0.601044 | 0 | 0.089268 | 0.234549 | 2,605 | 205 | 75 | 12.707317 | 0.58325 | 0.023033 | 0 | 0.532258 | 0 | 0 | 0.442672 | 0.019828 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bcc740d5d74227aae00d113e28bf484fec27bd5b | 680 | py | Python | tests/opera/parser/tosca/v_1_3/test_node_template.py | sstanovnik/xopera-opera | 06031d37268913c6ba6dbc30ec6b4acb3a17dc5a | [
"Apache-2.0"
] | null | null | null | tests/opera/parser/tosca/v_1_3/test_node_template.py | sstanovnik/xopera-opera | 06031d37268913c6ba6dbc30ec6b4acb3a17dc5a | [
"Apache-2.0"
] | null | null | null | tests/opera/parser/tosca/v_1_3/test_node_template.py | sstanovnik/xopera-opera | 06031d37268913c6ba6dbc30ec6b4acb3a17dc5a | [
"Apache-2.0"
] | null | null | null | from opera.parser.tosca.v_1_3.node_template import NodeTemplate
class TestParse:
def test_full(self, yaml_ast):
NodeTemplate.parse(yaml_ast(
"""
type: node.type
description: Text
metadata: {}
directives: []
properties: {}
... | 23.448276 | 63 | 0.469118 | 54 | 680 | 5.703704 | 0.648148 | 0.090909 | 0.071429 | 0.149351 | 0.305195 | 0.305195 | 0.305195 | 0.305195 | 0.305195 | 0.305195 | 0 | 0.005168 | 0.430882 | 680 | 28 | 64 | 24.285714 | 0.790698 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bccb968f1f0ed33fa04680dcb2a4effedaca32e4 | 323 | py | Python | io_util.py | StefanieStoppel/pcn | 71b17791380798d349c18f96514099183d89836e | [
"MIT"
] | 1 | 2020-12-27T04:25:43.000Z | 2020-12-27T04:25:43.000Z | io_util.py | StefanieStoppel/pcn | 71b17791380798d349c18f96514099183d89836e | [
"MIT"
] | null | null | null | io_util.py | StefanieStoppel/pcn | 71b17791380798d349c18f96514099183d89836e | [
"MIT"
] | null | null | null | # Author: Wentao Yuan (wyuan1@cs.cmu.edu) 05/31/2018
import numpy as np
from open3d import *
def read_pcd(filename):
pcd = read_point_cloud(filename)
return np.array(pcd.points)
def save_pcd(filename, points):
pcd = PointCloud()
pcd.points = Vector3dVector(points)
write_point_cloud(filename, pc... | 20.1875 | 52 | 0.718266 | 47 | 323 | 4.808511 | 0.617021 | 0.097345 | 0.159292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041353 | 0.176471 | 323 | 15 | 53 | 21.533333 | 0.808271 | 0.154799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bccdcb3a8cd41f9a3f8320464c2126f4a6c6ac69 | 4,599 | py | Python | tests/test_userfields_with_plain_serializer.py | simiotics/djangorestframework-queryfields | b0aed3eb51625b20d187aa2ca1ec5a2982b979e2 | [
"MIT"
] | 195 | 2016-10-21T21:18:17.000Z | 2022-03-27T09:28:08.000Z | tests/test_userfields_with_plain_serializer.py | simiotics/djangorestframework-queryfields | b0aed3eb51625b20d187aa2ca1ec5a2982b979e2 | [
"MIT"
] | 24 | 2016-10-24T17:03:25.000Z | 2021-06-27T18:34:07.000Z | tests/test_userfields_with_plain_serializer.py | simiotics/djangorestframework-queryfields | b0aed3eb51625b20d187aa2ca1ec5a2982b979e2 | [
"MIT"
] | 19 | 2017-02-24T23:14:18.000Z | 2021-08-02T10:30:33.000Z | from rest_framework.test import APIClient
from tests.app.serializers import QuoteSerializer
from tests.utils import decode_content
def test_list_response_unfiltered():
response = APIClient().get('/quotes/')
expected = [
{
'character': 'Customer',
'line': "It's certainly uncont... | 29.670968 | 93 | 0.631442 | 485 | 4,599 | 5.820619 | 0.210309 | 0.059865 | 0.085016 | 0.119022 | 0.733971 | 0.729012 | 0.676585 | 0.613532 | 0.578817 | 0.51718 | 0 | 0.000285 | 0.23766 | 4,599 | 154 | 94 | 29.863636 | 0.804906 | 0.030441 | 0 | 0.496 | 0 | 0 | 0.280521 | 0.089093 | 0 | 0 | 0 | 0 | 0.112 | 1 | 0.104 | false | 0 | 0.024 | 0 | 0.128 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bcd16615c70c502c6889df234ea47135bbf0cc93 | 8,104 | py | Python | testscripts/RDKB/component/TR069Pa/TS_TR069PA_Enable_CWMP_ConnectToACS.py | cablelabs/tools-tdkb | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/TR069Pa/TS_TR069PA_Enable_CWMP_ConnectToACS.py | cablelabs/tools-tdkb | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/TR069Pa/TS_TR069PA_Enable_CWMP_ConnectToACS.py | cablelabs/tools-tdkb | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | [
"Apache-2.0"
] | null | null | null | ##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2018 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use th... | 40.929293 | 143 | 0.681639 | 930 | 8,104 | 5.849462 | 0.260215 | 0.024816 | 0.044118 | 0.057353 | 0.537132 | 0.51011 | 0.448162 | 0.448162 | 0.448162 | 0.431618 | 0 | 0.013556 | 0.217177 | 8,104 | 197 | 144 | 41.137056 | 0.843947 | 0.17152 | 0 | 0.695122 | 0 | 0 | 0.354377 | 0.030669 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036585 | null | null | 0.365854 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bcd4fb328380ef3bc99240521e30c897139dbb49 | 1,916 | py | Python | scripts/sources/s_views_cdf.py | dpopadic/arpmRes | ddcc4de713b46e3e9dcb77cc08c502ce4df54f76 | [
"MIT"
] | 6 | 2021-04-10T13:24:30.000Z | 2022-03-26T08:20:42.000Z | scripts/sources/s_views_cdf.py | dpopadic/arpmRes | ddcc4de713b46e3e9dcb77cc08c502ce4df54f76 | [
"MIT"
] | null | null | null | scripts/sources/s_views_cdf.py | dpopadic/arpmRes | ddcc4de713b46e3e9dcb77cc08c502ce4df54f76 | [
"MIT"
] | 6 | 2019-08-13T22:02:17.000Z | 2022-02-09T17:49:12.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.4'
# jupytext_version: 1.1.4
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# # s_vi... | 31.409836 | 193 | 0.665971 | 311 | 1,916 | 3.942122 | 0.405145 | 0.045677 | 0.068516 | 0.079935 | 0.270799 | 0.256933 | 0.256933 | 0.214519 | 0.184339 | 0.184339 | 0 | 0.03248 | 0.164405 | 1,916 | 60 | 194 | 31.933333 | 0.733292 | 0.616388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
bcde7e2eb0767b95e84a5e24ce9062d2a166dcf4 | 3,447 | py | Python | scripts/eval/Marjaneh_gen_roc_curve_ltp.py | Tevien/dtor | bb2954074d4a299c129d44afd722084980b792b5 | [
"MIT"
] | null | null | null | scripts/eval/Marjaneh_gen_roc_curve_ltp.py | Tevien/dtor | bb2954074d4a299c129d44afd722084980b792b5 | [
"MIT"
] | 1 | 2021-03-12T10:57:24.000Z | 2021-03-12T10:57:24.000Z | scripts/eval/Marjaneh_gen_roc_curve_ltp.py | Tevien/dtor | bb2954074d4a299c129d44afd722084980b792b5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Process the outputs and generate ROC"""
__author__ = "Sean Benson"
__copyright__ = "MIT"
from dtor.utilities.utils_stats import stats_from_results
import numpy as np
import argparse
import torch
from dtor.utilities.utils import set_plt_config
from dtor.utilities.model_retriever import load_... | 34.128713 | 138 | 0.651291 | 495 | 3,447 | 4.333333 | 0.30101 | 0.039161 | 0.030769 | 0.04662 | 0.105828 | 0.090443 | 0.068998 | 0.068998 | 0.068998 | 0.047552 | 0 | 0.006589 | 0.207427 | 3,447 | 101 | 139 | 34.128713 | 0.778551 | 0.082971 | 0 | 0 | 1 | 0 | 0.144313 | 0.053839 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.131579 | 0 | 0.131579 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bce0ee5f942fb15acc340743426b81d0f33f41ff | 30,364 | py | Python | Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/EnlistAll/__init__.py | davidbrownell/Common_Environment | 4015872aeac8d5da30a6aa7940e1035a6aa6a75d | [
"BSL-1.0"
] | 1 | 2017-04-25T13:15:10.000Z | 2017-04-25T13:15:10.000Z | Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/EnlistAll/__init__.py | davidbrownell/Common_Environment | 4015872aeac8d5da30a6aa7940e1035a6aa6a75d | [
"BSL-1.0"
] | null | null | null | Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/EnlistAll/__init__.py | davidbrownell/Common_Environment | 4015872aeac8d5da30a6aa7940e1035a6aa6a75d | [
"BSL-1.0"
] | null | null | null | # ---------------------------------------------------------------------------
# |
# | __init__.py
# |
# | David Brownell (db@DavidBrownell.com)
# |
# | 11/30/2015 04:04:59 PM
# |
# ---------------------------------------------------------------------------
# |
# | Copyright David Brownell 2015-... | 48.350318 | 190 | 0.402845 | 2,174 | 30,364 | 5.433303 | 0.159614 | 0.032509 | 0.024467 | 0.016593 | 0.379106 | 0.322215 | 0.277684 | 0.229428 | 0.192601 | 0.177362 | 0 | 0.004492 | 0.442794 | 30,364 | 627 | 191 | 48.427432 | 0.693599 | 0.118726 | 0 | 0.356627 | 0 | 0 | 0.04814 | 0.006213 | 0 | 0 | 0 | 0 | 0.019277 | 0 | null | null | 0.00241 | 0.048193 | 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 |
bce5fe7b523c281b2e5f96520fb039eb8855d620 | 2,897 | py | Python | var/spack/repos/builtin/packages/samtools/package.py | xiki-tempula/spack | 9d66c05e93ab8a933fc59915040c0e0c86a4aac4 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 1 | 2020-05-24T15:23:12.000Z | 2020-05-24T15:23:12.000Z | var/spack/repos/builtin/packages/samtools/package.py | xiki-tempula/spack | 9d66c05e93ab8a933fc59915040c0e0c86a4aac4 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 6 | 2022-02-26T11:44:34.000Z | 2022-03-12T12:14:50.000Z | var/spack/repos/builtin/packages/samtools/package.py | xiki-tempula/spack | 9d66c05e93ab8a933fc59915040c0e0c86a4aac4 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 1 | 2019-10-29T09:08:17.000Z | 2019-10-29T09:08:17.000Z | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Samtools(Package):
"""SAM Tools provide various utilities for manipulating alignments in
... | 43.893939 | 100 | 0.670003 | 319 | 2,897 | 6.031348 | 0.39185 | 0.056133 | 0.06237 | 0.066528 | 0.04262 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209342 | 0.18709 | 2,897 | 65 | 101 | 44.569231 | 0.607643 | 0.168105 | 0 | 0.043478 | 0 | 0.021739 | 0.433543 | 0.241509 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.021739 | 0 | 0.108696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bce8db536922e136c0ae20c134606ab1eb408a3a | 1,135 | py | Python | misc-scripts/findFourCCs.py | knight-ryu12/StarFoxAdventures | 83648dabda9777d7de5da1bf9b83ddb82d7dd2a0 | [
"MIT"
] | 22 | 2019-11-29T21:20:59.000Z | 2022-01-25T06:39:02.000Z | misc-scripts/findFourCCs.py | knight-ryu12/StarFoxAdventures | 83648dabda9777d7de5da1bf9b83ddb82d7dd2a0 | [
"MIT"
] | 7 | 2021-01-26T11:57:25.000Z | 2022-02-07T11:00:06.000Z | misc-scripts/findFourCCs.py | knight-ryu12/StarFoxAdventures | 83648dabda9777d7de5da1bf9b83ddb82d7dd2a0 | [
"MIT"
] | 3 | 2021-01-03T23:47:37.000Z | 2021-08-06T09:02:11.000Z | #!/usr/bin/env python3
"""Scan a file, logging instances of interesting 4-character aligned sequences."""
import os
import sys
import struct
def isUpper(c):
return c >= 0x41 and c <= 0x5A
def isLetter(c):
return (c >= 0x41 and c <= 0x5A) or (c >= 0x61 and c <= 0x7A)
def isLetterOrDigit(c):
return (c >= 0... | 30.675676 | 82 | 0.495154 | 162 | 1,135 | 3.419753 | 0.425926 | 0.043321 | 0.043321 | 0.064982 | 0.162455 | 0.162455 | 0.162455 | 0.126354 | 0.126354 | 0.126354 | 0 | 0.113821 | 0.34978 | 1,135 | 36 | 83 | 31.527778 | 0.636856 | 0.086344 | 0 | 0.068966 | 0 | 0 | 0.039767 | 0 | 0 | 0 | 0.050436 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.103448 | 0.103448 | 0.344828 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.