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
5b7677628f641cd87d475d7900b08a0f1f9a0cc8
2,641
py
Python
tests/domain/test_Instrument_perform.py
josiah-wolf-oberholtzer/tloen
731e57f2a0634d5e472c5878ff5b9cc7b4d84974
[ "MIT" ]
3
2020-02-09T09:29:45.000Z
2021-12-29T01:37:45.000Z
tests/domain/test_Instrument_perform.py
josiah-wolf-oberholtzer/tloen
731e57f2a0634d5e472c5878ff5b9cc7b4d84974
[ "MIT" ]
null
null
null
tests/domain/test_Instrument_perform.py
josiah-wolf-oberholtzer/tloen
731e57f2a0634d5e472c5878ff5b9cc7b4d84974
[ "MIT" ]
1
2020-12-12T22:29:48.000Z
2020-12-12T22:29:48.000Z
import asyncio import pytest from supriya.assets.synthdefs import default from uqbar.strings import normalize from tloen.domain import Application, Instrument from tloen.midi import NoteOnMessage @pytest.fixture async def application(): application = Application() context = await application.add_context(nam...
37.728571
97
0.595608
330
2,641
4.733333
0.254545
0.019206
0.03073
0.026889
0.689501
0.669014
0.669014
0.669014
0.669014
0.653009
0
0.078198
0.268838
2,641
69
98
38.275362
0.730709
0
0
0.317073
0
0
0.023567
0
0
0
0
0
0.097561
1
0
false
0
0.146341
0
0.146341
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5b76d1c0d954a8965e785d0d46268bbbacc88062
1,357
py
Python
idealplanets/environment.py
bnb32/spring_onset
f856e839c38c7eb72c8f6148fa1c82e880925370
[ "MIT" ]
null
null
null
idealplanets/environment.py
bnb32/spring_onset
f856e839c38c7eb72c8f6148fa1c82e880925370
[ "MIT" ]
null
null
null
idealplanets/environment.py
bnb32/spring_onset
f856e839c38c7eb72c8f6148fa1c82e880925370
[ "MIT" ]
null
null
null
import os USERNAME='bbenton' PROJECT_CODE='UCOR0044' MAIN_DIR='/glade/u/home/'+USERNAME+'/spring_onset/' MY_CESM_DIR=MAIN_DIR+'/my_cesm' POST_PROC_DIR=MAIN_DIR+'/idealplanets/postprocessing/' PRE_PROC_DIR=MAIN_DIR+'/idealplanets/preprocessing/' SCRATCH_DIR='/glade/scratch/'+USERNAME+'/' CIME_OUTPUT_ROOT=SCRATCH_DIR+'/...
37.694444
75
0.812822
234
1,357
4.260684
0.354701
0.042126
0.04012
0.028084
0.052156
0
0
0
0
0
0
0.073485
0.027266
1,357
35
76
38.771429
0.681818
0.201179
0
0
0
0
0.404453
0.207792
0
0
0
0
0
1
0
false
0
0.037037
0
0.037037
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
5b77172878c48e201c7ca6f3a1acef26fd66d49d
5,316
py
Python
app/services/routes/service.py
codepointtku/viuhka-flask
e51382a306675efabebe2a47d0ae54b7abcdb884
[ "MIT" ]
null
null
null
app/services/routes/service.py
codepointtku/viuhka-flask
e51382a306675efabebe2a47d0ae54b7abcdb884
[ "MIT" ]
1
2021-06-02T00:32:26.000Z
2021-06-02T00:32:26.000Z
app/services/routes/service.py
codepointtku/viuhka-flask
e51382a306675efabebe2a47d0ae54b7abcdb884
[ "MIT" ]
1
2019-11-29T05:46:59.000Z
2019-11-29T05:46:59.000Z
from flask import Blueprint, render_template, request, redirect, Response, url_for from flask_login import login_required, current_user from flask_wtf.csrf import validate_csrf from app.services.models.service import ( Service, get_services...
40.580153
135
0.569789
571
5,316
5.119089
0.204904
0.026343
0.028738
0.020527
0.461512
0.347246
0.281902
0.281902
0.281902
0.281902
0
0.00834
0.323363
5,316
131
136
40.580153
0.804281
0.000941
0
0.447368
0
0
0.091149
0.024105
0
0
0
0
0
1
0.026316
false
0.035088
0.087719
0
0.22807
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5b784884f3f3becd440432e2e673aa3c849de8b5
915
py
Python
tests/test_webhook.py
unfoldingWord-dev/door43-catalog-job-handler
d08ac8d6b31fb16063c103113cf338b624f10257
[ "MIT" ]
null
null
null
tests/test_webhook.py
unfoldingWord-dev/door43-catalog-job-handler
d08ac8d6b31fb16063c103113cf338b624f10257
[ "MIT" ]
null
null
null
tests/test_webhook.py
unfoldingWord-dev/door43-catalog-job-handler
d08ac8d6b31fb16063c103113cf338b624f10257
[ "MIT" ]
null
null
null
import json from unittest import TestCase, skip from unittest.mock import patch from app_settings.app_settings import AppSettings from rq_settings import prefix, webhook_queue_name from webhook import process_webhook_job def my_get_current_job(): class Result: id = 12345 origin = webhook_queue_na...
27.727273
77
0.734426
123
915
5.195122
0.487805
0.062598
0.081377
0.046948
0
0
0
0
0
0
0
0.006821
0.198907
915
32
78
28.59375
0.864939
0.056831
0
0
0
0
0.070848
0.068525
0
0
0
0
0.045455
1
0.181818
false
0
0.272727
0
0.727273
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
5b78c81118416d931976b8f9e56f5af3adf5b603
5,799
py
Python
src/idom/backend/starlette.py
jmtaysom/idom
d2a569d27f915d3b2b1fc6eb8eef9aca3a6d9343
[ "MIT" ]
55
2019-02-28T23:58:42.000Z
2020-07-14T22:01:45.000Z
src/idom/backend/starlette.py
jmtaysom/idom
d2a569d27f915d3b2b1fc6eb8eef9aca3a6d9343
[ "MIT" ]
72
2019-04-04T18:46:30.000Z
2020-06-24T02:47:57.000Z
src/idom/backend/starlette.py
jmtaysom/idom
d2a569d27f915d3b2b1fc6eb8eef9aca3a6d9343
[ "MIT" ]
7
2019-04-02T17:53:30.000Z
2020-06-23T16:17:58.000Z
from __future__ import annotations import asyncio import json import logging from dataclasses import dataclass from typing import Any, Awaitable, Callable, Dict, Tuple, Union from starlette.applications import Starlette from starlette.middleware.cors import CORSMiddleware from starlette.staticfiles import StaticFiles...
32.038674
88
0.703914
705
5,799
5.6
0.321986
0.020517
0.017731
0.013678
0.090172
0.047619
0
0
0
0
0
0.000863
0.201069
5,799
180
89
32.216667
0.851284
0.155372
0
0.044643
0
0
0.050465
0.010182
0
0
0
0
0
1
0.080357
false
0
0.169643
0
0.357143
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
5b79cabe84902f79ff0d8c0db3006962e902cb92
650
py
Python
python/tests/strings/test_lsd_string_sort.py
rcanepa/cs-fundamentals
b362fc206417501e53a5739df1edf7568901eef8
[ "MIT" ]
null
null
null
python/tests/strings/test_lsd_string_sort.py
rcanepa/cs-fundamentals
b362fc206417501e53a5739df1edf7568901eef8
[ "MIT" ]
null
null
null
python/tests/strings/test_lsd_string_sort.py
rcanepa/cs-fundamentals
b362fc206417501e53a5739df1edf7568901eef8
[ "MIT" ]
null
null
null
import unittest from strings.lsd_string_sort import lsd_sort class LSDSort(unittest.TestCase): def setUp(self): self.licenses = [ "4PGC938", "2IYE230", "3CI0720", "1ICK750", "1OHV845", "4JZY524", "1ICK750", "3C...
25
59
0.526154
57
650
5.77193
0.491228
0.121581
0.109422
0
0
0
0
0
0
0
0
0.132678
0.373846
650
26
59
25
0.675676
0
0
0.391304
0
0
0.139785
0
0
0
0
0
0.043478
1
0.086957
false
0
0.086957
0
0.217391
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
5b7ceb722e2e31b6203402c457d5bed34c5fdffb
458
py
Python
src/python/pants/backend/experimental/kotlin/lint/ktlint/register.py
wonlay/pants
53c66503b6898e83c9c9596e56cde5ad9ed6a0d3
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/experimental/kotlin/lint/ktlint/register.py
wonlay/pants
53c66503b6898e83c9c9596e56cde5ad9ed6a0d3
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/experimental/kotlin/lint/ktlint/register.py
wonlay/pants
53c66503b6898e83c9c9596e56cde5ad9ed6a0d3
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.backend.experimental.scala.register import rules as all_kotlin_rules from pants.backend.kotlin.lint.ktlint import rules as ktlint_rules from pants.backend.kotlin.lint.ktlint imp...
30.533333
79
0.740175
62
458
5.33871
0.5
0.081571
0.145015
0.126888
0.259819
0.259819
0.259819
0.259819
0
0
0
0.015748
0.168122
458
14
80
32.714286
0.853018
0.275109
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
true
0
0.333333
0.111111
0.555556
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
1
1
1
0
0
4
5b7fc793ffe2598f7fc3e99084535d7e8a02825e
2,523
py
Python
Neville.py
VdeThevenin/Lagrange-Neville
35081615556d405dba30f874494e382ea5881817
[ "CC0-1.0" ]
null
null
null
Neville.py
VdeThevenin/Lagrange-Neville
35081615556d405dba30f874494e382ea5881817
[ "CC0-1.0" ]
null
null
null
Neville.py
VdeThevenin/Lagrange-Neville
35081615556d405dba30f874494e382ea5881817
[ "CC0-1.0" ]
null
null
null
""" Lagrange's Interpolation class File """ import sympy as sp import numpy as np from time import process_time as timer class Neville: def __init__(self): self.Q = [] self.time_ellapsed = 0 self.x = np.array([]) self.y = np.array([]) self._x = sp.symbols('x', real=True) ...
31.5375
120
0.442727
340
2,523
3.232353
0.226471
0.100091
0.080073
0.054595
0.247498
0.241128
0.213831
0.175614
0.153776
0.10737
0
0.019938
0.363853
2,523
79
121
31.936709
0.664798
0.122473
0
0.070175
0
0
0.015427
0
0
0
0
0
0
1
0.087719
false
0
0.052632
0
0.175439
0.035088
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5b808a99380bd94afac98d7d0e9d8f814414f64f
1,103
py
Python
tests/test_fuzzy_matching.py
zhangkaizhao/supportbot
03c8e1761a3450614b53c3bdc8c5c33af1f186ec
[ "MIT" ]
1
2019-02-27T06:07:17.000Z
2019-02-27T06:07:17.000Z
tests/test_fuzzy_matching.py
zhangkaizhao/supportbot
03c8e1761a3450614b53c3bdc8c5c33af1f186ec
[ "MIT" ]
null
null
null
tests/test_fuzzy_matching.py
zhangkaizhao/supportbot
03c8e1761a3450614b53c3bdc8c5c33af1f186ec
[ "MIT" ]
null
null
null
from supportbot.bots import FuzzyMatchingSupportbot from helpers import get_fixture_filepath def _make_bot(filename): filepath = get_fixture_filepath(filename) return FuzzyMatchingSupportbot(filepath) def test_fuzzy_matching_reply(): filename = "questions_answers.txt" question = "OK?" bot = _m...
21.627451
51
0.715322
137
1,103
5.49635
0.248175
0.111554
0.099602
0.106242
0.749004
0.622842
0.524568
0.486056
0.486056
0.486056
0
0
0.186763
1,103
50
52
22.06
0.839465
0
0
0.580645
0
0
0.116954
0.081596
0
0
0
0
0.193548
1
0.16129
false
0
0.064516
0
0.258065
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5b808ed1b42ee2bf4fcd01d4c2489a179a5aa41b
6,668
py
Python
experiments/firefox_send/Flask_App.py
olegtaranenko/gw-proxy-serverless
afb5d7b7cfaf6bfb82bafe951e45c76a11a0ffd3
[ "Apache-2.0" ]
null
null
null
experiments/firefox_send/Flask_App.py
olegtaranenko/gw-proxy-serverless
afb5d7b7cfaf6bfb82bafe951e45c76a11a0ffd3
[ "Apache-2.0" ]
null
null
null
experiments/firefox_send/Flask_App.py
olegtaranenko/gw-proxy-serverless
afb5d7b7cfaf6bfb82bafe951e45c76a11a0ffd3
[ "Apache-2.0" ]
null
null
null
import json import sys from websocket import create_connection sys.path.append('.') sys.path.append('./modules/OSBot-Utils') from osbot_utils.utils.Files import Files from flask import Flask,request,redirect,Response #from flask_socketio import SocketIO, emit import requests from gw_proxy.api.Http_Proxy import Http...
38.543353
140
0.59913
810
6,668
4.782716
0.188889
0.034848
0.021683
0.020134
0.447599
0.413526
0.395457
0.355188
0.355188
0.355188
0
0.010965
0.234103
6,668
173
141
38.543353
0.747601
0.326035
0
0.131868
0
0.010989
0.182679
0.011277
0
0
0
0
0
1
0.043956
false
0
0.10989
0.010989
0.21978
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5b811e8a4de244fe71aecf47d57dd7da4e293d80
1,029
py
Python
spectrumuncurver/test/test_spectroCurbatureCorrection.py
DCC-Lab/spectrumuncurver
b885cfc3d253e11103700eb45a7672b8bf228479
[ "Apache-2.0" ]
null
null
null
spectrumuncurver/test/test_spectroCurbatureCorrection.py
DCC-Lab/spectrumuncurver
b885cfc3d253e11103700eb45a7672b8bf228479
[ "Apache-2.0" ]
null
null
null
spectrumuncurver/test/test_spectroCurbatureCorrection.py
DCC-Lab/spectrumuncurver
b885cfc3d253e11103700eb45a7672b8bf228479
[ "Apache-2.0" ]
1
2020-07-20T13:53:42.000Z
2020-07-20T13:53:42.000Z
from unittest import TestCase from .. .spectrumuncurver import SpectrumUncurver from PIL import Image from scipy.optimize import curve_fit import numpy as np from matplotlib import pyplot as plt class TestSpectrumProcessor(TestCase): def setUp(self) -> None: self.processor = SpectrumUncurver() def te...
27.078947
70
0.703596
128
1,029
5.453125
0.445313
0.070201
0.08596
0.10745
0.173352
0.146132
0.077364
0
0
0
0
0.03672
0.206025
1,029
37
71
27.810811
0.817625
0
0
0.185185
0
0
0.045675
0.03207
0
0
0
0
0.074074
1
0.296296
false
0
0.222222
0
0.555556
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
1
0
0
2
5b81b6e72801fe7e0ba9d0279ad1862ad020abe7
4,286
py
Python
aldryn_accounts/utils.py
conformist-mw/aldryn-accounts
e4bd60354547945a8e80cc692c0080582dd0d846
[ "MIT" ]
null
null
null
aldryn_accounts/utils.py
conformist-mw/aldryn-accounts
e4bd60354547945a8e80cc692c0080582dd0d846
[ "MIT" ]
1
2019-05-29T03:49:39.000Z
2019-05-29T09:40:04.000Z
aldryn_accounts/utils.py
conformist-mw/aldryn-accounts
e4bd60354547945a8e80cc692c0080582dd0d846
[ "MIT" ]
6
2019-03-05T15:19:26.000Z
2021-12-16T20:50:21.000Z
# -*- coding: utf-8 -*- import hashlib import logging import os import uuid import importlib from django.conf import settings from django.contrib.auth.models import User from django.utils.crypto import random import pygeoip logger = logging.getLogger('aldryn_accounts') def user_display(user, fallback_to_username=...
34.564516
173
0.716052
596
4,286
4.92953
0.261745
0.047651
0.052417
0.049013
0.408441
0.37951
0.35228
0.275698
0.223962
0.223962
0
0.00462
0.192021
4,286
123
174
34.845528
0.843777
0.130191
0
0.209302
0
0
0.052788
0
0
0
0
0.00813
0
1
0.116279
false
0.046512
0.174419
0.023256
0.55814
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
5b83a834e3f1d50dc2140e7d4b70fe0b778dca6a
4,513
py
Python
image-comment-matching/rerank.py
stonyhu/Image-Commenting
eb925a3f99075d8b74c6cabd125f7b9a1f9786d2
[ "Apache-2.0" ]
null
null
null
image-comment-matching/rerank.py
stonyhu/Image-Commenting
eb925a3f99075d8b74c6cabd125f7b9a1f9786d2
[ "Apache-2.0" ]
null
null
null
image-comment-matching/rerank.py
stonyhu/Image-Commenting
eb925a3f99075d8b74c6cabd125f7b9a1f9786d2
[ "Apache-2.0" ]
null
null
null
import time import MeCab from tqdm import tqdm import argparse import torch import torch.nn.functional as F from model import Model from utils.functional import load_image_caption, str2bool mecab = MeCab.Tagger('-Ochasen') parser = argparse.ArgumentParser('Rerank all generated captions') parser.add_argu...
37.297521
94
0.605141
562
4,513
4.681495
0.272242
0.058153
0.04523
0.027366
0.154314
0.154314
0.145572
0.126568
0.126568
0.126568
0
0.008833
0.272546
4,513
120
95
37.608333
0.792568
0.015732
0
0.081633
0
0
0.089182
0.031967
0
0
0
0
0
1
0.040816
false
0
0.081633
0
0.153061
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5b83c5eaa2c2d8a8bb4f83de0e100de77825c6af
16,924
py
Python
alpine/job.py
alpinedatalabs/python-alpine-api
2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7
[ "MIT" ]
null
null
null
alpine/job.py
alpinedatalabs/python-alpine-api
2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7
[ "MIT" ]
8
2017-03-07T01:23:22.000Z
2019-10-24T22:45:46.000Z
alpine/job.py
alpinedatalabs/python-alpine-api
2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7
[ "MIT" ]
3
2017-03-13T11:15:19.000Z
2019-03-24T21:47:05.000Z
import json import pytz from datetime import datetime, timedelta try: # For Python 3.0 and later from urllib.parse import urlparse from urllib.parse import urljoin except ImportError: # Fall back to Python 2.7 from urlparse import urlparse from urlparse import urljoin from .exception import * f...
39.63466
125
0.568424
2,059
16,924
4.530355
0.127732
0.026265
0.038593
0.020262
0.552101
0.478666
0.428066
0.400086
0.36503
0.34048
0
0.015509
0.329473
16,924
426
126
39.7277
0.806486
0.289175
0
0.306533
0
0
0.17959
0.033244
0
0
0
0
0
1
0.070352
false
0
0.050251
0.005025
0.21608
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
5b84c00b0e49a8356164bb4726b200f671aa1898
96
py
Python
stripe_shop/apps.py
Veilkrand/django-stripe-tutorial
8f47e42175cab7ff7b41a84b8dc78fbab823b013
[ "MIT" ]
2
2021-06-01T10:11:03.000Z
2022-01-13T13:31:43.000Z
stripe_shop/apps.py
Veilkrand/django-stripe-tutorial
8f47e42175cab7ff7b41a84b8dc78fbab823b013
[ "MIT" ]
null
null
null
stripe_shop/apps.py
Veilkrand/django-stripe-tutorial
8f47e42175cab7ff7b41a84b8dc78fbab823b013
[ "MIT" ]
3
2021-02-09T14:41:32.000Z
2022-03-08T01:22:39.000Z
from django.apps import AppConfig class StripeShopConfig(AppConfig): name = 'stripe_shop'
16
34
0.770833
11
96
6.636364
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.15625
96
5
35
19.2
0.901235
0
0
0
0
0
0.114583
0
0
0
0
0
0
1
0
false
0
0.333333
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
1
0
0
0
0
3
5b87871b91f38876c06627a600c27d3d24fb93ff
83
py
Python
pyfahviewer/config/__init__.py
BrandonDusseau/pyfahviewer
38d370d5bca3b20f2f683bf0879e340f4a4f7297
[ "MIT" ]
2
2020-04-17T23:11:31.000Z
2021-04-14T18:57:33.000Z
pyfahviewer/config/__init__.py
BrandonDusseau/pyfahviewer
38d370d5bca3b20f2f683bf0879e340f4a4f7297
[ "MIT" ]
9
2020-04-17T23:49:21.000Z
2020-05-05T23:48:01.000Z
pyfahviewer/config/__init__.py
BrandonDusseau/pyfahviewer
38d370d5bca3b20f2f683bf0879e340f4a4f7297
[ "MIT" ]
1
2020-04-17T22:43:47.000Z
2020-04-17T22:43:47.000Z
from .config import get_config, set_config __all__ = ('get_config', 'set_config')
20.75
42
0.759036
12
83
4.583333
0.5
0.327273
0.436364
0.654545
0
0
0
0
0
0
0
0
0.120482
83
3
43
27.666667
0.753425
0
0
0
0
0
0.240964
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
6
5b87d9344890072d51b5ec65605a79fe3b17a8f9
3,799
py
Python
src/emutils/imports.py
emanuele-albini/emutils
d5e3939da8a14b629879f06d87d4bd371e7117ab
[ "MIT" ]
null
null
null
src/emutils/imports.py
emanuele-albini/emutils
d5e3939da8a14b629879f06d87d4bd371e7117ab
[ "MIT" ]
null
null
null
src/emutils/imports.py
emanuele-albini/emutils
d5e3939da8a14b629879f06d87d4bd371e7117ab
[ "MIT" ]
null
null
null
""" This module contains a list of common imports Useful to rapidly start a Notebook without writing all imports manually. It will also set up the main logging.Logger ## Usage ```python from emutils.imports import * ``` ## Imports - Python Standard Modules: os, sys, time, platform, gc, math, random, collections, it...
21.223464
134
0.694393
467
3,799
5.503212
0.396146
0.042023
0.049805
0.062257
0.079767
0.079767
0
0
0
0
0
0.000996
0.207423
3,799
178
135
21.342697
0.852541
0.235852
0
0.289474
0
0
0.070115
0
0
0
0
0
0
1
0.008772
false
0.096491
0.429825
0
0.438596
0.140351
0
0
0
null
0
0
0
0
0
0
0
0
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
1
0
0
0
0
2
5b88727c1bb9ddfbd158eac61ace6a98bdd56aa2
1,294
py
Python
ParabuildScripts/coverageScriptTest.py
FusionBox2/MAF2
b576955f4f6b954467021f12baedfebcaf79a382
[ "Apache-2.0" ]
1
2018-01-23T09:13:40.000Z
2018-01-23T09:13:40.000Z
ParabuildScripts/coverageScriptTest.py
gradicosmo/MAF2
86ddf1f52a2de4479c09fd3f43dc321ff412af42
[ "Apache-2.0" ]
null
null
null
ParabuildScripts/coverageScriptTest.py
gradicosmo/MAF2
86ddf1f52a2de4479c09fd3f43dc321ff412af42
[ "Apache-2.0" ]
3
2020-09-24T16:04:53.000Z
2020-09-24T16:50:30.000Z
#----------------------------------------------------------------------------- # Heuristic for coverage calculation # author: Stefano Perticoni #----------------------------------------------------------------------------- import coverageScript import os import sys, string import unittest import urllib, urllib2 cla...
29.409091
82
0.621329
121
1,294
6.578512
0.520661
0.060302
0.128141
0.095477
0.226131
0.226131
0.226131
0.226131
0.226131
0.226131
0
0.013699
0.153787
1,294
43
83
30.093023
0.713242
0.166924
0
0.172414
0
0
0.136872
0
0
0
0
0
0
0
null
null
0
0.172414
null
null
0.137931
0
0
0
null
0
0
0
0
0
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
5b88af3896dc7ac76c3bd00bb55fe5410335259b
11,276
py
Python
methods/http/param_cipher.py
bbhunter/lollipopz
ed6945eab4f017b1b6b8d3d4ec7a3efc1108cd20
[ "MIT" ]
null
null
null
methods/http/param_cipher.py
bbhunter/lollipopz
ed6945eab4f017b1b6b8d3d4ec7a3efc1108cd20
[ "MIT" ]
null
null
null
methods/http/param_cipher.py
bbhunter/lollipopz
ed6945eab4f017b1b6b8d3d4ec7a3efc1108cd20
[ "MIT" ]
null
null
null
import random import urllib from scapy.layers import http import exfilkit as lpz from exfilkit import methods ENCODING_TABLE = { '0': 'radio', '1': 'spoke', '2': 'thick', '3': 'human', '4': 'atom', '5': 'effect', '6': 'electric', '7': 'expect', '8': 'bone', '9': 'rail', '...
19.079526
97
0.485012
1,073
11,276
5.05219
0.555452
0.011068
0.003874
0.005165
0.154031
0.145176
0.130972
0.130972
0.130972
0.115846
0
0.012943
0.314828
11,276
590
98
19.111864
0.688713
0
0
0.067029
0
0
0.335669
0.013569
0
0
0
0
0
1
0.018116
false
0.001812
0.009058
0.003623
0.065217
0.001812
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5b89275a0c09b79fb0e333962752c95ab1981d95
1,422
py
Python
test.py
itsmahadi007/leet_code
dafbf10c02d163ef69c8bcda26f4f67949e1170e
[ "MIT" ]
null
null
null
test.py
itsmahadi007/leet_code
dafbf10c02d163ef69c8bcda26f4f67949e1170e
[ "MIT" ]
null
null
null
test.py
itsmahadi007/leet_code
dafbf10c02d163ef69c8bcda26f4f67949e1170e
[ "MIT" ]
null
null
null
# Definition for a binary tree node. from typing import Optional class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def solver(self, r1, r2): if r1 == None and r2 == None: return Non...
21.223881
66
0.585091
187
1,422
4.427807
0.31016
0.062802
0.028986
0
0
0
0
0
0
0
0
0.04264
0.307314
1,422
66
67
21.545455
0.79797
0.087201
0
0
0
0
0.020898
0
0
0
0
0
0
1
0.113636
false
0
0.022727
0.022727
0.318182
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5b8945c7fa951796c85d83a1615cc0df86de506d
1,919
py
Python
test/libcxx/ndk/test/config.py
AOSiP/platform_external_libcxx
eb2115113f10274c0d25523ba44c3c7373ea3209
[ "MIT" ]
5
2020-12-19T06:56:06.000Z
2022-01-09T01:28:42.000Z
test/libcxx/ndk/test/config.py
AOSiP/platform_external_libcxx
eb2115113f10274c0d25523ba44c3c7373ea3209
[ "MIT" ]
1
2021-09-27T06:00:40.000Z
2021-09-27T06:00:40.000Z
test/libcxx/ndk/test/config.py
AOSiP/platform_external_libcxx
eb2115113f10274c0d25523ba44c3c7373ea3209
[ "MIT" ]
14
2017-01-21T00:56:32.000Z
2022-02-24T11:27:38.000Z
import os import libcxx.test.config import libcxx.android.test.format class Configuration(libcxx.test.config.Configuration): def __init__(self, lit_config, config): super(Configuration, self).__init__(lit_config, config) self.cxx_under_test = None self.cxx_template = None self.lin...
33.086207
79
0.625326
227
1,919
4.986784
0.30837
0.071555
0.080389
0.100707
0.136926
0.060954
0.060954
0.060954
0.060954
0.060954
0
0.002085
0.25013
1,919
57
80
33.666667
0.784573
0.045336
0
0
0
0
0.107709
0.02515
0
0
0
0
0
1
0.113636
false
0
0.068182
0
0.227273
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
5b898d9bc24faf9e5765013e37fd2996b10a93b4
2,341
py
Python
main.py
uncleben006/ptt-stock-vane
f55951eded377cc2f52fb9b98fc57c04b3ead36f
[ "MIT" ]
1
2021-01-11T06:56:59.000Z
2021-01-11T06:56:59.000Z
main.py
uncleben006/ptt-stock-vane
f55951eded377cc2f52fb9b98fc57c04b3ead36f
[ "MIT" ]
null
null
null
main.py
uncleben006/ptt-stock-vane
f55951eded377cc2f52fb9b98fc57c04b3ead36f
[ "MIT" ]
null
null
null
import json from controller import follow, postback, message, cron, image from datetime import datetime from flask import Flask, request, abort, render_template from linebot.exceptions import ( InvalidSignatureError ) from linebot.models import ( MessageEvent, FollowEvent, PostbackEvent, TextMess...
25.725275
90
0.692012
300
2,341
5.26
0.383333
0.020279
0.024715
0.039924
0
0
0
0
0
0
0
0.00368
0.187527
2,341
91
91
25.725275
0.825973
0.064502
0
0
0
0
0.163004
0.019689
0
0
0
0
0
1
0.125
false
0
0.125
0
0.328125
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5b8b223b7c31de5945dad6e3558f8e2424ffcf2e
307
py
Python
tests/test_parser.py
threatlead/blocklistde
fe3649fac2a2a59d5fadced1eecfcb2f3b32781c
[ "MIT" ]
null
null
null
tests/test_parser.py
threatlead/blocklistde
fe3649fac2a2a59d5fadced1eecfcb2f3b32781c
[ "MIT" ]
null
null
null
tests/test_parser.py
threatlead/blocklistde
fe3649fac2a2a59d5fadced1eecfcb2f3b32781c
[ "MIT" ]
null
null
null
from .context import blocklistde import unittest class ConnectTestSuite(unittest.TestCase): def test_ip_list(self): ip = blocklistde.BlocklistDe.ssh() self.assertGreater(len(ip), 10, 'Found a total of {0} ipaddresses'.format(len(ip))) if __name__ == '__main__': unittest.main()
21.928571
91
0.700326
38
307
5.394737
0.710526
0.04878
0
0
0
0
0
0
0
0
0
0.011905
0.179153
307
13
92
23.615385
0.801587
0
0
0
0
0
0.130293
0
0
0
0
0
0.125
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5b8b50e80f22b1ff5ac81a70229feaedc2879237
1,725
py
Python
votermodel/votermodel.py
ruhugu/votermodel
5f5a201754d0231bfb42a2b2299751010dd6a80e
[ "MIT" ]
null
null
null
votermodel/votermodel.py
ruhugu/votermodel
5f5a201754d0231bfb42a2b2299751010dd6a80e
[ "MIT" ]
null
null
null
votermodel/votermodel.py
ruhugu/votermodel
5f5a201754d0231bfb42a2b2299751010dd6a80e
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- from __future__ import (print_function, division, absolute_import, unicode_literals) import networkx as nx import numpy as np import random class VoterModel(object): """Voter model. Wikipedia: https://en.wikipedia.org/wiki/Voter_model """ def __ini...
26.953125
75
0.577391
192
1,725
5.0625
0.494792
0.061728
0.030864
0
0
0
0
0
0
0
0
0.005111
0.31942
1,725
63
76
27.380952
0.822828
0.296232
0
0
0
0
0
0
0
0
0
0.015873
0
1
0.173913
false
0
0.217391
0.043478
0.521739
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
5b8c98b7a0da2c7b24385ad368e7947606ef9b7d
16,016
py
Python
vaccinator.py
vikas-kundu/vaccinator
b2621f6d3fb41b0405e56226a7ce0559f321e766
[ "MIT" ]
2
2021-05-05T05:07:52.000Z
2021-05-05T22:35:12.000Z
vaccinator.py
vikas-kundu/vaccinator
b2621f6d3fb41b0405e56226a7ce0559f321e766
[ "MIT" ]
null
null
null
vaccinator.py
vikas-kundu/vaccinator
b2621f6d3fb41b0405e56226a7ce0559f321e766
[ "MIT" ]
null
null
null
print(r""" ______ <((((((\\\ / . }\ ;--..--._|} (\ '--/\--' ) \\ | '-' :'| \\ . -==- .-| \\ \.__.' \--._ [\\ __.--| // _/'...
44.612813
682
0.56225
1,924
16,016
4.537942
0.220894
0.021762
0.027259
0.020616
0.265949
0.241439
0.185889
0.169396
0.134692
0.134692
0
0.017021
0.277348
16,016
358
683
44.73743
0.737342
0.024288
0
0.214765
0
0.043624
0.41748
0.021053
0
0
0
0
0
1
0.043624
false
0.030201
0.036913
0
0.161074
0.040268
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5b8d2b28b910f8ce39ee47a610413dcc13072e6e
1,992
py
Python
src/test/cli/test_scheduler.py
pebble/flotilla
23d9b3aefd8312879549c50e52ea73f3e3f493be
[ "MIT" ]
5
2016-01-01T15:50:21.000Z
2018-11-27T17:38:15.000Z
src/test/cli/test_scheduler.py
pebble/flotilla
23d9b3aefd8312879549c50e52ea73f3e3f493be
[ "MIT" ]
27
2015-12-17T07:49:56.000Z
2018-07-13T15:06:33.000Z
src/test/cli/test_scheduler.py
pebble/flotilla
23d9b3aefd8312879549c50e52ea73f3e3f493be
[ "MIT" ]
7
2015-12-01T22:04:24.000Z
2021-11-28T13:21:35.000Z
import unittest from mock import patch, MagicMock from botocore.exceptions import ClientError from flotilla.cli.scheduler import start_scheduler REGIONS = ['us-east-1'] ENVIRONMENT = 'develop' DOMAIN = 'test.com' class TestScheduler(unittest.TestCase): @patch('flotilla.cli.scheduler.get_instance_id') @patc...
36.218182
77
0.658133
232
1,992
5.461207
0.262931
0.095501
0.173639
0.197317
0.756117
0.737964
0.715864
0.715864
0.6985
0.6985
0
0.027184
0.224398
1,992
54
78
36.888889
0.79288
0
0
0.512195
0
0
0.281627
0.231426
0
0
0
0
0.073171
1
0.073171
false
0
0.097561
0
0.195122
0
0
0
0
null
0
0
1
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
5b8d4dfeada8d8fccb9fb4cb3ac8031b22dadc37
1,677
py
Python
tests/test_commandline_validate.py
sameerkhurana10/Montreal-Forced-Aligner
b64b6bf4aa0394d59236510a05453740e7e7ebf5
[ "MIT" ]
null
null
null
tests/test_commandline_validate.py
sameerkhurana10/Montreal-Forced-Aligner
b64b6bf4aa0394d59236510a05453740e7e7ebf5
[ "MIT" ]
null
null
null
tests/test_commandline_validate.py
sameerkhurana10/Montreal-Forced-Aligner
b64b6bf4aa0394d59236510a05453740e7e7ebf5
[ "MIT" ]
null
null
null
from montreal_forced_aligner.command_line.mfa import parser from montreal_forced_aligner.command_line.validate import run_validate_corpus def test_validate_corpus( multilingual_ipa_tg_corpus_dir, english_ipa_acoustic_model, english_us_ipa_dictionary, temp_dir ): command = [ "validate", multil...
23.619718
99
0.652355
181
1,677
5.519337
0.254144
0.09009
0.102102
0.138138
0.715716
0.715716
0.624625
0.566567
0.447447
0.447447
0
0
0.258199
1,677
70
100
23.957143
0.803055
0
0
0.770492
0
0
0.084675
0.012522
0
0
0
0
0
1
0.04918
false
0
0.032787
0
0.081967
0
0
0
0
null
0
0
0
0
1
0
0
0
0
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
2
5b8db7b0a0b74ffa065a705147027e75e8d0ea2e
3,857
py
Python
opensearch_dsl/function.py
CEHENKLE/opensearch-dsl-py
f004b394f8c81be59a30b4d6841ab69ccbf9c006
[ "Apache-2.0" ]
13
2021-10-16T13:11:57.000Z
2022-02-11T19:13:05.000Z
opensearch_dsl/function.py
CEHENKLE/opensearch-dsl-py
f004b394f8c81be59a30b4d6841ab69ccbf9c006
[ "Apache-2.0" ]
9
2021-10-15T18:40:15.000Z
2022-03-23T21:56:29.000Z
opensearch_dsl/function.py
CEHENKLE/opensearch-dsl-py
f004b394f8c81be59a30b4d6841ab69ccbf9c006
[ "Apache-2.0" ]
8
2021-10-30T13:21:29.000Z
2022-03-29T20:14:40.000Z
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. # # Modifications Copyright OpenSearch Contributors. See # GitHub history for details. # # Licensed to Elasticsearch B.V. under...
30.132813
93
0.651802
499
3,857
4.937876
0.366733
0.017045
0.022727
0.012175
0.158685
0.10349
0.049513
0.049513
0.049513
0.049513
0
0.005183
0.249676
3,857
127
94
30.370079
0.846234
0.380607
0
0.149254
0
0
0.134664
0
0
0
0
0
0
1
0.044776
false
0.029851
0.059701
0
0.462687
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
5b8e269dde11dc9a9d324b928887d8730e695956
90
py
Python
project/models.py
Gerhut/minimal-django-project
0c07b84859640e53c27487b76cfd5a36c71365aa
[ "Unlicense" ]
null
null
null
project/models.py
Gerhut/minimal-django-project
0c07b84859640e53c27487b76cfd5a36c71365aa
[ "Unlicense" ]
10
2019-08-06T01:52:33.000Z
2020-09-28T00:27:59.000Z
project/models.py
Gerhut/minimal-django-project
0c07b84859640e53c27487b76cfd5a36c71365aa
[ "Unlicense" ]
null
null
null
from django.db import models class Post(models.Model): content = models.TextField()
15
32
0.733333
12
90
5.5
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.166667
90
5
33
18
0.88
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
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
1
0
1
0
0
4
5b8e5f0147dcdda64ded2911f084d79a4acf77e0
3,438
py
Python
apps/purchases/api/serializers.py
mikespux/prov-jewellery-cloud
4bb16b74d4f32eec938e64325c39bb5770ad2848
[ "MIT" ]
1
2020-05-17T22:27:02.000Z
2020-05-17T22:27:02.000Z
apps/purchases/api/serializers.py
antorenge/prov-jewellery-cloud
de09048c7043d970d62d13dba1beac73c42ef281
[ "MIT" ]
7
2020-06-05T18:13:25.000Z
2022-03-11T23:20:21.000Z
apps/purchases/api/serializers.py
mikespux/prov-jewellery-cloud
4bb16b74d4f32eec938e64325c39bb5770ad2848
[ "MIT" ]
null
null
null
""" Purchases API """ from rest_framework import serializers from apps.users.api.serializers import UserSerializer from apps.inventory.api.serializers import InventoryItemSerializer from apps.products.api.serializers import (MaterialSerializer, ProductDesignSerializer) from .....
30.696429
75
0.684991
277
3,438
8.393502
0.314079
0.089462
0.048172
0.117419
0.151828
0.087742
0.042151
0.042151
0
0
0
0.001109
0.213205
3,438
111
76
30.972973
0.85841
0.084642
0
0.242424
0
0
0.133484
0.007757
0
0
0
0
0
1
0
false
0
0.075758
0
0.621212
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
5b90497c328e1808931645b3f89237e811a764fa
619
py
Python
main.py
scrapex-io/scraping-challenge-basic
c3caa58a600f8770eb979cc05886d7248308bf99
[ "MIT" ]
null
null
null
main.py
scrapex-io/scraping-challenge-basic
c3caa58a600f8770eb979cc05886d7248308bf99
[ "MIT" ]
null
null
null
main.py
scrapex-io/scraping-challenge-basic
c3caa58a600f8770eb979cc05886d7248308bf99
[ "MIT" ]
null
null
null
import requests URL_USERS = "https://gorest.co.in/public/v2/users" URL_COMMENTS = "https://gorest.co.in/public/v2/comments" def extract_users(): """ Method for get users from API Rest :return: """ r = requests.get(url=URL_USERS) return r.json() def extract_comments(): """ Method for...
19.967742
69
0.654281
82
619
4.756098
0.512195
0.061538
0.066667
0.076923
0.117949
0.117949
0
0
0
0
0
0.004149
0.221325
619
30
70
20.633333
0.804979
0.250404
0
0
0
0
0.353774
0
0
0
0
0.033333
0
1
0.153846
false
0.076923
0.076923
0
0.307692
0.230769
0
0
0
null
0
0
0
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
1
0
0
0
0
0
2
5b914dd6bd0c32e0b0e0f9fee38aac8091c15b3b
3,063
py
Python
src/fill_in_forms.py
vicksonzero/webbot
8cdbe655bafae90d390c0f051c799e164d63365e
[ "MIT" ]
null
null
null
src/fill_in_forms.py
vicksonzero/webbot
8cdbe655bafae90d390c0f051c799e164d63365e
[ "MIT" ]
null
null
null
src/fill_in_forms.py
vicksonzero/webbot
8cdbe655bafae90d390c0f051c799e164d63365e
[ "MIT" ]
null
null
null
# Google sheets from __future__ import print_function import httplib2 import os from apiclient import discovery import oauth2client from oauth2client import client from oauth2client import tools try: import argparse flags = argparse.ArgumentParser(parents=[tools.argparser]).parse_args() except ImportError: ...
27.106195
75
0.757754
395
3,063
5.726582
0.412658
0.019894
0.01061
0.020336
0.026525
0.026525
0
0
0
0
0
0.00834
0.138753
3,063
112
76
27.348214
0.849128
0.186092
0
0.026316
0
0
0.137414
0.025537
0
0
0
0
0
1
0.039474
false
0
0.184211
0
0.25
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
5b95d709623e6f9a1a48dbe716470993b1042f83
323
py
Python
pythx/__init__.py
s0b0lev/pythx
c34d81421a2cbea71e60c33245d54fb19b6ad68a
[ "MIT" ]
null
null
null
pythx/__init__.py
s0b0lev/pythx
c34d81421a2cbea71e60c33245d54fb19b6ad68a
[ "MIT" ]
null
null
null
pythx/__init__.py
s0b0lev/pythx
c34d81421a2cbea71e60c33245d54fb19b6ad68a
[ "MIT" ]
null
null
null
"""Top-level package for pythx.""" __author__ = """Dominik Muhs""" __email__ = "dominik.muhs@consensys.net" __version__ = "1.3.2" from pythx.conf import config from pythx.api.client import Client from mythx_models.exceptions import ( MythXBaseException, MythXAPIError, ValidationError, ValidationError,...
21.533333
40
0.736842
37
323
6.081081
0.72973
0.097778
0
0
0
0
0
0
0
0
0
0.010949
0.151703
323
14
41
23.071429
0.810219
0.086687
0
0.181818
0
0
0.148789
0.089965
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5b9656355bf2915fa910a51fa152a1040b905388
1,529
py
Python
ore/urls.py
lukegb/Ore-python
1d1c73795406fa52ae969726feb89f7aedbc4afc
[ "MIT" ]
1
2016-05-24T14:49:42.000Z
2016-05-24T14:49:42.000Z
ore/urls.py
gratimax/ore-old
1d1c73795406fa52ae969726feb89f7aedbc4afc
[ "MIT" ]
null
null
null
ore/urls.py
gratimax/ore-old
1d1c73795406fa52ae969726feb89f7aedbc4afc
[ "MIT" ]
null
null
null
import actstream.urls from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin import ore.core.urls import ore.accounts.urls import ore.projects.urls import ore.versions.urls import ore.teams.urls import ore.discourse_sso.urls...
31.204082
77
0.708306
203
1,529
5.251232
0.256158
0.041276
0.072233
0.091932
0.245779
0.161351
0.161351
0.161351
0.161351
0.161351
0
0.018279
0.141269
1,529
48
78
31.854167
0.793602
0
0
0.142857
0
0
0.138653
0.073905
0
0
0
0
0
1
0
false
0
0.333333
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
1
0
0
0
0
1
5b96a678ed44fbc0170f4cf33034df259a65bc46
895
py
Python
qipr/registry/utils.py
ctsit/qipr
3f0ef102d81a859c955f918b74037d199b4d6a00
[ "Apache-2.0" ]
2
2017-02-10T15:07:51.000Z
2017-02-10T15:08:01.000Z
qipr/registry/utils.py
ctsit/qipr
3f0ef102d81a859c955f918b74037d199b4d6a00
[ "Apache-2.0" ]
11
2016-08-03T13:18:08.000Z
2017-01-24T14:19:59.000Z
qipr/registry/utils.py
ctsit/qipr
3f0ef102d81a859c955f918b74037d199b4d6a00
[ "Apache-2.0" ]
5
2016-07-29T17:12:43.000Z
2016-12-19T15:56:14.000Z
import uuid def set_created_by_if_empty(model, user): """ This function is called by our save function because django throws exceptions on object access if something doesn't exist. You cannot dereference a related field if it doesn't exist. Meaning you have to do a try except block. """ try...
24.189189
66
0.658101
131
895
4.366412
0.48855
0.047203
0.041958
0.066434
0
0
0
0
0
0
0
0.001529
0.269274
895
36
67
24.861111
0.873089
0.365363
0
0.380952
0
0
0
0
0
0
0
0
0
1
0.238095
false
0
0.047619
0.047619
0.52381
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
1
0
0
2
5b96fe8753e574fd0587ec62d1080f3007e66924
6,882
py
Python
src/main.py
karavik18/Verification-and-Selection-in-Federated-Average
b7a275b6158c9e9d9c16c1e62786558037196306
[ "MIT" ]
null
null
null
src/main.py
karavik18/Verification-and-Selection-in-Federated-Average
b7a275b6158c9e9d9c16c1e62786558037196306
[ "MIT" ]
null
null
null
src/main.py
karavik18/Verification-and-Selection-in-Federated-Average
b7a275b6158c9e9d9c16c1e62786558037196306
[ "MIT" ]
null
null
null
import os import time import copy import random import argparse import numpy as np from PIL import Image from tqdm import tqdm as tq import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.nn.functional as F from torch.utils import data from model_utils import * from data_utils import * from t...
44.115385
297
0.648794
987
6,882
4.372847
0.237082
0.037535
0.070899
0.031279
0.200185
0.145505
0.101019
0.07785
0.060241
0.060241
0
0.010173
0.200087
6,882
155
298
44.4
0.773842
0.021651
0
0.123967
0
0.008264
0.171696
0
0
0
0
0
0
1
0.024793
false
0
0.14876
0
0.190083
0.024793
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5b9bae125e13deb3ca6f4383bdd93263a6ff8361
2,398
py
Python
weather/forecast.py
Shom770/weather_usa
4e925c4eb7fbbc444a27f2969d342335dae5ea83
[ "MIT" ]
null
null
null
weather/forecast.py
Shom770/weather_usa
4e925c4eb7fbbc444a27f2969d342335dae5ea83
[ "MIT" ]
null
null
null
weather/forecast.py
Shom770/weather_usa
4e925c4eb7fbbc444a27f2969d342335dae5ea83
[ "MIT" ]
null
null
null
from __future__ import annotations import asyncio import aiohttp from datetime import datetime class Forecast: def __init__(self, totals: dict, grid_x: int, grid_y: int, cwa: str, city: str, state: str): self.totals = totals self.simplified_dict = {key: '...' for key in totals.keys()} self....
46.115385
103
0.621351
282
2,398
5.131206
0.308511
0.020733
0.01244
0.033172
0.214236
0.163096
0.163096
0.163096
0.163096
0.078784
0
0.00442
0.245204
2,398
52
104
46.115385
0.795028
0.027523
0
0.142857
0
0
0.140524
0.034809
0
0
0
0
0
1
0.071429
false
0
0.095238
0.02381
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5b9d5e37aaae1696ad5a8c3f64abcd5dca15ddbc
1,170
py
Python
bunny.py
querciak/matplotlib-3d
8d361b861f33b1133fcf304a2e397769797ef1d3
[ "BSD-2-Clause" ]
242
2020-03-26T11:36:21.000Z
2022-03-10T01:57:54.000Z
bunny.py
mikepsn/matplotlib-3d
538d514e7fd11843f5a338a52b5887c3f16a9bff
[ "BSD-2-Clause" ]
6
2020-03-30T18:20:09.000Z
2021-01-26T20:16:07.000Z
bunny.py
mikepsn/matplotlib-3d
538d514e7fd11843f5a338a52b5887c3f16a9bff
[ "BSD-2-Clause" ]
31
2020-03-29T01:55:55.000Z
2022-03-29T12:52:14.000Z
# ----------------------------------------------------------------------------- # Copyright (c) 2020 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- # This example shows how to display a mesh # ----------...
36.5625
79
0.486325
133
1,170
4.18797
0.593985
0.014363
0.010772
0
0
0
0
0
0
0
0
0.029116
0.148718
1,170
31
80
37.741935
0.53012
0.387179
0
0
0
0
0.062059
0
0
0
0
0
0
1
0
false
0
0.3
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
5b9d6d92851d5c526612bcafb989ae5b804d21b9
1,193
py
Python
Backend/resize.py
tfederico/WatsonInnovation
22a7bf28c4a110f2af0d45c77fa7971f3d0f9647
[ "MIT" ]
null
null
null
Backend/resize.py
tfederico/WatsonInnovation
22a7bf28c4a110f2af0d45c77fa7971f3d0f9647
[ "MIT" ]
null
null
null
Backend/resize.py
tfederico/WatsonInnovation
22a7bf28c4a110f2af0d45c77fa7971f3d0f9647
[ "MIT" ]
null
null
null
import os, sys from PIL import Image import argparse from os import listdir from os.path import isfile, join if __name__ == '__main__': maxheigth = 320 maxwidth = 320 parser = argparse.ArgumentParser(description='Cleaning files that are too big.') parser.add_argument('-dir', '--d', help="Directory name...
33.138889
97
0.615256
145
1,193
4.993103
0.482759
0.041436
0.016575
0
0
0
0
0
0
0
0
0.007973
0.26404
1,193
35
98
34.085714
0.816629
0
0
0
0
0
0.100587
0
0
0
0
0
0
1
0
false
0
0.16129
0
0.16129
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ba08622224ba72fb67b9d3ea638e78dc27e3b06
1,543
py
Python
Solutions/022.py
ruppysuppy/Daily-Coding-Problem-Solutions
37d061215a9af2ce39c51f8816c83039914c0d0b
[ "MIT" ]
70
2021-03-18T05:22:40.000Z
2022-03-30T05:36:50.000Z
Solutions/022.py
ungaro/Daily-Coding-Problem-Solutions
37d061215a9af2ce39c51f8816c83039914c0d0b
[ "MIT" ]
null
null
null
Solutions/022.py
ungaro/Daily-Coding-Problem-Solutions
37d061215a9af2ce39c51f8816c83039914c0d0b
[ "MIT" ]
30
2021-03-18T05:22:43.000Z
2022-03-17T10:25:18.000Z
""" Problem: Given a dictionary of words and a string made up of those words (no spaces), return the original sentence in a list. If there is more than one possible reconstruction, return any of them. If there is no possible reconstruction, then return null. For example, given the set of words 'quick', 'brown', 'the'...
28.574074
87
0.6442
206
1,543
4.68932
0.378641
0.041408
0.066253
0.049689
0.161491
0.076605
0.076605
0.076605
0
0
0
0.00166
0.219054
1,543
53
88
29.113208
0.8
0.438756
0
0.086957
0
0
0.144531
0
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.173913
0.130435
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5ba1f94b481fd67f37cb2f9937fc57e408770c9f
2,872
py
Python
scripts/jpg_exif_remove/jpg_exif_remove.py
jimholdaway/pythonista
f0621e4043a1c1aa7c37bae363ae0852fb54a1ec
[ "MIT" ]
null
null
null
scripts/jpg_exif_remove/jpg_exif_remove.py
jimholdaway/pythonista
f0621e4043a1c1aa7c37bae363ae0852fb54a1ec
[ "MIT" ]
null
null
null
scripts/jpg_exif_remove/jpg_exif_remove.py
jimholdaway/pythonista
f0621e4043a1c1aa7c37bae363ae0852fb54a1ec
[ "MIT" ]
null
null
null
import sys import argparse import os import piexif from PIL import Image def jpg_exif_remove(args): """ Removes EXIF data from directory of jpeg images whilst preserving image orientation and quality. Parameters ---------- in_dir: string, directory containing jpgs to have EXIF removed, default 'images' out...
31.217391
187
0.69812
425
2,872
4.578824
0.317647
0.017986
0.036999
0.045221
0.184995
0.16444
0.110997
0.067831
0.067831
0.067831
0
0.011202
0.191852
2,872
91
188
31.56044
0.82723
0.230153
0
0
0
0.019608
0.172382
0
0
0
0
0
0
1
0.019608
false
0
0.098039
0
0.117647
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5ba302171ec86e6e932c808425569cf399e3d09e
385
py
Python
boiler/__init__.py
rudineirk/faculdade_boiler
9e796d8c2603f37799fc02dc7bd01827b28164df
[ "MIT" ]
null
null
null
boiler/__init__.py
rudineirk/faculdade_boiler
9e796d8c2603f37799fc02dc7bd01827b28164df
[ "MIT" ]
null
null
null
boiler/__init__.py
rudineirk/faculdade_boiler
9e796d8c2603f37799fc02dc7bd01827b28164df
[ "MIT" ]
null
null
null
from .conn import BoilerConn from .controller import WaterColumnController, WaterTempController from .core import Main from .reader import WaterColumnReader, WaterTempReader __all__ = [ 'BoilerConn', 'WaterColumnController', 'WaterTempController', 'WaterColumnReader', 'WaterTempReader', 'Main',...
20.263158
66
0.716883
32
385
8.25
0.5
0.090909
0.090909
0
0
0
0
0
0
0
0
0
0.184416
385
18
67
21.388889
0.840764
0
0
0
0
0
0.244156
0.054545
0
0
0
0
0
1
0
false
0
0.266667
0
0.266667
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
5ba4c64906e7a419a6059b65c07ed6e7d5ed5000
8,226
py
Python
cogs/covid.py
RuiL1904/ruibot-discord.py
588406ef2dbebd7d976237f1d876054d641933f6
[ "MIT" ]
null
null
null
cogs/covid.py
RuiL1904/ruibot-discord.py
588406ef2dbebd7d976237f1d876054d641933f6
[ "MIT" ]
null
null
null
cogs/covid.py
RuiL1904/ruibot-discord.py
588406ef2dbebd7d976237f1d876054d641933f6
[ "MIT" ]
null
null
null
import io from datetime import datetime import nextcord as discord from nextcord.ext import commands import aiohttp import pandas # Load config from config import config color = config.color class Covid(commands.Cog): def __init__(self, client): self.client = client @commands.command(name = 'covid')...
48.105263
146
0.384877
605
8,226
5.14876
0.27438
0.017978
0.017657
0.022472
0.475762
0.475762
0.450722
0.450722
0.431461
0.359872
0
0.015393
0.54194
8,226
170
147
48.388235
0.811306
0.062363
0
0.423729
0
0.008475
0.1366
0.012087
0
0
0
0
0
1
0.016949
false
0
0.059322
0
0.084746
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5ba6095505bab7a365504562e670632218328c79
2,462
py
Python
fault_generator.py
Jihaoyun/gem5
c52195e8304b5571008eab050fc9cc38ba91107c
[ "BSD-3-Clause" ]
null
null
null
fault_generator.py
Jihaoyun/gem5
c52195e8304b5571008eab050fc9cc38ba91107c
[ "BSD-3-Clause" ]
null
null
null
fault_generator.py
Jihaoyun/gem5
c52195e8304b5571008eab050fc9cc38ba91107c
[ "BSD-3-Clause" ]
null
null
null
import os import argparse parser = argparse.ArgumentParser(description = 'gem5 with fault injection') parser.add_argument('-log', '--log-file', type = str, dest = 'logFile', help = 'The input file of debug info of Gem5 simulator') parser.add_argument('-in', '--input-fault', type = str, dest = 'faultFile', h...
26.191489
90
0.68156
301
2,462
5.495017
0.299003
0.050786
0.030834
0.054414
0.325272
0.28295
0.28295
0.232164
0.232164
0.232164
0
0.007324
0.168156
2,462
94
91
26.191489
0.800293
0
0
0.333333
0
0
0.096224
0
0
0
0
0
0
1
0.115942
false
0
0.028986
0
0.304348
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
5ba7b4142e2df3a12d460152b808e2562e69558e
1,362
py
Python
src/testproject/urls.py
DramaFever/sst
63d41a102c9d3bdb54019f28a93cff0314a0214f
[ "Apache-2.0" ]
4
2015-01-21T22:20:50.000Z
2017-12-18T11:38:16.000Z
src/testproject/urls.py
DramaFever/sst
63d41a102c9d3bdb54019f28a93cff0314a0214f
[ "Apache-2.0" ]
63
2015-01-13T19:32:06.000Z
2020-04-22T17:01:03.000Z
src/testproject/urls.py
wbdl/sst
7a2805391fdd390ecb0f488f8377f58381358c89
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import include, patterns from django.conf import settings from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^testproject/', include('...
43.935484
77
0.501468
129
1,362
5.178295
0.325581
0.197605
0.041916
0
0
0
0
0
0
0
0
0.002268
0.352423
1,362
30
78
45.4
0.755102
0.044787
0
0
0
0
0.3151
0.113251
0
0
0
0
0
1
0
false
0
0.173913
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ba7e43dc702d76be95efe5fd1760983ebf60da6
5,404
py
Python
iml_common/test/command_capture_testcase.py
AlexTalker/iml-common
5617e9c89a3a5d2f02f499a3497035faf942bf1d
[ "MIT" ]
null
null
null
iml_common/test/command_capture_testcase.py
AlexTalker/iml-common
5617e9c89a3a5d2f02f499a3497035faf942bf1d
[ "MIT" ]
null
null
null
iml_common/test/command_capture_testcase.py
AlexTalker/iml-common
5617e9c89a3a5d2f02f499a3497035faf942bf1d
[ "MIT" ]
null
null
null
# Copyright (c) 2018 DDN. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. import mock import errno from iml_common.lib.shell import Shell from iml_unit_testcase import ImlUnitTestCase class CommandCaptureCommand(object): def __init__(se...
36.026667
124
0.65285
672
5,404
5.11756
0.276786
0.05932
0.038674
0.027043
0.284676
0.209945
0.190753
0.173306
0.109334
0
0
0.007824
0.266839
5,404
149
125
36.268456
0.860172
0.304034
0
0.088235
0
0
0.050103
0.016701
0
0
0
0.006711
0.147059
1
0.205882
false
0
0.058824
0.029412
0.367647
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
5ba819e5829f91fab4b95f7e26b1d2411684036a
2,017
py
Python
mmxai/interpretability/classification/torchray/extremal_perturbation/torchray_mmf.py
yongkangzzz/mmfgroup
098a78c83e1c2973dc895d1dc7fd30d7d3668143
[ "MIT" ]
null
null
null
mmxai/interpretability/classification/torchray/extremal_perturbation/torchray_mmf.py
yongkangzzz/mmfgroup
098a78c83e1c2973dc895d1dc7fd30d7d3668143
[ "MIT" ]
null
null
null
mmxai/interpretability/classification/torchray/extremal_perturbation/torchray_mmf.py
yongkangzzz/mmfgroup
098a78c83e1c2973dc895d1dc7fd30d7d3668143
[ "MIT" ]
null
null
null
from mmxai.interpretability.classification.torchray.extremal_perturbation.multimodal_extremal_perturbation import * from mmf.models.mmbt import MMBT from mmf.models.fusions import LateFusion from mmf.models.vilbert import ViLBERT from mmf.models.visual_bert import VisualBERT from PIL import Image def torchray_multimo...
46.906977
115
0.531482
196
2,017
5.244898
0.44898
0.064202
0.050584
0
0
0
0
0
0
0
0
0.008251
0.399108
2,017
42
116
48.02381
0.839934
0.074864
0
0
0
0
0.021482
0
0
0
0
0
0
1
0.03125
false
0
0.1875
0
0.25
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ba864287e43b24a6ee51f736ea3dfbb9bf7e4ff
812
py
Python
tests/test_json.py
GarrettMooney/moonpy
8e44f7afa2daccac6f2b2c089f272b95e4ba2945
[ "MIT" ]
null
null
null
tests/test_json.py
GarrettMooney/moonpy
8e44f7afa2daccac6f2b2c089f272b95e4ba2945
[ "MIT" ]
null
null
null
tests/test_json.py
GarrettMooney/moonpy
8e44f7afa2daccac6f2b2c089f272b95e4ba2945
[ "MIT" ]
null
null
null
import pytest from .util import make_tempdir from moonpy.util import json_dumps, read_json def test_json_dumps_sort_keys(data): result = json_dumps(data["data"], sort_keys=True) assert result == data["sorted_file_contents"] def test_read_json_file(data): with make_tempdir({data["file_name"]: data["file...
30.074074
86
0.694581
117
812
4.487179
0.299145
0.091429
0.091429
0.057143
0.464762
0.392381
0.392381
0.392381
0.259048
0.259048
0
0.00152
0.189655
812
26
87
31.230769
0.796353
0
0
0.210526
0
0
0.128079
0.025862
0
0
0
0
0.263158
1
0.157895
false
0
0.157895
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ba92f0037540c51b246e7074e898854f1450755
869
py
Python
2016/python/d10.py
eduellery/adventofcode
dccece0bf59bc241803edc99a6536062fe2714d1
[ "MIT" ]
null
null
null
2016/python/d10.py
eduellery/adventofcode
dccece0bf59bc241803edc99a6536062fe2714d1
[ "MIT" ]
null
null
null
2016/python/d10.py
eduellery/adventofcode
dccece0bf59bc241803edc99a6536062fe2714d1
[ "MIT" ]
null
null
null
import re, collections bot = collections.defaultdict(list) output = collections.defaultdict(list) values = open('d10.in').read().splitlines() pipeline = {} for value in values: if value.startswith('value'): n, b = map(int, re.findall(r'-?\d+', value)) bot[b].append(n) elif value.startswith('...
24.138889
59
0.514384
132
869
3.386364
0.409091
0.060403
0.067114
0.067114
0.098434
0.098434
0.098434
0
0
0
0
0.063005
0.287687
869
35
60
24.828571
0.659128
0
0
0
0
0
0.049482
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5bab74b4a30cd2de20b8b06675475d7ebf4ce3d0
6,063
py
Python
datasets/synthetic_iam.py
IHR-Nom/Full_Page_Recognition
27899ece69e328e8d40a8cf5214a77a6ab8aef35
[ "Apache-2.0" ]
null
null
null
datasets/synthetic_iam.py
IHR-Nom/Full_Page_Recognition
27899ece69e328e8d40a8cf5214a77a6ab8aef35
[ "Apache-2.0" ]
null
null
null
datasets/synthetic_iam.py
IHR-Nom/Full_Page_Recognition
27899ece69e328e8d40a8cf5214a77a6ab8aef35
[ "Apache-2.0" ]
null
null
null
import glob from torch.utils.data import Dataset import torchvision.transforms.functional as TF import torchvision as tv import xml.etree.ElementTree as ET from PIL import Image import numpy as np import random import os from transformers import BertTokenizer from .utils import nested_tensor_from_tensor_list MAX_D...
36.305389
116
0.61933
821
6,063
4.269184
0.233861
0.043937
0.033381
0.017118
0.154066
0.119829
0.115264
0.076462
0.035378
0
0
0.011328
0.271978
6,063
166
117
36.524096
0.782737
0.002969
0
0
0
0
0.03442
0
0
0
0
0
0
1
0.070313
false
0
0.085938
0.007813
0.234375
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
5bac90785ee9d2b6b8dbf64e7b92696ce0bb3f65
1,177
py
Python
idt/factories.py
Bergolfs/idt
22a1d19a42b16a87f9045b45805f82efe34885cf
[ "MIT" ]
null
null
null
idt/factories.py
Bergolfs/idt
22a1d19a42b16a87f9045b45805f82efe34885cf
[ "MIT" ]
null
null
null
idt/factories.py
Bergolfs/idt
22a1d19a42b16a87f9045b45805f82efe34885cf
[ "MIT" ]
null
null
null
from idt.duckgo import DuckGoSearchEngine from idt.bing import BingSearchEngine from idt.bing_api import BingApiSearchEngine from idt.flickr_api import FlickrApiSearchEngine __name__ = "factories" class SearchEngineFactory: def __init__(self,data,n_images,folder,verbose,root_folder,size,engine,api_key): self.data...
37.967742
125
0.776551
166
1,177
5.319277
0.198795
0.11325
0.050963
0.084938
0.344281
0.344281
0.344281
0.344281
0.344281
0.344281
0
0
0.119796
1,177
30
126
39.233333
0.852317
0
0
0
0
0
0.031436
0
0
0
0
0
0
1
0.074074
false
0
0.148148
0
0.444444
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
5bae7bbd789ea3ac35f03b0a03ec727ec87d770c
3,075
py
Python
noaa.py
microprediction/windspeed
0ea88079ac8ae8955c4ba5cbcf1cd1aed64beb10
[ "MIT" ]
null
null
null
noaa.py
microprediction/windspeed
0ea88079ac8ae8955c4ba5cbcf1cd1aed64beb10
[ "MIT" ]
null
null
null
noaa.py
microprediction/windspeed
0ea88079ac8ae8955c4ba5cbcf1cd1aed64beb10
[ "MIT" ]
1
2021-12-19T16:25:22.000Z
2021-12-19T16:25:22.000Z
# New video tutorials are available at https://www.microprediction.com/python-1 to help you # get started creating streams (see the 4th module in particular) import logging import urllib import time import pytz import random from datetime import datetime from pprint import pprint from microprediction import MicroWrite...
33.791209
137
0.609431
379
3,075
4.802111
0.430079
0.030769
0.020879
0.023077
0.025275
0.025275
0
0
0
0
0
0.040609
0.295285
3,075
90
138
34.166667
0.799262
0.145366
0
0.057971
0
0.014493
0.129353
0
0
0
0
0
0.014493
1
0.043478
false
0
0.130435
0
0.217391
0.028986
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5bb090f0a9fb8fbf27d290cbd5f679ebb99b7b62
2,188
py
Python
tests/conftest.py
przemekk1385/django-oac
379b29921551ea1d53edb5e3fbb6fa8d3c972acb
[ "MIT" ]
null
null
null
tests/conftest.py
przemekk1385/django-oac
379b29921551ea1d53edb5e3fbb6fa8d3c972acb
[ "MIT" ]
3
2022-03-02T18:08:13.000Z
2022-03-02T18:29:33.000Z
tests/conftest.py
przemekk1385/django_oac
379b29921551ea1d53edb5e3fbb6fa8d3c972acb
[ "MIT" ]
null
null
null
from copy import copy from unittest.mock import Mock import jwt import pytest from django.contrib.auth.models import AnonymousUser from django.core.cache import cache from django.test import RequestFactory from jwcrypto.jwk import JWK, JWKSet from .common import QUERY_DICT, SESSION_DICT class JWKTestHelper: __s...
22.556701
85
0.647623
268
2,188
5.037313
0.302239
0.048889
0.047407
0.056296
0.056296
0.056296
0.056296
0.056296
0.056296
0.056296
0
0.008368
0.235375
2,188
96
86
22.791667
0.798565
0.006399
0
0.144928
0
0
0.030861
0
0
0
0
0
0
1
0.202899
false
0.014493
0.130435
0.072464
0.521739
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
1
0
0
2
5bb1e0e67d45581de03559a2275a7b5ca7ba495a
3,384
py
Python
shfl/data_base/data_base.py
joarreg/Sherpa.ai-Federated-Learning-Framework
9da392bf71c9acf13761dde0f119622c62780c87
[ "Apache-2.0" ]
2
2021-11-14T12:04:39.000Z
2022-01-03T16:03:36.000Z
shfl/data_base/data_base.py
joarreg/Sherpa.ai-Federated-Learning-Framework
9da392bf71c9acf13761dde0f119622c62780c87
[ "Apache-2.0" ]
null
null
null
shfl/data_base/data_base.py
joarreg/Sherpa.ai-Federated-Learning-Framework
9da392bf71c9acf13761dde0f119622c62780c87
[ "Apache-2.0" ]
1
2022-01-19T16:29:46.000Z
2022-01-19T16:29:46.000Z
import abc import numpy as np def split_train_test(data, labels, dim): """ Method that randomly choose the train and test sets from data and labels. # Arguments: data: Numpy matrix with data for extract the validation data labels: Numpy array with labels dim: Size for validation d...
28.677966
109
0.649232
423
3,384
4.959811
0.208038
0.064347
0.050048
0.040515
0.260725
0.177788
0.074357
0.074357
0.051478
0.051478
0
0.002816
0.265366
3,384
117
110
28.923077
0.84111
0.368794
0
0.16
0
0
0
0
0
0
0
0
0
1
0.18
false
0
0.04
0.06
0.36
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
5bb2c6977e580018666f892e53fb97c55744bde7
26,945
py
Python
ontomatch/matcher_lib.py
RogerTangos/aurum_debug
fa3afd96c795e9b674a5951430635d43aa3f5c78
[ "MIT" ]
null
null
null
ontomatch/matcher_lib.py
RogerTangos/aurum_debug
fa3afd96c795e9b674a5951430635d43aa3f5c78
[ "MIT" ]
6
2020-06-05T17:52:29.000Z
2021-06-10T19:44:58.000Z
ontomatch/matcher_lib.py
RogerTangos/aurum_debug
fa3afd96c795e9b674a5951430635d43aa3f5c78
[ "MIT" ]
null
null
null
from enum import Enum import time from collections import defaultdict from nltk.corpus import stopwords from dataanalysis import nlp_utils as nlp from ontomatch import glove_api from ontomatch import ss_utils as SS from datasketch import MinHash, MinHashLSH from knowledgerepr.networkbuilder import LSHRandomProjectionsI...
40.825758
128
0.618148
3,401
26,945
4.598941
0.097912
0.040279
0.029538
0.020459
0.689981
0.649575
0.629435
0.616329
0.589732
0.530145
0
0.011198
0.284134
26,945
659
129
40.887709
0.799679
0.070069
0
0.555777
0
0
0.021567
0
0
0
0
0.001517
0
1
0.037849
false
0
0.023904
0.001992
0.111554
0.01992
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5bb3cf7dfd698c8727e5eccdcdcd702e3c271a0e
3,034
py
Python
details/details/spiders/truyenqq.py
mantranit/vncomics-server
bcf5a45975e393162c9b44daf8c620b6b73292b3
[ "MIT" ]
null
null
null
details/details/spiders/truyenqq.py
mantranit/vncomics-server
bcf5a45975e393162c9b44daf8c620b6b73292b3
[ "MIT" ]
null
null
null
details/details/spiders/truyenqq.py
mantranit/vncomics-server
bcf5a45975e393162c9b44daf8c620b6b73292b3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy import requests import pymongo import time import re from datetime import datetime from details.items import DetailsItem class TruyenqqSpider(scrapy.Spider): name = 'truyenqq' # allowed_domains = ['truyenqq.com'] # start_urls = ['http://truyenqq.com/'] client = py...
35.27907
131
0.575808
351
3,034
4.860399
0.356125
0.032825
0.061547
0.09027
0.290152
0.257327
0.239156
0.239156
0.19578
0.146542
0
0.013432
0.288398
3,034
85
132
35.694118
0.776748
0.033949
0
0.173913
0
0.028986
0.185578
0.050239
0
0
0
0
0
1
0.043478
false
0.043478
0.101449
0
0.246377
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5bb4934e053b5ee79225aaffff2965e5f1acee34
1,902
py
Python
apps/article/views/pages/category.py
codelieche/codelieche.com
8f18a9f4064af81a6dd0203fbaa138565065fff5
[ "MIT" ]
2
2017-06-11T16:41:48.000Z
2017-06-14T00:32:27.000Z
apps/article/views/pages/category.py
codelieche/codelieche.com
8f18a9f4064af81a6dd0203fbaa138565065fff5
[ "MIT" ]
13
2020-02-11T21:33:40.000Z
2022-03-11T23:12:16.000Z
apps/article/views/pages/category.py
codelieche/codelieche.com
8f18a9f4064af81a6dd0203fbaa138565065fff5
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from django.shortcuts import get_object_or_404, render from django.views.generic import View from django.core.paginator import Paginator from article.models import Category, Post from article.utils import get_page_num_list class ArticleListView(View): """ 分类文章列表View """ def get...
31.7
76
0.615668
215
1,902
5.186047
0.381395
0.056502
0.049327
0.059193
0.283408
0.269058
0.269058
0.269058
0.269058
0.269058
0
0.011244
0.298633
1,902
59
77
32.237288
0.824588
0.154048
0
0.228571
0
0
0.034766
0
0
0
0
0
0
1
0.028571
false
0
0.142857
0
0.228571
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
5bb5bd266de1da3922f853af8a5e52abe7663f06
40
py
Python
Python diye Programming sekha 1st/Sum function.py
mitul3737/My-Python-Programming-journey-from-Beginning-to-Data-Sciene-Machine-Learning-AI-Deep-Learning
ca2c15c597a64e5a7689ba3a44ce36a1c0828194
[ "MIT" ]
1
2021-05-02T20:30:33.000Z
2021-05-02T20:30:33.000Z
Python diye Programming sekha 1st/Sum function.py
Mit382/My-Python-Programming-Journey-from-Beginning-to-Data-Sciene-Machine-Learning-AI-Deep-Learning
c19d84dfe6dcf496ff4527724f92e228579b6456
[ "MIT" ]
null
null
null
Python diye Programming sekha 1st/Sum function.py
Mit382/My-Python-Programming-Journey-from-Beginning-to-Data-Sciene-Machine-Learning-AI-Deep-Learning
c19d84dfe6dcf496ff4527724f92e228579b6456
[ "MIT" ]
1
2021-05-02T20:30:29.000Z
2021-05-02T20:30:29.000Z
li=[1,2,3] result=sum(li) print(result)
10
14
0.675
9
40
3
0.777778
0
0
0
0
0
0
0
0
0
0
0.081081
0.075
40
3
15
13.333333
0.648649
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
0
0
0
0
0
0
0
3
5bb6be6462f1b05bd57a858fd3bc47ac72fd1813
852
py
Python
card/games/sjuan/moves.py
kvackkvack/cards
b96af8a9ffa296ae80c7684a4b6678be53217ce4
[ "MIT" ]
null
null
null
card/games/sjuan/moves.py
kvackkvack/cards
b96af8a9ffa296ae80c7684a4b6678be53217ce4
[ "MIT" ]
null
null
null
card/games/sjuan/moves.py
kvackkvack/cards
b96af8a9ffa296ae80c7684a4b6678be53217ce4
[ "MIT" ]
null
null
null
from card import * from .sjuan_card_stack import * @adt class SjuanAction: SKIP: Case ASK_FOR_CARDS: Case def __str__(self): return self.match( skip = lambda: "skip", ask_for_cards = lambda: "ask for cards" ) @adt class SjuanInsert: SJUAN...
23.027027
60
0.549296
96
852
4.645833
0.354167
0.017937
0.073991
0.107623
0.168161
0.168161
0
0
0
0
0
0
0.346244
852
36
61
23.666667
0.800718
0
0
0.310345
0
0
0.099765
0
0
0
0
0
0
1
0.103448
false
0
0.068966
0.103448
0.586207
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
1
0
0
2
5bb7dcb6bea70b57e941c03e794281139890eb69
5,739
py
Python
app/app.py
nepworldwide/nepms-zendesk-stats
7bed10e65b2b6f6d4d1dbbf0c79a0e716d87d517
[ "MIT" ]
null
null
null
app/app.py
nepworldwide/nepms-zendesk-stats
7bed10e65b2b6f6d4d1dbbf0c79a0e716d87d517
[ "MIT" ]
null
null
null
app/app.py
nepworldwide/nepms-zendesk-stats
7bed10e65b2b6f6d4d1dbbf0c79a0e716d87d517
[ "MIT" ]
null
null
null
import argparse import yaml import logging import os import sys import time from schema import Schema, SchemaError import requests from prometheus_client import CollectorRegistry, Gauge, push_to_gateway from apscheduler.schedulers.background import BlockingScheduler class Config(object): def __init__(self): ...
33.758824
112
0.605855
653
5,739
5.136294
0.249617
0.050388
0.059034
0.015206
0.051282
0.019678
0.019678
0
0
0
0
0
0.282628
5,739
169
113
33.95858
0.814671
0.025614
0
0.058394
0
0
0.228551
0.019165
0
0
0
0
0
1
0.072993
false
0
0.072993
0.007299
0.19708
0.007299
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5bb9142eb89bd3dd107533c878c67b880a33eb33
501
py
Python
mongodb/webScrapper/courseFilter.py
ISHITA006/STARS-Course-Registration-Application
a7a208f5b7e3aa4b4f652bf2b6432b038b76c346
[ "MIT" ]
1
2022-02-16T08:25:53.000Z
2022-02-16T08:25:53.000Z
mongodb/webScrapper/courseFilter.py
ISHITA006/STARS-Course-Registration-Application
a7a208f5b7e3aa4b4f652bf2b6432b038b76c346
[ "MIT" ]
null
null
null
mongodb/webScrapper/courseFilter.py
ISHITA006/STARS-Course-Registration-Application
a7a208f5b7e3aa4b4f652bf2b6432b038b76c346
[ "MIT" ]
null
null
null
import json import os f = open('ntu_mods.json', "r") mod_json = json.loads(f.read()) filtered_dict = {} count = 0 for course in mod_json['COURSES']: if "CE" in course['COURSE']: filtered_dict = course count += 1 path = os.path.abspath("./courses/" + course['COURSE'] + ".json") with...
25.05
73
0.590818
66
501
4.378788
0.5
0.16609
0
0
0
0
0
0
0
0
0
0.005376
0.257485
501
19
74
26.368421
0.771505
0
0
0.125
0
0
0.161677
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5bba148c43da1cc1a22e73d90ffca7960d363f40
180
py
Python
examples/debugging_api_calls.py
nguyandy/userapp-python
96b8b96049a467774b5273ee73ccb62da09fb85b
[ "MIT" ]
null
null
null
examples/debugging_api_calls.py
nguyandy/userapp-python
96b8b96049a467774b5273ee73ccb62da09fb85b
[ "MIT" ]
null
null
null
examples/debugging_api_calls.py
nguyandy/userapp-python
96b8b96049a467774b5273ee73ccb62da09fb85b
[ "MIT" ]
null
null
null
import config, userapp api = userapp.API(app_id=config.USERAPP_APP_ID, debug=True, throw_errors=False) user_result = api.user.login(login="epicrawbot", password="play_withBitz!")
36
79
0.794444
27
180
5.074074
0.666667
0.189781
0
0
0
0
0
0
0
0
0
0
0.072222
180
5
80
36
0.820359
0
0
0
0
0
0.132597
0
0
0
0
0
0
1
0
false
0.333333
0.333333
0
0.333333
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
1
1
0
0
0
0
4
5bba7f9974f0fe67b7960d20023c9e2ccc835478
338
py
Python
Different_person.py
yahyanik/phd_research
ac77562a094ce17eef303af882c709452efafc7c
[ "MIT" ]
null
null
null
Different_person.py
yahyanik/phd_research
ac77562a094ce17eef303af882c709452efafc7c
[ "MIT" ]
null
null
null
Different_person.py
yahyanik/phd_research
ac77562a094ce17eef303af882c709452efafc7c
[ "MIT" ]
null
null
null
import numpy as np import cv2 #import matplotlib.pyplot as plt from collections import deque import imutils from KCF_tracker import tracker import argparse import sys class find_person: def __init__ (self,a): self.direction = [] for track in a : self.direction.append(a[track...
19.882353
50
0.668639
45
338
4.888889
0.644444
0.118182
0.127273
0
0
0
0
0
0
0
0
0.004049
0.269231
338
17
51
19.882353
0.88664
0.091716
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.583333
0
0.75
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
5bbc03dd34b0d6ae5babb01f31f01fe13fbcb7bf
2,545
py
Python
graphs/models/vgg.py
bigdata-inha/Rethinking_network_pruning
d68dfeb6d31f5fee2f066ceec92bcb24867de345
[ "MIT" ]
null
null
null
graphs/models/vgg.py
bigdata-inha/Rethinking_network_pruning
d68dfeb6d31f5fee2f066ceec92bcb24867de345
[ "MIT" ]
2
2020-12-04T07:28:01.000Z
2022-02-27T03:07:59.000Z
graphs/models/vgg.py
bigdata-inha/Rethinking_network_pruning
d68dfeb6d31f5fee2f066ceec92bcb24867de345
[ "MIT" ]
null
null
null
"""VGG11/13/16/19 in Pytorch.""" import torch import torch.nn as nn cfg = { 'VGG11': [64, 'M', 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'], 'VGG13': [64, 64, 'M', 128, 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'], 'VGG16': [64, 64, 'M', 128, 128, 'M', 256, 256, 256, 'M', 512, 512, 512,...
37.985075
117
0.539882
349
2,545
3.790831
0.246418
0.063492
0.042328
0.030234
0.322751
0.29932
0.281179
0.195011
0.188964
0.157218
0
0.116883
0.304126
2,545
66
118
38.560606
0.630152
0.010216
0
0.160714
0
0
0.022682
0
0
0
0
0
0
1
0.089286
false
0
0.035714
0.017857
0.196429
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
5bbce0ad3c838fa381d3b09478b10889eda211b9
841
py
Python
interfaces/func_description.py
hriener/party-elli
e7636a8045a46cd988a3a05b4b888577afb97708
[ "MIT" ]
9
2016-04-04T07:13:02.000Z
2021-11-08T12:15:33.000Z
interfaces/func_description.py
hriener/party-elli
e7636a8045a46cd988a3a05b4b888577afb97708
[ "MIT" ]
1
2020-04-12T18:44:26.000Z
2020-04-12T18:44:26.000Z
interfaces/func_description.py
hriener/party-elli
e7636a8045a46cd988a3a05b4b888577afb97708
[ "MIT" ]
2
2019-02-25T13:54:55.000Z
2020-04-07T14:00:36.000Z
from typing import Dict class FuncDesc: def __init__(self, func_name:str, type_by_arg:Dict[str, str], output_ty:str): self.name = func_name self.output_ty = output_ty self.ordered_argname_type_pairs = sorted(list(type_by_arg.items()), ...
28.033333
77
0.546968
99
841
4.222222
0.393939
0.083732
0.043062
0.105263
0.129187
0
0
0
0
0
0
0.001832
0.350773
841
29
78
29
0.763736
0
0
0
0
0
0.059453
0
0
0
0
0
0
1
0.173913
false
0
0.043478
0.086957
0.478261
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5bbd5acd96c506ff895add5fd69efd97917904ed
1,001
py
Python
github/delete/collaborator/src/formula/formula.py
rogerio-ignacio-developer/formulas-github
12cf7401f31e4a6212289b839c02de1d612c8271
[ "Apache-2.0" ]
32
2021-01-27T17:43:23.000Z
2022-03-23T18:00:41.000Z
github/delete/collaborator/src/formula/formula.py
rogerio-ignacio-developer/formulas-github
12cf7401f31e4a6212289b839c02de1d612c8271
[ "Apache-2.0" ]
12
2021-01-26T18:14:59.000Z
2021-10-04T12:24:41.000Z
github/delete/collaborator/src/formula/formula.py
rogerio-ignacio-developer/formulas-github
12cf7401f31e4a6212289b839c02de1d612c8271
[ "Apache-2.0" ]
11
2021-01-28T13:54:24.000Z
2022-03-16T12:16:27.000Z
#!/usr/bin/python3 import requests import json def run(token, username, repository, collaborator): url = f"https://api.github.com/repos/{username}/{repository}/collaborators/{collaborator}" authorization = f"token {token}" headers = { "Accept": "application/vnd.github.v3+json", "Authoriza...
27.805556
144
0.613387
118
1,001
5.211864
0.440678
0.039024
0.042276
0.065041
0.247154
0.100813
0
0
0
0
0
0.067568
0.260739
1,001
35
145
28.6
0.758108
0.016983
0
0.24
0
0.08
0.427263
0.144456
0
0
0
0
0
1
0.04
false
0
0.08
0
0.12
0.16
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5bbd63f55e42c79ca4727c69d8e64efe299a4827
1,281
py
Python
simulator/src/files/util.py
larashores/burridgeknopoffsimulator
2201b266f8fde00325dc0321acc6aa3f3e2c66f8
[ "MIT" ]
1
2019-05-16T12:50:03.000Z
2019-05-16T12:50:03.000Z
simulator/src/files/util.py
vinceshores/burridgeknopoffsimulator
2201b266f8fde00325dc0321acc6aa3f3e2c66f8
[ "MIT" ]
null
null
null
simulator/src/files/util.py
vinceshores/burridgeknopoffsimulator
2201b266f8fde00325dc0321acc6aa3f3e2c66f8
[ "MIT" ]
1
2021-03-02T14:44:36.000Z
2021-03-02T14:44:36.000Z
from files.datafile import DataFile import glob import os import sys def read_data(file_name): with open(file_name, 'rb') as file: data, index = DataFile.from_bytes(bytearray(file.read())) return data.get() def write_data(file_name, data): data_file = DataFile() data_file.set(type(data)...
25.62
65
0.571429
179
1,281
3.96648
0.385475
0.016901
0.042254
0.04507
0.222535
0.222535
0.222535
0.222535
0.222535
0.222535
0
0.004334
0.279469
1,281
49
66
26.142857
0.764897
0
0
0.210526
0
0
0.153005
0.035129
0
0
0
0
0
1
0.131579
false
0
0.105263
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5bbdc792215a8ce6952b1d5568327d6cf71b3813
845
py
Python
pir.py
lionyhw/PlanetX_MicroPython
0bcbb637be9971260c32846acec3ecbd60df647c
[ "MIT" ]
2
2020-08-06T07:32:57.000Z
2022-02-11T02:37:21.000Z
pir.py
lionyhw/PlanetX_MicroPython
0bcbb637be9971260c32846acec3ecbd60df647c
[ "MIT" ]
null
null
null
pir.py
lionyhw/PlanetX_MicroPython
0bcbb637be9971260c32846acec3ecbd60df647c
[ "MIT" ]
1
2021-09-11T02:34:39.000Z
2021-09-11T02:34:39.000Z
from microbit import * from enum import * class PIR(object): """基本描述 人体红外检测, 运动检测 Args: RJ_pin (pin): 连接端口 """ def __init__(self, RJ_pin): if RJ_pin == J1: self.__pin = pin8 elif RJ_pin == J2: self.__pin = pin12 elif RJ_pin == J3: ...
17.978723
42
0.504142
94
845
4.180851
0.531915
0.076336
0.068702
0
0
0
0
0
0
0
0
0.023622
0.398817
845
46
43
18.369565
0.75
0.128994
0
0.083333
0
0
0.011887
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.291667
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
5bbe9f7c8be6cfdb5c273cc5d3e55754436428fd
390
py
Python
hive_gns/engine/pruner.py
imwatsi/hive-gns
c2b29b19245381af8ad0c055c0f0c14f331d5c10
[ "MIT" ]
null
null
null
hive_gns/engine/pruner.py
imwatsi/hive-gns
c2b29b19245381af8ad0c055c0f0c14f331d5c10
[ "MIT" ]
null
null
null
hive_gns/engine/pruner.py
imwatsi/hive-gns
c2b29b19245381af8ad0c055c0f0c14f331d5c10
[ "MIT" ]
null
null
null
import time from hive_gns.database.access import delete class Pruner: @classmethod def delete_old_ops(cls): sql = f""" DELETE FROM gns.ops WHERE created <= NOW() - INTERVAL '30 DAYS'; """ return delete(sql) @classmethod def run_pruner(cls): whi...
19.5
56
0.561538
46
390
4.630435
0.630435
0.131455
0.112676
0
0
0
0
0
0
0
0
0.019608
0.346154
390
19
57
20.526316
0.815686
0
0
0.133333
0
0
0.251282
0
0
0
0
0
0
1
0.133333
false
0
0.133333
0
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
5bc01949d492a259d48585f6c5cb445301f6248e
7,604
py
Python
examples/example_sim_grad_bounce.py
NVIDIA/warp
fc7d3255435fc2fe6b54300e689f74e6d67418ca
[ "CNRI-Python-GPL-Compatible", "Unlicense", "0BSD", "Apache-2.0", "MIT" ]
306
2022-03-21T23:24:13.000Z
2022-03-31T21:11:28.000Z
examples/example_sim_grad_bounce.py
NVIDIA/warp
fc7d3255435fc2fe6b54300e689f74e6d67418ca
[ "CNRI-Python-GPL-Compatible", "Unlicense", "0BSD", "Apache-2.0", "MIT" ]
11
2022-03-23T06:23:25.000Z
2022-03-31T22:17:18.000Z
examples/example_sim_grad_bounce.py
NVIDIA/warp
fc7d3255435fc2fe6b54300e689f74e6d67418ca
[ "CNRI-Python-GPL-Compatible", "Unlicense", "0BSD", "Apache-2.0", "MIT" ]
18
2022-03-22T16:27:21.000Z
2022-03-30T20:07:47.000Z
# Copyright (c) 2022 NVIDIA CORPORATION. All rights reserved. # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and relate...
28.912548
161
0.574303
1,011
7,604
4.195846
0.256182
0.035361
0.018152
0.015559
0.218293
0.137199
0.126827
0.07025
0.057049
0.057049
0
0.023117
0.294582
7,604
263
162
28.912548
0.767711
0.166491
0
0.2
0
0
0.036893
0.005688
0
0
0
0
0
1
0.059259
false
0
0.037037
0
0.192593
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5bc291d11ce1dc852f69923b4d905a55362d2478
206
py
Python
brr/article/models.py
nilq/brr
d2b8166d2816750d379b62f408c20b0aebcbc075
[ "Unlicense" ]
null
null
null
brr/article/models.py
nilq/brr
d2b8166d2816750d379b62f408c20b0aebcbc075
[ "Unlicense" ]
null
null
null
brr/article/models.py
nilq/brr
d2b8166d2816750d379b62f408c20b0aebcbc075
[ "Unlicense" ]
null
null
null
from django.db import models class Article(models.Model): article_id = models.AutoField(primary_key=True) article_heading = models.CharField(max_length=256) article_body = models.TextField()
29.428571
54
0.762136
27
206
5.62963
0.740741
0
0
0
0
0
0
0
0
0
0
0.017045
0.145631
206
6
55
34.333333
0.846591
0
0
0
0
0
0
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
5bc2952588678d234203b37d2a39a4f5f14434b3
856
py
Python
Health_Reminders/Health_reminder.py
balajeraam/BaSh_Python
fd76f4061fb27713a5285b7da898337a42326390
[ "MIT" ]
null
null
null
Health_Reminders/Health_reminder.py
balajeraam/BaSh_Python
fd76f4061fb27713a5285b7da898337a42326390
[ "MIT" ]
null
null
null
Health_Reminders/Health_reminder.py
balajeraam/BaSh_Python
fd76f4061fb27713a5285b7da898337a42326390
[ "MIT" ]
null
null
null
# importing tkinter module that will handle display window and text import tkinter as tk #Create a class that will generate new tkinter window with message for a given text def Reminder(reminder_text): app_window = tk.Tk() app_window.title("Health Reminder") # The bell method will adds a bell sound app...
42.8
100
0.719626
127
856
4.771654
0.582677
0.089109
0
0
0
0
0
0
0
0
0
0.020029
0.183411
856
19
101
45.052632
0.846924
0.445093
0
0
1
0
0.241453
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.181818
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
5bc4a23038ee5b6bc88961f946ddd85c58bb965b
10,688
py
Python
model.py
nuguziii/ResidualDenoising
f3ae8a10a1fab86a80cd7bbbe6d6fb92e7bd9a6d
[ "MIT" ]
null
null
null
model.py
nuguziii/ResidualDenoising
f3ae8a10a1fab86a80cd7bbbe6d6fb92e7bd9a6d
[ "MIT" ]
null
null
null
model.py
nuguziii/ResidualDenoising
f3ae8a10a1fab86a80cd7bbbe6d6fb92e7bd9a6d
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.init as init import os import torch.nn.functional as F from utils import * class Model(nn.Module): def __init__(self, model_dir=None, model_name=[]): super(Model, self).__init__() #self.DNet = torch.load(os.path.join(model_dir, m...
34.477419
141
0.57747
1,618
10,688
3.630408
0.07602
0.068607
0.010215
0.02809
0.780048
0.737828
0.708376
0.636704
0.600613
0.587675
0
0.066121
0.268432
10,688
309
142
34.588997
0.685126
0.015531
0
0.53012
0
0
0.007608
0
0
0
0
0
0
1
0.088353
false
0
0.028112
0
0.204819
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5bc51f065eb8ca85aa842d7f3d633a1dccfbb3b5
18,655
py
Python
learning/optimize/linesearch.py
JustinLovinger/learning
895b5d91509f1bf3da64f804dc346aecbfec853c
[ "MIT" ]
6
2017-09-15T20:54:14.000Z
2021-05-07T21:32:43.000Z
learning/optimize/linesearch.py
JustinLovinger/learning
895b5d91509f1bf3da64f804dc346aecbfec853c
[ "MIT" ]
null
null
null
learning/optimize/linesearch.py
JustinLovinger/learning
895b5d91509f1bf3da64f804dc346aecbfec853c
[ "MIT" ]
5
2017-09-20T17:39:41.000Z
2020-05-03T23:24:43.000Z
############################################################################### # The MIT License (MIT) # # Copyright (c) 2017 Justin Lovinger # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Softwar...
40.032189
96
0.633021
2,639
18,655
4.214096
0.15953
0.082007
0.01079
0.017265
0.510296
0.466595
0.399694
0.370201
0.357162
0.355274
0
0.010953
0.285446
18,655
465
97
40.11828
0.823331
0.498633
0
0.321429
0
0
0.047771
0.006046
0
0
0
0.004301
0.017857
1
0.107143
false
0.005952
0.02381
0
0.261905
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5bc51fad17b918c59dfbd3c6e2853790185f1367
2,921
py
Python
apps/lti_app/models.py
PremierLangage/premierlangage
7134a2aadffee2bf264abee6c4b23ea33f1b390b
[ "CECILL-B" ]
8
2019-01-30T13:51:59.000Z
2022-01-08T03:26:53.000Z
apps/lti_app/models.py
PremierLangage/premierlangage
7134a2aadffee2bf264abee6c4b23ea33f1b390b
[ "CECILL-B" ]
286
2019-01-18T21:35:51.000Z
2022-03-24T18:53:59.000Z
apps/lti_app/models.py
PremierLangage/premierlangage
7134a2aadffee2bf264abee6c4b23ea33f1b390b
[ "CECILL-B" ]
4
2019-02-11T13:38:30.000Z
2021-03-02T20:59:00.000Z
import logging from django.apps import apps from django.conf import settings from django.contrib.auth.models import User from django.db import models from django.http import Http404 logger = logging.getLogger(__name__) class LTIModel(models.Model): """Mixin for models that can be created through LTI. ...
38.434211
97
0.683328
363
2,921
5.349862
0.352617
0.025747
0.037075
0.049434
0.123584
0.036045
0
0
0
0
0
0.008119
0.241013
2,921
75
98
38.946667
0.867839
0.244437
0
0.097561
0
0
0.139282
0.032578
0
0
0
0
0
1
0.02439
false
0
0.146341
0
0.512195
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
5bc67afba8ed5dc9591c0f85d1fe2b5abb56dd2e
546
py
Python
drivers/ssd1351/test128_row.py
IhorNehrutsa/micropython-nano-gui
4ef0e20da27ef7c0b5c34136dcb372200f0e5e66
[ "MIT" ]
198
2018-08-31T22:30:28.000Z
2022-03-27T14:21:36.000Z
drivers/ssd1351/test128_row.py
IhorNehrutsa/micropython-nano-gui
4ef0e20da27ef7c0b5c34136dcb372200f0e5e66
[ "MIT" ]
24
2018-10-01T23:44:25.000Z
2022-01-08T09:05:14.000Z
drivers/ssd1351/test128_row.py
IhorNehrutsa/micropython-nano-gui
4ef0e20da27ef7c0b5c34136dcb372200f0e5e66
[ "MIT" ]
44
2018-09-30T02:09:56.000Z
2022-03-25T07:37:36.000Z
# test128_row.py Test for device driver on 96 row display import machine from ssd1351 import SSD1351 as SSD # Initialise hardware def setup(): pdc = machine.Pin('X1', machine.Pin.OUT_PP, value=0) pcs = machine.Pin('X2', machine.Pin.OUT_PP, value=1) prst = machine.Pin('X3', machine.Pin.OUT_PP, value=1) ...
28.736842
63
0.664835
98
546
3.663265
0.459184
0.167131
0.108635
0.125348
0.172702
0.116992
0
0
0
0
0
0.100897
0.18315
546
18
64
30.333333
0.704036
0.184982
0
0
0
0
0.013605
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5bca10654ae55fb2d3ea1b8dd68b0e38ebec9051
2,202
py
Python
sw/3rd_party/VTK-7.1.0/Filters/Points/Testing/Python/TestExtractPoints.py
esean/stl_voro_fill
c569a4019ff80afbf85482c7193711ea85a7cafb
[ "MIT" ]
4
2019-05-30T01:52:12.000Z
2021-09-29T21:12:13.000Z
sw/3rd_party/VTK-7.1.0/Filters/Points/Testing/Python/TestExtractPoints.py
esean/stl_voro_fill
c569a4019ff80afbf85482c7193711ea85a7cafb
[ "MIT" ]
null
null
null
sw/3rd_party/VTK-7.1.0/Filters/Points/Testing/Python/TestExtractPoints.py
esean/stl_voro_fill
c569a4019ff80afbf85482c7193711ea85a7cafb
[ "MIT" ]
2
2019-08-30T23:36:13.000Z
2019-11-08T16:52:01.000Z
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Interpolate onto a volume # Parameters for debugging NPts = 1000000 math = vtk.vtkMath() math.RandomSeed(31415) # create pipeline # points = vtk.vtkBoundedPointSour...
23.934783
75
0.752044
250
2,202
6.616
0.48
0.003628
0.003628
0
0
0
0
0
0
0
0
0.027763
0.133061
2,202
91
76
24.197802
0.838659
0.161671
0
0
0
0
0.046605
0
0
0
0
0
0
1
0
false
0
0.054545
0
0.054545
0.054545
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5bcb12dcfb1374d0b8ca8119dc8c19584b673c4b
384
py
Python
pavement.py
alesgaco/PyOptimizer
0b9f47a72d0288df828ef575eac993c31564d1f1
[ "MIT" ]
null
null
null
pavement.py
alesgaco/PyOptimizer
0b9f47a72d0288df828ef575eac993c31564d1f1
[ "MIT" ]
null
null
null
pavement.py
alesgaco/PyOptimizer
0b9f47a72d0288df828ef575eac993c31564d1f1
[ "MIT" ]
null
null
null
from paver.easy import * import paver.doctools from paver.setuputils import setup setup( name='PyOptimizer', version='1.0', packages=['PyOptimizer'], url='https://github.com/alesgaco/PyOptimizer', license='MIT', author='Aldo Esteban Garces Correa', author_email='aegarcesc@unal.edu.co', d...
27.428571
66
0.713542
47
384
5.808511
0.808511
0.065934
0
0
0
0
0
0
0
0
0
0.006192
0.158854
384
13
67
29.538462
0.839009
0
0
0
0
0
0.421875
0.054688
0
0
0
0
0
1
0
true
0
0.230769
0
0.230769
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
5bcd24af92ff2049a8f1702bee4c476fb75c0379
3,381
py
Python
generator/functions/make_keyword_wordart.py
niyazed/wordify
bc927947476568544cd79d05e0a2ea007e3de2d0
[ "MIT" ]
2
2020-05-18T21:33:55.000Z
2021-03-11T17:38:37.000Z
generator/functions/make_keyword_wordart.py
niyazed/wordify
bc927947476568544cd79d05e0a2ea007e3de2d0
[ "MIT" ]
8
2020-02-14T02:26:41.000Z
2021-09-22T18:32:00.000Z
generator/functions/make_keyword_wordart.py
niyazed/wordify
bc927947476568544cd79d05e0a2ea007e3de2d0
[ "MIT" ]
null
null
null
import nltk from nltk import word_tokenize import string from nltk.stem import WordNetLemmatizer from wordcloud import WordCloud, STOPWORDS #nltk.download('punkt') #nltk.download('averaged_perceptron_tagger') #nltk.download('wordnet') class generate: def __init__(self, text): self.text = text def...
28.411765
139
0.597456
411
3,381
4.756691
0.3309
0.036829
0.027621
0.016368
0.185166
0.185166
0.142199
0.142199
0.090026
0
0
0.007137
0.295475
3,381
118
140
28.652542
0.813602
0.147294
0
0.108108
0
0
0.021262
0
0
0
0
0
0
1
0.067568
false
0
0.067568
0
0.162162
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5bce24c724e70cff167c31edd656705461d5000b
248
py
Python
server/ffstore/constant/WxToken.py
AsherYang/ThreeLine
351dc8bfd1c0a536ffbf36ce8b1af953cc71f93a
[ "Apache-2.0" ]
1
2017-05-02T10:02:28.000Z
2017-05-02T10:02:28.000Z
server/ffstore/constant/WxToken.py
AsherYang/ThreeLine
351dc8bfd1c0a536ffbf36ce8b1af953cc71f93a
[ "Apache-2.0" ]
null
null
null
server/ffstore/constant/WxToken.py
AsherYang/ThreeLine
351dc8bfd1c0a536ffbf36ce8b1af953cc71f93a
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python # -*- coding:utf-8 -*- """ Author: AsherYang Email: ouyangfan1991@gmail.com Date: 2018/6/21 Desc: ffStore 微信小程序直营店在微信申请的测试 AppId, AppSecret """ APP_ID = 'wx72877ae8bdff79b0' APP_SECRET = '35c17c2b6f81e7b03735f17f546820bc'
19.076923
49
0.729839
27
248
6.62963
0.962963
0
0
0
0
0
0
0
0
0
0
0.199074
0.129032
248
12
50
20.666667
0.62963
0.629032
0
0
0
0
0.60241
0.385542
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
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
2
5bd0c05ae4e8061d76b12526917129097eb9bc66
1,037
py
Python
filebrowser/utils.py
albadrun/django-filebrowser-no-grappelli-no-pillow
5c85efae5b5bd934b6d71582a3f0c6efe01979d6
[ "BSD-3-Clause" ]
null
null
null
filebrowser/utils.py
albadrun/django-filebrowser-no-grappelli-no-pillow
5c85efae5b5bd934b6d71582a3f0c6efe01979d6
[ "BSD-3-Clause" ]
null
null
null
filebrowser/utils.py
albadrun/django-filebrowser-no-grappelli-no-pillow
5c85efae5b5bd934b6d71582a3f0c6efe01979d6
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 import re import os import unicodedata import math import six from django.utils.module_loading import import_string from filebrowser.settings import NORMALIZE_FILENAME, CONVERT_FILENAME def convert_filename(value): """ Convert Filename. """ if NORMALIZE_FILENAME: chunks = v...
22.06383
69
0.600771
125
1,037
4.904
0.456
0.097879
0.068516
0
0
0
0
0
0
0
0
0.004016
0.279653
1,037
46
70
22.543478
0.8166
0.030858
0
0.064516
0
0
0.031345
0
0
0
0
0
0
1
0.064516
false
0
0.225806
0
0.419355
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
5bd19aef2b594e4beb08b1c61935213131c03545
1,985
py
Python
tests/cte.py
Airleaf/traffic-sim
ff7acaefe7ef8c73d0f032ecad18947ad46da146
[ "Apache-2.0" ]
null
null
null
tests/cte.py
Airleaf/traffic-sim
ff7acaefe7ef8c73d0f032ecad18947ad46da146
[ "Apache-2.0" ]
8
2021-02-13T15:11:58.000Z
2021-02-15T17:39:00.000Z
tests/cte.py
Airleaf/traffic-sim
ff7acaefe7ef8c73d0f032ecad18947ad46da146
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # # This script is used for custom compilation scripts with selected # modules in order to achieve a selected enviroment for the running # code. This is done using the test.json file located in every test. # # The first argument is the name of the test enviroment, being the # folder name where test....
24.8125
88
0.611083
298
1,985
3.969799
0.379195
0.047337
0.040575
0.021978
0.113271
0.113271
0.113271
0.067625
0.067625
0.067625
0
0.000666
0.243829
1,985
79
89
25.126582
0.787475
0.240302
0
0.047619
0
0
0.309396
0.030872
0
0
0
0
0
1
0.047619
false
0
0.071429
0
0.119048
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5bd351c81bdbf7b0fc4d0428569a34e08fce0261
1,512
py
Python
main.py
abhilasharevur/ospin-promotion
e7814e6f2c745af250ba65ac0ab051af8ad4925c
[ "MIT" ]
null
null
null
main.py
abhilasharevur/ospin-promotion
e7814e6f2c745af250ba65ac0ab051af8ad4925c
[ "MIT" ]
null
null
null
main.py
abhilasharevur/ospin-promotion
e7814e6f2c745af250ba65ac0ab051af8ad4925c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os.path import argparse from src.app import main as app_main def run(): parser = argparse.ArgumentParser() # command line arguments parser.add_argument( "--input-path", help="Absolute path to input directory where .csv files reside", # nargs="+", ...
24
75
0.64418
196
1,512
4.729592
0.336735
0.084142
0.055016
0.04315
0.243797
0.196332
0.196332
0.196332
0.196332
0.196332
0
0.000883
0.251323
1,512
62
76
24.387097
0.818021
0.03373
0
0.204545
0
0
0.216735
0
0
0
0
0
0
1
0.068182
false
0
0.068182
0
0.227273
0.068182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5bd3f111c1e1343f5f5a3b4a6545c2bf77669071
8,310
py
Python
piston/wallet.py
faddat/piston
13459d720453090360ea5acace62bb40f8671d7c
[ "MIT" ]
null
null
null
piston/wallet.py
faddat/piston
13459d720453090360ea5acace62bb40f8671d7c
[ "MIT" ]
null
null
null
piston/wallet.py
faddat/piston
13459d720453090360ea5acace62bb40f8671d7c
[ "MIT" ]
null
null
null
import os import json import base64 import hashlib from Crypto import Random from Crypto.Cipher import AES from steembase import PrivateKey from appdirs import user_data_dir import logging log = logging.getLogger(__name__) appname = "piston" appauthor = "Fabian Schuh" walletFile = "wallet.dat" prefix = "STM" # prefix ...
31.83908
105
0.530806
911
8,310
4.760703
0.243688
0.036892
0.01614
0.015679
0.307125
0.290523
0.237261
0.193221
0.193221
0.193221
0
0.005722
0.369073
8,310
260
106
31.961538
0.821476
0.032371
0
0.401826
0
0
0.068338
0
0
0
0
0
0
1
0.127854
false
0.045662
0.045662
0.022831
0.342466
0.018265
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5bd6578ea2175e2c0717d77a3e1374d7b421f590
1,710
py
Python
files/example6/cartesian.py
ARCCA/intro-mpi
90f286f244e6d966ea8eddfe02697b94e1004629
[ "CC-BY-4.0" ]
null
null
null
files/example6/cartesian.py
ARCCA/intro-mpi
90f286f244e6d966ea8eddfe02697b94e1004629
[ "CC-BY-4.0" ]
null
null
null
files/example6/cartesian.py
ARCCA/intro-mpi
90f286f244e6d966ea8eddfe02697b94e1004629
[ "CC-BY-4.0" ]
null
null
null
#!/bin/env python # Demonstration of the imposition of a simple cartesian geometry on a set of # processes. In this case we generate a uniform 2-D grid in which each # element passes a value to its nearest neighbour to the right. from mpi4py import MPI import numpy as np import sys if __name__ == "__main__": # I...
38.863636
79
0.673684
256
1,710
4.453125
0.503906
0.028947
0.029825
0
0
0
0
0
0
0
0
0.005327
0.231579
1,710
43
80
39.767442
0.862253
0.499415
0
0
1
0
0.086801
0
0
0
0
0
0
1
0
false
0
0.15
0
0.15
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5bd7df91b4668904964e69e486f54f6977162982
2,300
py
Python
tick2ohlc.py
nu11ptr/tick2ohlc
b9cc8cc148533dc4feb9c76aaeb7896600c53873
[ "BSD-3-Clause" ]
1
2021-10-19T03:10:33.000Z
2021-10-19T03:10:33.000Z
tick2ohlc.py
nu11ptr/tick2ohlc
b9cc8cc148533dc4feb9c76aaeb7896600c53873
[ "BSD-3-Clause" ]
null
null
null
tick2ohlc.py
nu11ptr/tick2ohlc
b9cc8cc148533dc4feb9c76aaeb7896600c53873
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd import sys # NOTE: Each list below must be divisible by last entry of prev list # (15 by 5, 30 by 15, 1D by 6H, etc.) _UNITS = [ ["1min"], ["5min"], ["15min"], ["30min"], ["1H"], ["4H", "6H"], ["1D"], ["3D", "1W", "1M"], ] _DATE_FORMAT = "%m/%d/%Y" _TIME_FORMAT = "%H...
27.380952
83
0.563913
305
2,300
4.088525
0.429508
0.060144
0.02085
0.027265
0.032077
0
0
0
0
0
0
0.016275
0.278696
2,300
83
84
27.710843
0.735383
0.126957
0
0.03125
0
0
0.1915
0.0145
0
0
0
0
0
1
0.046875
false
0
0.03125
0.015625
0.109375
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5bd87c7f3cf4dbb87910b47eb4c9320d786e3c84
3,131
py
Python
promoterz/representation/chromosome.py
emillj/gekkoJaponicus
d77c8c7a303b97a3643eb3f3c8b995b8b393f3f7
[ "MIT" ]
null
null
null
promoterz/representation/chromosome.py
emillj/gekkoJaponicus
d77c8c7a303b97a3643eb3f3c8b995b8b393f3f7
[ "MIT" ]
null
null
null
promoterz/representation/chromosome.py
emillj/gekkoJaponicus
d77c8c7a303b97a3643eb3f3c8b995b8b393f3f7
[ "MIT" ]
1
2021-11-29T20:18:25.000Z
2021-11-29T20:18:25.000Z
#!/bin/python from deap import base from deap import creator from deap import tools from copy import deepcopy import random from .. import functions getPromoterFromMap = lambda x: [x[z] for z in list(x.keys())] def constructPhenotype(stratSettings, chrconf, Individue): Settings = {} GeneSize=2 R = lamb...
30.696078
94
0.661131
344
3,131
5.982558
0.31686
0.036443
0.020408
0
0
0
0
0
0
0
0
0.010713
0.224848
3,131
101
95
31
0.837248
0.023315
0
0
0
0
0.028497
0
0
0
0
0
0.014493
1
0.086957
false
0
0.086957
0
0.26087
0.014493
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
5bd912416252f099d311b6a7bf71cbb0a03fb0aa
1,124
py
Python
Python/esys/lsm/vis/vtk/pointExtractor.py
danielfrascarelli/esys-particle
e56638000fd9c4af77e21c75aa35a4f8922fd9f0
[ "Apache-2.0" ]
null
null
null
Python/esys/lsm/vis/vtk/pointExtractor.py
danielfrascarelli/esys-particle
e56638000fd9c4af77e21c75aa35a4f8922fd9f0
[ "Apache-2.0" ]
null
null
null
Python/esys/lsm/vis/vtk/pointExtractor.py
danielfrascarelli/esys-particle
e56638000fd9c4af77e21c75aa35a4f8922fd9f0
[ "Apache-2.0" ]
null
null
null
############################################################# ## ## ## Copyright (c) 2003-2017 by The University of Queensland ## ## Centre for Geoscience Computing ## ## http://earth.uq.edu.au/centre-geoscience-computing ## ## ...
40.142857
64
0.47242
88
1,124
5.943182
0.670455
0.072658
0.061185
0
0
0
0
0
0
0
0
0.016021
0.33363
1,124
27
65
41.62963
0.682243
0.341637
0
0
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0
0.461538
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
5bd9266ab2b8b9521255499e10166243811219e3
2,266
py
Python
modules/images/module_slap.py
Fogapod/KiwiBot
49743118661abecaab86388cb94ff8a99f9011a8
[ "MIT" ]
18
2018-05-25T08:50:12.000Z
2021-10-04T07:13:09.000Z
modules/images/module_slap.py
Fogapod/BotMyBot
49743118661abecaab86388cb94ff8a99f9011a8
[ "MIT" ]
4
2018-10-20T21:10:38.000Z
2019-06-25T13:12:07.000Z
modules/images/module_slap.py
Fogapod/BotMyBot
49743118661abecaab86388cb94ff8a99f9011a8
[ "MIT" ]
6
2018-10-20T21:06:24.000Z
2021-11-08T05:51:14.000Z
from objects.modulebase import ModuleBase import discord from io import BytesIO from PIL import Image from PIL.ImageOps import mirror from utils.funcs import find_image class Module(ModuleBase): usage_doc = '{prefix}{aliases} [image]' short_doc = 'Makes a slap meme' long_doc = ( 'Flags:\n' ...
27.975309
85
0.566637
274
2,266
4.613139
0.416058
0.031646
0.033228
0.030063
0.099684
0.099684
0.099684
0.099684
0.099684
0.099684
0
0.019808
0.309356
2,266
80
86
28.325
0.787859
0
0
0.033333
0
0.016667
0.124007
0
0
0
0
0
0
1
0.016667
false
0
0.1
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
5bdaca6657ffcf8af132b8355ef2a3c0fd26d275
308
py
Python
tests/test_helpers.py
pyapp-org/pyapp.aiosmtplib
f928a7eb838b041d279d974f7cb555964764a410
[ "BSD-3-Clause" ]
null
null
null
tests/test_helpers.py
pyapp-org/pyapp.aiosmtplib
f928a7eb838b041d279d974f7cb555964764a410
[ "BSD-3-Clause" ]
20
2020-07-31T05:07:07.000Z
2022-02-11T19:02:03.000Z
tests/test_helpers.py
pyapp-org/pyapp.aiosmtplib
f928a7eb838b041d279d974f7cb555964764a410
[ "BSD-3-Clause" ]
null
null
null
from unittest.mock import Mock from pyapp_ext.aiosmtplib import helpers class TestEmail: def test_init(self, monkeypatch): mock_factory = Mock() monkeypatch.setattr(helpers, "get_client", mock_factory) helpers.Email(name="foo") mock_factory.assert_called_with("foo")
22
64
0.707792
38
308
5.526316
0.657895
0.157143
0
0
0
0
0
0
0
0
0
0
0.201299
308
13
65
23.692308
0.853659
0
0
0
0
0
0.051948
0
0
0
0
0
0.125
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5bdc283f9a85f238ab321674c1684e85da942ecb
1,444
py
Python
pywizlight/tests/test_bulb_light_strip_1_21_4.py
mikemakaroff/pywizlight
0b32b917a064d9ca1be0ce9fb24ea68ce89993ed
[ "MIT" ]
1
2022-03-30T22:42:51.000Z
2022-03-30T22:42:51.000Z
pywizlight/tests/test_bulb_light_strip_1_21_4.py
mikemakaroff/pywizlight
0b32b917a064d9ca1be0ce9fb24ea68ce89993ed
[ "MIT" ]
null
null
null
pywizlight/tests/test_bulb_light_strip_1_21_4.py
mikemakaroff/pywizlight
0b32b917a064d9ca1be0ce9fb24ea68ce89993ed
[ "MIT" ]
null
null
null
"""Tests for the Bulb API with a light strip.""" from typing import AsyncGenerator import pytest from pywizlight import PilotBuilder, wizlight from pywizlight.bulblibrary import BulbClass, BulbType, Features, KelvinRange from pywizlight.tests.fake_bulb import startup_bulb @pytest.fixture() async def light_strip() -...
32.088889
85
0.701524
195
1,444
5.010256
0.441026
0.092119
0.046059
0.038895
0.13306
0.079836
0
0
0
0
0
0.036689
0.188366
1,444
44
86
32.818182
0.796928
0.029086
0
0.060606
0
0
0.041953
0
0
0
0
0
0.060606
1
0
false
0
0.151515
0
0.151515
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5bdc65f7f7f6d8254722d6ccff4a26998def2d9d
47,068
py
Python
casim/casim.py
pdebuyl/cancer_sim
305492d5108e1fb50783e4f13ddf2e1cf5b08976
[ "MIT" ]
1
2022-02-16T03:34:44.000Z
2022-02-16T03:34:44.000Z
casim/casim.py
pdebuyl/cancer_sim
305492d5108e1fb50783e4f13ddf2e1cf5b08976
[ "MIT" ]
12
2020-03-16T20:59:21.000Z
2020-09-18T08:41:09.000Z
casim/casim.py
pdebuyl/cancer_sim
305492d5108e1fb50783e4f13ddf2e1cf5b08976
[ "MIT" ]
3
2020-09-16T12:41:19.000Z
2021-03-11T23:19:24.000Z
# -*- coding: utf-8 -*- #!/usr/bin/env python3 __author__ = 'Luka Opasic, MD' __email__ = 'opasic@evolbio.mpg.de' __version__ = '1.1.0' from argparse import ArgumentParser from operator import itemgetter from random import shuffle from scipy.sparse import lil_matrix from time import sleep, time from timeit import def...
39.028192
225
0.640754
5,867
47,068
4.914948
0.123402
0.022472
0.018865
0.015259
0.353759
0.26134
0.196456
0.165661
0.144264
0.110522
0
0.008574
0.27643
47,068
1,205
226
39.060581
0.838124
0.287286
0
0.156986
0
0.00471
0.095262
0.003671
0
0
0
0
0
1
0.103611
false
0
0.026688
0.031397
0.199372
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
5bdc70ca06cc34e56b74c48fa1591b6c52375528
8,973
py
Python
src/stimulus_create.py
JohnKirwan/StimulPy
4cce54856a19de56d1b266f2013e66987459ed3c
[ "MIT" ]
null
null
null
src/stimulus_create.py
JohnKirwan/StimulPy
4cce54856a19de56d1b266f2013e66987459ed3c
[ "MIT" ]
null
null
null
src/stimulus_create.py
JohnKirwan/StimulPy
4cce54856a19de56d1b266f2013e66987459ed3c
[ "MIT" ]
null
null
null
def stimulus_create(type, wl, va, ratio): # STIMULUS_CREATE generates a 2D stimulus vector for phototaxis experiments of desired type and resolution # Inputs: # type - type of stimulus, e.g. 'bar'/'dog'/'square'/'log' (see below for full list) # wl - "width" or "wavelength" of pattern in degre...
70.653543
146
0.608381
1,317
8,973
4.077449
0.172361
0.017318
0.035754
0.041713
0.603352
0.567039
0.551397
0.537244
0.488641
0.466667
0
0.043084
0.249861
8,973
126
147
71.214286
0.754717
0
0
0.22619
1
0
0.010868
0
0
0
0
0
0
0
null
null
0
0.02381
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
1
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
5bde1f82acb41df2e414dc677ad1aaaf4d992610
7,296
py
Python
asar_pi_applications/asar_web_server/asar_web_server/asar_web_server.py
ssnover/msd-p18542
32bef466f9d5ba55429da2119a14081b3e411d0b
[ "MIT" ]
3
2021-01-07T07:46:50.000Z
2021-11-17T10:48:39.000Z
asar_pi_applications/asar_web_server/asar_web_server/asar_web_server.py
ssnover/msd-p18542
32bef466f9d5ba55429da2119a14081b3e411d0b
[ "MIT" ]
3
2018-02-19T20:30:30.000Z
2018-04-20T23:25:29.000Z
asar_pi_applications/asar_web_server/asar_web_server/asar_web_server.py
ssnover95/msd-p18542
32bef466f9d5ba55429da2119a14081b3e411d0b
[ "MIT" ]
1
2021-01-07T07:46:52.000Z
2021-01-07T07:46:52.000Z
#!/usr/bin/python3 """ file: app.py purpose: Holds the view for the Flask web application and handling of the database. """ from .gui_constants import GUI_CONSTANTS, DANGER, ENVIRONMENT, STATE import datetime from flask import Flask, request, session, g, redirect, url_for, abort, \ render_temp...
30.915254
174
0.626234
865
7,296
5.117919
0.284393
0.033883
0.022137
0.031624
0.244635
0.181161
0.171222
0.139598
0.139598
0.120172
0
0.010095
0.253289
7,296
235
175
31.046809
0.802496
0.173383
0
0.177778
0
0
0.247273
0
0
0
0
0
0
1
0.118519
false
0
0.051852
0
0.259259
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5bdf01b0a0a5bb6669ac8ad449e7895990ac364b
945
py
Python
meregistro/apps/reportes/views/titulo_nacional.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/reportes/views/titulo_nacional.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/reportes/views/titulo_nacional.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- from django.http import HttpResponse, HttpResponseRedirect from datetime import datetime, date from apps.seguridad.decorators import login_required, credential_required from apps.seguridad.models import Usuario, Perfil from apps.titulos.models.TituloNacional import TituloNacional import csv fro...
37.8
159
0.767196
124
945
5.717742
0.508065
0.045134
0.047955
0.087447
0
0
0
0
0
0
0
0.004728
0.104762
945
24
160
39.375
0.833333
0.022222
0
0
0
0
0.127983
0.030369
0
0
0
0
0
1
0.052632
false
0
0.368421
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
0
1
0
0
0
0
1
5bdf6fd05d5925e9877b48b6e99ef373ee445894
463
py
Python
PerceptronsORBitOperator.py
Jayasagar/neural-networks-and-fundamentals
3ba730f723f92dd1eab4f88b4d968f66fa866e7b
[ "MIT" ]
null
null
null
PerceptronsORBitOperator.py
Jayasagar/neural-networks-and-fundamentals
3ba730f723f92dd1eab4f88b4d968f66fa866e7b
[ "MIT" ]
null
null
null
PerceptronsORBitOperator.py
Jayasagar/neural-networks-and-fundamentals
3ba730f723f92dd1eab4f88b4d968f66fa866e7b
[ "MIT" ]
null
null
null
# Stimulate OR bit operator using Perceptron neural function def ORBitwiseOperation(x1, x2, bias): weight = 1 if x1*weight + x2*weight + bias <= 0: return 0 return 1 # Bias = 0 and Weight = 1 print('ORBitwiseOperation: 0,0', ORBitwiseOperation(0, 0, 0)) print('ORBitwiseOperation: 0,1', ORBitwiseOp...
30.866667
61
0.697624
63
463
5.126984
0.31746
0.28483
0.22291
0.154799
0
0
0
0
0
0
0
0.078125
0.170626
463
14
62
33.071429
0.763021
0.177106
0
0
0
0
0.244681
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.333333
0.444444
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
5be18ef0ed38e04271a5246710a5e01dc9b41ee1
3,642
py
Python
raster_aggregation/admin.py
geodesign/django-raster-aggregation
2a4c155071f1f05923819da78f5f854b212b6926
[ "BSD-3-Clause" ]
9
2016-07-03T21:07:09.000Z
2019-02-19T01:26:00.000Z
raster_aggregation/admin.py
geodesign/django-raster-aggregation
2a4c155071f1f05923819da78f5f854b212b6926
[ "BSD-3-Clause" ]
2
2017-06-11T23:12:33.000Z
2018-04-03T22:33:15.000Z
raster_aggregation/admin.py
geodesign/django-raster-aggregation
2a4c155071f1f05923819da78f5f854b212b6926
[ "BSD-3-Clause" ]
6
2016-12-14T04:53:43.000Z
2021-08-24T14:32:46.000Z
from __future__ import unicode_literals from raster.models import RasterLayer from django import forms from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME from django.contrib.gis import admin from django.http import HttpResponseRedirect from django.shortcuts import render from .models import AggregationAre...
33.109091
102
0.661999
339
3,642
6.955752
0.40413
0.030534
0.028838
0.016964
0.057676
0.057676
0.027142
0
0
0
0
0.00037
0.257002
3,642
109
103
33.412844
0.871027
0.043383
0
0.093333
0
0
0.140179
0.015287
0
0
0
0
0
1
0.026667
false
0
0.12
0
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
5be1b30055f7a9152abd85250240eb463b7bd006
2,624
py
Python
src/get_matches_api.py
AminuHabib/sky_bet_league_competition
c8180dd38b6b5a2e7378948e3f323095257215aa
[ "MIT" ]
null
null
null
src/get_matches_api.py
AminuHabib/sky_bet_league_competition
c8180dd38b6b5a2e7378948e3f323095257215aa
[ "MIT" ]
null
null
null
src/get_matches_api.py
AminuHabib/sky_bet_league_competition
c8180dd38b6b5a2e7378948e3f323095257215aa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """get_matches_api.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1QpfVmsmtCPV9dhTsq6pRW7l7bXjwzKzr Author: Aminu Habib Import Libraries """ import requests import json from prettytable import PrettyTable #import sqlite...
31.238095
332
0.739329
360
2,624
5.094444
0.3
0.065431
0.030534
0.037077
0.386587
0.276445
0.264449
0.252999
0.231189
0.231189
0
0.008711
0.125
2,624
84
333
31.238095
0.79007
0.106707
0
0
1
0.027027
0.25679
0
0
0
0
0
0
1
0
false
0
0.081081
0
0.081081
0.081081
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
5be3e7aecb0aee54a7b66c2e2430fa5ba14e5ada
2,554
py
Python
src/yeahml/build/components/callbacks/objects/printer.py
JackBurdick/yensor
b51faff6625db5980151a4a5fac7bb49313df5c1
[ "Apache-2.0" ]
4
2019-04-21T05:19:22.000Z
2020-04-20T20:51:48.000Z
src/yeahml/build/components/callbacks/objects/printer.py
JackBurdick/YeahML
b51faff6625db5980151a4a5fac7bb49313df5c1
[ "Apache-2.0" ]
1
2020-08-24T23:23:14.000Z
2020-09-13T03:55:36.000Z
src/yeahml/build/components/callbacks/objects/printer.py
JackBurdick/YeahML
b51faff6625db5980151a4a5fac7bb49313df5c1
[ "Apache-2.0" ]
1
2020-08-07T00:41:02.000Z
2020-08-07T00:41:02.000Z
from yeahml.build.components.callbacks.objects.base import TrainCallback def print_mapper(cur_func): def _print_mapper(self, *args, **kwargs): print(f"{cur_func.__name__}: {self.monitor}") return _print_mapper class Printer(TrainCallback): def __init__(self, monitor="something", relation_key=No...
17.613793
72
0.53289
246
2,554
5.186992
0.182927
0.232759
0.230408
0.293103
0.469436
0.4279
0.199843
0
0
0
0
0
0.331637
2,554
144
73
17.736111
0.74751
0.218089
0
0.421053
0
0
0.023567
0
0
0
0
0
0
1
0.473684
false
0.035088
0.017544
0
0.526316
0.491228
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
1
0
5
5be40c75d2881dfa910d5ccbe37999de02fdbebd
3,043
py
Python
differential-privacy-library-main/tests/tools/test_histogram2d.py
gonzalo-munillag/Exponential_Randomised_Response
1ae2c867d77c6e92f1df0bb7120862e4f9aa15e4
[ "MIT" ]
597
2019-06-19T11:26:50.000Z
2022-03-30T13:23:42.000Z
differential-privacy-library-main/tests/tools/test_histogram2d.py
gonzalo-munillag/Exponential_Randomised_Response
1ae2c867d77c6e92f1df0bb7120862e4f9aa15e4
[ "MIT" ]
45
2019-06-20T08:03:31.000Z
2022-03-30T14:02:02.000Z
differential-privacy-library-main/tests/tools/test_histogram2d.py
gonzalo-munillag/Exponential_Randomised_Response
1ae2c867d77c6e92f1df0bb7120862e4f9aa15e4
[ "MIT" ]
163
2019-06-19T23:56:19.000Z
2022-03-26T23:59:24.000Z
import numpy as np from unittest import TestCase from diffprivlib.accountant import BudgetAccountant from diffprivlib.tools.histograms import histogram2d from diffprivlib.utils import global_seed, PrivacyLeakWarning, BudgetError class TestHistogram2d(TestCase): def test_no_params(self): x = np.array([1, ...
37.109756
104
0.564574
462
3,043
3.616883
0.151515
0.075404
0.093357
0.048474
0.614602
0.562537
0.505087
0.499102
0.488929
0.488929
0
0.092082
0.261255
3,043
81
105
37.567901
0.651246
0.033848
0
0.491803
0
0
0
0
0
0
0
0
0.213115
1
0.147541
false
0
0.081967
0
0.245902
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