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
34bbafd4c9930c0faccaa0114904fc2722169c13
778
py
Python
manage.py
YaroslavChyhryn/SchoolAPI
6b5eb4e1faf6b962561109fc227057ad0f8d4d92
[ "MIT" ]
null
null
null
manage.py
YaroslavChyhryn/SchoolAPI
6b5eb4e1faf6b962561109fc227057ad0f8d4d92
[ "MIT" ]
null
null
null
manage.py
YaroslavChyhryn/SchoolAPI
6b5eb4e1faf6b962561109fc227057ad0f8d4d92
[ "MIT" ]
null
null
null
from flask_script import Manager, prompt_bool # from flask_migrate import Migrate, MigrateCommand from school_api.app import create_app from school_api.db import create_tables, drop_tables from school_api.data_generator import test_db """ Refused flask_migration because it was overkill for this project """ app = create...
20.473684
66
0.746787
110
778
5.018182
0.418182
0.081522
0.070652
0.068841
0.101449
0.101449
0
0
0
0
0
0
0.161954
778
37
67
21.027027
0.846626
0.151671
0
0.380952
0
0
0.087329
0
0
0
0
0
0
1
0.142857
false
0
0.190476
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
34bcda748e6f244af235e4cdcc2cf69df9e0d4a6
2,512
py
Python
info_modules/custom/example/layer_info.py
HusseinKabbout/qwc-feature-info-service
3d7cdbc1a3dc4a3725ba0529204848d47c4ed87e
[ "MIT" ]
null
null
null
info_modules/custom/example/layer_info.py
HusseinKabbout/qwc-feature-info-service
3d7cdbc1a3dc4a3725ba0529204848d47c4ed87e
[ "MIT" ]
null
null
null
info_modules/custom/example/layer_info.py
HusseinKabbout/qwc-feature-info-service
3d7cdbc1a3dc4a3725ba0529204848d47c4ed87e
[ "MIT" ]
2
2020-03-24T09:13:14.000Z
2021-09-29T10:43:31.000Z
# Sample implementation of a custom layer info module def layer_info(layer, x, y, crs, params, identity): """Query layer and return info result as dict: { 'features': [ { 'id': <feature ID>, # optional 'attributes': [ ...
31.797468
78
0.48328
255
2,512
4.713725
0.364706
0.046589
0.052413
0.069884
0.086522
0.054908
0.054908
0.054908
0
0
0
0.011311
0.401672
2,512
78
79
32.205128
0.788423
0.680732
0
0
0
0
0.164274
0
0
0
0
0
0
1
0.038462
false
0
0
0
0.076923
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
34bce8f103a1242d4cbbb176bc3c65328694b160
20,740
py
Python
integration/gCalIntegration.py
conzty01/RA_Scheduler
6bf4931871aef4058d93917e62ceb31766e06b3a
[ "MIT" ]
1
2021-03-31T05:26:17.000Z
2021-03-31T05:26:17.000Z
integration/gCalIntegration.py
conzty01/RA_Scheduler
6bf4931871aef4058d93917e62ceb31766e06b3a
[ "MIT" ]
83
2018-03-19T18:32:34.000Z
2022-02-01T02:15:01.000Z
integration/gCalIntegration.py
conzty01/RA_Scheduler
6bf4931871aef4058d93917e62ceb31766e06b3a
[ "MIT" ]
2
2021-01-15T22:16:00.000Z
2021-02-10T01:03:32.000Z
from google.auth.transport.requests import Request from googleapiclient.discovery import build from googleapiclient.errors import HttpError import google_auth_oauthlib.flow import logging import os class gCalIntegratinator: """ Object for handling interactions between RADSA and Google Calendar API. This ...
46.711712
129
0.588091
2,142
20,740
5.625117
0.218954
0.027886
0.011287
0.009959
0.246079
0.217362
0.173292
0.152461
0.13304
0.112374
0
0.002532
0.352652
20,740
443
130
46.817156
0.894905
0.45323
0
0.210843
0
0
0.154283
0.017957
0
0
0
0
0
1
0.096386
false
0
0.036145
0.006024
0.23494
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
34c1c0f2296ec9a8cff26832714ccf9c61244f45
961
py
Python
2017/February/2_maxcross/maxcross.py
alantao5056/USACO_Silver
6998cb916692af58a0b40b1a4aff0708ee1106b8
[ "MIT" ]
null
null
null
2017/February/2_maxcross/maxcross.py
alantao5056/USACO_Silver
6998cb916692af58a0b40b1a4aff0708ee1106b8
[ "MIT" ]
null
null
null
2017/February/2_maxcross/maxcross.py
alantao5056/USACO_Silver
6998cb916692af58a0b40b1a4aff0708ee1106b8
[ "MIT" ]
null
null
null
def getMinFix(K, N, signals): if K == 1: if set(signals) == {False}: return 1 return 0 startInd = 0 endInd = K - 1 lastStart = signals[0] curCount = signals[0:K].count(False) minCount = curCount for _ in range(N-K): startInd += 1 endInd += 1 if not lastStart: curCoun...
20.891304
62
0.612903
122
961
4.811475
0.344262
0.015332
0.037479
0.061329
0
0
0
0
0
0
0
0.016438
0.240375
961
46
63
20.891304
0.787671
0.014568
0
0
0
0
0.028541
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.15625
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
34c2dd9c20a2135a93d6b5c256d90be592b639fa
752
py
Python
Python/leetcode2/41. First Missing Positive.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
2
2015-12-02T06:44:01.000Z
2016-05-04T21:40:54.000Z
Python/leetcode2/41. First Missing Positive.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
null
null
null
Python/leetcode2/41. First Missing Positive.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
null
null
null
''' Given an unsorted integer array, find the smallest missing positive integer. Example 1: Input: [1,2,0] Output: 3 Example 2: Input: [3,4,-1,1] Output: 2 Example 3: Input: [7,8,9,11,12] Output: 1 Note: Your algorithm should run in O(n) time and uses constant extra space. ''' class Solution: def firstMissingP...
21.485714
76
0.575798
118
752
3.669492
0.457627
0.04157
0.032333
0.04157
0.110855
0.110855
0.110855
0
0
0
0
0.06391
0.292553
752
35
77
21.485714
0.75
0.364362
0
0.133333
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.333333
0.2
0
0
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
34c375e2a66eb6bf3befc20ceb9878fbf3112409
6,531
py
Python
4/figs/figX9/entropy_comparison_ew_hsm_igm.py
t-young31/thesis
2dea31ef64f4b7d55b8bdfc2094bab6579a529e0
[ "MIT" ]
null
null
null
4/figs/figX9/entropy_comparison_ew_hsm_igm.py
t-young31/thesis
2dea31ef64f4b7d55b8bdfc2094bab6579a529e0
[ "MIT" ]
null
null
null
4/figs/figX9/entropy_comparison_ew_hsm_igm.py
t-young31/thesis
2dea31ef64f4b7d55b8bdfc2094bab6579a529e0
[ "MIT" ]
null
null
null
""" Calculate the translational entropy with EW, HSM and IGM models """ import numpy as np import matplotlib.pyplot as plt from scipy import integrate plt.style.use("paper") ha2kjmol = 627.5 * 4.184 class Constants: hbar_au = 1.0 h_au = hbar_au * 2.0 * np.pi kb_au = 3.1668114E-6 # hartrees K-1 h_...
34.739362
100
0.548767
1,087
6,531
3.00644
0.182153
0.009792
0.023562
0.012852
0.339963
0.27295
0.253978
0.229192
0.179927
0.129743
0
0.095433
0.326137
6,531
187
101
34.925134
0.646898
0.160925
0
0.056075
0
0
0.005466
0
0
0
0
0
0
1
0.093458
false
0
0.028037
0.046729
0.457944
0.018692
0
0
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
34c9095464074f8f39e3db552d812f1238aad8c5
1,305
py
Python
main.py
Sirius1942/Agave_ui_tools
7789de1d40955046d2e40fbe1c552f4a082c1472
[ "MIT" ]
1
2019-04-10T03:17:16.000Z
2019-04-10T03:17:16.000Z
main.py
Sirius1942/Agave_ui_tools
7789de1d40955046d2e40fbe1c552f4a082c1472
[ "MIT" ]
null
null
null
main.py
Sirius1942/Agave_ui_tools
7789de1d40955046d2e40fbe1c552f4a082c1472
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import QApplication,QMainWindow,QDialog from PyQt5 import QtCore, QtGui, QtWidgets from ui.main_window import Ui_MainWindow # from login import Ui_dialog from lib.tcmd import TCmdClass # from SignalsE import Example class MyMainWindow(QMainWindow,Ui_MainWindow): def __init__(se...
24.622642
75
0.683525
145
1,305
5.931034
0.455172
0.04186
0.025581
0.039535
0.127907
0.127907
0
0
0
0
0
0.001932
0.206897
1,305
52
76
25.096154
0.828986
0.263602
0
0
0
0
0.022175
0
0
0
0
0
0
1
0.125
false
0
0.208333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
34ca769ede09a2256c0d08709d7ea01edfa2631c
1,675
py
Python
lib/python2.7/site-packages/setools/polcapquery.py
TinkerEdgeR-Android/prebuilts_python_linux-x86_2.7.5
5bcc5eb23dbb00d5e5dbf75835aa2fb79e8bafa2
[ "PSF-2.0" ]
null
null
null
lib/python2.7/site-packages/setools/polcapquery.py
TinkerEdgeR-Android/prebuilts_python_linux-x86_2.7.5
5bcc5eb23dbb00d5e5dbf75835aa2fb79e8bafa2
[ "PSF-2.0" ]
null
null
null
lib/python2.7/site-packages/setools/polcapquery.py
TinkerEdgeR-Android/prebuilts_python_linux-x86_2.7.5
5bcc5eb23dbb00d5e5dbf75835aa2fb79e8bafa2
[ "PSF-2.0" ]
1
2020-05-14T05:25:00.000Z
2020-05-14T05:25:00.000Z
# Copyright 2014-2015, Tresys Technology, LLC # # This file is part of SETools. # # SETools is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation, either version 2.1 of # the License, or (at your option) any l...
31.603774
90
0.699104
227
1,675
5.079295
0.537445
0.017346
0.031223
0.049436
0.08673
0.08673
0.058977
0
0
0
0
0.008514
0.228657
1,675
52
91
32.211538
0.883901
0.608358
0
0
0
0
0.087542
0
0
0
0
0
0
1
0.142857
false
0
0.214286
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
34ccc2dc6b0cda2dc80e2e73e7a9e34065db3f8d
826
py
Python
casepro/msgs/migrations/0040_outgoing_as_single_pt1.py
rapidpro/ureport-partners
16e5b95eae36ecbbe8ab2a59f34a2f5fd32ceacd
[ "BSD-3-Clause" ]
21
2015-07-21T15:57:49.000Z
2021-11-04T18:26:35.000Z
casepro/msgs/migrations/0040_outgoing_as_single_pt1.py
rapidpro/ureport-partners
16e5b95eae36ecbbe8ab2a59f34a2f5fd32ceacd
[ "BSD-3-Clause" ]
357
2015-05-22T07:26:45.000Z
2022-03-12T01:08:28.000Z
casepro/msgs/migrations/0040_outgoing_as_single_pt1.py
rapidpro/ureport-partners
16e5b95eae36ecbbe8ab2a59f34a2f5fd32ceacd
[ "BSD-3-Clause" ]
24
2015-05-28T12:30:25.000Z
2021-11-19T01:57:38.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("msgs", "0039_outgoing_text_non_null")] operations = [ migrations.AlterField( model_name="outgoing", name="backend...
33.04
110
0.654964
87
826
5.965517
0.54023
0.069364
0.131021
0.121387
0
0
0
0
0
0
0
0.007776
0.22155
826
24
111
34.416667
0.799378
0.025424
0
0.222222
0
0
0.211706
0.033624
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
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
34da6249230478c06324343ddaaf9e58a8828973
22,665
py
Python
tests/python3/test_lambda.py
pecigonzalo/aws-lambda-ddns-function
06e6c06bced80611238734d202deb284a5680813
[ "Apache-2.0" ]
120
2018-02-14T21:36:45.000Z
2022-03-23T20:52:17.000Z
tests/python3/test_lambda.py
pecigonzalo/aws-lambda-ddns-function
06e6c06bced80611238734d202deb284a5680813
[ "Apache-2.0" ]
17
2018-03-29T09:21:23.000Z
2021-04-21T21:48:42.000Z
tests/python3/test_lambda.py
pecigonzalo/aws-lambda-ddns-function
06e6c06bced80611238734d202deb284a5680813
[ "Apache-2.0" ]
70
2018-02-15T13:03:05.000Z
2022-02-24T13:52:43.000Z
import os import sys import boto3 import boto import moto import botocore import unittest import logging import re import sure import botocore.session from datetime import datetime from moto import mock_sns_deprecated, mock_sqs_deprecated from botocore.stub import Stubber from freezegun import freeze_time from mock imp...
30.382038
571
0.528039
2,270
22,665
5.02511
0.126872
0.007189
0.015341
0.03156
0.662751
0.623477
0.573332
0.563601
0.554133
0.542299
0
0.038103
0.346923
22,665
745
572
30.422819
0.732536
0.013545
0
0.53777
0
0.001799
0.152924
0.01387
0
0
0
0
0.048561
1
0.048561
false
0
0.035971
0
0.086331
0.046763
0
0
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
34db9103dcbc551abbdebff8ae585f4f1742d35b
1,929
py
Python
web/transiq/api/decorators.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
web/transiq/api/decorators.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
14
2020-06-05T23:06:45.000Z
2022-03-12T00:00:18.000Z
web/transiq/api/decorators.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
import json from api.helper import json_405_response, json_error_response def no_test(func): """ Use for URLs that do not require testing, use wisely """ def inner(request, *args, **kwargs): return func(request, *args, **kwargs) inner.__name__ = func.__name__ inner.__module__ = func._...
30.619048
95
0.653188
234
1,929
4.74359
0.226496
0.079279
0.122523
0.068468
0.620721
0.54955
0.511712
0.483784
0.483784
0.404505
0
0.013058
0.245723
1,929
62
96
31.112903
0.749828
0.026957
0
0.64
0
0
0.0446
0
0
0
0
0
0
1
0.16
false
0
0.04
0.02
0.46
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
34e14659ac3348a14f3cb971dd1656c1b96e47ab
4,917
py
Python
MIDI Remote Scripts/pushbase/step_duplicator.py
aarkwright/ableton_devices
fe5df3bbd64ccbc136bba722ba1e131a02969798
[ "MIT" ]
null
null
null
MIDI Remote Scripts/pushbase/step_duplicator.py
aarkwright/ableton_devices
fe5df3bbd64ccbc136bba722ba1e131a02969798
[ "MIT" ]
null
null
null
MIDI Remote Scripts/pushbase/step_duplicator.py
aarkwright/ableton_devices
fe5df3bbd64ccbc136bba722ba1e131a02969798
[ "MIT" ]
null
null
null
# uncompyle6 version 3.3.5 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)] # Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\pushbase\step_duplicator.py # Compiled at: 2018-11-30 15:48:12 from _...
39.653226
216
0.690462
642
4,917
4.934579
0.219626
0.078914
0.061869
0.026831
0.3125
0.207386
0.152146
0.084596
0.084596
0.052399
0
0.022667
0.228391
4,917
124
217
39.653226
0.812335
0.061623
0
0.27
0
0
0
0
0
0
0
0
0
1
0.14
false
0.01
0.07
0.02
0.31
0.01
0
0
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
34e4d3ae291ecf089e466ddec64c7d9c23c88213
1,540
py
Python
Python/Examples/Macros/MoveAxis.py
halmusaibeli/RoboDK-API
e017aa26715bc8d0fcbbc05e57acc32f2d2d6174
[ "MIT" ]
null
null
null
Python/Examples/Macros/MoveAxis.py
halmusaibeli/RoboDK-API
e017aa26715bc8d0fcbbc05e57acc32f2d2d6174
[ "MIT" ]
null
null
null
Python/Examples/Macros/MoveAxis.py
halmusaibeli/RoboDK-API
e017aa26715bc8d0fcbbc05e57acc32f2d2d6174
[ "MIT" ]
null
null
null
# This macro allows changing the position of an external axis by hand or within a program as a function call. # Example of a function call (units are in mm or deg): # MoveAxis(0) # MoveAxis(100) # https://robodk.com/doc/en/RoboDK-API.html import sys # allows getting the passed argument parameters from robodk.rob...
32.765957
161
0.698701
234
1,540
4.568376
0.478632
0.044902
0.024322
0.016838
0
0
0
0
0
0
0
0.005613
0.19026
1,540
46
162
33.478261
0.851644
0.542857
0
0
0
0.052632
0.255474
0
0
0
0
0
0
1
0
false
0
0.157895
0
0.157895
0.105263
0
0
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
34e5b5fd754168ef6338e900c37a7a2ea6696ba4
3,126
py
Python
pgcsv/db.py
pudo/pgcsv
9a6ae352da2ae3de5953b8b1f4c48dfcab403a3e
[ "MIT" ]
66
2017-02-05T19:36:03.000Z
2022-01-25T21:41:18.000Z
pgcsv/db.py
pudo/pgcsv
9a6ae352da2ae3de5953b8b1f4c48dfcab403a3e
[ "MIT" ]
4
2020-05-19T20:26:13.000Z
2021-06-25T15:27:47.000Z
pgcsv/db.py
pudo/pgcsv
9a6ae352da2ae3de5953b8b1f4c48dfcab403a3e
[ "MIT" ]
6
2017-12-02T15:37:38.000Z
2021-07-21T15:19:02.000Z
from psycopg2 import connect from psycopg2.sql import SQL, Identifier, Literal, Composed from collections import OrderedDict from itertools import count from pgcsv.util import normalize_column class Database(object): def __init__(self, uri, table, headers): self.conn = connect(uri) self.table = ...
39.075
71
0.519834
323
3,126
4.95356
0.26935
0.04
0.04375
0.075
0.326875
0.326875
0.271875
0.24
0.17875
0.1325
0
0.002064
0.380038
3,126
79
72
39.56962
0.823529
0.047665
0
0.227273
0
0
0.094581
0.008751
0
0
0
0
0
1
0.075758
false
0
0.075758
0
0.181818
0.015152
0
0
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
34ebcfd140d8b8342551373bb548dcc3e38235a3
11,609
py
Python
mixer.py
ejhumphrey/mixer_bingo
d78174384e4476de70348d3e17a72d45ff04d960
[ "0BSD" ]
null
null
null
mixer.py
ejhumphrey/mixer_bingo
d78174384e4476de70348d3e17a72d45ff04d960
[ "0BSD" ]
null
null
null
mixer.py
ejhumphrey/mixer_bingo
d78174384e4476de70348d3e17a72d45ff04d960
[ "0BSD" ]
null
null
null
from __future__ import print_function import argparse import json import jsonschema import logging import numpy as np import networkx as nx import os import pandas as pd import random import sys logger = logging.getLogger(name=__file__) def _load_schema(): schema_file = os.path.join(os.path.dirname(__file__), ...
27.839329
81
0.593591
1,540
11,609
4.327922
0.246104
0.049212
0.08192
0.083271
0.221005
0.147937
0.131283
0.122581
0.113578
0.113578
0
0.015862
0.266862
11,609
416
82
27.90625
0.767242
0.160221
0
0.135371
0
0.017467
0.199315
0.015192
0
0
0
0
0
1
0.048035
false
0
0.048035
0
0.139738
0.004367
0
0
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
34f1d3eabe979cf0b88b9e39d396c23d11f9013e
9,487
py
Python
bouncingball_cortix.py
seamuss1/BouncingBall
6c4ff0838fa0366798efd8922c2632a8bfa5f15b
[ "MIT" ]
1
2019-08-11T23:55:05.000Z
2019-08-11T23:55:05.000Z
bouncingball_cortix.py
seamuss1/BouncingBall
6c4ff0838fa0366798efd8922c2632a8bfa5f15b
[ "MIT" ]
null
null
null
bouncingball_cortix.py
seamuss1/BouncingBall
6c4ff0838fa0366798efd8922c2632a8bfa5f15b
[ "MIT" ]
null
null
null
import os, time, datetime, threading, random import numpy as np import matplotlib.pyplot as plt import sys from cortix.src.module import Module from cortix.src.port import Port from cortix.src.cortix_main import Cortix import time from bb_plot import Plot import shapely.geometry as geo import shapely.ops from shapely i...
39.529167
144
0.54211
1,305
9,487
3.906513
0.197701
0.029423
0.013731
0.012946
0.354845
0.316399
0.283444
0.244998
0.244998
0.244998
0
0.041448
0.315906
9,487
239
145
39.694561
0.744068
0.068093
0
0.339713
0
0
0.055121
0
0
0
0
0
0
1
0.028708
false
0
0.057416
0
0.100478
0.07177
0
0
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
34f2f00e1352060e6764c5a58765eca101cee86d
2,542
py
Python
lstm.py
ryubidragonfire/text-emo
a03a9aa0d2e055277fc63a70822816853e5a35c0
[ "MIT" ]
null
null
null
lstm.py
ryubidragonfire/text-emo
a03a9aa0d2e055277fc63a70822816853e5a35c0
[ "MIT" ]
null
null
null
lstm.py
ryubidragonfire/text-emo
a03a9aa0d2e055277fc63a70822816853e5a35c0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Sep 29 13:07:10 2016 @author: chyam purpose: A vanila lstm model for text classification. """ from __future__ import print_function from keras.models import Sequential from keras.layers import Dense, Dropout, Activation from keras.layers import LSTM from sklearn.feature_ex...
35.802817
152
0.712825
382
2,542
4.473822
0.395288
0.031597
0.023406
0.037449
0.021065
0
0
0
0
0
0
0.030942
0.160897
2,542
71
153
35.802817
0.770277
0.131393
0
0.097561
0
0
0.089991
0.035354
0
0
0
0
0
1
0.04878
false
0
0.219512
0
0.317073
0.243902
0
0
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
34f48be78d73f96e6ef88433990d92e5dd1a350b
7,584
py
Python
python/models/model_factory.py
rwightman/pytorch-cdiscount
95901bd77888f7480f282e4b1541c0fc1e021bf9
[ "Apache-2.0" ]
1
2022-03-09T09:40:43.000Z
2022-03-09T09:40:43.000Z
python/models/model_factory.py
rwightman/pytorch-cdiscount
95901bd77888f7480f282e4b1541c0fc1e021bf9
[ "Apache-2.0" ]
null
null
null
python/models/model_factory.py
rwightman/pytorch-cdiscount
95901bd77888f7480f282e4b1541c0fc1e021bf9
[ "Apache-2.0" ]
null
null
null
import torchvision.models from .resnext101_32x4d import resnext101_32x4d from .inception_v4 import inception_v4 from .inception_resnet_v2 import inception_resnet_v2 from .wrn50_2 import wrn50_2 from .my_densenet import densenet161, densenet121, densenet169, densenet201 from .my_resnet import resnet18, resnet34, resnet5...
47.10559
105
0.681566
857
7,584
5.731622
0.115519
0.120114
0.052932
0.081433
0.552524
0.495318
0.477402
0.468037
0.468037
0.468037
0
0.076786
0.18605
7,584
160
106
47.4
0.718937
0.006197
0
0.118881
0
0
0.303742
0.037553
0
0
0
0
0.006993
1
0.027972
false
0
0.06993
0
0.125874
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
34f4d60dbd3b87a88dce9e6ef7fc8bd1f475fd71
585
py
Python
add_+x.py
racytech/rpctests
886d97b9e16fd030586d0fca6945d8f7a277ae27
[ "Apache-2.0" ]
null
null
null
add_+x.py
racytech/rpctests
886d97b9e16fd030586d0fca6945d8f7a277ae27
[ "Apache-2.0" ]
null
null
null
add_+x.py
racytech/rpctests
886d97b9e16fd030586d0fca6945d8f7a277ae27
[ "Apache-2.0" ]
1
2021-09-03T17:14:55.000Z
2021-09-03T17:14:55.000Z
#!/usr/bin/env python3 """ Add +x to every .sh file """ # import argparse import os import subprocess def go_recursive(search_dir: str): objects = os.listdir(search_dir) for obj in objects: if obj == ".git": continue obj_path = f"{search_dir}/{obj}" if os.path.isdir(obj...
20.172414
60
0.560684
76
585
4.171053
0.565789
0.11041
0.050473
0
0
0
0
0
0
0
0
0.002463
0.305983
585
29
61
20.172414
0.778325
0.105983
0
0
0
0
0.104854
0
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.1875
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
34f5a27bc2eb816c9dabb375d6159c8eb8e17312
25,985
py
Python
texas.py
isaact23/texas
1ac70b00f0acf2f196aca87476d7bac97418afba
[ "MIT" ]
null
null
null
texas.py
isaact23/texas
1ac70b00f0acf2f196aca87476d7bac97418afba
[ "MIT" ]
null
null
null
texas.py
isaact23/texas
1ac70b00f0acf2f196aca87476d7bac97418afba
[ "MIT" ]
null
null
null
# TEXAS HOLD'EM (Program by Isaac Thompson) import random, itertools, copy, sys import os from playsound import playsound import pyttsx3 # Set to true to enable betting. do_bets = False RANKS = ['2', '3', '4', '5', '6', '7', '8', '9', 'T', 'J', 'Q', 'K', 'A'] SUITS = ['C', 'D', 'H', 'S'] SORT_RANKS = {'2': 0, '3': 1...
40.792779
151
0.516452
3,201
25,985
4.058419
0.148391
0.041567
0.027019
0.01401
0.352013
0.272804
0.217381
0.151797
0.129628
0.120237
0
0.025388
0.375486
25,985
636
152
40.856918
0.775142
0.087897
0
0.302913
0
0.005825
0.13822
0
0
0
0
0
0.003884
1
0.03301
false
0.001942
0.007767
0.001942
0.097087
0.017476
0
0
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
34f5d659040a322d337330d8a9d7b5449d63b66f
443
py
Python
no. of occurences of substring.py
devAmoghS/Python-Programs
5b8a67a2a41e0e4a844ae052b59fc22fdcdbdbf9
[ "MIT" ]
1
2019-09-18T14:06:50.000Z
2019-09-18T14:06:50.000Z
no. of occurences of substring.py
devAmoghS/Python-Programs
5b8a67a2a41e0e4a844ae052b59fc22fdcdbdbf9
[ "MIT" ]
null
null
null
no. of occurences of substring.py
devAmoghS/Python-Programs
5b8a67a2a41e0e4a844ae052b59fc22fdcdbdbf9
[ "MIT" ]
null
null
null
""" s="preeni" ss="e" """ s=input("enter the string:") ss=input("enter the substring:") j=0 for i in range(len(s)): m=s.find(ss) #the first occurence of ss if(j==0): print("m=%d"%m) if(m== -1 and j==0): print("no such substring is available") break if(m== -...
17.038462
48
0.465011
72
443
2.861111
0.458333
0.029126
0.126214
0
0
0
0
0
0
0
0
0.024221
0.34763
443
25
49
17.72
0.688581
0.117381
0
0.125
0
0
0.264045
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1875
0
0
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
34f78347f261274809e3a7533c6bc409939bf9b0
1,039
py
Python
leetcode/code/maximumProduct.py
exchris/Pythonlearn
174f38a86cf1c85d6fc099005aab3568e7549cd0
[ "MIT" ]
null
null
null
leetcode/code/maximumProduct.py
exchris/Pythonlearn
174f38a86cf1c85d6fc099005aab3568e7549cd0
[ "MIT" ]
1
2018-11-27T09:58:54.000Z
2018-11-27T09:58:54.000Z
leetcode/code/maximumProduct.py
exchris/pythonlearn
174f38a86cf1c85d6fc099005aab3568e7549cd0
[ "MIT" ]
null
null
null
#!/bin/usr/python # -*- coding:utf-8 -*- # 628.三个数的最大乘积 class Solution: def maximumProduct(self, nums): if len(nums) == 3: return nums[0] * nums[1] * nums[2] elif len(nums) < 3: return None else: z_num, f_num = [], [] for i in nums: ...
25.341463
53
0.405197
137
1,039
2.927007
0.313869
0.119701
0.049875
0.069825
0.054863
0.054863
0
0
0
0
0
0.075
0.46102
1,039
40
54
25.975
0.641071
0.057748
0
0.096774
0
0
0
0
0
0
0
0
0
1
0.032258
false
0
0
0
0.225806
0.032258
0
0
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
34f90454724956c5a7e90a92e40de7bf13365c40
20,610
py
Python
src/hr_system/hr_system.py
pablomarcel/HR-System
25edf82d0f4f37ededfb6c6b713a5d7c455ff67e
[ "MIT" ]
null
null
null
src/hr_system/hr_system.py
pablomarcel/HR-System
25edf82d0f4f37ededfb6c6b713a5d7c455ff67e
[ "MIT" ]
null
null
null
src/hr_system/hr_system.py
pablomarcel/HR-System
25edf82d0f4f37ededfb6c6b713a5d7c455ff67e
[ "MIT" ]
null
null
null
import sys import pyfiglet import pandas as pd import numpy as np from tabulate import tabulate import dateutil import datetime import re result = pyfiglet.figlet_format("h r s y s t e m", font="slant") strStatus = "" class UserSelection: """Handles User Selection Logic the class is used to implement a case...
29.783237
120
0.539835
2,215
20,610
4.948081
0.146275
0.036953
0.019161
0.01104
0.452555
0.40292
0.365876
0.327281
0.25438
0.211953
0
0.007036
0.35182
20,610
691
121
29.826339
0.813384
0.266861
0
0.473282
0
0.002545
0.153402
0.024866
0
0
0
0
0
1
0.10687
false
0.015267
0.020356
0.017812
0.201018
0.127226
0
0
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
5501abe3bf73d0c0ea6df544abcad09c5f1dc8eb
8,706
py
Python
src/pipeline/featureranking.py
heindorf/wsdmcup17-wdvd-classification
7c75447370b0645276e1f918ed1215a3e8a6c62e
[ "MIT" ]
2
2018-03-21T13:21:43.000Z
2018-06-13T21:58:51.000Z
src/pipeline/featureranking.py
wsdm-cup-2017/wsdmcup17-wdvd-classification
7c75447370b0645276e1f918ed1215a3e8a6c62e
[ "MIT" ]
null
null
null
src/pipeline/featureranking.py
wsdm-cup-2017/wsdmcup17-wdvd-classification
7c75447370b0645276e1f918ed1215a3e8a6c62e
[ "MIT" ]
2
2018-03-21T14:07:32.000Z
2020-02-24T10:40:52.000Z
# ----------------------------------------------------------------------------- # WSDM Cup 2017 Classification and Evaluation # # Copyright (c) 2017 Stefan Heindorf, Martin Potthast, Gregor Engels, Benno Stein # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associ...
39.93578
91
0.68045
1,047
8,706
5.434575
0.25788
0.012654
0.017223
0.020035
0.288049
0.231986
0.201406
0.156766
0.156766
0.136731
0
0.006333
0.183781
8,706
217
92
40.119816
0.794399
0.245693
0
0.158333
0
0
0.098304
0.016332
0
0
0
0
0
1
0.066667
false
0
0.058333
0.008333
0.166667
0.008333
0
0
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
550309304b59f46612eb7c9d7614edf6b323939f
25,470
py
Python
libjmp.py
RenolY2/obj2bjmp
de5ea2acf4493bec4c1b918b38099685fd9b864e
[ "MIT" ]
null
null
null
libjmp.py
RenolY2/obj2bjmp
de5ea2acf4493bec4c1b918b38099685fd9b864e
[ "MIT" ]
null
null
null
libjmp.py
RenolY2/obj2bjmp
de5ea2acf4493bec4c1b918b38099685fd9b864e
[ "MIT" ]
null
null
null
from struct import unpack, pack from math import ceil, inf, acos, degrees from vectors import Vector3, Triangle, Vector2, Matrix3x3 from re import match UPVECTOR = Vector3(0.0, 1.0, 0.0) FWVECTOR = Vector3(1.0, 0.0, 0.0) SIDEVECTOR = Vector3(0.0, 0.0, 1.0) def round_vector(vector, digits): vector.x = round(vector...
32.322335
117
0.517314
3,258
25,470
3.88981
0.081952
0.012231
0.003551
0.013414
0.485994
0.375286
0.313817
0.271601
0.249112
0.223546
0
0.042829
0.363801
25,470
788
118
32.322335
0.739262
0.083863
0
0.280142
0
0
0.023467
0.003671
0
0
0.003321
0
0.010638
1
0.067376
false
0.001773
0.008865
0.003546
0.120567
0.012411
0
0
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
5504298a3a2d8c197f31284679e78d49ef6eed72
585
py
Python
kattis/integerlists.py
div5252/competitive-programming
111902dff75e79e65213c95055ffb0bb15b76e94
[ "WTFPL" ]
506
2018-08-22T10:30:38.000Z
2022-03-31T10:01:49.000Z
kattis/integerlists.py
diegordzr/competitive-programming
1443fb4bd1c92c2acff64ba2828abb21b067e6e0
[ "WTFPL" ]
13
2019-08-07T18:31:18.000Z
2020-12-15T21:54:41.000Z
kattis/integerlists.py
diegordzr/competitive-programming
1443fb4bd1c92c2acff64ba2828abb21b067e6e0
[ "WTFPL" ]
234
2018-08-06T17:11:41.000Z
2022-03-26T10:56:42.000Z
#!/usr/bin/env python3 # https://open.kattis.com/problems/integerlists for _ in range(int(input())): p = input() n = int(input()) i, j = 0, n xs = input()[1:-1].split(',') front = True for c in p: if c == 'R': front = not front elif i == j: i += 1 ...
22.5
54
0.384615
74
585
3.027027
0.472973
0.044643
0.098214
0.107143
0.116071
0
0
0
0
0
0
0.023529
0.418803
585
25
55
23.4
0.635294
0.11453
0
0.217391
0
0
0.025194
0
0
0
0
0
0
1
0
false
0
0
0
0
0.130435
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
55046b3036b22157a72d92e77888dc355a149d40
3,177
py
Python
main/tests/test_middleware.py
uktrade/return-to-office
d4c53c734611413c9f8a7624e52dc35910c5ff57
[ "MIT" ]
1
2020-10-25T18:16:47.000Z
2020-10-25T18:16:47.000Z
main/tests/test_middleware.py
uktrade/return-to-office
d4c53c734611413c9f8a7624e52dc35910c5ff57
[ "MIT" ]
1
2020-10-27T07:11:26.000Z
2020-10-27T07:11:26.000Z
main/tests/test_middleware.py
uktrade/return-to-office
d4c53c734611413c9f8a7624e52dc35910c5ff57
[ "MIT" ]
null
null
null
import pytest from django.http import HttpResponse from django.urls import reverse from main.middleware import IpRestrictionMiddleware def dummy_view(_): return HttpResponse(status=200) class TestIpRestrictionMiddleware: def test_middleware_is_enabled(self, client, settings): settings.IP_RESTRICT =...
34.912088
98
0.657224
408
3,177
4.85049
0.166667
0.096008
0.109146
0.063669
0.674583
0.674583
0.66953
0.66953
0.610915
0.576049
0
0.042828
0.220963
3,177
90
99
35.3
0.756768
0.022663
0
0.424242
0
0.045455
0.100032
0.025815
0
0
0
0
0.106061
1
0.106061
false
0
0.060606
0.015152
0.19697
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
5505c2fad9d4eaf68b407e24b865a1b9411e4836
2,418
py
Python
modelproj/topic.py
cesell/modelproj
313f89784a19842c866fa2563b326e5d044a2301
[ "MIT" ]
null
null
null
modelproj/topic.py
cesell/modelproj
313f89784a19842c866fa2563b326e5d044a2301
[ "MIT" ]
null
null
null
modelproj/topic.py
cesell/modelproj
313f89784a19842c866fa2563b326e5d044a2301
[ "MIT" ]
null
null
null
import json import re from urllib.request import urlopen ''' The use of objects has various benefits. 1. Better control of context 2. State that can be evaluated 3. Data can be created and then processing can be added 4. Clean interface ''' class TopicSummarizer(): """TopicSummarizer - Summarizes ...
30.607595
124
0.63689
317
2,418
4.564669
0.343849
0.055287
0.044921
0.037319
0.270214
0.241189
0.185902
0.109191
0.064962
0.064962
0
0.003788
0.235732
2,418
78
125
31
0.779221
0.035153
0
0
0
0.042553
0.161306
0
0
0
0
0
0
1
0.191489
false
0
0.085106
0
0.489362
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
550824fc3e2f47ccef32bd1ac78448a3f415ba0f
4,154
py
Python
wanderingpole/classifyingtweets/train_wandering_old.py
ssdorsey/wandering-pole
606ad8f1979354e01dea1acf01107b88b3b9e91b
[ "MIT" ]
null
null
null
wanderingpole/classifyingtweets/train_wandering_old.py
ssdorsey/wandering-pole
606ad8f1979354e01dea1acf01107b88b3b9e91b
[ "MIT" ]
null
null
null
wanderingpole/classifyingtweets/train_wandering_old.py
ssdorsey/wandering-pole
606ad8f1979354e01dea1acf01107b88b3b9e91b
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import json from simpletransformers.classification import ClassificationModel, ClassificationArgs import sklearn from sklearn.model_selection import train_test_split import torch import re import matplotlib.pyplot as plt import matplotlib.ticker as ticker import os from tqdm impor...
32.708661
194
0.684401
587
4,154
4.660988
0.32879
0.049342
0.027412
0.03655
0.28326
0.218202
0.130117
0.07383
0.035088
0.035088
0
0.017549
0.135773
4,154
126
195
32.968254
0.744011
0.287434
0
0
0
0.016129
0.229374
0.12975
0
0
0
0.007937
0
1
0
false
0
0.193548
0
0.193548
0.016129
0
0
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
5508e6dcf9a3120fc2d2a1fa35c2fb918cef92fb
3,339
py
Python
Source/common.py
joaohenggeler/twitch-chat-highlights
826cda239de2e5185266a04c12a8909ae5f98a3b
[ "MIT" ]
null
null
null
Source/common.py
joaohenggeler/twitch-chat-highlights
826cda239de2e5185266a04c12a8909ae5f98a3b
[ "MIT" ]
null
null
null
Source/common.py
joaohenggeler/twitch-chat-highlights
826cda239de2e5185266a04c12a8909ae5f98a3b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ A module that defines any general purpose functions used by all scripts, including loading configuration files, connecting to the database, and handling Twitch's timestamp formats. """ import json import sqlite3 from datetime import datetime from typing import Tuple, Union ##############...
30.081081
112
0.632824
411
3,339
5.068127
0.413625
0.040326
0.033605
0.031205
0.209313
0.159386
0.1229
0.05953
0.05953
0.05953
0
0.016987
0.188979
3,339
111
113
30.081081
0.752216
0.180593
0
0.202899
0
0
0.417958
0
0
0
0
0
0
1
0.057971
false
0
0.057971
0
0.231884
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
550ab4d7e165fcec5a4c9ed00a1fc8a3d4f624ba
986
py
Python
unicodetest.py
conradstorz/SpeedTrivia
e222831223c704f5bb169d4c2d475c9e2a8c4c08
[ "Apache-2.0" ]
null
null
null
unicodetest.py
conradstorz/SpeedTrivia
e222831223c704f5bb169d4c2d475c9e2a8c4c08
[ "Apache-2.0" ]
1
2021-04-26T22:47:19.000Z
2021-04-26T22:47:19.000Z
unicodetest.py
conradstorz/SpeedTrivia
e222831223c704f5bb169d4c2d475c9e2a8c4c08
[ "Apache-2.0" ]
null
null
null
from unidecode import unidecode from unicodedata import name import ftfy for i in range(33, 65535): if i > 0xEFFFF: continue # Characters in Private Use Area and above are ignored if 0xD800 <= i <= 0xDFFF: continue h = hex(i) u = chr(i) f = ftfy.fix_text(u, normalization="NFKC") ...
30.8125
95
0.485801
136
986
3.419118
0.441176
0.090323
0.030108
0
0
0
0
0
0
0
0
0.027642
0.376268
986
31
96
31.806452
0.728455
0.063895
0
0.068966
0
0.068966
0.173913
0.046739
0
0
0.020652
0
0
1
0
false
0.034483
0.103448
0
0.103448
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
550c04ca9a44d927c37f244ee230dced2cf832ce
4,387
py
Python
app/weibo/views.py
guoweikuang/weibo_project
38cb2a6d72a16f2f8c1714e83564c833f8e4af0c
[ "Apache-2.0" ]
4
2019-03-25T08:47:22.000Z
2021-03-16T02:39:29.000Z
app/weibo/views.py
guoweikuang/weibo_project
38cb2a6d72a16f2f8c1714e83564c833f8e4af0c
[ "Apache-2.0" ]
1
2020-01-06T03:37:46.000Z
2020-01-06T03:37:46.000Z
app/weibo/views.py
guoweikuang/weibo_project
38cb2a6d72a16f2f8c1714e83564c833f8e4af0c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ ~~~~~~~~~~~~~~~~~~~~~~ main module #author guoweikuang """ from flask import render_template from flask import redirect from flask import url_for from flask import request from flask_login import login_required from pyecharts import Bar from pyecharts.utils import json_dumps #from pyechart...
29.843537
96
0.641213
555
4,387
4.834234
0.25045
0.045099
0.055908
0.04659
0.209467
0.149832
0.076034
0.076034
0.076034
0.046217
0
0.005958
0.234785
4,387
146
97
30.047945
0.793268
0.085708
0
0.092784
0
0
0.077041
0
0
0
0
0
0
1
0.061856
false
0
0.237113
0
0.381443
0.010309
0
0
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
550fca2bdb3d0148522e4c33f7841bfbb8e59b80
3,109
py
Python
remote-access/remote_connect.py
sag-tgo/thin-edge.io_examples
7da43f330b640d48c2b0f3be2594ff85fe5c9dfe
[ "Apache-2.0" ]
3
2021-06-07T19:11:23.000Z
2022-02-03T16:20:27.000Z
remote-access/remote_connect.py
sag-tgo/thin-edge.io_examples
7da43f330b640d48c2b0f3be2594ff85fe5c9dfe
[ "Apache-2.0" ]
5
2021-11-04T09:44:36.000Z
2022-03-30T22:19:11.000Z
remote-access/remote_connect.py
sag-tgo/thin-edge.io_examples
7da43f330b640d48c2b0f3be2594ff85fe5c9dfe
[ "Apache-2.0" ]
11
2021-06-16T14:04:01.000Z
2022-03-17T08:29:54.000Z
import logging from c8ydp.device_proxy import DeviceProxy, WebSocketFailureException from threading import Thread import threading from c8yMQTT import C8yMQTT import concurrent.futures import os logging.basicConfig(level=logging.INFO,format='%(asctime)s %(name)s %(message)s') logger = logging.getLogger(__name__) def...
38.382716
145
0.620135
344
3,109
5.505814
0.357558
0.052798
0.027455
0.029567
0.135692
0.101901
0.084477
0
0
0
0
0.023656
0.252171
3,109
80
146
38.8625
0.790968
0
0
0.073529
0
0.014706
0.203412
0.042163
0
0
0
0
0
1
0.073529
false
0
0.102941
0
0.205882
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
550fdb4e80b863ed65bbb7d6dee920e010a04788
1,397
py
Python
Homework 1/question_solutions/question_3_convergence.py
rukmal/FE-621-Homework
9c7cef7931b58aed54867acd8e8cf1928bc6d2dd
[ "MIT" ]
4
2020-04-29T04:34:50.000Z
2021-11-11T07:49:08.000Z
Homework 1/question_solutions/question_3_convergence.py
rukmal/FE-621-Homework
9c7cef7931b58aed54867acd8e8cf1928bc6d2dd
[ "MIT" ]
null
null
null
Homework 1/question_solutions/question_3_convergence.py
rukmal/FE-621-Homework
9c7cef7931b58aed54867acd8e8cf1928bc6d2dd
[ "MIT" ]
1
2020-04-23T07:32:44.000Z
2020-04-23T07:32:44.000Z
from context import fe621 import numpy as np import pandas as pd def convergenceSegmentLimit(): """Function to compute the number of segments required for convergence of various quadrature methods. """ # Objective function def f(x: float) -> float: return np.where(x == 0.0, 1.0, np.sin(x...
28.510204
78
0.662133
155
1,397
5.845161
0.516129
0.110375
0.110375
0.068433
0.189845
0.189845
0.189845
0.189845
0.189845
0.189845
0
0.022879
0.249105
1,397
48
79
29.104167
0.840801
0.23121
0
0.16
0
0
0.104563
0.040875
0
0
0
0
0
1
0.08
false
0
0.12
0.04
0.24
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
55169c728f2c5da43dc85a640e3450e734567aeb
20,482
py
Python
opusfilter/filters.py
BrightXiaoHan/OpusFilter
804c82a46837fc57ca69934314622043248f6042
[ "MIT" ]
null
null
null
opusfilter/filters.py
BrightXiaoHan/OpusFilter
804c82a46837fc57ca69934314622043248f6042
[ "MIT" ]
null
null
null
opusfilter/filters.py
BrightXiaoHan/OpusFilter
804c82a46837fc57ca69934314622043248f6042
[ "MIT" ]
null
null
null
"""Corpus filtering""" import difflib import itertools import logging import math import os import string from typing import Iterator, List, Tuple import rapidfuzz import regex from langid.langid import LanguageIdentifier, model import pycld2 from bs4 import BeautifulSoup as bs import fasttext from . import FilterAB...
36.640429
122
0.621424
2,508
20,482
4.955343
0.158293
0.032427
0.012391
0.01915
0.399903
0.36466
0.326118
0.309623
0.261667
0.230206
0
0.013227
0.280197
20,482
558
123
36.706093
0.829343
0.173811
0
0.34903
0
0.00277
0.077393
0.011488
0
0
0
0
0
1
0.149584
false
0.016621
0.049862
0.022161
0.34903
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
55192286c083738515eab7ff51801fcee926be51
2,119
py
Python
dkr-py310/docker-student-portal-310/course_files/begin_advanced/py_numpy_1.py
pbarton666/virtual_classroom
a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675
[ "MIT" ]
null
null
null
dkr-py310/docker-student-portal-310/course_files/begin_advanced/py_numpy_1.py
pbarton666/virtual_classroom
a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675
[ "MIT" ]
null
null
null
dkr-py310/docker-student-portal-310/course_files/begin_advanced/py_numpy_1.py
pbarton666/virtual_classroom
a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675
[ "MIT" ]
null
null
null
#py_numpy_1.py """a snake-charming application""" from PIL import Image import numpy as np import os idir =os.getcwd() iname= 'im3.png'# 'white_snake.PNG' saveas='new_snake.PNG' #sets up an array for pixel processing white=np.array([255,255,255,0]) #r, g, b, a transparent = np.array([0, 0, 0, 0]) background = whit...
32.6
88
0.747994
344
2,119
4.488372
0.366279
0.072539
0.007772
0.041451
0.154145
0.154145
0.154145
0.154145
0.154145
0.154145
0
0.017223
0.123171
2,119
65
89
32.6
0.813778
0.351581
0
0
0
0
0.04068
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
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
5519d50b257da54e3b0054563d77f75181fccdb3
2,958
py
Python
zfg2parser.py
valoeghese/ZoesteriaConf
10c3239acde2b4568bb48d1d71b3798ecff0afc3
[ "MIT" ]
1
2020-09-02T19:24:22.000Z
2020-09-02T19:24:22.000Z
zfg2parser.py
valoeghese/ZoesteriaConf
10c3239acde2b4568bb48d1d71b3798ecff0afc3
[ "MIT" ]
7
2020-08-08T01:57:29.000Z
2021-05-08T08:50:19.000Z
zfg2parser.py
valoeghese/ZoesteriaConf
10c3239acde2b4568bb48d1d71b3798ecff0afc3
[ "MIT" ]
1
2021-04-29T14:25:21.000Z
2021-04-29T14:25:21.000Z
class Container: def __init__(self): self.data = {} index = -1 # compound "container" entries def parseContainer(container, data, size): global index mode = 0 # 0 = var names, 1 = var values buffer = "" while index + 1 < size: index += 1 char = data[index] ...
29.58
85
0.499324
298
2,958
4.942953
0.278523
0.065173
0.04888
0.051595
0.363204
0.300747
0.300747
0.300747
0.238289
0.179905
0
0.008949
0.395538
2,958
99
86
29.878788
0.814877
0.162948
0
0.525
0
0
0.012739
0
0
0
0
0
0
1
0.0625
false
0.0125
0
0
0.1125
0.0125
0
0
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
551b09ca0d43e7df528a517a764809a6c7946e75
3,017
py
Python
syndicate/connection/secrets_manager_connection.py
Dmytro-Skorniakov/aws-syndicate
81363334886c53969f1f0a0c0ac0168318204990
[ "Apache-2.0" ]
null
null
null
syndicate/connection/secrets_manager_connection.py
Dmytro-Skorniakov/aws-syndicate
81363334886c53969f1f0a0c0ac0168318204990
[ "Apache-2.0" ]
null
null
null
syndicate/connection/secrets_manager_connection.py
Dmytro-Skorniakov/aws-syndicate
81363334886c53969f1f0a0c0ac0168318204990
[ "Apache-2.0" ]
null
null
null
""" Copyright 2018 EPAM Systems, Inc. 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...
39.181818
101
0.670202
362
3,017
5.364641
0.364641
0.046344
0.041195
0.021627
0.149846
0.066941
0.037075
0.037075
0
0
0
0.003993
0.2529
3,017
76
102
39.697368
0.857587
0.183626
0
0.122449
0
0
0.16646
0.019462
0
0
0
0
0.061224
1
0.102041
false
0.020408
0.061224
0
0.244898
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
551b46a9abb3f55dfb647a884266cebfd6c4db08
3,324
py
Python
Simple GAN/networks.py
Srujan35007/My-GANs
7953c859169134a0a84ac3cd674f629af9942465
[ "MIT" ]
null
null
null
Simple GAN/networks.py
Srujan35007/My-GANs
7953c859169134a0a84ac3cd674f629af9942465
[ "MIT" ]
null
null
null
Simple GAN/networks.py
Srujan35007/My-GANs
7953c859169134a0a84ac3cd674f629af9942465
[ "MIT" ]
null
null
null
import time b = time.time() import torch import torch.nn as nn import torch.nn.functional as F from torchsummary import summary from math import log2, exp a = time.time() print('Imports complete in %.3f seconds' % (a-b)) class Generator(nn.Module): def __init__(self,latent_dims=128,n_channels=3,max_resolution=64,...
39.571429
105
0.663357
467
3,324
4.430407
0.211991
0.058482
0.055099
0.050749
0.381344
0.304012
0.275979
0.161914
0.122765
0.073465
0
0.047655
0.21089
3,324
84
106
39.571429
0.741136
0.006619
0
0.138889
0
0
0.023629
0
0
0
0
0
0.013889
1
0.083333
false
0
0.097222
0.027778
0.263889
0.041667
0
0
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
551c341bfebf085d7288ee08b3180f837e7122dd
2,607
py
Python
ui/Rhino/RV2/dev/__temp/RV2init_console_cmd.py
tkmmark/compas-RV2
bc18f4dada9c1e31a0f7df4ef981934c6d2b05b3
[ "MIT" ]
null
null
null
ui/Rhino/RV2/dev/__temp/RV2init_console_cmd.py
tkmmark/compas-RV2
bc18f4dada9c1e31a0f7df4ef981934c6d2b05b3
[ "MIT" ]
null
null
null
ui/Rhino/RV2/dev/__temp/RV2init_console_cmd.py
tkmmark/compas-RV2
bc18f4dada9c1e31a0f7df4ef981934c6d2b05b3
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division import scriptcontext as sc try: import compas # noqa: F401 import compas_rhino # noqa: F401 import compas_ags # noqa: F401 import compas_tna # noqa: F401 import compas_cloud ...
24.59434
80
0.542769
290
2,607
4.734483
0.282759
0.037873
0.018208
0.036417
0.217043
0.086672
0.03933
0
0
0
0
0.066082
0.257
2,607
105
81
24.828571
0.642747
0.102417
0
0
0
0
0.328467
0.118935
0
0
0
0
0
1
0.014706
false
0
0.191176
0
0.205882
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
551c6b36cc572d6424d1e8e35b4d86a47b2d8f93
3,783
py
Python
utils/count_supported.py
delcypher/smt-coral-wrapper
e7024efd83ba2da87fb178917f49a6b430b9c01c
[ "MIT" ]
1
2018-05-04T03:51:58.000Z
2018-05-04T03:51:58.000Z
utils/count_supported.py
delcypher/smt2coral
e7024efd83ba2da87fb178917f49a6b430b9c01c
[ "MIT" ]
null
null
null
utils/count_supported.py
delcypher/smt2coral
e7024efd83ba2da87fb178917f49a6b430b9c01c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # vim: set sw=4 ts=4 softtabstop=4 expandtab: """ Read invocation info file for smt-runner and report which benchmarks are supported by the CoralPrinter. """ # HACK: put smt2coral in search path import os import sys _repo_root = os.path.dirname(os.path.dirname(__file__)) sys.path.insert(0, ...
32.612069
78
0.662437
441
3,783
5.426304
0.342404
0.050564
0.035102
0.040117
0.097785
0.025909
0
0
0
0
0
0.004478
0.23262
3,783
115
79
32.895652
0.819842
0.088025
0
0.070588
0
0
0.11176
0
0
0
0
0
0.035294
1
0.035294
false
0
0.094118
0
0.176471
0.070588
0
0
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
551f2a4107231a13573c3c3b43e182531e15c00c
18,810
py
Python
atoman/filtering/filterer.py
chrisdjscott/Atoman
e87ac31bbdcf53bb8f3efdfb109787d604890394
[ "MIT" ]
9
2015-11-23T12:13:34.000Z
2021-11-18T05:23:35.000Z
atoman/filtering/filterer.py
chrisdjscott/Atoman
e87ac31bbdcf53bb8f3efdfb109787d604890394
[ "MIT" ]
1
2017-07-17T20:27:50.000Z
2017-07-23T05:27:15.000Z
atoman/filtering/filterer.py
chrisdjscott/Atoman
e87ac31bbdcf53bb8f3efdfb109787d604890394
[ "MIT" ]
4
2015-11-23T12:13:37.000Z
2017-05-03T08:24:19.000Z
""" The filterer object. @author: Chris Scott """ from __future__ import absolute_import from __future__ import unicode_literals import copy import time import logging import numpy as np import six from six.moves import zip from .filters import _filtering as filtering_c from ..system.atoms import elements from . i...
42.080537
119
0.563477
1,617
18,810
6.528757
0.209648
0.029364
0.029838
0.024249
0.26068
0.220991
0.140665
0.110922
0.100407
0.091693
0
0.004833
0.350984
18,810
446
120
42.174888
0.859928
0.079532
0
0.171141
0
0.010067
0.085908
0
0
0
0
0.002242
0
1
0.033557
false
0.003356
0.050336
0
0.107383
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
551fb4d66e7bdb8b9da3ce7860f15d493f500f54
475
py
Python
Entree_in/rou.py
dipkhandait/Entree_in
5cc03555b1e8022262dffa0a0a459637fa9f49c7
[ "MIT" ]
null
null
null
Entree_in/rou.py
dipkhandait/Entree_in
5cc03555b1e8022262dffa0a0a459637fa9f49c7
[ "MIT" ]
null
null
null
Entree_in/rou.py
dipkhandait/Entree_in
5cc03555b1e8022262dffa0a0a459637fa9f49c7
[ "MIT" ]
null
null
null
import sqlite3 connection = sqlite3.connect("Project.db") cursor = connection.cursor() S_user = cursor.execute(f"SELECT * FROM Current_login WHERE No = '{1}'") record = S_user.fetchone() user = record[0] print(user) try: Spl_user = cursor.execute(f"SELECT * FROM Col_Pref_list where Username = '{user}'") recor...
26.388889
87
0.696842
64
475
5.0625
0.5625
0.030864
0.104938
0.111111
0.17284
0.17284
0
0
0
0
0
0.012626
0.166316
475
18
88
26.388889
0.805556
0
0
0
0
0
0.273109
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0.3125
0
0
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
5520df1b613fa85e6ad8dd2ba56eeb9d62e2e7df
2,766
py
Python
tests/cases/yield_test.py
MiguelMarcelino/py2many
9b040b2a157e265df9c053eaf3e5cd644d3e30d0
[ "MIT" ]
2
2022-02-02T11:37:53.000Z
2022-03-30T18:19:06.000Z
tests/cases/yield_test.py
MiguelMarcelino/py2many
9b040b2a157e265df9c053eaf3e5cd644d3e30d0
[ "MIT" ]
25
2022-02-28T21:19:11.000Z
2022-03-23T21:26:20.000Z
tests/cases/yield_test.py
MiguelMarcelino/py2many
9b040b2a157e265df9c053eaf3e5cd644d3e30d0
[ "MIT" ]
null
null
null
@resumable # For PyJL def generator_func(): num = 1 yield num num = 5 yield num num = 10 yield num @resumable def generator_func_loop(): num = 0 for n in range(0, 3): yield num + n @resumable def generator_func_loop_using_var(): num = 0 end = 2 end = 3 # should get ...
22.487805
109
0.5141
361
2,766
3.797784
0.232687
0.142232
0.039387
0.072939
0.268417
0.142961
0.109409
0.05981
0.04814
0.04814
0
0.054555
0.297542
2,766
123
110
22.487805
0.651055
0.267896
0
0.261905
0
0
0.038961
0.012987
0
0
0
0
0.083333
1
0.095238
false
0
0
0
0.107143
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5521cf44b0712c36f70ad0bbd932c50c521247f6
1,252
py
Python
apps/api/quipper/main.py
phillamb168/system-design
d074409211521c930a2b355cac102caef827d627
[ "Apache-2.0" ]
3
2021-11-12T11:00:35.000Z
2022-02-16T10:33:53.000Z
apps/api/quipper/main.py
phillamb168/system-design
d074409211521c930a2b355cac102caef827d627
[ "Apache-2.0" ]
null
null
null
apps/api/quipper/main.py
phillamb168/system-design
d074409211521c930a2b355cac102caef827d627
[ "Apache-2.0" ]
8
2021-08-04T18:47:18.000Z
2022-03-15T10:14:32.000Z
from fastapi import ( Depends, FastAPI, ) from fastapi.middleware.cors import CORSMiddleware from sqlalchemy.orm import Session from quipper import ( models, schemas, services, ) from quipper.database import ( SessionLocal, engine, ) # Create the tables models.Base.metadata.create_all(bin...
21.220339
76
0.664537
139
1,252
5.834532
0.453237
0.069051
0.039457
0.046856
0.051788
0
0
0
0
0
0
0.006122
0.217252
1,252
58
77
21.586207
0.821429
0.073482
0
0.046512
0
0
0.052723
0.027658
0
0
0
0
0
1
0.093023
false
0
0.116279
0.046512
0.255814
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
5522df8e11c9c1d695b6fd19a76f81ba0655ccc5
3,611
py
Python
data_structures/adjacency_list_graph.py
avg-2049-joe/py-algo-ds
4f9c3c086e134ee23fcc0ee3b981e81f40e860cd
[ "MIT" ]
null
null
null
data_structures/adjacency_list_graph.py
avg-2049-joe/py-algo-ds
4f9c3c086e134ee23fcc0ee3b981e81f40e860cd
[ "MIT" ]
null
null
null
data_structures/adjacency_list_graph.py
avg-2049-joe/py-algo-ds
4f9c3c086e134ee23fcc0ee3b981e81f40e860cd
[ "MIT" ]
null
null
null
"""Adjacency list is a graph representation using array or a hash map""" from collections import deque class AdjacencyListGraph: """Graph representation using dictionary""" def __init__(self): self.__nodes = {} def __str__(self): return str(self.__nodes) def insert_vertex(self, data...
27.356061
79
0.623927
476
3,611
4.529412
0.226891
0.045918
0.030612
0.025974
0.168831
0.132653
0.111317
0.111317
0.111317
0.072356
0
0.006319
0.298809
3,611
131
80
27.564886
0.845182
0.258377
0
0.211268
0
0
0.011468
0
0
0
0
0
0
1
0.140845
false
0
0.014085
0.014085
0.309859
0.056338
0
0
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
5523fbe79d2ce42233aa94670f1b7a5b2c7819fa
4,515
py
Python
monroe-netalyzr/files/runme2.py
ana-cc/dockerstuffs
98131138731dd3c7a18e4e1a3b6975e3778502f9
[ "BSD-2-Clause" ]
1
2020-09-10T19:15:09.000Z
2020-09-10T19:15:09.000Z
monroe-netalyzr/files/runme2.py
ana-cc/dockerstuffs
98131138731dd3c7a18e4e1a3b6975e3778502f9
[ "BSD-2-Clause" ]
null
null
null
monroe-netalyzr/files/runme2.py
ana-cc/dockerstuffs
98131138731dd3c7a18e4e1a3b6975e3778502f9
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python import json import subprocess import logging from pyroute2 import IPDB import sys logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger("runme") def add_dns(interface): str = "" try: with open('/dns') as dnsfile: dnsdata = dnsfile.readlines() dn...
32.021277
127
0.50897
499
4,515
4.527054
0.280561
0.102258
0.052678
0.055777
0.18548
0.17884
0.170429
0.130589
0.086764
0.086764
0
0.005502
0.355925
4,515
140
128
32.25
0.771321
0.003544
0
0.306306
0
0
0.172115
0.006004
0
0
0
0
0
1
0.018018
false
0
0.045045
0
0.072072
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
9b28efc68a829abe66b1f36c000e5c38c0f766de
9,725
py
Python
teptools/summarise.py
nelsyeung/teptools
90a8cde2793e509b30c6fca0c3f64320855cf7c6
[ "MIT" ]
null
null
null
teptools/summarise.py
nelsyeung/teptools
90a8cde2793e509b30c6fca0c3f64320855cf7c6
[ "MIT" ]
null
null
null
teptools/summarise.py
nelsyeung/teptools
90a8cde2793e509b30c6fca0c3f64320855cf7c6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import os import argparse import subprocess import textwrap import helpers class Summarise(): def __init__(self, file, term_cols): self.term_cols = term_cols self.cols_width = [21, 22, 11, 15, 22] self.in_lnv = False self.lnv_iteration = 0 ...
34.003497
79
0.55671
1,158
9,725
4.569948
0.228843
0.028345
0.022676
0.006803
0.150794
0.102797
0.069917
0.017763
0.017763
0
0
0.013893
0.333882
9,725
285
80
34.122807
0.803026
0.049974
0
0.120536
0
0
0.141321
0
0
0
0
0
0
1
0.03125
false
0.004464
0.026786
0
0.102679
0.040179
0
0
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
9b292f152e109d6afd9ce99c12e29518dfc1f37f
3,202
py
Python
catfeeder_stepper.py
novalis111/catfeeder
4597bb24b4d159b9a79ef18e808ccab15391c659
[ "MIT" ]
null
null
null
catfeeder_stepper.py
novalis111/catfeeder
4597bb24b4d159b9a79ef18e808ccab15391c659
[ "MIT" ]
null
null
null
catfeeder_stepper.py
novalis111/catfeeder
4597bb24b4d159b9a79ef18e808ccab15391c659
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Import required libraries import time import random import datetime import RPi.GPIO as GPIO # Use BCM GPIO references instead of physical pin numbers GPIO.setmode(GPIO.BCM) GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP) # 1 step = 1/4 of full def rotate(movesteps, rotat...
25.212598
100
0.538101
440
3,202
3.836364
0.340909
0.015403
0.012441
0.014218
0.133294
0.05628
0.018365
0.018365
0.016588
0.016588
0
0.067437
0.351655
3,202
126
101
25.412698
0.745183
0.206121
0
0.171429
0
0
0.042563
0
0
0
0
0
0
1
0.014286
false
0
0.057143
0
0.071429
0.085714
0
0
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
9b2ae5c5d7a422f9f2eda94d4feb8800f0416e6f
604
py
Python
SpoTwillio/search.py
Natfan/funlittlethings
80d5378b45b5c0ead725942ee50403bd057514a6
[ "MIT" ]
1
2017-12-03T15:08:42.000Z
2017-12-03T15:08:42.000Z
SpoTwillio/search.py
Natfan/funlittlethings
80d5378b45b5c0ead725942ee50403bd057514a6
[ "MIT" ]
2
2017-09-25T12:43:41.000Z
2021-05-07T14:29:27.000Z
SpoTwillio/search.py
Natfan/funlittlethings
80d5378b45b5c0ead725942ee50403bd057514a6
[ "MIT" ]
1
2017-09-04T19:37:42.000Z
2017-09-04T19:37:42.000Z
import spotipy import argparse sp = spotipy.Spotify() parser = argparse.ArgumentParser() parser.add_argument("term", help="The artist that you want to search for") parser.add_argument("-c", "--count", help="The amount of results that you want, capped at 20", type=int) args = parser.parse_args() def spoprint(): re...
27.454545
104
0.662252
89
604
4.460674
0.573034
0.06801
0.085642
0
0
0
0
0
0
0
0
0.012295
0.192053
604
21
105
28.761905
0.80123
0
0
0.222222
0
0
0.256623
0
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.166667
0.277778
0
0
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
9b2b9f0e1320f2cd7097a2cc090fb00dcd38d4c6
1,431
py
Python
wstest/handler/current_effect_status_handler_test.py
PedalController/PedalPiREST
aa9418d44f2f5dbec604753a03bf8a74057c627c
[ "Apache-2.0" ]
null
null
null
wstest/handler/current_effect_status_handler_test.py
PedalController/PedalPiREST
aa9418d44f2f5dbec604753a03bf8a74057c627c
[ "Apache-2.0" ]
42
2016-07-04T11:17:54.000Z
2018-03-18T18:36:09.000Z
wstest/handler/current_effect_status_handler_test.py
PedalController/PedalPiREST
aa9418d44f2f5dbec604753a03bf8a74057c627c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 SrMouraSilva # # 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,...
35.775
119
0.735849
189
1,431
5.439153
0.497355
0.054475
0.058366
0.031128
0.054475
0
0
0
0
0
0
0.008496
0.177498
1,431
39
120
36.692308
0.864911
0.383648
0
0
0
0
0.021889
0
0
0
0
0
0.125
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
9b374ff2739d4dbdac37bc7c8c986c366e319b95
1,250
py
Python
dmsl-runner/main.py
GloomyGhost-MosquitoSeal/DmslRunner
b541c27f9a9857012b465e153b5de827a8db4b29
[ "Apache-2.0" ]
null
null
null
dmsl-runner/main.py
GloomyGhost-MosquitoSeal/DmslRunner
b541c27f9a9857012b465e153b5de827a8db4b29
[ "Apache-2.0" ]
null
null
null
dmsl-runner/main.py
GloomyGhost-MosquitoSeal/DmslRunner
b541c27f9a9857012b465e153b5de827a8db4b29
[ "Apache-2.0" ]
null
null
null
import os import sys import json import time import base64 import subprocess DEBUG = 0 def json_paser(injson): injson = str.encode(injson) injson = base64.b64decode(injson) jsonin = json.loads(injson) if jsonin["language"] == "dmsl": code = jsonin["code"] code = bytes.decode(base64.b...
22.321429
79
0.5576
154
1,250
4.428571
0.435065
0.030792
0.02346
0.038123
0
0
0
0
0
0
0
0.025258
0.3032
1,250
56
80
22.321429
0.75775
0
0
0.085106
0
0
0.089528
0
0
0
0
0
0
1
0.042553
false
0
0.12766
0
0.212766
0.148936
0
0
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
9b38e1564807028d56e7217b8ffcc8fe5b8fefc8
399
py
Python
Task2G.py
JoeBarney1/floodlevelmonitor131
98d93ca3d5bf6d1f2f105529d2f758450f791188
[ "MIT" ]
1
2022-01-23T19:30:19.000Z
2022-01-23T19:30:19.000Z
Task2G.py
JoeBarney1/floodlevelmonitor131
98d93ca3d5bf6d1f2f105529d2f758450f791188
[ "MIT" ]
null
null
null
Task2G.py
JoeBarney1/floodlevelmonitor131
98d93ca3d5bf6d1f2f105529d2f758450f791188
[ "MIT" ]
null
null
null
from floodsystem.flood import highest_risk from floodsystem.stationdata import build_station_list def run(): """Requirements for Task 2G""" stations= build_station_list() for s in highest_risk(stations,dt=3,N=10,y=3): print(s) #works with whole list but takes v. long time if __name__ == "__mai...
30.692308
63
0.691729
59
399
4.440678
0.694915
0.114504
0.122137
0
0
0
0
0
0
0
0
0.018692
0.195489
399
13
64
30.692308
0.797508
0.172932
0
0
0
0
0.178462
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.333333
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b4525dbfb8005b0d75af097477692fce19cafdb
3,854
py
Python
main.py
poplock1/Number_guesser
2766d73e0f1babc980865de8fabe2f37d9ee43a6
[ "MIT" ]
null
null
null
main.py
poplock1/Number_guesser
2766d73e0f1babc980865de8fabe2f37d9ee43a6
[ "MIT" ]
null
null
null
main.py
poplock1/Number_guesser
2766d73e0f1babc980865de8fabe2f37d9ee43a6
[ "MIT" ]
null
null
null
import pygame import tensorflow as tf import sys import settings as stg import matplotlib.pyplot as plt from board import Grid import gui import numpy as np class Game(): def __init__(self): pygame.init() self.game_display = pygame.display.set_mode( (stg.display_x, stg.display_y)) ...
31.590164
123
0.577582
495
3,854
4.339394
0.228283
0.02933
0.041899
0.035382
0.150372
0.081006
0.081006
0.047486
0.047486
0.047486
0
0.015837
0.311884
3,854
121
124
31.85124
0.794118
0.127919
0
0.222222
0
0
0.014644
0.009863
0
0
0
0
0
1
0.088889
false
0
0.088889
0
0.188889
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
9b454cd03eb2a08f7263b1381a0130bff6f74d66
825
py
Python
examples/maskrcnn_fastai.py
ramaneswaran/mantisshrimp
d30c056f1f9f26a2ce42da73cfb32d591321f426
[ "Apache-2.0" ]
null
null
null
examples/maskrcnn_fastai.py
ramaneswaran/mantisshrimp
d30c056f1f9f26a2ce42da73cfb32d591321f426
[ "Apache-2.0" ]
8
2020-06-16T18:06:42.000Z
2020-09-15T22:35:56.000Z
examples/maskrcnn_fastai.py
ramaneswaran/mantisshrimp
d30c056f1f9f26a2ce42da73cfb32d591321f426
[ "Apache-2.0" ]
null
null
null
from mantisshrimp import * from mantisshrimp.hub.pennfundan import * from mantisshrimp.engines.fastai import * import albumentations as A source = get_pennfundan_data() parser = PennFundanParser(source) splitter = RandomSplitter([0.8, 0.2]) train_records, valid_records = parser.parse(splitter) train_transforms = Alb...
28.448276
79
0.796364
110
825
5.754545
0.472727
0.075829
0.06951
0.053712
0.088468
0.088468
0.088468
0
0
0
0
0.016129
0.098182
825
28
80
29.464286
0.834677
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.210526
0
0.210526
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
9b465713a6d45355da79d52e919ae9d389a96675
10,649
py
Python
setup.py
mdavezac/bempp
bc573062405bda107d1514e40b6153a8350d5ab5
[ "BSL-1.0" ]
null
null
null
setup.py
mdavezac/bempp
bc573062405bda107d1514e40b6153a8350d5ab5
[ "BSL-1.0" ]
null
null
null
setup.py
mdavezac/bempp
bc573062405bda107d1514e40b6153a8350d5ab5
[ "BSL-1.0" ]
null
null
null
from os.path import basename, dirname, join, abspath from setuptools import setup, Extension from distutils.command.build import build as dBuild from setuptools.command.install import install as dInstall from setuptools.command.build_ext import build_ext as dBuildExt from setuptools.command.bdist_egg import bdist_egg a...
35.855219
88
0.596676
1,188
10,649
5.158249
0.21633
0.023499
0.037533
0.047324
0.351501
0.279373
0.252774
0.217852
0.202024
0.155679
0
0.002223
0.281811
10,649
296
89
35.976351
0.799032
0.030707
0
0.314961
0
0
0.138778
0.006724
0
0
0
0
0
1
0.070866
false
0.003937
0.11811
0.003937
0.23622
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
9b4985b49cd879340b47fb541710318c2bb259dc
26,765
py
Python
demo/rrteAutoLog.py
CharlesWangYu/guitest
785f234321143a4a3f4afe92376dc4f138489b31
[ "BSD-3-Clause" ]
null
null
null
demo/rrteAutoLog.py
CharlesWangYu/guitest
785f234321143a4a3f4afe92376dc4f138489b31
[ "BSD-3-Clause" ]
null
null
null
demo/rrteAutoLog.py
CharlesWangYu/guitest
785f234321143a4a3f4afe92376dc4f138489b31
[ "BSD-3-Clause" ]
null
null
null
import pdb import logging import os import sys import time import subprocess import xlrd import win32gui import win32api import win32con #import comtypes from configparser import ConfigParser from comtypes.client import * from ctypes import * def logTreeItem(node): logging.info('--------------------------------------...
37.173611
256
0.74986
3,325
26,765
5.956692
0.133835
0.044986
0.043017
0.027769
0.48662
0.44431
0.382662
0.337675
0.321165
0.303241
0
0.007842
0.132897
26,765
719
257
37.225313
0.84557
0.092023
0
0.318966
0
0
0.053634
0.012092
0
0
0
0.001391
0.075862
1
0.087931
false
0.013793
0.022414
0
0.215517
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
9b4a434127e56ce9f10a860ea190256cba7c7ff6
2,592
py
Python
project-euler/261/euler_261_v3.py
zoffixznet/project-euler
39921379385ae2521354c7266a541c46785e85a2
[ "MIT" ]
null
null
null
project-euler/261/euler_261_v3.py
zoffixznet/project-euler
39921379385ae2521354c7266a541c46785e85a2
[ "MIT" ]
null
null
null
project-euler/261/euler_261_v3.py
zoffixznet/project-euler
39921379385ae2521354c7266a541c46785e85a2
[ "MIT" ]
null
null
null
# The Expat License # # Copyright (c) 2017, Shlomi Fish # # 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, ...
28.483516
79
0.531636
366
2,592
3.691257
0.396175
0.065137
0.006662
0.022206
0
0
0
0
0
0
0
0.035431
0.368441
2,592
90
80
28.8
0.78986
0.412809
0
0.066667
0
0.016667
0.049333
0
0
0
0
0
0
1
0.033333
false
0
0.016667
0
0.05
0.05
0
0
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
9b4addb7383ad54fbd74f3fafd29a6bba825287f
4,331
py
Python
Naive_Bayes/lib/naive_bayes.py
DavexPro/MLStudy
869ab4e569fe1cde1a3a6238977282b81a71fc81
[ "MIT" ]
null
null
null
Naive_Bayes/lib/naive_bayes.py
DavexPro/MLStudy
869ab4e569fe1cde1a3a6238977282b81a71fc81
[ "MIT" ]
null
null
null
Naive_Bayes/lib/naive_bayes.py
DavexPro/MLStudy
869ab4e569fe1cde1a3a6238977282b81a71fc81
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding=utf-8 # -*- utf8 -*- # author=dave.fang@outlook.com # create=20170330 import math from lib.log import LOGGER class NaiveBayes: def __init__(self): # 元数据 self.data_set = [] # 分类后的数据 self.separate_set = {} # 分类后, 性别的先验概率 self.separate_p...
31.384058
111
0.563842
487
4,331
4.821355
0.258727
0.127768
0.117547
0.121806
0.285775
0.241908
0.135009
0
0
0
0
0.013563
0.302009
4,331
137
112
31.613139
0.763149
0.126991
0
0.03125
0
0
0.055194
0
0
0
0
0
0
1
0.125
false
0
0.046875
0
0.234375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b4d709976efa66a27e01fd0d18980bfda0f6d63
1,004
py
Python
views/sprite_views/combo_attack_sprite.py
kuyu12/pygame_fight_game
3bbc286b9f33c6d6d9db9bea21f9b7af15247df5
[ "MIT" ]
1
2020-08-03T07:54:59.000Z
2020-08-03T07:54:59.000Z
views/sprite_views/combo_attack_sprite.py
kuyu12/pygame_fight_game
3bbc286b9f33c6d6d9db9bea21f9b7af15247df5
[ "MIT" ]
null
null
null
views/sprite_views/combo_attack_sprite.py
kuyu12/pygame_fight_game
3bbc286b9f33c6d6d9db9bea21f9b7af15247df5
[ "MIT" ]
null
null
null
from views.sprite_views.attack_sprite import AttackSprite, AttackState from views.sprite_views.movement_sprite import Direction, State class ComboAttackSprite(AttackSprite): def __init__(self, player_data, combo_attack, on_finish): self.combo_attack = combo_attack self.combo_images = player_data....
37.185185
115
0.721116
132
1,004
5.106061
0.348485
0.130564
0.04451
0.059347
0.074184
0.074184
0.074184
0
0
0
0
0.004963
0.197211
1,004
26
116
38.615385
0.831266
0
0
0
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0.105263
0
0.263158
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
9b4fcde6493e496f8266585c418f51bc87980875
6,457
py
Python
payctl/utils.py
arjanz/substrate-payctl
57d13155ffd8e200d54ec4d4382a09b757fa8211
[ "MIT" ]
null
null
null
payctl/utils.py
arjanz/substrate-payctl
57d13155ffd8e200d54ec4d4382a09b757fa8211
[ "MIT" ]
null
null
null
payctl/utils.py
arjanz/substrate-payctl
57d13155ffd8e200d54ec4d4382a09b757fa8211
[ "MIT" ]
null
null
null
from substrateinterface import SubstrateInterface, Keypair from substrateinterface.utils.ss58 import ss58_encode, ss58_decode # # get_config - Get a default and validator specific config elements from args and config. # def get_config(args, config, key, section='Defaults'): if vars(args)[key] is not None: ...
32.447236
106
0.647205
721
6,457
5.545076
0.183079
0.041271
0.06003
0.038019
0.32066
0.198349
0.110555
0.053527
0.015008
0
0
0.003381
0.266997
6,457
198
107
32.611111
0.841327
0.18507
0
0.177966
0
0
0.068669
0
0
0
0
0
0
1
0.076271
false
0
0.016949
0
0.194915
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
9b52940acbc894f83db7c38174cba4aed0fe37b6
7,279
py
Python
Notepad++/programfiles/Notepad++/plugins/PythonScript/scripts/Samples/LogfileLexer.py
slim71/Utils
5fcb0ec604cc039668f132c102d6bd2050bcea5c
[ "Unlicense" ]
null
null
null
Notepad++/programfiles/Notepad++/plugins/PythonScript/scripts/Samples/LogfileLexer.py
slim71/Utils
5fcb0ec604cc039668f132c102d6bd2050bcea5c
[ "Unlicense" ]
null
null
null
Notepad++/programfiles/Notepad++/plugins/PythonScript/scripts/Samples/LogfileLexer.py
slim71/Utils
5fcb0ec604cc039668f132c102d6bd2050bcea5c
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ LogfileLexer - Demo Highlights whole lines which matches the regex. Usage: Load a logfile, modify error and warning regex and run script to see how it works Note: By commenting or deleting everything, including, the <comment_or_delete> tags it is ready to be us...
37.911458
96
0.615469
854
7,279
5.105386
0.314988
0.027523
0.011009
0.009633
0.072936
0.05367
0.029817
0
0
0
0
0.009873
0.318176
7,279
191
97
38.109948
0.868628
0.371342
0
0.1125
0
0
0.044422
0
0
0
0
0
0
1
0.15
false
0
0.025
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
9b52da16ba296fc3a30eb27a8abe81a9c2046c19
913
py
Python
py_mybatis/mapper_func.py
malone081021/py_mybatis
bea69b2aa0d17d9a96ddf596bc63bd88e5a2045e
[ "Apache-2.0" ]
15
2020-08-20T03:57:13.000Z
2022-02-01T03:08:14.000Z
py_mybatis/mapper_func.py
malone081021/py_mybatis
bea69b2aa0d17d9a96ddf596bc63bd88e5a2045e
[ "Apache-2.0" ]
3
2020-08-20T05:43:22.000Z
2020-09-23T08:08:10.000Z
py_mybatis/mapper_func.py
malone081021/py_mybatis
bea69b2aa0d17d9a96ddf596bc63bd88e5a2045e
[ "Apache-2.0" ]
10
2020-12-10T06:17:20.000Z
2022-02-26T07:07:48.000Z
from .logger import LOG from .funs import * # 函数容器 class PyFunction(object): def __init__(self): self.function_map = dict() def register_func(self, function_name: str, func): if function_name in self.function_map: LOG.warning("function {} exist".format(function_name)) ...
25.361111
73
0.682366
122
913
4.811475
0.336066
0.183986
0.127768
0.102215
0.335605
0.218058
0.105622
0
0
0
0
0
0.231106
913
35
74
26.085714
0.836182
0.031763
0
0.090909
0
0
0.01934
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b533be27e81a8ec5389e0a6e1d39a3dcf1f48a7
3,283
py
Python
multiAgentEnv/maenv/mpe/_mpe_utils/forward_models/forward_model.py
eranbTAU/Closing-the-Reality-Gap-for-a-Multi-Agent-System-Using-GAN
3df5f8ba1069ce3f16f1ab743da9cbdd3bddd43c
[ "MIT" ]
null
null
null
multiAgentEnv/maenv/mpe/_mpe_utils/forward_models/forward_model.py
eranbTAU/Closing-the-Reality-Gap-for-a-Multi-Agent-System-Using-GAN
3df5f8ba1069ce3f16f1ab743da9cbdd3bddd43c
[ "MIT" ]
null
null
null
multiAgentEnv/maenv/mpe/_mpe_utils/forward_models/forward_model.py
eranbTAU/Closing-the-Reality-Gap-for-a-Multi-Agent-System-Using-GAN
3df5f8ba1069ce3f16f1ab743da9cbdd3bddd43c
[ "MIT" ]
1
2022-02-22T11:06:40.000Z
2022-02-22T11:06:40.000Z
import torch import numpy as np import os from ..utils import load_params, get_scaler, get_rescaler class ForwardModel(): def __init__(self, robot_type=None): try: filename = f'.../maenv/mpe/_mpe_utils/{robot_type}_config.yaml' params = load_params(filename).get('forward_model') ...
35.301075
115
0.603412
463
3,283
4.043197
0.231102
0.043269
0.041667
0.034188
0.383547
0.321581
0.291667
0.201923
0.178419
0.150641
0
0.011227
0.267438
3,283
92
116
35.684783
0.767152
0.009747
0
0.214286
0
0
0.084988
0.027295
0
0
0
0
0
1
0.085714
false
0
0.085714
0.014286
0.257143
0.014286
0
0
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
9b5505ca703b310b156073810269854022e84cd6
948
py
Python
src/personal/views.py
vybhavpai/Blog
8e0adf52bfba5502f787dd339866f39b5f4856f4
[ "bzip2-1.0.6" ]
null
null
null
src/personal/views.py
vybhavpai/Blog
8e0adf52bfba5502f787dd339866f39b5f4856f4
[ "bzip2-1.0.6" ]
17
2020-06-06T00:04:23.000Z
2022-03-12T00:25:43.000Z
src/personal/views.py
vybhavpai/Blog
8e0adf52bfba5502f787dd339866f39b5f4856f4
[ "bzip2-1.0.6" ]
null
null
null
from django.shortcuts import render from blog.models import BlogPost from operator import attrgetter from blog.views import get_blog_queryset from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator # Create your views here. BLOG_POSTS_PER_PAGE = 1 def home_screen_view(request): context = {} que...
27.085714
90
0.781646
132
948
5.356061
0.363636
0.190948
0.127298
0.127298
0.157001
0.157001
0.113154
0.113154
0
0
0
0.002398
0.120253
948
34
91
27.882353
0.845324
0.035865
0
0
0
0
0.054885
0
0
0
0
0
0
1
0.043478
false
0
0.217391
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b551741cab1afbab203fa568039b9c06d277d87
5,771
py
Python
tools/makeplugin.py
rhcad/x3py
a631b9130673683f9c0395209ff49b94eb0ceac6
[ "Apache-2.0" ]
214
2015-01-25T15:54:57.000Z
2022-03-13T13:20:34.000Z
tools/makeplugin.py
HAERBINWINE/x3py
a631b9130673683f9c0395209ff49b94eb0ceac6
[ "Apache-2.0" ]
18
2015-03-11T15:42:56.000Z
2021-12-23T10:11:03.000Z
tools/makeplugin.py
HAERBINWINE/x3py
a631b9130673683f9c0395209ff49b94eb0ceac6
[ "Apache-2.0" ]
126
2015-01-19T03:28:48.000Z
2022-03-16T06:52:57.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Function: Create a plugin project based on example project. This script has been tested with ActivePython 2.7/3.2. Usage: python makeplugin.py [prjname [pkgname [srcprj [srcpkg [useswig]]]]] or double click the file 'makeplugin.py'. ...
41.517986
99
0.582741
691
5,771
4.839363
0.287988
0.035885
0.032895
0.032297
0.186902
0.114833
0.034689
0.034689
0.034689
0.034689
0
0.029504
0.283486
5,771
138
100
41.818841
0.779202
0.165309
0
0.185567
0
0
0.149126
0.022463
0
0
0
0
0
1
0.072165
false
0
0.010309
0.010309
0.164948
0.082474
0
0
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
9b5be5c5ed6504a2c9ccae3984febdda2e35498d
5,862
py
Python
server/app.py
LeartKrasniqi/Sign-Language-Interpreter
46ffef29eaf3746d48654bc4430d6e921120d33e
[ "MIT" ]
3
2020-02-25T14:43:33.000Z
2020-10-10T08:42:27.000Z
server/app.py
LeartKrasniqi/Sign-Language-Interpreter
46ffef29eaf3746d48654bc4430d6e921120d33e
[ "MIT" ]
null
null
null
server/app.py
LeartKrasniqi/Sign-Language-Interpreter
46ffef29eaf3746d48654bc4430d6e921120d33e
[ "MIT" ]
1
2020-02-24T19:46:11.000Z
2020-02-24T19:46:11.000Z
import os from flask import Flask, flash, request, redirect, url_for, jsonify from flask_cors import CORS from werkzeug.utils import secure_filename import subprocess # set up text to speech map from nltk.stem import PorterStemmer from nltk.tokenize import word_tokenize # speech recognition import speech_recognition ...
31.686486
95
0.628796
736
5,862
4.865489
0.275815
0.050265
0.037699
0.052779
0.211393
0.178163
0.178163
0.126222
0.126222
0.101648
0
0.00589
0.247015
5,862
184
96
31.858696
0.805392
0.105084
0
0.141791
0
0
0.172315
0.01436
0
0
0
0
0
1
0.059701
false
0
0.059701
0.014925
0.201493
0.007463
0
0
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
9b5d3c5659fc7c63b174be7b4744d1de06e0f242
1,128
py
Python
main/PluginDemos/MomentOfInertia/MomentOfInertia3D/Simulation/MomentOfInertia3DSteppables.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/PluginDemos/MomentOfInertia/MomentOfInertia3D/Simulation/MomentOfInertia3DSteppables.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/PluginDemos/MomentOfInertia/MomentOfInertia3D/Simulation/MomentOfInertia3DSteppables.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
1
2021-02-26T21:50:29.000Z
2021-02-26T21:50:29.000Z
from cc3d.core.PySteppables import * class MomentOfInertiaPrinter3D(SteppableBasePy): def __init__(self, frequency=10): SteppableBasePy.__init__(self, frequency) self.semi_minor_axis = 15 self.semi_median_axis = 8 self.semi_major_axis = 5 def start(self): self.generate...
40.285714
98
0.618794
152
1,128
4.342105
0.375
0.084848
0.078788
0.077273
0.10303
0.10303
0
0
0
0
0
0.03023
0.266844
1,128
27
99
41.777778
0.767836
0.052305
0
0
0
0
0.030928
0
0
0
0
0
0
1
0.2
false
0
0.05
0
0.3
0.05
0
0
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
9b5d42d58638f8e19f6b1354d952d443c3e13a52
4,003
py
Python
skirt-sniffer.py
macenpav/skirt-sniffer
3ba45d5f7f22b83417525835dc594e698c4ebb1a
[ "MIT" ]
null
null
null
skirt-sniffer.py
macenpav/skirt-sniffer
3ba45d5f7f22b83417525835dc594e698c4ebb1a
[ "MIT" ]
null
null
null
skirt-sniffer.py
macenpav/skirt-sniffer
3ba45d5f7f22b83417525835dc594e698c4ebb1a
[ "MIT" ]
null
null
null
import data_module import email_module import db_module from jinja2 import Environment, FileSystemLoader from os import path import time from datetime import datetime DIR_PATH = path.dirname(path.realpath(__file__)) NEW_SKIRT_SUBJECT = r"Novinka! - {0}" NEW_PRINT_SUBJECT = r"NOVÉ TISKY! - {0}" DAY_INIT_SUBJECT = r"Ke...
32.024
101
0.671496
557
4,003
4.56553
0.228007
0.056626
0.046009
0.060165
0.470704
0.358632
0.329925
0.316948
0.233582
0.209988
0
0.005999
0.208843
4,003
124
102
32.282258
0.796969
0.05321
0
0.282609
0
0
0.128734
0
0
0
0
0
0
1
0.054348
false
0
0.076087
0
0.130435
0.195652
0
0
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
9b5e52eda69e6b966095678067006f5bc461763d
3,661
py
Python
gos/manager.py
sergey-aganezov-jr/gos
fb4d210284f3037c5321250cb95f3901754feb6b
[ "MIT" ]
null
null
null
gos/manager.py
sergey-aganezov-jr/gos
fb4d210284f3037c5321250cb95f3901754feb6b
[ "MIT" ]
null
null
null
gos/manager.py
sergey-aganezov-jr/gos
fb4d210284f3037c5321250cb95f3901754feb6b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from gos.configuration import Configuration from gos.exceptions import GOSTaskException, GOSExecutableContainerException from gos.executable_containers import ExecutableContainer from gos.tasks import TaskLoader class Manager(object): def __init__(self, config): self.configuration ...
50.847222
124
0.645179
353
3,661
6.467422
0.243626
0.122646
0.094612
0.115637
0.250986
0.098117
0.098117
0
0
0
0
0.000379
0.279978
3,661
71
125
51.56338
0.865706
0.05463
0
0.084746
0
0
0.058295
0.012181
0
0
0
0
0
1
0.135593
false
0
0.067797
0.033898
0.254237
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
9b5f11338fa982d437506f6ebd36acb9e68351e8
2,608
py
Python
couchcrdt/crdt.py
drsm79/couch-crdt
1717a8b03a488793984d7209f6da78c395b3477f
[ "Apache-2.0" ]
null
null
null
couchcrdt/crdt.py
drsm79/couch-crdt
1717a8b03a488793984d7209f6da78c395b3477f
[ "Apache-2.0" ]
null
null
null
couchcrdt/crdt.py
drsm79/couch-crdt
1717a8b03a488793984d7209f6da78c395b3477f
[ "Apache-2.0" ]
null
null
null
import requests import json class CRDT(object): """ A base class CRDT. This only takes care of getting the value and putting the local state of the CRDT from/to the database. What those things mean is up to specific implementations. """ def __init__(self, name, url, db, auth=(), params={}, alw...
28.347826
79
0.546012
321
2,608
4.308411
0.333333
0.03543
0.02603
0.030369
0
0
0
0
0
0
0
0.002363
0.350844
2,608
91
80
28.659341
0.81453
0.292945
0
0.041667
0
0
0.055351
0
0
0
0
0
0
1
0.145833
false
0
0.041667
0.020833
0.270833
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
9b6200504eb1e628d498d1956f71cf3b490895b3
1,708
py
Python
legacy/dx/simulator/simulator_diagnoser/test/diagnosis/apt_diagnoser_test.py
GaloisInc/adapt
2ccff778d3e77505899266572f8f7caacb5b630f
[ "BSD-3-Clause" ]
2
2020-04-09T13:04:25.000Z
2021-09-24T14:17:26.000Z
legacy/dx/simulator/simulator_diagnoser/test/diagnosis/apt_diagnoser_test.py
GaloisInc/adapt
2ccff778d3e77505899266572f8f7caacb5b630f
[ "BSD-3-Clause" ]
null
null
null
legacy/dx/simulator/simulator_diagnoser/test/diagnosis/apt_diagnoser_test.py
GaloisInc/adapt
2ccff778d3e77505899266572f8f7caacb5b630f
[ "BSD-3-Clause" ]
3
2019-09-20T20:49:54.000Z
2021-09-02T17:33:47.000Z
import unittest from simulator_diagnoser.graph import InmemoryGraph from simulator_diagnoser.diagnosis import APTDiagnoser from simulator_diagnoser.matcher import Terminal, \ Sequence, \ StatelessMatcher class APTDiagnoserTest(unittest.Tes...
31.054545
65
0.527518
192
1,708
4.505208
0.296875
0.055491
0.052023
0.060116
0.233526
0.157225
0.113295
0.113295
0
0
0
0.048171
0.343677
1,708
54
66
31.62963
0.723461
0.039813
0
0.054054
0
0
0.014102
0
0
0
0
0
0.081081
1
0.108108
false
0
0.108108
0
0.243243
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
9b650fbea222942a995d60c70b774dcb9b12f9c7
888
py
Python
etl/produce_map.py
hbmartin/sub9-client
0f85639412e2a2d695e9f6a56913dcb055af82b2
[ "CC-BY-4.0" ]
null
null
null
etl/produce_map.py
hbmartin/sub9-client
0f85639412e2a2d695e9f6a56913dcb055af82b2
[ "CC-BY-4.0" ]
null
null
null
etl/produce_map.py
hbmartin/sub9-client
0f85639412e2a2d695e9f6a56913dcb055af82b2
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 """Roll up the geo6 json to produce a tree suitable for sub9 query""" __author__ = "H. Martin" __version__ = "0.1.0" import json import math from random import randint data = {} transformed = {} with open('geohash_counter_6.json', encoding='utf-8') as data_file: data = json.loads(data_...
24.666667
69
0.653153
127
888
4.440945
0.464567
0.159574
0.101064
0.049645
0
0
0
0
0
0
0
0.047486
0.193694
888
36
70
24.666667
0.740223
0.095721
0
0
0
0
0.106516
0.027569
0
0
0
0
0
1
0
false
0
0.125
0
0.125
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
9b6659e81f23a3d9ae4d6dd42d1200115d52d82d
2,220
py
Python
src/routers/v1/endpoints/facetime.py
kal-byte/my-api
e1fccfa57cda874753d48411f7bfff06afbdb019
[ "MIT" ]
2
2021-03-13T14:43:05.000Z
2021-03-13T15:10:58.000Z
src/routers/v1/endpoints/facetime.py
kal-byte/my-api
e1fccfa57cda874753d48411f7bfff06afbdb019
[ "MIT" ]
null
null
null
src/routers/v1/endpoints/facetime.py
kal-byte/my-api
e1fccfa57cda874753d48411f7bfff06afbdb019
[ "MIT" ]
2
2021-03-13T14:42:40.000Z
2021-03-17T18:18:10.000Z
""" MIT License Copyright 2021-Present kal-byte 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, merge, publish, ...
34.153846
102
0.763964
321
2,220
5.211838
0.464174
0.0526
0.015541
0.017932
0.021518
0
0
0
0
0
0
0.020022
0.167568
2,220
64
103
34.6875
0.885281
0.513964
0
0
0
0
0.043152
0.026266
0
0
0
0
0
1
0.035714
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
9b6c6e386630575a00a0344243a155f4ff7c4cd5
979
py
Python
src/components/sidebar1.py
DishaDH123/Disha551Dashboard
3354ff94134e6094f7e5759f17abe5d988a32198
[ "MIT" ]
null
null
null
src/components/sidebar1.py
DishaDH123/Disha551Dashboard
3354ff94134e6094f7e5759f17abe5d988a32198
[ "MIT" ]
null
null
null
src/components/sidebar1.py
DishaDH123/Disha551Dashboard
3354ff94134e6094f7e5759f17abe5d988a32198
[ "MIT" ]
null
null
null
import dash from dash import dcc from dash import html,Input, Output import dash_bootstrap_components as dbc from ..app import app from .sidebar_function_tab1 import TAB1_DROPDOWN,time_scale,date_slider,choose_fun_tab1 SIDEBAR1 = [dbc.Row("Energy Dashboard",class_name="title",style={"font-size":"30px","padding-left":...
34.964286
181
0.763023
144
979
4.736111
0.479167
0.061584
0.079179
0.087977
0
0
0
0
0
0
0
0.018931
0.082737
979
27
182
36.259259
0.740535
0
0
0.25
0
0.041667
0.361593
0.043922
0
0
0
0
0
1
0.041667
false
0
0.25
0.041667
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
9b6d446a16c44d84b91f269a1e5ec023a880fe0e
4,176
py
Python
interbotix_examples/interbotix_moveit_interface/get_trajectory_server.py
junyaoshi/interbotix_ros_arms
ca37aa98a66acdbd17557d6808d6c32f0ad4799b
[ "BSD-2-Clause" ]
null
null
null
interbotix_examples/interbotix_moveit_interface/get_trajectory_server.py
junyaoshi/interbotix_ros_arms
ca37aa98a66acdbd17557d6808d6c32f0ad4799b
[ "BSD-2-Clause" ]
null
null
null
interbotix_examples/interbotix_moveit_interface/get_trajectory_server.py
junyaoshi/interbotix_ros_arms
ca37aa98a66acdbd17557d6808d6c32f0ad4799b
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function from moveit_python_interface import MoveGroupPythonInteface from geometry_msgs.msg import Pose import rospy from interbotix_moveit_interface.srv import GetTrajectory, GetTrajectoryResponse # flags GO_TO_START_JOINT_VALUES = False # whether to use ...
48
130
0.677443
515
4,176
5.205825
0.264078
0.041029
0.055949
0.071615
0.331966
0.211115
0.177546
0.177546
0.073853
0
0
0.024876
0.229885
4,176
86
131
48.55814
0.808769
0.104167
0
0
0
0
0.283981
0.192017
0
0
0
0
0
1
0.017241
false
0
0.086207
0
0.12069
0.137931
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b7271707272e07905c19e8e64deead59d30237a
857
py
Python
data_utils/merge_dev_set.py
weihezhai/HatefulMemesChallenge
04f52643c0864d1efb6c0a9c674db42764f6834c
[ "MIT" ]
63
2020-12-09T18:58:16.000Z
2022-03-21T02:34:35.000Z
data_utils/merge_dev_set.py
weihezhai/HatefulMemesChallenge
04f52643c0864d1efb6c0a9c674db42764f6834c
[ "MIT" ]
5
2021-01-29T10:33:04.000Z
2021-08-25T14:15:27.000Z
data_utils/merge_dev_set.py
weihezhai/HatefulMemesChallenge
04f52643c0864d1efb6c0a9c674db42764f6834c
[ "MIT" ]
18
2020-12-11T20:36:04.000Z
2021-12-12T07:04:20.000Z
import os import json import fire def main(meme_dir): print("meme_dir: ", meme_dir) print("-" * 100) meme_val_anno_1 = [] with open(os.path.join(meme_dir, "dev_seen.jsonl")) as f: for line in f: meme_val_anno_1.append(json.loads(line)) meme_val_anno_2 = [] with open(os.pa...
25.205882
63
0.606768
137
857
3.49635
0.29927
0.087683
0.137787
0.075157
0.363257
0.363257
0.237996
0.237996
0.121086
0.121086
0
0.020472
0.259043
857
34
64
25.205882
0.733858
0
0
0.153846
0
0
0.09324
0
0
0
0
0
0
1
0.038462
false
0
0.115385
0
0.153846
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b76216fa16aa9281bbd570ee1371176ada29324
4,442
py
Python
examples/cardless_credit_example.py
glendaesutanto/xendit-python
f9b131882ff7d045f2e2c6518933d1594efba3e6
[ "MIT" ]
10
2020-10-31T23:34:34.000Z
2022-03-08T19:08:55.000Z
examples/cardless_credit_example.py
glendaesutanto/xendit-python
f9b131882ff7d045f2e2c6518933d1594efba3e6
[ "MIT" ]
22
2020-07-30T14:25:07.000Z
2022-03-31T03:55:46.000Z
examples/cardless_credit_example.py
glendaesutanto/xendit-python
f9b131882ff7d045f2e2c6518933d1594efba3e6
[ "MIT" ]
11
2020-07-28T08:09:40.000Z
2022-03-18T00:14:02.000Z
import time from print_running_function import print_running_function # Hackish method to import from another directory # Useful while xendit-python isn't released yet to the public import importlib.machinery loader = importlib.machinery.SourceFileLoader("xendit", "../xendit/__init__.py") xendit = loader.lo...
35.822581
99
0.579244
420
4,442
5.885714
0.302381
0.124595
0.069175
0.046926
0.436893
0.338997
0.338997
0.296117
0.296117
0.296117
0
0.021833
0.319451
4,442
123
100
36.113821
0.795898
0.024088
0
0.416667
0
0
0.246852
0.028986
0
0
0
0
0
1
0.055556
false
0
0.037037
0
0.12963
0.148148
0
0
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
9b79ce41c55d1514dd77ba2f1d765d1a882ab8ed
2,220
py
Python
tests/test_lines.py
phipleg/trafaret-config
0063a5027e7db015e0b0b0dafd8159df409121f2
[ "Apache-2.0", "MIT" ]
26
2016-12-07T16:40:44.000Z
2020-11-09T03:27:23.000Z
tests/test_lines.py
phipleg/trafaret-config
0063a5027e7db015e0b0b0dafd8159df409121f2
[ "Apache-2.0", "MIT" ]
6
2017-10-27T13:50:21.000Z
2020-09-24T17:08:48.000Z
tests/test_lines.py
phipleg/trafaret-config
0063a5027e7db015e0b0b0dafd8159df409121f2
[ "Apache-2.0", "MIT" ]
5
2016-12-05T10:23:29.000Z
2020-06-05T15:31:24.000Z
import unittest from textwrap import dedent import trafaret as T from .util import get_err class TestSMTP(unittest.TestCase): TRAFARET = T.Dict({ T.Key('port'): T.Int(), T.Key('smtp'): T.Dict({ 'server': T.String(), 'port': T.Int(), 'ssl_port': T.Int(), ...
27.75
75
0.476577
245
2,220
4.269388
0.371429
0.076482
0.063098
0.068834
0.494264
0.285851
0.285851
0.285851
0.166348
0.10325
0
0.019259
0.391892
2,220
79
76
28.101266
0.755556
0.043243
0
0.203125
0
0
0.483491
0
0
0
0
0
0.0625
1
0.0625
false
0
0.0625
0
0.21875
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
9b7a95fc7a817c6bbe96dbb60f85ab236a523c5a
919
py
Python
django_requests_logger/admin.py
mabouchama/django-requests-logger
d28bae0312878cb09f355e8793e56b6a7d1e6f72
[ "MIT" ]
1
2019-02-20T09:08:15.000Z
2019-02-20T09:08:15.000Z
django_requests_logger/admin.py
mabouchama/django-requests-logger
d28bae0312878cb09f355e8793e56b6a7d1e6f72
[ "MIT" ]
4
2022-02-15T12:43:15.000Z
2022-02-22T13:23:10.000Z
django_requests_logger/admin.py
mabouchama/django-requests-logger
d28bae0312878cb09f355e8793e56b6a7d1e6f72
[ "MIT" ]
2
2022-02-10T06:36:27.000Z
2022-02-16T06:58:16.000Z
from django.contrib import admin from django.utils.translation import gettext_lazy as _ from django_requests_logger.models import RequestLog class RequestLogAdmin(admin.ModelAdmin): list_display = ( 'url', 'method', 'response_status_code', 'created' ) list_filter = ('method', 'response_status_code...
28.71875
72
0.558215
84
919
5.892857
0.535714
0.060606
0.121212
0.145455
0.137374
0.137374
0
0
0
0
0
0.001546
0.295974
919
31
73
29.645161
0.763524
0
0
0.259259
0
0
0.238303
0
0
0
0
0
0
1
0
false
0
0.111111
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
9b7cb7e95cec056b67de9696402880e28ea63ad1
5,662
py
Python
rubybot/cogs/memes.py
lakepower/Ruby-Bot
332d3f8bc9c8ba2902f67b59e360596778483473
[ "MIT" ]
null
null
null
rubybot/cogs/memes.py
lakepower/Ruby-Bot
332d3f8bc9c8ba2902f67b59e360596778483473
[ "MIT" ]
null
null
null
rubybot/cogs/memes.py
lakepower/Ruby-Bot
332d3f8bc9c8ba2902f67b59e360596778483473
[ "MIT" ]
null
null
null
import requests import bs4 import re import random import codecs import os from discord.ext import commands from discord.ext.commands import BucketType from cogs.utils import checks path_qaz = os.path.join(os.getcwd(), 'files', 'qaz.txt') path_riko = os.path.join(os.getcwd(), 'files', 'riko_meme') nsfw...
33.502959
132
0.575062
733
5,662
4.33015
0.271487
0.02867
0.030246
0.033081
0.182105
0.150914
0.097038
0.097038
0.077505
0.063642
0
0.005543
0.299011
5,662
168
133
33.702381
0.794155
0
0
0.137931
0
0
0.081403
0
0
0
0
0
0
1
0.043103
false
0.043103
0.077586
0
0.137931
0.017241
0
0
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
9b7e0fc01325c4db573e5b390f7ba040016a6e45
11,092
py
Python
tooldb.py
SolidifiedRay/layout-web-tool
cefba938c1e03ea8da206ec7fb0c6d8a62f1fc1b
[ "MIT" ]
1
2020-04-01T15:05:54.000Z
2020-04-01T15:05:54.000Z
tooldb.py
SolidifiedRay/layout-web-tool
cefba938c1e03ea8da206ec7fb0c6d8a62f1fc1b
[ "MIT" ]
42
2017-05-23T17:19:19.000Z
2021-04-26T12:28:47.000Z
tooldb.py
SolidifiedRay/layout-web-tool
cefba938c1e03ea8da206ec7fb0c6d8a62f1fc1b
[ "MIT" ]
7
2017-05-04T02:13:07.000Z
2020-07-09T10:56:03.000Z
""" <Program Name> tooldb.py <Author> Lukas Puehringer <lukas.puehringer@nyu.edu> <Started> June 12, 2017 <Copyright> See LICENSE for licensing information. <Purpose> A basic collection of software supply chain tools in four categories - vcs (version control systems) - building - qa (quality assu...
26.857143
136
0.542102
1,214
11,092
4.865733
0.323723
0.083968
0.035551
0.067547
0.357542
0.3269
0.284916
0.208735
0.129677
0.027087
0
0.034737
0.218806
11,092
413
137
26.857143
0.646971
0.163
0
0.640351
0
0.046784
0.580041
0.005628
0
0
0
0.002421
0
1
0
false
0
0
0
0
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
9b7e3f441634f0a952e1cc4ac8faf39f1d5c0e8a
3,587
py
Python
flask_tutorial/marshmallow_demo/nesting_schemas.py
ftconan/python3
eb63ba33960072f792ecce6db809866b38c402f8
[ "MIT" ]
1
2018-12-19T22:07:56.000Z
2018-12-19T22:07:56.000Z
marshmallow_demo/nesting_schemas.py
ftconan/flask-tutorial
d5164c93b5e6a6e3d2b8980e4b846adb7cb21aee
[ "MIT" ]
12
2020-03-14T05:32:26.000Z
2022-03-12T00:08:49.000Z
marshmallow_demo/nesting_schemas.py
ftconan/flask-tutorial
d5164c93b5e6a6e3d2b8980e4b846adb7cb21aee
[ "MIT" ]
1
2018-12-19T22:08:00.000Z
2018-12-19T22:08:00.000Z
# coding=utf-8 """ @author: magician @date: 2018/9/13 """ import datetime as dt from marshmallow import Schema, fields, pprint class User(object): """ User """ def __init__(self, name, email): self.name = name self.email = email self.created_at = dt.datetime.now() sel...
23.444444
74
0.583496
394
3,587
5.241117
0.27665
0.046489
0.023245
0.015981
0.165617
0.11816
0.074576
0.054237
0.054237
0
0
0.008709
0.26373
3,587
152
75
23.598684
0.773192
0.343184
0
0.125
0
0
0.115088
0
0
0
0
0
0
1
0.035714
false
0
0.035714
0
0.446429
0.089286
0
0
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
9b7ec91f09b0e08306d5eb9d01d89bc063dc7870
3,906
py
Python
integration_tests/util/generate_scene.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
1,577
2017-05-22T14:22:00.000Z
2022-03-31T02:03:25.000Z
integration_tests/util/generate_scene.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
933
2017-05-09T20:25:02.000Z
2022-03-31T10:22:59.000Z
integration_tests/util/generate_scene.py
monocilindro/raster-vision
fc181a6f31f085affa1ee12f0204bdbc5a6bf85a
[ "Apache-2.0" ]
336
2017-05-15T16:30:44.000Z
2022-03-28T06:19:33.000Z
import random import click import numpy as np import rasterio from rasterio.transform import from_origin from rastervision.core.box import Box from rastervision.data import (RasterioCRSTransformer, ObjectDetectionLabels, ObjectDetectionGeoJSONStore) from rastervision.core.class_map impo...
33.965217
79
0.616999
470
3,906
4.96383
0.346809
0.030862
0.029147
0.020574
0.189027
0.120874
0.120874
0.120874
0.120874
0.092585
0
0.024947
0.281618
3,906
114
80
34.263158
0.806486
0.132873
0
0.222222
0
0
0.07211
0.018772
0
0
0
0
0
1
0.012346
false
0
0.098765
0
0.111111
0.012346
0
0
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
9b821c976ee4f99cdb762f5c8e9e17a0905d593c
321
py
Python
Problem Solving/Algorithms/Introduction to Nim Game.py
Muntaha-Islam0019/HackerRank-Solutions
caa687aab67461aba69026d3bdc44b62c1dec1c9
[ "MIT" ]
null
null
null
Problem Solving/Algorithms/Introduction to Nim Game.py
Muntaha-Islam0019/HackerRank-Solutions
caa687aab67461aba69026d3bdc44b62c1dec1c9
[ "MIT" ]
null
null
null
Problem Solving/Algorithms/Introduction to Nim Game.py
Muntaha-Islam0019/HackerRank-Solutions
caa687aab67461aba69026d3bdc44b62c1dec1c9
[ "MIT" ]
null
null
null
from functools import reduce games = int(input()) for game in range(games): number_of_piles = int(input()) pile = list(map(int, input().rstrip().split())) result = reduce((lambda x, y: x ^ y), pile) # result = len(pile) % 2 [wont work on test case 2] print('Second' if result == 0 else 'First')...
21.4
55
0.616822
49
321
4
0.734694
0.122449
0
0
0
0
0
0
0
0
0
0.012048
0.224299
321
14
56
22.928571
0.7751
0.152648
0
0
0
0
0.040741
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b838f908501c804e2f543284ab15cfe75ddca4d
380
py
Python
ipub/params.py
ms8r/scriv2epub
a8d4ee7abc5b5bef654e40fec25605b34ed43207
[ "MIT" ]
8
2016-01-15T21:12:50.000Z
2021-10-17T18:47:40.000Z
ipub/params.py
ms8r/scriv2epub
a8d4ee7abc5b5bef654e40fec25605b34ed43207
[ "MIT" ]
null
null
null
ipub/params.py
ms8r/scriv2epub
a8d4ee7abc5b5bef654e40fec25605b34ed43207
[ "MIT" ]
null
null
null
import os.path _PATH_PREFIX = os.path.dirname(os.path.realpath(__file__)) _TEMPLATE_PATH = os.path.join(_PATH_PREFIX, 'tmpl') _TEMPLATE_EXT = '.jinja' _EPUB_SKELETON_PATH = os.path.join(_PATH_PREFIX, 'epub') _BASIC_CH_PAR_STYLE = 'par-indent' _FIRST_CH_PAR_STYLE = 'texttop' _DROP_CAP_STYLE = 'dropcap' _CLEAR_STYLE...
31.666667
59
0.776316
59
380
4.40678
0.559322
0.115385
0.076923
0.107692
0.184615
0.184615
0
0
0
0
0
0
0.094737
380
11
60
34.545455
0.755814
0
0
0
0
0
0.168421
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9b84b07bfeb0b1498473bf71e8cf00668429868a
1,138
py
Python
datastruct/TreeNode.py
cocobear/LeetCode-in-Python
b4ecd5cb7122467ee479f38497faaabb17e6025e
[ "MIT" ]
null
null
null
datastruct/TreeNode.py
cocobear/LeetCode-in-Python
b4ecd5cb7122467ee479f38497faaabb17e6025e
[ "MIT" ]
null
null
null
datastruct/TreeNode.py
cocobear/LeetCode-in-Python
b4ecd5cb7122467ee479f38497faaabb17e6025e
[ "MIT" ]
null
null
null
class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None def __str__(self, depth=0): ret = '' if self.right != None: ret += self.right.__str__(depth + 1) if not self.val: ret += '\n' else: ...
27.756098
63
0.51406
129
1,138
4.348837
0.310078
0.078431
0.042781
0
0
0
0
0
0
0
0
0.024862
0.363796
1,138
40
64
28.45
0.75
0.027241
0
0.060606
0
0
0.014493
0
0
0
0
0
0
1
0.121212
false
0
0
0
0.30303
0.060606
0
0
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
9b88125439c00c982850039874ca9e2e40963ded
17,936
py
Python
src/test_quality_measures.py
hackalog/dimension_reduction
18c54256f4b1f1fbfe0b99e86b6701e708b7c85c
[ "MIT" ]
1
2018-10-22T11:45:45.000Z
2018-10-22T11:45:45.000Z
src/test_quality_measures.py
hackalog/dimension_reduction
18c54256f4b1f1fbfe0b99e86b6701e708b7c85c
[ "MIT" ]
null
null
null
src/test_quality_measures.py
hackalog/dimension_reduction
18c54256f4b1f1fbfe0b99e86b6701e708b7c85c
[ "MIT" ]
null
null
null
import hypothesis.strategies as st from hypothesis.extra.numpy import arrays from hypothesis import given import unittest import numpy as np from sklearn.base import BaseEstimator import inspect import src.quality_measures as qm from .logging import logger # old functions to test against while refactoring def old_ce...
42.301887
79
0.575992
2,186
17,936
4.46935
0.087374
0.063869
0.046162
0.053019
0.729376
0.692631
0.653838
0.630604
0.595189
0.562334
0
0.031304
0.321421
17,936
423
80
42.401891
0.771424
0.03886
0
0.506061
0
0
0.015394
0
0
0
0
0.002364
0.148485
1
0.10303
false
0
0.027273
0.00303
0.157576
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
9b884dfe98e3224d03e56b0ff9073cf479be11aa
797
py
Python
addons/odoo_elasticsearch/models/trend_search_mapping.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
addons/odoo_elasticsearch/models/trend_search_mapping.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
addons/odoo_elasticsearch/models/trend_search_mapping.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
1
2021-05-05T07:59:08.000Z
2021-05-05T07:59:08.000Z
import logging _logger = logging.getLogger(__name__) from odoo import api, fields, models class TrendSearchMapping(models.Model): _name = 'trend.search.mapping' _order = "sequence" name = fields.Char(string="Keywords", required=True, help="Name of product") trend_search_mapping_id = fields.Many2one('e...
30.653846
99
0.667503
97
797
5.226804
0.494845
0.108481
0.142012
0.118343
0.118343
0.118343
0.118343
0
0
0
0
0.004732
0.204517
797
25
100
31.88
0.794953
0
0
0.285714
0
0
0.225847
0.110414
0
0
0
0
0
1
0.047619
false
0
0.095238
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
9b897b3e2e2a162da4ba6ef2e1e00007c3d0d7d3
25,363
py
Python
src/python/twitter/common/app/application.py
wfarner/commons
42988a7a49f012665174538cca53604c7846ee86
[ "Apache-2.0" ]
1
2019-12-20T14:13:27.000Z
2019-12-20T14:13:27.000Z
src/python/twitter/common/app/application.py
wfarner/commons
42988a7a49f012665174538cca53604c7846ee86
[ "Apache-2.0" ]
null
null
null
src/python/twitter/common/app/application.py
wfarner/commons
42988a7a49f012665174538cca53604c7846ee86
[ "Apache-2.0" ]
1
2019-12-20T14:13:29.000Z
2019-12-20T14:13:29.000Z
# ================================================================================================== # Copyright 2011 Twitter, Inc. # -------------------------------------------------------------------------------------------------- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
34.791495
101
0.674644
3,177
25,363
5.15266
0.147624
0.024618
0.02639
0.015455
0.232926
0.140257
0.122908
0.089798
0.067563
0.032254
0
0.001409
0.216654
25,363
728
102
34.839286
0.822529
0.200725
0
0.195745
0
0
0.130551
0.016242
0
0
0
0
0.008511
1
0.125532
false
0.006383
0.065957
0.004255
0.285106
0.023404
0
0
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
9b89b21d0ec82cd3eb4f531c62145aac5544814d
3,838
py
Python
nas/gui/end_registration_window.py
RolandZitny/BC-NAS
df2b1c643e5dce3b48c72026b4f83f895f33b822
[ "MIT" ]
null
null
null
nas/gui/end_registration_window.py
RolandZitny/BC-NAS
df2b1c643e5dce3b48c72026b4f83f895f33b822
[ "MIT" ]
null
null
null
nas/gui/end_registration_window.py
RolandZitny/BC-NAS
df2b1c643e5dce3b48c72026b4f83f895f33b822
[ "MIT" ]
null
null
null
import base64 import os import matplotlib.pyplot as plt import cv2 import numpy as np from PyQt5 import uic from PyQt5 import QtWidgets from PyQt5 import QtMultimedia from PyQt5 import QtMultimediaWidgets from PyQt5.QtGui import QImage, QPixmap from PyQt5.QtWidgets import QDesktopWidget from nas.gui.login_stimulation_w...
32.252101
94
0.647473
490
3,838
4.838776
0.32449
0.040489
0.032476
0.023619
0.176719
0.078026
0.048925
0.048925
0.048925
0.048925
0
0.008006
0.251433
3,838
118
95
32.525424
0.817264
0.133924
0
0.054795
0
0
0.03129
0.008301
0
0
0
0
0
1
0.082192
false
0
0.178082
0
0.273973
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
9b8af184786b7b838926fd6c07d47b9fd8a6c329
445
py
Python
testing/matplotlib_test.py
deranderemark/CigarTracer
3f1172683c57dc7f28dd7517132014b23adfff90
[ "Apache-2.0" ]
null
null
null
testing/matplotlib_test.py
deranderemark/CigarTracer
3f1172683c57dc7f28dd7517132014b23adfff90
[ "Apache-2.0" ]
1
2022-02-06T15:50:07.000Z
2022-02-06T15:50:07.000Z
testing/matplotlib_test.py
deranderemark/CigarTracer
3f1172683c57dc7f28dd7517132014b23adfff90
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt # Diagramm und Achsen definieren fig, ax = plt.subplots() # Werte für Tabelle erstellen table_data=[ ["1", 30, 34], ["2", 20, 223], ["3", 33, 2354], ["4", 25, 234], ["5", 12, 929] ] #Tabelle erstellen table = ax.table(cellText=table_data, loc='center', colLabels=[...
17.8
84
0.633708
65
445
4.292308
0.753846
0.114695
0.150538
0
0
0
0
0
0
0
0
0.092896
0.177528
445
24
85
18.541667
0.669399
0.238202
0
0
0
0
0.069069
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
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
9b8bb3b48e86a641ba4d24045654d0c3bccfafdb
5,242
py
Python
venv/Lib/site-packages/func_timeout/StoppableThread.py
lijj0812/UIAutoDemo
3e13380adeb6cf92410676ff7c125dbee598427f
[ "Apache-2.0" ]
1
2021-01-12T14:39:01.000Z
2021-01-12T14:39:01.000Z
venv/Lib/site-packages/func_timeout/StoppableThread.py
lijj0812/UIAutoDemo
3e13380adeb6cf92410676ff7c125dbee598427f
[ "Apache-2.0" ]
2
2021-06-16T19:56:35.000Z
2021-06-16T19:57:49.000Z
venv/Lib/site-packages/func_timeout/StoppableThread.py
lijj0812/UIAutoDemo
3e13380adeb6cf92410676ff7c125dbee598427f
[ "Apache-2.0" ]
1
2020-09-17T07:56:53.000Z
2020-09-17T07:56:53.000Z
''' Copyright (c) 2016, 2017, 2019 Timothy Savannah All Rights Reserved. Licensed under the Lesser GNU Public License Version 3, LGPLv3. You should have recieved a copy of this with the source distribution as LICENSE, otherwise it is available at https://github.com/kata198/func_timeout/LICENSE ''' import ...
39.119403
166
0.647844
650
5,242
5.161538
0.378462
0.035768
0.008048
0.006557
0.025037
0
0
0
0
0
0
0.01019
0.28863
5,242
133
167
39.413534
0.889515
0.630866
0
0.060606
0
0
0.026531
0
0
0
0
0
0
1
0.121212
false
0.030303
0.090909
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
9b9174eb28a0ab4b95d4146848ae09c6b7a36f4f
1,883
py
Python
network.py
YanhengWang/Draughts
ad19ccbd3c4fc0defda68c45ed8f2dd14969f2a3
[ "Apache-2.0" ]
null
null
null
network.py
YanhengWang/Draughts
ad19ccbd3c4fc0defda68c45ed8f2dd14969f2a3
[ "Apache-2.0" ]
1
2020-10-12T00:33:54.000Z
2020-10-12T00:33:54.000Z
network.py
YanhengWang/Draughts
ad19ccbd3c4fc0defda68c45ed8f2dd14969f2a3
[ "Apache-2.0" ]
null
null
null
from utils import PATH_LABEL from utils import PATH_DATA_FOLDER import pickle import torch import torch.nn as nn import torch.utils.data as dat class ResBlock(nn.Module): def __init__(self, inChannels, outChannels): super(ResBlock, self).__init__() self.matchDimension = None if inChannels != outChannels: ...
27.289855
92
0.677111
287
1,883
4.324042
0.268293
0.012893
0.032232
0.045125
0.153908
0.087832
0.087832
0.087832
0.064464
0
0
0.028479
0.179501
1,883
68
93
27.691176
0.774757
0
0
0.103448
0
0
0.004249
0
0
0
0
0
0
1
0.12069
false
0
0.103448
0.017241
0.344828
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
9b926fbc1417f4ebd631923a6169eb196f0aff02
760
py
Python
WebApp/main/utility/StringUtility.py
georg-wenzel/ml-data-smell-detection
7dddd401ca1f1a830dfd8b00760659911e5b1086
[ "MIT" ]
1
2022-03-29T14:46:40.000Z
2022-03-29T14:46:40.000Z
WebApp/main/utility/StringUtility.py
georg-wenzel/ml-data-smell-detection
7dddd401ca1f1a830dfd8b00760659911e5b1086
[ "MIT" ]
null
null
null
WebApp/main/utility/StringUtility.py
georg-wenzel/ml-data-smell-detection
7dddd401ca1f1a830dfd8b00760659911e5b1086
[ "MIT" ]
1
2021-06-13T08:24:46.000Z
2021-06-13T08:24:46.000Z
# Utility functions for Strings (i.e. storing common strings once) #define common strings ERR_MISSING_KEY = "The field(s) {0} must be filled in this form." ERR_INVALID_KEY = "The field '{0}' contains an invalid value." ERR_UNAUTHORIZED = "The logged in user does not have access to this value: {0}" MSG_FINISHED_TRAININ...
54.285714
138
0.709211
114
760
4.605263
0.666667
0.049524
0.041905
0
0
0
0
0
0
0
0
0.011111
0.171053
760
14
139
54.285714
0.822222
0.289474
0
0
0
0
0.481343
0
0
0
0
0
0
1
0.125
false
0
0
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
9b94d42c4e5c72f5294c49e1d55e12f33a9b3855
2,027
py
Python
visualization/draw.py
DougMHu/roomba-obstacle-mapping
019b6108c1967c7daabe7b4795cfac7ef0e79cf7
[ "MIT" ]
3
2018-05-26T20:41:27.000Z
2020-10-19T12:40:42.000Z
visualization/draw.py
DougMHu/roomba-obstacle-mapping
019b6108c1967c7daabe7b4795cfac7ef0e79cf7
[ "MIT" ]
null
null
null
visualization/draw.py
DougMHu/roomba-obstacle-mapping
019b6108c1967c7daabe7b4795cfac7ef0e79cf7
[ "MIT" ]
1
2017-01-31T09:47:21.000Z
2017-01-31T09:47:21.000Z
# MIT License # Copyright (c) 2016 Aashiq Ahmed, Shuai Chen, Meha Deora, Douglas Hu # 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 rig...
25.658228
80
0.716823
330
2,027
4.378788
0.448485
0.0609
0.020761
0.029066
0.026298
0
0
0
0
0
0
0.021958
0.168722
2,027
78
81
25.987179
0.835608
0.637395
0
0.285714
0
0
0.004249
0
0
0
0
0
0
1
0.057143
false
0
0.028571
0
0.085714
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
9b9ade24b6474ca9ac882881c781ddb3dc8e1ab1
2,180
py
Python
activate.py
cassidoxa/bottoman
9d04331794ffb8bb745fc175c15db6d4a1f5714c
[ "MIT" ]
null
null
null
activate.py
cassidoxa/bottoman
9d04331794ffb8bb745fc175c15db6d4a1f5714c
[ "MIT" ]
null
null
null
activate.py
cassidoxa/bottoman
9d04331794ffb8bb745fc175c15db6d4a1f5714c
[ "MIT" ]
null
null
null
import json import urllib.request from bottoman import TwitchBot import config from db.db import DatabaseManager def get_user_id_display(user): """ uses twitch's API to get a user's token with their (case insensitive) user name """ client_id = config.client_id token = "srtajsl3jjbhhtfrv...
29.459459
77
0.559174
253
2,180
4.715415
0.454545
0.020117
0.015088
0.026823
0
0
0
0
0
0
0
0.007524
0.329358
2,180
73
78
29.863014
0.808482
0.099541
0
0.125
0
0
0.094595
0.015593
0
0
0
0
0
1
0.041667
false
0
0.104167
0
0.208333
0.020833
0
0
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
9b9e8192f42c44f946f004808b8e37a13a83e0b0
478
py
Python
waveshare_snake.py
AndrewCarterUK/MiniGame
6d699c045e84ee3834f23eb0483245195438eff7
[ "MIT" ]
null
null
null
waveshare_snake.py
AndrewCarterUK/MiniGame
6d699c045e84ee3834f23eb0483245195438eff7
[ "MIT" ]
null
null
null
waveshare_snake.py
AndrewCarterUK/MiniGame
6d699c045e84ee3834f23eb0483245195438eff7
[ "MIT" ]
null
null
null
from minigame.waveshare.button import Button from minigame.waveshare.display import Display from minigame.games.snake import Snake WIDTH = 20 HEIGHT = 20 STEP_TIME = 0.5 BLOCK_SIZE = 32 def main(): display = Display() l_button = Button(5) r_button = Button(26) u_button = Button(6) d_button = Butt...
19.916667
92
0.698745
70
478
4.5
0.428571
0.152381
0.133333
0
0
0
0
0
0
0
0
0.036554
0.198745
478
23
93
20.782609
0.785901
0
0
0
0
0
0.016736
0
0
0
0
0
0
1
0.058824
false
0
0.176471
0
0.235294
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
9b9f8f5cfe54f976ada38f7cf0db4c9ffc2c1571
8,636
py
Python
jumodjango/urls.py
jumoconnect/openjumo
828d993bfbb83777d10a68de6964c7d5bb2c7bd0
[ "MIT" ]
5
2015-03-11T18:59:46.000Z
2018-08-17T17:49:45.000Z
jumodjango/urls.py
kmrifat/openjumo
828d993bfbb83777d10a68de6964c7d5bb2c7bd0
[ "MIT" ]
2
2020-06-05T16:52:17.000Z
2021-02-08T20:24:26.000Z
jumodjango/urls.py
kmrifat/openjumo
828d993bfbb83777d10a68de6964c7d5bb2c7bd0
[ "MIT" ]
6
2016-02-04T00:45:30.000Z
2021-07-07T17:14:50.000Z
from api.api_v1 import api_urls from django.conf.urls.defaults import * from django.conf import settings from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', ) ''' RANDOM URLs ''' urlpatterns += patterns('etc.views', url(r'^about/?$', 'about', name = 'about'), url(r'^help/?$', 'h...
45.452632
125
0.54736
1,036
8,636
4.375483
0.168919
0.063534
0.030002
0.037503
0.269799
0.241121
0.180454
0.132363
0.085374
0.04743
0
0.007947
0.125753
8,636
189
126
45.693122
0.59245
0.014706
0
0.033613
0
0.02521
0.554149
0.240225
0
0
0
0
0
1
0
false
0.033613
0.033613
0
0.033613
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
9ba08896288342be18a3bdfe4d777157062a927c
2,830
py
Python
modules/layers.py
vliu15/munit
5789d96590519d729f89c9501eba7692fa7054ef
[ "MIT" ]
3
2021-03-04T01:48:03.000Z
2021-12-16T06:55:10.000Z
modules/layers.py
vliu15/munit
5789d96590519d729f89c9501eba7692fa7054ef
[ "MIT" ]
null
null
null
modules/layers.py
vliu15/munit
5789d96590519d729f89c9501eba7692fa7054ef
[ "MIT" ]
null
null
null
# The MIT License # # Copyright (c) 2020 Vincent Liu # # 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, mer...
36.753247
84
0.674558
403
2,830
4.615385
0.389578
0.012903
0.012903
0.021505
0.130645
0.084409
0.071505
0.071505
0.037097
0.037097
0
0.016004
0.227208
2,830
76
85
37.236842
0.834476
0.40636
0
0.157895
0
0
0
0
0
0
0
0
0
1
0.131579
false
0
0.052632
0.026316
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0