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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30554faee81d0f887b19f445e4edcd86b1325a0d | 1,234 | py | Python | setup.py | kbsezginel/angstrom | 793fd05b9bf27cab50d5c292fe63f685ea767d6d | [
"BSD-3-Clause"
] | 15 | 2018-04-26T18:34:02.000Z | 2022-01-25T09:37:35.000Z | setup.py | kbsezginel/angstrom | 793fd05b9bf27cab50d5c292fe63f685ea767d6d | [
"BSD-3-Clause"
] | 13 | 2018-07-31T17:26:10.000Z | 2020-05-15T05:07:05.000Z | setup.py | kbsezginel/angstrom | 793fd05b9bf27cab50d5c292fe63f685ea767d6d | [
"BSD-3-Clause"
] | 4 | 2020-01-15T08:31:54.000Z | 2022-03-03T16:43:15.000Z | """
--- Ångström ---
Ångström Python package setup file.
"""
from setuptools import setup, find_packages
setup(
name="angstrom",
version="0.2.2",
description="Tools for basic molecular operations with minimal-dependency",
author="Kutay B. Sezginel",
author_email="kbs37@pitt.edu",
url='https://... | 23.730769 | 79 | 0.518639 | 105 | 1,234 | 5.980952 | 0.761905 | 0.038217 | 0.047771 | 0.066879 | 0.089172 | 0.089172 | 0 | 0 | 0 | 0 | 0 | 0.011029 | 0.338736 | 1,234 | 51 | 80 | 24.196078 | 0.758578 | 0.042139 | 0 | 0.266667 | 0 | 0 | 0.390119 | 0.048552 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.022222 | 0 | 0.022222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3055d7f7965481d43a21a461f5d00b17c63f3ce6 | 4,141 | py | Python | scripts/ais_positions.py | rolker/noaadata | 052a4b7d634e0a3a92a348b543e5db536ae24f02 | [
"Apache-2.0"
] | 35 | 2015-02-15T17:23:00.000Z | 2022-01-27T01:49:43.000Z | scripts/ais_positions.py | rolker/noaadata | 052a4b7d634e0a3a92a348b543e5db536ae24f02 | [
"Apache-2.0"
] | 2 | 2017-10-04T17:24:38.000Z | 2017-10-04T18:22:00.000Z | scripts/ais_positions.py | rolker/noaadata | 052a4b7d634e0a3a92a348b543e5db536ae24f02 | [
"Apache-2.0"
] | 22 | 2015-02-08T13:29:58.000Z | 2022-03-09T03:03:16.000Z | #!/usr/bin/env python
__author__ = 'Kurt Schwehr'
__version__ = '$Revision: 9672 $'.split()[1]
__date__ = '$Date: 2008-06-20 01:49:30 -0400 (Fri, 20 Jun 2008) $'.split()[1]
__author__ = 'Kurt Schwehr'
__copyright__ = '2007'
__license__ = 'Apache 2.0'
__doc__ = '''
Return positions of vessels, but require a minim... | 31.853846 | 114 | 0.598406 | 544 | 4,141 | 4.443015 | 0.415441 | 0.012412 | 0.014481 | 0.012412 | 0.024824 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029588 | 0.273605 | 4,141 | 129 | 115 | 32.100775 | 0.773936 | 0.104081 | 0 | 0.120879 | 0 | 0.010989 | 0.235277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065934 | null | null | 0.010989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
306361a1d2acb7fdc34d7b1c53620a88643fc5d2 | 1,472 | py | Python | chad_finance/api/admin.py | StfnC/chad-finance | 76b75a84fefab9af37acd422430d7ac6f986be53 | [
"MIT"
] | null | null | null | chad_finance/api/admin.py | StfnC/chad-finance | 76b75a84fefab9af37acd422430d7ac6f986be53 | [
"MIT"
] | null | null | null | chad_finance/api/admin.py | StfnC/chad-finance | 76b75a84fefab9af37acd422430d7ac6f986be53 | [
"MIT"
] | 1 | 2021-09-25T02:46:47.000Z | 2021-09-25T02:46:47.000Z | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from .models import UserAccount, Portfolio, Trade
from .forms import UserAccountCreationForm, UserAccountChangeForm
# Register your models here.
admin.site.site_header = "Chad Finance"
admin.site.site_title = "Chad Finan... | 29.44 | 82 | 0.680707 | 163 | 1,472 | 5.96319 | 0.447853 | 0.055556 | 0.053498 | 0.069959 | 0.084362 | 0.061728 | 0.061728 | 0 | 0 | 0 | 0 | 0.001657 | 0.180027 | 1,472 | 49 | 83 | 30.040816 | 0.803645 | 0.044158 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.060606 | 0.121212 | 0 | 0.484848 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
061ac6047c8f655f558e6d99d6b544ef851810ac | 862 | py | Python | tests/test_getitem.py | idfah/regenerator | 933e690b122df86b1d4b8404a47ea227eb478f4c | [
"BSD-2-Clause"
] | 3 | 2020-12-11T21:42:52.000Z | 2021-05-27T16:50:12.000Z | tests/test_getitem.py | idfah/regenerator | 933e690b122df86b1d4b8404a47ea227eb478f4c | [
"BSD-2-Clause"
] | null | null | null | tests/test_getitem.py | idfah/regenerator | 933e690b122df86b1d4b8404a47ea227eb478f4c | [
"BSD-2-Clause"
] | 1 | 2020-12-17T15:51:49.000Z | 2020-12-17T15:51:49.000Z | import pytest
from regenerator import Stream
from .util import *
def test_getitem_idx(list_stream):
item = list_stream[3]
assert item == 3
def test_negative_idx(list_stream):
with pytest.raises(IndexError):
list_stream[-1]
def test_str_idx(list_stream):
with pytest.raises(TypeError):
... | 22.684211 | 57 | 0.729698 | 123 | 862 | 4.796748 | 0.308943 | 0.186441 | 0.108475 | 0.149153 | 0.264407 | 0.210169 | 0.155932 | 0.155932 | 0 | 0 | 0 | 0.024045 | 0.179814 | 862 | 37 | 58 | 23.297297 | 0.810467 | 0 | 0 | 0.115385 | 0 | 0 | 0.00464 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 1 | 0.269231 | false | 0 | 0.115385 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
061c8ec2c4f666049f576b465650d1c98ca5d57c | 258 | py | Python | sample.py | moshekaplan/daf_yomi | 03c20a10bcb4d2f2a57bff20a02855c9e1c6fd80 | [
"BSD-2-Clause"
] | 1 | 2020-01-05T14:09:21.000Z | 2020-01-05T14:09:21.000Z | sample.py | moshekaplan/daf_yomi | 03c20a10bcb4d2f2a57bff20a02855c9e1c6fd80 | [
"BSD-2-Clause"
] | null | null | null | sample.py | moshekaplan/daf_yomi | 03c20a10bcb4d2f2a57bff20a02855c9e1c6fd80 | [
"BSD-2-Clause"
] | 1 | 2020-01-05T15:15:58.000Z | 2020-01-05T15:15:58.000Z | #!/usr/bin/env python
import daf_yomi
import datetime
mesechta, daf = daf_yomi.todays_daf()
todays_date = datetime.datetime.today().date().strftime("%A, %B %d, %Y")
msg = "The daf for %s is mesechtas %s, daf %s" % (todays_date,mesechta,daf)
print (msg)
| 21.5 | 76 | 0.693798 | 42 | 258 | 4.142857 | 0.571429 | 0.08046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 258 | 11 | 77 | 23.454545 | 0.783784 | 0.077519 | 0 | 0 | 0 | 0 | 0.21519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
061f18acf5ae2108ba3265976e98ac1b2387e494 | 1,651 | py | Python | code/lychrel_numbers/sol_55.py | bhavinjawade/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | 2 | 2020-07-16T08:16:32.000Z | 2020-10-01T07:16:48.000Z | code/lychrel_numbers/sol_55.py | Psingh12354/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | null | null | null | code/lychrel_numbers/sol_55.py | Psingh12354/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | 1 | 2021-05-07T18:06:08.000Z | 2021-05-07T18:06:08.000Z |
# -*- coding: utf-8 -*-
'''
File name: code\lychrel_numbers\sol_55.py
Author: Vaidic Joshi
Date created: Oct 20, 2018
Python Version: 3.x
'''
# Solution to Project Euler Problem #55 :: Lychrel numbers
#
# For more information see:
# https://projecteuler.net/problem=55
# Problem Statement
'''
If we ... | 48.558824 | 769 | 0.758328 | 260 | 1,651 | 4.807692 | 0.596154 | 0.0528 | 0.0208 | 0.0352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081181 | 0.179285 | 1,651 | 33 | 770 | 50.030303 | 0.841328 | 0.180497 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
062b005f95ca9571e8fcfe0ed9ab0ae4ac622f88 | 1,414 | py | Python | redditpoller/forms.py | ericleepa/watcherforreddit | 3b74534be3dcb97cac3ce5529b0db2ef659725f7 | [
"MIT"
] | 8 | 2017-03-17T14:10:59.000Z | 2017-09-24T12:36:34.000Z | redditpoller/forms.py | ericleepa/watcherforreddit | 3b74534be3dcb97cac3ce5529b0db2ef659725f7 | [
"MIT"
] | null | null | null | redditpoller/forms.py | ericleepa/watcherforreddit | 3b74534be3dcb97cac3ce5529b0db2ef659725f7 | [
"MIT"
] | null | null | null | from django import forms
date_options = [('1', 'hourly'), ('24', 'daily'), ('168', 'weekly')]
class WatchThread(forms.Form):
reddit_thread_url = forms.URLField(label='', max_length=500, widget=forms.TextInput(attrs={'placeholder':
'e.g. https://www.reddit.com/r/learnpython/... | 52.37037 | 120 | 0.582744 | 148 | 1,414 | 5.466216 | 0.425676 | 0.081582 | 0.051916 | 0.092707 | 0.679852 | 0.679852 | 0.679852 | 0.63288 | 0.63288 | 0.63288 | 0 | 0.014184 | 0.30198 | 1,414 | 26 | 121 | 54.384615 | 0.805471 | 0 | 0 | 0.473684 | 0 | 0.052632 | 0.23338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
062c114f20faacf1f7a1e02462523097ed894546 | 1,543 | py | Python | src/simulator/workload/__init__.py | pskopnik/htc-cache-simulator | ee502db3f1c2b99ffe05ee609a18069b583798da | [
"MIT"
] | 1 | 2020-12-15T16:09:31.000Z | 2020-12-15T16:09:31.000Z | src/simulator/workload/__init__.py | pskopnik/htc-cache-system-simulator | ee502db3f1c2b99ffe05ee609a18069b583798da | [
"MIT"
] | null | null | null | src/simulator/workload/__init__.py | pskopnik/htc-cache-system-simulator | ee502db3f1c2b99ffe05ee609a18069b583798da | [
"MIT"
] | null | null | null | import abc
from typing import Any, Iterator, Iterable, List, Sequence, Tuple, Optional
BytesRate = int
BytesSize = int
TimeStamp = int
FileID = str
PartInd = int
PartSpec = Tuple[PartInd, BytesSize] # (part_ind, bytes_read)
class AccessRequest(object):
__slots__ = ['file', 'parts']
def __init__(self, file: File... | 25.716667 | 102 | 0.740117 | 193 | 1,543 | 5.647668 | 0.295337 | 0.025688 | 0.040367 | 0.029358 | 0.255046 | 0.165138 | 0.165138 | 0.097248 | 0.097248 | 0.097248 | 0 | 0 | 0.141283 | 1,543 | 59 | 103 | 26.152542 | 0.822642 | 0.04731 | 0 | 0.205128 | 0 | 0 | 0.034765 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.179487 | false | 0 | 0.051282 | 0.025641 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
062c76605a3faefab99ead485e4f0b68b3e145a7 | 982 | py | Python | microservices/create.py | estibensmanchego/retail | 0b36eb48b080bbde8ac38ac45267d77cebae7432 | [
"MIT"
] | null | null | null | microservices/create.py | estibensmanchego/retail | 0b36eb48b080bbde8ac38ac45267d77cebae7432 | [
"MIT"
] | null | null | null | microservices/create.py | estibensmanchego/retail | 0b36eb48b080bbde8ac38ac45267d77cebae7432 | [
"MIT"
] | null | null | null | import os
import uuid
import json
import time
import utils
import boto3
dynamodb = boto3.resource('dynamodb')
def create(event, context):
name_module = "client"
data = json.loads(event['body'])
required_values = {'firstName','lastName','birthday'}
for value in required_values:
if value not in d... | 25.179487 | 58 | 0.626273 | 112 | 982 | 5.410714 | 0.491071 | 0.033003 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005413 | 0.247454 | 982 | 39 | 59 | 25.179487 | 0.814614 | 0.04888 | 0 | 0.064516 | 0 | 0 | 0.155579 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.032258 | false | 0 | 0.193548 | 0 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
062feaf4b55513ed593389379f5c3e48bf7a792a | 842 | py | Python | tls_property.py | leenr/tls-property | b28b50c948d1e83a51ab088ac38b450b97c6fc62 | [
"CC0-1.0"
] | 2 | 2020-07-02T06:51:09.000Z | 2020-11-08T16:05:37.000Z | tls_property.py | leenr/tls-property | b28b50c948d1e83a51ab088ac38b450b97c6fc62 | [
"CC0-1.0"
] | null | null | null | tls_property.py | leenr/tls-property | b28b50c948d1e83a51ab088ac38b450b97c6fc62 | [
"CC0-1.0"
] | null | null | null | from functools import wraps
from threading import local
from weakref import WeakKeyDictionary
_SENTINEL = object()
class tls_property(object):
def __init__(self, func):
wraps(func, updated=())(self)
self.func = func
self.tls = local()
def __get__(self, obj, cls):
if obj is N... | 22.756757 | 58 | 0.597387 | 96 | 842 | 5 | 0.34375 | 0.102083 | 0.2 | 0.095833 | 0.1625 | 0.1625 | 0.1625 | 0 | 0 | 0 | 0 | 0 | 0.30285 | 842 | 36 | 59 | 23.388889 | 0.817717 | 0 | 0 | 0 | 0 | 0 | 0.035629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.12 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
063390031fd8679adfb3f2aa7db4c06aa898ce76 | 5,853 | py | Python | pysnmp/TIARA-IP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/TIARA-IP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/TIARA-IP-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 TIARA-IP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TIARA-IP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:09:01 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019,... | 110.433962 | 801 | 0.776012 | 628 | 5,853 | 7.229299 | 0.210191 | 0.008811 | 0.087885 | 0.015859 | 0.343172 | 0.244053 | 0.177533 | 0.177533 | 0.177533 | 0.171806 | 0 | 0.069292 | 0.080301 | 5,853 | 52 | 802 | 112.557692 | 0.774104 | 0.054331 | 0 | 0 | 0 | 0 | 0.149113 | 0.011763 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.155556 | 0 | 0.155556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06368a21938897d4a1db7d94bdfd7f986f8642ed | 282 | py | Python | main.py | tkat0/rust-protobuf-pyo3-example | 706f1141189c82b0276ac3d60209c9c3be9b9196 | [
"MIT"
] | 1 | 2020-06-15T07:30:10.000Z | 2020-06-15T07:30:10.000Z | main.py | tkat0/rust-protobuf-pyo3-example | 706f1141189c82b0276ac3d60209c9c3be9b9196 | [
"MIT"
] | null | null | null | main.py | tkat0/rust-protobuf-pyo3-example | 706f1141189c82b0276ac3d60209c9c3be9b9196 | [
"MIT"
] | null | null | null | import proto_example
from proto_example.generated.function_a.v1.function_pb2 import Request
def main():
req = Request()
req.descriptions = "hello from python"
res = proto_example.function_a(req)
print("rust response:", res)
if __name__ == '__main__':
main() | 20.142857 | 70 | 0.70922 | 37 | 282 | 5.027027 | 0.594595 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008658 | 0.180851 | 282 | 14 | 71 | 20.142857 | 0.796537 | 0 | 0 | 0 | 1 | 0 | 0.137809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
064085f0e3ce296044252a701aa7463d012ce9bd | 9,790 | py | Python | jrti_game/key_names.py | encukou/jrti_game | 6ddd2a5ee566e6fa5c29763619d6211d0b667b7b | [
"BSD-3-Clause",
"MIT"
] | 3 | 2017-11-18T10:51:35.000Z | 2018-04-26T08:13:31.000Z | jrti_game/key_names.py | encukou/jrti_game | 6ddd2a5ee566e6fa5c29763619d6211d0b667b7b | [
"BSD-3-Clause",
"MIT"
] | 2 | 2017-11-18T12:06:09.000Z | 2022-02-21T13:16:18.000Z | jrti_game/key_names.py | encukou/jrti_game | 6ddd2a5ee566e6fa5c29763619d6211d0b667b7b | [
"BSD-3-Clause",
"MIT"
] | null | null | null | # This file regenerates itself
from pyglet.window import key
if __name__ == '__main__':
with open(__file__) as f:
for line in f:
print(line, end='')
if line.strip() == '####':
break
NAMES = {
# Based in part on:
# https://wincent.com/wiki/Unico... | 30.786164 | 75 | 0.411032 | 1,131 | 9,790 | 3.551724 | 0.236958 | 0.055265 | 0.022405 | 0.017924 | 0.060244 | 0.04232 | 0.032362 | 0.017924 | 0.017924 | 0.017924 | 0 | 0.028188 | 0.315117 | 9,790 | 317 | 76 | 30.883281 | 0.558091 | 0.035342 | 0 | 0.026756 | 1 | 0 | 0.18657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003344 | 0 | 0.003344 | 0.013378 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0640c82bdb6c5dff954842a4ffa4e61402e2ac4b | 634 | py | Python | getCounter/getCounter.py | skome/skome | cf4b9255b8a1b0d8f2ec1ce4e3f7a4551d19f88e | [
"CC0-1.0"
] | null | null | null | getCounter/getCounter.py | skome/skome | cf4b9255b8a1b0d8f2ec1ce4e3f7a4551d19f88e | [
"CC0-1.0"
] | null | null | null | getCounter/getCounter.py | skome/skome | cf4b9255b8a1b0d8f2ec1ce4e3f7a4551d19f88e | [
"CC0-1.0"
] | null | null | null | import pycounter.sushi
import datetime
weekdays = {1:"Mon",2:"Tue",3:"Wed",4:"Thu",5:"Fri",6:"Sat",7:"Sun"}
START = datetime.date(2015,1,1)
END = datetime.date(2015,4,15)
RID = "b29daa24-cc02-4760-8694-3084f90445a7"
CR = "X054213"
REP = "JR1"
REL = 4
COUNTERREP = pycounter.sushi.get_report(wsdl_url="http://sushi4.schol... | 31.7 | 136 | 0.72082 | 103 | 634 | 4.378641 | 0.621359 | 0.062084 | 0.070953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101576 | 0.099369 | 634 | 19 | 137 | 33.368421 | 0.688266 | 0 | 0 | 0 | 0 | 0 | 0.178233 | 0.056782 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06441173002b394cd4ab27919a596d9e5506e824 | 1,429 | py | Python | Software for Other Building Blocks and Integration/TxBlockGen.py | fkerem/Cryptocurrency-Blockchain | 965268a09a6f8b3e700e8bbc741e49a4d54805c6 | [
"MIT"
] | null | null | null | Software for Other Building Blocks and Integration/TxBlockGen.py | fkerem/Cryptocurrency-Blockchain | 965268a09a6f8b3e700e8bbc741e49a4d54805c6 | [
"MIT"
] | null | null | null | Software for Other Building Blocks and Integration/TxBlockGen.py | fkerem/Cryptocurrency-Blockchain | 965268a09a6f8b3e700e8bbc741e49a4d54805c6 | [
"MIT"
] | null | null | null | """
TxBlockGen.py
"""
import DSA
from random import *
def satoshi(): # To generate a satoshi amount arbitrarily.
return str(randint(1, 999))
def BeforeSign(p, q, g, payer_b, payee_b): #The Lines of the Transaction to be Signed
transaction = \
"*** Bitcoin transaction ***" + "\n" + \
"S... | 34.853659 | 98 | 0.581526 | 189 | 1,429 | 4.333333 | 0.343915 | 0.019536 | 0.029304 | 0.029304 | 0.13431 | 0.13431 | 0.13431 | 0.13431 | 0.07326 | 0 | 0 | 0.00939 | 0.254724 | 1,429 | 40 | 99 | 35.725 | 0.759624 | 0.208537 | 0 | 0.068966 | 1 | 0 | 0.155493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.068966 | 0.034483 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0651b0ec52b6d8179d672209fe3e7dab6770185c | 1,452 | py | Python | Geog5222/PythonPrograms/GDAL-100316.py | thejayhaykid/Python | 641c33b94762f0cace203dcf4cc121571625ab02 | [
"MIT"
] | null | null | null | Geog5222/PythonPrograms/GDAL-100316.py | thejayhaykid/Python | 641c33b94762f0cace203dcf4cc121571625ab02 | [
"MIT"
] | null | null | null | Geog5222/PythonPrograms/GDAL-100316.py | thejayhaykid/Python | 641c33b94762f0cace203dcf4cc121571625ab02 | [
"MIT"
] | null | null | null | #Jake Hayes
#GDAL/OGR
#Question 1
"""
Yes, based on the results from previous examples of GetEnvelope(), GetArea(), and Centroid()
the inputs for question 1 are reasonable.
"""
#Question 2
from osgeo import ogr
driver = ogr.GetDriverByName('ESRI Shapefile')
vector = None
while vector is None: #Making sure th... | 30.25 | 103 | 0.65427 | 196 | 1,452 | 4.821429 | 0.520408 | 0.034921 | 0.027513 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006335 | 0.238981 | 1,452 | 47 | 104 | 30.893617 | 0.848869 | 0.198347 | 0 | 0.125 | 0 | 0 | 0.184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03125 | null | null | 0.3125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0652ba6c457374c12284f0cd5345ffd50350be71 | 1,316 | py | Python | gridgen/models/functional.py | gpiantoni/gridgen | 975d77a7ee860b1882564724f9f34d2d2801808f | [
"MIT"
] | null | null | null | gridgen/models/functional.py | gpiantoni/gridgen | 975d77a7ee860b1882564724f9f34d2d2801808f | [
"MIT"
] | null | null | null | gridgen/models/functional.py | gpiantoni/gridgen | 975d77a7ee860b1882564724f9f34d2d2801808f | [
"MIT"
] | null | null | null | from logging import getLogger
from numpy import (power,
zeros,
NaN,
nansum,
)
from numpy.linalg import norm
from scipy.stats import norm as normdistr
from ..utils import DTYPE, WIRE
lg = getLogger(__name__)
def compute_functional(grid, fun... | 23.927273 | 74 | 0.56459 | 178 | 1,316 | 4.067416 | 0.393258 | 0.049724 | 0.012431 | 0.016575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009836 | 0.304711 | 1,316 | 54 | 75 | 24.37037 | 0.781421 | 0.089666 | 0 | 0 | 0 | 0 | 0.055794 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.0625 | false | 0 | 0.15625 | 0 | 0.28125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06564f4c20251d83505ab106ff0678bcfe07d52c | 718 | py | Python | src/main/python/klumpenplot/core/project.py | wklumpen/klumpenplot | 1605470208a8e12f7faf71424b2a5a2286c86a30 | [
"MIT"
] | null | null | null | src/main/python/klumpenplot/core/project.py | wklumpen/klumpenplot | 1605470208a8e12f7faf71424b2a5a2286c86a30 | [
"MIT"
] | null | null | null | src/main/python/klumpenplot/core/project.py | wklumpen/klumpenplot | 1605470208a8e12f7faf71424b2a5a2286c86a30 | [
"MIT"
] | null | null | null | from klumpenplot.core.datasource import DataSource
class Project:
"""Master project class
"""
def __init__(self):
self.name = None
self.filepath = None
self.data = None
self.dataSources = dict()
self.saved = False
self.currentDataSource = None
self.da... | 29.916667 | 59 | 0.657382 | 71 | 718 | 6.591549 | 0.380282 | 0.068376 | 0.134615 | 0.098291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003724 | 0.252089 | 718 | 24 | 60 | 29.916667 | 0.867784 | 0.027855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
065b45fd6e544504df9187e76d302e9dfa9ad052 | 313 | py | Python | testapp/wagtail_wordpress_importer/migrations/0005_delete_report.py | nickmoreton/wagtail_wordpress_importer | fbe6b60ae624edac3f42a62ce30af4a0c548b4ed | [
"MIT"
] | null | null | null | testapp/wagtail_wordpress_importer/migrations/0005_delete_report.py | nickmoreton/wagtail_wordpress_importer | fbe6b60ae624edac3f42a62ce30af4a0c548b4ed | [
"MIT"
] | null | null | null | testapp/wagtail_wordpress_importer/migrations/0005_delete_report.py | nickmoreton/wagtail_wordpress_importer | fbe6b60ae624edac3f42a62ce30af4a0c548b4ed | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-01-07 11:43
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('wagtail_wordpress_importer', '0004_report_created_at'),
]
operations = [
migrations.DeleteModel(
name='Report',
),
]
| 18.411765 | 65 | 0.626198 | 34 | 313 | 5.617647 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082969 | 0.268371 | 313 | 16 | 66 | 19.5625 | 0.751092 | 0.14377 | 0 | 0 | 1 | 0 | 0.203008 | 0.180451 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06628f1ea8c1bc2f7c16198a2b8623833c068e41 | 3,049 | py | Python | pipeline_tools/tests/shared/submission/test_get_upload_urn.py | HumanCellAtlas/pipeline-tools | d9e22df56089a6b163901656e5ce9fa7d6420b48 | [
"BSD-3-Clause"
] | 5 | 2017-11-17T18:40:37.000Z | 2021-01-20T04:06:47.000Z | pipeline_tools/tests/shared/submission/test_get_upload_urn.py | HumanCellAtlas/pipeline-tools | d9e22df56089a6b163901656e5ce9fa7d6420b48 | [
"BSD-3-Clause"
] | 113 | 2017-12-08T18:18:06.000Z | 2021-10-12T15:10:07.000Z | pipeline_tools/tests/shared/submission/test_get_upload_urn.py | HumanCellAtlas/pipeline-tools | d9e22df56089a6b163901656e5ce9fa7d6420b48 | [
"BSD-3-Clause"
] | 3 | 2020-07-29T17:31:00.000Z | 2021-01-18T08:18:48.000Z | import pytest
import requests
from tenacity import RetryError
import pipeline_tools.shared.submission.get_upload_urn as getter
from pipeline_tools.shared.http_requests import HttpRequests
from pipeline_tools.tests.http_requests_manager import HttpRequestsManager
@pytest.fixture(scope='module')
def test_data():
c... | 38.1125 | 105 | 0.708429 | 369 | 3,049 | 5.509485 | 0.214092 | 0.062961 | 0.064929 | 0.074766 | 0.615839 | 0.586326 | 0.586326 | 0.586326 | 0.586326 | 0.586326 | 0 | 0.006598 | 0.204657 | 3,049 | 79 | 106 | 38.594937 | 0.831753 | 0 | 0 | 0.393443 | 0 | 0 | 0.073795 | 0 | 0 | 0 | 0 | 0 | 0.147541 | 1 | 0.229508 | false | 0 | 0.098361 | 0 | 0.459016 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
066ffd2a5da49b602dbb632a072cf7861cf0d9ef | 1,440 | py | Python | codes/05_scrolling.py | krfprogit/conduit | e6391e542bb87fdeb002306edc964e60f9692457 | [
"MIT"
] | null | null | null | codes/05_scrolling.py | krfprogit/conduit | e6391e542bb87fdeb002306edc964e60f9692457 | [
"MIT"
] | null | null | null | codes/05_scrolling.py | krfprogit/conduit | e6391e542bb87fdeb002306edc964e60f9692457 | [
"MIT"
] | null | null | null | from selenium import webdriver
import time
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
browser = webdriver.Chrome("C:\\Windows\\chromedriver.exe")
browser.get("http://localhost:1667")
browser.ma... | 29.387755 | 112 | 0.735417 | 227 | 1,440 | 4.502203 | 0.356828 | 0.052838 | 0.058708 | 0.117417 | 0.279843 | 0.23092 | 0.23092 | 0.23092 | 0.199609 | 0.199609 | 0 | 0.018045 | 0.076389 | 1,440 | 48 | 113 | 30 | 0.750376 | 0.004861 | 0 | 0.171429 | 0 | 0.028571 | 0.295597 | 0.210342 | 0 | 0 | 0 | 0 | 0.057143 | 1 | 0 | false | 0.057143 | 0.142857 | 0 | 0.142857 | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
06729c397c9b99ea7d9bf1a42e9b22a34115669b | 420 | py | Python | catalog/migrations/0004_alter_bookinstance_options.py | GingerLee11/django_local_library | efb56a0eb60ebe25f038c99bc488ba9217e987e9 | [
"MIT"
] | null | null | null | catalog/migrations/0004_alter_bookinstance_options.py | GingerLee11/django_local_library | efb56a0eb60ebe25f038c99bc488ba9217e987e9 | [
"MIT"
] | null | null | null | catalog/migrations/0004_alter_bookinstance_options.py | GingerLee11/django_local_library | efb56a0eb60ebe25f038c99bc488ba9217e987e9 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2021-10-25 19:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('catalog', '0003_auto_20211025_1130'),
]
operations = [
migrations.AlterModelOptions(
name='bookinstance',
options={'ordering... | 23.333333 | 112 | 0.614286 | 44 | 420 | 5.727273 | 0.886364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098101 | 0.247619 | 420 | 17 | 113 | 24.705882 | 0.699367 | 0.107143 | 0 | 0 | 1 | 0 | 0.284182 | 0.061662 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0677d39637918291c1936a5cfe6507a40a263b6e | 1,359 | py | Python | python/problems/bit-mainpulation.py | fossabot/a-grim-loth | a6c8d549289a39ec981c1e0d0c754bb2708dfff9 | [
"MIT"
] | 4 | 2021-06-26T17:18:47.000Z | 2022-02-02T15:02:27.000Z | python/problems/bit-mainpulation.py | fossabot/a-grim-loth | a6c8d549289a39ec981c1e0d0c754bb2708dfff9 | [
"MIT"
] | 8 | 2021-06-29T07:00:32.000Z | 2021-12-01T11:26:22.000Z | python/problems/bit-mainpulation.py | fossabot/a-grim-loth | a6c8d549289a39ec981c1e0d0c754bb2708dfff9 | [
"MIT"
] | 3 | 2021-07-14T14:42:08.000Z | 2021-12-07T19:36:53.000Z | def isPowerOfTwo(x):
return (x != 0) and ((x & (x - 1)))
print(isPowerOfTwo(2))
a = 8
print(bin(a), a)
print(bin(a - 1), a - 1)
print(a & (a - 1))
print(2 & 1, 3 & 1)
# for i in range(6):
# print(i, i& i-1)
# bool isPowerOfTwo(int x)
# {
# // x will check if x == 0 and !(x & (x - 1)) will che... | 20.283582 | 96 | 0.411332 | 206 | 1,359 | 2.694175 | 0.31068 | 0.03964 | 0.032432 | 0.021622 | 0.028829 | 0.028829 | 0 | 0 | 0 | 0 | 0 | 0.045673 | 0.387785 | 1,359 | 66 | 97 | 20.590909 | 0.621394 | 0.63429 | 0 | 0 | 0 | 0 | 0.041394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0.0625 | 0.1875 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
06782f6f536d9e62435e8a9e79f0be6483729a7e | 1,810 | py | Python | Classes_Objects_MRO/ClassesAndObjects.py | sandipandutta21/advanced-python-series | c8298d25a9b003ce191c6aca7382239843f39502 | [
"MIT"
] | null | null | null | Classes_Objects_MRO/ClassesAndObjects.py | sandipandutta21/advanced-python-series | c8298d25a9b003ce191c6aca7382239843f39502 | [
"MIT"
] | null | null | null | Classes_Objects_MRO/ClassesAndObjects.py | sandipandutta21/advanced-python-series | c8298d25a9b003ce191c6aca7382239843f39502 | [
"MIT"
] | null | null | null | class A:
def __init__(self, var=0):
self.var = var
def __str__(self):
return "This is class A"
a = A()
print(a)
"""
All classes are inherited from object class.
> class MyClass:
> pass
>
> print(MyClass.__class__.__bases__)
(<class 'object'>,)
"... | 27.424242 | 102 | 0.550276 | 205 | 1,810 | 4.492683 | 0.404878 | 0.076004 | 0.05646 | 0.052117 | 0.089034 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007365 | 0.324862 | 1,810 | 66 | 103 | 27.424242 | 0.746318 | 0.196685 | 0 | 0.074074 | 0 | 0 | 0.134912 | 0.027806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.037037 | 0.666667 | 0.148148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
067975615809737a3c496d0ff75d714b84489b87 | 4,539 | py | Python | addon/resources/community/filmonPlayer.py | mar9a7louwa/marga | f20d815e14190d6ec95b24d52cf97ef4173079ef | [
"MIT"
] | null | null | null | addon/resources/community/filmonPlayer.py | mar9a7louwa/marga | f20d815e14190d6ec95b24d52cf97ef4173079ef | [
"MIT"
] | null | null | null | addon/resources/community/filmonPlayer.py | mar9a7louwa/marga | f20d815e14190d6ec95b24d52cf97ef4173079ef | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import xbmc, xbmcgui, xbmcplugin
import urllib2,urllib,cgi, re
import HTMLParser
import xbmcaddon
import json
import traceback
import os
import cookielib
from BeautifulSoup import BeautifulStoneSoup, BeautifulSoup, BeautifulSOAP
import datetime
import time
import sys
import CustomPlayer
try:
... | 30.463087 | 166 | 0.733642 | 545 | 4,539 | 5.985321 | 0.398165 | 0.021459 | 0.012262 | 0.017474 | 0.070509 | 0.048437 | 0 | 0 | 0 | 0 | 0 | 0.014899 | 0.142322 | 4,539 | 148 | 167 | 30.668919 | 0.823016 | 0.090328 | 0 | 0.216667 | 0 | 0.008333 | 0.145357 | 0.01823 | 0.008333 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.141667 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
067b5f9f3e10a0b1fa236b71e4adb55d5a3cb6f6 | 1,629 | py | Python | plot_hist.py | jgurtowski/ectools | 031eb0300c82392915d8393a5fedb4d3452b15bf | [
"BSD-3-Clause"
] | 33 | 2015-01-21T18:34:49.000Z | 2020-05-21T13:06:39.000Z | plot_hist.py | jgurtowski/ectools | 031eb0300c82392915d8393a5fedb4d3452b15bf | [
"BSD-3-Clause"
] | 7 | 2015-05-08T09:35:26.000Z | 2019-09-27T05:35:58.000Z | plot_hist.py | jgurtowski/ectools | 031eb0300c82392915d8393a5fedb4d3452b15bf | [
"BSD-3-Clause"
] | 11 | 2015-09-08T09:40:02.000Z | 2021-08-17T08:02:57.000Z | #!/usr/bin/env python
import sys
from itertools import imap
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
from nucio import lineItemIterator, fileIterator
from args import parseArgs, getHelpStr, CLArgument
description = ("Usage: plot_hi... | 29.089286 | 74 | 0.671578 | 250 | 1,629 | 4.3 | 0.392 | 0.051163 | 0.026047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006508 | 0.151013 | 1,629 | 55 | 75 | 29.618182 | 0.770788 | 0.012277 | 0 | 0 | 0 | 0 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.179487 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
067ebf83af02465ba35b5563afe348bf0f9c7d23 | 7,643 | py | Python | txtemplates/utils/html.py | mdrohmann/txtemplates | b346b15d3eb465ec828a31fea0a00df3ae582942 | [
"BSD-3-Clause"
] | null | null | null | txtemplates/utils/html.py | mdrohmann/txtemplates | b346b15d3eb465ec828a31fea0a00df3ae582942 | [
"BSD-3-Clause"
] | null | null | null | txtemplates/utils/html.py | mdrohmann/txtemplates | b346b15d3eb465ec828a31fea0a00df3ae582942 | [
"BSD-3-Clause"
] | null | null | null | import json
import itertools
import mimetools
import mimetypes
from StringIO import StringIO
from twisted.web._responses import BAD_REQUEST, NOT_IMPLEMENTED
from twisted.web import resource, client
from twisted.web.http_headers import Headers
from twisted.internet import reactor
class JsonErrorPage(resource.ErrorPag... | 32.113445 | 78 | 0.594923 | 858 | 7,643 | 5.144522 | 0.280886 | 0.029905 | 0.014952 | 0.016312 | 0.094246 | 0.063435 | 0.033077 | 0.018124 | 0 | 0 | 0 | 0.003332 | 0.293209 | 7,643 | 237 | 79 | 32.248945 | 0.813773 | 0.147979 | 0 | 0.114865 | 0 | 0 | 0.096605 | 0.003936 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067568 | null | null | 0.006757 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06804b8c6b86828efc9e085927cc56c9a7e046a0 | 901 | py | Python | TemplatesVariable/about/views.py | MarioTiara/Dj.Pr | 51074f81539a0f36d12bcab43cd4cb42228b23ae | [
"MIT"
] | null | null | null | TemplatesVariable/about/views.py | MarioTiara/Dj.Pr | 51074f81539a0f36d12bcab43cd4cb42228b23ae | [
"MIT"
] | null | null | null | TemplatesVariable/about/views.py | MarioTiara/Dj.Pr | 51074f81539a0f36d12bcab43cd4cb42228b23ae | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
def index(request):
context={
'title':'About',
'contrib':'CONTRIBUTORS'
}
return render(request,'about/index.html',context)
def Mario(request):
context={
'title':'About Mario',
'contrib':'Mario Tiara Pratama ... | 23.710526 | 53 | 0.614872 | 98 | 901 | 5.653061 | 0.357143 | 0.126354 | 0.17148 | 0.216607 | 0.494585 | 0.382671 | 0.382671 | 0.310469 | 0 | 0 | 0 | 0 | 0.234184 | 901 | 37 | 54 | 24.351351 | 0.802899 | 0.025527 | 0 | 0.387097 | 0 | 0 | 0.341324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.032258 | 0 | 0.354839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06809683f53e794eeb21c66c5de43e06829db2b7 | 4,217 | py | Python | lib/JumpScale/portal/codegentools/_archive/CodeGeneratorOSISTasklets.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | 1 | 2015-10-26T10:38:13.000Z | 2015-10-26T10:38:13.000Z | lib/JumpScale/portal/codegentools/_archive/CodeGeneratorOSISTasklets.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | null | null | null | lib/JumpScale/portal/codegentools/_archive/CodeGeneratorOSISTasklets.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | null | null | null | from JumpScale import j
from CodeGeneratorBase import CodeGeneratorBase
NOTGENSTR = "##DONOTGENERATE##"
tasklets = {}
tasklets["delete"] = """
def main(j, params, args,actor, tags, tasklet):
#delete
actor.models.{modelname}.delete(args["guid"])
return params,True
def match(j, params, args,actor, tags, t... | 31.94697 | 132 | 0.616078 | 512 | 4,217 | 5.039063 | 0.21875 | 0.037985 | 0.048837 | 0.068217 | 0.370543 | 0.327519 | 0.301163 | 0.301163 | 0.261628 | 0.232171 | 0 | 0.008112 | 0.239981 | 4,217 | 131 | 133 | 32.19084 | 0.79688 | 0.068532 | 0 | 0.326531 | 1 | 0.010204 | 0.503953 | 0.109921 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.030612 | 0 | 0.193878 | 0.010204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06846feb77eb8800b3357a82151f7b50ac763648 | 2,036 | py | Python | socialnews/news/search.py | agiliq/django-socialnews | aa4a1a4a0e3279e6c7999071648ba37c71df9d15 | [
"BSD-3-Clause"
] | 30 | 2015-01-18T16:34:03.000Z | 2021-05-23T20:05:54.000Z | socialnews/news/search.py | agiliq/django-socialnews | aa4a1a4a0e3279e6c7999071648ba37c71df9d15 | [
"BSD-3-Clause"
] | null | null | null | socialnews/news/search.py | agiliq/django-socialnews | aa4a1a4a0e3279e6c7999071648ba37c71df9d15 | [
"BSD-3-Clause"
] | 11 | 2015-02-21T10:45:41.000Z | 2021-01-24T21:08:20.000Z | import urllib2, urllib
from django.utils import simplejson
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render_to_response
import defaults
from helpers import render
site = defaults.SITE
def search (request):
if not request.GET.has_key('q'):
payload =... | 39.153846 | 211 | 0.598232 | 222 | 2,036 | 5.31982 | 0.382883 | 0.053345 | 0.025402 | 0.023709 | 0.103302 | 0.064352 | 0.064352 | 0.064352 | 0.064352 | 0 | 0 | 0.017833 | 0.28389 | 2,036 | 51 | 212 | 39.921569 | 0.792181 | 0.035363 | 0 | 0 | 0 | 0 | 0.113494 | 0.04341 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.139535 | null | null | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0687c3ed8f1820a32e3605e0f7ceb86f671a8117 | 2,066 | py | Python | framework/server.py | AlexanderFroemmgen/mptcp_progmp_maci_evaluation_setups | 00a3acd5febf2087d1c27d71708d361f7976d171 | [
"MIT"
] | null | null | null | framework/server.py | AlexanderFroemmgen/mptcp_progmp_maci_evaluation_setups | 00a3acd5febf2087d1c27d71708d361f7976d171 | [
"MIT"
] | null | null | null | framework/server.py | AlexanderFroemmgen/mptcp_progmp_maci_evaluation_setups | 00a3acd5febf2087d1c27d71708d361f7976d171 | [
"MIT"
] | null | null | null | #!/usr/bin/python
'''
Flow completion time server
This server keeps a persistent TCP connection and receives multiple
short flows.
@author: Alexander Froemmgen
'''
import time
import socket
import sys
from struct import *
from timeit import default_timer as timer
import fct_lib
if __name__ == '__main__':
po... | 25.506173 | 132 | 0.64666 | 267 | 2,066 | 4.872659 | 0.400749 | 0.075327 | 0.043044 | 0.064566 | 0.126057 | 0.126057 | 0.096849 | 0.096849 | 0.096849 | 0 | 0 | 0.015853 | 0.236689 | 2,066 | 80 | 133 | 25.825 | 0.809131 | 0.017425 | 0 | 0.078431 | 0 | 0.019608 | 0.177565 | 0.012759 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.098039 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06899f5f7034545d241da9f87c0f8e6c83b04c23 | 3,382 | py | Python | test/vendor/git_extensions/test_parsers.py | Nirovision/mimiron | adba1e762b1ae272c833f1843b179f3438f20774 | [
"MIT"
] | 3 | 2017-02-26T20:34:22.000Z | 2017-02-26T23:28:28.000Z | test/vendor/git_extensions/test_parsers.py | Nirovision/mimiron | adba1e762b1ae272c833f1843b179f3438f20774 | [
"MIT"
] | null | null | null | test/vendor/git_extensions/test_parsers.py | Nirovision/mimiron | adba1e762b1ae272c833f1843b179f3438f20774 | [
"MIT"
] | 1 | 2017-02-27T00:15:12.000Z | 2017-02-27T00:15:12.000Z | # -*- coding: utf-8 -*-
import string
import random
from mimiron.vendor.git_extensions.parsers import parse_commit_message
class TestGitExtensionsCommitParserV1(object):
def test_empty_commit(self):
message = ''
expected_output = None
assert parse_commit_message(message) == expected_outp... | 34.865979 | 98 | 0.576878 | 355 | 3,382 | 5.256338 | 0.211268 | 0.090032 | 0.068596 | 0.07717 | 0.689175 | 0.689175 | 0.689175 | 0.644159 | 0.621651 | 0.621651 | 0 | 0.029362 | 0.295092 | 3,382 | 96 | 99 | 35.229167 | 0.753356 | 0.284447 | 0 | 0.611111 | 0 | 0 | 0.180335 | 0.056485 | 0 | 0 | 0 | 0 | 0.092593 | 1 | 0.092593 | false | 0 | 0.055556 | 0 | 0.166667 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06964b383bef4125b53c16a0f1b7243239cbc5ba | 647 | py | Python | bitbots_body_behaviour/src/bitbots_body_behaviour/actions/search.py | TAMS-Group/bitbots_behaviour | 84f713060e6be0803dff1bc3df1bdef49bef02e3 | [
"BSD-3-Clause"
] | null | null | null | bitbots_body_behaviour/src/bitbots_body_behaviour/actions/search.py | TAMS-Group/bitbots_behaviour | 84f713060e6be0803dff1bc3df1bdef49bef02e3 | [
"BSD-3-Clause"
] | null | null | null | bitbots_body_behaviour/src/bitbots_body_behaviour/actions/search.py | TAMS-Group/bitbots_behaviour | 84f713060e6be0803dff1bc3df1bdef49bef02e3 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding:utf-8 -*-
"""
Search
^^^^^^
"""
from bitbots_body_behaviour.actions.go_to import Stand
from bitbots_stackmachine.abstract_action_element import AbstractActionElement
from humanoid_league_msgs.msg import HeadMode
class Search(AbstractActionElement):
def perform(self, connector, reevaluate=False):
... | 28.130435 | 78 | 0.735703 | 79 | 647 | 5.848101 | 0.56962 | 0.047619 | 0.060606 | 0.099567 | 0.380952 | 0.380952 | 0.21645 | 0.21645 | 0.21645 | 0 | 0 | 0.001855 | 0.166924 | 647 | 22 | 79 | 29.409091 | 0.855288 | 0.12983 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
069b093a6e37ee55878cd8e87448160120a7a554 | 840 | py | Python | mobycity/mobycity/urls.py | LucienD/Mobct | 1c8422b30c205bdb2dc21c988f74280194980ec4 | [
"MIT"
] | null | null | null | mobycity/mobycity/urls.py | LucienD/Mobct | 1c8422b30c205bdb2dc21c988f74280194980ec4 | [
"MIT"
] | null | null | null | mobycity/mobycity/urls.py | LucienD/Mobct | 1c8422b30c205bdb2dc21c988f74280194980ec4 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls import patterns
from django.conf.urls.static import static
from django.contrib import admin
# admin.autodiscover() # Not required for Django 1.7.x+
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'mobycity.vie... | 36.521739 | 65 | 0.67381 | 113 | 840 | 4.973451 | 0.353982 | 0.071174 | 0.113879 | 0.096085 | 0.085409 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002732 | 0.128571 | 840 | 22 | 66 | 38.181818 | 0.765027 | 0.17619 | 0 | 0 | 0 | 0 | 0.227405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
06a414cfb077a895db4c5aab05010ce1c4d221dc | 4,559 | py | Python | test/e2e/service_cleanup.py | BriannaRoskind/applicationautoscaling-controller | 851346084d19e387464612116273b1ba6e209ebd | [
"Apache-2.0"
] | 11 | 2021-03-24T00:56:52.000Z | 2021-11-25T10:58:37.000Z | test/e2e/service_cleanup.py | BriannaRoskind/applicationautoscaling-controller | 851346084d19e387464612116273b1ba6e209ebd | [
"Apache-2.0"
] | 74 | 2021-04-28T20:42:15.000Z | 2022-03-31T20:33:53.000Z | test/e2e/service_cleanup.py | BriannaRoskind/applicationautoscaling-controller | 851346084d19e387464612116273b1ba6e209ebd | [
"Apache-2.0"
] | 10 | 2021-03-22T18:13:48.000Z | 2021-11-16T21:29:44.000Z | # Copyright Amazon.com Inc. or its affiliates. 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. A copy of the
# License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanyin... | 31.441379 | 89 | 0.722308 | 535 | 4,559 | 5.970093 | 0.31215 | 0.052912 | 0.035066 | 0.036005 | 0.284909 | 0.145272 | 0.122417 | 0.099249 | 0.07608 | 0.07608 | 0 | 0.005169 | 0.193683 | 4,559 | 144 | 90 | 31.659722 | 0.863711 | 0.179645 | 0 | 0.266667 | 0 | 0.011111 | 0.201624 | 0.079567 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.077778 | 0 | 0.144444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
06a6fd7604abd340e55caae3e5902c612861373a | 620 | py | Python | src/video_base_management/config_utils.py | netvisionhcm/app-server | aeb9a2c1fc695ebe4aa75af277206e84d179a222 | [
"Unlicense"
] | null | null | null | src/video_base_management/config_utils.py | netvisionhcm/app-server | aeb9a2c1fc695ebe4aa75af277206e84d179a222 | [
"Unlicense"
] | null | null | null | src/video_base_management/config_utils.py | netvisionhcm/app-server | aeb9a2c1fc695ebe4aa75af277206e84d179a222 | [
"Unlicense"
] | null | null | null | import json
#FILECONFIG = "google_config.json"
DBCONFIG = 'postgressql.json'
GRPCCONFIG = 'grpc_service.json'
def read_grpc_config():
with open(GRPCCONFIG, "r") as jsonFile:
data = json.load(jsonFile)
return data['server_ip'], data['ai_port']
def read_db_config():
with open(DBCONFIG, "r") as j... | 24.8 | 79 | 0.682258 | 84 | 620 | 4.821429 | 0.380952 | 0.074074 | 0.103704 | 0.111111 | 0.422222 | 0.422222 | 0.422222 | 0.422222 | 0.422222 | 0.320988 | 0 | 0 | 0.174194 | 620 | 24 | 80 | 25.833333 | 0.791016 | 0.053226 | 0 | 0.333333 | 0 | 0 | 0.204778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.066667 | 0.066667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
06ac407d6b15e71e77d5f74d8b0934bf0fe07d5e | 510 | py | Python | pages/themes/beginners/OOP_advanced/examples/simplest_static_method.py | ProgressBG-Python-Course/ProgressBG-VC2-Python | 03b892a42ee1fad3d4f97e328e06a4b1573fd356 | [
"MIT"
] | null | null | null | pages/themes/beginners/OOP_advanced/examples/simplest_static_method.py | ProgressBG-Python-Course/ProgressBG-VC2-Python | 03b892a42ee1fad3d4f97e328e06a4b1573fd356 | [
"MIT"
] | null | null | null | pages/themes/beginners/OOP_advanced/examples/simplest_static_method.py | ProgressBG-Python-Course/ProgressBG-VC2-Python | 03b892a42ee1fad3d4f97e328e06a4b1573fd356 | [
"MIT"
] | null | null | null | class A():
@staticmethod
def staticMethod():
print("STATIC method fired!")
print("Nothing is bound to me")
print("~"*30)
@classmethod
def classMethod(cls):
print("CLASS method fired!")
print(str(cls)+" is bound to me")
print("~"*30)
# normal method
def normalMethod(self):
print... | 18.888889 | 38 | 0.617647 | 67 | 510 | 4.641791 | 0.343284 | 0.096463 | 0.086817 | 0.106109 | 0.173633 | 0.173633 | 0 | 0 | 0 | 0 | 0 | 0.017456 | 0.213725 | 510 | 27 | 39 | 18.888889 | 0.758105 | 0.02549 | 0 | 0.142857 | 0 | 0 | 0.231855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0 | 0 | 0.238095 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
06addf14a100ca250bd2a5904e2de45f7035e064 | 402 | py | Python | users/migrations/0005_profile_username.py | Ahmed-Dauda/codethinkers-testing | 63be8ed06bdf75e5eb38934515d8b1fb3b0c0897 | [
"MIT"
] | null | null | null | users/migrations/0005_profile_username.py | Ahmed-Dauda/codethinkers-testing | 63be8ed06bdf75e5eb38934515d8b1fb3b0c0897 | [
"MIT"
] | null | null | null | users/migrations/0005_profile_username.py | Ahmed-Dauda/codethinkers-testing | 63be8ed06bdf75e5eb38934515d8b1fb3b0c0897 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2022-01-07 19:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_alter_profile_countries'),
]
operations = [
migrations.AddField(
model_name='profile',
name='username'... | 21.157895 | 62 | 0.606965 | 44 | 402 | 5.431818 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072414 | 0.278607 | 402 | 18 | 63 | 22.333333 | 0.751724 | 0.11194 | 0 | 0 | 1 | 0 | 0.135211 | 0.078873 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebef2948df9f60387455ffc8ccdbf5c9f8eac8ee | 7,773 | py | Python | projDir/ingest/scripts/download_iwg1.py | NCAR/lrose-uw-general | d317aad5e1250f131e24c83f4e17b9cd90605d13 | [
"BSD-2-Clause"
] | 1 | 2020-01-16T23:48:03.000Z | 2020-01-16T23:48:03.000Z | uw/projDir/ingest/scripts/download_iwg1.py | NCAR/lrose-uw-olympex | b5478e2a13d69ab2acbe697cbc413e69ea39e853 | [
"BSD-2-Clause"
] | null | null | null | uw/projDir/ingest/scripts/download_iwg1.py | NCAR/lrose-uw-olympex | b5478e2a13d69ab2acbe697cbc413e69ea39e853 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
#===========================================================================
#
# DOWNLOAD aircraft data in IWG1 format
#
#===========================================================================
import os
import sys
from stat import *
import time
import datetime
from datetime import timedelta... | 28.265455 | 99 | 0.521806 | 752 | 7,773 | 5.353723 | 0.30984 | 0.04769 | 0.083458 | 0.04918 | 0.237705 | 0.22926 | 0.22926 | 0.157725 | 0.136364 | 0.136364 | 0 | 0.005438 | 0.266564 | 7,773 | 274 | 100 | 28.368613 | 0.700754 | 0.133153 | 0 | 0.24183 | 0 | 0.006536 | 0.180804 | 0.035077 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071895 | null | null | 0.156863 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebf2a28027e4ec19497098be07664832d66053b9 | 105,120 | py | Python | src/learning/PageManager.py | usc-isi-i2/landmark-extraction | 172897b44a3eb67df593904e6fbecb7b90b539d4 | [
"Apache-2.0"
] | null | null | null | src/learning/PageManager.py | usc-isi-i2/landmark-extraction | 172897b44a3eb67df593904e6fbecb7b90b539d4 | [
"Apache-2.0"
] | null | null | null | src/learning/PageManager.py | usc-isi-i2/landmark-extraction | 172897b44a3eb67df593904e6fbecb7b90b539d4 | [
"Apache-2.0"
] | null | null | null | import re
import string
from collections import OrderedDict
from extraction.Landmark import RuleSet, ItemRule, IterationRule, flattenResult
from extraction import Landmark
import codecs
import json
from bs4 import BeautifulSoup
from nltk.corpus import stopwords
import time
from itertools import groupby
from operator im... | 47.181329 | 211 | 0.555175 | 11,547 | 105,120 | 4.724864 | 0.053347 | 0.034862 | 0.013747 | 0.015671 | 0.503702 | 0.415594 | 0.336248 | 0.286979 | 0.258624 | 0.230434 | 0 | 0.007088 | 0.363813 | 105,120 | 2,228 | 212 | 47.181329 | 0.808721 | 0.104338 | 0 | 0.339846 | 0 | 0.001184 | 0.055583 | 0.006952 | 0 | 0 | 0 | 0.000449 | 0 | 0 | null | null | 0.000592 | 0.008881 | null | null | 0.000592 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebf3d394831f6c97b0f019b11da34e60909fe4dc | 312 | py | Python | app/decorators.py | chenke91/ihaveablog | 64000723589d3f5a074bd09f045cb5d6c3daf6dd | [
"MIT"
] | null | null | null | app/decorators.py | chenke91/ihaveablog | 64000723589d3f5a074bd09f045cb5d6c3daf6dd | [
"MIT"
] | null | null | null | app/decorators.py | chenke91/ihaveablog | 64000723589d3f5a074bd09f045cb5d6c3daf6dd | [
"MIT"
] | null | null | null | from functools import wraps
from flask import abort
from flask.ext.login import current_user
def admin_required(func):
@wraps(func)
def decorated_function(*args, **kwargs):
if not current_user.is_admin():
abort(403)
return func(*args, **kwargs)
return decorated_function
| 26 | 44 | 0.695513 | 41 | 312 | 5.146341 | 0.560976 | 0.085308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012295 | 0.217949 | 312 | 11 | 45 | 28.363636 | 0.852459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ebf74602e381b1fc24a20097948cf93608acb9d3 | 1,233 | py | Python | easytree_example/models.py | fabiocorneti/django-easytree | 7ab1c308c6fcbb6615475b74e4612b6759c080df | [
"BSD-3-Clause"
] | 1 | 2016-06-17T17:26:23.000Z | 2016-06-17T17:26:23.000Z | easytree_example/models.py | fabiocorneti/django-easytree | 7ab1c308c6fcbb6615475b74e4612b6759c080df | [
"BSD-3-Clause"
] | null | null | null | easytree_example/models.py | fabiocorneti/django-easytree | 7ab1c308c6fcbb6615475b74e4612b6759c080df | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from easytree.models import BaseEasyTree
from easytree.managers import EasyTreeManager
from easytree.signals import node_moved
from easytree.validators import SingleRootAllowedValidator
from django.conf import settings
class ExampleNode(BaseEasyTree):
title = models.CharFie... | 23.711538 | 74 | 0.683698 | 115 | 1,233 | 7.165217 | 0.4 | 0.058252 | 0.087379 | 0.116505 | 0.378641 | 0.378641 | 0.378641 | 0.296117 | 0.296117 | 0 | 0 | 0.006459 | 0.246553 | 1,233 | 51 | 75 | 24.176471 | 0.880517 | 0 | 0 | 0.40625 | 0 | 0 | 0.00846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebfb688f8f52ab2cca2500d0d06070d81c78c91f | 500 | py | Python | backend/phish_manager/phish_manager/phisherman/models.py | akashzcoder/phisher-man | 4f919e4047561abed7e4e69539643d4cd005e060 | [
"MIT"
] | 1 | 2020-09-15T04:57:39.000Z | 2020-09-15T04:57:39.000Z | backend/phish_manager/phish_manager/phisherman/models.py | akashzcoder/phisher-man | 4f919e4047561abed7e4e69539643d4cd005e060 | [
"MIT"
] | 1 | 2020-09-17T04:56:26.000Z | 2020-09-17T04:56:26.000Z | backend/phish_manager/phish_manager/phisherman/models.py | akashzcoder/phisher-man | 4f919e4047561abed7e4e69539643d4cd005e060 | [
"MIT"
] | null | null | null | from django.db import models
class Incident(models.Model):
url = models.URLField()
client = models.CharField(max_length=100, blank=False, default='Undefined')
active = models.BooleanField(default=True)
created = models.DateTimeField(auto_now_add=True)
class Meta:
ordering = ['created']
c... | 26.315789 | 79 | 0.7 | 60 | 500 | 5.75 | 0.533333 | 0.063768 | 0.098551 | 0.173913 | 0.394203 | 0.394203 | 0.394203 | 0.394203 | 0.394203 | 0.394203 | 0 | 0.007353 | 0.184 | 500 | 18 | 80 | 27.777778 | 0.838235 | 0 | 0 | 0.461538 | 0 | 0 | 0.046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2300780ebc8ee7854478a7047b5ac37e3c3a1254 | 609 | py | Python | babybuddy/settings/docker.py | svenvdmeer/babybuddy | d9485f0208b529c1e19ccfeb8a52e78c76615767 | [
"BSD-2-Clause"
] | null | null | null | babybuddy/settings/docker.py | svenvdmeer/babybuddy | d9485f0208b529c1e19ccfeb8a52e78c76615767 | [
"BSD-2-Clause"
] | 12 | 2021-05-31T12:18:21.000Z | 2021-07-09T15:13:37.000Z | babybuddy/settings/docker.py | svenvdmeer/babybuddy | d9485f0208b529c1e19ccfeb8a52e78c76615767 | [
"BSD-2-Clause"
] | null | null | null | from .base import *
# Database
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
# Load settings from env file / variables with fallback defaults to support current psql deployment
DATABASES = {
'default': {
'ENGINE': os.getenv('DB_ENGINE') or 'django.db.backends.postgresql_psycopg2',
... | 33.833333 | 99 | 0.651888 | 81 | 609 | 4.802469 | 0.555556 | 0.102828 | 0.128535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014141 | 0.187192 | 609 | 17 | 100 | 35.823529 | 0.771717 | 0.27422 | 0 | 0 | 0 | 0 | 0.361556 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
230cdf8d19cee2346fede61acbaa6a6ba608d147 | 3,406 | py | Python | pattoo/db/schema/user.py | palisadoes/pattoo | 57bd3e82e49d51e3426b13ad53ed8326a735ce29 | [
"Apache-2.0"
] | null | null | null | pattoo/db/schema/user.py | palisadoes/pattoo | 57bd3e82e49d51e3426b13ad53ed8326a735ce29 | [
"Apache-2.0"
] | null | null | null | pattoo/db/schema/user.py | palisadoes/pattoo | 57bd3e82e49d51e3426b13ad53ed8326a735ce29 | [
"Apache-2.0"
] | null | null | null | """pattoo ORM Schema for the User table."""
# PIP3 imports
import graphene
from graphene_sqlalchemy import SQLAlchemyObjectType
# pattoo imports
from pattoo.db import db
from pattoo.db.models import User as UserModel
from pattoo.db.schema import utils
from pattoo_shared.constants import DATA_INT
class UserAttribute... | 25.22963 | 78 | 0.666177 | 392 | 3,406 | 5.683673 | 0.318878 | 0.021993 | 0.039497 | 0.048474 | 0.270197 | 0.197487 | 0.133752 | 0.09605 | 0.09605 | 0.09605 | 0 | 0.006197 | 0.241926 | 3,406 | 134 | 79 | 25.41791 | 0.8567 | 0.222548 | 0 | 0.15625 | 0 | 0 | 0.068423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0.0625 | 0.09375 | 0 | 0.46875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
230e0a90e18576ef743908ee5d24926fd00b60c8 | 2,403 | py | Python | COCO/create_xml.py | DongDem/Preparing_Dataset_Opensource | 5c4c321f2fb1e00ca0e23ef2bf9d56f8ff952679 | [
"MIT"
] | null | null | null | COCO/create_xml.py | DongDem/Preparing_Dataset_Opensource | 5c4c321f2fb1e00ca0e23ef2bf9d56f8ff952679 | [
"MIT"
] | null | null | null | COCO/create_xml.py | DongDem/Preparing_Dataset_Opensource | 5c4c321f2fb1e00ca0e23ef2bf9d56f8ff952679 | [
"MIT"
] | null | null | null | import xml.etree.ElementTree as ET
import os
import csv
save_path = "test_coco_xml"
train_csv = 'test.csv'
'''
with open(train_csv) as f:
reader = csv.reader(f)
i=0
for row in reader:
filename_value = row[0]
width_value = row[1]
height_value = row[2]
name_value = row[3]
... | 31.618421 | 118 | 0.599251 | 289 | 2,403 | 4.882353 | 0.266436 | 0.170092 | 0.109142 | 0.019844 | 0.025514 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00919 | 0.275489 | 2,403 | 75 | 119 | 32.04 | 0.801264 | 0 | 0 | 0 | 0 | 0 | 0.212544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
231686759926b600a4d2a5f99418cbbdef1065d5 | 298 | py | Python | my_app/app.py | ayan-usgs/simple-service | 8bd660f7029a670b80afc6828f8b399a43b50b3b | [
"Unlicense"
] | null | null | null | my_app/app.py | ayan-usgs/simple-service | 8bd660f7029a670b80afc6828f8b399a43b50b3b | [
"Unlicense"
] | null | null | null | my_app/app.py | ayan-usgs/simple-service | 8bd660f7029a670b80afc6828f8b399a43b50b3b | [
"Unlicense"
] | null | null | null | import falcon
from .services import EnvironmentGetter, EvenOdd, StringLength
api = application = falcon.API()
eg = EnvironmentGetter()
eo = EvenOdd()
sl = StringLength()
api.add_route('/py-app/env-getter/', eg)
api.add_route('/py-app/integer/', eo)
api.add_route('/py-app/string-length/', sl)
| 19.866667 | 62 | 0.724832 | 41 | 298 | 5.195122 | 0.512195 | 0.084507 | 0.15493 | 0.183099 | 0.225352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110738 | 298 | 14 | 63 | 21.285714 | 0.803774 | 0 | 0 | 0 | 0 | 0 | 0.191275 | 0.073826 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
231d540c6d4e58829563dc34af824e9dc315f3bf | 352 | py | Python | moex/migrations/0041_delete_newsearchsecurity.py | ghostforpy/bonds-docker | fda77225b85264cb4ba06b15ff63bc807858425a | [
"MIT"
] | 2 | 2020-09-08T12:51:56.000Z | 2021-08-18T15:27:52.000Z | moex/migrations/0041_delete_newsearchsecurity.py | ghostforpy/bonds-docker | fda77225b85264cb4ba06b15ff63bc807858425a | [
"MIT"
] | 1 | 2021-12-13T20:43:35.000Z | 2021-12-13T20:43:35.000Z | moex/migrations/0041_delete_newsearchsecurity.py | ghostforpy/bonds-docker | fda77225b85264cb4ba06b15ff63bc807858425a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2021-04-21 19:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('portfolio', '0023_auto_20210102_2321'),
('moex', '0040_newsearchsecurity'),
]
operations = [
migrations.DeleteModel(
name='NewSe... | 19.555556 | 49 | 0.616477 | 35 | 352 | 6.085714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135659 | 0.267045 | 352 | 17 | 50 | 20.705882 | 0.689922 | 0.127841 | 0 | 0 | 1 | 0 | 0.245902 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2326a3c9f3afc5ccecd5659d02ca5f4a1a7f77df | 1,323 | py | Python | mt_jwt_auth/jwt_user/permissions.py | pogorelov-ss/mt_jwt_auth | d22ffe0b18ef5005ea780ea9ff51fcfa2b700b85 | [
"MIT"
] | 4 | 2018-05-18T06:43:47.000Z | 2022-01-24T09:56:38.000Z | mt_jwt_auth/jwt_user/permissions.py | pogorelov-ss/mt_jwt_auth | d22ffe0b18ef5005ea780ea9ff51fcfa2b700b85 | [
"MIT"
] | null | null | null | mt_jwt_auth/jwt_user/permissions.py | pogorelov-ss/mt_jwt_auth | d22ffe0b18ef5005ea780ea9ff51fcfa2b700b85 | [
"MIT"
] | 2 | 2018-09-13T13:38:36.000Z | 2018-09-14T09:14:00.000Z | from rest_framework import permissions
from mt_jwt_auth.jwt_user.jwt_user import JWTUser
from mt_jwt_auth.jwt_user.utils.common import jwt_decode_handler, get_jwt_value
class JWTBasePermission(permissions.BasePermission):
def has_permission(self, request, view):
token = get_jwt_value(request)
if... | 30.767442 | 85 | 0.646259 | 160 | 1,323 | 5.15625 | 0.4625 | 0.033939 | 0.032727 | 0.090909 | 0.179394 | 0.123636 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290249 | 1,323 | 42 | 86 | 31.5 | 0.878594 | 0.179138 | 0 | 0.166667 | 0 | 0 | 0.009407 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 1 | 0.125 | false | 0.041667 | 0.125 | 0.041667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2326ad4affbb8645882d55ec7286c7367059de59 | 410 | py | Python | Pr-Lab1/lab1_3.py | JackShen1/pr-labs | c84df379d8f7b26ccff30248dfb23ae38e0ce7c2 | [
"MIT"
] | 2 | 2021-02-25T11:42:06.000Z | 2021-03-08T20:43:44.000Z | Pr-Lab1/lab1_3.py | JackShen1/pr-labs | c84df379d8f7b26ccff30248dfb23ae38e0ce7c2 | [
"MIT"
] | null | null | null | Pr-Lab1/lab1_3.py | JackShen1/pr-labs | c84df379d8f7b26ccff30248dfb23ae38e0ce7c2 | [
"MIT"
] | null | null | null | while True:
try:
n = int(input("Enter N: "))
except ValueError:
print("Enter correct number!")
else:
if n <= 100:
print("Error: N must be greater than 100!")
else:
for i in range(11, n + 1):
s = i
i = (i-1) + i*i
... | 24.117647 | 55 | 0.370732 | 49 | 410 | 3.102041 | 0.591837 | 0.039474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.521951 | 410 | 16 | 56 | 25.625 | 0.704082 | 0 | 0 | 0.125 | 0 | 0 | 0.156098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
232894ed2c6b6179a733f4fc06b85a98bba4e171 | 907 | py | Python | beagle/nodes/alert.py | armysick/beagle | edba74d1137d65fd9aa98f2f86b5d3ab9b0d390c | [
"MIT"
] | 1 | 2019-10-01T19:26:16.000Z | 2019-10-01T19:26:16.000Z | beagle/nodes/alert.py | armysick/beagle | edba74d1137d65fd9aa98f2f86b5d3ab9b0d390c | [
"MIT"
] | 3 | 2019-04-10T17:59:52.000Z | 2019-04-10T20:44:32.000Z | beagle/nodes/alert.py | armysick/beagle | edba74d1137d65fd9aa98f2f86b5d3ab9b0d390c | [
"MIT"
] | 3 | 2019-04-08T20:02:22.000Z | 2019-04-10T19:47:41.000Z | from collections import defaultdict
from typing import DefaultDict, List, Optional
from beagle.nodes import Edge, Node
class AlertedOn(Edge):
__name__ = "Alerted On"
timestamp: int
def __init__(self) -> None:
super().__init__()
class Alert(Node):
__name__ = "Alert"
__color__ = "#FFFF... | 21.595238 | 77 | 0.667034 | 111 | 907 | 5.081081 | 0.333333 | 0.095745 | 0.069149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002869 | 0.231533 | 907 | 41 | 78 | 22.121951 | 0.806313 | 0.031974 | 0 | 0.08 | 0 | 0 | 0.047945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.12 | 0.08 | 0.76 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
23317f515e05156d1149e8e40806a832b4b03765 | 795 | py | Python | tests/test_connection_sdk.py | MSLNZ/msl-equipment | ce87e1e5ad302729dcbdab6cdecb346845066577 | [
"MIT"
] | 9 | 2019-07-26T05:07:58.000Z | 2022-03-09T08:45:23.000Z | tests/test_connection_sdk.py | MSLNZ/msl-equipment | ce87e1e5ad302729dcbdab6cdecb346845066577 | [
"MIT"
] | 7 | 2018-06-24T09:14:51.000Z | 2022-01-16T20:16:33.000Z | tests/test_connection_sdk.py | MSLNZ/msl-equipment | ce87e1e5ad302729dcbdab6cdecb346845066577 | [
"MIT"
] | 7 | 2019-02-07T22:08:37.000Z | 2022-03-09T08:54:04.000Z | from msl.equipment.connection_sdk import ConnectionSDK
def test_parse_address():
p = ConnectionSDK.parse_address
for address in ['', 'SDK', 'sdk', 'SDK:', 'SDK::', 'COM2', 'ASRL7::INSTR',
'ASRL/dev/ttyS1', 'SOCKET::192.168.1.100::5000', 'Prologix::192.168.1.110::1234::6']:
assert... | 44.166667 | 119 | 0.573585 | 130 | 795 | 3.461538 | 0.4 | 0.108889 | 0.111111 | 0.035556 | 0.311111 | 0.266667 | 0.266667 | 0.266667 | 0.106667 | 0.106667 | 0 | 0.053731 | 0.157233 | 795 | 17 | 120 | 46.764706 | 0.61791 | 0 | 0 | 0 | 0 | 0 | 0.495597 | 0.222642 | 0 | 0 | 0 | 0 | 0.583333 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
23331f71f894aeb7aa22feadbfdf8518ee75da57 | 29,845 | py | Python | bin/yap_exe.py | Novartis/yap | 8399e87e6083e6394d1f9340e308a01751465a03 | [
"Apache-2.0"
] | 23 | 2015-01-14T21:32:11.000Z | 2021-07-19T12:59:10.000Z | bin/yap_exe.py | Novartis/yap | 8399e87e6083e6394d1f9340e308a01751465a03 | [
"Apache-2.0"
] | 1 | 2017-06-30T10:54:57.000Z | 2017-06-30T10:54:57.000Z | bin/yap_exe.py | Novartis/yap | 8399e87e6083e6394d1f9340e308a01751465a03 | [
"Apache-2.0"
] | 9 | 2015-09-02T17:44:24.000Z | 2021-07-05T18:59:16.000Z | #!/usr/bin/env python
"""
Copyright 2014 Novartis Institutes for Biomedical Research
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 ... | 60.660569 | 272 | 0.51811 | 3,048 | 29,845 | 4.709974 | 0.106955 | 0.037615 | 0.051407 | 0.027306 | 0.700613 | 0.659585 | 0.618348 | 0.573837 | 0.54883 | 0.499094 | 0 | 0.015838 | 0.388608 | 29,845 | 491 | 273 | 60.784114 | 0.770921 | 0.04138 | 0 | 0.530374 | 0 | 0 | 0.080615 | 0.009452 | 0.025701 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004673 | 0.030374 | null | null | 0.037383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2338e5426e294345f98a6a4ef8dd1d4ef3b9d249 | 6,464 | py | Python | app/controllers/api/private/v1/register.py | arxcdr/silverback | 212139cbc1a648d1f877d60f2d7c4d750eefc3da | [
"BSD-3-Clause"
] | null | null | null | app/controllers/api/private/v1/register.py | arxcdr/silverback | 212139cbc1a648d1f877d60f2d7c4d750eefc3da | [
"BSD-3-Clause"
] | null | null | null | app/controllers/api/private/v1/register.py | arxcdr/silverback | 212139cbc1a648d1f877d60f2d7c4d750eefc3da | [
"BSD-3-Clause"
] | null | null | null | """
Register API Endpoint
"""
# Standard Library
import json
# Third Party Library
from django.views import View
from django.http import JsonResponse
from django.utils.translation import gettext as _
# Local Library
from pyvalitron.form import Form
from app.modules.util.helpers import Helpers
from app.modules.core.r... | 35.911111 | 142 | 0.503094 | 571 | 6,464 | 5.334501 | 0.252189 | 0.034143 | 0.02889 | 0.039068 | 0.299081 | 0.224885 | 0.211425 | 0.211425 | 0.164806 | 0.130007 | 0 | 0.005984 | 0.379486 | 6,464 | 179 | 143 | 36.111732 | 0.753428 | 0.011293 | 0 | 0.256579 | 0 | 0 | 0.220342 | 0.010343 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0.052632 | 0.072368 | 0 | 0.177632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2347925ee2685cfc5f4966bac2b1c0a5717001b5 | 586 | py | Python | affective_response/migrations/0002_affectiveresponse_my_field2.py | bhuiyanmobasshir94/categorized_affect_map_repo | a1181506ba71b8246f12db17d75ce1a8ee19e66f | [
"BSD-3-Clause"
] | 1 | 2018-12-08T22:57:03.000Z | 2018-12-08T22:57:03.000Z | affective_response/migrations/0002_affectiveresponse_my_field2.py | bhuiyanmobasshir94/categorized_affect_map_repo | a1181506ba71b8246f12db17d75ce1a8ee19e66f | [
"BSD-3-Clause"
] | null | null | null | affective_response/migrations/0002_affectiveresponse_my_field2.py | bhuiyanmobasshir94/categorized_affect_map_repo | a1181506ba71b8246f12db17d75ce1a8ee19e66f | [
"BSD-3-Clause"
] | 1 | 2019-10-15T04:52:59.000Z | 2019-10-15T04:52:59.000Z | # Generated by Django 2.1.4 on 2018-12-06 17:03
from django.db import migrations
import multiselectfield.db.fields
class Migration(migrations.Migration):
dependencies = [
('affective_response', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='affectiverespo... | 29.3 | 212 | 0.624573 | 75 | 586 | 4.813333 | 0.546667 | 0.124654 | 0.138504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081678 | 0.226962 | 586 | 19 | 213 | 30.842105 | 0.715232 | 0.076792 | 0 | 0 | 1 | 0 | 0.233766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2348aabb28334b9cf323a61c39a878602ebc9209 | 3,673 | py | Python | linkquality/representativity.py | bzohidov/TomoRain | a894249a666ff71289fbd878dbc31f6d2bd82701 | [
"MIT"
] | null | null | null | linkquality/representativity.py | bzohidov/TomoRain | a894249a666ff71289fbd878dbc31f6d2bd82701 | [
"MIT"
] | null | null | null | linkquality/representativity.py | bzohidov/TomoRain | a894249a666ff71289fbd878dbc31f6d2bd82701 | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Name: representativity.py
# Purpose: To provide pixel representativity map
#-------------------------------------------------------------------------------
import numpy as np
from itertools import chain
# my lib
from forward... | 39.494624 | 81 | 0.52709 | 484 | 3,673 | 3.956612 | 0.264463 | 0.037598 | 0.021932 | 0.028198 | 0.431332 | 0.420888 | 0.384334 | 0.384334 | 0.351958 | 0.351958 | 0 | 0.02488 | 0.321536 | 3,673 | 92 | 82 | 39.923913 | 0.743579 | 0.101552 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
235179f88423da16bb2ca90d1b6a99fa2f353091 | 587 | py | Python | tests/test_env.py | wuriyanto48/pyenvar | bb91ec3cb7cac1d7319ca20dd1c67ae10cf60186 | [
"MIT"
] | null | null | null | tests/test_env.py | wuriyanto48/pyenvar | bb91ec3cb7cac1d7319ca20dd1c67ae10cf60186 | [
"MIT"
] | null | null | null | tests/test_env.py | wuriyanto48/pyenvar | bb91ec3cb7cac1d7319ca20dd1c67ae10cf60186 | [
"MIT"
] | 1 | 2020-11-09T04:21:49.000Z | 2020-11-09T04:21:49.000Z | import os
import unittest
import pathlib
import pyenvar
class TestEnv(unittest.TestCase):
def test_parse(self):
env_data = 'USERNAME="admin"\nPASSWORD=12345'
parsed = pyenvar.parse(env_data)
self.assertEqual('admin', parsed.get('USERNAME'))
def test_load(self):
here = pat... | 25.521739 | 61 | 0.65247 | 71 | 587 | 5.140845 | 0.507042 | 0.038356 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.207836 | 587 | 23 | 62 | 25.521739 | 0.772043 | 0 | 0 | 0 | 0 | 0 | 0.139456 | 0.054422 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | false | 0.058824 | 0.235294 | 0 | 0.411765 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2352061b6fdf5e0d444df6eaac908fe4fca89bab | 2,411 | py | Python | test/TestCompare.py | campenberger/albackup | ac23fc22716b852883a58762bd631496789e376b | [
"MIT"
] | null | null | null | test/TestCompare.py | campenberger/albackup | ac23fc22716b852883a58762bd631496789e376b | [
"MIT"
] | null | null | null | test/TestCompare.py | campenberger/albackup | ac23fc22716b852883a58762bd631496789e376b | [
"MIT"
] | null | null | null | import unittest
import os
from mock import patch,MagicMock
from albackup.compare import DbCompare
_baseDir=os.path.abspath(os.path.join(os.path.dirname(__file__),'..'))
class TestDbCompare(unittest.TestCase):
def setUp(self):
super(TestDbCompare,self).setUp()
ref_cfg={
"name": "ref",
"db_name": "ref_db_na... | 33.957746 | 208 | 0.726255 | 316 | 2,411 | 5.291139 | 0.316456 | 0.021531 | 0.016148 | 0.035885 | 0.051435 | 0.051435 | 0.051435 | 0.051435 | 0.051435 | 0 | 0 | 0.000932 | 0.110328 | 2,411 | 71 | 209 | 33.957746 | 0.778555 | 0 | 0 | 0.068966 | 0 | 0.068966 | 0.450249 | 0.248756 | 0 | 0 | 0 | 0 | 0.103448 | 1 | 0.068966 | false | 0.068966 | 0.068966 | 0 | 0.155172 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2353a652e0547ccc9078ed42aef8ea67471af602 | 377 | py | Python | cms/game/migrations/0012_auto_20180513_1003.py | alentoghostflame/PyLUS | d23531c81a81754bea04c1d1de335117edab1670 | [
"MIT"
] | 7 | 2019-04-18T00:46:09.000Z | 2021-12-21T04:34:44.000Z | cms/game/migrations/0012_auto_20180513_1003.py | alentoghostflame/PyLUS | d23531c81a81754bea04c1d1de335117edab1670 | [
"MIT"
] | 15 | 2021-03-08T17:29:40.000Z | 2021-04-08T18:22:52.000Z | cms/game/migrations/0012_auto_20180513_1003.py | alentoghostflame/PyLUS | d23531c81a81754bea04c1d1de335117edab1670 | [
"MIT"
] | 6 | 2018-04-01T16:33:50.000Z | 2018-05-12T15:54:21.000Z | # Generated by Django 2.0.3 on 2018-05-13 10:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('game', '0011_session_clone'),
]
operations = [
migrations.AlterField(
model_name='session',
name='clone',
... | 19.842105 | 49 | 0.588859 | 40 | 377 | 5.475 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.29443 | 377 | 18 | 50 | 20.944444 | 0.75188 | 0.119363 | 0 | 0 | 1 | 0 | 0.10303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
23612363d634b385ab794adc2a6d65717b068d5f | 220 | py | Python | dictionary_parser.py | fplucas/countdown | 357371a1229acf3de013b48de9be33808a686838 | [
"MIT"
] | null | null | null | dictionary_parser.py | fplucas/countdown | 357371a1229acf3de013b48de9be33808a686838 | [
"MIT"
] | null | null | null | dictionary_parser.py | fplucas/countdown | 357371a1229acf3de013b48de9be33808a686838 | [
"MIT"
] | null | null | null | # Charlie Conneely
# Dictionary parser file
def parse(f):
file = open(f, "r")
words = file.read().split()
file.close()
return words
if __name__ == "__main__":
print("please run runner.py instead")
| 16.923077 | 41 | 0.631818 | 29 | 220 | 4.517241 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 220 | 12 | 42 | 18.333333 | 0.770588 | 0.177273 | 0 | 0 | 0 | 0 | 0.207865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 1 |
2372b29922f93779f896753935f38223ee4c52d9 | 1,021 | py | Python | REST/python-refresher-master/19_lambda_functions/code.py | Rebell-Leader/bg | 616a40286fe1d34db2916762c477676ed8067cdb | [
"Apache-2.0"
] | null | null | null | REST/python-refresher-master/19_lambda_functions/code.py | Rebell-Leader/bg | 616a40286fe1d34db2916762c477676ed8067cdb | [
"Apache-2.0"
] | null | null | null | REST/python-refresher-master/19_lambda_functions/code.py | Rebell-Leader/bg | 616a40286fe1d34db2916762c477676ed8067cdb | [
"Apache-2.0"
] | null | null | null | def add(x, y):
return x + y
print(add(5, 7))
# -- Written as a lambda --
add = lambda x, y: x + y
print(add(5, 7))
# Four parts
# lambda
# parameters
# :
# return value
# Lambdas are meant to be short functions, often used without giving them a name.
# For example, in conjunction with built-in function map
# ... | 21.723404 | 84 | 0.685602 | 172 | 1,021 | 4.069767 | 0.453488 | 0.011429 | 0.02 | 0.028571 | 0.088571 | 0.088571 | 0 | 0 | 0 | 0 | 0 | 0.017435 | 0.213516 | 1,021 | 46 | 85 | 22.195652 | 0.854296 | 0.626836 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0.125 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
2374f078e2d7580d2fbaae1510e74aaab076ff7c | 3,155 | py | Python | app/users/user_models.py | MetaGenScope/metagenscope-server | 609cd57c626c857c8efde8237a1f22f4d1e6065d | [
"MIT"
] | null | null | null | app/users/user_models.py | MetaGenScope/metagenscope-server | 609cd57c626c857c8efde8237a1f22f4d1e6065d | [
"MIT"
] | null | null | null | app/users/user_models.py | MetaGenScope/metagenscope-server | 609cd57c626c857c8efde8237a1f22f4d1e6065d | [
"MIT"
] | null | null | null | """User model definitions."""
import datetime
import uuid
import jwt
from flask import current_app
from flask_api.exceptions import AuthenticationFailed
from sqlalchemy.dialects.postgresql import UUID
from sqlalchemy.ext.associationproxy import association_proxy
from marshmallow import fields
from app.base import Ba... | 33.210526 | 81 | 0.637401 | 346 | 3,155 | 5.653179 | 0.349711 | 0.02863 | 0.030675 | 0.048569 | 0.130879 | 0.106339 | 0.042945 | 0.042945 | 0.042945 | 0 | 0 | 0.005548 | 0.257369 | 3,155 | 94 | 82 | 33.56383 | 0.829279 | 0.110618 | 0 | 0.028986 | 0 | 0 | 0.088384 | 0.016234 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.057971 | 0.144928 | 0 | 0.463768 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2377d3d50f589f61f0f903855d2366f4e111815c | 2,093 | py | Python | app/core/models/person.py | fxavier/xbusness | 10e6455243a8b66775df6f3a11eec6e8a8bea3f7 | [
"MIT"
] | null | null | null | app/core/models/person.py | fxavier/xbusness | 10e6455243a8b66775df6f3a11eec6e8a8bea3f7 | [
"MIT"
] | null | null | null | app/core/models/person.py | fxavier/xbusness | 10e6455243a8b66775df6f3a11eec6e8a8bea3f7 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
class Person(models.Model):
name = models.CharField(max_length=255)
additional_info = models.CharField(max_length=1025, null=True, blank=True)
address = models.ForeignKey('core.Address', related_name... | 38.054545 | 120 | 0.692785 | 274 | 2,093 | 5.124088 | 0.251825 | 0.074074 | 0.111111 | 0.145299 | 0.45584 | 0.37963 | 0.345442 | 0.345442 | 0.250712 | 0 | 0 | 0.019481 | 0.190635 | 2,093 | 55 | 121 | 38.054545 | 0.809327 | 0.009556 | 0 | 0.15 | 0 | 0 | 0.035232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.075 | 0.1 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
237abe671a02a03b7a3f897292024b01935807da | 755 | py | Python | bmds_server/common/git.py | shapiromatron/bmds-server | 0b2b79b521728582fa66100621e9ea03e251f9f1 | [
"MIT"
] | 1 | 2019-07-09T16:42:15.000Z | 2019-07-09T16:42:15.000Z | bmds_server/common/git.py | shapiromatron/bmds-server | 0b2b79b521728582fa66100621e9ea03e251f9f1 | [
"MIT"
] | 103 | 2016-11-14T15:58:53.000Z | 2022-03-07T21:01:03.000Z | bmds_server/common/git.py | shapiromatron/bmds-server | 0b2b79b521728582fa66100621e9ea03e251f9f1 | [
"MIT"
] | 2 | 2017-03-17T20:43:22.000Z | 2018-01-04T19:15:18.000Z | import subprocess
from datetime import datetime
from pydantic import BaseModel
class Commit(BaseModel):
sha: str
dt: datetime
@classmethod
def current(cls, cwd: str = ".") -> "Commit":
"""Return information on the last commit at the repository path desired.
Returns:
A Co... | 26.964286 | 80 | 0.589404 | 94 | 755 | 4.670213 | 0.542553 | 0.045558 | 0.095672 | 0.109339 | 0.209567 | 0.209567 | 0.209567 | 0.209567 | 0.209567 | 0 | 0 | 0.00361 | 0.266225 | 755 | 27 | 81 | 27.962963 | 0.788809 | 0.133775 | 0 | 0 | 0 | 0 | 0.154093 | 0.051364 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0.058824 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
237adf7f8278a7878ed312fe04aeaf9b6dfe495d | 3,196 | py | Python | hw1/run_bc.py | dylan-albertazzi/Berkely_DeepRL | 997d066df7b429f6ad365dca8105490dae8f978e | [
"MIT"
] | null | null | null | hw1/run_bc.py | dylan-albertazzi/Berkely_DeepRL | 997d066df7b429f6ad365dca8105490dae8f978e | [
"MIT"
] | 12 | 2020-01-28T23:12:10.000Z | 2022-02-10T01:15:22.000Z | hw1/run_bc.py | dylan-albertazzi/Berkely_DeepRL | 997d066df7b429f6ad365dca8105490dae8f978e | [
"MIT"
] | 1 | 2021-08-09T12:30:02.000Z | 2021-08-09T12:30:02.000Z | #!/usr/bin/env python
"""
Code to load an expert policy and generate roll-out data for behavioral cloning.
Example usage:
python run_expert.py experts/Humanoid-v1.pkl Humanoid-v1 --render \
--num_rollouts 20
python run_bc.py expert_data/Humanoid-v2.pkl Humanoid-v2 --num_rollouts 10
python run_b... | 30.438095 | 115 | 0.667084 | 431 | 3,196 | 4.777262 | 0.357309 | 0.042739 | 0.02914 | 0.036425 | 0.126275 | 0.102963 | 0.102963 | 0.102963 | 0.102963 | 0.102963 | 0 | 0.016559 | 0.225282 | 3,196 | 105 | 116 | 30.438095 | 0.815024 | 0.231539 | 0 | 0.029851 | 1 | 0 | 0.08255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074627 | false | 0 | 0.134328 | 0 | 0.268657 | 0.074627 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
237db5bd50bbef2a402f8efc8d0a0a9e06d8f9cc | 800 | py | Python | sampleProject/src/config.py | power80203/Kaggle_Practice | ac14a210711f427d5653bba3793cdc4709a84e1a | [
"MIT"
] | null | null | null | sampleProject/src/config.py | power80203/Kaggle_Practice | ac14a210711f427d5653bba3793cdc4709a84e1a | [
"MIT"
] | null | null | null | sampleProject/src/config.py | power80203/Kaggle_Practice | ac14a210711f427d5653bba3793cdc4709a84e1a | [
"MIT"
] | null | null | null | #########################################################
#讀取檔案
#########################################################
#csv file
import csv
import os
script_dir = os.path.dirname(__file__)
rel_path = "../data/raw/"
abs_file_path = os.path.join(script_dir, rel_path)
# 開啟 CSV 檔案
f = open("%stest.csv"%... | 19.047619 | 87 | 0.44875 | 89 | 800 | 3.808989 | 0.685393 | 0.053097 | 0.064897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033973 | 0.15375 | 800 | 42 | 88 | 19.047619 | 0.465288 | 0.0675 | 0 | 0 | 0 | 0 | 0.092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
237f03befb82f81e5e089c5bdf2196ceed48b93e | 849 | py | Python | xx-matplotlib/utils.py | johnehunt/PythonIntroLabsDS | d0d63730e9bacefa99225559be98fb933eed15c8 | [
"Apache-2.0"
] | 1 | 2021-05-16T10:24:19.000Z | 2021-05-16T10:24:19.000Z | xx-matplotlib/utils.py | johnehunt/PythonIntroLabsDS | d0d63730e9bacefa99225559be98fb933eed15c8 | [
"Apache-2.0"
] | null | null | null | xx-matplotlib/utils.py | johnehunt/PythonIntroLabsDS | d0d63730e9bacefa99225559be98fb933eed15c8 | [
"Apache-2.0"
] | null | null | null | def average(data):
if isinstance(data[0], int):
return sum(data) / len(data)
else:
raw_data = list(map(lambda r: r.value, data))
return sum(raw_data) / len(raw_data)
def minimum(data, index=0):
if index == 0:
data_slice = data
else:
data_slice = data[index:]
return min(data_slice)
def maximum(data, i... | 18.866667 | 60 | 0.687868 | 134 | 849 | 4.201493 | 0.261194 | 0.127886 | 0.092362 | 0.042629 | 0.209591 | 0.209591 | 0.209591 | 0.209591 | 0.209591 | 0.209591 | 0 | 0.027221 | 0.177856 | 849 | 45 | 61 | 18.866667 | 0.77937 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0 | 0.09375 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88c27b1bd0949d22f98acca4b2187e9fd06e0047 | 1,900 | py | Python | stim/csource.py | dasmithii/stim | 7428ba21e76a146718245cfa967951194b702832 | [
"MIT"
] | null | null | null | stim/csource.py | dasmithii/stim | 7428ba21e76a146718245cfa967951194b702832 | [
"MIT"
] | null | null | null | stim/csource.py | dasmithii/stim | 7428ba21e76a146718245cfa967951194b702832 | [
"MIT"
] | null | null | null | from stim import opcode
def INC(n):
return '*ptr+=' + str(n) + ';'
def DEC(n):
return '*ptr-=' + str(n) + ';'
def RIGHT(n):
return 'ptr+=' + str(n) + ';bf_check_expand();'
def LEFT(n):
return 'ptr-=' + str(n) + ';'
def OPEN():
return 'while(*ptr){'
def CLOSE():
return '}'
def READ(n=1):
... | 20.879121 | 66 | 0.527895 | 272 | 1,900 | 3.647059 | 0.275735 | 0.024194 | 0.072581 | 0.091734 | 0.207661 | 0.193548 | 0.044355 | 0.044355 | 0.044355 | 0.044355 | 0 | 0.019231 | 0.288421 | 1,900 | 90 | 67 | 21.111111 | 0.714497 | 0 | 0 | 0 | 0 | 0 | 0.429626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.013889 | 0.152778 | 0.486111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
88c97a6df9c6965cc706508f586f0dd15e361ab6 | 2,355 | py | Python | myfunc/yield_send.py | MindaugasVaitkus2/core-python | b593eb73744b65e44f6116442a327ff425ad485d | [
"Apache-2.0"
] | 1 | 2019-07-25T09:09:54.000Z | 2019-07-25T09:09:54.000Z | myfunc/yield_send.py | MindaugasVaitkus2/core-python | b593eb73744b65e44f6116442a327ff425ad485d | [
"Apache-2.0"
] | null | null | null | myfunc/yield_send.py | MindaugasVaitkus2/core-python | b593eb73744b65e44f6116442a327ff425ad485d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
Topic: 使用yield和send的典型场景
Desc :
get_primes的后几行需要着重解释。yield关键字返回number的值,而像 other = yield foo 这样的语句的意思是,
"返回foo的值,这个值返回给调用者的同时,将other的值也设置为那个值"。
你可以通过send方法来将一个值”发送“给生成器,这时候就是将other值设置为发送的值了。
def get_primes(number):
while True:
if is_prime(number):
... | 26.761364 | 80 | 0.635669 | 263 | 2,355 | 5.555133 | 0.463878 | 0.021903 | 0.035592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014254 | 0.225478 | 2,355 | 87 | 81 | 27.068966 | 0.786732 | 0.112527 | 0 | 0.114286 | 0 | 0 | 0.170886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028571 | null | null | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88d17143ab476e31e2301d0b8ab5493e57765e25 | 479 | py | Python | Implementierung/ResearchEnvironment/AuthorizationManagement/migrations/0004_auto_20180125_1659.py | Sashks/PSE | ae2d8133a85563c33583f15b9ba76a3a2bf0c762 | [
"MIT"
] | null | null | null | Implementierung/ResearchEnvironment/AuthorizationManagement/migrations/0004_auto_20180125_1659.py | Sashks/PSE | ae2d8133a85563c33583f15b9ba76a3a2bf0c762 | [
"MIT"
] | null | null | null | Implementierung/ResearchEnvironment/AuthorizationManagement/migrations/0004_auto_20180125_1659.py | Sashks/PSE | ae2d8133a85563c33583f15b9ba76a3a2bf0c762 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.1 on 2018-01-25 15:59
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('AuthorizationManagement', '0003_auto_20180125_1450'),
]
operations = [
migrations.AlterField(
m... | 23.95 | 92 | 0.653445 | 52 | 479 | 5.884615 | 0.769231 | 0.065359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085399 | 0.242171 | 479 | 19 | 93 | 25.210526 | 0.757576 | 0.093946 | 0 | 0 | 1 | 0 | 0.150463 | 0.106481 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88d9b14929b9b84bd449b3f15463b2b69b617d26 | 12,140 | py | Python | bgmol/systems/fastfolders.py | meyerml/bgmol | 1e8afb3ded40d94effcb035c3144db9974bd0a58 | [
"MIT"
] | 4 | 2021-06-29T23:06:05.000Z | 2021-09-11T19:48:10.000Z | bgmol/systems/fastfolders.py | meyerml/bgmol | 1e8afb3ded40d94effcb035c3144db9974bd0a58 | [
"MIT"
] | 5 | 2021-11-12T18:45:50.000Z | 2022-01-26T13:27:58.000Z | bgmol/systems/fastfolders.py | meyerml/bgmol | 1e8afb3ded40d94effcb035c3144db9974bd0a58 | [
"MIT"
] | 3 | 2021-09-10T10:34:19.000Z | 2022-02-04T08:23:46.000Z |
import os
import tempfile
from bgmol.util.importing import import_openmm
_, unit, app = import_openmm()
from bgmol.systems import OpenMMSystem
from torchvision.datasets.utils import download_url
from ..util.pdbpatch import fixed_atom_names
__all__ = ["FAST_FOLDER_NAMES", "FastFolder"]
class FastFolder(OpenMMSystem... | 43.669065 | 101 | 0.744646 | 1,208 | 12,140 | 7.341887 | 0.31043 | 0.014883 | 0.017138 | 0.004736 | 0.046905 | 0.017815 | 0.009697 | 0.009697 | 0 | 0 | 0 | 0.166834 | 0.181384 | 12,140 | 277 | 102 | 43.826715 | 0.725498 | 0.156672 | 0 | 0.019608 | 0 | 0.004902 | 0.543612 | 0.454898 | 0 | 0 | 0 | 0 | 0.004902 | 1 | 0.019608 | false | 0 | 0.034314 | 0 | 0.068627 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88dc0226f0b1bdea4eecc8145faeae088992ff11 | 613 | py | Python | backend/clubs/migrations/0033_auto_20200822_0855.py | pennlabs/penn-clubs | 6165e56ee5745295adc14fe114c4973173c2cb43 | [
"MIT"
] | 23 | 2020-01-15T20:11:06.000Z | 2022-01-01T12:47:50.000Z | backend/clubs/migrations/0033_auto_20200822_0855.py | pennlabs/penn-clubs | 6165e56ee5745295adc14fe114c4973173c2cb43 | [
"MIT"
] | 397 | 2020-01-17T03:42:30.000Z | 2022-03-07T23:37:16.000Z | backend/clubs/migrations/0033_auto_20200822_0855.py | pennlabs/penn-clubs | 6165e56ee5745295adc14fe114c4973173c2cb43 | [
"MIT"
] | 7 | 2020-01-29T05:11:38.000Z | 2022-01-03T19:41:59.000Z | # Generated by Django 3.1 on 2020-08-22 12:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("clubs", "0032_auto_20200821_1340"),
]
operations = [
migrations.AlterModelOptions(
name="report",
options={
... | 23.576923 | 78 | 0.538336 | 53 | 613 | 6.132075 | 0.773585 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073892 | 0.337684 | 613 | 25 | 79 | 24.52 | 0.726601 | 0.070147 | 0 | 0.105263 | 1 | 0 | 0.184859 | 0.040493 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88dca28b3e8f28e66456d1ec5eef3c8358ced647 | 947 | py | Python | model/utils/plot.py | QuantumNovice/civil-engineering-toolbox | b759df2ed32614fa237ed7e4fccaf79f78c3eee4 | [
"BSD-3-Clause"
] | 32 | 2015-11-12T08:36:26.000Z | 2021-12-28T19:48:04.000Z | model/utils/plot.py | QuantumNovice/civil-engineering-toolbox | b759df2ed32614fa237ed7e4fccaf79f78c3eee4 | [
"BSD-3-Clause"
] | 2 | 2020-09-17T05:47:07.000Z | 2021-09-05T10:50:24.000Z | model/utils/plot.py | QuantumNovice/civil-engineering-toolbox | b759df2ed32614fa237ed7e4fccaf79f78c3eee4 | [
"BSD-3-Clause"
] | 12 | 2016-04-27T06:51:48.000Z | 2021-09-05T10:30:04.000Z | import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
import numpy as np
from io import BytesIO
import base64
class Plot:
""" Generate image plot
"""
def __init__(self):
pass
def pcolor(self, x, y, z):
img = BytesIO()
plt.pcolor(x, y, z)
... | 26.305556 | 66 | 0.550158 | 123 | 947 | 4.178862 | 0.414634 | 0.015564 | 0.023346 | 0.07393 | 0.194553 | 0.108949 | 0 | 0 | 0 | 0 | 0 | 0.029503 | 0.319958 | 947 | 35 | 67 | 27.057143 | 0.768634 | 0.051742 | 0 | 0.214286 | 1 | 0 | 0.031542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.035714 | 0.178571 | 0 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88dcfe5d7e4ddeb2fb6cd786a03331abb4a60a48 | 724 | py | Python | cmsc_210/examples/lecture_19/cheeseshop/cheeseshop/cheeses.py | mazelife/cmsc-210 | dbaa1604ef49bcfe5a70e09c17fbd243a8b80220 | [
"MIT"
] | null | null | null | cmsc_210/examples/lecture_19/cheeseshop/cheeseshop/cheeses.py | mazelife/cmsc-210 | dbaa1604ef49bcfe5a70e09c17fbd243a8b80220 | [
"MIT"
] | 5 | 2022-01-16T23:30:12.000Z | 2022-01-30T23:03:21.000Z | cmsc_210/examples/lecture_19/cheeseshop/cheeseshop/cheeses.py | mazelife/cmsc-210 | dbaa1604ef49bcfe5a70e09c17fbd243a8b80220 | [
"MIT"
] | null | null | null | CHEESES = {
"brie": (
"Brie",
"France",
"Brie is a soft cow's-milk cheese named after Brie, the French region from which it originated.",
),
"valdeon": (
"Valdeón",
"Spain",
" A Spanish blue cheese from León. It is wrapped in sycamore leaves before being sent ... | 31.478261 | 120 | 0.577348 | 93 | 724 | 4.494624 | 0.688172 | 0.028708 | 0.057416 | 0.066986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003992 | 0.308011 | 724 | 22 | 121 | 32.909091 | 0.830339 | 0 | 0 | 0.272727 | 0 | 0.136364 | 0.687845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88dd387cb1cef23e942be5fd1b3cf33e648ff456 | 2,693 | py | Python | urwid_stackedwidget.py | suminb/urwid-stackedwidget | 29f632cb0880c6b7917e784a75b290d384b9692d | [
"MIT"
] | 2 | 2017-01-15T13:49:44.000Z | 2020-02-19T21:27:05.000Z | urwid_stackedwidget.py | suminb/urwid-stackedwidget | 29f632cb0880c6b7917e784a75b290d384b9692d | [
"MIT"
] | null | null | null | urwid_stackedwidget.py | suminb/urwid-stackedwidget | 29f632cb0880c6b7917e784a75b290d384b9692d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import urwid
__author__ = 'Sumin Byeon'
__version__ = '0.1.3'
__all__ = ['StackedWidget']
class StackedWidget(urwid.Widget):
"""A widget container that presents one child widget at a time."""
#: A list containing all widgets
widgets = []
#: An index of the current widget
... | 27.762887 | 79 | 0.602302 | 345 | 2,693 | 4.57971 | 0.298551 | 0.090506 | 0.064557 | 0.041772 | 0.19557 | 0.19557 | 0.162658 | 0.162658 | 0.162658 | 0.162658 | 0 | 0.006853 | 0.295581 | 2,693 | 96 | 80 | 28.052083 | 0.826041 | 0.251393 | 0 | 0.192982 | 0 | 0 | 0.014941 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.22807 | false | 0 | 0.017544 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88dd8dc44dd5f3572645a26860534dc32e413873 | 1,216 | py | Python | cosmosis/output/in_memory_output.py | annis/cosmosis | 55efc1bc2260ca39298c584ae809fa2a8e72a38e | [
"BSD-2-Clause"
] | 2 | 2021-06-18T14:11:59.000Z | 2022-02-23T19:19:36.000Z | cosmosis/output/in_memory_output.py | annis/cosmosis | 55efc1bc2260ca39298c584ae809fa2a8e72a38e | [
"BSD-2-Clause"
] | 2 | 2021-11-02T12:44:24.000Z | 2022-03-30T15:09:48.000Z | cosmosis/output/in_memory_output.py | annis/cosmosis | 55efc1bc2260ca39298c584ae809fa2a8e72a38e | [
"BSD-2-Clause"
] | 2 | 2022-03-25T21:26:27.000Z | 2022-03-29T06:37:46.000Z | from .output_base import OutputBase
import numpy as np
class InMemoryOutput(OutputBase):
_aliases = ["memory"]
def __init__(self):
super(InMemoryOutput,self).__init__()
self.rows = []
self.meta = {}
self.final_meta = {}
self.comments = []
def _write_parameters(self,... | 29.658537 | 75 | 0.636513 | 152 | 1,216 | 4.848684 | 0.381579 | 0.043419 | 0.081411 | 0.05156 | 0.122117 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001107 | 0.257401 | 1,216 | 40 | 76 | 30.4 | 0.815061 | 0 | 0 | 0.0625 | 0 | 0 | 0.060855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.46875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88e01aec257476d040dd818ba0bd933dd3203c41 | 932 | py | Python | src/byro/common/migrations/0014_auto_20190226_1117.py | uescher/byro | e43d646dc8e833591c82b2ea1711c70b9ce7e0b2 | [
"Apache-2.0"
] | null | null | null | src/byro/common/migrations/0014_auto_20190226_1117.py | uescher/byro | e43d646dc8e833591c82b2ea1711c70b9ce7e0b2 | [
"Apache-2.0"
] | null | null | null | src/byro/common/migrations/0014_auto_20190226_1117.py | uescher/byro | e43d646dc8e833591c82b2ea1711c70b9ce7e0b2 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.7 on 2019-02-26 11:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('common', '0013_logentry_logchain'),
]
operations = [
migrations.AddField(
model_name='configuration',
name='can_see_... | 38.833333 | 265 | 0.646996 | 119 | 932 | 4.94958 | 0.630252 | 0.035654 | 0.078098 | 0.091681 | 0.149406 | 0.149406 | 0 | 0 | 0 | 0 | 0 | 0.03338 | 0.228541 | 932 | 23 | 266 | 40.521739 | 0.785814 | 0.048283 | 0 | 0.352941 | 1 | 0.058824 | 0.370621 | 0.048588 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88f1fdadb11c161527f58db4b8fdc56587b43478 | 2,011 | py | Python | serverTemplate.py | shu-xiao/alicptfts | 08108a0071e9ea9ac8372a321289de25ba411dac | [
"BSD-2-Clause"
] | null | null | null | serverTemplate.py | shu-xiao/alicptfts | 08108a0071e9ea9ac8372a321289de25ba411dac | [
"BSD-2-Clause"
] | 2 | 2021-08-23T09:42:40.000Z | 2021-09-08T10:01:02.000Z | serverTemplate.py | shu-xiao/alicptfts | 08108a0071e9ea9ac8372a321289de25ba411dac | [
"BSD-2-Clause"
] | 5 | 2021-05-03T06:16:58.000Z | 2021-08-11T20:25:50.000Z | #!/bin/python
## need to install alicptfts first
import alicptfts, os, click
import tqdm
## the available High level commands are written in shell and serverShell
from HLshell.mycmd_1 import serverShell, shell
'''
cmd can be a list: ['cmd', par1, par2...]
or a string: 'cmd par1 par2...'
packet byte should be string
... | 28.728571 | 102 | 0.693685 | 283 | 2,011 | 4.865724 | 0.462898 | 0.025418 | 0.034858 | 0.045752 | 0.094408 | 0.094408 | 0 | 0 | 0 | 0 | 0 | 0.010186 | 0.170065 | 2,011 | 70 | 103 | 28.728571 | 0.814859 | 0.243163 | 0 | 0.105263 | 0 | 0 | 0.088745 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 1 | 0.184211 | false | 0.105263 | 0.078947 | 0.052632 | 0.368421 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
88f1fe9b11b63cec1989aac27dd795cfa5c003ea | 1,672 | py | Python | accounts/migrations/0002_profile_address_profile_birthday_profile_city_and_more.py | sisekelohub/sisekelo | 7e1b0de6abf07e65ed746d0d929c3de37fb421c3 | [
"MIT"
] | 1 | 2022-02-20T16:03:04.000Z | 2022-02-20T16:03:04.000Z | accounts/migrations/0002_profile_address_profile_birthday_profile_city_and_more.py | sisekelohub/sisekelo | 7e1b0de6abf07e65ed746d0d929c3de37fb421c3 | [
"MIT"
] | null | null | null | accounts/migrations/0002_profile_address_profile_birthday_profile_city_and_more.py | sisekelohub/sisekelo | 7e1b0de6abf07e65ed746d0d929c3de37fb421c3 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2022-01-08 14:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
('accounts', '0001_initial'),
]
operations = [
migra... | 32.784314 | 170 | 0.577153 | 167 | 1,672 | 5.658683 | 0.371257 | 0.093122 | 0.118519 | 0.148148 | 0.467725 | 0.467725 | 0.427513 | 0.34709 | 0.122751 | 0.122751 | 0 | 0.026116 | 0.290072 | 1,672 | 50 | 171 | 33.44 | 0.770008 | 0.025718 | 0 | 0.5 | 1 | 0 | 0.136447 | 0.022741 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.113636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0003c75d18a9581ef2ddc0c6e63528aedda68e45 | 2,177 | py | Python | djtools/blog/migrations/0001_initial.py | semicolom/django-tools-blog | 9dc29b7a91403df12eb00c983742a02ca5c005e9 | [
"MIT"
] | null | null | null | djtools/blog/migrations/0001_initial.py | semicolom/django-tools-blog | 9dc29b7a91403df12eb00c983742a02ca5c005e9 | [
"MIT"
] | null | null | null | djtools/blog/migrations/0001_initial.py | semicolom/django-tools-blog | 9dc29b7a91403df12eb00c983742a02ca5c005e9 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2019-01-11 10:08
from django.db import migrations, models
import django.db.models.deletion
import djtools.blog.utils
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
... | 41.075472 | 171 | 0.573725 | 217 | 2,177 | 5.631336 | 0.414747 | 0.036007 | 0.075286 | 0.085106 | 0.361702 | 0.328969 | 0.328969 | 0.328969 | 0.255319 | 0.255319 | 0 | 0.017995 | 0.285255 | 2,177 | 52 | 172 | 41.865385 | 0.767352 | 0.020671 | 0 | 0.377778 | 1 | 0 | 0.125822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.155556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
000a35b72f2dc413cc4b1499a58e8803b1d2da63 | 339 | py | Python | corehq/apps/toggle_ui/admin.py | omari-funzone/commcare-hq | 5edb462c891fc08e51c4babd7acdf12c0006a602 | [
"BSD-3-Clause"
] | 471 | 2015-01-10T02:55:01.000Z | 2022-03-29T18:07:18.000Z | corehq/apps/toggle_ui/admin.py | omari-funzone/commcare-hq | 5edb462c891fc08e51c4babd7acdf12c0006a602 | [
"BSD-3-Clause"
] | 14,354 | 2015-01-01T07:38:23.000Z | 2022-03-31T20:55:14.000Z | corehq/apps/toggle_ui/admin.py | omari-funzone/commcare-hq | 5edb462c891fc08e51c4babd7acdf12c0006a602 | [
"BSD-3-Clause"
] | 175 | 2015-01-06T07:16:47.000Z | 2022-03-29T13:27:01.000Z | from django.contrib import admin
from corehq.apps.toggle_ui.models import ToggleAudit
@admin.register(ToggleAudit)
class ToggleAdmin(admin.ModelAdmin):
date_hierarchy = 'created'
list_display = ('username', 'slug', 'action', 'namespace', 'item', 'randomness')
list_filter = ('slug', 'namespace')
order... | 28.25 | 84 | 0.713864 | 37 | 339 | 6.432432 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141593 | 339 | 11 | 85 | 30.818182 | 0.817869 | 0 | 0 | 0 | 0 | 0 | 0.20059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0015872732cb446eb7785a370d6193a8c1669a46 | 1,982 | py | Python | compatibility_lib/compatibility_lib/configs.py | elharo/cloud-opensource-python | 14c05855d23fd13cccda8191c4c4aa1e56c16b1e | [
"Apache-2.0"
] | null | null | null | compatibility_lib/compatibility_lib/configs.py | elharo/cloud-opensource-python | 14c05855d23fd13cccda8191c4c4aa1e56c16b1e | [
"Apache-2.0"
] | null | null | null | compatibility_lib/compatibility_lib/configs.py | elharo/cloud-opensource-python | 14c05855d23fd13cccda8191c4c4aa1e56c16b1e | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Google 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 agreed to in writing, s... | 27.527778 | 76 | 0.682644 | 237 | 1,982 | 5.675105 | 0.565401 | 0.196283 | 0.019331 | 0.023792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006807 | 0.184662 | 1,982 | 71 | 77 | 27.915493 | 0.825495 | 0.370333 | 0 | 0 | 0 | 0 | 0.62215 | 0.352606 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0018711945eee6e1a66137f58305b3b2a045d831 | 6,777 | py | Python | houdini_stats/admin.py | sideeffects/stats_houdini | ca4968f8a070decc67630bfbe3dba9142c9938eb | [
"MIT"
] | 2 | 2019-04-24T20:55:44.000Z | 2021-04-19T02:35:11.000Z | houdini_stats/admin.py | sideeffects/stats_houdini | ca4968f8a070decc67630bfbe3dba9142c9938eb | [
"MIT"
] | null | null | null | houdini_stats/admin.py | sideeffects/stats_houdini | ca4968f8a070decc67630bfbe3dba9142c9938eb | [
"MIT"
] | null | null | null |
from django.contrib import admin
from django.contrib.auth.models import User
from django.contrib.auth.admin import UserAdmin
from houdini_stats.models import *
from stats_main.models import *
#-------------------------------------------------------------------------------
def admin_site_register(managed_class):
... | 34.576531 | 90 | 0.565885 | 583 | 6,777 | 6.265866 | 0.2247 | 0.084314 | 0.060498 | 0.039146 | 0.51793 | 0.47112 | 0.395018 | 0.307966 | 0.281139 | 0.198467 | 0 | 0.004028 | 0.194039 | 6,777 | 195 | 91 | 34.753846 | 0.664775 | 0.30692 | 0 | 0.315789 | 0 | 0 | 0.139167 | 0.019149 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031579 | false | 0 | 0.052632 | 0 | 0.726316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
00242cf3366a77cbdc44315a53592d6924dda179 | 642 | py | Python | app/main/schema/http_status_schema.py | abhishek9sharma/nyctaxiserver | 930d12c2ff7ae331bdaba23054cf583eb6dbe819 | [
"MIT"
] | null | null | null | app/main/schema/http_status_schema.py | abhishek9sharma/nyctaxiserver | 930d12c2ff7ae331bdaba23054cf583eb6dbe819 | [
"MIT"
] | 2 | 2019-06-09T02:56:43.000Z | 2020-02-19T14:59:28.000Z | app/main/schema/http_status_schema.py | abhishek9sharma/nyctaxiserver | 930d12c2ff7ae331bdaba23054cf583eb6dbe819 | [
"MIT"
] | 1 | 2021-02-07T11:58:22.000Z | 2021-02-07T11:58:22.000Z | from flask_restplus import Namespace, fields
class HTTPStatus:
""" Schema for showing messages related to various HTTP Statuses """
ns = Namespace('httpstatus', 'Schema for displaying http status')
statusschema = ns.model('httpstatus', {
'message': fields.... | 53.5 | 140 | 0.490654 | 50 | 642 | 6.28 | 0.66 | 0.101911 | 0.121019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.434579 | 642 | 11 | 141 | 58.363636 | 0.865014 | 0.093458 | 0 | 0 | 0 | 0 | 0.207317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
00262622017d9112a53255e4972c5fd223e4e9f5 | 19,528 | py | Python | spikingexamples.py | anglyan/spikingtorch | b2b03ee548cf32c3761e7e404e55a7939466788d | [
"BSD-3-Clause"
] | 4 | 2020-06-04T18:25:21.000Z | 2021-04-27T04:05:52.000Z | spikingexamples.py | anglyan/spikingtorch | b2b03ee548cf32c3761e7e404e55a7939466788d | [
"BSD-3-Clause"
] | null | null | null | spikingexamples.py | anglyan/spikingtorch | b2b03ee548cf32c3761e7e404e55a7939466788d | [
"BSD-3-Clause"
] | null | null | null | # This file implements spiking neural networks as described
# in the work:
# A. Yanguas-Gil, Coarse scale representation of spiking neural networks:
# backpropagation through spikes and applications to neuromorphic hardware,
# International Conference on Neuromorphic Systems (ICONS), 2020
import argparse
... | 41.905579 | 110 | 0.559556 | 2,624 | 19,528 | 4.087271 | 0.109756 | 0.048485 | 0.045128 | 0.065641 | 0.736876 | 0.698835 | 0.682797 | 0.635897 | 0.625268 | 0.601678 | 0 | 0.052348 | 0.295678 | 19,528 | 465 | 111 | 41.995699 | 0.727425 | 0.029445 | 0 | 0.623116 | 0 | 0 | 0.049418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047739 | false | 0 | 0.022613 | 0 | 0.110553 | 0.01005 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
002837526dce5a93220bdad122c8e35e4bbc9ed8 | 1,762 | py | Python | invenio_stats/errors.py | zzacharo/invenio-stats | 9e70a012378b5379436a3c4bbbfaaef51f15ab40 | [
"MIT"
] | 8 | 2017-05-30T14:52:28.000Z | 2021-11-09T10:47:34.000Z | invenio_stats/errors.py | zzacharo/invenio-stats | 9e70a012378b5379436a3c4bbbfaaef51f15ab40 | [
"MIT"
] | 46 | 2017-07-17T15:39:26.000Z | 2021-02-26T12:28:07.000Z | invenio_stats/errors.py | zzacharo/invenio-stats | 9e70a012378b5379436a3c4bbbfaaef51f15ab40 | [
"MIT"
] | 18 | 2017-03-31T09:33:27.000Z | 2020-12-04T14:50:11.000Z | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2017-2018 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Errors used in Invenio-Stats."""
from __future__ import absolute_import, print_fu... | 23.493333 | 72 | 0.699205 | 198 | 1,762 | 6.080808 | 0.429293 | 0.07309 | 0.087209 | 0.099668 | 0.260797 | 0.260797 | 0.177741 | 0.177741 | 0.177741 | 0 | 0 | 0.010549 | 0.192963 | 1,762 | 74 | 73 | 23.810811 | 0.836146 | 0.443246 | 0 | 0.105263 | 0 | 0 | 0.021421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.736842 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
00294bf03c8673599692766f922c1bb1e2172a36 | 453 | py | Python | clase 8/semana9_2/app/hola.py | amedina14/uip-iq17-pc3 | 89f04c0670079384cee40736d5c92175a8c586a5 | [
"MIT"
] | null | null | null | clase 8/semana9_2/app/hola.py | amedina14/uip-iq17-pc3 | 89f04c0670079384cee40736d5c92175a8c586a5 | [
"MIT"
] | null | null | null | clase 8/semana9_2/app/hola.py | amedina14/uip-iq17-pc3 | 89f04c0670079384cee40736d5c92175a8c586a5 | [
"MIT"
] | null | null | null | """
Modulo inicial de persona
"""
class Persona(object):
"""
Esta es la clase Persona de un ciudadano del mundo
"""
def __init__(self, nombre, edad):
"""
Este es el constructor.
Crea una instacia de la :class:'Hola'
:param nombre:
:type nombre... | 18.12 | 55 | 0.518764 | 51 | 453 | 4.529412 | 0.647059 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.377483 | 453 | 25 | 56 | 18.12 | 0.819149 | 0 | 0 | 0 | 0 | 0 | 0.037634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
002c253fc78f11a13c63c913cb58ad32c043d8b2 | 374 | py | Python | Desafio34.py | rsmelocunha/Python-projects | 1740d1cbafb0aebfffeb0bfdb4ccccf0dbd14093 | [
"MIT"
] | null | null | null | Desafio34.py | rsmelocunha/Python-projects | 1740d1cbafb0aebfffeb0bfdb4ccccf0dbd14093 | [
"MIT"
] | null | null | null | Desafio34.py | rsmelocunha/Python-projects | 1740d1cbafb0aebfffeb0bfdb4ccccf0dbd14093 | [
"MIT"
] | null | null | null | nome = input('Digite o nome do funcionário: ')
sal = float(input('Digite o salário do funcionário: '))
if (sal > 1250):
aumento = sal * 1.1
print('O funcionário {} receberá o novo salário no valor de R$ {:.2f}'.format(nome, aumento))
else:
aumento = sal * 1.15
print('O funcionário {} receberá o novo... | 31.166667 | 97 | 0.649733 | 57 | 374 | 4.263158 | 0.421053 | 0.090535 | 0.098765 | 0.205761 | 0.54321 | 0.54321 | 0.54321 | 0.54321 | 0.54321 | 0.54321 | 0 | 0.036913 | 0.203209 | 374 | 12 | 98 | 31.166667 | 0.778523 | 0 | 0 | 0.25 | 0 | 0 | 0.498667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
002c9b0eb9790e7214d5b38325f25e73cfe71b82 | 2,136 | py | Python | dcn_scripts/dcn_scripting/deployEnterprise.py | smallfount/scriptsonly | cabdfc301da4e1653705d713b306f3fbf7f6934d | [
"Apache-2.0"
] | 32 | 2016-05-24T23:32:02.000Z | 2021-11-17T07:53:50.000Z | dcn_scripts/dcn_scripting/deployEnterprise.py | posai8701/scriptsonly | cabdfc301da4e1653705d713b306f3fbf7f6934d | [
"Apache-2.0"
] | 5 | 2016-09-25T15:55:02.000Z | 2018-09-06T10:54:45.000Z | dcn_scripts/dcn_scripting/deployEnterprise.py | posai8701/scriptsonly | cabdfc301da4e1653705d713b306f3fbf7f6934d | [
"Apache-2.0"
] | 34 | 2016-03-02T17:37:07.000Z | 2021-11-17T07:54:04.000Z | #!/usr/bin/env python
'''
Copyright 2016 wookieware.
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 la... | 28.864865 | 117 | 0.720974 | 303 | 2,136 | 4.943894 | 0.528053 | 0.040053 | 0.018024 | 0.021362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019529 | 0.184925 | 2,136 | 73 | 118 | 29.260274 | 0.840896 | 0.18633 | 0 | 0.08 | 0 | 0 | 0.14319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.04 | 0.2 | null | null | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
002d2737bcb2e938c81cab3644fe7476cde5343b | 1,345 | py | Python | maps/management/commands/create_map.py | bartromgens/waarnemingkaart | 3889d429a1c10586115b045a17be3e9c98931613 | [
"MIT"
] | null | null | null | maps/management/commands/create_map.py | bartromgens/waarnemingkaart | 3889d429a1c10586115b045a17be3e9c98931613 | [
"MIT"
] | 8 | 2020-01-01T16:11:19.000Z | 2021-12-13T19:42:07.000Z | maps/management/commands/create_map.py | bartromgens/waarnemingkaart | 3889d429a1c10586115b045a17be3e9c98931613 | [
"MIT"
] | 1 | 2020-11-15T23:06:43.000Z | 2020-11-15T23:06:43.000Z | import logging
import os
from django.core.management.base import BaseCommand
from django.utils.text import slugify
from observation.models import Observation
from observation.models import Species
from maps.plot import ContourPlotConfig
from maps.plot import create_map
from maps.settings import MAPS_DATA_DIR
logge... | 35.394737 | 110 | 0.735316 | 161 | 1,345 | 5.968944 | 0.397516 | 0.098855 | 0.043704 | 0.056191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159851 | 1,345 | 37 | 111 | 36.351351 | 0.850442 | 0.050558 | 0 | 0 | 0 | 0 | 0.035294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.346154 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0045b905d93fc6b9f3ecf956048674800fb0d6e0 | 2,118 | py | Python | utils/plot_detections_all.py | EdrianI/openeew-seismology | 163b6447d125c88bd31fdad938893edb8910e790 | [
"Apache-2.0"
] | null | null | null | utils/plot_detections_all.py | EdrianI/openeew-seismology | 163b6447d125c88bd31fdad938893edb8910e790 | [
"Apache-2.0"
] | null | null | null | utils/plot_detections_all.py | EdrianI/openeew-seismology | 163b6447d125c88bd31fdad938893edb8910e790 | [
"Apache-2.0"
] | null | null | null | """
"""
import mysql.connector
import json
import glob
import numpy as np
import matplotlib.pyplot as plt
from datetime import datetime
__author__ = "Vaclav Kuna"
__copyright__ = ""
__license__ = ""
__version__ = "1.0"
__maintainer__ = "Vaclav Kuna"
__email__ = "kuna.vaclav@gmail.com"
__status__ = ""
def plot_data... | 21.18 | 88 | 0.573654 | 289 | 2,118 | 4.055363 | 0.366782 | 0.025597 | 0.025597 | 0.03413 | 0.119454 | 0.119454 | 0.109215 | 0.109215 | 0.076792 | 0.076792 | 0 | 0.022358 | 0.303116 | 2,118 | 99 | 89 | 21.393939 | 0.77168 | 0.140227 | 0 | 0.113208 | 0 | 0 | 0.144134 | 0.011732 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0.056604 | 0.113208 | 0 | 0.132075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cc399ef76384ce4aeb66beee636335b65ea7a5ba | 7,335 | py | Python | goofycoin.py | Shriyanshagro/goofycoins | b5fbd5b7a9427fadf766733173d83949a25bffec | [
"MIT"
] | null | null | null | goofycoin.py | Shriyanshagro/goofycoins | b5fbd5b7a9427fadf766733173d83949a25bffec | [
"MIT"
] | null | null | null | goofycoin.py | Shriyanshagro/goofycoins | b5fbd5b7a9427fadf766733173d83949a25bffec | [
"MIT"
] | null | null | null | #implementation of goofycoins
from datetime import datetime
import hashlib
from random import randint
# privatekey of goofy
global goofykey
global initcoin
global inituser
initcoin = 100
inituser = 5
# A class to catch error and exceptions
class GoofycoinError(Exception):
def __init__(self, message):
s... | 29.34 | 79 | 0.584594 | 805 | 7,335 | 5.288199 | 0.21118 | 0.037585 | 0.015034 | 0.017853 | 0.318064 | 0.291285 | 0.248532 | 0.222222 | 0.222222 | 0.181348 | 0 | 0.009069 | 0.308521 | 7,335 | 249 | 80 | 29.457831 | 0.830244 | 0.102386 | 0 | 0.290909 | 0 | 0 | 0.088899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.024242 | 0.018182 | null | null | 0.078788 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc3e69a90796440b47834fc84e7cad08d0f10151 | 813 | py | Python | goto_cloud/migration_commander/mountpoint_mapping.py | jdepoix/goto_cloud | 59bb9923026e1b1dc6e8e08fb6b21300c8e8854a | [
"MIT"
] | 2 | 2018-02-04T23:22:17.000Z | 2019-04-15T12:06:04.000Z | goto_cloud/migration_commander/mountpoint_mapping.py | jdepoix/goto_cloud | 59bb9923026e1b1dc6e8e08fb6b21300c8e8854a | [
"MIT"
] | null | null | null | goto_cloud/migration_commander/mountpoint_mapping.py | jdepoix/goto_cloud | 59bb9923026e1b1dc6e8e08fb6b21300c8e8854a | [
"MIT"
] | null | null | null | import sys
class MountpointMapper(object):
@staticmethod
def map_mountpoint(parent_directory, mountpoint):
"""
maps a mountpoint onto a hashed directory name
:param parent_directory: the directory the mapped directory should reside in
:type parent_directory: str
... | 35.347826 | 111 | 0.608856 | 82 | 813 | 5.890244 | 0.439024 | 0.279503 | 0.15528 | 0.120083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003597 | 0.316113 | 813 | 22 | 112 | 36.954545 | 0.865108 | 0.334563 | 0 | 0 | 0 | 0 | 0.08026 | 0.075922 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc41347698f9ea1989c6c599312341a3b818595e | 1,397 | py | Python | setup.py | skylerberg/Flask-AntiCsrf | 4cf4e7c0085bcc4b2cf64821f64d2eac9fc2081a | [
"Apache-2.0"
] | null | null | null | setup.py | skylerberg/Flask-AntiCsrf | 4cf4e7c0085bcc4b2cf64821f64d2eac9fc2081a | [
"Apache-2.0"
] | null | null | null | setup.py | skylerberg/Flask-AntiCsrf | 4cf4e7c0085bcc4b2cf64821f64d2eac9fc2081a | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
... | 34.925 | 71 | 0.644953 | 157 | 1,397 | 5.66242 | 0.566879 | 0.149606 | 0.19685 | 0.116985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013799 | 0.221904 | 1,397 | 39 | 72 | 35.820513 | 0.804048 | 0.052971 | 0 | 0 | 0 | 0 | 0.528788 | 0.017424 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088235 | 0 | 0.088235 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc5a6ad62d4704b52ad7efc948d406e9164fcd84 | 5,304 | py | Python | analysis.py | openmg/mg-phm | e3bb05d6352f90ee40fdc4415ad8e1ed5857196f | [
"Apache-2.0"
] | null | null | null | analysis.py | openmg/mg-phm | e3bb05d6352f90ee40fdc4415ad8e1ed5857196f | [
"Apache-2.0"
] | null | null | null | analysis.py | openmg/mg-phm | e3bb05d6352f90ee40fdc4415ad8e1ed5857196f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import datainterface
import numpy as np
import matplotlib.pyplot as plt
def get_plant(imgcode, path=None):
"""
例如:LC81280332016208LGN00
"""
b4_img = datainterface.get_band(imgcode, 4, path).astype(np.float)
b5_img = datainterface.get_band(imgcode, 5, path).astype(n... | 31.2 | 93 | 0.570136 | 795 | 5,304 | 3.650314 | 0.220126 | 0.026533 | 0.034114 | 0.01723 | 0.156788 | 0.03377 | 0.023432 | 0.023432 | 0.023432 | 0.023432 | 0 | 0.091243 | 0.28092 | 5,304 | 169 | 94 | 31.384615 | 0.669638 | 0.060897 | 0 | 0.045802 | 0 | 0 | 0.035202 | 0.005059 | 0 | 0 | 0 | 0.005917 | 0 | 0 | null | null | 0.015267 | 0.022901 | null | null | 0.061069 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc61f833011fee0f2c7f9745febddbb4e3abe6ba | 899 | py | Python | 3Sum15.py | Bit64L/LeetCode-Python- | 64847cbb1adcaca4561b949e8acc52e8e031a6cb | [
"MIT"
] | null | null | null | 3Sum15.py | Bit64L/LeetCode-Python- | 64847cbb1adcaca4561b949e8acc52e8e031a6cb | [
"MIT"
] | null | null | null | 3Sum15.py | Bit64L/LeetCode-Python- | 64847cbb1adcaca4561b949e8acc52e8e031a6cb | [
"MIT"
] | null | null | null | class Solution(object):
def threeSum(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
nums.sort()
n = len(nums)
ans = []
for i in range(0, n-2):
if i > 0 and nums[i] == nums[i-1]:
continue
j,k ... | 28.09375 | 59 | 0.337041 | 114 | 899 | 2.657895 | 0.307018 | 0.033003 | 0.089109 | 0.052805 | 0.191419 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0.050926 | 0.519466 | 899 | 31 | 60 | 29 | 0.650463 | 0.050056 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0 | 0 | 0.12 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc678d6c001d95d5674437d690a11ea037577b60 | 3,267 | py | Python | metadata.py | mosaicrown/freya-fs | c9aaf80ae6b10b6f446f4e46950a8388dfe4c1d6 | [
"Apache-2.0"
] | null | null | null | metadata.py | mosaicrown/freya-fs | c9aaf80ae6b10b6f446f4e46950a8388dfe4c1d6 | [
"Apache-2.0"
] | null | null | null | metadata.py | mosaicrown/freya-fs | c9aaf80ae6b10b6f446f4e46950a8388dfe4c1d6 | [
"Apache-2.0"
] | null | null | null | import base64
import getpass
import json
import os
import sys
import nacl.pwhash
import nacl.secret
import nacl.utils
class Info:
def __init__(self, key=None, iv=None, size=None):
self.key = key if key is not None else nacl.utils.random(16)
self.iv = iv if iv is not None else nacl.utils.random(16... | 30.820755 | 85 | 0.562902 | 398 | 3,267 | 4.570352 | 0.286432 | 0.079164 | 0.04398 | 0.02144 | 0.100055 | 0.078065 | 0.078065 | 0.037383 | 0.037383 | 0 | 0 | 0.019865 | 0.322008 | 3,267 | 105 | 86 | 31.114286 | 0.801354 | 0.064891 | 0 | 0.053333 | 0 | 0.013333 | 0.070936 | 0.015107 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0.106667 | 0.026667 | 0.306667 | 0.026667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cc73bb73fbe92a86d4ae3ca627b6a89674863a74 | 3,568 | py | Python | confluence.py | vladimir-kozyrev/visualize_perf_metrics | c18d8e21e9d582d5e0ed9e3e063a1ea2e14afd8f | [
"MIT"
] | null | null | null | confluence.py | vladimir-kozyrev/visualize_perf_metrics | c18d8e21e9d582d5e0ed9e3e063a1ea2e14afd8f | [
"MIT"
] | 7 | 2020-07-04T15:26:17.000Z | 2020-07-12T06:54:58.000Z | confluence.py | vladimir-kozyrev/visualize_perf_metrics | c18d8e21e9d582d5e0ed9e3e063a1ea2e14afd8f | [
"MIT"
] | null | null | null | """
This script collects data about Confluence page create and edit activities
and writes them to PostgreSQL database.
"""
import os
import argparse
from getpass import getpass
from atlassian import Confluence
from sqlalchemy import create_engine, sql
def parse_args():
"""
Parses arguments and return them
... | 40.545455 | 136 | 0.680774 | 430 | 3,568 | 5.469767 | 0.34186 | 0.047619 | 0.028912 | 0.018707 | 0.056973 | 0.056973 | 0.056973 | 0.056973 | 0.056973 | 0.056973 | 0 | 0.002889 | 0.223935 | 3,568 | 87 | 137 | 41.011494 | 0.846515 | 0.140415 | 0 | 0.140625 | 0 | 0 | 0.269847 | 0.013342 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0.09375 | 0.078125 | 0 | 0.140625 | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cc769d9a03154d0dd0be8f95f2a656c5f3e4e721 | 607 | py | Python | apps/sushi/migrations/0027_queue_previous_reverse_name.py | remocrevo/celus | 682b13168eb475d7f970502113e756e40a899877 | [
"MIT"
] | null | null | null | apps/sushi/migrations/0027_queue_previous_reverse_name.py | remocrevo/celus | 682b13168eb475d7f970502113e756e40a899877 | [
"MIT"
] | null | null | null | apps/sushi/migrations/0027_queue_previous_reverse_name.py | remocrevo/celus | 682b13168eb475d7f970502113e756e40a899877 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.9 on 2020-02-06 08:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('sushi', '0026_customer_id_requestor_id_blank_fix'),
]
operations = [
migrations.AlterField(
mod... | 30.35 | 205 | 0.693575 | 72 | 607 | 5.638889 | 0.597222 | 0.059113 | 0.068966 | 0.108374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038855 | 0.194399 | 607 | 19 | 206 | 31.947368 | 0.791411 | 0.074135 | 0 | 0 | 1 | 0 | 0.228571 | 0.110714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc78e0f108328e12015b6170d70d392aa5e9ba4d | 2,360 | py | Python | trash/scripts/bag_of_words_model.py | Sharma-Hrishabh/TLR_Hack | f96d658af06322eee221054d39a29d515fe390e1 | [
"MIT"
] | null | null | null | trash/scripts/bag_of_words_model.py | Sharma-Hrishabh/TLR_Hack | f96d658af06322eee221054d39a29d515fe390e1 | [
"MIT"
] | null | null | null | trash/scripts/bag_of_words_model.py | Sharma-Hrishabh/TLR_Hack | f96d658af06322eee221054d39a29d515fe390e1 | [
"MIT"
] | null | null | null | # Imports
import sys
import pandas as pd
!pip install nltk
# Read in file
data = pd.read_csv('data.csv')
arg = str(sys.argv)
print(arg)
#Rename the columns
# data = data.rename(columns={'Category': 'category', 'Descript': 'message'})
# data = data['category']
# print(type(data))
"""
ML
"""
import re
import num... | 25.652174 | 156 | 0.698729 | 332 | 2,360 | 4.834337 | 0.427711 | 0.052336 | 0.028037 | 0.008723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011988 | 0.151695 | 2,360 | 91 | 157 | 25.934066 | 0.78971 | 0.203814 | 0 | 0 | 0 | 0 | 0.078791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.261905 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.