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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3c9d98788fd7f026caadb1f75253ef985b5eeae4 | 239 | py | Python | workplace_extractor/Nodes/__init__.py | denisduarte/workplace_extractor | 722fcaa535aea38c22985c887d0647ba664d7a5f | [
"MIT"
] | null | null | null | workplace_extractor/Nodes/__init__.py | denisduarte/workplace_extractor | 722fcaa535aea38c22985c887d0647ba664d7a5f | [
"MIT"
] | null | null | null | workplace_extractor/Nodes/__init__.py | denisduarte/workplace_extractor | 722fcaa535aea38c22985c887d0647ba664d7a5f | [
"MIT"
] | 1 | 2021-11-17T16:29:40.000Z | 2021-11-17T16:29:40.000Z | # from workplace_extractor.Nodes.Node import Node
# from workplace_extractor.Nodes.NodeCollection import NodeCollection, PostCollection
# from workplace_extractor.Nodes.Post import Post
# from workplace_extractor.Nodes.Group import Group
| 39.833333 | 85 | 0.853556 | 29 | 239 | 6.896552 | 0.344828 | 0.26 | 0.44 | 0.54 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09205 | 239 | 5 | 86 | 47.8 | 0.921659 | 0.958159 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b1dd8bbb1c0024c2affe6a976bdc0b75621a122b | 73 | py | Python | smartcross/envs/obs/__init__.py | opendilab/DI-smartcross | 362c6c6dcfd2e1f59d3e7c955ffe2d9d1b13d8d2 | [
"Apache-2.0"
] | 49 | 2021-12-28T08:10:44.000Z | 2022-01-24T04:09:41.000Z | smartcross/envs/obs/__init__.py | opendilab/DI-smartcross | 362c6c6dcfd2e1f59d3e7c955ffe2d9d1b13d8d2 | [
"Apache-2.0"
] | null | null | null | smartcross/envs/obs/__init__.py | opendilab/DI-smartcross | 362c6c6dcfd2e1f59d3e7c955ffe2d9d1b13d8d2 | [
"Apache-2.0"
] | null | null | null | from .sumo_obs import SumoObs
from .sumo_obs_runner import SumoObsRunner
| 24.333333 | 42 | 0.863014 | 11 | 73 | 5.454545 | 0.636364 | 0.266667 | 0.366667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109589 | 73 | 2 | 43 | 36.5 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
59340bcefee4edd7b2713943f5cca34474640282 | 437 | py | Python | mpl_interactions/ipyplot.py | redeboer/mpl-interactions | 649190fea86f2885ba62aeb3eb198f9ab148bf51 | [
"BSD-3-Clause"
] | 67 | 2020-08-09T16:41:32.000Z | 2022-03-31T20:46:20.000Z | mpl_interactions/ipyplot.py | redeboer/mpl-interactions | 649190fea86f2885ba62aeb3eb198f9ab148bf51 | [
"BSD-3-Clause"
] | 172 | 2020-08-04T00:31:19.000Z | 2022-03-17T19:19:03.000Z | mpl_interactions/ipyplot.py | redeboer/mpl-interactions | 649190fea86f2885ba62aeb3eb198f9ab148bf51 | [
"BSD-3-Clause"
] | 17 | 2020-08-06T17:26:01.000Z | 2022-01-04T23:46:01.000Z | from .pyplot import interactive_axhline as axhline
from .pyplot import interactive_axvline as axvline
from .pyplot import interactive_hist as hist
from .pyplot import interactive_imshow as imshow
from .pyplot import interactive_plot as plot
from .pyplot import interactive_scatter as scatter
from .pyplot import interact... | 43.7 | 50 | 0.855835 | 63 | 437 | 5.793651 | 0.222222 | 0.246575 | 0.394521 | 0.665753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12357 | 437 | 9 | 51 | 48.555556 | 0.953003 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
3cab6edbdf96d3defe19f4b9af80084781516a8f | 6,881 | py | Python | PopStats/model.py | haoruilee/DeepSets | b405dd6b51a34fb1ef622e25e6685b417b7b7cbb | [
"Apache-2.0"
] | 213 | 2018-04-14T19:24:29.000Z | 2022-03-27T07:58:48.000Z | PopStats/model.py | haoruilee/DeepSets | b405dd6b51a34fb1ef622e25e6685b417b7b7cbb | [
"Apache-2.0"
] | 2 | 2019-07-30T14:39:01.000Z | 2019-07-30T15:48:06.000Z | PopStats/model.py | haoruilee/DeepSets | b405dd6b51a34fb1ef622e25e6685b417b7b7cbb | [
"Apache-2.0"
] | 60 | 2018-04-16T20:12:55.000Z | 2022-03-25T04:47:48.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
# from loglinear import LogLinear
class DeepSet(nn.Module):
def __init__(self, in_features, set_features=50):
super(DeepSet, self).__init__()
self.in_features = in_features
self.out_features = set_features
self.feat... | 30.71875 | 67 | 0.529865 | 804 | 6,881 | 4.318408 | 0.087065 | 0.080645 | 0.089862 | 0.131336 | 0.934908 | 0.918491 | 0.911578 | 0.894297 | 0.830357 | 0.807316 | 0 | 0.044633 | 0.348787 | 6,881 | 223 | 68 | 30.856502 | 0.730194 | 0.00901 | 0 | 0.765027 | 0 | 0 | 0.031103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087432 | false | 0 | 0.016393 | 0.021858 | 0.169399 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3cae9736e89228f55374e3143304c7733431c233 | 11,847 | py | Python | test/hummingbot/core/data_type/test_trade_fee.py | pecuniafinance/hummingbot | 2cbb19c187a429d3e6000dc938617ca2a1f9f357 | [
"Apache-2.0"
] | 542 | 2021-12-17T22:34:31.000Z | 2022-03-31T14:36:23.000Z | test/hummingbot/core/data_type/test_trade_fee.py | pecuniafinance/hummingbot | 2cbb19c187a429d3e6000dc938617ca2a1f9f357 | [
"Apache-2.0"
] | 291 | 2021-12-17T20:07:53.000Z | 2022-03-31T11:07:23.000Z | test/hummingbot/core/data_type/test_trade_fee.py | pecuniafinance/hummingbot | 2cbb19c187a429d3e6000dc938617ca2a1f9f357 | [
"Apache-2.0"
] | 220 | 2021-12-17T12:41:23.000Z | 2022-03-31T23:03:22.000Z | from decimal import Decimal
from unittest import TestCase
from hummingbot.core.data_type.common import TradeType, PositionAction
from hummingbot.core.data_type.in_flight_order import TradeUpdate
from hummingbot.core.data_type.trade_fee import (
AddedToCostTradeFee,
DeductedFromReturnsTradeFee,
TokenAmount,... | 36.906542 | 116 | 0.641428 | 1,288 | 11,847 | 5.593944 | 0.096273 | 0.074948 | 0.067176 | 0.086051 | 0.912283 | 0.880777 | 0.851631 | 0.840527 | 0.840527 | 0.837474 | 0 | 0.023269 | 0.249093 | 11,847 | 320 | 117 | 37.021875 | 0.786646 | 0.02929 | 0 | 0.715415 | 0 | 0 | 0.0709 | 0 | 0 | 0 | 0 | 0 | 0.142292 | 1 | 0.063241 | false | 0 | 0.019763 | 0 | 0.094862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
595b67c4d7dbed2dd77a6f5e2ab8d63c8049a1ce | 3,805 | py | Python | datasets/code_x_glue_cc_cloze_testing_all/generated_definitions.py | WojciechKusa/datasets | 1406a04c3e911cec2680d8bc513653e0cafcaaa4 | [
"Apache-2.0"
] | 10,608 | 2020-09-10T15:47:50.000Z | 2022-03-31T22:51:47.000Z | datasets/code_x_glue_cc_cloze_testing_all/generated_definitions.py | realChainLife/datasets | 98261e8b0b7be4dbaaa71ae188b950f7fbe51bbd | [
"Apache-2.0"
] | 2,396 | 2020-09-10T14:55:31.000Z | 2022-03-31T19:41:04.000Z | datasets/code_x_glue_cc_cloze_testing_all/generated_definitions.py | realChainLife/datasets | 98261e8b0b7be4dbaaa71ae188b950f7fbe51bbd | [
"Apache-2.0"
] | 1,530 | 2020-09-10T21:43:10.000Z | 2022-03-31T01:59:12.000Z | DEFINITIONS = {
"go": {
"class_name": "CodeXGlueCcClozeTestingAll",
"dataset_type": "Code-Code",
"description": "CodeXGLUE ClozeTesting-all dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/ClozeTesting-all",
"dir_name": "ClozeTesting-all",
"nam... | 55.144928 | 150 | 0.651248 | 409 | 3,805 | 5.98533 | 0.105134 | 0.183824 | 0.088235 | 0.176471 | 0.867647 | 0.867647 | 0.867647 | 0.867647 | 0.867647 | 0.867647 | 0 | 0.009198 | 0.171353 | 3,805 | 68 | 151 | 55.955882 | 0.767206 | 0 | 0 | 0.441176 | 0 | 0.264706 | 0.718003 | 0.040999 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
59823b6acd23ad31e1e2c1b1e1534e69e29195c4 | 10,850 | py | Python | treemodels.py | zgana/manatee | bf79507523e9f84321d15de685709d51ddf9125c | [
"WTFPL"
] | null | null | null | treemodels.py | zgana/manatee | bf79507523e9f84321d15de685709d51ddf9125c | [
"WTFPL"
] | null | null | null | treemodels.py | zgana/manatee | bf79507523e9f84321d15de685709d51ddf9125c | [
"WTFPL"
] | null | null | null | # treemodels.py
from __future__ import division
import gtk
from debug import *
import numpy as np
import matplotlib.pyplot as plt
class CountingActivitiesModel (gtk.GenericTreeModel):
"""Gtk TreeModel for CountingActivity's in a Log."""
def __init__ (self, log):
gtk.GenericTreeModel.__init__ (sel... | 25.350467 | 79 | 0.5447 | 1,395 | 10,850 | 4.047312 | 0.101075 | 0.053135 | 0.042508 | 0.011335 | 0.81084 | 0.745661 | 0.727063 | 0.718208 | 0.683493 | 0.683493 | 0 | 0.023555 | 0.362212 | 10,850 | 427 | 80 | 25.409836 | 0.792341 | 0.080092 | 0 | 0.780645 | 0 | 0.003226 | 0.00746 | 0.005141 | 0 | 0 | 0 | 0.002342 | 0 | 1 | 0.241935 | false | 0 | 0.016129 | 0.135484 | 0.619355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 9 |
599237b6a3ce02844a3d27e6d82357070297391c | 11,878 | py | Python | dataloader.py | sha2nkt/dvs_super_slomo | 8b2a5e42eec5e0dcefa852fce5f51b8e8e390f6c | [
"MIT"
] | 3 | 2018-12-14T02:31:11.000Z | 2021-04-26T03:05:30.000Z | dataloader.py | sha2nkt/dvs_super_slomo | 8b2a5e42eec5e0dcefa852fce5f51b8e8e390f6c | [
"MIT"
] | 1 | 2018-12-29T08:02:32.000Z | 2018-12-29T08:02:32.000Z | dataloader.py | sha2nkt/dvs_super_slomo | 8b2a5e42eec5e0dcefa852fce5f51b8e8e390f6c | [
"MIT"
] | 2 | 2018-12-29T06:52:38.000Z | 2019-01-01T09:36:35.000Z | import torch
import torch.utils.data as data
import numpy as np
import cv2
from PIL import Image
import glob
import os, pdb
import random
def populateTrainList(folderPath):
folderList_pre = [x[0] for x in os.walk(folderPath)]
folderList = []
trainList = []
for folder in folderList_pre:
if folder[-3:] == '240':... | 24.643154 | 89 | 0.658781 | 2,002 | 11,878 | 3.695804 | 0.072428 | 0.078524 | 0.047574 | 0.0223 | 0.820651 | 0.797135 | 0.782133 | 0.764833 | 0.750912 | 0.736991 | 0 | 0.048758 | 0.172925 | 11,878 | 482 | 90 | 24.643154 | 0.704397 | 0.09446 | 0 | 0.75 | 0 | 0 | 0.015316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.026667 | 0.013333 | 0.16 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
59bde3b563a52287e2ffd7c5900ef7250576ee62 | 11,524 | py | Python | addressapp/tests/api/test_geographyapi.py | AbhiyantrikTechnology/DentalHub-Backend | 89802b3e7671ffe8b3d287a998c3c4f375b58f03 | [
"MIT"
] | 1 | 2021-04-03T19:57:32.000Z | 2021-04-03T19:57:32.000Z | addressapp/tests/api/test_geographyapi.py | AbhiyantrikTechnology/DentalHub-Backend | 89802b3e7671ffe8b3d287a998c3c4f375b58f03 | [
"MIT"
] | null | null | null | addressapp/tests/api/test_geographyapi.py | AbhiyantrikTechnology/DentalHub-Backend | 89802b3e7671ffe8b3d287a998c3c4f375b58f03 | [
"MIT"
] | null | null | null |
# -*- coding:utf-8 -*-
from django.contrib.auth.models import Permission
import pytest
from faker import Faker
from mixer.backend.django import mixer
from rest_framework import status
from rest_framework.test import APIClient
from rest_framework_jwt.settings import api_settings
from django.test import TestCase
from ... | 41.304659 | 107 | 0.658625 | 1,355 | 11,524 | 5.428044 | 0.086347 | 0.036166 | 0.060095 | 0.078314 | 0.88416 | 0.882937 | 0.881441 | 0.878178 | 0.861999 | 0.840245 | 0 | 0.013776 | 0.218934 | 11,524 | 278 | 108 | 41.453237 | 0.803355 | 0.046512 | 0 | 0.78392 | 0 | 0 | 0.131685 | 0 | 0 | 0 | 0 | 0 | 0.120603 | 1 | 0.025126 | false | 0 | 0.070352 | 0 | 0.105528 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ab9a28fd51808dfc58f071bc5e2fb32dc37205d8 | 909 | py | Python | basic/print emoji.py | jspw/Basic_Python | aa159f576a471c6deebdf1e5f462dfc9ffb4930b | [
"Unlicense"
] | 6 | 2020-06-25T14:52:09.000Z | 2021-08-05T20:54:15.000Z | basic/print emoji.py | jspw/Basic_Python | aa159f576a471c6deebdf1e5f462dfc9ffb4930b | [
"Unlicense"
] | null | null | null | basic/print emoji.py | jspw/Basic_Python | aa159f576a471c6deebdf1e5f462dfc9ffb4930b | [
"Unlicense"
] | null | null | null | #website : https://unicode.org/emoji/charts/full-emoji-list.html
#replace '+' with '000'
print("\U0001F600")
print("\U0001F603")
print("\U0001F604")
print("\U0001F601")
print("\U0001F606")
print("\U0001F605")
print("\U0001F602")
print("\U0001F602")
print("\U0001F602")
print("\U0001F602")
print("\U0001F602")
print("\U... | 21.139535 | 65 | 0.69747 | 100 | 909 | 6.34 | 0.29 | 0.706625 | 0.958991 | 1.369085 | 0.714511 | 0.714511 | 0.714511 | 0.714511 | 0.714511 | 0.714511 | 0 | 0.324706 | 0.064906 | 909 | 43 | 66 | 21.139535 | 0.421176 | 0.094609 | 0 | 0.820513 | 0 | 0 | 0.520681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 13 |
abc2416e2cc3ee6d1b3a42a6443c32195ce3e5d8 | 59,719 | py | Python | eval/keras_v1/utils.py | zifanw/smoothed_geometry | c7dd72a8c5824af985703c9662184da97486aec3 | [
"MIT"
] | 5 | 2020-10-23T01:07:40.000Z | 2020-12-09T08:12:40.000Z | eval/keras_v1/utils.py | zifanw/smoothed_geometry | c7dd72a8c5824af985703c9662184da97486aec3 | [
"MIT"
] | 1 | 2021-03-18T08:22:13.000Z | 2021-03-22T02:21:23.000Z | eval/keras_v1/utils.py | zifanw/smoothed_geometry | c7dd72a8c5824af985703c9662184da97486aec3 | [
"MIT"
] | 1 | 2021-12-08T08:08:52.000Z | 2021-12-08T08:08:52.000Z | import numpy as np
import tensorflow as tf
import random
import _pickle as pkl
import matplotlib.pyplot as plt
from pylab import rcParams
import scipy
import scipy.stats as stats
from tensorflow.python.ops import gen_nn_ops
config_gpu = tf.ConfigProto()
config_gpu.gpu_options.allow_growth = True
MEAN_IMAGE = np.zeros(... | 49.030378 | 119 | 0.511278 | 6,309 | 59,719 | 4.629735 | 0.051514 | 0.047143 | 0.023486 | 0.021911 | 0.945667 | 0.936013 | 0.933548 | 0.921086 | 0.919306 | 0.912185 | 0 | 0.015014 | 0.408898 | 59,719 | 1,217 | 120 | 49.070666 | 0.812436 | 0.111807 | 0 | 0.910168 | 0 | 0 | 0.0317 | 0.000957 | 0 | 0 | 0 | 0 | 0.002962 | 1 | 0.034551 | false | 0.002962 | 0.008885 | 0 | 0.095755 | 0.005923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
055e8e9583a1a8f98bf674b6324c89ef136fc86e | 2,513 | py | Python | anuvaad-etl/anuvaad-extractor/sentence/etl-tokeniser/errors/errors_exception.py | ManavTriesStuff/anuvaad | 6993e3ac78818c171c173ccf8acf962ff57856a4 | [
"MIT"
] | 15 | 2021-01-08T08:42:30.000Z | 2022-03-12T17:52:15.000Z | anuvaad-etl/anuvaad-extractor/sentence/etl-tokeniser/errors/errors_exception.py | ManavTriesStuff/anuvaad | 6993e3ac78818c171c173ccf8acf962ff57856a4 | [
"MIT"
] | 16 | 2021-01-21T01:38:51.000Z | 2022-01-20T08:59:52.000Z | anuvaad-etl/anuvaad-extractor/sentence/etl-tokeniser/errors/errors_exception.py | ManavTriesStuff/anuvaad | 6993e3ac78818c171c173ccf8acf962ff57856a4 | [
"MIT"
] | 25 | 2020-08-26T11:25:38.000Z | 2022-03-29T04:40:21.000Z | class FormatError(Exception):
def __init__(self, code, message):
self._code = code
self._message = message
@property
def code(self):
return self._code
@property
def message(self):
return self._message
def __str__(self):
return self.__class__.__name_... | 22.4375 | 96 | 0.608038 | 267 | 2,513 | 5.198502 | 0.071161 | 0.132565 | 0.191643 | 0.123199 | 0.922911 | 0.922911 | 0.919308 | 0.919308 | 0.919308 | 0.919308 | 0 | 0 | 0.292081 | 2,513 | 112 | 97 | 22.4375 | 0.780214 | 0 | 0 | 0.916667 | 0 | 0 | 0.01432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.25 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 11 |
553ac97333dceee69de1234fa5c1f36412232ed6 | 2,226 | py | Python | insta/tests.py | chriskaringeg/CRIMMZ-GRAM | f479690d948d49c50b9693c694aa4cb6b7451d46 | [
"MIT"
] | null | null | null | insta/tests.py | chriskaringeg/CRIMMZ-GRAM | f479690d948d49c50b9693c694aa4cb6b7451d46 | [
"MIT"
] | 4 | 2021-03-19T00:47:23.000Z | 2021-09-08T01:00:25.000Z | insta/tests.py | chriskaringeg/CRIMMZ-GRAM | f479690d948d49c50b9693c694aa4cb6b7451d46 | [
"MIT"
] | null | null | null | from django.test import TestCase
from .models import Image,Profile
from django.contrib.auth.models import User
# Create your tests here.
class ProfileTestCase(TestCase):
# SetUp method
def setUp(self):
#creating a user instance
self.user = User(username="chris",email="ckaringe... | 34.78125 | 112 | 0.640611 | 275 | 2,226 | 5.08 | 0.247273 | 0.057266 | 0.051539 | 0.080172 | 0.801718 | 0.77738 | 0.748032 | 0.748032 | 0.600573 | 0.600573 | 0 | 0.015743 | 0.22956 | 2,226 | 64 | 113 | 34.78125 | 0.798834 | 0.05885 | 0 | 0.439024 | 0 | 0 | 0.144157 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 1 | 0.243902 | false | 0.097561 | 0.073171 | 0 | 0.365854 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
55441e5ba1e2927794dcfea668749b73bd97fe51 | 44,435 | py | Python | tests/test_fitter.py | jmeyers314/danish | c82e455e52b3528ccfb6d8f4ab067be95dd3a7cf | [
"BSD-3-Clause"
] | null | null | null | tests/test_fitter.py | jmeyers314/danish | c82e455e52b3528ccfb6d8f4ab067be95dd3a7cf | [
"BSD-3-Clause"
] | 3 | 2021-10-12T17:18:45.000Z | 2021-12-07T17:35:18.000Z | tests/test_fitter.py | jmeyers314/danish | c82e455e52b3528ccfb6d8f4ab067be95dd3a7cf | [
"BSD-3-Clause"
] | 1 | 2021-12-09T14:24:05.000Z | 2021-12-09T14:24:05.000Z | import os
import pickle
import time
from scipy.optimize import least_squares
import numpy as np
import batoid
import danish
from test_helpers import timer
directory = os.path.dirname(__file__)
LSST_obsc_radii = {
'M1_inner': 2.5580033095346875,
'M2_outer': 4.502721059044802,
'M2_inner': 2.36985318897094... | 33.73956 | 86 | 0.558051 | 6,247 | 44,435 | 3.789339 | 0.070434 | 0.005999 | 0.022812 | 0.034978 | 0.893376 | 0.874958 | 0.858609 | 0.844415 | 0.840275 | 0.833094 | 0 | 0.076823 | 0.305435 | 44,435 | 1,316 | 87 | 33.765198 | 0.690179 | 0.103049 | 0 | 0.75073 | 0 | 0.005842 | 0.056489 | 0.015916 | 0 | 0 | 0 | 0 | 0.047712 | 1 | 0.012658 | false | 0 | 0.009737 | 0 | 0.022395 | 0.019474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
55627a0c8a8f7404118ea963597bc3bae14a5eac | 1,284 | py | Python | test/test_quadrature.py | mmechelke/bayesian_xfel | 9726b08494ef04daa52d95a246cac7e879f26f49 | [
"MIT"
] | null | null | null | test/test_quadrature.py | mmechelke/bayesian_xfel | 9726b08494ef04daa52d95a246cac7e879f26f49 | [
"MIT"
] | null | null | null | test/test_quadrature.py | mmechelke/bayesian_xfel | 9726b08494ef04daa52d95a246cac7e879f26f49 | [
"MIT"
] | null | null | null | import unittest
from bxfel.orientation.quadrature import GaussSO3Quadrature, ChebyshevSO3Quadrature
import numpy as np
class TestGauss(unittest.TestCase):
def test_init(self):
g = GaussSO3Quadrature(1)
self.assertEqual(g.m, 4)
self.assertTrue(g._R is not None)
self.assertTrue(g._... | 24.692308 | 83 | 0.583333 | 168 | 1,284 | 4.315476 | 0.291667 | 0.115862 | 0.088276 | 0.071724 | 0.824828 | 0.824828 | 0.824828 | 0.824828 | 0.824828 | 0.824828 | 0 | 0.033113 | 0.294393 | 1,284 | 51 | 84 | 25.176471 | 0.767108 | 0 | 0 | 0.848485 | 0 | 0 | 0.006231 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.121212 | false | 0 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
556fdc1dea656da635b89425ea22724622a350ae | 29,818 | py | Python | pynos/versions/ver_7/ver_7_1_0/yang/brocade_arp.py | bdeetz/pynos | bd8a34e98f322de3fc06750827d8bbc3a0c00380 | [
"Apache-2.0"
] | 12 | 2015-09-21T23:56:09.000Z | 2018-03-30T04:35:32.000Z | pynos/versions/ver_7/ver_7_1_0/yang/brocade_arp.py | bdeetz/pynos | bd8a34e98f322de3fc06750827d8bbc3a0c00380 | [
"Apache-2.0"
] | 10 | 2016-09-15T19:03:27.000Z | 2017-07-17T23:38:01.000Z | pynos/versions/ver_7/ver_7_1_0/yang/brocade_arp.py | bdeetz/pynos | bd8a34e98f322de3fc06750827d8bbc3a0c00380 | [
"Apache-2.0"
] | 6 | 2015-08-14T08:05:23.000Z | 2022-02-03T15:33:54.000Z | #!/usr/bin/env python
import xml.etree.ElementTree as ET
class brocade_arp(object):
"""Auto generated class.
"""
def __init__(self, **kwargs):
self._callback = kwargs.pop('callback')
def hide_arp_holder_system_max_arp(self, **kwargs):
"""Auto Generated Code
"""
... | 44.306092 | 110 | 0.652592 | 3,510 | 29,818 | 5.286895 | 0.017664 | 0.125451 | 0.056044 | 0.064666 | 0.993048 | 0.993048 | 0.993048 | 0.993048 | 0.993048 | 0.993048 | 0 | 0 | 0.226608 | 29,818 | 673 | 111 | 44.306092 | 0.804692 | 0.044369 | 0 | 0.991837 | 1 | 0 | 0.154793 | 0.027308 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091837 | false | 0 | 0.002041 | 0 | 0.185714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
5584df7e54afd61cbcad4a9abe44d3fd5e3256d3 | 148 | py | Python | backend/util/response/search_products_results/__init__.py | willrp/willstores-ws | 62c4f400f40fed1aef4f316c7e73dfecba98d026 | [
"MIT"
] | 4 | 2020-02-19T09:27:23.000Z | 2021-11-26T00:42:06.000Z | backend/util/response/store/search_products_results/__init__.py | willrp/willbuyer | 069836a91c777ede6f62a16daa9f26e555d66bcb | [
"MIT"
] | null | null | null | backend/util/response/store/search_products_results/__init__.py | willrp/willbuyer | 069836a91c777ede6f62a16daa9f26e555d66bcb | [
"MIT"
] | null | null | null | from .search_products_results_response import SearchProductsResultsResponse
from .search_products_results_schema import SearchProductsResultsSchema
| 49.333333 | 75 | 0.932432 | 14 | 148 | 9.428571 | 0.642857 | 0.151515 | 0.272727 | 0.378788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 148 | 2 | 76 | 74 | 0.942857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
e96dc64980c4297c6206f37460da3780dacbb2ee | 121 | py | Python | reversestring/test_.py | technolingo/AlgoStructuresPy | 4ac95542dec48b61dab3a0f33c5bacbe5a3cb3f1 | [
"MIT"
] | null | null | null | reversestring/test_.py | technolingo/AlgoStructuresPy | 4ac95542dec48b61dab3a0f33c5bacbe5a3cb3f1 | [
"MIT"
] | null | null | null | reversestring/test_.py | technolingo/AlgoStructuresPy | 4ac95542dec48b61dab3a0f33c5bacbe5a3cb3f1 | [
"MIT"
] | null | null | null | from .index import reverse_string
def test_reverse_string():
assert reverse_string('heLLo woRld') == 'dlRow oLLeh'
| 20.166667 | 57 | 0.752066 | 16 | 121 | 5.4375 | 0.75 | 0.448276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14876 | 121 | 5 | 58 | 24.2 | 0.84466 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
e992be9c7bc5a19fb6a422c233a1a821eda2698c | 21,055 | py | Python | problems/LQ/LQ2005/std.py | jgsu-acm/problems | 8df3fa8eeea62bef9a7809d0adca20dd9e9a3b1a | [
"MIT"
] | 1 | 2022-01-23T09:26:35.000Z | 2022-01-23T09:26:35.000Z | problems/LQ/LQ2005/std.py | jgsu-acm/oj-problems | 60fe9054ea2aea3465eedeffcce996d299711750 | [
"MIT"
] | null | null | null | problems/LQ/LQ2005/std.py | jgsu-acm/oj-problems | 60fe9054ea2aea3465eedeffcce996d299711750 | [
"MIT"
] | 1 | 2022-03-08T07:21:04.000Z | 2022-03-08T07:21:04.000Z | # REPEAT (\d) -> for i in range($1)
A = 0
for i in range(2):
A = A + 4
for i in range(5):
for i in range(6):
A = A + 5
A = A + 7
for i in range(6):
A = A + 7
for i in range(4):
A = A + 2
A = A + 7
A = A + 2
for i in range(7):
... | 20.950249 | 35 | 0.285253 | 3,673 | 21,055 | 1.635176 | 0.004901 | 0.222777 | 0.331668 | 0.608059 | 0.997669 | 0.997669 | 0.995338 | 0.995172 | 0.970363 | 0.931235 | 0 | 0.120014 | 0.603467 | 21,055 | 1,004 | 36 | 20.971116 | 0.599353 | 0.001567 | 0 | 0.998004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.000998 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
75adcdd5978d84173ed205a8b6a24eca301022da | 11,900 | py | Python | happ/tests/api/admin/test_interests.py | Mafioso/happ-backend | 3a3a57add4ec55985cc37db79c71430ed78b1ee3 | [
"MIT"
] | 1 | 2017-10-22T06:12:33.000Z | 2017-10-22T06:12:33.000Z | happ/tests/api/admin/test_interests.py | Mafioso/happ-backend | 3a3a57add4ec55985cc37db79c71430ed78b1ee3 | [
"MIT"
] | null | null | null | happ/tests/api/admin/test_interests.py | Mafioso/happ-backend | 3a3a57add4ec55985cc37db79c71430ed78b1ee3 | [
"MIT"
] | null | null | null | from rest_framework import status
from rest_framework.test import APISimpleTestCase
from rest_framework_jwt.settings import api_settings
from happ.models import User, Interest, LogEntry
from happ.factories import (
UserFactory,
InterestFactory,
CityFactory,
)
from happ.tests import *
class Tests(APISimpl... | 35.951662 | 110 | 0.611008 | 1,352 | 11,900 | 5.222633 | 0.099852 | 0.052401 | 0.06373 | 0.052967 | 0.826512 | 0.796488 | 0.784733 | 0.777369 | 0.777369 | 0.759524 | 0 | 0.013367 | 0.258151 | 11,900 | 330 | 111 | 36.060606 | 0.786475 | 0.040084 | 0 | 0.681633 | 0 | 0 | 0.087848 | 0.012895 | 0 | 0 | 0 | 0 | 0.138776 | 1 | 0.044898 | false | 0.081633 | 0.02449 | 0 | 0.073469 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
75d3f453671582758e593aeed8465098e1a2c745 | 1,273 | py | Python | project-euler/08.py | hydroo/coding-and-math-exercises | c0c9b8ae48e043b0809e4c592444f3e4bc3222d8 | [
"CC0-1.0"
] | 2 | 2015-05-29T21:03:26.000Z | 2019-11-11T02:10:53.000Z | project-euler/08.py | hydroo/coding-and-math-exercises | c0c9b8ae48e043b0809e4c592444f3e4bc3222d8 | [
"CC0-1.0"
] | null | null | null | project-euler/08.py | hydroo/coding-and-math-exercises | c0c9b8ae48e043b0809e4c592444f3e4bc3222d8 | [
"CC0-1.0"
] | null | null | null | #! /usr/bin/python
a = "7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522744304355766896648950445244523161731856403098711121722383113622298934233803081353362766142828064444866452... | 90.928571 | 1,006 | 0.897879 | 73 | 1,273 | 15.657534 | 0.39726 | 0.045494 | 0.056868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.822294 | 0.027494 | 1,273 | 13 | 1,007 | 97.923077 | 0.100969 | 0.013354 | 0 | 0 | 0 | 0 | 0.797448 | 0.797448 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
f99dbac8ab38d8e1b7ae24277f4c949f872132f8 | 30 | py | Python | Lab1/tt.py | Machinesaac/6.009 | aa5bd76d56fc92e5c7c2e8ba9f4002b0e07bd236 | [
"MIT"
] | null | null | null | Lab1/tt.py | Machinesaac/6.009 | aa5bd76d56fc92e5c7c2e8ba9f4002b0e07bd236 | [
"MIT"
] | null | null | null | Lab1/tt.py | Machinesaac/6.009 | aa5bd76d56fc92e5c7c2e8ba9f4002b0e07bd236 | [
"MIT"
] | null | null | null | a = [(255,0,0)]
print(a[0][0]) | 15 | 15 | 0.466667 | 8 | 30 | 1.75 | 0.5 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259259 | 0.1 | 30 | 2 | 16 | 15 | 0.259259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
ddff12472e5f1db39beffe3108292aeb6c837704 | 10,595 | py | Python | example_algos/models/aes.py | MIC-DKFZ/mood | a01303adb4256653b133e2f7cd4741d366b681f7 | [
"Apache-2.0"
] | 42 | 2020-04-30T11:16:11.000Z | 2021-09-15T16:15:30.000Z | example_algos/models/aes.py | MIC-DKFZ/mood | a01303adb4256653b133e2f7cd4741d366b681f7 | [
"Apache-2.0"
] | 2 | 2020-06-19T06:24:19.000Z | 2020-07-27T08:07:54.000Z | example_algos/models/aes.py | MIC-DKFZ/mood | a01303adb4256653b133e2f7cd4741d366b681f7 | [
"Apache-2.0"
] | 5 | 2020-07-20T13:26:50.000Z | 2021-07-18T22:42:47.000Z | import numpy as np
import torch
import torch.distributions as dist
from example_algos.models.nets import BasicEncoder, BasicGenerator
class VAE(torch.nn.Module):
def __init__(
self,
input_size,
z_dim=256,
fmap_sizes=(16, 64, 256, 1024),
to_1x1=True,
conv_op=torch.n... | 44.145833 | 188 | 0.618216 | 1,331 | 10,595 | 4.755823 | 0.138242 | 0.041074 | 0.022749 | 0.023697 | 0.875829 | 0.872196 | 0.846761 | 0.836967 | 0.830016 | 0.818957 | 0 | 0.016422 | 0.293063 | 10,595 | 239 | 189 | 44.330544 | 0.828705 | 0.512695 | 0 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.028571 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fb2900eae036aa7dc98c937b1fb3869bdbf22c3c | 5,922 | py | Python | tests/test_functions.py | rohankumardubey/griffe | 3c026d3b8c9714d4b15a6ad2e003718e2e46a3e4 | [
"0BSD"
] | null | null | null | tests/test_functions.py | rohankumardubey/griffe | 3c026d3b8c9714d4b15a6ad2e003718e2e46a3e4 | [
"0BSD"
] | null | null | null | tests/test_functions.py | rohankumardubey/griffe | 3c026d3b8c9714d4b15a6ad2e003718e2e46a3e4 | [
"0BSD"
] | null | null | null | """Test functions loading."""
import inspect
from griffe.loader import GriffeLoader
from tests import FIXTURES_DIR
loader = GriffeLoader()
def test_loading_functions_arguments(): # noqa: WPS218
"""Test functions arguments loading."""
module = loader.load_module(FIXTURES_DIR / "functions" / "arguments.py")... | 36.109756 | 76 | 0.702634 | 769 | 5,922 | 5.326398 | 0.074122 | 0.195557 | 0.131836 | 0.092773 | 0.87207 | 0.870361 | 0.853516 | 0.847168 | 0.822021 | 0.822021 | 0 | 0.011489 | 0.191658 | 5,922 | 163 | 77 | 36.331288 | 0.844161 | 0.014184 | 0 | 0.8 | 0 | 0 | 0.101957 | 0.038277 | 0 | 0 | 0 | 0 | 0.696552 | 1 | 0.006897 | false | 0 | 0.02069 | 0 | 0.027586 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
349e27ba1cd239fb0da7279c8d4fbc9bda55414a | 61,087 | py | Python | Software/RMSDReducer.py | hrch3n/cNMA | 32bfffc707487fa0964543d17b1fe89f089e09d5 | [
"MIT"
] | 3 | 2021-02-09T02:32:33.000Z | 2021-09-14T22:18:26.000Z | Software/RMSDReducer.py | hrch3n/cNMA | 32bfffc707487fa0964543d17b1fe89f089e09d5 | [
"MIT"
] | 1 | 2018-03-09T19:28:42.000Z | 2018-03-30T20:08:50.000Z | Software/RMSDReducer.py | hrch3n/cNMA | 32bfffc707487fa0964543d17b1fe89f089e09d5 | [
"MIT"
] | 6 | 2018-12-05T14:49:26.000Z | 2019-11-07T03:44:18.000Z | '''
Created on Jan 24, 2014
@author: oliwa
'''
from prody.measure.measure import calcDeformVector
import numpy as np
from prody.dynamics.compare import calcOverlap
from prody.dynamics.mode import Vector
from prody.measure.transform import calcRMSD
from scipy.sparse.linalg import cg
from timeout import timeout
from tim... | 53.773768 | 212 | 0.580434 | 6,100 | 61,087 | 5.76082 | 0.063934 | 0.018184 | 0.025611 | 0.013147 | 0.865058 | 0.852907 | 0.836914 | 0.831223 | 0.818986 | 0.81486 | 0 | 0.015572 | 0.342986 | 61,087 | 1,136 | 213 | 53.773768 | 0.859998 | 0.173785 | 0 | 0.803459 | 0 | 0.003145 | 0.076532 | 0.000549 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014151 | null | null | 0.095912 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
349f5d1f3738a967bba9f7ab1ce0d2ad36452dfb | 548,163 | py | Python | pyVmomi/_typeinfo_vpxapi.py | xweichu/pyvmomi | 77aedef02974a63517a079c482e49fd9890c09a4 | [
"Apache-2.0"
] | null | null | null | pyVmomi/_typeinfo_vpxapi.py | xweichu/pyvmomi | 77aedef02974a63517a079c482e49fd9890c09a4 | [
"Apache-2.0"
] | null | null | null | pyVmomi/_typeinfo_vpxapi.py | xweichu/pyvmomi | 77aedef02974a63517a079c482e49fd9890c09a4 | [
"Apache-2.0"
] | null | null | null | # ******* WARNING - AUTO GENERATED CODE - DO NOT EDIT *******
from .VmomiSupport import CreateDataType, CreateManagedType
from .VmomiSupport import CreateEnumType
from .VmomiSupport import AddVersion, AddVersionParent
from .VmomiSupport import AddBreakingChangesInfo
from .VmomiSupport import F_LINK, F_LINKABLE
from .Vm... | 83.485075 | 37,032 | 0.802876 | 65,731 | 548,163 | 6.517883 | 0.019549 | 0.192518 | 0.243477 | 0.039295 | 0.945503 | 0.921898 | 0.735119 | 0.581845 | 0.448531 | 0.242776 | 0 | 0.040105 | 0.032751 | 548,163 | 6,565 | 37,033 | 83.497791 | 0.767928 | 0.000108 | 0 | 0 | 1 | 0 | 0.657516 | 0.44986 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.000457 | 0.001219 | 0 | 0.001219 | 0.000305 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
34c3f46ec865d0eba897bc63d2a6f9ed6f972a7c | 205 | py | Python | tests/test_space.py | letmaik/exhaust | 7c3b4f1dfab95192968b0bcb49bbb5574e1ac83b | [
"MIT"
] | 1 | 2021-12-04T21:37:41.000Z | 2021-12-04T21:37:41.000Z | tests/test_space.py | letmaik/exhaust | 7c3b4f1dfab95192968b0bcb49bbb5574e1ac83b | [
"MIT"
] | null | null | null | tests/test_space.py | letmaik/exhaust | 7c3b4f1dfab95192968b0bcb49bbb5574e1ac83b | [
"MIT"
] | null | null | null | import exhaust
def test_double_iteration():
def gen(state: exhaust.State):
return state.maybe()
space = exhaust.space(gen)
assert len(set(space)) == 2
assert len(set(space)) == 2
| 20.5 | 34 | 0.643902 | 28 | 205 | 4.642857 | 0.535714 | 0.138462 | 0.184615 | 0.261538 | 0.276923 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012579 | 0.22439 | 205 | 9 | 35 | 22.777778 | 0.805031 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
9b3024232f11f4bd96ce14d4af284494a5791d6f | 3,814 | py | Python | examples/util/lookups.py | OptionMetrics/petl | ee0a196f40c07218249be0d279b72e57d177a7fd | [
"MIT"
] | 495 | 2018-08-07T18:24:57.000Z | 2022-03-31T14:57:57.000Z | examples/util/lookups.py | OptionMetrics/petl | ee0a196f40c07218249be0d279b72e57d177a7fd | [
"MIT"
] | 204 | 2018-07-25T12:44:14.000Z | 2022-03-28T07:52:54.000Z | examples/util/lookups.py | OptionMetrics/petl | ee0a196f40c07218249be0d279b72e57d177a7fd | [
"MIT"
] | 103 | 2015-01-13T11:13:59.000Z | 2018-06-06T03:41:29.000Z | from __future__ import division, print_function, absolute_import
# lookup()
##########
import petl as etl
table1 = [['foo', 'bar'],
['a', 1],
['b', 2],
['b', 3]]
lkp = etl.lookup(table1, 'foo', 'bar')
lkp['a']
lkp['b']
# if no valuespec argument is given, defaults to the whole
# row ... | 23.987421 | 64 | 0.572365 | 541 | 3,814 | 4.02403 | 0.155268 | 0.031236 | 0.028939 | 0.033073 | 0.916399 | 0.900781 | 0.875517 | 0.861736 | 0.846119 | 0.846119 | 0 | 0.021035 | 0.214735 | 3,814 | 158 | 65 | 24.139241 | 0.705843 | 0.279759 | 0 | 0.851852 | 0 | 0 | 0.108647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9b4fc5d11eb9c7433f5b5082e52b672295945807 | 177 | py | Python | am_exps/__init__.py | AxlAlm/SegNLP | 89b8d077952397dfcea089376b373b117bcf6a65 | [
"Apache-2.0"
] | 1 | 2021-01-21T17:16:55.000Z | 2021-01-21T17:16:55.000Z | am_exps/__init__.py | AxlAlm/SegNLP | 89b8d077952397dfcea089376b373b117bcf6a65 | [
"Apache-2.0"
] | 2 | 2021-01-24T20:07:54.000Z | 2021-01-26T16:59:28.000Z | am_exps/__init__.py | AxlAlm/SegNLP | 89b8d077952397dfcea089376b373b117bcf6a65 | [
"Apache-2.0"
] | 1 | 2021-01-21T17:16:57.000Z | 2021-01-21T17:16:57.000Z |
from .jpnn_exp import jpnn
from .lstm_cnn_crf_exp import lstm_cnn_crf
from .lstm_crf_exp import lstm_crf
from .lstm_dist_exp import lstm_dist
from .lstm_er_exp import lstm_er
| 22.125 | 42 | 0.847458 | 35 | 177 | 3.857143 | 0.257143 | 0.333333 | 0.385185 | 0.237037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124294 | 177 | 7 | 43 | 25.285714 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
9b640981f965b2f14c10829437faa4fc3de08a1f | 11,781 | py | Python | tests/test_toBig.py | andreacosolo/granite | c04aafb8d6ba10e8f07278c9a7721b501dc5a4e8 | [
"MIT"
] | 3 | 2020-08-06T15:36:53.000Z | 2021-01-20T15:31:05.000Z | tests/test_toBig.py | andreacosolo/granite | c04aafb8d6ba10e8f07278c9a7721b501dc5a4e8 | [
"MIT"
] | 1 | 2021-01-08T16:54:16.000Z | 2021-01-08T16:54:16.000Z | tests/test_toBig.py | andreacosolo/granite | c04aafb8d6ba10e8f07278c9a7721b501dc5a4e8 | [
"MIT"
] | 2 | 2020-02-28T22:33:17.000Z | 2021-01-27T17:47:20.000Z | #################################################################
# Libraries
#################################################################
import sys, os
import pytest
import bitarray
from granite.toBig import (
main as main_toBig
)
from granite.lib.shared_... | 30.6 | 148 | 0.573466 | 1,586 | 11,781 | 4.071879 | 0.06053 | 0.117683 | 0.11149 | 0.148653 | 0.946423 | 0.945804 | 0.945804 | 0.938836 | 0.9297 | 0.923351 | 0 | 0.058366 | 0.246668 | 11,781 | 384 | 149 | 30.679688 | 0.669296 | 0.075885 | 0 | 0.850622 | 0 | 0.004149 | 0.298157 | 0.219205 | 0 | 0 | 0 | 0 | 0.120332 | 1 | 0.041494 | false | 0 | 0.020747 | 0 | 0.062241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9ba2f5b743d615457adc4c9fba4a7d7ab34fc4da | 27,774 | py | Python | billforward/apis/profiles_api.py | billforward/bf-python | d2b812329ca3ed1fd94364d7f46f69ad74665596 | [
"Apache-2.0"
] | 2 | 2016-11-23T17:32:37.000Z | 2022-02-24T05:13:20.000Z | billforward/apis/profiles_api.py | billforward/bf-python | d2b812329ca3ed1fd94364d7f46f69ad74665596 | [
"Apache-2.0"
] | null | null | null | billforward/apis/profiles_api.py | billforward/bf-python | d2b812329ca3ed1fd94364d7f46f69ad74665596 | [
"Apache-2.0"
] | 1 | 2016-12-30T20:02:48.000Z | 2016-12-30T20:02:48.000Z | # coding: utf-8
"""
BillForward REST API
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
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... | 43.876777 | 153 | 0.590696 | 2,998 | 27,774 | 5.293195 | 0.081721 | 0.050413 | 0.025711 | 0.022686 | 0.907997 | 0.887264 | 0.875922 | 0.859979 | 0.840444 | 0.829101 | 0 | 0.000959 | 0.324224 | 27,774 | 632 | 154 | 43.946203 | 0.844531 | 0.406135 | 0 | 0.742268 | 1 | 0 | 0.169558 | 0.035041 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037801 | false | 0 | 0.024055 | 0 | 0.116838 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
9baa595901070cdd623611de5d779db93fb2116f | 141 | py | Python | sewer/dns_providers/__init__.py | dnet/sewer | 6d9ecf3a3d385faa5bd46fcd3badeba1b5ec149a | [
"MIT"
] | null | null | null | sewer/dns_providers/__init__.py | dnet/sewer | 6d9ecf3a3d385faa5bd46fcd3badeba1b5ec149a | [
"MIT"
] | null | null | null | sewer/dns_providers/__init__.py | dnet/sewer | 6d9ecf3a3d385faa5bd46fcd3badeba1b5ec149a | [
"MIT"
] | null | null | null | from .common import BaseDns # noqa: F401
from .auroradns import AuroraDns # noqa: F401
from .cloudflare import CloudFlareDns # noqa: F401
| 35.25 | 51 | 0.765957 | 18 | 141 | 6 | 0.5 | 0.222222 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.170213 | 141 | 3 | 52 | 47 | 0.846154 | 0.22695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
9baadd273869e161a00e464d3bff1c984f17d03b | 156 | py | Python | bolinette/blnt/commands/__init__.py | bolinette/bolinette | b35a7d828c7d9617da6a8d7ac066e3b675a65252 | [
"MIT"
] | 4 | 2020-11-02T15:16:32.000Z | 2022-01-11T11:19:24.000Z | bolinette/blnt/commands/__init__.py | bolinette/bolinette | b35a7d828c7d9617da6a8d7ac066e3b675a65252 | [
"MIT"
] | 14 | 2021-01-04T11:06:59.000Z | 2022-03-23T17:01:49.000Z | bolinette/blnt/commands/__init__.py | bolinette/bolinette | b35a7d828c7d9617da6a8d7ac066e3b675a65252 | [
"MIT"
] | null | null | null | from bolinette.blnt.commands.argument import Argument
from bolinette.blnt.commands.command import Command
from bolinette.blnt.commands.parser import Parser
| 39 | 53 | 0.865385 | 21 | 156 | 6.428571 | 0.380952 | 0.288889 | 0.377778 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 156 | 3 | 54 | 52 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
fd2cd089adaef1db7aa16120e02fc15c272cd0be | 4,669 | py | Python | tests/SharedDataFrameTest.py | pywash/pywash | f105752f67ad5c4648117a2bebd875f8c88caeb2 | [
"MIT"
] | 7 | 2019-02-26T10:45:18.000Z | 2019-08-13T18:08:58.000Z | tests/SharedDataFrameTest.py | pywash/pywash | f105752f67ad5c4648117a2bebd875f8c88caeb2 | [
"MIT"
] | null | null | null | tests/SharedDataFrameTest.py | pywash/pywash | f105752f67ad5c4648117a2bebd875f8c88caeb2 | [
"MIT"
] | 1 | 2021-06-11T14:56:52.000Z | 2021-06-11T14:56:52.000Z | from unittest import TestCase
from src.PyWash import SharedDataFrame
from src.Exceptions import *
import pandas as pd
verbose = False
class TestDecorators(TestCase):
""" TestClass for SharedDataFrame methods """
def test_is_mergeable_column_names(self):
if verbose:
print("Testing: is_mer... | 49.670213 | 101 | 0.551296 | 466 | 4,669 | 5.412017 | 0.150215 | 0.041634 | 0.075337 | 0.04996 | 0.891356 | 0.891356 | 0.852102 | 0.765662 | 0.765662 | 0.765662 | 0 | 0.057375 | 0.286999 | 4,669 | 93 | 102 | 50.204301 | 0.70021 | 0.007925 | 0 | 0.73494 | 0 | 0 | 0.20199 | 0 | 0 | 0 | 0 | 0 | 0.072289 | 1 | 0.072289 | false | 0 | 0.048193 | 0 | 0.13253 | 0.120482 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fd52df24da0c085e80f1feb36da78ed2d8f8f03a | 28,576 | py | Python | medical_prescription/user/test/test_forms_patient.py | thiagonf/Sprint-3-GPP | 89f1dcf4e649f1bbbb8e21ea6b6f8a4565c996e2 | [
"MIT"
] | null | null | null | medical_prescription/user/test/test_forms_patient.py | thiagonf/Sprint-3-GPP | 89f1dcf4e649f1bbbb8e21ea6b6f8a4565c996e2 | [
"MIT"
] | 2 | 2020-06-05T18:41:29.000Z | 2021-06-10T20:35:12.000Z | medical_prescription/user/test/test_forms_patient.py | thiagonf/Sprint-3-GPP | 89f1dcf4e649f1bbbb8e21ea6b6f8a4565c996e2 | [
"MIT"
] | null | null | null | from django.test import TestCase
from user.forms import PatientForm
from user.models import User
class TestPatientForm(TestCase):
def setUp(self):
self.name_valid = 'Teste Nome'
self.name_invalid = 'a12'
self.name_invalid_TYPE = 'a@hjasgdjasd1al'
self.name_invalid_MAX = 'aasdkgasgh... | 47.547421 | 120 | 0.538949 | 2,819 | 28,576 | 5.094714 | 0.033345 | 0.053614 | 0.052082 | 0.093998 | 0.882746 | 0.867289 | 0.862693 | 0.861231 | 0.861231 | 0.861231 | 0 | 0.009661 | 0.366076 | 28,576 | 600 | 121 | 47.626667 | 0.783163 | 0 | 0 | 0.781982 | 0 | 0 | 0.135743 | 0.017882 | 0 | 0 | 0 | 0 | 0.055856 | 1 | 0.057658 | false | 0.127928 | 0.005405 | 0 | 0.064865 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
bd09f7af385859ac194cc38848ca06e8fded7b1c | 184 | py | Python | tests/test_create_json_schema.py | kaiba-tech/kaiba | 8d999ef6ff319cd51819189a911d66047d2feab0 | [
"MIT"
] | 5 | 2021-04-05T08:52:23.000Z | 2021-11-06T14:03:04.000Z | tests/test_create_json_schema.py | kaiba-tech/kaiba | 8d999ef6ff319cd51819189a911d66047d2feab0 | [
"MIT"
] | 68 | 2021-04-03T19:48:56.000Z | 2022-03-28T12:21:01.000Z | tests/test_create_json_schema.py | kaiba-tech/kaiba | 8d999ef6ff319cd51819189a911d66047d2feab0 | [
"MIT"
] | null | null | null | from kaiba.models.kaiba_object import KaibaObject
def test_create_jsonschema_from_model():
"""Test that we can create jsonschema."""
assert KaibaObject.schema_json(indent=2)
| 26.285714 | 49 | 0.782609 | 25 | 184 | 5.52 | 0.76 | 0.231884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0.130435 | 184 | 6 | 50 | 30.666667 | 0.85625 | 0.190217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
bd238e33e4a4280e2e28154811fa8728abc4869d | 4,713 | py | Python | crossmodal/door_models/dynamics.py | brentyi/multimodalfilter | 210b0e241120e0fbbeaef5e478bab36ffe1e159d | [
"MIT"
] | 21 | 2020-10-25T21:31:41.000Z | 2022-03-12T17:46:20.000Z | crossmodal/door_models/dynamics.py | brentyi/multimodalfilter | 210b0e241120e0fbbeaef5e478bab36ffe1e159d | [
"MIT"
] | 2 | 2020-11-19T00:46:06.000Z | 2021-02-17T21:57:42.000Z | crossmodal/door_models/dynamics.py | brentyi/multimodalfilter | 210b0e241120e0fbbeaef5e478bab36ffe1e159d | [
"MIT"
] | 6 | 2020-11-04T22:21:23.000Z | 2021-12-13T04:46:51.000Z | import torch
import torch.nn as nn
import torchfilter
import torchfilter.types as types
from fannypack.nn import resblocks
from . import layers
# TODO: Merge this with DoorDynamicsModelBrent
class DoorDynamicsModel(torchfilter.base.DynamicsModel):
def __init__(self, units=64):
"""Initializes a dynamics m... | 34.911111 | 87 | 0.640569 | 570 | 4,713 | 5.082456 | 0.226316 | 0.05523 | 0.024853 | 0.051778 | 0.835347 | 0.827753 | 0.827753 | 0.827753 | 0.810494 | 0.810494 | 0 | 0.013196 | 0.260344 | 4,713 | 134 | 88 | 35.171642 | 0.817843 | 0.228517 | 0 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.025 | 1 | 0.05 | false | 0 | 0.075 | 0 | 0.175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
bd29ebbf12a35534023e793894fe6396ba81247e | 15,499 | py | Python | python/paddle/fluid/tests/unittests/test_fused_gemm_epilogue_op.py | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | 11 | 2016-08-29T07:43:26.000Z | 2016-08-29T07:51:24.000Z | python/paddle/fluid/tests/unittests/test_fused_gemm_epilogue_op.py | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | null | null | null | python/paddle/fluid/tests/unittests/test_fused_gemm_epilogue_op.py | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | 1 | 2021-09-24T11:23:36.000Z | 2021-09-24T11:23:36.000Z | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
# Copyright (c) 2022 NVIDIA Corporation. 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://ww... | 31.825462 | 79 | 0.628879 | 1,977 | 15,499 | 4.764289 | 0.092564 | 0.035673 | 0.081537 | 0.057756 | 0.804863 | 0.804863 | 0.804863 | 0.804863 | 0.804756 | 0.742648 | 0 | 0.030191 | 0.249887 | 15,499 | 486 | 80 | 31.890947 | 0.779976 | 0.041487 | 0 | 0.772222 | 0 | 0 | 0.097029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119444 | false | 0.002778 | 0.016667 | 0 | 0.241667 | 0.002778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
bd31afe65b3bd36e2f8c7183191fb7432713a57a | 7,455 | py | Python | tests/to_jsonschema/test_combination_keywords.py | pglass/py-openapi-jsonschema-converter | ca84a49fc1e218ae4686d4ca6ee89781ac26c213 | [
"MIT"
] | 12 | 2018-12-10T19:11:47.000Z | 2021-08-02T13:55:04.000Z | tests/to_jsonschema/test_combination_keywords.py | pglass/py-openapi-jsonschema-converter | ca84a49fc1e218ae4686d4ca6ee89781ac26c213 | [
"MIT"
] | 6 | 2018-07-06T19:36:47.000Z | 2020-07-27T18:43:50.000Z | tests/to_jsonschema/test_combination_keywords.py | pglass/py-openapi-jsonschema-converter | ca84a49fc1e218ae4686d4ca6ee89781ac26c213 | [
"MIT"
] | 3 | 2018-07-05T23:06:18.000Z | 2020-07-11T03:32:07.000Z | from openapi_schema_to_json_schema import to_json_schema as convert
def test_iterate_allOfs():
schema = {
"allOf": [
{
"type": "object",
"required": ["foo"],
"properties": {
"foo": {
"type": "integer",
... | 25.443686 | 67 | 0.23662 | 322 | 7,455 | 5.403727 | 0.161491 | 0.103448 | 0.137931 | 0.072414 | 0.91092 | 0.897126 | 0.834483 | 0.834483 | 0.831034 | 0.707471 | 0 | 0.007886 | 0.64279 | 7,455 | 292 | 68 | 25.530822 | 0.645513 | 0 | 0 | 0.503571 | 0 | 0 | 0.17049 | 0 | 0 | 0 | 0 | 0 | 0.021429 | 1 | 0.021429 | false | 0.014286 | 0.003571 | 0 | 0.025 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
bd32d4278a0407a406c2daccc7a3e553846375f1 | 6,438 | py | Python | unit_tests.py | leguiart/Evolutionary_Computing | 67dc2d8e284ea4b9d21af10793778b942708114b | [
"MIT"
] | 1 | 2021-07-06T12:54:20.000Z | 2021-07-06T12:54:20.000Z | unit_tests.py | leguiart/Evolutionary_Computing | 67dc2d8e284ea4b9d21af10793778b942708114b | [
"MIT"
] | null | null | null | unit_tests.py | leguiart/Evolutionary_Computing | 67dc2d8e284ea4b9d21af10793778b942708114b | [
"MIT"
] | null | null | null | from test_genetic_algorithm import TestGeneticAlgorithm
from hklearn_genetic.problem import Rastrigin, Beale, Himmelblau, Eggholder
import numpy as np
### Proportional selection, no elitism
ga = TestGeneticAlgorithm([[0.25410149, 0.71410111, 0.31915886, 0.45725239]], pc = 0.9, pm = 0.5, max_iter=10)
rast = Rastrigin(n... | 30.951923 | 110 | 0.73936 | 1,066 | 6,438 | 4.219512 | 0.049719 | 0.080925 | 0.016674 | 0.088039 | 0.925078 | 0.921521 | 0.917964 | 0.91574 | 0.896398 | 0.877279 | 0 | 0.049649 | 0.114632 | 6,438 | 208 | 111 | 30.951923 | 0.739474 | 0.273377 | 0 | 0.774194 | 0 | 0 | 0.004988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.024194 | 0 | 0.024194 | 0.516129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
bd548d76131054b6d8c13d7041ca2e71170d9ac3 | 18,076 | py | Python | ismir2020_featuresubsets.py | pvankranenburg/ismir2020 | 029f1c98de47eea4fa401bb91eafe31277fdd29b | [
"MIT"
] | 2 | 2021-07-28T05:36:52.000Z | 2021-11-03T15:55:07.000Z | ismir2020_featuresubsets.py | pvankranenburg/ismir2020 | 029f1c98de47eea4fa401bb91eafe31277fdd29b | [
"MIT"
] | null | null | null | ismir2020_featuresubsets.py | pvankranenburg/ismir2020 | 029f1c98de47eea4fa401bb91eafe31277fdd29b | [
"MIT"
] | null | null | null | ismir2020featsets = {}
##########################################################################
ismir2020featsets['ismir2020_all_lyr_gt'] = {
'scaledegreefirst',
'scaledegreesecond',
'scaledegreethird',
'scaledegreefourth',
'scaledegreefifth',
'diatonicpitchfirst',
'diatonicpitchsecond',
'diatonicpitchthird... | 22.910013 | 151 | 0.748783 | 798 | 18,076 | 16.931078 | 0.221805 | 0.026941 | 0.022648 | 0.031086 | 0.964325 | 0.933832 | 0.923322 | 0.9231 | 0.908593 | 0.908593 | 0 | 0.007268 | 0.086634 | 18,076 | 788 | 152 | 22.939086 | 0.811084 | 0.002877 | 0 | 0.974901 | 0 | 0 | 0.763296 | 0.320945 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
951888d4bc52dd706feb7ceecdfa004e23409379 | 117 | py | Python | exercises/palindrome-products/palindrome_products.py | wonhyeongseo/python | ccd399510a58ad42d03420e43de67893f55dd411 | [
"MIT"
] | 2 | 2019-07-25T04:40:24.000Z | 2020-12-18T21:29:02.000Z | exercises/palindrome-products/palindrome_products.py | toroad/python | ce085c81a82ae5fb460fe166323dbbaa5a2588c5 | [
"MIT"
] | null | null | null | exercises/palindrome-products/palindrome_products.py | toroad/python | ce085c81a82ae5fb460fe166323dbbaa5a2588c5 | [
"MIT"
] | 1 | 2021-12-29T19:26:23.000Z | 2021-12-29T19:26:23.000Z | def largest_palindrome(max_factor, min_factor):
pass
def smallest_palindrome(max_factor, min_factor):
pass
| 16.714286 | 48 | 0.777778 | 16 | 117 | 5.3125 | 0.5 | 0.305882 | 0.447059 | 0.517647 | 0.752941 | 0.752941 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 117 | 6 | 49 | 19.5 | 0.858586 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
2f46f348ae83c00ca9f1a59313a7fe563551bb01 | 33,411 | py | Python | tests/test_bitable_sample.py | chyroc/pylark | a54cce6b814935fd3c72668b262b54c8ee461484 | [
"Apache-2.0"
] | 7 | 2021-08-18T00:42:05.000Z | 2022-03-14T09:49:15.000Z | tests/test_bitable_sample.py | chyroc/pylark | a54cce6b814935fd3c72668b262b54c8ee461484 | [
"Apache-2.0"
] | null | null | null | tests/test_bitable_sample.py | chyroc/pylark | a54cce6b814935fd3c72668b262b54c8ee461484 | [
"Apache-2.0"
] | 1 | 2022-03-14T09:49:20.000Z | 2022-03-14T09:49:20.000Z | # Code generated by lark_sdk_gen. DO NOT EDIT.
import unittest
import pylark
import pytest
from tests.test_conf import app_all_permission, app_no_permission
from tests.test_helper import mock_get_tenant_access_token_failed
def mock(*args, **kwargs):
raise pylark.PyLarkError(scope="scope", func="func", code=1, ms... | 35.695513 | 85 | 0.632307 | 3,985 | 33,411 | 4.992974 | 0.024843 | 0.075891 | 0.098658 | 0.07388 | 0.968437 | 0.967734 | 0.952556 | 0.935216 | 0.909534 | 0.856963 | 0 | 0.00185 | 0.288079 | 33,411 | 935 | 86 | 35.73369 | 0.834651 | 0.003262 | 0 | 0.637363 | 1 | 0 | 0.038203 | 0.015197 | 0 | 0 | 0 | 0 | 0.201923 | 1 | 0.123626 | false | 0 | 0.006868 | 0 | 0.135989 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2f4d7b6dd230880ae5bc0aa2b3c196c928c103a9 | 76 | py | Python | kwat/array_array/__init__.py | KwatME/ccal | d96dfa811482eee067f346386a2181ec514625f4 | [
"MIT"
] | 5 | 2017-05-05T17:50:28.000Z | 2019-01-30T19:23:02.000Z | kwat/array_array/__init__.py | KwatME/ccal | d96dfa811482eee067f346386a2181ec514625f4 | [
"MIT"
] | 5 | 2017-05-05T01:52:31.000Z | 2019-04-20T21:06:05.000Z | kwat/array_array/__init__.py | KwatME/ccal | d96dfa811482eee067f346386a2181ec514625f4 | [
"MIT"
] | 5 | 2017-07-17T18:55:54.000Z | 2019-02-02T04:46:19.000Z | from .apply import apply
from .separate_and_apply import separate_and_apply
| 25.333333 | 50 | 0.868421 | 12 | 76 | 5.166667 | 0.416667 | 0.354839 | 0.516129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 76 | 2 | 51 | 38 | 0.911765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
2f9d58d79a72b5460efee7dd8c25461ec1593ea6 | 6,359 | py | Python | tests/test_db.py | heptaliane/RankingAnnotator | 2d8e7f1f64f29a17416d71eafff9f787a0b9cad2 | [
"MIT"
] | 1 | 2022-02-07T20:31:15.000Z | 2022-02-07T20:31:15.000Z | tests/test_db.py | heptaliane/RankingAnnotator | 2d8e7f1f64f29a17416d71eafff9f787a0b9cad2 | [
"MIT"
] | null | null | null | tests/test_db.py | heptaliane/RankingAnnotator | 2d8e7f1f64f29a17416d71eafff9f787a0b9cad2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
from unittest import TestCase
import tempfile
from server import db
def use_temp_db(filename):
def _use_temp_db(fn):
def wrapper(obj):
with tempfile.TemporaryDirectory() as dirname:
fn(obj, os.path.join(dirname, filename))
return wrapp... | 28.904545 | 73 | 0.510772 | 731 | 6,359 | 4.343365 | 0.105335 | 0.122835 | 0.03685 | 0.057323 | 0.818268 | 0.80126 | 0.80126 | 0.760315 | 0.760315 | 0.75937 | 0 | 0.058204 | 0.34345 | 6,359 | 219 | 74 | 29.03653 | 0.702275 | 0.003302 | 0 | 0.784946 | 0 | 0 | 0.06976 | 0 | 0 | 0 | 0 | 0 | 0.139785 | 1 | 0.086022 | false | 0 | 0.021505 | 0 | 0.134409 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c805ea1450c1de6ab3f8cc89cbe80ada5119127e | 311 | py | Python | src/lightmlrestapi/testing/__init__.py | sdpython/lightmlrestapi | 3cad548702ae4eb390488bfca3b9e2b2ccc35180 | [
"MIT"
] | null | null | null | src/lightmlrestapi/testing/__init__.py | sdpython/lightmlrestapi | 3cad548702ae4eb390488bfca3b9e2b2ccc35180 | [
"MIT"
] | 23 | 2017-12-06T14:54:24.000Z | 2021-01-01T10:01:33.000Z | src/lightmlrestapi/testing/__init__.py | sdpython/lightmlrestapi | 3cad548702ae4eb390488bfca3b9e2b2ccc35180 | [
"MIT"
] | null | null | null | """
@file
@brief Shortcuts to *testing*.
"""
from .dummy_applications import dummy_application, dummy_application_image
from .dummy_applications import dummy_application_fct, dummy_application_neighbors, dummy_application_neighbors_image
from .dummy_applications import dummy_application_auth, dummy_mlstorage
| 34.555556 | 117 | 0.864952 | 37 | 311 | 6.837838 | 0.405405 | 0.379447 | 0.249012 | 0.320158 | 0.549407 | 0.549407 | 0.379447 | 0 | 0 | 0 | 0 | 0 | 0.07717 | 311 | 8 | 118 | 38.875 | 0.881533 | 0.115756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
c831d43b9280e675f72e46c4cc9e93866cefc354 | 23,736 | py | Python | test_old.py | knightman/skybitz-gatewaydemo | 5944b45828b868d0a3811d3e67df8ce27cef07af | [
"MIT"
] | null | null | null | test_old.py | knightman/skybitz-gatewaydemo | 5944b45828b868d0a3811d3e67df8ce27cef07af | [
"MIT"
] | null | null | null | test_old.py | knightman/skybitz-gatewaydemo | 5944b45828b868d0a3811d3e67df8ce27cef07af | [
"MIT"
] | null | null | null | import gateway
import soapreqs
import time
from datetime import datetime
#Imports currently used for testing only
# import pprint
# import json
# --------------------------------------------------------- #
''' EARLY TEST SCENARIOS '''
# --------------------------------------------------------- #
# invalrmlist = d['so... | 51.6 | 139 | 0.695231 | 2,889 | 23,736 | 5.588785 | 0.123226 | 0.027871 | 0.029729 | 0.045584 | 0.795181 | 0.757649 | 0.729345 | 0.702899 | 0.696705 | 0.691069 | 0 | 0.009754 | 0.192324 | 23,736 | 459 | 140 | 51.712418 | 0.832455 | 0.950581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002179 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
c84a78f2a77c1c27cb7dcdd11d0f2e9de137d906 | 1,580 | py | Python | python/tests/test_pandas.py | matthewfeickert/aghast | dd5af536e24e56dc47a1f23a5e78eeb6c9f56033 | [
"BSD-3-Clause"
] | null | null | null | python/tests/test_pandas.py | matthewfeickert/aghast | dd5af536e24e56dc47a1f23a5e78eeb6c9f56033 | [
"BSD-3-Clause"
] | null | null | null | python/tests/test_pandas.py | matthewfeickert/aghast | dd5af536e24e56dc47a1f23a5e78eeb6c9f56033 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# BSD 3-Clause License; see https://github.com/scikit-hep/aghast/blob/master/LICENSE
import unittest
import pytest
import numpy
import aghast
from aghast import *
pandas = pytest.importorskip("pandas")
pytest.importorskip("aghast._connect._pandas")
class Test(unittest.TestCase):
def runT... | 68.695652 | 1,154 | 0.781013 | 186 | 1,580 | 6.607527 | 0.33871 | 0.364524 | 0.421481 | 0.489829 | 0.681855 | 0.64524 | 0.597234 | 0.597234 | 0.597234 | 0.597234 | 0 | 0.030426 | 0.063924 | 1,580 | 22 | 1,155 | 71.818182 | 0.800541 | 0.06519 | 0 | 0 | 0 | 0 | 0.023729 | 0.015593 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.538462 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
c0818a0c0463813dbfb6584469c473ef4580ea1c | 146 | py | Python | Time_Series_DataAnalysis_Tool/__init__.py | chetanrrk/Time_Series_Data_Analysis_Tools | 1677633fd5747526fb5bdc82866949a44db3289d | [
"MIT"
] | 1 | 2020-12-11T01:27:58.000Z | 2020-12-11T01:27:58.000Z | Time_Series_DataAnalysis_Tool/__init__.py | chetanrrk/Time_Series_Data_Analysis_Tools | 1677633fd5747526fb5bdc82866949a44db3289d | [
"MIT"
] | null | null | null | Time_Series_DataAnalysis_Tool/__init__.py | chetanrrk/Time_Series_Data_Analysis_Tools | 1677633fd5747526fb5bdc82866949a44db3289d | [
"MIT"
] | null | null | null | import Time_Series_DataAnalysis_Tool.time_series_analysis
import Time_Series_DataAnalysis_Tool.examples
import Time_Series_DataAnalysis_Tool.test
| 36.5 | 57 | 0.938356 | 20 | 146 | 6.3 | 0.4 | 0.31746 | 0.380952 | 0.666667 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041096 | 146 | 3 | 58 | 48.666667 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
c0debd7c82c3d0f97f086347338695961f7c6326 | 228 | py | Python | tests/data/tupleassign.py | alexchamberlain/black | d9e71a75ccfefa3d9156a64c03313a0d4ad981e5 | [
"MIT"
] | 2 | 2019-07-25T03:08:33.000Z | 2019-07-25T17:04:08.000Z | tests/data/tupleassign.py | alexchamberlain/black | d9e71a75ccfefa3d9156a64c03313a0d4ad981e5 | [
"MIT"
] | 2 | 2019-09-18T00:04:03.000Z | 2020-08-19T09:43:17.000Z | tests/data/tupleassign.py | alexchamberlain/black | d9e71a75ccfefa3d9156a64c03313a0d4ad981e5 | [
"MIT"
] | 2 | 2020-11-01T03:52:57.000Z | 2020-11-16T08:43:50.000Z | sdfjklsdfsjldkflkjsf, sdfjsdfjlksdljkfsdlkf, sdfsdjfklsdfjlksdljkf, sdsfsdfjskdflsfsdf = 1, 2, 3
# output
(
sdfjklsdfsjldkflkjsf,
sdfjsdfjlksdljkfsdlkf,
sdfsdjfklsdfjlksdljkf,
sdsfsdfjskdflsfsdf,
) = (1, 2, 3)
| 20.727273 | 96 | 0.754386 | 15 | 228 | 11.466667 | 0.533333 | 0.476744 | 0.72093 | 0.930233 | 0.965116 | 0.965116 | 0.965116 | 0 | 0 | 0 | 0 | 0.031579 | 0.166667 | 228 | 10 | 97 | 22.8 | 0.873684 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
9b0ee711560e0c59259e7c822aa84b7a24f60641 | 11,300 | py | Python | test_field.py | pwcberry/footy-simulator-python | ece16c89723030e4a4729eec299b2585cf2014a9 | [
"MIT"
] | null | null | null | test_field.py | pwcberry/footy-simulator-python | ece16c89723030e4a4729eec299b2585cf2014a9 | [
"MIT"
] | null | null | null | test_field.py | pwcberry/footy-simulator-python | ece16c89723030e4a4729eec299b2585cf2014a9 | [
"MIT"
] | null | null | null | import unittest
from field import *
from data import Team, Skills
from status import BallStatus, FieldZone, LateralDirection, Possession
class TestField(unittest.TestCase):
def setUp(self):
self.team_a = Team(
# name
"AAA",
# forwards
Skills(0.5, 0.5, 0.5),... | 40.070922 | 98 | 0.691504 | 1,676 | 11,300 | 4.297136 | 0.050119 | 0.073313 | 0.119967 | 0.159956 | 0.92266 | 0.910303 | 0.892252 | 0.88531 | 0.874757 | 0.863094 | 0 | 0.009983 | 0.211062 | 11,300 | 281 | 99 | 40.213523 | 0.797869 | 0.010354 | 0 | 0.730942 | 0 | 0 | 0.001253 | 0 | 0 | 0 | 0 | 0 | 0.286996 | 1 | 0.143498 | false | 0 | 0.017937 | 0 | 0.165919 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f19fc61994c1c17a0a6e8b0a2b371bb1391aee61 | 9,683 | py | Python | OneEncoder_MultiDecoders/models.py | Ali-Sahili/Background-Subtraction-Unsupervised-Learning | 445b2cf8736a4a28cff2b074a32afe8fe6986d53 | [
"MIT"
] | 5 | 2021-05-17T06:52:28.000Z | 2022-02-20T15:35:51.000Z | OneEncoder_MultiDecoders/models.py | WN1695173791/Background-Subtraction-Unsupervised-Learning | 445b2cf8736a4a28cff2b074a32afe8fe6986d53 | [
"MIT"
] | null | null | null | OneEncoder_MultiDecoders/models.py | WN1695173791/Background-Subtraction-Unsupervised-Learning | 445b2cf8736a4a28cff2b074a32afe8fe6986d53 | [
"MIT"
] | 1 | 2021-05-17T06:52:33.000Z | 2021-05-17T06:52:33.000Z |
import torch
import torch.nn as nn
from torch.autograd import Variable
from Param import nc, nz, device
class Model512(nn.Module):
def __init__(self,nz=nz,nef=8,ngf=8,nc=nc):
super(Model512, self).__init__()
self.nz=nz
self.nc=nc
## Encoder Part ##
self.encode = nn.Se... | 35.339416 | 73 | 0.498399 | 1,353 | 9,683 | 3.539542 | 0.074649 | 0.08269 | 0.083525 | 0.090207 | 0.88745 | 0.880768 | 0.880768 | 0.880768 | 0.867822 | 0.867822 | 0 | 0.112544 | 0.359496 | 9,683 | 273 | 74 | 35.468864 | 0.659626 | 0.113911 | 0 | 0.819672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027322 | false | 0 | 0.021858 | 0 | 0.076503 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9ea8b3f787d64d8339ce219210639d11fb35e79d | 102 | py | Python | python/PlacingMarbles.py | teinen/atcoder-beginners-selection-answers | 446a7a6de0f8d9ce6e2fd798ef467e55d7dc0119 | [
"MIT"
] | null | null | null | python/PlacingMarbles.py | teinen/atcoder-beginners-selection-answers | 446a7a6de0f8d9ce6e2fd798ef467e55d7dc0119 | [
"MIT"
] | null | null | null | python/PlacingMarbles.py | teinen/atcoder-beginners-selection-answers | 446a7a6de0f8d9ce6e2fd798ef467e55d7dc0119 | [
"MIT"
] | null | null | null | l = list(input())
c = 0
if l[0] == '1':
c+=1
if l[1] == '1':
c+=1
if l[2] == '1':
c+=1
print(c)
| 10.2 | 17 | 0.382353 | 25 | 102 | 1.56 | 0.36 | 0.230769 | 0.230769 | 0.25641 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 0.27451 | 102 | 9 | 18 | 11.333333 | 0.391892 | 0 | 0 | 0.333333 | 0 | 0 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7b415b6b6ecf13fe13585b60da50dbe6a9655820 | 9,510 | py | Python | tests/test_sdf_gradient_field_wrt_twist.py | Algomorph/LevelSetFusion-Python | 46625cd185da4413f9afaf201096203ee72d3803 | [
"Apache-2.0"
] | 8 | 2019-01-30T19:01:25.000Z | 2021-03-05T14:10:51.000Z | tests/test_sdf_gradient_field_wrt_twist.py | Algomorph/LevelSetFusion-Python | 46625cd185da4413f9afaf201096203ee72d3803 | [
"Apache-2.0"
] | 58 | 2018-12-19T16:57:38.000Z | 2019-06-06T19:52:36.000Z | tests/test_sdf_gradient_field_wrt_twist.py | Algomorph/LevelSetFusion-Python | 46625cd185da4413f9afaf201096203ee72d3803 | [
"Apache-2.0"
] | 2 | 2019-03-06T06:30:30.000Z | 2019-06-03T11:00:15.000Z | # import unittest
from unittest import TestCase
import numpy as np
from rigid_opt.sdf_gradient_field import calculate_gradient_wrt_twist
from math_utils.transformation import twist_vector_to_matrix2d
def sdf_gradient_wrt_to_twist(live_field, y_field, x_field, twist_vector, offset, voxel_size):
sdf_gradient_wrt_to... | 45.721154 | 119 | 0.502103 | 1,131 | 9,510 | 3.861185 | 0.061892 | 0.117472 | 0.086558 | 0.076941 | 0.887795 | 0.850469 | 0.850469 | 0.850011 | 0.844287 | 0.813602 | 0 | 0.039705 | 0.401472 | 9,510 | 207 | 120 | 45.942029 | 0.727512 | 0.001577 | 0 | 0.784431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035928 | 1 | 0.041916 | false | 0 | 0.023952 | 0 | 0.077844 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7b5b1fd2d76f85c51bb8e14c9d77c3db320e0d3e | 195 | py | Python | d3.py | Otavioarp/Desafio | 1b911fe898460dc1289049935b0f7fd3e7225161 | [
"MIT"
] | null | null | null | d3.py | Otavioarp/Desafio | 1b911fe898460dc1289049935b0f7fd3e7225161 | [
"MIT"
] | null | null | null | d3.py | Otavioarp/Desafio | 1b911fe898460dc1289049935b0f7fd3e7225161 | [
"MIT"
] | null | null | null | '''
Otávio Augusto de Rezende Pinto
Email: otaviopqsi@gmail.com
'''
def retorna_pessoas_preferem_um_unico_palco(quantidade_pessoas_evento):
return int ( 25 / 100 * quantidade_pessoas_evento ) | 32.5 | 71 | 0.8 | 26 | 195 | 5.653846 | 0.846154 | 0.231293 | 0.312925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02907 | 0.117949 | 195 | 6 | 72 | 32.5 | 0.825581 | 0.302564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
cdfb186fbfad52d4c03b552117ce1b10197164ce | 33,538 | py | Python | src/ebay_rest/api/buy_marketplace_insights/api/item_sales_api.py | matecsaj/ebay_rest | dd23236f39e05636eff222f99df1e3699ce47d4a | [
"MIT"
] | 3 | 2021-12-12T04:28:03.000Z | 2022-03-10T03:29:18.000Z | src/ebay_rest/api/buy_marketplace_insights/api/item_sales_api.py | jdavv/ebay_rest | 20fc88c6aefdae9ab90f9c1330e79abddcd750cd | [
"MIT"
] | 33 | 2021-06-16T20:44:36.000Z | 2022-03-30T14:55:06.000Z | src/ebay_rest/api/buy_marketplace_insights/api/item_sales_api.py | jdavv/ebay_rest | 20fc88c6aefdae9ab90f9c1330e79abddcd750cd | [
"MIT"
] | 7 | 2021-06-03T09:30:23.000Z | 2022-03-08T19:51:33.000Z | # coding: utf-8
"""
Marketplace Insights API
<a href=\"https://developer.ebay.com/api-docs/static/versioning.html#limited\" target=\"_blank\"> <img src=\"/cms/img/docs/partners-api.svg\" class=\"legend-icon partners-icon\" title=\"Limited Release\" alt=\"Limited Release\" />(Limited Release)</a> The Marketpl... | 208.310559 | 3,150 | 0.690828 | 5,309 | 33,538 | 4.314937 | 0.094556 | 0.010477 | 0.029771 | 0.014667 | 0.913436 | 0.90344 | 0.900733 | 0.897416 | 0.894273 | 0.894273 | 0 | 0.013307 | 0.161995 | 33,538 | 160 | 3,151 | 209.6125 | 0.801779 | 0.884698 | 0 | 0 | 0 | 0 | 0.171662 | 0.028156 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039474 | false | 0 | 0.052632 | 0 | 0.144737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
b58692676f6edb8c3aca53cac208641dae39f968 | 1,210 | py | Python | src/server/endpoints/__init__.py | lee14257/delphi-epidata | b007d778321e68be5526ca9ce1113b13d24d6fe8 | [
"MIT"
] | null | null | null | src/server/endpoints/__init__.py | lee14257/delphi-epidata | b007d778321e68be5526ca9ce1113b13d24d6fe8 | [
"MIT"
] | 1 | 2020-07-14T15:35:15.000Z | 2020-07-16T17:56:30.000Z | src/server/endpoints/__init__.py | lee14257/delphi-epidata | b007d778321e68be5526ca9ce1113b13d24d6fe8 | [
"MIT"
] | 4 | 2020-09-17T13:47:02.000Z | 2020-10-27T19:40:11.000Z | from . import (
afhsb,
cdc,
covid_hosp_facility_lookup,
covid_hosp_facility,
covid_hosp_state_timeseries,
covidcast_nowcast,
covidcast_meta,
covidcast,
delphi,
dengue_nowcast,
dengue_sensors,
ecdc_ili,
flusurv,
fluview_clinicial,
fluview_meta,
fluview,
... | 15.921053 | 32 | 0.642149 | 123 | 1,210 | 5.878049 | 0.308943 | 0.074689 | 0.094053 | 0.047026 | 0.957123 | 0.957123 | 0.957123 | 0.957123 | 0.957123 | 0.957123 | 0 | 0 | 0.292562 | 1,210 | 75 | 33 | 16.133333 | 0.844626 | 0 | 0 | 0.931507 | 0 | 0 | 0.007438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013699 | 0 | 0.013699 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a910558e8b66dadf3c4d4a38fe9934f6354a8a30 | 2,591 | py | Python | src/Negamax.py | jrinder42/Checkers-AI | 63f409c19b52d7e17268b21abab5cfed15ca0642 | [
"MIT"
] | null | null | null | src/Negamax.py | jrinder42/Checkers-AI | 63f409c19b52d7e17268b21abab5cfed15ca0642 | [
"MIT"
] | null | null | null | src/Negamax.py | jrinder42/Checkers-AI | 63f409c19b52d7e17268b21abab5cfed15ca0642 | [
"MIT"
] | null | null | null | from copy import deepcopy
import cPickle
from Board import Actions
class Negamax_AB(Actions):
BEST_MOVE = None
def __init__(self):
Actions.__init__(self)
def __deepcopy__(self, memodict={}): # faster than built-in
g = cPickle.loads(cPickle.dumps(self, -1))
return g
def ga... | 27.56383 | 84 | 0.585874 | 324 | 2,591 | 4.487654 | 0.191358 | 0.060523 | 0.035763 | 0.049519 | 0.837689 | 0.807428 | 0.763411 | 0.763411 | 0.763411 | 0.763411 | 0 | 0.003977 | 0.320726 | 2,591 | 93 | 85 | 27.860215 | 0.822159 | 0.049788 | 0 | 0.716418 | 0 | 0 | 0.022839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044776 | null | null | 0.059701 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
8d4f5b3f621b675ce04bd32d5d8ff71ea5708d2d | 5,869 | py | Python | reto2.py | MiguelSanchezP/Bitsxlamarato2020 | aa8c21b790e14cf1f6edc0a20ce4592109a00ac4 | [
"MIT"
] | 2 | 2022-01-19T07:43:16.000Z | 2022-01-19T07:43:26.000Z | reto2.py | MiguelSanchezP/Bitsxlamarato2020 | aa8c21b790e14cf1f6edc0a20ce4592109a00ac4 | [
"MIT"
] | null | null | null | reto2.py | MiguelSanchezP/Bitsxlamarato2020 | aa8c21b790e14cf1f6edc0a20ce4592109a00ac4 | [
"MIT"
] | 1 | 2020-12-27T13:23:07.000Z | 2020-12-27T13:23:07.000Z | f = open ("./Files/COPEDICATClinicSympt_DATA_2020-12-17_1642.csv", 'r')
data = []
for line in f:
data.append(line)
#covid and other illnesses:
COVID_vrs = []
for value in data:
if value.split(',')[122] == '1' and value.split(',')[131] == '1':
COVID_vrs.append(value)
elif value.split(',')[127] == '1' and v... | 34.122093 | 71 | 0.605555 | 826 | 5,869 | 4.202179 | 0.096852 | 0.265053 | 0.119274 | 0.185537 | 0.863152 | 0.863152 | 0.863152 | 0.862288 | 0.862288 | 0.862288 | 0 | 0.076505 | 0.153689 | 5,869 | 171 | 72 | 34.321637 | 0.622307 | 0.019765 | 0 | 0.485714 | 0 | 0 | 0.041399 | 0.009219 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
8da0df7560609eb96315da8b9663938d3d3a23c7 | 195,253 | py | Python | Lulz.py | kami4/Lulz.pl | f294ded1a5ab7a1f8630b2cef14cb3d14db65182 | [
"Apache-2.0"
] | null | null | null | Lulz.py | kami4/Lulz.pl | f294ded1a5ab7a1f8630b2cef14cb3d14db65182 | [
"Apache-2.0"
] | null | null | null | Lulz.py | kami4/Lulz.pl | f294ded1a5ab7a1f8630b2cef14cb3d14db65182 | [
"Apache-2.0"
] | null | null | null | import urllib2
import sys
import threading
import random
import re
#global params
url=''
host=''
headers_useragents=[]
headers_referers=[]
request_counter=0
flag=0
safe=0
def inc_counter():
global request_counter
request_counter+=1
def set_flag(val):
global flag
flag=val
def set_safe():
... | 61.574582 | 190 | 0.724947 | 28,613 | 195,253 | 4.893859 | 0.028344 | 0.171966 | 0.191962 | 0.143971 | 0.951253 | 0.942847 | 0.936013 | 0.932171 | 0.926308 | 0.922494 | 0 | 0.015662 | 0.067717 | 195,253 | 3,170 | 191 | 61.594006 | 0.753591 | 0.001157 | 0 | 0.896833 | 0 | 0.041463 | 0.653112 | 0.006264 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.000979 | 0.001632 | null | null | 0.003265 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
a5c8677bf770485a417a3079e877f47d86fcf69b | 23,613 | py | Python | proteinham/lattice/turn_circuit.py | couteiral/proteinham | c7300fd7df4daad7f341e1217bfc11819963a978 | [
"CC-BY-4.0"
] | null | null | null | proteinham/lattice/turn_circuit.py | couteiral/proteinham | c7300fd7df4daad7f341e1217bfc11819963a978 | [
"CC-BY-4.0"
] | null | null | null | proteinham/lattice/turn_circuit.py | couteiral/proteinham | c7300fd7df4daad7f341e1217bfc11819963a978 | [
"CC-BY-4.0"
] | null | null | null | import math
import numpy as np
import sympy as sp
import symengine as se
from abc import *
from tqdm import tqdm, trange
from copy import deepcopy
from itertools import chain
from functools import reduce
from .qlogic import *
from proteinham.core.hamiltonian import Hamiltonian
class CommonTurnCircuitHamiltonian(Hami... | 34.982222 | 89 | 0.444713 | 3,080 | 23,613 | 3.324026 | 0.059416 | 0.017972 | 0.090252 | 0.147685 | 0.883962 | 0.880934 | 0.870873 | 0.869115 | 0.864036 | 0.85505 | 0 | 0.023957 | 0.398975 | 23,613 | 674 | 90 | 35.034125 | 0.697435 | 0.075975 | 0 | 0.787109 | 0 | 0 | 0.018259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078125 | false | 0.001953 | 0.021484 | 0.009766 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a5dd19e24481a87da14a10215119b341579eca19 | 17,016 | py | Python | example_xva_v2.py | kwchau/sgbm_xva | a46275e652a1caaa43ea1a086c8963a9f632d147 | [
"MIT"
] | 6 | 2020-08-08T12:14:40.000Z | 2022-02-24T11:27:22.000Z | example_xva_v2.py | kwchau/sgbm_xva | a46275e652a1caaa43ea1a086c8963a9f632d147 | [
"MIT"
] | 1 | 2019-11-01T08:34:17.000Z | 2019-11-01T08:34:17.000Z | example_xva_v2.py | kwchau/sgbm_xva | a46275e652a1caaa43ea1a086c8963a9f632d147 | [
"MIT"
] | 2 | 2021-02-04T14:44:33.000Z | 2021-08-20T21:53:14.000Z | """
Created on Mon May 14 17:21:26 2018
@author: Ki Wai Chau
This file holds the parameters for all specific example and the numerical scheme
for the BSDE.
.. todo:: Moving the numerical scheme to the function file
"""
import numpy as np
class GermenIndexPut():
# Example Information
name = "Put option for a... | 71.196653 | 250 | 0.67748 | 2,319 | 17,016 | 4.664511 | 0.081069 | 0.029953 | 0.085051 | 0.097069 | 0.895442 | 0.885828 | 0.871129 | 0.857632 | 0.852085 | 0.852085 | 0 | 0.03187 | 0.203397 | 17,016 | 238 | 251 | 71.495798 | 0.766138 | 0.037729 | 0 | 0.729064 | 0 | 0 | 0.031745 | 0 | 0 | 0 | 0 | 0.004202 | 0 | 1 | 0.068966 | false | 0 | 0.004926 | 0 | 0.330049 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
939da76e5579aa109a5acdc99b70d91e6f6fa724 | 228 | py | Python | mapfartapi/web.py | aaronr/mapfart | 0a4bf15685b1c4d475b4b6fffcabd3cd2f6ebffb | [
"BSD-2-Clause"
] | 3 | 2015-10-14T20:21:58.000Z | 2016-03-03T19:32:16.000Z | mapfartapi/web.py | aaronr/mapfart | 0a4bf15685b1c4d475b4b6fffcabd3cd2f6ebffb | [
"BSD-2-Clause"
] | null | null | null | mapfartapi/web.py | aaronr/mapfart | 0a4bf15685b1c4d475b4b6fffcabd3cd2f6ebffb | [
"BSD-2-Clause"
] | null | null | null | from flask import render_template
def index():
return render_template('index.html')
def documentation():
return render_template('documentation.html')
def api_landing():
return render_template('api_landing.html')
| 19 | 48 | 0.754386 | 28 | 228 | 5.928571 | 0.428571 | 0.337349 | 0.361446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 228 | 11 | 49 | 20.727273 | 0.846939 | 0 | 0 | 0 | 0 | 0 | 0.193833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | true | 0 | 0.142857 | 0.428571 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
9e1194f9684b7f4152a4e548a5fcc9292cc1df86 | 5,160 | py | Python | tests/test_components_eta_hms.py | Robpol86/etaprogress | 224e8a248c2bf820bad218763281914ad3983fff | [
"MIT"
] | 13 | 2015-08-25T05:54:21.000Z | 2021-03-23T15:56:58.000Z | tests/test_components_eta_hms.py | Robpol86/etaprogress | 224e8a248c2bf820bad218763281914ad3983fff | [
"MIT"
] | 5 | 2015-03-14T16:31:38.000Z | 2019-01-13T20:46:25.000Z | tests/test_components_eta_hms.py | Robpol86/etaprogress | 224e8a248c2bf820bad218763281914ad3983fff | [
"MIT"
] | 5 | 2015-05-31T14:16:50.000Z | 2021-02-06T11:23:43.000Z | from etaprogress.components.eta_conversions import eta_hms
def test():
assert '00' == eta_hms(0)
assert '09' == eta_hms(9)
assert '59' == eta_hms(59)
assert '01:00' == eta_hms(60)
assert '01:01' == eta_hms(61)
assert '59:59' == eta_hms(3599)
assert '1:00:00' == eta_hms(3600)
assert '... | 45.663717 | 92 | 0.710078 | 857 | 5,160 | 3.968495 | 0.047841 | 0.128786 | 0.183475 | 0.211702 | 0.968833 | 0.932961 | 0.891208 | 0.779771 | 0.752426 | 0.73302 | 0 | 0.141057 | 0.138566 | 5,160 | 112 | 93 | 46.071429 | 0.624072 | 0.006008 | 0 | 0 | 0 | 0 | 0.096222 | 0 | 0 | 0 | 0 | 0 | 0.911392 | 1 | 0.075949 | true | 0 | 0.012658 | 0 | 0.088608 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
f550f00ca5958487ffb5580c27de94e6e04da14c | 29,498 | py | Python | DeviceList.py | thealexlittle/Spotify-Wallpapers | 7f4f141dac8dd351778c2e2954dd06e3c2a878e8 | [
"MIT"
] | null | null | null | DeviceList.py | thealexlittle/Spotify-Wallpapers | 7f4f141dac8dd351778c2e2954dd06e3c2a878e8 | [
"MIT"
] | null | null | null | DeviceList.py | thealexlittle/Spotify-Wallpapers | 7f4f141dac8dd351778c2e2954dd06e3c2a878e8 | [
"MIT"
] | null | null | null | DATA = [
{'name': 'Apple iPhone 8 Plus', 'width': 1080, 'height': 1920, 'aspect_ratio': '16 : 9', 'type': 'Phone'},
{'name': 'Apple iPhone 7 Plus', 'width': 1080, 'height': 1920, 'aspect_ratio': '9 : 16', 'type': 'Phone'},
{'name': 'Apple iPhone XR', 'width': 828, 'height': 1792, 'aspect_ratio': '19 . 5 ... | 111.313208 | 146 | 0.561157 | 3,867 | 29,498 | 4.212568 | 0.099819 | 0.177594 | 0.120503 | 0.062738 | 0.86593 | 0.843462 | 0.788766 | 0.755801 | 0.726949 | 0.647084 | 0 | 0.131116 | 0.17547 | 29,498 | 265 | 147 | 111.313208 | 0.538648 | 0 | 0 | 0 | 0 | 0 | 0.554746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.003774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f556c8a002fe3e94808a27d9980301d5655b0a82 | 135 | py | Python | fline/utils/logging/base_group.py | asromahin/fline | a34243878093b3b883607557eeaf968ef4b8acf6 | [
"MIT"
] | 5 | 2021-07-01T08:19:51.000Z | 2022-03-28T06:09:55.000Z | fline/utils/logging/base_group.py | asromahin/fline | a34243878093b3b883607557eeaf968ef4b8acf6 | [
"MIT"
] | 1 | 2022-03-21T02:42:44.000Z | 2022-03-28T06:10:57.000Z | fline/utils/logging/base_group.py | asromahin/fline | a34243878093b3b883607557eeaf968ef4b8acf6 | [
"MIT"
] | null | null | null | class BaseGroup:
def __init__(self, log_type):
self.log_type = log_type
def __call__(self, data):
return data
| 19.285714 | 33 | 0.637037 | 18 | 135 | 4.166667 | 0.555556 | 0.28 | 0.293333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.281481 | 135 | 6 | 34 | 22.5 | 0.773196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
f586a1b8dbadadb9cf78300e8333234085a96115 | 32,599 | py | Python | tests/snc/agents/general_heuristics/test_priority_agents.py | dmcnamee/snc | c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786 | [
"Apache-2.0"
] | 5 | 2021-03-24T16:23:10.000Z | 2021-11-17T12:44:51.000Z | tests/snc/agents/general_heuristics/test_priority_agents.py | dmcnamee/snc | c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786 | [
"Apache-2.0"
] | 3 | 2021-03-26T01:16:08.000Z | 2021-05-08T22:06:47.000Z | tests/snc/agents/general_heuristics/test_priority_agents.py | dmcnamee/snc | c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786 | [
"Apache-2.0"
] | 2 | 2021-03-24T17:20:06.000Z | 2021-04-19T09:01:12.000Z | import numpy as np
import pytest
import snc.environments.job_generators.discrete_review_job_generator \
as drjg
import snc.environments.controlled_random_walk as crw
import snc.environments.state_initialiser as si
import snc.agents.general_heuristics.random_nonidling_agent \
as random_nonidling_agent
import sn... | 49.021053 | 100 | 0.623301 | 4,291 | 32,599 | 4.474248 | 0.044279 | 0.032502 | 0.033283 | 0.032918 | 0.919058 | 0.90536 | 0.885567 | 0.87291 | 0.862805 | 0.858743 | 0 | 0.047332 | 0.241725 | 32,599 | 664 | 101 | 49.09488 | 0.729358 | 0.08804 | 0 | 0.719682 | 0 | 0 | 0.048314 | 0.029615 | 0 | 0 | 0 | 0 | 0.071571 | 1 | 0.069583 | false | 0 | 0.015905 | 0 | 0.087475 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f595ef1431ce0231228e25011c68f0c790e0ec8b | 76 | py | Python | pyspark_db_utils/ch/__init__.py | osahp/pyspark_db_utils | ebf8a141cd62ed8f82182e97d8d8113b6baeeca5 | [
"MIT"
] | 7 | 2018-01-15T14:06:44.000Z | 2020-11-10T22:34:13.000Z | pyspark_db_utils/ch/__init__.py | osa-decentralized/pyspark_db_utils | ebf8a141cd62ed8f82182e97d8d8113b6baeeca5 | [
"MIT"
] | 1 | 2020-07-28T07:20:14.000Z | 2020-11-10T22:35:26.000Z | pyspark_db_utils/ch/__init__.py | osa-decentralized/pyspark_db_utils | ebf8a141cd62ed8f82182e97d8d8113b6baeeca5 | [
"MIT"
] | 3 | 2020-05-27T08:32:34.000Z | 2021-07-15T13:03:48.000Z | from .write_to_ch import write_to_ch
from .read_from_ch import read_from_ch
| 25.333333 | 38 | 0.868421 | 16 | 76 | 3.625 | 0.375 | 0.241379 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 76 | 2 | 39 | 38 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
f5a95844ca79ef69b342f27fe46e07959d61da62 | 30,481 | py | Python | test/test_workspace.py | fkie/rosrepo | 13cdf89e32f0c370d106a61540b0cd102675daf9 | [
"Apache-2.0"
] | 5 | 2016-09-06T08:02:10.000Z | 2018-06-10T20:45:21.000Z | test/test_workspace.py | fkie/rosrepo | 13cdf89e32f0c370d106a61540b0cd102675daf9 | [
"Apache-2.0"
] | 2 | 2019-03-11T21:44:50.000Z | 2020-03-17T09:20:47.000Z | test/test_workspace.py | fkie/rosrepo | 13cdf89e32f0c370d106a61540b0cd102675daf9 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
#
# ROSREPO
# Manage ROS workspaces with multiple Gitlab repositories
#
# Author: Timo Röhling
#
# Copyright 2016 Fraunhofer FKIE
#
# 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 a... | 56.656134 | 182 | 0.624159 | 3,620 | 30,481 | 5.138122 | 0.084254 | 0.133871 | 0.098065 | 0.124892 | 0.833172 | 0.819785 | 0.761452 | 0.750699 | 0.732151 | 0.716505 | 0 | 0.007507 | 0.200223 | 30,481 | 537 | 183 | 56.761639 | 0.755476 | 0.03927 | 0 | 0.554622 | 0 | 0.004202 | 0.200607 | 0.01584 | 0 | 0 | 0 | 0 | 0.483193 | 1 | 0.029412 | false | 0.008403 | 0.029412 | 0 | 0.063025 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1918bb43b0d44106c2944bd3799dff8c2254ef5a | 591 | py | Python | bank_api.py | blizzarac/BankTransferTools | f778b9c57298f1fb6f1906f3f1e0322ccdae0720 | [
"Apache-2.0"
] | null | null | null | bank_api.py | blizzarac/BankTransferTools | f778b9c57298f1fb6f1906f3f1e0322ccdae0720 | [
"Apache-2.0"
] | null | null | null | bank_api.py | blizzarac/BankTransferTools | f778b9c57298f1fb6f1906f3f1e0322ccdae0720 | [
"Apache-2.0"
] | null | null | null | __author__ = 'alexanderstolz'
import hib_sql_connection
def getAllTransfers():
connection = hib_sql_connection.connectToHibiscus()
return hib_sql_connection.queryToHibiscus(connection, "select * from umsatz;")
def getOutgoingTransfers():
connection = hib_sql_connection.connectToHibiscus()
return hi... | 34.764706 | 99 | 0.788494 | 60 | 591 | 7.466667 | 0.316667 | 0.09375 | 0.25 | 0.174107 | 0.763393 | 0.763393 | 0.763393 | 0.763393 | 0.763393 | 0.763393 | 0 | 0.003876 | 0.126904 | 591 | 17 | 100 | 34.764706 | 0.864341 | 0 | 0 | 0.272727 | 0 | 0 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 9 |
191adbe05030ab769b7a48fc2eee677ed5a0fdc7 | 6,407 | py | Python | loldib/getratings/models/NA/na_fiora/na_fiora_mid.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_fiora/na_fiora_mid.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_fiora/na_fiora_mid.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | from getratings.models.ratings import Ratings
class NA_Fiora_Mid_Aatrox(Ratings):
pass
class NA_Fiora_Mid_Ahri(Ratings):
pass
class NA_Fiora_Mid_Akali(Ratings):
pass
class NA_Fiora_Mid_Alistar(Ratings):
pass
class NA_Fiora_Mid_Amumu(Ratings):
pass
class NA_Fiora_Mid_Anivia(Ratings):
pass
... | 15.364508 | 46 | 0.761667 | 972 | 6,407 | 4.59465 | 0.151235 | 0.216301 | 0.370802 | 0.463502 | 0.797582 | 0.797582 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173404 | 6,407 | 416 | 47 | 15.401442 | 0.843278 | 0 | 0 | 0.498195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.498195 | 0.00361 | 0 | 0.501805 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
19322405ef045fcbfecdc22eec03950428feda4b | 32,023 | py | Python | explore_data.py | adamw00000/MAK-Datahub | 9735f2f970439c49cec3ad693a056d7a151156ce | [
"MIT"
] | 1 | 2022-03-16T09:05:42.000Z | 2022-03-16T09:05:42.000Z | explore_data.py | adamw00000/MAK-Datahub | 9735f2f970439c49cec3ad693a056d7a151156ce | [
"MIT"
] | 8 | 2021-02-08T20:43:06.000Z | 2021-06-09T18:54:14.000Z | explore_data.py | adamw00000/MAK-Datahub | 9735f2f970439c49cec3ad693a056d7a151156ce | [
"MIT"
] | null | null | null | # %%
import os
import sys
# os.chdir("../../..")
os.environ['DJANGO_SETTINGS_MODULE'] = 'MAKDataHub.settings'
import django
django.setup()
# %%
import math
import pickle
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from MAKDataHub.services import Services
profile_servi... | 38.957421 | 171 | 0.705649 | 4,358 | 32,023 | 4.99128 | 0.054383 | 0.028687 | 0.04349 | 0.031721 | 0.89463 | 0.875828 | 0.869529 | 0.866403 | 0.866403 | 0.85399 | 0 | 0.027619 | 0.147488 | 32,023 | 821 | 172 | 39.004872 | 0.769158 | 0.038472 | 0 | 0.789655 | 0 | 0.039655 | 0.176118 | 0.082772 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.168966 | 0 | 0.168966 | 0.134483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
270d878d36674d581a9b9a0069fd60ffbee83b16 | 362 | py | Python | enrollment/views/__init__.py | Siikakala/kompassi | 14cdcd966ab689d762cc885e28b6d15465c216f0 | [
"CC-BY-3.0"
] | null | null | null | enrollment/views/__init__.py | Siikakala/kompassi | 14cdcd966ab689d762cc885e28b6d15465c216f0 | [
"CC-BY-3.0"
] | null | null | null | enrollment/views/__init__.py | Siikakala/kompassi | 14cdcd966ab689d762cc885e28b6d15465c216f0 | [
"CC-BY-3.0"
] | null | null | null | # encoding: utf-8
from .enrollment_event_box_context import enrollment_event_box_context
from .enrollment_enroll_view import enrollment_enroll_view
from .enrollment_admin_view import enrollment_admin_view
from .enrollment_admin_special_diets_view import enrollment_admin_special_diets_view
from .enrollment_admin_menu... | 36.2 | 84 | 0.906077 | 51 | 362 | 5.882353 | 0.313725 | 0.3 | 0.2 | 0.23 | 0.206667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002976 | 0.071823 | 362 | 9 | 85 | 40.222222 | 0.889881 | 0.041436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
27d55cd6a10f13f9e9f89dbb910ce1db07d86714 | 4,926 | py | Python | search/conftest.py | ArturMichalak/ElasticSearch-DSL-Playground | dc4c8d2ca4605acd98eb45fb4f6999860ca0859b | [
"MIT"
] | null | null | null | search/conftest.py | ArturMichalak/ElasticSearch-DSL-Playground | dc4c8d2ca4605acd98eb45fb4f6999860ca0859b | [
"MIT"
] | null | null | null | search/conftest.py | ArturMichalak/ElasticSearch-DSL-Playground | dc4c8d2ca4605acd98eb45fb4f6999860ca0859b | [
"MIT"
] | null | null | null | """Basic test configuration"""
from unittest.mock import MagicMock
from pytest import fixture
from elasticsearch_dsl.connections import add_connection
@fixture
def mock_client(dummy_response):
"""Returns elasticsearch mock client"""
client = MagicMock()
client.search.return_value = dummy_response
ad... | 37.037594 | 75 | 0.633577 | 601 | 4,926 | 5.14975 | 0.434276 | 0.016801 | 0.012924 | 0.010339 | 0.831018 | 0.819386 | 0.819386 | 0.819386 | 0.819386 | 0.819386 | 0 | 0.019026 | 0.295778 | 4,926 | 132 | 76 | 37.318182 | 0.873162 | 0.021315 | 0 | 0.655738 | 0 | 0 | 0.69948 | 0.010822 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.02459 | 0 | 0.04918 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
27ee44926bc5e7a23667d728510085c6f4d6ee23 | 3,328 | py | Python | Data/EGFR.py | cdhavala26/railroad-diagrams | 5da1b4c859a0c1d1c15f752fb80400b4d2df82c3 | [
"CC0-1.0"
] | null | null | null | Data/EGFR.py | cdhavala26/railroad-diagrams | 5da1b4c859a0c1d1c15f752fb80400b4d2df82c3 | [
"CC0-1.0"
] | null | null | null | Data/EGFR.py | cdhavala26/railroad-diagrams | 5da1b4c859a0c1d1c15f752fb80400b4d2df82c3 | [
"CC0-1.0"
] | null | null | null |
import sys
from railroad import *
print('<h1>Molecules</h1>')
add("EGF",
Diagram(
"EGF(",
Choice(0, Comment(" "),
"Site",),
")"
))
add("EGFR",
Diagram(
"EGFR(",
Choice(0, Comment(" "),
"ecd",),
Choice(0, Comment(" "),
"t... | 22.186667 | 67 | 0.323317 | 252 | 3,328 | 4.269841 | 0.130952 | 0.273234 | 0.546468 | 0.265799 | 0.919145 | 0.914498 | 0.914498 | 0.914498 | 0.843866 | 0.775093 | 0 | 0.036672 | 0.451022 | 3,328 | 149 | 68 | 22.33557 | 0.552271 | 0 | 0 | 0.911765 | 0 | 0 | 0.134956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.014706 | 0 | 0.014706 | 0.022059 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
fd9b568d12cb6a08e6366ed18f968d43db55f443 | 99 | py | Python | drones/app/routers/__init__.py | codeshard/drones-api | c36929dd0f2d50e31ee8dc1ba7d73f4cd725c06d | [
"MIT"
] | null | null | null | drones/app/routers/__init__.py | codeshard/drones-api | c36929dd0f2d50e31ee8dc1ba7d73f4cd725c06d | [
"MIT"
] | null | null | null | drones/app/routers/__init__.py | codeshard/drones-api | c36929dd0f2d50e31ee8dc1ba7d73f4cd725c06d | [
"MIT"
] | null | null | null | from .deliveries import * # noqa
from .drones import * # noqa
from .medications import * # noqa
| 24.75 | 34 | 0.69697 | 12 | 99 | 5.75 | 0.5 | 0.434783 | 0.405797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212121 | 99 | 3 | 35 | 33 | 0.884615 | 0.141414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
fd9f18afd47e11746272e3ac3a77a3af2384846b | 6,432 | py | Python | payment/tests/integ/test_api.py | Al-bambino/aws-serverless-ecommerce-platform | 701d696be62189f6b86b0884602b00839cf94a33 | [
"MIT-0"
] | 758 | 2020-03-25T12:53:05.000Z | 2022-03-31T09:38:42.000Z | payment/tests/integ/test_api.py | y0zg/aws-serverless-ecommerce-platform | 70cab8ee2f9a7746dc7db19c5208d27522384bea | [
"MIT-0"
] | 70 | 2020-03-26T08:06:41.000Z | 2022-03-30T08:14:37.000Z | payment/tests/integ/test_api.py | y0zg/aws-serverless-ecommerce-platform | 70cab8ee2f9a7746dc7db19c5208d27522384bea | [
"MIT-0"
] | 262 | 2020-03-25T19:02:59.000Z | 2022-03-30T05:22:06.000Z | import uuid
import pytest
import requests
from fixtures import iam_auth # pylint: disable=import-error
from helpers import get_parameter # pylint: disable=import-error,no-name-in-module
@pytest.fixture(scope="module")
def payment_3p_api_url():
return get_parameter("/ecommerce/{Environment}/payment-3p/api/url")
... | 24.930233 | 90 | 0.636194 | 765 | 6,432 | 5.094118 | 0.095425 | 0.066205 | 0.07339 | 0.080831 | 0.886066 | 0.886066 | 0.866051 | 0.858866 | 0.832692 | 0.832692 | 0 | 0.038918 | 0.252954 | 6,432 | 258 | 91 | 24.930233 | 0.772112 | 0.109453 | 0 | 0.784431 | 0 | 0 | 0.15813 | 0.014813 | 0 | 0 | 0 | 0 | 0.161677 | 1 | 0.053892 | false | 0 | 0.02994 | 0.011976 | 0.095808 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fde9228c83c91b4e5a65b28ac7ccc5de13d33184 | 7,267 | py | Python | isimip_data/caveats/tests/test_admin.py | ISI-MIP/isimip-data | a0e4772362cc60db91e7689ec397840dcaaacddb | [
"MIT"
] | 3 | 2020-02-10T10:13:17.000Z | 2021-12-21T09:10:50.000Z | isimip_data/caveats/tests/test_admin.py | ISI-MIP/isimip-data | a0e4772362cc60db91e7689ec397840dcaaacddb | [
"MIT"
] | 17 | 2020-02-10T16:09:12.000Z | 2021-07-02T09:03:37.000Z | isimip_data/caveats/tests/test_admin.py | ISI-MIP/isimip-data | a0e4772362cc60db91e7689ec397840dcaaacddb | [
"MIT"
] | null | null | null | from django.conf import settings
from django.core import mail
from django.urls import reverse
from isimip_data.caveats.models import Caveat, Comment
def test_annotation_add_get(db, client):
client.login(username='admin', password='admin')
url = reverse('admin:caveats_caveat_add')
response = client.get(ur... | 32.882353 | 94 | 0.648135 | 883 | 7,267 | 5.110985 | 0.11778 | 0.048748 | 0.043873 | 0.052737 | 0.92577 | 0.909595 | 0.908043 | 0.908043 | 0.908043 | 0.90339 | 0 | 0.019872 | 0.20366 | 7,267 | 220 | 95 | 33.031818 | 0.759979 | 0 | 0 | 0.813559 | 0 | 0 | 0.319114 | 0.190312 | 0 | 0 | 0 | 0 | 0.220339 | 1 | 0.073446 | false | 0.073446 | 0.022599 | 0 | 0.096045 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
e324e07002958f02e0fdd927088e0b811f0ee479 | 977 | py | Python | tests/test_provider_hashicorp_hashicups.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | tests/test_provider_hashicorp_hashicups.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | tests/test_provider_hashicorp_hashicups.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # tests/test_provider_hashicorp_hashicups.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:18:02 UTC)
def test_provider_import():
import terrascript.provider.hashicorp.hashicups
def test_resource_import():
from terrascript.resource.hashicorp.hashicups import hashicups_order
def test_datas... | 29.606061 | 80 | 0.774821 | 123 | 977 | 6.02439 | 0.495935 | 0.194332 | 0.140351 | 0.178138 | 0.384615 | 0.210526 | 0.210526 | 0 | 0 | 0 | 0 | 0.0179 | 0.142272 | 977 | 32 | 81 | 30.53125 | 0.866348 | 0.525077 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0.375 | true | 0 | 1 | 0 | 1.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
e33a3db8c21c74dc9859e8cd23843a4c2050aefb | 3,757 | py | Python | tests/integration/cattletest/core/test_ha.py | pranavs18/cattle | db64d9ffc782d82bbbc44709fb23e63b43c3c549 | [
"Apache-2.0"
] | null | null | null | tests/integration/cattletest/core/test_ha.py | pranavs18/cattle | db64d9ffc782d82bbbc44709fb23e63b43c3c549 | [
"Apache-2.0"
] | null | null | null | tests/integration/cattletest/core/test_ha.py | pranavs18/cattle | db64d9ffc782d82bbbc44709fb23e63b43c3c549 | [
"Apache-2.0"
] | null | null | null | from common_fixtures import * # NOQA
def _process_names(processes):
return set([x.processName for x in processes])
def test_container_ha_default(admin_client, sim_context):
c = admin_client.create_container(imageUuid=sim_context['imageUuid'],
data={'simForgetImmediatel... | 36.475728 | 74 | 0.570934 | 367 | 3,757 | 5.607629 | 0.149864 | 0.12828 | 0.069971 | 0.062196 | 0.902332 | 0.902332 | 0.902332 | 0.902332 | 0.902332 | 0.902332 | 0 | 0 | 0.331648 | 3,757 | 102 | 75 | 36.833333 | 0.819594 | 0.001065 | 0 | 0.789474 | 0 | 0 | 0.131432 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.118421 | false | 0 | 0.013158 | 0.013158 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e3492c151af73d5e3ba296013ac69a94f411907a | 7,355 | py | Python | src/yarr_tools/utils/yarr_histo.py | dantrim/yarr-tools | 90a65d8aaf604e426e2c590ef63035fab29315a9 | [
"MIT"
] | null | null | null | src/yarr_tools/utils/yarr_histo.py | dantrim/yarr-tools | 90a65d8aaf604e426e2c590ef63035fab29315a9 | [
"MIT"
] | null | null | null | src/yarr_tools/utils/yarr_histo.py | dantrim/yarr-tools | 90a65d8aaf604e426e2c590ef63035fab29315a9 | [
"MIT"
] | null | null | null | import numpy as np
import json
import logging
logging.basicConfig()
logger = logging.getLogger(__name__)
class YarrHisto1d:
def __init__(self, data: np.array, metadata: json = {}) -> None:
# need to check shape
self._histogram = data
self._name = ""
self._overflow = 0.0
... | 25.627178 | 119 | 0.57811 | 918 | 7,355 | 4.265795 | 0.078431 | 0.040858 | 0.060776 | 0.045965 | 0.908325 | 0.863126 | 0.848315 | 0.848315 | 0.844484 | 0.844484 | 0 | 0.004983 | 0.317879 | 7,355 | 286 | 120 | 25.716783 | 0.775563 | 0.01482 | 0 | 0.856502 | 0 | 0.017937 | 0.088386 | 0.026516 | 0 | 0 | 0 | 0 | 0.049327 | 1 | 0.206278 | false | 0 | 0.013453 | 0.076233 | 0.358744 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
e35dcd1984d3fe5d68f3f53d4426ba8a26b1a36c | 43 | py | Python | external/models/TransH_BERT_h2/__init__.py | swapUniba/Elliot_refactor-tesi-Ventrella | 3ddffc041696c90a6f6d3e8906c212fc4f55f842 | [
"Apache-2.0"
] | null | null | null | external/models/TransH_BERT_h2/__init__.py | swapUniba/Elliot_refactor-tesi-Ventrella | 3ddffc041696c90a6f6d3e8906c212fc4f55f842 | [
"Apache-2.0"
] | null | null | null | external/models/TransH_BERT_h2/__init__.py | swapUniba/Elliot_refactor-tesi-Ventrella | 3ddffc041696c90a6f6d3e8906c212fc4f55f842 | [
"Apache-2.0"
] | null | null | null | from .TransH_BERT_h2 import TransH_BERT_h2
| 21.5 | 42 | 0.883721 | 8 | 43 | 4.25 | 0.625 | 0.588235 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0.093023 | 43 | 1 | 43 | 43 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
8b68fd1ea1c43dd714138ad9c40809d5df333425 | 1,985 | py | Python | ServerComponent/DataLayer/DataSetEntry.py | CDU55/FakeNews | 707bd48dd78851081d98ad21bbdadfc2720bd644 | [
"MIT"
] | null | null | null | ServerComponent/DataLayer/DataSetEntry.py | CDU55/FakeNews | 707bd48dd78851081d98ad21bbdadfc2720bd644 | [
"MIT"
] | 37 | 2020-10-20T08:30:53.000Z | 2020-12-22T13:15:45.000Z | ServerComponent/DataLayer/DataSetEntry.py | CDU55/FakeNews | 707bd48dd78851081d98ad21bbdadfc2720bd644 | [
"MIT"
] | 1 | 2020-10-19T14:55:23.000Z | 2020-10-19T14:55:23.000Z | class FacebookDataSetEntry:
def __init__(self, followers_number, likes_number, comments_number, share_number, grammar_index, subject_relevance,
label):
self.followers_number = followers_number
self.likes_number = likes_number
self.comments_number = comments_number
se... | 41.354167 | 120 | 0.720403 | 212 | 1,985 | 6.330189 | 0.103774 | 0.104322 | 0.113264 | 0.059613 | 0.921013 | 0.921013 | 0.921013 | 0.921013 | 0.921013 | 0.921013 | 0 | 0 | 0.226196 | 1,985 | 47 | 121 | 42.234043 | 0.873698 | 0 | 0 | 0.780488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0 | 0 | 0.195122 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8bb152ef6fabf3f467c52104453b21c215652613 | 116 | py | Python | dataflows_aws/__init__.py | frictionlessdata/dataflows-aws | 721d60cc536085d5653dc9bc70da5604199d567c | [
"MIT"
] | 2 | 2019-08-22T11:29:54.000Z | 2022-01-17T22:51:42.000Z | dataflows_aws/__init__.py | frictionlessdata/dataflows-aws | 721d60cc536085d5653dc9bc70da5604199d567c | [
"MIT"
] | null | null | null | dataflows_aws/__init__.py | frictionlessdata/dataflows-aws | 721d60cc536085d5653dc9bc70da5604199d567c | [
"MIT"
] | null | null | null | from .processors.change_acl_on_s3 import change_acl_on_s3
from .processors.dump_to_s3 import S3Dumper as dump_to_s3
| 38.666667 | 57 | 0.87931 | 22 | 116 | 4.181818 | 0.5 | 0.304348 | 0.23913 | 0.282609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04717 | 0.086207 | 116 | 2 | 58 | 58 | 0.820755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
8bc8272fa4d2c75c9f8674e1c00e278dedf9af76 | 94,417 | py | Python | finicityapi/controllers/deprecated_controller.py | monarchmoney/finicity-python | b2ab1ded435db75c78d42261f5e4acd2a3061487 | [
"MIT"
] | null | null | null | finicityapi/controllers/deprecated_controller.py | monarchmoney/finicity-python | b2ab1ded435db75c78d42261f5e4acd2a3061487 | [
"MIT"
] | null | null | null | finicityapi/controllers/deprecated_controller.py | monarchmoney/finicity-python | b2ab1ded435db75c78d42261f5e4acd2a3061487 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from finicityapi.api_helper import APIHelper
from finicityapi.configuration import Configuration
from finicityapi.controllers.base_controller import BaseController
from finicityapi.http.auth.custom_header_auth import CustomHeaderAuth
from finicityapi.models.generate_connect_url_response i... | 44.960476 | 144 | 0.601851 | 9,887 | 94,417 | 5.547992 | 0.037221 | 0.025268 | 0.013126 | 0.016043 | 0.934206 | 0.928573 | 0.926185 | 0.920278 | 0.913733 | 0.908793 | 0 | 0.003749 | 0.344578 | 94,417 | 2,099 | 145 | 44.981896 | 0.88265 | 0.422943 | 0 | 0.872872 | 0 | 0 | 0.072777 | 0.027132 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031782 | false | 0 | 0.021566 | 0 | 0.086266 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
47b149c3ba79185e70365264e98cd96daf3661a7 | 20 | py | Python | examples/zhexiantu.py | lora-chen/DeepCTR | 05f4b75ab219a6bc02ed48e62358c7e012c349cb | [
"Apache-2.0"
] | null | null | null | examples/zhexiantu.py | lora-chen/DeepCTR | 05f4b75ab219a6bc02ed48e62358c7e012c349cb | [
"Apache-2.0"
] | null | null | null | examples/zhexiantu.py | lora-chen/DeepCTR | 05f4b75ab219a6bc02ed48e62358c7e012c349cb | [
"Apache-2.0"
] | null | null | null | print( -1.7280e+01 ) | 20 | 20 | 0.65 | 4 | 20 | 3.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.388889 | 0.1 | 20 | 1 | 20 | 20 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
9a4607f18f3fc3aa9ef0c2c41cec7355b46e8e7e | 13,689 | py | Python | experiments/KS/Bayes/.ipynb_checkpoints/experiment_code-checkpoint.py | GJBoth/MultiTaskPINN | 8a9bb23b8bfc0d0f678090e015316dbd0cfbf024 | [
"MIT"
] | null | null | null | experiments/KS/Bayes/.ipynb_checkpoints/experiment_code-checkpoint.py | GJBoth/MultiTaskPINN | 8a9bb23b8bfc0d0f678090e015316dbd0cfbf024 | [
"MIT"
] | null | null | null | experiments/KS/Bayes/.ipynb_checkpoints/experiment_code-checkpoint.py | GJBoth/MultiTaskPINN | 8a9bb23b8bfc0d0f678090e015316dbd0cfbf024 | [
"MIT"
] | 1 | 2022-02-24T04:27:25.000Z | 2022-02-24T04:27:25.000Z | from multitaskpinn.utils.tensorboard import Tensorboard
from multitaskpinn.utils.output import progress
from multitaskpinn.model.deepmod import DeepMoD
from typing import Optional
import torch
import time
import numpy as np
from torch.distributions.studentT import StudentT
from sklearn.linear_model import Bayesi... | 50.512915 | 257 | 0.58631 | 1,604 | 13,689 | 4.831671 | 0.101621 | 0.02271 | 0.040645 | 0.027871 | 0.890839 | 0.885032 | 0.878839 | 0.878839 | 0.878839 | 0.878839 | 0 | 0.014513 | 0.270144 | 13,689 | 271 | 258 | 50.512915 | 0.761185 | 0.196581 | 0 | 0.773256 | 0 | 0 | 0.024102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017442 | false | 0 | 0.052326 | 0 | 0.069767 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9a47714df66526a1ec88b70d8f16aae04827a90b | 4,234 | py | Python | test/test_idseqs_to_mask.py | ulf1/keras-tweaks | ab937b7f01fd7c327c9a7f8f602067a81913a2d2 | [
"Apache-2.0"
] | null | null | null | test/test_idseqs_to_mask.py | ulf1/keras-tweaks | ab937b7f01fd7c327c9a7f8f602067a81913a2d2 | [
"Apache-2.0"
] | null | null | null | test/test_idseqs_to_mask.py | ulf1/keras-tweaks | ab937b7f01fd7c327c9a7f8f602067a81913a2d2 | [
"Apache-2.0"
] | null | null | null | from keras_tweaks import idseqs_to_mask
import tensorflow as tf
class AllTests(tf.test.TestCase):
def test1(self):
idseqs = [[1, 1, 0, 0, 2, 2, 3], [1, 3, 2, 1, 0, 0, 2]]
target = tf.sparse.SparseTensor(
indices=(
[0, 0, 1],
[0, 1, 1],
... | 29.816901 | 70 | 0.419225 | 540 | 4,234 | 3.192593 | 0.103704 | 0.026682 | 0.146752 | 0.023202 | 0.912993 | 0.889791 | 0.889791 | 0.889791 | 0.889791 | 0.889791 | 0 | 0.108374 | 0.424658 | 4,234 | 141 | 71 | 30.028369 | 0.599343 | 0.021965 | 0 | 0.834783 | 0 | 0 | 0.001933 | 0 | 0 | 0 | 0 | 0 | 0.113043 | 1 | 0.043478 | false | 0 | 0.017391 | 0 | 0.069565 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7bd06273a06fd178f5ad3c9b8e8110673e91bd1e | 12,508 | py | Python | tests/test_grids.py | knaidoo29/magpie | efab3c2666aab2c928ca12a631758bc1b43c149c | [
"MIT"
] | null | null | null | tests/test_grids.py | knaidoo29/magpie | efab3c2666aab2c928ca12a631758bc1b43c149c | [
"MIT"
] | null | null | null | tests/test_grids.py | knaidoo29/magpie | efab3c2666aab2c928ca12a631758bc1b43c149c | [
"MIT"
] | null | null | null | import numpy as np
import magpie
# check cartesian
def test_get_xedges():
xedges = magpie.grids.get_xedges(1., 2)
xedges = np.round(xedges, decimals=2)
assert len(xedges) == 3, "Length of xedges is incorrect."
assert xedges[-1] - xedges[0] == 1., "xedges range is incorrect."
xedges = magpie.grids... | 77.209877 | 178 | 0.657339 | 2,102 | 12,508 | 3.898668 | 0.049952 | 0.09396 | 0.101525 | 0.053081 | 0.91385 | 0.888469 | 0.871263 | 0.841489 | 0.814399 | 0.814155 | 0 | 0.0802 | 0.153662 | 12,508 | 161 | 179 | 77.689441 | 0.693935 | 0.002159 | 0 | 0.597222 | 0 | 0 | 0.219987 | 0 | 0 | 0 | 0 | 0 | 0.645833 | 1 | 0.0625 | false | 0 | 0.013889 | 0 | 0.076389 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7bdc961d45b660e08eb8da011f9022c2c610757f | 3,975 | py | Python | keras_frcnn/simple_parser.py | Heyjuke58/frcnn-wind-turbine-detection | 29311020188d3a26c8935cae710bd2c5013653ab | [
"Apache-2.0"
] | null | null | null | keras_frcnn/simple_parser.py | Heyjuke58/frcnn-wind-turbine-detection | 29311020188d3a26c8935cae710bd2c5013653ab | [
"Apache-2.0"
] | null | null | null | keras_frcnn/simple_parser.py | Heyjuke58/frcnn-wind-turbine-detection | 29311020188d3a26c8935cae710bd2c5013653ab | [
"Apache-2.0"
] | null | null | null | import cv2
import os
def get_data(input_path: str, test_only: bool = False):
found_bg = False
all_imgs = {}
classes_count = {}
class_mapping = {}
with open(input_path, 'r') as f:
print('Parsing annotation files')
for line in f:
filename, x1, y1, x2, y2, class_name, bucket, height, set = l... | 31.8 | 158 | 0.639245 | 598 | 3,975 | 4.053512 | 0.167224 | 0.138614 | 0.086634 | 0.039604 | 0.813119 | 0.813119 | 0.813119 | 0.787541 | 0.787541 | 0.787541 | 0 | 0.033529 | 0.22717 | 3,975 | 124 | 159 | 32.056452 | 0.755534 | 0.021384 | 0 | 0.840426 | 0 | 0.021277 | 0.120117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.021277 | 0 | 0.06383 | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d03bdb84cfc4dcb51c35ed40c88e42de6d82cf1d | 1,980 | py | Python | algorithms/289. Game of Life.py | woozway/py3-leetcode | e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf | [
"MIT"
] | 1 | 2020-12-02T13:54:30.000Z | 2020-12-02T13:54:30.000Z | algorithms/289. Game of Life.py | woozway/py3-leetcode | e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf | [
"MIT"
] | null | null | null | algorithms/289. Game of Life.py | woozway/py3-leetcode | e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf | [
"MIT"
] | null | null | null | """
1. Clarification
2. Possible solutions
- Simulation v1
- Simulation optimised v2
3. Coding
4. Tests
"""
# T=O(m*n), S=O(m*n)
class Solution:
def gameOfLife(self, board: List[List[int]]) -> None:
neighbors = [(1,0), (1,-1), (0,-1), (-1,-1), (-1,0), (-1,1), (0,1), (1,1)]
rows = len(board... | 36 | 92 | 0.466162 | 275 | 1,980 | 3.290909 | 0.163636 | 0.030939 | 0.121547 | 0.035359 | 0.910497 | 0.910497 | 0.897238 | 0.897238 | 0.897238 | 0.897238 | 0 | 0.055556 | 0.372727 | 1,980 | 54 | 93 | 36.666667 | 0.673108 | 0.072727 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ef7663c25966480207bffc88e8b2ebb6b592b2b2 | 278 | py | Python | casclik/controllers/__init__.py | mahaarbo/casclik | 21689c8f09388ef41b95943fa7c9e9bf07ae9207 | [
"MIT"
] | 14 | 2019-03-24T23:57:30.000Z | 2022-03-14T15:52:05.000Z | casclik/controllers/__init__.py | mahaarbo/casclik | 21689c8f09388ef41b95943fa7c9e9bf07ae9207 | [
"MIT"
] | null | null | null | casclik/controllers/__init__.py | mahaarbo/casclik | 21689c8f09388ef41b95943fa7c9e9bf07ae9207 | [
"MIT"
] | 5 | 2019-02-08T08:47:42.000Z | 2021-06-10T09:58:39.000Z | from casclik.controllers.reactive_qp import ReactiveQPController
from casclik.controllers.reactive_nlp import ReactiveNLPController
from casclik.controllers.pseudo_inverse import PseudoInverseController
from casclik.controllers.model_predictive import ModelPredictiveController
| 55.6 | 74 | 0.913669 | 28 | 278 | 8.928571 | 0.535714 | 0.176 | 0.352 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057554 | 278 | 4 | 75 | 69.5 | 0.954198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
efa34b37726e53709920d39d5640939022dce922 | 5,869 | py | Python | tests/test_patterns.py | abs-tudelft/vhdeps | dfd679e1c3d8fa1c61285558b0589f40ecd40441 | [
"Apache-2.0"
] | 17 | 2019-06-06T06:28:38.000Z | 2021-04-23T09:52:10.000Z | tests/test_patterns.py | jonasjj/vhdeps | dfd679e1c3d8fa1c61285558b0589f40ecd40441 | [
"Apache-2.0"
] | 34 | 2019-06-17T11:55:28.000Z | 2020-10-01T11:27:49.000Z | tests/test_patterns.py | jvanstraten/vhdeps | dfd679e1c3d8fa1c61285558b0589f40ecd40441 | [
"Apache-2.0"
] | 1 | 2021-04-23T05:22:41.000Z | 2021-04-23T05:22:41.000Z | """Tests the GHDL backend."""
from unittest import TestCase
import os
import re
from plumbum import local
from .common import run_vhdeps
DIR = os.path.realpath(os.path.dirname(__file__))
class TestPatterns(TestCase):
"""Tests the test case pattern matching logic (also used by the vsim
backend)."""
def t... | 55.367925 | 85 | 0.591072 | 907 | 5,869 | 3.748622 | 0.079383 | 0.091765 | 0.183529 | 0.198824 | 0.873824 | 0.864412 | 0.864412 | 0.864412 | 0.864412 | 0.864412 | 0 | 0.001264 | 0.191515 | 5,869 | 105 | 86 | 55.895238 | 0.715279 | 0.059806 | 0 | 0.724138 | 0 | 0 | 0.254522 | 0.004751 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.068966 | false | 0 | 0.057471 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
efc51a4c0459d1044dc0cc18589db66fc010d282 | 108 | py | Python | marketlearn/portfolio/__init__.py | mrajancsr/QuantEquityManagement | 026aa038268295a7d5e32c3d24c491e3c559e22e | [
"Apache-2.0"
] | 2 | 2020-07-22T09:28:31.000Z | 2020-08-17T01:19:42.000Z | marketlearn/portfolio/__init__.py | mrajancsr/QuantEquityManagement | 026aa038268295a7d5e32c3d24c491e3c559e22e | [
"Apache-2.0"
] | null | null | null | marketlearn/portfolio/__init__.py | mrajancsr/QuantEquityManagement | 026aa038268295a7d5e32c3d24c491e3c559e22e | [
"Apache-2.0"
] | 3 | 2020-08-04T02:48:32.000Z | 2020-08-17T01:20:09.000Z | from marketlearn.portfolio.asset import Asset # noqa
from marketlearn.portfolio.harry import Harry # noqa
| 36 | 53 | 0.814815 | 14 | 108 | 6.285714 | 0.5 | 0.340909 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12963 | 108 | 2 | 54 | 54 | 0.93617 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
4bed7278929472f0c5543dd0a4479d26628bdc3e | 2,384 | py | Python | utils/scripts/OOOlevelGen/src/levels/Muchos_Nachos.py | fullscreennl/monkeyswipe | c56192e202674dd5ab18023f6cf14cf51e95fbd0 | [
"MIT"
] | null | null | null | utils/scripts/OOOlevelGen/src/levels/Muchos_Nachos.py | fullscreennl/monkeyswipe | c56192e202674dd5ab18023f6cf14cf51e95fbd0 | [
"MIT"
] | null | null | null | utils/scripts/OOOlevelGen/src/levels/Muchos_Nachos.py | fullscreennl/monkeyswipe | c56192e202674dd5ab18023f6cf14cf51e95fbd0 | [
"MIT"
] | null | null | null | import LevelBuilder
from sprites import *
def render(name,bg):
lb = LevelBuilder.LevelBuilder(name+".plist",background=bg)
lb.addObject(Beam.BeamSprite(x=177, y=294,width=363,height=14,angle='-3',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam'))
lb.addObject(Beam.BeamSprite(x=294, y=2... | 103.652174 | 149 | 0.727768 | 414 | 2,384 | 4.190821 | 0.181159 | 0.107781 | 0.112392 | 0.164265 | 0.820749 | 0.771758 | 0.7683 | 0.7683 | 0.7683 | 0.7683 | 0 | 0.12283 | 0.057466 | 2,384 | 22 | 150 | 108.363636 | 0.64931 | 0 | 0 | 0 | 0 | 0 | 0.049077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
4bf13c3a67ed3ebc805278c5521e356b227eba40 | 4,218 | py | Python | tmp/client_req.py | hankai17/test | 8f38d999a7c6a92eac94b4d9dc8e444619d2144f | [
"MIT"
] | 7 | 2017-07-16T15:09:26.000Z | 2021-09-01T02:13:15.000Z | tmp/client_req.py | hankai17/test | 8f38d999a7c6a92eac94b4d9dc8e444619d2144f | [
"MIT"
] | null | null | null | tmp/client_req.py | hankai17/test | 8f38d999a7c6a92eac94b4d9dc8e444619d2144f | [
"MIT"
] | 3 | 2017-09-13T09:54:49.000Z | 2019-03-18T01:29:15.000Z | import socket,select
import time
clientsock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
clientsock.connect(('127.0.0.1', 81))
#clientsock.send('GET /v3-hs.ixigua.com/1bade5996fafe4289a995638f9c0f90f/5d67945d/video/m/220af7d4d6f93c7478080040a9d7bfcbb8311632f39d00002ed96a64cb3b/?rc=amk8OzM5ZXRlbzMzM2YzM0ApbGl2cX... | 136.064516 | 236 | 0.834993 | 625 | 4,218 | 5.552 | 0.3728 | 0.005764 | 0.013833 | 0.017291 | 0.798271 | 0.798271 | 0.798271 | 0.798271 | 0.790202 | 0.790202 | 0 | 0.421478 | 0.03082 | 4,218 | 30 | 237 | 140.6 | 0.427348 | 0 | 0 | 0 | 0 | 0 | 0.007511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
ef12af0fd3c1aa198011ca1e06250dbf98912978 | 175 | py | Python | src/sage/geometry/polyhedron/all.py | bopopescu/sage | 2d495be78e0bdc7a0a635454290b27bb4f5f70f0 | [
"BSL-1.0"
] | 5 | 2015-01-04T07:15:06.000Z | 2022-03-04T15:15:18.000Z | src/sage/geometry/polyhedron/all.py | bopopescu/sage | 2d495be78e0bdc7a0a635454290b27bb4f5f70f0 | [
"BSL-1.0"
] | 2 | 2018-10-30T13:40:20.000Z | 2020-07-23T12:13:30.000Z | src/sage/geometry/polyhedron/all.py | bopopescu/sage | 2d495be78e0bdc7a0a635454290b27bb4f5f70f0 | [
"BSL-1.0"
] | 10 | 2016-09-28T13:12:40.000Z | 2022-02-12T09:28:34.000Z |
from sage.misc.lazy_import import lazy_import
lazy_import('sage.geometry.polyhedron.constructor', 'Polyhedron')
lazy_import('sage.geometry.polyhedron.library', 'polytopes')
| 29.166667 | 65 | 0.817143 | 22 | 175 | 6.318182 | 0.454545 | 0.28777 | 0.230216 | 0.316547 | 0.460432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 175 | 5 | 66 | 35 | 0.842424 | 0 | 0 | 0 | 0 | 0 | 0.50289 | 0.393064 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
ef3b0e2801572d6d82b4d92c0dece1ee7cf7df05 | 198 | py | Python | examples/filter_plugins/__init__.py | bodsch/ansible-plugins | 20fe7afc5626e1247866582fa4c76e0b61d6de10 | [
"BSD-2-Clause"
] | 9 | 2020-01-11T21:57:34.000Z | 2022-01-06T13:56:40.000Z | examples/filter_plugins/__init__.py | bodsch/ansible-plugins | 20fe7afc5626e1247866582fa4c76e0b61d6de10 | [
"BSD-2-Clause"
] | 1 | 2021-03-04T08:16:27.000Z | 2021-03-04T09:22:57.000Z | examples/filter_plugins/__init__.py | bodsch/ansible-plugins | 20fe7afc5626e1247866582fa4c76e0b61d6de10 | [
"BSD-2-Clause"
] | 3 | 2020-10-15T10:09:22.000Z | 2021-11-05T00:57:51.000Z | from bool_filters import *
from dict_filters import *
from hash_filters import *
from list_filters import *
from version_filters import *
from string_filters import *
from datetime_filters import *
| 24.75 | 30 | 0.823232 | 28 | 198 | 5.571429 | 0.357143 | 0.583333 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141414 | 198 | 7 | 31 | 28.285714 | 0.917647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
3231211c5caf3ca4b77797a07a6049f699f7be10 | 18,133 | py | Python | tests/test_transverse_deformation.py | aripekka/tbcalc | a0337db245f5391bfa9a42123994832c299b1fbe | [
"MIT"
] | 1 | 2020-05-03T00:10:39.000Z | 2020-05-03T00:10:39.000Z | tests/test_transverse_deformation.py | aripekka/tbcalc | a0337db245f5391bfa9a42123994832c299b1fbe | [
"MIT"
] | null | null | null | tests/test_transverse_deformation.py | aripekka/tbcalc | a0337db245f5391bfa9a42123994832c299b1fbe | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Tests for the transverse deformation functions. Run with pytest.
Created on Sat May 9 00:09:00 2020
@author: aripekka
"""
import sys
import os.path
import numpy as np
sys.path.insert(1, os.path.join(os.path.dirname(__file__),'..'))
from tbcalc.transverse_deformation import *
from pyTT... | 35.485323 | 234 | 0.52148 | 3,432 | 18,133 | 2.657051 | 0.059441 | 0.020397 | 0.035092 | 0.026319 | 0.839895 | 0.817524 | 0.797127 | 0.780568 | 0.74438 | 0.713894 | 0 | 0.083557 | 0.261457 | 18,133 | 510 | 235 | 35.554902 | 0.597372 | 0.07092 | 0 | 0.732087 | 0 | 0 | 0.008577 | 0 | 0 | 0 | 0 | 0 | 0.084112 | 1 | 0.018692 | false | 0 | 0.015576 | 0 | 0.034268 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
088be1bdc5ec55a308e9c60e5811daeb38c09353 | 11,218 | py | Python | main.py | diekmann/RFC3526_reproduce | ffb877035e6ed8ad202c7ab08b109fbd408accfa | [
"Apache-2.0"
] | null | null | null | main.py | diekmann/RFC3526_reproduce | ffb877035e6ed8ad202c7ab08b109fbd408accfa | [
"Apache-2.0"
] | null | null | null | main.py | diekmann/RFC3526_reproduce | ffb877035e6ed8ad202c7ab08b109fbd408accfa | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from decimal import *
from binascii import unhexlify
# need some precision to evaluate PI
getcontext().prec = 2000
# from the python docs
def pi():
"""Compute Pi to the current precision.
>>> print(pi())
3.141592653589793238462643383
"""
getcontext().prec += 2 # extra d... | 43.992157 | 104 | 0.742646 | 1,338 | 11,218 | 6.20852 | 0.298206 | 0.004334 | 0.005778 | 0.003611 | 0.819429 | 0.811123 | 0.791622 | 0.771398 | 0.755507 | 0.751776 | 0 | 0.467563 | 0.19754 | 11,218 | 254 | 105 | 44.165354 | 0.455232 | 0.14236 | 0 | 0.515337 | 0 | 0 | 0.811942 | 0 | 0 | 0 | 0 | 0 | 0.03681 | 1 | 0.006135 | false | 0 | 0.01227 | 0 | 0.02454 | 0.006135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.