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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ae0e1342adc959978ce2df9edec93bd093cab6fe | 4,704 | py | Python | booktracker.py | stonewell/booktracker | 8fc324f10b4bc9d8a0a22a40871282bbef00e5ad | [
"MIT"
] | null | null | null | booktracker.py | stonewell/booktracker | 8fc324f10b4bc9d8a0a22a40871282bbef00e5ad | [
"MIT"
] | null | null | null | booktracker.py | stonewell/booktracker | 8fc324f10b4bc9d8a0a22a40871282bbef00e5ad | [
"MIT"
] | null | null | null | import argparse
import sys
import logging
import json
def args_parser():
parser = argparse.ArgumentParser(prog='booktracker',
description='book update tracker in python')
parser.add_argument('-f', '--urls_file', type=argparse.FileType('r'), help='a file contains book urls,... | 40.904348 | 199 | 0.60119 | 572 | 4,704 | 4.84965 | 0.236014 | 0.046143 | 0.055155 | 0.043259 | 0.232516 | 0.153208 | 0.119322 | 0.105263 | 0.105263 | 0.072098 | 0 | 0.006347 | 0.26318 | 4,704 | 114 | 200 | 41.263158 | 0.793999 | 0 | 0 | 0.098901 | 0 | 0.010989 | 0.141794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032967 | false | 0 | 0.098901 | 0 | 0.164835 | 0.032967 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae0e3edf6f720a4fb2dd231e188dd1e1fa7fe663 | 667 | py | Python | 06-python-functions-1.py | reysmerwvr/python-playgrounds | 1e039639d96044986ba5cc894a210180cc2b08e0 | [
"MIT"
] | null | null | null | 06-python-functions-1.py | reysmerwvr/python-playgrounds | 1e039639d96044986ba5cc894a210180cc2b08e0 | [
"MIT"
] | null | null | null | 06-python-functions-1.py | reysmerwvr/python-playgrounds | 1e039639d96044986ba5cc894a210180cc2b08e0 | [
"MIT"
] | null | null | null | import math
def rectangle_area(b=None, h=None):
if b is None or b is None:
print("Error wrong parameters")
return
return b * h
def circle_area(radium):
return (radium ** 2) * math.pi
print(circle_area(5))
def intermediate_number(a, b):
return (a + b) / 2
print(intermediate_numb... | 16.675 | 39 | 0.610195 | 101 | 667 | 3.861386 | 0.39604 | 0.046154 | 0.107692 | 0.112821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028866 | 0.272864 | 667 | 39 | 40 | 17.102564 | 0.775258 | 0 | 0 | 0 | 0 | 0 | 0.032984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.04 | 0.08 | 0.36 | 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 |
ae0ef85218f1bd293decfce58f18a3dbb6559d3c | 3,647 | py | Python | cloudfront/resource.py | iPlantCollaborativeOpenSource/iPlant-Atmosphere | d67b953561e813dd30ffa52c8440af7cc2d990cf | [
"Unlicense"
] | 1 | 2017-10-05T08:03:37.000Z | 2017-10-05T08:03:37.000Z | cloudfront/resource.py | iPlantCollaborativeOpenSource/iPlant-Atmosphere | d67b953561e813dd30ffa52c8440af7cc2d990cf | [
"Unlicense"
] | null | null | null | cloudfront/resource.py | iPlantCollaborativeOpenSource/iPlant-Atmosphere | d67b953561e813dd30ffa52c8440af7cc2d990cf | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (c) 2010, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin
# This software is licensed under the CC-GNU GPL version 2.0 or later.
# License: http://creativecommons.org/licenses/GPL/2.0/
#
# Author: Seung-jin Kim
# Contact: s... | 32.855856 | 158 | 0.716753 | 497 | 3,647 | 5.136821 | 0.331992 | 0.043087 | 0.035644 | 0.03917 | 0.251469 | 0.217391 | 0.134743 | 0.088523 | 0.088523 | 0.088523 | 0 | 0.018662 | 0.147793 | 3,647 | 110 | 159 | 33.154545 | 0.802767 | 0.135454 | 0 | 0.170732 | 0 | 0 | 0.138173 | 0.028335 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0.02439 | 0.207317 | 0 | 0.268293 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae0f418d25ef8016cb9f505cbfcc08043b51e1d4 | 4,964 | py | Python | calculator.py | xizhongzhao/challenge5 | fd4535479a0466eb0dec3c5f0078efea5fa40401 | [
"BSD-3-Clause"
] | null | null | null | calculator.py | xizhongzhao/challenge5 | fd4535479a0466eb0dec3c5f0078efea5fa40401 | [
"BSD-3-Clause"
] | null | null | null | calculator.py | xizhongzhao/challenge5 | fd4535479a0466eb0dec3c5f0078efea5fa40401 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import sys
from multiprocessing import Queue,Process,Lock
from datetime import datetime
import getopt
import configparser
class Config(object):
def __init__(self,filename,arg='DEFAULT'):
self._filename = filename
self._arg = arg
self._obj = configparser.ConfigParser(... | 27.88764 | 91 | 0.52357 | 573 | 4,964 | 4.429319 | 0.280977 | 0.028369 | 0.038613 | 0.022459 | 0.033885 | 0.025217 | 0.025217 | 0 | 0 | 0 | 0 | 0.038619 | 0.35838 | 4,964 | 177 | 92 | 28.045198 | 0.758242 | 0.027599 | 0 | 0.170068 | 0 | 0 | 0.040241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102041 | false | 0 | 0.034014 | 0.020408 | 0.265306 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae0f8d2404360860d62fb249f2d3aa6934c5170c | 1,730 | py | Python | scripts/financials.py | pwaring/125-accounts | a8d577110184e5f833368977c36b1e407c7357f6 | [
"MIT"
] | null | null | null | scripts/financials.py | pwaring/125-accounts | a8d577110184e5f833368977c36b1e407c7357f6 | [
"MIT"
] | 7 | 2017-04-30T11:11:26.000Z | 2020-09-24T15:23:24.000Z | scripts/financials.py | pwaring/125-accounts | a8d577110184e5f833368977c36b1e407c7357f6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import argparse
import yaml
import pathlib
import decimal
import datetime
import os
decimal.getcontext().prec = 10
parser = argparse.ArgumentParser()
parser.add_argument('--data', help='path to data directory', required=True)
args = parser.parse_args()
script_path = os.path.dirname(os.path.re... | 28.833333 | 181 | 0.695954 | 234 | 1,730 | 4.952991 | 0.346154 | 0.085418 | 0.041415 | 0.051769 | 0.091458 | 0.091458 | 0.062123 | 0 | 0 | 0 | 0 | 0.007591 | 0.162428 | 1,730 | 59 | 182 | 29.322034 | 0.792271 | 0.084393 | 0 | 0 | 0 | 0 | 0.16033 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.162162 | 0 | 0.162162 | 0.162162 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae10738b2828081524171edff4d9e154279c3a52 | 4,131 | py | Python | index.py | welshonion/GB_Tweet_Eraser | 5ba77864e12bbdfc0f44fd417e1584a672120dd6 | [
"MIT"
] | null | null | null | index.py | welshonion/GB_Tweet_Eraser | 5ba77864e12bbdfc0f44fd417e1584a672120dd6 | [
"MIT"
] | null | null | null | index.py | welshonion/GB_Tweet_Eraser | 5ba77864e12bbdfc0f44fd417e1584a672120dd6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#for local
#import config
#config.write_environ()
import os,json
from flask import Flask, render_template, request, redirect, url_for, session
from requests_oauthlib import OAuth1Session
from datetime import timedelta
import twitter_auth
import twitter_delete
import postTweet
import databaseI... | 27 | 139 | 0.641007 | 470 | 4,131 | 5.417021 | 0.229787 | 0.058916 | 0.078555 | 0.045169 | 0.236842 | 0.217989 | 0.203456 | 0.142969 | 0.142969 | 0.142969 | 0 | 0.00602 | 0.195836 | 4,131 | 153 | 140 | 27 | 0.760385 | 0.078673 | 0 | 0.202381 | 0 | 0 | 0.159975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059524 | false | 0 | 0.095238 | 0 | 0.261905 | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae11598e927b79f190c3f53d990ca4e8744816b6 | 21,209 | py | Python | shades/shades.py | benrrutter/Shades | 06c1d2e9b7ba6044892a6bf7529e706574fb923c | [
"MIT"
] | 1 | 2020-11-28T19:41:39.000Z | 2020-11-28T19:41:39.000Z | shades/shades.py | benrrutter/Shades | 06c1d2e9b7ba6044892a6bf7529e706574fb923c | [
"MIT"
] | null | null | null | shades/shades.py | benrrutter/Shades | 06c1d2e9b7ba6044892a6bf7529e706574fb923c | [
"MIT"
] | null | null | null | """
shades
contains classes and functions relating to Shades' shade object
"""
from abc import ABC, abstractmethod
from typing import Tuple, List
import numpy as np
from PIL import Image
from .noise_fields import NoiseField, noise_fields
from .utils import color_clamp
class Shade(ABC):
"""
An Abstract bas... | 34.768852 | 95 | 0.588571 | 2,811 | 21,209 | 4.253646 | 0.117396 | 0.024086 | 0.034959 | 0.011709 | 0.590031 | 0.53475 | 0.495777 | 0.473447 | 0.410638 | 0.347662 | 0 | 0.022253 | 0.315621 | 21,209 | 609 | 96 | 34.825944 | 0.801516 | 0.244 | 0 | 0.49711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101156 | false | 0 | 0.017341 | 0 | 0.199422 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae131115e85d42f0478a7f770cbcfcd854b30f6f | 4,104 | py | Python | BCAWT/CA.py | AliYoussef96/BCAW-Tool | a296a52f8795325f08e0c6f00838b9e851f9459e | [
"MIT"
] | 3 | 2019-10-22T07:08:40.000Z | 2021-07-27T14:12:25.000Z | BCAWT/CA.py | AliYoussef96/BCAW-Tool | a296a52f8795325f08e0c6f00838b9e851f9459e | [
"MIT"
] | 13 | 2019-06-26T07:21:25.000Z | 2021-07-23T15:01:31.000Z | BCAWT/CA.py | AliYoussef96/BCAW-Tool | a296a52f8795325f08e0c6f00838b9e851f9459e | [
"MIT"
] | 3 | 2019-07-25T00:13:36.000Z | 2020-09-25T01:58:34.000Z | def CA(file):
"""correspondence analysis.
Args:
file (directory): csv file contains genes' RSCU values
Returns:
- csv file contains genes' values for the first 4 axes of the correspondence analysis result
- csv file contains codons' values for the first 4 axes o... | 32.832 | 157 | 0.615497 | 589 | 4,104 | 4.164686 | 0.212224 | 0.03139 | 0.030982 | 0.044028 | 0.420709 | 0.366082 | 0.29311 | 0.287403 | 0.262128 | 0.155728 | 0 | 0.023609 | 0.246589 | 4,104 | 124 | 158 | 33.096774 | 0.769728 | 0.192008 | 0 | 0.205479 | 0 | 0 | 0.111714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013699 | false | 0 | 0.041096 | 0 | 0.068493 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae14d95fbddd637652559526a0abec1bcbb1d2a1 | 4,343 | py | Python | src/jibo_animation_ui.py | marketneutral/jibo-teleop | dce5e131a364b2dc8108dd766a74cb7547077eed | [
"MIT"
] | 3 | 2019-06-03T15:12:15.000Z | 2019-06-24T03:44:40.000Z | src/jibo_animation_ui.py | marketneutral/jibo-teleop | dce5e131a364b2dc8108dd766a74cb7547077eed | [
"MIT"
] | null | null | null | src/jibo_animation_ui.py | marketneutral/jibo-teleop | dce5e131a364b2dc8108dd766a74cb7547077eed | [
"MIT"
] | 1 | 2019-04-24T13:15:57.000Z | 2019-04-24T13:15:57.000Z | # Jacqueline Kory Westlund
# May 2016
#
# The MIT License (MIT)
#
# Copyright (c) 2016 Personal Robots Group
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including w... | 39.844037 | 125 | 0.686162 | 589 | 4,343 | 4.906621 | 0.385399 | 0.03045 | 0.049481 | 0.052595 | 0.190311 | 0.122491 | 0.122491 | 0.105882 | 0.105882 | 0 | 0 | 0.00607 | 0.241308 | 4,343 | 108 | 126 | 40.212963 | 0.871017 | 0.3965 | 0 | 0.113208 | 0 | 0 | 0.089216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.075472 | 0 | 0.169811 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae160d8656b4e6e4a094903dfd38d5d1ed77aedf | 1,447 | py | Python | es_common/command/check_reservations_command.py | ES-TUDelft/interaction-design-tool-ir | d6fffa8d76c9e3df4ed1f505ee9427e5af5b8082 | [
"MIT"
] | 1 | 2021-03-07T12:36:13.000Z | 2021-03-07T12:36:13.000Z | es_common/command/check_reservations_command.py | ES-TUDelft/interaction-design-tool-ir | d6fffa8d76c9e3df4ed1f505ee9427e5af5b8082 | [
"MIT"
] | null | null | null | es_common/command/check_reservations_command.py | ES-TUDelft/interaction-design-tool-ir | d6fffa8d76c9e3df4ed1f505ee9427e5af5b8082 | [
"MIT"
] | 1 | 2021-02-20T15:10:37.000Z | 2021-02-20T15:10:37.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# **
#
# ======================== #
# CHECK_RESERVATIONS_COMMAND #
# ======================== #
# Command for checking reservations.
#
# @author ES
# **
import logging
from collections import OrderedDict
from es_common.command.es_command import ESCommand
from es_common.enu... | 24.525424 | 91 | 0.591569 | 140 | 1,447 | 5.942857 | 0.485714 | 0.028846 | 0.054087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000912 | 0.24188 | 1,447 | 58 | 92 | 24.948276 | 0.757521 | 0.179682 | 0 | 0 | 0 | 0 | 0.083405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.033333 | 0.133333 | 0.066667 | 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 |
ae16f26a49eb3ff276ad91bfaa98b238072f3c5f | 2,471 | py | Python | mr/hermes/tests.py | dokai/mr.hermes | a7809af6ebeebc7e2df4aea7d69c571e78abce03 | [
"MIT"
] | null | null | null | mr/hermes/tests.py | dokai/mr.hermes | a7809af6ebeebc7e2df4aea7d69c571e78abce03 | [
"MIT"
] | null | null | null | mr/hermes/tests.py | dokai/mr.hermes | a7809af6ebeebc7e2df4aea7d69c571e78abce03 | [
"MIT"
] | null | null | null | # coding: utf-8
from email.mime.text import MIMEText
from email.parser import Parser
import os
import pytest
@pytest.fixture
def debugsmtp(request, tmpdir):
from mr.hermes import DebuggingServer
debugsmtp = DebuggingServer(('localhost', 0), ('localhost', 0))
debugsmtp.path = str(tmpdir)
yield debugsmt... | 29.070588 | 79 | 0.631728 | 302 | 2,471 | 5.096026 | 0.350993 | 0.051982 | 0.041585 | 0.032489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015496 | 0.216512 | 2,471 | 84 | 80 | 29.416667 | 0.779442 | 0.005261 | 0 | 0.084507 | 0 | 0 | 0.140065 | 0 | 0 | 0 | 0 | 0 | 0.098592 | 1 | 0.098592 | false | 0 | 0.112676 | 0 | 0.239437 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae18dc2b432f7078f03eeb502869d0c99af4f1dd | 21,967 | py | Python | src/lib/pipeline.py | nelhage/data | 50a1ab91b786c9f89a8ff6ff10ea57ea5335490d | [
"Apache-2.0"
] | null | null | null | src/lib/pipeline.py | nelhage/data | 50a1ab91b786c9f89a8ff6ff10ea57ea5335490d | [
"Apache-2.0"
] | 1 | 2022-03-02T14:54:27.000Z | 2022-03-02T14:54:27.000Z | src/lib/pipeline.py | nelhage/data | 50a1ab91b786c9f89a8ff6ff10ea57ea5335490d | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 42.489362 | 99 | 0.628488 | 2,756 | 21,967 | 4.867199 | 0.20537 | 0.018861 | 0.005218 | 0.007082 | 0.150738 | 0.119129 | 0.09751 | 0.080215 | 0.057701 | 0.053377 | 0 | 0.004344 | 0.287386 | 21,967 | 516 | 100 | 42.571705 | 0.852562 | 0.32212 | 0 | 0.177258 | 0 | 0 | 0.076285 | 0.008507 | 0 | 0 | 0 | 0.001938 | 0 | 1 | 0.043478 | false | 0 | 0.076923 | 0 | 0.207358 | 0.003344 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae22121e986bc6059cb536b9769429d2efd4c361 | 1,665 | py | Python | python/advent_of_code/y2015/day01.py | stonecharioteer/advent-of-code | c18e47e378e82f82b77558a114e7d7c3a43c8429 | [
"MIT"
] | null | null | null | python/advent_of_code/y2015/day01.py | stonecharioteer/advent-of-code | c18e47e378e82f82b77558a114e7d7c3a43c8429 | [
"MIT"
] | null | null | null | python/advent_of_code/y2015/day01.py | stonecharioteer/advent-of-code | c18e47e378e82f82b77558a114e7d7c3a43c8429 | [
"MIT"
] | null | null | null | """--- Day 1: Not Quite Lisp ---
Santa was hoping for a white Christmas, but his weather machine's "snow" function is powered by stars, and he's fresh out! To save Christmas, he needs you to collect fifty stars by December 25th.
Collect stars by helping Santa solve puzzles. Two puzzles will be made available on each d... | 42.692308 | 247 | 0.684685 | 266 | 1,665 | 4.285714 | 0.507519 | 0.030702 | 0.045614 | 0.052632 | 0.117544 | 0.036842 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.226426 | 1,665 | 38 | 248 | 43.815789 | 0.874224 | 0.761562 | 0 | 0 | 0 | 0 | 0.005181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae2625e0bfcb85513b735f8abfbccb014e1bc0b8 | 875 | py | Python | setup.py | nbgallery/ipylogging | fa54a7ace0262398b5d7a9dd3ec6938248a70752 | [
"MIT"
] | 1 | 2021-10-18T22:12:37.000Z | 2021-10-18T22:12:37.000Z | setup.py | nbgallery/ipylogging | fa54a7ace0262398b5d7a9dd3ec6938248a70752 | [
"MIT"
] | null | null | null | setup.py | nbgallery/ipylogging | fa54a7ace0262398b5d7a9dd3ec6938248a70752 | [
"MIT"
] | null | null | null | # vim: expandtab tabstop=4 shiftwidth=4
from setuptools import setup
# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), 'r') as f:
long_description = f.read()
setup(
name='ipylogging',
version... | 30.172414 | 77 | 0.691429 | 107 | 875 | 5.53271 | 0.71028 | 0.101351 | 0.064189 | 0.101351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015363 | 0.181714 | 875 | 28 | 78 | 31.25 | 0.811453 | 0.085714 | 0 | 0 | 0 | 0 | 0.38143 | 0.026349 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae288231dc020ec00eec037bd175a4539730e6b8 | 2,594 | py | Python | utils/i18n.py | minsukkahng/pokr.kr | 169475778c998b4198ac7d6a1cebbc3c389e41b8 | [
"Apache-2.0"
] | 76 | 2015-01-19T12:39:43.000Z | 2021-10-14T06:10:25.000Z | utils/i18n.py | minsukkahng/pokr.kr | 169475778c998b4198ac7d6a1cebbc3c389e41b8 | [
"Apache-2.0"
] | 22 | 2015-01-03T01:00:53.000Z | 2019-09-14T11:55:06.000Z | utils/i18n.py | minsukkahng/pokr.kr | 169475778c998b4198ac7d6a1cebbc3c389e41b8 | [
"Apache-2.0"
] | 28 | 2015-01-14T15:45:00.000Z | 2020-06-03T13:29:41.000Z | from babel import Locale
from flask import current_app as cur_app, request
from flask.ext.babel import Babel, get_locale
from functools import wraps
from popong_nlp.utils.translit import translit
__all__ = ['PopongBabel']
class PopongBabel(Babel):
def init_app(self, app):
super(PopongBabel, self).ini... | 24.018519 | 82 | 0.662298 | 328 | 2,594 | 5.070122 | 0.292683 | 0.050511 | 0.051112 | 0.034275 | 0.054119 | 0.028864 | 0 | 0 | 0 | 0 | 0 | 0.004012 | 0.231303 | 2,594 | 107 | 83 | 24.242991 | 0.82999 | 0.030069 | 0 | 0.132353 | 0 | 0 | 0.048207 | 0 | 0 | 0 | 0 | 0.009346 | 0.029412 | 1 | 0.147059 | false | 0.029412 | 0.073529 | 0.014706 | 0.367647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae28fbfcfc5475fc99a477407eec02fb25989dcb | 5,240 | py | Python | Model/lookalike-model/lookalike_model/application/pipeline/top_n_similarity_table_generator.py | sanjaynirmal/blue-marlin | 725d614e941e5de76562d354edf11ac18897f242 | [
"Apache-2.0"
] | 1 | 2020-03-06T09:41:49.000Z | 2020-03-06T09:41:49.000Z | Model/lookalike-model/lookalike_model/application/pipeline/top_n_similarity_table_generator.py | sanjaynirmal/blue-marlin | 725d614e941e5de76562d354edf11ac18897f242 | [
"Apache-2.0"
] | null | null | null | Model/lookalike-model/lookalike_model/application/pipeline/top_n_similarity_table_generator.py | sanjaynirmal/blue-marlin | 725d614e941e5de76562d354edf11ac18897f242 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | 40.620155 | 306 | 0.717748 | 726 | 5,240 | 4.949036 | 0.326446 | 0.040078 | 0.027275 | 0.021709 | 0.126635 | 0.069023 | 0.056777 | 0 | 0 | 0 | 0 | 0.02694 | 0.171183 | 5,240 | 128 | 307 | 40.9375 | 0.800368 | 0.176145 | 0 | 0.115942 | 0 | 0 | 0.17554 | 0.032806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.217391 | 0 | 0.275362 | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae294288f339abaa44909776daf88e26d1673f50 | 1,056 | py | Python | lib/auth.py | p4lsec/autoshoppr | a0dba3060e26008c2d441358ff7f4a909ba4fcab | [
"MIT"
] | null | null | null | lib/auth.py | p4lsec/autoshoppr | a0dba3060e26008c2d441358ff7f4a909ba4fcab | [
"MIT"
] | null | null | null | lib/auth.py | p4lsec/autoshoppr | a0dba3060e26008c2d441358ff7f4a909ba4fcab | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
import pickle
import configparser
class AmazonLogin:
def __init__(self, driver=None):
self.url = "https://www.a... | 35.2 | 98 | 0.629735 | 123 | 1,056 | 5.317073 | 0.528455 | 0.107034 | 0.09633 | 0.085627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002584 | 0.267045 | 1,056 | 30 | 99 | 35.2 | 0.842377 | 0 | 0 | 0 | 0 | 0 | 0.113529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae29895c6324b4119860a3e674198d1b40dd9964 | 1,317 | py | Python | Verulean/days/aoc15.py | BasedJellyfish11/Advent-of-Code-2021 | 9ed84902958c99c341ec2444d5db561c84348911 | [
"MIT"
] | 3 | 2021-12-03T22:40:17.000Z | 2021-12-23T21:17:16.000Z | Verulean/days/aoc15.py | BasedJellyfish11/Advent-of-Code-2021 | 9ed84902958c99c341ec2444d5db561c84348911 | [
"MIT"
] | null | null | null | Verulean/days/aoc15.py | BasedJellyfish11/Advent-of-Code-2021 | 9ed84902958c99c341ec2444d5db561c84348911 | [
"MIT"
] | null | null | null | import numpy as np
import heapq
class PriorityQueue(list):
def pop(self):
return heapq.heappop(self)
def push(self, value):
return heapq.heappush(self, value)
def neighbors(i, j):
return ((i-1, j), (i+1, j), (i, j-1), (i, j+1))
def numpy_dijkstra(costs):
m, n = costs.shape
s... | 24.388889 | 64 | 0.525437 | 205 | 1,317 | 3.282927 | 0.312195 | 0.011887 | 0.080238 | 0.011887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023649 | 0.32574 | 1,317 | 54 | 65 | 24.388889 | 0.734234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.051282 | 0.076923 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ae2d0af0f1b9daeb6ad913a0cc22fcfa911b9c6b | 5,291 | py | Python | pypy/module/_minimal_curses/fficurses.py | microvm/pypy-mu | 6b03fbe93052d0eb3a4c67152c987c16837b3484 | [
"Apache-2.0",
"OpenSSL"
] | 34 | 2015-07-09T04:53:27.000Z | 2021-07-19T05:22:27.000Z | pypy/module/_minimal_curses/fficurses.py | microvm/pypy-mu | 6b03fbe93052d0eb3a4c67152c987c16837b3484 | [
"Apache-2.0",
"OpenSSL"
] | 6 | 2015-05-30T17:20:45.000Z | 2017-06-12T14:29:23.000Z | pypy/module/_minimal_curses/fficurses.py | microvm/pypy-mu | 6b03fbe93052d0eb3a4c67152c987c16837b3484 | [
"Apache-2.0",
"OpenSSL"
] | 11 | 2015-09-07T14:26:08.000Z | 2020-04-10T07:20:41.000Z | """ The ffi for rpython, need to be imported for side effects
"""
from rpython.rtyper.lltypesystem import rffi
from rpython.rtyper.lltypesystem import lltype
from rpython.rtyper.tool import rffi_platform
from rpython.rtyper.extfunc import register_external
from pypy.module._minimal_curses import interp_curses
from rpy... | 36.743056 | 82 | 0.634096 | 657 | 5,291 | 4.931507 | 0.284627 | 0.050926 | 0.019444 | 0.022222 | 0.260494 | 0.121914 | 0.059259 | 0.011111 | 0 | 0 | 0 | 0.010936 | 0.256851 | 5,291 | 143 | 83 | 37 | 0.813072 | 0.068796 | 0 | 0.2 | 0 | 0 | 0.104192 | 0.004477 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095652 | false | 0.017391 | 0.06087 | 0 | 0.208696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae313f7b22dd8a45cb53e8bfba694df52241d4b5 | 1,310 | py | Python | exercises/development/intermediate/exercise_5.py | littlekign/comp-think.github.io | 21bce306c7672b6355a6fdaf260824542dbca595 | [
"CC0-1.0",
"CC-BY-4.0"
] | 40 | 2019-01-25T11:14:30.000Z | 2021-12-05T15:04:11.000Z | exercises/development/intermediate/exercise_5.py | littlekign/comp-think.github.io | 21bce306c7672b6355a6fdaf260824542dbca595 | [
"CC0-1.0",
"CC-BY-4.0"
] | 1 | 2020-11-08T15:18:58.000Z | 2020-11-19T22:44:28.000Z | exercises/development/intermediate/exercise_5.py | littlekign/comp-think.github.io | 21bce306c7672b6355a6fdaf260824542dbca595 | [
"CC0-1.0",
"CC-BY-4.0"
] | 19 | 2019-12-28T16:06:01.000Z | 2021-12-14T15:52:44.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Silvio Peroni <essepuntato@gmail.com>
#
# Permission to use, copy, modify, and/or distribute this software for any purpose
# with or without fee is hereby granted, provided that the above copyright notice
# and this permission notice appear in all copies.
#
# THE SOFTWARE I... | 33.589744 | 84 | 0.70458 | 198 | 1,310 | 4.621212 | 0.540404 | 0.021858 | 0.02623 | 0.04918 | 0.080874 | 0.043716 | 0.043716 | 0 | 0 | 0 | 0 | 0.006679 | 0.2 | 1,310 | 38 | 85 | 34.473684 | 0.866412 | 0.632824 | 0 | 0 | 0 | 0 | 0.019438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ae3425a0e350725139bf2c51d7938fab7269b9d6 | 516 | py | Python | src/lib/spaces/orientedplane.py | Wombatlord/PygamePong | d56b1529fe095e6a30b27b6039d9d52105ad900d | [
"MIT"
] | null | null | null | src/lib/spaces/orientedplane.py | Wombatlord/PygamePong | d56b1529fe095e6a30b27b6039d9d52105ad900d | [
"MIT"
] | 2 | 2021-02-19T05:05:43.000Z | 2021-02-20T02:16:53.000Z | src/lib/spaces/orientedplane.py | Wombatlord/PygamePong | d56b1529fe095e6a30b27b6039d9d52105ad900d | [
"MIT"
] | 1 | 2020-08-13T10:14:46.000Z | 2020-08-13T10:14:46.000Z | from src.lib.spaces.vector import Vector
class OrientedPlane:
def __init__(self, normal: Vector) -> None:
self.normal = normal.normalise()
def reflect(self, initialVector: Vector):
normalComponent: float = initialVector.dot(self.normal)
if normalComponent < 0:
normalCompon... | 30.352941 | 70 | 0.660853 | 50 | 516 | 6.74 | 0.54 | 0.118694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010363 | 0.251938 | 516 | 16 | 71 | 32.25 | 0.862694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ae371c01a5249a7ea65891e859df84f39ceed04c | 1,357 | py | Python | UI for prediction/prediction_file.py | berfin-t/HeartAttackPrediction | a9acbd0356f3c3e4100b1964862242f6afe7da3b | [
"Apache-2.0"
] | null | null | null | UI for prediction/prediction_file.py | berfin-t/HeartAttackPrediction | a9acbd0356f3c3e4100b1964862242f6afe7da3b | [
"Apache-2.0"
] | null | null | null | UI for prediction/prediction_file.py | berfin-t/HeartAttackPrediction | a9acbd0356f3c3e4100b1964862242f6afe7da3b | [
"Apache-2.0"
] | null | null | null | import pickle
import os
import sys
import pandas as pd
from sklearn.metrics import accuracy_score
from sklearn.model_selection import train_test_split
import warnings
warnings.filterwarnings("ignore", message="Reloaded modules: <module_name>")
def train():
data = pd.read_csv('heart.csv')
Y = data["target"... | 26.096154 | 95 | 0.664702 | 201 | 1,357 | 4.273632 | 0.427861 | 0.029104 | 0.020955 | 0.032596 | 0.032596 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.205601 | 1,357 | 52 | 96 | 26.096154 | 0.790353 | 0 | 0 | 0 | 0 | 0 | 0.079529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.210526 | 0 | 0.368421 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ae39d5bb797b8ed6a1c3f37606a273b2c5c79dbb | 8,326 | py | Python | tests/test_optimization.py | davidusb-geek/emhass | 5d6a5ad45c26b819c6bc1cb0e8943940d7fc8f17 | [
"MIT"
] | 17 | 2021-09-12T22:32:09.000Z | 2022-03-17T17:45:29.000Z | tests/test_optimization.py | davidusb-geek/emhass | 5d6a5ad45c26b819c6bc1cb0e8943940d7fc8f17 | [
"MIT"
] | 1 | 2021-12-22T21:10:04.000Z | 2021-12-22T21:10:04.000Z | tests/test_optimization.py | davidusb-geek/emhass | 5d6a5ad45c26b819c6bc1cb0e8943940d7fc8f17 | [
"MIT"
] | 2 | 2021-11-03T10:29:05.000Z | 2021-11-19T12:08:24.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
import pandas as pd
import numpy as np
import pathlib
import pickle
from datetime import datetime, timezone
from emhass.retrieve_hass import retrieve_hass
from emhass.optimization import optimization
from emhass.forecast import forecast
from emhass.utils i... | 60.773723 | 138 | 0.700336 | 1,159 | 8,326 | 4.653149 | 0.164797 | 0.048025 | 0.053773 | 0.080104 | 0.659559 | 0.587799 | 0.564065 | 0.521788 | 0.495457 | 0.495457 | 0 | 0.006579 | 0.196733 | 8,326 | 136 | 139 | 61.220588 | 0.799791 | 0.020178 | 0 | 0.278261 | 0 | 0 | 0.066994 | 0.008589 | 0 | 0 | 0 | 0 | 0.165217 | 1 | 0.034783 | false | 0 | 0.086957 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae3a5afb8c080bcd642ec9b461aca11065494bcb | 4,555 | py | Python | experiments/counters.py | TenantBase/django-experiments | b75cf11159da4f4c75d9798dff3ddfd1ca454261 | [
"MIT"
] | null | null | null | experiments/counters.py | TenantBase/django-experiments | b75cf11159da4f4c75d9798dff3ddfd1ca454261 | [
"MIT"
] | 1 | 2019-05-29T00:00:15.000Z | 2019-05-29T00:00:15.000Z | experiments/counters.py | TenantBase/django-experiments | b75cf11159da4f4c75d9798dff3ddfd1ca454261 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.utils.functional import cached_property
import redis
from redis.sentinel import Sentinel
from redis.exceptions import ConnectionError, ResponseError
COUNTER_CACHE_KEY = 'experiments:participants:%s'
COUNTER_FREQ_CACHE_KEY = 'experiments:freq:%s'
class Counters(object):
... | 38.931624 | 130 | 0.639517 | 525 | 4,555 | 5.314286 | 0.251429 | 0.108961 | 0.073118 | 0.100358 | 0.451971 | 0.407168 | 0.360573 | 0.360573 | 0.292115 | 0.226523 | 0 | 0.004337 | 0.291328 | 4,555 | 116 | 131 | 39.267241 | 0.859975 | 0.143578 | 0 | 0.432099 | 0 | 0 | 0.044284 | 0.031926 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098765 | false | 0.049383 | 0.061728 | 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 |
ae3bab1dfe4bf59579d4fb381bd53583200e99c5 | 447 | py | Python | irl_gym/envs/env_utils.py | uidilr/irl_gym | 3352cb9189f3d5076a116db6678207e186ff4fc6 | [
"MIT"
] | 1 | 2020-12-29T11:04:56.000Z | 2020-12-29T11:04:56.000Z | irl_gym/envs/env_utils.py | uidilr/irl_gym | 3352cb9189f3d5076a116db6678207e186ff4fc6 | [
"MIT"
] | null | null | null | irl_gym/envs/env_utils.py | uidilr/irl_gym | 3352cb9189f3d5076a116db6678207e186ff4fc6 | [
"MIT"
] | null | null | null | import os
ENV_ASSET_DIR = os.path.join(os.path.dirname(__file__), 'assets')
def get_asset_xml(xml_name):
return os.path.join(ENV_ASSET_DIR, xml_name)
def test_env(env, T=100):
aspace = env.action_space
env.reset()
for t in range(T):
o, r, done, infos = env.step(aspace.sample())
prin... | 20.318182 | 65 | 0.568233 | 68 | 447 | 3.529412 | 0.558824 | 0.075 | 0.091667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009202 | 0.270694 | 447 | 21 | 66 | 21.285714 | 0.726994 | 0 | 0 | 0 | 0 | 0 | 0.053812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0.066667 | 0.266667 | 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 |
ae3d3e28bf5a8518622d4a9ff1865444e5e3583f | 1,889 | py | Python | Project_1-Alien_Invasion/settings.py | Vandeilsonln/Python-Crash-Course | 39b4f421504618f947672304a8e97edf7bc7f13d | [
"MIT"
] | null | null | null | Project_1-Alien_Invasion/settings.py | Vandeilsonln/Python-Crash-Course | 39b4f421504618f947672304a8e97edf7bc7f13d | [
"MIT"
] | null | null | null | Project_1-Alien_Invasion/settings.py | Vandeilsonln/Python-Crash-Course | 39b4f421504618f947672304a8e97edf7bc7f13d | [
"MIT"
] | null | null | null | import pygame
class Settings():
# A class to store all settings for Alien Invasion.
def __init__(self):
# Screen Settings.
self.screen_width = 1080
self.screen_height = 630
self.bg_image = pygame.image.load('Project_1-Alien_Invasion/_images/background_stars_moving.jpg')
... | 32.568966 | 105 | 0.643727 | 247 | 1,889 | 4.668016 | 0.315789 | 0.085863 | 0.069384 | 0.044232 | 0.34085 | 0.2732 | 0.114484 | 0.114484 | 0.114484 | 0.114484 | 0 | 0.042899 | 0.284277 | 1,889 | 58 | 106 | 32.568966 | 0.809911 | 0.218105 | 0 | 0.176471 | 0 | 0 | 0.041124 | 0.041124 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.029412 | 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 |
ae3e733e97f3939f4c5a55b9fab69488409a8357 | 1,153 | py | Python | app/main/views/letter_jobs.py | karlchillmaid/notifications-admin | 9ef6da4ef9e2fa97b7debb4b573cb035a5cb8880 | [
"MIT"
] | null | null | null | app/main/views/letter_jobs.py | karlchillmaid/notifications-admin | 9ef6da4ef9e2fa97b7debb4b573cb035a5cb8880 | [
"MIT"
] | null | null | null | app/main/views/letter_jobs.py | karlchillmaid/notifications-admin | 9ef6da4ef9e2fa97b7debb4b573cb035a5cb8880 | [
"MIT"
] | null | null | null | from flask import redirect, render_template, request, session, url_for
from flask_login import login_required
from app import letter_jobs_client
from app.main import main
from app.utils import user_is_platform_admin
@main.route("/letter-jobs", methods=['GET', 'POST'])
@login_required
@user_is_platform_admin
def lett... | 31.162162 | 100 | 0.666956 | 164 | 1,153 | 4.414634 | 0.317073 | 0.179558 | 0.077348 | 0.052486 | 0.129834 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002225 | 0.220295 | 1,153 | 36 | 101 | 32.027778 | 0.803115 | 0 | 0 | 0 | 0 | 0 | 0.115351 | 0.019081 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.185185 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ae3ea51dd07df4bb77e861ac50689fed8f983f65 | 909 | py | Python | dev-test/1_euler/srayan/euler-2.py | sgango/Y1-Project | 89205600552ede6f8da29231cfa52a3538ae8df4 | [
"BSD-2-Clause"
] | 2 | 2020-09-23T13:27:26.000Z | 2021-09-14T14:15:30.000Z | dev-test/1_euler/srayan/euler-2.py | sgango/Y1-Project | 89205600552ede6f8da29231cfa52a3538ae8df4 | [
"BSD-2-Clause"
] | 1 | 2020-06-18T14:02:59.000Z | 2020-06-18T14:02:59.000Z | dev-test/1_euler/srayan/euler-2.py | sgango/Y1-Project | 89205600552ede6f8da29231cfa52a3538ae8df4 | [
"BSD-2-Clause"
] | null | null | null | """
Adapting Euler method to handle 2nd order ODEs
Srayan Gangopadhyay
2020-05-16
"""
import numpy as np
import matplotlib.pyplot as plt
"""
y' = dy/dx
For a function of form y'' = f(x, y, y')
Define y' = v so y'' = v'
"""
def func(y, v, x): # RHS of v' = in terms of y, v, x
return x + v - 3*y
# PARAMETERS
y0 ... | 21.139535 | 67 | 0.59516 | 179 | 909 | 3.022346 | 0.446927 | 0.022181 | 0.016636 | 0.033272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046218 | 0.214521 | 909 | 42 | 68 | 21.642857 | 0.711485 | 0.320132 | 0 | 0 | 0 | 0 | 0.04466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.086957 | 0.043478 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae3f83f14ff4a0be7289a02711f0b034c72507db | 3,022 | py | Python | dss_sm_so/tests/test_backends.py | MobileCloudNetworking/dssaas | 87b6f7d60ecc397a88326a955b2ddfd3d73205d1 | [
"Apache-2.0"
] | null | null | null | dss_sm_so/tests/test_backends.py | MobileCloudNetworking/dssaas | 87b6f7d60ecc397a88326a955b2ddfd3d73205d1 | [
"Apache-2.0"
] | null | null | null | dss_sm_so/tests/test_backends.py | MobileCloudNetworking/dssaas | 87b6f7d60ecc397a88326a955b2ddfd3d73205d1 | [
"Apache-2.0"
] | 1 | 2018-10-09T06:28:36.000Z | 2018-10-09T06:28:36.000Z | __author__ = 'florian'
import unittest
from occi.backend import ActionBackend, KindBackend
from sm.sm.backends import ServiceBackend
from mock import patch
from sm.sm.so_manager import SOManager
from occi.core_model import Kind
from occi.core_model import Resource
@patch('mcn.sm.so_manager.CONFIG')
@patch('mcn.sm.so_... | 38.74359 | 101 | 0.697551 | 372 | 3,022 | 5.432796 | 0.271505 | 0.103909 | 0.054429 | 0.062345 | 0.405245 | 0.161306 | 0.084117 | 0.084117 | 0.065314 | 0.065314 | 0 | 0.001239 | 0.198875 | 3,022 | 77 | 102 | 39.246753 | 0.83354 | 0.172402 | 0 | 0.113208 | 0 | 0 | 0.152672 | 0.100844 | 0 | 0 | 0 | 0 | 0.075472 | 1 | 0.132075 | false | 0.018868 | 0.132075 | 0 | 0.301887 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae41b46656d025e136cbbd3d68dd912515307e97 | 1,370 | py | Python | setup.py | eduk8s/prototype-cli | 74443dafb08e5b65f48ea3b9a7a03a803f79437a | [
"Apache-2.0"
] | 1 | 2019-12-30T02:52:56.000Z | 2019-12-30T02:52:56.000Z | setup.py | eduk8s/prototype-cli | 74443dafb08e5b65f48ea3b9a7a03a803f79437a | [
"Apache-2.0"
] | null | null | null | setup.py | eduk8s/prototype-cli | 74443dafb08e5b65f48ea3b9a7a03a803f79437a | [
"Apache-2.0"
] | null | null | null | import sys
import os
from setuptools import setup
long_description = open("README.rst").read()
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Lang... | 27.4 | 68 | 0.607299 | 150 | 1,370 | 5.453333 | 0.52 | 0.08802 | 0.091687 | 0.095355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035883 | 0.227007 | 1,370 | 49 | 69 | 27.959184 | 0.736544 | 0 | 0 | 0.045455 | 0 | 0 | 0.472993 | 0.018978 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.068182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae490aaf317fe81f8776bee9c9b05dfe568d8efd | 3,538 | py | Python | tests/system/workspace_factory.py | davetcoleman/catkin_tools | 3dd28ffab0e48775b14c6bab5a7b8b974cdd126c | [
"Apache-2.0"
] | null | null | null | tests/system/workspace_factory.py | davetcoleman/catkin_tools | 3dd28ffab0e48775b14c6bab5a7b8b974cdd126c | [
"Apache-2.0"
] | null | null | null | tests/system/workspace_factory.py | davetcoleman/catkin_tools | 3dd28ffab0e48775b14c6bab5a7b8b974cdd126c | [
"Apache-2.0"
] | null | null | null | import os
import shutil
from ..utils import temporary_directory
class workspace_factory(temporary_directory):
def __init__(self, source_space='src', prefix=''):
super(workspace_factory, self).__init__(prefix=prefix)
self.source_space = source_space
def __enter__(self):
self.temporary... | 37.242105 | 113 | 0.623233 | 433 | 3,538 | 4.836028 | 0.249423 | 0.063037 | 0.057307 | 0.035817 | 0.223496 | 0.152818 | 0.103152 | 0.042025 | 0 | 0 | 0 | 0.004539 | 0.252685 | 3,538 | 94 | 114 | 37.638298 | 0.787443 | 0 | 0 | 0.063291 | 0 | 0 | 0.186546 | 0.078293 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101266 | false | 0 | 0.037975 | 0 | 0.189873 | 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 |
ae4a834438c1be65dcec72110a53d1ee4b52eb26 | 7,722 | py | Python | zero/recommendation_algorithm.py | Akulen/mangaki-zero | 5eb2de06b8684ed948b8b903e9f567f06c35e3ef | [
"MIT"
] | null | null | null | zero/recommendation_algorithm.py | Akulen/mangaki-zero | 5eb2de06b8684ed948b8b903e9f567f06c35e3ef | [
"MIT"
] | null | null | null | zero/recommendation_algorithm.py | Akulen/mangaki-zero | 5eb2de06b8684ed948b8b903e9f567f06c35e3ef | [
"MIT"
] | null | null | null | from zero.side import SideInformation
from zero.chrono import Chrono
from collections import defaultdict
from itertools import product
import numpy as np
import pickle
import os.path
import logging
class RecommendationAlgorithmFactory:
def __init__(self):
self.algorithm_registry = {}
self.algorith... | 35.916279 | 91 | 0.615644 | 990 | 7,722 | 4.594949 | 0.239394 | 0.028578 | 0.009233 | 0.015388 | 0.127281 | 0.08925 | 0.061992 | 0.051 | 0.051 | 0.051 | 0 | 0.005422 | 0.283476 | 7,722 | 214 | 92 | 36.084112 | 0.816736 | 0.135587 | 0 | 0.104575 | 0 | 0 | 0.051545 | 0 | 0 | 0 | 0 | 0.004673 | 0 | 1 | 0.183007 | false | 0 | 0.052288 | 0.052288 | 0.379085 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae4aea0f2b66c03f8fc9b59889443427e5fe285c | 150,103 | py | Python | venv/Lib/site-packages/pyo/lib/_wxwidgets.py | mintzer/pupillometry-rf-back | cfa86fa984a49dce0123798f8de5b838c02e10d5 | [
"CC-BY-4.0"
] | null | null | null | venv/Lib/site-packages/pyo/lib/_wxwidgets.py | mintzer/pupillometry-rf-back | cfa86fa984a49dce0123798f8de5b838c02e10d5 | [
"CC-BY-4.0"
] | null | null | null | venv/Lib/site-packages/pyo/lib/_wxwidgets.py | mintzer/pupillometry-rf-back | cfa86fa984a49dce0123798f8de5b838c02e10d5 | [
"CC-BY-4.0"
] | null | null | null | from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
"""
Copyright 2009-2015 Olivier Belanger
This file is part of pyo, a python module to help digital signal
processing script creation.
pyo is free software: you can redistribute it and/or modify
it under the t... | 35.987293 | 120 | 0.525166 | 17,828 | 150,103 | 4.362688 | 0.072246 | 0.00864 | 0.012266 | 0.015711 | 0.669058 | 0.605313 | 0.559451 | 0.523799 | 0.493469 | 0.469709 | 0 | 0.035753 | 0.343537 | 150,103 | 4,170 | 121 | 35.995923 | 0.753575 | 0.014177 | 0 | 0.571468 | 0 | 0 | 0.02712 | 0.00604 | 0 | 0 | 0 | 0.00024 | 0 | 1 | 0.072436 | false | 0.000829 | 0.001935 | 0.004147 | 0.098148 | 0.000553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae4bd329b0a39f201a2f41d92b1c573029070350 | 5,382 | py | Python | napalm_yang/utils.py | ckishimo/napalm-yang | 8f2bd907bd3afcde3c2f8e985192de74748baf6c | [
"Apache-2.0"
] | 64 | 2016-10-20T15:47:18.000Z | 2021-11-11T11:57:32.000Z | napalm_yang/utils.py | ckishimo/napalm-yang | 8f2bd907bd3afcde3c2f8e985192de74748baf6c | [
"Apache-2.0"
] | 126 | 2016-10-05T10:36:14.000Z | 2019-05-15T08:43:23.000Z | napalm_yang/utils.py | ckishimo/napalm-yang | 8f2bd907bd3afcde3c2f8e985192de74748baf6c | [
"Apache-2.0"
] | 63 | 2016-11-07T15:23:08.000Z | 2021-09-22T14:41:16.000Z | from napalm_yang import base
def model_to_dict(model, mode="", show_defaults=False):
"""
Given a model, return a representation of the model in a dict.
This is mostly useful to have a quick visual represenation of the model.
Args:
model (PybindBase): Model to transform.
mode (string... | 30.40678 | 87 | 0.473987 | 555 | 5,382 | 4.421622 | 0.259459 | 0.03423 | 0.02119 | 0.018337 | 0.05379 | 0.05379 | 0.0326 | 0 | 0 | 0 | 0 | 0.004328 | 0.398922 | 5,382 | 176 | 88 | 30.579545 | 0.75425 | 0.45392 | 0 | 0.191781 | 0 | 0 | 0.063694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082192 | false | 0.013699 | 0.013699 | 0 | 0.246575 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae4dfb5b9ba2ae94cfbe34ece6b1afd93884dd8b | 2,430 | py | Python | config.py | kenykau/reinforcement-forex | cac8c59ae7f5593bb7d9bb47e85f4ba2435a7a33 | [
"MIT"
] | null | null | null | config.py | kenykau/reinforcement-forex | cac8c59ae7f5593bb7d9bb47e85f4ba2435a7a33 | [
"MIT"
] | null | null | null | config.py | kenykau/reinforcement-forex | cac8c59ae7f5593bb7d9bb47e85f4ba2435a7a33 | [
"MIT"
] | null | null | null | from enum import IntEnum
from typing import List, Dict
class AssetType(IntEnum):
FOREX = 0
CFD = 1
class SpreadMode(IntEnum):
BIDASK = 0
RANDOM = 1
IGNORE = 2
FIXED = 3
SESSIONAL = 4
class Op(IntEnum):
LONG = 0
SHORT = 1
HOLD = 2
CLOSEALL = 3
class Config:
datafile:st... | 25.851064 | 169 | 0.488477 | 271 | 2,430 | 4.154982 | 0.409594 | 0.010657 | 0.034636 | 0.047957 | 0.460924 | 0.405861 | 0.333925 | 0.264654 | 0.264654 | 0.264654 | 0 | 0.05397 | 0.336626 | 2,430 | 93 | 170 | 26.129032 | 0.644541 | 0.062963 | 0 | 0.261905 | 0 | 0 | 0.31239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.261905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae4e5f7fe6b5f5c3253e178b1b6eeb60c312745d | 3,020 | py | Python | metaci/release/models.py | giveclarity/MetaCI | f51bd50acf2e7d5e111f993f4816e5f0a5c5a441 | [
"BSD-3-Clause"
] | null | null | null | metaci/release/models.py | giveclarity/MetaCI | f51bd50acf2e7d5e111f993f4816e5f0a5c5a441 | [
"BSD-3-Clause"
] | null | null | null | metaci/release/models.py | giveclarity/MetaCI | f51bd50acf2e7d5e111f993f4816e5f0a5c5a441 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import datetime
from django.db import models
from django.utils.translation import ugettext_lazy as _
from model_utils import Choices
from model_utils.fields import AutoCreatedField, AutoLastModifiedField
from model_utils.models import StatusModel
from m... | 30.816327 | 82 | 0.67351 | 350 | 3,020 | 5.525714 | 0.268571 | 0.053775 | 0.07394 | 0.096691 | 0.244571 | 0.190796 | 0.190796 | 0.129783 | 0.043433 | 0 | 0 | 0.015638 | 0.216556 | 3,020 | 97 | 83 | 31.134021 | 0.801775 | 0.006954 | 0 | 0.125 | 0 | 0 | 0.125792 | 0.015682 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1 | 0.05 | 0.4875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae52b0c373a33d43af43b8a92c2a1b20dd0c87e2 | 3,841 | py | Python | dgraphpandas/strategies/horizontal.py | rohith-bs/dgraphpandas | 29e91e2e7bb1d5d991ab94709a2d7e27f7dd7316 | [
"MIT"
] | 1 | 2022-02-28T17:34:11.000Z | 2022-02-28T17:34:11.000Z | dgraphpandas/strategies/horizontal.py | rohith-bs/dgraphpandas | 29e91e2e7bb1d5d991ab94709a2d7e27f7dd7316 | [
"MIT"
] | null | null | null | dgraphpandas/strategies/horizontal.py | rohith-bs/dgraphpandas | 29e91e2e7bb1d5d991ab94709a2d7e27f7dd7316 | [
"MIT"
] | 1 | 2021-04-10T19:57:05.000Z | 2021-04-10T19:57:05.000Z | import logging
from typing import Any, Dict, List, Callable, Union
import pandas as pd
from dgraphpandas.config import get_from_config
from dgraphpandas.strategies.vertical import vertical_transform
logger = logging.getLogger(__name__)
def horizontal_transform(
frame: Union[str, pd.DataFrame],
conf... | 40.431579 | 123 | 0.667534 | 515 | 3,841 | 4.836893 | 0.341748 | 0.046969 | 0.026094 | 0.019269 | 0.057808 | 0.040145 | 0 | 0 | 0 | 0 | 0 | 0.003775 | 0.241343 | 3,841 | 94 | 124 | 40.861702 | 0.851064 | 0.020047 | 0 | 0.033898 | 0 | 0 | 0.276588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.084746 | 0 | 0.118644 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ae533f8aecb8c3af4f9e6c1898e9747d30e5e6e5 | 2,675 | py | Python | classifier-start/lib/utils.py | sharifkaiser/codelabs-edgetpu-image-classifier-detector | da01229abec824994776507949adad1939fa45f0 | [
"Apache-2.0"
] | 4 | 2019-05-13T15:18:36.000Z | 2021-10-08T22:16:49.000Z | classifier-start/lib/utils.py | sharifkaiser/codelabs-edgetpu-image-classifier-detector | da01229abec824994776507949adad1939fa45f0 | [
"Apache-2.0"
] | 1 | 2019-06-30T14:43:31.000Z | 2019-10-25T17:49:52.000Z | classifier-start/lib/utils.py | sharifkaiser/codelabs-edgetpu-image-classifier-detector | da01229abec824994776507949adad1939fa45f0 | [
"Apache-2.0"
] | 3 | 2019-07-22T15:16:02.000Z | 2022-03-04T11:51:11.000Z | # Copyright 2019 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, ... | 34.74026 | 94 | 0.575327 | 382 | 2,675 | 3.963351 | 0.410995 | 0.03963 | 0.015852 | 0.017834 | 0.209379 | 0.18428 | 0.156539 | 0.156539 | 0.156539 | 0.156539 | 0 | 0.038282 | 0.277383 | 2,675 | 76 | 95 | 35.197368 | 0.744956 | 0.211963 | 0 | 0.093023 | 0 | 0 | 0.110952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.046512 | 0.023256 | 0.186047 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae5506b0817f6bd6ba613b44f0005304d3cd1c5d | 932 | py | Python | example.py | rivasd/activiewBCI | b2278ebacc733e328f28d308146108a52d3deb78 | [
"MIT"
] | 1 | 2020-09-10T08:04:06.000Z | 2020-09-10T08:04:06.000Z | example.py | rivasd/activiewBCI | b2278ebacc733e328f28d308146108a52d3deb78 | [
"MIT"
] | null | null | null | example.py | rivasd/activiewBCI | b2278ebacc733e328f28d308146108a52d3deb78 | [
"MIT"
] | null | null | null | from ActiView import ActiveTwo
import pyqtgraph as pg
from pyqtgraph.Qt import QtCore, QtGui
import numpy as np
app = QtGui.QApplication([])
win = pg.GraphicsWindow()
win.setWindowTitle("Mimicking ActiView's EEG monitoring screen")
monitor = win.addPlot()
#we have so many curves that we will store them in an array
... | 23.897436 | 76 | 0.714592 | 134 | 932 | 4.895522 | 0.61194 | 0.051829 | 0.027439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013021 | 0.175966 | 932 | 39 | 77 | 23.897436 | 0.841146 | 0.166309 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.208333 | 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 |
ae5b1b9181972edef32d0c181d78511358cde1b1 | 2,671 | py | Python | 8_random_walker_segmentation_scikit-image.py | Data-Laboratory/WorkExamples | 27e58207e664da7813673e6792c0c30c0a5bf74c | [
"MIT"
] | 1 | 2021-12-15T22:27:27.000Z | 2021-12-15T22:27:27.000Z | 8_random_walker_segmentation_scikit-image.py | Data-Laboratory/WorkExamples | 27e58207e664da7813673e6792c0c30c0a5bf74c | [
"MIT"
] | null | null | null | 8_random_walker_segmentation_scikit-image.py | Data-Laboratory/WorkExamples | 27e58207e664da7813673e6792c0c30c0a5bf74c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
__author__ = "Sreenivas Bhattiprolu"
__license__ = "Feel free to copy, I appreciate if you acknowledge Python for Microscopists"
# https://www.youtube.com/watch?v=6P8YhJa2V6o
"""
Using Random walker to generate lables and then segment and finally cleanup using closing operation.
"""
import mat... | 31.797619 | 102 | 0.7383 | 431 | 2,671 | 4.419954 | 0.401392 | 0.031496 | 0.047244 | 0.022047 | 0.11811 | 0.103412 | 0.103412 | 0.068241 | 0.068241 | 0.068241 | 0 | 0.034543 | 0.143766 | 2,671 | 83 | 103 | 32.180723 | 0.798426 | 0.365032 | 0 | 0 | 0 | 0 | 0.103846 | 0.029487 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.225806 | 0 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ae5dba7efd27593d74b0d517709967bd1f8e2e4a | 3,090 | py | Python | dockend/dockend.py | ChrisVidal10/dockend | 8904e1d017fcc1767d8593190df537a750a50b4c | [
"MIT"
] | null | null | null | dockend/dockend.py | ChrisVidal10/dockend | 8904e1d017fcc1767d8593190df537a750a50b4c | [
"MIT"
] | 1 | 2018-06-25T23:38:09.000Z | 2018-06-25T23:38:09.000Z | dockend/dockend.py | ChrisVidal10/dockend | 8904e1d017fcc1767d8593190df537a750a50b4c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from termcolor import cprint
import argparse
import docker
DOCKER_CLIENT = docker.from_env()
def main():
try:
not_found_for_stop = False
not_found_for_start = False
ARGS = parser_arguments()
k_name_stop = 'byr' if ARGS.service == 'dla' else 'dev'
k_nam... | 35.517241 | 124 | 0.612621 | 373 | 3,090 | 4.839142 | 0.286863 | 0.033241 | 0.042659 | 0.035457 | 0.357341 | 0.307479 | 0.229917 | 0.166205 | 0.166205 | 0.128532 | 0 | 0.002691 | 0.278317 | 3,090 | 86 | 125 | 35.930233 | 0.806726 | 0.006472 | 0 | 0.219178 | 0 | 0 | 0.245031 | 0.011079 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068493 | false | 0 | 0.041096 | 0 | 0.150685 | 0.178082 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae616a523c7cfa0788d9038fa4b59abb5b2c597c | 625 | py | Python | exp_figure/figure_3(grey).py | qqxx6661/LDSM | b2be6fdfdac00fc4a469a72b3a10686fa0f4bd80 | [
"MIT"
] | 4 | 2019-06-04T06:19:01.000Z | 2021-04-16T15:50:30.000Z | exp_figure/figure_3(grey).py | qqxx6661/LDSM | b2be6fdfdac00fc4a469a72b3a10686fa0f4bd80 | [
"MIT"
] | 1 | 2019-09-10T10:33:18.000Z | 2021-02-08T14:51:39.000Z | exp_figure/figure_3(grey).py | qqxx6661/LDSM | b2be6fdfdac00fc4a469a72b3a10686fa0f4bd80 | [
"MIT"
] | 2 | 2019-06-04T06:19:08.000Z | 2021-09-06T07:30:44.000Z | import random
import matplotlib.pyplot as plt
import numpy as np
# 在一个图形中创建两条线
fig = plt.figure(figsize=(10, 6))
ax1 = fig.add_subplot(1, 1, 1)
ax1.set_xlabel('Frame', fontsize=18)
ax1.set_ylabel('Overall Time Cost (s)', fontsize=18)
x = range(180)
y1 = []
y2 = []
for i in range(180):
y1.append(random.uniform(0... | 23.148148 | 64 | 0.68 | 111 | 625 | 3.801802 | 0.558559 | 0.07109 | 0.047393 | 0.094787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11883 | 0.1248 | 625 | 26 | 65 | 24.038462 | 0.652651 | 0.0176 | 0 | 0 | 0 | 0 | 0.093137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ae6410131f36b3418762c4c860f8c13f5bed9bd8 | 1,067 | py | Python | build/lib/flaskr/__init__.py | LayneWei/NLP-medical-information-extraction | 1657d956afd3a2c476da28e3e8a4f1c4ce4bdc4b | [
"MIT"
] | null | null | null | build/lib/flaskr/__init__.py | LayneWei/NLP-medical-information-extraction | 1657d956afd3a2c476da28e3e8a4f1c4ce4bdc4b | [
"MIT"
] | null | null | null | build/lib/flaskr/__init__.py | LayneWei/NLP-medical-information-extraction | 1657d956afd3a2c476da28e3e8a4f1c4ce4bdc4b | [
"MIT"
] | null | null | null | import os
from flask import Flask
#import SQLAlchemy
from flaskr import db
def clear_data(session):
meta = db.metadata
for table in reversed(meta.sorted_tables):
print('Clear table %s' % table)
session.execute(table.delete())
session.commit()
def create_app(test_config=None):
# cre... | 23.711111 | 66 | 0.66448 | 145 | 1,067 | 4.737931 | 0.517241 | 0.058224 | 0.056769 | 0.058224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242737 | 1,067 | 45 | 67 | 23.711111 | 0.850248 | 0.160262 | 0 | 0 | 0 | 0 | 0.050448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.034483 | 0.172414 | 0 | 0.275862 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae689f1c1175daa6fc473f2cb48f19de2559deff | 830 | py | Python | EvaMap/Metrics/sameAs.py | benjimor/EvaMap | 42e616abe9f15925b885797d30496e30615989a0 | [
"MIT"
] | 1 | 2021-01-29T18:53:26.000Z | 2021-01-29T18:53:26.000Z | EvaMap/Metrics/sameAs.py | benjimor/EvaMap | 42e616abe9f15925b885797d30496e30615989a0 | [
"MIT"
] | 1 | 2021-06-06T17:56:00.000Z | 2021-06-06T17:56:00.000Z | EvaMap/Metrics/sameAs.py | benjimor/EvaMap | 42e616abe9f15925b885797d30496e30615989a0 | [
"MIT"
] | null | null | null | import rdflib
import requests
from EvaMap.Metrics.metric import metric
def sameAs(g_onto, liste_map, g_map, raw_data, g_link) :
result = metric()
result['name'] = "Use of sameAs properties"
nbPossible = 0
points = 0
set_URIs = set()
for s, _, _ in g_map.triples((None, None, None)) :
if... | 31.923077 | 112 | 0.595181 | 110 | 830 | 4.354545 | 0.472727 | 0.025052 | 0.025052 | 0.05428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.277108 | 830 | 26 | 113 | 31.923077 | 0.773333 | 0 | 0 | 0.083333 | 0 | 0 | 0.126354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.125 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae69c8b77055ca55392fe8a19a30b6175954dde3 | 5,716 | py | Python | networkapi/api_route_map/v4/serializers.py | vinicius-marinho/GloboNetworkAPI | 94651d3b4dd180769bc40ec966814f3427ccfb5b | [
"Apache-2.0"
] | 73 | 2015-04-13T17:56:11.000Z | 2022-03-24T06:13:07.000Z | networkapi/api_route_map/v4/serializers.py | leopoldomauricio/GloboNetworkAPI | 3b5b2e336d9eb53b2c113977bfe466b23a50aa29 | [
"Apache-2.0"
] | 99 | 2015-04-03T01:04:46.000Z | 2021-10-03T23:24:48.000Z | networkapi/api_route_map/v4/serializers.py | shildenbrand/GloboNetworkAPI | 515d5e961456cee657c08c275faa1b69b7452719 | [
"Apache-2.0"
] | 64 | 2015-08-05T21:26:29.000Z | 2022-03-22T01:06:28.000Z | # -*- coding: utf-8 -*-
import logging
from django.db.models import get_model
from rest_framework import serializers
from networkapi.util.geral import get_app
from networkapi.util.serializers import DynamicFieldsModelSerializer
log = logging.getLogger(__name__)
class RouteMapV4Serializer(DynamicFieldsModelSerializ... | 31.065217 | 78 | 0.448216 | 410 | 5,716 | 5.860976 | 0.168293 | 0.096546 | 0.093633 | 0.028298 | 0.533916 | 0.426134 | 0.230545 | 0.19975 | 0.163129 | 0.042447 | 0 | 0.004525 | 0.458712 | 5,716 | 183 | 79 | 31.234973 | 0.77214 | 0.003674 | 0 | 0.474026 | 0 | 0 | 0.204286 | 0.038117 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038961 | false | 0 | 0.032468 | 0.025974 | 0.149351 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae6dc1d38a589fb6dfb638a55ee82b80c824df9d | 10,329 | py | Python | actions/line_mmc.py | fmariv/udt-qgis-plugin | 20cbf8889f2a2448d982c7057a4cfbe37d90d78b | [
"MIT"
] | null | null | null | actions/line_mmc.py | fmariv/udt-qgis-plugin | 20cbf8889f2a2448d982c7057a4cfbe37d90d78b | [
"MIT"
] | 2 | 2021-09-02T07:22:24.000Z | 2021-09-22T05:31:45.000Z | actions/line_mmc.py | fmariv/udt-qgis-plugin | 20cbf8889f2a2448d982c7057a4cfbe37d90d78b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
/***************************************************************************
UDTPlugin
In this file is where the LineMMC class is defined. The main function
of this class is to run the automation process that exports the geometries
and generates the metadata of a municipal line.
**********... | 41.817814 | 127 | 0.618162 | 1,218 | 10,329 | 4.922824 | 0.19376 | 0.033356 | 0.026684 | 0.041194 | 0.472482 | 0.43429 | 0.392595 | 0.329887 | 0.24483 | 0.223149 | 0 | 0.006854 | 0.251331 | 10,329 | 246 | 128 | 41.987805 | 0.768525 | 0.09604 | 0 | 0.235669 | 0 | 0 | 0.090979 | 0.011633 | 0 | 0 | 0 | 0.004065 | 0 | 1 | 0.10828 | false | 0 | 0.044586 | 0 | 0.210191 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae6e3ce852e6d0276690375427d2e2f3c5953dfb | 5,369 | py | Python | SentimentAnalysis.py | hoossainalik/instalyzer | 9ad7c59fba3f617801d3ec0c3ae216029ee0aece | [
"MIT"
] | null | null | null | SentimentAnalysis.py | hoossainalik/instalyzer | 9ad7c59fba3f617801d3ec0c3ae216029ee0aece | [
"MIT"
] | null | null | null | SentimentAnalysis.py | hoossainalik/instalyzer | 9ad7c59fba3f617801d3ec0c3ae216029ee0aece | [
"MIT"
] | null | null | null | """
Module: Sentiment Analysis
Author: Hussain Ali Khan
Version: 1.0.0
Last Modified: 29/11/2018 (Thursday)
"""
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
import pandas as pd
import re
import os
from emoji import UNICODE_EMOJI
import matplotlib.pyplot as plt
import seaborn as sns
class Res... | 28.558511 | 109 | 0.596573 | 648 | 5,369 | 4.736111 | 0.260802 | 0.020854 | 0.024438 | 0.033887 | 0.142392 | 0.067775 | 0.067775 | 0.042359 | 0.042359 | 0 | 0 | 0.007236 | 0.227789 | 5,369 | 188 | 110 | 28.558511 | 0.732754 | 0.081393 | 0 | 0.052174 | 0 | 0 | 0.129347 | 0.032337 | 0 | 0 | 0 | 0 | 0 | 1 | 0.13913 | false | 0 | 0.06087 | 0.043478 | 0.295652 | 0.095652 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae6e8bcab2c7710339f988ae2adebe63a8a6d860 | 11,100 | py | Python | deep_sort_/track.py | brjathu/PHALP | 0502c0aa515292bc70e358fe3b3ec65e63215327 | [
"MIT"
] | 45 | 2022-02-23T04:32:22.000Z | 2022-03-31T15:02:39.000Z | deep_sort_/track.py | brjathu/PHALP | 0502c0aa515292bc70e358fe3b3ec65e63215327 | [
"MIT"
] | 5 | 2022-02-23T15:08:29.000Z | 2022-03-24T19:54:55.000Z | deep_sort_/track.py | brjathu/PHALP | 0502c0aa515292bc70e358fe3b3ec65e63215327 | [
"MIT"
] | 2 | 2022-02-26T13:01:19.000Z | 2022-03-24T04:53:29.000Z | """
Modified code from https://github.com/nwojke/deep_sort
"""
import numpy as np
import copy
import torch
import torch.nn as nn
import torch.nn.functional as F
import scipy.signal as signal
from scipy.ndimage.filters import gaussian_filter1d
class TrackState:
"""
Enumeration type for the single target t... | 42.692308 | 176 | 0.607748 | 1,397 | 11,100 | 4.591267 | 0.158912 | 0.112254 | 0.03773 | 0.037418 | 0.463361 | 0.321952 | 0.290458 | 0.23324 | 0.148269 | 0.137044 | 0 | 0.009891 | 0.298649 | 11,100 | 260 | 177 | 42.692308 | 0.814001 | 0.216757 | 0 | 0.058394 | 0 | 0 | 0.002999 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065693 | false | 0 | 0.051095 | 0 | 0.182482 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae74ea38559f52ac217bf0d17616d5da35736211 | 14,773 | py | Python | functions_baseline_opencv.py | Shiro-LK/Super-Resolution-ProbaV | e6b9d9d62caa50b84cd5bdca906af53aa1a5de8b | [
"MIT"
] | null | null | null | functions_baseline_opencv.py | Shiro-LK/Super-Resolution-ProbaV | e6b9d9d62caa50b84cd5bdca906af53aa1a5de8b | [
"MIT"
] | null | null | null | functions_baseline_opencv.py | Shiro-LK/Super-Resolution-ProbaV | e6b9d9d62caa50b84cd5bdca906af53aa1a5de8b | [
"MIT"
] | 1 | 2020-04-15T10:36:31.000Z | 2020-04-15T10:36:31.000Z | # -*- coding: utf-8 -*-
import cv2
import numpy as np
import os
import pandas as pd
import math
from skimage import io
from skimage.transform import rescale
import skimage
import numba
from numba import prange
import time
from pathlib import Path
# MAX 35 IMG
## Create TXT FILE for loading
def import_norm_data(fil... | 34.678404 | 175 | 0.56434 | 1,999 | 14,773 | 4.050025 | 0.158079 | 0.039526 | 0.022233 | 0.032856 | 0.527297 | 0.50457 | 0.431201 | 0.404768 | 0.398592 | 0.366477 | 0 | 0.047098 | 0.301496 | 14,773 | 425 | 176 | 34.76 | 0.737475 | 0.149191 | 0 | 0.393502 | 0 | 0 | 0.078482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046931 | false | 0.00361 | 0.046931 | 0 | 0.133574 | 0.028881 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae75ff7994410f7e88a0e941f01acf2c32ca349b | 4,676 | py | Python | csvtoqbo.py | Airbitz/airbitz-ofx | 8dc9a851fc585e373611d6d8e27ae0e8540ea35b | [
"MIT"
] | 2 | 2016-01-08T20:14:21.000Z | 2018-06-15T17:58:09.000Z | csvtoqbo.py | EdgeApp/airbitz-ofx | 8dc9a851fc585e373611d6d8e27ae0e8540ea35b | [
"MIT"
] | null | null | null | csvtoqbo.py | EdgeApp/airbitz-ofx | 8dc9a851fc585e373611d6d8e27ae0e8540ea35b | [
"MIT"
] | 2 | 2016-01-08T20:14:22.000Z | 2016-03-30T19:59:48.000Z | #####################################################################
# #
# File: csvtoqbo.py #
# Developer: Paul Puey #
# Original Code by: Justin Leto #
# Forked from https://github.com/jleto/csvtoqbo #
# #
# main utility script file Python scrip... | 39.965812 | 155 | 0.534217 | 490 | 4,676 | 5.02449 | 0.332653 | 0.025589 | 0.02437 | 0.036556 | 0.240049 | 0.168562 | 0.159626 | 0.159626 | 0.159626 | 0.159626 | 0 | 0.008363 | 0.335115 | 4,676 | 116 | 156 | 40.310345 | 0.783532 | 0.174294 | 0 | 0.246575 | 0 | 0 | 0.146197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.027397 | 0.082192 | 0 | 0.082192 | 0.068493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae81bb11bf5eb162ed9c0bef3b103ae5f25903e5 | 772 | py | Python | icekit/response_pages/migrations/0001_initial.py | ic-labs/django-icekit | c507ea5b1864303732c53ad7c5800571fca5fa94 | [
"MIT"
] | 52 | 2016-09-13T03:50:58.000Z | 2022-02-23T16:25:08.000Z | icekit/response_pages/migrations/0001_initial.py | ic-labs/django-icekit | c507ea5b1864303732c53ad7c5800571fca5fa94 | [
"MIT"
] | 304 | 2016-08-11T14:17:30.000Z | 2020-07-22T13:35:18.000Z | icekit/response_pages/migrations/0001_initial.py | ic-labs/django-icekit | c507ea5b1864303732c53ad7c5800571fca5fa94 | [
"MIT"
] | 12 | 2016-09-21T18:46:35.000Z | 2021-02-15T19:37:50.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='ResponsePage',
fields=[
('id', models.AutoField... | 29.692308 | 143 | 0.563472 | 74 | 772 | 5.72973 | 0.743243 | 0.070755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02011 | 0.291451 | 772 | 25 | 144 | 30.88 | 0.755027 | 0.027202 | 0 | 0 | 0 | 0 | 0.100134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae81fe56f7386088702aa7258803c69277db7d71 | 5,495 | py | Python | tests/cancer.py | old-rob/cptac | 9b33893dd11c9320628a751c8840783a6ce81957 | [
"Apache-2.0"
] | null | null | null | tests/cancer.py | old-rob/cptac | 9b33893dd11c9320628a751c8840783a6ce81957 | [
"Apache-2.0"
] | null | null | null | tests/cancer.py | old-rob/cptac | 9b33893dd11c9320628a751c8840783a6ce81957 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Samuel Payne sam_payne@byu.edu
# 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 ... | 33.10241 | 89 | 0.593267 | 610 | 5,495 | 5.159016 | 0.329508 | 0.049571 | 0.040674 | 0.02415 | 0.158564 | 0.115983 | 0.089609 | 0 | 0 | 0 | 0 | 0.003758 | 0.322111 | 5,495 | 165 | 90 | 33.30303 | 0.841074 | 0.278981 | 0 | 0 | 0 | 0 | 0.149594 | 0.023579 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.03125 | 0.03125 | 0.21875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae83889dc0e1e2a10d944afb86e01b0c15293029 | 5,098 | py | Python | code/mlflow.py | michaelhball/ml_tidbits | 55b77fded5f31cd280f043c8aa792a07ca572170 | [
"MIT"
] | 1 | 2021-04-15T19:42:51.000Z | 2021-04-15T19:42:51.000Z | code/mlflow.py | michaelhball/ml_toolshed | 55b77fded5f31cd280f043c8aa792a07ca572170 | [
"MIT"
] | null | null | null | code/mlflow.py | michaelhball/ml_toolshed | 55b77fded5f31cd280f043c8aa792a07ca572170 | [
"MIT"
] | null | null | null | import git
from mlflow.tracking import MlflowClient
from .utils import scp_files
class MyMLFlowClient:
""" Class to handle all MLFlow interactions. Only need one such client (i.e. can be used for many
training runs).
"""
def __init__(self, tracking_uri):
""" Initialise
:param t... | 41.112903 | 113 | 0.632797 | 674 | 5,098 | 4.596439 | 0.24184 | 0.050032 | 0.029374 | 0.030988 | 0.25694 | 0.205617 | 0.152034 | 0.104261 | 0.104261 | 0.058102 | 0 | 0 | 0.287564 | 5,098 | 123 | 114 | 41.447154 | 0.852974 | 0.291291 | 0 | 0.343284 | 0 | 0 | 0.10625 | 0.03244 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089552 | false | 0 | 0.044776 | 0 | 0.328358 | 0.074627 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ae84bc9755e4432da8e4dc0549c028ec150a10c7 | 4,215 | py | Python | infinite_nature/autocruise.py | DionysisChristopoulos/google-research | 7f59ef421beef32ca16c2a7215be74f7eba01a0f | [
"Apache-2.0"
] | 23,901 | 2018-10-04T19:48:53.000Z | 2022-03-31T21:27:42.000Z | infinite_nature/autocruise.py | davidfitzek/google-research | eb2b142f26e39aac1dcbb768417465ae9d4e5af6 | [
"Apache-2.0"
] | 891 | 2018-11-10T06:16:13.000Z | 2022-03-31T10:42:34.000Z | infinite_nature/autocruise.py | davidfitzek/google-research | eb2b142f26e39aac1dcbb768417465ae9d4e5af6 | [
"Apache-2.0"
] | 6,047 | 2018-10-12T06:31:02.000Z | 2022-03-31T13:59:28.000Z | # coding=utf-8
# Copyright 2021 The Google Research 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 applicab... | 33.452381 | 80 | 0.704152 | 631 | 4,215 | 4.492868 | 0.380349 | 0.014109 | 0.015873 | 0.016931 | 0.048677 | 0.008466 | 0.008466 | 0.008466 | 0.008466 | 0.008466 | 0 | 0.031732 | 0.2 | 4,215 | 125 | 81 | 33.72 | 0.809015 | 0.331673 | 0 | 0 | 0 | 0 | 0.087757 | 0.01589 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.108108 | 0 | 0.135135 | 0.040541 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ae858354ab4f1914f4dfc11dd1d64a5507769f1b | 563 | py | Python | app/gui/repeater.py | TomVollerthun1337/logsmith | f2ecab4dea295d5493a9a3e77a2837b13fa139e5 | [
"Apache-2.0"
] | 19 | 2020-01-18T00:25:43.000Z | 2022-03-14T07:39:08.000Z | app/gui/repeater.py | TomVollerthun1337/logsmith | f2ecab4dea295d5493a9a3e77a2837b13fa139e5 | [
"Apache-2.0"
] | 85 | 2020-01-21T12:13:56.000Z | 2022-03-31T04:01:03.000Z | app/gui/repeater.py | TomVollerthun1337/logsmith | f2ecab4dea295d5493a9a3e77a2837b13fa139e5 | [
"Apache-2.0"
] | 2 | 2020-06-25T06:15:19.000Z | 2021-02-15T18:17:38.000Z | import logging
from PyQt5.QtCore import QTimer
logger = logging.getLogger('logsmith')
class Repeater:
def __init__(self):
self._current_task = None
def start(self, task, delay_seconds):
delay_millies = delay_seconds * 1000
self.stop()
logger.info('start timer')
time... | 21.653846 | 44 | 0.635879 | 65 | 563 | 5.261538 | 0.461538 | 0.128655 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.271758 | 563 | 25 | 45 | 22.52 | 0.821951 | 0 | 0 | 0 | 0 | 0 | 0.033748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 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 |
ae8a6e4bdddcbc9fac409eabb59750fe2825a857 | 3,785 | py | Python | exp/ground/infonce_acc_plot/plot.py | ChopinSharp/info-ground | 12fba3c478b806f2fe068faac81237fd0f458b80 | [
"Apache-2.0"
] | 56 | 2020-09-21T07:41:08.000Z | 2022-01-10T13:28:36.000Z | exp/ground/infonce_acc_plot/plot.py | ChopinSharp/info-ground | 12fba3c478b806f2fe068faac81237fd0f458b80 | [
"Apache-2.0"
] | 5 | 2020-08-26T15:50:29.000Z | 2022-01-04T07:53:07.000Z | exp/ground/infonce_acc_plot/plot.py | ChopinSharp/info-ground | 12fba3c478b806f2fe068faac81237fd0f458b80 | [
"Apache-2.0"
] | 15 | 2020-08-24T16:36:20.000Z | 2022-01-17T12:51:45.000Z | import os
import numpy as np
import matplotlib.pyplot as plt
import utils.io as io
from global_constants import misc_paths
def get_infonce_data(infonce_dir,layers):
infonce_data = io.load_json_object(
os.path.join(
infonce_dir,
f'infonce_{layers}_layer.json'))
iters = []
lo... | 33.495575 | 115 | 0.622985 | 550 | 3,785 | 4.125455 | 0.338182 | 0.04848 | 0.042309 | 0.044072 | 0.180696 | 0.088145 | 0 | 0 | 0 | 0 | 0 | 0.027009 | 0.217437 | 3,785 | 113 | 116 | 33.495575 | 0.739028 | 0.085337 | 0 | 0.024096 | 0 | 0 | 0.16044 | 0.070084 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048193 | false | 0 | 0.060241 | 0 | 0.13253 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae8b36f89eab35825f3909abeb288a05a078f59a | 5,416 | py | Python | fairness/app.py | Tomcli/ffdl-knative | b68edaaa1717ac34c946e25d24198590012b0e20 | [
"Apache-2.0"
] | 2 | 2019-01-18T16:10:50.000Z | 2019-10-24T11:42:31.000Z | fairness/app.py | Tomcli/ffdl-knative | b68edaaa1717ac34c946e25d24198590012b0e20 | [
"Apache-2.0"
] | null | null | null | fairness/app.py | Tomcli/ffdl-knative | b68edaaa1717ac34c946e25d24198590012b0e20 | [
"Apache-2.0"
] | null | null | null | import os
from aif360.datasets import BinaryLabelDataset
from aif360.metrics import ClassificationMetric
import numpy as np
import argparse
import pandas as pd
import boto3
import botocore
import json
from flask import Flask, request, abort
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
def dataset_wrap... | 41.984496 | 116 | 0.636263 | 588 | 5,416 | 5.506803 | 0.280612 | 0.05559 | 0.083385 | 0.095738 | 0.362261 | 0.242742 | 0.198579 | 0.198579 | 0.159049 | 0.159049 | 0 | 0.014627 | 0.280465 | 5,416 | 128 | 117 | 42.3125 | 0.816269 | 0.032496 | 0 | 0.114583 | 0 | 0 | 0.097912 | 0.008668 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052083 | false | 0.041667 | 0.114583 | 0.010417 | 0.208333 | 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 |
ae8f4daece742a4c95381dd42af1f242bb79321d | 1,739 | py | Python | trseeker/models/chromosome_model.py | ad3002/Lyrebird | 8c0a186e32d61189f073401152c52a89bfed46ed | [
"MIT"
] | null | null | null | trseeker/models/chromosome_model.py | ad3002/Lyrebird | 8c0a186e32d61189f073401152c52a89bfed46ed | [
"MIT"
] | null | null | null | trseeker/models/chromosome_model.py | ad3002/Lyrebird | 8c0a186e32d61189f073401152c52a89bfed46ed | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#@created: 08.09.2011
#@author: Aleksey Komissarov
#@contact: ad3002@gmail.com
from PyExp import AbstractModel
class ChomosomeModel(AbstractModel):
''' Chromosome model.
Dumpable attributes:
- "chr_genome",
- "chr_number",
- "chr_tax... | 28.048387 | 87 | 0.496262 | 184 | 1,739 | 4.217391 | 0.282609 | 0.139175 | 0.104381 | 0.07732 | 0.69201 | 0.606959 | 0.497423 | 0.497423 | 0.497423 | 0.497423 | 0 | 0.046578 | 0.395055 | 1,739 | 61 | 88 | 28.508197 | 0.691065 | 0.26567 | 0 | 0 | 0 | 0 | 0.18198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.035714 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ae93028834095132f0d185515f7eb82644b3d574 | 478 | py | Python | heap/1.py | miiiingi/algorithmstudy | 75eaf97e2c41d7edf32eb4a57d4d7685c9218aba | [
"MIT"
] | null | null | null | heap/1.py | miiiingi/algorithmstudy | 75eaf97e2c41d7edf32eb4a57d4d7685c9218aba | [
"MIT"
] | null | null | null | heap/1.py | miiiingi/algorithmstudy | 75eaf97e2c41d7edf32eb4a57d4d7685c9218aba | [
"MIT"
] | null | null | null | import heapq
def solution(scoville, K) :
heapq.heapify(scoville)
count = 0
while scoville :
try :
first = heapq.heappop(scoville)
second = heapq.heappop(scoville)
combine = first + second * 2
count += 1
heapq.heappush(scoville, combine)... | 28.117647 | 45 | 0.523013 | 52 | 478 | 4.807692 | 0.538462 | 0.096 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057239 | 0.378661 | 478 | 17 | 46 | 28.117647 | 0.784512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.235294 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ae999dae84b2cf7e73c7d8ac63967bb8d105893f | 652 | py | Python | migrations/versions/e424d03ba260_.py | danielSbastos/gistified | 96a8b61df4dbe54cc2e808734976c969e024976b | [
"MIT"
] | null | null | null | migrations/versions/e424d03ba260_.py | danielSbastos/gistified | 96a8b61df4dbe54cc2e808734976c969e024976b | [
"MIT"
] | null | null | null | migrations/versions/e424d03ba260_.py | danielSbastos/gistified | 96a8b61df4dbe54cc2e808734976c969e024976b | [
"MIT"
] | null | null | null | """empty message
Revision ID: e424d03ba260
Revises: ace8d095a26b
Create Date: 2017-10-12 11:25:11.775853
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e424d03ba260'
down_revision = 'ace8d095a26b'
branch_labels = None
depends_on = None
def upgrade():
# ... | 22.482759 | 81 | 0.68865 | 82 | 652 | 5.414634 | 0.609756 | 0.060811 | 0.094595 | 0.103604 | 0.198198 | 0.198198 | 0.198198 | 0.198198 | 0 | 0 | 0 | 0.092937 | 0.174847 | 652 | 28 | 82 | 23.285714 | 0.732342 | 0.452454 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 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 |
ae9ca2472d73373711675aa4fb19922a4e4088ab | 1,558 | py | Python | buycoins/ngnt.py | Youngestdev/buycoins-python | fa17600cfa92278d1c7f80f0a860e3ba7b5bc3b0 | [
"MIT"
] | 46 | 2021-02-06T07:29:22.000Z | 2022-01-28T06:52:18.000Z | buycoins/ngnt.py | Youngestdev/buycoins-python | fa17600cfa92278d1c7f80f0a860e3ba7b5bc3b0 | [
"MIT"
] | 1 | 2021-04-05T12:40:38.000Z | 2021-04-09T18:46:20.000Z | buycoins/ngnt.py | Youngestdev/buycoins-python | fa17600cfa92278d1c7f80f0a860e3ba7b5bc3b0 | [
"MIT"
] | 5 | 2021-02-06T08:02:19.000Z | 2022-02-18T12:46:26.000Z | from buycoins.client import BuyCoinsClient
from buycoins.exceptions import AccountError, ClientError, ServerError
from buycoins.exceptions.utils import check_response
class NGNT(BuyCoinsClient):
"""The NGNT class handles the generations of virtual bank deposit account."""
def create_deposit_account(self, acc... | 35.409091 | 89 | 0.596919 | 138 | 1,558 | 6.623188 | 0.471014 | 0.084245 | 0.049234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002913 | 0.338896 | 1,558 | 43 | 90 | 36.232558 | 0.884466 | 0.191913 | 0 | 0 | 0 | 0 | 0.363184 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.037037 | 0.111111 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae9d77bf011601ea6bcbab318779c48b7e9a439f | 1,510 | py | Python | factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_training_status/signals.py | piyushka17/azure-intelligent-edge-patterns | 0d088899afb0022daa2ac434226824dba2c997c1 | [
"MIT"
] | null | null | null | factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_training_status/signals.py | piyushka17/azure-intelligent-edge-patterns | 0d088899afb0022daa2ac434226824dba2c997c1 | [
"MIT"
] | null | null | null | factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_training_status/signals.py | piyushka17/azure-intelligent-edge-patterns | 0d088899afb0022daa2ac434226824dba2c997c1 | [
"MIT"
] | null | null | null | """App Signals
"""
import logging
from django.db.models.signals import post_save
from django.dispatch import receiver
from vision_on_edge.azure_training_status.models import TrainingStatus
from vision_on_edge.notifications.models import Notification
logger = logging.getLogger(__name__)
@receiver(signal=post_save,... | 33.555556 | 75 | 0.654305 | 162 | 1,510 | 5.87037 | 0.351852 | 0.117771 | 0.046267 | 0.092534 | 0.384858 | 0.212408 | 0.115668 | 0.115668 | 0.115668 | 0.115668 | 0 | 0 | 0.25298 | 1,510 | 44 | 76 | 34.318182 | 0.843085 | 0.048344 | 0 | 0.066667 | 0 | 0 | 0.203258 | 0.065156 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.166667 | 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 |
ae9e92c6d74c509eb9f3ed8c37b24f34f450e293 | 2,526 | py | Python | brilleaux_flask/brilleaux.py | digirati-co-uk/brilleaux | 5061d96e60239380c052f70dd12c4bec830e80db | [
"MIT"
] | null | null | null | brilleaux_flask/brilleaux.py | digirati-co-uk/brilleaux | 5061d96e60239380c052f70dd12c4bec830e80db | [
"MIT"
] | null | null | null | brilleaux_flask/brilleaux.py | digirati-co-uk/brilleaux | 5061d96e60239380c052f70dd12c4bec830e80db | [
"MIT"
] | null | null | null | import json
import brilleaux_settings
import flask
from flask_caching import Cache
from flask_cors import CORS
import logging
import sys
from pyelucidate.pyelucidate import async_items_by_container, format_results, mirador_oa
app = flask.Flask(__name__)
CORS(app)
cache = Cache(
app, config={"CACHE_TYPE": "filesyst... | 32.805195 | 88 | 0.644497 | 317 | 2,526 | 4.984227 | 0.485804 | 0.044304 | 0.032278 | 0.026582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014256 | 0.250198 | 2,526 | 76 | 89 | 33.236842 | 0.819958 | 0.218131 | 0 | 0.056604 | 0 | 0 | 0.187532 | 0.047273 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.150943 | 0 | 0.188679 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
881a898ae26445fd0e94d07ff062d0f6af611593 | 520 | py | Python | src/cli_report.py | dmitryvodop/vk_likechecker | 3673ecf7548b3374aa5082bc69b7db1669f2f9c2 | [
"MIT"
] | null | null | null | src/cli_report.py | dmitryvodop/vk_likechecker | 3673ecf7548b3374aa5082bc69b7db1669f2f9c2 | [
"MIT"
] | null | null | null | src/cli_report.py | dmitryvodop/vk_likechecker | 3673ecf7548b3374aa5082bc69b7db1669f2f9c2 | [
"MIT"
] | null | null | null | MAX_CONSOLE_LINE_LENGTH = 79
class CliReport:
def __init__(self):
self.is_initialized = False
def print(self, string='', length=MAX_CONSOLE_LINE_LENGTH, end='\n'):
if self.is_initialized:
number_of_spaces = 0
if length > len(string):
number_of_spaces = ... | 34.666667 | 108 | 0.607692 | 62 | 520 | 4.806452 | 0.467742 | 0.080537 | 0.14094 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044041 | 0.257692 | 520 | 14 | 109 | 37.142857 | 0.727979 | 0 | 0 | 0 | 0 | 0 | 0.071154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.272727 | 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 |
881aadb872501d08df8bad8897f3a02a5ed64924 | 5,138 | py | Python | s3splitmerge/merge.py | MacHu-GWU/s3splitmerge-project | 873892158f4a2d0ee20f291e5d3b2a80f0bae1ba | [
"MIT"
] | null | null | null | s3splitmerge/merge.py | MacHu-GWU/s3splitmerge-project | 873892158f4a2d0ee20f291e5d3b2a80f0bae1ba | [
"MIT"
] | null | null | null | s3splitmerge/merge.py | MacHu-GWU/s3splitmerge-project | 873892158f4a2d0ee20f291e5d3b2a80f0bae1ba | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import typing
import pandas as pd
import smart_open
import awswrangler as wr
from .helpers import (
check_enumeration_s3_key_string,
get_key_size_all_objects,
group_s3_objects_no_larger_than,
)
from .options import ZFILL
def merge_csv(
s3_client,
source_bucket: str,
so... | 29.528736 | 87 | 0.610743 | 659 | 5,138 | 4.345979 | 0.151745 | 0.053422 | 0.059008 | 0.043994 | 0.686802 | 0.615223 | 0.566341 | 0.553771 | 0.553771 | 0.553771 | 0 | 0.018739 | 0.314519 | 5,138 | 173 | 88 | 29.699422 | 0.794435 | 0.072986 | 0 | 0.522388 | 0 | 0 | 0.033312 | 0.032463 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037313 | false | 0 | 0.044776 | 0 | 0.097015 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
881b4859fbf99cdf056286c05c45307fee24239c | 5,316 | py | Python | maraboupy/test/test_query.py | yuvaljacoby/Marabou-1 | 553b780ef2e2cfe349b3954adc433a27af37a50f | [
"BSD-3-Clause"
] | null | null | null | maraboupy/test/test_query.py | yuvaljacoby/Marabou-1 | 553b780ef2e2cfe349b3954adc433a27af37a50f | [
"BSD-3-Clause"
] | null | null | null | maraboupy/test/test_query.py | yuvaljacoby/Marabou-1 | 553b780ef2e2cfe349b3954adc433a27af37a50f | [
"BSD-3-Clause"
] | 1 | 2021-06-29T06:54:29.000Z | 2021-06-29T06:54:29.000Z | # Supress warnings caused by tensorflow
import warnings
warnings.filterwarnings('ignore', category = DeprecationWarning)
warnings.filterwarnings('ignore', category = PendingDeprecationWarning)
import pytest
from .. import Marabou
import numpy as np
import os
# Global settings
TOL = 1e-4 ... | 40.892308 | 112 | 0.702784 | 711 | 5,316 | 5.164557 | 0.260197 | 0.010893 | 0.022876 | 0.015523 | 0.501362 | 0.47195 | 0.456155 | 0.445261 | 0.426198 | 0.426198 | 0 | 0.013218 | 0.217269 | 5,316 | 129 | 113 | 41.209302 | 0.869262 | 0.378668 | 0 | 0.362319 | 0 | 0 | 0.053409 | 0.027961 | 0 | 0 | 0 | 0 | 0.130435 | 1 | 0.072464 | false | 0 | 0.072464 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8820ecc0654f8927cee2ae38d218e22ba45c5793 | 3,050 | py | Python | scripts/computeDice.py | STORM-IRIT/pcednet-supp | 68d2a2a62bfb7b450bf241c2251ee3bb99d18c7e | [
"CC-BY-3.0"
] | 7 | 2022-01-28T14:59:11.000Z | 2022-03-17T05:09:28.000Z | scripts/computeDice.py | STORM-IRIT/pcednet-supp | 68d2a2a62bfb7b450bf241c2251ee3bb99d18c7e | [
"CC-BY-3.0"
] | 4 | 2021-11-18T13:50:21.000Z | 2022-02-25T15:10:06.000Z | scripts/computeDice.py | STORM-IRIT/pcednet-supp | 68d2a2a62bfb7b450bf241c2251ee3bb99d18c7e | [
"CC-BY-3.0"
] | null | null | null | import sys, glob
from os import listdir, remove
from os.path import dirname, join, isfile, abspath
from io import StringIO
import numpy as np
import utilsmodule as um
script_path = dirname(abspath(__file__))
datasetPath = join(script_path,"data/")
e = 'shrec'
### Compute the dice coefficient used in Table 1,
# E Mo... | 26.99115 | 107 | 0.615738 | 440 | 3,050 | 4.231818 | 0.415909 | 0.007519 | 0.008056 | 0.008593 | 0.115467 | 0.092911 | 0.055854 | 0.031149 | 0 | 0 | 0 | 0.024014 | 0.23541 | 3,050 | 112 | 108 | 27.232143 | 0.774443 | 0.270164 | 0 | 0.1875 | 0 | 0 | 0.077343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09375 | 0 | 0.09375 | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8823f9acf9979c7b6037b4ffb5d08ae416a7a660 | 1,094 | py | Python | plugins/dbnd-test-scenarios/src/dbnd_test_scenarios/integrations/mlflow_example.py | ipattarapong/dbnd | 7bd65621c46c73e078eb628f994127ad4c7dbd1a | [
"Apache-2.0"
] | 224 | 2020-01-02T10:46:37.000Z | 2022-03-02T13:54:08.000Z | plugins/dbnd-test-scenarios/src/dbnd_test_scenarios/integrations/mlflow_example.py | ipattarapong/dbnd | 7bd65621c46c73e078eb628f994127ad4c7dbd1a | [
"Apache-2.0"
] | 16 | 2020-03-11T09:37:58.000Z | 2022-01-26T10:22:08.000Z | plugins/dbnd-test-scenarios/src/dbnd_test_scenarios/integrations/mlflow_example.py | ipattarapong/dbnd | 7bd65621c46c73e078eb628f994127ad4c7dbd1a | [
"Apache-2.0"
] | 24 | 2020-03-24T13:53:50.000Z | 2022-03-22T11:55:18.000Z | import logging
from random import randint, random
from mlflow import (
active_run,
end_run,
get_tracking_uri,
log_metric,
log_param,
start_run,
)
from mlflow.tracking import MlflowClient
from dbnd import task
logger = logging.getLogger(__name__)
@task
def mlflow_example():
logger.info... | 20.259259 | 75 | 0.662706 | 144 | 1,094 | 4.763889 | 0.354167 | 0.065598 | 0.026239 | 0.058309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.210238 | 1,094 | 53 | 76 | 20.641509 | 0.775463 | 0.108775 | 0 | 0 | 0 | 0 | 0.152174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.15625 | 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 |
8826f802253e79fbdf200b9f603f2a1bd96164e1 | 2,673 | py | Python | notes/conditionals/if_blocks.py | mcorley-gba/IntroCS21-22 | a823e17f2cb618be0e67468cb15f48873ae85152 | [
"MIT"
] | null | null | null | notes/conditionals/if_blocks.py | mcorley-gba/IntroCS21-22 | a823e17f2cb618be0e67468cb15f48873ae85152 | [
"MIT"
] | null | null | null | notes/conditionals/if_blocks.py | mcorley-gba/IntroCS21-22 | a823e17f2cb618be0e67468cb15f48873ae85152 | [
"MIT"
] | null | null | null | #Conditional Tests HW - Due Monday
# 13 Tests --> 1 True and 1 False for each
#If Statements
#Simplest structure of an if statement:
# if conditional_test:
# do something <-- Instructions/commands
#my_age = 13
#if my_age >= 18:
# print("You are old enough to vote.")
# print("Are you registered to vote?... | 29.373626 | 76 | 0.716423 | 444 | 2,673 | 4.292793 | 0.391892 | 0.018888 | 0.026233 | 0.02361 | 0.181532 | 0.065058 | 0.065058 | 0.065058 | 0.065058 | 0.065058 | 0 | 0.021475 | 0.198653 | 2,673 | 90 | 77 | 29.7 | 0.868347 | 0.696596 | 0 | 0 | 0 | 0 | 0.369594 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.36 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8828b21c1d7aa3ef1f1b5b77da67057776db662c | 3,798 | py | Python | make_histogram.py | hijinks/python-bcet | 3e2fac66c82fb3f1c02e8e19153f5e3e97f57aca | [
"MIT"
] | null | null | null | make_histogram.py | hijinks/python-bcet | 3e2fac66c82fb3f1c02e8e19153f5e3e97f57aca | [
"MIT"
] | null | null | null | make_histogram.py | hijinks/python-bcet | 3e2fac66c82fb3f1c02e8e19153f5e3e97f57aca | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# BCET Workflow
__author__ = 'Sam Brooke'
__date__ = 'September 2017'
__copyright__ = '(C) 2017, Sam Brooke'
__email__ = "sbrooke@tuta.io"
import os
import georasters as gr
import matplotlib.pyplot as plt
import numpy as np
from optparse import OptionParser
import fnmatch
import re
from scipy.... | 27.926471 | 120 | 0.700105 | 608 | 3,798 | 4.246711 | 0.3125 | 0.040279 | 0.017428 | 0.013943 | 0.623548 | 0.61038 | 0.598761 | 0.598761 | 0.598761 | 0.460883 | 0 | 0.041284 | 0.139021 | 3,798 | 135 | 121 | 28.133333 | 0.748318 | 0.130332 | 0 | 0.29703 | 0 | 0 | 0.116052 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.079208 | 0 | 0.079208 | 0.019802 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
88398ae2c4128d5752a93cafe6efa48eb9858180 | 3,718 | py | Python | tests/integration/questionnaire/test_questionnaire_save_sign_out.py | uk-gov-mirror/ONSdigital.eq-survey-runner | b3a67a82347d024177f7fa6bf05499f47ece7ea5 | [
"MIT"
] | 27 | 2015-10-02T17:27:54.000Z | 2021-04-05T12:39:16.000Z | tests/integration/questionnaire/test_questionnaire_save_sign_out.py | uk-gov-mirror/ONSdigital.eq-survey-runner | b3a67a82347d024177f7fa6bf05499f47ece7ea5 | [
"MIT"
] | 1,836 | 2015-09-16T09:59:03.000Z | 2022-03-30T14:27:06.000Z | tests/integration/questionnaire/test_questionnaire_save_sign_out.py | uk-gov-mirror/ONSdigital.eq-survey-runner | b3a67a82347d024177f7fa6bf05499f47ece7ea5 | [
"MIT"
] | 20 | 2016-09-09T16:56:12.000Z | 2021-11-12T06:09:27.000Z | from app.validation.error_messages import error_messages
from tests.integration.integration_test_case import IntegrationTestCase
class TestSaveSignOut(IntegrationTestCase):
def test_save_sign_out_with_mandatory_question_not_answered(self):
# We can save and go to the sign-out page without having to fill ... | 35.75 | 149 | 0.655998 | 496 | 3,718 | 4.727823 | 0.268145 | 0.047761 | 0.053731 | 0.028998 | 0.492111 | 0.423454 | 0.388913 | 0.388913 | 0.388913 | 0.356503 | 0 | 0.013485 | 0.242066 | 3,718 | 103 | 150 | 36.097087 | 0.818666 | 0.228349 | 0 | 0.45283 | 0 | 0 | 0.216786 | 0.015 | 0 | 0 | 0 | 0 | 0.169811 | 1 | 0.113208 | false | 0 | 0.037736 | 0 | 0.169811 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
883ab54b46f93c6809f1bedd1cd71a0ee4774d4e | 16,479 | py | Python | model/UniGNN.py | czc567/UniGNN | bbb061f393b847ff6c7c20cab9e1ecb8f1c3eb96 | [
"MIT"
] | null | null | null | model/UniGNN.py | czc567/UniGNN | bbb061f393b847ff6c7c20cab9e1ecb8f1c3eb96 | [
"MIT"
] | null | null | null | model/UniGNN.py | czc567/UniGNN | bbb061f393b847ff6c7c20cab9e1ecb8f1c3eb96 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn, torch.nn.functional as F
from torch.nn.parameter import Parameter
import math
from torch_scatter import scatter
from torch_geometric.utils import softmax
# NOTE: can not tell which implementation is better statistically
def glorot(tensor):
if tensor is not None:
s... | 32.311765 | 141 | 0.550155 | 2,181 | 16,479 | 3.982118 | 0.107749 | 0.030397 | 0.020725 | 0.019574 | 0.643638 | 0.608866 | 0.557398 | 0.529073 | 0.520092 | 0.496603 | 0 | 0.012423 | 0.32593 | 16,479 | 509 | 142 | 32.375246 | 0.769445 | 0.134596 | 0 | 0.541538 | 0 | 0 | 0.017822 | 0 | 0 | 0 | 0 | 0.001965 | 0 | 1 | 0.086154 | false | 0.003077 | 0.018462 | 0.015385 | 0.187692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
883dc5b6a2c7b8f6d8eeeaa196713dc1735f14e3 | 23,515 | py | Python | emolog_pc/emolog/emotool/main.py | alon/emolog | ed6e9e30a46ffc04282527ee73aa3bb8605e2dc9 | [
"MIT"
] | null | null | null | emolog_pc/emolog/emotool/main.py | alon/emolog | ed6e9e30a46ffc04282527ee73aa3bb8605e2dc9 | [
"MIT"
] | 2 | 2019-01-29T15:27:34.000Z | 2021-03-06T20:00:16.000Z | emolog_pc/emolog/emotool/main.py | alon/emolog | ed6e9e30a46ffc04282527ee73aa3bb8605e2dc9 | [
"MIT"
] | 1 | 2019-01-03T18:44:54.000Z | 2019-01-03T18:44:54.000Z | #!/bin/env python3
# import os
# os.environ['PYTHONASYNCIODEBUG'] = '1'
# import logging
# logging.getLogger('asyncio').setLevel(logging.DEBUG)
from datetime import datetime
import traceback
import atexit
import argparse
import os
from os import path
import sys
import logging
from struct import pack
import random
fro... | 39.991497 | 180 | 0.671444 | 3,086 | 23,515 | 4.943292 | 0.195723 | 0.018027 | 0.025631 | 0.009046 | 0.13471 | 0.093871 | 0.055457 | 0.039987 | 0.034874 | 0.027663 | 0 | 0.009837 | 0.221858 | 23,515 | 587 | 181 | 40.059625 | 0.823861 | 0.073528 | 0 | 0.13082 | 0 | 0.004435 | 0.188462 | 0.009538 | 0 | 0 | 0 | 0.005111 | 0.002217 | 1 | 0.068736 | false | 0.006652 | 0.055432 | 0.015521 | 0.179601 | 0.050998 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
88409ac26b662efb26f26a13bba8f1ae10c3260d | 487 | py | Python | test.py | exc4l/kanjigrid | 9e7dc0dadb578fc7ee4129aca5abf0a3767bc6dd | [
"MIT"
] | 1 | 2021-03-23T14:10:59.000Z | 2021-03-23T14:10:59.000Z | test.py | exc4l/kanjigrid | 9e7dc0dadb578fc7ee4129aca5abf0a3767bc6dd | [
"MIT"
] | null | null | null | test.py | exc4l/kanjigrid | 9e7dc0dadb578fc7ee4129aca5abf0a3767bc6dd | [
"MIT"
] | null | null | null | import kanjigrid
gridder = kanjigrid.Gridder("Kanji", 40, "Header", 52)
grading = kanjigrid.Jouyou()
with open("test.txt", "r", encoding="utf-8") as f:
data = f.read()
gridder.feed_text(data)
grid = gridder.make_grid(grading, outside_of_grading=True, stats=True, bar_graph=True)
grid.save("test.png")
if "𠮟" in g... | 28.647059 | 86 | 0.702259 | 79 | 487 | 4.151899 | 0.531646 | 0.164634 | 0.109756 | 0.137195 | 0.265244 | 0.265244 | 0.265244 | 0 | 0 | 0 | 0 | 0.011792 | 0.129363 | 487 | 17 | 87 | 28.647059 | 0.761792 | 0 | 0 | 0 | 0 | 0 | 0.110656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8843966a1736b059d72b2035589a76126f469706 | 12,738 | py | Python | spectrl/rl/ars_discrete.py | luigiberducci/dirl | 5f7997aea20dfb7347ebdee66de9bea4e6cd3c62 | [
"MIT"
] | 6 | 2021-11-11T00:29:18.000Z | 2022-03-18T13:56:51.000Z | spectrl/rl/ars_discrete.py | luigiberducci/dirl | 5f7997aea20dfb7347ebdee66de9bea4e6cd3c62 | [
"MIT"
] | null | null | null | spectrl/rl/ars_discrete.py | luigiberducci/dirl | 5f7997aea20dfb7347ebdee66de9bea4e6cd3c62 | [
"MIT"
] | 4 | 2021-11-26T03:11:02.000Z | 2022-01-13T02:32:29.000Z | import torch
import numpy as np
import time
from spectrl.util.rl import get_rollout, test_policy
class NNParams:
'''
Defines the neural network architecture.
Parameters:
state_dim: int (continuous state dimension for nn input)
action_dim: int (action space dimension for nn output)
... | 33.87766 | 100 | 0.622861 | 1,637 | 12,738 | 4.632254 | 0.149664 | 0.051695 | 0.018858 | 0.01899 | 0.427667 | 0.379797 | 0.30542 | 0.28854 | 0.28854 | 0.267704 | 0 | 0.008514 | 0.289998 | 12,738 | 375 | 101 | 33.968 | 0.829943 | 0.270372 | 0 | 0.229885 | 0 | 0 | 0.019396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074713 | false | 0 | 0.022989 | 0.005747 | 0.172414 | 0.022989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8844d83df31129aa57478e21727d0b2f1ba309a4 | 640 | py | Python | backends/c-scpu/config.py | guoshzhao/antares | 30a6338dd6ce4100922cf26ec515e615b449f76a | [
"MIT"
] | null | null | null | backends/c-scpu/config.py | guoshzhao/antares | 30a6338dd6ce4100922cf26ec515e615b449f76a | [
"MIT"
] | null | null | null | backends/c-scpu/config.py | guoshzhao/antares | 30a6338dd6ce4100922cf26ec515e615b449f76a | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import subprocess
def get_execution_parallism():
return 1
def do_native_translation_v2(codeset, **kwargs):
kernel_name, in_args, out_args, body = codeset
expand_args = ' '.join([f'{x[0]}* {x[1]} = ({x[0]}*)__args[{i}];' for i, x in enu... | 22.857143 | 111 | 0.673438 | 93 | 640 | 4.344086 | 0.612903 | 0.049505 | 0.044554 | 0.064356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012891 | 0.151563 | 640 | 27 | 112 | 23.703704 | 0.731123 | 0.10625 | 0 | 0 | 0 | 0 | 0.506151 | 0.126538 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 0.055556 | 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 |
8845d03ee4e193d770ba1a3bdc365691fd17435f | 878 | py | Python | src/10_reactive/db.py | rurumimic/concurrency-python | 3eb7875dd4848872226f8035d295a31a40e32bf0 | [
"MIT"
] | null | null | null | src/10_reactive/db.py | rurumimic/concurrency-python | 3eb7875dd4848872226f8035d295a31a40e32bf0 | [
"MIT"
] | null | null | null | src/10_reactive/db.py | rurumimic/concurrency-python | 3eb7875dd4848872226f8035d295a31a40e32bf0 | [
"MIT"
] | null | null | null | import sqlite3
from collections import namedtuple
from functional import seq
with sqlite3.connect(':memory:') as conn:
conn.execute('CREATE TABLE user (id INT, name TEXT)')
conn.commit()
User = namedtuple('User', 'id name')
seq([(1, 'pedro'), (2, 'fritz')]).to_sqlite3(
conn, 'INSERT INTO user... | 31.357143 | 84 | 0.555809 | 119 | 878 | 4.058824 | 0.386555 | 0.113872 | 0.10766 | 0.10559 | 0.082816 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033189 | 0.210706 | 878 | 27 | 85 | 32.518519 | 0.663781 | 0.134396 | 0 | 0 | 0 | 0 | 0.240372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 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 |
884b8595b246a25d1c4c0a76969e4887169352b3 | 3,171 | py | Python | tests/plugins/remove/test_rm_cli.py | jtpavlock/moe | 6f053c8c53f92686013657bda676b00f97edd230 | [
"MIT"
] | 14 | 2021-09-04T11:42:18.000Z | 2022-02-04T05:11:46.000Z | tests/plugins/remove/test_rm_cli.py | jtpavlock/Moe | 6f053c8c53f92686013657bda676b00f97edd230 | [
"MIT"
] | 56 | 2021-05-26T00:00:46.000Z | 2021-08-08T17:14:31.000Z | tests/plugins/remove/test_rm_cli.py | jtpavlock/moe | 6f053c8c53f92686013657bda676b00f97edd230 | [
"MIT"
] | 1 | 2021-07-22T21:55:21.000Z | 2021-07-22T21:55:21.000Z | """Tests the ``remove`` plugin."""
from unittest.mock import patch
import pytest
import moe
@pytest.fixture
def mock_rm():
"""Mock the `remove_item()` api call."""
with patch("moe.plugins.remove.remove_item", autospec=True) as mock_rm:
yield mock_rm
@pytest.fixture
def tmp_rm_config(tmp_config):
... | 33.03125 | 84 | 0.666667 | 439 | 3,171 | 4.501139 | 0.200456 | 0.04251 | 0.061235 | 0.060729 | 0.547571 | 0.492915 | 0.47419 | 0.298583 | 0.219636 | 0.219636 | 0 | 0.000803 | 0.214443 | 3,171 | 95 | 85 | 33.378947 | 0.792453 | 0.186692 | 0 | 0.188679 | 0 | 0 | 0.081414 | 0.011914 | 0 | 0 | 0 | 0 | 0.226415 | 1 | 0.169811 | false | 0 | 0.056604 | 0 | 0.283019 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8853e415ffd0f52c5a2f8419a9bf5ebfef325883 | 2,678 | py | Python | examples/pytorch/dtgrnn/dataloading.py | ketyi/dgl | a1b859c29b63a673c148d13231a49504740e0e01 | [
"Apache-2.0"
] | 9,516 | 2018-12-08T22:11:31.000Z | 2022-03-31T13:04:33.000Z | examples/pytorch/dtgrnn/dataloading.py | ketyi/dgl | a1b859c29b63a673c148d13231a49504740e0e01 | [
"Apache-2.0"
] | 2,494 | 2018-12-08T22:43:00.000Z | 2022-03-31T21:16:27.000Z | examples/pytorch/dtgrnn/dataloading.py | ketyi/dgl | a1b859c29b63a673c148d13231a49504740e0e01 | [
"Apache-2.0"
] | 2,529 | 2018-12-08T22:56:14.000Z | 2022-03-31T13:07:41.000Z | import os
import ssl
from six.moves import urllib
import torch
import numpy as np
import dgl
from torch.utils.data import Dataset, DataLoader
def download_file(dataset):
print("Start Downloading data: {}".format(dataset))
url = "https://s3.us-west-2.amazonaws.com/dgl-data/dataset/{}".format(
dataset)
... | 28.795699 | 78 | 0.639283 | 345 | 2,678 | 4.649275 | 0.249275 | 0.030549 | 0.048005 | 0.041147 | 0.445761 | 0.356608 | 0.225686 | 0.160848 | 0.160848 | 0.123441 | 0 | 0.003795 | 0.212845 | 2,678 | 92 | 79 | 29.108696 | 0.757116 | 0 | 0 | 0.231884 | 0 | 0 | 0.134055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.101449 | 0.014493 | 0.434783 | 0.028986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
88551bbfcb08a1b53c119a389c90207f6e61b6cd | 1,552 | py | Python | django_boto/tests.py | degerli/django-boto | 930863b75c0f26eb10090a6802e16e1cf127b588 | [
"MIT"
] | 54 | 2015-02-09T14:25:56.000Z | 2021-09-03T21:11:29.000Z | django_boto/tests.py | degerli/django-boto | 930863b75c0f26eb10090a6802e16e1cf127b588 | [
"MIT"
] | 12 | 2015-01-10T06:39:56.000Z | 2019-06-19T19:36:40.000Z | django_boto/tests.py | degerli/django-boto | 930863b75c0f26eb10090a6802e16e1cf127b588 | [
"MIT"
] | 18 | 2015-01-09T20:06:38.000Z | 2019-02-22T12:33:44.000Z | # -*- coding: utf-8 -*-
import string
import random
import logging
import urllib2
from os import path
from django.test import TestCase
from django.core.files.base import ContentFile
from s3 import upload
from s3.storage import S3Storage
from settings import BOTO_S3_BUCKET
logger = logging.getLogger(__name__)
local... | 23.164179 | 74 | 0.661727 | 183 | 1,552 | 5.464481 | 0.393443 | 0.06 | 0.042 | 0.036 | 0.072 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019247 | 0.230026 | 1,552 | 66 | 75 | 23.515152 | 0.817573 | 0.037371 | 0 | 0.052632 | 0 | 0 | 0.039175 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 1 | 0.052632 | false | 0 | 0.263158 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8857049e6802ce1ea80b578b8e1834b184a88a8c | 4,060 | py | Python | src/roswire/ros1/bag/player.py | ChrisTimperley/roswire | 3220583305dc3e90b8cf0a7653cbc1b9c7fdb83b | [
"Apache-2.0"
] | 4 | 2019-09-22T18:38:33.000Z | 2021-04-02T01:37:10.000Z | src/roswire/ros1/bag/player.py | ChrisTimperley/roswire | 3220583305dc3e90b8cf0a7653cbc1b9c7fdb83b | [
"Apache-2.0"
] | 208 | 2019-03-27T18:34:39.000Z | 2021-07-26T20:36:07.000Z | src/roswire/ros1/bag/player.py | ChrisTimperley/roswire | 3220583305dc3e90b8cf0a7653cbc1b9c7fdb83b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# http://wiki.ros.org/Bags/Format/2.0
__all__ = ("BagPlayer",)
import subprocess
import threading
from types import TracebackType
from typing import Optional, Type
import dockerblade
from loguru import logger
from ... import exceptions
class BagPlayer:
def __init__(
self,
... | 29.852941 | 71 | 0.578818 | 422 | 4,060 | 5.338863 | 0.315166 | 0.053706 | 0.026631 | 0.031957 | 0.179316 | 0.061252 | 0.061252 | 0.035508 | 0 | 0 | 0 | 0.001472 | 0.330788 | 4,060 | 135 | 72 | 30.074074 | 0.827751 | 0.174138 | 0 | 0.113636 | 0 | 0 | 0.060991 | 0.006671 | 0 | 0 | 0 | 0 | 0.034091 | 1 | 0.102273 | false | 0 | 0.079545 | 0 | 0.238636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
885d4d75f5722e68e64b97b960999165b69c5ecc | 1,244 | py | Python | src/data processing - clinical notes and structured data/step5_note_level_tagging.py | arjun-parthi/SSRI-Project | 62f610a594e5849ccf0f3c25cd6adcd63888ec2a | [
"MIT"
] | 2 | 2019-02-12T00:37:37.000Z | 2021-03-25T05:40:06.000Z | src/data processing - clinical notes and structured data/step5_note_level_tagging.py | arjun-parthi/SSRI-Project | 62f610a594e5849ccf0f3c25cd6adcd63888ec2a | [
"MIT"
] | null | null | null | src/data processing - clinical notes and structured data/step5_note_level_tagging.py | arjun-parthi/SSRI-Project | 62f610a594e5849ccf0f3c25cd6adcd63888ec2a | [
"MIT"
] | 1 | 2021-03-25T05:40:17.000Z | 2021-03-25T05:40:17.000Z | import pandas as pd
import numpy as np
from collections import Counter
data = pd.read_csv('out/negex_all.txt', sep="\t", header=None)
print(data.shape)
data.columns = ['PAT_DEID','NOTE_DEID','NOTE_DATE','ENCOUNTER_DATE','NOTE_CODE','TEXT_SNIPPET','lower_text','STATUS']
df = data.groupby(['PAT_DEID','NOTE_DEID','NOTE_... | 34.555556 | 141 | 0.676045 | 186 | 1,244 | 4.295699 | 0.397849 | 0.060075 | 0.041302 | 0.05632 | 0.362954 | 0.362954 | 0.300375 | 0.300375 | 0.220275 | 0.220275 | 0 | 0.013825 | 0.127814 | 1,244 | 35 | 142 | 35.542857 | 0.722581 | 0.039389 | 0 | 0 | 0 | 0 | 0.293624 | 0.021812 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.111111 | 0 | 0.296296 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
885d8583c03a1a8044c9ab014f78fb40213a58b5 | 821 | py | Python | app.py | shaungarwood/co-voter-db | bcbc0d46459cc9913ed318b32b284a4139c75b74 | [
"MIT"
] | null | null | null | app.py | shaungarwood/co-voter-db | bcbc0d46459cc9913ed318b32b284a4139c75b74 | [
"MIT"
] | null | null | null | app.py | shaungarwood/co-voter-db | bcbc0d46459cc9913ed318b32b284a4139c75b74 | [
"MIT"
] | null | null | null | from flask import Flask
from flask import request
from flask import jsonify
from os import environ
import query
app = Flask(__name__)
if 'MONGODB_HOST' in environ:
mongodb_host = environ['MONGODB_HOST']
else:
mongodb_host = "localhost"
if 'MONGODB_PORT' in environ:
mongodb_port = environ['MONGODB_PORT']... | 21.605263 | 52 | 0.686967 | 112 | 821 | 4.794643 | 0.410714 | 0.102421 | 0.083799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018405 | 0.205847 | 821 | 37 | 53 | 22.189189 | 0.805215 | 0 | 0 | 0.111111 | 0 | 0 | 0.151035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.185185 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
886191b83cc6306a7a234ebf3e4730d225e73536 | 692 | py | Python | 100-clean_web_static.py | cbarros7/AirBnB_clone_v2 | b25d8facc07ac5be2092a9f6214d1ef8c32ce60e | [
"MIT"
] | null | null | null | 100-clean_web_static.py | cbarros7/AirBnB_clone_v2 | b25d8facc07ac5be2092a9f6214d1ef8c32ce60e | [
"MIT"
] | null | null | null | 100-clean_web_static.py | cbarros7/AirBnB_clone_v2 | b25d8facc07ac5be2092a9f6214d1ef8c32ce60e | [
"MIT"
] | 1 | 2021-08-11T05:20:27.000Z | 2021-08-11T05:20:27.000Z | #!/usr/bin/python3
# Fabfile to delete out-of-date archives.
import os
from fabric.api import *
env.hosts = ['104.196.116.233', '54.165.130.77']
def do_clean(number=0):
"""Delete out-of-date archives.
"""
number = 1 if int(number) == 0 else int(number)
archives = sorted(os.listdir("versions"))
[... | 28.833333 | 62 | 0.606936 | 106 | 692 | 3.924528 | 0.54717 | 0.028846 | 0.036058 | 0.050481 | 0.382212 | 0.235577 | 0.134615 | 0 | 0 | 0 | 0 | 0.04797 | 0.216763 | 692 | 23 | 63 | 30.086957 | 0.719557 | 0.131503 | 0 | 0.142857 | 0 | 0 | 0.175084 | 0.042088 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8863590d6524676746195e9a24531f9c96bd95d5 | 17,316 | py | Python | dask/threaded.py | eriknw/dask | f654b47a61cbbddaf5d2f4d1a3e6e07373b86709 | [
"BSD-3-Clause"
] | null | null | null | dask/threaded.py | eriknw/dask | f654b47a61cbbddaf5d2f4d1a3e6e07373b86709 | [
"BSD-3-Clause"
] | null | null | null | dask/threaded.py | eriknw/dask | f654b47a61cbbddaf5d2f4d1a3e6e07373b86709 | [
"BSD-3-Clause"
] | null | null | null | """
A threaded shared-memory scheduler for dask graphs.
This code is experimental and fairly ugly. It should probably be rewritten
before anyone really depends on it. It is very stateful and error-prone.
That being said, it is decently fast.
State
=====
Many functions pass around a ``state`` variable that holds t... | 28.340426 | 88 | 0.569416 | 2,313 | 17,316 | 4.206658 | 0.194553 | 0.002878 | 0.003083 | 0.002467 | 0.221377 | 0.173381 | 0.141727 | 0.114388 | 0.101028 | 0.101028 | 0 | 0.006434 | 0.281994 | 17,316 | 610 | 89 | 28.386885 | 0.77616 | 0.433183 | 0 | 0.195455 | 0 | 0 | 0.069271 | 0 | 0 | 0 | 0 | 0 | 0.013636 | 1 | 0.090909 | false | 0 | 0.059091 | 0.009091 | 0.290909 | 0.009091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8864cc357b1ab216b6ae36ff17356348ff1a4bee | 6,163 | py | Python | deprecated/test_01_job_cli.py | cloudmesh/cloudmesh-queue | 8a299c8a4915916c9214d4b9e681da4a1b36bfd4 | [
"Apache-2.0"
] | null | null | null | deprecated/test_01_job_cli.py | cloudmesh/cloudmesh-queue | 8a299c8a4915916c9214d4b9e681da4a1b36bfd4 | [
"Apache-2.0"
] | 12 | 2020-12-18T09:57:49.000Z | 2020-12-28T12:34:15.000Z | deprecated/test_01_job_cli.py | cloudmesh/cloudmesh-queue | 8a299c8a4915916c9214d4b9e681da4a1b36bfd4 | [
"Apache-2.0"
] | null | null | null | ###############################################################
# cms set host='juliet.futuresystems.org'
# cms set user=$USER
#
# pytest -v --capture=no tests/test_01_job_cli.py
# pytest -v tests/test_01_job_cli.py
# pytest -v --capture=no tests/test_01_job_cli.py::TestJob::<METHODNAME>
#############################... | 28.013636 | 80 | 0.577154 | 668 | 6,163 | 5.197605 | 0.193114 | 0.0553 | 0.063364 | 0.066532 | 0.530818 | 0.497696 | 0.442108 | 0.407834 | 0.387673 | 0.247408 | 0 | 0.008945 | 0.292552 | 6,163 | 219 | 81 | 28.141553 | 0.787385 | 0.034723 | 0 | 0.43949 | 0 | 0 | 0.220426 | 0.071011 | 0 | 0 | 0 | 0 | 0.095541 | 1 | 0.076433 | false | 0.012739 | 0.082803 | 0 | 0.165605 | 0.012739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
88663926b411e82cb276e8ee0d40df6d2b4d5fe4 | 3,370 | py | Python | source/pysqlizer-cli.py | slafi/pysqlizer | 871ad922d42fd99a59dd33091ea3eaa4406542b4 | [
"MIT"
] | null | null | null | source/pysqlizer-cli.py | slafi/pysqlizer | 871ad922d42fd99a59dd33091ea3eaa4406542b4 | [
"MIT"
] | null | null | null | source/pysqlizer-cli.py | slafi/pysqlizer | 871ad922d42fd99a59dd33091ea3eaa4406542b4 | [
"MIT"
] | 1 | 2020-01-05T05:36:58.000Z | 2020-01-05T05:36:58.000Z | import argparse
import time
from pathlib import Path
from logger import get_logger
from csv_reader import CSVReader
from utils import infer_type, clear_console
from sql_generator import SQLGenerator
if __name__ == "__main__":
## Clear console
clear_console()
## get logger
logger = get_logger('pysql... | 35.104167 | 123 | 0.663205 | 429 | 3,370 | 4.990676 | 0.272727 | 0.037833 | 0.047641 | 0.053246 | 0.229332 | 0.208314 | 0.129846 | 0.101822 | 0.101822 | 0.101822 | 0 | 0.000747 | 0.205638 | 3,370 | 95 | 124 | 35.473684 | 0.799029 | 0.054599 | 0 | 0.196721 | 0 | 0 | 0.156999 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.114754 | 0 | 0.114754 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
88672f1ee1e8b7ba396e5278ca480986acfefed4 | 854 | py | Python | MergeIntervals56.py | Bit64L/LeetCode-Python- | 64847cbb1adcaca4561b949e8acc52e8e031a6cb | [
"MIT"
] | null | null | null | MergeIntervals56.py | Bit64L/LeetCode-Python- | 64847cbb1adcaca4561b949e8acc52e8e031a6cb | [
"MIT"
] | null | null | null | MergeIntervals56.py | Bit64L/LeetCode-Python- | 64847cbb1adcaca4561b949e8acc52e8e031a6cb | [
"MIT"
] | null | null | null | # Definition for an interval.
class Interval(object):
def __init__(self, s=0, e=0):
self.start = s
self.end = e
class Solution(object):
def merge(self, intervals):
"""
:type intervals: List[Interval]
:rtype: List[Interval]
"""
if intervals is None or l... | 24.4 | 54 | 0.529274 | 103 | 854 | 4.349515 | 0.407767 | 0.046875 | 0.044643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016334 | 0.354801 | 854 | 34 | 55 | 25.117647 | 0.796733 | 0.09719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0 | 0 | 0.26087 | 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 |
88681b8ce61bdcea470b1b26564a91d9e24035aa | 221 | py | Python | Training/mangement_system.py | Orleanslindsay/Python_Programming | dacc08090e9ebf9eb43aec127ee3e2e3cdcb4f55 | [
"MIT"
] | 1 | 2021-08-16T10:25:01.000Z | 2021-08-16T10:25:01.000Z | Training/mangement_system.py | Orleanslindsay/Python_Programming | dacc08090e9ebf9eb43aec127ee3e2e3cdcb4f55 | [
"MIT"
] | null | null | null | Training/mangement_system.py | Orleanslindsay/Python_Programming | dacc08090e9ebf9eb43aec127ee3e2e3cdcb4f55 | [
"MIT"
] | null | null | null | from tkinter import *
import mariadb
root = Tk()
root.title('SCHOOL MANAGEMENT')
root.geometry("900x700")
counter=2
for i in range(1,20):
label=Entry(root).grid(row=counter,column=0)
counter += 2
root.mainloop() | 13 | 45 | 0.710407 | 34 | 221 | 4.617647 | 0.764706 | 0.101911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063158 | 0.140271 | 221 | 17 | 46 | 13 | 0.763158 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
88688860861603e2b3b947fdc9d58f769c86e31d | 2,742 | py | Python | FlopyAdapter/MtPackages/SftAdapter.py | inowas/InowasFlopyAdapter | 43ddf223778693ea5e7651d7a55bef56deff0ad5 | [
"MIT"
] | null | null | null | FlopyAdapter/MtPackages/SftAdapter.py | inowas/InowasFlopyAdapter | 43ddf223778693ea5e7651d7a55bef56deff0ad5 | [
"MIT"
] | null | null | null | FlopyAdapter/MtPackages/SftAdapter.py | inowas/InowasFlopyAdapter | 43ddf223778693ea5e7651d7a55bef56deff0ad5 | [
"MIT"
] | 1 | 2020-09-27T23:26:14.000Z | 2020-09-27T23:26:14.000Z | import flopy.mt3d as mt
class SftAdapter:
_data = None
def __init__(self, data):
self._data = data
def validate(self):
# should be implemented
# for key in content:
# do something
# return some hints
pass
def is_valid(self):
# should be im... | 26.882353 | 67 | 0.486871 | 262 | 2,742 | 4.958015 | 0.293893 | 0.036952 | 0.04311 | 0.055427 | 0.084681 | 0.084681 | 0.084681 | 0.084681 | 0.084681 | 0.084681 | 0 | 0.014715 | 0.405179 | 2,742 | 101 | 68 | 27.148515 | 0.781729 | 0.056893 | 0 | 0.04878 | 0 | 0 | 0.128832 | 0.024447 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0.012195 | 0.012195 | 0.012195 | 0.219512 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8869c83d02e1a922baaa9130b61848763de1897f | 2,089 | py | Python | src/payoff_landscape.py | khozzy/phd | 9a05572a6960d948320669c51e0c80bb9d037d4a | [
"CC-BY-4.0"
] | null | null | null | src/payoff_landscape.py | khozzy/phd | 9a05572a6960d948320669c51e0c80bb9d037d4a | [
"CC-BY-4.0"
] | null | null | null | src/payoff_landscape.py | khozzy/phd | 9a05572a6960d948320669c51e0c80bb9d037d4a | [
"CC-BY-4.0"
] | null | null | null | import matplotlib.pyplot as plt
from matplotlib.ticker import MultipleLocator, FormatStrFormatter
from collections import namedtuple
from typing import Dict
from src.visualization import diminishing_reward_colors, PLOT_DPI
StateAction = namedtuple('StateAction', 'id state action')
def get_all_state_action(state_to... | 34.245902 | 100 | 0.691719 | 299 | 2,089 | 4.662207 | 0.377926 | 0.055237 | 0.035868 | 0.05165 | 0.157819 | 0.157819 | 0.140603 | 0.140603 | 0.140603 | 0.140603 | 0 | 0.021412 | 0.17281 | 2,089 | 61 | 101 | 34.245902 | 0.785301 | 0.009574 | 0 | 0 | 0 | 0 | 0.090513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.125 | 0 | 0.225 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
886aabc8aa4ca1dc2dab928e6d2e967f6a38ad60 | 5,626 | py | Python | Mods/Chatpp/Mod.py | 3p0bleedthemoncrip/Tobify-Overlay-Download | 00c0c8a7f3c7ccefce9387b9209dcc86e3b2abc9 | [
"MIT"
] | null | null | null | Mods/Chatpp/Mod.py | 3p0bleedthemoncrip/Tobify-Overlay-Download | 00c0c8a7f3c7ccefce9387b9209dcc86e3b2abc9 | [
"MIT"
] | null | null | null | Mods/Chatpp/Mod.py | 3p0bleedthemoncrip/Tobify-Overlay-Download | 00c0c8a7f3c7ccefce9387b9209dcc86e3b2abc9 | [
"MIT"
] | null | null | null | class MOD:
def __init__(self, Globals):
""" This adds additional message categories to the player detection algorithm """
# data transfer variables
self.Globals = Globals
self.G = self.Globals
self.ModData = Globals.ModData["Chatpp"]
self.backend = Globals.ui_backend
... | 38.534247 | 171 | 0.530928 | 598 | 5,626 | 4.914716 | 0.245819 | 0.057162 | 0.037428 | 0.046274 | 0.254168 | 0.119769 | 0.119769 | 0.119769 | 0.065328 | 0 | 0 | 0.005294 | 0.362069 | 5,626 | 145 | 172 | 38.8 | 0.813597 | 0.174902 | 0 | 0.21978 | 0 | 0.010989 | 0.169432 | 0.021616 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054945 | false | 0.010989 | 0 | 0 | 0.065934 | 0.010989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
886c941fa641d07a3da73aedf1058de8f4d4b127 | 569 | py | Python | newss.py | krishnansuki/daily-news | 3b03ea4bcd0aed8ddf69d91128bfce1f3d9192c0 | [
"Apache-2.0"
] | 1 | 2020-08-01T04:04:34.000Z | 2020-08-01T04:04:34.000Z | newss.py | krishnansuki/daily-news | 3b03ea4bcd0aed8ddf69d91128bfce1f3d9192c0 | [
"Apache-2.0"
] | null | null | null | newss.py | krishnansuki/daily-news | 3b03ea4bcd0aed8ddf69d91128bfce1f3d9192c0 | [
"Apache-2.0"
] | null | null | null | import feedparser
def parseRSS(rss_url):
return feedparser.parse(rss_url)
def getHeadLines(rss_url):
headlines = []
feed = parseRSS(rss_url)
for newitem in feed['items']:
headlines.append(newitem['title'])
return headlines
allheadlines = []
newsurls={'googlenews': 'https://news.goo... | 35.5625 | 172 | 0.692443 | 82 | 569 | 4.756098 | 0.585366 | 0.061538 | 0.071795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002155 | 0.184534 | 569 | 15 | 173 | 37.933333 | 0.838362 | 0.142355 | 0 | 0 | 0 | 0.066667 | 0.169851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0.066667 | 0.333333 | 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 |
886fdb38b86a90cbac81f513da517e4152656447 | 2,824 | py | Python | examples/05_fields.py | johnaparker/MiePy | 5c5bb5a07c8ab79e9e2a9fc79fb9779e690147be | [
"MIT"
] | 3 | 2016-05-30T06:45:29.000Z | 2017-08-30T19:58:56.000Z | examples/05_fields.py | johnaparker/MiePy | 5c5bb5a07c8ab79e9e2a9fc79fb9779e690147be | [
"MIT"
] | null | null | null | examples/05_fields.py | johnaparker/MiePy | 5c5bb5a07c8ab79e9e2a9fc79fb9779e690147be | [
"MIT"
] | 5 | 2016-12-13T02:05:31.000Z | 2018-03-23T07:11:30.000Z | """
Displaying the fields in an xy cross section of the sphere (x polarized light, z-propagating)
"""
import numpy as np
import matplotlib.pyplot as plt
import miepy
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.cm as cm
Ag = miepy.materials. Ag()
# calculate scattering coefficients, 800 nm illumination
... | 29.726316 | 147 | 0.645892 | 532 | 2,824 | 3.390977 | 0.296992 | 0.034922 | 0.024945 | 0.026608 | 0.221175 | 0.197339 | 0.096452 | 0.047672 | 0 | 0 | 0 | 0.050501 | 0.151558 | 2,824 | 94 | 148 | 30.042553 | 0.702421 | 0.38881 | 0 | 0.047619 | 0 | 0 | 0.043969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.119048 | 0 | 0.119048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
887136302539945d1d8fc0fd52d9556bdb55e9ef | 13,616 | py | Python | pya2a/models.py | LvanWissen/pya2a | d8a7848ba408850aedd79d18ad2816524499f528 | [
"MIT"
] | null | null | null | pya2a/models.py | LvanWissen/pya2a | d8a7848ba408850aedd79d18ad2816524499f528 | [
"MIT"
] | null | null | null | pya2a/models.py | LvanWissen/pya2a | d8a7848ba408850aedd79d18ad2816524499f528 | [
"MIT"
] | null | null | null | import datetime
import dateutil.parser
import xml
import xml.etree.ElementTree
from pya2a.utils import parseRemark
class Entity:
NAMESPACE = {"a2a": "http://Mindbus.nl/A2A"}
class Person(Entity):
"""
"""
def __init__(self, element: xml.etree.ElementTree.Element):
self.id = element.attrib... | 32.809639 | 107 | 0.563234 | 1,299 | 13,616 | 5.793687 | 0.146266 | 0.08464 | 0.134467 | 0.066436 | 0.537337 | 0.444592 | 0.43476 | 0.354106 | 0.327265 | 0.307069 | 0 | 0.011095 | 0.324838 | 13,616 | 414 | 108 | 32.888889 | 0.807571 | 0.101425 | 0 | 0.471545 | 0 | 0 | 0.088845 | 0.029064 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093496 | false | 0 | 0.020325 | 0.020325 | 0.227642 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
88737c6f1857632bec14f3d69ee844444dd65d17 | 2,221 | py | Python | musiker_fille_bot.py | pranay414/musiker_fille_bot | 55d87a3bfdbaf8b99b5ca86c6f7a433cd6280d42 | [
"MIT"
] | null | null | null | musiker_fille_bot.py | pranay414/musiker_fille_bot | 55d87a3bfdbaf8b99b5ca86c6f7a433cd6280d42 | [
"MIT"
] | 1 | 2017-12-24T11:18:07.000Z | 2017-12-25T20:29:18.000Z | musiker_fille_bot.py | pranay414/musiker_fille_bot | 55d87a3bfdbaf8b99b5ca86c6f7a433cd6280d42 | [
"MIT"
] | null | null | null | # - *- coding: utf- 8 - *-
""" Bot to suggest music from Spotify based on your mood.
"""
import spotipy, os
from spotipy.oauth2 import SpotifyClientCredentials
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
#from access_token import AUTH_TOKEN, CLIENT_ID, CLIENT_SECRET
# Intialise spotipy
cl... | 38.964912 | 185 | 0.722647 | 305 | 2,221 | 5.154098 | 0.416393 | 0.041349 | 0.063613 | 0.05598 | 0.097328 | 0.05916 | 0 | 0 | 0 | 0 | 0 | 0.003224 | 0.162089 | 2,221 | 56 | 186 | 39.660714 | 0.840946 | 0.266096 | 0 | 0 | 0 | 0.034483 | 0.234122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.103448 | 0 | 0.275862 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8875919d1f2a6e03d1eb055a54e6b7d341bfcdca | 1,544 | py | Python | tracker/utils/projects.py | dti-research/tracker | f2384c0c7b631aa9efd39bf606cda8b85187fcc6 | [
"BSD-3-Clause"
] | 1 | 2019-07-25T18:02:37.000Z | 2019-07-25T18:02:37.000Z | tracker/utils/projects.py | dti-research/tracker | f2384c0c7b631aa9efd39bf606cda8b85187fcc6 | [
"BSD-3-Clause"
] | 10 | 2019-08-29T12:27:35.000Z | 2020-01-04T18:40:48.000Z | tracker/utils/projects.py | dti-research/tracker | f2384c0c7b631aa9efd39bf606cda8b85187fcc6 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2019, Danish Technological Institute.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
# -*- coding: utf-8 -*-
""" Utility code to locate tracker projects
"""
from tracker.tracker_file import Tra... | 21.746479 | 75 | 0.609456 | 188 | 1,544 | 4.893617 | 0.398936 | 0.078261 | 0.042391 | 0.047826 | 0.13913 | 0.113043 | 0 | 0 | 0 | 0 | 0 | 0.006352 | 0.286269 | 1,544 | 70 | 76 | 22.057143 | 0.828494 | 0.243523 | 0 | 0.243243 | 0 | 0 | 0.058927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.081081 | 0 | 0.27027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8876c3bace11ab590dd97932baa4aa09e457abf7 | 2,580 | py | Python | day06.py | AnthonyFloyd/2017-AdventOfCode-Python | ef66ed25fef416f1f5f269810e6039cab53dc6d0 | [
"MIT"
] | null | null | null | day06.py | AnthonyFloyd/2017-AdventOfCode-Python | ef66ed25fef416f1f5f269810e6039cab53dc6d0 | [
"MIT"
] | null | null | null | day06.py | AnthonyFloyd/2017-AdventOfCode-Python | ef66ed25fef416f1f5f269810e6039cab53dc6d0 | [
"MIT"
] | null | null | null | '''
Advent of Code 2017
Day 6: Memory Reallocation
'''
import unittest
TEST_BANKS = ('0 2 7 0', 5, 4)
INPUT_BANKS = '0 5 10 0 11 14 13 4 11 8 8 7 1 4 12 11'
def findInfiniteLoop(memoryBanks):
'''
Finds the number of iterations required to detect an infinite loop with the given start condition.
memoryBa... | 27.446809 | 109 | 0.637597 | 343 | 2,580 | 4.746356 | 0.396501 | 0.027641 | 0.015356 | 0.021499 | 0.127764 | 0.127764 | 0.111794 | 0.081081 | 0.081081 | 0.081081 | 0 | 0.0314 | 0.271705 | 2,580 | 93 | 110 | 27.741935 | 0.835019 | 0.324031 | 0 | 0 | 0 | 0 | 0.107514 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 1 | 0.085714 | false | 0 | 0.028571 | 0 | 0.171429 | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
887a62af70424662df05268a24baf2a7aafc6529 | 1,757 | py | Python | iucas/utils.py | rysdyk/django-iucas | d534800c6a1fc6cf3ea5e3f1c0d9bc0dc7a2b4db | [
"BSD-3-Clause"
] | null | null | null | iucas/utils.py | rysdyk/django-iucas | d534800c6a1fc6cf3ea5e3f1c0d9bc0dc7a2b4db | [
"BSD-3-Clause"
] | null | null | null | iucas/utils.py | rysdyk/django-iucas | d534800c6a1fc6cf3ea5e3f1c0d9bc0dc7a2b4db | [
"BSD-3-Clause"
] | 1 | 2020-01-16T20:25:52.000Z | 2020-01-16T20:25:52.000Z | """
Utility Methods for Authenticating against and using Indiana University CAS.
"""
import httplib2
from django.contrib.auth.models import User
from django.core.exceptions import ObjectDoesNotExist
from django.conf import settings
def validate_cas_ticket(casticket, casurl):
"""
Takes a CAS Ticket and makes th... | 30.293103 | 76 | 0.632328 | 221 | 1,757 | 4.932127 | 0.393665 | 0.033028 | 0.046789 | 0.047706 | 0.102752 | 0.049541 | 0.049541 | 0.049541 | 0.049541 | 0 | 0 | 0.007087 | 0.277177 | 1,757 | 57 | 77 | 30.824561 | 0.851181 | 0.194081 | 0 | 0.342105 | 0 | 0 | 0.04797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
887a99f77ebc5982239f9bc71d68f9e4f2afc02f | 20,460 | py | Python | blousebrothers/confs/views.py | sladinji/blousebrothers | 461de3ba011c0aaed3f0014136c4497b6890d086 | [
"MIT"
] | 1 | 2022-01-27T11:58:10.000Z | 2022-01-27T11:58:10.000Z | blousebrothers/confs/views.py | sladinji/blousebrothers | 461de3ba011c0aaed3f0014136c4497b6890d086 | [
"MIT"
] | 5 | 2021-03-19T00:01:54.000Z | 2022-03-11T23:46:21.000Z | blousebrothers/confs/views.py | sladinji/blousebrothers | 461de3ba011c0aaed3f0014136c4497b6890d086 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.http import JsonResponse
from decimal import Decimal
from datetime import datetime, timedelta
import re
import logging
from disqusapi import DisqusAPI
from django.contrib import messages
from django.apps import apps
from django.core.mail import mail_admins
from django.core.urlresolv... | 36.34103 | 115 | 0.62219 | 2,319 | 20,460 | 5.3605 | 0.169038 | 0.046899 | 0.041026 | 0.015928 | 0.385649 | 0.339313 | 0.305044 | 0.25187 | 0.202317 | 0.189285 | 0 | 0.00334 | 0.26828 | 20,460 | 562 | 116 | 36.405694 | 0.826999 | 0.060704 | 0 | 0.369021 | 0 | 0 | 0.077301 | 0.013455 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08656 | false | 0.004556 | 0.059226 | 0.015945 | 0.341686 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |