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
473f4dc9a600b8c43aff418b905edef20e705990
266
py
Python
Ex031 - Custo de viagem.py
MarcusMendes81/Python
4af6653da324604930d24542a84a530348029d39
[ "Apache-2.0" ]
null
null
null
Ex031 - Custo de viagem.py
MarcusMendes81/Python
4af6653da324604930d24542a84a530348029d39
[ "Apache-2.0" ]
null
null
null
Ex031 - Custo de viagem.py
MarcusMendes81/Python
4af6653da324604930d24542a84a530348029d39
[ "Apache-2.0" ]
null
null
null
km = float(input('Digite qual a distância da sua viagem em km: ')) if km <= 200: preço = km * 0.50 print('O valor da sua viagem é de {:.2f}R$'.format(preço)) else: preço = km * 0.45 print('O valor da sua viagem é de {:.2f}R$'.format(preço))
29.555556
67
0.586466
48
266
3.25
0.541667
0.096154
0.211538
0.166667
0.5
0.5
0.5
0.5
0.5
0.5
0
0.055556
0.255639
266
8
68
33.25
0.732323
0
0
0.285714
0
0
0.445736
0
0
0
0
0
0
1
0
false
0
0
0
0
0.285714
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
473fc3dd716cb4c46c867f24ed27e15522aed178
1,802
py
Python
tests/post/test_metrics_server.py
ssalaues/metalk8s
cca4a4c64fe9cd4d7b87717aa3fda1642144da4b
[ "Apache-2.0" ]
null
null
null
tests/post/test_metrics_server.py
ssalaues/metalk8s
cca4a4c64fe9cd4d7b87717aa3fda1642144da4b
[ "Apache-2.0" ]
null
null
null
tests/post/test_metrics_server.py
ssalaues/metalk8s
cca4a4c64fe9cd4d7b87717aa3fda1642144da4b
[ "Apache-2.0" ]
null
null
null
import json import kubernetes.config import pytest_bdd import pytest_bdd.parsers import utils.helper pytest_bdd.scenarios('features/metrics_server.feature') @pytest_bdd.when('I wait for metrics-server to be initialized') def wait_until_initialized(kubeconfig): client = kubernetes.config.new_client_from_config...
34
78
0.712542
237
1,802
5.21519
0.451477
0.058252
0.038835
0.040453
0.218447
0.182848
0.182848
0.182848
0.098706
0.098706
0
0.013468
0.175916
1,802
52
79
34.653846
0.818855
0.115427
0
0.060606
0
0
0.173585
0.068553
0
0
0
0
0.121212
1
0.090909
false
0
0.151515
0
0.242424
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
47405d3453babd25d32b1eab577b6c049070e9a0
52
py
Python
src/config.py
kimminwyk/apache-log-parsing
1fcf06dc349c37ab02b91c2c48e3dc8f6f5d4b4e
[ "MIT" ]
1
2021-03-31T00:14:38.000Z
2021-03-31T00:14:38.000Z
src/config.py
kimminwyk/apache-log-parsing
1fcf06dc349c37ab02b91c2c48e3dc8f6f5d4b4e
[ "MIT" ]
null
null
null
src/config.py
kimminwyk/apache-log-parsing
1fcf06dc349c37ab02b91c2c48e3dc8f6f5d4b4e
[ "MIT" ]
null
null
null
default = False actions = 'store_true' ENC = 'utf-8'
17.333333
22
0.692308
8
52
4.375
1
0
0
0
0
0
0
0
0
0
0
0.022727
0.153846
52
3
23
17.333333
0.772727
0
0
0
0
0
0.283019
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4740a5904496fd65f865863d0eb457e3b97598a9
10,751
py
Python
UniGrammar/tools/regExps/python/prelifter.py
UniGrammar/UniGrammar.py
560152ff5ff3f0651171044f6b5046fd8d895960
[ "Unlicense" ]
2
2020-06-17T16:57:23.000Z
2022-02-24T13:29:01.000Z
UniGrammar/tools/regExps/python/prelifter.py
KOLANICH/UniGrammar.py
d83f2f605073898b454868b98e2ecdefc4d9f7ca
[ "Unlicense" ]
null
null
null
UniGrammar/tools/regExps/python/prelifter.py
KOLANICH/UniGrammar.py
d83f2f605073898b454868b98e2ecdefc4d9f7ca
[ "Unlicense" ]
null
null
null
import sre_constants as sc import sre_parse as sp import typing import unicodedata from pprint import pprint from RichConsole import groups, rsjoin from .knowledge import CAPTURE_GROUP, LITERAL_STR class RXASTNode: """Current AST generated by sre_parse is badly structured and doesn't suit well for our purposes. So...
27.217722
287
0.728583
1,372
10,751
5.466472
0.239067
0.026667
0.020533
0.032
0.200267
0.143467
0.0816
0.0568
0.0568
0.0352
0
0.000887
0.161101
10,751
394
288
27.286802
0.830691
0.203237
0
0.29249
0
0
0.040235
0
0
0
0
0
0.003953
1
0.166008
false
0.067194
0.027668
0.063241
0.592885
0.011858
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
474625e55d420bbe1645d7c53baf9bb6b0997f55
2,615
py
Python
works/test/dssm/model.py
didazxc/autoflow
6682102efae90b0af00ba920cd4fa2020694d5f2
[ "MIT" ]
null
null
null
works/test/dssm/model.py
didazxc/autoflow
6682102efae90b0af00ba920cd4fa2020694d5f2
[ "MIT" ]
null
null
null
works/test/dssm/model.py
didazxc/autoflow
6682102efae90b0af00ba920cd4fa2020694d5f2
[ "MIT" ]
null
null
null
import torch from torch import nn class UserModel(nn.Module): def __init__(self, filter_sizes, userprofile_size, applist_size, output_size=32, char_embed_size=32, chars_size=6000, out_channel_size=3): super().__init__() # embedding of lines and apps self.embed = nn.Embedd...
38.455882
104
0.636711
349
2,615
4.475645
0.226361
0.06338
0.044814
0.028809
0.251601
0.140845
0
0
0
0
0
0.026248
0.256979
2,615
67
105
39.029851
0.777663
0.021797
0
0.132075
0
0
0
0
0
0
0
0
0
1
0.09434
false
0
0.037736
0.018868
0.226415
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
474730af1ea1af916a12ede7e8f6ca83e5e468a8
952
py
Python
pastila/schema.py
harlov/pastila
27ebe862bc25d5cc1a14766e5eec8f48853098c3
[ "MIT" ]
null
null
null
pastila/schema.py
harlov/pastila
27ebe862bc25d5cc1a14766e5eec8f48853098c3
[ "MIT" ]
null
null
null
pastila/schema.py
harlov/pastila
27ebe862bc25d5cc1a14766e5eec8f48853098c3
[ "MIT" ]
null
null
null
from pastila.fields import Field class Schema(object): data = None def __init__(self): self.data = {} def load(self, data): for field, value in data.items(): self.load_to_field(field, value) self.validate() def validate(self): for name, field in self.fie...
22.666667
86
0.570378
119
952
4.394958
0.285714
0.091778
0.068834
0.080306
0.110899
0.110899
0.110899
0
0
0
0
0.001536
0.316176
952
41
87
23.219512
0.801843
0
0
0.068966
0
0
0
0
0
0
0
0
0
1
0.241379
false
0
0.034483
0.068966
0.482759
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4747b2ce44f8edfeed9025dd5538e36cd606b1dc
436
py
Python
labs/lab10/demo/src/cpu_multiprocessing.py
Alvant/AdvancedPython2020
c5a6439f100ff6a32168366f6a74e5ca0e79d0bc
[ "MIT" ]
null
null
null
labs/lab10/demo/src/cpu_multiprocessing.py
Alvant/AdvancedPython2020
c5a6439f100ff6a32168366f6a74e5ca0e79d0bc
[ "MIT" ]
7
2021-09-12T17:15:27.000Z
2022-03-01T17:50:18.000Z
labs/lab10/demo/src/cpu_multiprocessing.py
Alvant/AdvancedPython
b036d124d0ccaa325b356db1a189e6ef10e1f21f
[ "MIT" ]
2
2021-09-26T10:00:25.000Z
2021-11-07T19:01:33.000Z
import multiprocessing import time from typing import List from constants import CPU_BIG_NUMBERS from utils import show_execution_time def cpu_bound(number: int) -> int: return sum(i * i for i in range(number)) def find_sums(numbers: List[int]) -> None: with multiprocessing.Pool() as pool: pool.ma...
20.761905
64
0.743119
65
436
4.676923
0.538462
0.039474
0.085526
0
0
0
0
0
0
0
0
0
0.169725
436
20
65
21.8
0.839779
0
0
0
0
0
0.018349
0
0
0
0
0
0
1
0.166667
false
0
0.416667
0.083333
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
4747e422b3230b40d458ca7afafc2b2ff6c690f8
304
py
Python
whatsapp_tracker/bases/selenium_bases/base_selenium_keyboard.py
itay-bardugo/whatsapp_tracker
c53a309b08bf47597c8191ec0a155a1fe1536842
[ "MIT" ]
1
2021-09-25T12:22:35.000Z
2021-09-25T12:22:35.000Z
whatsapp_tracker/bases/selenium_bases/base_selenium_keyboard.py
itay-bardugo/whatsapp_tracker
c53a309b08bf47597c8191ec0a155a1fe1536842
[ "MIT" ]
null
null
null
whatsapp_tracker/bases/selenium_bases/base_selenium_keyboard.py
itay-bardugo/whatsapp_tracker
c53a309b08bf47597c8191ec0a155a1fe1536842
[ "MIT" ]
null
null
null
from abc import ABCMeta from whatsapp_tracker.bases.selenium_bases.base_selenium_kit import BaseSeleniumKit from whatsapp_tracker.mixins.seleniun_keyboard_press_mixin import SeleniumKeyBoardPressMixin class BaseSeleniumKeyboard(BaseSeleniumKit, SeleniumKeyBoardPressMixin, metaclass=ABCMeta): ...
33.777778
92
0.875
31
304
8.322581
0.645161
0.093023
0.147287
0
0
0
0
0
0
0
0
0
0.078947
304
8
93
38
0.921429
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.6
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
4749535b6dc42716b629b0a869d4e93214bb93a8
3,056
py
Python
assignments/assignment2/model.py
RuslanOm/dlcourse_ai
f4c85497dc4affb942cacb363f17ce63b39c1bd7
[ "MIT" ]
null
null
null
assignments/assignment2/model.py
RuslanOm/dlcourse_ai
f4c85497dc4affb942cacb363f17ce63b39c1bd7
[ "MIT" ]
null
null
null
assignments/assignment2/model.py
RuslanOm/dlcourse_ai
f4c85497dc4affb942cacb363f17ce63b39c1bd7
[ "MIT" ]
null
null
null
import numpy as np from layers import FullyConnectedLayer, ReLULayer, softmax_with_cross_entropy, l2_regularization class TwoLayerNet: """ Neural network with two fully connected layers """ def __init__(self, n_input, n_output, hidden_layer_size, reg): """ Initializes the neural network ...
32.510638
96
0.612238
403
3,056
4.48139
0.332506
0.034884
0.033223
0.025471
0.127353
0.087486
0.087486
0.056478
0.056478
0.056478
0
0.023865
0.30072
3,056
93
97
32.860215
0.821245
0.375
0
0.153846
0
0
0.004654
0
0
0
0
0.021505
0
1
0.102564
false
0
0.051282
0
0.25641
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
474a6941a53b9666a0f1df165d06680657ea0def
3,066
py
Python
ukol.py
tenhobi/NI-MPI
5c6c4f5fd28487e807315ce6da33b81f0db4908d
[ "MIT" ]
null
null
null
ukol.py
tenhobi/NI-MPI
5c6c4f5fd28487e807315ce6da33b81f0db4908d
[ "MIT" ]
null
null
null
ukol.py
tenhobi/NI-MPI
5c6c4f5fd28487e807315ce6da33b81f0db4908d
[ "MIT" ]
null
null
null
import numpy as np class Solver: def __init__(self, matrix, vector, initialVector, precision, gamma): self.initialVector = initialVector self.precision = precision self.matrix = matrix self.bVector = vector self.gamma = gamma # lower triangular part ...
31.285714
119
0.628506
368
3,066
5.173913
0.293478
0.047269
0.099265
0.089286
0.235294
0.193277
0.168067
0.142857
0.088235
0
0
0.017444
0.25212
3,066
97
120
31.608247
0.812909
0.179713
0
0.109091
0
0
0
0
0
0
0
0
0
1
0.145455
false
0
0.018182
0
0.309091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
474bb5e6e62ca2caee71dee1fac0a250c57c5dda
12,491
py
Python
src/python/dxpy/utils/__init__.py
psung/dx-toolkit
f3a430c5e24184215eb4a9883a179edf07bfa08b
[ "Apache-2.0" ]
null
null
null
src/python/dxpy/utils/__init__.py
psung/dx-toolkit
f3a430c5e24184215eb4a9883a179edf07bfa08b
[ "Apache-2.0" ]
null
null
null
src/python/dxpy/utils/__init__.py
psung/dx-toolkit
f3a430c5e24184215eb4a9883a179edf07bfa08b
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2013-2014 DNAnexus, Inc. # # This file is part of dx-toolkit (DNAnexus platform client libraries). # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at # # http://www.a...
39.15674
241
0.660716
1,654
12,491
4.833736
0.296252
0.028768
0.038274
0.021889
0.129956
0.109819
0.089806
0.071044
0.071044
0.071044
0
0.017179
0.2497
12,491
318
242
39.279874
0.835894
0.407173
0
0.314815
0
0.006173
0.050478
0
0
0
0
0.003145
0
1
0.123457
false
0.012346
0.04321
0.012346
0.271605
0.067901
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
474cbd8308c2b1410045a858c934a70c927f171d
2,946
py
Python
mkserialisable.py
cedadev/ipython_project
fd9c85c20d3689435684cf4b681dfaab1c0a825b
[ "BSD-3-Clause-Clear" ]
null
null
null
mkserialisable.py
cedadev/ipython_project
fd9c85c20d3689435684cf4b681dfaab1c0a825b
[ "BSD-3-Clause-Clear" ]
null
null
null
mkserialisable.py
cedadev/ipython_project
fd9c85c20d3689435684cf4b681dfaab1c0a825b
[ "BSD-3-Clause-Clear" ]
null
null
null
"""Routines to make objects serialisable. Each of the functions in this module makes a specific type of object serialisable. In most cases, this module needs to be imported and the function run in both the serialising and the unserialising environments. Here's a summary (see function documentation for details): mk_...
23.95122
79
0.67685
401
2,946
4.778055
0.291771
0.025574
0.031315
0.015658
0.029228
0.029228
0.029228
0
0
0
0
0.003089
0.230821
2,946
123
80
23.95122
0.842454
0.418873
0
0.090909
0
0
0.02157
0
0
0
0
0
0
1
0.145455
false
0
0.072727
0
0.345455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
474d460f8c93e195c3909578035ee5726563b9b7
773
py
Python
flox_aws/configure.py
getflox/flox-aws
9642e291afa3ddedd9eed566b43a640e9bb0c537
[ "MIT" ]
null
null
null
flox_aws/configure.py
getflox/flox-aws
9642e291afa3ddedd9eed566b43a640e9bb0c537
[ "MIT" ]
null
null
null
flox_aws/configure.py
getflox/flox-aws
9642e291afa3ddedd9eed566b43a640e9bb0c537
[ "MIT" ]
null
null
null
from floxcore.config import Configuration, ParamDefinition class AWSConfiguration(Configuration): def parameters(self): return ( ParamDefinition("region", "AWS Default region"), ParamDefinition("role_arn", "Role (ARN) to be assumed", default="", filter_empty=False), Par...
36.809524
113
0.630013
79
773
6.088608
0.493671
0.04158
0.10395
0.095634
0.158004
0
0
0
0
0
0
0
0.245796
773
20
114
38.65
0.825043
0
0
0.125
0
0
0.239327
0
0
0
0
0
0
1
0.1875
false
0.0625
0.0625
0.125
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
1
0
0
0
2
474d5c6d6e9e1b1ea76c41c137dcb55b272f1e24
1,769
py
Python
api_teacher.py
sabertooth9/KUET-Teachers-Web-Scrapper-
0b1cea4f3e60f440b882bef971a942e42d0ab048
[ "Apache-2.0" ]
1
2019-12-21T13:35:46.000Z
2019-12-21T13:35:46.000Z
api_teacher.py
sabertooth9/KUET-Teachers-Web-Scrapper-
0b1cea4f3e60f440b882bef971a942e42d0ab048
[ "Apache-2.0" ]
null
null
null
api_teacher.py
sabertooth9/KUET-Teachers-Web-Scrapper-
0b1cea4f3e60f440b882bef971a942e42d0ab048
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask_restful import Api, Resource, reqparse from kuet_teacher_data import get_data app = Flask(__name__) api = Api(app) data = get_data() class Teacher_data(Resource): def get(self,id="CSE"): if(id=='ALL' or id=='all'): return data, 200 for datac in ...
26.402985
71
0.544375
244
1,769
3.831967
0.204918
0.029947
0.038503
0.04492
0.559358
0.452406
0.362567
0.362567
0.228877
0.168984
0
0.018806
0.308649
1,769
66
72
26.80303
0.745707
0
0
0.464286
0
0
0.089932
0.017534
0
0
0
0
0
1
0.071429
false
0
0.053571
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
474e6ccd3a09db8bd61fb6310dfa022bed136ad4
892
py
Python
demo/singleperson.py
Neerajj9/Computer-Vision-based-Offside-Detection-in-soccer
744bfc636463f24c4f78f25684864c2ce4abb43f
[ "MIT" ]
8
2020-10-17T14:54:53.000Z
2022-02-09T11:03:01.000Z
demo/singleperson.py
Neerajj9/Computer-Vision-based-Offside-Detection-in-soccer
744bfc636463f24c4f78f25684864c2ce4abb43f
[ "MIT" ]
4
2021-01-03T16:02:29.000Z
2021-11-23T03:26:01.000Z
demo/singleperson.py
Neerajj9/Computer-Vision-based-Offside-Detection-in-soccer
744bfc636463f24c4f78f25684864c2ce4abb43f
[ "MIT" ]
2
2021-04-10T07:05:55.000Z
2021-09-19T23:22:18.000Z
import os import sys sys.path.append(os.path.dirname(__file__) + "/../") from scipy.misc import imread from util.config import load_config from nnet import predict from util import visualize from dataset.pose_dataset import data_to_input cfg = load_config("demo/pose_cfg.yaml") # Load and setup CNN part detector s...
25.485714
68
0.784753
133
892
5.06015
0.488722
0.023774
0.032689
0
0
0
0
0
0
0
0
0.001276
0.121076
892
34
69
26.235294
0.857143
0.181614
0
0
0
0
0.053867
0
0
0
0
0
0
1
0
false
0
0.388889
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
474f1702de3c8a82c6ec6ce0f179522a071b3434
19,771
py
Python
simulators/iam_module.py
jason-neal/companion_simulations
b5773e5539011d492b7128d0dd2778041ce50d52
[ "MIT" ]
1
2018-09-04T19:06:44.000Z
2018-09-04T19:06:44.000Z
simulators/iam_module.py
jason-neal/companion_simulations
b5773e5539011d492b7128d0dd2778041ce50d52
[ "MIT" ]
85
2017-03-25T22:37:02.000Z
2022-03-01T16:49:14.000Z
simulators/iam_module.py
jason-neal/companion_simulations
b5773e5539011d492b7128d0dd2778041ce50d52
[ "MIT" ]
1
2017-08-18T10:56:39.000Z
2017-08-18T10:56:39.000Z
import datetime import logging import os import warnings import matplotlib.pyplot as plt import numpy as np import pandas as pd from logutils import BraceMessage as __ from tqdm import tqdm import simulators from mingle.models.broadcasted_models import inherent_alpha_model from mingle.utilities.chisqr import chi_squa...
45.450575
125
0.589247
2,462
19,771
4.532494
0.164094
0.023837
0.01631
0.010664
0.284613
0.234698
0.203423
0.159423
0.125818
0.125818
0
0.019843
0.296495
19,771
434
126
45.5553
0.782443
0.107177
0
0.186667
0
0.01
0.098256
0.01447
0
0
0
0
0.056667
1
0.04
false
0
0.063333
0
0.153333
0.036667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4752834006b4c7e38581b00b04934cecb3b712df
4,910
py
Python
src/etl/transform.py
fmirani/etl_project
969990143c3075f193565cec309a2f0333038a8b
[ "MIT" ]
null
null
null
src/etl/transform.py
fmirani/etl_project
969990143c3075f193565cec309a2f0333038a8b
[ "MIT" ]
null
null
null
src/etl/transform.py
fmirani/etl_project
969990143c3075f193565cec309a2f0333038a8b
[ "MIT" ]
null
null
null
import pandas as pd from datetime import datetime, timedelta from bs4 import BeautifulSoup as bs from etl.logger import get_logger from etl.main import ETL logger = get_logger("transform") def transform_data(service: str, data_file: str) -> pd.DataFrame: """ Simple function to guide the request ...
31.075949
87
0.57169
597
4,910
4.628141
0.289782
0.020268
0.019906
0.021716
0.346363
0.332609
0.307637
0.281578
0.2519
0.217155
0
0.006213
0.311609
4,910
157
88
31.273885
0.811243
0.227495
0
0.323232
0
0
0.176172
0.006211
0
0
0
0
0
1
0.030303
false
0
0.050505
0
0.131313
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
47529769d5bba7253b76bc8e8bf54fbb83c5bfd5
646
py
Python
projects/migrations/0003_auto_20210719_1152.py
Tajeu2001/awwards
3a7b068f5d66336d4881a91b6a49338dc6f900d6
[ "MIT" ]
null
null
null
projects/migrations/0003_auto_20210719_1152.py
Tajeu2001/awwards
3a7b068f5d66336d4881a91b6a49338dc6f900d6
[ "MIT" ]
null
null
null
projects/migrations/0003_auto_20210719_1152.py
Tajeu2001/awwards
3a7b068f5d66336d4881a91b6a49338dc6f900d6
[ "MIT" ]
null
null
null
# Generated by Django 2.2.24 on 2021-07-19 11:52 import cloudinary.models from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('projects', '0002_project_technologies'), ] operations = [ migrations.AlterField( model_name='profile', ...
25.84
90
0.623839
65
646
6.061538
0.584615
0.121827
0.126904
0.147208
0.324873
0.324873
0.324873
0.324873
0.324873
0.324873
0
0.054737
0.264706
646
24
91
26.916667
0.774737
0.071207
0
0.333333
1
0
0.122074
0.041806
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4752de7c01e8d42225f7e14fb6052b77754c4e72
3,567
py
Python
student/urls.py
masoodazhar/-school-management-system
6525b3d29d12f03e05d362d81b7c5855806f57d9
[ "Apache-2.0" ]
1
2022-01-20T10:20:05.000Z
2022-01-20T10:20:05.000Z
student/urls.py
masoodazhar/-school-management-system
6525b3d29d12f03e05d362d81b7c5855806f57d9
[ "Apache-2.0" ]
null
null
null
student/urls.py
masoodazhar/-school-management-system
6525b3d29d12f03e05d362d81b7c5855806f57d9
[ "Apache-2.0" ]
1
2022-01-20T10:20:31.000Z
2022-01-20T10:20:31.000Z
from django.urls import path from academic.views import SectionCreate, SectionUpdate, SectionDelete from .views import ( StudentView, AttendanceMark, AttendanceSearch, AttendanceView, IndividualMarksView, AdmissionCreate, AdmissionView, AdmissionDelete, AdmissionUpda...
51.695652
140
0.724699
391
3,567
6.327366
0.199488
0.058205
0.097009
0.038399
0.168957
0.057397
0
0
0
0
0
0.000322
0.130642
3,567
68
141
52.455882
0.797485
0
0
0
0
0
0.352487
0.185249
0
0
0
0
0
1
0
false
0
0.046154
0
0.046154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
475312b91a3851e28b34370218eea8c022b8aff7
5,598
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/settings/base.py
mistalaba/cookiecutter-simple-django
979780b3dea3b0ab51e780cc7d98e9ba66004b09
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/settings/base.py
mistalaba/cookiecutter-simple-django
979780b3dea3b0ab51e780cc7d98e9ba66004b09
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/settings/base.py
mistalaba/cookiecutter-simple-django
979780b3dea3b0ab51e780cc7d98e9ba66004b09
[ "BSD-3-Clause" ]
1
2021-10-21T01:45:32.000Z
2021-10-21T01:45:32.000Z
import os import sys # PATH vars BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) ROOT_DIR = lambda *x: os.path.join(BASE_DIR, *x) APPS_DIR = os.path.join(ROOT_DIR(), "apps") sys.path.insert(0, APPS_DIR) # SECURITY WARNING: keep the secret key used in production secret! SECRET...
29.463158
89
0.642551
532
5,598
6.635338
0.368421
0.084703
0.052975
0.052691
0.160623
0.143343
0.012748
0.012748
0
0
0
0.003593
0.204537
5,598
189
90
29.619048
0.789131
0.046981
0
0.125786
0
0
0.534923
0.389598
0
0
0
0
0
0
null
null
0.069182
0.025157
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
47534f46ad8c13b23baa8376ad80237dfc62bd3c
827
py
Python
wenben_project/reco_sys/server/__init__.py
nameli0722/git-
29343ef0eec598aa262c59825d567044ef393f44
[ "MIT" ]
null
null
null
wenben_project/reco_sys/server/__init__.py
nameli0722/git-
29343ef0eec598aa262c59825d567044ef393f44
[ "MIT" ]
null
null
null
wenben_project/reco_sys/server/__init__.py
nameli0722/git-
29343ef0eec598aa262c59825d567044ef393f44
[ "MIT" ]
null
null
null
import happybase from settings.default import DefaultConfig import redis pool = happybase.ConnectionPool(size=10, host='hadoop-master', port=9090) # 召回数据 redis_client = redis.StrictRedis(host=DefaultConfig.REDIS_HOST, port=DefaultConfig.REDIS_PORT, db=...
34.458333
73
0.629988
81
827
6.296296
0.481481
0.141176
0.086275
0.101961
0.298039
0.298039
0.298039
0.298039
0.298039
0.298039
0
0.015517
0.29867
827
24
74
34.458333
0.863793
0.031439
0
0.235294
0
0
0.016291
0
0
0
0
0
0
1
0
false
0
0.294118
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
475531486c43c1c7dffcddd44fa86cc2df76cfd3
783
py
Python
alimama/alimama/items.py
Yoochao/tbk
b3a6aff905cf9d7dbe161813e1bbe968d86b5320
[ "Apache-2.0" ]
null
null
null
alimama/alimama/items.py
Yoochao/tbk
b3a6aff905cf9d7dbe161813e1bbe968d86b5320
[ "Apache-2.0" ]
null
null
null
alimama/alimama/items.py
Yoochao/tbk
b3a6aff905cf9d7dbe161813e1bbe968d86b5320
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class AlimamaItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() url = scrapy.Field() img = scrapy.F...
26.1
51
0.67433
105
783
4.847619
0.447619
0.345776
0.176817
0.141454
0.278978
0
0
0
0
0
0
0.001605
0.204342
783
29
52
27
0.815409
0.260536
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.055556
0.055556
0
0.944444
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
47567885350f4cfe55660b2d4ce384bb43abd614
2,516
py
Python
Programming_Assignment_5/proj5/oracle.py
csMOOC/Maryland.Cryptography
58b6111a918599772e5a476764bb3b9897b61283
[ "MIT" ]
1
2017-11-18T15:34:59.000Z
2017-11-18T15:34:59.000Z
Programming_Assignment_5/proj5/oracle.py
csMOOC/Maryland.Cryptography
58b6111a918599772e5a476764bb3b9897b61283
[ "MIT" ]
null
null
null
Programming_Assignment_5/proj5/oracle.py
csMOOC/Maryland.Cryptography
58b6111a918599772e5a476764bb3b9897b61283
[ "MIT" ]
null
null
null
sign_sock = None vrfy_sock = None MAX_PACKET_LEN = 8192 NOT_BINARY_STR_ERR = -1 MISSING_DELIMITER_ERR = -2 ORIGINAL_MSG_ERR = -3 def Oracle_Connect(): import socket global sign_sock global vrfy_sock sign_sock, vrfy_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM), socket.socket(socket.AF_INET,...
27.955556
127
0.647059
372
2,516
4.244624
0.255376
0.050665
0.043065
0.028499
0.339455
0.314123
0.28879
0.248258
0.197593
0.176694
0
0.025093
0.255564
2,516
89
128
28.269663
0.817939
0.080684
0
0.272727
0
0
0.243068
0
0
0
0
0
0
0
null
null
0
0.015152
null
null
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
47595ec1c220dcb1c916744d399484c33fcb99c6
5,932
py
Python
medical_test/models.py
AlexanderUstinovv/medical_test
b740fb599aa4097eb44d35a844fef838c4ccf6ad
[ "BSD-3-Clause" ]
null
null
null
medical_test/models.py
AlexanderUstinovv/medical_test
b740fb599aa4097eb44d35a844fef838c4ccf6ad
[ "BSD-3-Clause" ]
null
null
null
medical_test/models.py
AlexanderUstinovv/medical_test
b740fb599aa4097eb44d35a844fef838c4ccf6ad
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.models import User from django.db import models class Measurement(models.Model): class Meta: db_table = 'measurement' verbose_name = 'Измерение' verbose_name_plural = 'Измерения' name = models.CharField(max_length=10, verbose_name='Единицы измерения') desc...
41.774648
102
0.607552
578
5,932
5.99308
0.217993
0.146074
0.054561
0.07015
0.524538
0.454388
0.340069
0.265878
0.241051
0.241051
0
0.009298
0.311025
5,932
141
103
42.070922
0.838268
0.006575
0
0.294643
0
0
0.150569
0.004074
0
0
0
0.007092
0
1
0.053571
false
0
0.017857
0.053571
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
475a825b4f6b8ec63bbe41abb911aed22f74dd8a
11,153
py
Python
idarest/idarest_master.py
sfinktah/idarest75
ab2549b12e174aaef32ab6c933fe09b1232a8cce
[ "MIT" ]
null
null
null
idarest/idarest_master.py
sfinktah/idarest75
ab2549b12e174aaef32ab6c933fe09b1232a8cce
[ "MIT" ]
null
null
null
idarest/idarest_master.py
sfinktah/idarest75
ab2549b12e174aaef32ab6c933fe09b1232a8cce
[ "MIT" ]
null
null
null
import socket try: from .idarest_mixins import IdaRestConfiguration except: from idarest_mixins import IdaRestConfiguration # idarest_master_plugin_t.config['master_debug'] = False # idarest_master_plugin_t.config['master_info'] = False # idarest_master_plugin_t.config['api_prefix'] = '/ida/api/v1.0' # ida...
38.725694
151
0.56505
1,247
11,153
4.837209
0.19567
0.118534
0.116545
0.122679
0.363893
0.339688
0.330736
0.288959
0.278017
0.263428
0
0.009671
0.313907
11,153
287
152
38.860627
0.77862
0.078992
0
0.202643
0
0
0.147859
0.048961
0
0
0
0
0
1
0.118943
false
0.008811
0.07489
0.013216
0.370044
0.0837
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
475b01893fd7ae3f1c364df0596288e775da3bcd
11,750
py
Python
wordbot.py
spyth/wordbot
8213d18fcd7602a5b2bab9c83898b9f29a1cf3d4
[ "MIT" ]
null
null
null
wordbot.py
spyth/wordbot
8213d18fcd7602a5b2bab9c83898b9f29a1cf3d4
[ "MIT" ]
null
null
null
wordbot.py
spyth/wordbot
8213d18fcd7602a5b2bab9c83898b9f29a1cf3d4
[ "MIT" ]
null
null
null
import logging import json from datetime import datetime from telegram.ext import (Updater, CommandHandler, MessageHandler, Filters, Job, CallbackQueryHandler) from telegram import (ChatAction, ParseMode, InlineKeyboardButton, InlineKeyboardMarkup) from peewee import fn import pytz from word...
50.213675
151
0.575149
1,267
11,750
5.148382
0.172849
0.046911
0.045838
0.030354
0.529664
0.458685
0.420972
0.401349
0.39721
0.382493
0
0.006031
0.308511
11,750
233
152
50.429185
0.793969
0.017362
0
0.335025
0
0.030457
0.082763
0
0.010152
0
0
0
0
1
0.040609
false
0.005076
0.055838
0
0.116751
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
475e2827e051fef8ddf4351c0f8e2268a7395759
599
py
Python
setup.py
jcanode/small_nn
0e7fa58a52b45b2221b66bd0a67bd7395934133c
[ "MIT" ]
1
2020-07-06T20:43:23.000Z
2020-07-06T20:43:23.000Z
setup.py
jcanode/small_nn
0e7fa58a52b45b2221b66bd0a67bd7395934133c
[ "MIT" ]
null
null
null
setup.py
jcanode/small_nn
0e7fa58a52b45b2221b66bd0a67bd7395934133c
[ "MIT" ]
1
2020-07-04T18:11:43.000Z
2020-07-04T18:11:43.000Z
import setuptools from setuptools import setup, find_namespace_packages setuptools.setup( name="small_nn-jcanode", version="0.0.1", author="Justin Canode", author_email="jcanode@my.gcu.edu", description="A small Neural Network Framework", long_description_content_type="text/markdown", url=...
28.52381
53
0.677796
69
599
5.73913
0.724638
0.090909
0
0
0
0
0
0
0
0
0
0.012346
0.188648
599
20
54
29.95
0.802469
0
0
0
0
0
0.407346
0
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
475f6eec7136ec2401074e0d2a574922b79ef08a
1,829
py
Python
cosPreprints.py
leouieda/cospy
fa0994e5a41896cd17f76fdad08b20bdb4dd112a
[ "MIT" ]
null
null
null
cosPreprints.py
leouieda/cospy
fa0994e5a41896cd17f76fdad08b20bdb4dd112a
[ "MIT" ]
8
2019-06-10T12:56:56.000Z
2019-07-02T16:49:40.000Z
cosPreprints.py
leouieda/cospy
fa0994e5a41896cd17f76fdad08b20bdb4dd112a
[ "MIT" ]
null
null
null
import os import sys import utils import extras.downloadStats as stats import extras.downloadManuscript as dm import extras.unpaywall as up def main(): # get the configuration parameters from environment variables cosApiToken = os.environ['cosApiToken'] # for accessing COS API emailAddress = os.environ['...
29.983607
89
0.708037
223
1,829
5.807175
0.565022
0.021622
0.026255
0
0
0
0
0
0
0
0
0.006882
0.205577
1,829
60
90
30.483333
0.884377
0.402406
0
0
0
0
0.098881
0.027985
0
0
0
0
0
1
0.035714
false
0
0.214286
0
0.25
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
47604d58582e9e00c559605b1ca161c8c2ddf27a
1,212
py
Python
RVFS/account/urls.py
cahudson94/Raven-Valley-Forge-Shop
52f46381eafa9410d8e9c759366ef7490dcb1de9
[ "MIT" ]
2
2018-02-12T01:32:16.000Z
2021-08-23T19:29:08.000Z
RVFS/account/urls.py
cahudson94/Raven-Valley-Forge-Shop
52f46381eafa9410d8e9c759366ef7490dcb1de9
[ "MIT" ]
1
2018-05-23T03:42:20.000Z
2018-05-23T03:42:20.000Z
RVFS/account/urls.py
cahudson94/Raven-Valley-Forge-Shop
52f46381eafa9410d8e9c759366ef7490dcb1de9
[ "MIT" ]
null
null
null
""".""" from django.urls import path, reverse_lazy from account.views import (AccountView, InfoFormView, EditAccountView, AddAddressView, AddressListView, DeleteAddress) from django.con...
43.285714
78
0.634488
129
1,212
5.697674
0.333333
0.065306
0.081633
0.035374
0.122449
0.122449
0.122449
0.122449
0
0
0
0
0.227723
1,212
27
79
44.888889
0.785256
0.000825
0
0
0
0
0.243983
0.099585
0
0
0
0
0
1
0
false
0.291667
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
47615b2e9cbae2e821ca67ff9a73e485fdec4592
209
wsgi
Python
index.wsgi
webgovernor/dungeonsheet
59800249f0394af0fc08d7ca23e68faf9d0d2920
[ "MIT" ]
null
null
null
index.wsgi
webgovernor/dungeonsheet
59800249f0394af0fc08d7ca23e68faf9d0d2920
[ "MIT" ]
null
null
null
index.wsgi
webgovernor/dungeonsheet
59800249f0394af0fc08d7ca23e68faf9d0d2920
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys sys.path.insert(0, '/home/nullism/web/dnd.nullism.com/') from main import app conf = {} conf['SECRET_KEY'] = 'CHANGEME' app.config.update(conf) application = app
14.928571
56
0.712919
33
209
4.484848
0.757576
0
0
0
0
0
0
0
0
0
0
0.005464
0.124402
209
13
57
16.076923
0.803279
0.095694
0
0
0
0
0.27957
0.182796
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4763416997df781bd573e3c234672ddfd3a200da
394
py
Python
examples/spot/sub_account/sub_account_futures_asset_transfer_history.py
Banging12/binance-connector-python
dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b
[ "MIT" ]
512
2021-06-15T08:52:44.000Z
2022-03-31T09:49:53.000Z
examples/spot/sub_account/sub_account_futures_asset_transfer_history.py
Banging12/binance-connector-python
dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b
[ "MIT" ]
75
2021-06-20T13:49:50.000Z
2022-03-30T02:45:31.000Z
examples/spot/sub_account/sub_account_futures_asset_transfer_history.py
Banging12/binance-connector-python
dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b
[ "MIT" ]
156
2021-06-18T11:56:36.000Z
2022-03-29T16:34:22.000Z
#!/usr/bin/env python import logging from binance.spot import Spot as Client from binance.lib.utils import config_logging config_logging(logging, logging.DEBUG) key = "" secret = "" spot_client = Client(key, secret) logging.info( spot_client.sub_account_futures_asset_transfer_history( email="", ...
20.736842
73
0.730964
53
394
5.264151
0.622642
0.078853
0
0
0
0
0
0
0
0
0
0.009146
0.167513
394
18
74
21.888889
0.841463
0.172589
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
476347b456fac42ec555a12cc44e71eae3a0e9fc
236
py
Python
src/file_format/utils/json_util.py
tys-hiroshi/test-github-actions-python
c47172949fbdd6ddffe889ca0f91eb11a741021d
[ "MIT" ]
null
null
null
src/file_format/utils/json_util.py
tys-hiroshi/test-github-actions-python
c47172949fbdd6ddffe889ca0f91eb11a741021d
[ "MIT" ]
2
2021-05-21T09:36:42.000Z
2021-05-28T03:55:44.000Z
src/file_format/utils/json_util.py
tys-hiroshi/test-github-actions-python
c47172949fbdd6ddffe889ca0f91eb11a741021d
[ "MIT" ]
1
2020-08-06T06:21:34.000Z
2020-08-06T06:21:34.000Z
# -*- coding:utf-8 -*- import json class JsonUtil(object): def __init__(self, jsonFilePath): with open(jsonFilePath, 'r', encoding='utf-8') as f: self.content = json.load(f) if __name__ == '__main__': pass
21.454545
60
0.610169
30
236
4.4
0.8
0.060606
0
0
0
0
0
0
0
0
0
0.01105
0.233051
236
11
61
21.454545
0.718232
0.084746
0
0
0
0
0.065116
0
0
0
0
0
0
1
0.142857
false
0.142857
0.142857
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
1
0
0
0
0
0
1
4765153b7928cbef30b909b4bfadf17b59957999
864
py
Python
jubox/test/notebook/test_get.py
Miksus/jubox
daaf1e223e0a7c0a3bf9ae03b88d629c0f99d4d5
[ "MIT" ]
1
2020-04-26T05:18:45.000Z
2020-04-26T05:18:45.000Z
jubox/test/notebook/test_get.py
Miksus/jubox
daaf1e223e0a7c0a3bf9ae03b88d629c0f99d4d5
[ "MIT" ]
null
null
null
jubox/test/notebook/test_get.py
Miksus/jubox
daaf1e223e0a7c0a3bf9ae03b88d629c0f99d4d5
[ "MIT" ]
null
null
null
import pytest from jubox import JupyterNotebook, RawCell, CodeCell, MarkdownCell def test_get_tags(): nb = JupyterNotebook([ RawCell("first cell"), RawCell("second cell", tags=["tagged"]), RawCell("third cell", taggs=["Not this", "tagged"]), ]) nb_of_tags = nb.get(tags=["tagged"]...
32
66
0.653935
113
864
4.79646
0.292035
0.059041
0.118081
0.088561
0.560886
0.391144
0.391144
0.391144
0.391144
0.391144
0
0.005755
0.195602
864
27
67
32
0.774101
0
0
0.545455
0
0
0.155093
0
0
0
0
0
0.272727
1
0.090909
false
0
0.090909
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
476520ec9bb115901083a55e2fef94cc44775b6c
2,453
py
Python
azure-mgmt/tests/test_graphrbac.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
azure-mgmt/tests/test_graphrbac.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
azure-mgmt/tests/test_graphrbac.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 #------------------------------------------------------------------------- # Copyright (c) Microsoft. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at #...
37.738462
92
0.622911
256
2,453
5.8125
0.53125
0.040323
0.063844
0.061828
0.146505
0.102151
0.052419
0
0
0
0
0.004642
0.209539
2,453
64
93
38.328125
0.762249
0.32817
0
0.054054
0
0
0.068712
0
0
0
0
0
0.108108
0
null
null
0.081081
0.108108
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
47679dc98d3116e71ccabc039214caa5e8184ec0
5,556
py
Python
HudlProject/HudlProject.py
zifanyang/Hudl-Python-Selenium-Project
9f4427e2c4da39e3432e4432da2d40464cdbb60b
[ "MIT" ]
null
null
null
HudlProject/HudlProject.py
zifanyang/Hudl-Python-Selenium-Project
9f4427e2c4da39e3432e4432da2d40464cdbb60b
[ "MIT" ]
null
null
null
HudlProject/HudlProject.py
zifanyang/Hudl-Python-Selenium-Project
9f4427e2c4da39e3432e4432da2d40464cdbb60b
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys import unittest from time import sleep path="C:\chromedriver.exe" url="http://www.hudl.com/login" #username:nathanyang18@outlook.com #password:test1234 class TestLogin(unittest.TestCase): #Open url def setUp(self): self.driv...
37.04
97
0.656407
689
5,556
5.113208
0.139332
0.136248
0.107295
0.160942
0.7891
0.767528
0.760715
0.757309
0.73971
0.725518
0
0.01374
0.227142
5,556
149
98
37.288591
0.806707
0.038697
0
0.772727
0
0
0.18506
0.040916
0
0
0
0
0.075758
1
0.090909
false
0.234848
0.030303
0
0.128788
0
0
0
0
null
0
0
1
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
8
476814d4d4009b43a794a354ff6f84a93d5e7e37
1,013
py
Python
project/notes/serializers.py
J0hnGann0n/modern-django
a8f51806b3f6903847a20b7241044d3a88f4a775
[ "MIT" ]
1
2017-06-22T22:35:07.000Z
2017-06-22T22:35:07.000Z
project/notes/serializers.py
J0hnGann0n/modern-django
a8f51806b3f6903847a20b7241044d3a88f4a775
[ "MIT" ]
null
null
null
project/notes/serializers.py
J0hnGann0n/modern-django
a8f51806b3f6903847a20b7241044d3a88f4a775
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from rest_framework import serializers # MODEL IMPORTS from project.notes.models import Note, NoteItem class UserSerializer(serializers.HyperlinkedModelSerializer): notes = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='note-detail') cla...
29.794118
103
0.702863
108
1,013
6.527778
0.462963
0.157447
0.059574
0.119149
0.175887
0.175887
0.175887
0.175887
0.175887
0
0
0
0.182626
1,013
33
104
30.69697
0.851449
0.012833
0
0.142857
0
0
0.089178
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.619048
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4768a467a8a3d8637a1d9c22d0a7cdad0dc93e1c
4,286
py
Python
src/main/python/TriggerTextExtractFromS3Image/trigger_text_extract_from_s3_image.py
aws-samples/social-graph-based-people-recommender-using-amazon-neptune-and-textract
50e54945032d0eb4b47d9072d4c1d66cd169070a
[ "MIT-0" ]
null
null
null
src/main/python/TriggerTextExtractFromS3Image/trigger_text_extract_from_s3_image.py
aws-samples/social-graph-based-people-recommender-using-amazon-neptune-and-textract
50e54945032d0eb4b47d9072d4c1d66cd169070a
[ "MIT-0" ]
null
null
null
src/main/python/TriggerTextExtractFromS3Image/trigger_text_extract_from_s3_image.py
aws-samples/social-graph-based-people-recommender-using-amazon-neptune-and-textract
50e54945032d0eb4b47d9072d4c1d66cd169070a
[ "MIT-0" ]
null
null
null
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # vim: tabstop=2 shiftwidth=2 softtabstop=2 expandtab import sys import json import os import urllib.parse import traceback import datetime import boto3 DRY_RUN = (os.getenv('DRY_RUN', 'false') == 'true') AWS_REGION = os.getenv('REGION_NAME', 'us-east-1') KINESIS_STR...
27.651613
112
0.614792
490
4,286
5.155102
0.363265
0.028504
0.04038
0.022565
0.108472
0.086302
0.068884
0.04038
0.04038
0
0
0.039132
0.236818
4,286
154
113
27.831169
0.733109
0.022632
0
0.085271
0
0.007752
0.369654
0.050418
0
0
0
0
0
1
0.03876
false
0
0.069767
0
0.124031
0.054264
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4768b72ec107983342fe43250644f8d66a20e6f5
483
py
Python
example/retreive_soil_data.py
Smeaol22/ssurgo_provider
63bc2251ef031da013af4cf0b252cc48cad4965e
[ "BSD-2-Clause" ]
null
null
null
example/retreive_soil_data.py
Smeaol22/ssurgo_provider
63bc2251ef031da013af4cf0b252cc48cad4965e
[ "BSD-2-Clause" ]
null
null
null
example/retreive_soil_data.py
Smeaol22/ssurgo_provider
63bc2251ef031da013af4cf0b252cc48cad4965e
[ "BSD-2-Clause" ]
null
null
null
from pathlib import Path from src.main import retrieve_soil_composition # This example is base on geodatabase obtain from ssurgo on Ohio area ssurgo_folder_path = Path().absolute().parent / 'resources' / 'SSURGO' / 'soils_GSSURGO_oh_3905571_01' \ / 'soils' / 'gssurgo_g_oh' / 'gSSURGO_OH.gdb' coor...
43.909091
104
0.732919
66
483
5.106061
0.636364
0.071217
0.136499
0
0
0
0
0
0
0
0
0.139024
0.151139
483
10
105
48.3
0.682927
0.138716
0
0
0
0
0.176329
0.065217
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
476b0de22ff656e62822acafc870dbc852e2d7da
592
py
Python
dynamic_programming_1/solution/1010.py
gpgun0/baekjoon_
0a3e87b9eafe1a6af4234ebbd2eebb7f67156414
[ "MIT" ]
null
null
null
dynamic_programming_1/solution/1010.py
gpgun0/baekjoon_
0a3e87b9eafe1a6af4234ebbd2eebb7f67156414
[ "MIT" ]
null
null
null
dynamic_programming_1/solution/1010.py
gpgun0/baekjoon_
0a3e87b9eafe1a6af4234ebbd2eebb7f67156414
[ "MIT" ]
null
null
null
class Solution: def combination(self, m, n): if dp[m][n]: return dp[m][n] if m <= n: dp[m][n] = 1 return dp[m][n] if n == 1: dp[m][n] = m return dp[m][n] dp[m][n] = self.combination(m-1, n-1)...
22.769231
73
0.429054
88
592
2.863636
0.272727
0.087302
0.126984
0.15873
0.329365
0
0
0
0
0
0
0.033803
0.400338
592
26
74
22.769231
0.676056
0
0
0.210526
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0
0
0.421053
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
476bf06f808044f61843876f04c9e9d7d4868ec8
901
py
Python
palindrome_test.py
gcrowder/palindrome
31bc1ab62f849dbbfef8e31b0d0d081e7bf2aced
[ "MIT" ]
null
null
null
palindrome_test.py
gcrowder/palindrome
31bc1ab62f849dbbfef8e31b0d0d081e7bf2aced
[ "MIT" ]
null
null
null
palindrome_test.py
gcrowder/palindrome
31bc1ab62f849dbbfef8e31b0d0d081e7bf2aced
[ "MIT" ]
null
null
null
import unittest from palindrome import is_palindrome class TestPalindrome(unittest.TestCase): def test_even_numbers(self): self.assertTrue(is_palindrome('toot')) def test_odd_numbers(self): self.assertTrue(is_palindrome('tot')) def test_simple_values(self): self.assertTrue(is_pal...
30.033333
111
0.703663
124
901
4.870968
0.475806
0.15894
0.178808
0.198676
0.365894
0.316225
0
0
0
0
0
0
0.188679
901
29
112
31.068966
0.826265
0
0
0
0
0.052632
0.227525
0
0
0
0
0
0.368421
1
0.368421
false
0
0.105263
0
0.526316
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
476d9258256823afd9857d168e1439ac9c883a29
1,738
py
Python
fireroadApi/fireroad_utils.py
zhang-lucy/coursehose
21cbda0e7cc12a9d201585dbdd53d2eeacfade96
[ "MIT" ]
1
2020-09-20T17:29:24.000Z
2020-09-20T17:29:24.000Z
fireroadApi/fireroad_utils.py
zhang-lucy/coursehose
21cbda0e7cc12a9d201585dbdd53d2eeacfade96
[ "MIT" ]
null
null
null
fireroadApi/fireroad_utils.py
zhang-lucy/coursehose
21cbda0e7cc12a9d201585dbdd53d2eeacfade96
[ "MIT" ]
null
null
null
import requests import json import re def get_course_requirements(course_id): link = "http://fireroad.mit.edu/requirements/get_json/" + course_id r = requests.get(link) j = r.json()["reqs"] return j def get_all_course_requirements(): major_reqs = {} major_id_link = "https://fireroad.mit.edu/requirements/list_...
28.966667
100
0.733026
259
1,738
4.606178
0.243243
0.052808
0.04694
0.065381
0.222129
0.154233
0.154233
0.154233
0.154233
0.154233
0
0.002609
0.117952
1,738
59
101
29.457627
0.775603
0.150748
0
0.097561
0
0
0.185841
0.015657
0
0
0
0
0
1
0.146341
false
0
0.073171
0
0.365854
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
476df3fbd08fe0e200196618406d29ff175f3d41
4,423
py
Python
examples/compare_transactions_speed_with_hive.py
TheCrazyGM/bhive
1494e90a99123ecfc5efbd927258f9ba59443e2e
[ "MIT" ]
2
2020-03-21T23:50:22.000Z
2020-03-25T19:10:48.000Z
examples/compare_transactions_speed_with_hive.py
TheCrazyGM/bhive
1494e90a99123ecfc5efbd927258f9ba59443e2e
[ "MIT" ]
null
null
null
examples/compare_transactions_speed_with_hive.py
TheCrazyGM/bhive
1494e90a99123ecfc5efbd927258f9ba59443e2e
[ "MIT" ]
1
2020-03-21T23:50:25.000Z
2020-03-21T23:50:25.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from builtins import bytes from builtins import chr from builtins import range from builtins import super import random from pprint import pprint from binascii import hexl...
34.286822
101
0.628759
536
4,423
5.011194
0.240672
0.035741
0.035741
0.022338
0.393894
0.388682
0.328369
0.328369
0.302308
0.302308
0
0.042125
0.259326
4,423
128
102
34.554688
0.777778
0
0
0.371681
0
0
0.099254
0.031201
0
0
0
0
0
1
0.035398
false
0
0.247788
0
0.318584
0.088496
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
476f15ab6f480fa347487aaf78b33358b554c7b0
2,509
py
Python
src/main/python/widgets/dialogs/rename_user_dialog.py
ivov/admin-stock
e2e1d53436878b6db68dcb85d0cca31223066ffb
[ "MIT" ]
8
2019-11-02T22:32:30.000Z
2021-08-16T08:29:39.000Z
src/main/python/widgets/dialogs/rename_user_dialog.py
ivov/admin-stock
e2e1d53436878b6db68dcb85d0cca31223066ffb
[ "MIT" ]
null
null
null
src/main/python/widgets/dialogs/rename_user_dialog.py
ivov/admin-stock
e2e1d53436878b6db68dcb85d0cca31223066ffb
[ "MIT" ]
3
2019-12-10T16:23:49.000Z
2021-11-01T20:22:16.000Z
from PyQt5 import QtWidgets, QtCore from utils.styling import rename_user_dialog_title_style class RenameUserDialog(QtWidgets.QDialog): def __init__(self, parent=None): super(RenameUserDialog, self).__init__(parent) self.setWindowFlags( QtCore.Qt.Dialog | QtCore.Qt.Customiz...
35.842857
77
0.687923
274
2,509
6.062044
0.339416
0.057797
0.062613
0.043347
0.17339
0.049368
0.049368
0.049368
0
0
0
0.004536
0.209247
2,509
69
78
36.362319
0.831653
0
0
0.037736
0
0
0.037465
0
0
0
0
0
0
1
0.056604
false
0
0.037736
0
0.113208
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4771eb8f2f256c1d66ba7f41f070c11396af58fb
6,053
py
Python
bluetooth-audio/btspeaker.py
b23prodtm/balena-sound
1ee886241485a302f88176c7dd880e986cf768c3
[ "Apache-2.0" ]
null
null
null
bluetooth-audio/btspeaker.py
b23prodtm/balena-sound
1ee886241485a302f88176c7dd880e986cf768c3
[ "Apache-2.0" ]
3
2019-11-20T17:49:37.000Z
2020-06-01T23:09:10.000Z
bluetooth-audio/btspeaker.py
b23prodtm/balena-sound
1ee886241485a302f88176c7dd880e986cf768c3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import bluetooth, sys, os, re, subprocess, time, getopt BT_BLE = int(os.getenv('BT_BLE', 0)) BT_SCAN_TIMEOUT = int(os.getenv('BT_SCAN_TIMEOUT', 2)) if BT_BLE: from gattlib import DiscoveryService from ble_client import BleClient def parse_argv (myenv, argv): usage = 'Command line args: ...
38.801282
123
0.544358
714
6,053
4.512605
0.240896
0.018622
0.022346
0.022346
0.216325
0.160459
0.15239
0.116698
0.068901
0.068901
0
0.014925
0.280522
6,053
155
124
39.051613
0.724914
0.075004
0
0.244444
0
0.007407
0.219002
0.010199
0
0
0
0
0
1
0.044444
false
0
0.022222
0
0.111111
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
477431852e85302c53a80c1bc87e296848214e08
267
py
Python
scripts/turnOnOffGPIO.py
yomboprime/RaspiGarage
c6bd7b92066ec087cc0d59afe6664e8ae5cb46ed
[ "MIT" ]
null
null
null
scripts/turnOnOffGPIO.py
yomboprime/RaspiGarage
c6bd7b92066ec087cc0d59afe6664e8ae5cb46ed
[ "MIT" ]
null
null
null
scripts/turnOnOffGPIO.py
yomboprime/RaspiGarage
c6bd7b92066ec087cc0d59afe6664e8ae5cb46ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if not os.getegid() == 0: sys.exit( 'Script must be run as root' ) from pyA20.gpio import gpio from pyA20.gpio import port pin = port.PA12 gpio.init() gpio.setcfg(pin, gpio.OUTPUT) gpio.output(pin, int(sys.argv[1]))
16.6875
44
0.700375
48
267
3.895833
0.625
0.096257
0.139037
0.203209
0
0
0
0
0
0
0
0.035714
0.161049
267
16
45
16.6875
0.799107
0.074906
0
0
0
0
0.105263
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
4774eea99e7f6cd1515737dfa6e6653b0d95171b
4,369
py
Python
bedpe_longrange/bedpe2longrange.py
ChenfuShi/tools_for_HiChIP
0faa8b26a7c53922dd2de977d7df442dd2caeed7
[ "BSD-3-Clause" ]
5
2019-05-09T19:31:26.000Z
2021-12-06T02:57:48.000Z
bedpe_longrange/bedpe2longrange.py
ChenfuShi/tools_for_HiChIP
0faa8b26a7c53922dd2de977d7df442dd2caeed7
[ "BSD-3-Clause" ]
null
null
null
bedpe_longrange/bedpe2longrange.py
ChenfuShi/tools_for_HiChIP
0faa8b26a7c53922dd2de977d7df442dd2caeed7
[ "BSD-3-Clause" ]
4
2019-06-01T11:30:41.000Z
2022-03-11T02:01:52.000Z
######################################### # Author: Chenfu Shi # Email: chenfu.shi@postgrad.manchester.ac.uk # BSD-3-Clause License # Copyright 2019 Chenfu Shi # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions ...
48.010989
757
0.676127
612
4,369
4.802288
0.428105
0.005444
0.006125
0.005444
0.105478
0.089146
0.089146
0.089146
0.089146
0.046274
0
0.017084
0.196155
4,369
91
758
48.010989
0.819761
0.44152
0
0.081633
0
0
0.207088
0.028181
0
0
0
0
0
1
0
false
0
0.081633
0
0.081633
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4775e3e337b36b06c6774e19748eb643d6196b5f
11,501
py
Python
0_get_Fink_features_xmatch.py
anaismoller/KNTrap
9e1bc85576ab16c4cb6d4d4da74482061029d207
[ "Apache-2.0" ]
null
null
null
0_get_Fink_features_xmatch.py
anaismoller/KNTrap
9e1bc85576ab16c4cb6d4d4da74482061029d207
[ "Apache-2.0" ]
null
null
null
0_get_Fink_features_xmatch.py
anaismoller/KNTrap
9e1bc85576ab16c4cb6d4d4da74482061029d207
[ "Apache-2.0" ]
null
null
null
# Year 2022 # Authors: Anais Möller based on fink-broker.org code import os import sys import glob import logging import argparse import numpy as np import pandas as pd from tqdm import tqdm from pathlib import Path from functools import partial from astropy.table import Table from astropy import units as u from astro...
31.423497
87
0.578558
1,484
11,501
4.237197
0.237871
0.021469
0.010178
0.013359
0.145515
0.072042
0.056139
0.056139
0.056139
0.056139
0
0.010797
0.299365
11,501
365
88
31.509589
0.769546
0.078863
0
0.221843
0
0
0.165118
0.026434
0
0
0
0
0
1
0.013652
false
0
0.061433
0
0.09215
0.023891
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4777fbaa35309f630f4ae07e90c983a041f15298
1,990
py
Python
2017/day11/src/main.py
stenbein/AdventOfCode
3e8c24f7140dd9cdc687e176272af6a1302a9ca5
[ "MIT" ]
3
2018-04-08T10:40:52.000Z
2018-12-06T02:37:23.000Z
2017/day11/main.py
stenbein/AdventOfCode
3e8c24f7140dd9cdc687e176272af6a1302a9ca5
[ "MIT" ]
2
2018-04-10T11:44:18.000Z
2022-02-22T21:25:54.000Z
2017/day11/src/main.py
stenbein/AdventOfCode
3e8c24f7140dd9cdc687e176272af6a1302a9ca5
[ "MIT" ]
null
null
null
#!/usr/bin/python3 '''Day 11 of the 2017 advent of code''' class HexCounter(): '''A hex maze walker object for keeping track of our position''' def __init__(self): self.x = 0 self.y = 0 self.z = 0 self.furthest = 0 def move(self, direction): ...
20.515464
65
0.477387
241
1,990
3.875519
0.369295
0.03212
0.074946
0.029979
0.335118
0.335118
0.24197
0.24197
0.134904
0.134904
0
0.021812
0.401005
1,990
96
66
20.729167
0.761745
0.153769
0
0.327273
0
0
0.042526
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.163636
0.036364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
477aed8ccac48ab95361c65ae3e38de923016db9
8,291
py
Python
kai_reduce.py
skterry/jackknifeKAI
8c85b32acd9166d87e7f5dc78943f2ad38f19809
[ "MIT" ]
null
null
null
kai_reduce.py
skterry/jackknifeKAI
8c85b32acd9166d87e7f5dc78943f2ad38f19809
[ "MIT" ]
null
null
null
kai_reduce.py
skterry/jackknifeKAI
8c85b32acd9166d87e7f5dc78943f2ad38f19809
[ "MIT" ]
null
null
null
# Copied from /u/jlu/data/microlens/20aug22os/reduce/reduce.py ################################################## # # General Notes: # -- python uses spaces to figure out the beginnings # and ends of functions/loops/etc. So make sure # to preserve spacings properly (indent). This # is easy to do if you use em...
34.119342
130
0.621517
1,143
8,291
4.396325
0.270341
0.033433
0.027065
0.047363
0.459701
0.425473
0.369751
0.349254
0.314428
0.282985
0
0.070951
0.206127
8,291
242
131
34.260331
0.692495
0.590761
0
0.04
0
0
0.093664
0.01889
0
0
0
0
0
0
null
null
0
0.22
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
477d41ca1c89e9e563388b140b23288438ed0562
7,613
py
Python
Clients/pyClient/GUI.py
JulianWww/AlphaZero
8eb754659793305eba7b9e636eeab37d9ccd45f7
[ "MIT" ]
1
2021-12-05T13:26:17.000Z
2021-12-05T13:26:17.000Z
Clients/pyClient/GUI.py
JulianWww/AlphaZero
8eb754659793305eba7b9e636eeab37d9ccd45f7
[ "MIT" ]
null
null
null
Clients/pyClient/GUI.py
JulianWww/AlphaZero
8eb754659793305eba7b9e636eeab37d9ccd45f7
[ "MIT" ]
null
null
null
import tkinter as tk from PIL import Image, ImageTk from game import Game from threading import Thread import time from gameSaver import sendFull from Client import DummyAgent class ConsoleAgent: """Agent running in the console for testing only""" def render(self, state): "render the state to the conso...
31.853556
104
0.523053
899
7,613
4.34594
0.252503
0.040952
0.036857
0.019196
0.204761
0.176094
0.141797
0.112618
0.081136
0.081136
0
0.029108
0.36372
7,613
238
105
31.987395
0.777457
0.092736
0
0.13587
0
0
0.087238
0
0
0
0
0
0
1
0.086957
false
0.005435
0.038043
0
0.211957
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
477f20974aea53dd1ab2a88bb5960250f6eba452
1,007
py
Python
Leetcoding-Actions/Explore-Monthly-Challenges/2020-12/07-spiralMatrix-ii.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
1
2020-11-14T18:28:13.000Z
2020-11-14T18:28:13.000Z
Leetcoding-Actions/Explore-Monthly-Challenges/2020-12/07-spiralMatrix-ii.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
Leetcoding-Actions/Explore-Monthly-Challenges/2020-12/07-spiralMatrix-ii.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
class Solution: def generateMatrix(self, n: int) -> List[List[int]]: matrix = [[None] * n for _ in range(n)] startRow, endRow = 0, n - 1 startCol, endCol = 0, n - 1 count = 1 while startRow <= endRow and startCol <= endCol: for col ...
32.483871
59
0.440914
105
1,007
4.219048
0.238095
0.079007
0.099323
0.094808
0.121896
0.121896
0.121896
0.121896
0
0
0
0.038745
0.461768
1,007
30
60
33.566667
0.778598
0
0
0.181818
1
0
0
0
0
0
0
0
0
1
0.045455
false
0
0
0
0.136364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
47809d65f9b6492472bef06377ad2f44a10c127c
1,742
py
Python
motto/core.py
attakei/jamproject
f3a677f4f95c112b89fb38957e6ba1a3c923ea85
[ "Apache-2.0" ]
null
null
null
motto/core.py
attakei/jamproject
f3a677f4f95c112b89fb38957e6ba1a3c923ea85
[ "Apache-2.0" ]
1
2020-01-05T14:04:35.000Z
2020-01-05T14:04:35.000Z
motto/core.py
attakei/motto
f3a677f4f95c112b89fb38957e6ba1a3c923ea85
[ "Apache-2.0" ]
null
null
null
"""Core classes for motto """ from typing import Any, Callable, ClassVar, Dict, List, Optional, Tuple, Union from typing_extensions import Protocol, TypedDict class Message(object): """Reporting message class. This object is appended for paragraphes by skills. Responsibility is only telling event "what" ...
22.050633
78
0.588978
204
1,742
4.838235
0.372549
0.042553
0.033435
0.024316
0.12766
0.101317
0.101317
0.048632
0
0
0
0.0048
0.282434
1,742
78
79
22.333333
0.7848
0.161883
0
0.2
0
0
0.050969
0
0
0
0
0
0
1
0.225
false
0
0.05
0.075
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
4780e099e5c87546b20f86a673d8da78571df7e4
361
py
Python
tests/test_bad_seeds.py
jklynch/diffrascape
350bed352fa6c9b30739e3748b7ea57b365f1944
[ "BSD-3-Clause" ]
null
null
null
tests/test_bad_seeds.py
jklynch/diffrascape
350bed352fa6c9b30739e3748b7ea57b365f1944
[ "BSD-3-Clause" ]
null
null
null
tests/test_bad_seeds.py
jklynch/diffrascape
350bed352fa6c9b30739e3748b7ea57b365f1944
[ "BSD-3-Clause" ]
null
null
null
from diffrascape.env import BadSeeds def test_construct(): bad_seeds = BadSeeds() bad_seeds_states = bad_seeds.states() print(f"### states: {bad_seeds_states}") assert bad_seeds_states["shape"][0] == 6 bad_seeds_actions = bad_seeds.actions() print(f"### actions: {bad_seeds_actions}") ass...
25.785714
47
0.695291
49
361
4.77551
0.428571
0.307692
0.239316
0.17094
0
0
0
0
0
0
0
0.01
0.168975
361
13
48
27.769231
0.77
0
0
0
0
0
0.213296
0
0
0
0
0
0.222222
1
0.111111
false
0
0.111111
0
0.222222
0.222222
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
47846ea157171c9a8c93b748212ec54fd187b2e7
1,418
py
Python
samples/bot-handoff-es6/emulate-users.py
microsoftly/botbuilder-js
538cb479b8596cdc209f5d70aa1a9000a0e6b360
[ "MIT" ]
1
2021-03-16T05:14:30.000Z
2021-03-16T05:14:30.000Z
samples/bot-handoff-es6/emulate-users.py
microsoftly/botbuilder-js
538cb479b8596cdc209f5d70aa1a9000a0e6b360
[ "MIT" ]
1
2018-03-26T05:25:54.000Z
2018-03-26T05:26:18.000Z
samples/bot-handoff-es6/emulate-users.py
microsoftly/botbuilder-js
538cb479b8596cdc209f5d70aa1a9000a0e6b360
[ "MIT" ]
1
2018-03-26T04:16:42.000Z
2018-03-26T04:16:42.000Z
#!/usr/bin/python import json, subprocess, sys, platform from os.path import expanduser if len (sys.argv) < 2 : print("Usage: python " + sys.argv[0] + " username(s)") sys.exit (1) HOME=expanduser("~") # determine paths SYSTEM=platform.system() if SYSTEM == 'Darwin': SERVERJSON=HOME+'/Library/Application ...
33.761905
106
0.673484
176
1,418
5.420455
0.494318
0.125786
0.016771
0.083857
0.209644
0.209644
0.138365
0.138365
0
0
0
0.005085
0.167842
1,418
42
107
33.761905
0.80339
0.100141
0
0.206897
0
0
0.314961
0.179528
0
0
0
0
0
1
0
false
0
0.068966
0
0.068966
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4784a44a26bc244fa67aa7f304ae6b3a0ac78c99
7,141
py
Python
originstamp_client/models/timestamp_response.py
OriginStampTimestamping/originstamp-python-client
a13c3d51eac6dd3a920b7b74e079531fe7ab17a2
[ "MIT" ]
9
2018-11-06T06:43:46.000Z
2020-09-26T03:29:41.000Z
originstamp_client/models/timestamp_response.py
OriginStampTimestamping/originstamp-python-client
a13c3d51eac6dd3a920b7b74e079531fe7ab17a2
[ "MIT" ]
1
2019-05-06T10:49:23.000Z
2019-05-13T09:30:01.000Z
originstamp_client/models/timestamp_response.py
OriginStampTimestamping/originstamp-python-client
a13c3d51eac6dd3a920b7b74e079531fe7ab17a2
[ "MIT" ]
1
2020-10-02T17:31:47.000Z
2020-10-02T17:31:47.000Z
# coding: utf-8 """ OriginStamp Client OpenAPI spec version: 3.0 OriginStamp Documentation: https://docs.originstamp.com Contact: mail@originstamp.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class TimestampResponse(...
31.183406
214
0.604537
846
7,141
4.990544
0.178487
0.051161
0.108953
0.095926
0.479157
0.412838
0.393415
0.314306
0.208432
0.18522
0
0.020677
0.3092
7,141
228
215
31.320175
0.835192
0.42473
0
0.071429
1
0
0.057261
0
0
0
0
0
0
1
0.163265
false
0
0.030612
0
0.336735
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4785a94446b7de09fa814de98568043480d82523
68,531
py
Python
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/backup_results_unknownr/EightThreads_sjeng/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/backup_results_unknownr/EightThreads_sjeng/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/backup_results_unknownr/EightThreads_sjeng/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate...
74.979212
124
0.681721
8,082
68,531
5.774684
0.064712
0.12376
0.113132
0.093591
0.942834
0.934949
0.921536
0.896231
0.868698
0.849928
0
0.130674
0.224584
68,531
914
125
74.979212
0.747591
0
0
0.664114
0
0
0.65816
0.048153
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
4785cd8056f1f3e45758e79a377162fd96261ea3
6,450
py
Python
folder_tree/migrations/0001_initial.py
JoenyBui/django-folder-tree
a742f3d69ad01f5403ce43578240a6cc54fa6956
[ "BSD-3-Clause" ]
null
null
null
folder_tree/migrations/0001_initial.py
JoenyBui/django-folder-tree
a742f3d69ad01f5403ce43578240a6cc54fa6956
[ "BSD-3-Clause" ]
null
null
null
folder_tree/migrations/0001_initial.py
JoenyBui/django-folder-tree
a742f3d69ad01f5403ce43578240a6cc54fa6956
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-13 22:10 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import folder_tree.models import mptt.fields class Migration(migrations.Migration): initial ...
47.426471
332
0.582171
658
6,450
5.553191
0.214286
0.028462
0.045977
0.07225
0.749589
0.741379
0.697865
0.643131
0.6185
0.585112
0
0.013768
0.268062
6,450
135
333
47.777778
0.76022
0.010543
0
0.629921
1
0
0.110989
0.028688
0
0
0
0
0
1
0
false
0
0.047244
0
0.07874
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
47867c6666c70dddf7e4d9d1220c5f5b48b81ac1
428
py
Python
groupdocs_viewer_cloud/apis/__init__.py
groupdocs-viewer-cloud/groupdocs-viewer-cloud-python
e734944b0b84c91804aa29e4ad5619c1a7334188
[ "MIT" ]
1
2020-06-07T12:39:44.000Z
2020-06-07T12:39:44.000Z
groupdocs_viewer_cloud/apis/__init__.py
groupdocs-viewer-cloud/groupdocs-viewer-cloud-python
e734944b0b84c91804aa29e4ad5619c1a7334188
[ "MIT" ]
1
2021-03-24T01:53:23.000Z
2021-03-26T08:20:31.000Z
groupdocs_viewer_cloud/apis/__init__.py
groupdocs-viewer-cloud/groupdocs-viewer-cloud-python
e734944b0b84c91804aa29e4ad5619c1a7334188
[ "MIT" ]
null
null
null
from __future__ import absolute_import # flake8: noqa # import apis from groupdocs_viewer_cloud.apis.file_api import FileApi from groupdocs_viewer_cloud.apis.folder_api import FolderApi from groupdocs_viewer_cloud.apis.info_api import InfoApi from groupdocs_viewer_cloud.apis.license_api import LicenseApi from groupdo...
35.666667
62
0.880841
63
428
5.619048
0.365079
0.220339
0.322034
0.40678
0.474576
0
0
0
0
0
0
0.002551
0.084112
428
11
63
38.909091
0.90051
0.056075
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
4786a66a40aa4e0d9cb192b3447ac559f77b749b
481
py
Python
models/model.py
BaoLocPham/hum2song
706b7fdf838944e2aabe0ae331c0867cb67f6fbc
[ "MIT" ]
null
null
null
models/model.py
BaoLocPham/hum2song
706b7fdf838944e2aabe0ae331c0867cb67f6fbc
[ "MIT" ]
null
null
null
models/model.py
BaoLocPham/hum2song
706b7fdf838944e2aabe0ae331c0867cb67f6fbc
[ "MIT" ]
null
null
null
from models.wrap_mobilenet import * from models.wrap_resnet import * from models.wrap_vgg import * from models.wrap_alexnet import * def get_model(config="resnet"): if "resnet" in config.backbone: model = get_resnet(config=config) elif "mobilenet" in config.backbone: model = get_mobilenet(confi...
32.066667
41
0.702703
64
481
5.140625
0.265625
0.121581
0.170213
0.255319
0.291793
0
0
0
0
0
0
0
0.2079
481
15
42
32.066667
0.863517
0
0
0
0
0
0.064315
0
0
0
0
0
0
1
0.071429
false
0
0.285714
0
0.428571
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4786b42fdf67185bb43692e8ca877d2f9dba7530
4,571
py
Python
models/segnet.py
AntixK/Neural-Blocks
018a44bbb703fc848234b95a3e604576bd9df88f
[ "MIT" ]
3
2019-07-23T12:35:50.000Z
2021-02-23T04:20:31.000Z
models/segnet.py
AntixK/Neural-Blocks
018a44bbb703fc848234b95a3e604576bd9df88f
[ "MIT" ]
null
null
null
models/segnet.py
AntixK/Neural-Blocks
018a44bbb703fc848234b95a3e604576bd9df88f
[ "MIT" ]
1
2019-07-21T06:07:12.000Z
2019-07-21T06:07:12.000Z
import torch import torch.nn as nn from NeuralBlocks.blocks.convnormrelu import ConvNormRelu class segnetDown(nn.Module): def __init__(self, in_channels, out_channels, norm=None, num_conv = 2): super(segnetDown, self).__init__() module = [] if num_conv < 2: raise ValueError("Se...
34.628788
93
0.584992
595
4,571
4.317647
0.206723
0.038147
0.024912
0.040872
0.393149
0.383418
0.354223
0.324251
0.293889
0.231997
0
0.022173
0.309342
4,571
131
94
34.89313
0.791574
0.046598
0
0.283951
0
0
0.041589
0
0
0
0
0
0
1
0.074074
false
0
0.037037
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
4788b5896e827da02e7c6002f5c921308b7b3159
15,484
py
Python
Contents/Resources/parse_log.py
nathangrigg/Latex.bbpackage
f53b33c6c7c90cd9aaf1da61591cf35e5aa722b3
[ "BSD-3-Clause" ]
8
2015-10-21T02:03:28.000Z
2020-12-27T04:04:46.000Z
Contents/Resources/parse_log.py
nathangrigg/Latex.bbpackage
f53b33c6c7c90cd9aaf1da61591cf35e5aa722b3
[ "BSD-3-Clause" ]
null
null
null
Contents/Resources/parse_log.py
nathangrigg/Latex.bbpackage
f53b33c6c7c90cd9aaf1da61591cf35e5aa722b3
[ "BSD-3-Clause" ]
5
2015-01-15T14:01:30.000Z
2021-09-05T20:22:09.000Z
#!/usr/bin/python # This script derived from a piece of the rubber project # http://launchpad.net/rubber # (c) Emmanuel Beffara, 2002--2006 # # Modified by Nathan Grigg, January 2012 import re import string import sys import getopt #---- Log parser ----{{{1 re_loghead = re.compile("This is [0-9a-zA-Z-]*") re_reru...
33.227468
96
0.452855
1,682
15,484
4.129608
0.212247
0.01814
0.00907
0.013821
0.093147
0.064498
0.031673
0.025626
0.019868
0.011229
0
0.014318
0.436192
15,484
465
97
33.298925
0.781329
0.084216
0
0.363636
0
0.006061
0.115597
0.010782
0
0
0
0
0
0
null
null
0
0.012121
null
null
0.006061
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
478b01eea05155c0e098a1b65909d95f41833301
5,665
py
Python
barbican-8.0.0/barbican/objects/container_consumer_meta.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
177
2015-01-02T09:35:53.000Z
2022-02-26T01:43:55.000Z
barbican/objects/container_consumer_meta.py
kkutysllb/barbican
7b14d983e0dce6dcffe9781b05c52335b8203fc7
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
barbican/objects/container_consumer_meta.py
kkutysllb/barbican
7b14d983e0dce6dcffe9781b05c52335b8203fc7
[ "Apache-2.0" ]
87
2015-01-13T17:33:40.000Z
2021-11-09T05:30:36.000Z
# Copyright 2018 Fujitsu. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
44.960317
79
0.642012
647
5,665
5.454405
0.267388
0.056107
0.039671
0.032871
0.548031
0.540096
0.456787
0.456787
0.456787
0.456787
0
0.001997
0.292851
5,665
125
80
45.32
0.878932
0.270079
0
0.435897
0
0
0.044433
0
0
0
0
0
0
1
0.051282
false
0
0.102564
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
478b0e311b234d21a0af4f46a1bbc9e444318807
527
py
Python
Lab02_ifelse_and_loops/exercise-17.py
rodrigoc-silva/Python-course
327b20738a4b383510faddc0ec26a54be1bbd717
[ "MIT" ]
null
null
null
Lab02_ifelse_and_loops/exercise-17.py
rodrigoc-silva/Python-course
327b20738a4b383510faddc0ec26a54be1bbd717
[ "MIT" ]
null
null
null
Lab02_ifelse_and_loops/exercise-17.py
rodrigoc-silva/Python-course
327b20738a4b383510faddc0ec26a54be1bbd717
[ "MIT" ]
null
null
null
#This program converts KPH to MPH. #constant CONVERT_FACTOR = 0.6214 #head output print("KPH \t MPH") print("_" * 20) #loop for kph_speed in range (60, 131, 10): #calculation mph_speed = kph_speed * CONVERT_FACTOR #output print(kph_speed, '\t', format(mph_speed, '.1f')) input("\nPress any key to ...
15.5
52
0.588235
83
527
3.39759
0.674699
0.085106
0.099291
0.085106
0
0
0
0
0
0
0
0.160428
0.290323
527
34
53
15.5
0.593583
0.470588
0
0
0
0
0.149425
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
478d445e00859e47118663015c1dca1d382e8e84
3,841
py
Python
tests/sentry/api/endpoints/test_project_rules_configuration.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/test_project_rules_configuration.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/test_project_rules_configuration.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from django.core.urlresolvers import reverse from mock import Mock, patch from sentry.rules.registry import RuleRegistry from sentry.testutils import APITestCase class ProjectRuleConfigurationTest(APITestCase): def setUp(self): self.project.flags.has_issue_alerts_t...
36.235849
100
0.640198
450
3,841
5.228889
0.237778
0.037399
0.035699
0.047599
0.674033
0.621334
0.533787
0.483638
0.402465
0.402465
0
0.00766
0.252278
3,841
105
101
36.580952
0.81163
0
0
0.460674
0
0
0.143713
0.099974
0
0
0
0
0.067416
1
0.101124
false
0
0.05618
0
0.179775
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
478df9b66c40c191cbb8cf8a0885ef1863ea295a
3,297
py
Python
train-script.py
praepunctis/chordtext
b58ea6fea7bf417e6e18daad6c4ce6ea878bd27b
[ "MIT" ]
1
2020-12-02T10:04:08.000Z
2020-12-02T10:04:08.000Z
train-script.py
praepunctis/chordtext
b58ea6fea7bf417e6e18daad6c4ce6ea878bd27b
[ "MIT" ]
null
null
null
train-script.py
praepunctis/chordtext
b58ea6fea7bf417e6e18daad6c4ce6ea878bd27b
[ "MIT" ]
null
null
null
# train-script.py # Grab data from movie_data.csv and train a ML model. # Kelly Fesler (c) Nov 2020 # Modified from Soumya Gupta (c) Jan 2020 # STEP 1: import ------------------------------------------- # Import libraries import urllib.request import os import pandas as pd import numpy as np import nltk import sklear...
28.422414
73
0.668487
434
3,297
4.997696
0.380184
0.016598
0.018442
0.013831
0.077916
0.03965
0
0
0
0
0
0.01915
0.128905
3,297
115
74
28.669565
0.736072
0.330604
0
0.066667
0
0
0.20514
0
0
0
0
0
0
1
0.016667
false
0
0.2
0
0.233333
0.35
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
478eeb89ce278e9a0867db0565808bfedbcc11dc
10,947
py
Python
roerich/algorithms.py
HSE-LAMBDA/roerich
17e178292593d1ea6a821b99705620ba066abd2a
[ "BSD-2-Clause" ]
10
2020-12-01T13:58:27.000Z
2022-01-17T12:01:31.000Z
roerich/algorithms.py
HSE-LAMBDA/roerich
17e178292593d1ea6a821b99705620ba066abd2a
[ "BSD-2-Clause" ]
3
2021-03-07T14:06:22.000Z
2022-01-18T14:23:16.000Z
roerich/algorithms.py
HSE-LAMBDA/roerich
17e178292593d1ea6a821b99705620ba066abd2a
[ "BSD-2-Clause" ]
2
2020-12-01T14:04:36.000Z
2022-03-24T12:52:32.000Z
from abc import ABCMeta, abstractmethod from collections import defaultdict from copy import deepcopy from typing import Union, Type, Any, Tuple import numpy as np import torch import torch.nn as nn from scipy.signal import find_peaks_cwt from .net import MyNN, MyNNRegressor from .utils import autoregression_matrix, ...
34.863057
128
0.567279
1,373
10,947
4.366351
0.185725
0.015847
0.031693
0.016347
0.258215
0.223019
0.18382
0.159299
0.097748
0.097748
0
0.010418
0.324838
10,947
313
129
34.974441
0.800704
0.237234
0
0.121951
0
0
0.011289
0
0
0
0
0.003195
0
1
0.085366
false
0.012195
0.079268
0
0.22561
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
479004b6cfb780abc09aa80bc0894ff64e48376b
182
py
Python
extra_tests/snippets/stdlib_types.py
mainsail-org/RustPython
5d2d87c24f1ff7201fcc8d4fcffadb0ec12dc127
[ "CC-BY-4.0", "MIT" ]
11,058
2018-05-29T07:40:06.000Z
2022-03-31T11:38:42.000Z
extra_tests/snippets/stdlib_types.py
mainsail-org/RustPython
5d2d87c24f1ff7201fcc8d4fcffadb0ec12dc127
[ "CC-BY-4.0", "MIT" ]
2,105
2018-06-01T10:07:16.000Z
2022-03-31T14:56:42.000Z
extra_tests/snippets/stdlib_types.py
mainsail-org/RustPython
5d2d87c24f1ff7201fcc8d4fcffadb0ec12dc127
[ "CC-BY-4.0", "MIT" ]
914
2018-07-27T09:36:14.000Z
2022-03-31T19:56:34.000Z
import types from testutils import assert_raises ns = types.SimpleNamespace(a=2, b='Rust') assert ns.a == 2 assert ns.b == "Rust" with assert_raises(AttributeError): _ = ns.c
16.545455
41
0.714286
28
182
4.535714
0.535714
0.188976
0
0
0
0
0
0
0
0
0
0.013158
0.164835
182
10
42
18.2
0.822368
0
0
0
0
0
0.043956
0
0
0
0
0
0.571429
1
0
false
0
0.285714
0
0.285714
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
2
4790692759f37d6994f35811b0b4dd07154a5efb
1,664
py
Python
1018.py
idarlenearaujo/URI_Python
c4517f90f5310894347edcf58a28d3e569a89a2b
[ "MIT" ]
null
null
null
1018.py
idarlenearaujo/URI_Python
c4517f90f5310894347edcf58a28d3e569a89a2b
[ "MIT" ]
null
null
null
1018.py
idarlenearaujo/URI_Python
c4517f90f5310894347edcf58a28d3e569a89a2b
[ "MIT" ]
null
null
null
# entrada value = int(input()) # variaveis cashier = True valueI = value n1 = 0 n2 = 0 n5 = 0 n10 = 0 n20 = 0 n50 = 0 n100 = 0 # laço quando cashier == False sai while cashier == True: # condicionais if value >= 100: valueA = value // 100 n100 = valueA valueB = ...
20.292683
183
0.485577
204
1,664
3.960784
0.215686
0.095297
0.155941
0.242574
0.413366
0.402228
0
0
0
0
0
0.107614
0.408053
1,664
82
184
20.292683
0.71269
0.103966
0
0.137255
0
0.019608
0.120172
0
0
0
0
0
0
1
0
false
0
0
0
0
0.019608
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4790afe07c99445354df0a84235383f75387a69b
2,164
py
Python
selene/common/delegation.py
KalinkinaMaria/selene
859e1102c85740b52af8d0f08dd6b6490b4bd2ff
[ "MIT" ]
null
null
null
selene/common/delegation.py
KalinkinaMaria/selene
859e1102c85740b52af8d0f08dd6b6490b4bd2ff
[ "MIT" ]
1
2021-06-02T04:21:17.000Z
2021-06-02T04:21:17.000Z
selene/common/delegation.py
vkarpenko/selene
4776357430c940be38f38be9981006dd156f9730
[ "MIT" ]
null
null
null
from abc import ABCMeta def _make_delegator_method(name): def delegator(self, *args, **kwargs): return getattr(self.__delegate__, name)(*args, **kwargs) # pragma: no cover # todo: consider using __call__() instead of __delegate__ # in Python delegates are objects with __call__ method.. ...
34.903226
119
0.657116
259
2,164
5.150579
0.320463
0.058471
0.056972
0.051724
0.431034
0.330585
0.261619
0.207646
0.207646
0.207646
0
0
0.257856
2,164
61
120
35.47541
0.830635
0.351201
0
0.153846
0
0
0
0
0
0
0
0.016393
0
1
0.192308
false
0
0.038462
0.115385
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
1
0
0
0
2
47928a4b5a14d921593fc3e938a7ef189730aea5
186
py
Python
src/pymystem_example1.py
componavt/neural_synset
b58f03af90af6fe2ffe8253a1222c99c2b8907df
[ "Unlicense" ]
null
null
null
src/pymystem_example1.py
componavt/neural_synset
b58f03af90af6fe2ffe8253a1222c99c2b8907df
[ "Unlicense" ]
null
null
null
src/pymystem_example1.py
componavt/neural_synset
b58f03af90af6fe2ffe8253a1222c99c2b8907df
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from pymystem3 import Mystem # text = "some good newses" text = "Красивая мама красиво мыла раму" m = Mystem() lemmas = m.lemmatize(text) print(''.join(lemmas))
20.666667
40
0.677419
26
186
4.846154
0.807692
0
0
0
0
0
0
0
0
0
0
0.012821
0.16129
186
8
41
23.25
0.794872
0.252688
0
0
0
0
0.227941
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4793cb0e3e72768ba54484744717ebd0208905a2
795
py
Python
backend/appengine/routes/desenhos/edit.py
faahbih/projetoolivarts
3dfd955fe44d58a38b85b6643440a600b0bde81a
[ "MIT" ]
null
null
null
backend/appengine/routes/desenhos/edit.py
faahbih/projetoolivarts
3dfd955fe44d58a38b85b6643440a600b0bde81a
[ "MIT" ]
null
null
null
backend/appengine/routes/desenhos/edit.py
faahbih/projetoolivarts
3dfd955fe44d58a38b85b6643440a600b0bde81a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from config.template_middleware import TemplateResponse from desenho.desenho_model import Desenho, DesenhoForm from gaecookie.decorator import no_csrf #from pedido.pedido_model import Pedido, PedidoForm from routes import desenhos from tek...
34.565217
63
0.783648
102
795
5.882353
0.431373
0.06
0.06
0.066667
0.073333
0
0
0
0
0
0
0.001441
0.127044
795
22
64
36.136364
0.863112
0.089308
0
0
0
0
0.065187
0.038835
0
0
0
0
0
1
0.111111
false
0
0.388889
0
0.611111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4794b8cc274b020b95e48eb002f538acf5d6b189
4,484
py
Python
data/create_train_test_split.py
chmo2019/CUB-200-with-TFOD-API
8f46f2f91085f3e35829f8c7ce0289771ebb0294
[ "MIT" ]
null
null
null
data/create_train_test_split.py
chmo2019/CUB-200-with-TFOD-API
8f46f2f91085f3e35829f8c7ce0289771ebb0294
[ "MIT" ]
null
null
null
data/create_train_test_split.py
chmo2019/CUB-200-with-TFOD-API
8f46f2f91085f3e35829f8c7ce0289771ebb0294
[ "MIT" ]
null
null
null
# import necessary libraries import csv from PIL import Image import argparse # create argument parser with PATH argument ap = argparse.ArgumentParser() ap.add_argument('-p', '--path', required=True, help='''PATH to CUB_200_2011 folder i.e. folder with CUB 200 csv files (make sure to include full path name for so ...
32.258993
94
0.594558
655
4,484
3.90687
0.181679
0.158265
0.082063
0.046893
0.422821
0.333724
0.28136
0.28136
0.240719
0.14068
0
0.022033
0.159902
4,484
139
95
32.258993
0.657287
0.118644
0
0.188679
0
0.009434
0.20772
0.047994
0
0
0
0
0
1
0.009434
false
0
0.028302
0
0.037736
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4795e4597ca4cff70deec87c952fb0febb0256f0
3,487
py
Python
homework/1-AE/losses.py
Penchekrak/DeepGenerativeModels
7ee829682e8ed51bc637e2c6def0b9f810f384bc
[ "MIT" ]
null
null
null
homework/1-AE/losses.py
Penchekrak/DeepGenerativeModels
7ee829682e8ed51bc637e2c6def0b9f810f384bc
[ "MIT" ]
null
null
null
homework/1-AE/losses.py
Penchekrak/DeepGenerativeModels
7ee829682e8ed51bc637e2c6def0b9f810f384bc
[ "MIT" ]
null
null
null
import torch from torch import nn class Criterion: def __call__(self, model: nn.Module, batch_x: torch.Tensor, batch_y: torch.Tensor, *args, **kwargs): pass class Image2ImageMSELoss(Criterion): def __init__(self): self.mse_loss = nn.MSELoss() def __repr__(self): return repr(sel...
32.896226
104
0.634069
486
3,487
4.263374
0.12963
0.052124
0.037162
0.046332
0.697876
0.666988
0.618726
0.59556
0.581081
0.581081
0
0.013323
0.24663
3,487
105
105
33.209524
0.775409
0
0
0.575
0
0
0.009751
0
0
0
0
0
0
1
0.2
false
0.0125
0.025
0.05
0.425
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4795fb5c060e1fe6b6b35dd753478649d709249e
160
py
Python
src/app/services/users/__init__.py
dieisabel/cypherman
06d8678b79b18aa256a79ec6967d68274f088dbc
[ "MIT" ]
null
null
null
src/app/services/users/__init__.py
dieisabel/cypherman
06d8678b79b18aa256a79ec6967d68274f088dbc
[ "MIT" ]
43
2021-12-02T21:26:01.000Z
2022-02-21T08:51:06.000Z
src/app/services/users/__init__.py
dieisabel/cypherman
06d8678b79b18aa256a79ec6967d68274f088dbc
[ "MIT" ]
null
null
null
__all__ = [ 'IUserService', 'UserService', ] from services.users.iuser_service import IUserService from services.users.user_service import UserService
20
53
0.775
17
160
6.941176
0.588235
0.20339
0.288136
0
0
0
0
0
0
0
0
0
0.14375
160
7
54
22.857143
0.861314
0
0
0
0
0
0.14375
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
47981ad00b6fbe330d40b7fd3c56d0ca049b684c
6,190
py
Python
core/domain/wipeout_service_test.py
davehenton/oppia
62a9e9ea8458632e39b8ab4cf15b0489ac1acad9
[ "Apache-2.0" ]
1
2021-01-22T03:24:52.000Z
2021-01-22T03:24:52.000Z
core/domain/wipeout_service_test.py
davehenton/oppia
62a9e9ea8458632e39b8ab4cf15b0489ac1acad9
[ "Apache-2.0" ]
null
null
null
core/domain/wipeout_service_test.py
davehenton/oppia
62a9e9ea8458632e39b8ab4cf15b0489ac1acad9
[ "Apache-2.0" ]
1
2020-06-25T21:43:01.000Z
2020-06-25T21:43:01.000Z
# Copyright 2019 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
42.108844
80
0.745073
817
6,190
5.22399
0.19339
0.06373
0.054827
0.059278
0.628866
0.585052
0.500469
0.424321
0.387535
0.347235
0
0.009646
0.179321
6,190
146
81
42.39726
0.830512
0.115994
0
0.356436
0
0
0.027171
0
0
0
0
0
0.19802
1
0.069307
false
0
0.108911
0
0.227723
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4798901a83af76dc1807e8d5ec48f5223c016346
1,109
py
Python
drf_to_s3/middleware.py
treyhunner/drf-to-s3
2384b7e277da0e795ab9e0241e829bcc4ca4dc77
[ "MIT" ]
28
2015-01-15T18:31:24.000Z
2018-11-08T07:33:42.000Z
drf_to_s3/middleware.py
treyhunner/drf-to-s3
2384b7e277da0e795ab9e0241e829bcc4ca4dc77
[ "MIT" ]
10
2020-01-01T07:26:19.000Z
2021-06-25T15:26:53.000Z
drf_to_s3/middleware.py
treyhunner/drf-to-s3
2384b7e277da0e795ab9e0241e829bcc4ca4dc77
[ "MIT" ]
7
2015-01-29T20:59:29.000Z
2017-04-24T16:05:48.000Z
class UploadPrefixMiddleware(object): ''' Sets a cookie with the upload prefix. To be agnostic about your method of user authentication, this is handled using middleware. It can't be in a signal, since the signal handler doesn't have access to the response. In most applications, the client alr...
32.617647
85
0.682597
134
1,109
5.485075
0.567164
0.081633
0.040816
0.059864
0
0
0
0
0
0
0
0.001218
0.259693
1,109
33
86
33.606061
0.894032
0.448151
0
0
0
0
0.06947
0.045704
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
479926439a3bedce30e4792e3973470d8b31f04e
14,157
py
Python
deepcomp/util/env_setup.py
CN-UPB/DeepCoMP
f9f64873184bb53b5687ae62f8ba2b84da423692
[ "MIT" ]
19
2021-03-17T12:59:48.000Z
2022-03-24T09:04:32.000Z
deepcomp/util/env_setup.py
CN-UPB/DeepCoMP
f9f64873184bb53b5687ae62f8ba2b84da423692
[ "MIT" ]
1
2021-03-08T16:27:49.000Z
2021-03-08T16:27:49.000Z
deepcomp/util/env_setup.py
CN-UPB/DeepCoMP
f9f64873184bb53b5687ae62f8ba2b84da423692
[ "MIT" ]
6
2021-01-25T19:34:18.000Z
2022-03-20T05:56:33.000Z
"""Utility module for setting up different envs""" import numpy as np import structlog from shapely.geometry import Point from ray.rllib.agents.ppo import DEFAULT_CONFIG from ray.rllib.env.multi_agent_env import MultiAgentEnv from deepcomp.util.constants import SUPPORTED_ENVS, SUPPORTED_AGENTS, SUPPORTED_SHARING, SUPP...
44.37931
128
0.67034
2,101
14,157
4.28415
0.20752
0.047995
0.025331
0.02833
0.283191
0.228752
0.200311
0.140096
0.113765
0.104211
0
0.027626
0.22526
14,157
318
129
44.518868
0.793034
0.282263
0
0.095745
0
0
0.084346
0.002109
0
0
0
0
0.031915
1
0.069149
false
0
0.074468
0
0.255319
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4799c59de86fb0c7aac927367ccd22e4581ad71b
905
py
Python
star_types/parameters.py
annalieNK/star-types
194ffa6f03db175ae8ac6fbc912bb8a45c52cbfe
[ "MIT" ]
null
null
null
star_types/parameters.py
annalieNK/star-types
194ffa6f03db175ae8ac6fbc912bb8a45c52cbfe
[ "MIT" ]
null
null
null
star_types/parameters.py
annalieNK/star-types
194ffa6f03db175ae8ac6fbc912bb8a45c52cbfe
[ "MIT" ]
null
null
null
def parameters(model_type): if model_type == 'random forest': param_grid = { 'classifier__estimator__n_estimators': [50, 100], 'classifier__estimator__max_features' :['sqrt', 'log2'], 'classifier__estimator__max_depth' : [4,6,8] } elif model_type == 'logistic...
36.2
69
0.581215
90
905
5.288889
0.5
0.359244
0.159664
0.235294
0.268908
0.147059
0.147059
0.147059
0.147059
0.147059
0
0.037736
0.297238
905
25
70
36.2
0.710692
0
0
0.173913
0
0
0.408389
0.30574
0
0
0
0
0
1
0.043478
false
0
0
0
0.086957
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
479ba82b2ef03b26d431347ee226aa3e2162ff17
221
py
Python
PYTHON/Exemplos/Aula 1/Ex004.py
B1linha/ADS---Mackenzie
0dc53418ff7580836f6a64c5370e204e8841d1a9
[ "MIT" ]
null
null
null
PYTHON/Exemplos/Aula 1/Ex004.py
B1linha/ADS---Mackenzie
0dc53418ff7580836f6a64c5370e204e8841d1a9
[ "MIT" ]
null
null
null
PYTHON/Exemplos/Aula 1/Ex004.py
B1linha/ADS---Mackenzie
0dc53418ff7580836f6a64c5370e204e8841d1a9
[ "MIT" ]
null
null
null
""" Faça um programa que receba o salário de um funcionário, calcule e mostre o novo salário, sabende-se que este sofreu um aumento de 25%""" sal = float(input('Salário:')) nsal = sal*1.25 print ('novo salário = ', nsal)
55.25
142
0.710407
37
221
4.243243
0.675676
0.140127
0
0
0
0
0
0
0
0
0
0.027174
0.167421
221
4
143
55.25
0.826087
0.606335
0
0
0
0
0.283951
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
479c044c04a29437935975e735d0a42de577c613
1,866
py
Python
Square_Lattice/obs.py
suron-003/Dynamic-Structure-Factor
908ebcd8e6db5c6bf19a3a782c3b0a4b97a35f8b
[ "MIT" ]
1
2022-01-25T16:36:28.000Z
2022-01-25T16:36:28.000Z
Square_Lattice/obs.py
suron-003/Dynamic-Structure-Factor
908ebcd8e6db5c6bf19a3a782c3b0a4b97a35f8b
[ "MIT" ]
null
null
null
Square_Lattice/obs.py
suron-003/Dynamic-Structure-Factor
908ebcd8e6db5c6bf19a3a782c3b0a4b97a35f8b
[ "MIT" ]
null
null
null
import numpy as np from numpy import random, linspace, cos, pi import math import random import matplotlib.pyplot as plt from scipy.fft import fft, fftfreq from scipy.fft import rfft, rfftfreq import copy from mpl_toolkits.mplot3d import axes3d from mpl_toolkits import mplot3d from plotly import __version__ import pand...
30.096774
203
0.633976
382
1,866
3.065445
0.251309
0.029035
0.025619
0.034159
0.199829
0.199829
0.167378
0.140051
0.095645
0.095645
0
0.065147
0.177385
1,866
62
204
30.096774
0.69772
0
0
0.172414
0
0
0
0
0
0
0
0
0
1
0.034483
false
0
0.465517
0
0.534483
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
479c652f9d6be7f731af9a0eaf026a8198211ed7
1,947
py
Python
src/test/test_cmdparse_qmp.py
dougpuob/qemu-tasker
58a24090016abebcda8e95c382bceaef453ea981
[ "MIT" ]
null
null
null
src/test/test_cmdparse_qmp.py
dougpuob/qemu-tasker
58a24090016abebcda8e95c382bceaef453ea981
[ "MIT" ]
null
null
null
src/test/test_cmdparse_qmp.py
dougpuob/qemu-tasker
58a24090016abebcda8e95c382bceaef453ea981
[ "MIT" ]
null
null
null
import unittest import sys import os import sys import json TEST_DIR = os.path.dirname(os.path.abspath(__file__)) PROJECT_DIR = os.path.abspath(os.path.join(TEST_DIR, os.pardir)) sys.path.insert(0, PROJECT_DIR) from module.cmdparse import cmdargs class test_cmdparse(unittest.TestCase): def __init__(self, methodN...
31.918033
77
0.582435
208
1,947
5.269231
0.269231
0.150547
0.190693
0.142336
0.650547
0.583029
0.583029
0.583029
0.583029
0.583029
0
0.023207
0.269646
1,947
60
78
32.45
0.747539
0
0
0.543478
0
0
0.191063
0.064715
0
0
0
0
0.23913
1
0.086957
false
0
0.130435
0
0.23913
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
479ce552b6ca46a4ea68c0270c6749107ab46cb3
3,498
py
Python
ebbp/ebb_fit_prior.py
uttiyamaji/ebbp
d1b7270b7741cab4b18a9f54b47060f90ac1fc2c
[ "MIT" ]
null
null
null
ebbp/ebb_fit_prior.py
uttiyamaji/ebbp
d1b7270b7741cab4b18a9f54b47060f90ac1fc2c
[ "MIT" ]
null
null
null
ebbp/ebb_fit_prior.py
uttiyamaji/ebbp
d1b7270b7741cab4b18a9f54b47060f90ac1fc2c
[ "MIT" ]
null
null
null
""" ebb_fit_prior : fits a Beta prior by estimating the parameters from the data using method of moments and MLE estimates augment : given data and prior, computes the shrinked estimate, credible intervals and augments those in the given dataframe check_fit : plots the true average and the shrinked average """ impo...
26.104478
129
0.57004
515
3,498
3.739806
0.287379
0.011423
0.028557
0.024922
0.110073
0.096573
0.040498
0.040498
0.040498
0.040498
0
0.022312
0.295312
3,498
133
130
26.300752
0.759026
0.241567
0
0.228571
0
0
0.063025
0.029412
0
0
0
0
0
1
0.085714
false
0.071429
0.071429
0.014286
0.271429
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
1
0
0
0
0
0
1
479df66e863ce32ea10d321a13e0395597727f6a
1,554
py
Python
shopping.py
scharlau/shopping_exercise_p
f6b59ba38408dcd9f66f79814ad6a7df167e8fa1
[ "Unlicense" ]
1
2021-02-23T15:56:22.000Z
2021-02-23T15:56:22.000Z
shopping.py
scharlau/shopping_exercise_p
f6b59ba38408dcd9f66f79814ad6a7df167e8fa1
[ "Unlicense" ]
null
null
null
shopping.py
scharlau/shopping_exercise_p
f6b59ba38408dcd9f66f79814ad6a7df167e8fa1
[ "Unlicense" ]
3
2022-02-23T11:17:12.000Z
2022-03-01T10:22:40.000Z
import sqlite3 from flask import Flask, render_template app = Flask(__name__) # database details - to remove some duplication db_name = 'shopping_data.db' @app.route('/') def index(): return render_template('index.html') @app.route('/customers') def customers(): conn = sqlite3.connect(db_name) conn.row_...
28.254545
70
0.684041
203
1,554
5.108374
0.20197
0.081003
0.096432
0.077146
0.642237
0.603664
0.603664
0.526519
0.441659
0.441659
0
0.007075
0.181467
1,554
55
71
28.254545
0.808176
0.094595
0
0.418605
0
0
0.18331
0.03067
0
0
0
0
0
1
0.116279
false
0
0.046512
0.023256
0.27907
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
479e8f21283f73a7284a6977ee7935c8576954ca
3,372
py
Python
Month 01/Week 04/Day 03/a.py
KevinKnott/Coding-Review
6a83cb798cc317d1e4357ac6b2b1fbf76fa034fb
[ "MIT" ]
null
null
null
Month 01/Week 04/Day 03/a.py
KevinKnott/Coding-Review
6a83cb798cc317d1e4357ac6b2b1fbf76fa034fb
[ "MIT" ]
null
null
null
Month 01/Week 04/Day 03/a.py
KevinKnott/Coding-Review
6a83cb798cc317d1e4357ac6b2b1fbf76fa034fb
[ "MIT" ]
null
null
null
# Decode Ways: https://leetcode.com/problems/decode-ways/ # A message containing letters from A-Z can be encoded into numbers using the following mapping: # 'A' -> "1" # 'B' -> "2" # ... # 'Z' -> "26" # To decode an encoded message, all the digits must be grouped then mapped back into letters using the reverse of th...
34.762887
202
0.613582
543
3,372
3.810313
0.394107
0.009667
0.0116
0.010633
0
0
0
0
0
0
0
0.037005
0.318802
3,372
96
203
35.125
0.863735
0.638197
0
0.121212
0
0
0.002534
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
479ebacd8680e1c9ee8fd4892014756c931c3f71
7,503
py
Python
word2vec.py
online-behaviour/machine-learning
2ff0e83905985ec644699ece44c75dd7422a7426
[ "Apache-2.0" ]
2
2017-08-18T13:14:38.000Z
2021-09-02T07:45:41.000Z
word2vec.py
online-behaviour/machine-learning
2ff0e83905985ec644699ece44c75dd7422a7426
[ "Apache-2.0" ]
null
null
null
word2vec.py
online-behaviour/machine-learning
2ff0e83905985ec644699ece44c75dd7422a7426
[ "Apache-2.0" ]
3
2020-11-18T11:55:45.000Z
2021-04-27T10:02:27.000Z
#!/usr/bin/python -W all """ word2vec.py: process tweets with word2vec vectors usage: word2vec.py [-x] [-m model-file [-l word-vector-length]] -w word-vector-file -T train-file -t test-file notes: - optional model file is a text file from which the word vector file is built - option x writes tokeni...
40.33871
114
0.702786
945
7,503
5.567196
0.303704
0.015206
0.012355
0.016157
0.136286
0.069188
0.063486
0.037635
0.037635
0.012925
0
0.012446
0.196855
7,503
185
115
40.556757
0.860604
0.283487
0
0.071429
0
0.007937
0.072439
0
0
0
0
0
0
1
0.031746
false
0
0.103175
0
0.134921
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
479f58c93d75ceaaa8c1e6a8d36c5a44e2d8377b
307
py
Python
methylprep/processing/__init__.py
WonyoungCho/methylprep
4e34f62be969158453ba9b05b7629433f9bbba8b
[ "MIT" ]
5
2019-08-28T08:27:16.000Z
2020-03-11T17:20:01.000Z
methylprep/processing/__init__.py
WonyoungCho/methylprep
4e34f62be969158453ba9b05b7629433f9bbba8b
[ "MIT" ]
16
2021-04-08T22:02:58.000Z
2022-03-18T17:30:50.000Z
methylprep/processing/__init__.py
WonyoungCho/methylprep
4e34f62be969158453ba9b05b7629433f9bbba8b
[ "MIT" ]
3
2020-05-21T10:16:24.000Z
2020-08-30T09:26:52.000Z
from .pipeline import SampleDataContainer, run_pipeline, make_pipeline from .preprocess import preprocess_noob from .postprocess import consolidate_values_for_sheet __all__ = [ 'SampleDataContainer', 'preprocess_noob', 'run_pipeline', 'make_pipeline,', 'consolidate_values_for_sheet' ]
25.583333
70
0.781759
32
307
7
0.4375
0.098214
0.133929
0.205357
0
0
0
0
0
0
0
0
0.143322
307
11
71
27.909091
0.851711
0
0
0
0
0
0.286645
0.091205
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
47a0a4fbe45ee5f24ba893991497ace327ecbebb
36
py
Python
lib/jnpr/eznc/runstat/__init__.py
cro/py-junos-eznc
4c111476cc8eb7599462379ddf55743ae30bbf5c
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
lib/jnpr/eznc/runstat/__init__.py
cro/py-junos-eznc
4c111476cc8eb7599462379ddf55743ae30bbf5c
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
lib/jnpr/eznc/runstat/__init__.py
cro/py-junos-eznc
4c111476cc8eb7599462379ddf55743ae30bbf5c
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
from .rsmaker import RunstatMaker
9
33
0.805556
4
36
7.25
1
0
0
0
0
0
0
0
0
0
0
0
0.166667
36
3
34
12
0.966667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
47a1196cb4630db570dad1f74a29081f22292d56
291
py
Python
Day 4/Ex3: Treasure Map.py
Nishi-16-K/100DaysCodeChallenge-Python-
96df953bbc60c2bf8802cf31ed6c593469521482
[ "MIT" ]
1
2021-08-29T12:44:23.000Z
2021-08-29T12:44:23.000Z
Day 4/Ex3: Treasure Map.py
Nishi-16-K/100DaysofCodeChallenge-Python
96df953bbc60c2bf8802cf31ed6c593469521482
[ "MIT" ]
null
null
null
Day 4/Ex3: Treasure Map.py
Nishi-16-K/100DaysofCodeChallenge-Python
96df953bbc60c2bf8802cf31ed6c593469521482
[ "MIT" ]
null
null
null
row1 = ["⬜️","⬜️","⬜️"] row2 = ["⬜️","⬜️","⬜️"] row3 = ["⬜️","⬜️","⬜️"] map = [row1, row2, row3] print(f"{row1}\n{row2}\n{row3}") position = input("Where do you want to put the treasure? ") col = int(position[0]) ro = int(position[1]) map[ro-1][col-1] = "X" print(f"{row1}\n{row2}\n{row3}")
26.454545
59
0.515464
54
291
3.111111
0.444444
0.142857
0.107143
0.130952
0.238095
0.238095
0.238095
0
0
0
0
0.062745
0.123711
291
10
60
29.1
0.52549
0
0
0.2
0
0
0.350515
0.151203
0
0
0
0
0
1
0
false
0
0
0
0
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
47a573807a7fa2158676c40f6ae41faaea77de33
1,809
py
Python
noto-emoji-extra/gen-couple-kiss.py
PoomSmart/EmojiFonts
43f4f2bc6e8986cc2f5bc317e50381774f02316f
[ "MIT" ]
3
2022-02-19T07:29:41.000Z
2022-03-03T07:24:14.000Z
noto-emoji-extra/gen-couple-kiss.py
PoomSmart/EmojiFonts
43f4f2bc6e8986cc2f5bc317e50381774f02316f
[ "MIT" ]
1
2022-03-13T23:00:19.000Z
2022-03-14T16:12:12.000Z
noto-emoji-extra/gen-couple-kiss.py
PoomSmart/EmojiFonts
43f4f2bc6e8986cc2f5bc317e50381774f02316f
[ "MIT" ]
1
2022-02-19T13:32:11.000Z
2022-02-19T13:32:11.000Z
import xml.etree.ElementTree as ET from shared import * # neutral for skin in skins: name = f'{font}/emoji_u1f48f.svg' if skin == 'none' else f'{font}/emoji_u1f48f_{skin}.svg' left = ET.parse(name).getroot() right = ET.parse(name).getroot() remove(left, 2) remove(left, 1) remove(right, 0) w...
32.303571
94
0.661139
282
1,809
4.053191
0.187943
0.048994
0.07699
0.125984
0.817148
0.789151
0.652668
0.620297
0.620297
0.620297
0
0.080081
0.178552
1,809
56
95
32.303571
0.689098
0.038143
0
0.723404
0
0
0.25288
0.21371
0
0
0
0
0
1
0
false
0
0.042553
0
0.042553
0
0
0
0
null
0
0
0
1
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
47a5912698e4015d5f8165df118a9d812fd9c116
488
py
Python
wrong_settings.py
kutayg/gameQuest
1730ea8810a54afff50fbb5eab8fb5290eed6222
[ "MIT" ]
null
null
null
wrong_settings.py
kutayg/gameQuest
1730ea8810a54afff50fbb5eab8fb5290eed6222
[ "MIT" ]
null
null
null
wrong_settings.py
kutayg/gameQuest
1730ea8810a54afff50fbb5eab8fb5290eed6222
[ "MIT" ]
null
null
null
# © 2019 KidsCanCode LLC / All rights reserved. # Game options/settings TITLE = "Jumpy!" WIDTH = 480 HEIGHT = 600 FPS = 60 # Environment options GRAVITY = 9.8 # Player properties PLAYER_ACC = 0.5 PLAYER_FRICTION = -0.01 PLAYER_JUMPPOWER = 10 # Define colors # I changed the screen color to aqua, the platform color t...
20.333333
98
0.684426
80
488
4.15
0.625
0.063253
0
0
0
0
0
0
0
0
0
0.15601
0.19877
488
24
99
20.333333
0.690537
0.442623
0
0
0
0
0.022556
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
47a75c9fd27c1c4e7e7447cf693a765246360655
1,446
py
Python
yc164/518.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc164/518.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc164/518.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
def r2i(s): i = 0 result = 0 while i < len(s): a = {'IV': 4, 'IX': 9, 'XL': 40, 'XC': 90, 'CD': 400, 'CM': 900} if s[i:i + 2] in a: result += a[s[i:i + 2]] i += 2 continue b = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000} ...
21.58209
77
0.310512
183
1,446
2.453552
0.284153
0.13363
0.020045
0.017817
0.066815
0
0
0
0
0
0
0.144315
0.525588
1,446
66
78
21.909091
0.510204
0
0
0.032787
0
0
0.029737
0
0
0
0
0
0
1
0.032787
false
0
0
0
0.081967
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
47a795b1d3c2fd7990f98fee6d037bc7e104529b
966
py
Python
asynapplicationinsights/channel/abstractions.py
RobertoPrevato/aioapplicationinsights
c72721c6ed0e64b4e5bfecbcd3dde62f7c6ea120
[ "MIT" ]
2
2018-08-13T14:26:31.000Z
2019-12-01T01:03:10.000Z
asynapplicationinsights/channel/abstractions.py
RobertoPrevato/aioapplicationinsights
c72721c6ed0e64b4e5bfecbcd3dde62f7c6ea120
[ "MIT" ]
4
2018-10-09T20:32:59.000Z
2018-12-09T20:46:09.000Z
asynapplicationinsights/channel/abstractions.py
RobertoPrevato/aioapplicationinsights
c72721c6ed0e64b4e5bfecbcd3dde62f7c6ea120
[ "MIT" ]
null
null
null
from asyncio import Queue, QueueEmpty from abc import ABC, abstractmethod from typing import List class TelemetryChannel(ABC): def __init__(self): self._queue = Queue() self._max_length = 500 def get(self): try: return self._queue.get_nowait() except QueueEmpty: ...
21
54
0.555901
110
966
4.745455
0.372727
0.068966
0.049808
0
0
0
0
0
0
0
0
0.004862
0.361284
966
45
55
21.466667
0.841167
0
0
0.171429
0
0
0
0
0
0
0
0
0
1
0.085714
false
0.057143
0.085714
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
1
0
0
0
0
0
1
47a8d279cbfb373533f6a00a0322f66158d1d281
759
py
Python
2021/day3/a.py
vinnymaker18/adventofcode
92d0a6f5a04e6601b6c82ee323565e7327be36f8
[ "MIT" ]
null
null
null
2021/day3/a.py
vinnymaker18/adventofcode
92d0a6f5a04e6601b6c82ee323565e7327be36f8
[ "MIT" ]
null
null
null
2021/day3/a.py
vinnymaker18/adventofcode
92d0a6f5a04e6601b6c82ee323565e7327be36f8
[ "MIT" ]
null
null
null
def processInput(inputFile='input.txt'): return [l.strip() for l in open(inputFile).readlines()] def filter(data, a=1): setA = set(range(len(data))) setB = set(range(len(data))) def count(bit, value, dataset): return set(d for d in dataset if data[d][bit] == value) for bit in range(12): ...
25.3
63
0.571805
113
759
3.840708
0.371681
0.092166
0.050691
0.069124
0
0
0
0
0
0
0
0.016275
0.27141
759
29
64
26.172414
0.768535
0
0
0
0
0
0.017128
0
0
0
0
0
0
1
0.157895
false
0
0
0.105263
0.263158
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
1
0
0
0
1
47ab86e8093f2c1a626207ebde134e3527326fd9
659
py
Python
mwasurveyweb/templatetags/template_filters.py
tjgalvin/SS18B-NHurleyWalker
81b1bbb9e7131a92804b0dbddac795217b524160
[ "MIT" ]
1
2020-07-23T08:48:50.000Z
2020-07-23T08:48:50.000Z
mwasurveyweb/templatetags/template_filters.py
tjgalvin/SS18B-NHurleyWalker
81b1bbb9e7131a92804b0dbddac795217b524160
[ "MIT" ]
6
2020-02-11T23:38:13.000Z
2022-02-10T07:28:07.000Z
mwasurveyweb/templatetags/template_filters.py
tjgalvin/SS18B-NHurleyWalker
81b1bbb9e7131a92804b0dbddac795217b524160
[ "MIT" ]
1
2020-07-23T09:01:29.000Z
2020-07-23T09:01:29.000Z
""" Distributed under the MIT License. See LICENSE.txt for more info. """ from django import template register = template.Library() @register.filter def get_item(dictionary, key): """ Returns the object for that key from a dictionary. :param dictionary: A dictionary object :param key: Key to search ...
22.724138
65
0.704097
89
659
5.101124
0.483146
0.061674
0.07489
0
0
0
0
0
0
0
0
0
0.212443
659
28
66
23.535714
0.874759
0.534143
0
0.25
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
47ab8c88580963ea081b14afd01ad6eaae957d96
1,091
py
Python
Exercicios/Ex69.py
angeloridolfi/Python-CEV
fd11b7ea0725f83c84336b99304c50f183514245
[ "MIT" ]
null
null
null
Exercicios/Ex69.py
angeloridolfi/Python-CEV
fd11b7ea0725f83c84336b99304c50f183514245
[ "MIT" ]
null
null
null
Exercicios/Ex69.py
angeloridolfi/Python-CEV
fd11b7ea0725f83c84336b99304c50f183514245
[ "MIT" ]
null
null
null
contmaior = 0 contahomi = 0 contamuie = 0 while True: print('CADASTRE UMA PESSOA') print('=-' * 19) idade = int(input('INFORME SUA IDADE: ')) if idade > 18: contmaior += 1 sexo = str(input('INFORME SEU SEXO <<M/F>>: ')).upper().strip()[0] if sexo not in 'MF': while True: ...
33.060606
96
0.542621
140
1,091
4.228571
0.357143
0.054054
0.074324
0.065878
0.199324
0.199324
0.199324
0.111486
0.111486
0.111486
0
0.030928
0.288726
1,091
32
97
34.09375
0.731959
0
0
0.25
0
0
0.290559
0
0
0
0
0
0
1
0
false
0
0
0
0
0.21875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
47ac2e08152553ebc4a73e2f44181a3dfc25e059
165
py
Python
testapp/another_urls.py
danigosa/django-simple-seo
17610e50148c6672cb34e96654df1d3515b0444f
[ "BSD-3-Clause" ]
11
2015-01-02T15:44:31.000Z
2021-07-27T06:54:35.000Z
testapp/another_urls.py
danigosa/django-simple-seo
17610e50148c6672cb34e96654df1d3515b0444f
[ "BSD-3-Clause" ]
8
2016-02-03T07:07:04.000Z
2022-01-13T00:42:32.000Z
testapp/another_urls.py
danigosa/django-simple-seo
17610e50148c6672cb34e96654df1d3515b0444f
[ "BSD-3-Clause" ]
8
2015-02-20T13:51:51.000Z
2021-06-24T19:11:30.000Z
from django.conf.urls import patterns, url from .views import template_test urlpatterns = patterns( '', url(r'^', template_test, name='template_test2'), )
18.333333
52
0.709091
21
165
5.428571
0.666667
0.192982
0
0
0
0
0
0
0
0
0
0.007246
0.163636
165
9
53
18.333333
0.818841
0
0
0
0
0
0.090361
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
47af52c1759d6ca7b81f36810e1191b6fa34e7eb
11,920
py
Python
non_local.py
yuxia201121/ADCTself-attention
77d32034854f64a7aa24d45ae2c4e18f7616cf48
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
non_local.py
yuxia201121/ADCTself-attention
77d32034854f64a7aa24d45ae2c4e18f7616cf48
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
non_local.py
yuxia201121/ADCTself-attention
77d32034854f64a7aa24d45ae2c4e18f7616cf48
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
40.27027
127
0.560906
1,651
11,920
3.745003
0.101757
0.035096
0.021834
0.026686
0.631732
0.552644
0.500081
0.467572
0.467572
0.456898
0
0.065696
0.256795
11,920
295
128
40.40678
0.632238
0.450168
0
0.232143
0
0
0.09576
0
0
0
0
0
0
1
0.026786
false
0
0.026786
0
0.080357
0.357143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
47b3262789a56b500e24bd5503fa34b4ab5f6bca
1,031
py
Python
evaluation/eval_frames.py
suleymanaslan/generative-rainbow
9f8daac5e06565ef099c0913186f5a1d801ca52c
[ "MIT" ]
null
null
null
evaluation/eval_frames.py
suleymanaslan/generative-rainbow
9f8daac5e06565ef099c0913186f5a1d801ca52c
[ "MIT" ]
null
null
null
evaluation/eval_frames.py
suleymanaslan/generative-rainbow
9f8daac5e06565ef099c0913186f5a1d801ca52c
[ "MIT" ]
null
null
null
import numpy as np import imageio from evaluation.eval_utils import to_img_padded, format_img, init_evaluation def save_frames(env, agent, pad, folder): observation, ep_reward, done = env.reset(), 0, False count = 0 while not done: action, generated_next_observation = agent.act(observation, get_g...
34.366667
87
0.681862
142
1,031
4.704225
0.380282
0.112275
0.065868
0.056886
0.161677
0.086826
0.086826
0
0
0
0
0.014599
0.202716
1,031
29
88
35.551724
0.798054
0
0
0
0
0
0.074685
0.074685
0
0
0
0
0
1
0.090909
false
0
0.136364
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
47b4d5911e43771cc3188d71f2b90fe1b6287fdc
22,950
py
Python
acme/HttpServer.py
ankraft/ACME-oneM2M-CSE
03c23ea19b35dd6e0aec752d9631e2a76778c61c
[ "BSD-3-Clause" ]
10
2020-09-25T08:49:19.000Z
2022-03-30T01:29:22.000Z
acme/HttpServer.py
ankraft/ACME-oneM2M-CSE
03c23ea19b35dd6e0aec752d9631e2a76778c61c
[ "BSD-3-Clause" ]
14
2020-05-22T08:00:32.000Z
2020-12-24T23:38:05.000Z
acme/HttpServer.py
ankraft/ACME-oneM2M-CSE
03c23ea19b35dd6e0aec752d9631e2a76778c61c
[ "BSD-3-Clause" ]
5
2020-05-22T03:43:20.000Z
2021-05-25T06:54:59.000Z
# # HttpServer.py # # (c) 2020 by Andreas Kraft # License: BSD 3-Clause License. See the LICENSE file for further details. # # Server to implement the http part of the oneM2M Mcx communication interface. # from __future__ import annotations import logging, sys, traceback, urllib3 from copy import deepcopy from typing ...
39.43299
223
0.699695
2,931
22,950
5.451382
0.211873
0.006259
0.010702
0.012768
0.214107
0.1728
0.148955
0.106209
0.087433
0.04694
0
0.002804
0.160959
22,950
581
224
39.500861
0.826963
0.276122
0
0.103125
0
0.01875
0.139558
0.047435
0
0
0
0.001721
0
1
0.08125
false
0
0.059375
0.003125
0.265625
0.003125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
47b6367947784f5f8c60ac4a630ae41b0271c546
2,855
py
Python
tests.py
dave-shawley/sprockets.mixins.statsd
98dcce37d275a3ab96ef618b4756d7c4618a550a
[ "BSD-3-Clause" ]
1
2016-04-18T14:43:28.000Z
2016-04-18T14:43:28.000Z
tests.py
dave-shawley/sprockets.mixins.statsd
98dcce37d275a3ab96ef618b4756d7c4618a550a
[ "BSD-3-Clause" ]
1
2015-03-19T20:09:31.000Z
2015-03-19T20:56:13.000Z
tests.py
dave-shawley/sprockets.mixins.statsd
98dcce37d275a3ab96ef618b4756d7c4618a550a
[ "BSD-3-Clause" ]
1
2021-07-21T16:45:20.000Z
2021-07-21T16:45:20.000Z
""" Tests for the sprockets.mixins.statsd package """ import mock import socket try: import unittest2 as unittest except ImportError: import unittest from tornado import httputil from tornado import web from sprockets.mixins import statsd as statsd class StatsdRequestHandler(statsd.RequestMetricsMixin, ...
34.817073
77
0.633275
314
2,855
5.512739
0.254777
0.063547
0.020797
0.034662
0.622761
0.622761
0.586944
0.54535
0.54535
0.441363
0
0.018243
0.270403
2,855
81
78
35.246914
0.81277
0.015762
0
0.4
0
0
0.114959
0.045698
0
0
0
0
0.066667
1
0.1
false
0.033333
0.133333
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