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
a5582803ca69b47af8a599a971fe68204b6f9492
3,392
py
Python
apps/ndn_demoapps_wldr.py
theuerse/emulation_lib
d9388202d7ec9283404f9ab4d2448ff19922b44f
[ "MIT" ]
2
2018-12-11T10:02:06.000Z
2019-04-01T10:39:09.000Z
apps/ndn_demoapps_wldr.py
theuerse/emulation_lib
d9388202d7ec9283404f9ab4d2448ff19922b44f
[ "MIT" ]
null
null
null
apps/ndn_demoapps_wldr.py
theuerse/emulation_lib
d9388202d7ec9283404f9ab4d2448ff19922b44f
[ "MIT" ]
null
null
null
import os from .. import constants from . import application class NDN_DemoAppsWLDR(application.Application): def __init__(self, server, clients, gateways, start, duration, server_params, client_params, routingcmds): self.server = server self.clients = clients self.gateways = gateways ...
50.626866
163
0.645047
394
3,392
5.393401
0.296954
0.041412
0.070588
0.081882
0.349647
0.326118
0.249412
0.228706
0.053647
0
0
0.014363
0.240566
3,392
66
164
51.393939
0.810559
0.127358
0
0
0
0.022727
0.205015
0.024737
0
0
0
0
0
1
0.045455
false
0
0.068182
0
0.136364
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
a55b04ba7921f1a3ec26bc5a38d932e27524c9ac
1,918
py
Python
catoclient/commands/scheduletasks.py
cloudsidekick/catoclient
26907127e38d01f56959618263f4bf61e60784ee
[ "Apache-2.0" ]
1
2017-08-31T03:26:50.000Z
2017-08-31T03:26:50.000Z
catoclient/commands/scheduletasks.py
cloudsidekick/catoclient
26907127e38d01f56959618263f4bf61e60784ee
[ "Apache-2.0" ]
null
null
null
catoclient/commands/scheduletasks.py
cloudsidekick/catoclient
26907127e38d01f56959618263f4bf61e60784ee
[ "Apache-2.0" ]
null
null
null
######################################################################### # Copyright 2011 Cloud Sidekick # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
39.142857
155
0.588634
227
1,918
4.933921
0.537445
0.053571
0.023214
0.028571
0
0
0
0
0
0
0
0.00563
0.259124
1,918
48
156
39.958333
0.782548
0.311262
0
0
0
0.037037
0.264655
0.02069
0
0
0
0
0
1
0.037037
false
0
0.148148
0
0.37037
0.074074
0
0
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
a55cd95076293cb8d38f62d5a86be378db28011c
7,589
py
Python
highlevel_planning_ros/src/highlevel_planning_py/skills/navigate.py
ethz-asl/high_level_planning
094a73e993a6a9924f6ed067dcdbee70d1ead80e
[ "BSD-3-Clause" ]
null
null
null
highlevel_planning_ros/src/highlevel_planning_py/skills/navigate.py
ethz-asl/high_level_planning
094a73e993a6a9924f6ed067dcdbee70d1ead80e
[ "BSD-3-Clause" ]
null
null
null
highlevel_planning_ros/src/highlevel_planning_py/skills/navigate.py
ethz-asl/high_level_planning
094a73e993a6a9924f6ed067dcdbee70d1ead80e
[ "BSD-3-Clause" ]
null
null
null
import pybullet as p import numpy as np from icecream import ic from scipy.spatial.transform import Rotation as R from highlevel_planning_py.tools.util import ( homogenous_trafo, invert_hom_trafo, pos_and_orient_from_hom_trafo, SkillExecutionError, ) class SkillNavigate: def __init__(self, scene, ...
34.339367
91
0.573593
966
7,589
4.15528
0.182195
0.03986
0.053812
0.04858
0.486049
0.41156
0.375934
0.349527
0.270553
0.238166
0
0.008777
0.324417
7,589
220
92
34.495455
0.774137
0.060087
0
0.288136
0
0
0.07461
0
0
0
0
0
0.016949
1
0.056497
false
0
0.028249
0
0.141243
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
a569dd73bf4c737b5da9b60bab3083b5192099d3
5,151
py
Python
weakest_link/game.py
jmattfong/weakest-link
c4dba2b51a7271b83d3cc14b1329836805019671
[ "Apache-2.0" ]
null
null
null
weakest_link/game.py
jmattfong/weakest-link
c4dba2b51a7271b83d3cc14b1329836805019671
[ "Apache-2.0" ]
null
null
null
weakest_link/game.py
jmattfong/weakest-link
c4dba2b51a7271b83d3cc14b1329836805019671
[ "Apache-2.0" ]
null
null
null
from weakest_link.util import wait_for_choice, green, red, dollars, get_random_mean_word, starts_with_vowel, format_time class WeakestLinkGame : def __init__(self, players, rounds, final_round) : self.players = players self.rounds = rounds self.final_round = final_round self.total_...
40.559055
165
0.628422
665
5,151
4.613534
0.180451
0.078879
0.067797
0.041069
0.340939
0.264342
0.244785
0.210561
0.210561
0.169166
0
0.004804
0.272568
5,151
126
166
40.880952
0.813985
0.015337
0
0.244898
0
0
0.109927
0
0
0
0
0.007937
0
1
0.142857
false
0
0.010204
0.040816
0.326531
0.183673
0
0
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
a56b8b89c70b03cbae514c630dd4557886c37a12
1,338
py
Python
infiltrate/models/card/expedition.py
Qazzquimby/eternalCardEvaluator
ef8640ed819a89e5198f8aedf0861a29c57c5720
[ "MIT" ]
4
2019-04-08T09:30:10.000Z
2020-09-15T19:25:30.000Z
infiltrate/models/card/expedition.py
Qazzquimby/eternalCardEvaluator
ef8640ed819a89e5198f8aedf0861a29c57c5720
[ "MIT" ]
19
2019-04-09T19:02:14.000Z
2020-12-25T05:22:45.000Z
infiltrate/models/card/expedition.py
Qazzquimby/eternalCardEvaluator
ef8640ed819a89e5198f8aedf0861a29c57c5720
[ "MIT" ]
null
null
null
import typing as t import infiltrate.browsers as browsers import infiltrate.eternal_warcy_cards_browser as ew_cards import infiltrate.models.card as card_mod from infiltrate import db def update_is_in_expedition(): """Sets the is_in_expedition column of the cards table to match Eternal Warcry readings.""" ...
32.634146
74
0.750374
193
1,338
4.751295
0.34715
0.091603
0.092694
0.065431
0.082879
0
0
0
0
0
0
0.000891
0.161435
1,338
40
75
33.45
0.816399
0.063528
0
0
0
0
0.087691
0
0
0
0
0
0
1
0.107143
false
0
0.178571
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
a56e7c7d3eb512b85fa07082bf02be47726e19fd
8,373
py
Python
attribution/authorship_pipeline/classifiers/BaseClassifier.py
yangzhou6666/authorship-detection
f28701dea256da70eb8ba216c2572e1975c99b54
[ "MIT" ]
14
2020-10-26T06:05:55.000Z
2022-03-08T08:32:17.000Z
attribution/authorship_pipeline/classifiers/BaseClassifier.py
yangzhou6666/authorship-detection
f28701dea256da70eb8ba216c2572e1975c99b54
[ "MIT" ]
10
2020-02-29T16:55:20.000Z
2021-11-06T10:40:32.000Z
attribution/authorship_pipeline/classifiers/BaseClassifier.py
yangzhou6666/authorship-detection
f28701dea256da70eb8ba216c2572e1975c99b54
[ "MIT" ]
4
2021-07-28T12:27:46.000Z
2021-10-04T18:12:33.000Z
from collections import namedtuple from math import ceil from typing import Tuple, Dict, Union, List, Counter import numpy as np import pandas as pd from classifiers.config import Config from data_loading.PathMinerDataset import PathMinerDataset from data_loading.PathMinerLoader import PathMinerLoader from data_loadi...
47.845714
128
0.651618
1,026
8,373
5.087719
0.208577
0.024521
0.034483
0.021839
0.2341
0.222605
0.200383
0.180843
0.146552
0.146552
0
0.002393
0.251403
8,373
174
129
48.12069
0.830408
0.203272
0
0.151261
0
0
0.016152
0
0
0
0
0
0
1
0.067227
false
0
0.092437
0
0.218487
0.008403
0
0
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
a5734519608276ff9f8fee5a5bd77871ef93780f
4,461
py
Python
tests/test_renderers.py
adamchainz/classy-django-rest-framework
19f57d88d13f5ddd2ee33a3239c51e97829e5e6f
[ "MIT" ]
null
null
null
tests/test_renderers.py
adamchainz/classy-django-rest-framework
19f57d88d13f5ddd2ee33a3239c51e97829e5e6f
[ "MIT" ]
null
null
null
tests/test_renderers.py
adamchainz/classy-django-rest-framework
19f57d88d13f5ddd2ee33a3239c51e97829e5e6f
[ "MIT" ]
null
null
null
import unittest from mock import mock_open, patch from rest_framework.generics import ListAPIView from rest_framework_ccbv.renderers import ( BasePageRenderer, IndexPageRenderer, LandPageRenderer, ErrorPageRenderer, SitemapRenderer, DetailPageRenderer, ) from rest_framework_ccbv.config import VERSION from res...
44.61
101
0.726743
498
4,461
6.210843
0.178715
0.084061
0.087941
0.109279
0.511801
0.444552
0.387326
0.361461
0.305852
0.305852
0
0.003438
0.152432
4,461
99
102
45.060606
0.814599
0.015916
0
0.256098
0
0
0.224476
0.145397
0
0
0
0
0.304878
1
0.109756
false
0
0.073171
0
0.231707
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
a57349956429b4d3071a79222d869b969895aec7
1,320
py
Python
emailpal/tests/test_views.py
18F/django-email-pal
7471342741d814d19713d4353a3f566e490177a4
[ "CC0-1.0" ]
5
2017-05-25T00:51:55.000Z
2020-06-13T16:37:42.000Z
emailpal/tests/test_views.py
18F/django-email-pal
7471342741d814d19713d4353a3f566e490177a4
[ "CC0-1.0" ]
30
2017-05-25T00:41:45.000Z
2017-09-15T23:27:45.000Z
emailpal/tests/test_views.py
18F/django-email-pal
7471342741d814d19713d4353a3f566e490177a4
[ "CC0-1.0" ]
2
2017-05-25T17:30:30.000Z
2021-02-14T11:32:33.000Z
import pytest from django.conf.urls import include, url from django.test import Client, override_settings from .util import all_template_engines from .test_sendable_email import MY_SENDABLE_EMAIL urlpatterns = [ url(r'^examples/', include('emailpal.urls')), ] @pytest.fixture def client(): with override_setti...
31.428571
72
0.731818
170
1,320
5.429412
0.358824
0.070423
0.065005
0.108342
0.388949
0.355363
0.290358
0.197183
0.12351
0.12351
0
0.016144
0.155303
1,320
41
73
32.195122
0.811659
0
0
0.1
0
0
0.116667
0
0
0
0
0
0.233333
1
0.166667
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a57546dcf10db7ae680036449e4ff2d0de0b36d3
2,328
py
Python
employee-management/app.py
desitomato/flask-docker
03dadddfbda478180554f3364e91af41b72dce87
[ "MIT" ]
null
null
null
employee-management/app.py
desitomato/flask-docker
03dadddfbda478180554f3364e91af41b72dce87
[ "MIT" ]
null
null
null
employee-management/app.py
desitomato/flask-docker
03dadddfbda478180554f3364e91af41b72dce87
[ "MIT" ]
null
null
null
import os from flask import Flask, request, jsonify from flask_restful import Api from resources.company import Company, Companylist from resources.employee import Employee, EmployeeList from db import db from resources.user import UserRegister, UserLogin, UserLogout app = Flask(__name__) app.config['SQLALCHEMY_DATABA...
25.582418
91
0.668814
278
2,328
5.399281
0.273381
0.027981
0.06529
0.041972
0.247169
0.181879
0.117255
0.117255
0.091939
0.091939
0
0.012678
0.186856
2,328
90
92
25.866667
0.780243
0.011598
0
0
0
0
0.203476
0.125767
0
0
0
0
0
1
0.04
false
0
0.28
0
0.32
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
a57859ecd89b9b31c6238458c1c3953448a728df
1,234
py
Python
leetcode/31.py
sputnikW/algorithm
2c9412d7fc4fdb7f71c31ee3310833014272f0c9
[ "MIT" ]
null
null
null
leetcode/31.py
sputnikW/algorithm
2c9412d7fc4fdb7f71c31ee3310833014272f0c9
[ "MIT" ]
null
null
null
leetcode/31.py
sputnikW/algorithm
2c9412d7fc4fdb7f71c31ee3310833014272f0c9
[ "MIT" ]
null
null
null
class Solution: def nextPermutation(self, nums: List[int]) -> None: """ Do not return anything, modify nums in-place instead. """ lenNums = len(nums) if lenNums == 1: return maxFromTail = -1 for i in range(lenNums - 2, -1, -1): maxFro...
30.097561
80
0.423015
131
1,234
3.984733
0.419847
0.047893
0.05364
0
0
0
0
0
0
0
0
0.022082
0.486224
1,234
41
81
30.097561
0.801262
0.157212
0
0.111111
0
0
0
0
0
0
0
0
0
1
0.037037
false
0
0
0
0.185185
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a57e42b92567d730da83f49a7ddb9cffb40477e6
28,338
py
Python
ipm.py
AVilezhaninov/STM32_IAR_ProjectManager
906c34c70715d5ceec4937fb8d9705318017b3e9
[ "MIT" ]
null
null
null
ipm.py
AVilezhaninov/STM32_IAR_ProjectManager
906c34c70715d5ceec4937fb8d9705318017b3e9
[ "MIT" ]
4
2017-03-10T13:06:46.000Z
2017-03-10T13:24:00.000Z
ipm.py
AVilezhaninov/STM32_IAR_ProjectManager
906c34c70715d5ceec4937fb8d9705318017b3e9
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # MIT License # Copyright (c) 2017 Aleksey Vilezhaninov # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # t...
38.979367
80
0.571071
3,087
28,338
5.021056
0.108196
0.042774
0.048774
0.019355
0.522903
0.432129
0.379484
0.33871
0.307355
0.271161
0
0.005298
0.260639
28,338
726
81
39.033058
0.734488
0.158374
0
0.37931
0
0.002028
0.25908
0.03552
0.004057
0
0
0
0
1
0.034483
false
0
0.010142
0
0.052738
0.006085
0
0
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
a57fff444e34ab3085f258b8aa57323a8f86efde
1,683
py
Python
Exercicios/Exercicio070.py
RicardoMart922/estudo_Python
cb595c2a5e5aee568b6afa71b3ed9dd9cb7eef72
[ "MIT" ]
null
null
null
Exercicios/Exercicio070.py
RicardoMart922/estudo_Python
cb595c2a5e5aee568b6afa71b3ed9dd9cb7eef72
[ "MIT" ]
null
null
null
Exercicios/Exercicio070.py
RicardoMart922/estudo_Python
cb595c2a5e5aee568b6afa71b3ed9dd9cb7eef72
[ "MIT" ]
null
null
null
# Crie um programa que leia a idade e o sexo de várias pessoas. A cada pessoa cadastrada, o programa deverá perguntar se o usuário quer ou não continuar. No final, mostre: # A) Quantas pessoas tem mais de 18 anos. # B) Quantos homens foram cadastrados. # C) Quantas mulheres tem menos de 20 anos. maisdezoito = 0 qtdmul...
35.0625
172
0.62448
242
1,683
4.342975
0.322314
0.022835
0.030447
0.045671
0.202664
0.150333
0.066603
0.066603
0
0
0
0.026677
0.265003
1,683
48
173
35.0625
0.822959
0.171717
0
0.209302
0
0
0.394245
0
0
0
0
0
0
1
0
false
0
0
0
0
0.232558
0
0
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
a583106bd0bb53ab734f77ad352678e3fedf5e53
3,050
py
Python
tests/test_entry.py
anaulin/tasks.py
aa05b4194ff6b01061e6842520752da515e625d6
[ "MIT" ]
null
null
null
tests/test_entry.py
anaulin/tasks.py
aa05b4194ff6b01061e6842520752da515e625d6
[ "MIT" ]
2
2020-06-30T20:05:59.000Z
2020-08-01T03:42:20.000Z
tests/test_entry.py
anaulin/tasks.py
aa05b4194ff6b01061e6842520752da515e625d6
[ "MIT" ]
null
null
null
import filecmp import shutil import tempfile import os from .context import entry TEST_ENTRY = os.path.join(os.path.dirname(__file__), "test_entry.md") TEST_ENTRY_CONTENT = """ Some content. ## A section in the content Content that looks like frontmatter: ``` +++ but this is not really frontmatter +++ ``` More c...
30.19802
92
0.635082
411
3,050
4.486618
0.177616
0.060738
0.052061
0.069414
0.708243
0.670282
0.602495
0.602495
0.602495
0.537419
0
0.004193
0.218033
3,050
100
93
30.5
0.768973
0
0
0.363636
0
0
0.300328
0.02623
0
0
0
0
0.155844
1
0.103896
false
0
0.064935
0
0.168831
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
a585ab12f199b6ce2a2bd25bb26ea5865e4f682d
9,190
py
Python
nnaps/mesa/compress_mesa.py
vosjo/nnaps
bc4aac715b511c5df897ef24fb953ad7265927ea
[ "MIT" ]
4
2020-09-24T12:55:58.000Z
2021-05-19T14:46:10.000Z
nnaps/mesa/compress_mesa.py
vosjo/nnaps
bc4aac715b511c5df897ef24fb953ad7265927ea
[ "MIT" ]
4
2021-06-02T09:28:35.000Z
2021-06-04T08:32:24.000Z
nnaps/mesa/compress_mesa.py
vosjo/nnaps
bc4aac715b511c5df897ef24fb953ad7265927ea
[ "MIT" ]
3
2020-10-05T13:18:27.000Z
2021-06-02T09:29:11.000Z
import os from pathlib import Path import numpy as np # repack_fields is necessary since np 1.16 as selecting columns from a recarray returns an array with padding # that is difficult to work with afterwards. from numpy.lib import recfunctions as rf from nnaps.mesa import fileio from nnaps import __version__ def re...
38.291667
120
0.586507
1,159
9,190
4.482312
0.235548
0.038114
0.027526
0.036959
0.208277
0.192878
0.179596
0.150337
0.110298
0.077575
0
0.015726
0.328836
9,190
239
121
38.451883
0.826524
0.214146
0
0.280255
0
0
0.054008
0.003376
0
0
0
0.004184
0
1
0.025478
false
0
0.038217
0
0.089172
0.044586
0
0
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
a58a9d34b89b4bc4bc0e0b2929228a0dbbb74a83
1,379
py
Python
jakso_ml/training_data/white_balancer.py
JaksoSoftware/jakso-ml
5720ea557ca2fcf9ae16e329c198acd8e31258c4
[ "MIT" ]
null
null
null
jakso_ml/training_data/white_balancer.py
JaksoSoftware/jakso-ml
5720ea557ca2fcf9ae16e329c198acd8e31258c4
[ "MIT" ]
3
2020-09-25T18:40:52.000Z
2021-08-25T14:44:30.000Z
jakso_ml/training_data/white_balancer.py
JaksoSoftware/jakso-ml
5720ea557ca2fcf9ae16e329c198acd8e31258c4
[ "MIT" ]
null
null
null
import random, copy import cv2 as cv import numpy as np from scipy import interpolate from .augmenter import Augmenter class WhiteBalancer(Augmenter): ''' Augmenter that randomly changes the white balance of the SampleImages. ''' def __init__( self, min_red_rand, max_red_rand, min_blue_rand, ...
25.072727
81
0.658448
224
1,379
3.78125
0.28125
0.066116
0.047226
0.049587
0.173554
0.088548
0
0
0
0
0
0.040338
0.226976
1,379
54
82
25.537037
0.754221
0.050761
0
0
0
0
0
0
0
0
0
0
0
1
0.073171
false
0
0.121951
0
0.268293
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
a590274916afd797594033b1e72a778f82d65211
4,415
py
Python
src/algorithms/tcn_utils/tcn_model.py
pengkangzaia/mvts-ano-eval
976ffa2f151c8f91ce007e9a455bb4f97f89f2c9
[ "MIT" ]
24
2021-09-04T08:51:55.000Z
2022-03-30T16:45:54.000Z
src/algorithms/tcn_utils/tcn_model.py
pengkangzaia/mvts-ano-eval
976ffa2f151c8f91ce007e9a455bb4f97f89f2c9
[ "MIT" ]
3
2021-10-12T02:34:34.000Z
2022-03-18T10:37:35.000Z
src/algorithms/tcn_utils/tcn_model.py
pengkangzaia/mvts-ano-eval
976ffa2f151c8f91ce007e9a455bb4f97f89f2c9
[ "MIT" ]
15
2021-09-18T03:41:02.000Z
2022-03-21T09:03:01.000Z
import torch import torch.nn as nn from torch.nn.utils import weight_norm """TCN adapted from https://github.com/locuslab/TCN""" class Chomp1d(nn.Module): def __init__(self, chomp_size): super(Chomp1d, self).__init__() self.chomp_size = chomp_size def forward(self, x): return x[:, :, ...
39.070796
110
0.59479
543
4,415
4.639042
0.151013
0.03811
0.025407
0.047638
0.630012
0.590711
0.5526
0.529575
0.529575
0.529575
0
0.02859
0.294904
4,415
112
111
39.419643
0.780597
0
0
0.505618
0
0
0
0
0
0
0
0
0
1
0.134831
false
0
0.033708
0.033708
0.280899
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
a591a1103146cfd95f29ba55d7e7f556a915a79a
1,868
py
Python
static/file/2021-04-10/index.py
yuguo97/nest-node
a3d6cb99005403691779c44a488e3b22f5479538
[ "MIT" ]
null
null
null
static/file/2021-04-10/index.py
yuguo97/nest-node
a3d6cb99005403691779c44a488e3b22f5479538
[ "MIT" ]
null
null
null
static/file/2021-04-10/index.py
yuguo97/nest-node
a3d6cb99005403691779c44a488e3b22f5479538
[ "MIT" ]
null
null
null
''' Author: your name Date: 2021-04-08 17:14:41 LastEditTime: 2021-04-09 09:13:28 LastEditors: Please set LastEditors Description: In User Settings Edit FilePath: \github\test\index.py ''' #!user/bin/env python3 # -*- coding: utf-8 -*- import psutil cpu_info = {'user': 0, 'system': 0, 'idle': 0, 'percent': 0} memo...
26.685714
75
0.646681
270
1,868
4.207407
0.288889
0.079225
0.049296
0.022887
0
0
0
0
0
0
0
0.02961
0.204497
1,868
69
76
27.072464
0.734859
0.14561
0
0
0
0
0.116352
0
0
0
0
0
0
1
0.068182
false
0
0.022727
0
0.090909
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
a5924218bd91ec5cd3a910146334e0e5acd39d37
1,592
py
Python
SS/p202.py
MTandHJ/leetcode
f3832ed255d259cb881666ec8bd3de090d34e883
[ "MIT" ]
null
null
null
SS/p202.py
MTandHJ/leetcode
f3832ed255d259cb881666ec8bd3de090d34e883
[ "MIT" ]
null
null
null
SS/p202.py
MTandHJ/leetcode
f3832ed255d259cb881666ec8bd3de090d34e883
[ "MIT" ]
null
null
null
""" 编写一个算法来判断一个数 n 是不是快乐数。 「快乐数」定义为: 对于一个正整数,每一次将该数替换为它每个位置上的数字的平方和。 然后重复这个过程直到这个数变为 1,也可能是 无限循环 但始终变不到 1。 如果 可以变为  1,那么这个数就是快乐数。 如果 n 是快乐数就返回 true ;不是,则返回 false 。 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/happy-number 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。 """ from typing import List class Solution: de...
21.808219
53
0.523241
194
1,592
4.190722
0.458763
0.04428
0.03936
0.056581
0.186962
0.137761
0.086101
0.086101
0
0
0
0.01996
0.370603
1,592
72
54
22.111111
0.791417
0.251884
0
0.263158
0
0
0.006814
0
0
0
0
0
0
1
0.131579
false
0
0.026316
0.026316
0.394737
0.026316
0
0
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
a5964514746ca9cd43f5272151dd592b02ad5040
2,309
py
Python
UI/UIObject.py
R2D2Hud/CharlieOSX
37c4edb0b31eda8082acd8e31afc3dc85fd75abe
[ "MIT" ]
12
2020-04-11T13:10:14.000Z
2022-03-24T09:12:54.000Z
UI/UIObject.py
R2D2Hud/CharlieOSX
37c4edb0b31eda8082acd8e31afc3dc85fd75abe
[ "MIT" ]
14
2020-01-24T14:07:45.000Z
2020-12-20T19:14:04.000Z
UI/UIObject.py
R2D2Hud/CharlieOSX
37c4edb0b31eda8082acd8e31afc3dc85fd75abe
[ "MIT" ]
11
2020-06-19T20:12:43.000Z
2021-04-25T05:02:20.000Z
from profileHelper import ProfileHelper from pybricks.parameters import Button, Color from pybricks.media.ev3dev import Image, ImageFile, Font, SoundFile # from UI.tools import Box class UIObject: def __init__(self, name: str, brick: EV3Brick, bounds: Box, contentType, content, padding=(0, 0, False), font=Font(f...
37.241935
159
0.603725
292
2,309
4.736301
0.260274
0.079537
0.065076
0.068691
0.232827
0.232827
0.164136
0.164136
0.164136
0.164136
0
0.011557
0.288003
2,309
61
160
37.852459
0.829684
0.019489
0
0.142857
0
0
0.00973
0
0
0
0
0
0
1
0.163265
false
0.020408
0.061224
0.040816
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
a59648f6d46920ef327bbe7ce9659f9fe533785d
9,558
py
Python
factory.py
rosinality/vision-transformers-pytorch
b884b5da79900c96e4ce17fbb575cf1c5cb3cd5f
[ "MIT" ]
77
2021-04-03T06:44:19.000Z
2021-07-07T07:05:01.000Z
factory.py
rosinality/vision-transformers-pytorch
b884b5da79900c96e4ce17fbb575cf1c5cb3cd5f
[ "MIT" ]
1
2021-04-08T06:59:41.000Z
2021-04-08T11:20:32.000Z
factory.py
rosinality/vision-transformers-pytorch
b884b5da79900c96e4ce17fbb575cf1c5cb3cd5f
[ "MIT" ]
6
2021-04-15T13:36:37.000Z
2022-02-03T12:32:20.000Z
import os from types import SimpleNamespace import torch from torch.utils.data import DataLoader from torchvision import transforms from PIL import Image import numpy as np from tensorfn import distributed as dist, nsml, get_logger try: from nvidia.dali.pipeline import Pipeline from nvidia.dali im...
29.319018
89
0.643022
1,110
9,558
5.301802
0.188288
0.019031
0.024299
0.013254
0.383517
0.361767
0.28938
0.267969
0.247409
0.185557
0
0.0136
0.261456
9,558
325
90
29.409231
0.820088
0.00136
0
0.25
0
0
0.066175
0.01215
0
0
0
0
0
1
0.077869
false
0.012295
0.065574
0.004098
0.22541
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
a596a50f47d0ab9d4cfb1eb2e63d7c4e56340474
1,137
py
Python
Easy/1207.UniqueNumberofOccurrences.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
39
2020-07-04T11:15:13.000Z
2022-02-04T22:33:42.000Z
Easy/1207.UniqueNumberofOccurrences.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
1
2020-07-15T11:53:37.000Z
2020-07-15T11:53:37.000Z
Easy/1207.UniqueNumberofOccurrences.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
20
2020-07-14T19:12:53.000Z
2022-03-02T06:28:17.000Z
""" Given an array of integers arr, write a function that returns true if and only if the number of occurrences of each value in the array is unique. Example: Input: arr = [1,2,2,1,1,3] Output: true Explanation: The value 1 has 3 occurrences, 2 has 2 and 3 has 1. No two value...
29.153846
104
0.60774
175
1,137
3.948571
0.474286
0.04631
0.109986
0.04631
0.251809
0.156295
0.156295
0.156295
0.156295
0
0
0.078721
0.28496
1,137
38
105
29.921053
0.771218
0.689534
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a598b26fe309d9bc4db6c62f8d0ba413c791f7b0
9,360
py
Python
Playground3/src/playground/network/devices/pnms/PNMSDevice.py
kandarpck/networksecurity2018
dafe2ee8d39bd9596b1ce3fbc8b50ca645bcd626
[ "MIT" ]
3
2018-10-25T16:03:53.000Z
2019-06-13T15:24:41.000Z
Playground3/src/playground/network/devices/pnms/PNMSDevice.py
kandarpck/networksecurity2018
dafe2ee8d39bd9596b1ce3fbc8b50ca645bcd626
[ "MIT" ]
null
null
null
Playground3/src/playground/network/devices/pnms/PNMSDevice.py
kandarpck/networksecurity2018
dafe2ee8d39bd9596b1ce3fbc8b50ca645bcd626
[ "MIT" ]
null
null
null
from playground.common.os import isPidAlive from playground.common import CustomConstant as Constant from .NetworkManager import NetworkManager, ConnectionDeviceAPI, RoutesDeviceAPI import os, signal, time class PNMSDeviceLoader(type): """ This metaclass for PNMS device types auto loads concrete devic...
39.327731
119
0.583761
912
9,360
5.83114
0.258772
0.033847
0.046446
0.026326
0.263445
0.215307
0.183904
0.163595
0.098909
0.050395
0
0.001789
0.343056
9,360
238
120
39.327731
0.863067
0.094017
0
0.340909
0
0
0.029059
0
0
0
0
0.004202
0
1
0.147727
false
0.028409
0.022727
0.028409
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a59a37e3de5885e67c006743f177528505c3b6da
3,315
py
Python
core/eval.py
lmkoch/subgroup-shift-detection
31971704dc4a768db5e082e6e37a504f4e245224
[ "MIT" ]
null
null
null
core/eval.py
lmkoch/subgroup-shift-detection
31971704dc4a768db5e082e6e37a504f4e245224
[ "MIT" ]
null
null
null
core/eval.py
lmkoch/subgroup-shift-detection
31971704dc4a768db5e082e6e37a504f4e245224
[ "MIT" ]
1
2022-01-26T09:54:41.000Z
2022-01-26T09:54:41.000Z
import os import pandas as pd import numpy as np from core.dataset import dataset_fn from core.model import model_fn, get_classification_model from core.mmdd import trainer_object_fn from core.muks import muks def stderr_proportion(p, n): return np.sqrt(p * (1-p) / n) def eval(exp_dir, exp_name, param...
41.4375
112
0.574962
397
3,315
4.554156
0.284635
0.049779
0.022124
0.031527
0.289823
0.266593
0.143805
0.084071
0.042035
0
0
0.021478
0.297738
3,315
79
113
41.962025
0.755155
0.161086
0
0.043478
0
0
0.154043
0.023783
0
0
0
0
0
1
0.043478
false
0
0.152174
0.021739
0.217391
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a59c22cef1a85002b71aba681bd1b6e2ffee762e
7,344
py
Python
absolv/tests/test_models.py
SimonBoothroyd/absolv
dedb2b6eb567ec1b627dbe50f36f68e0c32931c4
[ "MIT" ]
null
null
null
absolv/tests/test_models.py
SimonBoothroyd/absolv
dedb2b6eb567ec1b627dbe50f36f68e0c32931c4
[ "MIT" ]
30
2021-11-02T12:47:24.000Z
2022-03-01T22:00:39.000Z
absolv/tests/test_models.py
SimonBoothroyd/absolv
dedb2b6eb567ec1b627dbe50f36f68e0c32931c4
[ "MIT" ]
null
null
null
import numpy import pytest from openmm import unit from pydantic import ValidationError from absolv.models import ( DeltaG, EquilibriumProtocol, MinimizationProtocol, SimulationProtocol, State, SwitchingProtocol, System, TransferFreeEnergyResult, ) from absolv.tests import is_close cl...
30.473029
90
0.631672
984
7,344
4.428862
0.142276
0.035337
0.05966
0.022487
0.560119
0.479807
0.429555
0.41464
0.404773
0.327214
0
0.037356
0.2564
7,344
240
91
30.6
0.760667
0
0
0.216374
0
0.011696
0.053649
0.006536
0
0
0
0
0.181287
1
0.134503
false
0
0.035088
0.005848
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a5a08838db67fdc32c63308d4dd034cb11ff2a45
3,745
py
Python
src/FSG/WordEmbedding.py
handsomebrothers/Callback2Vec
370adbcfcc229d385ba9c8c581489b703a39ca85
[ "MIT" ]
null
null
null
src/FSG/WordEmbedding.py
handsomebrothers/Callback2Vec
370adbcfcc229d385ba9c8c581489b703a39ca85
[ "MIT" ]
null
null
null
src/FSG/WordEmbedding.py
handsomebrothers/Callback2Vec
370adbcfcc229d385ba9c8c581489b703a39ca85
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import multiprocessing from gensim.models import Word2Vec import csv def embedding_sentences(sentences, embedding_size = 64, window = 3, min_count = 0, file_to_load = None, file_to_save = None): ''' embeding_size Word Embedding Dimension window : Context window min_count : Word f...
40.706522
149
0.687316
522
3,745
4.681992
0.233716
0.040507
0.03437
0.040917
0.380115
0.295008
0.295008
0.270458
0.270458
0.270458
0
0.016661
0.230708
3,745
91
150
41.153846
0.831656
0.223765
0
0.333333
0
0
0.069435
0.063852
0
0
0
0
0
1
0.125
false
0
0.041667
0.013889
0.291667
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a5a1b481c21e6820b7064b6612f4c7a3b1370fc4
10,914
py
Python
hearthstone/player.py
dianarvp/stone_ground_hearth_battles
450e70eaef21b543be579a6d696676fb148a99b0
[ "Apache-2.0" ]
null
null
null
hearthstone/player.py
dianarvp/stone_ground_hearth_battles
450e70eaef21b543be579a6d696676fb148a99b0
[ "Apache-2.0" ]
null
null
null
hearthstone/player.py
dianarvp/stone_ground_hearth_battles
450e70eaef21b543be579a6d696676fb148a99b0
[ "Apache-2.0" ]
null
null
null
import itertools import typing from collections import defaultdict from typing import Optional, List, Callable, Type from hearthstone.cards import MonsterCard, CardEvent, Card from hearthstone.events import BuyPhaseContext, EVENTS from hearthstone.hero import EmptyHero from hearthstone.monster_types import MONSTER_TYP...
38.702128
133
0.660711
1,390
10,914
4.988489
0.133094
0.047592
0.024517
0.0212
0.287424
0.197
0.096914
0.07182
0.063744
0.063744
0
0.004618
0.246014
10,914
281
134
38.839858
0.838012
0.047645
0
0.13964
0
0
0.008191
0
0
0
0
0.003559
0.045045
1
0.175676
false
0.004505
0.054054
0.063063
0.369369
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
a5a2a13b3d7e2462a415df9e5bf700f91ae466fd
12,743
py
Python
PyStationB/libraries/ABEX/abex/optimizers/zoom_optimizer.py
BrunoKM/station-b-libraries
ea3591837e4a33f0bef789d905467754c27913b3
[ "MIT" ]
6
2021-09-29T15:46:55.000Z
2021-12-14T18:39:51.000Z
PyStationB/libraries/ABEX/abex/optimizers/zoom_optimizer.py
BrunoKM/station-b-libraries
ea3591837e4a33f0bef789d905467754c27913b3
[ "MIT" ]
null
null
null
PyStationB/libraries/ABEX/abex/optimizers/zoom_optimizer.py
BrunoKM/station-b-libraries
ea3591837e4a33f0bef789d905467754c27913b3
[ "MIT" ]
3
2021-09-27T10:35:20.000Z
2021-10-02T17:53:07.000Z
# ------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # ----------------------------------------------------------------------...
41.106452
120
0.697167
1,753
12,743
4.928694
0.225328
0.041667
0.017824
0.005208
0.101157
0.067824
0.042824
0.017593
0.008796
0
0
0.004593
0.214078
12,743
309
121
41.239482
0.858113
0.502943
0
0.037037
0
0
0.101893
0.013011
0
0
0
0
0.027778
1
0.101852
false
0
0.083333
0
0.305556
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
a5a44f9a6a387924ac0536e279f50da03dd8ba3f
1,146
py
Python
Labs/lab4/l4e3.py
felixchiasson/ITI1520
4208904bf7576433313524ebd1c1bdb9f49277f2
[ "MIT" ]
null
null
null
Labs/lab4/l4e3.py
felixchiasson/ITI1520
4208904bf7576433313524ebd1c1bdb9f49277f2
[ "MIT" ]
null
null
null
Labs/lab4/l4e3.py
felixchiasson/ITI1520
4208904bf7576433313524ebd1c1bdb9f49277f2
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 ############################################################################### # File Name : l4e3.py # Created By : Félix Chiasson (7138723) # Creation Date : [2015-10-06 11:43] # Last Modified : [2015-10-06 11:56] # Description...
35.8125
79
0.447644
123
1,146
4.170732
0.634146
0.062378
0.05848
0.087719
0.074074
0
0
0
0
0
0
0.062176
0.326353
1,146
31
80
36.967742
0.602332
0.251309
0
0
0
0
0.242775
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.1
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a5a4a070bcfd5efb385e2904922ea624312e4682
2,984
py
Python
python/datamongo/text/dmo/text_query_windower.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/datamongo/text/dmo/text_query_windower.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/datamongo/text/dmo/text_query_windower.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- import string import pandas as pd from pandas import DataFrame from base import BaseObject class TextQueryWindower(BaseObject): """ Window Text Query Results """ __exclude = set(string.punctuation) def __init__(self, query_results: d...
25.947826
103
0.499665
338
2,984
4.233728
0.349112
0.050314
0.044724
0.025157
0.051712
0
0
0
0
0
0
0.014811
0.389075
2,984
114
104
26.175439
0.770159
0.154826
0
0.032258
0
0
0.018692
0
0
0
0
0
0
1
0.129032
false
0
0.064516
0.032258
0.387097
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
a5a553d43dc2a036ccb015ad21d1dcf2af2ae50c
640
py
Python
hackerrank/interview_prep/making_anagrams.py
luojxxx/CodingPractice
bac357aaddbda8e6e73a49c36f2eefd4304b336d
[ "MIT" ]
null
null
null
hackerrank/interview_prep/making_anagrams.py
luojxxx/CodingPractice
bac357aaddbda8e6e73a49c36f2eefd4304b336d
[ "MIT" ]
null
null
null
hackerrank/interview_prep/making_anagrams.py
luojxxx/CodingPractice
bac357aaddbda8e6e73a49c36f2eefd4304b336d
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/ctci-making-anagrams from collections import Counter def number_needed(a, b): aCounts = Counter(a) bCounts = Counter(b) aSet = set(aCounts) bSet = set(bCounts) similar = aSet.intersection(bSet) differences = aSet.symmetric_difference(bSet) matchingK...
29.090909
83
0.678125
72
640
6
0.513889
0.046296
0.037037
0
0
0
0
0
0
0
0
0.002028
0.229688
640
22
84
29.090909
0.874239
0.090625
0
0
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.1875
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
a5a5adab4d37dc9f239bb54f261403d5485bdb40
803
py
Python
DongbinNa/19/pt4.py
wonnerky/coteMaster
360e491e6342c1ee42ff49750b838a2ead865613
[ "Apache-2.0" ]
null
null
null
DongbinNa/19/pt4.py
wonnerky/coteMaster
360e491e6342c1ee42ff49750b838a2ead865613
[ "Apache-2.0" ]
null
null
null
DongbinNa/19/pt4.py
wonnerky/coteMaster
360e491e6342c1ee42ff49750b838a2ead865613
[ "Apache-2.0" ]
null
null
null
n = int(input()) numbers = list(map(int, input().split())) add, sub, mul, div = map(int, input().split()) def dfs(now, i): global max_num, min_num, add, sub, mul, div if i == n: max_num = max(max_num, now) min_num = min(min_num, now) else: if add > 0: add -= 1...
22.305556
48
0.414695
115
803
2.808696
0.217391
0.092879
0.136223
0.148607
0.198142
0.157895
0.157895
0
0
0
0
0.049107
0.442092
803
35
49
22.942857
0.671875
0
0
0
0
0
0
0
0
0
0
0
0
1
0.033333
false
0
0
0
0.033333
0.066667
0
0
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
a5a81b703f6ebb1da895acb3224ef4edc9e40b99
19,141
py
Python
Graded/G3/slam/EKFSLAM.py
chrstrom/TTK4250
f453c3a59597d3fe6cff7d35b790689919798b94
[ "Unlicense" ]
null
null
null
Graded/G3/slam/EKFSLAM.py
chrstrom/TTK4250
f453c3a59597d3fe6cff7d35b790689919798b94
[ "Unlicense" ]
null
null
null
Graded/G3/slam/EKFSLAM.py
chrstrom/TTK4250
f453c3a59597d3fe6cff7d35b790689919798b94
[ "Unlicense" ]
null
null
null
from typing import Tuple import numpy as np from numpy import ndarray from dataclasses import dataclass, field from scipy.linalg import block_diag import scipy.linalg as la from utils import rotmat2d from JCBB import JCBB import utils import solution @dataclass class EKFSLAM: Q: ndarray R: ndarray do_asso...
35.77757
141
0.539575
2,612
19,141
3.898162
0.174962
0.067177
0.02475
0.020625
0.281281
0.236005
0.209586
0.199371
0.181006
0.152622
0
0.023466
0.340996
19,141
534
142
35.844569
0.783732
0.373021
0
0.171429
0
0
0.100321
0.006052
0
0
0
0.003745
0.118367
1
0.040816
false
0.004082
0.040816
0
0.146939
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
a5a924ddb3332cd660e8de578d9b220740f27184
3,185
py
Python
pykob/audio.py
Greg-R/PyKOB
fd3c7ca352f900bd14bb10dc71d567221a8af8cf
[ "MIT" ]
3
2020-06-29T19:59:39.000Z
2021-02-08T19:56:32.000Z
pykob/audio.py
Greg-R/PyKOB
fd3c7ca352f900bd14bb10dc71d567221a8af8cf
[ "MIT" ]
197
2020-04-30T08:08:52.000Z
2021-03-22T19:10:20.000Z
pykob/audio.py
MorseKOB/pykob-4
bf86917e4e06ce9590f414ace0eacbde08416137
[ "MIT" ]
2
2021-04-17T01:05:24.000Z
2021-11-03T16:43:53.000Z
""" MIT License Copyright (c) 2020 PyKOB - MorseKOB in Python Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, me...
32.5
82
0.706122
423
3,185
5.231678
0.477541
0.039765
0.02169
0.028468
0.025305
0
0
0
0
0
0
0.006352
0.209105
3,185
97
83
32.835052
0.872172
0.358242
0
0.035088
0
0
0.063797
0
0
0
0
0
0
1
0.035088
false
0
0.070175
0
0.122807
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
a5ac9cd651f965f113812d5a35b9a777736d390b
3,492
py
Python
{{ cookiecutter.project_slug }}/{{ cookiecutter.package_name }}/strategies/resource.py
EMMC-ASBL/oteapi-plugin-template
31a772a4fb9be6eafabfa206fe6e7a23516bf188
[ "MIT" ]
null
null
null
{{ cookiecutter.project_slug }}/{{ cookiecutter.package_name }}/strategies/resource.py
EMMC-ASBL/oteapi-plugin-template
31a772a4fb9be6eafabfa206fe6e7a23516bf188
[ "MIT" ]
35
2022-01-17T10:23:01.000Z
2022-03-11T19:41:36.000Z
{{ cookiecutter.project_slug }}/{{ cookiecutter.package_name }}/strategies/resource.py
EMMC-ASBL/oteapi-plugin-template
31a772a4fb9be6eafabfa206fe6e7a23516bf188
[ "MIT" ]
2
2022-01-20T06:45:27.000Z
2022-02-09T15:59:21.000Z
"""Demo resource strategy class.""" # pylint: disable=no-self-use,unused-argument from typing import TYPE_CHECKING, Optional from oteapi.models import AttrDict, DataCacheConfig, ResourceConfig, SessionUpdate from oteapi.plugins import create_strategy from pydantic import Field from pydantic.dataclasses import dataclas...
29.846154
86
0.665521
362
3,492
6.350829
0.337017
0.034798
0.034798
0.029578
0.275772
0.240974
0.240974
0.174859
0.140061
0.140061
0
0
0.248568
3,492
116
87
30.103448
0.876143
0.30756
0
0.037037
0
0
0.173835
0.015233
0
0
0
0
0
1
0.037037
false
0
0.111111
0
0.37037
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
a5b066bc7defe004716762bdcddd92dae0d3fd15
876
py
Python
BaseKnowledge/file/file.py
Kose-i/python_test
d7b031aa33d699aeb9fe196fe0a6d216aa006f0d
[ "Unlicense" ]
null
null
null
BaseKnowledge/file/file.py
Kose-i/python_test
d7b031aa33d699aeb9fe196fe0a6d216aa006f0d
[ "Unlicense" ]
null
null
null
BaseKnowledge/file/file.py
Kose-i/python_test
d7b031aa33d699aeb9fe196fe0a6d216aa006f0d
[ "Unlicense" ]
null
null
null
#! /usr/bin/env python3 def func1(): f = open("test.txt", 'w') f.write("This is test") f.close() def func2(): with open("test.txt", 'r') as f: print(f.read()) import codecs def func3(): f = codecs.open("test.txt", 'w', 'utf-8', 'ignore') f.write("test func3") f.close() import os.path def func4(): ...
16.528302
53
0.592466
125
876
4.088
0.456
0.054795
0.064579
0.046967
0
0
0
0
0
0
0
0.035961
0.174658
876
52
54
16.846154
0.670816
0.025114
0
0.069767
0
0
0.199297
0
0
0
0
0
0
1
0.162791
false
0
0.116279
0
0.27907
0.255814
0
0
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
a5b4efb9c597491e24e7c42cb5dac380b74e6e91
702
py
Python
apps/billing/tasks.py
banyanbbt/banyan_data
4ce87dc1c49920d587a472b70842fcf5b3d9a3d2
[ "MIT" ]
2
2018-09-08T05:16:39.000Z
2018-09-10T02:50:31.000Z
apps/billing/tasks.py
banyanbbt/banyan_data
4ce87dc1c49920d587a472b70842fcf5b3d9a3d2
[ "MIT" ]
null
null
null
apps/billing/tasks.py
banyanbbt/banyan_data
4ce87dc1c49920d587a472b70842fcf5b3d9a3d2
[ "MIT" ]
null
null
null
import logging from config.celery_configs import app from lib.sms import client as sms_client from lib.blockchain.pandora import Pandora from apps.user.models import UserProfile logger = logging.getLogger(__name__) @app.task def sync_monthly_billing(): logger.info("start sync_monthly_billing") accounts = Use...
23.4
45
0.763533
92
702
5.586957
0.380435
0.077821
0.105058
0.054475
0.474708
0.373541
0.264591
0.264591
0.264591
0.264591
0
0
0.156695
702
29
46
24.206897
0.868243
0
0
0.3
0
0
0.140401
0
0
0
0
0
0
1
0.1
false
0
0.25
0
0.35
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
a5b824b421e3455471988b500baaf9d0bcd0357a
4,981
py
Python
website/urls.py
pomo-mondreganto/CTForces-old
86758192f800108ff109f07fe155d5a98b4a3e14
[ "MIT" ]
null
null
null
website/urls.py
pomo-mondreganto/CTForces-old
86758192f800108ff109f07fe155d5a98b4a3e14
[ "MIT" ]
6
2021-10-01T14:18:34.000Z
2021-10-01T14:19:17.000Z
website/urls.py
pomo-mondreganto/CTForces-old
86758192f800108ff109f07fe155d5a98b4a3e14
[ "MIT" ]
null
null
null
from django.conf import settings from django.urls import path, re_path from django.views.static import serve from .views import * urlpatterns = [ re_path('^$', MainView.as_view(), name='main_view'), path('page/<int:page>/', MainView.as_view(), name='main_view_with_page'), re_path('^signup/$', UserRegistr...
54.736264
116
0.718932
666
4,981
5.018018
0.15015
0.102932
0.122681
0.051167
0.514961
0.429683
0.331239
0.162478
0.059246
0.059246
0
0
0.093957
4,981
90
117
55.344444
0.740527
0
0
0
0
0
0.429633
0.259787
0
0
0
0
0
1
0
false
0.030769
0.061538
0
0.061538
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
a5b8284d0679076f983319f40b4e3ceca65a28c5
1,372
py
Python
part2.py
Tiziana-I/project-covid-mask-classifier
e1619172656f8de92e8faae5dcb7437686f7ca5e
[ "MIT" ]
null
null
null
part2.py
Tiziana-I/project-covid-mask-classifier
e1619172656f8de92e8faae5dcb7437686f7ca5e
[ "MIT" ]
null
null
null
part2.py
Tiziana-I/project-covid-mask-classifier
e1619172656f8de92e8faae5dcb7437686f7ca5e
[ "MIT" ]
null
null
null
import numpy as np import cv2 import os cap = cv2.VideoCapture(0) #model=cv2.CascadeClassifier(os.path.join("haar-cascade-files","haarcascade_frontalface_default.xml")) smile=cv2.CascadeClassifier(os.path.join("haar-cascade-files","haarcascade_smile.xml")) #eye=cv2.CascadeClassifier(os.path.join("haar-cascade-files",...
38.111111
133
0.707726
213
1,372
4.455399
0.375587
0.063224
0.069547
0.082192
0.55216
0.55216
0.55216
0.55216
0.55216
0.371971
0
0.045416
0.133382
1,372
36
134
38.111111
0.752733
0.456268
0
0
0
0
0.066576
0.028533
0
0
0.005435
0
0
1
0
false
0
0.166667
0
0.166667
0.111111
0
0
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
a5b8565cb66fcfd69f346054d3bf2453f6824c71
1,371
py
Python
docs/commands.py
immersionroom/vee
2c6f781dc96e9028f2446777b906ca37dc2f4299
[ "BSD-3-Clause" ]
6
2017-11-05T02:44:10.000Z
2021-07-14T19:10:56.000Z
docs/commands.py
immersionroom/vee
2c6f781dc96e9028f2446777b906ca37dc2f4299
[ "BSD-3-Clause" ]
null
null
null
docs/commands.py
immersionroom/vee
2c6f781dc96e9028f2446777b906ca37dc2f4299
[ "BSD-3-Clause" ]
1
2017-01-31T23:10:09.000Z
2017-01-31T23:10:09.000Z
import os import sys from argparse import _SubParsersAction sys.path.append(os.path.abspath(os.path.join(__file__, '..', '..'))) from vee.commands.main import get_parser def get_sub_action(parser): for action in parser._actions: if isinstance(action, _SubParsersAction): return action pa...
18.527027
68
0.56674
157
1,371
4.707006
0.363057
0.073072
0.032476
0.048714
0.135318
0
0
0
0
0
0
0.00102
0.285193
1,371
73
69
18.780822
0.753061
0
0
0.173913
0
0
0.086194
0
0
0
0
0
0
1
0.021739
false
0
0.086957
0
0.130435
0.347826
0
0
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
a5bc2b0b89e7e05fdfc86ac8ee4661e2d1a71f8f
13,303
py
Python
thrift/clients.py
fabiobatalha/processing
f3ad99e161de2befc7908168bfd7843f988c379d
[ "BSD-2-Clause" ]
null
null
null
thrift/clients.py
fabiobatalha/processing
f3ad99e161de2befc7908168bfd7843f988c379d
[ "BSD-2-Clause" ]
null
null
null
thrift/clients.py
fabiobatalha/processing
f3ad99e161de2befc7908168bfd7843f988c379d
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 import os import thriftpy import json import logging from thriftpy.rpc import make_client from xylose.scielodocument import Article, Journal LIMIT = 1000 logger = logging.getLogger(__name__) ratchet_thrift = thriftpy.load( os.path.join(os.path.dirname(__file__))+'/ratchet.thrift') articlemeta_t...
29.496674
123
0.42622
1,008
13,303
5.390873
0.15873
0.031285
0.027604
0.020611
0.544718
0.493927
0.467243
0.410563
0.349466
0.323151
0
0.004057
0.48117
13,303
451
124
29.496674
0.783251
0.014057
0
0.423188
0
0
0.090608
0.001923
0
0
0
0
0
1
0.075362
false
0
0.017391
0.005797
0.171014
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
a5be28a44a12bd589d156a3a7d0bbad6c6678d9a
6,705
py
Python
src/pypsr.py
wagglefoot/TVAE
74f8c5413d3c0d8607af50ddb0d96c4c2d477261
[ "MIT" ]
22
2015-03-14T04:23:00.000Z
2022-03-24T03:29:22.000Z
src/pypsr.py
wagglefoot/TVAE
74f8c5413d3c0d8607af50ddb0d96c4c2d477261
[ "MIT" ]
null
null
null
src/pypsr.py
wagglefoot/TVAE
74f8c5413d3c0d8607af50ddb0d96c4c2d477261
[ "MIT" ]
15
2015-02-04T13:09:27.000Z
2022-03-24T03:29:24.000Z
from operator import sub import numpy as np from sklearn import metrics from sklearn.neighbors import NearestNeighbors from toolz import curry def global_false_nearest_neighbors(x, lag, min_dims=1, max_dims=10, **cutoffs): """ Across a range of embedding dimensions $d$, embeds $x(t)$ with lag $\tau$, finds a...
31.186047
113
0.631022
967
6,705
4.282316
0.240951
0.010142
0.01304
0.019319
0.242454
0.20285
0.177493
0.177493
0.177493
0.147549
0
0.01254
0.250708
6,705
214
114
31.331776
0.811704
0.537509
0
0.032258
0
0
0.069819
0
0
0
0
0
0
1
0.16129
false
0
0.080645
0.016129
0.387097
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
3c01c3ac689a157ca3b1ed4911d58fd47e935434
1,050
py
Python
local/make_fbank.py
coolEphemeroptera/AESRC2020
b64cdeeaaf74e8c1a741930b3a47dc8dcadca8de
[ "Apache-2.0" ]
35
2020-09-26T13:40:16.000Z
2022-03-22T19:42:20.000Z
local/make_fbank.py
coolEphemeroptera/ARNet
b64cdeeaaf74e8c1a741930b3a47dc8dcadca8de
[ "Apache-2.0" ]
4
2021-04-10T13:05:52.000Z
2022-03-14T03:22:32.000Z
local/make_fbank.py
coolEphemeroptera/ARNet
b64cdeeaaf74e8c1a741930b3a47dc8dcadca8de
[ "Apache-2.0" ]
7
2020-09-26T15:52:45.000Z
2021-06-11T05:05:23.000Z
import python_speech_features as psf import soundfile as sf # import scipy.io.wavfile as wav import pickle as pkl import sys import os import re # linux to windows 路径转换 def path_lin2win(path): pattern = "/[a-z]/" position = re.findall(pattern,path)[0][1].upper() return re.sub(pattern,"%s:/"%pos...
23.863636
97
0.631429
161
1,050
3.993789
0.484472
0.054432
0.046656
0
0
0
0
0
0
0
0
0.046341
0.219048
1,050
43
98
24.418605
0.737805
0.179048
0
0
0
0
0.028395
0
0
0
0
0
0
1
0.137931
false
0
0.206897
0.034483
0.448276
0.034483
0
0
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
3c0299abc0c111e544b5842dcd9b42f82f6088c5
1,344
py
Python
tests/__init__.py
jun-kai-xin/douban
989a797de467f5a9a8b77a05fa8242bebf657a51
[ "MIT" ]
null
null
null
tests/__init__.py
jun-kai-xin/douban
989a797de467f5a9a8b77a05fa8242bebf657a51
[ "MIT" ]
null
null
null
tests/__init__.py
jun-kai-xin/douban
989a797de467f5a9a8b77a05fa8242bebf657a51
[ "MIT" ]
null
null
null
def fake_response_from_file(file_name, url=None, meta=None): import os import codecs from scrapy.http import HtmlResponse, Request if not url: url = 'http://www.example.com' _meta = {'mid': 1291844, 'login': False} # 必要的信息,随便弄一个就行了 if meta: meta.update(_meta) else: ...
28.595745
78
0.590774
165
1,344
4.642424
0.333333
0.046997
0.039164
0.049608
0.4047
0.355091
0.180157
0.180157
0.180157
0.180157
0
0.019088
0.298363
1,344
46
79
29.217391
0.793213
0.021577
0
0.371429
0
0
0.041921
0
0
0
0
0
0
1
0.057143
false
0
0.142857
0
0.257143
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
3c045b5de4e55fe90b3f8563b224a0193ac2dff7
6,917
py
Python
stockBOT/Discord/fc_info.py
Chenct-jonathan/LokiHub
7193589151e88f4e66aee6457926e565d0023fa1
[ "MIT" ]
17
2020-11-25T07:40:18.000Z
2022-03-07T03:29:18.000Z
stockBOT/Discord/fc_info.py
Chenct-jonathan/LokiHub
7193589151e88f4e66aee6457926e565d0023fa1
[ "MIT" ]
8
2020-12-18T13:23:59.000Z
2021-10-03T21:41:50.000Z
stockBOT/Discord/fc_info.py
Chenct-jonathan/LokiHub
7193589151e88f4e66aee6457926e565d0023fa1
[ "MIT" ]
43
2020-12-02T09:03:57.000Z
2021-12-23T03:30:25.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- from bs4 import BeautifulSoup import requests from requests import post from requests import codes def information(symbol): URL = "https://goodinfo.tw/StockInfo/StockDetail.asp?STOCK_ID="+ symbol headers = {'user-agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit...
32.474178
134
0.675293
976
6,917
4.506148
0.128074
0.101864
0.089131
0.020009
0.359936
0.31719
0.28513
0.28513
0.28513
0.271942
0
0.031947
0.189967
6,917
213
135
32.474178
0.752989
0.006072
0
0.182432
0
0.027027
0.160774
0
0
0
0
0
0
1
0.027027
false
0
0.027027
0
0.081081
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
3c091171ce7d459ab7bdf55ac4292ac21cd0a68c
12,007
py
Python
custom_components/climate/gree.py
ardeus-ua/gree-python-api
ecfbdef34ff99fc0822f70be17cdeb6c625fd276
[ "MIT" ]
1
2018-12-10T17:32:48.000Z
2018-12-10T17:32:48.000Z
custom_components/climate/gree.py
ardeus-ua/gree-python-api
ecfbdef34ff99fc0822f70be17cdeb6c625fd276
[ "MIT" ]
null
null
null
custom_components/climate/gree.py
ardeus-ua/gree-python-api
ecfbdef34ff99fc0822f70be17cdeb6c625fd276
[ "MIT" ]
1
2020-08-11T14:51:04.000Z
2020-08-11T14:51:04.000Z
import asyncio import logging import binascii import socket import os.path import voluptuous as vol import homeassistant.helpers.config_validation as cv from homeassistant.components.climate import (DOMAIN, ClimateDevice, PLATFORM_SCHEMA, STATE_IDLE, STATE_HEAT, STATE_COOL, STATE_AUTO, STATE_DRY, SUPPORT_OPERATION_MOD...
34.404011
228
0.68077
1,500
12,007
5.082
0.132
0.022039
0.02217
0.034632
0.279942
0.206874
0.155844
0.101666
0.07884
0.072544
0
0.004437
0.230366
12,007
348
229
34.502874
0.820474
0.065795
0
0.143969
0
0
0.056301
0.002432
0
0
0
0
0
1
0.105058
false
0
0.058366
0
0.237354
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
3c0d77712915106228bf8f6e63542f7a42d1d3f1
1,602
py
Python
config.py
jasonyanglu/fedavgpy
cefbe5854f02d3df1197d849872286439c86e949
[ "MIT" ]
1
2022-03-18T15:27:29.000Z
2022-03-18T15:27:29.000Z
config.py
jasonyanglu/fedavgpy
cefbe5854f02d3df1197d849872286439c86e949
[ "MIT" ]
null
null
null
config.py
jasonyanglu/fedavgpy
cefbe5854f02d3df1197d849872286439c86e949
[ "MIT" ]
null
null
null
# GLOBAL PARAMETERS DATASETS = ['sent140', 'nist', 'shakespeare', 'mnist', 'synthetic', 'cifar10'] TRAINERS = {'fedavg': 'FedAvgTrainer', 'fedavg4': 'FedAvg4Trainer', 'fedavg5': 'FedAvg5Trainer', 'fedavg9': 'FedAvg9Trainer', 'fedavg_imba': 'FedAvgTrainerImba',...
38.142857
103
0.529963
156
1,602
5.217949
0.467949
0.068796
0.078624
0.034398
0.12285
0.071253
0.071253
0.071253
0.071253
0
0
0.061412
0.318976
1,602
41
104
39.073171
0.684693
0.010612
0
0.057143
0
0
0.286166
0.016425
0
0
0
0
0
1
0.057143
false
0.028571
0
0
0.257143
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
3c10cbd008220b779ffa61252edc4ab7bdc901a1
5,506
py
Python
server/inbox/views.py
amy-xiang/CMPUT404_PROJECT
cbcea0cd164d6377ede397e934f960505e8f347a
[ "W3C-20150513" ]
1
2021-04-06T22:35:53.000Z
2021-04-06T22:35:53.000Z
server/inbox/views.py
amy-xiang/CMPUT404_PROJECT
cbcea0cd164d6377ede397e934f960505e8f347a
[ "W3C-20150513" ]
null
null
null
server/inbox/views.py
amy-xiang/CMPUT404_PROJECT
cbcea0cd164d6377ede397e934f960505e8f347a
[ "W3C-20150513" ]
null
null
null
from django.core.exceptions import ValidationError from django.shortcuts import render, get_object_or_404 from django.db import IntegrityError from rest_framework import authentication, generics, permissions, status from rest_framework.exceptions import PermissionDenied from rest_framework.response import Response fr...
44.403226
116
0.606793
643
5,506
5.021773
0.239502
0.039641
0.039641
0.023537
0.245587
0.200062
0.1917
0.17126
0.138123
0.138123
0
0.01007
0.296586
5,506
123
117
44.764228
0.823651
0.046858
0
0.244898
0
0
0.132824
0.014886
0
0
0
0
0
1
0.040816
false
0.010204
0.183673
0
0.377551
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
3c119513513dbce82555731b084d2de00dc48dc8
1,873
py
Python
black_list_all.py
philipempl/mail_watch
802df3146c462aeb670a4a973e428976d90abf06
[ "Apache-2.0" ]
null
null
null
black_list_all.py
philipempl/mail_watch
802df3146c462aeb670a4a973e428976d90abf06
[ "Apache-2.0" ]
1
2019-12-11T08:49:51.000Z
2019-12-11T08:49:51.000Z
black_list_all.py
philipempl/mail_watch
802df3146c462aeb670a4a973e428976d90abf06
[ "Apache-2.0" ]
null
null
null
import imaplib, base64, os, email, re, configparser import tkinter as tk from tkinter import messagebox from datetime import datetime from email import generator from dateutil.parser import parse def init(): mail = imaplib.IMAP4_SSL(config['SERVER']['Host'],config['SERVER']['Port']) pwd = str(input("PWD: ")) ...
28.378788
99
0.620929
244
1,873
4.631148
0.438525
0.026549
0.026549
0.058407
0
0
0
0
0
0
0
0.014122
0.206086
1,873
66
100
28.378788
0.745797
0.034704
0
0.037736
0
0
0.109635
0.03433
0
0
0
0
0
1
0.075472
false
0
0.113208
0
0.226415
0.056604
0
0
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
3c129d467e7a619b95bbc8aa752a9a6e384e5ae6
4,075
py
Python
iraclis/_1databases.py
nespinoza/Iraclis
3b5dd8d6bc073f6d2c24ad14341020694255bf65
[ "CC-BY-4.0" ]
null
null
null
iraclis/_1databases.py
nespinoza/Iraclis
3b5dd8d6bc073f6d2c24ad14341020694255bf65
[ "CC-BY-4.0" ]
null
null
null
iraclis/_1databases.py
nespinoza/Iraclis
3b5dd8d6bc073f6d2c24ad14341020694255bf65
[ "CC-BY-4.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from ._0errors import * from ._0imports import * class Database: def __init__(self, database_name, vital=False, date_to_update='daily', force_update=False, ask_size=None): package_name = 'iracli...
38.084112
114
0.553374
484
4,075
4.402893
0.243802
0.056312
0.051619
0.04458
0.332708
0.211638
0.164711
0.128578
0.113562
0.113562
0
0.010985
0.329816
4,075
106
115
38.443396
0.769315
0.007117
0
0.219512
0
0.012195
0.09817
0.005935
0
0
0
0
0
1
0.02439
false
0.012195
0.060976
0
0.109756
0.085366
0
0
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
3c134e04d61928fa6fcc6871ade77a7efb97baf0
1,029
py
Python
Level2/Ex_5.py
zac11/Python_Excerices
775739e2639be1f82cc3690c854b9ea0ece05042
[ "Apache-2.0" ]
2
2019-03-09T20:31:06.000Z
2020-06-19T12:15:13.000Z
Level2/Ex_5.py
zac11/Python_Excerices
775739e2639be1f82cc3690c854b9ea0ece05042
[ "Apache-2.0" ]
null
null
null
Level2/Ex_5.py
zac11/Python_Excerices
775739e2639be1f82cc3690c854b9ea0ece05042
[ "Apache-2.0" ]
1
2018-08-11T18:36:49.000Z
2018-08-11T18:36:49.000Z
""" Write a program that accepts a sequence of whitespace separated words as input and prints the words after removing all duplicate words and sorting them alphanumerically. Suppose the following input is supplied to the program: hello world and practice makes perfect and hello world again Then, the output should be: ...
19.415094
118
0.74344
177
1,029
4.310734
0.418079
0.052425
0.06291
0.070773
0.104849
0.070773
0
0
0
0
0
0
0.183673
1,029
52
119
19.788462
0.908333
0.348882
0
0
0
0
0.016667
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
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
3c1675a2a9274be019b322c8830f740dbd48fb14
6,063
py
Python
alfworld/agents/utils/traj_process.py
roy860328/VSGM
3ec19f9cf1401cecf45527687936b8fe4167f672
[ "MIT" ]
6
2021-05-22T15:33:42.000Z
2022-01-12T03:34:39.000Z
alfworld/agents/utils/traj_process.py
roy860328/VSGM
3ec19f9cf1401cecf45527687936b8fe4167f672
[ "MIT" ]
1
2021-06-19T10:04:13.000Z
2021-06-20T03:37:23.000Z
alfworld/agents/utils/traj_process.py
roy860328/VSGM
3ec19f9cf1401cecf45527687936b8fe4167f672
[ "MIT" ]
null
null
null
import os import cv2 import json import numpy as np import h5py from PIL import Image TASK_TYPES = {1: "pick_and_place_simple", 2: "look_at_obj_in_light", 3: "pick_clean_then_place_in_recep", 4: "pick_heat_then_place_in_recep", 5: "pick_cool_then_place_in_recep", ...
41.527397
102
0.628072
820
6,063
4.257317
0.152439
0.036093
0.047264
0.028072
0.567459
0.465483
0.454025
0.454025
0.420223
0.420223
0
0.009547
0.257133
6,063
145
103
41.813793
0.765542
0.04981
0
0.295082
0
0
0.146261
0.044174
0
0
0
0
0
1
0.040984
false
0
0.04918
0
0.114754
0.057377
0
0
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
3c1927e4c80951e764d207f99cb77de8d5e6eb00
1,850
py
Python
selenium-browser.py
steflayanto/international-google-search
05cc773b158fe11202fdf39fb515b398a08b7e3c
[ "MIT" ]
null
null
null
selenium-browser.py
steflayanto/international-google-search
05cc773b158fe11202fdf39fb515b398a08b7e3c
[ "MIT" ]
null
null
null
selenium-browser.py
steflayanto/international-google-search
05cc773b158fe11202fdf39fb515b398a08b7e3c
[ "MIT" ]
null
null
null
import os, time, pyautogui import selenium from selenium import webdriver from location_reference import country_map # STATIC SETTINGS DPI = 125 # Scaling factor of texts and apps in display settings screen_dims = [x / (DPI/100) for x in pyautogui.size()] code_map = country_map() print("International Google Searc...
28.90625
120
0.702162
265
1,850
4.769811
0.430189
0.047468
0.026108
0.028481
0.238133
0.200158
0.134494
0.134494
0.134494
0.134494
0
0.014221
0.163784
1,850
64
121
28.90625
0.802844
0.232973
0
0
0
0.027778
0.243416
0
0
0
0
0
0.027778
1
0
false
0
0.111111
0
0.111111
0.111111
0
0
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
3c1d0a50a97a1bf750da3e79140c45303971c672
2,027
py
Python
registration/admin.py
allenallen/interedregistration
d6b93bfc33d7bb9bfbabdcdb27b685f3a6be3ea9
[ "MIT" ]
null
null
null
registration/admin.py
allenallen/interedregistration
d6b93bfc33d7bb9bfbabdcdb27b685f3a6be3ea9
[ "MIT" ]
6
2020-02-11T23:05:13.000Z
2021-06-10T20:43:51.000Z
registration/admin.py
allenallen/interedregistration
d6b93bfc33d7bb9bfbabdcdb27b685f3a6be3ea9
[ "MIT" ]
null
null
null
import csv from django.contrib import admin from django.http import HttpResponse from .models import Student, SchoolList, Event, ShsTrack, SchoolOfficial class ExportCsvMixin: def export_as_csv(self, request, queryset): meta = self.model._meta field_names = [field.name for field in meta.fields] ...
30.712121
117
0.665022
222
2,027
5.837838
0.396396
0.024691
0.033951
0.050926
0.236111
0.188272
0.188272
0.188272
0.188272
0.188272
0
0
0.197829
2,027
65
118
31.184615
0.797048
0
0
0.212766
0
0
0.260483
0.021707
0
0
0
0
0
1
0.021277
false
0
0.085106
0
0.446809
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
3c1e8f234365a8d2c0de799db1420fb70afb127b
1,251
py
Python
python/src/aoc/year2016/day5.py
ocirne/adventofcode
ea9b5f1b48a04284521e85c96b420ed54adf55f0
[ "Unlicense" ]
1
2021-02-16T21:30:04.000Z
2021-02-16T21:30:04.000Z
python/src/aoc/year2016/day5.py
ocirne/adventofcode
ea9b5f1b48a04284521e85c96b420ed54adf55f0
[ "Unlicense" ]
null
null
null
python/src/aoc/year2016/day5.py
ocirne/adventofcode
ea9b5f1b48a04284521e85c96b420ed54adf55f0
[ "Unlicense" ]
null
null
null
import hashlib from itertools import islice from aoc.util import load_input def search(door_id, is_part1=False, is_part2=False): i = 0 while True: md5_hash = hashlib.md5((door_id + str(i)).encode()).hexdigest() if md5_hash.startswith("00000"): if is_part1: yield md...
24.529412
71
0.529976
156
1,251
4.038462
0.397436
0.055556
0.038095
0.044444
0.060317
0
0
0
0
0
0
0.062574
0.322942
1,251
50
72
25.02
0.681228
0.052758
0
0
0
0
0.013962
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.242424
0.090909
0
0
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
3c1ff1fa706a7ee54f33c5565b4c5b7b1c4bf065
7,700
py
Python
src/1-3_autocorrect.py
BernhardSchiffer/1-dynamic-programming
81d89e6d579a329058a40b0e6c85b45c97db083a
[ "MIT" ]
null
null
null
src/1-3_autocorrect.py
BernhardSchiffer/1-dynamic-programming
81d89e6d579a329058a40b0e6c85b45c97db083a
[ "MIT" ]
null
null
null
src/1-3_autocorrect.py
BernhardSchiffer/1-dynamic-programming
81d89e6d579a329058a40b0e6c85b45c97db083a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # %% # Assignment Pt. 1: Edit Distances import numpy as np from bs4 import BeautifulSoup import math vocabulary_file = open('../res/count_1w.txt', 'r') lines = vocabulary_file.readlines() vocabulary = dict() word_count = 0 # Strips the newline character for line in lines: line = line.strip...
32.352941
138
0.587662
987
7,700
4.558257
0.222898
0.017782
0.024005
0.022227
0.289398
0.206046
0.166037
0.148033
0.072238
0.072238
0
0.050995
0.223247
7,700
237
139
32.489451
0.701221
0.123117
0
0.129032
0
0
0.168159
0
0
0
0
0
0.096774
1
0.032258
false
0
0.019355
0
0.090323
0.051613
0
0
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
3c2312e967df908333d00837244d79e34fe4f564
2,845
py
Python
scripts/code_standards/code_standards.py
dolphingarlic/sketch-frontend
e646b7d51405e8a693f45472aa3cc6991a6f38af
[ "X11" ]
1
2020-12-06T03:40:53.000Z
2020-12-06T03:40:53.000Z
scripts/code_standards/code_standards.py
dolphingarlic/sketch-frontend
e646b7d51405e8a693f45472aa3cc6991a6f38af
[ "X11" ]
null
null
null
scripts/code_standards/code_standards.py
dolphingarlic/sketch-frontend
e646b7d51405e8a693f45472aa3cc6991a6f38af
[ "X11" ]
null
null
null
#!/usr/bin/env python2.6 # -*- coding: utf-8 -*- from __future__ import print_function import optparse import path_resolv from path_resolv import Path def check_file(f, show_info, override_ignores): text = f.read() if ("@code standards ignore file" in text) and (not override_ignores): return if "...
34.695122
86
0.59754
366
2,845
4.516393
0.418033
0.059286
0.038717
0.025408
0.026618
0.026618
0
0
0
0
0
0.012925
0.265729
2,845
81
87
35.123457
0.778363
0.088576
0
0.084746
0
0
0.228538
0.010828
0
0
0
0
0.050847
1
0.084746
false
0
0.067797
0
0.169492
0.084746
0
0
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
3c25269f1d545577e247a812c7d95d25ce72bbfe
2,368
py
Python
grease/scanner.py
JorgeRubio96/grease-lang
94a7cf9f01339ae2aac2c1fa1fefb623c32fffc9
[ "MIT" ]
null
null
null
grease/scanner.py
JorgeRubio96/grease-lang
94a7cf9f01339ae2aac2c1fa1fefb623c32fffc9
[ "MIT" ]
null
null
null
grease/scanner.py
JorgeRubio96/grease-lang
94a7cf9f01339ae2aac2c1fa1fefb623c32fffc9
[ "MIT" ]
1
2018-10-09T22:57:34.000Z
2018-10-09T22:57:34.000Z
import ply.lex as lex from grease.core.indents import Indents reserved = { 'var': 'VAR', 'if': 'IF', 'else': 'ELSE', 'scan': 'SCAN', 'print': 'PRINT', 'and': 'AND', 'or': 'OR', 'Bool': 'BOOL', 'Int': 'INT', 'Float': 'FLOAT', 'Char': 'CHAR', 'fn': 'FN', 'interface': '...
19.89916
85
0.505912
354
2,368
3.234463
0.271186
0.094323
0.052402
0.048035
0.145852
0.127511
0.127511
0.047162
0.047162
0.047162
0
0.009577
0.250422
2,368
118
86
20.067797
0.635493
0.040541
0
0.09901
0
0
0.226774
0.009291
0
0
0
0
0
1
0.09901
false
0
0.029703
0
0.19802
0.019802
0
0
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
3c2968143388eec54e35192431494447d2c82d24
3,673
py
Python
tests/test_assert_immediate.py
makaimann/fault
8c805415f398e64971d18fbd3014bc0b59fb38b8
[ "BSD-3-Clause" ]
null
null
null
tests/test_assert_immediate.py
makaimann/fault
8c805415f398e64971d18fbd3014bc0b59fb38b8
[ "BSD-3-Clause" ]
null
null
null
tests/test_assert_immediate.py
makaimann/fault
8c805415f398e64971d18fbd3014bc0b59fb38b8
[ "BSD-3-Clause" ]
null
null
null
import tempfile import pytest import fault as f import magma as m from fault.verilator_utils import verilator_version @pytest.mark.parametrize('success_msg', [None, "OK"]) @pytest.mark.parametrize('failure_msg', [None, "FAILED"]) @pytest.mark.parametrize('severity', ["error", "fatal", "warning"]) @pytest.mark.parame...
34.980952
78
0.54288
433
3,673
4.484988
0.237875
0.056643
0.054068
0.014418
0.438723
0.415036
0.393409
0.316684
0.316684
0.316684
0
0.015977
0.335421
3,673
104
79
35.317308
0.779599
0.035393
0
0.373626
0
0.010989
0.131676
0
0
0
0
0
0.186813
1
0.021978
false
0
0.054945
0
0.120879
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
3c312cb7c5567e3a8e860f6d1634192c56119a38
2,580
py
Python
jaf/main.py
milano-slesarik/jaf
97c0a579f4ece70dbfb583d72aa35380f7a82f8d
[ "MIT" ]
null
null
null
jaf/main.py
milano-slesarik/jaf
97c0a579f4ece70dbfb583d72aa35380f7a82f8d
[ "MIT" ]
null
null
null
jaf/main.py
milano-slesarik/jaf
97c0a579f4ece70dbfb583d72aa35380f7a82f8d
[ "MIT" ]
null
null
null
import json import os import typing from io import IOBase from jaf.encoders import JAFJSONEncoder class JsonArrayFileWriterNotOpenError(Exception): pass class JsonArrayFileWriter: MODE__APPEND_OR_CREATE = 'ac' MODE__REWRITE_OR_CREATE = 'rc' def __init__(self, filepath: str, mode=MODE__REWRITE_OR_C...
31.084337
170
0.601163
315
2,580
4.771429
0.32381
0.063872
0.060546
0.035928
0.134398
0.085163
0.050566
0.050566
0.050566
0
0
0.009772
0.286047
2,580
82
171
31.463415
0.806189
0.012403
0
0.09375
0
0.015625
0.086803
0.015711
0
0
0
0
0
1
0.125
false
0.015625
0.078125
0
0.28125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3c3406ddfc224f8162dd8e58c6d1818f19d5fb3c
812
py
Python
BluePlug/fork.py
liufeng3486/BluePlug
c7c5c769ed35c71ebc542d34848d6bf309abd051
[ "MIT" ]
1
2019-01-27T04:08:05.000Z
2019-01-27T04:08:05.000Z
BluePlug/fork.py
liufeng3486/BluePlug
c7c5c769ed35c71ebc542d34848d6bf309abd051
[ "MIT" ]
5
2021-03-18T21:35:20.000Z
2022-01-13T00:58:18.000Z
BluePlug/fork.py
liufeng3486/BluePlug
c7c5c769ed35c71ebc542d34848d6bf309abd051
[ "MIT" ]
null
null
null
from aip import AipOcr BAIDU_APP_ID='14490756' BAIDU_API_KEY = 'Z7ZhXtleolXMRYYGZ59CGvRl' BAIDU_SECRET_KEY = 'zbHgDUGmRnBfn6XOBmpS5fnr9yKer8C6' client= AipOcr(BAIDU_APP_ID, BAIDU_API_KEY, BAIDU_SECRET_KEY) options = {} options["recognize_granularity"] = "big" options["language_type"] = "CHN_ENG" options["detect_dire...
24.606061
62
0.69335
101
812
5.29703
0.564356
0.061682
0.052336
0.059813
0
0
0
0
0
0
0
0.025111
0.166256
812
33
63
24.606061
0.76514
0
0
0
0
0
0.276753
0.094711
0
0
0
0
0
1
0.076923
false
0
0.038462
0
0.230769
0.038462
0
0
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
3c36a55c48b2843a0df149d905928f2eb9279e29
4,596
py
Python
GuessGame.py
VedantKhairnar/Guess-Game
a959d03cbfea539a63e451e5c65f7cd9790d1b7f
[ "MIT" ]
null
null
null
GuessGame.py
VedantKhairnar/Guess-Game
a959d03cbfea539a63e451e5c65f7cd9790d1b7f
[ "MIT" ]
null
null
null
GuessGame.py
VedantKhairnar/Guess-Game
a959d03cbfea539a63e451e5c65f7cd9790d1b7f
[ "MIT" ]
1
2020-06-05T12:42:39.000Z
2020-06-05T12:42:39.000Z
from tkinter import * import random from tkinter import messagebox class GuessGame: def protocolhandler(self): if messagebox.askyesno("Exit", "Really Wanna stop Guessing?"): if messagebox.askyesno("Exit", "Are you sure?"): self.root.destroy() def result(self): ...
42.555556
210
0.570061
653
4,596
3.984686
0.255743
0.079939
0.079939
0.098002
0.408916
0.330899
0.306303
0.299385
0.277863
0.267871
0
0.043223
0.260009
4,596
107
211
42.953271
0.721847
0.021758
0
0.049383
0
0.012346
0.250399
0
0
0
0
0
0
1
0.049383
false
0
0.037037
0
0.111111
0.098765
0
0
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
3c3a5c531bfcc3cf9b1021a5ea94cb71ba7d11b0
1,268
py
Python
duckling/test/test_api.py
handsomezebra/zoo
db9ef7f9daffd34ca859d5a4d76d947e00a768b8
[ "MIT" ]
1
2020-03-08T07:46:14.000Z
2020-03-08T07:46:14.000Z
duckling/test/test_api.py
handsomezebra/zoo
db9ef7f9daffd34ca859d5a4d76d947e00a768b8
[ "MIT" ]
null
null
null
duckling/test/test_api.py
handsomezebra/zoo
db9ef7f9daffd34ca859d5a4d76d947e00a768b8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json import requests import logging import csv url = "http://localhost:10000/parse" def get_result(text, lang, dims, latent=None, reftime=None, tz=None): data = { "text": text, "lang": lang, "dims": json.dumps(dims) } if reftime is not None: ...
23.924528
96
0.621451
169
1,268
4.60355
0.473373
0.041131
0.046272
0.050129
0
0
0
0
0
0
0
0.058017
0.252366
1,268
52
97
24.384615
0.762658
0.032334
0
0.055556
0
0
0.196895
0.023693
0
0
0
0
0.027778
1
0.055556
false
0
0.111111
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3c3b9d3f39b8361cf623581c59d5c7de855eb076
943
py
Python
btrfslime/defrag/btrfs.py
tsangwpx/btrfslime
49c141721c532706f146fea31d2eb171c6dd698b
[ "MIT" ]
3
2020-10-30T12:18:42.000Z
2022-02-06T20:17:55.000Z
btrfslime/defrag/btrfs.py
tsangwpx/btrfslime
49c141721c532706f146fea31d2eb171c6dd698b
[ "MIT" ]
null
null
null
btrfslime/defrag/btrfs.py
tsangwpx/btrfslime
49c141721c532706f146fea31d2eb171c6dd698b
[ "MIT" ]
null
null
null
from __future__ import annotations import os import subprocess from typing import AnyStr from ..util import check_nonnegative BTRFS_BIN = '/bin/btrfs' def file_defrag( target: AnyStr, start: int = None, size: int = None, extent_size: int = None, *, flush=False, btrfs_bin=BTRFS_BIN, ): ...
21.930233
53
0.652174
122
943
4.827869
0.336066
0.118846
0.04584
0.071307
0.140917
0.098472
0
0
0
0
0
0
0.230117
943
42
54
22.452381
0.811295
0
0
0
0
0
0.057264
0
0
0
0
0
0
1
0.032258
false
0
0.16129
0
0.193548
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
3c3ddb0feb36d17a1b33c822d86fc630d77ff009
14,771
py
Python
fooltrader/api/quote.py
lcczz/fooltrader
fb43d9b2ab18fb758ca2c629ad5f7ba1ea873a0e
[ "MIT" ]
1
2018-04-03T06:25:24.000Z
2018-04-03T06:25:24.000Z
fooltrader/api/quote.py
lcczz/fooltrader
fb43d9b2ab18fb758ca2c629ad5f7ba1ea873a0e
[ "MIT" ]
null
null
null
fooltrader/api/quote.py
lcczz/fooltrader
fb43d9b2ab18fb758ca2c629ad5f7ba1ea873a0e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import logging import os from ast import literal_eval import numpy as np import pandas as pd from fooltrader.consts import CHINA_STOCK_INDEX, USA_STOCK_INDEX from fooltrader.contract import data_contract from fooltrader.contract import files_contract from fooltrader.contract.f...
32.89755
115
0.580326
1,894
14,771
4.318374
0.121964
0.102702
0.019562
0.011737
0.346253
0.304194
0.247708
0.203815
0.158088
0.13608
0
0.019845
0.300657
14,771
448
116
32.970982
0.771926
0.209464
0
0.233871
0
0
0.048942
0
0
0
0
0.002232
0
1
0.060484
false
0
0.048387
0
0.201613
0.004032
0
0
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
3c3f46d21ba0b951765c196ff37b42684f836343
432
py
Python
backend/jobPortal/api/urls.py
KshitijDarekar/hackViolet22
c54636d3044e1d9a7d8fa92a4d781e79f38af3ca
[ "MIT" ]
2
2022-02-06T04:58:24.000Z
2022-02-06T05:31:18.000Z
backend/jobPortal/api/urls.py
KshitijDarekar/hackViolet22
c54636d3044e1d9a7d8fa92a4d781e79f38af3ca
[ "MIT" ]
5
2022-02-06T05:08:04.000Z
2022-02-06T16:29:51.000Z
backend/jobPortal/api/urls.py
KshitijDarekar/hackViolet22
c54636d3044e1d9a7d8fa92a4d781e79f38af3ca
[ "MIT" ]
2
2022-02-06T04:58:43.000Z
2022-02-06T17:56:23.000Z
from django.urls import path from . import views # Refer to the corresponding view function for more detials of the url routes urlpatterns = [ path('', views.getRoutes, name="index"), path('add/', views.addJob, name="addJob" ), path('delete/<int:id>', views.removeJob, name="removeJob" ), path('get-jo...
33.230769
77
0.685185
55
432
5.381818
0.6
0.060811
0
0
0
0
0
0
0
0
0
0
0.152778
432
12
78
36
0.808743
0.173611
0
0
0
0
0.230986
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3c4027e0a85dd326115e24d1e6e1369d17bbdebc
3,135
py
Python
rh_project/pick_six.py
hrichstein/phys_50733
a333bfa4dd5b0ca464bd861336bc2f32d8e72a2b
[ "MIT" ]
null
null
null
rh_project/pick_six.py
hrichstein/phys_50733
a333bfa4dd5b0ca464bd861336bc2f32d8e72a2b
[ "MIT" ]
null
null
null
rh_project/pick_six.py
hrichstein/phys_50733
a333bfa4dd5b0ca464bd861336bc2f32d8e72a2b
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt # from scipy.constants import G # Setting plotting parameters from matplotlib import rc,rcParams rc('text', usetex=True) rc('axes', linewidth=2) rc('font', weight='bold') rc('font', **{'family': 'serif', 'serif':['Computer Modern']}) def find_vel_init(M1, M2, a): pe...
19.59375
71
0.551515
631
3,135
2.637084
0.229794
0.058894
0.033654
0.050481
0.263221
0.221755
0.198918
0
0
0
0
0.091732
0.224561
3,135
160
72
19.59375
0.59276
0.388517
0
0
0
0
0.04
0
0
0
0
0
0
1
0.034483
false
0
0.051724
0
0.12069
0.051724
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3c42036c78c029c70b9f27f5eeeede981c311ba5
1,704
py
Python
recoda/analyse/python/metrics.py
hansendx/recoda
09e25843376613b17c6b42d45e30b895b24a7d9d
[ "MIT" ]
null
null
null
recoda/analyse/python/metrics.py
hansendx/recoda
09e25843376613b17c6b42d45e30b895b24a7d9d
[ "MIT" ]
null
null
null
recoda/analyse/python/metrics.py
hansendx/recoda
09e25843376613b17c6b42d45e30b895b24a7d9d
[ "MIT" ]
null
null
null
""" Provides functionality to calculate software metrics in python projects. """ from recoda.analyse.python import ( _general, _installability, _understandability, _verifiability, _correctness, ) from recoda.analyse.independent import ( learnability, openness ) # pylint: disable-msg=c0103...
29.894737
76
0.834507
197
1,704
6.903553
0.461929
0.051471
0.05
0.042647
0
0
0
0
0
0
0
0.002667
0.119718
1,704
57
77
29.894737
0.904
0.349765
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.074074
0
0.074074
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
3c43222bbb55fdc6b4f2d6c2fab0d2b77fcb11ea
3,278
py
Python
metarmap/commands/display.py
wastrachan/metarmap
2ff9bc3e94d731b83470c2283bfb67600143d719
[ "MIT" ]
null
null
null
metarmap/commands/display.py
wastrachan/metarmap
2ff9bc3e94d731b83470c2283bfb67600143d719
[ "MIT" ]
null
null
null
metarmap/commands/display.py
wastrachan/metarmap
2ff9bc3e94d731b83470c2283bfb67600143d719
[ "MIT" ]
null
null
null
import datetime import os import textwrap import click from PIL import Image, ImageDraw, ImageFont from metarmap.configuration import config, debug, get_display_lock_content, set_display_lock_content from metarmap.libraries.aviationweather import metar from metarmap.libraries.waveshare_epd import epd2in13_V2 FONTDIR...
38.116279
106
0.701647
457
3,278
4.908096
0.293217
0.01605
0.034775
0.041017
0.194383
0.176549
0.156041
0.087383
0.047258
0
0
0.020679
0.173887
3,278
85
107
38.564706
0.807607
0.088469
0
0.140625
0
0
0.219939
0.027282
0
0
0.001347
0
0
1
0.03125
false
0
0.125
0
0.203125
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
3c460fdfda615228be90ea72ed8b2f5c151649c7
16,921
py
Python
benchmarks/benchmark_script.py
oddconcepts/n2o
fe6214dcc06a1b13be60733c53ac25bca3c2b4d0
[ "Apache-2.0" ]
2
2019-02-13T12:59:27.000Z
2020-01-28T02:02:47.000Z
benchmarks/benchmark_script.py
oddconcepts/n2o
fe6214dcc06a1b13be60733c53ac25bca3c2b4d0
[ "Apache-2.0" ]
2
2019-06-25T10:00:57.000Z
2019-10-26T14:55:23.000Z
benchmarks/benchmark_script.py
oddconcepts/n2o
fe6214dcc06a1b13be60733c53ac25bca3c2b4d0
[ "Apache-2.0" ]
1
2021-11-03T14:59:27.000Z
2021-11-03T14:59:27.000Z
# This code is based on the code # from ann-benchmark repository # created by Erik Bernhardsson # https://github.com/erikbern/ann-benchmarks import gzip import numpy import time import os import multiprocessing import argparse import pickle import resource import random import math import logging import shutil import...
37.602222
166
0.61929
2,345
16,921
4.282303
0.183369
0.027783
0.020713
0.013444
0.251643
0.193487
0.141207
0.108445
0.095399
0.078371
0
0.020641
0.249867
16,921
449
167
37.685969
0.770503
0.069499
0
0.192308
0
0.008242
0.129106
0.026165
0
0
0
0
0.005495
1
0.054945
false
0
0.068681
0.010989
0.164835
0.008242
0
0
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
3c51be6bea74f985c0302d56a6e42f0067e94f0f
4,287
py
Python
K-Cap_2021/2C_associations_by_cluster/build_cluster_hashes.py
cultural-ai/ConConCor
f5c30dfb7d38392f492f9c6e44c8d242f2820ce4
[ "CC-BY-2.0" ]
1
2021-12-14T10:19:55.000Z
2021-12-14T10:19:55.000Z
K-Cap_2021/2C_associations_by_cluster/build_cluster_hashes.py
cultural-ai/ConConCor
f5c30dfb7d38392f492f9c6e44c8d242f2820ce4
[ "CC-BY-2.0" ]
null
null
null
K-Cap_2021/2C_associations_by_cluster/build_cluster_hashes.py
cultural-ai/ConConCor
f5c30dfb7d38392f492f9c6e44c8d242f2820ce4
[ "CC-BY-2.0" ]
null
null
null
"""{Build token: cluster index}, hashes for each specified granularity level in the user-defined list 'clustering_levels_to_consider' Output: level_xx_hash.json hash to /cluster_hashes """ import json import os import pickle as pkl import typing import numpy as np def main(): # # user-defined vars # ...
37.278261
148
0.648239
629
4,287
4.265501
0.254372
0.089452
0.022363
0.020872
0.116288
0.092434
0.06858
0.051435
0.051435
0.051435
0
0.010284
0.251458
4,287
114
149
37.605263
0.825802
0.405878
0
0
0
0
0.055667
0.050461
0
0
0
0
0
1
0.05
false
0
0.083333
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3c5554bd05cd5239ce11e4e4dd8fa2e50df67f34
7,444
py
Python
code/reveal_links.py
antonia42/DeLi
f07dc79a98eebccbcdcb4ee74eb4570190e6f441
[ "MIT" ]
1
2021-05-20T20:53:19.000Z
2021-05-20T20:53:19.000Z
code/reveal_links.py
antonia42/DeLi
f07dc79a98eebccbcdcb4ee74eb4570190e6f441
[ "MIT" ]
1
2021-04-06T08:34:05.000Z
2021-11-24T10:47:27.000Z
code/reveal_links.py
antonia42/DeLi
f07dc79a98eebccbcdcb4ee74eb4570190e6f441
[ "MIT" ]
null
null
null
import sys import networkx as nx #from simhash import Simhash, SimhashIndex from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics.pairwise import cosine_similarity # if there is a problem with gensim and Word2Vec, check the python version # to be 2.7 # print('Hello from {}'.format(sys.versi...
35.113208
79
0.657308
1,009
7,444
4.777007
0.197225
0.033195
0.041494
0.017635
0.509129
0.503112
0.495851
0.470954
0.462448
0.45166
0
0.005916
0.273375
7,444
211
80
35.279621
0.885191
0.615798
0
0.2
0
0
0.006459
0
0
0
0
0
0
1
0.083333
false
0.033333
0.066667
0
0.233333
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
3c57f29eb95c40842b9781c30c39516ef8329161
1,285
py
Python
scripts/remove_after_use/create_spam_node_count_csv.py
caseyrollins/osf.io
e42e566f303d09b54f4025517031b08f404592eb
[ "Apache-2.0" ]
1
2019-12-23T04:30:20.000Z
2019-12-23T04:30:20.000Z
scripts/remove_after_use/create_spam_node_count_csv.py
caseyrollins/osf.io
e42e566f303d09b54f4025517031b08f404592eb
[ "Apache-2.0" ]
null
null
null
scripts/remove_after_use/create_spam_node_count_csv.py
caseyrollins/osf.io
e42e566f303d09b54f4025517031b08f404592eb
[ "Apache-2.0" ]
null
null
null
import sys import csv import logging import datetime from website.app import setup_django setup_django() from osf.models import Node, SpamStatus from django.db.models import Count from scripts import utils as script_utils logger = logging.getLogger(__name__) logging.basicConfig(level=logging.INFO) def main(): ...
32.125
173
0.721401
179
1,285
4.899441
0.486034
0.062714
0.018244
0.025086
0
0
0
0
0
0
0
0.01317
0.172763
1,285
39
174
32.948718
0.811853
0.066148
0
0.074074
0
0
0.126878
0.034224
0
0
0
0
0
1
0.037037
false
0
0.296296
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
3c595afdb533a0fc9550d6782a8298265522f096
8,299
py
Python
inference.py
biswaroop1547/Neural_Fashion_Caption_Creator
35ca0b4b9813ed570bdde7f4f0911c9f9a1d998e
[ "MIT" ]
3
2021-04-12T02:23:18.000Z
2022-01-06T12:05:24.000Z
inference.py
biswaroop1547/Neural_Fashion_Caption_Creator
35ca0b4b9813ed570bdde7f4f0911c9f9a1d998e
[ "MIT" ]
null
null
null
inference.py
biswaroop1547/Neural_Fashion_Caption_Creator
35ca0b4b9813ed570bdde7f4f0911c9f9a1d998e
[ "MIT" ]
null
null
null
import os import time import h5py import json from PIL import Image import torch from torch import nn import torchvision import torchvision.transforms as transforms import torch.optim import torch.nn.functional as F from torch.utils.data.dataset import random_split from torch.utils.data import Dataset from torch.nn....
32.291829
121
0.616821
1,146
8,299
4.293194
0.270506
0.013008
0.031707
0.018293
0.159553
0.108943
0.084959
0.047561
0.026016
0.014634
0
0.024151
0.276539
8,299
257
122
32.291829
0.795303
0.410049
0
0.020202
0
0
0.003158
0
0
0
0
0
0
1
0.010101
false
0
0.242424
0
0.262626
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
3c5b1d85968d78e7d6653a282357a7d53ef86e80
623
py
Python
auxiliary-scripts/LRC-to-Label.py
xbnstudios/show-scripts
fb2eb5bb41eadc9757567fb6b1217d6c2bad0620
[ "Unlicense" ]
1
2018-03-08T16:00:31.000Z
2018-03-08T16:00:31.000Z
auxiliary-scripts/LRC-to-Label.py
ManualManul/XBN
fb2eb5bb41eadc9757567fb6b1217d6c2bad0620
[ "Unlicense" ]
null
null
null
auxiliary-scripts/LRC-to-Label.py
ManualManul/XBN
fb2eb5bb41eadc9757567fb6b1217d6c2bad0620
[ "Unlicense" ]
null
null
null
import glob for file in glob.glob("*.lrc"): filename = file[0:7] # assume fnt-xxx.lrc file format lrc_file = open(file, encoding="utf-8") lrc_lines = lrc_file.readlines() lrc_file.close() label = open(filename + '.txt', 'w', encoding="utf-8") print(filename) for line in lrc_lines[3:]: ...
31.15
82
0.552167
85
623
3.988235
0.482353
0.082596
0.070796
0
0
0
0
0
0
0
0
0.035052
0.221509
623
19
83
32.789474
0.663918
0.048154
0
0
0
0
0.062606
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3c5b46fd9008363f42f8cbdbddac0fafdcddf679
2,750
py
Python
driving/boost_grab.py
Chadc265/DingusBot
98a05fe6ef75e2b48038f9fbbfacc204e89d0d86
[ "MIT" ]
null
null
null
driving/boost_grab.py
Chadc265/DingusBot
98a05fe6ef75e2b48038f9fbbfacc204e89d0d86
[ "MIT" ]
null
null
null
driving/boost_grab.py
Chadc265/DingusBot
98a05fe6ef75e2b48038f9fbbfacc204e89d0d86
[ "MIT" ]
null
null
null
import math from rlbot.agents.base_agent import SimpleControllerState from rlbot.utils.structures.game_data_struct import GameTickPacket from driving.drive import drive_to_target from base.action import Action from base.car import Car from base.ball import Ball from util.vec import Vec3 from util.boost import BoostTrac...
42.96875
136
0.623636
360
2,750
4.613889
0.255556
0.10295
0.036123
0.038531
0.171583
0.138471
0.103552
0
0
0
0
0.006202
0.296364
2,750
64
137
42.96875
0.852196
0.058909
0
0.181818
0
0
0.019342
0
0
0
0
0
0
1
0.072727
false
0
0.163636
0
0.345455
0.036364
0
0
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
3c5bb249ee0abe83ae7713176bfcb5fd594b89eb
2,026
py
Python
texteditor.py
bkenza/text-editor
595bcf0d8eb984287a7c8d7dac6ddc2f5e1549ad
[ "MIT" ]
null
null
null
texteditor.py
bkenza/text-editor
595bcf0d8eb984287a7c8d7dac6ddc2f5e1549ad
[ "MIT" ]
null
null
null
texteditor.py
bkenza/text-editor
595bcf0d8eb984287a7c8d7dac6ddc2f5e1549ad
[ "MIT" ]
null
null
null
import sys from tkinter import * from tkinter import filedialog #################### # FUNCTIONS # #################### def saveas(): global text t = text.get("1.0", "end-1c") savelocation = filedialog.asksaveasfilename() file1 = open(savelocation, "w+") file1.write(t) file1.close() def dar...
20.886598
64
0.633268
235
2,026
5.412766
0.289362
0.078616
0.066038
0.09434
0.283019
0.045597
0
0
0
0
0
0.009231
0.197927
2,026
96
65
21.104167
0.773538
0.053307
0
0.125
0
0
0.073157
0
0
0
0
0
0
1
0.125
false
0
0.053571
0
0.178571
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
3c5cbe5565f6ab8319a2c93389c8a977b851666a
525
py
Python
api/models/__init__.py
NathanBMcNamara/Speculator
e74aff778d6657a8c4993c62f264008c9be99e78
[ "MIT" ]
106
2017-11-09T13:58:45.000Z
2021-12-20T03:11:19.000Z
api/models/__init__.py
NathanBMcNamara/Speculator
e74aff778d6657a8c4993c62f264008c9be99e78
[ "MIT" ]
6
2017-10-30T13:29:49.000Z
2021-09-13T12:06:59.000Z
api/models/__init__.py
NathanBMcNamara/Speculator
e74aff778d6657a8c4993c62f264008c9be99e78
[ "MIT" ]
39
2017-10-30T16:35:01.000Z
2021-10-31T10:32:48.000Z
""" Default import all .py files in current directory """ from glob import iglob from re import search __all__ = [] """ Find all DB model modules and their paths """ for path in iglob('./**/*.py', recursive=True): model_pattern = '.*/models/\w+\.py' if search(model_pattern, path) is not None: """ Get ...
32.8125
59
0.617143
72
525
4.277778
0.638889
0.077922
0
0
0
0
0
0
0
0
0
0.002494
0.23619
525
15
60
35
0.765586
0.161905
0
0
0
0
0.10585
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3c5cc632bb94b5ef7ccfb33dc669053fbfcfe760
1,374
py
Python
Software/localization_sims/mlat.py
ncsurobotics/acoustics-sw8
f2ab37416f7235c1d3681e5e2e237c26da276ed6
[ "MIT" ]
null
null
null
Software/localization_sims/mlat.py
ncsurobotics/acoustics-sw8
f2ab37416f7235c1d3681e5e2e237c26da276ed6
[ "MIT" ]
null
null
null
Software/localization_sims/mlat.py
ncsurobotics/acoustics-sw8
f2ab37416f7235c1d3681e5e2e237c26da276ed6
[ "MIT" ]
null
null
null
from tdoa_sim import TDOASim import numpy as np class Multilateration(TDOASim): # Assumptions: Three hydrophones forming a right angle in the xz plane # Hydrophones 1 and 2 form the horizontal pair, and 2 and 3 form the vertical # https://en.wikipedia.org/wiki/Multilateration - cartesian solution def c...
37.135135
129
0.532751
207
1,374
3.47343
0.429952
0.020862
0.01669
0.05007
0
0
0
0
0
0
0
0.048335
0.322416
1,374
36
130
38.166667
0.723953
0.204512
0
0
0
0
0
0
0
0
0
0
0
1
0.08
false
0
0.08
0
0.28
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
3c5dbe6d61fbd8cfdc1de683ac736616ff35e009
2,811
py
Python
code/preprocess/consumption/sector/tn/tn_tx.py
Spacebody/MCM-ICM-2018-Problem-C
89acbec8b7b08733002e570ff67637e7ba100190
[ "MIT" ]
1
2021-09-18T08:01:19.000Z
2021-09-18T08:01:19.000Z
code/preprocess/consumption/sector/tn/tn_tx.py
Spacebody/MCM-ICM-2018-Problem-C
89acbec8b7b08733002e570ff67637e7ba100190
[ "MIT" ]
null
null
null
code/preprocess/consumption/sector/tn/tn_tx.py
Spacebody/MCM-ICM-2018-Problem-C
89acbec8b7b08733002e570ff67637e7ba100190
[ "MIT" ]
1
2018-05-13T08:39:46.000Z
2018-05-13T08:39:46.000Z
#! usr/bin/python3 import pandas as pd import re import numpy as np import os import sys from collections import OrderedDict, defaultdict import matplotlib as mpl import matplotlib.pyplot as plt # import seaborn as sns from scipy import stats, integrate # sns.set() # switch to seaborn default # sns.set_style("whitegr...
30.554348
106
0.645322
428
2,811
4.035047
0.165888
0.06022
0.083382
0.064852
0.430805
0.381008
0.335843
0.215402
0.153445
0.067748
0
0.000429
0.170758
2,811
91
107
30.89011
0.740455
0.08111
0
0.130435
0
0
0.18592
0.112408
0
0
0
0
0
1
0
false
0.028986
0.130435
0
0.130435
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
3c699b1ae35663ad09b05a480af4601cff664c7b
1,276
py
Python
opennem/core/stations/station_code_from_duids.py
willhac/opennem
c8fbcd60e06898e1eeb2dad89548c4ece1b9a319
[ "MIT" ]
null
null
null
opennem/core/stations/station_code_from_duids.py
willhac/opennem
c8fbcd60e06898e1eeb2dad89548c4ece1b9a319
[ "MIT" ]
1
2020-09-06T04:17:59.000Z
2020-09-06T04:17:59.000Z
opennem/core/stations/station_code_from_duids.py
tourdownunder/opennem
deec3e2079db9d9d84171010fd0c239170d1e7ce
[ "MIT" ]
null
null
null
from functools import reduce from typing import List, Optional from opennem.core.normalizers import is_single_number def getcommonletters(strlist): return "".join( [ x[0] for x in zip(*strlist) if reduce(lambda a, b: (a == b) and a or None, x) ] ) def fin...
19.044776
63
0.580721
154
1,276
4.746753
0.402597
0.068399
0.038304
0.04104
0
0
0
0
0
0
0
0.009335
0.32837
1,276
66
64
19.333333
0.843641
0.104232
0
0.179487
0
0
0.000911
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0.025641
0.358974
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
3c6baa9940a450d52040d4e352d35fb76791c5db
1,733
py
Python
models/Schedule.py
CargaPesada/webservice
2725dc9ac97e8e09a94b0a752b0885bc77d8a3d4
[ "MIT" ]
null
null
null
models/Schedule.py
CargaPesada/webservice
2725dc9ac97e8e09a94b0a752b0885bc77d8a3d4
[ "MIT" ]
1
2019-11-06T19:21:49.000Z
2019-11-06T19:21:49.000Z
models/Schedule.py
CargaPesada/webservice
2725dc9ac97e8e09a94b0a752b0885bc77d8a3d4
[ "MIT" ]
null
null
null
from database.interface import FirebaseInterface class Schedule: def __init__(self): self.id = None self.titulo = None self.data = None self.caminhao = None self.mecanico = None def validateFields(self, office_schedule): if self.titulo is None: rai...
30.403509
83
0.590306
194
1,733
5.175258
0.324742
0.083665
0.032869
0.059761
0.023904
0
0
0
0
0
0
0.002469
0.298904
1,733
56
84
30.946429
0.823868
0
0
0.04878
0
0
0.140796
0
0
0
0
0
0
1
0.121951
false
0
0.02439
0
0.195122
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
3c6d83deebd752e29ffb47bbb2f60866fbe395f9
1,947
py
Python
pattern6-in-place-reversal-of-a-linkedlist/4. Reverse alternating K-element Sub-list (medium).py
dopiwoo/Grokking-the-Coding-Interview
78b2bacf9d761b460ac78882bac42df7465feec9
[ "MIT" ]
null
null
null
pattern6-in-place-reversal-of-a-linkedlist/4. Reverse alternating K-element Sub-list (medium).py
dopiwoo/Grokking-the-Coding-Interview
78b2bacf9d761b460ac78882bac42df7465feec9
[ "MIT" ]
null
null
null
pattern6-in-place-reversal-of-a-linkedlist/4. Reverse alternating K-element Sub-list (medium).py
dopiwoo/Grokking-the-Coding-Interview
78b2bacf9d761b460ac78882bac42df7465feec9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Feb 3 16:59:33 2021 @author: dopiwoo Given the head of a LinkedList and a number 'k', reverse every alternating 'k' sized sub-list starting from the head. If, in the end, you are left with a sub-list with less than 'k' elements, reverse it too. """ ...
24.037037
117
0.546482
278
1,947
3.723022
0.330935
0.170048
0.173913
0.154589
0.226087
0.180676
0.156522
0.096618
0.096618
0.096618
0
0.021756
0.338983
1,947
80
118
24.3375
0.78244
0.291217
0
0.173913
0
0
0.010679
0
0
0
0
0
0
1
0.065217
false
0
0
0
0.152174
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3c6f8f5f4f2e782fc4abccdc891d3ed15ff06ea9
6,625
py
Python
generate_fake_data.py
upb-uc4/deployment
0c82de72bb7e758c5afaf8866b238ff17cf908ea
[ "Apache-2.0" ]
null
null
null
generate_fake_data.py
upb-uc4/deployment
0c82de72bb7e758c5afaf8866b238ff17cf908ea
[ "Apache-2.0" ]
2
2021-02-13T13:19:45.000Z
2021-02-13T14:46:02.000Z
generate_fake_data.py
upb-uc4/deployment
0c82de72bb7e758c5afaf8866b238ff17cf908ea
[ "Apache-2.0" ]
null
null
null
import json import random import os import re from faker import Faker ################################################################################ # Some settings: ################################################################################ ADMIN_COUNT = 2 STUDENT_COUNT = 40 LECTURER_COUNT = 10 EXAM_REG_COU...
30.113636
148
0.579019
747
6,625
4.92905
0.313253
0.032319
0.045627
0.026073
0.125747
0.104834
0.097773
0.097773
0.050516
0
0
0.019023
0.246189
6,625
219
149
30.251142
0.718062
0.042717
0
0.101124
0
0
0.159639
0.003445
0
0
0
0
0.005618
1
0.044944
false
0.005618
0.02809
0.011236
0.11236
0.011236
0
0
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
3c70133f7cd579129c6a6ff4af02a403f5a5c1b6
2,972
py
Python
CodeMixed-Text-Generator/cm_text_generator/lattice_operations.py
mohdsanadzakirizvi/CodeMixed-Text-Generator
47740eeff3ecb46f5294711f4fe5d3a03a6e0b54
[ "MIT" ]
16
2021-06-03T07:16:15.000Z
2022-03-24T13:07:31.000Z
CodeMixed-Text-Generator/cm_text_generator/lattice_operations.py
mohdsanadzakirizvi/CodeMixed-Text-Generator
47740eeff3ecb46f5294711f4fe5d3a03a6e0b54
[ "MIT" ]
6
2021-06-30T12:06:33.000Z
2022-02-10T04:49:10.000Z
CodeMixed-Text-Generator/cm_text_generator/lattice_operations.py
mohdsanadzakirizvi/CodeMixed-Text-Generator
47740eeff3ecb46f5294711f4fe5d3a03a6e0b54
[ "MIT" ]
4
2021-07-04T14:21:56.000Z
2021-08-23T19:55:06.000Z
###LATTICE OPERATIONS from .data_structure_definitions import * def trimTrapStates(doof): flag = 1 while flag == 1: flag = 0 statesToDelete = [] dict_items = set([t[0][0] for t in doof.transitions.items()]) for i, state in enumerate(doof.states): if state not in dict_items: # if len([0...
33.393258
116
0.605316
409
2,972
4.359413
0.190709
0.050477
0.076276
0.09871
0.340998
0.255188
0.255188
0.255188
0.241727
0.199103
0
0.028662
0.260431
2,972
89
117
33.393258
0.78253
0.042059
0
0.367647
0
0
0.018649
0
0
0
0
0
0
1
0.073529
false
0
0.014706
0
0.088235
0.014706
0
0
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
3c749728947c088616bb2bf3b46fdb1485731043
5,021
py
Python
application/views/client/users/views.py
Zinston/giftr
997d4b8127b34cc0009621d66f69bc00ed3b985a
[ "Apache-2.0" ]
null
null
null
application/views/client/users/views.py
Zinston/giftr
997d4b8127b34cc0009621d66f69bc00ed3b985a
[ "Apache-2.0" ]
null
null
null
application/views/client/users/views.py
Zinston/giftr
997d4b8127b34cc0009621d66f69bc00ed3b985a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Define routes for CRUD operations on users.""" from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from application.models import (Base, Gift, Claim, User) from flask import (request, redi...
28.050279
113
0.632344
695
5,021
4.434532
0.21295
0.029202
0.012979
0.032446
0.418559
0.377028
0.358858
0.336145
0.268008
0.208306
0
0
0.253137
5,021
178
114
28.207865
0.821867
0.289584
0
0.297872
0
0
0.148824
0.034412
0
0
0
0
0
1
0.117021
false
0
0.053191
0
0.319149
0.074468
0
0
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
3c7515d17c45501d0f2599188199dfb75f86e5a6
2,077
py
Python
server.py
mleger45/embevent
c717adb6d172b83ae12cb82021df856831a4e4fb
[ "MIT" ]
null
null
null
server.py
mleger45/embevent
c717adb6d172b83ae12cb82021df856831a4e4fb
[ "MIT" ]
null
null
null
server.py
mleger45/embevent
c717adb6d172b83ae12cb82021df856831a4e4fb
[ "MIT" ]
null
null
null
from flask import Flask import requests from bs4 import BeautifulSoup import os import sqlite3 import logging logging.basicConfig(filename='example.log', level=logging.DEBUG) URL = os.environ['SOURCE_URL'] AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661...
32.968254
131
0.632162
262
2,077
4.900763
0.465649
0.027259
0.025701
0.034268
0.024922
0
0
0
0
0
0
0.038272
0.220029
2,077
63
132
32.968254
0.754321
0
0
0
0
0.020408
0.263234
0.029355
0
0
0
0
0
1
0.061224
false
0
0.122449
0.020408
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
3c7727ecdb99959039e2a39114163de2e8432514
1,549
py
Python
TraitsUI/examples/ButtonEditor_demo.py
marshallmcdonnell/interactive_plotting
35e9a781fa1a7328679794d27e24e194e35c012b
[ "MIT" ]
null
null
null
TraitsUI/examples/ButtonEditor_demo.py
marshallmcdonnell/interactive_plotting
35e9a781fa1a7328679794d27e24e194e35c012b
[ "MIT" ]
null
null
null
TraitsUI/examples/ButtonEditor_demo.py
marshallmcdonnell/interactive_plotting
35e9a781fa1a7328679794d27e24e194e35c012b
[ "MIT" ]
null
null
null
""" Implementation of a ButtonEditor demo plugin for Traits UI demo program. This demo shows each of the two styles of the ButtonEditor. (As of this writing, they are identical.) """ from traits.api import HasTraits, Button from traitsui.api import Item, View, Group from traitsui.message import message #-----------...
30.98
78
0.551323
158
1,549
5.278481
0.531646
0.043165
0.040767
0.043165
0
0
0
0
0
0
0
0.0035
0.262105
1,549
49
79
31.612245
0.726159
0.404132
0
0.142857
0
0
0.160932
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.380952
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
3c77652672bdfce35cef51c965f7b9c88501f504
1,181
py
Python
setup.py
FelixSchwarz/trac-dev-platform
d9ede1eb2c883466968a048eaede95ff868a4fda
[ "MIT" ]
null
null
null
setup.py
FelixSchwarz/trac-dev-platform
d9ede1eb2c883466968a048eaede95ff868a4fda
[ "MIT" ]
null
null
null
setup.py
FelixSchwarz/trac-dev-platform
d9ede1eb2c883466968a048eaede95ff868a4fda
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- import setuptools version='0.1' setuptools.setup( name='TracDevPlatformPlugin', version=version, description='Provide helpers to ease development on top of Trac', author='Felix Schwarz', author_email='felix.schwarz@oss.schwarz.eu', url='http:/...
31.078947
101
0.653683
125
1,181
6.064
0.672
0.03562
0.026385
0.044855
0.158311
0.158311
0.158311
0.158311
0.158311
0.158311
0
0.007439
0.203218
1,181
37
102
31.918919
0.798087
0.035563
0
0
0
0
0.520246
0.043134
0
0
0
0
0
1
0
false
0
0.034483
0
0.034483
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
3c78adc10fdbecc0bce8f85ff740740007a63985
276
py
Python
keylogger.py
ReLRail/project-touhou
fbfbdb81c40aa9b87143797c32af43d4e9d7c1e9
[ "MIT" ]
null
null
null
keylogger.py
ReLRail/project-touhou
fbfbdb81c40aa9b87143797c32af43d4e9d7c1e9
[ "MIT" ]
null
null
null
keylogger.py
ReLRail/project-touhou
fbfbdb81c40aa9b87143797c32af43d4e9d7c1e9
[ "MIT" ]
null
null
null
from pynput.keyboard import Key, Listener import logging logging.basicConfig(filename=("keylog.txt"), level=logging.DEBUG, format=" %(asctime)s - %(message)s") def on_press(key): logging.info(str(key)) with Listener(on_press=on_press) as listener: listener.join()
23
102
0.735507
39
276
5.128205
0.641026
0.105
0
0
0
0
0
0
0
0
0
0
0.119565
276
12
103
23
0.823045
0
0
0
0
0
0.129964
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3c7b515ae39c770bf0370e05e2c3d7ec44f6e7fd
2,687
py
Python
src/components/Bot.py
Vini-Dev-Py/Bot-ML
f1dfda7a43940a7ada707ccaa9dde486b3c5ddd3
[ "MIT" ]
null
null
null
src/components/Bot.py
Vini-Dev-Py/Bot-ML
f1dfda7a43940a7ada707ccaa9dde486b3c5ddd3
[ "MIT" ]
null
null
null
src/components/Bot.py
Vini-Dev-Py/Bot-ML
f1dfda7a43940a7ada707ccaa9dde486b3c5ddd3
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time import random import datetime from tkinter import * from tkinter import messagebox from tkinter import ttk import functools # import pathlib from conflista import Bot from salvacode import Salvar from escreve import escreve...
26.60396
106
0.671381
352
2,687
5.125
0.443182
0.023282
0.015521
0.017738
0.131929
0.104213
0.104213
0.104213
0.047672
0
0
0.03813
0.180127
2,687
101
107
26.60396
0.780754
0.077038
0
0.067797
0
0.033898
0.194343
0.050909
0
0
0
0
0
1
0.016949
false
0
0.220339
0
0.237288
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
3c80ebcea041e63107d9067c90a11c330c458c26
503
py
Python
Triple predictor P3.6/generate_lines.py
oligogenic/DIDA_SSL
cbf61892bfde999eadf31db918833f6c75a5c9f3
[ "MIT" ]
1
2018-07-19T10:34:46.000Z
2018-07-19T10:34:46.000Z
Triple predictor P3.6/generate_lines.py
oligogenic/DIDA_SSL
cbf61892bfde999eadf31db918833f6c75a5c9f3
[ "MIT" ]
null
null
null
Triple predictor P3.6/generate_lines.py
oligogenic/DIDA_SSL
cbf61892bfde999eadf31db918833f6c75a5c9f3
[ "MIT" ]
null
null
null
def binary(n): if n not in binary.memoize: binary.memoize[n] = binary(n//2) + str(n % 2) return binary.memoize[n] binary.memoize = {0: '0', 1: '1'} def get_binary_l(n, l): bin_str = binary(n) return (l - len(bin_str))*'0' + bin_str n_f = 9 with open('command_lines.txt', 'w') as out:...
33.533333
151
0.61829
94
503
3.148936
0.5
0.175676
0.094595
0.135135
0
0
0
0
0
0
0
0.050633
0.214712
503
14
152
35.928571
0.698734
0
0
0
0
0.083333
0.259714
0.143149
0
0
0
0
0
1
0.166667
false
0
0
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
3c81582355ba3220bcb59a6354b57fa7be7a46e7
17,422
py
Python
angular_binning/snr_per_bin.py
robinupham/angular_binning
da3f6bf32efd8bad1a7f61a9a457f521ed8ebe87
[ "MIT" ]
null
null
null
angular_binning/snr_per_bin.py
robinupham/angular_binning
da3f6bf32efd8bad1a7f61a9a457f521ed8ebe87
[ "MIT" ]
null
null
null
angular_binning/snr_per_bin.py
robinupham/angular_binning
da3f6bf32efd8bad1a7f61a9a457f521ed8ebe87
[ "MIT" ]
null
null
null
""" Functions for plotting the signal to noise per angular bin. """ import math import os.path import matplotlib import matplotlib.pyplot as plt import numpy as np import angular_binning.like_cf_gauss as like_cf DEG_TO_RAD = math.pi / 180.0 def plot_cl_cf(diag_she_cl_path, she_nl_path, lmin, lmax, theta_min, the...
47.862637
120
0.662438
2,852
17,422
3.787868
0.143759
0.024438
0.021383
0.009997
0.735722
0.662131
0.626215
0.60585
0.533555
0.503379
0
0.038998
0.21404
17,422
363
121
47.99449
0.749945
0.312421
0
0.415385
0
0.015385
0.095817
0.007015
0
0
0
0
0.025641
1
0.015385
false
0
0.030769
0
0.051282
0.015385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3c821672ff666bf16f14e39715a6449abc332ecc
1,182
py
Python
tests/integration/test_use_cases/test_18_confirm_purchase.py
datacraft-dsc/starfish-py
95ff24410f056e8e2d313c3af97439fe003e294a
[ "Apache-2.0" ]
4
2019-02-08T03:47:36.000Z
2019-10-17T21:45:23.000Z
tests/integration/test_use_cases/test_18_confirm_purchase.py
datacraft-dsc/starfish-py
95ff24410f056e8e2d313c3af97439fe003e294a
[ "Apache-2.0" ]
81
2019-02-09T01:01:51.000Z
2020-07-01T08:35:07.000Z
tests/integration/test_use_cases/test_18_confirm_purchase.py
oceanprotocol/ocean-py
318ad0de2519e61d0a301c040a48d1839cd82425
[ "Apache-2.0" ]
1
2021-01-28T12:14:03.000Z
2021-01-28T12:14:03.000Z
""" test_18_confirm_purchase As a developer building a service provider Agent for Ocean, I need a way to confirm if an Asset has been sucessfully puchased so that I can determine whether to serve the asset to a given requestor """ import secrets import logging import json from starfish.asset import ...
35.818182
91
0.764805
154
1,182
5.642857
0.461039
0.063291
0.097814
0.048331
0
0
0
0
0
0
0
0.008032
0.15736
1,182
32
92
36.9375
0.864458
0.188663
0
0
0
0
0.094218
0
0
0
0
0
0.2
1
0.05
false
0
0.2
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3c8705d494d8a3a52f621df0705a17180cb44780
1,230
py
Python
blaze/expr/tests/test_datetime.py
vitan/blaze
0cddb630ad1cf6be3967943337529adafa006ef5
[ "BSD-3-Clause" ]
1
2015-11-06T00:46:56.000Z
2015-11-06T00:46:56.000Z
blaze/expr/tests/test_datetime.py
vitan/blaze
0cddb630ad1cf6be3967943337529adafa006ef5
[ "BSD-3-Clause" ]
null
null
null
blaze/expr/tests/test_datetime.py
vitan/blaze
0cddb630ad1cf6be3967943337529adafa006ef5
[ "BSD-3-Clause" ]
null
null
null
from blaze.expr import TableSymbol from blaze.expr.datetime import isdatelike from blaze.compatibility import builtins from datashape import dshape import pytest def test_datetime_dshape(): t = TableSymbol('t', '5 * {name: string, when: datetime}') assert t.when.day.dshape == dshape('5 * int32') assert t....
29.285714
68
0.669919
165
1,230
4.872727
0.266667
0.043532
0.080846
0.136816
0.256219
0.221393
0.221393
0.221393
0.119403
0
0
0.007021
0.189431
1,230
41
69
30
0.799398
0
0
0.133333
0
0
0.178049
0
0
0
0
0
0.333333
1
0.2
false
0
0.166667
0
0.366667
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
3c8be6bc259868341293934801c28e199c01bfba
1,539
py
Python
dac4automlcomp/score.py
automl/dac4automlcomp
f1a8b4e2f0fc85ad19b86aa41856496732fed901
[ "Apache-2.0" ]
null
null
null
dac4automlcomp/score.py
automl/dac4automlcomp
f1a8b4e2f0fc85ad19b86aa41856496732fed901
[ "Apache-2.0" ]
null
null
null
dac4automlcomp/score.py
automl/dac4automlcomp
f1a8b4e2f0fc85ad19b86aa41856496732fed901
[ "Apache-2.0" ]
null
null
null
import argparse import os import time import gym import warnings # Parts of the code are inspired by the AutoML3 competition from sys import argv, path from os import getcwd from os.path import join verbose = True if __name__ == "__main__": parser = argparse.ArgumentParser( description="The experiment run...
23.676923
80
0.59974
191
1,539
4.685864
0.424084
0.12067
0.130726
0.050279
0.165363
0.118436
0.118436
0.069274
0
0
0
0.006233
0.270305
1,539
64
81
24.046875
0.790739
0.037037
0
0.173077
0
0
0.186739
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0.115385
0
0
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
3c8d359a9fdb99a983fada9faf82eacea1c12723
11,067
py
Python
emails.py
kotx/proton-vpn-account-generator
8f99093cdf1d0244a91493a09d2e37a02721d144
[ "MIT" ]
5
2020-04-03T13:57:07.000Z
2022-03-11T03:20:14.000Z
emails.py
kotx/proton-vpn-account-generator
8f99093cdf1d0244a91493a09d2e37a02721d144
[ "MIT" ]
2
2020-10-15T20:26:44.000Z
2021-05-29T09:36:10.000Z
emails.py
kotx/proton-vpn-account-generator
8f99093cdf1d0244a91493a09d2e37a02721d144
[ "MIT" ]
5
2020-04-03T13:57:08.000Z
2022-01-23T08:52:16.000Z
# 🚀 This Project is in it's early stages of Development. # 📌 Working on new features and main menu. # ⚠️ Any Questions or Suggestions please Mail to: hendriksdevmail@gmail.com # 🖥 Version: 1.0.0 from selenium import webdriver from colorama import Fore, Back, Style import warnings import time import random import st...
37.771331
218
0.539893
1,126
11,067
4.761989
0.250444
0.057814
0.098284
0.109847
0.418314
0.381574
0.338493
0.298769
0.242074
0.163372
0
0.024567
0.315894
11,067
292
219
37.900685
0.683001
0.239089
0
0.457143
0
0.08
0.354947
0.017586
0
0
0
0
0
1
0.011429
false
0.028571
0.08
0
0.102857
0.074286
0
0
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
3c8d77d4d57e1f26a6211fbc207a54886ca5a41a
4,201
py
Python
ApproachV4/src/SentenceSimilarity.py
kanishk2509/TwitterBotDetection
26355410a43c27fff9d58f71ca0d87ff6e707b6a
[ "Unlicense" ]
2
2021-06-09T20:55:17.000Z
2021-11-03T03:07:37.000Z
ApproachV4/src/SentenceSimilarity.py
kanishk2509/TwitterBotDetection
26355410a43c27fff9d58f71ca0d87ff6e707b6a
[ "Unlicense" ]
null
null
null
ApproachV4/src/SentenceSimilarity.py
kanishk2509/TwitterBotDetection
26355410a43c27fff9d58f71ca0d87ff6e707b6a
[ "Unlicense" ]
1
2020-07-26T02:31:38.000Z
2020-07-26T02:31:38.000Z
###################### # Loading word2vec ###################### import os from threading import Semaphore import gensim from gensim.models import KeyedVectors pathToBinVectors = '/Users/kanishksinha/Downloads/GoogleNews-vectors-negative300.bin' newFilePath = '/Users/kanishksinha/Downloads/GoogleNews-vectors-negative...
44.221053
191
0.615092
442
4,201
5.798643
0.423077
0.037456
0.030433
0.042138
0.078814
0.078814
0.057745
0.057745
0.057745
0
0
0.008527
0.190431
4,201
94
192
44.691489
0.745075
0.240895
0
0.238806
0
0
0.289137
0.194249
0
0
0
0
0
1
0.059701
false
0.014925
0.134328
0
0.268657
0.164179
0
0
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
3c8f9f7ee5923a773fc310335335a5650e8aeefb
12,399
py
Python
src/api.py
CodexLink/ProfileMD_DRP
7604c0d43817daf3590306fd449352673db272fe
[ "Apache-2.0" ]
8
2021-09-22T21:06:13.000Z
2022-03-27T09:52:55.000Z
src/api.py
CodexLink/ProfileMD_DRP
7604c0d43817daf3590306fd449352673db272fe
[ "Apache-2.0" ]
6
2021-07-30T09:35:01.000Z
2022-03-30T13:16:03.000Z
src/api.py
CodexLink/ProfileMD_DRP
7604c0d43817daf3590306fd449352673db272fe
[ "Apache-2.0" ]
2
2021-08-14T10:45:37.000Z
2021-11-20T12:41:13.000Z
""" Copyright 2021 Janrey "CodexLink" Licas Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
46.092937
234
0.583595
1,316
12,399
5.398176
0.318389
0.016892
0.011824
0.008446
0.191723
0.157095
0.124578
0.114865
0.079673
0.079673
0
0.006031
0.344705
12,399
268
235
46.264925
0.868308
0.164771
0
0.16763
0
0.023121
0.190169
0.026911
0
0
0
0.003731
0
1
0
false
0
0.046243
0
0.086705
0.023121
0
0
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
3c9056dfb6354e5daafd7bffd768de97d7f13f54
11,790
py
Python
src/fidesops/service/connectors/query_config.py
nathanawmk/fidesops
1ab840206a78e60673aebd5838ba567095512a58
[ "Apache-2.0" ]
null
null
null
src/fidesops/service/connectors/query_config.py
nathanawmk/fidesops
1ab840206a78e60673aebd5838ba567095512a58
[ "Apache-2.0" ]
null
null
null
src/fidesops/service/connectors/query_config.py
nathanawmk/fidesops
1ab840206a78e60673aebd5838ba567095512a58
[ "Apache-2.0" ]
null
null
null
import logging import re from abc import ABC, abstractmethod from typing import Dict, Any, List, Set, Optional, Generic, TypeVar, Tuple from sqlalchemy import text from sqlalchemy.sql.elements import TextClause from fidesops.graph.config import ROOT_COLLECTION_ADDRESS, CollectionAddress from fidesops.graph.traversal ...
38.655738
128
0.598473
1,532
11,790
4.475849
0.156658
0.016334
0.014438
0.0175
0.382529
0.356716
0.319236
0.257255
0.227651
0.216567
0
0.007356
0.296692
11,790
304
129
38.782895
0.819585
0.16972
0
0.313131
0
0.010101
0.081027
0.020146
0
0
0
0
0
1
0.126263
false
0.010101
0.050505
0.010101
0.348485
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
3c97c75c9954f8ab840e506c7e164088d7c58e96
17,208
py
Python
src/PR_recommend_algorithm.py
HyunJW/An-Algorithm-for-Peer-Reviewer-Recommendation-Based-on-Scholarly-Activity-Assessment
6e94a7775f110bd74a71182f0d29baa91f880ac9
[ "Apache-2.0" ]
2
2020-05-25T08:20:54.000Z
2020-05-25T08:21:02.000Z
src/PR_recommend_algorithm.py
HyunJW/An-Algorithm-for-Peer-Reviewer-Recommendation
6e94a7775f110bd74a71182f0d29baa91f880ac9
[ "Apache-2.0" ]
null
null
null
src/PR_recommend_algorithm.py
HyunJW/An-Algorithm-for-Peer-Reviewer-Recommendation
6e94a7775f110bd74a71182f0d29baa91f880ac9
[ "Apache-2.0" ]
null
null
null
#-*- coding:utf-8 -*- #import python packages from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics.pairwise import cosine_similarity from sklearn.metrics import adjusted_rand_score from sklearn.metrics import silhouette_samples fr...
29.01855
179
0.609949
2,208
17,208
4.491848
0.148551
0.022585
0.013309
0.018855
0.36217
0.260738
0.185723
0.152853
0.129764
0.090341
0
0.014202
0.279812
17,208
593
180
29.01855
0.786089
0.06404
0
0.086687
0
0
0.062341
0.022522
0
0
0
0
0
1
0.03096
false
0
0.105263
0.003096
0.157895
0.006192
0
0
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