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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f788b46ad9abee669c31dc3a176027a5ef06cdbd | 8,983 | py | Python | robot/TTS.py | mluyuchen/wukong-robot | 67f5cdb06db9e5e256017925a5efe6721cb2bd1d | [
"MIT"
] | 8 | 2021-02-01T06:33:49.000Z | 2022-02-02T11:06:58.000Z | robot/TTS.py | mluyuchen/wukong-robot | 67f5cdb06db9e5e256017925a5efe6721cb2bd1d | [
"MIT"
] | 1 | 2020-06-10T10:59:02.000Z | 2020-06-10T10:59:02.000Z | robot/TTS.py | mluyuchen/wukong-robot | 67f5cdb06db9e5e256017925a5efe6721cb2bd1d | [
"MIT"
] | 6 | 2021-01-20T03:22:19.000Z | 2022-03-21T14:19:32.000Z | # -*- coding: utf-8-*-
import os
import base64
import tempfile
import pypinyin
from aip import AipSpeech
from . import utils, config, constants
from robot import logging
from pathlib import Path
from pypinyin import lazy_pinyin
from pydub import AudioSegment
from abc import ABCMeta, abstractmethod
from .sdk import Tenc... | 32.665455 | 155 | 0.601247 | 1,024 | 8,983 | 5.130859 | 0.300781 | 0.018272 | 0.023982 | 0.026266 | 0.305862 | 0.273887 | 0.225733 | 0.165969 | 0.138942 | 0.116673 | 0 | 0.020547 | 0.279417 | 8,983 | 274 | 156 | 32.784672 | 0.791132 | 0.175776 | 0 | 0.278788 | 0 | 0.018182 | 0.06981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.006061 | 0.072727 | 0.042424 | 0.393939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f7897d0bfd7b98594f64cf998c02d21b938fb01d | 392 | py | Python | app/utils.py | Chimmahh/StarJumper | 6003ede1de61a17f1f8302faacf5f76033f8045d | [
"MIT"
] | null | null | null | app/utils.py | Chimmahh/StarJumper | 6003ede1de61a17f1f8302faacf5f76033f8045d | [
"MIT"
] | 3 | 2020-06-05T18:39:20.000Z | 2022-02-11T03:40:48.000Z | app/utils.py | Chimmahh/StarJumper | 6003ede1de61a17f1f8302faacf5f76033f8045d | [
"MIT"
] | 1 | 2018-07-26T16:44:04.000Z | 2018-07-26T16:44:04.000Z | from channels.db import database_sync_to_async
from .exceptions import ClientError
from .models import Game
@database_sync_to_async
def get_game_or_error(game_id, user):
if not user.is_authenticated:
raise ClientError("USER_HAS_TO_LOGIN")
try:
game = Game.objects.get(pk=game_id)
except Game... | 30.153846 | 46 | 0.75 | 56 | 392 | 4.964286 | 0.571429 | 0.086331 | 0.100719 | 0.136691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181122 | 392 | 13 | 47 | 30.153846 | 0.866044 | 0 | 0 | 0 | 0 | 0 | 0.073791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f78ade6802218bb90c0b57cf1feec7d8f2242c2e | 2,328 | py | Python | tests/utils/test_file.py | gfi-centre-ouest/docker-devbox-ddb | 1597d85ef6e9e8322cce195a454de54186ce9ec7 | [
"MIT"
] | 4 | 2020-06-11T20:54:47.000Z | 2020-09-22T13:07:17.000Z | tests/utils/test_file.py | gfi-centre-ouest/docker-devbox-ddb | 1597d85ef6e9e8322cce195a454de54186ce9ec7 | [
"MIT"
] | 113 | 2019-11-07T00:40:36.000Z | 2021-01-18T12:50:16.000Z | tests/utils/test_file.py | inetum-orleans/docker-devbox-ddb | 20c713cf7bfcaf289226a17a9648c17d16003b4d | [
"MIT"
] | null | null | null | import os
import pytest
from ddb.__main__ import load_registered_features
from ddb.config import config
from ddb.feature import features
from ddb.feature.core import CoreFeature
from ddb.utils import file
from ddb.utils.file import FileWalker, FileUtils
class TestHasSameContent:
def test_should_return_true_if_s... | 40.137931 | 139 | 0.714777 | 309 | 2,328 | 5.048544 | 0.300971 | 0.044872 | 0.044872 | 0.053846 | 0.417308 | 0.403846 | 0.377564 | 0.377564 | 0.299359 | 0.271154 | 0 | 0.020888 | 0.177406 | 2,328 | 57 | 140 | 40.842105 | 0.793734 | 0 | 0 | 0.047619 | 0 | 0.02381 | 0.210481 | 0.048969 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.119048 | false | 0 | 0.214286 | 0 | 0.404762 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f78b0bc589ac5d9426f05edb7fe27d25d4add06c | 9,666 | py | Python | test/test_datasets.py | pyronear/pyro-dataset | b6445f6051058f20f2fc821040ec3705dc60464c | [
"Apache-2.0"
] | null | null | null | test/test_datasets.py | pyronear/pyro-dataset | b6445f6051058f20f2fc821040ec3705dc60464c | [
"Apache-2.0"
] | null | null | null | test/test_datasets.py | pyronear/pyro-dataset | b6445f6051058f20f2fc821040ec3705dc60464c | [
"Apache-2.0"
] | 1 | 2022-02-14T12:37:24.000Z | 2022-02-14T12:37:24.000Z | # Copyright (C) 2021, Pyronear contributors.
# This program is licensed under the GNU Affero General Public License version 3.
# See LICENSE or go to <https://www.gnu.org/licenses/agpl-3.0.txt> for full license details.
import unittest
import tempfile
from pathlib import Path
import json
from PIL.Image import Image
i... | 38.975806 | 114 | 0.658183 | 1,172 | 9,666 | 5.186007 | 0.213311 | 0.065153 | 0.049358 | 0.036854 | 0.55923 | 0.524515 | 0.480421 | 0.480257 | 0.455084 | 0.421191 | 0 | 0.032651 | 0.226878 | 9,666 | 247 | 115 | 39.133603 | 0.780677 | 0.0509 | 0 | 0.351955 | 0 | 0 | 0.067132 | 0.007095 | 0 | 0 | 0 | 0 | 0.167598 | 1 | 0.128492 | false | 0 | 0.072626 | 0 | 0.22905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f78d0e1c968d2c094e91caabfbf0e1efad8f0eb3 | 1,009 | py | Python | examples/avro/py/generate_avro_users.py | kikkomep/pydoop | 4f855ef775b925b8c9f2adf1c0ef13337323ee24 | [
"Apache-2.0"
] | null | null | null | examples/avro/py/generate_avro_users.py | kikkomep/pydoop | 4f855ef775b925b8c9f2adf1c0ef13337323ee24 | [
"Apache-2.0"
] | null | null | null | examples/avro/py/generate_avro_users.py | kikkomep/pydoop | 4f855ef775b925b8c9f2adf1c0ef13337323ee24 | [
"Apache-2.0"
] | null | null | null | import sys
import random
import avro.schema
from avro.datafile import DataFileWriter
from avro.io import DatumWriter
NAME_POOL = ['george', 'john', 'paul', 'ringo']
OFFICE_POOL = ['office-%d' % _ for _ in xrange(4)]
COLOR_POOL = ['black', 'cyan', 'magenta', 'yellow']
def main(argv):
try:
schema_fn = arg... | 28.027778 | 69 | 0.597621 | 131 | 1,009 | 4.366412 | 0.465649 | 0.031469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006775 | 0.268583 | 1,009 | 35 | 70 | 28.828571 | 0.768293 | 0 | 0 | 0 | 0 | 0 | 0.136769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.172414 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f7905a650574afa3ef5e426f0e640ab9b3607fe3 | 10,085 | py | Python | packages/gtmapi/service.py | gigabackup/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 60 | 2018-09-26T15:46:00.000Z | 2021-10-10T02:37:14.000Z | packages/gtmapi/service.py | gigabackup/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 1,706 | 2018-09-26T16:11:22.000Z | 2021-08-20T13:37:59.000Z | packages/gtmapi/service.py | griffinmilsap/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 11 | 2019-03-14T13:23:51.000Z | 2022-01-25T01:29:16.000Z | #!/usr/bin/python3
import shutil
import os
import base64
from time import sleep
import flask
import requests.exceptions
import blueprint
from flask_cors import CORS
from confhttpproxy import ProxyRouter, ProxyRouterException
from flask import Flask, jsonify
import rest_routes
from lmsrvcore.utilities.migrate import... | 38.938224 | 133 | 0.69529 | 1,378 | 10,085 | 4.923077 | 0.29463 | 0.012382 | 0.010613 | 0.01194 | 0.126474 | 0.096403 | 0.06309 | 0.045401 | 0.035967 | 0.016215 | 0 | 0.00956 | 0.211701 | 10,085 | 258 | 134 | 39.089147 | 0.843774 | 0.259593 | 0 | 0.21118 | 0 | 0.012422 | 0.285134 | 0.067289 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031056 | false | 0 | 0.118012 | 0 | 0.167702 | 0.024845 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f797289b8fbe1305efddd975d80c58646d9ec219 | 2,555 | py | Python | ml_model.py | CristopherNim/student_performance | f1ec90329e91c44a8155d83c0ac1569eb038954e | [
"MIT"
] | null | null | null | ml_model.py | CristopherNim/student_performance | f1ec90329e91c44a8155d83c0ac1569eb038954e | [
"MIT"
] | null | null | null | ml_model.py | CristopherNim/student_performance | f1ec90329e91c44a8155d83c0ac1569eb038954e | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from sklearn.linear_model import Ridge
from sklearn.model_selection import cross_val_score, train_test_split
from sklearn.model_selection import RepeatedKFold
from sklearn.preprocessing import OneHotEncoder
import pickle
from flask import Flask, request
np.random.seed(42... | 35.486111 | 111 | 0.720157 | 369 | 2,555 | 4.737127 | 0.349594 | 0.06865 | 0.02746 | 0.028604 | 0.145309 | 0.10984 | 0.10984 | 0.10984 | 0.10984 | 0.066362 | 0 | 0.011585 | 0.155382 | 2,555 | 71 | 112 | 35.985915 | 0.798424 | 0.074755 | 0 | 0 | 0 | 0 | 0.189934 | 0.031947 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.190476 | 0 | 0.238095 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f797b24b3f7362f5aa140f0cf6036ab769afd566 | 4,671 | py | Python | kubails/commands/service.py | DevinSit/kubails | b3b2f9487d815868f0fbe9fae649789a40b50ad8 | [
"MIT"
] | 2 | 2019-05-28T00:26:52.000Z | 2019-08-02T23:02:19.000Z | kubails/commands/service.py | DevinSit/kubails | b3b2f9487d815868f0fbe9fae649789a40b50ad8 | [
"MIT"
] | 51 | 2019-12-23T04:34:40.000Z | 2022-02-12T02:28:44.000Z | kubails/commands/service.py | DevinSit/kubails | b3b2f9487d815868f0fbe9fae649789a40b50ad8 | [
"MIT"
] | 1 | 2019-09-11T20:12:18.000Z | 2019-09-11T20:12:18.000Z | import click
import logging
import sys
from typing import Tuple
from kubails.commands import helpers
from kubails.services.config_store import ConfigStore
from kubails.services.service import Service
from kubails.resources.templates import SERVICE_TEMPLATES
from kubails.utils.command_helpers import log_command_args_fac... | 26.241573 | 84 | 0.676301 | 603 | 4,671 | 5.117745 | 0.180763 | 0.081659 | 0.058976 | 0.055087 | 0.489307 | 0.411536 | 0.328257 | 0.225535 | 0.174336 | 0.174336 | 0 | 0.003595 | 0.166346 | 4,671 | 177 | 85 | 26.389831 | 0.788906 | 0.160993 | 0 | 0.361111 | 0 | 0 | 0.136289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.009259 | 0.083333 | 0 | 0.194444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f79944d2cfc0c1247874648a3a289225bce5b0b8 | 669 | py | Python | teacher_files/ia_fopera/version sockets (unix only) d'H. Roussille/neurones.py | zomboyd/epi-ml | 383c28f27e4fdef715e94d1a0e0cd24afe368f86 | [
"MIT"
] | null | null | null | teacher_files/ia_fopera/version sockets (unix only) d'H. Roussille/neurones.py | zomboyd/epi-ml | 383c28f27e4fdef715e94d1a0e0cd24afe368f86 | [
"MIT"
] | null | null | null | teacher_files/ia_fopera/version sockets (unix only) d'H. Roussille/neurones.py | zomboyd/epi-ml | 383c28f27e4fdef715e94d1a0e0cd24afe368f86 | [
"MIT"
] | null | null | null | from math import exp,sqrt
from random import randrange
class neurone:
def __init__(self,a,b):
self.a=a
self.b=b
def proceed(self,z):
t = z[0]*self.a + z[1]*self.b
return 1/(1+exp(-t))
n = 100
X_app = [(randrange(-500,501)/1000,randrange(-500,501)/1000) for i in range(n)]
Y_app ... | 27.875 | 79 | 0.600897 | 145 | 669 | 2.662069 | 0.331034 | 0.090674 | 0.062176 | 0.11399 | 0.137306 | 0.098446 | 0 | 0 | 0 | 0 | 0 | 0.106262 | 0.212257 | 669 | 24 | 80 | 27.875 | 0.626186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.285714 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f799652a7ef1e45432c147799e5cb274b7f73f41 | 29,113 | py | Python | CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/arcgis/apps/storymap/storymap.py | moazzamwaheed2017/carparkapi | e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a | [
"MIT"
] | null | null | null | CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/arcgis/apps/storymap/storymap.py | moazzamwaheed2017/carparkapi | e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a | [
"MIT"
] | 9 | 2020-02-03T15:50:10.000Z | 2022-03-02T07:11:34.000Z | CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/arcgis/apps/storymap/storymap.py | moazzamwaheed2017/carparkapi | e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a | [
"MIT"
] | null | null | null | import json
import datetime
import mimetypes
from urllib.parse import urlparse
from arcgis import env
from arcgis.gis import GIS
from arcgis.gis import Item
from ._ref import reference
class JournalStoryMap(object):
"""
Represents a Journal Story Map
=============== ===================================... | 44.177542 | 131 | 0.334352 | 1,830 | 29,113 | 5.221311 | 0.138798 | 0.045421 | 0.048142 | 0.049817 | 0.601465 | 0.562951 | 0.510832 | 0.505285 | 0.501099 | 0.501099 | 0 | 0.005445 | 0.362896 | 29,113 | 658 | 132 | 44.244681 | 0.509705 | 0.431697 | 0 | 0.484925 | 0 | 0.002513 | 0.147917 | 0.015549 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047739 | false | 0 | 0.025126 | 0.005025 | 0.148241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f79a3d652453d780701f42332b40981d8f1da3a1 | 2,749 | py | Python | bin/pannzer/operators/output_DE.py | nestorzaburannyi/annotate | e175226504efef811d4ac3914f2ab342968edf98 | [
"MIT"
] | 1 | 2021-11-26T17:29:56.000Z | 2021-11-26T17:29:56.000Z | bin/pannzer/operators/output_DE.py | nestorzaburannyi/annotate | e175226504efef811d4ac3914f2ab342968edf98 | [
"MIT"
] | 1 | 2020-03-19T21:12:23.000Z | 2020-03-19T21:12:23.000Z | bin/pannzer/operators/output_DE.py | nestorzaburannyi/annotate | e175226504efef811d4ac3914f2ab342968edf98 | [
"MIT"
] | null | null | null | from myoperator import BlockOperator
import re
class output_DE(BlockOperator):
"""
Select one line per DE-cluster with the best quality description.
Creates cluster_data column 'desc','genename'
Inputs: data columns 'clusid','desc','FF','status'
cluster_data column 'clu... | 45.816667 | 167 | 0.476901 | 286 | 2,749 | 4.465035 | 0.283217 | 0.049334 | 0.050901 | 0.039937 | 0.145654 | 0.048551 | 0.048551 | 0 | 0 | 0 | 0 | 0.016414 | 0.42379 | 2,749 | 59 | 168 | 46.59322 | 0.789773 | 0.14187 | 0 | 0.090909 | 0 | 0 | 0.037744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.113636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f7a18de75e2c5d8f0a8fefb62bdf2a19e6aa2d6f | 1,662 | py | Python | versions/versions.py | juanfec/juan_rueda_test | 1e5d6bccadc24569db26b5a8b58486c8295cef12 | [
"MIT"
] | null | null | null | versions/versions.py | juanfec/juan_rueda_test | 1e5d6bccadc24569db26b5a8b58486c8295cef12 | [
"MIT"
] | null | null | null | versions/versions.py | juanfec/juan_rueda_test | 1e5d6bccadc24569db26b5a8b58486c8295cef12 | [
"MIT"
] | null | null | null | # check to strings that represent version numbers and finds the greatest,
# 'equals' if they are the same version or 'Invalid Format'
# example: “1.2” is greater than “1.1”.
# for reusability this function just returns the version number or the word equals
# if a more elaborated answer is needed an interface would be... | 42.615385 | 82 | 0.570397 | 209 | 1,662 | 4.535885 | 0.444976 | 0.06962 | 0.046414 | 0.07173 | 0.238397 | 0.238397 | 0.238397 | 0.238397 | 0.238397 | 0.183544 | 0 | 0.028999 | 0.356799 | 1,662 | 39 | 83 | 42.615385 | 0.857811 | 0.377858 | 0 | 0.518519 | 0 | 0 | 0.021548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0 | 0 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e38a5b70b844182225b5e64d4a3c3af08686053b | 1,869 | py | Python | examples/finance/stocks_baselines.py | TianhaoFu/MultiBench | b174a3187124d6f92be1ff3b487eef292f7883bb | [
"MIT"
] | null | null | null | examples/finance/stocks_baselines.py | TianhaoFu/MultiBench | b174a3187124d6f92be1ff3b487eef292f7883bb | [
"MIT"
] | null | null | null | examples/finance/stocks_baselines.py | TianhaoFu/MultiBench | b174a3187124d6f92be1ff3b487eef292f7883bb | [
"MIT"
] | null | null | null | import sys
import os
sys.path.append(os.getcwd())
import argparse
import numpy as np
import pmdarima
import torch
import torch.nn.functional as F
from torch import nn
from fusions.common_fusions import Stack
from unimodals.common_models import LSTMWithLinear
from datasets.stocks.get_data import get_dataloader
parser... | 41.533333 | 129 | 0.721776 | 283 | 1,869 | 4.618375 | 0.286219 | 0.129304 | 0.13925 | 0.078041 | 0.30987 | 0.208875 | 0.196634 | 0.196634 | 0.155318 | 0 | 0 | 0.001232 | 0.131086 | 1,869 | 44 | 130 | 42.477273 | 0.803571 | 0 | 0 | 0 | 0 | 0 | 0.12306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.297297 | 0.054054 | 0.486486 | 0.216216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e38a5e9b805eaee8a5ed1bb8c56f9e375e34bdfa | 3,329 | py | Python | textmate/bundles/LaTeX.tmbundle/Support/lib/Python/tmprefs.py | leo-brewin/hybrid-latex | 2debaf3f97eb551928d08dc4baded7ef7a4ab29a | [
"MIT"
] | 16 | 2018-10-12T06:31:49.000Z | 2022-03-31T23:16:08.000Z | textmate/bundles/LaTeX.tmbundle/Support/lib/Python/tmprefs.py | leo-brewin/hybrid-latex | 2debaf3f97eb551928d08dc4baded7ef7a4ab29a | [
"MIT"
] | null | null | null | textmate/bundles/LaTeX.tmbundle/Support/lib/Python/tmprefs.py | leo-brewin/hybrid-latex | 2debaf3f97eb551928d08dc4baded7ef7a4ab29a | [
"MIT"
] | 2 | 2021-06-27T03:29:40.000Z | 2022-03-30T17:17:18.000Z | # -- Imports ------------------------------------------------------------------
from __future__ import print_function
from __future__ import unicode_literals
from Foundation import CFPreferencesAppSynchronize, CFPreferencesCopyAppValue
from os import getenv
# -- Class -----------------------------------------------... | 31.11215 | 79 | 0.545209 | 275 | 3,329 | 6.454545 | 0.396364 | 0.049577 | 0.050704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002644 | 0.318414 | 3,329 | 106 | 80 | 31.40566 | 0.779639 | 0.428958 | 0 | 0 | 0 | 0 | 0.11728 | 0.014348 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.135135 | 0 | 0.297297 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e38c0cf17108b05c381e4d71a5abca8083aae594 | 6,936 | py | Python | Q1_ab.py | dkilike/Image-Segmentation | 6a3ab7f96d105475051502aba8013c242eba5fcb | [
"ADSL"
] | 2 | 2019-05-05T01:52:23.000Z | 2019-05-06T22:56:54.000Z | Q1_ab.py | dkilike/Image-Segmentation | 6a3ab7f96d105475051502aba8013c242eba5fcb | [
"ADSL"
] | null | null | null | Q1_ab.py | dkilike/Image-Segmentation | 6a3ab7f96d105475051502aba8013c242eba5fcb | [
"ADSL"
] | null | null | null | '''Please write a program to read the scan and print out
The maximum voxel intensity
The mean voxel intensity
The coordinates of the centre of the image volume, in the scanner coordinate system.
'''
import pydicom
import numpy as np
import matplotlib.pyplot as plt
import cv2
import glob
import os
import image_slicer
... | 36.698413 | 131 | 0.697953 | 974 | 6,936 | 4.865503 | 0.207392 | 0.028065 | 0.043891 | 0.025322 | 0.555602 | 0.502638 | 0.471407 | 0.442709 | 0.35767 | 0.35767 | 0 | 0.050112 | 0.15989 | 6,936 | 189 | 132 | 36.698413 | 0.763171 | 0.438725 | 0 | 0.158537 | 0 | 0.012195 | 0.199783 | 0.025176 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085366 | 0 | 0.085366 | 0.146341 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e38c2e039b77985412d12e168040f3115a42b4f3 | 1,759 | py | Python | 12/day_twelve.py | tmay-sarsaparilla/advent-of-code-2021 | 3cd827df57d315dd96627544b9f5c31b7db1aa11 | [
"MIT"
] | null | null | null | 12/day_twelve.py | tmay-sarsaparilla/advent-of-code-2021 | 3cd827df57d315dd96627544b9f5c31b7db1aa11 | [
"MIT"
] | null | null | null | 12/day_twelve.py | tmay-sarsaparilla/advent-of-code-2021 | 3cd827df57d315dd96627544b9f5c31b7db1aa11 | [
"MIT"
] | null | null | null |
def find_paths(start, connections, visited=None, small_cave_visited_twice=False):
if visited is None:
visited = ["start"]
possible_connections = [e for s, e in connections if s == start] + [s for s, e in connections if e == start]
paths = []
if not possible_connections:
raise ValueErro... | 34.490196 | 112 | 0.604321 | 227 | 1,759 | 4.431718 | 0.295154 | 0.053678 | 0.111332 | 0.146123 | 0.257455 | 0.257455 | 0.110338 | 0.055666 | 0.055666 | 0.055666 | 0 | 0 | 0.306424 | 1,759 | 50 | 113 | 35.18 | 0.82459 | 0.072769 | 0 | 0.095238 | 0 | 0 | 0.051724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.071429 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e38e7b771230b46e0d59d9e9f903a942ff021817 | 1,643 | py | Python | tests/unit/test_question_answer.py | Lunga001/pmg-cms-2 | 10cea3979711716817b0ba2a41987df73f2c7642 | [
"Apache-2.0"
] | 2 | 2019-06-11T20:46:43.000Z | 2020-08-27T22:50:32.000Z | tests/unit/test_question_answer.py | Lunga001/pmg-cms-2 | 10cea3979711716817b0ba2a41987df73f2c7642 | [
"Apache-2.0"
] | 70 | 2017-05-26T14:04:06.000Z | 2021-06-30T10:21:58.000Z | tests/unit/test_question_answer.py | OpenUpSA/pmg-cms-2 | ec5f259dae81674ac7a8cdb80f124a8b0f167780 | [
"Apache-2.0"
] | 4 | 2017-08-29T10:09:30.000Z | 2021-05-25T11:29:03.000Z | import os
from tests import PMGTestCase
from tests.fixtures import dbfixture, CommitteeQuestionData
class TestQuestionAnswer(PMGTestCase):
def setUp(self):
super(TestQuestionAnswer, self).setUp()
self.fx = dbfixture.data(CommitteeQuestionData,)
self.fx.setup()
def tearDown(self):
... | 33.530612 | 80 | 0.645161 | 164 | 1,643 | 6.310976 | 0.304878 | 0.04058 | 0.077295 | 0.108213 | 0.703382 | 0.691787 | 0.624155 | 0.624155 | 0.519807 | 0.519807 | 0 | 0.011447 | 0.25563 | 1,643 | 48 | 81 | 34.229167 | 0.834832 | 0 | 0 | 0.404762 | 0 | 0 | 0.093122 | 0.04504 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.095238 | false | 0 | 0.071429 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e38eb4838b0bca24f076f914d11b9ed6e01734df | 1,470 | py | Python | Job-Interviews/Python/BinaryTrees/Problem2.py | JuanPabloMontoya271/ITC | f5899e7a8fed4e9f90e97bb3af635a276d9cf13a | [
"MIT"
] | 1 | 2020-11-02T15:18:16.000Z | 2020-11-02T15:18:16.000Z | Job-Interviews/Python/BinaryTrees/Problem2.py | JuanPabloMontoya271/ITC | f5899e7a8fed4e9f90e97bb3af635a276d9cf13a | [
"MIT"
] | null | null | null | Job-Interviews/Python/BinaryTrees/Problem2.py | JuanPabloMontoya271/ITC | f5899e7a8fed4e9f90e97bb3af635a276d9cf13a | [
"MIT"
] | 1 | 2021-10-30T14:18:29.000Z | 2021-10-30T14:18:29.000Z | class Tree:
def __init__(self, val,left = None, right = None):
self.val = val
self.left = left
self.right = right
root = Tree(4, left = Tree(3), right=Tree(5, left= Tree(4)))
#InOrderTraversal
def InOrderTraversal(root, res = []):
if root is None:
return res
... | 28.269231 | 61 | 0.614286 | 176 | 1,470 | 5.107955 | 0.204545 | 0.177976 | 0.040044 | 0.057842 | 0.446051 | 0.428254 | 0.374861 | 0.276974 | 0.122358 | 0.122358 | 0 | 0.006554 | 0.273469 | 1,470 | 52 | 62 | 28.269231 | 0.835206 | 0.034694 | 0 | 0.477273 | 0 | 0 | 0.038799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0 | 0 | 0.318182 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e38ef669498a375d8712d764abb891d4af6ac615 | 4,429 | py | Python | csv_analyzer/apps/dataset/api/dataset.py | saduqz/csv-analyzer-test | 732d4902aeba9278e7547ed5a83e4a482790076c | [
"MIT"
] | null | null | null | csv_analyzer/apps/dataset/api/dataset.py | saduqz/csv-analyzer-test | 732d4902aeba9278e7547ed5a83e4a482790076c | [
"MIT"
] | null | null | null | csv_analyzer/apps/dataset/api/dataset.py | saduqz/csv-analyzer-test | 732d4902aeba9278e7547ed5a83e4a482790076c | [
"MIT"
] | null | null | null | from datetime import datetime
# Rest framework
from rest_framework import status
from rest_framework.decorators import action
from rest_framework.mixins import RetrieveModelMixin, ListModelMixin, UpdateModelMixin, CreateModelMixin
from rest_framework.response import Response
from rest_framework.viewsets import Generic... | 33.300752 | 109 | 0.664484 | 506 | 4,429 | 5.614625 | 0.262846 | 0.029567 | 0.035903 | 0.033439 | 0.166843 | 0.100669 | 0.050686 | 0.030271 | 0 | 0 | 0 | 0.00654 | 0.240461 | 4,429 | 132 | 110 | 33.55303 | 0.83799 | 0.09641 | 0 | 0.137931 | 0 | 0 | 0.037865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.137931 | 0.011494 | 0.321839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e38f3cccadcd0f9b76ee123f571fa527044e60b4 | 11,984 | py | Python | tfx_bsl/tfxio/tensor_to_arrow_test.py | brills/tfx-bsl | 089d6673a8d3cccef84ff3d6583808544d2da038 | [
"Apache-2.0"
] | null | null | null | tfx_bsl/tfxio/tensor_to_arrow_test.py | brills/tfx-bsl | 089d6673a8d3cccef84ff3d6583808544d2da038 | [
"Apache-2.0"
] | null | null | null | tfx_bsl/tfxio/tensor_to_arrow_test.py | brills/tfx-bsl | 089d6673a8d3cccef84ff3d6583808544d2da038 | [
"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, ... | 38.044444 | 80 | 0.550484 | 1,300 | 11,984 | 4.823077 | 0.178462 | 0.016268 | 0.014035 | 0.014354 | 0.50941 | 0.405263 | 0.341467 | 0.294418 | 0.237002 | 0.183413 | 0 | 0.027087 | 0.328438 | 11,984 | 314 | 81 | 38.165605 | 0.751988 | 0.068758 | 0 | 0.403922 | 0 | 0 | 0.043854 | 0.006455 | 0 | 0 | 0 | 0 | 0.062745 | 1 | 0.027451 | false | 0 | 0.035294 | 0 | 0.07451 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e390652d724f8e334ded89e33631ccb73990db8b | 2,749 | py | Python | nemo/nemo/backends/pytorch/common/data.py | petermartigny/NeMo | b20821e637314940e36b63d32c601c43d1b74051 | [
"Apache-2.0"
] | 1 | 2020-03-22T11:23:11.000Z | 2020-03-22T11:23:11.000Z | nemo/nemo/backends/pytorch/common/data.py | petermartigny/NeMo | b20821e637314940e36b63d32c601c43d1b74051 | [
"Apache-2.0"
] | null | null | null | nemo/nemo/backends/pytorch/common/data.py | petermartigny/NeMo | b20821e637314940e36b63d32c601c43d1b74051 | [
"Apache-2.0"
] | 1 | 2019-10-23T01:19:19.000Z | 2019-10-23T01:19:19.000Z | __all__ = ['TextDataLayer']
from functools import partial
import torch
from torch.utils.data import DataLoader, DistributedSampler
from nemo.backends.pytorch.common.parts import TextDataset
from nemo.backends.pytorch.nm import DataLayerNM
from nemo.core import DeviceType
from nemo.core.neural_types import *
from nem... | 29.244681 | 79 | 0.616588 | 335 | 2,749 | 4.853731 | 0.39403 | 0.01845 | 0.01968 | 0.02829 | 0.0246 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007315 | 0.303747 | 2,749 | 93 | 80 | 29.55914 | 0.842215 | 0.233903 | 0 | 0.068966 | 0 | 0 | 0.008785 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 1 | 0.103448 | false | 0 | 0.137931 | 0.051724 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e39338fd7b675e7103c88c702302ca7865a71de5 | 21,161 | py | Python | bot.py | marsDurden/UnipdBot | 402b74f6bd876265b952f052e2c132f6aa3c050d | [
"Unlicense"
] | 4 | 2018-04-12T03:39:36.000Z | 2019-11-26T07:52:30.000Z | bot.py | marsDurden/UnipdBot | 402b74f6bd876265b952f052e2c132f6aa3c050d | [
"Unlicense"
] | null | null | null | bot.py | marsDurden/UnipdBot | 402b74f6bd876265b952f052e2c132f6aa3c050d | [
"Unlicense"
] | 1 | 2019-10-07T16:50:48.000Z | 2019-10-07T16:50:48.000Z | import logging
from datetime import time, timedelta
from functools import wraps
# Telegram bot libraries
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, CallbackQueryHandler
from telegram import KeyboardButton, ReplyKeyboardMarkup, ParseMode, Bot, InlineKeyboardButton, InlineKeyboardMarkup
f... | 40.460803 | 228 | 0.641038 | 2,525 | 21,161 | 5.184158 | 0.145743 | 0.040795 | 0.023529 | 0.042017 | 0.584492 | 0.512529 | 0.449198 | 0.42796 | 0.343239 | 0.30084 | 0 | 0.007493 | 0.243183 | 21,161 | 522 | 229 | 40.538314 | 0.809866 | 0.058646 | 0 | 0.449749 | 0 | 0 | 0.061962 | 0 | 0 | 0 | 0 | 0.001916 | 0 | 1 | 0.077889 | false | 0.017588 | 0.025126 | 0 | 0.11809 | 0.002513 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3946d8baaf74d520467a9069ae0fdd15f75585b | 1,340 | py | Python | misc_code/extractGridFeatures.py | Lab-Work/gpsresilience | 7c5183092013d44ce6d295469880502407c0e4ac | [
"NCSA",
"Unlicense"
] | 21 | 2015-03-10T19:13:38.000Z | 2021-06-27T06:01:00.000Z | misc_code/extractGridFeatures.py | Lab-Work/gpsresilience | 7c5183092013d44ce6d295469880502407c0e4ac | [
"NCSA",
"Unlicense"
] | null | null | null | misc_code/extractGridFeatures.py | Lab-Work/gpsresilience | 7c5183092013d44ce6d295469880502407c0e4ac | [
"NCSA",
"Unlicense"
] | 17 | 2015-03-10T19:13:39.000Z | 2020-11-14T08:30:40.000Z | import csv
import os
import shutil
from datetime import datetime
from grid import *
#from cluster import *
from regions import *
start_time = datetime.now()
print("Allocating...")
#grid2
#gridSystem = GridSystem(-74.04, -73.775, 5, 40.63, 40.835, 5)
#gridname = "grid2"
#grid3
#gridSystem = GridSystem(-74.02, -73.9... | 20 | 81 | 0.636567 | 181 | 1,340 | 4.646409 | 0.519337 | 0.023781 | 0.035672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074388 | 0.207463 | 1,340 | 66 | 82 | 20.30303 | 0.717514 | 0.2 | 0 | 0 | 0 | 0 | 0.132768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.157895 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e394ba0d9db0eefab6e3defb03dc2daf2b6faade | 6,472 | py | Python | haiku/_src/stateful_test.py | madisonmay/dm-haiku | de95f6f83561edeb582d46b2e3bf135051792b91 | [
"Apache-2.0"
] | null | null | null | haiku/_src/stateful_test.py | madisonmay/dm-haiku | de95f6f83561edeb582d46b2e3bf135051792b91 | [
"Apache-2.0"
] | null | null | null | haiku/_src/stateful_test.py | madisonmay/dm-haiku | de95f6f83561edeb582d46b2e3bf135051792b91 | [
"Apache-2.0"
] | null | null | null | # Lint as: python3
# Copyright 2019 DeepMind Technologies Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | 30.102326 | 80 | 0.65204 | 1,003 | 6,472 | 4.058824 | 0.195414 | 0.025792 | 0.02874 | 0.024564 | 0.436011 | 0.387374 | 0.341931 | 0.315402 | 0.289855 | 0.289855 | 0 | 0.015716 | 0.203646 | 6,472 | 214 | 81 | 30.242991 | 0.774156 | 0.153276 | 0 | 0.392157 | 0 | 0 | 0.028414 | 0 | 0 | 0 | 0 | 0 | 0.183007 | 1 | 0.169935 | false | 0 | 0.058824 | 0.006536 | 0.326797 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e395c0ffd85f1bb1c10ed76e50b3673348515641 | 1,205 | py | Python | pocketbook/commands/rename.py | ejfitzgerald/tools-pocketbook | c36254f3e39e875cacf50a5e90b9723e19c1ed9b | [
"Apache-2.0"
] | 1 | 2021-09-08T05:30:11.000Z | 2021-09-08T05:30:11.000Z | pocketbook/commands/rename.py | ejfitzgerald/tools-pocketbook | c36254f3e39e875cacf50a5e90b9723e19c1ed9b | [
"Apache-2.0"
] | 14 | 2019-12-30T17:43:22.000Z | 2021-11-18T10:45:14.000Z | pocketbook/commands/rename.py | ejfitzgerald/tools-pocketbook | c36254f3e39e875cacf50a5e90b9723e19c1ed9b | [
"Apache-2.0"
] | 3 | 2019-12-24T10:50:44.000Z | 2021-11-20T21:24:32.000Z | def run_rename(args):
from pocketbook.address_book import AddressBook
from pocketbook.key_store import KeyStore
address_book = AddressBook()
key_store = KeyStore()
# make sure that the new name is not present either as a key, or as an address
new_present = args.new in address_book.keys() or ar... | 35.441176 | 114 | 0.682988 | 185 | 1,205 | 4.297297 | 0.340541 | 0.05283 | 0.045283 | 0.05283 | 0.045283 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004343 | 0.235685 | 1,205 | 33 | 115 | 36.515152 | 0.858849 | 0.091286 | 0 | 0.12 | 0 | 0 | 0.14011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.08 | 0 | 0.28 | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e396807417ead50e7f98ae6a7599b85f383deff5 | 395 | py | Python | src/orion/algo/robo/__init__.py | lebrice/orion.algo.robo | f7e14e305619344ed9afd303fecbfcabda6ae7ce | [
"BSD-3-Clause"
] | null | null | null | src/orion/algo/robo/__init__.py | lebrice/orion.algo.robo | f7e14e305619344ed9afd303fecbfcabda6ae7ce | [
"BSD-3-Clause"
] | null | null | null | src/orion/algo/robo/__init__.py | lebrice/orion.algo.robo | f7e14e305619344ed9afd303fecbfcabda6ae7ce | [
"BSD-3-Clause"
] | 2 | 2020-09-28T15:18:19.000Z | 2021-06-29T20:27:18.000Z | # -*- coding: utf-8 -*-
"""
Wrapper for RoBO
"""
__descr__ = "TODO"
__license__ = "BSD 3-Clause"
__author__ = u"Epistímio"
__author_short__ = u"Epistímio"
__author_email__ = "xavier.bouthillier@umontreal.ca"
__copyright__ = u"2021, Epistímio"
__url__ = "https://github.com/Epistimio/orion.algo.robo"
from ._version imp... | 21.944444 | 56 | 0.741772 | 49 | 395 | 5.204082 | 0.734694 | 0.129412 | 0.12549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017143 | 0.113924 | 395 | 17 | 57 | 23.235294 | 0.711429 | 0.098734 | 0 | 0 | 0 | 0 | 0.376437 | 0.08908 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e399392a521bfe1faf93a652bafa6c185ca4d8e0 | 2,343 | py | Python | minimum/minimum-function.py | gunater/Numerical-methods | 4cf676b7d3996b7e70c6f4b50b15acc330a0d763 | [
"MIT"
] | null | null | null | minimum/minimum-function.py | gunater/Numerical-methods | 4cf676b7d3996b7e70c6f4b50b15acc330a0d763 | [
"MIT"
] | null | null | null | minimum/minimum-function.py | gunater/Numerical-methods | 4cf676b7d3996b7e70c6f4b50b15acc330a0d763 | [
"MIT"
] | null | null | null | """
Znaleść kąt á, przy którym zasięg skoku z wahadła będzie maksymalny. Należy
posłużyć się metodą złotego podziału.
Mateusz Ostrowski
Index:216708
"""
import matplotlib.pyplot as plt
import numpy as np
class Zloty_podzial:
def __init__(self, h, line, a0):
tau = (np.sqrt(5) - 1) / 2
a = 0.2
... | 31.662162 | 193 | 0.521554 | 383 | 2,343 | 3.156658 | 0.321149 | 0.033085 | 0.049628 | 0.054591 | 0.19024 | 0.19024 | 0.095947 | 0.095947 | 0.086022 | 0.086022 | 0 | 0.047792 | 0.294494 | 2,343 | 73 | 194 | 32.09589 | 0.683606 | 0.061886 | 0 | 0.040816 | 0 | 0 | 0.10274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102041 | false | 0 | 0.040816 | 0.061224 | 0.244898 | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e399bf6533e93672377322199e348e30448cbeff | 3,967 | py | Python | app/products/product_info.py | Group-16-COSC-310/grocery-chat-bot | a9759dd0a6d5b91733267ec4ed156f85f45c05ff | [
"MIT"
] | null | null | null | app/products/product_info.py | Group-16-COSC-310/grocery-chat-bot | a9759dd0a6d5b91733267ec4ed156f85f45c05ff | [
"MIT"
] | 7 | 2022-03-10T00:24:51.000Z | 2022-03-19T01:37:18.000Z | app/products/product_info.py | Group-16-COSC-310/grocery-chat-bot | a9759dd0a6d5b91733267ec4ed156f85f45c05ff | [
"MIT"
] | 1 | 2022-03-31T03:28:27.000Z | 2022-03-31T03:28:27.000Z | from app.database import MOCK_PRODUCT_DATA
import re
from app.products.base_handler import BaseHandler
class ProductInfoHandler(BaseHandler):
"""
A class used to represent a mini-bot to handle product queries.
"""
def __init__(self) -> None:
super().__init__()
def create_match_paterns(se... | 36.731481 | 138 | 0.590623 | 469 | 3,967 | 4.882729 | 0.309168 | 0.015721 | 0.019214 | 0.022271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001435 | 0.297454 | 3,967 | 108 | 139 | 36.731481 | 0.820237 | 0.158306 | 0 | 0.028986 | 0 | 0.028986 | 0.151222 | 0.027769 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101449 | false | 0 | 0.043478 | 0 | 0.246377 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e39a4f94218457c4ddd8055721b30ec15463d320 | 5,940 | py | Python | qcdb/iface_psi4/runner.py | vivacebelles/qcdb | 5bbdcb5c833277647a36bb0a5982abb56bf29b20 | [
"BSD-3-Clause"
] | 1 | 2019-02-20T20:18:02.000Z | 2019-02-20T20:18:02.000Z | qcdb/iface_psi4/runner.py | vivacebelles/qcdb | 5bbdcb5c833277647a36bb0a5982abb56bf29b20 | [
"BSD-3-Clause"
] | null | null | null | qcdb/iface_psi4/runner.py | vivacebelles/qcdb | 5bbdcb5c833277647a36bb0a5982abb56bf29b20 | [
"BSD-3-Clause"
] | null | null | null | import sys
import copy
import pprint
pp = pprint.PrettyPrinter(width=120)
import inspect
import numpy as np
from .. import __version__
from .. import qcvars
from ..driver.driver_helpers import print_variables
from ..exceptions import *
from ..molecule import Molecule
from ..pdict import PreservingDict
from .worker im... | 28.834951 | 102 | 0.605724 | 689 | 5,940 | 5.145138 | 0.306241 | 0.043441 | 0.023695 | 0.028209 | 0.151763 | 0.137095 | 0.113399 | 0.101834 | 0.067419 | 0.067419 | 0 | 0.018198 | 0.222896 | 5,940 | 205 | 103 | 28.97561 | 0.749783 | 0.306397 | 0 | 0.14 | 0 | 0 | 0.152803 | 0 | 0 | 0 | 0 | 0.004878 | 0 | 1 | 0.04 | false | 0.01 | 0.15 | 0 | 0.24 | 0.03 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e39ec861b279f059e70d4bea0eec9d21d1b19ced | 6,784 | py | Python | MyBot.py | joebieb/halite | da389aa8e9f97a0ac6a417ca53023609376c0dc6 | [
"MIT"
] | null | null | null | MyBot.py | joebieb/halite | da389aa8e9f97a0ac6a417ca53023609376c0dc6 | [
"MIT"
] | null | null | null | MyBot.py | joebieb/halite | da389aa8e9f97a0ac6a417ca53023609376c0dc6 | [
"MIT"
] | null | null | null | import hlt
import logging
from collections import OrderedDict
# GAME START
game = hlt.Game("Spoof_v7")
logging.info('Starting my %s bot!', game._name)
TURN = 0
def navigate(ship, entity, multiplier = 1):
navigate_command = ship.navigate(
ship.closest_point_to(entity),
game_map,
speed=int(h... | 48.457143 | 223 | 0.658461 | 920 | 6,784 | 4.578261 | 0.161957 | 0.066477 | 0.106838 | 0.074074 | 0.533001 | 0.444207 | 0.364672 | 0.318139 | 0.211064 | 0.191595 | 0 | 0.007027 | 0.265772 | 6,784 | 139 | 224 | 48.805755 | 0.838587 | 0.169959 | 0 | 0.182796 | 0 | 0 | 0.00482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021505 | false | 0 | 0.032258 | 0 | 0.053763 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e39f7df5983d058b6f0e12ddeb89dfebc298ff47 | 2,875 | py | Python | test/test_horizons.py | bluePhlavio/eph | 9ad8d753ba70d7ed147a591c4181edd56b9533cc | [
"MIT"
] | 1 | 2021-05-07T23:35:32.000Z | 2021-05-07T23:35:32.000Z | test/test_horizons.py | bluePhlavio/eph | 9ad8d753ba70d7ed147a591c4181edd56b9533cc | [
"MIT"
] | 8 | 2019-11-02T01:04:26.000Z | 2021-06-02T00:01:37.000Z | test/test_horizons.py | bluePhlavio/eph | 9ad8d753ba70d7ed147a591c4181edd56b9533cc | [
"MIT"
] | 1 | 2019-03-20T13:55:52.000Z | 2019-03-20T13:55:52.000Z | import pytest
from eph.horizons import *
@pytest.fixture(params=[
('earth', '399'),
('\'earth\'', '399'),
('Earth', '399'),
('399', '399'),
('\'399\'', '399'),
('pluto', 'pluto'),
])
def codify_obj_data(request):
return request.param
def test_codify_obj(codify_obj_data):
data, resul... | 21.455224 | 67 | 0.614261 | 338 | 2,875 | 5.02071 | 0.180473 | 0.038892 | 0.08957 | 0.113141 | 0.434885 | 0.321155 | 0.30053 | 0.173247 | 0.076606 | 0.076606 | 0 | 0.052972 | 0.192348 | 2,875 | 133 | 68 | 21.616541 | 0.677864 | 0 | 0 | 0.3 | 0 | 0 | 0.137043 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.16 | false | 0 | 0.02 | 0.08 | 0.26 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3a225a979c9b3bf4e5e8bd9eaea65a272da293b | 14,693 | py | Python | RasaMakeupRobot/script/dst/trade/utils.py | xiaobuguilaile/rasa-conversational-robot | 05f03c8e928a7c6bef284cdc18a89ef423977974 | [
"Apache-2.0"
] | 2 | 2021-01-05T08:56:54.000Z | 2021-01-22T06:05:55.000Z | script/dst/trade/utils.py | qq751220449/xbot | 557793302badfce1c0befa81de8948da99c0baae | [
"MIT"
] | null | null | null | script/dst/trade/utils.py | qq751220449/xbot | 557793302badfce1c0befa81de8948da99c0baae | [
"MIT"
] | null | null | null | import os
import bz2
import json
import random
import pickle
from collections import defaultdict, Counter
from tqdm import tqdm
import torch
from data.crosswoz.data_process.dst.trade_preprocess import (
EXPERIMENT_DOMAINS,
Lang,
get_seq,
get_slot_information,
)
class CNEmbedding:
def __init__(s... | 33.699541 | 107 | 0.562445 | 1,868 | 14,693 | 4.179336 | 0.164882 | 0.024209 | 0.015371 | 0.009607 | 0.205713 | 0.153836 | 0.126937 | 0.103881 | 0.054054 | 0.039196 | 0 | 0.014783 | 0.323215 | 14,693 | 435 | 108 | 33.777011 | 0.770314 | 0.094535 | 0 | 0.129231 | 0 | 0 | 0.086124 | 0.003797 | 0 | 0 | 0 | 0.002299 | 0 | 1 | 0.036923 | false | 0 | 0.027692 | 0 | 0.098462 | 0.043077 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3a3386ce9240964c1a178b8bb4fca5a690e725d | 789 | py | Python | pharmrep/reports/urls.py | boyombo/pharmrep | 2293ceb235dec949c58fa40d1ee43fce172e0ceb | [
"MIT"
] | null | null | null | pharmrep/reports/urls.py | boyombo/pharmrep | 2293ceb235dec949c58fa40d1ee43fce172e0ceb | [
"MIT"
] | null | null | null | pharmrep/reports/urls.py | boyombo/pharmrep | 2293ceb235dec949c58fa40d1ee43fce172e0ceb | [
"MIT"
] | null | null | null | from django.conf.urls import url
from django.views.generic import TemplateView
from reports import views
urlpatterns = [
url(r'balance/$', views.balance, name='report_balance'),
url(r'performance/$', views.performance, name='report_performance'),
url(r'last_activity/$', views.last_activity, name='last_ac... | 39.45 | 75 | 0.714829 | 98 | 789 | 5.561224 | 0.326531 | 0.051376 | 0.099083 | 0.143119 | 0.20367 | 0.20367 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130545 | 789 | 19 | 76 | 41.526316 | 0.794461 | 0 | 0 | 0 | 0 | 0 | 0.324461 | 0.09379 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3a40b62615cdac16bdbd6f21218bc07a791e56b | 4,030 | py | Python | validate_submission.py | ChunghyunPark/semantic-kitti-api | 8863f21cb05fd99667b4a1bb755cc432c430c9fe | [
"MIT"
] | 1 | 2019-10-18T15:12:24.000Z | 2019-10-18T15:12:24.000Z | validate_submission.py | ZiyiLiubird/semantic-kitti-api | 9a6366264b1fd95d7a84e05bd41659524fd9fd32 | [
"MIT"
] | null | null | null | validate_submission.py | ZiyiLiubird/semantic-kitti-api | 9a6366264b1fd95d7a84e05bd41659524fd9fd32 | [
"MIT"
] | 1 | 2019-10-11T22:30:53.000Z | 2019-10-11T22:30:53.000Z | #!/usr/bin/env python3
# This file is covered by the LICENSE file in the root of this project.
import zipfile
import argparse
import os
class ValidationException(Exception):
pass
if __name__ == "__main__":
parser = argparse.ArgumentParser(
description="Validate a submission zip file needed to evaluate on... | 39.90099 | 390 | 0.657072 | 468 | 4,030 | 5.553419 | 0.34188 | 0.01616 | 0.024625 | 0.02424 | 0.168911 | 0.131204 | 0.112351 | 0.112351 | 0.112351 | 0.112351 | 0 | 0.017572 | 0.223325 | 4,030 | 100 | 391 | 40.3 | 0.81278 | 0.028288 | 0 | 0.157143 | 0 | 0.028571 | 0.300281 | 0.017378 | 0 | 0 | 0 | 0.01 | 0 | 1 | 0 | false | 0.014286 | 0.042857 | 0 | 0.057143 | 0.128571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3a5131242de5ad9d1dfff7bb93f08796a6b50ce | 5,231 | py | Python | sheldon_behaviors/ship_behavior/scripts/behavior_service.py | shinselrobots/sheldon | 911148cd82d28e37aebc5e083fbf830d1c9768ab | [
"Apache-2.0"
] | 1 | 2021-01-02T18:17:52.000Z | 2021-01-02T18:17:52.000Z | sheldon_behaviors/ship_behavior/scripts/behavior_service.py | shinselrobots/sheldon | 911148cd82d28e37aebc5e083fbf830d1c9768ab | [
"Apache-2.0"
] | null | null | null | sheldon_behaviors/ship_behavior/scripts/behavior_service.py | shinselrobots/sheldon | 911148cd82d28e37aebc5e083fbf830d1c9768ab | [
"Apache-2.0"
] | 4 | 2017-09-16T03:56:01.000Z | 2018-09-19T02:15:57.000Z | #! /usr/bin/env python
# License: Apache 2.0. See LICENSE file in root directory.
#
# For simple behaviors that can run syncronously, Python provides
# a simple way to implement this. Add the work of your behavior
# in the execute_cb callback
#
import rospy
import actionlib
import behavior_common.msg
import time
imp... | 36.326389 | 150 | 0.676161 | 689 | 5,231 | 4.889695 | 0.312046 | 0.039181 | 0.029089 | 0.020778 | 0.236272 | 0.128822 | 0.051647 | 0.027308 | 0.027308 | 0 | 0 | 0.01771 | 0.233607 | 5,231 | 143 | 151 | 36.58042 | 0.822649 | 0.253106 | 0 | 0.05 | 0 | 0 | 0.135212 | 0.019648 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.2 | 0 | 0.2625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3a55d32d7c5a654a176400a4c92296634a021f4 | 7,831 | py | Python | src/core/utils/bert_utils.py | joe3d1998/GraphFlow | 8a751e4fc69a1e0c06ded23b7d1096f3161931a1 | [
"Apache-2.0"
] | 30 | 2019-08-18T21:56:20.000Z | 2022-03-18T10:04:02.000Z | src/core/utils/bert_utils.py | joe3d1998/GraphFlow | 8a751e4fc69a1e0c06ded23b7d1096f3161931a1 | [
"Apache-2.0"
] | 2 | 2019-11-12T02:28:36.000Z | 2022-03-20T05:27:05.000Z | src/core/utils/bert_utils.py | joe3d1998/GraphFlow | 8a751e4fc69a1e0c06ded23b7d1096f3161931a1 | [
"Apache-2.0"
] | 11 | 2020-02-17T02:47:26.000Z | 2021-09-05T05:37:29.000Z | from collections import defaultdict, namedtuple
import torch
# When using the sliding window trick for long sequences,
# we take the representation of each token with maximal context.
# Take average of the BERT embeddings of these BPE sub-tokens
# as the embedding for the word.
# Take *weighted* average of the word ... | 38.960199 | 99 | 0.70106 | 1,207 | 7,831 | 4.236951 | 0.175642 | 0.041064 | 0.035198 | 0.036566 | 0.465585 | 0.413766 | 0.37544 | 0.356864 | 0.309738 | 0.295268 | 0 | 0.007211 | 0.220789 | 7,831 | 200 | 100 | 39.155 | 0.830875 | 0.240838 | 0 | 0.240602 | 0 | 0 | 0.004758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037594 | false | 0 | 0.015038 | 0 | 0.090226 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3a9a5af8690681698031e1a127157f06eef690e | 3,850 | py | Python | fronteira_eficiente2.py | samuelbarrosm/Python-for-finances- | e1fd118b05f6efa2c4c72e88c5b2bf028d120c45 | [
"MIT"
] | null | null | null | fronteira_eficiente2.py | samuelbarrosm/Python-for-finances- | e1fd118b05f6efa2c4c72e88c5b2bf028d120c45 | [
"MIT"
] | null | null | null | fronteira_eficiente2.py | samuelbarrosm/Python-for-finances- | e1fd118b05f6efa2c4c72e88c5b2bf028d120c45 | [
"MIT"
] | null | null | null | #Esse codigo é utilizado para calcular a fronteira eficiente de um portfolio
#Esse codigo tem como objetivo avaliar a eficiencia das de um portfolio
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from pandas_datareader import data as wb
assets = ['PG', '^GSPC']
pf_data = pd.Dat... | 36.666667 | 127 | 0.744416 | 588 | 3,850 | 4.809524 | 0.396259 | 0.049505 | 0.021216 | 0.021216 | 0.153819 | 0.153819 | 0.153819 | 0.13331 | 0.099364 | 0.099364 | 0 | 0.019969 | 0.167532 | 3,850 | 104 | 128 | 37.019231 | 0.862403 | 0.525714 | 0 | 0.1 | 0 | 0 | 0.081017 | 0 | 0 | 0 | 0 | 0.009615 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3aa8e55cd8c639086caeeedaf341d4860bf12f5 | 1,657 | py | Python | cvtData.py | leduchust/ST-GCN_HAR | 778e7931b24eaa7d78b5a61216bb9a7a2ad6ab9e | [
"MIT"
] | null | null | null | cvtData.py | leduchust/ST-GCN_HAR | 778e7931b24eaa7d78b5a61216bb9a7a2ad6ab9e | [
"MIT"
] | null | null | null | cvtData.py | leduchust/ST-GCN_HAR | 778e7931b24eaa7d78b5a61216bb9a7a2ad6ab9e | [
"MIT"
] | null | null | null | import os
import numpy as np
import tqdm as tqdm
def cvt_Data():
if not os.path.exists('./fphab_data/newData'):
os.mkdir('./fphab_data/newData')
#for i in range(1,7):
# os.mkdir('./fphab_data/newData/Subject_'+str(i))
subject_list=os.listdir('./fphab_dat... | 36.021739 | 116 | 0.388654 | 172 | 1,657 | 3.610465 | 0.337209 | 0.115942 | 0.10306 | 0.086957 | 0.222222 | 0.122383 | 0 | 0 | 0 | 0 | 0 | 0.013793 | 0.474955 | 1,657 | 46 | 117 | 36.021739 | 0.7 | 0.119493 | 0 | 0 | 0 | 0 | 0.118608 | 0.014915 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.103448 | 0 | 0.137931 | 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 |
e3aac0da41e8ebd49fe3952b0e96fb25ef7523c4 | 2,412 | py | Python | src/zope/app/applicationcontrol/browser/runtimeinfo.py | zopefoundation/zope.app.applicationcontrol | de7b160dde9ce01f65af5412a984065c5a1a9284 | [
"ZPL-2.1"
] | null | null | null | src/zope/app/applicationcontrol/browser/runtimeinfo.py | zopefoundation/zope.app.applicationcontrol | de7b160dde9ce01f65af5412a984065c5a1a9284 | [
"ZPL-2.1"
] | 4 | 2017-05-02T18:43:09.000Z | 2021-09-20T06:29:14.000Z | src/zope/app/applicationcontrol/browser/runtimeinfo.py | zopefoundation/zope.app.applicationcontrol | de7b160dde9ce01f65af5412a984065c5a1a9284 | [
"ZPL-2.1"
] | 1 | 2015-04-03T07:25:44.000Z | 2015-04-03T07:25:44.000Z | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# TH... | 33.5 | 78 | 0.563018 | 223 | 2,412 | 6.008969 | 0.556054 | 0.033582 | 0.020896 | 0.043284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013769 | 0.277363 | 2,412 | 71 | 79 | 33.971831 | 0.75502 | 0.240464 | 0 | 0.086957 | 0 | 0 | 0.14484 | 0.018105 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0.021739 | 0.043478 | 0 | 0.23913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3af0c54fc348474f9b9d9f22f0f2e2bbfffd5d0 | 4,049 | py | Python | Dragon/python/dragon/vm/tensorflow/contrib/learn/datasets/base.py | neopenx/Dragon | 0e639a7319035ddc81918bd3df059230436ee0a1 | [
"BSD-2-Clause"
] | 212 | 2015-07-05T07:57:17.000Z | 2022-02-27T01:55:35.000Z | Dragon/python/dragon/vm/tensorflow/contrib/learn/datasets/base.py | neopenx/Dragon | 0e639a7319035ddc81918bd3df059230436ee0a1 | [
"BSD-2-Clause"
] | 6 | 2016-07-07T14:31:56.000Z | 2017-12-12T02:21:15.000Z | Dragon/python/dragon/vm/tensorflow/contrib/learn/datasets/base.py | neopenx/Dragon | 0e639a7319035ddc81918bd3df059230436ee0a1 | [
"BSD-2-Clause"
] | 71 | 2016-03-24T09:02:41.000Z | 2021-06-03T01:52:41.000Z | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 32.918699 | 80 | 0.637935 | 511 | 4,049 | 4.945205 | 0.405088 | 0.030471 | 0.01108 | 0.012663 | 0.022161 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012004 | 0.259323 | 4,049 | 122 | 81 | 33.188525 | 0.83061 | 0.43838 | 0 | 0.034483 | 0 | 0 | 0.058496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12069 | false | 0 | 0.155172 | 0.034483 | 0.396552 | 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 |
e3b045a473bd87ba50f0bc065652bd367fcdfb8d | 19,208 | py | Python | iSearch/isearch.py | Twilightgo/iSearch | 600398dc22c07ef1211209769f9fda4d2c1151d7 | [
"MIT"
] | null | null | null | iSearch/isearch.py | Twilightgo/iSearch | 600398dc22c07ef1211209769f9fda4d2c1151d7 | [
"MIT"
] | null | null | null | iSearch/isearch.py | Twilightgo/iSearch | 600398dc22c07ef1211209769f9fda4d2c1151d7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import sys
import argparse
import os
import re
import sqlite3
import requests
import bs4
from termcolor import colored
# Python2 compatibility
if sys.version_info[0] == 2:
reload(sys)
sys.setdefaultencoding('utf-8')
# Default data... | 32.834188 | 112 | 0.508434 | 2,402 | 19,208 | 4.002498 | 0.137386 | 0.032453 | 0.031829 | 0.024756 | 0.470252 | 0.425213 | 0.359892 | 0.336072 | 0.319222 | 0.309861 | 0 | 0.018618 | 0.323303 | 19,208 | 584 | 113 | 32.890411 | 0.719649 | 0.053259 | 0 | 0.402626 | 0 | 0.039387 | 0.184126 | 0.003816 | 0.006565 | 0 | 0 | 0 | 0 | 1 | 0.030635 | false | 0.002188 | 0.019694 | 0 | 0.054705 | 0.131291 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3b1ad3f8a41b03310d872dbf885d93f88101fcf | 4,925 | py | Python | models/gcn.py | Louis-udm/Word-Grounded-Graph-Convolutional-Network | 4c90bff0ec8bcdd8994154eead0efb5a3caefca7 | [
"MIT"
] | null | null | null | models/gcn.py | Louis-udm/Word-Grounded-Graph-Convolutional-Network | 4c90bff0ec8bcdd8994154eead0efb5a3caefca7 | [
"MIT"
] | null | null | null | models/gcn.py | Louis-udm/Word-Grounded-Graph-Convolutional-Network | 4c90bff0ec8bcdd8994154eead0efb5a3caefca7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Title: GCN models
Description:
The original Graph convolutional network model and GCN layer.
Refer to: https://arxiv.org/abs/1609.02907
"""
# =======================================
# @author Zhibin.Lu
# @email zhibin.lu@umontreal.ca
# ==============================... | 24.502488 | 72 | 0.520406 | 560 | 4,925 | 4.401786 | 0.214286 | 0.045436 | 0.026775 | 0.029209 | 0.602028 | 0.515213 | 0.460852 | 0.424341 | 0.424341 | 0.331846 | 0 | 0.011494 | 0.364061 | 4,925 | 200 | 73 | 24.625 | 0.775543 | 0.156954 | 0 | 0.7 | 0 | 0 | 0.013041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0 | 0.053846 | 0 | 0.146154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3b1ba519d604af495caccc117a36b3a9bff6079 | 2,513 | py | Python | tabledefinition/generate_table_definitions_for_solana.py | blockchain-etl/evmchain-etl-table-definition-cli | 033d7e8ddc33f47378547a304b2688df3a0a3746 | [
"MIT"
] | 1 | 2022-03-04T11:24:31.000Z | 2022-03-04T11:24:31.000Z | tabledefinition/generate_table_definitions_for_solana.py | blockchain-etl/evmchain-etl-table-definition-cli | 033d7e8ddc33f47378547a304b2688df3a0a3746 | [
"MIT"
] | null | null | null | tabledefinition/generate_table_definitions_for_solana.py | blockchain-etl/evmchain-etl-table-definition-cli | 033d7e8ddc33f47378547a304b2688df3a0a3746 | [
"MIT"
] | null | null | null | SOLIDITY_TO_BQ_TYPES = {
'address': 'STRING',
}
table_description = ''
def abi_to_table_definitions_for_solana(
abi,
dataset_name,
contract_name,
contract_address=None,
include_functions=False
):
result = {}
for a in abi.get('events') if abi.get('events') else []:
... | 32.217949 | 119 | 0.578591 | 277 | 2,513 | 4.949458 | 0.216607 | 0.102115 | 0.091904 | 0.112327 | 0.356674 | 0.284464 | 0.284464 | 0.284464 | 0.191101 | 0.191101 | 0 | 0 | 0.304417 | 2,513 | 77 | 120 | 32.636364 | 0.784325 | 0.024274 | 0 | 0.181818 | 0 | 0 | 0.139649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0 | 0.015152 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3b286c18d71e706ee97d4e448587e741b1515a4 | 587 | py | Python | number-guessing-game.py | DataSciPyCodes/Python-Projects | 0c62477f2177d6ec7431875da6aa53778a790bf6 | [
"MIT"
] | null | null | null | number-guessing-game.py | DataSciPyCodes/Python-Projects | 0c62477f2177d6ec7431875da6aa53778a790bf6 | [
"MIT"
] | null | null | null | number-guessing-game.py | DataSciPyCodes/Python-Projects | 0c62477f2177d6ec7431875da6aa53778a790bf6 | [
"MIT"
] | null | null | null | #Method-1 guess the number game
import random
number = random.randint(1,10)
guess = 0
count = 0
print("You can exit the game anytime. Just enter 'exit'.")
while guess != number and guess != "exit":
guess = input("Guess a number between 1 to 10 :- ")
if guess == "exit":
print("Closing the game...")
... | 23.48 | 58 | 0.577513 | 79 | 587 | 4.291139 | 0.506329 | 0.097345 | 0.094395 | 0.112094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023981 | 0.289608 | 587 | 24 | 59 | 24.458333 | 0.788969 | 0.051107 | 0 | 0 | 0 | 0 | 0.318345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.315789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3b312bcfe15753efff73463e7b650e5bc126303 | 10,014 | py | Python | docking/dock_and_equilibrate.py | proteneer/timemachine | feee9f24adcb533ab9e1c15a3f4fa4dcc9d9a701 | [
"Apache-2.0"
] | 91 | 2019-01-05T17:03:04.000Z | 2022-03-11T09:08:46.000Z | docking/dock_and_equilibrate.py | proteneer/timemachine | feee9f24adcb533ab9e1c15a3f4fa4dcc9d9a701 | [
"Apache-2.0"
] | 474 | 2019-01-07T14:33:15.000Z | 2022-03-31T19:15:12.000Z | docking/dock_and_equilibrate.py | proteneer/timemachine | feee9f24adcb533ab9e1c15a3f4fa4dcc9d9a701 | [
"Apache-2.0"
] | 12 | 2019-01-13T00:40:36.000Z | 2022-01-14T10:23:54.000Z | """Solvates a host, inserts guest(s) into solvated host, equilibrates
"""
import os
import time
import tempfile
import numpy as np
from rdkit import Chem
from md import builders, minimizer
from fe import pdb_writer, free_energy
from ff import Forcefield
from ff.handlers.deserialize import deserialize_handlers
from t... | 33.049505 | 105 | 0.603056 | 1,227 | 10,014 | 4.677262 | 0.264059 | 0.039728 | 0.023698 | 0.012546 | 0.208747 | 0.139746 | 0.118836 | 0.11326 | 0.096533 | 0.096533 | 0 | 0.017693 | 0.305772 | 10,014 | 302 | 106 | 33.15894 | 0.807825 | 0.178051 | 0 | 0.224215 | 0 | 0 | 0.139331 | 0.019005 | 0 | 0 | 0 | 0.003311 | 0 | 1 | 0.008969 | false | 0 | 0.053812 | 0 | 0.06278 | 0.035874 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3b8e41843e13fa56ad91af90735c93477b63c0f | 2,940 | py | Python | lib/pyexcel/pyexcel/sources/file_source_output.py | logice/QQ-Groups-Spider | a161282c6832ed40183905e96205edb5a57e8a05 | [
"MIT"
] | null | null | null | lib/pyexcel/pyexcel/sources/file_source_output.py | logice/QQ-Groups-Spider | a161282c6832ed40183905e96205edb5a57e8a05 | [
"MIT"
] | null | null | null | lib/pyexcel/pyexcel/sources/file_source_output.py | logice/QQ-Groups-Spider | a161282c6832ed40183905e96205edb5a57e8a05 | [
"MIT"
] | 1 | 2021-04-12T07:48:42.000Z | 2021-04-12T07:48:42.000Z | """
pyexcel.sources.file
~~~~~~~~~~~~~~~~~~~
Representation of file sources
:copyright: (c) 2015-2016 by Onni Software Ltd.
:license: New BSD License
"""
from pyexcel import params
from pyexcel.factory import FileSource
from pyexcel.sources.rendererfactory import RendererFactory
from... | 27.735849 | 76 | 0.618707 | 314 | 2,940 | 5.605096 | 0.286624 | 0.040909 | 0.027273 | 0.036364 | 0.3 | 0.213636 | 0.213636 | 0.186364 | 0.186364 | 0.186364 | 0 | 0.004308 | 0.289456 | 2,940 | 105 | 77 | 28 | 0.8382 | 0.129252 | 0 | 0.290323 | 0 | 0 | 0.000419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0.016129 | 0.096774 | 0 | 0.435484 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3b964ad8299bef44ea12f1a518924e1fbba8289 | 920 | py | Python | setup.py | vmyrgiotis/MDF_DALEC_Grass | fdd168ce7845c925f8e95fc792e2204b440cca2e | [
"CC0-1.0"
] | null | null | null | setup.py | vmyrgiotis/MDF_DALEC_Grass | fdd168ce7845c925f8e95fc792e2204b440cca2e | [
"CC0-1.0"
] | null | null | null | setup.py | vmyrgiotis/MDF_DALEC_Grass | fdd168ce7845c925f8e95fc792e2204b440cca2e | [
"CC0-1.0"
] | null | null | null | import pathlib
from setuptools import setup, find_packages
HERE = pathlib.Path(__file__).parent
VERSION = '0.1.0'
PACKAGE_NAME = 'MDF_DALEC_GRASS'
AUTHOR = 'Vasilis Myrgiotis'
AUTHOR_EMAIL = 'v.myrgioti@ed.ac.uk'
URL = 'https://github.com/vmyrgiotis/MDF_DALEC_GRASS'
LICENSE = 'MIT'
DESCRIPTION = 'A Bayesian model-da... | 28.75 | 117 | 0.773913 | 119 | 920 | 5.731092 | 0.605042 | 0.087977 | 0.11437 | 0.087977 | 0.082111 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006053 | 0.102174 | 920 | 31 | 118 | 29.677419 | 0.819613 | 0 | 0 | 0 | 0 | 0 | 0.31413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3ba2aa1467f1469e9c62d6360d6ba267f4c6b98 | 752 | py | Python | setup.py | guma44/croo | 5cddee4c3163698cd9f265638e76671fef415baa | [
"MIT"
] | null | null | null | setup.py | guma44/croo | 5cddee4c3163698cd9f265638e76671fef415baa | [
"MIT"
] | null | null | null | setup.py | guma44/croo | 5cddee4c3163698cd9f265638e76671fef415baa | [
"MIT"
] | null | null | null | import setuptools
from croo import croo_args
with open('README.md', 'r') as fh:
long_description = fh.read()
setuptools.setup(
name='croo',
version=croo_args.__version__,
scripts=['bin/croo'],
python_requires='>3.4.1',
author='Jin Lee',
author_email='leepc12@gmail.com',
description='CR... | 28.923077 | 68 | 0.666223 | 87 | 752 | 5.574713 | 0.712644 | 0.123711 | 0.078351 | 0.123711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009788 | 0.18484 | 752 | 25 | 69 | 30.08 | 0.781403 | 0 | 0 | 0 | 0 | 0 | 0.329787 | 0 | 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 |
e3bc8d2fb6f6907f9468220745bf4d9d7f0ccd81 | 5,142 | py | Python | source/estimators/estimator.py | mingweima/rldsge | ad40af982f455b65c5f407f6aa082e4caf7322a6 | [
"MIT"
] | null | null | null | source/estimators/estimator.py | mingweima/rldsge | ad40af982f455b65c5f407f6aa082e4caf7322a6 | [
"MIT"
] | null | null | null | source/estimators/estimator.py | mingweima/rldsge | ad40af982f455b65c5f407f6aa082e4caf7322a6 | [
"MIT"
] | null | null | null | from typing import Dict
import numpy as np
from ..envs.env import StructuralModel
from ..utils.lik_func import *
from ..utils.useful_class import ParameterGrid
class Estimator(ABC):
"""An Estimator takes in a (trained) solver and relevant params
and outputs estimated structural params
"""
def __... | 42.495868 | 112 | 0.632828 | 666 | 5,142 | 4.653153 | 0.234234 | 0.121007 | 0.091965 | 0.046789 | 0.198128 | 0.133914 | 0.112617 | 0.101 | 0.101 | 0.063246 | 0 | 0.008947 | 0.260988 | 5,142 | 120 | 113 | 42.85 | 0.806579 | 0.181252 | 0 | 0.068966 | 0 | 0 | 0.06335 | 0.014806 | 0 | 0 | 0 | 0.008333 | 0.057471 | 1 | 0.08046 | false | 0 | 0.057471 | 0 | 0.218391 | 0.011494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3bd47079e9b2036b424cb4e9c92e2174a230006 | 1,269 | py | Python | Algorithm.Python/OptionDataNullReferenceRegressionAlgorithm.py | BlackBoxAM/Lean | 5ea9f04b104d27f0fcfe3a383a3a60ca12206d99 | [
"Apache-2.0"
] | 6,580 | 2015-01-12T16:48:44.000Z | 2022-03-31T22:05:09.000Z | Algorithm.Python/OptionDataNullReferenceRegressionAlgorithm.py | BlackBoxAM/Lean | 5ea9f04b104d27f0fcfe3a383a3a60ca12206d99 | [
"Apache-2.0"
] | 3,392 | 2015-01-12T17:44:07.000Z | 2022-03-30T20:34:03.000Z | Algorithm.Python/OptionDataNullReferenceRegressionAlgorithm.py | BlackBoxAM/Lean | 5ea9f04b104d27f0fcfe3a383a3a60ca12206d99 | [
"Apache-2.0"
] | 3,354 | 2015-01-12T16:58:31.000Z | 2022-03-31T00:56:03.000Z | # QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
#
# 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 Licen... | 37.323529 | 98 | 0.735225 | 164 | 1,269 | 5.689024 | 0.682927 | 0.064309 | 0.027867 | 0.034298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041945 | 0.173365 | 1,269 | 33 | 99 | 38.454545 | 0.847474 | 0.588652 | 0 | 0 | 0 | 0 | 0.016064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.090909 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3bda12509b429c895c643f26b992aa471887764 | 1,371 | py | Python | examples/sharedlinks/sharedlinks-backend/links/models.py | gcbirzan/django-rest-registration | 1a9da937c283d03d1fce1a68322a702e14692c79 | [
"MIT"
] | 329 | 2018-05-09T13:10:37.000Z | 2022-03-25T11:05:20.000Z | examples/sharedlinks/sharedlinks-backend/links/models.py | gcbirzan/django-rest-registration | 1a9da937c283d03d1fce1a68322a702e14692c79 | [
"MIT"
] | 167 | 2018-04-21T00:28:17.000Z | 2022-03-30T09:24:52.000Z | examples/sharedlinks/sharedlinks-backend/links/models.py | gcbirzan/django-rest-registration | 1a9da937c283d03d1fce1a68322a702e14692c79 | [
"MIT"
] | 97 | 2018-05-09T14:17:59.000Z | 2022-02-23T08:46:30.000Z | from django.db import models
from django.contrib.auth.models import User
class Link(models.Model):
url = models.URLField()
title = models.CharField(max_length=255)
reporter = models.ForeignKey(
User,
on_delete=models.SET_NULL,
related_name='reported_links',
null=True,
... | 23.637931 | 68 | 0.592268 | 154 | 1,371 | 5.097403 | 0.376623 | 0.061147 | 0.053503 | 0.056051 | 0.208917 | 0.208917 | 0.132484 | 0.132484 | 0.132484 | 0.132484 | 0 | 0.003096 | 0.293217 | 1,371 | 57 | 69 | 24.052632 | 0.807018 | 0 | 0 | 0.26087 | 0 | 0 | 0.090445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0.065217 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3bdcff4bd778ceff3ed0e2ca2a1821228f999c6 | 7,106 | py | Python | hpc_rll/rl_utils/ppo.py | mingzhang96/DI-hpc | 5431c283a91b77df7c6a86fb0affa60099d4bb31 | [
"Apache-2.0"
] | 64 | 2021-07-08T02:18:08.000Z | 2022-02-28T09:52:57.000Z | hpc_rll/rl_utils/ppo.py | mingzhang96/DI-hpc | 5431c283a91b77df7c6a86fb0affa60099d4bb31 | [
"Apache-2.0"
] | null | null | null | hpc_rll/rl_utils/ppo.py | mingzhang96/DI-hpc | 5431c283a91b77df7c6a86fb0affa60099d4bb31 | [
"Apache-2.0"
] | 3 | 2021-07-14T08:58:45.000Z | 2022-03-30T12:36:46.000Z | import torch
import torch.nn.functional as F
from typing import Optional
from collections import namedtuple
import hpc_rl_utils
# hpc version only support cuda
hpc_ppo_loss = namedtuple('hpc_ppo_loss', ['policy_loss', 'value_loss', 'entropy_loss'])
hpc_ppo_info = namedtuple('hpc_ppo_info', ['approx_kl', 'clipfrac'])
... | 47.373333 | 192 | 0.659161 | 981 | 7,106 | 4.466871 | 0.181448 | 0.069831 | 0.057508 | 0.073026 | 0.452305 | 0.415792 | 0.370151 | 0.323825 | 0.298266 | 0.239845 | 0 | 0.007739 | 0.236279 | 7,106 | 149 | 193 | 47.691275 | 0.799705 | 0.245567 | 0 | 0.069767 | 0 | 0 | 0.075805 | 0.012962 | 0 | 0 | 0 | 0 | 0.104651 | 1 | 0.046512 | false | 0 | 0.05814 | 0 | 0.162791 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3be7a53e508b992ad117b38ccc98afaeeef9017 | 1,069 | py | Python | src/monitoring_service/metrics.py | netcriptus/raiden-services | 3955d91852c616f6ba0a3a979757edbd852b2c6d | [
"MIT"
] | 13 | 2019-02-07T23:23:33.000Z | 2021-07-03T16:00:53.000Z | src/monitoring_service/metrics.py | netcriptus/raiden-services | 3955d91852c616f6ba0a3a979757edbd852b2c6d | [
"MIT"
] | 1,095 | 2019-01-21T09:30:57.000Z | 2022-03-25T05:13:30.000Z | src/monitoring_service/metrics.py | netcriptus/raiden-services | 3955d91852c616f6ba0a3a979757edbd852b2c6d | [
"MIT"
] | 18 | 2019-01-21T09:17:19.000Z | 2022-02-23T15:53:17.000Z | from prometheus_client import Counter
from raiden.utils.typing import TokenAmount
from raiden_libs.metrics import ( # noqa: F401, pylint: disable=unused-import
ERRORS_LOGGED,
EVENTS_EXCEPTIONS_RAISED,
EVENTS_PROCESSING_TIME,
MESSAGES_EXCEPTIONS_RAISED,
MESSAGES_PROCESSING_TIME,
REGISTRY,
E... | 25.452381 | 78 | 0.750234 | 129 | 1,069 | 5.883721 | 0.449612 | 0.142292 | 0.051383 | 0.071146 | 0.210804 | 0.210804 | 0.131752 | 0.131752 | 0 | 0 | 0 | 0.003367 | 0.166511 | 1,069 | 41 | 79 | 26.073171 | 0.848485 | 0.038354 | 0 | 0.121212 | 0 | 0 | 0.165692 | 0.073099 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.090909 | 0 | 0.212121 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3be9c37370787ab104874a6e05f24ddb94436e5 | 9,774 | py | Python | helper/fetch_funcdata.py | SysSec-KAIST/FirmKit | 6d8408e1336ed0b5d42d9722e0918888b3f3b424 | [
"MIT"
] | 3 | 2022-01-05T22:04:09.000Z | 2022-03-28T07:01:48.000Z | helper/fetch_funcdata.py | SysSec-KAIST/FirmKit | 6d8408e1336ed0b5d42d9722e0918888b3f3b424 | [
"MIT"
] | null | null | null | helper/fetch_funcdata.py | SysSec-KAIST/FirmKit | 6d8408e1336ed0b5d42d9722e0918888b3f3b424 | [
"MIT"
] | null | null | null | # modified from TikNib/tiknib/ida/fetch_funcdata_v7.5.py
import os
import sys
import string
from hashlib import sha1
from collections import defaultdict
import time
import pprint as pp
import idautils
import idc
import idaapi
import ida_pro
import ida_nalt
import ida_bytes
sys.path.append(os.path.... | 34.294737 | 89 | 0.561797 | 1,195 | 9,774 | 4.333054 | 0.198326 | 0.029355 | 0.021244 | 0.019699 | 0.219003 | 0.106798 | 0.098687 | 0.080919 | 0.074546 | 0.045191 | 0 | 0.004974 | 0.341825 | 9,774 | 284 | 90 | 34.415493 | 0.799938 | 0.121752 | 0 | 0.074074 | 0 | 0 | 0.038341 | 0 | 0 | 0 | 0 | 0.003521 | 0 | 1 | 0.032407 | false | 0 | 0.083333 | 0 | 0.148148 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3c455dcd759b47e6ff022d0f28b6d8b03f6c49a | 10,382 | py | Python | src/org_setup/resources/organizations.py | gilyas/aws-control-tower-org-setup-sample | 65c1a1a0c7b7bb362dff1924f38f63bd8c3a8e41 | [
"MIT-0"
] | null | null | null | src/org_setup/resources/organizations.py | gilyas/aws-control-tower-org-setup-sample | 65c1a1a0c7b7bb362dff1924f38f63bd8c3a8e41 | [
"MIT-0"
] | null | null | null | src/org_setup/resources/organizations.py | gilyas/aws-control-tower-org-setup-sample | 65c1a1a0c7b7bb362dff1924f38f63bd8c3a8e41 | [
"MIT-0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: MIT-0
*
* 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... | 37.345324 | 119 | 0.573974 | 1,092 | 10,382 | 5.313187 | 0.203297 | 0.037918 | 0.039814 | 0.031368 | 0.389176 | 0.323509 | 0.250086 | 0.185798 | 0.131334 | 0.115822 | 0 | 0.000868 | 0.334232 | 10,382 | 277 | 120 | 37.480144 | 0.838542 | 0.141784 | 0 | 0.284211 | 0 | 0 | 0.220745 | 0.04105 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063158 | false | 0 | 0.042105 | 0 | 0.173684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3c4a465fcdd23d8bc979d0237347d3db4337947 | 2,095 | py | Python | clint/textui/core.py | mpmman/clint | 9d3693d644b8587d985972b6075d970096f6439e | [
"0BSD"
] | 1,230 | 2015-01-03T05:39:25.000Z | 2020-02-18T12:36:03.000Z | clint/textui/core.py | not-kennethreitz/clint | 9d3693d644b8587d985972b6075d970096f6439e | [
"0BSD"
] | 50 | 2015-01-06T17:58:20.000Z | 2018-03-19T13:25:22.000Z | clint/textui/core.py | not-kennethreitz/clint | 9d3693d644b8587d985972b6075d970096f6439e | [
"0BSD"
] | 153 | 2015-01-03T03:56:25.000Z | 2020-02-13T20:59:03.000Z | # -*- coding: utf-8 -*-
"""
clint.textui.core
~~~~~~~~~~~~~~~~~
Core TextUI functionality for Puts/Indent/Writer.
"""
from __future__ import absolute_import
import sys
from contextlib import contextmanager
from .formatters import max_width, min_width, _get_max_width_context
from .cols import columns
from ..util... | 21.822917 | 74 | 0.602864 | 253 | 2,095 | 4.794466 | 0.332016 | 0.052762 | 0.027205 | 0.026381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005041 | 0.242482 | 2,095 | 95 | 75 | 22.052632 | 0.759294 | 0.190931 | 0 | 0.074074 | 0 | 0 | 0.047273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.240741 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3c99e6c753a7603c000c4cebf8d2e0f312189b5 | 901 | py | Python | data/colors-extractor.py | imlolman/Flat-UI-Colors-Chrome-App | d12010360dfeb1d38e8923dbe0fa5c51640b7314 | [
"BSD-Source-Code"
] | 1 | 2021-04-23T13:33:16.000Z | 2021-04-23T13:33:16.000Z | data/colors-extractor.py | imlolman/Flat-UI-Colors-Chrome-App | d12010360dfeb1d38e8923dbe0fa5c51640b7314 | [
"BSD-Source-Code"
] | null | null | null | data/colors-extractor.py | imlolman/Flat-UI-Colors-Chrome-App | d12010360dfeb1d38e8923dbe0fa5c51640b7314 | [
"BSD-Source-Code"
] | null | null | null | from bs4 import BeautifulSoup
import json
source = open('html-source.html', encoding="utf8").read()
soup = BeautifulSoup(source, 'html.parser')
# Prittified to look and understand the structure of Code
# prittified = soup.prettify().encode("utf-8")
# open('prettified.html', 'wb').write(prittified)
color_sets = []
... | 32.178571 | 71 | 0.627081 | 114 | 901 | 4.894737 | 0.526316 | 0.064516 | 0.050179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005291 | 0.160932 | 901 | 27 | 72 | 33.37037 | 0.732804 | 0.164262 | 0 | 0 | 0 | 0 | 0.285714 | 0.029373 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 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 |
e3ca5e822898bbe283aa33628cdf89af94b959cf | 2,005 | py | Python | preprocessing.py | Y-greatigr/Covid19_Model | 30fc0af1ac6c7f68bf072607ee0db194f8c8093a | [
"MIT"
] | null | null | null | preprocessing.py | Y-greatigr/Covid19_Model | 30fc0af1ac6c7f68bf072607ee0db194f8c8093a | [
"MIT"
] | null | null | null | preprocessing.py | Y-greatigr/Covid19_Model | 30fc0af1ac6c7f68bf072607ee0db194f8c8093a | [
"MIT"
] | null | null | null | # 데이터를 가져온다.
# 학습 직전의 데이터를 가공하는 역할을 맡는다.
import numpy as np
import os
import options as opt
import datetime
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import Normalizer
import joblib
def date_to_number(date):
# 글자로 표현된 날짜를 숫자로 바꾼다.
# ex) 'Dec/1' -> '12/1'
... | 28.642857 | 98 | 0.551122 | 313 | 2,005 | 3.450479 | 0.399361 | 0.011111 | 0.033333 | 0.024074 | 0.087037 | 0.087037 | 0.055556 | 0.055556 | 0.055556 | 0 | 0 | 0.037139 | 0.274813 | 2,005 | 69 | 99 | 29.057971 | 0.70564 | 0.141646 | 0 | 0.086957 | 0 | 0 | 0.0482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.152174 | 0 | 0.326087 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3cbbca95424c00d63673acba3c061a2db999558 | 644 | py | Python | tests/settings.py | team23/django_t10e | f25e8ac6507e05968d2dbf1003ec4cb9f35b627e | [
"BSD-3-Clause"
] | null | null | null | tests/settings.py | team23/django_t10e | f25e8ac6507e05968d2dbf1003ec4cb9f35b627e | [
"BSD-3-Clause"
] | 2 | 2016-03-22T15:31:38.000Z | 2016-04-05T08:59:39.000Z | tests/settings.py | team23/django_t10e | f25e8ac6507e05968d2dbf1003ec4cb9f35b627e | [
"BSD-3-Clause"
] | null | null | null | import os
import warnings
warnings.simplefilter('always')
test_dir = os.path.dirname(os.path.abspath(__file__))
DATABASES = {
'default': {
'NAME': os.path.join(test_dir, 'db.sqlite'),
'ENGINE': 'django.db.backends.sqlite3',
},
}
USE_I18N = True
USE_L10N = True
INSTALLED_APPS = [
'django.... | 16.512821 | 62 | 0.669255 | 74 | 644 | 5.594595 | 0.635135 | 0.057971 | 0.048309 | 0.067633 | 0.082126 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017013 | 0.178571 | 644 | 38 | 63 | 16.947368 | 0.765595 | 0 | 0 | 0 | 0 | 0 | 0.310559 | 0.208075 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3cc45c059a23522906c2bbff40ce8bfec753ce5 | 3,101 | py | Python | medium/380-Insert Delete GetRandom O(1).py | Davidxswang/leetcode | d554b7f5228f14c646f726ddb91014a612673e06 | [
"Apache-2.0"
] | 2 | 2020-05-08T02:17:17.000Z | 2020-05-17T04:55:56.000Z | medium/380-Insert Delete GetRandom O(1).py | Davidxswang/leetcode | d554b7f5228f14c646f726ddb91014a612673e06 | [
"Apache-2.0"
] | null | null | null | medium/380-Insert Delete GetRandom O(1).py | Davidxswang/leetcode | d554b7f5228f14c646f726ddb91014a612673e06 | [
"Apache-2.0"
] | null | null | null | """
https://leetcode.com/problems/insert-delete-getrandom-o1/
Implement the RandomizedSet class:
bool insert(int val) Inserts an item val into the set if not present. Returns true if the item was not present, false otherwise.
bool remove(int val) Removes an item val from the set if present. Returns true if the item w... | 35.643678 | 215 | 0.660755 | 445 | 3,101 | 4.575281 | 0.314607 | 0.03831 | 0.031925 | 0.041749 | 0.154715 | 0.118861 | 0.118861 | 0.034381 | 0 | 0 | 0 | 0.019417 | 0.236053 | 3,101 | 87 | 216 | 35.643678 | 0.840017 | 0.707514 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.043478 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3cfcef261416f1b7213e8dce2b540fc137ab1f5 | 7,491 | py | Python | smartools/patches/sheets.py | davocarli/smartools | 57e6233efe8da6b34557f99e8d7c24eef77cfd9d | [
"MIT"
] | 2 | 2021-01-01T17:34:02.000Z | 2021-01-07T13:23:00.000Z | smartools/patches/sheets.py | davocarli/smartools | 57e6233efe8da6b34557f99e8d7c24eef77cfd9d | [
"MIT"
] | null | null | null | smartools/patches/sheets.py | davocarli/smartools | 57e6233efe8da6b34557f99e8d7c24eef77cfd9d | [
"MIT"
] | null | null | null | import smartsheet
# from smartsheet.smartsheet import fresh_operation
from .__smartools import SmartoolsObject, access_levels, RequirementError
from .typed_list import SmartoolsTypedList
smart = smartsheet.Smartsheet("INIT")
smart.Sheets
class SmartoolsSheets(smartsheet.sheets.Sheets):
def smartools(self):
return ... | 34.84186 | 165 | 0.707916 | 1,037 | 7,491 | 5.004822 | 0.19865 | 0.037765 | 0.020231 | 0.02659 | 0.484586 | 0.465318 | 0.452408 | 0.425819 | 0.409634 | 0.398073 | 0 | 0.01235 | 0.189294 | 7,491 | 214 | 166 | 35.004673 | 0.842253 | 0.237351 | 0 | 0.567251 | 0 | 0 | 0.133415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0.005848 | 0.035088 | 0.005848 | 0.146199 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3cfd1eba8567bcfd38dbc01b741198461b5c024 | 3,119 | py | Python | modules/persons/application/controllers/v1/phone/create_phone_controller.py | eduardolujan/hexagonal_architecture_django | 8055927cb460bc40f3a2651c01a9d1da696177e8 | [
"BSD-3-Clause"
] | 6 | 2020-08-09T23:41:08.000Z | 2021-03-16T22:05:40.000Z | modules/persons/application/controllers/v1/phone/create_phone_controller.py | eduardolujan/hexagonal_architecture_django | 8055927cb460bc40f3a2651c01a9d1da696177e8 | [
"BSD-3-Clause"
] | 1 | 2020-10-02T02:59:38.000Z | 2020-10-02T02:59:38.000Z | modules/persons/application/controllers/v1/phone/create_phone_controller.py | eduardolujan/hexagonal_architecture_django | 8055927cb460bc40f3a2651c01a9d1da696177e8 | [
"BSD-3-Clause"
] | 2 | 2021-03-16T22:05:43.000Z | 2021-04-30T06:35:25.000Z | # -*- coding: utf-8 -*-
# Infra
from modules.shared.infrastructure.log import LoggerDecorator, PyLoggerService
# Application
from modules.persons.application.create import PhoneCreator
from modules.persons.application.create.command import CreatePhoneCommand
# Domain
from modules.shared.domain.http import status as h... | 36.267442 | 83 | 0.631613 | 314 | 3,119 | 5.964968 | 0.286624 | 0.058729 | 0.042712 | 0.073679 | 0.170849 | 0.092899 | 0.05339 | 0.05339 | 0.05339 | 0 | 0 | 0.003188 | 0.295928 | 3,119 | 85 | 84 | 36.694118 | 0.849727 | 0.022122 | 0 | 0.064516 | 0 | 0 | 0.094358 | 0.016826 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.16129 | 0 | 0.241935 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3cfd93cdd0841ab2b66bf374189846ddaaf186d | 5,651 | py | Python | tests/test_dispatch_sparql_query_model_catalog.py | KnowledgeCaptureAndDiscovery/OBA_sparql | 9c1c28902ab3d6561b3b6a0f8a7d284688d86326 | [
"Apache-2.0"
] | 5 | 2020-05-12T22:00:16.000Z | 2021-11-08T22:16:11.000Z | tests/test_dispatch_sparql_query_model_catalog.py | KnowledgeCaptureAndDiscovery/OBA_sparql | 9c1c28902ab3d6561b3b6a0f8a7d284688d86326 | [
"Apache-2.0"
] | 24 | 2019-09-26T23:20:11.000Z | 2022-01-14T14:19:14.000Z | tests/test_dispatch_sparql_query_model_catalog.py | KnowledgeCaptureAndDiscovery/OBA_sparql | 9c1c28902ab3d6561b3b6a0f8a7d284688d86326 | [
"Apache-2.0"
] | 1 | 2021-12-01T14:56:09.000Z | 2021-12-01T14:56:09.000Z | import json
import logging
import unittest
from typing import Dict
from SPARQLWrapper import JSONLD
from obasparql.query_manager import QueryManager, QUERIES_TYPES, QUERY_TYPE_GET_ONE_USER
from obasparql.utils import generate_uri
from tests.settings import *
logger = logging.getLogger('testing')
graph_user = generat... | 36.694805 | 463 | 0.585914 | 687 | 5,651 | 4.641921 | 0.234352 | 0.070555 | 0.094073 | 0.117592 | 0.540295 | 0.518658 | 0.513013 | 0.467858 | 0.41455 | 0.351521 | 0 | 0.018568 | 0.266148 | 5,651 | 153 | 464 | 36.934641 | 0.750422 | 0.010972 | 0 | 0.401515 | 0 | 0.045455 | 0.548207 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 1 | 0.037879 | false | 0 | 0.060606 | 0 | 0.106061 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3d072cf82df30c9642a147eb2b4e745f7865fe4 | 643 | py | Python | Python/valid-palindrome-ii.py | coolryze/LeetCode | 03876232521a20d32f8fa4e7d6d19cf208739a79 | [
"MIT"
] | 2 | 2018-07-18T01:33:07.000Z | 2018-11-16T03:17:03.000Z | Python/valid-palindrome-ii.py | coolryze/LeetCode | 03876232521a20d32f8fa4e7d6d19cf208739a79 | [
"MIT"
] | null | null | null | Python/valid-palindrome-ii.py | coolryze/LeetCode | 03876232521a20d32f8fa4e7d6d19cf208739a79 | [
"MIT"
] | null | null | null | class Solution:
def validPalindrome(self, s):
"""
:type s: str
:rtype: bool
"""
left = 0
right = len(s)-1
while left < right:
if s[left] != s[right]:
return self.isPalindrome(s, left, right-1) or self.isPalindrome(s, left+1, right)... | 22.964286 | 97 | 0.426128 | 69 | 643 | 3.971014 | 0.333333 | 0.091241 | 0.109489 | 0.116788 | 0.423358 | 0.423358 | 0.423358 | 0.240876 | 0.240876 | 0 | 0 | 0.023529 | 0.471229 | 643 | 27 | 98 | 23.814815 | 0.782353 | 0.03888 | 0 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0 | 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 |
e3d1710232166bf85532195c15df881b2381f79f | 267 | py | Python | tpi/main.py | karajan1001/tpi | c7259a8fea023797058deaf487700645df5fe210 | [
"Apache-2.0"
] | 5 | 2021-09-04T05:02:59.000Z | 2021-09-30T18:23:42.000Z | tpi/main.py | karajan1001/tpi | c7259a8fea023797058deaf487700645df5fe210 | [
"Apache-2.0"
] | 14 | 2021-09-07T15:17:27.000Z | 2021-10-08T01:09:41.000Z | tpi/main.py | karajan1001/tpi | c7259a8fea023797058deaf487700645df5fe210 | [
"Apache-2.0"
] | 6 | 2021-09-06T08:52:04.000Z | 2022-02-07T21:43:48.000Z | import argparse
import logging
log = logging.getLogger(__name__)
def get_main_parser():
parser = argparse.ArgumentParser(prog="tpi")
return parser
def main(argv=None):
parser = get_main_parser()
args = parser.parse_args(argv)
log.debug(args)
| 16.6875 | 48 | 0.715356 | 35 | 267 | 5.2 | 0.542857 | 0.076923 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179775 | 267 | 15 | 49 | 17.8 | 0.83105 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3d176bb8a4ef4588c81f92f7a9d84251d18fd27 | 2,948 | py | Python | catkin_ws/src/easter_egg_hunt/scripts/waypoint_states.py | pdscraml/bunny-hunter | 7d6951f5cbcc46ec31c8b17dc66a6297cc4d7536 | [
"Apache-2.0"
] | null | null | null | catkin_ws/src/easter_egg_hunt/scripts/waypoint_states.py | pdscraml/bunny-hunter | 7d6951f5cbcc46ec31c8b17dc66a6297cc4d7536 | [
"Apache-2.0"
] | null | null | null | catkin_ws/src/easter_egg_hunt/scripts/waypoint_states.py | pdscraml/bunny-hunter | 7d6951f5cbcc46ec31c8b17dc66a6297cc4d7536 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Intro to Robotics - EE5900 - Spring 2017
# Final Project
# Philip (Team Lead)
# Ian
# Akhil
#
# Revision: v1.2
# imports
import rospy
import smach
import smach_ros
import time
import actionlib
from easter_egg_hunt.srv import EnableDiscovery
from m... | 33.123596 | 142 | 0.684871 | 316 | 2,948 | 6.113924 | 0.363924 | 0.036232 | 0.026915 | 0.035197 | 0.227743 | 0.227743 | 0.173913 | 0.120083 | 0.120083 | 0.120083 | 0 | 0.006981 | 0.222524 | 2,948 | 88 | 143 | 33.5 | 0.835951 | 0.078358 | 0 | 0.245614 | 0 | 0 | 0.124954 | 0.032902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140351 | false | 0 | 0.157895 | 0 | 0.45614 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3d5b6ff47680e0205ffd2a767cb7c6b5cf84622 | 1,456 | py | Python | icees_api/features/qgraph_utils.py | xu-hao/ddcr-api | f69c80a84d413078bd36985b6579d2bc32329b8f | [
"MIT"
] | 2 | 2018-10-03T16:58:57.000Z | 2021-10-04T22:10:48.000Z | icees_api/features/qgraph_utils.py | xu-hao/ddcr-api | f69c80a84d413078bd36985b6579d2bc32329b8f | [
"MIT"
] | 195 | 2019-06-26T17:56:33.000Z | 2022-03-30T20:46:05.000Z | icees_api/features/qgraph_utils.py | xu-hao/ddcr-api | f69c80a84d413078bd36985b6579d2bc32329b8f | [
"MIT"
] | 5 | 2018-09-10T19:45:29.000Z | 2020-10-26T17:59:05.000Z | """Query graph utilities."""
import re
from bmt import Toolkit
BMT = Toolkit()
def get_subcategories(category):
"""Get sub-categories, according to the Biolink model."""
return [
descendant.replace("_", "")
for descendant in BMT.get_descendants(category, formatted=True, reflexive=True)
]... | 30.333333 | 87 | 0.632555 | 161 | 1,456 | 5.621118 | 0.385093 | 0.043094 | 0.049724 | 0.046409 | 0.057459 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000896 | 0.233516 | 1,456 | 47 | 88 | 30.978723 | 0.810036 | 0.125 | 0 | 0.125 | 0 | 0 | 0.146635 | 0.036859 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.28125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3d5f08a740b483f1653463909ea2ce9beb6acde | 3,493 | py | Python | toy-evolve/weno.py | IanHawke/toy-evolve | a1490327dd19492e2c0bb0d9c6909abe8b167135 | [
"MIT"
] | null | null | null | toy-evolve/weno.py | IanHawke/toy-evolve | a1490327dd19492e2c0bb0d9c6909abe8b167135 | [
"MIT"
] | null | null | null | toy-evolve/weno.py | IanHawke/toy-evolve | a1490327dd19492e2c0bb0d9c6909abe8b167135 | [
"MIT"
] | null | null | null | import numpy
C_3 = numpy.array([1, 2]) / 3
a_3 = numpy.array([[3, -1], [1, 1]]) / 2
sigma_3 = numpy.array([[[1, 0], [-2, 1]], [[1, 0], [-2, 1]]])
C_5 = numpy.array([1, 6, 3]) / 10
a_5 = numpy.array([[11, -7, 2], [2, 5, -1], [-1, 5, 2]]) / 6
sigma_5 = numpy.array([[[40, 0, 0],
[-124, 100, 0],
... | 32.342593 | 80 | 0.488405 | 574 | 3,493 | 2.857143 | 0.099303 | 0.076829 | 0.073171 | 0.054878 | 0.728659 | 0.69939 | 0.677439 | 0.632927 | 0.632927 | 0.590854 | 0 | 0.067893 | 0.346407 | 3,493 | 108 | 81 | 32.342593 | 0.65046 | 0 | 0 | 0.494737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063158 | false | 0 | 0.010526 | 0 | 0.136842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3d6ee49185d1368971f9d3c026c6acc53822813 | 2,832 | py | Python | tests/test_optimize.py | ricosjp/siml | 8fc07d798cdedd77622c16221ee44a575d36bad0 | [
"Apache-2.0"
] | 11 | 2020-12-28T16:22:33.000Z | 2021-11-14T17:09:27.000Z | tests/test_optimize.py | ricosjp/siml | 8fc07d798cdedd77622c16221ee44a575d36bad0 | [
"Apache-2.0"
] | null | null | null | tests/test_optimize.py | ricosjp/siml | 8fc07d798cdedd77622c16221ee44a575d36bad0 | [
"Apache-2.0"
] | 2 | 2021-04-28T09:41:47.000Z | 2021-07-01T21:18:51.000Z | from pathlib import Path
import shutil
import unittest
import numpy as np
import siml.optimize as optimize
import siml.setting as setting
class TestOptimize(unittest.TestCase):
def test_generate_dict(self):
main_setting = setting.MainSetting.read_settings_yaml(
Path('tests/data/deform/optun... | 35.848101 | 77 | 0.611935 | 319 | 2,832 | 5.163009 | 0.291536 | 0.093503 | 0.061931 | 0.10929 | 0.497268 | 0.462052 | 0.445052 | 0.364299 | 0.364299 | 0.207043 | 0 | 0.024131 | 0.268362 | 2,832 | 78 | 78 | 36.307692 | 0.770753 | 0 | 0 | 0.257576 | 0 | 0 | 0.122881 | 0.029661 | 0 | 0 | 0 | 0 | 0.121212 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3d7620b8331f1df9da2a2562c6b4d96e926fba0 | 1,773 | py | Python | demo.py | natekspencer/vivintpy | ea65b05871b3f13326ba370112357a6696793bf6 | [
"MIT"
] | 3 | 2022-02-10T14:08:59.000Z | 2022-03-30T18:55:25.000Z | demo.py | natekspencer/pyvivint | ea65b05871b3f13326ba370112357a6696793bf6 | [
"MIT"
] | null | null | null | demo.py | natekspencer/pyvivint | ea65b05871b3f13326ba370112357a6696793bf6 | [
"MIT"
] | 2 | 2021-10-31T01:43:26.000Z | 2021-11-21T13:33:55.000Z | import asyncio
import logging
import os
import pubnub
from vivintpy.account import Account
from vivintpy.devices import VivintDevice
from vivintpy.devices.camera import MOTION_DETECTED, Camera
from vivintpy.exceptions import VivintSkyApiMfaRequiredError
pubnub.set_stream_logger(name="pubnub", level=logging.ERROR)
... | 31.105263 | 87 | 0.648054 | 196 | 1,773 | 5.72449 | 0.413265 | 0.096257 | 0.034759 | 0.024955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002273 | 0.255499 | 1,773 | 56 | 88 | 31.660714 | 0.847727 | 0 | 0 | 0.044444 | 0 | 0 | 0.133672 | 0.024253 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0.022222 | 0.177778 | 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 |
e3ddafddccd1aee845e95e14e1da8e8b355c53a4 | 92,214 | py | Python | incubator/bootstrap_cli/__main__.py | cognitedata/inso-bootstrap-cli | d2ed0e575703acc7af2a11212357b6fd439f5279 | [
"Apache-2.0"
] | null | null | null | incubator/bootstrap_cli/__main__.py | cognitedata/inso-bootstrap-cli | d2ed0e575703acc7af2a11212357b6fd439f5279 | [
"Apache-2.0"
] | 7 | 2022-02-16T12:46:33.000Z | 2022-03-30T15:58:45.000Z | incubator/bootstrap_cli/__main__.py | cognitedata/inso-bootstrap-cli | d2ed0e575703acc7af2a11212357b6fd439f5279 | [
"Apache-2.0"
] | null | null | null | # 888 888
# 888 888
# 888 888
# .d8888b 88888b. 8888b. 88888b. .d88b. .d88b. 888 .d88b. .d88b.
# d88P" 888 "88b "88b 888 "88b d88P"88b d8P Y8b 888 d88... | 42.241869 | 134 | 0.560934 | 10,240 | 92,214 | 4.845898 | 0.088574 | 0.016323 | 0.013966 | 0.011124 | 0.509411 | 0.449418 | 0.401213 | 0.369191 | 0.340796 | 0.311696 | 0 | 0.030007 | 0.349134 | 92,214 | 2,182 | 135 | 42.261228 | 0.796714 | 0.293274 | 0 | 0.323185 | 0 | 0.002342 | 0.164047 | 0.041849 | 0 | 0 | 0 | 0.003666 | 0 | 1 | 0.032787 | false | 0.003903 | 0.014052 | 0.006245 | 0.075722 | 0.000781 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3e011a21c49b5509fea872c5fc1398a8616f542 | 4,440 | py | Python | pyhcl/passes/expand_memory.py | raybdzhou/PyChip-py-hcl | 08edc6ad4d2978eb417482f6f92678f8f9a1e3c7 | [
"MIT"
] | null | null | null | pyhcl/passes/expand_memory.py | raybdzhou/PyChip-py-hcl | 08edc6ad4d2978eb417482f6f92678f8f9a1e3c7 | [
"MIT"
] | null | null | null | pyhcl/passes/expand_memory.py | raybdzhou/PyChip-py-hcl | 08edc6ad4d2978eb417482f6f92678f8f9a1e3c7 | [
"MIT"
] | null | null | null | from typing import List, Dict
from pyhcl.ir.low_ir import *
from pyhcl.ir.low_prim import *
from pyhcl.passes._pass import Pass
from pyhcl.passes.utils import get_binary_width
DEFAULT_READ_LATENCY = 0
DEFAULT_WRITE_LATENCY = 1
@dataclass
class ExpandMemory(Pass):
def run(self, c: Circuit):
def get_mem_po... | 45.773196 | 156 | 0.533333 | 487 | 4,440 | 4.759754 | 0.184805 | 0.042278 | 0.037964 | 0.043141 | 0.316652 | 0.30371 | 0.280414 | 0.197584 | 0.197584 | 0.173425 | 0 | 0.004196 | 0.355856 | 4,440 | 97 | 157 | 45.773196 | 0.806294 | 0.003604 | 0 | 0.152941 | 0 | 0 | 0.004751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070588 | false | 0.035294 | 0.058824 | 0.011765 | 0.188235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3e284f2bcaf4183ceaa0d76915531a74b397b67 | 14,338 | py | Python | meshreg/visualize/samplevis.py | jonashein/handobjectnet_baseline | 29175be4528f68b8a2aa6dc6aa37ee0a042f93ab | [
"MIT"
] | 2 | 2021-07-09T15:10:44.000Z | 2021-07-11T12:42:13.000Z | meshreg/visualize/samplevis.py | jonashein/handobjectnet_baseline | 29175be4528f68b8a2aa6dc6aa37ee0a042f93ab | [
"MIT"
] | null | null | null | meshreg/visualize/samplevis.py | jonashein/handobjectnet_baseline | 29175be4528f68b8a2aa6dc6aa37ee0a042f93ab | [
"MIT"
] | null | null | null | import torch
import numpy as np
from libyana.visutils.viz2d import visualize_joints_2d
from meshreg.datasets.queries import BaseQueries, TransQueries
from meshreg.visualize import consistdisplay
def get_check_none(data, key, cpu=True):
if key in data and data[key] is not None:
if cpu:
return ... | 46.401294 | 119 | 0.522597 | 1,790 | 14,338 | 3.93352 | 0.088268 | 0.09118 | 0.068172 | 0.064622 | 0.723619 | 0.606022 | 0.585002 | 0.570089 | 0.556597 | 0.535293 | 0 | 0.055744 | 0.361905 | 14,338 | 308 | 120 | 46.551948 | 0.713849 | 0.206654 | 0 | 0.396226 | 0 | 0 | 0.009036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009434 | false | 0 | 0.023585 | 0 | 0.04717 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3e49196e82b3c1f79806bdd2aeb6e1bcf532ba4 | 3,185 | py | Python | api_app/api/dependencies/workspaces.py | gauravagrwal/AzureTRE | f3cb1e40e4926f8b196add807b05abec46bb36fc | [
"MIT"
] | 71 | 2021-03-04T15:10:18.000Z | 2022-03-29T16:37:37.000Z | api_app/api/dependencies/workspaces.py | gauravagrwal/AzureTRE | f3cb1e40e4926f8b196add807b05abec46bb36fc | [
"MIT"
] | 1,498 | 2021-03-05T07:28:00.000Z | 2022-03-31T16:28:06.000Z | api_app/api/dependencies/workspaces.py | gauravagrwal/AzureTRE | f3cb1e40e4926f8b196add807b05abec46bb36fc | [
"MIT"
] | 60 | 2021-04-30T10:09:26.000Z | 2022-03-30T12:39:27.000Z | from fastapi import Depends, HTTPException, Path, status
from pydantic import UUID4
from api.dependencies.database import get_repository
from db.errors import EntityDoesNotExist, ResourceIsNotDeployed
from db.repositories.user_resources import UserResourceRepository
from db.repositories.workspace_services import Works... | 56.875 | 224 | 0.82292 | 394 | 3,185 | 6.258883 | 0.139594 | 0.019465 | 0.040146 | 0.042579 | 0.712084 | 0.68897 | 0.597729 | 0.597729 | 0.597729 | 0.597729 | 0 | 0.01122 | 0.104553 | 3,185 | 55 | 225 | 57.909091 | 0.853436 | 0 | 0 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.261905 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3e5d7bb420ff6920778e91d10161cbdad69e4fa | 1,015 | py | Python | CS1410/p5test.py | Davidjbennett/DavidBennett.github.io | 09a2652b7ace8741bf23c6432abd58ee790b9f0c | [
"MIT"
] | 3 | 2021-05-18T16:17:29.000Z | 2022-01-20T15:46:59.000Z | CS1410/p5test.py | Davidjbennett/DavidBennett | 09a2652b7ace8741bf23c6432abd58ee790b9f0c | [
"MIT"
] | null | null | null | CS1410/p5test.py | Davidjbennett/DavidBennett | 09a2652b7ace8741bf23c6432abd58ee790b9f0c | [
"MIT"
] | null | null | null | import unittest
from payroll import *
class P2Test(unittest.TestCase):
def setUp(self):
self.emp = payroll.Employee('12-3456789', 'John', 'Doe', '123 Anystreet', 'Anytown', 'Anystate', '98765')
def testHourly(self):
rate = 35.5
self.emp.make_hourly(rate)
for d in range(10):
... | 39.038462 | 113 | 0.629557 | 132 | 1,015 | 4.719697 | 0.44697 | 0.101124 | 0.168539 | 0.105939 | 0.311396 | 0.263242 | 0.263242 | 0.189406 | 0.189406 | 0.189406 | 0 | 0.083969 | 0.225616 | 1,015 | 26 | 114 | 39.038462 | 0.708651 | 0.441379 | 0 | 0 | 0 | 0 | 0.104317 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3e6feda3445e87c646510a9a3a710d5ae1d2df6 | 1,418 | py | Python | pylsp/plugins/hover.py | nemethf/python-lsp-server | 34be02a6ce37bab7fb9ba1845006c0af16fb7efc | [
"MIT"
] | 1 | 2021-07-08T01:27:25.000Z | 2021-07-08T01:27:25.000Z | pylsp/plugins/hover.py | nemethf/python-lsp-server | 34be02a6ce37bab7fb9ba1845006c0af16fb7efc | [
"MIT"
] | null | null | null | pylsp/plugins/hover.py | nemethf/python-lsp-server | 34be02a6ce37bab7fb9ba1845006c0af16fb7efc | [
"MIT"
] | null | null | null | # Copyright 2017-2020 Palantir Technologies, Inc.
# Copyright 2021- Python Language Server Contributors.
import logging
from pylsp import hookimpl, _utils
log = logging.getLogger(__name__)
@hookimpl
def pylsp_hover(document, position):
code_position = _utils.position_to_jedi_linecolumn(document, position)
... | 28.36 | 74 | 0.662906 | 172 | 1,418 | 5.354651 | 0.5 | 0.045603 | 0.030402 | 0.047774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.239774 | 1,418 | 49 | 75 | 28.938776 | 0.841373 | 0.282793 | 0 | 0.074074 | 0 | 0 | 0.042659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3e789b09b4bc5d5bd9a4f91dddf897a4ef4d03a | 4,753 | py | Python | LocStat/pipelines/output.py | nhtoshiaki/LocStat | 0196d627d1f16a778cbc8f1996d217d8fee72afb | [
"MIT"
] | null | null | null | LocStat/pipelines/output.py | nhtoshiaki/LocStat | 0196d627d1f16a778cbc8f1996d217d8fee72afb | [
"MIT"
] | null | null | null | LocStat/pipelines/output.py | nhtoshiaki/LocStat | 0196d627d1f16a778cbc8f1996d217d8fee72afb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import items
class TxtFileWriter:
"""
Write the repository representation in the file.
"""
def __init__(self, file_path):
self.file_path = file_path
def __enter__(self):
self.file = open(self.file_path, 'w', encoding='utf-8')
return self
def ... | 37.722222 | 79 | 0.487482 | 516 | 4,753 | 4.248062 | 0.180233 | 0.109489 | 0.105383 | 0.041515 | 0.39781 | 0.277372 | 0.176095 | 0.130474 | 0.087591 | 0.057482 | 0 | 0.012663 | 0.401851 | 4,753 | 125 | 80 | 38.024 | 0.758354 | 0.049863 | 0 | 0.114583 | 0 | 0 | 0.153341 | 0.050736 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.010417 | 0.020833 | 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 |
e3e870bbf5df4a845585a4326902f3311e5fcf1d | 1,563 | py | Python | examples/telebot.py | b3ntuz1/words | 5d14439e18d9462a02a836afc3497a188bfc3224 | [
"MIT"
] | null | null | null | examples/telebot.py | b3ntuz1/words | 5d14439e18d9462a02a836afc3497a188bfc3224 | [
"MIT"
] | null | null | null | examples/telebot.py | b3ntuz1/words | 5d14439e18d9462a02a836afc3497a188bfc3224 | [
"MIT"
] | null | null | null | import flask
import telebot
import words
from dotenv import load_dotenv
load_dotenv()
app = flask.Flask(__name__)
bot = telebot.TeleBot(environ.get("TG_TOKEN"), threaded=False)
WEBHOOK_URL_PATH = "/%s/" % (environ.get("TG_TOKEN"))
# # Remove webhook, it fails sometimes the set if there is a previous webhook
# bot.re... | 31.26 | 106 | 0.68778 | 228 | 1,563 | 4.548246 | 0.368421 | 0.060752 | 0.094503 | 0.108004 | 0.16972 | 0.103182 | 0.055931 | 0 | 0 | 0 | 0 | 0.002306 | 0.167626 | 1,563 | 49 | 107 | 31.897959 | 0.794773 | 0.120282 | 0 | 0.090909 | 0 | 0 | 0.1347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.121212 | 0.030303 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3e8a02a4a0c93dadb97549166e65600c319f251 | 547 | py | Python | lvsfunc/__init__.py | DeadNews/lvsfunc | 15bc8b99595c5066c15f4aba9fb9989e1068a9ee | [
"MIT"
] | null | null | null | lvsfunc/__init__.py | DeadNews/lvsfunc | 15bc8b99595c5066c15f4aba9fb9989e1068a9ee | [
"MIT"
] | null | null | null | lvsfunc/__init__.py | DeadNews/lvsfunc | 15bc8b99595c5066c15f4aba9fb9989e1068a9ee | [
"MIT"
] | null | null | null | """
lvsfunc, a collection of VapourSynth functions and wrappers written and/or modified by LightArrowsEXE.
If you spot any issues, please do not hesitate to send in a Pull Request
or reach out to me on Discord (LightArrowsEXE#0476)!
"""
# flake8: noqa
from . import aa, comparison, deinterlace, denoise, m... | 26.047619 | 106 | 0.758684 | 78 | 547 | 5.25641 | 0.782051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.16819 | 547 | 20 | 107 | 27.35 | 0.89011 | 0.460695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3e90ea49def6ec58ac5f2b5f001c13fe85417ac | 529 | py | Python | Roman_to_Integer.py | sujitmandal/leetCode | b52bfd68cd93243765a94a190807f9b79ec4b4af | [
"MIT"
] | null | null | null | Roman_to_Integer.py | sujitmandal/leetCode | b52bfd68cd93243765a94a190807f9b79ec4b4af | [
"MIT"
] | null | null | null | Roman_to_Integer.py | sujitmandal/leetCode | b52bfd68cd93243765a94a190807f9b79ec4b4af | [
"MIT"
] | null | null | null | roman_dict = {
"I" : 1,
"V" : 5,
"X" : 10,
"L" : 50,
"C" : 100,
"D" : 500,
"M" : 1000
}
class Solution:
def romanToInt(self, s: str) -> int:
previous = 0
current = 0
result = 0
for x in s[::-1]:
current = roman_dict[x]
if (previous > current):
... | 18.241379 | 40 | 0.478261 | 62 | 529 | 4.048387 | 0.596774 | 0.155378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06006 | 0.37051 | 529 | 29 | 41 | 18.241379 | 0.693694 | 0 | 0 | 0 | 0 | 0 | 0.032075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0 | 0 | 0.076923 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3ea89a73be617f94a289a935e3c1a5396be4890 | 4,214 | py | Python | utils/warmup.py | hengwei-chan/3D_SBDD | eda6d51aaf01ef25581a46920a25161678fab76d | [
"MIT"
] | 67 | 2021-12-02T05:53:44.000Z | 2022-03-31T07:21:26.000Z | utils/warmup.py | hengwei-chan/3D_SBDD | eda6d51aaf01ef25581a46920a25161678fab76d | [
"MIT"
] | 13 | 2021-12-05T14:23:46.000Z | 2022-03-25T21:07:20.000Z | utils/warmup.py | hengwei-chan/3D_SBDD | eda6d51aaf01ef25581a46920a25161678fab76d | [
"MIT"
] | 16 | 2022-01-11T11:48:24.000Z | 2022-03-27T19:20:58.000Z | """
MIT License
Copyright (c) 2019 Ildoo Kim
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... | 48.436782 | 152 | 0.685809 | 568 | 4,214 | 4.952465 | 0.301056 | 0.069677 | 0.070387 | 0.04728 | 0.215073 | 0.20583 | 0.133665 | 0.105226 | 0.080341 | 0.080341 | 0 | 0.0066 | 0.244898 | 4,214 | 86 | 153 | 49 | 0.877436 | 0.390365 | 0 | 0.1875 | 0 | 0 | 0.02019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.041667 | 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 |
e3eab184db32babbdcd60c4ea7969530ce380571 | 2,154 | py | Python | src/ee/deployers.py | marcelotrevisani/ee | 933d6a80402b30943ca3df4a1a120047f7163a4b | [
"MIT"
] | 5 | 2021-12-09T21:54:35.000Z | 2021-12-14T11:25:57.000Z | src/ee/deployers.py | marcelotrevisani/ee | 933d6a80402b30943ca3df4a1a120047f7163a4b | [
"MIT"
] | 6 | 2021-12-09T21:04:19.000Z | 2022-02-11T11:19:44.000Z | src/ee/deployers.py | marcelotrevisani/ee | 933d6a80402b30943ca3df4a1a120047f7163a4b | [
"MIT"
] | 2 | 2021-02-12T20:20:26.000Z | 2021-12-14T11:24:24.000Z | import abc
import logging
from typing import List
from ee.models import EnvironmentDefinition
logger = logging.getLogger(__name__)
class DeploymentBackend(abc.ABC):
def run(self, env_def: EnvironmentDefinition, command: List[str]):
"""
This is the main public method.
This is a template ... | 27.615385 | 80 | 0.597029 | 243 | 2,154 | 5.176955 | 0.345679 | 0.052464 | 0.031797 | 0.049285 | 0.104928 | 0.063593 | 0.063593 | 0.063593 | 0 | 0 | 0 | 0 | 0.332869 | 2,154 | 77 | 81 | 27.974026 | 0.875435 | 0.409471 | 0 | 0.125 | 0 | 0 | 0.167339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3eb6d0f0d638a2beae2a17150b8764d8ef995b7 | 2,946 | py | Python | vb_simulation_pkgs/example_pkgs/pkg_moveit_examples/scripts/node_eg2_predefined_pose.py | ROBODITYA/Eyantra-2021-Vargi-Bots | f1c6a82c46e6e84486a4832b3fbcd02625849447 | [
"MIT"
] | 1 | 2021-07-13T07:05:29.000Z | 2021-07-13T07:05:29.000Z | vb_simulation_pkgs/example_pkgs/pkg_moveit_examples/scripts/node_eg2_predefined_pose.py | TejasPhutane/Eyantra-2021-Vargi-Bots | ab84a1304101850be8c0f69cfe6de70d53c33189 | [
"MIT"
] | 1 | 2021-06-05T07:58:03.000Z | 2021-06-05T07:58:03.000Z | vb_simulation_pkgs/example_pkgs/pkg_moveit_examples/scripts/node_eg2_predefined_pose.py | ROBODITYA/Eyantra-2021-Vargi-Bots | f1c6a82c46e6e84486a4832b3fbcd02625849447 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import rospy
import sys
import copy
import moveit_commander
import moveit_msgs.msg
import geometry_msgs.msg
import actionlib
class Ur5Moveit:
# Constructor
def __init__(self, arg_robot_name):
rospy.init_node('node_eg2_predefined_pose', anonymous=True)
self._robot_ns =... | 37.291139 | 163 | 0.681942 | 365 | 2,946 | 5.117808 | 0.29589 | 0.052998 | 0.047109 | 0.067452 | 0.198073 | 0.166488 | 0.092077 | 0.06424 | 0.06424 | 0.06424 | 0 | 0.032231 | 0.199593 | 2,946 | 78 | 164 | 37.769231 | 0.759966 | 0.037339 | 0 | 0.111111 | 0 | 0 | 0.140537 | 0.019774 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.12963 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3ecff00be006576e1644fd5e646a6c21330ba43 | 5,047 | py | Python | plugins/pelican_gist/plugin.py | kura/kura.io | 7f9ba2140b93bba86d1367e41706ad72f9e672bf | [
"MIT"
] | 13 | 2015-02-19T22:14:07.000Z | 2021-02-07T14:16:34.000Z | plugins/pelican_gist/plugin.py | kura/kura.gg | 42c8e0a7a6d9480297df004452b073883ff9693e | [
"MIT"
] | 2 | 2015-07-28T10:02:57.000Z | 2017-07-28T18:08:59.000Z | plugins/pelican_gist/plugin.py | kura/kura.io | 7f9ba2140b93bba86d1367e41706ad72f9e672bf | [
"MIT"
] | 7 | 2015-08-26T16:52:00.000Z | 2019-10-11T05:32:37.000Z | # -*- coding: utf-8 -*-
"""
Gist embedding plugin for Pelican
=================================
This plugin allows you to embed `Gists`_ into your posts.
.. _Gists: https://gist.github.com/
"""
from __future__ import unicode_literals
import hashlib
import logging
import os
import re
import codecs
import pygments
lo... | 30.96319 | 91 | 0.624529 | 619 | 5,047 | 4.93538 | 0.273021 | 0.03928 | 0.054992 | 0.02946 | 0.262193 | 0.088707 | 0.043863 | 0.043863 | 0.022259 | 0 | 0 | 0.004208 | 0.246681 | 5,047 | 162 | 92 | 31.154321 | 0.799316 | 0.101645 | 0 | 0.100917 | 0 | 0.009174 | 0.170374 | 0.035587 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091743 | false | 0 | 0.091743 | 0 | 0.256881 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3ed166cf5e760668330d7ff8e4a946c7c875bce | 1,188 | py | Python | ass1/rsc/ts.py | suryaavala/network | 291b59dce961448b2a9b92b6a0754ec994a6fb91 | [
"MIT"
] | null | null | null | ass1/rsc/ts.py | suryaavala/network | 291b59dce961448b2a9b92b6a0754ec994a6fb91 | [
"MIT"
] | null | null | null | ass1/rsc/ts.py | suryaavala/network | 291b59dce961448b2a9b92b6a0754ec994a6fb91 | [
"MIT"
] | null | null | null | import time
from socket import *
import sys
host = sys.argv[1]
#port = sys.argv[2]
#message = sys.argv[2]
sock = socket(AF_INET, SOCK_DGRAM)
sock.settimeout(1)
sock.bind((str(host),0))
print(sock.getsockname(),sock.getsockname()[1])
port = 5967
for message in 'abcdefghijklmnopqrstuvwxyz':
sock.sendto(message.e... | 32.108108 | 139 | 0.653199 | 163 | 1,188 | 4.717791 | 0.361963 | 0.036411 | 0.06632 | 0.089727 | 0.608583 | 0.608583 | 0.608583 | 0.522757 | 0.522757 | 0.522757 | 0 | 0.01131 | 0.106902 | 1,188 | 36 | 140 | 33 | 0.713478 | 0.159091 | 0 | 0.304348 | 0 | 0 | 0.302115 | 0.076536 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 0.304348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3efc019f189a8a6987dd98946e89c72d64fa190 | 2,218 | py | Python | BIA 660 - Web Analytics/Assignments/Assignment 2/webcounter.py | ParasGarg/Stevens-Computer-Science-Courses-Materials | 13015e6e83471d89ae29474857fe83a81994420f | [
"MIT"
] | 25 | 2017-03-23T04:51:18.000Z | 2022-03-03T21:51:11.000Z | BIA 660 - Web Analytics/Assignments/Assignment 2/webcounter.py | vaishnavimecit/Stevens-Computer-Science-Courses-Materials | 13015e6e83471d89ae29474857fe83a81994420f | [
"MIT"
] | null | null | null | BIA 660 - Web Analytics/Assignments/Assignment 2/webcounter.py | vaishnavimecit/Stevens-Computer-Science-Courses-Materials | 13015e6e83471d89ae29474857fe83a81994420f | [
"MIT"
] | 19 | 2018-05-10T05:17:05.000Z | 2022-03-12T05:18:58.000Z | """
A script that reads a file from the web and
returns the all the words having frequency in between two words passed
"""
import re
from nltk.corpus import stopwords
import requests
from operator import itemgetter
def run(url, word1, word2):
freq = {} # keep the freq of each word in the file
freq[word1] = 0... | 35.774194 | 175 | 0.626691 | 314 | 2,218 | 4.401274 | 0.455414 | 0.021708 | 0.014472 | 0.018813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02769 | 0.283589 | 2,218 | 61 | 176 | 36.360656 | 0.842039 | 0.373309 | 0 | 0 | 0 | 0.025641 | 0.155033 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.102564 | 0 | 0.179487 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3f2542b1e8fcfc1c962b23f153fdbfa31f29be1 | 4,487 | py | Python | dev/archery/archery/integration/util.py | palmerlao/arrow | 4e680c46ad5aa76ba1dc85574c4e96a51450364f | [
"Apache-2.0"
] | null | null | null | dev/archery/archery/integration/util.py | palmerlao/arrow | 4e680c46ad5aa76ba1dc85574c4e96a51450364f | [
"Apache-2.0"
] | 8 | 2020-04-10T19:03:51.000Z | 2021-01-21T01:06:28.000Z | dev/archery/archery/integration/util.py | signavio/arrow | 866e6a82e2794b151235c19b8c5cbf1fcaf780ef | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.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 not u... | 28.398734 | 77 | 0.654558 | 591 | 4,487 | 4.881557 | 0.409475 | 0.024263 | 0.02253 | 0.011092 | 0.033969 | 0.017331 | 0 | 0 | 0 | 0 | 0 | 0.005045 | 0.248941 | 4,487 | 157 | 78 | 28.579618 | 0.851039 | 0.398262 | 0 | 0.1375 | 0 | 0 | 0.040095 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 1 | 0.1375 | false | 0 | 0.125 | 0.0125 | 0.4125 | 0.1125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3f2b53a7343d04d14b8c9e8a2dd45c0ae9f242e | 4,715 | py | Python | python/src/cmdline/write_struct.py | hgmelectronics/xcpsetup | 646d22537f58e59c3fe324da08c4dbe0d5881efa | [
"BSD-2-Clause"
] | null | null | null | python/src/cmdline/write_struct.py | hgmelectronics/xcpsetup | 646d22537f58e59c3fe324da08c4dbe0d5881efa | [
"BSD-2-Clause"
] | null | null | null | python/src/cmdline/write_struct.py | hgmelectronics/xcpsetup | 646d22537f58e59c3fe324da08c4dbe0d5881efa | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python3
import argparse
import ctypes
import json
import sys
if not '..' in sys.path:
sys.path.append('..')
from comm import BoardTypes
from comm import CANInterface
from comm import XCPConnection
from util import plugins
from util import ctypesdict
from util import config
import argProc
plugins.l... | 42.477477 | 145 | 0.634783 | 544 | 4,715 | 5.474265 | 0.409926 | 0.027199 | 0.051377 | 0.020148 | 0.096709 | 0.053727 | 0.03358 | 0.03358 | 0 | 0 | 0 | 0.007452 | 0.260021 | 4,715 | 110 | 146 | 42.863636 | 0.846088 | 0.073383 | 0 | 0.105882 | 0 | 0.011765 | 0.182027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011765 | false | 0.011765 | 0.129412 | 0 | 0.164706 | 0.082353 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3f35c53bc5f2d93179fd278d659372e135f798d | 2,383 | py | Python | doc/python_api/examples/bpy.types.Depsgraph.1.py | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 365 | 2015-02-10T15:10:55.000Z | 2022-03-03T15:50:51.000Z | doc/python_api/examples/bpy.types.Depsgraph.1.py | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 45 | 2015-01-09T15:34:20.000Z | 2021-10-05T14:44:23.000Z | doc/python_api/examples/bpy.types.Depsgraph.1.py | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 172 | 2015-01-25T15:16:53.000Z | 2022-01-31T08:25:36.000Z | """
Dependency graph: Evaluated ID example
++++++++++++++++++++++++++++++++++++++
This example demonstrates access to the evaluated ID (such as object, material, etc.) state from
an original ID.
This is needed every time one needs to access state with animation, constraints, and modifiers
taken into account.
"""
impor... | 39.065574 | 99 | 0.675619 | 309 | 2,383 | 5.106796 | 0.440129 | 0.047529 | 0.024715 | 0.041825 | 0.055133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241712 | 2,383 | 60 | 100 | 39.716667 | 0.873271 | 0.554763 | 0 | 0 | 0 | 0 | 0.17607 | 0.047665 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.05 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3f60625a8143b4d147e2f952742a97ef41ee31f | 1,242 | py | Python | 1.undersampling.py | Moons08/TalkingData-Fraud-Detection | c88fb8b5358f6057603b7725ed2767fab47c51c6 | [
"MIT"
] | 1 | 2019-01-18T06:20:54.000Z | 2019-01-18T06:20:54.000Z | 1.undersampling.py | Moons08/LightGBM-tutorial-Fraud_Detection | c88fb8b5358f6057603b7725ed2767fab47c51c6 | [
"MIT"
] | null | null | null | 1.undersampling.py | Moons08/LightGBM-tutorial-Fraud_Detection | c88fb8b5358f6057603b7725ed2767fab47c51c6 | [
"MIT"
] | null | null | null | import os
import pandas as pd
from imblearn.under_sampling import RandomUnderSampler
from contextlib import contextmanager
import psutil
import time
@contextmanager
def timer_memory(name):
t0 = time.time()
yield
print(
f'Memory: {(psutil.Process(os.getpid()).memory_info().rss/2**30):.02f}GB')
... | 26.425532 | 82 | 0.587762 | 159 | 1,242 | 4.503145 | 0.496855 | 0.072626 | 0.079609 | 0.030726 | 0.072626 | 0.072626 | 0 | 0 | 0 | 0 | 0 | 0.02521 | 0.233494 | 1,242 | 46 | 83 | 27 | 0.726891 | 0 | 0 | 0.060606 | 0 | 0.030303 | 0.258454 | 0.165056 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.181818 | 0 | 0.242424 | 0.121212 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3f744a34f5cd637c13b66b21c7bdf2144d67708 | 3,344 | py | Python | tf_agents/benchmark/distribution_strategy_utils.py | FlorisHoogenboom/agents | 2cd5a61e1838b52012271f1fb8617c29a55279a9 | [
"Apache-2.0"
] | 16 | 2020-09-23T06:21:49.000Z | 2022-03-28T05:45:04.000Z | tf_agents/benchmark/distribution_strategy_utils.py | FlorisHoogenboom/agents | 2cd5a61e1838b52012271f1fb8617c29a55279a9 | [
"Apache-2.0"
] | null | null | null | tf_agents/benchmark/distribution_strategy_utils.py | FlorisHoogenboom/agents | 2cd5a61e1838b52012271f1fb8617c29a55279a9 | [
"Apache-2.0"
] | 6 | 2020-10-09T06:33:23.000Z | 2022-02-03T16:16:36.000Z | # coding=utf-8
# Copyright 2018 The TF-Agents Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 34.474227 | 80 | 0.696172 | 429 | 3,344 | 5.263403 | 0.382284 | 0.124004 | 0.019929 | 0.013286 | 0.058459 | 0.022143 | 0 | 0 | 0 | 0 | 0 | 0.009178 | 0.218002 | 3,344 | 96 | 81 | 34.833333 | 0.854302 | 0.425837 | 0 | 0.191489 | 0 | 0 | 0.141555 | 0.01126 | 0 | 0 | 0 | 0 | 0.021277 | 1 | 0.085106 | false | 0.042553 | 0.106383 | 0 | 0.319149 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3f9d1e7fbd73db26f8548fce222535435572494 | 3,985 | py | Python | gen_mirror_json.py | Ashwin4RC/api | e6fc38b5ef8510ab4a11cb492fe49b9ed2cbcc58 | [
"Apache-2.0"
] | null | null | null | gen_mirror_json.py | Ashwin4RC/api | e6fc38b5ef8510ab4a11cb492fe49b9ed2cbcc58 | [
"Apache-2.0"
] | null | null | null | gen_mirror_json.py | Ashwin4RC/api | e6fc38b5ef8510ab4a11cb492fe49b9ed2cbcc58 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# pylint: disable=missing-docstring,invalid-name,broad-except,cell-var-from-loop
import hashlib
import json
import os
import sys
from utils import get_date_from_zip, get_metadata_from_zip
ALLOWED_BUILDTYPES = ["Alpha", "Beta", "Official", "Gapps"]
ALLOWED_VERSIONS = ["9.0", "10"]
FILE_BASE: s... | 36.227273 | 88 | 0.496863 | 431 | 3,985 | 4.487239 | 0.306265 | 0.028956 | 0.026887 | 0.027921 | 0.188211 | 0.174767 | 0.116856 | 0.116856 | 0.041365 | 0 | 0 | 0.027136 | 0.380427 | 3,985 | 109 | 89 | 36.559633 | 0.756177 | 0.036637 | 0 | 0.262626 | 0 | 0 | 0.098279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.050505 | 0 | 0.050505 | 0.050505 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3f9dc11cb81a8cb80e6cd940f8a035848122990 | 431 | py | Python | button/take_screen.py | PitPietro/gpiozero-pyqt5 | 0384d34348841d193c025a1909d909d1bf772a7d | [
"MIT"
] | null | null | null | button/take_screen.py | PitPietro/gpiozero-pyqt5 | 0384d34348841d193c025a1909d909d1bf772a7d | [
"MIT"
] | null | null | null | button/take_screen.py | PitPietro/gpiozero-pyqt5 | 0384d34348841d193c025a1909d909d1bf772a7d | [
"MIT"
] | null | null | null | import os
# from signal import pause
from gpiozero import Button
from datetime import datetime
def take_screen():
screen_btn = Button(2)
while True:
if screen_btn.is_pressed:
timestamp = datetime.now()
cmd = "scrot -u d 5 $n {}.png".format('screen_' + str(timestamp))
... | 21.55 | 77 | 0.605568 | 55 | 431 | 4.6 | 0.563636 | 0.106719 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006557 | 0.292343 | 431 | 20 | 78 | 21.55 | 0.822951 | 0.160093 | 0 | 0 | 0 | 0 | 0.08078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3fb07a9be04e9aa4d5249fcb856df6a2aede22a | 1,435 | py | Python | year2020/day21.py | 3schwartz/AdventOfCode | 32f259c4e20c3c4834718411f1053b6a11f71c86 | [
"MIT"
] | null | null | null | year2020/day21.py | 3schwartz/AdventOfCode | 32f259c4e20c3c4834718411f1053b6a11f71c86 | [
"MIT"
] | null | null | null | year2020/day21.py | 3schwartz/AdventOfCode | 32f259c4e20c3c4834718411f1053b6a11f71c86 | [
"MIT"
] | null | null | null | import common
lines = common.get_lines('day21_data.txt')
food_dict = {}
all_ingredients = []
for line in lines:
ingredients, allergens = line.split(' (contains ')
allergens = allergens[:-1].split(', ')
ingredients = ingredients.split(' ')
all_ingredients.extend(ingredients)
for alle... | 32.613636 | 90 | 0.627875 | 163 | 1,435 | 5.374233 | 0.306748 | 0.109589 | 0.073059 | 0.071918 | 0.107306 | 0.063927 | 0 | 0 | 0 | 0 | 0 | 0.00666 | 0.267596 | 1,435 | 43 | 91 | 33.372093 | 0.826832 | 0 | 0 | 0 | 0 | 0 | 0.129403 | 0.029475 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.032258 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3fb126e341fe57625eff17359d622708faa18e2 | 4,279 | py | Python | src/model_evaluation.py | Littleote/Analisis_de_contrasenyes | 3837153e82b9da0c6f8ed1c372103944f3acaca6 | [
"MIT"
] | null | null | null | src/model_evaluation.py | Littleote/Analisis_de_contrasenyes | 3837153e82b9da0c6f8ed1c372103944f3acaca6 | [
"MIT"
] | null | null | null | src/model_evaluation.py | Littleote/Analisis_de_contrasenyes | 3837153e82b9da0c6f8ed1c372103944f3acaca6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: david
"""
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
from sklearn.model_selection import KFold
from sklearn.metrics import confusion_matrix, classification_report
from sklearn.metrics import PrecisionRecallDisplay, RocCurveDisplay
class ModelEvaluatio... | 40.752381 | 117 | 0.475111 | 501 | 4,279 | 3.988024 | 0.255489 | 0.009009 | 0.015015 | 0.032533 | 0.363363 | 0.311311 | 0.261261 | 0.234234 | 0.234234 | 0.234234 | 0 | 0.009675 | 0.396121 | 4,279 | 105 | 118 | 40.752381 | 0.763545 | 0.008647 | 0 | 0.377551 | 0 | 0.030612 | 0.148288 | 0.018182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010204 | false | 0 | 0.061224 | 0 | 0.081633 | 0.061224 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3fb3094156efbfadeca185946c48f3c4d800789 | 1,632 | py | Python | setup.py | zhuzhenping/hf_at_py | edbbefc7dd1d476ed7fd62ad9635888cfc5fcb44 | [
"Apache-2.0"
] | 130 | 2017-03-10T02:01:38.000Z | 2021-01-10T03:55:30.000Z | setup.py | zhuzhenping/hf_at_py | edbbefc7dd1d476ed7fd62ad9635888cfc5fcb44 | [
"Apache-2.0"
] | 3 | 2018-11-30T00:07:50.000Z | 2020-12-01T13:01:13.000Z | setup.py | zhuzhenping/hf_at_py | edbbefc7dd1d476ed7fd62ad9635888cfc5fcb44 | [
"Apache-2.0"
] | 69 | 2017-04-01T13:57:21.000Z | 2020-10-07T11:29:45.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/11/20 8:15
# @Author : HaiFeng
# @Email : 24918700@qq.com
from setuptools import setup
import os
this_directory = os.path.abspath(os.path.dirname(__file__))
# 读取文件内容
def read_file(filename):
with open(os.path.join(this_directory, filename), enc... | 29.142857 | 84 | 0.674632 | 200 | 1,632 | 5.345 | 0.595 | 0.084191 | 0.06174 | 0.072965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024133 | 0.1875 | 1,632 | 55 | 85 | 29.672727 | 0.782051 | 0.216912 | 0 | 0 | 0 | 0 | 0.260731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0.029412 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3fbc1eef6b6ab6c9a1ff3c81478fc53b610ea00 | 6,478 | py | Python | web_console_v2/api/fedlearner_webconsole/scheduler/transaction.py | chen1i/fedlearner | 981514dadbd0aa49ae87d185dd247d310e35605c | [
"Apache-2.0"
] | 5 | 2020-04-14T06:37:45.000Z | 2021-04-26T15:58:01.000Z | web_console_v2/api/fedlearner_webconsole/scheduler/transaction.py | chen1i/fedlearner | 981514dadbd0aa49ae87d185dd247d310e35605c | [
"Apache-2.0"
] | 1 | 2020-04-27T03:01:27.000Z | 2020-04-27T03:01:27.000Z | web_console_v2/api/fedlearner_webconsole/scheduler/transaction.py | chen1i/fedlearner | 981514dadbd0aa49ae87d185dd247d310e35605c | [
"Apache-2.0"
] | 13 | 2020-02-20T05:56:52.000Z | 2020-06-08T07:11:25.000Z | # Copyright 2020 The FedLearner Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 39.742331 | 78 | 0.636153 | 651 | 6,478 | 6.086022 | 0.238095 | 0.133266 | 0.047198 | 0.040636 | 0.353104 | 0.325088 | 0.265018 | 0.197123 | 0.147148 | 0.074205 | 0 | 0.00242 | 0.29824 | 6,478 | 162 | 79 | 39.987654 | 0.869116 | 0.14063 | 0 | 0.291667 | 0 | 0 | 0.012083 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.066667 | false | 0 | 0.033333 | 0.016667 | 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 |
e3fd5d581d1b57f36ef591f8271741509e6dd229 | 4,636 | py | Python | src/openeo_grass_gis_driver/models/schema_base.py | marcjansen/openeo-grassgis-driver | 57b309819fdc456fba02cd1ab8fe6731ddfbb66a | [
"Apache-2.0"
] | 7 | 2018-03-16T17:26:14.000Z | 2022-03-09T08:19:10.000Z | src/openeo_grass_gis_driver/models/schema_base.py | marcjansen/openeo-grassgis-driver | 57b309819fdc456fba02cd1ab8fe6731ddfbb66a | [
"Apache-2.0"
] | 70 | 2018-03-09T11:28:12.000Z | 2022-02-17T09:06:17.000Z | src/openeo_grass_gis_driver/models/schema_base.py | marcjansen/openeo-grassgis-driver | 57b309819fdc456fba02cd1ab8fe6731ddfbb66a | [
"Apache-2.0"
] | 13 | 2018-03-12T09:58:24.000Z | 2022-02-23T10:40:11.000Z | # -*- coding: utf-8 -*-
import json
from typing import List, Optional
from flask import make_response
__author__ = "Sören Gebbert"
__copyright__ = "Copyright 2018, Sören Gebbert, mundialis"
__maintainer__ = "Sören Gebbert"
__email__ = "soerengebbert@googlemail.com"
def as_dict_without_nones(o):
d = o.__dict__
... | 24.659574 | 85 | 0.613891 | 586 | 4,636 | 4.740614 | 0.354949 | 0.020158 | 0.023758 | 0.020158 | 0.345572 | 0.324694 | 0.294456 | 0.294456 | 0.294456 | 0.294456 | 0 | 0.009935 | 0.30522 | 4,636 | 187 | 86 | 24.791444 | 0.85253 | 0.46484 | 0 | 0.292308 | 0 | 0 | 0.070448 | 0.012809 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138462 | false | 0 | 0.046154 | 0.015385 | 0.338462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3fff047d0d4657b650e98281fbe2b1e51ff6026 | 3,694 | py | Python | src/outpost/django/salt/serializers.py | medunigraz/outpost.django.salt | bb8d3cefeaa8444ce15979689abdd93ed993304b | [
"BSD-2-Clause"
] | null | null | null | src/outpost/django/salt/serializers.py | medunigraz/outpost.django.salt | bb8d3cefeaa8444ce15979689abdd93ed993304b | [
"BSD-2-Clause"
] | null | null | null | src/outpost/django/salt/serializers.py | medunigraz/outpost.django.salt | bb8d3cefeaa8444ce15979689abdd93ed993304b | [
"BSD-2-Clause"
] | null | null | null | import logging
import gpg
from rest_framework import serializers
from .conf import settings
from . import models
logger = logging.getLogger(__name__)
class PGPFileField(serializers.Field):
def to_representation(self, value):
with gpg.Context(armor=True) as c:
imp = c.key_import(settings.SAL... | 32.403509 | 88 | 0.674066 | 375 | 3,694 | 6.525333 | 0.336 | 0.065386 | 0.039232 | 0.057213 | 0.07029 | 0.04904 | 0.026154 | 0 | 0 | 0 | 0 | 0.003095 | 0.212777 | 3,694 | 113 | 89 | 32.690265 | 0.838377 | 0.016513 | 0 | 0.084337 | 0 | 0 | 0.109061 | 0.006059 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048193 | false | 0 | 0.108434 | 0.024096 | 0.614458 | 0.024096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3fff64e6905d157f27dedffc36bcf8b6222a9c6 | 11,950 | py | Python | demosauruswebapp/demosaurus/link_thesaurus.py | KBNLresearch/Demosaurus | 9235e315d9eef9d8d64f94a90ab4fc8220670ef2 | [
"Apache-2.0"
] | 1 | 2020-06-25T16:39:35.000Z | 2020-06-25T16:39:35.000Z | demosauruswebapp/demosaurus/link_thesaurus.py | KBNLresearch/Demosaurus | 9235e315d9eef9d8d64f94a90ab4fc8220670ef2 | [
"Apache-2.0"
] | 6 | 2020-03-06T12:31:38.000Z | 2021-09-20T15:08:17.000Z | demosauruswebapp/demosaurus/link_thesaurus.py | KBNLresearch/Demosaurus | 9235e315d9eef9d8d64f94a90ab4fc8220670ef2 | [
"Apache-2.0"
] | null | null | null | from flask import (
Blueprint, flash, g, redirect, render_template, get_template_attribute, request, url_for, jsonify
)
#from ....dataprocessing import # dataprocessin .read_rdf import
from demosauruswebapp.demosaurus.db import get_db
import pandas as pd
from nltk.metrics import distance as nl_distance
import re
im... | 49.585062 | 139 | 0.647699 | 1,527 | 11,950 | 4.929928 | 0.225278 | 0.046626 | 0.01594 | 0.022317 | 0.306854 | 0.262487 | 0.248007 | 0.2322 | 0.200319 | 0.200319 | 0 | 0.015017 | 0.247699 | 11,950 | 240 | 140 | 49.791667 | 0.822358 | 0.271297 | 0 | 0.266272 | 0 | 0 | 0.140966 | 0.013818 | 0.005917 | 0 | 0 | 0.004167 | 0.005917 | 1 | 0.059172 | false | 0 | 0.071006 | 0 | 0.189349 | 0.035503 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |