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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
77c4b823daa25924e42b9613fee9df7dab7601e4 | 6,301 | py | Python | model/train/AdvancedEAST.py | JinGyeSetBirdsFree/FudanOCR | e6b18b0eefaf832b2eb7198f5df79e00bd4cee36 | [
"MIT"
] | 25 | 2020-02-29T12:14:10.000Z | 2020-04-24T07:56:06.000Z | model/train/AdvancedEAST.py | dun933/FudanOCR | fd79b679044ea23fd9eb30691453ed0805d2e98b | [
"MIT"
] | 33 | 2020-12-10T19:15:39.000Z | 2022-03-12T00:17:30.000Z | model/train/AdvancedEAST.py | dun933/FudanOCR | fd79b679044ea23fd9eb30691453ed0805d2e98b | [
"MIT"
] | 4 | 2020-02-29T12:14:18.000Z | 2020-04-12T12:26:50.000Z | # -*- coding: utf-8 -*-
def train_AEAST(config_file):
import sys
sys.path.append('./detection_model/AdvancedEAST')
import os
import argparse
import time
import numpy as numpy
import torch
import torch.nn as nn
import torch.backends.cudnn as cudnn
from torch.utils.d... | 40.651613 | 123 | 0.577845 | 749 | 6,301 | 4.699599 | 0.23498 | 0.03125 | 0.025568 | 0.008523 | 0.213636 | 0.184659 | 0.164205 | 0.153977 | 0.122727 | 0.099432 | 0 | 0.008947 | 0.308205 | 6,301 | 154 | 124 | 40.915584 | 0.798578 | 0.018568 | 0 | 0.096 | 0 | 0.016 | 0.107125 | 0.004983 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064 | false | 0 | 0.152 | 0.008 | 0.256 | 0.088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77c66ea30fa9ef6d5f9730bf0414d7cdb56d8682 | 3,579 | py | Python | jax_influence/selection.py | google-research/jax-influence | 74bd321156b5445bb35b9594568e4eaaec1a76a3 | [
"Apache-2.0"
] | 8 | 2022-02-17T10:19:27.000Z | 2022-03-28T12:33:57.000Z | jax_influence/selection.py | google-research/jax-influence | 74bd321156b5445bb35b9594568e4eaaec1a76a3 | [
"Apache-2.0"
] | null | null | null | jax_influence/selection.py | google-research/jax-influence | 74bd321156b5445bb35b9594568e4eaaec1a76a3 | [
"Apache-2.0"
] | 1 | 2022-03-02T14:32:56.000Z | 2022-03-02T14:32:56.000Z | # Copyright 2021 The Jax Influence Authors.
#
# 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 ... | 33.448598 | 79 | 0.740151 | 512 | 3,579 | 5.0625 | 0.298828 | 0.046296 | 0.020062 | 0.024691 | 0.393904 | 0.373071 | 0.373071 | 0.373071 | 0.320988 | 0.320988 | 0 | 0.006063 | 0.170439 | 3,579 | 106 | 80 | 33.764151 | 0.866959 | 0.492316 | 0 | 0 | 0 | 0 | 0.059942 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.093023 | false | 0 | 0.162791 | 0 | 0.348837 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77c6869548be7b262a6b24e861485690a9a1e3b0 | 20,327 | py | Python | CureIAM/processors/gcpcloudiam.py | gojek/CureIAM | 83cdf6ef4d61b563ae8ac69fbf008f8338f6361f | [
"Apache-2.0"
] | 17 | 2021-11-10T08:32:31.000Z | 2022-03-03T12:20:38.000Z | CureIAM/processors/gcpcloudiam.py | gojekfarm/CureIAM | 83cdf6ef4d61b563ae8ac69fbf008f8338f6361f | [
"Apache-2.0"
] | null | null | null | CureIAM/processors/gcpcloudiam.py | gojekfarm/CureIAM | 83cdf6ef4d61b563ae8ac69fbf008f8338f6361f | [
"Apache-2.0"
] | 3 | 2021-11-11T17:20:16.000Z | 2021-12-02T20:00:34.000Z | """Plugin to process the data retrieved from `gcpcloud.CureIAM` plugin
"""
import json
import logging
import datetime
from CureIAM.models.iamriskscore import IAMRiskScoreModel
from CureIAM.models.applyrecommendationmodel import IAMApplyRecommendationModel
from CureIAM import util
_log = logging.getLogger(__name__)
... | 46.197727 | 166 | 0.509421 | 1,615 | 20,327 | 6.095975 | 0.199381 | 0.059827 | 0.039716 | 0.009243 | 0.326663 | 0.254241 | 0.173794 | 0.136516 | 0.114678 | 0.101168 | 0 | 0.006461 | 0.413735 | 20,327 | 440 | 167 | 46.197727 | 0.819669 | 0.276775 | 0 | 0.208494 | 0 | 0 | 0.149329 | 0.04625 | 0 | 0 | 0 | 0.002273 | 0 | 1 | 0.023166 | false | 0.003861 | 0.023166 | 0 | 0.069498 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77c83499cfbfd5ad6ff4654b86b77b358a42fede | 7,864 | py | Python | models/abstract_model.py | kkangshen/bayesian-deep-rul | 449038571097cfccee5e128623a16a963a4dca63 | [
"MIT"
] | 6 | 2020-02-28T14:56:46.000Z | 2022-03-24T02:44:56.000Z | models/abstract_model.py | kkangshen/bayesian-deep-rul | 449038571097cfccee5e128623a16a963a4dca63 | [
"MIT"
] | null | null | null | models/abstract_model.py | kkangshen/bayesian-deep-rul | 449038571097cfccee5e128623a16a963a4dca63 | [
"MIT"
] | 4 | 2020-01-02T15:03:02.000Z | 2022-03-10T12:46:35.000Z | # -*- coding: utf-8 -*-
"""Abstract model definition."""
from collections import OrderedDict
import numpy as np
import torch
import torch.nn as nn
class AbstractModel(nn.Module):
def __init__(self, input_size):
"""
Parameters
----------
module : ModuleType
Module def... | 33.042017 | 131 | 0.517294 | 798 | 7,864 | 4.798246 | 0.245614 | 0.014364 | 0.028728 | 0.01567 | 0.20632 | 0.140507 | 0.086707 | 0.074171 | 0.051188 | 0.028728 | 0 | 0.017071 | 0.344481 | 7,864 | 237 | 132 | 33.181435 | 0.725703 | 0.192014 | 0 | 0.166667 | 0 | 0 | 0.115764 | 0.043582 | 0 | 0 | 0 | 0.004219 | 0.008333 | 1 | 0.058333 | false | 0 | 0.033333 | 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 |
77c9573c06e85833053d03d6dbce3da891ac8dbe | 4,316 | py | Python | ezql.py | Dimwest/MyEzQL | 866c7e853cf605d475e8204a7465f6e596bcf2d8 | [
"MIT"
] | 10 | 2019-01-18T15:54:35.000Z | 2019-02-21T16:18:41.000Z | ezql.py | Dimwest/MyEzQL | 866c7e853cf605d475e8204a7465f6e596bcf2d8 | [
"MIT"
] | 1 | 2020-08-08T20:50:00.000Z | 2020-08-08T20:50:00.000Z | ezql.py | Dimwest/MyEzQL | 866c7e853cf605d475e8204a7465f6e596bcf2d8 | [
"MIT"
] | null | null | null | import fire
from configparser import ConfigParser
from utils.processing import str_to_sql_dict
from utils.validation import *
from utils.logging import *
from parse.worker import Worker
from output.cmd import beautify
from output.mermaid import Mermaid
from output.json import to_json
from typing import Optional, List
f... | 37.530435 | 95 | 0.630908 | 560 | 4,316 | 4.789286 | 0.273214 | 0.02349 | 0.03915 | 0.032811 | 0.165548 | 0.155854 | 0.110365 | 0.082028 | 0.082028 | 0.035048 | 0 | 0 | 0.284291 | 4,316 | 114 | 96 | 37.859649 | 0.868242 | 0.377896 | 0 | 0 | 0 | 0 | 0.199037 | 0.013644 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.22 | 0 | 0.26 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77ce28391d9e87410ba9c6fe9f7e9101b1ee66d1 | 16,521 | py | Python | 04-data-lake/etl.py | Ceridan/data-engineering-projects | c608ea76e6db0069f1b8dc24b16c367cf243f657 | [
"MIT"
] | null | null | null | 04-data-lake/etl.py | Ceridan/data-engineering-projects | c608ea76e6db0069f1b8dc24b16c367cf243f657 | [
"MIT"
] | null | null | null | 04-data-lake/etl.py | Ceridan/data-engineering-projects | c608ea76e6db0069f1b8dc24b16c367cf243f657 | [
"MIT"
] | null | null | null | import configparser
import os
from pyspark.sql import SparkSession, Window
from pyspark.sql.functions import col, asc, desc
from pyspark.sql.functions import date_format, row_number, monotonically_increasing_id
from pyspark.sql.functions import year, month, dayofmonth, hour, weekofyear, date_format
from pyspark.sql.typ... | 44.056 | 120 | 0.685794 | 2,149 | 16,521 | 5.164262 | 0.161005 | 0.018021 | 0.036763 | 0.014868 | 0.460443 | 0.380699 | 0.301496 | 0.255902 | 0.156064 | 0.119121 | 0 | 0.00349 | 0.219539 | 16,521 | 374 | 121 | 44.173797 | 0.85722 | 0.409721 | 0 | 0.20202 | 0 | 0 | 0.192913 | 0.022984 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.035354 | 0 | 0.085859 | 0.09596 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77d27a48425b7756b0ea323bb46686f3b1ceed5d | 1,196 | py | Python | DataStructure and algorithms/Overallfibnocci.py | Rajatkhatri7/Project-Milap | 0bb5dfc05064a8727760755fa55e53fd7bb8d8d3 | [
"Apache-2.0"
] | null | null | null | DataStructure and algorithms/Overallfibnocci.py | Rajatkhatri7/Project-Milap | 0bb5dfc05064a8727760755fa55e53fd7bb8d8d3 | [
"Apache-2.0"
] | null | null | null | DataStructure and algorithms/Overallfibnocci.py | Rajatkhatri7/Project-Milap | 0bb5dfc05064a8727760755fa55e53fd7bb8d8d3 | [
"Apache-2.0"
] | null | null | null | # grows via 2^n/2
# fn= { 0 ; n=0
# 1 ; n=1
# f(n-1)+f(n-2) ; n>1}
def fib(n):
if n<=1:
return n
else:
return fib(n-1)+fib(n-2)
# for f(n)>n it will take very long time to compute
# bad algo
"""
F(n)
/ ... | 23.92 | 93 | 0.405518 | 197 | 1,196 | 2.42132 | 0.35533 | 0.079665 | 0.025157 | 0.033543 | 0.236897 | 0.224319 | 0.190776 | 0.190776 | 0.138365 | 0.138365 | 0 | 0.053779 | 0.424749 | 1,196 | 50 | 94 | 23.92 | 0.639535 | 0.129599 | 0 | 0.095238 | 0 | 0 | 0.228407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0 | 0 | 0.238095 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77d4c896f4135bf9076e4a4fc25159dd59f2bc8a | 5,765 | py | Python | unit-2/tower.py | GalvinGao/2019-ProgrammingCourse | b668bc9bab902959a574aa3db73ae481131c0c27 | [
"MIT"
] | null | null | null | unit-2/tower.py | GalvinGao/2019-ProgrammingCourse | b668bc9bab902959a574aa3db73ae481131c0c27 | [
"MIT"
] | null | null | null | unit-2/tower.py | GalvinGao/2019-ProgrammingCourse | b668bc9bab902959a574aa3db73ae481131c0c27 | [
"MIT"
] | null | null | null | import time
import turtle as t
t.mode('standard')
t.speed(8)
DISTANCE = 8
RESIZE_RATIO = 6
t.pensize(RESIZE_RATIO)
class Restorer:
def __init__(self):
self.last_pos = t.pos()
def restore(self):
t.goto(self.last_pos[0], self.last_pos[1])
class Draw:
@staticmethod
def goto(x, y, hea... | 27.716346 | 112 | 0.580399 | 815 | 5,765 | 3.958282 | 0.164417 | 0.064786 | 0.044637 | 0.017359 | 0.269374 | 0.179479 | 0.110353 | 0.087415 | 0.087415 | 0.087415 | 0 | 0.058879 | 0.269384 | 5,765 | 207 | 113 | 27.850242 | 0.707028 | 0.023244 | 0 | 0.323529 | 0 | 0 | 0.069205 | 0 | 0 | 0 | 0 | 0 | 0.017647 | 1 | 0.117647 | false | 0 | 0.011765 | 0 | 0.141176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77d58ca19b534449cc89976ecbaf5bc5474e985e | 14,960 | py | Python | Project_03_Books/src/game.py | moniqklimek/training | 51504ab839ed4b5ccc5731662a5077d5db334b93 | [
"MIT"
] | null | null | null | Project_03_Books/src/game.py | moniqklimek/training | 51504ab839ed4b5ccc5731662a5077d5db334b93 | [
"MIT"
] | null | null | null | Project_03_Books/src/game.py | moniqklimek/training | 51504ab839ed4b5ccc5731662a5077d5db334b93 | [
"MIT"
] | null | null | null | import json
import pprint
"""
TITLE: imagine buy in bookshoop - interaktive fun with User :)
ISSUE : help you choose the right item, get to know the User's preferences, i.e. - the thematic category that interests him, the results improved for him, a detailed description of the selected item
assumptions:
no method h... | 43.74269 | 281 | 0.657754 | 2,070 | 14,960 | 4.481159 | 0.204348 | 0.018974 | 0.015416 | 0.018974 | 0.407288 | 0.313389 | 0.268327 | 0.212807 | 0.205908 | 0.181544 | 0 | 0.014616 | 0.259091 | 14,960 | 341 | 282 | 43.870968 | 0.822266 | 0.215642 | 0 | 0.183432 | 0 | 0.023669 | 0.161118 | 0.015537 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106509 | false | 0.005917 | 0.011834 | 0 | 0.207101 | 0.201183 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77d754abc0dd2b42226712db869734718758f2ec | 1,592 | py | Python | books_and_chapters/urls.py | assulthoni/Django-Bookworm | d816c099b1eaceff05958ed3bf9e7dd611e9b5fd | [
"MIT"
] | null | null | null | books_and_chapters/urls.py | assulthoni/Django-Bookworm | d816c099b1eaceff05958ed3bf9e7dd611e9b5fd | [
"MIT"
] | null | null | null | books_and_chapters/urls.py | assulthoni/Django-Bookworm | d816c099b1eaceff05958ed3bf9e7dd611e9b5fd | [
"MIT"
] | null | null | null | """django_bookworm.books_and_chapters URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.hom... | 49.75 | 100 | 0.723618 | 230 | 1,592 | 4.878261 | 0.330435 | 0.057932 | 0.064171 | 0.02139 | 0.147059 | 0.104278 | 0.066845 | 0 | 0 | 0 | 0 | 0.005776 | 0.130025 | 1,592 | 31 | 101 | 51.354839 | 0.804332 | 0.422739 | 0 | 0 | 0 | 0 | 0.279605 | 0.076754 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77d8b870eb29ec01acb07c7f782c1ca8e13356c3 | 573 | py | Python | manage.py | mwaiyusuf/news_highlight | dfae21f67c3bbe20521a5c3c96a0a6a759fbd8fb | [
"MIT"
] | null | null | null | manage.py | mwaiyusuf/news_highlight | dfae21f67c3bbe20521a5c3c96a0a6a759fbd8fb | [
"MIT"
] | null | null | null | manage.py | mwaiyusuf/news_highlight | dfae21f67c3bbe20521a5c3c96a0a6a759fbd8fb | [
"MIT"
] | null | null | null | from app import create_app
from flask_script import Manager,Server #initialise our extensions and server class that aid in launching of our server
# Creating app instance
app = create_app('development')
manager = Manager(app)
manager.add_command('server',Server) #launch app server
@manager.command
def test():
""... | 30.157895 | 119 | 0.743455 | 77 | 573 | 5.376623 | 0.545455 | 0.094203 | 0.101449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002079 | 0.160558 | 573 | 18 | 120 | 31.833333 | 0.858628 | 0.300175 | 0 | 0 | 0 | 0 | 0.076531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 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 |
77d998bd3b17f3da023e7ce99e510488aaf3a564 | 9,384 | py | Python | src/robotrunner.py | bbokser/hopper-mpc-simple | 51fd3c0cb515d32b2a9cce93a0db45dddf95174c | [
"MIT"
] | null | null | null | src/robotrunner.py | bbokser/hopper-mpc-simple | 51fd3c0cb515d32b2a9cce93a0db45dddf95174c | [
"MIT"
] | null | null | null | src/robotrunner.py | bbokser/hopper-mpc-simple | 51fd3c0cb515d32b2a9cce93a0db45dddf95174c | [
"MIT"
] | null | null | null | """
Copyright (C) 2020-2022 Benjamin Bokser
"""
import plots
import mpc_cvx
# import time
# import sys
import numpy as np
import copy
from scipy.linalg import expm
import itertools
np.set_printoptions(suppress=True, linewidth=np.nan)
def projection(p0, v):
# find point p projected onto ground plane from point p0... | 43.646512 | 120 | 0.494991 | 1,551 | 9,384 | 2.829142 | 0.154094 | 0.036463 | 0.042388 | 0.043756 | 0.38742 | 0.317001 | 0.297402 | 0.26618 | 0.249772 | 0.214676 | 0 | 0.053106 | 0.361893 | 9,384 | 214 | 121 | 43.850467 | 0.679693 | 0.17679 | 0 | 0.121387 | 0 | 0 | 0.004044 | 0 | 0 | 0 | 0 | 0.004673 | 0 | 1 | 0.046243 | false | 0.00578 | 0.034682 | 0 | 0.127168 | 0.011561 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77ddff0fe98781dd316cac4d51b90e21e33f27de | 6,122 | py | Python | toy_example.py | chuchienshu/Pytorch-color-work | d4a6d052bd39e815f2303bc1583e2bc9bdb6cce3 | [
"MIT"
] | null | null | null | toy_example.py | chuchienshu/Pytorch-color-work | d4a6d052bd39e815f2303bc1583e2bc9bdb6cce3 | [
"MIT"
] | null | null | null | toy_example.py | chuchienshu/Pytorch-color-work | d4a6d052bd39e815f2303bc1583e2bc9bdb6cce3 | [
"MIT"
] | null | null | null | from sklearn.neighbors import NearestNeighbors
import numpy as np
import torch
import torch.nn as nn
from torch.autograd import Variable
def check_value(inds, val):
''' Check to see if an array is a single element equaling a particular value
for pre-processing inputs in a function '''
if(np.array(inds).siz... | 32.913978 | 128 | 0.611728 | 960 | 6,122 | 3.725 | 0.229167 | 0.026846 | 0.020134 | 0.018177 | 0.338647 | 0.302573 | 0.251678 | 0.214765 | 0.202461 | 0.14821 | 0 | 0.026526 | 0.22411 | 6,122 | 186 | 129 | 32.913978 | 0.726316 | 0.267723 | 0 | 0.243478 | 0 | 0 | 0.034727 | 0.020791 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069565 | false | 0 | 0.052174 | 0.008696 | 0.208696 | 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 |
77e5180d6ab5330f71187b669f22ec6397e5429c | 514 | py | Python | custom/_legacy/pact/reports/admin_reports.py | dslowikowski/commcare-hq | ad8885cf8dab69dc85cb64f37aeaf06106124797 | [
"BSD-3-Clause"
] | 1 | 2015-02-10T23:26:39.000Z | 2015-02-10T23:26:39.000Z | custom/_legacy/pact/reports/admin_reports.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | 1 | 2022-03-12T01:03:25.000Z | 2022-03-12T01:03:25.000Z | custom/_legacy/pact/reports/admin_reports.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | from corehq.apps.reports.generic import GenericTabularReport
from corehq.apps.reports.standard import CustomProjectReport
class PactAdminReport(GenericTabularReport, CustomProjectReport):
fields = ['corehq.apps.reports.filters.dates.DatespanFilter']
name = "PACT Admin Reports"
slug = "pactadmin"
email... | 24.47619 | 65 | 0.725681 | 53 | 514 | 6.962264 | 0.660377 | 0.081301 | 0.138211 | 0.113821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184825 | 514 | 20 | 66 | 25.7 | 0.880668 | 0 | 0 | 0 | 0 | 0 | 0.223092 | 0.158513 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77e99bc3b885eac60af8099d66d105d9eea0d121 | 4,807 | py | Python | tests/test_helper.py | INM-6/correlation-toolbox | 26b9e999069990a8b756d8a4d880bd152f95149f | [
"MIT"
] | 1 | 2018-10-12T22:54:16.000Z | 2018-10-12T22:54:16.000Z | tests/test_helper.py | INM-6/correlation-toolbox | 26b9e999069990a8b756d8a4d880bd152f95149f | [
"MIT"
] | 6 | 2017-04-03T07:44:17.000Z | 2018-06-08T08:37:47.000Z | tests/test_helper.py | INM-6/correlation-toolbox | 26b9e999069990a8b756d8a4d880bd152f95149f | [
"MIT"
] | 2 | 2017-04-05T04:42:12.000Z | 2018-07-17T11:43:24.000Z | # global imports
import unittest
import numpy as np
from future.builtins import range
# local imports
import correlation_toolbox.helper as cthlp
class TestHelper(unittest.TestCase):
def setUp(self):
np.random.seed(12345)
self.rate = 30. # (Hz)
self.T = 3e4 # (ms)
self.N = 100
... | 44.100917 | 78 | 0.607239 | 740 | 4,807 | 3.767568 | 0.17973 | 0.034075 | 0.047704 | 0.060258 | 0.572095 | 0.465208 | 0.39957 | 0.357245 | 0.346844 | 0.322453 | 0 | 0.030687 | 0.261078 | 4,807 | 108 | 79 | 44.509259 | 0.754223 | 0.097774 | 0 | 0.197674 | 0 | 0 | 0.001856 | 0 | 0 | 0 | 0 | 0 | 0.255814 | 1 | 0.093023 | false | 0 | 0.046512 | 0 | 0.151163 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77eb25a04371bec64faee1671d09a1d02f6b7e59 | 3,783 | py | Python | Tareas/Tarea_4.py | JESUS-2120/Python_2 | b1854b4118215684eb1adb5acdbc3313c2a15f20 | [
"Apache-2.0"
] | null | null | null | Tareas/Tarea_4.py | JESUS-2120/Python_2 | b1854b4118215684eb1adb5acdbc3313c2a15f20 | [
"Apache-2.0"
] | null | null | null | Tareas/Tarea_4.py | JESUS-2120/Python_2 | b1854b4118215684eb1adb5acdbc3313c2a15f20 | [
"Apache-2.0"
] | null | null | null | '''
NAME
Tarea_4.py
VERSION
1.0
AUTHOR
Victor Jesus Enriquez Castro <victorec@lcg.unam.mx>
DESCRIPTION
Empleando Entrez.einfo y ENtrez.read el programa imprime la descripcion
de los campos FieldList y LinkList en la base de datos protein, de la misma
... | 32.333333 | 168 | 0.68755 | 542 | 3,783 | 4.782288 | 0.333948 | 0.027778 | 0.015432 | 0.025077 | 0.31983 | 0.244599 | 0.177469 | 0.148148 | 0.127315 | 0.127315 | 0 | 0.008873 | 0.195612 | 3,783 | 116 | 169 | 32.612069 | 0.842918 | 0.539783 | 0 | 0.114286 | 0 | 0.085714 | 0.455125 | 0.028678 | 0 | 0 | 0 | 0.008621 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.057143 | 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 |
77ebdf9ca9d4616e429b8e92977f8018b29b5675 | 3,464 | py | Python | HDPython/v_enum.py | HardwareDesignWithPython/HDPython | aade03aaa092b1684fa12bffd17674cf1c45f5ac | [
"MIT"
] | null | null | null | HDPython/v_enum.py | HardwareDesignWithPython/HDPython | aade03aaa092b1684fa12bffd17674cf1c45f5ac | [
"MIT"
] | null | null | null | HDPython/v_enum.py | HardwareDesignWithPython/HDPython | aade03aaa092b1684fa12bffd17674cf1c45f5ac | [
"MIT"
] | 1 | 2021-10-20T20:08:16.000Z | 2021-10-20T20:08:16.000Z | import os,sys,inspect
from HDPython.base import *
from HDPython.v_symbol import v_symbol
from HDPython.primitive_type_converter import get_primitive_hdl_converter
from HDPython.lib_enums import varSig, InOut_t
class v_enum(HDPython_base):
def __init__(self,EnumIn,EnumVal=None,name=None, Inout = InOut_t.Interna... | 28.162602 | 134 | 0.602483 | 408 | 3,464 | 4.762255 | 0.208333 | 0.072054 | 0.062275 | 0.024704 | 0.215646 | 0.063819 | 0.036027 | 0.036027 | 0.036027 | 0 | 0 | 0.001244 | 0.303984 | 3,464 | 122 | 135 | 28.393443 | 0.804645 | 0 | 0 | 0.125 | 0 | 0 | 0.027425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0 | 0.0625 | 0.0375 | 0.4125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77ecf310ae779764d67ed3eb67a498968e7015a3 | 2,146 | py | Python | setup.py | Frojd/Fabrik | 9f2edbba97a7fd236b72a9b3010f6e912ab5c001 | [
"MIT"
] | 12 | 2015-11-03T20:41:29.000Z | 2019-02-15T17:13:27.000Z | setup.py | Frojd/Fabrik | 9f2edbba97a7fd236b72a9b3010f6e912ab5c001 | [
"MIT"
] | 35 | 2015-08-23T17:10:00.000Z | 2017-05-10T12:08:57.000Z | setup.py | Frojd/Fabrik | 9f2edbba97a7fd236b72a9b3010f6e912ab5c001 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import pip
from setuptools import setup, find_packages
import fabrik
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
sys.exit()
package_exclude = ("tests*", "examples*")
packages = find_packages(exclude=package_exclu... | 26.825 | 76 | 0.596925 | 234 | 2,146 | 5.380342 | 0.512821 | 0.047657 | 0.059571 | 0.015886 | 0.090548 | 0.090548 | 0.090548 | 0.090548 | 0.090548 | 0.090548 | 0 | 0.025031 | 0.255359 | 2,146 | 79 | 77 | 27.164557 | 0.762829 | 0.030755 | 0 | 0.223881 | 0 | 0 | 0.475686 | 0.052961 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.089552 | 0 | 0.089552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77efdc6a298f42286268601e0029f556def6374b | 12,607 | py | Python | tool.py | Illidanz/MonoPriTranslation | 2cff8fe3133d76e1311273ef3b54dde428151390 | [
"MIT"
] | 3 | 2021-10-31T04:20:16.000Z | 2022-02-16T04:12:57.000Z | tool.py | Illidanz/MonoPriTranslation | 2cff8fe3133d76e1311273ef3b54dde428151390 | [
"MIT"
] | 1 | 2021-11-01T10:27:59.000Z | 2021-11-01T10:27:59.000Z | tool.py | Illidanz/MonoPriTranslation | 2cff8fe3133d76e1311273ef3b54dde428151390 | [
"MIT"
] | null | null | null | import codecs
import csv
import filecmp
import os
import time
import click
import pyimgur
import requests
from zipfile import ZipFile, ZIP_DEFLATED
from hacktools import common, wii
version = "1.5.5"
isofile = "data/disc.iso"
infolder = "data/extract/"
outfolder = "data/repack/"
replacefolder = "data/replace/"
fontin ... | 43.622837 | 129 | 0.560482 | 1,435 | 12,607 | 4.86899 | 0.21115 | 0.040074 | 0.023615 | 0.03163 | 0.182625 | 0.152998 | 0.107915 | 0.074853 | 0.065407 | 0.065407 | 0 | 0.009718 | 0.298009 | 12,607 | 288 | 130 | 43.774306 | 0.779774 | 0.025224 | 0 | 0.146617 | 0 | 0 | 0.194528 | 0.041202 | 0 | 0 | 0.002117 | 0 | 0 | 1 | 0.022556 | false | 0 | 0.06391 | 0 | 0.090226 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77f166eca841bd7df6212b114048257be00c424b | 50,437 | py | Python | sequana/bedtools.py | brwnj/sequana | 58f6ca47815bf7253f27e4631d971a0a479c3a63 | [
"BSD-3-Clause"
] | null | null | null | sequana/bedtools.py | brwnj/sequana | 58f6ca47815bf7253f27e4631d971a0a479c3a63 | [
"BSD-3-Clause"
] | null | null | null | sequana/bedtools.py | brwnj/sequana | 58f6ca47815bf7253f27e4631d971a0a479c3a63 | [
"BSD-3-Clause"
] | 1 | 2019-10-11T18:21:05.000Z | 2019-10-11T18:21:05.000Z | # -*- coding: utf-8 -*-
#
# This file is part of Sequana software
#
# Copyright (c) 2016 - Sequana Development Team
#
# File author(s):
# Thomas Cokelaer <thomas.cokelaer@pasteur.fr>
# Dimitri Desvillechabrol <dimitri.desvillechabrol@pasteur.fr>,
# <d.desvillechabrol@gmail.com>
#
# Distributed un... | 36.761662 | 97 | 0.5606 | 6,124 | 50,437 | 4.497714 | 0.129327 | 0.019605 | 0.009803 | 0.005228 | 0.225094 | 0.1702 | 0.15143 | 0.126525 | 0.117303 | 0.091853 | 0 | 0.013141 | 0.333128 | 50,437 | 1,371 | 98 | 36.788476 | 0.805768 | 0.24948 | 0 | 0.25 | 0 | 0 | 0.105558 | 0.003184 | 0 | 0 | 0 | 0.002188 | 0.008413 | 1 | 0.097356 | false | 0.007212 | 0.020433 | 0.024038 | 0.210337 | 0.00601 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77f23de07c25946522c768f1ef7e8ffca7391f96 | 2,272 | py | Python | qsrlib/src/qsrlib_qsrs/qsr_tpcc.py | alexiatoumpa/QSR_Detector | ff92a128dddb613690a49a7b4130afeac0dd4381 | [
"MIT"
] | 15 | 2015-06-15T16:50:37.000Z | 2022-03-27T09:25:56.000Z | qsrlib/src/qsrlib_qsrs/qsr_tpcc.py | alexiatoumpa/QSR_Detector | ff92a128dddb613690a49a7b4130afeac0dd4381 | [
"MIT"
] | 205 | 2015-01-22T12:02:59.000Z | 2022-03-29T11:59:55.000Z | qsrlib/src/qsrlib_qsrs/qsr_tpcc.py | alexiatoumpa/QSR_Detector | ff92a128dddb613690a49a7b4130afeac0dd4381 | [
"MIT"
] | 16 | 2015-02-04T23:13:18.000Z | 2022-03-08T13:45:53.000Z | # -*- coding: utf-8 -*-
from __future__ import print_function, division
from qsrlib_qsrs.qsr_triadic_abstractclass import QSR_Triadic_1t_Abstractclass
import math
class QSR_TPCC(QSR_Triadic_1t_Abstractclass):
"""TPCC QSRs.
.. seealso:: For further details about TPCC, refer to its :doc:`description. <../handw... | 37.245902 | 108 | 0.559859 | 289 | 2,272 | 4.152249 | 0.449827 | 0.016667 | 0.023333 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019279 | 0.292254 | 2,272 | 60 | 109 | 37.866667 | 0.72699 | 0.12456 | 0 | 0 | 0 | 0 | 0.054731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.384615 | 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 |
77f68b4f89363b8438a93d741379bb05a3a09d63 | 1,053 | py | Python | arrandmatrix/q17.py | pengfei-chen/algorithm_qa | c2ccdcb77004e88279d61e4e433ee49527fc34d6 | [
"MIT"
] | 79 | 2018-03-27T12:37:49.000Z | 2022-01-21T10:18:17.000Z | arrandmatrix/q17.py | pengfei-chen/algorithm_qa | c2ccdcb77004e88279d61e4e433ee49527fc34d6 | [
"MIT"
] | null | null | null | arrandmatrix/q17.py | pengfei-chen/algorithm_qa | c2ccdcb77004e88279d61e4e433ee49527fc34d6 | [
"MIT"
] | 27 | 2018-04-08T03:07:06.000Z | 2021-10-30T00:01:50.000Z | """
问题描述:给定一个矩阵matrix,其中的值有正、负和0,返回子矩阵的最大累加和.
例如,矩阵matrix为
-90 48 78
64 -40 64
-81 -7 66
其中,最大累加和的子矩阵为:
48 78
-40 64
-7 66
所以返回累加和209.
例如,matrix为:
-1 -1 -1
-1 2 2
-1 -1 -1
其中,最大累加和的子矩阵为:
2 2
所以返回累加和为4.
"""
import sys
from arrandmatrix.q16 import MaxSum
class MaxMatrixSum:
@classmethod
def g... | 18.155172 | 69 | 0.545109 | 152 | 1,053 | 3.605263 | 0.388158 | 0.018248 | 0.016423 | 0.029197 | 0.113139 | 0.062044 | 0.062044 | 0.062044 | 0.062044 | 0 | 0 | 0.102273 | 0.331434 | 1,053 | 58 | 70 | 18.155172 | 0.676136 | 0.205128 | 0 | 0.074074 | 0 | 0 | 0.009639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0.037037 | 0.296296 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77f7e72e1c1010465e3c08a2178c53ca02ebd59a | 362 | py | Python | Beginner/Easy Math/easy_math.py | agnisain123/CodeChef-1 | c6316b179e4b055eb17ead9df8f93505d8fc1166 | [
"Apache-2.0"
] | null | null | null | Beginner/Easy Math/easy_math.py | agnisain123/CodeChef-1 | c6316b179e4b055eb17ead9df8f93505d8fc1166 | [
"Apache-2.0"
] | null | null | null | Beginner/Easy Math/easy_math.py | agnisain123/CodeChef-1 | c6316b179e4b055eb17ead9df8f93505d8fc1166 | [
"Apache-2.0"
] | null | null | null | t=int(input())
for _ in range(t):
n=int(input())
a=list(map(int, input().split()))
max_sum=0
for j in range(n):
for k in range(j+1, n):
num=a[j]*a[k]
add=0
while(num!=0):
add+=num%10
num=num//10
if max_sum<add:
... | 22.625 | 37 | 0.428177 | 57 | 362 | 2.631579 | 0.403509 | 0.16 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037915 | 0.417127 | 362 | 15 | 38 | 24.133333 | 0.672986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
77fb88e214d8327d25cb3dbd91a4d85fb6136d9e | 5,686 | py | Python | openapi_client/models/validation_error.py | brighthive/jdx-client-api-python | ed94c578a6c9a5e9aadf8764439c22783ac1d9d5 | [
"Apache-2.0"
] | null | null | null | openapi_client/models/validation_error.py | brighthive/jdx-client-api-python | ed94c578a6c9a5e9aadf8764439c22783ac1d9d5 | [
"Apache-2.0"
] | null | null | null | openapi_client/models/validation_error.py | brighthive/jdx-client-api-python | ed94c578a6c9a5e9aadf8764439c22783ac1d9d5 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
JDX reference application API
This is a collection of schemas and endpoints for the various JDX, Concentric Sky facing REST endpoints, the schemas define an API contract of sorts between the request and response expectations of the JDX reference application. This API is to be mutually deve... | 32.678161 | 317 | 0.615195 | 673 | 5,686 | 5.059435 | 0.219911 | 0.073421 | 0.074009 | 0.066079 | 0.381791 | 0.290455 | 0.254626 | 0.21674 | 0.1163 | 0.096329 | 0 | 0.022088 | 0.299332 | 5,686 | 173 | 318 | 32.867052 | 0.83258 | 0.352796 | 0 | 0.063291 | 0 | 0 | 0.125678 | 0.011802 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151899 | false | 0 | 0.037975 | 0 | 0.341772 | 0.025316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae03795c6c2f7e8cd5507cfab2b5d4572af1aac3 | 1,522 | py | Python | src/python/WMCore/WMBS/MySQL/Files/AddToFileset.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 21 | 2015-11-19T16:18:45.000Z | 2021-12-02T18:20:39.000Z | src/python/WMCore/WMBS/MySQL/Files/AddToFileset.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 5,671 | 2015-01-06T14:38:52.000Z | 2022-03-31T22:11:14.000Z | src/python/WMCore/WMBS/MySQL/Files/AddToFileset.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 67 | 2015-01-21T15:55:38.000Z | 2022-02-03T19:53:13.000Z | #!/usr/bin/env python
"""
_AddToFileset_
MySQL implementation of Files.AddToFileset
"""
import time
from WMCore.Database.DBFormatter import DBFormatter
class AddToFileset(DBFormatter):
sql = """INSERT IGNORE INTO wmbs_fileset_files (fileid, fileset, insert_time)
SELECT wmbs_file_details.id, :file... | 36.238095 | 84 | 0.580158 | 148 | 1,522 | 5.797297 | 0.371622 | 0.055944 | 0.104895 | 0.04662 | 0.118881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.336399 | 1,522 | 41 | 85 | 37.121951 | 0.849505 | 0.051905 | 0 | 0.137931 | 0 | 0 | 0.46899 | 0.078049 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.241379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7ac3b18e2b2f5eb9e5b456e6eaeeeea667be53a4 | 2,210 | py | Python | backend/src/Blueprints/Posts.py | mechaadi/OnlineLawyerSuite | a5debc337afe3f3693978177bf53d7646ae3536b | [
"MIT"
] | 3 | 2020-05-31T12:31:16.000Z | 2021-08-29T00:00:01.000Z | backend/src/Blueprints/Posts.py | mechaadi/OnlineLawyerSuite | a5debc337afe3f3693978177bf53d7646ae3536b | [
"MIT"
] | 21 | 2020-05-28T16:16:03.000Z | 2022-02-27T06:51:53.000Z | backend/src/Blueprints/Posts.py | mechaadi/OnlineLawyerSuite | a5debc337afe3f3693978177bf53d7646ae3536b | [
"MIT"
] | null | null | null | from flask import Flask, Blueprint, g, request
from src.model import Post, File
from src.db import db
from src.Middlewares.AuthMiddleware import *
from werkzeug.utils import secure_filename
import os
import dateutil.parser as dt
post_bp = Blueprint('post', __name__, url_prefix='/posts')
def respond(data, code):
... | 24.555556 | 95 | 0.609502 | 303 | 2,210 | 4.293729 | 0.310231 | 0.079939 | 0.042275 | 0.043044 | 0.257494 | 0.223674 | 0.120676 | 0.039969 | 0.039969 | 0 | 0 | 0.015729 | 0.252036 | 2,210 | 89 | 96 | 24.831461 | 0.771325 | 0.050226 | 0 | 0.241935 | 0 | 0 | 0.05364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0 | 0.112903 | 0 | 0.403226 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7ac6dc3dc3bb8ad5ce9781cd7166fbd71e9510f9 | 9,349 | py | Python | felpy/analysis/optics/complex/coherence.py | twguest/FELpy | 0ac9dd965b0d8e04dddbf2c9aef5ac137d1f0dfd | [
"Apache-2.0"
] | 1 | 2021-03-15T14:04:19.000Z | 2021-03-15T14:04:19.000Z | felpy/analysis/optics/complex/coherence.py | twguest/FELpy | 0ac9dd965b0d8e04dddbf2c9aef5ac137d1f0dfd | [
"Apache-2.0"
] | 2 | 2021-11-27T11:55:48.000Z | 2021-11-27T11:56:26.000Z | felpy/analysis/optics/complex/coherence.py | twguest/FELpy | 0ac9dd965b0d8e04dddbf2c9aef5ac137d1f0dfd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jun 15 14:24:28 2020
@author: twguest
"""
import os
import numpy as np
from time import time
from wpg import srwlib
from felpy.model.tools import radial_profile
#from wpg.wpg_uti_wf import get_axis
from tqdm import tqdm
from felpy.utils.job_utils imp... | 27.578171 | 93 | 0.568403 | 1,287 | 9,349 | 4.035742 | 0.181041 | 0.023104 | 0.020793 | 0.033885 | 0.621679 | 0.608587 | 0.591837 | 0.591837 | 0.591837 | 0.57836 | 0 | 0.02453 | 0.289229 | 9,349 | 339 | 94 | 27.578171 | 0.757111 | 0.233501 | 0 | 0.56051 | 0 | 0 | 0.048071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057325 | false | 0.006369 | 0.082803 | 0 | 0.197452 | 0.089172 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7ac87bf72cc8a3c3039638b11a435af514a8fc27 | 911 | py | Python | training_program_2019/core_python/basic/threading_join.py | jeffrey-zhang/learn | 7d9d53f955f0424ad4c68f69d5538867e5b7fa98 | [
"Apache-2.0"
] | 1 | 2020-10-12T01:23:51.000Z | 2020-10-12T01:23:51.000Z | training_program_2019/core_python/basic/threading_join.py | jeffrey-zhang/learn | 7d9d53f955f0424ad4c68f69d5538867e5b7fa98 | [
"Apache-2.0"
] | 1 | 2020-10-11T10:38:21.000Z | 2020-10-11T10:38:21.000Z | training_program_2019/core_python/basic/threading_join.py | jeffrey-zhang/learn | 7d9d53f955f0424ad4c68f69d5538867e5b7fa98 | [
"Apache-2.0"
] | 1 | 2020-09-07T07:22:54.000Z | 2020-09-07T07:22:54.000Z | import threading
import time
products = []
condition = threading.Condition()
class consumer(threading.Thread):
def consume(self):
global condition
global products
condition.acquire()
if len(products) == 0:
condition.wait()
print('consumer is notified: no pr... | 24.621622 | 95 | 0.594951 | 95 | 911 | 5.705263 | 0.473684 | 0.095941 | 0.066421 | 0.092251 | 0.228782 | 0.228782 | 0.228782 | 0.228782 | 0.228782 | 0.228782 | 0 | 0.012658 | 0.306257 | 911 | 37 | 96 | 24.621622 | 0.844937 | 0 | 0 | 0.275862 | 0 | 0 | 0.173246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.068966 | 0 | 0.241379 | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7ac9c5a18f03b6f72c0a1607e900467a67c17aa0 | 1,048 | py | Python | tests/performance/test_mm_lazy_eval.py | varun19299/FeatherMap | a3991ce48eed98584bc12d6ddcb6409ef3db5d60 | [
"MIT"
] | 14 | 2020-11-05T00:24:40.000Z | 2022-03-30T15:22:31.000Z | tests/performance/test_mm_lazy_eval.py | varun19299/FeatherMap | a3991ce48eed98584bc12d6ddcb6409ef3db5d60 | [
"MIT"
] | 4 | 2020-10-01T00:46:39.000Z | 2021-02-26T23:38:09.000Z | tests/performance/test_mm_lazy_eval.py | varun19299/FeatherMap | a3991ce48eed98584bc12d6ddcb6409ef3db5d60 | [
"MIT"
] | 2 | 2020-11-09T13:09:10.000Z | 2021-02-18T11:09:32.000Z | import torch
from feathermap.utils import timed
from math import sqrt
dim_in = 2 ** 14
dim_out = 2 ** 4
A = torch.randn(dim_in, dim_out)
B = torch.randn(dim_out, dim_in)
C = torch.rand(dim_in, dim_in)
D = torch.rand(dim_in, dim_in)
E = torch.rand(1, dim_out)
F = torch.rand(dim_out, dim_in)
G = torch.rand(int(sqrt(dim... | 18.714286 | 52 | 0.578244 | 208 | 1,048 | 2.802885 | 0.254808 | 0.145798 | 0.077187 | 0.082333 | 0.319039 | 0.319039 | 0.253859 | 0.253859 | 0.253859 | 0.253859 | 0 | 0.040353 | 0.243321 | 1,048 | 55 | 53 | 19.054545 | 0.69483 | 0.101145 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0 | 0.083333 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7ad04a1e5c739e7d4690a2753dc470af7567beec | 785 | py | Python | PythonWeb/example/App/urls.py | JimouChen/python-application | b7b16506a17e2c304d1c5fabd6385e96be211c56 | [
"Apache-2.0"
] | 1 | 2020-08-09T12:47:27.000Z | 2020-08-09T12:47:27.000Z | PythonWeb/example/App/urls.py | JimouChen/Python_Application | b7b16506a17e2c304d1c5fabd6385e96be211c56 | [
"Apache-2.0"
] | null | null | null | PythonWeb/example/App/urls.py | JimouChen/Python_Application | b7b16506a17e2c304d1c5fabd6385e96be211c56 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from django.urls import path
from App import views
app_name = 'App'
urlpatterns = [
path('', views.home, name='home'),
# 增删改
path('cud/', views.handle_data, name='handle_data'),
# 查询
path('search/', views.find_data, name='search'),
# 使用原生sql
path('rawsql/',... | 27.068966 | 66 | 0.63949 | 102 | 785 | 4.764706 | 0.372549 | 0.067901 | 0.057613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185987 | 785 | 28 | 67 | 28.035714 | 0.760563 | 0.081529 | 0 | 0 | 0 | 0 | 0.19128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7ad2462093f3bfe8307d27ce00eeee4b819dafcf | 5,098 | py | Python | carla_walker_agent/src/carla_walker_agent/carla_walker_agent.py | umateusz/ros-bridge | e1a99d94eca9fa82c7bfb8417d2282ef6939d8fa | [
"MIT"
] | null | null | null | carla_walker_agent/src/carla_walker_agent/carla_walker_agent.py | umateusz/ros-bridge | e1a99d94eca9fa82c7bfb8417d2282ef6939d8fa | [
"MIT"
] | null | null | null | carla_walker_agent/src/carla_walker_agent/carla_walker_agent.py | umateusz/ros-bridge | e1a99d94eca9fa82c7bfb8417d2282ef6939d8fa | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (c) 2020 Intel Corporation
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
#
"""
Agent for Walker
"""
import math
from nav_msgs.msg import Path, Odometry
from std_msgs.msg import Float64
from geometry_msgs.msg imp... | 29.988235 | 92 | 0.594547 | 549 | 5,098 | 5.298725 | 0.311475 | 0.049158 | 0.030938 | 0.030251 | 0.095222 | 0.052252 | 0 | 0 | 0 | 0 | 0 | 0.008745 | 0.304629 | 5,098 | 169 | 93 | 30.16568 | 0.811848 | 0.100235 | 0 | 0.156863 | 0 | 0 | 0.078887 | 0.0114 | 0 | 0 | 0 | 0.005917 | 0 | 1 | 0.068627 | false | 0.009804 | 0.098039 | 0 | 0.186275 | 0.009804 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7ad5b9de70a9e9b65388bd37817ad835c2ba9f1f | 5,125 | py | Python | megyr/config_validation.py | ExcaliburZero/megyr | f5543cebe0562c78b5d3c710bd6f11c0efbff25b | [
"MIT"
] | 1 | 2020-11-17T20:35:09.000Z | 2020-11-17T20:35:09.000Z | megyr/config_validation.py | ExcaliburZero/megyr | f5543cebe0562c78b5d3c710bd6f11c0efbff25b | [
"MIT"
] | 17 | 2018-09-25T18:37:17.000Z | 2020-03-31T03:54:36.000Z | megyr/config_validation.py | ExcaliburZero/megyr | f5543cebe0562c78b5d3c710bd6f11c0efbff25b | [
"MIT"
] | null | null | null | from typing import Any, Dict, List
def validate_config(config: Dict[str, Any]) -> List[str]:
errors: List[str] = []
assert_to_list(
errors,
"input" in config,
'[no_input] Could not find "input" section in config. "input" section must be present in order to run MESA or GYRE.',
)
... | 33.717105 | 202 | 0.606244 | 649 | 5,125 | 4.563945 | 0.181818 | 0.067522 | 0.085078 | 0.06077 | 0.435517 | 0.334571 | 0.272451 | 0.204254 | 0.144497 | 0.139095 | 0 | 0.002125 | 0.265366 | 5,125 | 151 | 203 | 33.940397 | 0.784595 | 0.169561 | 0 | 0.263158 | 0 | 0.052632 | 0.331964 | 0.0331 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.063158 | false | 0 | 0.010526 | 0.010526 | 0.115789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7ad705963a4ae17d0227c03011bc22494dcbdf66 | 674 | py | Python | cdhweb/pages/tests/test_context_processors.py | bwhicks/cdh-web | d6002dc1933a4d6e97f5459aafc9ab92cb1f8050 | [
"Apache-2.0"
] | 1 | 2017-11-21T16:02:33.000Z | 2017-11-21T16:02:33.000Z | cdhweb/pages/tests/test_context_processors.py | bwhicks/cdh-web | d6002dc1933a4d6e97f5459aafc9ab92cb1f8050 | [
"Apache-2.0"
] | 367 | 2017-08-14T16:05:41.000Z | 2021-11-03T15:29:18.000Z | cdhweb/pages/tests/test_context_processors.py | bwhicks/cdh-web | d6002dc1933a4d6e97f5459aafc9ab92cb1f8050 | [
"Apache-2.0"
] | 5 | 2017-09-08T21:08:49.000Z | 2020-10-02T04:39:37.000Z | import pytest
from wagtail.core.models import Page
from cdhweb.pages.context_processors import page_intro
from cdhweb.pages.models import LinkPage, PageIntro
@pytest.mark.django_db
def test_page_intro(rf):
root = Page.objects.get(title="Root")
link_page = LinkPage(title="Students", link_url="people/students"... | 32.095238 | 75 | 0.718101 | 96 | 674 | 4.90625 | 0.46875 | 0.133758 | 0.070064 | 0.072187 | 0.110403 | 0.110403 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15727 | 674 | 20 | 76 | 33.7 | 0.829225 | 0.087537 | 0 | 0 | 0 | 0 | 0.158497 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7ad8ae63fb76ddfd06eb6578ef0cef5a87d9b13a | 641 | py | Python | tri_selection.py | Erwanexyz/Python | 1197c0a27530b60e6cbe048758bfe86f0e159e95 | [
"MIT"
] | 1 | 2017-09-07T09:14:55.000Z | 2017-09-07T09:14:55.000Z | tri_selection.py | Erwanexyz/Python | 1197c0a27530b60e6cbe048758bfe86f0e159e95 | [
"MIT"
] | null | null | null | tri_selection.py | Erwanexyz/Python | 1197c0a27530b60e6cbe048758bfe86f0e159e95 | [
"MIT"
] | null | null | null | def tri_selection(tableau):
'''tri_selection (list(object) -> list(object)): trie un tableau'''
# Initialisation
'''taille (int) : taille du tableau'''
taille = len(tableau)
# Début du traitement
# Pour chaque élément tableau[i] du tableau
for i in range(taille):
# Pour chaque j... | 37.705882 | 79 | 0.609984 | 96 | 641 | 4.041667 | 0.53125 | 0.103093 | 0.115979 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029536 | 0.26053 | 641 | 17 | 80 | 37.705882 | 0.78903 | 0.393136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7ad8d19aeb7a5e334f966fd5933774700a903b04 | 5,297 | py | Python | main.py | AKBakshay/DCNet | 94d30ae44c95a8db7f7474fcf8cf63347271c1cb | [
"MIT"
] | 3 | 2021-04-18T07:56:18.000Z | 2021-08-15T11:30:25.000Z | main.py | AKBakshay/DCNet | 94d30ae44c95a8db7f7474fcf8cf63347271c1cb | [
"MIT"
] | null | null | null | main.py | AKBakshay/DCNet | 94d30ae44c95a8db7f7474fcf8cf63347271c1cb | [
"MIT"
] | null | null | null | from argparse import ArgumentParser
import torch
import torch.utils.data
import yaml
from torchvision import transforms
import src.config.config as config
from src.model.nn.dcnet import DCNet
from src.test.predictor import Predictor
from src.test.tester import Tester
from src.train.trainer import Trainer
... | 32.496933 | 92 | 0.570512 | 532 | 5,297 | 5.468045 | 0.195489 | 0.024751 | 0.055689 | 0.064971 | 0.465796 | 0.465796 | 0.411482 | 0.411482 | 0.36198 | 0.342729 | 0 | 0.00144 | 0.21314 | 5,297 | 162 | 93 | 32.697531 | 0.696497 | 0.092316 | 0 | 0.347826 | 0 | 0 | 0.184546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026087 | false | 0 | 0.086957 | 0 | 0.113043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7addb1ac9be726107051f2594c1af6bf1d661239 | 9,183 | py | Python | nitroml/automl/ensemble_selection/subpipeline.py | google/nitroml | 5eabdbe6de85ff7fdae4fefda7547c0c031f9431 | [
"Apache-2.0"
] | 43 | 2020-09-13T18:07:15.000Z | 2022-01-05T19:05:28.000Z | nitroml/automl/ensemble_selection/subpipeline.py | google/nitroml | 5eabdbe6de85ff7fdae4fefda7547c0c031f9431 | [
"Apache-2.0"
] | 4 | 2020-09-14T13:15:09.000Z | 2021-11-21T11:21:13.000Z | nitroml/automl/ensemble_selection/subpipeline.py | google/nitroml | 5eabdbe6de85ff7fdae4fefda7547c0c031f9431 | [
"Apache-2.0"
] | 5 | 2020-09-14T13:03:04.000Z | 2021-10-21T01:55:48.000Z | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 40.453744 | 86 | 0.732658 | 1,145 | 9,183 | 5.689956 | 0.253275 | 0.046662 | 0.050652 | 0.053722 | 0.268304 | 0.211512 | 0.12218 | 0.071834 | 0.043592 | 0.043592 | 0 | 0.006194 | 0.173691 | 9,183 | 226 | 87 | 40.632743 | 0.852399 | 0.27638 | 0 | 0.105634 | 0 | 0 | 0.062423 | 0.030055 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06338 | false | 0 | 0.119718 | 0 | 0.28169 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7ade9e743940d11d6af70b1681562c89779125eb | 23,545 | py | Python | main/academy/views.py | UsamaKashif/studentutor | 7aa5407ac81134a49e474726220e48beaadc9390 | [
"MIT"
] | 7 | 2021-01-17T23:10:15.000Z | 2021-02-01T21:35:36.000Z | main/academy/views.py | DiveshTheReal/studentutor | 0d3ef57887bde4dd2ee40d68015598f9c8052ffd | [
"MIT"
] | 7 | 2021-01-17T15:10:47.000Z | 2022-03-12T00:53:49.000Z | main/academy/views.py | DiveshTheReal/studentutor | 0d3ef57887bde4dd2ee40d68015598f9c8052ffd | [
"MIT"
] | 3 | 2021-01-18T09:36:16.000Z | 2021-01-20T16:29:40.000Z | from django.shortcuts import render,redirect
from django.contrib.auth.models import Group
from .forms import AcademySignUpForm, AcademyProfile, ProfilePicture, PostAnAdForm, AboutAcademyForm
from django.contrib.auth.models import User
from django.views.generic import RedirectView
from .decorators import unauthentic... | 33.302687 | 149 | 0.615715 | 2,477 | 23,545 | 5.641502 | 0.115462 | 0.028338 | 0.023114 | 0.027909 | 0.475383 | 0.431015 | 0.376342 | 0.366466 | 0.302061 | 0.288393 | 0 | 0.00237 | 0.283075 | 23,545 | 706 | 150 | 33.349858 | 0.825474 | 0.030622 | 0 | 0.432532 | 0 | 0 | 0.11711 | 0.032765 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033272 | false | 0 | 0.042514 | 0 | 0.131238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7ae0cbb3da1cad9d593dd273b1430c763adce93f | 2,628 | py | Python | bin/Lib/tkinter/test/support.py | yousafsyed/casperjs | ed077ae9e42cf8fb9e023e9b6840d3cea11bac40 | [
"MIT"
] | 36 | 2015-02-04T10:43:31.000Z | 2022-03-30T13:01:12.000Z | bin/Lib/tkinter/test/support.py | yousafsyed/casperjs | ed077ae9e42cf8fb9e023e9b6840d3cea11bac40 | [
"MIT"
] | 9 | 2015-03-17T05:56:16.000Z | 2021-11-17T09:31:50.000Z | bin/Lib/tkinter/test/support.py | yousafsyed/casperjs | ed077ae9e42cf8fb9e023e9b6840d3cea11bac40 | [
"MIT"
] | 22 | 2015-05-13T17:37:35.000Z | 2022-01-25T06:24:42.000Z | import sys
import tkinter
import unittest
from test.support import requires
def get_tk_root():
requires('gui') # raise exception if tk unavailable
try:
root = tkinter._default_root
except AttributeError:
# it is possible to disable default root in Tkinter, although
# I h... | 28.565217 | 73 | 0.603501 | 335 | 2,628 | 4.608955 | 0.364179 | 0.046632 | 0.049223 | 0.007772 | 0.13342 | 0.107513 | 0.107513 | 0.07772 | 0.07772 | 0.07772 | 0 | 0.011646 | 0.281202 | 2,628 | 91 | 74 | 28.879121 | 0.805717 | 0.128995 | 0 | 0.142857 | 0 | 0 | 0.041832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128571 | false | 0 | 0.071429 | 0.028571 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7ae6eee9c017c38595289696d2aff8e25f24cb29 | 1,753 | py | Python | databricks/pixels/path_extractor.py | dmoore247/pixels | cf78ab016530c42bc36538a9b812fe23107f87d7 | [
"Apache-2.0"
] | 2 | 2021-03-28T18:50:50.000Z | 2021-08-09T02:06:15.000Z | databricks/pixels/path_extractor.py | dmoore247/pixels | cf78ab016530c42bc36538a9b812fe23107f87d7 | [
"Apache-2.0"
] | null | null | null | databricks/pixels/path_extractor.py | dmoore247/pixels | cf78ab016530c42bc36538a9b812fe23107f87d7 | [
"Apache-2.0"
] | null | null | null | from pyspark.ml.pipeline import Transformer
import pyspark.sql.functions as f
import pyspark.sql.types as t
from pyspark.sql import DataFrame
class PathExtractor(Transformer):
# Day extractor inherit of property of Transformer
def __init__(self, inputCol='path', tagsCol = "tags", basePath='dbfs:/'):
s... | 42.756098 | 111 | 0.557901 | 183 | 1,753 | 5.218579 | 0.459016 | 0.050262 | 0.058639 | 0.037696 | 0.108901 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004992 | 0.314318 | 1,753 | 41 | 112 | 42.756098 | 0.789517 | 0.081004 | 0 | 0 | 0 | 0 | 0.139913 | 0.01624 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7aec991a251b8b5ba72c6f603e780ca170fd3d9c | 16,092 | py | Python | SMI/pycopia/SMI/Compile.py | kdart/pycopia | 1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d | [
"Apache-2.0"
] | 89 | 2015-03-26T11:25:20.000Z | 2022-01-12T06:25:14.000Z | SMI/pycopia/SMI/Compile.py | kdart/pycopia | 1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d | [
"Apache-2.0"
] | 1 | 2015-07-05T03:27:43.000Z | 2015-07-11T06:21:20.000Z | SMI/pycopia/SMI/Compile.py | kdart/pycopia | 1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d | [
"Apache-2.0"
] | 30 | 2015-04-30T01:35:54.000Z | 2022-01-12T06:19:49.000Z | #!/usr/bin/python2.7
# -*- coding: utf-8 -*-
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
# 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
... | 35.135371 | 108 | 0.59222 | 1,881 | 16,092 | 4.945774 | 0.213184 | 0.031603 | 0.043749 | 0.019349 | 0.193486 | 0.168118 | 0.127916 | 0.091153 | 0.06987 | 0.06987 | 0 | 0.001731 | 0.282066 | 16,092 | 457 | 109 | 35.212254 | 0.803514 | 0.106078 | 0 | 0.149296 | 0 | 0 | 0.114955 | 0.017857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101408 | false | 0.005634 | 0.076056 | 0.005634 | 0.23662 | 0.028169 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7aed93f1001f0b20c9235af1ae0433ce9cdab764 | 960 | py | Python | burotel/indico_burotel/migrations/20211029_1202_564d660d4ddb_create_count_weekdays_function.py | bpedersen2/indico-plugins-cern | c4f06d11d981c316fc8de2892758484deb58e2f5 | [
"MIT"
] | null | null | null | burotel/indico_burotel/migrations/20211029_1202_564d660d4ddb_create_count_weekdays_function.py | bpedersen2/indico-plugins-cern | c4f06d11d981c316fc8de2892758484deb58e2f5 | [
"MIT"
] | null | null | null | burotel/indico_burotel/migrations/20211029_1202_564d660d4ddb_create_count_weekdays_function.py | bpedersen2/indico-plugins-cern | c4f06d11d981c316fc8de2892758484deb58e2f5 | [
"MIT"
] | null | null | null | """Create count_weekdays function
Revision ID: 564d660d4ddb
Revises:
Create Date: 2021-10-29 12:02:59.409012
"""
import textwrap
from alembic import op
from sqlalchemy.sql.ddl import CreateSchema, DropSchema
# revision identifiers, used by Alembic.
revision = '564d660d4ddb'
down_revision = None
branch_labels = Non... | 23.414634 | 91 | 0.730208 | 127 | 960 | 5.338583 | 0.503937 | 0.09587 | 0.044248 | 0.070796 | 0.165192 | 0.165192 | 0.165192 | 0.165192 | 0.165192 | 0.165192 | 0 | 0.046482 | 0.170833 | 960 | 40 | 92 | 24 | 0.805276 | 0.152083 | 0 | 0 | 0 | 0 | 0.511772 | 0.128872 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7aef5d40168535dab3efb9c32c0b60a29e7ae107 | 2,327 | py | Python | models/utils.py | ZephyrII/competitive_colaboration | a557d1e23ef2c0b8e3794f085a79bfffb860f9df | [
"MIT"
] | 357 | 2019-03-12T07:17:32.000Z | 2022-03-24T14:13:24.000Z | models/utils.py | DevLooptt/SJTU-CS386-2021Fall-DIP-Project | 2167e089be80ca01911ba55c07b83c9f26f147e7 | [
"MIT"
] | 27 | 2019-03-11T19:16:11.000Z | 2021-05-30T13:30:19.000Z | models/utils.py | DevLooptt/SJTU-CS386-2021Fall-DIP-Project | 2167e089be80ca01911ba55c07b83c9f26f147e7 | [
"MIT"
] | 66 | 2019-03-27T14:16:22.000Z | 2021-11-11T12:40:33.000Z | from __future__ import division
import math
import torch
import torch.nn as nn
def conv(in_planes, out_planes, stride=1, batch_norm=False):
if batch_norm:
return nn.Sequential(
nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=1, bias=False),
nn.BatchNorm2d(ou... | 34.220588 | 107 | 0.644177 | 341 | 2,327 | 4.190616 | 0.211144 | 0.075577 | 0.083975 | 0.071379 | 0.550035 | 0.550035 | 0.550035 | 0.550035 | 0.475857 | 0.418474 | 0 | 0.029809 | 0.235926 | 2,327 | 67 | 108 | 34.731343 | 0.773903 | 0 | 0 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.076923 | 0.019231 | 0.326923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7af19d3043c8b6728ea0912a528bf1eada7c558c | 2,806 | py | Python | scripts/simulator_experiments/real_government_strategy_experiments.py | alfred100p/PandemicSimulator | 2cb22c4b5c55d54a420fd104c74918d76189feb9 | [
"Apache-2.0"
] | null | null | null | scripts/simulator_experiments/real_government_strategy_experiments.py | alfred100p/PandemicSimulator | 2cb22c4b5c55d54a420fd104c74918d76189feb9 | [
"Apache-2.0"
] | null | null | null | scripts/simulator_experiments/real_government_strategy_experiments.py | alfred100p/PandemicSimulator | 2cb22c4b5c55d54a420fd104c74918d76189feb9 | [
"Apache-2.0"
] | null | null | null | # Confidential, Copyright 2020, Sony Corporation of America, All rights reserved.
from matplotlib import pyplot as plt
import pandemic_simulator as ps
def eval_government_strategies(experiment_name: str, opts: ps.sh.EvaluationOpts) -> None:
data_saver = ps.data.H5DataSaver(experiment_name, path=opts.data_saver_... | 45.258065 | 89 | 0.580542 | 309 | 2,806 | 4.957929 | 0.36246 | 0.039164 | 0.111619 | 0.140992 | 0.45953 | 0.432115 | 0.432115 | 0.351175 | 0.351175 | 0.351175 | 0 | 0.017307 | 0.341055 | 2,806 | 61 | 90 | 46 | 0.811249 | 0.050962 | 0 | 0.2 | 0 | 0 | 0.042857 | 0.009774 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0.02 | 0.04 | 0 | 0.06 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7af7571d71981a894e8403a4dbebd261f79a20cf | 486 | py | Python | code/gits_version.py | ineelshah/GITS2.1-I.R.I.S | 12c4455ea55920e0de94a76f45b26e3e43cbcced | [
"MIT"
] | 1 | 2021-11-28T12:18:43.000Z | 2021-11-28T12:18:43.000Z | code/gits_version.py | ineelshah/GITS2.1-I.R.I.S | 12c4455ea55920e0de94a76f45b26e3e43cbcced | [
"MIT"
] | 20 | 2021-11-26T17:59:00.000Z | 2022-01-29T10:44:15.000Z | code/gits_version.py | jayrshah98/GITS2.1-I.R.I.S | 2891ba27b3309bbc7e8ff25ed221d3f1c78fb9d3 | [
"MIT"
] | 3 | 2021-11-28T21:48:50.000Z | 2022-01-05T15:44:06.000Z | import subprocess
from subprocess import PIPE
def gits_version(args):
try:
ver = list()
ver.append("git")
ver.append("--version")
process1 = subprocess.Popen(ver, stdout=PIPE, stderr=PIPE)
stdout, stderr = process1.communicate()
print(stdout.decode("UTF-8"))
ex... | 24.3 | 66 | 0.615226 | 57 | 486 | 5.22807 | 0.614035 | 0.073826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0.265432 | 486 | 19 | 67 | 25.578947 | 0.826331 | 0 | 0 | 0 | 0 | 0 | 0.150206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.333333 | 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 |
7af95ca39bf7740aabcc3f766de8108b97e29b27 | 921 | py | Python | sourcecode/src/vx/spix/Util.py | ivarvb/SPIX | 6c757b69c266f738d66164fa643a09f77721880d | [
"MIT"
] | null | null | null | sourcecode/src/vx/spix/Util.py | ivarvb/SPIX | 6c757b69c266f738d66164fa643a09f77721880d | [
"MIT"
] | null | null | null | sourcecode/src/vx/spix/Util.py | ivarvb/SPIX | 6c757b69c266f738d66164fa643a09f77721880d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os
import ujson
from datetime import datetime
class Util:
@staticmethod
def write(file, obj):
with open(file, "w") as filef:
filef.write(ujson.dumps(obj))
@sta... | 21.418605 | 54 | 0.591748 | 117 | 921 | 4.65812 | 0.504274 | 0.165138 | 0.044037 | 0.055046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004594 | 0.290988 | 921 | 43 | 55 | 21.418605 | 0.830015 | 0.061889 | 0 | 0.1875 | 0 | 0 | 0.016241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0.0625 | 0.53125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7afb55eccc74a4c6a98c9ac3dd757cd060175686 | 1,005 | py | Python | nmea_date_fix.py | hsur/NmeaDateFix | 4585dc9541bb2ae87dfc0160cc5006960813a0d3 | [
"BSD-2-Clause"
] | null | null | null | nmea_date_fix.py | hsur/NmeaDateFix | 4585dc9541bb2ae87dfc0160cc5006960813a0d3 | [
"BSD-2-Clause"
] | null | null | null | nmea_date_fix.py | hsur/NmeaDateFix | 4585dc9541bb2ae87dfc0160cc5006960813a0d3 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# vim:fenc=utf-8 ff=unix ft=python ts=4 sw=4 sts=4 noet :
import os
import sys
import datetime
from pynmea2 import NMEASentence, ParseError
if len(sys.argv) != 2:
print("Usage: %s nmeafile.nmea" % sys.argv[0] )
sys.exit(1)
file_path = os.path.abspath(sys.argv[1])
tmp_path = os.p... | 29.558824 | 91 | 0.649751 | 163 | 1,005 | 3.92638 | 0.478528 | 0.05 | 0.046875 | 0.040625 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019536 | 0.185075 | 1,005 | 33 | 92 | 30.454545 | 0.761905 | 0.108458 | 0 | 0 | 0 | 0 | 0.084983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7afc056cd047372b424519a16da1dae8715cba34 | 1,103 | py | Python | coinkit/keyspace.py | mflaxman/coink | 8ce28ac4ff56e2320bf452d0559b83baf40b2b51 | [
"MIT"
] | 5 | 2017-09-06T11:59:50.000Z | 2019-02-17T21:02:47.000Z | coinkit/keyspace.py | shea256/coinkit | 81e86f4ea3dbf6622953c085016445fb4121fb44 | [
"MIT"
] | null | null | null | coinkit/keyspace.py | shea256/coinkit | 81e86f4ea3dbf6622953c085016445fb4121fb44 | [
"MIT"
] | 2 | 2015-01-23T03:10:25.000Z | 2021-11-18T01:58:31.000Z | # -*- coding: utf-8 -*-
"""
Coinkit
~~~~~
:copyright: (c) 2013 by Halfmoon Labs
:license: MIT, see LICENSE for more details.
"""
import re
def int_to_hex(i):
return re.sub(r'^0x|L$', '', hex(i))
def int_to_string(integer, keyspace_chars):
""" Turn a positive integer into a string. """
if... | 29.810811 | 74 | 0.668178 | 145 | 1,103 | 4.910345 | 0.434483 | 0.109551 | 0.022472 | 0.050562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012717 | 0.215775 | 1,103 | 37 | 75 | 29.810811 | 0.810405 | 0.224841 | 0 | 0 | 0 | 0 | 0.030713 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.190476 | false | 0 | 0.047619 | 0.047619 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7afcbfcd3c3962e9a985188562c99110c3140f93 | 18,907 | py | Python | cinder/zonemanager/drivers/brocade/brcd_rest_fc_zone_client.py | lightsey/cinder | e03d68e42e57a63f8d0f3e177fb4287290612b24 | [
"Apache-2.0"
] | 571 | 2015-01-01T17:47:26.000Z | 2022-03-23T07:46:36.000Z | cinder/zonemanager/drivers/brocade/brcd_rest_fc_zone_client.py | lightsey/cinder | e03d68e42e57a63f8d0f3e177fb4287290612b24 | [
"Apache-2.0"
] | 37 | 2015-01-22T23:27:04.000Z | 2021-02-05T16:38:48.000Z | cinder/zonemanager/drivers/brocade/brcd_rest_fc_zone_client.py | lightsey/cinder | e03d68e42e57a63f8d0f3e177fb4287290612b24 | [
"Apache-2.0"
] | 841 | 2015-01-04T17:17:11.000Z | 2022-03-31T12:06:51.000Z | # (c) Copyright 2019 Brocade, a Broadcom Company
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#... | 45.779661 | 79 | 0.587825 | 2,140 | 18,907 | 4.93271 | 0.11729 | 0.070197 | 0.03202 | 0.024252 | 0.60648 | 0.566029 | 0.526904 | 0.503221 | 0.480296 | 0.41673 | 0 | 0.006436 | 0.326123 | 18,907 | 412 | 80 | 45.890777 | 0.82207 | 0.086582 | 0 | 0.491279 | 0 | 0 | 0.065634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055233 | false | 0.005814 | 0.026163 | 0.002907 | 0.110465 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb00617057f78b6193060f769f38f73ce61320ea | 1,232 | py | Python | eas_lookup/__init__.py | SFDigitalServices/address-microservice-fn-py | 37bba144df2cc5a95822ba79c90de48c9dc7beb1 | [
"MIT"
] | null | null | null | eas_lookup/__init__.py | SFDigitalServices/address-microservice-fn-py | 37bba144df2cc5a95822ba79c90de48c9dc7beb1 | [
"MIT"
] | null | null | null | eas_lookup/__init__.py | SFDigitalServices/address-microservice-fn-py | 37bba144df2cc5a95822ba79c90de48c9dc7beb1 | [
"MIT"
] | null | null | null | """ eas/lookup init file """
import os
import json
import logging
import requests
import azure.functions as func
from shared_code.common import func_json_response
def main(req: func.HttpRequest) -> func.HttpResponse:
""" main function for eas/lookup """
logging.info('EAS Lookup processed a request.')
try... | 30.8 | 95 | 0.602273 | 145 | 1,232 | 5.02069 | 0.572414 | 0.049451 | 0.04533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004444 | 0.269481 | 1,232 | 39 | 96 | 31.589744 | 0.804444 | 0.064935 | 0 | 0 | 0 | 0 | 0.28007 | 0.043898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.206897 | 0 | 0.310345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb006a911bddb51da85b674ee0ef5ef33b604be7 | 2,228 | py | Python | recipes-bsp/polyos-setup/polyos-setup/polyaudio.py | PolyVection/meta-polyvection | a24fb91c4144e4d6e5fcaa73f456f805e30b751b | [
"MIT"
] | null | null | null | recipes-bsp/polyos-setup/polyos-setup/polyaudio.py | PolyVection/meta-polyvection | a24fb91c4144e4d6e5fcaa73f456f805e30b751b | [
"MIT"
] | null | null | null | recipes-bsp/polyos-setup/polyos-setup/polyaudio.py | PolyVection/meta-polyvection | a24fb91c4144e4d6e5fcaa73f456f805e30b751b | [
"MIT"
] | 1 | 2018-04-13T22:32:38.000Z | 2018-04-13T22:32:38.000Z | #!/usr/bin/python3
# Copyright (c) 2017, PolyVection UG.
#
# Based on configure-edison, Intel Corporation.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU Lesser General Public License,
# version 2.1, as published by the Free Software Foundation.
... | 27.170732 | 76 | 0.606373 | 325 | 2,228 | 4.156923 | 0.387692 | 0.106588 | 0.108808 | 0.062176 | 0.399704 | 0.399704 | 0.352332 | 0.327905 | 0.327905 | 0.327905 | 0 | 0.024915 | 0.207361 | 2,228 | 81 | 77 | 27.506173 | 0.740091 | 0.270197 | 0 | 0.566667 | 0 | 0 | 0.368715 | 0.1018 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.2 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb015fa5e2c4d8430f9e89af39073bf40a1f5fc0 | 6,168 | py | Python | 3dcdrl/create_rollout_videos.py | NicholasSperryGrandhomme/Improving-RL-Navigation-using-TTA | 8e0a405589a9b0bd3bd543dda72bf2325ebc9126 | [
"MIT"
] | null | null | null | 3dcdrl/create_rollout_videos.py | NicholasSperryGrandhomme/Improving-RL-Navigation-using-TTA | 8e0a405589a9b0bd3bd543dda72bf2325ebc9126 | [
"MIT"
] | null | null | null | 3dcdrl/create_rollout_videos.py | NicholasSperryGrandhomme/Improving-RL-Navigation-using-TTA | 8e0a405589a9b0bd3bd543dda72bf2325ebc9126 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 21 09:19:33 2018
@author: anonymous
"""
import os
import torch
import numpy as np
from arguments import parse_a2c_args
from multi_env import MultiEnv
from models import CNNPolicy
from a2c_agent import *
from utils import initialize_logging
from doom... | 33.521739 | 130 | 0.600681 | 850 | 6,168 | 4.137647 | 0.296471 | 0.022178 | 0.011373 | 0.011373 | 0.246801 | 0.194484 | 0.184817 | 0.171737 | 0.171737 | 0.143304 | 0 | 0.02116 | 0.287451 | 6,168 | 183 | 131 | 33.704918 | 0.779067 | 0.059176 | 0 | 0.289855 | 0 | 0 | 0.108094 | 0.051712 | 0 | 0 | 0 | 0 | 0.014493 | 1 | 0.021739 | false | 0 | 0.094203 | 0 | 0.130435 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bb021a30b50060269f34e2949685cc9a7971c175 | 6,706 | py | Python | napi/tests.py | abakan-zz/napi | 314da65bd78e2c716b7efb6deaf3816d8f38f7fd | [
"MIT"
] | null | null | null | napi/tests.py | abakan-zz/napi | 314da65bd78e2c716b7efb6deaf3816d8f38f7fd | [
"MIT"
] | 1 | 2015-08-03T00:41:59.000Z | 2015-08-07T06:37:26.000Z | napi/tests.py | abakan/napi | 314da65bd78e2c716b7efb6deaf3816d8f38f7fd | [
"MIT"
] | null | null | null | from nose.tools import raises
import numpy as np
from napi import neval
from napi.transformers import NapiTransformer, LazyTransformer
from napi.transformers import short_circuit_and
TRANSFORMERS = [NapiTransformer]#, LazyTransformer]
randbools = lambda *n: np.random.randn(*n) < 0
def short_circuit_and_(arrays, sha... | 27.710744 | 82 | 0.53892 | 1,061 | 6,706 | 3.287465 | 0.111216 | 0.085149 | 0.065367 | 0.040998 | 0.502007 | 0.461009 | 0.409117 | 0.372133 | 0.372133 | 0.316227 | 0 | 0.036967 | 0.290039 | 6,706 | 242 | 83 | 27.710744 | 0.695652 | 0.00507 | 0 | 0.423841 | 0 | 0 | 0.121598 | 0 | 0 | 0 | 0 | 0 | 0.033113 | 1 | 0.112583 | false | 0 | 0.039735 | 0 | 0.152318 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb037b1a6312e7d97680adcc0f7b31cd176631f1 | 8,621 | py | Python | src/api/impl/review.py | fekblom/critic | a6b60c9053e13d4c878d50531860d7389568626d | [
"Apache-2.0"
] | null | null | null | src/api/impl/review.py | fekblom/critic | a6b60c9053e13d4c878d50531860d7389568626d | [
"Apache-2.0"
] | null | null | null | src/api/impl/review.py | fekblom/critic | a6b60c9053e13d4c878d50531860d7389568626d | [
"Apache-2.0"
] | null | null | null | # -*- mode: python; encoding: utf-8 -*-
#
# Copyright 2014 the Critic contributors, Opera Software ASA
#
# 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/LI... | 43.540404 | 91 | 0.570931 | 884 | 8,621 | 5.401584 | 0.211538 | 0.021361 | 0.039791 | 0.019058 | 0.409843 | 0.366073 | 0.347853 | 0.334031 | 0.308063 | 0.226597 | 0 | 0.002834 | 0.345088 | 8,621 | 197 | 92 | 43.761421 | 0.842898 | 0.083981 | 0 | 0.32 | 0 | 0 | 0.248283 | 0.032055 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113333 | false | 0 | 0.013333 | 0.033333 | 0.213333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb03c2e16d10a68817b5577a1dbdeba0377e167e | 8,833 | py | Python | runner/runner/main.py | BinalModi/reproserver | 2c1f86b67ba57473b507217a3289d92697a09665 | [
"BSD-3-Clause"
] | null | null | null | runner/runner/main.py | BinalModi/reproserver | 2c1f86b67ba57473b507217a3289d92697a09665 | [
"BSD-3-Clause"
] | null | null | null | runner/runner/main.py | BinalModi/reproserver | 2c1f86b67ba57473b507217a3289d92697a09665 | [
"BSD-3-Clause"
] | null | null | null | from common import database
from common import TaskQueues, get_object_store
from common.utils import setup_logging, shell_escape
from hashlib import sha256
import logging
import os
import shutil
from sqlalchemy.orm import joinedload
from sqlalchemy.sql import functions
import subprocess
import tempfile
SQLSession = N... | 35.051587 | 78 | 0.551681 | 975 | 8,833 | 4.895385 | 0.246154 | 0.02996 | 0.017599 | 0.020951 | 0.132202 | 0.11586 | 0.092814 | 0.058873 | 0.049864 | 0.023465 | 0 | 0.004518 | 0.348466 | 8,833 | 251 | 79 | 35.191235 | 0.824848 | 0.093513 | 0 | 0.143678 | 0 | 0 | 0.11072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022989 | false | 0 | 0.063218 | 0 | 0.132184 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb085c85e7782e1a789b1bec7a2c6a71e68ad8d9 | 4,574 | py | Python | tests/parser_test.py | OtavioHenrique/yalul | ce99e32365ed5607527b9f2f39705ad5d9e20ba2 | [
"MIT"
] | 1 | 2021-04-01T20:22:36.000Z | 2021-04-01T20:22:36.000Z | tests/parser_test.py | OtavioHenrique/yalul | ce99e32365ed5607527b9f2f39705ad5d9e20ba2 | [
"MIT"
] | 1 | 2020-11-20T22:24:38.000Z | 2020-11-20T22:24:38.000Z | tests/parser_test.py | OtavioHenrique/yalul | ce99e32365ed5607527b9f2f39705ad5d9e20ba2 | [
"MIT"
] | null | null | null | from yalul.parser import Parser
from yalul.parsers.ast.nodes.statements.expressions.binary import Binary
from yalul.lex.token import Token
from yalul.lex.token_type import TokenType
from yalul.parsers.ast.nodes.statements.expressions.values.integer import Integer
class TestParserBinary:
"""Test parser generating ... | 34.134328 | 119 | 0.636205 | 496 | 4,574 | 5.739919 | 0.149194 | 0.162276 | 0.088514 | 0.036881 | 0.700386 | 0.675097 | 0.639269 | 0.604145 | 0.559185 | 0.517035 | 0 | 0.011022 | 0.266069 | 4,574 | 133 | 120 | 34.390977 | 0.837057 | 0.124836 | 0 | 0.487805 | 0 | 0 | 0.092837 | 0.011378 | 0 | 0 | 0 | 0 | 0.170732 | 1 | 0.060976 | false | 0 | 0.060976 | 0 | 0.170732 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb0a2166fba41078615dd96cf7ca319832633515 | 4,036 | py | Python | tests/core/daemon/test_daemon_alerts.py | akubera/chia-blockchain | 91f038e2193755e2a6ca22e2160e2c8f547c23fe | [
"Apache-2.0"
] | 1 | 2021-05-28T01:38:23.000Z | 2021-05-28T01:38:23.000Z | tests/core/daemon/test_daemon_alerts.py | hoffmang9/chia-blockchain | edc5f1dfe57ecd81d00b5ba4477024309b1231de | [
"Apache-2.0"
] | null | null | null | tests/core/daemon/test_daemon_alerts.py | hoffmang9/chia-blockchain | edc5f1dfe57ecd81d00b5ba4477024309b1231de | [
"Apache-2.0"
] | null | null | null | import dataclasses
import pytest
from blspy import PrivateKey
from src.server.outbound_message import NodeType
from src.types.peer_info import PeerInfo
from src.util.block_tools import BlockTools
from src.util.hash import std_hash
from src.util.ints import uint16
from src.util.validate_alert import create_alert_file,... | 39.960396 | 112 | 0.745045 | 544 | 4,036 | 5.143382 | 0.257353 | 0.045032 | 0.032523 | 0.025733 | 0.338456 | 0.233024 | 0.196569 | 0.10436 | 0.073624 | 0 | 0 | 0.046657 | 0.166254 | 4,036 | 100 | 113 | 40.36 | 0.784844 | 0 | 0 | 0.076923 | 0 | 0 | 0.102081 | 0 | 0 | 0 | 0 | 0 | 0.064103 | 1 | 0.025641 | false | 0 | 0.179487 | 0.012821 | 0.25641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb0b659ef2cc14f0a9cf674d122a6ce8c529a3af | 8,196 | py | Python | words.py | GuyKabiri/language-models | 63b368aaee74ec077abcc8f66f0c8fbd4c712a07 | [
"MIT"
] | 41 | 2018-08-25T14:00:46.000Z | 2022-01-20T05:21:03.000Z | words.py | GuyKabiri/language-models | 63b368aaee74ec077abcc8f66f0c8fbd4c712a07 | [
"MIT"
] | 5 | 2018-07-06T11:34:22.000Z | 2021-11-15T20:32:34.000Z | words.py | GuyKabiri/language-models | 63b368aaee74ec077abcc8f66f0c8fbd4c712a07 | [
"MIT"
] | 17 | 2018-07-24T19:40:19.000Z | 2022-01-25T09:14:11.000Z | import keras
import keras.backend as K
from keras.datasets import imdb
from keras.layers import LSTM, Embedding, TimeDistributed, Input, Dense
from keras.models import Model
from tensorflow.python.client import device_lib
from tqdm import tqdm
import os, random
from argparse import ArgumentParser
import numpy as n... | 33.453061 | 120 | 0.571986 | 1,001 | 8,196 | 4.593407 | 0.298701 | 0.027403 | 0.051762 | 0.031318 | 0.193127 | 0.15659 | 0.142236 | 0.113093 | 0.094389 | 0.094389 | 0 | 0.013934 | 0.316984 | 8,196 | 245 | 121 | 33.453061 | 0.807431 | 0.171669 | 0 | 0.12 | 0 | 0 | 0.133195 | 0.003568 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026667 | false | 0 | 0.08 | 0.013333 | 0.126667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bb0cafc42dfe07c8f9f0ade59b4efb5599bbec9d | 979 | py | Python | synthdnm/backend.py | james-guevara/synthdnm | 8510cfd91438452da553d35894b63c5d75cdd47e | [
"MIT"
] | 6 | 2021-02-22T08:29:49.000Z | 2021-11-26T21:24:49.000Z | build/lib/synthdnm/backend.py | james-guevara/synthdnm | 8510cfd91438452da553d35894b63c5d75cdd47e | [
"MIT"
] | 1 | 2021-10-04T19:22:34.000Z | 2021-11-16T21:22:12.000Z | synthdnm/backend.py | james-guevara/synthdnm | 8510cfd91438452da553d35894b63c5d75cdd47e | [
"MIT"
] | 1 | 2020-11-06T18:57:57.000Z | 2020-11-06T18:57:57.000Z | import re
# Splits a line by spaces or tabs, returns a list object
def tokenize(line):
linesplit = line.rstrip().split("\t")
if len(linesplit) == 1: linesplit = line.rstrip().split(" ")
else: return linesplit
# Returns dictionary containing information of pedigree file
def process_ped(fam_filepath):
pe... | 40.791667 | 130 | 0.657814 | 138 | 979 | 4.557971 | 0.413043 | 0.082671 | 0.057234 | 0.071542 | 0.198728 | 0.198728 | 0.198728 | 0.198728 | 0.149444 | 0.149444 | 0 | 0.015484 | 0.208376 | 979 | 23 | 131 | 42.565217 | 0.796129 | 0.208376 | 0 | 0 | 0 | 0 | 0.015584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.055556 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bb0cd1bc006214dc6eb22b166f68a1596ea8baca | 1,925 | py | Python | ws/RLAgents/B_ValueBased/Bootstrapping/OnPolicy/sarsa/impl_mgt.py | dattaray-basab/RLGames | b12263fe7a4a246be02fc20ed20cfb9fda40d29b | [
"MIT"
] | null | null | null | ws/RLAgents/B_ValueBased/Bootstrapping/OnPolicy/sarsa/impl_mgt.py | dattaray-basab/RLGames | b12263fe7a4a246be02fc20ed20cfb9fda40d29b | [
"MIT"
] | null | null | null | ws/RLAgents/B_ValueBased/Bootstrapping/OnPolicy/sarsa/impl_mgt.py | dattaray-basab/RLGames | b12263fe7a4a246be02fc20ed20cfb9fda40d29b | [
"MIT"
] | null | null | null | from ws.RLAgents.B_ValueBased.Bootstrapping.qtable_mgt import qtable_mgt
def impl_mgt(app_info):
_env = app_info.ENV
Display = app_info.ENV.Display
fn_get_qval, fn_set_qval, fn_get_q_actions, fn_get_max_q_actions = qtable_mgt()
def _fn_update_knowledge(state, action, reward, next_state, next_action):... | 37.019231 | 89 | 0.652987 | 266 | 1,925 | 4.270677 | 0.255639 | 0.055458 | 0.06338 | 0.034331 | 0.276408 | 0.237676 | 0.139085 | 0.139085 | 0.139085 | 0.139085 | 0 | 0.002869 | 0.275844 | 1,925 | 51 | 90 | 37.745098 | 0.812052 | 0.010909 | 0 | 0.097561 | 0 | 0 | 0.021556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0.02439 | 0.02439 | 0 | 0.170732 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bb0e76409aeef486ffdd393f481e6ae875e7c355 | 7,338 | py | Python | test/pytest/test_model_archiver.py | vvekic/serve | f02a56bf1f0de1705fd9f399c1115d36e343c90c | [
"Apache-2.0"
] | 2 | 2022-03-26T05:17:45.000Z | 2022-03-26T05:44:53.000Z | test/pytest/test_model_archiver.py | vvekic/serve | f02a56bf1f0de1705fd9f399c1115d36e343c90c | [
"Apache-2.0"
] | null | null | null | test/pytest/test_model_archiver.py | vvekic/serve | f02a56bf1f0de1705fd9f399c1115d36e343c90c | [
"Apache-2.0"
] | 1 | 2020-09-14T08:31:34.000Z | 2020-09-14T08:31:34.000Z | import subprocess
import time
import os
import glob
import requests
import json
import test_utils
MODEL_SFILE_NAME = 'resnet18-f37072fd.pth'
def setup_module(module):
test_utils.torchserve_cleanup()
response = requests.get('https://download.pytorch.org/models/' + MODEL_SFILE_NAME, allow_redirects=True)
o... | 34.613208 | 150 | 0.661897 | 924 | 7,338 | 5.022727 | 0.175325 | 0.052359 | 0.048481 | 0.046542 | 0.632622 | 0.615385 | 0.520362 | 0.50097 | 0.471881 | 0.449041 | 0 | 0.027725 | 0.213546 | 7,338 | 211 | 151 | 34.777251 | 0.776469 | 0.03625 | 0 | 0.468354 | 0 | 0 | 0.268186 | 0.082791 | 0 | 0 | 0 | 0 | 0.06962 | 1 | 0.088608 | false | 0 | 0.044304 | 0 | 0.14557 | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb0fd7461ac334e4ca39e6b98dfce5e7a36f1733 | 2,176 | py | Python | scripts/isuag/zero_daily_precip.py | trentford/iem | 7264d24f2d79a3cd69251a09758e6531233a732f | [
"MIT"
] | 1 | 2019-10-07T17:01:24.000Z | 2019-10-07T17:01:24.000Z | scripts/isuag/zero_daily_precip.py | trentford/iem | 7264d24f2d79a3cd69251a09758e6531233a732f | [
"MIT"
] | null | null | null | scripts/isuag/zero_daily_precip.py | trentford/iem | 7264d24f2d79a3cd69251a09758e6531233a732f | [
"MIT"
] | null | null | null | """Sometimes we need to completely zero out precip for a day
Likely due to water being dumped into the tipping bucket to clean it :/
"""
from __future__ import print_function
import sys
import datetime
import pytz
from pyiem.util import get_dbconn
def zero_hourly(station, sts, ets):
"""Zero out the hourly data"... | 29.405405 | 78 | 0.619485 | 312 | 2,176 | 4.182692 | 0.346154 | 0.027586 | 0.041379 | 0.043678 | 0.451341 | 0.390038 | 0.308812 | 0.308812 | 0.168582 | 0.168582 | 0 | 0.009792 | 0.249081 | 2,176 | 73 | 79 | 29.808219 | 0.788862 | 0.160846 | 0 | 0.346154 | 0 | 0.019231 | 0.320356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.096154 | 0 | 0.173077 | 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 |
bb123dfd4bea8d7fa36ad8f1991ad5d0085d8387 | 15,843 | py | Python | Fibonnacci GUI VERSION.py | Nuklear-s-Team/fibonacciThing | 2b32f10a87faf87b6702e7caa20c69d8df6873e3 | [
"CC0-1.0"
] | null | null | null | Fibonnacci GUI VERSION.py | Nuklear-s-Team/fibonacciThing | 2b32f10a87faf87b6702e7caa20c69d8df6873e3 | [
"CC0-1.0"
] | null | null | null | Fibonnacci GUI VERSION.py | Nuklear-s-Team/fibonacciThing | 2b32f10a87faf87b6702e7caa20c69d8df6873e3 | [
"CC0-1.0"
] | 1 | 2020-04-08T18:32:54.000Z | 2020-04-08T18:32:54.000Z | # Copyright 2020 Khang Nguyen and Tim Merrill
# Improved by Luzgog
# Made with the same translate function as the original.
import tkinter as tkinter
from tkinter import messagebox
from tkinter import scrolledtext
from Fibonacci_Encoder import encode, decode, encodeReversed, decodeReversed, randomGen, encodeR... | 57.194946 | 279 | 0.640977 | 2,059 | 15,843 | 4.92812 | 0.211753 | 0.020696 | 0.022075 | 0.013797 | 0.249433 | 0.183601 | 0.14487 | 0.131467 | 0.13127 | 0.093032 | 0 | 0.023367 | 0.222054 | 15,843 | 277 | 280 | 57.194946 | 0.799919 | 0.016727 | 0 | 0.201794 | 0 | 0.107623 | 0.359119 | 0.034199 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058296 | false | 0.004484 | 0.03139 | 0 | 0.089686 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb1432cc0316cac36dc4f14023445d368e2c8a51 | 790 | py | Python | Binary Search/081. Search in Rotated Sorted Array II.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 138 | 2020-02-08T05:25:26.000Z | 2021-11-04T11:59:28.000Z | Binary Search/081. Search in Rotated Sorted Array II.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | null | null | null | Binary Search/081. Search in Rotated Sorted Array II.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 24 | 2021-01-02T07:18:43.000Z | 2022-03-20T08:17:54.000Z | """
81. Search in Rotated Sorted Array II
"""
class Solution:
def search(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: bool
"""
l, r, n = 0, len(nums)-1, len(nums)
while l<=r:
while r>l and nums[l+1]==nums[l]:... | 29.259259 | 68 | 0.405063 | 106 | 790 | 3.018868 | 0.301887 | 0.0875 | 0.075 | 0.0625 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030374 | 0.458228 | 790 | 26 | 69 | 30.384615 | 0.71729 | 0.113924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb16c061583288ca3f3f83e5792419424b095ace | 2,777 | py | Python | methods/ham.py | vickyyu90/maxnet | 38c49c39dbe77b2984d8cdb2f4087310b2220593 | [
"Apache-2.0"
] | null | null | null | methods/ham.py | vickyyu90/maxnet | 38c49c39dbe77b2984d8cdb2f4087310b2220593 | [
"Apache-2.0"
] | null | null | null | methods/ham.py | vickyyu90/maxnet | 38c49c39dbe77b2984d8cdb2f4087310b2220593 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import torch
from torch.autograd import Variable
import torch.nn.functional as F
class FeatureExtractor():
def __init__(self, model, intermediate_layers):
self.model = model
self.intermediate_layers = intermediate_layers[::-1]
self.weights = []
self.num = len(self... | 43.390625 | 137 | 0.658985 | 358 | 2,777 | 4.882682 | 0.24581 | 0.132151 | 0.051487 | 0.075515 | 0.519451 | 0.471968 | 0.451945 | 0.39016 | 0.39016 | 0.342105 | 0 | 0.010096 | 0.21534 | 2,777 | 64 | 138 | 43.390625 | 0.792106 | 0 | 0 | 0.192308 | 0 | 0 | 0.011879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096154 | false | 0 | 0.076923 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bb177b31aa9101d899611eb71a8b7cb4ca24eeba | 1,173 | py | Python | wicket/commands/__init__.py | GeekMasher/wicket-discord-docker-bot | 5f7bfa466718018fba3babe1357115ac19a8ec18 | [
"MIT"
] | null | null | null | wicket/commands/__init__.py | GeekMasher/wicket-discord-docker-bot | 5f7bfa466718018fba3babe1357115ac19a8ec18 | [
"MIT"
] | null | null | null | wicket/commands/__init__.py | GeekMasher/wicket-discord-docker-bot | 5f7bfa466718018fba3babe1357115ac19a8ec18 | [
"MIT"
] | null | null | null | import discord
from wicket.commands.list import botListServices
from wicket.commands.docker_commands import *
async def botHelp(cxt, message: discord.Message, **kargvs):
TEXT = "Help Options:\n"
for name, command in COMMANDS.items():
TEXT += f" - `{cxt.__PREFIX__} {name}` - {command.get('descriptio... | 24.4375 | 85 | 0.553282 | 113 | 1,173 | 5.699115 | 0.451327 | 0.049689 | 0.118012 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287298 | 1,173 | 47 | 86 | 24.957447 | 0.770335 | 0 | 0 | 0.102564 | 0 | 0 | 0.295823 | 0.02387 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb186d9ac7e63873279e945b49b97d3ba19eab1c | 534 | py | Python | P0003.py | sebastianaldi17/ProjectEuler | 19562fba3456ec904bcc264fb786a92610e42622 | [
"MIT"
] | null | null | null | P0003.py | sebastianaldi17/ProjectEuler | 19562fba3456ec904bcc264fb786a92610e42622 | [
"MIT"
] | null | null | null | P0003.py | sebastianaldi17/ProjectEuler | 19562fba3456ec904bcc264fb786a92610e42622 | [
"MIT"
] | null | null | null | # Largest prime factor
# https://projecteuler.net/problem=3
# Sieve of erasthotenes apporach
# But still slow due to iteration to sqrt(n)
from math import sqrt
question = 600851475143
def solve(n):
ans = 1
limit = int(sqrt(n))
prime = [True for i in range(limit+1)]
p = 2
while p <= limit:
i... | 25.428571 | 44 | 0.586142 | 87 | 534 | 3.597701 | 0.517241 | 0.038339 | 0.057508 | 0.105431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058511 | 0.29588 | 534 | 21 | 45 | 25.428571 | 0.773936 | 0.241573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb1bdf6c26b937672babc629910c4f289f158546 | 3,893 | py | Python | test/unit/extractor/test_sticky_relations.py | willangenent/abridger | 6daa80f7360339376b38544ce60694c5addaa30f | [
"MIT"
] | 8 | 2016-10-19T14:15:34.000Z | 2020-06-23T09:37:02.000Z | test/unit/extractor/test_sticky_relations.py | freewilll/abridger | 6daa80f7360339376b38544ce60694c5addaa30f | [
"MIT"
] | null | null | null | test/unit/extractor/test_sticky_relations.py | freewilll/abridger | 6daa80f7360339376b38544ce60694c5addaa30f | [
"MIT"
] | null | null | null | import pytest
from abridger.extraction_model import Relation
from abridger.schema import SqliteSchema
from test.unit.extractor.base import TestExtractorBase
class TestExtractorStickyRelations(TestExtractorBase):
@pytest.fixture()
def schema_out(self):
'''
test1 -> sticky -> test3 ... | 33.273504 | 74 | 0.512972 | 397 | 3,893 | 4.853904 | 0.224181 | 0.060716 | 0.041515 | 0.049299 | 0.371043 | 0.331604 | 0.331604 | 0.314478 | 0.267255 | 0.267255 | 0 | 0.034714 | 0.385821 | 3,893 | 116 | 75 | 33.560345 | 0.771225 | 0.113537 | 0 | 0.244186 | 0 | 0 | 0.253958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.046512 | 0.011628 | 0.162791 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb1d0fc3b94fe211964f09e6d84f5d3d39abde23 | 6,375 | py | Python | edl/gtdb.py | jmeppley/py-metagenomics | 0dbab073cb7e52c4826054e40eb802c9e0298e9a | [
"MIT"
] | 7 | 2015-05-14T09:36:36.000Z | 2022-03-30T14:32:21.000Z | edl/gtdb.py | jmeppley/py-metagenomics | 0dbab073cb7e52c4826054e40eb802c9e0298e9a | [
"MIT"
] | 1 | 2015-07-14T11:47:25.000Z | 2015-07-17T01:45:26.000Z | edl/gtdb.py | jmeppley/py-metagenomics | 0dbab073cb7e52c4826054e40eb802c9e0298e9a | [
"MIT"
] | 7 | 2015-07-25T22:29:29.000Z | 2022-03-01T21:26:14.000Z | """
Tools for parsing GTDB headers into a taxonomy model
"""
import os
import re
import sys
import logging
from edl.taxon import TaxNode, Taxonomy
from edl.silva import writeDumpFiles
from edl.util import treeGenerator
logger = logging.getLogger(__name__)
GTDB = 'gtdb'
GTDBTAB = 'gtdb_table'
PHYLODB = 'phylodb'
de... | 30.797101 | 78 | 0.604863 | 861 | 6,375 | 4.285714 | 0.221835 | 0.026016 | 0.024661 | 0.018428 | 0.434688 | 0.38103 | 0.350136 | 0.350136 | 0.303252 | 0.249865 | 0 | 0.003491 | 0.281098 | 6,375 | 206 | 79 | 30.946602 | 0.801658 | 0.127059 | 0 | 0.290076 | 0 | 0 | 0.070352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061069 | false | 0 | 0.053435 | 0 | 0.145038 | 0.015267 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb20d40fa7052cc2042b31919fc23245949ffc78 | 1,107 | py | Python | MeetmeApp/urls.py | Susan-Kathoni/Meet-Me | 530d14e98a1cb8d14af77397515fe32e31018041 | [
"MIT"
] | null | null | null | MeetmeApp/urls.py | Susan-Kathoni/Meet-Me | 530d14e98a1cb8d14af77397515fe32e31018041 | [
"MIT"
] | null | null | null | MeetmeApp/urls.py | Susan-Kathoni/Meet-Me | 530d14e98a1cb8d14af77397515fe32e31018041 | [
"MIT"
] | null | null | null | from django.urls import path
from django.conf.urls import url, include
from . import views
from django.conf import settings
from django.conf.urls.static import static
from .views import *
urlpatterns=[
path('', views.home, name="home-page"),
path("home/", views.datePage, name="date-page"),
#User... | 39.535714 | 90 | 0.666667 | 144 | 1,107 | 5.083333 | 0.347222 | 0.034153 | 0.068306 | 0.04918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154472 | 1,107 | 28 | 91 | 39.535714 | 0.782051 | 0.074977 | 0 | 0 | 0 | 0 | 0.223092 | 0.02544 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 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 |
bb218330c462c5abdbf828eb5bc82a026234a3e6 | 14,872 | py | Python | gui/popups.py | Kameone/katrain | 6d2f210a1997bf2f8108ca1c0678df6788867022 | [
"MIT"
] | null | null | null | gui/popups.py | Kameone/katrain | 6d2f210a1997bf2f8108ca1c0678df6788867022 | [
"MIT"
] | null | null | null | gui/popups.py | Kameone/katrain | 6d2f210a1997bf2f8108ca1c0678df6788867022 | [
"MIT"
] | null | null | null | from collections import defaultdict
from typing import Dict, List, DefaultDict, Tuple
from kivy.clock import Clock
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.label import Label
from kivy.uix.popup import Popup
from core.common import OUTPUT_DEBUG, OUTPUT_ERROR
fr... | 46.043344 | 172 | 0.623924 | 1,851 | 14,872 | 4.819557 | 0.155592 | 0.050443 | 0.036431 | 0.04226 | 0.407578 | 0.355453 | 0.303553 | 0.255913 | 0.22901 | 0.205807 | 0 | 0.011589 | 0.257329 | 14,872 | 322 | 173 | 46.186335 | 0.796107 | 0.015533 | 0 | 0.233216 | 0 | 0 | 0.082411 | 0.004442 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060071 | false | 0.007067 | 0.038869 | 0 | 0.159011 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb235d579c9e8335bb32b2de2493cd8f2ac94ba2 | 606 | py | Python | Chessboard.py | choyai/basic-chess | 34cf581544f63b07dba4a87d7f1a3bb19a0d102e | [
"MIT"
] | null | null | null | Chessboard.py | choyai/basic-chess | 34cf581544f63b07dba4a87d7f1a3bb19a0d102e | [
"MIT"
] | null | null | null | Chessboard.py | choyai/basic-chess | 34cf581544f63b07dba4a87d7f1a3bb19a0d102e | [
"MIT"
] | null | null | null | import numpy as np
from enum import Enum
class Square:
def __init__( self, value, x, y ):
self.value = value
self.color = (x + y) % 2
self.x = x
self.y = y
def __repr__( self ):
return str(self.value) + ' ' + str((x, y))
class Chessboard:
def __init_... | 22.444444 | 50 | 0.4967 | 79 | 606 | 3.556962 | 0.392405 | 0.096085 | 0.078292 | 0.120996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016086 | 0.384488 | 606 | 27 | 51 | 22.444444 | 0.737265 | 0 | 0 | 0.1 | 0 | 0 | 0.001647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.1 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bb26120df60c58054886a7da4810cc127da3d62a | 3,494 | py | Python | uai/operation/pack/base_pack_op.py | FinchZHU/uai-sdk | 78e06bebba2d18233ce6dcb5be619e940f7a7ef3 | [
"Apache-2.0"
] | 38 | 2017-04-26T04:00:09.000Z | 2022-02-10T02:51:05.000Z | uai/operation/pack/base_pack_op.py | FinchZHU/uai-sdk | 78e06bebba2d18233ce6dcb5be619e940f7a7ef3 | [
"Apache-2.0"
] | 17 | 2017-11-20T20:47:09.000Z | 2022-02-09T23:48:46.000Z | uai/operation/pack/base_pack_op.py | FinchZHU/uai-sdk | 78e06bebba2d18233ce6dcb5be619e940f7a7ef3 | [
"Apache-2.0"
] | 28 | 2017-07-08T05:23:13.000Z | 2020-08-18T03:12:27.000Z | # Copyright 2017 The UAI-SDK Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 38.822222 | 90 | 0.647682 | 461 | 3,494 | 4.713666 | 0.357918 | 0.033134 | 0.046019 | 0.014726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007366 | 0.222954 | 3,494 | 89 | 91 | 39.258427 | 0.793002 | 0.199485 | 0 | 0 | 0 | 0 | 0.148722 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 1 | 0.114754 | false | 0 | 0.098361 | 0 | 0.229508 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb27a05966e2cdc151b7cb1b1d26243619e72b33 | 778 | py | Python | reader/migrations/0005_managers.py | FroshOU/manga | 60ec24a007a7e9ebe0c152cf1f2a2aa0362f17f2 | [
"MIT"
] | 58 | 2019-03-04T09:22:42.000Z | 2022-02-18T09:11:57.000Z | reader/migrations/0005_managers.py | FroshOU/manga | 60ec24a007a7e9ebe0c152cf1f2a2aa0362f17f2 | [
"MIT"
] | 21 | 2019-03-07T19:34:53.000Z | 2021-12-19T12:46:40.000Z | reader/migrations/0005_managers.py | FroshOU/manga | 60ec24a007a7e9ebe0c152cf1f2a2aa0362f17f2 | [
"MIT"
] | 14 | 2019-06-06T09:53:13.000Z | 2021-12-17T14:34:13.000Z | from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('reader', '0004_aliases'),
]
operations = [
migrations.AddField(
model_name='se... | 29.923077 | 71 | 0.552699 | 72 | 778 | 5.75 | 0.694444 | 0.048309 | 0.077295 | 0.101449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007843 | 0.344473 | 778 | 25 | 72 | 31.12 | 0.803922 | 0 | 0 | 0.136364 | 0 | 0 | 0.12982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb2c5307cd59ead7a7f4bf7a140973af81e47bad | 2,099 | py | Python | mapss/static/packages/arches/arches/setup.py | MPI-MAPSS/MAPSS | 3a5c0109758801717aaa8de1125ca5e98f83d3b4 | [
"CC0-1.0"
] | null | null | null | mapss/static/packages/arches/arches/setup.py | MPI-MAPSS/MAPSS | 3a5c0109758801717aaa8de1125ca5e98f83d3b4 | [
"CC0-1.0"
] | null | null | null | mapss/static/packages/arches/arches/setup.py | MPI-MAPSS/MAPSS | 3a5c0109758801717aaa8de1125ca5e98f83d3b4 | [
"CC0-1.0"
] | null | null | null | import sys
import os
import subprocess
import shutil
import urllib.request, urllib.error, urllib.parse
import zipfile
import datetime
import platform
import tarfile
from arches import settings
here = os.path.dirname(os.path.abspath(__file__))
root_dir = os.path.dirname(here)
def install():
# CHEC... | 25.91358 | 80 | 0.623154 | 280 | 2,099 | 4.557143 | 0.403571 | 0.087774 | 0.04232 | 0.058777 | 0.10815 | 0.067398 | 0.067398 | 0 | 0 | 0 | 0 | 0.010478 | 0.272511 | 2,099 | 80 | 81 | 26.2375 | 0.825147 | 0.218199 | 0 | 0.078431 | 0 | 0 | 0.112064 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 1 | 0.098039 | false | 0.019608 | 0.215686 | 0 | 0.392157 | 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 |
bb2f35d72860c941a4140869fd28c700aa0e181d | 19,950 | py | Python | parser/vo_item.py | gemoku/bolinas | dbdc2417d8ae82394f3f8e5e0758bad86b9cfd5a | [
"MIT"
] | 13 | 2015-12-05T16:30:48.000Z | 2021-04-15T14:38:24.000Z | parser/vo_item.py | karlmoritz/bolinas | 7a1a78bca0a6ba1cb9d80b13d2a87ce37993507f | [
"MIT"
] | 1 | 2015-10-18T03:50:53.000Z | 2015-10-18T03:58:28.000Z | parser/vo_item.py | karlmoritz/bolinas | 7a1a78bca0a6ba1cb9d80b13d2a87ce37993507f | [
"MIT"
] | 5 | 2015-10-18T03:10:07.000Z | 2018-06-29T17:40:43.000Z | from common.hgraph.hgraph import NonterminalLabel
from common import log
import itertools
# Some general advice for reading this file:
#
# Every rule specifies some fragment of the object (graph, string or both) that
# is being parsed, as well as a visit order on the individual elements of that
# fragment (tokens or e... | 33.473154 | 125 | 0.646516 | 2,842 | 19,950 | 4.406756 | 0.110486 | 0.05709 | 0.038007 | 0.014372 | 0.49984 | 0.411769 | 0.36434 | 0.314756 | 0.301821 | 0.274752 | 0 | 0.02013 | 0.250476 | 19,950 | 595 | 126 | 33.529412 | 0.817428 | 0.225915 | 0 | 0.453297 | 0 | 0 | 0.010206 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.098901 | false | 0.002747 | 0.008242 | 0.021978 | 0.296703 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb2f5ca3954e0ac0cd30c52e249acffaf9cb26a5 | 7,120 | py | Python | inc_cg_reporter/excel_writer.py | edwinsteele/inc-cg-reporter | 7bf63a9a0492b474526f6da54ea39b31a1a8d4fd | [
"MIT"
] | null | null | null | inc_cg_reporter/excel_writer.py | edwinsteele/inc-cg-reporter | 7bf63a9a0492b474526f6da54ea39b31a1a8d4fd | [
"MIT"
] | null | null | null | inc_cg_reporter/excel_writer.py | edwinsteele/inc-cg-reporter | 7bf63a9a0492b474526f6da54ea39b31a1a8d4fd | [
"MIT"
] | null | null | null | import datetime
import pathlib
from tempfile import NamedTemporaryFile
from typing import List, Dict
from backports.zoneinfo import ZoneInfo
from more_itertools import first
from openpyxl import Workbook
from openpyxl.styles import Alignment, Border, Side
from openpyxl.utils import get_column_letter
from openpyxl.work... | 39.776536 | 88 | 0.658287 | 901 | 7,120 | 5.00222 | 0.283019 | 0.019969 | 0.027957 | 0.016863 | 0.090748 | 0.069004 | 0.0497 | 0.019525 | 0.019525 | 0.019525 | 0 | 0.00754 | 0.254916 | 7,120 | 178 | 89 | 40 | 0.842036 | 0.188062 | 0 | 0.0625 | 0 | 0 | 0.039492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085938 | false | 0 | 0.101563 | 0 | 0.265625 | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bb30048a187fc956b10e024a3231a64c928e715b | 1,969 | py | Python | position.py | wenwen0319/HIT_test | feba0c7dac4074ca3e602e499d3d946a6abce995 | [
"MIT"
] | null | null | null | position.py | wenwen0319/HIT_test | feba0c7dac4074ca3e602e499d3d946a6abce995 | [
"MIT"
] | null | null | null | position.py | wenwen0319/HIT_test | feba0c7dac4074ca3e602e499d3d946a6abce995 | [
"MIT"
] | null | null | null | # from numba import jit
import numpy as np
import logging
numba_logger = logging.getLogger('numba')
numba_logger.setLevel(logging.WARNING)
# @jit(nopython=True)
def nodets2key(batch: int, node: int, ts: float):
key = '-'.join([str(batch), str(node), float2str(ts)])
return key
# @jit(nopython=True)
def float... | 31.253968 | 156 | 0.638395 | 288 | 1,969 | 4.177083 | 0.253472 | 0.100582 | 0.062344 | 0.074813 | 0.270989 | 0.217789 | 0.177889 | 0.119701 | 0.119701 | 0.074813 | 0 | 0.007963 | 0.234637 | 1,969 | 63 | 157 | 31.253968 | 0.790312 | 0.175724 | 0 | 0.139535 | 0 | 0 | 0.003715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0 | 0.046512 | 0.023256 | 0.348837 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb34d4e88ec1cd6671f5adf6f293a9c837cc85a0 | 9,244 | py | Python | omdrivers/lifecycle/iDRAC/iDRACLicense.py | DanielFroehlich/omsdk | 475d925e4033104957fdc64480fe8f9af0ab6b8a | [
"Apache-2.0"
] | 61 | 2018-02-21T00:02:20.000Z | 2022-01-26T03:47:19.000Z | omdrivers/lifecycle/iDRAC/iDRACLicense.py | DanielFroehlich/omsdk | 475d925e4033104957fdc64480fe8f9af0ab6b8a | [
"Apache-2.0"
] | 31 | 2018-03-24T05:43:39.000Z | 2022-03-16T07:10:37.000Z | omdrivers/lifecycle/iDRAC/iDRACLicense.py | DanielFroehlich/omsdk | 475d925e4033104957fdc64480fe8f9af0ab6b8a | [
"Apache-2.0"
] | 25 | 2018-03-13T10:06:12.000Z | 2022-01-26T03:47:21.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
#
# Copyright © 2018 Dell Inc. or its subsidiaries. All rights reserved.
# Dell, EMC, and other trademarks are trademarks of Dell Inc. or its subsidiaries.
# Other trademarks may be trademarks of their respective owners.
#
# Licensed under the Apache License, Ver... | 42.599078 | 120 | 0.623107 | 1,018 | 9,244 | 5.479371 | 0.220039 | 0.055217 | 0.022947 | 0.019362 | 0.491215 | 0.433489 | 0.373252 | 0.328612 | 0.300108 | 0.286124 | 0 | 0.008122 | 0.280723 | 9,244 | 216 | 121 | 42.796296 | 0.830651 | 0.092276 | 0 | 0.359756 | 0 | 0 | 0.071034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103659 | false | 0 | 0.182927 | 0.006098 | 0.426829 | 0.006098 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb36ec70c07ffa6bf2c091910c913a445feb66eb | 266 | py | Python | main.py | MustafaTheCoder/Basic-Discord-Bot | 7dcbd3f9746a1e1bbef45c34903cff0e23899411 | [
"MIT"
] | null | null | null | main.py | MustafaTheCoder/Basic-Discord-Bot | 7dcbd3f9746a1e1bbef45c34903cff0e23899411 | [
"MIT"
] | null | null | null | main.py | MustafaTheCoder/Basic-Discord-Bot | 7dcbd3f9746a1e1bbef45c34903cff0e23899411 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
client = commands.Bot(command_prefix="-")
@client.event
async def on_ready():
print("Bot is ready!")
@client.command
async def Hello(ctx):
await ctx.send("Hi")
client.run("BOT TOKEN")
| 14 | 42 | 0.654135 | 36 | 266 | 4.777778 | 0.638889 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218045 | 266 | 18 | 43 | 14.777778 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0.101626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 |
bb39289b3f68ac6a3b7e2e131415a89dd368fbbf | 1,121 | py | Python | qoffeeapi/setup.py | foehlija/Qoffee-Maker | efad3af54b466c3ff9867e9105eceb2b3b08f592 | [
"Apache-2.0"
] | null | null | null | qoffeeapi/setup.py | foehlija/Qoffee-Maker | efad3af54b466c3ff9867e9105eceb2b3b08f592 | [
"Apache-2.0"
] | 3 | 2021-11-07T19:14:32.000Z | 2022-03-23T09:40:46.000Z | qoffeeapi/setup.py | foehlija/Qoffee-Maker | efad3af54b466c3ff9867e9105eceb2b3b08f592 | [
"Apache-2.0"
] | 2 | 2021-11-07T17:19:17.000Z | 2021-11-16T14:56:16.000Z | #!/usr/bin/env python
# coding: utf-8
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from __future__ import print_function
from glob import glob
import os
from os.path import join as pjoin
from setuptools import setup, find_packages
HERE = os.path.dirname(os.path... | 21.557692 | 58 | 0.592328 | 136 | 1,121 | 4.661765 | 0.625 | 0.028391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01487 | 0.280107 | 1,121 | 51 | 59 | 21.980392 | 0.770756 | 0.152542 | 0 | 0 | 0 | 0 | 0.143008 | 0.022246 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.147059 | 0 | 0.147059 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb393599c47f4953a5b9b24677e38c55c3bc05b5 | 2,325 | py | Python | db_etl/processors/match_area_names.py | publichealthengland/coronavirus-dashboard-pipeline-etl | efcf5c77091afe8a0f7edce2e5934fe8c1f6dc1c | [
"MIT"
] | 7 | 2021-02-14T12:42:56.000Z | 2022-03-02T09:14:22.000Z | db_etl/processors/match_area_names.py | publichealthengland/coronavirus-dashboard-pipeline-etl | efcf5c77091afe8a0f7edce2e5934fe8c1f6dc1c | [
"MIT"
] | 19 | 2021-11-03T09:21:00.000Z | 2022-03-07T09:26:47.000Z | db_etl/processors/match_area_names.py | publichealthengland/coronavirus-dashboard-pipeline-etl | efcf5c77091afe8a0f7edce2e5934fe8c1f6dc1c | [
"MIT"
] | 2 | 2021-03-03T16:52:51.000Z | 2022-02-28T16:22:33.000Z | #!/usr/bin python3
"""
<Description of the programme>
Author: Pouria Hadjibagheri <pouria.hadjibagheri@phe.gov.uk>
Created: 16 Dec 2020
License: MIT
Contributors: Pouria Hadjibagheri
"""
# Imports
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Python:... | 28.353659 | 115 | 0.60172 | 252 | 2,325 | 5.230159 | 0.5 | 0.060698 | 0.042489 | 0.033384 | 0.088012 | 0.088012 | 0 | 0 | 0 | 0 | 0 | 0.0154 | 0.162151 | 2,325 | 81 | 116 | 28.703704 | 0.661191 | 0.242581 | 0 | 0.041667 | 0 | 0.020833 | 0.263339 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.145833 | 0 | 0.1875 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb39acda6eb9959537beae46dae372efee98d23a | 478 | py | Python | Source/RemovePunctuation.py | jj-style/Cryptobreaker | c99b9cc35114e55c87b073ee2467c06bd95835a5 | [
"MIT"
] | null | null | null | Source/RemovePunctuation.py | jj-style/Cryptobreaker | c99b9cc35114e55c87b073ee2467c06bd95835a5 | [
"MIT"
] | null | null | null | Source/RemovePunctuation.py | jj-style/Cryptobreaker | c99b9cc35114e55c87b073ee2467c06bd95835a5 | [
"MIT"
] | null | null | null | import string
punctuation = string.punctuation + "’" + '“' + "‘" + "—"
def RemovePunctuation(text,remove_spaces=True,to_lower=True):
text = list(text)
while "\n" in text:
text.remove("\n")
text = "".join(text)
if remove_spaces:
text = text.replace(" ","")
if to_lower:
text=... | 25.157895 | 61 | 0.573222 | 58 | 478 | 4.672414 | 0.396552 | 0.147601 | 0.110701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269874 | 478 | 18 | 62 | 26.555556 | 0.773639 | 0 | 0 | 0 | 0 | 0 | 0.023013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bb3a778fd080a8f387a45d5d5f462f403e83a6b3 | 399 | py | Python | month06/Machine_learning/day08/demo/02_img_read_save.py | chaofan-zheng/python_learning_code | 5d05848911d55aa49eaee4afd7ffd80536fad7aa | [
"Apache-2.0"
] | null | null | null | month06/Machine_learning/day08/demo/02_img_read_save.py | chaofan-zheng/python_learning_code | 5d05848911d55aa49eaee4afd7ffd80536fad7aa | [
"Apache-2.0"
] | null | null | null | month06/Machine_learning/day08/demo/02_img_read_save.py | chaofan-zheng/python_learning_code | 5d05848911d55aa49eaee4afd7ffd80536fad7aa | [
"Apache-2.0"
] | null | null | null | # 01_img_read_save.py
# 图像读取, 显示, 保存
import cv2
im = cv2.imread("../test_img/Linus.png", # 图像路径
1) # 1-彩色图像 0-灰度图像
print(type(im)) # 打印类型: ndarray
print(im.shape) # 打印图像形状
# 显示
cv2.imshow("im", # 窗体名称(如果重复,后面会覆盖前面)
im) # 图像数据, imread的返回值
# 保存
cv2.imwrite("Linus_new.png", # 保存的图片路径
... | 23.470588 | 47 | 0.62406 | 58 | 399 | 4.206897 | 0.689655 | 0.04918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035144 | 0.215539 | 399 | 17 | 48 | 23.470588 | 0.744409 | 0.380952 | 0 | 0.181818 | 0 | 0 | 0.154506 | 0.090129 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bb3c72279c5fcf27f702b631f5d1c82f5eec0b49 | 728 | py | Python | ch9_1_dogs.py | codeplinth/python_crash_course | 865f326936dcfab12e77747be73bfcc632d4bde3 | [
"MIT"
] | null | null | null | ch9_1_dogs.py | codeplinth/python_crash_course | 865f326936dcfab12e77747be73bfcc632d4bde3 | [
"MIT"
] | null | null | null | ch9_1_dogs.py | codeplinth/python_crash_course | 865f326936dcfab12e77747be73bfcc632d4bde3 | [
"MIT"
] | null | null | null | class Dog:
"""Simple attempt to model a dog"""
def __init__(self,name,age):
"""Initialize name and age attributes"""
self.name = name
self.age = age
def sit(self):
"""Simulate a dog sitting in response to a command"""
print(f"{self.name} is now sitting !")
... | 24.266667 | 61 | 0.616758 | 123 | 728 | 3.528455 | 0.300813 | 0.103687 | 0.064516 | 0.059908 | 0.428571 | 0.373272 | 0.373272 | 0.373272 | 0.271889 | 0 | 0 | 0.003559 | 0.228022 | 728 | 29 | 62 | 25.103448 | 0.768683 | 0.218407 | 0 | 0 | 0 | 0 | 0.363803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0 | 0 | 0.235294 | 0.352941 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb403acdcf0fd7c25a1e41c78341852ffd2414a4 | 3,461 | py | Python | folding/minimizer.py | bigict/ProFOLD | 8fac3e18d25348fc9d1fbb17552a3ce3ae1cb953 | [
"MIT"
] | 1 | 2021-08-02T07:36:03.000Z | 2021-08-02T07:36:03.000Z | folding/minimizer.py | bigict/ProFOLD | 8fac3e18d25348fc9d1fbb17552a3ce3ae1cb953 | [
"MIT"
] | null | null | null | folding/minimizer.py | bigict/ProFOLD | 8fac3e18d25348fc9d1fbb17552a3ce3ae1cb953 | [
"MIT"
] | null | null | null | import os
import threading
import queue
import numpy as np
from pyrosetta import (
pose_from_sequence,
MoveMap,
rosetta,
create_score_function,
SwitchResidueTypeSetMover,
)
from pyrosetta.rosetta.protocols.minimization_packing import MinMover
from score import score_it
def _random_dihedral():
... | 27.91129 | 83 | 0.613118 | 480 | 3,461 | 4.225 | 0.30625 | 0.047337 | 0.011834 | 0.021696 | 0.248028 | 0.20858 | 0.127219 | 0.127219 | 0.127219 | 0.093688 | 0 | 0.034834 | 0.261774 | 3,461 | 123 | 84 | 28.138211 | 0.758904 | 0 | 0 | 0.176471 | 0 | 0 | 0.028027 | 0.006934 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0 | 0.068627 | 0 | 0.176471 | 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 |
bb4056293343dbab19d3e2d5e53479051955458c | 883 | py | Python | sendfile.py | ponpoko094/Colorful-MHX3gx | a795266f6872eee9eb2ea3dac2bc567cbb35dcfb | [
"MIT"
] | 4 | 2021-12-12T02:20:11.000Z | 2021-12-12T02:20:16.000Z | sendfile.py | ponpoko094/Colorful-MHX3gx | a795266f6872eee9eb2ea3dac2bc567cbb35dcfb | [
"MIT"
] | 2 | 2021-12-04T04:02:41.000Z | 2021-12-07T04:40:57.000Z | sendfile.py | ponpoko094/MHX3gx | 9abd1f9758013c81622334c88c799482cf79e4b2 | [
"MIT"
] | 2 | 2021-11-12T00:21:32.000Z | 2021-11-12T07:08:51.000Z | # -*- coding: utf-8 -*-
""" What is sendfile.py
This module is send 3gx to 3ds via FTP.
このモジュールはFTPで3gxを3dsに送信します。
"""
import ftplib
from ftplib import FTP
print("--------------------------")
print("Trying to Send the Plugin over FTP...")
get_ftp = FTP()
HOST_ADDRESS = "192.168.0.50"
PORT = 5000
TIME_OUT = 30.0
tr... | 24.527778 | 69 | 0.628539 | 117 | 883 | 4.632479 | 0.538462 | 0.055351 | 0.055351 | 0.077491 | 0.095941 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054622 | 0.191393 | 883 | 35 | 70 | 25.228571 | 0.704482 | 0.123443 | 0 | 0.173913 | 0 | 0 | 0.296345 | 0.071802 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0.304348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb41c4d99b6843964899cf16c40a4d079031229f | 5,972 | py | Python | UnstructuredMesh/DataLoaderUnstructuredMesh.py | MaximeRedstone/UnstructuredCAE-DA | b54bd53540c11aa1b70e5160751905141f463217 | [
"MIT"
] | null | null | null | UnstructuredMesh/DataLoaderUnstructuredMesh.py | MaximeRedstone/UnstructuredCAE-DA | b54bd53540c11aa1b70e5160751905141f463217 | [
"MIT"
] | null | null | null | UnstructuredMesh/DataLoaderUnstructuredMesh.py | MaximeRedstone/UnstructuredCAE-DA | b54bd53540c11aa1b70e5160751905141f463217 | [
"MIT"
] | null | null | null |
""" Data Loader for CAEs on Unstructured Meshes """
import sys, os, pickle, argparse
import numpy as np
from tabulate import tabulate
from datetime import datetime
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from sklearn.cluster import DBSCAN
from scipy.spatial import distance_matrix
from ... | 39.03268 | 125 | 0.627595 | 649 | 5,972 | 5.719569 | 0.379045 | 0.039601 | 0.005388 | 0.015356 | 0.016703 | 0.016703 | 0.016703 | 0.016703 | 0 | 0 | 0 | 0.005436 | 0.291527 | 5,972 | 153 | 126 | 39.03268 | 0.871898 | 0.179672 | 0 | 0.101852 | 0 | 0 | 0.061654 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 1 | 0.064815 | false | 0.009259 | 0.148148 | 0 | 0.277778 | 0.046296 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb41f1bb72ae99e6bb69d3bb195a661a2dbb73cb | 18,832 | py | Python | projects/text_classification/dataset/utils_glue.py | khloe-zhang/libai | 1787a6d920b09d3aed8b04cecb84535612f388b8 | [
"Apache-2.0"
] | 55 | 2021-12-10T08:47:06.000Z | 2022-03-28T09:02:15.000Z | projects/text_classification/dataset/utils_glue.py | khloe-zhang/libai | 1787a6d920b09d3aed8b04cecb84535612f388b8 | [
"Apache-2.0"
] | 106 | 2021-11-03T05:16:45.000Z | 2022-03-31T06:16:23.000Z | projects/text_classification/dataset/utils_glue.py | khloe-zhang/libai | 1787a6d920b09d3aed8b04cecb84535612f388b8 | [
"Apache-2.0"
] | 13 | 2021-12-29T08:12:08.000Z | 2022-03-28T06:59:45.000Z | # coding=utf-8
# Copyright 2021 The OneFlow Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 35.802281 | 100 | 0.616769 | 2,461 | 18,832 | 4.509549 | 0.106461 | 0.072445 | 0.041088 | 0.061633 | 0.640656 | 0.623356 | 0.612723 | 0.602451 | 0.561543 | 0.546044 | 0 | 0.007414 | 0.262266 | 18,832 | 525 | 101 | 35.870476 | 0.791406 | 0.18511 | 0 | 0.522659 | 0 | 0 | 0.08558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148036 | false | 0 | 0.009063 | 0 | 0.332326 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb43fdde5b3581f834a97b398a6070ff285448c9 | 1,204 | py | Python | spiralOrder.py | xiaochuan-cd/leetcode | 8da7fb9c1a8344f5f258936c8a7d6cd25d3b3393 | [
"MIT"
] | null | null | null | spiralOrder.py | xiaochuan-cd/leetcode | 8da7fb9c1a8344f5f258936c8a7d6cd25d3b3393 | [
"MIT"
] | null | null | null | spiralOrder.py | xiaochuan-cd/leetcode | 8da7fb9c1a8344f5f258936c8a7d6cd25d3b3393 | [
"MIT"
] | null | null | null | class Solution:
def spiralOrder(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: List[int]
"""
if not matrix:
return []
lvl, lenw, lenh, ret = 0, len(matrix[0]), len(matrix), []
while lvl <= int(min(lenw, lenh)/2):
if len(ret)... | 26.755556 | 65 | 0.41113 | 147 | 1,204 | 3.312925 | 0.333333 | 0.049281 | 0.065708 | 0.098563 | 0.316222 | 0.238193 | 0.238193 | 0.238193 | 0.238193 | 0.182752 | 0 | 0.064327 | 0.431894 | 1,204 | 44 | 66 | 27.363636 | 0.647661 | 0.039037 | 0 | 0.228571 | 0 | 0 | 0.007111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0 | 0 | 0.114286 | 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 |
bb464176e752765ae17771663cfb6e6d7f9714b9 | 1,177 | py | Python | integreat_cms/cms/templatetags/tree_filters.py | Integreat/cms-v2 | c79a54fd5abb792696420aa6427a5e5a356fa79c | [
"Apache-2.0"
] | 21 | 2018-10-26T20:10:45.000Z | 2020-10-22T09:41:46.000Z | integreat_cms/cms/templatetags/tree_filters.py | Integreat/cms-v2 | c79a54fd5abb792696420aa6427a5e5a356fa79c | [
"Apache-2.0"
] | 392 | 2018-10-25T08:34:07.000Z | 2020-11-19T08:20:30.000Z | integreat_cms/cms/templatetags/tree_filters.py | Integreat/cms-v2 | c79a54fd5abb792696420aa6427a5e5a356fa79c | [
"Apache-2.0"
] | 23 | 2019-03-06T17:11:35.000Z | 2020-10-16T04:36:41.000Z | """
This is a collection of tags and filters for models which inherit from the MPTT model
:class:`~integreat_cms.cms.models.abstract_tree_node.AbstractTreeNode`
(:class:`~integreat_cms.cms.models.pages.page.Page` and
:class:`~integreat_cms.cms.models.languages.language_tree_node.LanguageTreeNode`).
"""
from django impo... | 29.425 | 86 | 0.731521 | 167 | 1,177 | 5.02994 | 0.347305 | 0.071429 | 0.089286 | 0.125 | 0.57619 | 0.458333 | 0.432143 | 0.432143 | 0.369048 | 0.369048 | 0 | 0 | 0.172472 | 1,177 | 39 | 87 | 30.179487 | 0.862423 | 0.661852 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bb4652a753ab3b1a67b9185a0d10ad240ff3d243 | 5,220 | py | Python | Preprocess.py | Rawan19/HMNet | 2aa8de20558412c1adb15fac69f18f50d6f59227 | [
"MIT"
] | null | null | null | Preprocess.py | Rawan19/HMNet | 2aa8de20558412c1adb15fac69f18f50d6f59227 | [
"MIT"
] | null | null | null | Preprocess.py | Rawan19/HMNet | 2aa8de20558412c1adb15fac69f18f50d6f59227 | [
"MIT"
] | null | null | null | import json
import spacy
from nltk.tokenize import word_tokenize
import nltk
nltk.download('punkt')
# print("argss:")
# print(sys.argv[0])
# text = sys.argv[0]
print("Preprocessing the input file ...")
def preprocess_raw(raw_text : str) :
json_dict_outer = {}
json_dict = {}
json_dict_outer['id']="1"
nlp = spa... | 61.411765 | 614 | 0.717625 | 921 | 5,220 | 3.997828 | 0.346363 | 0.026073 | 0.017653 | 0.008691 | 0.066812 | 0.043998 | 0.043998 | 0.034221 | 0.034221 | 0.034221 | 0 | 0.004042 | 0.194253 | 5,220 | 84 | 615 | 62.142857 | 0.871374 | 0.622605 | 0 | 0.043478 | 0 | 0.021739 | 0.198767 | 0.07396 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.108696 | 0 | 0.130435 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bb470997d608e5d11cdde33ab3f008db973fea29 | 780 | py | Python | problems/python/reverse_integer.py | kcc3/leetcode-solutions | 9a38f76c702a6df0f4bc798ac94b7137ae31ea76 | [
"MIT"
] | null | null | null | problems/python/reverse_integer.py | kcc3/leetcode-solutions | 9a38f76c702a6df0f4bc798ac94b7137ae31ea76 | [
"MIT"
] | null | null | null | problems/python/reverse_integer.py | kcc3/leetcode-solutions | 9a38f76c702a6df0f4bc798ac94b7137ae31ea76 | [
"MIT"
] | null | null | null | def reverse(x):
"""Given a 32-bit signed integer, reverse digits of an integer.
Solve:
Cast int to a string and use string slicing to easily do reversing
Args:
x (int): integer to reverse
Returns:
int: reversed integer or 0 if it exceeds the 32-bit signed integer range: [−2^31... | 25.16129 | 100 | 0.546154 | 121 | 780 | 3.471074 | 0.429752 | 0.185714 | 0.052381 | 0.085714 | 0.207143 | 0.207143 | 0 | 0 | 0 | 0 | 0 | 0.099065 | 0.314103 | 780 | 30 | 101 | 26 | 0.682243 | 0.365385 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 0 | 0 | 0 | 0 | 0.352941 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb48963dd6288ee9be3650594810acbe8bced547 | 1,466 | py | Python | alembic/versions/3ea865991c72_create_user_notification_table.py | modist-io/modist-api | 827d4b1962caee9a2fde1470df30d8fd60f8f998 | [
"0BSD"
] | 1 | 2021-01-03T00:20:07.000Z | 2021-01-03T00:20:07.000Z | alembic/versions/3ea865991c72_create_user_notification_table.py | modist-io/modist-api | 827d4b1962caee9a2fde1470df30d8fd60f8f998 | [
"0BSD"
] | null | null | null | alembic/versions/3ea865991c72_create_user_notification_table.py | modist-io/modist-api | 827d4b1962caee9a2fde1470df30d8fd60f8f998 | [
"0BSD"
] | null | null | null | """Create user_notification table.
Revision ID: 3ea865991c72
Revises: 4e8c8d41f23f
Create Date: 2020-04-15 18:43:23.856094
"""
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
from alembic import op
# revision identifiers, used by Alembic.
revision = "3ea865991c72"
down_revision = "4e8c8d41f23f"
b... | 27.660377 | 84 | 0.65075 | 161 | 1,466 | 5.73913 | 0.409938 | 0.08658 | 0.064935 | 0.068182 | 0.318182 | 0.318182 | 0.233766 | 0.233766 | 0.233766 | 0.145022 | 0 | 0.045574 | 0.221692 | 1,466 | 52 | 85 | 28.192308 | 0.764242 | 0.159618 | 0 | 0.323529 | 0 | 0 | 0.184514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.088235 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb48c15a637195ee193c14fecf22f1af1ff953ad | 813 | py | Python | migrations/versions/0974ecc7059c_protocols_table_add_col_is_cool.py | Spin14/wolf-backend | 21fc9d1a0df092eaa6a533149a165d2898f5fe40 | [
"MIT"
] | 2 | 2020-01-04T17:46:20.000Z | 2020-01-19T17:41:38.000Z | migrations/versions/0974ecc7059c_protocols_table_add_col_is_cool.py | Spin14/wolf-backend | 21fc9d1a0df092eaa6a533149a165d2898f5fe40 | [
"MIT"
] | 7 | 2019-05-06T01:42:12.000Z | 2019-05-14T23:22:54.000Z | migrations/versions/0974ecc7059c_protocols_table_add_col_is_cool.py | Spin14/wolf-backend | 21fc9d1a0df092eaa6a533149a165d2898f5fe40 | [
"MIT"
] | 1 | 2019-09-24T21:15:52.000Z | 2019-09-24T21:15:52.000Z | """protocols table: add col is cool
Revision ID: 0974ecc7059c
Revises: a5d44f24dd74
Create Date: 2019-05-12 01:17:23.068006
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0974ecc7059c'
down_revision = 'a5d44f24dd74'
branch_labels = None
depends_on = None
de... | 24.636364 | 78 | 0.701107 | 108 | 813 | 5.138889 | 0.5 | 0.05045 | 0.075676 | 0.082883 | 0.353153 | 0.353153 | 0.353153 | 0.353153 | 0.353153 | 0.353153 | 0 | 0.074738 | 0.177122 | 813 | 32 | 79 | 25.40625 | 0.754858 | 0.386224 | 0 | 0.166667 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 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 |
bb4979a9585e712765aa4115058b93473d1d95ca | 1,225 | py | Python | avalon/__main__.py | noflame/core | 79ea85a26f0296d7c1f72670d377611d4502307b | [
"MIT"
] | 6 | 2018-09-13T04:44:28.000Z | 2020-02-16T22:27:50.000Z | avalon/__main__.py | noflame/core | 79ea85a26f0296d7c1f72670d377611d4502307b | [
"MIT"
] | 23 | 2017-11-14T15:38:32.000Z | 2019-07-25T11:18:42.000Z | avalon/__main__.py | noflame/core | 79ea85a26f0296d7c1f72670d377611d4502307b | [
"MIT"
] | 3 | 2018-02-02T22:11:56.000Z | 2018-09-19T07:40:00.000Z | import argparse
from . import pipeline
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument("--creator", action="store_true",
help="Launch Instance Creator in standalone mode")
parser.add_argument("--loader", action="store_true",
... | 32.236842 | 74 | 0.631837 | 134 | 1,225 | 5.619403 | 0.320896 | 0.059761 | 0.112882 | 0.10093 | 0.410359 | 0.260292 | 0.172643 | 0.172643 | 0.172643 | 0.172643 | 0 | 0 | 0.270204 | 1,225 | 37 | 75 | 33.108108 | 0.842282 | 0 | 0 | 0.068966 | 0 | 0 | 0.23102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.206897 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb4a49b8b6d974716033873278cdc931b262790b | 1,607 | py | Python | Codementor.io/GarethDwyer/apps/clickbait/clickbait_classifier.py | nitin-cherian/Webapps | fbfbef6cb22fc742ee66460268afe6ff7834faa1 | [
"MIT"
] | 1 | 2017-11-22T08:56:06.000Z | 2017-11-22T08:56:06.000Z | Codementor.io/GarethDwyer/apps/clickbait/clickbait_classifier.py | nitin-cherian/Webapps | fbfbef6cb22fc742ee66460268afe6ff7834faa1 | [
"MIT"
] | null | null | null | Codementor.io/GarethDwyer/apps/clickbait/clickbait_classifier.py | nitin-cherian/Webapps | fbfbef6cb22fc742ee66460268afe6ff7834faa1 | [
"MIT"
] | null | null | null | # clickbait_classifier.py
# Import libraries
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.svm import LinearSVC
from sklearn.metrics import accuracy_score
# globals
DATA_SET_FILE = "clickbait.txt"
def is_clicbait(text):
svm, vectorizer = classifier()
# Vectorize the text. Input... | 23.289855 | 60 | 0.711886 | 201 | 1,607 | 5.532338 | 0.402985 | 0.029676 | 0.019784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014879 | 0.205352 | 1,607 | 68 | 61 | 23.632353 | 0.855912 | 0.239577 | 0 | 0 | 0 | 0 | 0.019851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.09375 | 0 | 0.3125 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bb4cb07300adc722e5ea30f3413a6aed3a6f72bd | 2,972 | py | Python | CHIMAclient/client_api.py | ANTLab-polimi/CHIMA | 368602b1555ac46a005b9111446c3a7e0952e72d | [
"Apache-2.0"
] | 1 | 2021-12-16T14:50:50.000Z | 2021-12-16T14:50:50.000Z | CHIMAclient/client_api.py | ANTLab-polimi/CHIMA | 368602b1555ac46a005b9111446c3a7e0952e72d | [
"Apache-2.0"
] | null | null | null | CHIMAclient/client_api.py | ANTLab-polimi/CHIMA | 368602b1555ac46a005b9111446c3a7e0952e72d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
from flask import Flask
from flask import request
from flask import send_file
app = Flask(__name__)
#To suppress Flask's request logs on stdout
import logging
from config import *
from mpls import *
from utils import *
from encapsulator.userspace import *
#Configured with StubAPI's constructor
CLI... | 24.766667 | 96 | 0.659825 | 418 | 2,972 | 4.569378 | 0.253589 | 0.046073 | 0.062827 | 0.039791 | 0.231937 | 0.174346 | 0.095288 | 0.072251 | 0.038743 | 0 | 0 | 0.002082 | 0.19179 | 2,972 | 120 | 97 | 24.766667 | 0.793089 | 0.131898 | 0 | 0.25 | 0 | 0 | 0.091936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1 | 0 | 0.3375 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb4ee9418756d227fb920b5482b1a70d72f470a7 | 5,163 | py | Python | tests/test_cli.py | epandurski/swpt_creditors | 35b9c6fa8ec84fe26e203a2604aff9cd5280dc4c | [
"MIT"
] | null | null | null | tests/test_cli.py | epandurski/swpt_creditors | 35b9c6fa8ec84fe26e203a2604aff9cd5280dc4c | [
"MIT"
] | null | null | null | tests/test_cli.py | epandurski/swpt_creditors | 35b9c6fa8ec84fe26e203a2604aff9cd5280dc4c | [
"MIT"
] | 1 | 2020-01-16T13:24:31.000Z | 2020-01-16T13:24:31.000Z | import logging
from datetime import date, timedelta
from swpt_creditors import procedures as p
from swpt_creditors import models as m
D_ID = -1
C_ID = 4294967296
def _create_new_creditor(creditor_id: int, activate: bool = False):
creditor = p.reserve_creditor(creditor_id)
if activate:
p.activate_cred... | 34.192053 | 118 | 0.654852 | 694 | 5,163 | 4.54611 | 0.213256 | 0.066561 | 0.012678 | 0.055784 | 0.533122 | 0.487797 | 0.430745 | 0.42187 | 0.395246 | 0.381933 | 0 | 0.035608 | 0.216734 | 5,163 | 150 | 119 | 34.42 | 0.74456 | 0 | 0 | 0.366412 | 0 | 0 | 0.200077 | 0.037188 | 0 | 0 | 0 | 0 | 0.167939 | 1 | 0.030534 | false | 0 | 0.030534 | 0 | 0.061069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bb4f9fcdd845899468417c334c142d81c1bbc6d8 | 888 | py | Python | pajbot/web/routes/base/playsounds.py | KasperHelsted/pajbot | c366dcfc5e6076f9adcfce24c7a666653068b031 | [
"MIT"
] | null | null | null | pajbot/web/routes/base/playsounds.py | KasperHelsted/pajbot | c366dcfc5e6076f9adcfce24c7a666653068b031 | [
"MIT"
] | null | null | null | pajbot/web/routes/base/playsounds.py | KasperHelsted/pajbot | c366dcfc5e6076f9adcfce24c7a666653068b031 | [
"MIT"
] | 1 | 2020-03-11T19:37:10.000Z | 2020-03-11T19:37:10.000Z | from flask import render_template
from pajbot.managers.db import DBManager
from pajbot.models.module import Module
from pajbot.models.playsound import Playsound
from pajbot.modules import PlaysoundModule
def init(app):
@app.route("/playsounds/")
def user_playsounds():
with DBManager.create_session_sc... | 34.153846 | 106 | 0.665541 | 92 | 888 | 6.282609 | 0.434783 | 0.069204 | 0.055363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256757 | 888 | 25 | 107 | 35.52 | 0.875758 | 0 | 0 | 0 | 0 | 0 | 0.030405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.25 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bb50ddc7c9fdf4690ca7e9bb60ec4a0df3dd0ba9 | 1,542 | py | Python | cla_backend/apps/timer/tests/test_managers.py | uk-gov-mirror/ministryofjustice.cla_backend | 4d524c10e7bd31f085d9c5f7bf6e08a6bb39c0a6 | [
"MIT"
] | 3 | 2019-10-02T15:31:03.000Z | 2022-01-13T10:15:53.000Z | cla_backend/apps/timer/tests/test_managers.py | uk-gov-mirror/ministryofjustice.cla_backend | 4d524c10e7bd31f085d9c5f7bf6e08a6bb39c0a6 | [
"MIT"
] | 206 | 2015-01-02T16:50:11.000Z | 2022-02-16T20:16:05.000Z | cla_backend/apps/timer/tests/test_managers.py | uk-gov-mirror/ministryofjustice.cla_backend | 4d524c10e7bd31f085d9c5f7bf6e08a6bb39c0a6 | [
"MIT"
] | 6 | 2015-03-23T23:08:42.000Z | 2022-02-15T17:04:44.000Z | from django.test import TestCase
from django.utils import timezone
from django.db import IntegrityError
from django.core.exceptions import MultipleObjectsReturned
from core.tests.mommy_utils import make_recipe, make_user
from timer.models import Timer
class RunningTimerManagerTestCase(TestCase):
def test_query_... | 35.860465 | 95 | 0.713359 | 191 | 1,542 | 5.507853 | 0.319372 | 0.051331 | 0.09981 | 0.13308 | 0.431559 | 0.387833 | 0.347909 | 0.229087 | 0.180608 | 0.096958 | 0 | 0.004026 | 0.194553 | 1,542 | 42 | 96 | 36.714286 | 0.842995 | 0 | 0 | 0.096774 | 0 | 0 | 0.0869 | 0.014916 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.129032 | false | 0.032258 | 0.193548 | 0 | 0.354839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |