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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
704714d83f647fd1d63d1eea3b51b21e192ee2bc | 1,270 | py | Python | simmbse/link.py | tsherburne/ma_sim | 4082da1c80401dec4293415bc9e9239a6bb8185d | [
"BSD-3-Clause"
] | null | null | null | simmbse/link.py | tsherburne/ma_sim | 4082da1c80401dec4293415bc9e9239a6bb8185d | [
"BSD-3-Clause"
] | null | null | null | simmbse/link.py | tsherburne/ma_sim | 4082da1c80401dec4293415bc9e9239a6bb8185d | [
"BSD-3-Clause"
] | null | null | null | import simpy
DEF_LINK_CAPACITY = 5
DEF_LINK_DELAY = 5
class Link:
"""
A link is the physical implementation of an interface.
"""
def __init__(self, env, capacity, delay):
self.env = env
self.delay = delay
self.msg = simpy.Store(env)
self.capacity = simpy.Container(env... | 25.918367 | 77 | 0.583465 | 153 | 1,270 | 4.79085 | 0.339869 | 0.057299 | 0.081855 | 0.051842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007001 | 0.325197 | 1,270 | 48 | 78 | 26.458333 | 0.848308 | 0.179528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.035714 | 0.035714 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7047d5cefa65f2e1e003e6c7a82fbac36e8eb44c | 2,163 | py | Python | dovetail/tests/unit/test_parser.py | hashnfv/hashnfv-dovetail | 73f332fc513f184513be483db6a108bd3c7b7d9b | [
"Apache-2.0"
] | null | null | null | dovetail/tests/unit/test_parser.py | hashnfv/hashnfv-dovetail | 73f332fc513f184513be483db6a108bd3c7b7d9b | [
"Apache-2.0"
] | null | null | null | dovetail/tests/unit/test_parser.py | hashnfv/hashnfv-dovetail | 73f332fc513f184513be483db6a108bd3c7b7d9b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# lingui.zeng@huawei.com
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
#
"""
Test 'parser' module
... | 33.796875 | 75 | 0.66343 | 269 | 2,163 | 5.111524 | 0.390335 | 0.087273 | 0.046545 | 0.055273 | 0.466909 | 0.466909 | 0.414545 | 0.414545 | 0.414545 | 0.414545 | 0 | 0.002976 | 0.223301 | 2,163 | 63 | 76 | 34.333333 | 0.815476 | 0.188165 | 0 | 0.368421 | 0 | 0 | 0.169855 | 0.09913 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.078947 | false | 0 | 0.184211 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
704c104a01777ddf21029bc89ce3fac781b60738 | 1,072 | py | Python | app/utils/cosineSimilarity.py | P-DOX/MultiModelNLP | 9ab93fdc6f90c829d3d63249565df9fc0e45f119 | [
"Apache-2.0"
] | null | null | null | app/utils/cosineSimilarity.py | P-DOX/MultiModelNLP | 9ab93fdc6f90c829d3d63249565df9fc0e45f119 | [
"Apache-2.0"
] | null | null | null | app/utils/cosineSimilarity.py | P-DOX/MultiModelNLP | 9ab93fdc6f90c829d3d63249565df9fc0e45f119 | [
"Apache-2.0"
] | null | null | null | from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
# X = input("Enter first string: ").lower()
# Y = input("Enter second string: ").lower()
# X ="I love horror movies"
# Y ="Lights out is a horror movie"
def cosineSimilarity(X, Y):
# tokenization
X_list = word_tokenize(X)
... | 29.777778 | 54 | 0.58209 | 168 | 1,072 | 3.636905 | 0.404762 | 0.03437 | 0.02946 | 0.026187 | 0.07856 | 0.045827 | 0 | 0 | 0 | 0 | 0 | 0.022849 | 0.30597 | 1,072 | 36 | 55 | 29.777778 | 0.798387 | 0.3125 | 0 | 0 | 0 | 0 | 0.01013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 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 |
704ece007cac76b4214891671e52a643444b368a | 1,375 | py | Python | crawl_movies/pipelines.py | KevinLJJ/crawl_movies | 16d03a8a18fee57582ff3fb0b80ba0d12a824f96 | [
"MIT"
] | null | null | null | crawl_movies/pipelines.py | KevinLJJ/crawl_movies | 16d03a8a18fee57582ff3fb0b80ba0d12a824f96 | [
"MIT"
] | null | null | null | crawl_movies/pipelines.py | KevinLJJ/crawl_movies | 16d03a8a18fee57582ff3fb0b80ba0d12a824f96 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
from crawl_movies.models.mongo import MovieDetail, WorkerDetail
class CrawlMoviesPipeline(object):
def process_item(self... | 24.122807 | 66 | 0.522909 | 147 | 1,375 | 4.795918 | 0.489796 | 0.039716 | 0.031206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002227 | 0.346909 | 1,375 | 56 | 67 | 24.553571 | 0.782851 | 0.248727 | 0 | 0 | 0 | 0 | 0.048066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.05 | 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 |
704f9d6253b758f6c2018d25a5de126b3018f3f2 | 427 | py | Python | Algorithms/Easy/1394. Find Lucky Integer in an Array/answer.py | KenWoo/Algorithm | 4012a2f0a099a502df1e5df2e39faa75fe6463e8 | [
"Apache-2.0"
] | null | null | null | Algorithms/Easy/1394. Find Lucky Integer in an Array/answer.py | KenWoo/Algorithm | 4012a2f0a099a502df1e5df2e39faa75fe6463e8 | [
"Apache-2.0"
] | null | null | null | Algorithms/Easy/1394. Find Lucky Integer in an Array/answer.py | KenWoo/Algorithm | 4012a2f0a099a502df1e5df2e39faa75fe6463e8 | [
"Apache-2.0"
] | null | null | null | from typing import List
class Solution:
def findLucky(self, arr: List[int]) -> int:
dict = {}
for a in arr:
dict.setdefault(a, 0)
dict[a] += 1
res = -1
for k, v in dict.items():
if k == v:
res = max(res, k)
return res
if... | 20.333333 | 47 | 0.468384 | 58 | 427 | 3.310345 | 0.551724 | 0.020833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035019 | 0.398126 | 427 | 20 | 48 | 21.35 | 0.712062 | 0 | 0 | 0 | 0 | 0 | 0.018735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.25 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
704fd7adeafe4b3c7852a5ce2db279a718b6a6db | 1,882 | py | Python | cauldron/test/cli/server/routes/synchronize/test_sync_open.py | DanMayhew/cauldron | ac41481830fc1a363c145f4b58ce785aac054d10 | [
"MIT"
] | null | null | null | cauldron/test/cli/server/routes/synchronize/test_sync_open.py | DanMayhew/cauldron | ac41481830fc1a363c145f4b58ce785aac054d10 | [
"MIT"
] | null | null | null | cauldron/test/cli/server/routes/synchronize/test_sync_open.py | DanMayhew/cauldron | ac41481830fc1a363c145f4b58ce785aac054d10 | [
"MIT"
] | null | null | null | import json
import os
import cauldron
from cauldron.test import support
from cauldron.test.support.flask_scaffolds import FlaskResultsTest
EXAMPLE_PROJECTS_DIRECTORY = os.path.realpath(os.path.join(
os.path.dirname(os.path.realpath(cauldron.__file__)),
'resources',
'examples'
))
class TestSyncOpen(Flask... | 28.953846 | 75 | 0.664187 | 209 | 1,882 | 5.755981 | 0.291866 | 0.112219 | 0.04655 | 0.05985 | 0.306733 | 0.270158 | 0.191189 | 0.191189 | 0.191189 | 0.191189 | 0 | 0.002065 | 0.227949 | 1,882 | 64 | 76 | 29.40625 | 0.825877 | 0.087141 | 0 | 0.225 | 0 | 0 | 0.096736 | 0 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.1 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
70523f493b7d38b249e11082c64f836106e49316 | 2,166 | py | Python | common/vision/models/digits.py | billzhonggz/Transfer-Learning-Library | d7a6e4298e571d5101e05515a2ab1f171160ef89 | [
"MIT"
] | 1,474 | 2020-07-24T02:55:55.000Z | 2022-03-31T12:35:56.000Z | common/vision/models/digits.py | mxliu/Transfer-Learning-Library | 7b0ccb3a8087ecc65daf4b1e815e5a3f42106641 | [
"MIT"
] | 70 | 2020-08-05T10:47:33.000Z | 2022-03-31T03:48:54.000Z | common/vision/models/digits.py | mxliu/Transfer-Learning-Library | 7b0ccb3a8087ecc65daf4b1e815e5a3f42106641 | [
"MIT"
] | 312 | 2020-08-01T11:08:39.000Z | 2022-03-30T06:03:47.000Z | """
@author: Junguang Jiang
@contact: JiangJunguang1123@outlook.com
"""
import torch.nn as nn
class LeNet(nn.Sequential):
def __init__(self, num_classes=10):
super(LeNet, self).__init__(
nn.Conv2d(1, 20, kernel_size=5),
nn.MaxPool2d(2),
nn.ReLU(),
nn.Conv2d(... | 26.096386 | 117 | 0.545245 | 281 | 2,166 | 4.067616 | 0.316726 | 0.087489 | 0.048994 | 0.036745 | 0.496063 | 0.496063 | 0.496063 | 0.415573 | 0.347332 | 0.118985 | 0 | 0.081978 | 0.31856 | 2,166 | 83 | 118 | 26.096386 | 0.692412 | 0.199446 | 0 | 0.346939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122449 | false | 0 | 0.020408 | 0.040816 | 0.265306 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7053994678a4357d47cfc599844f36810176dba3 | 6,164 | py | Python | cviceni10/mind.py | malja/cvut-python | 945aa0fefb72c65a97c505e38597881d8433f93b | [
"MIT"
] | null | null | null | cviceni10/mind.py | malja/cvut-python | 945aa0fefb72c65a97c505e38597881d8433f93b | [
"MIT"
] | null | null | null | cviceni10/mind.py | malja/cvut-python | 945aa0fefb72c65a97c505e38597881d8433f93b | [
"MIT"
] | null | null | null | import itertools
class mind:
"""
Třída řešící hru Mastermind ve třech úrovních obtížnosti.
Podporované módy:
1) Hádání 4 pozic se 6 barvami
2) Hádání 5 pozic s 7 barvami
3) Hádání 6 pozic s 8 barvami
O zadání, učování správného řešení a ohodnocování jednotlivých tahů
... | 29.21327 | 85 | 0.541045 | 702 | 6,164 | 4.683761 | 0.411681 | 0.056873 | 0.018248 | 0.010037 | 0.059307 | 0.045012 | 0.023114 | 0.023114 | 0.023114 | 0.023114 | 0 | 0.016411 | 0.387086 | 6,164 | 211 | 86 | 29.21327 | 0.853891 | 0.401849 | 0 | 0.131579 | 0 | 0 | 0.006131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092105 | false | 0 | 0.013158 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
705779fc95331f18047ab12ddb0742f0946134c2 | 3,055 | py | Python | restclients/sws/v5/notice.py | uw-it-cte/uw-restclients | 2b09348bf066e5508304401f93f281805e965af5 | [
"Apache-2.0"
] | null | null | null | restclients/sws/v5/notice.py | uw-it-cte/uw-restclients | 2b09348bf066e5508304401f93f281805e965af5 | [
"Apache-2.0"
] | null | null | null | restclients/sws/v5/notice.py | uw-it-cte/uw-restclients | 2b09348bf066e5508304401f93f281805e965af5 | [
"Apache-2.0"
] | null | null | null | """
Interfaceing with the Student Web Service,
for notice resource
"""
import copy
import logging
from restclients.models.sws import Notice, NoticeAttribute
from restclients.sws import get_resource
from dateutil import parser
import pytz
notice_res_url_prefix = "/student/v5/notice/"
logger = logging.getLogger(__name... | 33.944444 | 78 | 0.60491 | 335 | 3,055 | 5.271642 | 0.307463 | 0.047565 | 0.050963 | 0.0453 | 0.13137 | 0.07701 | 0.04077 | 0.04077 | 0 | 0 | 0 | 0.001429 | 0.312602 | 3,055 | 89 | 79 | 34.325843 | 0.839524 | 0.095254 | 0 | 0.065574 | 0 | 0 | 0.075819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065574 | false | 0.016393 | 0.098361 | 0 | 0.262295 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
705807e28589aed3f29367b0717ee4329f43b530 | 2,654 | py | Python | vulcan/_utils.py | v0idzz/vulcan-api | 1ae83d90236e678042a9f85f6c34b6bd82bf279f | [
"MIT"
] | 49 | 2019-01-10T22:10:19.000Z | 2022-01-10T17:07:51.000Z | vulcan/_utils.py | v0idzz/vulcan-api | 1ae83d90236e678042a9f85f6c34b6bd82bf279f | [
"MIT"
] | 47 | 2019-01-08T21:04:17.000Z | 2022-03-21T04:02:37.000Z | vulcan/_utils.py | v0idzz/vulcan-api | 1ae83d90236e678042a9f85f6c34b6bd82bf279f | [
"MIT"
] | 31 | 2019-05-04T14:05:33.000Z | 2021-11-01T18:51:16.000Z | # -*- coding: utf-8 -*-
import asyncio
import logging
import math
import platform
import time
import urllib
import uuid as _uuid
from datetime import datetime
import aiohttp
import requests
APP_NAME = "DzienniczekPlus 2.0"
APP_VERSION = "1.4.2"
APP_OS = "Android"
APP_USER_AGENT = "Dart/2.10 (dart:io)"
log = logging... | 23.280702 | 87 | 0.620573 | 338 | 2,654 | 4.786982 | 0.446746 | 0.004944 | 0.013597 | 0.02225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055365 | 0.230972 | 2,654 | 113 | 88 | 23.486726 | 0.737384 | 0.025622 | 0 | 0.025 | 0 | 0 | 0.212708 | 0.030221 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.0125 | 0.125 | 0.075 | 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 |
7058092211009357bacdd3e00eaae3ca9bf62a90 | 518 | py | Python | chkuser2.py | YousefAllam221b/QuickStor | 59cbbb6e7be358bde0adced49ba3f3ff9a92e6de | [
"Apache-2.0"
] | null | null | null | chkuser2.py | YousefAllam221b/QuickStor | 59cbbb6e7be358bde0adced49ba3f3ff9a92e6de | [
"Apache-2.0"
] | null | null | null | chkuser2.py | YousefAllam221b/QuickStor | 59cbbb6e7be358bde0adced49ba3f3ff9a92e6de | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3.6
import sys,etcdget,subprocess,time
with open('Data/chkuser2','w') as f:
f.write(str(sys.argv))
y=[]
z=[]
x=etcdget.etcdget('updlogged/'+sys.argv[1])
z.append(sys.argv[2])
y.append(x[0])
cmdline=['./pump.sh','UnixChkUser2']+sys.argv[1:]
result=subprocess.run(cmdline,stdout=subprocess.PIPE)
while f... | 27.263158 | 53 | 0.687259 | 92 | 518 | 3.869565 | 0.456522 | 0.13764 | 0.11236 | 0.146067 | 0.337079 | 0.337079 | 0.179775 | 0 | 0 | 0 | 0 | 0.039014 | 0.059846 | 518 | 18 | 54 | 28.777778 | 0.691992 | 0.03668 | 0 | 0 | 0 | 0 | 0.138554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
705a67e947bb08a691c95b9f12624b016023afa5 | 4,269 | py | Python | neural_network.py | harsh020/ml_subpack | d36e97922ec17d84526884555181045ad50e8809 | [
"MIT"
] | null | null | null | neural_network.py | harsh020/ml_subpack | d36e97922ec17d84526884555181045ad50e8809 | [
"MIT"
] | 6 | 2019-10-06T13:41:55.000Z | 2019-10-16T18:14:04.000Z | neural_network.py | harsh020/ml_subpack | d36e97922ec17d84526884555181045ad50e8809 | [
"MIT"
] | null | null | null | import numpy as np
from scipy.optimize import fmin_cg
from utils.optimize import gradient_desc, computeNumericalGradient
from utils.utility import sigmoid, sigmoid_grad, ravel, unravel
import sys
np.set_printoptions(threshold=sys.maxsize)
np.seterr(divide = 'ignore')
class NeuralNetwork:
def __init__(self, hidde... | 30.934783 | 127 | 0.539236 | 655 | 4,269 | 3.383206 | 0.19542 | 0.044224 | 0.064982 | 0.029783 | 0.3037 | 0.255415 | 0.244134 | 0.218863 | 0.189982 | 0.159747 | 0 | 0.023529 | 0.303115 | 4,269 | 137 | 128 | 31.160584 | 0.721345 | 0.134692 | 0 | 0.357143 | 0 | 0 | 0.001687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.059524 | 0 | 0.202381 | 0.011905 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
705b8955240faf6cb0cd184dc93e8b934d2a6298 | 6,192 | py | Python | stats.py | glommer/ghstats | bd874a05fb23f75aed0f0675a9929b5afdfd3f52 | [
"Apache-2.0"
] | null | null | null | stats.py | glommer/ghstats | bd874a05fb23f75aed0f0675a9929b5afdfd3f52 | [
"Apache-2.0"
] | null | null | null | stats.py | glommer/ghstats | bd874a05fb23f75aed0f0675a9929b5afdfd3f52 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import requests
import sys
import datetime
from dateutil.parser import parse
import argparse
class User:
cache = {}
def __init__(self, userurl, token):
headers = {'Authorization': 'token {}'.format(token)}
if userurl in User.cache:
self.info = User.cache[user... | 32.082902 | 150 | 0.580426 | 772 | 6,192 | 4.560881 | 0.260363 | 0.022721 | 0.011928 | 0.017609 | 0.193695 | 0.11758 | 0.103948 | 0.049418 | 0.049418 | 0.049418 | 0 | 0.010342 | 0.281654 | 6,192 | 192 | 151 | 32.25 | 0.78125 | 0.003391 | 0 | 0.114865 | 0 | 0.013514 | 0.17893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101351 | false | 0 | 0.033784 | 0.047297 | 0.25 | 0.101351 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
705da61ca28beb4cbccf634052b516bed03caf59 | 654 | py | Python | setup.py | fksato/vmz_interface | 985e7129f4bf266a6226dbc2b7e108dafc8b917a | [
"Apache-2.0"
] | null | null | null | setup.py | fksato/vmz_interface | 985e7129f4bf266a6226dbc2b7e108dafc8b917a | [
"Apache-2.0"
] | null | null | null | setup.py | fksato/vmz_interface | 985e7129f4bf266a6226dbc2b7e108dafc8b917a | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
requirements = [
"tqdm",
]
setup(
name='vmz_interface',
version='0.1.0',
packages=find_packages(exclude=['tests']),
url='https://github.com/fksato/vmz_interface',
author='Fukushi Sato',
author_email='f.kazuo.sato@gmail.com',
description='Facebook VMZ interface',
in... | 26.16 | 51 | 0.640673 | 69 | 654 | 5.985507 | 0.724638 | 0.087167 | 0.121065 | 0.125908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013566 | 0.211009 | 654 | 24 | 52 | 27.25 | 0.786822 | 0 | 0 | 0 | 0 | 0 | 0.474006 | 0.033639 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
705de60f199bd5095fe33004172b3313546ce5d4 | 3,132 | py | Python | api/v2/views/parties.py | Davidodari/POLITICO-API | 479560f7accc3a6e46a8cec34c4f435ae9284138 | [
"MIT"
] | 1 | 2019-09-05T23:20:21.000Z | 2019-09-05T23:20:21.000Z | api/v2/views/parties.py | Davidodari/POLITICO-API | 479560f7accc3a6e46a8cec34c4f435ae9284138 | [
"MIT"
] | 4 | 2019-02-12T10:06:12.000Z | 2019-02-20T05:00:40.000Z | api/v2/views/parties.py | Davidodari/POLITICO-API | 479560f7accc3a6e46a8cec34c4f435ae9284138 | [
"MIT"
] | 4 | 2019-02-08T23:54:24.000Z | 2019-02-19T16:26:59.000Z | from flask import Blueprint, request, jsonify, make_response
from api.v2.models.parties import PartiesModelDb
from flask_jwt_extended import jwt_required
from . import check_user, id_conversion, resource_handler
parties_api_v2 = Blueprint('parties_v2', __name__, url_prefix="/api/v2")
@parties_api_v2.route("/parties"... | 44.742857 | 119 | 0.664112 | 395 | 3,132 | 5.043038 | 0.235443 | 0.072289 | 0.099398 | 0.138052 | 0.559237 | 0.536145 | 0.461847 | 0.26506 | 0.182731 | 0.182731 | 0 | 0.034783 | 0.192209 | 3,132 | 69 | 120 | 45.391304 | 0.752569 | 0 | 0 | 0.224138 | 0 | 0 | 0.202746 | 0.007663 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086207 | false | 0 | 0.068966 | 0 | 0.362069 | 0.051724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
705e3b446233d2f6c1287b4611d5abe26c570d0a | 1,307 | py | Python | demo.py | Li-Pro/Clipboard | 329be81902d6fc5e29e60c85d660a86055e5c3ac | [
"MIT"
] | 2 | 2020-05-20T06:34:33.000Z | 2020-05-30T02:32:37.000Z | demo.py | Li-Pro/Clipboarder | 329be81902d6fc5e29e60c85d660a86055e5c3ac | [
"MIT"
] | null | null | null | demo.py | Li-Pro/Clipboarder | 329be81902d6fc5e29e60c85d660a86055e5c3ac | [
"MIT"
] | null | null | null | from pathlib import Path
import re
import time
from capture import getClipboardImage, NoImageData
PATHNAME_REGEX = re.compile(r'(\w+\.*)*\w')
def regexMatch(regex, s):
return regex.fullmatch(s) != None
def imgCompare(img1, img2):
if (not img1) or (not img2):
return False
h, w = img1.size
if not img2.size ==... | 18.671429 | 54 | 0.651875 | 173 | 1,307 | 4.890173 | 0.473988 | 0.017731 | 0.033097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011639 | 0.211171 | 1,307 | 70 | 55 | 18.671429 | 0.808923 | 0.022188 | 0 | 0.16 | 0 | 0 | 0.083203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.08 | 0.02 | 0.22 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
706002b48666a37499861a75991efe6d866c08af | 1,288 | py | Python | document/code/exo_demo_1/results.py | lebrice/george | 14c4c89906c770528dad2b80973aab0320141fe5 | [
"MIT"
] | 9 | 2018-01-20T16:51:30.000Z | 2020-12-06T22:13:44.000Z | document/code/exo_demo_1/results.py | lebrice/george | 14c4c89906c770528dad2b80973aab0320141fe5 | [
"MIT"
] | null | null | null | document/code/exo_demo_1/results.py | lebrice/george | 14c4c89906c770528dad2b80973aab0320141fe5 | [
"MIT"
] | 4 | 2017-08-31T21:59:56.000Z | 2022-03-03T20:01:42.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function
__all__ = ["results"]
import os
import triangle
import numpy as np
import cPickle as pickle
import matplotlib.pyplot as pl
def results(fn):
model, sampler = pickle.load(open(fn, "rb"))
mu = np.median(model.f)
... | 27.404255 | 69 | 0.632764 | 199 | 1,288 | 3.9799 | 0.532663 | 0.037879 | 0.022727 | 0.040404 | 0.068182 | 0.068182 | 0.068182 | 0 | 0 | 0 | 0 | 0.032195 | 0.204193 | 1,288 | 46 | 70 | 28 | 0.740488 | 0.078416 | 0 | 0 | 0 | 0 | 0.080372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.233333 | 0 | 0.266667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
706047b9ae6c7b0c95aae34cd316a11a431e74e3 | 2,681 | py | Python | vae/model_torch.py | tpvt99/sbcs5478 | 56e4a70462691a40252d7f51da7c45d44d9ca822 | [
"MIT"
] | null | null | null | vae/model_torch.py | tpvt99/sbcs5478 | 56e4a70462691a40252d7f51da7c45d44d9ca822 | [
"MIT"
] | null | null | null | vae/model_torch.py | tpvt99/sbcs5478 | 56e4a70462691a40252d7f51da7c45d44d9ca822 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import numpy as np
class Encoder(nn.Module):
"""Maps MNIST digits to a triplet (z_mean, z_log_var, z)."""
def __init__(self, latent_dim, input_shape, name="encoder", **kwargs):
super(Encoder, self).__init__()
self.dense_proj = nn.Sequential(
nn.... | 35.746667 | 138 | 0.603133 | 370 | 2,681 | 4.162162 | 0.232432 | 0.014286 | 0.058442 | 0.054545 | 0.385714 | 0.361688 | 0.361688 | 0.34026 | 0.294805 | 0.294805 | 0 | 0.054699 | 0.249907 | 2,681 | 74 | 139 | 36.22973 | 0.711089 | 0.08094 | 0 | 0.196429 | 0 | 0 | 0.010221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.053571 | 0.017857 | 0.267857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
70634f2f852c70987a8353d2bd23f6aa46115566 | 2,277 | py | Python | pymetamap/MetaMapLite.py | liquet-ai/pymetamap | 05db8f9625cb1f3b8e4b5e2133624ba799b86a1b | [
"Apache-2.0"
] | 151 | 2015-01-26T21:11:07.000Z | 2022-03-02T08:16:24.000Z | pymetamap/MetaMapLite.py | liquet-ai/pymetamap | 05db8f9625cb1f3b8e4b5e2133624ba799b86a1b | [
"Apache-2.0"
] | 47 | 2016-03-05T11:45:54.000Z | 2022-01-25T17:48:14.000Z | pymetamap/MetaMapLite.py | liquet-ai/pymetamap | 05db8f9625cb1f3b8e4b5e2133624ba799b86a1b | [
"Apache-2.0"
] | 69 | 2015-07-09T02:56:16.000Z | 2021-12-04T17:49:20.000Z | # 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, software
# distributed under the Li... | 44.647059 | 131 | 0.709267 | 297 | 2,277 | 5.306397 | 0.464646 | 0.132614 | 0.076142 | 0.055838 | 0.118655 | 0.084391 | 0.064721 | 0.064721 | 0.064721 | 0.064721 | 0 | 0.003911 | 0.213878 | 2,277 | 50 | 132 | 45.54 | 0.876536 | 0.38823 | 0 | 0 | 0 | 0 | 0.231058 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 1 | 0.130435 | false | 0 | 0.173913 | 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 |
7063fade463f2ff5785707f51f17ad043d668b7e | 1,779 | py | Python | examples/chi2_fit.py | HDembinski/pyik | fc9e87dec88484458479225c1ec2357ff48b5bb7 | [
"BSD-3-Clause"
] | 11 | 2018-04-16T08:07:11.000Z | 2022-02-14T15:19:22.000Z | examples/chi2_fit.py | HDembinski/pyik | fc9e87dec88484458479225c1ec2357ff48b5bb7 | [
"BSD-3-Clause"
] | 10 | 2018-04-09T13:57:16.000Z | 2019-04-28T11:28:55.000Z | examples/chi2_fit.py | HDembinski/pyik | fc9e87dec88484458479225c1ec2357ff48b5bb7 | [
"BSD-3-Clause"
] | 4 | 2017-09-22T10:24:57.000Z | 2020-11-24T10:24:30.000Z | # -*- coding: utf-8 -*-
"""
This example demonstrates fitting a model to a (simulated) dataset using
numpyext.chi2_fit, which wraps Minuit.
"""
import numpy as np
from matplotlib import pyplot
from pyik.fit import ChiSquareFunction
from pyik.mplext import cornertext
np.random.seed(1)
def model(x, pars):
"""A sli... | 25.782609 | 94 | 0.649241 | 305 | 1,779 | 3.721311 | 0.422951 | 0.021145 | 0.015859 | 0.014097 | 0.075771 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039392 | 0.186622 | 1,779 | 68 | 95 | 26.161765 | 0.74499 | 0.289488 | 0 | 0 | 0 | 0 | 0.07649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.1 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
70649b12e8177f792e96cdeb6bd72018b6de7576 | 5,406 | py | Python | Python/esys/lsm/doc/Overview.py | danielfrascarelli/esys-particle | e56638000fd9c4af77e21c75aa35a4f8922fd9f0 | [
"Apache-2.0"
] | null | null | null | Python/esys/lsm/doc/Overview.py | danielfrascarelli/esys-particle | e56638000fd9c4af77e21c75aa35a4f8922fd9f0 | [
"Apache-2.0"
] | null | null | null | Python/esys/lsm/doc/Overview.py | danielfrascarelli/esys-particle | e56638000fd9c4af77e21c75aa35a4f8922fd9f0 | [
"Apache-2.0"
] | null | null | null | #############################################################
## ##
## Copyright (c) 2003-2017 by The University of Queensland ##
## Centre for Geoscience Computing ##
## http://earth.uq.edu.au/centre-geoscience-computing ##
## ... | 34.653846 | 100 | 0.699593 | 639 | 5,406 | 5.885759 | 0.397496 | 0.041478 | 0.044669 | 0.011167 | 0.174688 | 0.129753 | 0.095719 | 0.095719 | 0.070726 | 0.070726 | 0 | 0.01682 | 0.197188 | 5,406 | 155 | 101 | 34.877419 | 0.84977 | 0.071032 | 0 | 0 | 0 | 0 | 0.208817 | 0.062645 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7066c0de46a9cb6cbb4bbc49dad20327a5f51884 | 4,483 | py | Python | tour5_damage_bond/damage2d_explorer.py | bmcs-group/bmcs_tutorial | 4e008e72839fad8820a6b663a20d3f188610525d | [
"MIT"
] | null | null | null | tour5_damage_bond/damage2d_explorer.py | bmcs-group/bmcs_tutorial | 4e008e72839fad8820a6b663a20d3f188610525d | [
"MIT"
] | null | null | null | tour5_damage_bond/damage2d_explorer.py | bmcs-group/bmcs_tutorial | 4e008e72839fad8820a6b663a20d3f188610525d | [
"MIT"
] | null | null | null |
import numpy as np
import sympy as sp
import bmcs_utils.api as bu
from bmcs_cross_section.pullout import MATS1D5BondSlipD
s_x, s_y = sp.symbols('s_x, s_y')
kappa_ = sp.sqrt( s_x**2 + s_y**2 )
get_kappa = sp.lambdify( (s_x, s_y), kappa_, 'numpy' )
def get_tau_s(s_x_n1, s_y_n1, Eps_n, bs, **kw):
'''Get the stress ... | 33.706767 | 89 | 0.602052 | 871 | 4,483 | 2.746269 | 0.166475 | 0.022575 | 0.016722 | 0.018813 | 0.30811 | 0.228679 | 0.144231 | 0.104097 | 0.074833 | 0.074833 | 0 | 0.040261 | 0.246487 | 4,483 | 132 | 90 | 33.962121 | 0.667851 | 0.023422 | 0 | 0.072727 | 0 | 0 | 0.043249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.036364 | 0 | 0.281818 | 0.009091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
706745eb0046576ce77b57a2d81861de6f37d9a2 | 2,042 | py | Python | plugins/hanime.py | streamlink-plugins/streamlink-plugins | 64a3dd5d98a94cf5e61f0faa22821f58c6be9258 | [
"Unlicense"
] | 1 | 2021-08-17T07:26:59.000Z | 2021-08-17T07:26:59.000Z | plugins/hanime.py | streamlink-plugins/streamlink-plugins | 64a3dd5d98a94cf5e61f0faa22821f58c6be9258 | [
"Unlicense"
] | 1 | 2021-07-20T05:56:21.000Z | 2021-08-05T00:07:45.000Z | plugins/hanime.py | streamlink-plugins/streamlink-plugins | 64a3dd5d98a94cf5e61f0faa22821f58c6be9258 | [
"Unlicense"
] | null | null | null | import re
from streamlink.plugin import Plugin, pluginmatcher
from streamlink.plugin.api import validate
from streamlink.stream import HLSStream
_post_schema = validate.Schema({
'hentai_video': validate.Schema({
'name': validate.text,
'is_visible': bool
}),
'videos_... | 29.171429 | 102 | 0.539667 | 235 | 2,042 | 4.6 | 0.382979 | 0.064755 | 0.037003 | 0.016651 | 0.038853 | 0.038853 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0.31048 | 2,042 | 69 | 103 | 29.594203 | 0.744318 | 0 | 0 | 0.148148 | 0 | 0.055556 | 0.210088 | 0.029873 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0.055556 | 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 |
706c68208b42d394b8a5aacf46f45e4eb99996af | 2,712 | py | Python | src/tests/test_pagure_flask_ui_app_index.py | yifengyou/learn-pagure | e54ba955368918c92ad2be6347b53bb2c24a228c | [
"Unlicense"
] | null | null | null | src/tests/test_pagure_flask_ui_app_index.py | yifengyou/learn-pagure | e54ba955368918c92ad2be6347b53bb2c24a228c | [
"Unlicense"
] | null | null | null | src/tests/test_pagure_flask_ui_app_index.py | yifengyou/learn-pagure | e54ba955368918c92ad2be6347b53bb2c24a228c | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
"""
(c) 2017 - Copyright Red Hat Inc
Authors:
Pierre-Yves Chibon <pingou@pingoured.fr>
"""
from __future__ import unicode_literals, absolute_import
import datetime
import unittest
import shutil
import sys
import os
import six
import json
import pygit2
from mock import patch, MagicMock... | 28.547368 | 71 | 0.598451 | 329 | 2,712 | 4.796353 | 0.410334 | 0.038023 | 0.035488 | 0.030418 | 0.363118 | 0.325095 | 0.292776 | 0.249683 | 0.249683 | 0.249683 | 0 | 0.019497 | 0.281342 | 2,712 | 94 | 72 | 28.851064 | 0.790149 | 0.122419 | 0 | 0.290323 | 0 | 0 | 0.220835 | 0.074903 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.032258 | false | 0 | 0.193548 | 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 |
706c9213e500aaaf1819246602b29a0148ed5c14 | 3,255 | py | Python | src/server/message-distributor/message-distributor.py | fredsongyu/mmitss-az | 62fb59a9e5a19f62a1096971f3cc0ecc04599106 | [
"Apache-2.0"
] | 10 | 2018-12-05T14:48:59.000Z | 2022-02-17T02:10:51.000Z | src/server/message-distributor/message-distributor.py | fredsongyu/mmitss-az | 62fb59a9e5a19f62a1096971f3cc0ecc04599106 | [
"Apache-2.0"
] | null | null | null | src/server/message-distributor/message-distributor.py | fredsongyu/mmitss-az | 62fb59a9e5a19f62a1096971f3cc0ecc04599106 | [
"Apache-2.0"
] | 8 | 2018-11-16T06:38:25.000Z | 2022-03-09T18:22:59.000Z | '''
***************************************************************************************
© 2019 Arizona Board of Regents on behalf of the University of Arizona with rights
granted for USDOT OSADP distribution with the Apache 2.0 open source license.
*********************************************************... | 40.6875 | 115 | 0.623656 | 314 | 3,255 | 6.417197 | 0.442675 | 0.032754 | 0.08933 | 0.03871 | 0.249132 | 0.148883 | 0.148883 | 0.148883 | 0.108189 | 0.061538 | 0 | 0.006904 | 0.154531 | 3,255 | 80 | 116 | 40.6875 | 0.724927 | 0.208909 | 0 | 0.2 | 0 | 0.018182 | 0.318925 | 0.156153 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
706f77988f356002f78f82f354138db4b26d737c | 2,989 | py | Python | Section_16 _Orientacao_a_objeto/execicios/ex02.py | thiagofreitascarneiro/Python_OOP | 037621e334ec7159fe0da937db8418eba6321bdd | [
"MIT"
] | null | null | null | Section_16 _Orientacao_a_objeto/execicios/ex02.py | thiagofreitascarneiro/Python_OOP | 037621e334ec7159fe0da937db8418eba6321bdd | [
"MIT"
] | null | null | null | Section_16 _Orientacao_a_objeto/execicios/ex02.py | thiagofreitascarneiro/Python_OOP | 037621e334ec7159fe0da937db8418eba6321bdd | [
"MIT"
] | null | null | null | '''
Crie uma classe Agenda que pode armazenar 10 pessoas e seja capaz de realizar as
seguintes operações:
* void armazenaPessoa(String nome, int idade, float altura);
* void removePessoa(String nome);
* int buscaPessoa(String nome); // informa em que posição da agenda está a pessoa
* void imprimeAgenda... | 27.675926 | 142 | 0.641352 | 404 | 2,989 | 4.586634 | 0.272277 | 0.041554 | 0.029682 | 0.040475 | 0.190502 | 0.164598 | 0.147868 | 0.147868 | 0.117647 | 0.117647 | 0 | 0.017188 | 0.240883 | 2,989 | 107 | 143 | 27.934579 | 0.799471 | 0.222817 | 0 | 0.188679 | 0 | 0.056604 | 0.281727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0 | 0 | 0 | 0.169811 | 0.264151 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
706f947075d48d6e639e35f385287b783e8a5945 | 3,148 | py | Python | get_feature.py | 1895-art/stock-price-predict | 951a632cd397e969229d793e0c23f0575d154240 | [
"MIT"
] | 95 | 2018-07-15T10:04:27.000Z | 2022-03-24T11:49:18.000Z | get_feature.py | 1895-art/stock-price-predict | 951a632cd397e969229d793e0c23f0575d154240 | [
"MIT"
] | 3 | 2019-01-18T08:09:57.000Z | 2020-01-07T13:19:32.000Z | get_feature.py | kaka-lin/stock-price-predict | 951a632cd397e969229d793e0c23f0575d154240 | [
"MIT"
] | 27 | 2018-08-07T05:17:05.000Z | 2021-06-20T01:53:38.000Z | import getopt, sys, os
import csv
import pandas as pd
import locale
from locale import atof
locale.setlocale(locale.LC_NUMERIC, '')
def main():
try:
opts, args = getopt.getopt(sys.argv[1:], "ho:v:f:", ["help", "output=", "filepath"])
except getopt.GetoptError as err:
usage()
sys.exit(... | 26.233333 | 101 | 0.495553 | 371 | 3,148 | 4.091644 | 0.350404 | 0.027668 | 0.039526 | 0.028986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006235 | 0.337675 | 3,148 | 119 | 102 | 26.453782 | 0.721823 | 0.043202 | 0 | 0.022727 | 0 | 0 | 0.124654 | 0.016621 | 0 | 0 | 0 | 0 | 0.011364 | 1 | 0.045455 | false | 0 | 0.056818 | 0 | 0.125 | 0.011364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7070e1e2b4357ac3610eef2cb5402b0e25e73572 | 13,883 | py | Python | resources/lib/api/api_requests.py | sajo84/plugin.video.netflix | 757cd2866f2c89c777d12a2772484fe675743543 | [
"MIT"
] | null | null | null | resources/lib/api/api_requests.py | sajo84/plugin.video.netflix | 757cd2866f2c89c777d12a2772484fe675743543 | [
"MIT"
] | null | null | null | resources/lib/api/api_requests.py | sajo84/plugin.video.netflix | 757cd2866f2c89c777d12a2772484fe675743543 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Copyright (C) 2017 Sebastian Golasch (plugin.video.netflix)
Copyright (C) 2018 Caphm (original implementation module)
Methods to execute requests to Netflix API
SPDX-License-Identifier: MIT
See LICENSES/MIT.md for more information.
"""
from __future__ import absolute_imp... | 40.832353 | 119 | 0.644961 | 1,669 | 13,883 | 5.180947 | 0.23547 | 0.017347 | 0.019429 | 0.035619 | 0.345091 | 0.304152 | 0.254192 | 0.189777 | 0.180062 | 0.163294 | 0 | 0.010429 | 0.247137 | 13,883 | 339 | 120 | 40.952802 | 0.816877 | 0.258806 | 0 | 0.364807 | 0 | 0 | 0.12205 | 0.012837 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077253 | false | 0.025751 | 0.042918 | 0 | 0.193133 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
70727332781524d67d9e08873ec4e97cf38aa95f | 6,578 | py | Python | projects/wgan/gaussian_gan.py | niujinshuchong/stochastic_processes | ea2538d2f09c39bec1834df5addd37e0699a88bf | [
"MIT"
] | null | null | null | projects/wgan/gaussian_gan.py | niujinshuchong/stochastic_processes | ea2538d2f09c39bec1834df5addd37e0699a88bf | [
"MIT"
] | null | null | null | projects/wgan/gaussian_gan.py | niujinshuchong/stochastic_processes | ea2538d2f09c39bec1834df5addd37e0699a88bf | [
"MIT"
] | null | null | null | import argparse
import os
import numpy as np
import math
import sys
import matplotlib.pyplot as plt
import torchvision.transforms as transforms
from torchvision.utils import save_image
import random
from math import *
from torch.utils.data import DataLoader
from torchvision import datasets
from torch.autograd import Va... | 33.390863 | 129 | 0.594862 | 871 | 6,578 | 4.359357 | 0.257176 | 0.023703 | 0.044772 | 0.014222 | 0.08454 | 0.060047 | 0.030024 | 0.016855 | 0 | 0 | 0 | 0.030511 | 0.267559 | 6,578 | 196 | 130 | 33.561224 | 0.757576 | 0.074187 | 0 | 0.045113 | 0 | 0.007519 | 0.087838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.12782 | 0 | 0.233083 | 0.015038 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
707383f583ad7bbda06c20e6e87636595bd3dd55 | 1,302 | py | Python | _669.py | elfgzp/leetCode | 964c6574d310a9a6c486bf638487fd2f72b83b3f | [
"MIT"
] | 3 | 2019-04-12T06:22:56.000Z | 2019-05-04T04:25:01.000Z | _669.py | elfgzp/Leetcode | 964c6574d310a9a6c486bf638487fd2f72b83b3f | [
"MIT"
] | null | null | null | _669.py | elfgzp/Leetcode | 964c6574d310a9a6c486bf638487fd2f72b83b3f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = 'gzp'
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
from utils import Tree
class Solution(object):
def trimBST(self, root, L, R):
"""
:... | 22.067797 | 52 | 0.523041 | 178 | 1,302 | 3.685393 | 0.280899 | 0.021341 | 0.091463 | 0.030488 | 0.460366 | 0.460366 | 0.329268 | 0.329268 | 0.25 | 0.143293 | 0 | 0.015152 | 0.341014 | 1,302 | 58 | 53 | 22.448276 | 0.749417 | 0.236559 | 0 | 0.24 | 0 | 0 | 0.012318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.32 | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7074d22367368afc1491da30cd43502d5330386e | 3,895 | py | Python | spiders/a85.py | senlyu163/crawler | ecf95f7b356c726922b5e5d90000fda3e16ae90d | [
"Apache-2.0"
] | null | null | null | spiders/a85.py | senlyu163/crawler | ecf95f7b356c726922b5e5d90000fda3e16ae90d | [
"Apache-2.0"
] | null | null | null | spiders/a85.py | senlyu163/crawler | ecf95f7b356c726922b5e5d90000fda3e16ae90d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from ..utils import extract_CN_from_content
from ..items import ScrapySpiderItem
import re
from scrapy_splash import SplashRequest
class A85Spider(CrawlSpider):
name = '85'
allowe... | 44.261364 | 149 | 0.567394 | 475 | 3,895 | 4.568421 | 0.267368 | 0.070507 | 0.081106 | 0.084793 | 0.501382 | 0.501382 | 0.484793 | 0.482488 | 0.467281 | 0.44424 | 0 | 0.010175 | 0.268293 | 3,895 | 87 | 150 | 44.770115 | 0.751228 | 0.137099 | 0 | 0.31746 | 0 | 0.047619 | 0.174836 | 0.103407 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.111111 | 0 | 0.285714 | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
70755d5d03c099f6085f0bb0e914a4c7034022e9 | 2,589 | py | Python | skeleton/functional.py | dogoncouch/dogoncouch-misc | 46e020cc541cc6cf19edc0114a73f24e96ce15d0 | [
"MIT"
] | 3 | 2020-02-05T07:25:01.000Z | 2021-12-24T20:08:03.000Z | skeleton/functional.py | dogoncouch/dogoncouch-misc | 46e020cc541cc6cf19edc0114a73f24e96ce15d0 | [
"MIT"
] | null | null | null | skeleton/functional.py | dogoncouch/dogoncouch-misc | 46e020cc541cc6cf19edc0114a73f24e96ce15d0 | [
"MIT"
] | 2 | 2018-02-24T18:59:29.000Z | 2020-06-14T15:15:19.000Z | #!/usr/bin/env python
# MIT License
#
# Copyright (c) 2017 Dan Persons (dpersonsdev@gmail.com)
#
# 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 limi... | 28.450549 | 80 | 0.679413 | 341 | 2,589 | 5.052786 | 0.486804 | 0.051074 | 0.027858 | 0.046431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002996 | 0.226342 | 2,589 | 90 | 81 | 28.766667 | 0.857214 | 0.467362 | 0 | 0 | 0 | 0 | 0.151085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.025 | 0.1 | 0 | 0.25 | 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 |
7076835d176f91ff169e5946974bfd4dbfe39989 | 14,077 | py | Python | src/silx/gui/plot/tools/RadarView.py | rnwatanabe/silx | b0395f4a06c048b7778dc04ada828edd195ef02d | [
"CC0-1.0",
"MIT"
] | 94 | 2016-03-04T17:25:53.000Z | 2022-03-18T18:05:23.000Z | src/silx/gui/plot/tools/RadarView.py | rnwatanabe/silx | b0395f4a06c048b7778dc04ada828edd195ef02d | [
"CC0-1.0",
"MIT"
] | 2,841 | 2016-01-21T09:06:49.000Z | 2022-03-18T14:53:56.000Z | src/silx/gui/plot/tools/RadarView.py | rnwatanabe/silx | b0395f4a06c048b7778dc04ada828edd195ef02d | [
"CC0-1.0",
"MIT"
] | 71 | 2015-09-30T08:35:35.000Z | 2022-03-16T07:16:28.000Z | # coding: utf-8
# /*##########################################################################
#
# Copyright (c) 2015-2018 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to d... | 38.88674 | 84 | 0.617674 | 1,564 | 14,077 | 5.438619 | 0.257673 | 0.014108 | 0.011286 | 0.016929 | 0.22925 | 0.181754 | 0.143193 | 0.126734 | 0.107924 | 0.093581 | 0 | 0.006613 | 0.280244 | 14,077 | 361 | 85 | 38.99446 | 0.832906 | 0.275556 | 0 | 0.228155 | 0 | 0 | 0.013498 | 0 | 0 | 0 | 0 | 0.00277 | 0.004854 | 1 | 0.106796 | false | 0 | 0.019417 | 0.004854 | 0.228155 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
707748746f67df072b8d127ebd45987c9f4adb01 | 1,486 | py | Python | purly/py/purly/model/client.py | rmorshea/purly | 0d07d6d7636fd81d9c1c14e2df6a32fc28b325f7 | [
"MIT"
] | 2 | 2018-08-18T05:39:24.000Z | 2018-08-21T19:02:16.000Z | purly/py/purly/model/client.py | rmorshea/purly | 0d07d6d7636fd81d9c1c14e2df6a32fc28b325f7 | [
"MIT"
] | 2 | 2018-07-27T07:14:19.000Z | 2018-07-27T07:17:06.000Z | purly/py/purly/model/client.py | rmorshea/purly | 0d07d6d7636fd81d9c1c14e2df6a32fc28b325f7 | [
"MIT"
] | null | null | null | import json
import time
import websocket
class Client:
def __init__(self, url):
self._url = url
self._updates = []
self._socket = create_socket(url, connection_timeout=2)
def sync(self):
recv = []
while True:
data = self._socket.recv()
if data:... | 26.070175 | 73 | 0.520188 | 150 | 1,486 | 5 | 0.4 | 0.073333 | 0.050667 | 0.061333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010718 | 0.37214 | 1,486 | 56 | 74 | 26.535714 | 0.79314 | 0 | 0 | 0.148936 | 0 | 0 | 0.036339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12766 | false | 0 | 0.06383 | 0 | 0.234043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
707aa505d5a6e2672f86a0292a8b2705393bee85 | 1,232 | py | Python | practice_problems/prog4_vi.py | vishwasks32/python3-learning | 39f39238428727ef0c97c74c8de2570bd84da403 | [
"Apache-2.0"
] | 3 | 2018-02-08T21:09:27.000Z | 2021-06-15T04:48:46.000Z | practice_problems/prog4_vi.py | vishwasks32/python3-learning | 39f39238428727ef0c97c74c8de2570bd84da403 | [
"Apache-2.0"
] | null | null | null | practice_problems/prog4_vi.py | vishwasks32/python3-learning | 39f39238428727ef0c97c74c8de2570bd84da403 | [
"Apache-2.0"
] | 1 | 2018-02-08T21:09:31.000Z | 2018-02-08T21:09:31.000Z | #!/usr/bin/env python3
#
# Author: Vishwas K Singh
# Email: vishwasks32@gmail.com
#
# Script to convert Celcius Temperature to Farenheit
def temp_conv(temp_type, temp_val):
''' Function to convert Temperature from Celcius to farenheit
and vice versa'''
if(temp_type == 'f'):
temp_faren = ((9/5)*t... | 35.2 | 98 | 0.647727 | 170 | 1,232 | 4.470588 | 0.358824 | 0.082895 | 0.047368 | 0.063158 | 0.248684 | 0.190789 | 0.094737 | 0.094737 | 0.094737 | 0 | 0 | 0.020063 | 0.231331 | 1,232 | 34 | 99 | 36.235294 | 0.782471 | 0.160714 | 0 | 0 | 0 | 0 | 0.312932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0 | 0 | 0.130435 | 0.217391 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
707b95b9e394fd7ccab1823b73b68b69754eb13a | 696 | py | Python | 2020/09/part1.py | timofurrer/aoc-2020 | 446b688a57601d9891f520e43b7f822c373a6ff4 | [
"MIT"
] | null | null | null | 2020/09/part1.py | timofurrer/aoc-2020 | 446b688a57601d9891f520e43b7f822c373a6ff4 | [
"MIT"
] | null | null | null | 2020/09/part1.py | timofurrer/aoc-2020 | 446b688a57601d9891f520e43b7f822c373a6ff4 | [
"MIT"
] | null | null | null | import os
import sys
puzzle_input_path = os.path.join(os.path.dirname(__file__), "input_1.txt")
with open(puzzle_input_path) as puzzle_input_file:
puzzle_input_raw = puzzle_input_file.read()
preamble = 25
numbers = [int(x) for x in puzzle_input_raw.splitlines()]
number = next(
n
for i, n
in enumera... | 29 | 81 | 0.70546 | 111 | 696 | 4.207207 | 0.36036 | 0.141328 | 0.06424 | 0.111349 | 0.248394 | 0.167024 | 0 | 0 | 0 | 0 | 0 | 0.005282 | 0.183908 | 696 | 24 | 82 | 29 | 0.816901 | 0.327586 | 0 | 0 | 0 | 0 | 0.023758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
707ebe5c40335557036acfbcae3d06ae69d50f9a | 2,642 | py | Python | app/dapp_examples/py/media_analysis/image_quality/App.py | TheAdamBC/AdamBC | e854a64c19442e24a50e4d65ce2f2e8f6ea46f4c | [
"BSD-3-Clause"
] | 1 | 2021-12-14T07:28:46.000Z | 2021-12-14T07:28:46.000Z | app/dapp_examples/py/media_analysis/image_quality/App.py | TheAdamBC/AdamBC | e854a64c19442e24a50e4d65ce2f2e8f6ea46f4c | [
"BSD-3-Clause"
] | null | null | null | app/dapp_examples/py/media_analysis/image_quality/App.py | TheAdamBC/AdamBC | e854a64c19442e24a50e4d65ce2f2e8f6ea46f4c | [
"BSD-3-Clause"
] | null | null | null | #**
# * The Decentralized App (DApp):
# * This is where the App developer writes the decentralized app.
# * Make sure the code is written within the specified space region.
# *
# * IMPORTANT:
# * 1. Developer DApp CODE MUST BE WRITTEN WITHIN SPECIFIED SPACE REGION.
# * 2. DApp MUST return values through the 'results'... | 33.443038 | 142 | 0.623391 | 335 | 2,642 | 4.901493 | 0.450746 | 0.014616 | 0.025579 | 0.023143 | 0.112058 | 0.084044 | 0.084044 | 0.084044 | 0.084044 | 0.084044 | 0 | 0.013538 | 0.161241 | 2,642 | 78 | 143 | 33.871795 | 0.727437 | 0.641559 | 0 | 0.133333 | 0 | 0 | 0.198901 | 0.059341 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
70811820b7b88435ba6e11176b752f15dc282feb | 1,142 | py | Python | tests/conftest.py | jmolmo/managed-tenants-cli | fb3dd79f6629884577aa7333fdfe8d78802a79d4 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | jmolmo/managed-tenants-cli | fb3dd79f6629884577aa7333fdfe8d78802a79d4 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | jmolmo/managed-tenants-cli | fb3dd79f6629884577aa7333fdfe8d78802a79d4 | [
"Apache-2.0"
] | 1 | 2021-09-02T10:11:52.000Z | 2021-09-02T10:11:52.000Z | # Configure different hypothesis profiles
import os
from hypothesis import HealthCheck, Phase, settings
FAST_PROFILE = "fast"
CI_PROFILE = "ci"
# 'fast' profile for local development
settings.register_profile(
FAST_PROFILE,
# Set to true for test reproducibility
# https://hypothesis.readthedocs.io/en/la... | 29.282051 | 95 | 0.748687 | 146 | 1,142 | 5.726027 | 0.486301 | 0.052632 | 0.064593 | 0.066986 | 0.277512 | 0.203349 | 0.114833 | 0.114833 | 0 | 0 | 0 | 0.005139 | 0.147986 | 1,142 | 38 | 96 | 30.052632 | 0.85406 | 0.402802 | 0 | 0.434783 | 0 | 0 | 0.064179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
70824a33f97bb12dc07fe121ae5ed43e23d5b01c | 2,994 | py | Python | src/python/exsim3.py | akafael/unb-controle-digital | 4c4915eb1c4d070886284c0f79ce3ee26ece8695 | [
"MIT"
] | null | null | null | src/python/exsim3.py | akafael/unb-controle-digital | 4c4915eb1c4d070886284c0f79ce3ee26ece8695 | [
"MIT"
] | null | null | null | src/python/exsim3.py | akafael/unb-controle-digital | 4c4915eb1c4d070886284c0f79ce3ee26ece8695 | [
"MIT"
] | null | null | null | """
Laboratory Experiment 3 - Script
- Rootlocus project
@author Rafael Lima
"""
from sympy import *
def simplifyFraction(G,s):
"""
Expand numerator and denominator from given fraction
"""
num,den = fraction(G.expand().simplify())
num = Poly(num,s)
den = Poly(den,s)
return (num/den)... | 23.761905 | 167 | 0.660655 | 461 | 2,994 | 4.273319 | 0.331887 | 0.007107 | 0.01066 | 0.030457 | 0.130964 | 0.109645 | 0.109645 | 0.074112 | 0.074112 | 0 | 0 | 0.090229 | 0.152305 | 2,994 | 125 | 168 | 23.952 | 0.685973 | 0.238143 | 0 | 0 | 0 | 0 | 0.011797 | 0 | 0 | 0 | 0 | 0.008 | 0 | 1 | 0.053571 | false | 0 | 0.017857 | 0 | 0.125 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
708413de75cff9f09c32fc7eec77271bf88e6168 | 2,698 | py | Python | model/decoder.py | kefirski/hybrid_rvae | 39133e656eeb05c998422e5ad9bfadc913c81b44 | [
"MIT"
] | 23 | 2017-10-24T01:30:07.000Z | 2021-11-15T04:14:02.000Z | model/decoder.py | analvikingur/hybrid_rvae | 39133e656eeb05c998422e5ad9bfadc913c81b44 | [
"MIT"
] | 1 | 2017-08-20T00:34:23.000Z | 2017-08-21T08:03:30.000Z | model/decoder.py | analvikingur/hybrid_rvae | 39133e656eeb05c998422e5ad9bfadc913c81b44 | [
"MIT"
] | 13 | 2017-08-22T15:35:00.000Z | 2021-11-19T01:24:33.000Z | import torch as t
import torch.nn as nn
import torch.nn.functional as F
class Decoder(nn.Module):
def __init__(self, vocab_size, latent_variable_size, rnn_size, rnn_num_layers, embed_size):
super(Decoder, self).__init__()
self.vocab_size = vocab_size
self.latent_variable_size = latent_var... | 34.589744 | 99 | 0.626019 | 353 | 2,698 | 4.518414 | 0.229462 | 0.105329 | 0.048903 | 0.068966 | 0.221944 | 0.160502 | 0.160502 | 0.160502 | 0 | 0 | 0 | 0.041453 | 0.27576 | 2,698 | 77 | 100 | 35.038961 | 0.774821 | 0.127131 | 0 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0 | 0.061224 | 0 | 0.22449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7084652e3d8514cf5a87012b67dbfa4aee0e8d9d | 15,329 | py | Python | web/olga/analytics/models.py | raccoongang/acceptor | fdc1504912b502c8d789d5478eba8cc1a491934b | [
"Apache-2.0"
] | 5 | 2017-10-20T05:52:59.000Z | 2020-02-25T10:46:33.000Z | web/olga/analytics/models.py | raccoongang/OLGA | fdc1504912b502c8d789d5478eba8cc1a491934b | [
"Apache-2.0"
] | 233 | 2017-08-14T10:56:16.000Z | 2021-04-07T01:09:17.000Z | web/olga/analytics/models.py | raccoongang/acceptor | fdc1504912b502c8d789d5478eba8cc1a491934b | [
"Apache-2.0"
] | 2 | 2018-03-16T22:22:57.000Z | 2018-06-15T20:02:56.000Z | """
Models for analytics application. Models used to store and operate all data received from the edx platform.
"""
from __future__ import division
from datetime import date, timedelta
import operator
import pycountry
from django.contrib.postgres.fields import JSONField
from django.db import models
from django.db.m... | 37.296837 | 116 | 0.659339 | 1,801 | 15,329 | 5.360911 | 0.189895 | 0.027965 | 0.027965 | 0.023304 | 0.227861 | 0.160228 | 0.084102 | 0.047229 | 0.023822 | 0.023822 | 0 | 0.010819 | 0.264401 | 15,329 | 410 | 117 | 37.387805 | 0.845424 | 0.26414 | 0 | 0.093333 | 0 | 0.004444 | 0.10287 | 0.038837 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071111 | false | 0 | 0.04 | 0 | 0.275556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
708475a8fdb41ed7fcd4a6f028a2dcd0edaa89ad | 20,560 | py | Python | pypowervm/tests/tasks/test_cna.py | stephenfin/pypowervm | 68f2b586b4f17489f379534ab52fc56a524b6da5 | [
"Apache-2.0"
] | 24 | 2015-12-02T19:49:45.000Z | 2021-11-17T11:43:51.000Z | pypowervm/tests/tasks/test_cna.py | stephenfin/pypowervm | 68f2b586b4f17489f379534ab52fc56a524b6da5 | [
"Apache-2.0"
] | 18 | 2017-03-01T05:54:25.000Z | 2022-03-14T17:32:47.000Z | pypowervm/tests/tasks/test_cna.py | stephenfin/pypowervm | 68f2b586b4f17489f379534ab52fc56a524b6da5 | [
"Apache-2.0"
] | 17 | 2016-02-10T22:53:04.000Z | 2021-11-10T09:47:10.000Z | # Copyright 2015, 2017 IBM Corp.
#
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 45.286344 | 79 | 0.655302 | 2,827 | 20,560 | 4.483905 | 0.125575 | 0.027769 | 0.0426 | 0.03266 | 0.698959 | 0.651231 | 0.6065 | 0.578731 | 0.524613 | 0.485405 | 0 | 0.028905 | 0.242802 | 20,560 | 453 | 80 | 45.386313 | 0.785329 | 0.135165 | 0 | 0.490132 | 0 | 0 | 0.125715 | 0.077446 | 0 | 0 | 0 | 0 | 0.203947 | 1 | 0.065789 | false | 0 | 0.029605 | 0 | 0.134868 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7084e27c49595c6dd313ddb9fd27d9cdb9c9e2f7 | 17,707 | py | Python | tools/stats_gen_lib.py | mtak-/lockfree-stm | 00cd5f9a056e999f0cd140106c1d66b321d6fd47 | [
"MIT"
] | 9 | 2016-11-14T23:35:30.000Z | 2019-01-18T23:21:08.000Z | tools/stats_gen_lib.py | mtak-/lockfree-stm | 00cd5f9a056e999f0cd140106c1d66b321d6fd47 | [
"MIT"
] | 3 | 2017-01-09T01:22:57.000Z | 2017-03-20T04:50:05.000Z | tools/stats_gen_lib.py | mtak-/lockfree-stm | 00cd5f9a056e999f0cd140106c1d66b321d6fd47 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from string import Formatter
_STATS_TEMPLATE = '''#ifndef {INCLUDE_GUARD}
#define {INCLUDE_GUARD}
// clang-format off
#ifdef {MACRO_PREFIX}ON
{INCLUDES}
#include <iomanip>
#include <sstream>
#include <string>
#include <vector>
// comment out any stats you don't want, and thing... | 39.612975 | 142 | 0.550969 | 1,988 | 17,707 | 4.556841 | 0.101107 | 0.090407 | 0.073518 | 0.040181 | 0.62667 | 0.549178 | 0.49575 | 0.456011 | 0.440888 | 0.411524 | 0 | 0.003135 | 0.333371 | 17,707 | 447 | 143 | 39.612975 | 0.764317 | 0.000904 | 0 | 0.365333 | 0 | 0.010667 | 0.296761 | 0.063761 | 0 | 0 | 0 | 0 | 0.021333 | 1 | 0.077333 | false | 0 | 0.002667 | 0.026667 | 0.186667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7086b67b426ff9f8307d4800efd294b1e2f817c3 | 6,482 | py | Python | auto-traveler.py | biomadeira/auto-traveler | 38f2c086923925d9819c07bdef297ec24f2ec58f | [
"Apache-2.0"
] | null | null | null | auto-traveler.py | biomadeira/auto-traveler | 38f2c086923925d9819c07bdef297ec24f2ec58f | [
"Apache-2.0"
] | null | null | null | auto-traveler.py | biomadeira/auto-traveler | 38f2c086923925d9819c07bdef297ec24f2ec58f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""
Copyright [2009-present] EMBL-European Bioinformatics Institute
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 requ... | 34.478723 | 142 | 0.67726 | 892 | 6,482 | 4.741031 | 0.261211 | 0.076614 | 0.056751 | 0.078033 | 0.391818 | 0.354221 | 0.342398 | 0.332939 | 0.332939 | 0.28943 | 0 | 0.006012 | 0.204566 | 6,482 | 187 | 143 | 34.663102 | 0.814197 | 0.208578 | 0 | 0.307018 | 0 | 0.017544 | 0.120672 | 0.005203 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114035 | false | 0.04386 | 0.04386 | 0 | 0.166667 | 0.061404 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7087c1f44e1b42fefc6088af0233d3d5c9a7f47d | 460 | py | Python | jenkins-dashboard.py | jfm/jenkins-dashboard | 4dc4cf69f7f6be1f9cfd15b24509a96454c4de09 | [
"MIT"
] | null | null | null | jenkins-dashboard.py | jfm/jenkins-dashboard | 4dc4cf69f7f6be1f9cfd15b24509a96454c4de09 | [
"MIT"
] | 3 | 2021-03-18T20:10:45.000Z | 2021-09-07T23:37:52.000Z | jenkins-dashboard.py | jfm/jenkins-dashboard | 4dc4cf69f7f6be1f9cfd15b24509a96454c4de09 | [
"MIT"
] | null | null | null | from jenkinsdashboard.ci.jenkins import Jenkins
from jenkinsdashboard.ui.dashboard import Dashboard
import time
if __name__ == '__main__':
# jenkins = Jenkins('http://10.0.0.102:18081', 'jfm', 'c3po4all')
jenkins = Jenkins(
'http://jenkins.onboarding.liquid.int.tdk.dk', 'admin', '0nboarding')
das... | 28.75 | 77 | 0.678261 | 54 | 460 | 5.592593 | 0.592593 | 0.13245 | 0.119205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045576 | 0.18913 | 460 | 15 | 78 | 30.666667 | 0.764075 | 0.136957 | 0 | 0 | 0 | 0 | 0.167089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
708b028c1ab718e2fb6ff3f78c3ef2f30aed6475 | 3,852 | py | Python | tests.py | CTPUG/mdx_attr_cols | 8aef79857685f9913c703befe717872d4e2d1bea | [
"0BSD"
] | null | null | null | tests.py | CTPUG/mdx_attr_cols | 8aef79857685f9913c703befe717872d4e2d1bea | [
"0BSD"
] | null | null | null | tests.py | CTPUG/mdx_attr_cols | 8aef79857685f9913c703befe717872d4e2d1bea | [
"0BSD"
] | null | null | null | from unittest import TestCase
import xmltodict
from markdown import Markdown
from markdown.util import etree
from mdx_attr_cols import AttrColTreeProcessor, AttrColExtension, makeExtension
class XmlTestCaseMixin(object):
def mk_doc(self, s):
return etree.fromstring(
"<div>" + s.strip() + "<... | 32.369748 | 79 | 0.616044 | 427 | 3,852 | 5.42623 | 0.222482 | 0.077687 | 0.062149 | 0.02978 | 0.373759 | 0.318084 | 0.285283 | 0.259819 | 0.259819 | 0.259819 | 0 | 0.004924 | 0.261942 | 3,852 | 118 | 80 | 32.644068 | 0.81006 | 0 | 0 | 0.260417 | 0 | 0.010417 | 0.199117 | 0.048027 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.15625 | false | 0 | 0.052083 | 0.010417 | 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 |
708c9cd7e0c47f6fd647b59adb4727ab13f448e2 | 1,764 | py | Python | dialogbot/search/local/tfidfmodel.py | ishine/dialogbot | 6c3d2f95555a05a3b935dda818e481ddc20eed08 | [
"Apache-2.0"
] | 68 | 2019-06-30T07:39:59.000Z | 2022-03-30T12:15:40.000Z | dialogbot/search/local/tfidfmodel.py | ishine/dialogbot | 6c3d2f95555a05a3b935dda818e481ddc20eed08 | [
"Apache-2.0"
] | 2 | 2021-06-30T10:22:17.000Z | 2021-07-27T12:41:01.000Z | dialogbot/search/local/tfidfmodel.py | ishine/dialogbot | 6c3d2f95555a05a3b935dda818e481ddc20eed08 | [
"Apache-2.0"
] | 16 | 2019-08-22T16:05:53.000Z | 2022-03-11T07:51:27.000Z | # -*- coding: utf-8 -*-
"""
@author:XuMing(xuming624@qq.com)
@description:
"""
import time
from gensim import corpora, models, similarities
from dialogbot.reader.data_helper import load_corpus_file
from dialogbot.utils.log import logger
class TfidfModel:
def __init__(self, corpus_file, word2id):
time_... | 33.923077 | 108 | 0.647392 | 235 | 1,764 | 4.67234 | 0.395745 | 0.054645 | 0.040984 | 0.03643 | 0.083789 | 0.040073 | 0.040073 | 0 | 0 | 0 | 0 | 0.01497 | 0.24263 | 1,764 | 51 | 109 | 34.588235 | 0.806886 | 0.086735 | 0 | 0 | 0 | 0 | 0.02875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.121212 | 0 | 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 |
7091366072f1274a003619cb14cf65bebdc5b41f | 6,052 | py | Python | aslam_offline_calibration/kalibr/python/kalibr_evaluation_calibration.py | zhixy/multical | b5eeb6283f4ad68def4b62c10416a6764651e771 | [
"BSD-3-Clause"
] | 27 | 2021-03-26T12:03:48.000Z | 2022-03-29T02:16:56.000Z | aslam_offline_calibration/kalibr/python/kalibr_evaluation_calibration.py | zhixy/multical | b5eeb6283f4ad68def4b62c10416a6764651e771 | [
"BSD-3-Clause"
] | 2 | 2021-03-26T14:34:51.000Z | 2021-11-03T09:14:16.000Z | aslam_offline_calibration/kalibr/python/kalibr_evaluation_calibration.py | zhixy/multical | b5eeb6283f4ad68def4b62c10416a6764651e771 | [
"BSD-3-Clause"
] | 9 | 2021-08-23T11:25:29.000Z | 2022-03-28T13:22:39.000Z | #!/usr/bin/env python
import argparse
import kalibr_common as kc
from mpl_toolkits.mplot3d import art3d, Axes3D, proj3d
import numpy as np
import pylab as pl
import sm
import glob
def parse_arguments():
parser = argparse.ArgumentParser(
description='read calibration results from yaml and compare with grou... | 45.503759 | 119 | 0.666887 | 799 | 6,052 | 4.739675 | 0.138924 | 0.03644 | 0.039609 | 0.033272 | 0.699498 | 0.634275 | 0.616583 | 0.561922 | 0.476895 | 0.415632 | 0 | 0.004392 | 0.247521 | 6,052 | 132 | 120 | 45.848485 | 0.827185 | 0.003305 | 0 | 0.368852 | 0 | 0 | 0.179738 | 0.014923 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02459 | false | 0 | 0.057377 | 0 | 0.098361 | 0.07377 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7092b52d42b2a6cc2e1c28dd93180668936123db | 3,251 | bzl | Python | antlir/vm/bzl/install_kernel_modules.bzl | zeroxoneb/antlir | 811d88965610d16a5c85d831d317f087797ca732 | [
"MIT"
] | 28 | 2020-08-11T16:22:46.000Z | 2022-03-04T15:41:52.000Z | antlir/vm/bzl/install_kernel_modules.bzl | zeroxoneb/antlir | 811d88965610d16a5c85d831d317f087797ca732 | [
"MIT"
] | 137 | 2020-08-11T16:07:49.000Z | 2022-02-27T10:59:05.000Z | antlir/vm/bzl/install_kernel_modules.bzl | zeroxoneb/antlir | 811d88965610d16a5c85d831d317f087797ca732 | [
"MIT"
] | 10 | 2020-09-10T00:01:28.000Z | 2022-03-08T18:00:28.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
load("@bazel_skylib//lib:paths.bzl", "paths")
load("//antlir/bzl:image.bzl", "image")
load("//antlir/bzl:oss_shim.bzl", "buck_genrule")
load("... | 38.702381 | 123 | 0.538296 | 364 | 3,251 | 4.711538 | 0.35989 | 0.051312 | 0.037901 | 0.060641 | 0.290962 | 0.273469 | 0.177843 | 0.110787 | 0.054811 | 0.054811 | 0 | 0.000907 | 0.321747 | 3,251 | 83 | 124 | 39.168675 | 0.776871 | 0.177484 | 0 | 0.19697 | 0 | 0 | 0.426531 | 0.117625 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015152 | false | 0 | 0 | 0 | 0.030303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
70956e742f00e379dd33cde03763c0b2f6948b87 | 12,173 | py | Python | medis/Detector/get_photon_data.py | RupertDodkins/medis | bdb1f00fb93506da2a1f251bc6780e70e97a16c5 | [
"MIT"
] | 1 | 2021-06-25T17:35:56.000Z | 2021-06-25T17:35:56.000Z | medis/Detector/get_photon_data.py | RupertDodkins/medis | bdb1f00fb93506da2a1f251bc6780e70e97a16c5 | [
"MIT"
] | null | null | null | medis/Detector/get_photon_data.py | RupertDodkins/medis | bdb1f00fb93506da2a1f251bc6780e70e97a16c5 | [
"MIT"
] | 2 | 2018-12-08T15:05:13.000Z | 2019-08-08T17:28:24.000Z | """Top level code that takes a atmosphere phase map and propagates a wavefront through the system"""
import os
import numpy as np
import traceback
import multiprocessing
import glob
import random
import pickle as pickle
import time
from proper_mod import prop_run
from medis.Utils.plot_tools import quicklook_im, view_d... | 36.446108 | 147 | 0.594348 | 1,531 | 12,173 | 4.561724 | 0.239059 | 0.034651 | 0.01575 | 0.012027 | 0.205183 | 0.171535 | 0.128007 | 0.111684 | 0.108247 | 0.08047 | 0 | 0.006078 | 0.297133 | 12,173 | 333 | 148 | 36.555556 | 0.810192 | 0.204962 | 0 | 0.229268 | 0 | 0 | 0.076754 | 0.015916 | 0 | 0 | 0 | 0.009009 | 0 | 1 | 0.014634 | false | 0.014634 | 0.087805 | 0 | 0.121951 | 0.102439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
709b6bd1dc6310e9d17ea3ad5431e576cabcfddb | 10,286 | py | Python | src/utils/workflow_utils.py | cmikke97/AMSG | ddcfeb6262124e793fcee385405365417e57f91f | [
"Apache-2.0"
] | 3 | 2021-06-30T07:22:46.000Z | 2022-03-23T08:21:10.000Z | src/utils/workflow_utils.py | cmikke97/Automatic-Malware-Signature-Generation | ddcfeb6262124e793fcee385405365417e57f91f | [
"Apache-2.0"
] | null | null | null | src/utils/workflow_utils.py | cmikke97/Automatic-Malware-Signature-Generation | ddcfeb6262124e793fcee385405365417e57f91f | [
"Apache-2.0"
] | null | null | null | # Copyright 2021, Crepaldi Michele.
#
# Developed as a thesis project at the TORSEC research group of the Polytechnic of Turin (Italy) under the supervision
# of professor Antonio Lioy and engineer Andrea Atzeni and with the support of engineer Andrea Marcelli.
#
# Licensed under the Apache License, Version 2.0 (the "L... | 44.336207 | 118 | 0.66994 | 1,402 | 10,286 | 4.808131 | 0.204708 | 0.016318 | 0.016615 | 0.020175 | 0.33897 | 0.278149 | 0.257084 | 0.249963 | 0.233645 | 0.226969 | 0 | 0.009163 | 0.267937 | 10,286 | 231 | 119 | 44.528139 | 0.886056 | 0.530332 | 0 | 0.228261 | 0 | 0 | 0.094076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076087 | false | 0 | 0.076087 | 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 |
709bdbfb5b18720b7d117f1e6e1e246c7727a60a | 1,578 | py | Python | tests/test_data.py | joseph-nagel/torchutils | e13b5b156734dc1645e1d6c7b81738ca52904c92 | [
"MIT"
] | null | null | null | tests/test_data.py | joseph-nagel/torchutils | e13b5b156734dc1645e1d6c7b81738ca52904c92 | [
"MIT"
] | null | null | null | tests/test_data.py | joseph-nagel/torchutils | e13b5b156734dc1645e1d6c7b81738ca52904c92 | [
"MIT"
] | null | null | null | '''Tests for the data module.'''
import pytest
import numpy as np
import torch
from torch.utils.data import TensorDataset
from torchutils.data import mean_std_over_dataset, image2tensor, tensor2image
@pytest.mark.parametrize('no_samples', [100, 1000])
@pytest.mark.parametrize('feature_shape', [(), (1,), (10,), (10,10... | 38.487805 | 77 | 0.707858 | 228 | 1,578 | 4.763158 | 0.307018 | 0.033149 | 0.077348 | 0.049724 | 0.174954 | 0.174954 | 0.090239 | 0.090239 | 0 | 0 | 0 | 0.051661 | 0.141318 | 1,578 | 40 | 78 | 39.45 | 0.749816 | 0.134347 | 0 | 0.064516 | 0 | 0 | 0.024554 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.096774 | false | 0 | 0.16129 | 0 | 0.258065 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
709be0e39f954015ae500d50e9d8b5505b26abc0 | 8,593 | py | Python | src/model_execution_worker/tasks.py | OasisLMF/OasisPlatform_SQL | e3359d0bd3093e47bc46848c810b8876980d5cbc | [
"BSD-3-Clause"
] | 1 | 2020-02-27T13:25:22.000Z | 2020-02-27T13:25:22.000Z | src/model_execution_worker/tasks.py | OasisLMF/OasisPlatform_SQL | e3359d0bd3093e47bc46848c810b8876980d5cbc | [
"BSD-3-Clause"
] | 3 | 2019-11-14T10:26:46.000Z | 2021-03-25T22:33:52.000Z | src/model_execution_worker/tasks.py | OasisLMF/OasisPlatform_SQL | e3359d0bd3093e47bc46848c810b8876980d5cbc | [
"BSD-3-Clause"
] | 2 | 2019-03-21T09:22:12.000Z | 2019-05-24T15:13:51.000Z | from __future__ import absolute_import
import importlib
import logging
import uuid
from contextlib import contextmanager
import fasteners
import json
import os
import shutil
import tarfile
import glob
import sys
import time
from oasislmf.model_execution.bin import prepare_model_run_directory, prepare_model_run_input... | 39.237443 | 124 | 0.718375 | 1,036 | 8,593 | 5.650579 | 0.186293 | 0.048855 | 0.0726 | 0.070721 | 0.376153 | 0.312265 | 0.234028 | 0.214042 | 0.205159 | 0.205159 | 0 | 0.001816 | 0.167113 | 8,593 | 218 | 125 | 39.417431 | 0.816124 | 0.068661 | 0 | 0.137931 | 0 | 0 | 0.242986 | 0.076425 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041379 | false | 0 | 0.172414 | 0 | 0.248276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
709c91d65265a22a647756f08a9dbfdc545c3f18 | 1,088 | py | Python | complejidad_algoritmica.py | francomanca93/poo-algoritmos-python | 47bc0289cf1a91e2bee93f354bd39e1b592fa774 | [
"MIT"
] | null | null | null | complejidad_algoritmica.py | francomanca93/poo-algoritmos-python | 47bc0289cf1a91e2bee93f354bd39e1b592fa774 | [
"MIT"
] | null | null | null | complejidad_algoritmica.py | francomanca93/poo-algoritmos-python | 47bc0289cf1a91e2bee93f354bd39e1b592fa774 | [
"MIT"
] | null | null | null | import time
# Importo el modulo sys y aumento el limite de recursión, ya que viene predefinido con 1000
import sys
sys.setrecursionlimit(1000000) # 1 000 000
def factorial_iterativo(n):
respuesta = 1
while n > 1:
respuesta *= n
n -= 1
return respuesta
def factorial_recursivo(n):
... | 23.652174 | 91 | 0.647059 | 130 | 1,088 | 5.269231 | 0.369231 | 0.011679 | 0.083212 | 0.075912 | 0.265693 | 0.108029 | 0 | 0 | 0 | 0 | 0 | 0.038508 | 0.236213 | 1,088 | 45 | 92 | 24.177778 | 0.7858 | 0.090993 | 0 | 0.129032 | 0 | 0 | 0.229442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.064516 | 0 | 0.225806 | 0.225806 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
709f375eec3da89e1429343cd567396c10876145 | 765 | py | Python | wheel/notice/email_sender.py | kong5664546498/half_a_wheel | d50c2359ac7dda55f54dd08bb588091eb6232b81 | [
"MIT"
] | null | null | null | wheel/notice/email_sender.py | kong5664546498/half_a_wheel | d50c2359ac7dda55f54dd08bb588091eb6232b81 | [
"MIT"
] | null | null | null | wheel/notice/email_sender.py | kong5664546498/half_a_wheel | d50c2359ac7dda55f54dd08bb588091eb6232b81 | [
"MIT"
] | null | null | null | import smtplib
from email.header import Header
from email.mime.text import MIMEText
class EmailSender:
def __init__(self) -> None:
self.receiver = "kongandmarx@163.com"
self.sender = "kongandmarx@163.com"
self.smtp_obj = smtplib.SMTP_SSL("smtp.163.com", port=994)
# self.smtp_obj.co... | 34.772727 | 79 | 0.616993 | 97 | 765 | 4.762887 | 0.402062 | 0.064935 | 0.095238 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037162 | 0.226144 | 765 | 22 | 79 | 34.772727 | 0.743243 | 0.053595 | 0 | 0 | 0 | 0 | 0.213001 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
70a04db5de55b9f9804753c3bf5f7a12c6fc7e92 | 6,590 | py | Python | src/config_common.py | karawallace/mygene | 35bf066eb50bc929b4bb4e2423d47b4c98797526 | [
"Apache-2.0"
] | null | null | null | src/config_common.py | karawallace/mygene | 35bf066eb50bc929b4bb4e2423d47b4c98797526 | [
"Apache-2.0"
] | null | null | null | src/config_common.py | karawallace/mygene | 35bf066eb50bc929b4bb4e2423d47b4c98797526 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from biothings.www.settings.default import *
from www.api.query_builder import ESQueryBuilder
from www.api.query import ESQuery
from www.api.transform import ESResultTransformer
from www.api.handlers import GeneHandler, QueryHandler, MetadataHandler, StatusHandler, TaxonHandler, DemoHandler
# *... | 43.642384 | 136 | 0.57648 | 664 | 6,590 | 5.527108 | 0.329819 | 0.013624 | 0.061035 | 0.057221 | 0.291553 | 0.261035 | 0.198365 | 0.125341 | 0.125341 | 0.101362 | 0 | 0.010691 | 0.134143 | 6,590 | 150 | 137 | 43.933333 | 0.632492 | 0.301214 | 0 | 0.022222 | 0 | 0 | 0.264352 | 0.010211 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
70a65f53a022d6fe554e262dd2b61539aad6cfe3 | 15,323 | py | Python | ansible_collection/hpe/nimble/plugins/modules/hpe_nimble_network.py | datamattsson/nimble-ansible-modules | ba306153f98db093a9af47c99bdfce1381660880 | [
"Apache-2.0"
] | null | null | null | ansible_collection/hpe/nimble/plugins/modules/hpe_nimble_network.py | datamattsson/nimble-ansible-modules | ba306153f98db093a9af47c99bdfce1381660880 | [
"Apache-2.0"
] | null | null | null | ansible_collection/hpe/nimble/plugins/modules/hpe_nimble_network.py | datamattsson/nimble-ansible-modules | ba306153f98db093a9af47c99bdfce1381660880 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# # Copyright 2020 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
# file except in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 34.825 | 149 | 0.601775 | 1,682 | 15,323 | 5.286564 | 0.166468 | 0.049708 | 0.04206 | 0.040486 | 0.554431 | 0.518106 | 0.469636 | 0.408232 | 0.383266 | 0.273954 | 0 | 0.002424 | 0.300072 | 15,323 | 439 | 150 | 34.904328 | 0.826667 | 0.056582 | 0 | 0.458445 | 0 | 0.010724 | 0.396232 | 0.039692 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013405 | false | 0.021448 | 0.013405 | 0 | 0.075067 | 0.002681 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
70a965ab4266b455f06fc24f6cfc9727034185be | 1,428 | py | Python | crawler.py | YellowDong/taohua | b61778d0e49d885141756ca52b1e426f03e89218 | [
"MIT"
] | null | null | null | crawler.py | YellowDong/taohua | b61778d0e49d885141756ca52b1e426f03e89218 | [
"MIT"
] | null | null | null | crawler.py | YellowDong/taohua | b61778d0e49d885141756ca52b1e426f03e89218 | [
"MIT"
] | null | null | null | from requests_html import HTMLSession
import re
from .blog.models import (Article, Tag, Category)
class Spider:
def __init__(self):
self.sesion = HTMLSession()
def get_list(self):
url = 'http://python.jobbole.com/all-posts/'
resp = self.sesion.get(url)
if resp.status_code == 2... | 30.382979 | 96 | 0.556723 | 178 | 1,428 | 4.348315 | 0.421348 | 0.041344 | 0.062016 | 0.05168 | 0.108527 | 0.056848 | 0 | 0 | 0 | 0 | 0 | 0.008654 | 0.271709 | 1,428 | 46 | 97 | 31.043478 | 0.734615 | 0.107843 | 0 | 0.0625 | 0 | 0 | 0.114534 | 0.021327 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.09375 | 0 | 0.34375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5607fbf70d32a16b417fbba1a89c53e34ec639fc | 4,674 | py | Python | ultrasync/create_sync_samples.py | aeshky/ultrasync | 0801bcb0312bba2eab07f12f9a68f3a431f5aaeb | [
"Apache-2.0"
] | 7 | 2019-07-29T20:00:25.000Z | 2021-06-22T21:21:50.000Z | ultrasync/create_sync_samples.py | aeshky/ultrasync | 0801bcb0312bba2eab07f12f9a68f3a431f5aaeb | [
"Apache-2.0"
] | 1 | 2019-10-01T14:25:33.000Z | 2019-10-28T15:19:52.000Z | ultrasync/create_sync_samples.py | aeshky/ultrasync | 0801bcb0312bba2eab07f12f9a68f3a431f5aaeb | [
"Apache-2.0"
] | null | null | null | """
Date: Jul 2018
Author: Aciel Eshky
A script to create positive and negative samples using self-supervision.
"""
import os
import sys
import random
import pandas as pd
from numpy.random import seed as np_seed
from ustools.folder_utils import get_utterance_id, get_dir_info
from ultrasync.create_sync_samples_uti... | 31.369128 | 111 | 0.632649 | 602 | 4,674 | 4.714286 | 0.299003 | 0.02537 | 0.031712 | 0.016913 | 0.128964 | 0.059901 | 0.052854 | 0.036646 | 0.036646 | 0.036646 | 0 | 0.011621 | 0.263586 | 4,674 | 148 | 112 | 31.581081 | 0.812899 | 0.226145 | 0 | 0.027397 | 0 | 0 | 0.101348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054795 | false | 0 | 0.09589 | 0 | 0.191781 | 0.123288 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5608507a8fbe16afc4a2757ca530a21ae1157296 | 515 | py | Python | setup.py | kaynhelga9/64-bit-Ninja | ba3ffa69797a6f52103142515f0ee253e69e0d49 | [
"MIT"
] | 3 | 2019-02-11T14:40:29.000Z | 2019-04-21T21:59:11.000Z | setup.py | kaynhelga9/64-bit-Ninja | ba3ffa69797a6f52103142515f0ee253e69e0d49 | [
"MIT"
] | null | null | null | setup.py | kaynhelga9/64-bit-Ninja | ba3ffa69797a6f52103142515f0ee253e69e0d49 | [
"MIT"
] | null | null | null | import cx_Freeze
import os
os.environ['TCL_LIBRARY'] = r'C:\Users\Khanh Huynh\AppData\Local\Programs\Python\Python36\tcl\tcl8.6'
os.environ['TK_LIBRARY'] = r'C:\Users\Khanh Huynh\AppData\Local\Programs\Python\Python36\tcl\tk8.6'
executables = [cx_Freeze.Executable('game.py')]
cx_Freeze.setup(
name = '64... | 34.333333 | 102 | 0.669903 | 71 | 515 | 4.760563 | 0.633803 | 0.071006 | 0.053254 | 0.08284 | 0.360947 | 0.360947 | 0.360947 | 0.360947 | 0.360947 | 0.360947 | 0 | 0.031891 | 0.147573 | 515 | 15 | 103 | 34.333333 | 0.738041 | 0 | 0 | 0 | 0 | 0.166667 | 0.484064 | 0.217131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5609ed8bf29ac968a3c75282d2fbdfa0946a74d7 | 1,475 | py | Python | xiAnresturant/graph.py | wangteng200000318/-DataMiningMeiTuan | eb152a090c3025726bcb793484d4a88f2072b744 | [
"MIT"
] | 4 | 2020-11-23T04:50:41.000Z | 2021-03-12T06:19:59.000Z | xiAnresturant/graph.py | wangteng200000318/-DataMiningMeiTuan | eb152a090c3025726bcb793484d4a88f2072b744 | [
"MIT"
] | null | null | null | xiAnresturant/graph.py | wangteng200000318/-DataMiningMeiTuan | eb152a090c3025726bcb793484d4a88f2072b744 | [
"MIT"
] | null | null | null | from wordcloud import WordCloud
import jieba
import matplotlib.pyplot as plt
xiaozhai = ['佛伦萨·古典火炉披萨', '蘑菇爱上饭', '珍味林饺子馆', '巷子火锅', '千家粗粮王',
'猫堂小站猫咪主题馆', 'CoCo都可', '福气焖锅烤肉', '5号酒馆', '82°C魔力焖锅',
'小肥羊', '长安大牌档之长安集市', '泰熙家', '大自在火锅', '拉菲达牛排自助',
'猫咪餐厅', '京御煌三汁焖锅', '赵家腊汁肉', '米多多烘焙屋'... | 37.820513 | 69 | 0.589831 | 155 | 1,475 | 5.503226 | 0.554839 | 0.060961 | 0.021102 | 0.044549 | 0.194607 | 0.107855 | 0.107855 | 0.107855 | 0 | 0 | 0 | 0.013345 | 0.237966 | 1,475 | 38 | 70 | 38.815789 | 0.742883 | 0 | 0 | 0 | 0 | 0 | 0.244955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
560adc09db2a2d64ed970d3656db7a5e1e25da54 | 4,055 | py | Python | api/server/routes/catchall.py | corentinthomasset/ibm-call-for-code-2021 | 2a3cbc7c9a5a21fd0caa9cbc0a57904bb2087872 | [
"Apache-2.0"
] | null | null | null | api/server/routes/catchall.py | corentinthomasset/ibm-call-for-code-2021 | 2a3cbc7c9a5a21fd0caa9cbc0a57904bb2087872 | [
"Apache-2.0"
] | null | null | null | api/server/routes/catchall.py | corentinthomasset/ibm-call-for-code-2021 | 2a3cbc7c9a5a21fd0caa9cbc0a57904bb2087872 | [
"Apache-2.0"
] | null | null | null |
import logging
import json
import warnings
import time
import datetime as dt
from ast import literal_eval as make_tuple
from flask import jsonify, abort, Response, request
from server import app, cln_client
from cloudant.error import CloudantException, ResultException
from cloudant.query import Query
import yfinanc... | 33.237705 | 109 | 0.568927 | 479 | 4,055 | 4.713987 | 0.367432 | 0.017715 | 0.019929 | 0.024801 | 0.056687 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01035 | 0.309001 | 4,055 | 121 | 110 | 33.512397 | 0.795503 | 0.003453 | 0 | 0.09 | 0 | 0 | 0.126457 | 0.022316 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.15 | 0 | 0.19 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
560d0ef05a9d538d23b9e00d5bb4bf708502cb92 | 1,132 | py | Python | RLTutorial/MDPValue.py | fyabc/MSRAPaperProject | 2d7974acfe8065523d0c56da695807e94acd0b34 | [
"MIT"
] | 1 | 2016-08-17T10:04:30.000Z | 2016-08-17T10:04:30.000Z | RLTutorial/MDPValue.py | fyabc/MSRAPaperProject | 2d7974acfe8065523d0c56da695807e94acd0b34 | [
"MIT"
] | null | null | null | RLTutorial/MDPValue.py | fyabc/MSRAPaperProject | 2d7974acfe8065523d0c56da695807e94acd0b34 | [
"MIT"
] | null | null | null | #! /usr/bin/python
# -*- encoding: utf-8 -*-
from __future__ import print_function, unicode_literals
from MDP import MDP
import version23
__author__ = 'fyabc'
# random.seed(0)
def getRandomPolicyValue():
values = [0.0 for _ in range(10)]
num = 1000000
echoEpoch = 10000
mdp = MDP()
for k in ra... | 21.769231 | 72 | 0.550353 | 138 | 1,132 | 4.376812 | 0.427536 | 0.046358 | 0.02649 | 0.066225 | 0.086093 | 0.086093 | 0.086093 | 0.086093 | 0 | 0 | 0 | 0.048 | 0.337456 | 1,132 | 51 | 73 | 22.196078 | 0.757333 | 0.04947 | 0 | 0 | 0 | 0 | 0.082945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.09375 | 0 | 0.1875 | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
560d4c8d48ed8fbb6b163e3376983982a59d0792 | 19,002 | py | Python | tests/test_component/test_task.py | andre-merzky/radical.entk | a63ad9158cf2f58d7bfff017f7da9cd5236429b5 | [
"MIT"
] | null | null | null | tests/test_component/test_task.py | andre-merzky/radical.entk | a63ad9158cf2f58d7bfff017f7da9cd5236429b5 | [
"MIT"
] | null | null | null | tests/test_component/test_task.py | andre-merzky/radical.entk | a63ad9158cf2f58d7bfff017f7da9cd5236429b5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import glob
import shutil
import pytest
import hypothesis.strategies as st
from hypothesis import given, settings
from radical.entk import Task
from radical.entk import states
import radical.entk.exceptions as ree
# Hypothesis settings
settings.register_profile("travis", ma... | 41.041037 | 86 | 0.393801 | 1,640 | 19,002 | 4.328659 | 0.116463 | 0.060149 | 0.056346 | 0.066911 | 0.628117 | 0.551486 | 0.491337 | 0.451613 | 0.415411 | 0.369348 | 0 | 0.014778 | 0.462267 | 19,002 | 462 | 87 | 41.12987 | 0.679977 | 0.068624 | 0 | 0.48 | 0 | 0 | 0.171136 | 0.001307 | 0 | 0 | 0 | 0 | 0.182857 | 1 | 0.02 | false | 0.002857 | 0.025714 | 0 | 0.045714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
560d83927ccbfa6f396f7f59b1122955d5914eea | 3,689 | py | Python | main.py | MNicaretta/picrosssolver | 2919049b6a2beebb47d883ddee7ba830bf809a59 | [
"MIT"
] | null | null | null | main.py | MNicaretta/picrosssolver | 2919049b6a2beebb47d883ddee7ba830bf809a59 | [
"MIT"
] | null | null | null | main.py | MNicaretta/picrosssolver | 2919049b6a2beebb47d883ddee7ba830bf809a59 | [
"MIT"
] | null | null | null | from enum import Enum
class CellState(Enum):
UNKNOWN = '.'
EMPTY = ' '
BOX = '■'
def __str__(self):
return self.value
class Cell():
def __init__(self, state=CellState.UNKNOWN):
self.state = state
def __str__(self):
return self.state
class Clue():
def __init__(sel... | 25.797203 | 100 | 0.500407 | 457 | 3,689 | 3.956236 | 0.150985 | 0.044248 | 0.044248 | 0.054204 | 0.224004 | 0.126659 | 0.097345 | 0.079646 | 0.079646 | 0.079646 | 0 | 0.014249 | 0.372188 | 3,689 | 142 | 101 | 25.978873 | 0.765976 | 0 | 0 | 0.185185 | 0 | 0 | 0.003253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.009259 | 0.064815 | 0.324074 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
560df272ec26702a46aac33cc6e289b61e0a8412 | 3,055 | py | Python | legonet_pytorch/module.py | max-liulin/CV-Backbones | b32239d10126c8f84e6f6283b95b42b3b60b1a06 | [
"Apache-2.0"
] | 220 | 2019-11-27T03:02:14.000Z | 2020-02-26T14:08:41.000Z | legonet_pytorch/module.py | vickyqi7/CV-Backbones | 1262dacffdea62f9983ef0231177aea720e25f12 | [
"Apache-2.0"
] | 3 | 2019-12-10T15:00:57.000Z | 2020-02-02T12:02:47.000Z | legonet_pytorch/module.py | vickyqi7/CV-Backbones | 1262dacffdea62f9983ef0231177aea720e25f12 | [
"Apache-2.0"
] | 35 | 2019-11-28T05:21:50.000Z | 2020-02-26T13:46:11.000Z | '''
Copyright (C) 2016. Huawei Technologies Co., Ltd. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the MIT license.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANT... | 50.081967 | 144 | 0.67365 | 451 | 3,055 | 4.341463 | 0.277162 | 0.030644 | 0.091931 | 0.05618 | 0.336568 | 0.31001 | 0.244637 | 0.19714 | 0.159346 | 0.141982 | 0 | 0.010004 | 0.21473 | 3,055 | 60 | 145 | 50.916667 | 0.806169 | 0.134861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.261905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
560fa46d7efbe40812073452461efabc1cf83295 | 3,719 | py | Python | pychron/dvc/util.py | ASUPychron/pychron | dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76 | [
"Apache-2.0"
] | 31 | 2016-03-07T02:38:17.000Z | 2022-02-14T18:23:43.000Z | pychron/dvc/util.py | ASUPychron/pychron | dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76 | [
"Apache-2.0"
] | 1,626 | 2015-01-07T04:52:35.000Z | 2022-03-25T19:15:59.000Z | pychron/dvc/util.py | UIllinoisHALPychron/pychron | f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc | [
"Apache-2.0"
] | 26 | 2015-05-23T00:10:06.000Z | 2022-03-07T16:51:57.000Z | # ===============================================================================
# Copyright 2019 ross
#
# 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/LICE... | 32.33913 | 91 | 0.547728 | 428 | 3,719 | 4.670561 | 0.336449 | 0.030015 | 0.030015 | 0.048024 | 0.056528 | 0.037019 | 0 | 0 | 0 | 0 | 0 | 0.004092 | 0.277225 | 3,719 | 114 | 92 | 32.622807 | 0.739583 | 0.338263 | 0 | 0 | 0 | 0 | 0.064556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092308 | false | 0 | 0.046154 | 0.015385 | 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 |
560fcacc1a61a2c757a12a88e6d3d993d2d1a1d4 | 3,214 | py | Python | processor/gen_record.py | Princeton-Penn-Vents/princeton-penn-flowmeter | 85a5ca8357ca34e0b543fa1489d48ecbc8023294 | [
"MIT"
] | 3 | 2020-04-14T10:45:12.000Z | 2022-01-06T16:40:30.000Z | processor/gen_record.py | Princeton-Penn-Vents/princeton-penn-flowmeter | 85a5ca8357ca34e0b543fa1489d48ecbc8023294 | [
"MIT"
] | 36 | 2020-04-05T16:23:33.000Z | 2020-10-02T02:58:21.000Z | processor/gen_record.py | Princeton-Penn-Vents/princeton-penn-flowmeter | 85a5ca8357ca34e0b543fa1489d48ecbc8023294 | [
"MIT"
] | 1 | 2020-04-05T13:18:47.000Z | 2020-04-05T13:18:47.000Z | from __future__ import annotations
from typing import Optional
from dataclasses import dataclass
from logging import Logger
from processor.device_names import address_to_name
@dataclass
class GenRecord:
logger: Logger
_mac: Optional[str] = None
_sid: int = 0
_name: Optional[str] = None
# Nurse ... | 26.561983 | 73 | 0.564717 | 405 | 3,214 | 4.335802 | 0.237037 | 0.063781 | 0.037016 | 0.025057 | 0.334282 | 0.202164 | 0.129841 | 0.129841 | 0.102506 | 0.102506 | 0 | 0.00603 | 0.329185 | 3,214 | 120 | 74 | 26.783333 | 0.808442 | 0.174549 | 0 | 0.194444 | 0 | 0 | 0.065988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.180556 | false | 0 | 0.069444 | 0 | 0.486111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
56115c228ac0c726ff0df0045669becb3ae31e8a | 22,024 | py | Python | inputs/transformers.py | aayushk614/DTI | f0338918144c0efbb79556ac8e81cbcefc70e22f | [
"MIT"
] | null | null | null | inputs/transformers.py | aayushk614/DTI | f0338918144c0efbb79556ac8e81cbcefc70e22f | [
"MIT"
] | null | null | null | inputs/transformers.py | aayushk614/DTI | f0338918144c0efbb79556ac8e81cbcefc70e22f | [
"MIT"
] | null | null | null | from __future__ import print_function
import math
import nibabel as nib
import nrrd
import numpy as np
import operator
import os
import random
import torch
import warnings
from functools import reduce
from inputs import Image, ImageType
CHANNEL, DEPTH, HEIGHT, WIDTH = 0, 1, 2, 3
class ToNDTensor(object):
"""
... | 37.265651 | 120 | 0.593444 | 2,861 | 22,024 | 4.318071 | 0.116393 | 0.099725 | 0.025498 | 0.027198 | 0.598996 | 0.550024 | 0.509228 | 0.482678 | 0.44779 | 0.421645 | 0 | 0.01739 | 0.305485 | 22,024 | 590 | 121 | 37.328814 | 0.790272 | 0.138712 | 0 | 0.502604 | 0 | 0 | 0.064083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140625 | false | 0 | 0.03125 | 0.044271 | 0.320313 | 0.002604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
56116252a18b3ab533ede58656a33d7beedc09ce | 1,198 | py | Python | tests/test_image_xpress.py | jni/microscopium | b9cddd8ef5f3003a396ace602228651b3020c4a3 | [
"BSD-3-Clause"
] | 53 | 2016-08-30T09:45:12.000Z | 2022-02-03T06:22:50.000Z | tests/test_image_xpress.py | jni/microscopium | b9cddd8ef5f3003a396ace602228651b3020c4a3 | [
"BSD-3-Clause"
] | 151 | 2015-01-15T06:16:27.000Z | 2021-03-22T01:01:26.000Z | tests/test_image_xpress.py | jni/microscopium | b9cddd8ef5f3003a396ace602228651b3020c4a3 | [
"BSD-3-Clause"
] | 19 | 2015-01-15T06:13:26.000Z | 2021-09-13T13:06:47.000Z | from microscopium.screens import image_xpress
import collections as coll
def test_ix_semantic_filename():
test_fn = "./Week1_22123/G10_s2_w11C3B9BCC-E48F-4C2F-9D31-8F46D8B5B972.tif"
expected = coll.OrderedDict([('directory', './Week1_22123'),
('prefix', ''),
... | 39.933333 | 79 | 0.477462 | 102 | 1,198 | 5.313725 | 0.509804 | 0.073801 | 0.099631 | 0.121771 | 0.416974 | 0.243542 | 0.243542 | 0.243542 | 0.243542 | 0.243542 | 0 | 0.138736 | 0.392321 | 1,198 | 29 | 80 | 41.310345 | 0.605769 | 0 | 0 | 0.26087 | 0 | 0 | 0.243108 | 0.146199 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.086957 | false | 0 | 0.086957 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5611a9096513cba2a9a68bf3992b55379db65e5b | 3,581 | py | Python | examples/vertex_pipeline/pipelines/batch_prediction_pipeline_runner.py | marcosgm/professional-services | f332b425c2f3b6538ebf65afda7e67de3bed1b3d | [
"Apache-2.0"
] | 2,116 | 2017-05-18T19:33:05.000Z | 2022-03-31T13:34:48.000Z | examples/vertex_pipeline/pipelines/batch_prediction_pipeline_runner.py | hyuatpc/professional-services | e5c811a8752e91fdf9f959a0414931010b0ea1ba | [
"Apache-2.0"
] | 548 | 2017-05-20T05:05:35.000Z | 2022-03-28T16:38:12.000Z | examples/vertex_pipeline/pipelines/batch_prediction_pipeline_runner.py | hyuatpc/professional-services | e5c811a8752e91fdf9f959a0414931010b0ea1ba | [
"Apache-2.0"
] | 1,095 | 2017-05-19T00:02:36.000Z | 2022-03-31T05:21:39.000Z | # Copyright 2021 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 39.788889 | 78 | 0.726054 | 460 | 3,581 | 5.384783 | 0.347826 | 0.069035 | 0.1304 | 0.038757 | 0.281389 | 0.16956 | 0.104158 | 0.104158 | 0.076706 | 0.076706 | 0 | 0.005382 | 0.169785 | 3,581 | 89 | 79 | 40.235955 | 0.827783 | 0.244624 | 0 | 0.140351 | 0 | 0 | 0.224879 | 0.100486 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.052632 | 0 | 0.070175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5612459fcdf8951d0bf375d61705d77efffeb9d8 | 1,642 | py | Python | examples/slash_commands.py | z03h/discord.py | 7e5831ba9cc3f881e11b3536159a3851fba6ab52 | [
"MIT"
] | 7 | 2021-09-12T02:31:57.000Z | 2022-02-20T21:15:35.000Z | examples/slash_commands.py | jay3332/discord.py | 953f067e3b5ee33f5be62ae614ac724afc289879 | [
"MIT"
] | 13 | 2021-11-04T00:32:25.000Z | 2022-03-02T03:03:54.000Z | examples/slash_commands.py | jay3332/discord.py | 953f067e3b5ee33f5be62ae614ac724afc289879 | [
"MIT"
] | null | null | null | import discord
from discord.application_commands import ApplicationCommand, ApplicationCommandTree, option
tree = ApplicationCommandTree(guild_id=1234) # Replace with your guild ID, or ``None`` to commands global
class Ping(ApplicationCommand, name='ping', tree=tree):
"""Pong!"""
async def callback(self, i... | 34.93617 | 117 | 0.690621 | 210 | 1,642 | 5.338095 | 0.319048 | 0.037467 | 0.071365 | 0.089206 | 0.490633 | 0.459411 | 0.459411 | 0.4157 | 0.4157 | 0.4157 | 0 | 0.002905 | 0.161389 | 1,642 | 46 | 118 | 35.695652 | 0.811184 | 0.074909 | 0 | 0.269231 | 0 | 0 | 0.150868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.423077 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5612e312b8ffbaa468da026af436acb1c1385add | 10,887 | py | Python | Examples/tk_simple_dialog.py | Aarif1430/Python-Awesome-notes-and-exercises-list | c8ad7f90ebd973025f37d4e79c2f1229a8a2915c | [
"MIT"
] | 2 | 2021-01-13T21:20:57.000Z | 2021-08-18T17:53:53.000Z | Examples/tk_simple_dialog.py | Aarif1430/Python-Awesome-notes-and-exercises-list | c8ad7f90ebd973025f37d4e79c2f1229a8a2915c | [
"MIT"
] | null | null | null | Examples/tk_simple_dialog.py | Aarif1430/Python-Awesome-notes-and-exercises-list | c8ad7f90ebd973025f37d4e79c2f1229a8a2915c | [
"MIT"
] | 1 | 2020-11-05T09:56:55.000Z | 2020-11-05T09:56:55.000Z | #!/usr/bin/env python
import Tkinter
import tkMessageBox
import rwkpickle, rwkos, os, glob
from Tkinter import StringVar, IntVar, DoubleVar
pklpath = rwkos.FindFullPath('pygimp_lecturerc.pkl')
class myWindow:
def close(self, *args, **kwargs):
#print('got close event')
self.mw.destroy()
... | 32.792169 | 117 | 0.524479 | 1,229 | 10,887 | 4.519121 | 0.154597 | 0.049694 | 0.021606 | 0.020526 | 0.4287 | 0.340835 | 0.314908 | 0.269175 | 0.242528 | 0.242528 | 0 | 0.015105 | 0.343253 | 10,887 | 331 | 118 | 32.891239 | 0.761678 | 0.135758 | 0 | 0.267606 | 0 | 0 | 0.088585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089202 | false | 0 | 0.018779 | 0.004695 | 0.140845 | 0.023474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5613450d1a3d2afb56deff14d8b5138f01e852ba | 3,159 | py | Python | gqcnn/grasping/constraint_fn.py | richardliaw/gqcnn | a0930e9d2fef3c930c41dd91cde902d261348fbe | [
"CNRI-Python"
] | 1 | 2019-05-29T00:16:56.000Z | 2019-05-29T00:16:56.000Z | gqcnn/grasping/constraint_fn.py | richardliaw/gqcnn | a0930e9d2fef3c930c41dd91cde902d261348fbe | [
"CNRI-Python"
] | null | null | null | gqcnn/grasping/constraint_fn.py | richardliaw/gqcnn | a0930e9d2fef3c930c41dd91cde902d261348fbe | [
"CNRI-Python"
] | 4 | 2019-05-22T17:33:30.000Z | 2020-02-18T03:44:01.000Z | """
Constraint functions for grasp sampling
Author: Jeff Mahler
"""
from abc import ABCMeta, abstractmethod
import numpy as np
class GraspConstraintFn(object):
"""
Abstract constraint functions for grasp sampling.
"""
__metaclass__ = ABCMeta
def __init__(self, config):
# set params
... | 29.523364 | 91 | 0.598291 | 325 | 3,159 | 5.590769 | 0.326154 | 0.044029 | 0.023115 | 0.041277 | 0.298294 | 0.259769 | 0.259769 | 0.259769 | 0.259769 | 0.259769 | 0 | 0.004178 | 0.318139 | 3,159 | 106 | 92 | 29.801887 | 0.839369 | 0.30421 | 0 | 0.097561 | 0 | 0 | 0.070594 | 0.012208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0.02439 | 0.04878 | 0 | 0.414634 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
56179b533974125c261d08cc31294d0f7cdd2f1f | 4,052 | py | Python | hw4/dynamics.py | tombroz/berkeley-cs294_homework | 5419b772c734093c750362d2e09b46ce59d79da6 | [
"MIT"
] | null | null | null | hw4/dynamics.py | tombroz/berkeley-cs294_homework | 5419b772c734093c750362d2e09b46ce59d79da6 | [
"MIT"
] | null | null | null | hw4/dynamics.py | tombroz/berkeley-cs294_homework | 5419b772c734093c750362d2e09b46ce59d79da6 | [
"MIT"
] | null | null | null | import os
import tensorflow as tf
import numpy as np
C = 1e-13
# Predefined function to build a feedforward neural network
def build_mlp(input_placeholder,
output_size,
scope,
n_layers=2,
size=500,
activation=tf.tanh,
output_activ... | 44.527473 | 235 | 0.633761 | 535 | 4,052 | 4.568224 | 0.254206 | 0.02946 | 0.016367 | 0.026187 | 0.261047 | 0.225041 | 0.141162 | 0.116612 | 0.087152 | 0.057283 | 0 | 0.008378 | 0.263574 | 4,052 | 90 | 236 | 45.022222 | 0.810657 | 0.118707 | 0 | 0.084507 | 0 | 0 | 0.035361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056338 | false | 0 | 0.042254 | 0 | 0.140845 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
56196bbd9c6e856d4ee7624c88862a4b3d4c3852 | 1,017 | py | Python | app/Product/service.py | psyphore/flask-phone-book | cceec3caabdeb03f260d37f3b55d5aa7a52c30c2 | [
"MIT"
] | null | null | null | app/Product/service.py | psyphore/flask-phone-book | cceec3caabdeb03f260d37f3b55d5aa7a52c30c2 | [
"MIT"
] | 2 | 2021-03-19T03:39:56.000Z | 2021-06-08T20:28:03.000Z | app/Product/service.py | psyphore/flask-phone-book | cceec3caabdeb03f260d37f3b55d5aa7a52c30c2 | [
"MIT"
] | null | null | null | import maya
from py2neo.ogm import Node
from app.graph_context import GraphContext
from .cypher_queries import get_product_by_id_query
class ProductService():
'''
This Product Service houses all the actions can be performed against the product object
'''
def fetch(self, id):
'''Fetch a sing... | 28.25 | 91 | 0.610619 | 123 | 1,017 | 4.918699 | 0.512195 | 0.029752 | 0.039669 | 0.046281 | 0.204959 | 0.142149 | 0.142149 | 0.142149 | 0.142149 | 0.142149 | 0 | 0.009804 | 0.297935 | 1,017 | 35 | 92 | 29.057143 | 0.837535 | 0.19764 | 0 | 0.272727 | 0 | 0 | 0.068354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.5 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
561cd253e6ea0665afa83c977dd5106cee35aeab | 2,041 | py | Python | adlib/tests/adversaries/feature_deletion_test.py | xyvivian/adlib | 79a93baa8aa542080bbf55734168eb89317df83c | [
"MIT"
] | null | null | null | adlib/tests/adversaries/feature_deletion_test.py | xyvivian/adlib | 79a93baa8aa542080bbf55734168eb89317df83c | [
"MIT"
] | null | null | null | adlib/tests/adversaries/feature_deletion_test.py | xyvivian/adlib | 79a93baa8aa542080bbf55734168eb89317df83c | [
"MIT"
] | null | null | null | import pytest
from adlib.adversaries.feature_deletion import AdversaryFeatureDeletion
from sklearn import svm
from adlib.learners import SimpleLearner
from data_reader.dataset import EmailDataset
from data_reader.operations import load_dataset
@pytest.fixture
def data():
dataset = EmailDataset(path='./data_reader... | 35.189655 | 92 | 0.748653 | 264 | 2,041 | 5.518939 | 0.272727 | 0.123542 | 0.072066 | 0.043926 | 0.248456 | 0.200412 | 0.089224 | 0.089224 | 0.089224 | 0.089224 | 0 | 0.011905 | 0.135718 | 2,041 | 57 | 93 | 35.807018 | 0.814059 | 0 | 0 | 0.162791 | 0 | 0 | 0.11465 | 0.022538 | 0 | 0 | 0 | 0 | 0.116279 | 1 | 0.162791 | false | 0 | 0.139535 | 0.023256 | 0.372093 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5620a3700cb215b8dbfe4bc707bf2609413ae823 | 1,225 | py | Python | cut_plist.py | labbbirder/cut-plist | 115394d23fbb58044cb421c9c2c220267e80bad5 | [
"MIT"
] | 1 | 2021-05-15T14:44:27.000Z | 2021-05-15T14:44:27.000Z | cut_plist.py | labbbirder/cut-plist | 115394d23fbb58044cb421c9c2c220267e80bad5 | [
"MIT"
] | null | null | null | cut_plist.py | labbbirder/cut-plist | 115394d23fbb58044cb421c9c2c220267e80bad5 | [
"MIT"
] | 1 | 2021-05-15T15:49:58.000Z | 2021-05-15T15:49:58.000Z | import plistlib
import os
import numpy as np
from PIL import Image
def read_plist(plist_path):
with open(plist_path, "rb") as fp:
return plistlib.load(fp)
def to_list(x):
return x.replace("{", "").replace("}", "").split(",")
def cut_plist(output, texture, save_dir):
if not os.path.exists(save_... | 28.488372 | 79 | 0.590204 | 164 | 1,225 | 4.317073 | 0.402439 | 0.033898 | 0.042373 | 0.036723 | 0.048023 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010893 | 0.250612 | 1,225 | 42 | 80 | 29.166667 | 0.760349 | 0 | 0 | 0.0625 | 0 | 0 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.125 | 0.03125 | 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 |
562632b9da3d75bd5559f771c9a43df116af2988 | 3,791 | py | Python | examples/lstm2.py | neosensory/tflite_micro_compiler | 2c21a364e9763e51706cf6f6b447ed908314e117 | [
"Apache-2.0"
] | 48 | 2020-05-10T13:33:02.000Z | 2022-03-24T06:47:50.000Z | examples/lstm2.py | neosensory/tflite_micro_compiler | 2c21a364e9763e51706cf6f6b447ed908314e117 | [
"Apache-2.0"
] | 49 | 2020-05-21T22:03:51.000Z | 2022-03-09T08:09:45.000Z | examples/lstm2.py | neosensory/tflite_micro_compiler | 2c21a364e9763e51706cf6f6b447ed908314e117 | [
"Apache-2.0"
] | 16 | 2020-05-10T12:59:20.000Z | 2022-03-09T06:04:22.000Z | #!/usr/bin/python3
import random
import math
import numpy as np
import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout, LSTM
train_batches=2000
eval_batches=50
train_sequlen=32
train_inputs=1
lstm_states=6
#activation="relu"
activation=None
rec_activat... | 35.429907 | 214 | 0.724347 | 608 | 3,791 | 4.34375 | 0.256579 | 0.063612 | 0.039379 | 0.039758 | 0.442635 | 0.391897 | 0.341537 | 0.302158 | 0.247633 | 0.247633 | 0 | 0.030774 | 0.134265 | 3,791 | 106 | 215 | 35.764151 | 0.773918 | 0.105249 | 0 | 0.12987 | 0 | 0 | 0.049394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038961 | false | 0 | 0.077922 | 0.012987 | 0.155844 | 0.051948 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5626db7729bb19f378a1f3a643736beccf6c224a | 1,251 | py | Python | critiquebrainz/frontend/external/musicbrainz_db/includes.py | AbhinavOhri/critiquebrainz | d1c1c175209ec78bcced1dbfd5bd64a46be2d1f4 | [
"Apache-2.0"
] | null | null | null | critiquebrainz/frontend/external/musicbrainz_db/includes.py | AbhinavOhri/critiquebrainz | d1c1c175209ec78bcced1dbfd5bd64a46be2d1f4 | [
"Apache-2.0"
] | null | null | null | critiquebrainz/frontend/external/musicbrainz_db/includes.py | AbhinavOhri/critiquebrainz | d1c1c175209ec78bcced1dbfd5bd64a46be2d1f4 | [
"Apache-2.0"
] | null | null | null | import critiquebrainz.frontend.external.musicbrainz_db.exceptions as mb_exceptions
RELATABLE_TYPES = [
'area',
'artist',
'label',
'place',
'event',
'recording',
'release',
'release-group',
'series',
'url',
'work',
'instrument'
]
RELATION_INCLUDES = [entity + '-rels' for ... | 35.742857 | 117 | 0.666667 | 132 | 1,251 | 6.151515 | 0.439394 | 0.118227 | 0.070197 | 0.099754 | 0.108374 | 0.108374 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183054 | 1,251 | 34 | 118 | 36.794118 | 0.794521 | 0.048761 | 0 | 0 | 0 | 0 | 0.282939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.033333 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5627c77651ef6fd4e5b5393b20243c305bd397e3 | 5,511 | py | Python | Gradient Descent/Gradient_Descent_Housing.py | prasad-madhale/machine-learning | bb611f809c16e1425136052e215ca83bd1148652 | [
"MIT"
] | null | null | null | Gradient Descent/Gradient_Descent_Housing.py | prasad-madhale/machine-learning | bb611f809c16e1425136052e215ca83bd1148652 | [
"MIT"
] | null | null | null | Gradient Descent/Gradient_Descent_Housing.py | prasad-madhale/machine-learning | bb611f809c16e1425136052e215ca83bd1148652 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Feb 1 01:07:37 2019
@author: prasad
"""
import numpy as np
import pandas as pd
import math
import matplotlib.pyplot as plt
def get_data(column_names):
'''
Args
column_names: names of the features in dataset
Returns
train_d... | 27.974619 | 113 | 0.633279 | 739 | 5,511 | 4.631935 | 0.273342 | 0.046743 | 0.019866 | 0.028046 | 0.297692 | 0.235466 | 0.178791 | 0.178791 | 0.156588 | 0.156588 | 0 | 0.010304 | 0.260388 | 5,511 | 197 | 114 | 27.974619 | 0.82949 | 0.348757 | 0 | 0.082192 | 0 | 0 | 0.083633 | 0.014089 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109589 | false | 0 | 0.054795 | 0 | 0.260274 | 0.041096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
56282d4008935ca3506817cc4fc64ad64b685ddf | 2,833 | py | Python | teamspirit/preorders/views.py | etienne86/oc_p13_team_spirit | fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa | [
"MIT"
] | null | null | null | teamspirit/preorders/views.py | etienne86/oc_p13_team_spirit | fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa | [
"MIT"
] | null | null | null | teamspirit/preorders/views.py | etienne86/oc_p13_team_spirit | fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa | [
"MIT"
] | null | null | null | from django.contrib.auth.decorators import login_required
from django.urls import reverse_lazy
from django.views.generic import ListView
from django.views.generic.edit import FormView
from teamspirit.catalogs.models import Product
from teamspirit.preorders.forms import AddToCartForm, DropFromCartForm
from teamspirit.p... | 31.831461 | 78 | 0.701024 | 331 | 2,833 | 5.722054 | 0.199396 | 0.07603 | 0.044351 | 0.040127 | 0.349525 | 0.326294 | 0.326294 | 0.326294 | 0.326294 | 0.326294 | 0 | 0.001324 | 0.200141 | 2,833 | 88 | 79 | 32.193182 | 0.83451 | 0 | 0 | 0.242424 | 0 | 0 | 0.09354 | 0.037416 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.106061 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
562c8104d444901a4e792e4529b19010d3a451b2 | 40,079 | py | Python | tasks/prime.py | transcom/milmove_load_testing | b46526d9332c864de8891ef391394c0e9e8e7b95 | [
"MIT"
] | 2 | 2021-07-20T13:41:14.000Z | 2021-10-07T18:27:48.000Z | tasks/prime.py | transcom/milmove_load_testing | b46526d9332c864de8891ef391394c0e9e8e7b95 | [
"MIT"
] | 69 | 2020-07-08T21:05:58.000Z | 2022-03-31T11:35:14.000Z | tasks/prime.py | transcom/milmove_load_testing | b46526d9332c864de8891ef391394c0e9e8e7b95 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""" TaskSets and tasks for the Prime & Support APIs """
import logging
import json
import random
from copy import deepcopy
from typing import Dict
from locust import tag, task, TaskSet
from utils.constants import (
INTERNAL_API_KEY,
TEST_PDF,
ZERO_UUID,
PRIME_API_KEY,
SUPPO... | 44.384275 | 120 | 0.637366 | 4,748 | 40,079 | 5.20198 | 0.117734 | 0.043645 | 0.02158 | 0.022309 | 0.560266 | 0.513584 | 0.461881 | 0.39698 | 0.376331 | 0.359731 | 0 | 0.004529 | 0.267247 | 40,079 | 902 | 121 | 44.433481 | 0.835467 | 0.211058 | 0 | 0.372057 | 0 | 0 | 0.21942 | 0.100408 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045526 | false | 0 | 0.012559 | 0.00471 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
562ee8fc837ffcba58e8885e34e37a46643ca002 | 3,350 | py | Python | lib/cell.py | rafelafrance/boyd-bird-journal | 289744703220015cb61d22a8e6f8eff0040b296f | [
"MIT"
] | null | null | null | lib/cell.py | rafelafrance/boyd-bird-journal | 289744703220015cb61d22a8e6f8eff0040b296f | [
"MIT"
] | 5 | 2017-11-02T17:12:31.000Z | 2021-04-21T19:07:39.000Z | lib/cell.py | rafelafrance/boyd-bird-journal | 289744703220015cb61d22a8e6f8eff0040b296f | [
"MIT"
] | null | null | null | """Data and functions for dealing with cell contents."""
# pylint: disable=no-member, too-many-instance-attributes, too-many-arguments
import numpy as np
from skimage import util
from skimage.transform import probabilistic_hough_line
from lib.util import Crop, Offset, intersection
class Cell:
"""Data and func... | 37.222222 | 77 | 0.617015 | 484 | 3,350 | 4.161157 | 0.233471 | 0.048659 | 0.049156 | 0.023833 | 0.217974 | 0.145482 | 0.10427 | 0.10427 | 0.062562 | 0 | 0 | 0.020492 | 0.271642 | 3,350 | 89 | 78 | 37.640449 | 0.804918 | 0.189552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.072727 | 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 |
5630aada68bd06afa2bf00f8393f4ecb9edd571f | 1,124 | py | Python | alembic/versions/uuid_ids_b6a452c73bc3.py | baverman/telenot | 5b6e3a0ffc78b3a1eef2bb0ebf90244fb2b1ce1e | [
"MIT"
] | null | null | null | alembic/versions/uuid_ids_b6a452c73bc3.py | baverman/telenot | 5b6e3a0ffc78b3a1eef2bb0ebf90244fb2b1ce1e | [
"MIT"
] | null | null | null | alembic/versions/uuid_ids_b6a452c73bc3.py | baverman/telenot | 5b6e3a0ffc78b3a1eef2bb0ebf90244fb2b1ce1e | [
"MIT"
] | 1 | 2020-09-21T14:22:10.000Z | 2020-09-21T14:22:10.000Z | """uuid ids
Revision ID: b6a452c73bc3
Revises: 6df0d5aac594
Create Date: 2017-12-06 20:57:39.660665
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b6a452c73bc3'
down_revision = '6df0d5aac594'
branch_labels = None
depends_on = None
def upgrade():
op.crea... | 28.1 | 83 | 0.66726 | 142 | 1,124 | 5.183099 | 0.492958 | 0.054348 | 0.076087 | 0.081522 | 0.149457 | 0.149457 | 0.078804 | 0 | 0 | 0 | 0 | 0.050661 | 0.192171 | 1,124 | 39 | 84 | 28.820513 | 0.759912 | 0.189502 | 0 | 0 | 0 | 0 | 0.350225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.043478 | 0.086957 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
56337b5a8e649c6eb401d664fa33c75392141f25 | 4,469 | py | Python | table_reclass_by_threshold.py | richpsharp/raster_calculations | 28b18c34f49c2c275c46e332d7021a27703053cd | [
"Apache-2.0"
] | null | null | null | table_reclass_by_threshold.py | richpsharp/raster_calculations | 28b18c34f49c2c275c46e332d7021a27703053cd | [
"Apache-2.0"
] | null | null | null | table_reclass_by_threshold.py | richpsharp/raster_calculations | 28b18c34f49c2c275c46e332d7021a27703053cd | [
"Apache-2.0"
] | null | null | null | """Table based reclassify triggered by probability threshold."""
import argparse
import os
import logging
import hashlib
from ecoshard import geoprocessing
from ecoshard import taskgraph
import pandas
import numpy
from osgeo import gdal
gdal.SetCacheMax(2**27)
logging.basicConfig(
level=logging.DEBUG,
format... | 36.631148 | 81 | 0.65876 | 562 | 4,469 | 4.948399 | 0.27758 | 0.064725 | 0.040273 | 0.032362 | 0.221143 | 0.131967 | 0.114707 | 0.114707 | 0.102841 | 0.074793 | 0 | 0.005821 | 0.231148 | 4,469 | 121 | 82 | 36.933884 | 0.803551 | 0.015887 | 0 | 0.076923 | 0 | 0 | 0.190335 | 0.036699 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.086538 | 0 | 0.115385 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
56341b19d0cc7d858663c40581c0b7957017b17d | 4,173 | py | Python | androguard/misc.py | nawfling/androguard | 67b992ce0feeeb01bc69a99257916487689c3bcf | [
"Apache-2.0"
] | 1 | 2019-03-29T19:24:23.000Z | 2019-03-29T19:24:23.000Z | androguard/misc.py | adiltirur/malware_classification | 67b992ce0feeeb01bc69a99257916487689c3bcf | [
"Apache-2.0"
] | null | null | null | androguard/misc.py | adiltirur/malware_classification | 67b992ce0feeeb01bc69a99257916487689c3bcf | [
"Apache-2.0"
] | null | null | null | from future import standard_library
standard_library.install_aliases()
from androguard import session
from androguard.core.bytecodes.dvm import *
from androguard.decompiler.decompiler import *
from androguard.core.androconf import CONF
def init_print_colors():
from IPython.utils import coloransi, io
androcon... | 32.348837 | 109 | 0.632159 | 474 | 4,173 | 5.491561 | 0.242616 | 0.069919 | 0.032655 | 0.029965 | 0.456781 | 0.456781 | 0.361122 | 0.341529 | 0.296965 | 0.296965 | 0 | 0.002961 | 0.271507 | 4,173 | 128 | 110 | 32.601563 | 0.853289 | 0.334771 | 0 | 0.338462 | 0 | 0 | 0.105617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092308 | false | 0 | 0.092308 | 0 | 0.246154 | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
563876079d3f5e1179bfb42ae2c1c70daa64503e | 2,582 | py | Python | src/bpp/const.py | iplweb/django-bpp | 85f183a99d8d5027ae4772efac1e4a9f21675849 | [
"BSD-3-Clause"
] | 1 | 2017-04-27T19:50:02.000Z | 2017-04-27T19:50:02.000Z | src/bpp/const.py | mpasternak/django-bpp | 434338821d5ad1aaee598f6327151aba0af66f5e | [
"BSD-3-Clause"
] | null | null | null | src/bpp/const.py | mpasternak/django-bpp | 434338821d5ad1aaee598f6327151aba0af66f5e | [
"BSD-3-Clause"
] | null | null | null | from collections import OrderedDict
from enum import Enum
TO_AUTOR = 0
TO_REDAKTOR = 1
TO_INNY = 2
TO_TLUMACZ = 3
TO_KOMENTATOR = 4
TO_RECENZENT = 5
TO_OPRACOWAL = 6
TO_REDAKTOR_TLUMACZENIA = 7
TYP_OGOLNY_DO_PBN = {
TO_AUTOR: "AUTHOR",
TO_REDAKTOR: "EDITOR",
TO_TLUMACZ: "TRANSLATOR",
TO_REDAKTOR_TLUMA... | 26.346939 | 99 | 0.763362 | 356 | 2,582 | 5.202247 | 0.407303 | 0.083153 | 0.099352 | 0.030238 | 0.055616 | 0.045356 | 0.045356 | 0.045356 | 0 | 0 | 0 | 0.03018 | 0.140201 | 2,582 | 97 | 100 | 26.618557 | 0.804054 | 0.070488 | 0 | 0 | 0 | 0 | 0.204005 | 0.112224 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028169 | 0 | 0.267606 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5639659aa605d44624d092a964d7a713b28f1136 | 16,604 | py | Python | integration_tests/run_e2e_tests.py | elementary-data/dbt-data-reliability | 2b54962950af61a5c83cff5105f4a0197e727beb | [
"Apache-2.0"
] | 11 | 2022-01-26T14:25:47.000Z | 2022-03-10T10:22:31.000Z | integration_tests/run_e2e_tests.py | elementary-data/dbt-data-reliability | 2b54962950af61a5c83cff5105f4a0197e727beb | [
"Apache-2.0"
] | 1 | 2022-01-27T05:00:29.000Z | 2022-01-28T11:42:32.000Z | integration_tests/run_e2e_tests.py | elementary-data/dbt-data-reliability | 2b54962950af61a5c83cff5105f4a0197e727beb | [
"Apache-2.0"
] | 2 | 2022-03-02T18:40:23.000Z | 2022-03-08T15:56:34.000Z | import csv
from datetime import datetime, timedelta
import random
import string
import os
from os.path import expanduser
from pathlib import Path
from monitor.dbt_runner import DbtRunner
import click
any_type_columns = ['date', 'null_count', 'null_percent']
FILE_DIR = os.path.dirname(__file__)
def generate_date_ran... | 49.861862 | 134 | 0.675982 | 2,175 | 16,604 | 4.79954 | 0.109425 | 0.065332 | 0.027589 | 0.036785 | 0.69681 | 0.654086 | 0.598333 | 0.552256 | 0.513268 | 0.445541 | 0 | 0.025121 | 0.216032 | 16,604 | 332 | 135 | 50.012048 | 0.77683 | 0.028547 | 0 | 0.327138 | 0 | 0 | 0.151231 | 0.034675 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063197 | false | 0 | 0.033457 | 0.022305 | 0.137546 | 0.118959 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
563acc285f6bb6d32cc9472259e3ac6433995b1c | 1,956 | py | Python | resources/lib/routes/animesearch.py | jdollarKodi/plugin.video.animepie | 874e58e153e2df53e5a47ec963584de16584ae52 | [
"MIT"
] | null | null | null | resources/lib/routes/animesearch.py | jdollarKodi/plugin.video.animepie | 874e58e153e2df53e5a47ec963584de16584ae52 | [
"MIT"
] | null | null | null | resources/lib/routes/animesearch.py | jdollarKodi/plugin.video.animepie | 874e58e153e2df53e5a47ec963584de16584ae52 | [
"MIT"
] | null | null | null | import requests
import logging
import math
import xbmcaddon
from xbmcgui import ListItem
from xbmcplugin import addDirectoryItem, endOfDirectory
from resources.lib.constants.url import BASE_URL, SEARCH_PATH
from resources.lib.router_factory import get_router_instance
from resources.lib.routes.episodelist import episode... | 30.092308 | 111 | 0.618609 | 222 | 1,956 | 5.292793 | 0.364865 | 0.034043 | 0.040851 | 0.028936 | 0.068085 | 0.068085 | 0 | 0 | 0 | 0 | 0 | 0.004124 | 0.256135 | 1,956 | 64 | 112 | 30.5625 | 0.803436 | 0 | 0 | 0.188679 | 0 | 0 | 0.083845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.169811 | 0 | 0.226415 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
563cde578c182b51e4e7d365b885a0e62d9ab264 | 2,095 | py | Python | expresspec/read_data.py | alexji/expresspec | eadc7dba20d7ccd78174f7d4f32c7ff13545c316 | [
"MIT"
] | null | null | null | expresspec/read_data.py | alexji/expresspec | eadc7dba20d7ccd78174f7d4f32c7ff13545c316 | [
"MIT"
] | null | null | null | expresspec/read_data.py | alexji/expresspec | eadc7dba20d7ccd78174f7d4f32c7ff13545c316 | [
"MIT"
] | null | null | null | from astropy.table import Table
from collections import OrderedDict
import numpy as np
from .spectrum import Spectrum1D
from copy import deepcopy
from scipy import signal
def read_expres(fname, full_output=False, as_arrays=False, as_order_dict=False, as_raw_table=False):
if full_output:
raise NotImplemente... | 32.230769 | 100 | 0.607637 | 278 | 2,095 | 4.417266 | 0.298561 | 0.034202 | 0.026873 | 0.039088 | 0.105863 | 0.032573 | 0.032573 | 0 | 0 | 0 | 0 | 0.017352 | 0.257279 | 2,095 | 64 | 101 | 32.734375 | 0.771851 | 0.012888 | 0 | 0.12963 | 0 | 0 | 0.097953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.111111 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
563f17c503aa91de61cc1f7b7afc9304efcf0e5a | 596 | py | Python | lib/opencavity/help.py | giomalt/SLM_hologram_generation | 74ad38be8fe17c710856b2508389cd8c9f1ee77a | [
"MIT"
] | 3 | 2021-02-24T12:55:01.000Z | 2021-03-19T02:19:25.000Z | lib/opencavity/help.py | giomalt/SLM_hologram_generation | 74ad38be8fe17c710856b2508389cd8c9f1ee77a | [
"MIT"
] | null | null | null | lib/opencavity/help.py | giomalt/SLM_hologram_generation | 74ad38be8fe17c710856b2508389cd8c9f1ee77a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on 15 feb. 2015
@author: mohamed seghilani
'''
import opencavity
import webbrowser
import platform
#if __name__ == '__main__':
def launch():
help_path=opencavity.__file__
if platform.system()=='Windows':
separator='\\'
else:
separator='/'
... | 22.074074 | 60 | 0.654362 | 76 | 596 | 4.842105 | 0.592105 | 0.152174 | 0.097826 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030108 | 0.219799 | 596 | 26 | 61 | 22.923077 | 0.76129 | 0.229866 | 0 | 0 | 0 | 0 | 0.082405 | 0.060134 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 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 |
564286566a89b40797a3f75a9f3fdf67dede75df | 569 | py | Python | merchant/urls.py | Pesenin-Team/pesenin-2.0 | 883468e6b6d7e3a24bc2ee60bbc7063117745424 | [
"MIT"
] | null | null | null | merchant/urls.py | Pesenin-Team/pesenin-2.0 | 883468e6b6d7e3a24bc2ee60bbc7063117745424 | [
"MIT"
] | null | null | null | merchant/urls.py | Pesenin-Team/pesenin-2.0 | 883468e6b6d7e3a24bc2ee60bbc7063117745424 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = 'merchant'
urlpatterns = [
path('', views.merchant, name='merchant'),
path('makanan', views.makanan, name='makanan'),
path('makanan/search_makanan', views.search_makanan, name='search_makanan'),
path('search_merchant', views.search_m... | 37.933333 | 81 | 0.70123 | 67 | 569 | 5.776119 | 0.283582 | 0.113695 | 0.098191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140598 | 569 | 14 | 82 | 40.642857 | 0.791411 | 0 | 0 | 0 | 0 | 0 | 0.299099 | 0.03964 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5642bea2a4d006a16cb5dc638961e8224156c351 | 1,049 | py | Python | src/worker/worker.py | cemsbr/flask-cpu-tasks | 2cb0c2d17794d8c7413633a304baf35ce7de2c51 | [
"MIT"
] | 1 | 2018-02-04T18:19:07.000Z | 2018-02-04T18:19:07.000Z | src/worker/worker.py | cemsbr/flask-cpu-tasks | 2cb0c2d17794d8c7413633a304baf35ce7de2c51 | [
"MIT"
] | null | null | null | src/worker/worker.py | cemsbr/flask-cpu-tasks | 2cb0c2d17794d8c7413633a304baf35ce7de2c51 | [
"MIT"
] | null | null | null | """Worker application.
It calls an external slow task and send its output, line by line, as "log"
events through SocketIO. The web page will then print the lines.
"""
# Disable the warning because eventlet must patch the standard library as soon
# as possible.
from communication import (CELERY,
... | 29.138889 | 78 | 0.673975 | 146 | 1,049 | 4.808219 | 0.59589 | 0.034188 | 0.02849 | 0.054131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206864 | 1,049 | 35 | 79 | 29.971429 | 0.84375 | 0.371783 | 0 | 0 | 0 | 0 | 0.085938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
564f92d435e931088cb6bd29d3c1bab009096fee | 239 | py | Python | Practice/Python/MapAndLambdaFunction.py | avantikasharma/HackerRank-Solutions | a980859ac352688853fcbcf3c7ec6d95685f99ea | [
"MIT"
] | 1 | 2018-07-08T15:44:15.000Z | 2018-07-08T15:44:15.000Z | Practice/Python/MapAndLambdaFunction.py | avantikasharma/HackerRank-Solutions | a980859ac352688853fcbcf3c7ec6d95685f99ea | [
"MIT"
] | null | null | null | Practice/Python/MapAndLambdaFunction.py | avantikasharma/HackerRank-Solutions | a980859ac352688853fcbcf3c7ec6d95685f99ea | [
"MIT"
] | 2 | 2018-08-10T06:49:34.000Z | 2020-10-01T04:50:59.000Z | cube = lambda x: pow(x,3)
def fibonacci(n):
l=list()
if n==0:
l=[]
elif n==1:
l=[0]
else:
l=[0,1]
for i in range(2,n):
num=l[i-1]+l[i-2]
l.append(num)
return 1
| 17.071429 | 29 | 0.389121 | 42 | 239 | 2.214286 | 0.547619 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073529 | 0.430962 | 239 | 13 | 30 | 18.384615 | 0.610294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
56572951cdbd706ef85de0b8777578cddbef4cf9 | 2,047 | py | Python | odps/df/backends/optimize/utils.py | Emersonxuelinux/aliyun-odps-python-sdk | 0b38c777711c95ed1775fa67822febf88fc3d642 | [
"Apache-2.0"
] | null | null | null | odps/df/backends/optimize/utils.py | Emersonxuelinux/aliyun-odps-python-sdk | 0b38c777711c95ed1775fa67822febf88fc3d642 | [
"Apache-2.0"
] | null | null | null | odps/df/backends/optimize/utils.py | Emersonxuelinux/aliyun-odps-python-sdk | 0b38c777711c95ed1775fa67822febf88fc3d642 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 1999-2017 Alibaba Group Holding Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... | 34.694915 | 83 | 0.629213 | 282 | 2,047 | 4.475177 | 0.41844 | 0.047544 | 0.020602 | 0.025357 | 0.042789 | 0.042789 | 0.042789 | 0.042789 | 0 | 0 | 0 | 0.014845 | 0.276014 | 2,047 | 59 | 84 | 34.694915 | 0.836707 | 0.30044 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.055556 | false | 0 | 0.027778 | 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 |
565c37bb80f2d86759c5fa9c22ae78a191b901e0 | 3,061 | py | Python | test/test_stock.py | vikramrajsitpal/yayFinPy | a532da5161973b39f53306fa6b57149ca042ac28 | [
"Apache-2.0"
] | null | null | null | test/test_stock.py | vikramrajsitpal/yayFinPy | a532da5161973b39f53306fa6b57149ca042ac28 | [
"Apache-2.0"
] | null | null | null | test/test_stock.py | vikramrajsitpal/yayFinPy | a532da5161973b39f53306fa6b57149ca042ac28 | [
"Apache-2.0"
] | null | null | null | from typing import List
from decimal import Decimal
from yayFinPy.stock import Stock
import pandas as pd
def test_constructor():
try:
stock = Stock("AAPL")
assert(stock != None)
return 1
except Exception as e:
print("Test Failed: test_constructor: ", e)
return 0
def test_constructor_failure():
try:
stock... | 24.685484 | 74 | 0.704998 | 427 | 3,061 | 4.887588 | 0.163934 | 0.094873 | 0.06229 | 0.073311 | 0.416866 | 0.287494 | 0.215621 | 0.184954 | 0.184954 | 0.184954 | 0 | 0.011346 | 0.164979 | 3,061 | 124 | 74 | 24.685484 | 0.805164 | 0.013721 | 0 | 0.443478 | 0 | 0 | 0.126905 | 0.0222 | 0 | 0 | 0 | 0 | 0.156522 | 1 | 0.086957 | false | 0 | 0.034783 | 0 | 0.304348 | 0.078261 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
56628c54f6542fcfadf155107dcfc82a5c903211 | 11,248 | py | Python | old_commandSkills.py | tomasruizt/dads | 90652ca92b813301ed731186f29f05e885bc117d | [
"Apache-2.0"
] | null | null | null | old_commandSkills.py | tomasruizt/dads | 90652ca92b813301ed731186f29f05e885bc117d | [
"Apache-2.0"
] | null | null | null | old_commandSkills.py | tomasruizt/dads | 90652ca92b813301ed731186f29f05e885bc117d | [
"Apache-2.0"
] | null | null | null | import logging
import os
import pickle
from typing import NamedTuple
import gym
from gym import Wrapper, GoalEnv
from gym.wrappers import FlattenObservation, TimeLimit, TransformReward, FilterObservation
from runstats import Statistics
import torch
from envs.gym_mujoco.custom_wrappers import DropGoalEnvsAbsoluteLocat... | 36.75817 | 107 | 0.674876 | 1,557 | 11,248 | 4.595376 | 0.179833 | 0.028931 | 0.02348 | 0.015094 | 0.256324 | 0.187841 | 0.152621 | 0.116562 | 0.096855 | 0.084277 | 0 | 0.011798 | 0.208748 | 11,248 | 305 | 108 | 36.878689 | 0.792135 | 0.008624 | 0 | 0.161017 | 0 | 0 | 0.034894 | 0.003767 | 0 | 0 | 0 | 0 | 0.008475 | 1 | 0.148305 | false | 0 | 0.084746 | 0.029661 | 0.364407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
56634cb9015c3fca756d9ed11738ca8195395704 | 3,727 | py | Python | torecsys/inputs/base/image_inp.py | p768lwy3/torecsys | 2251366268b4fbe6f8c3ab1628fa72a0db043dcd | [
"MIT"
] | 92 | 2019-08-15T11:03:50.000Z | 2022-03-12T01:21:05.000Z | torecsys/inputs/base/image_inp.py | p768lwy3/torecsys | 2251366268b4fbe6f8c3ab1628fa72a0db043dcd | [
"MIT"
] | 3 | 2020-03-11T08:57:50.000Z | 2021-01-06T01:39:47.000Z | torecsys/inputs/base/image_inp.py | p768lwy3/torecsys | 2251366268b4fbe6f8c3ab1628fa72a0db043dcd | [
"MIT"
] | 16 | 2019-10-12T11:28:53.000Z | 2022-03-28T14:04:12.000Z | from typing import List, Optional, TypeVar
import torch
import torch.nn as nn
from torecsys.inputs.base import BaseInput
class ImageInput(BaseInput):
"""
Base Input class for image, which embed image by a stack of convolution neural network (CNN)
and fully-connect layer.
"""
ImageInputs = TypeVa... | 38.030612 | 106 | 0.581701 | 450 | 3,727 | 4.673333 | 0.304444 | 0.038041 | 0.028531 | 0.042796 | 0.078935 | 0.01902 | 0 | 0 | 0 | 0 | 0 | 0.011271 | 0.309632 | 3,727 | 97 | 107 | 38.42268 | 0.806063 | 0.344513 | 0 | 0 | 0 | 0 | 0.073103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.204545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
566467ac5da574abf21d4a1577d72293c60ca80a | 31,259 | py | Python | optimus/infer.py | Pcosmin/Optimus | ef3306d1b752bbfb1959ddb9103786acb8e9b9ba | [
"Apache-2.0"
] | 1 | 2020-09-22T13:04:37.000Z | 2020-09-22T13:04:37.000Z | optimus/infer.py | rafaelang/Optimus | 809088f41588c968b2e30210f98a494a497b07ff | [
"Apache-2.0"
] | null | null | null | optimus/infer.py | rafaelang/Optimus | 809088f41588c968b2e30210f98a494a497b07ff | [
"Apache-2.0"
] | null | null | null | # This file need to be send to the cluster via .addPyFile to handle the pickle problem
# This is outside the optimus folder on purpose because it cause problem importing optimus when using de udf.
# This can not import any optimus file unless it's imported via addPyFile
import datetime
import math
import os
import re
f... | 27.324301 | 133 | 0.55632 | 3,732 | 31,259 | 4.50268 | 0.154341 | 0.026779 | 0.033325 | 0.036658 | 0.411331 | 0.364437 | 0.328672 | 0.292311 | 0.237324 | 0.211795 | 0 | 0.007646 | 0.31802 | 31,259 | 1,143 | 134 | 27.348206 | 0.778263 | 0.164721 | 0 | 0.233846 | 0 | 0.009231 | 0.130092 | 0.014584 | 0 | 0 | 0 | 0 | 0 | 1 | 0.110769 | false | 0 | 0.023077 | 0.027692 | 0.286154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |