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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1bef83f901f56366867d00b6a7229edbdd6ec883 | 612 | py | Python | leetcode/0525_Contiguous_Array/result.py | theck17/notes | f32f0f4b8f821b1ed38d173ef0913efddd094b91 | [
"MIT"
] | null | null | null | leetcode/0525_Contiguous_Array/result.py | theck17/notes | f32f0f4b8f821b1ed38d173ef0913efddd094b91 | [
"MIT"
] | null | null | null | leetcode/0525_Contiguous_Array/result.py | theck17/notes | f32f0f4b8f821b1ed38d173ef0913efddd094b91 | [
"MIT"
] | null | null | null | # !/usr/bin/env python3
# Author: C.K
# Email: theck17@163.com
# DateTime:2021-11-16 21:11:11
# Description:
class Solution:
def findMaxLength(self, nums: List[int]) -> int:
count = 0
result = 0
dict_seen = {0: -1}
for i in range(len(nums)):
n = nums[i]
if n =... | 22.666667 | 58 | 0.47549 | 78 | 612 | 3.576923 | 0.564103 | 0.114695 | 0.057348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077135 | 0.406863 | 612 | 26 | 59 | 23.538462 | 0.69146 | 0.160131 | 0 | 0 | 0 | 0 | 0.015748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1bf403af7d6d2df6b55f89afab03d2b4562ef097 | 550 | py | Python | scripts/generate_map.py | Daffan/scavenger-hunt-absim | 55958a4fcbe2e77b4daa0c19f078c8f37992ab96 | [
"MIT"
] | null | null | null | scripts/generate_map.py | Daffan/scavenger-hunt-absim | 55958a4fcbe2e77b4daa0c19f078c8f37992ab96 | [
"MIT"
] | null | null | null | scripts/generate_map.py | Daffan/scavenger-hunt-absim | 55958a4fcbe2e77b4daa0c19f078c8f37992ab96 | [
"MIT"
] | null | null | null | import sys
import argparse
from os.path import join, abspath, dirname
sys.path.append(dirname(dirname(join(abspath(__file__)))))
from map import generate
NODES_RANGE = [8, 8]
COST_RANGE = [10, 500]
OBJECTS_RANGE = [4, 4]
OCCURRENCES_RANGE = [1, 4]
if __name__ == "__main__":
parser = argparse.ArgumentParser()
... | 28.947368 | 86 | 0.707273 | 76 | 550 | 4.828947 | 0.539474 | 0.059946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023965 | 0.165455 | 550 | 18 | 87 | 30.555556 | 0.775599 | 0 | 0 | 0 | 1 | 0 | 0.089091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bfb9c01ce0299eb756da53aae6f77c3683a5da9 | 7,073 | py | Python | specutils/conftest.py | keflavich/specutils | ec4fe50c6c032fc421c2cd0ee0dda11fd0f856cb | [
"BSD-3-Clause"
] | null | null | null | specutils/conftest.py | keflavich/specutils | ec4fe50c6c032fc421c2cd0ee0dda11fd0f856cb | [
"BSD-3-Clause"
] | null | null | null | specutils/conftest.py | keflavich/specutils | ec4fe50c6c032fc421c2cd0ee0dda11fd0f856cb | [
"BSD-3-Clause"
] | null | null | null | # This file is used to configure the behavior of pytest when using the Astropy
# test infrastructure. It needs to live inside the package in order for it to
# get picked up when running the tests inside an interpreter using
# packagename.test
from copy import copy
import numpy as np
import pytest
from astropy import ... | 32.59447 | 137 | 0.640747 | 991 | 7,073 | 4.345106 | 0.25227 | 0.022294 | 0.039015 | 0.035532 | 0.340455 | 0.28588 | 0.153507 | 0.129587 | 0.129587 | 0.112401 | 0 | 0.04127 | 0.287431 | 7,073 | 216 | 138 | 32.74537 | 0.813095 | 0.417645 | 0 | 0.166667 | 0 | 0 | 0.012603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.154762 | false | 0 | 0.119048 | 0.119048 | 0.416667 | 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 |
4004bf32d59b291c64c251ffb8ba5965082035a3 | 318 | py | Python | tests/example/views/example.py | jefftriplett/django-sockpuppet | eedc7f0d4b95646991d8db569e5fca61d56149e2 | [
"MIT"
] | null | null | null | tests/example/views/example.py | jefftriplett/django-sockpuppet | eedc7f0d4b95646991d8db569e5fca61d56149e2 | [
"MIT"
] | null | null | null | tests/example/views/example.py | jefftriplett/django-sockpuppet | eedc7f0d4b95646991d8db569e5fca61d56149e2 | [
"MIT"
] | null | null | null | from django.views.generic.base import TemplateView
class ExampleView(TemplateView):
template_name = 'example.html'
def get_context_data(self, *args, **kwargs):
context = super().get_context_data(*args, **kwargs)
context['count'] = self.request.session.get('count', 0)
return context
| 28.909091 | 63 | 0.688679 | 38 | 318 | 5.631579 | 0.684211 | 0.093458 | 0.130841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003846 | 0.18239 | 318 | 10 | 64 | 31.8 | 0.819231 | 0 | 0 | 0 | 0 | 0 | 0.069182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.714286 | 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 |
400a4f0aceb4f70c3afbeea942f3b7ed3b955c9f | 9,863 | py | Python | util/metar.py | pulsatrixwx/PulsatrixWx | aae6ac36e2460dcf7f4a592d709139cd0d6a2e91 | [
"MIT"
] | 3 | 2016-03-27T00:21:46.000Z | 2018-06-01T09:20:57.000Z | util/metar.py | pulsatrixwx/PulsatrixWx | aae6ac36e2460dcf7f4a592d709139cd0d6a2e91 | [
"MIT"
] | null | null | null | util/metar.py | pulsatrixwx/PulsatrixWx | aae6ac36e2460dcf7f4a592d709139cd0d6a2e91 | [
"MIT"
] | null | null | null | import re
class METAR:
"""
METAR
Purpose: Parses and keeps track of variables related to METAR observations
Started: 25 June 2010 by Tim Supinie (tsupinie@ou.edu)
Completed: 26 June 2010
Modified: [not yet]
"""
# Private static list giving the priority for reporting the sky co... | 49.315 | 185 | 0.578019 | 1,244 | 9,863 | 4.491961 | 0.276527 | 0.023622 | 0.024338 | 0.028633 | 0.180387 | 0.147101 | 0.130637 | 0.130637 | 0.100573 | 0.035791 | 0 | 0.019108 | 0.299605 | 9,863 | 199 | 186 | 49.562814 | 0.789809 | 0.311366 | 0 | 0.081633 | 0 | 0.020408 | 0.199483 | 0.048533 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010204 | 0.010204 | null | null | 0.112245 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
400ed573b5823ab879b2f01e83417df0c1eee108 | 3,976 | py | Python | Code/Base/py-iceutils/current/askap/iceutils/typedvaluepublisher.py | rtobar/askapsoft | 6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 1 | 2020-06-18T08:37:43.000Z | 2020-06-18T08:37:43.000Z | Code/Base/py-iceutils/current/askap/iceutils/typedvaluepublisher.py | ATNF/askapsoft | d839c052d5c62ad8a511e58cd4b6548491a6006f | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | Code/Base/py-iceutils/current/askap/iceutils/typedvaluepublisher.py | ATNF/askapsoft | d839c052d5c62ad8a511e58cd4b6548491a6006f | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | # Copyright (c) 2013 CSIRO
# Australia Telescope National Facility (ATNF)
# Commonwealth Scientific and Industrial Research Organisation (CSIRO)
# PO Box 76, Epping NSW 1710, Australia
# atnf-enquiries@csiro.au
#
# This file is part of the ASKAP software distribution.
#
# The ASKAP software distribution is free softwar... | 34.573913 | 77 | 0.641851 | 437 | 3,976 | 5.734554 | 0.448513 | 0.030726 | 0.015563 | 0.022745 | 0.104549 | 0.094174 | 0.071828 | 0.071828 | 0.048683 | 0.048683 | 0 | 0.020507 | 0.276408 | 3,976 | 114 | 78 | 34.877193 | 0.850539 | 0.252012 | 0 | 0.149254 | 0 | 0 | 0.070734 | 0.026946 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.089552 | 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 |
4013609993768a81281f8e6af77b8b09e2b85a6c | 4,889 | py | Python | axol_node/plugins/resources/resource_get_processor_usage.py | kelceydamage/axol | b5288577ee769bcd609c361cb0ac5e2a678289da | [
"Apache-2.0"
] | null | null | null | axol_node/plugins/resources/resource_get_processor_usage.py | kelceydamage/axol | b5288577ee769bcd609c361cb0ac5e2a678289da | [
"Apache-2.0"
] | null | null | null | axol_node/plugins/resources/resource_get_processor_usage.py | kelceydamage/axol | b5288577ee769bcd609c361cb0ac5e2a678289da | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
#-----------------------------------------#
# Copyright [2015] [Kelcey Jamison-Damage]
# 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.or... | 30.748428 | 92 | 0.70137 | 581 | 4,889 | 5.652324 | 0.328744 | 0.127893 | 0.036236 | 0.030451 | 0.204629 | 0.122412 | 0.056029 | 0.056029 | 0.056029 | 0.056029 | 0 | 0.005539 | 0.187564 | 4,889 | 158 | 93 | 30.943038 | 0.821249 | 0.143792 | 0 | 0.194915 | 0 | 0 | 0.079761 | 0.039881 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084746 | 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 |
4013a84bac2e9ff813a0b4a946bc97d31b3fc24c | 7,017 | py | Python | pages/process.py | hurshd0/project-pubg | c911cd7bf2ba49ee0053dba82370829a6905dea0 | [
"MIT"
] | 1 | 2019-08-20T02:24:15.000Z | 2019-08-20T02:24:15.000Z | pages/process.py | hurshd0/project-pubg | c911cd7bf2ba49ee0053dba82370829a6905dea0 | [
"MIT"
] | null | null | null | pages/process.py | hurshd0/project-pubg | c911cd7bf2ba49ee0053dba82370829a6905dea0 | [
"MIT"
] | 1 | 2019-09-10T17:25:21.000Z | 2019-09-10T17:25:21.000Z | import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
from app import app
column1 = dbc.Col(
[
dcc.Markdown(
"""
## The Process
<img src="assets/images/data-... | 48.061644 | 382 | 0.641442 | 927 | 7,017 | 4.846818 | 0.454153 | 0.013354 | 0.028934 | 0.024928 | 0.080792 | 0.065435 | 0.035388 | 0 | 0 | 0 | 0 | 0.013189 | 0.286875 | 7,017 | 145 | 383 | 48.393103 | 0.884692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
402116df764975f3ecb07d43703dae6fcb22b42a | 1,809 | py | Python | api/views_auth.py | dmitrytk/megapolis | 2375d184b233d5e4b053fcde48b40252ff3b6cc4 | [
"MIT"
] | null | null | null | api/views_auth.py | dmitrytk/megapolis | 2375d184b233d5e4b053fcde48b40252ff3b6cc4 | [
"MIT"
] | null | null | null | api/views_auth.py | dmitrytk/megapolis | 2375d184b233d5e4b053fcde48b40252ff3b6cc4 | [
"MIT"
] | null | null | null | import jwt
from django.conf import settings
from django.contrib.auth import user_logged_in
from django.http.response import JsonResponse
from rest_framework import status
from rest_framework.decorators import api_view, permission_classes
from rest_framework.permissions import AllowAny, IsAuthenticated
from rest_framewo... | 34.788462 | 75 | 0.683803 | 201 | 1,809 | 5.985075 | 0.39801 | 0.03325 | 0.070657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004357 | 0.238806 | 1,809 | 51 | 76 | 35.470588 | 0.869281 | 0.01382 | 0 | 0.047619 | 0 | 0 | 0.070747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.071429 | 0.261905 | 0 | 0.404762 | 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 |
40235340d5147d407e3f30aaa3115d13b0b4bc9f | 1,325 | py | Python | String/FileContentCounter.py | harshil2004/Data-Structures-and-Algorithms | 4bfde85021cf9ff8012e485fa3de603a8185b157 | [
"MIT"
] | 14 | 2020-09-30T15:53:42.000Z | 2020-10-29T09:43:33.000Z | String/FileContentCounter.py | harshil2004/Data-Structures-and-Algorithms | 4bfde85021cf9ff8012e485fa3de603a8185b157 | [
"MIT"
] | 79 | 2020-09-29T17:15:39.000Z | 2020-10-30T11:07:33.000Z | String/FileContentCounter.py | harshil2004/Data-Structures-and-Algorithms | 4bfde85021cf9ff8012e485fa3de603a8185b157 | [
"MIT"
] | 113 | 2020-09-29T14:21:26.000Z | 2020-10-31T09:10:21.000Z | """
Counts every Line, Whitespaces, Characters and Words written in a text within a file.
This solution relies on the use of Regular Expressions.
"""
from re import findall, split
from os import path
homePath = path.expanduser("~")
filePath = raw_input("Insert the path of your file to count. Example: /documents/sampl... | 30.813953 | 175 | 0.656604 | 156 | 1,325 | 5.570513 | 0.5 | 0.057537 | 0.055236 | 0.079402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000971 | 0.222642 | 1,325 | 42 | 176 | 31.547619 | 0.842718 | 0 | 0 | 0 | 0 | 0.034483 | 0.163265 | 0.022959 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068966 | null | null | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4023dc3cbd32973763c5db6705d67532c480beaa | 1,020 | py | Python | src/util.py | wisis/MCMC-QEC-toric-RL | 1fdfc45bb45507be1f6d42a8960f83780ea8fd1b | [
"MIT"
] | null | null | null | src/util.py | wisis/MCMC-QEC-toric-RL | 1fdfc45bb45507be1f6d42a8960f83780ea8fd1b | [
"MIT"
] | null | null | null | src/util.py | wisis/MCMC-QEC-toric-RL | 1fdfc45bb45507be1f6d42a8960f83780ea8fd1b | [
"MIT"
] | 2 | 2020-06-15T13:00:49.000Z | 2020-06-15T13:02:52.000Z | import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from torch import from_numpy
from collections import namedtuple
import pandas as pd
Action = namedtuple('Action', ['position', 'action'])
Perspective = namedtuple('Perspective', ['perspective', 'position... | 26.842105 | 80 | 0.643137 | 148 | 1,020 | 4.324324 | 0.331081 | 0.06875 | 0.05625 | 0.0625 | 0.125 | 0.125 | 0.121875 | 0.121875 | 0.065625 | 0 | 0 | 0.012077 | 0.188235 | 1,020 | 38 | 81 | 26.842105 | 0.76087 | 0 | 0 | 0 | 0 | 0 | 0.104799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
402465c0a55b78c29bd44daffbc08d23235f97da | 8,259 | py | Python | Betsy/Betsy/attic/check_orientation.py | jefftc/changlab | 11da8c415afefcba0b0216238387c75aeb3a56ac | [
"MIT"
] | 9 | 2017-01-13T02:38:41.000Z | 2021-04-08T00:44:39.000Z | Betsy/Betsy/attic/check_orientation.py | jefftc/changlab | 11da8c415afefcba0b0216238387c75aeb3a56ac | [
"MIT"
] | null | null | null | Betsy/Betsy/attic/check_orientation.py | jefftc/changlab | 11da8c415afefcba0b0216238387c75aeb3a56ac | [
"MIT"
] | 4 | 2017-01-05T16:25:25.000Z | 2019-12-12T20:07:38.000Z | from Module import AbstractModule
class Module(AbstractModule):
def __init__(self):
AbstractModule.__init__(self)
self.cache = {}
def run(
self, network, antecedents, out_attributes, user_options, num_cores,
out_path):
import os
fastq_node, group_node, ... | 34.701681 | 76 | 0.618598 | 1,065 | 8,259 | 4.573709 | 0.242254 | 0.017245 | 0.041059 | 0.028742 | 0.284952 | 0.250873 | 0.243071 | 0.128516 | 0.111271 | 0.099364 | 0 | 0.025021 | 0.288655 | 8,259 | 237 | 77 | 34.848101 | 0.804085 | 0.202809 | 0 | 0.157895 | 0 | 0 | 0.056381 | 0 | 0 | 0 | 0 | 0 | 0.046053 | 0 | null | null | 0 | 0.111842 | null | null | 0.013158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
40258278aa1a88e253de8087efca223b32a5c50e | 2,310 | py | Python | simple_rl/tasks/random/RandomMDPClass.py | dwhit/simple_rl | 32ba356680f2ea6c8913702fe2c7fee3ee511b3b | [
"Apache-2.0"
] | 10 | 2021-11-22T12:29:30.000Z | 2022-03-28T10:23:16.000Z | simple_rl/tasks/random/RandomMDPClass.py | samlobel/simple_rl_mbrl | ed868916d06dbf68f4af23bea83b0e852e88df6e | [
"Apache-2.0"
] | null | null | null | simple_rl/tasks/random/RandomMDPClass.py | samlobel/simple_rl_mbrl | ed868916d06dbf68f4af23bea83b0e852e88df6e | [
"Apache-2.0"
] | 2 | 2018-10-11T14:47:06.000Z | 2018-10-12T20:07:16.000Z | ''' RandomMDPClass.py: Contains the RandomMDPClass class. '''
# Python imports.
import random
import numpy as np
from collections import defaultdict
# Other imports.
from simple_rl.mdp.MDPClass import MDP
from simple_rl.tasks.random.RandomStateClass import RandomState
class RandomMDP(MDP):
''' Imeplementation fo... | 30 | 127 | 0.626407 | 280 | 2,310 | 4.910714 | 0.335714 | 0.050909 | 0.069818 | 0.034909 | 0.097455 | 0.097455 | 0.061091 | 0.061091 | 0.061091 | 0 | 0 | 0.007177 | 0.27619 | 2,310 | 77 | 128 | 30 | 0.815191 | 0.293074 | 0 | 0 | 0 | 0 | 0.012526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.16129 | 0.032258 | 0.548387 | 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 |
40273d1896a2577253fb9cd98dac31da6ba380c4 | 5,770 | py | Python | ota_utils/booking.py | S3Infosoft/s3-utils | 4177ed4b0852227c66f5f4de603d9686b0ae139e | [
"MIT"
] | null | null | null | ota_utils/booking.py | S3Infosoft/s3-utils | 4177ed4b0852227c66f5f4de603d9686b0ae139e | [
"MIT"
] | null | null | null | ota_utils/booking.py | S3Infosoft/s3-utils | 4177ed4b0852227c66f5f4de603d9686b0ae139e | [
"MIT"
] | 2 | 2019-08-23T08:06:14.000Z | 2021-10-16T05:52:19.000Z | #!/usr/bin/env python3
import mechanize
import requests_html
from bs4 import BeautifulSoup
from datetime import datetime
Data = {
'URL' : 'https://www.booking.com',
'Hotel' : 'Mango Valley Resort Ganpatipule',
'Search' : 'Ratnagiri',
'CheckIn': {
'Date' : '18',
'Month': '08',
'Ye... | 36.987179 | 113 | 0.567938 | 652 | 5,770 | 4.788344 | 0.259202 | 0.051249 | 0.032671 | 0.021781 | 0.204676 | 0.126842 | 0.057655 | 0.057655 | 0.057655 | 0 | 0 | 0.013899 | 0.276776 | 5,770 | 155 | 114 | 37.225806 | 0.734004 | 0.018198 | 0 | 0.077519 | 0 | 0 | 0.14374 | 0.012008 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031008 | null | null | 0.03876 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
40278d07f19d727a65fab215cca7362c015864bb | 602 | py | Python | prototype/graph/surflib.py | ooici/pyon | 122c629290d27f32f2f41dafd5c12469295e8acf | [
"BSD-2-Clause"
] | 2 | 2015-06-09T16:07:09.000Z | 2015-07-28T10:06:31.000Z | prototype/graph/surflib.py | ooici/pyon | 122c629290d27f32f2f41dafd5c12469295e8acf | [
"BSD-2-Clause"
] | 3 | 2020-07-22T15:14:55.000Z | 2021-12-13T19:35:06.000Z | prototype/graph/surflib.py | ooici/pyon | 122c629290d27f32f2f41dafd5c12469295e8acf | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
__author__ = 'Adam R. Smith'
from surf import Store, Session, ns
store = Store(reader='rdflib', writer='rdflib', rdflib_store = 'IOMemory')
session = Session(store)
print 'Load RDF data'
store.load_triples(source='http://www.w3.org/People/Berners-Lee/card.rdf')
Person = session.get_class(ns.... | 23.153846 | 74 | 0.744186 | 90 | 602 | 4.822222 | 0.588889 | 0.069124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001894 | 0.122924 | 602 | 26 | 75 | 23.153846 | 0.820076 | 0.069767 | 0 | 0 | 0 | 0 | 0.250447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4028e1d8bbe20258d043739f40c81e00458c0de7 | 6,770 | py | Python | tests/test_ast.py | npmccallum/whitfield | fdbc0c6444cb3b3b48351224525543171d0c60a4 | [
"Apache-2.0"
] | null | null | null | tests/test_ast.py | npmccallum/whitfield | fdbc0c6444cb3b3b48351224525543171d0c60a4 | [
"Apache-2.0"
] | null | null | null | tests/test_ast.py | npmccallum/whitfield | fdbc0c6444cb3b3b48351224525543171d0c60a4 | [
"Apache-2.0"
] | null | null | null | #
# Copyright: 2017 Red Hat, Inc.
# Author: Nathaniel McCallum <npmccallum@redhat.com>
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses ... | 28.808511 | 76 | 0.402068 | 956 | 6,770 | 2.828452 | 0.162134 | 0.08284 | 0.113166 | 0.147929 | 0.440459 | 0.402737 | 0.366494 | 0.334689 | 0.290311 | 0.173817 | 0 | 0.095108 | 0.245199 | 6,770 | 234 | 77 | 28.931624 | 0.434051 | 0.123043 | 0 | 0.072727 | 0 | 0.006061 | 0.237701 | 0.003719 | 0 | 0 | 0.015385 | 0 | 0.072727 | 1 | 0.072727 | false | 0 | 0.030303 | 0 | 0.10303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4029a77e5a42ce7cc96b993d3bf89038e516fc96 | 3,048 | py | Python | tests/coupled/prescribed/goland_linear/generate_goland_linear.py | LMNS3d/sharpy | af5964a2f8a7a1e133c0948cb2fdeb5cb5c46568 | [
"BSD-3-Clause"
] | null | null | null | tests/coupled/prescribed/goland_linear/generate_goland_linear.py | LMNS3d/sharpy | af5964a2f8a7a1e133c0948cb2fdeb5cb5c46568 | [
"BSD-3-Clause"
] | null | null | null | tests/coupled/prescribed/goland_linear/generate_goland_linear.py | LMNS3d/sharpy | af5964a2f8a7a1e133c0948cb2fdeb5cb5c46568 | [
"BSD-3-Clause"
] | 1 | 2021-01-27T17:57:40.000Z | 2021-01-27T17:57:40.000Z | import cases.templates.flying_wings as wings
import sharpy.sharpy_main
aero_type = 'lin'
ws = wings.Goland(M=4,
N=12,
Mstar_fact=10,
u_inf=50,
alpha=1.,
rho=1.225,
sweep=0,
physical_time=2,
... | 49.16129 | 146 | 0.367454 | 227 | 3,048 | 4.634361 | 0.449339 | 0.030418 | 0.062738 | 0.074144 | 0.190114 | 0.159696 | 0.053232 | 0.053232 | 0 | 0 | 0 | 0.023207 | 0.533465 | 3,048 | 61 | 147 | 49.967213 | 0.716596 | 0.064633 | 0 | 0 | 0 | 0 | 0.166667 | 0.008439 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.042553 | 0 | 0.042553 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
402e32165ef1f5df42735282ce8edb81a693f937 | 3,654 | py | Python | unmodified.py | sosajohn/ApplePhotoOrganizer | 6f1d52cf53441a4f0f9fbd3feeea59af9986e5dc | [
"MIT"
] | 1 | 2022-03-02T20:25:10.000Z | 2022-03-02T20:25:10.000Z | unmodified.py | sosajohn/ApplePhotoOrganizer | 6f1d52cf53441a4f0f9fbd3feeea59af9986e5dc | [
"MIT"
] | null | null | null | unmodified.py | sosajohn/ApplePhotoOrganizer | 6f1d52cf53441a4f0f9fbd3feeea59af9986e5dc | [
"MIT"
] | null | null | null | import xmltodict
import os
import shutil
from dateutil.parser import parse
from subprocess import call
SOURCE_ROOT = '/Volumes/Pictures/Elein - 2021 01 07/unmodified/'
DESTINATION_ROOT = '/Volumes/Pictures/Pictures/'
PHOTOGRAPHER = 'Elein'
def fixFilename(name):
name = name.replace(' ','\ ')
name = n... | 38.0625 | 118 | 0.577449 | 380 | 3,654 | 5.481579 | 0.25 | 0.047528 | 0.082093 | 0.077292 | 0.365338 | 0.300048 | 0.241959 | 0.197312 | 0.132021 | 0.076332 | 0 | 0.003009 | 0.272304 | 3,654 | 96 | 119 | 38.0625 | 0.780369 | 0.025178 | 0 | 0.067568 | 0 | 0 | 0.110112 | 0.019944 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067568 | null | null | 0.040541 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
40302c82c6cf33bbd75ef81c34e41fbe39b23579 | 692 | py | Python | Chapter20/02_xmlrpc_fetch_data/books_data2.py | PacktPublishing/-Odoo-13-Development-Cookbook-Fouth-Edition | fb75412e1ff13e1a1b3233f06de425c9df18aca7 | [
"MIT"
] | 125 | 2020-11-28T18:00:34.000Z | 2022-03-07T17:53:22.000Z | Chapter20/02_xmlrpc_fetch_data/books_data2.py | PacktPublishing/-Odoo-13-Development-Cookbook-Fouth-Edition | fb75412e1ff13e1a1b3233f06de425c9df18aca7 | [
"MIT"
] | 5 | 2021-02-02T10:03:29.000Z | 2022-03-16T07:32:28.000Z | Chapter20/02_xmlrpc_fetch_data/books_data2.py | PacktPublishing/-Odoo-13-Development-Cookbook-Fouth-Edition | fb75412e1ff13e1a1b3233f06de425c9df18aca7 | [
"MIT"
] | 182 | 2020-11-29T12:07:07.000Z | 2022-03-22T04:27:51.000Z | from xmlrpc import client
# books data with search_read method
server_url = 'http://localhost:8069'
db_name = 'book-db-14'
username = 'admin'
password = 'admin'
common = client.ServerProxy('%s/xmlrpc/2/common' % server_url)
user_id = common.authenticate(db_name, username, password, {})
models = client.ServerProxy('%... | 30.086957 | 78 | 0.666185 | 91 | 692 | 4.879121 | 0.527473 | 0.060811 | 0.081081 | 0.108108 | 0.112613 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015491 | 0.160405 | 692 | 23 | 79 | 30.086957 | 0.748709 | 0.049133 | 0 | 0 | 0 | 0 | 0.266362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.176471 | 0.058824 | 0 | 0.058824 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4030831b8ef706a54fbfedf094b0cd80acd0bbff | 3,870 | py | Python | beginner_source/former_torchies/autograd_tutorial_old.py | Ismail-Mustapha/tutorials | 0ccfbf0047db855e93e2aadb43c89c92e89f52b8 | [
"BSD-3-Clause"
] | 6,424 | 2017-01-18T17:57:30.000Z | 2022-03-31T11:43:48.000Z | beginner_source/former_torchies/autograd_tutorial_old.py | Ismail-Mustapha/tutorials | 0ccfbf0047db855e93e2aadb43c89c92e89f52b8 | [
"BSD-3-Clause"
] | 1,713 | 2017-01-18T18:50:08.000Z | 2022-03-31T14:57:25.000Z | beginner_source/former_torchies/autograd_tutorial_old.py | Ismail-Mustapha/tutorials | 0ccfbf0047db855e93e2aadb43c89c92e89f52b8 | [
"BSD-3-Clause"
] | 3,932 | 2017-01-18T21:11:46.000Z | 2022-03-31T10:24:24.000Z | # -*- coding: utf-8 -*-
"""
Autograd
========
Autograd is now a core torch package for automatic differentiation.
It uses a tape based system for automatic differentiation.
In the forward phase, the autograd tape will remember all the operations
it executed, and in the backward phase, it will replay the operations.
... | 29.541985 | 80 | 0.558656 | 507 | 3,870 | 4.211045 | 0.351085 | 0.073068 | 0.044965 | 0.015457 | 0.062763 | 0.062763 | 0.02623 | 0.02623 | 0 | 0 | 0 | 0.005375 | 0.134625 | 3,870 | 130 | 81 | 29.769231 | 0.632129 | 0.588372 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 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 |
40340ef3da3ba5e7ced60cc89b0a53d112c01bf4 | 1,492 | py | Python | mussel/core/make_requests.py | WandyYing/mussel | 61711ec07078ee089ba8011a8ef688beaee10de7 | [
"MIT"
] | null | null | null | mussel/core/make_requests.py | WandyYing/mussel | 61711ec07078ee089ba8011a8ef688beaee10de7 | [
"MIT"
] | 1 | 2021-12-15T16:28:37.000Z | 2021-12-15T16:28:37.000Z | mussel/core/make_requests.py | WandyYing/mussel | 61711ec07078ee089ba8011a8ef688beaee10de7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: ying jun
@email: wandy1208@live.com
@time: 2021/12/12 22:30
"""
from typing import Any, Callable, Dict, List, Optional
from urllib import parse
from requests import Response, Session
from mussel.scheme.api import Interface
class MakeRequest(object):
d... | 28.150943 | 84 | 0.587131 | 169 | 1,492 | 5.130178 | 0.485207 | 0.114187 | 0.041522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017062 | 0.292895 | 1,492 | 52 | 85 | 28.692308 | 0.804739 | 0.173592 | 0 | 0 | 0 | 0 | 0.059172 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
403dd7ba224dcd5eb00d2be20d210b6788af0165 | 1,255 | py | Python | gfg/arrays/largest_sum_contiguous_subarray.py | rrwt/daily-coding-challenge | b16fc365fd142ebab429e605cb146c8bb0bc97a2 | [
"MIT"
] | 1 | 2019-04-18T03:29:02.000Z | 2019-04-18T03:29:02.000Z | gfg/arrays/largest_sum_contiguous_subarray.py | rrwt/daily-coding-challenge | b16fc365fd142ebab429e605cb146c8bb0bc97a2 | [
"MIT"
] | null | null | null | gfg/arrays/largest_sum_contiguous_subarray.py | rrwt/daily-coding-challenge | b16fc365fd142ebab429e605cb146c8bb0bc97a2 | [
"MIT"
] | null | null | null | # Write an efficient program to find the sum of contiguous subarray within
# a one-dimensional array of numbers which has the largest sum.
def max_sum_kadane(nums: list) -> int:
# kadane's algorithm
max_so_far = max_ending_here = 0
for value in nums:
max_ending_here = max(max_ending_here + value,... | 29.186047 | 101 | 0.583267 | 206 | 1,255 | 3.26699 | 0.291262 | 0.147103 | 0.212481 | 0.081724 | 0.36107 | 0.286776 | 0.160475 | 0.160475 | 0.062407 | 0.062407 | 0 | 0.083056 | 0.280478 | 1,255 | 42 | 102 | 29.880952 | 0.662237 | 0.121912 | 0 | 0.076923 | 0 | 0 | 0.007286 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0.115385 | 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 |
403f6d889dfd1cdf5ccd5c9c5a2ee21f183a4505 | 5,520 | py | Python | Random_code_store/Functions/Function_types.py | UnimaidElectrical/PythonForBeginners | b5f6ae01c86112b78258491a3efe636ec6a0c5e8 | [
"MIT"
] | 1 | 2021-08-12T14:25:51.000Z | 2021-08-12T14:25:51.000Z | Random_code_store/Functions/Function_types.py | UnimaidElectrical/PythonForBeginners | b5f6ae01c86112b78258491a3efe636ec6a0c5e8 | [
"MIT"
] | 1 | 2020-09-08T04:26:26.000Z | 2020-09-08T04:26:26.000Z | Random_code_store/Functions/Function_types.py | UnimaidElectrical/PythonForBeginners | b5f6ae01c86112b78258491a3efe636ec6a0c5e8 | [
"MIT"
] | 6 | 2019-09-14T12:58:17.000Z | 2021-10-30T21:26:02.000Z | Nested Functions
def f1():
x = 88
def f2():
print(x)
f2()
f1() # prints 88
# called a closure as it remembers the values of the enclosing scopes even though the scopes are not around anymore
def f1():
x = 88
def f2():
print(x)
return f2
action = f1() #Make, return function
acti... | 20.597015 | 129 | 0.563587 | 895 | 5,520 | 3.470391 | 0.268156 | 0.008371 | 0.009659 | 0.010303 | 0.067933 | 0.046684 | 0.028976 | 0.012234 | 0 | 0 | 0 | 0.046653 | 0.312681 | 5,520 | 268 | 130 | 20.597015 | 0.772008 | 0.319022 | 0 | 0.361963 | 0 | 0 | 0.012765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.006135 | null | null | 0.128834 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
40425d6f609c694637001147adb3e916a86009fa | 28,261 | py | Python | nnplot/functions.py | yuvalk8s/nnplot | 30a0dc18bceca032c5d116ce8893a9482a57b568 | [
"MIT"
] | 7 | 2020-02-18T18:02:48.000Z | 2021-10-09T20:22:29.000Z | nnplot/functions.py | yuvalk8s/nnplot | 30a0dc18bceca032c5d116ce8893a9482a57b568 | [
"MIT"
] | null | null | null | nnplot/functions.py | yuvalk8s/nnplot | 30a0dc18bceca032c5d116ce8893a9482a57b568 | [
"MIT"
] | 1 | 2021-11-04T01:05:16.000Z | 2021-11-04T01:05:16.000Z | """
- Copyright (c) 2019 RAD Ltd.
- Contact: Yuval.A (Rad R&D) yuval_a@rad.com
-
- The MIT License
-
- Copyright (c) 2019 RAD Ltd.
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without re... | 50.286477 | 222 | 0.540427 | 3,534 | 28,261 | 4.199208 | 0.15648 | 0.026685 | 0.017925 | 0.017183 | 0.569407 | 0.526011 | 0.498652 | 0.494542 | 0.484164 | 0.457143 | 0 | 0.018665 | 0.323202 | 28,261 | 561 | 223 | 50.376114 | 0.757202 | 0.095503 | 0 | 0.456592 | 0 | 0.012862 | 0.081237 | 0 | 0.003215 | 0 | 0 | 0.00713 | 0 | 0 | null | null | 0 | 0.016077 | null | null | 0.045016 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4045848ebbee96b3ab2d11654783b4898bde4217 | 31,862 | py | Python | packages/python/plotly/plotly/graph_objs/layout/mapbox/_layer.py | eranws/plotly.py | 5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a | [
"MIT"
] | null | null | null | packages/python/plotly/plotly/graph_objs/layout/mapbox/_layer.py | eranws/plotly.py | 5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a | [
"MIT"
] | null | null | null | packages/python/plotly/plotly/graph_objs/layout/mapbox/_layer.py | eranws/plotly.py | 5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a | [
"MIT"
] | null | null | null | from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Layer(_BaseLayoutHierarchyType):
# class properties
# --------------------
_parent_path_str = "layout.mapbox"
_path_str = "layout.mapbox.layer"
_valid_props = {
"below",
... | 35.560268 | 84 | 0.561076 | 3,664 | 31,862 | 4.838701 | 0.116812 | 0.04095 | 0.018275 | 0.013199 | 0.646173 | 0.633369 | 0.62739 | 0.616335 | 0.616335 | 0.612951 | 0 | 0.001454 | 0.352269 | 31,862 | 895 | 85 | 35.6 | 0.857593 | 0.490302 | 0 | 0.124277 | 0 | 0 | 0.455535 | 0.045254 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109827 | false | 0 | 0.00578 | 0.00289 | 0.184971 | 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 |
40472689c0e56534b02bf11273c29a41ffc093bd | 26,272 | py | Python | ci.py | digitalfishpond/monasca-docker | da7555b7fc9d8b02aca4fa8303b4426152e54860 | [
"Apache-2.0"
] | null | null | null | ci.py | digitalfishpond/monasca-docker | da7555b7fc9d8b02aca4fa8303b4426152e54860 | [
"Apache-2.0"
] | null | null | null | ci.py | digitalfishpond/monasca-docker | da7555b7fc9d8b02aca4fa8303b4426152e54860 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# (C) Copyright 2017 Hewlett Packard Enterprise Development LP
#
# 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... | 30.232451 | 107 | 0.619367 | 3,284 | 26,272 | 4.748782 | 0.143423 | 0.015774 | 0.017698 | 0.02193 | 0.364412 | 0.303431 | 0.222828 | 0.186021 | 0.160244 | 0.152036 | 0 | 0.005233 | 0.265378 | 26,272 | 868 | 108 | 30.267281 | 0.802798 | 0.04933 | 0 | 0.316847 | 0 | 0 | 0.180674 | 0.02441 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015456 | 0.023184 | null | null | 0.126739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
404777dc4b1123117125a14eb2071592f1c1dc9a | 3,653 | py | Python | models.py | Ryize/FlaskLessons | 9adcb0453c872de9dc76b0ac7f9d30bdf6f15a73 | [
"Apache-2.0"
] | null | null | null | models.py | Ryize/FlaskLessons | 9adcb0453c872de9dc76b0ac7f9d30bdf6f15a73 | [
"Apache-2.0"
] | null | null | null | models.py | Ryize/FlaskLessons | 9adcb0453c872de9dc76b0ac7f9d30bdf6f15a73 | [
"Apache-2.0"
] | null | null | null | from flask_login import login_user
from sqlalchemy.orm import backref
from __init__ import *
from datetime import datetime
from flask import session
from exceptions import *
from abc import ABCMeta, abstractmethod
class AbstUser():
__metaclass__ = ABCMeta
@abstractmethod
def login(self, authentication: ... | 29.224 | 100 | 0.617301 | 423 | 3,653 | 5.144208 | 0.283688 | 0.040441 | 0.050551 | 0.016544 | 0.274816 | 0.15579 | 0.120404 | 0.120404 | 0.059743 | 0.059743 | 0 | 0.006011 | 0.271284 | 3,653 | 124 | 101 | 29.459677 | 0.81142 | 0 | 0 | 0.295918 | 0 | 0 | 0.076102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132653 | false | 0.112245 | 0.071429 | 0.030612 | 0.530612 | 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 |
4048f4d317e3db96c52adf864c65982a671def9c | 1,105 | py | Python | Light Hackers/Raspberry Pi/test/conc_tcp_server.py | shailesh-jain/Smart-Energy-Hackathon | 6f4fa03999131dfd6c209553de0da07fa5778ca6 | [
"MIT"
] | 3 | 2015-04-15T01:19:39.000Z | 2021-08-15T18:58:03.000Z | Light Hackers/Raspberry Pi/test/conc_tcp_server.py | shailesh-jain/Smart-Energy-Hackathon | 6f4fa03999131dfd6c209553de0da07fa5778ca6 | [
"MIT"
] | null | null | null | Light Hackers/Raspberry Pi/test/conc_tcp_server.py | shailesh-jain/Smart-Energy-Hackathon | 6f4fa03999131dfd6c209553de0da07fa5778ca6 | [
"MIT"
] | 2 | 2020-05-29T18:16:29.000Z | 2020-05-29T18:19:09.000Z | #!/usr/bin/python
#'''A concurrent TCP server'''
# See: http://docs.python.org/2/library/socket.html
# See: http://docs.python.org/2/library/struct.html
# See: http://docs.python.org/2/library/threading.html
# See: http://code.activestate.com/recipes/578247-basic-threaded-python-tcp-server
# See: http://stackoverflow... | 25.697674 | 111 | 0.730317 | 157 | 1,105 | 5.025478 | 0.477707 | 0.04436 | 0.041825 | 0.064639 | 0.116603 | 0.116603 | 0.116603 | 0.081115 | 0 | 0 | 0 | 0.02444 | 0.111312 | 1,105 | 43 | 112 | 25.697674 | 0.779022 | 0.365611 | 0 | 0.083333 | 0 | 0 | 0.069164 | 0.033141 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4055bc05615b40d22e01bfa41d2d8b079f9be471 | 1,985 | py | Python | lib/language_card_templates.py | raz-zeevy/Genlingo | ba28a689aed315a531b741566a9e8002e0a3a6fe | [
"MIT"
] | null | null | null | lib/language_card_templates.py | raz-zeevy/Genlingo | ba28a689aed315a531b741566a9e8002e0a3a6fe | [
"MIT"
] | null | null | null | lib/language_card_templates.py | raz-zeevy/Genlingo | ba28a689aed315a531b741566a9e8002e0a3a6fe | [
"MIT"
] | null | null | null | from string import Template
SRC = 'target_language'
DES = 'Destination_Language'
FONT_SIZE_PX = 23
MAIN_FONT_SIZE_PX = 25
FRONT = '''
<b>{{English (Simplified Translation)}}<br></b><br>
<span class="timer" id="s2"><span>
<script>
function countdown( elementName, minutes, seconds )
{
var element, endTime, hours, ... | 21.344086 | 123 | 0.586398 | 231 | 1,985 | 4.965368 | 0.458874 | 0.055798 | 0.043592 | 0.031386 | 0.040105 | 0.040105 | 0.040105 | 0 | 0 | 0 | 0 | 0.024455 | 0.237783 | 1,985 | 92 | 124 | 21.576087 | 0.733642 | 0 | 0 | 0.064103 | 0 | 0.012821 | 0.774307 | 0.058942 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.012821 | 0 | 0.102564 | 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 |
40570fca86081f614c953a1b48d1097974e3b678 | 360 | py | Python | gdsfactory/samples/autoplacer/coupler.py | tvt173/gdsfactory | 69dcfccff1525722e7029eb8bb8c4c9ddebbac47 | [
"MIT"
] | null | null | null | gdsfactory/samples/autoplacer/coupler.py | tvt173/gdsfactory | 69dcfccff1525722e7029eb8bb8c4c9ddebbac47 | [
"MIT"
] | null | null | null | gdsfactory/samples/autoplacer/coupler.py | tvt173/gdsfactory | 69dcfccff1525722e7029eb8bb8c4c9ddebbac47 | [
"MIT"
] | null | null | null | """
Generate a coupler DOE
"""
import gdsfactory as gf
from gdsfactory.components.coupler import coupler
from gdsfactory.routing.add_fiber_array import add_fiber_array
@gf.cell
def coupler2x2(gap=0.3, length=10.0):
c = coupler(gap=gap, length=length)
return add_fiber_array(component=c)
if __name__ == "__mai... | 20 | 62 | 0.733333 | 53 | 360 | 4.716981 | 0.54717 | 0.096 | 0.156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029605 | 0.155556 | 360 | 17 | 63 | 21.176471 | 0.792763 | 0.061111 | 0 | 0 | 1 | 0 | 0.024242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 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 |
4057d23d6f3d9b97649e18e3797b508018493383 | 2,824 | gyp | Python | third_party/webrtc/src/chromium/src/cloud_print/cloud_print_resources.gyp | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 8 | 2016-02-08T11:59:31.000Z | 2020-05-31T15:19:54.000Z | third_party/webrtc/src/chromium/src/cloud_print/cloud_print_resources.gyp | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 1 | 2021-05-05T11:11:31.000Z | 2021-05-05T11:11:31.000Z | third_party/webrtc/src/chromium/src/cloud_print/cloud_print_resources.gyp | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 7 | 2016-02-09T09:28:14.000Z | 2020-07-25T19:03:36.000Z | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
'variables': {
'version_py_path': '<(DEPTH)/build/util/version.py',
'version_path': 'VERSION',
... | 31.377778 | 93 | 0.535411 | 266 | 2,824 | 5.353383 | 0.364662 | 0.049157 | 0.036517 | 0.056882 | 0.411517 | 0.255618 | 0.220506 | 0.174157 | 0.174157 | 0.174157 | 0 | 0.004028 | 0.296742 | 2,824 | 89 | 94 | 31.730337 | 0.712991 | 0.063739 | 0 | 0.352941 | 0 | 0 | 0.576355 | 0.328912 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.082353 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
40585c95bbb8cf06d20f53845a93c90e7fa1b11e | 2,403 | py | Python | siamese/callbacks/test/test_nway_callback.py | Benjamin-Etheredge/siamese | 9665d52bb1e8bf329821788332eb38476595a60f | [
"MIT"
] | 1 | 2021-08-07T14:56:57.000Z | 2021-08-07T14:56:57.000Z | siamese/callbacks/test/test_nway_callback.py | Benjamin-Etheredge/siamese | 9665d52bb1e8bf329821788332eb38476595a60f | [
"MIT"
] | null | null | null | siamese/callbacks/test/test_nway_callback.py | Benjamin-Etheredge/siamese | 9665d52bb1e8bf329821788332eb38476595a60f | [
"MIT"
] | null | null | null | from _pytest.fixtures import fixture
import pytest
from ..nway_callback import NWayCallback
from pytest_mock import mocker
from mock import patch, call
from mock import MagicMock
from icecream import ic
class mock_model:
def __init__(self):
pass
def predict_on_batch(*args, **kwargs):
return True
c... | 30.807692 | 82 | 0.661673 | 330 | 2,403 | 4.563636 | 0.254545 | 0.033201 | 0.069721 | 0.049801 | 0.180611 | 0.118194 | 0.077025 | 0.077025 | 0.077025 | 0.077025 | 0 | 0.021878 | 0.220141 | 2,403 | 78 | 83 | 30.807692 | 0.78175 | 0.083645 | 0 | 0.131148 | 0 | 0 | 0.024579 | 0 | 0 | 0 | 0 | 0.012821 | 0.262295 | 1 | 0.098361 | false | 0.016393 | 0.114754 | 0.016393 | 0.262295 | 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 |
405a38186bacfeb78af991a2232daaad05909d48 | 334 | py | Python | Module2/assignment2.py | momajd/DAT210x | a02cf920fa0d07474d1c6c5b7ef10ef2a90130d0 | [
"MIT"
] | null | null | null | Module2/assignment2.py | momajd/DAT210x | a02cf920fa0d07474d1c6c5b7ef10ef2a90130d0 | [
"MIT"
] | null | null | null | Module2/assignment2.py | momajd/DAT210x | a02cf920fa0d07474d1c6c5b7ef10ef2a90130d0 | [
"MIT"
] | null | null | null | import pandas as pd
# Load up the 'tutorial.csv' dataset
data = pd.read_csv('Datasets/tutorial.csv')
# Print the results of the .describe() method
print(data.describe())
# Figure out which indexing method you need to
# use in order to index your dataframe with: [2:4,'col3']
# And print the results
print(data.loc[ 2:... | 25.692308 | 57 | 0.718563 | 56 | 334 | 4.267857 | 0.660714 | 0.09205 | 0.125523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.155689 | 334 | 12 | 58 | 27.833333 | 0.826241 | 0.601796 | 0 | 0 | 0 | 0 | 0.19685 | 0.165354 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
405dc9b6dcf0e0db27caffbc32a4097876f95705 | 1,084 | py | Python | imageserver/migrations/0004_auto_20170612_1105.py | aroiginfraplan/giscube-admin | b7f3131b0186f847f3902df97f982cb288b16a49 | [
"BSD-3-Clause"
] | 5 | 2018-06-07T12:54:35.000Z | 2022-01-14T10:38:38.000Z | imageserver/migrations/0004_auto_20170612_1105.py | aroiginfraplan/giscube-admin | b7f3131b0186f847f3902df97f982cb288b16a49 | [
"BSD-3-Clause"
] | 140 | 2018-06-18T10:27:28.000Z | 2022-03-23T09:53:15.000Z | imageserver/migrations/0004_auto_20170612_1105.py | aroiginfraplan/giscube-admin | b7f3131b0186f847f3902df97f982cb288b16a49 | [
"BSD-3-Clause"
] | 1 | 2021-04-13T11:20:54.000Z | 2021-04-13T11:20:54.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-12 11:05
from django.db import migrations, models
import django.db.models.deletion
import imageserver.models
import imageserver.storage
class Migration(migrations.Migration):
dependencies = [
('imageserver', '0003_auto_20150915_1100'),
... | 31.882353 | 153 | 0.658672 | 115 | 1,084 | 6.06087 | 0.478261 | 0.034433 | 0.107604 | 0.124821 | 0.284075 | 0.123386 | 0.123386 | 0 | 0 | 0 | 0 | 0.039239 | 0.22417 | 1,084 | 33 | 154 | 32.848485 | 0.789536 | 0.062731 | 0 | 0.32 | 1 | 0 | 0.096742 | 0.022705 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16 | 0 | 0.28 | 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 |
405dfa4051a04eed3f3e0255963ff32ba64eec92 | 348 | py | Python | HAFTA-7/DERS-19/dosyaislemleri/byte_dosyalar/byte_str.py | aydan08/Python-Kursu-15.02.21 | a1463501df47cacbd7ddd8c6f3aeb93abf1436f6 | [
"MIT"
] | 1 | 2021-03-08T16:16:35.000Z | 2021-03-08T16:16:35.000Z | HAFTA-7/DERS-19/dosyaislemleri/byte_dosyalar/byte_str.py | aydan08/Python-Kursu-15.02.21 | a1463501df47cacbd7ddd8c6f3aeb93abf1436f6 | [
"MIT"
] | null | null | null | HAFTA-7/DERS-19/dosyaislemleri/byte_dosyalar/byte_str.py | aydan08/Python-Kursu-15.02.21 | a1463501df47cacbd7ddd8c6f3aeb93abf1436f6 | [
"MIT"
] | null | null | null | # veri = bytearray("ş")
veri = bytearray("abcd",encoding="utf-8")
print(veri)
print(veri[1])
print(veri[0])
with open("veri.bin", 'wb') as dosya:
dosya.write(veri)
veri2 = bytearray("diğer veri", encoding="utf-8")
with open("veri.bin", "rb") as dosya1:
data = dosya1.readinto(veri2)
print("Ve... | 21.75 | 50 | 0.62931 | 50 | 348 | 4.38 | 0.48 | 0.164384 | 0.109589 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031469 | 0.178161 | 348 | 16 | 51 | 21.75 | 0.734266 | 0.060345 | 0 | 0 | 0 | 0 | 0.180064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
405e0c5d23e33720a8fc3acaeedf6bcfacac787b | 351 | py | Python | wim-cli/wim/commands/cmd_controller.py | themisAnagno/WIM | 9f83c0ae2ce9ceb154037b8c72f7617b8e5eacdb | [
"MIT"
] | 1 | 2020-07-05T04:16:54.000Z | 2020-07-05T04:16:54.000Z | wim-cli/wim/commands/cmd_controller.py | themisAnagno/WIM | 9f83c0ae2ce9ceb154037b8c72f7617b8e5eacdb | [
"MIT"
] | 1 | 2020-04-17T18:35:16.000Z | 2020-04-18T10:57:23.000Z | wim-cli/wim/commands/cmd_controller.py | themisAnagno/WIM | 9f83c0ae2ce9ceb154037b8c72f7617b8e5eacdb | [
"MIT"
] | null | null | null | import os
import subprocess
import click
controllers = []
@click.group()
def cli():
"""Manage SDN Controller"""
pass
@click.command()
def ls():
"""
Lists the connected SDN controllers
"""
for sdn_con in controllers:
click.echo("{0} controller @ {1}".format(sdn_con["type"], sdn_con... | 13.5 | 81 | 0.623932 | 45 | 351 | 4.777778 | 0.6 | 0.083721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.219373 | 351 | 25 | 82 | 14.04 | 0.777372 | 0.162393 | 0 | 0 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.25 | 0 | 0.416667 | 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 |
4060236e2f51eb07a361b93806f1b67c98c33644 | 792 | py | Python | Company-Project/src/sitesettings/models.py | marqpdx/Wagtail-Pipit | aacb9d6ffe43850777ae930dbc12da43024c7266 | [
"MIT"
] | 4 | 2021-02-02T23:03:03.000Z | 2021-07-08T12:06:22.000Z | {{cookiecutter.project_name}}/src/sitesettings/models.py | albertfougy/Wagtail-Pipit | e82991c76bb3c79804971a33d30b9e098bfb4ea9 | [
"MIT"
] | 21 | 2021-12-28T04:56:52.000Z | 2022-03-29T04:30:25.000Z | {{cookiecutter.project_name}}/src/sitesettings/models.py | albertfougy/Wagtail-Pipit | e82991c76bb3c79804971a33d30b9e098bfb4ea9 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import gettext_lazy as _
from wagtail.contrib.settings.models import BaseSetting, register_setting
from wagtail.admin.edit_handlers import FieldPanel
from wagtail.core.fields import RichTextField
@register_setting
class SiteSetting(BaseSetting):
gtm_id = ... | 31.68 | 80 | 0.744949 | 97 | 792 | 5.835052 | 0.525773 | 0.058304 | 0.063604 | 0.084806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00753 | 0.161616 | 792 | 24 | 81 | 33 | 0.84488 | 0 | 0 | 0 | 0 | 0 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.277778 | 0.055556 | 0.722222 | 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 |
406426bfe0754d34666e8e9a525f35d9ebfb0a32 | 414 | py | Python | Entradas/migrations/0004_entradas_blog_contra.py | ToniIvars/Blog | c2d1674c2c1fdf51749f4b014795b507ed93b45e | [
"MIT"
] | null | null | null | Entradas/migrations/0004_entradas_blog_contra.py | ToniIvars/Blog | c2d1674c2c1fdf51749f4b014795b507ed93b45e | [
"MIT"
] | 4 | 2021-03-30T13:26:38.000Z | 2021-06-10T19:20:56.000Z | Entradas/migrations/0004_entradas_blog_contra.py | ToniIvars/Blog | c2d1674c2c1fdf51749f4b014795b507ed93b45e | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-05-06 13:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Entradas', '0003_auto_20200506_1352'),
]
operations = [
migrations.AddField(
model_name='entradas_blog',
name='contr... | 21.789474 | 72 | 0.613527 | 45 | 414 | 5.511111 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109272 | 0.270531 | 414 | 18 | 73 | 23 | 0.711921 | 0.108696 | 0 | 0 | 1 | 0 | 0.163488 | 0.06267 | 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 |
4066ba4c43354bc3c5a4c4928606aa7dcd86218d | 11,060 | py | Python | saleor/api/order/views.py | glosoftgroup/restaurant | 5b10a8f5199103e5bee01b45952c9638e63f28af | [
"BSD-3-Clause"
] | 1 | 2018-05-03T06:17:02.000Z | 2018-05-03T06:17:02.000Z | saleor/api/order/views.py | glosoftgroup/restaurant | 5b10a8f5199103e5bee01b45952c9638e63f28af | [
"BSD-3-Clause"
] | 8 | 2018-05-07T16:42:35.000Z | 2022-02-26T03:31:56.000Z | saleor/api/order/views.py | glosoftgroup/tenants | a6b229ad1f6d567b7078f83425a532830b71e1bb | [
"BSD-3-Clause"
] | null | null | null | from django.db.models import Q
from rest_framework.response import Response
from rest_framework import generics
from django.contrib.auth import get_user_model
from ...orders.models import Orders, OrderedItem
from ...table.models import Table
from ...sale.models import (
Sales,
... | 35.448718 | 167 | 0.63264 | 1,162 | 11,060 | 5.864888 | 0.148021 | 0.041966 | 0.026412 | 0.040499 | 0.575349 | 0.541453 | 0.505649 | 0.446075 | 0.417315 | 0.417315 | 0 | 0.002341 | 0.266275 | 11,060 | 311 | 168 | 35.562701 | 0.837461 | 0.021609 | 0 | 0.42616 | 0 | 0 | 0.048807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.050633 | null | null | 0.008439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
406b19d6b85cd5455de8b372903feec80c218934 | 635 | py | Python | Models/AgriWatchView.py | Hack4Impact-Boston-University/agriworks | 8b712e1c128dd20e1a4ddaf4990e901989636b83 | [
"BSD-3-Clause"
] | 1 | 2019-10-17T01:30:29.000Z | 2019-10-17T01:30:29.000Z | Models/AgriWatchView.py | Hack4Impact-Boston-University/agriworks | 8b712e1c128dd20e1a4ddaf4990e901989636b83 | [
"BSD-3-Clause"
] | 6 | 2019-10-24T12:13:36.000Z | 2020-09-10T01:20:33.000Z | Models/AgriWatchView.py | Hack4Impact-Boston-University/agriworks | 8b712e1c128dd20e1a4ddaf4990e901989636b83 | [
"BSD-3-Clause"
] | 2 | 2020-04-22T00:01:04.000Z | 2020-04-24T01:42:12.000Z | from mongoengine import DynamicDocument, Document, StringField, ReferenceField, ListField, IntField, DateTimeField, BooleanField, DictField
from datetime import datetime
from Models.User import User
from Models.Dataset import Dataset
class AgriWatchView(DynamicDocument):
author = ReferenceField(User, required=Tru... | 39.6875 | 139 | 0.75748 | 63 | 635 | 7.634921 | 0.52381 | 0.074844 | 0.099792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001818 | 0.133858 | 635 | 15 | 140 | 42.333333 | 0.872727 | 0 | 0 | 0 | 0 | 0 | 0.055118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4070c1ce42cb39af9f168034b2a8d57d2893d2e0 | 678 | py | Python | lfs_paypal/migrations/0002_auto_20170309_0820.py | diefenbach/lfs-paypal | 71ec00313fa7562a9a09ccdd67a9f1d6a5edc47a | [
"BSD-3-Clause"
] | 2 | 2017-02-21T04:08:58.000Z | 2021-02-22T09:57:50.000Z | lfs_paypal/migrations/0002_auto_20170309_0820.py | diefenbach/lfs-paypal | 71ec00313fa7562a9a09ccdd67a9f1d6a5edc47a | [
"BSD-3-Clause"
] | null | null | null | lfs_paypal/migrations/0002_auto_20170309_0820.py | diefenbach/lfs-paypal | 71ec00313fa7562a9a09ccdd67a9f1d6a5edc47a | [
"BSD-3-Clause"
] | 1 | 2021-08-17T21:48:25.000Z | 2021-08-17T21:48:25.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-09 08:20
from __future__ import unicode_literals
from django.db import migrations
def update_price_calculator(apps, schema_editor):
PaymentMethod = apps.get_model("payment", "PaymentMethod")
for payment_method in PaymentMethod.objects.all():
... | 27.12 | 74 | 0.705015 | 77 | 678 | 5.961039 | 0.675325 | 0.11329 | 0.091503 | 0.095861 | 0.122004 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038182 | 0.188791 | 678 | 24 | 75 | 28.25 | 0.796364 | 0.100295 | 0 | 0 | 1 | 0 | 0.171334 | 0.102142 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
40776450425006cc43d9d53442cf66e3c6d436d8 | 17,974 | py | Python | lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene84/gen_ForUtil.py | dameikle/lucene | de4eccbb55eab4132628dd6ee712cf8b261cdfa8 | [
"Apache-2.0"
] | 903 | 2015-01-02T22:13:47.000Z | 2022-03-31T13:40:42.000Z | lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene84/gen_ForUtil.py | dameikle/lucene | de4eccbb55eab4132628dd6ee712cf8b261cdfa8 | [
"Apache-2.0"
] | 429 | 2021-03-10T14:47:58.000Z | 2022-03-31T21:26:52.000Z | lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene84/gen_ForUtil.py | dameikle/lucene | de4eccbb55eab4132628dd6ee712cf8b261cdfa8 | [
"Apache-2.0"
] | 480 | 2015-01-05T03:07:05.000Z | 2022-03-31T10:35:08.000Z | #! /usr/bin/env python
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "Lic... | 33.722326 | 154 | 0.59447 | 2,431 | 17,974 | 4.319622 | 0.143974 | 0.030854 | 0.013332 | 0.028569 | 0.457861 | 0.404723 | 0.36587 | 0.334444 | 0.312066 | 0.301495 | 0 | 0.055817 | 0.254423 | 17,974 | 532 | 155 | 33.785714 | 0.727782 | 0.043062 | 0 | 0.253219 | 0 | 0.023605 | 0.765732 | 0.074065 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006438 | false | 0 | 0.008584 | 0 | 0.030043 | 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 |
407fa9a9528fe28cd2a11f3664256a5165dd240a | 1,271 | py | Python | gltbx/viewer_utils.py | jbeilstenedmands/cctbx_project | c228fb15ab10377f664c39553d866281358195aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | gltbx/viewer_utils.py | jbeilstenedmands/cctbx_project | c228fb15ab10377f664c39553d866281358195aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | gltbx/viewer_utils.py | jbeilstenedmands/cctbx_project | c228fb15ab10377f664c39553d866281358195aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import division
import scitbx.array_family.flex # import dependency
import time
import boost.python
ext = boost.python.import_ext("gltbx_viewer_utils_ext")
from gltbx_viewer_utils_ext import *
def read_pixels_to_str(x, y, width, height):
from gltbx.gl import glPixelStorei, glReadPixels, \
GL_PAC... | 26.479167 | 66 | 0.690008 | 191 | 1,271 | 4.298429 | 0.361257 | 0.066991 | 0.043849 | 0.046285 | 0.038977 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014793 | 0.202203 | 1,271 | 47 | 67 | 27.042553 | 0.794872 | 0.013375 | 0 | 0.047619 | 0 | 0 | 0.03115 | 0.017572 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | null | null | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
40807a972b76990358fcaf6959890cc095db196a | 3,981 | py | Python | additional tasks x classes/Car.py | flame4ost/Python-projects | 650beb32df28cbed3d07d05c84c1f996716bac39 | [
"MIT"
] | 3 | 2019-11-09T17:01:14.000Z | 2019-11-14T11:58:54.000Z | additional tasks x classes/Car.py | flame4ost/Python-projects | 650beb32df28cbed3d07d05c84c1f996716bac39 | [
"MIT"
] | null | null | null | additional tasks x classes/Car.py | flame4ost/Python-projects | 650beb32df28cbed3d07d05c84c1f996716bac39 | [
"MIT"
] | null | null | null | import csv
import sys
import os.path
class CarBase:
"""Базовый класс с общими методами и атрибутами"""
# индексы полей, которые соответствуют колонкам в исходном csv-файле
csv_car_type = 0
csv_brand = 1
csv_passenger_seats_count = 2
csv_photo_file_name = 3
csv_body_whl = 4
csv_carryi... | 28.035211 | 84 | 0.607134 | 480 | 3,981 | 4.739583 | 0.29375 | 0.059341 | 0.08 | 0.055385 | 0.247033 | 0.247033 | 0.245275 | 0.22989 | 0.130549 | 0.130549 | 0 | 0.004375 | 0.310977 | 3,981 | 141 | 85 | 28.234043 | 0.825009 | 0.19166 | 0 | 0.303371 | 0 | 0 | 0.009425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11236 | false | 0.05618 | 0.033708 | 0.044944 | 0.370787 | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
408380c503eb5282d4ac63ecd9dd19afca2ba217 | 439 | py | Python | 20_unit_testing/lectures/4_testing_multiplication/functions.py | gdia/The-Complete-Python-Course | ed375b65242249bc749c3e292a6149f8528b9dcf | [
"MIT"
] | 29 | 2019-09-02T21:15:59.000Z | 2022-01-14T02:20:05.000Z | 20_unit_testing/lectures/4_testing_multiplication/functions.py | gdia/The-Complete-Python-Course | ed375b65242249bc749c3e292a6149f8528b9dcf | [
"MIT"
] | 2 | 2020-08-20T05:48:36.000Z | 2021-06-02T03:16:31.000Z | 20_unit_testing/lectures/4_testing_multiplication/functions.py | gdia/The-Complete-Python-Course | ed375b65242249bc749c3e292a6149f8528b9dcf | [
"MIT"
] | 38 | 2019-10-20T14:29:12.000Z | 2022-03-27T19:50:05.000Z | from typing import Union, Tuple
def divide(dividend: Union[int, float], divisor: Union[int, float]):
if divisor == 0:
raise ValueError('The divisor cannot be zero.')
return dividend / divisor
def multiply(*args: Tuple[Union[int, float]]):
if len(args) == 0:
raise ValueError('At least... | 24.388889 | 74 | 0.628702 | 60 | 439 | 4.6 | 0.583333 | 0.086957 | 0.141304 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009317 | 0.266515 | 439 | 17 | 75 | 25.823529 | 0.847826 | 0 | 0 | 0 | 0 | 0 | 0.166287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.083333 | 0 | 0.416667 | 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 |
4084fb96652a7393ff737fb44174274e55456c10 | 668 | py | Python | src/users/views.py | sfernandezf/analytics-yahoofantasy | 6242599b903e4b8a7f9c56892ba26591a441b8fb | [
"Apache-2.0"
] | null | null | null | src/users/views.py | sfernandezf/analytics-yahoofantasy | 6242599b903e4b8a7f9c56892ba26591a441b8fb | [
"Apache-2.0"
] | 6 | 2020-03-15T03:32:06.000Z | 2022-01-13T03:46:05.000Z | src/users/views.py | sfernandezf/analytics-yahoofantasy | 6242599b903e4b8a7f9c56892ba26591a441b8fb | [
"Apache-2.0"
] | null | null | null | from rest_framework import mixins, viewsets
from rest_framework.settings import api_settings
class UserViewSet(mixins.RetrieveModelMixin,
mixins.UpdateModelMixin,
mixins.ListModelMixin,
viewsets.GenericViewSet):
"""
"""
queryset = None
serializer_c... | 29.043478 | 72 | 0.724551 | 68 | 668 | 6.867647 | 0.5 | 0.094218 | 0.115632 | 0.068522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227545 | 668 | 22 | 73 | 30.363636 | 0.905039 | 0.146707 | 0 | 0 | 0 | 0 | 0.003597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.75 | 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 |
4087738e3977e4f8e88aec4bf758bd32315aa799 | 21,300 | py | Python | amd64-linux/lib/python/ia64_commands.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | 1 | 2020-06-15T10:41:18.000Z | 2020-06-15T10:41:18.000Z | amd64-linux/lib/python/ia64_commands.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | null | null | null | amd64-linux/lib/python/ia64_commands.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | 3 | 2020-08-10T10:25:02.000Z | 2021-09-12T01:12:09.000Z | from cli import *
import sim_commands
class cpuregs:
def __init__(self, cpu):
self.cpu = cpu
def __getitem__(self, reg):
regno = SIM_get_register_number(self.cpu, reg)
return SIM_read_register(self.cpu, regno)
def short_name(name):
... | 37.5 | 154 | 0.421784 | 2,377 | 21,300 | 3.65082 | 0.157762 | 0.014519 | 0.029385 | 0.033187 | 0.376124 | 0.302374 | 0.277829 | 0.24153 | 0.213644 | 0.204195 | 0 | 0.062936 | 0.414413 | 21,300 | 567 | 155 | 37.566138 | 0.632807 | 0.14784 | 0 | 0.21883 | 0 | 0.015267 | 0.195815 | 0.027127 | 0 | 0 | 0.005093 | 0 | 0 | 0 | null | null | 0.005089 | 0.005089 | null | null | 0.038168 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
408cc4e5ad26ddc94d9b28128bd4fb56e4e9c528 | 3,477 | py | Python | glearn/__init__.py | ameli/gaussian_proc | 67008bbb43fe5bf1562cf243e97836532b337547 | [
"BSD-3-Clause"
] | null | null | null | glearn/__init__.py | ameli/gaussian_proc | 67008bbb43fe5bf1562cf243e97836532b337547 | [
"BSD-3-Clause"
] | null | null | null | glearn/__init__.py | ameli/gaussian_proc | 67008bbb43fe5bf1562cf243e97836532b337547 | [
"BSD-3-Clause"
] | null | null | null | # SPDX-FileCopyrightText: Copyright 2021, Siavash Ameli <sameli@berkeley.edu>
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-FileType: SOURCE
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the license found in the LICENSE.txt file in the root directory
# of this source ... | 40.905882 | 79 | 0.640495 | 447 | 3,477 | 4.847875 | 0.344519 | 0.023073 | 0.041994 | 0.027688 | 0.22335 | 0.2012 | 0.2012 | 0.167974 | 0.167974 | 0.167974 | 0 | 0.004395 | 0.280127 | 3,477 | 84 | 80 | 41.392857 | 0.861366 | 0.446362 | 0 | 0 | 0 | 0 | 0.307442 | 0.015209 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.323529 | 0 | 0.352941 | 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 |
408ecc28cd1d8c33af4e45cabc3c1cc5a08881cd | 1,225 | py | Python | bull_and_bear/migrations/0001_initial.py | ticochuck/bull-bear | 5f889ded8d18f6c99c29ca8d1b361674b7a1e2d9 | [
"MIT"
] | null | null | null | bull_and_bear/migrations/0001_initial.py | ticochuck/bull-bear | 5f889ded8d18f6c99c29ca8d1b361674b7a1e2d9 | [
"MIT"
] | 1 | 2020-11-03T18:33:14.000Z | 2020-11-03T18:33:14.000Z | bull_and_bear/migrations/0001_initial.py | night-traders/bull-bear | 9ad12ecbc07a93f2ee2655eb04c82251ebf3e2c5 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-11-05 05:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 34.027778 | 118 | 0.603265 | 129 | 1,225 | 5.55814 | 0.472868 | 0.083682 | 0.100418 | 0.133891 | 0.320781 | 0.320781 | 0.320781 | 0.320781 | 0.320781 | 0.320781 | 0 | 0.023516 | 0.27102 | 1,225 | 35 | 119 | 35 | 0.779395 | 0.036735 | 0 | 0.428571 | 1 | 0 | 0.076401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
408fa89da05d481dafe5d6917f9ff7656dfba759 | 1,059 | py | Python | watcher/cmd/sync.py | ajaytikoo/watcher | 6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159 | [
"Apache-2.0"
] | 64 | 2015-10-18T02:57:24.000Z | 2022-01-13T11:27:51.000Z | watcher/cmd/sync.py | ajaytikoo/watcher | 6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | watcher/cmd/sync.py | ajaytikoo/watcher | 6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159 | [
"Apache-2.0"
] | 35 | 2015-12-25T13:53:21.000Z | 2021-07-19T15:50:16.000Z | # -*- encoding: utf-8 -*-
#
# Copyright (c) 2016 Intel
#
# Authors: Tomasz Kaczynski <tomasz.kaczynski@intel.com>
#
# 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/lic... | 25.829268 | 75 | 0.737488 | 157 | 1,059 | 4.929936 | 0.598726 | 0.077519 | 0.033592 | 0.041344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010227 | 0.169027 | 1,059 | 40 | 76 | 26.475 | 0.869318 | 0.611898 | 0 | 0 | 0 | 0 | 0.11054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
40909597ca9d4c177ec822c48954d05bcedd2448 | 7,312 | py | Python | txsp/txsp.py | sunyymq/crawlers | 71beca03ec8e084bf424276fabe061854fe971f4 | [
"MIT"
] | 1 | 2021-08-02T03:02:37.000Z | 2021-08-02T03:02:37.000Z | txsp/txsp.py | sunyymq/crawlers | 71beca03ec8e084bf424276fabe061854fe971f4 | [
"MIT"
] | null | null | null | txsp/txsp.py | sunyymq/crawlers | 71beca03ec8e084bf424276fabe061854fe971f4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from mechanize import Browser
from lxml import etree, html
import os
import random
import re
import sys
import time
import urllib
import urllib2
import uuid
from echo_ckeyv3 import echo_ckeyv3
USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:41.0) Gecko/20100101 Firefox/41.0'
SWF... | 29.967213 | 104 | 0.576176 | 965 | 7,312 | 4.222798 | 0.249741 | 0.019632 | 0.025521 | 0.022086 | 0.310429 | 0.243681 | 0.197301 | 0.181595 | 0.163436 | 0.163436 | 0 | 0.027117 | 0.258616 | 7,312 | 243 | 105 | 30.090535 | 0.72459 | 0.03337 | 0 | 0.211055 | 0 | 0.01005 | 0.166643 | 0.018406 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005025 | 0.055276 | null | null | 0.040201 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4092297166def263bdc7a0fcfa5b2a8fcee8518e | 764 | py | Python | Server APP/epl/rest/urls.py | seanjohn85/Premier-League | 61c1406733e9c6fb282f8a4544a2f16cd6ff80a0 | [
"MIT"
] | null | null | null | Server APP/epl/rest/urls.py | seanjohn85/Premier-League | 61c1406733e9c6fb282f8a4544a2f16cd6ff80a0 | [
"MIT"
] | null | null | null | Server APP/epl/rest/urls.py | seanjohn85/Premier-League | 61c1406733e9c6fb282f8a4544a2f16cd6ff80a0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sun Dec 24 18:01:21 2017
@author: johnkenny
"""
from django.conf.urls import url
from django.conf import settings
from django.conf.urls.static import static
from . import views
#from rest_framework import routers
urlpatterns = [
url(r'^hello',... | 26.344828 | 67 | 0.657068 | 106 | 764 | 4.660377 | 0.45283 | 0.05668 | 0.08502 | 0.072874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021875 | 0.162304 | 764 | 29 | 67 | 26.344828 | 0.75 | 0.29712 | 0 | 0 | 0 | 0 | 0.137143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
40924d24f0cbd15bd83466e1481d267df38696fe | 2,851 | py | Python | elastica/_linalg.py | merozlab/PyElastica | 1d8c354a25846f63073809e3a809f27a150c3b9c | [
"MIT"
] | null | null | null | elastica/_linalg.py | merozlab/PyElastica | 1d8c354a25846f63073809e3a809f27a150c3b9c | [
"MIT"
] | null | null | null | elastica/_linalg.py | merozlab/PyElastica | 1d8c354a25846f63073809e3a809f27a150c3b9c | [
"MIT"
] | 1 | 2021-01-21T15:42:58.000Z | 2021-01-21T15:42:58.000Z | __doc__ = """ Convenient linear algebra kernels """
import numpy as np
import functools
from itertools import permutations
from .utils import perm_parity
@functools.lru_cache(maxsize=1)
def levi_civita_tensor(dim):
"""
Creates levi civita tensor for cross product of
vector in different directions.
P... | 29.391753 | 111 | 0.680463 | 375 | 2,851 | 5.021333 | 0.314667 | 0.118959 | 0.070101 | 0.086033 | 0.545406 | 0.545406 | 0.420074 | 0.369092 | 0.369092 | 0.314392 | 0 | 0.021904 | 0.215363 | 2,851 | 96 | 112 | 29.697917 | 0.817166 | 0.586461 | 0 | 0 | 0 | 0 | 0.073607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
40949e2146af53638f1ee2e2a1ba02f86d237d5c | 534 | py | Python | api/resources_portal/models/associations/grant_material_association.py | AlexsLemonade/resources-portal | d91c6c8d6135461faccbc78ef2b0be3f9b358f21 | [
"BSD-3-Clause"
] | null | null | null | api/resources_portal/models/associations/grant_material_association.py | AlexsLemonade/resources-portal | d91c6c8d6135461faccbc78ef2b0be3f9b358f21 | [
"BSD-3-Clause"
] | 536 | 2019-11-13T15:49:03.000Z | 2022-03-28T20:17:24.000Z | api/resources_portal/models/associations/grant_material_association.py | AlexsLemonade/resources-portal | d91c6c8d6135461faccbc78ef2b0be3f9b358f21 | [
"BSD-3-Clause"
] | 1 | 2020-04-03T02:07:29.000Z | 2020-04-03T02:07:29.000Z | from django.db import models
from resources_portal.models.grant import Grant
from resources_portal.models.material import Material
class GrantMaterialAssociation(models.Model):
grant = models.ForeignKey(Grant, blank=False, null=False, on_delete=models.CASCADE)
material = models.ForeignKey(Material, blank=Fa... | 33.375 | 93 | 0.769663 | 66 | 534 | 6.060606 | 0.469697 | 0.065 | 0.095 | 0.125 | 0.2 | 0.2 | 0.2 | 0.2 | 0 | 0 | 0 | 0 | 0.140449 | 534 | 15 | 94 | 35.6 | 0.87146 | 0 | 0 | 0 | 0 | 0 | 0.074906 | 0.050562 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
409e826434e7c544e5c38251023465ef624f7f61 | 2,315 | py | Python | Commerce/auctions/models.py | kmcclenn/Commerce-Project | 08940cf1e506c215e48c2ff5fc459b1d299c4108 | [
"MIT"
] | null | null | null | Commerce/auctions/models.py | kmcclenn/Commerce-Project | 08940cf1e506c215e48c2ff5fc459b1d299c4108 | [
"MIT"
] | null | null | null | Commerce/auctions/models.py | kmcclenn/Commerce-Project | 08940cf1e506c215e48c2ff5fc459b1d299c4108 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import AbstractUser
from django.db import models
# Listings model
class Listings(models.Model):
choices = [(None, "Choose Category"), ("Toys", "Toys"), ("Electronics", "Electronics"), ("Fashion", "Fashion"), ("Home", "Home"), ("Arts and Crafts", "Arts and Crafts"), ("Books"... | 41.339286 | 287 | 0.67041 | 261 | 2,315 | 5.793103 | 0.333333 | 0.050926 | 0.055556 | 0.083333 | 0.397487 | 0.277116 | 0.249339 | 0.233466 | 0.233466 | 0.199074 | 0 | 0.002191 | 0.211231 | 2,315 | 55 | 288 | 42.090909 | 0.825849 | 0.073002 | 0 | 0.184211 | 0 | 0 | 0.159539 | 0.012013 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0.052632 | 0.868421 | 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 |
409f7357b6ccd767815f5cdf5e8c476e1bb53640 | 3,767 | py | Python | trashtalk/core.py | PTank/trashtalk | 1fc539f1fbe02342fce8f18d5365cfad1902ead8 | [
"MIT"
] | null | null | null | trashtalk/core.py | PTank/trashtalk | 1fc539f1fbe02342fce8f18d5365cfad1902ead8 | [
"MIT"
] | null | null | null | trashtalk/core.py | PTank/trashtalk | 1fc539f1fbe02342fce8f18d5365cfad1902ead8 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
"""
Option parser and the main function
"""
from __future__ import print_function, absolute_import
import argparse
from trashtalk.generate_trashs import generate_trashs
import sys
from trashtalk.tools import print_files
__all__ = ["trashtalk"]
def parse_option(args=None):
parser = argpars... | 39.652632 | 80 | 0.570746 | 441 | 3,767 | 4.739229 | 0.256236 | 0.084211 | 0.064593 | 0.052632 | 0.183254 | 0.109569 | 0.038278 | 0.038278 | 0 | 0 | 0 | 0.005006 | 0.310592 | 3,767 | 94 | 81 | 40.074468 | 0.799769 | 0.025219 | 0 | 0 | 1 | 0 | 0.180005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.073171 | 0 | 0.121951 | 0.121951 | 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 |
40a225096979598b51995b031de24b33d1bc6ac3 | 750 | py | Python | SCC/MC/control.py | Coder-Pham/SCC_application | 84483c8dc86fcf6eef5a9560467b7eff5347ad96 | [
"Apache-2.0"
] | null | null | null | SCC/MC/control.py | Coder-Pham/SCC_application | 84483c8dc86fcf6eef5a9560467b7eff5347ad96 | [
"Apache-2.0"
] | null | null | null | SCC/MC/control.py | Coder-Pham/SCC_application | 84483c8dc86fcf6eef5a9560467b7eff5347ad96 | [
"Apache-2.0"
] | null | null | null | import paho.mqtt.client as mqtt
from store_Sensor_data import sensor_Data_Handler
# MQTT Settings
MQTT_Broker = "23.97.54.16"
MQTT_Port = 1883
Keep_Alive_Interval = 45
MQTT_Topic = "Home/Control"
#Subscribe to all Sensors at Base Topic
def on_connect(mosq, obj, rc):
mqttc.subscribe(MQTT_Topic, 0)
#Save Dat... | 30 | 69 | 0.764 | 118 | 750 | 4.627119 | 0.5 | 0.054945 | 0.062271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0.146667 | 750 | 25 | 70 | 30 | 0.829688 | 0.174667 | 0 | 0 | 0 | 0 | 0.039049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0.111111 | 0 | 0.277778 | 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 |
40a4fa17a95bcfd4e3caecaf605b4bb24b7debc8 | 1,990 | py | Python | src/valr_python/enum.py | duncan-lumina/valr-python | 9c94b76990416b4b709d507b538bd8265ed51312 | [
"MIT"
] | null | null | null | src/valr_python/enum.py | duncan-lumina/valr-python | 9c94b76990416b4b709d507b538bd8265ed51312 | [
"MIT"
] | null | null | null | src/valr_python/enum.py | duncan-lumina/valr-python | 9c94b76990416b4b709d507b538bd8265ed51312 | [
"MIT"
] | null | null | null | from enum import Enum
from enum import auto
__all__ = (
'WebSocketType',
'MessageFeedType',
'TradeEvent',
'AccountEvent',
'OrderStatusType',
'TransactionType',
'CurrencyPair',
)
class NameStrEnum(Enum):
def __str__(self):
return str(self.name)
class Side(NameStrEnum):
S... | 21.170213 | 49 | 0.662312 | 207 | 1,990 | 6.072464 | 0.36715 | 0.042959 | 0.050915 | 0.039777 | 0.046142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230151 | 1,990 | 93 | 50 | 21.397849 | 0.820496 | 0 | 0 | 0.027397 | 0 | 0 | 0.056281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013699 | false | 0 | 0.027397 | 0.013699 | 0.876712 | 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 |
40a6def4792f2139e4db17bf85feee9d5be82e97 | 6,278 | py | Python | versiontools_support.py | stephenbm/pastry | bb92e615765cf1244617db2bf02891d18d3b5d65 | [
"MIT"
] | null | null | null | versiontools_support.py | stephenbm/pastry | bb92e615765cf1244617db2bf02891d18d3b5d65 | [
"MIT"
] | null | null | null | versiontools_support.py | stephenbm/pastry | bb92e615765cf1244617db2bf02891d18d3b5d65 | [
"MIT"
] | null | null | null | # Copyright (C) 2012 Linaro Limited
#
# Author: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
#
# This file is part of versiontools.
#
# versiontools is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Softwa... | 43 | 86 | 0.72985 | 835 | 6,278 | 5.428743 | 0.372455 | 0.022943 | 0.04368 | 0.006177 | 0.033532 | 0.025149 | 0.015001 | 0 | 0 | 0 | 0 | 0.002652 | 0.219178 | 6,278 | 145 | 87 | 43.296552 | 0.922073 | 0.666932 | 0 | 0.193548 | 0 | 0 | 0.021193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.129032 | 0 | 0.516129 | 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 |
40ae91365fd42d2e8bbb4563ccfa2c1d76292abe | 297 | py | Python | Primenumbers.py | OlgaGesare/probable-memory | a0247a22e63c0f014f4e48fc3c44a73ef47f58a7 | [
"MIT"
] | null | null | null | Primenumbers.py | OlgaGesare/probable-memory | a0247a22e63c0f014f4e48fc3c44a73ef47f58a7 | [
"MIT"
] | null | null | null | Primenumbers.py | OlgaGesare/probable-memory | a0247a22e63c0f014f4e48fc3c44a73ef47f58a7 | [
"MIT"
] | null | null | null | def prime_number(n):
primenumber = [2]
init = 3
count = 1
while count < n:
for item in primenumber:
if init % item == 0:
break
else:
primenumber.append(init)
init += 2
count += 1
return primenumber
print prime_number(3) | 18.5625 | 33 | 0.52862 | 36 | 297 | 4.305556 | 0.583333 | 0.141935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.387205 | 297 | 16 | 34 | 18.5625 | 0.813187 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
40af22bef4570ecd24d57db9b8e12f4b3f6e3f9b | 11,883 | py | Python | example/_inner_test.py | Shadow-linux/ex_dataclass | 1fe186ea990f6f2337fb7ee6b6ba54fa7791afa0 | [
"MIT"
] | 18 | 2021-06-29T11:12:42.000Z | 2022-03-31T20:31:10.000Z | example/_inner_test.py | Shadow-linux/ex_dataclass | 1fe186ea990f6f2337fb7ee6b6ba54fa7791afa0 | [
"MIT"
] | 1 | 2021-06-30T03:12:46.000Z | 2021-06-30T03:12:46.000Z | example/_inner_test.py | Shadow-linux/ex_dataclass | 1fe186ea990f6f2337fb7ee6b6ba54fa7791afa0 | [
"MIT"
] | 3 | 2021-06-29T11:12:43.000Z | 2021-07-08T08:16:12.000Z | import json
import typing
from ex_dataclass import ex_dataclass, asdict, field, Field_, EXpack
print("=" * 50 + " basic " + "=" * 50)
@ex_dataclass(ex_debug=False)
class ExampleA:
"""
test type: int, str, float, list, dict, typing.List, typing.Dict
"""
int_: int = field(default_factory=int)
str_... | 25.016842 | 103 | 0.619036 | 1,622 | 11,883 | 4.345253 | 0.086313 | 0.120885 | 0.188706 | 0.081158 | 0.557179 | 0.477582 | 0.369183 | 0.322928 | 0.293842 | 0.242764 | 0 | 0.040525 | 0.21089 | 11,883 | 474 | 104 | 25.06962 | 0.711102 | 0.061096 | 0 | 0.362857 | 0 | 0 | 0.066372 | 0 | 0.031429 | 0 | 0 | 0 | 0.097143 | 1 | 0.008571 | false | 0 | 0.011429 | 0.002857 | 0.3 | 0.114286 | 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 |
40b11807882a7eff390d825d4d24bbc5987060be | 3,043 | py | Python | biostar/planet/models.py | alahijani/biostar-central | 886c6ffa83b919dd47ff6709bfd4957771509c2f | [
"MIT"
] | null | null | null | biostar/planet/models.py | alahijani/biostar-central | 886c6ffa83b919dd47ff6709bfd4957771509c2f | [
"MIT"
] | null | null | null | biostar/planet/models.py | alahijani/biostar-central | 886c6ffa83b919dd47ff6709bfd4957771509c2f | [
"MIT"
] | null | null | null | from django.db import models
from django.conf import settings
import os, logging, datetime
from urllib import request
import feedparser
from django.utils.timezone import utc
import uuid
logger = logging.getLogger("engine")
def now():
return datetime.datetime.utcnow().replace(tzinfo=utc)
def abspath(*args):
... | 25.14876 | 66 | 0.64673 | 392 | 3,043 | 4.94898 | 0.385204 | 0.018557 | 0.027835 | 0.037113 | 0.168041 | 0.12268 | 0.07732 | 0.038144 | 0 | 0 | 0 | 0.009586 | 0.24581 | 3,043 | 120 | 67 | 25.358333 | 0.83573 | 0.13605 | 0 | 0.176471 | 0 | 0 | 0.050459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.161765 | false | 0 | 0.102941 | 0.088235 | 0.676471 | 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 |
40b231902b3583423b764726c3f891409b6df490 | 945 | py | Python | Additional_File/16_ClearDM/cleardm.py | nomrsavage/Discord-All-Tools-In-One | 81240267b974e8b67b1e1315d36115a40226923b | [
"MIT"
] | 197 | 2021-09-02T18:05:49.000Z | 2022-03-30T16:42:07.000Z | Additional_File/16_ClearDM/cleardm.py | chipynr1/Discord-All-Tools-In-One | 6fe223fb08cac318d786d277093446644fc104d6 | [
"MIT"
] | 26 | 2021-09-03T23:58:00.000Z | 2022-03-18T07:14:49.000Z | Additional_File/16_ClearDM/cleardm.py | chipynr1/Discord-All-Tools-In-One | 6fe223fb08cac318d786d277093446644fc104d6 | [
"MIT"
] | 84 | 2021-09-08T17:19:40.000Z | 2022-03-26T11:34:42.000Z | import os, os.path, discord
from discord.ext import commands
from colorama import Fore
os.system('cls' if os.name == 'nt' else 'clear')
cleardmtitle()
print(f"""{y}[{w}+{y}]{w} Enter your token""")
token = input(f"""{y}[{b}#{y}]{w} Token: """)
print(f"""\n{y}[{b}#{y}]{w} Write "!clear" in one of your DMs to de... | 31.5 | 90 | 0.568254 | 142 | 945 | 3.760563 | 0.507042 | 0.026217 | 0.016854 | 0.022472 | 0.022472 | 0.022472 | 0 | 0 | 0 | 0 | 0 | 0.005594 | 0.243386 | 945 | 30 | 91 | 31.5 | 0.741259 | 0 | 0 | 0 | 0 | 0.076923 | 0.267176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.115385 | 0.115385 | 0 | 0.115385 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
40b71be8904d4fa45d3f8bddb0474a83211f95ef | 2,781 | py | Python | lbryum/socket_pipe.py | rahulkumaran/lbryum | 2c949de0ecd59a12fe0d88407bc3d7b9bd5b2e7e | [
"MIT"
] | null | null | null | lbryum/socket_pipe.py | rahulkumaran/lbryum | 2c949de0ecd59a12fe0d88407bc3d7b9bd5b2e7e | [
"MIT"
] | null | null | null | lbryum/socket_pipe.py | rahulkumaran/lbryum | 2c949de0ecd59a12fe0d88407bc3d7b9bd5b2e7e | [
"MIT"
] | null | null | null | import errno
import json
import logging
import socket
import ssl
import sys
import time
import traceback
from lbryum.errors import Timeout
log = logging.getLogger(__name__)
def parse_json(message):
n = message.find('\n')
if n == -1:
return None, message
try:
j = json.loads(message[0:n])
... | 28.377551 | 98 | 0.495505 | 308 | 2,781 | 4.399351 | 0.318182 | 0.0369 | 0.02952 | 0.024354 | 0.138007 | 0.033948 | 0 | 0 | 0 | 0 | 0 | 0.018834 | 0.408127 | 2,781 | 97 | 99 | 28.670103 | 0.804374 | 0.037037 | 0 | 0.277108 | 0 | 0 | 0.043364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.108434 | null | null | 0.024096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
40be54de8cf1ffec923828c5d34867fd7a1c1862 | 838 | py | Python | setup.py | LearningLearning9/klimawatch | 387bd2bf99f0fd70c6f84d295ddfcf858b66eba3 | [
"Apache-2.0"
] | null | null | null | setup.py | LearningLearning9/klimawatch | 387bd2bf99f0fd70c6f84d295ddfcf858b66eba3 | [
"Apache-2.0"
] | null | null | null | setup.py | LearningLearning9/klimawatch | 387bd2bf99f0fd70c6f84d295ddfcf858b66eba3 | [
"Apache-2.0"
] | null | null | null | from setuptools import find_packages, setup
setup(
name="Klimawatch",
description="Ein Open Data-Plattform zur Darstellung von kommunalen CO2-Emissionen und Schutzkonzepten",
version="0.1.0",
author="Code for Germany",
author_email="muenster@codefor.de",
url="https://klimawatch.de/",
classi... | 27.032258 | 108 | 0.553699 | 83 | 838 | 5.518072 | 0.771084 | 0.052402 | 0.10917 | 0.113537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025168 | 0.288783 | 838 | 30 | 109 | 27.933333 | 0.743289 | 0 | 0 | 0.068966 | 0 | 0 | 0.420048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.034483 | 0 | 0.034483 | 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 |
40c4b4b9204e1c165cb3472cb051aa61cc11381e | 2,217 | py | Python | what_if_calculator_demo/__init__.py | UMBEE/modified-otree-snippets | 23b5baa28edc04b5a8c8d7607567ef29383b6777 | [
"MIT"
] | null | null | null | what_if_calculator_demo/__init__.py | UMBEE/modified-otree-snippets | 23b5baa28edc04b5a8c8d7607567ef29383b6777 | [
"MIT"
] | 1 | 2022-02-03T18:27:00.000Z | 2022-02-03T20:01:50.000Z | what_if_calculator_demo/__init__.py | UMBEE/modified-otree-snippets | 23b5baa28edc04b5a8c8d7607567ef29383b6777 | [
"MIT"
] | null | null | null | from otree.api import *
doc = """
Your app description
"""
class EXP_DemandFunction:
high_demand_max = 100
high_demand_price_coef = -1
low_demand_max = 100
low_demand_price_coef = -2
def high_demand(price):
return high_demand_max + high_demand_price_coef * price
def low_demand(pric... | 22.17 | 82 | 0.66802 | 267 | 2,217 | 5.314607 | 0.393258 | 0.046512 | 0.042283 | 0.026779 | 0.059197 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015366 | 0.236807 | 2,217 | 99 | 83 | 22.393939 | 0.822104 | 0.023906 | 0 | 0.09375 | 0 | 0 | 0.049537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.03125 | 0.015625 | 0.046875 | 0.609375 | 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 |
40cd6864cc9a9aafe55481b9155a360f461f8c1a | 15,592 | py | Python | accelbyte_py_sdk/api/platform/models/catalog_change_info.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/api/platform/models/catalog_change_info.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | 1 | 2021-10-13T03:46:58.000Z | 2021-10-13T03:46:58.000Z | accelbyte_py_sdk/api/platform/models/catalog_change_info.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template file: justice_py_sdk_codegen/__main__.py
# justice-platform-service (4.10.0)
# pylint: disabl... | 36.176334 | 172 | 0.555798 | 1,575 | 15,592 | 5.328889 | 0.099048 | 0.064339 | 0.057191 | 0.046586 | 0.26677 | 0.115811 | 0.017872 | 0.009532 | 0.009532 | 0 | 0 | 0.000781 | 0.343189 | 15,592 | 430 | 173 | 36.260465 | 0.818768 | 0.113327 | 0 | 0.196262 | 1 | 0 | 0.093376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074766 | false | 0 | 0.012461 | 0.015576 | 0.283489 | 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 |
40d46e5bb4e2933672e41d04f41dce11278495ff | 6,961 | py | Python | huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_resource_history_request.py | huaweicloud/huaweicloud-sdk-python-v3 | 7a6270390fcbf192b3882bf763e7016e6026ef78 | [
"Apache-2.0"
] | 64 | 2020-06-12T07:05:07.000Z | 2022-03-30T03:32:50.000Z | huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_resource_history_request.py | huaweicloud/huaweicloud-sdk-python-v3 | 7a6270390fcbf192b3882bf763e7016e6026ef78 | [
"Apache-2.0"
] | 11 | 2020-07-06T07:56:54.000Z | 2022-01-11T11:14:40.000Z | huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_resource_history_request.py | huaweicloud/huaweicloud-sdk-python-v3 | 7a6270390fcbf192b3882bf763e7016e6026ef78 | [
"Apache-2.0"
] | 24 | 2020-06-08T11:42:13.000Z | 2022-03-04T06:44:08.000Z | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowResourceHistoryRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict):... | 27.955823 | 128 | 0.604942 | 720 | 6,961 | 5.648611 | 0.161111 | 0.035407 | 0.188837 | 0.070814 | 0.491271 | 0.391443 | 0.300467 | 0.204082 | 0.089993 | 0.018687 | 0 | 0.001257 | 0.314179 | 6,961 | 248 | 129 | 28.068548 | 0.850649 | 0.341187 | 0 | 0.087719 | 0 | 0 | 0.05826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.04386 | 0 | 0.342105 | 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 |
40d9f5b084a1c4f4d1021d706ee023efc79a3d60 | 1,514 | py | Python | src/tictactoe_environment_random.py | InsaneMonster/TicTacToeRL | 2c1a7da40f32d8ff8dbb5aaafcae5a4f16d20bf2 | [
"BSD-3-Clause"
] | null | null | null | src/tictactoe_environment_random.py | InsaneMonster/TicTacToeRL | 2c1a7da40f32d8ff8dbb5aaafcae5a4f16d20bf2 | [
"BSD-3-Clause"
] | null | null | null | src/tictactoe_environment_random.py | InsaneMonster/TicTacToeRL | 2c1a7da40f32d8ff8dbb5aaafcae5a4f16d20bf2 | [
"BSD-3-Clause"
] | null | null | null | #
# Copyright (C) 2019 Luca Pasqualini
# University of Siena - Artificial Intelligence Laboratory - SAILab
#
#
# TicTacToeRL project is licensed under a BSD 3-Clause.
#
# You should have received a copy of the license along with this
# work. If not, see <https://opensource.org/licenses/BSD-3-Clause>.
# Import packages... | 34.409091 | 151 | 0.639366 | 161 | 1,514 | 5.78882 | 0.490683 | 0.127682 | 0.064378 | 0.042918 | 0.22103 | 0.165236 | 0.165236 | 0 | 0 | 0 | 0 | 0.005644 | 0.297886 | 1,514 | 43 | 152 | 35.209302 | 0.871119 | 0.307133 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0.111111 | 0.444444 | 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 |
40da75008b0d549160e97c3b9b70aec34476ef3a | 1,926 | py | Python | check_entities_classes.py | Thukyd/EntityCheck | 9b07a127ee085c7f4e24d70fb722e86b447ae822 | [
"MIT"
] | null | null | null | check_entities_classes.py | Thukyd/EntityCheck | 9b07a127ee085c7f4e24d70fb722e86b447ae822 | [
"MIT"
] | null | null | null | check_entities_classes.py | Thukyd/EntityCheck | 9b07a127ee085c7f4e24d70fb722e86b447ae822 | [
"MIT"
] | null | null | null | ##########
# check for duplicates and empty elements
import os,glob
import csv
folder_path = "csv_entities/"
found_values = set()
class ReadInAllFiles():
def __init__(self, folder):
for filepath in glob.glob(os.path.join(folder_path, "*.csv")):
# set filename
filpathSplit = filepat... | 35.018182 | 96 | 0.454309 | 190 | 1,926 | 4.526316 | 0.457895 | 0.046512 | 0.030233 | 0.02093 | 0.065116 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00385 | 0.46054 | 1,926 | 54 | 97 | 35.666667 | 0.823869 | 0.215992 | 0 | 0 | 0 | 0 | 0.058345 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.142857 | 0.178571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
40dc73c47e3a6165ea5e5c2aea156c50f36c2bf8 | 439 | py | Python | core/migrations/0008_auto_20170519_1612.py | Suleymanov2006/ansible-manager | 57397c12e49611a5cc6197ecd184222caabf1361 | [
"MIT"
] | 13 | 2017-03-18T06:03:43.000Z | 2020-02-15T03:42:28.000Z | core/migrations/0008_auto_20170519_1612.py | Suleymanov2006/ansible-manager | 57397c12e49611a5cc6197ecd184222caabf1361 | [
"MIT"
] | 78 | 2017-03-17T18:16:32.000Z | 2018-10-26T11:58:20.000Z | core/migrations/0008_auto_20170519_1612.py | Suleymanov2006/ansible-manager | 57397c12e49611a5cc6197ecd184222caabf1361 | [
"MIT"
] | 6 | 2017-03-19T13:41:29.000Z | 2019-09-11T21:36:52.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-05-19 16:12
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0007_auto_20170510_1555'),
]
operations = [
migrations.RenameField(
... | 20.904762 | 48 | 0.615034 | 49 | 439 | 5.244898 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103125 | 0.271071 | 439 | 20 | 49 | 21.95 | 0.7 | 0.154897 | 0 | 0 | 1 | 0 | 0.160326 | 0.0625 | 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 |
40deb5b485f03c1921b49beabf1f352de4fa14c8 | 873 | py | Python | video-streamer/python/ccai_stream/__init__.py | intel/cloud-client-ai-service-framework | 01676b08878f7a58201854aedb181134eafef7a2 | [
"Apache-2.0"
] | 3 | 2022-03-25T17:28:53.000Z | 2022-03-29T03:30:25.000Z | video-streamer/python/ccai_stream/__init__.py | intel/cloud-client-ai-service-framework | 01676b08878f7a58201854aedb181134eafef7a2 | [
"Apache-2.0"
] | null | null | null | video-streamer/python/ccai_stream/__init__.py | intel/cloud-client-ai-service-framework | 01676b08878f7a58201854aedb181134eafef7a2 | [
"Apache-2.0"
] | 1 | 2022-03-27T12:44:19.000Z | 2022-03-27T12:44:19.000Z | # Copyright (C) 2021 Intel Corporation
from ctypes import cdll
cs = cdll.LoadLibrary("libccai_stream.so")
cs.ccai_stream_init()
def _to_b(s):
if s == None:
return None
else:
return s.encode('utf-8')
class pipeline:
def __init__(self, name, user_data=None):
self.handle = cs.ccai_s... | 25.676471 | 68 | 0.639175 | 123 | 873 | 4.219512 | 0.365854 | 0.092486 | 0.115607 | 0.154143 | 0.219653 | 0.219653 | 0.138728 | 0.138728 | 0 | 0 | 0 | 0.009259 | 0.257732 | 873 | 33 | 69 | 26.454545 | 0.791667 | 0.041237 | 0 | 0.083333 | 0 | 0 | 0.06235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 0 | 0.458333 | 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 |
40dff10cc20de30dd15a0dcf3ccfb0ecde41929f | 584 | py | Python | setup.py | ELKHMISSI/Project | 5f0f770f127450d596d918ddf67c11a8a52b9aca | [
"MIT"
] | null | null | null | setup.py | ELKHMISSI/Project | 5f0f770f127450d596d918ddf67c11a8a52b9aca | [
"MIT"
] | null | null | null | setup.py | ELKHMISSI/Project | 5f0f770f127450d596d918ddf67c11a8a52b9aca | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
import os
import deloqv
setup(name = 'deloqv',
version = '0.1.1',
url='https://github.com/ELKHMISSI/Project.git',
author = 'EL KHMISSI, NIASSE, FONTANA',
author_email = 'mohamed.el-khmissi01@etu.umontpellier.fr',
maintainer = 'EL KHMISSI, NIASSE... | 34.352941 | 68 | 0.65411 | 65 | 584 | 5.830769 | 0.676923 | 0.047493 | 0.079156 | 0.116095 | 0.211082 | 0.211082 | 0.211082 | 0 | 0 | 0 | 0 | 0.015284 | 0.215753 | 584 | 17 | 69 | 34.352941 | 0.812227 | 0 | 0 | 0 | 0 | 0 | 0.430769 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1875 | 0 | 0.1875 | 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 |
40e4937ad1de37f37b4ac2fc3c3a0324e7c21653 | 2,279 | py | Python | tests/test_base_handlers.py | topless/invenio-oauthclient | 734e5df74e9d68ea98ab25e30da3e0ecd85ecdfb | [
"MIT"
] | null | null | null | tests/test_base_handlers.py | topless/invenio-oauthclient | 734e5df74e9d68ea98ab25e30da3e0ecd85ecdfb | [
"MIT"
] | null | null | null | tests/test_base_handlers.py | topless/invenio-oauthclient | 734e5df74e9d68ea98ab25e30da3e0ecd85ecdfb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016-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.
"""Test handlers."""
from __future__ import absolute_import, print_function
import ... | 34.014925 | 78 | 0.75735 | 279 | 2,279 | 5.971326 | 0.433692 | 0.046218 | 0.092437 | 0.032413 | 0.10084 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008368 | 0.161036 | 2,279 | 66 | 79 | 34.530303 | 0.862971 | 0.172883 | 0 | 0.05 | 0 | 0 | 0.122647 | 0.015062 | 0 | 0 | 0 | 0 | 0.075 | 1 | 0.05 | false | 0 | 0.4 | 0 | 0.45 | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
40e770346334703f058ca2abcf4ad825b6efdb64 | 222 | py | Python | modelci/experimental/finetuner/__init__.py | FerdinandZhong/ML-Model-CI | 90fa2de056dca05031f0787b96c520dc57dc664d | [
"Apache-2.0"
] | 170 | 2020-06-08T18:30:52.000Z | 2022-03-28T12:08:11.000Z | modelci/experimental/finetuner/__init__.py | FerdinandZhong/ML-Model-CI | 90fa2de056dca05031f0787b96c520dc57dc664d | [
"Apache-2.0"
] | 146 | 2020-06-14T18:56:27.000Z | 2022-02-27T21:15:59.000Z | modelci/experimental/finetuner/__init__.py | FerdinandZhong/ML-Model-CI | 90fa2de056dca05031f0787b96c520dc57dc664d | [
"Apache-2.0"
] | 36 | 2020-06-08T18:30:56.000Z | 2022-03-07T18:10:19.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Author: Li Yuanming
Email: yli056@e.ntu.edu.sg
Date: 1/12/2021
"""
from pathlib import Path
OUTPUT_DIR = Path.home() / 'tmp'
OUTPUT_DIR.mkdir(parents=True, exist_ok=True)
| 18.5 | 45 | 0.684685 | 37 | 222 | 4.027027 | 0.891892 | 0.120805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056701 | 0.126126 | 222 | 11 | 46 | 20.181818 | 0.71134 | 0.472973 | 0 | 0 | 0 | 0 | 0.027778 | 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 |
40ea4025ac721e89b555bdf202cc6352515b2654 | 1,485 | py | Python | questionc/main.py | atilaromero/atila_romero_test | 1676bff0e8e9704a9d42a28ebbca3179ef592fd7 | [
"MIT"
] | null | null | null | questionc/main.py | atilaromero/atila_romero_test | 1676bff0e8e9704a9d42a28ebbca3179ef592fd7 | [
"MIT"
] | null | null | null | questionc/main.py | atilaromero/atila_romero_test | 1676bff0e8e9704a9d42a28ebbca3179ef592fd7 | [
"MIT"
] | null | null | null | from atila_romero_geolrucache import GeoLRUCache
import sys
def loadcb(key):
print('calculating square of', key)
return key**2
def main(myport, peerport, timeoutseconds, cachesize=None):
"""
For each line read from stdin, the program will calculate its square, or retrieve it from cache. It expects one... | 34.534884 | 132 | 0.622222 | 172 | 1,485 | 5.284884 | 0.447674 | 0.077008 | 0.123212 | 0.162816 | 0.090209 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003777 | 0.286869 | 1,485 | 43 | 133 | 34.534884 | 0.85458 | 0.180471 | 0 | 0.194444 | 0 | 0 | 0.124791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.138889 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
40eefb2f991483887c8a7edf932b1d5b274ba71b | 4,936 | py | Python | tests/unit/test_profile.py | RichardLitt/h | f98d7e19a7913c82a3d3c43c226994366ebd3009 | [
"MIT"
] | null | null | null | tests/unit/test_profile.py | RichardLitt/h | f98d7e19a7913c82a3d3c43c226994366ebd3009 | [
"MIT"
] | null | null | null | tests/unit/test_profile.py | RichardLitt/h | f98d7e19a7913c82a3d3c43c226994366ebd3009 | [
"MIT"
] | null | null | null | from mock import patch, Mock, MagicMock
from pyramid.testing import DummyRequest, testConfig
from horus.interfaces import IUserClass, IActivationClass, IUIStrings, IProfileSchema, IProfileForm
from horus.schemas import ProfileSchema
from horus.forms import SubmitForm
from horus.models import UserMixin, ActivationMixin... | 38.263566 | 99 | 0.668152 | 535 | 4,936 | 5.970093 | 0.2 | 0.033813 | 0.035066 | 0.026299 | 0.507827 | 0.460551 | 0.460551 | 0.460551 | 0.460551 | 0.424546 | 0 | 0.000269 | 0.248177 | 4,936 | 128 | 100 | 38.5625 | 0.860415 | 0.065438 | 0 | 0.477778 | 0 | 0 | 0.101158 | 0.076032 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.122222 | false | 0.177778 | 0.111111 | 0.044444 | 0.311111 | 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 |
40ff3f3bb8cd418a8515c513c7623334a738b668 | 510 | py | Python | src/db/models/user.py | jsbecerrab/Loka-prueba-backend | d47250a68e3e28375c0b8e0a6cdf78223b0d12cd | [
"MIT"
] | null | null | null | src/db/models/user.py | jsbecerrab/Loka-prueba-backend | d47250a68e3e28375c0b8e0a6cdf78223b0d12cd | [
"MIT"
] | null | null | null | src/db/models/user.py | jsbecerrab/Loka-prueba-backend | d47250a68e3e28375c0b8e0a6cdf78223b0d12cd | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, String, DateTime
from sqlalchemy.orm import relationship
from ..database import Base
class User(Base):
__tablename__ = "users"
id = Column(Integer, primary_key=True, index=True)
spotify_id = Column(String, unique=True, index=True)
name = Column(String, nullabl... | 30 | 64 | 0.735294 | 61 | 510 | 6 | 0.557377 | 0.106557 | 0.071038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164706 | 510 | 17 | 64 | 30 | 0.859155 | 0 | 0 | 0 | 0 | 0 | 0.035225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dc05e7b61fa300e7d466649dd4cef67595a325dc | 2,529 | py | Python | python/pyares/pyares/tests/simulation00.py | madlag/mars | 73f1773ed1c1037c058c668b5e407029f794a3f7 | [
"Apache-2.0"
] | 4 | 2022-03-08T13:01:52.000Z | 2022-03-21T15:46:04.000Z | python/pyares/pyares/tests/simulation00.py | madlag/mars | 73f1773ed1c1037c058c668b5e407029f794a3f7 | [
"Apache-2.0"
] | null | null | null | python/pyares/pyares/tests/simulation00.py | madlag/mars | 73f1773ed1c1037c058c668b5e407029f794a3f7 | [
"Apache-2.0"
] | null | null | null | import unittest
from unittest import TestCase
import pyares.chemistry as chemistry
import cantera
class TestFun(TestCase):
def test_units(self):
g = chemistry.SupplyGraph()
t = g.temperature(20, "degC")
self.assertEqual(str(t), "293.15 kelvin")
t = g.pressure(20, "bar")
sel... | 34.643836 | 134 | 0.60261 | 326 | 2,529 | 4.588957 | 0.263804 | 0.02139 | 0.084225 | 0.083556 | 0.509358 | 0.462567 | 0.462567 | 0.462567 | 0.402406 | 0.402406 | 0 | 0.094709 | 0.252669 | 2,529 | 73 | 135 | 34.643836 | 0.696825 | 0.00949 | 0 | 0.224138 | 0 | 0.034483 | 0.134984 | 0.036741 | 0 | 0 | 0 | 0 | 0.12069 | 0 | null | null | 0 | 0.068966 | null | null | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dc069d0b0598bdb32564abbc82554b4a8b64bfc4 | 2,471 | gyp | Python | library/cpp-netlib/0.11.1-final.gyp | KjellSchubert/bru | dd70b721d07fbd27c57c845cc3a29cd8f2dfc587 | [
"MIT"
] | 3 | 2015-01-06T15:22:16.000Z | 2015-11-27T18:13:04.000Z | library/cpp-netlib/0.11.1-final.gyp | KjellSchubert/bru | dd70b721d07fbd27c57c845cc3a29cd8f2dfc587 | [
"MIT"
] | 7 | 2015-02-10T15:13:38.000Z | 2021-05-30T07:51:13.000Z | library/cpp-netlib/0.11.1-final.gyp | KjellSchubert/bru | dd70b721d07fbd27c57c845cc3a29cd8f2dfc587 | [
"MIT"
] | 3 | 2015-01-29T17:19:53.000Z | 2016-01-06T12:50:06.000Z | {
"targets": [
{
"target_name": "cpp-netlib",
"type": "static_library", # unlike boost-asio which is header-only
"include_dirs": [
"0.11.1-final/cpp-netlib-cpp-netlib-0.11.1-final"
],
"defines": [
"BOOST_NETWORK_ENAB... | 39.854839 | 108 | 0.485633 | 271 | 2,471 | 4.361624 | 0.387454 | 0.129442 | 0.040609 | 0.091371 | 0.481387 | 0.430626 | 0.430626 | 0.430626 | 0.430626 | 0.430626 | 0 | 0.040411 | 0.369081 | 2,471 | 61 | 109 | 40.508197 | 0.717768 | 0.229866 | 0 | 0.480769 | 0 | 0.096154 | 0.472237 | 0.380751 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dc06f229ae96de2fb0cd4d2f8a7a74662df199e2 | 5,490 | py | Python | retired/planners/connectivity_graph/edge.py | yijiangh/pyplanners | ef1ae33e233f20cd93ce03cba363b0f14fd078bc | [
"MIT"
] | 23 | 2017-11-13T23:56:25.000Z | 2022-02-12T08:56:28.000Z | retired/planners/connectivity_graph/edge.py | yijiangh/pyplanners | ef1ae33e233f20cd93ce03cba363b0f14fd078bc | [
"MIT"
] | 1 | 2022-01-04T17:07:47.000Z | 2022-01-04T17:07:47.000Z | retired/planners/connectivity_graph/edge.py | yijiangh/pyplanners | ef1ae33e233f20cd93ce03cba363b0f14fd078bc | [
"MIT"
] | 6 | 2017-07-13T07:21:13.000Z | 2022-03-25T08:21:57.000Z | from .utils import *
from planner.operators import Operator
from misc.utils import str_object
class Edge(object):
def __init__(self, value, rg):
self.value = value
self.rg = rg
self.connectors = []
self.intermediates = set()
#self.mappings = set() # (source_vertex, sink_vertex)
self.mappings ... | 36.357616 | 142 | 0.685792 | 731 | 5,490 | 4.964432 | 0.173735 | 0.099201 | 0.0248 | 0.048498 | 0.44916 | 0.366492 | 0.286029 | 0.266189 | 0.233122 | 0.193442 | 0 | 0.000937 | 0.222222 | 5,490 | 150 | 143 | 36.6 | 0.848946 | 0.181785 | 0 | 0.210526 | 0 | 0 | 0.02475 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.147368 | false | 0 | 0.031579 | 0.063158 | 0.305263 | 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 |
dc07e8660ed35ba165978a5a7d21250ae99af49b | 3,592 | py | Python | evmosproto/cosmos/auth/v1beta1/genesis_pb2.py | hanchon-live/evmosproto | 141f336cf027a88c5bf227ab49069dd1cf2e4853 | [
"MIT"
] | null | null | null | evmosproto/cosmos/auth/v1beta1/genesis_pb2.py | hanchon-live/evmosproto | 141f336cf027a88c5bf227ab49069dd1cf2e4853 | [
"MIT"
] | null | null | null | evmosproto/cosmos/auth/v1beta1/genesis_pb2.py | hanchon-live/evmosproto | 141f336cf027a88c5bf227ab49069dd1cf2e4853 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: cosmos/auth/v1beta1/genesis.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection... | 41.767442 | 432 | 0.792038 | 478 | 3,592 | 5.617155 | 0.292887 | 0.053259 | 0.069646 | 0.035754 | 0.366108 | 0.311359 | 0.175419 | 0.175419 | 0.103538 | 0.071508 | 0 | 0.043639 | 0.094098 | 3,592 | 85 | 433 | 42.258824 | 0.7815 | 0.082684 | 0 | 0.215385 | 1 | 0.015385 | 0.234166 | 0.191839 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107692 | 0 | 0.107692 | 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 |
dc0963cc2e1b14cedeb38ac3f834df535734a450 | 7,971 | py | Python | weather_maps/Jet_Thick_SLP.py | franzihe/Python_Masterthesis | f6acd3a98edb859f11c3f1cd2bc62e31065f5f4a | [
"MIT"
] | null | null | null | weather_maps/Jet_Thick_SLP.py | franzihe/Python_Masterthesis | f6acd3a98edb859f11c3f1cd2bc62e31065f5f4a | [
"MIT"
] | null | null | null | weather_maps/Jet_Thick_SLP.py | franzihe/Python_Masterthesis | f6acd3a98edb859f11c3f1cd2bc62e31065f5f4a | [
"MIT"
] | null | null | null |
# coding: utf-8
# # Jet, Thickness, SLP, and Moisture Map
# http://www.atmos.albany.edu/student/heathera/2016.html
# The Thickness, SLP, and Moisture map contains
# - 250-hPa wind speed (m s^-1, shaded according to the color bar)
# - 1000-500-hPa thickness (dashed contours every 6 dam)
# - SLP (solid con... | 29.305147 | 282 | 0.626396 | 1,199 | 7,971 | 4.139283 | 0.316097 | 0.019746 | 0.00544 | 0.00403 | 0.230506 | 0.161394 | 0.139633 | 0.122507 | 0.111626 | 0.074552 | 0 | 0.076491 | 0.196337 | 7,971 | 271 | 283 | 29.413284 | 0.698252 | 0.23987 | 0 | 0 | 0 | 0.006993 | 0.104969 | 0.022215 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055944 | 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 |
dc102703a45be874d3a7ede813a5a815ce5bdb02 | 693 | py | Python | app_uniplan/migrations/0020_student_profile_major_unitdata_unitguide_url.py | illegalbyte/uniplan | 1507a79679d38814591dfbe1bfe8332b632a2290 | [
"MIT"
] | null | null | null | app_uniplan/migrations/0020_student_profile_major_unitdata_unitguide_url.py | illegalbyte/uniplan | 1507a79679d38814591dfbe1bfe8332b632a2290 | [
"MIT"
] | null | null | null | app_uniplan/migrations/0020_student_profile_major_unitdata_unitguide_url.py | illegalbyte/uniplan | 1507a79679d38814591dfbe1bfe8332b632a2290 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-02-04 05:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app_uniplan', '0019_unitdata_assignment_unit_data'),
]
operations = [
migrations.AddField(
mode... | 27.72 | 136 | 0.633478 | 77 | 693 | 5.558442 | 0.61039 | 0.056075 | 0.065421 | 0.102804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036609 | 0.251082 | 693 | 24 | 137 | 28.875 | 0.788054 | 0.064935 | 0 | 0.222222 | 1 | 0 | 0.171827 | 0.091331 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
dc13f08a84d39591ea85d02ddcf41ec0a8fbb3f1 | 474 | py | Python | phone_email_verifier/function.py | Bogro/phone_email_verifier | a64effa5df901e835cdd36191172d9edf94d415b | [
"MIT"
] | 1 | 2020-07-20T22:02:46.000Z | 2020-07-20T22:02:46.000Z | phone_email_verifier/function.py | Bogro/phone_email_verifier | a64effa5df901e835cdd36191172d9edf94d415b | [
"MIT"
] | null | null | null | phone_email_verifier/function.py | Bogro/phone_email_verifier | a64effa5df901e835cdd36191172d9edf94d415b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#! -*- Encoding: utf-8 -*-
import os
class function(object):
@staticmethod
def get_dict_code_name():
'''
Check if the code file exists and return the file name
'''
try:
dict_code = "phone_email_verifier/code.txt"
with op... | 19.75 | 62 | 0.542194 | 55 | 474 | 4.509091 | 0.690909 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006645 | 0.364979 | 474 | 24 | 63 | 19.75 | 0.817276 | 0.21308 | 0 | 0 | 0 | 0 | 0.108883 | 0.083095 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.083333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dc16357b5e0cf9541d5a030c7ad946fdf3ebf0ef | 14,770 | py | Python | train.py | Octavian-ai/learning-rates | bed9edbc412949d0514ed7180221256688657be5 | [
"Unlicense"
] | 21 | 2018-05-16T21:01:39.000Z | 2021-10-18T17:48:52.000Z | train.py | Octavian-ai/learning-rates | bed9edbc412949d0514ed7180221256688657be5 | [
"Unlicense"
] | null | null | null | train.py | Octavian-ai/learning-rates | bed9edbc412949d0514ed7180221256688657be5 | [
"Unlicense"
] | 10 | 2018-05-04T21:40:11.000Z | 2021-08-09T03:50:01.000Z | # -*- coding: utf-8 -*-
"""Learning rates comparison - CNN
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1ynqfIQK9HgbAHqaED6mBxAVEP2MMsHhb
"""
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Versio... | 26.003521 | 131 | 0.674543 | 2,090 | 14,770 | 4.589952 | 0.209569 | 0.015011 | 0.02335 | 0.029188 | 0.319608 | 0.259773 | 0.229542 | 0.209319 | 0.189409 | 0.179089 | 0 | 0.025287 | 0.210156 | 14,770 | 567 | 132 | 26.049383 | 0.797017 | 0.199797 | 0 | 0.295129 | 1 | 0 | 0.06162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054441 | false | 0.011461 | 0.031519 | 0.002865 | 0.120344 | 0.014327 | 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 |
dc16aa2b621ff173b916766acb4f5a53425a88ae | 7,445 | py | Python | MorphoSONIC/parsers.py | tjjlemaire/MorphoSONIC | e1e302afe2e00642480dae8a5e869f0a16baa599 | [
"MIT"
] | null | null | null | MorphoSONIC/parsers.py | tjjlemaire/MorphoSONIC | e1e302afe2e00642480dae8a5e869f0a16baa599 | [
"MIT"
] | null | null | null | MorphoSONIC/parsers.py | tjjlemaire/MorphoSONIC | e1e302afe2e00642480dae8a5e869f0a16baa599 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Author: Theo Lemaire
# @Email: theo.lemaire@epfl.ch
# @Date: 2019-08-18 21:14:43
# @Last Modified by: Theo Lemaire
# @Last Modified time: 2021-06-14 11:33:09
import matplotlib.pyplot as plt
from PySONIC.parsers import *
from .plt import SectionGroupedTimeSeries, SectionCompTimeSeries
fr... | 31.020833 | 96 | 0.603358 | 821 | 7,445 | 5.314251 | 0.242387 | 0.034838 | 0.041256 | 0.043548 | 0.306211 | 0.241119 | 0.204905 | 0.165024 | 0.098098 | 0.098098 | 0 | 0.010108 | 0.255876 | 7,445 | 239 | 97 | 31.150628 | 0.777437 | 0.02364 | 0 | 0.413793 | 0 | 0 | 0.119664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0.005747 | 0.028736 | 0.045977 | 0.390805 | 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 |
dc19cf1ea888c09e697d64f98a90d7d71d3c2d64 | 3,209 | py | Python | taotao-cloud-python/taotao-cloud-oldboy/day90-rabbitmq/PerfectCRM-restful api/crm/migrations/0004_auto_20170427_1132.py | shuigedeng/taotao-cloud-paren | 3d281b919490f7cbee4520211e2eee5da7387564 | [
"Apache-2.0"
] | 47 | 2021-04-13T10:32:13.000Z | 2022-03-31T10:30:30.000Z | taotao-cloud-python/taotao-cloud-oldboy/day90-rabbitmq/PerfectCRM-restful api/crm/migrations/0004_auto_20170427_1132.py | shuigedeng/taotao-cloud-paren | 3d281b919490f7cbee4520211e2eee5da7387564 | [
"Apache-2.0"
] | 1 | 2021-11-01T07:41:04.000Z | 2021-11-01T07:41:10.000Z | taotao-cloud-python/taotao-cloud-oldboy/day90-rabbitmq/PerfectCRM-restful api/crm/migrations/0004_auto_20170427_1132.py | shuigedeng/taotao-cloud-paren | 3d281b919490f7cbee4520211e2eee5da7387564 | [
"Apache-2.0"
] | 21 | 2021-04-13T10:32:17.000Z | 2022-03-26T07:43:22.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-27 03:32
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('crm', '0003_auto_20170421_0932'),
]
operations = [... | 44.569444 | 131 | 0.601433 | 313 | 3,209 | 6.015974 | 0.329073 | 0.038237 | 0.05948 | 0.093468 | 0.486989 | 0.446628 | 0.446628 | 0.404142 | 0.404142 | 0.381837 | 0 | 0.017632 | 0.257713 | 3,209 | 71 | 132 | 45.197183 | 0.77288 | 0.02119 | 0 | 0.421875 | 1 | 0 | 0.158381 | 0.021033 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046875 | 0 | 0.09375 | 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 |
904e52562c9fa5c9753718bf9a2402d8f5403aa9 | 2,433 | py | Python | src/test/capi/test_pbs_server.py | smowton/PBSPy | 842f59009a33d6123c126ff1c4cf2dba4631774d | [
"Apache-2.0"
] | null | null | null | src/test/capi/test_pbs_server.py | smowton/PBSPy | 842f59009a33d6123c126ff1c4cf2dba4631774d | [
"Apache-2.0"
] | null | null | null | src/test/capi/test_pbs_server.py | smowton/PBSPy | 842f59009a33d6123c126ff1c4cf2dba4631774d | [
"Apache-2.0"
] | null | null | null | __copyright__ = """
Copyright (C) 2007, Mohan Kannapareddy <kmoh.raj@gmail.com>
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 requir... | 25.882979 | 74 | 0.592273 | 298 | 2,433 | 4.714765 | 0.442953 | 0.049822 | 0.02847 | 0.039858 | 0.09395 | 0.09395 | 0.09395 | 0.09395 | 0.09395 | 0.09395 | 0 | 0.013561 | 0.302918 | 2,433 | 93 | 75 | 26.16129 | 0.814858 | 0 | 0 | 0.354839 | 0 | 0 | 0.301982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.048387 | null | null | 0.306452 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
90548350f1676fefa373c4d3a0ac430d1ad94ebd | 5,357 | py | Python | hw2/hw2-Psudocode.py | mulvenstein/cs_AI | 1e5680dfc9f9eef0831dcec6ac9c219eafb8e349 | [
"MIT"
] | null | null | null | hw2/hw2-Psudocode.py | mulvenstein/cs_AI | 1e5680dfc9f9eef0831dcec6ac9c219eafb8e349 | [
"MIT"
] | null | null | null | hw2/hw2-Psudocode.py | mulvenstein/cs_AI | 1e5680dfc9f9eef0831dcec6ac9c219eafb8e349 | [
"MIT"
] | null | null | null | --
CLASS n_queens:
FUNCTION __init__(self, N, queen_pos):
N <- N # SIZE OF BOARD
queen_pos <- queen_pos #ARR[i] RETURNS ROW POS OF COL I QUEEN
nodes_visited <- 0
# fill queen pos array
FOR i in range(0,N):
queen_pos[i] <- (-2*N) #fill array with junk for now
... | 31.886905 | 126 | 0.517454 | 663 | 5,357 | 4.058824 | 0.220211 | 0.053512 | 0.020067 | 0.026013 | 0.22631 | 0.211446 | 0.195838 | 0.173541 | 0.173541 | 0.134894 | 0 | 0.011985 | 0.39257 | 5,357 | 167 | 127 | 32.077844 | 0.814997 | 0 | 0 | 0.560284 | 0 | 0 | 0.05774 | 0.012806 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.014184 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
905a909a350bd0c5b195313cdd455c1464ef272d | 1,050 | py | Python | setup.py | leonardogian/CANA | f070d6da5358f17f55eb80d6bc9185afaee91142 | [
"MIT"
] | 1 | 2021-01-08T22:04:05.000Z | 2021-01-08T22:04:05.000Z | setup.py | leonardogian/CANA | f070d6da5358f17f55eb80d6bc9185afaee91142 | [
"MIT"
] | null | null | null | setup.py | leonardogian/CANA | f070d6da5358f17f55eb80d6bc9185afaee91142 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
from cana import __package__, __title__, __description__, __version__
def readme():
with open('README.md') as f:
return f.read()
setup(
name=__package__,
version=__version__,
description=__description__,
long_description=__description__,
classifiers=[
'Developmen... | 24.418605 | 93 | 0.718095 | 117 | 1,050 | 6.08547 | 0.726496 | 0.050562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003322 | 0.14 | 1,050 | 42 | 94 | 25 | 0.785161 | 0 | 0 | 0.076923 | 0 | 0 | 0.454286 | 0.077143 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | true | 0 | 0.051282 | 0 | 0.102564 | 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 |
90621d5ff55d2f4271683df22920e9ebe1f3673f | 1,745 | py | Python | src/main/python/pybuilder/plugins/python/django_plugin.py | tjpnz/pybuilder | 35e27629662cd3cf6c25075d5c14ea84d837e3a1 | [
"Apache-2.0"
] | null | null | null | src/main/python/pybuilder/plugins/python/django_plugin.py | tjpnz/pybuilder | 35e27629662cd3cf6c25075d5c14ea84d837e3a1 | [
"Apache-2.0"
] | null | null | null | src/main/python/pybuilder/plugins/python/django_plugin.py | tjpnz/pybuilder | 35e27629662cd3cf6c25075d5c14ea84d837e3a1 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# This file is part of PyBuilder
#
# Copyright 2011-2014 PyBuilder Team
#
# 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/l... | 35.612245 | 83 | 0.736963 | 236 | 1,745 | 5.275424 | 0.516949 | 0.056225 | 0.057831 | 0.025703 | 0.059438 | 0.059438 | 0 | 0 | 0 | 0 | 0 | 0.011863 | 0.178797 | 1,745 | 48 | 84 | 36.354167 | 0.856943 | 0.361605 | 0 | 0 | 0 | 0 | 0.161792 | 0.041133 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.434783 | 0 | 0.478261 | 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 |
906510b67d64a7117e98d6cfb07df4f4fa01f5fd | 488 | py | Python | woodwind/extensions.py | kevinmarks/woodwind | a372d49e7a694aad03aefa0c5549684bcccdca59 | [
"BSD-2-Clause"
] | 50 | 2015-01-29T03:56:47.000Z | 2022-03-15T16:12:37.000Z | woodwind/extensions.py | kevinmarks/woodwind | a372d49e7a694aad03aefa0c5549684bcccdca59 | [
"BSD-2-Clause"
] | 66 | 2015-01-30T02:09:34.000Z | 2021-02-02T21:43:32.000Z | woodwind/extensions.py | kevinmarks/woodwind | a372d49e7a694aad03aefa0c5549684bcccdca59 | [
"BSD-2-Clause"
] | 11 | 2015-02-03T21:12:03.000Z | 2020-10-19T10:54:45.000Z | from flask.ext.login import LoginManager
from flask.ext.micropub import MicropubClient
from flask.ext.sqlalchemy import SQLAlchemy
from flask_debugtoolbar import DebugToolbarExtension
db = SQLAlchemy()
micropub = MicropubClient(client_id='https://woodwind.xyz/')
login_mgr = LoginManager()
login_mgr.login_view = 'view... | 25.684211 | 60 | 0.784836 | 64 | 488 | 5.8125 | 0.390625 | 0.094086 | 0.134409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116803 | 488 | 18 | 61 | 27.111111 | 0.863109 | 0.118852 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 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 |
906ee71c4bfa8523e1aae2fef64fb96ec3dd7c8b | 3,126 | py | Python | recipes/python/policies/create_policy_in_one_step.py | besantp/netbackup-api-code-samples | 8900df53c17faeec05379d9fb604fe438d17f8cd | [
"MIT"
] | 43 | 2018-03-18T16:03:34.000Z | 2022-03-30T16:30:06.000Z | recipes/python/policies/create_policy_in_one_step.py | besantp/netbackup-api-code-samples | 8900df53c17faeec05379d9fb604fe438d17f8cd | [
"MIT"
] | 36 | 2018-02-02T19:20:29.000Z | 2022-03-16T17:33:25.000Z | recipes/python/policies/create_policy_in_one_step.py | besantp/netbackup-api-code-samples | 8900df53c17faeec05379d9fb604fe438d17f8cd | [
"MIT"
] | 44 | 2018-05-21T06:05:34.000Z | 2022-02-18T04:14:46.000Z | import sys
import policy_api_requests
import json
protocol = "https"
nbmaster = ""
username = ""
password = ""
domainName = ""
domainType = ""
port = 1556
def print_disclaimer():
print("-------------------------------------------------------------------------------------------------")
print("-- ... | 33.612903 | 183 | 0.616123 | 368 | 3,126 | 5.07337 | 0.285326 | 0.044992 | 0.042849 | 0.059989 | 0.284414 | 0.271559 | 0.193894 | 0.193894 | 0.148902 | 0.148902 | 0 | 0.00735 | 0.173065 | 3,126 | 92 | 184 | 33.978261 | 0.714894 | 0 | 0 | 0.189189 | 0 | 0.054054 | 0.430455 | 0.107779 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040541 | false | 0.121622 | 0.040541 | 0 | 0.081081 | 0.310811 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9071430b154c080c1e7278032e151d8800e7abc2 | 3,379 | py | Python | Src/StdLib/Lib/whichdb.py | cwensley/ironpython2 | f854444e1e08afc8850cb7c1a739a7dd2d10d32a | [
"Apache-2.0"
] | 6,989 | 2017-07-18T06:23:18.000Z | 2022-03-31T15:58:36.000Z | build/cmd/win32/Python27/Lib/whichdb.py | IamBaoMouMou/AliOS-Things | 195a9160b871b3d78de6f8cf6c2ab09a71977527 | [
"Apache-2.0"
] | 1,978 | 2017-07-18T09:17:58.000Z | 2022-03-31T14:28:43.000Z | build/cmd/win32/Python27/Lib/whichdb.py | IamBaoMouMou/AliOS-Things | 195a9160b871b3d78de6f8cf6c2ab09a71977527 | [
"Apache-2.0"
] | 1,228 | 2017-07-18T09:03:13.000Z | 2022-03-29T05:57:40.000Z | # !/usr/bin/env python
"""Guess which db package to use to open a db file."""
import os
import struct
import sys
try:
import dbm
_dbmerror = dbm.error
except ImportError:
dbm = None
# just some sort of valid exception which might be raised in the
# dbm test
_dbmerror = IOError
def whichdb(fil... | 28.635593 | 75 | 0.572359 | 468 | 3,379 | 4.106838 | 0.365385 | 0.024974 | 0.049948 | 0.031217 | 0.23205 | 0.159209 | 0.065557 | 0.038502 | 0.038502 | 0.038502 | 0 | 0.034987 | 0.331755 | 3,379 | 117 | 76 | 28.880342 | 0.816209 | 0.28322 | 0 | 0.462687 | 0 | 0 | 0.050531 | 0 | 0 | 0 | 0.035371 | 0 | 0 | 0 | null | null | 0.029851 | 0.074627 | null | null | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
90723b5a31bf99680339ae1b13849ff6f6d7504c | 18,728 | py | Python | stog/commands/train.py | mg9/stog | 49d0d1ebc1ae666f79e43466fbdc33b1b12f1adf | [
"MIT"
] | null | null | null | stog/commands/train.py | mg9/stog | 49d0d1ebc1ae666f79e43466fbdc33b1b12f1adf | [
"MIT"
] | null | null | null | stog/commands/train.py | mg9/stog | 49d0d1ebc1ae666f79e43466fbdc33b1b12f1adf | [
"MIT"
] | null | null | null | import os
import re
import argparse
import yaml
import torch
from stog.utils import logging
from stog.utils.params import Params, remove_pretrained_embedding_params
from stog import models as Models
from stog.data.dataset_builder import dataset_from_params, iterator_from_params
from stog.data.vocabulary import Vocabu... | 85.908257 | 5,217 | 0.710113 | 2,763 | 18,728 | 4.325371 | 0.110387 | 0.030123 | 0.025103 | 0.01138 | 0.599699 | 0.572923 | 0.557527 | 0.557527 | 0.550833 | 0.550833 | 0 | 0.073604 | 0.13381 | 18,728 | 217 | 5,218 | 86.304147 | 0.663112 | 0.416862 | 0 | 0.057143 | 0 | 0 | 0.448974 | 0.009936 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019048 | false | 0 | 0.180952 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90727a29cfddcce6fd8403993da6f2d9c6319731 | 1,044 | py | Python | tests/test_density.py | fgeorgatos/suftware | 842ec1283d09d60e66d239bc873627b6cbc651b5 | [
"MIT"
] | 10 | 2018-04-06T15:56:38.000Z | 2020-04-04T10:19:01.000Z | tests/test_density.py | fgeorgatos/suftware | 842ec1283d09d60e66d239bc873627b6cbc651b5 | [
"MIT"
] | 8 | 2018-04-02T20:37:00.000Z | 2021-02-05T18:41:45.000Z | tests/test_density.py | fgeorgatos/suftware | 842ec1283d09d60e66d239bc873627b6cbc651b5 | [
"MIT"
] | 4 | 2018-10-21T03:54:16.000Z | 2021-02-03T18:44:31.000Z | """
Unit tests for the density class
"""
from unittest import TestCase
import sys
sys.path.append('../src')
import numpy as np
import unittest
import suftware as sw
import os
class Density1d(TestCase):
def setUp(self):
self.N = 5
self.data = sw.simulate_density_data(distribution_type='uniform'... | 29.828571 | 124 | 0.724138 | 147 | 1,044 | 4.993197 | 0.557823 | 0.047684 | 0.044959 | 0.032698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079162 | 0.177203 | 1,044 | 35 | 125 | 29.828571 | 0.77532 | 0.180077 | 0 | 0 | 0 | 0 | 0.01533 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.190476 | false | 0.047619 | 0.285714 | 0.047619 | 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 |
90751b68f7655ed3ed0157006bf2b09534198d41 | 492 | py | Python | prosemirror/model/__init__.py | p7g/prosemirror-py | ac22f3f93daff7dde896f797eb856890b65a3e46 | [
"BSD-3-Clause"
] | 18 | 2019-06-19T04:38:45.000Z | 2020-11-28T03:40:03.000Z | prosemirror/model/__init__.py | p7g/prosemirror-py | ac22f3f93daff7dde896f797eb856890b65a3e46 | [
"BSD-3-Clause"
] | 115 | 2019-06-19T04:52:00.000Z | 2020-12-18T10:39:36.000Z | prosemirror/model/__init__.py | p7g/prosemirror-py | ac22f3f93daff7dde896f797eb856890b65a3e46 | [
"BSD-3-Clause"
] | 2 | 2020-06-03T16:48:02.000Z | 2020-12-14T16:33:41.000Z | from .content import ContentMatch
from .fragment import Fragment
from .mark import Mark
from .node import Node
from .replace import ReplaceError, Slice
from .resolvedpos import NodeRange, ResolvedPos
from .schema import MarkType, NodeType, Schema
from .to_dom import DOMSerializer
__all__ = [
"Node",
"ResolvedP... | 20.5 | 47 | 0.691057 | 50 | 492 | 6.7 | 0.38 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205285 | 492 | 23 | 48 | 21.391304 | 0.856777 | 0 | 0 | 0 | 0 | 0 | 0.203252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9079aa7a5cecd4a2970e18b0d63ef5680176bcd8 | 3,533 | py | Python | source/tests/test_cfn_params_handler.py | ahmei0/aws-control-tower-customizations | db968eb6e9f2cf6c12524a8f150cc3eac841cad2 | [
"Apache-2.0"
] | null | null | null | source/tests/test_cfn_params_handler.py | ahmei0/aws-control-tower-customizations | db968eb6e9f2cf6c12524a8f150cc3eac841cad2 | [
"Apache-2.0"
] | null | null | null | source/tests/test_cfn_params_handler.py | ahmei0/aws-control-tower-customizations | db968eb6e9f2cf6c12524a8f150cc3eac841cad2 | [
"Apache-2.0"
] | null | null | null | ##############################################################################
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"). #
# Y... | 33.971154 | 79 | 0.529861 | 336 | 3,533 | 5.354167 | 0.357143 | 0.053363 | 0.028905 | 0.042246 | 0.406337 | 0.35353 | 0.317954 | 0.234575 | 0.234575 | 0.204002 | 0 | 0.014812 | 0.331163 | 3,533 | 103 | 80 | 34.300971 | 0.746509 | 0.25276 | 0 | 0.350649 | 0 | 0 | 0.23433 | 0.04916 | 0 | 0 | 0 | 0 | 0.064935 | 1 | 0.064935 | false | 0.090909 | 0.051948 | 0 | 0.116883 | 0.025974 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9085bda44fdf5a06261563c4f6bc276a08efbaae | 4,646 | py | Python | lstm.py | VisualPaul/twitter-sentiment | f364e0d5984b8dbf68c1ae93bba96ead46f253d1 | [
"MIT"
] | null | null | null | lstm.py | VisualPaul/twitter-sentiment | f364e0d5984b8dbf68c1ae93bba96ead46f253d1 | [
"MIT"
] | null | null | null | lstm.py | VisualPaul/twitter-sentiment | f364e0d5984b8dbf68c1ae93bba96ead46f253d1 | [
"MIT"
] | null | null | null | import numpy as np
import argparse
import pandas as pd
from keras import layers, models, metrics, optimizers, preprocessing, losses, regularizers
from keras.preprocessing import sequence
import re
from gensim.models import Word2Vec
from collections import Counter
from sklearn.feature_extraction.stop_words import ENGLIS... | 42.623853 | 154 | 0.642273 | 684 | 4,646 | 4.22076 | 0.328947 | 0.02771 | 0.030481 | 0.022861 | 0.0478 | 0.020783 | 0 | 0 | 0 | 0 | 0 | 0.018908 | 0.18037 | 4,646 | 108 | 155 | 43.018519 | 0.739233 | 0.037452 | 0 | 0.024096 | 0 | 0.048193 | 0.143774 | 0.020796 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.156627 | null | null | 0.084337 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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.