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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75961204a3700cb25ae8b3bc6bb903c53c71b40a | 3,018 | py | Python | python-adaline.py | stephensheridan/python-adaline | 301f4aef81879bb8772ba18d3981d023e8d838a9 | [
"MIT"
] | 9 | 2017-03-31T01:04:09.000Z | 2021-09-09T01:48:00.000Z | python-adaline.py | ChangHungYang/python-adaline | 301f4aef81879bb8772ba18d3981d023e8d838a9 | [
"MIT"
] | 1 | 2022-02-11T17:46:50.000Z | 2022-02-11T17:46:50.000Z | python-adaline.py | ChangHungYang/python-adaline | 301f4aef81879bb8772ba18d3981d023e8d838a9 | [
"MIT"
] | 12 | 2018-05-06T14:26:12.000Z | 2022-03-06T04:12:36.000Z | """
Title: Very simple ADALINE network
Author: Stephen Sheridan (ITB) https://github.com/stephensheridan
Date: 09/03/2017
"""
import numpy as np
import matplotlib.pyplot as plt
import math
LEARNING_RATE = 0.45
# Step function
def step(x):
if (x > 0):
return 1
else:
return -1;
"""
You can... | 29.588235 | 109 | 0.634195 | 473 | 3,018 | 3.991543 | 0.327696 | 0.03072 | 0.038136 | 0.042373 | 0.462924 | 0.42161 | 0.42161 | 0.42161 | 0.42161 | 0.42161 | 0 | 0.038581 | 0.252816 | 3,018 | 101 | 110 | 29.881188 | 0.79867 | 0.373095 | 0 | 0.15 | 0 | 0 | 0.080584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075 | null | null | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7598f69120da4328d39b50e8fac83d848202be0f | 1,310 | py | Python | tests/test_amf3_object.py | chrippa/python-flashmedia | f5df4987d6d6661a240756435bb8729f82d8d31f | [
"BSD-2-Clause"
] | 14 | 2015-03-03T15:41:26.000Z | 2021-06-09T02:23:22.000Z | tests/test_amf3_object.py | chrippa/python-flashmedia | f5df4987d6d6661a240756435bb8729f82d8d31f | [
"BSD-2-Clause"
] | 1 | 2016-12-24T03:49:35.000Z | 2016-12-24T03:49:35.000Z | tests/test_amf3_object.py | chrippa/python-flashmedia | f5df4987d6d6661a240756435bb8729f82d8d31f | [
"BSD-2-Clause"
] | 3 | 2017-12-13T17:37:24.000Z | 2018-09-09T09:35:19.000Z | from . import with_fd
from flashmedia.types import AMF3Object, AMF3ObjectBase, AMF3ObjectPacker
@AMF3ObjectBase.register("org.amf.ASClass")
class ASClass(AMF3ObjectBase):
def __init__(self, foo, baz=None):
self.foo = foo
self.baz = baz
NAMED_TYPE = ASClass("bar")
NAMED_TYPE_BYTES = b"#\x1forg.amf... | 27.87234 | 76 | 0.714504 | 167 | 1,310 | 5.335329 | 0.263473 | 0.141414 | 0.06734 | 0.070707 | 0.127946 | 0.080808 | 0.080808 | 0 | 0 | 0 | 0 | 0.033718 | 0.139695 | 1,310 | 46 | 77 | 28.478261 | 0.756877 | 0 | 0 | 0.0625 | 0 | 0 | 0.09313 | 0.070229 | 0 | 0 | 0 | 0 | 0.21875 | 1 | 0.21875 | false | 0 | 0.0625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
759a08227d557590367cbbb1e279ab3900cdcb19 | 8,034 | py | Python | script/MovingValidationPipeline.py | maviator/kaggle_coursera_course | 556a8b10df5b50ee747d0451fee2e3ffdcc4b4b0 | [
"MIT"
] | 7 | 2017-12-21T08:58:06.000Z | 2019-06-21T18:58:09.000Z | script/MovingValidationPipeline.py | maviator/kaggle_coursera_course | 556a8b10df5b50ee747d0451fee2e3ffdcc4b4b0 | [
"MIT"
] | null | null | null | script/MovingValidationPipeline.py | maviator/kaggle_coursera_course | 556a8b10df5b50ee747d0451fee2e3ffdcc4b4b0 | [
"MIT"
] | 1 | 2019-09-26T14:15:27.000Z | 2019-09-26T14:15:27.000Z |
# coding: utf-8
# In[ ]:
# Handle table-like data and matrices
import numpy as np
import pandas as pd
from collections import Counter
# Modelling Algorithms
from sklearn.tree import DecisionTreeRegressor
from sklearn.ensemble import RandomForestRegressor, AdaBoostRegressor, GradientBoostingRegressor, ExtraTreesReg... | 24.568807 | 117 | 0.687329 | 1,253 | 8,034 | 4.192338 | 0.218675 | 0.031982 | 0.041119 | 0.013326 | 0.274891 | 0.243861 | 0.218923 | 0.167333 | 0.148296 | 0.127927 | 0 | 0.016664 | 0.170899 | 8,034 | 326 | 118 | 24.644172 | 0.771956 | 0.168409 | 0 | 0.082707 | 0 | 0 | 0.140758 | 0.008198 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.18797 | null | null | 0.090226 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
759a4112614171c3d576a1d8d3688df6e2d8b3ac | 384 | py | Python | python_module/setup.py | lanpinguo/python_numpy_c-_demo | 5736745da96dd31abe0428d9bcf50f492202bdf6 | [
"Apache-2.0"
] | null | null | null | python_module/setup.py | lanpinguo/python_numpy_c-_demo | 5736745da96dd31abe0428d9bcf50f492202bdf6 | [
"Apache-2.0"
] | null | null | null | python_module/setup.py | lanpinguo/python_numpy_c-_demo | 5736745da96dd31abe0428d9bcf50f492202bdf6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
setup(name = 'max30102',
version = '0.5',
license = 'GNU GPL v2',
description = 'max30102 algorithm debug',
ext_modules=[
Extension("max30102", ["main.cpp","objs/algorithm.cpp"],
libraries = ["boost... | 24 | 59 | 0.658854 | 45 | 384 | 5.533333 | 0.711111 | 0.104418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0.179688 | 384 | 15 | 60 | 25.6 | 0.733333 | 0.052083 | 0 | 0 | 0 | 0 | 0.298343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
759ef380604dfb06a9375be21e48899224a0d504 | 607 | py | Python | setup.py | cloeeai/CloeePy-Mongo | 4fa7cde79e8f62bf089985c595e4c9e8806b1166 | [
"MIT"
] | null | null | null | setup.py | cloeeai/CloeePy-Mongo | 4fa7cde79e8f62bf089985c595e4c9e8806b1166 | [
"MIT"
] | null | null | null | setup.py | cloeeai/CloeePy-Mongo | 4fa7cde79e8f62bf089985c595e4c9e8806b1166 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name='CloeePy-Mongo',
version='0.0.0',
packages=['cloeepy_mongo',],
package_data = {
'cloeepy': ['data/*.yml'],
},
license='MIT',
description="MongoDB Plugin for CloeePy Framework",
long_description=open('README.md').read(),
install_re... | 26.391304 | 61 | 0.60626 | 69 | 607 | 5.246377 | 0.666667 | 0.132597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019108 | 0.224053 | 607 | 22 | 62 | 27.590909 | 0.749469 | 0 | 0 | 0 | 0 | 0 | 0.392092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
759fe904a98c0380adf8d45f63602d274d4448d4 | 3,454 | py | Python | jython-annotation-tools-samples/src/test/resources/springwebtests.py | rotsenmarcello/jython-annotation-tools | 8a95863d3ce34f6f5e44c0b96fdd5f7409e38145 | [
"Apache-2.0"
] | 4 | 2017-10-13T20:21:27.000Z | 2021-05-19T10:17:27.000Z | jython-annotation-tools-samples/src/test/resources/springwebtests.py | rotsenmarcello/jython-annotation-tools | 8a95863d3ce34f6f5e44c0b96fdd5f7409e38145 | [
"Apache-2.0"
] | null | null | null | jython-annotation-tools-samples/src/test/resources/springwebtests.py | rotsenmarcello/jython-annotation-tools | 8a95863d3ce34f6f5e44c0b96fdd5f7409e38145 | [
"Apache-2.0"
] | null | null | null | '''
*
*
* Jython Annotation Tools.
*
* A library enabling Java annotations and
* SpringFramework integration for Jython classes.
*
* http://www.wstech2.net/jat/
*
* Copyright 2016 rotsen.marcello@wstech2.net.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* yo... | 32.584906 | 95 | 0.720035 | 363 | 3,454 | 6.741047 | 0.410468 | 0.073559 | 0.085002 | 0.03678 | 0.188394 | 0.153249 | 0 | 0 | 0 | 0 | 0 | 0.003511 | 0.175449 | 3,454 | 105 | 96 | 32.895238 | 0.855688 | 0.022003 | 0 | 0.150943 | 0 | 0 | 0.285539 | 0.227533 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.037736 | 0.226415 | null | null | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75a21c0f9443c8f2d26dafb1f88581e32015fda9 | 1,794 | py | Python | examples/huber_pca.py | MichaelHopwood/GLRM | 80930762e6964afb8ef0db9e5ae3a10cfcc975b2 | [
"MIT"
] | 1 | 2021-12-17T03:02:55.000Z | 2021-12-17T03:02:55.000Z | examples/huber_pca.py | MichaelHopwood/GLRM | 80930762e6964afb8ef0db9e5ae3a10cfcc975b2 | [
"MIT"
] | null | null | null | examples/huber_pca.py | MichaelHopwood/GLRM | 80930762e6964afb8ef0db9e5ae3a10cfcc975b2 | [
"MIT"
] | null | null | null | import sys
import os
sys.path.append(os.path.join('..','glrm'))
from glrm.loss import HuberLoss
from glrm.reg import QuadraticReg
from glrm.glrm import GLRM
from glrm.util import pplot
from numpy.random import randn, choice, seed
from numpy import sign
from random import sample
from math import sqrt
from itertools imp... | 27.6 | 99 | 0.72631 | 309 | 1,794 | 4.126214 | 0.33657 | 0.063529 | 0.050196 | 0.025882 | 0.101961 | 0.073725 | 0.04549 | 0 | 0 | 0 | 0 | 0.017252 | 0.127648 | 1,794 | 64 | 100 | 28.03125 | 0.797444 | 0.138796 | 0 | 0.066667 | 0 | 0 | 0.042373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.355556 | 0 | 0.355556 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
75b3308d14649a36206d2c192b6d36958ade9273 | 218 | py | Python | Python Basics/Week 2/assess_pc_02_10.py | sasathornt/Python-3-Programming-Specialization | 34a204662112f8977bdd2831687a020d775d6f39 | [
"MIT"
] | 1 | 2020-04-17T14:22:15.000Z | 2020-04-17T14:22:15.000Z | Python Basics/Week 2/assess_pc_02_10.py | sasathornt/Python-3-Programming-Specialization | 34a204662112f8977bdd2831687a020d775d6f39 | [
"MIT"
] | null | null | null | Python Basics/Week 2/assess_pc_02_10.py | sasathornt/Python-3-Programming-Specialization | 34a204662112f8977bdd2831687a020d775d6f39 | [
"MIT"
] | null | null | null | ##Create an empty string and assign it to the variable lett. Then using range, write code such that when your code is run, lett has 7 b’s ("bbbbbbb").
lett = ""
for i in range(0, 7):
lett = lett + "b"
print(lett) | 31.142857 | 150 | 0.674312 | 41 | 218 | 3.585366 | 0.780488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.215596 | 218 | 7 | 151 | 31.142857 | 0.842105 | 0.678899 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
75b332dff5656a54a230088646b42a327fe86f6f | 855 | py | Python | Module-10-Strings/strings-09-split.py | CodingGearsCourses/PythonProgrammingFundamentals | 40e562e143802d997e1f0129bc8b52d5d0931728 | [
"MIT"
] | 1 | 2021-12-23T07:52:08.000Z | 2021-12-23T07:52:08.000Z | Module-10-Strings/strings-09-split.py | CodingGearsCourses/PythonProgrammingFundamentals | 40e562e143802d997e1f0129bc8b52d5d0931728 | [
"MIT"
] | null | null | null | Module-10-Strings/strings-09-split.py | CodingGearsCourses/PythonProgrammingFundamentals | 40e562e143802d997e1f0129bc8b52d5d0931728 | [
"MIT"
] | null | null | null | # Strings
# split -> returns a list based on the delimiter
# Sample String
string_01 = "The quick brown fox jumps over the lazy dog."
string_02 = "10/10/2019 01:02:35 CST|10.10.21.23|HTTP 200|Duration:5s|Timeout:30s"
# Using split
word_list = string_01.split()
# Type & Print
print(" Type ".center(44, "-"))
print(ty... | 24.428571 | 82 | 0.659649 | 129 | 855 | 4.232558 | 0.403101 | 0.082418 | 0.095238 | 0.065934 | 0.39011 | 0.39011 | 0.300366 | 0.300366 | 0.300366 | 0.157509 | 0 | 0.073826 | 0.128655 | 855 | 35 | 83 | 24.428571 | 0.65906 | 0.307602 | 0 | 0.25 | 0 | 0.0625 | 0.322414 | 0.046552 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
75ca338a166bb0f27b207fda2d2d0a2930f82f63 | 305 | py | Python | Tuples and Sets - Exercise/02. Sets of Elements.py | B3WD/python_advanced | 477b2eac41f1ec5a172d612afda1096a9d7fb2f5 | [
"MIT"
] | 1 | 2020-10-28T07:52:17.000Z | 2020-10-28T07:52:17.000Z | Tuples and Sets - Exercise/02. Sets of Elements.py | B3WD/python_advanced_softuni | 477b2eac41f1ec5a172d612afda1096a9d7fb2f5 | [
"MIT"
] | null | null | null | Tuples and Sets - Exercise/02. Sets of Elements.py | B3WD/python_advanced_softuni | 477b2eac41f1ec5a172d612afda1096a9d7fb2f5 | [
"MIT"
] | null | null | null | def find_unique_and_common(line_1, line_2):
print("\n".join(map(str, set(line_1) & set(line_2))))
line_1_count, line_2_count = map(int, input().split())
line_1 = [int(input()) for _ in range(line_1_count)]
line_2 = [int(input()) for _ in range(line_2_count)]
find_unique_and_common(line_1, line_2) | 30.5 | 57 | 0.718033 | 58 | 305 | 3.362069 | 0.362069 | 0.153846 | 0.133333 | 0.194872 | 0.65641 | 0.523077 | 0.297436 | 0.297436 | 0 | 0 | 0 | 0.044444 | 0.114754 | 305 | 10 | 58 | 30.5 | 0.677778 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0.166667 | 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 |
75d90ff68ec0b68a5a39015bcb4dc21a1d56df9d | 763 | py | Python | models/kit_produto.py | lucianoanjos02/Choco-Stock-System-CSS | 767e3827c8a68ea1620a0645daff3fae6076db8d | [
"Apache-2.0"
] | null | null | null | models/kit_produto.py | lucianoanjos02/Choco-Stock-System-CSS | 767e3827c8a68ea1620a0645daff3fae6076db8d | [
"Apache-2.0"
] | null | null | null | models/kit_produto.py | lucianoanjos02/Choco-Stock-System-CSS | 767e3827c8a68ea1620a0645daff3fae6076db8d | [
"Apache-2.0"
] | null | null | null | from database import Base
from sqlalchemy.orm import relationship, backref
from sqlalchemy import Column, String, Integer, Date, ForeignKey, Numeric, DateTime
class KitProduto(Base):
'''
CLASSE KitProduto - MAPEIA TABELA TKit_Produto NO BANCO DE DADOS
QUE FAZ A ASSOCIAÇÃO ENTRE Kit E Produto
@auto... | 34.681818 | 83 | 0.716907 | 107 | 763 | 4.841122 | 0.53271 | 0.061776 | 0.054054 | 0.052124 | 0.102317 | 0.057915 | 0 | 0 | 0 | 0 | 0 | 0.017915 | 0.195282 | 763 | 22 | 84 | 34.681818 | 0.825733 | 0.239843 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
75daaf2064150b2b8faddc9434094e0d4faec683 | 545 | py | Python | Mundo 3/ex103 Ficha do Jogador.py | AbelRapha/Python-Exercicios-CeV | 17e7055c982c8a1224992602ece50bae8eeee365 | [
"MIT"
] | null | null | null | Mundo 3/ex103 Ficha do Jogador.py | AbelRapha/Python-Exercicios-CeV | 17e7055c982c8a1224992602ece50bae8eeee365 | [
"MIT"
] | null | null | null | Mundo 3/ex103 Ficha do Jogador.py | AbelRapha/Python-Exercicios-CeV | 17e7055c982c8a1224992602ece50bae8eeee365 | [
"MIT"
] | null | null | null | print("-"*30)
nome = input("Nome do Jogador: ").strip()
gols = input("NUmero de gols: ").strip()
def ficha(nome,gols):
if gols.isnumeric():
if nome == '':
return f'O jogador <desconhecido> fez {gols} gols(s) no campeaonato'
else:
return f'O jogador {nome} fez {gols} gol(s) no... | 36.333333 | 80 | 0.576147 | 76 | 545 | 4.131579 | 0.342105 | 0.089172 | 0.101911 | 0.191083 | 0.519108 | 0.484076 | 0.484076 | 0.484076 | 0.254777 | 0.254777 | 0 | 0.010204 | 0.280734 | 545 | 15 | 81 | 36.333333 | 0.790816 | 0 | 0 | 0.333333 | 0 | 0 | 0.430403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.333333 | 0.133333 | 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 |
75dc29e1419c580e6b63af0fa63529c4475a326a | 13,809 | py | Python | rosplan_waypoint_sampling/src/main_executor.py | sarah-keren/ROB-IS | 27b43d68e83ae3af4ff21cff9376642f7f1c6065 | [
"BSD-2-Clause"
] | 1 | 2021-12-29T08:15:01.000Z | 2021-12-29T08:15:01.000Z | rosplan_waypoint_sampling/src/main_executor.py | sarah-keren/ROB-IS | 27b43d68e83ae3af4ff21cff9376642f7f1c6065 | [
"BSD-2-Clause"
] | null | null | null | rosplan_waypoint_sampling/src/main_executor.py | sarah-keren/ROB-IS | 27b43d68e83ae3af4ff21cff9376642f7f1c6065 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
import rospkg
import rospy
import sys
import time
import os
import time
import re
import copy
from std_msgs.msg import String
from std_srvs.srv import Empty, EmptyResponse
from rosplan_knowledge_msgs.srv import *
from rosplan_interface_mapping.srv import CreatePRM
from rosplan_dispatch_msgs.srv ... | 37.524457 | 189 | 0.624665 | 1,810 | 13,809 | 4.533149 | 0.175691 | 0.035101 | 0.033638 | 0.0273 | 0.291042 | 0.188178 | 0.13504 | 0.118221 | 0.118221 | 0.111152 | 0 | 0.012059 | 0.24933 | 13,809 | 367 | 190 | 37.626703 | 0.779471 | 0.081613 | 0 | 0.259649 | 0 | 0.003509 | 0.161641 | 0.058721 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003509 | 0.052632 | null | null | 0.059649 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
75dcc5503f8b2431e0c95307943b67da29c08e4a | 4,917 | py | Python | python/spark-warehouse/generate_query_ad.py | zzhou9/google-searchAds | 6fed04a624cc637f472f866e91e465ebe11102d3 | [
"Apache-2.0"
] | null | null | null | python/spark-warehouse/generate_query_ad.py | zzhou9/google-searchAds | 6fed04a624cc637f472f866e91e465ebe11102d3 | [
"Apache-2.0"
] | null | null | null | python/spark-warehouse/generate_query_ad.py | zzhou9/google-searchAds | 6fed04a624cc637f472f866e91e465ebe11102d3 | [
"Apache-2.0"
] | null | null | null | import os
import sys
import json
import random
from sets import Set
import time
def window(seq, n=2):
"Returns a sliding window (of width n) over data from the iterable"
" s -> (s0,s1,...s[n-1]), (s1,s2,...,sn), ... "
it = iter(seq)
result = tuple(islice(it, n))
if len(result) =... | 37.25 | 155 | 0.608094 | 639 | 4,917 | 4.325509 | 0.158059 | 0.086831 | 0.104197 | 0.063676 | 0.498915 | 0.452243 | 0.390376 | 0.272069 | 0.224674 | 0.224674 | 0 | 0.008163 | 0.30242 | 4,917 | 131 | 156 | 37.534351 | 0.797668 | 0 | 0 | 0.203704 | 0 | 0.009259 | 0.062843 | 0.010779 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
75ea97face7098ebf6d683567fd4a5e05f1fa8bc | 2,125 | py | Python | koku/masu/util/hash.py | rubik-ai/koku | 3255d1c217b7b6685cb2e130bf4e025946e76fac | [
"Apache-2.0"
] | 157 | 2018-04-30T16:27:53.000Z | 2022-03-31T08:17:21.000Z | koku/masu/util/hash.py | rubik-ai/koku | 3255d1c217b7b6685cb2e130bf4e025946e76fac | [
"Apache-2.0"
] | 3,250 | 2018-04-26T14:14:25.000Z | 2022-03-31T23:49:15.000Z | koku/masu/util/hash.py | rubik-ai/koku | 3255d1c217b7b6685cb2e130bf4e025946e76fac | [
"Apache-2.0"
] | 65 | 2018-05-10T14:11:50.000Z | 2022-03-18T19:22:58.000Z | #
# Copyright 2021 Red Hat Inc.
# SPDX-License-Identifier: Apache-2.0
#
"""Hashing utility."""
import hashlib
from masu.exceptions import HasherError
class Hasher:
"""A utility class to create hashes."""
def __init__(self, hash_function, length=None, encoding="utf-8"):
"""Initialize the Hasher.
... | 28.716216 | 90 | 0.620706 | 247 | 2,125 | 5.190283 | 0.315789 | 0.25273 | 0.099844 | 0.051482 | 0.191888 | 0.191888 | 0.191888 | 0.191888 | 0.191888 | 0.191888 | 0 | 0.006004 | 0.294588 | 2,125 | 73 | 91 | 29.109589 | 0.849233 | 0.333647 | 0 | 0.083333 | 0 | 0 | 0.112745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.458333 | 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 |
75ef704b9a379102c90217b0e4fe9e5ef7c634e0 | 2,149 | py | Python | dialogue-engine/test/programytest/storage/stores/sql/dao/test_node.py | cotobadesign/cotoba-agent-oss | 3833d56e79dcd7529c3e8b3a3a8a782d513d9b12 | [
"MIT"
] | 104 | 2020-03-30T09:40:00.000Z | 2022-03-06T22:34:25.000Z | dialogue-engine/test/programytest/storage/stores/sql/dao/test_node.py | cotobadesign/cotoba-agent-oss | 3833d56e79dcd7529c3e8b3a3a8a782d513d9b12 | [
"MIT"
] | 25 | 2020-06-12T01:36:35.000Z | 2022-02-19T07:30:44.000Z | dialogue-engine/test/programytest/storage/stores/sql/dao/test_node.py | cotobadesign/cotoba-agent-oss | 3833d56e79dcd7529c3e8b3a3a8a782d513d9b12 | [
"MIT"
] | 10 | 2020-04-02T23:43:56.000Z | 2021-05-14T13:47:01.000Z | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | 47.755556 | 126 | 0.737552 | 303 | 2,149 | 5.19802 | 0.412541 | 0.055873 | 0.060952 | 0.086349 | 0.377143 | 0.358095 | 0.358095 | 0.312381 | 0.260317 | 0.260317 | 0 | 0.011099 | 0.16147 | 2,149 | 44 | 127 | 48.840909 | 0.86293 | 0.494183 | 0 | 0.315789 | 0 | 0 | 0.242817 | 0 | 0 | 0 | 0 | 0 | 0.421053 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75f264f5ecf208464b513e92ceadebebf05eb6b1 | 2,918 | py | Python | debugger/chrome_tab_finder.py | natduca/ndbg | f8da43be62dac18072e9b0e6e5ecd0d1818aea4d | [
"Apache-2.0"
] | 5 | 2016-05-12T08:48:41.000Z | 2018-07-17T00:48:32.000Z | debugger/chrome_tab_finder.py | natduca/ndbg | f8da43be62dac18072e9b0e6e5ecd0d1818aea4d | [
"Apache-2.0"
] | 1 | 2022-01-16T12:18:50.000Z | 2022-01-16T12:18:50.000Z | debugger/chrome_tab_finder.py | natduca/ndbg | f8da43be62dac18072e9b0e6e5ecd0d1818aea4d | [
"Apache-2.0"
] | null | null | null | # Copyright 2011 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 27.790476 | 119 | 0.70048 | 393 | 2,918 | 4.961832 | 0.43257 | 0.062051 | 0.041026 | 0.028718 | 0.083077 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 0.008967 | 0.197395 | 2,918 | 104 | 120 | 28.057692 | 0.823655 | 0.227553 | 0 | 0.144928 | 0 | 0 | 0.115333 | 0.022351 | 0 | 0 | 0 | 0 | 0.014493 | 0 | null | null | 0 | 0.057971 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75f43c77dcf0e900d815b1faff82045e4ea774db | 618 | py | Python | InvenTree/build/migrations/0030_alter_build_reference.py | carlos-riquelme/InvenTree | 724dd2a9c82e4c10e14bd6aba8f48553b183fef9 | [
"MIT"
] | 656 | 2017-03-29T22:06:14.000Z | 2022-03-30T11:23:52.000Z | InvenTree/build/migrations/0030_alter_build_reference.py | carlos-riquelme/InvenTree | 724dd2a9c82e4c10e14bd6aba8f48553b183fef9 | [
"MIT"
] | 1,545 | 2017-04-10T23:26:04.000Z | 2022-03-31T18:32:10.000Z | InvenTree/build/migrations/0030_alter_build_reference.py | fablabbcn/InvenTree | 1d7ea7716cc96c6ffd151c822b01cd1fb5dcfecd | [
"MIT"
] | 196 | 2017-03-28T03:06:21.000Z | 2022-03-28T11:53:29.000Z | # Generated by Django 3.2.4 on 2021-07-08 14:14
import InvenTree.validators
import build.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('build', '0029_auto_20210601_1525'),
]
operations = [
migrations.AlterField(
mode... | 29.428571 | 234 | 0.695793 | 72 | 618 | 5.791667 | 0.652778 | 0.091127 | 0.091127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066532 | 0.197411 | 618 | 20 | 235 | 30.9 | 0.774194 | 0.072816 | 0 | 0 | 1 | 0 | 0.126095 | 0.04028 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75f55b53efeb7d46f0734e34d65eaa53dd853838 | 951 | py | Python | tests/services/test_schema_mock_data_generator.py | barash-asenov/herbie | 86fcec23d5b0cd167a830adab84aa4e2e5d0d79d | [
"MIT"
] | 9 | 2020-01-28T09:22:18.000Z | 2021-08-17T17:17:26.000Z | tests/services/test_schema_mock_data_generator.py | barash-asenov/herbie | 86fcec23d5b0cd167a830adab84aa4e2e5d0d79d | [
"MIT"
] | 6 | 2020-01-24T15:05:27.000Z | 2021-09-07T12:05:37.000Z | tests/services/test_schema_mock_data_generator.py | barash-asenov/herbie | 86fcec23d5b0cd167a830adab84aa4e2e5d0d79d | [
"MIT"
] | 5 | 2020-01-29T16:07:31.000Z | 2021-06-24T13:10:17.000Z | import glob
import json
import os
import pkgutil
import pytest
from herbie_core.services.schema_mock_data.schema_mock_data_generator import SchemaMockDataGenerator
from jsonschema import validate, Draft7Validator, SchemaError
class TestSchemaMockDataGenerator:
os.chdir("tests/test_schema/mock_data_generation")
... | 33.964286 | 102 | 0.754995 | 119 | 951 | 5.756303 | 0.428571 | 0.105109 | 0.081752 | 0.055474 | 0.157664 | 0.09635 | 0 | 0 | 0 | 0 | 0 | 0.003788 | 0.167192 | 951 | 27 | 103 | 35.222222 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0.165089 | 0.06204 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.35 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
75fb1d0df4a78301fab79c3ef28218b1a1b2bb3a | 15,665 | py | Python | copyFeaturesFromService.py | pmacMaps/copy-features-from-map-service | 9941986f8f562cf9b137c03114b6e8025d024df8 | [
"CNRI-Python"
] | 3 | 2017-07-21T19:57:37.000Z | 2020-10-29T09:35:15.000Z | copyFeaturesFromService.py | pmacMaps/copy-features-from-map-service | 9941986f8f562cf9b137c03114b6e8025d024df8 | [
"CNRI-Python"
] | 3 | 2018-12-05T19:13:39.000Z | 2019-01-11T20:13:43.000Z | copyFeaturesFromService.py | pmacMaps/copy-features-from-map-service | 9941986f8f562cf9b137c03114b6e8025d024df8 | [
"CNRI-Python"
] | null | null | null | #-------------------------------------------------------------------------------
# Name: Copy Features from Map/Feature Service Module
# Purpose:
#
# Author: Jake Skinner, Esri; Patrick McKinney, Cumberland County GIS
#
# Description: Script based upon map service extract tool developed by Jake
# ... | 51.19281 | 150 | 0.499074 | 1,615 | 15,665 | 4.811765 | 0.170898 | 0.02342 | 0.021619 | 0.032428 | 0.621542 | 0.621542 | 0.621542 | 0.615622 | 0.604684 | 0.59233 | 0 | 0.009282 | 0.394765 | 15,665 | 306 | 151 | 51.19281 | 0.810358 | 0.245515 | 0 | 0.757576 | 0 | 0 | 0.13731 | 0.020228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005051 | false | 0.035354 | 0.010101 | 0 | 0.015152 | 0 | 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 |
2f050dc40721c905081b4091cdfb73adb9fba3e6 | 2,452 | py | Python | examples/structural/euler_bernoulle_curvilinear.py | leal26/pyXFOIL | 88ff224be25cdb51eb821315f6e094f68fb13247 | [
"MIT"
] | 50 | 2016-03-15T17:24:55.000Z | 2021-12-28T07:32:45.000Z | examples/structural/euler_bernoulle_curvilinear.py | leal26/pyXFOIL | 88ff224be25cdb51eb821315f6e094f68fb13247 | [
"MIT"
] | 22 | 2017-04-20T11:27:28.000Z | 2022-02-09T05:57:06.000Z | examples/structural/euler_bernoulle_curvilinear.py | leal26/pyXFOIL | 88ff224be25cdb51eb821315f6e094f68fb13247 | [
"MIT"
] | 34 | 2016-03-04T15:57:37.000Z | 2022-02-15T20:06:54.000Z | from aeropy.geometry.parametric import CoordinateSystem
from aeropy.structural.beam import euler_bernoulle_curvilinear
from aeropy.structural.stable_solution import (mesh_1D, properties,
boundary_conditions,
euler_bernoulle)
f... | 43.785714 | 80 | 0.723083 | 304 | 2,452 | 5.710526 | 0.404605 | 0.086406 | 0.082949 | 0.029378 | 0.218318 | 0.189516 | 0.169355 | 0.042627 | 0 | 0 | 0 | 0.206081 | 0.154976 | 2,452 | 55 | 81 | 44.581818 | 0.631757 | 0.021615 | 0 | 0.2 | 0 | 0 | 0.033806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.14 | 0 | 0.14 | 0.12 | 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 |
f931019b414a2687f57b08460f35ef28e4f4b82a | 517 | py | Python | Dynamic/unKnap.py | mladuke/Algorithms | eab5d89c5f496b2849f0646dbfa3a4db93a0b391 | [
"MIT"
] | null | null | null | Dynamic/unKnap.py | mladuke/Algorithms | eab5d89c5f496b2849f0646dbfa3a4db93a0b391 | [
"MIT"
] | null | null | null | Dynamic/unKnap.py | mladuke/Algorithms | eab5d89c5f496b2849f0646dbfa3a4db93a0b391 | [
"MIT"
] | null | null | null | def unboundedKnapsack(maxWeight, numberItems, value, weight):
totValue = [0]*(maxWeight+1)
for i in range(maxWeight + 1):
for j in range(numberItems):
if (weight[j] <= i):
totValue[i] = max(
totValue[i], totValue[i - weight[j]] + value[j])
# print(... | 32.3125 | 68 | 0.597679 | 64 | 517 | 4.828125 | 0.4375 | 0.116505 | 0.097087 | 0.271845 | 0.31068 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041775 | 0.259188 | 517 | 15 | 69 | 34.466667 | 0.765013 | 0.038685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0.076923 | 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 |
f93b878e7dbcc7f6678dbb30bc6c9cc2997c9db7 | 416 | py | Python | peeldb/migrations/0045_auto_20181031_1054.py | ashwin31/opensource-job-portal | 2885ea52f8660e893fe0531c986e3bee33d986a2 | [
"MIT"
] | 1 | 2021-09-27T05:01:39.000Z | 2021-09-27T05:01:39.000Z | peeldb/migrations/0045_auto_20181031_1054.py | kiran1415/opensource-job-portal | 2885ea52f8660e893fe0531c986e3bee33d986a2 | [
"MIT"
] | null | null | null | peeldb/migrations/0045_auto_20181031_1054.py | kiran1415/opensource-job-portal | 2885ea52f8660e893fe0531c986e3bee33d986a2 | [
"MIT"
] | 1 | 2022-01-05T09:02:32.000Z | 2022-01-05T09:02:32.000Z | # Generated by Django 2.0.2 on 2018-10-31 10:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('peeldb', '0044_jobpost_pincode'),
]
operations = [
migrations.AlterField(
model_name='jobpost',
name='company_emails... | 21.894737 | 75 | 0.612981 | 46 | 416 | 5.434783 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072607 | 0.271635 | 416 | 18 | 76 | 23.111111 | 0.752475 | 0.108173 | 0 | 0 | 1 | 0 | 0.127371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f94a8e1fb28b29bb2c449ddaf96fc615c6d964a1 | 5,866 | py | Python | datatank_py/DTSeries.py | amaxwell/datatank_py | 69404b23e456b23db8ef2e59b484283f40dbb9ec | [
"BSD-3-Clause"
] | 2 | 2019-07-03T18:58:03.000Z | 2020-03-23T12:49:26.000Z | datatank_py/DTSeries.py | amaxwell/datatank_py | 69404b23e456b23db8ef2e59b484283f40dbb9ec | [
"BSD-3-Clause"
] | null | null | null | datatank_py/DTSeries.py | amaxwell/datatank_py | 69404b23e456b23db8ef2e59b484283f40dbb9ec | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This software is under a BSD license. See LICENSE.txt for details.
import numpy as np
def _times_considered_same(t1, t2):
"""docstring for _times_considered_same"""
return abs(t1 - t2) <= 0.000001 * (t1 + t2)
class DTSeries(object):
"""Base class for seri... | 38.592105 | 109 | 0.607399 | 719 | 5,866 | 4.821975 | 0.317107 | 0.031728 | 0.050764 | 0.021633 | 0.088549 | 0.053937 | 0.041534 | 0.041534 | 0.041534 | 0.041534 | 0 | 0.008772 | 0.300375 | 5,866 | 151 | 110 | 38.847682 | 0.836014 | 0.472724 | 0 | 0 | 0 | 0 | 0.074513 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 1 | 0.212766 | false | 0 | 0.021277 | 0 | 0.404255 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f94b2d288d3146cff306216068b98bf81c27aee0 | 31,840 | py | Python | mflod/crypto/crypto.py | ddnomad/mflod | 75ede6d06d5a98b8984115acd9fb5f01ceeca3ee | [
"MIT"
] | 5 | 2017-05-01T22:49:38.000Z | 2017-06-01T20:22:18.000Z | mflod/crypto/crypto.py | ddnomad/mflod | 75ede6d06d5a98b8984115acd9fb5f01ceeca3ee | [
"MIT"
] | null | null | null | mflod/crypto/crypto.py | ddnomad/mflod | 75ede6d06d5a98b8984115acd9fb5f01ceeca3ee | [
"MIT"
] | 4 | 2017-05-06T11:55:12.000Z | 2017-06-07T15:32:54.000Z | # generic imports
import logging
from datetime import datetime
# crypto module headers and helpers imports
import mflod.crypto.exceptions as exc
import mflod.crypto.asn1_structures as asn1_dec
from mflod.crypto.constants import Constants as const
from mflod.crypto.log_strings import LogStrings as logstr
# ASN.1 tools... | 36.980256 | 80 | 0.595226 | 3,544 | 31,840 | 5.176072 | 0.148702 | 0.02017 | 0.015536 | 0.010303 | 0.245584 | 0.166594 | 0.123038 | 0.094963 | 0.065362 | 0.058875 | 0 | 0.008197 | 0.348618 | 31,840 | 860 | 81 | 37.023256 | 0.876278 | 0.443436 | 0 | 0.176871 | 0 | 0 | 0.052328 | 0 | 0 | 0 | 0.000501 | 0.012791 | 0.006803 | 1 | 0.061224 | false | 0 | 0.064626 | 0 | 0.204082 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
f94cf982a470b3f7edc7d069cb7675ceca28f9de | 502 | py | Python | src/billing/models.py | LABETE/digitalmarket | fc5e81781cbd92535dfe7ecbcc5924058d475a5f | [
"MIT"
] | null | null | null | src/billing/models.py | LABETE/digitalmarket | fc5e81781cbd92535dfe7ecbcc5924058d475a5f | [
"MIT"
] | null | null | null | src/billing/models.py | LABETE/digitalmarket | fc5e81781cbd92535dfe7ecbcc5924058d475a5f | [
"MIT"
] | null | null | null | from django.conf import settings
from django.db import models
from products.models import Product
class Transaction(models.Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL)
product = models.ForeignKey(Product)
price = models.DecimalField(max_digits=100, decimal_places=2, default=9.99, null=True)... | 31.375 | 90 | 0.752988 | 67 | 502 | 5.477612 | 0.641791 | 0.054496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018648 | 0.145418 | 502 | 15 | 91 | 33.466667 | 0.83683 | 0 | 0 | 0 | 0 | 0 | 0.005976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0.090909 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f951fa5b8a6829621eeda761023db093a63cc483 | 474 | py | Python | catalog/bindings/gmd/circle_by_center_point.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/gmd/circle_by_center_point.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/gmd/circle_by_center_point.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from bindings.gmd.circle_by_center_point_type import CircleByCenterPointType
__NAMESPACE__ = "http://www.opengis.net/gml"
@dataclass
class CircleByCenterPoint(CircleByCenterPointType):
"""A gml:CircleByCenterPoint is an gml:ArcByCenterPoint with identical
start and end angle... | 27.882353 | 76 | 0.759494 | 59 | 474 | 5.966102 | 0.728814 | 0.073864 | 0.090909 | 0.130682 | 0.164773 | 0.164773 | 0 | 0 | 0 | 0 | 0 | 0.002525 | 0.164557 | 474 | 16 | 77 | 29.625 | 0.886364 | 0.341772 | 0 | 0 | 0 | 0 | 0.177474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f955cbb55b8638ca2f1eedfde48361dd62f55d8e | 6,469 | py | Python | NLP/The_Bottom_up_Evolution_of_Representations_in_the_Transformer/analytics_coarse_grained.py | Superhzf/PaperImplementation | a800a9e2fb52fb70766bf91b52871621e0e1dd55 | [
"MIT"
] | null | null | null | NLP/The_Bottom_up_Evolution_of_Representations_in_the_Transformer/analytics_coarse_grained.py | Superhzf/PaperImplementation | a800a9e2fb52fb70766bf91b52871621e0e1dd55 | [
"MIT"
] | null | null | null | NLP/The_Bottom_up_Evolution_of_Representations_in_the_Transformer/analytics_coarse_grained.py | Superhzf/PaperImplementation | a800a9e2fb52fb70766bf91b52871621e0e1dd55 | [
"MIT"
] | null | null | null | """
Notes:
This script generates data for the pictures in part 5.2.1 and 5.2.2.
The authors mention, in 5.2.1, that all tokens come from 5000
sentences; however, the entire dataset includes 5.9M sentences and they do not
mention how those 5000 sentences are selected. I will select the first 5000
sentences for now for ... | 45.237762 | 141 | 0.679394 | 954 | 6,469 | 4.284067 | 0.149895 | 0.039149 | 0.036702 | 0.035234 | 0.472963 | 0.393443 | 0.27771 | 0.178126 | 0.14485 | 0.135307 | 0 | 0.015097 | 0.221827 | 6,469 | 142 | 142 | 45.556338 | 0.796782 | 0.050394 | 0 | 0.163793 | 1 | 0 | 0.05705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.112069 | 0 | 0.112069 | 0.094828 | 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 |
f95bd80579a508388ca7d99c150c68f4b2a78166 | 19,297 | py | Python | UCODE/r1k_ucode_diag_chains.py | Datamuseum-DK/R1000.Disassembly | 4c4710f6d0d998d850e7bbf7d93b21d7552707ca | [
"BSD-2-Clause"
] | null | null | null | UCODE/r1k_ucode_diag_chains.py | Datamuseum-DK/R1000.Disassembly | 4c4710f6d0d998d850e7bbf7d93b21d7552707ca | [
"BSD-2-Clause"
] | null | null | null | UCODE/r1k_ucode_diag_chains.py | Datamuseum-DK/R1000.Disassembly | 4c4710f6d0d998d850e7bbf7d93b21d7552707ca | [
"BSD-2-Clause"
] | null | null | null | '''
This file contains the definitions of the DIAG chains used to
load the microcode onto the various boards
'''
#######################################################################
# Microcode is loaded by the 8051 on each board, by feeding a byte
# at time to several serial-to-parallel registers.
# The stru... | 31.634426 | 71 | 0.399803 | 2,617 | 19,297 | 2.794803 | 0.192969 | 0.018594 | 0.010254 | 0.009024 | 0.303664 | 0.266885 | 0.259092 | 0.251162 | 0.251162 | 0.24501 | 0 | 0.145383 | 0.343421 | 19,297 | 609 | 72 | 31.686371 | 0.431807 | 0.282013 | 0 | 0.360697 | 0 | 0 | 0.299521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f96aa812e2cda79c96307216248bb13b8f5805bb | 1,097 | py | Python | py/cidoc_crm_types/properties/p33_used_specific_technique.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | py/cidoc_crm_types/properties/p33_used_specific_technique.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | py/cidoc_crm_types/properties/p33_used_specific_technique.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | from .p16_used_specific_object import P16UsedSpecificObject
from dataclasses import dataclass
@dataclass
class P33UsedSpecificTechnique(P16UsedSpecificObject):
"""
Scope note:
This property identifies a specific instance of E29 Design or Procedure in order to carry out an instance of E7 Activity or parts of it.
... | 39.178571 | 253 | 0.782133 | 169 | 1,097 | 5.04142 | 0.568047 | 0.056338 | 0.073944 | 0.03169 | 0.070423 | 0.070423 | 0 | 0 | 0 | 0 | 0 | 0.057359 | 0.157703 | 1,097 | 27 | 254 | 40.62963 | 0.864719 | 0.770283 | 0 | 0 | 0 | 0 | 0.245833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f970fceb90839a72972c4d9690608feb460fec30 | 720 | py | Python | temp/testing.py | Helinskii/Project-FIFA | 52846eec0d203a514e8dd993839db00047c254e9 | [
"MIT"
] | null | null | null | temp/testing.py | Helinskii/Project-FIFA | 52846eec0d203a514e8dd993839db00047c254e9 | [
"MIT"
] | null | null | null | temp/testing.py | Helinskii/Project-FIFA | 52846eec0d203a514e8dd993839db00047c254e9 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup as soup
from requests import get
url_standings = 'http://www.espn.in/football/table/_/league/fifa.world'
html = get(url_standings)
page = soup(html.content, 'html.parser')
heads = page.find_all('thead', attrs = 'class':'standings-categories'})
groups = []
categories = []
count_categories... | 28.8 | 71 | 0.659722 | 96 | 720 | 4.78125 | 0.5 | 0.130719 | 0.091503 | 0.065359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01421 | 0.218056 | 720 | 24 | 72 | 30 | 0.801066 | 0 | 0 | 0 | 0 | 0 | 0.159722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 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 |
f972548b526f07fdfb2cee88ad760fe6ba1efa56 | 327 | py | Python | catalog/bindings/gmd/transformation_ref.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/gmd/transformation_ref.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/gmd/transformation_ref.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from bindings.gmd.transformation_property_type import TransformationPropertyType
__NAMESPACE__ = "http://www.opengis.net/gml"
@dataclass
class TransformationRef(TransformationPropertyType):
class Meta:
name = "transformationRef"
namespace = "http://www.opengis.ne... | 27.25 | 80 | 0.776758 | 32 | 327 | 7.75 | 0.625 | 0.104839 | 0.129032 | 0.185484 | 0.233871 | 0.233871 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137615 | 327 | 11 | 81 | 29.727273 | 0.879433 | 0 | 0 | 0 | 0 | 0 | 0.211009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f973608e2fab7dd798845c0f642bbb683f3b5126 | 1,158 | py | Python | experimental/BLTUnfold/runJobsCrab.py | jjacob/DailyPythonScripts | cd6c515c6242d1f3b44e97c8ad05946721b6a36a | [
"Apache-2.0"
] | null | null | null | experimental/BLTUnfold/runJobsCrab.py | jjacob/DailyPythonScripts | cd6c515c6242d1f3b44e97c8ad05946721b6a36a | [
"Apache-2.0"
] | null | null | null | experimental/BLTUnfold/runJobsCrab.py | jjacob/DailyPythonScripts | cd6c515c6242d1f3b44e97c8ad05946721b6a36a | [
"Apache-2.0"
] | null | null | null | from optparse import OptionParser
import os
jobs = [
# 8 TeV
# Central
'',
# Scale up/down
'-s scaleup',
'-s scaledown',
# Matching up/down
'-s matchingup',
'-s matchingdown',
# Other generators
'-s pow... | 23.16 | 105 | 0.528497 | 117 | 1,158 | 5.196581 | 0.57265 | 0.029605 | 0.036184 | 0.069079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018205 | 0.335924 | 1,158 | 49 | 106 | 23.632653 | 0.772432 | 0.246978 | 0 | 0 | 0 | 0 | 0.326316 | 0.060819 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f98163d8a1016cea6a320cf16edce96e4a23b5b2 | 17,378 | py | Python | hitrate.py | vcla/Causality | d3084e289eeb9509077297442c734d92612cddaa | [
"MIT"
] | 10 | 2017-08-18T16:15:52.000Z | 2022-02-21T07:07:54.000Z | hitrate.py | vcla/Causality | d3084e289eeb9509077297442c734d92612cddaa | [
"MIT"
] | null | null | null | hitrate.py | vcla/Causality | d3084e289eeb9509077297442c734d92612cddaa | [
"MIT"
] | 3 | 2018-03-07T15:39:22.000Z | 2021-06-05T08:53:56.000Z | #GOAL: for each video clip, find the best human and report how far off the causalgrammar and origdata are from them
#QUESTION: how should these costs aggregate across video clips?
#NOTE: 'besthuman' is really 'nearesthuman' in this one.
import json
import pprint as pp
import os
import hashlib
from collections import ... | 40.133949 | 229 | 0.681724 | 2,079 | 17,378 | 5.608466 | 0.188552 | 0.015437 | 0.013036 | 0.018611 | 0.282504 | 0.199743 | 0.166724 | 0.162178 | 0.105575 | 0.095455 | 0 | 0.007735 | 0.181609 | 17,378 | 432 | 230 | 40.226852 | 0.812122 | 0.137415 | 0 | 0.246684 | 0 | 0 | 0.101305 | 0.008765 | 0 | 0 | 0 | 0.002315 | 0 | 0 | null | null | 0.002653 | 0.029178 | null | null | 0.084881 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f982e327cb15a877c1617c2509813dee13a12d74 | 1,235 | py | Python | match/logic/MatchManager.py | NoMariusz/Praeteritum | c32fa017e23de7255224fcf72cd04abdfc3ebff4 | [
"MIT"
] | 3 | 2021-03-07T21:43:55.000Z | 2021-09-21T08:24:26.000Z | match/logic/MatchManager.py | NoMariusz/Praeteritum | c32fa017e23de7255224fcf72cd04abdfc3ebff4 | [
"MIT"
] | null | null | null | match/logic/MatchManager.py | NoMariusz/Praeteritum | c32fa017e23de7255224fcf72cd04abdfc3ebff4 | [
"MIT"
] | null | null | null | from typing import Optional
from .Match import Match
class MatchManager:
""" class responsible for:
- creating matches for given players
- storing references to them, so garbage collector can not delete them
- returning matches by giving match id
- allowing to delete matches by removing reference ... | 36.323529 | 75 | 0.662348 | 166 | 1,235 | 4.819277 | 0.349398 | 0.0625 | 0.045 | 0.0525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002183 | 0.2583 | 1,235 | 33 | 76 | 37.424242 | 0.871179 | 0.422672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f987f1f5e7a7ecd2b84c66373e8fed976857f4f9 | 4,910 | py | Python | bambou/nurest_modelcontroller.py | pdellaert/bambou | f140fda6374a3151792a2dfbc6826749779c6c16 | [
"BSD-3-Clause"
] | 8 | 2015-08-21T00:06:41.000Z | 2018-01-08T22:46:45.000Z | bambou/nurest_modelcontroller.py | pdellaert/bambou | f140fda6374a3151792a2dfbc6826749779c6c16 | [
"BSD-3-Clause"
] | 27 | 2015-08-29T23:47:57.000Z | 2021-06-08T02:31:23.000Z | bambou/nurest_modelcontroller.py | pdellaert/bambou | f140fda6374a3151792a2dfbc6826749779c6c16 | [
"BSD-3-Clause"
] | 18 | 2015-08-29T23:37:55.000Z | 2019-03-06T07:51:28.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# no... | 33.175676 | 86 | 0.667617 | 636 | 4,910 | 4.955975 | 0.262579 | 0.088832 | 0.037119 | 0.053299 | 0.511739 | 0.466688 | 0.365165 | 0.283947 | 0.140546 | 0.140546 | 0 | 0.00253 | 0.27556 | 4,910 | 147 | 87 | 33.401361 | 0.88361 | 0.51222 | 0 | 0.355556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0 | 0.022222 | 0 | 0.511111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f993dd1022e17fa1ce8c13c105a1c8bd2beb76a1 | 570 | py | Python | setup.py | jumpyapple/python-blkmaker | 6efa547cea8dc4f0ec2dd994c5e3a91b8e0a8eb0 | [
"MIT"
] | null | null | null | setup.py | jumpyapple/python-blkmaker | 6efa547cea8dc4f0ec2dd994c5e3a91b8e0a8eb0 | [
"MIT"
] | null | null | null | setup.py | jumpyapple/python-blkmaker | 6efa547cea8dc4f0ec2dd994c5e3a91b8e0a8eb0 | [
"MIT"
] | null | null | null | from setuptools import setup
def readme():
with open("./README", "r") as f:
return f.read()
setup(
name="python-blkmaker",
version="1.0.0",
description="Native Python port of libblkmaker (getblocktemplate client implementation)",
long_description=readme(),
classifiers=[
"Lice... | 22.8 | 93 | 0.636842 | 64 | 570 | 5.625 | 0.765625 | 0.077778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011086 | 0.208772 | 570 | 24 | 94 | 23.75 | 0.78714 | 0 | 0 | 0 | 0 | 0 | 0.384211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | true | 0 | 0.05 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9a1e813ebffc30c20f6293a83634699e71ce291 | 7,526 | py | Python | tools/convert_datasets/pinctada.py | LvJC/SOLO | 422f9114a052d825e414be90c6995f8e7fee4c52 | [
"BSD-2-Clause"
] | null | null | null | tools/convert_datasets/pinctada.py | LvJC/SOLO | 422f9114a052d825e414be90c6995f8e7fee4c52 | [
"BSD-2-Clause"
] | null | null | null | tools/convert_datasets/pinctada.py | LvJC/SOLO | 422f9114a052d825e414be90c6995f8e7fee4c52 | [
"BSD-2-Clause"
] | null | null | null | #! python3
# -*- encoding: utf-8 -*-
'''
@Time : 2021/07/13
@Author : jincheng.lyu
1. Get all categories
2. Generate label for each image
3. All images by using multithreading
'''
import cv2
import datetime
import glob
import imagesize
import json
import mmcv
import numpy as np
import os
import os.path as osp... | 29.865079 | 91 | 0.609886 | 877 | 7,526 | 5.099202 | 0.257697 | 0.026834 | 0.018784 | 0.008945 | 0.499329 | 0.487701 | 0.475179 | 0.475179 | 0.46288 | 0.443202 | 0 | 0.015634 | 0.277571 | 7,526 | 251 | 92 | 29.984064 | 0.806879 | 0.156258 | 0 | 0.440217 | 1 | 0 | 0.116416 | 0.009992 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032609 | false | 0 | 0.081522 | 0 | 0.141304 | 0.01087 | 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 |
f9a2408526a30d23a2097a90c2a3b39ebf483ba1 | 3,647 | py | Python | candidats/migrations/0004_complement_ede_fields.py | mohamedba01/RH_SOlution_-StagePFE | 0638b889f4fb75e714a470d18907720fa37b2d14 | [
"Unlicense"
] | null | null | null | candidats/migrations/0004_complement_ede_fields.py | mohamedba01/RH_SOlution_-StagePFE | 0638b889f4fb75e714a470d18907720fa37b2d14 | [
"Unlicense"
] | null | null | null | candidats/migrations/0004_complement_ede_fields.py | mohamedba01/RH_SOlution_-StagePFE | 0638b889f4fb75e714a470d18907720fa37b2d14 | [
"Unlicense"
] | null | null | null | # Generated by Django 2.0 on 2018-01-26 16:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('candidats', '0003_add_interview_model'),
]
operations = [
migrations.RemoveField(
model_name='candidate',
name='certif... | 42.406977 | 301 | 0.588155 | 364 | 3,647 | 5.747253 | 0.384615 | 0.064532 | 0.129063 | 0.157744 | 0.548279 | 0.440727 | 0.302581 | 0.145315 | 0.053537 | 0 | 0 | 0.029599 | 0.268166 | 3,647 | 85 | 302 | 42.905882 | 0.754215 | 0.011791 | 0 | 0.56962 | 1 | 0 | 0.250139 | 0.013048 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012658 | 0 | 0.050633 | 0 | 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 |
f9a677e52705e1a1727c4e27ba35c28bb2579305 | 369 | py | Python | tests/test_project/test_app/migrations/0029_add_unique_together.py | David-Wobrock/django-fake-database-backends | 1952306de35e64d2fb41adbaa2063ebd78d3264a | [
"MIT"
] | 2 | 2017-12-16T04:12:59.000Z | 2018-02-20T19:26:06.000Z | tests/test_project/test_app/migrations/0029_add_unique_together.py | David-Wobrock/django-fake-database-backends | 1952306de35e64d2fb41adbaa2063ebd78d3264a | [
"MIT"
] | 10 | 2018-01-21T11:35:28.000Z | 2020-06-17T20:59:09.000Z | tests/test_project/test_app/migrations/0029_add_unique_together.py | David-Wobrock/django-fake-database-backends | 1952306de35e64d2fb41adbaa2063ebd78d3264a | [
"MIT"
] | null | null | null | # Generated by Django 2.0.1 on 2018-02-04 20:57
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('test_app', '0028_add_float_with_default'),
]
operations = [
migrations.AlterUniqueTogether(
name='secondobject',
unique_toge... | 20.5 | 54 | 0.615176 | 39 | 369 | 5.641026 | 0.897436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070111 | 0.265583 | 369 | 17 | 55 | 21.705882 | 0.741697 | 0.121951 | 0 | 0 | 1 | 0 | 0.192547 | 0.083851 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9d376b4445a9572abf54e4fbcc2087bfe95992d | 569 | py | Python | setup.py | upnt/othello-python | 1b7d73006ef25b6d52f7d2b1a42e90e9d99521ee | [
"Apache-2.0"
] | null | null | null | setup.py | upnt/othello-python | 1b7d73006ef25b6d52f7d2b1a42e90e9d99521ee | [
"Apache-2.0"
] | null | null | null | setup.py | upnt/othello-python | 1b7d73006ef25b6d52f7d2b1a42e90e9d99521ee | [
"Apache-2.0"
] | null | null | null | from glob import glob
from os.path import basename, splitext
from setuptools import setup, find_packages
setup(
name="othello",
version="1.0",
license="Apache License 2.0",
description="You can play othello",
author="upnt",
url="https://github.com/upnt/othello-python",
packages=find_packag... | 27.095238 | 74 | 0.676626 | 76 | 569 | 4.947368 | 0.644737 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.165202 | 569 | 20 | 75 | 28.45 | 0.781053 | 0 | 0 | 0 | 0 | 0 | 0.233743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9da53113d40c680816fe8af1ddf8788bd295830 | 2,851 | py | Python | dashboard_api/widget_def/models/properties.py | data61/Openboard | aaf7ef49e05c0771094efc6be811c6ae88055252 | [
"Apache-2.0"
] | 2 | 2017-08-29T23:05:51.000Z | 2019-04-02T21:11:35.000Z | dashboard_api/widget_def/models/properties.py | data61/Openboard | aaf7ef49e05c0771094efc6be811c6ae88055252 | [
"Apache-2.0"
] | 1 | 2019-04-02T21:11:26.000Z | 2019-04-03T15:12:57.000Z | dashboard_api/widget_def/models/properties.py | data61/Openboard | aaf7ef49e05c0771094efc6be811c6ae88055252 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 CSIRO
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 39.597222 | 119 | 0.652753 | 360 | 2,851 | 5.05 | 0.405556 | 0.033003 | 0.029703 | 0.039604 | 0.094609 | 0.070407 | 0.046205 | 0.046205 | 0.046205 | 0 | 0 | 0.007741 | 0.229744 | 2,851 | 71 | 120 | 40.15493 | 0.820128 | 0.27464 | 0 | 0.170213 | 0 | 0 | 0.20936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.106383 | 0.06383 | 0.574468 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f9db5712ee4323e01b7e91745a901628bfdf6176 | 507 | py | Python | Events.py | SUMER9999dev/Cubes-Playground | e21dc8832657b1a5356a72ba9ae5acc0ba162b3a | [
"WTFPL"
] | 1 | 2021-07-07T07:03:18.000Z | 2021-07-07T07:03:18.000Z | Events.py | SUMER9999dev/Cubes-Playground | e21dc8832657b1a5356a72ba9ae5acc0ba162b3a | [
"WTFPL"
] | null | null | null | Events.py | SUMER9999dev/Cubes-Playground | e21dc8832657b1a5356a72ba9ae5acc0ba162b3a | [
"WTFPL"
] | null | null | null | # import's
from typing import Callable
from Interfaces.IEvent import IEvent
# events
class Event(IEvent):
def __init__(self) -> None:
super().__init__()
def notify(self, *args, **kwargs) -> None:
for observer in self._observers:
observer(*args, **kwargs)
def deattach(self, o... | 24.142857 | 64 | 0.64497 | 59 | 507 | 5.355932 | 0.457627 | 0.123418 | 0.126582 | 0.14557 | 0.278481 | 0.278481 | 0.278481 | 0.278481 | 0 | 0 | 0 | 0 | 0.22288 | 507 | 20 | 65 | 25.35 | 0.80203 | 0.029586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9de2077ffc4a31368fe3d412301b0934cbdd112 | 9,341 | py | Python | dev-files/notebook files/fluidlearn/main_nb.py | mjayadharan/FlowNet | fea74e5e589d9cfb5f4d5e090343b2077c0e6886 | [
"MIT"
] | 3 | 2020-08-18T03:50:42.000Z | 2021-04-15T19:12:03.000Z | dev-files/notebook files/fluidlearn/main_nb.py | mjayadharan/FlowNet | fea74e5e589d9cfb5f4d5e090343b2077c0e6886 | [
"MIT"
] | 2 | 2020-09-09T03:35:41.000Z | 2020-09-09T03:37:03.000Z | dev-files/notebook files/fluidlearn/main_nb.py | mjayadharan/FlowNet | fea74e5e589d9cfb5f4d5e090343b2077c0e6886 | [
"MIT"
] | 2 | 2020-08-18T19:17:41.000Z | 2020-09-09T19:59:15.000Z | import numpy as np
import tensorflow as tf
from tensorflow import keras
import os
import dataprocess
import fluidmodels
import losses
#python version of jupyter notebook file, just for testing the packages.
# ### Manufacturing data for trainig
# In[2]:
np.random.seed(123)
pde_data_size = 2000
bc_data_size = 400
... | 24.975936 | 136 | 0.614602 | 1,574 | 9,341 | 3.312579 | 0.141677 | 0.05677 | 0.051784 | 0.031646 | 0.553893 | 0.485807 | 0.427119 | 0.368239 | 0.302455 | 0.27618 | 0 | 0.040524 | 0.215395 | 9,341 | 373 | 137 | 25.042895 | 0.670896 | 0.801306 | 0 | 0 | 0 | 0 | 0.02672 | 0.024048 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.233333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9e34fdb2869c831617944ff6672a306676052de | 1,577 | py | Python | PyTkGui/widgets/layouts.py | eseunghwan/PyTkGui | 1a36654780d8ae9561d371821d7eceb6ad0a42da | [
"MIT"
] | 1 | 2022-02-09T21:35:58.000Z | 2022-02-09T21:35:58.000Z | PyTkGui/widgets/layouts.py | eseunghwan/PyTkGui | 1a36654780d8ae9561d371821d7eceb6ad0a42da | [
"MIT"
] | null | null | null | PyTkGui/widgets/layouts.py | eseunghwan/PyTkGui | 1a36654780d8ae9561d371821d7eceb6ad0a42da | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from tkinter import ttk
from ._base import Base
class RowLayout(Base):
def __init__(self, master, **options):
super().__init__(ttk.Frame, master, **options)
def render_children(self):
super().render_children()
for child in self.children:
child.pack... | 30.921569 | 99 | 0.619531 | 190 | 1,577 | 4.857895 | 0.284211 | 0.097508 | 0.173348 | 0.065005 | 0.665222 | 0.617551 | 0.617551 | 0.617551 | 0.520043 | 0.476706 | 0 | 0.003325 | 0.237159 | 1,577 | 50 | 100 | 31.54 | 0.763924 | 0.013316 | 0 | 0.5 | 0 | 0 | 0.061776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.058824 | 0 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f9e428621771dea9b6f81ef494c4d0ef98435253 | 22,412 | py | Python | xga/utils.py | DavidT3/XGA | cde51c3f29f98b5f1e981fb6d327c04072b0ba38 | [
"BSD-3-Clause"
] | 12 | 2020-05-16T09:45:45.000Z | 2022-02-14T14:41:46.000Z | xga/utils.py | DavidT3/XGA | cde51c3f29f98b5f1e981fb6d327c04072b0ba38 | [
"BSD-3-Clause"
] | 684 | 2020-05-28T08:52:09.000Z | 2022-03-31T10:56:24.000Z | xga/utils.py | DavidT3/XGA | cde51c3f29f98b5f1e981fb6d327c04072b0ba38 | [
"BSD-3-Clause"
] | 2 | 2022-02-04T10:55:55.000Z | 2022-02-04T11:30:56.000Z | # This code is a part of XMM: Generate and Analyse (XGA), a module designed for the XMM Cluster Survey (XCS).
# Last modified by David J Turner (david.turner@sussex.ac.uk) 15/06/2021, 14:04. Copyright (c) David J Turner
import json
import os
import shutil
from configparser import ConfigParser
from subprocess import ... | 52.12093 | 118 | 0.661074 | 3,328 | 22,412 | 4.286659 | 0.217548 | 0.01472 | 0.012617 | 0.018926 | 0.211061 | 0.172999 | 0.142086 | 0.103252 | 0.088813 | 0.067503 | 0 | 0.009172 | 0.231349 | 22,412 | 429 | 119 | 52.242424 | 0.818947 | 0.328797 | 0 | 0.108 | 1 | 0 | 0.262129 | 0.084579 | 0 | 0 | 0 | 0.004662 | 0 | 1 | 0.024 | false | 0.004 | 0.068 | 0 | 0.112 | 0 | 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 |
f9e68108b13ac31afcc9ea61702a70a9ac987090 | 159 | py | Python | ABC/B/0210.py | taro-masuda/AtCoder | e8cb050260c1dff4ef61a27d1a3a2a8029fc939a | [
"MIT"
] | null | null | null | ABC/B/0210.py | taro-masuda/AtCoder | e8cb050260c1dff4ef61a27d1a3a2a8029fc939a | [
"MIT"
] | null | null | null | ABC/B/0210.py | taro-masuda/AtCoder | e8cb050260c1dff4ef61a27d1a3a2a8029fc939a | [
"MIT"
] | null | null | null | N = int(input())
S = str(input())
for i,c in enumerate(S):
if c == '1':
if i % 2 == 0:
print('Takahashi')
else:
print('Aoki')
break
| 14.454545 | 24 | 0.477987 | 25 | 159 | 3.04 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.320755 | 159 | 10 | 25 | 15.9 | 0.675926 | 0 | 0 | 0 | 0 | 0 | 0.08805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dda3c7a702789b70dd4a3e96dc40448b6b989a6d | 222 | py | Python | libdouya/definations/__init__.py | xmyeen/douya | d2f7c15ca2e049a8dad9d4deaeba73401c883860 | [
"MIT"
] | null | null | null | libdouya/definations/__init__.py | xmyeen/douya | d2f7c15ca2e049a8dad9d4deaeba73401c883860 | [
"MIT"
] | null | null | null | libdouya/definations/__init__.py | xmyeen/douya | d2f7c15ca2e049a8dad9d4deaeba73401c883860 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
#!/usr/bin/env Python
import enum
@enum.unique
class DyUrlDefs(enum.Enum):
CONF = 'conf'
def yes(self, url_str:str) -> bool:
return url_str.startswith(f'{self.value}://') | 20.181818 | 53 | 0.594595 | 31 | 222 | 4.193548 | 0.741935 | 0.123077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.220721 | 222 | 11 | 53 | 20.181818 | 0.745665 | 0.18018 | 0 | 0 | 0 | 0 | 0.111765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
ddac43722be0f6299735bf6a6db8ce4d6e90b1a8 | 5,328 | py | Python | user_test.py | annstella/PasswordLocker | 34b0d91948cff9d5938f28884cd71394a2b4b355 | [
"MIT"
] | null | null | null | user_test.py | annstella/PasswordLocker | 34b0d91948cff9d5938f28884cd71394a2b4b355 | [
"MIT"
] | null | null | null | user_test.py | annstella/PasswordLocker | 34b0d91948cff9d5938f28884cd71394a2b4b355 | [
"MIT"
] | null | null | null | import unittest
# import pyperclip
from user import User , Credent
class TestUser(unittest.TestCase):
'''
Test class that defines test cases for the user class behaviours.
Args:
unttest.TestCase: TestCase class that helps in creating test cases
'''
def setUp(self):
"""
Set ... | 30.976744 | 112 | 0.634384 | 672 | 5,328 | 4.837798 | 0.150298 | 0.038757 | 0.033836 | 0.033836 | 0.658874 | 0.595201 | 0.550907 | 0.510305 | 0.491233 | 0.453707 | 0 | 0.003071 | 0.266704 | 5,328 | 171 | 113 | 31.157895 | 0.829025 | 0.284159 | 0 | 0.450704 | 0 | 0 | 0.104731 | 0.016067 | 0 | 0 | 0 | 0 | 0.225352 | 1 | 0.239437 | false | 0.014085 | 0.028169 | 0 | 0.295775 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ddb3901b7b034d752b19149b04d942d96f1a702a | 3,576 | py | Python | app/api/calendar.py | kalxed/FCS-ClubHub | 656cfe171c81471884cda8b4312bb31ed9812592 | [
"MIT"
] | 1 | 2021-11-23T03:33:35.000Z | 2021-11-23T03:33:35.000Z | app/api/calendar.py | kalxed/FCS-ClubHub | 656cfe171c81471884cda8b4312bb31ed9812592 | [
"MIT"
] | 5 | 2021-11-25T03:41:50.000Z | 2021-12-07T13:55:41.000Z | app/api/calendar.py | kalxed/FCS-ClubHub | 656cfe171c81471884cda8b4312bb31ed9812592 | [
"MIT"
] | 12 | 2021-11-08T16:04:28.000Z | 2022-01-31T15:42:54.000Z | from app.models.dbutils import load_club
import calendar
from datetime import datetime
from icalendar import Event
from icalevents import icalparser
import jicson
import json
from flask import abort, Blueprint, request
from flask_login import login_required
mod = Blueprint('calendar', __name__, url_prefix='/api/calend... | 40.636364 | 106 | 0.636465 | 502 | 3,576 | 4.420319 | 0.306773 | 0.082019 | 0.069401 | 0.094637 | 0.264083 | 0.246958 | 0.17215 | 0.06219 | 0.038756 | 0.038756 | 0 | 0.018121 | 0.243848 | 3,576 | 87 | 107 | 41.103448 | 0.802515 | 0.200503 | 0 | 0.142857 | 0 | 0.015873 | 0.148187 | 0.095741 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.047619 | false | 0 | 0.142857 | 0 | 0.301587 | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ddc1e236c4c2f57e18915161822fa8e110da3989 | 5,731 | py | Python | jsl/javascriptlint/jsl.py | thodges314/angular2 | 8600ef4193e5f6d84f391bfd29008653c7ffab38 | [
"MIT"
] | null | null | null | jsl/javascriptlint/jsl.py | thodges314/angular2 | 8600ef4193e5f6d84f391bfd29008653c7ffab38 | [
"MIT"
] | null | null | null | jsl/javascriptlint/jsl.py | thodges314/angular2 | 8600ef4193e5f6d84f391bfd29008653c7ffab38 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# vim: ts=4 sw=4 expandtab
import fnmatch
import functools
import os
import sys
import unittest
from optparse import OptionParser
import conf
import fs
import htmlparse
import jsparse
import jsengine.parser
import lint
import util
import version
_lint_results = {
'warning': 0,
'errors': 0
}
... | 33.127168 | 84 | 0.640377 | 693 | 5,731 | 5.161616 | 0.292929 | 0.036902 | 0.025161 | 0.036902 | 0.142578 | 0.130277 | 0.032709 | 0 | 0 | 0 | 0 | 0.003864 | 0.232246 | 5,731 | 172 | 85 | 33.319767 | 0.809091 | 0.035421 | 0 | 0.062937 | 0 | 0 | 0.183448 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0 | null | null | 0 | 0.118881 | null | null | 0.118881 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ddc60a0efc37b945723eb51ac6f3bb9599386f46 | 3,165 | py | Python | examples/FlappyBirdy.py | mayifei35/PLE | 4c01c5484d5133a20e685a83a4499530f7987bbf | [
"MIT"
] | null | null | null | examples/FlappyBirdy.py | mayifei35/PLE | 4c01c5484d5133a20e685a83a4499530f7987bbf | [
"MIT"
] | null | null | null | examples/FlappyBirdy.py | mayifei35/PLE | 4c01c5484d5133a20e685a83a4499530f7987bbf | [
"MIT"
] | null | null | null | import time
import numpy as np
import sys
import csv
import pygame
from ple.games.flappybird import FlappyBird
from ple import PLE
#from ple.games.flappybird._init_ import self.player.height
game = FlappyBird()
nb_frames = 45000
counter = 0
previousState = None
num = 0
top_y = 0
bottom_y = 0
rfile= open('recordy111.... | 24.726563 | 120 | 0.657504 | 425 | 3,165 | 4.625882 | 0.247059 | 0.081384 | 0.052899 | 0.042726 | 0.33825 | 0.219227 | 0.206511 | 0.164293 | 0.164293 | 0.07884 | 0 | 0.024217 | 0.243286 | 3,165 | 127 | 121 | 24.92126 | 0.79666 | 0.044234 | 0 | 0.27957 | 0 | 0 | 0.092066 | 0.041513 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075269 | 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 |
ddd1f926bd92abf459cfd3c05614f83719274535 | 2,996 | py | Python | climatescrape/main.py | dankovacek/dkhydrotech | 8d218d90c4dd30ca37cceeba66dff2e73e5593bd | [
"Apache-2.0"
] | null | null | null | climatescrape/main.py | dankovacek/dkhydrotech | 8d218d90c4dd30ca37cceeba66dff2e73e5593bd | [
"Apache-2.0"
] | 23 | 2019-12-14T05:59:20.000Z | 2022-01-15T16:20:56.000Z | climatescrape/main.py | dankovacek/dkhydrotech | 8d218d90c4dd30ca37cceeba66dff2e73e5593bd | [
"Apache-2.0"
] | null | null | null | import os
import numpy as np
import pandas as pd
import math
import os
import sys
import time
import utm
from helper_functions import load_data
import logging
logging.config.fileConfig(os.path.join(LOGGING_DIR, 'logging.conf'))
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
BASE_DIR =... | 32.923077 | 126 | 0.634513 | 431 | 2,996 | 4.164733 | 0.357309 | 0.038997 | 0.046797 | 0.023398 | 0.07688 | 0.053482 | 0.031198 | 0 | 0 | 0 | 0 | 0.013956 | 0.234646 | 2,996 | 90 | 127 | 33.288889 | 0.768862 | 0.128838 | 0 | 0.035088 | 0 | 0.017544 | 0.17794 | 0.040354 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.175439 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ddd32538a90c1268c2bbf09914973c9b50f77a60 | 908 | py | Python | algospot/lec6_ES/[cutz]Z.py | cutz-j/AlgorithmStudy | de0f81220e29bd5e109d174800f507b12a3bee36 | [
"MIT"
] | 3 | 2019-11-26T14:31:01.000Z | 2020-01-10T18:19:46.000Z | algospot/lec6_ES/[cutz]Z.py | cutz-j/AlgorithmStudy | de0f81220e29bd5e109d174800f507b12a3bee36 | [
"MIT"
] | null | null | null | algospot/lec6_ES/[cutz]Z.py | cutz-j/AlgorithmStudy | de0f81220e29bd5e109d174800f507b12a3bee36 | [
"MIT"
] | null | null | null | import sys
# 1,2,3,4분면의 차이
def Z(size, y, x):
global cnt
if size == 2: # 최소 단위 basis
if y==r and x==c: # 왼쪽 상단
print(cnt)
return
cnt += 1
if y==r and x+1==c: # 우측 상단
print(cnt)
return
cnt += 1
if y+1=... | 17.803922 | 43 | 0.382159 | 144 | 908 | 2.409722 | 0.354167 | 0.115274 | 0.057637 | 0.195965 | 0.472622 | 0.403458 | 0.302594 | 0.227666 | 0.15562 | 0.15562 | 0 | 0.069815 | 0.463656 | 908 | 51 | 44 | 17.803922 | 0.64271 | 0.171806 | 0 | 0.448276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.034483 | 0 | 0.241379 | 0.137931 | 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 |
dddfa07800520e083a6ffc790e967c0209e8b3a6 | 727 | py | Python | LabsDone/lab_diceroll72.py | jeremyprice/PythonForDevs | 5ec2690aedbaa6243cd4e251e9d31ff696ca0a82 | [
"MIT"
] | 2 | 2016-02-09T15:18:20.000Z | 2016-11-04T10:25:41.000Z | LabsDone/lab_diceroll72.py | jeremyprice/PythonForDevs | 5ec2690aedbaa6243cd4e251e9d31ff696ca0a82 | [
"MIT"
] | null | null | null | LabsDone/lab_diceroll72.py | jeremyprice/PythonForDevs | 5ec2690aedbaa6243cd4e251e9d31ff696ca0a82 | [
"MIT"
] | 3 | 2016-02-09T15:19:18.000Z | 2019-03-08T23:32:51.000Z | """
This program simulates the rolling of a pair of dice a predetermined
number of times. It counts the number of 2's and the number of 7's
rolled. Then it calculates the percetage of rolls that were 7's or 2's
respectively. It prints the results formatted to one decimal place.
"""
from random import randran... | 29.08 | 72 | 0.650619 | 117 | 727 | 4.042735 | 0.487179 | 0.05074 | 0.046512 | 0.067653 | 0.118393 | 0.118393 | 0.118393 | 0 | 0 | 0 | 0 | 0.061453 | 0.261348 | 727 | 24 | 73 | 30.291667 | 0.819367 | 0 | 0 | 0 | 0 | 0 | 0.203349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dde0cbb9e1e308a01c593a9a0626a03170b12be3 | 1,913 | py | Python | sentry_s3_nodestore/backend.py | mvantellingen/sentry-s3-nodestore | ce8cf728cff98901e9791faa6297ebf979e00c5c | [
"BSD-3-Clause"
] | null | null | null | sentry_s3_nodestore/backend.py | mvantellingen/sentry-s3-nodestore | ce8cf728cff98901e9791faa6297ebf979e00c5c | [
"BSD-3-Clause"
] | null | null | null | sentry_s3_nodestore/backend.py | mvantellingen/sentry-s3-nodestore | ce8cf728cff98901e9791faa6297ebf979e00c5c | [
"BSD-3-Clause"
] | 1 | 2021-02-06T03:31:37.000Z | 2021-02-06T03:31:37.000Z | """
sentry_s3_nodestore.backend
~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2015 by Ernest W. Durbin III.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
import simplejson
from base64 import urlsafe_b64encode
from time import sleep
from uuid import uuid4
import boto3
from sentry.n... | 25.851351 | 99 | 0.605855 | 235 | 1,913 | 4.782979 | 0.429787 | 0.062278 | 0.074733 | 0.071174 | 0.134342 | 0.134342 | 0.08274 | 0 | 0 | 0 | 0 | 0.018349 | 0.259279 | 1,913 | 73 | 100 | 26.205479 | 0.774877 | 0.20805 | 0 | 0.058824 | 0 | 0 | 0.018077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.205882 | 0.029412 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ddefb743cd442d59c3f9d2e8f18e0efd01734ebd | 1,791 | py | Python | modulo2/newton_nolinear.py | lbittencourt/Numbiosis | 96ece659d49012c5198796cee122b219cd55d4b4 | [
"MIT"
] | null | null | null | modulo2/newton_nolinear.py | lbittencourt/Numbiosis | 96ece659d49012c5198796cee122b219cd55d4b4 | [
"MIT"
] | 2 | 2018-08-20T02:37:44.000Z | 2019-08-15T16:03:15.000Z | modulo2/newton_nolinear.py | lbittencourt/numbiosis | 96ece659d49012c5198796cee122b219cd55d4b4 | [
"MIT"
] | null | null | null | import numpy as np
import sympy as sp
def jacobianMatrix(func1, func2, points):
res = np.zeros((2,2))
x = sp.Symbol('x')
y = sp.Symbol('y')
dx11 = sp.diff(func1,x)
dx12 = sp.diff(func1,y)
dx21 = sp.diff(func1,x)
dx22 = sp.diff(func2,y)
jx11 = lambda x, y : eval(str(dx11))
jx12 = lambda x, y : eval(str(dx12)... | 26.338235 | 86 | 0.595757 | 282 | 1,791 | 3.780142 | 0.312057 | 0.013133 | 0.045028 | 0.067542 | 0.30863 | 0.208255 | 0.135084 | 0 | 0 | 0 | 0 | 0.066474 | 0.227247 | 1,791 | 67 | 87 | 26.731343 | 0.703757 | 0 | 0 | 0 | 0 | 0 | 0.028391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042553 | 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 |
ddf314fbf487c95c697c011827ba62e3e4215e0e | 8,044 | py | Python | tournament.py | OliviaSalonga/P2resubmit | 1f891a1caab21770c8ae48068c52508bb1325026 | [
"FSFAP"
] | null | null | null | tournament.py | OliviaSalonga/P2resubmit | 1f891a1caab21770c8ae48068c52508bb1325026 | [
"FSFAP"
] | null | null | null | tournament.py | OliviaSalonga/P2resubmit | 1f891a1caab21770c8ae48068c52508bb1325026 | [
"FSFAP"
] | null | null | null | #!/usr/bin/env python
#
# tournament.py -- implementation of a Swiss-system tournament
#
import psycopg2
conn = psycopg2.connect("dbname='tournament'")
cur = conn.cursor()
def commit():
"""Permanently post all changes to the database.
"""
conn.commit()
def closeConnect():
"""Close cursor & connecti... | 34.229787 | 169 | 0.70189 | 1,067 | 8,044 | 5.226804 | 0.194002 | 0.094675 | 0.020082 | 0.023848 | 0.377622 | 0.324189 | 0.292989 | 0.24099 | 0.229335 | 0.21499 | 0 | 0.004247 | 0.209597 | 8,044 | 234 | 170 | 34.376068 | 0.872916 | 0.010194 | 0 | 0.207547 | 0 | 0.009434 | 0.317794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009434 | 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 |
ddf4488ffbc79bfe7cbc75692158e03c7f4f0141 | 900 | py | Python | ezmidi/conanfile.py | matthewcpp/conan-recipes | 3c64107bf943d576642e3c435be105eee7cb3d27 | [
"MIT"
] | null | null | null | ezmidi/conanfile.py | matthewcpp/conan-recipes | 3c64107bf943d576642e3c435be105eee7cb3d27 | [
"MIT"
] | null | null | null | ezmidi/conanfile.py | matthewcpp/conan-recipes | 3c64107bf943d576642e3c435be105eee7cb3d27 | [
"MIT"
] | null | null | null | from conans import ConanFile, CMake, tools
class EzaudioConan(ConanFile):
name = "ezmidi"
version = "565114c"
license = "MIT"
url = "https://github.com/matthewcpp/ezmidi"
description = "https://github.com/matthewcpp/ezmidi"
topics = ("midi", "windowsmm", "coreaudio", "alsa")
no_copy_source... | 31.034483 | 83 | 0.658889 | 104 | 900 | 5.586538 | 0.557692 | 0.056799 | 0.072289 | 0.123924 | 0.154905 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042996 | 0.198889 | 900 | 28 | 84 | 32.142857 | 0.762829 | 0 | 0 | 0 | 0 | 0 | 0.344098 | 0.083519 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.047619 | 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 |
ddf574b5679779083ddcada76536ed571f1b06ee | 846 | py | Python | scraper/storage_spiders/monacovn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scraper/storage_spiders/monacovn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scraper/storage_spiders/monacovn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 3 | 2018-08-05T14:54:25.000Z | 2021-06-07T01:49:59.000Z | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//p[@class='mota']/span",
'price' : "//div[@id='banggia']/table//tr/td[5]/span",
'category' : "",
'description' : "//div[@clas... | 31.333333 | 76 | 0.630024 | 98 | 846 | 5.316327 | 0.663265 | 0.046065 | 0.084453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004161 | 0.147754 | 846 | 26 | 77 | 32.538462 | 0.718447 | 0.141844 | 0 | 0 | 1 | 0 | 0.39834 | 0.172891 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ddfab3a4e871adb0d0b359975fdc0a601613a91d | 3,317 | py | Python | dirigible/sheet/cell.py | EnoX1/dirigible-spreadsheet | 9a3289c67a93c40190565ad5a555710c50c5f958 | [
"MIT"
] | 168 | 2015-01-03T02:09:30.000Z | 2022-03-31T22:28:00.000Z | dirigible/sheet/cell.py | EnoX1/dirigible-spreadsheet | 9a3289c67a93c40190565ad5a555710c50c5f958 | [
"MIT"
] | 4 | 2017-03-14T20:49:49.000Z | 2020-04-02T16:13:00.000Z | dirigible/sheet/cell.py | EnoX1/dirigible-spreadsheet | 9a3289c67a93c40190565ad5a555710c50c5f958 | [
"MIT"
] | 46 | 2015-01-18T04:39:24.000Z | 2022-02-17T22:33:05.000Z | # Copyright (c) 2010 Resolver Systems Ltd, PythonAnywhere LLP
# See LICENSE.md
#
from .formula_interpreter import (
get_dependencies_from_parse_tree,
get_python_formula_from_parse_tree
)
from .parser import FormulaError, parser
class Undefined(object):
def __repr__(self):
return "<undef... | 27.188525 | 93 | 0.612903 | 377 | 3,317 | 5.037135 | 0.172414 | 0.117957 | 0.053712 | 0.022117 | 0.223275 | 0.133755 | 0.103212 | 0.090574 | 0.040021 | 0 | 0 | 0.001721 | 0.299367 | 3,317 | 121 | 94 | 27.413223 | 0.815404 | 0.022309 | 0 | 0.240964 | 0 | 0 | 0.06607 | 0.014511 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.024096 | 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 |
ddfe9d21fe7ba4f9dbd59375501c6953ec200fa1 | 5,537 | py | Python | metadefender_menlo/api/models/file_analysis_response.py | OPSWAT/metadefender-menlo-integration | 2687d1b08e4cc2610dd4d871402a126d8e5fa59e | [
"MIT"
] | null | null | null | metadefender_menlo/api/models/file_analysis_response.py | OPSWAT/metadefender-menlo-integration | 2687d1b08e4cc2610dd4d871402a126d8e5fa59e | [
"MIT"
] | 1 | 2022-03-08T03:39:10.000Z | 2022-03-08T03:39:10.000Z | metadefender_menlo/api/models/file_analysis_response.py | OPSWAT/metadefender-menlo-integration | 2687d1b08e4cc2610dd4d871402a126d8e5fa59e | [
"MIT"
] | 5 | 2021-02-10T11:38:26.000Z | 2021-09-17T07:07:42.000Z | # coding: utf-8
from datetime import date, datetime
from typing import List, Dict
from metadefender_menlo.api.models.base_model import Model
from metadefender_menlo.api import util
class FileAnalysisResponse(Model):
def __init__(self, result=None, outcome=None, report_url=None, filename=None, modifications=... | 29.768817 | 104 | 0.616941 | 583 | 5,537 | 5.765009 | 0.169811 | 0.046415 | 0.201131 | 0.089259 | 0.572449 | 0.523654 | 0.520083 | 0.456412 | 0.456412 | 0.392145 | 0 | 0.001824 | 0.307025 | 5,537 | 185 | 105 | 29.92973 | 0.87412 | 0.433448 | 0 | 0.236111 | 0 | 0 | 0.133028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.055556 | 0 | 0.319444 | 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 |
fb020710fd589c14c72f4506af8f991cc9ac19d0 | 7,297 | py | Python | pysnmp-with-texts/PDN-VLAN-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/PDN-VLAN-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/PDN-VLAN-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 PDN-VLAN-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/PDN-VLAN-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:39:52 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019,... | 119.622951 | 766 | 0.76922 | 882 | 7,297 | 6.35941 | 0.272109 | 0.006775 | 0.009093 | 0.012123 | 0.344446 | 0.237297 | 0.202532 | 0.189695 | 0.189695 | 0.173293 | 0 | 0.073402 | 0.10196 | 7,297 | 60 | 767 | 121.616667 | 0.782542 | 0.04358 | 0 | 0.098039 | 0 | 0.058824 | 0.318221 | 0.033716 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.156863 | 0 | 0.156863 | 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 |
fb0280379d7d43a70f85941fdd3a5ea06b0774a3 | 570 | py | Python | exercicios/ex031.py | renaisaalves/Python-CursoemVideo | ffb7b2cb95ae6ff5a4f2266e5c3ed2fc33951808 | [
"MIT"
] | null | null | null | exercicios/ex031.py | renaisaalves/Python-CursoemVideo | ffb7b2cb95ae6ff5a4f2266e5c3ed2fc33951808 | [
"MIT"
] | null | null | null | exercicios/ex031.py | renaisaalves/Python-CursoemVideo | ffb7b2cb95ae6ff5a4f2266e5c3ed2fc33951808 | [
"MIT"
] | null | null | null | #ex31: Desenvolva um programa que pergunte a distância de uma viagem em Km. Calcule o preço da passagem, cobrando R$0,50 por Km para viagens de até 200Km e R$0,45 parta viagens mais longas.
distancia = float(input('Qual é a distância da viagem? '))
preco200km = 0.50 * distancia
if distancia <= 200:
print('O preço... | 57 | 189 | 0.705263 | 97 | 570 | 4.14433 | 0.484536 | 0.067164 | 0.059701 | 0.119403 | 0.293532 | 0.293532 | 0.293532 | 0.293532 | 0.293532 | 0.293532 | 0 | 0.059957 | 0.180702 | 570 | 10 | 190 | 57 | 0.800857 | 0.329825 | 0 | 0 | 0 | 0 | 0.439791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fb05eb56fb5b3da04d9a2e9e6018ec3369ae0059 | 784 | py | Python | FusionIIIT/applications/ps1/migrations/0005_auto_20210425_1000.py | varshithkumar346/Fusion | f7262d246b364a1f59a19caa91ee1734dd21aaab | [
"bzip2-1.0.6"
] | null | null | null | FusionIIIT/applications/ps1/migrations/0005_auto_20210425_1000.py | varshithkumar346/Fusion | f7262d246b364a1f59a19caa91ee1734dd21aaab | [
"bzip2-1.0.6"
] | null | null | null | FusionIIIT/applications/ps1/migrations/0005_auto_20210425_1000.py | varshithkumar346/Fusion | f7262d246b364a1f59a19caa91ee1734dd21aaab | [
"bzip2-1.0.6"
] | 3 | 2021-04-19T14:26:01.000Z | 2021-04-22T13:34:48.000Z | # Generated by Django 3.1.5 on 2021-04-25 10:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('globals', '0003_auto_20191024_1242'),
('ps1', '0004_auto_20210421_2305'),
]
operations = [
migratio... | 30.153846 | 140 | 0.644133 | 87 | 784 | 5.643678 | 0.597701 | 0.065173 | 0.08554 | 0.13442 | 0.325866 | 0.325866 | 0.150713 | 0 | 0 | 0 | 0 | 0.081667 | 0.234694 | 784 | 25 | 141 | 31.36 | 0.736667 | 0.057398 | 0 | 0.315789 | 1 | 0 | 0.181818 | 0.062415 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 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 |
fb06731b19f0ba8430c5db45c5ca4b7a0f5fb57e | 14,348 | py | Python | studio/feature_comment_handle/rule_engine_features.py | diudiu/featurefactory | ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e | [
"MIT"
] | null | null | null | studio/feature_comment_handle/rule_engine_features.py | diudiu/featurefactory | ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e | [
"MIT"
] | null | null | null | studio/feature_comment_handle/rule_engine_features.py | diudiu/featurefactory | ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
config = dict(
age_config={
"feature_name": "age",
"feature_data_type": "int",
"default_value": "PositiveSignedTypeDefault",
"json_path_list": [("age", "$..content.age", "f_assert_not_null->f_assert_must_digit_or_float")],
"f_map_and_filter_chain": "m... | 42.076246 | 122 | 0.626638 | 1,721 | 14,348 | 4.579895 | 0.08774 | 0.061279 | 0.085258 | 0.120782 | 0.757168 | 0.695255 | 0.685993 | 0.65732 | 0.600609 | 0.577899 | 0 | 0.004683 | 0.226025 | 14,348 | 340 | 123 | 42.2 | 0.705088 | 0.001464 | 0 | 0.511401 | 0 | 0 | 0.612077 | 0.387923 | 0 | 0 | 0 | 0 | 0.140065 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fb0fe2fef7c1104f99576a4ad1aa02b4575f221d | 675 | py | Python | SoftUni Exercices/caesarcypher.py | BuragaIonut/SoftUni | 542bcaca00ac5d23e3edd227c7a127c6040ff848 | [
"MIT"
] | 2 | 2021-04-06T06:31:21.000Z | 2021-04-29T14:11:24.000Z | SoftUni Exercices/caesarcypher.py | BuragaIonut/SoftUni | 542bcaca00ac5d23e3edd227c7a127c6040ff848 | [
"MIT"
] | null | null | null | SoftUni Exercices/caesarcypher.py | BuragaIonut/SoftUni | 542bcaca00ac5d23e3edd227c7a127c6040ff848 | [
"MIT"
] | null | null | null |
students = []
second_grades = []
for _ in range(int(input())):
name = input()
score = float(input())
student = []
student.append(name)
student.append(score)
students.append(student)
my_min = float('Inf')
for student in students:
if student[1] <= my_min:
my_min = student[1]
for stude... | 23.275862 | 40 | 0.64 | 95 | 675 | 4.410526 | 0.242105 | 0.095465 | 0.114558 | 0.190931 | 0.491647 | 0.491647 | 0.491647 | 0.491647 | 0.491647 | 0.491647 | 0 | 0.01341 | 0.226667 | 675 | 28 | 41 | 24.107143 | 0.789272 | 0.022222 | 0 | 0.461538 | 0 | 0 | 0.009132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.038462 | 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 |
fb1a5cc43bc8dbe8d8988539712219bf09fd73a5 | 3,666 | py | Python | src/Dialogs/SettingsDialog.py | Lovely-XPP/tkzgeom | bf68e139dc05f759542d6611f4dc07f4f2727b92 | [
"MIT"
] | 41 | 2021-11-24T05:54:08.000Z | 2022-03-26T10:19:30.000Z | src/Dialogs/SettingsDialog.py | Lovely-XPP/tkzgeom | bf68e139dc05f759542d6611f4dc07f4f2727b92 | [
"MIT"
] | 1 | 2022-02-28T04:34:51.000Z | 2022-03-07T10:49:27.000Z | src/Dialogs/SettingsDialog.py | Lovely-XPP/tkzgeom | bf68e139dc05f759542d6611f4dc07f4f2727b92 | [
"MIT"
] | 10 | 2021-11-24T07:35:17.000Z | 2022-03-25T18:42:14.000Z | from PyQt5 import QtWidgets, uic
from SyntaxHighlight import syntax_highlight
from CanvasRendering import clear, add_all_items
class SettingsDialog(QtWidgets.QDialog):
def __init__(self, scene):
"""Construct SettingsDialog."""
super(SettingsDialog, self).__init__()
self.ui = uic.loadUi('se... | 45.259259 | 109 | 0.713312 | 478 | 3,666 | 5.238494 | 0.182008 | 0.14377 | 0.059904 | 0.040735 | 0.53754 | 0.408546 | 0.308307 | 0.281949 | 0.268371 | 0.268371 | 0 | 0.008994 | 0.181124 | 3,666 | 80 | 110 | 45.825 | 0.825117 | 0.082651 | 0 | 0.258621 | 0 | 0 | 0.006295 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.155172 | false | 0 | 0.051724 | 0 | 0.224138 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
fb22c2f77d95e282120b4226dc54590ebcbc4b3c | 723 | py | Python | geo/migrations/0007_state.py | millerhooks/shipwell | 2dcd728f5701a601c2bba9e1cac2d22ca3042c12 | [
"MIT"
] | null | null | null | geo/migrations/0007_state.py | millerhooks/shipwell | 2dcd728f5701a601c2bba9e1cac2d22ca3042c12 | [
"MIT"
] | null | null | null | geo/migrations/0007_state.py | millerhooks/shipwell | 2dcd728f5701a601c2bba9e1cac2d22ca3042c12 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.13 on 2021-08-19 14:24
import django.contrib.gis.db.models.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('geo', '0006_auto_20210819_1342'),
]
operations = [
migrations.CreateModel(
name='Sta... | 30.125 | 114 | 0.603043 | 80 | 723 | 5.3375 | 0.7 | 0.06089 | 0.074941 | 0.084309 | 0.140515 | 0.140515 | 0 | 0 | 0 | 0 | 0 | 0.076779 | 0.261411 | 723 | 23 | 115 | 31.434783 | 0.722846 | 0.063624 | 0 | 0 | 1 | 0 | 0.075556 | 0.034074 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fb2751bb19594d3d69820428ca00c5e65346a881 | 1,641 | py | Python | blogs/users/views.py | dheeraj198/Social-Blog | 79162156621a519255b7d584a950df8689e08202 | [
"MIT"
] | null | null | null | blogs/users/views.py | dheeraj198/Social-Blog | 79162156621a519255b7d584a950df8689e08202 | [
"MIT"
] | null | null | null | blogs/users/views.py | dheeraj198/Social-Blog | 79162156621a519255b7d584a950df8689e08202 | [
"MIT"
] | null | null | null | from flask import render_template, url_for, flash, redirect, request, Blueprint
from flask_login import login_user, current_user, logout_user, login_required
from blogs import db
from werkzeug.security import generate_password_hash,check_password_hash
from blogs.models import User, BlogPost
from blogs.users.forms impor... | 30.388889 | 79 | 0.66362 | 205 | 1,641 | 5.160976 | 0.37561 | 0.022684 | 0.026465 | 0.032136 | 0.098299 | 0.056711 | 0.056711 | 0 | 0 | 0 | 0 | 0.00078 | 0.218769 | 1,641 | 53 | 80 | 30.962264 | 0.824493 | 0 | 0 | 0.054054 | 0 | 0 | 0.100548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0.081081 | 0.189189 | 0 | 0.405405 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fb28de4b7f85c912aacf8b65356fe5a73661a34f | 12,498 | py | Python | dm/nat.py | DentonGentry/gfiber-catawampus | b01e4444f3c7f12b1af7837203b37060fd443bb7 | [
"Apache-2.0"
] | 2 | 2017-10-03T16:06:29.000Z | 2020-09-08T13:03:13.000Z | dm/nat.py | DentonGentry/gfiber-catawampus | b01e4444f3c7f12b1af7837203b37060fd443bb7 | [
"Apache-2.0"
] | null | null | null | dm/nat.py | DentonGentry/gfiber-catawampus | b01e4444f3c7f12b1af7837203b37060fd443bb7 | [
"Apache-2.0"
] | 1 | 2017-05-07T17:39:02.000Z | 2017-05-07T17:39:02.000Z | #!/usr/bin/python
# 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 appli... | 31.801527 | 77 | 0.69059 | 1,566 | 12,498 | 5.430396 | 0.240741 | 0.014817 | 0.019755 | 0.0127 | 0.274694 | 0.240475 | 0.211665 | 0.20508 | 0.177799 | 0.161101 | 0 | 0.015952 | 0.207473 | 12,498 | 392 | 78 | 31.882653 | 0.842605 | 0.059049 | 0 | 0.264822 | 0 | 0 | 0.053615 | 0.006964 | 0 | 0 | 0 | 0.002551 | 0 | 0 | null | null | 0 | 0.039526 | null | null | 0.011858 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fb36a5575acd3309ce2ca48de6b01dbfdf7112f8 | 6,041 | py | Python | TestUnits/Test_src/Test_DroneVision/Test_DroneVision_src/Test_imgProcessing/Test_Heading/Test_Heading.py | swipswaps/Wind-Blade-Inspection | 24613b9f2fbab224ffd3bbfc1082aa1547c19779 | [
"MIT"
] | null | null | null | TestUnits/Test_src/Test_DroneVision/Test_DroneVision_src/Test_imgProcessing/Test_Heading/Test_Heading.py | swipswaps/Wind-Blade-Inspection | 24613b9f2fbab224ffd3bbfc1082aa1547c19779 | [
"MIT"
] | null | null | null | TestUnits/Test_src/Test_DroneVision/Test_DroneVision_src/Test_imgProcessing/Test_Heading/Test_Heading.py | swipswaps/Wind-Blade-Inspection | 24613b9f2fbab224ffd3bbfc1082aa1547c19779 | [
"MIT"
] | null | null | null | '''
Author: Hans Erik Heggem
Email: hans.erik.heggem@gmail.com
Project: Master's Thesis - Autonomous Inspection Of Wind Blades
Repository: Master's Thesis - CV (Computer Vision)
'''
################### UNIT TEST ########################
import unittest
from Settings.TestData import TestData
from TestUnits.Test_ma... | 41.095238 | 231 | 0.738123 | 779 | 6,041 | 5.483954 | 0.261874 | 0.020599 | 0.041199 | 0.043071 | 0.362125 | 0.281133 | 0.224017 | 0.208567 | 0.191713 | 0.191713 | 0 | 0.002678 | 0.134746 | 6,041 | 147 | 232 | 41.095238 | 0.814616 | 0.041053 | 0 | 0.285714 | 0 | 0.010989 | 0.155488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010989 | 0.10989 | null | null | 0.164835 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fb36b85f5e5eaee581e10dd07c8c4edd884764eb | 17,111 | py | Python | client_handler.py | House-of-IoT/HOI-GeneralServer | 12e621a1332e989b0bf4c8cb053ef46c8c0cf458 | [
"MIT"
] | 1 | 2021-05-17T05:44:22.000Z | 2021-05-17T05:44:22.000Z | client_handler.py | House-of-IoT/HOI-GeneralServer | 12e621a1332e989b0bf4c8cb053ef46c8c0cf458 | [
"MIT"
] | 18 | 2021-07-04T19:24:21.000Z | 2021-12-08T12:35:16.000Z | client_handler.py | House-of-IoT/HOI-GeneralServer | 12e621a1332e989b0bf4c8cb053ef46c8c0cf458 | [
"MIT"
] | null | null | null | import asyncio
import json
from Errors.errors import AddressBannedException
from Errors.errors import BotStuckInPassiveDataGather
from Errors.errors import IssueGatheringServeData
from DataObjects.BasicResponse import BasicResponse
from AutoScheduling.auto_scheduler import Task
from SpecialActions.special_action_handle... | 43.762148 | 130 | 0.658582 | 2,096 | 17,111 | 5.062023 | 0.134065 | 0.03393 | 0.021489 | 0.020358 | 0.393214 | 0.327615 | 0.257587 | 0.207163 | 0.144958 | 0.11263 | 0 | 0.002079 | 0.269125 | 17,111 | 391 | 131 | 43.762148 | 0.846314 | 0.0315 | 0 | 0.290323 | 0 | 0 | 0.051164 | 0.005884 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035484 | false | 0.051613 | 0.054839 | 0 | 0.141935 | 0.022581 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
348731ea1957ffb636e8083d30ea4941a67095cb | 3,129 | py | Python | tests/test_notebooks/input/examples.py | rajshruti18/biolinkml | 451e71c9d3fd11aa3b08c6a713d9ab8b127ece77 | [
"CC0-1.0"
] | 25 | 2019-07-05T01:16:18.000Z | 2021-03-22T20:49:25.000Z | tests/test_notebooks/input/examples.py | rajshruti18/biolinkml | 451e71c9d3fd11aa3b08c6a713d9ab8b127ece77 | [
"CC0-1.0"
] | 299 | 2019-03-05T15:15:30.000Z | 2021-04-08T23:25:41.000Z | tests/test_notebooks/input/examples.py | rajshruti18/biolinkml | 451e71c9d3fd11aa3b08c6a713d9ab8b127ece77 | [
"CC0-1.0"
] | 19 | 2019-05-23T17:46:47.000Z | 2021-03-25T06:45:55.000Z | from types import ModuleType
from jsonasobj import as_json, loads
from rdflib import Graph
from biolinkml.generators.jsonldcontextgen import ContextGenerator
from biolinkml.generators.pythongen import PythonGenerator
from biolinkml.generators.shexgen import ShExGenerator
from biolinkml.generators.yumlgen import YumlG... | 25.647541 | 123 | 0.646532 | 385 | 3,129 | 5.171429 | 0.394805 | 0.028127 | 0.035158 | 0.025615 | 0.052235 | 0.024108 | 0.024108 | 0 | 0 | 0 | 0 | 0.007725 | 0.255353 | 3,129 | 121 | 124 | 25.859504 | 0.846781 | 0.017258 | 0 | 0.063158 | 0 | 0 | 0.629557 | 0.027669 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.094737 | 0 | 0.094737 | 0.094737 | 0 | 0 | 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 |
34950d27c6bfe323d2a8482c912e052fcc619aa8 | 967 | py | Python | simplecoin/coinserv_cmds.py | ahmedbodi/simplecoin_multi | c7c0a6d6ead4663c92c9cbeaf03d06dee59bf16e | [
"MIT"
] | 32 | 2015-01-02T21:35:16.000Z | 2020-02-13T16:40:36.000Z | simplecoin/coinserv_cmds.py | ahmedbodi/simplecoin_multi | c7c0a6d6ead4663c92c9cbeaf03d06dee59bf16e | [
"MIT"
] | 18 | 2015-01-02T02:39:31.000Z | 2017-06-04T03:43:34.000Z | simplecoin/coinserv_cmds.py | xmotomatt/simplecoin_multi | 06ec38e8b8d5e12665f46270b69ed30739fba7f3 | [
"MIT"
] | 39 | 2015-01-11T09:28:30.000Z | 2021-03-12T01:26:05.000Z | from flask import current_app
from . import coinserv, merge_coinserv
def payout_many(recip, merged=None):
if merged:
merged_cfg = current_app.config['merged_cfg'][merged]
conn = merge_coinserv[merged]
fee = merged_cfg['payout_fee']
passphrase = merged_cfg['coinserv']['wallet_pass... | 35.814815 | 70 | 0.673216 | 117 | 967 | 5.384615 | 0.316239 | 0.142857 | 0.101587 | 0.126984 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002591 | 0.201655 | 967 | 26 | 71 | 37.192308 | 0.813472 | 0 | 0 | 0 | 0 | 0 | 0.182006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.190476 | 0.095238 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
349e8d85c4cabe85b652868bcd3d9f2aea814256 | 785 | py | Python | core/migrations/0004_consumer.py | ahammadshawki8/TechShoi-Database-Application | a85372ce59c41445578da136c8241f2307121aed | [
"MIT"
] | null | null | null | core/migrations/0004_consumer.py | ahammadshawki8/TechShoi-Database-Application | a85372ce59c41445578da136c8241f2307121aed | [
"MIT"
] | 1 | 2021-05-31T14:14:56.000Z | 2021-05-31T14:14:56.000Z | core/migrations/0004_consumer.py | ahammadshawki8/TechShoi-Database-Application | a85372ce59c41445578da136c8241f2307121aed | [
"MIT"
] | 1 | 2021-05-29T04:55:38.000Z | 2021-05-29T04:55:38.000Z | # Generated by Django 3.2.3 on 2021-05-23 09:38
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('core', '0003_auto_20210523_1534'),
]
operations = [
migrations.CreateModel(
name='Consumer',
fields=[
... | 30.192308 | 112 | 0.571975 | 80 | 785 | 5.5125 | 0.7125 | 0.061224 | 0.081633 | 0.108844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073477 | 0.289172 | 785 | 25 | 113 | 31.4 | 0.716846 | 0.057325 | 0 | 0 | 1 | 0 | 0.092141 | 0.031165 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 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 |
34a0403e50eaaf164c268a646f796d0d5d9ed59a | 981 | py | Python | workstation_demo_scripts/list_empty_user_groups.py | MicroStrategy/mstrio-py | 720af7e673ed62462366d1406e5ea14792461e94 | [
"Apache-2.0"
] | 60 | 2018-06-28T22:31:47.000Z | 2022-03-30T14:03:30.000Z | workstation_demo_scripts/list_empty_user_groups.py | czyzq/mstrio-py | b25fd19936b659d503a7eaaa96c8d0b4e118cb7c | [
"Apache-2.0"
] | 52 | 2018-11-15T15:31:03.000Z | 2022-03-28T05:34:22.000Z | workstation_demo_scripts/list_empty_user_groups.py | czyzq/mstrio-py | b25fd19936b659d503a7eaaa96c8d0b4e118cb7c | [
"Apache-2.0"
] | 44 | 2018-08-30T10:31:49.000Z | 2022-03-31T16:16:36.000Z | """List names and IDs of empty user groups."""
from mstrio.users_and_groups import UserGroup, list_user_groups
from mstrio.connection import Connection, get_connection
from typing import List
def list_empty_user_groups(connection: "Connection") -> List["UserGroup"]:
"""List empty user groups.
Args:
... | 31.645161 | 93 | 0.762487 | 130 | 981 | 5.530769 | 0.392308 | 0.180807 | 0.187761 | 0.079277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152905 | 981 | 30 | 94 | 32.7 | 0.865223 | 0.332314 | 0 | 0 | 0 | 0 | 0.126603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.454545 | 0.181818 | 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 |
34a3c16f4fe43114d1b78970c9450c170ffde09b | 1,614 | py | Python | game/views.py | atadams/bbstuff | 79a40425e140034e4d22c485a8427b1d74a9f4cc | [
"MIT"
] | null | null | null | game/views.py | atadams/bbstuff | 79a40425e140034e4d22c485a8427b1d74a9f4cc | [
"MIT"
] | null | null | null | game/views.py | atadams/bbstuff | 79a40425e140034e4d22c485a8427b1d74a9f4cc | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.urls import reverse
from django.views.generic import DetailView, ListView, UpdateView
from game.models import Game, Pitch
class GameListView(ListView):
model = Game
class GameDetailView(DetailView):
model = Game
# def get_queryset(self):
# return... | 23.735294 | 89 | 0.666047 | 192 | 1,614 | 5.255208 | 0.380208 | 0.02775 | 0.041625 | 0.056492 | 0.213082 | 0.19227 | 0.112983 | 0.112983 | 0.112983 | 0.112983 | 0 | 0 | 0.233581 | 1,614 | 67 | 90 | 24.089552 | 0.815683 | 0.071871 | 0 | 0.142857 | 0 | 0 | 0.233088 | 0.041527 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
34b22569fe1c061b5034f2e1f4e983e0d4902d7e | 529 | py | Python | dec25.py | bloy/adventofcode-2015 | 593a798fcfca8a921dc965cc5df94ff0c5423cdf | [
"MIT"
] | null | null | null | dec25.py | bloy/adventofcode-2015 | 593a798fcfca8a921dc965cc5df94ff0c5423cdf | [
"MIT"
] | 2 | 2019-12-01T15:44:32.000Z | 2019-12-01T15:44:32.000Z | dec25.py | bloy/adventofcode-2015 | 593a798fcfca8a921dc965cc5df94ff0c5423cdf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
FIRST_VALUE = 20151125
INPUT_COLUMN = 3083
INPUT_ROW = 2978
MAGIC_MULTIPLIER = 252533
MAGIC_MOD = 33554393
def sequence_number(row, column):
return sum(range(row + column - 1)) + column
def next_code(code):
return (code * MAGIC_MULTIPLIER) % MAGIC_MOD
if __name__ == '__main__':
cod... | 25.190476 | 67 | 0.73535 | 74 | 529 | 4.851351 | 0.459459 | 0.155989 | 0.100279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073395 | 0.175803 | 529 | 20 | 68 | 26.45 | 0.75 | 0.037807 | 0 | 0 | 0 | 0 | 0.015748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0 | 0.133333 | 0.266667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
34b2d196b1e02ad1784901a456ea3674782483ec | 4,009 | py | Python | third_party/adblockrules/regexp_from_abp_ruleset.py | gtmetrix/pagespeed-library | 4aac4ab995bc99c6a40f0c820cfefc88db6fcf33 | [
"Apache-2.0"
] | 11 | 2016-08-23T12:31:32.000Z | 2021-05-12T09:47:01.000Z | third_party/adblockrules/regexp_from_abp_ruleset.py | gtmetrix/page-speed-library | 4aac4ab995bc99c6a40f0c820cfefc88db6fcf33 | [
"Apache-2.0"
] | null | null | null | third_party/adblockrules/regexp_from_abp_ruleset.py | gtmetrix/page-speed-library | 4aac4ab995bc99c6a40f0c820cfefc88db6fcf33 | [
"Apache-2.0"
] | 1 | 2019-03-13T00:51:45.000Z | 2019-03-13T00:51:45.000Z | #!/usr/bin/python2.6
#
# Copyright 2011 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 require... | 29.91791 | 74 | 0.659516 | 525 | 4,009 | 4.952381 | 0.388571 | 0.027692 | 0.050769 | 0.025385 | 0.121538 | 0.095 | 0.036154 | 0.036154 | 0 | 0 | 0 | 0.007407 | 0.225493 | 4,009 | 133 | 75 | 30.142857 | 0.829952 | 0.432527 | 0 | 0.098361 | 0 | 0 | 0.125381 | 0.011675 | 0.016393 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016393 | null | null | 0.114754 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
34bd71db181b15fbbcc6363d50e54d97dc1b38d6 | 868 | py | Python | tests/core/gen_helpers/gen_base/gen_typing.py | Neurone/eth2.0-specs | 2a36f366efb8096bfcae84933bd000b437cdc3d5 | [
"CC0-1.0"
] | 11 | 2020-07-06T12:36:17.000Z | 2021-04-22T11:00:18.000Z | tests/core/gen_helpers/gen_base/gen_typing.py | Neurone/eth2.0-specs | 2a36f366efb8096bfcae84933bd000b437cdc3d5 | [
"CC0-1.0"
] | 3 | 2021-09-12T07:31:21.000Z | 2022-03-12T01:03:03.000Z | tests/core/gen_helpers/gen_base/gen_typing.py | Neurone/eth2.0-specs | 2a36f366efb8096bfcae84933bd000b437cdc3d5 | [
"CC0-1.0"
] | 12 | 2021-05-24T15:21:04.000Z | 2022-03-28T17:50:37.000Z | from typing import (
Any,
Callable,
Iterable,
NewType,
Tuple,
)
from dataclasses import dataclass
# Elements: name, out_kind, data
#
# out_kind is the type of data:
# - "data" for generic
# - "ssz" for SSZ encoded bytes
# - "meta" for generic data to collect into a meta data dict.
TestCasePart =... | 24.111111 | 83 | 0.691244 | 113 | 868 | 5.230089 | 0.513274 | 0.059222 | 0.037225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211982 | 868 | 35 | 84 | 24.8 | 0.864035 | 0.397465 | 0 | 0.095238 | 0 | 0 | 0.023392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
34ca70527c57e635f4cc4a233381405da193b028 | 495 | py | Python | setup.py | sixy6e/mpi-structlog | 3f825188ce62750c4d64b9a9c6efd242a0d1793c | [
"MIT"
] | 1 | 2020-08-16T04:02:46.000Z | 2020-08-16T04:02:46.000Z | setup.py | sixy6e/mpi-structlog | 3f825188ce62750c4d64b9a9c6efd242a0d1793c | [
"MIT"
] | null | null | null | setup.py | sixy6e/mpi-structlog | 3f825188ce62750c4d64b9a9c6efd242a0d1793c | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="mpi_structlog",
version="0.0.1",
url="https://github.com/sixy6e/mpi-structlog",
author="Josh Sixsmith",
description="Structured logging for MPI based Python code",
keywords=[
"logging",
"structured",
"structure",
... | 20.625 | 63 | 0.565657 | 48 | 495 | 5.75 | 0.729167 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017045 | 0.288889 | 495 | 23 | 64 | 21.521739 | 0.767045 | 0 | 0 | 0.181818 | 0 | 0 | 0.343434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
34d0bb57a0a86240f258e6c4466bc74ce8effde1 | 7,923 | py | Python | ctypes_configure/test/test_configure.py | microvm/pypy-mu | 6b03fbe93052d0eb3a4c67152c987c16837b3484 | [
"Apache-2.0",
"OpenSSL"
] | 34 | 2015-07-09T04:53:27.000Z | 2021-07-19T05:22:27.000Z | ctypes_configure/test/test_configure.py | microvm/pypy-mu | 6b03fbe93052d0eb3a4c67152c987c16837b3484 | [
"Apache-2.0",
"OpenSSL"
] | 6 | 2015-05-30T17:20:45.000Z | 2017-06-12T14:29:23.000Z | ctypes_configure/test/test_configure.py | microvm/pypy-mu | 6b03fbe93052d0eb3a4c67152c987c16837b3484 | [
"Apache-2.0",
"OpenSSL"
] | 11 | 2015-09-07T14:26:08.000Z | 2020-04-10T07:20:41.000Z | import py, sys, struct
from ctypes_configure import configure
from ctypes_configure.cbuild import ExternalCompilationInfo
import ctypes
def test_dirent():
dirent = configure.getstruct("struct dirent",
"""
struct dirent /* for this example only, not the exact diren... | 37.197183 | 78 | 0.484034 | 769 | 7,923 | 4.812744 | 0.204161 | 0.083221 | 0.037828 | 0.011889 | 0.238044 | 0.143205 | 0.105917 | 0.105917 | 0.070251 | 0.070251 | 0 | 0.014809 | 0.403383 | 7,923 | 212 | 79 | 37.372642 | 0.76814 | 0.007699 | 0 | 0.101911 | 0 | 0 | 0.133604 | 0.026866 | 0 | 0 | 0 | 0 | 0.254777 | 0 | null | null | 0 | 0.025478 | null | null | 0.006369 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
34e13820372935285a4d25d4af6d57b22c893afa | 377 | py | Python | src/network_generator.py | Merlin28209/Neural-Network-Game | c346210a0fde2ba6508ad4c166d733a245bc8a6d | [
"MIT"
] | null | null | null | src/network_generator.py | Merlin28209/Neural-Network-Game | c346210a0fde2ba6508ad4c166d733a245bc8a6d | [
"MIT"
] | null | null | null | src/network_generator.py | Merlin28209/Neural-Network-Game | c346210a0fde2ba6508ad4c166d733a245bc8a6d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import network
import mnist_loader
import pickle
training_data, validation_data, test_data = mnist_loader.load_data_wrapper()
net = network.Network([784, 100, 10])
net.SGD(training_data, 30, 10, 3.0, test_data=test_data)
with open('network.pkl', 'wb') as output: # Overwrites any existing fil... | 25.133333 | 76 | 0.758621 | 58 | 377 | 4.741379 | 0.62069 | 0.087273 | 0.087273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042296 | 0.122016 | 377 | 14 | 77 | 26.928571 | 0.78852 | 0.132626 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
34e34e5aa744ce78ded22ab76189ee9624c1db35 | 368 | py | Python | dnstest.py | WOT-Lemons/Lemongrass | 9c13f2c06888e692e391fdcf35ef2bf29a8ae259 | [
"MIT"
] | null | null | null | dnstest.py | WOT-Lemons/Lemongrass | 9c13f2c06888e692e391fdcf35ef2bf29a8ae259 | [
"MIT"
] | null | null | null | dnstest.py | WOT-Lemons/Lemongrass | 9c13f2c06888e692e391fdcf35ef2bf29a8ae259 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python3
# -*- coding: utf-8 -*-
import os
import sys
import subprocess
import re
import time
output = subprocess.check_output(['dig', '@8.8.8.8', '+short', 'TXT', 'driver.wotlemons.com'])
print(output)
print(str(output))
dirty_driver = output.decode("utf-8")
print(dirty_driver)
current_driver = dirty... | 20.444444 | 94 | 0.711957 | 53 | 368 | 4.830189 | 0.509434 | 0.023438 | 0.023438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021148 | 0.100543 | 368 | 17 | 95 | 21.647059 | 0.752266 | 0.122283 | 0 | 0 | 0 | 0 | 0.14375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
34e420dad2056666a792a2917010a8bf71a79f0a | 1,638 | py | Python | rebuc_app/tests/unit-tests/tests_build.py | gordeychuk/rebuc | c43c602287ed63a23e2022333747d110d6ea91b8 | [
"MIT"
] | 2 | 2020-02-27T11:00:27.000Z | 2020-12-03T12:16:56.000Z | rebuc_app/tests/unit-tests/tests_build.py | gordeychuk/rebuc | c43c602287ed63a23e2022333747d110d6ea91b8 | [
"MIT"
] | 4 | 2020-02-25T11:25:36.000Z | 2022-02-10T15:07:30.000Z | rebuc_app/tests/unit-tests/tests_build.py | gordeychuk/rebuc | c43c602287ed63a23e2022333747d110d6ea91b8 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.db import IntegrityError
from rebuc_app.models import Build
from .common import UnitTestHelper
class BuildUnitTestCase(TestCase, UnitTestHelper):
def check_is_later(self, version_to_compare, version_later):
build_to_compare_with = self.create_build(version_to_c... | 43.105263 | 111 | 0.713065 | 243 | 1,638 | 4.563786 | 0.27572 | 0.016231 | 0.081154 | 0.018034 | 0.237151 | 0.137962 | 0.137962 | 0.12083 | 0.079351 | 0.079351 | 0 | 0.03132 | 0.181319 | 1,638 | 37 | 112 | 44.27027 | 0.795675 | 0 | 0 | 0.068966 | 0 | 0 | 0.191087 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 1 | 0.241379 | false | 0 | 0.137931 | 0 | 0.413793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
34eadef02e83e4a82b7ae800eb468a651af16cc3 | 1,505 | py | Python | Consumer_Extern.py | jlcastrogro/Clima | 6493b7f10aea491ef45e14d882fdeede590ab722 | [
"MIT"
] | null | null | null | Consumer_Extern.py | jlcastrogro/Clima | 6493b7f10aea491ef45e14d882fdeede590ab722 | [
"MIT"
] | null | null | null | Consumer_Extern.py | jlcastrogro/Clima | 6493b7f10aea491ef45e14d882fdeede590ab722 | [
"MIT"
] | null | null | null | import pika
import sys
import base64
import json
import utils
import queue
class Consumer_Extern(object):
def __init__(self, server, user, password, queue_rabbit):
# Variables de RabbitMQ
self.connection = None
self.channel = None
self.server = server
self.user = user
... | 30.1 | 81 | 0.622591 | 158 | 1,505 | 5.803797 | 0.424051 | 0.059978 | 0.049073 | 0.043621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00188 | 0.293023 | 1,505 | 49 | 82 | 30.714286 | 0.859962 | 0.039867 | 0 | 0 | 0 | 0 | 0.057559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.153846 | 0 | 0.333333 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
34ee68616905d55708867f5f7f0d942c6e4f2c26 | 3,255 | py | Python | source/client_io.py | bormaley999/Chat_Project | ad26171df18ec9a512f1d8ca871584053fbd8611 | [
"MIT"
] | null | null | null | source/client_io.py | bormaley999/Chat_Project | ad26171df18ec9a512f1d8ca871584053fbd8611 | [
"MIT"
] | 5 | 2021-03-19T02:51:57.000Z | 2022-01-13T01:32:11.000Z | source/client_io.py | bormaley999/Chat_Project | ad26171df18ec9a512f1d8ca871584053fbd8611 | [
"MIT"
] | null | null | null | # This Project has been made by Artem Manchenkov (artyom@manchenkoff.me) during the 3 day online course from Skillbox(https://skillbox.ru/)
# Together with Artem I was able to solve the #TODO's section of the project.
# Console client to connect to a server
#
from twisted.internet import reactor, stdio
from twisted... | 33.214286 | 140 | 0.678955 | 385 | 3,255 | 5.693506 | 0.379221 | 0.024635 | 0.020073 | 0.017336 | 0.08531 | 0.065693 | 0.065693 | 0.065693 | 0.065693 | 0 | 0 | 0.002012 | 0.236559 | 3,255 | 97 | 141 | 33.556701 | 0.88008 | 0.475269 | 0 | 0.047619 | 0 | 0 | 0.092221 | 0.016311 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.190476 | false | 0 | 0.047619 | 0 | 0.404762 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
34f3baae583ab2bb38b15d08d9b689822135373d | 11,849 | py | Python | astroquery/utils/commons.py | mdboom/astroquery | 6dac580bf162227a7f7c0d52ba2db2db78ae1a0f | [
"BSD-3-Clause"
] | null | null | null | astroquery/utils/commons.py | mdboom/astroquery | 6dac580bf162227a7f7c0d52ba2db2db78ae1a0f | [
"BSD-3-Clause"
] | null | null | null | astroquery/utils/commons.py | mdboom/astroquery | 6dac580bf162227a7f7c0d52ba2db2db78ae1a0f | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Common functions and classes that are required by all query classes.
"""
import re
import sys
import requests
import warnings
import io
import os
import shutil
import astropy.units as u
from astropy import coordinates as coord
from astropy.utils impo... | 31.938005 | 125 | 0.60157 | 1,405 | 11,849 | 4.960854 | 0.26121 | 0.025825 | 0.011478 | 0.005165 | 0.055093 | 0.033286 | 0.033286 | 0.033286 | 0.018364 | 0.018364 | 0 | 0.002776 | 0.300785 | 11,849 | 370 | 126 | 32.024324 | 0.838503 | 0.056207 | 0 | 0.147727 | 0 | 0.005682 | 0.134822 | 0.006537 | 0 | 0 | 0 | 0.002703 | 0 | 0 | null | null | 0 | 0.096591 | null | null | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
34f72c74e96cf968551229ad99f4b77840a1e955 | 5,536 | py | Python | impacket/impacket-pipe_enumerator.py | all3g/pieces | bc378fd22ddc700891fe7f34ab0d5b341141e434 | [
"CNRI-Python"
] | 34 | 2016-10-31T02:05:24.000Z | 2018-11-08T14:33:13.000Z | impacket/impacket-pipe_enumerator.py | join-us/python-programming | bc378fd22ddc700891fe7f34ab0d5b341141e434 | [
"CNRI-Python"
] | 2 | 2017-05-11T03:00:31.000Z | 2017-11-01T23:37:37.000Z | impacket/impacket-pipe_enumerator.py | join-us/python-programming | bc378fd22ddc700891fe7f34ab0d5b341141e434 | [
"CNRI-Python"
] | 21 | 2016-08-19T09:05:45.000Z | 2018-11-08T14:33:16.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# $ sudo pip install impacket
'''
$ python2.7 ipc.py 192.168.206.130 '' ''
INFO:__main__:target ip: 192.168.206.130
INFO:__main__:target os: 32 bit
INFO:__main__: spoolss, True, {'ver_major': 5, 'ver_minor': 0, '_sec_trailer': 0, 'pduData': '\xb8\x10\xb8\x104\x17\x00\x00\x0... | 42.584615 | 437 | 0.669256 | 730 | 5,536 | 4.924658 | 0.40137 | 0.015021 | 0.015021 | 0.013352 | 0.228373 | 0.20751 | 0.18943 | 0.138248 | 0.138248 | 0.109319 | 0 | 0.084925 | 0.19599 | 5,536 | 129 | 438 | 42.914729 | 0.722759 | 0.43479 | 0 | 0.030303 | 0 | 0 | 0.172134 | 0.10788 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0.090909 | 0.075758 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
34f8002b934f594274db8ce627ede6c83f59c754 | 7,190 | py | Python | folderapp.py | pootle/piCameraWeb | 3422a21ed62d0a231d6d26bd5c59914f57ebe1a6 | [
"Unlicense"
] | 1 | 2019-05-04T10:34:23.000Z | 2019-05-04T10:34:23.000Z | folderapp.py | pootle/piCameraWeb | 3422a21ed62d0a231d6d26bd5c59914f57ebe1a6 | [
"Unlicense"
] | 1 | 2019-04-01T08:16:05.000Z | 2019-04-01T08:16:05.000Z | folderapp.py | pootle/piCameraWeb | 3422a21ed62d0a231d6d26bd5c59914f57ebe1a6 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python3
"""
simple module to manage the video files generated by the camera app
"""
from pootlestuff import watchables as wv
import os, pathlib, time, threading, queue
class fileManager(wv.watchablesmart):
def __init__(self, **kwargs):
self.diskfree=wv.floatWatch(app=self, value=float('nan'))
... | 42.294118 | 203 | 0.538248 | 857 | 7,190 | 4.487748 | 0.280047 | 0.030421 | 0.014561 | 0.012481 | 0.24025 | 0.229069 | 0.209308 | 0.196828 | 0.196828 | 0.172907 | 0 | 0.022218 | 0.292629 | 7,190 | 169 | 204 | 42.544379 | 0.733976 | 0.011822 | 0 | 0.198676 | 1 | 0.019868 | 0.127378 | 0.03734 | 0 | 0 | 0 | 0 | 0.006623 | 1 | 0.07947 | false | 0 | 0.013245 | 0.013245 | 0.165563 | 0.046358 | 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 |
550d53834748e572a9fe147c150a3ede2fb47aab | 652 | py | Python | year2021/python/day1/day1_func.py | 3schwartz/AdventOfCode | 32f259c4e20c3c4834718411f1053b6a11f71c86 | [
"MIT"
] | null | null | null | year2021/python/day1/day1_func.py | 3schwartz/AdventOfCode | 32f259c4e20c3c4834718411f1053b6a11f71c86 | [
"MIT"
] | null | null | null | year2021/python/day1/day1_func.py | 3schwartz/AdventOfCode | 32f259c4e20c3c4834718411f1053b6a11f71c86 | [
"MIT"
] | null | null | null | from abc import abstractmethod, ABC
from typing import List
class Sonar(ABC):
@abstractmethod
def GetDebtCount(self, debts: List[int]) -> int:
pass
class SonarSingle(Sonar):
def GetDebtCount(self, debts: List[int]):
count = 0
for i in range(1, len(debts)):
if debts... | 21.733333 | 61 | 0.556748 | 84 | 652 | 4.321429 | 0.357143 | 0.066116 | 0.157025 | 0.198347 | 0.366391 | 0.300275 | 0.300275 | 0 | 0 | 0 | 0 | 0.022779 | 0.326687 | 652 | 30 | 62 | 21.733333 | 0.8041 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0.05 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
550ee2246fa74252d68bb3856d98c3e5f8124e1c | 1,665 | py | Python | micropython-pyspindel/pyspindel/mpu6050.py | mrberti/pyspindel | 91cf49559a43597f976397c5f433f4e169496168 | [
"MIT"
] | null | null | null | micropython-pyspindel/pyspindel/mpu6050.py | mrberti/pyspindel | 91cf49559a43597f976397c5f433f4e169496168 | [
"MIT"
] | null | null | null | micropython-pyspindel/pyspindel/mpu6050.py | mrberti/pyspindel | 91cf49559a43597f976397c5f433f4e169496168 | [
"MIT"
] | null | null | null | try:
import struct
except ImportError:
import ustruct as struct
MPU6050_ADDR_BASE = 104
class MPU6050Error(Exception):
pass
class MPU6050(object):
def __init__(self, i2c, baudrate=400000, a0=0):
self.i2c = i2c
self.baudrate = baudrate
self.buf_accel = bytearray(6)
self... | 25.615385 | 70 | 0.602402 | 246 | 1,665 | 3.804878 | 0.296748 | 0.067308 | 0.051282 | 0.038462 | 0.222222 | 0.11859 | 0.11859 | 0.11859 | 0 | 0 | 0 | 0.081104 | 0.281682 | 1,665 | 64 | 71 | 26.015625 | 0.701505 | 0.013814 | 0 | 0.08 | 0 | 0 | 0.035409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.18 | false | 0.08 | 0.06 | 0.02 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
551d1be36244b72c01f73ebf4bc28279bf2725d0 | 301 | py | Python | zeroinger/text/string.py | liangjz92/zeroinger-utils-python | ebd1dad51c5185441d348435d67177564ee89095 | [
"MIT"
] | null | null | null | zeroinger/text/string.py | liangjz92/zeroinger-utils-python | ebd1dad51c5185441d348435d67177564ee89095 | [
"MIT"
] | null | null | null | zeroinger/text/string.py | liangjz92/zeroinger-utils-python | ebd1dad51c5185441d348435d67177564ee89095 | [
"MIT"
] | null | null | null | class StringUtils:
@staticmethod
def is_empty(text: str) -> bool:
"""
判断这个字符串是否为空
:param text:
:return:
"""
if text is None:
return True
c = text.strip()
if len(c) == 0:
return True
return False
| 20.066667 | 36 | 0.451827 | 30 | 301 | 4.5 | 0.666667 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006098 | 0.45515 | 301 | 14 | 37 | 21.5 | 0.817073 | 0.112957 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9b2a948e3c3b6b764b9eff77c08608f838b86f04 | 576 | py | Python | mmdet/patches/visualization/__init__.py | yizhe-ang/MMSceneGraph | d4daec3d7930d6fe1efe75b9c0a265c8be0b70ba | [
"MIT"
] | 24 | 2021-10-14T03:28:28.000Z | 2022-03-29T09:30:04.000Z | mmdet/patches/visualization/__init__.py | yizhe-ang/MMSceneGraph | d4daec3d7930d6fe1efe75b9c0a265c8be0b70ba | [
"MIT"
] | 4 | 2021-12-14T15:04:49.000Z | 2022-02-19T09:54:42.000Z | mmdet/patches/visualization/__init__.py | yizhe-ang/MMSceneGraph | d4daec3d7930d6fe1efe75b9c0a265c8be0b70ba | [
"MIT"
] | 4 | 2021-10-31T11:23:06.000Z | 2021-12-17T06:38:50.000Z | # ---------------------------------------------------------------
# __init__.py
# Set-up time: 2020/4/26 上午8:39
# Copyright (c) 2020 ICT
# Licensed under The MIT License [see LICENSE for details]
# Written by Kenneth-Wong (Wenbin-Wang) @ VIPL.ICT
# Contact: wenbin.wang@vipl.ict.ac.cn [OR] nkwangwenbin@gmail.com
... | 38.4 | 72 | 0.559028 | 67 | 576 | 4.537313 | 0.701493 | 0.065789 | 0.092105 | 0.111842 | 0.151316 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028 | 0.131944 | 576 | 15 | 73 | 38.4 | 0.58 | 0.628472 | 0 | 0 | 0 | 0 | 0.270833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9b2c226be4fa2606d49ddd3872f167402e6847e2 | 373 | py | Python | tests/test_everything.py | ashd32/csv2html | 72a041757762145b28124d217fba9128db34af2a | [
"MIT"
] | 8 | 2015-02-09T17:00:18.000Z | 2020-04-14T19:07:26.000Z | tests/test_everything.py | datamade/flask_app_template | 19e8324521d8c404a2b05f0df5621b68a0117a33 | [
"MIT"
] | 9 | 2021-03-31T20:19:34.000Z | 2022-03-12T00:53:24.000Z | tests/test_everything.py | ashd32/csv2html | 72a041757762145b28124d217fba9128db34af2a | [
"MIT"
] | 3 | 2015-12-07T06:39:02.000Z | 2019-11-17T16:34:07.000Z | from template.models import PersonModel
def test_model(db_session):
person = PersonModel(name='someone',
email='something@something.com')
db_session.add(person)
db_session.commit()
post_person = db_session.query(PersonModel).filter(PersonModel.name == 'someone').first()
a... | 28.692308 | 93 | 0.697051 | 43 | 373 | 5.883721 | 0.534884 | 0.142292 | 0.173913 | 0.205534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184987 | 373 | 12 | 94 | 31.083333 | 0.832237 | 0 | 0 | 0 | 0 | 0 | 0.160858 | 0.123324 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 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 |
9b314ab4b9509a30327ce6c80ddd8b6ec7c258ca | 1,122 | py | Python | test_story.py | Joneswn/Baloti | c499666dd9e2553fac88130dea2b6e9df8278234 | [
"MIT"
] | 1 | 2022-02-24T17:30:53.000Z | 2022-02-24T17:30:53.000Z | test_story.py | Joneswn/Baloti | c499666dd9e2553fac88130dea2b6e9df8278234 | [
"MIT"
] | null | null | null | test_story.py | Joneswn/Baloti | c499666dd9e2553fac88130dea2b6e9df8278234 | [
"MIT"
] | 2 | 2021-10-06T11:52:41.000Z | 2022-01-20T11:07:27.000Z | import pytest
from django.core.management import call_command
from electeez_sites.models import Site
@pytest.fixture(autouse=True)
def django_fixtures_setup(django_db_setup, django_db_blocker):
fixture = 'electis/site_data.json'
with django_db_blocker.unblock():
call_command('loaddata', fixture)
... | 29.526316 | 71 | 0.712121 | 142 | 1,122 | 5.457746 | 0.43662 | 0.090323 | 0.103226 | 0.123871 | 0.270968 | 0.067097 | 0 | 0 | 0 | 0 | 0 | 0.03014 | 0.172014 | 1,122 | 37 | 72 | 30.324324 | 0.80409 | 0 | 0 | 0.137931 | 0 | 0 | 0.170232 | 0.089127 | 0 | 0 | 0 | 0 | 0.275862 | 1 | 0.103448 | false | 0.137931 | 0.103448 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9b31a668d499036fd132cf14a1be3288f1b1eaf4 | 9,674 | py | Python | data_handler/AbstractDataset.py | demetoir/ALLGANS | 2f972db5e9a65f18aee0695d817f4acc221e54da | [
"MIT"
] | 11 | 2018-01-25T15:31:54.000Z | 2019-12-17T06:12:57.000Z | data_handler/AbstractDataset.py | demetoir/ALLGANs | 2f972db5e9a65f18aee0695d817f4acc221e54da | [
"MIT"
] | 19 | 2018-01-29T16:12:09.000Z | 2018-02-15T15:56:48.000Z | data_handler/AbstractDataset.py | demetoir/ALLGANs | 2f972db5e9a65f18aee0695d817f4acc221e54da | [
"MIT"
] | 2 | 2018-02-06T00:31:55.000Z | 2018-02-19T15:29:10.000Z | from util.Logger import Logger
from util.misc_util import *
import traceback
import sys
import numpy as np
import os
def _check_attr_is_None(attr):
def _check_attr_empty(f):
def wrapper(self, *args):
ret = f(self, *args)
if getattr(self, attr) is None:
... | 32.572391 | 101 | 0.58466 | 1,182 | 9,674 | 4.560914 | 0.189509 | 0.026711 | 0.029679 | 0.013356 | 0.148766 | 0.117789 | 0.091078 | 0.050083 | 0.033203 | 0.020033 | 0 | 0.005273 | 0.333471 | 9,674 | 296 | 102 | 32.682432 | 0.8308 | 0.288299 | 0 | 0.147651 | 0 | 0 | 0.021573 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.134228 | false | 0.020134 | 0.040268 | 0.013423 | 0.255034 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
9b38fb035cc0cbc79e297605f99b569e8fc03041 | 2,363 | py | Python | CTFd/api/__init__.py | ldecoster/Plateforme-CTF | 5ff3a5b64167919712584461433f872044366c62 | [
"Apache-2.0"
] | null | null | null | CTFd/api/__init__.py | ldecoster/Plateforme-CTF | 5ff3a5b64167919712584461433f872044366c62 | [
"Apache-2.0"
] | 2 | 2020-11-02T16:51:42.000Z | 2021-02-12T15:18:47.000Z | CTFd/api/__init__.py | ldecoster/Plateforme-CTF | 5ff3a5b64167919712584461433f872044366c62 | [
"Apache-2.0"
] | null | null | null | from flask import Blueprint, current_app
from flask_restx import Api
from CTFd.api.v1.badges import badges_namespace
from CTFd.api.v1.challenges import challenges_namespace
from CTFd.api.v1.comments import comments_namespace
from CTFd.api.v1.config import configs_namespace
from CTFd.api.v1.files import files_namespace... | 46.333333 | 87 | 0.841727 | 327 | 2,363 | 5.761468 | 0.137615 | 0.100849 | 0.176752 | 0.117304 | 0.39172 | 0.027601 | 0 | 0 | 0 | 0 | 0 | 0.017631 | 0.063902 | 2,363 | 50 | 88 | 47.26 | 0.834087 | 0 | 0 | 0 | 0 | 0 | 0.101989 | 0.03047 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.413043 | 0 | 0.413043 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9b3c3acd52c0d8903474f49ec96f37a64d901f4a | 1,270 | py | Python | pyjobs/marketing/newsletter.py | Mdslino/PyJobs | d2496d58067503c3304a6c59052238b1f097472b | [
"BSD-3-Clause"
] | 132 | 2017-10-27T23:54:47.000Z | 2022-03-15T12:10:10.000Z | pyjobs/marketing/newsletter.py | Mdslino/PyJobs | d2496d58067503c3304a6c59052238b1f097472b | [
"BSD-3-Clause"
] | 129 | 2017-09-05T04:22:50.000Z | 2022-03-12T01:06:49.000Z | pyjobs/marketing/newsletter.py | Mdslino/PyJobs | d2496d58067503c3304a6c59052238b1f097472b | [
"BSD-3-Clause"
] | 82 | 2017-10-28T00:14:04.000Z | 2021-07-27T20:00:40.000Z | from django.conf import settings
import requests
import json
from mailchimp3 import MailChimp
def subscribe_user_to_mailer(profile):
status = True
if not settings.MAILERLITE_API_KEY:
return
content = json.dumps({"email": profile.user.email})
headers = {
"content-type": "application/j... | 25.918367 | 83 | 0.644094 | 143 | 1,270 | 5.573427 | 0.433566 | 0.12798 | 0.040151 | 0.045169 | 0.303639 | 0.303639 | 0.303639 | 0.183187 | 0.183187 | 0.183187 | 0 | 0.002165 | 0.272441 | 1,270 | 48 | 84 | 26.458333 | 0.86039 | 0.084252 | 0 | 0.3 | 0 | 0 | 0.108621 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.