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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b462c60deb6bb1cfa4fc1453e95138ace46b034f | 27,314 | py | Python | batch_run.py | Trippasch/ABM_Building_Model | a99e9f8f97f8abc2e6b4652d215890cf612bbdf5 | [
"MIT"
] | null | null | null | batch_run.py | Trippasch/ABM_Building_Model | a99e9f8f97f8abc2e6b4652d215890cf612bbdf5 | [
"MIT"
] | null | null | null | batch_run.py | Trippasch/ABM_Building_Model | a99e9f8f97f8abc2e6b4652d215890cf612bbdf5 | [
"MIT"
] | null | null | null | from mesa import Agent, Model
from abm_project.attractor import Attractor
from mesa.time import *
from mesa.space import *
from mesa.datacollection import *
from mesa.batchrunner import *
import numpy as np
import pandas as pd
import itertools
import random
# Start of datacollector functions
def get_agent_type(model):... | 27.729949 | 107 | 0.668851 | 4,271 | 27,314 | 4.129478 | 0.048935 | 0.047174 | 0.08845 | 0.094347 | 0.81295 | 0.784487 | 0.743607 | 0.718773 | 0.714974 | 0.671883 | 0 | 0.027598 | 0.206707 | 27,314 | 985 | 108 | 27.729949 | 0.786367 | 0.115875 | 0 | 0.718539 | 0 | 0 | 0.021438 | 0.001335 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03383 | false | 0 | 0.013532 | 0 | 0.083897 | 0.002706 | 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 |
b47631c6b3f7d6e7c9aa701c54a0051a55def4c3 | 33,547 | py | Python | code/graph2tree/src/main.py | arkilpatel/SVAMP | 6f09ab516ab06c18e948c0325236e84e80b5d4bd | [
"MIT"
] | 39 | 2021-04-08T01:24:36.000Z | 2022-03-12T06:51:33.000Z | code/graph2tree/src/main.py | intflow/SVAMP | 10731d8ea489f4eb8e12e35c6c2781f8d837866a | [
"MIT"
] | 8 | 2021-04-12T08:02:05.000Z | 2022-03-07T06:36:39.000Z | code/graph2tree/src/main.py | intflow/SVAMP | 10731d8ea489f4eb8e12e35c6c2781f8d837866a | [
"MIT"
] | 11 | 2021-04-08T01:24:41.000Z | 2021-12-15T22:51:51.000Z | # coding: utf-8
import time
import torch.optim
from collections import OrderedDict
from attrdict import AttrDict
import pandas as pd
try:
import cPickle as pickle
except ImportError:
import pickle
import json
import pdb
from src.args import build_parser
from src.train_and_evaluate import *
from src.components.model... | 41.673292 | 235 | 0.707902 | 4,778 | 33,547 | 4.653411 | 0.067183 | 0.024287 | 0.014977 | 0.012144 | 0.879869 | 0.869839 | 0.868445 | 0.867005 | 0.863857 | 0.863857 | 0 | 0.009023 | 0.160879 | 33,547 | 805 | 236 | 41.673292 | 0.780817 | 0.015829 | 0 | 0.799073 | 0 | 0 | 0.119556 | 0.024585 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006182 | false | 0 | 0.026275 | 0 | 0.037094 | 0.010819 | 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 |
5ee06a15aa02924927d221fd47c5a39ee208a88a | 200 | py | Python | shapreg/__init__.py | iancovert/shapley-regression | ea7d149d92408c8b219fc7b37ff2e71fc22050dc | [
"MIT"
] | 26 | 2020-11-23T12:27:59.000Z | 2022-03-27T07:24:08.000Z | shapreg/__init__.py | iancovert/shapley-regression | ea7d149d92408c8b219fc7b37ff2e71fc22050dc | [
"MIT"
] | 1 | 2021-04-04T20:54:53.000Z | 2021-04-13T21:30:58.000Z | shapreg/__init__.py | iancovert/shapley-regression | ea7d149d92408c8b219fc7b37ff2e71fc22050dc | [
"MIT"
] | 6 | 2021-04-11T10:13:11.000Z | 2021-12-28T22:28:52.000Z | from . import removal
from . import games
from . import stochastic_games
from . import shapley
from . import shapley_unbiased
from . import shapley_sampling
from . import plotting
from . import utils
| 22.222222 | 30 | 0.8 | 27 | 200 | 5.814815 | 0.37037 | 0.509554 | 0.324841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 200 | 8 | 31 | 25 | 0.934524 | 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 |
5ef7a93ff79f6765d91999e49718cee7d30edaf4 | 63 | py | Python | toyotama/pwn/__init__.py | Laika/Toyotama | 0eee74f8cd5a8f7d5bcdc5aeab1d74e5af5607de | [
"MIT"
] | null | null | null | toyotama/pwn/__init__.py | Laika/Toyotama | 0eee74f8cd5a8f7d5bcdc5aeab1d74e5af5607de | [
"MIT"
] | null | null | null | toyotama/pwn/__init__.py | Laika/Toyotama | 0eee74f8cd5a8f7d5bcdc5aeab1d74e5af5607de | [
"MIT"
] | 1 | 2021-07-10T03:52:35.000Z | 2021-07-10T03:52:35.000Z | from toyotama.pwn.fsa import *
from toyotama.pwn.util import *
| 21 | 31 | 0.777778 | 10 | 63 | 4.9 | 0.6 | 0.489796 | 0.612245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 63 | 2 | 32 | 31.5 | 0.890909 | 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 |
6f2f4d1a4b2b91f2edd545a3befebd766cb122c2 | 2,059 | py | Python | BookReturnRecords1.py | XQuickmathsX/library-management-oncemore | e4e1650ebf40c63f9ed0aa0893cec010aebb0e76 | [
"MIT"
] | null | null | null | BookReturnRecords1.py | XQuickmathsX/library-management-oncemore | e4e1650ebf40c63f9ed0aa0893cec010aebb0e76 | [
"MIT"
] | null | null | null | BookReturnRecords1.py | XQuickmathsX/library-management-oncemore | e4e1650ebf40c63f9ed0aa0893cec010aebb0e76 | [
"MIT"
] | null | null | null | import mysql.connector
mydb= mysql.connector(host="127.0.0.1", user="root", passwd="2zkNKcz&EOZaRjc$",database="library_management_project")
def returneestudentadd():
Borrowers_IDp=int(input("ENTER YOUR BORROWERS_ID:- "))
#todo query to add this expression into the database
bookIDp=int(input("ENTER YOU... | 57.194444 | 118 | 0.716853 | 288 | 2,059 | 5.097222 | 0.194444 | 0.108992 | 0.119891 | 0.228883 | 0.877384 | 0.877384 | 0.877384 | 0.877384 | 0.822888 | 0.822888 | 0 | 0.004194 | 0.189412 | 2,059 | 36 | 119 | 57.194444 | 0.875374 | 0.407965 | 0 | 0.6 | 0 | 0 | 0.435415 | 0.022241 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0.1 | false | 0.05 | 0.05 | 0 | 0.15 | 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 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
6f52ff6b2dc7006d52ca2f1707dd4d5fd9355637 | 1,375 | py | Python | draw_video.py | lidongyv/Reppoint-Tracking | 81b81e921f6b905e68aba117ffc4fca8ffcfcfd6 | [
"MIT"
] | null | null | null | draw_video.py | lidongyv/Reppoint-Tracking | 81b81e921f6b905e68aba117ffc4fca8ffcfcfd6 | [
"MIT"
] | null | null | null | draw_video.py | lidongyv/Reppoint-Tracking | 81b81e921f6b905e68aba117ffc4fca8ffcfcfd6 | [
"MIT"
] | null | null | null | import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import os
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np
import ffmpeg
path='/home/ld/RepPoints/debug/feature_change/1'
# (
# ffmpeg
# .input(os.path.join(path,'resnet/*.jpg'), pattern_type='glob',... | 25.462963 | 86 | 0.626182 | 197 | 1,375 | 4.263959 | 0.218274 | 0.1 | 0.166667 | 0.233333 | 0.878571 | 0.864286 | 0.779762 | 0.779762 | 0.705952 | 0.541667 | 0 | 0.020906 | 0.165091 | 1,375 | 53 | 87 | 25.943396 | 0.710801 | 0.560727 | 0 | 0.380952 | 0 | 0 | 0.169284 | 0.071553 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.380952 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
6f77d134e788eb011a09e7bf579c6eda6ffabfb9 | 129 | py | Python | malesmo/gboost/__init__.py | loven-doo/MaLeSMo | 555ce22c2ef6dfe78af6717b502d9274a4faa743 | [
"BSD-3-Clause"
] | null | null | null | malesmo/gboost/__init__.py | loven-doo/MaLeSMo | 555ce22c2ef6dfe78af6717b502d9274a4faa743 | [
"BSD-3-Clause"
] | null | null | null | malesmo/gboost/__init__.py | loven-doo/MaLeSMo | 555ce22c2ef6dfe78af6717b502d9274a4faa743 | [
"BSD-3-Clause"
] | null | null | null | from malesmo.gboost.model_catb import ModelCatBoost, CatBoostParams
from malesmo.gboost.model_xgb import ModelXGB, XGBoostParams
| 43 | 67 | 0.875969 | 16 | 129 | 6.9375 | 0.6875 | 0.198198 | 0.306306 | 0.396396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077519 | 129 | 2 | 68 | 64.5 | 0.932773 | 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 |
48c2c3b75988ca92a23b7d93b799018e2471db42 | 7,444 | py | Python | migrations/versions/d709caf1aef0_.py | CatsAreEvil/box-office-studio | 0fcf19ccd4f65622d94c6cf0c6ac2ef4fd1bd5f8 | [
"MIT"
] | null | null | null | migrations/versions/d709caf1aef0_.py | CatsAreEvil/box-office-studio | 0fcf19ccd4f65622d94c6cf0c6ac2ef4fd1bd5f8 | [
"MIT"
] | 1 | 2019-06-12T01:25:39.000Z | 2019-06-12T01:25:40.000Z | migrations/versions/d709caf1aef0_.py | CatsAreEvil/box-office-studio | 0fcf19ccd4f65622d94c6cf0c6ac2ef4fd1bd5f8 | [
"MIT"
] | null | null | null | """empty message
Revision ID: d709caf1aef0
Revises: 0682670d8b62
Create Date: 2019-05-25 19:21:03.965915
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = 'd709caf1aef0'
down_revision = '0682670d8b62'
branch_labels = None... | 67.063063 | 138 | 0.738716 | 1,003 | 7,444 | 5.254237 | 0.077767 | 0.207211 | 0.087666 | 0.143454 | 0.933966 | 0.929412 | 0.774573 | 0.702467 | 0.702087 | 0.693928 | 0 | 0.031878 | 0.0982 | 7,444 | 110 | 139 | 67.672727 | 0.753166 | 0.039629 | 0 | 0 | 0 | 0 | 0.220472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021505 | false | 0 | 0.032258 | 0 | 0.053763 | 0 | 0 | 0 | 0 | null | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
48f8b600685f4396a53a8c75ec94c48c550d5661 | 2,942 | py | Python | Model/models.py | tarun360/SpeakerProfiling | 61a033aed07e89d94e18d89393e11b43862933ab | [
"MIT"
] | 6 | 2022-01-10T11:30:52.000Z | 2022-01-11T05:29:25.000Z | Model/models.py | tarun360/SpeakerProfiling | 61a033aed07e89d94e18d89393e11b43862933ab | [
"MIT"
] | null | null | null | Model/models.py | tarun360/SpeakerProfiling | 61a033aed07e89d94e18d89393e11b43862933ab | [
"MIT"
] | 2 | 2022-01-13T05:20:07.000Z | 2022-03-23T12:05:41.000Z | import torch
import torch.nn as nn
from conformer.encoder import ConformerEncoder
from IPython import embed
class UpstreamTransformer(nn.Module):
def __init__(self, upstream_model='wav2vec2',num_layers=6, feature_dim=768, unfreeze_last_conv_layers=False):
super().__init__()
self.upstream = torch.hu... | 42.028571 | 113 | 0.669613 | 365 | 2,942 | 5.167123 | 0.224658 | 0.089077 | 0.07211 | 0.04666 | 0.839343 | 0.829268 | 0.829268 | 0.81018 | 0.81018 | 0.81018 | 0 | 0.016889 | 0.235214 | 2,942 | 70 | 114 | 42.028571 | 0.821333 | 0.03603 | 0 | 0.705882 | 0 | 0 | 0.025415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0 | 0.078431 | 0 | 0.235294 | 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 |
d2c21253c36a48f6ec8d55065fc36321359f0722 | 4,931 | py | Python | tests/test_train_e2e.py | brentyi/torchfilter | da0250baf2197f59b6e67f37cafdd63015380cbb | [
"MIT"
] | 84 | 2020-09-08T07:33:04.000Z | 2022-03-30T17:25:00.000Z | tests/test_train_e2e.py | brentyi/diffbayes | da0250baf2197f59b6e67f37cafdd63015380cbb | [
"MIT"
] | 4 | 2020-11-03T14:32:11.000Z | 2021-05-12T02:49:49.000Z | tests/test_train_e2e.py | brentyi/diffbayes | da0250baf2197f59b6e67f37cafdd63015380cbb | [
"MIT"
] | 18 | 2020-11-04T22:20:55.000Z | 2021-12-21T10:23:26.000Z | import torch
from _linear_system_fixtures import (
buddy,
generated_data,
generated_data_numpy_list,
single_step_dataloader,
subsequence_dataloader,
)
from _linear_system_models import (
LinearDynamicsModel,
LinearKalmanFilterMeasurementModel,
LinearParticleFilterMeasurementModel,
Li... | 34.243056 | 86 | 0.762928 | 540 | 4,931 | 6.594444 | 0.137037 | 0.073013 | 0.081157 | 0.105027 | 0.822241 | 0.803707 | 0.780118 | 0.765234 | 0.711879 | 0.682673 | 0 | 0.005696 | 0.181099 | 4,931 | 143 | 87 | 34.482517 | 0.876176 | 0.155344 | 0 | 0.510638 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 1 | 0.042553 | false | 0 | 0.042553 | 0 | 0.085106 | 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 |
d2e779472ad1bba64a215c1a19201cb748bd25c9 | 6,149 | py | Python | assets/img/grandpa-hackthebox/exploit.py | pulkittalwar2611/pulkittalwar.github.io | a057e3cb866d3b3a8a5c31f83524ee37d249fc2c | [
"MIT"
] | null | null | null | assets/img/grandpa-hackthebox/exploit.py | pulkittalwar2611/pulkittalwar.github.io | a057e3cb866d3b3a8a5c31f83524ee37d249fc2c | [
"MIT"
] | null | null | null | assets/img/grandpa-hackthebox/exploit.py | pulkittalwar2611/pulkittalwar.github.io | a057e3cb866d3b3a8a5c31f83524ee37d249fc2c | [
"MIT"
] | null | null | null | '''
Description:Buffer overflow in the ScStoragePathFromUrl function in the WebDAV service in Internet Information Services (IIS) 6.0 in Microsoft Windows Server 2003 R2 allows remote attackers to execute arbitrary code via a long header beginning with "If: <http://" in a PROPFIND request, as exploited in the wild in ... | 136.644444 | 2,184 | 0.771833 | 1,210 | 6,149 | 3.920661 | 0.175207 | 0.027825 | 0.020868 | 0.015177 | 0.094224 | 0.091062 | 0.072091 | 0.063238 | 0.063238 | 0.051855 | 0 | 0.236475 | 0.044072 | 6,149 | 45 | 2,185 | 136.644444 | 0.570602 | 0.054968 | 0 | 0 | 0 | 0.176471 | 0.944672 | 0.916803 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8258063f06ec3263078ad880d0386a9ccfb3b6b3 | 24,558 | py | Python | India1.py | Sultandaku/India | 7a6fad66fa13e2b7a4e6351a430896d8dba972b1 | [
"Apache-2.0"
] | null | null | null | India1.py | Sultandaku/India | 7a6fad66fa13e2b7a4e6351a430896d8dba972b1 | [
"Apache-2.0"
] | null | null | null | India1.py | Sultandaku/India | 7a6fad66fa13e2b7a4e6351a430896d8dba972b1 | [
"Apache-2.0"
] | null | null | null |
import marshal
exec(marshal.loads('c\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00@\x00\x00\x00s!\x00\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00e\x00\x00j\x01\x00d\x02\x00\x83\x01\x00d\x01\x00\x04Ud\x01\x00S(\x03\x00\x00\x00i\xff\xff\xff\xffNs\x9b(\x00\x00c\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00@\x00\x00\x... | 8,186 | 24,542 | 0.749002 | 5,381 | 24,558 | 3.406244 | 0.106857 | 0.235037 | 0.115882 | 0.080528 | 0.655737 | 0.589612 | 0.507284 | 0.459545 | 0.423318 | 0.394621 | 0 | 0.378423 | 0.01413 | 24,558 | 3 | 24,542 | 8,186 | 0.37863 | 0 | 0 | 0 | 0 | 2.5 | 0.533757 | 0.467872 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 11 |
8291ddc028f1d54d7bc24e7c70835f4edb38515f | 186 | py | Python | whatlies/transformers/__init__.py | louisguitton/whatlies | a6cfa8a08555fbd8a9cee950e36a2cd59a2eb7c0 | [
"Apache-2.0"
] | null | null | null | whatlies/transformers/__init__.py | louisguitton/whatlies | a6cfa8a08555fbd8a9cee950e36a2cd59a2eb7c0 | [
"Apache-2.0"
] | null | null | null | whatlies/transformers/__init__.py | louisguitton/whatlies | a6cfa8a08555fbd8a9cee950e36a2cd59a2eb7c0 | [
"Apache-2.0"
] | null | null | null | from whatlies.transformers.pca import Pca
from whatlies.transformers.umap import Umap
from whatlies.transformers.noise import Noise
from whatlies.transformers.addrandom import AddRandom
| 37.2 | 53 | 0.870968 | 24 | 186 | 6.75 | 0.333333 | 0.296296 | 0.592593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086022 | 186 | 4 | 54 | 46.5 | 0.952941 | 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 |
82a9d80d4be624c40bb0b4e5ee8fb60babdbd5e9 | 216 | py | Python | autosense/neural/__init__.py | jay1999ke/autoSense | b3027c5a7c1f2fb5a67decdf3e3f8a751313ace8 | [
"MIT"
] | null | null | null | autosense/neural/__init__.py | jay1999ke/autoSense | b3027c5a7c1f2fb5a67decdf3e3f8a751313ace8 | [
"MIT"
] | null | null | null | autosense/neural/__init__.py | jay1999ke/autoSense | b3027c5a7c1f2fb5a67decdf3e3f8a751313ace8 | [
"MIT"
] | null | null | null | import autosense.neural.loss as Loss
from autosense.neural.param import Weight, Initializer
from autosense.neural.layers import Linear, Conv2D, Dropout, Linear2
from autosense.neural.optim import Optimizer, optimNode | 54 | 68 | 0.847222 | 29 | 216 | 6.310345 | 0.586207 | 0.327869 | 0.311475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.092593 | 216 | 4 | 69 | 54 | 0.923469 | 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 |
82c4ded45ee65328011c8fc99a977e3023ed0234 | 3,307 | py | Python | source/utils/data_generator.py | gujingxiao/IJCAI_Keras_Defense | e69b41c651e364e27c837f7c57efc6214b907373 | [
"Apache-2.0"
] | 1 | 2019-10-11T15:31:25.000Z | 2019-10-11T15:31:25.000Z | source/utils/data_generator.py | gujingxiao/IJCAI_Keras_Defense | e69b41c651e364e27c837f7c57efc6214b907373 | [
"Apache-2.0"
] | null | null | null | source/utils/data_generator.py | gujingxiao/IJCAI_Keras_Defense | e69b41c651e364e27c837f7c57efc6214b907373 | [
"Apache-2.0"
] | null | null | null | import os
import keras
import pandas as pd
import numpy as np
import cv2
from utils.preprocessing import data_augment
from utils.iaa_process import iaa_data_augment
# Train Generator
def train_generator(train_list, size, batchsize, augment, num_classes):
# Arrange all indexes
all_batches_index = np.arange(0, l... | 41.860759 | 99 | 0.554279 | 390 | 3,307 | 4.448718 | 0.174359 | 0.082997 | 0.055331 | 0.078386 | 0.88415 | 0.874928 | 0.874928 | 0.843804 | 0.843804 | 0.802305 | 0 | 0.008804 | 0.347445 | 3,307 | 79 | 100 | 41.860759 | 0.795181 | 0.037799 | 0 | 0.782609 | 0 | 0 | 0.022033 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028986 | false | 0 | 0.101449 | 0 | 0.130435 | 0.028986 | 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 |
7d9a7c27387a68848932fd71df2d5cc504678da5 | 53,830 | py | Python | webapp/apps/taxbrain/models.py | OpenSourcePolicyCenter/PolicyBrain | 5edffcd5cf8bb6544afc1ed982636abe66e246e1 | [
"MIT"
] | 13 | 2017-11-07T15:54:42.000Z | 2018-09-27T20:56:28.000Z | webapp/apps/taxbrain/models.py | OpenSourcePolicyCenter/webapp-public | 5edffcd5cf8bb6544afc1ed982636abe66e246e1 | [
"MIT"
] | 547 | 2015-08-07T21:32:51.000Z | 2017-09-14T21:25:43.000Z | webapp/apps/taxbrain/models.py | OpenSourcePolicyCenter/webapp-public | 5edffcd5cf8bb6544afc1ed982636abe66e246e1 | [
"MIT"
] | 23 | 2015-08-07T20:55:39.000Z | 2017-08-25T19:20:20.000Z | import re
import uuid
import json
from distutils.version import LooseVersion
from django.db import models
from django.core import validators
from django.core.urlresolvers import reverse
from django.core.exceptions import ValidationError
from django.core.validators import MinValueValidator, MaxValueValidator, RegexVali... | 63.032787 | 114 | 0.757533 | 7,193 | 53,830 | 5.463645 | 0.072014 | 0.131221 | 0.180941 | 0.23402 | 0.851679 | 0.851145 | 0.847837 | 0.839542 | 0.797176 | 0.535623 | 0 | 0.014753 | 0.139941 | 53,830 | 853 | 115 | 63.106682 | 0.834115 | 0.055285 | 0 | 0.071637 | 0 | 0 | 0.009175 | 0.000838 | 0 | 0 | 0 | 0 | 0.001462 | 1 | 0.019006 | false | 0.001462 | 0.024854 | 0.002924 | 0.923977 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
7db26938d463bc057c6e3990f08559155c9e32be | 9,473 | py | Python | tests/test_handlers.py | chaosk/djangocms-versioning | 257910183502536882df6e2459c5c6f325e6a584 | [
"BSD-3-Clause"
] | null | null | null | tests/test_handlers.py | chaosk/djangocms-versioning | 257910183502536882df6e2459c5c6f325e6a584 | [
"BSD-3-Clause"
] | null | null | null | tests/test_handlers.py | chaosk/djangocms-versioning | 257910183502536882df6e2459c5c6f325e6a584 | [
"BSD-3-Clause"
] | null | null | null | from datetime import datetime
from django.utils import timezone
from cms.api import add_plugin
from cms.models import Placeholder, UserSettings
from cms.test_utils.testcases import CMSTestCase
from freezegun import freeze_time
from djangocms_versioning.models import Version
from djangocms_versioning.test_utils impo... | 38.50813 | 97 | 0.632007 | 966 | 9,473 | 6.033126 | 0.090062 | 0.069664 | 0.064173 | 0.090597 | 0.85175 | 0.840769 | 0.834248 | 0.825841 | 0.825841 | 0.825841 | 0 | 0.01319 | 0.27172 | 9,473 | 245 | 98 | 38.665306 | 0.83157 | 0 | 0 | 0.717172 | 0 | 0 | 0.045392 | 0.004434 | 0 | 0 | 0 | 0 | 0.09596 | 1 | 0.050505 | false | 0 | 0.040404 | 0 | 0.09596 | 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 |
814ddb2f331f68fd127a3353c52ccbef7d8bdd79 | 223 | py | Python | tests/test_socfaker_logs_windows_eventlog.py | atstpls/soc-faker | 119fcb9c4329a918ef9001ac5eaa36251b862bf0 | [
"MIT"
] | 122 | 2020-02-21T16:06:54.000Z | 2022-03-21T13:53:03.000Z | tests/test_socfaker_logs_windows_eventlog.py | atstpls/soc-faker | 119fcb9c4329a918ef9001ac5eaa36251b862bf0 | [
"MIT"
] | 13 | 2020-01-29T16:37:05.000Z | 2022-01-27T21:30:10.000Z | tests/test_socfaker_logs_windows_eventlog.py | atstpls/soc-faker | 119fcb9c4329a918ef9001ac5eaa36251b862bf0 | [
"MIT"
] | 20 | 2020-04-10T11:59:29.000Z | 2022-02-10T09:20:26.000Z | def test_socfaker_logs_windows_eventlog(socfaker_fixture):
assert socfaker_fixture.logs.windows.eventlog()
def test_socfaker_logs_windows_sysmon_logs(socfaker_fixture):
assert socfaker_fixture.logs.windows.sysmon() | 44.6 | 61 | 0.856502 | 29 | 223 | 6.137931 | 0.310345 | 0.247191 | 0.168539 | 0.213483 | 0.820225 | 0.52809 | 0.52809 | 0 | 0 | 0 | 0 | 0 | 0.071749 | 223 | 5 | 62 | 44.6 | 0.859903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8171538efcf108c05d6c10e2d8869f07afd208aa | 27,193 | py | Python | packages/syft/src/syft/proto/core/adp/scalar_pb2.py | callezenwaka/PySyft | 2545c302441cfe727ec095c4f9aa136bff02be32 | [
"Apache-1.1"
] | 1 | 2021-09-14T10:56:43.000Z | 2021-09-14T10:56:43.000Z | packages/syft/src/syft/proto/core/adp/scalar_pb2.py | callezenwaka/PySyft | 2545c302441cfe727ec095c4f9aa136bff02be32 | [
"Apache-1.1"
] | 2 | 2021-04-02T10:12:44.000Z | 2021-04-02T10:12:50.000Z | packages/syft/src/syft/proto/core/adp/scalar_pb2.py | callezenwaka/PySyft | 2545c302441cfe727ec095c4f9aa136bff02be32 | [
"Apache-1.1"
] | 1 | 2021-08-19T12:23:01.000Z | 2021-08-19T12:23:01.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: proto/core/adp/scalar.proto
"""Generated protocol buffer code."""
# third party
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _re... | 32.921308 | 1,815 | 0.623028 | 2,933 | 27,193 | 5.395159 | 0.057961 | 0.040445 | 0.064838 | 0.066544 | 0.835313 | 0.804285 | 0.740331 | 0.689017 | 0.680801 | 0.680801 | 0 | 0.034491 | 0.273931 | 27,193 | 825 | 1,816 | 32.961212 | 0.766967 | 0.024124 | 0 | 0.757962 | 1 | 0.001274 | 0.156793 | 0.124477 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.007643 | 0 | 0.007643 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
81736639ac28a4db56d5007f839f5b46e6f9547f | 71,358 | py | Python | tccli/services/domain/domain_client.py | tencentcloudapi-test/tencentcloud-cli | da9733765df2b405b83b7acff48256f31e053ab1 | [
"Apache-2.0"
] | null | null | null | tccli/services/domain/domain_client.py | tencentcloudapi-test/tencentcloud-cli | da9733765df2b405b83b7acff48256f31e053ab1 | [
"Apache-2.0"
] | null | null | null | tccli/services/domain/domain_client.py | tencentcloudapi-test/tencentcloud-cli | da9733765df2b405b83b7acff48256f31e053ab1 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
import six
import json
import tccli.options_define as OptionsDefine
import tccli.format_output as FormatOutput
from tccli import __version__
from tccli.utils import Utils
from tccli.exceptions import ConfigurationError, ClientError, ParamError
from tencentcloud.common import... | 52.200439 | 155 | 0.679139 | 7,676 | 71,358 | 6.090672 | 0.032178 | 0.096253 | 0.28895 | 0.124679 | 0.891791 | 0.88608 | 0.883385 | 0.879235 | 0.87423 | 0.869952 | 0 | 0.004829 | 0.187477 | 71,358 | 1,366 | 156 | 52.238653 | 0.801518 | 0.004639 | 0 | 0.779365 | 0 | 0 | 0.137652 | 0.071565 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021429 | false | 0 | 0.012698 | 0.000794 | 0.035714 | 0.019841 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
819f728ce3bc8ec0c52a1b0482a9f9d068c9e2c3 | 146,869 | py | Python | proliantutils/tests/ilo/ris_sample_outputs.py | anta-nok/proliantutils | 35c711e391b839bbb93c24880e08e4ac7554dae6 | [
"Apache-2.0"
] | null | null | null | proliantutils/tests/ilo/ris_sample_outputs.py | anta-nok/proliantutils | 35c711e391b839bbb93c24880e08e4ac7554dae6 | [
"Apache-2.0"
] | null | null | null | proliantutils/tests/ilo/ris_sample_outputs.py | anta-nok/proliantutils | 35c711e391b839bbb93c24880e08e4ac7554dae6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | 31.680112 | 78 | 0.413307 | 9,065 | 146,869 | 6.673028 | 0.106012 | 0.022747 | 0.028434 | 0.025855 | 0.898183 | 0.882792 | 0.869005 | 0.85821 | 0.843911 | 0.82561 | 0 | 0.058466 | 0.444968 | 146,869 | 4,635 | 79 | 31.686947 | 0.6836 | 0.004514 | 0 | 0.674066 | 0 | 0.008352 | 0.975361 | 0.181428 | 0 | 0 | 0.010391 | 0 | 0 | 1 | 0 | false | 0.003736 | 0 | 0 | 0 | 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 |
81b0ad47d38703e2c2e4a33aef3e467eedb19a4b | 20,402 | py | Python | tests/test_packages/test_connections/test_p2p_libp2p/test_fault_tolerance.py | devjsc/agents-aea | 872f7b76cbcd33b6c809905c68681790bb93ff2f | [
"Apache-2.0"
] | 1 | 2021-04-08T17:19:42.000Z | 2021-04-08T17:19:42.000Z | tests/test_packages/test_connections/test_p2p_libp2p/test_fault_tolerance.py | devjsc/agents-aea | 872f7b76cbcd33b6c809905c68681790bb93ff2f | [
"Apache-2.0"
] | null | null | null | tests/test_packages/test_connections/test_p2p_libp2p/test_fault_tolerance.py | devjsc/agents-aea | 872f7b76cbcd33b6c809905c68681790bb93ff2f | [
"Apache-2.0"
] | 1 | 2021-08-05T08:54:25.000Z | 2021-08-05T08:54:25.000Z | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# 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 ... | 37.027223 | 119 | 0.660082 | 2,216 | 20,402 | 5.830776 | 0.112365 | 0.058045 | 0.071202 | 0.038387 | 0.817197 | 0.796455 | 0.77881 | 0.771922 | 0.762867 | 0.747852 | 0 | 0.011807 | 0.248603 | 20,402 | 550 | 120 | 37.094545 | 0.83105 | 0.097981 | 0 | 0.742317 | 0 | 0 | 0.012006 | 0.001206 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.030733 | false | 0.002364 | 0.033097 | 0 | 0.073286 | 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 |
81cf2bb4801bb9bbba82503054f26f28d02a2b6c | 1,872 | py | Python | examples/invariant.py | gregsadetsky/RayTracing | 3d11ed91014a47bddc797495ca2af059005e810d | [
"MIT"
] | 1 | 2021-04-20T09:38:05.000Z | 2021-04-20T09:38:05.000Z | examples/invariant.py | gregsadetsky/RayTracing | 3d11ed91014a47bddc797495ca2af059005e810d | [
"MIT"
] | null | null | null | examples/invariant.py | gregsadetsky/RayTracing | 3d11ed91014a47bddc797495ca2af059005e810d | [
"MIT"
] | 2 | 2021-04-20T09:38:06.000Z | 2022-02-20T23:45:18.000Z | import envexamples
from raytracing import *
path = ImagingPath()
path.name = "4f system, 1 cm object, small lenses"
path.append(Space(d=5))
path.append(Lens(f=5, diameter=2.5))
path.append(Space(d=15))
path.append(Lens(f=10,diameter=2.5))
path.append(Space(d=10))
path.display()
#path.saveFigure('object-smallLenses.png... | 35.320755 | 106 | 0.769765 | 284 | 1,872 | 5.073944 | 0.169014 | 0.173491 | 0.156142 | 0.166551 | 0.869535 | 0.828591 | 0.824427 | 0.797363 | 0.797363 | 0.797363 | 0 | 0.037909 | 0.069979 | 1,872 | 52 | 107 | 36 | 0.789776 | 0.209402 | 0 | 0.785714 | 0 | 0 | 0.168136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
81dea810f1e07b5dacb2854b8d5697b9bb0990bb | 7,736 | py | Python | time_map.py | SriyaR/Coronavirus-Time-Space-Spread-India | 6b78ff1541cb60f209423a2c06e97b368c238614 | [
"CC0-1.0"
] | null | null | null | time_map.py | SriyaR/Coronavirus-Time-Space-Spread-India | 6b78ff1541cb60f209423a2c06e97b368c238614 | [
"CC0-1.0"
] | null | null | null | time_map.py | SriyaR/Coronavirus-Time-Space-Spread-India | 6b78ff1541cb60f209423a2c06e97b368c238614 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""time-map.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1-2jgIeLZg107TIwVKDXWfjL07ddYnLuP
"""
import cv2
import os
import json
import matplotlib.pyplot as plt
import matplotlib.cm
from mpl_toolkits.basemap import Basem... | 42.740331 | 486 | 0.708635 | 1,059 | 7,736 | 5.102927 | 0.237016 | 0.048298 | 0.016284 | 0.021095 | 0.826055 | 0.814582 | 0.790896 | 0.790896 | 0.790896 | 0.776832 | 0 | 0.016232 | 0.13198 | 7,736 | 181 | 487 | 42.740331 | 0.788533 | 0.134436 | 0 | 0.723077 | 1 | 0 | 0.252024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107692 | 0 | 0.107692 | 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 |
1eebc44279b5e679d8ef84689ed368209507456d | 122 | py | Python | news/utils.py | yxor/neonews | 34a506fcc4084f9d37b98801d260fca09582fed3 | [
"MIT"
] | 3 | 2020-12-17T00:52:17.000Z | 2021-08-06T15:22:03.000Z | news/utils.py | yxor/neonews | 34a506fcc4084f9d37b98801d260fca09582fed3 | [
"MIT"
] | null | null | null | news/utils.py | yxor/neonews | 34a506fcc4084f9d37b98801d260fca09582fed3 | [
"MIT"
] | 1 | 2021-02-16T19:22:13.000Z | 2021-02-16T19:22:13.000Z | """ a file with with utility functions """
import secrets
def generate_api_key():
return secrets.token_urlsafe(16)
| 15.25 | 42 | 0.729508 | 17 | 122 | 5.058824 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0.172131 | 122 | 7 | 43 | 17.428571 | 0.831683 | 0.278689 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
484558a71b238b996f17ec28e2d1d8c35614cfc9 | 173,889 | py | Python | tests/examples/minlplib/sfacloc1_4_80.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 2 | 2021-07-03T13:19:10.000Z | 2022-02-06T10:48:13.000Z | tests/examples/minlplib/sfacloc1_4_80.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 1 | 2021-07-04T14:52:14.000Z | 2021-07-15T10:17:11.000Z | tests/examples/minlplib/sfacloc1_4_80.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | null | null | null | # MINLP written by GAMS Convert at 04/21/18 13:54:10
#
# Equation counts
# Total E G L N X C B
# 2235 106 2110 19 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | 35.545585 | 118 | 0.604196 | 31,684 | 173,889 | 3.315964 | 0.089256 | 0.297688 | 0.31838 | 0.028983 | 0.808629 | 0.765902 | 0.723994 | 0.567041 | 0.50149 | 0.195559 | 0 | 0.296595 | 0.19532 | 173,889 | 4,891 | 119 | 35.552852 | 0.454258 | 0.003911 | 0 | 0.003037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.00038 | 0 | 0.00038 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 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 |
485bfb09788bacd2c5ffd0f1e69ee28ffc5daf91 | 23,499 | py | Python | tests/fsaTests.py | dainiuskreivenas/rbs | 1d371963ccd64976b3f0603dead891f51996cfb1 | [
"MIT"
] | 1 | 2021-10-04T17:44:04.000Z | 2021-10-04T17:44:04.000Z | tests/fsaTests.py | dainiuskreivenas/rbs | 1d371963ccd64976b3f0603dead891f51996cfb1 | [
"MIT"
] | 12 | 2019-07-16T08:31:50.000Z | 2019-11-19T17:58:53.000Z | tests/fsaTests.py | dainiuskreivenas/rbs | 1d371963ccd64976b3f0603dead891f51996cfb1 | [
"MIT"
] | null | null | null | #import pyNN.spiNNaker as sim
import pyNN.nest as sim
from .. import FSAHelperFunctions
from .. import NealCoverFunctions
simName = "nest"
runtime = 1000
def createNeurons(fsa):
ca = sim.Population(fsa.CA_SIZE, sim.IF_cond_exp, fsa.CELL_PARAMS, label = "CA")
fsa.makeCA(ca, 0)
ca2 = sim.Population(fsa.CA_S... | 28.142515 | 108 | 0.657219 | 3,027 | 23,499 | 5.025107 | 0.034688 | 0.041417 | 0.076918 | 0.142003 | 0.92558 | 0.918349 | 0.902045 | 0.902045 | 0.899941 | 0.892643 | 0 | 0.046372 | 0.203455 | 23,499 | 834 | 109 | 28.176259 | 0.766268 | 0.001192 | 0 | 0.829392 | 0 | 0 | 0.043631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.005068 | null | null | 0.266892 | 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 |
6f915f5768c864bd648907fd51932f4176fdc3c1 | 24,177 | py | Python | python/baxter_bon_appetit/src/baxter_essentials/baxter_jacobian.py | san99tiago/tesis | 70e452cfa9eedbbe64347e2bd8826bb295473d01 | [
"MIT"
] | 4 | 2021-03-09T19:59:50.000Z | 2021-03-31T01:28:24.000Z | python/baxter_bon_appetit/src/baxter_essentials/baxter_jacobian.py | san99tiago/tesis | 70e452cfa9eedbbe64347e2bd8826bb295473d01 | [
"MIT"
] | null | null | null | python/baxter_bon_appetit/src/baxter_essentials/baxter_jacobian.py | san99tiago/tesis | 70e452cfa9eedbbe64347e2bd8826bb295473d01 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Built-in imports
import math
# General module imports
import numpy as np
class BaxterJacobian:
"""
Calculate Baxter's Jacobian from w0 to tool.
Remark: the expression used was calculated based on the article
"Baxter Humanoid Robot Kinematics" from Ohio University.
... | 416.844828 | 3,902 | 0.382181 | 3,071 | 24,177 | 2.993813 | 0.029306 | 0.291603 | 0.238851 | 0.134871 | 0.8933 | 0.890907 | 0.885578 | 0.881879 | 0.875897 | 0.875897 | 0 | 0.157654 | 0.440129 | 24,177 | 57 | 3,903 | 424.157895 | 0.521572 | 0.029119 | 0 | 0 | 0 | 0 | 0.001238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
6fb95af500ac2115f3b94cb0e61e6909cff1a983 | 5,553 | py | Python | models/DIF_net.py | MrHuff/DIF-NLDL | 4d032cb0522efd62ea754a6c5d02b7015ef2f62b | [
"MIT"
] | null | null | null | models/DIF_net.py | MrHuff/DIF-NLDL | 4d032cb0522efd62ea754a6c5d02b7015ef2f62b | [
"MIT"
] | null | null | null | models/DIF_net.py | MrHuff/DIF-NLDL | 4d032cb0522efd62ea754a6c5d02b7015ef2f62b | [
"MIT"
] | null | null | null |
from models.networks import IntroVAE
from IAF.IAF import IAF_flow
import torch
from models.networks_v2 import *
from IAF.layers.utils import accumulate_kl_div, reset_kl_div
class DIF_net(IntroVAE):
def __init__(self,cdim=3,
hdim=512,
channels=[64, 128, 256, 512, 512, 5... | 30.679558 | 106 | 0.570863 | 782 | 5,553 | 3.845269 | 0.102302 | 0.053209 | 0.031926 | 0.025939 | 0.9428 | 0.9428 | 0.9428 | 0.9428 | 0.9428 | 0.9428 | 0 | 0.033062 | 0.313704 | 5,553 | 181 | 107 | 30.679558 | 0.75597 | 0 | 0 | 0.92517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176871 | false | 0 | 0.034014 | 0.013605 | 0.414966 | 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 |
6feb17a612343c1502c60175ffd32cedf39f7e6e | 75 | py | Python | agents/common/__init__.py | ksang/Voigt-Kampff | 21f9ad172e5edf0fe50479eba816413f477b4c70 | [
"MIT"
] | 3 | 2018-07-28T09:21:45.000Z | 2020-04-11T15:01:12.000Z | agents/common/__init__.py | ksang/Voigt-Kampff | 21f9ad172e5edf0fe50479eba816413f477b4c70 | [
"MIT"
] | null | null | null | agents/common/__init__.py | ksang/Voigt-Kampff | 21f9ad172e5edf0fe50479eba816413f477b4c70 | [
"MIT"
] | null | null | null | from agents.common.model import Linear
from agents.common.model import CNN
| 25 | 38 | 0.84 | 12 | 75 | 5.25 | 0.583333 | 0.31746 | 0.507937 | 0.666667 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106667 | 75 | 2 | 39 | 37.5 | 0.940299 | 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 | 1 | 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 | 9 |
6ff57e855e36be170e538a562c47da7085f367a1 | 34,531 | py | Python | code/code_annotation/lib/model/EncoderDecoder.py | sunlab-osu/CoaCor | e5df8fd38830590b9f132dd68bc26c630e41e509 | [
"Apache-2.0"
] | 30 | 2019-03-08T05:11:32.000Z | 2021-12-09T12:11:29.000Z | code/code_annotation/lib/model/EncoderDecoder.py | sunlab-osu/CoaCor | e5df8fd38830590b9f132dd68bc26c630e41e509 | [
"Apache-2.0"
] | 1 | 2020-04-18T14:46:48.000Z | 2020-06-17T20:08:37.000Z | code/code_annotation/lib/model/EncoderDecoder.py | sunlab-osu/CoaCor | e5df8fd38830590b9f132dd68bc26c630e41e509 | [
"Apache-2.0"
] | 4 | 2019-07-02T05:25:11.000Z | 2021-05-27T12:52:21.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from torch.nn.utils.rnn import pad_packed_sequence as unpack
from torch.nn.utils.rnn import pack_padded_sequence as pack
# import gensim
import numpy as np
import lib
import sys
import re
import pdb
class Encoder_W2V... | 39.782258 | 144 | 0.605861 | 4,464 | 34,531 | 4.510529 | 0.058692 | 0.023839 | 0.012416 | 0.01182 | 0.824385 | 0.808393 | 0.79116 | 0.781723 | 0.768165 | 0.753464 | 0 | 0.010617 | 0.277142 | 34,531 | 867 | 145 | 39.828143 | 0.796042 | 0.12302 | 0 | 0.747218 | 0 | 0 | 0.003082 | 0.003082 | 0 | 0 | 0 | 0 | 0.007949 | 1 | 0.085851 | false | 0 | 0.017488 | 0.004769 | 0.197138 | 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 |
b5033db29996672c083ed0202c7201efb9159b24 | 30,443 | py | Python | sdk/python/pulumi_azure/sql/failover_group.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2018-06-18T00:19:44.000Z | 2022-02-20T05:32:57.000Z | sdk/python/pulumi_azure/sql/failover_group.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 663 | 2018-06-18T21:08:46.000Z | 2022-03-31T20:10:11.000Z | sdk/python/pulumi_azure/sql/failover_group.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-07-19T22:37:38.000Z | 2022-03-14T10:56:26.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 48.553429 | 216 | 0.680452 | 3,355 | 30,443 | 5.935618 | 0.063785 | 0.087828 | 0.055539 | 0.042684 | 0.891182 | 0.88149 | 0.856182 | 0.843929 | 0.832932 | 0.817666 | 0 | 0.003932 | 0.223105 | 30,443 | 626 | 217 | 48.63099 | 0.838062 | 0.332162 | 0 | 0.68997 | 1 | 0 | 0.17414 | 0.115699 | 0 | 0 | 0 | 0 | 0 | 1 | 0.161094 | false | 0.00304 | 0.021277 | 0 | 0.279635 | 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 |
d200ca2e203fa3f3e32cd70794d14a33d7e2d04b | 3,710 | py | Python | New folder/Assignment4.py | piyushparastiwari/python-project | 5dba0ef4e77f1d2528f510327de4224b60b1d4ba | [
"Apache-2.0"
] | null | null | null | New folder/Assignment4.py | piyushparastiwari/python-project | 5dba0ef4e77f1d2528f510327de4224b60b1d4ba | [
"Apache-2.0"
] | null | null | null | New folder/Assignment4.py | piyushparastiwari/python-project | 5dba0ef4e77f1d2528f510327de4224b60b1d4ba | [
"Apache-2.0"
] | null | null | null | Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> x=6
>>> if x%2==0:
print("Even no.")
else:
print("Odd no.")
Even no.
>>> age=30
>>> gender='Male'
>>> sal=60000
>>> if age>30:
elif gender=... | 19.123711 | 93 | 0.618059 | 567 | 3,710 | 4.044092 | 0.17284 | 0.10205 | 0.104666 | 0.140864 | 0.761884 | 0.744876 | 0.72089 | 0.72089 | 0.72089 | 0.691234 | 0 | 0.081453 | 0.23558 | 3,710 | 193 | 94 | 19.222798 | 0.72708 | 0 | 0 | 0.700599 | 0 | 0 | 0.227182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.347305 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 7 |
d26647baab13efb4ccb6a4cc5be8f666b6473a68 | 1,181 | py | Python | app/main/views.py | Nabuuso/News-Catchup | ec30f213ec377130f500a4366b6ca30ae68e658f | [
"MIT"
] | null | null | null | app/main/views.py | Nabuuso/News-Catchup | ec30f213ec377130f500a4366b6ca30ae68e658f | [
"MIT"
] | null | null | null | app/main/views.py | Nabuuso/News-Catchup | ec30f213ec377130f500a4366b6ca30ae68e658f | [
"MIT"
] | null | null | null | from flask import render_template
from . import main
from ..requests import get_sources
# #@main.route('/')
# def index1():
# '''
# View root page function that returns the index page and its data
# '''
# # Getting popular movie
# business_source = get_sources()
# # print(business_sour... | 25.673913 | 77 | 0.679086 | 150 | 1,181 | 5.2 | 0.3 | 0.107692 | 0.102564 | 0.088462 | 0.805128 | 0.771795 | 0.771795 | 0.771795 | 0.771795 | 0.771795 | 0 | 0.001066 | 0.205758 | 1,181 | 45 | 78 | 26.244444 | 0.83049 | 0.564776 | 0 | 0 | 0 | 0 | 0.219409 | 0.054852 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
d26c97bf9130a2e759ad269e4407c36c387349b9 | 9,786 | py | Python | Client_4/model_utils.py | karavik18/Federated_Learning_for_Missing_MRI_Sequence | 42924f8475f354e6b429d05867f99530aa485b96 | [
"Apache-2.0"
] | 1 | 2021-08-25T13:36:26.000Z | 2021-08-25T13:36:26.000Z | Client_4/model_utils.py | karavik18/Federated_Learning_for_Reconstruction_of_Missing_MR_Sequence | 42924f8475f354e6b429d05867f99530aa485b96 | [
"Apache-2.0"
] | null | null | null | Client_4/model_utils.py | karavik18/Federated_Learning_for_Reconstruction_of_Missing_MR_Sequence | 42924f8475f354e6b429d05867f99530aa485b96 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from torchvision import models
class PreNet(nn.Module):
def __init__(self):
super(PreNet,self).__init__()
self.conv1 = nn.Conv2d(4, 8, 3, padding = 1)
self.act1 = nn.LeakyReLU(0.2, inplace=False)
self.conv2 = nn.Con... | 51.505263 | 78 | 0.557531 | 1,293 | 9,786 | 4.186388 | 0.07966 | 0.063551 | 0.056531 | 0.043229 | 0.913541 | 0.913541 | 0.892666 | 0.861999 | 0.849806 | 0.849806 | 0 | 0.124909 | 0.300531 | 9,786 | 189 | 79 | 51.777778 | 0.665888 | 0 | 0 | 0.806818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.022727 | 0 | 0.113636 | 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 |
9641bf1f38b0a6af53ba536dc84fa8c30eb6a0cc | 732 | py | Python | tests/test_provider_cloudknox_cloudknox.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | tests/test_provider_cloudknox_cloudknox.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | tests/test_provider_cloudknox_cloudknox.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # tests/test_provider_cloudknox_cloudknox.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:14:14 UTC)
def test_provider_import():
import terrascript.provider.cloudknox.cloudknox
def test_datasource_import():
from terrascript.data.cloudknox.cloudknox import cloudknox_role_policy
# TODO: Sh... | 29.28 | 80 | 0.756831 | 96 | 732 | 5.645833 | 0.583333 | 0.199262 | 0.191882 | 0.204797 | 0.158672 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024077 | 0.148907 | 732 | 24 | 81 | 30.5 | 0.845907 | 0.70082 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0.5 | true | 0 | 1 | 0 | 1.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 8 |
9658dbb05f5a461f21df7919c3a62bc3162b3133 | 3,524 | py | Python | grr/test/grr_response_test/end_to_end_tests/tests/transfer.py | tsehori/grr | 048506f22f74642bfe61749069a45ddf496fdab3 | [
"Apache-2.0"
] | 1 | 2021-07-24T17:22:50.000Z | 2021-07-24T17:22:50.000Z | grr/test/grr_response_test/end_to_end_tests/tests/transfer.py | tsehori/grr | 048506f22f74642bfe61749069a45ddf496fdab3 | [
"Apache-2.0"
] | 44 | 2021-05-14T22:49:24.000Z | 2022-03-13T21:54:02.000Z | grr/test/grr_response_test/end_to_end_tests/tests/transfer.py | tsehori/grr | 048506f22f74642bfe61749069a45ddf496fdab3 | [
"Apache-2.0"
] | 2 | 2022-02-25T08:34:51.000Z | 2022-03-16T17:29:44.000Z | #!/usr/bin/env python
"""End to end tests for transfer flows."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from grr_response_test.end_to_end_tests import test_base
class TestTransferLinux(test_base.AbstractFileTransferTest):
"""Test GetFile on Li... | 30.119658 | 74 | 0.720488 | 425 | 3,524 | 5.882353 | 0.216471 | 0.0864 | 0.09 | 0.1044 | 0.8052 | 0.7608 | 0.7068 | 0.7068 | 0.7068 | 0.6892 | 0 | 0.001015 | 0.161464 | 3,524 | 116 | 75 | 30.37931 | 0.845008 | 0.082577 | 0 | 0.739726 | 0 | 0 | 0.102524 | 0.031162 | 0 | 0 | 0 | 0 | 0.041096 | 1 | 0.082192 | false | 0 | 0.054795 | 0 | 0.219178 | 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 |
96627edf5185a45caf15d2e0b3c082b3399168fb | 136,559 | py | Python | hydrus/test/TestClientTags.py | Asday/hydrus | a09ab839633661f446612a92b680bb8118a46b39 | [
"WTFPL"
] | null | null | null | hydrus/test/TestClientTags.py | Asday/hydrus | a09ab839633661f446612a92b680bb8118a46b39 | [
"WTFPL"
] | null | null | null | hydrus/test/TestClientTags.py | Asday/hydrus | a09ab839633661f446612a92b680bb8118a46b39 | [
"WTFPL"
] | null | null | null | import collections
import unittest
from hydrus.core import HydrusConstants as HC
from hydrus.core import HydrusData
from hydrus.core import HydrusGlobals as HG
from hydrus.core import HydrusTags
from hydrus.core import HydrusText
from hydrus.external import SystemPredicateParser
from hydrus.client import ClientConst... | 65.495923 | 336 | 0.70579 | 14,275 | 136,559 | 6.396427 | 0.031734 | 0.087067 | 0.059107 | 0.06858 | 0.935143 | 0.917697 | 0.906033 | 0.880844 | 0.868129 | 0.855677 | 0 | 0.007795 | 0.202425 | 136,559 | 2,084 | 337 | 65.527351 | 0.830548 | 0.000249 | 0 | 0.628592 | 0 | 0 | 0.088927 | 0 | 0 | 0 | 0 | 0 | 0.402299 | 1 | 0.023707 | false | 0 | 0.024425 | 0 | 0.051006 | 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 |
737ec87e3c0e0dead81276c4cb3019c85a79510f | 53,206 | py | Python | vrchatapi/model/api_config.py | vrchatapi/vrchatapi-python | 996b7ddf2914059f1fd4e5def5e3555e678634c0 | [
"MIT"
] | 8 | 2021-08-25T02:35:30.000Z | 2022-03-28T18:11:58.000Z | vrchatapi/model/api_config.py | vrchatapi/vrchatapi-python | 996b7ddf2914059f1fd4e5def5e3555e678634c0 | [
"MIT"
] | 1 | 2022-03-18T20:29:30.000Z | 2022-03-18T20:35:05.000Z | vrchatapi/model/api_config.py | vrchatapi/vrchatapi-python | 996b7ddf2914059f1fd4e5def5e3555e678634c0 | [
"MIT"
] | 1 | 2022-01-11T10:49:12.000Z | 2022-01-11T10:49:12.000Z | """
VRChat API Documentation
The version of the OpenAPI document: 1.6.7
Contact: me@ruby.js.org
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from vrchatapi.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
... | 58.468132 | 1,197 | 0.662858 | 6,219 | 53,206 | 5.321917 | 0.085062 | 0.051002 | 0.027193 | 0.01837 | 0.848838 | 0.7969 | 0.7504 | 0.74043 | 0.737167 | 0.735807 | 0 | 0.019148 | 0.260892 | 53,206 | 909 | 1,198 | 58.532453 | 0.822479 | 0.378284 | 0 | 0.5 | 1 | 0 | 0.233748 | 0.117457 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009934 | false | 0.003311 | 0.024834 | 0.001656 | 0.054636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
73ce3536add53322859b0781ef6fbceac84102e0 | 146 | py | Python | demo_scripts/app.py | groverpr/aws-fraud-detector-samples | a1f178ee4389416b93750abb1db622f74a6b3cb4 | [
"MIT-0"
] | null | null | null | demo_scripts/app.py | groverpr/aws-fraud-detector-samples | a1f178ee4389416b93750abb1db622f74a6b3cb4 | [
"MIT-0"
] | null | null | null | demo_scripts/app.py | groverpr/aws-fraud-detector-samples | a1f178ee4389416b93750abb1db622f74a6b3cb4 | [
"MIT-0"
] | 1 | 2022-01-25T20:48:22.000Z | 2022-01-25T20:48:22.000Z | from click_web import create_click_web_app
import create_afd_resources
app = create_click_web_app(create_afd_resources, create_afd_resources.cli) | 36.5 | 74 | 0.89726 | 24 | 146 | 4.916667 | 0.375 | 0.20339 | 0.457627 | 0.288136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068493 | 146 | 4 | 74 | 36.5 | 0.867647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
fb5bcee324d2c1b4afd51fd4cb18ee1f4c93732e | 96,345 | py | Python | cblue/trainer/train.py | dfhby0/CBLUE | 36bdb52f17c4379d4a5f8b407890ba294017b5e2 | [
"Apache-2.0"
] | 293 | 2021-06-07T06:04:37.000Z | 2022-03-28T09:38:28.000Z | cblue/trainer/train.py | dfhby0/CBLUE | 36bdb52f17c4379d4a5f8b407890ba294017b5e2 | [
"Apache-2.0"
] | 6 | 2021-06-11T09:50:15.000Z | 2022-03-18T07:33:56.000Z | cblue/trainer/train.py | dfhby0/CBLUE | 36bdb52f17c4379d4a5f8b407890ba294017b5e2 | [
"Apache-2.0"
] | 61 | 2021-06-07T06:38:42.000Z | 2022-03-30T07:16:46.000Z | import os
import json
import numpy as np
import torch
import torch.nn as nn
from transformers import AdamW, get_linear_schedule_with_warmup
from torch.utils.data import Dataset, DataLoader
from cblue.utils import seed_everything, ProgressBar, TokenRematch
from cblue.metrics import sts_metric, qic_metric, qqr_metric, q... | 46.253 | 166 | 0.572578 | 11,072 | 96,345 | 4.705022 | 0.026824 | 0.071409 | 0.043959 | 0.070334 | 0.900718 | 0.8849 | 0.87369 | 0.863055 | 0.852766 | 0.841095 | 0 | 0.006385 | 0.322082 | 96,345 | 2,082 | 167 | 46.275216 | 0.791209 | 0.004775 | 0 | 0.838821 | 0 | 0 | 0.079482 | 0.009492 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040439 | false | 0.001733 | 0.006355 | 0.001155 | 0.070479 | 0.000578 | 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 |
fba203c9a5649d703fa3d565aa12bfb8da0bdbb2 | 26,655 | py | Python | tests/integrate_test/iiss/prevote/test_iiss_stake.py | bayeshack2016/icon-service | 36cab484d2e41548d7f2f74526f127ee3a4423fc | [
"Apache-2.0"
] | 52 | 2018-08-24T02:28:43.000Z | 2021-07-06T04:44:22.000Z | tests/integrate_test/iiss/prevote/test_iiss_stake.py | bayeshack2016/icon-service | 36cab484d2e41548d7f2f74526f127ee3a4423fc | [
"Apache-2.0"
] | 62 | 2018-09-17T06:59:16.000Z | 2021-12-15T06:02:51.000Z | tests/integrate_test/iiss/prevote/test_iiss_stake.py | bayeshack2016/icon-service | 36cab484d2e41548d7f2f74526f127ee3a4423fc | [
"Apache-2.0"
] | 35 | 2018-09-14T02:42:10.000Z | 2022-02-05T10:34:46.000Z | # -*- coding: utf-8 -*-
# Copyright 2018 ICON Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 43.768473 | 118 | 0.624461 | 3,052 | 26,655 | 5.166448 | 0.073067 | 0.074581 | 0.075025 | 0.044394 | 0.829274 | 0.808346 | 0.785134 | 0.775178 | 0.768645 | 0.768138 | 0 | 0.018462 | 0.284712 | 26,655 | 608 | 119 | 43.840461 | 0.80856 | 0.078747 | 0 | 0.755924 | 0 | 0 | 0.046243 | 0.003026 | 0 | 0 | 0 | 0 | 0.14455 | 1 | 0.016588 | false | 0 | 0.014218 | 0 | 0.035545 | 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 |
fba4276d22a96a19de78a0042951c4a04ac5f7ea | 1,467 | py | Python | AdventOfCode2019Day03/test/test_day03.py | bdlepla/AdventOfCode2019 | 27a8289bae8510f8af457658b2fa10d5345f9426 | [
"Unlicense"
] | null | null | null | AdventOfCode2019Day03/test/test_day03.py | bdlepla/AdventOfCode2019 | 27a8289bae8510f8af457658b2fa10d5345f9426 | [
"Unlicense"
] | null | null | null | AdventOfCode2019Day03/test/test_day03.py | bdlepla/AdventOfCode2019 | 27a8289bae8510f8af457658b2fa10d5345f9426 | [
"Unlicense"
] | null | null | null | def test_solve_part_1():
import day03
raw_lines = """
R8,U5,L5,D3
U7,R6,D4,L4
""".split("\n")
trimmed_lines = map(lambda s: s.strip(), raw_lines)
lines = list(filter(None, trimmed_lines))
day03 = day03.Day03(lines)
actual = day03.solve_part_1()
expected = 6
assert exp... | 28.764706 | 55 | 0.620995 | 218 | 1,467 | 4.013761 | 0.252294 | 0.082286 | 0.054857 | 0.073143 | 0.941714 | 0.941714 | 0.941714 | 0.818286 | 0.818286 | 0.818286 | 0 | 0.134222 | 0.233129 | 1,467 | 51 | 56 | 28.764706 | 0.643556 | 0 | 0 | 0.833333 | 0 | 0.041667 | 0.205722 | 0.107629 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 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 |
fbc27064c5b1571af1925f1b23fe88e0ccfe8c87 | 3,314 | py | Python | manage.py | volod/gdelt20utils | 4fdcc1803d4ef300d4d30857752faa1c9dcb63d0 | [
"Apache-2.0"
] | null | null | null | manage.py | volod/gdelt20utils | 4fdcc1803d4ef300d4d30857752faa1c9dcb63d0 | [
"Apache-2.0"
] | null | null | null | manage.py | volod/gdelt20utils | 4fdcc1803d4ef300d4d30857752faa1c9dcb63d0 | [
"Apache-2.0"
] | null | null | null | import click
from gdelt20utils.common import constants
from gdelt20utils.common.gd_config import config
from gdelt20utils.extract.run import run_extract
from gdelt20utils.load.run import run_load
@click.group(help="Extract")
@click.pass_context
def cli(ctx):
ctx.obj.update(config)
@cli.command("extract", help=... | 33.816327 | 101 | 0.602595 | 370 | 3,314 | 5.213514 | 0.183784 | 0.074132 | 0.085537 | 0.078797 | 0.782271 | 0.782271 | 0.782271 | 0.760498 | 0.760498 | 0.760498 | 0 | 0.014712 | 0.282136 | 3,314 | 97 | 102 | 34.164948 | 0.796133 | 0.0172 | 0 | 0.738636 | 0 | 0 | 0.165591 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.034091 | false | 0.034091 | 0.056818 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
837d5c64bd96c47f04f0f162592dcb9e30cb89e4 | 1,424 | py | Python | tests/core/shh-module/test_shh_filter.py | happyuc-project/webu.py | 5a01124fc84d74df09a33d9dabe88b704cd5b6c6 | [
"MIT"
] | null | null | null | tests/core/shh-module/test_shh_filter.py | happyuc-project/webu.py | 5a01124fc84d74df09a33d9dabe88b704cd5b6c6 | [
"MIT"
] | null | null | null | tests/core/shh-module/test_shh_filter.py | happyuc-project/webu.py | 5a01124fc84d74df09a33d9dabe88b704cd5b6c6 | [
"MIT"
] | null | null | null | import time
def test_shh_sync_filter(webu, skip_if_testrpc):
skip_if_testrpc(webu)
topic = webu.toHex(text="test")
shh_filter = webu.shh.filter({"topics": [topic]})
payloads = []
payloads.append(str.encode("payload1"))
webu.shh.post({
"topics": [topic],
"payload": webu.toHex(t... | 25.890909 | 53 | 0.630618 | 175 | 1,424 | 4.977143 | 0.211429 | 0.128588 | 0.089552 | 0.105626 | 0.851894 | 0.851894 | 0.851894 | 0.851894 | 0.851894 | 0.760046 | 0 | 0.012534 | 0.21559 | 1,424 | 54 | 54 | 26.37037 | 0.767234 | 0 | 0 | 0.863636 | 0 | 0 | 0.082865 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.045455 | false | 0 | 0.022727 | 0 | 0.068182 | 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 |
8396aec6cdc039aca71f59317d7f8329e0b7d8dc | 492 | py | Python | client/libsinan/sinexceptions.py | asceth/sinan | 289e0d18b7cf97b9c98a978741c6b17d91d6c254 | [
"MIT"
] | 1 | 2016-05-09T00:28:00.000Z | 2016-05-09T00:28:00.000Z | client/libsinan/sinexceptions.py | asceth/sinan | 289e0d18b7cf97b9c98a978741c6b17d91d6c254 | [
"MIT"
] | null | null | null | client/libsinan/sinexceptions.py | asceth/sinan | 289e0d18b7cf97b9c98a978741c6b17d91d6c254 | [
"MIT"
] | null | null | null | class SinanError(Exception):
""" A very simple exception class to use as a base
exception class for the sinan client """
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
class ParseError(SinanError):
""" A very simple exception class to use... | 22.363636 | 54 | 0.648374 | 66 | 492 | 4.590909 | 0.333333 | 0.178218 | 0.072607 | 0.132013 | 0.838284 | 0.838284 | 0.838284 | 0.838284 | 0.838284 | 0.838284 | 0 | 0 | 0.26626 | 492 | 21 | 55 | 23.428571 | 0.839335 | 0.341463 | 0 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 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 | 1 | 0 | 0 | 0 | 9 |
839b24ac96a4c82108ad8c844c46ee4fdacc28c2 | 88 | py | Python | qiwi_handler/qiwi_handler/loader/__init__.py | bezumnui/qiwi_handler | 9562b1a8c8fcc1910dbc722278cb6f5af313fa02 | [
"MIT"
] | null | null | null | qiwi_handler/qiwi_handler/loader/__init__.py | bezumnui/qiwi_handler | 9562b1a8c8fcc1910dbc722278cb6f5af313fa02 | [
"MIT"
] | null | null | null | qiwi_handler/qiwi_handler/loader/__init__.py | bezumnui/qiwi_handler | 9562b1a8c8fcc1910dbc722278cb6f5af313fa02 | [
"MIT"
] | null | null | null | from qiwi_handler.loader.do_request import *
from qiwi_handler.loader.converter import * | 44 | 44 | 0.852273 | 13 | 88 | 5.538462 | 0.615385 | 0.222222 | 0.416667 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079545 | 88 | 2 | 45 | 44 | 0.888889 | 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 |
83ae8a04e1be7a1bfda53476a34faa6b892efd35 | 276 | py | Python | geomstats/backend/numpy_random.py | effigies/geomstats | 0d6979a15cefcf98f7f92bade9d0e4abee3dde14 | [
"MIT"
] | 1 | 2018-05-23T20:18:23.000Z | 2018-05-23T20:18:23.000Z | geomstats/backend/numpy_random.py | leslie-chu/geomstats | fbed39b47b16eab4a48179106e8d0c1a5891243d | [
"MIT"
] | null | null | null | geomstats/backend/numpy_random.py | leslie-chu/geomstats | fbed39b47b16eab4a48179106e8d0c1a5891243d | [
"MIT"
] | null | null | null | """Numpy based random backend."""
import numpy as np
def rand(*args, **kwargs):
return np.random.rand(*args, **kwargs)
def randint(*args, **kwargs):
return np.random.randint(*args, **kwargs)
def seed(*args, **kwargs):
return np.random.seed(*args, **kwargs)
| 17.25 | 45 | 0.648551 | 38 | 276 | 4.710526 | 0.368421 | 0.335196 | 0.268156 | 0.301676 | 0.402235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 276 | 15 | 46 | 18.4 | 0.774892 | 0.097826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | true | 0 | 0.142857 | 0.428571 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 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 |
83b7da992b40ecf38f69b01a0036fdc01f402635 | 7,988 | py | Python | surprise/mySimilarities.py | filippoboscoUniTn/SurpriseMod | 776fdb05a8cffa8e065f53f64166ca862db7de77 | [
"BSD-3-Clause"
] | null | null | null | surprise/mySimilarities.py | filippoboscoUniTn/SurpriseMod | 776fdb05a8cffa8e065f53f64166ca862db7de77 | [
"BSD-3-Clause"
] | null | null | null | surprise/mySimilarities.py | filippoboscoUniTn/SurpriseMod | 776fdb05a8cffa8e065f53f64166ca862db7de77 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import numpy as np
from six.moves import range
from six import iteritems
import h5py
def batched_cosine(n_x, yr, xr, min_support, batch_size, file_path, group_name, dset_name, *args, **kwargs):
try:
... | 42.26455 | 166 | 0.537682 | 1,163 | 7,988 | 3.450559 | 0.091144 | 0.081984 | 0.069773 | 0.065786 | 0.854971 | 0.850735 | 0.844256 | 0.82158 | 0.808124 | 0.791677 | 0 | 0.008975 | 0.344392 | 7,988 | 188 | 167 | 42.489362 | 0.757304 | 0.043941 | 0 | 0.746835 | 0 | 0 | 0.011536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025316 | false | 0 | 0.031646 | 0 | 0.082278 | 0.006329 | 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 |
83bb1ca143e17c7fef9e84d87f94f2d1e81cf101 | 1,282 | py | Python | python/problem8.py | shubhamoy/project-euler-solutions | 9af99c4371ff565d5d8b13fe2fbaaafa5a29da51 | [
"MIT"
] | 1 | 2016-05-14T15:58:03.000Z | 2016-05-14T15:58:03.000Z | python/problem8.py | shubhamoy/project-euler-solutions | 9af99c4371ff565d5d8b13fe2fbaaafa5a29da51 | [
"MIT"
] | null | null | null | python/problem8.py | shubhamoy/project-euler-solutions | 9af99c4371ff565d5d8b13fe2fbaaafa5a29da51 | [
"MIT"
] | null | null | null | #!/usr/bin/python
def pod(val):
prod = 1
for i in range(len(val)):
prod = prod * int(val[i])
return prod
x = "731671765313306249192251196744265747423553491949349698352031277450632623957831801698480186947885184385861560789112949495459501737958331952853208805511125406987471585238630507156932909632952274430435576689... | 67.473684 | 1,006 | 0.906396 | 58 | 1,282 | 20.034483 | 0.448276 | 0.010327 | 0.015491 | 0.028399 | 0.025818 | 0.025818 | 0 | 0 | 0 | 0 | 0 | 0.826623 | 0.050702 | 1,282 | 18 | 1,007 | 71.222222 | 0.128184 | 0.012481 | 0 | 0 | 0 | 0 | 0.797628 | 0.790514 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.071429 | 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 |
83ec9b7c9a3477b48326ee72edb0ec0c03ee4889 | 11,336 | py | Python | mkdocs_awesome_pages_plugin/tests/navigation/test_nav.py | Owen-Liuyuxuan/mkdocs-awesome-pages-plugin | 961363989877cbe4e4f9d0acda9ff22e352be9e1 | [
"MIT"
] | 226 | 2018-02-07T09:58:36.000Z | 2022-03-31T16:33:54.000Z | mkdocs_awesome_pages_plugin/tests/navigation/test_nav.py | Owen-Liuyuxuan/mkdocs-awesome-pages-plugin | 961363989877cbe4e4f9d0acda9ff22e352be9e1 | [
"MIT"
] | 55 | 2018-02-07T10:36:38.000Z | 2022-03-16T03:23:47.000Z | mkdocs_awesome_pages_plugin/tests/navigation/test_nav.py | Owen-Liuyuxuan/mkdocs-awesome-pages-plugin | 961363989877cbe4e4f9d0acda9ff22e352be9e1 | [
"MIT"
] | 30 | 2018-05-01T17:27:03.000Z | 2022-03-04T07:33:28.000Z | from .base import NavigationTestCase
from ...meta import Meta, MetaNavItem, MetaNavRestItem
from ...navigation import NavEntryNotFound
class TestNav(NavigationTestCase):
def test_all_listed(self):
navigation = self.createAwesomeNavigation([
self.page('1'),
self.page('2'),
... | 29.91029 | 61 | 0.447159 | 992 | 11,336 | 5.051411 | 0.063508 | 0.191579 | 0.05927 | 0.077829 | 0.924566 | 0.888046 | 0.88645 | 0.88645 | 0.874277 | 0.857513 | 0 | 0.025116 | 0.392378 | 11,336 | 378 | 62 | 29.989418 | 0.702381 | 0 | 0 | 0.867647 | 0 | 0 | 0.065367 | 0 | 0 | 0 | 0 | 0 | 0.094118 | 1 | 0.055882 | false | 0 | 0.008824 | 0 | 0.067647 | 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 |
e3ac3def2bea175a12f11df987353c0275b9c305 | 11,093 | py | Python | tests/unit/test_isolate.py | GitSoftwareNow/CPU-Manager-for-Kubernetes | 46988af8a5c005abeb6f68162035b7be632f76c9 | [
"Apache-2.0"
] | 1 | 2019-04-25T23:25:45.000Z | 2019-04-25T23:25:45.000Z | tests/unit/test_isolate.py | GitSoftwareNow/CPU-Manager-for-Kubernetes | 46988af8a5c005abeb6f68162035b7be632f76c9 | [
"Apache-2.0"
] | 1 | 2021-02-24T01:11:52.000Z | 2021-02-24T01:11:52.000Z | tests/unit/test_isolate.py | isabella232/CPU-Manager-for-Kubernetes | b92d994fedc734898f9852bb65fcd4cd2be55384 | [
"Apache-2.0"
] | null | null | null | from intel import isolate, config
from unittest.mock import patch, MagicMock
import pytest
import os
EXCL_ONE = [
{
"pool": "exclusive",
"socket": "0",
"cl": "0,11",
"tasks": ["123"]
}
]
SHAR_ONE = [
{
"pool": "shared",
"socket": "0",
"cl": "4,15,5... | 32.722714 | 77 | 0.611016 | 1,343 | 11,093 | 4.886821 | 0.106478 | 0.166844 | 0.222459 | 0.04693 | 0.807558 | 0.807558 | 0.783483 | 0.770684 | 0.770684 | 0.769465 | 0 | 0.023248 | 0.22059 | 11,093 | 338 | 78 | 32.819527 | 0.735832 | 0 | 0 | 0.586572 | 0 | 0 | 0.21464 | 0.042099 | 0 | 0 | 0 | 0 | 0.056537 | 1 | 0.077739 | false | 0 | 0.014134 | 0.014134 | 0.123675 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e3fedd54f35b58ab8701773f5d93dc85a0cd0515 | 244 | py | Python | tests/test_version.py | rpanderson/workflow-sandbox | f03ea46945decb683cb95afa6f835a83884dc05e | [
"BSD-3-Clause"
] | null | null | null | tests/test_version.py | rpanderson/workflow-sandbox | f03ea46945decb683cb95afa6f835a83884dc05e | [
"BSD-3-Clause"
] | 17 | 2020-05-07T00:59:33.000Z | 2021-12-12T03:55:14.000Z | tests/test_version.py | rpanderson/workflow-sandbox | f03ea46945decb683cb95afa6f835a83884dc05e | [
"BSD-3-Clause"
] | 2 | 2020-06-23T03:09:44.000Z | 2020-06-23T05:50:31.000Z | from pkg_resources import get_distribution
import workflow_sandbox
def test_version():
"""Check version against `pkg_resources` from `setuptools`."""
assert workflow_sandbox.__version__ == get_distribution('workflow_sandbox').version
| 30.5 | 87 | 0.795082 | 28 | 244 | 6.5 | 0.535714 | 0.247253 | 0.241758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114754 | 244 | 7 | 88 | 34.857143 | 0.842593 | 0.229508 | 0 | 0 | 0 | 0 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | true | 0 | 0.5 | 0 | 0.75 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
581d733e97eb87fc055b25e43cad0b2b5625ac13 | 24,216 | py | Python | tests/unit/dataactvalidator/test_c21_award_financial.py | dael-victoria-reyes/data-act-broker-backend | f83c7cad29cac24d95f45a262710dc1564de7dc1 | [
"CC0-1.0"
] | 1 | 2019-06-22T21:53:16.000Z | 2019-06-22T21:53:16.000Z | tests/unit/dataactvalidator/test_c21_award_financial.py | dael-victoria-reyes/data-act-broker-backend | f83c7cad29cac24d95f45a262710dc1564de7dc1 | [
"CC0-1.0"
] | null | null | null | tests/unit/dataactvalidator/test_c21_award_financial.py | dael-victoria-reyes/data-act-broker-backend | f83c7cad29cac24d95f45a262710dc1564de7dc1 | [
"CC0-1.0"
] | null | null | null | from random import randint
from tests.unit.dataactcore.factories.staging import AwardFinancialFactory
from tests.unit.dataactcore.factories.staging import ObjectClassProgramActivityFactory
from tests.unit.dataactvalidator.utils import number_of_errors, query_columns
_FILE = 'c21_award_financial'
_TAS = 'c21_award_fi... | 72.720721 | 108 | 0.769533 | 3,141 | 24,216 | 5.311047 | 0.036931 | 0.075531 | 0.074452 | 0.023738 | 0.959957 | 0.864704 | 0.802841 | 0.775267 | 0.765436 | 0.765436 | 0 | 0.112091 | 0.147877 | 24,216 | 332 | 109 | 72.939759 | 0.696341 | 0.013916 | 0 | 0.703226 | 0 | 0 | 0.35104 | 0.34278 | 0 | 0 | 0 | 0 | 0.009677 | 1 | 0.009677 | false | 0 | 0.012903 | 0 | 0.022581 | 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 |
54495868ab4b502b7abcd7bb22195b1eadfd324a | 15,188 | py | Python | data_gen.py | sashapodkopaev/chrome-robust-hypothesis-testing | e3a2655f4d94f3987e3d670c8b66fb99c8d0cb45 | [
"Apache-2.0"
] | null | null | null | data_gen.py | sashapodkopaev/chrome-robust-hypothesis-testing | e3a2655f4d94f3987e3d670c8b66fb99c8d0cb45 | [
"Apache-2.0"
] | null | null | null | data_gen.py | sashapodkopaev/chrome-robust-hypothesis-testing | e3a2655f4d94f3987e3d670c8b66fb99c8d0cb45 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pandas as pd
def generate_seq_from_gamma(num_of_obs, gamma_shape=25000, gamma_scale=0.1):
"""
Function that samples metric 1 for a given user
Parameters
----------
num_of_obs: int
number of observations for a given user
gamma_shape: float
... | 38.744898 | 123 | 0.662563 | 2,005 | 15,188 | 4.716209 | 0.101247 | 0.054146 | 0.065567 | 0.068105 | 0.808587 | 0.79558 | 0.785321 | 0.770093 | 0.762056 | 0.732551 | 0 | 0.008444 | 0.267053 | 15,188 | 391 | 124 | 38.84399 | 0.840999 | 0.346392 | 0 | 0.676692 | 1 | 0 | 0.015597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067669 | false | 0 | 0.015038 | 0 | 0.150376 | 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 |
545d98048e2dcc8a1e57a265df752d04bbad1fd4 | 6,499 | py | Python | src/motor1.py | Aeturnum7/Automate-AI-Chess | 6b691173ea716424017126c89bd0d0aa975e7d05 | [
"MIT"
] | 4 | 2019-06-26T10:09:50.000Z | 2020-11-21T07:55:59.000Z | src/motor1.py | Aeturnum7/Automate-AI-Chess | 6b691173ea716424017126c89bd0d0aa975e7d05 | [
"MIT"
] | 2 | 2019-06-27T22:52:43.000Z | 2019-10-02T17:48:45.000Z | src/motor1.py | Aeturnum7/Automate-AI-Chess | 6b691173ea716424017126c89bd0d0aa975e7d05 | [
"MIT"
] | 3 | 2019-06-30T18:40:22.000Z | 2019-10-16T09:42:56.000Z | import RPi.GPIO as GPIO
import time
in3 = 36
in2 = 32
in1 = 22
in4 = 38
out1 = in2
out2 = in3
out3 = in1
out4 = in4
i = 0
positive = 0
negative = 0
y = 0
slp = 0.001
enb=40
ena=18
GPIO.setmode(GPIO.BOARD)
GPIO.setup(enb, GPIO.OUT)
GPIO.output(enb, GPIO.HIGH)
GPIO.setup(ena, GPIO.OUT)
GPIO.output(ena, GPIO.HIGH)
GP... | 24.524528 | 44 | 0.436529 | 775 | 6,499 | 3.660645 | 0.086452 | 0.267889 | 0.139584 | 0.215721 | 0.88509 | 0.878745 | 0.865351 | 0.865351 | 0.854071 | 0.854071 | 0 | 0.055061 | 0.446684 | 6,499 | 264 | 45 | 24.617424 | 0.733871 | 0.078012 | 0 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.011111 | 0 | 0.027778 | 0 | 0 | 0 | 0 | null | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
54a549361d8656405a5287464b3ea174d1cb2439 | 3,106 | py | Python | voxel_globe/meta/migrations/0018_auto_20161111_1628.py | ngageoint/voxel-globe | 91f386de652b704942165889c10468b2c4cf4eec | [
"MIT"
] | 28 | 2015-07-27T23:57:24.000Z | 2020-04-05T15:10:52.000Z | voxel_globe/meta/migrations/0018_auto_20161111_1628.py | VisionSystemsInc/voxel_globe | 6eb3fca5586726428e9d914f7b730ca164c64a52 | [
"MIT"
] | 50 | 2016-02-11T15:50:22.000Z | 2016-10-27T22:38:27.000Z | voxel_globe/meta/migrations/0018_auto_20161111_1628.py | ngageoint/voxel-globe | 91f386de652b704942165889c10468b2c4cf4eec | [
"MIT"
] | 8 | 2015-07-27T19:22:03.000Z | 2021-01-04T09:44:48.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-11-11 16:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('meta', '0017_adding_image_products'),
]
operations = [
migrations.AlterFiel... | 32.354167 | 62 | 0.54604 | 261 | 3,106 | 6.344828 | 0.214559 | 0.193237 | 0.241546 | 0.280193 | 0.755435 | 0.755435 | 0.755435 | 0.755435 | 0.755435 | 0.724638 | 0 | 0.009929 | 0.31906 | 3,106 | 95 | 63 | 32.694737 | 0.77305 | 0.021893 | 0 | 0.727273 | 1 | 0 | 0.139044 | 0.008567 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022727 | 0 | 0.056818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 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 | 9 |
b70c6b66d0104b863b6003ebe238cb0a2560955c | 5,526 | py | Python | Tests/test_dis.py | tonybaloney/Pyjion | eb54f950ae9dae01c4738c1e8926681681c24b75 | [
"MIT"
] | 1,137 | 2020-10-14T10:24:18.000Z | 2022-03-31T09:37:03.000Z | Tests/test_dis.py | tonybaloney/Pyjion | eb54f950ae9dae01c4738c1e8926681681c24b75 | [
"MIT"
] | 310 | 2016-05-21T05:30:23.000Z | 2022-03-21T00:59:57.000Z | Tests/test_dis.py | tonybaloney/Pyjion | eb54f950ae9dae01c4738c1e8926681681c24b75 | [
"MIT"
] | 55 | 2016-05-20T06:11:28.000Z | 2022-03-15T12:48:00.000Z | from pyjion.dis import print_il, dis, dis_native
import pyjion
import sys
import pytest
import platform
def test_offsets():
def _f(x):
return x / 2
assert _f(4) == 2.0
offsets = pyjion.offsets(_f)
assert len(offsets) > 7
def test_dis(capsys):
def test_f():
numbers = (1, 2, 3, 4... | 44.564516 | 1,842 | 0.640065 | 1,002 | 5,526 | 3.471058 | 0.144711 | 0.294997 | 0.20184 | 0.055204 | 0.790397 | 0.761645 | 0.730017 | 0.712478 | 0.704428 | 0.665325 | 0 | 0.229709 | 0.172819 | 5,526 | 123 | 1,843 | 44.926829 | 0.531175 | 0 | 0 | 0.510638 | 0 | 0.117021 | 0.501267 | 0.453674 | 0 | 0 | 0 | 0 | 0.212766 | 1 | 0.170213 | false | 0 | 0.053191 | 0.010638 | 0.297872 | 0.031915 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
b74334522616a59602b0489150332a3bdda00f0a | 199 | py | Python | nmigen/hdl/ast.py | psumesh/nmigen | 7d611b8fc1d9e58853ff268ec38ff8f4131a9774 | [
"BSD-2-Clause"
] | 528 | 2020-01-28T18:21:00.000Z | 2021-12-09T06:27:51.000Z | nmigen/hdl/ast.py | psumesh/nmigen | 7d611b8fc1d9e58853ff268ec38ff8f4131a9774 | [
"BSD-2-Clause"
] | 360 | 2020-01-28T18:34:30.000Z | 2021-12-10T08:03:32.000Z | nmigen/hdl/ast.py | psumesh/nmigen | 7d611b8fc1d9e58853ff268ec38ff8f4131a9774 | [
"BSD-2-Clause"
] | 100 | 2020-02-06T21:55:46.000Z | 2021-11-25T19:20:44.000Z | from amaranth.hdl.ast import *
from amaranth.hdl.ast import __all__
import warnings
warnings.warn("instead of nmigen.hdl.ast, use amaranth.hdl.ast",
DeprecationWarning, stacklevel=2)
| 24.875 | 64 | 0.743719 | 27 | 199 | 5.333333 | 0.555556 | 0.166667 | 0.291667 | 0.25 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.165829 | 199 | 7 | 65 | 28.428571 | 0.861446 | 0 | 0 | 0 | 0 | 0 | 0.236181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 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 |
3f85728493379361b2c836f288699eeec472df90 | 113,793 | py | Python | msgraph-cli-extensions/v1_0/mail_v1_0/azext_mail_v1_0/generated/_params.py | thewahome/msgraph-cli | 33127d9efa23a0e5f5303c93242fbdbb73348671 | [
"MIT"
] | null | null | null | msgraph-cli-extensions/v1_0/mail_v1_0/azext_mail_v1_0/generated/_params.py | thewahome/msgraph-cli | 33127d9efa23a0e5f5303c93242fbdbb73348671 | [
"MIT"
] | null | null | null | msgraph-cli-extensions/v1_0/mail_v1_0/azext_mail_v1_0/generated/_params.py | thewahome/msgraph-cli | 33127d9efa23a0e5f5303c93242fbdbb73348671 | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause... | 81.572043 | 125 | 0.644099 | 14,713 | 113,793 | 4.843064 | 0.029158 | 0.091571 | 0.049708 | 0.047799 | 0.987187 | 0.986457 | 0.985657 | 0.984394 | 0.983426 | 0.982977 | 0 | 0.004498 | 0.239997 | 113,793 | 1,394 | 126 | 81.63056 | 0.819433 | 0.00471 | 0 | 0.919753 | 0 | 0.015432 | 0.497631 | 0.069549 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000772 | false | 0 | 0.010031 | 0 | 0.010802 | 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 |
b778fc6f6b0e273e4d19c5784d476f695a937e1e | 5,385 | py | Python | tests/contrib/django/test_autopatching.py | ocelotl/opentelemetry-auto-instr-python-1 | f5c47bd1ee492ffde298794f283031c22891f60b | [
"BSD-3-Clause"
] | 2 | 2020-03-04T17:33:22.000Z | 2021-01-20T14:20:10.000Z | tests/contrib/django/test_autopatching.py | ocelotl/opentelemetry-auto-instr-python-1 | f5c47bd1ee492ffde298794f283031c22891f60b | [
"BSD-3-Clause"
] | 4 | 2019-11-25T00:11:16.000Z | 2021-05-13T20:43:50.000Z | tests/contrib/django/test_autopatching.py | ocelotl/opentelemetry-auto-instr-python-1 | f5c47bd1ee492ffde298794f283031c22891f60b | [
"BSD-3-Clause"
] | 3 | 2020-02-05T14:54:25.000Z | 2020-03-23T02:51:27.000Z | # Copyright 2019, OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 47.654867 | 105 | 0.713092 | 625 | 5,385 | 6.0432 | 0.1968 | 0.128674 | 0.145618 | 0.097961 | 0.796399 | 0.782632 | 0.779984 | 0.765687 | 0.759068 | 0.714324 | 0 | 0.018093 | 0.199443 | 5,385 | 112 | 106 | 48.080357 | 0.858038 | 0.18403 | 0 | 0.743243 | 0 | 0 | 0.287511 | 0.231016 | 0 | 0 | 0 | 0 | 0.405405 | 1 | 0.081081 | false | 0 | 0.067568 | 0 | 0.175676 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 7 |
b78cde6d3cebe29f7e931577e725ff4b7c24b1cf | 54 | py | Python | app/src/main/python/myscript.py | dhivakar31/chaquopy3107 | dc0748d3f3df1e1125788175a4a00c57eab85526 | [
"MIT"
] | null | null | null | app/src/main/python/myscript.py | dhivakar31/chaquopy3107 | dc0748d3f3df1e1125788175a4a00c57eab85526 | [
"MIT"
] | null | null | null | app/src/main/python/myscript.py | dhivakar31/chaquopy3107 | dc0748d3f3df1e1125788175a4a00c57eab85526 | [
"MIT"
] | null | null | null | def add(a,b):
return a+b
def sub(a,b):
return a-b | 13.5 | 14 | 0.592593 | 14 | 54 | 2.285714 | 0.428571 | 0.25 | 0.5 | 0.5625 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 54 | 4 | 14 | 13.5 | 0.761905 | 0 | 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 | 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 | 8 |
b79db24da371797a985afbe7993ff2334ee38df9 | 271 | py | Python | sources/controller/__init__.py | Groomsha/lan-map | 1c30819470f43f8521e98eb75c70da23939f8f06 | [
"Apache-2.0"
] | null | null | null | sources/controller/__init__.py | Groomsha/lan-map | 1c30819470f43f8521e98eb75c70da23939f8f06 | [
"Apache-2.0"
] | null | null | null | sources/controller/__init__.py | Groomsha/lan-map | 1c30819470f43f8521e98eb75c70da23939f8f06 | [
"Apache-2.0"
] | null | null | null | from .main_window.main_window_controller import *
from .new_device_window.new_device_controller import *
from .new_device_window.save_data_new_device import *
from .new_device_window.button_new_device import *
from .new_device_window.widgets_control_new_device import *
| 38.714286 | 59 | 0.867159 | 41 | 271 | 5.219512 | 0.292683 | 0.336449 | 0.242991 | 0.35514 | 0.64486 | 0.64486 | 0.317757 | 0 | 0 | 0 | 0 | 0 | 0.077491 | 271 | 6 | 60 | 45.166667 | 0.856 | 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 |
b7d07c5e4feef14cc5c5422522e05040db50289a | 2,406 | py | Python | AATCC/lab-report/w2/lc-7-test.py | kancheng/kan-cs-report-in-2022 | 2a1e1eaa515349d59803c7831a7bd4cbea890a44 | [
"MIT"
] | null | null | null | AATCC/lab-report/w2/lc-7-test.py | kancheng/kan-cs-report-in-2022 | 2a1e1eaa515349d59803c7831a7bd4cbea890a44 | [
"MIT"
] | null | null | null | AATCC/lab-report/w2/lc-7-test.py | kancheng/kan-cs-report-in-2022 | 2a1e1eaa515349d59803c7831a7bd4cbea890a44 | [
"MIT"
] | null | null | null | import time
# 計算通過 EX 1 的效率
start = time.process_time()
class Solution1:
def reverse(self, x: int) -> int:
max_32 = 2 ** 31 - 1
if abs(x) > max_32:
return 0
if x < 0:
rint = -int(str(abs(x))[::-1])
else:
rint = int(str(x)[::-1])
if abs(rint... | 22.698113 | 62 | 0.501247 | 362 | 2,406 | 3.270718 | 0.129834 | 0.040541 | 0.076014 | 0.050676 | 0.97973 | 0.97973 | 0.940878 | 0.940878 | 0.940878 | 0.908784 | 0 | 0.094645 | 0.332502 | 2,406 | 106 | 63 | 22.698113 | 0.64259 | 0.032419 | 0 | 0.946237 | 0 | 0 | 0.063576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043011 | false | 0 | 0.010753 | 0 | 0.225806 | 0.172043 | 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 |
4d69ba1aa8e32ef8eb741e0c316674aff19ad67f | 13,020 | py | Python | Code/model_selection.py | MartinSchiemer/Revisiting_the_Information_Plane | 0376d4a30d3753698f5985d657c92c3395def3ac | [
"MIT"
] | 1 | 2021-07-19T02:07:01.000Z | 2021-07-19T02:07:01.000Z | Code/model_selection.py | MartinSchiemer/Revisiting_the_Information_Plane | 0376d4a30d3753698f5985d657c92c3395def3ac | [
"MIT"
] | null | null | null | Code/model_selection.py | MartinSchiemer/Revisiting_the_Information_Plane | 0376d4a30d3753698f5985d657c92c3395def3ac | [
"MIT"
] | null | null | null | """
Author: Martin Schiemer
some sample model configurations
"""
import numpy as np
np.random.seed(1337)
# tensorflow properties
import tensorflow as tf
from tensorflow.keras import backend as K
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Input, InputLayer, Dense, Activation, Lea... | 32.962025 | 114 | 0.572197 | 1,663 | 13,020 | 4.258569 | 0.086591 | 0.206721 | 0.121152 | 0.0939 | 0.837758 | 0.819825 | 0.811635 | 0.780006 | 0.776617 | 0.734821 | 0 | 0.034411 | 0.2947 | 13,020 | 395 | 115 | 32.962025 | 0.736796 | 0.061137 | 0 | 0.835714 | 0 | 0 | 0.048097 | 0.022116 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003571 | false | 0 | 0.028571 | 0 | 0.035714 | 0.007143 | 0 | 0 | 0 | null | 1 | 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 | 8 |
4d7df921ec137def1ddd43689a42e20db0ff3bf9 | 2,153 | py | Python | Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/metrics/__init__.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 3 | 2019-04-01T11:03:04.000Z | 2019-12-31T02:17:15.000Z | Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/metrics/__init__.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 1 | 2021-04-15T18:46:45.000Z | 2021-04-15T18:46:45.000Z | Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/metrics/__init__.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 1 | 2021-09-23T13:43:07.000Z | 2021-09-23T13:43:07.000Z | """Imports for Python API.
This file is MACHINE GENERATED! Do not edit.
Generated by: tensorflow/tools/api/generator/create_python_api.py script.
"""
from tensorflow.python.ops.metrics import accuracy
from tensorflow.python.ops.metrics import auc
from tensorflow.python.ops.metrics import average_precision_at_k
from te... | 56.657895 | 73 | 0.87738 | 315 | 2,153 | 5.796825 | 0.168254 | 0.253012 | 0.361446 | 0.415663 | 0.866375 | 0.866375 | 0.807229 | 0.638007 | 0.278204 | 0.060241 | 0 | 0 | 0.069206 | 2,153 | 38 | 74 | 56.657895 | 0.911178 | 0.066419 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 10 |
4d80a70f3e54efcb2f91c7944b437bf6ede5f182 | 4,230 | py | Python | tests/changes/api/test_repository_tree_index.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 443 | 2015-01-03T16:28:39.000Z | 2021-04-26T16:39:46.000Z | tests/changes/api/test_repository_tree_index.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 12 | 2015-07-30T19:07:16.000Z | 2016-11-07T23:11:21.000Z | tests/changes/api/test_repository_tree_index.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 47 | 2015-01-09T10:04:00.000Z | 2020-11-18T17:58:19.000Z | import urllib
from mock import patch
from changes.models.repository import RepositoryBackend
from changes.testutils import APITestCase
class RepositoryTreeListTest(APITestCase):
def test_no_vcs(self):
repo = self.create_repo(url='https://example.co.nonexistent/bar')
path = '/api/0/repositories/{... | 41.881188 | 73 | 0.642553 | 525 | 4,230 | 5.001905 | 0.150476 | 0.074257 | 0.064737 | 0.045316 | 0.855674 | 0.846154 | 0.833968 | 0.833968 | 0.833968 | 0.833968 | 0 | 0.0153 | 0.227423 | 4,230 | 100 | 74 | 42.3 | 0.78825 | 0.014421 | 0 | 0.716049 | 0 | 0 | 0.18771 | 0.102016 | 0 | 0 | 0 | 0 | 0.259259 | 1 | 0.074074 | false | 0 | 0.049383 | 0 | 0.135802 | 0.024691 | 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 |
4d8895ed0b2967ed5e2a2b88a94af9e04dc3472d | 3,341 | py | Python | tests/integration/test_interpolator.py | vpicavet/LoopStructural | cde34fabc53b4d5cb0f8e22f53a574fac44dfbd6 | [
"MIT"
] | 67 | 2020-06-25T06:50:58.000Z | 2022-03-29T17:15:43.000Z | tests/integration/test_interpolator.py | vpicavet/LoopStructural | cde34fabc53b4d5cb0f8e22f53a574fac44dfbd6 | [
"MIT"
] | 60 | 2020-06-28T22:58:21.000Z | 2022-03-24T01:30:59.000Z | tests/integration/test_interpolator.py | vpicavet/LoopStructural | cde34fabc53b4d5cb0f8e22f53a574fac44dfbd6 | [
"MIT"
] | 9 | 2020-06-25T13:07:39.000Z | 2021-12-01T01:41:24.000Z | from LoopStructural import GeologicalModel
from LoopStructural.datasets import load_claudius
def test_create_model():
data, bb = load_claudius()
model = GeologicalModel(bb[0,:],bb[1,:])
def test_add_data():
data, bb = load_claudius()
model = GeologicalModel(bb[0,:],bb[1,:])
model.set_model_data(da... | 37.539326 | 63 | 0.471715 | 304 | 3,341 | 4.904605 | 0.134868 | 0.080483 | 0.060362 | 0.108652 | 0.884641 | 0.859826 | 0.859826 | 0.843729 | 0.816901 | 0.816901 | 0 | 0.031562 | 0.431009 | 3,341 | 88 | 64 | 37.965909 | 0.752762 | 0 | 0 | 0.824324 | 0 | 0 | 0.016467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0.013514 | 0.027027 | 0 | 0.162162 | 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 |
4dc25b6f26d62a3d4dfa159aa616518c120a8eae | 243 | py | Python | homeworks/alexander_sidorov/lesson17/level08.py | tgrx/Z22 | b2539682ff26c8b6d9f63a7670c8a9c6b614a8ff | [
"Apache-2.0"
] | null | null | null | homeworks/alexander_sidorov/lesson17/level08.py | tgrx/Z22 | b2539682ff26c8b6d9f63a7670c8a9c6b614a8ff | [
"Apache-2.0"
] | 8 | 2019-11-15T18:15:56.000Z | 2020-02-03T18:05:05.000Z | homeworks/alexander_sidorov/lesson17/level08.py | tgrx/Z22 | b2539682ff26c8b6d9f63a7670c8a9c6b614a8ff | [
"Apache-2.0"
] | null | null | null | class Functor:
def __init__(self, function, args, kwargs):
self.__function = function
self.__args = args
self.__kwargs = kwargs
def __call__(self):
return self.__function(*self.__args, **self.__kwargs)
| 27 | 61 | 0.641975 | 27 | 243 | 5.037037 | 0.37037 | 0.264706 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255144 | 243 | 8 | 62 | 30.375 | 0.751381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 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 |
422bf6203241d77a9ddf9abafd598a67ec354af3 | 4,290 | py | Python | test/test_due_data_calculator.py | szabadkai/due-date-calculator | c1e6449593b4896b0fbb8b43b5d128ab66944fe5 | [
"MIT"
] | null | null | null | test/test_due_data_calculator.py | szabadkai/due-date-calculator | c1e6449593b4896b0fbb8b43b5d128ab66944fe5 | [
"MIT"
] | null | null | null | test/test_due_data_calculator.py | szabadkai/due-date-calculator | c1e6449593b4896b0fbb8b43b5d128ab66944fe5 | [
"MIT"
] | null | null | null | from unittest import TestCase
from due_date_calculator import DueDateCalculator
from freezegun import freeze_time
from datetime import datetime as dt
from datetime import timedelta
import config
class TestDueDateCalculator(TestCase):
@freeze_time('2018-10-22 12:00:01')
def setUp(self):
self.calculato... | 56.447368 | 118 | 0.712354 | 583 | 4,290 | 5.06175 | 0.15952 | 0.142325 | 0.140969 | 0.167062 | 0.806506 | 0.788546 | 0.773975 | 0.746865 | 0.696374 | 0.67367 | 0 | 0.047696 | 0.13986 | 4,290 | 75 | 119 | 57.2 | 0.752033 | 0 | 0 | 0.269841 | 0 | 0 | 0.10676 | 0 | 0 | 0 | 0 | 0 | 0.47619 | 1 | 0.15873 | false | 0 | 0.095238 | 0 | 0.269841 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
423d2ce91f0ae10eb6470918a9c8f42e798c6afe | 43,461 | py | Python | tests/OpenMaya/test_MDagPath.py | christophercrouzet/bana | 8087df05ba9844b4d78d3c4699948ca61cf7621d | [
"MIT"
] | 24 | 2017-01-11T15:57:46.000Z | 2020-09-23T06:18:30.000Z | tests/OpenMaya/test_MDagPath.py | christophercrouzet/bana | 8087df05ba9844b4d78d3c4699948ca61cf7621d | [
"MIT"
] | null | null | null | tests/OpenMaya/test_MDagPath.py | christophercrouzet/bana | 8087df05ba9844b4d78d3c4699948ca61cf7621d | [
"MIT"
] | 2 | 2017-03-06T23:52:08.000Z | 2020-09-23T06:19:03.000Z | #!/usr/bin/env mayapy
import os
import sys
import unittest
import maya.standalone
from maya import OpenMaya, cmds
_HERE = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, os.path.abspath(os.path.join(_HERE, *((os.pardir,) * 2))))
import bana
import tests._util
bana.initialize()
maya.standalone.initia... | 77.887097 | 1,179 | 0.725777 | 4,758 | 43,461 | 6.551072 | 0.035729 | 0.084184 | 0.046198 | 0.076997 | 0.946936 | 0.932916 | 0.917806 | 0.890343 | 0.873661 | 0.865672 | 0 | 0.016162 | 0.12303 | 43,461 | 557 | 1,180 | 78.02693 | 0.801648 | 0.008836 | 0 | 0.567696 | 0 | 0 | 0.340856 | 0.261382 | 0 | 0 | 0 | 0 | 0.619952 | 1 | 0.019002 | false | 0 | 0.019002 | 0 | 0.04038 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c41c04167aab9904e34d89661d0b8a64d3bbe748 | 5,675 | py | Python | molecules/sim/simulation/openmm_simulation.py | hengma1001/molecules | c6694cc77ef1eb246f3fdab1f201481d1bcaa07c | [
"MIT"
] | 2 | 2020-03-16T07:47:42.000Z | 2021-05-12T11:39:51.000Z | molecules/sim/simulation/openmm_simulation.py | yngtodd/molecules | b16281ae3eda64891f603d23472092051c2bc244 | [
"MIT"
] | 55 | 2018-02-10T23:22:15.000Z | 2019-12-22T23:11:13.000Z | molecules/sim/simulation/openmm_simulation.py | hengma1001/molecules | c6694cc77ef1eb246f3fdab1f201481d1bcaa07c | [
"MIT"
] | 4 | 2018-08-06T19:49:35.000Z | 2020-06-03T02:07:42.000Z | import simtk.openmm.app as app
import simtk.openmm as omm
import simtk.unit as u
import parmed as pmd
import random
def openmm_simulate_charmm_nvt(top_file, xyz_file, GPU_index=0, output_traj="output.dcd", output_log="output.log", report_time=10*u.picoseconds, sim_time=10*u.nanoseconds):
"""
Start and run a... | 39.964789 | 173 | 0.686167 | 736 | 5,675 | 5.206522 | 0.224185 | 0.016701 | 0.014092 | 0.037578 | 0.947547 | 0.947547 | 0.947547 | 0.936326 | 0.936326 | 0.936326 | 0 | 0.018307 | 0.229956 | 5,675 | 141 | 174 | 40.248227 | 0.858581 | 0.432952 | 0 | 0.823529 | 0 | 0 | 0.046496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.098039 | 0 | 0.137255 | 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 |
c44ecfffe2ee056e29a965b69046c23d5f351233 | 4,217 | py | Python | ogb/nodeproppred/make_master_file.py | yelongshen/ogb | 293790ee77576375b40a3c7e0ead15be466963fe | [
"MIT"
] | null | null | null | ogb/nodeproppred/make_master_file.py | yelongshen/ogb | 293790ee77576375b40a3c7e0ead15be466963fe | [
"MIT"
] | null | null | null | ogb/nodeproppred/make_master_file.py | yelongshen/ogb | 293790ee77576375b40a3c7e0ead15be466963fe | [
"MIT"
] | 1 | 2021-02-14T04:39:46.000Z | 2021-02-14T04:39:46.000Z | ### script for writing meta information of datasets into master.csv
### for node property prediction datasets.
import pandas as pd
dataset_dict = {}
dataset_list = []
### add meta-information about protein function prediction task
name = "ogbn-proteins"
dataset_dict[name] = {"num tasks": 112, "num classes": 2, "eval ... | 51.426829 | 131 | 0.741048 | 592 | 4,217 | 5.094595 | 0.180743 | 0.226127 | 0.298408 | 0.07626 | 0.829576 | 0.769562 | 0.724801 | 0.724801 | 0.679708 | 0.679708 | 0 | 0.007592 | 0.094143 | 4,217 | 82 | 132 | 51.426829 | 0.781937 | 0.165521 | 0 | 0.553846 | 0 | 0 | 0.421821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015385 | 0 | 0.015385 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c487fa3b1598de60dbf07c0af4f1a9d2b9b39be8 | 41 | py | Python | installer/whimbrel/install/util/__init__.py | groboclown/whimbrel | 1968cccf4888ef893686a812ed729205a31d2a12 | [
"Apache-2.0"
] | null | null | null | installer/whimbrel/install/util/__init__.py | groboclown/whimbrel | 1968cccf4888ef893686a812ed729205a31d2a12 | [
"Apache-2.0"
] | null | null | null | installer/whimbrel/install/util/__init__.py | groboclown/whimbrel | 1968cccf4888ef893686a812ed729205a31d2a12 | [
"Apache-2.0"
] | null | null | null |
from . import out
from . import copy
| 10.25 | 19 | 0.658537 | 6 | 41 | 4.5 | 0.666667 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292683 | 41 | 3 | 20 | 13.666667 | 0.931034 | 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 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
673402bc79b48f0a831cef4d914b3b7e9e8743b0 | 4,093 | py | Python | app/calculator/assign.py | EBaalhuis/TI4_battle_sim | c139ca71d98f320f780cbfc6297d5d1d1ad08a0b | [
"MIT"
] | 3 | 2021-05-12T20:32:06.000Z | 2022-02-25T21:29:23.000Z | app/calculator/assign.py | EBaalhuis/TI4_battle_sim | c139ca71d98f320f780cbfc6297d5d1d1ad08a0b | [
"MIT"
] | 109 | 2021-01-10T11:09:11.000Z | 2021-03-25T20:33:13.000Z | app/calculator/assign.py | EBaalhuis/TI4_battle_sim | c139ca71d98f320f780cbfc6297d5d1d1ad08a0b | [
"MIT"
] | 1 | 2021-03-25T00:49:12.000Z | 2021-03-25T00:49:12.000Z | import app.calculator.faction_abilities as faction_abilities
def assign_hits(units, hits, risk_direct_hit, faction, options, attacker):
if hits <= 0:
return units, options
# Shields Holding
if options["att_shields_active"] and attacker:
options["att_shields_active"] = False
hits -... | 33.826446 | 117 | 0.602981 | 519 | 4,093 | 4.60501 | 0.146435 | 0.065272 | 0.082845 | 0.043515 | 0.855649 | 0.800837 | 0.800837 | 0.768201 | 0.758159 | 0.723013 | 0 | 0.009145 | 0.305399 | 4,093 | 120 | 118 | 34.108333 | 0.831516 | 0.090154 | 0 | 0.758621 | 0 | 0 | 0.09973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.011494 | 0 | 0.218391 | 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 |
67ad0b685e1569fd4450b8b9b3b6af12b4d3d79b | 182 | py | Python | order_routing/base_trader.py | qplum/trade-analysis | c2a641ea0f49da4b29098b33a3b7cbeedfc2b866 | [
"MIT"
] | 32 | 2016-07-01T13:16:39.000Z | 2021-08-17T16:18:59.000Z | order_routing/base_trader.py | VCGJake/trade-analysis | c2a641ea0f49da4b29098b33a3b7cbeedfc2b866 | [
"MIT"
] | 2 | 2016-06-30T14:37:21.000Z | 2017-09-13T16:19:23.000Z | order_routing/base_trader.py | VCGJake/trade-analysis | c2a641ea0f49da4b29098b33a3b7cbeedfc2b866 | [
"MIT"
] | 18 | 2016-06-30T14:14:44.000Z | 2018-10-13T05:13:17.000Z | class BaseTrader( object ):
def __init__( self, uid ):
self.uid = uid
def send_order( self, order ):
pass
def cancel_order( self, order ):
pass
| 18.2 | 36 | 0.565934 | 22 | 182 | 4.409091 | 0.5 | 0.14433 | 0.28866 | 0.371134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.340659 | 182 | 9 | 37 | 20.222222 | 0.808333 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.285714 | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
db0ae63a5c6024f656a02f59efedfe6e4afa7536 | 1,323 | py | Python | Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/feature_column/__init__.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 3 | 2019-04-01T11:03:04.000Z | 2019-12-31T02:17:15.000Z | Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/feature_column/__init__.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 1 | 2021-04-15T18:46:45.000Z | 2021-04-15T18:46:45.000Z | Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/feature_column/__init__.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 1 | 2021-09-23T13:43:07.000Z | 2021-09-23T13:43:07.000Z | """Imports for Python API.
This file is MACHINE GENERATED! Do not edit.
Generated by: tensorflow/tools/api/generator/create_python_api.py script.
"""
from tensorflow.python.feature_column.feature_column import bucketized_column
from tensorflow.python.feature_column.feature_column import categorical_column_with_hash_bu... | 69.631579 | 99 | 0.900983 | 178 | 1,323 | 6.365169 | 0.258427 | 0.321271 | 0.247132 | 0.333628 | 0.760812 | 0.760812 | 0.760812 | 0.760812 | 0.485437 | 0.275375 | 0 | 0 | 0.055178 | 1,323 | 19 | 100 | 69.631579 | 0.9064 | 0.108088 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 10 |
db14806c805561d0b7c539954aa0f7ff0ee432a6 | 950 | py | Python | app/views/users.py | matrufsc2/matrufsc2 | d8a32c532281cc2a09a26444bd5b8497bc578b18 | [
"RSA-MD"
] | 4 | 2017-07-07T19:04:07.000Z | 2018-07-04T18:03:49.000Z | app/views/users.py | matrufsc2/matrufsc2 | d8a32c532281cc2a09a26444bd5b8497bc578b18 | [
"RSA-MD"
] | 6 | 2015-02-27T03:21:02.000Z | 2019-07-30T19:58:35.000Z | app/views/users.py | matrufsc2/matrufsc2 | d8a32c532281cc2a09a26444bd5b8497bc578b18 | [
"RSA-MD"
] | null | null | null | from google.appengine.api import users
from app.views.api import serialize
__author__ = 'fernando'
def get_current_user():
is_authenticated = users.get_current_user() is not None
login_url = None
logout_url = None
if is_authenticated:
logout_url = users.create_logout_url("/")
else:
... | 26.388889 | 59 | 0.646316 | 115 | 950 | 4.965217 | 0.234783 | 0.140105 | 0.098074 | 0.084063 | 0.816112 | 0.816112 | 0.816112 | 0.816112 | 0.816112 | 0.816112 | 0 | 0 | 0.247368 | 950 | 35 | 60 | 27.142857 | 0.798601 | 0 | 0 | 0.709677 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.064516 | 0 | 0.193548 | 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 |
db1f934b9ff999847ae575ddaead2519a110a688 | 1,167 | py | Python | SDNet/data/transform.py | neolgu/Split-Detection-Network | 7c8f75a10f56ff7b8e82d82af130780db402501b | [
"MIT"
] | 3 | 2021-05-26T07:55:27.000Z | 2021-09-27T10:01:12.000Z | SDNet/data/transform.py | neolgu/Split-Detection-Network | 7c8f75a10f56ff7b8e82d82af130780db402501b | [
"MIT"
] | 1 | 2021-06-13T08:24:19.000Z | 2021-06-13T08:24:19.000Z | SDNet/data/transform.py | neolgu/Split-Detection-Network | 7c8f75a10f56ff7b8e82d82af130780db402501b | [
"MIT"
] | null | null | null | from torchvision import transforms
xception_data_transforms = {
'train': transforms.Compose([
transforms.Resize((299, 299)),
transforms.ToTensor(),
transforms.Normalize([0.5]*3, [0.5]*3)
]),
'val': transforms.Compose([
transforms.Resize((299, 299)),
transforms.ToTens... | 32.416667 | 84 | 0.574122 | 136 | 1,167 | 4.897059 | 0.191176 | 0.153153 | 0.243243 | 0.297297 | 0.929429 | 0.908408 | 0.908408 | 0.851351 | 0.851351 | 0.851351 | 0 | 0.143017 | 0.233076 | 1,167 | 36 | 85 | 32.416667 | 0.601117 | 0 | 0 | 0.857143 | 0 | 0 | 0.020548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028571 | 0 | 0.028571 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
c059a26d34d18e3b857e90ae29a3a2f1ddc7ec81 | 9,027 | py | Python | alien/lib/emotions_library.py | oowais/MCP-Alien-Arduino-Code | 8613843ee3d602fa62c2d13e411cd423ce5b7bf7 | [
"MIT"
] | null | null | null | alien/lib/emotions_library.py | oowais/MCP-Alien-Arduino-Code | 8613843ee3d602fa62c2d13e411cd423ce5b7bf7 | [
"MIT"
] | 36 | 2018-12-20T00:55:49.000Z | 2019-01-28T22:39:08.000Z | alien/lib/emotions_library.py | oowais/MCP-Alien-Arduino-Code | 8613843ee3d602fa62c2d13e411cd423ce5b7bf7 | [
"MIT"
] | null | null | null | BOOT = [(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (0, 6), (0, 7),
(1, 0), (1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (1, 7),
(2, 0), (2, 1), (2, 2), (2, 3), (2, 4), (2, 5), (2, 6), (2, 7),
(3, 0), (3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6), (3, 7),
(4, 0), (4, 1), (4, 2), ... | 38.742489 | 71 | 0.214468 | 1,528 | 9,027 | 1.219241 | 0.018979 | 0.040794 | 0.05475 | 0.045089 | 0.899624 | 0.866881 | 0.834675 | 0.831455 | 0.785293 | 0.761675 | 0 | 0.295967 | 0.464385 | 9,027 | 232 | 72 | 38.909483 | 0.089349 | 0 | 0 | 0.663415 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
220c3ea9cbe8d711f1326ec778d1edb2301d8ebd | 61,719 | py | Python | netapp/santricity/api/symbol/e_api.py | NetApp/santricity-webapi-pythonsdk | 1d3df4a00561192f4cdcdd1890f4d27547ed2de2 | [
"BSD-3-Clause-Clear"
] | 5 | 2016-08-23T17:52:22.000Z | 2019-05-16T08:45:30.000Z | netapp/santricity/api/symbol/e_api.py | NetApp/santricity-webapi-pythonsdk | 1d3df4a00561192f4cdcdd1890f4d27547ed2de2 | [
"BSD-3-Clause-Clear"
] | 2 | 2016-11-10T05:30:21.000Z | 2019-04-05T15:03:37.000Z | netapp/santricity/api/symbol/e_api.py | NetApp/santricity-webapi-pythonsdk | 1d3df4a00561192f4cdcdd1890f4d27547ed2de2 | [
"BSD-3-Clause-Clear"
] | 7 | 2016-08-25T16:11:44.000Z | 2021-02-22T05:31:25.000Z | #!/usr/bin/env python
# coding: utf-8
"""
EApi.py
The Clear BSD License
Copyright (c) – 2016, NetApp, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following condit... | 40.312867 | 853 | 0.544451 | 5,809 | 61,719 | 5.621622 | 0.082803 | 0.035277 | 0.029397 | 0.019108 | 0.822452 | 0.815868 | 0.805977 | 0.784144 | 0.772079 | 0.772079 | 0 | 0.001189 | 0.387028 | 61,719 | 1,530 | 854 | 40.339216 | 0.861969 | 0.345048 | 0 | 0.853088 | 0 | 0 | 0.20703 | 0.070269 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021703 | false | 0 | 0.010017 | 0 | 0.053422 | 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 |
22224e1cbba9cf55ec440b0af603fa6d6018322e | 7,603 | py | Python | regex_gen.py | jefflombard/regex | 834eebed5c1a819d9fe257c5fd83406e8c8c2ab4 | [
"MIT"
] | null | null | null | regex_gen.py | jefflombard/regex | 834eebed5c1a819d9fe257c5fd83406e8c8c2ab4 | [
"MIT"
] | null | null | null | regex_gen.py | jefflombard/regex | 834eebed5c1a819d9fe257c5fd83406e8c8c2ab4 | [
"MIT"
] | null | null | null | # First 3 digits
first = ['00[1-9]','0[1-9][0-9]','[1-5][0-9][0-9]','6[0-5][0-9]','66[0-5]','66[7-9]','6[7-9][0-9]','[7-8][0-9][0-9]']
# /00[1-9]|
# 0[1-9][0-9]|
# [1-5][0-9][0-9]|
# 6[0-5][0-9]|
# 66[0-5]|
# 66[7-9]|
# 6[7-9][0-9]|
# [7-8][0-9][0-9]/
# Middle 2 digits
middle = ['[0-9... | 158.395833 | 3,552 | 0.326319 | 2,311 | 7,603 | 1.073561 | 0.015578 | 0.53688 | 0.727932 | 0.535268 | 0.934301 | 0.934301 | 0.934301 | 0.934301 | 0.934301 | 0.934301 | 0 | 0.312761 | 0.023938 | 7,603 | 47 | 3,553 | 161.765957 | 0.02156 | 0.044062 | 0 | 0 | 0 | 0 | 0.409186 | 0 | 0.125 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14 |
22344d6d72ddb578754cdeae9703e2aa3af60dda | 26,851 | py | Python | Rover/install_isolated/lib/python2.7/dist-packages/cartographer_ros_msgs/srv/_StartTrajectory.py | Rose-Hulman-Rover-Team/Rover-2019-2020 | d75a9086fa733f8a8b5240005bee058737ad82c7 | [
"MIT"
] | 1 | 2018-10-04T14:37:00.000Z | 2018-10-04T14:37:00.000Z | TrekBot_WS/install_isolated/lib/python2.7/dist-packages/cartographer_ros_msgs/srv/_StartTrajectory.py | Rafcin/TrekBot | d3dc63e6c16a040b16170f143556ef358018b7da | [
"Unlicense"
] | null | null | null | TrekBot_WS/install_isolated/lib/python2.7/dist-packages/cartographer_ros_msgs/srv/_StartTrajectory.py | Rafcin/TrekBot | d3dc63e6c16a040b16170f143556ef358018b7da | [
"Unlicense"
] | null | null | null | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from cartographer_ros_msgs/StartTrajectoryRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import cartographer_ros_msgs.msg
class StartTrajectoryRequest(genpy.Mess... | 37.035862 | 528 | 0.658821 | 3,687 | 26,851 | 4.562246 | 0.070518 | 0.062779 | 0.051008 | 0.043755 | 0.89739 | 0.886689 | 0.885144 | 0.875275 | 0.875275 | 0.875275 | 0 | 0.014878 | 0.219024 | 26,851 | 724 | 529 | 37.087017 | 0.787268 | 0.090984 | 0 | 0.862069 | 1 | 0 | 0.172013 | 0.045451 | 0 | 0 | 0.000833 | 0 | 0 | 1 | 0.027915 | false | 0 | 0.013136 | 0 | 0.090312 | 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 |
22366428693ae275acb01db69ab820da721b2896 | 360 | py | Python | adversarial_env/configuration.py | TorchPAIRED/TorchPAIRED | 0b9b9ef13f9029d23682ed4752ea775230b49eb6 | [
"MIT"
] | null | null | null | adversarial_env/configuration.py | TorchPAIRED/TorchPAIRED | 0b9b9ef13f9029d23682ed4752ea775230b49eb6 | [
"MIT"
] | null | null | null | adversarial_env/configuration.py | TorchPAIRED/TorchPAIRED | 0b9b9ef13f9029d23682ed4752ea775230b49eb6 | [
"MIT"
] | null | null | null | class EnvConfiguration:
def __init__(self, encoding, agent_pos, agent_dir, goal_pos, carrying):
self.encoding, self.agent_pos, self.agent_dir, self.goal_pos, self.carrying = encoding, agent_pos, agent_dir, goal_pos, carrying
def get_configuration(self):
return self.encoding, self.agent_pos, self... | 72 | 136 | 0.761111 | 52 | 360 | 4.942308 | 0.269231 | 0.124514 | 0.124514 | 0.163424 | 0.762646 | 0.762646 | 0.762646 | 0.762646 | 0.459144 | 0.459144 | 0 | 0 | 0.141667 | 360 | 5 | 137 | 72 | 0.831715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 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 | 8 |
223efc84a0bc36ff2dc6d3d1c2c0a7d89c8a7da2 | 96 | py | Python | yeast/core/media/sd/__init__.py | irahorecka/sga-fba | fc7e923da8e79555780359f018c85b5e5339d8d0 | [
"MIT"
] | null | null | null | yeast/core/media/sd/__init__.py | irahorecka/sga-fba | fc7e923da8e79555780359f018c85b5e5339d8d0 | [
"MIT"
] | null | null | null | yeast/core/media/sd/__init__.py | irahorecka/sga-fba | fc7e923da8e79555780359f018c85b5e5339d8d0 | [
"MIT"
] | null | null | null | from yeast.core.media.sd.base import sd
from yeast.core.media.sd.sdszappanos import sdszappanos
| 32 | 55 | 0.833333 | 16 | 96 | 5 | 0.5 | 0.225 | 0.325 | 0.45 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 96 | 2 | 56 | 48 | 0.909091 | 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 |
97d4e4a86daba51fb3e5c6b79b4b3ab6c7f537a8 | 11,125 | py | Python | CGATPipelines/pipeline_docs/pipeline_proj007/trackers/macs_replicated_interval_associations.py | cdrakesmith/CGATPipelines | 3c94ae4f9d87d51108255dc405c4b95af7c8b694 | [
"MIT"
] | 49 | 2015-04-13T16:49:25.000Z | 2022-03-29T10:29:14.000Z | CGATPipelines/pipeline_docs/pipeline_proj007/trackers/macs_replicated_interval_associations.py | cdrakesmith/CGATPipelines | 3c94ae4f9d87d51108255dc405c4b95af7c8b694 | [
"MIT"
] | 252 | 2015-04-08T13:23:34.000Z | 2019-03-18T21:51:29.000Z | CGATPipelines/pipeline_docs/pipeline_proj007/trackers/macs_replicated_interval_associations.py | cdrakesmith/CGATPipelines | 3c94ae4f9d87d51108255dc405c4b95af7c8b694 | [
"MIT"
] | 22 | 2015-05-21T00:37:52.000Z | 2019-09-25T05:04:27.000Z | from cpgReport import *
from CGATReport.Tracker import *
from CGATReport.odict import OrderedDict as odict
from macs_annotations import *
##########################################################################
class replicatedAssociationsHierarchy(cpgTracker):
""" """
pattern = "(.*)_replicated_interva... | 51.744186 | 197 | 0.513258 | 1,158 | 11,125 | 4.657168 | 0.098446 | 0.048952 | 0.077137 | 0.081587 | 0.864269 | 0.852587 | 0.842017 | 0.842017 | 0.835342 | 0.835342 | 0 | 0.019022 | 0.395146 | 11,125 | 214 | 198 | 51.985981 | 0.782434 | 0 | 0 | 0.78771 | 0 | 0.011173 | 0.845662 | 0.215813 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022346 | false | 0 | 0.022346 | 0 | 0.111732 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
97e873d26fd4e4e1f975c8c00a58feca5964fd2d | 84 | py | Python | pyspectools/models/__init__.py | aowen-uwmad/PySpecTools | 3fd0b68352910df1e653370797a8edd46d92fa1c | [
"MIT"
] | 22 | 2018-03-14T10:44:17.000Z | 2022-01-10T15:02:37.000Z | pyspectools/models/__init__.py | aowen-uwmad/PySpecTools | 3fd0b68352910df1e653370797a8edd46d92fa1c | [
"MIT"
] | 21 | 2019-07-27T01:43:50.000Z | 2021-11-15T14:57:15.000Z | pyspectools/models/__init__.py | aowen-uwmad/PySpecTools | 3fd0b68352910df1e653370797a8edd46d92fa1c | [
"MIT"
] | 3 | 2020-08-03T16:22:00.000Z | 2021-11-01T15:31:55.000Z |
from pyspectools.models import classes
from pyspectools.models import torch_models
| 21 | 43 | 0.869048 | 11 | 84 | 6.545455 | 0.545455 | 0.416667 | 0.583333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 84 | 3 | 44 | 28 | 0.96 | 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 |
3f0a33656987ca637cb8ea3d9ca1d4411c07e876 | 86 | py | Python | ACM-Solution/TRGRID.py | wasi0013/Python-CodeBase | 4a7a36395162f68f84ded9085fa34cc7c9b19233 | [
"MIT"
] | 2 | 2016-04-26T15:40:40.000Z | 2018-07-18T10:16:42.000Z | ACM-Solution/TRGRID.py | wasi0013/Python-CodeBase | 4a7a36395162f68f84ded9085fa34cc7c9b19233 | [
"MIT"
] | 1 | 2016-04-26T15:44:15.000Z | 2016-04-29T14:44:40.000Z | ACM-Solution/TRGRID.py | wasi0013/Python-CodeBase | 4a7a36395162f68f84ded9085fa34cc7c9b19233 | [
"MIT"
] | 1 | 2018-10-02T16:12:19.000Z | 2018-10-02T16:12:19.000Z | exec("n,m=map(int,input().split());print(['LR'[n%2],'UD'[m%2]][n>m]);"*int(input()))
| 43 | 85 | 0.523256 | 18 | 86 | 2.5 | 0.611111 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.023256 | 86 | 1 | 86 | 86 | 0.511905 | 0 | 0 | 0 | 0 | 1 | 0.741176 | 0.741176 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
3f63edc10e21f92e3052123ff38f0b2488e68532 | 63 | py | Python | q2_itsxpress/__init__.py | kweber1/ITSxpress-qiime2 | a2a2e7bc12fecd27319f0ab705a78e54a3a926d3 | [
"CC0-1.0"
] | 8 | 2018-07-12T21:40:50.000Z | 2021-12-06T01:52:14.000Z | q2_itsxpress/__init__.py | kweber1/ITSxpress-qiime2 | a2a2e7bc12fecd27319f0ab705a78e54a3a926d3 | [
"CC0-1.0"
] | 8 | 2018-07-26T14:45:23.000Z | 2022-01-24T15:23:41.000Z | q2_itsxpress/__init__.py | kweber1/q2_itsxpress | a2a2e7bc12fecd27319f0ab705a78e54a3a926d3 | [
"CC0-1.0"
] | 3 | 2019-02-25T19:52:14.000Z | 2022-03-29T14:14:09.000Z | import q2_itsxpress._itsxpress
import q2_itsxpress.plugin_setup | 31.5 | 32 | 0.920635 | 9 | 63 | 6 | 0.555556 | 0.296296 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.047619 | 63 | 2 | 32 | 31.5 | 0.866667 | 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 |
3f6bf45199adf5640ba7629b31d68fd52f19bff1 | 196 | py | Python | tests/func/multipoint/__init__.py | phuntimes/mongoshapes | f461c67343c32c6b97af8d67a269b4de492d1d71 | [
"MIT"
] | 1 | 2020-11-26T05:58:23.000Z | 2020-11-26T05:58:23.000Z | tests/func/multipoint/__init__.py | Sean-McVeigh/mongoshapes | f461c67343c32c6b97af8d67a269b4de492d1d71 | [
"MIT"
] | null | null | null | tests/func/multipoint/__init__.py | Sean-McVeigh/mongoshapes | f461c67343c32c6b97af8d67a269b4de492d1d71 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from mongoshapes import MultiPoint as GeoShape
from mongoshapes import MultiPointDict as GeoDict
from mongoshapes import MultiPointField as GeoField
| 28 | 51 | 0.795918 | 25 | 196 | 6.24 | 0.68 | 0.288462 | 0.403846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0.132653 | 196 | 6 | 52 | 32.666667 | 0.911765 | 0.214286 | 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 |
3f71ad804cc87bc731c3ba147654ada08e6d1b27 | 25,531 | py | Python | tests/unit/gapic/v1/test_secret_manager_service_client_v1.py | busunkim96/python-secret-manager | 54dca6c3d8943a6455fe0d68c094683ed1e32f3e | [
"Apache-2.0"
] | null | null | null | tests/unit/gapic/v1/test_secret_manager_service_client_v1.py | busunkim96/python-secret-manager | 54dca6c3d8943a6455fe0d68c094683ed1e32f3e | [
"Apache-2.0"
] | null | null | null | tests/unit/gapic/v1/test_secret_manager_service_client_v1.py | busunkim96/python-secret-manager | 54dca6c3d8943a6455fe0d68c094683ed1e32f3e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 37.823704 | 88 | 0.673612 | 2,637 | 25,531 | 6.273796 | 0.073568 | 0.070721 | 0.025387 | 0.036267 | 0.863213 | 0.827188 | 0.802224 | 0.7908 | 0.7908 | 0.787778 | 0 | 0.017614 | 0.241706 | 25,531 | 674 | 89 | 37.879822 | 0.836932 | 0.079237 | 0 | 0.713647 | 0 | 0 | 0.093647 | 0.055112 | 0 | 0 | 0 | 0 | 0.102908 | 1 | 0.076063 | false | 0.002237 | 0.020134 | 0.002237 | 0.10962 | 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 |
58f4a508e50691d097d8ae3b13419c3010623243 | 3,353 | py | Python | tests/test-sequence.py | antmicro/usb-test-suite-testbenches- | c2f83a9b074c8a7f98c835584f58df98e5b2f2d5 | [
"Apache-2.0"
] | 9 | 2019-09-16T18:46:08.000Z | 2021-06-20T05:40:12.000Z | tests/test-sequence.py | antmicro/usb-test-suite-testbenches- | c2f83a9b074c8a7f98c835584f58df98e5b2f2d5 | [
"Apache-2.0"
] | 19 | 2019-09-23T10:58:04.000Z | 2020-06-02T14:34:55.000Z | tests/test-sequence.py | antmicro/usb-test-suite-testbenches- | c2f83a9b074c8a7f98c835584f58df98e5b2f2d5 | [
"Apache-2.0"
] | 2 | 2020-05-19T12:22:53.000Z | 2021-01-07T07:18:08.000Z |
from os import environ
import cocotb
from cocotb_usb.harness import get_harness
from cocotb_usb.device import UsbDevice
from cocotb_usb.descriptors import Descriptor, getDescriptorRequest
descriptorFile = environ['TARGET_CONFIG']
model = UsbDevice(descriptorFile)
@cocotb.test()
def test_control_transfer_in_out(dut... | 31.933333 | 72 | 0.653445 | 379 | 3,353 | 5.593668 | 0.195251 | 0.14717 | 0.048113 | 0.053774 | 0.853302 | 0.840094 | 0.809906 | 0.809906 | 0.775 | 0.775 | 0 | 0.025399 | 0.271995 | 3,353 | 104 | 73 | 32.240385 | 0.843097 | 0.129138 | 0 | 0.789474 | 0 | 0 | 0.008612 | 0 | 0 | 0 | 0.009645 | 0 | 0 | 1 | 0.039474 | false | 0 | 0.065789 | 0 | 0.105263 | 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 |
4503d2e58db7f706edeb9e29210bf6efd1aef909 | 3,734 | py | Python | sqlpie/controllers/collaborative_controller.py | lessaworld/sqlpie | 22cac1fc7f9cb939e823058f84a68988e03ab239 | [
"MIT"
] | 3 | 2016-01-27T19:49:23.000Z | 2020-08-18T13:59:02.000Z | sqlpie/controllers/collaborative_controller.py | lessaworld/sqlpie | 22cac1fc7f9cb939e823058f84a68988e03ab239 | [
"MIT"
] | null | null | null | sqlpie/controllers/collaborative_controller.py | lessaworld/sqlpie | 22cac1fc7f9cb939e823058f84a68988e03ab239 | [
"MIT"
] | 1 | 2016-02-01T01:57:54.000Z | 2016-02-01T01:57:54.000Z | # -*- coding: utf-8 -*-
"""
SQLpie License (MIT License)
Copyright (c) 2011-2016 André Lessa, http://sqlpie.com
See LICENSE file.
"""
from flask import Response
import json
import sqlpie
class CollaborativeController(sqlpie.BaseController):
@staticmethod
@sqlpie.BaseController.controller_wrapper
def se... | 40.150538 | 100 | 0.632566 | 431 | 3,734 | 5.220418 | 0.148492 | 0.177778 | 0.106667 | 0.104 | 0.900444 | 0.900444 | 0.900444 | 0.810667 | 0.810667 | 0.810667 | 0 | 0.004804 | 0.275308 | 3,734 | 92 | 101 | 40.586957 | 0.826681 | 0.033208 | 0 | 0.891892 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.040541 | 0 | 0.108108 | 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 |
450b8fc583d3caabf6fe7f5ffee32447c74b5ccd | 13,214 | py | Python | bibibi/trace.py | DrSxxG/geetest | b3b7d782fc6f9b3bad136344aa35d6df5a62eb76 | [
"MIT"
] | null | null | null | bibibi/trace.py | DrSxxG/geetest | b3b7d782fc6f9b3bad136344aa35d6df5a62eb76 | [
"MIT"
] | null | null | null | bibibi/trace.py | DrSxxG/geetest | b3b7d782fc6f9b3bad136344aa35d6df5a62eb76 | [
"MIT"
] | null | null | null | import random
import pickle
import re
def get_trace_fast(distance):
track = [[-random.randint(15, 22), -random.randint(22, 25), 0]]
track.append([0, 0, 0])
rand_x = 0
passtime = 40
for i in range(10):
rand_x += int(distance * random.randint(1, 2) / 10)
passtime += random.randint(10,... | 104.047244 | 2,695 | 0.556153 | 2,918 | 13,214 | 2.493831 | 0.306374 | 0.010994 | 0.011131 | 0.009345 | 0.072832 | 0.060052 | 0.052219 | 0.03889 | 0.02982 | 0.02982 | 0 | 0.452731 | 0.08264 | 13,214 | 127 | 2,696 | 104.047244 | 0.147583 | 0.046315 | 0 | 0.043478 | 0 | 0.086957 | 0.772203 | 0.76465 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054348 | false | 0.054348 | 0.032609 | 0 | 0.206522 | 0.076087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
18eb3a79ba81205a75211cfada12a019cf85f9aa | 19,907 | py | Python | src/steps/keras/architectures.py | kant/open-solution-mapping-challenge | c3b2058b80edbeef0633939ed8e33f181b77a9c5 | [
"MIT"
] | 200 | 2018-04-16T09:06:38.000Z | 2020-01-19T04:04:56.000Z | src/steps/keras/architectures.py | kant/open-solution-mapping-challenge | c3b2058b80edbeef0633939ed8e33f181b77a9c5 | [
"MIT"
] | 83 | 2018-04-22T21:50:22.000Z | 2019-12-18T03:29:59.000Z | src/steps/keras/architectures.py | kant/open-solution-mapping-challenge | c3b2058b80edbeef0633939ed8e33f181b77a9c5 | [
"MIT"
] | 56 | 2018-04-16T11:10:03.000Z | 2020-01-17T20:10:33.000Z | from keras import regularizers
from keras.activations import relu
from keras.layers import Input, Embedding, PReLU, Bidirectional, Lambda, \
CuDNNLSTM, CuDNNGRU, Conv1D, Dense, BatchNormalization, Dropout, SpatialDropout1D, \
GlobalMaxPool1D, GlobalAveragePooling1D, MaxPooling1D
from keras.layers.merge import a... | 47.285036 | 119 | 0.608228 | 2,305 | 19,907 | 4.817787 | 0.070282 | 0.050878 | 0.042143 | 0.039172 | 0.868348 | 0.85493 | 0.828456 | 0.80027 | 0.779018 | 0.770914 | 0 | 0.011491 | 0.326769 | 19,907 | 420 | 120 | 47.397619 | 0.817117 | 0.017833 | 0 | 0.729412 | 0 | 0 | 0.005795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079412 | false | 0 | 0.017647 | 0 | 0.176471 | 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 |
beca0766badad6c80c45f258af8d7476467f1664 | 11,206 | py | Python | tests/test_process.py | benoitc/pyuv | 51a2f8687e3b6cd54af5ce81aabfc00b7fe40a18 | [
"MIT"
] | 1 | 2020-01-21T11:10:38.000Z | 2020-01-21T11:10:38.000Z | tests/test_process.py | benoitc/pyuv | 51a2f8687e3b6cd54af5ce81aabfc00b7fe40a18 | [
"MIT"
] | null | null | null | tests/test_process.py | benoitc/pyuv | 51a2f8687e3b6cd54af5ce81aabfc00b7fe40a18 | [
"MIT"
] | null | null | null |
import os
try:
import pwd
except ImportError:
pwd = None
import sys
from common import platform_skip, unittest2
import common
import pyuv
class ProcessTest(unittest2.TestCase):
def test_process_basic(self):
self.exit_cb_called = 0
self.close_cb_called = 0
def proc_close_cb(proc)... | 40.309353 | 161 | 0.627075 | 1,523 | 11,206 | 4.327643 | 0.069599 | 0.052799 | 0.043696 | 0.072827 | 0.898953 | 0.877864 | 0.874678 | 0.86436 | 0.853892 | 0.852981 | 0 | 0.014008 | 0.261021 | 11,206 | 277 | 162 | 40.454874 | 0.78191 | 0 | 0 | 0.769231 | 0 | 0 | 0.049714 | 0.003838 | 0 | 0 | 0 | 0 | 0.138462 | 1 | 0.134615 | false | 0 | 0.026923 | 0 | 0.173077 | 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 |
bedda59ce9a7e5ef6a625b4b2e7b1ced216b91b7 | 6,705 | py | Python | python_modules/dagster-graphql/dagster_graphql_tests/graphql/snapshots/snap_test_execute_schedule.py | joeyfreund/dagster | e551ff4bbb2c42b497a3e1c28cfb51fd5f2b1c21 | [
"Apache-2.0"
] | 1 | 2020-12-20T18:39:17.000Z | 2020-12-20T18:39:17.000Z | python_modules/dagster-graphql/dagster_graphql_tests/graphql/snapshots/snap_test_execute_schedule.py | joeyfreund/dagster | e551ff4bbb2c42b497a3e1c28cfb51fd5f2b1c21 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster-graphql/dagster_graphql_tests/graphql/snapshots/snap_test_execute_schedule.py | joeyfreund/dagster | e551ff4bbb2c42b497a3e1c28cfb51fd5f2b1c21 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots[
'TestExecuteSchedule.test_tick_skip[sqlite_with_cli_api_run_launcher_in_process_env] 1'
] = {
'stats': {'ticksFailed': 0, 'ticksSkippe... | 32.707317 | 112 | 0.539299 | 564 | 6,705 | 6.170213 | 0.134752 | 0.110345 | 0.186207 | 0.191667 | 0.866667 | 0.862931 | 0.847414 | 0.807184 | 0.807184 | 0.807184 | 0 | 0.028737 | 0.278598 | 6,705 | 204 | 113 | 32.867647 | 0.690717 | 0.009247 | 0 | 0.507772 | 0 | 0 | 0.502711 | 0.170783 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010363 | 0 | 0.010363 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
8301a0d7c9d84d6f27427167df5c53b5615fe1f8 | 21,105 | py | Python | DataSet.py | jlimsf/FewShotMotionTransfer | 54fcef9d2c22d27bfea81a239b56d1a040205e86 | [
"Apache-2.0"
] | null | null | null | DataSet.py | jlimsf/FewShotMotionTransfer | 54fcef9d2c22d27bfea81a239b56d1a040205e86 | [
"Apache-2.0"
] | null | null | null | DataSet.py | jlimsf/FewShotMotionTransfer | 54fcef9d2c22d27bfea81a239b56d1a040205e86 | [
"Apache-2.0"
] | null | null | null | from torch.utils.data import dataset
import os
from PIL import Image
from torchvision.transforms import transforms
import torch
from torchvision.transforms import functional as F
import numpy as np
import glob
import random
import imageio
class BaseDataSet(dataset.Dataset):
def __init__(self, config):
sup... | 41.140351 | 167 | 0.573324 | 2,599 | 21,105 | 4.509427 | 0.060793 | 0.088737 | 0.038396 | 0.046416 | 0.904778 | 0.879266 | 0.865529 | 0.853157 | 0.843345 | 0.843345 | 0 | 0.015767 | 0.281782 | 21,105 | 512 | 168 | 41.220703 | 0.757422 | 0.050272 | 0 | 0.808743 | 0 | 0 | 0.058521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062842 | false | 0 | 0.027322 | 0.010929 | 0.161202 | 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 |
830cd6616e1ed15e089bbdc6c1a332394f8bd74d | 3,327 | py | Python | BigWorld/DamageCollection.py | kagurazakasanae/wows_replay_parser | 8b9067b82fd898a35f0f7c54d05b7cf4919ac11d | [
"MIT"
] | 4 | 2020-03-16T16:07:39.000Z | 2021-12-28T00:09:28.000Z | BigWorld/DamageCollection.py | kagurazakasanae/wows_replay_parser | 8b9067b82fd898a35f0f7c54d05b7cf4919ac11d | [
"MIT"
] | null | null | null | BigWorld/DamageCollection.py | kagurazakasanae/wows_replay_parser | 8b9067b82fd898a35f0f7c54d05b7cf4919ac11d | [
"MIT"
] | 1 | 2020-07-16T22:44:35.000Z | 2020-07-16T22:44:35.000Z | from BigWorld.BaseCollection import *
from BigWorld.DamageType import *
class DamageCollection(BaseCollection):
def getMap(self):
return {1:DAMAGE_MAIN_AP,
2:DAMAGE_MAIN_HE,
3:DAMAGE_AMK_AP,
4:DAMAGE_AMK_HE,
7:DAMAGE_SHIP_TORPEDO,
10:DAMAGE_AVIA... | 31.990385 | 98 | 0.60024 | 409 | 3,327 | 4.506112 | 0.144254 | 0.113945 | 0.106348 | 0.065111 | 0.837222 | 0.803581 | 0.803581 | 0.803581 | 0.803581 | 0.803581 | 0 | 0.056 | 0.323715 | 3,327 | 103 | 99 | 32.300971 | 0.763111 | 0 | 0 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08046 | false | 0 | 0.022989 | 0.057471 | 0.218391 | 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 |
83341c89a6762e547b5acf173eb819f610c73850 | 15,575 | py | Python | crtool/tests/test_views.py | cfpb/curriculum-review-tool | 3c55a55521078dadaa58439dcbfd564b54c43871 | [
"CC0-1.0"
] | 3 | 2020-07-21T02:59:52.000Z | 2021-08-18T18:42:48.000Z | crtool/tests/test_views.py | cfpb/curriculum-review-tool | 3c55a55521078dadaa58439dcbfd564b54c43871 | [
"CC0-1.0"
] | 6 | 2020-08-17T20:01:11.000Z | 2021-05-04T19:58:39.000Z | crtool/tests/test_views.py | cfpb/curriculum-review-tool | 3c55a55521078dadaa58439dcbfd564b54c43871 | [
"CC0-1.0"
] | 1 | 2021-02-20T10:29:35.000Z | 2021-02-20T10:29:35.000Z | import json
from django.test import RequestFactory, TestCase
from django.urls import reverse
from crtool.views import (
continue_review,
create_review,
get_review,
update_review,
)
class CreateReviewTest(TestCase):
def setUp(self):
self.factory = RequestFactory()
def post(self, pos... | 33.56681 | 100 | 0.575345 | 1,630 | 15,575 | 5.328834 | 0.102454 | 0.03592 | 0.044209 | 0.058715 | 0.82892 | 0.806931 | 0.772853 | 0.745913 | 0.723808 | 0.683974 | 0 | 0.048637 | 0.300353 | 15,575 | 463 | 101 | 33.639309 | 0.748463 | 0.034928 | 0 | 0.667532 | 0 | 0 | 0.245185 | 0.037388 | 0 | 0 | 0 | 0 | 0.135065 | 1 | 0.132468 | false | 0.085714 | 0.01039 | 0 | 0.18961 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.