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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d3f072cd4d293591224c1f4e984bea8a6ae612d7 | 3,617 | py | Python | src/tools/perf/benchmarks/oortonline.py | bopopescu/MQUIC | 703e944ec981366cfd2528943b1def2c72b7e49d | [
"MIT"
] | 1 | 2018-01-02T15:42:08.000Z | 2018-01-02T15:42:08.000Z | src/tools/perf/benchmarks/oortonline.py | bopopescu/MQUIC | 703e944ec981366cfd2528943b1def2c72b7e49d | [
"MIT"
] | null | null | null | src/tools/perf/benchmarks/oortonline.py | bopopescu/MQUIC | 703e944ec981366cfd2528943b1def2c72b7e49d | [
"MIT"
] | 1 | 2020-07-25T02:05:49.000Z | 2020-07-25T02:05:49.000Z | # Copyright 2014 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.
import page_sets
from core import perf_benchmark
from telemetry import benchmark
from telemetry.page import page_test
from telemetry.value import scalar
fro... | 36.908163 | 79 | 0.745093 | 405 | 3,617 | 6.498765 | 0.422222 | 0.044453 | 0.024316 | 0.030395 | 0.215426 | 0.215426 | 0.149696 | 0.117781 | 0.117781 | 0.117781 | 0 | 0.014177 | 0.16146 | 3,617 | 97 | 80 | 37.28866 | 0.85361 | 0.196848 | 0 | 0.138462 | 0 | 0 | 0.111691 | 0.041406 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.138462 | false | 0 | 0.184615 | 0.061538 | 0.492308 | 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 |
d3f0cb214d0490524598aacdc6cba31445f09f94 | 16,458 | py | Python | tests/mock/responses/get_playlist_partial.py | steinitzu/spoffy | 40cce0f00accbe006084a610d0d50396c21ec96c | [
"Apache-2.0"
] | 1 | 2019-04-24T19:50:03.000Z | 2019-04-24T19:50:03.000Z | tests/mock/responses/get_playlist_partial.py | steinitzu/spoffy | 40cce0f00accbe006084a610d0d50396c21ec96c | [
"Apache-2.0"
] | 3 | 2019-10-11T20:31:57.000Z | 2020-04-13T16:06:43.000Z | tests/mock/responses/get_playlist_partial.py | steinitzu/spoffy | 40cce0f00accbe006084a610d0d50396c21ec96c | [
"Apache-2.0"
] | null | null | null | import json
_jplaylistpartial = """
{
"description": "Having friends over for dinner? Here's the perfect playlist.",
"id": "59ZbFPES4DQwEjBpWHzrtC",
"name": "Dinner with Friends",
"tracks": {
"items": [
{
"track": {
"id": "2zhk0kypGeOPsaaZcjyc14",
"name": "Burning House",
... | 26.041139 | 139 | 0.465427 | 1,019 | 16,458 | 7.51423 | 0.292444 | 0.080449 | 0.172391 | 0.014105 | 0.031605 | 0.0175 | 0.0175 | 0.0175 | 0.0175 | 0.0175 | 0 | 0.07372 | 0.384312 | 16,458 | 631 | 140 | 26.082409 | 0.68193 | 0 | 0 | 0.139905 | 0 | 0.00159 | 0.994532 | 0.338376 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.00159 | 0 | 0.00159 | 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 |
d3f164980be60d1875e10b27e14a41bcf1f65f64 | 3,943 | py | Python | account/models.py | dmitriyVasilievich1986/sudoku-server | 767059998ccc2493424a7da39dfb9ac4284ae8a4 | [
"MIT"
] | null | null | null | account/models.py | dmitriyVasilievich1986/sudoku-server | 767059998ccc2493424a7da39dfb9ac4284ae8a4 | [
"MIT"
] | null | null | null | account/models.py | dmitriyVasilievich1986/sudoku-server | 767059998ccc2493424a7da39dfb9ac4284ae8a4 | [
"MIT"
] | null | null | null | from django.contrib.auth.hashers import make_password
from datetime import datetime, timedelta
from django.db.models.base import Model
from django.utils import timezone
from typing import Any, Union
from django.db import models
from os import environ
from uuid import uuid4
class Account(models.Model):
username: m... | 40.649485 | 131 | 0.664469 | 486 | 3,943 | 5.277778 | 0.218107 | 0.042885 | 0.040936 | 0.051852 | 0.311891 | 0.294737 | 0.215205 | 0.108382 | 0.108382 | 0.108382 | 0 | 0.006818 | 0.218869 | 3,943 | 96 | 132 | 41.072917 | 0.825974 | 0 | 0 | 0.142857 | 0 | 0 | 0.03018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.071429 | 0.095238 | 0.011905 | 0.452381 | 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 |
d3f1c7712b776d219cb9fde183ab965f2ab50afd | 1,554 | py | Python | api.py | erose1337/versionhelper | 15c643c6321a0427f88ad2803bd592eafa1cdb7b | [
"MIT"
] | 1 | 2019-02-25T14:14:21.000Z | 2019-02-25T14:14:21.000Z | api.py | erose1337/versionhelper | 15c643c6321a0427f88ad2803bd592eafa1cdb7b | [
"MIT"
] | null | null | null | api.py | erose1337/versionhelper | 15c643c6321a0427f88ad2803bd592eafa1cdb7b | [
"MIT"
] | null | null | null | VERSION = "1.0.0-beta.15"
LANGUAGE = "python"
PROJECT = "versionhelper"
_p = "versionhelper.libvh."
API = {_p + "version_helper" : {"arguments" : ("filename str", ),
"keywords" : {"directory" : "directory str",
"version" : "str",
... | 57.555556 | 86 | 0.317889 | 86 | 1,554 | 5.546512 | 0.593023 | 0.050314 | 0.056604 | 0.050314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.572072 | 1,554 | 26 | 87 | 59.769231 | 0.709774 | 0 | 0 | 0 | 0 | 0 | 0.30695 | 0.014801 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d3fb64135ca4a877a8912a7d607cb278e17ddf79 | 369 | py | Python | empire.py | chenxiangfang/Empire | 2d93b231e754fbd1277a2e54d89d42d1e954322f | [
"BSD-3-Clause"
] | 2,541 | 2019-08-08T19:38:05.000Z | 2022-03-30T22:24:06.000Z | empire.py | Devil123166/Empire | 6d8169a8ea818f9af478e173a9a548c626c80d05 | [
"BSD-3-Clause"
] | 344 | 2019-10-24T03:06:15.000Z | 2022-03-26T10:54:10.000Z | empire.py | Devil123166/Empire | 6d8169a8ea818f9af478e173a9a548c626c80d05 | [
"BSD-3-Clause"
] | 431 | 2019-08-22T22:45:45.000Z | 2022-03-29T18:45:21.000Z | #! /usr/bin/env python3
import empire.arguments as arguments
import sys
if __name__ == '__main__':
args = arguments.args
if args.subparser_name == 'server':
import empire.server.server as server
server.run(args)
elif args.subparser_name == 'client':
import empire.client.client a... | 19.421053 | 45 | 0.655827 | 47 | 369 | 4.93617 | 0.446809 | 0.155172 | 0.146552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.241192 | 369 | 18 | 46 | 20.5 | 0.821429 | 0.059621 | 0 | 0 | 0 | 0 | 0.057803 | 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 |
3102f4290dfe52a3896ec016a1617027e7eea882 | 532 | py | Python | PythonTeamgame/button.py | kiissy/PythonTeamgame | 81be971a3410d63e5e5a62eb3fea1bb98002603a | [
"Apache-2.0"
] | null | null | null | PythonTeamgame/button.py | kiissy/PythonTeamgame | 81be971a3410d63e5e5a62eb3fea1bb98002603a | [
"Apache-2.0"
] | null | null | null | PythonTeamgame/button.py | kiissy/PythonTeamgame | 81be971a3410d63e5e5a62eb3fea1bb98002603a | [
"Apache-2.0"
] | null | null | null | from bangtal import *
class Button(Object):
def __init__(self, file, scene, x, y, nextScene = None, scale = 1, show = True):
super().__init__(file)
self.locate(scene, x, y)
self.nextScene = nextScene
self.setScale(scale)
if show:
self.show()
def setNextScene... | 26.6 | 84 | 0.56391 | 59 | 532 | 4.949153 | 0.491525 | 0.222603 | 0.047945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002786 | 0.325188 | 532 | 19 | 85 | 28 | 0.810585 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3103be15e67af6a55b9d201ede4aca0c6e007fdb | 8,406 | py | Python | src/formats/lift.py | serapio/kwaras | e575ed2c3512c9517778d4108558f7e9680a93ee | [
"MIT"
] | 4 | 2016-10-03T00:52:00.000Z | 2021-07-26T00:32:32.000Z | src/formats/lift.py | ucsd-field-lab/kwaras | e575ed2c3512c9517778d4108558f7e9680a93ee | [
"MIT"
] | null | null | null | src/formats/lift.py | ucsd-field-lab/kwaras | e575ed2c3512c9517778d4108558f7e9680a93ee | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Apr 16, 2013
@author: lucien
"""
import xml.etree.ElementTree as eTree
from datetime import datetime
from copy import deepcopy
_LANG_CODE = ("en", "es")[0]
_SFM_TAGS_ = {
"lexical-unit": "lx",
"citation": "lc",
"grammatical-info": "ps",
"note": "co",
"varia... | 32.708171 | 95 | 0.485724 | 933 | 8,406 | 4.334405 | 0.230439 | 0.022255 | 0.037834 | 0.041543 | 0.217606 | 0.147132 | 0.133037 | 0.099407 | 0.058853 | 0.058853 | 0 | 0.005441 | 0.365929 | 8,406 | 256 | 96 | 32.835938 | 0.753283 | 0.037354 | 0 | 0.158416 | 0 | 0 | 0.185921 | 0.035658 | 0 | 0 | 0 | 0.003906 | 0 | 0 | null | null | 0 | 0.029703 | null | null | 0.024752 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3106164558fde4e02a889f69b3d8f2516a6020e8 | 1,859 | py | Python | src/utils.py | Sharon-iguazio/demo-image-classification | 9ed67640df19c0d84b378bb493676e576b4ddd5c | [
"Apache-2.0"
] | null | null | null | src/utils.py | Sharon-iguazio/demo-image-classification | 9ed67640df19c0d84b378bb493676e576b4ddd5c | [
"Apache-2.0"
] | null | null | null | src/utils.py | Sharon-iguazio/demo-image-classification | 9ed67640df19c0d84b378bb493676e576b4ddd5c | [
"Apache-2.0"
] | null | null | null | # Generated by nuclio.export.NuclioExporter on 2020-02-27 19:29
import os
import zipfile
import json
from tempfile import mktemp
import pandas as pd
def open_archive(context,
target_dir='content',
archive_url=''):
"""Open a file/object archive into a target directory"""
... | 31.508475 | 87 | 0.652501 | 225 | 1,859 | 5.244444 | 0.422222 | 0.038136 | 0.057627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009181 | 0.2383 | 1,859 | 58 | 88 | 32.051724 | 0.824153 | 0.115654 | 0 | 0 | 1 | 0 | 0.118842 | 0.013547 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
31093b9937a815f827f76dde138d37bad49398a5 | 4,222 | py | Python | tensorflow/contrib/learn/python/learn/dataframe/dataframe.py | returncode13/tensorflow | c5f94b10bbb30e525fa3ca313e7ccb173040c90a | [
"Apache-2.0"
] | 1 | 2016-11-23T17:44:04.000Z | 2016-11-23T17:44:04.000Z | tensorflow/contrib/learn/python/learn/dataframe/dataframe.py | returncode13/tensorflow | c5f94b10bbb30e525fa3ca313e7ccb173040c90a | [
"Apache-2.0"
] | null | null | null | tensorflow/contrib/learn/python/learn/dataframe/dataframe.py | returncode13/tensorflow | c5f94b10bbb30e525fa3ca313e7ccb173040c90a | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 33.244094 | 80 | 0.646376 | 571 | 4,222 | 4.688266 | 0.364273 | 0.028764 | 0.017931 | 0.022413 | 0.073216 | 0.059021 | 0.040344 | 0.040344 | 0.040344 | 0.040344 | 0 | 0.002817 | 0.24325 | 4,222 | 126 | 81 | 33.507937 | 0.835055 | 0.496921 | 0 | 0.074074 | 0 | 0 | 0.131646 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.148148 | false | 0 | 0.111111 | 0 | 0.388889 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
310b0f62f8a275ceca6c1d608d07be0f937fb346 | 5,045 | py | Python | gallery/showcase/views.py | zcking/Gallery.io | 6e0156a5011351971aa7b8a054ba8bc83405a18e | [
"MIT"
] | 1 | 2016-07-21T00:27:07.000Z | 2016-07-21T00:27:07.000Z | gallery/showcase/views.py | zach-king/Gallery.io | 6e0156a5011351971aa7b8a054ba8bc83405a18e | [
"MIT"
] | null | null | null | gallery/showcase/views.py | zach-king/Gallery.io | 6e0156a5011351971aa7b8a054ba8bc83405a18e | [
"MIT"
] | 1 | 2020-11-07T03:20:27.000Z | 2020-11-07T03:20:27.000Z | from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse, HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.utils import timezone
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login, logout
from .models import Ar... | 31.72956 | 86 | 0.624777 | 550 | 5,045 | 5.623636 | 0.232727 | 0.038797 | 0.061429 | 0.087294 | 0.283543 | 0.283543 | 0.24313 | 0.115099 | 0.036857 | 0.036857 | 0 | 0.006181 | 0.262438 | 5,045 | 158 | 87 | 31.93038 | 0.825047 | 0.037661 | 0 | 0.325203 | 0 | 0 | 0.168764 | 0.022901 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0.065041 | 0.065041 | 0 | 0.260163 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
310ce19f70eaa4d2481a650b179d716e1e3b44a5 | 902 | py | Python | cls/TimeText.py | hermanb001/Free-Node-Merge-1 | de734ce1010e0c5374370ee3a85c07181e391c31 | [
"MIT"
] | 192 | 2021-11-06T04:41:28.000Z | 2022-03-31T14:56:14.000Z | cls/TimeText.py | gtang8/Free-Node-Merge | 63d1a6895ff731c83c2ca25930e268666e7ef792 | [
"MIT"
] | null | null | null | cls/TimeText.py | gtang8/Free-Node-Merge | 63d1a6895ff731c83c2ca25930e268666e7ef792 | [
"MIT"
] | 52 | 2021-11-08T04:42:13.000Z | 2022-03-31T12:56:02.000Z | #!/usr/bin/env python3
import requests
import os
import time
class TimeText(): # 将订阅链接中YAML,Base64等内容转换为 Url 链接内容
# 读取本地文件的修改时间
def get_local_file_modifiedtime(fname):
try:
modifiedTime = time.localtime(os.stat(fname).st_mtime)
#mTime = time.strftime('%Y-%m-%d %H:%M:%S', modifi... | 33.407407 | 89 | 0.614191 | 115 | 902 | 4.721739 | 0.443478 | 0.099448 | 0.088398 | 0.055249 | 0.453039 | 0.453039 | 0.254144 | 0.254144 | 0.187845 | 0.187845 | 0 | 0.01374 | 0.273836 | 902 | 26 | 90 | 34.692308 | 0.815267 | 0.209534 | 0 | 0.333333 | 0 | 0 | 0.164074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0 | 0.555556 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
310e78f1e6aa8233c0bf0bbd097628978d0c920c | 12,111 | py | Python | src/scripts/themis/cluster/configure_cluster.py | TritonNetworking/themis_tritonsort | cd1f6dbf93978471de1d0beb4b026625787edd9c | [
"BSD-3-Clause"
] | 11 | 2015-12-14T05:35:17.000Z | 2021-11-08T22:02:32.000Z | src/scripts/themis/cluster/configure_cluster.py | TritonNetworking/themis_tritonsort | cd1f6dbf93978471de1d0beb4b026625787edd9c | [
"BSD-3-Clause"
] | null | null | null | src/scripts/themis/cluster/configure_cluster.py | TritonNetworking/themis_tritonsort | cd1f6dbf93978471de1d0beb4b026625787edd9c | [
"BSD-3-Clause"
] | 8 | 2015-12-22T19:31:16.000Z | 2020-12-15T12:09:00.000Z | #!/usr/bin/env python
import argparse, getpass, os, paramiko, socket, sys, redis
from parallel_ssh import parallel_ssh
SCRIPT_DIR_PATH = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(SCRIPT_DIR_PATH, os.pardir, os.pardir))
from themis import utils
def set_ip_addresses(redis_client, nodes,... | 35.206395 | 89 | 0.656841 | 1,572 | 12,111 | 4.872774 | 0.146947 | 0.103394 | 0.042167 | 0.014621 | 0.465927 | 0.425849 | 0.376632 | 0.348433 | 0.334204 | 0.308355 | 0 | 0.005246 | 0.244571 | 12,111 | 343 | 90 | 35.309038 | 0.832004 | 0.093799 | 0 | 0.416 | 0 | 0.016 | 0.228402 | 0.0021 | 0 | 0 | 0 | 0 | 0.004 | 0 | null | null | 0.008 | 0.012 | null | null | 0.144 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
311422bb7f1f52c85159834ba39e07feb3ac91c4 | 385 | py | Python | configs/bit/bit_pos_s2_dd8_512x512_80k_S2Looking.py | slchenchn/rsaicp_CD | 08723b6da125b4ebe7f4777be8ef14a1b5746523 | [
"Apache-2.0"
] | null | null | null | configs/bit/bit_pos_s2_dd8_512x512_80k_S2Looking.py | slchenchn/rsaicp_CD | 08723b6da125b4ebe7f4777be8ef14a1b5746523 | [
"Apache-2.0"
] | null | null | null | configs/bit/bit_pos_s2_dd8_512x512_80k_S2Looking.py | slchenchn/rsaicp_CD | 08723b6da125b4ebe7f4777be8ef14a1b5746523 | [
"Apache-2.0"
] | 1 | 2022-03-21T07:37:24.000Z | 2022-03-21T07:37:24.000Z | '''
Author: Shuailin Chen
Created Date: 2021-08-17
Last Modified: 2021-08-17
content:
'''
_base_= [
'../_base_/models/bit_pos_s4_dd8.py',
'../_base_/datasets/s2looking.py',
'../_base_/default_runtime.py',
'../_base_/schedules/schedule_80k.py'
]
data = dict(
samples_per_gpu=8,
workers_per_g... | 16.73913 | 50 | 0.651948 | 50 | 385 | 4.64 | 0.72 | 0.077586 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071875 | 0.168831 | 385 | 22 | 51 | 17.5 | 0.653125 | 0.231169 | 0 | 0 | 0 | 0 | 0.491468 | 0.43686 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
31172590e0ed8831e64c9747a6fc9e09fcc5a2a3 | 3,437 | py | Python | indiclient/camera.py | dtouzan/ciboulette | aaf31aed30af37f2e1e51addb0eb270ad252bb53 | [
"MIT"
] | 1 | 2021-03-11T13:33:02.000Z | 2021-03-11T13:33:02.000Z | indiclient/camera.py | dtouzan/ciboulette | aaf31aed30af37f2e1e51addb0eb270ad252bb53 | [
"MIT"
] | 1 | 2022-03-05T20:19:31.000Z | 2022-03-05T20:19:31.000Z | indiclient/camera.py | dtouzan/ciboulette | aaf31aed30af37f2e1e51addb0eb270ad252bb53 | [
"MIT"
] | 1 | 2021-03-16T11:31:48.000Z | 2021-03-16T11:31:48.000Z | # Licensed under GPL3 (see LICENSE)
# coding=utf-8
"""
Classes and utility functions for communicating with cameras via the INDI protocol, http://www.indilib.org.
"""
import time
import io
import logging
import logging.handlers
from astropy.io import fits
from .indiclient import indiclient
from ciboulette.indiclie... | 24.905797 | 107 | 0.610998 | 416 | 3,437 | 4.862981 | 0.271635 | 0.059812 | 0.034602 | 0.048443 | 0.567968 | 0.523974 | 0.467622 | 0.445378 | 0.404844 | 0.348492 | 0 | 0.016552 | 0.279313 | 3,437 | 137 | 108 | 25.087591 | 0.800161 | 0.125109 | 0 | 0.5 | 0 | 0 | 0.101647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0.023256 | 0.081395 | 0.046512 | 0.44186 | 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 |
311f8621226a06b7ded6ecf089a64351dc1c9c93 | 292 | py | Python | ui/page_elements/detail_page/pages.py | ArcherLuo233/election-s-prediction | 9da72cb855f6d61f9cdec6e15f7ca832629ba51a | [
"MIT"
] | null | null | null | ui/page_elements/detail_page/pages.py | ArcherLuo233/election-s-prediction | 9da72cb855f6d61f9cdec6e15f7ca832629ba51a | [
"MIT"
] | 1 | 2022-01-26T01:23:26.000Z | 2022-01-26T01:23:34.000Z | ui/page_elements/detail_page/pages.py | ArcherLuo233/election-s-prediction | 9da72cb855f6d61f9cdec6e15f7ca832629ba51a | [
"MIT"
] | 1 | 2021-11-08T10:58:23.000Z | 2021-11-08T10:58:23.000Z | from model.zyrs import ZYRS
from ui.page_elements.search_page import SearchPage
class ZYRSChoicePage(SearchPage):
title = "重要人士"
model = ZYRS
summary = [
'姓名',
'性别',
'出生日期',
'党派',
'倾向',
'手机号',
'单位职务',
'来访时间'
]
| 16.222222 | 51 | 0.5 | 29 | 292 | 4.965517 | 0.758621 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.376712 | 292 | 17 | 52 | 17.176471 | 0.791209 | 0 | 0 | 0 | 0 | 0 | 0.092466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3125bb2ae49d1f1533ceb075ba29a3c81abec10c | 7,283 | py | Python | libpermian/plugins/beaker_tag/test.py | velezd/permian | b52189f44c3112ad933a6b1e303a6b30c272651a | [
"MIT"
] | null | null | null | libpermian/plugins/beaker_tag/test.py | velezd/permian | b52189f44c3112ad933a6b1e303a6b30c272651a | [
"MIT"
] | null | null | null | libpermian/plugins/beaker_tag/test.py | velezd/permian | b52189f44c3112ad933a6b1e303a6b30c272651a | [
"MIT"
] | null | null | null | import unittest
from unittest.mock import Mock, patch
from libpermian.plugins.beaker_tag import BeakerTagReportSender
from libpermian.settings import Settings
from libpermian.caserunconfiguration import CaseRunConfiguration, CaseRunConfigurationsList
from libpermian.result import Result
from libpermian.issueanalyzer.pr... | 53.948148 | 136 | 0.537691 | 611 | 7,283 | 6.296236 | 0.175123 | 0.053808 | 0.083182 | 0.081102 | 0.690668 | 0.68313 | 0.672472 | 0.654276 | 0.643358 | 0.629322 | 0 | 0.015849 | 0.376219 | 7,283 | 134 | 137 | 54.350746 | 0.830949 | 0.005218 | 0 | 0.581818 | 0 | 0.018182 | 0.147156 | 0.054942 | 0 | 0 | 0 | 0 | 0.145455 | 1 | 0.054545 | false | 0.036364 | 0.072727 | 0 | 0.245455 | 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 |
312795b0e1238daef96a1a17d60ca4187d401f19 | 5,418 | py | Python | deeposlandia/datagen.py | Oslandia/Streetscene_CNN | 5e8324cb67e2adb5ec1fba56b26d4a92f2c8e4ba | [
"MIT"
] | 53 | 2018-04-21T17:40:59.000Z | 2022-02-08T17:04:44.000Z | deeposlandia/datagen.py | Oslandia/Streetscene_CNN | 5e8324cb67e2adb5ec1fba56b26d4a92f2c8e4ba | [
"MIT"
] | 88 | 2018-03-30T12:28:04.000Z | 2020-05-14T12:39:59.000Z | deeposlandia/datagen.py | Oslandia/Streetscene_CNN | 5e8324cb67e2adb5ec1fba56b26d4a92f2c8e4ba | [
"MIT"
] | 14 | 2018-06-06T02:18:37.000Z | 2022-02-08T17:04:46.000Z | """Main method to generate new datasets
Example of program call:
* generate 64*64 pixel images from Shapes dataset, 10000 images in the training
set, 100 in the validation set, 1000 in the testing set::
python deeposlandia/datagen.py -D shapes -s 64 -t 10000 -v 100 -T 1000
"""
import argparse
import os
impo... | 39.547445 | 83 | 0.645995 | 606 | 5,418 | 5.536304 | 0.231023 | 0.060805 | 0.050373 | 0.022355 | 0.411028 | 0.25842 | 0.25842 | 0.18152 | 0.152906 | 0.117139 | 0 | 0.008852 | 0.27021 | 5,418 | 136 | 84 | 39.838235 | 0.839656 | 0.075858 | 0 | 0.181818 | 1 | 0 | 0.157926 | 0.004203 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009091 | false | 0 | 0.090909 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
312970bf154d7a4902c1862d84916a59148ea3ca | 2,133 | py | Python | bagels.py | inpg12345/Repozytorium | 7773f28455afc84c56e87914351eb134b188c610 | [
"Unlicense"
] | null | null | null | bagels.py | inpg12345/Repozytorium | 7773f28455afc84c56e87914351eb134b188c610 | [
"Unlicense"
] | null | null | null | bagels.py | inpg12345/Repozytorium | 7773f28455afc84c56e87914351eb134b188c610 | [
"Unlicense"
] | null | null | null | """
Bagels: a number game.
Copyright (c) 2014 Grant Jenks
http://www.grantjenks.com/
Based on the Bagels game from:
http://inventwithpython.com/chapter11.html
Exercises:
1. Can you guess the number?
2. How much harder is 6 digits? Do you need more guesses?
3. What's the maximum number of digits we could support?
"""... | 24.517241 | 86 | 0.586967 | 288 | 2,133 | 4.340278 | 0.416667 | 0.0168 | 0.0336 | 0.0272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026585 | 0.312236 | 2,133 | 86 | 87 | 24.802326 | 0.825494 | 0.019222 | 0 | 0.145833 | 0 | 0 | 0.323347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020833 | null | null | 0.3125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
312aeb0131f3a309f26031fba590521d3c89e8db | 403 | py | Python | carnival/migrations/0004_carnival_categories.py | farro4069/allez | c6ba374ee03cb01a494a4f6fe8ae0d0de5ce463c | [
"BSD-2-Clause"
] | null | null | null | carnival/migrations/0004_carnival_categories.py | farro4069/allez | c6ba374ee03cb01a494a4f6fe8ae0d0de5ce463c | [
"BSD-2-Clause"
] | null | null | null | carnival/migrations/0004_carnival_categories.py | farro4069/allez | c6ba374ee03cb01a494a4f6fe8ae0d0de5ce463c | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 2.1.4 on 2019-09-26 01:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('carnival', '0003_auto_20190925_1802'),
]
operations = [
migrations.AddField(
model_name='carnival',
name='categories... | 21.210526 | 62 | 0.60794 | 42 | 403 | 5.738095 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106164 | 0.275434 | 403 | 18 | 63 | 22.388889 | 0.719178 | 0.111663 | 0 | 0 | 1 | 0 | 0.176966 | 0.064607 | 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 |
312feca64777356c1973fda14bcc259f8f9a52b5 | 1,153 | py | Python | nksama/plugins/music.py | Punnisher80/Komi-San | 90aeeeb0503573d81f20556ba3e1c3dafe9a40d4 | [
"Apache-2.0"
] | 31 | 2021-10-02T15:19:38.000Z | 2022-03-24T11:55:24.000Z | nksama/plugins/music.py | Punnisher80/Komi-San | 90aeeeb0503573d81f20556ba3e1c3dafe9a40d4 | [
"Apache-2.0"
] | 5 | 2021-10-03T12:33:24.000Z | 2022-02-05T15:28:55.000Z | nksama/plugins/music.py | Punnisher80/Komi-San | 90aeeeb0503573d81f20556ba3e1c3dafe9a40d4 | [
"Apache-2.0"
] | 59 | 2021-10-02T15:19:48.000Z | 2022-03-10T10:35:21.000Z | from pyrogram import filters
from nksama import bot, musicbot
import pytgcalls
calls = pytgcalls.GroupCallFactory(musicbot).get_group_call()
@bot.on_message(filters.command('play'))
async def play(_, message):
try:
await musicbot.start()
except:
pass
reply = message.reply_to_message
i... | 25.065217 | 61 | 0.66869 | 144 | 1,153 | 5.215278 | 0.326389 | 0.093209 | 0.063915 | 0.101198 | 0.609854 | 0.609854 | 0.609854 | 0.516644 | 0.516644 | 0.516644 | 0 | 0 | 0.210755 | 1,153 | 45 | 62 | 25.622222 | 0.825275 | 0 | 0 | 0.5 | 0 | 0 | 0.048569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.083333 | 0 | 0.083333 | 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 |
3131984328265428500c01cfa5a62cb7ef7d3d00 | 2,569 | py | Python | src/piece.py | fenixGames/werewolf-vs-vampires | f6f41aaf27102a8235363744c738ad22dbb10a29 | [
"BSD-2-Clause"
] | 1 | 2018-12-29T15:56:45.000Z | 2018-12-29T15:56:45.000Z | src/piece.py | fenixGames/werewolf-vs-vampires | f6f41aaf27102a8235363744c738ad22dbb10a29 | [
"BSD-2-Clause"
] | null | null | null | src/piece.py | fenixGames/werewolf-vs-vampires | f6f41aaf27102a8235363744c738ad22dbb10a29 | [
"BSD-2-Clause"
] | null | null | null | import pathlib
import random
from enum import Enum
from typing import Tuple, List
from lib.game_object import GameObject
from lib.graphics import GraphicResource
from lib.vector import Size
class PieceType(Enum):
YELLOW = pathlib.Path('resources/yellow.png')
RED = pathlib.Path('resources/red.png')
BLUE =... | 28.865169 | 109 | 0.645387 | 322 | 2,569 | 4.987578 | 0.245342 | 0.054795 | 0.099626 | 0.029888 | 0.231631 | 0.135741 | 0.069738 | 0.069738 | 0.069738 | 0.069738 | 0 | 0.006687 | 0.243285 | 2,569 | 88 | 110 | 29.193182 | 0.819444 | 0.051771 | 0 | 0.184615 | 0 | 0 | 0.06376 | 0.009461 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.107692 | 0.046154 | 0.569231 | 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 |
313ac13e7c7b3bc2d1d69a4df04659c088185c35 | 2,587 | py | Python | applications/CoSimulationApplication/python_scripts/solver_wrappers/external/flower_wrapper.py | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | 2 | 2019-10-25T09:28:10.000Z | 2019-11-21T12:51:46.000Z | applications/CoSimulationApplication/python_scripts/solver_wrappers/external/flower_wrapper.py | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | 13 | 2019-10-07T12:06:51.000Z | 2020-02-18T08:48:33.000Z | applications/CoSimulationApplication/python_scripts/solver_wrappers/external/flower_wrapper.py | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | null | null | null | from __future__ import print_function, absolute_import, division # makes KratosMultiphysics backward compatible with python 2.6 and 2.7
# Importing the Kratos Library
import KratosMultiphysics as KM
# Importing the base class
from KratosMultiphysics.CoSimulationApplication.base_classes.co_simulation_solver_wrapper i... | 42.409836 | 136 | 0.710475 | 287 | 2,587 | 6.090592 | 0.358885 | 0.064073 | 0.059497 | 0.057208 | 0.251716 | 0.232838 | 0.232838 | 0.232838 | 0.192792 | 0.16476 | 0 | 0.002892 | 0.197913 | 2,587 | 61 | 137 | 42.409836 | 0.839518 | 0.124469 | 0 | 0.153846 | 0 | 0 | 0.152174 | 0.040816 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.153846 | false | 0 | 0.128205 | 0.076923 | 0.384615 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
313fca77e8f84f3c93cfe0540b1a6d6e361ead8b | 1,977 | py | Python | pypeit/scripts/chk_edges.py | ykwang1/PypeIt | a96cff699f1284905ce7ef19d06a9027cd333c63 | [
"BSD-3-Clause"
] | 107 | 2018-08-06T07:07:20.000Z | 2022-02-28T14:33:42.000Z | pypeit/scripts/chk_edges.py | ykwang1/PypeIt | a96cff699f1284905ce7ef19d06a9027cd333c63 | [
"BSD-3-Clause"
] | 889 | 2018-07-26T12:14:33.000Z | 2022-03-18T22:49:42.000Z | pypeit/scripts/chk_edges.py | ykwang1/PypeIt | a96cff699f1284905ce7ef19d06a9027cd333c63 | [
"BSD-3-Clause"
] | 74 | 2018-09-25T17:03:07.000Z | 2022-03-10T23:59:24.000Z | """
This script displays the Trace image and the traces in an RC Ginga window.
.. include common links, assuming primary doc root is up one directory
.. include:: ../include/links.rst
"""
from pypeit.scripts import scriptbase
class ChkEdges(scriptbase.ScriptBase):
@classmethod
def get_parser(cls, width=Non... | 40.346939 | 99 | 0.647446 | 267 | 1,977 | 4.722846 | 0.535581 | 0.028549 | 0.053925 | 0.036479 | 0.049167 | 0.049167 | 0 | 0 | 0 | 0 | 0 | 0.004854 | 0.270612 | 1,977 | 48 | 100 | 41.1875 | 0.869626 | 0.31917 | 0 | 0 | 0 | 0 | 0.230248 | 0.021068 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.291667 | 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 |
3146373fb91b88036e3bb9f8f4c441a4f506c317 | 3,236 | py | Python | genq/__init__.py | nextblu/genq | 8728abb7c6d82b427789bcfec01b909758b301ab | [
"MIT"
] | 1 | 2020-04-24T20:55:47.000Z | 2020-04-24T20:55:47.000Z | genq/__init__.py | nextblu/genq | 8728abb7c6d82b427789bcfec01b909758b301ab | [
"MIT"
] | 1 | 2021-04-30T12:52:06.000Z | 2021-04-30T12:52:06.000Z | genq/__init__.py | nextblu/genq | 8728abb7c6d82b427789bcfec01b909758b301ab | [
"MIT"
] | null | null | null | class Query:
"""
Class representing a single query to be executed on the database.
"""
def __init__(self):
self.__select = "*"
self.__from = None
self.__where = None
self.__group_by = None
self.__having = None
self.__order_by = None
self.__limit = ... | 27.423729 | 109 | 0.60754 | 399 | 3,236 | 4.513784 | 0.117794 | 0.069961 | 0.097723 | 0.077735 | 0.381455 | 0.187674 | 0.13437 | 0.118823 | 0.118823 | 0.1005 | 0 | 0 | 0.308405 | 3,236 | 117 | 110 | 27.65812 | 0.804736 | 0.029357 | 0 | 0.267442 | 0 | 0 | 0.12384 | 0 | 0 | 0 | 0 | 0.008547 | 0 | 1 | 0.255814 | false | 0.023256 | 0 | 0.034884 | 0.418605 | 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 |
3147ef62a7d86dee90ebf9537d43837c414229ec | 3,455 | py | Python | lab-exercise-I.py | adekunle-crypto/adekunlecsc102 | 76b85517472f3ed62a32a440485efd90ff3dfe58 | [
"MIT"
] | null | null | null | lab-exercise-I.py | adekunle-crypto/adekunlecsc102 | 76b85517472f3ed62a32a440485efd90ff3dfe58 | [
"MIT"
] | null | null | null | lab-exercise-I.py | adekunle-crypto/adekunlecsc102 | 76b85517472f3ed62a32a440485efd90ff3dfe58 | [
"MIT"
] | null | null | null | {
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Adekunle Oliver Adebajo\n",
"### 20120612016\n",
"### adekunle.adebajo@pau.edu.ng\n",
"### the following codes consist of class exercises involving problem solving"
]
},
{
"cell_type": "code",
"execution_co... | 20.688623 | 263 | 0.454703 | 418 | 3,455 | 3.674641 | 0.301435 | 0.022135 | 0.046875 | 0.082031 | 0.263672 | 0.189453 | 0.154297 | 0.154297 | 0.066406 | 0 | 0 | 0.069038 | 0.308249 | 3,455 | 166 | 264 | 20.813253 | 0.57364 | 0 | 0 | 0.319277 | 0 | 0.012048 | 0.586686 | 0.086541 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
31536a5c345201b824de92a4c2298610447a896f | 4,645 | py | Python | Code/Consumer.py | ntuecon/2019group3 | 9eb4a40f0bd209278bb07224cec21681b92c9b1f | [
"MIT"
] | null | null | null | Code/Consumer.py | ntuecon/2019group3 | 9eb4a40f0bd209278bb07224cec21681b92c9b1f | [
"MIT"
] | null | null | null | Code/Consumer.py | ntuecon/2019group3 | 9eb4a40f0bd209278bb07224cec21681b92c9b1f | [
"MIT"
] | null | null | null | import numpy
from scipy.optimize import minimize
#This class models the consumers and their preferences of the economy
class Consumer (object):
#This is the constructor for the consumer class, it provides the consumer object with all the parameters needed to calculate the utility function
#alpha, beta, gam... | 34.407407 | 149 | 0.620883 | 573 | 4,645 | 5.001745 | 0.253054 | 0.024424 | 0.025122 | 0.030705 | 0.184229 | 0.10956 | 0.099093 | 0.099093 | 0.08723 | 0.08723 | 0 | 0.009541 | 0.277933 | 4,645 | 134 | 150 | 34.664179 | 0.844961 | 0.261787 | 0 | 0.115942 | 0 | 0 | 0.039624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028986 | null | null | 0.057971 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
31559dba7cd317113d0e5c722d7d93aaed8be13c | 6,087 | py | Python | analysis/beamtools.py | buddyd16/theToolbox | b04ca462595af1e90b7c2d1d35527aaf19664b0d | [
"BSD-3-Clause"
] | 1 | 2022-02-21T16:06:22.000Z | 2022-02-21T16:06:22.000Z | analysis/beamtools.py | buddyd16/theToolbox | b04ca462595af1e90b7c2d1d35527aaf19664b0d | [
"BSD-3-Clause"
] | 2 | 2022-02-10T03:38:50.000Z | 2022-03-02T14:52:43.000Z | analysis/beamtools.py | buddyd16/theToolbox | b04ca462595af1e90b7c2d1d35527aaf19664b0d | [
"BSD-3-Clause"
] | null | null | null | '''
BSD 3-Clause License
Copyright (c) 2022, Donald N. Bockoven III
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
l... | 33.081522 | 107 | 0.550517 | 826 | 6,087 | 4 | 0.324455 | 0.006659 | 0.010896 | 0.015739 | 0.138923 | 0.117736 | 0.081719 | 0.069613 | 0.058111 | 0.058111 | 0 | 0.028497 | 0.371612 | 6,087 | 184 | 108 | 33.081522 | 0.835294 | 0.43634 | 0 | 0.427083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.104167 | 0.020833 | 0 | 0.104167 | 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 |
3155faa88473605260b6ea4b7d7e9f5426d36d42 | 3,744 | py | Python | monitor/traffic_monitor/views/video_views.py | mcdomx/TrafficMonitor | 751d6161ecb5b122803e5af2938abe2fbbaf3ea6 | [
"MIT"
] | null | null | null | monitor/traffic_monitor/views/video_views.py | mcdomx/TrafficMonitor | 751d6161ecb5b122803e5af2938abe2fbbaf3ea6 | [
"MIT"
] | 2 | 2021-09-22T19:08:07.000Z | 2022-03-12T00:40:48.000Z | monitor/traffic_monitor/views/video_views.py | mcdomx/TrafficMonitor | 751d6161ecb5b122803e5af2938abe2fbbaf3ea6 | [
"MIT"
] | null | null | null | import logging
import time
import pafy
import cv2
import cvlib as cv
from cvlib.object_detection import draw_bbox, populate_class_labels
import numpy as np
from django.http import StreamingHttpResponse
from traffic_monitor.detectors.detector_cvlib import DetectorCVlib
logger = logging.getLogger('video_models')
logg... | 26.553191 | 114 | 0.623932 | 498 | 3,744 | 4.586345 | 0.399598 | 0.028021 | 0.028021 | 0.017075 | 0.027145 | 0.027145 | 0 | 0 | 0 | 0 | 0 | 0.012695 | 0.263622 | 3,744 | 140 | 115 | 26.742857 | 0.815742 | 0.196047 | 0 | 0.116883 | 0 | 0 | 0.131624 | 0.024615 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064935 | false | 0.103896 | 0.116883 | 0 | 0.246753 | 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 |
315b64c7367dca7b46e35e34018d7aa2c7761ce0 | 128,882 | py | Python | modules/t_google_play_download/gplay-cli/ext_libs/androguard/core/bytecodes/jvm.py | napoler/t-drupal-module | dd57ff751bf58dd0cdf5f6c951aee8b3ec4a78cd | [
"Apache-2.0"
] | 285 | 2019-12-23T09:50:21.000Z | 2021-12-08T09:08:49.000Z | modules/t_google_play_download/gplay-cli/ext_libs/androguard/core/bytecodes/jvm.py | napoler/t-drupal-module | dd57ff751bf58dd0cdf5f6c951aee8b3ec4a78cd | [
"Apache-2.0"
] | 5 | 2016-10-14T05:13:37.000Z | 2017-09-25T18:14:51.000Z | modules/t_google_play_download/gplay-cli/ext_libs/androguard/core/bytecodes/jvm.py | napoler/t-drupal-module | dd57ff751bf58dd0cdf5f6c951aee8b3ec4a78cd | [
"Apache-2.0"
] | 18 | 2016-10-14T14:02:16.000Z | 2021-03-06T06:13:29.000Z | # This file is part of Androguard.
#
# Copyright (C) 2012, Anthony Desnos <desnos at t0t0.fr>
# All rights reserved.
#
# Androguard is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of th... | 37.389614 | 219 | 0.570731 | 15,322 | 128,882 | 4.464952 | 0.067876 | 0.027364 | 0.010261 | 0.011694 | 0.633865 | 0.561173 | 0.507338 | 0.451178 | 0.405163 | 0.358738 | 0 | 0.018797 | 0.319308 | 128,882 | 3,446 | 220 | 37.400464 | 0.761014 | 0.071686 | 0 | 0.428949 | 0 | 0 | 0.078955 | 0.008168 | 0 | 0 | 0.009281 | 0.001741 | 0 | 0 | null | null | 0.005719 | 0.00264 | null | null | 0.033436 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
315bcfad5ec05e236d9e19d30cc293d7c4aab401 | 507 | py | Python | setup.py | HSBNE/HSBNEXero | 0235b8080fff161eb47a7b2055f585a82df76079 | [
"Apache-2.0"
] | null | null | null | setup.py | HSBNE/HSBNEXero | 0235b8080fff161eb47a7b2055f585a82df76079 | [
"Apache-2.0"
] | null | null | null | setup.py | HSBNE/HSBNEXero | 0235b8080fff161eb47a7b2055f585a82df76079 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import io
import re
from setuptools import setup
# Python's cryptography builds a binary from C using libffi-dev
#sudo apt-get install build-essential libssl-dev libffi-dev python-dev
setup(
name='HSBNEXero',
version='0.1.0',
description='Reporting tool from Xero for HSBNE.org.',
... | 21.125 | 70 | 0.666667 | 67 | 507 | 5.014925 | 0.776119 | 0.053571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017456 | 0.209073 | 507 | 23 | 71 | 22.043478 | 0.820449 | 0.299803 | 0 | 0 | 0 | 0 | 0.354286 | 0.077143 | 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 |
3166c0f54eed6ac9d3c110e0eddd7497d1cf658d | 221 | py | Python | Labs/Topic03-Variables/lab03.03-div.py | conor1982/Labs_Practice | d8611f38abccf937bd37dc60d37f9a4096d245fc | [
"MIT"
] | null | null | null | Labs/Topic03-Variables/lab03.03-div.py | conor1982/Labs_Practice | d8611f38abccf937bd37dc60d37f9a4096d245fc | [
"MIT"
] | null | null | null | Labs/Topic03-Variables/lab03.03-div.py | conor1982/Labs_Practice | d8611f38abccf937bd37dc60d37f9a4096d245fc | [
"MIT"
] | null | null | null | #divide 2 numbers
x = int(input("Enter first number :"))
y = int(input("Enter second number :"))
answer = int(x/y)
remainder = x % y
print("{} divided by {} is {} with a remainder of {}".format(x,y,answer,remainder))
| 20.090909 | 83 | 0.642534 | 35 | 221 | 4.057143 | 0.6 | 0.042254 | 0.183099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0.171946 | 221 | 10 | 84 | 22.1 | 0.770492 | 0.072398 | 0 | 0 | 0 | 0 | 0.423645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
316aaa9836f59362a6fecb0c3137408897d3f6bf | 740 | py | Python | hunspellcheck/cli/files.py | mondeja/hunspellcheck | 9829842628a2cf507b7544cbb7fa51e078b83b56 | [
"BSD-3-Clause"
] | null | null | null | hunspellcheck/cli/files.py | mondeja/hunspellcheck | 9829842628a2cf507b7544cbb7fa51e078b83b56 | [
"BSD-3-Clause"
] | 35 | 2021-04-09T10:25:46.000Z | 2022-01-04T06:09:29.000Z | hunspellcheck/cli/files.py | mondeja/hunspellcheck | 9829842628a2cf507b7544cbb7fa51e078b83b56 | [
"BSD-3-Clause"
] | null | null | null | """Files positional argument related stuff for hunspellcheck CLI utilities."""
import argparse
import copy
import glob
class FilesOrGlobsAction(argparse.Action):
"""Prior to Python3.8, the argarse module does not include the
`_ExtendAction`, so here we are replicating their behaviour.
If the library sto... | 33.636364 | 78 | 0.709459 | 96 | 740 | 5.395833 | 0.739583 | 0.050193 | 0.065637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006814 | 0.206757 | 740 | 21 | 79 | 35.238095 | 0.875639 | 0.486486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
316f7c786838de9beadaf54108bf8d4965298123 | 671 | py | Python | python/django/03-apis/apis/migrations/0001_initial.py | Pearcee/mac-m1-ash | 8b731661735a5f068cfc14d5ad4d055135f352c3 | [
"Apache-2.0"
] | null | null | null | python/django/03-apis/apis/migrations/0001_initial.py | Pearcee/mac-m1-ash | 8b731661735a5f068cfc14d5ad4d055135f352c3 | [
"Apache-2.0"
] | null | null | null | python/django/03-apis/apis/migrations/0001_initial.py | Pearcee/mac-m1-ash | 8b731661735a5f068cfc14d5ad4d055135f352c3 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-24 15:01
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='books',
fields=[
('id', models.BigAutoField... | 26.84 | 117 | 0.5693 | 67 | 671 | 5.567164 | 0.671642 | 0.053619 | 0.101877 | 0.117962 | 0.160858 | 0.160858 | 0 | 0 | 0 | 0 | 0 | 0.040512 | 0.301043 | 671 | 24 | 118 | 27.958333 | 0.754797 | 0.067064 | 0 | 0 | 1 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
317010d38344a04c5fda5afac329359666064a56 | 19,470 | py | Python | cloudmesh/rain/cobbler/cobbler_rest_api.py | JulienPalard/cloudmesh | 1759b88daef3a13917492d028fdabe08f03ca996 | [
"Apache-2.0"
] | null | null | null | cloudmesh/rain/cobbler/cobbler_rest_api.py | JulienPalard/cloudmesh | 1759b88daef3a13917492d028fdabe08f03ca996 | [
"Apache-2.0"
] | 4 | 2021-06-08T20:20:08.000Z | 2022-03-11T23:30:22.000Z | cloudmesh/rain/cobbler/cobbler_rest_api.py | JulienPalard/cloudmesh | 1759b88daef3a13917492d028fdabe08f03ca996 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
from cloudmesh.util.config import read_yaml_config
from cloudmesh.config.cm_config import cm_config_server
from cloudmesh.provisioner.baremetal_status import BaremetalStatus
import requests
import json
from time import sleep
import threading
from cloudmesh_base.logger import LOGGE... | 42.980132 | 211 | 0.624242 | 2,415 | 19,470 | 4.86087 | 0.103934 | 0.060908 | 0.016611 | 0.023256 | 0.591021 | 0.516824 | 0.465372 | 0.372008 | 0.359315 | 0.307607 | 0 | 0.014474 | 0.26189 | 19,470 | 452 | 212 | 43.075221 | 0.80238 | 0.356138 | 0 | 0.205882 | 0 | 0 | 0.104856 | 0.033195 | 0 | 0 | 0 | 0 | 0 | 1 | 0.229412 | false | 0 | 0.052941 | 0 | 0.511765 | 0.011765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
31707345ef23c334835889b7a03ad9bbd85e134f | 1,943 | py | Python | dataactcore/migrations/versions/de48ea53b63c_update_program_activity_to_store_fiscal_.py | brianherman/data-act-broker-backend | 80eb055b9d245046192f7ad4fd0be7d0e11d2dec | [
"CC0-1.0"
] | 1 | 2019-06-22T21:53:16.000Z | 2019-06-22T21:53:16.000Z | dataactcore/migrations/versions/de48ea53b63c_update_program_activity_to_store_fiscal_.py | brianherman/data-act-broker-backend | 80eb055b9d245046192f7ad4fd0be7d0e11d2dec | [
"CC0-1.0"
] | 3 | 2021-08-22T11:47:45.000Z | 2022-03-29T22:06:49.000Z | dataactcore/migrations/versions/de48ea53b63c_update_program_activity_to_store_fiscal_.py | brianherman/data-act-broker-backend | 80eb055b9d245046192f7ad4fd0be7d0e11d2dec | [
"CC0-1.0"
] | 1 | 2020-07-17T23:50:56.000Z | 2020-07-17T23:50:56.000Z | """Update program activity to store fiscal_year_quarter and remove budget_year
Revision ID: de48ea53b63c
Revises: 321af67fae11
Create Date: 2018-05-31 11:43:16.693958
"""
# revision identifiers, used by Alembic.
revision = 'de48ea53b63c'
down_revision = '321af67fae11'
branch_labels = None
depends_on = None
import o... | 34.087719 | 200 | 0.755533 | 260 | 1,943 | 5.253846 | 0.296154 | 0.208638 | 0.087116 | 0.091508 | 0.591508 | 0.484627 | 0.441435 | 0.441435 | 0.441435 | 0.383602 | 0 | 0.026838 | 0.117859 | 1,943 | 56 | 201 | 34.696429 | 0.770128 | 0.205867 | 0 | 0.090909 | 0 | 0 | 0.457447 | 0.178191 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
31761c42040342066c78df5e8381ed6489a012d6 | 4,105 | py | Python | epubhub/settings.py | zejn/epubhub | e6efea27738ca97bc4c63283a2b41f5858485436 | [
"Apache-2.0"
] | 1 | 2021-04-17T11:22:16.000Z | 2021-04-17T11:22:16.000Z | epubhub/settings.py | zejn/epubhub | e6efea27738ca97bc4c63283a2b41f5858485436 | [
"Apache-2.0"
] | null | null | null | epubhub/settings.py | zejn/epubhub | e6efea27738ca97bc4c63283a2b41f5858485436 | [
"Apache-2.0"
] | null | null | null | # Django settings for epubhub project.
import os, sys
here = lambda x: os.path.abspath(os.path.join(os.path.dirname(__file__), x))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.pos... | 32.070313 | 134 | 0.68039 | 531 | 4,105 | 5.180791 | 0.45951 | 0.047256 | 0.015994 | 0.026172 | 0.111232 | 0.079244 | 0.040712 | 0.021083 | 0 | 0 | 0 | 0.008209 | 0.198782 | 4,105 | 127 | 135 | 32.322835 | 0.828215 | 0.481364 | 0 | 0.064516 | 0 | 0 | 0.370445 | 0.236336 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016129 | 0.080645 | null | null | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3187b1ff846bb3eec0dc1c0765ac5f55a8105d8f | 3,394 | py | Python | main_stereo.py | VLOGroup/bp-layers | 226d67f73396dfd14f1cbb12445e542781256260 | [
"MIT"
] | 16 | 2020-03-16T03:02:50.000Z | 2022-03-16T02:33:51.000Z | main_stereo.py | VLOGroup/bp-layers | 226d67f73396dfd14f1cbb12445e542781256260 | [
"MIT"
] | 2 | 2020-09-01T10:54:15.000Z | 2021-05-17T07:13:08.000Z | main_stereo.py | VLOGroup/bp-layers | 226d67f73396dfd14f1cbb12445e542781256260 | [
"MIT"
] | 4 | 2020-08-17T09:56:39.000Z | 2022-01-31T10:12:16.000Z | import argparse
import torch
from stereo import MinSumStereo, BlockMatchStereo, RefinedMinSumStereo
import data
import imageio
import numpy as np
import matplotlib.pyplot as plt
parser = argparse.ArgumentParser()
parser.add_argument('--im0', action='store', required=True, type=str)
parser.add_argument('--im1', acti... | 50.656716 | 110 | 0.67914 | 459 | 3,394 | 4.930283 | 0.272331 | 0.099426 | 0.187804 | 0.056562 | 0.439682 | 0.407866 | 0.376933 | 0.365002 | 0.326116 | 0.049492 | 0 | 0.010267 | 0.139069 | 3,394 | 67 | 111 | 50.656716 | 0.764203 | 0.006187 | 0 | 0.036364 | 0 | 0 | 0.23962 | 0.025504 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.127273 | 0 | 0.127273 | 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 |
3187dbd4b7e712b0caace97e5e153c455e59d59c | 2,792 | py | Python | tox_envreport/plugin.py | useblocks/tox-envreport | 391ba869ff47fafef79293a33ea0601c4dd1ff70 | [
"MIT"
] | 6 | 2018-04-19T18:18:12.000Z | 2021-06-25T12:01:52.000Z | tox_envreport/plugin.py | useblocks/tox-envreport | 391ba869ff47fafef79293a33ea0601c4dd1ff70 | [
"MIT"
] | 5 | 2019-04-04T16:18:46.000Z | 2021-03-13T09:02:18.000Z | tox_envreport/plugin.py | useblocks/tox-envreport | 391ba869ff47fafef79293a33ea0601c4dd1ff70 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
import os
from packaging import version
import pluggy
import json
import tox
hookimpl = pluggy.HookimplMarker("tox")
log = logging.getLogger('envreport')
env_data = {}
@hookimpl
def tox_runtest_post(venv):
"""
Hooks into each test to collect and store information about... | 31.022222 | 79 | 0.623209 | 353 | 2,792 | 4.745042 | 0.325779 | 0.111642 | 0.080597 | 0.06806 | 0.374328 | 0.235821 | 0.235821 | 0.235821 | 0.235821 | 0.235821 | 0 | 0.009827 | 0.234599 | 2,792 | 89 | 80 | 31.370787 | 0.773982 | 0.290473 | 0 | 0.255319 | 0 | 0 | 0.047544 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.042553 | false | 0 | 0.12766 | 0 | 0.191489 | 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 |
31894bf8299f1038a252979c0ab087c15e600570 | 810 | py | Python | test/functional/test_case_base.py | 2a5A1Ghu1/Phore | d30971b48093b124293f804ba8c4ab01d4abe829 | [
"MIT"
] | 71 | 2017-12-12T18:24:21.000Z | 2021-11-17T18:33:59.000Z | test/functional/test_case_base.py | 2a5A1Ghu1/Phore | d30971b48093b124293f804ba8c4ab01d4abe829 | [
"MIT"
] | 99 | 2017-09-25T10:14:11.000Z | 2021-09-21T21:05:39.000Z | test/functional/test_case_base.py | 2a5A1Ghu1/Phore | d30971b48093b124293f804ba8c4ab01d4abe829 | [
"MIT"
] | 175 | 2017-11-08T20:33:31.000Z | 2022-02-17T23:39:49.000Z | from test.functional.test_framework import BitcoinTestFramework
class TestCaseBase(BitcoinTestFramework) :
def set_test_params(self) :
pass
def run_test(self) :
key_list = dir(self)
for name in key_list :
if name.startswith("initialize") :
print('In... | 33.75 | 84 | 0.555556 | 83 | 810 | 5.024096 | 0.325301 | 0.067146 | 0.064748 | 0.086331 | 0.517986 | 0.517986 | 0.517986 | 0.517986 | 0.441247 | 0.345324 | 0 | 0 | 0.334568 | 810 | 23 | 85 | 35.217391 | 0.773655 | 0 | 0 | 0.333333 | 0 | 0 | 0.093827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.055556 | 0 | 0.222222 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
318c5b2ace5bfb4a2b123c2bd8eee78130a8cf43 | 736 | py | Python | world-2/desafio-065.py | udanielnogueira/Python.CursoEmVideo | 3783af84813d9fa785eee61180793a15754c79b3 | [
"MIT"
] | null | null | null | world-2/desafio-065.py | udanielnogueira/Python.CursoEmVideo | 3783af84813d9fa785eee61180793a15754c79b3 | [
"MIT"
] | null | null | null | world-2/desafio-065.py | udanielnogueira/Python.CursoEmVideo | 3783af84813d9fa785eee61180793a15754c79b3 | [
"MIT"
] | null | null | null | '''
Crie um programa que leia vários números inteiros pelo teclado. No final da execução, mostre a média entre
todos os valores e qual foi o maior e o menor valores lidos. O programa deve perguntar ao usuário se ele
quer ou não continuar a digitar valores.
'''
continuar = 'S'
acumulador = 0
contador = 0
numero = 0
med... | 23 | 106 | 0.66712 | 104 | 736 | 4.721154 | 0.538462 | 0.0611 | 0.093686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017575 | 0.226902 | 736 | 32 | 107 | 23 | 0.845343 | 0.342391 | 0 | 0.095238 | 0 | 0 | 0.106918 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
318e782bf05cfa6cec0d1b2e7d66fa3f804672cf | 3,110 | py | Python | bin_coverage.py | Jdduryea/Jamtools | c14652ee7ddc0b9c3410856a2e08ee49e796f28c | [
"MIT"
] | null | null | null | bin_coverage.py | Jdduryea/Jamtools | c14652ee7ddc0b9c3410856a2e08ee49e796f28c | [
"MIT"
] | null | null | null | bin_coverage.py | Jdduryea/Jamtools | c14652ee7ddc0b9c3410856a2e08ee49e796f28c | [
"MIT"
] | null | null | null | #!/usr/bin/python
####################################################
#
# Bins human genome into x-size bins and keeps track of the
# percentage of CpG sites covered
#
# Jack Duryea
# Waterland lab, Baylor College of Medicine
# <duryea@bcm.edu>
####################################################
import numpy as np
i... | 28.272727 | 103 | 0.620257 | 436 | 3,110 | 4.261468 | 0.385321 | 0.03014 | 0.021529 | 0.027987 | 0.040904 | 0.040904 | 0.040904 | 0.040904 | 0 | 0 | 0 | 0.017402 | 0.242444 | 3,110 | 109 | 104 | 28.53211 | 0.771222 | 0.263344 | 0 | 0 | 0 | 0 | 0.043236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.190476 | null | null | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
319606ec0398d2bf087b78777eb27e249b9b5ac1 | 835 | py | Python | huskar_api/models/route/utils.py | mowangdk/huskar | 7692fbc5672a5ae6e2a33616c493466a7137f8cd | [
"MIT"
] | 59 | 2019-10-31T10:50:10.000Z | 2021-11-26T04:32:25.000Z | huskar_api/models/route/utils.py | mowangdk/huskar | 7692fbc5672a5ae6e2a33616c493466a7137f8cd | [
"MIT"
] | 5 | 2019-10-31T10:37:30.000Z | 2020-03-02T06:45:46.000Z | huskar_api/models/route/utils.py | mowangdk/huskar | 7692fbc5672a5ae6e2a33616c493466a7137f8cd | [
"MIT"
] | 9 | 2019-10-31T10:35:00.000Z | 2019-12-01T14:13:58.000Z | from __future__ import absolute_import
import collections
from huskar_sdk_v2.consts import OVERALL
from huskar_api import settings
from huskar_api.models.const import ROUTE_DEFAULT_INTENT
RouteKey = collections.namedtuple('RouteKey', 'application_name intent')
def make_route_key(application_name, intent=None):
... | 26.935484 | 72 | 0.74491 | 114 | 835 | 5.175439 | 0.394737 | 0.101695 | 0.091525 | 0.081356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010057 | 0.166467 | 835 | 30 | 73 | 27.833333 | 0.837644 | 0 | 0 | 0 | 0 | 0 | 0.051497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.25 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
31974d8dc7681ff8deb6cd9c13037c3df024b67c | 4,098 | py | Python | facebook/wsgi.py | tubaman/pyfacebook | 6fac843c6c52ed916482c9995b4eaa89631aab3a | [
"FSFAP"
] | 1 | 2020-05-19T05:38:35.000Z | 2020-05-19T05:38:35.000Z | facebook/wsgi.py | douglaswth/pyfacebook | 4a1427808ba41e33698c0e018d2ed44e7993b1c9 | [
"FSFAP"
] | null | null | null | facebook/wsgi.py | douglaswth/pyfacebook | 4a1427808ba41e33698c0e018d2ed44e7993b1c9 | [
"FSFAP"
] | null | null | null | """This is some simple helper code to bridge the Pylons / PyFacebook gap.
There's some generic WSGI middleware, some Paste stuff, and some Pylons
stuff. Once you put FacebookWSGIMiddleware into your middleware stack,
you'll have access to ``environ["pyfacebook.facebook"]``, which is a
``facebook.Facebook`` object. I... | 31.045455 | 76 | 0.652513 | 477 | 4,098 | 5.492662 | 0.371069 | 0.039695 | 0.018321 | 0.019084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001001 | 0.268912 | 4,098 | 131 | 77 | 31.282443 | 0.873498 | 0.391654 | 0 | 0.181818 | 0 | 0 | 0.077826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.127273 | false | 0.036364 | 0.218182 | 0.018182 | 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 |
319bbb9bd7a3dcb544ed0bdcf40b9408a5b351cc | 689 | py | Python | joladnijo/permissions.py | joladnijo/joladnijo-backend | 89240e3990ce9cdad86a1d212d28062c07a58edb | [
"MIT"
] | null | null | null | joladnijo/permissions.py | joladnijo/joladnijo-backend | 89240e3990ce9cdad86a1d212d28062c07a58edb | [
"MIT"
] | 40 | 2022-03-06T19:46:07.000Z | 2022-03-27T11:50:02.000Z | joladnijo/permissions.py | joladnijo/joladnijo-backend | 89240e3990ce9cdad86a1d212d28062c07a58edb | [
"MIT"
] | 1 | 2022-03-29T08:53:21.000Z | 2022-03-29T08:53:21.000Z | from enum import Enum
class Permissions(str, Enum):
AdminAnyOrganization = "org:a:a"
ReadAnyOrganization = "org:r:a"
CreateSelfOrganization = "org:c:s"
UpdateSelfOrganization = "org:u:s"
DeleteSelfOrganization = "org:d:s"
AdminAnyAidCenter = "aidcenter:a:a"
ReadAnyAidCenter = "aidcenter:r:... | 34.45 | 48 | 0.712627 | 73 | 689 | 6.726027 | 0.424658 | 0.1222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165457 | 689 | 19 | 49 | 36.263158 | 0.853913 | 0 | 0 | 0 | 0 | 0 | 0.268505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 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 |
31a2cd8c6f1ccdffa7ef1d0e18b47047d071eebb | 1,381 | py | Python | tracklists/tracklists.py | leblancfg/tracklists | 773cfe673edf8aea291ab1aa2f7c2976c1e48122 | [
"MIT"
] | null | null | null | tracklists/tracklists.py | leblancfg/tracklists | 773cfe673edf8aea291ab1aa2f7c2976c1e48122 | [
"MIT"
] | null | null | null | tracklists/tracklists.py | leblancfg/tracklists | 773cfe673edf8aea291ab1aa2f7c2976c1e48122 | [
"MIT"
] | null | null | null | import pyperclip
import os
def tracklist(data):
"""Given a list of tracks with their duration,
returns the same list, but with cumulative times
so that they be skipped-to in YouTube. The last
item of each line must represent the duration.
Ex:
1 Black Cow 5:07 1 Black Cow 0:00
2 Aja ... | 30.688889 | 74 | 0.595221 | 192 | 1,381 | 4.208333 | 0.546875 | 0.02599 | 0.022277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035052 | 0.29761 | 1,381 | 44 | 75 | 31.386364 | 0.797938 | 0.398986 | 0 | 0 | 0 | 0 | 0.055909 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.08 | false | 0 | 0.08 | 0 | 0.24 | 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 |
31a506144bfcab58e5d5d3774634afe83986b38c | 2,599 | py | Python | Lib/objc/_MIME.py | snazari/Pyto | bcea7bbef35cab21ce73087b1a0c00a07d07ec72 | [
"MIT"
] | 701 | 2018-10-22T11:54:09.000Z | 2022-03-31T14:39:30.000Z | Lib/objc/_MIME.py | snazari/Pyto | bcea7bbef35cab21ce73087b1a0c00a07d07ec72 | [
"MIT"
] | 229 | 2018-10-24T09:15:31.000Z | 2021-12-24T16:51:37.000Z | Lib/objc/_MIME.py | snazari/Pyto | bcea7bbef35cab21ce73087b1a0c00a07d07ec72 | [
"MIT"
] | 131 | 2018-11-25T18:33:03.000Z | 2022-03-24T03:18:07.000Z | """
Classes from the 'MIME' framework.
"""
try:
from rubicon.objc import ObjCClass
except ValueError:
def ObjCClass(name):
return None
def _Class(name):
try:
return ObjCClass(name)
except NameError:
return None
MFWeakProxy = _Class("MFWeakProxy")
MFWeakReferenceHolder = _Cl... | 38.220588 | 73 | 0.815698 | 173 | 2,599 | 11.947977 | 0.381503 | 0.012579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003359 | 0.083494 | 2,599 | 67 | 74 | 38.791045 | 0.8644 | 0.013082 | 0 | 0.068966 | 0 | 0 | 0.326555 | 0.170903 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.017241 | 0.017241 | 0.103448 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
31af55c3fc982732bde85fde4152f96564aa97cb | 6,843 | py | Python | tests/test_credit_card_slips.py | MITLibraries/alma-scripts | c312692a71a83dc0b5e60761bc3e7b37d7d42099 | [
"Apache-2.0"
] | null | null | null | tests/test_credit_card_slips.py | MITLibraries/alma-scripts | c312692a71a83dc0b5e60761bc3e7b37d7d42099 | [
"Apache-2.0"
] | 16 | 2021-07-23T20:46:29.000Z | 2022-03-10T19:34:10.000Z | tests/test_credit_card_slips.py | MITLibraries/alma-scripts | c312692a71a83dc0b5e60761bc3e7b37d7d42099 | [
"Apache-2.0"
] | null | null | null | from defusedxml import ElementTree as ET
from llama import credit_card_slips
def test_create_po_line_dict_all_fields(
mocked_alma,
mocked_alma_api_client,
po_line_record_all_fields,
):
po_line_dict = credit_card_slips.create_po_line_dict(
mocked_alma_api_client,
po_line_record_all_fie... | 35.827225 | 88 | 0.735496 | 987 | 6,843 | 4.563323 | 0.107396 | 0.114565 | 0.09103 | 0.085258 | 0.775755 | 0.710258 | 0.591696 | 0.457815 | 0.424068 | 0.353686 | 0 | 0.025865 | 0.163817 | 6,843 | 190 | 89 | 36.015789 | 0.761272 | 0 | 0 | 0.291391 | 0 | 0 | 0.179015 | 0.025281 | 0 | 0 | 0 | 0 | 0.284768 | 1 | 0.125828 | false | 0 | 0.013245 | 0 | 0.139073 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
31b144c7bb293ca49295bbbf28ae710756a1d5c0 | 14,554 | py | Python | rls/tf2nn.py | czh513/RLs-for-TF2.0-Gym-Unity | a2b0ecb7ae4006bb3a6895207fc6a3c77a511317 | [
"Apache-2.0"
] | 1 | 2021-01-24T13:29:10.000Z | 2021-01-24T13:29:10.000Z | rls/tf2nn.py | H0wardx/RLs | cdf4ddcb1559996a5740197bfc2ebb2f8c678871 | [
"Apache-2.0"
] | null | null | null | rls/tf2nn.py | H0wardx/RLs | cdf4ddcb1559996a5740197bfc2ebb2f8c678871 | [
"Apache-2.0"
] | 1 | 2021-01-24T13:29:16.000Z | 2021-01-24T13:29:16.000Z | import tensorflow as tf
from .activations import swish, mish
from tensorflow.keras.layers import Dense
from tensorflow.keras import Model as M
from tensorflow.keras import Input as I
from rls.layers import Noisy, mlp
initKernelAndBias = {
'kernel_initializer': tf.random_normal_initializer(0.0, .1),
... | 35.411192 | 141 | 0.608493 | 2,059 | 14,554 | 4.043225 | 0.08645 | 0.084565 | 0.068949 | 0.040841 | 0.76961 | 0.706426 | 0.687087 | 0.64012 | 0.60997 | 0.583303 | 0 | 0.005217 | 0.262402 | 14,554 | 410 | 142 | 35.497561 | 0.770284 | 0.170262 | 0 | 0.607438 | 0 | 0 | 0.035552 | 0 | 0 | 0 | 0 | 0 | 0.008264 | 1 | 0.165289 | false | 0 | 0.024793 | 0 | 0.355372 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
31b2c6e12acb8af5d5ed3fdcbbd22112c4225c25 | 1,522 | py | Python | falconRaspberry/vehicle/sensorManager.py | omarsy/Falcon | ef762e4ec2affa2873e30d8b5d59d8897d422597 | [
"MIT"
] | 1 | 2019-04-21T20:41:04.000Z | 2019-04-21T20:41:04.000Z | falconRaspberry/vehicle/sensorManager.py | MessasKouseila/falcon | 8b6ba22797877d7c7613c772a2a1f91d234f7dec | [
"MIT"
] | null | null | null | falconRaspberry/vehicle/sensorManager.py | MessasKouseila/falcon | 8b6ba22797877d7c7613c772a2a1f91d234f7dec | [
"MIT"
] | null | null | null | from sensor.sensorEnum import SensorEnum
from sensor.observeObstacle import ObserveObstacle
from command import Command
class SensorManager(ObserveObstacle):
UP = "up"
DOWN = "down"
DISTANCE_MIN_UP = 20
DISTANCE_MIN_DOWN = 20
def __init__(self ,vehiculeCommand):
self.vehiculeCommand = vehic... | 36.238095 | 88 | 0.691853 | 153 | 1,522 | 6.686275 | 0.20915 | 0.111437 | 0.097752 | 0.125122 | 0.238514 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 0.003404 | 0.227989 | 1,522 | 41 | 89 | 37.121951 | 0.867234 | 0 | 0 | 0.057143 | 0 | 0 | 0.004599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085714 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
31b3e78838adc731cb3f5b8b96163bedbfc557dd | 950 | py | Python | problems/test_0671_recursive_dfs.py | chrisxue815/leetcode_python | dec3c160d411a5c19dc8e9d96e7843f0e4c36820 | [
"Unlicense"
] | 1 | 2017-06-17T23:47:17.000Z | 2017-06-17T23:47:17.000Z | problems/test_0671_recursive_dfs.py | chrisxue815/leetcode_python | dec3c160d411a5c19dc8e9d96e7843f0e4c36820 | [
"Unlicense"
] | null | null | null | problems/test_0671_recursive_dfs.py | chrisxue815/leetcode_python | dec3c160d411a5c19dc8e9d96e7843f0e4c36820 | [
"Unlicense"
] | null | null | null | import unittest
from tree import TreeNode
# O(n). Recursive DFS.
class Solution:
def findSecondMinimumValue(self, root):
"""
:type root: TreeNode
:rtype: int
"""
if not root:
return -1
root_val = root.val
def find_min(node):
if not n... | 23.75 | 65 | 0.568421 | 117 | 950 | 4.435897 | 0.367521 | 0.05395 | 0.063584 | 0.038536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024883 | 0.323158 | 950 | 39 | 66 | 24.358974 | 0.782271 | 0.056842 | 0 | 0 | 0 | 0 | 0.009259 | 0 | 0 | 0 | 0.023148 | 0 | 0.04 | 1 | 0.16 | false | 0 | 0.08 | 0 | 0.52 | 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 |
31c4f436ed07016ba4165f1ce0fc535cfd5ffdb9 | 301 | py | Python | covid19_quarantine/users/migrations/0003_delete_quarantinecenter.py | Ethiopia-COVID19/covid-19-hotel-vacany | c9677dbf90f7e02756f6787113cd9b9244a8d09c | [
"MIT"
] | null | null | null | covid19_quarantine/users/migrations/0003_delete_quarantinecenter.py | Ethiopia-COVID19/covid-19-hotel-vacany | c9677dbf90f7e02756f6787113cd9b9244a8d09c | [
"MIT"
] | 8 | 2020-05-15T17:53:07.000Z | 2022-03-12T00:21:18.000Z | covid19_quarantine/users/migrations/0003_delete_quarantinecenter.py | Ethiopia-COVID19/covid-19-hotel-vacany | c9677dbf90f7e02756f6787113cd9b9244a8d09c | [
"MIT"
] | 1 | 2020-03-28T13:28:18.000Z | 2020-03-28T13:28:18.000Z | # Generated by Django 3.0.4 on 2020-03-28 11:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0002_quarantinecenter'),
]
operations = [
migrations.DeleteModel(
name='QuarantineCenter',
),
]
| 17.705882 | 47 | 0.611296 | 30 | 301 | 6.1 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087558 | 0.27907 | 301 | 16 | 48 | 18.8125 | 0.75576 | 0.149502 | 0 | 0 | 1 | 0 | 0.165354 | 0.082677 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 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 |
31c70a187a48179543f57ee32818851948379bbf | 1,521 | py | Python | cogan/data/compute_optimal_alignment.py | sagardsaxena/CoGAN | 6a0fbdb850c9ee78a8c83631aab8ded26195822b | [
"FSFAP"
] | 285 | 2016-09-22T19:48:44.000Z | 2022-03-11T03:30:07.000Z | cogan/data/compute_optimal_alignment.py | IsChristina/CoGAN | f940c28330ace09b3471d8745bfad7d891dbf095 | [
"FSFAP"
] | 12 | 2016-12-08T03:43:42.000Z | 2020-06-04T05:42:52.000Z | cogan/data/compute_optimal_alignment.py | IsChristina/CoGAN | f940c28330ace09b3471d8745bfad7d891dbf095 | [
"FSFAP"
] | 76 | 2016-10-03T21:26:24.000Z | 2022-03-28T12:05:57.000Z | #!/usr/bin/env python
'''
/* Copyright 2016, Ming-Yu Liu
All Rights Reserved
Permission to use, copy, modify, and distribute this software and
its documentation for any non-commercial purpose is hereby granted
without fee, provided that the above copyright notice appear in
all copies and that both that copyright ... | 37.097561 | 70 | 0.769231 | 249 | 1,521 | 4.674699 | 0.53012 | 0.030928 | 0.024055 | 0.036082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025721 | 0.156476 | 1,521 | 41 | 71 | 37.097561 | 0.881528 | 0.04142 | 0 | 0 | 0 | 0 | 0.074492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.230769 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
31cca6aff73a24a1e3cc69769b7a36fe2556d65d | 12,099 | py | Python | baseservice.py | UQ-UQx/old_injestor | e4add6d08239875af7b2669a29814e8679fffcb0 | [
"MIT"
] | null | null | null | baseservice.py | UQ-UQx/old_injestor | e4add6d08239875af7b2669a29814e8679fffcb0 | [
"MIT"
] | 1 | 2021-06-01T21:53:15.000Z | 2021-06-01T21:53:15.000Z | baseservice.py | UQ-UQx/old_injestor | e4add6d08239875af7b2669a29814e8679fffcb0 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import importlib
import logging
import time
import os
import urllib
import MySQLdb
from pymongo import MongoClient
import hashlib
import xml.etree.ElementTree as ET
try:
import config
except ImportError:
print "You do not have a config file, copy config.example.py to config.py"
exit()
im... | 34.372159 | 119 | 0.591123 | 1,451 | 12,099 | 4.794624 | 0.210889 | 0.023142 | 0.012937 | 0.018111 | 0.181975 | 0.127785 | 0.113411 | 0.061521 | 0.047147 | 0.029036 | 0 | 0.005922 | 0.302174 | 12,099 | 352 | 120 | 34.372159 | 0.818074 | 0.109017 | 0 | 0.118774 | 0 | 0 | 0.098873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02682 | 0.049808 | null | null | 0.015326 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
31d8d7d09ec0439cc8427127b70f1696b13be1c5 | 1,137 | py | Python | test_project/products/example.py | SzatmariA/CharmFL-dev | 542faf0ddeccfd714fac44c27c949343807e3e84 | [
"Apache-2.0"
] | null | null | null | test_project/products/example.py | SzatmariA/CharmFL-dev | 542faf0ddeccfd714fac44c27c949343807e3e84 | [
"Apache-2.0"
] | 5 | 2021-12-06T13:49:42.000Z | 2021-12-09T17:12:58.000Z | test_project/products/example.py | SzatmariA/CharmFL-dev | 542faf0ddeccfd714fac44c27c949343807e3e84 | [
"Apache-2.0"
] | null | null | null | # This is a simple example script for FL
# It should represent a webshop, or at least part of it
cart = {}
def addToCart(product):
if(product not in cart.keys()):
cart[str(product)] = 1
else:
cart[str(product)] = cart[(str(product))] + 2 # bug -> should be 1
def removeFromCart(product):
... | 21.865385 | 74 | 0.592788 | 147 | 1,137 | 4.55102 | 0.408163 | 0.179372 | 0.209268 | 0.089686 | 0.170404 | 0.170404 | 0.086697 | 0 | 0 | 0 | 0 | 0.013095 | 0.261214 | 1,137 | 52 | 75 | 21.865385 | 0.783333 | 0.149516 | 0 | 0.217391 | 0 | 0 | 0.038728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0 | 0 | 0.26087 | 0.130435 | 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 |
31de770e79fda1dda8432199ebec03886809adc5 | 1,658 | py | Python | ez_utils/__init__.py | darkripples/none-web-frame | 489e599cdc296bdfa1ea410fcd129a892a18c142 | [
"Apache-2.0"
] | 2 | 2019-12-17T10:11:01.000Z | 2020-05-07T01:22:24.000Z | ez_utils/__init__.py | darkripples/none-web-frame | 489e599cdc296bdfa1ea410fcd129a892a18c142 | [
"Apache-2.0"
] | null | null | null | ez_utils/__init__.py | darkripples/none-web-frame | 489e599cdc296bdfa1ea410fcd129a892a18c142 | [
"Apache-2.0"
] | 1 | 2019-12-17T10:12:06.000Z | 2019-12-17T10:12:06.000Z | #!/usr/bin/env python
# coding:utf8
"""
@Time : 2018/10/31
@Author : fls
@Contact : fls@darkripples.com
@Desc : fls易用性utils
@Modify Time @Author @Version @Desciption
------------ ------- -------- -----------
2018/10/31 11:41 fls 1.0.0 create
2020/08/01 ... | 38.55814 | 103 | 0.721351 | 251 | 1,658 | 4.486056 | 0.442231 | 0.156306 | 0.0373 | 0.033748 | 0.039076 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04583 | 0.197226 | 1,658 | 42 | 104 | 39.47619 | 0.80015 | 0.290109 | 0 | 0 | 0 | 0 | 0.004284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.826087 | 0 | 0.826087 | 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 |
31e12a8d6eccefe9382c893f7db36f8fade17bdb | 1,858 | py | Python | env_config/snapshots/snap_config_test.py | flowpl/env_conf | 0c02f4066c1f35f6e6a7416c5461e3820efa111d | [
"MIT"
] | 3 | 2018-04-20T04:59:00.000Z | 2021-02-08T04:42:50.000Z | env_config/snapshots/snap_config_test.py | flowpl/env_conf | 0c02f4066c1f35f6e6a7416c5461e3820efa111d | [
"MIT"
] | 4 | 2017-11-08T14:52:20.000Z | 2018-07-07T21:10:12.000Z | env_config/snapshots/snap_config_test.py | flowpl/env_config | 0c02f4066c1f35f6e6a7416c5461e3820efa111d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots['ErrorReportingTest::test_do_not_report_the_same_error_multiple_times 1'] = '''Missing environment variables:
export ERR_KEY_1=[your value her... | 37.918367 | 204 | 0.808934 | 257 | 1,858 | 5.525292 | 0.350195 | 0.057042 | 0.082394 | 0.080282 | 0.497887 | 0.440845 | 0.440845 | 0.440845 | 0.406338 | 0.406338 | 0 | 0.016091 | 0.096878 | 1,858 | 48 | 205 | 38.708333 | 0.830155 | 0.033369 | 0 | 0.3 | 0 | 0.066667 | 0.858338 | 0.348578 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 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 |
31e1d59889f01aebedd85a6ae5bcf3c61376529c | 2,085 | py | Python | icbd/compiler/benchmarks/pypy/schulze.py | kmod/icbd | 9636564eb3993afa07c6220d589bbd1991923d74 | [
"MIT"
] | 7 | 2015-04-06T15:17:13.000Z | 2020-10-21T04:57:00.000Z | icbd/compiler/benchmarks/pypy/schulze.py | kmod/icbd | 9636564eb3993afa07c6220d589bbd1991923d74 | [
"MIT"
] | null | null | null | icbd/compiler/benchmarks/pypy/schulze.py | kmod/icbd | 9636564eb3993afa07c6220d589bbd1991923d74 | [
"MIT"
] | 4 | 2016-05-16T17:53:08.000Z | 2020-11-28T17:18:50.000Z | # Read the votes
fp = open('schulze.votes', 'r')
lines = fp.readlines()
fp.close()
# Strip superfluous information
lines = [line[14:].rstrip() for line in lines]
votes = [line.split(' ') for line in lines]
# Make a canonical set of all the candidates
candidates = {}
for line in votes:
for memberId in line:
... | 23.426966 | 73 | 0.555396 | 323 | 2,085 | 3.582043 | 0.309598 | 0.070009 | 0.076059 | 0.047537 | 0.121003 | 0.07433 | 0.058773 | 0.058773 | 0.058773 | 0.058773 | 0 | 0.006311 | 0.316067 | 2,085 | 88 | 74 | 23.693182 | 0.805049 | 0.260911 | 0 | 0.220339 | 0 | 0 | 0.01377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
31e54942d46c705e87d3db3e795591d7f2782ed1 | 5,932 | py | Python | python_modules/dagster/dagster/core/storage/init.py | johannkm/dagster-okteto | 7ad30528a4a92945967d68e59e27727a1e839c2b | [
"Apache-2.0"
] | 1 | 2020-08-10T23:03:37.000Z | 2020-08-10T23:03:37.000Z | python_modules/dagster/dagster/core/storage/init.py | johannkm/dagster-okteto | 7ad30528a4a92945967d68e59e27727a1e839c2b | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster/core/storage/init.py | johannkm/dagster-okteto | 7ad30528a4a92945967d68e59e27727a1e839c2b | [
"Apache-2.0"
] | 1 | 2020-08-20T14:20:31.000Z | 2020-08-20T14:20:31.000Z | from collections import namedtuple
from dagster import check
from dagster.core.definitions import (
IntermediateStorageDefinition,
ModeDefinition,
PipelineDefinition,
SystemStorageDefinition,
)
from dagster.core.instance import DagsterInstance
from dagster.core.storage.pipeline_run import PipelineRun
f... | 42.371429 | 114 | 0.686615 | 563 | 5,932 | 6.923623 | 0.131439 | 0.069779 | 0.050282 | 0.076963 | 0.744997 | 0.686506 | 0.673166 | 0.668548 | 0.668548 | 0.668548 | 0 | 0 | 0.251517 | 5,932 | 139 | 115 | 42.676259 | 0.877928 | 0.31878 | 0 | 0.591837 | 0 | 0 | 0.148925 | 0.067042 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.071429 | 0.020408 | 0.132653 | 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 |
31e97f16019ec94b0f547bf878c1b129387b9ff4 | 1,535 | py | Python | plugin.video.ukturk/resources/lib/mamahd.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2019-03-05T09:38:10.000Z | 2019-03-05T09:38:10.000Z | plugin.video.ukturk/resources/lib/mamahd.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | null | null | null | plugin.video.ukturk/resources/lib/mamahd.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2021-11-05T20:48:09.000Z | 2021-11-05T20:48:09.000Z | import urllib,urllib2,re,os
def scrape():
string=''
print 'xxxxxxxxxxxxxxxxxxx'
link=open_url("https://mamahd.tv/").replace('\n','').replace('\t','')
allgames=re.compile('<th class="home-streams">(.+?)/widget-content').findall(link)[0]
#livegame=re.compile('<a href="(.+?)">.+?<img src="(.+?)".+?<di... | 37.439024 | 178 | 0.594788 | 206 | 1,535 | 4.417476 | 0.441748 | 0.059341 | 0.03956 | 0.056044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029272 | 0.176547 | 1,535 | 40 | 179 | 38.375 | 0.690665 | 0.287296 | 0 | 0 | 0 | 0.043478 | 0.288603 | 0.084559 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.26087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9ec8cf6d89e7abd4ea342f978692c19ca59888a3 | 2,074 | py | Python | mycv/poly.py | tdb-alcorn/CarND-Advanced-Lane-Lines | 0e4b5ca80545299376ce9348fa54c840c264b486 | [
"MIT"
] | null | null | null | mycv/poly.py | tdb-alcorn/CarND-Advanced-Lane-Lines | 0e4b5ca80545299376ce9348fa54c840c264b486 | [
"MIT"
] | null | null | null | mycv/poly.py | tdb-alcorn/CarND-Advanced-Lane-Lines | 0e4b5ca80545299376ce9348fa54c840c264b486 | [
"MIT"
] | null | null | null | from typing import Callable, Any, List
from collections import namedtuple
import numpy as np
# Fit is a class containing the parameters of a polynomial fit expressed as
# a.x^2 + b.x + c
Fit = namedtuple('Fit', ['a', 'b', 'c'])
def constant(c:float) -> Fit:
'''zero returns the polynomial equal to 0 everywhere'... | 28.027027 | 82 | 0.621504 | 377 | 2,074 | 3.395225 | 0.225464 | 0.071094 | 0.039063 | 0.025781 | 0.080469 | 0.067188 | 0.067188 | 0 | 0 | 0 | 0 | 0.01411 | 0.214079 | 2,074 | 74 | 83 | 28.027027 | 0.771166 | 0.271938 | 0 | 0 | 0 | 0 | 0.006246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.090909 | 0.060606 | 0.787879 | 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 |
9ec8d947084c304a6540c4cf4fb0ed5bc2f8d398 | 2,596 | py | Python | api/routers/oauth.py | shadow286/Tech-Struck | a965a2679b120a20be341de17f12955c38d80838 | [
"MIT"
] | 1 | 2021-02-23T15:03:44.000Z | 2021-02-23T15:03:44.000Z | api/routers/oauth.py | shadow286/Tech-Struck | a965a2679b120a20be341de17f12955c38d80838 | [
"MIT"
] | null | null | null | api/routers/oauth.py | shadow286/Tech-Struck | a965a2679b120a20be341de17f12955c38d80838 | [
"MIT"
] | null | null | null | from datetime import datetime
from urllib.parse import parse_qs
import asyncpg
from aiohttp import ClientSession
from fastapi import (APIRouter, Depends, HTTPException, Query, Request, status,
templating)
from jose import jwt
from config.common import config
from config.oauth import github_oauth_... | 36.56338 | 91 | 0.694915 | 330 | 2,596 | 5.287879 | 0.363636 | 0.031519 | 0.025215 | 0.037822 | 0.434384 | 0.434384 | 0.434384 | 0.391977 | 0.391977 | 0.347278 | 0 | 0.002376 | 0.189522 | 2,596 | 70 | 92 | 37.085714 | 0.826996 | 0.089368 | 0 | 0.36 | 0 | 0.02 | 0.18214 | 0.011052 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0 | false | 0 | 0.18 | 0 | 0.24 | 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 |
9ecca608e20964d3b520851bf3ae7154c74f4e2b | 13,583 | py | Python | src/util/perf/u_trace.py | SoftReaper/Mesa-Renoir-deb | 8d1de1f66058d62b41fe55d36522efea2bdf996d | [
"MIT"
] | null | null | null | src/util/perf/u_trace.py | SoftReaper/Mesa-Renoir-deb | 8d1de1f66058d62b41fe55d36522efea2bdf996d | [
"MIT"
] | null | null | null | src/util/perf/u_trace.py | SoftReaper/Mesa-Renoir-deb | 8d1de1f66058d62b41fe55d36522efea2bdf996d | [
"MIT"
] | null | null | null | #
# Copyright (C) 2020 Google, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, dist... | 31.735981 | 90 | 0.669513 | 1,878 | 13,583 | 4.715655 | 0.160277 | 0.039747 | 0.020551 | 0.014679 | 0.609192 | 0.562444 | 0.535795 | 0.501581 | 0.48724 | 0.466689 | 0 | 0.003827 | 0.230509 | 13,583 | 427 | 91 | 31.810304 | 0.843379 | 0.175293 | 0 | 0.528481 | 0 | 0.006329 | 0.712004 | 0.069101 | 0 | 0 | 0 | 0 | 0.031646 | 1 | 0.025316 | false | 0 | 0.012658 | 0.003165 | 0.066456 | 0.041139 | 0 | 0 | 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 |
9ece4c22ea23193299e20fb8267284dfca94b0e1 | 585 | py | Python | indiaos/indiaos/doctype/conference_talk/conference_talk.py | anto-christo/indiaos | 4b029cf86e49dcabad852312293e6fa5116d4155 | [
"MIT"
] | 3 | 2020-05-08T13:53:13.000Z | 2021-07-16T07:51:52.000Z | indiaos/indiaos/doctype/conference_talk/conference_talk.py | anto-christo/indiaos | 4b029cf86e49dcabad852312293e6fa5116d4155 | [
"MIT"
] | 1 | 2021-05-10T19:27:36.000Z | 2021-05-10T19:27:36.000Z | indiaos/indiaos/doctype/conference_talk/conference_talk.py | anto-christo/indiaos | 4b029cf86e49dcabad852312293e6fa5116d4155 | [
"MIT"
] | 9 | 2019-12-04T07:46:46.000Z | 2022-03-15T07:17:42.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Frappe Technologies and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.website.website_generator import WebsiteGenerator
class ConferenceTalk(WebsiteGenerator):
website = frappe._dict(
pa... | 27.857143 | 70 | 0.77265 | 75 | 585 | 5.813333 | 0.653333 | 0.041284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013672 | 0.124786 | 585 | 21 | 70 | 27.857143 | 0.837891 | 0.215385 | 0 | 0 | 0 | 0 | 0.094298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0.071429 | 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 |
9ecfc6e9160697353daf1a86f3879fa0ff384e7b | 927 | py | Python | bitstamp_conect.py | dkatz23238/trading_crypto_bot | e4e1f3426c19c34dc1e2ffa5f22e554b242dcf92 | [
"MIT"
] | null | null | null | bitstamp_conect.py | dkatz23238/trading_crypto_bot | e4e1f3426c19c34dc1e2ffa5f22e554b242dcf92 | [
"MIT"
] | null | null | null | bitstamp_conect.py | dkatz23238/trading_crypto_bot | e4e1f3426c19c34dc1e2ffa5f22e554b242dcf92 | [
"MIT"
] | null | null | null | import pandas as pd
import requests
from selenium.common.exceptions import TimeoutException
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
import json
import requests
import bitstamp.client
file = open("/Users/davidkatzaudio/Desktop/trading_bot/bitstamp.json", "r").read() #reads json formated... | 31.965517 | 120 | 0.687163 | 105 | 927 | 5.942857 | 0.552381 | 0.043269 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20712 | 927 | 28 | 121 | 33.107143 | 0.84898 | 0.028047 | 0 | 0.086957 | 0 | 0 | 0.225556 | 0.061111 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0 | false | 0 | 0.391304 | 0 | 0.391304 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9ed31db5b661b13578797fe83520af86e429ad96 | 1,294 | py | Python | Retos/Ordenar Lista/quicksort.py | juanpanu/Juan_DS_Path | 24e71616dae692e931e95cd3815ca88fa9b8a46a | [
"MIT"
] | null | null | null | Retos/Ordenar Lista/quicksort.py | juanpanu/Juan_DS_Path | 24e71616dae692e931e95cd3815ca88fa9b8a46a | [
"MIT"
] | null | null | null | Retos/Ordenar Lista/quicksort.py | juanpanu/Juan_DS_Path | 24e71616dae692e931e95cd3815ca88fa9b8a46a | [
"MIT"
] | null | null | null | #necesitamos dividir nuestro data set
#necesitamos el punto pivotal
#recursivamente ordenar cada mitad de mi array
def partition(arr, low, high):#creamos la particion del array
i = (low-1) # i va a tomar el valor del indice mas bajo low-1
pivot = arr[high] #valor medio de los datos, que separa los datos altos ... | 47.925926 | 107 | 0.666151 | 227 | 1,294 | 3.797357 | 0.400881 | 0.040603 | 0.034803 | 0.044084 | 0.044084 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031031 | 0.227975 | 1,294 | 27 | 108 | 47.925926 | 0.831832 | 0.540185 | 0 | 0 | 0 | 0 | 0.02931 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.15 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
9ed6088bbe6c806d89f9a45eb47723fe7caf6103 | 466 | py | Python | task_api/scrum/scrum/urls.py | domenicosolazzo/practice-django | 44e74c973384c38bd71e7c8a1aacd1e10d6a6893 | [
"MIT"
] | null | null | null | task_api/scrum/scrum/urls.py | domenicosolazzo/practice-django | 44e74c973384c38bd71e7c8a1aacd1e10d6a6893 | [
"MIT"
] | 2 | 2021-06-10T19:42:02.000Z | 2021-06-10T19:50:52.000Z | task_api/scrum/scrum/urls.py | domenicosolazzo/practice-django | 44e74c973384c38bd71e7c8a1aacd1e10d6a6893 | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, include, url
from django.contrib import admin
from rest_framework.authtoken.views import obtain_auth_token
from board.urls import router
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'scrum.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
... | 31.066667 | 60 | 0.686695 | 66 | 466 | 4.772727 | 0.424242 | 0.063492 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137339 | 466 | 14 | 61 | 33.285714 | 0.783582 | 0.287554 | 0 | 0 | 0 | 0 | 0.067278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9ede8e24963889bd5ba99bc81f68087b09c1dcd8 | 436 | py | Python | Data/mnist_data.py | ktjack2009/MachineLearing | fcb6e491f3f74ef1046d19e38af99b0973709b16 | [
"Apache-2.0"
] | null | null | null | Data/mnist_data.py | ktjack2009/MachineLearing | fcb6e491f3f74ef1046d19e38af99b0973709b16 | [
"Apache-2.0"
] | null | null | null | Data/mnist_data.py | ktjack2009/MachineLearing | fcb6e491f3f74ef1046d19e38af99b0973709b16 | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
import numpy as np
from TensorflowLearning.common import deal_label
(train_images, train_labels), (test_images, test_labels) = tf.keras.datasets.mnist.load_data()
train_images, test_images = train_images / 255.0, test_images / 255.0
train_images = np.reshape(train_images, [-1, 784])
test_images... | 39.636364 | 94 | 0.793578 | 68 | 436 | 4.794118 | 0.367647 | 0.168712 | 0.08589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.100917 | 436 | 10 | 95 | 43.6 | 0.790816 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9edfa45793a6f16197de9d36a96a6806cdedf143 | 2,151 | py | Python | lry/try_others.py | LRY89757/mmdetection | 8cd89a678fbde6c37eda3fa32af58b7b398abe41 | [
"Apache-2.0"
] | 2 | 2021-11-29T09:21:35.000Z | 2021-12-19T10:14:32.000Z | lry/try_others.py | LRY89757/mmdetection | 8cd89a678fbde6c37eda3fa32af58b7b398abe41 | [
"Apache-2.0"
] | null | null | null | lry/try_others.py | LRY89757/mmdetection | 8cd89a678fbde6c37eda3fa32af58b7b398abe41 | [
"Apache-2.0"
] | null | null | null | """本模块是一个小demo,用来得出训练单张图片结果怎么样"""
from mmdet.apis import init_detector,inference_detector, show_result_pyplot
import mmcv
import os
import glob
from PIL import Image
from torchvision.transforms import ToTensor
import torch as t
# config_file = "/home/lry/projects/mmdetection/configs/mask_rcnn/mask_rcnn_r50_caffe_fpn_... | 37.736842 | 168 | 0.746629 | 327 | 2,151 | 4.700306 | 0.293578 | 0.054652 | 0.087833 | 0.152245 | 0.532206 | 0.492518 | 0.416396 | 0.305791 | 0.253741 | 0.156148 | 0 | 0.045947 | 0.099489 | 2,151 | 56 | 169 | 38.410714 | 0.747548 | 0.613668 | 0 | 0 | 0 | 0 | 0.350126 | 0.332494 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.411765 | 0 | 0.411765 | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9ee34551cb6ca1d457e8b4807a339abb3fc31a0d | 2,845 | py | Python | assembler/src/symbol_table.py | dbajgoric/ARSC | 27a092305105ce68bde8d8bc61e42e0a69ad0fa1 | [
"BSD-3-Clause"
] | 3 | 2017-01-28T15:45:19.000Z | 2022-03-22T17:37:37.000Z | assembler/src/symbol_table.py | dbajgoric/ARSC | 27a092305105ce68bde8d8bc61e42e0a69ad0fa1 | [
"BSD-3-Clause"
] | null | null | null | assembler/src/symbol_table.py | dbajgoric/ARSC | 27a092305105ce68bde8d8bc61e42e0a69ad0fa1 | [
"BSD-3-Clause"
] | null | null | null | # ==============================================================================
# ARSC (A Relatively Simple Computer) License
# ==============================================================================
#
# ARSC is distributed under the following BSD-style license:
#
# Copyright (c) 2016-2017 Dzanan Bajgoric
# A... | 41.838235 | 92 | 0.672056 | 373 | 2,845 | 5.088472 | 0.463807 | 0.05216 | 0.020548 | 0.024236 | 0.216017 | 0.159115 | 0.159115 | 0.124341 | 0.071654 | 0.071654 | 0 | 0.005312 | 0.205975 | 2,845 | 68 | 93 | 41.838235 | 0.834883 | 0.669244 | 0 | 0 | 0 | 0 | 0.117386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0 | 0.045455 | 0.409091 | 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 |
9ee36b19956d1e94dcf6bd6eeb1d268288a18923 | 470 | py | Python | scraper/models.py | pieromarini/fmovies | 26b9a033db8b6eea7de281b96679b47dc15e303f | [
"MIT"
] | 12 | 2016-11-25T02:06:34.000Z | 2020-12-31T11:17:56.000Z | scraper/models.py | pieromarini/fmovies | 26b9a033db8b6eea7de281b96679b47dc15e303f | [
"MIT"
] | 1 | 2016-11-24T16:30:15.000Z | 2017-08-24T17:44:09.000Z | scraper/models.py | pieromarini/fmovies | 26b9a033db8b6eea7de281b96679b47dc15e303f | [
"MIT"
] | 4 | 2016-11-25T19:09:32.000Z | 2020-05-08T19:46:59.000Z | from django.db import models
from django.urls import reverse
# Create your models here.
class Serie(models.Model):
name = models.CharField(max_length=40)
episode_link = models.CharField(max_length=300, null = True, blank = True)
episode_num = models.IntegerField(null = True, blank = True)
season = mode... | 33.571429 | 78 | 0.729787 | 62 | 470 | 5.403226 | 0.645161 | 0.059701 | 0.107463 | 0.143284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012853 | 0.17234 | 470 | 13 | 79 | 36.153846 | 0.848329 | 0.051064 | 0 | 0 | 0 | 0 | 0.033784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0.1 | 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 |
9ee76063f6ac963fcaf575b3855be213ff62ed45 | 14,209 | py | Python | pylond/lond.py | DDNStorage/lond | e21502740e43606e688bf5f8045f9f8fcb6efbcc | [
"MIT"
] | null | null | null | pylond/lond.py | DDNStorage/lond | e21502740e43606e688bf5f8045f9f8fcb6efbcc | [
"MIT"
] | 2 | 2020-08-25T00:37:09.000Z | 2020-08-25T08:56:13.000Z | pylond/lond.py | DDNStorage/lond | e21502740e43606e688bf5f8045f9f8fcb6efbcc | [
"MIT"
] | 1 | 2020-02-21T01:43:53.000Z | 2020-02-21T01:43:53.000Z | # Copyright (c) 2019 DataDirect Networks, Inc.
# All Rights Reserved.
# Author: lixi@ddn.com
"""
Launch LOND commands
"""
import sys
import readline
import traceback
import socket
from pylcommon import utils
from pylcommon import clog
from pylcommon import watched_io
from pylcommon import lustre
from pylond import def... | 33.511792 | 97 | 0.568161 | 1,621 | 14,209 | 4.793954 | 0.177051 | 0.021619 | 0.028825 | 0.030884 | 0.266761 | 0.24926 | 0.21606 | 0.187235 | 0.171278 | 0.139107 | 0 | 0.00439 | 0.342741 | 14,209 | 423 | 98 | 33.591017 | 0.827712 | 0.104863 | 0 | 0.176895 | 0 | 0 | 0.115237 | 0.001923 | 0 | 0 | 0 | 0 | 0.00361 | 0 | null | null | 0 | 0.043321 | null | null | 0.021661 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9ee84dc0abaf667cecf53659b11ccf8a8f2a4531 | 649 | py | Python | bounties_api/std_bounties/migrations/0015_auto_20180906_0552.py | tenthirtyone/BountiesAPI | 2bb449a947d987072be24633ba36fbd67c0ab29b | [
"MIT"
] | 45 | 2018-03-24T21:37:59.000Z | 2021-11-12T11:53:04.000Z | bounties_api/std_bounties/migrations/0015_auto_20180906_0552.py | tenthirtyone/BountiesAPI | 2bb449a947d987072be24633ba36fbd67c0ab29b | [
"MIT"
] | 192 | 2018-03-15T22:42:51.000Z | 2022-02-12T11:42:20.000Z | bounties_api/std_bounties/migrations/0015_auto_20180906_0552.py | tenthirtyone/BountiesAPI | 2bb449a947d987072be24633ba36fbd67c0ab29b | [
"MIT"
] | 27 | 2018-03-23T17:12:27.000Z | 2021-12-06T02:21:26.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-09-06 05:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('std_bounties', '0014_remove_category_platform'),
]
operations = [
migratio... | 24.961538 | 58 | 0.617874 | 64 | 649 | 6.0625 | 0.6875 | 0.092784 | 0.118557 | 0.139175 | 0.293814 | 0.293814 | 0.293814 | 0.293814 | 0 | 0 | 0 | 0.04661 | 0.272727 | 649 | 25 | 59 | 25.96 | 0.775424 | 0.106317 | 0 | 0.444444 | 1 | 0 | 0.169844 | 0.05026 | 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 |
9eeaf1a05dd9597da7c62095de78943bd939b996 | 1,462 | py | Python | yb66/backup/SymbolToFromAtomicNumber.py | 91902078/yb66 | ece7f637ac8bacb1ba51a6f1f6f1f2e9cdb91bd9 | [
"CC0-1.0"
] | null | null | null | yb66/backup/SymbolToFromAtomicNumber.py | 91902078/yb66 | ece7f637ac8bacb1ba51a6f1f6f1f2e9cdb91bd9 | [
"CC0-1.0"
] | null | null | null | yb66/backup/SymbolToFromAtomicNumber.py | 91902078/yb66 | ece7f637ac8bacb1ba51a6f1f6f1f2e9cdb91bd9 | [
"CC0-1.0"
] | null | null | null |
def SymbolToFromAtomicNumber(ATOM):
atoms = [ [1,"H"],[2,"He"],[3,"Li"],[4,"Be"],[5,"B"],[6,"C"],[7,"N"],[8,"O"],[9,"F"],[10,"Ne"], \
[11,"Na"],[12,"Mg"],[13,"Al"],[14,"Si"],[15,"P"],[16,"S"],[17,"Cl"],[18,"Ar"],[19,"K"],[20,"Ca"], \
[21,"Sc"],[22,"Ti"],[23,"V"],[24,"Cr"],[25,"Mn"],[26,"Fe"],[27... | 63.565217 | 111 | 0.377565 | 251 | 1,462 | 2.199203 | 0.920319 | 0.014493 | 0.021739 | 0.039855 | 0.050725 | 0.050725 | 0 | 0 | 0 | 0 | 0 | 0.175566 | 0.154583 | 1,462 | 23 | 112 | 63.565217 | 0.271036 | 0 | 0 | 0.1 | 0 | 0 | 0.148427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.15 | 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 |
9eeda4df30ac7424d5e8907ec0dc8b0683395b90 | 2,066 | py | Python | listingSemisUI.py | arnaudlevy/assolement | 32b4701a0980d6526de56b0354b2c9f8014cd8a0 | [
"MIT"
] | null | null | null | listingSemisUI.py | arnaudlevy/assolement | 32b4701a0980d6526de56b0354b2c9f8014cd8a0 | [
"MIT"
] | null | null | null | listingSemisUI.py | arnaudlevy/assolement | 32b4701a0980d6526de56b0354b2c9f8014cd8a0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'listingSemisUI.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf... | 36.245614 | 79 | 0.68151 | 244 | 2,066 | 5.663934 | 0.401639 | 0.034732 | 0.057887 | 0.081042 | 0.208394 | 0.170767 | 0.170767 | 0.118669 | 0.118669 | 0.118669 | 0 | 0.039275 | 0.198935 | 2,066 | 56 | 80 | 36.892857 | 0.79577 | 0.090997 | 0 | 0.142857 | 1 | 0 | 0.057219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0 | 0.02381 | 0.071429 | 0.238095 | 0.095238 | 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 |
9eef1fd2ca499af7ad1133f75cff603ba4e1dfea | 2,017 | py | Python | ec2/launch_instance.py | lvsl-deactivated/go-to | e9f9d8b4ce0f82656cfc7b3ffb603112bf25816c | [
"Apache-2.0"
] | null | null | null | ec2/launch_instance.py | lvsl-deactivated/go-to | e9f9d8b4ce0f82656cfc7b3ffb603112bf25816c | [
"Apache-2.0"
] | null | null | null | ec2/launch_instance.py | lvsl-deactivated/go-to | e9f9d8b4ce0f82656cfc7b3ffb603112bf25816c | [
"Apache-2.0"
] | 1 | 2019-10-16T18:06:58.000Z | 2019-10-16T18:06:58.000Z | #!/usr/bin/env python
'''
Start new ec2 instance with open ssh port
'''
__author__ = "Leonid Vasilyev, <vsleonid@gmail.com>"
import json
import os
import sys
import time
from datetime import datetime
import boto
import boto.ec2
# based on http://cloud-images.ubuntu.com/releases/precise/release/
INSTANCE_CONFIG = ... | 25.2125 | 95 | 0.638076 | 276 | 2,017 | 4.507246 | 0.481884 | 0.045016 | 0.007235 | 0.032154 | 0.036977 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025674 | 0.227566 | 2,017 | 79 | 96 | 25.531646 | 0.772786 | 0.176996 | 0 | 0 | 0 | 0 | 0.202745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.145833 | null | null | 0.104167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9ef47d3125c8df14e13c11df8bb795e97fc167fe | 1,600 | py | Python | ditsso_internal/provider.py | uktrade/django-dit-sso-client | 5f507d4f1612ecf19ffbb45998700d3f5e38fdd6 | [
"MIT"
] | null | null | null | ditsso_internal/provider.py | uktrade/django-dit-sso-client | 5f507d4f1612ecf19ffbb45998700d3f5e38fdd6 | [
"MIT"
] | null | null | null | ditsso_internal/provider.py | uktrade/django-dit-sso-client | 5f507d4f1612ecf19ffbb45998700d3f5e38fdd6 | [
"MIT"
] | null | null | null | from allauth.account.models import EmailAddress
from allauth.socialaccount.providers.base import ProviderAccount
from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider
class Scope(object):
READ = 'read'
WRITE = 'write'
class DitSSOInternalAccount(ProviderAccount):
def get_profile_url(... | 28.070175 | 92 | 0.658125 | 183 | 1,600 | 5.579235 | 0.31694 | 0.058766 | 0.03526 | 0.064643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003295 | 0.24125 | 1,600 | 56 | 93 | 28.571429 | 0.837727 | 0 | 0 | 0 | 0 | 0 | 0.074375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0 | 0.073171 | 0.073171 | 0.560976 | 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 |
9ef54e8bb4f8aba0bb318e06bbd1603d1c5ea2c1 | 895 | py | Python | src/helper_verbs.py | jdw1996/french-conjugator | a0656e081f0b73d2f086f9a85a51dec1fa41ef2d | [
"MIT"
] | 1 | 2020-07-05T20:11:20.000Z | 2020-07-05T20:11:20.000Z | src/helper_verbs.py | jdw1996/french-conjugator | a0656e081f0b73d2f086f9a85a51dec1fa41ef2d | [
"MIT"
] | 4 | 2016-12-30T18:42:15.000Z | 2017-01-23T04:23:59.000Z | src/helper_verbs.py | jdw1996/french-conjugator | a0656e081f0b73d2f086f9a85a51dec1fa41ef2d | [
"MIT"
] | null | null | null | #************************************************
# Joseph Winters
# Constants to hold conjugations of helper verbs
# Fall 2016
#************************************************
import conjugation as conj
import tense as tn
ALLER_PRESENT = conj.Conjugation("aller", tn.Tense.PRESENT,
... | 35.8 | 78 | 0.488268 | 82 | 895 | 5.256098 | 0.707317 | 0.076566 | 0.153132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0.249162 | 895 | 24 | 79 | 37.291667 | 0.635417 | 0.18771 | 0 | 0 | 0 | 0 | 0.260388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.142857 | 0 | 0.142857 | 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 |
9ef5f92bf0ff290d545e4b0967768b756fec9898 | 570 | py | Python | client/py/client.py | bharat-rajani/grpc-products | c1d9e2c8de09c84ef3ac515b74e9e9a704d496eb | [
"MIT"
] | null | null | null | client/py/client.py | bharat-rajani/grpc-products | c1d9e2c8de09c84ef3ac515b74e9e9a704d496eb | [
"MIT"
] | null | null | null | client/py/client.py | bharat-rajani/grpc-products | c1d9e2c8de09c84ef3ac515b74e9e9a704d496eb | [
"MIT"
] | null | null | null | import logging
import asyncio
import grpc
import products_pb2
import products_pb2_grpc
GRPC_HOST_PORT = 'localhost:8080'
async def main():
async with grpc.aio.insecure_channel(GRPC_HOST_PORT) as channel:
stub = products_pb2_grpc.ProductServiceStub(channel)
response = await stub.GetV... | 28.5 | 131 | 0.742105 | 68 | 570 | 5.911765 | 0.617647 | 0.109453 | 0.084577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019027 | 0.170175 | 570 | 20 | 132 | 28.5 | 0.830867 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
73036db24d5899ed9fc9b54bc5003a6d001faba4 | 469 | py | Python | src/databricksbundle/DatabricksBundleTest.py | matejoravec/databricks-bundle | bd14ddf96356df234c1be9334f89d4fe86704a89 | [
"MIT"
] | 2 | 2021-03-31T11:22:42.000Z | 2022-01-02T13:23:48.000Z | src/databricksbundle/DatabricksBundleTest.py | matejoravec/databricks-bundle | bd14ddf96356df234c1be9334f89d4fe86704a89 | [
"MIT"
] | 2 | 2021-05-12T08:24:57.000Z | 2021-12-14T06:54:36.000Z | src/databricksbundle/DatabricksBundleTest.py | matejoravec/databricks-bundle | bd14ddf96356df234c1be9334f89d4fe86704a89 | [
"MIT"
] | 5 | 2020-09-15T19:33:29.000Z | 2021-02-26T14:36:54.000Z | import unittest
from pyfonycore.bootstrap import bootstrapped_container
from injecta.testing.services_tester import test_services
class DatabricksBundleTest(unittest.TestCase):
def test_azure(self):
container = bootstrapped_container.init("test_azure")
test_services(container)
def test_aws(s... | 23.45 | 61 | 0.750533 | 51 | 469 | 6.529412 | 0.45098 | 0.189189 | 0.15015 | 0.204204 | 0.252252 | 0.252252 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170576 | 469 | 19 | 62 | 24.684211 | 0.856041 | 0 | 0 | 0.166667 | 0 | 0 | 0.055437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
730a88b052da0633a367fdd2bb360b08b25ce70d | 422 | py | Python | checkout/admin.py | EliasOPrado/tour-project | 408068d33a70f0b2b225760a558a94fbdf21d279 | [
"BSD-Source-Code"
] | 7 | 2020-04-15T19:31:15.000Z | 2022-01-29T16:15:21.000Z | checkout/admin.py | EliasOPrado/tour-project | 408068d33a70f0b2b225760a558a94fbdf21d279 | [
"BSD-Source-Code"
] | 9 | 2021-03-19T00:20:54.000Z | 2022-01-13T02:18:05.000Z | checkout/admin.py | EliasOPrado/tour-project | 408068d33a70f0b2b225760a558a94fbdf21d279 | [
"BSD-Source-Code"
] | 2 | 2020-07-14T21:19:59.000Z | 2021-04-15T17:38:29.000Z | from django.contrib import admin
from .models import Order, OrderLineItem
# Register your models here.
"""
TubularInline subclass defines the template used
to render the Order in the admin interface. StackInline is other one.
"""
class OrderLineAdminInline(admin.TabularInline):
model = OrderLineItem
class OrderAd... | 26.375 | 69 | 0.7891 | 49 | 422 | 6.795918 | 0.673469 | 0.15015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137441 | 422 | 15 | 70 | 28.133333 | 0.914835 | 0.061611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.857143 | 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 |
730d283b32f082be340c14277748dbce7af873c5 | 4,332 | py | Python | validation/smartnics/tests/parse_pcap_group_pipeline.py | nerds-ufes/G-PolKA | 9c6bd42167bc333f6421a751c93a88c00841def9 | [
"Apache-2.0",
"MIT"
] | null | null | null | validation/smartnics/tests/parse_pcap_group_pipeline.py | nerds-ufes/G-PolKA | 9c6bd42167bc333f6421a751c93a88c00841def9 | [
"Apache-2.0",
"MIT"
] | null | null | null | validation/smartnics/tests/parse_pcap_group_pipeline.py | nerds-ufes/G-PolKA | 9c6bd42167bc333f6421a751c93a88c00841def9 | [
"Apache-2.0",
"MIT"
] | null | null | null | #!/usr/bin/env python
from scapy.all import *
import sys
import readline
import binascii
import glob
import os, shutil
import math
def main():
#https://medium.com/@ismailakkila/black-hat-python-parsing-http-payloads-with-scapy-d937d01af9b1
root_folder = '/home/cristina/Dropbox/Cristina/UFES/doutorado/P4_v2/git/Pol... | 29.875862 | 137 | 0.696907 | 613 | 4,332 | 4.675367 | 0.21044 | 0.066294 | 0.081647 | 0.031403 | 0.318562 | 0.194696 | 0.175157 | 0.066992 | 0.066992 | 0.066992 | 0 | 0.034744 | 0.176131 | 4,332 | 144 | 138 | 30.083333 | 0.768282 | 0.317405 | 0 | 0.053333 | 0 | 0.013333 | 0.121918 | 0.040068 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013333 | 0.093333 | null | null | 0.173333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
730ebb53cefdf37155ec1fe9fe0ada0381b5e49b | 11,792 | py | Python | onnx_mxnet/tests/test_layers.py | brettkoonce/onnx-mxnet | 47022b42938627905827337df75e79cb372958ea | [
"Apache-2.0"
] | null | null | null | onnx_mxnet/tests/test_layers.py | brettkoonce/onnx-mxnet | 47022b42938627905827337df75e79cb372958ea | [
"Apache-2.0"
] | null | null | null | onnx_mxnet/tests/test_layers.py | brettkoonce/onnx-mxnet | 47022b42938627905827337df75e79cb372958ea | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
# http://www.apache.org/licenses/LICENSE-2.0
# or in the "license" file... | 44 | 92 | 0.614569 | 1,687 | 11,792 | 4.068168 | 0.104327 | 0.065278 | 0.096168 | 0.079266 | 0.71951 | 0.716742 | 0.611249 | 0.60746 | 0.601486 | 0.551217 | 0 | 0.052384 | 0.224559 | 11,792 | 267 | 93 | 44.164794 | 0.698163 | 0.133989 | 0 | 0.465608 | 0 | 0 | 0.040032 | 0 | 0 | 0 | 0 | 0 | 0.169312 | 1 | 0.153439 | false | 0 | 0.031746 | 0 | 0.195767 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
731540c4a3c946aea6ed41c51edfce03729eeaad | 32,674 | py | Python | tests/test_mysqlx_connection.py | meikomeik/mysql-connector-python | fe81f95bfd284aea11377e6cb8dd79a7fe0f61a8 | [
"Artistic-1.0-Perl"
] | null | null | null | tests/test_mysqlx_connection.py | meikomeik/mysql-connector-python | fe81f95bfd284aea11377e6cb8dd79a7fe0f61a8 | [
"Artistic-1.0-Perl"
] | null | null | null | tests/test_mysqlx_connection.py | meikomeik/mysql-connector-python | fe81f95bfd284aea11377e6cb8dd79a7fe0f61a8 | [
"Artistic-1.0-Perl"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2.0, as
# published by the Free Software Foundation.
#
# This program is also d... | 40.893617 | 84 | 0.594448 | 3,791 | 32,674 | 5.011606 | 0.126088 | 0.029844 | 0.044634 | 0.010422 | 0.580504 | 0.528712 | 0.476867 | 0.419654 | 0.366861 | 0.326912 | 0 | 0.035319 | 0.258248 | 32,674 | 798 | 85 | 40.944862 | 0.748597 | 0.113454 | 0 | 0.38986 | 0 | 0.01049 | 0.193856 | 0.039069 | 0 | 0 | 0 | 0 | 0.162587 | 1 | 0.04021 | false | 0.096154 | 0.024476 | 0 | 0.08042 | 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 |
731d34b5c44cb5b99cb99fb3e9802203047759c0 | 2,216 | py | Python | Entrenamiento Algoritmico/contador_acumulador.py | andersonvelasco/Programming-2020B | bd843a406353b55ca83b9684c394aec1556aaddc | [
"Apache-2.0"
] | null | null | null | Entrenamiento Algoritmico/contador_acumulador.py | andersonvelasco/Programming-2020B | bd843a406353b55ca83b9684c394aec1556aaddc | [
"Apache-2.0"
] | null | null | null | Entrenamiento Algoritmico/contador_acumulador.py | andersonvelasco/Programming-2020B | bd843a406353b55ca83b9684c394aec1556aaddc | [
"Apache-2.0"
] | null | null | null | '''
Crear un script en Python que a través de un bucle While permita
generar lista de una determinada lista de números de acuerdo un valor ingresado por el usuario
. (La lista debe generarse a partir de uno).
Procesos:
1. Listar los números
2. Cuántos números generó en total
3. Cuántos números fueron pares
4. Cuántos... | 45.22449 | 104 | 0.712545 | 385 | 2,216 | 4.101299 | 0.296104 | 0.035465 | 0.025332 | 0.043065 | 0.418619 | 0.348955 | 0.307156 | 0.262825 | 0.19696 | 0.19696 | 0 | 0.016265 | 0.195397 | 2,216 | 48 | 105 | 46.166667 | 0.869321 | 0.61778 | 0 | 0 | 0 | 0 | 0.45808 | 0.025516 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 0.37931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
731fc2d338470131e7472bd38764ff9b8a9fe0d5 | 4,567 | py | Python | test/test_workflow.py | wuaipinglab/sra2variant | b711f39acb5079d1b92f242ab9afec44f05f693b | [
"MIT"
] | null | null | null | test/test_workflow.py | wuaipinglab/sra2variant | b711f39acb5079d1b92f242ab9afec44f05f693b | [
"MIT"
] | null | null | null | test/test_workflow.py | wuaipinglab/sra2variant | b711f39acb5079d1b92f242ab9afec44f05f693b | [
"MIT"
] | null | null | null | import os
import glob
import shutil
import filecmp
import unittest
from sra2variant import WGS_PE, ARTIC_PE
from sra2variant.pipeline.sra2fastq import FastqDumpWrapper, PrefetchWrapper
THIS_DIR = os.path.join(
os.path.dirname(__file__),
os.pardir,
"sra2variant"
)
DATA_DIR = os.path.join(THIS_DIR, "data")
... | 33.335766 | 76 | 0.55069 | 593 | 4,567 | 3.976391 | 0.155143 | 0.071247 | 0.080577 | 0.059372 | 0.73028 | 0.720526 | 0.663698 | 0.589483 | 0.589483 | 0.570399 | 0 | 0.023394 | 0.298007 | 4,567 | 136 | 77 | 33.580882 | 0.712102 | 0.077951 | 0 | 0.666667 | 0 | 0 | 0.097834 | 0.011426 | 0 | 0 | 0 | 0 | 0.017544 | 1 | 0.04386 | false | 0 | 0.061404 | 0 | 0.114035 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
732051a6fab140f1dcb27a0448cf90f300bc318f | 251 | py | Python | d_lists.py | emelianovss-yandex-praktikum/18_python_algo | 06a0e3736406e5fccd8347d32ac6025abcae965e | [
"MIT"
] | null | null | null | d_lists.py | emelianovss-yandex-praktikum/18_python_algo | 06a0e3736406e5fccd8347d32ac6025abcae965e | [
"MIT"
] | null | null | null | d_lists.py | emelianovss-yandex-praktikum/18_python_algo | 06a0e3736406e5fccd8347d32ac6025abcae965e | [
"MIT"
] | null | null | null | def solution(items):
"""
map(int, input.split())
Получить массив сумм двух чисел через 1
>>> solution([1, 2, 3, 4, 7, 2, 1, 1])
[5, 9]
"""
return list(map(sum, zip(items[1::3], items[2::3])))
"""
slice, zip, map, list
""" | 19.307692 | 56 | 0.521912 | 40 | 251 | 3.275 | 0.625 | 0.030534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079787 | 0.250996 | 251 | 13 | 57 | 19.307692 | 0.617021 | 0.434263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7321d6ee1e004ebe7325625c9703820fd209149f | 1,643 | py | Python | src/pydap/cas/esgf.py | Juanlu001/pydap | cbe37e2cbc0ede33c76344cfe438373a4adab3f3 | [
"MIT"
] | 83 | 2016-05-26T17:31:55.000Z | 2022-03-24T20:57:59.000Z | src/pydap/cas/esgf.py | Juanlu001/pydap | cbe37e2cbc0ede33c76344cfe438373a4adab3f3 | [
"MIT"
] | 237 | 2016-05-06T16:35:24.000Z | 2022-03-17T17:59:28.000Z | src/pydap/cas/esgf.py | Juanlu001/pydap | cbe37e2cbc0ede33c76344cfe438373a4adab3f3 | [
"MIT"
] | 70 | 2016-05-11T17:07:29.000Z | 2022-03-01T17:48:53.000Z | from six.moves.urllib.parse import quote_plus
from . import get_cookies
def setup_session(openid, password, username=None,
check_url=None,
session=None, verify=False):
"""
A special call to get_cookies.setup_session that is tailored for
ESGF credentials.
username s... | 32.215686 | 68 | 0.541083 | 173 | 1,643 | 4.965318 | 0.50289 | 0.034924 | 0.034924 | 0.051222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000967 | 0.370663 | 1,643 | 50 | 69 | 32.86 | 0.829787 | 0.175898 | 0 | 0 | 0 | 0 | 0.125478 | 0.033665 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0.064516 | 0.064516 | 0.032258 | 0.354839 | 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 |
73224a18e7b619854e5a208bc9704603f379422f | 2,053 | py | Python | src/frame_utils.py | microbo-ru/sber_zvuk | bc81b98ed968fc5dfb8bfc64098754a216890256 | [
"MIT"
] | 1 | 2021-10-31T08:56:00.000Z | 2021-10-31T08:56:00.000Z | src/frame_utils.py | microbo-ru/sber_zvuk | bc81b98ed968fc5dfb8bfc64098754a216890256 | [
"MIT"
] | 11 | 2021-10-30T12:23:41.000Z | 2021-10-31T14:14:26.000Z | src/frame_utils.py | microbo-ru/sber_zvuk | bc81b98ed968fc5dfb8bfc64098754a216890256 | [
"MIT"
] | null | null | null | from moviepy.editor import *
from PIL import Image
import os
import json
def save_frame(frame, path):
image = Image.fromarray(frame)
image.save(path)
def get_frames(video_path, frames_save_path):
# TODO: create meta-file .json
video_clip = VideoFileClip(video_path)
video_fps = video_clip.fps
... | 32.587302 | 102 | 0.670726 | 291 | 2,053 | 4.4811 | 0.323024 | 0.04908 | 0.053681 | 0.04908 | 0.133436 | 0.03681 | 0 | 0 | 0 | 0 | 0 | 0.008589 | 0.20604 | 2,053 | 62 | 103 | 33.112903 | 0.791411 | 0.13395 | 0 | 0 | 0 | 0 | 0.089831 | 0.045763 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.078947 | false | 0 | 0.105263 | 0 | 0.184211 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7326229056b31f033268047a5b69e589220f08f3 | 1,573 | py | Python | record_types.py | droberson/greylost | 5c1de54d96ed3eedaf75340fee63781acd4c9303 | [
"MIT"
] | 13 | 2019-12-06T21:33:31.000Z | 2022-01-02T21:47:54.000Z | record_types.py | droberson/greylost | 5c1de54d96ed3eedaf75340fee63781acd4c9303 | [
"MIT"
] | null | null | null | record_types.py | droberson/greylost | 5c1de54d96ed3eedaf75340fee63781acd4c9303 | [
"MIT"
] | null | null | null | """ DNS Record Types """
# https://en.wikipedia.org/wiki/List_of_DNS_record_types
DNS_RECORD_TYPES = {
1: "A",
28: "AAAA",
18: "AFSDB",
42: "APL",
257: "CAA",
60: "CDNSKEY",
59: "CDS",
37: "CERT",
5: "CNAME",
62: "CSYNC",
49: "DHCID",
32769: "DLV",
39: "DNAME",
4... | 16.734043 | 56 | 0.41958 | 200 | 1,573 | 3.27 | 0.91 | 0.067278 | 0.06422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194932 | 0.347743 | 1,573 | 93 | 57 | 16.913978 | 0.442495 | 0.115067 | 0 | 0 | 0 | 0 | 0.233503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73280f9bcad9a60dbf92e970c8856f4da4fbb735 | 5,885 | py | Python | arakat-core/examples/special_cases/WhenExample.py | CemalUnal/arakat | 6b7e1607e35b332bc493d755f777d9a480b5aed6 | [
"Apache-2.0"
] | 1 | 2018-12-06T06:57:41.000Z | 2018-12-06T06:57:41.000Z | arakat-core/examples/special_cases/WhenExample.py | CemalUnal/arakat | 6b7e1607e35b332bc493d755f777d9a480b5aed6 | [
"Apache-2.0"
] | null | null | null | arakat-core/examples/special_cases/WhenExample.py | CemalUnal/arakat | 6b7e1607e35b332bc493d755f777d9a480b5aed6 | [
"Apache-2.0"
] | null | null | null | from pipeline_generator.generators import PipelineGenerator
data={
"graph": {
"nodes": {
"node1":
{
"id": "node1",
"parent": "task1",
"name": "Batch Read from CSV",
"category": 0,
... | 45.620155 | 120 | 0.280714 | 299 | 5,885 | 5.270903 | 0.374582 | 0.044416 | 0.068528 | 0.083756 | 0.455584 | 0.43401 | 0.43401 | 0.43401 | 0.416244 | 0.319797 | 0 | 0.025619 | 0.602039 | 5,885 | 129 | 120 | 45.620155 | 0.64731 | 0 | 0 | 0.396825 | 0 | 0 | 0.251274 | 0.049439 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.007937 | 0 | 0.007937 | 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 |
732c786c667bdf33eb4d5a7f34707a2ebfd65791 | 1,051 | py | Python | doc/python_api/examples/bge.texture.1.py | linluofeng/upbge | 50bc9bc923a41411461d662c0fddd58d1f0b3ab3 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2 | 2018-06-18T01:50:25.000Z | 2018-06-18T01:50:32.000Z | doc/python_api/examples/bge.texture.1.py | linluofeng/upbge | 50bc9bc923a41411461d662c0fddd58d1f0b3ab3 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | doc/python_api/examples/bge.texture.1.py | linluofeng/upbge | 50bc9bc923a41411461d662c0fddd58d1f0b3ab3 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | """
Texture Replacement
+++++++++++++++++++
Example of how to replace a texture in game with an external image.
``createTexture()`` and ``removeTexture()`` are to be called from a
module Python Controller.
"""
from bge import logic
from bge import texture
def createTexture(cont):
"""Create a new Dynamic Texture"... | 25.634146 | 85 | 0.686965 | 138 | 1,051 | 5.202899 | 0.485507 | 0.066852 | 0.038997 | 0.052925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211227 | 1,051 | 40 | 86 | 26.275 | 0.866104 | 0.49001 | 0 | 0 | 0 | 0 | 0.058366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
732c84a2a3891f13db2c2c3e1dbb09657dc9d7fc | 2,667 | py | Python | libtc/clients/fakeclient.py | tobbez/libtc | c51cf2d28efa4fe3b398593a3990663f67cb617f | [
"MIT"
] | 8 | 2020-05-23T08:51:16.000Z | 2022-03-05T23:36:41.000Z | libtc/clients/fakeclient.py | tobbez/libtc | c51cf2d28efa4fe3b398593a3990663f67cb617f | [
"MIT"
] | 1 | 2020-07-10T23:17:44.000Z | 2020-07-11T06:58:34.000Z | libtc/clients/fakeclient.py | tobbez/libtc | c51cf2d28efa4fe3b398593a3990663f67cb617f | [
"MIT"
] | 2 | 2020-06-25T08:18:35.000Z | 2020-07-10T21:34:18.000Z | import random
import string
from datetime import datetime
import pytz
from ..baseclient import BaseClient
from ..exceptions import FailedToExecuteException
from ..torrent import TorrentData, TorrentState
TORRENTS = {}
def randomString(rng, letters, stringLength):
return "".join(rng.choice(letters) for i in ran... | 26.405941 | 82 | 0.629546 | 286 | 2,667 | 5.734266 | 0.367133 | 0.042683 | 0.060976 | 0.034756 | 0.097561 | 0.097561 | 0.070732 | 0.070732 | 0.070732 | 0.070732 | 0 | 0.050821 | 0.269591 | 2,667 | 100 | 83 | 26.67 | 0.791068 | 0 | 0 | 0.103896 | 0 | 0 | 0.076865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.194805 | false | 0.051948 | 0.090909 | 0.025974 | 0.38961 | 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 |
73323cdda3160b3bd31a206047866621ac5767d5 | 1,122 | py | Python | test/test_add_contact_in_group.py | KatrinkaYu/Task1 | 8913b1ccddb4aa1fb3dba0813613da3097a36d61 | [
"Apache-2.0"
] | null | null | null | test/test_add_contact_in_group.py | KatrinkaYu/Task1 | 8913b1ccddb4aa1fb3dba0813613da3097a36d61 | [
"Apache-2.0"
] | null | null | null | test/test_add_contact_in_group.py | KatrinkaYu/Task1 | 8913b1ccddb4aa1fb3dba0813613da3097a36d61 | [
"Apache-2.0"
] | null | null | null | from model.contact import Contact
from model.group import Group
from fixture.orm import ORMFixture
import random
db = ORMFixture(host="127.0.0.1", name="addressbook", user="root", password="")
group = Group(id="69")
def test_add_contact_in_group(app):
if len(db.get_contactlist()) == 0 or len(db.get_contacts_in_gr... | 51 | 111 | 0.683601 | 150 | 1,122 | 4.866667 | 0.426667 | 0.057534 | 0.071233 | 0.061644 | 0.236986 | 0.193151 | 0.090411 | 0 | 0 | 0 | 0 | 0.038419 | 0.188057 | 1,122 | 22 | 112 | 51 | 0.762898 | 0 | 0 | 0 | 0 | 0 | 0.112199 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.055556 | false | 0.055556 | 0.222222 | 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 |
7334448d9f91632820557228dd8ab4a6dad3db35 | 3,045 | py | Python | arbcharm/exchange_api/binance.py | RunningToTheEdgeOfTheWorld/arbcharm | 8cf58c9d425e1a4190118d5a2c93a61e64c28a36 | [
"MIT"
] | 26 | 2018-11-07T10:16:38.000Z | 2022-01-12T14:36:55.000Z | arbcharm/exchange_api/binance.py | zx403413599/arbcharm | f6ade6e379e157c2d4647d8d7d78946d2c744fae | [
"MIT"
] | 1 | 2021-04-26T14:52:22.000Z | 2021-04-26T14:52:22.000Z | arbcharm/exchange_api/binance.py | zx403413599/arbcharm | f6ade6e379e157c2d4647d8d7d78946d2c744fae | [
"MIT"
] | 17 | 2018-11-23T11:13:18.000Z | 2022-01-12T14:36:57.000Z | # !/usr/bin/env python
__author__ = 'Rick Zhang'
__time__ = '2018/10/12'
import asyncio
import json
import time
import websockets
from arbcharm.models import BaseExchange, OrderBook, OrderRow
class Binance(BaseExchange):
"""
binance websockets doc:
https://github.com/binance-exchange/binance-official-a... | 30.757576 | 100 | 0.538588 | 336 | 3,045 | 4.672619 | 0.428571 | 0.031847 | 0.02293 | 0.024204 | 0.090446 | 0.061147 | 0.061147 | 0.061147 | 0.061147 | 0.061147 | 0 | 0.069666 | 0.321182 | 3,045 | 98 | 101 | 31.071429 | 0.689889 | 0.190805 | 0 | 0.075472 | 0 | 0 | 0.06383 | 0.023127 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.037736 | false | 0.018868 | 0.09434 | 0 | 0.169811 | 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 |
7335e3f0762f9a5d22cb2da880539ab690e14942 | 3,122 | py | Python | accounts/apps/point_password.py | cnds/wxdemo | a445ea19ccd0b47caf6ea94e1ddec2ce3faf7d5e | [
"MIT"
] | null | null | null | accounts/apps/point_password.py | cnds/wxdemo | a445ea19ccd0b47caf6ea94e1ddec2ce3faf7d5e | [
"MIT"
] | null | null | null | accounts/apps/point_password.py | cnds/wxdemo | a445ea19ccd0b47caf6ea94e1ddec2ce3faf7d5e | [
"MIT"
] | null | null | null | from flask import request, jsonify
from .base import Base
from .json_validate import SCHEMA
from jybase.utils import create_md5_key, create_hash_key
class PointPassword(Base):
def post(self, store_id):
is_valid, data = self.get_params_from_request(
request, SCHEMA['point_password_post'])
... | 31.535354 | 77 | 0.582319 | 352 | 3,122 | 4.894886 | 0.184659 | 0.052815 | 0.052234 | 0.062681 | 0.629716 | 0.591991 | 0.577481 | 0.539176 | 0.539176 | 0.539176 | 0 | 0.016045 | 0.321268 | 3,122 | 98 | 78 | 31.857143 | 0.797074 | 0 | 0 | 0.527027 | 0 | 0 | 0.120795 | 0.016021 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0.337838 | 0.054054 | 0 | 0.337838 | 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 |
7338b2db8ff28459a09a5b54f683a14d47639e17 | 1,796 | py | Python | calculator.py | amitpatwa/calculator | 778cb910a091aa6b898fa9a145d9d1fa37846182 | [
"Apache-2.0"
] | null | null | null | calculator.py | amitpatwa/calculator | 778cb910a091aa6b898fa9a145d9d1fa37846182 | [
"Apache-2.0"
] | null | null | null | calculator.py | amitpatwa/calculator | 778cb910a091aa6b898fa9a145d9d1fa37846182 | [
"Apache-2.0"
] | 1 | 2019-10-10T15:41:45.000Z | 2019-10-10T15:41:45.000Z | from Tkinter import *
root=Tk()
root.title("Calcy")
e=Entry(root,width=18,bd=5,font="times 30 bold",justify='right')
e.grid(row=0,columnspan=5)
def insert(x):
e.insert(16,x)
def result():
y=eval(e.get())
e.delete(0,END)
e.insert(16,y)
def clear():
e.delete(0,END)
Button(root,text=... | 52.823529 | 93 | 0.695991 | 348 | 1,796 | 3.591954 | 0.146552 | 0.0408 | 0.1792 | 0.1792 | 0.732 | 0.5576 | 0.5576 | 0.5576 | 0.5336 | 0.2456 | 0 | 0.075972 | 0.054566 | 1,796 | 33 | 94 | 54.424242 | 0.660188 | 0 | 0 | 0.066667 | 0 | 0 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.033333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7339646111c7487981e703c38cc54b5acc24ae4d | 903 | py | Python | pravash/createincident.py | amvasudeva/rapidata | 7b6e984d24866f5cf474847cf462ac628427cf48 | [
"Apache-2.0"
] | null | null | null | pravash/createincident.py | amvasudeva/rapidata | 7b6e984d24866f5cf474847cf462ac628427cf48 | [
"Apache-2.0"
] | 7 | 2020-06-30T23:14:35.000Z | 2021-08-02T17:08:05.000Z | pravash/createincident.py | amvasudeva/rapidata | 7b6e984d24866f5cf474847cf462ac628427cf48 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python
#Need to install requests package for python
#sudo easy_install requests
import requests
# Set the request parameters
url = 'https://wiprodemo.service-now.com/api/now/table/incident'
user = 'Default'
pwd = 'Default@123'
# Set proper headers
headers = {"Content-Type":"application/json","Accept":... | 33.444444 | 118 | 0.728682 | 121 | 903 | 5.380165 | 0.553719 | 0.064516 | 0.082949 | 0.076805 | 0.156682 | 0.156682 | 0.156682 | 0.156682 | 0 | 0 | 0 | 0.011378 | 0.124031 | 903 | 26 | 119 | 34.730769 | 0.811631 | 0.37763 | 0 | 0 | 0 | 0 | 0.381555 | 0.05425 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
733bef4ea09e124f288b94b7e864116448a0c2b9 | 362 | py | Python | tests/math/test_interpolation.py | airinnova/commonlibs | e4ed133827aaadec931e5c682806ebe68ea8b750 | [
"Apache-2.0"
] | 1 | 2019-08-13T18:49:27.000Z | 2019-08-13T18:49:27.000Z | tests/math/test_interpolation.py | airinnova/commonlibs | e4ed133827aaadec931e5c682806ebe68ea8b750 | [
"Apache-2.0"
] | 1 | 2020-03-27T12:53:11.000Z | 2020-04-25T15:36:28.000Z | tests/math/test_interpolation.py | airinnova/commonlibs | e4ed133827aaadec931e5c682806ebe68ea8b750 | [
"Apache-2.0"
] | 3 | 2019-09-20T18:47:24.000Z | 2020-06-04T12:06:49.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import commonlibs.math.interpolation as m
def test_lin_interpol():
"""
Test function for linear interpolation
"""
x12 = (0, 10)
y12 = (20, 40)
assert m.lin_interpol(y12=y12, x12=x12, x=5) == 30
x12 = (0, 1)
y12 = (0, 1)
assert m.lin... | 19.052632 | 57 | 0.58011 | 58 | 362 | 3.551724 | 0.534483 | 0.160194 | 0.097087 | 0.174757 | 0.300971 | 0.300971 | 0.300971 | 0.300971 | 0.300971 | 0 | 0 | 0.161172 | 0.245856 | 362 | 18 | 58 | 20.111111 | 0.593407 | 0.226519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
733ddf52b38f2e81ef990954cd15b779630c85ce | 717 | py | Python | processing/boundaries/inputs/concat.py | fieldmaps/population-stats | a0728c180b17e7070bc9e5822b8deae2c5c334de | [
"MIT"
] | 1 | 2022-01-28T02:37:43.000Z | 2022-01-28T02:37:43.000Z | processing/boundaries/inputs/concat.py | fieldmaps/population-statistics | a0728c180b17e7070bc9e5822b8deae2c5c334de | [
"MIT"
] | null | null | null | processing/boundaries/inputs/concat.py | fieldmaps/population-statistics | a0728c180b17e7070bc9e5822b8deae2c5c334de | [
"MIT"
] | null | null | null | from psycopg2.sql import SQL, Identifier
from .utils import logging, get_ids, get_ps_ids
logger = logging.getLogger(__name__)
query_1 = """
DROP TABLE IF EXISTS adm4_polygons_pop_03;
CREATE TABLE adm4_polygons_pop_03 AS
SELECT {ids}, geom FROM adm4_polygons_pop_02
UNION ALL
SELECT {ids}, geom FROM... | 26.555556 | 70 | 0.705718 | 111 | 717 | 4.252252 | 0.423423 | 0.163136 | 0.137712 | 0.180085 | 0.322034 | 0.322034 | 0.322034 | 0.322034 | 0.322034 | 0 | 0 | 0.045375 | 0.200837 | 717 | 26 | 71 | 27.576923 | 0.77836 | 0 | 0 | 0.181818 | 0 | 0 | 0.587169 | 0.029289 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
733ed376b54934bcbb7b8465825aa7e4d60987f1 | 306 | py | Python | s13_debug_unittest/debug_pdb.py | chiehandlu/pythonlearn | 53ba8f0f8edc7df7b09b0f233d52d7145d380ec0 | [
"Apache-2.0"
] | 14 | 2017-06-27T06:20:57.000Z | 2020-03-31T11:05:16.000Z | s13_debug_unittest/debug_pdb.py | chiehandlu/pythonlearn | 53ba8f0f8edc7df7b09b0f233d52d7145d380ec0 | [
"Apache-2.0"
] | null | null | null | s13_debug_unittest/debug_pdb.py | chiehandlu/pythonlearn | 53ba8f0f8edc7df7b09b0f233d52d7145d380ec0 | [
"Apache-2.0"
] | 11 | 2017-07-19T07:09:11.000Z | 2020-12-03T19:16:35.000Z |
import pdb
numbers = [1, 2, 3, 4, 10, -4, -7, 0]
pdb.set_trace() # add this line where you want to start debug mode
def all_even(num_list):
even_numbers = []
for number in num_list:
if number%2 == 0:
even_numbers.extend(number)
return even_numbers
all_even(numbers) | 17 | 67 | 0.630719 | 50 | 306 | 3.7 | 0.66 | 0.237838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048889 | 0.264706 | 306 | 18 | 68 | 17 | 0.773333 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.