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
9170343444c1172d149626528603249b2f63831c
370
py
Python
count_files.py
xuannianc/keras-retinanet
d1da39592042927aaf3b3eb905a308c327983bed
[ "Apache-2.0" ]
null
null
null
count_files.py
xuannianc/keras-retinanet
d1da39592042927aaf3b3eb905a308c327983bed
[ "Apache-2.0" ]
null
null
null
count_files.py
xuannianc/keras-retinanet
d1da39592042927aaf3b3eb905a308c327983bed
[ "Apache-2.0" ]
null
null
null
import csv vat_filenames = set() train_csv_filename = 'train_annotations.csv' val_csv_filename = 'val_annotations.csv' for csv_filename in [train_csv_filename, val_csv_filename]: for line in csv.reader(open(csv_filename)): vat_filename = line[0].split('/')[-1] vat_filenames.add(vat_filename) pr...
30.833333
59
0.735135
53
370
4.792453
0.396226
0.259843
0.125984
0
0
0
0
0
0
0
0
0.006349
0.148649
370
11
60
33.636364
0.8
0
0
0
0
0
0.110811
0.056757
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.1
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
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
1
917058eae76c95edb3644d77520d9eb1f3e8a1e9
8,908
py
Python
liberaforms/views/admin.py
ngi-nix/liberaforms
5882994736292e7ab34c4c9207805b307478a6c7
[ "MIT" ]
3
2021-09-02T16:45:42.000Z
2022-02-21T19:06:25.000Z
liberaforms/views/admin.py
ngi-nix/liberaforms
5882994736292e7ab34c4c9207805b307478a6c7
[ "MIT" ]
2
2021-08-17T04:13:10.000Z
2021-09-14T22:48:21.000Z
liberaforms/views/admin.py
ngi-nix/liberaforms
5882994736292e7ab34c4c9207805b307478a6c7
[ "MIT" ]
1
2021-08-17T07:13:15.000Z
2021-08-17T07:13:15.000Z
""" This file is part of LiberaForms. # SPDX-FileCopyrightText: 2020 LiberaForms.org # SPDX-License-Identifier: AGPL-3.0-or-later """ import os, json from flask import g, request, render_template, redirect from flask import session, flash, Blueprint from flask import send_file, after_this_request from flask_babel imp...
36.064777
84
0.635608
1,088
8,908
4.993566
0.153493
0.032211
0.03534
0.050064
0.441377
0.351555
0.283821
0.242039
0.207436
0.147985
0
0.001176
0.236529
8,908
246
85
36.211382
0.797677
0.03132
0
0.270833
0
0
0.182428
0.049464
0
0
0
0
0
1
0.088542
false
0
0.078125
0.03125
0.322917
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91705feef5320bb231c5d61b510ee6321361c934
29,405
py
Python
python/zephyr/datasets/score_dataset.py
r-pad/zephyr
c8f45e207c11bfc2b21df169db65a7df892d2848
[ "MIT" ]
18
2021-05-27T04:40:38.000Z
2022-02-08T19:46:31.000Z
python/zephyr/datasets/score_dataset.py
r-pad/zephyr
c8f45e207c11bfc2b21df169db65a7df892d2848
[ "MIT" ]
null
null
null
python/zephyr/datasets/score_dataset.py
r-pad/zephyr
c8f45e207c11bfc2b21df169db65a7df892d2848
[ "MIT" ]
2
2021-11-07T12:42:00.000Z
2022-03-01T12:51:54.000Z
import os, copy import cv2 from functools import partial import numpy as np import torch import torchvision from torch.utils.data import Dataset from zephyr.data_util import to_np, vectorize, img2uint8 from zephyr.utils import torch_norm_fast from zephyr.utils.mask_edge import getRendEdgeScore from zephyr...
44.218045
167
0.534875
3,604
29,405
4.122087
0.107658
0.017905
0.015751
0.018309
0.349825
0.287964
0.238018
0.186457
0.1458
0.132337
0
0.018448
0.347424
29,405
664
168
44.284639
0.755745
0.067948
0
0.168357
0
0
0.054035
0.001689
0
0
0
0
0.008114
1
0.016227
false
0.002028
0.036511
0.002028
0.070994
0.022312
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91708273d963214e9092983f15d8ef3340677e15
814
py
Python
em Python/Roteiro7/Roteiro7__testes_dijkstra.py
GuilhermeEsdras/Grafos
b6556c3d679496d576f65b798a1a584cd73e40f4
[ "MIT" ]
null
null
null
em Python/Roteiro7/Roteiro7__testes_dijkstra.py
GuilhermeEsdras/Grafos
b6556c3d679496d576f65b798a1a584cd73e40f4
[ "MIT" ]
null
null
null
em Python/Roteiro7/Roteiro7__testes_dijkstra.py
GuilhermeEsdras/Grafos
b6556c3d679496d576f65b798a1a584cd73e40f4
[ "MIT" ]
null
null
null
from Roteiro7.Roteiro7__funcoes import GrafoComPesos # .:: Arquivo de Testes do Algoritmo de Dijkstra ::. # # --------------------------------------------------------------------------- # grafo_aula = GrafoComPesos( ['E', 'A', 'B', 'C', 'D'], { 'E-A': 1, 'E-C': 10, 'A-B': 2, 'B...
22.611111
79
0.395577
103
814
3.048544
0.31068
0.025478
0.10828
0.025478
0.242038
0.210191
0
0
0
0
0
0.035413
0.271499
814
35
80
23.257143
0.494098
0.15602
0
0
0
0
0.208517
0.036711
0
0
0
0
0
1
0
false
0
0.034483
0
0.034483
0.172414
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1
9170b4be66538fa8e6767525842e58971759fde7
356
py
Python
QScreenCast/spyder/api.py
awinia-github/QScreenCast
09d343cae0a1c7f86faf28e08a62bd09976aaf2e
[ "MIT" ]
null
null
null
QScreenCast/spyder/api.py
awinia-github/QScreenCast
09d343cae0a1c7f86faf28e08a62bd09976aaf2e
[ "MIT" ]
null
null
null
QScreenCast/spyder/api.py
awinia-github/QScreenCast
09d343cae0a1c7f86faf28e08a62bd09976aaf2e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------------- # Copyright © Tom Hören # Licensed under the terms of the MIT License # ---------------------------------------------------------------------------- """ Python QtScreenCaster Spyder API. """ class ScreenResolutions...
25.428571
78
0.38764
23
356
6.043478
0.956522
0
0
0
0
0
0
0
0
0
0
0.053968
0.115169
356
13
79
27.384615
0.384127
0.775281
0
0
0
0
0.132353
0
0
0
0
0
0
1
0
false
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
2
917377628f552efbcce428798dd528e6e5fe7134
4,196
py
Python
setup.py
aaron19950321/ICOM
d5bd0705776c505dd1df0a1c76a07fee2d218394
[ "PSF-2.0", "BSD-3-Clause" ]
5
2018-10-09T13:39:31.000Z
2020-03-26T18:39:49.000Z
setup.py
aaron19950321/ICOM
d5bd0705776c505dd1df0a1c76a07fee2d218394
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
setup.py
aaron19950321/ICOM
d5bd0705776c505dd1df0a1c76a07fee2d218394
[ "PSF-2.0", "BSD-3-Clause" ]
2
2018-10-09T13:39:36.000Z
2018-10-09T23:18:39.000Z
import os, os.path import subprocess from distutils.core import setup from py2exe.build_exe import py2exe PROGRAM_NAME = 'icom_app' PROGRAM_DESC = 'simple icom app' NSIS_SCRIPT_TEMPLATE = r""" !define py2exeOutputDirectory '{output_dir}\' !define exe '{program_name}.exe' ; Uses solid LZMA compression. Ca...
30.18705
81
0.580076
479
4,196
4.966597
0.440501
0.050862
0.025221
0.027743
0.072299
0.02438
0
0
0
0
0
0.011955
0.322212
4,196
139
82
30.18705
0.824543
0.07817
0
0.019048
0
0
0.42719
0.013702
0
0
0
0
0
0
null
null
0
0.038095
null
null
0.019048
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
91762cf01e789ac760eedf4942c7a866b5214252
632
py
Python
src/lingcomp/farm/features.py
CharlottePouw/interpreting-complexity
b9a73c0aff18e4c6b4209a6511d00639494c70da
[ "Apache-2.0" ]
2
2020-12-18T12:26:22.000Z
2020-12-19T18:47:07.000Z
src/lingcomp/farm/features.py
CharlottePouw/interpreting-complexity
b9a73c0aff18e4c6b4209a6511d00639494c70da
[ "Apache-2.0" ]
null
null
null
src/lingcomp/farm/features.py
CharlottePouw/interpreting-complexity
b9a73c0aff18e4c6b4209a6511d00639494c70da
[ "Apache-2.0" ]
1
2021-05-19T13:39:45.000Z
2021-05-19T13:39:45.000Z
import torch from farm.data_handler.samples import Sample from farm.modeling.prediction_head import RegressionHead class FeaturesEmbeddingSample(Sample): def __init__(self, id, clear_text, tokenized=None, features=None, feat_embeds=None): super().__init__(id, clear_text, tokenized, features) self....
31.6
88
0.724684
77
632
5.74026
0.584416
0.036199
0.049774
0.090498
0
0
0
0
0
0
0
0.001934
0.181962
632
19
89
33.263158
0.852998
0.129747
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.25
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9176396ea025090d1e564363b18149e19bf37323
5,057
py
Python
manager/tests/api_view_test_classes.py
UN-ICC/icc-digital-id-manager
aca0109b3202b292145326ec5523ee8f24691a83
[ "Apache-2.0" ]
3
2021-02-03T16:37:19.000Z
2022-02-07T09:59:03.000Z
manager/tests/api_view_test_classes.py
UN-ICC/icc-digital-id-manager
aca0109b3202b292145326ec5523ee8f24691a83
[ "Apache-2.0" ]
null
null
null
manager/tests/api_view_test_classes.py
UN-ICC/icc-digital-id-manager
aca0109b3202b292145326ec5523ee8f24691a83
[ "Apache-2.0" ]
2
2021-02-10T16:03:31.000Z
2022-02-07T08:50:16.000Z
import pytest from rest_framework import status from rest_framework.test import APIClient class TestBase: __test__ = False path = None get_data = {} put_data = {} post_data = {} delete_data = {} requires_auth = True implements_retrieve = False implements_create = False implemen...
31.02454
84
0.721376
615
5,057
5.478049
0.117073
0.089047
0.12615
0.155833
0.648857
0.512615
0.453547
0.34669
0.304541
0.216978
0
0.022613
0.212972
5,057
162
85
31.216049
0.823869
0
0
0.441667
0
0
0.013447
0
0
0
0
0
0.05
1
0.166667
false
0
0.025
0.041667
0.508333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9176ff87702ba5b114dba78865e902b3d3390b83
2,259
py
Python
dashboard/dashboard.py
TrustyJAID/Toxic-Cogs
870d92067ba2a99b9ade2f957f945b95fdbc80f7
[ "MIT" ]
null
null
null
dashboard/dashboard.py
TrustyJAID/Toxic-Cogs
870d92067ba2a99b9ade2f957f945b95fdbc80f7
[ "MIT" ]
null
null
null
dashboard/dashboard.py
TrustyJAID/Toxic-Cogs
870d92067ba2a99b9ade2f957f945b95fdbc80f7
[ "MIT" ]
null
null
null
from collections import defaultdict import discord from redbot.core import Config, checks, commands from redbot.core.bot import Red from redbot.core.utils.chat_formatting import box, humanize_list, inline from abc import ABC # ABC Mixins from dashboard.abc.abc import MixinMeta from dashboard.abc.mixin impor...
30.945205
110
0.657371
248
2,259
5.895161
0.516129
0.062244
0.05472
0.030096
0
0
0
0
0
0
0
0.019197
0.239044
2,259
72
111
31.375
0.831297
0.107127
0
0
0
0
0.057453
0
0
0
0
0
0
1
0.06
false
0
0.26
0.02
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91773a1b99193243fe941616b2fc5339f203eb98
410
py
Python
algorithms/162.Find-Peak-Element/Python/solution_2.py
hopeness/leetcode
496455fa967f0704d729b4014f92f52b1d69d690
[ "MIT" ]
null
null
null
algorithms/162.Find-Peak-Element/Python/solution_2.py
hopeness/leetcode
496455fa967f0704d729b4014f92f52b1d69d690
[ "MIT" ]
null
null
null
algorithms/162.Find-Peak-Element/Python/solution_2.py
hopeness/leetcode
496455fa967f0704d729b4014f92f52b1d69d690
[ "MIT" ]
null
null
null
""" https://leetcode.com/problems/find-peak-element/submissions/ """ from typing import List class Solution: def findPeakElement(self, nums: List[int]) -> int: l, r = 0, len(nums)-1 while l < r: lmid = (l + r) // 2 rmid = lmid + 1 if nums[lmid] < nums[rmid]: ...
22.777778
60
0.473171
51
410
3.803922
0.607843
0.030928
0
0
0
0
0
0
0
0
0
0.024292
0.397561
410
17
61
24.117647
0.761134
0.146341
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9177bf15b6da687a6ae646c46fc3addf65d8004a
2,684
py
Python
data_loader.py
vinbigdata-medical/MIDL2021-Xray-Classification
51359126d07573053059c36e3cd95a7fd7100e0e
[ "MIT" ]
4
2021-04-14T08:04:08.000Z
2021-08-10T10:15:00.000Z
data_loader.py
vinbigdata-medical/MIDL2021-Xray-Classification
51359126d07573053059c36e3cd95a7fd7100e0e
[ "MIT" ]
1
2022-01-13T12:51:31.000Z
2022-01-13T12:51:31.000Z
data_loader.py
vinbigdata-medical/MIDL2021-Xray-Classification
51359126d07573053059c36e3cd95a7fd7100e0e
[ "MIT" ]
null
null
null
from torchvision.datasets import ImageFolder from torchvision import transforms import random import os import torch from torch.utils.data.dataloader import DataLoader from utils import constants, get_default_device from image_folder_with_path import ImageFolderWithPaths def to_device(data, device): """Move tensor...
37.277778
118
0.770492
351
2,684
5.663818
0.287749
0.045775
0.059859
0.091549
0.372233
0.372233
0.248491
0.248491
0.248491
0.191147
0
0.008651
0.138599
2,684
72
119
37.277778
0.851211
0.175857
0
0.139535
0
0
0
0
0
0
0
0
0
1
0.093023
false
0
0.186047
0
0.372093
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9177c031d705388dfe8031bad5b727ad1032aa9e
4,254
py
Python
calliope/test/test_analysis.py
sjpfenninger/calliope
a4e49c3b7d37f908bafc84543510eec0b4cf5d9f
[ "Apache-2.0" ]
1
2019-11-11T15:50:16.000Z
2019-11-11T15:50:16.000Z
calliope/test/test_analysis.py
mhdella/calliope
a4e49c3b7d37f908bafc84543510eec0b4cf5d9f
[ "Apache-2.0" ]
null
null
null
calliope/test/test_analysis.py
mhdella/calliope
a4e49c3b7d37f908bafc84543510eec0b4cf5d9f
[ "Apache-2.0" ]
1
2019-11-11T15:50:18.000Z
2019-11-11T15:50:18.000Z
# import matplotlib # matplotlib.use('Qt5Agg') # Prevents `Invalid DISPLAY variable` errors import pytest import tempfile from calliope import Model from calliope.utils import AttrDict from calliope import analysis from . import common from .common import assert_almost_equal, solver, solver_io import matplotlib.p...
36.672414
99
0.603197
485
4,254
5.103093
0.305155
0.06303
0.041212
0.027475
0.40404
0.270707
0.245657
0.217374
0.217374
0.217374
0
0.018945
0.305125
4,254
115
100
36.991304
0.818336
0.132581
0
0.166667
0
0
0.211214
0.011976
0
0
0
0.008696
0.095238
1
0.142857
false
0
0.095238
0
0.27381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
917a6b3b8a05d7c695e7c6d3cb38a9324f5ab905
302
py
Python
mol/data/reader.py
TzuTingWei/mol
9499925443f389d8e960b6d656f2953d21df3e3b
[ "MIT" ]
null
null
null
mol/data/reader.py
TzuTingWei/mol
9499925443f389d8e960b6d656f2953d21df3e3b
[ "MIT" ]
null
null
null
mol/data/reader.py
TzuTingWei/mol
9499925443f389d8e960b6d656f2953d21df3e3b
[ "MIT" ]
null
null
null
import os from mol.util import read_xyz dirname = os.path.dirname(os.path.abspath(__file__)) filename = os.path.join(dirname, 'look_and_say.dat') with open(filename, 'r') as handle: look_and_say = handle.read() def get_molecule(filename): return read_xyz(os.path.join(dirname, filename + ".xyz"))
25.166667
58
0.748344
49
302
4.387755
0.530612
0.111628
0.12093
0.15814
0
0
0
0
0
0
0
0
0.109272
302
11
59
27.454545
0.799257
0
0
0
0
0
0.069536
0
0
0
0
0
0
1
0.125
false
0
0.25
0.125
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
917a93c6b5689f031c6779f12176c0d60e186575
13,198
py
Python
cinder/tests/unit/targets/test_spdknvmf.py
lightsey/cinder
e03d68e42e57a63f8d0f3e177fb4287290612b24
[ "Apache-2.0" ]
3
2015-04-02T21:44:36.000Z
2016-04-29T21:19:04.000Z
cinder/tests/unit/targets/test_spdknvmf.py
lightsey/cinder
e03d68e42e57a63f8d0f3e177fb4287290612b24
[ "Apache-2.0" ]
3
2016-04-29T21:45:26.000Z
2016-05-04T19:41:23.000Z
cinder/tests/unit/targets/test_spdknvmf.py
lightsey/cinder
e03d68e42e57a63f8d0f3e177fb4287290612b24
[ "Apache-2.0" ]
4
2016-01-27T00:25:52.000Z
2021-03-25T19:54:08.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
32.268949
78
0.539855
1,342
13,198
5.076006
0.195976
0.051527
0.020992
0.027452
0.4931
0.430123
0.412214
0.391368
0.381092
0.361568
0
0.057786
0.329974
13,198
408
79
32.348039
0.712541
0.04137
0
0.451253
0
0
0.233758
0.048113
0
0
0.000475
0
0.022284
1
0.050139
false
0.002786
0.016713
0.002786
0.111421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
917afbcd55aefac0dcfd4785b8010a4e43b0d1c3
4,204
py
Python
server/algos/euler/transformer.py
yizhang7210/Acre
c98cf8a4fdfb223a1958e8e61df759f889a1b13f
[ "MIT" ]
2
2017-11-27T21:55:21.000Z
2017-12-30T03:34:40.000Z
server/algos/euler/transformer.py
yizhang7210/Acre
c98cf8a4fdfb223a1958e8e61df759f889a1b13f
[ "MIT" ]
30
2017-09-06T12:00:08.000Z
2018-06-20T22:47:46.000Z
server/algos/euler/transformer.py
yizhang7210/Acre
c98cf8a4fdfb223a1958e8e61df759f889a1b13f
[ "MIT" ]
1
2021-04-05T13:59:37.000Z
2021-04-05T13:59:37.000Z
""" This is algos.euler.transformer module. This module is responsible for transforming raw candle data into training samples usable to the Euler algorithm. """ import datetime import decimal from algos.euler.models import training_samples as ts from core.models import instruments from datasource.models import...
35.033333
80
0.674833
553
4,204
4.943942
0.251356
0.075713
0.030724
0.018654
0.17959
0.148135
0.148135
0.148135
0.087783
0.046086
0
0.005411
0.252617
4,204
119
81
35.327731
0.864736
0.41746
0
0.04
0
0
0.006548
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
917b4bfe42198de5b3e0fb37cbc4743cf9cac201
142
py
Python
diagrams/outscale/__init__.py
analyticsftw/diagrams
217af329a323084bb98031ac1768bc2353e6d9b6
[ "MIT" ]
17,037
2020-02-03T01:30:30.000Z
2022-03-31T18:09:15.000Z
diagrams/outscale/__init__.py
analyticsftw/diagrams
217af329a323084bb98031ac1768bc2353e6d9b6
[ "MIT" ]
529
2020-02-03T10:43:41.000Z
2022-03-31T17:33:08.000Z
diagrams/outscale/__init__.py
analyticsftw/diagrams
217af329a323084bb98031ac1768bc2353e6d9b6
[ "MIT" ]
1,068
2020-02-05T11:54:29.000Z
2022-03-30T23:28:55.000Z
from diagrams import Node class _Outscale(Node): _provider = "outscale" _icon_dir = "resources/outscale" fontcolor = "#ffffff"
15.777778
36
0.690141
15
142
6.266667
0.8
0
0
0
0
0
0
0
0
0
0
0
0.211268
142
8
37
17.75
0.839286
0
0
0
0
0
0.232394
0
0
0
0
0
0
1
0
false
0
0.2
0
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
917b8eb1f8726a411ad6e99afecc5eaca421cc08
1,793
py
Python
misc/python/mango/application/main_driver/logstream.py
pymango/pymango
b55f831f0194b214e746b2dfb4d9c6671a1abc38
[ "BSD-2-Clause" ]
3
2020-05-11T03:23:17.000Z
2021-03-16T09:01:48.000Z
misc/python/mango/application/main_driver/logstream.py
pymango/pymango
b55f831f0194b214e746b2dfb4d9c6671a1abc38
[ "BSD-2-Clause" ]
null
null
null
misc/python/mango/application/main_driver/logstream.py
pymango/pymango
b55f831f0194b214e746b2dfb4d9c6671a1abc38
[ "BSD-2-Clause" ]
2
2017-03-04T11:03:40.000Z
2020-08-01T10:01:36.000Z
__doc__ = \ """ ======================================================================================= Main-driver :obj:`LogStream` variables (:mod:`mango.application.main_driver.logstream`) ======================================================================================= .. currentmodule:: mango.application.ma...
25.985507
108
0.665365
215
1,793
5.288372
0.362791
0.123131
0.118734
0.104661
0.394019
0.332454
0.332454
0.174142
0.077397
0.077397
0
0
0.126603
1,793
68
109
26.367647
0.726054
0.211378
0
0.095238
0
0
0.008721
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
917c31411ccb8a75122b971cca9ce661e5940151
9,680
py
Python
ucdev/cy7c65211/header.py
luftek/python-ucdev
8d3c46d25551f1237e6a2f7a90d54c24bcb1d4f9
[ "MIT" ]
11
2015-07-08T01:28:01.000Z
2022-01-26T14:29:47.000Z
ucdev/cy7c65211/header.py
luftek/python-ucdev
8d3c46d25551f1237e6a2f7a90d54c24bcb1d4f9
[ "MIT" ]
5
2017-12-07T15:04:00.000Z
2021-06-02T14:47:14.000Z
ucdev/cy7c65211/header.py
tai/python-ucdev
8d3c46d25551f1237e6a2f7a90d54c24bcb1d4f9
[ "MIT" ]
4
2017-02-18T18:20:13.000Z
2022-03-23T16:21:20.000Z
# -*- coding: utf-8-unix -*- import platform ###################################################################### # Platform specific headers ###################################################################### if platform.system() == 'Linux': src = """ typedef bool BOOL; """ #############################...
25.882353
70
0.71095
1,210
9,680
5.194215
0.222314
0.058552
0.102466
0.078918
0.283055
0.258552
0.181543
0.16245
0.155768
0.135879
0
0.044482
0.208058
9,680
373
71
25.951743
0.775372
0.006921
0
0.33795
0
0
0.990889
0.152749
0
0
0.006432
0
0
1
0
false
0
0.00277
0
0.00277
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
917c654b7225932aa925e3dba908d54b0c600e75
565
py
Python
deep_qa/layers/wrappers/output_mask.py
richarajpal/deep_qa
d918335a1bed71b9cfccf1d5743321cee9c61952
[ "Apache-2.0" ]
459
2017-02-08T13:40:17.000Z
2021-12-12T12:57:48.000Z
deep_qa/layers/wrappers/output_mask.py
richarajpal/deep_qa
d918335a1bed71b9cfccf1d5743321cee9c61952
[ "Apache-2.0" ]
176
2017-01-26T01:19:41.000Z
2018-04-22T19:16:01.000Z
deep_qa/layers/wrappers/output_mask.py
richarajpal/deep_qa
d918335a1bed71b9cfccf1d5743321cee9c61952
[ "Apache-2.0" ]
154
2017-01-26T01:00:30.000Z
2021-02-05T10:44:42.000Z
from overrides import overrides from ..masked_layer import MaskedLayer class OutputMask(MaskedLayer): """ This Layer is purely for debugging. You can wrap this on a layer's output to get the mask output by that layer as a model output, for easier visualization of what the model is actually doing. ...
26.904762
98
0.695575
82
565
4.768293
0.634146
0.061381
0.071611
0.092072
0
0
0
0
0
0
0
0
0.242478
565
20
99
28.25
0.913551
0.474336
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0.222222
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
917d1911394719c31fdc868c9c05aa1015cc7576
1,316
py
Python
ljmc/energy.py
karnesh/Monte-Carlo-LJ
f33f08c247df963ca48b9d9f8456e26c0bb19923
[ "MIT" ]
null
null
null
ljmc/energy.py
karnesh/Monte-Carlo-LJ
f33f08c247df963ca48b9d9f8456e26c0bb19923
[ "MIT" ]
null
null
null
ljmc/energy.py
karnesh/Monte-Carlo-LJ
f33f08c247df963ca48b9d9f8456e26c0bb19923
[ "MIT" ]
null
null
null
""" energy.py function that computes the inter particle energy It uses truncated 12-6 Lennard Jones potential All the variables are in reduced units. """ def distance(atom1, atom2): """ Computes the square of inter particle distance Minimum image convention is applied for distance calculatio...
19.352941
101
0.544833
180
1,316
3.983333
0.483333
0.041841
0.050209
0.033473
0
0
0
0
0
0
0
0.041002
0.332827
1,316
67
102
19.641791
0.775626
0.037234
0
0
0
0
0.023952
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
917d24af3dd098f693a886046f82e8514c7bd83a
2,628
py
Python
CEST/Evaluation/lorenzian.py
ludgerradke/bMRI
dcf93749bb2fba3700e6bcfde691355d55090951
[ "MIT" ]
null
null
null
CEST/Evaluation/lorenzian.py
ludgerradke/bMRI
dcf93749bb2fba3700e6bcfde691355d55090951
[ "MIT" ]
null
null
null
CEST/Evaluation/lorenzian.py
ludgerradke/bMRI
dcf93749bb2fba3700e6bcfde691355d55090951
[ "MIT" ]
null
null
null
import numpy as np import math from scipy.optimize import curve_fit def calc_lorentzian(CestCurveS, x_calcentires, mask, config): (rows, colums, z_slices, entires) = CestCurveS.shape lorenzian = {key: np.zeros((rows, colums, z_slices), dtype=float) for key in config.lorenzian_keys} for k in range(z_slice...
45.310345
117
0.459665
324
2,628
3.530864
0.287037
0.020979
0.028846
0.034965
0.189685
0.081294
0.034091
0.034091
0.034091
0.034091
0
0.057516
0.417808
2,628
57
118
46.105263
0.690196
0.060122
0
0
0
0
0.029197
0
0
0
0
0
0
1
0.088889
false
0.022222
0.066667
0.022222
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
917ddc860e3cb5987c6d77cf2eda4923d9234d7a
7,572
py
Python
components/network_models_LSTU.py
neuralchen/CooGAN
3155cbb5a283226474356d3a9f01918609ddd4ec
[ "MIT" ]
12
2020-12-09T07:04:12.000Z
2022-03-01T03:30:46.000Z
components/network_models_LSTU.py
neuralchen/CooGAN
3155cbb5a283226474356d3a9f01918609ddd4ec
[ "MIT" ]
null
null
null
components/network_models_LSTU.py
neuralchen/CooGAN
3155cbb5a283226474356d3a9f01918609ddd4ec
[ "MIT" ]
4
2020-12-23T03:57:53.000Z
2022-03-28T13:56:14.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ############################################################# # File: network_models_LSTU.py # Created Date: Tuesday February 25th 2020 # Author: Chen Xuanhong # Email: chenxuanhongzju@outlook.com # Last Modified: Tuesday, 25th February 2020 9:57:06 pm # Modified By: Chen ...
39.233161
118
0.58822
1,119
7,572
3.748883
0.186774
0.026698
0.013349
0.01907
0.366865
0.325387
0.29702
0.257926
0.20739
0.189273
0
0.026734
0.268885
7,572
192
119
39.4375
0.731033
0.148838
0
0.25
0
0
0.012863
0
0
0
0
0
0
1
0.064286
false
0.035714
0.05
0
0.192857
0.007143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
917e0cc4efaf369d4d17aeaeb0fc5c964a039793
760
py
Python
slender/tests/list/test_keep_if.py
torokmark/slender
3bf815e22f7802ba48706f31ba608cf609e23e68
[ "Apache-2.0" ]
1
2020-01-10T21:51:46.000Z
2020-01-10T21:51:46.000Z
slender/tests/list/test_keep_if.py
torokmark/slender
3bf815e22f7802ba48706f31ba608cf609e23e68
[ "Apache-2.0" ]
null
null
null
slender/tests/list/test_keep_if.py
torokmark/slender
3bf815e22f7802ba48706f31ba608cf609e23e68
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from expects import expect, equal, raise_error from slender import List class TestKeepIf(TestCase): def test_keep_if_if_func_is_none(self): e = List([1, 2, 3, 4, 5]) expect(e.keep_if(None).to_list()).to(equal([1, 2, 3, 4, 5])) def test_keep_if_if_func_is_valid...
28.148148
76
0.628947
133
760
3.323308
0.285714
0.108597
0.033937
0.045249
0.4819
0.475113
0.475113
0.350679
0.350679
0.246606
0
0.046667
0.210526
760
26
77
29.230769
0.69
0
0
0.1875
0
0
0.003968
0
0
0
0
0
0
1
0.25
false
0
0.1875
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9181932ab3632366f38b401fcbe5e47425259914
6,809
py
Python
test/functional/bchn-txbroadcastinterval.py
1Crazymoney/bitcoin-cash-node
8f82823b3c5d4bcb401b0e4e6b464c1228f936e1
[ "MIT" ]
1
2021-11-24T03:54:05.000Z
2021-11-24T03:54:05.000Z
test/functional/bchn-txbroadcastinterval.py
1Crazymoney/bitcoin-cash-node
8f82823b3c5d4bcb401b0e4e6b464c1228f936e1
[ "MIT" ]
null
null
null
test/functional/bchn-txbroadcastinterval.py
1Crazymoney/bitcoin-cash-node
8f82823b3c5d4bcb401b0e4e6b464c1228f936e1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2020 The Bitcoin Cash Node developers # Author matricz # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Test that inv messages are sent according to an exponential distribution with scale -...
46.958621
110
0.679101
800
6,809
5.70625
0.34125
0.045783
0.050602
0.035487
0.147207
0.147207
0.132749
0.121796
0.121796
0.121796
0
0.020995
0.223528
6,809
144
111
47.284722
0.842444
0.321339
0
0.121951
0
0
0.143231
0.051747
0
0
0
0
0.036585
1
0.085366
false
0
0.060976
0
0.170732
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91820c594379b0529582b42b9cc165d4cd520738
33,871
py
Python
tests/compute/test_sampler.py
buaaqt/dgl
64f6f3c1a8c2c3e08ec0750b902f3e2c63fd2cd7
[ "Apache-2.0" ]
1
2020-07-21T03:03:15.000Z
2020-07-21T03:03:15.000Z
tests/compute/test_sampler.py
buaaqt/dgl
64f6f3c1a8c2c3e08ec0750b902f3e2c63fd2cd7
[ "Apache-2.0" ]
null
null
null
tests/compute/test_sampler.py
buaaqt/dgl
64f6f3c1a8c2c3e08ec0750b902f3e2c63fd2cd7
[ "Apache-2.0" ]
null
null
null
import backend as F import numpy as np import scipy as sp import dgl from dgl import utils import unittest from numpy.testing import assert_array_equal np.random.seed(42) def generate_rand_graph(n): arr = (sp.sparse.random(n, n, density=0.1, format='coo') != 0).astype(np.int64) return dgl.DGLGraph(arr, readon...
46.783149
103
0.575507
4,447
33,871
4.093996
0.063414
0.028562
0.018675
0.020598
0.818412
0.778919
0.754092
0.730913
0.716522
0.703614
0
0.016596
0.322193
33,871
723
104
46.847856
0.776418
0.059638
0
0.686242
1
0
0.016981
0
0
0
0
0
0.147651
1
0.031879
false
0.001678
0.011745
0.001678
0.04698
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
9183b4d3330e5dc6c4da3188d85901cf1703c4d4
3,178
py
Python
plugins/voila/voila/__init__.py
srinivasreddych/aws-orbit-workbench
2d154addff58d26f5459a73c06148aaf5e9fad46
[ "Apache-2.0" ]
94
2021-03-19T19:55:11.000Z
2022-03-31T19:50:01.000Z
plugins/voila/voila/__init__.py
srinivasreddych/aws-orbit-workbench
2d154addff58d26f5459a73c06148aaf5e9fad46
[ "Apache-2.0" ]
410
2021-03-19T18:04:48.000Z
2022-03-22T13:56:53.000Z
plugins/voila/voila/__init__.py
srinivasreddych/aws-orbit-workbench
2d154addff58d26f5459a73c06148aaf5e9fad46
[ "Apache-2.0" ]
24
2021-03-19T23:16:23.000Z
2022-03-04T01:05:18.000Z
# Copyright Amazon.com, Inc. or its affiliates. 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 # # Unl...
37.833333
116
0.701385
425
3,178
5.04
0.36
0.071895
0.056022
0.029412
0.170868
0.118581
0.096172
0.076564
0.076564
0.076564
0
0.002746
0.197923
3,178
83
117
38.289157
0.837583
0.193518
0
0.163934
0
0
0.131083
0.034144
0
0
0
0
0
1
0.032787
false
0
0.114754
0
0.147541
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91848acd7c9a76b40212893d24a66f1267e0b221
4,316
py
Python
tools/generate_driver_list.py
aarunsai81/netapp
8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba
[ "Apache-2.0" ]
11
2015-08-25T13:11:18.000Z
2020-10-15T11:29:20.000Z
tools/generate_driver_list.py
aarunsai81/netapp
8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba
[ "Apache-2.0" ]
5
2018-01-25T11:31:56.000Z
2019-05-06T23:13:35.000Z
tools/generate_driver_list.py
aarunsai81/netapp
8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba
[ "Apache-2.0" ]
11
2015-02-20T18:48:24.000Z
2021-01-30T20:26:18.000Z
#! /usr/bin/env python # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
30.609929
78
0.621177
550
4,316
4.690909
0.345455
0.063953
0.048837
0.029457
0.143798
0.087209
0.066279
0
0
0
0
0.001225
0.243281
4,316
140
79
30.828571
0.788732
0.202271
0
0.069767
0
0
0.137295
0.026932
0
0
0
0
0
1
0.116279
false
0
0.046512
0.011628
0.197674
0.081395
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9184ffff91bd0e91c571446c2eb2a2d6fb77ed63
126
py
Python
Disp_pythonScript.py
maniegley/python
0e3a98cbff910cc78b2c0386a9cca6c5bb20eefc
[ "MIT" ]
1
2019-05-04T03:20:44.000Z
2019-05-04T03:20:44.000Z
Disp_pythonScript.py
maniegley/python
0e3a98cbff910cc78b2c0386a9cca6c5bb20eefc
[ "MIT" ]
null
null
null
Disp_pythonScript.py
maniegley/python
0e3a98cbff910cc78b2c0386a9cca6c5bb20eefc
[ "MIT" ]
null
null
null
import sys f = open("/home/vader/Desktop/test.py", "r") #read all file python_script = f.read() print(python_script)
15.75
44
0.666667
20
126
4.1
0.8
0.292683
0
0
0
0
0
0
0
0
0
0
0.174603
126
7
45
18
0.788462
0.103175
0
0
0
0
0.254545
0.245455
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
9185566c87d7284eaa28e018591be112687ee8a6
2,001
py
Python
email_file.py
grussr/email-file-attachment
afa65b679b3c88b419643e216b9942fdefeaf9fc
[ "MIT" ]
null
null
null
email_file.py
grussr/email-file-attachment
afa65b679b3c88b419643e216b9942fdefeaf9fc
[ "MIT" ]
null
null
null
email_file.py
grussr/email-file-attachment
afa65b679b3c88b419643e216b9942fdefeaf9fc
[ "MIT" ]
null
null
null
import smtplib import argparse from os.path import basename from email.mime.application import MIMEApplication from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.utils import COMMASPACE, formatdate import configparser import json def send_mail(send_from, send_to, subject, te...
32.274194
155
0.696152
254
2,001
5.314961
0.350394
0.077037
0.056296
0.020741
0.08
0
0
0
0
0
0
0.003643
0.176912
2,001
61
156
32.803279
0.816029
0.011994
0
0
0
0
0.108861
0
0
0
0
0
0.02
0
null
null
0.08
0.18
null
null
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
91860dad187d68b19d0b7553594210d867a8ccc4
70
py
Python
logs/constants.py
gonzatorte/sw-utils
767ec4aa8cbe1e0143f601482024ba1d9b76da64
[ "MIT" ]
null
null
null
logs/constants.py
gonzatorte/sw-utils
767ec4aa8cbe1e0143f601482024ba1d9b76da64
[ "MIT" ]
null
null
null
logs/constants.py
gonzatorte/sw-utils
767ec4aa8cbe1e0143f601482024ba1d9b76da64
[ "MIT" ]
null
null
null
import logging TRACE_LVL = int( (logging.DEBUG + logging.INFO) / 2 )
17.5
53
0.7
10
70
4.8
0.8
0
0
0
0
0
0
0
0
0
0
0.017241
0.171429
70
3
54
23.333333
0.810345
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
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
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
9186884237c62f08e8e5c91cdb86f2cf165aa0f6
173
py
Python
examples/simple_lakehouse/simple_lakehouse/repo.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
2
2021-06-21T17:50:26.000Z
2021-06-21T19:14:23.000Z
examples/simple_lakehouse/simple_lakehouse/repo.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
1
2021-06-21T18:30:02.000Z
2021-06-25T21:18:39.000Z
examples/simple_lakehouse/simple_lakehouse/repo.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
1
2021-08-18T17:21:57.000Z
2021-08-18T17:21:57.000Z
from dagster import repository from simple_lakehouse.pipelines import simple_lakehouse_pipeline @repository def simple_lakehouse(): return [simple_lakehouse_pipeline]
21.625
64
0.849711
20
173
7.05
0.5
0.425532
0.326241
0
0
0
0
0
0
0
0
0
0.109827
173
7
65
24.714286
0.915584
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
true
0
0.4
0.2
0.8
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
1
1
0
0
8
9186f6c899c8a19e537fae60a274b21c711b183a
7,649
py
Python
demos/odyssey/dodyssey.py
steingabelgaard/reportlab
b9a537e8386fb4b4b80e9ec89e0cdf392dbd6f61
[ "BSD-3-Clause" ]
55
2019-09-21T02:45:18.000Z
2021-12-10T13:38:51.000Z
demos/odyssey/dodyssey.py
cnauroth/reportlab
377d4ff58491dc6de48551e730c3d7f72db783e5
[ "BSD-3-Clause" ]
4
2019-09-26T03:16:50.000Z
2021-12-10T13:40:49.000Z
demos/odyssey/dodyssey.py
cnauroth/reportlab
377d4ff58491dc6de48551e730c3d7f72db783e5
[ "BSD-3-Clause" ]
26
2019-09-25T03:54:30.000Z
2022-03-21T14:03:12.000Z
#Copyright ReportLab Europe Ltd. 2000-2017 #see license.txt for license details __version__='3.3.0' __doc__='' #REPORTLAB_TEST_SCRIPT import sys, copy, os from reportlab.platypus import * _NEW_PARA=os.environ.get('NEW_PARA','0')[0] in ('y','Y','1') _REDCAP=int(os.environ.get('REDCAP','0')) _CALLBACK=os.environ.get('CA...
31.093496
104
0.587397
1,060
7,649
4.195283
0.248113
0.03463
0.010119
0.006746
0.204183
0.117158
0.07848
0.061839
0.061839
0.037104
0
0.024272
0.245915
7,649
245
105
31.220408
0.746706
0.023532
0
0.211823
0
0
0.126759
0.009782
0
0
0
0
0
1
0.083744
false
0
0.054187
0
0.147783
0.049261
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9187649de93ea28a41bff761a58a3a5d39922848
764
py
Python
tests/test_fred_fred_view.py
Traceabl3/GamestonkTerminal
922353cade542ce3f62701e10d816852805b9386
[ "MIT" ]
null
null
null
tests/test_fred_fred_view.py
Traceabl3/GamestonkTerminal
922353cade542ce3f62701e10d816852805b9386
[ "MIT" ]
null
null
null
tests/test_fred_fred_view.py
Traceabl3/GamestonkTerminal
922353cade542ce3f62701e10d816852805b9386
[ "MIT" ]
null
null
null
""" econ/fred_view.py tests """ import unittest from unittest import mock from io import StringIO import pandas as pd # pylint: disable=unused-import from gamestonk_terminal.econ.fred_view import get_fred_data # noqa: F401 fred_data_mock = """ ,GDP 2019-01-01,21115.309 2019-04-01,21329.877 2019-07-01,21540.325 2019-...
24.645161
80
0.747382
128
764
4.257813
0.492188
0.102752
0.066055
0.091743
0.106422
0
0
0
0
0
0
0.199102
0.125654
764
30
81
25.466667
0.616766
0.086387
0
0
0
0
0.33913
0.071014
0
0
0
0
0
1
0.045455
false
0
0.227273
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9187aae337945bbf532915814ef30a4e08766d0c
10,938
py
Python
python27/1.0/lib/linux/gevent/pool.py
jt6562/XX-Net
7b78e4820a3c78c3ba3e75b3917129d17f00e9fc
[ "BSD-2-Clause" ]
2
2017-04-24T03:04:45.000Z
2017-09-19T03:38:37.000Z
python27/1.0/lib/linux/gevent/pool.py
TDUncle/XX-Net
24b2af60dc0abc1c26211813064bb14c1e22bac8
[ "BSD-2-Clause" ]
null
null
null
python27/1.0/lib/linux/gevent/pool.py
TDUncle/XX-Net
24b2af60dc0abc1c26211813064bb14c1e22bac8
[ "BSD-2-Clause" ]
1
2019-04-19T09:11:54.000Z
2019-04-19T09:11:54.000Z
# Copyright (c) 2009-2010 Denis Bilenko. See LICENSE for details. """Managing greenlets in a group. The :class:`Group` class in this module abstracts a group of running greenlets. When a greenlet dies, it's automatically removed from the group. The :class:`Pool` which a subclass of :class:`Group` provides a way to li...
31.162393
132
0.598555
1,288
10,938
4.944099
0.189441
0.028266
0.024026
0.020729
0.318781
0.281721
0.24152
0.226445
0.203832
0.17902
0
0.00329
0.305266
10,938
350
133
31.251429
0.834715
0.037484
0
0.403162
0
0
0.022311
0.002491
0
0
0
0.002857
0.007905
0
null
null
0.011858
0.027668
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9187b814b570a612e2b93ab230ce46d039efd3f1
4,974
py
Python
lecarb/estimator/lw/lw_tree.py
anshumandutt/AreCELearnedYet
e2286c3621dea8e4961057b6197c1e14e75aea5a
[ "MIT" ]
34
2020-12-14T01:21:29.000Z
2022-03-29T04:52:46.000Z
lecarb/estimator/lw/lw_tree.py
anshumandutt/AreCELearnedYet
e2286c3621dea8e4961057b6197c1e14e75aea5a
[ "MIT" ]
5
2020-12-28T16:06:22.000Z
2022-01-19T18:28:53.000Z
lecarb/estimator/lw/lw_tree.py
anshumandutt/AreCELearnedYet
e2286c3621dea8e4961057b6197c1e14e75aea5a
[ "MIT" ]
12
2021-02-08T17:50:13.000Z
2022-03-28T11:09:06.000Z
import time import logging from typing import Dict, Any, Tuple import pickle import numpy as np import xgboost as xgb from .common import load_lw_dataset, encode_query, decode_label from ..postgres import Postgres from ..estimator import Estimator from ..utils import evaluate, run_test from ...dataset.dataset import ...
34.783217
130
0.65963
696
4,974
4.518678
0.242816
0.015898
0.01717
0.026709
0.231797
0.201908
0.133545
0.103657
0.081399
0.081399
0
0.007366
0.208484
4,974
142
131
35.028169
0.791466
0.06916
0
0.137255
0
0.019608
0.14208
0.032855
0
0
0
0
0
1
0.068627
false
0
0.127451
0
0.245098
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9187ef6ed78f1f18095fecd6ea3ce015376d4dfc
2,525
py
Python
fsim/utils.py
yamasampo/fsim
30100789b03981dd9ea11c5c2e17a3c53910f724
[ "MIT" ]
null
null
null
fsim/utils.py
yamasampo/fsim
30100789b03981dd9ea11c5c2e17a3c53910f724
[ "MIT" ]
null
null
null
fsim/utils.py
yamasampo/fsim
30100789b03981dd9ea11c5c2e17a3c53910f724
[ "MIT" ]
null
null
null
import os import configparser from warnings import warn def read_control_file(control_file): # Initialize ConfigParser object config = configparser.ConfigParser( strict=True, comment_prefixes=('/*', ';', '#'), inline_comment_prefixes=('/*', ';', '#') ) # Parse control file ...
32.371795
98
0.613861
325
2,525
4.593846
0.369231
0.073677
0.026792
0.029471
0.045546
0.045546
0.045546
0
0
0
0
0.003231
0.264554
2,525
77
99
32.792208
0.800754
0.100198
0
0
0
0
0.253221
0.013772
0
0
0
0
0.017857
1
0.053571
false
0
0.053571
0
0.125
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
918946b8867e4746cc6439a71e8ab2ad6d7dc6a7
2,950
py
Python
src/pymortests/function.py
mahgadalla/pymor
ee2806b4c93748e716294c42454d611415da7b5e
[ "Unlicense" ]
1
2021-07-26T12:58:50.000Z
2021-07-26T12:58:50.000Z
src/pymortests/function.py
mahgadalla/pymor
ee2806b4c93748e716294c42454d611415da7b5e
[ "Unlicense" ]
null
null
null
src/pymortests/function.py
mahgadalla/pymor
ee2806b4c93748e716294c42454d611415da7b5e
[ "Unlicense" ]
null
null
null
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2017 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) import numpy as np import pytest from pymor.core.pickle import dumps, loads from pymor.functions....
38.815789
108
0.671186
410
2,950
4.697561
0.297561
0.037383
0.050883
0.047767
0.275182
0.188474
0.141225
0.106957
0.066459
0
0
0.029055
0.218305
2,950
75
109
39.333333
0.806158
0.146102
0
0.096154
0
0
0
0
0
0
0
0
0.288462
1
0.115385
false
0
0.134615
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
918a293306bf241e1a965c6b6c86f2b524157237
4,603
py
Python
Code/userIDCrawler.py
CarberZ/social-media-mining
41aee64a41244a0692987b75b30dedbd0552be49
[ "MIT" ]
2
2018-10-16T23:09:00.000Z
2018-11-14T04:08:00.000Z
Code/userIDCrawler.py
CarberZ/social-media-mining
41aee64a41244a0692987b75b30dedbd0552be49
[ "MIT" ]
1
2018-11-14T04:06:13.000Z
2018-11-14T04:15:56.000Z
Code/userIDCrawler.py
CarberZ/social-media-mining
41aee64a41244a0692987b75b30dedbd0552be49
[ "MIT" ]
1
2018-11-14T04:06:31.000Z
2018-11-14T04:06:31.000Z
''' step 1 get the userID and their locations put them all into a database ''' from bs4 import BeautifulSoup import urllib import sqlite3 from selenium import webdriver import time import re from urllib import request import random import pickle import os import pytesseract url_dog = "http...
30.483444
138
0.550728
497
4,603
5.070423
0.374245
0.036111
0.047619
0.020238
0.184127
0.12619
0.103968
0.029365
0
0
0
0.027653
0.324354
4,603
150
139
30.686667
0.782637
0.13274
0
0.072289
0
0.012048
0.167916
0.020816
0
0
0
0
0
1
0.036145
false
0
0.13253
0
0.253012
0.012048
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
918a3b0f516ea68dd89954d9a42756ad875c22c6
33
py
Python
src/stoat/core/structure/__init__.py
saarkatz/guppy-struct
b9099353312c365cfd788dbd2d168a9c844765be
[ "Apache-2.0" ]
1
2021-12-07T11:59:11.000Z
2021-12-07T11:59:11.000Z
src/stoat/core/structure/__init__.py
saarkatz/stoat-struct
b9099353312c365cfd788dbd2d168a9c844765be
[ "Apache-2.0" ]
null
null
null
src/stoat/core/structure/__init__.py
saarkatz/stoat-struct
b9099353312c365cfd788dbd2d168a9c844765be
[ "Apache-2.0" ]
null
null
null
from .structure import Structure
16.5
32
0.848485
4
33
7
0.75
0
0
0
0
0
0
0
0
0
0
0
0.121212
33
1
33
33
0.965517
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
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
0
0
0
5
918a81c6af8725a4b95ff16551cc06a18c633a21
709
py
Python
tbase/network/polices_test.py
iminders/TradeBaselines
26eb87f2bcd5f6ff479149219b38b17002be6a40
[ "MIT" ]
16
2020-03-19T15:12:28.000Z
2021-12-20T06:02:32.000Z
tbase/network/polices_test.py
iminders/TradeBaselines
26eb87f2bcd5f6ff479149219b38b17002be6a40
[ "MIT" ]
14
2020-03-23T03:57:00.000Z
2021-12-20T05:53:33.000Z
tbase/network/polices_test.py
iminders/TradeBaselines
26eb87f2bcd5f6ff479149219b38b17002be6a40
[ "MIT" ]
7
2020-03-25T00:30:18.000Z
2021-01-31T18:45:09.000Z
import unittest import numpy as np from tbase.common.cmd_util import set_global_seeds from tbase.network.polices import RandomPolicy class TestPolices(unittest.TestCase): @classmethod def setUpClass(self): set_global_seeds(0) def test_random_policy(self): policy = RandomPolicy(2) ...
25.321429
65
0.671368
84
709
5.464286
0.5
0.039216
0.061002
0.104575
0.352941
0.352941
0.352941
0.352941
0
0
0
0.076087
0.221439
709
27
66
26.259259
0.755435
0.023977
0
0.222222
0
0
0.011611
0
0
0
0
0
0.111111
1
0.111111
false
0
0.222222
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
918a8725328fa6920f55c21e0bb7c5f7406c3135
36,887
py
Python
keystone/tests/unit/core.py
knikolla/keystone
50f0a50cf4d52d3f61b64713bd4faa7a4626ae53
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/core.py
knikolla/keystone
50f0a50cf4d52d3f61b64713bd4faa7a4626ae53
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/core.py
knikolla/keystone
50f0a50cf4d52d3f61b64713bd4faa7a4626ae53
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack 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 or agreed to in...
34.217996
79
0.619676
4,443
36,887
4.979743
0.186811
0.023593
0.031458
0.018983
0.273446
0.231322
0.196158
0.155299
0.134734
0.117876
0
0.007054
0.281319
36,887
1,077
80
34.249768
0.827537
0.194893
0
0.301501
0
0.001364
0.097711
0.01699
0
0
0
0.001857
0.030014
1
0.100955
false
0.013643
0.05457
0.017735
0.245566
0.001364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
918dd351f71913e5bfee0b534327c85070c34d0b
17,327
py
Python
PyISY/Nodes/__init__.py
sneelco/PyISY
f1f916cd7951b1b6a5235bb36444c695fe3294e1
[ "Apache-2.0" ]
null
null
null
PyISY/Nodes/__init__.py
sneelco/PyISY
f1f916cd7951b1b6a5235bb36444c695fe3294e1
[ "Apache-2.0" ]
null
null
null
PyISY/Nodes/__init__.py
sneelco/PyISY
f1f916cd7951b1b6a5235bb36444c695fe3294e1
[ "Apache-2.0" ]
null
null
null
from .group import Group from .node import (Node, parse_xml_properties, ATTR_ID) from time import sleep from xml.dom import minidom class Nodes(object): """ This class handles the ISY nodes. This class can be used as a dictionary to navigate through the controller's structure to objects of type :cla...
36.324948
100
0.48612
1,749
17,327
4.719268
0.168096
0.024231
0.021323
0.012358
0.221468
0.188636
0.147807
0.12915
0.12915
0.12915
0
0.005745
0.417326
17,327
476
101
36.401261
0.811807
0.137416
0
0.302115
0
0
0.047904
0
0
0
0.000275
0
0
1
0.07855
false
0.003021
0.012085
0.006042
0.190332
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
918e36c7c2d321203012c2cecdfb70b87e94940f
1,329
py
Python
easyCore/Utils/Logging.py
easyScience/easyCore
5d16d5b27803277d0c44886f94dab599f764ae0b
[ "BSD-3-Clause" ]
2
2021-11-02T10:22:45.000Z
2022-02-18T23:41:19.000Z
easyCore/Utils/Logging.py
easyScience/easyCore
5d16d5b27803277d0c44886f94dab599f764ae0b
[ "BSD-3-Clause" ]
114
2020-06-30T08:52:27.000Z
2022-03-30T20:47:56.000Z
easyCore/Utils/Logging.py
easyScience/easyCore
5d16d5b27803277d0c44886f94dab599f764ae0b
[ "BSD-3-Clause" ]
1
2022-03-04T13:01:09.000Z
2022-03-04T13:01:09.000Z
# SPDX-FileCopyrightText: 2021 easyCore contributors <core@easyscience.software> # SPDX-License-Identifier: BSD-3-Clause # © 2021 Contributors to the easyCore project <https://github.com/easyScience/easyCore> __author__ = 'github.com/wardsimon' __version__ = '0.1.0' import logging class Logger: def __init__...
36.916667
91
0.645598
152
1,329
5.434211
0.513158
0.048426
0.053269
0.05569
0
0
0
0
0
0
0
0.014213
0.258841
1,329
35
92
37.971429
0.82335
0.536494
0
0
0
0
0.049091
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91903bbb82369647bc8ec6646143a89d378edc88
234
py
Python
iqoptionapi/http/billing.py
mustx1/MYIQ
3afb597aa8a8abc278b7d70dad46af81789eae3e
[ "MIT" ]
3
2021-06-05T06:58:01.000Z
2021-11-25T23:52:18.000Z
iqoptionapi/http/billing.py
mustx1/MYIQ
3afb597aa8a8abc278b7d70dad46af81789eae3e
[ "MIT" ]
5
2022-01-20T00:32:49.000Z
2022-02-16T23:12:10.000Z
iqoptionapi/http/billing.py
mustx1/MYIQ
3afb597aa8a8abc278b7d70dad46af81789eae3e
[ "MIT" ]
2
2020-11-10T19:03:38.000Z
2020-12-07T10:42:36.000Z
"""Module for IQ option billing resource.""" from iqoptionapi.http.resource import Resource class Billing(Resource): """Class for IQ option billing resource.""" # pylint: disable=too-few-public-methods url = "billing"
21.272727
47
0.709402
29
234
5.724138
0.62069
0.271084
0.13253
0.216867
0.313253
0
0
0
0
0
0
0
0.17094
234
10
48
23.4
0.85567
0.495727
0
0
0
0
0.065421
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
1
0
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
0
0
0
1
0
1
0
0
5
919092189581e9b39163223362020fad3bbd08e7
3,416
py
Python
defaultsob/core.py
honewatson/defaults
c6a845ec1f25fc82e7645dfee60dd2df1cfa4e81
[ "0BSD" ]
null
null
null
defaultsob/core.py
honewatson/defaults
c6a845ec1f25fc82e7645dfee60dd2df1cfa4e81
[ "0BSD" ]
null
null
null
defaultsob/core.py
honewatson/defaults
c6a845ec1f25fc82e7645dfee60dd2df1cfa4e81
[ "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- def ordered_set(iter): """Creates an ordered set @param iter: list or tuple @return: list with unique values """ final = [] for i in iter: if i not in final: final.append(i) return final def class_slots(ob): """Get object attributes from...
27.772358
77
0.624415
447
3,416
4.599553
0.241611
0.029183
0.01751
0.011673
0
0
0
0
0
0
0
0.000833
0.297424
3,416
122
78
28
0.855833
0.425351
0
0.081633
0
0
0.022183
0
0
0
0
0
0
1
0.183673
false
0
0
0
0.367347
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9190a55060e46f0f4d728a8eb6583235a5fc4dcf
3,140
py
Python
tests/bot_test.py
item4/yui
8628d0d54b94ada3cbe7d1b0f624063258bad10a
[ "MIT" ]
36
2017-06-12T01:09:46.000Z
2021-01-31T17:57:41.000Z
tests/bot_test.py
item4/yui
8628d0d54b94ada3cbe7d1b0f624063258bad10a
[ "MIT" ]
145
2017-06-21T13:31:29.000Z
2021-06-20T01:01:30.000Z
tests/bot_test.py
item4/yui
8628d0d54b94ada3cbe7d1b0f624063258bad10a
[ "MIT" ]
21
2017-07-24T15:53:19.000Z
2021-12-23T04:18:31.000Z
import asyncio from collections import defaultdict from datetime import timedelta import pytest from yui.api import SlackAPI from yui.bot import Bot from yui.box import Box from yui.types.slack.response import APIResponse from yui.utils import json from .util import FakeImportLib def test_bot_init(event_loop, monk...
27.787611
75
0.605414
367
3,140
5.111717
0.217984
0.074627
0.095949
0.154584
0.567697
0.567697
0.541045
0.491471
0.491471
0.491471
0
0.023671
0.233121
3,140
112
76
28.035714
0.755399
0
0
0.446809
0
0
0.214331
0.007325
0
0
0
0
0.148936
1
0.010638
false
0
0.138298
0
0.148936
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9190bf228865d048848fd87f601781ac36e5057a
2,901
py
Python
scripts/marker_filter.py
CesMak/aruco_detector_ocv
bb45e39664247779cbbbc8d37b89c4556b4984d6
[ "BSD-3-Clause" ]
12
2019-03-12T08:47:07.000Z
2022-02-09T03:59:39.000Z
scripts/marker_filter.py
vprooks/simple_aruco_detector
40cb7354d7da67028c91b4c4652e8c4a1d2abbbb
[ "MIT" ]
3
2020-07-02T04:25:10.000Z
2021-08-31T15:56:13.000Z
scripts/marker_filter.py
CesMak/aruco_detector_ocv
bb45e39664247779cbbbc8d37b89c4556b4984d6
[ "BSD-3-Clause" ]
11
2019-10-25T17:36:44.000Z
2022-02-16T17:12:38.000Z
#!/usr/bin/env python import numpy as np import rospy import geometry_msgs.msg import tf2_ros from tf.transformations import quaternion_slerp def translation_to_numpy(t): return np.array([t.x, t.y, t.z]) def quaternion_to_numpy(q): return np.array([q.x, q.y, q.z, q.w]) if __name__ == '__main__': rosp...
36.2625
109
0.666322
352
2,901
5.215909
0.286932
0.092593
0.103486
0.073529
0.08061
0
0
0
0
0
0
0.015131
0.24819
2,901
79
110
36.721519
0.826685
0.055843
0
0.033898
0
0
0.045355
0
0
0
0
0
0
1
0.033898
false
0
0.084746
0.033898
0.152542
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9190f1884667aaeb95f3ee0745ae12dfce3341d8
3,713
py
Python
src/backbone/utils.py
hankyul2/FaceDA
73006327df3668923d4206f81d4976ca1240329d
[ "Apache-2.0" ]
20
2021-11-26T18:05:30.000Z
2022-02-15T12:21:10.000Z
src/backbone/utils.py
hankyul2/FaceDA
73006327df3668923d4206f81d4976ca1240329d
[ "Apache-2.0" ]
null
null
null
src/backbone/utils.py
hankyul2/FaceDA
73006327df3668923d4206f81d4976ca1240329d
[ "Apache-2.0" ]
1
2022-02-15T12:21:17.000Z
2022-02-15T12:21:17.000Z
import os import subprocess from pathlib import Path from torch.hub import load_state_dict_from_url import numpy as np model_urls = { # ResNet 'resnet18': 'https://download.pytorch.org/models/resnet18-f37072fd.pth', 'resnet34': 'https://download.pytorch.org/models/resnet34-b627a593.pth', 'resnet50':...
50.175676
127
0.720442
503
3,713
5.091451
0.260437
0.052714
0.078094
0.089809
0.56228
0.370558
0.370558
0.283483
0.283483
0.283483
0
0.084704
0.131969
3,713
73
128
50.863014
0.709898
0.015082
0
0
0
0.096154
0.552329
0.024932
0
0
0
0
0
1
0.057692
false
0
0.096154
0
0.192308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91918e0b4360daa841c2dd658213e7f9249510fa
702
py
Python
crawler1.py
pjha1994/Scrape_reddit
2a00a83854085e09f0cf53aef81969025876039b
[ "Apache-2.0" ]
null
null
null
crawler1.py
pjha1994/Scrape_reddit
2a00a83854085e09f0cf53aef81969025876039b
[ "Apache-2.0" ]
null
null
null
crawler1.py
pjha1994/Scrape_reddit
2a00a83854085e09f0cf53aef81969025876039b
[ "Apache-2.0" ]
null
null
null
import requests from bs4 import BeautifulSoup def recursiveUrl(url, link, depth): if depth == 5: return url else: print(link['href']) page = requests.get(url + link['href']) soup = BeautifulSoup(page.text, 'html.parser') newlink = soup.find('a') if len(newlink) =...
27
62
0.602564
88
702
4.795455
0.431818
0.106635
0.090047
0.085308
0.165877
0.165877
0
0
0
0
0
0.009709
0.266382
702
26
63
27
0.809709
0
0
0.173913
0
0
0.076814
0
0
0
0
0
0
1
0.086957
false
0
0.086957
0
0.347826
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9191a318c08b49c9339f1e4504f721d3f2d1d83b
2,428
py
Python
chime2/tests/normal/models/seir_test.py
BrianThomasRoss/CHIME-2
f084ab552fac5e50841a922293b74d653450790b
[ "BSD-3-Clause" ]
null
null
null
chime2/tests/normal/models/seir_test.py
BrianThomasRoss/CHIME-2
f084ab552fac5e50841a922293b74d653450790b
[ "BSD-3-Clause" ]
null
null
null
chime2/tests/normal/models/seir_test.py
BrianThomasRoss/CHIME-2
f084ab552fac5e50841a922293b74d653450790b
[ "BSD-3-Clause" ]
1
2020-11-19T23:08:52.000Z
2020-11-19T23:08:52.000Z
"""Tests for SEIR model in this repo * Compares conserved quantities * Compares model against SEIR wo social policies in limit to SIR """ from pandas import Series from pandas.testing import assert_frame_equal, assert_series_equal from bayes_chime.normal.models import SEIRModel, SIRModel from pytest import fixture fro...
28.232558
81
0.710461
340
2,428
4.773529
0.347059
0.033272
0.027726
0.046211
0.039433
0
0
0
0
0
0
0.017409
0.195634
2,428
85
82
28.564706
0.81362
0.177924
0
0.039216
0
0
0.083376
0.02046
0
0
0
0
0.058824
1
0.078431
false
0
0.098039
0
0.215686
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91928996da1f5de4298b9395563c76e7f7e3542f
4,681
py
Python
Libraries/mattsLibraries/mathOperations.py
mrware91/PhilTransA-TRXS-Limits
5592c6c66276cd493d10f066aa636aaf600d3a00
[ "MIT" ]
null
null
null
Libraries/mattsLibraries/mathOperations.py
mrware91/PhilTransA-TRXS-Limits
5592c6c66276cd493d10f066aa636aaf600d3a00
[ "MIT" ]
2
2018-06-19T00:01:27.000Z
2018-10-16T18:33:24.000Z
Libraries/mattsLibraries/mathOperations.py
mrware91/PhilTransA-TRXS-Limits
5592c6c66276cd493d10f066aa636aaf600d3a00
[ "MIT" ]
null
null
null
import numpy as np from scipy.interpolate import interp1d from pyTools import * ################################################################################ #~~~~~~~~~Log ops ################################################################################ def logPolyVal(p,x): ord = p.order() logs = [] ...
32.734266
129
0.470626
663
4,681
3.300151
0.221719
0.014625
0.015082
0.034278
0.326325
0.285649
0.234461
0.190585
0.157678
0.131627
0
0.032709
0.19013
4,681
142
130
32.964789
0.544447
0.026063
0
0.147368
0
0
0.053824
0
0
0
0
0
0
1
0.147368
false
0
0.031579
0.010526
0.326316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9192d6d1ce77aea0159f3db895468368ec72c08a
592
py
Python
setup.py
avryhof/ambient_api
08194b5d8626801f2c2c7369adacb15eace54802
[ "MIT" ]
20
2018-12-24T15:40:49.000Z
2022-01-10T18:58:41.000Z
setup.py
avryhof/ambient_api
08194b5d8626801f2c2c7369adacb15eace54802
[ "MIT" ]
10
2018-08-17T02:01:45.000Z
2021-01-08T23:34:59.000Z
setup.py
avryhof/ambient_api
08194b5d8626801f2c2c7369adacb15eace54802
[ "MIT" ]
14
2018-06-13T23:40:12.000Z
2022-01-05T06:34:13.000Z
from setuptools import setup setup( name="ambient_api", version="1.5.6", packages=["ambient_api"], url="https://github.com/avryhof/ambient_api", license="MIT", author="Amos Vryhof", author_email="amos@vryhofresearch.com", description="A Python class for accessing the Ambient Weather API...
29.6
72
0.640203
64
592
5.84375
0.765625
0.080214
0
0
0
0
0
0
0
0
0
0.012903
0.214527
592
19
73
31.157895
0.791398
0
0
0
0
0
0.535473
0.038851
0
0
0
0
0
1
0
true
0
0.055556
0
0.055556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
9192df0712738e90f6f197873c3a465c79101722
585
py
Python
tests/llvm/static/test_main_is_found/test_main_is_found.py
ganeshutah/FPChecker
53a471429762ace13f69733cb2f8b7227fc15b9f
[ "Apache-2.0" ]
19
2019-09-28T16:15:45.000Z
2022-02-15T15:11:28.000Z
tests/llvm/static/test_main_is_found/test_main_is_found.py
tanmaytirpankar/FPChecker
d3fe4bd9489c5705df58a67dbbc388ac1ebf56bf
[ "Apache-2.0" ]
16
2020-02-01T18:43:00.000Z
2021-12-22T14:47:39.000Z
tests/llvm/static/test_main_is_found/test_main_is_found.py
tanmaytirpankar/FPChecker
d3fe4bd9489c5705df58a67dbbc388ac1ebf56bf
[ "Apache-2.0" ]
5
2020-07-27T18:15:36.000Z
2021-11-01T18:43:34.000Z
#!/usr/bin/env python import subprocess import os def setup_module(module): THIS_DIR = os.path.dirname(os.path.abspath(__file__)) os.chdir(THIS_DIR) def teardown_module(module): cmd = ["make clean"] cmdOutput = subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) def test_1(): cmd...
22.5
82
0.666667
79
585
4.797468
0.56962
0.063325
0.126649
0.158311
0.337731
0.337731
0.337731
0.337731
0.337731
0.337731
0
0.004274
0.2
585
25
83
23.4
0.805556
0.034188
0
0.125
0
0
0.079929
0
0
0
0
0
0.0625
1
0.1875
false
0.1875
0.125
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
919312f26ed57e4c093335409a623694c54be188
877
py
Python
regipy/exceptions.py
kamnon/regipy
12d3be9da631dcc0d6fb342767e51ec4799141c6
[ "MIT" ]
190
2019-03-06T09:13:08.000Z
2022-03-19T14:43:34.000Z
regipy/exceptions.py
kamnon/regipy
12d3be9da631dcc0d6fb342767e51ec4799141c6
[ "MIT" ]
117
2019-05-15T12:22:46.000Z
2022-03-30T10:43:03.000Z
regipy/exceptions.py
kamnon/regipy
12d3be9da631dcc0d6fb342767e51ec4799141c6
[ "MIT" ]
37
2019-03-12T14:46:12.000Z
2022-01-12T11:07:10.000Z
class RegipyException(Exception): """ This is the parent exception for all regipy exceptions """ pass class RegipyGeneralException(RegipyException): """ General exception """ pass class RegistryValueNotFoundException(RegipyException): pass class NoRegistrySubkeysException(Regipy...
18.270833
75
0.741163
74
877
8.783784
0.554054
0.124615
0.221538
0
0
0
0
0
0
0
0
0
0.196123
877
47
76
18.659574
0.921986
0.242873
0
0.473684
0
0
0
0
0
0
0
0
0
1
0
true
0.473684
0
0
0.526316
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
1
0
0
4
91936b7f0195e57ee35ddf84cdb73c2bef559977
745
py
Python
Dynamic_Programming/1259.Integer Replacement/Solution_BFS.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
12
2019-05-04T04:21:27.000Z
2022-03-02T07:06:57.000Z
Dynamic_Programming/1259.Integer Replacement/Solution_BFS.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
1
2019-07-24T18:43:53.000Z
2019-07-24T18:43:53.000Z
Dynamic_Programming/1259.Integer Replacement/Solution_BFS.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
10
2019-07-01T04:03:04.000Z
2022-03-09T03:57:37.000Z
from collections import deque class Solution: """ @param n: a positive integer @return: the minimum number of replacements """ def integerReplacement(self, n): # Write your code here steps = 0 if n == 1: return steps queue = deque([n]) while q...
23.28125
47
0.436242
76
745
4.263158
0.539474
0.064815
0.12963
0.092593
0
0
0
0
0
0
0
0.02584
0.480537
745
31
48
24.032258
0.81137
0.127517
0
0.095238
0
0
0
0
0
0
0
0.032258
0
1
0.047619
false
0
0.047619
0
0.285714
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
91941908fbc07382f07b7bc44926ab4220545f9d
947
py
Python
src/routes/web.py
enflo/weather-flask
c4d905e1f557b4c9b39d0a578fdbb6fefc839028
[ "Apache-2.0" ]
null
null
null
src/routes/web.py
enflo/weather-flask
c4d905e1f557b4c9b39d0a578fdbb6fefc839028
[ "Apache-2.0" ]
null
null
null
src/routes/web.py
enflo/weather-flask
c4d905e1f557b4c9b39d0a578fdbb6fefc839028
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint, render_template from gateways.models import getWeatherData web = Blueprint("web", __name__, template_folder='templates') @web.route("/", methods=['GET']) def home(): items = getWeatherData.get_last_item() cityName = items["city"] return render_template("index.html", ...
32.655172
61
0.564942
87
947
6
0.37931
0.10728
0.074713
0.099617
0.367816
0.252874
0.252874
0.252874
0.252874
0.252874
0
0.001486
0.289335
947
28
62
33.821429
0.774146
0.414995
0
0
0
0
0.104779
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9195f3cdb36a82835721ebe4e4fc6cc7220eecc8
677
py
Python
changes/buildsteps/lxc.py
bowlofstew/changes
ebd393520e0fdb07c240a8d4e8747281b6186e28
[ "Apache-2.0" ]
null
null
null
changes/buildsteps/lxc.py
bowlofstew/changes
ebd393520e0fdb07c240a8d4e8747281b6186e28
[ "Apache-2.0" ]
null
null
null
changes/buildsteps/lxc.py
bowlofstew/changes
ebd393520e0fdb07c240a8d4e8747281b6186e28
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from changes.buildsteps.default import DefaultBuildStep class LXCBuildStep(DefaultBuildStep): """ Similar to the default build step, except that it runs the client using the LXC adapter. """ def can_snapshot(self): return True def get_label(self...
27.08
75
0.680945
81
677
5.530864
0.506173
0.066964
0.040179
0
0
0
0
0
0
0
0
0
0.225997
677
24
76
28.208333
0.854962
0.129985
0
0
0
0
0.087873
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.214286
0.785714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
91979003f9cb74dc9f591b8277facbe005dfd825
532
py
Python
swapidemo1.py
anvytran-dev/mycode
3753c19828f0ecc506a6450bb6b71b4a5d651e5f
[ "MIT" ]
null
null
null
swapidemo1.py
anvytran-dev/mycode
3753c19828f0ecc506a6450bb6b71b4a5d651e5f
[ "MIT" ]
null
null
null
swapidemo1.py
anvytran-dev/mycode
3753c19828f0ecc506a6450bb6b71b4a5d651e5f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Star Wars API HTTP response parsing""" # requests is used to send HTTP requests (get it?) import requests URL= "https://swapi.dev/api/people/1" def main(): """sending GET request, checking response""" # SWAPI response is stored in "resp" object resp= requests.get(URL) # wh...
22.166667
52
0.654135
77
532
4.415584
0.675325
0.064706
0
0
0
0
0
0
0
0
0
0.004717
0.203008
532
23
53
23.130435
0.79717
0.468045
0
0
0
0
0.329588
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.25
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9197f982af32fc988794515b093dd5bf984c98a5
4,132
py
Python
src/biota_models/vegetation/model/constants_json_create.py
Deltares/NBSDynamics
4710da529d85b588ea249f6e2b4f4cac132bb34f
[ "MIT" ]
2
2022-01-14T05:02:04.000Z
2022-03-02T10:42:59.000Z
src/biota_models/vegetation/model/constants_json_create.py
Deltares/NBSDynamics
4710da529d85b588ea249f6e2b4f4cac132bb34f
[ "MIT" ]
35
2021-11-01T08:59:02.000Z
2021-11-19T16:47:17.000Z
src/biota_models/vegetation/model/constants_json_create.py
Deltares/NBSDynamics
4710da529d85b588ea249f6e2b4f4cac132bb34f
[ "MIT" ]
1
2022-03-16T07:11:00.000Z
2022-03-16T07:11:00.000Z
import json schema = { "Spartina": { "ColStart": "2000-04-01", "ColEnd": "2000-05-31", "random": 7, "mud_colonization": [0.0, 0.0], "fl_dr": 0.005, "Maximum age": 20, "Number LifeStages": 2, "initial root length": 0.05, "initial shoot length":...
43.494737
76
0.547193
580
4,132
3.841379
0.181034
0.010772
0.010772
0.007181
0.766158
0.706912
0.675045
0.593357
0.426391
0.373429
0
0.153587
0.281462
4,132
94
77
43.957447
0.596834
0.232091
0
0.282609
0
0
0.407702
0
0
0
0
0
0
1
0
false
0
0.01087
0
0.01087
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9198600a03831a59503bb3d3f2827b284d0e1c16
2,316
bzl
Python
format/format.bzl
harshad-deo/TorchVI
f66d1486201368c9906869477ba7ae254d2e7191
[ "Apache-2.0" ]
null
null
null
format/format.bzl
harshad-deo/TorchVI
f66d1486201368c9906869477ba7ae254d2e7191
[ "Apache-2.0" ]
null
null
null
format/format.bzl
harshad-deo/TorchVI
f66d1486201368c9906869477ba7ae254d2e7191
[ "Apache-2.0" ]
null
null
null
def _replace_formatted(ctx, manifest, files): out = ctx.actions.declare_file(ctx.label.name) # this makes it easier to add variables file_lines = [ """#!/bin/bash -e WORKSPACE_ROOT="${1:-$BUILD_WORKSPACE_DIRECTORY}" """, """RUNPATH="${TEST_SRCDIR-$0.runfiles}"/""" + ctx.workspace_name, ...
30.473684
88
0.577288
254
2,316
5.070866
0.346457
0.046584
0.037267
0.048913
0.091615
0
0
0
0
0
0
0.001786
0.274611
2,316
75
89
30.88
0.764881
0.015976
0
0.09434
0
0
0.055904
0.01255
0
0
0
0
0
1
0.056604
false
0
0
0
0.113208
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91993f87e0ff04f74f7a6f31b278e5b76bf7a8ba
1,376
py
Python
Stream-3/Full-Stack-Development/10.Custom-User-And-Email-Authentication/2.Custom-User-Model/auth_demo/accounts/models.py
GunnerJnr/_CodeInstitute
efba0984a3dc71558eef97724c85e274a712798c
[ "MIT" ]
4
2017-10-10T14:00:40.000Z
2021-01-27T14:08:26.000Z
Stream-3/Full-Stack-Development/10.Custom-User-And-Email-Authentication/2.Custom-User-Model/auth_demo/accounts/models.py
GunnerJnr/_CodeInstitute
efba0984a3dc71558eef97724c85e274a712798c
[ "MIT" ]
115
2019-10-24T11:18:33.000Z
2022-03-11T23:15:42.000Z
Stream-3/Full-Stack-Development/10.Custom-User-And-Email-Authentication/2.Custom-User-Model/auth_demo/accounts/models.py
GunnerJnr/_CodeInstitute
efba0984a3dc71558eef97724c85e274a712798c
[ "MIT" ]
5
2017-09-22T21:42:39.000Z
2020-02-07T02:18:11.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.auth.models import AbstractUser, UserManager from django.db import models from django.utils import timezone # Create your models here. # Create our new user class class AccountUserManager(UserManager): def _create_user(self, usern...
32
95
0.641715
167
1,376
5.155689
0.497006
0.03252
0.031359
0
0
0
0
0
0
0
0
0.001012
0.281977
1,376
42
96
32.761905
0.870445
0.303052
0
0
0
0
0.034325
0
0
0
0
0
0
1
0.052632
false
0.105263
0.210526
0
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
919b5dc79a4db8bc0c773739c3eacec33d693967
11,973
py
Python
histoGAN.py
mahmoudnafifi/HistoGAN
50be1482638ace3ec85d733e849dec494ede155b
[ "MIT" ]
169
2020-11-25T07:42:26.000Z
2022-03-30T03:08:35.000Z
histoGAN.py
mahmoudnafifi/HistoGAN
50be1482638ace3ec85d733e849dec494ede155b
[ "MIT" ]
22
2020-12-22T13:14:24.000Z
2022-03-31T08:41:26.000Z
histoGAN.py
mahmoudnafifi/HistoGAN
50be1482638ace3ec85d733e849dec494ede155b
[ "MIT" ]
19
2020-11-28T17:28:46.000Z
2022-02-23T06:09:23.000Z
""" If you find this code useful, please cite our paper: Mahmoud Afifi, Marcus A. Brubaker, and Michael S. Brown. "HistoGAN: Controlling Colors of GAN-Generated and Real Images via Color Histograms." In CVPR, 2021. @inproceedings{afifi2021histogan, title={Histo{GAN}: Controlling Colors of {GAN}-Generated and R...
39.127451
80
0.647791
1,554
11,973
4.725869
0.158301
0.044118
0.083333
0.023965
0.430283
0.323393
0.306236
0.290441
0.280093
0.259123
0
0.014808
0.227261
11,973
305
81
39.255738
0.778967
0.038336
0
0.241758
1
0
0.161669
0.02512
0
0
0
0
0
1
0.007326
false
0
0.040293
0
0.054945
0.029304
0
0
0
null
0
0
0
0
0
0
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
0
0
0
0
0
0
0
1
919b5e557651de3e6e934fa6c4b16a3e517ceea9
501
py
Python
apps/careeropportunity/migrations/0003_careeropportunity_deadline.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
32
2017-02-22T13:38:38.000Z
2022-03-31T23:29:54.000Z
apps/careeropportunity/migrations/0003_careeropportunity_deadline.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
694
2017-02-15T23:09:52.000Z
2022-03-31T23:16:07.000Z
apps/careeropportunity/migrations/0003_careeropportunity_deadline.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
35
2017-09-02T21:13:09.000Z
2022-02-21T11:30:30.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.10 on 2016-10-05 18:52 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("careeropportunity", "0002_careeropportunity_job_type")] operations = [ migrations.AddFie...
26.368421
87
0.670659
54
501
6.037037
0.759259
0
0
0
0
0
0
0
0
0
0
0.053435
0.215569
501
18
88
27.833333
0.776081
0.135729
0
0
1
0
0.197674
0.072093
0
0
0
0
0
1
0
false
0
0.181818
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
919c72f34a550015e3cadb40b602759ce1ee194d
14,482
py
Python
benchmark/python/ffi/benchmark_ffi.py
grygielski/incubator-mxnet
45952e21a35e32a04b7607b121085973369a42db
[ "BSL-1.0", "Apache-2.0" ]
211
2016-06-06T08:32:36.000Z
2021-07-03T16:50:16.000Z
benchmark/python/ffi/benchmark_ffi.py
grygielski/incubator-mxnet
45952e21a35e32a04b7607b121085973369a42db
[ "BSL-1.0", "Apache-2.0" ]
42
2017-01-05T02:45:13.000Z
2020-08-11T23:45:27.000Z
benchmark/python/ffi/benchmark_ffi.py
grygielski/incubator-mxnet
45952e21a35e32a04b7607b121085973369a42db
[ "BSL-1.0", "Apache-2.0" ]
58
2016-10-27T07:37:08.000Z
2021-07-03T16:50:17.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
51.90681
116
0.646596
1,922
14,482
4.74974
0.221124
0.177128
0.31986
0.072845
0.459634
0.367729
0.288531
0.193121
0.132873
0.073173
0
0.048544
0.160751
14,482
278
117
52.093525
0.702567
0.059039
0
0.028807
0
0
0.172216
0
0
0
0
0
0
1
0.028807
false
0
0.028807
0
0.082305
0.012346
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
919e14a6393eda0c7e38c0fd3d5e470f7982030f
11,038
py
Python
first-floor.py
levabd/smart-climat-daemon
8ff273eeb74fb03ea04fda11b0128fa13d35b500
[ "MIT" ]
null
null
null
first-floor.py
levabd/smart-climat-daemon
8ff273eeb74fb03ea04fda11b0128fa13d35b500
[ "MIT" ]
1
2021-06-02T03:55:13.000Z
2021-06-02T03:55:13.000Z
first-floor.py
levabd/smart-climat-daemon
8ff273eeb74fb03ea04fda11b0128fa13d35b500
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json import argparse import re import datetime import paramiko import requests # cmd ['ssh', 'smart', # 'mkdir -p /home/levabd/smart-home-temp-humidity-monitor; # cat - > /home/levabd/smart-home-temp-humidity-monitor/lr.json'] from miio import chuangmi_plug from btlewrap import availabl...
37.80137
118
0.602102
1,379
11,038
4.704133
0.171139
0.030831
0.032064
0.018499
0.631417
0.566209
0.539232
0.480962
0.449669
0.433945
0
0.055024
0.252491
11,038
291
119
37.931271
0.731184
0.111705
0
0.486486
0
0.004505
0.217982
0.055858
0
0
0
0
0
1
0.058559
false
0.004505
0.040541
0
0.202703
0.058559
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
919e36250164a66af6592305ae454fa0dbde1d43
642
py
Python
reservior_classification.py
Optimist-Prime/QML-for-MNIST-classification
7513b3faa548166dba3df927a248e8c7f1ab2a15
[ "BSD-3-Clause" ]
1
2020-02-04T12:51:47.000Z
2020-02-04T12:51:47.000Z
reservior_classification.py
Optimist-Prime/QML-for-MNIST-classification
7513b3faa548166dba3df927a248e8c7f1ab2a15
[ "BSD-3-Clause" ]
null
null
null
reservior_classification.py
Optimist-Prime/QML-for-MNIST-classification
7513b3faa548166dba3df927a248e8c7f1ab2a15
[ "BSD-3-Clause" ]
null
null
null
import pickle from sklearn.neural_network import MLPClassifier train = pickle.load(open('train_pca_reservoir_output_200samples.pickle','rb')) test = pickle.load(open('test_pca_reservoir_output_50samples.pickle','rb')) train_num = 200 test_num = 50 mlp = MLPClassifier(hidden_layer_sizes=(2000,), max_iter=100, alpha=1...
37.764706
78
0.700935
99
642
4.333333
0.535354
0.055944
0.065268
0.055944
0.195804
0.11655
0.11655
0
0
0
0
0.059783
0.140187
642
16
79
40.125
0.717391
0
0
0
0
0
0.207165
0.133956
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
919f4e67778a5a961b0e58f4deb0ff4d5a7ee8e6
4,099
py
Python
util.py
delmarrerikaine/LPG-PCA
deb631ee2c4c88190ce4204fcbc0765ae5cd8f53
[ "MIT" ]
1
2021-05-07T01:00:18.000Z
2021-05-07T01:00:18.000Z
util.py
delmarrerikaine/LPG-PCA
deb631ee2c4c88190ce4204fcbc0765ae5cd8f53
[ "MIT" ]
null
null
null
util.py
delmarrerikaine/LPG-PCA
deb631ee2c4c88190ce4204fcbc0765ae5cd8f53
[ "MIT" ]
2
2019-06-29T16:30:32.000Z
2020-11-18T17:40:47.000Z
import numpy as np import pandas as pd from skimage import io import skimage.measure as measure import os from lpg_pca_impl import denoise def getNoisedImage(originalImage, variance): # return random_noise(originalImage, mode='gaussian', var=variance) np.random.seed(42) noise = np.random.normal(size=origi...
36.598214
141
0.658941
562
4,099
4.553381
0.24911
0.051973
0.065651
0.040641
0.227042
0.157093
0.04533
0
0
0
0
0.014072
0.185167
4,099
111
142
36.927928
0.752096
0.015858
0
0.026316
0
0
0.141865
0.009673
0
0
0
0
0
1
0.118421
false
0
0.078947
0.039474
0.263158
0.065789
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91a0653094ec563d20865f6d3bbca729f2752582
3,178
py
Python
ui/ui.py
kringen/wingnut
73be4f8393720ff0932ab069543e5f2d2308296d
[ "MIT" ]
null
null
null
ui/ui.py
kringen/wingnut
73be4f8393720ff0932ab069543e5f2d2308296d
[ "MIT" ]
null
null
null
ui/ui.py
kringen/wingnut
73be4f8393720ff0932ab069543e5f2d2308296d
[ "MIT" ]
null
null
null
import redis from rq import Queue, Connection from flask import Flask, render_template, Blueprint, jsonify, request import tasks import rq_dashboard from wingnut import Wingnut app = Flask( __name__, template_folder="./templates", static_folder="./static", ) app.config.from_object(rq_dashb...
29.425926
77
0.608559
337
3,178
5.52819
0.25816
0.082662
0.064412
0.072464
0.331723
0.271605
0.234031
0.234031
0.234031
0.234031
0
0.014523
0.241661
3,178
107
78
29.700935
0.758506
0
0
0.308511
0
0
0.189113
0.020768
0
0
0
0
0
1
0.06383
false
0
0.06383
0.010638
0.191489
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91a50c39cf3d401ee6a7a290edb9d36a330b0540
42
py
Python
pytaboola/__init__.py
Openmail/pytaboola
ed71b3b9c5fb2e4452d4b6d40aec1ff037dd5436
[ "MIT" ]
null
null
null
pytaboola/__init__.py
Openmail/pytaboola
ed71b3b9c5fb2e4452d4b6d40aec1ff037dd5436
[ "MIT" ]
2
2020-04-27T23:41:57.000Z
2020-07-30T20:48:59.000Z
pytaboola/__init__.py
Openmail/pytaboola
ed71b3b9c5fb2e4452d4b6d40aec1ff037dd5436
[ "MIT" ]
null
null
null
from pytaboola.client import TaboolaClient
42
42
0.904762
5
42
7.6
1
0
0
0
0
0
0
0
0
0
0
0
0.071429
42
1
42
42
0.974359
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
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
6
91a63511fb79b5745ac6428aee3eedeaa5046fe6
1,410
py
Python
omkar/code.py
omi28/ga-learner-dst-repo
396c35ea56028717a96aed6ca771e39ebf68dc5b
[ "MIT" ]
null
null
null
omkar/code.py
omi28/ga-learner-dst-repo
396c35ea56028717a96aed6ca771e39ebf68dc5b
[ "MIT" ]
null
null
null
omkar/code.py
omi28/ga-learner-dst-repo
396c35ea56028717a96aed6ca771e39ebf68dc5b
[ "MIT" ]
null
null
null
# -------------- # Importing header files import numpy as np import warnings warnings.filterwarnings('ignore') new_record=[[50, 9, 4, 1, 0, 0, 40, 0]] #New record #Reading file data = np.genfromtxt(path, delimiter=",", skip_header=1) data.shape cenus=np.concatenate((new_record,data),axis=0) cenus....
20.434783
57
0.719858
246
1,410
3.878049
0.247967
0.050314
0.057652
0.041929
0.062893
0.062893
0
0
0
0
0
0.039231
0.114184
1,410
68
58
20.735294
0.72458
0.085816
0
0
0
0
0.005771
0
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0.26
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91a824d6a95f0e9a4a572ff289971a58109b3c3c
3,887
py
Python
test/present.py
jchampio/apache-websocket
18ad4ae2fc99381b8d75785f492a479f789b322b
[ "Apache-2.0" ]
8
2015-09-10T21:49:25.000Z
2022-02-02T04:39:00.000Z
test/present.py
jchampio/apache-websocket
18ad4ae2fc99381b8d75785f492a479f789b322b
[ "Apache-2.0" ]
34
2015-09-10T21:40:09.000Z
2020-09-04T22:16:08.000Z
test/present.py
jchampio/apache-websocket
18ad4ae2fc99381b8d75785f492a479f789b322b
[ "Apache-2.0" ]
5
2016-01-22T05:16:54.000Z
2017-10-18T12:28:02.000Z
#! /usr/bin/env python # # Presents the results of an Autobahn TestSuite run in TAP format. # # Copyright 2015 Jacob Champion # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://ww...
28.792593
84
0.623874
496
3,887
4.818548
0.362903
0.025105
0.010879
0.013389
0.033473
0
0
0
0
0
0
0.013107
0.273733
3,887
134
85
29.007463
0.83351
0.289426
0
0.026316
0
0
0.141492
0
0
0
0
0
0
1
0.026316
false
0.105263
0.078947
0
0.131579
0.118421
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1
91a977f44ca6b26789c3c66246a46fa0280ee2a7
1,143
py
Python
softwarecollections/scls/migrations/0004_other_repos_default_values.py
WEBZCC/softwarecollections
efee5c3c276033d526a0cdba504d43deff71581e
[ "BSD-3-Clause" ]
39
2016-12-24T02:57:55.000Z
2022-02-15T09:29:43.000Z
softwarecollections/scls/migrations/0004_other_repos_default_values.py
WEBZCC/softwarecollections
efee5c3c276033d526a0cdba504d43deff71581e
[ "BSD-3-Clause" ]
32
2016-11-21T15:05:07.000Z
2021-12-06T11:52:32.000Z
softwarecollections/scls/migrations/0004_other_repos_default_values.py
WEBZCC/softwarecollections
efee5c3c276033d526a0cdba504d43deff71581e
[ "BSD-3-Clause" ]
13
2016-12-14T10:42:22.000Z
2022-01-01T20:35:15.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('scls', '0003_other_repos'), ] operations = [ migrations.AlterField( model_name='otherrepo', name='ar...
32.657143
185
0.582677
107
1,143
6.056075
0.420561
0.123457
0.154321
0.179012
0.552469
0.510802
0.381173
0.381173
0.16358
0
0
0.013095
0.265092
1,143
34
186
33.617647
0.758333
0.018373
0
0.428571
0
0
0.14375
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.178571
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
91aa65150dc0f4a17f1e9ed16821f5753cc86fa6
389
py
Python
python/Excel/enumerateCells.py
davidgjy/arch-lib
b4402b96d2540995a848e6c5f600b2d99847ded6
[ "Apache-2.0" ]
null
null
null
python/Excel/enumerateCells.py
davidgjy/arch-lib
b4402b96d2540995a848e6c5f600b2d99847ded6
[ "Apache-2.0" ]
null
null
null
python/Excel/enumerateCells.py
davidgjy/arch-lib
b4402b96d2540995a848e6c5f600b2d99847ded6
[ "Apache-2.0" ]
null
null
null
import openpyxl wb = openpyxl.load_workbook('example.xlsx') sheet = wb.get_sheet_by_name('Sheet1') rows = sheet.get_highest_row() cols = sheet.get_highest_column() for i in range(1, rows + 1): for j in range(1, cols + 1): print('%s: %s' % (sheet.cell(row=i, column=j).coordinate, sheet.cell(row=i, column=j)....
32.416667
96
0.59126
57
389
3.894737
0.491228
0.072072
0.135135
0.117117
0.18018
0.18018
0
0
0
0
0
0.014925
0.138817
389
12
97
32.416667
0.647761
0
0
0
0
0
0.182058
0.118734
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91ab6aa12f229c7b9ddab5414461949479dfe028
787
py
Python
plugins/polio/migrations/0029_campaign_country.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
29
2020-12-26T07:22:19.000Z
2022-03-07T13:40:09.000Z
plugins/polio/migrations/0029_campaign_country.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
150
2020-11-09T15:03:27.000Z
2022-03-07T15:36:07.000Z
plugins/polio/migrations/0029_campaign_country.py
BLSQ/iaso
95c8087c0182bdd576598eb8cd39c440e58e15d7
[ "MIT" ]
4
2020-11-09T10:38:13.000Z
2021-10-04T09:42:47.000Z
# Generated by Django 3.1.13 on 2021-10-04 11:44 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("iaso", "0107_auto_20211001_1845"), ("polio", "0028_remove_campaign_budget_first_draft_submitted_at"), ] op...
28.107143
90
0.590851
83
787
5.385542
0.698795
0.053691
0.06264
0.098434
0
0
0
0
0
0
0
0.066298
0.310038
787
27
91
29.148148
0.756906
0.05845
0
0.095238
1
0
0.255751
0.101489
0
0
0
0
0
1
0
false
0
0.095238
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
91ac9d140e7247cc524f64941c877611ed2cbd70
6,257
py
Python
CurrencyExchange.py
aarana14/CurrencyExchange
e3f35c1481acf19683a74a41509b1dd37ae48594
[ "MIT" ]
null
null
null
CurrencyExchange.py
aarana14/CurrencyExchange
e3f35c1481acf19683a74a41509b1dd37ae48594
[ "MIT" ]
null
null
null
CurrencyExchange.py
aarana14/CurrencyExchange
e3f35c1481acf19683a74a41509b1dd37ae48594
[ "MIT" ]
null
null
null
#import external libraries used in code import requests, json import pycountry print('Currency Exchange') currencies = [] def findCurrency(): #Finds all avaliable currencies allCurrency = (list(pycountry.currencies)) for x in allCurrency: y = str(x) y = y[18:21] #Adds th...
38.863354
189
0.61563
739
6,257
5.184032
0.281461
0.028191
0.031323
0.036544
0.144871
0.102062
0.052728
0.024537
0
0
0
0.007687
0.293112
6,257
160
190
39.10625
0.858467
0.307496
0
0.215686
0
0.019608
0.194088
0.005331
0
0
0
0
0
1
0.078431
false
0.009804
0.019608
0
0.147059
0.137255
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91ad7c273462430b62373174e1161a8ff1416f63
715
py
Python
atcoder/corp/codethxfes2014a_e.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
1
2018-11-12T15:18:55.000Z
2018-11-12T15:18:55.000Z
atcoder/corp/codethxfes2014a_e.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
atcoder/corp/codethxfes2014a_e.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
r, c, m = map(int, input().split()) n = int(input()) op = [list(map(lambda x: int(x) - 1, input().split())) for _ in range(n)] board = [[0 for _ in range(c)] for _ in range(r)] for ra, rb, ca, cb in op: for j in range(ra, rb + 1): for k in range(ca, cb + 1): board[j][k] += 1 cnt = 0 for i in ra...
25.535714
73
0.439161
129
715
2.410853
0.24031
0.22508
0.096463
0.106109
0.205788
0.205788
0.205788
0.205788
0.205788
0.205788
0
0.036036
0.379021
715
27
74
26.481481
0.664414
0
0
0.16
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.04
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
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
1
91ad8a5fd94219e90c24839542dbfefd0cc9fc70
6,142
py
Python
scripts/analyse_bse.py
QU-XIAO/yambopy
ff65a4f90c1bfefe642ebc61e490efe781709ff9
[ "BSD-3-Clause" ]
21
2016-04-07T20:53:29.000Z
2021-05-14T08:06:02.000Z
scripts/analyse_bse.py
alexmoratalla/yambopy
8ec0e1e18868ccaadb3eab36c55e6a47021e257d
[ "BSD-3-Clause" ]
22
2016-06-14T22:29:47.000Z
2021-09-16T15:36:26.000Z
scripts/analyse_bse.py
alexmoratalla/yambopy
8ec0e1e18868ccaadb3eab36c55e6a47021e257d
[ "BSD-3-Clause" ]
15
2016-06-14T18:40:57.000Z
2021-08-07T13:17:43.000Z
# Copyright (C) 2018 Alexandre Morlet, Henrique Pereira Coutada Miranda # All rights reserved. # # This file is part of yambopy # from __future__ import print_function from builtins import range from yambopy import * from qepy import * import json import matplotlib.pyplot as plt import numpy as np import sys import arg...
36.559524
122
0.632693
813
6,142
4.697417
0.369004
0.015711
0.007332
0.00995
0.070175
0.070175
0.042943
0.025137
0.025137
0.025137
0
0.006644
0.240313
6,142
167
123
36.778443
0.81183
0.279551
0
0.041667
0
0
0.238428
0
0
0
0
0
0
1
0.010417
false
0
0.114583
0
0.125
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91ae1121ab522c5ec74869736cdca27ee08ca053
3,080
py
Python
halmodule.py
richteer/pyfatafl
1faddcf5d9eb36cbc6952b9a8e8bb899989f7112
[ "MIT" ]
null
null
null
halmodule.py
richteer/pyfatafl
1faddcf5d9eb36cbc6952b9a8e8bb899989f7112
[ "MIT" ]
null
null
null
halmodule.py
richteer/pyfatafl
1faddcf5d9eb36cbc6952b9a8e8bb899989f7112
[ "MIT" ]
null
null
null
from module import XMPPModule import halutils import pyfatafl class Game(): self.players = [] self.xmpp = None self.b = None self.turn = "" self.mod = None def __init__(self, mod, p1, p2): self.players = [p1, p2] self.mod = mod self.xmpp = mod.xmpp self.xmpp.sendMsg(p2, "You have been challenged to play...
29.615385
147
0.656494
461
3,080
4.370933
0.314534
0.051613
0.049132
0.039702
0.126551
0.048635
0.048635
0.048635
0.048635
0.048635
0
0.005255
0.196753
3,080
103
148
29.902913
0.809216
0.049675
0
0.156627
0
0
0.321465
0
0
0
0
0.009709
0
0
null
null
0
0.036145
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
91aeb848169969b77dd6c9be3484be7a02c40a1b
2,218
py
Python
tools/acetz.py
arkhipenko/AceTime
bc6e6aa530e309b62a204b7574322ba013066b06
[ "MIT" ]
1
2021-02-23T06:17:36.000Z
2021-02-23T06:17:36.000Z
tools/acetz.py
arkhipenko/AceTime
bc6e6aa530e309b62a204b7574322ba013066b06
[ "MIT" ]
null
null
null
tools/acetz.py
arkhipenko/AceTime
bc6e6aa530e309b62a204b7574322ba013066b06
[ "MIT" ]
null
null
null
from typing import cast, Optional from datetime import datetime, tzinfo, timedelta from zonedbpy import zone_infos from zone_processor.zone_specifier import ZoneSpecifier from zone_processor.inline_zone_info import ZoneInfo __version__ = '1.1' class acetz(tzinfo): """An implementation of datetime.tzinfo using th...
34.65625
73
0.628945
300
2,218
4.453333
0.226667
0.053892
0.067365
0.056886
0.50524
0.50524
0.50524
0.50524
0.50524
0.50524
0
0.023213
0.261948
2,218
63
74
35.206349
0.792914
0.038774
0
0.48
0
0
0.166273
0.113368
0
0
0
0
0.06
1
0.12
false
0
0.1
0.02
0.34
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91b2c92f668693110e6ccdfb6fa82e177d314e5d
8,510
py
Python
z2/part2/interactive/jm/random_fuzzy_arrows_1/554539540.py
kozakusek/ipp-2020-testy
09aa008fa53d159672cc7cbf969a6b237e15a7b8
[ "MIT" ]
1
2020-04-16T12:13:47.000Z
2020-04-16T12:13:47.000Z
z2/part2/interactive/jm/random_fuzzy_arrows_1/554539540.py
kozakusek/ipp-2020-testy
09aa008fa53d159672cc7cbf969a6b237e15a7b8
[ "MIT" ]
18
2020-03-06T17:50:15.000Z
2020-05-19T14:58:30.000Z
z2/part2/interactive/jm/random_fuzzy_arrows_1/554539540.py
kozakusek/ipp-2020-testy
09aa008fa53d159672cc7cbf969a6b237e15a7b8
[ "MIT" ]
18
2020-03-06T17:45:13.000Z
2020-06-09T19:18:31.000Z
from part1 import ( gamma_board, gamma_busy_fields, gamma_delete, gamma_free_fields, gamma_golden_move, gamma_golden_possible, gamma_move, gamma_new, ) """ scenario: test_random_actions uuid: 554539540 """ """ random actions, total chaos """ board = gamma_new(6, 8, 3, 17) assert board i...
30.722022
46
0.653114
1,575
8,510
3.388571
0.041905
0.344201
0.379427
0.505902
0.824433
0.818999
0.767285
0.634814
0.539254
0.493536
0
0.155384
0.177203
8,510
276
47
30.833333
0.606827
0
0
0.436508
0
0
0.045595
0
0
0
0
0
0.714286
1
0
false
0
0.003968
0
0.003968
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
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
7
91b37c8672721c9195859e7e71caa5db1a857b4d
25,928
py
Python
examples/run_chemistry_parser.py
ZhuoyuWei/transformers
16d0ebd55d17dd5095231566a0544ecebd56bc9c
[ "Apache-2.0" ]
null
null
null
examples/run_chemistry_parser.py
ZhuoyuWei/transformers
16d0ebd55d17dd5095231566a0544ecebd56bc9c
[ "Apache-2.0" ]
null
null
null
examples/run_chemistry_parser.py
ZhuoyuWei/transformers
16d0ebd55d17dd5095231566a0544ecebd56bc9c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The HuggingFace Inc. team. # Copyright (c) 2019 The HuggingFace Inc. 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.a...
34.432935
127
0.612234
3,024
25,928
5.005622
0.146825
0.016384
0.028077
0.007994
0.373258
0.300522
0.261214
0.209355
0.185704
0.154258
0
0.007957
0.277808
25,928
752
128
34.478723
0.800427
0.144747
0
0.294798
0
0.001927
0.115507
0.013172
0
0
0
0
0
1
0.021195
false
0.001927
0.026975
0.001927
0.063584
0.017341
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91b41dc55c2835ad843b049f4f5251bad3abf07e
676
py
Python
envergo/geodata/management/commands/import_shapefiles.py
MTES-MCT/envergo
8bb6e4ffa15a39edda51b39401db6cc12e73ad0a
[ "MIT" ]
null
null
null
envergo/geodata/management/commands/import_shapefiles.py
MTES-MCT/envergo
8bb6e4ffa15a39edda51b39401db6cc12e73ad0a
[ "MIT" ]
6
2021-07-12T14:33:18.000Z
2022-02-14T10:36:09.000Z
envergo/geodata/management/commands/import_shapefiles.py
MTES-MCT/envergo
8bb6e4ffa15a39edda51b39401db6cc12e73ad0a
[ "MIT" ]
null
null
null
from django.contrib.gis.gdal import DataSource from django.contrib.gis.utils import LayerMapping from django.core.management.base import BaseCommand from envergo.geodata.models import Zone class Command(BaseCommand): help = "Importe des zones à partir de shapefiles." def add_arguments(self, parser): ...
32.190476
60
0.695266
81
676
5.777778
0.654321
0.064103
0.07265
0.08547
0
0
0
0
0
0
0
0
0.189349
676
20
61
33.8
0.854015
0
0
0
0
0
0.139053
0
0
0
0
0
0
1
0.133333
false
0
0.4
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
91b47f9da5c47dfa6628ace04164ad0d1bc8a057
1,710
py
Python
vimfiles/bundle/ultisnips/test/test_AnonymousExpansion.py
duanqiaobb/vim-for-java
01b60e4494e65a73c9a9de00f50259d8a7c8d0bb
[ "MIT" ]
null
null
null
vimfiles/bundle/ultisnips/test/test_AnonymousExpansion.py
duanqiaobb/vim-for-java
01b60e4494e65a73c9a9de00f50259d8a7c8d0bb
[ "MIT" ]
null
null
null
vimfiles/bundle/ultisnips/test/test_AnonymousExpansion.py
duanqiaobb/vim-for-java
01b60e4494e65a73c9a9de00f50259d8a7c8d0bb
[ "MIT" ]
null
null
null
from test.vim_test_case import VimTestCase as _VimTest from test.constant import * # Anonymous Expansion {{{# class _AnonBase(_VimTest): args = '' def _extra_options_pre_init(self, vim_config): vim_config.append('inoremap <silent> %s <C-R>=UltiSnips#Anon(%s)<cr>' % (EA, se...
25.147059
77
0.615789
214
1,710
4.742991
0.271028
0.079803
0.124138
0.118227
0.539901
0.461084
0.423645
0.362562
0.151724
0.151724
0
0.034928
0.229825
1,710
67
78
25.522388
0.735763
0.031579
0
0.348837
0
0
0.300424
0.016959
0
0
0
0
0
1
0.023256
false
0
0.046512
0
0.953488
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91b495763107bc2ceb225b3984a8b4ffae309299
2,914
py
Python
data_converter/data_converter.py
jkchen2/JshBot-plugins
b5999fecf0df067e34673ff193dcfbf8c7e2fde2
[ "MIT" ]
1
2021-08-09T19:28:49.000Z
2021-08-09T19:28:49.000Z
data_converter/data_converter.py
jkchen2/JshBot-plugins
b5999fecf0df067e34673ff193dcfbf8c7e2fde2
[ "MIT" ]
null
null
null
data_converter/data_converter.py
jkchen2/JshBot-plugins
b5999fecf0df067e34673ff193dcfbf8c7e2fde2
[ "MIT" ]
2
2017-07-14T00:15:54.000Z
2019-03-02T09:46:21.000Z
import discord from jshbot import utilities, data, configurations, plugins, logger from jshbot.exceptions import BotException, ConfiguredBotException from jshbot.commands import ( Command, SubCommand, Shortcut, ArgTypes, Attachment, Arg, Opt, MessageTypes, Response) __version__ = '0.1.0' CBException = ConfiguredB...
38.853333
96
0.576527
351
2,914
4.652422
0.273504
0.072872
0.051439
0.060012
0.363748
0.256583
0.1782
0.147581
0.131047
0.083282
0
0.003923
0.300275
2,914
74
97
39.378378
0.796959
0.075841
0
0.095238
0
0
0.122899
0
0
0
0
0.013514
0
1
0.047619
false
0.015873
0.063492
0.015873
0.174603
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
91b5d5a9da8d21cc54215371e88cbf75203f4ad6
374
py
Python
tut2.py
ankit98040/TKINTER-JIS
8b650138bf8ab2449da83e910ee33c0caee69a8d
[ "Apache-2.0" ]
null
null
null
tut2.py
ankit98040/TKINTER-JIS
8b650138bf8ab2449da83e910ee33c0caee69a8d
[ "Apache-2.0" ]
null
null
null
tut2.py
ankit98040/TKINTER-JIS
8b650138bf8ab2449da83e910ee33c0caee69a8d
[ "Apache-2.0" ]
null
null
null
from tkinter import * from PIL import Image, ImageTk #python image library #imagetk supports jpg image a1 = Tk() a1.geometry("455x244") #for png image #photo = PhotoImage(file="filename.png") #a2 = Label(image = photo) #a2.pack() image = Image.open("PJXlVd.jpg") photo = ImageTk.PhotoImage(image) ...
17
41
0.671123
51
374
4.921569
0.509804
0.119522
0.095618
0.135458
0.183267
0.183267
0
0
0
0
0
0.043046
0.192513
374
22
42
17
0.788079
0.352941
0
0
0
0
0.078704
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91b62cc1816352d2c7a0ead7b1bf1eabb9a68df6
8,113
py
Python
dataset.py
mintanwei/IPCLs-Net
04937df683216a090c0749cc90ab7e517dbab0fd
[ "MIT" ]
null
null
null
dataset.py
mintanwei/IPCLs-Net
04937df683216a090c0749cc90ab7e517dbab0fd
[ "MIT" ]
null
null
null
dataset.py
mintanwei/IPCLs-Net
04937df683216a090c0749cc90ab7e517dbab0fd
[ "MIT" ]
null
null
null
import os import torch from PIL import Image from read_csv import csv_to_label_and_bbx import numpy as np from torch.utils.data import Subset, random_split, ConcatDataset class NBIDataset(object): def __init__(self, root, transforms, nob3=False): self.root = root self.transforms = transforms ...
32.322709
110
0.598053
1,065
8,113
4.384038
0.134272
0.039409
0.038552
0.029985
0.773185
0.750482
0.715357
0.709574
0.70272
0.70272
0
0.014833
0.260446
8,113
250
111
32.452
0.763333
0.163688
0
0.608974
0
0
0.044922
0
0
0
0
0
0
1
0.121795
false
0
0.038462
0.038462
0.275641
0.012821
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
91b7b2d421c1a0795b99655b4fa4a8c0503e4114
1,056
py
Python
design_patterns/chapter5/mymath.py
FeliciaMJ/PythonLearningJourney
ae1bfac872ee29256e69df6e0e8e507321404cba
[ "Apache-2.0" ]
null
null
null
design_patterns/chapter5/mymath.py
FeliciaMJ/PythonLearningJourney
ae1bfac872ee29256e69df6e0e8e507321404cba
[ "Apache-2.0" ]
null
null
null
design_patterns/chapter5/mymath.py
FeliciaMJ/PythonLearningJourney
ae1bfac872ee29256e69df6e0e8e507321404cba
[ "Apache-2.0" ]
2
2021-04-04T00:27:29.000Z
2021-06-05T03:26:53.000Z
# coding: utf-8 import functools def memoize(fn): known = dict() @functools.wraps(fn) def memoizer(*args): if args not in known: known[args] = fn(*args) return known[args] return memoizer @memoize def nsum(n): '''返回前n个数字的和''' assert(n >= 0), 'n must be >= 0' ...
25.142857
75
0.507576
131
1,056
3.938931
0.358779
0.011628
0.031008
0.034884
0.085271
0.085271
0.085271
0.085271
0
0
0
0.024523
0.304924
1,056
41
76
25.756098
0.678474
0.035985
0
0.142857
0
0
0.142999
0
0
0
0
0
0.071429
1
0.142857
false
0
0.214286
0
0.5
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91b7d7d61842cf27c4aaa82c80b40afa5304b3b0
27
py
Python
transforms/__init__.py
yangyuke001/emotion-expression.shufflenetv2
d70fd17871fb758eb4fc7d2f9df430cc7e44ad64
[ "Apache-2.0" ]
3
2019-11-29T01:29:58.000Z
2020-09-16T12:48:49.000Z
transforms/__init__.py
yangyuke001/emotion-expression.shufflenetv2
d70fd17871fb758eb4fc7d2f9df430cc7e44ad64
[ "Apache-2.0" ]
null
null
null
transforms/__init__.py
yangyuke001/emotion-expression.shufflenetv2
d70fd17871fb758eb4fc7d2f9df430cc7e44ad64
[ "Apache-2.0" ]
null
null
null
from .transforms import *
9
25
0.740741
3
27
6.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.185185
27
2
26
13.5
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
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
6
91b880c2b2d9577a02c8519251133c3cee61564c
14,894
py
Python
codes/elastoplasticity_spectralAnalysis/planeStress/slowWavePlaneStressSigDriven.py
adRenaud/research
2f0062a1800d7a17577bbfc2393b084253d567f4
[ "MIT" ]
1
2021-06-18T14:52:03.000Z
2021-06-18T14:52:03.000Z
codes/elastoplasticity_spectralAnalysis/planeStress/slowWavePlaneStressSigDriven.py
adRenaud/research
2f0062a1800d7a17577bbfc2393b084253d567f4
[ "MIT" ]
1
2019-01-07T13:11:11.000Z
2019-01-07T13:11:11.000Z
codes/elastoplasticity_spectralAnalysis/planeStress/slowWavePlaneStressSigDriven.py
adRenaud/research
2f0062a1800d7a17577bbfc2393b084253d567f4
[ "MIT" ]
null
null
null
# !\usr\bin\python import numpy as np from mpl_toolkits import mplot3d import matplotlib.pyplot as plt import scipy.optimize from matplotlib import animation from scipy.integrate import ode import pdb # Material parameters rho = 7800. E = 2.e11 nu = 0.3 mu = 0.5*E/(1.+nu) kappa = E/(3.*(1.-2.*nu)) lamb = kappa-2.*mu/3...
37.422111
216
0.589701
2,644
14,894
3.294629
0.131619
0.013776
0.007577
0.008725
0.362645
0.316841
0.239353
0.170474
0.1443
0.122259
0
0.127085
0.178998
14,894
397
217
37.516373
0.585296
0.110044
0
0.09894
0
0
0.022156
0
0
0
0
0
0
0
null
null
0
0.028269
null
null
0.007067
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
91b88e3d926b20d74b8739d087b18e11fc2bf047
343
py
Python
pyhsms/core/connectionstate.py
cherish-web/pyhsms
83a88b8b45bf1aba30cb7572f44a02478009052b
[ "MIT" ]
2
2021-05-01T12:02:12.000Z
2021-05-03T14:37:27.000Z
pyhsms/core/connectionstate.py
cherish-web/pyhsms
83a88b8b45bf1aba30cb7572f44a02478009052b
[ "MIT" ]
null
null
null
pyhsms/core/connectionstate.py
cherish-web/pyhsms
83a88b8b45bf1aba30cb7572f44a02478009052b
[ "MIT" ]
null
null
null
# _*_ coding: utf-8 _*_ #@Time : 2020/7/29 上午 09:49 #@Author : cherish_peng #@Email : 1058386071@qq.com #@File : connectionstate.py #@Software : PyCharm from enum import Enum class ConnectionState(Enum): ''' ConnectionState enum ''' DisConnected = 0 Connecting=1 Connected=2 ...
21.4375
32
0.626822
41
343
5.121951
0.878049
0.180952
0
0
0
0
0
0
0
0
0
0.105882
0.25656
343
16
33
21.4375
0.717647
0.524781
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91b96455218c552cfb88f8804f7f9440605930b5
84,787
py
Python
lifelines/fitters/coxph_fitter.py
msanpe/lifelines
a73d441f6347332ca870bf2ec32eeeca410dc6de
[ "MIT" ]
null
null
null
lifelines/fitters/coxph_fitter.py
msanpe/lifelines
a73d441f6347332ca870bf2ec32eeeca410dc6de
[ "MIT" ]
null
null
null
lifelines/fitters/coxph_fitter.py
msanpe/lifelines
a73d441f6347332ca870bf2ec32eeeca410dc6de
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time from datetime import datetime import warnings from textwrap import dedent, fill import numpy as np import pandas as pd from numpy.linalg import norm, inv from scipy.linalg import solve as spsolve, LinAlgError from scipy.integrate import trapz from scipy import stats from lifelines....
40.374762
354
0.585868
10,644
84,787
4.496054
0.114619
0.006018
0.001943
0.005642
0.421556
0.36591
0.322551
0.295909
0.265568
0.256833
0
0.015482
0.320485
84,787
2,099
355
40.393997
0.815149
0.319188
0
0.331088
0
0.005775
0.048757
0.0005
0
0
0
0.001906
0.00385
1
0.042348
false
0
0.018287
0.000962
0.106833
0.018287
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91ba64e37706ae1e4223523b060a3928b5d8e678
393
py
Python
nlp_server/config/test/test_config.py
asevans48/NLPServer
6feb1d89748165f9efea40d0777d355044c48176
[ "Apache-2.0" ]
null
null
null
nlp_server/config/test/test_config.py
asevans48/NLPServer
6feb1d89748165f9efea40d0777d355044c48176
[ "Apache-2.0" ]
null
null
null
nlp_server/config/test/test_config.py
asevans48/NLPServer
6feb1d89748165f9efea40d0777d355044c48176
[ "Apache-2.0" ]
null
null
null
""" Test configuration loading @author aevans """ import os from nlp_server.config import load_config def test_load_config(): """ Test loading a configuration """ current_dir = os.path.curdir test_path = os.path.sep.join([current_dir, 'data', 'test_config.json']) cfg = load_config.load_conf...
18.714286
75
0.699746
57
393
4.614035
0.526316
0.152091
0.106464
0
0
0
0
0
0
0
0
0
0.198473
393
20
76
19.65
0.834921
0.180662
0
0
0
0
0.06689
0
0
0
0
0
0.25
1
0.125
false
0
0.25
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91bc729480a0e69ec82630c25580e01aa1aa5937
4,469
py
Python
frappe/utils/safe_exec.py
ektai/frappe3
44aa948b4d5a0d729eacfb3dabdc9c8894ae1799
[ "MIT" ]
null
null
null
frappe/utils/safe_exec.py
ektai/frappe3
44aa948b4d5a0d729eacfb3dabdc9c8894ae1799
[ "MIT" ]
null
null
null
frappe/utils/safe_exec.py
ektai/frappe3
44aa948b4d5a0d729eacfb3dabdc9c8894ae1799
[ "MIT" ]
null
null
null
import os, json, inspect import mimetypes from html2text import html2text from RestrictedPython import compile_restricted, safe_globals import RestrictedPython.Guards import frappe import frappe.utils import frappe.utils.data from frappe.website.utils import (get_shade, get_toc, get_next_link) from frappe.modules impo...
29.401316
118
0.762587
634
4,469
5.11041
0.291798
0.033951
0.033333
0.016667
0.129321
0.046914
0.046914
0.025309
0.025309
0.025309
0
0.002075
0.137167
4,469
152
119
29.401316
0.838174
0.101141
0
0.095652
0
0
0.046965
0
0
0
0
0
0
1
0.043478
false
0.008696
0.104348
0.008696
0.182609
0.026087
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91bccefcfa09a20e9fc27c2975179329c5876dd6
2,461
py
Python
simplejson/ordered_dict.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
simplejson/ordered_dict.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
simplejson/ordered_dict.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
"""Drop-in replacement for collections.OrderedDict by Raymond Hettinger http://code.activestate.com/recipes/576693/ """ try: all except NameError: def all(seq): for elem in seq: if not elem: return False return True class OrderedDict(dict, DictMixin): def __init__(self, *args, **kwds): if len(args) > 1:...
26.180851
94
0.670053
363
2,461
4.247934
0.280992
0.049935
0.021401
0.027237
0.123865
0.123865
0.07393
0.045396
0.045396
0.045396
0
0.009548
0.191386
2,461
94
95
26.180851
0.765327
0.04551
0
0.142857
0
0
0.027742
0
0
0
0
0
0
1
0.164835
false
0
0
0.032967
0.406593
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91be6d919cdb079a9a7700432f62e3627d2ca47d
286
py
Python
Water.py
KRHS-GameProgramming-2015/Adlez
8912da1ee4b3c7b105851dbcc00579ff0c3cf33e
[ "BSD-2-Clause" ]
null
null
null
Water.py
KRHS-GameProgramming-2015/Adlez
8912da1ee4b3c7b105851dbcc00579ff0c3cf33e
[ "BSD-2-Clause" ]
4
2016-04-01T15:12:31.000Z
2016-04-18T15:05:29.000Z
Water.py
KRHS-GameProgramming-2015/Adlez
8912da1ee4b3c7b105851dbcc00579ff0c3cf33e
[ "BSD-2-Clause" ]
null
null
null
from HardBlock import * class Water(HardBlock): def __init__(self, pos=[0,0], blockSize = 25): image = "Block/Block Images/water.png" HardBlock.__init__(self, image, pos, blockSize) def update(*args): pass
17.875
55
0.534965
30
286
4.833333
0.633333
0.110345
0
0
0
0
0
0
0
0
0
0.021858
0.36014
286
15
56
19.066667
0.770492
0
0
0
0
0
0.098246
0
0
0
0
0
0
1
0.285714
false
0.142857
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
91be89ca5480384018cb3e20d95ea9abdcb4c1bb
4,136
py
Python
baselines/bc.py
bgalbraith/minerl-haiku-baselines
c33b14699af14c904394d9c4e30dee680a8718d6
[ "Apache-2.0" ]
2
2020-07-11T07:56:46.000Z
2020-08-20T07:59:53.000Z
baselines/bc.py
bgalbraith/minerl-haiku-baselines
c33b14699af14c904394d9c4e30dee680a8718d6
[ "Apache-2.0" ]
null
null
null
baselines/bc.py
bgalbraith/minerl-haiku-baselines
c33b14699af14c904394d9c4e30dee680a8718d6
[ "Apache-2.0" ]
null
null
null
import dill import haiku as hk import jax from jax.experimental import optix import jax.numpy as jnp from dataset import load_data MINERL_ENV = 'MineRLTreechopVectorObf-v0' PARAMS_FILENAME = 'bc_params_treechop.pkl' class PovStack(hk.Module): """ PovStack is a module for processing the point-of-view image data...
30.411765
105
0.579787
549
4,136
4.1949
0.306011
0.024316
0.023448
0.028658
0.261832
0.240122
0.208424
0.156318
0.156318
0.125054
0
0.032247
0.310203
4,136
135
106
30.637037
0.774974
0.173114
0
0.306818
0
0
0.036782
0.014354
0
0
0
0
0
1
0.113636
false
0
0.068182
0
0.284091
0.011364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91c15e0720d4970bd1fb3bf3b4458b92fb250bec
3,236
py
Python
qiskit/circuit/library/templates/__init__.py
ajavadia/qiskit-sdk-py
a59e8e6be1793197e19998c1f7dcfc45e6f2f3af
[ "Apache-2.0" ]
15
2020-06-29T08:33:39.000Z
2022-02-12T00:28:51.000Z
qiskit/circuit/library/templates/__init__.py
ajavadia/qiskit-sdk-py
a59e8e6be1793197e19998c1f7dcfc45e6f2f3af
[ "Apache-2.0" ]
6
2021-01-17T17:56:08.000Z
2021-04-01T12:40:21.000Z
qiskit/circuit/library/templates/__init__.py
ajavadia/qiskit-sdk-py
a59e8e6be1793197e19998c1f7dcfc45e6f2f3af
[ "Apache-2.0" ]
11
2020-06-29T08:40:24.000Z
2022-02-24T17:39:16.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
48.298507
79
0.860939
639
3,236
3.918623
0.164319
0.412939
0.28155
0.337859
0.386981
0.033546
0
0
0
0
0
0.069863
0.097651
3,236
66
80
49.030303
0.787671
0.218171
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
91c2124933101c4997c3e85497e979cf423b2846
10,418
py
Python
Tests/test_ironmath.py
btddg28/ironpython
8006238c19d08db5db9bada39d765143e631059e
[ "Apache-2.0" ]
null
null
null
Tests/test_ironmath.py
btddg28/ironpython
8006238c19d08db5db9bada39d765143e631059e
[ "Apache-2.0" ]
null
null
null
Tests/test_ironmath.py
btddg28/ironpython
8006238c19d08db5db9bada39d765143e631059e
[ "Apache-2.0" ]
null
null
null
##################################################################################### # # Copyright (c) Microsoft Corporation. All rights reserved. # # This source code is subject to terms and conditions of the Apache License, Version 2.0. A # copy of the license can be found in the License.html file at the root of th...
41.015748
241
0.656748
1,016
10,418
6.690945
0.25689
0.090026
0.023683
0.011474
0.31877
0.230656
0.192262
0.150044
0.10915
0.10915
0
0.203911
0.209637
10,418
253
242
41.177866
0.621691
0.062584
0
0.333333
0
0
0.010129
0
0
0
0.053154
0
0.095238
1
0.068783
false
0.005291
0.037037
0.010582
0.121693
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
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
1
91c2c2561ea4fef57e7b95890c99ab69daf79a23
6,939
py
Python
python/lib/viewer/gener_q_vs_w_for_df.py
timtyree/bgmc
891e003a9594be9e40c53822879421c2b8c44eed
[ "MIT" ]
null
null
null
python/lib/viewer/gener_q_vs_w_for_df.py
timtyree/bgmc
891e003a9594be9e40c53822879421c2b8c44eed
[ "MIT" ]
null
null
null
python/lib/viewer/gener_q_vs_w_for_df.py
timtyree/bgmc
891e003a9594be9e40c53822879421c2b8c44eed
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt, numpy as np, pandas as pd,os from ..model import recall_powerlaw_fits_to_full_models from .. import compute_power_rmse from .bluf import * from ..measure.powerlaw import * from .gener_q_vs_w_for_result_folder import * def q_vs_w_plotter_function_from_df(ax,df): # npartitions=os.cp...
39.651429
130
0.678484
1,149
6,939
3.889469
0.140992
0.034907
0.069814
0.102036
0.764601
0.743791
0.726785
0.699485
0.672634
0.644887
0
0.021555
0.150886
6,939
174
131
39.87931
0.736931
0.17553
0
0.728682
0
0.007752
0.187125
0.100353
0
0
0
0.005747
0
1
0.015504
false
0
0.046512
0
0.077519
0.232558
0
0
0
null
0
0
0
0
1
1
0
0
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
4
91c49a7dc1b6f619c4919335c93fb67b97477b88
7,917
py
Python
decatt/model.py
achyudh/castor
d7a02ce03f2b71ef1fa490122dd4bbc8214b8b19
[ "Apache-2.0" ]
132
2017-04-02T12:31:55.000Z
2019-03-09T07:53:29.000Z
decatt/model.py
sudipta90/castor
fa2f59535c71a0fb4586afbe543b81ba812c8630
[ "Apache-2.0" ]
111
2017-04-01T23:00:24.000Z
2019-03-10T08:29:20.000Z
decatt/model.py
sudipta90/castor
fa2f59535c71a0fb4586afbe543b81ba812c8630
[ "Apache-2.0" ]
53
2017-04-06T01:17:18.000Z
2019-02-27T03:10:35.000Z
import sys import math import numpy as np from datetime import datetime import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable class DecAtt(nn.Module): def __init__(self, num_units, num_classes, embedding_size, dropout, device=0, training=True, p...
46.298246
136
0.653909
1,057
7,917
4.661306
0.177862
0.047087
0.073067
0.029227
0.310331
0.275624
0.244368
0.236858
0.168865
0.151411
0
0.024464
0.246179
7,917
170
137
46.570588
0.801106
0.240369
0
0.038462
0
0
0.001395
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.221154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0