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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce86e9ff9a630deaefcc76bc5ceb3310bfe6bc83 | 17,026 | py | Python | tests/unit/test_tradeapi.py | BlockEx-HQ/python-trade-sdk | f5bbce635f53c21cc559d87854e9f107746bef13 | [
"MIT"
] | 1 | 2018-06-15T16:53:16.000Z | 2018-06-15T16:53:16.000Z | tests/unit/test_tradeapi.py | BlockEx-HQ/python-trade-sdk | f5bbce635f53c21cc559d87854e9f107746bef13 | [
"MIT"
] | null | null | null | tests/unit/test_tradeapi.py | BlockEx-HQ/python-trade-sdk | f5bbce635f53c21cc559d87854e9f107746bef13 | [
"MIT"
] | 1 | 2018-07-25T08:31:27.000Z | 2018-07-25T08:31:27.000Z | import sys
import pytest
from requests import RequestException
from blockex.tradeapi import interface, tradeapi
if sys.version_info >= (3, 0):
from urllib.parse import urlencode # pragma: no cover
else:
from urllib import urlencode # pragma: no cover
FIXTURE_INSTRUMENT_ID = 1
@pytest.mark.usefixtures('tr... | 36.380342 | 108 | 0.608246 | 1,727 | 17,026 | 5.756804 | 0.132021 | 0.044659 | 0.031382 | 0.038222 | 0.78626 | 0.735365 | 0.685174 | 0.656508 | 0.63096 | 0.616174 | 0 | 0.037273 | 0.271996 | 17,026 | 467 | 109 | 36.458244 | 0.764825 | 0.001938 | 0 | 0.548387 | 0 | 0 | 0.363567 | 0.029547 | 0 | 0 | 0 | 0 | 0.086022 | 1 | 0.061828 | false | 0.002688 | 0.016129 | 0 | 0.104839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ce9f30a3a70bc373cf5342415d548472f8440d8a | 281 | py | Python | examples/py2exe_setup__basic_test.py | ouseful-PR/pymunk | 4e304cc83a25c2486237bce102cd7db23d0b6a1a | [
"MIT"
] | 1 | 2020-10-27T14:21:25.000Z | 2020-10-27T14:21:25.000Z | examples/py2exe_setup__basic_test.py | LennyPhoenix/pymunk | 0b808f254eb449d05ffbe6235196ed83495a1c3e | [
"MIT"
] | null | null | null | examples/py2exe_setup__basic_test.py | LennyPhoenix/pymunk | 0b808f254eb449d05ffbe6235196ed83495a1c3e | [
"MIT"
] | null | null | null | """Simple example of py2exe to create a exe of the basic_test example.
Tested on py2exe 0.9.2.2 on python 3.4
"""
import os
from distutils.core import setup
import py2exe
import pymunk
setup(console=['basic_test.py'],
data_files = [('', [pymunk.chipmunk_path])]
)
| 17.5625 | 70 | 0.697509 | 45 | 281 | 4.266667 | 0.711111 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 0.188612 | 281 | 15 | 71 | 18.733333 | 0.802632 | 0.380783 | 0 | 0 | 0 | 0 | 0.078313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.571429 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
cea783a2205cf7c2d106e339307d8e08affa4cf3 | 3,724 | py | Python | tests/Unit/Elliptic/DiscontinuousGalerkin/NumericalFluxes/FirstOrderInternalPenalty.py | desperadoshi/spectre | b61c12dce108a98a875a1e9476e5630bea634119 | [
"MIT"
] | null | null | null | tests/Unit/Elliptic/DiscontinuousGalerkin/NumericalFluxes/FirstOrderInternalPenalty.py | desperadoshi/spectre | b61c12dce108a98a875a1e9476e5630bea634119 | [
"MIT"
] | null | null | null | tests/Unit/Elliptic/DiscontinuousGalerkin/NumericalFluxes/FirstOrderInternalPenalty.py | desperadoshi/spectre | b61c12dce108a98a875a1e9476e5630bea634119 | [
"MIT"
] | null | null | null | # Distributed under the MIT License.
# See LICENSE.txt for details.
import numpy as np
def average(int, ext):
return 0.5 * (int + ext)
def jump(int, ext):
return int - ext
def flux_for_field(grad_field, fluxes_argument):
return fluxes_argument * np.asarray(grad_field)
def flux_for_auxiliary_field(f... | 38.791667 | 79 | 0.622449 | 452 | 3,724 | 4.659292 | 0.179204 | 0.083096 | 0.079772 | 0.146249 | 0.705128 | 0.673789 | 0.617759 | 0.576923 | 0.505223 | 0.476258 | 0 | 0.005855 | 0.31203 | 3,724 | 95 | 80 | 39.2 | 0.816159 | 0.104458 | 0 | 0.220339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.237288 | false | 0 | 0.016949 | 0.20339 | 0.491525 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
ceb41b1bfa05b192c78b44425f3a04b7dadef157 | 180 | py | Python | utils/json.py | victorlacorte/MTG-SDK-Client | 33fdbfbf545e9f3961369b123a2f7fe783ce8f12 | [
"DOC"
] | null | null | null | utils/json.py | victorlacorte/MTG-SDK-Client | 33fdbfbf545e9f3961369b123a2f7fe783ce8f12 | [
"DOC"
] | null | null | null | utils/json.py | victorlacorte/MTG-SDK-Client | 33fdbfbf545e9f3961369b123a2f7fe783ce8f12 | [
"DOC"
] | null | null | null | import json
formatting = dict(sort_keys=True, indent=4, ensure_ascii=False)
def write_json(data, fname):
with open(fname, 'w') as f:
json.dump(data, f, **formatting)
| 22.5 | 63 | 0.683333 | 28 | 180 | 4.285714 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.177778 | 180 | 7 | 64 | 25.714286 | 0.804054 | 0 | 0 | 0 | 0 | 0 | 0.005556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 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 | 2 |
0c8317f1fa42c0c0ebdbeccc4959f0c4cb51b931 | 455 | py | Python | examples/extending-objects/Abstract Classes/Python/employee.py | YasPHP/ICS4U | 640789d344c17ff39a418bc4538764307a98bffd | [
"MIT"
] | 21 | 2015-04-26T03:03:46.000Z | 2019-08-24T20:10:36.000Z | examples/extending-objects/Abstract Classes/Python/employee.py | YasPHP/ICS4U | 640789d344c17ff39a418bc4538764307a98bffd | [
"MIT"
] | 19 | 2016-09-14T12:34:22.000Z | 2019-09-02T15:51:21.000Z | examples/extending-objects/Abstract Classes/Python/employee.py | YasPHP/ICS4U | 640789d344c17ff39a418bc4538764307a98bffd | [
"MIT"
] | 24 | 2015-05-27T04:17:30.000Z | 2019-02-23T23:03:46.000Z | # Example retrieved from https://www.python-course.eu/python3_inheritance.php
# Date retrieved: Nov 15, 2018
# Example slightly modified
from person import Person
class Employee(Person):
def __init__(self, first, last, age, staffnum):
super().__init__(first, last, age)
self.staffnumber = staffnum
... | 26.764706 | 77 | 0.674725 | 55 | 455 | 5.272727 | 0.618182 | 0.062069 | 0.082759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022284 | 0.210989 | 455 | 16 | 78 | 28.4375 | 0.785515 | 0.285714 | 0 | 0 | 0 | 0 | 0.006231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
0c8a6cec93a986da9cc29ff28f1dcde6b724b7e9 | 1,921 | py | Python | code/final code/display/display.py | Eslam-Abdo/nodemcuWith7_Segmant | d000c8b1de2a4b826b905c46bd81a3010dc468c4 | [
"MIT"
] | null | null | null | code/final code/display/display.py | Eslam-Abdo/nodemcuWith7_Segmant | d000c8b1de2a4b826b905c46bd81a3010dc468c4 | [
"MIT"
] | null | null | null | code/final code/display/display.py | Eslam-Abdo/nodemcuWith7_Segmant | d000c8b1de2a4b826b905c46bd81a3010dc468c4 | [
"MIT"
] | null | null | null | from machine import Pin
class SegmantDisplay:
def __init__(self):
self.D = [16,5,4,0,2,14,12,13,15,3,1] #pin mapping
self.pin_init()
def pin_init(self):
#output
self.pin_a = Pin(self.D[5] , Pin.OUT)
self.pin_b = Pin(self.D[6] , Pin.OUT)
self.pin_c = Pin(self.D[7] , Pin.OUT)
self.pi... | 20.655914 | 54 | 0.52785 | 315 | 1,921 | 3.050794 | 0.146032 | 0.327784 | 0.208117 | 0.091571 | 0.627471 | 0.573361 | 0.5359 | 0.5359 | 0.5359 | 0.5359 | 0 | 0.028094 | 0.31442 | 1,921 | 92 | 55 | 20.880435 | 0.701595 | 0.011452 | 0 | 0.56338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056338 | false | 0 | 0.014085 | 0 | 0.098592 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
0c98e6e2f272f364d0325d83054f65204b120783 | 2,248 | py | Python | tetris/tile.py | youngtuotuo/Stupid-CNN-Play-Tetris | 56306be28403dfac861723687e73890e6fb1c6db | [
"MIT"
] | 2 | 2020-05-06T13:42:50.000Z | 2020-05-22T04:16:24.000Z | tetris/tile.py | youngtuotuo/Stupid-CNN-Play-Tetris | 56306be28403dfac861723687e73890e6fb1c6db | [
"MIT"
] | null | null | null | tetris/tile.py | youngtuotuo/Stupid-CNN-Play-Tetris | 56306be28403dfac861723687e73890e6fb1c6db | [
"MIT"
] | null | null | null | import random
from tetris.constants import cols
import numpy as np
class Tile(object):
"""Tile structures: I, S, Z, O, T, J, L.
Use the following matrix to define each tile
0 1 2 3
4 5 6 7
8 9 10 11
12 13 14 15
"""
def __init__(self, *args, **kwargs):
self.x = cols ... | 24.977778 | 81 | 0.421708 | 294 | 2,248 | 3.197279 | 0.323129 | 0.023404 | 0.02234 | 0.156383 | 0.220213 | 0.192553 | 0.16383 | 0 | 0 | 0 | 0 | 0.123881 | 0.403915 | 2,248 | 89 | 82 | 25.258427 | 0.577612 | 0.088078 | 0 | 0.304348 | 0 | 0 | 0.059086 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.130435 | false | 0 | 0.043478 | 0.101449 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
0ca6183a196347dcb996c6710007c9c516de4520 | 568 | py | Python | view.py | DhairyaParikh/DBMS_Project | c2d5d42f77e356e486854ed83979d6a42d74cef3 | [
"Unlicense"
] | null | null | null | view.py | DhairyaParikh/DBMS_Project | c2d5d42f77e356e486854ed83979d6a42d74cef3 | [
"Unlicense"
] | null | null | null | view.py | DhairyaParikh/DBMS_Project | c2d5d42f77e356e486854ed83979d6a42d74cef3 | [
"Unlicense"
] | null | null | null | from connect import *
def viewproduct():
sql_select_query: str = """select * from product"""
cursor.execute(sql_select_query)
record = cursor.fetchall()
print(record)
def viewdepot():
sql_select_query: str = """select * from depot"""
cursor.execute(sql_select_query)
record = cursor.fetchal... | 23.666667 | 55 | 0.670775 | 65 | 568 | 5.676923 | 0.307692 | 0.146341 | 0.227642 | 0.138211 | 0.715447 | 0.715447 | 0.495935 | 0.495935 | 0.495935 | 0.495935 | 0 | 0 | 0.200704 | 568 | 24 | 56 | 23.666667 | 0.812775 | 0 | 0 | 0.45 | 0 | 0 | 0.103691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.05 | 0 | 0.25 | 0.15 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0caf0016bf14dcb07d4921bf9c2219d06af3136f | 655 | py | Python | Python/iteration_and_inverse_iteration/python3-6/main.py | InnoFang/misc-code | 561d0c5b02f81ad4978a97f7897b6c4c7b3b56ce | [
"MIT"
] | 4 | 2018-01-02T07:06:49.000Z | 2018-11-22T13:45:39.000Z | Python/iteration_and_inverse_iteration/python3-6/main.py | InnoFang/playground | 2998c024a5834be3712734f43fe945f83c64f989 | [
"Apache-2.0"
] | 1 | 2020-02-20T10:08:58.000Z | 2020-02-20T10:08:58.000Z | Python/iteration_and_inverse_iteration/python3-6/main.py | InnoFang/playground | 2998c024a5834be3712734f43fe945f83c64f989 | [
"Apache-2.0"
] | null | null | null | # example 1
from random import randint
chinese = [randint(60, 100) for _ in range(40)]
math = [randint(60, 100) for _ in range(40)]
english = [randint(60, 100) for _ in range(40)]
total = []
for c, m, e in zip(chinese, math, english):
total.append(c + m + e)
print(total)
# example 2
from itertools import chain
... | 21.833333 | 51 | 0.60916 | 116 | 655 | 3.37931 | 0.344828 | 0.160714 | 0.214286 | 0.267857 | 0.428571 | 0.428571 | 0.428571 | 0 | 0 | 0 | 0 | 0.131115 | 0.219847 | 655 | 30 | 52 | 21.833333 | 0.636008 | 0.029008 | 0 | 0 | 0 | 0 | 0.006309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.15 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
0cb9ee7c706550391f41cab0102a4a8b07dce55a | 10,875 | py | Python | src/hedera_proto/token_update_pb2.py | HbarStudio/hedera-protobufs-python | f8a503d2c4c5b7c441ddf48607f7ee563b3f931a | [
"Apache-2.0"
] | null | null | null | src/hedera_proto/token_update_pb2.py | HbarStudio/hedera-protobufs-python | f8a503d2c4c5b7c441ddf48607f7ee563b3f931a | [
"Apache-2.0"
] | null | null | null | src/hedera_proto/token_update_pb2.py | HbarStudio/hedera-protobufs-python | f8a503d2c4c5b7c441ddf48607f7ee563b3f931a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: token_update.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.pr... | 57.845745 | 1,138 | 0.78354 | 1,396 | 10,875 | 5.760745 | 0.126791 | 0.04576 | 0.07324 | 0.057075 | 0.580826 | 0.563417 | 0.542651 | 0.513305 | 0.513305 | 0.503979 | 0 | 0.039996 | 0.105655 | 10,875 | 187 | 1,139 | 58.15508 | 0.78686 | 0.025931 | 0 | 0.497006 | 1 | 0.005988 | 0.209979 | 0.177566 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047904 | 0 | 0.047904 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0cbb9fdbbcc8f2eb2a8b4e013d2127ff05477eef | 3,046 | py | Python | setup.py | denis-ryzhkov/mem_top | 037c128149ff5c1d59d3f9143b22595e0e0969c4 | [
"MIT"
] | 58 | 2015-06-16T16:17:23.000Z | 2022-02-18T13:06:15.000Z | setup.py | denis-ryzhkov/mem_top | 037c128149ff5c1d59d3f9143b22595e0e0969c4 | [
"MIT"
] | 5 | 2016-08-30T19:52:20.000Z | 2020-06-10T10:55:02.000Z | setup.py | denis-ryzhkov/mem_top | 037c128149ff5c1d59d3f9143b22595e0e0969c4 | [
"MIT"
] | 11 | 2015-05-18T09:31:49.000Z | 2022-01-18T19:32:17.000Z | from setuptools import setup
setup(
name='mem_top',
version='0.1.7',
description='Shows top suspects for memory leaks in your Python program.',
long_description='''
Usage::
pip install mem_top
from mem_top import mem_top
# From time to time:
logging.debug(mem_top()) # Or just print().... | 33.108696 | 126 | 0.622784 | 397 | 3,046 | 4.717884 | 0.513854 | 0.038441 | 0.017619 | 0.024026 | 0.02189 | 0.02189 | 0.02189 | 0.02189 | 0 | 0 | 0 | 0.044118 | 0.218647 | 3,046 | 91 | 127 | 33.472527 | 0.742857 | 0 | 0 | 0.04 | 0 | 0.066667 | 0.901838 | 0.116546 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.013333 | 0.026667 | 0 | 0.026667 | 0.013333 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0cbc8526de111748239edf237566c8b322642c7e | 77 | py | Python | vvvvid_downloader/__init__.py | Nearata/vvvvid-downloader | 8a6214fe90cd39c773224d372db9c24ac6b6a754 | [
"Unlicense"
] | 3 | 2020-12-03T20:45:29.000Z | 2021-04-20T10:14:01.000Z | vvvvid_downloader/__init__.py | Nearata/vvvvid-downloader | 8a6214fe90cd39c773224d372db9c24ac6b6a754 | [
"Unlicense"
] | 4 | 2020-12-03T20:47:45.000Z | 2022-01-03T15:15:00.000Z | vvvvid_downloader/__init__.py | Nearata/vvvvid-downloader | 8a6214fe90cd39c773224d372db9c24ac6b6a754 | [
"Unlicense"
] | 5 | 2020-12-03T20:45:33.000Z | 2022-02-06T11:38:31.000Z | """ Uno script in Python per scaricare da VVVVID. """
__version__ = "1.3.1"
| 19.25 | 53 | 0.662338 | 12 | 77 | 3.916667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.181818 | 77 | 3 | 54 | 25.666667 | 0.698413 | 0.584416 | 0 | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
0cc659225857aa2a2b792e5c604bab363fd5afa7 | 15,755 | py | Python | categories/richtext2/tests/delete.py | image72/browserscope | 44a63558ee376704d996851099bc7703128201cc | [
"Apache-2.0"
] | 22 | 2015-10-26T15:20:37.000Z | 2022-03-11T06:38:17.000Z | categories/richtext2/tests/delete.py | image72/browserscope | 44a63558ee376704d996851099bc7703128201cc | [
"Apache-2.0"
] | 10 | 2016-01-22T18:46:19.000Z | 2019-07-19T12:49:51.000Z | categories/richtext2/tests/delete.py | mcauer/browserscope | a9c0e1a250774f14689e06f93ad274d0b9d725e4 | [
"Apache-2.0"
] | 12 | 2015-10-17T09:40:44.000Z | 2019-06-08T19:54:36.000Z |
DELETE_TESTS = {
'id': 'D',
'caption': 'Delete Tests',
'command': 'delete',
'checkAttrs': True,
'checkStyle': False,
'Proposed': [
{ 'desc': '',
'tests': [
]
},
{ 'desc': 'delete single characters',
'tests': [
{ 'id': ... | 47.598187 | 137 | 0.464487 | 1,926 | 15,755 | 3.772066 | 0.097612 | 0.085341 | 0.052856 | 0.061666 | 0.78596 | 0.727047 | 0.658913 | 0.563386 | 0.512044 | 0.492361 | 0 | 0.014967 | 0.317233 | 15,755 | 330 | 138 | 47.742424 | 0.660407 | 0 | 0 | 0.105839 | 0 | 0.00365 | 0.607478 | 0.257047 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0cc935ba0944a7e5d0fadd99a8c0fecc1cf27619 | 1,643 | py | Python | test/test_day07.py | frangiz/AdventOfCode2017 | 5fc171d4a83bfb9a408b4647ded4cb3efd12247e | [
"MIT"
] | null | null | null | test/test_day07.py | frangiz/AdventOfCode2017 | 5fc171d4a83bfb9a408b4647ded4cb3efd12247e | [
"MIT"
] | null | null | null | test/test_day07.py | frangiz/AdventOfCode2017 | 5fc171d4a83bfb9a408b4647ded4cb3efd12247e | [
"MIT"
] | null | null | null | from days import day07
from ddt import ddt, data, unpack
import unittest
import util
@ddt
class MyTestCase(unittest.TestCase):
@data(
[[
'pbga (66)',
'xhth (57)',
'ebii (61)',
'havc (66)',
'ktlj (57)',
'fwft (72) -> ktl... | 29.339286 | 67 | 0.465612 | 177 | 1,643 | 4.19774 | 0.288136 | 0.037685 | 0.080754 | 0.037685 | 0.724092 | 0.724092 | 0.724092 | 0.627187 | 0.627187 | 0.497981 | 0 | 0.070727 | 0.380402 | 1,643 | 55 | 68 | 29.872727 | 0.659136 | 0 | 0 | 0.64 | 0 | 0 | 0.269521 | 0 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0.08 | false | 0 | 0.08 | 0 | 0.18 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 2 |
0cd82e6118d8ecdc55160174e0edc7c549962f1f | 5,048 | py | Python | tests/program/test_describe.py | hbruch/frictionless-py | 0f97d33c8fea7ef60cf8458b72eb0f54f4649798 | [
"MIT"
] | null | null | null | tests/program/test_describe.py | hbruch/frictionless-py | 0f97d33c8fea7ef60cf8458b72eb0f54f4649798 | [
"MIT"
] | null | null | null | tests/program/test_describe.py | hbruch/frictionless-py | 0f97d33c8fea7ef60cf8458b72eb0f54f4649798 | [
"MIT"
] | null | null | null | import json
import yaml
import pytest
from typer.testing import CliRunner
from frictionless import program, describe, helpers
runner = CliRunner()
# General
@pytest.mark.skipif(helpers.is_platform("windows"), reason="It doesn't work for Windows")
def test_describe():
result = runner.invoke(program, "describe d... | 32.993464 | 90 | 0.682052 | 666 | 5,048 | 5.051051 | 0.129129 | 0.128419 | 0.128419 | 0.208086 | 0.736326 | 0.709275 | 0.682224 | 0.682224 | 0.65547 | 0.593341 | 0 | 0.015007 | 0.168384 | 5,048 | 152 | 91 | 33.210526 | 0.786327 | 0.001387 | 0 | 0.281818 | 0 | 0.009091 | 0.264934 | 0.010716 | 0 | 0 | 0 | 0 | 0.354545 | 1 | 0.172727 | false | 0 | 0.045455 | 0 | 0.218182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0ce16a49f44b3a5941d28dff1c3b579e6a1c3322 | 806 | py | Python | djangoBlog/djangoBlog/autocomplete.py | blackmonkey121/blog | 938f104d3360c5f7562a2fd5a7d2f2e77c4695c0 | [
"BSD-3-Clause"
] | 4 | 2019-07-20T02:04:11.000Z | 2020-05-02T06:15:22.000Z | djangoBlog/djangoBlog/autocomplete.py | blackmonkey121/blog | 938f104d3360c5f7562a2fd5a7d2f2e77c4695c0 | [
"BSD-3-Clause"
] | 8 | 2020-05-03T09:01:14.000Z | 2022-01-13T02:13:14.000Z | djangoBlog/djangoBlog/autocomplete.py | blackmonkey121/blog | 938f104d3360c5f7562a2fd5a7d2f2e77c4695c0 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
#_*_ coding: utf-8 _*_
__author__ = "monkey"
from dal import autocomplete
from apps.blog.models import Category, Tag
class CategoryAutoComplete(autocomplete.Select2QuerySetView):
def get_queryset(self):
if not self.request.user.is_authenticated:
return Category.objects... | 26 | 61 | 0.673697 | 98 | 806 | 5.377551 | 0.418367 | 0.083491 | 0.113852 | 0.140417 | 0.637571 | 0.637571 | 0.637571 | 0.637571 | 0.637571 | 0.637571 | 0 | 0.006441 | 0.229529 | 806 | 30 | 62 | 26.866667 | 0.84219 | 0.052109 | 0 | 0.526316 | 0 | 0 | 0.007874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0ce9faed98874a3bdc763b8c7edf48a09fc72f84 | 2,184 | py | Python | indra/tests/test_chebi_client.py | djinnome/indra | 382b7f236e0b1422c96a268ef873530b5e92d48f | [
"BSD-2-Clause"
] | null | null | null | indra/tests/test_chebi_client.py | djinnome/indra | 382b7f236e0b1422c96a268ef873530b5e92d48f | [
"BSD-2-Clause"
] | null | null | null | indra/tests/test_chebi_client.py | djinnome/indra | 382b7f236e0b1422c96a268ef873530b5e92d48f | [
"BSD-2-Clause"
] | null | null | null | from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubchem()
assert ctop['CHEBI:85673'] == '11652416'
assert ptoc['11652416'] == 'CHEBI:85673'
assert unicode_strs... | 31.2 | 77 | 0.732143 | 323 | 2,184 | 4.591331 | 0.303406 | 0.126096 | 0.132165 | 0.115307 | 0.345246 | 0.25354 | 0.236682 | 0.169926 | 0.099798 | 0 | 0 | 0.091738 | 0.14652 | 2,184 | 69 | 78 | 31.652174 | 0.703863 | 0.065934 | 0 | 0.045455 | 0 | 0 | 0.181729 | 0.013261 | 0 | 0 | 0 | 0 | 0.431818 | 1 | 0.25 | false | 0 | 0.068182 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0cf531b1d93c6bb2bead63b3cc4c04c669e173b8 | 157 | py | Python | code/python_to_arduino/serial_write_blink_led.py | var-mar/workshop_topconf_introduction_arduino | 2228d85103a00d36c1f0917c1283e1b7589e5637 | [
"MIT"
] | null | null | null | code/python_to_arduino/serial_write_blink_led.py | var-mar/workshop_topconf_introduction_arduino | 2228d85103a00d36c1f0917c1283e1b7589e5637 | [
"MIT"
] | null | null | null | code/python_to_arduino/serial_write_blink_led.py | var-mar/workshop_topconf_introduction_arduino | 2228d85103a00d36c1f0917c1283e1b7589e5637 | [
"MIT"
] | null | null | null | import serial
from time import sleep
ser = serial.Serial('/dev/tty.usbmodem1411', 9600)
while True:
ser.write('0')
sleep(5.0)
ser.write('1')
sleep(5.0) | 17.444444 | 50 | 0.694268 | 27 | 157 | 4.037037 | 0.592593 | 0.146789 | 0.12844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102941 | 0.133758 | 157 | 9 | 51 | 17.444444 | 0.698529 | 0 | 0 | 0.25 | 0 | 0 | 0.14557 | 0.132911 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 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 | 2 |
0cf8aa412ef352e93a058c9c8e9ea0f5dcef6bed | 2,675 | py | Python | exercises/ex31.py | ramachandrajr/lpthw | 6ed8066a1a98f858416605877860e39c8413145a | [
"MIT"
] | null | null | null | exercises/ex31.py | ramachandrajr/lpthw | 6ed8066a1a98f858416605877860e39c8413145a | [
"MIT"
] | null | null | null | exercises/ex31.py | ramachandrajr/lpthw | 6ed8066a1a98f858416605877860e39c8413145a | [
"MIT"
] | null | null | null | print "You enter a dark room with two doors. Do you go through door #1 or door #2?"
door = raw_input("> ")
if door == "1":
print "There's a giant bear here eating a cheese cake sitting next to a wooden door. What do you do?"
print "1. Take the cake."
print "2. Scream at the bear."
print "3. Taunt th... | 36.643836 | 106 | 0.562617 | 389 | 2,675 | 3.85347 | 0.401028 | 0.037358 | 0.033356 | 0.018679 | 0.0507 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015446 | 0.346542 | 2,675 | 72 | 107 | 37.152778 | 0.842105 | 0.000748 | 0 | 0.052632 | 0 | 0.035088 | 0.5541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 2 |
0b2d96b1326fc41fde81b86ba1931b6ed629531c | 2,011 | py | Python | swd/swd/urls.py | Manthan-Asher/swd_django | c19123c5c7ecf3d39d41e82c98e3d76160ed6e9b | [
"MIT"
] | null | null | null | swd/swd/urls.py | Manthan-Asher/swd_django | c19123c5c7ecf3d39d41e82c98e3d76160ed6e9b | [
"MIT"
] | null | null | null | swd/swd/urls.py | Manthan-Asher/swd_django | c19123c5c7ecf3d39d41e82c98e3d76160ed6e9b | [
"MIT"
] | null | null | null | """swd URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | 36.563636 | 85 | 0.732471 | 304 | 2,011 | 4.730263 | 0.309211 | 0.038943 | 0.041725 | 0.01669 | 0.283727 | 0.184979 | 0.106398 | 0.106398 | 0 | 0 | 0 | 0.005172 | 0.134759 | 2,011 | 54 | 86 | 37.240741 | 0.821264 | 0.416211 | 0 | 0 | 0 | 0 | 0.123818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.521739 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
0b376502c8421fb0520b29d6ceade9507c6398bf | 365 | py | Python | tests/test_rdfnsmanager.py | KnowledgeLinks/rdfframework | c6b6408b6e90dd166b4981aeaf3a768e46c22ce0 | [
"MIT"
] | 7 | 2016-11-09T07:59:43.000Z | 2019-02-19T01:34:29.000Z | tests/test_rdfnsmanager.py | KnowledgeLinks/rdfframework | c6b6408b6e90dd166b4981aeaf3a768e46c22ce0 | [
"MIT"
] | 22 | 2018-01-10T15:03:22.000Z | 2019-12-17T12:00:10.000Z | tests/test_rdfnsmanager.py | KnowledgeLinks/rdfframework | c6b6408b6e90dd166b4981aeaf3a768e46c22ce0 | [
"MIT"
] | null | null | null | __author__ = "Jeremy Nelson, Mike Stabile"
import os
import sys
import unittest
PROJECT_DIR = os.path.abspath(os.curdir)
sys.path.append(PROJECT_DIR)
import rdfframework.utilities.uriconvertor as uriconvertor
class TestConvertToNs(unittest.TestCase):
def test_default_conversion(self):
pass
if... | 19.210526 | 59 | 0.747945 | 44 | 365 | 5.840909 | 0.704545 | 0.077821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167123 | 365 | 18 | 60 | 20.277778 | 0.845395 | 0 | 0 | 0 | 0 | 0 | 0.09589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
0b41c9ceb8f0978f4858e354d01d1666f3253d1d | 930 | py | Python | rubiks_cube_gym/__init__.py | DoubleGremlin181/RubiksCubeGym | 08907d0fb7bb1dc4e575c18dc4bc80382d0ab6ed | [
"MIT"
] | 16 | 2020-06-03T16:46:30.000Z | 2021-06-02T17:09:59.000Z | rubiks_cube_gym/__init__.py | DoubleGremlin181/RubiksCubeGym | 08907d0fb7bb1dc4e575c18dc4bc80382d0ab6ed | [
"MIT"
] | 3 | 2020-06-26T21:06:50.000Z | 2022-01-19T08:01:28.000Z | rubiks_cube_gym/__init__.py | DoubleGremlin181/RubiksCubeGym | 08907d0fb7bb1dc4e575c18dc4bc80382d0ab6ed | [
"MIT"
] | 4 | 2020-05-24T13:08:45.000Z | 2021-05-23T21:27:29.000Z | from gym.envs.registration import register
register(
id='rubiks-cube-222-v0',
entry_point='rubiks_cube_gym.envs:RubiksCube222Env',
max_episode_steps=250,
)
register(
id='rubiks-cube-222-lbl-v0',
entry_point='rubiks_cube_gym.envs:RubiksCube222EnvLBL',
max_episode_steps=250,
)
register(
id=... | 21.627907 | 62 | 0.731183 | 125 | 930 | 5.16 | 0.256 | 0.155039 | 0.173643 | 0.217054 | 0.710078 | 0.674419 | 0.674419 | 0.257364 | 0.257364 | 0 | 0 | 0.057428 | 0.13871 | 930 | 43 | 63 | 21.627907 | 0.747815 | 0 | 0 | 0.388889 | 0 | 0 | 0.419979 | 0.356606 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.027778 | 0 | 0.027778 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0b4b9a0dc986ae7ed7e48d82250333b2e33fda6a | 716 | py | Python | app/mapview/__init__.py | zshanahmed/mobileinsight-mobile | ae466c72d17655609539dfec2318b2de5c6786a8 | [
"Apache-2.0"
] | 122 | 2015-01-06T02:31:09.000Z | 2022-03-29T20:55:13.000Z | mapview/__init__.py | Pandinosaurus/garden.mapview | 8c4b838bcb41f0aa90cdee4066684949b2bcee20 | [
"MIT"
] | 73 | 2015-01-23T16:02:53.000Z | 2020-04-18T22:50:42.000Z | mapview/__init__.py | Pandinosaurus/garden.mapview | 8c4b838bcb41f0aa90cdee4066684949b2bcee20 | [
"MIT"
] | 66 | 2015-01-31T20:52:07.000Z | 2022-03-09T10:29:30.000Z | # coding=utf-8
"""
MapView
=======
.. author:: Mathieu Virbel <mat@kivy.org>
MapView is a Kivy widget that display maps.
"""
__all__ = ["Coordinate", "Bbox", "MapView", "MapSource", "MapMarker",
"MapLayer", "MarkerMapLayer", "MapMarkerPopup"]
__version__ = "0.2"
MIN_LATITUDE = -90.
MAX_LATITUDE = 90.
MIN... | 21.69697 | 72 | 0.696927 | 87 | 716 | 5.586207 | 0.597701 | 0.067901 | 0.127572 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021922 | 0.171788 | 716 | 32 | 73 | 22.375 | 0.797639 | 0.199721 | 0 | 0 | 0 | 0 | 0.207447 | 0.047872 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.222222 | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0b68099012adecd2fad0238147a1cedcd72293bf | 1,265 | py | Python | rlbench/tasks/put_bottle_in_fridge.py | guhur/RLBench | e267f9eb036390109b24d9ace0b032407ac7f29d | [
"BSD-3-Clause"
] | null | null | null | rlbench/tasks/put_bottle_in_fridge.py | guhur/RLBench | e267f9eb036390109b24d9ace0b032407ac7f29d | [
"BSD-3-Clause"
] | null | null | null | rlbench/tasks/put_bottle_in_fridge.py | guhur/RLBench | e267f9eb036390109b24d9ace0b032407ac7f29d | [
"BSD-3-Clause"
] | null | null | null | from typing import List, Tuple
import numpy as np
from pyrep.objects.object import Object
from pyrep.objects.proximity_sensor import ProximitySensor
from pyrep.objects.shape import Shape
from rlbench.backend.conditions import DetectedCondition, NothingGrasped
from rlbench.backend.task import Task
class PutBottleInFri... | 36.142857 | 80 | 0.641107 | 156 | 1,265 | 5.121795 | 0.410256 | 0.015019 | 0.015019 | 0.050063 | 0.022528 | 0.022528 | 0.022528 | 0 | 0 | 0 | 0 | 0.011803 | 0.263241 | 1,265 | 34 | 81 | 37.205882 | 0.845494 | 0 | 0 | 0 | 0 | 0 | 0.149407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.259259 | 0.148148 | 0.62963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
0b7d3815bd6c43cd286782ee978afd73d3ebf673 | 805 | py | Python | Medium/SubrectangleQueries.py | a-shah8/LeetCode | a654e478f51b2254f7b49055beba6b5675bc5223 | [
"MIT"
] | 1 | 2021-06-02T15:03:41.000Z | 2021-06-02T15:03:41.000Z | Medium/SubrectangleQueries.py | a-shah8/LeetCode | a654e478f51b2254f7b49055beba6b5675bc5223 | [
"MIT"
] | null | null | null | Medium/SubrectangleQueries.py | a-shah8/LeetCode | a654e478f51b2254f7b49055beba6b5675bc5223 | [
"MIT"
] | null | null | null | class SubrectangleQueries:
def __init__(self, rectangle: List[List[int]]):
self.r = copy.deepcopy(rectangle)
self.cache = collections.deque()
def updateSubrectangle(self, row1: int, col1: int, row2: int, col2: int, newValue: int) -> None:
self.cache.appendleft((row1, col1, row2, col2, ... | 33.541667 | 100 | 0.632298 | 98 | 805 | 5.142857 | 0.418367 | 0.053571 | 0.071429 | 0.095238 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034711 | 0.248447 | 805 | 23 | 101 | 35 | 0.798347 | 0.240994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0b9668e9ad088ac4bd796dab886156ea9b19a58a | 88 | py | Python | domains/fetch/lazy_print.py | patras91/rae_release | 0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30 | [
"BSD-3-Clause"
] | 1 | 2021-09-28T12:56:56.000Z | 2021-09-28T12:56:56.000Z | domains/fetch/lazy_print.py | patras91/rae_release | 0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30 | [
"BSD-3-Clause"
] | null | null | null | domains/fetch/lazy_print.py | patras91/rae_release | 0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T16:30:39.000Z | 2022-03-31T16:30:39.000Z | if __name__=="__main__":
for i in range(1100, 1124):
print("\"problem{}\"".format(i)) | 29.333333 | 34 | 0.636364 | 13 | 88 | 3.692308 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 0.113636 | 88 | 3 | 34 | 29.333333 | 0.512821 | 0 | 0 | 0 | 0 | 0 | 0.101124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 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 | 2 |
0badce33ac10bc13ea4c5fbdfe577bb0c9e0dc9f | 1,232 | py | Python | ngraph/frontends/tensorflow/examples/minimal.py | NervanaSystems/ngraph-python | ac032c83c7152b615a9ad129d54d350f9d6a2986 | [
"Apache-2.0"
] | 18 | 2018-03-19T04:16:49.000Z | 2021-02-08T14:44:58.000Z | ngraph/frontends/tensorflow/examples/minimal.py | rsumner31/ngraph | 5e5c9bb9f24d95aee190b914dd2d44122fc3be53 | [
"Apache-2.0"
] | 2 | 2019-04-16T06:41:49.000Z | 2019-05-06T14:08:13.000Z | ngraph/frontends/tensorflow/examples/minimal.py | rsumner31/ngraph | 5e5c9bb9f24d95aee190b914dd2d44122fc3be53 | [
"Apache-2.0"
] | 11 | 2018-06-16T15:59:08.000Z | 2021-03-06T00:45:30.000Z | # ******************************************************************************
# Copyright 2017-2018 Intel Corporation
#
# 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.apa... | 32.421053 | 80 | 0.668831 | 164 | 1,232 | 4.914634 | 0.573171 | 0.074442 | 0.032258 | 0.039702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013109 | 0.133117 | 1,232 | 37 | 81 | 33.297297 | 0.741573 | 0.61526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.538462 | 0 | 0.538462 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
0bb02c3f2a92040c5f86634d90dd55a44b12c677 | 1,332 | py | Python | herder/controllers/account.py | cc-archive/i18nedit | 05de6cc0ac033b486b72991823b7660b8f894da8 | [
"MIT"
] | null | null | null | herder/controllers/account.py | cc-archive/i18nedit | 05de6cc0ac033b486b72991823b7660b8f894da8 | [
"MIT"
] | null | null | null | herder/controllers/account.py | cc-archive/i18nedit | 05de6cc0ac033b486b72991823b7660b8f894da8 | [
"MIT"
] | null | null | null | import logging
from authkit.authorize.pylons_adaptors import authorize
from authkit.permissions import HasAuthKitRole, ValidAuthKitUser
from herder.lib.base import *
log = logging.getLogger(__name__)
class AccountController(BaseController):
@authorize(ValidAuthKitUser())
@with_user_info
def login(self)... | 25.132075 | 68 | 0.638889 | 136 | 1,332 | 6.154412 | 0.507353 | 0.086022 | 0.136201 | 0.082437 | 0.095579 | 0.095579 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271772 | 1,332 | 52 | 69 | 25.615385 | 0.862887 | 0.125375 | 0 | 0.148148 | 0 | 0 | 0.151986 | 0.130397 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0.037037 | 0.148148 | 0.148148 | 0.592593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
0bb0a7908a07f83935b44f9b0be08ec798d7e06f | 547 | py | Python | setup.py | yanchao727/demo_django_app | 3a0d475a54d201a353145163d7f2414a25842879 | [
"BSD-3-Clause"
] | null | null | null | setup.py | yanchao727/demo_django_app | 3a0d475a54d201a353145163d7f2414a25842879 | [
"BSD-3-Clause"
] | null | null | null | setup.py | yanchao727/demo_django_app | 3a0d475a54d201a353145163d7f2414a25842879 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import demo_django_app
version = demo_django_app.__version__
setup(
name='demo_django_app',
version=version,
author="yanchao",
author_ema... | 17.645161 | 42 | 0.667276 | 69 | 547 | 5.014493 | 0.652174 | 0.144509 | 0.187861 | 0.17341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016204 | 0.210238 | 547 | 30 | 43 | 18.233333 | 0.784722 | 0.076782 | 0 | 0.086957 | 0 | 0 | 0.188867 | 0.049702 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.26087 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
0bbf5987d3c74ab0bd742443d90d4fe1594032c8 | 766 | py | Python | companionpages/home/models.py | jaseiler/researchcompendia | 28376abad6385f5a0cef6103673722c1b54df8f8 | [
"MIT"
] | 3 | 2015-02-25T21:38:53.000Z | 2019-05-24T16:26:20.000Z | companionpages/home/models.py | jaseiler/researchcompendia | 28376abad6385f5a0cef6103673722c1b54df8f8 | [
"MIT"
] | null | null | null | companionpages/home/models.py | jaseiler/researchcompendia | 28376abad6385f5a0cef6103673722c1b54df8f8 | [
"MIT"
] | null | null | null | from django.core.urlresolvers import reverse
from django.db import models
from django.utils.translation import ugettext_lazy as _
from model_utils.models import TimeStampedModel
class Faq(TimeStampedModel):
# inherits created and modified DateTimeFields fields from TimeStampedModel
question = models.TextFiel... | 31.916667 | 89 | 0.72846 | 97 | 766 | 5.597938 | 0.639175 | 0.055249 | 0.066298 | 0.088398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0144 | 0.184073 | 766 | 23 | 90 | 33.304348 | 0.8544 | 0.0953 | 0 | 0 | 0 | 0 | 0.118669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 0.8125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
e7e54f34c512cbb256d60765bbabdcd588144076 | 1,299 | py | Python | lantz/drivers/digital_loggers/webpowerswitch7.py | mtsolmn/lantz-drivers | f48caf9000ddd08f2abb837d832e341410af4788 | [
"BSD-3-Clause"
] | 4 | 2019-05-04T00:10:53.000Z | 2020-10-22T18:08:40.000Z | lantz/drivers/digital_loggers/webpowerswitch7.py | mtsolmn/lantz-drivers | f48caf9000ddd08f2abb837d832e341410af4788 | [
"BSD-3-Clause"
] | 3 | 2019-07-12T13:44:17.000Z | 2020-10-22T19:32:08.000Z | lantz/drivers/digital_loggers/webpowerswitch7.py | mtsolmn/lantz-drivers | f48caf9000ddd08f2abb837d832e341410af4788 | [
"BSD-3-Clause"
] | 9 | 2019-04-03T17:07:03.000Z | 2021-02-15T21:53:55.000Z | import re
import requests
from lantz.core import Action, DictFeat, Driver
class WebPowerSwitch7(Driver):
timeout = 1
def __init__(self, host='192.168.1.20:80', user='admin', pwd='1234', *args, **kwargs):
self.host, self.user, self.pwd = host, user, pwd
super().__init__(*args, **kwargs)
... | 32.475 | 90 | 0.582756 | 186 | 1,299 | 3.94086 | 0.446237 | 0.032742 | 0.032742 | 0.040928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026236 | 0.237105 | 1,299 | 39 | 91 | 33.307692 | 0.713421 | 0 | 0 | 0 | 0 | 0 | 0.080062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.103448 | 0.034483 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
e7e65b9fa962662dfb5dc5f61b7be35baea7f557 | 336 | py | Python | duld/settings.py | legnaleurc/acdul | cb7b64dc32a592bd5edaa9f60c4297be707f3537 | [
"MIT"
] | 1 | 2015-07-24T15:24:36.000Z | 2015-07-24T15:24:36.000Z | duld/settings.py | legnaleurc/acdul | cb7b64dc32a592bd5edaa9f60c4297be707f3537 | [
"MIT"
] | 1 | 2016-08-28T07:35:35.000Z | 2016-10-09T20:09:11.000Z | duld/settings.py | legnaleurc/acdul | cb7b64dc32a592bd5edaa9f60c4297be707f3537 | [
"MIT"
] | null | null | null | import sys
import yaml
class Settings(object):
def __init__(self):
self._data = None
def __getitem__(self, key):
return self._data[key]
def reload(self, path):
with open(path, mode='r', encoding='utf-8') as fin:
self._data = yaml.safe_load(fin)
sys.modules[__name_... | 16.8 | 59 | 0.616071 | 45 | 336 | 4.244444 | 0.644444 | 0.125654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004016 | 0.258929 | 336 | 19 | 60 | 17.684211 | 0.763052 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e7e9ca915c8b0b6afb217ab3e0b6f18674bf6ca6 | 1,069 | py | Python | django_codemod/visitors/encoding.py | cvanderkolk/django-codemod | 9d03ebbf98285e408bacf7553c886fbf4960b720 | [
"MIT"
] | null | null | null | django_codemod/visitors/encoding.py | cvanderkolk/django-codemod | 9d03ebbf98285e408bacf7553c886fbf4960b720 | [
"MIT"
] | 2 | 2022-01-19T14:30:11.000Z | 2022-01-28T14:32:34.000Z | django_codemod/visitors/encoding.py | jayvdb/django-codemod | 8626e6bb5383d9ef3b733861d6996213d90cf26d | [
"MIT"
] | null | null | null | from django_codemod.constants import DJANGO_20, DJANGO_30, DJANGO_40
from django_codemod.visitors.base import BaseSimpleFuncRenameTransformer
class ForceTextTransformer(BaseSimpleFuncRenameTransformer):
"""Resolve deprecation of ``django.utils.encoding.force_text``."""
deprecated_in = DJANGO_30
removed_i... | 35.633333 | 87 | 0.785781 | 121 | 1,069 | 6.628099 | 0.280992 | 0.109726 | 0.189526 | 0.190773 | 0.634663 | 0.597257 | 0.51995 | 0.174564 | 0.174564 | 0.174564 | 0 | 0.022436 | 0.124415 | 1,069 | 29 | 88 | 36.862069 | 0.834402 | 0.186155 | 0 | 0.235294 | 0 | 0 | 0.241218 | 0.241218 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
e7f687fd44274fba12e96f8be87b3ecd0ee74113 | 3,934 | py | Python | Board.py | FlubOtic/Connect-Four | bb3df65db62c42dc895325b8a56bdc6221a233e9 | [
"Unlicense"
] | null | null | null | Board.py | FlubOtic/Connect-Four | bb3df65db62c42dc895325b8a56bdc6221a233e9 | [
"Unlicense"
] | null | null | null | Board.py | FlubOtic/Connect-Four | bb3df65db62c42dc895325b8a56bdc6221a233e9 | [
"Unlicense"
] | null | null | null | class Board:
def __init__(self):
self.plot = [["Empty" for y in range(6)] for x in range(7)]
self.won = False
def set_plot(self, location, color):
self.plot[location[0]][location[1]] = color
self.won = self.horizontal_check(location, color)
def available_plot(self,... | 34.814159 | 94 | 0.447128 | 474 | 3,934 | 3.668776 | 0.090717 | 0.027602 | 0.069005 | 0.075906 | 0.749856 | 0.716504 | 0.680851 | 0.680851 | 0.680851 | 0.680851 | 0 | 0.054628 | 0.43696 | 3,934 | 113 | 95 | 34.814159 | 0.730474 | 0 | 0 | 0.557895 | 0 | 0 | 0.005083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094737 | false | 0 | 0 | 0 | 0.242105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e7fb30889fc1d93924d803c723bf0aff954bd34b | 290 | py | Python | rule.py | rgrannell1/aleph | 775e5b0297087e2ada454696f537accbf23e7331 | [
"Unlicense"
] | 1 | 2022-01-30T15:13:06.000Z | 2022-01-30T15:13:06.000Z | rule.py | rgrannell1/aleph | 775e5b0297087e2ada454696f537accbf23e7331 | [
"Unlicense"
] | null | null | null | rule.py | rgrannell1/aleph | 775e5b0297087e2ada454696f537accbf23e7331 | [
"Unlicense"
] | null | null | null |
import comby
import logging
class Rule:
"""Contains rule information, describing some aspect of the code we want to extract"""
def log(name: str, match: comby.Match):
"""Log debug information for matched rule data"""
logging.debug(f"Matched {name}\n\n{match.matched}\n\n")
| 22.307692 | 88 | 0.706897 | 44 | 290 | 4.659091 | 0.636364 | 0.019512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 290 | 12 | 89 | 24.166667 | 0.854167 | 0.427586 | 0 | 0 | 0 | 0 | 0.24026 | 0.188312 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | 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 | 1 | 0 | 0 | 2 |
f0012142802ebb0a912cdde126ddb140fd094242 | 820 | py | Python | py_backwards/transformers/print_function.py | luk3yx/py-backwards | 548c8e9f83619f0efb683e8b7f7d2aa1c594ec62 | [
"MIT"
] | null | null | null | py_backwards/transformers/print_function.py | luk3yx/py-backwards | 548c8e9f83619f0efb683e8b7f7d2aa1c594ec62 | [
"MIT"
] | null | null | null | py_backwards/transformers/print_function.py | luk3yx/py-backwards | 548c8e9f83619f0efb683e8b7f7d2aa1c594ec62 | [
"MIT"
] | null | null | null | from ..utils.snippet import snippet
from ..utils.tree import insert_at
from .. import ast
from .base import BaseNodeTransformer
@snippet
def _import():
from six import print_ as _py_backwards_print
class PrintFunctionTransformer(BaseNodeTransformer):
"""Compiles:
print('Hello world', end='!\n')
To... | 27.333333 | 59 | 0.647561 | 103 | 820 | 4.951456 | 0.427184 | 0.064706 | 0.094118 | 0.070588 | 0.215686 | 0.141176 | 0.141176 | 0 | 0 | 0 | 0 | 0.004762 | 0.231707 | 820 | 29 | 60 | 28.275862 | 0.804762 | 0.171951 | 0 | 0.111111 | 0 | 0 | 0.040299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.388889 | 0 | 0.833333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f0162e3410a6644c4bb65721745e8654479b3795 | 371 | py | Python | 6 kyu/Simple nearest prime.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 6 kyu/Simple nearest prime.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 6 kyu/Simple nearest prime.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | def solve(n):
if n%2 and is_prime(n):
return n
index=0
while index<n:
index+=1
if ((n-index)%2 and is_prime(n-index)):
return n-index
if ((n+index)%2 and is_prime(n+index)):
return n+index
def is_prime(n):
for i in range(2, int(n**0.5)+1):
... | 24.733333 | 47 | 0.506739 | 65 | 371 | 2.830769 | 0.323077 | 0.26087 | 0.173913 | 0.179348 | 0.467391 | 0.402174 | 0.402174 | 0.402174 | 0.402174 | 0.402174 | 0 | 0.041841 | 0.355795 | 371 | 15 | 48 | 24.733333 | 0.728033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
f02114d6bee1f9bc8d0f571d5f4498fc9df1120a | 446 | py | Python | Beecrowd/Python/1051.py | felipemsalles/Programming-Studies | 63100fb22a165c4582b10a95d5a583f9bc1e990f | [
"MIT"
] | null | null | null | Beecrowd/Python/1051.py | felipemsalles/Programming-Studies | 63100fb22a165c4582b10a95d5a583f9bc1e990f | [
"MIT"
] | null | null | null | Beecrowd/Python/1051.py | felipemsalles/Programming-Studies | 63100fb22a165c4582b10a95d5a583f9bc1e990f | [
"MIT"
] | null | null | null | n = float(input())
if n <= 2000.00:
i = 0
print('Isento')
if 2000.00 < n <= 3000.00:
n8 = n - 2000.00
i = n8 * (8/100)
if 3000.00 < n <= 4500.00:
i8 = (8 / 100) * 1000.00
r18 = n - 3000.00
i = r18 * (18 / 100) + i8
if n > 4500.00:
i8 = (8 / 100) * 1000.00
i18 = (18 / 100) * 1500.0... | 19.391304 | 35 | 0.452915 | 81 | 446 | 2.493827 | 0.320988 | 0.074257 | 0.10396 | 0.118812 | 0.287129 | 0.188119 | 0.188119 | 0.188119 | 0 | 0 | 0 | 0.42517 | 0.340807 | 446 | 23 | 36 | 19.391304 | 0.261905 | 0 | 0 | 0.105263 | 0 | 0 | 0.033557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
f02aa4e4166098dd3cfd05f0784172d6b0438bc3 | 1,953 | py | Python | pegas_web/passport/views.py | landges/PEGAS-EDM | 109b10ea3d7c04b21b2abed225ac5427fce06594 | [
"MIT"
] | null | null | null | pegas_web/passport/views.py | landges/PEGAS-EDM | 109b10ea3d7c04b21b2abed225ac5427fce06594 | [
"MIT"
] | null | null | null | pegas_web/passport/views.py | landges/PEGAS-EDM | 109b10ea3d7c04b21b2abed225ac5427fce06594 | [
"MIT"
] | null | null | null | from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import render, redirect
from django.views.generic.base import View
from django.core.files import File
from .models import ... | 35.509091 | 100 | 0.66257 | 229 | 1,953 | 5.567686 | 0.414847 | 0.054902 | 0.04 | 0.049412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008808 | 0.24424 | 1,953 | 55 | 101 | 35.509091 | 0.855014 | 0.067588 | 0 | 0 | 0 | 0 | 0.059471 | 0.014317 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.119048 | 0.309524 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
f032aca632597b8b9629415faadc2957385607c4 | 440 | py | Python | tests/integration/test_cli_package.py | yeraydiazdiaz/sphinx-theme-builder | e64a0ed729fd3c4f7b6ec692bc1d0d0a41b14f1b | [
"MIT"
] | 16 | 2021-11-09T11:16:48.000Z | 2022-03-30T15:13:53.000Z | tests/integration/test_cli_package.py | yeraydiazdiaz/sphinx-theme-builder | e64a0ed729fd3c4f7b6ec692bc1d0d0a41b14f1b | [
"MIT"
] | 17 | 2021-11-15T23:27:15.000Z | 2022-03-28T07:46:14.000Z | tests/integration/test_cli_package.py | yeraydiazdiaz/sphinx-theme-builder | e64a0ed729fd3c4f7b6ec692bc1d0d0a41b14f1b | [
"MIT"
] | 5 | 2021-11-11T19:56:12.000Z | 2022-03-27T12:30:29.000Z | import sys
from unittest import mock
from click import Group
from click.testing import CliRunner
class TestPackageCommand:
"""`stb package`"""
def test_calls_build(self, runner: CliRunner, cli: Group) -> None:
with mock.patch("subprocess.run") as mocked_run:
runner.invoke(cli, ["package"... | 24.444444 | 70 | 0.652273 | 54 | 440 | 5.203704 | 0.648148 | 0.064057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225 | 440 | 17 | 71 | 25.882353 | 0.824047 | 0.029545 | 0 | 0 | 0 | 0 | 0.066508 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f0574edd44b18faf339df0e542c5b88338a0e781 | 428 | py | Python | tests/core_tests.py | kianhean/ShiokBot | 948417ead579d7476350592f0a960c2c0ea8b757 | [
"BSD-2-Clause"
] | 6 | 2017-04-06T02:55:16.000Z | 2020-01-27T05:14:12.000Z | tests/core_tests.py | kianhean/ShiokBot | 948417ead579d7476350592f0a960c2c0ea8b757 | [
"BSD-2-Clause"
] | 13 | 2016-09-12T14:24:22.000Z | 2021-10-22T01:19:43.000Z | tests/core_tests.py | kianhean/ShiokBot | 948417ead579d7476350592f0a960c2c0ea8b757 | [
"BSD-2-Clause"
] | 1 | 2016-09-12T14:01:49.000Z | 2016-09-12T14:01:49.000Z | """ TEST BOT """
# -*- coding: utf-8 -*-
import unittest
from .context import bot
class BasicTestSuite(unittest.TestCase):
"""Basic test cases."""
def test_connnect_gov_api(self):
""" Testing Traffic Functions """
#test_api = bot.core.connnect_gov_api('https://api.data.gov.sg/v1/transport/tr... | 22.526316 | 100 | 0.661215 | 55 | 428 | 4.854545 | 0.672727 | 0.082397 | 0.104869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014409 | 0.189252 | 428 | 18 | 101 | 23.777778 | 0.755043 | 0.471963 | 0 | 0 | 0 | 0 | 0.038835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
f074ab27197193de6366b0c99b0b414541cb4ecb | 521 | py | Python | phenoai/models/__init__.py | Daniangio/pheno_phases | c7229f4ec56fea42988768b02e8deb8615f683fa | [
"MIT"
] | null | null | null | phenoai/models/__init__.py | Daniangio/pheno_phases | c7229f4ec56fea42988768b02e8deb8615f683fa | [
"MIT"
] | null | null | null | phenoai/models/__init__.py | Daniangio/pheno_phases | c7229f4ec56fea42988768b02e8deb8615f683fa | [
"MIT"
] | null | null | null | import json
from enum import Enum
from settings.constants import VITIGEOSS_CONFIG_FILE
from phenoai.models.transformerlstm import TransformerLSTM
class ModelsEnum(Enum):
TRANSFORMER_LSTM = TransformerLSTM, 'transformer_lstm'
@staticmethod
def make(model, place, variety):
with open(VITIGEOSS_CONFI... | 34.733333 | 89 | 0.727447 | 62 | 521 | 5.983871 | 0.548387 | 0.080863 | 0.102426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004619 | 0.168906 | 521 | 15 | 90 | 34.733333 | 0.852194 | 0 | 0 | 0 | 0 | 0 | 0.132184 | 0.065134 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
f07a990ecf3b935b4f4bca22fe0a62782231fbd9 | 3,051 | py | Python | src/app/voltdb/voltdb_src/tests/sqlcoverage/config/postgis-cte-config.py | OpenMPDK/SMDK | 8f19d32d999731242cb1ab116a4cb445d9993b15 | [
"BSD-3-Clause"
] | 44 | 2022-03-16T08:32:31.000Z | 2022-03-31T16:02:35.000Z | src/app/voltdb/voltdb_src/tests/sqlcoverage/config/postgis-cte-config.py | H2O0Lee/SMDK | eff49bc17a55a83ea968112feb2e2f2ea18c4ff5 | [
"BSD-3-Clause"
] | 1 | 2022-03-29T02:30:28.000Z | 2022-03-30T03:40:46.000Z | src/app/voltdb/voltdb_src/tests/sqlcoverage/config/postgis-cte-config.py | H2O0Lee/SMDK | eff49bc17a55a83ea968112feb2e2f2ea18c4ff5 | [
"BSD-3-Clause"
] | 18 | 2022-03-19T04:41:04.000Z | 2022-03-31T03:32:12.000Z | #!/usr/bin/env python
# This file is part of VoltDB.
# Copyright (C) 2008-2020 VoltDB 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 limitati... | 46.938462 | 88 | 0.634218 | 387 | 3,051 | 4.994832 | 0.462532 | 0.045525 | 0.034144 | 0.035178 | 0.15313 | 0.110709 | 0.110709 | 0 | 0 | 0 | 0 | 0.006103 | 0.248115 | 3,051 | 64 | 89 | 47.671875 | 0.83653 | 0.766634 | 0 | 0.214286 | 0 | 0 | 0.468563 | 0.116766 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0 | true | 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 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f07c8b5984574e87902340ea8702eb7c1f122d6b | 1,402 | py | Python | py/lvmspec/quicklook/quickfiberflat.py | sdss/lvmspec | befd6991537c4947fdf63ca262937f2bb845148f | [
"BSD-3-Clause"
] | null | null | null | py/lvmspec/quicklook/quickfiberflat.py | sdss/lvmspec | befd6991537c4947fdf63ca262937f2bb845148f | [
"BSD-3-Clause"
] | null | null | null | py/lvmspec/quicklook/quickfiberflat.py | sdss/lvmspec | befd6991537c4947fdf63ca262937f2bb845148f | [
"BSD-3-Clause"
] | null | null | null | """
lvmspec.quickfiberflat
Here will be the fiberflat routines specific to quicklook.
G. Dhungana, 2016
"""
import numpy as np
def compute_fiberflat():
"""
computes fiberflat: A boss like algorithm writing in progress and will fit in here.
Args:
"""
def apply_fiberflat(frame,fiberflat):
""... | 30.478261 | 256 | 0.708274 | 193 | 1,402 | 5.129534 | 0.440415 | 0.145455 | 0.076768 | 0.036364 | 0.056566 | 0.056566 | 0 | 0 | 0 | 0 | 0 | 0.013066 | 0.18117 | 1,402 | 45 | 257 | 31.155556 | 0.849303 | 0.552068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f08025bf0eabbe88e6c6bb47222194f730001d68 | 281 | py | Python | PyInquirer/prompts/__init__.py | kevindurston21/PyInquirer | 48ecba84d62c6232a625d44e7f8cc6084f25b858 | [
"MIT"
] | 1,587 | 2018-06-14T03:05:42.000Z | 2022-03-31T17:51:51.000Z | PyInquirer/prompts/__init__.py | kevindurston21/PyInquirer | 48ecba84d62c6232a625d44e7f8cc6084f25b858 | [
"MIT"
] | 131 | 2018-06-27T12:38:34.000Z | 2022-03-09T16:26:27.000Z | PyInquirer/prompts/__init__.py | kevindurston21/PyInquirer | 48ecba84d62c6232a625d44e7f8cc6084f25b858 | [
"MIT"
] | 257 | 2018-07-03T13:47:08.000Z | 2022-03-24T19:49:46.000Z | class PromptParameterException(ValueError):
def __init__(self, message, errors=None):
# Call the base class constructor with the parameters it needs
super(PromptParameterException, self).__init__(
'You must provide a `%s` value' % message, errors)
| 40.142857 | 70 | 0.701068 | 31 | 281 | 6.096774 | 0.774194 | 0.137566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217082 | 281 | 6 | 71 | 46.833333 | 0.859091 | 0.213523 | 0 | 0 | 0 | 0 | 0.13242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f0824921bebdf74b0ea6319dd75ab9d0c1b1435d | 2,509 | py | Python | pysnmp/HM2-PLATFORM-SFLOW-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/HM2-PLATFORM-SFLOW-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/HM2-PLATFORM-SFLOW-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 HM2-PLATFORM-SFLOW-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HM2-PLATFORM-SFLOW-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:19:31 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 104.541667 | 477 | 0.797927 | 247 | 2,509 | 8.097166 | 0.469636 | 0.092 | 0.024 | 0.0285 | 0.2875 | 0.1885 | 0.1885 | 0.1885 | 0.1885 | 0.182 | 0 | 0.066581 | 0.07214 | 2,509 | 23 | 478 | 109.086957 | 0.792526 | 0.134715 | 0 | 0 | 0 | 0 | 0.275671 | 0.030527 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
b2bf0b103549fbfb1ca1d3743d8a2b340ca07174 | 5,560 | py | Python | data/data_types.py | CASL/VERAview | 89b18f239ca5228185b80d5392068981d7733d3b | [
"BSD-3-Clause"
] | 7 | 2017-04-21T05:35:16.000Z | 2022-02-28T20:14:42.000Z | data/data_types.py | CASL/VERAview | 89b18f239ca5228185b80d5392068981d7733d3b | [
"BSD-3-Clause"
] | 2 | 2019-02-27T15:25:34.000Z | 2021-05-26T17:01:59.000Z | data/data_types.py | CASL/VERAview | 89b18f239ca5228185b80d5392068981d7733d3b | [
"BSD-3-Clause"
] | 3 | 2019-07-09T08:31:34.000Z | 2022-03-08T03:18:48.000Z | #!/usr/bin/env python
# $Id$
#------------------------------------------------------------------------
# NAME: data_types.py -
# HISTORY: -
# 2019-01-16 leerw@ornl.gov -
#------------------------------------------------------------------------
import bisect, copy, logging, math, os, re, sys
import numpy ... | 31.771429 | 75 | 0.380396 | 408 | 5,560 | 5.051471 | 0.303922 | 0.032023 | 0.029112 | 0.046094 | 0.447841 | 0.425522 | 0.425522 | 0.425522 | 0.340126 | 0.340126 | 0 | 0.006591 | 0.235971 | 5,560 | 174 | 76 | 31.954023 | 0.478578 | 0.674101 | 0 | 0.463415 | 0 | 0 | 0.05273 | 0.029777 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195122 | false | 0.073171 | 0.097561 | 0 | 0.487805 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b2f46380976fd825a6a0ee94717a238411bbc719 | 541 | py | Python | traffic_monitor/migrations/0002_auto_20200302_1509.py | genonfire/django-traffic-monitor | 97381f4b4c3c4e4a670630cfc5015610928f3f6d | [
"MIT"
] | 4 | 2020-06-05T02:32:38.000Z | 2021-03-16T14:57:35.000Z | traffic_monitor/migrations/0002_auto_20200302_1509.py | genonfire/django-traffic-monitor | 97381f4b4c3c4e4a670630cfc5015610928f3f6d | [
"MIT"
] | null | null | null | traffic_monitor/migrations/0002_auto_20200302_1509.py | genonfire/django-traffic-monitor | 97381f4b4c3c4e4a670630cfc5015610928f3f6d | [
"MIT"
] | 1 | 2021-01-22T20:01:52.000Z | 2021-01-22T20:01:52.000Z | # Generated by Django 2.2.10 on 2020-03-02 06:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('traffic_monitor', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='traffic',
name='rx_read',
... | 22.541667 | 52 | 0.574861 | 54 | 541 | 5.648148 | 0.62963 | 0.118033 | 0.15082 | 0.177049 | 0.498361 | 0.498361 | 0 | 0 | 0 | 0 | 0 | 0.058981 | 0.310536 | 541 | 23 | 53 | 23.521739 | 0.758713 | 0.085028 | 0 | 0.470588 | 1 | 0 | 0.111562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b2ff9f0c52e8da1106b6bbd6a8822ed6394111fc | 313 | py | Python | pymc3/exceptions.py | katosh/pymc3 | 38fa415c15b0c0469fbd9cad3a3b9ba974fc8733 | [
"Apache-2.0"
] | null | null | null | pymc3/exceptions.py | katosh/pymc3 | 38fa415c15b0c0469fbd9cad3a3b9ba974fc8733 | [
"Apache-2.0"
] | null | null | null | pymc3/exceptions.py | katosh/pymc3 | 38fa415c15b0c0469fbd9cad3a3b9ba974fc8733 | [
"Apache-2.0"
] | null | null | null | __all__ = ['SamplingError', 'IncorrectArgumentsError', 'TraceDirectoryError']
class SamplingError(RuntimeError):
pass
class IncorrectArgumentsError(ValueError):
pass
class TraceDirectoryError(ValueError):
'''Error from trying to load a trace from an incorrectly-structured directory,'''
pass
| 22.357143 | 85 | 0.763578 | 28 | 313 | 8.392857 | 0.678571 | 0.076596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146965 | 313 | 13 | 86 | 24.076923 | 0.88015 | 0.239617 | 0 | 0.428571 | 0 | 0 | 0.237069 | 0.099138 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.428571 | 0 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
650359593aeffb1bdf1bd5066da190286b1bf3d1 | 3,355 | py | Python | python/mxnet/gluon/probability/distributions/gumbel.py | sandutsar/incubator-mxnet | 3ae7ddfd9c99f40a33c4cb716b3810e5463b810a | [
"Apache-2.0",
"MIT"
] | 1 | 2021-11-09T01:40:17.000Z | 2021-11-09T01:40:17.000Z | python/mxnet/gluon/probability/distributions/gumbel.py | sandutsar/incubator-mxnet | 3ae7ddfd9c99f40a33c4cb716b3810e5463b810a | [
"Apache-2.0",
"MIT"
] | 4 | 2021-03-30T13:16:50.000Z | 2021-10-04T08:49:33.000Z | python/mxnet/gluon/probability/distributions/gumbel.py | sandutsar/incubator-mxnet | 3ae7ddfd9c99f40a33c4cb716b3810e5463b810a | [
"Apache-2.0",
"MIT"
] | 1 | 2019-12-11T19:22:13.000Z | 2019-12-11T19:22:13.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 32.572816 | 85 | 0.653055 | 444 | 3,355 | 4.777027 | 0.355856 | 0.046676 | 0.033946 | 0.037718 | 0.114097 | 0.093352 | 0.093352 | 0.093352 | 0.093352 | 0.093352 | 0 | 0.004783 | 0.252161 | 3,355 | 102 | 86 | 32.892157 | 0.840574 | 0.331148 | 0 | 0.122807 | 0 | 0 | 0.00641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192982 | false | 0 | 0.105263 | 0.105263 | 0.54386 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
6504a52cd9bca73257a29de913076003e0ca1680 | 381 | py | Python | django_actionable_messages/msteams_cards/cards.py | utsurius/django-actionable-messages | 5b190bce74afcbe7fc41039f8cf87b04173208e6 | [
"MIT"
] | null | null | null | django_actionable_messages/msteams_cards/cards.py | utsurius/django-actionable-messages | 5b190bce74afcbe7fc41039f8cf87b04173208e6 | [
"MIT"
] | null | null | null | django_actionable_messages/msteams_cards/cards.py | utsurius/django-actionable-messages | 5b190bce74afcbe7fc41039f8cf87b04173208e6 | [
"MIT"
] | null | null | null | from django_actionable_messages.mixins import HERO_CARD, THUMBNAIL_CARD
from django_actionable_messages.msteams_cards.mixins import CardMixin
class HeroCard(CardMixin):
card_type = HERO_CARD
content_type = "application/vnd.microsoft.card.hero"
class ThumbnailCard(CardMixin):
card_type = THUMBNAIL_CARD
... | 29.307692 | 71 | 0.813648 | 47 | 381 | 6.319149 | 0.425532 | 0.06734 | 0.13468 | 0.188552 | 0.282828 | 0.282828 | 0.282828 | 0 | 0 | 0 | 0 | 0 | 0.11811 | 381 | 12 | 72 | 31.75 | 0.883929 | 0 | 0 | 0 | 0 | 0 | 0.19685 | 0.19685 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
650a0bde1119dbb01bd81d42e18d6a08971d2bd8 | 551 | py | Python | class5/class-05.py | danhpaiva/basic-python-course-trybe | 7ac712a9dbf14797e2d17e8db058dcda9cc02fb5 | [
"MIT"
] | 1 | 2020-10-30T13:50:18.000Z | 2020-10-30T13:50:18.000Z | class5/class-05.py | danhpaiva/basic-python-course-trybe | 7ac712a9dbf14797e2d17e8db058dcda9cc02fb5 | [
"MIT"
] | null | null | null | class5/class-05.py | danhpaiva/basic-python-course-trybe | 7ac712a9dbf14797e2d17e8db058dcda9cc02fb5 | [
"MIT"
] | null | null | null | age = 27
print('My age is: ' + str(age))
print('My age is: {}'.format(age))
print(f'My age is: {age}') # More efficient
name = 'Daniel Paiva'
print(f'My name is {name} and I am {age} years old')
name = 'Daniel Paiva qnoqicnqicnqcinspncipcnpqcnqpcnqpcq'
print(f'My name is {name:.12} and I am {age:05} years old')... | 21.192308 | 78 | 0.646098 | 99 | 551 | 3.555556 | 0.414141 | 0.102273 | 0.059659 | 0.068182 | 0.102273 | 0.102273 | 0 | 0 | 0 | 0 | 0 | 0.035011 | 0.170599 | 551 | 25 | 79 | 22.04 | 0.73523 | 0.025408 | 0 | 0 | 0 | 0 | 0.637383 | 0.065421 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.615385 | 0 | 0 | 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 | 1 | 0 | 2 |
650a192c3b5a207445403e7f90811e3b0e2f62f5 | 741 | py | Python | apps/controllerx/cx_core/integration/deconz.py | Digital-Lemon/controllerx | 6b90ede37fd7bfaa2771862e326bee48f7650d64 | [
"MIT"
] | null | null | null | apps/controllerx/cx_core/integration/deconz.py | Digital-Lemon/controllerx | 6b90ede37fd7bfaa2771862e326bee48f7650d64 | [
"MIT"
] | null | null | null | apps/controllerx/cx_core/integration/deconz.py | Digital-Lemon/controllerx | 6b90ede37fd7bfaa2771862e326bee48f7650d64 | [
"MIT"
] | null | null | null | from typing import Optional
from appdaemon.plugins.hass.hassapi import Hass # type:ignore
from cx_core.integration import Integration, TypeActionsMapping
class DeCONZIntegration(Integration):
def get_name(self) -> str:
return "deconz"
def get_actions_mapping(self) -> Optional[TypeActionsMapping]:
... | 32.217391 | 80 | 0.709852 | 89 | 741 | 5.730337 | 0.438202 | 0.109804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191633 | 741 | 22 | 81 | 33.681818 | 0.851419 | 0.014845 | 0 | 0 | 0 | 0 | 0.037088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.133333 | 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 | 1 | 1 | 0 | 0 | 2 |
650eb3890ba284ae67d4636c1ddf769b20c5511c | 985 | py | Python | test_Vision.py | UncleBench/PREN2 | 039077e098ea97bc5e21b85e35df858d6c33f55d | [
"MIT"
] | null | null | null | test_Vision.py | UncleBench/PREN2 | 039077e098ea97bc5e21b85e35df858d6c33f55d | [
"MIT"
] | null | null | null | test_Vision.py | UncleBench/PREN2 | 039077e098ea97bc5e21b85e35df858d6c33f55d | [
"MIT"
] | null | null | null | import time
from MessageQueue.MessageQueue import MessageQueue, Message
from Vision.Vision import Vision
def interpret_command(msg):
if msg['command'] == 'target_found':
print "target found"
if msg['command'] == 'target_centered':
print "target centered @ %f" % msg['data']['y_ratio']
if __nam... | 31.774194 | 74 | 0.648731 | 116 | 985 | 5.301724 | 0.362069 | 0.107317 | 0.121951 | 0.178862 | 0.295935 | 0.234146 | 0.234146 | 0.234146 | 0.234146 | 0.234146 | 0 | 0.013021 | 0.220305 | 985 | 30 | 75 | 32.833333 | 0.78776 | 0 | 0 | 0.37037 | 0 | 0 | 0.140102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.074074 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6523502879972a4e5c16acdfa167520626322383 | 269 | py | Python | src/PostedJob.py | DanaJirudi/CEN4020F21TeamAlaska | 390c70c62ada1856c1260934816ace7999c6bae6 | [
"MIT"
] | 4 | 2021-09-22T12:58:00.000Z | 2021-10-02T21:38:51.000Z | src/PostedJob.py | DanaJirudi/CEN4020F21TeamAlaska | 390c70c62ada1856c1260934816ace7999c6bae6 | [
"MIT"
] | 3 | 2021-09-29T13:02:33.000Z | 2021-10-01T00:33:49.000Z | src/PostedJob.py | DanaJirudi/CEN4020F21TeamAlaska | 390c70c62ada1856c1260934816ace7999c6bae6 | [
"MIT"
] | 2 | 2021-10-03T17:29:01.000Z | 2021-10-03T17:56:21.000Z | # class to store a job
class PostedJob():
def __init__(name, title, description, employer, location, salary):
name = name
title = title
description = description
employer = employer
location = location
salary = salary | 29.888889 | 71 | 0.620818 | 27 | 269 | 6.037037 | 0.518519 | 0.110429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.312268 | 269 | 9 | 72 | 29.888889 | 0.881081 | 0.074349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 1 | 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 | 2 |
e8e578ffc9e6dd6b8b4e68cdc43cb05b545291b6 | 5,056 | py | Python | examples/section3.1-2.py | rickyHong/dwave-qubo-example-repl | ff7306de273d438902db7c8448a2ea825ecfa50f | [
"Apache-2.0"
] | null | null | null | examples/section3.1-2.py | rickyHong/dwave-qubo-example-repl | ff7306de273d438902db7c8448a2ea825ecfa50f | [
"Apache-2.0"
] | null | null | null | examples/section3.1-2.py | rickyHong/dwave-qubo-example-repl | ff7306de273d438902db7c8448a2ea825ecfa50f | [
"Apache-2.0"
] | null | null | null | """
Section 3.1 The Number Partitioning Problem
Partition a set of numbers into two subsets such that the subset sums are as close to each other as possible.
Test list size 100 - too big to solve on the D-Wave 2000Q using minor-embedding,
so we have to use a decomposer to break the large problem into sub-problems.
""... | 40.774194 | 529 | 0.667919 | 772 | 5,056 | 4.317358 | 0.34715 | 0.013201 | 0.016202 | 0.018002 | 0.368137 | 0.346835 | 0.326133 | 0.326133 | 0.290729 | 0.274527 | 0 | 0.203183 | 0.204707 | 5,056 | 124 | 530 | 40.774194 | 0.625715 | 0.342761 | 0 | 0.26506 | 0 | 0 | 0.042489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096386 | null | null | 0.156627 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e8e638e816e0d16d6bdcc9778491d8d1d4103866 | 552 | py | Python | luhn/luhn.py | gordonli08/Exercism-python | ff3d79ccc61bac7475641ee6c2f19a0367e3e254 | [
"MIT"
] | null | null | null | luhn/luhn.py | gordonli08/Exercism-python | ff3d79ccc61bac7475641ee6c2f19a0367e3e254 | [
"MIT"
] | null | null | null | luhn/luhn.py | gordonli08/Exercism-python | ff3d79ccc61bac7475641ee6c2f19a0367e3e254 | [
"MIT"
] | null | null | null | class Luhn:
def __init__(self, card_num):
self.card_num = card_num.replace(" ","")
def valid(self):
if len(self.card_num) < 2 or not self.card_num.isnumeric():
return False
list_nums = [int(num) for num in self.card_num]
list_nums.reverse()
for inde... | 29.052632 | 67 | 0.521739 | 74 | 552 | 3.662162 | 0.405405 | 0.206642 | 0.202952 | 0.103321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025788 | 0.367754 | 552 | 18 | 68 | 30.666667 | 0.750716 | 0 | 0 | 0 | 0 | 0 | 0.001812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
3310640c67c138ffce88d3ca2f51f0b0d2695224 | 4,002 | py | Python | contracts/migrations/0024_populate_schedulemetadata.py | mepsd/CLAC | ee15111e9ad12e51fe349d3339319e30b3b69d9e | [
"CC0-1.0"
] | 126 | 2015-03-24T17:37:33.000Z | 2022-03-29T18:37:39.000Z | contracts/migrations/0024_populate_schedulemetadata.py | mepsd/CLAC | ee15111e9ad12e51fe349d3339319e30b3b69d9e | [
"CC0-1.0"
] | 1,815 | 2015-03-16T21:01:30.000Z | 2019-09-09T18:47:29.000Z | contracts/migrations/0024_populate_schedulemetadata.py | mepsd/CLAC | ee15111e9ad12e51fe349d3339319e30b3b69d9e | [
"CC0-1.0"
] | 69 | 2015-03-27T23:44:26.000Z | 2021-02-14T09:45:28.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-06-19 20:30
from __future__ import unicode_literals
from textwrap import dedent
from django.db import migrations
def create_schedules(apps, schema_editor):
ScheduleMetadata = apps.get_model('contracts', 'ScheduleMetadata')
ScheduleMetadata(
... | 32.274194 | 82 | 0.634683 | 387 | 4,002 | 6.537468 | 0.478036 | 0.060474 | 0.063636 | 0.016601 | 0.105138 | 0.105138 | 0.081423 | 0.081423 | 0.081423 | 0.081423 | 0 | 0.020021 | 0.276112 | 4,002 | 123 | 83 | 32.536585 | 0.853297 | 0.017241 | 0 | 0.348624 | 1 | 0 | 0.627481 | 0.005344 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009174 | false | 0 | 0.027523 | 0 | 0.06422 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
332190077427f4c3d62cff8b56c33f54f0d6366a | 341 | py | Python | python/ex035 - formatriangulo.py | gabrielramospereira/codes | 1c0c5aab0f4e3a8543016afde651779f5b093493 | [
"MIT"
] | null | null | null | python/ex035 - formatriangulo.py | gabrielramospereira/codes | 1c0c5aab0f4e3a8543016afde651779f5b093493 | [
"MIT"
] | null | null | null | python/ex035 - formatriangulo.py | gabrielramospereira/codes | 1c0c5aab0f4e3a8543016afde651779f5b093493 | [
"MIT"
] | null | null | null | n1 = float(input("Informe primeiro segmento: "))
n2 = float(input("Informe segundo segmento: "))
n3 = float(input("Informe terceiro segmento: "))
if n1 < n2 + n3 and n2 < n1 + n3 and n3 < n1 + n2:
print("\033[4;30;43mOs segmentos podem formar triângulo.\033[m")
else:
print("\033[1;31;42mOs segmentos não podem f... | 34.1 | 68 | 0.677419 | 52 | 341 | 4.442308 | 0.519231 | 0.12987 | 0.220779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109541 | 0.170088 | 341 | 9 | 69 | 37.888889 | 0.706714 | 0 | 0 | 0 | 0 | 0 | 0.554572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
33240f21941bf6cdabb7c6ec7cff4820c12ad355 | 352 | py | Python | web_debranding/__init__.py | 001101/misc-addons | 6f3b94d8a71d603d9ad449f96edfc66385e78080 | [
"MIT"
] | null | null | null | web_debranding/__init__.py | 001101/misc-addons | 6f3b94d8a71d603d9ad449f96edfc66385e78080 | [
"MIT"
] | 1 | 2020-05-03T04:27:29.000Z | 2020-05-03T04:27:29.000Z | web_debranding/__init__.py | eneldoserrata/misc-addons | 6f3b94d8a71d603d9ad449f96edfc66385e78080 | [
"MIT"
] | 1 | 2022-02-04T11:27:12.000Z | 2022-02-04T11:27:12.000Z | # License MIT (https://opensource.org/licenses/MIT).
from . import models
from . import controllers
from odoo import SUPERUSER_ID, api
MODULE = "_web_debranding"
def uninstall_hook(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
env["ir.model.data"]._module_data_uninstall([MODULE])
def post_lo... | 18.526316 | 57 | 0.721591 | 47 | 352 | 5.212766 | 0.638298 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 352 | 18 | 58 | 19.555556 | 0.824916 | 0.142045 | 0 | 0 | 0 | 0 | 0.093333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.444444 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
3331d30bffac946fd4049569a7883dade5d148c1 | 249 | py | Python | src/Backend/products/src/products/urls.py | OmarThinks/AWS-Full-Stack-Project | 23a43f0b07801bce7b7f5f68d13bbd5001465cc2 | [
"MIT"
] | null | null | null | src/Backend/products/src/products/urls.py | OmarThinks/AWS-Full-Stack-Project | 23a43f0b07801bce7b7f5f68d13bbd5001465cc2 | [
"MIT"
] | null | null | null | src/Backend/products/src/products/urls.py | OmarThinks/AWS-Full-Stack-Project | 23a43f0b07801bce7b7f5f68d13bbd5001465cc2 | [
"MIT"
] | null | null | null | from django.urls import path, include
from .views import ProductViewSet
from rest_framework import (routers)
router = routers.DefaultRouter()
router.register(r'products', ProductViewSet)
urlpatterns = [
path('api/', include(router.urls))
]
| 17.785714 | 44 | 0.759036 | 29 | 249 | 6.482759 | 0.62069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13253 | 249 | 13 | 45 | 19.153846 | 0.87037 | 0 | 0 | 0 | 0 | 0 | 0.048583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
3337114c3278d51d25e197da68c4617569c12bcc | 1,173 | py | Python | tests/settings.py | Grreg/django-use-email-as-username | 47d7acfb409c56ba395e12a516e4be969edde41d | [
"BSD-3-Clause"
] | 55 | 2018-02-21T13:19:04.000Z | 2021-11-23T13:42:47.000Z | tests/settings.py | Grreg/django-use-email-as-username | 47d7acfb409c56ba395e12a516e4be969edde41d | [
"BSD-3-Clause"
] | 10 | 2018-03-13T10:00:00.000Z | 2021-12-14T22:49:50.000Z | tests/settings.py | Grreg/django-use-email-as-username | 47d7acfb409c56ba395e12a516e4be969edde41d | [
"BSD-3-Clause"
] | 6 | 2018-10-23T18:33:10.000Z | 2021-02-24T18:15:28.000Z | """Minimum settings to run tests."""
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "7a%8!3)_=_c04_i@ai1yfw=fz&gf6(b5vp6(@_#h4&n9276vjj"
DEBUG = True
INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessi... | 27.27907 | 85 | 0.682864 | 120 | 1,173 | 6.5 | 0.575 | 0.166667 | 0.065385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01556 | 0.178176 | 1,173 | 42 | 86 | 27.928571 | 0.793568 | 0.081841 | 0 | 0 | 0 | 0.032258 | 0.636788 | 0.537815 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
333f987b807b40387d673703fcb3a804a2147baf | 570 | py | Python | django_eveonline_timerboard/forms.py | KryptedGaming/django-eveonline-timerboard | da413aa9d84b8ab4e97021a91ce53c16b0f88d81 | [
"MIT"
] | null | null | null | django_eveonline_timerboard/forms.py | KryptedGaming/django-eveonline-timerboard | da413aa9d84b8ab4e97021a91ce53c16b0f88d81 | [
"MIT"
] | 2 | 2020-10-14T15:49:35.000Z | 2020-10-14T15:51:36.000Z | django_eveonline_timerboard/forms.py | KryptedGaming/django-eveonline-timerboard | da413aa9d84b8ab4e97021a91ce53c16b0f88d81 | [
"MIT"
] | null | null | null | from django import forms
from .models import EveTimer, EveTimerType
class EveTimerForm(forms.Form):
name = forms.CharField(max_length=64, required=True)
days = forms.IntegerField(min_value=0, required=True)
hours = forms.IntegerField(min_value=0, max_value=24, required=True)
minutes = forms.IntegerFiel... | 51.818182 | 74 | 0.768421 | 77 | 570 | 5.571429 | 0.441558 | 0.167832 | 0.18648 | 0.2331 | 0.363636 | 0.30303 | 0.30303 | 0.223776 | 0.223776 | 0.223776 | 0 | 0.027944 | 0.121053 | 570 | 11 | 75 | 51.818182 | 0.828343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
334daa581a0d5e85e2fb550a3870138641a35fd4 | 529 | py | Python | python_script/transcribing_dna_into_rna.py | cenk-celik/rosalind_solutions | 46fff8587644a99ba8e2fb059dfe9cb11bef0dfe | [
"MIT"
] | null | null | null | python_script/transcribing_dna_into_rna.py | cenk-celik/rosalind_solutions | 46fff8587644a99ba8e2fb059dfe9cb11bef0dfe | [
"MIT"
] | null | null | null | python_script/transcribing_dna_into_rna.py | cenk-celik/rosalind_solutions | 46fff8587644a99ba8e2fb059dfe9cb11bef0dfe | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# # Transcribing DNA into RNA
#
# ## Problem
#
# An RNA string is a string formed from the alphabet containing 'A', 'C', 'G', and 'U'.
#
# Given a DNA string **t** corresponding to a coding strand, its transcribed RNA string **u** is formed by replacing all occurrences of 'T' i... | 24.045455 | 167 | 0.627599 | 83 | 529 | 4 | 0.590361 | 0.081325 | 0.042169 | 0.060241 | 0.10241 | 0.10241 | 0 | 0 | 0 | 0 | 0 | 0.01182 | 0.200378 | 529 | 21 | 168 | 25.190476 | 0.77305 | 0.839319 | 0 | 0 | 0 | 0 | 0.029851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 2 |
3351db1989cde6c650fe07ce00770b769c76c5da | 854 | py | Python | talks/2016-09-27-intro-tensorflow/models/modeling_utils.py | ramhiser/deep-learning-with-tensorflow-meetup | df9500470ef3705064bf53a13434ea45ff692093 | [
"MIT"
] | 12 | 2016-10-05T04:32:41.000Z | 2020-08-24T08:23:54.000Z | talks/2016-09-27-intro-tensorflow/models/modeling_utils.py | ramhiser/deep-learning-with-tensorflow-meetup | df9500470ef3705064bf53a13434ea45ff692093 | [
"MIT"
] | 2 | 2016-10-04T19:38:10.000Z | 2017-12-15T17:43:41.000Z | talks/2016-09-27-intro-tensorflow/models/modeling_utils.py | ramhiser/deep-learning-with-tensorflow-meetup | df9500470ef3705064bf53a13434ea45ff692093 | [
"MIT"
] | 2 | 2017-10-03T23:16:21.000Z | 2017-12-13T23:53:53.000Z | import tensorflow as tf
def accuracy(predictions, labels):
"""
Function to calculate the number of matches between predictions and labels
:param predictions: The predicted labels
:param labels: The actual labels
"""
labels = tf.cast(labels, tf.int32)
matches = tf.nn.in_top_k(predictions=pr... | 28.466667 | 89 | 0.740047 | 110 | 854 | 5.618182 | 0.481818 | 0.07767 | 0.064725 | 0.07767 | 0.126214 | 0.126214 | 0 | 0 | 0 | 0 | 0 | 0.005658 | 0.172131 | 854 | 29 | 90 | 29.448276 | 0.868458 | 0.238876 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3368eb78dacc16a79485f67166a1abafc14333da | 1,900 | py | Python | secureshare/encryption.py | DC00/SecureShare | dc07c8e284fd3ca6ba995a2bac3cafeee246db52 | [
"MIT"
] | null | null | null | secureshare/encryption.py | DC00/SecureShare | dc07c8e284fd3ca6ba995a2bac3cafeee246db52 | [
"MIT"
] | null | null | null | secureshare/encryption.py | DC00/SecureShare | dc07c8e284fd3ca6ba995a2bac3cafeee246db52 | [
"MIT"
] | null | null | null | from Crypto.Hash import SHA256
from Crypto import Random
from Crypto.Cipher import ARC4
import binascii
import base64
import os.path
import os
iv = b'12345678'
# def encrypt(text, key):
# key_size8 = key[0:8]
# print(key_size8)
# cipher = DES.new(key_size8, DES.MODE_CFB, iv)
# encrypted = cipher.enc... | 23.75 | 76 | 0.672105 | 265 | 1,900 | 4.724528 | 0.316981 | 0.019169 | 0.044728 | 0.027157 | 0.129393 | 0.046326 | 0.046326 | 0 | 0 | 0 | 0 | 0.054627 | 0.181053 | 1,900 | 79 | 77 | 24.050633 | 0.75 | 0.383684 | 0 | 0.064516 | 0 | 0 | 0.082024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0.064516 | 0.225806 | 0 | 0.548387 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
33702b0a5a53c47ece670521cb2335fb1437df2b | 146 | py | Python | Piece of Cake/piece.py | rajitbanerjee/kattis | 3a5dd4c84c07e21f09ef45ebd9c1bad2a0adc6ad | [
"CC0-1.0"
] | 2 | 2021-04-13T12:56:30.000Z | 2022-03-21T16:46:58.000Z | Piece of Cake/piece.py | rajitbanerjee/kattis | 3a5dd4c84c07e21f09ef45ebd9c1bad2a0adc6ad | [
"CC0-1.0"
] | null | null | null | Piece of Cake/piece.py | rajitbanerjee/kattis | 3a5dd4c84c07e21f09ef45ebd9c1bad2a0adc6ad | [
"CC0-1.0"
] | 1 | 2021-11-14T14:06:46.000Z | 2021-11-14T14:06:46.000Z | """https://open.kattis.com/problems/pieceofcake2"""
n, h, v = map(int, input().split())
volume = max(h, n - h) * max(v, n - v) * 4
print(volume) | 24.333333 | 51 | 0.59589 | 25 | 146 | 3.48 | 0.68 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.150685 | 146 | 6 | 52 | 24.333333 | 0.685484 | 0.308219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 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 | 2 |
3370ffafa78fe372786727165d1c0689cbd7e9f5 | 643 | py | Python | app/src/main/python/playerExist.py | abhinavp403/Tennis_Stats_App | 445f74e601b472920750fe7468de0dc77bba2f1b | [
"MIT"
] | null | null | null | app/src/main/python/playerExist.py | abhinavp403/Tennis_Stats_App | 445f74e601b472920750fe7468de0dc77bba2f1b | [
"MIT"
] | null | null | null | app/src/main/python/playerExist.py | abhinavp403/Tennis_Stats_App | 445f74e601b472920750fe7468de0dc77bba2f1b | [
"MIT"
] | null | null | null | import csv
from os.path import dirname, join
def isPlayerExistMale(name):
with open(join(dirname(__file__), 'atp_players.csv'), mode='r') as csv_file:
csv_reader = csv.DictReader(csv_file)
for row in csv_reader:
if name == row["firstname"] + " " + row["lastname"]:
return... | 33.842105 | 80 | 0.615863 | 82 | 643 | 4.609756 | 0.378049 | 0.074074 | 0.063492 | 0.084656 | 0.777778 | 0.777778 | 0.634921 | 0.634921 | 0.634921 | 0.634921 | 0 | 0 | 0.26283 | 643 | 19 | 81 | 33.842105 | 0.797468 | 0 | 0 | 0.625 | 0 | 0 | 0.10559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
683cde44e66583b764d1f7425e25de79c99c1d35 | 409 | py | Python | api/projeto/resources/database.py | ldynczuki/iris-model-api | 0519f5d3d8158f7560326219bd2263a234ad0cbe | [
"MIT"
] | null | null | null | api/projeto/resources/database.py | ldynczuki/iris-model-api | 0519f5d3d8158f7560326219bd2263a234ad0cbe | [
"MIT"
] | null | null | null | api/projeto/resources/database.py | ldynczuki/iris-model-api | 0519f5d3d8158f7560326219bd2263a234ad0cbe | [
"MIT"
] | null | null | null | from fastapi import APIRouter, Path
from projeto.responses.database import DatabaseResponse
from projeto.database.database import Iris
router = APIRouter()
@router.get('/get_predict', status_code=200, response_model=DatabaseResponse, summary="Retorna os dados armazenados no Banco de Dados")
def listar():
"""Ret... | 31.461538 | 135 | 0.770171 | 52 | 409 | 6 | 0.576923 | 0.070513 | 0.089744 | 0.160256 | 0.25 | 0.25 | 0.25 | 0.25 | 0 | 0 | 0 | 0.008403 | 0.127139 | 409 | 12 | 136 | 34.083333 | 0.865546 | 0.112469 | 0 | 0 | 0 | 0 | 0.187675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
683f8cca55f388ff10f829f29c79ccaa9e45f834 | 642 | py | Python | api/homework/models.py | Pavel-qy/lx_classroom | dfa26c76bd934734cb3c0dc43a1fd42d56be4ad5 | [
"MIT"
] | null | null | null | api/homework/models.py | Pavel-qy/lx_classroom | dfa26c76bd934734cb3c0dc43a1fd42d56be4ad5 | [
"MIT"
] | null | null | null | api/homework/models.py | Pavel-qy/lx_classroom | dfa26c76bd934734cb3c0dc43a1fd42d56be4ad5 | [
"MIT"
] | null | null | null | from django.db import models
class Homework(models.Model):
created = models.DateTimeField(auto_now_add=True)
owner = models.ForeignKey('auth.User', related_name='homeworks', on_delete=models.CASCADE)
course = models.ForeignKey('Course', related_name='homeworks', on_delete=models.CASCADE)
lecture = mod... | 42.8 | 96 | 0.742991 | 78 | 642 | 5.974359 | 0.5 | 0.137339 | 0.171674 | 0.188841 | 0.351931 | 0.351931 | 0.351931 | 0 | 0 | 0 | 0 | 0.005376 | 0.130841 | 642 | 14 | 97 | 45.857143 | 0.829749 | 0 | 0 | 0 | 0 | 0 | 0.113707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.909091 | 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 | 1 | 0 | 0 | 2 |
6867acdf37c0fb6b8a6ef7b5fa3cc201e1cd29da | 422 | py | Python | Extension Attributes/OneDriveOpenAtLogin.py | hhorn76/JAMF | 35b81f305ba58f07c133693deb7d3a25fc82ed4f | [
"MIT"
] | 33 | 2018-11-16T09:20:22.000Z | 2022-03-15T04:16:03.000Z | Extension Attributes/OneDriveOpenAtLogin.py | hhorn76/JAMF | 35b81f305ba58f07c133693deb7d3a25fc82ed4f | [
"MIT"
] | 1 | 2019-07-28T13:50:29.000Z | 2019-11-11T10:47:20.000Z | Extension Attributes/OneDriveOpenAtLogin.py | hhorn76/JAMF | 35b81f305ba58f07c133693deb7d3a25fc82ed4f | [
"MIT"
] | 6 | 2019-05-07T05:28:45.000Z | 2021-12-09T18:01:28.000Z | #!/usr/bin/python
# Written by Heiko Horn 2019.02.08
# Check if Onedrive is set to start at login
import getpass, subprocess
currentUser = getpass.getuser()
strPlist = 'com.microsoft.OneDrive.plist'
isSet = subprocess.check_output('sudo -u ' + currentUser + ' defaults read ' + strPlist + ' OpenAtLogin', shell=True).... | 28.133333 | 125 | 0.701422 | 56 | 422 | 5.267857 | 0.767857 | 0.081356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02514 | 0.151659 | 422 | 15 | 126 | 28.133333 | 0.798883 | 0.218009 | 0 | 0 | 0 | 0 | 0.271341 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.25 | 0.125 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
68831160a8d2a8f6769a881d19d0cbb54ec9208f | 1,977 | py | Python | old_stuff/petronia/system/config_loader.py | groboclown/petronia | 486338023d19cee989e92f0c5692680f1a37811f | [
"MIT"
] | 19 | 2017-06-21T10:28:24.000Z | 2021-12-31T11:49:28.000Z | old_stuff/petronia/system/config_loader.py | groboclown/petronia | 486338023d19cee989e92f0c5692680f1a37811f | [
"MIT"
] | 10 | 2016-11-11T18:57:57.000Z | 2021-02-01T15:33:43.000Z | old_stuff/petronia/system/config_loader.py | groboclown/petronia | 486338023d19cee989e92f0c5692680f1a37811f | [
"MIT"
] | 3 | 2017-09-17T03:29:35.000Z | 2019-06-03T10:43:08.000Z |
from . import target_ids
from . import event_ids
from .component import Identifiable, Component
from ..config import ConfigType, Config
from ..script.read_config import read_user_configuration
from ..script.script_logger import create_bus_logger
# noinspection PyUnusedLocal
def config_loader_factory(bus, config, id_... | 30.890625 | 109 | 0.721295 | 241 | 1,977 | 5.46473 | 0.240664 | 0.121488 | 0.072893 | 0.07593 | 0.172361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201821 | 1,977 | 63 | 110 | 31.380952 | 0.834601 | 0.026808 | 0 | 0.113636 | 0 | 0 | 0.017188 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 1 | 0.204545 | false | 0 | 0.136364 | 0.136364 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
688aac5615412be5343016e3f508b297d83a07fe | 15,521 | py | Python | wrapper_dev/brasov_incidents/brasov_incidents.py | CityPulse/CP_Resourcemanagement | aa670fa89d5e086a98ade3ccc152518be55abf2e | [
"MIT"
] | 2 | 2016-11-03T14:57:45.000Z | 2019-05-13T13:21:08.000Z | wrapper_dev/brasov_incidents/brasov_incidents.py | CityPulse/CP_Resourcemanagement | aa670fa89d5e086a98ade3ccc152518be55abf2e | [
"MIT"
] | null | null | null | wrapper_dev/brasov_incidents/brasov_incidents.py | CityPulse/CP_Resourcemanagement | aa670fa89d5e086a98ade3ccc152518be55abf2e | [
"MIT"
] | 1 | 2020-07-23T11:27:15.000Z | 2020-07-23T11:27:15.000Z | # coding=utf-8
import uuid
from virtualisation.clock.abstractclock import AbstractClock
from virtualisation.wrapper.abstractwrapper import AbstractComposedWrapper, AbstractWrapper
from virtualisation.sensordescription import SensorDescription
from virtualisation.wrapper.history.csvhistory import CSVHistoryReader
from v... | 51.736667 | 204 | 0.700857 | 1,435 | 15,521 | 7.45784 | 0.222997 | 0.266866 | 0.225939 | 0.050458 | 0.396094 | 0.150439 | 0.067838 | 0.058494 | 0.058494 | 0.02934 | 0 | 0.047676 | 0.193222 | 15,521 | 299 | 205 | 51.909699 | 0.80698 | 0.013594 | 0 | 0.051502 | 0 | 0 | 0.138413 | 0.058628 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077253 | false | 0 | 0.038627 | 0.008584 | 0.193133 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
68ac96888521ea6f6ab6e2abf367833c2ed9e5d4 | 94 | py | Python | deepgrp/__init__.py | fhausmann/deepgrp | 41945326a87f3888942eaad1a152ee50ab4ba059 | [
"Apache-2.0"
] | 2 | 2022-03-10T03:34:32.000Z | 2022-03-29T20:34:32.000Z | deepgrp/__init__.py | fhausmann/deepgrp | 41945326a87f3888942eaad1a152ee50ab4ba059 | [
"Apache-2.0"
] | null | null | null | deepgrp/__init__.py | fhausmann/deepgrp | 41945326a87f3888942eaad1a152ee50ab4ba059 | [
"Apache-2.0"
] | 1 | 2022-03-29T20:34:38.000Z | 2022-03-29T20:34:38.000Z | """DeepGRP - Deep learning for Genomic Repetitive element Prediction"""
__version__ = "0.2.3"
| 31.333333 | 71 | 0.744681 | 12 | 94 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.12766 | 94 | 2 | 72 | 47 | 0.768293 | 0.691489 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
d79a2e56bd3e779ade829d6f39efb44f6a6e2834 | 415 | py | Python | legacy/heatmaps/inputlocator_heatmaps.py | AlexJew/CityEnergyAnalyst | 6eb372c79e5100a2d0abce78561ae368fb409cd1 | [
"MIT"
] | null | null | null | legacy/heatmaps/inputlocator_heatmaps.py | AlexJew/CityEnergyAnalyst | 6eb372c79e5100a2d0abce78561ae368fb409cd1 | [
"MIT"
] | null | null | null | legacy/heatmaps/inputlocator_heatmaps.py | AlexJew/CityEnergyAnalyst | 6eb372c79e5100a2d0abce78561ae368fb409cd1 | [
"MIT"
] | null | null | null | # these methods have been removed from the inputlocator due to the heatmaps script being retired to legacy.
# HEATMAPS
def get_heatmaps_demand_folder(self):
"""scenario/outputs/plots/heatmaps"""
return self._ensure_folder(self.get_plots_folder('heatmaps'))
def get_heatmaps_emission_folder(self):
"""scena... | 37.727273 | 107 | 0.780723 | 56 | 415 | 5.535714 | 0.464286 | 0.129032 | 0.090323 | 0.141935 | 0.554839 | 0.554839 | 0.554839 | 0.554839 | 0.554839 | 0.554839 | 0 | 0 | 0.115663 | 415 | 11 | 108 | 37.727273 | 0.844687 | 0.431325 | 0 | 0.5 | 0 | 0 | 0.071111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d7c54ea74576092e08d4296aaae850d5787330f2 | 634 | py | Python | pytest_alt_reg/utils.py | joaopalmeiro/pytest-alt-reg | f3074e41087756c65db0e2a4ce2ce91c3216a868 | [
"MIT"
] | null | null | null | pytest_alt_reg/utils.py | joaopalmeiro/pytest-alt-reg | f3074e41087756c65db0e2a4ce2ce91c3216a868 | [
"MIT"
] | null | null | null | pytest_alt_reg/utils.py | joaopalmeiro/pytest-alt-reg | f3074e41087756c65db0e2a4ce2ce91c3216a868 | [
"MIT"
] | null | null | null | import json
from .constants import JSON_INDENT
def make_location_message(banner, filename):
msg = [banner, f"- {filename}"]
return "\n".join(msg)
def json_loader(filename):
with open(filename) as file:
data = json.load(file)
return data
# More info:
# - https://github.com/altair-viz/alta... | 24.384615 | 84 | 0.698738 | 91 | 634 | 4.725275 | 0.538462 | 0.093023 | 0.074419 | 0.093023 | 0.134884 | 0.134884 | 0 | 0 | 0 | 0 | 0 | 0.007619 | 0.171924 | 634 | 25 | 85 | 25.36 | 0.811429 | 0.247634 | 0 | 0 | 0 | 0 | 0.042373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d7d00f7223b0aa411225272786444e46ecf6cb20 | 981 | py | Python | qtnodes/helpers.py | jnbrauer/qtnodes | 7fa4537a6e484611618e50a062c0bff7494fc705 | [
"MIT"
] | null | null | null | qtnodes/helpers.py | jnbrauer/qtnodes | 7fa4537a6e484611618e50a062c0bff7494fc705 | [
"MIT"
] | null | null | null | qtnodes/helpers.py | jnbrauer/qtnodes | 7fa4537a6e484611618e50a062c0bff7494fc705 | [
"MIT"
] | null | null | null | """Various helper functions."""
import json
from PySide2 import QtWidgets
from PySide2 import QtGui
from PySide2 import QtCore
def readFileContent(filePath):
"""Return the content of the file."""
with open(filePath) as f:
return f.read()
def toJson(serialized):
"""Return JSON string from given... | 25.815789 | 72 | 0.697248 | 130 | 981 | 5.261538 | 0.546154 | 0.048246 | 0.074561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.204893 | 981 | 37 | 73 | 26.513514 | 0.869231 | 0.342508 | 0 | 0 | 0 | 0 | 0.016502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d7e02055ad625389f0ffde2565ae5d330adaa1ec | 921 | py | Python | src/collective/solr/exceptions.py | adrianschulz/collective.solr | 2d76fe01a02174d383fdc335d38ee52afa8bfa27 | [
"ZPL-1.1"
] | null | null | null | src/collective/solr/exceptions.py | adrianschulz/collective.solr | 2d76fe01a02174d383fdc335d38ee52afa8bfa27 | [
"ZPL-1.1"
] | 1 | 2020-05-20T06:02:00.000Z | 2020-07-14T13:36:58.000Z | src/collective/solr/exceptions.py | adrianschulz/collective.solr | 2d76fe01a02174d383fdc335d38ee52afa8bfa27 | [
"ZPL-1.1"
] | null | null | null | # -*- coding: utf-8 -*-
class SolrException(Exception):
"""Base class where all other exceptions from collective.solr derive from
"""
class SolrInactiveException(SolrException):
"""An exception indicating the solr integration is not activated"""
class FallBackException(SolrException):
"""Exception... | 25.583333 | 77 | 0.644951 | 101 | 921 | 5.762376 | 0.49505 | 0.082474 | 0.092784 | 0.061856 | 0.166667 | 0.089347 | 0.089347 | 0 | 0 | 0 | 0 | 0.005755 | 0.245385 | 921 | 35 | 78 | 26.314286 | 0.831655 | 0.309446 | 0 | 0 | 0 | 0 | 0.096186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0 | 0.125 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
d7e47b6e7540e46c38c1701d0dac050fa20bf83f | 2,268 | py | Python | app/crud.py | ScholCommLab/fhe-collector | 5284e891a81bc4f018cbb9009fa12d6403305f18 | [
"MIT"
] | 2 | 2021-06-05T00:08:37.000Z | 2021-08-28T21:20:38.000Z | app/crud.py | ScholCommLab/fhe-collector | 5284e891a81bc4f018cbb9009fa12d6403305f18 | [
"MIT"
] | 38 | 2018-11-02T18:12:22.000Z | 2021-04-28T23:19:59.000Z | app/crud.py | ScholCommLab/fhe-collector | 5284e891a81bc4f018cbb9009fa12d6403305f18 | [
"MIT"
] | 2 | 2018-03-21T10:30:46.000Z | 2018-10-03T19:48:38.000Z | # !/usr/bin/env python
# -*- coding: utf-8 -*-
""""""
from typing import Type
from typing import Union
from sqlalchemy.orm import Session
from sqlalchemy.orm.query import Query
from app.models import Doi
from app.models import FBRequest
from app.models import Import
from app.models import Request
from app.models impo... | 20.618182 | 78 | 0.618166 | 255 | 2,268 | 5.454902 | 0.258824 | 0.064702 | 0.046729 | 0.068296 | 0.437096 | 0.437096 | 0.376707 | 0.288282 | 0.288282 | 0.224299 | 0 | 0.003012 | 0.268078 | 2,268 | 109 | 79 | 20.807339 | 0.83494 | 0.416667 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.37037 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
d7f0ef24811351c8b5efb31035cea3bb0c321ed4 | 9,893 | py | Python | sdk/python/pulumi_gcp/ml/engine_model.py | dimpu47/pulumi-gcp | 38355de300a5768e11c49d344a8165ba0735deed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_gcp/ml/engine_model.py | dimpu47/pulumi-gcp | 38355de300a5768e11c49d344a8165ba0735deed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_gcp/ml/engine_model.py | dimpu47/pulumi-gcp | 38355de300a5768e11c49d344a8165ba0735deed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
from .. import ... | 48.258537 | 165 | 0.66542 | 1,164 | 9,893 | 5.454467 | 0.162371 | 0.065837 | 0.048512 | 0.028351 | 0.672389 | 0.650339 | 0.634903 | 0.634903 | 0.618208 | 0.607182 | 0 | 0.000135 | 0.252097 | 9,893 | 204 | 166 | 48.495098 | 0.857954 | 0.386132 | 0 | 0.279279 | 1 | 0 | 0.141981 | 0.062782 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0.009009 | 0.063063 | 0.018018 | 0.279279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d7fcb4ebbe3ef7fed3fd174cc91d694b87590797 | 241 | py | Python | application/resources/Ping.py | jdiazrdgz/BabeNotifier-Backend | 685e6bf5e9b088e86b01df5d93b20a45c18c1405 | [
"Unlicense"
] | null | null | null | application/resources/Ping.py | jdiazrdgz/BabeNotifier-Backend | 685e6bf5e9b088e86b01df5d93b20a45c18c1405 | [
"Unlicense"
] | null | null | null | application/resources/Ping.py | jdiazrdgz/BabeNotifier-Backend | 685e6bf5e9b088e86b01df5d93b20a45c18c1405 | [
"Unlicense"
] | null | null | null | from flask_restful import Resource
class Ping(Resource):
def get(self):
return \
{
"success": True,
"message": "BabeNotifier - V0.0.1",
"data": {}
}, 200
| 18.538462 | 51 | 0.435685 | 21 | 241 | 4.952381 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045113 | 0.448133 | 241 | 12 | 52 | 20.083333 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0.161826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 0.444444 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d7fe51695a772cb8f93b7de5f69ed2953b06cd75 | 7,861 | py | Python | read.py | moskalev/canvas-student-list | 8822e8a9de8751e61a2bf337f5df7f0cfdde4951 | [
"MIT"
] | null | null | null | read.py | moskalev/canvas-student-list | 8822e8a9de8751e61a2bf337f5df7f0cfdde4951 | [
"MIT"
] | null | null | null | read.py | moskalev/canvas-student-list | 8822e8a9de8751e61a2bf337f5df7f0cfdde4951 | [
"MIT"
] | null | null | null | # __author__ = 'dimitrios'
# later modified on 9/05/18, not the original version
from calls import APICalls
import os
import time
import json
class CanvasReader(object):
"""
Class that contains functions useful for downloading (reading) entities for a course.
Essentially a wrapper for API get calls for gro... | 48.524691 | 132 | 0.668108 | 1,081 | 7,861 | 4.642923 | 0.267345 | 0.065352 | 0.033473 | 0.04742 | 0.265192 | 0.175533 | 0.133692 | 0.106196 | 0.058179 | 0.03427 | 0 | 0.00307 | 0.212696 | 7,861 | 161 | 133 | 48.826087 | 0.807885 | 0.540771 | 0 | 0 | 0 | 0 | 0.16332 | 0.118139 | 0 | 0 | 0 | 0 | 0 | 1 | 0.306122 | false | 0 | 0.081633 | 0.061224 | 0.693878 | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
cc034803ffa8dd9bba825019a0397c6b7dfc178f | 283 | py | Python | djconnectwise/migrations/0068_merge_20180814_1104.py | kti-sam/django-connectwise | 28484faad9435892a46b8ce4a3c957f64c299971 | [
"MIT"
] | 10 | 2017-04-27T19:51:38.000Z | 2020-10-09T17:21:23.000Z | djconnectwise/migrations/0068_merge_20180814_1104.py | kti-sam/django-connectwise | 28484faad9435892a46b8ce4a3c957f64c299971 | [
"MIT"
] | 45 | 2017-02-07T22:52:07.000Z | 2021-11-25T21:45:44.000Z | djconnectwise/migrations/0068_merge_20180814_1104.py | kti-sam/django-connectwise | 28484faad9435892a46b8ce4a3c957f64c299971 | [
"MIT"
] | 9 | 2017-01-27T00:07:33.000Z | 2021-07-12T19:48:27.000Z | # Generated by Django 2.0 on 2018-08-14 11:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('djconnectwise', '0067_auto_20180813_1355'),
('djconnectwise', '0066_auto_20180814_1046'),
]
operations = [
]
| 18.866667 | 53 | 0.664311 | 32 | 283 | 5.6875 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209091 | 0.222615 | 283 | 14 | 54 | 20.214286 | 0.618182 | 0.151943 | 0 | 0 | 1 | 0 | 0.302521 | 0.193277 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cc08ff2e7677a26ae7e8f0126ac2f4f90a64d4d4 | 604 | py | Python | feed.py | mittorn/python-vk-lib | 0f5cd9b28d8ae994a395cf5c40b405a2d13686d5 | [
"MIT"
] | 1 | 2018-12-08T20:57:32.000Z | 2018-12-08T20:57:32.000Z | feed.py | mittorn/python-vk-lib | 0f5cd9b28d8ae994a395cf5c40b405a2d13686d5 | [
"MIT"
] | null | null | null | feed.py | mittorn/python-vk-lib | 0f5cd9b28d8ae994a395cf5c40b405a2d13686d5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from bs4 import BeautifulSoup
from profile import Profile
from post import Post
from util import check_response
import requests
import urllib
import vkexceptions
import re
import json
def search(session, text):
r = session.get("https://vk.com/feed?q=%s§ion=searc... | 20.827586 | 99 | 0.683775 | 86 | 604 | 4.732558 | 0.581395 | 0.019656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006098 | 0.18543 | 604 | 28 | 100 | 21.571429 | 0.821138 | 0.069536 | 0 | 0 | 0 | 0 | 0.117857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.473684 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
cc150c1e37cf891332764f4686d4b69522d10f1c | 3,452 | py | Python | countingBound/py/lpRank1.py | joshtburdick/misc | 7bb103b4f9d850e3279eb675c6df420aa7b8da22 | [
"MIT"
] | null | null | null | countingBound/py/lpRank1.py | joshtburdick/misc | 7bb103b4f9d850e3279eb675c6df420aa7b8da22 | [
"MIT"
] | null | null | null | countingBound/py/lpRank1.py | joshtburdick/misc | 7bb103b4f9d850e3279eb675c6df420aa7b8da22 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Linear programming bound on rank of different functions.
# This could almost certainly be simplified, but here we're
# trying to emphasize clarity.
# This includes several constraints; not all of them may be useful.
import numpy as np
import scipy.optimize
import scipy.special
class LpBound:... | 31.381818 | 68 | 0.612978 | 476 | 3,452 | 4.439076 | 0.39916 | 0.026503 | 0.028396 | 0.024136 | 0.057265 | 0.048273 | 0.025556 | 0 | 0 | 0 | 0 | 0.007835 | 0.297509 | 3,452 | 109 | 69 | 31.669725 | 0.863505 | 0.281576 | 0 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0 | 0 | null | null | 0.060606 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
cc159ac56e09d3219cfb7788d14d4693a22b38e3 | 922 | py | Python | DataStructure.py | MiracleWong/PythonBasic | cb8ec59dc646842b41966ea4ea4b1ee66a342eee | [
"MIT"
] | null | null | null | DataStructure.py | MiracleWong/PythonBasic | cb8ec59dc646842b41966ea4ea4b1ee66a342eee | [
"MIT"
] | null | null | null | DataStructure.py | MiracleWong/PythonBasic | cb8ec59dc646842b41966ea4ea4b1ee66a342eee | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# List
Weekday = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday']
print(Weekday[0])
## List正负索引的使用
periodic_table = ['H','He','Li','Be','B','C','N','O','F','Ne']
print(periodic_table[0])
print(periodic_table[-2])
print(periodic_table[0:3])
print(periodic_table[-10:... | 18.816327 | 66 | 0.635575 | 141 | 922 | 4.035461 | 0.553191 | 0.15993 | 0.189807 | 0.066784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.119306 | 922 | 49 | 67 | 18.816327 | 0.666256 | 0.214751 | 0 | 0.111111 | 0 | 0 | 0.15493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.481481 | 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 | 1 | 0 | 2 |
cc18e8e53d8775d03c21f83d1fda9fb2fed3723f | 2,185 | py | Python | saleor/graphql/channel/types.py | enesustundag/saleor | 95ce4b577ca06110f4702e61f554e9d165ef5fd4 | [
"CC-BY-4.0"
] | 1 | 2020-03-14T02:07:53.000Z | 2020-03-14T02:07:53.000Z | saleor/graphql/channel/types.py | enesustundag/saleor | 95ce4b577ca06110f4702e61f554e9d165ef5fd4 | [
"CC-BY-4.0"
] | null | null | null | saleor/graphql/channel/types.py | enesustundag/saleor | 95ce4b577ca06110f4702e61f554e9d165ef5fd4 | [
"CC-BY-4.0"
] | 1 | 2021-06-07T10:16:35.000Z | 2021-06-07T10:16:35.000Z | from graphene import relay
from graphene.types.resolver import get_default_resolver
from graphene_django import DjangoObjectType
from ...channel import models
from ..core.connection import CountableDjangoObjectType
from ..meta.types import ObjectWithMetadata
from ..translations.resolvers import resolve_translation
fro... | 33.106061 | 83 | 0.730435 | 239 | 2,185 | 6.556485 | 0.343096 | 0.068922 | 0.084237 | 0.026803 | 0.23612 | 0.23612 | 0.146777 | 0.146777 | 0.071474 | 0.071474 | 0 | 0 | 0.196796 | 2,185 | 65 | 84 | 33.615385 | 0.892877 | 0.197254 | 0 | 0.243902 | 0 | 0 | 0.029514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0 | 0.195122 | 0.121951 | 0.634146 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
cc19c3fcefa1862bda4952842b52545a4b1ad9e7 | 5,755 | py | Python | app/settings.py | praekeltfoundation/wa-pipelines | 1e0f94a71128c3acf918273f91a5fb3924634173 | [
"BSD-3-Clause"
] | null | null | null | app/settings.py | praekeltfoundation/wa-pipelines | 1e0f94a71128c3acf918273f91a5fb3924634173 | [
"BSD-3-Clause"
] | null | null | null | app/settings.py | praekeltfoundation/wa-pipelines | 1e0f94a71128c3acf918273f91a5fb3924634173 | [
"BSD-3-Clause"
] | null | null | null | """
Django settings for app project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
impor... | 28.073171 | 154 | 0.721112 | 653 | 5,755 | 6.14242 | 0.364472 | 0.061581 | 0.038145 | 0.04363 | 0.202942 | 0.163301 | 0.084767 | 0.084767 | 0.030666 | 0 | 0 | 0.012503 | 0.152215 | 5,755 | 204 | 155 | 28.210784 | 0.809592 | 0.190964 | 0 | 0.045113 | 1 | 0 | 0.488447 | 0.403153 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.037594 | 0.030075 | 0 | 0.030075 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cc1b223531ec61afc7b90920f4ddc6368cb48ef8 | 203 | py | Python | server/apps/utils/templatetags/custom_tags.py | iotile/iotile_cloud | 9dc65ac86d3a730bba42108ed7d9bbb963d22ba6 | [
"MIT"
] | null | null | null | server/apps/utils/templatetags/custom_tags.py | iotile/iotile_cloud | 9dc65ac86d3a730bba42108ed7d9bbb963d22ba6 | [
"MIT"
] | null | null | null | server/apps/utils/templatetags/custom_tags.py | iotile/iotile_cloud | 9dc65ac86d3a730bba42108ed7d9bbb963d22ba6 | [
"MIT"
] | null | null | null | from django import template
register = template.Library()
@register.filter
def get_item(obj, key):
"""
Use as dict|get_item:key
"""
if key in obj:
return obj[key]
return ''
| 15.615385 | 29 | 0.62069 | 28 | 203 | 4.428571 | 0.642857 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26601 | 203 | 12 | 30 | 16.916667 | 0.832215 | 0.118227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
cc1d9f022184abc1f2c545031cd2785d8756d676 | 2,853 | py | Python | twiggy/filters.py | tirkarthi/twiggy | 054a07e71f2ceae231270fc62cb7f0a59cf72958 | [
"BSD-3-Clause"
] | 36 | 2015-02-06T06:19:27.000Z | 2022-01-31T18:36:22.000Z | twiggy/filters.py | tirkarthi/twiggy | 054a07e71f2ceae231270fc62cb7f0a59cf72958 | [
"BSD-3-Clause"
] | 51 | 2015-01-13T18:15:06.000Z | 2021-05-16T06:03:07.000Z | twiggy/filters.py | tirkarthi/twiggy | 054a07e71f2ceae231270fc62cb7f0a59cf72958 | [
"BSD-3-Clause"
] | 6 | 2016-05-31T20:11:12.000Z | 2021-09-08T16:37:26.000Z | import fnmatch
import re
from six import string_types
from . import levels
__re_type = type(re.compile('foo')) # XXX is there a canonical place for this?
def msg_filter(x):
"""intelligently create a filter"""
# XXX replace lambdas with nicely-named functions, for debugging
if x is None:
return... | 28.53 | 99 | 0.670172 | 413 | 2,853 | 4.515739 | 0.317191 | 0.035389 | 0.032172 | 0.025737 | 0.201609 | 0.172654 | 0.13941 | 0.13941 | 0.13941 | 0.13941 | 0 | 0.000935 | 0.249912 | 2,853 | 99 | 100 | 28.818182 | 0.870561 | 0.335436 | 0 | 0.072727 | 0 | 0 | 0.025289 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 1 | 0.218182 | false | 0 | 0.072727 | 0.090909 | 0.581818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
cc301b8da4803d66d10287a8ca664f5492aa539c | 2,226 | py | Python | anaconda-mode/0.1.13/jedi-0.15.1-py3.7.egg/jedi/api/keywords.py | space-scl/emacs.d | 6285c38714023b72a023fe24cbcb5e4fcdcdb949 | [
"Apache-2.0"
] | 2 | 2020-09-30T00:11:09.000Z | 2021-10-04T13:00:38.000Z | anaconda-mode/0.1.13/jedi-0.15.1-py3.7.egg/jedi/api/keywords.py | space-scl/emacs.d | 6285c38714023b72a023fe24cbcb5e4fcdcdb949 | [
"Apache-2.0"
] | 10 | 2020-05-11T20:29:28.000Z | 2022-01-13T01:41:27.000Z | anaconda-mode/0.1.13/jedi-0.15.1-py3.7.egg/jedi/api/keywords.py | space-scl/emacs.d | 6285c38714023b72a023fe24cbcb5e4fcdcdb949 | [
"Apache-2.0"
] | 1 | 2020-01-25T20:08:59.000Z | 2020-01-25T20:08:59.000Z | import pydoc
from jedi.evaluate.utils import ignored
from jedi.evaluate.names import AbstractArbitraryName
try:
from pydoc_data import topics as pydoc_topics
except ImportError:
# Python 2
try:
import pydoc_topics
except ImportError:
# This is for Python 3 embeddable version, which don... | 25.883721 | 78 | 0.643756 | 286 | 2,226 | 4.881119 | 0.423077 | 0.047278 | 0.022923 | 0.040115 | 0.025788 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003681 | 0.267745 | 2,226 | 85 | 79 | 26.188235 | 0.852761 | 0.227314 | 0 | 0.22 | 0 | 0 | 0.01365 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.16 | false | 0 | 0.14 | 0.1 | 0.58 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
cc30e23285fed8b300d4da44719498b86379d7b1 | 1,349 | py | Python | pytition/petition/tests/tests_GetCsvSignatureView.py | Quenty31/Pytition | 0d2cd2ae50c823bc174fe1036f2d435f105ea125 | [
"BSD-3-Clause"
] | 64 | 2019-03-07T15:32:37.000Z | 2022-03-13T19:05:44.000Z | pytition/petition/tests/tests_GetCsvSignatureView.py | Quenty31/Pytition | 0d2cd2ae50c823bc174fe1036f2d435f105ea125 | [
"BSD-3-Clause"
] | 157 | 2019-02-28T07:32:03.000Z | 2021-09-24T07:07:09.000Z | pytition/petition/tests/tests_GetCsvSignatureView.py | Quenty31/Pytition | 0d2cd2ae50c823bc174fe1036f2d435f105ea125 | [
"BSD-3-Clause"
] | 33 | 2019-04-14T23:40:33.000Z | 2022-03-25T11:11:05.000Z | from django.test import TestCase
from django.urls import reverse
from .utils import add_default_data
from petition.models import Petition, Signature, PytitionUser
class GetCsvSignatureViewTest(TestCase):
"""Test get_csv_signature view"""
@classmethod
def setUpTestData(cls):
add_default_data()
... | 36.459459 | 94 | 0.696812 | 163 | 1,349 | 5.650307 | 0.361963 | 0.043431 | 0.104235 | 0.039088 | 0.482085 | 0.482085 | 0.482085 | 0.482085 | 0.482085 | 0.482085 | 0 | 0.00554 | 0.197183 | 1,349 | 37 | 95 | 36.459459 | 0.844875 | 0.084507 | 0 | 0.307692 | 0 | 0 | 0.076485 | 0.021969 | 0 | 0 | 0 | 0.027027 | 0.153846 | 1 | 0.192308 | false | 0.076923 | 0.153846 | 0 | 0.423077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
cc311821994df4f9bde9991b4a79227d8507f79c | 75,940 | py | Python | pyuwphysret/common/pyfiles/atmos/glatm.py | graziano-giuliani/pythoncode | 4e505af5be3e32519cf4e62b85c101a63c885f77 | [
"MIT"
] | null | null | null | pyuwphysret/common/pyfiles/atmos/glatm.py | graziano-giuliani/pythoncode | 4e505af5be3e32519cf4e62b85c101a63c885f77 | [
"MIT"
] | null | null | null | pyuwphysret/common/pyfiles/atmos/glatm.py | graziano-giuliani/pythoncode | 4e505af5be3e32519cf4e62b85c101a63c885f77 | [
"MIT"
] | 1 | 2020-07-24T02:45:47.000Z | 2020-07-24T02:45:47.000Z | #!/usr/bin/env python
# glatm.py
import numpy as num
def glatm(option):
"""[a,p,t,d,md,gasids] = glatm(atmos)
adapted from glatm.dat. DCT 3/26/97
inputs:
options
1-6 returns the atmospheres listed below
7 returns the minor gas profiles (gas ID's 8-28)
8 returns the trace gas and xsection profiles (ID's ... | 47.551659 | 80 | 0.512115 | 16,577 | 75,940 | 2.345298 | 0.081257 | 0.025387 | 0.045373 | 0.051855 | 0.473944 | 0.413833 | 0.405139 | 0.396368 | 0.384073 | 0.380241 | 0 | 0.521861 | 0.259376 | 75,940 | 1,596 | 81 | 47.581454 | 0.16939 | 0.078812 | 0 | 0.366854 | 0 | 0 | 0.001637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000805 | false | 0 | 0.000805 | 0 | 0.002414 | 0.010459 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
0bc71898b0bc4d5dc4d969d904181f5fb863ac9e | 403 | py | Python | websocket_notifications/settings.py | systemallica/django-websocket-notifications | eae304b021eb14d818d3a1fa5dd18bf791eb4197 | [
"MIT"
] | null | null | null | websocket_notifications/settings.py | systemallica/django-websocket-notifications | eae304b021eb14d818d3a1fa5dd18bf791eb4197 | [
"MIT"
] | null | null | null | websocket_notifications/settings.py | systemallica/django-websocket-notifications | eae304b021eb14d818d3a1fa5dd18bf791eb4197 | [
"MIT"
] | null | null | null | from django.conf import settings
# Needed to build and publish
# ------------------------------------------------------------------------------
SECRET_KEY = "websocket_notifications"
# Specific project configuration
# ------------------------------------------------------------------------------
MESSAGE_TYPE = getat... | 31 | 80 | 0.483871 | 27 | 403 | 6.962963 | 0.777778 | 0.234043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086849 | 403 | 12 | 81 | 33.583333 | 0.51087 | 0.53598 | 0 | 0 | 0 | 0 | 0.434066 | 0.324176 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 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 | 2 |
0bcefa1b6b77639cf7e3db4c4e22cfa780a2195d | 820 | py | Python | app/webauthn/webauthn_schema.py | alphagov/notify-notifications-api | e604385e0cf4c2ab8c6451b7120ceb196cce21b5 | [
"MIT"
] | 51 | 2016-04-03T23:36:17.000Z | 2022-03-21T20:04:52.000Z | app/webauthn/webauthn_schema.py | alphagov/notify-notifications-api | e604385e0cf4c2ab8c6451b7120ceb196cce21b5 | [
"MIT"
] | 1,335 | 2015-12-15T14:28:50.000Z | 2022-03-30T16:24:27.000Z | app/webauthn/webauthn_schema.py | alphagov/notify-notifications-api | e604385e0cf4c2ab8c6451b7120ceb196cce21b5 | [
"MIT"
] | 30 | 2016-01-08T19:05:32.000Z | 2021-12-20T16:37:23.000Z | post_create_webauthn_credential_schema = {
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "POST webauthn_credential schema",
"type": "object",
"properties": {
"name": {"type": "string", "minLength": 1},
"credential_data": {"type": "string", "minLength": 1},
... | 34.166667 | 69 | 0.619512 | 77 | 820 | 6.415584 | 0.324675 | 0.145749 | 0.194332 | 0.161943 | 0.700405 | 0.668016 | 0.578947 | 0.578947 | 0.578947 | 0.578947 | 0 | 0.01194 | 0.182927 | 820 | 23 | 70 | 35.652174 | 0.725373 | 0 | 0 | 0.454545 | 0 | 0 | 0.540244 | 0.05122 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
0be17e85f4f1d6f0e14f20ff4b711798209a5259 | 461 | py | Python | src/app/auth.py | aboliaa/SMSApp | 3c6f3dcccb153a59f0df24ebc4e24560dfecc646 | [
"MIT"
] | null | null | null | src/app/auth.py | aboliaa/SMSApp | 3c6f3dcccb153a59f0df24ebc4e24560dfecc646 | [
"MIT"
] | null | null | null | src/app/auth.py | aboliaa/SMSApp | 3c6f3dcccb153a59f0df24ebc4e24560dfecc646 | [
"MIT"
] | null | null | null | from functools import wraps
from flask import request, abort
from functionality.auth import check_auth
def requires_auth(f):
@wraps(f)
def decorated(*args, **kwargs):
# Flask can decode the Basic Authorization header,
# into the username and password.
auth = request.authorization
... | 30.733333 | 68 | 0.67679 | 59 | 461 | 5.237288 | 0.525424 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008646 | 0.247289 | 461 | 15 | 69 | 30.733333 | 0.881844 | 0.173536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.090909 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
0bf4f74cb7c082c45a3f3385486ad4d638cc55df | 246 | py | Python | Python/Itertools/Maximize It!/solution.py | oleg-cherednik/hackerrank | a76580e300ad7af248ad7c7d6839777e554cc379 | [
"Apache-2.0"
] | 7 | 2020-04-02T16:18:46.000Z | 2021-02-12T14:06:44.000Z | Python/Itertools/Maximize It!/solution.py | oleg-cherednik/HackerRank | a76580e300ad7af248ad7c7d6839777e554cc379 | [
"Apache-2.0"
] | null | null | null | Python/Itertools/Maximize It!/solution.py | oleg-cherednik/HackerRank | a76580e300ad7af248ad7c7d6839777e554cc379 | [
"Apache-2.0"
] | 11 | 2020-05-06T08:28:43.000Z | 2021-12-08T17:25:45.000Z | #!/bin/python3
from itertools import product
if __name__ == '__main__':
K, M = map(int, input().split())
N = (list(map(int, input().split()))[1:] for _ in range(K))
print(max(map(lambda x: sum(i ** 2 for i in x) % M, product(*N))))
| 27.333333 | 70 | 0.589431 | 41 | 246 | 3.317073 | 0.682927 | 0.088235 | 0.161765 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.195122 | 246 | 8 | 71 | 30.75 | 0.671717 | 0.052846 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
0bf5cb7b935c3e2e548b2900f146d930d689aa23 | 3,493 | py | Python | cuda/utils.py | dodgejesse/rational-recurrences | 4d126903399cc4a86734733d037a9bb7c5dda93d | [
"MIT"
] | 27 | 2018-09-28T02:17:07.000Z | 2020-10-15T14:57:16.000Z | cuda/utils.py | Noahs-ARK/PaLM | fe943bb0516d80b09f2b56de60dac9c54dc196e6 | [
"BSD-3-Clause"
] | 1 | 2020-12-13T14:26:03.000Z | 2020-12-13T14:26:03.000Z | cuda/utils.py | Noahs-ARK/PaLM | fe943bb0516d80b09f2b56de60dac9c54dc196e6 | [
"BSD-3-Clause"
] | 5 | 2018-11-06T05:49:51.000Z | 2019-10-26T03:36:43.000Z | UTIL = """
extern "C" {
const int K = 4;
__forceinline__ __device__
float plus_forward(int type,
float x1,
float x2) {
switch (type) {
// plus_times
case 0:
return x1 + x2;
// max_plus
... | 25.129496 | 78 | 0.381048 | 312 | 3,493 | 3.987179 | 0.137821 | 0.038585 | 0.123794 | 0.045016 | 0.618971 | 0.518489 | 0.491158 | 0.451768 | 0.395498 | 0.395498 | 0 | 0.125541 | 0.537074 | 3,493 | 138 | 79 | 25.311594 | 0.643785 | 0 | 0 | 0.666667 | 0 | 0.00813 | 0.995992 | 0.036072 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.170732 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0bf643415f1ebdced99395d837acc18eeeab2425 | 577 | py | Python | scFlash/Denoising/__init__.py | bayeslabs/scFlash | e0e12f1d8bd3b79c74ef3c29b6ca2794c2cba0e2 | [
"MIT"
] | 2 | 2021-05-13T10:04:06.000Z | 2021-05-22T11:47:52.000Z | scFlash/Denoising/__init__.py | bayeslabs/scFlash | e0e12f1d8bd3b79c74ef3c29b6ca2794c2cba0e2 | [
"MIT"
] | null | null | null | scFlash/Denoising/__init__.py | bayeslabs/scFlash | e0e12f1d8bd3b79c74ef3c29b6ca2794c2cba0e2 | [
"MIT"
] | null | null | null | '''
input -> user preference
returns implementation (either DCA or scScope)
'''
from scFlash.Denoising.DCA import DCA
from scFlash.Denoising.scScope import scScope
from scFlash.utils.modules import Base
from typing import Type, Union
import torch
class Denoiser(Base):
modules = {'DCA' : [DCA,['assert "size_f... | 19.233333 | 107 | 0.651646 | 70 | 577 | 5.242857 | 0.542857 | 0.089918 | 0.098093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230503 | 577 | 30 | 108 | 19.233333 | 0.826577 | 0.12305 | 0 | 0 | 0 | 0 | 0.248497 | 0.156313 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0 | 0.5 | 0.1 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
0bfee87841572898b4ec782a885a4db8749294af | 247 | py | Python | exercicios/ex025.py | LucasLima337/CEV_Python_Exercicios | 7959fd2977a26ffca6a9adb13067d4727dc433fe | [
"MIT"
] | null | null | null | exercicios/ex025.py | LucasLima337/CEV_Python_Exercicios | 7959fd2977a26ffca6a9adb13067d4727dc433fe | [
"MIT"
] | null | null | null | exercicios/ex025.py | LucasLima337/CEV_Python_Exercicios | 7959fd2977a26ffca6a9adb13067d4727dc433fe | [
"MIT"
] | null | null | null | # Procurando uma string dentro de outra
n = str(input('Digite o seu nome completo: ')).strip().lower()
r = 'silva' in n.split()
print('')
print('=#=' * 17)
print(f'Nome Completo: {n.title()}')
print(f'Seu nome tem "SILVA"? {r}')
print('=#=' * 17)
| 27.444444 | 62 | 0.615385 | 39 | 247 | 3.897436 | 0.641026 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.1417 | 247 | 8 | 63 | 30.875 | 0.698113 | 0.149798 | 0 | 0.285714 | 0 | 0 | 0.432692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.714286 | 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 | 1 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.