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
75d7637d4de985450afeaf8267ea59deab8e6e61
478
py
Python
Module_04/ex00/test.py
CristinaFdezBornay/PythonPiscine
143968c2e26f5ddddb5114f3bcdddd0b1f00d153
[ "MIT" ]
1
2021-11-17T10:04:30.000Z
2021-11-17T10:04:30.000Z
Module_04/ex00/test.py
CristinaFdezBornay/PythonPiscine
143968c2e26f5ddddb5114f3bcdddd0b1f00d153
[ "MIT" ]
null
null
null
Module_04/ex00/test.py
CristinaFdezBornay/PythonPiscine
143968c2e26f5ddddb5114f3bcdddd0b1f00d153
[ "MIT" ]
null
null
null
from FileLoader import FileLoader tests = [ "non_existing_file.csv", "empty_file.csv", "../data/athlete_events.csv", ] if __name__=="__main__": for test in tests: print(f"==> TESTING {test}") fl = FileLoader() print(f"\n=> Loading file") df = fl.load(test) pri...
20.782609
43
0.541841
63
478
3.920635
0.507937
0.097166
0.08502
0.11336
0.137652
0.137652
0
0
0
0
0
0.01173
0.286611
478
23
44
20.782609
0.71261
0
0
0
0
0
0.340292
0.098121
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0.235294
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
75db1e4b6ac368d1004f97e5c6edf9221b06b01a
7,631
py
Python
lagen/nu/regeringenlegacy.py
redhog/ferenda
6935e26fdc63adc68b8e852292456b8d9155b1f7
[ "BSD-2-Clause" ]
18
2015-03-12T17:42:44.000Z
2021-12-27T10:32:22.000Z
lagen/nu/regeringenlegacy.py
redhog/ferenda
6935e26fdc63adc68b8e852292456b8d9155b1f7
[ "BSD-2-Clause" ]
13
2016-01-27T10:19:07.000Z
2021-12-13T20:24:36.000Z
lagen/nu/regeringenlegacy.py
redhog/ferenda
6935e26fdc63adc68b8e852292456b8d9155b1f7
[ "BSD-2-Clause" ]
6
2016-11-28T15:41:29.000Z
2022-01-08T11:16:48.000Z
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import * # this repo overrides ferenda.sources.legal.se.Regeringen to work # against old downloaded import re import codecs # from urllib.parse import urljoin from rdflib ...
40.375661
135
0.576727
798
7,631
5.438596
0.349624
0.022581
0.030645
0.033871
0.052995
0.015668
0.015668
0
0
0
0
0.009301
0.32368
7,631
188
136
40.590426
0.831622
0.139169
0
0.068182
0
0
0.106728
0.006575
0
0
0
0
0
1
0.045455
false
0
0.106061
0.022727
0.272727
0.007576
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
75e2178969612f0c7284d059eb5edd0c7915d7e5
2,850
py
Python
lambda_assistant/mysql/client_handler.py
matiasvallejosdev/py-aws-lambda-handlers
4643042bc02e557bb4a2953118de5f4eb5320d70
[ "Apache-2.0" ]
null
null
null
lambda_assistant/mysql/client_handler.py
matiasvallejosdev/py-aws-lambda-handlers
4643042bc02e557bb4a2953118de5f4eb5320d70
[ "Apache-2.0" ]
null
null
null
lambda_assistant/mysql/client_handler.py
matiasvallejosdev/py-aws-lambda-handlers
4643042bc02e557bb4a2953118de5f4eb5320d70
[ "Apache-2.0" ]
null
null
null
import pymysql import logging from lambda_assistant.handlers.event_handler import EventHandler from lambda_assistant.errors import * logger = logging.getLogger() logger.setLevel(logging.INFO) class Select(): def Select(self, handler: EventHandler, conn: pymysql.connections.Connection, sql: str): ...
35.185185
135
0.565965
288
2,850
5.493056
0.288194
0.044248
0.03287
0.051201
0.521492
0.521492
0.521492
0.521492
0.521492
0.407712
0
0.001081
0.350526
2,850
80
136
35.625
0.853593
0.05193
0
0.491803
0
0
0.004215
0
0
0
0
0
0
1
0.081967
false
0.04918
0.065574
0
0.327869
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
75e72372c73d69ec71d6ae230b03dd3710c4e2a3
2,506
py
Python
examples/building.py
jbermudezcabrera/campos
df34f93dd37b435a82663fb72ef37f669832af22
[ "MIT" ]
null
null
null
examples/building.py
jbermudezcabrera/campos
df34f93dd37b435a82663fb72ef37f669832af22
[ "MIT" ]
null
null
null
examples/building.py
jbermudezcabrera/campos
df34f93dd37b435a82663fb72ef37f669832af22
[ "MIT" ]
null
null
null
"""This example demonstrates the basics on building complete forms using campos. It creates several fields, marking some of them as required and adding some custom validation. Finally fields are added to a CreationForm which have several buttons and a custom callback connected to one of them. After added, some relate...
33.413333
80
0.634876
306
2,506
5.107843
0.441176
0.035829
0.046065
0.020473
0
0
0
0
0
0
0
0.001544
0.224661
2,506
74
81
33.864865
0.802882
0.173982
0
0
0
0
0.206211
0
0
0
0
0
0
1
0.046512
false
0
0.093023
0
0.162791
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
75e9882a624cfcf705ab7744f64aca22cda52bfb
8,452
py
Python
ai.py
LHGames-2017/nospace
1f36fb980ee51cdc576b765eff2c4ad5533ea0e3
[ "MIT" ]
null
null
null
ai.py
LHGames-2017/nospace
1f36fb980ee51cdc576b765eff2c4ad5533ea0e3
[ "MIT" ]
null
null
null
ai.py
LHGames-2017/nospace
1f36fb980ee51cdc576b765eff2c4ad5533ea0e3
[ "MIT" ]
null
null
null
from flask import Flask, request from structs import * import json import numpy as np import sys import random, time app = Flask(__name__) dx=0 dy=0 def create_action(action_type, target): actionContent = ActionContent(action_type, target.__dict__) #print(actionContent) return json.dumps(actionContent.__di...
30.959707
172
0.565192
1,129
8,452
4.116918
0.177148
0.010327
0.024096
0.028399
0.20525
0.1179
0.114458
0.112737
0.076592
0.03012
0
0.024801
0.270114
8,452
272
173
31.073529
0.728643
0.096545
0
0.069767
0
0
0.038992
0
0
0
0
0
0
1
0.104651
false
0
0.034884
0.040698
0.296512
0.040698
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
75ee6ab2f29331c5f95dba4b6e05f4612d407042
3,004
py
Python
sierra_adapter/sierra_progress_reporter/src/interval_arithmetic.py
wellcomecollection/catalogue-pipeline
360fa432a006f5e197a5b22d72cced7d6735d222
[ "MIT" ]
8
2019-08-02T09:48:40.000Z
2019-12-20T14:06:58.000Z
sierra_adapter/sierra_progress_reporter/src/interval_arithmetic.py
wellcomecollection/catalogue
17dcf7f1977f953fbaf35c60aa166aaa1413fdd2
[ "MIT" ]
329
2020-02-18T07:43:08.000Z
2021-04-23T10:45:33.000Z
sierra_adapter/sierra_progress_reporter/src/interval_arithmetic.py
wellcomecollection/catalogue-pipeline
360fa432a006f5e197a5b22d72cced7d6735d222
[ "MIT" ]
1
2019-08-22T11:44:34.000Z
2019-08-22T11:44:34.000Z
import datetime as dt import os import attr @attr.s(repr=False) class Interval: start = attr.ib() end = attr.ib() key = attr.ib() def __repr__(self): return "%s(start=%r, end=%r, key=%r)" % ( type(self).__name__, self.start.isoformat(), self.end.isoformat(...
29.165049
78
0.508655
338
3,004
4.434911
0.366864
0.036691
0.048032
0.013342
0.106738
0.106738
0.106738
0.105404
0.105404
0.105404
0
0.003215
0.378828
3,004
102
79
29.45098
0.800107
0.314248
0
0.222222
0
0
0.055723
0
0
0
0
0
0
1
0.074074
false
0
0.055556
0.037037
0.259259
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
75f1634c6e371274f9060f7f9a480ee9c930fa89
1,082
py
Python
userbot/plugins/hpdiwali.py
yu9ohde/Marshmellow
145c90470701c972ab458483ac1b9320d1a44e8e
[ "MIT" ]
2
2020-12-06T03:46:08.000Z
2022-02-19T20:34:52.000Z
userbot/plugins/hpdiwali.py
pro-boy/Marshmello
4cf6d96b69a7e0617ba5ced96eb5ee557b318b4c
[ "MIT" ]
4
2020-11-07T07:39:51.000Z
2020-11-10T03:46:41.000Z
userbot/plugins/hpdiwali.py
pro-boy/Marshmello
4cf6d96b69a7e0617ba5ced96eb5ee557b318b4c
[ "MIT" ]
9
2020-11-28T11:30:44.000Z
2021-06-01T07:11:57.000Z
# Plugin made by Dark cobra # For Dark cobra # Made by Shivam Patel(Team Cobra) # Kang with credits.. import random from userbot import CMD_HELP from userbot.events import register from userbot.utils import admin_cmd from telethon import events, types, functions, utils import asyncio def choser(cmd, pack, blacklist...
28.473684
134
0.621072
126
1,082
5.222222
0.579365
0.050152
0.039514
0
0
0
0
0
0
0
0
0.017173
0.30037
1,082
37
135
29.243243
0.852048
0.086876
0
0
0
0
0.04883
0.033571
0
0
0
0
0
1
0.041667
false
0
0.25
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
75f227cf59ba67118be0d4f419b2d0cc15fd93df
1,024
py
Python
scripts/parse-weka-results.py
jholewinski/ics-12-overlapped-tiling
af2b39bc957d33f68d4617865431ca731b18430a
[ "MIT" ]
3
2015-12-31T11:19:50.000Z
2017-11-30T03:14:56.000Z
scripts/parse-weka-results.py
jholewinski/ics-12-overlapped-tiling
af2b39bc957d33f68d4617865431ca731b18430a
[ "MIT" ]
null
null
null
scripts/parse-weka-results.py
jholewinski/ics-12-overlapped-tiling
af2b39bc957d33f68d4617865431ca731b18430a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys maximum = 0.0 selected = 0.0 results = [] for line in sys.stdin.readlines()[5:]: line = line.strip() if len(line) == 0: continue (inst, actual, predicted, error) = line.split() results.append([inst, actual, predicted, error]) predicted = float(predicted...
26.947368
79
0.630859
150
1,024
4.213333
0.313333
0.087025
0.082278
0.037975
0.251582
0.251582
0.251582
0.10443
0.10443
0.10443
0
0.023632
0.214844
1,024
37
80
27.675676
0.762438
0.019531
0
0
0
0
0.095904
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
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
75f3476923aa5142454f8d9f4ed05a21bd8875d9
941
py
Python
symtuner/logger.py
audxo14/symtuner
741e4e14cfcf09b7c7a71ce34cf28f1858f1f476
[ "MIT" ]
null
null
null
symtuner/logger.py
audxo14/symtuner
741e4e14cfcf09b7c7a71ce34cf28f1858f1f476
[ "MIT" ]
1
2022-01-26T12:51:32.000Z
2022-01-26T12:51:32.000Z
symtuner/logger.py
audxo14/symtuner
741e4e14cfcf09b7c7a71ce34cf28f1858f1f476
[ "MIT" ]
1
2022-01-26T12:42:24.000Z
2022-01-26T12:42:24.000Z
'''Logging module for symtuner library Logging module for symtuner library. All loggings in symtuner library use this module. ''' import logging as _logging _LOGGER = None def get_logger(): '''Get a logger. Get a singleton `Logger`. If `Logger` not defined make one and return. If `get_logger` called ...
28.515152
98
0.631243
106
941
5.443396
0.481132
0.07799
0.055459
0.083189
0.211438
0
0
0
0
0
0
0
0.268863
941
32
99
29.40625
0.838663
0.343252
0
0
0
0
0.131624
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.214286
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
75f57c3ebdfa5b1c58a1a40cbcfe56a933e80e69
3,326
py
Python
config/eval.py
XiaLiPKU/RESCAN-for-Deraining
e28d1d7cd3d8b276ce88de730de1603bafa30e23
[ "MIT" ]
292
2018-07-17T01:11:53.000Z
2022-03-31T13:06:50.000Z
config/eval.py
XiaLiPKU/RESCAN-for-Deraining
e28d1d7cd3d8b276ce88de730de1603bafa30e23
[ "MIT" ]
18
2018-08-02T13:33:06.000Z
2022-01-26T15:54:27.000Z
config/eval.py
XiaLiPKU/RESCAN-for-Deraining
e28d1d7cd3d8b276ce88de730de1603bafa30e23
[ "MIT" ]
87
2018-07-17T18:02:09.000Z
2021-12-19T08:21:57.000Z
import os import sys import cv2 import argparse import numpy as np import torch from torch import nn from torch.nn import MSELoss from torch.optim import Adam from torch.optim.lr_scheduler import MultiStepLR from torch.autograd import Variable from torch.utils.data import DataLoader from tensorboardX import SummaryWri...
28.672414
81
0.613049
459
3,326
4.259259
0.270153
0.027621
0.021483
0.017391
0.011253
0.011253
0.011253
0
0
0
0
0.004971
0.274203
3,326
115
82
28.921739
0.804888
0
0
0
0
0
0.046917
0
0
0
0
0
0
1
0.064516
false
0
0.182796
0
0.290323
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
75f5ca0e1019fe3f64db390c86a601c2f8792420
6,371
py
Python
FastEMRIWaveforms/few/utils/modeselector.py
basuparth/ICERM_Workshop
ebabce680fc87e90ff1de30246dcda9beb384bb4
[ "MIT" ]
null
null
null
FastEMRIWaveforms/few/utils/modeselector.py
basuparth/ICERM_Workshop
ebabce680fc87e90ff1de30246dcda9beb384bb4
[ "MIT" ]
null
null
null
FastEMRIWaveforms/few/utils/modeselector.py
basuparth/ICERM_Workshop
ebabce680fc87e90ff1de30246dcda9beb384bb4
[ "MIT" ]
null
null
null
# Online mode selection for FastEMRIWaveforms Packages # Copyright (C) 2020 Michael L. Katz, Alvin J.K. Chua, Niels Warburton, Scott A. Hughes # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, ...
38.149701
95
0.622822
909
6,371
4.293729
0.331133
0.010249
0.009224
0.010249
0.149372
0.110684
0.070202
0.048424
0.029208
0.029208
0
0.017153
0.295401
6,371
166
96
38.379518
0.852306
0.624706
0
0
0
0
0
0
0
0
0
0
0
1
0.08
false
0.02
0.1
0
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
75f9e56ae6c6a091caa3997bff09abbf8201e9db
2,803
py
Python
source/hsicbt/model/vgg.py
tongjian121/PK-HBaR
c564e0f08c2c09e0023384adecfcf25e2d53a8a3
[ "MIT" ]
9
2021-11-04T16:53:04.000Z
2022-03-28T10:27:44.000Z
source/hsicbt/model/vgg.py
tongjian121/PK-HBaR
c564e0f08c2c09e0023384adecfcf25e2d53a8a3
[ "MIT" ]
null
null
null
source/hsicbt/model/vgg.py
tongjian121/PK-HBaR
c564e0f08c2c09e0023384adecfcf25e2d53a8a3
[ "MIT" ]
null
null
null
import math import torch import torch.nn as nn from torch.autograd import Variable from torchvision import models defaultcfg = { 11 : [64, 'M', 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512], 13 : [64, 64, 'M', 128, 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512], 16 : [64, 64, 'M', 128, 128, 'M', 256...
32.593023
108
0.567249
424
2,803
3.591981
0.214623
0.090611
0.076822
0.055154
0.286277
0.241628
0.224557
0.105056
0.099803
0.06172
0
0.148495
0.276846
2,803
86
109
32.593023
0.602861
0.035319
0
0.193548
0
0
0.013333
0
0
0
0
0
0
1
0.080645
false
0
0.080645
0
0.258065
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
75faae9bc5c91a63ded3c9f4f2e51213df5e1730
11,555
py
Python
src/out/ICFP18evaluation/evaluationTreeLSTM/PyTorch/scripts/preprocess-sst.py
faradaym/Lantern
536e48da79ee374527c669f77ad9e0a0776a0bb8
[ "BSD-3-Clause" ]
158
2018-03-28T21:58:07.000Z
2022-02-22T00:49:46.000Z
src/out/ICFP18evaluation/evaluationTreeLSTM/PyTorch/scripts/preprocess-sst.py
douxiansheng/Lantern
f453de532da638c1f467953b32bbe49a3dedfa45
[ "BSD-3-Clause" ]
35
2018-09-03T21:27:15.000Z
2019-05-11T02:17:49.000Z
src/out/ICFP18evaluation/evaluationTreeLSTM/PyTorch/scripts/preprocess-sst.py
douxiansheng/Lantern
f453de532da638c1f467953b32bbe49a3dedfa45
[ "BSD-3-Clause" ]
36
2017-06-30T00:28:59.000Z
2022-01-24T12:20:42.000Z
""" Preprocessing script for Stanford Sentiment Treebank data. """ import os import glob # # Trees and tree loading # class ConstTree(object): def __init__(self): self.left = None self.right = None def size(self): self.size = 1 if self.left is not None: self.size...
32.457865
87
0.539766
1,429
11,555
4.26662
0.121763
0.036411
0.049205
0.036739
0.409218
0.30802
0.206331
0.170248
0.149582
0.124651
0
0.004721
0.340026
11,555
355
88
32.549296
0.794781
0.02804
0
0.29932
0
0.003401
0.051035
0.007405
0
0
0
0
0
1
0.071429
false
0
0.006803
0
0.129252
0.017007
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
75fc997c30736fa87f40fddc061010fa3c1f2c9f
12,703
py
Python
models/relevance/relevance_google_net.py
sanglee/XAI-threshold-calibration
24ddd5213b02d4fb919bca191392fe8b1a30aa88
[ "Apache-2.0" ]
null
null
null
models/relevance/relevance_google_net.py
sanglee/XAI-threshold-calibration
24ddd5213b02d4fb919bca191392fe8b1a30aa88
[ "Apache-2.0" ]
null
null
null
models/relevance/relevance_google_net.py
sanglee/XAI-threshold-calibration
24ddd5213b02d4fb919bca191392fe8b1a30aa88
[ "Apache-2.0" ]
null
null
null
import warnings from collections import namedtuple import torch import torch.nn as nn import torch.nn.functional as F from torch import Tensor import torch.utils.model_zoo as model_zoo from typing import Optional, Tuple, List, Callable, Any from modules.layers import * __all__ = ['GoogLeNet', 'googlenet', "GoogLeNetO...
32.994805
119
0.581831
1,704
12,703
4.220657
0.181338
0.027809
0.041296
0.054227
0.29644
0.241518
0.179227
0.16713
0.13668
0.13668
0
0.073857
0.302921
12,703
385
120
32.994805
0.73834
0.215855
0
0.163717
0
0
0.067507
0
0
0
0
0
0.004425
1
0.070796
false
0
0.039823
0
0.185841
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
75fe4ffed842895823f432c3592116337d923fac
8,457
py
Python
polyglotdb/client/client.py
michaelhaaf/PolyglotDB
7640212c7062cf44ae911081241ce83a26ced2eb
[ "MIT" ]
25
2016-01-28T20:47:07.000Z
2021-11-29T16:13:07.000Z
polyglotdb/client/client.py
michaelhaaf/PolyglotDB
7640212c7062cf44ae911081241ce83a26ced2eb
[ "MIT" ]
120
2016-04-07T17:55:09.000Z
2022-03-24T18:30:10.000Z
polyglotdb/client/client.py
PhonologicalCorpusTools/PolyglotDB
7640212c7062cf44ae911081241ce83a26ced2eb
[ "MIT" ]
10
2015-12-03T20:06:58.000Z
2021-02-11T03:02:48.000Z
import requests from ..exceptions import ClientError class PGDBClient(object): """ Simple client for interacting with ISCAN servers. """ def __init__(self, host, token=None, corpus_name=None): self.host = host self.token = token if self.host.endswith('/'): self.hos...
33.295276
108
0.537898
895
8,457
4.973184
0.130726
0.072793
0.032352
0.043136
0.680521
0.644125
0.611099
0.596945
0.558751
0.514716
0
0.006033
0.33357
8,457
253
109
33.426877
0.783712
0.184936
0
0.661157
0
0
0.157215
0
0
0
0
0
0
1
0.090909
false
0.016529
0.016529
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
75fefd40d863da1697a3900b9bc8d32e531394bf
2,745
py
Python
python/plotCSV.py
lrquad/LoboScripts
04d2de79d2d83e781e3f4a3de2531dc48e4013a6
[ "MIT" ]
null
null
null
python/plotCSV.py
lrquad/LoboScripts
04d2de79d2d83e781e3f4a3de2531dc48e4013a6
[ "MIT" ]
null
null
null
python/plotCSV.py
lrquad/LoboScripts
04d2de79d2d83e781e3f4a3de2531dc48e4013a6
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation import matplotlib.animation as animation from matplotlib import rcParams import matplotlib.patches as patches rcParams['font.family'] = 'Times New Roman' rcParams['font.size'] = 20 rcParams['axes.edgecolor'] = (0.0, 0.0, ...
30.5
151
0.665938
428
2,745
4.063084
0.299065
0.051754
0.017251
0.018401
0.230017
0.154112
0.13916
0.090857
0.090857
0.041403
0
0.025121
0.173406
2,745
89
152
30.842697
0.741296
0.052095
0
0.060606
0
0
0.075
0
0
0
0
0
0
1
0.075758
false
0
0.090909
0
0.242424
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f01f5d13c019c855d7b51b2b4f48b63f6f7275b
12,327
py
Python
wrappers/python/virgil_crypto_lib/foundation/_c_bridge/_vscf_rsa.py
odidev/virgil-crypto-c
3d5d5cb19fdcf81eab08cdc63647f040117ecbd8
[ "BSD-3-Clause" ]
26
2018-12-17T13:45:25.000Z
2022-01-16T20:00:04.000Z
wrappers/python/virgil_crypto_lib/foundation/_c_bridge/_vscf_rsa.py
odidev/virgil-crypto-c
3d5d5cb19fdcf81eab08cdc63647f040117ecbd8
[ "BSD-3-Clause" ]
4
2019-01-03T12:08:52.000Z
2021-12-02T05:21:13.000Z
wrappers/python/virgil_crypto_lib/foundation/_c_bridge/_vscf_rsa.py
odidev/virgil-crypto-c
3d5d5cb19fdcf81eab08cdc63647f040117ecbd8
[ "BSD-3-Clause" ]
8
2019-01-24T08:22:06.000Z
2022-02-07T11:37:00.000Z
# Copyright (C) 2015-2021 Virgil Security, Inc. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # (1) Redistributions of source code must retain the above copyright # notice, this li...
49.705645
124
0.736108
1,875
12,327
4.4672
0.1264
0.136223
0.023878
0.04298
0.671442
0.53713
0.435769
0.368792
0.306232
0.24797
0
0.00352
0.193397
12,327
247
125
49.906883
0.838882
0.297883
0
0
0
0
0
0
0
0
0
0
0
1
0.180451
false
0.007519
0.150376
0
0.548872
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
2f03da5c972d890701aa5588b07be7bd754ca560
5,268
py
Python
bulk-image-optimizer.py
carzam87/python-bulk-image-optimizer
1e9e9396de84de3651b963fc3b8b569893296dde
[ "MIT" ]
8
2020-01-28T10:33:28.000Z
2022-01-28T12:51:50.000Z
bulk-image-optimizer.py
carzam87/python-bulk-image-optimizer
1e9e9396de84de3651b963fc3b8b569893296dde
[ "MIT" ]
null
null
null
bulk-image-optimizer.py
carzam87/python-bulk-image-optimizer
1e9e9396de84de3651b963fc3b8b569893296dde
[ "MIT" ]
5
2020-09-29T08:26:35.000Z
2021-11-15T20:07:20.000Z
import os import subprocess from pathlib import Path from PIL import Image import errno import time from re import search CONVERT_PNG_TO_JPG = False TOTAL_ORIGINAL = 0 TOTAL_COMPRESSED = 0 TOTAL_GAIN = 0 TOTAL_FILES = 0 QUALITY = 85 def compress(location): for r, d, f in os.walk(location): for item in d:...
44.644068
123
0.44609
525
5,268
4.297143
0.234286
0.037234
0.034574
0.045213
0.300532
0.266844
0.246454
0.246454
0.246454
0.246454
0
0.01235
0.431283
5,268
117
124
45.025641
0.740654
0.058846
0
0.309278
0
0
0.145282
0.050919
0
0
0
0
0
1
0.010309
false
0
0.072165
0
0.082474
0.103093
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f03ebf048e5859cb54e5897517da48e3b0f38d0
16,968
py
Python
interpretdl/interpreter/lime.py
Tyihou/InterpretDL
df8894f8703634df4bfcbdcc495a3d12b220028c
[ "Apache-2.0" ]
1
2021-03-11T02:38:51.000Z
2021-03-11T02:38:51.000Z
interpretdl/interpreter/lime.py
Tyihou/InterpretDL
df8894f8703634df4bfcbdcc495a3d12b220028c
[ "Apache-2.0" ]
null
null
null
interpretdl/interpreter/lime.py
Tyihou/InterpretDL
df8894f8703634df4bfcbdcc495a3d12b220028c
[ "Apache-2.0" ]
null
null
null
import os import typing from typing import Any, Callable, List, Tuple, Union import numpy as np from ..data_processor.readers import preprocess_image, read_image, restore_image from ..data_processor.visualizer import show_important_parts, visualize_image, save_image from ..common.paddle_utils import init_checkpoint, t...
39.277778
184
0.552393
1,919
16,968
4.665451
0.181866
0.019658
0.021445
0.013403
0.501731
0.486317
0.463755
0.449012
0.425109
0.379984
0
0.013825
0.369107
16,968
431
185
39.36891
0.822513
0.405646
0
0.475962
0
0
0.011678
0
0
0
0
0
0
1
0.043269
false
0
0.057692
0
0.139423
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
2f042e06fed341e6137967c14ffb3b319a432271
2,106
py
Python
opendc-web/opendc-web-api/opendc/api/v2/portfolios/portfolioId/scenarios/endpoint.py
Koen1999/opendc
f9b43518d2d50f33077734537a477539fca9f5b7
[ "MIT" ]
null
null
null
opendc-web/opendc-web-api/opendc/api/v2/portfolios/portfolioId/scenarios/endpoint.py
Koen1999/opendc
f9b43518d2d50f33077734537a477539fca9f5b7
[ "MIT" ]
4
2020-11-27T16:27:58.000Z
2020-12-28T23:00:08.000Z
opendc-web/opendc-web-api/opendc/api/v2/portfolios/portfolioId/scenarios/endpoint.py
Koen1999/opendc
f9b43518d2d50f33077734537a477539fca9f5b7
[ "MIT" ]
null
null
null
from opendc.models.portfolio import Portfolio from opendc.models.scenario import Scenario from opendc.models.topology import Topology from opendc.util.rest import Response def POST(request): """Add a new Scenario for this Portfolio.""" request.check_required_parameters(path={'portfolioId': 'string'}, ...
42.12
91
0.45679
144
2,106
6.541667
0.402778
0.042463
0.050955
0.046709
0.089172
0.089172
0.089172
0.089172
0
0
0
0.00258
0.447768
2,106
49
92
42.979592
0.807395
0.018044
0
0
0
0
0.151309
0.014549
0
0
0
0
0
1
0.027027
false
0
0.108108
0
0.162162
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
f92e0d9330578dc947fa3c0cecc40a9523ecca24
1,906
py
Python
Python/pymd/md/core/box.py
ryanlopezzzz/ABPTutorial
923fa89f1959cd71b28ecf4628ecfbfce6a6206c
[ "MIT" ]
8
2020-05-05T00:41:50.000Z
2021-11-04T20:54:43.000Z
Python/pymd/md/core/box.py
ryanlopezzzz/ABPTutorial
923fa89f1959cd71b28ecf4628ecfbfce6a6206c
[ "MIT" ]
null
null
null
Python/pymd/md/core/box.py
ryanlopezzzz/ABPTutorial
923fa89f1959cd71b28ecf4628ecfbfce6a6206c
[ "MIT" ]
5
2020-05-04T16:37:13.000Z
2021-08-18T07:53:58.000Z
# Copyright 2020 Rastko Sknepnek, University of Dundee, r.skepnek@dundee.ac.uk # # 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 ...
45.380952
114
0.693599
306
1,906
4.30719
0.454248
0.066768
0.018209
0.021244
0.080425
0.044006
0.044006
0
0
0
0
0.015562
0.224554
1,906
42
115
45.380952
0.876184
0.764953
0
0
0
0
0.125654
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f92f4eea713aeec6532cc3eed5da737cef8d020e
884
py
Python
dot_vim/plugged/vim-devicons/pythonx/vim_devicons/powerline/segments.py
gabefgonc/san-francisco-rice-dotfiles
60ff3539f34ecfff6d7bce895497e2a3805910d4
[ "MIT" ]
4,897
2015-07-12T17:52:02.000Z
2022-03-31T16:07:01.000Z
dot_vim/plugged/vim-devicons/pythonx/vim_devicons/powerline/segments.py
gabefgonc/san-francisco-rice-dotfiles
60ff3539f34ecfff6d7bce895497e2a3805910d4
[ "MIT" ]
337
2015-07-12T17:14:35.000Z
2022-03-05T17:27:24.000Z
dot_vim/plugged/vim-devicons/pythonx/vim_devicons/powerline/segments.py
gabefgonc/san-francisco-rice-dotfiles
60ff3539f34ecfff6d7bce895497e2a3805910d4
[ "MIT" ]
365
2015-07-20T07:51:11.000Z
2022-02-22T05:00:56.000Z
# -*- coding: utf-8 -*- # vim:se fenc=utf8 noet: from __future__ import (unicode_literals, division, absolute_import, print_function) try: import vim except ImportError: vim = {} from powerline.bindings.vim import (vim_get_func, buffer_name) from powerline.theme import requires_segment_info @requires_segment_info ...
30.482759
84
0.777149
107
884
6.065421
0.411215
0.101695
0.161787
0.067797
0.101695
0
0
0
0
0
0
0.002548
0.111991
884
28
85
31.571429
0.824204
0.049774
0
0.181818
0
0
0.191159
0.096774
0
0
0
0
0
1
0.090909
false
0
0.227273
0
0.409091
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9306dd6abfdca80dd6982ef5b08247263dd7576
5,530
py
Python
src/gui_occluder/custom/sr_occluder.py
hgiesel/anki-multiple-choice
1a9a22480eb6c0e7f421dc08d36d14920e43dd3e
[ "MIT" ]
5
2019-12-26T08:08:52.000Z
2021-11-21T03:34:27.000Z
src/gui_occluder/custom/sr_occluder.py
hgiesel/anki-set-randomizer
1a9a22480eb6c0e7f421dc08d36d14920e43dd3e
[ "MIT" ]
84
2019-08-01T20:36:17.000Z
2019-10-26T16:16:33.000Z
src/gui_occluder/custom/sr_occluder.py
hgiesel/anki_set_randomizer
1a9a22480eb6c0e7f421dc08d36d14920e43dd3e
[ "MIT" ]
null
null
null
import os import enum from aqt.qt import QDialog, QGraphicsScene, QGraphicsRectItem, QGraphicsEllipseItem, QApplication from aqt.qt import Qt, QPen, QGraphicsItem, QPixmap, QRectF, QPainter from aqt.qt import QPointF, QBrush, QColor, QPainterPath, QIcon, QSize, QPalette from aqt.utils import showInfo from ..sr_occlu...
34.5625
97
0.674141
613
5,530
6.029364
0.205546
0.069805
0.035173
0.045996
0.222403
0.165584
0.165584
0.165584
0
0
0
0.006679
0.214828
5,530
159
98
34.779874
0.844542
0
0
0.070866
0
0
0.049548
0.029837
0
0
0
0
0
1
0.11811
false
0
0.07874
0
0.291339
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
f930eb0037c9a1f7c847f03ac1f6289fad3453d4
13,371
py
Python
gen3config/config.py
uc-cdis/gen3config
fe340c0ce8ef3367f13c4f6040ec605e5fa7bc0c
[ "Apache-2.0" ]
null
null
null
gen3config/config.py
uc-cdis/gen3config
fe340c0ce8ef3367f13c4f6040ec605e5fa7bc0c
[ "Apache-2.0" ]
null
null
null
gen3config/config.py
uc-cdis/gen3config
fe340c0ce8ef3367f13c4f6040ec605e5fa7bc0c
[ "Apache-2.0" ]
null
null
null
""" Configuration class for handling configs with a given default. If you need custom functionality or need to apply post_processing to parsed config, simply extend this class. Example: ``` class FenceConfig(Config): def __init__(self, *args, **kwargs): super(FenceConfig, self).__init__(*args, **kwargs) ...
35.943548
99
0.615362
1,615
13,371
4.928173
0.237771
0.029024
0.022867
0.016711
0.11421
0.088328
0.067345
0.051263
0.051263
0.039955
0
0.001262
0.28861
13,371
371
100
36.040431
0.835471
0.442974
0
0.112426
0
0.005917
0.134393
0
0
0
0
0
0
1
0.106509
false
0.005917
0.053254
0.029586
0.218935
0.005917
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f931949a583110bdf77e537bf67ef0dfdd9aeae4
8,150
py
Python
src/ReinforcementLearning/Modules/carlaUtils.py
B-C-WANG/ReinforcementLearningInAutoPilot
8d3c0b81e3db2fb4be0e52e25b700c54f5e569dc
[ "MIT" ]
27
2019-05-14T01:06:05.000Z
2022-03-06T03:12:40.000Z
src/ReinforcementLearning/Modules/carlaUtils.py
B-C-WANG/ReinforcementLearningInAutoPilot
8d3c0b81e3db2fb4be0e52e25b700c54f5e569dc
[ "MIT" ]
null
null
null
src/ReinforcementLearning/Modules/carlaUtils.py
B-C-WANG/ReinforcementLearningInAutoPilot
8d3c0b81e3db2fb4be0e52e25b700c54f5e569dc
[ "MIT" ]
10
2020-01-20T09:39:51.000Z
2022-03-31T18:30:53.000Z
# coding:utf-8 # Type: Public import numpy as np import common.Math as cMath import math class CarlrUtils(object): Author = "BaoChuan Wang" AllowImport = False @staticmethod def get_direction_vector_series_and_car_to_next_waypoint_ratio( carla_engine, start_waypoint_xy_array...
40.346535
141
0.640613
900
8,150
5.385556
0.194444
0.055705
0.105839
0.080875
0.467918
0.374458
0.322468
0.285125
0.238704
0.215185
0
0.011974
0.282699
8,150
201
142
40.547264
0.81714
0.283313
0
0.247191
0
0
0.00866
0
0
0
0
0
0
1
0.033708
false
0
0.044944
0
0.146067
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
f932dbe3d5afcee0aae3f946f59a3b66e3f2fb59
2,413
py
Python
models.py
abhishekyana/CycleGANs-PyTorch
ebbd7d6dbed642577cc37a3e741f4233b9cbbd7a
[ "MIT" ]
12
2019-07-27T09:54:57.000Z
2021-04-23T23:34:25.000Z
models.py
abhishekyana/CycleGANs-PyTorch
ebbd7d6dbed642577cc37a3e741f4233b9cbbd7a
[ "MIT" ]
5
2020-11-13T15:40:12.000Z
2022-03-11T23:53:51.000Z
models.py
abhishekyana/CycleGANs-PyTorch
ebbd7d6dbed642577cc37a3e741f4233b9cbbd7a
[ "MIT" ]
2
2021-03-11T10:45:33.000Z
2021-04-23T23:34:29.000Z
import torch.nn as nn import torch.nn.functional as F class ResBlock(nn.Module): def __init__(self, inFeatures): super(ResBlock, self).__init__() self.conv = nn.Sequential(nn.ReflectionPad2d(1), nn.Conv2d(inFeatures, inFeatures, 3), nn.InstanceNorm2d(inFeatures), nn.ReLU(inplace=True),...
30.544304
100
0.642768
317
2,413
4.810726
0.201893
0.052459
0.039344
0.04918
0.613115
0.588852
0.502295
0.361967
0.278033
0.278033
0
0.058017
0.214256
2,413
79
101
30.544304
0.746308
0.018235
0
0.439394
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.030303
0
0.212121
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
f9347e37b52fec0692880a203b911075b279ecba
5,194
py
Python
file-io-and-other-io/modfile/test_ip_gen.py
eda-ricercatore/python-sandbox
741d23e15f22239cb5df8af6e695cd8e3574be50
[ "MIT" ]
null
null
null
file-io-and-other-io/modfile/test_ip_gen.py
eda-ricercatore/python-sandbox
741d23e15f22239cb5df8af6e695cd8e3574be50
[ "MIT" ]
null
null
null
file-io-and-other-io/modfile/test_ip_gen.py
eda-ricercatore/python-sandbox
741d23e15f22239cb5df8af6e695cd8e3574be50
[ "MIT" ]
null
null
null
#!/usr/bin/python """ This is written by Zhiyang Ong to modify text (non-binary) files. Synopsis: Script to modify text (non-binary) files. Revision History: 1) November 11, 2014. Initial working version. The MIT License (MIT) Copyright (c) <2014> <Zhiyang Ong> Permission is hereby granted, f...
57.076923
980
0.701579
709
5,194
5.090268
0.510578
0.017456
0.016625
0.012469
0.040454
0.029925
0
0
0
0
0
0.019811
0.144782
5,194
90
981
57.711111
0.792661
0.527147
0
0.2
0
0
0.587192
0
0.05
0
0
0
0
1
0
false
0
0.05
0
0.05
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
f934993945194bcd3e81f89c7b932f03bda5ad14
8,771
py
Python
aux_lib.py
paulokuriki/dcmtag2table
e9f7f366ffe64653aa2fab9bffd88669f1ed7f3f
[ "Apache-2.0" ]
null
null
null
aux_lib.py
paulokuriki/dcmtag2table
e9f7f366ffe64653aa2fab9bffd88669f1ed7f3f
[ "Apache-2.0" ]
null
null
null
aux_lib.py
paulokuriki/dcmtag2table
e9f7f366ffe64653aa2fab9bffd88669f1ed7f3f
[ "Apache-2.0" ]
null
null
null
import pydicom from tqdm import tqdm import pandas as pd import os import time import glob import numpy as np from pydicom import _dicom_dict as dc from constants import * import string def dcmtag2df(folder: str, list_of_tags: list): """ # Create a Pandas DataFrame with the <list_of_tags> DICOM tags # from...
37.165254
115
0.551248
1,032
8,771
4.452519
0.196705
0.048966
0.036779
0.050925
0.411099
0.386289
0.331665
0.296844
0.133624
0.133624
0
0.014674
0.3629
8,771
235
116
37.323404
0.807623
0.104663
0
0.335165
0
0
0.083162
0.011311
0
0
0
0
0
1
0.032967
false
0.010989
0.054945
0
0.17033
0.06044
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f93933ebd7cddbd101cc7daf0772e4787528a6a9
2,965
py
Python
server/swagger_server/models/people_patch.py
fabric-testbed/fabric-core-api
8ce79fd16e1020271487967743a89b7a2346bf45
[ "MIT" ]
null
null
null
server/swagger_server/models/people_patch.py
fabric-testbed/fabric-core-api
8ce79fd16e1020271487967743a89b7a2346bf45
[ "MIT" ]
null
null
null
server/swagger_server/models/people_patch.py
fabric-testbed/fabric-core-api
8ce79fd16e1020271487967743a89b7a2346bf45
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server.models.preferences import Preferences # noqa: F401,E501 from swagger_server import util class...
25.560345
101
0.601349
329
2,965
5.334347
0.206687
0.054701
0.154986
0.039886
0.333333
0.191453
0.17094
0
0
0
0
0.013685
0.309949
2,965
115
102
25.782609
0.844086
0.412142
0
0.214286
0
0
0.049443
0
0
0
0
0
0
1
0.190476
false
0
0.142857
0
0.452381
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
f9393f537340aad0fcc03fb7b4478b7455578c86
14,649
py
Python
Code/src/models/optim/DMSAD_trainer.py
antoine-spahr/Contrastive-Deep-Semi-Supervised-Anomaly-Detection
e84c28ce4dd28671d39752a7d21c674e05fcb495
[ "MIT" ]
8
2021-02-19T17:30:00.000Z
2022-02-21T05:55:06.000Z
Code/src/models/optim/DMSAD_trainer.py
antoine-spahr/Contrastive-Deep-Semi-Supervised-Anomaly-Detection
e84c28ce4dd28671d39752a7d21c674e05fcb495
[ "MIT" ]
1
2021-05-03T14:04:53.000Z
2021-05-03T14:48:01.000Z
Code/src/models/optim/DMSAD_trainer.py
antoine-spahr/Contrastive-Deep-Semi-Supervised-Anomaly-Detection
e84c28ce4dd28671d39752a7d21c674e05fcb495
[ "MIT" ]
5
2021-02-18T22:43:40.000Z
2021-05-03T14:01:49.000Z
import torch import torch.nn as nn import torch.optim as optim import numpy as np import time import logging from sklearn.metrics import roc_auc_score from sklearn.cluster import KMeans from sklearn.manifold import TSNE from src.models.optim.Loss_Functions import DMSADLoss from src.utils.utils import print_progessbar ...
42.708455
123
0.558263
1,806
14,649
4.403101
0.170543
0.013204
0.019618
0.013833
0.34419
0.303949
0.265342
0.246605
0.246605
0.235538
0
0.009384
0.338044
14,649
342
124
42.833333
0.810663
0.309031
0
0.247059
0
0.005882
0.081267
0.009536
0
0
0
0
0
1
0.029412
false
0
0.064706
0
0.111765
0.094118
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f93b09d7873482279865a3e138f9e289b66d1ef0
7,600
py
Python
escher/tests/test_plots.py
phantomas1234/escher
47f3291beefd7cc90207755c717e83f385262956
[ "MIT" ]
null
null
null
escher/tests/test_plots.py
phantomas1234/escher
47f3291beefd7cc90207755c717e83f385262956
[ "MIT" ]
null
null
null
escher/tests/test_plots.py
phantomas1234/escher
47f3291beefd7cc90207755c717e83f385262956
[ "MIT" ]
null
null
null
from __future__ import print_function, unicode_literals from escher import __schema_version__ import escher.server from escher import Builder, get_cache_dir, clear_cache from escher.plots import (_load_resource, local_index, server_index, model_json_for_name, map_json_for_name) from escher.u...
37.073171
133
0.644342
1,018
7,600
4.540275
0.191552
0.021203
0.023799
0.042406
0.44894
0.391173
0.338598
0.299654
0.290134
0.259844
0
0.020858
0.211447
7,600
204
134
37.254902
0.750375
0.046447
0
0.246835
0
0
0.22313
0.027147
0
0
0
0.004902
0.158228
1
0.107595
false
0
0.088608
0
0.196203
0.006329
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f94563e81861f76b57c556bc8928617eb8ac0410
19,471
py
Python
symbol.py
LizhengMathAi/symbol_FEM
a2679ff90cfffa40316e33102be1a802e210768a
[ "Apache-2.0" ]
1
2021-02-07T00:53:51.000Z
2021-02-07T00:53:51.000Z
symbol.py
LizhengMathAi/symbol_FEM
a2679ff90cfffa40316e33102be1a802e210768a
[ "Apache-2.0" ]
null
null
null
symbol.py
LizhengMathAi/symbol_FEM
a2679ff90cfffa40316e33102be1a802e210768a
[ "Apache-2.0" ]
null
null
null
from functools import reduce import numpy as np from sparse import SparseTensor def reduce_prod(seq): return reduce(lambda item_1, item_2: item_1 * item_2, seq) class Polynomial: def __init__(self, coeff, indices, merge=True): """\\sum_{i=0}^{N-1} coeff[i] \\Pi_{j=0}^{NV-1} x_j^{indices[i, j]}""" ...
49.544529
137
0.558472
2,684
19,471
3.889717
0.069672
0.039655
0.018103
0.022989
0.590805
0.517241
0.483621
0.456513
0.449425
0.435824
0
0.029213
0.240512
19,471
392
138
49.670918
0.676765
0.126547
0
0.271062
0
0.025641
0.066955
0.008414
0
0
0
0.002551
0.007326
1
0.098901
false
0
0.010989
0.029304
0.197802
0.150183
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f94e553843e7ec006e6711f29cd3c8bedc298b1e
18,184
py
Python
pfstats.py
altinukshini/pfstats
90137cdfdc7c5ae72b782c3fc113d56231e2667d
[ "MIT" ]
18
2017-09-03T19:59:08.000Z
2022-02-02T11:59:48.000Z
pfstats.py
altinukshini/pfstats
90137cdfdc7c5ae72b782c3fc113d56231e2667d
[ "MIT" ]
3
2018-04-23T14:09:47.000Z
2020-09-30T10:26:16.000Z
pfstats.py
altinukshini/pfstats
90137cdfdc7c5ae72b782c3fc113d56231e2667d
[ "MIT" ]
14
2017-09-03T19:59:10.000Z
2022-03-15T12:19:57.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Postfix mail log parser and filter. This script filters and parses Postfix logs based on provided filter parameters. Example: To use this script type 'python pfstats.py -h'. Below is an example that filteres postfix log file (even gziped) based on date, se...
31.460208
144
0.592444
2,245
18,184
4.606236
0.138976
0.042549
0.012571
0.013828
0.372208
0.290204
0.247268
0.213616
0.165458
0.158689
0
0.002851
0.267048
18,184
577
145
31.514731
0.773034
0.179333
0
0.165493
0
0.003521
0.163503
0.013132
0
0
0
0.001733
0
1
0.073944
false
0
0.035211
0
0.161972
0.038732
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9576382290725337f6455bafa4ade3618c4bd12
8,349
py
Python
pod.py
ddh0/pod
5c630f609db6d4e2d6704874144faf9fe64ee15b
[ "MIT" ]
1
2020-11-20T16:35:07.000Z
2020-11-20T16:35:07.000Z
pod.py
ddh0/pod
5c630f609db6d4e2d6704874144faf9fe64ee15b
[ "MIT" ]
null
null
null
pod.py
ddh0/pod
5c630f609db6d4e2d6704874144faf9fe64ee15b
[ "MIT" ]
null
null
null
# Program that downloads all episodes of a podcast # Features # -- Functions: add, remove, update # - Run the file to update without having to use python interpreter # - Download all episodes of a podcast, put into the correct folder # - Tag each file with metadata from the feed and the stored config import os ...
39.947368
177
0.548928
979
8,349
4.587334
0.28907
0.04008
0.016032
0.022267
0.114006
0.046315
0.024939
0.024939
0.024939
0.024939
0
0.01247
0.346868
8,349
208
178
40.139423
0.811113
0.21811
0
0.03125
0
0.007813
0.207493
0.025456
0
0
0
0
0
1
0.039063
false
0
0.054688
0
0.101563
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
f9577ac9ab9b2574ecfc469b539a86e4c283b783
1,954
py
Python
threading_ext/RecordingThread.py
Antoine-BL/chess-ai.py
c68ca76063c14b1b8b91d338c8cead9f411521ca
[ "MIT" ]
2
2019-08-21T15:52:29.000Z
2021-09-11T23:07:17.000Z
threading_ext/RecordingThread.py
Antoine-BL/chess-ai.py
c68ca76063c14b1b8b91d338c8cead9f411521ca
[ "MIT" ]
5
2020-09-25T23:15:31.000Z
2022-02-10T00:07:33.000Z
threading_ext/RecordingThread.py
Antoine-BL/EuroTruck-ai.py
c68ca76063c14b1b8b91d338c8cead9f411521ca
[ "MIT" ]
null
null
null
import time import numpy as np import cv2 from mss import mss from threading_ext.GameRecorder import GameRecorder from threading_ext.PausableThread import PausableThread class RecordingThread(PausableThread): def __init__(self, training_data_path: str, session_number: int, recorder: GameRecorder): supe...
33.689655
96
0.619754
244
1,954
4.704918
0.336066
0.125436
0.15331
0.052265
0.172474
0.059233
0.059233
0
0
0
0
0.035361
0.276356
1,954
57
97
34.280702
0.776521
0
0
0.069767
0
0
0.028659
0
0
0
0
0
0
1
0.116279
false
0
0.139535
0
0.27907
0.069767
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f957da3a4215ef9104b40d885730febc525fd16f
638
py
Python
multicast/mtc_recv.py
Tatchakorn/Multi-threaded-Server-
d5502a3da942e06736d07efc8d64186bc03a23d7
[ "Beerware" ]
2
2021-11-11T12:14:35.000Z
2021-12-07T15:03:41.000Z
multicast/mtc_recv.py
Tatchakorn/Multi-threaded-Server-
d5502a3da942e06736d07efc8d64186bc03a23d7
[ "Beerware" ]
null
null
null
multicast/mtc_recv.py
Tatchakorn/Multi-threaded-Server-
d5502a3da942e06736d07efc8d64186bc03a23d7
[ "Beerware" ]
null
null
null
#! /usr/bin/python3 import threading import socket from test import create_upd_clients from client import multicast_receive def test_multicast_receive(): clients = create_upd_clients(3) def run(client: socket.socket) -> None: multicast_receive(client) threads = [threading.Thread(name=f'clien...
24.538462
84
0.652038
83
638
4.783133
0.53012
0.161209
0.080605
0.065491
0.070529
0
0
0
0
0
0
0.006135
0.233542
638
26
85
24.538462
0.805726
0.028213
0
0
0
0
0.06129
0
0
0
0
0
0
1
0.105263
false
0
0.210526
0
0.315789
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f958f1f208280fca2b61c5a648551399de305a52
2,135
py
Python
train/name_test.py
csgwon/dl-pipeline
5ac2cdafe0daac675d3f3e810918133de3466f8a
[ "Apache-2.0" ]
7
2018-06-26T13:09:12.000Z
2020-07-15T18:18:38.000Z
train/name_test.py
csgwon/dl-pipeline
5ac2cdafe0daac675d3f3e810918133de3466f8a
[ "Apache-2.0" ]
null
null
null
train/name_test.py
csgwon/dl-pipeline
5ac2cdafe0daac675d3f3e810918133de3466f8a
[ "Apache-2.0" ]
1
2018-08-30T19:51:08.000Z
2018-08-30T19:51:08.000Z
from tools import * from model import * import torch import torch.nn as nn from torch.autograd import Variable import torch.nn.functional as F from torch.utils.data import Dataset, DataLoader class NamesDataset(Dataset): """Name Classification dataset""" def __init__(self, path): self.data = pd.read_c...
32.348485
109
0.635597
281
2,135
4.633452
0.377224
0.067588
0.043011
0.02765
0.057604
0
0
0
0
0
0
0.007348
0.235129
2,135
65
110
32.846154
0.789957
0.054801
0
0.039216
0
0
0.044776
0.014925
0
0
0
0
0
1
0.078431
false
0
0.156863
0.019608
0.313725
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f95de109f7f76174c635351d3c9d2f28ebfb7d06
3,651
py
Python
descartes_rpa/fetch/descartes.py
reactome/descartes
7e7f21c5ccdf42b867db9e68fe0cb7a17d06fb25
[ "Apache-2.0" ]
2
2021-08-02T18:09:07.000Z
2022-01-18T08:29:59.000Z
descartes_rpa/fetch/descartes.py
reactome/descartes
7e7f21c5ccdf42b867db9e68fe0cb7a17d06fb25
[ "Apache-2.0" ]
5
2021-06-22T22:27:23.000Z
2021-08-04T02:04:09.000Z
descartes_rpa/fetch/descartes.py
reactome/descartes_rpa
7e7f21c5ccdf42b867db9e68fe0cb7a17d06fb25
[ "Apache-2.0" ]
null
null
null
import requests import shutil import pandas as pd from typing import Dict, List def fetch_descartes_human_tissue(out_file: str, verbose: bool = True) -> None: """Function to fetch Loom Single-Cell tissue data from Descartes human database. Args: out_file: Output file that is going to store .loom...
30.940678
78
0.621747
462
3,651
4.751082
0.292208
0.038269
0.031891
0.027335
0.525285
0.499772
0.476082
0.446469
0.397267
0.397267
0
0.015072
0.273076
3,651
117
79
31.205128
0.811982
0.314434
0
0.3125
0
0
0.338962
0.102153
0
0
0
0
0
1
0.046875
false
0
0.0625
0
0.125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f96072c2c69a90c36b742be295db7b6791bf37ec
1,173
py
Python
src/Support/Scripts/AlignOperators.py
bobthecow/ManipulateCoda
5a0e03fb535cfc623070ddd44a9e09d34d313193
[ "MIT" ]
5
2015-01-05T21:44:18.000Z
2017-09-08T09:31:44.000Z
src/Support/Scripts/AlignOperators.py
bobthecow/ManipulateCoda
5a0e03fb535cfc623070ddd44a9e09d34d313193
[ "MIT" ]
3
2015-01-06T15:21:58.000Z
2019-04-09T12:03:13.000Z
src/Support/Scripts/AlignOperators.py
bobthecow/ManipulateCoda
5a0e03fb535cfc623070ddd44a9e09d34d313193
[ "MIT" ]
null
null
null
'''Line up operators...''' import cp_actions as cp import re def act(controller, bundle, options): ''' Required action method ''' context = cp.get_context(controller) line_ending = cp.get_line_ending(context) lines, range = cp.lines_and_range(context) newlines = line_ending.join(balance_...
27.27907
146
0.546462
142
1,173
4.408451
0.387324
0.105431
0.08147
0.044728
0.121406
0.121406
0.121406
0.121406
0.121406
0.121406
0
0.006818
0.249787
1,173
43
147
27.27907
0.704545
0.036658
0
0.222222
0
0
0.085586
0.084685
0
0
0
0
0
1
0.074074
false
0
0.074074
0
0.185185
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9635ddcc69eb4603c2a017bb384ecbb61ddeafe
1,333
py
Python
continuous-variables/literature-code-in-python/random_reaction_gen.py
YANGZ001/OrganicChem-LabMate-AI
fb826d85dd852aab987b9bef6856d8da6a4bd9be
[ "MIT" ]
null
null
null
continuous-variables/literature-code-in-python/random_reaction_gen.py
YANGZ001/OrganicChem-LabMate-AI
fb826d85dd852aab987b9bef6856d8da6a4bd9be
[ "MIT" ]
null
null
null
continuous-variables/literature-code-in-python/random_reaction_gen.py
YANGZ001/OrganicChem-LabMate-AI
fb826d85dd852aab987b9bef6856d8da6a4bd9be
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import itertools ''' Section below creates lists for your reaction parameters. Change names of lists where appropriate ''' #For bigger lists use np.arange(min_value, max_value, step) Pyridine = [0.1, 0.2, 0.3] # in mmol Aldehyde = [0.1, 0.2, 0.3] # in mmol Isocyanide = [0.1, 0....
37.027778
150
0.701425
212
1,333
4.349057
0.443396
0.010846
0.013015
0.013015
0.249458
0.249458
0.249458
0.18872
0.149675
0.149675
0
0.060124
0.151538
1,333
35
151
38.085714
0.755084
0.084021
0
0
0
0
0.184729
0
0
0
0
0
0
1
0
false
0
0.1875
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
f9686a6e64b3ada450c52aa9db27ba394fa0f073
2,241
py
Python
mechroutines/es/newts/_fs.py
keceli/mechdriver
978994ba5c77b6df00078b639c4482dacf269440
[ "Apache-2.0" ]
null
null
null
mechroutines/es/newts/_fs.py
keceli/mechdriver
978994ba5c77b6df00078b639c4482dacf269440
[ "Apache-2.0" ]
null
null
null
mechroutines/es/newts/_fs.py
keceli/mechdriver
978994ba5c77b6df00078b639c4482dacf269440
[ "Apache-2.0" ]
8
2019-12-18T20:09:46.000Z
2020-11-14T16:37:28.000Z
""" rpath task function """ from mechlib import filesys from mechlib.filesys import build_fs from mechlib.filesys import root_locs def rpath_fs(ts_dct, tsname, mod_ini_thy_info, es_keyword_dct, run_prefix, save_prefix): """ reaction path filesystem """ # Set up coo...
33.954545
70
0.646586
345
2,241
3.805797
0.26087
0.053313
0.031988
0.053313
0.309216
0.284844
0.266565
0.223915
0.182788
0.182788
0
0.006072
0.26506
2,241
65
71
34.476923
0.791135
0.203481
0
0.2
0
0
0.038593
0
0
0
0
0
0
1
0.025
false
0
0.075
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
f968be6f1cca8629346c90e2699c898d9571ac20
1,361
py
Python
computation/listallfiles.py
thirschbuechler/didactic-barnacles
88d0a2b572aacb2cb45e68bb4f05fa5273224439
[ "MIT" ]
null
null
null
computation/listallfiles.py
thirschbuechler/didactic-barnacles
88d0a2b572aacb2cb45e68bb4f05fa5273224439
[ "MIT" ]
null
null
null
computation/listallfiles.py
thirschbuechler/didactic-barnacles
88d0a2b572aacb2cb45e68bb4f05fa5273224439
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Sep 29 14:38:54 2020 @author: https://stackoverflow.com/questions/18262293/how-to-open-every-file-in-a-folder """ import os #os module imported here location = os.getcwd() # get present working directory location here counter = 0 #keep a count of all files found csvf...
34.897436
100
0.603968
179
1,361
4.592179
0.502793
0.060827
0.087591
0.092457
0.160584
0.160584
0.160584
0.160584
0.160584
0.160584
0
0.026971
0.291697
1,361
39
101
34.897436
0.825726
0.336517
0
0.285714
0
0
0.12691
0
0
0
0
0
0
1
0
false
0
0.035714
0
0.035714
0.214286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f96a73f7ebbc6d2b474f86a30e29cb3233db9724
5,317
py
Python
rootfs/api/apps_extra/social_core/actions.py
jianxiaoguo/controller
8cc1e11601e5725e583f0fa82cdb2c10872ca485
[ "Apache-2.0" ]
null
null
null
rootfs/api/apps_extra/social_core/actions.py
jianxiaoguo/controller
8cc1e11601e5725e583f0fa82cdb2c10872ca485
[ "Apache-2.0" ]
19
2020-07-30T06:31:29.000Z
2022-03-14T07:33:44.000Z
rootfs/api/apps_extra/social_core/actions.py
jianxiaoguo/controller
8cc1e11601e5725e583f0fa82cdb2c10872ca485
[ "Apache-2.0" ]
9
2020-07-30T02:50:12.000Z
2020-12-11T06:44:19.000Z
from urllib.parse import quote from social_core.utils import sanitize_redirect, user_is_authenticated, \ user_is_active, partial_pipeline_data, setting_url def do_auth(backend, redirect_name='next'): # Save any defined next value into session data = backend.strategy.request_data(merge=Fals...
42.536
86
0.618018
623
5,317
5.025682
0.213483
0.05749
0.030661
0.038326
0.331523
0.292239
0.261897
0.261897
0.210157
0.159693
0
0.00369
0.28644
5,317
124
87
42.879032
0.82156
0.094414
0
0.27551
0
0
0.106808
0.030606
0
0
0
0
0
1
0.030612
false
0
0.05102
0
0.122449
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
f96c7c015c3ad71d48f4085619b3a3dcae5954cc
1,667
py
Python
Part_1/src/manual_split_test/make_paired_cases.py
Bhaskers-Blu-Org2/datascience4managers
2410182fe6913a8c986d2f28f5db6850cddb75f2
[ "MIT" ]
8
2019-11-24T08:23:12.000Z
2021-01-19T02:48:46.000Z
Part_1/src/manual_split_test/make_paired_cases.py
Bhaskers-Blu-Org2/datascience4managers
2410182fe6913a8c986d2f28f5db6850cddb75f2
[ "MIT" ]
1
2021-06-02T02:05:15.000Z
2021-06-02T02:05:15.000Z
Part_1/src/manual_split_test/make_paired_cases.py
microsoft/datascience4managers
7c332bf23a85f281237c841e1981ab21ed4ca072
[ "MIT" ]
9
2019-10-29T18:45:36.000Z
2021-03-27T07:23:13.000Z
#!/usr/bin/python # Oct 2019 JMA # make_samples.py Use the splits_aggregator module to create samples ''' Write a short description of what the program does here. Usage: $ ./make_samples.py [-v] [-d ROOT_DIR] [-c pair_cnt] -v verbose output -d data directory to read from -c number of randomly ...
24.880597
80
0.515297
207
1,667
4
0.497585
0.076087
0.032609
0
0
0
0
0
0
0
0
0.008765
0.247151
1,667
67
81
24.880597
0.650996
0.214757
0
0
0
0
0.091542
0.020896
0
0
0
0
0
1
0.027778
false
0.027778
0.25
0
0.305556
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f96ed484656fab8971f82e7e48fafd3dcd557e30
2,393
py
Python
aerosandbox/tools/miscellaneous.py
SzymonSzyszko/AeroSandbox
d4084899b665f735c1ec218282b2e4aee08eacff
[ "MIT" ]
null
null
null
aerosandbox/tools/miscellaneous.py
SzymonSzyszko/AeroSandbox
d4084899b665f735c1ec218282b2e4aee08eacff
[ "MIT" ]
null
null
null
aerosandbox/tools/miscellaneous.py
SzymonSzyszko/AeroSandbox
d4084899b665f735c1ec218282b2e4aee08eacff
[ "MIT" ]
null
null
null
import math import numpy as np def eng_string(x, format='%.3g', si=True): ''' Taken from: https://stackoverflow.com/questions/17973278/python-decimal-engineering-notation-for-mili-10e-3-and-micro-10e-6/40691220 Returns float/int value <x> formatted in a simplified engineering format - using an expone...
28.488095
136
0.600501
349
2,393
4.063037
0.467049
0.005642
0.03385
0.042313
0.01763
0
0
0
0
0
0
0.070366
0.269536
2,393
83
137
28.831325
0.740847
0.497284
0
0
0
0
0.029493
0
0
0
0
0
0
1
0.085714
false
0
0.142857
0
0.257143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f974a73c7d07887b66165d4b3f68128150448a37
530
py
Python
setup.py
Moi-Teaching-Referral-Hospital/ERPNextMTRHModifications
393cef3294d6b07f2c7ff21899c99a82276be43f
[ "MIT" ]
null
null
null
setup.py
Moi-Teaching-Referral-Hospital/ERPNextMTRHModifications
393cef3294d6b07f2c7ff21899c99a82276be43f
[ "MIT" ]
1
2021-01-09T20:00:38.000Z
2021-01-09T20:00:38.000Z
setup.py
Moi-Teaching-Referral-Hospital/mtrh_dev
367af3922d0fe0c19e35b0edd999dfc42f9a225b
[ "MIT" ]
2
2020-07-28T22:22:04.000Z
2020-08-16T16:12:56.000Z
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('requirements.txt') as f: install_requires = f.read().strip().split('\n') # get version from __version__ variable in mtrh_dev/__init__.py from mtrh_dev import __version__ as version setup( name='mtrh_dev', version=version, description=...
25.238095
65
0.762264
76
530
5
0.644737
0.073684
0
0
0
0
0
0
0
0
0
0.002137
0.116981
530
20
66
26.5
0.809829
0.156604
0
0
0
0
0.209459
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
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
f974ccb0279e3323702f280c06f3f6d71a27a8f5
23,062
py
Python
tools/programController.py
brewpi-remix/uno-test
a153a5277bea2a8e58ee479792d6977f0beb853e
[ "MIT" ]
null
null
null
tools/programController.py
brewpi-remix/uno-test
a153a5277bea2a8e58ee479792d6977f0beb853e
[ "MIT" ]
null
null
null
tools/programController.py
brewpi-remix/uno-test
a153a5277bea2a8e58ee479792d6977f0beb853e
[ "MIT" ]
1
2021-07-31T15:23:07.000Z
2021-07-31T15:23:07.000Z
#!/usr/bin/env python3 import subprocess as sub import time import simplejson as json import os from sys import stderr import subprocess import platform import sys import stat import pwd import grp import BrewPiUtil as util import brewpiVersion import expandLogMessage from packaging import version from MigrateSettings...
37.683007
146
0.588674
2,485
23,062
5.396378
0.222938
0.013572
0.004027
0.008203
0.190231
0.15384
0.125653
0.108352
0.085533
0.085533
0
0.013253
0.312939
23,062
611
147
37.744681
0.83307
0.109314
0
0.258206
0
0
0.13824
0.002791
0
0
0.001567
0
0
1
0.078775
false
0.002188
0.037199
0.002188
0.210066
0.113786
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f975435861ec73bfce0399c6d6ca18e0c1beb891
10,086
py
Python
common/hil_slurm_helpers.py
mghpcc-projects/user_level_slurm_reservations
eae56588bb00abfe043714317a27481e036fcc29
[ "MIT" ]
null
null
null
common/hil_slurm_helpers.py
mghpcc-projects/user_level_slurm_reservations
eae56588bb00abfe043714317a27481e036fcc29
[ "MIT" ]
11
2017-09-14T17:21:31.000Z
2021-06-01T21:48:47.000Z
common/hil_slurm_helpers.py
mghpcc-projects/user_level_slurm_reservations
eae56588bb00abfe043714317a27481e036fcc29
[ "MIT" ]
3
2017-08-16T13:54:40.000Z
2018-01-10T19:26:59.000Z
""" MassOpenCloud / Hardware Isolation Layer (MOC/HIL) Slurm and *NX Subprocess Command Helpers May 2017, Tim Donahue tpd001@gmail.com """ import os from pwd import getpwnam, getpwuid from subprocess import Popen, PIPE from time import time from hil_slurm_constants import (HIL_RESNAME_PREFIX, HIL_RESNAME_FIELD_SEPA...
31.716981
98
0.65348
1,327
10,086
4.731726
0.186134
0.039815
0.026756
0.035037
0.216117
0.137761
0.113235
0.091575
0.065934
0.059564
0
0.002394
0.254412
10,086
317
99
31.817035
0.83258
0.262443
0
0.1875
0
0
0.092642
0
0
0
0
0
0
1
0.1
false
0.00625
0.04375
0
0.26875
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
f97830507a9e81ba352de5e77becd93d7de239ce
1,112
py
Python
tests/test_statsutils.py
ofek/boltons
395f690f4a24331c4554e2169ac18a15955a4eab
[ "BSD-3-Clause" ]
6,058
2015-03-18T16:44:39.000Z
2022-03-28T08:42:16.000Z
tests/test_statsutils.py
ofek/boltons
395f690f4a24331c4554e2169ac18a15955a4eab
[ "BSD-3-Clause" ]
289
2015-04-09T23:09:24.000Z
2022-03-30T00:29:33.000Z
tests/test_statsutils.py
ofek/boltons
395f690f4a24331c4554e2169ac18a15955a4eab
[ "BSD-3-Clause" ]
407
2015-04-09T20:09:15.000Z
2022-03-30T10:43:22.000Z
# -*- coding: utf-8 -*- from boltons.statsutils import Stats def test_stats_basic(): da = Stats(range(20)) assert da.mean == 9.5 assert round(da.std_dev, 2) == 5.77 assert da.variance == 33.25 assert da.skewness == 0 assert round(da.kurtosis, 1) == 1.9 assert da.median == 9.5 def _test_p...
32.705882
115
0.615108
168
1,112
3.982143
0.392857
0.052317
0.09417
0.098655
0.218236
0.218236
0.080717
0
0
0
0
0.056355
0.25
1,112
33
116
33.69697
0.745803
0.393885
0
0
0
0
0.019697
0
0
0
0
0
0.315789
1
0.157895
false
0
0.157895
0
0.368421
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f979feef783a84ff7f70e9da364235d7c960d2cb
1,018
py
Python
funcs.py
pgDora56/shinyintro
15cc153106ebd88a5f73801f2bf0bef52d37cdab
[ "MIT" ]
null
null
null
funcs.py
pgDora56/shinyintro
15cc153106ebd88a5f73801f2bf0bef52d37cdab
[ "MIT" ]
null
null
null
funcs.py
pgDora56/shinyintro
15cc153106ebd88a5f73801f2bf0bef52d37cdab
[ "MIT" ]
null
null
null
import os import pprint import json import random accept = False colors = { "Vo": "#e05ab4", "Da": "#59afe1", "Vi": "#e0e05a" } with open('idols.json') as f: idols = (json.load(f))["idols"] # Insert 23 data def pick(msg): global accept if not accept: print("Not accept") retu...
18.851852
72
0.54224
128
1,018
4.273438
0.523438
0.060329
0.036563
0
0
0
0
0
0
0
0
0.016506
0.285855
1,018
53
73
19.207547
0.735901
0.013752
0
0.116279
0
0
0.201798
0.022977
0
0
0
0
0
1
0.069767
false
0
0.093023
0
0.186047
0.139535
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f97c2537579109b781456eb2fe785026c3ea5e59
10,782
py
Python
UWBsim/interface/plot_widgets.py
kianheus/uwb-simulator
888cdcae0d4ca101970971afbdf0113ba3bb1480
[ "MIT" ]
2
2021-08-25T03:27:06.000Z
2021-09-26T05:08:19.000Z
UWBsim/interface/plot_widgets.py
kianheus/uwb-simulator
888cdcae0d4ca101970971afbdf0113ba3bb1480
[ "MIT" ]
null
null
null
UWBsim/interface/plot_widgets.py
kianheus/uwb-simulator
888cdcae0d4ca101970971afbdf0113ba3bb1480
[ "MIT" ]
1
2021-07-17T10:59:15.000Z
2021-07-17T10:59:15.000Z
"""Plot Widgets for the UWB Simulation GUI This file contains several plot widgets that can be used to plot simulation data in real time and redraw the plots with matplotlib for better quality. Classes: QLivePlot: Base class for real time plots QLivePlot_Groundtrack: Real time plot for groundtrack QLiveP...
34.66881
126
0.516602
1,363
10,782
3.96405
0.142333
0.069591
0.071072
0.026652
0.634277
0.602258
0.566907
0.544512
0.486026
0.433463
0
0.021712
0.333612
10,782
311
127
34.66881
0.730271
0.099518
0
0.578947
0
0
0.046413
0
0
0
0
0
0
1
0.065789
false
0.004386
0.02193
0.004386
0.114035
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
f97ca4c83d65c548b29075ec69330e20d6ca30b3
1,018
py
Python
scripts/plot_summary_stats.py
JackKelly/slicedpy
c2fa7eb4c7b7374f8192a43d8e617b63c9e25e62
[ "Apache-2.0" ]
3
2017-02-03T22:05:25.000Z
2017-08-29T19:06:17.000Z
scripts/plot_summary_stats.py
JackKelly/slicedpy
c2fa7eb4c7b7374f8192a43d8e617b63c9e25e62
[ "Apache-2.0" ]
null
null
null
scripts/plot_summary_stats.py
JackKelly/slicedpy
c2fa7eb4c7b7374f8192a43d8e617b63c9e25e62
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from pda.dataset import init_aggregate_and_appliance_dataset_figure import matplotlib.pyplot as plt from scipy.stats import * import numpy as np subplots, chan = init_aggregate_and_appliance_dataset_figure( start_date='2013/6/4 10:00', end_date='2013/6/4 13:30', n_subplots=2, date_format...
28.277778
73
0.656189
151
1,018
4.291391
0.509934
0.037037
0.049383
0.07716
0.175926
0.117284
0
0
0
0
0
0.032105
0.17387
1,018
35
74
29.085714
0.738407
0.019646
0
0
0
0
0.104313
0
0
0
0
0
0
1
0
false
0
0.148148
0
0.148148
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f97cacad56a833075fdbf1486e99e188f8024b55
2,691
py
Python
sciibo/network/connection.py
fdev/sciibo
984ec1945cd0f371bce148c1eb1e811befadb478
[ "MIT" ]
14
2017-06-16T14:16:57.000Z
2021-02-26T13:53:56.000Z
sciibo/network/connection.py
fdev/sciibo
984ec1945cd0f371bce148c1eb1e811befadb478
[ "MIT" ]
1
2018-06-27T16:11:48.000Z
2019-01-23T12:02:17.000Z
sciibo/network/connection.py
fdev/sciibo
984ec1945cd0f371bce148c1eb1e811befadb478
[ "MIT" ]
null
null
null
import socket import json import struct from sciibo.core.helpers import Queue from .thread import SocketThread class ConnectionThread(SocketThread): def __init__(self, sock): super(ConnectionThread, self).__init__() self.sock = sock # The number of bytes we are expecting self.exp...
27.459184
84
0.544036
290
2,691
5.003448
0.341379
0.060648
0.033081
0.030324
0.213646
0.213646
0.170917
0.170917
0.170917
0.170917
0
0.000587
0.36715
2,691
97
85
27.742268
0.851439
0.159792
0
0.47619
0
0
0.016021
0
0
0
0
0
0
1
0.095238
false
0
0.079365
0
0.301587
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
f97d02d723f0a4441c6c06372a7158427073778d
2,651
py
Python
libs/PieMeter.py
lionheart/TimeTracker-Linux
64405d53fd12d2593ef4879b867ff38a4d5b9ca9
[ "MIT" ]
12
2015-02-06T19:06:49.000Z
2019-09-24T17:58:17.000Z
libs/PieMeter.py
lionheart/TimeTracker-Linux
64405d53fd12d2593ef4879b867ff38a4d5b9ca9
[ "MIT" ]
null
null
null
libs/PieMeter.py
lionheart/TimeTracker-Linux
64405d53fd12d2593ef4879b867ff38a4d5b9ca9
[ "MIT" ]
6
2015-11-22T01:58:31.000Z
2019-11-04T22:56:38.000Z
# Copyright (C) 2008 Jimmy Do <jimmydo@users.sourceforge.net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This...
33.987179
97
0.626556
378
2,651
4.277778
0.378307
0.009895
0.029685
0.03525
0.213358
0.18491
0.138528
0.138528
0.138528
0.138528
0
0.035454
0.276499
2,651
77
98
34.428571
0.807612
0.296115
0
0.177778
0
0
0
0
0
0
0
0
0.111111
1
0.111111
false
0
0.066667
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f97d4fd046debdeff0094ec80a682b86eb50db54
6,192
py
Python
examples/pinball.py
jgrigonis/arcade
9b624da7da52e3909f6e82c552446b90249041f1
[ "MIT" ]
1
2021-05-23T20:30:46.000Z
2021-05-23T20:30:46.000Z
examples/pinball.py
jgrigonis/arcade
9b624da7da52e3909f6e82c552446b90249041f1
[ "MIT" ]
null
null
null
examples/pinball.py
jgrigonis/arcade
9b624da7da52e3909f6e82c552446b90249041f1
[ "MIT" ]
null
null
null
import arcade import timeit BALL_DRAG = 0.001 NO_FLIPPER = 0 FLIPPER_UP = 1 class MyApplication(arcade.Window): """ Main application class. """ def __init__(self, width, height, resizable): super().__init__(width, height, resizable=resizable) self.sprite_list = arcade.SpriteList() s...
33.652174
138
0.55491
797
6,192
4.134253
0.186951
0.045524
0.063733
0.060698
0.618209
0.607587
0.511077
0.497724
0.443399
0.384522
0
0.066049
0.337371
6,192
183
139
33.836066
0.737022
0.055071
0
0.542636
0
0
0.046536
0.03959
0
0
0
0
0
1
0.03876
false
0
0.015504
0
0.062016
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
f97e5968772769d07d1c5c3519564d5e93b96cb9
2,350
py
Python
pygomas/pack.py
sfp932705/pygomas
8cdd7e973b8b4e8de467803c106ec44ca6b8bd03
[ "MIT" ]
3
2019-06-20T08:55:36.000Z
2019-07-04T14:10:40.000Z
pygomas/pack.py
sfp932705/pygomas
8cdd7e973b8b4e8de467803c106ec44ca6b8bd03
[ "MIT" ]
null
null
null
pygomas/pack.py
sfp932705/pygomas
8cdd7e973b8b4e8de467803c106ec44ca6b8bd03
[ "MIT" ]
null
null
null
import json from loguru import logger from .config import PERFORMATIVE, PERFORMATIVE_PACK, PERFORMATIVE_PACK_TAKEN, TEAM, X, Y, Z, NAME, ACTION, CREATE, \ TYPE from .agent import AbstractAgent, LONG_RECEIVE_WAIT from .vector import Vector3D from spade.message import Message from spade.behaviour import OneShotBehav...
31.333333
116
0.635745
277
2,350
5.223827
0.306859
0.055978
0.058051
0.024879
0.078784
0
0
0
0
0
0
0.013897
0.265106
2,350
74
117
31.756757
0.823972
0.009787
0
0.033898
0
0
0.028817
0
0
0
0
0
0
1
0.033898
false
0.033898
0.152542
0.016949
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
f97e89c0eb4e106c1ec357be4b95f0207161d996
2,178
py
Python
Utils/initialize.py
soshishimada/PhysCap_demo_release
542756ed9ecdca77eda8b6b44ba2348253b999c3
[ "Unlicense" ]
62
2021-09-05T19:36:06.000Z
2022-03-29T11:47:09.000Z
Utils/initialize.py
soshishimada/PhysCap_demo_release
542756ed9ecdca77eda8b6b44ba2348253b999c3
[ "Unlicense" ]
4
2021-09-21T09:52:02.000Z
2022-03-27T09:08:30.000Z
Utils/initialize.py
soshishimada/PhysCap_demo_release
542756ed9ecdca77eda8b6b44ba2348253b999c3
[ "Unlicense" ]
10
2021-09-05T00:27:17.000Z
2022-03-22T13:25:57.000Z
import numpy as np import pybullet as p class Initializer(): def __init__(self,floor_known=None,floor_frame_path=None,): if floor_known: self.RT = np.load(floor_frame_path) else: self.RT =np.eye(4) self.rbdl2bullet = [0, 1, 2, 3, 4, 5, 6, 7, 8, ...
34.571429
166
0.573462
363
2,178
3.129477
0.333333
0.026408
0.049296
0.052817
0.191901
0.142606
0.142606
0.059859
0
0
0
0.112058
0.299357
2,178
62
167
35.129032
0.632372
0.022039
0
0.040816
0
0
0.059223
0
0
0
0
0
0
1
0.163265
false
0
0.040816
0.081633
0.367347
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f97e91890c0cdcab8847df722787798324fca2ec
3,220
py
Python
nlptasks/padding.py
ulf1/nlptasks
07d36448b517a18f76088f5d9cfb853e7602b079
[ "Apache-2.0" ]
2
2020-12-30T13:11:09.000Z
2021-11-04T19:40:31.000Z
nlptasks/padding.py
ulf1/nlptasks
07d36448b517a18f76088f5d9cfb853e7602b079
[ "Apache-2.0" ]
99
2020-11-02T14:58:04.000Z
2021-04-09T18:01:34.000Z
nlptasks/padding.py
ulf1/nlptasks
07d36448b517a18f76088f5d9cfb853e7602b079
[ "Apache-2.0" ]
null
null
null
import tensorflow.keras as keras # pad_sequences from pad_sequences import pad_sequences_adjacency from pad_sequences import pad_sequences_sparse def pad_idseqs(func): def wrapper(*args, **kwargs): # read and remove padding settings maxlen = kwargs.pop('maxlen', None) padding = kwargs.pop...
34.255319
73
0.617081
367
3,220
5.310627
0.188011
0.055413
0.06157
0.087224
0.638276
0.560287
0.525398
0.525398
0.525398
0.463828
0
0
0.287578
3,220
93
74
34.623656
0.849608
0.131056
0
0.482759
0
0
0.047105
0
0
0
0
0
0
1
0.137931
false
0
0.051724
0
0.327586
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
f983fe925ecae418e3ac67726cae140e97825556
6,594
py
Python
RainbowGrades/parsexml.py
hifiadi/Submitty
62a8239313cff7e3f841ff66aeda6b0557e9c15b
[ "BSD-3-Clause" ]
2
2017-10-11T17:48:33.000Z
2020-12-15T16:05:05.000Z
RainbowGrades/parsexml.py
hifiadi/Submitty
62a8239313cff7e3f841ff66aeda6b0557e9c15b
[ "BSD-3-Clause" ]
4
2019-04-25T02:47:34.000Z
2020-03-31T18:56:45.000Z
RainbowGrades/parsexml.py
hifiadi/Submitty
62a8239313cff7e3f841ff66aeda6b0557e9c15b
[ "BSD-3-Clause" ]
1
2020-02-07T19:19:20.000Z
2020-02-07T19:19:20.000Z
#!/usr/bin/env python3 import csv import xml.etree.ElementTree as ET import sys import os.path class QuestionData: final_answer = "" final_answer_time = 0 first_answer = "" attempts = 0 first_answer_time = 0 def __init__(self,final_answer,final_answer_time,attempts,first_answer,first_answer_t...
44.554054
120
0.474826
665
6,594
4.506767
0.278195
0.063063
0.040374
0.051385
0.258258
0.167835
0.118452
0.046713
0.046713
0.046713
0
0.006307
0.42296
6,594
147
121
44.857143
0.78134
0.104489
0
0.252174
0
0
0.067326
0
0
0
0
0
0
1
0.017391
false
0
0.034783
0
0.104348
0.026087
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f98449b95d48df636ca504bf4073160f56093406
2,255
py
Python
header.py
yufernando/inDelphi-app
37938f7aaa1630fb80e7568d3d13472eedb76a6d
[ "FSFAP" ]
13
2018-11-18T21:53:46.000Z
2021-03-01T16:14:21.000Z
header.py
yufernando/inDelphi-app
37938f7aaa1630fb80e7568d3d13472eedb76a6d
[ "FSFAP" ]
2
2020-02-11T22:34:41.000Z
2020-06-05T18:16:10.000Z
header.py
yufernando/inDelphi-app
37938f7aaa1630fb80e7568d3d13472eedb76a6d
[ "FSFAP" ]
3
2018-12-03T05:20:01.000Z
2021-07-28T22:33:54.000Z
import dash import dash_core_components as dcc import dash_html_components as html divider_text = ' • ' def get_navigation_header(page_nm): font_size_param = 16 dot_style = dict( color = 'gray', fontSize = '%spx' % (font_size_param), ) default_style = dict( position = 'relativ...
23.010204
59
0.446563
184
2,255
5.336957
0.380435
0.056008
0.118126
0.13442
0.248473
0.199593
0.199593
0.199593
0
0
0
0.005495
0.435033
2,255
98
60
23.010204
0.764521
0
0
0.438202
0
0
0.13988
0
0
0
0
0
0
1
0.011236
false
0
0.044944
0
0.067416
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
f986bf3f2c420c696f6c53ea84f10ad7ccfa26ea
1,526
py
Python
demos/pandas/pandas_concat&append.py
szj2ys/deal_with_the_tasks_and_challenges
94b9f4aad26c7e2ec5a59cf67e9e977bfa3d5221
[ "Apache-2.0" ]
null
null
null
demos/pandas/pandas_concat&append.py
szj2ys/deal_with_the_tasks_and_challenges
94b9f4aad26c7e2ec5a59cf67e9e977bfa3d5221
[ "Apache-2.0" ]
null
null
null
demos/pandas/pandas_concat&append.py
szj2ys/deal_with_the_tasks_and_challenges
94b9f4aad26c7e2ec5a59cf67e9e977bfa3d5221
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np #定义资料集 df1 = pd.DataFrame(np.ones((3, 4)) * 0, columns=['a', 'b', 'c', 'd']) df2 = pd.DataFrame(np.ones((3, 4)) * 1, columns=['a', 'b', 'c', 'd']) df3 = pd.DataFrame(np.ones((3, 4)) * 2, columns=['a', 'b', 'c', 'd']) #concat纵向合并 axis=0纵向,axis=1横向 res = pd.concat([df1, df2, df3],...
26.310345
69
0.593054
244
1,526
3.688525
0.25
0.022222
0.03
0.151111
0.598889
0.505556
0.438889
0.385556
0.327778
0.294444
0
0.062205
0.167759
1,526
57
70
26.77193
0.646457
0.201835
0
0.37931
0
0
0.038238
0
0
0
0
0
0
1
0
false
0
0.068966
0
0.068966
0.241379
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9873ed126ec1fdd07f8e281595ede0f1e5dfbf6
4,128
py
Python
python-django/oauth2demo/oauth/core/oauthclient.py
SequencingDOTcom/oAuth2-demo
609bd138cff07643a0c3e1df48f4f2e4adc9be34
[ "MIT" ]
1
2020-11-05T22:16:37.000Z
2020-11-05T22:16:37.000Z
python-django/oauth2demo/oauth/core/oauthclient.py
SequencingDOTcom/oAuth2-demo
609bd138cff07643a0c3e1df48f4f2e4adc9be34
[ "MIT" ]
3
2018-02-24T15:01:20.000Z
2021-11-29T17:29:02.000Z
python-django/oauth2demo/oauth/core/oauthclient.py
SequencingDOTcom/oAuth2-demo
609bd138cff07643a0c3e1df48f4f2e4adc9be34
[ "MIT" ]
3
2017-04-06T01:38:20.000Z
2017-05-17T09:44:35.000Z
import urllib import sched import time from threading import Thread from token import Token from ..utils.http import do_basic_secure_post from ..exceptions.exceptions import BasicAuthenticationFailedException class DefaultSequencingOAuth2Client(object): # Attribute for value of redirect url ATTR_REDIRECT_UR...
34.115702
96
0.678537
480
4,128
5.520833
0.18125
0.076981
0.108679
0.031698
0.344906
0.323774
0.28
0.28
0.28
0.207547
0
0.001929
0.246609
4,128
120
97
34.4
0.850161
0.073401
0
0.148148
0
0
0.053487
0
0
0
0
0
0
1
0.111111
false
0
0.08642
0.012346
0.395062
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
f987b372c8da570186369c27352bfdc8a2dc0b25
1,019
py
Python
commands/elastic/utils.py
surfedushare/search-portal
f5486d6b07b7b04a46ce707cee5174db4f8da222
[ "MIT" ]
2
2021-08-19T09:40:59.000Z
2021-12-14T11:08:20.000Z
commands/elastic/utils.py
surfedushare/search-portal
708a0d05eee13c696ca9abd7e84ab620d3900fbe
[ "MIT" ]
159
2020-05-14T14:17:34.000Z
2022-03-23T10:28:13.000Z
commands/elastic/utils.py
nppo/search-portal
aedf21e334f178c049f9d6cf37cafd6efc07bc0d
[ "MIT" ]
1
2021-11-11T13:37:22.000Z
2021-11-11T13:37:22.000Z
from elasticsearch import Elasticsearch, RequestsHttpConnection from requests_aws4auth import AWS4Auth import boto3 def get_es_client(conn, silent=False): """ Returns the elasticsearch client connected through port forwarding settings """ elastic_url = "https://localhost:9222" protocol_config = { ...
31.84375
94
0.684004
115
1,019
5.86087
0.591304
0.047478
0
0
0
0
0
0
0
0
0
0.02033
0.227674
1,019
31
95
32.870968
0.836086
0.091266
0
0
0
0
0.123077
0
0
0
0
0
0
1
0.043478
false
0
0.130435
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f98c3635dfd0d3ae569222c031b018e24dab8ea9
1,322
py
Python
sendemail/views.py
sami-sinnari/MilestoneProject4
4a66f5cd5e44e9ff4dbaeeb3e8733c0e2db6629e
[ "W3C", "PostgreSQL" ]
null
null
null
sendemail/views.py
sami-sinnari/MilestoneProject4
4a66f5cd5e44e9ff4dbaeeb3e8733c0e2db6629e
[ "W3C", "PostgreSQL" ]
null
null
null
sendemail/views.py
sami-sinnari/MilestoneProject4
4a66f5cd5e44e9ff4dbaeeb3e8733c0e2db6629e
[ "W3C", "PostgreSQL" ]
1
2021-08-31T03:29:02.000Z
2021-08-31T03:29:02.000Z
from django.core.mail import send_mail, BadHeaderError from django.http import HttpResponse from django.shortcuts import render, redirect from .forms import ContactForm from profiles.models import UserProfile def contactView(request): if request.user.is_authenticated: try: profile = UserProfil...
31.47619
78
0.621785
132
1,322
6.128788
0.424242
0.074166
0.055624
0.069221
0.086527
0
0
0
0
0
0
0
0.281392
1,322
41
79
32.243902
0.851579
0
0
0.114286
0
0
0.123298
0.056732
0
0
0
0
0
1
0.057143
false
0
0.142857
0.028571
0.314286
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
f98cbeedab7f46e8e4601542568092c0c0c15c19
592
py
Python
tests/test_accounts.py
edgeee/buycoins-python
72a3130cf43d0c618e58418b3d8cb7ce73b0f133
[ "MIT" ]
55
2021-02-02T22:09:37.000Z
2022-02-24T12:17:23.000Z
tests/test_accounts.py
edgeee/buycoins-python
72a3130cf43d0c618e58418b3d8cb7ce73b0f133
[ "MIT" ]
2
2021-03-24T20:11:02.000Z
2021-04-27T13:13:27.000Z
tests/test_accounts.py
edgeee/buycoins-python
72a3130cf43d0c618e58418b3d8cb7ce73b0f133
[ "MIT" ]
8
2021-02-08T17:06:53.000Z
2022-02-13T09:38:59.000Z
from tests.utils import _mock_gql create_deposit_response = dict( createDepositAccount=dict( accountNumber="123", accountName="john doe", accountType="deposit", bankName="Providus", accountReference="ref", ) ) def test_create_deposit(): from buycoins import accoun...
23.68
58
0.689189
63
592
6.253968
0.52381
0.13198
0.121827
0.101523
0.142132
0
0
0
0
0
0
0.012876
0.212838
592
24
59
24.666667
0.832618
0
0
0
0
0
0.086149
0
0
0
0
0
0.222222
1
0.055556
false
0
0.111111
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f98fe6f86f42085c174f1fcd733ce2400cb3d904
2,696
py
Python
system_monitor_script/build_network.py
carabri/carabri
c8b94080331ab66ee116ee6e87e13e295e4f9604
[ "Apache-2.0" ]
null
null
null
system_monitor_script/build_network.py
carabri/carabri
c8b94080331ab66ee116ee6e87e13e295e4f9604
[ "Apache-2.0" ]
null
null
null
system_monitor_script/build_network.py
carabri/carabri
c8b94080331ab66ee116ee6e87e13e295e4f9604
[ "Apache-2.0" ]
null
null
null
import re import networkx import itertools import argparse import json def build_network(filename,outfile,mb_threshold): regex = re.compile('([0-9]+) kB: (.*)(?=\()') network_list = [] current_network = [] with open(filename, 'r') as memlog: ignore_line = True for line in memlog.r...
42.125
177
0.555267
346
2,696
4.219653
0.33237
0.009589
0.006164
0.008219
0.028767
0.015068
0
0
0
0
0
0.015899
0.323442
2,696
64
178
42.125
0.784539
0.043398
0
0.08
0
0.02
0.207218
0
0
0
0
0
0
1
0.02
false
0
0.1
0
0.12
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
f98fff79925e8d8be7997e37273c0b32991d86de
1,428
py
Python
BigO/insertion_sort.py
jeff-lund/CS350
7227b53275c62d45e899a531136a96a866c32a16
[ "MIT" ]
2
2019-10-16T01:59:42.000Z
2019-11-13T19:25:00.000Z
BigO/insertion_sort.py
jeff-lund/CS350
7227b53275c62d45e899a531136a96a866c32a16
[ "MIT" ]
null
null
null
BigO/insertion_sort.py
jeff-lund/CS350
7227b53275c62d45e899a531136a96a866c32a16
[ "MIT" ]
2
2019-10-16T01:59:49.000Z
2019-11-15T01:19:18.000Z
from sys import argv from random import randint from time import time import matplotlib.pyplot as plt def insertion_sort(arr): n = len(arr) for i in range(1, n): v = arr[i] j = i - 1 while j >= 0 and arr[j] > v: arr[j + 1] = arr[j] j -= 1 arr...
28.56
134
0.459384
182
1,428
3.516484
0.43956
0.04375
0.075
0.01875
0.1
0.1
0.1
0
0
0
0
0.126202
0.417367
1,428
49
135
29.142857
0.643029
0.085434
0
0.15
0
0
0.036741
0
0
0
0
0
0
1
0.025
false
0
0.1
0
0.125
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
f994d4e53b4b2fdca4fdd7080892fff0acd2645e
638
py
Python
tasks.py
RevolutionTech/revolutiontech.ca
a3f0f1526812554938674c4fc9e7ea90ed4ffe6d
[ "0BSD" ]
null
null
null
tasks.py
RevolutionTech/revolutiontech.ca
a3f0f1526812554938674c4fc9e7ea90ed4ffe6d
[ "0BSD" ]
171
2017-11-02T05:39:37.000Z
2022-03-07T01:13:53.000Z
tasks.py
RevolutionTech/carrier-owl
f72f47e39ea819681fa7b50de2b52e393edeeb96
[ "0BSD" ]
1
2018-01-13T08:11:26.000Z
2018-01-13T08:11:26.000Z
from invoke import Collection, task from opstrich.invoke import check, openssl @task def deploy(c): """ Build and run a Docker container to deploy. """ c.run("docker build -t zappa-lambda .") c.run("docker run -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY zappa-lambda") c.run( "DJANGO_...
23.62963
106
0.694357
88
638
4.920455
0.534091
0.064665
0.046189
0.069284
0
0
0
0
0
0
0
0
0.202194
638
26
107
24.538462
0.850688
0.153605
0
0.142857
0
0
0.420432
0.127701
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f994d8e1e290868506a6fadbde009edec090ad8b
2,490
py
Python
bear/scripts/lunar_lander/remove_data.py
junmokane/AI602_Project
59c132ae04751f9fb6cf6ebb491042cbf4de003d
[ "Apache-2.0" ]
1
2020-10-14T05:51:36.000Z
2020-10-14T05:51:36.000Z
bear/scripts/lunar_lander/remove_data.py
junmokane/AI602_Project
59c132ae04751f9fb6cf6ebb491042cbf4de003d
[ "Apache-2.0" ]
null
null
null
bear/scripts/lunar_lander/remove_data.py
junmokane/AI602_Project
59c132ae04751f9fb6cf6ebb491042cbf4de003d
[ "Apache-2.0" ]
null
null
null
import torch import numpy as np import copy def remove(path): data = torch.load(path) location_list, action_list = [np.reshape(st[0], (1, 8)) for st in data], [st[1] for st in data] location_list = np.concatenate(location_list, axis=0) action_list = np.asarray(action_list) action_0 = action_l...
35.070423
112
0.65743
376
2,490
4.06383
0.135638
0.098168
0.058901
0.098168
0.47644
0.47644
0.448953
0.27356
0.246073
0.246073
0
0.030839
0.205622
2,490
71
113
35.070423
0.741658
0.091165
0
0.122449
0
0
0.09429
0.080124
0
0
0
0
0
1
0.020408
false
0
0.061224
0
0.081633
0.040816
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9990629b2219f3dd1a7da2e2230e3d0eb99c9a8
2,435
py
Python
flex/http/negotiators.py
centergy/flex
4fc11d3ad48e4b5016f53256015e3eed2157daae
[ "MIT" ]
null
null
null
flex/http/negotiators.py
centergy/flex
4fc11d3ad48e4b5016f53256015e3eed2157daae
[ "MIT" ]
null
null
null
flex/http/negotiators.py
centergy/flex
4fc11d3ad48e4b5016f53256015e3eed2157daae
[ "MIT" ]
null
null
null
""" Content negotiation deals with selecting an appropriate renderer given the incoming request. Typically this will be based on the request's Accept header. """ import flask as fl from . import exc class BaseContentNegotiator(object): def get_accept_mimetypes(self, request=None): """Given the incoming request...
27.988506
92
0.70308
321
2,435
5.258567
0.299065
0.0391
0.028436
0.040877
0.108412
0.108412
0.074645
0.074645
0.074645
0.074645
0
0.00758
0.187269
2,435
86
93
28.313953
0.845376
0.15729
0
0.140351
0
0
0.023221
0
0
0
0
0
0
1
0.105263
false
0
0.035088
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
f99b06a71dceb4f5f766c0212d0a17f6f162c70a
539
py
Python
uva_answers/10018/main.py
andriisoldatenko/fan
e7ed6ea0f39bd71af4e286af8d81ebc137ae8ff4
[ "MIT" ]
6
2018-11-18T15:00:02.000Z
2022-03-23T21:32:24.000Z
uva_answers/10018/main.py
andriisoldatenko/leetcode
8fef4da00234f8acbea9b71ee730b2267b70395f
[ "MIT" ]
null
null
null
uva_answers/10018/main.py
andriisoldatenko/leetcode
8fef4da00234f8acbea9b71ee730b2267b70395f
[ "MIT" ]
null
null
null
import pprint import sys import re FILE = sys.stdin #FILE = open('sample.in') def is_palindrome(n): k = str(n) return list(k) == list(reversed(k)) def reverse_add(n): return n + int(str(n)[::-1]) #import ipdb;ipdb.set_trace() test_cases = range(int(FILE.readline())) #import ipdb; ipdb.set_trace() for t...
20.730769
40
0.64564
88
539
3.784091
0.431818
0.09009
0.099099
0.102102
0.132132
0
0
0
0
0
0
0.007026
0.207792
539
25
41
21.56
0.772834
0.152134
0
0.111111
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.166667
0.055556
0.388889
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f99fbafb536fdd0dcee45c41f8a1a58e47ef7f46
1,086
py
Python
2dtree/bin/bpy_validation.py
LeanderSilur/Snippets
3ff718f91439450bd5aff13342aa98a9d4957e85
[ "MIT" ]
9
2020-02-04T05:41:09.000Z
2022-03-08T06:14:54.000Z
2dtree/bin/bpy_validation.py
LeanderSilur/Snippets
3ff718f91439450bd5aff13342aa98a9d4957e85
[ "MIT" ]
2
2020-06-14T19:58:01.000Z
2021-07-04T14:21:33.000Z
2dtree/bin/bpy_validation.py
LeanderSilur/Snippets
3ff718f91439450bd5aff13342aa98a9d4957e85
[ "MIT" ]
2
2020-07-29T19:54:44.000Z
2020-07-29T20:00:24.000Z
import bpy import subprocess REBUILD = 0 if REBUILD: subprocess.call([ "g++", bpy.path.abspath('//../main.cpp'), bpy.path.abspath('//../PtTree.cpp'), "-o", bpy.path.abspath('//PtTree') ]) # Collect the input data. verts = bpy.data.meshes['PointCloud'].vertices quer...
22.163265
69
0.621547
159
1,086
4.169811
0.440252
0.042232
0.084465
0.090498
0.069382
0.069382
0
0
0
0
0
0.006912
0.200737
1,086
49
70
22.163265
0.756912
0.055249
0
0
0
0
0.086999
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9a216fdaa67e5fc6913f5aa98c379d5a25e120e
10,274
py
Python
zgrab2_schemas/zgrab2/ssh.py
aspacewalz/zgrab2
d9ed4f141dae102d65ba1e08bf2eb4179678d172
[ "Apache-2.0" ]
1,031
2016-11-29T15:12:05.000Z
2022-03-31T05:02:50.000Z
zgrab2_schemas/zgrab2/ssh.py
vl4deee11/zgrab2
c859e9ef1173955dadae88416289ef8cc8910495
[ "Apache-2.0" ]
191
2017-07-24T17:27:57.000Z
2022-03-16T04:59:59.000Z
zgrab2_schemas/zgrab2/ssh.py
vl4deee11/zgrab2
c859e9ef1173955dadae88416289ef8cc8910495
[ "Apache-2.0" ]
230
2017-11-14T07:25:57.000Z
2022-03-31T04:20:46.000Z
# zschema sub-schema for zgrab2's ssh module (modules/ssh.go) # Registers zgrab2-ssh globally, and ssh with the main zgrab2 schema. from zschema.leaves import * from zschema.compounds import * import zschema.registry import zcrypto_schemas.zcrypto as zcrypto from . import zgrab2 # NOTE: Despite the fact that we have...
40.448819
234
0.694569
1,178
10,274
5.936333
0.304754
0.015444
0.01716
0.014014
0.198627
0.161876
0.114686
0.10439
0.10439
0.10439
0
0.030186
0.171306
10,274
253
235
40.608696
0.791167
0.199046
0
0.164894
0
0.042553
0.449152
0.088023
0
0
0
0.003953
0
1
0
false
0
0.026596
0
0.026596
0.005319
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9a21f50645fbd8f00212379587d12cc0568bcd5
5,123
py
Python
app/main/views.py
Juru-10/blog
ac554952e884c35ce7dd50cf0ef9748a8da96a3f
[ "MIT" ]
null
null
null
app/main/views.py
Juru-10/blog
ac554952e884c35ce7dd50cf0ef9748a8da96a3f
[ "MIT" ]
null
null
null
app/main/views.py
Juru-10/blog
ac554952e884c35ce7dd50cf0ef9748a8da96a3f
[ "MIT" ]
null
null
null
from flask import render_template,request,redirect,url_for,abort from ..models import User,Post,Comment,Subscriber from ..requests import get_quotes from . import main from .forms import PostForm,CommentForm,DelForm,UpdateProfile from app.auth.forms import SubscriptionForm from .. import db,photos from flask_login impo...
33.927152
117
0.662112
680
5,123
4.854412
0.191176
0.040897
0.035444
0.042411
0.389882
0.287186
0.249015
0.197819
0.177219
0.156013
0
0.004351
0.192465
5,123
150
118
34.153333
0.79357
0.340426
0
0.25641
0
0
0.112821
0.041327
0
0
0
0
0
1
0.076923
false
0
0.141026
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
f9a3781192095c8ae404cd60bb006a2f14049443
4,370
py
Python
genoml/steps/model_validate.py
GenoML/genoml
bfe0164e99a27d5ec2b720b5a24e059294603e3f
[ "Apache-2.0" ]
13
2019-03-22T12:12:12.000Z
2021-10-04T15:06:18.000Z
genoml/steps/model_validate.py
GenoML/genoml
bfe0164e99a27d5ec2b720b5a24e059294603e3f
[ "Apache-2.0" ]
21
2019-03-15T15:40:59.000Z
2020-08-03T21:44:26.000Z
genoml/steps/model_validate.py
GenoML/genoml
bfe0164e99a27d5ec2b720b5a24e059294603e3f
[ "Apache-2.0" ]
4
2019-06-28T18:25:37.000Z
2020-01-21T01:22:07.000Z
#! /usr/bin/env python -u # coding=utf-8 from shutil import copyfile from genoml.steps import PhenoScale, StepBase from genoml.utils import DescriptionLoader __author__ = 'Sayed Hadi Hashemi' class ModelValidateStep(StepBase): """performs validation with existing data""" _valid_prefix = None def _reduc...
38
118
0.576659
481
4,370
4.945946
0.297297
0.094157
0.050441
0.075662
0.442203
0.334594
0.297604
0.244641
0.192938
0.153426
0
0.001669
0.314645
4,370
114
119
38.333333
0.792654
0.126087
0
0.376471
0
0
0.145153
0.017914
0
0
0
0.008772
0
1
0.082353
false
0
0.035294
0.011765
0.152941
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
f9a5ad42dfd6f80195b93f6de20b3058e7e2213b
7,374
py
Python
pyquil/api/_benchmark.py
stjordanis/pyquil
36987ecb78d5dc85d299dd62395b7669a1cedd5a
[ "Apache-2.0" ]
677
2017-01-09T23:20:22.000Z
2018-11-26T10:57:49.000Z
pyquil/api/_benchmark.py
stjordanis/pyquil
36987ecb78d5dc85d299dd62395b7669a1cedd5a
[ "Apache-2.0" ]
574
2018-11-28T05:38:40.000Z
2022-03-23T20:38:28.000Z
pyquil/api/_benchmark.py
stjordanis/pyquil
36987ecb78d5dc85d299dd62395b7669a1cedd5a
[ "Apache-2.0" ]
202
2018-11-30T06:36:28.000Z
2022-03-29T15:38:18.000Z
############################################################################## # Copyright 2018 Rigetti Computing # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://ww...
46.670886
118
0.675481
906
7,374
5.384106
0.31457
0.01435
0.02624
0.021525
0
0
0
0
0
0
0
0.004638
0.239761
7,374
157
119
46.968153
0.865501
0.481421
0
0.029412
0
0
0.0003
0
0
0
0
0
0.014706
1
0.044118
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
f9a78f0606518ebedfb5bc19389f7930753e4683
554
py
Python
questions/q292_pair_with_given_difference/simple_storage.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
null
null
null
questions/q292_pair_with_given_difference/simple_storage.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
1
2021-05-15T07:56:51.000Z
2021-05-15T07:56:51.000Z
questions/q292_pair_with_given_difference/simple_storage.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
null
null
null
class Solution: def findPair(self, arr, L,N): store = set() for num in arr : if num in store : return True store.add(num - N) store.add(num + N) return False if __name__ == '__main__': t = int(input()) for _ i...
19.103448
47
0.440433
70
554
3.357143
0.428571
0.025532
0.042553
0.102128
0.170213
0.170213
0.170213
0
0
0
0
0.006349
0.431408
554
28
48
19.785714
0.739683
0
0
0
0
0
0.01444
0
0
0
0
0
0
1
0.052632
false
0
0
0
0.210526
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
f9ae75ada823a3568610724a901cd66400be071c
331
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/bulb-switcher-iii.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/bulb-switcher-iii.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/bulb-switcher-iii.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(n) # Space: O(1) class Solution(object): def numTimesAllBlue(self, light): """ :type light: List[int] :rtype: int """ result, right = 0, 0 for i, num in enumerate(light, 1): right = max(right, num) result += (right == i) ret...
22.066667
42
0.483384
39
331
4.102564
0.666667
0.1375
0
0
0
0
0
0
0
0
0
0.019512
0.380665
331
14
43
23.642857
0.760976
0.178248
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
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
f9b08e37d9b636d67355ff414f22cda84aa9f53b
3,472
py
Python
tilapia/lib/provider/chains/bch/provider.py
huazhouwang/python_multichain_wallet
52e0acdc2984c08990cb36433ef17a414fbe8312
[ "MIT" ]
2
2021-09-23T13:47:08.000Z
2021-09-24T02:39:14.000Z
tilapia/lib/provider/chains/bch/provider.py
huazhouwang/tilapia
52e0acdc2984c08990cb36433ef17a414fbe8312
[ "MIT" ]
null
null
null
tilapia/lib/provider/chains/bch/provider.py
huazhouwang/tilapia
52e0acdc2984c08990cb36433ef17a414fbe8312
[ "MIT" ]
null
null
null
import itertools import logging from typing import Dict, Tuple from tilapia.lib.basic import bip44 from tilapia.lib.basic.functional.require import require from tilapia.lib.hardware import interfaces as hardware_interfaces from tilapia.lib.provider import data from tilapia.lib.provider.chains import btc from tilapia.l...
39.908046
118
0.701613
425
3,472
5.489412
0.263529
0.064295
0.042006
0.030862
0.183455
0.123018
0.068581
0.035148
0
0
0
0.007689
0.213422
3,472
86
119
40.372093
0.846576
0.017857
0
0.092308
0
0
0.047256
0.009099
0
0
0
0
0
1
0.107692
false
0
0.153846
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9b1801867198f74dece84cf86c7c8fce031dea8
1,747
py
Python
Excercises/Automata.py
RyanClinton777/graph-theory-project
a3ff9512da3ac2d48138b59d2e8eb8899d8e552d
[ "Unlicense" ]
null
null
null
Excercises/Automata.py
RyanClinton777/graph-theory-project
a3ff9512da3ac2d48138b59d2e8eb8899d8e552d
[ "Unlicense" ]
null
null
null
Excercises/Automata.py
RyanClinton777/graph-theory-project
a3ff9512da3ac2d48138b59d2e8eb8899d8e552d
[ "Unlicense" ]
null
null
null
""" DFA Automata Implementation """ class State: """ Nodes/States in an automaton """ def __init__(self, isAccept, arrows): # Boolean, wether or not this state is an accept state self.isAccept = isAccept # dictionary of keys/labels:Other states self.arrows = arrows class DFA: ...
28.639344
117
0.611906
233
1,747
4.553648
0.39485
0.02262
0.031103
0.028275
0.111216
0.073516
0.073516
0.073516
0.073516
0
0
0.033965
0.275329
1,747
61
118
28.639344
0.804107
0.418432
0
0.142857
0
0
0.085391
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9b86bf8f49332b5a6eedda3d7d77088bf890eb2
19,801
py
Python
pangtreebuild/pangenome/builders/dagmaf2poagraph.py
meoke/PangTreeBuild
7cafb76df32c559a76ed1d269699dc0e52313312
[ "MIT" ]
2
2019-09-04T20:01:28.000Z
2019-12-23T22:41:57.000Z
pangtreebuild/pangenome/builders/dagmaf2poagraph.py
meoke/PangTreeBuild
7cafb76df32c559a76ed1d269699dc0e52313312
[ "MIT" ]
2
2019-08-10T16:18:01.000Z
2019-10-28T21:40:23.000Z
pangtreebuild/pangenome/builders/dagmaf2poagraph.py
meoke/PangTreeBuild
7cafb76df32c559a76ed1d269699dc0e52313312
[ "MIT" ]
2
2020-04-23T23:57:52.000Z
2020-07-12T17:09:02.000Z
from collections import namedtuple from typing import Tuple, List, NewType, Optional, Dict from pangtreebuild.mafgraph.graph import Block from pangtreebuild.mafgraph.graph.Arc import Arc from pangtreebuild.mafgraph.mafreader import start_position from pangtreebuild.pangenome import graph from pangtreebuild.pangenome i...
44.596847
117
0.56982
2,234
19,801
4.673232
0.081916
0.03592
0.029885
0.014368
0.496169
0.368391
0.279693
0.208812
0.188027
0.169157
0
0.003768
0.356699
19,801
443
118
44.697517
0.815827
0.015353
0
0.249292
0
0
0.038135
0
0
0
0
0
0
1
0.07932
false
0.002833
0.028329
0.01983
0.195467
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
f9bff3fda8ac0169c8ed57237e81f02a4608ca3c
2,451
py
Python
conductor/conductor/api/controllers/validator.py
aalsudais/optf-has
c3e070b6ebc713a571c10d7a5cd87e5053047136
[ "Apache-2.0" ]
4
2019-02-14T19:18:09.000Z
2019-10-21T17:17:59.000Z
conductor/conductor/api/controllers/validator.py
aalsudais/optf-has
c3e070b6ebc713a571c10d7a5cd87e5053047136
[ "Apache-2.0" ]
null
null
null
conductor/conductor/api/controllers/validator.py
aalsudais/optf-has
c3e070b6ebc713a571c10d7a5cd87e5053047136
[ "Apache-2.0" ]
4
2019-05-09T07:05:54.000Z
2020-11-20T05:56:47.000Z
# # ------------------------------------------------------------------------- # Copyright (c) 2015-2017 AT&T Intellectual Property # # 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 # # ...
38.296875
78
0.572011
265
2,451
5.215094
0.471698
0.043415
0.047033
0.054269
0.085384
0.085384
0.085384
0.085384
0.085384
0
0
0.019965
0.305182
2,451
63
79
38.904762
0.791544
0.394941
0
0.258065
0
0
0.096461
0
0
0
0
0
0
1
0.032258
false
0
0.16129
0
0.290323
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
f9c217fdeaa845a8b5a88bdf4815b175a49ccae7
32,310
py
Python
gamejoltapi.py
bgempire/gamejoltapi
03a77527e00a67e5990dbc1289c54e280954b712
[ "MIT" ]
1
2022-01-18T12:08:58.000Z
2022-01-18T12:08:58.000Z
gamejoltapi.py
bgempire/gamejoltapi
03a77527e00a67e5990dbc1289c54e280954b712
[ "MIT" ]
null
null
null
gamejoltapi.py
bgempire/gamejoltapi
03a77527e00a67e5990dbc1289c54e280954b712
[ "MIT" ]
1
2021-04-30T11:27:39.000Z
2021-04-30T11:27:39.000Z
from urllib.parse import urlencode as _urlencode, quote as _quote from urllib.request import urlopen as _urlopen from hashlib import md5 as _md5 from ast import literal_eval as _literal_eval from collections import OrderedDict as _OrderedDict _DEBUG = False class GameJoltDataRequired(Exception): """ Exception ra...
38.327402
498
0.572857
3,656
32,310
4.992888
0.129923
0.01775
0.013148
0.023009
0.409335
0.374767
0.351649
0.335543
0.315876
0.301797
0
0.00232
0.333024
32,310
842
499
38.372922
0.844733
0.4355
0
0.431085
0
0
0.120855
0.010145
0.002933
0
0
0
0
1
0.082111
false
0
0.014663
0
0.184751
0.005865
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9c3b4eb59658fb2124d809e4025b7e6912a6d8f
3,243
py
Python
poplar/util.py
mortonjt/poplar
854d1ef819392f54536df386ef034091831802ed
[ "BSD-3-Clause" ]
null
null
null
poplar/util.py
mortonjt/poplar
854d1ef819392f54536df386ef034091831802ed
[ "BSD-3-Clause" ]
null
null
null
poplar/util.py
mortonjt/poplar
854d1ef819392f54536df386ef034091831802ed
[ "BSD-3-Clause" ]
null
null
null
import os import inspect import torch import numpy as np import numbers def get_data_path(fn, subfolder='data'): """Return path to filename ``fn`` in the data folder. During testing it is often necessary to load data files. This function returns the full path to files in the ``data`` subfolder by def...
26.153226
81
0.588344
454
3,243
4.145374
0.414097
0.055792
0.063762
0.082891
0.06695
0.06695
0.06695
0.06695
0.06695
0.06695
0
0.025575
0.276596
3,243
123
82
26.365854
0.776641
0.365094
0
0
0
0
0.048117
0.012552
0
0
0
0
0
1
0.060606
false
0
0.075758
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9c72fdee75782efa656735bc0a7c52d729983de
5,109
py
Python
search-github-ip.py
brilliant116/learning-code
5378b1f0c53b4ceac56942044bbb666278a138f2
[ "MIT" ]
null
null
null
search-github-ip.py
brilliant116/learning-code
5378b1f0c53b4ceac56942044bbb666278a138f2
[ "MIT" ]
null
null
null
search-github-ip.py
brilliant116/learning-code
5378b1f0c53b4ceac56942044bbb666278a138f2
[ "MIT" ]
null
null
null
import asyncio import time import socket import argparse import aiohttp class MyConnector(aiohttp.TCPConnector): def __init__(self, ip): self.__ip = ip super().__init__() async def _resolve_host( self, host: str, port: int, traces: None = None, ): return [{ 'hostname': host, 'host': s...
24.921951
109
0.595811
720
5,109
4.105556
0.302778
0.032476
0.020298
0.028417
0.225304
0.154263
0.119756
0.119756
0.119756
0.100812
0
0.08198
0.228812
5,109
204
110
25.044118
0.668274
0
0
0.209302
0
0.005814
0.177138
0.012723
0
0
0
0
0
1
0.005814
false
0.005814
0.040698
0
0.098837
0.034884
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9c8ce2fe1e056d6cf0dbb9895f3232eec31c3ce
23,732
py
Python
AdventOfCode/2020/day20.py
benhunter/coding-challenges
0cca059da7c8ae6cdc62dbeb3db8250ab42ac3b6
[ "MIT" ]
null
null
null
AdventOfCode/2020/day20.py
benhunter/coding-challenges
0cca059da7c8ae6cdc62dbeb3db8250ab42ac3b6
[ "MIT" ]
null
null
null
AdventOfCode/2020/day20.py
benhunter/coding-challenges
0cca059da7c8ae6cdc62dbeb3db8250ab42ac3b6
[ "MIT" ]
null
null
null
# Advent of Code 2020 Day # https://adventofcode.com/2020/ import cProfile import itertools import math import numpy as np from collections import namedtuple from pprint import pformat, pprint from typing import List, Optional from numpy.typing import ArrayLike USE_EXAMPLE1 = False # example input or full input D...
36.567026
110
0.605469
3,034
23,732
4.530653
0.098879
0.022261
0.034628
0.024443
0.470391
0.39226
0.340172
0.293613
0.255565
0.230758
0
0.018554
0.295972
23,732
649
111
36.567026
0.804166
0.220125
0
0.322275
0
0.00237
0.029708
0.006814
0
0
0
0
0.097156
1
0.059242
false
0
0.018957
0.00237
0.132701
0.037915
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9caa403c7cda77ed58ce080740499d1a738c3e3
1,870
py
Python
src/server_main_loop.py
the40san/unity_survival_shooter_multi_server_python
d20d9aa2204bca70d0787acbfe395277b776e92d
[ "MIT" ]
3
2017-04-11T05:36:08.000Z
2021-03-16T16:22:07.000Z
src/server_main_loop.py
the40san/unity_survival_shooter_multi_server_python
d20d9aa2204bca70d0787acbfe395277b776e92d
[ "MIT" ]
null
null
null
src/server_main_loop.py
the40san/unity_survival_shooter_multi_server_python
d20d9aa2204bca70d0787acbfe395277b776e92d
[ "MIT" ]
1
2017-04-11T05:35:26.000Z
2017-04-11T05:35:26.000Z
import socket import select from server_info import ServerInfo from client_handler.client_thread import ClientThread from server_handler.server_thread import ServerThread from server_handler.server_thread_proxy import ServerThreadProxy from logger import Logger class ServerMainLoop: def __init__(self): sel...
30.16129
81
0.647059
219
1,870
5.333333
0.342466
0.082192
0.082192
0.039384
0.049658
0
0
0
0
0
0
0.000725
0.262032
1,870
61
82
30.655738
0.845652
0
0
0.041667
0
0
0.03369
0
0
0
0
0
0
1
0.125
false
0
0.145833
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9caf1a992a5eacb6d048931ae39cf07dfd472c4
8,838
py
Python
Aula_01/Aula01_Resolucao_Exercicios_Lista_Estruturas_Condicionais.py
elcbasilio/letscode
ea2ed5ee80485d98fad2c77a7a50927a7d524793
[ "MIT" ]
null
null
null
Aula_01/Aula01_Resolucao_Exercicios_Lista_Estruturas_Condicionais.py
elcbasilio/letscode
ea2ed5ee80485d98fad2c77a7a50927a7d524793
[ "MIT" ]
null
null
null
Aula_01/Aula01_Resolucao_Exercicios_Lista_Estruturas_Condicionais.py
elcbasilio/letscode
ea2ed5ee80485d98fad2c77a7a50927a7d524793
[ "MIT" ]
null
null
null
# 1. Peça a idade do usuário e imprima se ele é maior ou menor de 18 anos; idade = int (input ('Digite sua idade:')) if idade < 18: print ('Você tem menos de 18 anos') else: print ('Você tem 18 anos ou mais') # 2. Peça um número e mostre se ele é positivo ou negativo; numero = float (input ('Digite um número ...
34.795276
209
0.642114
1,544
8,838
3.675518
0.182642
0.022203
0.028546
0.020969
0.362819
0.272599
0.212335
0.188018
0.174097
0.135683
0
0.045154
0.21317
8,838
253
210
34.932806
0.770923
0.225051
0
0.245614
0
0
0.396871
0
0
0
0
0
0
1
0
false
0
0
0
0
0.374269
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9cd5d6aedbff1e1481a77881774667ef1fefe16
2,023
py
Python
ros_radar_mine/neuro_learning/controller/testing/load_and_test.py
tudelft/blimp_snn
23acbef8822337387aee196a3a10854e82bb4f80
[ "Apache-2.0" ]
3
2021-11-08T20:20:21.000Z
2021-12-29T09:05:37.000Z
ros_radar_mine/neuro_learning/controller/testing/load_and_test.py
tudelft/blimp_snn
23acbef8822337387aee196a3a10854e82bb4f80
[ "Apache-2.0" ]
null
null
null
ros_radar_mine/neuro_learning/controller/testing/load_and_test.py
tudelft/blimp_snn
23acbef8822337387aee196a3a10854e82bb4f80
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Mar 2 20:41:01 2021 @author: marina Interesting: - T2000_NPOP100_NGEN500_NEU2-10-5-2-1_05-04-2021_19-08-51: Really smooth and contained between (-3,3) - T2000_NPOP100_NGEN500_NEU2-10-5-2-1_05-04-2021_19-25-20 """ # Set absolute package path i...
26.973333
126
0.707365
344
2,023
3.965116
0.43314
0.032991
0.017595
0.028592
0.126833
0.055718
0.055718
0.055718
0.055718
0.055718
0
0.135347
0.116164
2,023
75
127
26.973333
0.627517
0.604053
0
0
0
0
0.153191
0.073759
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9ce968f21d6e6f401b8601663fad589082a13f8
293
py
Python
HackerRank/Python/Sets/py-the-captains-room.py
neiesc/Problem-solving
d3bce7a3b9801e6049e2c135418b31cba47b0964
[ "MIT" ]
1
2019-07-20T16:59:21.000Z
2019-07-20T16:59:21.000Z
HackerRank/Python/Sets/py-the-captains-room.py
neiesc/Problem-solving
d3bce7a3b9801e6049e2c135418b31cba47b0964
[ "MIT" ]
5
2019-03-10T19:46:42.000Z
2020-04-24T22:42:30.000Z
HackerRank/Python/Sets/py-the-captains-room.py
neiesc/Problem-solving
d3bce7a3b9801e6049e2c135418b31cba47b0964
[ "MIT" ]
null
null
null
#!/bin/python3 # The Captain's Room # https://www.hackerrank.com/challenges/py-the-captains-room/problem from collections import Counter if __name__ == '__main__': k = int(input()) room_captain = Counter(map(int, input().split())).most_common()[:-2:-1] print(room_captain[0][0])
29.3
76
0.68942
42
293
4.547619
0.761905
0.08377
0
0
0
0
0
0
0
0
0
0.019531
0.12628
293
10
77
29.3
0.726563
0.337884
0
0
0
0
0.041667
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
f9d666c57cbfbdaa2610dd40857b2cf6d3dbfa06
8,973
py
Python
api/GIS/functionalFun/thread_GIS.py
AutoCoinDCF/NEW_API
f4abc48fff907a0785372b941afcd67e62eec825
[ "Apache-2.0" ]
null
null
null
api/GIS/functionalFun/thread_GIS.py
AutoCoinDCF/NEW_API
f4abc48fff907a0785372b941afcd67e62eec825
[ "Apache-2.0" ]
null
null
null
api/GIS/functionalFun/thread_GIS.py
AutoCoinDCF/NEW_API
f4abc48fff907a0785372b941afcd67e62eec825
[ "Apache-2.0" ]
null
null
null
from threading import Thread,Lock from api.GIS.config import GIS_mgdb_config from api.GIS.database.mongoDB import MGO import json from api.GIS.GISStaticsFun import GisStaticsFun class TheadFun(): def __init__(self): pass # self.param = param def queryQBByIds(self,ids): DBConfig = []...
41.35023
140
0.5482
750
8,973
6.522667
0.186667
0.034955
0.015944
0.01063
0.613655
0.597097
0.562756
0.542723
0.504906
0.487939
0
0.00237
0.34158
8,973
216
141
41.541667
0.82566
0.032654
0
0.575758
0
0
0.068292
0
0
0
0
0
0
1
0.050505
false
0.005051
0.025253
0
0.10101
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
f9d780addff74609d2c11318421ccdacd8b15d8d
1,845
py
Python
Creating a variable at template using filter.py/filter.py
YooInKeun/Facebook-Page-Insights-Web-Crawler
dbe8477b1e0671aca137cd94eff090d691e99ee2
[ "MIT" ]
1
2021-07-12T00:04:04.000Z
2021-07-12T00:04:04.000Z
Creating a variable at template using filter.py/filter.py
YooInKeun/Facebook-Page-Insights-Web-Crawler
dbe8477b1e0671aca137cd94eff090d691e99ee2
[ "MIT" ]
null
null
null
Creating a variable at template using filter.py/filter.py
YooInKeun/Facebook-Page-Insights-Web-Crawler
dbe8477b1e0671aca137cd94eff090d691e99ee2
[ "MIT" ]
null
null
null
from django import template register = template.Library() # 문자열 변수 생성 가능 class SetVarNode(template.Node): def __init__(self, new_val, var_name): self.new_val = new_val self.var_name = var_name def render(self, context): context[self.var_name] = self.new_val return ...
29.758065
112
0.616802
242
1,845
4.541322
0.359504
0.070064
0.050046
0.038217
0.242038
0.080073
0.080073
0.080073
0.080073
0.080073
0
0.009559
0.262873
1,845
62
113
29.758065
0.798529
0.086179
0
0.2
0
0
0.108276
0
0
0
0
0
0
1
0.15
false
0
0.05
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
f9d8c56ae37748311a4ccb37002818c53ff1fd16
420
py
Python
fimath/constants.py
kalinkinisaac/modular
301d26ad222a5ef3278aaf251908e0a8537bb58f
[ "MIT" ]
null
null
null
fimath/constants.py
kalinkinisaac/modular
301d26ad222a5ef3278aaf251908e0a8537bb58f
[ "MIT" ]
null
null
null
fimath/constants.py
kalinkinisaac/modular
301d26ad222a5ef3278aaf251908e0a8537bb58f
[ "MIT" ]
null
null
null
from .field import Field from .re_field import ReField from .matrix import Matrix inf = Field(is_inf=True) IDM = Matrix(1, 0, 0, 1) G0 = Matrix(0, -1, 1, 0) G1 = Matrix(0, 1, -1, 1) G1_2 = G1 ** 2 G0_ = Matrix(0, 1, -1, 0) G1_ = Matrix(1, 1, -1, 0) G1_2_ = G1_ ** 2 G_ = Matrix(1, -1, 0, 1) G__ = Matrix(1, 0, -1, 1)...
16.8
40
0.592857
88
420
2.704545
0.25
0.067227
0.05042
0.113445
0.168067
0.168067
0.168067
0.168067
0
0
0
0.148036
0.211905
420
24
41
17.5
0.570997
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9de9f006fc9afa79a63265eef2873fd5e7b5f5b
1,991
py
Python
2021/python/day3.py
majormunky/advent_of_code
4cccd7f3879e28e465bbc39176659bdd52bd70d6
[ "MIT" ]
null
null
null
2021/python/day3.py
majormunky/advent_of_code
4cccd7f3879e28e465bbc39176659bdd52bd70d6
[ "MIT" ]
null
null
null
2021/python/day3.py
majormunky/advent_of_code
4cccd7f3879e28e465bbc39176659bdd52bd70d6
[ "MIT" ]
1
2020-12-04T06:12:01.000Z
2020-12-04T06:12:01.000Z
from common import get_file_contents def most_common(index, items, total): if int(items[index]) >= total / 2: return "1" else: return "0" def least_common(index, items, total): # if our number is bigger than half our total lines # then we know that 1 is the more common value # so we return 0 if int(items[...
20.316327
72
0.658463
314
1,991
4.038217
0.286624
0.022082
0.031546
0.042587
0.224763
0.179022
0.179022
0.115142
0.05836
0.05836
0
0.057908
0.19337
1,991
97
73
20.525773
0.731631
0.07785
0
0.157143
0
0
0.074276
0
0
0
0
0
0
1
0.1
false
0
0.014286
0.014286
0.257143
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f9e4232dbd5470195e751b3cfb7348b26305a4d1
12,684
py
Python
src/utils/datasets.py
gorjanradevski/siamese_multi_head_attention
fcbfe21f284bf98a1d0e725a9e6f2df19363b4a5
[ "MIT" ]
2
2020-06-11T03:03:35.000Z
2022-01-08T07:15:46.000Z
src/utils/datasets.py
gorjanradevski/multimodal_representations_deep_learning
fcbfe21f284bf98a1d0e725a9e6f2df19363b4a5
[ "MIT" ]
null
null
null
src/utils/datasets.py
gorjanradevski/multimodal_representations_deep_learning
fcbfe21f284bf98a1d0e725a9e6f2df19363b4a5
[ "MIT" ]
null
null
null
import json import re import os import logging from abc import ABC from typing import Dict, Any, List, Tuple from utils.constants import pascal_train_size, pascal_val_size logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) def preprocess_caption(caption: str) -> str: """Basic method us...
34.467391
88
0.601861
1,591
12,684
4.57511
0.137649
0.038467
0.044374
0.054953
0.493474
0.381371
0.339744
0.276824
0.223932
0.206072
0
0.002679
0.323163
12,684
367
89
34.561308
0.845195
0.297383
0
0.255556
0
0
0.024575
0
0
0
0
0
0.016667
1
0.105556
false
0
0.038889
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
dda4affe6b2847c17389112e2763a725bc4f7b5b
5,545
py
Python
jaxtorch/image.py
GallagherCommaJack/jaxtorch
3bc6785d781f12fabf3a436d9cfc0b839ebf5aec
[ "MIT" ]
null
null
null
jaxtorch/image.py
GallagherCommaJack/jaxtorch
3bc6785d781f12fabf3a436d9cfc0b839ebf5aec
[ "MIT" ]
null
null
null
jaxtorch/image.py
GallagherCommaJack/jaxtorch
3bc6785d781f12fabf3a436d9cfc0b839ebf5aec
[ "MIT" ]
null
null
null
import math from typing import Tuple import jax import jax.numpy as jnp import numpy as np from einops import repeat def factor_int(n: int) -> Tuple[int, int]: f1 = int(math.ceil(math.sqrt(n))) while n % f1: f1 -= 1 f2 = n // f1 return min(f1, f2), max(f1, f2) def compute_channel_change_mat...
25.671296
85
0.544274
686
5,545
4.262391
0.198251
0.02736
0.01368
0.02394
0.575581
0.572161
0.527018
0.50684
0.471272
0.454856
0
0.180038
0.327863
5,545
215
86
25.790698
0.604508
0.027592
0
0.636364
0
0
0.021529
0
0
0
0
0
0.005348
1
0.042781
false
0
0.032086
0
0.128342
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
dda604bdbe931306a411dfabae424401c18dc54e
1,210
py
Python
1-image2ascii/image2ascii.py
dourgey/Python_Exercise
f41d69033b76d2fea3671f751e936cb804742b57
[ "MIT" ]
null
null
null
1-image2ascii/image2ascii.py
dourgey/Python_Exercise
f41d69033b76d2fea3671f751e936cb804742b57
[ "MIT" ]
null
null
null
1-image2ascii/image2ascii.py
dourgey/Python_Exercise
f41d69033b76d2fea3671f751e936cb804742b57
[ "MIT" ]
null
null
null
# Author: @dourgey # Create Time: 2019/12/27: 18:06 # 主要知识点: # argparse的使用 # 检查文件路径是否存在 # PILLOW读取图片并处理 # 文件写入 import argparse import os import sys from PIL import Image parser = argparse.ArgumentParser() parser.add_argument("-i", "--image", help="主人要转换的图片路径喵,默认在当前路径下读取喵~") parser.add_argument("-f", "--file", help="...
22
107
0.629752
173
1,210
4.32948
0.583815
0.028037
0.012016
0.024032
0.026702
0
0
0
0
0
0
0.048156
0.193388
1,210
54
108
22.407407
0.719262
0.161157
0
0
0
0
0.169169
0.137137
0
0
0
0
0
1
0.03125
false
0
0.125
0
0.21875
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
dda62a60e83b2ac0fa35757329d616e26ea6b265
6,536
py
Python
python/ray/serialization.py
delding/ray
8532ba4272556aa24b5e0c7d275c7b383815c022
[ "Apache-2.0" ]
null
null
null
python/ray/serialization.py
delding/ray
8532ba4272556aa24b5e0c7d275c7b383815c022
[ "Apache-2.0" ]
null
null
null
python/ray/serialization.py
delding/ray
8532ba4272556aa24b5e0c7d275c7b383815c022
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import ray.numbuf import ray.pickling as pickling def check_serializable(cls): """Throws an exception if Ray cannot serialize this class efficiently. Args: cls (type): The class t...
35.521739
79
0.684823
873
6,536
4.894616
0.211913
0.057805
0.018722
0.017786
0.291832
0.250644
0.233092
0.155862
0.140417
0.121694
0
0.000794
0.229498
6,536
183
80
35.715847
0.847697
0.304468
0
0.158416
0
0
0.248928
0.021666
0
0
0
0
0
1
0.089109
false
0
0.059406
0.019802
0.237624
0.009901
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dda91173fa6aa6ba29a55f8ecc21898b460a57e2
3,729
py
Python
wlcsim/FrankElastic/stonefence.py
SpakowitzLab/BasicWLC
13edbbc8e8cd36a3586571ff4d80880fc89d30e6
[ "MIT" ]
1
2021-03-16T01:39:18.000Z
2021-03-16T01:39:18.000Z
wlcsim/FrankElastic/stonefence.py
riscalab/wlcsim
e34877ef6c5dc83c6444380dbe624b371d70faf2
[ "MIT" ]
17
2016-07-08T21:17:40.000Z
2017-01-24T09:05:25.000Z
wlcsim/FrankElastic/stonefence.py
riscalab/wlcsim
e34877ef6c5dc83c6444380dbe624b371d70faf2
[ "MIT" ]
9
2016-06-21T22:03:53.000Z
2016-11-10T00:55:01.000Z
from numpy import sqrt import numpy as np #from util import sphinx_compat_jit as jit from numba import jit ORDER_L=50 @jit def alpha(l,m): return sqrt((3*(l-m)*(l+m))/(4*np.pi*(2*l-1)*(2*l+1))) @jit def alpha_plus(l,m): return sqrt((3*(l+m)*(l+m+1))/(8*np.pi*(2*l-1)*(2*l+1))) @jit def Alm(l,m): retu...
30.565574
79
0.592116
629
3,729
3.434022
0.193959
0.05
0.025926
0.036111
0.415741
0.342593
0.28287
0.231944
0.180093
0.075463
0
0.028017
0.253419
3,729
121
80
30.818182
0.747845
0.281845
0
0.173333
0
0
0.008942
0
0
0
0
0
0
1
0.133333
false
0
0.04
0.053333
0.306667
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
ddaa279788a0d07cc55b56c6e5a215a8e2e118cc
9,283
py
Python
controllers/default.py
npfe/pursuit
edd2d66ec0770251041b748c4b9f967a15c138b5
[ "Unlicense" ]
null
null
null
controllers/default.py
npfe/pursuit
edd2d66ec0770251041b748c4b9f967a15c138b5
[ "Unlicense" ]
16
2020-03-30T13:00:10.000Z
2020-05-16T16:42:52.000Z
controllers/default.py
npfe/pursuit
edd2d66ec0770251041b748c4b9f967a15c138b5
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------- # This is a sample controller # this file is released under public domain and you can use without limitations # ------------------------------------------------------------------------- import json from datetime import d...
39.004202
129
0.596251
1,229
9,283
4.412531
0.179821
0.030979
0.028766
0.024894
0.286373
0.229947
0.189747
0.189747
0.154896
0.154896
0
0.011268
0.254336
9,283
237
130
39.168776
0.772176
0.163632
0
0.306011
0
0
0.077033
0.021139
0
0
0
0
0
1
0.081967
false
0
0.016393
0
0.169399
0.010929
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0