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
10e78c0fc826ea93b28382039c36ba828ba1ef04
362
py
Python
happ/api/regular/feedback.py
Mafioso/happ-backend
3a3a57add4ec55985cc37db79c71430ed78b1ee3
[ "MIT" ]
1
2017-10-22T06:12:33.000Z
2017-10-22T06:12:33.000Z
happ/api/regular/feedback.py
Mafioso/happ-backend
3a3a57add4ec55985cc37db79c71430ed78b1ee3
[ "MIT" ]
null
null
null
happ/api/regular/feedback.py
Mafioso/happ-backend
3a3a57add4ec55985cc37db79c71430ed78b1ee3
[ "MIT" ]
null
null
null
from rest_framework import mixins from rest_framework_mongoengine import viewsets from happ.serializers import FeedbackMessageSerializer class FeedbackMessageViewSet(viewsets.GenericViewSet, mixins.CreateModelMixin): serializer_class = FeedbackMessageSerializer def perform_create(self, serializer): ...
30.166667
79
0.834254
36
362
8.25
0.638889
0.053872
0.114478
0
0
0
0
0
0
0
0
0
0.116022
362
11
80
32.909091
0.928125
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
10e7e48e445393fa9cddec8e7e757ee1303b32a4
5,058
py
Python
src/okwugbe/metrics.py
edaiofficial/okwugbe
74233162748a0a583c622e554c08d1d294758f1e
[ "MIT" ]
5
2021-12-22T03:39:16.000Z
2022-01-14T20:52:16.000Z
src/okwugbe/metrics.py
chrisemezue/okwugbe
e93266fc9d1af1104800efc332f76852d97ddf77
[ "MIT" ]
2
2021-12-22T23:50:26.000Z
2021-12-28T03:58:14.000Z
src/okwugbe/metrics.py
chrisemezue/okwugbe
e93266fc9d1af1104800efc332f76852d97ddf77
[ "MIT" ]
3
2021-12-22T03:39:23.000Z
2022-02-18T23:21:34.000Z
import numpy as np class Metrics: def __init__(self): super(Metrics, self).__init__() def _levenshtein_distance(self, ref, hyp): """ :param ref: First sequence and or sentence (sequence of words) :param hyp: Second sequence and or sentence (sequence of words) ...
39.515625
89
0.5862
590
5,058
4.872881
0.172881
0.041739
0.014609
0.060522
0.65113
0.546435
0.519304
0.401043
0.378783
0.341217
0
0.009142
0.329577
5,058
127
90
39.826772
0.838691
0.316528
0
0.149254
0
0
0.025379
0
0
0
0
0
0
1
0.104478
false
0
0.014925
0.014925
0.268657
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
10e801c7c91230517b18b1bc2bbf692c3cbfea50
946
py
Python
Day 1/balance_binary.py
queercat/N-Days-Of-Leetcode
abf32ec9bef5afaeed9e5caa3618e2f09418260e
[ "MIT" ]
null
null
null
Day 1/balance_binary.py
queercat/N-Days-Of-Leetcode
abf32ec9bef5afaeed9e5caa3618e2f09418260e
[ "MIT" ]
null
null
null
Day 1/balance_binary.py
queercat/N-Days-Of-Leetcode
abf32ec9bef5afaeed9e5caa3618e2f09418260e
[ "MIT" ]
null
null
null
class Node(): def __init__(self, value=None, left=None, right=None): self.value = value self.left = left self.right = right def is_balanced(self): root = self height_left = root.left.tree_height() height_right = root.right.tree_height() if abs(height_right - height_left > 1): return False ret...
16.310345
55
0.651163
152
946
3.934211
0.243421
0.117057
0.070234
0.063545
0
0
0
0
0
0
0
0.02008
0.210359
946
58
56
16.310345
0.780455
0
0
0.05
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
0.025
0.25
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
10e8609558f729c1c5d880e7bbeba6d000ba22a8
23,221
py
Python
torch_complex/tensor.py
Andong-Li-speech/TaylorBeamformer
fc3d0e79a19a0feb2f6faf37c538219d7ea78433
[ "MIT" ]
4
2022-03-29T08:50:37.000Z
2022-03-30T12:00:22.000Z
torch_complex/tensor.py
Andong-Li-speech/TaylorBeamformer
fc3d0e79a19a0feb2f6faf37c538219d7ea78433
[ "MIT" ]
null
null
null
torch_complex/tensor.py
Andong-Li-speech/TaylorBeamformer
fc3d0e79a19a0feb2f6faf37c538219d7ea78433
[ "MIT" ]
null
null
null
import numbers from typing import Union, List import numpy import torch EPSILON = torch.finfo(torch.float32).eps __all__ = ["ComplexTensor"] class ComplexTensor: def __init__( self, real: Union[torch.Tensor, numpy.ndarray], imag=None, device=None ): if imag is None: if isinstance...
33.078348
88
0.56535
2,605
23,221
4.93167
0.09405
0.085312
0.094808
0.105083
0.591889
0.497003
0.428116
0.41029
0.355102
0.314782
0
0.00431
0.310538
23,221
701
89
33.125535
0.798126
0.022738
0
0.283154
0
0
0.051477
0
0
0
0
0
0.003584
1
0.188172
false
0
0.012545
0.102151
0.419355
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
10e8e4534667bb714882b3a04d470fb684fe8e21
1,724
py
Python
with-javascript-clients/trio-websocket-server/next-server-example.py
anhinga/2019-python-drafts
d312e4c902f650fb4ad91b9ae7df934ab530a6c6
[ "MIT" ]
4
2019-05-27T15:31:24.000Z
2021-02-17T12:55:58.000Z
with-javascript-clients/trio-websocket-server/next-server-example.py
anhinga/2019-python-drafts
d312e4c902f650fb4ad91b9ae7df934ab530a6c6
[ "MIT" ]
null
null
null
with-javascript-clients/trio-websocket-server/next-server-example.py
anhinga/2019-python-drafts
d312e4c902f650fb4ad91b9ae7df934ab530a6c6
[ "MIT" ]
1
2021-02-17T12:56:00.000Z
2021-02-17T12:56:00.000Z
import trio from trio_websocket import serve_websocket, ConnectionClosed import sys import names class SetOfNames: def __init__(self, server_name): self.server_name = server_name self.dict_of_names = {} who_is_who = SetOfNames('Server Ben') async def echo_server(request): print("ECHO...
38.311111
119
0.611369
236
1,724
4.139831
0.275424
0.061412
0.09826
0.09826
0.282497
0.238485
0.191402
0.126919
0.067554
0.067554
0
0.008137
0.287123
1,724
44
120
39.181818
0.786819
0
0
0.105263
0
0
0.095708
0
0
0
0
0
0
1
0.026316
false
0
0.105263
0
0.157895
0.131579
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
10e947bdae89ed7b8db18360f7d290e49b33356b
8,638
py
Python
sca/core.py
open-power-sdk/source-code-advisor
f39d6f59bfd33e5ac1148e1e9b72f472c8429252
[ "Apache-2.0" ]
10
2017-04-11T19:18:40.000Z
2019-10-17T18:00:30.000Z
sca/core.py
open-power-sdk/source-code-advisor
f39d6f59bfd33e5ac1148e1e9b72f472c8429252
[ "Apache-2.0" ]
2
2017-04-20T17:32:57.000Z
2021-10-18T17:15:00.000Z
sca/core.py
open-power-sdk/source-code-advisor
f39d6f59bfd33e5ac1148e1e9b72f472c8429252
[ "Apache-2.0" ]
4
2017-04-12T23:59:37.000Z
2018-04-14T14:34:59.000Z
# -*- coding: utf-8 -*- """ Copyright (C) 2017 IBM Corporation 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 agre...
35.113821
86
0.607432
1,049
8,638
4.773117
0.20877
0.033553
0.026962
0.019972
0.258438
0.192131
0.170561
0.141003
0.141003
0.141003
0
0.00258
0.282125
8,638
245
87
35.257143
0.80487
0.013313
0
0.180645
0
0
0.062027
0.008008
0
0
0
0
0
0
null
null
0
0.03871
null
null
0.058065
0
0
0
null
0
0
0
0
0
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
10eb2eb1e1c0179f273edc5b429b658630b21635
132
py
Python
lib/fmd/actions.py
GonzaloAlvarez/py-ga-sysadmin
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
2
2018-01-05T15:32:06.000Z
2021-06-02T13:15:05.000Z
lib/fmd/actions.py
GonzaloAlvarez/devops-tools
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
67
2017-01-09T19:39:19.000Z
2018-02-28T05:33:40.000Z
lib/fmd/actions.py
GonzaloAlvarez/devops-tools
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
null
null
null
from addaction import AddAction from showaction import ShowAction from getaction import GetAction from listaction import ListAction
26.4
33
0.878788
16
132
7.25
0.375
0
0
0
0
0
0
0
0
0
0
0
0.121212
132
4
34
33
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
10ec056f054912cb4b0a801c882030b7aec58eb5
5,568
py
Python
pypdf2_structures/pdf_obj_struct.py
GRV96/pypdf2_structures
a3dd07bef239d7ba899152ce61e1863dda9779a2
[ "MIT" ]
1
2021-07-19T22:03:13.000Z
2021-07-19T22:03:13.000Z
pypdf2_structures/pdf_obj_struct.py
GRV96/pypdf2_structures
a3dd07bef239d7ba899152ce61e1863dda9779a2
[ "MIT" ]
null
null
null
pypdf2_structures/pdf_obj_struct.py
GRV96/pypdf2_structures
a3dd07bef239d7ba899152ce61e1863dda9779a2
[ "MIT" ]
null
null
null
""" This module allows to write a PDF object structure in a file stream. An object structure consists of containers (dictionaries, lists, sets and tuples) embedded in one another and other objects. This module also works on structures that do not contain PDF objects. """ from PyPDF2.generic import BooleanObject, Dict...
25.658986
78
0.713182
893
5,568
4.142217
0.183651
0.041633
0.048662
0.043255
0.390105
0.353068
0.346851
0.344147
0.326845
0.289808
0
0.002204
0.185165
5,568
216
79
25.777778
0.813092
0.331897
0
0.40708
0
0
0.041775
0
0
0
0
0
0
1
0.079646
false
0
0.00885
0.026549
0.176991
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
10ed97d128b88ac1be3e9146a547173a352d36ad
1,459
py
Python
src/ralph/lib/custom_fields/tests/test_models.py
angry-tony/cmdb-ralph
eb2ad2212a133025b698eb48e379c0bfe14cace0
[ "Apache-2.0" ]
null
null
null
src/ralph/lib/custom_fields/tests/test_models.py
angry-tony/cmdb-ralph
eb2ad2212a133025b698eb48e379c0bfe14cace0
[ "Apache-2.0" ]
null
null
null
src/ralph/lib/custom_fields/tests/test_models.py
angry-tony/cmdb-ralph
eb2ad2212a133025b698eb48e379c0bfe14cace0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django import forms from django.test import TestCase from ..models import CustomField, CustomFieldTypes from .models import SomeModel class CustomFieldModelsTestCase(TestCase): def setUp(self): self.sm1 = SomeModel.objects.create(name='abc') self.sm2 = SomeModel.objec...
34.738095
72
0.64976
154
1,459
5.909091
0.285714
0.098901
0.093407
0.059341
0.363736
0.286813
0.101099
0.101099
0
0
0
0.002732
0.24743
1,459
41
73
35.585366
0.826047
0.014393
0
0
0
0
0.077994
0
0
0
0
0
0.117647
1
0.088235
false
0
0.117647
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
10eddb0bda4ef9a212e7422cec09a64125c85f9d
9,628
py
Python
Hw1/hw1_310555029.py
pingggg0629/110-Autumn---ML
0331359e4723984723272823f6fc340f26b783ba
[ "MIT" ]
null
null
null
Hw1/hw1_310555029.py
pingggg0629/110-Autumn---ML
0331359e4723984723272823f6fc340f26b783ba
[ "MIT" ]
null
null
null
Hw1/hw1_310555029.py
pingggg0629/110-Autumn---ML
0331359e4723984723272823f6fc340f26b783ba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """hw1_310555029.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1JRZxfH5avZg0896ddvxZSfm2lUtMGKSu #Linear Regression ##(0) Load the data -> Standardize data -> Split the dataset """ import numpy as np import pandas as ...
30.565079
229
0.677399
1,600
9,628
3.87125
0.13375
0.025186
0.026154
0.031482
0.666936
0.628027
0.61947
0.605102
0.597352
0.597352
0
0.020086
0.177815
9,628
315
230
30.565079
0.762127
0.113004
0
0.679612
1
0
0.075393
0.005685
0
0
0
0
0
1
0.029126
false
0
0.009709
0.004854
0.067961
0.11165
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
10ede10483aa85ede7885663a3c53c210a5e7bf4
5,959
py
Python
list.py
PriyanshuKumarMishra/list_basic_question.py
5b974cd5c9bd01ae5da0b5c7d6c30766960a6a66
[ "MIT" ]
null
null
null
list.py
PriyanshuKumarMishra/list_basic_question.py
5b974cd5c9bd01ae5da0b5c7d6c30766960a6a66
[ "MIT" ]
null
null
null
list.py
PriyanshuKumarMishra/list_basic_question.py
5b974cd5c9bd01ae5da0b5c7d6c30766960a6a66
[ "MIT" ]
null
null
null
#### prime , even and odd number ##### # l=int(input("How many input do you need :")) # x=[] # y=[] # z=[] # b=[] # for p in range (l): # t=int(input("Enter the number :")) # x.append(t) # for i in x: # if i > 1: # for j in range(2,i): # if i%j==0: # break # else...
16.833333
77
0.458466
1,028
5,959
2.657588
0.166342
0.026354
0.039531
0.032211
0.362006
0.320278
0.293192
0.264641
0.243777
0.243777
0
0.075996
0.317671
5,959
353
78
16.88102
0.595917
0.854674
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
10ee5a867e9442e6f840b47ede6896ae45d15ac9
16,380
py
Python
appengine/predator/analysis/test/stacktrace_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/predator/analysis/test/stacktrace_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/predator/analysis/test/stacktrace_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from analysis.analysis_testcase import AnalysisTestCase from analysis.callstack_detectors import StartOfCallStack from analysis.stacktrace import FunctionLin...
41.052632
80
0.675031
1,846
16,380
5.85753
0.146804
0.054102
0.040692
0.018034
0.458707
0.410062
0.361417
0.332933
0.314344
0.284565
0
0.028177
0.185348
16,380
398
81
41.155779
0.782149
0.093346
0
0.369637
0
0
0.118485
0.006243
0
0
0.000882
0
0.207921
1
0.112211
false
0
0.039604
0.0033
0.178218
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
10ee981491e95e5c5b7bf67f7fa5bf9b027269ad
327
py
Python
Classification/NaiveBayes/Multinomial-Naive-Bayes/mnb_classifier.py
avinashingit/Machine-Learning-in-Python
db63ebee78b396b01430bd4ad8dd4d7b7d5eefe8
[ "MIT" ]
null
null
null
Classification/NaiveBayes/Multinomial-Naive-Bayes/mnb_classifier.py
avinashingit/Machine-Learning-in-Python
db63ebee78b396b01430bd4ad8dd4d7b7d5eefe8
[ "MIT" ]
null
null
null
Classification/NaiveBayes/Multinomial-Naive-Bayes/mnb_classifier.py
avinashingit/Machine-Learning-in-Python
db63ebee78b396b01430bd4ad8dd4d7b7d5eefe8
[ "MIT" ]
1
2020-01-31T13:09:21.000Z
2020-01-31T13:09:21.000Z
# For building the Gaussioan Naive Bayes classifier, Iris dataset from Scikit Learn is being used. from sklearn.datasets import load_iris # Importing necessary scikit learn libraries from sklearn.model_selection import train_test_split from sklearn.naive_bayes import MultinomialNB from sklearn.metrics import accuracy...
36.333333
98
0.853211
46
327
5.934783
0.673913
0.161172
0
0
0
0
0
0
0
0
0
0
0.122324
327
8
99
40.875
0.95122
0.425076
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
10f0ab8a942c51c67acca8df3fafde0f77b99972
86,336
py
Python
ChatBot/chatbot_search/chatbot_sentence_vec_by_bert.py
joleo/nlp_xiaojiang
6de490e1e6ef3213b288f447f0a222c2a16dd77b
[ "MIT" ]
null
null
null
ChatBot/chatbot_search/chatbot_sentence_vec_by_bert.py
joleo/nlp_xiaojiang
6de490e1e6ef3213b288f447f0a222c2a16dd77b
[ "MIT" ]
null
null
null
ChatBot/chatbot_search/chatbot_sentence_vec_by_bert.py
joleo/nlp_xiaojiang
6de490e1e6ef3213b288f447f0a222c2a16dd77b
[ "MIT" ]
2
2021-01-18T10:07:20.000Z
2022-01-12T10:09:47.000Z
# -*- coding: UTF-8 -*- # !/usr/bin/python # @time :2019/5/12 13:16 # @author :Mo # @function :chatbot based search, encode sentence_vec by bert def chatbot_sentence_vec_by_bert_own(): """bert encode is writted by my own""" from FeatureProject.bert.extract_keras_bert_feature import KerasBertVecto...
928.344086
16,060
0.82553
8,444
86,336
8.424562
0.488039
0.001392
0.001856
0.001518
0.018935
0.018935
0.015983
0.014816
0.014816
0.012792
0
0.847688
0.05445
86,336
92
16,061
938.434783
0.023715
0.969885
0
0.56
0
0
0.061035
0.021827
0
0
0
0
0
1
0.04
false
0
0.16
0
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
10f257bee6c8b9c72b45debde35fc8220e1d7d09
2,663
py
Python
onnxruntime/test/testdata/CNTK/gen.py
jun-yoon/onnxruntime
806e24d5c69693533ed4b6fa56b84095efa5df70
[ "MIT" ]
2
2019-01-29T03:48:42.000Z
2019-01-29T07:51:31.000Z
onnxruntime/test/testdata/CNTK/gen.py
jun-yoon/onnxruntime
806e24d5c69693533ed4b6fa56b84095efa5df70
[ "MIT" ]
2
2019-01-09T16:03:17.000Z
2019-02-13T13:58:28.000Z
onnxruntime/test/testdata/CNTK/gen.py
jun-yoon/onnxruntime
806e24d5c69693533ed4b6fa56b84095efa5df70
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import cntk as C import numpy as np import onnx import os model_file = 'model.onnx' data_dir = 'test_data_set_0' def SaveTensorProto(file_path, variable, data): tp = onnx.TensorProto() tp.name = variable.uid for...
32.876543
132
0.676305
404
2,663
4.259901
0.319307
0.036607
0.044741
0.03312
0.163277
0.129576
0.094131
0.070889
0.070889
0.070889
0
0.01899
0.18926
2,663
80
133
33.2875
0.778138
0.06196
0
0.096774
0
0
0.040915
0
0
0
0
0.0125
0
1
0.096774
false
0
0.064516
0
0.16129
0
0
0
0
null
0
0
0
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
10f262341aa17bc9e6c9627fbde97ada1f6bde4c
1,528
py
Python
setup.py
gpaOliveira/SuperDiffer
1936ead7ab209994892f6bc29a33a47415fa95e8
[ "MIT" ]
2
2016-10-12T16:11:04.000Z
2017-08-25T18:29:44.000Z
setup.py
gpaOliveira/SuperDiffer
1936ead7ab209994892f6bc29a33a47415fa95e8
[ "MIT" ]
null
null
null
setup.py
gpaOliveira/SuperDiffer
1936ead7ab209994892f6bc29a33a47415fa95e8
[ "MIT" ]
null
null
null
import os from setuptools import setup,find_packages project_name = "SuperDiffer" __version__ = "1.0.0" __author__ = "Gabriel Oliveira" __author_email__ = "gabriel.pa.oliveira@gmail.com" __author_username__ = "gpaOliveira" __description__ = "REST Service to calculate the difference between two input string...
34.727273
88
0.659031
158
1,528
5.993671
0.613924
0.080253
0.105597
0.082365
0
0
0
0
0
0
0
0.007525
0.217277
1,528
44
89
34.727273
0.784281
0.050393
0
0
0
0
0.41213
0.037216
0
0
0
0
0
1
0.025
false
0.025
0.05
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
10f323886fcda17f4ca99970441ea89c67714915
1,134
py
Python
mtp_cashbook/apps/cashbook/urls.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-cashbook
d35a621e21631e577faacaeacb5ab9f883c9b4f4
[ "MIT" ]
4
2016-01-05T12:21:39.000Z
2016-12-22T15:56:37.000Z
mtp_cashbook/apps/cashbook/urls.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-cashbook
d35a621e21631e577faacaeacb5ab9f883c9b4f4
[ "MIT" ]
132
2015-06-10T09:53:14.000Z
2022-02-01T17:35:54.000Z
mtp_cashbook/apps/cashbook/urls.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-cashbook
d35a621e21631e577faacaeacb5ab9f883c9b4f4
[ "MIT" ]
3
2015-07-07T14:40:33.000Z
2021-04-11T06:20:14.000Z
from django.conf.urls import url from django.views.generic import RedirectView from .views import ( NewCreditsView, ProcessingCreditsView, ProcessedCreditsListView, ProcessedCreditsDetailView, SearchView, CashbookFAQView, CashbookGetHelpView, CashbookGetHelpSuccessView, ) urlpatterns = [ url(r...
42
113
0.722222
124
1,134
6.475806
0.370968
0.044832
0.099626
0.067248
0.064757
0
0
0
0
0
0
0.004936
0.106702
1,134
26
114
43.615385
0.787759
0
0
0
0
0.047619
0.269841
0.151675
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
10f4e1c3903fa8067c8e89fb4ec897f34d53d80b
3,871
py
Python
Products.py
Idimma/api-web-scrapper-to-csv
ff4e11eb78d04b0b263b7e76909405ebd1a2e1b5
[ "MIT" ]
null
null
null
Products.py
Idimma/api-web-scrapper-to-csv
ff4e11eb78d04b0b263b7e76909405ebd1a2e1b5
[ "MIT" ]
null
null
null
Products.py
Idimma/api-web-scrapper-to-csv
ff4e11eb78d04b0b263b7e76909405ebd1a2e1b5
[ "MIT" ]
null
null
null
# coding: utf-8 # In[ ]: from bs4 import BeautifulSoup import csv # In[ ]: import requests import pandas as pd from time import sleep # In[ ]: brand = ' ' # header =['BRANDS', 'PRODUCT TITLE', 'PRODUCT GROUP', 'PRODUCT CODE', # 'PRICE', 'PRODUCT IMAGE','PRODUCT', 'DESCRIPTION'] # with open('product...
32.529412
702
0.572204
435
3,871
5.02069
0.354023
0.014652
0.010989
0.145604
0.279304
0.258242
0.229853
0.200092
0.157051
0.065018
0
0.021532
0.268148
3,871
118
703
32.805085
0.749382
0.111341
0
0.033333
0
0.05
0.316267
0.177589
0
0
0
0
0
1
0.083333
false
0
0.083333
0.016667
0.216667
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
10f504e4b3eeb9d6415e959e475aa8d56aa55d8f
661
py
Python
string_split.py
maneeshdisodia/pythonic_examples
f722bfbe253bbcead111ba082550bdfd1c6046d3
[ "MIT" ]
null
null
null
string_split.py
maneeshdisodia/pythonic_examples
f722bfbe253bbcead111ba082550bdfd1c6046d3
[ "MIT" ]
null
null
null
string_split.py
maneeshdisodia/pythonic_examples
f722bfbe253bbcead111ba082550bdfd1c6046d3
[ "MIT" ]
null
null
null
import re w = 'AbcDefgHijkL' ws= ' .nalf!!213knlsc' wd =' ca++ and mbbs ' loc ='mumbai dombivli' r = re.findall('([A-Z])', w) print(r) r = re.findall('([A-Z][a-z]+)', w) print(r) r = re.findall('([a-z,A-Z,+]+)',wd) print(r) print(' '.join(r)) loc.find('mumcai') join_locations = { 'ncr': ['delhi', 'fari...
16.948718
61
0.568835
92
661
4.043478
0.48913
0.026882
0.080645
0.08871
0.145161
0.11828
0.11828
0.11828
0.11828
0.11828
0
0.005736
0.208775
661
38
62
17.394737
0.705545
0
0
0.12
0
0
0.322239
0
0
0
0
0
0
1
0.04
false
0
0.04
0
0.08
0.24
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
10f5a8ade59179bf2b0330345df9e5d84f2210ed
2,724
py
Python
pdepy/wave.py
OliverTso/PDE
b65fd92f0d62d4160ef93e2a29762025ba869012
[ "MIT" ]
11
2018-04-28T14:09:18.000Z
2022-03-04T19:10:00.000Z
pdepy/wave.py
OliverTso/PDE
b65fd92f0d62d4160ef93e2a29762025ba869012
[ "MIT" ]
6
2020-04-06T23:59:52.000Z
2021-02-03T01:49:14.000Z
pdepy/wave.py
OliverTso/PDE
b65fd92f0d62d4160ef93e2a29762025ba869012
[ "MIT" ]
2
2021-02-11T12:27:24.000Z
2021-05-11T16:46:13.000Z
""" Finite-difference solver for wave equation: u_yy = u_xx. Initial and boundary conditions: u(x, 0) = init(x), 0 <= x <= xf, u_y(x, 0) = d_init(x), 0 <= x <= xf, u(0, y) = bound_x0(y), 0 <= y <= yf, u(xf, y) = bound_xf(y), 0 <= y <= yf. """ import numpy as np from scipy import linalg ...
24.763636
89
0.506975
458
2,724
2.919214
0.255459
0.020942
0.020194
0.014959
0.162304
0.154824
0.08377
0.034405
0.034405
0.034405
0
0.047297
0.293686
2,724
109
90
24.990826
0.647609
0.401982
0
0.047619
0
0
0.003347
0
0
0
0
0.009174
0
1
0.166667
false
0
0.071429
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
10f666661e1b73d5f929f70df77e0f7256e277cd
8,822
py
Python
irbt/cloud.py
tidalf/python-irbt
10a40b1b4c3a8e984bb61b859586aab6b63f4d3d
[ "MIT" ]
2
2019-12-02T21:26:01.000Z
2022-03-12T18:35:24.000Z
irbt/cloud.py
tidalf/python-irbt
10a40b1b4c3a8e984bb61b859586aab6b63f4d3d
[ "MIT" ]
28
2019-10-20T10:56:03.000Z
2019-10-27T13:16:45.000Z
irbt/cloud.py
tidalf/irbt
10a40b1b4c3a8e984bb61b859586aab6b63f4d3d
[ "MIT" ]
null
null
null
""" Cloud class for authentication and connexion setup. It allow interactions with the irbt cloud api """ import json from urllib.parse import urlparse from aws_requests_auth.aws_auth import AWSRequestsAuth import requests from .logger import logging logger = logging.getLogger(__name__) class Cloud: """ ...
34.596078
84
0.540807
945
8,822
4.891005
0.244444
0.027694
0.023799
0.012981
0.105149
0.084812
0.084812
0.061445
0.034617
0.034617
0
0.008261
0.368851
8,822
254
85
34.732283
0.821839
0.186806
0
0.1375
0
0
0.14493
0.014362
0
0
0
0.003937
0
1
0.05625
false
0.08125
0.03125
0
0.16875
0
0
0
0
null
0
0
0
0
0
0
0
0
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
10f7d07ce41f42aef80a7a8089cabc1552820753
403
py
Python
pacote-download/CursoemVideo/ex036.py
pemedeiros/python-CeV
e34eebdfd6f5cf254a9ad1ce076083c735f68f28
[ "MIT" ]
null
null
null
pacote-download/CursoemVideo/ex036.py
pemedeiros/python-CeV
e34eebdfd6f5cf254a9ad1ce076083c735f68f28
[ "MIT" ]
null
null
null
pacote-download/CursoemVideo/ex036.py
pemedeiros/python-CeV
e34eebdfd6f5cf254a9ad1ce076083c735f68f28
[ "MIT" ]
null
null
null
valcasa = float(input('Qual o valor da casa? R$')) sal = float(input('Qual o valor do seu salário? R$ ')) anos = int(input('Em quantos anos você vai pagar?')) meses = anos * 12 valprest = valcasa / meses if valprest >= sal * 0.3: print('Seu empréstimo foi aprovado e o valor da prestação é de R${:.2f}'.format(valpre...
40.3
94
0.682382
68
403
4.044118
0.588235
0.087273
0.101818
0.109091
0.145455
0
0
0
0
0
0
0.021277
0.183623
403
9
95
44.777778
0.81459
0
0
0
0
0
0.51861
0
0
0
0
0
0
1
0
false
0
0
0
0
0.222222
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
10f9f94a2cb6881a8dc2262a9b2572388d4dc96b
3,524
py
Python
reviewboard/reviews/tests/test_preview_review_request_email_view.py
amalik2/reviewboard
676aa2dce38ce619a74f2d4cb3cfae9bce21416e
[ "MIT" ]
921
2015-01-01T15:26:28.000Z
2022-03-29T11:30:38.000Z
reviewboard/reviews/tests/test_preview_review_request_email_view.py
amalik2/reviewboard
676aa2dce38ce619a74f2d4cb3cfae9bce21416e
[ "MIT" ]
5
2015-03-17T18:57:47.000Z
2020-10-02T13:24:31.000Z
reviewboard/reviews/tests/test_preview_review_request_email_view.py
amalik2/reviewboard
676aa2dce38ce619a74f2d4cb3cfae9bce21416e
[ "MIT" ]
285
2015-01-12T06:24:36.000Z
2022-03-29T11:03:50.000Z
"""Unit tests for reviewboard.reviews.views.PreviewReviewRequestEmailView.""" from __future__ import unicode_literals from django.contrib.auth.models import User from reviewboard.site.urlresolvers import local_site_reverse from reviewboard.testing import TestCase class PreviewReviewRequestEmailViewTests(TestCase):...
38.725275
79
0.577753
321
3,524
6.087227
0.221184
0.179632
0.040942
0.094166
0.821904
0.821904
0.801945
0.61566
0.588536
0.588536
0
0.006421
0.337117
3,524
90
80
39.155556
0.830051
0.11748
0
0.790323
0
0
0.103605
0.036375
0
0
0
0
0.064516
1
0.064516
false
0
0.064516
0
0.16129
0
0
0
0
null
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
10fadf307cc6cb6a41c77070b0b754a502353b7a
10,067
py
Python
tools/fetch_codeforces_examples/fetch_cf_examples.py
adw1n/competitive-programming
b28a166e7c93d7b239c0a6b09eafd6020685afdf
[ "WTFPL" ]
null
null
null
tools/fetch_codeforces_examples/fetch_cf_examples.py
adw1n/competitive-programming
b28a166e7c93d7b239c0a6b09eafd6020685afdf
[ "WTFPL" ]
null
null
null
tools/fetch_codeforces_examples/fetch_cf_examples.py
adw1n/competitive-programming
b28a166e7c93d7b239c0a6b09eafd6020685afdf
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 import typing import re import os.path import enum import json import urllib import argparse import asyncio import lxml.html import requests import lxml.etree import aiohttp.client HOME = os.path.expanduser("~") USERNAME = "adwin_" # type: str CONTEST_DIR = os.path.join(HOME, "algo_competition...
42.121339
155
0.645674
1,248
10,067
4.992788
0.200321
0.052961
0.02311
0.017654
0.147007
0.090194
0.034344
0.012197
0
0
0
0.005525
0.244859
10,067
238
156
42.298319
0.814128
0.033575
0
0.12
0
0.005
0.16376
0.018471
0
0
0
0
0.05
1
0.1
false
0.005
0.06
0.015
0.285
0.01
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
10fc2e94412f589e0e53ed118f1b0edfd3dbc613
930
py
Python
rough_trade_calendar/urls.py
craiga/rough-trade-calendar
175c61391a50eaa4ada3dbc062158773cf72d9c0
[ "MIT" ]
1
2020-12-19T18:48:42.000Z
2020-12-19T18:48:42.000Z
rough_trade_calendar/urls.py
craiga/rough-trade-calendar
175c61391a50eaa4ada3dbc062158773cf72d9c0
[ "MIT" ]
430
2019-07-03T21:09:12.000Z
2021-11-09T08:09:41.000Z
rough_trade_calendar/urls.py
craiga/rough-trade-calendar
175c61391a50eaa4ada3dbc062158773cf72d9c0
[ "MIT" ]
1
2019-12-20T16:59:18.000Z
2019-12-20T16:59:18.000Z
"""URL Configuration.""" from django.conf import settings from django.contrib import admin from django.urls import include, path from django.views.decorators.csrf import csrf_exempt import debug_toolbar from csp.decorators import csp_exempt from graphene_django.views import GraphQLView from rough_trade_calendar impo...
32.068966
85
0.737634
109
930
6.100917
0.376147
0.06015
0.081203
0
0
0
0
0
0
0
0
0
0.133333
930
28
86
33.214286
0.825062
0.019355
0
0
0
0
0.156733
0.02649
0
0
0
0
0
1
0
false
0
0.363636
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
1
0
0
0
0
1
10fc8f53a38886959ced18253a539de49e8b8476
10,010
py
Python
util/pydevd/pysrc/tests/test_jysimpleTipper.py
hinesmr/mica
82d26b9c6b04e1b8cea7d80c054e2cf482a58520
[ "Apache-2.0" ]
6
2015-01-26T16:14:43.000Z
2019-08-22T01:29:24.000Z
util/pydevd/pysrc/tests/test_jysimpleTipper.py
hinesmr/mica
82d26b9c6b04e1b8cea7d80c054e2cf482a58520
[ "Apache-2.0" ]
3
2015-01-06T13:31:28.000Z
2016-10-11T16:52:09.000Z
util/pydevd/pysrc/tests/test_jysimpleTipper.py
hinesmr/mica
82d26b9c6b04e1b8cea7d80c054e2cf482a58520
[ "Apache-2.0" ]
null
null
null
#line to run: #java -classpath D:\bin\jython-2.1\jython.jar;D:\bin\eclipse331_1\plugins\org.junit_3.8.2.v200706111738\junit.jar;D:\bin\eclipse331_1\plugins\org.apache.ant_1.7.0.v200706080842\lib\ant.jar org.python.util.jython w:\org.python.pydev\pysrc\tests\test_jysimpleTipper.py import unittest import os import sys #...
38.79845
266
0.599101
1,222
10,010
4.765957
0.184124
0.038462
0.076923
0.10989
0.53829
0.48283
0.390968
0.307521
0.231628
0.140797
0
0.023784
0.243956
10,010
257
267
38.949416
0.745772
0.136863
0
0.175824
0
0.010989
0.161148
0.045312
0
0
0
0
0.43956
1
0.104396
false
0.005495
0.274725
0
0.417582
0.027473
0
0
0
null
0
0
0
0
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
1
10fc95e15d3a50c2d7236f7e5808fcfc6aa2b291
878
py
Python
GIL/thread_factorize.py
Chanakya-School-of-AI/pytorch-tutorials
8745db96172c45f6b07a589a88905a00cc555010
[ "MIT" ]
3
2021-07-07T14:40:09.000Z
2021-09-30T07:07:55.000Z
GIL/thread_factorize.py
Chanakya-School-of-AI/pytorch-tutorials
8745db96172c45f6b07a589a88905a00cc555010
[ "MIT" ]
null
null
null
GIL/thread_factorize.py
Chanakya-School-of-AI/pytorch-tutorials
8745db96172c45f6b07a589a88905a00cc555010
[ "MIT" ]
2
2021-07-24T14:52:32.000Z
2021-11-15T10:12:06.000Z
from threading import Thread from time import time def factorize(number): for i in range(1, number + 1): if number % i == 0: yield i class FactorizeThread(Thread): def __init__(self, number): super().__init__() self.number = number def run(self): self.factors...
23.72973
67
0.665148
112
878
5.142857
0.401786
0.052083
0.048611
0.0625
0.097222
0.097222
0.097222
0
0
0
0
0.048316
0.222096
878
37
67
23.72973
0.795022
0.078588
0
0.214286
0
0
0.101737
0
0
0
0
0
0
1
0.107143
false
0
0.071429
0
0.214286
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
10fd71f61fee7303569e1de176660e413458e1b6
8,774
py
Python
spinalcordtoolbox/testing/create_test_data.py
valosekj/spinalcordtoolbox
266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09
[ "MIT" ]
null
null
null
spinalcordtoolbox/testing/create_test_data.py
valosekj/spinalcordtoolbox
266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09
[ "MIT" ]
null
null
null
spinalcordtoolbox/testing/create_test_data.py
valosekj/spinalcordtoolbox
266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09
[ "MIT" ]
null
null
null
# -*- coding: utf-8 # Collection of functions to create data for testing import numpy as np from datetime import datetime import itertools from skimage.transform import rotate import nibabel as nib from spinalcordtoolbox.image import Image from spinalcordtoolbox.resampling import resample_nib DEBUG = False # Save ...
46.178947
120
0.646114
1,351
8,774
4.105107
0.226499
0.019473
0.008655
0.006491
0.338622
0.301839
0.248828
0.230436
0.216372
0.20952
0
0.026112
0.236152
8,774
189
121
46.42328
0.801403
0.418623
0
0.166667
0
0
0.034744
0
0
0
0
0
0
1
0.03125
false
0
0.083333
0
0.145833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
10ff3de40776e6430bc11e0702e1663303a5590b
7,829
py
Python
UI/ui_main.py
BrunoTh/ETS2Autopilot
72762d4161866a876c11f39ba22eadd8f2aff9a9
[ "MIT" ]
86
2017-07-04T17:03:33.000Z
2022-03-06T01:00:56.000Z
UI/ui_main.py
BrunoTh/ETS2Autopilot
72762d4161866a876c11f39ba22eadd8f2aff9a9
[ "MIT" ]
17
2017-07-19T11:09:20.000Z
2021-03-17T16:48:06.000Z
UI/ui_main.py
BrunoTh/ETS2Autopilot
72762d4161866a876c11f39ba22eadd8f2aff9a9
[ "MIT" ]
18
2017-07-28T00:50:05.000Z
2021-09-24T06:09:27.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'designer\main.ui' # # Created by: PyQt5 UI code generator 5.9 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainW...
55.133803
97
0.711968
841
7,829
6.491082
0.20214
0.076571
0.064481
0.030775
0.163217
0.086096
0.038102
0.01612
0.01612
0.01612
0
0.032734
0.168859
7,829
141
98
55.524823
0.806209
0.023502
0
0.031008
1
0
0.082231
0
0
0
0
0
0
1
0.015504
false
0
0.007752
0
0.031008
0
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
10ff6f610857fa4da1c2272a7ab5705a925dfc69
98
py
Python
core_backend/apps.py
PoieoDev/User-Accounts-Template
1e6586d9a79d3df61d6ae7589415f23e8aeeea07
[ "MIT" ]
null
null
null
core_backend/apps.py
PoieoDev/User-Accounts-Template
1e6586d9a79d3df61d6ae7589415f23e8aeeea07
[ "MIT" ]
null
null
null
core_backend/apps.py
PoieoDev/User-Accounts-Template
1e6586d9a79d3df61d6ae7589415f23e8aeeea07
[ "MIT" ]
null
null
null
from django.apps import AppConfig class CoreBackendConfig(AppConfig): name = 'core_backend'
16.333333
35
0.77551
11
98
6.818182
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.153061
98
5
36
19.6
0.903614
0
0
0
0
0
0.122449
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
800076f2bca31ec7949923ed290ca06ed9e6401a
13,035
py
Python
ped_core/keytab.py
jpfxgood/ped
f753ca27e4462c321ed28f00e1ef47fbde62990e
[ "MIT" ]
null
null
null
ped_core/keytab.py
jpfxgood/ped
f753ca27e4462c321ed28f00e1ef47fbde62990e
[ "MIT" ]
21
2020-07-03T13:14:15.000Z
2020-07-14T14:27:43.000Z
ped_core/keytab.py
jpfxgood/ped
f753ca27e4462c321ed28f00e1ef47fbde62990e
[ "MIT" ]
null
null
null
# Copyright 2009-2012 James P Goodwin ped tiny python editor """ module that contains the symbolic names of the keys """ import curses KEYTAB_NOKEY=chr(0) KEYTAB_ALTA=chr(27)+'a' KEYTAB_ALTB=chr(27)+'b' KEYTAB_ALTC=chr(27)+'c' KEYTAB_ALTD=chr(27)+'d' KEYTAB_ALTE=chr(27)+'e' KEYTAB_ALTF=chr(27)+'f' KEYTAB_ALTG=chr(27)+...
27.043568
60
0.715919
2,123
13,035
4.065473
0.149317
0.137875
0.011123
0.006952
0.119801
0.119801
0.115398
0.102422
0.102422
0.102422
0
0.099828
0.062447
13,035
481
61
27.099792
0.606415
0.008592
0
0.004219
0
0
0.164215
0
0
0
0
0
0
1
0
false
0
0.00211
0
0.00211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8001f091db832c8853cc1001b477b8ee30ecdde0
19,438
py
Python
agilegan/transfer.py
open-mmlab/MMGEN-FaceStylor
67e7b17a323ac5a3eae28b88e0b2c921876b50ca
[ "Apache-2.0" ]
122
2021-12-10T06:19:03.000Z
2022-03-27T12:30:42.000Z
agilegan/transfer.py
open-mmlab/MMGEN-FaceStylor
67e7b17a323ac5a3eae28b88e0b2c921876b50ca
[ "Apache-2.0" ]
1
2021-12-24T10:07:41.000Z
2021-12-24T10:07:41.000Z
agilegan/transfer.py
open-mmlab/MMGEN-FaceStylor
67e7b17a323ac5a3eae28b88e0b2c921876b50ca
[ "Apache-2.0" ]
12
2021-12-10T10:38:19.000Z
2022-02-08T12:54:46.000Z
from copy import deepcopy import torch import torch.nn.functional as F from mmgen.models.builder import MODELS, build_module from mmgen.models.common import set_requires_grad from mmgen.models.gans.static_unconditional_gan import StaticUnconditionalGAN from torch.nn.parallel.distributed import _find_tensors from .los...
41.712446
85
0.554635
2,139
19,438
4.773259
0.134175
0.047013
0.054848
0.046523
0.520764
0.479334
0.469148
0.435847
0.426836
0.409011
0
0.00588
0.3701
19,438
465
86
41.802151
0.827997
0.164214
0
0.513846
0
0
0.051348
0.028589
0
0
0
0.004301
0
1
0.021538
false
0
0.033846
0
0.070769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80021b4bd92a24d71fffed003a89ba58002247b3
1,766
py
Python
tests/unit/utils/aws/test_aws_responses.py
Madajevas/localstack
85c712e50d45183b9703c682de02d5114c50c47c
[ "Apache-2.0" ]
2
2021-11-19T00:06:54.000Z
2021-12-26T02:03:47.000Z
tests/unit/utils/aws/test_aws_responses.py
Madajevas/localstack
85c712e50d45183b9703c682de02d5114c50c47c
[ "Apache-2.0" ]
null
null
null
tests/unit/utils/aws/test_aws_responses.py
Madajevas/localstack
85c712e50d45183b9703c682de02d5114c50c47c
[ "Apache-2.0" ]
null
null
null
import xml.etree.ElementTree as ET import pytest from localstack.utils.aws.aws_responses import to_xml result_raw = { "DescribeChangeSetResult": { # ... "Changes": [ { "ResourceChange": { "Replacement": False, "Scope": ["Tags"], ...
26.358209
154
0.610985
203
1,766
5.019704
0.334975
0.088322
0.035329
0.054956
0.274779
0.13739
0.09421
0.09421
0.09421
0.09421
0
0.000737
0.231597
1,766
66
155
26.757576
0.750184
0.022084
0
0.08
0
0.02
0.186195
0.11891
0
0
0
0
0.02
1
0.06
false
0.02
0.06
0
0.14
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80033e1784f2fa309970f5133dc3cfd33c45fae1
991
py
Python
server/accounts/schema.py
kingbar1990/react-apollo-django-subscriptions-boilerplate
e6b948ab7f211157e6ef0592a9d1b943a0d88b13
[ "MIT" ]
null
null
null
server/accounts/schema.py
kingbar1990/react-apollo-django-subscriptions-boilerplate
e6b948ab7f211157e6ef0592a9d1b943a0d88b13
[ "MIT" ]
22
2020-06-05T19:56:44.000Z
2022-03-11T23:41:45.000Z
server/accounts/schema.py
kingbar1990/react-apollo-django-subscriptions-boilerplate
e6b948ab7f211157e6ef0592a9d1b943a0d88b13
[ "MIT" ]
null
null
null
import graphene from graphene_django.types import DjangoObjectType from graphql_jwt.decorators import login_required from django.contrib.auth import get_user_model class UserType(DjangoObjectType): """ UserType object for GraphQL """ class Meta: model = get_user_model() has_unreaded_messages = g...
27.527778
81
0.694248
122
991
5.409836
0.45082
0.078788
0.054545
0
0
0
0
0
0
0
0
0.001307
0.228052
991
35
82
28.314286
0.861438
0.092836
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.166667
0.083333
0.708333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
800640b204af733d917dcb2f2cc81ab285988b93
5,393
py
Python
ual_teleop/scripts/joy_teleop.py
ros-ual/ual
9f03926fadf094d6f55a9b75fc1cae39c71c2045
[ "MIT" ]
null
null
null
ual_teleop/scripts/joy_teleop.py
ros-ual/ual
9f03926fadf094d6f55a9b75fc1cae39c71c2045
[ "MIT" ]
null
null
null
ual_teleop/scripts/joy_teleop.py
ros-ual/ual
9f03926fadf094d6f55a9b75fc1cae39c71c2045
[ "MIT" ]
null
null
null
#!/usr/bin/env python import yaml import argparse import rospy import rospkg import math from joy_handle import JoyHandle, ButtonState from sensor_msgs.msg import Joy from ual_core.srv import TakeOff, Land, SetVelocity from ual_core.msg import State from geometry_msgs.msg import TwistStamped from geometry_msgs.msg impo...
49.027273
142
0.672168
760
5,393
4.502632
0.231579
0.049971
0.068381
0.070134
0.395675
0.355932
0.355932
0.325248
0.304793
0.283168
0
0.007853
0.220842
5,393
109
143
49.477064
0.806521
0.038198
0
0.088889
0
0
0.101564
0.009654
0
0
0
0.009174
0
1
0.055556
false
0
0.122222
0
0.188889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
800826e08a1cf06e466211edc2d614832eb36a58
4,910
py
Python
pyNastran/femutils/coord_transforms.py
jtran10/pyNastran
4aed8e05b91576c2b50ee835f0497a9aad1d2cb0
[ "BSD-3-Clause" ]
null
null
null
pyNastran/femutils/coord_transforms.py
jtran10/pyNastran
4aed8e05b91576c2b50ee835f0497a9aad1d2cb0
[ "BSD-3-Clause" ]
null
null
null
pyNastran/femutils/coord_transforms.py
jtran10/pyNastran
4aed8e05b91576c2b50ee835f0497a9aad1d2cb0
[ "BSD-3-Clause" ]
null
null
null
""" Defines general coordinate system related functions including: - xyz_to_rtz_array(xyz) - xyz_to_rtp_array(xyz) - rtz_to_xyz_array(xyz) - rtp_to_xyz_array(xyz) - rtz_to_rtp_array(xyz) - rtp_to_rtz_array(xyz) - coords = cylindrical_rotation_matrix(thetar, dtype='float64') """ # pylint: disable=C0103 from __...
25.706806
74
0.538289
736
4,910
3.513587
0.182065
0.034029
0.025522
0.015081
0.343387
0.233179
0.136118
0.119876
0.119876
0.119876
0
0.023113
0.268635
4,910
190
75
25.842105
0.69702
0.419959
0
0.162162
0
0
0.00269
0
0
0
0
0
0.054054
1
0.094595
false
0
0.027027
0
0.216216
0.013514
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80083609ce2db45581369120327cc17264cf2da4
2,414
py
Python
src/streamlink/utils/l10n.py
nxkbd/streamlink
0ba7767c024a6d6086d570e342680dc40c05a57b
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/utils/l10n.py
nxkbd/streamlink
0ba7767c024a6d6086d570e342680dc40c05a57b
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/utils/l10n.py
nxkbd/streamlink
0ba7767c024a6d6086d570e342680dc40c05a57b
[ "BSD-2-Clause" ]
null
null
null
import locale from iso639 import languages from iso3166 import countries DEFAULT_LANGUAGE_CODE = "en_US" class Localization(object): def __init__(self, language_code=None): self._language_code = None self.country = None self.language = None self.explicit = bool(language_code) ...
33.527778
102
0.60232
265
2,414
5.332075
0.260377
0.203822
0.067941
0.067941
0.363057
0.154989
0.154989
0.104034
0
0
0
0.015024
0.310688
2,414
71
103
34
0.834135
0.036454
0
0.214286
0
0
0.054671
0
0
0
0
0
0
1
0.107143
false
0.017857
0.053571
0.017857
0.285714
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
0
0
0
0
0
0
1
800911a43c7133868a3683a5d66978dc4ccb6173
783
py
Python
greww/_envs.py
A-Hilaly/greww
0e58bf1a450987202554ee232d013bd717155d1d
[ "Apache-2.0" ]
null
null
null
greww/_envs.py
A-Hilaly/greww
0e58bf1a450987202554ee232d013bd717155d1d
[ "Apache-2.0" ]
null
null
null
greww/_envs.py
A-Hilaly/greww
0e58bf1a450987202554ee232d013bd717155d1d
[ "Apache-2.0" ]
null
null
null
import os env = lambda var : os.environ[var] try: GREWW_PATH = env('GREWW_PATH') GREWW_CACHE = env('GREWW_CACHE') GREWW_CONFIG = env('GREWW_CONFIG') except: # no scop tests def _dispatch_path(fdir): fn, fd = '', '' bo = False for e in fdir[::-1]: if bo: ...
23.029412
41
0.52235
96
783
3.895833
0.375
0.120321
0.112299
0.090909
0
0
0
0
0
0
0
0.005825
0.342273
783
33
42
23.727273
0.720388
0.016603
0
0.068966
0
0
0.109375
0
0
0
0
0
0
1
0.034483
false
0
0.034483
0
0.103448
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8009ef4ae49f5108f510678da5c940c0974957ce
1,464
py
Python
kmcsim/buildtools/mklatt.py
vlcekl/kmcpy
b55a23f64d4b6d2871671f4a16346cc897c4a2a5
[ "MIT" ]
null
null
null
kmcsim/buildtools/mklatt.py
vlcekl/kmcpy
b55a23f64d4b6d2871671f4a16346cc897c4a2a5
[ "MIT" ]
null
null
null
kmcsim/buildtools/mklatt.py
vlcekl/kmcpy
b55a23f64d4b6d2871671f4a16346cc897c4a2a5
[ "MIT" ]
null
null
null
#!//anaconda/envs/py36/bin/python # # File name: mklatt.py # Date: 2018/08/02 16:15 # Author: Lukas Vlcek # # Description: # import sys import re def make_sc(box): print('sc', *box) return def make_bcc(box): print('bcc', *box) return def make_fcc(box): lx, ly, lz = box latt ...
20.619718
65
0.536202
220
1,464
3.486364
0.395455
0.027379
0.023468
0.041721
0.104302
0.054759
0.054759
0.054759
0.054759
0.054759
0
0.026718
0.284153
1,464
70
66
20.914286
0.705153
0.214481
0
0.060606
0
0
0.105124
0
0
0
0
0
0
1
0.121212
false
0
0.060606
0
0.272727
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8009f9c9faa56881d77c010013d2d6763c2f0d9f
10,083
py
Python
run_experiment.py
weelingtan/LocIT
0795a6cbb64a72b7906824b451d2bbb4559b080d
[ "Apache-2.0" ]
null
null
null
run_experiment.py
weelingtan/LocIT
0795a6cbb64a72b7906824b451d2bbb4559b080d
[ "Apache-2.0" ]
null
null
null
run_experiment.py
weelingtan/LocIT
0795a6cbb64a72b7906824b451d2bbb4559b080d
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- """ Run experiments. :author: Vincent Vercruyssen (2019) :license: Apache License, Version 2.0, see LICENSE for details. """ import sys, os, time, argparse import numpy as np import pandas as pd from sklearn.metrics import roc_auc_score # transfer models from models.locit import apply_LocIT...
43.83913
167
0.562829
1,442
10,083
3.79473
0.214286
0.016082
0.010965
0.032895
0.393458
0.322917
0.275402
0.204313
0.121345
0.111111
0
0.076669
0.28077
10,083
230
168
43.83913
0.677882
0.410691
0
0.067416
0
0
0.095871
0
0
0
0
0
0
1
0.022472
false
0
0.101124
0
0.134831
0.078652
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
800b886faa1ae8ac7c6f91868cae769b7429e1cc
3,416
py
Python
freeze_reqs/pytest_freeze_reqs.py
j-kawa/pytest-freeze-reqs
b0bf088bf4865dae9d6f7b78efeea35e1c113678
[ "MIT" ]
null
null
null
freeze_reqs/pytest_freeze_reqs.py
j-kawa/pytest-freeze-reqs
b0bf088bf4865dae9d6f7b78efeea35e1c113678
[ "MIT" ]
null
null
null
freeze_reqs/pytest_freeze_reqs.py
j-kawa/pytest-freeze-reqs
b0bf088bf4865dae9d6f7b78efeea35e1c113678
[ "MIT" ]
1
2021-07-01T20:45:05.000Z
2021-07-01T20:45:05.000Z
import pytest def pytest_addoption(parser): group = parser.getgroup("general") group.addoption( "--freeze_reqs", action="store_true", help="run check if requirements (req*.txt|pip) are frozen", ) parser.addini( "freeze-reqs-ignore-paths", type="linelist", ...
31.33945
85
0.596897
379
3,416
5.271768
0.332454
0.07007
0.032032
0.063063
0.211211
0.109109
0.109109
0.109109
0.051051
0.051051
0
0.00125
0.297424
3,416
108
86
31.62963
0.83125
0.035714
0
0.204819
0
0
0.203721
0.053065
0
0
0
0
0
1
0.096386
false
0
0.024096
0.012048
0.26506
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
800bcb34a09cb433be662372e06e48fe14cfe496
17,760
py
Python
src/test/lcv2-2ray-5.0.1-/v2ray_old_3_2019-1-4/client/macos/mods/tool_mac.py
lucycore/lcv2
cfda722b430036e2a2de946b71d81d265e2165dc
[ "MIT" ]
null
null
null
src/test/lcv2-2ray-5.0.1-/v2ray_old_3_2019-1-4/client/macos/mods/tool_mac.py
lucycore/lcv2
cfda722b430036e2a2de946b71d81d265e2165dc
[ "MIT" ]
null
null
null
src/test/lcv2-2ray-5.0.1-/v2ray_old_3_2019-1-4/client/macos/mods/tool_mac.py
lucycore/lcv2
cfda722b430036e2a2de946b71d81d265e2165dc
[ "MIT" ]
null
null
null
# -- coding:utf-8-- import json import paramiko import re import os from urllib import request #--------------------------------------------------------------------------------------- def start_v2(): gzlj = os.getcwd() key_json_lj = os.path.join(gzlj, "pythonz5", "sun36x64", "v2ray", "config.json") request.urlret...
20.11325
88
0.523536
2,325
17,760
3.84172
0.128172
0.034931
0.022391
0.015674
0.620802
0.568294
0.546014
0.546014
0.540416
0.527429
0
0.024269
0.174043
17,760
882
89
20.136054
0.584634
0.160248
0
0.605431
0
0
0.185637
0.051652
0
0
0
0
0
1
0.051118
false
0.025559
0.007987
0
0.059105
0.228435
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
800d2e58139d60299371e076a22f726713168331
452
py
Python
Exercicios/ex054.py
luisgnc/Python-Exercises
94979abb3ca1515145bde54ecd2f784e5d903219
[ "MIT" ]
null
null
null
Exercicios/ex054.py
luisgnc/Python-Exercises
94979abb3ca1515145bde54ecd2f784e5d903219
[ "MIT" ]
null
null
null
Exercicios/ex054.py
luisgnc/Python-Exercises
94979abb3ca1515145bde54ecd2f784e5d903219
[ "MIT" ]
null
null
null
pessoa_maior = 0 pessoa_menor = 0 for i in range(1, 8): ano_pessoa = int(input(f'Em que ano a {i}ª pessoa nasceu? ')) if ano_pessoa <= 1900 or ano_pessoa >= 2021: print('Your not alive bitch!') break elif ano_pessoa <= 2002: pessoa_maior += 1 else: pessoa_menor += 1 print...
32.285714
68
0.646018
73
452
3.863014
0.561644
0.12766
0
0
0
0
0
0
0
0
0
0.052786
0.245575
452
13
69
34.769231
0.774194
0
0
0
0
0
0.373894
0
0
0
0
0
0
1
0
false
0
0
0
0
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8010a7e60e4c67f9ff387b9c7eef7cdff821f6f3
7,427
py
Python
Video-Person-ReID/Graph_ModelDataGen.py
anurag3/2019-CVPR-AIC-Track-2-UWIPL
61ee2c96611e10fe51a52033b1cd0e2804d544ca
[ "MIT" ]
20
2019-06-05T08:43:26.000Z
2021-12-07T08:48:18.000Z
Video-Person-ReID/Graph_ModelDataGen.py
yizhou-wang/2019-CVPR-AIC-Track-2-UWIPL-ETRI
387924b1e33e0594977cd095c26a147e4a7f8192
[ "MIT" ]
8
2019-10-05T11:17:11.000Z
2020-04-04T00:40:20.000Z
Video-Person-ReID/Graph_ModelDataGen.py
yizhou-wang/2019-CVPR-AIC-Track-2-UWIPL-ETRI
387924b1e33e0594977cd095c26a147e4a7f8192
[ "MIT" ]
14
2019-06-16T23:09:15.000Z
2021-09-13T08:36:50.000Z
from __future__ import print_function, absolute_import import os import sys import time import datetime import argparse import os.path as osp import numpy as np import torch import torch.nn as nn import torch.backends.cudnn as cudnn from torch.utils.data import DataLoader from torch.autograd import Variable from torch...
34.225806
136
0.610475
955
7,427
4.569634
0.253403
0.017874
0.0055
0.007333
0.328139
0.277269
0.241522
0.215399
0.199817
0.199817
0
0.031937
0.270634
7,427
216
137
34.384259
0.773675
0.000269
0
0.329609
0
0
0.082446
0.025192
0
0
0
0
0.01676
1
0.01676
false
0
0.134078
0
0.150838
0.055866
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8010d7a2405a42f8001165cec41e8db24b3d32c2
6,024
py
Python
test/test_soft_regression.py
jack09581013/Dual-GDNet
d9d65928208caee781cbe8f8f794241d06b4bf5d
[ "MIT" ]
null
null
null
test/test_soft_regression.py
jack09581013/Dual-GDNet
d9d65928208caee781cbe8f8f794241d06b4bf5d
[ "MIT" ]
null
null
null
test/test_soft_regression.py
jack09581013/Dual-GDNet
d9d65928208caee781cbe8f8f794241d06b4bf5d
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import matplotlib.pyplot as plt from torch.autograd import Function def disparity_regression(x): disp = torch.arange(0, x.size(1)).unsqueeze(0) disp = disp.repeat(x.size(0), 1) return torch.sum(x*disp, dim=1).uns...
30.57868
92
0.586487
891
6,024
3.830528
0.171717
0.084383
0.037504
0.04102
0.397304
0.353355
0.302959
0.243774
0.154117
0.142983
0
0.032982
0.260126
6,024
196
93
30.734694
0.73278
0.130146
0
0.266187
0
0
0.00786
0.00441
0
0
0
0
0
1
0.136691
false
0
0.043165
0.014388
0.323741
0.014388
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8011547341d55f4226d084d9c454ab332252453a
542
py
Python
randomnamegenarator.py
adityar224/Python
5bbb1b86cdd2351c7c851c30d80df5e7b2c8d28b
[ "Apache-2.0" ]
null
null
null
randomnamegenarator.py
adityar224/Python
5bbb1b86cdd2351c7c851c30d80df5e7b2c8d28b
[ "Apache-2.0" ]
null
null
null
randomnamegenarator.py
adityar224/Python
5bbb1b86cdd2351c7c851c30d80df5e7b2c8d28b
[ "Apache-2.0" ]
null
null
null
#to generate a random name import tkinter as tk import random def namegen(): f=open("names.txt",'r') r2=random.randrange(0,4945) countline=0;name='' for line in f: if(countline==r2): name=line break countline+=1 f.close() message=tk.Message(r,text=name,bg=...
23.565217
78
0.621771
82
542
4.109756
0.560976
0.059347
0
0
0
0
0
0
0
0
0
0.030093
0.202952
542
22
79
24.636364
0.75
0.095941
0
0
1
0
0.100616
0
0
0
0
0
0
1
0.052632
false
0
0.105263
0
0.157895
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
801221814dd3561ad89dbc84e1db20b23ada021c
2,467
py
Python
src/docs/generator/logger_parser/generate.py
e-ntro-py/win-vind
1ec805420732c82a46e2c79720db728ded792814
[ "MIT" ]
null
null
null
src/docs/generator/logger_parser/generate.py
e-ntro-py/win-vind
1ec805420732c82a46e2c79720db728ded792814
[ "MIT" ]
null
null
null
src/docs/generator/logger_parser/generate.py
e-ntro-py/win-vind
1ec805420732c82a46e2c79720db728ded792814
[ "MIT" ]
null
null
null
# coding: utf-8 from transitions.extensions import GraphMachine class Model(object): pass states = [ 'Waiting inputs', 'Waiting inputs in <num>', 'Rejected', 'Rejected while matching with subset', 'Accepted', 'Accepted in <num>', 'Accepted in <any>' ] transitions = [ # Waiting ...
19.579365
68
0.483989
235
2,467
5.059574
0.246809
0.16148
0.087468
0.114382
0.366695
0.19344
0.060555
0
0
0
0
0.021118
0.347385
2,467
125
69
19.736
0.717391
0.05756
0
0.300971
0
0
0.305268
0.018135
0
0
0
0
0
1
0
false
0.009709
0.009709
0
0.019417
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
801226395bcb40cc823fe4dd61aaa8246c7fea5e
1,163
py
Python
unsorted/pythonsnippets_0051.py
fiddlerwoaroof/sandbox
652acaf710a8b60f005769bde317e7bbf548cc2b
[ "BSD-3-Clause" ]
null
null
null
unsorted/pythonsnippets_0051.py
fiddlerwoaroof/sandbox
652acaf710a8b60f005769bde317e7bbf548cc2b
[ "BSD-3-Clause" ]
null
null
null
unsorted/pythonsnippets_0051.py
fiddlerwoaroof/sandbox
652acaf710a8b60f005769bde317e7bbf548cc2b
[ "BSD-3-Clause" ]
null
null
null
def wrapper(func): def _inner(a): results = [] results.append(func(a)) v = results[0].next() idx = 0 while True: if not isinstance(v, Result): results.append(func(v)) idx = len(results) - 1 v = results[idx].next() ...
21.537037
49
0.450559
157
1,163
3.324841
0.216561
0.210728
0.030651
0.045977
0.318008
0.272031
0.272031
0.272031
0.272031
0.272031
0
0.033382
0.407567
1,163
54
49
21.537037
0.724238
0
0
0.4375
0
0
0
0
0
0
0
0
0
1
0.145833
false
0
0
0
0.1875
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
0
0
0
0
0
0
1
80122c1ac4058449323ee4626cfbb15560375a32
666
py
Python
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_projects/tests/factories.py
kaka-lin/azure-intelligent-edge-patterns
766833c7c25d2458cec697937be288202d1763bc
[ "MIT" ]
176
2019-07-03T00:20:15.000Z
2022-03-14T07:51:22.000Z
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_projects/tests/factories.py
kaka-lin/azure-intelligent-edge-patterns
766833c7c25d2458cec697937be288202d1763bc
[ "MIT" ]
121
2019-06-24T20:47:27.000Z
2022-03-28T02:16:18.000Z
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_projects/tests/factories.py
kaka-lin/azure-intelligent-edge-patterns
766833c7c25d2458cec697937be288202d1763bc
[ "MIT" ]
144
2019-06-18T18:48:43.000Z
2022-03-31T12:14:46.000Z
"""App model factories. """ from factory import DjangoModelFactory, Faker, SubFactory from ...azure_projects.models import Project from ...azure_settings.tests.factories import SettingFactory class ProjectFactory(DjangoModelFactory): """ProjectFactory.""" setting = SubFactory(SettingFactory) name = Fa...
20.8125
60
0.695195
63
666
7.206349
0.47619
0.039648
0.136564
0.096916
0.259912
0.259912
0.259912
0.259912
0.259912
0.259912
0
0
0.201201
666
31
61
21.483871
0.853383
0.084084
0
0.625
0
0
0.040472
0
0
0
0
0
0
1
0
false
0
0.1875
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80124c2e7a29a44670216e7b4c369b44f3f2c5dc
2,190
py
Python
spark/ReqModPython.py
wensheng/spark
ab47107d000f0670f4cfe131637f72471a04cfb2
[ "MIT" ]
null
null
null
spark/ReqModPython.py
wensheng/spark
ab47107d000f0670f4cfe131637f72471a04cfb2
[ "MIT" ]
null
null
null
spark/ReqModPython.py
wensheng/spark
ab47107d000f0670f4cfe131637f72471a04cfb2
[ "MIT" ]
null
null
null
#import time from spark.ReqBase import ReqBase class ReqModPython(ReqBase): def __init__(self, req, reallympy=True): self.reallympy = reallympy self.mpyreq = req self.mpyreq.add_common_vars() self.mpyreq.content_type = "text/html" self.mpyreq.status = 200 self._have_status = 0 ReqBase.__init__(self) ...
25.764706
56
0.699087
314
2,190
4.735669
0.308917
0.114324
0.03497
0.05111
0.110962
0.092804
0.092804
0.069939
0.069939
0.069939
0
0.006111
0.178082
2,190
84
57
26.071429
0.82
0.045205
0
0.185714
0
0
0.01534
0
0
0
0
0
0
1
0.142857
false
0.014286
0.085714
0.014286
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8012892e7728aa0fca32fc55889737c34c9bce78
2,840
py
Python
display_restults.py
MickRemmerswaal/ASCAD
bdd54303922df5d0798ffb9fc4a9a5d13429e45e
[ "BSD-2-Clause" ]
null
null
null
display_restults.py
MickRemmerswaal/ASCAD
bdd54303922df5d0798ffb9fc4a9a5d13429e45e
[ "BSD-2-Clause" ]
null
null
null
display_restults.py
MickRemmerswaal/ASCAD
bdd54303922df5d0798ffb9fc4a9a5d13429e45e
[ "BSD-2-Clause" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np def load_data(data_loc): return np.genfromtxt(data_loc, delimiter=',') def calc_average(files, range): averages = [] for i in range: to_average_rows = np.asarray(files)[:, i] average = np.round(np.average(to_average_rows, axis=0)) ...
27.572816
104
0.685915
441
2,840
4.213152
0.303855
0.091496
0.073197
0.058127
0.325081
0.294941
0.268568
0.210441
0.210441
0.185145
0
0.037359
0.189437
2,840
102
105
27.843137
0.769765
0.171479
0
0.196078
0
0
0.032446
0.02276
0
0
0
0
0
1
0.078431
false
0
0.039216
0.019608
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8012ad5def5e3503fb5f33d5f1de10fd3533f6ca
2,171
py
Python
tests/test_cases/test_cocotb/test_testfactory.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
350
2015-01-09T12:50:13.000Z
2019-07-12T09:08:17.000Z
tests/test_cases/test_cocotb/test_testfactory.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
710
2015-01-05T16:42:29.000Z
2019-07-16T13:40:00.000Z
tests/test_cases/test_cocotb/test_testfactory.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
182
2015-01-08T09:35:20.000Z
2019-07-12T18:41:37.000Z
# Copyright cocotb contributors # Licensed under the Revised BSD License, see LICENSE for details. # SPDX-License-Identifier: BSD-3-Clause """ Tests of cocotb.regression.TestFactory functionality """ import random import string from collections.abc import Coroutine import cocotb from cocotb.regression import TestFacto...
25.845238
76
0.707969
276
2,171
5.326087
0.311594
0.091837
0.040816
0.031293
0.080272
0.05034
0.05034
0.05034
0
0
0
0.033861
0.15661
2,171
83
77
26.156627
0.768979
0.085675
0
0.037736
0
0
0.068861
0.022278
0
0
0
0
0.075472
1
0.09434
false
0
0.113208
0
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
8012c5a341f13ec069b05a8dc76bfdac9b6781b3
5,617
py
Python
pkgs/servers/home-assistant/parse-requirements.py
hamhut1066/nixpkgs
a2736d27d16aecd1f2179e07db23bf1b6c0c4c46
[ "MIT" ]
2
2021-10-20T11:39:26.000Z
2021-11-08T09:49:56.000Z
pkgs/servers/home-assistant/parse-requirements.py
hamhut1066/nixpkgs
a2736d27d16aecd1f2179e07db23bf1b6c0c4c46
[ "MIT" ]
4
2021-09-28T05:38:41.000Z
2022-02-26T10:09:42.000Z
pkgs/servers/home-assistant/parse-requirements.py
hamhut1066/nixpkgs
a2736d27d16aecd1f2179e07db23bf1b6c0c4c46
[ "MIT" ]
1
2019-02-03T10:41:26.000Z
2019-02-03T10:41:26.000Z
#! /usr/bin/env nix-shell #! nix-shell -i python3 -p "python3.withPackages (ps: with ps; [ aiohttp astral async-timeout attrs certifi jinja2 pyjwt cryptography pip pytz pyyaml requests ruamel_yaml voluptuous python-slugify ])" # # This script downloads Home Assistant's source tarball. # Inside the homeassistant/compone...
42.55303
200
0.659605
715
5,617
5.100699
0.33986
0.034549
0.009597
0.013162
0.039485
0.031259
0.015903
0.015903
0
0
0
0.006998
0.211323
5,617
131
201
42.877863
0.816253
0.29749
0
0.043478
0
0
0.155045
0.029374
0
0
0
0
0.01087
1
0.043478
false
0.01087
0.141304
0
0.23913
0.01087
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80135844df6de664ba97f408d31907df391e856c
9,778
py
Python
src/oci/ai_anomaly_detection/models/per_signal_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/ai_anomaly_detection/models/per_signal_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/ai_anomaly_detection/models/per_signal_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
28.342029
245
0.602679
1,161
9,778
4.950904
0.139535
0.048017
0.172234
0.076896
0.603166
0.502088
0.392832
0.335421
0.335421
0.335421
0
0.002712
0.321129
9,778
344
246
28.424419
0.863212
0.548272
0
0.086538
0
0
0.082039
0
0
0
0
0
0
1
0.211538
false
0
0.019231
0.019231
0.394231
0
0
0
0
null
0
0
0
0
0
0
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
80151715f16054e2414846460fbd9c81a2d95a58
1,180
py
Python
google/cloud/forseti/scanner/scanners/ke_version_scanner.py
aarontp/forseti-security
6d03c14114468ff6170846392b7d14a0619fa9f0
[ "Apache-2.0" ]
921
2017-03-09T01:01:24.000Z
2019-04-16T11:38:25.000Z
google/cloud/forseti/scanner/scanners/ke_version_scanner.py
aarontp/forseti-security
6d03c14114468ff6170846392b7d14a0619fa9f0
[ "Apache-2.0" ]
1,996
2017-03-03T22:07:50.000Z
2019-04-17T00:02:28.000Z
google/cloud/forseti/scanner/scanners/ke_version_scanner.py
aarontp/forseti-security
6d03c14114468ff6170846392b7d14a0619fa9f0
[ "Apache-2.0" ]
241
2017-03-09T01:00:04.000Z
2019-04-15T18:53:35.000Z
# Copyright 2017 The Forseti Security 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 ap...
33.714286
74
0.784746
170
1,180
5.347059
0.558824
0.066007
0.061606
0.066007
0.063806
0
0
0
0
0
0
0.007937
0.145763
1,180
34
75
34.705882
0.893849
0.620339
0
0
0
0
0.016548
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
80159b75aa113a30275dad91c182d915e6dabf31
142
py
Python
boot.py
matejv/micropython-weatherstation
3c357fa14d83bb6a21388f953cc994601a6e8eda
[ "MIT" ]
7
2017-04-16T16:52:00.000Z
2019-07-26T14:53:19.000Z
boot.py
matejv/micropython-weatherstation
3c357fa14d83bb6a21388f953cc994601a6e8eda
[ "MIT" ]
1
2017-02-02T07:21:49.000Z
2017-02-02T07:21:49.000Z
boot.py
matejv/micropython-weatherstation
3c357fa14d83bb6a21388f953cc994601a6e8eda
[ "MIT" ]
null
null
null
# This file is executed on every boot (including wake-boot from deepsleep) #import esp #esp.osdebug(None) import gc gc.collect() gc.enable()
17.75
74
0.753521
23
142
4.652174
0.782609
0
0
0
0
0
0
0
0
0
0
0
0.140845
142
7
75
20.285714
0.877049
0.697183
0
0
0
0
0
0
0
0
0
0
0
1
0
true
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
1
0
1
0
0
0
0
4
8016308abbe08e97f8cc91fc90577979b5691b44
25,336
py
Python
NewvueApp/forgerynewstrackervue/app.py
awallemo/Social-media-coverage-of-fake-news
d3312dda6cb555a5c8e7f7bb89076d8cbf2cc0b9
[ "Unlicense" ]
1
2021-09-20T18:15:49.000Z
2021-09-20T18:15:49.000Z
NewvueApp/forgerynewstrackervue/app.py
jonelorentzen/Social-media-coverage-of-fake-news
d3312dda6cb555a5c8e7f7bb89076d8cbf2cc0b9
[ "Unlicense" ]
null
null
null
NewvueApp/forgerynewstrackervue/app.py
jonelorentzen/Social-media-coverage-of-fake-news
d3312dda6cb555a5c8e7f7bb89076d8cbf2cc0b9
[ "Unlicense" ]
null
null
null
from flask import Flask, jsonify, redirect, request, url_for from flask_cors import CORS import config import requests import json import os import time from textblob import TextBlob import numpy as np import pandas as pd import re import matplotlib.pyplot as plt plt.style.use('fivethirtyeight') import praw import geoc...
35.684507
230
0.623934
3,163
25,336
4.828328
0.136579
0.05186
0.011393
0.020168
0.384953
0.335909
0.261983
0.211891
0.188973
0.171687
0
0.0116
0.254855
25,336
709
231
35.734838
0.797288
0.128237
0
0.330709
0
0
0.143246
0.015064
0
0
0
0
0
1
0.066929
false
0
0.031496
0.005906
0.169291
0.019685
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8016a787d092f12d5ad3256d0e0eaded387f8caa
4,484
py
Python
test/test_criteria.py
enioluwa23/wordplay
4a423dcb96458c6100beb88ba2fa19ad9dc81c3a
[ "Apache-2.0" ]
3
2019-03-03T20:07:38.000Z
2020-07-01T12:05:15.000Z
test/test_criteria.py
enioluwa23/wordplay
4a423dcb96458c6100beb88ba2fa19ad9dc81c3a
[ "Apache-2.0" ]
null
null
null
test/test_criteria.py
enioluwa23/wordplay
4a423dcb96458c6100beb88ba2fa19ad9dc81c3a
[ "Apache-2.0" ]
1
2020-07-01T12:21:43.000Z
2020-07-01T12:21:43.000Z
from collections import Counter as Ct from wordplay.criteria import Criteria from wordplay.utils import ArgumentError, CriteriaError, Utils def setup_function(function): Utils.set_disallowed_chars(set()) def test_copy_constructor(): orig_words = Criteria() orig_words.begins_with('d').ends_with('n').cont...
27.012048
75
0.626673
597
4,484
4.452261
0.127303
0.075245
0.044018
0.057562
0.639202
0.516554
0.477427
0.369074
0.290068
0.228367
0
0.029043
0.216771
4,484
165
76
27.175758
0.72779
0.015165
0
0.439024
0
0
0.034678
0
0
0
0
0
0.317073
1
0.097561
false
0
0.02439
0
0.121951
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8016eea42aa1ca7b52a7c516e1a5d77146288a7c
8,313
py
Python
single_trace_parser.py
magnusmorton/trace-analysis
4645af99638edea16d00e811c922b0fb9d6b86d9
[ "Apache-2.0" ]
null
null
null
single_trace_parser.py
magnusmorton/trace-analysis
4645af99638edea16d00e811c922b0fb9d6b86d9
[ "Apache-2.0" ]
null
null
null
single_trace_parser.py
magnusmorton/trace-analysis
4645af99638edea16d00e811c922b0fb9d6b86d9
[ "Apache-2.0" ]
null
null
null
import re import sys import copy import operator import numpy as np import instructions import trace from scipy.optimize import nnls from scipy.linalg import solve from sets import Set from scipy.io import savemat import pdb high_cost = ['ARRAYLEN_GC_OP', 'STRLEN_OP', 'STRGETITEM_OP', 'GETFIELD_GC_PURE_OP...
32.857708
115
0.550583
1,059
8,313
4.140699
0.219075
0.020753
0.015051
0.010262
0.171722
0.105359
0.061117
0.046978
0.046978
0.023717
0
0.016504
0.322146
8,313
252
116
32.988095
0.761668
0.087453
0
0.176744
0
0.009302
0.12538
0.019289
0
0
0
0.003968
0
0
null
null
0
0.055814
null
null
0.023256
0
0
0
null
0
0
0
0
0
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
80171e1550ef369d988a5b4162e40a61643ab261
4,266
py
Python
rllib/tf2_examples/rnn_model_predmaint.py
tmorgan4/ray
bc9f040aa002a5223cd86d647a13bd9135a892a8
[ "Apache-2.0" ]
null
null
null
rllib/tf2_examples/rnn_model_predmaint.py
tmorgan4/ray
bc9f040aa002a5223cd86d647a13bd9135a892a8
[ "Apache-2.0" ]
null
null
null
rllib/tf2_examples/rnn_model_predmaint.py
tmorgan4/ray
bc9f040aa002a5223cd86d647a13bd9135a892a8
[ "Apache-2.0" ]
null
null
null
from ray.rllib.models.tf.tf_modelv2 import TFModelV2 from ray.rllib.models.misc import normc_initializer from ray.rllib.models.lstm import add_time_dimension from ray.rllib.models import ModelCatalog import tensorflow as tf tf.disable_v2_behavior() import numpy as np # TODO: # ModelCatalog.register_custom_model("RNNmo...
44.905263
125
0.63549
577
4,266
4.495667
0.187175
0.086353
0.155359
0.151118
0.571318
0.508867
0.508867
0.508867
0.508867
0.472629
0
0.024718
0.231833
4,266
94
126
45.382979
0.76686
0.112049
0
0.34375
0
0
0.03893
0
0
0
0
0.010638
0
1
0.0625
false
0
0.09375
0.03125
0.21875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
801b0a820b6146857753c0497931ce3d9e514bf4
736
py
Python
docs/source/ipython_utils.py
pilillo/nilmtk
00bb1f948b6de1cc5c891102728c19b9bfc7c739
[ "Apache-2.0" ]
null
null
null
docs/source/ipython_utils.py
pilillo/nilmtk
00bb1f948b6de1cc5c891102728c19b9bfc7c739
[ "Apache-2.0" ]
null
null
null
docs/source/ipython_utils.py
pilillo/nilmtk
00bb1f948b6de1cc5c891102728c19b9bfc7c739
[ "Apache-2.0" ]
null
null
null
from IPython.core.display import HTML, display def dict_to_html(dictionary): html = '<ul>' for key, value in dictionary.iteritems(): html += '<li><strong>{}</strong>: '.format(key) if isinstance(value, list): html += '<ul>' for item in value: html += '<li...
28.307692
55
0.508152
78
736
4.705128
0.397436
0.065395
0.081744
0.108992
0
0
0
0
0
0
0
0
0.34375
736
25
56
29.44
0.759834
0
0
0.086957
0
0
0.08288
0.032609
0
0
0
0
0
1
0.086957
false
0.043478
0.043478
0
0.173913
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
801ccd5892e08d8948c732c4efa90cc93606ed73
87
py
Python
scripts/consts.py
Eve-ning/aleph0
0a893f81328420ba4661cb920d3f9c39b3506d96
[ "MIT" ]
null
null
null
scripts/consts.py
Eve-ning/aleph0
0a893f81328420ba4661cb920d3f9c39b3506d96
[ "MIT" ]
null
null
null
scripts/consts.py
Eve-ning/aleph0
0a893f81328420ba4661cb920d3f9c39b3506d96
[ "MIT" ]
null
null
null
PADDING = 23 NOTE_THICKNESS = 3 RAND_SIZE = 20 REF_BPM = 1000 SCALE = REF_BPM / 104.15
14.5
24
0.724138
16
87
3.6875
0.875
0.20339
0
0
0
0
0
0
0
0
0
0.2
0.195402
87
5
25
17.4
0.642857
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
801da7efb1d2bb0574eb4acbe4498aa1097d511b
13,000
py
Python
test/sim_utils.py
cornell-brg/pymtl3-mem
458cbc0c667cf8645aad0e33489458eb696f6928
[ "BSD-3-Clause" ]
4
2020-03-13T11:35:30.000Z
2020-04-21T03:01:34.000Z
test/sim_utils.py
cornell-brg/pymtl3-mem
458cbc0c667cf8645aad0e33489458eb696f6928
[ "BSD-3-Clause" ]
4
2020-01-07T20:58:32.000Z
2020-04-01T22:02:31.000Z
test/sim_utils.py
cornell-brg/pymtl3-mem
458cbc0c667cf8645aad0e33489458eb696f6928
[ "BSD-3-Clause" ]
2
2020-09-08T19:34:52.000Z
2021-06-18T14:58:47.000Z
""" ========================================================================= sim_util.py ========================================================================= Utilty functions for running a testing simulation Author : Xiaoyu Yan (xy97), Eric Tang (et396) Date : 21 Decemeber 2019 """ import struct import random...
39.039039
105
0.639231
1,632
13,000
4.895221
0.188113
0.036801
0.023407
0.017023
0.296658
0.241582
0.132933
0.113531
0.101389
0.085868
0
0.006607
0.185
13,000
332
106
39.156627
0.747428
0.190077
0
0.170306
0
0
0.039572
0.011566
0
0
0.001434
0
0.026201
1
0.091703
false
0.065502
0.09607
0.0131
0.262009
0.004367
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
801e4c52ee9f6593298d55ab16552e0b03194f13
997
py
Python
chord2vec/neural_net_utilities.py
czhuang/ChordRipple
1d7f1f05cc895983101865665d5df18aeff99d7f
[ "MIT" ]
24
2015-05-27T22:57:17.000Z
2022-02-11T20:27:40.000Z
chord2vec/neural_net_utilities.py
czhuang/ChordRipple
1d7f1f05cc895983101865665d5df18aeff99d7f
[ "MIT" ]
null
null
null
chord2vec/neural_net_utilities.py
czhuang/ChordRipple
1d7f1f05cc895983101865665d5df18aeff99d7f
[ "MIT" ]
2
2015-11-21T19:46:20.000Z
2021-07-02T13:09:07.000Z
import autograd.numpy as np class WeightsParser(object): """A helper class to index into a parameter vector.""" def __init__(self): self.idxs_and_shapes = {} self.N = 0 def add_weights(self, name, shape): start = self.N self.N += np.prod(shape) self.idxs_and_shape...
27.694444
78
0.616851
153
997
3.849673
0.352941
0.054329
0.056027
0.086587
0.207131
0.207131
0.118846
0.118846
0.118846
0.118846
0
0.003963
0.240722
997
36
78
27.694444
0.774108
0.211635
0
0
0
0
0
0
0
0
0
0
0
1
0.227273
false
0
0.045455
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
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
8022376ceb5dadaed4355ea2f02dde44ca9fff40
253
py
Python
streamprocessor/client/stdio.py
rtl-nl/streamprocessor
c2754aea486aef80758d9caa6851a511a0c41925
[ "MIT" ]
1
2019-02-15T14:30:45.000Z
2019-02-15T14:30:45.000Z
streamprocessor/client/stdio.py
textpipe/streamprocessor
c2754aea486aef80758d9caa6851a511a0c41925
[ "MIT" ]
null
null
null
streamprocessor/client/stdio.py
textpipe/streamprocessor
c2754aea486aef80758d9caa6851a511a0c41925
[ "MIT" ]
null
null
null
import sys from streamprocessor.client.base import Consumer, Producer class StandardIOConsumer(Consumer): def consume(self): yield from sys.stdin class StandardIOProducer(Producer): def produce(self, message): print(message)
19.461538
58
0.735178
28
253
6.642857
0.678571
0
0
0
0
0
0
0
0
0
0
0
0.189723
253
12
59
21.083333
0.907317
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0.125
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
0
0
1
0
0
0
0
0
0
0
2
80223a50e4ed12592f7caf55b094af49cf85c2c3
996
py
Python
experiments/gethpduplex.py
timnbraun/hpduplexfix
1110641c23cd469c5fa1a88eebad375fbc83f4b9
[ "Apache-2.0" ]
null
null
null
experiments/gethpduplex.py
timnbraun/hpduplexfix
1110641c23cd469c5fa1a88eebad375fbc83f4b9
[ "Apache-2.0" ]
null
null
null
experiments/gethpduplex.py
timnbraun/hpduplexfix
1110641c23cd469c5fa1a88eebad375fbc83f4b9
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python from winreg import QueryValueEx, OpenKey, CloseKey, HKEY_LOCAL_MACHINE DEBUG = False def decode_key_val(keyword_bytes): keyword_list = keyword_bytes.split(b'\0') DEBUG and print(keyword_list) duplex_key = str( keyword_list[0], encoding='utf8' ) duplex_val = str( keyword_list[1], enco...
34.344828
179
0.769076
125
996
5.872
0.408
0.040872
0.06812
0.044959
0.506812
0.416894
0.416894
0.354223
0.354223
0.354223
0
0.022989
0.126506
996
28
180
35.571429
0.82069
0.017068
0
0.352941
0
0.058824
0.293994
0.194942
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.117647
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80225b992a73e8ebabee59d36fcf5edf65e69f25
4,685
py
Python
Word.py
eiaiestyi/project_15c
653bf50d07fd512befbb3d8818864252a7f8caf1
[ "MIT" ]
null
null
null
Word.py
eiaiestyi/project_15c
653bf50d07fd512befbb3d8818864252a7f8caf1
[ "MIT" ]
null
null
null
Word.py
eiaiestyi/project_15c
653bf50d07fd512befbb3d8818864252a7f8caf1
[ "MIT" ]
null
null
null
import random from airtable import Airtable import config class Word: def __init__(self, user): self.user_name = user # Take scores print('Collecting scores...') self.scores_table = Airtable(config.base_key, 'scores', config.api_key) scores = self.scores_tabl...
42.981651
114
0.560512
561
4,685
4.538324
0.180036
0.133543
0.065986
0.037706
0.395522
0.311862
0.25216
0.187745
0.132757
0.10055
0
0.001857
0.310352
4,685
108
115
43.37963
0.786134
0.141942
0
0.166667
0
0
0.137363
0
0
0
0
0
0
1
0.041667
false
0
0.041667
0
0.111111
0.208333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8022ba17844080c9b1e27e6e7df31151af4a61d8
595
py
Python
gcb_web_auth/migrations/0006_auto_20181128_1456.py
Duke-GCB/gcb-web-auth
51b74f278a3234e1036cc111407ff2b951354873
[ "MIT" ]
1
2017-04-26T10:26:01.000Z
2017-04-26T10:26:01.000Z
gcb_web_auth/migrations/0006_auto_20181128_1456.py
Duke-GCB/gcb-web-auth
51b74f278a3234e1036cc111407ff2b951354873
[ "MIT" ]
25
2017-04-26T20:08:55.000Z
2021-06-07T19:14:43.000Z
gcb_web_auth/migrations/0006_auto_20181128_1456.py
Duke-GCB/gcb-web-auth
51b74f278a3234e1036cc111407ff2b951354873
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2018-11-28 14:56 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gcb_web_auth', '0005_auto_20181128_1453'), ] operations = [ migrations.Alte...
28.333333
164
0.672269
74
595
5.175676
0.797297
0.073107
0
0
0
0
0
0
0
0
0
0.076087
0.226891
595
20
165
29.75
0.756522
0.114286
0
0
1
0
0.328244
0.093511
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
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
8025bdd4ec643cfd443001ce73dc281d84760e7c
1,763
py
Python
accounts/views.py
DipeshYogi/MyTodoList_backend
0b4103e791857b7e95981bd8c3d580b28b80e9eb
[ "MIT" ]
null
null
null
accounts/views.py
DipeshYogi/MyTodoList_backend
0b4103e791857b7e95981bd8c3d580b28b80e9eb
[ "MIT" ]
1
2021-03-22T19:07:43.000Z
2021-03-22T19:07:43.000Z
accounts/views.py
DipeshYogi/MyTodoList_backend
0b4103e791857b7e95981bd8c3d580b28b80e9eb
[ "MIT" ]
null
null
null
from django.shortcuts import render from .serializers import RegisterSerializer, LoginSerializer, UserSerializer from rest_framework.generics import GenericAPIView from rest_framework import status, permissions from rest_framework.response import Response from knox.models import AuthToken from django.contrib.auth impor...
38.326087
89
0.739081
199
1,763
6.376884
0.306533
0.082742
0.07565
0.068558
0.330181
0.330181
0.330181
0.330181
0.330181
0.330181
0
0.013076
0.175837
1,763
46
90
38.326087
0.860289
0
0
0.277778
0
0
0.005102
0
0
0
0
0
0
1
0.083333
false
0
0.194444
0
0.638889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8026ac69d84de1cb16032bb05a12822b2e9ca512
2,805
py
Python
app.py
lucashenning/ntag424-backend
bfa442969d82357b9e9fc482dfe1a32f0827709a
[ "MIT" ]
null
null
null
app.py
lucashenning/ntag424-backend
bfa442969d82357b9e9fc482dfe1a32f0827709a
[ "MIT" ]
null
null
null
app.py
lucashenning/ntag424-backend
bfa442969d82357b9e9fc482dfe1a32f0827709a
[ "MIT" ]
null
null
null
import argparse import binascii from flask import Flask, request, render_template, jsonify from werkzeug.exceptions import BadRequest from config import SDMMAC_PARAM, ENC_FILE_DATA_PARAM, ENC_PICC_DATA_PARAM, SDM_FILE_READ_KEY, SDM_META_READ_KEY from ntag424 import decrypt_sun_message, InvalidMessage app = Flask(__n...
32.616279
111
0.622816
352
2,805
4.585227
0.292614
0.099133
0.061338
0.02974
0.315366
0.241636
0.158612
0.095415
0
0
0
0.005018
0.289483
2,805
85
112
33
0.804817
0.023529
0
0.101695
0
0
0.094165
0
0
0
0
0
0
1
0.033898
false
0
0.101695
0
0.186441
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80281dee97ef60a06b20d70a1384bfacbdd889f5
726
py
Python
insights_integration/migrations/0004_playbookrunlog.py
benthomasson/insights_ansible_runner_poc
1392521f115ec36e626e1daf5187a1d57bfd50b3
[ "Apache-1.1" ]
null
null
null
insights_integration/migrations/0004_playbookrunlog.py
benthomasson/insights_ansible_runner_poc
1392521f115ec36e626e1daf5187a1d57bfd50b3
[ "Apache-1.1" ]
null
null
null
insights_integration/migrations/0004_playbookrunlog.py
benthomasson/insights_ansible_runner_poc
1392521f115ec36e626e1daf5187a1d57bfd50b3
[ "Apache-1.1" ]
null
null
null
# Generated by Django 2.0.8 on 2018-11-14 13:08 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('insights_integration', '0003_host_host_vars'), ] operations = [ migrations.CreateModel( name='P...
30.25
136
0.61708
74
726
5.905405
0.689189
0.05492
0.064073
0.100687
0
0
0
0
0
0
0
0.037106
0.257576
726
23
137
31.565217
0.773655
0.061983
0
0
1
0
0.185567
0.047128
0
0
0
0
0
1
0
false
0
0.117647
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8028634eb6554764b5c142e919eafc3038eb0bb0
1,223
py
Python
btb_manager_telegram/error.py
SunBooster/BTB-manager-telegram
5b01652edba35a2aa6b01956edc902a842b3c01f
[ "MIT" ]
null
null
null
btb_manager_telegram/error.py
SunBooster/BTB-manager-telegram
5b01652edba35a2aa6b01956edc902a842b3c01f
[ "MIT" ]
null
null
null
btb_manager_telegram/error.py
SunBooster/BTB-manager-telegram
5b01652edba35a2aa6b01956edc902a842b3c01f
[ "MIT" ]
null
null
null
class btbmtException(Exception): def __init__(self, message=None): self.message = message def __str__(self): if self.message is None: return "" else: return self.message class BTBConfigNotFound(btbmtException): def __init__(self, path=None): message...
27.177778
106
0.625511
140
1,223
5.107143
0.371429
0.058741
0.092308
0.174825
0.430769
0.430769
0.430769
0.167832
0.167832
0.167832
0
0
0.281276
1,223
44
107
27.795455
0.813424
0
0
0.393939
0
0
0.235487
0
0
0
0
0
0
1
0.212121
false
0
0
0
0.454545
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
0
0
0
2
8029ba05d1267e539bc300c17161b1a4be505f74
6,025
py
Python
bmcs_beam/mxn/matresdev/simiter/sim_pstudy/tutorial.py
bmcs-group/bmcs_beam
b53967d0d0461657ec914a3256ec40f9dcff80d5
[ "MIT" ]
1
2021-05-07T11:10:27.000Z
2021-05-07T11:10:27.000Z
bmcs_beam/mxn/matresdev/simiter/sim_pstudy/tutorial.py
bmcs-group/bmcs_beam
b53967d0d0461657ec914a3256ec40f9dcff80d5
[ "MIT" ]
null
null
null
bmcs_beam/mxn/matresdev/simiter/sim_pstudy/tutorial.py
bmcs-group/bmcs_beam
b53967d0d0461657ec914a3256ec40f9dcff80d5
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # # Copyright (c) 2009, IMB, RWTH Aachen. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in simvisage/LICENSE.txt and may be redistributed only # under the conditions des...
39.638158
87
0.642324
829
6,025
4.609168
0.325694
0.013086
0.004711
0.007066
0.045538
0.026171
0.013609
0
0
0
0
0.012212
0.266058
6,025
152
88
39.638158
0.851877
0.704232
0
0
0
0
0.187463
0
0
0
0
0
0
1
0
false
0
0.190476
0
0.190476
0.380952
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
802a91a4886d822f94d7ffe84abf1dae5e5b1d5c
6,409
py
Python
poky/meta/lib/oeqa/selftest/cases/oelib/buildhistory.py
Eyerunmyden/HWMgmt-MegaRAC-OpenEdition
72b03e9fc6e2a13184f1c57b8045b616db9b0a6d
[ "Apache-2.0", "MIT" ]
14
2021-11-04T07:47:37.000Z
2022-03-21T10:10:30.000Z
poky/meta/lib/oeqa/selftest/cases/oelib/buildhistory.py
Eyerunmyden/HWMgmt-MegaRAC-OpenEdition
72b03e9fc6e2a13184f1c57b8045b616db9b0a6d
[ "Apache-2.0", "MIT" ]
null
null
null
poky/meta/lib/oeqa/selftest/cases/oelib/buildhistory.py
Eyerunmyden/HWMgmt-MegaRAC-OpenEdition
72b03e9fc6e2a13184f1c57b8045b616db9b0a6d
[ "Apache-2.0", "MIT" ]
6
2021-11-02T10:56:19.000Z
2022-03-06T11:58:20.000Z
# # SPDX-License-Identifier: MIT # import os from oeqa.selftest.case import OESelftestTestCase import tempfile import operator from oeqa.utils.commands import get_bb_var class TestBlobParsing(OESelftestTestCase): def setUp(self): import time self.repo_path = tempfile.mkdtemp(prefix='selftest-buil...
43.89726
151
0.626775
926
6,409
4.24622
0.219222
0.027467
0.035605
0.042726
0.467192
0.398016
0.365717
0.306714
0.244151
0.203459
0
0.037097
0.234514
6,409
145
152
44.2
0.76437
0.055079
0
0.1
0
0.17
0.340411
0.173717
0
0
0
0
0.04
1
0.07
false
0
0.13
0
0.23
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
802b48e84d76a8785f59939db8669bb4e6dff6ad
86,974
py
Python
vendor/github.com/avinetworks/sdk/python/avi/migrationtools/f5_converter/profile_converter.py
avinetworks/servicemesh
4b4864e1327f09fa0bc047770af7e477a32f9d94
[ "Apache-2.0" ]
4
2017-06-16T18:51:52.000Z
2020-02-11T15:22:42.000Z
vendor/github.com/avinetworks/sdk/python/avi/migrationtools/f5_converter/profile_converter.py
sudswasavi/servicemesh
4f07c228e9b62c9b621cb0bfc464c75e85351f7f
[ "Apache-2.0" ]
17
2019-01-11T05:57:35.000Z
2019-08-29T05:33:38.000Z
vendor/github.com/avinetworks/sdk/python/avi/migrationtools/f5_converter/profile_converter.py
sudswasavi/servicemesh
4f07c228e9b62c9b621cb0bfc464c75e85351f7f
[ "Apache-2.0" ]
8
2017-06-26T18:15:58.000Z
2021-04-12T08:09:03.000Z
import copy import logging import os import yaml import avi.migrationtools.f5_converter.converter_constants as final from avi.migrationtools.f5_converter.conversion_util import F5Util from avi.migrationtools.avi_migration_utils import update_count LOG = logging.getLogger(__name__) ssl_count = {'count': 0} # Creating f...
49.699429
80
0.563042
9,267
86,974
4.962447
0.049315
0.024137
0.02355
0.025442
0.839172
0.807467
0.780481
0.757323
0.739731
0.72838
0
0.005711
0.349748
86,974
1,750
81
49.699429
0.807426
0.022731
0
0.681907
0
0
0.146045
0.029237
0
0
0
0
0
0
null
null
0.013063
0.004572
null
null
0.001306
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
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
7
802c2808abfe71ea1b67247ca6afede8b7346d0f
13,059
py
Python
fio_plot/fiolib/supporting.py
bhelm/fio-plot
60dc206a5486c7e43647d90ea36f4474b4601431
[ "BSD-3-Clause" ]
148
2017-04-05T22:15:39.000Z
2022-03-31T14:39:30.000Z
fio_plot/fiolib/supporting.py
bhelm/fio-plot
60dc206a5486c7e43647d90ea36f4474b4601431
[ "BSD-3-Clause" ]
66
2017-05-08T22:21:45.000Z
2022-02-26T22:53:58.000Z
fio_plot/fiolib/supporting.py
bhelm/fio-plot
60dc206a5486c7e43647d90ea36f4474b4601431
[ "BSD-3-Clause" ]
61
2017-11-09T21:52:24.000Z
2022-03-31T14:38:37.000Z
#!/usr/local/bin env import pprint as pprint import statistics import numpy as np from datetime import datetime from PIL.PngImagePlugin import PngImageFile, PngInfo import random import string def running_mean(l, N): """From a list of values (N), calculate the running mean with a window of (l) items. How larg...
30.583138
116
0.553335
1,612
13,059
4.376551
0.207196
0.01786
0.011481
0.017718
0.211339
0.185967
0.133948
0.110418
0.081077
0.03657
0
0.02779
0.305613
13,059
426
117
30.65493
0.750221
0.079792
0
0.133333
0
0
0.11933
0.004124
0
0
0
0
0
1
0.069841
false
0
0.022222
0.003175
0.171429
0.006349
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
802d45597dd184c0c91348e98b8980088407bfb9
25,692
py
Python
tests/notifications/test_activity_alerts.py
plastr/extrasolar-game
1aad5971556d498e3617afe75f27e2f4132d4668
[ "MIT", "Unlicense" ]
null
null
null
tests/notifications/test_activity_alerts.py
plastr/extrasolar-game
1aad5971556d498e3617afe75f27e2f4132d4668
[ "MIT", "Unlicense" ]
null
null
null
tests/notifications/test_activity_alerts.py
plastr/extrasolar-game
1aad5971556d498e3617afe75f27e2f4132d4668
[ "MIT", "Unlicense" ]
null
null
null
# Copyright (c) 2010-2011 Lazy 8 Studios, LLC. # All rights reserved. import re from front import Constants, target_image_types, activity_alert_types from front.lib import gametime, urls, db, utils from front.models import species from front.backend import notifications from front.tests import base from front.tests.b...
58.657534
119
0.706095
3,517
25,692
4.945977
0.117714
0.056051
0.03616
0.038632
0.656683
0.638574
0.612935
0.608796
0.593791
0.579362
0
0.008991
0.220769
25,692
437
120
58.791762
0.85989
0.319049
0
0.555102
0
0
0.05152
0.001612
0
0
0
0
0.244898
1
0.057143
false
0
0.028571
0
0.097959
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
802e8ca49204a9bf9d439b114d4f3315d453e00f
1,777
py
Python
nemo/collections/common/losses/mse_loss.py
hamjam/NeMo
b3484d32e1317666151f931bfa39867d88ed8658
[ "Apache-2.0" ]
4,145
2019-09-13T08:29:43.000Z
2022-03-31T18:31:44.000Z
nemo/collections/common/losses/mse_loss.py
hamjam/NeMo
b3484d32e1317666151f931bfa39867d88ed8658
[ "Apache-2.0" ]
2,031
2019-09-17T16:51:39.000Z
2022-03-31T23:52:41.000Z
nemo/collections/common/losses/mse_loss.py
hamjam/NeMo
b3484d32e1317666151f931bfa39867d88ed8658
[ "Apache-2.0" ]
1,041
2019-09-13T10:08:21.000Z
2022-03-30T06:37:38.000Z
# Copyright (c) 2020, NVIDIA CORPORATION. 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 appli...
30.637931
89
0.655037
208
1,777
5.519231
0.552885
0.052265
0.022648
0.027875
0.060976
0.060976
0
0
0
0
0
0.005961
0.244795
1,777
57
90
31.175439
0.849478
0.466517
0
0.105263
0
0
0.033333
0
0
0
0
0
0
1
0.210526
false
0
0.157895
0
0.578947
0
0
0
0
null
0
0
0
0
0
0
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
802f3955e4f983aab0465d9c45a9474fcbaaf0ea
8,954
py
Python
malib/algorithm/common/misc.py
ReinholdM/play_football_with_human
9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c
[ "MIT" ]
5
2021-11-17T03:11:13.000Z
2021-12-23T09:04:21.000Z
malib/algorithm/common/misc.py
ReinholdM/play_football_with_human
9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c
[ "MIT" ]
null
null
null
malib/algorithm/common/misc.py
ReinholdM/play_football_with_human
9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c
[ "MIT" ]
null
null
null
import torch import numpy as np import torch.nn.functional as F from torch.autograd import Variable from malib.utils.typing import Dict, Any, List, Union, DataTransferType from malib.backend.datapool.offline_dataset_server import Episode def soft_update(target, source, tau): """Perform DDPG soft update (move ta...
33.286245
118
0.644405
1,189
8,954
4.749369
0.243061
0.017
0.014875
0.01275
0.319285
0.247388
0.216929
0.216929
0.204888
0.168231
0
0.011954
0.243243
8,954
268
119
33.410448
0.821429
0.312263
0
0.18543
0
0
0.003559
0
0
0
0
0.003731
0.013245
1
0.10596
false
0
0.039735
0
0.271523
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
802f90308891c39086116b74bd256d4b9568a575
7,746
py
Python
nuage_tempest_plugin/services/vpnaas/vpnaas_client.py
nuagenetworks/nuage-tempest-plugin
ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a
[ "Apache-1.1" ]
1
2021-01-03T01:47:51.000Z
2021-01-03T01:47:51.000Z
nuage_tempest_plugin/services/vpnaas/vpnaas_client.py
nuagenetworks/nuage-tempest-plugin
ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a
[ "Apache-1.1" ]
null
null
null
nuage_tempest_plugin/services/vpnaas/vpnaas_client.py
nuagenetworks/nuage-tempest-plugin
ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a
[ "Apache-1.1" ]
1
2020-10-16T12:04:39.000Z
2020-10-16T12:04:39.000Z
import abc import json import six try: from urllib.parse import urlencode # py35 except ImportError: from urllib import urlencode # py27 from tempest.lib.common import rest_client from tempest.lib import exceptions as lib_exc from nuage_tempest_plugin.lib.topology import Topology CONF = Topology.get_conf()...
35.209091
79
0.63323
843
7,746
5.629893
0.141163
0.040455
0.022124
0.030973
0.387906
0.299199
0.195533
0.188791
0.163085
0.144121
0
0.004689
0.256649
7,746
219
80
35.369863
0.819555
0.018978
0
0.283133
0
0
0.026264
0.002772
0
0
0
0
0
1
0.186747
false
0
0.054217
0.072289
0.415663
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
803202984fca2cb4249027461cb40adaa874e2de
1,402
py
Python
plugins/default.py
FredG71/ircbot
148131b2156116ceb071d785ade4a9ca6e0f9ff8
[ "MIT" ]
null
null
null
plugins/default.py
FredG71/ircbot
148131b2156116ceb071d785ade4a9ca6e0f9ff8
[ "MIT" ]
null
null
null
plugins/default.py
FredG71/ircbot
148131b2156116ceb071d785ade4a9ca6e0f9ff8
[ "MIT" ]
null
null
null
import random import re import ircbot.plugin class DefaultPlugin(ircbot.plugin.Plugin): def __init__(self, bot, channel): super().__init__(bot, channel) self.insults = ( (re.compile(r'.*fuck(\s+you)\s*,?\s*'+self.bot.nick+'.*', re.IGNORECASE), 'fuck you too {nick}'), (re.compile(r'.*'+self.bot.nick+'[...
25.035714
94
0.649786
209
1,402
4.320574
0.339713
0.093023
0.033223
0.066445
0.057586
0.057586
0
0
0
0
0
0.002525
0.152639
1,402
55
95
25.490909
0.745791
0
0
0.116279
0
0.023256
0.21398
0.043509
0
0
0
0
0
1
0.139535
false
0.046512
0.069767
0
0.44186
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80320bae1d99f90d4823b9ae7806c404113080c3
1,598
py
Python
python/load_generator/load_generator.py
jared-ong/data-projects
21ceccacb8e408ca45fe95c1c4d311f48e8f7708
[ "MIT" ]
null
null
null
python/load_generator/load_generator.py
jared-ong/data-projects
21ceccacb8e408ca45fe95c1c4d311f48e8f7708
[ "MIT" ]
null
null
null
python/load_generator/load_generator.py
jared-ong/data-projects
21ceccacb8e408ca45fe95c1c4d311f48e8f7708
[ "MIT" ]
null
null
null
import pyodbc import os from multiprocessing import Process def get_file_content(full_path): """Get file content function from read_sql_files_to_db.py""" print(full_path) bytes = min(32, os.path.getsize(full_path)) raw = open(full_path, 'rb').read(bytes) if '\\xff\\xfe' in str(raw): print("...
32.612245
125
0.609512
194
1,598
4.798969
0.427835
0.105263
0.135338
0.145005
0.303974
0.137487
0
0
0
0
0
0.021886
0.256571
1,598
49
126
32.612245
0.761785
0.231539
0
0.133333
0
0.033333
0.232423
0.107527
0
0
0
0
0
1
0.066667
false
0
0.1
0
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80325695defe4f63bf8d054e65c1c88b1385a507
6,005
py
Python
examples/plot_powerlaw_fgl.py
bio-datascience/GGLasso
ace4758f2a796defa7fd35ee9bf6f343934c6b65
[ "MIT" ]
17
2020-03-13T10:43:38.000Z
2022-03-11T20:21:05.000Z
examples/plot_powerlaw_fgl.py
bio-datascience/GGLasso
ace4758f2a796defa7fd35ee9bf6f343934c6b65
[ "MIT" ]
7
2021-02-15T08:27:37.000Z
2021-12-08T13:35:33.000Z
examples/plot_powerlaw_fgl.py
bio-datascience/GGLasso
ace4758f2a796defa7fd35ee9bf6f343934c6b65
[ "MIT" ]
4
2021-01-29T17:37:33.000Z
2021-12-10T14:20:43.000Z
""" Fused Graphical Lasso experiment ================================= We investigate the performance of Fused Graphical Lasso on powerlaw networks, compared to estimating the precision matrices independently with SGL. In particular, we demonstrate that FGL - in contrast to SGL - is capable of estimating time-consiste...
30.175879
154
0.643797
889
6,005
4.239595
0.294713
0.018573
0.022287
0.031573
0.126559
0.079331
0.046697
0.022818
0.022818
0
0
0.031674
0.190341
6,005
198
155
30.328283
0.743521
0.349875
0
0.023256
0
0
0.044427
0.007534
0
0
0
0
0
1
0
false
0
0.104651
0
0.104651
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80343257862fe0dd8bcfe32668eea5bd1de6aed0
52
py
Python
examples/test/__init__.py
mattsb42/xy-tag
75f8a8141beb9f5be62357b949ac8686472b24a6
[ "Apache-2.0" ]
5
2020-05-18T20:47:52.000Z
2022-03-29T05:39:32.000Z
examples/test/__init__.py
mattsb42/xy-tag
75f8a8141beb9f5be62357b949ac8686472b24a6
[ "Apache-2.0" ]
55
2019-10-18T05:32:34.000Z
2020-01-10T07:54:04.000Z
examples/test/__init__.py
mattsb42/xy-tag
75f8a8141beb9f5be62357b949ac8686472b24a6
[ "Apache-2.0" ]
2
2020-05-16T19:23:02.000Z
2020-11-26T05:42:17.000Z
"""Put tests for the examples in this directory."""
26
51
0.711538
8
52
4.625
1
0
0
0
0
0
0
0
0
0
0
0
0.153846
52
1
52
52
0.840909
0.865385
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
80355362a6c53716c0ebd75064ddc16a52cea52c
546
py
Python
esusu/api/email.py
olujedai/esusu
2a4f79f5aac933fe32f45d778fb4e75e49b8fbda
[ "Apache-2.0" ]
null
null
null
esusu/api/email.py
olujedai/esusu
2a4f79f5aac933fe32f45d778fb4e75e49b8fbda
[ "Apache-2.0" ]
null
null
null
esusu/api/email.py
olujedai/esusu
2a4f79f5aac933fe32f45d778fb4e75e49b8fbda
[ "Apache-2.0" ]
null
null
null
from django.core.mail import EmailMultiAlternatives, send_mail from django.template.loader import render_to_string from django.utils.html import strip_tags from django.conf import settings def send_invite(subject, from_email, to, **email_values): html_content = render_to_string('invite.html', email_values) text_con...
32.117647
62
0.818681
79
546
5.329114
0.417722
0.095012
0.066508
0
0
0
0
0
0
0
0
0
0.100733
546
16
63
34.125
0.857434
0
0
0
0
0
0.020147
0
0
0
0
0
0
1
0.071429
false
0.071429
0.285714
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
803575bd4b6af7e9e93c67f9cf32c400ade94b42
849
py
Python
analytics/setup.py
Genometric/ToolVisibilityQuantifier
82572a678c27820ec1a8dbbc54dcee18ee601096
[ "MIT" ]
3
2020-04-03T02:00:10.000Z
2020-06-18T01:39:22.000Z
analytics/setup.py
Genometric/ToolVisibilityQuantifier
82572a678c27820ec1a8dbbc54dcee18ee601096
[ "MIT" ]
1
2020-07-14T06:39:02.000Z
2020-07-14T06:39:02.000Z
analytics/setup.py
Genometric/ToolVisibilityQuantifier
82572a678c27820ec1a8dbbc54dcee18ee601096
[ "MIT" ]
1
2020-05-22T20:12:47.000Z
2020-05-22T20:12:47.000Z
""" Package install information. This build script provides information about the `lib` package (e.g., the name and version, what should be included the built package, and etc.). """ import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="TVQ-Scripts", ...
27.387097
67
0.681979
104
849
5.490385
0.701923
0.105079
0.049037
0.084063
0.094571
0
0
0
0
0
0
0.008646
0.182568
849
30
68
28.3
0.814121
0.210836
0
0
0
0
0.427492
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8035c2d7a9126b6cdea12061987f025e743d2d6e
150
py
Python
step4/components/__init__.py
03015417pzj/PyRankine
e9acd56f91c542bd9fb584d348c48d50b543d5bc
[ "MIT" ]
null
null
null
step4/components/__init__.py
03015417pzj/PyRankine
e9acd56f91c542bd9fb584d348c48d50b543d5bc
[ "MIT" ]
null
null
null
step4/components/__init__.py
03015417pzj/PyRankine
e9acd56f91c542bd9fb584d348c48d50b543d5bc
[ "MIT" ]
null
null
null
""" Components Package of the General Simulator of Rankine Cycle """ __all__ = ["node","boiler", "condenser","condenser","openedheater","turbine"]
21.428571
77
0.706667
16
150
6.375
0.875
0
0
0
0
0
0
0
0
0
0
0
0.12
150
6
78
25
0.772727
0.4
0
0
0
0
0.5875
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
803902a284694bf2e2871a900f13d53f88448114
13,479
py
Python
tests/pytest/manipulation_tests/test_dims.py
SX-Aurora/nlcpy
0a53eec8778073bc48b12687b7ce37ab2bf2b7e0
[ "BSD-3-Clause" ]
11
2020-07-31T02:21:55.000Z
2022-03-10T03:12:11.000Z
tests/pytest/manipulation_tests/test_dims.py
SX-Aurora/nlcpy
0a53eec8778073bc48b12687b7ce37ab2bf2b7e0
[ "BSD-3-Clause" ]
null
null
null
tests/pytest/manipulation_tests/test_dims.py
SX-Aurora/nlcpy
0a53eec8778073bc48b12687b7ce37ab2bf2b7e0
[ "BSD-3-Clause" ]
null
null
null
# # * The source code in this file is based on the soure code of CuPy. # # # NLCPy License # # # Copyright (c) 2020-2021 NEC Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are ...
37.234807
88
0.636472
1,956
13,479
4.213701
0.143661
0.038219
0.103737
0.094637
0.637224
0.606285
0.581776
0.55205
0.490415
0.395535
0
0.039915
0.234216
13,479
361
89
37.33795
0.758574
0.228726
0
0.408907
0
0
0.016836
0
0
0
0
0
0.024292
1
0.186235
false
0
0.020243
0.012146
0.34413
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
803a92ae01e55a173b2caee9d74281f118b22fb7
325
py
Python
TCP-UDP-Socket-Programming/setup.py
bayudwiyansatria/Network-Security-Management
8021c3a976337282a261f086024f248aa5c9e4ec
[ "MIT" ]
2
2019-06-09T23:26:44.000Z
2019-06-27T08:18:05.000Z
TCP-UDP-Socket-Programming/setup.py
bayudwiyansatria/Network-Security-Management
8021c3a976337282a261f086024f248aa5c9e4ec
[ "MIT" ]
null
null
null
TCP-UDP-Socket-Programming/setup.py
bayudwiyansatria/Network-Security-Management
8021c3a976337282a261f086024f248aa5c9e4ec
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name='CryptoPlus', version='1.0', description='PyCrypto Cipher extension', author='Christophe Oosterlynck', author_email='tiftof@gmail.com', packages = find_packages('src'), install_requires = ['pycrypto'], package_dir={'': 'sr...
29.545455
46
0.661538
34
325
6.176471
0.794118
0.114286
0
0
0
0
0
0
0
0
0
0.007663
0.196923
325
11
47
29.545455
0.796935
0
0
0
0
0
0.276074
0
0
0
0
0
0
1
0
true
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
803c3c3bd07616f3ed463288eceacaefcc475176
1,200
py
Python
chromedriver.py
taha-shafique/colab
481e110ee6796dac2ef82c22fa6e138688fcd0b0
[ "Apache-2.0" ]
null
null
null
chromedriver.py
taha-shafique/colab
481e110ee6796dac2ef82c22fa6e138688fcd0b0
[ "Apache-2.0" ]
null
null
null
chromedriver.py
taha-shafique/colab
481e110ee6796dac2ef82c22fa6e138688fcd0b0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Oct 29 23:04:12 2021 @author: tahashafique """ from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains class chrome_driver: def __init__(self, executable_path, max_window = True, window_size = None, ...
30.769231
170
0.608333
142
1,200
4.978873
0.528169
0.093352
0.079208
0.12447
0.07355
0
0
0
0
0
0
0.048611
0.28
1,200
39
171
30.769231
0.769676
0.085
0
0
0
0.058824
0.182569
0.041284
0
0
0
0
0
1
0.117647
false
0
0.117647
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
803c7c054becf664ad3ff0f679aef0fcea592bbf
992
py
Python
Core/TestConvInst.py
gabrieloandco/RiscV-Arqui1
6495370d23d3a7e9e1f579a1b4e8c1be799c3913
[ "MIT" ]
null
null
null
Core/TestConvInst.py
gabrieloandco/RiscV-Arqui1
6495370d23d3a7e9e1f579a1b4e8c1be799c3913
[ "MIT" ]
null
null
null
Core/TestConvInst.py
gabrieloandco/RiscV-Arqui1
6495370d23d3a7e9e1f579a1b4e8c1be799c3913
[ "MIT" ]
null
null
null
from myhdl import * from ConvInst import * import random def tbConvInst(): datain = Signal(modbv(0)[32:]) #din = Signal(modbv(0)[32:]) dataout = Signal(modbv(0)[32:]) #dout = Signal(modbv(0)[32:]) dut = ConvInst(datain,dataout) interv = delay(7) @always(interv) def stim(): #hi = bin(random.randint(0,2*...
24.195122
104
0.646169
137
992
4.656934
0.50365
0.068966
0.075235
0.087774
0
0
0
0
0
0
0
0.103241
0.160282
992
40
105
24.8
0.662665
0.571573
0
0
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
803ecddcb511e7194a77ad5b27290b4e5012e784
48
py
Python
change_case.py
mariongb81/TeamProject
c29c765ff8313563d17aea845caefc18631cafac
[ "MIT" ]
null
null
null
change_case.py
mariongb81/TeamProject
c29c765ff8313563d17aea845caefc18631cafac
[ "MIT" ]
4
2021-11-16T02:36:24.000Z
2021-11-26T03:33:57.000Z
change_case.py
mariongb81/TeamProject
c29c765ff8313563d17aea845caefc18631cafac
[ "MIT" ]
4
2021-11-16T01:02:42.000Z
2021-11-27T03:07:36.000Z
print( input("ingrese su cadena" ).swapcase())
16
46
0.6875
6
48
5.5
1
0
0
0
0
0
0
0
0
0
0
0
0.125
48
2
47
24
0.785714
0
0
0
0
0
0.361702
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
0
0
0
1
0
5
803f229f31bff7100d337f359e938d71b79934ae
631
py
Python
LuHR_showcode/x0000.py
luhralive/python
b74bdc4c7bc8e75aee9530c27d621a773a71ac67
[ "MIT" ]
1
2019-05-05T11:55:50.000Z
2019-05-05T11:55:50.000Z
LuHR_showcode/x0000.py
luhralive/python
b74bdc4c7bc8e75aee9530c27d621a773a71ac67
[ "MIT" ]
null
null
null
LuHR_showcode/x0000.py
luhralive/python
b74bdc4c7bc8e75aee9530c27d621a773a71ac67
[ "MIT" ]
null
null
null
# 将你的 QQ 头像(或者微博头像)右上角加上红色的数字,类似于微信未读信息数量那种提示效果。 类似于图中效果 from PIL import Image,ImageDraw,ImageFont def add_num( imgPath, color = "#ff0000", msg = '4'): try: img = Image.open(imgPath, 'r') draw = ImageDraw.Draw(img) imagefont = ImageFont.truetype('C:/Windows/Fonts/Arial.ttf', 40) ...
31.55
81
0.616482
81
631
4.679012
0.753086
0.031662
0
0
0
0
0
0
0
0
0
0.02686
0.232964
631
19
82
33.210526
0.756198
0.103011
0
0
0
0
0.222836
0.130755
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.153846
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
803f9899de41d83fff483e1633259c8b02626196
894
py
Python
test/compilers/test_gcc.py
diogenes1oliveira/mathbind
1b710010ac8956ea575c2e07fca86233f59018a5
[ "MIT" ]
null
null
null
test/compilers/test_gcc.py
diogenes1oliveira/mathbind
1b710010ac8956ea575c2e07fca86233f59018a5
[ "MIT" ]
null
null
null
test/compilers/test_gcc.py
diogenes1oliveira/mathbind
1b710010ac8956ea575c2e07fca86233f59018a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import unittest from unittest import mock from mathbind.compilers.gcc import GccCompiler class TestGFortranCompiler(unittest.TestCase): def setUp(self): self.os_system_backup = os.system def tearDown(self): os.system = self.os_system_backup def test1(se...
33.111111
126
0.661074
122
894
4.721311
0.42623
0.111111
0.104167
0.0625
0.479167
0.479167
0.385417
0.385417
0.385417
0.385417
0
0.017906
0.187919
894
27
126
33.111111
0.775482
0.02349
0
0.105263
0
0.052632
0.211913
0
0
0
0
0
0.105263
1
0.210526
false
0
0.210526
0
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8040173e381ef7cb4b3fc1f2e9d60d3bcfc17f3e
2,328
py
Python
FlatBufferSchemaGenerator/python/FlatBufferObserver.py
cnheider/droid
1687cb50cadba867d9e8a7b670629008c948b38e
[ "Apache-2.0" ]
null
null
null
FlatBufferSchemaGenerator/python/FlatBufferObserver.py
cnheider/droid
1687cb50cadba867d9e8a7b670629008c948b38e
[ "Apache-2.0" ]
null
null
null
FlatBufferSchemaGenerator/python/FlatBufferObserver.py
cnheider/droid
1687cb50cadba867d9e8a7b670629008c948b38e
[ "Apache-2.0" ]
null
null
null
# automatically generated by the FlatBuffers compiler, do not modify # namespace: State import flatbuffers class FlatBufferObserver(object): __slots__ = ['_tab'] @classmethod def GetRootAsFlatBufferObserver(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) ...
38.8
156
0.698454
259
2,328
6.142857
0.293436
0.057197
0.12445
0.17599
0.274041
0.274041
0.152106
0.152106
0.152106
0.152106
0
0.011315
0.202749
2,328
59
157
39.457627
0.845905
0.07646
0
0.190476
1
0
0.001867
0
0
0
0
0
0
1
0.285714
false
0
0.047619
0.047619
0.595238
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
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
804137226516ea6cf2d963db93c0457e0bf4dc2c
4,126
py
Python
sonar_to_raw/sonar_to_raw.py
jan-bogaerts/sonar_tools
16a38c4318ea38ec4259069616da33765de0f91a
[ "MIT" ]
null
null
null
sonar_to_raw/sonar_to_raw.py
jan-bogaerts/sonar_tools
16a38c4318ea38ec4259069616da33765de0f91a
[ "MIT" ]
null
null
null
sonar_to_raw/sonar_to_raw.py
jan-bogaerts/sonar_tools
16a38c4318ea38ec4259069616da33765de0f91a
[ "MIT" ]
null
null
null
__author__ = 'Jan Bogaerts' __copyright__ = "Copyright 2018, Elastetic" __credits__ = [] __maintainer__ = "Jan Bogaerts" __email__ = "jb@elastetic.com" __status__ = "Development" # "Prototype", or "Production" """ a small tool to convert files from the sonar corpus into raw text data (as it only comes annotated). son...
36.513274
124
0.524721
468
4,126
4.435897
0.331197
0.033719
0.026493
0.036127
0.179672
0.070328
0.026012
0.026012
0
0
0
0.008799
0.366457
4,126
112
125
36.839286
0.785386
0.042172
0
0.157303
0
0
0.061341
0.013086
0
0
0
0
0
1
0.022472
false
0
0.033708
0
0.067416
0.033708
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8041c204d2d2ef90e334feb2ab2a86790a4d7bb6
655
py
Python
databases/migrations/2019_11_07_110837_create_entries_table.py
mandarvaze/life-journal-masonite
e9482fd0da7f8383d31e46160a3ab297281a6171
[ "MIT" ]
null
null
null
databases/migrations/2019_11_07_110837_create_entries_table.py
mandarvaze/life-journal-masonite
e9482fd0da7f8383d31e46160a3ab297281a6171
[ "MIT" ]
null
null
null
databases/migrations/2019_11_07_110837_create_entries_table.py
mandarvaze/life-journal-masonite
e9482fd0da7f8383d31e46160a3ab297281a6171
[ "MIT" ]
null
null
null
"""Migration for Entries Table.""" from orator.migrations import Migration class CreateEntriesTable(Migration): """Migration Class for Entries Table.""" def up(self): """Run the migrations.""" with self.schema.create("entries") as table: table.increments("id") table.st...
27.291667
67
0.59084
69
655
5.550725
0.536232
0.052219
0.078329
0
0
0
0
0
0
0
0
0
0.261069
655
23
68
28.478261
0.791322
0.161832
0
0
0
0
0.123106
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
804207d0605a0af0c0121c80e73f1b485bc1dae3
2,613
py
Python
poise/poise.py
harbi/poise
a9a659cd95c5101d78d9ae1a90f345874324e307
[ "MIT" ]
5
2019-08-04T08:04:09.000Z
2021-12-29T16:56:55.000Z
poise/poise.py
harbi/poise
a9a659cd95c5101d78d9ae1a90f345874324e307
[ "MIT" ]
null
null
null
poise/poise.py
harbi/poise
a9a659cd95c5101d78d9ae1a90f345874324e307
[ "MIT" ]
null
null
null
import click import scrapy from scrapy.crawler import CrawlerProcess from langdetect import detect __author__ = 'Abdullah Alharbi' def get_urls(keyword): return [ 'https://www.goodreads.com/quotes/tag/{}'.format(keyword), ] class QuotesSpider(scrapy.Spider): name = "quotes" quotes = [] ...
30.741176
109
0.567164
292
2,613
4.972603
0.35274
0.041322
0.055096
0.053719
0.108815
0
0
0
0
0
0
0.003698
0.275545
2,613
84
110
31.107143
0.762282
0
0
0.03125
0
0
0.138155
0.018752
0
0
0
0
0
1
0.078125
false
0
0.0625
0.015625
0.203125
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80435c72e1c732be18ef85aae2e7cc3ae7039fd9
5,415
py
Python
watevrCTF-2019/challenges/web/HTJP/container/htjp.py
bemrdo/CTF-2019
424512f7c43278d72091aa737da78907c14f9fc1
[ "MIT" ]
null
null
null
watevrCTF-2019/challenges/web/HTJP/container/htjp.py
bemrdo/CTF-2019
424512f7c43278d72091aa737da78907c14f9fc1
[ "MIT" ]
null
null
null
watevrCTF-2019/challenges/web/HTJP/container/htjp.py
bemrdo/CTF-2019
424512f7c43278d72091aa737da78907c14f9fc1
[ "MIT" ]
1
2020-03-14T07:24:12.000Z
2020-03-14T07:24:12.000Z
#!/usr/bin/env python3 # request and response in this file refer to the HTTP specification, they are reversed for HTJP import sys import re import base64 from urllib.parse import quote import signal def interrupted(signum, frame): exit() signal.signal(signal.SIGALRM, interrupted) signal.alarm(5) debug = False ...
33.220859
171
0.619021
776
5,415
4.074742
0.199742
0.185958
0.227704
0.008855
0
0
0
0
0
0
0
0.088123
0.228809
5,415
162
172
33.425926
0.669061
0.02807
0
0.047619
0
0.007937
0.046786
0.029479
0
0
0.005325
0
0
1
0.015873
false
0
0.039683
0
0.063492
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
8043e5f4d1359c25072690e31f281a2aca8cbb06
394
py
Python
init_solutions.py
CLAHRCWessex/SymmetricTSP
2cfce4146ece0c784aa62f1b0e2ac1cb2e91b6c4
[ "MIT" ]
1
2020-06-01T22:56:11.000Z
2020-06-01T22:56:11.000Z
init_solutions.py
CLAHRCWessex/SymmetricTSP
2cfce4146ece0c784aa62f1b0e2ac1cb2e91b6c4
[ "MIT" ]
null
null
null
init_solutions.py
CLAHRCWessex/SymmetricTSP
2cfce4146ece0c784aa62f1b0e2ac1cb2e91b6c4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Sep 14 15:57:46 2017 @author: tm3y13 """ from random import shuffle def random_tour(tour): """ Initial solution to tour is psuedo random """ rnd_tour = tour[1:len(tour)-1] base_city = tour[0] shuffle(rnd_tour) rnd_tour.append(base...
18.761905
46
0.598985
57
394
3.982456
0.596491
0.154185
0
0
0
0
0
0
0
0
0
0.070671
0.281726
394
21
47
18.761905
0.731449
0.296954
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0