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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
71dd434a3adaa696a17ec425e131077b6639bbec | 2,995 | py | Python | Chapter_4/lists_data_type.py | alenasf/AutomateTheBoringStuff | 041e56221eb98d9893c24d22497034e6344c0490 | [
"Apache-2.0"
] | null | null | null | Chapter_4/lists_data_type.py | alenasf/AutomateTheBoringStuff | 041e56221eb98d9893c24d22497034e6344c0490 | [
"Apache-2.0"
] | null | null | null | Chapter_4/lists_data_type.py | alenasf/AutomateTheBoringStuff | 041e56221eb98d9893c24d22497034e6344c0490 | [
"Apache-2.0"
] | null | null | null | #Negative Indexes
spam = ['cat', 'bat', 'rat', 'elephant']
spam[-1] # elepant
spam[-3] # bat
# Getting a List from another List with Slices
spam = ['cat', 'bat', 'rat', 'elephant']
spam[0:4] # ['cat', 'bat', 'rat', 'elephant']
spam[1:3] # ['bat', 'rat']
spam[0:-1] # ['cat', 'bat', 'rat']
spam[:2] # ['cat', 'bat']
spa... | 26.043478 | 94 | 0.600334 | 452 | 2,995 | 3.977876 | 0.269912 | 0.047275 | 0.050056 | 0.05673 | 0.267519 | 0.228587 | 0.147942 | 0.119021 | 0.048943 | 0.038932 | 0 | 0.023026 | 0.18798 | 2,995 | 114 | 95 | 26.27193 | 0.716283 | 0.435058 | 0 | 0.347826 | 0 | 0 | 0.228623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028986 | 0 | 0.028986 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
71dfbd47e154641ea34b44a5f3aa8459312d608f | 3,268 | py | Python | qemu/scripts/codeconverter/codeconverter/test_patching.py | hyunjoy/scripts | 01114d3627730d695b5ebe61093c719744432ffa | [
"Apache-2.0"
] | 44 | 2022-03-16T08:32:31.000Z | 2022-03-31T16:02:35.000Z | qemu/scripts/codeconverter/codeconverter/test_patching.py | hyunjoy/scripts | 01114d3627730d695b5ebe61093c719744432ffa | [
"Apache-2.0"
] | 1 | 2022-03-29T02:30:28.000Z | 2022-03-30T03:40:46.000Z | qemu/scripts/codeconverter/codeconverter/test_patching.py | hyunjoy/scripts | 01114d3627730d695b5ebe61093c719744432ffa | [
"Apache-2.0"
] | 18 | 2022-03-19T04:41:04.000Z | 2022-03-31T03:32:12.000Z | # Copyright (C) 2020 Red Hat Inc.
#
# Authors:
# Eduardo Habkost <ehabkost@redhat.com>
#
# This work is licensed under the terms of the GNU GPL, version 2. See
# the COPYING file in the top-level directory.
from tempfile import NamedTemporaryFile
from .patching import FileInfo, FileMatch, Patch, FileList
from .regexp... | 31.12381 | 71 | 0.597613 | 408 | 3,268 | 4.723039 | 0.340686 | 0.056046 | 0.046705 | 0.069019 | 0.265179 | 0.213285 | 0.137519 | 0.11261 | 0.079398 | 0.046705 | 0 | 0.031879 | 0.270502 | 3,268 | 104 | 72 | 31.423077 | 0.776426 | 0.097001 | 0 | 0.2 | 0 | 0 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.05 | false | 0 | 0.0375 | 0.025 | 0.1875 | 0.0125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
71e063f198be6d799932aa28d7e46247d3e2c98f | 634 | py | Python | Traversy Media/Python Django Dev to Deployment/Python Fundamentals/Tuples and Sets.py | Anim-101/CourseHub | 570ddc2bca794c14921991d24fdf1b4a7d0beb68 | [
"MIT"
] | 3 | 2019-11-01T17:07:13.000Z | 2020-04-01T10:27:05.000Z | Traversy Media/Python Django Dev to Deployment/Python Fundamentals/Tuples and Sets.py | Anim-101/CourseHub | 570ddc2bca794c14921991d24fdf1b4a7d0beb68 | [
"MIT"
] | 18 | 2020-08-10T05:11:24.000Z | 2021-12-03T15:13:40.000Z | Traversy Media/Python Django Dev to Deployment/Python Fundamentals/Tuples and Sets.py | Anim-101/CourseHub | 570ddc2bca794c14921991d24fdf1b4a7d0beb68 | [
"MIT"
] | null | null | null | # # Simple Tuple
# fruits = ('Apple', 'Orange', 'Mango')
# # Using Constructor
# fruits = tuple(('Apple', 'Orange', 'Mango'))
# # Getting a Single Value
# print(fruits[1])
# Trying to change based on position
# fruits[1] = 'Grape'
# Tuples with one value should have trailing comma
# fruits = ('Apple')
# fruits = ('... | 16.25641 | 50 | 0.652997 | 85 | 634 | 4.870588 | 0.517647 | 0.10628 | 0.115942 | 0.10628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003846 | 0.179811 | 634 | 38 | 51 | 16.684211 | 0.792308 | 0.664038 | 0 | 0 | 0 | 0 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
71e0e6976164ccf999455f35ac70c3e13a0fe3ef | 20,146 | py | Python | nerblackbox/modules/ner_training/metrics/ner_metrics.py | flxst/nerblackbox | 7612b95850e637be258f6bfb01274453b7372f99 | [
"Apache-2.0"
] | null | null | null | nerblackbox/modules/ner_training/metrics/ner_metrics.py | flxst/nerblackbox | 7612b95850e637be258f6bfb01274453b7372f99 | [
"Apache-2.0"
] | null | null | null | nerblackbox/modules/ner_training/metrics/ner_metrics.py | flxst/nerblackbox | 7612b95850e637be258f6bfb01274453b7372f99 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from dataclasses import asdict
from typing import List, Tuple, Callable
import numpy as np
from sklearn.metrics import accuracy_score as accuracy_sklearn
from sklearn.metrics import precision_score as precision_sklearn
from sklearn.metrics import recall_score as recall_sklearn
from sk... | 36.299099 | 116 | 0.538469 | 1,971 | 20,146 | 5.236936 | 0.090309 | 0.097655 | 0.027902 | 0.021798 | 0.663244 | 0.594943 | 0.529258 | 0.461442 | 0.391106 | 0.338016 | 0 | 0.005834 | 0.378934 | 20,146 | 554 | 117 | 36.364621 | 0.819134 | 0.162762 | 0 | 0.503704 | 0 | 0 | 0.040738 | 0.005185 | 0 | 0 | 0 | 0 | 0.014815 | 1 | 0.037037 | false | 0 | 0.037037 | 0.002469 | 0.128395 | 0.007407 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
71e128bd284f8fc2eb997551cf3f8ee9632b562a | 2,192 | py | Python | Assignments/hw4/rank_feat_by_chi_square.py | spacemanidol/CLMS572 | f0380de9912c984ec21607cdb3b1f190853c5ca8 | [
"MIT"
] | null | null | null | Assignments/hw4/rank_feat_by_chi_square.py | spacemanidol/CLMS572 | f0380de9912c984ec21607cdb3b1f190853c5ca8 | [
"MIT"
] | null | null | null | Assignments/hw4/rank_feat_by_chi_square.py | spacemanidol/CLMS572 | f0380de9912c984ec21607cdb3b1f190853c5ca8 | [
"MIT"
] | 1 | 2020-12-26T01:28:41.000Z | 2020-12-26T01:28:41.000Z | import sys
def readInput():
labels, features, all_features, labelCount = [], [], [], {}
l = sys.stdin.readline().strip().split(' ')
while len(l)> 1:
label = l[0]
if label not in labelCount:
labelCount[label] = 0
labelCount[label] += 1
labels.append(label)
... | 56.205128 | 323 | 0.656022 | 242 | 2,192 | 5.884298 | 0.322314 | 0.073736 | 0.058989 | 0.033708 | 0.037921 | 0.037921 | 0 | 0 | 0 | 0 | 0 | 0.009884 | 0.215328 | 2,192 | 39 | 324 | 56.205128 | 0.818023 | 0.102646 | 0 | 0.102564 | 0 | 0 | 0.011723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.025641 | 0 | 0.102564 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e07b1d529111d4e2e89b3b1cd2c58ff9446e312f | 6,642 | py | Python | fem/fem.py | Pengeace/DGP-PDE-FEM | 64b7f42ca7083b05f05c42baa6cad21084068d8c | [
"MIT"
] | 7 | 2019-06-26T07:25:33.000Z | 2021-06-25T03:40:22.000Z | fem/fem.py | Pengeace/DGP-PDE-FEM | 64b7f42ca7083b05f05c42baa6cad21084068d8c | [
"MIT"
] | null | null | null | fem/fem.py | Pengeace/DGP-PDE-FEM | 64b7f42ca7083b05f05c42baa6cad21084068d8c | [
"MIT"
] | null | null | null | import numpy as np
import pyamg
from scipy import sparse
from scipy.spatial import Delaunay
from linsolver import sparse_solver
from triangulation.delaunay import delaunay
class Element:
def __init__(self, points, global_indexes, fem):
self.points = np.array(points)
self.global_indexes = global_i... | 40.012048 | 141 | 0.643029 | 839 | 6,642 | 4.79857 | 0.174017 | 0.086935 | 0.117983 | 0.124193 | 0.419771 | 0.316195 | 0.197466 | 0.140089 | 0.140089 | 0.137109 | 0 | 0.009333 | 0.257904 | 6,642 | 165 | 142 | 40.254545 | 0.807466 | 0.116983 | 0 | 0.133929 | 0 | 0 | 0.007881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133929 | false | 0 | 0.053571 | 0 | 0.223214 | 0.008929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e07c0e48507e0965db82bd0823c76af3d0ebb993 | 2,745 | py | Python | custom_components/tahoma/climate_devices/dimmer_exterior_heating.py | MatthewFlamm/ha-tahoma | 794e8e4a54a8e5f55622b88bb1ab5ffc3ecb0d1b | [
"MIT"
] | null | null | null | custom_components/tahoma/climate_devices/dimmer_exterior_heating.py | MatthewFlamm/ha-tahoma | 794e8e4a54a8e5f55622b88bb1ab5ffc3ecb0d1b | [
"MIT"
] | null | null | null | custom_components/tahoma/climate_devices/dimmer_exterior_heating.py | MatthewFlamm/ha-tahoma | 794e8e4a54a8e5f55622b88bb1ab5ffc3ecb0d1b | [
"MIT"
] | null | null | null | """Support for Atlantic Electrical Heater IO controller."""
import logging
from typing import List
from homeassistant.components.climate import ClimateEntity
from homeassistant.components.climate.const import (
HVAC_MODE_HEAT,
HVAC_MODE_OFF,
SUPPORT_TARGET_TEMPERATURE,
)
from homeassistant.const import ATT... | 31.918605 | 82 | 0.687796 | 326 | 2,745 | 5.515337 | 0.288344 | 0.053393 | 0.026696 | 0.046719 | 0.159622 | 0.159622 | 0.143493 | 0.107898 | 0.107898 | 0.107898 | 0 | 0.009381 | 0.223315 | 2,745 | 85 | 83 | 32.294118 | 0.833959 | 0.146448 | 0 | 0.196429 | 0 | 0 | 0.013914 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.125 | 0 | 0.446429 | 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 | 0 | 0 | 1 | 0 |
e07c5c23f946a28e4cc418a3bd4c6debbb0d6123 | 3,271 | py | Python | elit/components/mtl/attn/joint_encoder.py | emorynlp/stem-cell-hypothesis | 48a628093d93d653865fbac6409d179cddd99293 | [
"Apache-2.0"
] | 4 | 2021-09-17T15:23:31.000Z | 2022-02-28T10:18:04.000Z | elit/components/mtl/attn/joint_encoder.py | emorynlp/stem-cell-hypothesis | 48a628093d93d653865fbac6409d179cddd99293 | [
"Apache-2.0"
] | null | null | null | elit/components/mtl/attn/joint_encoder.py | emorynlp/stem-cell-hypothesis | 48a628093d93d653865fbac6409d179cddd99293 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2021-03-02 13:32
from typing import Optional, Union, Dict, Any
import torch
from torch import nn
from transformers import PreTrainedTokenizer
from elit.components.mtl.attn.attn import TaskAttention
from elit.components.mtl.attn.transformer import JointEncoder
from elit.... | 53.622951 | 120 | 0.63956 | 327 | 3,271 | 6.134557 | 0.345566 | 0.027916 | 0.042373 | 0.026919 | 0.107677 | 0.037886 | 0.037886 | 0.037886 | 0 | 0 | 0 | 0.006905 | 0.291654 | 3,271 | 60 | 121 | 54.516667 | 0.858869 | 0.025986 | 0 | 0 | 0 | 0 | 0.045269 | 0.022634 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.195652 | 0.021739 | 0.347826 | 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 | 0 | 0 | 1 | 0 |
e07ce9c764d3c52f1697472892d9c4a14a2d9b6a | 5,140 | py | Python | jaxrl/agents/sac_v1/sac_v1_learner.py | anuragajay/jaxrl | a37414aea9e281f19719ccfc09702b32e1ef4e44 | [
"MIT"
] | 157 | 2021-03-12T04:30:53.000Z | 2021-06-10T11:28:48.000Z | jaxrl/agents/sac_v1/sac_v1_learner.py | anuragajay/jaxrl | a37414aea9e281f19719ccfc09702b32e1ef4e44 | [
"MIT"
] | 3 | 2021-09-23T21:13:28.000Z | 2021-11-19T12:32:34.000Z | jaxrl/agents/sac_v1/sac_v1_learner.py | anuragajay/jaxrl | a37414aea9e281f19719ccfc09702b32e1ef4e44 | [
"MIT"
] | 17 | 2021-06-15T13:38:35.000Z | 2022-03-17T15:25:23.000Z | """Implementations of algorithms for continuous control."""
import functools
from typing import Optional, Sequence, Tuple
import jax
import jax.numpy as jnp
import numpy as np
import optax
from jaxrl.agents.sac import temperature
from jaxrl.agents.sac.actor import update as update_actor
from jaxrl.agents.sac.critic ... | 35.694444 | 107 | 0.596887 | 604 | 5,140 | 4.865894 | 0.195364 | 0.052399 | 0.023818 | 0.024498 | 0.139163 | 0.106499 | 0.106499 | 0.06805 | 0.06805 | 0.033345 | 0 | 0.012799 | 0.315953 | 5,140 | 143 | 108 | 35.944056 | 0.823094 | 0.029767 | 0 | 0.055556 | 0 | 0 | 0.004034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.12037 | 0 | 0.194444 | 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 | 0 | 0 | 1 | 0 |
e07d1faf3d069567748feca41784098709e225b2 | 1,143 | py | Python | quick_pandas.py | chenmich/google-ml-crash-course-exercises | d610f890d53b1537a3ce80531ce1ff2df1f5dc84 | [
"MIT"
] | null | null | null | quick_pandas.py | chenmich/google-ml-crash-course-exercises | d610f890d53b1537a3ce80531ce1ff2df1f5dc84 | [
"MIT"
] | null | null | null | quick_pandas.py | chenmich/google-ml-crash-course-exercises | d610f890d53b1537a3ce80531ce1ff2df1f5dc84 | [
"MIT"
] | null | null | null | import pandas as pd
print(pd.__version__)
city_names = pd.Series(['San Francisco', 'San Jose', 'Sacramento'])
population = pd.Series([852469, 1015785, 485199])
#city_population_table = pd.DataFrame(({'City name': city_names, 'Population': population}))
california_houseing_dataframe = pd.read_csv("https://storage.google... | 40.821429 | 130 | 0.750656 | 159 | 1,143 | 5.251572 | 0.408805 | 0.092216 | 0.129341 | 0.045509 | 0.201198 | 0.11497 | 0.11497 | 0.11497 | 0 | 0 | 0 | 0.047214 | 0.073491 | 1,143 | 28 | 131 | 40.821429 | 0.741265 | 0.366579 | 0 | 0 | 0 | 0 | 0.26264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e081143f3b7d183dce44c075a5350bb5aba51e51 | 797 | py | Python | backend/app/main.py | ianahart/blog | fc52e15a8b56bd4c6482065de7e21f8b31f5d765 | [
"MIT"
] | null | null | null | backend/app/main.py | ianahart/blog | fc52e15a8b56bd4c6482065de7e21f8b31f5d765 | [
"MIT"
] | null | null | null | backend/app/main.py | ianahart/blog | fc52e15a8b56bd4c6482065de7e21f8b31f5d765 | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from dotenv import load_dotenv
from fastapi.middleware.cors import CORSMiddleware
from app.api.api_v1.api import api_router
from app.core.config import settings
app = FastAPI()
load_dotenv()
app.include_router(api_router, prefix=settings.API_V1_STR)
# Set all CORS enabled origins
if sett... | 27.482759 | 68 | 0.711418 | 103 | 797 | 5.252427 | 0.504854 | 0.011091 | 0.07024 | 0.096118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.196989 | 797 | 28 | 69 | 28.464286 | 0.829688 | 0.130489 | 0 | 0 | 0 | 0 | 0.03193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 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 | 0 | 0 | 1 | 0 |
e083bd5dc380bfdfeec4ef47f0529d4de1bded9d | 658 | py | Python | test_data/samples/alembic_template_output.py | goldstar611/ssort | 05c35ec89dd9ff391ae824c17ed974340e2f5597 | [
"MIT"
] | 238 | 2021-04-25T11:45:54.000Z | 2022-03-30T10:49:58.000Z | test_data/samples/alembic_template_output.py | goldstar611/ssort | 05c35ec89dd9ff391ae824c17ed974340e2f5597 | [
"MIT"
] | 54 | 2021-03-29T21:40:00.000Z | 2022-03-29T20:26:31.000Z | test_data/samples/alembic_template_output.py | goldstar611/ssort | 05c35ec89dd9ff391ae824c17ed974340e2f5597 | [
"MIT"
] | 4 | 2022-02-09T02:37:11.000Z | 2022-02-23T03:07:50.000Z | """Example revision
Revision ID: fdf0cf6487a3
Revises:
Create Date: 2021-08-09 17:55:19.491713
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "fdf0cf6487a3"
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto ge... | 20.5625 | 65 | 0.668693 | 79 | 658 | 5.493671 | 0.582278 | 0.062212 | 0.096774 | 0.105991 | 0.202765 | 0.202765 | 0.202765 | 0.202765 | 0 | 0 | 0 | 0.061069 | 0.203647 | 658 | 31 | 66 | 21.225806 | 0.767176 | 0.433131 | 0 | 0 | 0 | 0 | 0.122024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e085ecf717371ed12e23c9cc1a56cd7685b27bf6 | 790 | py | Python | .archived/snakecode/0173.py | gearbird/calgo | ab48357100de2a5ea47fda2d9f01ced6dc73fa79 | [
"MIT"
] | 4 | 2022-01-13T03:39:01.000Z | 2022-03-15T03:16:33.000Z | .archived/snakecode/0173.py | gearbird/calgo | ab48357100de2a5ea47fda2d9f01ced6dc73fa79 | [
"MIT"
] | null | null | null | .archived/snakecode/0173.py | gearbird/calgo | ab48357100de2a5ea47fda2d9f01ced6dc73fa79 | [
"MIT"
] | 1 | 2021-12-09T12:33:07.000Z | 2021-12-09T12:33:07.000Z | from __future__ import annotations
from typing import Optional
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val: int = 0, left: Optional[TreeNode] = None, right: Optional[TreeNode] = None):
self.val = val
self.left = left
self.right = right
class BSTIterator:
... | 27.241379 | 104 | 0.606329 | 99 | 790 | 4.717172 | 0.424242 | 0.089936 | 0.094218 | 0.068522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003559 | 0.288608 | 790 | 28 | 105 | 28.214286 | 0.827402 | 0.043038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.454545 | 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 | 0 | 0 | 1 | 0 |
e08673d5cfeabd8f8dd35fbf0c18643dc03a42fd | 1,933 | py | Python | test/msan/lit.cfg.py | QuarkTheAwesome/compiler-rt-be-aeabi | 79e7d2bd981b0f38d60d90f8382c6cd5389b95d0 | [
"Apache-2.0"
] | 118 | 2016-02-29T01:55:45.000Z | 2021-11-08T09:47:46.000Z | test/msan/lit.cfg.py | QuarkTheAwesome/compiler-rt-be-aeabi | 79e7d2bd981b0f38d60d90f8382c6cd5389b95d0 | [
"Apache-2.0"
] | 27 | 2016-06-20T23:47:01.000Z | 2019-10-25T17:41:37.000Z | test/msan/lit.cfg.py | QuarkTheAwesome/compiler-rt-be-aeabi | 79e7d2bd981b0f38d60d90f8382c6cd5389b95d0 | [
"Apache-2.0"
] | 73 | 2016-03-01T00:50:56.000Z | 2021-12-05T03:30:35.000Z | # -*- Python -*-
import os
# Setup config name.
config.name = 'MemorySanitizer' + getattr(config, 'name_suffix', 'default')
# Setup source root.
config.test_source_root = os.path.dirname(__file__)
# Setup default compiler flags used with -fsanitize=memory option.
clang_msan_cflags = (["-fsanitize=memory",
... | 40.270833 | 88 | 0.685463 | 239 | 1,933 | 5.351464 | 0.460251 | 0.049257 | 0.097733 | 0.037529 | 0.173573 | 0.129789 | 0.129789 | 0 | 0 | 0 | 0 | 0.006341 | 0.18417 | 1,933 | 47 | 89 | 41.12766 | 0.804692 | 0.253492 | 0 | 0.148148 | 0 | 0 | 0.227654 | 0.071229 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.037037 | 0.037037 | 0.111111 | 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 | 0 | 0 | 1 | 0 |
e087918e3b0a051f5fa5fa67e1527b89fc1bd61b | 9,606 | py | Python | dataschema/entity.py | vingkan/sql_tools | 5d6ab6a0ae31dc51e51ac1629f83f7bbf91396c1 | [
"Apache-2.0"
] | 1 | 2022-03-30T19:47:16.000Z | 2022-03-30T19:47:16.000Z | dataschema/entity.py | vingkan/sql_tools | 5d6ab6a0ae31dc51e51ac1629f83f7bbf91396c1 | [
"Apache-2.0"
] | null | null | null | dataschema/entity.py | vingkan/sql_tools | 5d6ab6a0ae31dc51e51ac1629f83f7bbf91396c1 | [
"Apache-2.0"
] | 1 | 2022-03-30T04:07:12.000Z | 2022-03-30T04:07:12.000Z | #
# nuna_sql_tools: Copyright 2022 Nuna Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 36.249057 | 80 | 0.636581 | 1,162 | 9,606 | 4.907917 | 0.185886 | 0.098194 | 0.029458 | 0.013677 | 0.256707 | 0.182185 | 0.095388 | 0.0761 | 0.052955 | 0.052955 | 0 | 0.003849 | 0.269727 | 9,606 | 264 | 81 | 36.386364 | 0.809123 | 0.169686 | 0 | 0.233696 | 0 | 0 | 0.142187 | 0.026509 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.027174 | 0.021739 | 0.353261 | 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 | 0 | 0 | 1 | 0 |
e089b61952e1f4d0f2fb6443737c623fe7ff04be | 10,577 | py | Python | jaxline/utils_test.py | lorenrose1013/jaxline | 29fca9944651d42139d4103fe12ef29b24812eb6 | [
"Apache-2.0"
] | 1 | 2022-01-07T02:44:07.000Z | 2022-01-07T02:44:07.000Z | jaxline/utils_test.py | SuperXiang/jaxline | f1503f6a06d46aa9eb2eab8eed6130895148ffa2 | [
"Apache-2.0"
] | null | null | null | jaxline/utils_test.py | SuperXiang/jaxline | f1503f6a06d46aa9eb2eab8eed6130895148ffa2 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 DeepMind Technologies Limited. 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 ... | 32.345566 | 80 | 0.681573 | 1,411 | 10,577 | 4.924167 | 0.213324 | 0.025331 | 0.025907 | 0.025907 | 0.450921 | 0.382412 | 0.337939 | 0.288716 | 0.266983 | 0.256908 | 0 | 0.006381 | 0.185024 | 10,577 | 326 | 81 | 32.444785 | 0.799652 | 0.174246 | 0 | 0.354067 | 0 | 0 | 0.052894 | 0.013773 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.162679 | false | 0.004785 | 0.047847 | 0 | 0.253589 | 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 | 0 | 0 | 1 | 0 |
e08cc87c4cfc35f91dfef4447a5dc8af61c7fede | 545 | py | Python | problems/108.py | mengshun/Leetcode | 8bb676f2fff093e1417a4bed13d9ad708149be78 | [
"MIT"
] | null | null | null | problems/108.py | mengshun/Leetcode | 8bb676f2fff093e1417a4bed13d9ad708149be78 | [
"MIT"
] | null | null | null | problems/108.py | mengshun/Leetcode | 8bb676f2fff093e1417a4bed13d9ad708149be78 | [
"MIT"
] | null | null | null | """
108. 将有序数组转换为二叉搜索树
"""
from TreeNode import TreeNode
class Solution:
def sortedArrayToBST(self, nums: [int]) -> TreeNode:
def dfs(left, right):
if left > right:
return None
mid = left + (right - left) // 2
root = TreeNode(nums[mid])
roo... | 18.793103 | 56 | 0.543119 | 66 | 545 | 4.484848 | 0.484848 | 0.091216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038043 | 0.324771 | 545 | 28 | 57 | 19.464286 | 0.766304 | 0.033028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.4375 | 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 | 0 | 0 | 1 | 0 |
e091211c57418837730aea76bfdd4d9fd710e048 | 1,978 | py | Python | src/riotwatcher/riotwatcher.py | TheBoringBakery/Riot-Watcher | 6e05fffe127530a75fd63e67da37ba81489fd4fe | [
"MIT"
] | 2 | 2020-10-06T23:33:01.000Z | 2020-11-22T01:58:43.000Z | src/riotwatcher/riotwatcher.py | TheBoringBakery/Riot-Watcher | 6e05fffe127530a75fd63e67da37ba81489fd4fe | [
"MIT"
] | null | null | null | src/riotwatcher/riotwatcher.py | TheBoringBakery/Riot-Watcher | 6e05fffe127530a75fd63e67da37ba81489fd4fe | [
"MIT"
] | null | null | null | from .Deserializer import Deserializer
from .RateLimiter import RateLimiter
from .Handlers import (
DeprecationHandler,
DeserializerAdapter,
DictionaryDeserializer,
RateLimiterAdapter,
ThrowOnErrorHandler,
TypeCorrectorHandler,
)
from .Handlers.RateLimit import BasicRateLimiter
from ._apis imp... | 31.396825 | 104 | 0.637513 | 190 | 1,978 | 6.521053 | 0.410526 | 0.029056 | 0.016142 | 0.025827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.303337 | 1,978 | 62 | 105 | 31.903226 | 0.899129 | 0.35996 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.171429 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e09178ade395a6b6c4b0853c972ab7664e0aa556 | 4,175 | py | Python | webots_ros2_core/webots_ros2_core/devices/gps_device.py | TaoYibo1866/webots_ros2 | a72c164825663cebbfd27e0649ea51d3abf9bbed | [
"Apache-2.0"
] | 176 | 2019-09-06T07:02:05.000Z | 2022-03-27T12:41:10.000Z | webots_ros2_core/webots_ros2_core/devices/gps_device.py | TaoYibo1866/webots_ros2 | a72c164825663cebbfd27e0649ea51d3abf9bbed | [
"Apache-2.0"
] | 308 | 2019-08-20T12:56:23.000Z | 2022-03-29T09:49:22.000Z | webots_ros2_core/webots_ros2_core/devices/gps_device.py | omichel/webots_ros2 | 5b59d0b1fbeff4c3f75a447bd152c10853f4691b | [
"Apache-2.0"
] | 67 | 2019-11-03T00:58:09.000Z | 2022-03-18T07:11:28.000Z | # Copyright 1996-2021 Cyberbotics Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.954545 | 84 | 0.648144 | 492 | 4,175 | 5.247967 | 0.359756 | 0.040279 | 0.046476 | 0.048799 | 0.268784 | 0.224632 | 0.091402 | 0.037955 | 0.037955 | 0.037955 | 0 | 0.013789 | 0.270419 | 4,175 | 109 | 85 | 38.302752 | 0.833881 | 0.324072 | 0 | 0.267857 | 0 | 0 | 0.005138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.107143 | 0 | 0.196429 | 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 | 0 | 0 | 1 | 0 |
e091f0178c86f87d30aea273c60c55d5d07a1bdf | 24,241 | py | Python | players/jeff.py | jtreim/cant-stop | 0ef1a2da67e4232a4ad2be150e950e8f1914a851 | [
"MIT"
] | null | null | null | players/jeff.py | jtreim/cant-stop | 0ef1a2da67e4232a4ad2be150e950e8f1914a851 | [
"MIT"
] | null | null | null | players/jeff.py | jtreim/cant-stop | 0ef1a2da67e4232a4ad2be150e950e8f1914a851 | [
"MIT"
] | 2 | 2020-12-29T21:30:54.000Z | 2021-01-02T05:23:23.000Z | from .player import Player
class JeffPlayer(Player):
"""
JeffPlayer focuses on the odds for continuing turns.
To pick which move, calculates a move value based on odds of continued
turns, moving forward less likely columns when possible, and winning
columns over opponents.
"""
ODDS = 'odds... | 35.806499 | 95 | 0.413143 | 2,681 | 24,241 | 3.648266 | 0.092503 | 0.034352 | 0.020243 | 0.022084 | 0.472344 | 0.381352 | 0.342705 | 0.260812 | 0.227993 | 0.184541 | 0 | 0.092439 | 0.431459 | 24,241 | 676 | 96 | 35.859467 | 0.617254 | 0.083825 | 0 | 0.442857 | 0 | 0 | 0.027876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026786 | false | 0 | 0.001786 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e09525abcb7cde902261ff8255cd7d2143781fb5 | 8,471 | py | Python | PyMaSC/handler/mappability.py | ronin-gw/PyMaSC | 70c32b647017e162e0b004cadcf4f59a2d4012b6 | [
"MIT"
] | 2 | 2018-04-20T13:34:16.000Z | 2021-07-13T16:20:28.000Z | PyMaSC/handler/mappability.py | ronin-gw/PyMaSC | 70c32b647017e162e0b004cadcf4f59a2d4012b6 | [
"MIT"
] | 1 | 2021-03-16T11:08:46.000Z | 2021-03-16T17:26:15.000Z | PyMaSC/handler/mappability.py | ronin-gw/PyMaSC | 70c32b647017e162e0b004cadcf4f59a2d4012b6 | [
"MIT"
] | null | null | null | import logging
import os
import json
from multiprocessing import Process, Queue, Lock
import numpy as np
from PyMaSC.core.mappability import MappableLengthCalculator
from PyMaSC.utils.progress import ProgressHook, MultiLineProgressManager
from PyMaSC.utils.compatible import tostr, xrange
from PyMaSC.utils.output impo... | 37.816964 | 107 | 0.613387 | 1,001 | 8,471 | 4.982018 | 0.1998 | 0.041708 | 0.037497 | 0.027271 | 0.245238 | 0.176058 | 0.097052 | 0.075797 | 0.060156 | 0.025266 | 0 | 0.004285 | 0.283674 | 8,471 | 223 | 108 | 37.986547 | 0.817568 | 0.001771 | 0 | 0.196629 | 0 | 0 | 0.104802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073034 | false | 0.022472 | 0.05618 | 0.005618 | 0.202247 | 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 | 0 | 0 | 1 | 0 |
e0986b7dc3912a34a19f7612f40be9b6072d9a7e | 15,310 | py | Python | lib/twitter_utils.py | Vman45/ask-alexa-twitter | 1711005e51db1f66beb2e41e762c39ee003273aa | [
"MIT"
] | 310 | 2015-07-30T17:05:06.000Z | 2020-12-19T18:39:39.000Z | lib/twitter_utils.py | Vman45/ask-alexa-twitter | 1711005e51db1f66beb2e41e762c39ee003273aa | [
"MIT"
] | 29 | 2015-12-08T22:10:47.000Z | 2017-10-06T16:40:05.000Z | lib/twitter_utils.py | Vman45/ask-alexa-twitter | 1711005e51db1f66beb2e41e762c39ee003273aa | [
"MIT"
] | 73 | 2015-11-12T06:56:53.000Z | 2020-09-13T22:23:44.000Z | import requests
import jsonpickle
from requests_oauthlib import OAuth1
from urllib.parse import parse_qs, urlencode
import cherrypy
from collections import defaultdict
import json
import os
import re
from collections import defaultdict
# For readable serializations
jsonpickle.set_encoder_options('json', sort_keys=Tr... | 36.279621 | 150 | 0.615741 | 1,914 | 15,310 | 4.697492 | 0.140021 | 0.032032 | 0.021355 | 0.03003 | 0.375264 | 0.286286 | 0.241352 | 0.194194 | 0.164387 | 0.093872 | 0 | 0.005923 | 0.261137 | 15,310 | 421 | 151 | 36.365796 | 0.788897 | 0.052972 | 0 | 0.071918 | 0 | 0.003425 | 0.147986 | 0.003194 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195205 | false | 0.003425 | 0.034247 | 0.068493 | 0.417808 | 0.034247 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e09899e15fdc6c14c2bf5b2ab6389520f9a3d9b7 | 1,399 | py | Python | sundry/serializable.py | jamesabel/sundry | 4f63bfa0624c88a3cd05adf2784e9e3e66e094f4 | [
"MIT"
] | 2 | 2019-10-02T06:30:27.000Z | 2021-07-10T22:39:30.000Z | sundry/serializable.py | jamesabel/sundry | 4f63bfa0624c88a3cd05adf2784e9e3e66e094f4 | [
"MIT"
] | 3 | 2019-03-13T17:15:58.000Z | 2019-06-04T20:26:57.000Z | sundry/serializable.py | jamesabel/sundry | 4f63bfa0624c88a3cd05adf2784e9e3e66e094f4 | [
"MIT"
] | 1 | 2019-03-08T21:37:29.000Z | 2019-03-08T21:37:29.000Z | import json
from enum import Enum
from decimal import Decimal
def convert_serializable_special_cases(o):
"""
Convert an object to a type that is fairly generally serializable (e.g. json serializable).
This only handles the cases that need converting. The json module handles all the rest.
For JSON, ... | 36.815789 | 97 | 0.709078 | 187 | 1,399 | 5.219251 | 0.427807 | 0.133197 | 0.021516 | 0.033811 | 0.164959 | 0.151639 | 0.151639 | 0.151639 | 0.151639 | 0.151639 | 0 | 0.00276 | 0.223016 | 1,399 | 37 | 98 | 37.810811 | 0.895124 | 0.501787 | 0 | 0.125 | 0 | 0 | 0.06422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0.0625 | 0.4375 | 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 | 0 | 0 | 1 | 0 |
e09a68dcd0689137530fb16dbc35c12c92deee70 | 36,880 | py | Python | yggdrasil/drivers/MatlabModelDriver.py | astro-friedel/yggdrasil | 5ecbfd083240965c20c502b4795b6dc93d94b020 | [
"BSD-3-Clause"
] | null | null | null | yggdrasil/drivers/MatlabModelDriver.py | astro-friedel/yggdrasil | 5ecbfd083240965c20c502b4795b6dc93d94b020 | [
"BSD-3-Clause"
] | null | null | null | yggdrasil/drivers/MatlabModelDriver.py | astro-friedel/yggdrasil | 5ecbfd083240965c20c502b4795b6dc93d94b020 | [
"BSD-3-Clause"
] | null | null | null | import subprocess
import uuid as uuid_gen
import logging
from datetime import datetime
import os
import psutil
import warnings
import weakref
from yggdrasil import backwards, tools, platform, serialize
from yggdrasil.languages import get_language_dir
from yggdrasil.config import ygg_cfg
from yggdrasil.drivers.Interpret... | 40.086957 | 85 | 0.585195 | 4,360 | 36,880 | 4.81445 | 0.140596 | 0.076033 | 0.009718 | 0.011529 | 0.209852 | 0.146777 | 0.104235 | 0.073889 | 0.053404 | 0.0454 | 0 | 0.005067 | 0.315049 | 36,880 | 919 | 86 | 40.130577 | 0.825898 | 0.285466 | 0 | 0.226446 | 0 | 0.001653 | 0.135531 | 0.012921 | 0 | 0 | 0 | 0.002176 | 0.004959 | 1 | 0.064463 | false | 0.008264 | 0.028099 | 0 | 0.171901 | 0.023141 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e09ce665126d9b3d2e1a629422eb3823667146fa | 3,453 | py | Python | ted_sws/mapping_suite_processor/services/conceptual_mapping_generate_sparql_queries.py | meaningfy-ws/ted-sws | d1e351eacb2900f84ec7edc457e49d8202fbaff5 | [
"Apache-2.0"
] | 1 | 2022-03-21T12:32:52.000Z | 2022-03-21T12:32:52.000Z | ted_sws/mapping_suite_processor/services/conceptual_mapping_generate_sparql_queries.py | meaningfy-ws/ted-sws | d1e351eacb2900f84ec7edc457e49d8202fbaff5 | [
"Apache-2.0"
] | 24 | 2022-02-10T10:43:56.000Z | 2022-03-29T12:36:21.000Z | ted_sws/mapping_suite_processor/services/conceptual_mapping_generate_sparql_queries.py | meaningfy-ws/ted-sws | d1e351eacb2900f84ec7edc457e49d8202fbaff5 | [
"Apache-2.0"
] | null | null | null | import pathlib
from typing import Iterator
import pandas as pd
from ted_sws.resources.prefixes import PREFIXES_DEFINITIONS
import re
CONCEPTUAL_MAPPINGS_RULES_SHEET_NAME = "Rules"
RULES_SF_FIELD_ID = 'Standard Form Field ID (M)'
RULES_SF_FIELD_NAME = 'Standard Form Field Name (M)'
RULES_E_FORM_BT_ID = 'eForm BT-ID (O)... | 46.662162 | 250 | 0.705763 | 470 | 3,453 | 4.780851 | 0.261702 | 0.12016 | 0.112595 | 0.100134 | 0.223409 | 0.129506 | 0.073431 | 0.073431 | 0 | 0 | 0 | 0.000728 | 0.20417 | 3,453 | 73 | 251 | 47.30137 | 0.816958 | 0.091804 | 0 | 0 | 0 | 0.019231 | 0.18102 | 0.00845 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.096154 | 0 | 0.173077 | 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 | 0 | 0 | 1 | 0 |
e0a0f22bfda8fa26025e7c4065f5e2b941f28ecf | 3,892 | py | Python | src/controllers/serie.py | igormotta92/gta-desafio-python-flask-api | 7c048239359e8a21d777109bdb0d58b6c2c18450 | [
"MIT"
] | null | null | null | src/controllers/serie.py | igormotta92/gta-desafio-python-flask-api | 7c048239359e8a21d777109bdb0d58b6c2c18450 | [
"MIT"
] | null | null | null | src/controllers/serie.py | igormotta92/gta-desafio-python-flask-api | 7c048239359e8a21d777109bdb0d58b6c2c18450 | [
"MIT"
] | null | null | null | # https://stackoverflow.com/questions/3300464/how-can-i-get-dict-from-sqlite-query
# from flask import Flask
from flask_restful import Resource, reqparse
from src.model.serie import SerieModel
from src.server.instance import server
from db import db
# books_db = [{"id": 0, "title": "War and Peace"}, {"id": 1, "title"... | 29.938462 | 93 | 0.573741 | 442 | 3,892 | 4.975113 | 0.230769 | 0.040928 | 0.077308 | 0.060482 | 0.589359 | 0.570714 | 0.570714 | 0.570714 | 0.570714 | 0.532515 | 0 | 0.022305 | 0.308839 | 3,892 | 129 | 94 | 30.170543 | 0.795167 | 0.095067 | 0 | 0.494949 | 0 | 0 | 0.123717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.040404 | 0 | 0.242424 | 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 | 0 | 0 | 1 | 0 |
e0a7f01f58bb59078e58b00112eda388117b8294 | 1,590 | py | Python | python-3.6.0/Doc/includes/email-unpack.py | emacslisp/python | 5b89ddcc504108f0dfa1081e338e6475cf6ccd2f | [
"Apache-2.0"
] | 854 | 2017-09-11T16:42:28.000Z | 2022-03-27T14:17:09.000Z | python-3.6.0/Doc/includes/email-unpack.py | emacslisp/python | 5b89ddcc504108f0dfa1081e338e6475cf6ccd2f | [
"Apache-2.0"
] | 164 | 2017-09-24T20:40:32.000Z | 2021-10-30T01:35:05.000Z | python-3.6.0/Doc/includes/email-unpack.py | emacslisp/python | 5b89ddcc504108f0dfa1081e338e6475cf6ccd2f | [
"Apache-2.0"
] | 73 | 2017-09-13T18:07:48.000Z | 2022-03-17T13:02:29.000Z | #!/usr/bin/env python3
"""Unpack a MIME message into a directory of files."""
import os
import email
import mimetypes
from email.policy import default
from argparse import ArgumentParser
def main():
parser = ArgumentParser(description="""\
Unpack a MIME message into a directory of files.
""")
parser.add_a... | 29.444444 | 78 | 0.611321 | 195 | 1,590 | 4.876923 | 0.538462 | 0.029443 | 0.047319 | 0.037855 | 0.082019 | 0.082019 | 0.082019 | 0.082019 | 0.082019 | 0 | 0 | 0.004429 | 0.289937 | 1,590 | 53 | 79 | 30 | 0.83791 | 0.164151 | 0 | 0 | 0 | 0 | 0.193328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.027778 | 0.138889 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0a80310257c1b06b4c2e9dcba5929214b903c35 | 1,400 | py | Python | src/streetview/logging_facility.py | juliantrue/Streetview-Segmenting | 337740e6ebd2284c880ace09a11032c5914b39a4 | [
"MIT"
] | 1 | 2021-02-27T07:39:05.000Z | 2021-02-27T07:39:05.000Z | src/streetview/logging_facility.py | juliantrue/Streetview-Segmenting | 337740e6ebd2284c880ace09a11032c5914b39a4 | [
"MIT"
] | null | null | null | src/streetview/logging_facility.py | juliantrue/Streetview-Segmenting | 337740e6ebd2284c880ace09a11032c5914b39a4 | [
"MIT"
] | 1 | 2021-12-06T23:35:34.000Z | 2021-12-06T23:35:34.000Z | import sys, os
import logging
import datetime
module_name = 'Streetview_Module'
debug_mode = True
class LoggingWrapper(object):
def __init__(self, log_folder_path=None):
self.debug_mode = debug_mode
# Create logger with module name
logger = logging.getLogger(module_name)
logger.s... | 32.55814 | 93 | 0.597857 | 160 | 1,400 | 5.10625 | 0.43125 | 0.034272 | 0.047736 | 0.041616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.31 | 1,400 | 42 | 94 | 33.333333 | 0.845756 | 0.173571 | 0 | 0 | 0 | 0 | 0.073913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.111111 | 0 | 0.185185 | 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 | 0 | 0 | 1 | 0 |
e0ab0941f48814dab8b198e84e5c5153cca3e066 | 7,827 | py | Python | sandbox_api/asandbox.py | PremierLangage/sandbox-api | 7150ddcb92ac2304ff1d7b23571ec5e20459747b | [
"MIT"
] | 4 | 2020-01-27T19:06:05.000Z | 2021-06-01T08:27:30.000Z | sandbox_api/asandbox.py | qcoumes/sandbox-api | 7150ddcb92ac2304ff1d7b23571ec5e20459747b | [
"MIT"
] | null | null | null | sandbox_api/asandbox.py | qcoumes/sandbox-api | 7150ddcb92ac2304ff1d7b23571ec5e20459747b | [
"MIT"
] | null | null | null | # asandbox.py
#
# Authors:
# - Coumes Quentin <coumes.quentin@gmail.com>
"""An asynchronous implementation of the Sandbox API."""
import io
import json
import os
from contextlib import AbstractAsyncContextManager
from typing import BinaryIO, Optional, Union
import aiohttp
from .exceptions import status_exception... | 38.55665 | 94 | 0.609046 | 916 | 7,827 | 5.135371 | 0.194323 | 0.026786 | 0.035714 | 0.043367 | 0.60034 | 0.580357 | 0.564201 | 0.555272 | 0.555272 | 0.509141 | 0 | 0.007147 | 0.302798 | 7,827 | 202 | 95 | 38.747525 | 0.854865 | 0.110515 | 0 | 0.473684 | 0 | 0 | 0.028543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010526 | false | 0 | 0.084211 | 0 | 0.221053 | 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 | 0 | 0 | 1 | 0 |
e0ab889f41c5f27938c1c1068877196809ff21fd | 4,928 | py | Python | api/services/usuarios_services.py | jhonnattan123/fastapi_crud_example | 24e1c295d41ad364ef839a4756e85b5bd640385a | [
"MIT"
] | 1 | 2022-03-25T17:37:46.000Z | 2022-03-25T17:37:46.000Z | api/services/usuarios_services.py | jhonnattan123/fastapi_crud_example | 24e1c295d41ad364ef839a4756e85b5bd640385a | [
"MIT"
] | null | null | null | api/services/usuarios_services.py | jhonnattan123/fastapi_crud_example | 24e1c295d41ad364ef839a4756e85b5bd640385a | [
"MIT"
] | null | null | null | import datetime
from uuid import UUID
from api.actions import storage
from fastapi import HTTPException
from api.models.usuario import Usuario
from starlette.requests import Request
from api.dependencies import validar_email, validar_formato_fecha,validar_edad
FORMATO_FECHA = "%Y-%m-%d"
EDAD_MINIMA = 18
EDAD_MAXIMA = ... | 32.421053 | 109 | 0.584416 | 557 | 4,928 | 5.046679 | 0.197487 | 0.041622 | 0.025614 | 0.059765 | 0.630381 | 0.583067 | 0.519032 | 0.433298 | 0.433298 | 0.433298 | 0 | 0.007101 | 0.342735 | 4,928 | 152 | 110 | 32.421053 | 0.860759 | 0.199269 | 0 | 0.582278 | 0 | 0 | 0.092473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063291 | false | 0 | 0.088608 | 0 | 0.227848 | 0.063291 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e0ad08c2a04080e6246b307168d37bc9b104e50c | 10,204 | py | Python | certau/util/taxii/client.py | thisismyrobot/cti-toolkit | faf6e912af69376f5c55902c1592f7eeb0ce03dd | [
"BSD-3-Clause"
] | 12 | 2016-07-11T07:53:05.000Z | 2021-07-19T12:20:21.000Z | certau/util/taxii/client.py | thisismyrobot/cti-toolkit | faf6e912af69376f5c55902c1592f7eeb0ce03dd | [
"BSD-3-Clause"
] | null | null | null | certau/util/taxii/client.py | thisismyrobot/cti-toolkit | faf6e912af69376f5c55902c1592f7eeb0ce03dd | [
"BSD-3-Clause"
] | 4 | 2016-11-13T22:38:10.000Z | 2022-01-15T08:21:15.000Z | import os
import logging
import dateutil
import pickle
from six.moves.urllib.parse import urlparse
from libtaxii import get_message_from_http_response, VID_TAXII_XML_11
from libtaxii.messages_11 import PollRequest, PollFulfillmentRequest
from libtaxii.messages_11 import PollResponse, generate_message_id
from libtaxii... | 38.217228 | 78 | 0.591141 | 1,106 | 10,204 | 5.209765 | 0.169078 | 0.024297 | 0.023429 | 0.011107 | 0.292954 | 0.219368 | 0.191947 | 0.171989 | 0.154634 | 0.137279 | 0 | 0.001782 | 0.340063 | 10,204 | 266 | 79 | 38.360902 | 0.853876 | 0.112995 | 0 | 0.237113 | 0 | 0 | 0.084712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041237 | false | 0.041237 | 0.051546 | 0.005155 | 0.123711 | 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 | 0 | 0 | 1 | 0 |
e0ada93a5debd6b2509b477f0b39c69cfae7e923 | 768 | py | Python | tutorials/registration/data.py | YipengHu/MPHY0041 | 6e9706eba2b9f9a2449539d7dea5f91dde807584 | [
"Apache-2.0"
] | 1 | 2022-02-21T23:05:49.000Z | 2022-02-21T23:05:49.000Z | tutorials/registration/data.py | YipengHu/MPHY0041 | 6e9706eba2b9f9a2449539d7dea5f91dde807584 | [
"Apache-2.0"
] | 2 | 2022-01-07T11:43:06.000Z | 2022-03-17T02:11:58.000Z | tutorials/registration/data.py | YipengHu/MPHY0041 | 6e9706eba2b9f9a2449539d7dea5f91dde807584 | [
"Apache-2.0"
] | null | null | null |
import os
import zipfile
import requests
DATA_PATH = './data'
RESULT_PATH = './result'
if not os.path.exists(DATA_PATH):
os.makedirs(DATA_PATH)
print('Downloading and extracting data...')
url = 'https://weisslab.cs.ucl.ac.uk/WEISSTeaching/datasets/-/archive/hn2dct/datasets-hn2dct.zip'
r = requests.get(url,all... | 27.428571 | 105 | 0.736979 | 119 | 768 | 4.613445 | 0.453782 | 0.07286 | 0.025501 | 0.040073 | 0.061931 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005822 | 0.105469 | 768 | 27 | 106 | 28.444444 | 0.793304 | 0 | 0 | 0 | 0 | 0.05 | 0.301173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0ae282e70b49bf571087a6d88c319ae9d3cc9d4 | 3,774 | py | Python | insights/parsers/tests/test_freeipa_healthcheck_log.py | lhuett/insights-core | 1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8 | [
"Apache-2.0"
] | null | null | null | insights/parsers/tests/test_freeipa_healthcheck_log.py | lhuett/insights-core | 1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8 | [
"Apache-2.0"
] | null | null | null | insights/parsers/tests/test_freeipa_healthcheck_log.py | lhuett/insights-core | 1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8 | [
"Apache-2.0"
] | null | null | null | import doctest
from insights.parsers import freeipa_healthcheck_log
from insights.parsers.freeipa_healthcheck_log import FreeIPAHealthCheckLog
from insights.tests import context_wrap
LONG_FREEIPA_HEALTHCHECK_LOG_OK = """
[{"source": "ipahealthcheck.ipa.roles", "check": "IPACRLManagerCheck",
"result": "SUCCESS", "uuid"... | 35.942857 | 98 | 0.673026 | 388 | 3,774 | 6.296392 | 0.25 | 0.14736 | 0.154728 | 0.056488 | 0.749488 | 0.65002 | 0.591895 | 0.591895 | 0.537863 | 0.537863 | 0 | 0.074651 | 0.183625 | 3,774 | 104 | 99 | 36.288462 | 0.718273 | 0 | 0 | 0.235955 | 0 | 0.022472 | 0.54266 | 0.163222 | 0 | 0 | 0 | 0 | 0.11236 | 1 | 0.05618 | false | 0 | 0.044944 | 0 | 0.101124 | 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 | 0 | 0 | 1 | 0 |
e0aedd632aed5a57b006b298a3c339eedfc172f6 | 3,484 | py | Python | recipes/recipes/windows_image_builder/winpe_customization.py | xswz8015/infra | f956b78ce4c39cc76acdda47601b86794ae0c1ba | [
"BSD-3-Clause"
] | null | null | null | recipes/recipes/windows_image_builder/winpe_customization.py | xswz8015/infra | f956b78ce4c39cc76acdda47601b86794ae0c1ba | [
"BSD-3-Clause"
] | 4 | 2022-03-17T18:58:21.000Z | 2022-03-17T18:58:22.000Z | recipes/recipes/windows_image_builder/winpe_customization.py | xswz8015/infra | f956b78ce4c39cc76acdda47601b86794ae0c1ba | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2021 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.
from recipe_engine import post_process
from PB.recipes.infra.windows_image_builder import windows_image_builder as wib
from PB.recipes.infra.windows_image_b... | 35.55102 | 80 | 0.705798 | 436 | 3,484 | 5.431193 | 0.364679 | 0.030405 | 0.065034 | 0.052787 | 0.108953 | 0.054476 | 0.054476 | 0.054476 | 0 | 0 | 0 | 0.026466 | 0.197474 | 3,484 | 97 | 81 | 35.917526 | 0.820458 | 0.188289 | 0 | 0 | 0 | 0 | 0.227564 | 0.136396 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.033333 | false | 0 | 0.1 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0afd7d06dd45ec0003e8757b057e5c949b8d859 | 374 | py | Python | back/lollangCompiler/main.py | wonjinYi/lollang-playground | 2df07ccc2518e6dc9f9aa00b2f38ad8d62cdb507 | [
"MIT"
] | 11 | 2022-03-12T06:41:29.000Z | 2022-03-15T06:15:52.000Z | back/lollangCompiler/main.py | wonjinYi/lollang-playground | 2df07ccc2518e6dc9f9aa00b2f38ad8d62cdb507 | [
"MIT"
] | 4 | 2022-03-14T12:01:09.000Z | 2022-03-26T20:19:52.000Z | back/lollangCompiler/main.py | wonjinYi/lollang-playground | 2df07ccc2518e6dc9f9aa00b2f38ad8d62cdb507 | [
"MIT"
] | null | null | null | from lollangCompiler.compiler import Compiler
import argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--file", required=True, help="컴파일할 파일을 선택해주세요.")
parser.add_argument("--out", default="out.py", help="목적 파이썬 파일경로를 선택해주세요")
args = parser.parse_args()
cmp... | 37.4 | 78 | 0.708556 | 47 | 374 | 5.404255 | 0.617021 | 0.110236 | 0.133858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149733 | 374 | 10 | 79 | 37.4 | 0.798742 | 0 | 0 | 0 | 0 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 | 0 | 0 | 1 | 0 |
e0b0e0083223143424e08a5e2722940882568d5e | 2,174 | py | Python | src/add_2_zip_imports.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/add_2_zip_imports.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/add_2_zip_imports.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Green Valley Belgium NV
#
# 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 appl... | 36.233333 | 117 | 0.731831 | 296 | 2,174 | 5.179054 | 0.472973 | 0.039139 | 0.03392 | 0.039139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00619 | 0.182613 | 2,174 | 59 | 118 | 36.847458 | 0.8565 | 0.278749 | 0 | 0.121212 | 0 | 0 | 0.035461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.242424 | 0 | 0.272727 | 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 | 0 | 0 | 1 | 0 |
e0b1290a0ccf26bc0c338627492bdd788761baa7 | 8,396 | py | Python | lib/galaxy/model/migrate/versions/0026_cloud_tables.py | Galaxyinternship/Galaxy | 204be086a8c16d6684584cefa9053ed7c86a1784 | [
"CC-BY-3.0"
] | null | null | null | lib/galaxy/model/migrate/versions/0026_cloud_tables.py | Galaxyinternship/Galaxy | 204be086a8c16d6684584cefa9053ed7c86a1784 | [
"CC-BY-3.0"
] | null | null | null | lib/galaxy/model/migrate/versions/0026_cloud_tables.py | Galaxyinternship/Galaxy | 204be086a8c16d6684584cefa9053ed7c86a1784 | [
"CC-BY-3.0"
] | null | null | null | """
This script adds tables needed for Galaxy cloud functionality.
"""
from __future__ import print_function
import datetime
import logging
from sqlalchemy import Boolean, Column, DateTime, ForeignKey, Integer, MetaData, Table, TEXT
now = datetime.datetime.utcnow
log = logging.getLogger( __name__ )
metadata = MetaDa... | 54.167742 | 132 | 0.488328 | 694 | 8,396 | 5.723343 | 0.168588 | 0.100705 | 0.066969 | 0.077543 | 0.501511 | 0.473061 | 0.395015 | 0.376888 | 0.353223 | 0.353223 | 0 | 0 | 0.402454 | 8,396 | 154 | 133 | 54.519481 | 0.791708 | 0.010005 | 0 | 0.422222 | 0 | 0 | 0.140644 | 0.008594 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014815 | false | 0.007407 | 0.02963 | 0 | 0.044444 | 0.014815 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e0b5c736d3e79ca55e6b015bca8f2bcfa9bec4d1 | 30,844 | py | Python | image_misc.py | frankgh/deep-visualization-toolbox | c9bb26eacae0b4d1a25d3844538c2830026add76 | [
"MIT"
] | null | null | null | image_misc.py | frankgh/deep-visualization-toolbox | c9bb26eacae0b4d1a25d3844538c2830026add76 | [
"MIT"
] | null | null | null | image_misc.py | frankgh/deep-visualization-toolbox | c9bb26eacae0b4d1a25d3844538c2830026add76 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import cv2
import matplotlib.pyplot as plt
import skimage
import skimage.io
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
from matplotlib.pyplot import cm
from mpl_toolkits.axes_grid1 import make_axes_locatable
from numpy import ... | 34.617284 | 208 | 0.57191 | 4,396 | 30,844 | 3.895814 | 0.130346 | 0.009634 | 0.016817 | 0.00654 | 0.421581 | 0.366986 | 0.317879 | 0.284713 | 0.250204 | 0.246701 | 0 | 0.041885 | 0.299475 | 30,844 | 890 | 209 | 34.65618 | 0.750729 | 0.234827 | 0 | 0.355009 | 0 | 0 | 0.031495 | 0 | 0 | 0 | 0 | 0 | 0.017575 | 1 | 0.049209 | false | 0 | 0.017575 | 0 | 0.119508 | 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 | 0 | 0 | 1 | 0 |
e0b78d074db83725adcb792c0532db942f29eb42 | 5,702 | py | Python | py/test/selenium/webdriver/common/window_tests.py | ey-advisory-technology-testing/selenium | 7e342d3b8eb913a9626475a158c4bc6ae5d68315 | [
"Apache-2.0"
] | 1 | 2020-10-06T16:55:46.000Z | 2020-10-06T16:55:46.000Z | py/test/selenium/webdriver/common/window_tests.py | ey-advisory-technology-testing/selenium | 7e342d3b8eb913a9626475a158c4bc6ae5d68315 | [
"Apache-2.0"
] | 2 | 2020-10-12T13:27:19.000Z | 2020-10-12T15:32:45.000Z | py/test/selenium/webdriver/common/window_tests.py | ey-advisory-technology-testing/selenium | 7e342d3b8eb913a9626475a158c4bc6ae5d68315 | [
"Apache-2.0"
] | 1 | 2019-03-18T14:38:08.000Z | 2019-03-18T14:38:08.000Z | # Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 38.268456 | 122 | 0.708699 | 782 | 5,702 | 4.939898 | 0.200767 | 0.046596 | 0.046596 | 0.04556 | 0.53663 | 0.528346 | 0.412374 | 0.345845 | 0.273363 | 0.234533 | 0 | 0.009344 | 0.174149 | 5,702 | 148 | 123 | 38.527027 | 0.811 | 0.518239 | 0 | 0.222222 | 0 | 0 | 0.06108 | 0 | 0 | 0 | 0 | 0 | 0.296296 | 1 | 0.111111 | false | 0 | 0.074074 | 0 | 0.185185 | 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 | 0 | 0 | 1 | 0 |
e0b811e924c93fc02a9d9d5f223ad493413f5e6c | 21,307 | py | Python | psydac/cad/geometry.py | mayuri-dhote/psydac | 01ddbe2d049a599684c45060912d01c2658160a3 | [
"MIT"
] | 5 | 2018-03-13T13:50:26.000Z | 2018-12-22T14:04:11.000Z | psydac/cad/geometry.py | mayuri-dhote/psydac | 01ddbe2d049a599684c45060912d01c2658160a3 | [
"MIT"
] | 3 | 2019-02-08T13:29:47.000Z | 2019-03-06T17:23:08.000Z | psydac/cad/geometry.py | mayuri-dhote/psydac | 01ddbe2d049a599684c45060912d01c2658160a3 | [
"MIT"
] | 1 | 2018-12-15T09:55:12.000Z | 2018-12-15T09:55:12.000Z | # coding: utf-8
#
# a Geometry class contains the list of patches and additional information about
# the topology i.e. connectivity, boundaries
# For the moment, it is used as a container, that can be loaded from a file
# (hdf5)
from itertools import product
from collections import abc
import numpy as np
import string
... | 31.659733 | 112 | 0.546487 | 2,533 | 21,307 | 4.512041 | 0.129491 | 0.008575 | 0.016799 | 0.008925 | 0.505994 | 0.474057 | 0.418497 | 0.407122 | 0.400822 | 0.366874 | 0 | 0.01093 | 0.304407 | 21,307 | 672 | 113 | 31.706845 | 0.760205 | 0.220397 | 0 | 0.386667 | 0 | 0 | 0.049562 | 0 | 0 | 0 | 0 | 0.002976 | 0.016 | 1 | 0.053333 | false | 0.005333 | 0.056 | 0.016 | 0.170667 | 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 | 0 | 0 | 1 | 0 |
e0b8df2c0cc835ac66fd2676a3d3a8a967b603f8 | 6,098 | py | Python | utils.py | ok1zjf/AMNet | 51b163eec63d6d1e2e3dbc140d19afdc7b4273ee | [
"MIT"
] | 40 | 2018-06-20T20:33:38.000Z | 2022-03-21T02:00:34.000Z | utils.py | RMSnow/AMNet-Rumor | 95321bb30a303994cfae769801207bbde91d77fb | [
"MIT"
] | 5 | 2018-07-26T17:23:07.000Z | 2020-05-05T15:30:18.000Z | utils.py | RMSnow/AMNet-Rumor | 95321bb30a303994cfae769801207bbde91d77fb | [
"MIT"
] | 10 | 2018-04-10T09:42:55.000Z | 2021-04-19T19:01:27.000Z | __author__ = 'Jiri Fajtl'
__email__ = 'ok1zjf@gmail.com'
__version__= '2.2'
__status__ = "Research"
__date__ = "28/1/2018"
__license__= "MIT License"
import os
import numpy as np
import glob
import subprocess
import platform
import sys
import pkg_resources
import torch
import PIL as Image
try:
import cv2
except:... | 30.49 | 120 | 0.611512 | 774 | 6,098 | 4.51938 | 0.250646 | 0.044025 | 0.017153 | 0.012007 | 0.218982 | 0.173242 | 0.156089 | 0.132075 | 0.094911 | 0.094911 | 0 | 0.009991 | 0.261397 | 6,098 | 200 | 121 | 30.49 | 0.766652 | 0.03083 | 0 | 0.095238 | 0 | 0 | 0.125804 | 0.020996 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068027 | false | 0.006803 | 0.068027 | 0.013605 | 0.231293 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0b9af8b61e8657e680602511286b7396f0d35fe | 1,075 | py | Python | axelrod/tests/strategies/test_mystrategy.py | AleksaLuka/Axelrod | 5f2fefcb2bf8f371ef489382f90f116b46ac1023 | [
"MIT"
] | null | null | null | axelrod/tests/strategies/test_mystrategy.py | AleksaLuka/Axelrod | 5f2fefcb2bf8f371ef489382f90f116b46ac1023 | [
"MIT"
] | null | null | null | axelrod/tests/strategies/test_mystrategy.py | AleksaLuka/Axelrod | 5f2fefcb2bf8f371ef489382f90f116b46ac1023 | [
"MIT"
] | null | null | null | import axelrod as axl
from .test_player import TestPlayer
C, D = axl.Action.C, axl.Action.D
class TestMyStrategy(TestPlayer):
name = "MyStrategy"
player = axl.mystrategy
expected_classifier = {
"memory_depth": 1,
"stochastic": False,
"long_run_time": False,
"inspects_sour... | 28.289474 | 71 | 0.563721 | 125 | 1,075 | 4.712 | 0.352 | 0.03056 | 0.03056 | 0.149406 | 0.455008 | 0.356537 | 0.312394 | 0.251273 | 0.251273 | 0.251273 | 0 | 0.006631 | 0.298605 | 1,075 | 37 | 72 | 29.054054 | 0.774536 | 0.019535 | 0 | 0.193548 | 0 | 0 | 0.090304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.064516 | 0 | 0.225806 | 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 | 0 | 0 | 1 | 0 |
e0be43ac7d66987096cd0a5bf59621233ca9d1a8 | 37,056 | py | Python | src/audio_korpora_pipeline/inputadapter/adapters.py | WernerDreier/audio-korpora-pipeline | ac171cdfb0663c7b6250c06cc9c70a951b908251 | [
"MIT"
] | 1 | 2020-09-11T05:27:58.000Z | 2020-09-11T05:27:58.000Z | src/audio_korpora_pipeline/inputadapter/adapters.py | WernerDreier/audio-korpora-pipeline | ac171cdfb0663c7b6250c06cc9c70a951b908251 | [
"MIT"
] | null | null | null | src/audio_korpora_pipeline/inputadapter/adapters.py | WernerDreier/audio-korpora-pipeline | ac171cdfb0663c7b6250c06cc9c70a951b908251 | [
"MIT"
] | null | null | null | import concurrent
import os
import re
import shutil
import xml.etree.ElementTree as ET # TODO do we have this as requirement?
from concurrent.futures import as_completed
from concurrent.futures._base import as_completed
from pathlib import Path
import ffmpeg
import pandas as pd
import webrtcvad
from audio_korpora_pi... | 48.312907 | 152 | 0.725658 | 3,491 | 37,056 | 7.576626 | 0.185907 | 0.018904 | 0.019282 | 0.014518 | 0.278034 | 0.233611 | 0.192741 | 0.17569 | 0.16276 | 0.15913 | 0 | 0.005745 | 0.178028 | 37,056 | 766 | 153 | 48.375979 | 0.862602 | 0.037106 | 0 | 0.245161 | 0 | 0.001613 | 0.106961 | 0.014984 | 0 | 0 | 0 | 0.002611 | 0 | 1 | 0.112903 | false | 0.009677 | 0.022581 | 0.009677 | 0.275806 | 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 | 0 | 0 | 1 | 0 |
e0beee4ee459f085172a97b3c88ddde9059df51b | 14,085 | py | Python | development/multiImage_pytorch/experiment.py | anaikawadi/svbrdf-estimation | c977aa8448b2131af3960895afd1105d29e5484a | [
"MIT"
] | null | null | null | development/multiImage_pytorch/experiment.py | anaikawadi/svbrdf-estimation | c977aa8448b2131af3960895afd1105d29e5484a | [
"MIT"
] | null | null | null | development/multiImage_pytorch/experiment.py | anaikawadi/svbrdf-estimation | c977aa8448b2131af3960895afd1105d29e5484a | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import math
import shutil
import torch
from accelerate import Accelerator
from tensorboardX import SummaryWriter
from cli import parse_args
from dataset import SvbrdfDataset
from losses import MixedLoss, MixedLoss2, MixedLoss3
from models import MultiViewModel, SingleViewModel
from pathl... | 34.437653 | 244 | 0.637061 | 1,956 | 14,085 | 4.443763 | 0.166155 | 0.051772 | 0.069029 | 0.051542 | 0.518178 | 0.503106 | 0.431661 | 0.424528 | 0.396341 | 0.396341 | 0 | 0.022544 | 0.209514 | 14,085 | 408 | 245 | 34.522059 | 0.758128 | 0.177778 | 0 | 0.436508 | 0 | 0 | 0.133664 | 0.098443 | 0 | 0 | 0 | 0.002451 | 0 | 1 | 0.007937 | false | 0 | 0.071429 | 0.003968 | 0.087302 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
e0c1ea88aed755291844e1e991a6d2f5cdb34cdd | 8,924 | py | Python | advent_of_code/2019/11_space_police/aoc_2019_11.py | thanosa/coding-challenges | a10b0de51da076a4bcc798b4a3d5a08e29c5af01 | [
"MIT"
] | null | null | null | advent_of_code/2019/11_space_police/aoc_2019_11.py | thanosa/coding-challenges | a10b0de51da076a4bcc798b4a3d5a08e29c5af01 | [
"MIT"
] | null | null | null | advent_of_code/2019/11_space_police/aoc_2019_11.py | thanosa/coding-challenges | a10b0de51da076a4bcc798b4a3d5a08e29c5af01 | [
"MIT"
] | null | null | null | ''' Advent of code 2019 Day 11 - Space police '''
from typing import NamedTuple
from enum import Enum
INPUT_FILE=__file__.replace('.py', '.dat')
def to_number(digits: list) -> int:
return int(''.join(map(str, digits)))
def to_list(number: int) -> list:
return [int(i) for i in str(number)]
... | 29.647841 | 91 | 0.438256 | 1,019 | 8,924 | 3.776251 | 0.155054 | 0.077963 | 0.053015 | 0.074844 | 0.442827 | 0.423337 | 0.420218 | 0.337058 | 0.337058 | 0.337058 | 0 | 0.034712 | 0.444756 | 8,924 | 300 | 92 | 29.746667 | 0.741877 | 0.039892 | 0 | 0.435556 | 0 | 0 | 0.02171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035556 | false | 0 | 0.008889 | 0.013333 | 0.111111 | 0.026667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0c4cc4a632d487744596824e2338a9f0399ee17 | 814 | py | Python | nicos_mlz/mira/setups/mezeiflip.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 12 | 2019-11-06T15:40:36.000Z | 2022-01-01T16:23:00.000Z | nicos_mlz/mira/setups/mezeiflip.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 91 | 2020-08-18T09:20:26.000Z | 2022-02-01T11:07:14.000Z | nicos_mlz/mira/setups/mezeiflip.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 6 | 2020-01-11T10:52:30.000Z | 2022-02-25T12:35:23.000Z | description = 'Mezei spin flipper using TTI power supply'
group = 'optional'
tango_base = 'tango://miractrl.mira.frm2:10000/mira/'
devices = dict(
dct1 = device('nicos.devices.entangle.PowerSupply',
description = 'current in first channel of supply (flipper current)',
tangodevice = tango_base + 't... | 32.56 | 83 | 0.63145 | 88 | 814 | 5.806818 | 0.545455 | 0.052838 | 0.105675 | 0.101761 | 0.422701 | 0.223092 | 0.223092 | 0.223092 | 0 | 0 | 0 | 0.035948 | 0.248157 | 814 | 24 | 84 | 33.916667 | 0.79902 | 0 | 0 | 0.318182 | 0 | 0 | 0.460688 | 0.174447 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0c51c1373dbb36d56025f69dde451b4d208bab8 | 16,817 | py | Python | mars/learn/cluster/_k_means_init.py | hxri/mars | f7864f00911883b94800b63856f0e57648d3d9b4 | [
"Apache-2.0"
] | 2,413 | 2018-12-06T09:37:11.000Z | 2022-03-30T15:47:39.000Z | mars/learn/cluster/_k_means_init.py | hxri/mars | f7864f00911883b94800b63856f0e57648d3d9b4 | [
"Apache-2.0"
] | 1,335 | 2018-12-07T03:06:18.000Z | 2022-03-31T11:45:57.000Z | mars/learn/cluster/_k_means_init.py | hxri/mars | f7864f00911883b94800b63856f0e57648d3d9b4 | [
"Apache-2.0"
] | 329 | 2018-12-07T03:12:41.000Z | 2022-03-29T21:49:57.000Z | # Copyright 1999-2021 Alibaba Group Holding Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 37.288248 | 94 | 0.634477 | 2,115 | 16,817 | 4.770213 | 0.169267 | 0.034097 | 0.055407 | 0.01685 | 0.384577 | 0.316186 | 0.267916 | 0.256021 | 0.245019 | 0.21905 | 0 | 0.007272 | 0.272225 | 16,817 | 450 | 95 | 37.371111 | 0.81706 | 0.16846 | 0 | 0.364548 | 0 | 0 | 0.032209 | 0.009452 | 0 | 0 | 0 | 0 | 0.006689 | 1 | 0.100334 | false | 0 | 0.060201 | 0.040134 | 0.294314 | 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 | 0 | 0 | 1 | 0 |
e0c54a43da9d2d5736bbbaf25b05dc7746829f11 | 2,157 | py | Python | wikipedia_parser/infobox/wikitext_parser.py | ojones/wikipedia_parser | db548290fbc392299bba8adfda9fe18baa1e66fe | [
"MIT"
] | 9 | 2016-02-24T20:09:26.000Z | 2019-03-10T11:33:34.000Z | wikipedia_parser/infobox/wikitext_parser.py | ojones/wikipedia_parser | db548290fbc392299bba8adfda9fe18baa1e66fe | [
"MIT"
] | 1 | 2019-02-13T17:38:50.000Z | 2019-02-13T17:38:50.000Z | wikipedia_parser/infobox/wikitext_parser.py | ojones/wikipedia_parser | db548290fbc392299bba8adfda9fe18baa1e66fe | [
"MIT"
] | 1 | 2016-04-05T05:28:51.000Z | 2016-04-05T05:28:51.000Z | import re
from wikipedia_parser.infobox import clean_text as clean_help
from wikipedia_parser.infobox import wikitext_helpers as wtext_help
from wikipedia_parser.third_party_adapters import parserfromhell_adapter as adapter
__author__ = 'oswaldjones'
def get_simple_text(wtext, key, clean=True):
text = None
... | 30.380282 | 90 | 0.592953 | 276 | 2,157 | 4.391304 | 0.23913 | 0.089109 | 0.049505 | 0.056931 | 0.615512 | 0.443894 | 0.443894 | 0.443894 | 0.443894 | 0.391089 | 0 | 0.006077 | 0.313398 | 2,157 | 70 | 91 | 30.814286 | 0.812289 | 0.052388 | 0 | 0.380952 | 0 | 0 | 0.027014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.190476 | 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 | 0 | 0 | 1 | 0 |
e0c98eb51566d8d4d1edda624372a00af1731e11 | 1,339 | py | Python | src/video_transcoding/defaults.py | tumb1er/django-video-transcoding | 54c85fb4a3b58b3f3b82e461b2f54f3c8dd5fcc6 | [
"MIT"
] | 21 | 2020-02-07T17:40:16.000Z | 2021-09-02T18:56:21.000Z | src/video_transcoding/defaults.py | just-work/django-video-transcoding | c88d88de8301cd65eda95db941d72028aac57aa9 | [
"MIT"
] | 184 | 2020-02-09T10:46:17.000Z | 2022-03-28T00:53:04.000Z | src/video_transcoding/defaults.py | just-work/django-video-transcoding | c88d88de8301cd65eda95db941d72028aac57aa9 | [
"MIT"
] | 6 | 2020-02-07T13:58:33.000Z | 2021-07-27T16:24:56.000Z | from os import getenv as e
from kombu import Queue
CELERY_APP_NAME = 'video_transcoding'
VIDEO_TRANSCODING_CELERY_CONF = {
'broker_url': e('VIDEO_TRANSCODING_CELERY_BROKER_URL',
'amqp://guest:guest@rabbitmq:5672/'),
'result_backend': e('VIDEO_TRANSCODING_CELERY_RESULT_BACKEND', None),
... | 31.139535 | 75 | 0.726662 | 175 | 1,339 | 5.228571 | 0.497143 | 0.039344 | 0.071038 | 0.059016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019366 | 0.151606 | 1,339 | 42 | 76 | 31.880952 | 0.786092 | 0.168783 | 0 | 0 | 0 | 0 | 0.472875 | 0.274864 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 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 | 0 | 0 | 1 | 0 |
e0c9c572e013959cc1791ab9408e2433e6b096c4 | 5,104 | py | Python | wordSenseByContext.py | jmboettcher/fall2019_sentiment_in_alternative_words | d88fd0ed7d1396bb3755431d6aff85b880ffe149 | [
"Apache-2.0"
] | null | null | null | wordSenseByContext.py | jmboettcher/fall2019_sentiment_in_alternative_words | d88fd0ed7d1396bb3755431d6aff85b880ffe149 | [
"Apache-2.0"
] | null | null | null | wordSenseByContext.py | jmboettcher/fall2019_sentiment_in_alternative_words | d88fd0ed7d1396bb3755431d6aff85b880ffe149 | [
"Apache-2.0"
] | null | null | null | from collections import defaultdict
from nltk.tokenize import sent_tokenize
from nltk.corpus import wordnet as wn
from nltk.corpus import semcor as sc
from nltk.corpus import stopwords
import mywordtokenizer
class SenseContextWordDict:
def __init__(self):
self.dictionary = self._create_dictionary()
d... | 36.985507 | 125 | 0.587187 | 464 | 5,104 | 6.37069 | 0.303879 | 0.032476 | 0.031123 | 0.020298 | 0.194181 | 0.159675 | 0.159675 | 0.159675 | 0.122463 | 0.122463 | 0 | 0.008037 | 0.317398 | 5,104 | 137 | 126 | 37.255474 | 0.840413 | 0.063284 | 0 | 0.179775 | 0 | 0 | 0.017418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089888 | false | 0.011236 | 0.067416 | 0 | 0.224719 | 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 | 0 | 0 | 1 | 0 |
e0c9fc5ceee51e40ba7758705226014b71dd06d7 | 3,138 | py | Python | paymentmethods/stripejs/tests.py | tjwalch/django-restshop | 569b57a5694e76a365556d7c4c9a97dd293d96c6 | [
"MIT"
] | null | null | null | paymentmethods/stripejs/tests.py | tjwalch/django-restshop | 569b57a5694e76a365556d7c4c9a97dd293d96c6 | [
"MIT"
] | null | null | null | paymentmethods/stripejs/tests.py | tjwalch/django-restshop | 569b57a5694e76a365556d7c4c9a97dd293d96c6 | [
"MIT"
] | null | null | null | import decimal
from unittest import mock
from django.conf import settings
from django.test import modify_settings
from rest_framework import test
from rest_framework.reverse import reverse
import stripe
from restshop import serializers
from restshop.models import Order
from paymentmethods.stripejs.models import Strip... | 31.069307 | 78 | 0.593372 | 321 | 3,138 | 5.697819 | 0.376947 | 0.039366 | 0.029524 | 0.037726 | 0.091853 | 0.091853 | 0.091853 | 0.091853 | 0.091853 | 0.091853 | 0 | 0.024102 | 0.299235 | 3,138 | 100 | 79 | 31.38 | 0.80764 | 0 | 0 | 0.10989 | 0 | 0 | 0.070427 | 0.017208 | 0 | 0 | 0 | 0 | 0.120879 | 1 | 0.054945 | false | 0 | 0.131868 | 0.010989 | 0.208791 | 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 | 0 | 0 | 1 | 0 |
e0cbe510c57f6be47472391d90b71a872f267467 | 9,887 | py | Python | qutip/graph.py | anubhavvardhan/qutip | daf384840efbb44b86e39d8bda64d907d9f6b47f | [
"BSD-3-Clause"
] | null | null | null | qutip/graph.py | anubhavvardhan/qutip | daf384840efbb44b86e39d8bda64d907d9f6b47f | [
"BSD-3-Clause"
] | null | null | null | qutip/graph.py | anubhavvardhan/qutip | daf384840efbb44b86e39d8bda64d907d9f6b47f | [
"BSD-3-Clause"
] | null | null | null | # This file is part of QuTiP: Quantum Toolbox in Python.
#
# Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
... | 33.402027 | 79 | 0.670982 | 1,374 | 9,887 | 4.764192 | 0.27147 | 0.023831 | 0.019248 | 0.016499 | 0.346166 | 0.309349 | 0.303086 | 0.277116 | 0.277116 | 0.25634 | 0 | 0.006818 | 0.243451 | 9,887 | 295 | 80 | 33.515254 | 0.868316 | 0.645494 | 0 | 0.46875 | 0 | 0 | 0.179359 | 0.033808 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.046875 | 0 | 0.234375 | 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 | 0 | 0 | 1 | 0 |
e0d0af5cc2acc44430f9c71988996b1fd3a8a91a | 8,473 | py | Python | src/train_vae.py | katnoria/world-models | 6584f35fa9508c991050ddc9c17f5862a00008fe | [
"Apache-2.0"
] | null | null | null | src/train_vae.py | katnoria/world-models | 6584f35fa9508c991050ddc9c17f5862a00008fe | [
"Apache-2.0"
] | null | null | null | src/train_vae.py | katnoria/world-models | 6584f35fa9508c991050ddc9c17f5862a00008fe | [
"Apache-2.0"
] | null | null | null | # class Encoder:
# pass
# class Decoder:
# pass
# class VariationAutoEncoder:
# pass
import os
os.environ['CUDA_VISIBLE_DEVICES'] = "0"
import pickle
import logging
from glob import glob
import numpy as np
from time import time
from datetime import datetime
from PIL import Image
import matplotlib.pyplot ... | 36.521552 | 130 | 0.690901 | 1,153 | 8,473 | 4.928881 | 0.248916 | 0.032905 | 0.025339 | 0.03009 | 0.208869 | 0.144818 | 0.099067 | 0.099067 | 0.055077 | 0.055077 | 0 | 0.020651 | 0.177033 | 8,473 | 231 | 131 | 36.679654 | 0.79435 | 0.148708 | 0 | 0.066667 | 0 | 0 | 0.085053 | 0.011433 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.086667 | 0.006667 | 0.22 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e0d3c8c44e9a78dfdefd3d78c0e47b2746c32032 | 5,233 | py | Python | multitidal/client_lib.py | xa4a/multitidal | 26f757f12464e8f935c0389c6356b97cfaa9f03f | [
"MIT"
] | 2 | 2021-12-01T05:39:05.000Z | 2021-12-07T07:26:16.000Z | multitidal/client_lib.py | xa4a/multitidal | 26f757f12464e8f935c0389c6356b97cfaa9f03f | [
"MIT"
] | 1 | 2021-12-02T03:54:16.000Z | 2021-12-02T03:54:16.000Z | multitidal/client_lib.py | parabolala/multitidal | 26f757f12464e8f935c0389c6356b97cfaa9f03f | [
"MIT"
] | null | null | null | import asyncio
import json
import os
import pty
import shutil
import sys
import tty
import termios
import time
import threading
import tornado.iostream
from tornado.ioloop import IOLoop
from tornado.websocket import websocket_connect
ioloop = tornado.ioloop.IOLoop.instance()
SSH_LOGIN = "root"
SSH_PASSWORD = "algor... | 28.911602 | 73 | 0.549016 | 634 | 5,233 | 4.399054 | 0.26183 | 0.03227 | 0.017928 | 0.048763 | 0.222302 | 0.17067 | 0.120473 | 0.058802 | 0.034421 | 0.034421 | 0 | 0.008331 | 0.334798 | 5,233 | 180 | 74 | 29.072222 | 0.792876 | 0.051978 | 0 | 0.182432 | 0 | 0 | 0.115556 | 0.016162 | 0 | 0 | 0 | 0 | 0.013514 | 1 | 0.027027 | false | 0.040541 | 0.087838 | 0 | 0.155405 | 0.135135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e0d425874c7577ffb290b5d9bb87cc599dbdcb1a | 2,790 | py | Python | scrapy/contracts/default.py | zyuchuan/scrapy | ce24f53957b41877319a5ffc6cf26f0a18baaec2 | [
"BSD-3-Clause"
] | null | null | null | scrapy/contracts/default.py | zyuchuan/scrapy | ce24f53957b41877319a5ffc6cf26f0a18baaec2 | [
"BSD-3-Clause"
] | null | null | null | scrapy/contracts/default.py | zyuchuan/scrapy | ce24f53957b41877319a5ffc6cf26f0a18baaec2 | [
"BSD-3-Clause"
] | null | null | null | import json
from scrapy.item import BaseItem
from scrapy.http import Request
from scrapy.exceptions import ContractFail
from scrapy.contracts import Contract
# contracts
class UrlContract(Contract):
""" Contract to set the url of the request (mandatory)
@url http://scrapy.org
"""
name = 'url'
... | 26.074766 | 70 | 0.576344 | 330 | 2,790 | 4.766667 | 0.306061 | 0.050858 | 0.045772 | 0.026701 | 0.164018 | 0.102988 | 0.072473 | 0 | 0 | 0 | 0 | 0.009958 | 0.316129 | 2,790 | 106 | 71 | 26.320755 | 0.814465 | 0.178136 | 0 | 0.206897 | 0 | 0 | 0.055093 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 1 | 0.086207 | false | 0 | 0.086207 | 0 | 0.362069 | 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 | 0 | 0 | 1 | 0 |
e0d6966f0f4824c8705c24412698017423279002 | 2,193 | py | Python | scrapy_template/scrapy_template/pipelines.py | kk0501/spider | 404540a76922885f9dd12f9a513f5ec88b0d2072 | [
"MIT"
] | null | null | null | scrapy_template/scrapy_template/pipelines.py | kk0501/spider | 404540a76922885f9dd12f9a513f5ec88b0d2072 | [
"MIT"
] | null | null | null | scrapy_template/scrapy_template/pipelines.py | kk0501/spider | 404540a76922885f9dd12f9a513f5ec88b0d2072 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
from scrapy.exceptions import DropItem
from hashlib import md5
from scrapy import log
from twisted.enterprise import adbapi
fro... | 34.265625 | 85 | 0.579115 | 257 | 2,193 | 4.828794 | 0.44358 | 0.00967 | 0.012087 | 0.012893 | 0.005641 | 0.005641 | 0 | 0 | 0 | 0 | 0 | 0.003876 | 0.294118 | 2,193 | 64 | 86 | 34.265625 | 0.797804 | 0.082535 | 0 | 0.04 | 0 | 0.02 | 0.184853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.02 | 0.1 | 0.02 | 0.32 | 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 | 0 | 0 | 1 | 0 |
e0d7c84ced6a300c631d0fec1f9dd425ca8e581c | 2,726 | py | Python | run_training_size_bootstrap.py | willferreira/multilabel-stance-detection | ddc0ed9caa26b63f40e89a377f1738e83fcb7724 | [
"MIT"
] | null | null | null | run_training_size_bootstrap.py | willferreira/multilabel-stance-detection | ddc0ed9caa26b63f40e89a377f1738e83fcb7724 | [
"MIT"
] | null | null | null | run_training_size_bootstrap.py | willferreira/multilabel-stance-detection | ddc0ed9caa26b63f40e89a377f1738e83fcb7724 | [
"MIT"
] | null | null | null | import click
import pickle
import numpy as np
from collections import defaultdict
from utils import reset_seeds, get_dataset, load_embeddings
from mlp_multilabel_wrapper import PowersetKerasWrapper, MultiOutputKerasWrapper
from mlp_utils import CrossLabelDependencyLoss
def get_random_sample(dataset_name='bbc', train_... | 41.938462 | 104 | 0.705796 | 387 | 2,726 | 4.625323 | 0.260982 | 0.036872 | 0.026816 | 0.020112 | 0.274302 | 0.217877 | 0.162011 | 0.072626 | 0.072626 | 0.041341 | 0 | 0.008945 | 0.179751 | 2,726 | 64 | 105 | 42.59375 | 0.791592 | 0.012106 | 0 | 0 | 0 | 0 | 0.063174 | 0.011148 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.148936 | 0.021277 | 0.255319 | 0.06383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e0d8a4edfd7425e0db4ca0bd8268ff4b94c0916a | 1,268 | py | Python | code/evaluate.py | Shuailong/CCGSupertagging | 891a6a477a4a05daeb847d4a4c33a1bc929d97b2 | [
"MIT"
] | 3 | 2018-11-09T04:33:12.000Z | 2021-06-04T04:23:07.000Z | code/evaluate.py | Shuailong/CCGSupertagging | 891a6a477a4a05daeb847d4a4c33a1bc929d97b2 | [
"MIT"
] | 2 | 2017-03-13T02:56:09.000Z | 2019-07-27T02:47:29.000Z | code/evaluate.py | Shuailong/CCGSupertagging | 891a6a477a4a05daeb847d4a4c33a1bc929d97b2 | [
"MIT"
] | 1 | 2020-11-25T06:09:33.000Z | 2020-11-25T06:09:33.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
evaluate.py
Created by Shuailong on 2016-12-2.
Evaluate model accuracy on test set.
"""
from __future__ import print_function
from time import time
from keras.models import load_model
import os
from utils import true_accuracy
from dataset import get_data
from train imp... | 25.877551 | 108 | 0.645899 | 170 | 1,268 | 4.523529 | 0.423529 | 0.045514 | 0.039012 | 0.026008 | 0.06502 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012308 | 0.231073 | 1,268 | 48 | 109 | 26.416667 | 0.77641 | 0.096215 | 0 | 0 | 0 | 0 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.285714 | 0 | 0.321429 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0d98d3fbe99c6483d07cbca24e2f2d19d6ccfe4 | 4,691 | py | Python | solum/api/controllers/v1/assembly.py | devdattakulkarni/test-solum | 4e9ddb82d217116aa2c30a6f2581080cbdfae325 | [
"Apache-2.0"
] | null | null | null | solum/api/controllers/v1/assembly.py | devdattakulkarni/test-solum | 4e9ddb82d217116aa2c30a6f2581080cbdfae325 | [
"Apache-2.0"
] | null | null | null | solum/api/controllers/v1/assembly.py | devdattakulkarni/test-solum | 4e9ddb82d217116aa2c30a6f2581080cbdfae325 | [
"Apache-2.0"
] | null | null | null | # Copyright 2013 - Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 39.420168 | 77 | 0.675336 | 566 | 4,691 | 5.413428 | 0.305654 | 0.032311 | 0.039164 | 0.052872 | 0.461815 | 0.421997 | 0.389687 | 0.389687 | 0.361619 | 0.359661 | 0 | 0.005884 | 0.239181 | 4,691 | 118 | 78 | 39.754237 | 0.85262 | 0.186741 | 0 | 0.3125 | 0 | 0 | 0.025232 | 0 | 0 | 0 | 0 | 0.008475 | 0 | 1 | 0.1 | false | 0 | 0.1375 | 0 | 0.35 | 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 | 0 | 0 | 1 | 0 |
e0dbf6e6b17f8d31b9acfaa5334ab33b086914a3 | 1,379 | py | Python | src/agility/usc/settings.py | bobbyluig/6.A01 | 16dd8963951eca4a1312a15c216d0cc3c117d063 | [
"MIT"
] | null | null | null | src/agility/usc/settings.py | bobbyluig/6.A01 | 16dd8963951eca4a1312a15c216d0cc3c117d063 | [
"MIT"
] | null | null | null | src/agility/usc/settings.py | bobbyluig/6.A01 | 16dd8963951eca4a1312a15c216d0cc3c117d063 | [
"MIT"
] | 1 | 2021-02-24T07:13:01.000Z | 2021-02-24T07:13:01.000Z | from agility.usc.enumeration import uscSerialMode, ChannelMode, HomeMode
from agility.usc.reader import BytecodeReader
class UscSettings:
def __init__(self):
self.servosAvailable = 6
self.servoPeriod = 156
self.miniMaestroServoPeriod = 80000
self.servoMultiplier = 1
self.se... | 29.340426 | 73 | 0.636693 | 138 | 1,379 | 6.23913 | 0.485507 | 0.046458 | 0.03252 | 0.034843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041837 | 0.28934 | 1,379 | 46 | 74 | 29.978261 | 0.836735 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0.025 | 0.225 | 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 | 0 | 0 | 1 | 0 |
e0e0334b9f18fc8e44cf7c368bc6aba17a751a2d | 1,123 | py | Python | app/app8_18mix/h_noSeqSearch.py | ameenetemady/DeepPep | 121826309667f1290fa1121746a2992943d0927b | [
"Apache-2.0"
] | 1 | 2020-05-30T06:01:50.000Z | 2020-05-30T06:01:50.000Z | app/app8_18mix/h_noSeqSearch.py | ameenetemady/DeepPep | 121826309667f1290fa1121746a2992943d0927b | [
"Apache-2.0"
] | null | null | null | app/app8_18mix/h_noSeqSearch.py | ameenetemady/DeepPep | 121826309667f1290fa1121746a2992943d0927b | [
"Apache-2.0"
] | 1 | 2019-10-20T21:11:48.000Z | 2019-10-20T21:11:48.000Z | import sys
import csv
import os
sys.path.append('../../')
import h_lib
import h_lib_noSeqSearch
in_strFastaFilename = '{!s}/data/protein/18mix/18mix_db_plus_contaminants_20081209.fasta'.format(os.environ.get('HOME'))
in_strPeptideFilename = '{!s}/data/protein/18mix/18_mixtures_peptide_identification.txt'.format(os.en... | 38.724138 | 120 | 0.782725 | 146 | 1,123 | 5.808219 | 0.513699 | 0.037736 | 0.049528 | 0.040094 | 0.051887 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022439 | 0.087266 | 1,123 | 28 | 121 | 40.107143 | 0.804878 | 0.145147 | 0 | 0 | 0 | 0 | 0.216527 | 0.132845 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e0e04165ecde0d603bc47e0b5c5deaa17a56ab3a | 700 | py | Python | normalizer.py | ashokn414/python_floating_conversions | 7a132c703272e6651daf555816171f04ee5b5555 | [
"Apache-2.0"
] | null | null | null | normalizer.py | ashokn414/python_floating_conversions | 7a132c703272e6651daf555816171f04ee5b5555 | [
"Apache-2.0"
] | null | null | null | normalizer.py | ashokn414/python_floating_conversions | 7a132c703272e6651daf555816171f04ee5b5555 | [
"Apache-2.0"
] | null | null | null | # for normalization we need to have the maxima of x and y values with the help of which
# we can normalise the given values
import csv
filename = "values.csv"
fields = []
rows = []
with open(filename,'r') as csvfile:
reader = csv.reader(csvfile)
fields = next(reader)
for row in reader:
... | 26.923077 | 89 | 0.615714 | 115 | 700 | 3.747826 | 0.478261 | 0.034803 | 0.037123 | 0.083527 | 0.055684 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005758 | 0.255714 | 700 | 26 | 90 | 26.923077 | 0.821497 | 0.291429 | 0 | 0 | 0 | 0 | 0.164882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0e23eae8f30892f74e1745a5cf500f5f0c7d685 | 3,477 | py | Python | pygdp/fwgs.py | jiwalker-usgs/pyGDP | dca4789fb0c53c889d6fa1b38ec867bc939a2d04 | [
"CC0-1.0"
] | null | null | null | pygdp/fwgs.py | jiwalker-usgs/pyGDP | dca4789fb0c53c889d6fa1b38ec867bc939a2d04 | [
"CC0-1.0"
] | null | null | null | pygdp/fwgs.py | jiwalker-usgs/pyGDP | dca4789fb0c53c889d6fa1b38ec867bc939a2d04 | [
"CC0-1.0"
] | null | null | null | from pygdp import _execute_request
from pygdp import _get_geotype
from owslib.util import log
def submitFeatureWeightedGridStatistics(geoType, dataSetURI, varID, startTime, endTime, attribute, value, gmlIDs,
verbose, coverage, delim, stat, grpby, timeStep, summAttr, weighted, WF... | 39.965517 | 157 | 0.595628 | 370 | 3,477 | 5.454054 | 0.372973 | 0.023786 | 0.035679 | 0.051536 | 0.170466 | 0.170466 | 0.170466 | 0.135778 | 0.135778 | 0.135778 | 0 | 0.00608 | 0.29048 | 3,477 | 86 | 158 | 40.430233 | 0.811917 | 0.094334 | 0 | 0.112903 | 0 | 0.032258 | 0.225257 | 0.06491 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016129 | false | 0 | 0.048387 | 0 | 0.096774 | 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 | 0 | 0 | 1 | 0 |
e0e3e3c9acda1bb91d2a503dbb2cdcf350023dcd | 45,861 | py | Python | wizbot.py | Wizard-Of-Chaos/WizardBot | 75a2e482c7d7921e9a06dde4d210c68330c6fbe2 | [
"MIT"
] | null | null | null | wizbot.py | Wizard-Of-Chaos/WizardBot | 75a2e482c7d7921e9a06dde4d210c68330c6fbe2 | [
"MIT"
] | null | null | null | wizbot.py | Wizard-Of-Chaos/WizardBot | 75a2e482c7d7921e9a06dde4d210c68330c6fbe2 | [
"MIT"
] | null | null | null | #WIZARD BOT IS LIVE
import calendar
import discord as dc
from discord.ext.commands import Bot
from discord.ext import commands
from functools import partial
import asyncio as aio
import time
from random import randint
from datetime import datetime
from discord.ext import commands
from guildconfig import GuildConfig
f... | 48.788298 | 151 | 0.536556 | 5,673 | 45,861 | 4.26159 | 0.121805 | 0.053938 | 0.080907 | 0.051084 | 0.553069 | 0.517704 | 0.48362 | 0.452308 | 0.442422 | 0.432081 | 0 | 0.021031 | 0.349927 | 45,861 | 940 | 152 | 48.788298 | 0.78989 | 0.070256 | 0 | 0.496871 | 0 | 0.006258 | 0.209737 | 0.003454 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035044 | false | 0.002503 | 0.015019 | 0.015019 | 0.093867 | 0.002503 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e0e4e551502750847910375c9545b7c251613085 | 2,775 | py | Python | ProyectoDAI/settings.py | javiergarridomellado/proyectodai | 64944d10f543c3094630056906b5f101a73bdd7b | [
"Apache-2.0"
] | 1 | 2019-08-21T17:21:13.000Z | 2019-08-21T17:21:13.000Z | ProyectoDAI/settings.py | javiergarridomellado/proyectodai | 64944d10f543c3094630056906b5f101a73bdd7b | [
"Apache-2.0"
] | null | null | null | ProyectoDAI/settings.py | javiergarridomellado/proyectodai | 64944d10f543c3094630056906b5f101a73bdd7b | [
"Apache-2.0"
] | null | null | null | """
Django settings for TusPachangas project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
import django
import dj_database_url
# Build paths inside the project li... | 25.458716 | 131 | 0.735856 | 353 | 2,775 | 5.665722 | 0.453258 | 0.065 | 0.066 | 0.075 | 0.16 | 0.1345 | 0.1135 | 0.1135 | 0.04 | 0 | 0 | 0.023977 | 0.128288 | 2,775 | 108 | 132 | 25.694444 | 0.802811 | 0.312793 | 0 | 0 | 0 | 0.033898 | 0.45778 | 0.358471 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.050847 | 0 | 0.050847 | 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 | 0 | 0 | 1 | 0 |
e0e63ae87cd65917f81764b65113935c80fb3646 | 1,150 | py | Python | util.py | monokim/CheesyBullets | eeb5a79a69936701ff7962b846e6310f7df91cb0 | [
"BSD-3-Clause"
] | 1 | 2021-09-28T01:02:31.000Z | 2021-09-28T01:02:31.000Z | util.py | monokim/CheesyBullets | eeb5a79a69936701ff7962b846e6310f7df91cb0 | [
"BSD-3-Clause"
] | null | null | null | util.py | monokim/CheesyBullets | eeb5a79a69936701ff7962b846e6310f7df91cb0 | [
"BSD-3-Clause"
] | 1 | 2021-09-28T01:02:32.000Z | 2021-09-28T01:02:32.000Z | import time
import pyautogui
import win32gui
def get_screen_rect(caption='CheesyBullets'):
hwnd = win32gui.FindWindow(None, caption)
rect = win32gui.GetWindowRect(hwnd)
screen_rect = (rect[0], rect[1], rect[2] - rect[0], rect[3] - rect[1])
return rect
class Timer():
def __init__(self):
sel... | 26.744186 | 74 | 0.508696 | 144 | 1,150 | 3.993056 | 0.340278 | 0.093913 | 0.026087 | 0.036522 | 0.276522 | 0.276522 | 0.276522 | 0.276522 | 0.276522 | 0.276522 | 0 | 0.025921 | 0.362609 | 1,150 | 42 | 75 | 27.380952 | 0.758527 | 0 | 0 | 0.428571 | 0 | 0 | 0.046957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.085714 | 0 | 0.285714 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e0e7c60f7d5d1f6c613e5dbae742091e0b76d703 | 2,301 | py | Python | Gelatin/parser/Parser.py | Etherbay/Gelatin | d2afa85a48034d6ee34580e49e16542f31ad208e | [
"MIT"
] | 107 | 2015-01-26T21:37:57.000Z | 2022-02-25T16:28:44.000Z | Gelatin/parser/Parser.py | Etherbay/Gelatin | d2afa85a48034d6ee34580e49e16542f31ad208e | [
"MIT"
] | 20 | 2015-11-23T14:09:37.000Z | 2021-02-11T17:57:24.000Z | Gelatin/parser/Parser.py | Etherbay/Gelatin | d2afa85a48034d6ee34580e49e16542f31ad208e | [
"MIT"
] | 34 | 2015-01-05T18:47:34.000Z | 2020-12-13T06:47:26.000Z | # Copyright (c) 2010-2017 Samuel Abels
#
# 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, d... | 40.368421 | 80 | 0.704911 | 313 | 2,301 | 5.102236 | 0.460064 | 0.055103 | 0.016281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005488 | 0.20817 | 2,301 | 56 | 81 | 41.089286 | 0.871021 | 0.459365 | 0 | 0 | 0 | 0 | 0.064542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.225806 | 0 | 0.419355 | 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 | 0 | 0 | 1 | 0 |
e0e93ce753097ffb23fb7c437281488fb715e819 | 308 | py | Python | C03-Unit-Testing/21-C03V15/utils.py | dirchev/Python-101-Forever-1 | 13c3bb182747aae244ae6f9fd6f79c8223f3e9a6 | [
"MIT"
] | 59 | 2021-02-05T10:40:08.000Z | 2022-01-26T08:30:43.000Z | C03-Unit-Testing/21-C03V15/utils.py | dirchev/Python-101-Forever-1 | 13c3bb182747aae244ae6f9fd6f79c8223f3e9a6 | [
"MIT"
] | null | null | null | C03-Unit-Testing/21-C03V15/utils.py | dirchev/Python-101-Forever-1 | 13c3bb182747aae244ae6f9fd6f79c8223f3e9a6 | [
"MIT"
] | 10 | 2021-02-13T16:50:26.000Z | 2022-03-20T12:17:00.000Z | BIG_CONSTANT = "YES"
def group_by(xs, grouper):
groups = {}
for x in xs:
group = grouper(x)
if group not in groups:
groups[group] = []
groups[group].append(x)
return groups
print(group_by([1, 2, 3, 4, 5, 6], lambda x: "even" if x % 2 == 0 else "odd"))
| 16.210526 | 78 | 0.529221 | 47 | 308 | 3.404255 | 0.595745 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.324675 | 308 | 18 | 79 | 17.111111 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0.032468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0eb718b5df49f7654c2a9064eafc5186c980c9e | 3,721 | py | Python | pipeline/test_sftp_to_s3.py | streamsets/datacollector-tests-external | 6f255b5e7496deeef333b57a5e9df4911ba3ef00 | [
"Apache-2.0"
] | 1 | 2020-04-14T03:01:51.000Z | 2020-04-14T03:01:51.000Z | pipeline/test_sftp_to_s3.py | streamsets/datacollector-tests-external | 6f255b5e7496deeef333b57a5e9df4911ba3ef00 | [
"Apache-2.0"
] | null | null | null | pipeline/test_sftp_to_s3.py | streamsets/datacollector-tests-external | 6f255b5e7496deeef333b57a5e9df4911ba3ef00 | [
"Apache-2.0"
] | 1 | 2019-09-14T08:30:23.000Z | 2019-09-14T08:30:23.000Z | # Copyright 2019 StreamSets Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 42.770115 | 133 | 0.742274 | 546 | 3,721 | 4.804029 | 0.360806 | 0.036599 | 0.032024 | 0.0244 | 0.060999 | 0.033549 | 0.033549 | 0.033549 | 0.033549 | 0.033549 | 0 | 0.022772 | 0.173878 | 3,721 | 86 | 134 | 43.267442 | 0.830514 | 0.318463 | 0 | 0 | 0 | 0 | 0.106753 | 0.055398 | 0 | 0 | 0 | 0 | 0.044444 | 1 | 0.022222 | false | 0 | 0.2 | 0 | 0.222222 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e0ed1ce1a37b62c8113cea099de0a407123519d8 | 950 | py | Python | terra/tests/__init__.py | NoahRJohnson/terra | 131954ee42fb5905ceff35101e34d89c5eb6de6c | [
"MIT"
] | null | null | null | terra/tests/__init__.py | NoahRJohnson/terra | 131954ee42fb5905ceff35101e34d89c5eb6de6c | [
"MIT"
] | null | null | null | terra/tests/__init__.py | NoahRJohnson/terra | 131954ee42fb5905ceff35101e34d89c5eb6de6c | [
"MIT"
] | null | null | null | import os
# Use this as a package level setup
def load_tests(loader, standard_tests, pattern):
if os.environ.get('TERRA_UNITTEST', None) != "1":
print('WARNING: Running terra tests without setting TERRA_UNITTEST will '
'result in side effects such as extraneouse log files being '
'generated'... | 38 | 77 | 0.749474 | 139 | 950 | 4.971223 | 0.57554 | 0.075253 | 0.052098 | 0.075253 | 0.254703 | 0.254703 | 0.254703 | 0.254703 | 0.254703 | 0.254703 | 0 | 0.001279 | 0.176842 | 950 | 24 | 78 | 39.583333 | 0.882353 | 0.332632 | 0 | 0.307692 | 0 | 0 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0edc031d7ad458b3382ce23bb1ea18d6941bcf3 | 392 | py | Python | icons/svg2png.py | benburrill/formiko | 86630506c537f9517666d9b0d5b2a905e7385b01 | [
"BSD-3-Clause"
] | 116 | 2016-07-13T00:35:35.000Z | 2022-02-22T15:46:44.000Z | icons/svg2png.py | benburrill/formiko | 86630506c537f9517666d9b0d5b2a905e7385b01 | [
"BSD-3-Clause"
] | 32 | 2018-01-23T13:50:27.000Z | 2022-03-30T05:34:56.000Z | icons/svg2png.py | benburrill/formiko | 86630506c537f9517666d9b0d5b2a905e7385b01 | [
"BSD-3-Clause"
] | 8 | 2018-12-21T13:45:36.000Z | 2021-11-07T22:40:05.000Z | # -*- coding: utf-8 -*-
from gi.repository.GdkPixbuf import Pixbuf
from os import makedirs
def main():
for size in (16, 22, 24, 32, 48, 64, 128, 256, 512):
icon = Pixbuf.new_from_file_at_scale("formiko.svg", size, size, True)
makedirs("%dx%d" % (size, size))
icon.savev("%dx%d/formiko.png"... | 24.5 | 77 | 0.591837 | 57 | 392 | 3.859649 | 0.684211 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071895 | 0.219388 | 392 | 15 | 78 | 26.133333 | 0.647059 | 0.053571 | 0 | 0 | 0 | 0 | 0.119241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
e0ef4cd1fe213247f6cb053cb5a43dff995c8928 | 5,778 | py | Python | etna/transforms/decomposition/trend.py | tinkoff-ai/etna-ts | ded5161ed49f5c2697778825f899842ee30c6c61 | [
"Apache-2.0"
] | 96 | 2021-09-05T06:29:34.000Z | 2021-11-07T15:22:54.000Z | etna/transforms/decomposition/trend.py | geopars/etna | ded5161ed49f5c2697778825f899842ee30c6c61 | [
"Apache-2.0"
] | 188 | 2021-09-06T15:59:58.000Z | 2021-11-17T09:34:16.000Z | etna/transforms/decomposition/trend.py | geopars/etna | ded5161ed49f5c2697778825f899842ee30c6c61 | [
"Apache-2.0"
] | 8 | 2021-09-06T09:18:35.000Z | 2021-11-11T21:18:39.000Z | from typing import Optional
import pandas as pd
from ruptures import Binseg
from ruptures.base import BaseCost
from sklearn.linear_model import LinearRegression
from etna.transforms.base import PerSegmentWrapper
from etna.transforms.decomposition.change_points_trend import BaseEstimator
from etna.transforms.decomposi... | 31.232432 | 122 | 0.606265 | 630 | 5,778 | 5.28254 | 0.206349 | 0.059495 | 0.081731 | 0.055288 | 0.417969 | 0.399038 | 0.379207 | 0.356971 | 0.288462 | 0.288462 | 0 | 0.001782 | 0.320007 | 5,778 | 184 | 123 | 31.402174 | 0.845253 | 0.338525 | 0 | 0.406977 | 0 | 0 | 0.008998 | 0.008377 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05814 | false | 0 | 0.104651 | 0 | 0.22093 | 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 | 0 | 0 | 1 | 0 |
e0f004be552defdc3e85fe514fc0037369c084b9 | 4,027 | py | Python | argopy/tests/test_fetchers_facade_index.py | schwehr/argopy | 1b35d5cfb87b2f9ccd2ca45b9987a614edd30700 | [
"Apache-2.0"
] | null | null | null | argopy/tests/test_fetchers_facade_index.py | schwehr/argopy | 1b35d5cfb87b2f9ccd2ca45b9987a614edd30700 | [
"Apache-2.0"
] | null | null | null | argopy/tests/test_fetchers_facade_index.py | schwehr/argopy | 1b35d5cfb87b2f9ccd2ca45b9987a614edd30700 | [
"Apache-2.0"
] | null | null | null | import xarray as xr
import pytest
import warnings
import argopy
from argopy import IndexFetcher as ArgoIndexFetcher
from argopy.errors import InvalidFetcherAccessPoint, InvalidFetcher, ErddapServerError, DataNotFound
from . import (
AVAILABLE_INDEX_SOURCES,
requires_fetcher_index,
requires_connected_erddap... | 35.955357 | 100 | 0.674696 | 503 | 4,027 | 5.159046 | 0.256461 | 0.029672 | 0.027746 | 0.03237 | 0.536416 | 0.519075 | 0.45896 | 0.45896 | 0.350289 | 0.350289 | 0 | 0.025722 | 0.218028 | 4,027 | 111 | 101 | 36.279279 | 0.798349 | 0.132108 | 0 | 0.308642 | 0 | 0 | 0.090358 | 0.020785 | 0 | 0 | 0 | 0.009009 | 0.037037 | 1 | 0.135802 | false | 0 | 0.08642 | 0 | 0.296296 | 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 | 0 | 0 | 1 | 0 |
e0f00c9b59cb978159364c5072c66c216bf67f98 | 968 | py | Python | custom_components/acthor/config_flow.py | jatty/hass-acthor | 9d5aaed3f01e9288fef031b47b0808e6e80c22d3 | [
"MIT"
] | null | null | null | custom_components/acthor/config_flow.py | jatty/hass-acthor | 9d5aaed3f01e9288fef031b47b0808e6e80c22d3 | [
"MIT"
] | null | null | null | custom_components/acthor/config_flow.py | jatty/hass-acthor | 9d5aaed3f01e9288fef031b47b0808e6e80c22d3 | [
"MIT"
] | null | null | null | import voluptuous as vol
from homeassistant.config_entries import ConfigFlow
from homeassistant.const import CONF_HOST, CONF_NAME
from .acthor import test_connection
from .const import DEVICE_NAME, DOMAIN
class ACThorConfigFlow(ConfigFlow, domain=DOMAIN):
async def async_step_user(self, user_input: dict = None) ... | 32.266667 | 72 | 0.597107 | 109 | 968 | 5.073395 | 0.46789 | 0.081374 | 0.047016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001529 | 0.32438 | 968 | 29 | 73 | 33.37931 | 0.844037 | 0 | 0 | 0 | 0 | 0 | 0.025826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.32 | 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 | 0 | 0 | 1 | 0 |
e0f0a9e1fa344475b21cf62a27dc93bb2296049d | 356 | py | Python | doajtest/fixtures/common.py | glauberm/doaj | dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7 | [
"Apache-2.0"
] | null | null | null | doajtest/fixtures/common.py | glauberm/doaj | dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7 | [
"Apache-2.0"
] | null | null | null | doajtest/fixtures/common.py | glauberm/doaj | dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7 | [
"Apache-2.0"
] | null | null | null | NOTES = {
'notes': [
{'date': '2014-05-22T00:00:00Z', 'note': 'Second Note'},
{'date': '2014-05-21T14:02:45Z', 'note': 'First Note'}
]
}
SUBJECT = {
"subject": ['HB1-3840', 'H']
}
OWNER = {
"owner": "Owner"
}
EDITORIAL = {
"editor_group": "editorgroup",
"editor": "associate"
}... | 14.833333 | 64 | 0.5 | 38 | 356 | 4.631579 | 0.684211 | 0.090909 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.258427 | 356 | 23 | 65 | 15.478261 | 0.541667 | 0 | 0 | 0 | 0 | 0 | 0.435393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0f1a06f3be393877c548f9dcd340350faeb7ed3 | 46,397 | py | Python | docnado/docnado.py | HEInventions/docnado | 8817d8a9856b4babd9a2f81678a9ef0b8a75d4bc | [
"MIT"
] | 78 | 2018-10-09T16:28:26.000Z | 2022-02-24T15:25:26.000Z | docnado/docnado.py | HEInventions/docnado | 8817d8a9856b4babd9a2f81678a9ef0b8a75d4bc | [
"MIT"
] | 27 | 2018-11-01T16:30:50.000Z | 2022-02-22T14:36:11.000Z | docnado/docnado.py | HEInventions/docnado | 8817d8a9856b4babd9a2f81678a9ef0b8a75d4bc | [
"MIT"
] | 9 | 2018-11-06T18:50:51.000Z | 2020-10-24T00:56:16.000Z | """ docnado.py
A rapid documentation tool that will blow you away.
"""
import os
import re
import sys
import csv
import glob
import time
import signal
import shutil
import urllib
import base64
import hashlib
import argparse
import tempfile
import datetime
import threading
import traceback
import subprocess
import pl... | 37.782573 | 128 | 0.613078 | 5,932 | 46,397 | 4.665374 | 0.15408 | 0.014092 | 0.007949 | 0.004553 | 0.221102 | 0.171635 | 0.137416 | 0.12383 | 0.11364 | 0.099801 | 0 | 0.005587 | 0.274802 | 46,397 | 1,227 | 129 | 37.813366 | 0.816923 | 0.202125 | 0 | 0.199749 | 0 | 0 | 0.131407 | 0.022241 | 0 | 0 | 0 | 0.000815 | 0 | 1 | 0.072864 | false | 0.003769 | 0.046482 | 0.005025 | 0.209799 | 0.04397 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e0f7703f7d61c2e287ab471ebd07742e1540f442 | 15,577 | py | Python | mkt/search/tests/test_filters.py | clouserw/zamboni | c4a568b69c1613f27da41d46328b2975cbdc1c07 | [
"BSD-3-Clause"
] | null | null | null | mkt/search/tests/test_filters.py | clouserw/zamboni | c4a568b69c1613f27da41d46328b2975cbdc1c07 | [
"BSD-3-Clause"
] | null | null | null | mkt/search/tests/test_filters.py | clouserw/zamboni | c4a568b69c1613f27da41d46328b2975cbdc1c07 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import json
from nose.tools import eq_, ok_
from rest_framework.exceptions import ParseError
from django.contrib.auth.models import AnonymousUser
from django.test.client import RequestFactory
from django.test.utils import override_settings
import mkt
from mkt.constants.applications import DEV... | 39.737245 | 79 | 0.560506 | 1,748 | 15,577 | 4.81865 | 0.16476 | 0.056987 | 0.065535 | 0.089754 | 0.480708 | 0.416123 | 0.375163 | 0.327081 | 0.288496 | 0.237089 | 0 | 0.002323 | 0.253964 | 15,577 | 391 | 80 | 39.838875 | 0.722485 | 0.05521 | 0 | 0.314879 | 0 | 0 | 0.2099 | 0.00588 | 0 | 0 | 0 | 0 | 0.00346 | 1 | 0.138408 | false | 0 | 0.048443 | 0.00346 | 0.262976 | 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 | 0 | 0 | 1 | 0 |
e0f8b6be8671efa3ab8fb691c490862ecc07081d | 668 | py | Python | noxfile.py | sethmlarson/workplace-search-python | 0680ce7144fc0608d3d8c336315ffaf7ddc3ca2d | [
"Apache-2.0"
] | 5 | 2020-03-05T16:37:35.000Z | 2021-02-26T03:44:09.000Z | noxfile.py | sethmlarson/workplace-search-python | 0680ce7144fc0608d3d8c336315ffaf7ddc3ca2d | [
"Apache-2.0"
] | 1 | 2019-01-08T20:10:16.000Z | 2019-01-08T20:10:16.000Z | noxfile.py | sethmlarson/workplace-search-python | 0680ce7144fc0608d3d8c336315ffaf7ddc3ca2d | [
"Apache-2.0"
] | 1 | 2020-04-22T18:20:26.000Z | 2020-04-22T18:20:26.000Z | import nox
SOURCE_FILES = (
"setup.py",
"noxfile.py",
"elastic_workplace_search/",
"tests/",
)
@nox.session(python=["2.7", "3.4", "3.5", "3.6", "3.7", "3.8"])
def test(session):
session.install(".")
session.install("-r", "dev-requirements.txt")
session.run("pytest", "--record-mode=none"... | 20.242424 | 82 | 0.609281 | 88 | 668 | 4.556818 | 0.511364 | 0.109726 | 0.157107 | 0.099751 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028419 | 0.157186 | 668 | 32 | 83 | 20.875 | 0.683837 | 0 | 0 | 0.090909 | 0 | 0 | 0.288922 | 0.037425 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.045455 | 0 | 0.181818 | 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 | 0 | 0 | 1 | 0 |
e0fb958c05e67ba3756a0924303bc1ac81028564 | 644 | py | Python | challenges/python-solutions/day-25.py | elifloresch/thirty-days-challenge | d3d41f5ce8cc4155ebf9cf52c1ece43c15a1e2af | [
"MIT"
] | null | null | null | challenges/python-solutions/day-25.py | elifloresch/thirty-days-challenge | d3d41f5ce8cc4155ebf9cf52c1ece43c15a1e2af | [
"MIT"
] | null | null | null | challenges/python-solutions/day-25.py | elifloresch/thirty-days-challenge | d3d41f5ce8cc4155ebf9cf52c1ece43c15a1e2af | [
"MIT"
] | null | null | null | import math
def is_prime_number(number):
if number < 2:
return False
if number == 2 or number == 3:
return True
if number % 2 == 0 or number % 3 == 0:
return False
number_sqrt = math.sqrt(number)
int_number_sqrt = int(number_sqrt) + 1
for d in range(6, int_number_sq... | 19.515152 | 58 | 0.57764 | 96 | 644 | 3.739583 | 0.333333 | 0.089136 | 0.075209 | 0.050139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03139 | 0.307453 | 644 | 32 | 59 | 20.125 | 0.773543 | 0 | 0 | 0.217391 | 0 | 0 | 0.021739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.304348 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e0fbf814aa561afb0f3e8aefc0b444cab5d08bda | 1,265 | py | Python | examples/path_config.py | rnixx/garden.cefpython | 91d5f69e9983a28ce1971637d7d2f0051c456882 | [
"MIT"
] | 13 | 2017-02-10T12:07:29.000Z | 2021-12-15T02:07:07.000Z | examples/path_config.py | Informatic/garden.cefpython | b7a03d31fd18a32a44ae293d4101b4cf7608795b | [
"MIT"
] | 22 | 2015-02-13T09:58:30.000Z | 2015-06-12T08:55:20.000Z | examples/path_config.py | Informatic/garden.cefpython | b7a03d31fd18a32a44ae293d4101b4cf7608795b | [
"MIT"
] | 12 | 2017-05-03T01:18:31.000Z | 2021-10-01T06:57:41.000Z | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
Minimal example of the CEFBrowser widget use. Here you don't have any controls
(back / forth / reload) or whatsoever. Just a kivy app displaying the
chromium-webview.
In this example we demonstrate how the cache path of CEF can be set.
"""
import os
from kivy.app im... | 34.189189 | 78 | 0.656917 | 167 | 1,265 | 4.820359 | 0.502994 | 0.064596 | 0.049689 | 0.089441 | 0.104348 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00102 | 0.225296 | 1,265 | 36 | 79 | 35.138889 | 0.820408 | 0.416601 | 0 | 0 | 0 | 0 | 0.176796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0fc122c2f5c222700dce3588b9faccba2d8800b | 312 | py | Python | simple-systems/and_xor_shift.py | laserbat/random-projects | 925f94f80299df6f16e91975e89f5fff7df20005 | [
"WTFPL"
] | 3 | 2019-04-14T12:29:10.000Z | 2020-02-26T22:27:04.000Z | simple-systems/and_xor_shift.py | laserbat/random-projects | 925f94f80299df6f16e91975e89f5fff7df20005 | [
"WTFPL"
] | null | null | null | simple-systems/and_xor_shift.py | laserbat/random-projects | 925f94f80299df6f16e91975e89f5fff7df20005 | [
"WTFPL"
] | 1 | 2020-06-08T22:12:16.000Z | 2020-06-08T22:12:16.000Z | #!/usr/bin/python3
# If F(a) is any function that can be defined as composition of bitwise XORs, ANDs and left shifts
# Then the dynac system x_(n+1) = F(x_n) is Turing complete
# Proof by simulation (rule110)
a = 1
while a:
print(bin(a))
a = a ^ (a << 1) ^ (a & (a << 1)) ^ (a & (a << 1) & (a << 2))
| 26 | 98 | 0.589744 | 58 | 312 | 3.137931 | 0.655172 | 0.054945 | 0.049451 | 0.065934 | 0.054945 | 0.054945 | 0.054945 | 0 | 0 | 0 | 0 | 0.042373 | 0.24359 | 312 | 11 | 99 | 28.363636 | 0.728814 | 0.647436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0fc7fc48d25fb30b40c2e42b598b6eff6d50954 | 5,543 | py | Python | trinity/protocol/common/peer_pool_event_bus.py | Gauddel/trinity | 0b12943ac36f4090abc22fc965e9e9a4f42c6f35 | [
"MIT"
] | null | null | null | trinity/protocol/common/peer_pool_event_bus.py | Gauddel/trinity | 0b12943ac36f4090abc22fc965e9e9a4f42c6f35 | [
"MIT"
] | null | null | null | trinity/protocol/common/peer_pool_event_bus.py | Gauddel/trinity | 0b12943ac36f4090abc22fc965e9e9a4f42c6f35 | [
"MIT"
] | null | null | null | from abc import (
abstractmethod,
)
from typing import (
Any,
Callable,
cast,
FrozenSet,
Generic,
Type,
TypeVar,
)
from cancel_token import (
CancelToken,
)
from p2p.exceptions import (
PeerConnectionLost,
)
from p2p.kademlia import Node
from p2p.peer import (
BasePeer,
... | 33.391566 | 99 | 0.625293 | 612 | 5,543 | 5.485294 | 0.303922 | 0.023831 | 0.021448 | 0.020256 | 0.191838 | 0.166816 | 0.137623 | 0.116771 | 0.088174 | 0.088174 | 0 | 0.002569 | 0.297853 | 5,543 | 165 | 100 | 33.593939 | 0.859969 | 0.13296 | 0 | 0.20339 | 0 | 0 | 0.036954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025424 | false | 0.025424 | 0.09322 | 0 | 0.161017 | 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 | 0 | 0 | 1 | 0 |
e0fe475b8134a31f2b77a708e5769cd268cfc749 | 18,488 | py | Python | tests/e2e/performance/csi_tests/test_pvc_creation_deletion_performance.py | annagitel/ocs-ci | 284fe04aeb6e3d6cb70c99e65fec8ff1b1ea1dd5 | [
"MIT"
] | 1 | 2019-09-17T08:38:05.000Z | 2019-09-17T08:38:05.000Z | tests/e2e/performance/csi_tests/test_pvc_creation_deletion_performance.py | annagitel/ocs-ci | 284fe04aeb6e3d6cb70c99e65fec8ff1b1ea1dd5 | [
"MIT"
] | 1 | 2021-08-30T20:06:00.000Z | 2021-09-30T20:05:46.000Z | tests/e2e/performance/csi_tests/test_pvc_creation_deletion_performance.py | annagitel/ocs-ci | 284fe04aeb6e3d6cb70c99e65fec8ff1b1ea1dd5 | [
"MIT"
] | 2 | 2019-09-17T10:04:14.000Z | 2022-02-07T16:36:49.000Z | """
Test to verify performance of PVC creation and deletion
for RBD, CephFS and RBD-Thick interfaces
"""
import time
import logging
import datetime
import pytest
import ocs_ci.ocs.exceptions as ex
import threading
import statistics
from concurrent.futures import ThreadPoolExecutor
from uuid import uuid4
from ocs_ci.fr... | 38.119588 | 119 | 0.59855 | 2,140 | 18,488 | 4.938318 | 0.164019 | 0.039743 | 0.013248 | 0.029523 | 0.370553 | 0.293906 | 0.222937 | 0.205905 | 0.135503 | 0.100114 | 0 | 0.007208 | 0.317179 | 18,488 | 484 | 120 | 38.198347 | 0.829927 | 0.146906 | 0 | 0.274854 | 0 | 0 | 0.16204 | 0.020148 | 0 | 0 | 0 | 0 | 0.002924 | 1 | 0.026316 | false | 0 | 0.046784 | 0 | 0.087719 | 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 | 0 | 0 | 1 | 0 |
e0fe959730942d4fbe3c43eb35ca77c0cc852bbc | 1,233 | py | Python | templates/t/searchresult_withnone.py | MikeBirdsall/food-log | 5edc1fa515d5e2721e96afb7d2b437296903a31d | [
"MIT"
] | null | null | null | templates/t/searchresult_withnone.py | MikeBirdsall/food-log | 5edc1fa515d5e2721e96afb7d2b437296903a31d | [
"MIT"
] | 27 | 2017-07-01T19:20:48.000Z | 2019-03-07T06:04:22.000Z | templates/t/searchresult_withnone.py | MikeBirdsall/food-log | 5edc1fa515d5e2721e96afb7d2b437296903a31d | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from jinja2 import Environment, FileSystemLoader
def spacenone(value):
return "" if value is None else str(value)
results = [
dict(
description="Noodles and Company steak Stromboli",
comment="",
size="small",
cals=530,
carbs=50,
fat=25,
... | 19.887097 | 58 | 0.544201 | 132 | 1,233 | 5.060606 | 0.583333 | 0.08982 | 0.049401 | 0.098802 | 0.197605 | 0.197605 | 0.137725 | 0.137725 | 0 | 0 | 0 | 0.052885 | 0.325223 | 1,233 | 61 | 59 | 20.213115 | 0.75 | 0.013788 | 0 | 0.294118 | 0 | 0 | 0.160626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.019608 | 0.019608 | 0.058824 | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
e0ff8f36b2a500b9d978be307fa6e00f7161603f | 2,146 | py | Python | payments/views.py | aman-roy/pune.pycon.org | f56cc948bd56767110d337c694ecbf5540bdf4b9 | [
"MIT"
] | null | null | null | payments/views.py | aman-roy/pune.pycon.org | f56cc948bd56767110d337c694ecbf5540bdf4b9 | [
"MIT"
] | null | null | null | payments/views.py | aman-roy/pune.pycon.org | f56cc948bd56767110d337c694ecbf5540bdf4b9 | [
"MIT"
] | null | null | null | from django.http import JsonResponse
from django.views.decorators.csrf import csrf_exempt
from payments.models import Invoice, RazorpayKeys
from payments.razorpay.razorpay_payments import RazorpayPayments
from payments.models import Payment, Order
import json
@csrf_exempt
def webhook(request):
if request.method ... | 40.490566 | 91 | 0.66356 | 237 | 2,146 | 5.835443 | 0.248945 | 0.07086 | 0.072307 | 0.049892 | 0.107014 | 0.107014 | 0.107014 | 0.107014 | 0.107014 | 0.107014 | 0 | 0.0012 | 0.223672 | 2,146 | 53 | 92 | 40.490566 | 0.828932 | 0 | 0 | 0.136364 | 0 | 0 | 0.101537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.272727 | 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 | 0 | 0 | 1 | 0 |
e0ff97e8d61ff585dcd9a0102ba24b2e2528bca2 | 6,541 | py | Python | src/convnet/image_classifier.py | danschef/gear-detector | 153d1031778f183ac38edf0532d2f266029c5ea7 | [
"MIT"
] | 1 | 2020-07-15T20:12:55.000Z | 2020-07-15T20:12:55.000Z | src/convnet/image_classifier.py | danschef/gear-detector | 153d1031778f183ac38edf0532d2f266029c5ea7 | [
"MIT"
] | null | null | null | src/convnet/image_classifier.py | danschef/gear-detector | 153d1031778f183ac38edf0532d2f266029c5ea7 | [
"MIT"
] | null | null | null | import configparser
import os
import sys
from time import localtime, strftime, mktime
import torch
import torch.nn as nn
import torch.optim as optim
from torch.autograd import Variable
from net import Net
from geo_helper import store_image_bounds
from image_helper import CLASSES
from image_helper import save_image
f... | 31.599034 | 92 | 0.581257 | 748 | 6,541 | 4.941176 | 0.262032 | 0.029221 | 0.021104 | 0.028409 | 0.214286 | 0.186147 | 0.139069 | 0.126082 | 0.093615 | 0.093615 | 0 | 0.010439 | 0.223819 | 6,541 | 206 | 93 | 31.752427 | 0.71755 | 0.105947 | 0 | 0.135593 | 0 | 0 | 0.186847 | 0.038586 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0 | 0.127119 | 0.008475 | 0.194915 | 0.09322 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
46004af1bf9a4f4788952ff849b76ab958f79e1c | 3,035 | py | Python | src/modules/AlphabetPlotter.py | aaanh/duplicated_accelcamp | 7d4b60ace023bede907f8ed367ba492731a1951d | [
"FTL",
"CNRI-Python",
"RSA-MD"
] | null | null | null | src/modules/AlphabetPlotter.py | aaanh/duplicated_accelcamp | 7d4b60ace023bede907f8ed367ba492731a1951d | [
"FTL",
"CNRI-Python",
"RSA-MD"
] | 2 | 2021-05-21T16:31:41.000Z | 2021-08-25T16:05:48.000Z | src/modules/AlphabetPlotter.py | aaanh/duplicated_accelcamp | 7d4b60ace023bede907f8ed367ba492731a1951d | [
"FTL",
"CNRI-Python",
"RSA-MD"
] | null | null | null | import tkinter as tk
from tkinter import filedialog
import csv
import matplotlib.pyplot as plt
root = tk.Tk(screenName=':0.0')
root.withdraw()
file_path = filedialog.askopenfilename()
lastIndex = len(file_path.split('/')) - 1
v0 = [0, 0, 0]
x0 = [0, 0, 0]
fToA = 1
error = 0.28
errorZ = 3
t = []
time... | 29.182692 | 106 | 0.577595 | 494 | 3,035 | 3.479757 | 0.202429 | 0.027923 | 0.041885 | 0.051193 | 0.319372 | 0.200116 | 0.17103 | 0.14776 | 0.086097 | 0.066318 | 0 | 0.054545 | 0.23888 | 3,035 | 104 | 107 | 29.182692 | 0.68961 | 0.043163 | 0 | 0.216216 | 0 | 0 | 0.043517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.054054 | 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 | 0 | 0 | 1 | 0 |
4604dc5f65cd5f7e83502d4f9fd70d81c2c12903 | 4,178 | py | Python | cohesity_management_sdk/models/health_tile.py | nick6655/management-sdk-python | 88e792cb83e5c24a22af495b220c145d0c45841d | [
"Apache-2.0"
] | 18 | 2019-09-24T17:35:53.000Z | 2022-03-25T08:08:47.000Z | cohesity_management_sdk/models/health_tile.py | nick6655/management-sdk-python | 88e792cb83e5c24a22af495b220c145d0c45841d | [
"Apache-2.0"
] | 18 | 2019-03-29T19:32:29.000Z | 2022-01-03T23:16:45.000Z | cohesity_management_sdk/models/health_tile.py | nick6655/management-sdk-python | 88e792cb83e5c24a22af495b220c145d0c45841d | [
"Apache-2.0"
] | 16 | 2019-02-27T06:54:12.000Z | 2021-11-16T18:10:24.000Z | # -*- coding: utf-8 -*-
# Copyright 2021 Cohesity Inc.
import cohesity_management_sdk.models.alert
class HealthTile(object):
"""Implementation of the 'HealthTile' model.
Health for Dashboard.
Attributes:
capacity_bytes (long|int): Raw Cluster Capacity in Bytes. This is not
usable ca... | 38.330275 | 109 | 0.646003 | 476 | 4,178 | 5.359244 | 0.243697 | 0.063113 | 0.05488 | 0.060368 | 0.180713 | 0.044688 | 0.044688 | 0 | 0 | 0 | 0 | 0.002349 | 0.28674 | 4,178 | 108 | 110 | 38.685185 | 0.853691 | 0.319052 | 0 | 0 | 0 | 0 | 0.160622 | 0.049223 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.016949 | 0 | 0.118644 | 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 | 0 | 0 | 1 | 0 |
4606c41942e35425a62e84ea16612cc308900a33 | 10,472 | py | Python | tests/test_exploration.py | lionelkusch/neurolib | 714eef48616af0ebdb62decc84826221472398f9 | [
"MIT"
] | null | null | null | tests/test_exploration.py | lionelkusch/neurolib | 714eef48616af0ebdb62decc84826221472398f9 | [
"MIT"
] | null | null | null | tests/test_exploration.py | lionelkusch/neurolib | 714eef48616af0ebdb62decc84826221472398f9 | [
"MIT"
] | null | null | null | import logging
import os
import random
import string
import time
import unittest
import neurolib.utils.paths as paths
import neurolib.utils.pypetUtils as pu
import numpy as np
import pytest
import xarray as xr
from neurolib.models.aln import ALNModel
from neurolib.models.fhn import FHNModel
from neurolib.models.multim... | 36.110345 | 120 | 0.629297 | 1,202 | 10,472 | 5.366057 | 0.197171 | 0.028992 | 0.013643 | 0.04093 | 0.52155 | 0.435504 | 0.425271 | 0.409147 | 0.385271 | 0.362946 | 0 | 0.020682 | 0.238159 | 10,472 | 289 | 121 | 36.235294 | 0.787791 | 0.061784 | 0 | 0.430693 | 0 | 0 | 0.081959 | 0.019897 | 0 | 0 | 0 | 0 | 0.128713 | 1 | 0.074257 | false | 0 | 0.089109 | 0 | 0.207921 | 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 | 0 | 0 | 1 | 0 |
46077178da4bf46135d1fc5fee2cb11b113e0b42 | 3,568 | py | Python | irc3/tags.py | belst/irc3 | c89303cf5937a4dc7cf1eda8e662dc702b5e0ad9 | [
"MIT"
] | null | null | null | irc3/tags.py | belst/irc3 | c89303cf5937a4dc7cf1eda8e662dc702b5e0ad9 | [
"MIT"
] | null | null | null | irc3/tags.py | belst/irc3 | c89303cf5937a4dc7cf1eda8e662dc702b5e0ad9 | [
"MIT"
] | 1 | 2018-07-22T18:40:37.000Z | 2018-07-22T18:40:37.000Z | # -*- coding: utf-8 -*-
'''
Module offering 2 functions, encode() and decode(), to transcode between
IRCv3.2 tags and python dictionaries.
'''
import re
import random
import string
_escapes = (
("\\", "\\\\"),
(";", r"\:"),
(" ", r"\s"),
("\r", r"\r"),
("\n", r"\n"),
)
# make the possibility of... | 28.31746 | 79 | 0.580998 | 457 | 3,568 | 4.474836 | 0.310722 | 0.046944 | 0.02934 | 0.031296 | 0.353056 | 0.334963 | 0.329095 | 0.283619 | 0.099756 | 0.099756 | 0 | 0.007653 | 0.230942 | 3,568 | 125 | 80 | 28.544 | 0.737609 | 0.504765 | 0 | 0.148148 | 0 | 0 | 0.104869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.055556 | 0 | 0.222222 | 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 | 0 | 0 | 1 | 0 |
46085291ee66b159174d6179bad5ab2c5199a92f | 28,019 | py | Python | src/fedavg_trainer.py | MrZhang1994/mobile-federated-learning | 6e088a91266d889869af5a1eb0bad83ca635a4a5 | [
"Apache-2.0"
] | null | null | null | src/fedavg_trainer.py | MrZhang1994/mobile-federated-learning | 6e088a91266d889869af5a1eb0bad83ca635a4a5 | [
"Apache-2.0"
] | null | null | null | src/fedavg_trainer.py | MrZhang1994/mobile-federated-learning | 6e088a91266d889869af5a1eb0bad83ca635a4a5 | [
"Apache-2.0"
] | 1 | 2021-07-06T04:53:06.000Z | 2021-07-06T04:53:06.000Z | # newly added libraries
import copy
import wandb
import time
import math
import csv
import shutil
from tqdm import tqdm
import torch
import numpy as np
import pandas as pd
from client import Client
from config import *
import scheduler as sch
class FedAvgTrainer(object):
def __init__(self, dataset, model, device... | 52.965974 | 206 | 0.5891 | 3,562 | 28,019 | 4.353734 | 0.113139 | 0.021666 | 0.020763 | 0.018636 | 0.434421 | 0.350335 | 0.263735 | 0.201122 | 0.167913 | 0.150116 | 0 | 0.010086 | 0.302866 | 28,019 | 529 | 207 | 52.965974 | 0.783853 | 0.089582 | 0 | 0.205128 | 0 | 0.002564 | 0.076412 | 0.013728 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023077 | false | 0 | 0.033333 | 0 | 0.074359 | 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 | 0 | 0 | 1 | 0 |
46087abee7bffbddb94f7edf7ace7481d6b4e5e7 | 15,539 | py | Python | src/test.py | jfparentledartech/DEFT | 6e7e98664cd635509bdff69533a24a7c4e4e3ea3 | [
"MIT"
] | null | null | null | src/test.py | jfparentledartech/DEFT | 6e7e98664cd635509bdff69533a24a7c4e4e3ea3 | [
"MIT"
] | null | null | null | src/test.py | jfparentledartech/DEFT | 6e7e98664cd635509bdff69533a24a7c4e4e3ea3 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import time
import cv2
import matplotlib.pyplot as plt
import numpy as np
from progress.bar import Bar
import torch
import pickle
import motmetrics as mm
from lib.opts import opts
from lib.logger im... | 36.137209 | 140 | 0.533882 | 1,783 | 15,539 | 4.394279 | 0.18396 | 0.030632 | 0.04365 | 0.010721 | 0.24314 | 0.203318 | 0.16388 | 0.138609 | 0.107084 | 0.09164 | 0 | 0.0132 | 0.34185 | 15,539 | 429 | 141 | 36.221445 | 0.752909 | 0.019821 | 0 | 0.138889 | 0 | 0.005556 | 0.110103 | 0.014921 | 0 | 0 | 0 | 0.002331 | 0 | 1 | 0.019444 | false | 0 | 0.055556 | 0.002778 | 0.086111 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
460899f19cdb6ea7310d1622b1d7bbb727078007 | 8,796 | py | Python | compiler_gym/envs/gcc/datasets/csmith.py | AkillesAILimited/CompilerGym | 34c0933ba26b385ebd2cd67f5d8edbb046c6bf02 | [
"MIT"
] | null | null | null | compiler_gym/envs/gcc/datasets/csmith.py | AkillesAILimited/CompilerGym | 34c0933ba26b385ebd2cd67f5d8edbb046c6bf02 | [
"MIT"
] | null | null | null | compiler_gym/envs/gcc/datasets/csmith.py | AkillesAILimited/CompilerGym | 34c0933ba26b385ebd2cd67f5d8edbb046c6bf02 | [
"MIT"
] | 1 | 2021-10-01T05:52:34.000Z | 2021-10-01T05:52:34.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import logging
import shutil
import subprocess
import tempfile
from pathlib import Path
from threading import Lock
from typing import Iterable,... | 35.756098 | 98 | 0.620509 | 1,067 | 8,796 | 4.977507 | 0.324274 | 0.019582 | 0.020335 | 0.027114 | 0.123141 | 0.100358 | 0.041047 | 0.016946 | 0 | 0 | 0 | 0.010086 | 0.289905 | 8,796 | 245 | 99 | 35.902041 | 0.840218 | 0.309686 | 0 | 0.048611 | 0 | 0.006944 | 0.106824 | 0.022119 | 0 | 0 | 0 | 0.004082 | 0 | 1 | 0.090278 | false | 0 | 0.111111 | 0.041667 | 0.305556 | 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 | 0 | 0 | 1 | 0 |
46089e52d9f3438c0d2bdc953655d9f0dafbf49b | 444 | py | Python | dans_pymodules/power_of_two.py | DanielWinklehner/dans_pymodules | 04dfdaeccc171712cad6eb24202608e2eda21eca | [
"MIT"
] | null | null | null | dans_pymodules/power_of_two.py | DanielWinklehner/dans_pymodules | 04dfdaeccc171712cad6eb24202608e2eda21eca | [
"MIT"
] | null | null | null | dans_pymodules/power_of_two.py | DanielWinklehner/dans_pymodules | 04dfdaeccc171712cad6eb24202608e2eda21eca | [
"MIT"
] | null | null | null | __author__ = "Daniel Winklehner"
__doc__ = "Find out if a number is a power of two"
def power_of_two(number):
"""
Function that checks if the input value (data) is a power of 2
(i.e. 2, 4, 8, 16, 32, ...)
"""
res = 0
while res == 0:
res = number % 2
number /= 2.0
prin... | 19.304348 | 66 | 0.529279 | 66 | 444 | 3.409091 | 0.575758 | 0.093333 | 0.071111 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051195 | 0.34009 | 444 | 22 | 67 | 20.181818 | 0.716724 | 0.202703 | 0 | 0 | 0 | 0 | 0.215569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
460b1c41c9223f051fce73e3d45305d26f20419f | 4,092 | py | Python | api_yamdb/reviews/models.py | LHLHLHE/api_yamdb | bda83815a47f3fda03d54220dfe41e9263ff1b05 | [
"MIT"
] | null | null | null | api_yamdb/reviews/models.py | LHLHLHE/api_yamdb | bda83815a47f3fda03d54220dfe41e9263ff1b05 | [
"MIT"
] | null | null | null | api_yamdb/reviews/models.py | LHLHLHE/api_yamdb | bda83815a47f3fda03d54220dfe41e9263ff1b05 | [
"MIT"
] | null | null | null | import datetime as dt
from django.db import models
from django.core.validators import MinValueValidator, MaxValueValidator
from django.core.exceptions import ValidationError
from users.models import CustomUser
def validate_year(value):
"""
Год выпуска произведения не может быть больше текущего.
"""
... | 24.650602 | 77 | 0.608016 | 413 | 4,092 | 5.823245 | 0.285714 | 0.128067 | 0.040748 | 0.039917 | 0.441164 | 0.427027 | 0.384615 | 0.360499 | 0.321414 | 0.256133 | 0 | 0.005148 | 0.287879 | 4,092 | 165 | 78 | 24.8 | 0.820178 | 0.043255 | 0 | 0.389313 | 0 | 0 | 0.106729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053435 | false | 0 | 0.038168 | 0.045802 | 0.381679 | 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 | 0 | 0 | 1 | 0 |
460d6b3dd6eff2aa0cc70e0bbc8f6441baed0341 | 6,796 | py | Python | makesense/graph.py | sieben/makesense | 485e71903bcc9446482f21bb5d0c7a392ca1efca | [
"Apache-2.0"
] | 5 | 2015-02-03T12:28:55.000Z | 2019-03-20T08:11:22.000Z | makesense/graph.py | sieben/makesense | 485e71903bcc9446482f21bb5d0c7a392ca1efca | [
"Apache-2.0"
] | 4 | 2016-05-16T07:26:19.000Z | 2016-06-23T22:22:10.000Z | makesense/graph.py | sieben/makesense | 485e71903bcc9446482f21bb5d0c7a392ca1efca | [
"Apache-2.0"
] | 1 | 2016-05-16T07:28:53.000Z | 2016-05-16T07:28:53.000Z | # -*- coding: utf-8 -*-
import json
import pdb
import os
from os.path import join as pj
import networkx as nx
import pandas as pd
from networkx.readwrite.json_graph import node_link_data
def chain():
g = nx.Graph()
# Horizontal
for i in range(11, 15):
g.add_edge(i, i + 1)
for i in range(... | 27.626016 | 82 | 0.59741 | 1,003 | 6,796 | 3.874377 | 0.217348 | 0.03088 | 0.057643 | 0.034225 | 0.306999 | 0.241894 | 0.221307 | 0.221307 | 0.199434 | 0.17473 | 0 | 0.026464 | 0.266039 | 6,796 | 245 | 83 | 27.738776 | 0.752606 | 0.074897 | 0 | 0.1 | 0 | 0 | 0.131274 | 0 | 0 | 0 | 0 | 0.008163 | 0 | 1 | 0.04375 | false | 0 | 0.04375 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
460e2d1d15ba01da3b9d59848ee03f3a71e7df89 | 5,511 | py | Python | FFTNet_dilconv.py | mimbres/FFTNet | 3a6bfb4731bab2e0a59fc3a1ddb55f19f84aeba2 | [
"Apache-2.0"
] | null | null | null | FFTNet_dilconv.py | mimbres/FFTNet | 3a6bfb4731bab2e0a59fc3a1ddb55f19f84aeba2 | [
"Apache-2.0"
] | null | null | null | FFTNet_dilconv.py | mimbres/FFTNet | 3a6bfb4731bab2e0a59fc3a1ddb55f19f84aeba2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon May 7 09:46:10 2018
@author: sungkyun
FFTNet model using 2x1 dil-conv
"""
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
# Models with Preset (for convenience)
'''
dim_input: dimension of input (256 for 8-bit mu-... | 40.822222 | 147 | 0.551987 | 793 | 5,511 | 3.650694 | 0.253468 | 0.033161 | 0.033161 | 0.027634 | 0.296028 | 0.248359 | 0.240069 | 0.188256 | 0.142314 | 0.124698 | 0 | 0.045067 | 0.339684 | 5,511 | 135 | 148 | 40.822222 | 0.749382 | 0.189802 | 0 | 0.238806 | 0 | 0 | 0.00427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089552 | false | 0 | 0.059701 | 0.029851 | 0.268657 | 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 | 0 | 0 | 1 | 0 |
4612cb4af177cb85c305bcbf02040e60659a77f5 | 3,008 | py | Python | keras_textclassification/conf/path_config.py | atom-zh/Keras-TextClassification | 26c549e8e23c6a10905c2dcef7eef557dc43c932 | [
"MIT"
] | null | null | null | keras_textclassification/conf/path_config.py | atom-zh/Keras-TextClassification | 26c549e8e23c6a10905c2dcef7eef557dc43c932 | [
"MIT"
] | null | null | null | keras_textclassification/conf/path_config.py | atom-zh/Keras-TextClassification | 26c549e8e23c6a10905c2dcef7eef557dc43c932 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
# !/usr/bin/python
# @time :2019/6/5 21:04
# @author :Mo
# @function :file of path
import os
import pathlib
import sys
# 项目的根目录
path_root = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
path_root = path_root.replace('\\', '/')
path_top = str(pathlib.P... | 41.777778 | 94 | 0.772939 | 469 | 3,008 | 4.528785 | 0.221748 | 0.120527 | 0.158192 | 0.103578 | 0.53484 | 0.227401 | 0.126177 | 0.028249 | 0 | 0 | 0 | 0.024719 | 0.112367 | 3,008 | 71 | 95 | 42.366197 | 0.770787 | 0.101396 | 0 | 0 | 0 | 0 | 0.370214 | 0.366003 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.073171 | 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 | 0 | 0 | 1 | 0 |
4613a39367cc38fb7bf09761273d5ec4ce7cfaaf | 5,540 | py | Python | parser_tool/tests/test_htmlgenerator.py | Harvard-ATG/visualizing_russian_tools | e8e5cf8c5b7eee0b6855594ad41b3ccd70a2d467 | [
"BSD-3-Clause"
] | 2 | 2020-07-10T14:17:03.000Z | 2020-11-17T09:18:26.000Z | parser_tool/tests/test_htmlgenerator.py | eelegiap/visualizing_russian_tools | 9c36baebc384133c7c27d7a7c4e0cedc8cb84e74 | [
"BSD-3-Clause"
] | 13 | 2019-03-17T13:27:31.000Z | 2022-01-18T17:03:14.000Z | parser_tool/tests/test_htmlgenerator.py | eelegiap/visualizing_russian_tools | 9c36baebc384133c7c27d7a7c4e0cedc8cb84e74 | [
"BSD-3-Clause"
] | 2 | 2019-10-19T16:37:44.000Z | 2020-06-22T13:30:20.000Z | # -*- coding: utf-8 -*-
import unittest
from xml.etree import ElementTree as ET
from parser_tool import tokenizer
from parser_tool import htmlgenerator
class TestHtmlGenerator(unittest.TestCase):
def _maketokendict(self, **kwargs):
token_text = kwargs.get("token", "")
token_dict = {
... | 49.026549 | 192 | 0.658845 | 656 | 5,540 | 5.382622 | 0.179878 | 0.097706 | 0.110734 | 0.061456 | 0.533277 | 0.480317 | 0.448032 | 0.448032 | 0.448032 | 0.441518 | 0 | 0.015743 | 0.208845 | 5,540 | 112 | 193 | 49.464286 | 0.789185 | 0.079964 | 0 | 0.298851 | 0 | 0.011494 | 0.121855 | 0.014937 | 0 | 0 | 0 | 0 | 0.264368 | 1 | 0.08046 | false | 0 | 0.045977 | 0 | 0.149425 | 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 | 0 | 0 | 1 | 0 |
4615c8d476cced9b6746382173a9829cad6f16c7 | 995 | bzl | Python | external_plugin_deps.bzl | michalgagat/plugins_oauth | 47cc344013bd43a4ac508c578f2d93f37a166ee6 | [
"Apache-2.0",
"MIT"
] | 143 | 2015-03-09T21:18:39.000Z | 2022-03-02T13:27:12.000Z | external_plugin_deps.bzl | michalgagat/plugins_oauth | 47cc344013bd43a4ac508c578f2d93f37a166ee6 | [
"Apache-2.0",
"MIT"
] | 162 | 2015-03-15T04:00:41.000Z | 2022-02-24T07:29:17.000Z | external_plugin_deps.bzl | michalgagat/plugins_oauth | 47cc344013bd43a4ac508c578f2d93f37a166ee6 | [
"Apache-2.0",
"MIT"
] | 97 | 2015-02-27T18:35:20.000Z | 2022-01-08T13:17:21.000Z | load("//tools/bzl:maven_jar.bzl", "maven_jar")
def external_plugin_deps(omit_commons_codec = True):
JACKSON_VERS = "2.10.2"
maven_jar(
name = "scribejava-core",
artifact = "com.github.scribejava:scribejava-core:6.9.0",
sha1 = "ed761f450d8382f75787e8fee9ae52e7ec768747",
)
maven_j... | 34.310345 | 84 | 0.629146 | 92 | 995 | 6.641304 | 0.413043 | 0.07856 | 0.07856 | 0.062193 | 0.124386 | 0.124386 | 0 | 0 | 0 | 0 | 0 | 0.151678 | 0.251256 | 995 | 28 | 85 | 35.535714 | 0.668456 | 0 | 0 | 0.148148 | 0 | 0 | 0.455276 | 0.376884 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0 | 0 | 0.037037 | 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 | 0 | 0 | 1 | 0 |