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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
62454390fa6b7ebb14ffe4427a0d44f6e09e47e7 | 2,929 | py | Python | filterdesigner/tests/test_kaiserord.py | Yuki-F-HCU/filterdesigner | bb735d507da0338b2925f84e54df091ce1c32f95 | [
"BSD-3-Clause"
] | 2 | 2020-09-15T07:22:35.000Z | 2021-10-17T08:50:17.000Z | filterdesigner/tests/test_kaiserord.py | Yuki-F-HCU/filterdesigner | bb735d507da0338b2925f84e54df091ce1c32f95 | [
"BSD-3-Clause"
] | null | null | null | filterdesigner/tests/test_kaiserord.py | Yuki-F-HCU/filterdesigner | bb735d507da0338b2925f84e54df091ce1c32f95 | [
"BSD-3-Clause"
] | 2 | 2020-09-15T07:23:24.000Z | 2021-05-03T10:03:32.000Z | import unittest
import filterdesigner.FIRDesign as FIRDesign
import numpy as np
class TestKaiserord(unittest.TestCase):
def setUp(self):
self.f1 = 0.2
self.f2 = 0.3
self.f3 = 0.4
self.f4 = 0.5
self.f5 = 0.6
self.f6 = 0.7
self.m1 = 1
sel... | 48.816667 | 153 | 0.593035 | 444 | 2,929 | 3.871622 | 0.141892 | 0.055846 | 0.08726 | 0.078534 | 0.719023 | 0.63409 | 0.622455 | 0.620128 | 0.614311 | 0.614311 | 0 | 0.140667 | 0.242745 | 2,929 | 60 | 154 | 48.816667 | 0.634355 | 0.086378 | 0 | 0.075 | 0 | 0 | 0.010353 | 0 | 0 | 0 | 0 | 0 | 0.225 | 1 | 0.25 | false | 0.025 | 0.075 | 0 | 0.35 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
62496fedfe902523f9dfcc78dad4b9e744793178 | 818 | py | Python | houston/ardu/copter/copter.py | afsafzal/Houston | fb18848cf5841074ab421e1624c586e1d6c7c669 | [
"MIT"
] | 3 | 2018-11-12T08:04:27.000Z | 2021-12-01T11:25:33.000Z | houston/ardu/copter/copter.py | afsafzal/Houston | fb18848cf5841074ab421e1624c586e1d6c7c669 | [
"MIT"
] | 220 | 2017-10-02T19:49:10.000Z | 2019-08-01T22:08:01.000Z | houston/ardu/copter/copter.py | afsafzal/Houston | fb18848cf5841074ab421e1624c586e1d6c7c669 | [
"MIT"
] | 2 | 2018-10-04T21:03:58.000Z | 2018-10-08T13:33:56.000Z | __all__ = ['ArduCopter']
import logging
import os
from .state import State
from .sandbox import Sandbox
from .goto import GoTo
from .setmode import SetMode
from .takeoff import Takeoff
from .parachute import Parachute
from ..command_factory import read_commands_yml
from ..base import BaseSystem
from ..common import A... | 22.722222 | 71 | 0.721271 | 92 | 818 | 6.228261 | 0.358696 | 0.057592 | 0.052356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194377 | 818 | 35 | 72 | 23.371429 | 0.869499 | 0.147922 | 0 | 0 | 0 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.545455 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
624b2a906eee86a6d3013c10a5f06f0987543dd3 | 211 | py | Python | function/cybereason_constants.py | metron-labs/cybereason-oci | c6e7f0c218dd44717c06904e55e5251b2fe925bb | [
"MIT"
] | 2 | 2021-05-03T08:31:06.000Z | 2021-05-18T07:24:04.000Z | function/cybereason_constants.py | metron-labs/cybereason-oci | c6e7f0c218dd44717c06904e55e5251b2fe925bb | [
"MIT"
] | null | null | null | function/cybereason_constants.py | metron-labs/cybereason-oci | c6e7f0c218dd44717c06904e55e5251b2fe925bb | [
"MIT"
] | null | null | null | # Copyright (c) 2021 Cybereason Inc
# This code is licensed under MIT license (see LICENSE.md for details)
CR_REQUEST_TIMEOUT_SEC = 30 # Time out from network requests to the Cybereason console after this time | 52.75 | 103 | 0.791469 | 34 | 211 | 4.823529 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034091 | 0.165877 | 211 | 4 | 103 | 52.75 | 0.897727 | 0.829384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
624b4ba0d939b83416d4f007420962c1ae249f6b | 3,280 | py | Python | limpyd_extensions/dynamic/related.py | twidi/redis-limpyd-extensions | 9d80c17a2b5ed10ffa169ce31beae70d9cff49d2 | [
"WTFPL"
] | 6 | 2016-04-25T11:06:27.000Z | 2021-12-20T13:31:20.000Z | limpyd_extensions/dynamic/related.py | twidi/redis-limpyd-extensions | 9d80c17a2b5ed10ffa169ce31beae70d9cff49d2 | [
"WTFPL"
] | 1 | 2019-10-11T12:19:08.000Z | 2019-10-11T12:19:08.000Z | limpyd_extensions/dynamic/related.py | limpyd/redis-limpyd-extensions | 9d80c17a2b5ed10ffa169ce31beae70d9cff49d2 | [
"WTFPL"
] | null | null | null | # -*- coding:utf-8 -*-
from __future__ import unicode_literals
from future.builtins import object
from limpyd.contrib.related import re_identifier
from ..related import (FKStringField, FKInstanceHashField,
M2MSetField, M2MListField, M2MSortedSetField,
RelatedCollectionFor... | 34.893617 | 119 | 0.760976 | 283 | 3,280 | 8.607774 | 0.339223 | 0.036125 | 0.045156 | 0.01642 | 0.050493 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00374 | 0.184756 | 3,280 | 93 | 120 | 35.268817 | 0.907255 | 0.135976 | 0 | 0.106383 | 0 | 0 | 0.004009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0.106383 | 0.106383 | 0 | 0.595745 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
625db6d0f6e2373f69d4e98990212f59b3ef151c | 210 | py | Python | Exercicios/ex006.py | rbpope/AulasPythonMundo1 | 85ad4d97a3451c322a675ee796084f56c07acdcd | [
"MIT"
] | null | null | null | Exercicios/ex006.py | rbpope/AulasPythonMundo1 | 85ad4d97a3451c322a675ee796084f56c07acdcd | [
"MIT"
] | null | null | null | Exercicios/ex006.py | rbpope/AulasPythonMundo1 | 85ad4d97a3451c322a675ee796084f56c07acdcd | [
"MIT"
] | null | null | null | from math import sqrt
n = int(input('Digite um número: '))
d = n * 2
t = n * 3
r = sqrt(n)
print('O dobro de {} é {}\nO triplo de {} é {}'.format(n, d, n, t))
print('A raiz quadrada de {} é {}.'.format(n, r))
| 23.333333 | 67 | 0.557143 | 42 | 210 | 2.785714 | 0.619048 | 0.076923 | 0.153846 | 0.17094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.219048 | 210 | 8 | 68 | 26.25 | 0.70122 | 0 | 0 | 0 | 0 | 0 | 0.401914 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 |
625f7e98689ee275828e2056c65c8e6645b7b518 | 6,266 | py | Python | devito/types/array.py | kristiantorres/devito | 9357d69448698fd2b7a57be6fbb400058716b532 | [
"MIT"
] | null | null | null | devito/types/array.py | kristiantorres/devito | 9357d69448698fd2b7a57be6fbb400058716b532 | [
"MIT"
] | 31 | 2020-05-19T15:08:19.000Z | 2022-03-21T13:01:38.000Z | devito/types/array.py | kristiantorres/devito | 9357d69448698fd2b7a57be6fbb400058716b532 | [
"MIT"
] | null | null | null | from ctypes import POINTER
from math import ceil
import numpy as np
from cached_property import cached_property
from devito.parameters import configuration
from devito.tools import as_tuple, ctypes_to_cstr, dtype_to_ctype
from devito.types.basic import AbstractFunction
__all__ = ['Array', 'PointerArray']
class Arr... | 31.174129 | 89 | 0.63262 | 769 | 6,266 | 4.981795 | 0.283485 | 0.034456 | 0.029235 | 0.016706 | 0.262334 | 0.246672 | 0.216393 | 0.200209 | 0.136257 | 0.136257 | 0 | 0.003711 | 0.268912 | 6,266 | 200 | 90 | 31.33 | 0.832569 | 0.332908 | 0 | 0.273684 | 0 | 0 | 0.066014 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 1 | 0.210526 | false | 0 | 0.073684 | 0.147368 | 0.589474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
626af0e5936ad9f8efa7896d7a8ed295886f4330 | 442 | py | Python | divide conquer/majority_element.py | younes-assou/some-data-structures-and-algos | 0ac46380d703d9bb58a4dcf5b03558973ff2ad99 | [
"MIT"
] | null | null | null | divide conquer/majority_element.py | younes-assou/some-data-structures-and-algos | 0ac46380d703d9bb58a4dcf5b03558973ff2ad99 | [
"MIT"
] | null | null | null | divide conquer/majority_element.py | younes-assou/some-data-structures-and-algos | 0ac46380d703d9bb58a4dcf5b03558973ff2ad99 | [
"MIT"
] | null | null | null | def get_majority_element(a, left, right):
a.sort()
if left == right:
return -1
if left + 1 == right:
return a[left]
#write your code here
mid = left + (right-left)//2
k=0
for i in range(len(a)):
if a[i]==a[mid]: k+=1
if k > right/2 : return k
return -1
n =... | 18.416667 | 41 | 0.531674 | 75 | 442 | 3.08 | 0.426667 | 0.116883 | 0.155844 | 0.164502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035599 | 0.300905 | 442 | 23 | 42 | 19.217391 | 0.711974 | 0.045249 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
62848a98eb965b907576e5ec1e9908cc395bcb9c | 2,373 | py | Python | movement.py | dluiscosta/pythongame | a3a2b894bc70e4fc1290fc82871759edea6bdb19 | [
"MIT"
] | null | null | null | movement.py | dluiscosta/pythongame | a3a2b894bc70e4fc1290fc82871759edea6bdb19 | [
"MIT"
] | 4 | 2019-01-25T02:02:37.000Z | 2019-01-25T02:09:23.000Z | movement.py | dluiscosta/pythongame | a3a2b894bc70e4fc1290fc82871759edea6bdb19 | [
"MIT"
] | null | null | null | import pygame as pg
class Movement: #control class
def __init__(self, move_steps=16, beginning_mov_parcel=0, moving_sprite_frames=20):
self.move_steps = move_steps # frames required for each movement
# Size of the beginning parcel (in frames) in which a movement can still
# be cancelled
... | 36.507692 | 87 | 0.659924 | 319 | 2,373 | 4.727273 | 0.30721 | 0.046419 | 0.059682 | 0.037135 | 0.081565 | 0.053714 | 0.053714 | 0.037135 | 0 | 0 | 0 | 0.005269 | 0.280236 | 2,373 | 64 | 88 | 37.078125 | 0.877635 | 0.280236 | 0 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.02381 | 0.119048 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
628f29107d91675a9e91bd70ff2e8869e119e35a | 1,078 | py | Python | 7day/web/Web23.py | jsjang93/joony | 62f7a325094c887212b894932263bf84500e0f03 | [
"MIT"
] | null | null | null | 7day/web/Web23.py | jsjang93/joony | 62f7a325094c887212b894932263bf84500e0f03 | [
"MIT"
] | null | null | null | 7day/web/Web23.py | jsjang93/joony | 62f7a325094c887212b894932263bf84500e0f03 | [
"MIT"
] | null | null | null | # Web23.py
import requests
from bs4 import BeautifulSoup
url = "http://music.naver.com/listen/history/index.nhn?type=TOTAL&year=2017&month=12&week=1"
html_music = requests.get(url).text
soup_music = BeautifulSoup(html_music, "lxml")
# a 태그의 요소 중에서 class 속성값이 "_title" 인 것을 찾고
# 그 안에서 span 태그의 요소 중에서 class 속성값이 "elli... | 26.292683 | 92 | 0.730056 | 191 | 1,078 | 4 | 0.303665 | 0.054974 | 0.052356 | 0.085079 | 0.543194 | 0.517016 | 0.42801 | 0.42801 | 0.42801 | 0.42801 | 0 | 0.02452 | 0.12987 | 1,078 | 40 | 93 | 26.95 | 0.788913 | 0.238404 | 0 | 0.315789 | 0 | 0.052632 | 0.178792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.421053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6290e6a3c597c957c82c6da8c3f91036e09644d3 | 6,715 | py | Python | stylemuzeapp/migrations/0001_initial.py | Abhisheksoni1/stylemuze | 385ec1ed799914c91bbccfca9086c6eafa7e1b1b | [
"MIT"
] | null | null | null | stylemuzeapp/migrations/0001_initial.py | Abhisheksoni1/stylemuze | 385ec1ed799914c91bbccfca9086c6eafa7e1b1b | [
"MIT"
] | null | null | null | stylemuzeapp/migrations/0001_initial.py | Abhisheksoni1/stylemuze | 385ec1ed799914c91bbccfca9086c6eafa7e1b1b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-16 16:15
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Creat... | 43.044872 | 148 | 0.579151 | 659 | 6,715 | 5.723824 | 0.15478 | 0.033934 | 0.055673 | 0.087487 | 0.752386 | 0.726935 | 0.682927 | 0.64369 | 0.64369 | 0.579268 | 0 | 0.011035 | 0.284736 | 6,715 | 155 | 149 | 43.322581 | 0.774308 | 0.009978 | 0 | 0.639456 | 1 | 0 | 0.129872 | 0.023627 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020408 | 0 | 0.047619 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
655a140b496fc2932cbef3aab346bfb9a3c2d95d | 1,120 | py | Python | rose/profile/profile.py | good-praxis/pronoun-discord-bot | c0c2a2bf7c902550dd03767dd80c563fdb620aac | [
"MIT"
] | 1 | 2018-07-05T18:24:18.000Z | 2018-07-05T18:24:18.000Z | rose/profile/profile.py | VulpineCat/pronoun-discord-bot | c0c2a2bf7c902550dd03767dd80c563fdb620aac | [
"MIT"
] | 76 | 2018-12-09T15:59:12.000Z | 2021-07-26T04:16:04.000Z | rose/profile/profile.py | VulpineCat/pronoun-discord-bot | c0c2a2bf7c902550dd03767dd80c563fdb620aac | [
"MIT"
] | null | null | null | import rose.profile.field_factory as factory
from rose.profile.fields import ProfileField
class Profile:
def __init__(self, id, callback=lambda arg: arg):
self._id = id
self._fields = dict()
self._change_callback = callback
@property
def fields(self):
"""returns a set of al... | 32 | 94 | 0.6125 | 141 | 1,120 | 4.702128 | 0.404255 | 0.090498 | 0.054299 | 0.027149 | 0.093514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265179 | 1,120 | 34 | 95 | 32.941176 | 0.805589 | 0.0375 | 0 | 0.153846 | 0 | 0 | 0.078358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.076923 | 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 |
65685c40d58e242208c331750adb1fad5f71f0b4 | 175 | py | Python | refresh_all.py | flavio-a/GeoguessrBot | 5b6cf356a5f6b3538ff6aa147cc8a665def0a3fa | [
"MIT"
] | 2 | 2018-09-24T17:36:57.000Z | 2021-02-07T19:09:31.000Z | refresh_all.py | flavio-a/GeoguessrBot | 5b6cf356a5f6b3538ff6aa147cc8a665def0a3fa | [
"MIT"
] | 1 | 2018-12-15T10:31:08.000Z | 2018-12-15T10:31:08.000Z | refresh_all.py | flavio-a/GeoguessrBot | 5b6cf356a5f6b3538ff6aa147cc8a665def0a3fa | [
"MIT"
] | null | null | null | import bot
if __name__ == "__main__":
print('Refreshing all...')
links = bot.db.getLinksList()
for link in links:
bot.refreshMatch(link)
print('Refreshed succesfully')
| 19.444444 | 31 | 0.714286 | 22 | 175 | 5.318182 | 0.772727 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 175 | 8 | 32 | 21.875 | 0.78 | 0 | 0 | 0 | 0 | 0 | 0.262857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 |
657b6d48e6aed4163dbb0b023ee1e69313313fc3 | 1,877 | py | Python | test/protocols_flavor.py | cihangir/vitess | ab6f2bde284618fe6ec97b22749d07745f90785e | [
"BSD-3-Clause"
] | null | null | null | test/protocols_flavor.py | cihangir/vitess | ab6f2bde284618fe6ec97b22749d07745f90785e | [
"BSD-3-Clause"
] | null | null | null | test/protocols_flavor.py | cihangir/vitess | ab6f2bde284618fe6ec97b22749d07745f90785e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import logging
import os
class ProtocolsFlavor(object):
"""Base class for protocols"""
def binlog_player_protocol_flags(self):
"""Returns the flags to pass to process to set the binlog player protocol."""
return []
def vtctl_client_protocol(self):
"""Returns the protocol to u... | 27.602941 | 105 | 0.736814 | 238 | 1,877 | 5.571429 | 0.327731 | 0.113122 | 0.076923 | 0.054299 | 0.370287 | 0.331071 | 0.258673 | 0.233032 | 0.233032 | 0.159125 | 0 | 0.000638 | 0.165157 | 1,877 | 67 | 106 | 28.014925 | 0.845565 | 0.242408 | 0 | 0.35 | 0 | 0 | 0.180375 | 0.051227 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.05 | 0.15 | 0.65 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
658570fb0003c35bb3acfef512bdfae1a03117b1 | 410 | py | Python | assignments/assignment02/code/tests/test_load.py | juanshishido/info290-dds | 1b9d7df8fbdf73d41fd0dbed20e13f9578c2826b | [
"MIT"
] | null | null | null | assignments/assignment02/code/tests/test_load.py | juanshishido/info290-dds | 1b9d7df8fbdf73d41fd0dbed20e13f9578c2826b | [
"MIT"
] | null | null | null | assignments/assignment02/code/tests/test_load.py | juanshishido/info290-dds | 1b9d7df8fbdf73d41fd0dbed20e13f9578c2826b | [
"MIT"
] | null | null | null | import unittest
from code.permutation import load
class TestLoadData(unittest.TestCase):
features, box_office = load()
def test_load_returns_not_None(self):
self.assertIsNotNone(load())
def test_load_features_shape(self):
self.assertEquals((39360, 2), self.features.shape)
def test... | 22.777778 | 59 | 0.72439 | 53 | 410 | 5.358491 | 0.45283 | 0.09507 | 0.116197 | 0.105634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032544 | 0.17561 | 410 | 17 | 60 | 24.117647 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6587e179e50604a012e66cc7f29c0db0f18cc177 | 445 | py | Python | DataStructures and Algorithms/Recursion/Reverse.py | abhishekratnam/Datastructuresandalgorithmsinpython | 9339319f441755797f4d2818ac9cf742a63ab5ea | [
"MIT"
] | null | null | null | DataStructures and Algorithms/Recursion/Reverse.py | abhishekratnam/Datastructuresandalgorithmsinpython | 9339319f441755797f4d2818ac9cf742a63ab5ea | [
"MIT"
] | null | null | null | DataStructures and Algorithms/Recursion/Reverse.py | abhishekratnam/Datastructuresandalgorithmsinpython | 9339319f441755797f4d2818ac9cf742a63ab5ea | [
"MIT"
] | null | null | null | def reverse(S, start, stop):
"""Reverse elements in emplicit slice S[start:stop]."""
if start < stop - 1:
S[start], S[stop-1] = S[stop - 1], S[start]
reverse(S, start+1, stop - 1)
def reverse_iterative(S):
"""Reverse elements in S using tail recursion"""
start,stop = 0,len... | 31.785714 | 60 | 0.550562 | 69 | 445 | 3.536232 | 0.26087 | 0.163934 | 0.147541 | 0.180328 | 0.278689 | 0.278689 | 0.278689 | 0.278689 | 0.278689 | 0.278689 | 0 | 0.0347 | 0.28764 | 445 | 13 | 61 | 34.230769 | 0.735016 | 0.206742 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
65956446f053a1ed24a463bd25beb977c01d6840 | 589 | py | Python | slybot/slybot/settings.py | ruairif/portia | 175b1f5bbec50fda6adda042481bd09c77d12bf0 | [
"BSD-3-Clause"
] | null | null | null | slybot/slybot/settings.py | ruairif/portia | 175b1f5bbec50fda6adda042481bd09c77d12bf0 | [
"BSD-3-Clause"
] | null | null | null | slybot/slybot/settings.py | ruairif/portia | 175b1f5bbec50fda6adda042481bd09c77d12bf0 | [
"BSD-3-Clause"
] | null | null | null | SPIDER_MANAGER_CLASS = 'slybot.spidermanager.SlybotSpiderManager'
EXTENSIONS = {'slybot.closespider.SlybotCloseSpider': 1}
ITEM_PIPELINES = {'slybot.dupefilter.DupeFilterPipeline': 1}
SPIDER_MIDDLEWARES = {'slybot.spiderlets.SpiderletsMiddleware': 999} # as close as possible to spider output
PLUGINS = ['slybot.plugins... | 34.647059 | 109 | 0.794567 | 62 | 589 | 7.354839 | 0.758065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009506 | 0.106961 | 589 | 16 | 110 | 36.8125 | 0.857414 | 0.062818 | 0 | 0 | 0 | 0 | 0.456364 | 0.425455 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
65aaf9631e5ef9defb0c37bad960234787b0a6ed | 443 | py | Python | Programs/BingImageDownloader/main.py | Alperencode/Python | 6cd1ce6afb76011ec25d567a988367f8522e7461 | [
"MIT"
] | 1 | 2022-03-07T18:57:40.000Z | 2022-03-07T18:57:40.000Z | Programs/BingImageDownloader/main.py | Alperencode/Python | 6cd1ce6afb76011ec25d567a988367f8522e7461 | [
"MIT"
] | null | null | null | Programs/BingImageDownloader/main.py | Alperencode/Python | 6cd1ce6afb76011ec25d567a988367f8522e7461 | [
"MIT"
] | null | null | null | from bing_image_downloader import downloader
downloader.download("people from drone view", limit=1000, output_dir='images', adult_filter_off=False)
# First one is the query for search
# Second one is the limit of images to download
# Third one is the output directory
# Fourth one is the adult filter off (which is cl... | 44.3 | 103 | 0.790068 | 73 | 443 | 4.726027 | 0.684932 | 0.057971 | 0.092754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.160271 | 443 | 10 | 104 | 44.3 | 0.916667 | 0.634312 | 0 | 0 | 0 | 0 | 0.178344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
65b4cda18e1c969852e10be98edff2f56b5b7098 | 2,119 | py | Python | blog/models.py | mkimartinez/Lyfey | 8a27ef7fea92146f043c68c7ef5ee3672014c3fc | [
"MIT"
] | null | null | null | blog/models.py | mkimartinez/Lyfey | 8a27ef7fea92146f043c68c7ef5ee3672014c3fc | [
"MIT"
] | null | null | null | blog/models.py | mkimartinez/Lyfey | 8a27ef7fea92146f043c68c7ef5ee3672014c3fc | [
"MIT"
] | null | null | null | from django.db import models
from django.conf import settings
from django.contrib.auth.models import User
from ckeditor.fields import RichTextField
from ckeditor_uploader.fields import RichTextUploadingField
from django.urls import reverse
import django.db.models.deletion
def upload_location(instance,filename):
return... | 34.177419 | 125 | 0.78386 | 300 | 2,119 | 5.356667 | 0.306667 | 0.029869 | 0.043559 | 0.068451 | 0.405103 | 0.239577 | 0.177971 | 0.177971 | 0.177971 | 0.1257 | 0 | 0.006253 | 0.094384 | 2,119 | 61 | 126 | 34.737705 | 0.831162 | 0.134025 | 0 | 0.071429 | 0 | 0 | 0.041096 | 0.011507 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.166667 | 0.119048 | 0.880952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
65bb1f0a93097fe63d39326a0822518fd6e8d3dc | 402 | py | Python | 06_lists2_indexing.py | vierth/humanitiesTutorial | cdac8c381f13d740503237ee91c8969be812e6d4 | [
"Apache-2.0"
] | 18 | 2018-07-18T06:13:46.000Z | 2021-12-23T09:11:02.000Z | 06_lists2_indexing.py | vierth/humanitiesTutorial | cdac8c381f13d740503237ee91c8969be812e6d4 | [
"Apache-2.0"
] | null | null | null | 06_lists2_indexing.py | vierth/humanitiesTutorial | cdac8c381f13d740503237ee91c8969be812e6d4 | [
"Apache-2.0"
] | 5 | 2018-10-09T14:36:57.000Z | 2021-04-24T09:04:20.000Z | # Lists always stay in the same order, so you can get
# information out very easily. List indexes act very similar
# to string indexs
intList = [1, 2, 3, 4, 5]
# Get the first item
print(intList[0])
# Get the last item
print(intList[-1])
# Alternatively:
print(intList[len(intList) - 1])
# Get the 2nd to 4th items
... | 21.157895 | 60 | 0.706468 | 69 | 402 | 4.115942 | 0.623188 | 0.211268 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039275 | 0.176617 | 402 | 19 | 61 | 21.157895 | 0.818731 | 0.599502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.833333 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
65c1ac5a3e5276c9abc9445af5107acc7f1eedcf | 8,621 | py | Python | src/oci/log_analytics/models/log_analytics_em_bridge_summary_report.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 249 | 2017-09-11T22:06:05.000Z | 2022-03-04T17:09:29.000Z | src/oci/log_analytics/models/log_analytics_em_bridge_summary_report.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 228 | 2017-09-11T23:07:26.000Z | 2022-03-23T10:58:50.000Z | src/oci/log_analytics/models/log_analytics_em_bridge_summary_report.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 224 | 2017-09-27T07:32:43.000Z | 2022-03-25T16:55:42.000Z | # coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 37.482609 | 245 | 0.712794 | 989 | 8,621 | 5.831143 | 0.142568 | 0.126235 | 0.202878 | 0.05202 | 0.786024 | 0.677822 | 0.572221 | 0.529391 | 0.460725 | 0.317323 | 0 | 0.002705 | 0.228048 | 8,621 | 229 | 246 | 37.646288 | 0.863862 | 0.537757 | 0 | 0.084507 | 0 | 0 | 0.12648 | 0.090343 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225352 | false | 0 | 0.028169 | 0.028169 | 0.408451 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
65d21cd707ec609a2c1f609d91b32afc5ea17eb0 | 669 | py | Python | eth2_sim/simulation/sim_config.py | hwwhww/trinity | 614b083a637c665f84b1af228541f37c25d9c665 | [
"MIT"
] | 2 | 2020-01-30T21:51:00.000Z | 2020-07-22T14:51:05.000Z | eth2_sim/simulation/sim_config.py | hwwhww/trinity | 614b083a637c665f84b1af228541f37c25d9c665 | [
"MIT"
] | null | null | null | eth2_sim/simulation/sim_config.py | hwwhww/trinity | 614b083a637c665f84b1af228541f37c25d9c665 | [
"MIT"
] | null | null | null |
class Config(object):
# Measuration Parameters
TOTAL_TICKS = 80
PRECISION = 1
INITIAL_TIMESTAMP = 1
# Acceleration Parameters
MINIMIZE_CHECKING = True
GENERATE_STATE = False
LOGGING_NETWORK = False
# SPEC Parameters
SLOTS_PER_EPOCH = 8
# System Parameters
NUM_VALIDATO... | 21.580645 | 80 | 0.68012 | 80 | 669 | 5.3875 | 0.6375 | 0.060325 | 0.064965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042683 | 0.264574 | 669 | 30 | 81 | 22.3 | 0.833333 | 0.179372 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
65dc467a8e846355f4efba28d52897d3a8c228db | 1,495 | py | Python | trikit/__init__.py | lazysloth3/trikit | 5b2c8fb34bf88bef7e21f47df8f9099ec572da3e | [
"MIT"
] | null | null | null | trikit/__init__.py | lazysloth3/trikit | 5b2c8fb34bf88bef7e21f47df8f9099ec572da3e | [
"MIT"
] | null | null | null | trikit/__init__.py | lazysloth3/trikit | 5b2c8fb34bf88bef7e21f47df8f9099ec572da3e | [
"MIT"
] | null | null | null | """
-------------------------------------------------------------------------------
| _ |
| | |_ _ __(_) | _(_) |_ |
| | __| '__| | |/ / | __| ... | 38.333333 | 79 | 0.433445 | 118 | 1,495 | 4.915254 | 0.40678 | 0.108621 | 0.056897 | 0.082759 | 0.186207 | 0.07931 | 0 | 0 | 0 | 0 | 0 | 0.008762 | 0.389298 | 1,495 | 38 | 80 | 39.342105 | 0.626506 | 0.577258 | 0 | 0.086957 | 0 | 0 | 0.016026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.608696 | 0 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
65dd244ccd13eb95cf8bc5c94336f4cdf147ee9f | 335 | py | Python | configs/mask_rcnn/mask_rcnn_se_x101_64x4d_fpn_mstrain_1x_coco.py | tianchiVideoSeg/mmdetection | 5b42995face6d7c9b40221a27ec6ef103ab58562 | [
"Apache-2.0"
] | 1 | 2021-08-03T06:47:06.000Z | 2021-08-03T06:47:06.000Z | configs/mask_rcnn/mask_rcnn_se_x101_64x4d_fpn_mstrain_1x_coco.py | tianchiVideoSeg/mmdetection | 5b42995face6d7c9b40221a27ec6ef103ab58562 | [
"Apache-2.0"
] | 1 | 2022-01-13T09:00:40.000Z | 2022-01-13T09:00:40.000Z | configs/mask_rcnn/mask_rcnn_se_x101_64x4d_fpn_mstrain_1x_coco.py | tianchiVideoSeg/mmdetection | 5b42995face6d7c9b40221a27ec6ef103ab58562 | [
"Apache-2.0"
] | 1 | 2022-02-02T03:17:31.000Z | 2022-02-02T03:17:31.000Z | _base_ = [
'../_base_/models/mask_rcnn_se_r50_fpn.py',
'../_base_/datasets/coco_instance.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
pretrained='checkpoints/se_resnext101_64x4d-f9926f93.pth',
backbone=dict(block='SEResNeXtBottleneck', layers=[3, 4, 23, 3... | 37.222222 | 80 | 0.701493 | 43 | 335 | 5.023256 | 0.767442 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.113433 | 335 | 8 | 81 | 41.875 | 0.653199 | 0 | 0 | 0 | 0 | 0 | 0.597015 | 0.540299 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
65e7d56f29e664624ba7f879e66681ec21c53a05 | 1,114 | py | Python | src/app/api/routes/accesses.py | pyronear/pyro-api | 9244b79b29bd5171ea1d02ed3c9cbb3eea75b60d | [
"Apache-2.0"
] | 8 | 2020-11-13T14:21:34.000Z | 2022-03-11T18:34:54.000Z | src/app/api/routes/accesses.py | pyronear/pyro-api | 9244b79b29bd5171ea1d02ed3c9cbb3eea75b60d | [
"Apache-2.0"
] | 169 | 2020-11-11T15:47:07.000Z | 2022-02-17T23:10:34.000Z | src/app/api/routes/accesses.py | pyronear/pyro-api | 9244b79b29bd5171ea1d02ed3c9cbb3eea75b60d | [
"Apache-2.0"
] | 2 | 2021-02-15T10:41:48.000Z | 2021-11-06T01:02:09.000Z | # Copyright (C) 2021, Pyronear contributors.
# This program is licensed under the Apache License version 2.
# See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details.
from typing import List
from fastapi import APIRouter, Path, Security
from app.api import crud
from app.db impo... | 35.935484 | 114 | 0.754937 | 159 | 1,114 | 5.176101 | 0.471698 | 0.034022 | 0.036452 | 0.058323 | 0.157959 | 0.109356 | 0.109356 | 0 | 0 | 0 | 0 | 0.008359 | 0.140934 | 1,114 | 30 | 115 | 37.133333 | 0.85162 | 0.179533 | 0 | 0 | 0 | 0 | 0.107713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
029db17a23aefe6f84f97a9ed760f407077b514d | 381 | py | Python | SimpleConditions/05.numbersToTenText.py | SpleefDinamix/SoftuniPythonProgrammingBasics | c4a2a84a85e1b55f1ef9f4967a756fa2d39061a7 | [
"MIT"
] | null | null | null | SimpleConditions/05.numbersToTenText.py | SpleefDinamix/SoftuniPythonProgrammingBasics | c4a2a84a85e1b55f1ef9f4967a756fa2d39061a7 | [
"MIT"
] | null | null | null | SimpleConditions/05.numbersToTenText.py | SpleefDinamix/SoftuniPythonProgrammingBasics | c4a2a84a85e1b55f1ef9f4967a756fa2d39061a7 | [
"MIT"
] | null | null | null | num = int(input())
if num == 0:
print("zero")
elif num == 1:
print("one")
elif num == 2:
print("two")
elif num == 3:
print("three")
elif num == 4:
print("four")
elif num == 5:
print("five")
elif num == 6:
print("six")
elif num == 7:
print("seven")
elif num == 8:
print("eight")
elif ... | 15.875 | 27 | 0.524934 | 58 | 381 | 3.448276 | 0.517241 | 0.315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.265092 | 381 | 24 | 27 | 15.875 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0.141361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.478261 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
02a1480fb2e507df7696cc89dd26d7847d8d7c11 | 5,283 | py | Python | scripts/generate.py | wateryan/fixp | 64e1ab571dca1238764572d16ccf1e63e9fc68ab | [
"MIT"
] | null | null | null | scripts/generate.py | wateryan/fixp | 64e1ab571dca1238764572d16ccf1e63e9fc68ab | [
"MIT"
] | null | null | null | scripts/generate.py | wateryan/fixp | 64e1ab571dca1238764572d16ccf1e63e9fc68ab | [
"MIT"
] | null | null | null | """ Simple script to generate Rust source code based on a provided XML Fix message specification """
import os
import re
import xml.etree.ElementTree
from string import Template
ROOT_DIR = "spec"
F_IMPORTS = "use field::Field;"
F_TRAIT = "trait Field {fn tag(&self) -> u16;}"
F_IMPL_TEMPLATE = Template(
"impl Fiel... | 33.865385 | 100 | 0.611584 | 653 | 5,283 | 4.782542 | 0.300153 | 0.035223 | 0.043228 | 0.051233 | 0.133846 | 0.10919 | 0.071726 | 0.071726 | 0.037144 | 0.037144 | 0 | 0.013106 | 0.234526 | 5,283 | 155 | 101 | 34.083871 | 0.759149 | 0.028582 | 0 | 0.107438 | 1 | 0 | 0.21761 | 0.005025 | 0 | 0 | 0 | 0.006452 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.008264 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
02a1b8e1de0111a62793820d4ec06ac646295a20 | 411 | py | Python | chat_app/consumers.py | chunky2808/Hire-Me | 7a43fb2f555a5f46e285d24c18457c2ce1c0d225 | [
"MIT"
] | null | null | null | chat_app/consumers.py | chunky2808/Hire-Me | 7a43fb2f555a5f46e285d24c18457c2ce1c0d225 | [
"MIT"
] | 6 | 2020-02-12T00:41:15.000Z | 2022-03-11T23:20:37.000Z | chat_app/consumers.py | chunky2808/Hire-Me | 7a43fb2f555a5f46e285d24c18457c2ce1c0d225 | [
"MIT"
] | null | null | null | from channels import Group
def ws_add(message):
print('Connection Recieved')
message.reply_channel.send({'accept':True})
Group('chat').add(message.reply_channel)
def ws_message(message):
print('Message received:{}'.format(message.content['text']))
Group('chat').send({'text': message.content['text']})
def ws_dis... | 29.357143 | 61 | 0.746959 | 54 | 411 | 5.574074 | 0.444444 | 0.049834 | 0.189369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072993 | 411 | 14 | 62 | 29.357143 | 0.790026 | 0 | 0 | 0 | 0 | 0 | 0.206311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.363636 | 0.272727 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
02a44283534508bd36461728f3801501831d6c68 | 119 | py | Python | python/hello.py | ykoon-git/aws | f1e16154d7b5feae3cc32c04b5a7054ac6fa2621 | [
"MIT"
] | null | null | null | python/hello.py | ykoon-git/aws | f1e16154d7b5feae3cc32c04b5a7054ac6fa2621 | [
"MIT"
] | null | null | null | python/hello.py | ykoon-git/aws | f1e16154d7b5feae3cc32c04b5a7054ac6fa2621 | [
"MIT"
] | null | null | null | import boto3
# Let's use Amazon S3
s3 = boto3.resource('s3')
for bucket in s3.buckets.all():
print(bucket.name)
| 13.222222 | 31 | 0.680672 | 20 | 119 | 4.05 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061856 | 0.184874 | 119 | 8 | 32 | 14.875 | 0.773196 | 0.159664 | 0 | 0 | 0 | 0 | 0.020619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 |
02a7cb42bd2a86a38a1f9a36971c6bbcc6dfae72 | 678 | py | Python | widget/steps.py | asyatrina/selenium_kurs | f245614b6b7de776765cddf569158140df465514 | [
"Apache-2.0"
] | null | null | null | widget/steps.py | asyatrina/selenium_kurs | f245614b6b7de776765cddf569158140df465514 | [
"Apache-2.0"
] | null | null | null | widget/steps.py | asyatrina/selenium_kurs | f245614b6b7de776765cddf569158140df465514 | [
"Apache-2.0"
] | null | null | null | from selenium.webdriver.remote.webdriver import WebDriver
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
class UsedSteps:
def __init__(self, driver: WebDriver):
self.driver = driver
def find_and_click_on_element(self, select... | 35.684211 | 96 | 0.778761 | 89 | 678 | 5.629213 | 0.41573 | 0.0998 | 0.125749 | 0.111776 | 0.167665 | 0.167665 | 0.167665 | 0.167665 | 0 | 0 | 0 | 0.003419 | 0.137168 | 678 | 18 | 97 | 37.666667 | 0.852991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.25 | 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 |
02abda6e4dfd6079c1da5f868ce2da17805bbac9 | 269 | py | Python | lib/oeqa/runtime/cases/rubygems_rubygems_rubyntlm.py | tuxable-ltd/meta-rubygems | e80630e79b64e1be8339e1add0ab07644ec99425 | [
"BSD-2-Clause"
] | null | null | null | lib/oeqa/runtime/cases/rubygems_rubygems_rubyntlm.py | tuxable-ltd/meta-rubygems | e80630e79b64e1be8339e1add0ab07644ec99425 | [
"BSD-2-Clause"
] | 141 | 2021-02-04T16:22:13.000Z | 2022-03-27T08:29:40.000Z | lib/oeqa/runtime/cases/rubygems_rubygems_rubyntlm.py | tuxable-ltd/meta-rubygems | e80630e79b64e1be8339e1add0ab07644ec99425 | [
"BSD-2-Clause"
] | 3 | 2021-02-04T14:02:01.000Z | 2022-02-02T16:46:52.000Z | from rubygems_utils import RubyGemsTestUtils
class RubyGemsTestrubygems_rubyntlm(RubyGemsTestUtils):
def test_gem_list_rubygems_rubyntlm(self):
self.gem_is_installed("rubyntlm")
def test_load_rubyntlm(self):
self.gem_is_loadable("rubyntlm")
| 24.454545 | 55 | 0.780669 | 31 | 269 | 6.387097 | 0.548387 | 0.070707 | 0.161616 | 0.191919 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148699 | 269 | 10 | 56 | 26.9 | 0.864629 | 0 | 0 | 0 | 0 | 0 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
02b879e935038a32ed64b1287ed83d313337a423 | 832 | py | Python | weight/tests/maintest.py | mfa/weight-app | f0df8eb5475f0e5afbd2a1cfc1a333641344f821 | [
"BSD-3-Clause"
] | null | null | null | weight/tests/maintest.py | mfa/weight-app | f0df8eb5475f0e5afbd2a1cfc1a333641344f821 | [
"BSD-3-Clause"
] | null | null | null | weight/tests/maintest.py | mfa/weight-app | f0df8eb5475f0e5afbd2a1cfc1a333641344f821 | [
"BSD-3-Clause"
] | null | null | null | #!/bin/env python
""" Part of weight_app
:copyright: (c) 2012 by Andreas Madsack.
:license: BSD, see LICENSE for more details.
"""
# testsuite
# run: python main.py
import unittest
import os
import sys
def suite():
from base import BaseTest
from test_importer import ImportTest
from test_forms i... | 23.771429 | 94 | 0.700721 | 108 | 832 | 5.194444 | 0.509259 | 0.053476 | 0.106952 | 0.15508 | 0.096257 | 0.096257 | 0.096257 | 0 | 0 | 0 | 0 | 0.007194 | 0.164663 | 832 | 34 | 95 | 24.470588 | 0.8 | 0.308894 | 0 | 0 | 0 | 0 | 0.03964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.4375 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
02ce0124c03f84da992c153d9c656e94ead33dbe | 504 | py | Python | aplikace/views.py | it1925/docker-django | 1fb0eb25469cde07103fba1938211af44d797656 | [
"MIT"
] | null | null | null | aplikace/views.py | it1925/docker-django | 1fb0eb25469cde07103fba1938211af44d797656 | [
"MIT"
] | null | null | null | aplikace/views.py | it1925/docker-django | 1fb0eb25469cde07103fba1938211af44d797656 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse
from django.template.loader import render_to_string, get_template
from django.template import engines
django_engine = engines['django']
template = django_engine.from_string("Hello {{ name }}!")
def index(request):
... | 29.647059 | 65 | 0.761905 | 68 | 504 | 5.544118 | 0.485294 | 0.106101 | 0.095491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 504 | 16 | 66 | 31.5 | 0.868664 | 0.045635 | 0 | 0 | 0 | 0 | 0.150313 | 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 |
02d5e41c191142f06b0a856be50acfbd2c647341 | 393 | py | Python | hummingbot/strategy/pure_market_making/__init__.py | csdenboer/hummingbot | 8a799675a325ebdbb74d76b2a44472cdbf74d691 | [
"Apache-2.0"
] | 5 | 2021-02-12T17:19:09.000Z | 2021-12-02T08:32:40.000Z | hummingbot/strategy/pure_market_making/__init__.py | csdenboer/hummingbot | 8a799675a325ebdbb74d76b2a44472cdbf74d691 | [
"Apache-2.0"
] | 13 | 2021-02-16T01:57:23.000Z | 2021-02-16T03:50:03.000Z | hummingbot/strategy/pure_market_making/__init__.py | csdenboer/hummingbot | 8a799675a325ebdbb74d76b2a44472cdbf74d691 | [
"Apache-2.0"
] | 6 | 2020-10-24T11:40:16.000Z | 2022-03-19T10:39:37.000Z | #!/usr/bin/env python
from .pure_market_making import PureMarketMakingStrategy
from .asset_price_delegate import AssetPriceDelegate
from .order_book_asset_price_delegate import OrderBookAssetPriceDelegate
from .api_asset_price_delegate import APIAssetPriceDelegate
__all__ = [
PureMarketMakingStrategy,
AssetPri... | 30.230769 | 72 | 0.852417 | 36 | 393 | 8.888889 | 0.555556 | 0.09375 | 0.16875 | 0.225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109415 | 393 | 12 | 73 | 32.75 | 0.914286 | 0.050891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
02d8375cdcde130defb0732c9aabd30bf237b97d | 8,383 | py | Python | api/serializers.py | safrimus/malikburhani | 7cb6b23b0f8282ddc8052f7cd62740d4e632a739 | [
"MIT"
] | null | null | null | api/serializers.py | safrimus/malikburhani | 7cb6b23b0f8282ddc8052f7cd62740d4e632a739 | [
"MIT"
] | null | null | null | api/serializers.py | safrimus/malikburhani | 7cb6b23b0f8282ddc8052f7cd62740d4e632a739 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from drf_queryfields import QueryFieldsMixin
from django.db.models import Sum, F, DecimalField
import decimal
import database.models as models
# Customer
class CustomerSerializer(QueryFieldsMixin, serializers.ModelSerializer):
class Meta:
model = models.Customer
... | 38.278539 | 114 | 0.732435 | 913 | 8,383 | 6.555312 | 0.152245 | 0.062824 | 0.094236 | 0.165748 | 0.591813 | 0.573935 | 0.517293 | 0.471178 | 0.453801 | 0.453801 | 0 | 0.00782 | 0.176309 | 8,383 | 218 | 115 | 38.454128 | 0.858943 | 0.023142 | 0 | 0.493056 | 0 | 0 | 0.059824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034722 | false | 0.013889 | 0.034722 | 0 | 0.604167 | 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 |
02dc3985cc91030cd7ad4540187152f00170fffe | 295 | py | Python | ensyuu/program/ensyuu23.py | tbor8080/pyprog | 3642b9af2a92f7369d9b6fa138e47ba22df3271c | [
"MIT"
] | null | null | null | ensyuu/program/ensyuu23.py | tbor8080/pyprog | 3642b9af2a92f7369d9b6fa138e47ba22df3271c | [
"MIT"
] | null | null | null | ensyuu/program/ensyuu23.py | tbor8080/pyprog | 3642b9af2a92f7369d9b6fa138e47ba22df3271c | [
"MIT"
] | null | null | null | import random
counter=0
num=77
while True:
counter+=1
line=int(input("(整数の入力をしてください>>)"))
if num==line:
print("WIN!")
break
elif num>line:
print("LOW")
elif num<line:
print("HIGH")
elif counter==10:
print("GAME OVER")
break | 18.4375 | 39 | 0.535593 | 37 | 295 | 4.27027 | 0.621622 | 0.132911 | 0.227848 | 0.202532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.318644 | 295 | 16 | 40 | 18.4375 | 0.756219 | 0 | 0 | 0.125 | 0 | 0 | 0.121622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.25 | 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 |
02e154fd2ebbc842bd841f532a5d3638434512e8 | 451 | py | Python | HumiditySensor.py | majorpeter/puha-manager | fd51b560a7e1dad99204ae3c9c7369d17cbcfd32 | [
"MIT"
] | null | null | null | HumiditySensor.py | majorpeter/puha-manager | fd51b560a7e1dad99204ae3c9c7369d17cbcfd32 | [
"MIT"
] | 5 | 2018-07-29T19:55:27.000Z | 2018-09-08T17:39:48.000Z | HumiditySensor.py | majorpeter/puha-manager | fd51b560a7e1dad99204ae3c9c7369d17cbcfd32 | [
"MIT"
] | null | null | null | from datetime import timedelta
from LoggedSensor import LoggedSensor
class HumiditySensor(LoggedSensor):
def __init__(self, node):
super(HumiditySensor, self).__init__(type_id=2, max_measurements=500, holdoff_time=timedelta(minutes=1))
node.Humidity.subscribe_to_changes(self.on_property_changed)... | 30.066667 | 112 | 0.756098 | 55 | 451 | 5.872727 | 0.618182 | 0.06192 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.157428 | 451 | 14 | 113 | 32.214286 | 0.836842 | 0 | 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 |
02e3bc07057baf395befb38feaf7ac936a2be50b | 14,400 | py | Python | pysnmp/SONUS-NTP-SERVICES-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/SONUS-NTP-SERVICES-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/SONUS-NTP-SERVICES-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 SONUS-NTP-SERVICES-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SONUS-NTP-SERVICES-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:02:02 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 154.83871 | 1,948 | 0.761458 | 1,574 | 14,400 | 6.965057 | 0.165184 | 0.009304 | 0.012588 | 0.014595 | 0.432911 | 0.351181 | 0.318708 | 0.292438 | 0.283134 | 0.276932 | 0 | 0.076888 | 0.077847 | 14,400 | 92 | 1,949 | 156.521739 | 0.748701 | 0.023472 | 0 | 0 | 0 | 0 | 0.203302 | 0.047605 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105882 | 0 | 0.105882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
02fb3a643f027ef6be003da40b25e7bcdd35ae25 | 1,220 | py | Python | NVIDIA_CNN.py | tommykil123/CarND-Behavioral-Cloning-P3 | c12eb6a39278ae572c1093d9e5a729cdbb47120e | [
"MIT"
] | null | null | null | NVIDIA_CNN.py | tommykil123/CarND-Behavioral-Cloning-P3 | c12eb6a39278ae572c1093d9e5a729cdbb47120e | [
"MIT"
] | null | null | null | NVIDIA_CNN.py | tommykil123/CarND-Behavioral-Cloning-P3 | c12eb6a39278ae572c1093d9e5a729cdbb47120e | [
"MIT"
] | null | null | null | #Setup Keras
from keras.models import Sequential
from keras.layers.core import Dense, Activation, Flatten, Dropout, Lambda
from keras.layers import Cropping2D
from keras.layers.convolutional import Conv2D
from keras.layers.pooling import MaxPooling2D
from keras.optimizers import Adam
def model():
learning_rate = 0... | 34.857143 | 73 | 0.677049 | 184 | 1,220 | 4.472826 | 0.309783 | 0.165249 | 0.18469 | 0.213852 | 0.414338 | 0.315917 | 0.315917 | 0.315917 | 0.315917 | 0.315917 | 0 | 0.072254 | 0.14918 | 1,220 | 35 | 74 | 34.857143 | 0.720617 | 0.021311 | 0 | 0.241379 | 0 | 0 | 0.029338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.206897 | 0 | 0.275862 | 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 |
f30bc1dd032fb60fd2fa1381d08ff17d0a5e771f | 349 | py | Python | resources/vars.py | juliancheal/incubator-openwhisk-deploy-openshift | 9e3c6d03eaaf9f0d73ca416cbc2ea1b27d5f9756 | [
"Apache-2.0"
] | 1 | 2021-11-10T18:37:32.000Z | 2021-11-10T18:37:32.000Z | resources/vars.py | juliancheal/incubator-openwhisk-deploy-openshift | 9e3c6d03eaaf9f0d73ca416cbc2ea1b27d5f9756 | [
"Apache-2.0"
] | 6 | 2019-08-15T15:21:47.000Z | 2019-08-15T15:22:54.000Z | resources/vars.py | juliancheal/incubator-openwhisk-deploy-openshift | 9e3c6d03eaaf9f0d73ca416cbc2ea1b27d5f9756 | [
"Apache-2.0"
] | 2 | 2021-11-03T12:21:30.000Z | 2021-11-10T18:37:22.000Z | import os
def main(dict):
return {
"api_host": os.environ['__OW_API_HOST'],
"api_key": os.environ['__OW_API_KEY'],
"namespace": os.environ['__OW_NAMESPACE'],
"action_name": os.environ['__OW_ACTION_NAME'],
"activation_id": os.environ['__OW_ACTIVATION_ID'],
"deadline": os.en... | 29.083333 | 57 | 0.633238 | 44 | 349 | 4.431818 | 0.386364 | 0.276923 | 0.338462 | 0.14359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200573 | 349 | 11 | 58 | 31.727273 | 0.698925 | 0 | 0 | 0 | 0 | 0 | 0.406877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0.1 | 0.3 | 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 |
f3198aa2e82d372762633f38df9c2892395779cd | 997 | py | Python | indico/util/enum.py | salevajo/indico | 6f9cbabc20d1641caea907099388ae2b04965cf8 | [
"MIT"
] | 1 | 2021-12-27T17:51:27.000Z | 2021-12-27T17:51:27.000Z | indico/util/enum.py | salevajo/indico | 6f9cbabc20d1641caea907099388ae2b04965cf8 | [
"MIT"
] | 5 | 2021-04-08T19:26:47.000Z | 2022-01-24T16:30:18.000Z | indico/util/enum.py | salevajo/indico | 6f9cbabc20d1641caea907099388ae2b04965cf8 | [
"MIT"
] | 2 | 2019-02-24T17:29:10.000Z | 2021-04-08T19:23:27.000Z | # This file is part of Indico.
# Copyright (C) 2002 - 2021 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from enum import Enum
class IndicoEnum(Enum):
"""Enhanced Enum.
You can use SomeEnum.get('some_... | 22.659091 | 75 | 0.655968 | 135 | 997 | 4.62963 | 0.57037 | 0.048 | 0.0448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010811 | 0.257773 | 997 | 43 | 76 | 23.186047 | 0.833784 | 0.332999 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.045455 | 0.045455 | 0.136364 | 0.681818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f321323bfea4316ede3a192c3a6083da25722cd7 | 570 | py | Python | tests/test_cfg.py | NVSL/fiddle | 5edffa92caa0894057a449ad5accb23af748e657 | [
"MIT"
] | 2 | 2022-01-22T06:12:52.000Z | 2022-01-24T07:29:44.000Z | tests/test_cfg.py | NVSL/cfiddle | 5edffa92caa0894057a449ad5accb23af748e657 | [
"MIT"
] | null | null | null | tests/test_cfg.py | NVSL/cfiddle | 5edffa92caa0894057a449ad5accb23af748e657 | [
"MIT"
] | null | null | null | from cfiddle import *
from util import *
from fixtures import *
from cfiddle.source import FullyInstrumentedExecutable
from cfiddle.util import working_directory
import pytest
import tempfile
import os
def test_cfg(test_cpp):
assert isinstance(test_cpp, FullyInstrumentedExecutable)
with tempfile.Tempora... | 24.782609 | 60 | 0.701754 | 76 | 570 | 5.184211 | 0.381579 | 0.071066 | 0.050761 | 0.055838 | 0.076142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203509 | 570 | 22 | 61 | 25.909091 | 0.867841 | 0 | 0 | 0 | 0 | 0 | 0.042179 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.058824 | false | 0 | 0.470588 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b84b1216d00e1d2a3f1a33e1abb905907aef0a0c | 17,746 | py | Python | hub_module/modules/text/text_generation/ernie_gen/propeller/paddle/data/feature_pb2.py | huyutao3550346/PaddleHub | eeb2c9235869161a2451711ad37aa559b5ee2762 | [
"Apache-2.0"
] | 1 | 2020-12-17T09:10:57.000Z | 2020-12-17T09:10:57.000Z | hub_module/modules/text/text_generation/ernie_gen/propeller/paddle/data/feature_pb2.py | huyutao3550346/PaddleHub | eeb2c9235869161a2451711ad37aa559b5ee2762 | [
"Apache-2.0"
] | null | null | null | hub_module/modules/text/text_generation/ernie_gen/propeller/paddle/data/feature_pb2.py | huyutao3550346/PaddleHub | eeb2c9235869161a2451711ad37aa559b5ee2762 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: propeller/paddle/data/feature.proto
import sys
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _mess... | 31.576512 | 1,172 | 0.632199 | 1,801 | 17,746 | 5.914492 | 0.102165 | 0.036801 | 0.036707 | 0.024409 | 0.645137 | 0.567781 | 0.52516 | 0.520653 | 0.51671 | 0.51671 | 0 | 0.039672 | 0.258537 | 17,746 | 561 | 1,173 | 31.632799 | 0.769874 | 0.042319 | 0 | 0.697719 | 1 | 0.001901 | 0.161543 | 0.118433 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009506 | 0 | 0.009506 | 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 |
b852cb755c9752e31c5720e5ef2a17167470dc23 | 386 | py | Python | nets/VGG16.py | vangiel/sncnn | 26f94b855519323eded0fdf23e81c655c96a2826 | [
"BSD-3-Clause"
] | null | null | null | nets/VGG16.py | vangiel/sncnn | 26f94b855519323eded0fdf23e81c655c96a2826 | [
"BSD-3-Clause"
] | null | null | null | nets/VGG16.py | vangiel/sncnn | 26f94b855519323eded0fdf23e81c655c96a2826 | [
"BSD-3-Clause"
] | null | null | null | from torchvision.models import vgg16
vgg16_model = vgg16()
# for child in vgg16_model.children():
# print(child)
object_methods = [method_name for method_name in dir(vgg16_model)
if callable(getattr(vgg16_model, method_name))]
# print(object_methods)
VGG16 = vgg16_model
# vgg16_model.classif... | 22.705882 | 65 | 0.738342 | 51 | 386 | 5.333333 | 0.411765 | 0.294118 | 0.220588 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071207 | 0.163212 | 386 | 16 | 66 | 24.125 | 0.770898 | 0.409326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
b877c7b1ce34d2428db0d5e5f91c24e1daf75bb3 | 581 | py | Python | nn/clipping.py | awesome-archive/sentence-space | b986de7855527dfed639c2bd0b457f0c7c69d4ad | [
"MIT"
] | 211 | 2017-02-09T13:33:55.000Z | 2020-06-07T23:04:20.000Z | nn/clipping.py | richardassar/sentence-space | b986de7855527dfed639c2bd0b457f0c7c69d4ad | [
"MIT"
] | 6 | 2017-02-18T00:10:21.000Z | 2018-01-28T17:54:57.000Z | nn/clipping.py | richardassar/sentence-space | b986de7855527dfed639c2bd0b457f0c7c69d4ad | [
"MIT"
] | 49 | 2017-02-10T12:12:09.000Z | 2020-03-15T15:04:57.000Z | import theano.tensor as T
class MaxNorm(object):
def __init__(self, max_norm=5):
self.max_norm = max_norm
def __call__(self, grads):
norm = T.sqrt(sum([T.sum(g ** 2) for g in grads]))
return [self.clip_norm(g, self.max_norm, norm) for g in grads]
def clip_norm(self, g, c, n):
... | 22.346154 | 70 | 0.571429 | 98 | 581 | 3.163265 | 0.306122 | 0.129032 | 0.106452 | 0.106452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.290878 | 581 | 25 | 71 | 23.24 | 0.742718 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.0625 | 0.0625 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b888cfd69ae3a82c294802fb291394e0f870c9d7 | 2,322 | py | Python | tests/test_response.py | vyshakhbabji/ringcentral-python-sdk-with-slate-sample-code | 489f35c779b7a2f617c767c489deefcfb8f446f7 | [
"MIT"
] | null | null | null | tests/test_response.py | vyshakhbabji/ringcentral-python-sdk-with-slate-sample-code | 489f35c779b7a2f617c767c489deefcfb8f446f7 | [
"MIT"
] | null | null | null | tests/test_response.py | vyshakhbabji/ringcentral-python-sdk-with-slate-sample-code | 489f35c779b7a2f617c767c489deefcfb8f446f7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
import unittest
from core.ajax.response import Response
class TestResponse(unittest.TestCase):
def setUp(self):
self.raw = """
HTTP/1.1 207 Multi-Status
Content-Type: multipart/mixed; boundary=Boundary_20_29214173_1373546450505
--Boundary_20_29214173_137354645050... | 26.689655 | 99 | 0.66236 | 228 | 2,322 | 6.671053 | 0.399123 | 0.074951 | 0.110454 | 0.157791 | 0.68902 | 0.630506 | 0.630506 | 0.541091 | 0.472058 | 0.472058 | 0 | 0.241007 | 0.161929 | 2,322 | 86 | 100 | 27 | 0.540596 | 0.015504 | 0 | 0.513514 | 0 | 0.027027 | 0.869032 | 0.358739 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.027027 | false | 0 | 0.027027 | 0 | 0.067568 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b889e7b0b8a723061ffc3331c41d0740f3faded1 | 163 | py | Python | yaojikai/20180402/h1.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | yaojikai/20180402/h1.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | yaojikai/20180402/h1.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | #1. 如果有两个字符串"hello" 和 “world”,生成一个列表,列表中元素["hw", "eo", "lr"]
str1 = "hello"
str2 = "world"
l = []
for i in range(len(str1)):
l.append(str1[i]+str2[i])
print(l)
| 16.3 | 60 | 0.595092 | 29 | 163 | 3.344828 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043165 | 0.147239 | 163 | 9 | 61 | 18.111111 | 0.654676 | 0.361963 | 0 | 0 | 0 | 0 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
b8902ba38f02d98f999ae06500bcfed37e2ec369 | 738 | py | Python | var/spack/repos/builtin/packages/nccmp/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/nccmp/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 8 | 2021-11-09T20:28:40.000Z | 2022-03-15T03:26:33.000Z | var/spack/repos/builtin/packages/nccmp/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2019-02-08T20:37:20.000Z | 2019-03-31T15:19:26.000Z | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class Nccmp(CMakePackage):
"""Compare NetCDF Files"""
homepage = "http://nccmp.source... | 41 | 97 | 0.758808 | 87 | 738 | 6.425287 | 0.689655 | 0.014311 | 0.0161 | 0.021467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 0.109756 | 738 | 17 | 98 | 43.411765 | 0.628615 | 0.284553 | 0 | 0 | 0 | 0.125 | 0.61657 | 0.369942 | 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 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b8a96f574fce48ec91aaaede90bcf28a384e0c60 | 793 | py | Python | models/ev/gpq.py | muslax/aces-api | 9d56f68277c284bd6985e13dca7f993e9db1b70f | [
"MIT"
] | null | null | null | models/ev/gpq.py | muslax/aces-api | 9d56f68277c284bd6985e13dca7f993e9db1b70f | [
"MIT"
] | 1 | 2020-08-17T04:17:58.000Z | 2020-08-17T04:17:58.000Z | models/ev/gpq.py | muslax/aces-api | 9d56f68277c284bd6985e13dca7f993e9db1b70f | [
"MIT"
] | 2 | 2020-08-16T11:59:34.000Z | 2020-08-26T05:35:07.000Z | from typing import List
from models.base import BaseModel, DBModel, WithLicense, WithProject
from models.ev.evidence import EvidenceBase
class GPQRow(BaseModel):
seq: int
wbSeq: int # nomer urut di workbook
element: str = None # simbol elemen
statement: str = None # Lorem ipsum...
... | 23.323529 | 69 | 0.687264 | 90 | 793 | 6.055556 | 0.533333 | 0.036697 | 0.055046 | 0.073395 | 0.084404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240858 | 793 | 33 | 70 | 24.030303 | 0.905316 | 0.234552 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.045455 | 0.136364 | 0 | 0.954545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
b8acf6b837f84fe2eeedcfd240fa0014d491ea85 | 827 | py | Python | reviewsapp/tvshows/models.py | xN03Lx/reviewsapp | 65b79de0b6f30694de60c50e501d1edbdc5e125f | [
"MIT"
] | null | null | null | reviewsapp/tvshows/models.py | xN03Lx/reviewsapp | 65b79de0b6f30694de60c50e501d1edbdc5e125f | [
"MIT"
] | null | null | null | reviewsapp/tvshows/models.py | xN03Lx/reviewsapp | 65b79de0b6f30694de60c50e501d1edbdc5e125f | [
"MIT"
] | null | null | null | from django.db import models
from reviewsapp.celebrities.models import Celebrity
from reviewsapp.core.behaviors import Filmable, Timestampable
class Network(models.Model):
name = models.CharField(max_length=100)
class TvShow(Filmable, Timestampable, models.Model):
premiere_date = models.DateField()
cas... | 27.566667 | 94 | 0.762999 | 100 | 827 | 6.18 | 0.49 | 0.088997 | 0.067961 | 0.067961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004219 | 0.140266 | 827 | 29 | 95 | 28.517241 | 0.864979 | 0 | 0 | 0.105263 | 0 | 0 | 0.025424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.105263 | 0.157895 | 0.052632 | 0.894737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b8b4a3028890d675041b267c517e3f3748a60c58 | 5,756 | py | Python | tests/test_ttl.py | Jude188/cachetools | eb069ad6813a183decdf51a51460b0e9716eff7b | [
"MIT"
] | null | null | null | tests/test_ttl.py | Jude188/cachetools | eb069ad6813a183decdf51a51460b0e9716eff7b | [
"MIT"
] | null | null | null | tests/test_ttl.py | Jude188/cachetools | eb069ad6813a183decdf51a51460b0e9716eff7b | [
"MIT"
] | null | null | null | import unittest
from cachetools import TTLCache
from . import CacheTestMixin
class Timer:
def __init__(self, auto=False):
self.auto = auto
self.time = 0
def __call__(self):
if self.auto:
self.time += 1
return self.time
def tick(self):
self.time += 1
... | 28.49505 | 74 | 0.56845 | 728 | 5,756 | 4.456044 | 0.072802 | 0.305179 | 0.166461 | 0.08508 | 0.759556 | 0.690506 | 0.574291 | 0.554254 | 0.520037 | 0.483354 | 0 | 0.04884 | 0.288568 | 5,756 | 201 | 75 | 28.636816 | 0.743346 | 0 | 0 | 0.634146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.567073 | 1 | 0.060976 | false | 0 | 0.018293 | 0 | 0.109756 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b8b75d0787e5f52cf034badca2ff7871815c21bb | 256 | py | Python | zandpbcodes.py | TG-chembanreju/okbai | 0d0695359e05bc86be19ae6df7402cb0baff9bf5 | [
"MIT"
] | null | null | null | zandpbcodes.py | TG-chembanreju/okbai | 0d0695359e05bc86be19ae6df7402cb0baff9bf5 | [
"MIT"
] | null | null | null | zandpbcodes.py | TG-chembanreju/okbai | 0d0695359e05bc86be19ae6df7402cb0baff9bf5 | [
"MIT"
] | 1 | 2022-03-24T09:51:07.000Z | 2022-03-24T09:51:07.000Z | from pyrogram import Client, filters
Pbz=Client(
"Me and pushpa",
api_id="13160306",
api_hash="5023c40ea655bc2834e48888b17ccee8",
bot_token="5167503671:AAFEq9j3dzy_oRWZ3HLxlfT1sH-9dEIdhH8",
plugins=dict(root="zpb_codes")
)
Pbz.run()
| 19.692308 | 63 | 0.734375 | 29 | 256 | 6.310345 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206422 | 0.148438 | 256 | 12 | 64 | 21.333333 | 0.633028 | 0 | 0 | 0 | 0 | 0 | 0.421875 | 0.304688 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b8bd2e9cbea015b2de6730199be44a7818e8bb99 | 1,126 | py | Python | wisper/encryption.py | parkerduckworth/wisper | 7f1a6ae696d99d0508cda4a9f8135b78745ae8bb | [
"MIT"
] | 1 | 2019-01-12T21:51:44.000Z | 2019-01-12T21:51:44.000Z | wisper/encryption.py | parkerduckworth/wisper | 7f1a6ae696d99d0508cda4a9f8135b78745ae8bb | [
"MIT"
] | null | null | null | wisper/encryption.py | parkerduckworth/wisper | 7f1a6ae696d99d0508cda4a9f8135b78745ae8bb | [
"MIT"
] | null | null | null | from cryptography.fernet import Fernet, InvalidToken
class Cipher(object):
"""Message cipher for Client instances
fernet_key: (Fernet) Symmetric encryption object. Can only decrypt data
that has been encrypted with a cipher created using a matching
secret key
"""
def __init__(s... | 25.022222 | 79 | 0.66341 | 138 | 1,126 | 5.26087 | 0.427536 | 0.086777 | 0.071625 | 0.046832 | 0.085399 | 0.085399 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27087 | 1,126 | 44 | 80 | 25.590909 | 0.884287 | 0.331261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b211f62d165fe209aeb8a674b70afc7f632af3ae | 1,097 | py | Python | class10/exercise2.py | gleydsonm/pynet_ex | c7095b431d9d0de0e30f65d66a212a950afdb5d6 | [
"Apache-2.0"
] | null | null | null | class10/exercise2.py | gleydsonm/pynet_ex | c7095b431d9d0de0e30f65d66a212a950afdb5d6 | [
"Apache-2.0"
] | null | null | null | class10/exercise2.py | gleydsonm/pynet_ex | c7095b431d9d0de0e30f65d66a212a950afdb5d6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
'''
Exercise 2 - class 10
'''
from jnpr.junos import Device
from jnpr.junos import exception
from jnpr.junos.op.ethport import EthPortTable
from getpass import getpass
import sys
HOST = '184.105.247.76'
USER = 'pyclass'
PWD = getpass()
def remote_conn(hst, usr, pwd):
'''
Open the remote ... | 22.387755 | 54 | 0.61258 | 145 | 1,097 | 4.489655 | 0.489655 | 0.069124 | 0.059908 | 0.058372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017263 | 0.260711 | 1,097 | 48 | 55 | 22.854167 | 0.78545 | 0.018232 | 0 | 0 | 0 | 0 | 0.149844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.129032 | 0.16129 | null | null | 0.193548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b219c3691755eeba6e07e5f8e14730a83dd1a893 | 1,158 | py | Python | tests/test_textcaret.py | jcharistech/textcaret | 61e8f9352cb5614f96880442bdb5de5877891da3 | [
"Apache-2.0"
] | 1 | 2021-09-18T03:20:48.000Z | 2021-09-18T03:20:48.000Z | tests/test_textcaret.py | jcharistech/textcaret | 61e8f9352cb5614f96880442bdb5de5877891da3 | [
"Apache-2.0"
] | 1 | 2021-11-04T12:26:47.000Z | 2021-11-04T12:26:47.000Z | tests/test_textcaret.py | jcharistech/textcaret | 61e8f9352cb5614f96880442bdb5de5877891da3 | [
"Apache-2.0"
] | 1 | 2021-09-18T03:20:49.000Z | 2021-09-18T03:20:49.000Z | from textcaret import __version__
from textcaret import TextCaret,TextSentiment
def test_version():
assert __version__ == '0.0.1'
def test_isTextCaret():
pass
def test_isTextSentiment():
pass
def test_TextCaret_sentiment_report():
s = "I love apples. John hates eating onions without using a mint... | 32.166667 | 152 | 0.725389 | 152 | 1,158 | 5.322368 | 0.276316 | 0.051916 | 0.054388 | 0.074166 | 0.410383 | 0.410383 | 0.410383 | 0.410383 | 0.410383 | 0.410383 | 0 | 0.009534 | 0.184801 | 1,158 | 35 | 153 | 33.085714 | 0.847458 | 0.123489 | 0 | 0.307692 | 0 | 0 | 0.232673 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 1 | 0.230769 | false | 0.076923 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b21e0ba850ab565da9ef40b58ddde50724d382a7 | 143 | py | Python | app/filesystem/save.py | Hacker-1202/Selfium | 7e798c23c9f24aacab6f6a485d6355f1045bc65c | [
"MIT"
] | 14 | 2021-11-05T11:27:25.000Z | 2022-02-28T02:04:32.000Z | app/filesystem/save.py | CssHammer/Selfium | 7e798c23c9f24aacab6f6a485d6355f1045bc65c | [
"MIT"
] | 2 | 2022-01-24T22:00:44.000Z | 2022-01-31T13:13:27.000Z | app/filesystem/save.py | CssHammer/Selfium | 7e798c23c9f24aacab6f6a485d6355f1045bc65c | [
"MIT"
] | 5 | 2022-01-02T13:33:17.000Z | 2022-02-26T13:09:50.000Z | import json
def save(cfg):
with open("data/config.json", "w") as writeFile:
writeFile.write(json.dumps(cfg))
writeFile.close() | 23.833333 | 52 | 0.657343 | 20 | 143 | 4.7 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188811 | 143 | 6 | 53 | 23.833333 | 0.810345 | 0 | 0 | 0 | 0 | 0 | 0.118056 | 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 |
b235f9ac7bac5ec1fe323d76b6a6a2bd94e38213 | 115,081 | py | Python | 2parser/production_rules.py | formalabstracts/CNL-CIC | c857ee0d52b4ba91dd06a51c8f9f3ec2749ca0eb | [
"MIT"
] | 14 | 2019-06-27T16:34:39.000Z | 2021-01-07T18:13:04.000Z | 2parser/production_rules.py | formalabstracts/CNL-CIC | c857ee0d52b4ba91dd06a51c8f9f3ec2749ca0eb | [
"MIT"
] | 8 | 2019-10-17T06:09:51.000Z | 2020-03-25T15:51:32.000Z | 2parser/production_rules.py | formalabstracts/CNL-CIC | c857ee0d52b4ba91dd06a51c8f9f3ec2749ca0eb | [
"MIT"
] | 17 | 2019-06-27T16:34:53.000Z | 2020-08-15T01:30:32.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Aug 22 17:00:38 2020
@author: Thomas Hales
production rules for Colada
Output of parsers will generally be an Etok.
Parser rules ending in _ produce a list of Etoks rather than one.
Inner functions f(acc) are treatments.
Inner functions f(item)->i... | 33.492724 | 167 | 0.603314 | 14,975 | 115,081 | 4.440935 | 0.072321 | 0.036404 | 0.026585 | 0.023773 | 0.362014 | 0.269311 | 0.198217 | 0.148655 | 0.122205 | 0.09965 | 0 | 0.004781 | 0.245714 | 115,081 | 3,435 | 168 | 33.502475 | 0.761347 | 0.355975 | 0 | 0.261671 | 0 | 0 | 0.128792 | 0.018807 | 0 | 0 | 0 | 0 | 0 | 1 | 0.253026 | false | 0.000576 | 0.005187 | 0.050144 | 0.521614 | 0.000576 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2390fc9272dca753ec627c48dae20b956a88c3d | 8,616 | py | Python | src/oci/osp_gateway/models/invoice_line_summary.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/osp_gateway/models/invoice_line_summary.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/osp_gateway/models/invoice_line_summary.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 27.352381 | 245 | 0.614786 | 987 | 8,616 | 5.164134 | 0.136778 | 0.05415 | 0.211889 | 0.098882 | 0.566215 | 0.436924 | 0.321366 | 0.220914 | 0.127526 | 0.104375 | 0 | 0.003044 | 0.313603 | 8,616 | 314 | 246 | 27.43949 | 0.85881 | 0.497331 | 0 | 0.091837 | 0 | 0 | 0.091528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22449 | false | 0 | 0.020408 | 0.020408 | 0.387755 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b23b2c8b1337806deadc378839c1e79142d736b2 | 243 | py | Python | bin/_context.py | sjtuzyk/chandra-acis-analysis | 8d194c8107ba2e91b35eba95c044ac238ce03229 | [
"MIT"
] | 3 | 2016-05-28T00:32:55.000Z | 2022-02-28T13:36:04.000Z | bin/_context.py | sjtuzyk/chandra-acis-analysis | 8d194c8107ba2e91b35eba95c044ac238ce03229 | [
"MIT"
] | null | null | null | bin/_context.py | sjtuzyk/chandra-acis-analysis | 8d194c8107ba2e91b35eba95c044ac238ce03229 | [
"MIT"
] | 1 | 2018-10-09T16:42:18.000Z | 2018-10-09T16:42:18.000Z | # Copyright (c) 2017 Weitian LI <liweitianux@live.com>
# MIT license
"""
Portal to 'acispy' module/package
"""
import os
import sys
sys.path.insert(
0,
os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
)
import acispy
| 14.294118 | 66 | 0.679012 | 35 | 243 | 4.6 | 0.714286 | 0.111801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02451 | 0.160494 | 243 | 16 | 67 | 15.1875 | 0.764706 | 0.407407 | 0 | 0 | 0 | 0 | 0.014815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b25634a1639ba5b56ef522aead480e70382b5347 | 980 | py | Python | generate_tree.py | cfpb/regulations-parser | 9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424 | [
"CC0-1.0"
] | 36 | 2015-01-05T21:17:36.000Z | 2020-04-28T21:02:55.000Z | generate_tree.py | ascott1/regulations-parser | 1d653ec2d78c9cbfd3b0c651788e5ab14dcc76ca | [
"CC0-1.0"
] | 49 | 2015-01-28T15:54:25.000Z | 2018-08-20T20:20:08.000Z | generate_tree.py | ascott1/regulations-parser | 1d653ec2d78c9cbfd3b0c651788e5ab14dcc76ca | [
"CC0-1.0"
] | 23 | 2015-01-28T15:34:18.000Z | 2021-02-20T10:53:34.000Z | import codecs
import sys
from regparser.tree.appendix.tree import trees_from as appendix_trees
from regparser.tree.interpretation import build as build_interp_tree
from regparser.tree.reg_text import build_reg_text_tree
from regparser.tree.struct import NodeEncoder
from regparser.tree.supplement import find_supplement... | 33.793103 | 69 | 0.741837 | 146 | 980 | 4.726027 | 0.376712 | 0.094203 | 0.123188 | 0.06087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009744 | 0.162245 | 980 | 28 | 70 | 35 | 0.830694 | 0 | 0 | 0 | 0 | 0 | 0.110204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.318182 | null | null | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
b25e647838d25725af9ed74c21e8b3759fbbac1d | 4,071 | py | Python | tests/v100/teest_rpc_edition.py | octabytes/quran | 974d351cf5e6a12a28a5ac9f29c8d2753ae6dd86 | [
"Apache-2.0"
] | null | null | null | tests/v100/teest_rpc_edition.py | octabytes/quran | 974d351cf5e6a12a28a5ac9f29c8d2753ae6dd86 | [
"Apache-2.0"
] | null | null | null | tests/v100/teest_rpc_edition.py | octabytes/quran | 974d351cf5e6a12a28a5ac9f29c8d2753ae6dd86 | [
"Apache-2.0"
] | null | null | null | import grpc
import quran.endpoints.grpc.entity_pb2 as entity_proto
import quran.endpoints.grpc.shared_pb2 as shared_entity
import quran.endpoints.grpc.edition_pb2_grpc as edition_rpc
channel = grpc.insecure_channel("localhost:50051")
stub = edition_rpc.EditionStub(channel)
def test_create_edition():
edition = en... | 40.306931 | 116 | 0.693441 | 499 | 4,071 | 5.537074 | 0.126253 | 0.115454 | 0.108216 | 0.166486 | 0.69164 | 0.627579 | 0.584148 | 0.555917 | 0.555917 | 0.538183 | 0 | 0.010593 | 0.188406 | 4,071 | 100 | 117 | 40.71 | 0.825666 | 0.011791 | 0 | 0.43662 | 0 | 0 | 0.098756 | 0.027363 | 0 | 0 | 0 | 0 | 0.422535 | 1 | 0.112676 | false | 0 | 0.056338 | 0 | 0.169014 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b26db5b125ee6f2bf7e8caf80a80cc3cec210f8d | 204 | py | Python | project/data_science/__init__.py | RiccardoNizzolo/prime_num | 3a28a85228b6abc2b6097dae8d8c7363ae80757c | [
"MIT"
] | 1 | 2019-02-26T09:32:41.000Z | 2019-02-26T09:32:41.000Z | project/data_science/__init__.py | RiccardoNizzolo/prime_num | 3a28a85228b6abc2b6097dae8d8c7363ae80757c | [
"MIT"
] | null | null | null | project/data_science/__init__.py | RiccardoNizzolo/prime_num | 3a28a85228b6abc2b6097dae8d8c7363ae80757c | [
"MIT"
] | null | null | null | from flask.config import Config
import os
ds_settings = os.getenv(
"DS_SETTINGS", "project.config.data_science_config.DsDevelopmentConfig"
)
ds_config=Config(None)
ds_config.from_object(ds_settings) | 22.666667 | 75 | 0.813725 | 29 | 204 | 5.448276 | 0.482759 | 0.189873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093137 | 204 | 9 | 76 | 22.666667 | 0.854054 | 0 | 0 | 0 | 0 | 0 | 0.317073 | 0.263415 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
b288327bdef203d8b7a97b9654c588ced687462f | 1,242 | py | Python | week2/week2_lab4.py | mdegasperis/pynet | 8832830f2526ffa79826088d8726c77117e5f276 | [
"Apache-2.0"
] | null | null | null | week2/week2_lab4.py | mdegasperis/pynet | 8832830f2526ffa79826088d8726c77117e5f276 | [
"Apache-2.0"
] | null | null | null | week2/week2_lab4.py | mdegasperis/pynet | 8832830f2526ffa79826088d8726c77117e5f276 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
from snmp_helper import snmp_get_oid,snmp_extract
import getpass
def main():
'''
Prompt user for IP address and community string.
Returns output for SysDescr and SysName MIBs.
'''
# For reference
# ip_addr = '50.76.53.27'
# community = 'galileo'
# Pr... | 19.40625 | 68 | 0.550725 | 159 | 1,242 | 4.125786 | 0.45283 | 0.054878 | 0.030488 | 0.045732 | 0.021341 | 0.021341 | 0.021341 | 0 | 0 | 0 | 0 | 0.046539 | 0.325282 | 1,242 | 63 | 69 | 19.714286 | 0.736277 | 0.216586 | 0 | 0 | 0 | 0 | 0.150766 | 0.025913 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.1 | 0.1 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b28be3f7124dd94d00d30836626ac03c06fed8c6 | 7,699 | py | Python | tencentcloud/platform/v20190314/platform_client.py | FatAnker/tencentcloud-sdk-python | d6f75a41dc7053cb51f9091f4d41b8cb7a837559 | [
"Apache-2.0"
] | null | null | null | tencentcloud/platform/v20190314/platform_client.py | FatAnker/tencentcloud-sdk-python | d6f75a41dc7053cb51f9091f4d41b8cb7a837559 | [
"Apache-2.0"
] | null | null | null | tencentcloud/platform/v20190314/platform_client.py | FatAnker/tencentcloud-sdk-python | d6f75a41dc7053cb51f9091f4d41b8cb7a837559 | [
"Apache-2.0"
] | 1 | 2019-03-25T02:21:47.000Z | 2019-03-25T02:21:47.000Z | # -*- coding: utf8 -*-
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses... | 39.891192 | 95 | 0.604754 | 661 | 7,699 | 7.016641 | 0.234493 | 0.103493 | 0.081285 | 0.087969 | 0.642303 | 0.642303 | 0.584088 | 0.470246 | 0.470246 | 0.470246 | 0 | 0.023358 | 0.293804 | 7,699 | 193 | 96 | 39.891192 | 0.829685 | 0.249643 | 0 | 0.793388 | 0 | 0 | 0.103255 | 0.005063 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049587 | false | 0.14876 | 0.033058 | 0 | 0.157025 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b297818afb022bf38f813a442be0dd39f88b721b | 115 | py | Python | src/settings.py | uadson/pandas | 3d57bcb674a6e00b113076816b4691f80dd800a3 | [
"MIT"
] | null | null | null | src/settings.py | uadson/pandas | 3d57bcb674a6e00b113076816b4691f80dd800a3 | [
"MIT"
] | 1 | 2022-02-11T10:57:45.000Z | 2022-02-11T10:57:45.000Z | src/settings.py | uadson/pandas | 3d57bcb674a6e00b113076816b4691f80dd800a3 | [
"MIT"
] | null | null | null | import os
BASE_DIR = os.getcwd()
database = os.path.join(BASE_DIR, 'database')
datalist = os.listdir(database)
| 12.777778 | 45 | 0.721739 | 17 | 115 | 4.764706 | 0.588235 | 0.17284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13913 | 115 | 8 | 46 | 14.375 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.069565 | 0 | 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 |
b29d51c873fb63bdf591fb40fa3fb08d1946cd66 | 532 | py | Python | Multi-Agent/main.py | arunbalas/ATC-RL | 7170612d6a1db2700d46128295a2cc99f39bcfd1 | [
"MIT"
] | 2 | 2020-07-09T17:58:57.000Z | 2020-07-15T20:33:56.000Z | Multi-Agent/main.py | arunbalas/ATC-RL | 7170612d6a1db2700d46128295a2cc99f39bcfd1 | [
"MIT"
] | 1 | 2020-06-05T20:17:58.000Z | 2020-06-05T20:17:58.000Z | Multi-Agent/main.py | arunbalas/ATC-RL | 7170612d6a1db2700d46128295a2cc99f39bcfd1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 17 14:30:36 2020
@author: Arun
"""
#import Simurgh-multi-agent-main
from Simurgh_multi_agent_main import mddpg
import streamlit as st
################################
## ##
## Arun B S ##
## github.com/ar... | 22.166667 | 63 | 0.456767 | 54 | 532 | 4.240741 | 0.814815 | 0.104803 | 0.148472 | 0.183406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062842 | 0.31203 | 532 | 24 | 63 | 22.166667 | 0.562842 | 0.345865 | 0 | 0 | 0 | 0 | 0.117073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 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 |
b2a07fdc5392b61320ee70b18bc2d66f463d9ea6 | 676 | py | Python | tests/test_exceptions.py | iamdual/ua-generator | 1773eb2bd89233aa1e9116ade070be10ff58ea2b | [
"Apache-2.0"
] | null | null | null | tests/test_exceptions.py | iamdual/ua-generator | 1773eb2bd89233aa1e9116ade070be10ff58ea2b | [
"Apache-2.0"
] | null | null | null | tests/test_exceptions.py | iamdual/ua-generator | 1773eb2bd89233aa1e9116ade070be10ff58ea2b | [
"Apache-2.0"
] | null | null | null | """
Random User-Agent
Copyright: 2022 Ekin Karadeniz (github.com/iamdual)
License: Apache License 2.0
"""
import unittest
import src.ua_generator as ua_generator
from src.ua_generator import exceptions
def raised_call():
ua_generator.generate(device='desktop', platform='commodore_64')
def raised_call_2():
... | 22.533333 | 73 | 0.757396 | 84 | 676 | 5.797619 | 0.547619 | 0.112936 | 0.057495 | 0.069815 | 0.246407 | 0.246407 | 0.246407 | 0 | 0 | 0 | 0 | 0.018868 | 0.137574 | 676 | 29 | 74 | 23.310345 | 0.816467 | 0.143491 | 0 | 0 | 0 | 0 | 0.064912 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0.214286 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b2a1962bb7d3ca70b6408a3b80307db57cab0cab | 753 | py | Python | servers/Radiation/plots/.py | arpitgogia/mars_city | 30cacd80487a8c2354bbc15b4fad211ed1cb4f9d | [
"BSD-2-Clause-FreeBSD"
] | 25 | 2016-07-20T04:49:14.000Z | 2021-08-25T09:05:04.000Z | servers/Radiation/plots/.py | arpitgogia/mars_city | 30cacd80487a8c2354bbc15b4fad211ed1cb4f9d | [
"BSD-2-Clause-FreeBSD"
] | 16 | 2016-12-27T08:30:27.000Z | 2018-06-18T08:51:44.000Z | servers/Radiation/plots/.py | arpitgogia/mars_city | 30cacd80487a8c2354bbc15b4fad211ed1cb4f9d | [
"BSD-2-Clause-FreeBSD"
] | 49 | 2016-07-20T13:08:27.000Z | 2020-06-02T18:26:12.000Z | from pymongo import MongoClient
import numpy as np
import matplotlib.pyplot as plt
cli = MongoClient()
db = cli.ascrapper
pre = db.prediccs
x = []
y = []
for i in pre.find():
if '2016.' in i['data'][-1][1]:
data = i['data']
print i
for j in data:
x.append(float(j[1]))
y.append(float(j[5]))
break
x ... | 18.365854 | 177 | 0.670651 | 128 | 753 | 3.929688 | 0.523438 | 0.011928 | 0.023857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232308 | 0.136786 | 753 | 40 | 178 | 18.825 | 0.541538 | 0 | 0 | 0 | 0 | 0 | 0.119284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.041667 | 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 |
b2a8c92ff9fae86112c58391fdd4da68148e3e2b | 415 | py | Python | tests/django_app/models.py | orderbird/aserializer | 3aeaa073f2dac7830458a1f45ffa9af6540bd315 | [
"MIT"
] | null | null | null | tests/django_app/models.py | orderbird/aserializer | 3aeaa073f2dac7830458a1f45ffa9af6540bd315 | [
"MIT"
] | null | null | null | tests/django_app/models.py | orderbird/aserializer | 3aeaa073f2dac7830458a1f45ffa9af6540bd315 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models
class SimpleDjangoModel(models.Model):
name = models.CharField(max_length=24, blank=False)
code = models.CharField(max_length=4)
number = models.IntegerField(blank=False)
class RelatedDjangoModel(models.Model):
name = models.CharField(max_length=... | 27.666667 | 77 | 0.744578 | 50 | 415 | 6.1 | 0.54 | 0.147541 | 0.177049 | 0.236066 | 0.334426 | 0.334426 | 0.334426 | 0.334426 | 0.334426 | 0.334426 | 0 | 0.016713 | 0.13494 | 415 | 14 | 78 | 29.642857 | 0.832869 | 0.050602 | 0 | 0.25 | 0 | 0 | 0.022959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 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 |
b2ad00baadd2f891a8dd2e76ca28ea18ad6a74a8 | 1,410 | py | Python | utest/writer/test_write_configuration.py | ldtri0209/robotframework | 6bc11a350cbaf5d0801cc5431f32cc1435bb65df | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2015-02-25T10:55:02.000Z | 2015-11-04T03:20:05.000Z | utest/writer/test_write_configuration.py | ldtri0209/robotframework | 6bc11a350cbaf5d0801cc5431f32cc1435bb65df | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-02-24T17:00:06.000Z | 2015-07-31T08:32:07.000Z | utest/writer/test_write_configuration.py | ldtri0209/robotframework | 6bc11a350cbaf5d0801cc5431f32cc1435bb65df | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-10-30T06:34:47.000Z | 2019-03-12T07:23:08.000Z | import unittest
import os
from robot.errors import DataError
from robot.writer.datafilewriter import WritingContext
from robot.parsing.model import TestCaseFile
from robot.utils.asserts import assert_equals, assert_raises
HTML_SOURCE = os.path.abspath('foo.html')
TXT_SOURCE= os.path.abspath('foo.txt')
class TestOut... | 34.390244 | 77 | 0.762411 | 181 | 1,410 | 5.618785 | 0.287293 | 0.06883 | 0.055064 | 0.061947 | 0.345133 | 0.13766 | 0.13766 | 0.076696 | 0.076696 | 0 | 0 | 0 | 0.143262 | 1,410 | 40 | 78 | 35.25 | 0.841887 | 0 | 0 | 0 | 0 | 0 | 0.021986 | 0 | 0 | 0 | 0 | 0 | 0.37037 | 1 | 0.259259 | 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 |
b2b144dd766378ae8f5d0c985d21d2a0986a89df | 107 | py | Python | assignment5/mapper.py | IITDU-BSSE06/ads-demystifying-the-logs-mehedi-iitdu | 1750141851d0295900d48a5a0e92495a2afbaa77 | [
"MIT"
] | null | null | null | assignment5/mapper.py | IITDU-BSSE06/ads-demystifying-the-logs-mehedi-iitdu | 1750141851d0295900d48a5a0e92495a2afbaa77 | [
"MIT"
] | null | null | null | assignment5/mapper.py | IITDU-BSSE06/ads-demystifying-the-logs-mehedi-iitdu | 1750141851d0295900d48a5a0e92495a2afbaa77 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
for line in sys.stdin:
data = line.strip().split(" ")
print(data[6]) | 15.285714 | 34 | 0.616822 | 17 | 107 | 3.882353 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.196262 | 107 | 7 | 35 | 15.285714 | 0.755814 | 0.149533 | 0 | 0 | 0 | 0 | 0.010989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 |
a22d425bc2030fba5abcc5119d593078ad879cdc | 3,308 | py | Python | test/helpers/helper_brightness_control_tuning_tester.py | LightStage-Aber/LightStage-Repo | 92f21b1b8a9f701cac3976a8db7034ecfefc58c7 | [
"Apache-2.0"
] | 10 | 2015-10-06T00:14:17.000Z | 2022-02-04T14:03:30.000Z | test/helpers/helper_brightness_control_tuning_tester.py | LightStage-Aber/LightStage-Repo | 92f21b1b8a9f701cac3976a8db7034ecfefc58c7 | [
"Apache-2.0"
] | 10 | 2017-05-05T11:10:19.000Z | 2019-06-04T15:30:24.000Z | test/helpers/helper_brightness_control_tuning_tester.py | LightStage-Aber/LightStage-Repo | 92f21b1b8a9f701cac3976a8db7034ecfefc58c7 | [
"Apache-2.0"
] | 2 | 2016-04-16T13:47:54.000Z | 2019-10-09T20:16:41.000Z | import sys
default_path = "../src/"
sys.path.insert(0, default_path)
import unittest
from options import getPropertiesFile
from helper_evaluation_tuning_tester import GetActual_FromIndex
class _Config:
DEBUG = True
class BrightnessControlTuningTester(GetActual_FromIndex):
def __init__(self, *args, **kwords):... | 58.035088 | 185 | 0.729444 | 363 | 3,308 | 6.363636 | 0.231405 | 0.056277 | 0.106926 | 0.124675 | 0.674026 | 0.648052 | 0.552381 | 0.498701 | 0.415584 | 0.415584 | 0 | 0.004996 | 0.152963 | 3,308 | 56 | 186 | 59.071429 | 0.819415 | 0 | 0 | 0.311111 | 0 | 0 | 0.202237 | 0.174426 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.311111 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a22db86cbe4cff9966137c4eb8aa4544db47bdbf | 12,357 | py | Python | src/Python/Stage_1/calc_power.py | ananthsridharan/vtol_sizing | 3f754e1bd3cebdb5b5c68c8a2d84c47be1df2f02 | [
"MIT"
] | 10 | 2020-03-24T10:20:52.000Z | 2021-11-22T18:49:25.000Z | src/Python/Stage_1/calc_power.py | ananthsridharan/vtol_sizing | 3f754e1bd3cebdb5b5c68c8a2d84c47be1df2f02 | [
"MIT"
] | 4 | 2020-12-08T10:26:41.000Z | 2021-10-04T18:19:59.000Z | src/Python/Stage_1/calc_power.py | ananthsridharan/vtol_sizing | 3f754e1bd3cebdb5b5c68c8a2d84c47be1df2f02 | [
"MIT"
] | 5 | 2018-11-27T21:21:19.000Z | 2021-04-20T15:44:18.000Z | #=========================================================================
# Python function to call PRASADUM for power calculations for asymm.
# compound with wing, and store results in an output dictionary
#
# Inputs:
# (a) : max airspeed, knots
# (b) : dictionary with aircraft properties [outputs ... | 39.228571 | 168 | 0.347091 | 975 | 12,357 | 4.275897 | 0.312821 | 0.033581 | 0.034541 | 0.009355 | 0.037419 | 0.01727 | 0.012473 | 0 | 0 | 0 | 0 | 0.012207 | 0.224326 | 12,357 | 314 | 169 | 39.353503 | 0.422744 | 0.553694 | 0 | 0.086614 | 0 | 0.007874 | 0.099758 | 0.011539 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047244 | null | null | 0.015748 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a23042b6c6cb9ea042130226256cdf0d56d4b0b2 | 831 | py | Python | human_services/services/viewsets.py | DarwishMenna/pathways-backend | e9825e0373c586ce8f07ee8b70aecc7de679fb41 | [
"BSD-3-Clause"
] | null | null | null | human_services/services/viewsets.py | DarwishMenna/pathways-backend | e9825e0373c586ce8f07ee8b70aecc7de679fb41 | [
"BSD-3-Clause"
] | null | null | null | human_services/services/viewsets.py | DarwishMenna/pathways-backend | e9825e0373c586ce8f07ee8b70aecc7de679fb41 | [
"BSD-3-Clause"
] | null | null | null | from rest_framework import viewsets
from django.utils.decorators import method_decorator
from human_services.services import models, serializers, documentation
from common.filters import (SearchFilter, OrganizationIdFilter, LocationIdFilter,
TaxonomyFilter, MultiFieldOrderingFilter)
# pyli... | 48.882353 | 84 | 0.780987 | 73 | 831 | 8.630137 | 0.643836 | 0.047619 | 0.152381 | 0.196825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146811 | 831 | 16 | 85 | 51.9375 | 0.888575 | 0.040915 | 0 | 0 | 0 | 0 | 0.067925 | 0.031447 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.769231 | 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 |
a238f82c8a03f5a1a2d8c58f3c3156c56cba3c2f | 11,444 | py | Python | v7_pickle_web_interface/flask/json_schema.py | carlosal1015/proofofconcept | 579873aff082e6fa497a387e0d0a5f8e5ec3ecd2 | [
"CC-BY-4.0"
] | null | null | null | v7_pickle_web_interface/flask/json_schema.py | carlosal1015/proofofconcept | 579873aff082e6fa497a387e0d0a5f8e5ec3ecd2 | [
"CC-BY-4.0"
] | null | null | null | v7_pickle_web_interface/flask/json_schema.py | carlosal1015/proofofconcept | 579873aff082e6fa497a387e0d0a5f8e5ec3ecd2 | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python3
# for a tutorial on how to create a schmea, see
# https://json-schema.org/understanding-json-schema/about.html#about
# https://json-schema.org/understanding-json-schema/reference/object.html#pattern-properties
# to use this file, load a JSON file and name the content "dat"
# import json
# f... | 65.770115 | 139 | 0.233747 | 461 | 11,444 | 5.780911 | 0.262473 | 0.101313 | 0.189118 | 0.144465 | 0.50469 | 0.452158 | 0.293433 | 0.248405 | 0.248405 | 0.203377 | 0 | 0.005515 | 0.667249 | 11,444 | 173 | 140 | 66.150289 | 0.694328 | 0.095771 | 0 | 0.40411 | 0 | 0 | 0.183468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006849 | 0 | 0.006849 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
a239296b1360448354ba848068af438fe430346e | 935 | py | Python | stdlib.py | abarnert/stdlib | d791ffa106c27d388f1556b517d24142de613752 | [
"MIT"
] | 2 | 2019-07-24T21:36:04.000Z | 2019-08-08T07:10:58.000Z | stdlib.py | abarnert/stdlib | d791ffa106c27d388f1556b517d24142de613752 | [
"MIT"
] | null | null | null | stdlib.py | abarnert/stdlib | d791ffa106c27d388f1556b517d24142de613752 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import importlib
import shelve
import sys
# TODO: pkgresource this!
_db = shelve.open('names', 'r')
def __getattr__(self, name):
if name not in _db:
raise AttributeError(name)
values = _db[name]
if len(values) > 1:
possibilities = ', '.join(f"'{mod}.{name}'" for mod... | 27.5 | 80 | 0.662032 | 117 | 935 | 4.957265 | 0.452991 | 0.060345 | 0.037931 | 0.041379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.217112 | 935 | 33 | 81 | 28.333333 | 0.784153 | 0.048128 | 0 | 0.076923 | 0 | 0 | 0.091216 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 1 | 0.076923 | false | 0.076923 | 0.230769 | 0.038462 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a250d5888064b045dcb109a3477f58239fcd8e2f | 518 | py | Python | src/posts/migrations/0003_post_tags.py | m3h-D/Myinfoblog | aef47922fdd6488550881ed9d42bf30a0d33a32a | [
"MIT"
] | null | null | null | src/posts/migrations/0003_post_tags.py | m3h-D/Myinfoblog | aef47922fdd6488550881ed9d42bf30a0d33a32a | [
"MIT"
] | 3 | 2021-03-19T02:17:53.000Z | 2022-02-10T09:19:52.000Z | src/posts/migrations/0003_post_tags.py | m3h-D/Myinfoblog | aef47922fdd6488550881ed9d42bf30a0d33a32a | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2019-11-28 06:01
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0002_post_previous'),
]
operations = [
migrations.AddField(
model_name='post',
... | 25.9 | 157 | 0.648649 | 63 | 518 | 5.238095 | 0.730159 | 0.078788 | 0.127273 | 0.163636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055 | 0.227799 | 518 | 19 | 158 | 27.263158 | 0.77 | 0.086873 | 0 | 0 | 1 | 0 | 0.076433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 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 |
a26bea6122b765030c52c1c636b17c979c165f18 | 233 | py | Python | tools/bin/pythonSrc/pychecker-0.8.18/test_input/test84.py | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 450 | 2015-09-05T09:12:51.000Z | 2018-08-30T01:45:36.000Z | tools/bin/pythonSrc/pychecker-0.8.18/test_input/test84.py | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 1,274 | 2015-09-22T20:06:16.000Z | 2018-08-31T22:14:00.000Z | tools/bin/pythonSrc/pychecker-0.8.18/test_input/test84.py | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 278 | 2015-09-21T19:15:06.000Z | 2018-08-31T00:36:51.000Z | 'this crashed pychecker from calendar.py in Python 2.2'
class X:
'd'
def test(self, item):
return [e for e in item].__getslice__()
# this crashed in 2.2, but not 2.3
def f(a):
a.a = [x for x in range(2) if x > 1]
| 21.181818 | 55 | 0.609442 | 47 | 233 | 2.93617 | 0.595745 | 0.15942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0.261803 | 233 | 10 | 56 | 23.3 | 0.755814 | 0.381974 | 0 | 0 | 0 | 0 | 0.271357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
a271ce8bb6dcd70d6817c1f54f68d2bbdb8a646d | 2,787 | py | Python | scripts/download_as_csv.py | raunakdaga/eAbsentee | 897f7af2ccf203bf3cbf8512ebe3c5bc7b78070a | [
"MIT"
] | 6 | 2020-07-13T19:34:49.000Z | 2021-04-15T21:00:01.000Z | scripts/download_as_csv.py | eAbsentee/eAbsentee | ce37318ae329e04c37192759278a7bba25073b92 | [
"MIT"
] | 253 | 2019-09-07T21:55:54.000Z | 2022-01-12T23:50:42.000Z | scripts/download_as_csv.py | raunakdaga/eAbsentee | 897f7af2ccf203bf3cbf8512ebe3c5bc7b78070a | [
"MIT"
] | 7 | 2020-07-07T15:01:14.000Z | 2021-02-18T10:10:05.000Z | """
This script is used to SSH into the PythonAnywhere host, and download all user information from our MySQL database into a .CSV. What this script was used for, I do not know.
- Raunak Daga 1/17/21
"""
import csv
import os
import sshtunnel
from os import environ, path
from datetime import datetime
from sqlalchemy im... | 36.194805 | 186 | 0.675996 | 368 | 2,787 | 4.991848 | 0.38587 | 0.071856 | 0.048993 | 0.065324 | 0.129015 | 0.062058 | 0.062058 | 0 | 0 | 0 | 0 | 0.023852 | 0.202727 | 2,787 | 76 | 187 | 36.671053 | 0.80288 | 0.086114 | 0 | 0 | 0 | 0 | 0.067482 | 0.022099 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.051724 | 0.155172 | 0.068966 | 0.517241 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a277dfe5913374e654ff30476fb5614743dd1e48 | 39,729 | py | Python | tempest/tests/lib/services/compute/test_servers_client.py | azorge/tempest | 549dfc93fb7e3d6d8566064a60a6069deae5c8eb | [
"Apache-2.0"
] | 1 | 2021-05-21T08:24:02.000Z | 2021-05-21T08:24:02.000Z | tempest/tests/lib/services/compute/test_servers_client.py | azorge/tempest | 549dfc93fb7e3d6d8566064a60a6069deae5c8eb | [
"Apache-2.0"
] | null | null | null | tempest/tests/lib/services/compute/test_servers_client.py | azorge/tempest | 549dfc93fb7e3d6d8566064a60a6069deae5c8eb | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 IBM Corp.
# Copyright 2017 AT&T Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 33.927412 | 79 | 0.641546 | 4,727 | 39,729 | 4.954305 | 0.074677 | 0.054699 | 0.061489 | 0.081985 | 0.83761 | 0.765276 | 0.684145 | 0.516162 | 0.434135 | 0.392843 | 0 | 0.029582 | 0.263133 | 39,729 | 1,170 | 80 | 33.95641 | 0.770384 | 0.015102 | 0 | 0.361725 | 0 | 0 | 0.156261 | 0.092678 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193481 | false | 0.02734 | 0.006309 | 0 | 0.219769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 |
a28059d39dc280e02e662c8ddc8d50900059b980 | 759 | py | Python | doc/example.py | Nikitha-ramasetti/python_project_template | 5f70a086bad393c5314b5c0ced6d617fa284daba | [
"Apache-2.0"
] | null | null | null | doc/example.py | Nikitha-ramasetti/python_project_template | 5f70a086bad393c5314b5c0ced6d617fa284daba | [
"Apache-2.0"
] | null | null | null | doc/example.py | Nikitha-ramasetti/python_project_template | 5f70a086bad393c5314b5c0ced6d617fa284daba | [
"Apache-2.0"
] | null | null | null | def func(param1=True, param2="default val"):
"""Description of func with docstring groups style (Googledoc).
Parameters
----------
param1 :
descr of param1 that has True for default value
param2 :
descr of param2 (Default value = 'default val')
Returns
-------
type
... | 16.866667 | 67 | 0.492754 | 69 | 759 | 5.42029 | 0.507246 | 0.139037 | 0.144385 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023605 | 0.386034 | 759 | 44 | 68 | 17.25 | 0.77897 | 0.598155 | 0 | 0.4 | 0 | 0 | 0.078014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.4 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a282b37dfee83ca4eb371ba1b38ec12a400b3fc1 | 1,675 | py | Python | tables_and_views/lldp_neighbor_status.py | ksator/python-training-for-network-engineers | 0d2265fd5441607d3b1152172244a26738fcb9c5 | [
"MIT"
] | 100 | 2016-12-19T13:51:37.000Z | 2022-03-24T18:20:12.000Z | tables_and_views/lldp_neighbor_status.py | Abd-Elrazek/python-training-for-network-engineers | 0d2265fd5441607d3b1152172244a26738fcb9c5 | [
"MIT"
] | 1 | 2017-01-24T15:22:13.000Z | 2017-01-24T15:22:13.000Z | tables_and_views/lldp_neighbor_status.py | Abd-Elrazek/python-training-for-network-engineers | 0d2265fd5441607d3b1152172244a26738fcb9c5 | [
"MIT"
] | 45 | 2016-12-02T14:01:27.000Z | 2022-03-20T14:56:24.000Z | #---------------------------------------------------------------------------------------------------------------
# DESCRIPTION:
# This script prints the lldp neighbors of the whole network
# it connects to each device (it has the list of devices from a yaml file) and get the lldp neighbors of each device and print some... | 42.948718 | 155 | 0.640597 | 216 | 1,675 | 4.810185 | 0.416667 | 0.087584 | 0.030799 | 0.034649 | 0.223292 | 0.223292 | 0.223292 | 0.223292 | 0.223292 | 0.223292 | 0 | 0.007473 | 0.121194 | 1,675 | 38 | 156 | 44.078947 | 0.69837 | 0.416716 | 0 | 0 | 0 | 0 | 0.256757 | 0.029106 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.052632 | 0.210526 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a289a95be346ec3b6b8333fbe76c626c03d10abc | 2,799 | py | Python | dataset/Client.py | hamzeiehsan/Questions-To-GeoSPARQL | 54568ac01aad16cf528b7157f4946b3cbeff1830 | [
"MIT"
] | null | null | null | dataset/Client.py | hamzeiehsan/Questions-To-GeoSPARQL | 54568ac01aad16cf528b7157f4946b3cbeff1830 | [
"MIT"
] | null | null | null | dataset/Client.py | hamzeiehsan/Questions-To-GeoSPARQL | 54568ac01aad16cf528b7157f4946b3cbeff1830 | [
"MIT"
] | null | null | null | #########################################################################################################
# @Author: --
# @Description: Client class to connect to GeoSPARQL Fuseki server.
# @Usage: Send a query to server and receive the results.
##########################################################################... | 60.847826 | 105 | 0.506252 | 315 | 2,799 | 4.466667 | 0.390476 | 0.054726 | 0.059701 | 0.072495 | 0.33049 | 0.33049 | 0.315565 | 0.274343 | 0.216063 | 0.078181 | 0 | 0.044698 | 0.24866 | 2,799 | 45 | 106 | 62.2 | 0.624346 | 0.047517 | 0 | 0 | 0 | 0.236842 | 0.646411 | 0.054649 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026316 | 0 | 0.026316 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a28d9822826eca9a9b1afd27d342895476d75c8f | 5,948 | py | Python | tests/python/gaia-ui-tests/gaiatest/apps/contacts/regions/settings_form.py | charleyf/gaia | 90c1b9c146b2a4abe545bf758f2e47d898820ad1 | [
"Apache-2.0"
] | null | null | null | tests/python/gaia-ui-tests/gaiatest/apps/contacts/regions/settings_form.py | charleyf/gaia | 90c1b9c146b2a4abe545bf758f2e47d898820ad1 | [
"Apache-2.0"
] | null | null | null | tests/python/gaia-ui-tests/gaiatest/apps/contacts/regions/settings_form.py | charleyf/gaia | 90c1b9c146b2a4abe545bf758f2e47d898820ad1 | [
"Apache-2.0"
] | null | null | null | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from marionette import expected
from marionette import Wait
from marionette.by import By
from gaiatest.apps.base import ... | 51.721739 | 99 | 0.737054 | 756 | 5,948 | 5.457672 | 0.153439 | 0.128938 | 0.113427 | 0.144935 | 0.629181 | 0.572225 | 0.530053 | 0.455405 | 0.397479 | 0.280417 | 0 | 0.005388 | 0.157532 | 5,948 | 114 | 100 | 52.175439 | 0.818 | 0.042535 | 0 | 0.180851 | 0 | 0 | 0.067838 | 0.040246 | 0 | 0 | 0 | 0.008772 | 0 | 1 | 0.12766 | false | 0 | 0.468085 | 0.021277 | 0.819149 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a29403b6d8ab598ae8b77ab0380032f76e225dcc | 1,667 | py | Python | hddm/tests/test_generate.py | twiecki/hddm | 854513b2a04dbd43dab84d14fdede64ec64f0eab | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | hddm/tests/test_generate.py | twiecki/hddm | 854513b2a04dbd43dab84d14fdede64ec64f0eab | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | hddm/tests/test_generate.py | twiecki/hddm | 854513b2a04dbd43dab84d14fdede64ec64f0eab | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-09-04T13:54:49.000Z | 2019-09-04T13:54:49.000Z | import unittest
import hddm
from scipy.stats import ks_2samp, kstest
import numpy as np
from nose import SkipTest
class TestGenerate(unittest.TestCase):
def test_compare_drift_simulated_data_to_analytic(self):
raise SkipTest("The function used KStest in the past, but since Wfpt is not scipy_distribution ... | 46.305556 | 129 | 0.626875 | 232 | 1,667 | 4.306034 | 0.387931 | 0.096096 | 0.12012 | 0.114114 | 0.434434 | 0.34034 | 0.284284 | 0.284284 | 0.284284 | 0.284284 | 0 | 0.022377 | 0.222555 | 1,667 | 35 | 130 | 47.628571 | 0.748457 | 0 | 0 | 0.333333 | 1 | 0 | 0.110378 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | null | null | 0 | 0.166667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a2b28dd1c39d035ae911e57c38b2a8b1b363ffd4 | 72 | py | Python | intr_prog_python_1.py | Reinaldos/-Reinaldos-livro_Intro-a-programacao-com-PYTHON | c5c90688f9d409b12e6dc1f2828fa392509f1b0a | [
"Unlicense"
] | null | null | null | intr_prog_python_1.py | Reinaldos/-Reinaldos-livro_Intro-a-programacao-com-PYTHON | c5c90688f9d409b12e6dc1f2828fa392509f1b0a | [
"Unlicense"
] | null | null | null | intr_prog_python_1.py | Reinaldos/-Reinaldos-livro_Intro-a-programacao-com-PYTHON | c5c90688f9d409b12e6dc1f2828fa392509f1b0a | [
"Unlicense"
] | null | null | null | salário = 1500
aumento = 5
print (salário + (salário * aumento / 100))
# | 18 | 43 | 0.666667 | 9 | 72 | 5.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 0.194444 | 72 | 4 | 44 | 18 | 0.689655 | 0 | 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 |
a2b4d32bd91e9266df8a34fc23db07d24b936d67 | 168 | py | Python | jp.atcoder/abc153/abc153_a/9730032.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc153/abc153_a/9730032.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc153/abc153_a/9730032.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import sys
h, a = map(int, sys.stdin.readline().split())
def main():
return (h + a - 1) // a
if __name__ == '__main__':
ans = main()
print(ans)
| 15.272727 | 46 | 0.52381 | 24 | 168 | 3.333333 | 0.708333 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0.291667 | 168 | 10 | 47 | 16.8 | 0.663866 | 0 | 0 | 0 | 0 | 0 | 0.050314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0.142857 | 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 |
a2b6e501bb22b4e7016637f94a5329347af3c5e6 | 367 | py | Python | scrapel/events/__init__.py | NJoyX/nameko-scrapel | 7ad43e6b9b14ffe39e50d6c2c9539a9ef5cff2af | [
"Apache-2.0"
] | 1 | 2017-12-03T12:47:19.000Z | 2017-12-03T12:47:19.000Z | scrapel/events/__init__.py | NJoyX/nameko-scrapel | 7ad43e6b9b14ffe39e50d6c2c9539a9ef5cff2af | [
"Apache-2.0"
] | null | null | null | scrapel/events/__init__.py | NJoyX/nameko-scrapel | 7ad43e6b9b14ffe39e50d6c2c9539a9ef5cff2af | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals, print_function, absolute_import
from .collector import ScrapelEventsCollector
from .on_start import on_start
from .on_stop import on_stop
from .pipeline import pipeline
from .start_requests import start_requests
__author__ = 'Fill Q'
__all__ = ['ScrapelEventsCollector', 'on_st... | 33.363636 | 89 | 0.820163 | 47 | 367 | 5.893617 | 0.404255 | 0.075812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106267 | 367 | 10 | 90 | 36.7 | 0.844512 | 0 | 0 | 0 | 0 | 0 | 0.177112 | 0.059946 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a2beb951097c3763869fe6e188d7791264073183 | 1,340 | py | Python | ci/TimeUtils.py | andrsd/civet | ac9ffffdea987437a5eb75779b9c7fe681e1ba85 | [
"Apache-2.0"
] | 29 | 2016-11-29T15:15:56.000Z | 2021-09-08T04:04:53.000Z | ci/TimeUtils.py | andrsd/civet | ac9ffffdea987437a5eb75779b9c7fe681e1ba85 | [
"Apache-2.0"
] | 108 | 2016-11-29T17:29:00.000Z | 2022-03-21T21:00:10.000Z | ci/TimeUtils.py | andrsd/civet | ac9ffffdea987437a5eb75779b9c7fe681e1ba85 | [
"Apache-2.0"
] | 11 | 2016-11-29T15:15:53.000Z | 2020-05-15T12:22:55.000Z |
# Copyright 2016 Battelle Energy Alliance, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 32.682927 | 99 | 0.736567 | 207 | 1,340 | 4.671498 | 0.512077 | 0.062048 | 0.033092 | 0.057911 | 0.157187 | 0.157187 | 0.133402 | 0.133402 | 0.133402 | 0.133402 | 0 | 0.007888 | 0.148507 | 1,340 | 40 | 100 | 33.5 | 0.839614 | 0.479104 | 0 | 0.117647 | 0 | 0 | 0.045521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0.235294 | 0.352941 | 0.941176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a2c4355cc64272845ddf433b5d6ce14f7122351d | 202 | py | Python | Mundo 1/ex025.py | torvigoes/Exercicios-Python3 | 1c1ef59087405cd2272808802fd00fe0bb49a5fd | [
"MIT"
] | 1 | 2021-01-06T22:12:30.000Z | 2021-01-06T22:12:30.000Z | Mundo 1/ex025.py | torvigoes/Exercicios-Python3 | 1c1ef59087405cd2272808802fd00fe0bb49a5fd | [
"MIT"
] | null | null | null | Mundo 1/ex025.py | torvigoes/Exercicios-Python3 | 1c1ef59087405cd2272808802fd00fe0bb49a5fd | [
"MIT"
] | null | null | null | # PROCURANDO UMA STRING DENTRO DA OUTRA
nome = str(input('Digite seu nome: ').strip().lower())
print("silva" in nome.split()) # DESSA MANEIRA EVITA-SE QUE SILVA SEJA CONFUNDIDO DENTRO DE OUTRA STRING.
| 40.4 | 105 | 0.732673 | 31 | 202 | 4.774194 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143564 | 202 | 4 | 106 | 50.5 | 0.855491 | 0.544554 | 0 | 0 | 0 | 0 | 0.247191 | 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 | 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 |
a2d303df855cd986ba6f798fe12735319ea75b5e | 765 | py | Python | test/test.py | gieeedreee/calculator | aee7858b83dbe1d4226ea9b7aa4d19d78c9bd60b | [
"MIT"
] | null | null | null | test/test.py | gieeedreee/calculator | aee7858b83dbe1d4226ea9b7aa4d19d78c9bd60b | [
"MIT"
] | null | null | null | test/test.py | gieeedreee/calculator | aee7858b83dbe1d4226ea9b7aa4d19d78c9bd60b | [
"MIT"
] | null | null | null | import pytest
from calculator.calculator import Calculator
def test_add():
calculator = Calculator()
result = calculator.add(15)
assert result == 15
def test_subtract():
calculator = Calculator(20)
result = calculator.subtract(15)
assert result == 5
def test_multiply():
... | 19.615385 | 45 | 0.643137 | 85 | 765 | 5.694118 | 0.282353 | 0.289256 | 0.086777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049558 | 0.261438 | 765 | 38 | 46 | 20.131579 | 0.80708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a2e2376f1978b8e9037234dea294c0241a68cf45 | 13,683 | py | Python | pysnmp-with-texts/HP-ICF-CONNECTION-RATE-FILTER.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/HP-ICF-CONNECTION-RATE-FILTER.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/HP-ICF-CONNECTION-RATE-FILTER.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 HP-ICF-CONNECTION-RATE-FILTER (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HP-ICF-CONNECTION-RATE-FILTER
# Produced by pysmi-0.3.4 at Wed May 1 13:33:37 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python ve... | 159.104651 | 1,854 | 0.806768 | 1,367 | 13,683 | 8.073884 | 0.181419 | 0.045665 | 0.061611 | 0.008336 | 0.405364 | 0.297363 | 0.27879 | 0.258675 | 0.252605 | 0.240283 | 0 | 0.05079 | 0.079076 | 13,683 | 85 | 1,855 | 160.976471 | 0.825093 | 0.025725 | 0 | 0.08 | 0 | 0.026667 | 0.298379 | 0.09976 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.12 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a2e68699ada900a7155cce29c43246aa1cc0d956 | 2,235 | py | Python | muninn/storage/base.py | stcorp/muninn | 0506defe99befea03a25773683758d9cf4b686bb | [
"BSD-3-Clause"
] | 3 | 2017-05-03T13:41:35.000Z | 2022-03-30T10:22:58.000Z | muninn/storage/base.py | stcorp/muninn | 0506defe99befea03a25773683758d9cf4b686bb | [
"BSD-3-Clause"
] | 34 | 2017-03-31T07:55:28.000Z | 2021-01-29T14:26:26.000Z | muninn/storage/base.py | stcorp/muninn | 0506defe99befea03a25773683758d9cf4b686bb | [
"BSD-3-Clause"
] | 3 | 2019-02-08T03:22:20.000Z | 2021-04-07T11:21:53.000Z | import os.path
import muninn.util as util
class StorageBackend(object):
def __init__(self):
self.supports_symlinks = False
self.global_prefix = ''
def get_tmp_root(self, product):
if self._tmp_root:
tmp_root = os.path.join(self._tmp_root, product.core.archive_path)
... | 32.867647 | 98 | 0.65906 | 258 | 2,235 | 5.511628 | 0.282946 | 0.168776 | 0.151899 | 0.11955 | 0.132208 | 0.132208 | 0.132208 | 0.070323 | 0 | 0 | 0 | 0 | 0.258166 | 2,235 | 67 | 99 | 33.358209 | 0.85766 | 0.144519 | 0 | 0.25 | 0 | 0 | 0.010532 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.325 | false | 0 | 0.05 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a2ed73df44165a0b6222692affca1d7a0ede3535 | 1,536 | py | Python | tests/pipeline_test.py | isi-vista/adam | 43542c4486af7533938e77e7191eae630541a891 | [
"MIT"
] | 8 | 2019-07-02T20:29:31.000Z | 2022-01-03T18:20:41.000Z | tests/pipeline_test.py | Tubbz-alt/adam | 91f392f2529a98cd50c095a18769ae4b55ce4292 | [
"MIT"
] | 1,011 | 2019-07-02T18:00:48.000Z | 2022-03-25T14:56:32.000Z | tests/pipeline_test.py | Tubbz-alt/adam | 91f392f2529a98cd50c095a18769ae4b55ce4292 | [
"MIT"
] | 4 | 2020-08-05T15:36:55.000Z | 2022-01-12T17:16:28.000Z | from vistautils.iter_utils import only
from adam.language import TokenSequenceLinguisticDescription
from adam.learner import LearningExample, MemorizingLanguageLearner
from adam.perception import (
BagOfFeaturesPerceptualRepresentationFrame,
PerceptualRepresentation,
)
def test_pipeline():
curriculum = [... | 34.909091 | 90 | 0.721354 | 113 | 1,536 | 9.672566 | 0.39823 | 0.073193 | 0.189387 | 0.222324 | 0.279048 | 0.164684 | 0 | 0 | 0 | 0 | 0 | 0.00081 | 0.195964 | 1,536 | 43 | 91 | 35.72093 | 0.884211 | 0.061849 | 0 | 0.114286 | 0 | 0 | 0.027816 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 1 | 0.028571 | false | 0 | 0.114286 | 0 | 0.142857 | 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 |
0c13d1ca472ca3d169ed264915f8c3e3062324b7 | 482 | py | Python | example/echo_srv.py | daroot/protoc-gen-twirp_python_srv | bfa4f7ea94fa398fca12e28403390f39190b1c12 | [
"WTFPL"
] | 6 | 2018-02-21T21:52:08.000Z | 2021-04-13T19:45:22.000Z | example/echo_srv.py | daroot/protoc-gen-twirp_python_srv | bfa4f7ea94fa398fca12e28403390f39190b1c12 | [
"WTFPL"
] | null | null | null | example/echo_srv.py | daroot/protoc-gen-twirp_python_srv | bfa4f7ea94fa398fca12e28403390f39190b1c12 | [
"WTFPL"
] | 3 | 2018-03-14T18:29:00.000Z | 2019-11-03T07:50:58.000Z | import bjoern
import echo_pb2 as pb
from echo_twirp_srv import EchoImpl, EchoServer
class Echoer(EchoImpl):
def Repeat(self, request):
return pb.EchoResponse(output=request.input)
def RepeatMultiple(self, request):
output = request.input
if request.count > 0:
output = outp... | 24.1 | 52 | 0.670124 | 61 | 482 | 5.114754 | 0.491803 | 0.125 | 0.128205 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026882 | 0.228216 | 482 | 19 | 53 | 25.368421 | 0.811828 | 0 | 0 | 0 | 0 | 0 | 0.03112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0.071429 | 0.571429 | 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 |
0c16a871885a155eeab2239473061008cb4f277b | 2,677 | py | Python | geo/__init__.py | hariharshankar/pygeo | f87b5f117dd35e8c6491d1c627cc795e416df6f9 | [
"MIT"
] | 1 | 2017-09-03T14:39:26.000Z | 2017-09-03T14:39:26.000Z | geo/__init__.py | hariharshankar/pygeo | f87b5f117dd35e8c6491d1c627cc795e416df6f9 | [
"MIT"
] | null | null | null | geo/__init__.py | hariharshankar/pygeo | f87b5f117dd35e8c6491d1c627cc795e416df6f9 | [
"MIT"
] | null | null | null | """
Registering all the views in flask.
Includes both html and json end points.
"""
import flask
from geo.db import connection
import geo.views.form as form
import geo.views.resources as resources
import geo.views.new_resources as new_resources
import geo.views.moderation as moderation
import geo.views.moderation_subm... | 32.253012 | 380 | 0.808741 | 440 | 2,677 | 4.8 | 0.295455 | 0.083333 | 0.132576 | 0.185133 | 0.082386 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035671 | 0.078446 | 2,677 | 83 | 381 | 32.253012 | 0.82043 | 0.075084 | 0 | 0 | 0 | 0.015625 | 0.087662 | 0.087662 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.34375 | 0 | 0.34375 | 0.3125 | 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 |
0c2d191035034152d851054929afbc3cce2f71f3 | 21,588 | py | Python | modules/skaldship/metasploit.py | kimdane/Kvasir | a0cb9cb8746e2846b8329029d58d7398d7e48709 | [
"BSD-3-Clause"
] | null | null | null | modules/skaldship/metasploit.py | kimdane/Kvasir | a0cb9cb8746e2846b8329029d58d7398d7e48709 | [
"BSD-3-Clause"
] | null | null | null | modules/skaldship/metasploit.py | kimdane/Kvasir | a0cb9cb8746e2846b8329029d58d7398d7e48709 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
__version__ = "1.0"
"""
##--------------------------------------#
## Kvasir
##
## (c) 2010-2013 Cisco Systems, Inc.
##
## Metasploit Utilities for Kvasir
##
## Author: Kurt Grutzmacher <kgrutzma@cisco.com>
##--------------------------------------#
"""
from gluon import current
import logging
... | 38.007042 | 131 | 0.501853 | 2,437 | 21,588 | 4.215018 | 0.130078 | 0.012266 | 0.025701 | 0.021028 | 0.495132 | 0.468555 | 0.441783 | 0.410339 | 0.392621 | 0.370035 | 0 | 0.007521 | 0.371781 | 21,588 | 567 | 132 | 38.074074 | 0.749889 | 0.072633 | 0 | 0.454545 | 0 | 0.002392 | 0.112007 | 0.00122 | 0 | 0 | 0 | 0.003527 | 0 | 0 | null | null | 0.052632 | 0.043062 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0c3ea3d7dfc43a9d7c5c8856f812f6938262194f | 1,954 | py | Python | src/exoplanet/theano_ops/kepler/kepler.py | t-brandt/exoplanet | 68c567de27702190b41434c56d78315358f5c441 | [
"MIT"
] | null | null | null | src/exoplanet/theano_ops/kepler/kepler.py | t-brandt/exoplanet | 68c567de27702190b41434c56d78315358f5c441 | [
"MIT"
] | null | null | null | src/exoplanet/theano_ops/kepler/kepler.py | t-brandt/exoplanet | 68c567de27702190b41434c56d78315358f5c441 | [
"MIT"
] | 1 | 2021-12-04T22:27:14.000Z | 2021-12-04T22:27:14.000Z | # -*- coding: utf-8 -*-
__all__ = ["KeplerOp"]
import theano
import theano.tensor as tt
from theano import gof
from ..build_utils import get_cache_version, get_compile_args, get_header_dirs
class KeplerOp(gof.COp):
__props__ = ()
func_file = "./kepler.cc"
func_name = "APPLY_SPECIFIC(kepler)"
def _... | 26.767123 | 79 | 0.59826 | 260 | 1,954 | 4.257692 | 0.346154 | 0.014453 | 0.04878 | 0.03794 | 0.081301 | 0.081301 | 0 | 0 | 0 | 0 | 0 | 0.017082 | 0.280962 | 1,954 | 72 | 80 | 27.138889 | 0.770819 | 0.025077 | 0 | 0 | 0 | 0 | 0.044737 | 0.025263 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191489 | false | 0 | 0.085106 | 0.106383 | 0.553191 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0c4366d2bd2f98ba81bb32a351f0bb92b78db4fa | 1,754 | py | Python | backend/melive/urls.py | dmpe/django-wohn | 3440086ef8f92423d3a7eba7b5d9c0fc815c7245 | [
"MIT"
] | 2 | 2018-09-19T01:19:07.000Z | 2020-10-02T10:46:22.000Z | backend/melive/urls.py | dmpe/django-wohn | 3440086ef8f92423d3a7eba7b5d9c0fc815c7245 | [
"MIT"
] | 179 | 2018-09-18T16:30:03.000Z | 2020-06-15T11:11:06.000Z | backend/melive/urls.py | dmpe/django-wohn | 3440086ef8f92423d3a7eba7b5d9c0fc815c7245 | [
"MIT"
] | null | null | null | """melive URL Configuration
See:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to ... | 38.977778 | 120 | 0.724629 | 245 | 1,754 | 5.097959 | 0.379592 | 0.064051 | 0.01201 | 0.019215 | 0.143315 | 0.143315 | 0.060048 | 0 | 0 | 0 | 0 | 0.008038 | 0.148803 | 1,754 | 44 | 121 | 39.863636 | 0.828533 | 0.389966 | 0 | 0 | 0 | 0 | 0.173421 | 0.034873 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0 | false | 0 | 0.434783 | 0 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
0c47a165a9abdc30b596e9526407d9abdbd6aa93 | 676 | py | Python | fb.py | Enlight-UW/Badger-Glass | 2376894569bfbaa193d59ebefba0c40d439f8120 | [
"MIT"
] | 1 | 2019-09-13T15:08:00.000Z | 2019-09-13T15:08:00.000Z | fb.py | Enlight-UW/Badger-Glass | 2376894569bfbaa193d59ebefba0c40d439f8120 | [
"MIT"
] | null | null | null | fb.py | Enlight-UW/Badger-Glass | 2376894569bfbaa193d59ebefba0c40d439f8120 | [
"MIT"
] | null | null | null | import facebook
import urllib3
import requests
token = 'EAAfYrlZBZBizYBAN7b9jORDMZACd7tVjdzvpWOC3shpdLGUg8LsAOvpTK2UNIY3S1qZC7O4uNRym232rSBDoVEY7gwpZAyq2STSWZBAFtMOfyz131UdEpg4ZChhLh8SLug6pUaLpQ3ZBkuHfTaH2ZBO3ZABBcJK5Rb9xBVOpJzHo40zTihgw8H9DJd'
graph = facebook.GraphAPI(access_token=token, version = 2.8)
#events = gr... | 42.25 | 197 | 0.77071 | 70 | 676 | 7.414286 | 0.442857 | 0.104046 | 0.050096 | 0.073218 | 0.1079 | 0.1079 | 0 | 0 | 0 | 0 | 0 | 0.056361 | 0.081361 | 676 | 15 | 198 | 45.066667 | 0.779388 | 0.045858 | 0 | 0 | 0 | 0 | 0.526398 | 0.346273 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0c50ff7cef174c4f05351a14255254cb7f69f3b9 | 527 | py | Python | alshamelah_api/apps/categories/views.py | devna-dev/durar-backend | 36ea29bafd4cb95098e4057eb71df211dc923008 | [
"MIT"
] | null | null | null | alshamelah_api/apps/categories/views.py | devna-dev/durar-backend | 36ea29bafd4cb95098e4057eb71df211dc923008 | [
"MIT"
] | null | null | null | alshamelah_api/apps/categories/views.py | devna-dev/durar-backend | 36ea29bafd4cb95098e4057eb71df211dc923008 | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from rest_framework_extensions.mixins import NestedViewSetMixin
from .models import Category, SubCategory
from .serializers import CategorySerializer, SubCategorySerializer
class CategoryViewSet(viewsets.ModelViewSet):
queryset = Category.objects.all()
serializer_class = C... | 31 | 68 | 0.825427 | 48 | 527 | 8.9375 | 0.479167 | 0.037296 | 0.079254 | 0.11655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119545 | 527 | 16 | 69 | 32.9375 | 0.924569 | 0 | 0 | 0 | 0 | 0 | 0.01518 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.