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
4d8ba58242648d0b7c29f0c518d0196bcb812789
1,615
py
Python
kslurm/text.py
pvandyken/cluster_utils
801bebb299bec8b71cb9c237a5a4daff9c9e33fe
[ "MIT" ]
null
null
null
kslurm/text.py
pvandyken/cluster_utils
801bebb299bec8b71cb9c237a5a4daff9c9e33fe
[ "MIT" ]
null
null
null
kslurm/text.py
pvandyken/cluster_utils
801bebb299bec8b71cb9c237a5a4daff9c9e33fe
[ "MIT" ]
null
null
null
from __future__ import absolute_import from colorama import Fore SETTINGS_HEADER = f"{Fore.LIGHTBLUE_EX}SETTINGS{Fore.RESET}" COMMAND_HEADER = f"{Fore.LIGHTBLUE_EX}COMMAND{Fore.RESET}" KBATCH_MSG = f""" {Fore.GREEN}Scheduling Batch Command {SETTINGS_HEADER} {Fore.WHITE}{{slurm_args}} ...
29.363636
82
0.631579
201
1,615
4.975124
0.502488
0.025
0.06
0.069
0.098
0
0
0
0
0
0
0
0.252632
1,615
54
83
29.907407
0.8285
0
0
0.25
0
0
0.868111
0.120743
0
0
0
0
0
1
0
false
0
0.045455
0
0.045455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4d9418e6a49ef7ac8f1efb7f364f59058c05a77e
11,926
py
Python
testplan/report/testing/schemas.py
agupta-io/testplan
53070650b597a490e973c94febe52ef8079694ee
[ "Apache-2.0" ]
null
null
null
testplan/report/testing/schemas.py
agupta-io/testplan
53070650b597a490e973c94febe52ef8079694ee
[ "Apache-2.0" ]
null
null
null
testplan/report/testing/schemas.py
agupta-io/testplan
53070650b597a490e973c94febe52ef8079694ee
[ "Apache-2.0" ]
null
null
null
"""Schema classes for test Reports.""" import functools import json from copy import deepcopy import six from six.moves import range # pylint: disable=no-name-in-module,import-error if six.PY2: from collections import MutableMapping, MutableSequence else: from collections.abc import MutableMapping, MutableSeq...
32.495913
79
0.63349
1,345
11,926
5.428253
0.187361
0.052596
0.037803
0.032872
0.491987
0.458019
0.39926
0.369949
0.315984
0.29133
0
0.001952
0.269914
11,926
366
80
32.584699
0.836568
0.148499
0
0.473469
0
0
0.017243
0.00213
0
0
0
0
0
1
0.061224
false
0
0.053061
0.02449
0.502041
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
4d972a5bdf68c066a50baf254dee8f1c52854042
6,123
py
Python
master_code/otherMiscCode/subh_mass_bin.py
brunetto/MasterThesisCode
947b7b5948e5649eb52b61a14c335a62df057406
[ "MIT" ]
null
null
null
master_code/otherMiscCode/subh_mass_bin.py
brunetto/MasterThesisCode
947b7b5948e5649eb52b61a14c335a62df057406
[ "MIT" ]
null
null
null
master_code/otherMiscCode/subh_mass_bin.py
brunetto/MasterThesisCode
947b7b5948e5649eb52b61a14c335a62df057406
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy as np import tables as tb import time import sys """Questo codice legge gli id degli aloni, le masse e i centri, legge gli id degli aloni che possiedono sottoaloni, estrae tali aloni, poi binna in massa i sottoaloni a seconda dell'host, li indicizza e li salva in file diversi dopo a...
38.509434
97
0.544504
835
6,123
3.85988
0.258683
0.02327
0.037232
0.027924
0.222774
0.150481
0.110456
0.049333
0.03444
0
0
0.041749
0.338886
6,123
158
98
38.753165
0.754447
0.032337
0
0.181818
0
0
0.110002
0.01605
0.008264
0
0
0
0
0
null
null
0.008264
0.033058
null
null
0.256198
0
0
0
null
0
0
0
0
0
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
4da4e6a1f6509cf19e8b58e42944b2a4174903bc
2,318
py
Python
ir_attachment_url/controllers/main.py
001101/misc-addons
6f3b94d8a71d603d9ad449f96edfc66385e78080
[ "MIT" ]
null
null
null
ir_attachment_url/controllers/main.py
001101/misc-addons
6f3b94d8a71d603d9ad449f96edfc66385e78080
[ "MIT" ]
1
2020-05-03T04:27:29.000Z
2020-05-03T04:27:29.000Z
ir_attachment_url/controllers/main.py
eneldoserrata/misc-addons
6f3b94d8a71d603d9ad449f96edfc66385e78080
[ "MIT" ]
1
2022-02-04T11:27:12.000Z
2022-02-04T11:27:12.000Z
import base64 import requests import werkzeug from odoo import SUPERUSER_ID, http from odoo.exceptions import AccessError from odoo.http import request from odoo.addons.mail.controllers.main import MailController from ..models.image import is_url # TODO: https://github.com/odoo/odoo/commit/7d85ab1eac6dbf33d56c6a1f...
36.21875
116
0.569888
236
2,318
5.466102
0.436441
0.031008
0.021705
0.027907
0.044961
0.044961
0.044961
0
0
0
0
0.032558
0.350733
2,318
63
117
36.793651
0.824585
0.146247
0
0
0
0
0.070958
0.030411
0
0
0
0.015873
0
1
0.020408
false
0.020408
0.163265
0
0.244898
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
4daa75b614f367407be288b2c8011bf8afd28930
572
py
Python
src/python/insertionsort.py
ketancmaheshwari/hello-goog
fc479ea0017edfc96f3b109eff336fb9954e1f3e
[ "Apache-2.0" ]
null
null
null
src/python/insertionsort.py
ketancmaheshwari/hello-goog
fc479ea0017edfc96f3b109eff336fb9954e1f3e
[ "Apache-2.0" ]
null
null
null
src/python/insertionsort.py
ketancmaheshwari/hello-goog
fc479ea0017edfc96f3b109eff336fb9954e1f3e
[ "Apache-2.0" ]
null
null
null
#!/bin/env python import numpy as np # controls printing array corners # np.set_printoptions(threshold='nan') # insertion sort according to the Cormen book # read file into a numpy array data = np.loadtxt('../data/numlist10.txt') print "unsorted data:", data def insertionsort(data): for j in range(1, len(dat...
20.428571
45
0.592657
82
572
4.02439
0.597561
0.060606
0.048485
0
0
0
0
0
0
0
0
0.01699
0.27972
572
27
46
21.185185
0.783981
0.276224
0
0
0
0
0.134474
0.051345
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4dab1818c2d95ce6e6a3bd787a90e87d5c4e745a
1,863
py
Python
movie_recommendation/tests.py
Shashank-Shastri/Movie-Recommendation
036a0c2b7120cb197be13db083a13d7b390431e1
[ "MIT" ]
null
null
null
movie_recommendation/tests.py
Shashank-Shastri/Movie-Recommendation
036a0c2b7120cb197be13db083a13d7b390431e1
[ "MIT" ]
null
null
null
movie_recommendation/tests.py
Shashank-Shastri/Movie-Recommendation
036a0c2b7120cb197be13db083a13d7b390431e1
[ "MIT" ]
1
2021-06-06T17:15:00.000Z
2021-06-06T17:15:00.000Z
from django.test import TestCase from .recommendation import recommend_movies class RecommendMoviesTestCase(TestCase): def test_recommendation_by_id(self): """Movie Recommendations are correctly listed""" movie_imdb_id = "tt0499549" result_limit = 5 query = { 'limit': ...
27
65
0.598497
195
1,863
5.533333
0.266667
0.166821
0.040779
0.07785
0.681186
0.65709
0.65709
0.613531
0.613531
0.601483
0
0.030046
0.303274
1,863
68
66
27.397059
0.801233
0.077295
0
0.595745
0
0
0.071849
0
0
0
0
0
0.255319
1
0.085106
false
0
0.042553
0
0.148936
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
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
4db284537328430cb48a2ff913f130b008cc1c12
600
py
Python
backend/eatandmeet/api/permissions.py
lysnikolaou/eatandmeet
fd9857f61d6e2e9861a3f4d477089af320181687
[ "MIT" ]
2
2019-07-05T09:00:19.000Z
2019-08-13T12:09:42.000Z
backend/eatandmeet/api/permissions.py
lysnikolaou/eatandmeet
fd9857f61d6e2e9861a3f4d477089af320181687
[ "MIT" ]
55
2019-05-20T16:24:39.000Z
2022-03-11T23:50:04.000Z
backend/eatandmeet/api/permissions.py
lysnikolaou/eatandmeet
fd9857f61d6e2e9861a3f4d477089af320181687
[ "MIT" ]
null
null
null
from rest_framework import permissions class EventPermissions(permissions.IsAuthenticated): def has_object_permission(self, request, view, obj): if request.method in permissions.SAFE_METHODS or request.method == 'POST': return True return (request.user in obj.event_admins.all() ...
35.294118
82
0.706667
70
600
5.928571
0.442857
0.093976
0.139759
0.154217
0.636145
0.506024
0.506024
0.506024
0.506024
0.506024
0
0
0.216667
600
16
83
37.5
0.882979
0
0
0.333333
0
0
0.006667
0
0
0
0
0
0
1
0.166667
false
0
0.083333
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
1
0
0
1
4db5ef907c25d6285156418ecb5943ece1f80b24
911
py
Python
exercise_2/test_solution.py
jeff-a-holland/python_class_2021_B2
e1dd93d50f332734954091c26c9a5ea7eb5251e7
[ "MIT" ]
null
null
null
exercise_2/test_solution.py
jeff-a-holland/python_class_2021_B2
e1dd93d50f332734954091c26c9a5ea7eb5251e7
[ "MIT" ]
null
null
null
exercise_2/test_solution.py
jeff-a-holland/python_class_2021_B2
e1dd93d50f332734954091c26c9a5ea7eb5251e7
[ "MIT" ]
null
null
null
from solution import Item, Cart def test_empty_cart(): cart = Cart() cart.cart_list == [] assert f'{cart:short}' == '' assert f'{cart:long}' == '' def test_cart_1_item(): cart = Cart() assert len(cart.cart_list) == 0 item = Item(2, 'grain', 'rice', 1) cart.add(item) assert len(car...
26.794118
108
0.560922
142
911
3.492958
0.176056
0.193548
0.169355
0.08871
0.491935
0.129032
0.129032
0.129032
0.129032
0.129032
0
0.052478
0.246981
911
33
109
27.606061
0.670554
0
0
0.115385
0
0.038462
0.248079
0
0
0
0
0
0.461538
1
0.115385
false
0
0.038462
0
0.153846
0
0
0
0
null
0
0
0
0
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
4dbbd360ee1bf4a3342c2ff8c291abbf3f6be939
2,590
py
Python
tensorlayer/layers/stack.py
cankunqiu/tensorlayer2
423283ef96d6db485e431d01e360535d1803f34d
[ "Apache-2.0" ]
1
2019-01-26T12:50:03.000Z
2019-01-26T12:50:03.000Z
tensorlayer/layers/stack.py
cankunqiu/tensorlayer2
423283ef96d6db485e431d01e360535d1803f34d
[ "Apache-2.0" ]
null
null
null
tensorlayer/layers/stack.py
cankunqiu/tensorlayer2
423283ef96d6db485e431d01e360535d1803f34d
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python # -*- coding: utf-8 -*- import tensorflow as tf from tensorlayer.layers.core import Layer from tensorlayer import logging from tensorlayer.decorators import deprecated_alias __all__ = [ 'Stack', 'UnStack', ] class Stack(Layer): """ The :class:`Stack` class is a layer for stacki...
27.553191
199
0.601931
343
2,590
4.434402
0.291545
0.036818
0.025641
0.031558
0.401052
0.318212
0.220907
0.220907
0.077581
0.077581
0
0.014433
0.250965
2,590
93
200
27.849462
0.769588
0.534363
0
0.363636
0
0
0.055133
0
0
0
0
0
0
1
0.181818
false
0.060606
0.121212
0
0.424242
0
0
0
0
null
0
0
0
0
0
0
0
0
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
4dbdc62745b3c4b47911aacac95b60f111f3f40f
4,269
py
Python
tests/test_transform.py
wlbksy/robotics
a031a20bdf3e8734f3dcfe31d5c54405ff29415e
[ "MIT" ]
null
null
null
tests/test_transform.py
wlbksy/robotics
a031a20bdf3e8734f3dcfe31d5c54405ff29415e
[ "MIT" ]
null
null
null
tests/test_transform.py
wlbksy/robotics
a031a20bdf3e8734f3dcfe31d5c54405ff29415e
[ "MIT" ]
null
null
null
import numpy as np import pytest from numpy.testing import assert_almost_equal, assert_array_almost_equal import robotics as rbt class TestTransform: def test_wrap_2_pi(self): assert rbt.wrap_2_pi(0) == pytest.approx(0, 1e-9) assert rbt.wrap_2_pi(0.5 * np.pi) == pytest.approx(0.5 * np.pi, 1e-9) ...
33.880952
79
0.498946
601
4,269
3.382696
0.094842
0.036399
0.035416
0.029513
0.757009
0.722577
0.604525
0.60059
0.551402
0.535662
0
0.193643
0.358866
4,269
125
80
34.152
0.549141
0
0
0.288288
0
0
0
0
0
0
0
0
0.27027
1
0.09009
false
0
0.036036
0
0.135135
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4dbe82db0e380ede43b94123e670c0d430e54923
1,183
py
Python
Tests/test_general.py
dreygur/SSLCommerz-Python
e867cfed4f7a882385922a3bc6d127b745ea7286
[ "MIT" ]
null
null
null
Tests/test_general.py
dreygur/SSLCommerz-Python
e867cfed4f7a882385922a3bc6d127b745ea7286
[ "MIT" ]
null
null
null
Tests/test_general.py
dreygur/SSLCommerz-Python
e867cfed4f7a882385922a3bc6d127b745ea7286
[ "MIT" ]
null
null
null
from sslcommerz_python_api import SSLCSession from decimal import Decimal def response(): mypayment = SSLCSession(sslc_is_sandbox=True, sslc_store_id='your_sslc_store_id', sslc_store_pass='your_sslc_store_passcode') mypayment.set_urls(success_url='example.com/success', fail_url='example.com/failed', cancel_url='ex...
78.866667
202
0.793745
166
1,183
5.39759
0.548193
0.066964
0.058036
0
0
0
0
0
0
0
0
0.028259
0.072697
1,183
15
203
78.866667
0.788514
0.035503
0
0
0
0
0.290351
0.049123
0
0
0
0
0.083333
1
0.166667
false
0.083333
0.166667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4dc6a63d9eb19ea64fc8318350c5d7e9d5ace464
14,563
py
Python
music/correctcase.py
DarkStarSword/junk
f0de649a3ef92715fbc6aeff7599ad843763c32b
[ "MIT" ]
19
2015-02-02T16:49:32.000Z
2021-12-04T02:33:10.000Z
music/correctcase.py
DarkStarSword/junk
f0de649a3ef92715fbc6aeff7599ad843763c32b
[ "MIT" ]
1
2015-07-11T13:57:34.000Z
2015-11-16T02:36:23.000Z
music/correctcase.py
DarkStarSword/junk
f0de649a3ef92715fbc6aeff7599ad843763c32b
[ "MIT" ]
4
2017-02-06T21:11:17.000Z
2019-04-04T15:11:50.000Z
#!/usr/bin/python # Copyright 2009 Ian Munsie # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is dis...
48.062706
347
0.653437
2,026
14,563
4.675222
0.231984
0.003801
0.009291
0.013514
0.308805
0.27671
0.227513
0.198269
0.174303
0.135452
0
0.012988
0.201675
14,563
302
348
48.221854
0.801737
0.172217
0
0.262295
0
0.04918
0.302919
0.01547
0
0
0
0
0
0
null
null
0
0.02459
null
null
0.114754
0
0
0
null
0
0
0
0
0
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
4dcc80c640f60621d92985142f1c675522724779
765
py
Python
examples/rl/environments/capturegame/pente.py
sveilleux1/pybrain
1e1de73142c290edb84e29ca7850835f3e7bca8b
[ "BSD-3-Clause" ]
2,208
2015-01-02T02:14:41.000Z
2022-03-31T04:45:46.000Z
examples/rl/environments/capturegame/pente.py
sveilleux1/pybrain
1e1de73142c290edb84e29ca7850835f3e7bca8b
[ "BSD-3-Clause" ]
91
2015-01-08T16:42:16.000Z
2021-12-11T19:16:35.000Z
examples/rl/environments/capturegame/pente.py
sveilleux1/pybrain
1e1de73142c290edb84e29ca7850835f3e7bca8b
[ "BSD-3-Clause" ]
786
2015-01-02T15:18:20.000Z
2022-02-23T23:42:40.000Z
from __future__ import print_function #!/usr/bin/env python """ A little script illustrating how to use a (randomly initialized) convolutional network to play a game of Pente. """ __author__ = 'Tom Schaul, tom@idsia.ch' from pybrain.rl.environments.twoplayergames.pente import PenteGame from pybrain.rl.environments.t...
33.26087
100
0.810458
97
765
6.298969
0.56701
0.072013
0.06383
0.12275
0.234043
0.170213
0
0
0
0
0
0.011628
0.100654
765
22
101
34.772727
0.876453
0.026144
0
0.133333
0
0
0.0384
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4dd20b696a81a54ce1476c7112ce0c4cb2f9cac1
5,005
py
Python
day04/day04.py
lukasHD/adventOfCode2020
fa171f3ad8232a0542d544d3de9b2b9d8fdf8ccd
[ "MIT" ]
null
null
null
day04/day04.py
lukasHD/adventOfCode2020
fa171f3ad8232a0542d544d3de9b2b9d8fdf8ccd
[ "MIT" ]
null
null
null
day04/day04.py
lukasHD/adventOfCode2020
fa171f3ad8232a0542d544d3de9b2b9d8fdf8ccd
[ "MIT" ]
null
null
null
import sys import inspect import functools import re from codetiming import Timer sys.path.insert(0, 'D:\\projects\\aoc2020\\') from helper import loadingUtils, pretty DAY = 4 def get_path(): return "day{:02d}".format(DAY) def string_to_dict(line: str): out = {} for field in line.split(" "): k, v...
30.518293
107
0.600799
724
5,005
4.027624
0.220994
0.052812
0.021605
0.027435
0.396433
0.339163
0.227709
0.179698
0.1262
0.1262
0
0.031207
0.27013
5,005
163
108
30.705521
0.767041
0.217982
0
0.34188
0
0
0.116758
0.005994
0
0
0
0
0
1
0.059829
false
0.188034
0.068376
0.017094
0.307692
0.162393
0
0
0
null
0
0
0
0
0
0
0
0
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
4dd8c7d219a87927d24471c0872cd62af52ae559
2,223
py
Python
src/ufldl/linear_model/linear.py
IamGianluca/ufldl-tutorial
3e4d8ef134ff6d695dd8459cf3be880ad20e9adb
[ "MIT" ]
null
null
null
src/ufldl/linear_model/linear.py
IamGianluca/ufldl-tutorial
3e4d8ef134ff6d695dd8459cf3be880ad20e9adb
[ "MIT" ]
null
null
null
src/ufldl/linear_model/linear.py
IamGianluca/ufldl-tutorial
3e4d8ef134ff6d695dd8459cf3be880ad20e9adb
[ "MIT" ]
null
null
null
import numpy as np from scipy.optimize import minimize class RegressionError(Exception): pass class LinearRegression: def __init__(self, solver='bfgs'): self.solver = solver self._coef = None def fit(self, X, y): # initialise the coefficient vector theta m, n = X.shape ...
34.734375
77
0.591093
308
2,223
4.194805
0.282468
0.05418
0.037926
0.03096
0.464396
0.391641
0.391641
0.391641
0.391641
0.391641
0
0.004651
0.322987
2,223
63
78
35.285714
0.853821
0.520468
0
0.083333
0
0
0.004608
0
0
0
0
0
0
1
0.208333
false
0.041667
0.083333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4ddc1585c4eeb4bf02675ba00b3c4b9b1db82b5b
593
py
Python
Bake_bot/migrations/0005_auto_20211027_1153.py
annfike/Bake_Cake_bot
9407f99d1832d0bd5be409d1c02a6dfa8c3a4fff
[ "MIT" ]
null
null
null
Bake_bot/migrations/0005_auto_20211027_1153.py
annfike/Bake_Cake_bot
9407f99d1832d0bd5be409d1c02a6dfa8c3a4fff
[ "MIT" ]
null
null
null
Bake_bot/migrations/0005_auto_20211027_1153.py
annfike/Bake_Cake_bot
9407f99d1832d0bd5be409d1c02a6dfa8c3a4fff
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-10-27 11:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Bake_bot', '0004_alter_order_deliivery_address'), ] operations = [ migrations.AddField( model_name='order', name='de...
24.708333
69
0.602024
65
593
5.292308
0.646154
0.104651
0.133721
0.156977
0.383721
0.383721
0.255814
0
0
0
0
0.044917
0.286678
593
23
70
25.782609
0.768322
0.075885
0
0.352941
1
0
0.142857
0.062271
0
0
0
0
0
1
0
false
0
0.058824
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4deac8e37a28a8afce77619f766cdf70cff4863c
404
py
Python
checkin/admin.py
hackkosice/registration
086103571638706e80b9215ab9f7d57e18ebf13e
[ "MIT" ]
4
2019-02-04T21:21:34.000Z
2021-03-25T01:49:21.000Z
checkin/admin.py
hackkosice/registration
086103571638706e80b9215ab9f7d57e18ebf13e
[ "MIT" ]
null
null
null
checkin/admin.py
hackkosice/registration
086103571638706e80b9215ab9f7d57e18ebf13e
[ "MIT" ]
1
2018-11-19T10:17:19.000Z
2018-11-19T10:17:19.000Z
from django.contrib import admin from checkin import models # Register your models here. class CheckinAdmin(admin.ModelAdmin): list_display = ( 'user', 'check_type', 'application', 'update_time' ) search_fields = list_display date_hierarchy = 'update_time' def get_actions(self, request)...
20.2
61
0.710396
47
404
5.914894
0.680851
0.122302
0
0
0
0
0
0
0
0
0
0
0.195545
404
19
62
21.263158
0.855385
0.064356
0
0
0
0
0.125
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0.090909
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
4deb2bdde98f8b505d31131ccd90ee2bce24566d
686
py
Python
app.py
robhagopian/sample-flask
cdbcb7381d33b0a213a1ee511d21636136c0d963
[ "MIT" ]
null
null
null
app.py
robhagopian/sample-flask
cdbcb7381d33b0a213a1ee511d21636136c0d963
[ "MIT" ]
null
null
null
app.py
robhagopian/sample-flask
cdbcb7381d33b0a213a1ee511d21636136c0d963
[ "MIT" ]
null
null
null
import stripe import os from flask import Flask, render_template, jsonify, request from dotenv import load_dotenv, find_dotenv load_dotenv(find_dotenv()) stripe.api_key = os.getenv('STRIPE_SECRET_KEY') app = Flask(__name__, static_folder='../client', static_url_path='', template_folder='../client') @app.route('/')...
22.129032
97
0.698251
93
686
4.924731
0.451613
0.052402
0.061135
0.087336
0
0
0
0
0
0
0
0.0067
0.129738
686
30
98
22.866667
0.760469
0.026239
0
0
0
0
0.184408
0.032984
0
0
0
0
0
1
0.166667
false
0
0.222222
0.111111
0.555556
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
4debef712e7f9a57c284bddc2e92785a8702b442
3,481
py
Python
dalp-generate-pdf/GeneratePDF/__init__.py
bhumijgupta/DALP
ae9c9390270d6689d7f6da4179672db6c7348578
[ "MIT" ]
15
2020-03-31T18:26:51.000Z
2020-12-01T14:00:46.000Z
dalp-generate-pdf/GeneratePDF/__init__.py
bhumijgupta/DALP
ae9c9390270d6689d7f6da4179672db6c7348578
[ "MIT" ]
7
2020-04-02T09:16:33.000Z
2022-02-27T16:27:58.000Z
dalp-generate-pdf/GeneratePDF/__init__.py
bhumijgupta/DALP
ae9c9390270d6689d7f6da4179672db6c7348578
[ "MIT" ]
7
2020-04-13T05:07:09.000Z
2022-03-22T19:12:43.000Z
import logging import json import os import base64 import azure.functions as func from . import generate_pdf from . import blob_storage def main(req: func.HttpRequest) -> func.HttpResponse: logging.info("Python HTTP trigger function processed a request.") if req.method == "GET": return func.HttpRespo...
31.93578
111
0.525711
347
3,481
5.149856
0.299712
0.031337
0.061556
0.072748
0.325686
0.2507
0.230554
0.163402
0.114158
0.114158
0
0.009166
0.373169
3,481
108
112
32.231481
0.809808
0.264005
0
0.367647
1
0
0.190626
0
0
0
0
0
0
1
0.014706
false
0.029412
0.102941
0
0.191176
0
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
4decacfc432f60778d9f66d47b364cf62dad14f3
1,960
py
Python
interestCalculator.py
johnnypackard/python-intro
15fb9052f1f14aeed3d35f8e2d63d0d4ecfa0741
[ "MIT" ]
null
null
null
interestCalculator.py
johnnypackard/python-intro
15fb9052f1f14aeed3d35f8e2d63d0d4ecfa0741
[ "MIT" ]
null
null
null
interestCalculator.py
johnnypackard/python-intro
15fb9052f1f14aeed3d35f8e2d63d0d4ecfa0741
[ "MIT" ]
null
null
null
# In the first line, we are calling the print() function to display # an informational message. It is the same as printing like # we previously did in the hello world file print('Interest Calculator:') # These next three lines, we're using the following variables to store # the input provided by the user. The variab...
51.578947
116
0.741837
314
1,960
4.630573
0.458599
0.017194
0.022008
0.026135
0.060523
0.044017
0.044017
0
0
0
0
0.004969
0.178571
1,960
38
117
51.578947
0.898137
0.833673
0
0
0
0
0.326733
0
0
0
0
0
0
1
0
false
0
0
0
0
0.285714
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
0
0
0
0
0
0
0
1
4df56e9e5f2f4d1801d3480a8db543ce5f148f8b
825
py
Python
week04/homework/295-find-median-from-data-stream.py
MiracleWong/algorithm-learning-camp
aa5bee8f12dc25992aaebd46647537633bf1207f
[ "MIT" ]
null
null
null
week04/homework/295-find-median-from-data-stream.py
MiracleWong/algorithm-learning-camp
aa5bee8f12dc25992aaebd46647537633bf1207f
[ "MIT" ]
null
null
null
week04/homework/295-find-median-from-data-stream.py
MiracleWong/algorithm-learning-camp
aa5bee8f12dc25992aaebd46647537633bf1207f
[ "MIT" ]
null
null
null
import heapq class MedianFinder: def __init__(self): """ initialize your data structure here. """ # 初始化大顶堆和小顶堆 self.max_heap = [] self.min_heap = [] def addNum(self, num: int) -> None: if len(self.max_heap) == len(self.min_heap): # 先加到小顶堆,再把...
30.555556
73
0.564848
100
825
4.47
0.34
0.12528
0.196868
0.053691
0.442953
0.134228
0.134228
0.134228
0.134228
0
0
0.007042
0.311515
825
27
74
30.555556
0.77993
0.105455
0
0.235294
0
0
0
0
0
0
0
0
0
1
0.176471
false
0
0.058824
0
0.411765
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
4df78b7223c6271279effe11fd5411c4dbe2b679
2,924
py
Python
lambda/lambda.py
SujeethJinesh/presidential-sentiment-translator
262724930f49714724f6bd0a8c833872fafccd09
[ "MIT" ]
null
null
null
lambda/lambda.py
SujeethJinesh/presidential-sentiment-translator
262724930f49714724f6bd0a8c833872fafccd09
[ "MIT" ]
4
2021-03-10T08:37:55.000Z
2022-02-27T00:02:34.000Z
lambda/lambda.py
SujeethJinesh/presidential-sentiment-translator
262724930f49714724f6bd0a8c833872fafccd09
[ "MIT" ]
null
null
null
# Modified from https://gist.github.com/yanofsky/5436496 from pprint import pprint from models.candidate import Candidate from models.party_affiliation import PartyAffiliation from secrets import CONSUMER_KEY, CONSUMER_SECRET, ACCESS_KEY, ACCESS_SECRET from models.candidate_tweet import CandidateTweet import tweepy ...
31.44086
105
0.709644
390
2,924
5.158974
0.394872
0.040258
0.022366
0.024851
0.16998
0.157058
0.157058
0.157058
0.157058
0.11332
0
0.011668
0.208618
2,924
92
106
31.782609
0.857822
0.348837
0
0.102564
0
0
0.054861
0
0
0
0
0.01087
0
1
0.076923
false
0
0.230769
0
0.384615
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
1
0
0
0
0
0
0
0
0
0
0
1
4df9b862216994d1ca945873b0a923014c7717d6
11,175
py
Python
nest_elephant_tvb/translation/transformer_tvb_nest.py
mfahdaz/TVB-NEST
c16e18f41ff07b33482a55f4a033b8c698051c9a
[ "Apache-2.0" ]
2
2020-10-21T11:45:19.000Z
2020-12-01T09:32:53.000Z
nest_elephant_tvb/translation/transformer_tvb_nest.py
mfahdaz/TVB-NEST
c16e18f41ff07b33482a55f4a033b8c698051c9a
[ "Apache-2.0" ]
10
2020-11-17T09:33:19.000Z
2022-01-11T17:00:40.000Z
nest_elephant_tvb/translation/transformer_tvb_nest.py
mfahdaz/TVB-NEST
c16e18f41ff07b33482a55f4a033b8c698051c9a
[ "Apache-2.0" ]
9
2020-11-17T08:52:51.000Z
2021-12-10T12:25:04.000Z
# Copyright 2020 Forschungszentrum Jülich GmbH and Aix-Marseille Université # "Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0. " import time import numpy as np from mpi4py import MPI from nest_elephant_tvb.translation.s...
50.565611
153
0.635168
1,529
11,175
4.53499
0.221714
0.015575
0.020767
0.023796
0.264782
0.212143
0.149553
0.133401
0.119412
0.094029
0
0.011123
0.267919
11,175
220
154
50.795455
0.83645
0.475526
0
0.234694
0
0
0.074422
0
0
0
0
0.063636
0.010204
1
0.040816
false
0.020408
0.040816
0
0.091837
0
0
0
0
null
0
0
0
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
4df9c54fa609aeaa4358b06cc0b90b74c261008d
2,464
py
Python
src/login.py
binexisHATT/c4N4Re
bfac4d3a6cf27f0a2e5ee094097024ba4b77a7c8
[ "MIT" ]
5
2021-02-10T10:10:30.000Z
2021-06-10T14:19:16.000Z
src/login.py
bin3xish477/c4N4Re
bfac4d3a6cf27f0a2e5ee094097024ba4b77a7c8
[ "MIT" ]
null
null
null
src/login.py
bin3xish477/c4N4Re
bfac4d3a6cf27f0a2e5ee094097024ba4b77a7c8
[ "MIT" ]
1
2021-02-20T21:08:52.000Z
2021-02-20T21:08:52.000Z
""" MIT License Copyright (c) 2021 Alexis Rodriguez Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publi...
35.2
95
0.737419
366
2,464
4.879781
0.404372
0.06159
0.036954
0.020157
0.157895
0.109742
0.109742
0.109742
0.109742
0.057111
0
0.012037
0.157062
2,464
70
96
35.2
0.847857
0.435065
0
0.054054
0
0
0.202166
0
0
0
0
0
0
1
0.108108
false
0.243243
0.108108
0.054054
0.297297
0
0
0
0
null
0
0
0
0
0
0
0
0
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
4dfe06ebd11ce7f46d724070a31bba1ca84a5ea5
2,337
py
Python
web/search/esmodels.py
ChiChou/wiggle
df4130d728a980b2d927ae8ec1d9c690dae99d7b
[ "MIT" ]
110
2019-05-10T08:37:42.000Z
2022-01-10T22:41:52.000Z
web/search/esmodels.py
torque59/wiggle
df4130d728a980b2d927ae8ec1d9c690dae99d7b
[ "MIT" ]
1
2020-04-04T14:26:21.000Z
2020-04-04T14:26:21.000Z
web/search/esmodels.py
torque59/wiggle
df4130d728a980b2d927ae8ec1d9c690dae99d7b
[ "MIT" ]
12
2019-05-10T18:15:40.000Z
2021-12-21T10:41:13.000Z
from datetime import datetime from elasticsearch_dsl import * from elasticsearch_dsl.connections import connections # Define a default Elasticsearch client connection = connections.create_connection(hosts=['es', 'localhost']) path_analyzer = analysis.analyzer('path', tokenizer='path_hierarchy') entitlement_key_analyz...
21.440367
73
0.591784
246
2,337
5.479675
0.394309
0.04451
0.059347
0.053412
0.123145
0.043027
0
0
0
0
0
0.002996
0.285837
2,337
108
74
21.638889
0.804673
0.033804
0
0.207792
0
0
0.048444
0
0
0
0
0
0
1
0
false
0
0.064935
0
0.844156
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1500da522621771b562af39df11b71cd538242bb
2,826
py
Python
plugins/cipher_plugin/plugin.py
MrT3acher/Android-Malware-Sandbox
a1b491ed6169fa2803c563dd3b9184b2c252fa8a
[ "Apache-2.0" ]
218
2019-08-06T09:55:07.000Z
2022-03-29T07:49:07.000Z
plugins/cipher_plugin/plugin.py
MrT3acher/Android-Malware-Sandbox
a1b491ed6169fa2803c563dd3b9184b2c252fa8a
[ "Apache-2.0" ]
9
2019-09-12T02:28:05.000Z
2022-03-22T20:59:22.000Z
plugins/cipher_plugin/plugin.py
MrT3acher/Android-Malware-Sandbox
a1b491ed6169fa2803c563dd3b9184b2c252fa8a
[ "Apache-2.0" ]
35
2019-09-10T17:21:46.000Z
2022-03-12T13:47:32.000Z
from sqlalchemy.orm import sessionmaker, scoped_session from lib.model.database.Database import Database from .lib.Cipher import Cipher import logging import os import binascii import base64 import filetype current_path = os.path.dirname(os.path.realpath(__file__)) def onload(): logging.debug("Cipher:loaded()"...
35.772152
326
0.649682
325
2,826
5.529231
0.347692
0.094602
0.133556
0.08069
0.204229
0.16305
0
0
0
0
0
0.008625
0.220453
2,826
79
327
35.772152
0.807081
0.097311
0
0.08
0
0
0.078616
0.018868
0
0
0
0.012658
0
1
0.08
false
0
0.16
0
0.26
0
0
0
0
null
0
0
0
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
1502320e2f3bc3fed87620f1437c428f4067be0e
10,813
py
Python
efficiency_policy.py
icemanzz/SPS_NM_Scripts
f7b9e05e441d35715ee98bf1e2a73765a3a8d7c9
[ "Apache-2.0" ]
null
null
null
efficiency_policy.py
icemanzz/SPS_NM_Scripts
f7b9e05e441d35715ee98bf1e2a73765a3a8d7c9
[ "Apache-2.0" ]
null
null
null
efficiency_policy.py
icemanzz/SPS_NM_Scripts
f7b9e05e441d35715ee98bf1e2a73765a3a8d7c9
[ "Apache-2.0" ]
null
null
null
import pyipmi import pyipmi.interfaces import time import os import glob import os.path as path import shutil import math import numpy import mmap import array import getopt import sys from os_parameters_define import * from utility_function import * from nm_ipmi_raw_to_str import * from error_messages_define import *...
41.429119
300
0.739295
1,593
10,813
4.728814
0.173258
0.046595
0.022302
0.011947
0.492367
0.445374
0.417629
0.374884
0.322315
0.285676
0
0.018624
0.18561
10,813
260
301
41.588462
0.836816
0.278276
0
0.296089
0
0
0.111154
0.004016
0
0
0
0
0
0
null
null
0.039106
0.106145
null
null
0.145251
0
0
0
null
0
0
0
0
0
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
1502a12b4835ec87ebb48284aef68bab361ed9fe
996
py
Python
bridge/jobs/test.py
kirillyat/klever
259cc1345df91a47bc028f813613f063a8465429
[ "Apache-2.0" ]
16
2018-07-14T15:37:02.000Z
2020-07-11T14:26:59.000Z
bridge/jobs/test.py
kirillyat/klever
259cc1345df91a47bc028f813613f063a8465429
[ "Apache-2.0" ]
2
2019-10-28T22:32:31.000Z
2020-04-24T09:24:20.000Z
bridge/jobs/test.py
kirillyat/klever
259cc1345df91a47bc028f813613f063a8465429
[ "Apache-2.0" ]
10
2018-11-09T12:54:15.000Z
2021-10-31T17:01:39.000Z
# # Copyright (c) 2019 ISP RAS (http://www.ispras.ru) # Ivannikov Institute for System Programming of the Russian Academy of Sciences # # 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 # # h...
34.344828
79
0.727912
155
996
4.632258
0.625806
0.083565
0.036212
0.044568
0
0
0
0
0
0
0
0.013301
0.169679
996
28
80
35.571429
0.854897
0.651606
0
0
0
0
0.121212
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.5
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
15071e2cda8449177fe59817b44638d12e142a38
13,717
py
Python
gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_closure.py
ckiosidis/flyteidl
081a8526ef0f5d4bc8f0db9eade686744ad855b1
[ "Apache-2.0" ]
null
null
null
gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_closure.py
ckiosidis/flyteidl
081a8526ef0f5d4bc8f0db9eade686744ad855b1
[ "Apache-2.0" ]
3
2021-03-27T12:20:58.000Z
2021-03-29T09:45:45.000Z
gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_closure.py
samhita-alla/flyteidl
091505aae78d935ae55e4d0e46deee5a1e79a22f
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ flyteidl/service/admin.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: version not set Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import r...
31.752315
217
0.62623
1,559
13,717
5.377165
0.116742
0.060122
0.177502
0.150304
0.560301
0.482643
0.449243
0.35572
0.26685
0.187761
0
0.023313
0.293286
13,717
431
218
31.825986
0.841448
0.455274
0
0.077778
1
0
0.071118
0.007723
0
0
0
0
0
1
0.166667
false
0
0.044444
0
0.327778
0.011111
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
1507684281cb3daa808ee72792fd286ff3afaeb9
11,599
py
Python
PyVisionLocalizeCommon/src/hulo_sfm/cleanSfM.py
hulop/SfMLocalization
dd0a5ed202c675449b1f84d180ee69149fa76534
[ "MIT" ]
13
2015-11-01T09:38:46.000Z
2022-02-02T19:01:54.000Z
PyVisionLocalizeCommon/src/hulo_sfm/cleanSfM.py
hulop/SfMLocalization
dd0a5ed202c675449b1f84d180ee69149fa76534
[ "MIT" ]
3
2016-04-20T21:29:29.000Z
2016-05-03T23:25:02.000Z
PyVisionLocalizeCommon/src/hulo_sfm/cleanSfM.py
hulop/SfMLocalization
dd0a5ed202c675449b1f84d180ee69149fa76534
[ "MIT" ]
9
2016-02-12T03:27:01.000Z
2019-09-11T10:01:51.000Z
################################################################################ # Copyright (c) 2015 IBM Corporation # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, in...
41.873646
164
0.575222
1,421
11,599
4.619986
0.226601
0.076771
0.031988
0.023458
0.2885
0.221478
0.201219
0.176847
0.16527
0.119574
0
0.01319
0.294077
11,599
277
165
41.873646
0.788593
0.271144
0
0.269737
0
0
0.133536
0
0
0
0
0
0
0
null
null
0
0.039474
null
null
0.032895
0
0
0
null
0
0
0
0
0
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
150dcf9432d3a7b3cdb0b62cfccbcded4584e206
2,237
py
Python
tools/deepke/relation_extraction/few_shot/dataset/base_data_module.py
dfface/DoctorKG
6bd6ebec8244a9ce0a2c8c278a704f02b9afaaf8
[ "MIT" ]
1
2022-03-26T16:08:08.000Z
2022-03-26T16:08:08.000Z
tools/deepke/relation_extraction/few_shot/dataset/base_data_module.py
dfface/DoctorKG
6bd6ebec8244a9ce0a2c8c278a704f02b9afaaf8
[ "MIT" ]
null
null
null
tools/deepke/relation_extraction/few_shot/dataset/base_data_module.py
dfface/DoctorKG
6bd6ebec8244a9ce0a2c8c278a704f02b9afaaf8
[ "MIT" ]
null
null
null
"""Base DataModule class.""" from torch.utils.data import DataLoader from torch import nn BATCH_SIZE = 8 NUM_WORKERS = 8 class BaseDataModule(nn.Module): """ Base DataModule. """ def __init__(self, args) -> None: super().__init__() self.args = args self....
34.953125
168
0.644613
295
2,237
4.691525
0.359322
0.078035
0.046965
0.065029
0.289017
0.289017
0.206647
0.206647
0.147399
0.147399
0
0.001203
0.256594
2,237
63
169
35.507937
0.831028
0.193116
0
0.083333
0
0
0.133574
0
0
0
0
0
0
1
0.222222
false
0.027778
0.055556
0.083333
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
1
0
0
0
0
0
0
0
1
15117cfaac2d055c75875ff3722a1449d09b3b2c
6,371
py
Python
python/scripts/generic-pytest/test_zap.py
eas5/zaproxy
b9271e71e5749bb72d03c37a74863574c3329168
[ "Apache-2.0" ]
10,016
2015-06-03T17:30:01.000Z
2022-03-31T23:48:56.000Z
python/scripts/generic-pytest/test_zap.py
eas5/zaproxy
b9271e71e5749bb72d03c37a74863574c3329168
[ "Apache-2.0" ]
7,043
2015-06-04T11:50:06.000Z
2022-03-31T16:25:45.000Z
python/scripts/generic-pytest/test_zap.py
eas5/zaproxy
b9271e71e5749bb72d03c37a74863574c3329168
[ "Apache-2.0" ]
2,258
2015-06-04T16:37:05.000Z
2022-03-31T14:43:54.000Z
# Zed Attack Proxy (ZAP) and its related class files. # # ZAP is an HTTP/HTTPS proxy for assessing web application security. # # Copyright 2012 ZAP Development Team # # 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 c...
32.671795
99
0.697693
869
6,371
5.064442
0.313003
0.038173
0.018178
0.023177
0.11202
0.095433
0.079982
0.058623
0.058623
0.017723
0
0.007494
0.183174
6,371
194
100
32.840206
0.838201
0.339507
0
0.155738
0
0
0.124038
0
0
0
0
0.005155
0.016393
0
null
null
0
0.065574
null
null
0.065574
0
0
0
null
0
0
0
0
0
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
1519870920ef2664457ea509c1a41368f32bbdd7
7,751
py
Python
openapi-python-client/openapi_client/models/external_task_failure_dto.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
openapi-python-client/openapi_client/models/external_task_failure_dto.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
openapi-python-client/openapi_client/models/external_task_failure_dto.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Camunda BPM REST API OpenApi Spec for Camunda BPM REST API. # noqa: E501 The version of the OpenAPI document: 7.13.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from openapi_client.configuration import Configuration clas...
32.982979
264
0.626887
932
7,751
5.065451
0.171674
0.047448
0.118619
0.101673
0.560263
0.490786
0.44122
0.393349
0.282144
0.2258
0
0.018441
0.293382
7,751
234
265
33.123932
0.843527
0.426913
0
0.089109
1
0
0.052929
0
0
0
0
0
0
1
0.158416
false
0
0.039604
0
0.346535
0.019802
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
151a69b33c7ab4683733d1b721bedea737558152
14,871
py
Python
python/uw/like/roi_upper_limits.py
tburnett/pointlike
a556f07650c2f17d437c86fdafe9f9a33f59758e
[ "BSD-3-Clause" ]
1
2019-03-19T14:45:28.000Z
2019-03-19T14:45:28.000Z
python/uw/like/roi_upper_limits.py
tburnett/pointlike
a556f07650c2f17d437c86fdafe9f9a33f59758e
[ "BSD-3-Clause" ]
null
null
null
python/uw/like/roi_upper_limits.py
tburnett/pointlike
a556f07650c2f17d437c86fdafe9f9a33f59758e
[ "BSD-3-Clause" ]
1
2018-08-24T18:58:27.000Z
2018-08-24T18:58:27.000Z
""" Module to calculate flux and extension upper limits. $Header: /nfs/slac/g/glast/ground/cvs/pointlike/python/uw/like/roi_upper_limits.py,v 1.29 2012/11/07 01:22:58 lande Exp $ author: Eric Wallace <ewallace@uw.edu>, Joshua Lande <joshualande@gmail.com> """ import math import numpy as np from scipy import integrat...
42.488571
164
0.639163
1,971
14,871
4.703704
0.228818
0.02373
0.010355
0.015532
0.17819
0.14389
0.094272
0.0727
0.045087
0.033438
0
0.014588
0.27631
14,871
349
165
42.610315
0.846869
0.045323
0
0.178947
0
0.005263
0.183119
0.00997
0
0
0
0
0.005263
0
null
null
0.010526
0.063158
null
null
0.068421
0
0
0
null
0
0
0
0
0
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
151b8ac53ba7d8ab8585d5a980083eda155580d2
718
py
Python
.idea/VirtualEnvironment/Lib/site-packages/tests/outcomes/parametrized_tests/wrong/test_wrong_data_2/test.py
Vladpetr/NewsPortal
cd4127fbc09d9c8f5e65c8ae699856c6d380a320
[ "Apache-2.0" ]
null
null
null
.idea/VirtualEnvironment/Lib/site-packages/tests/outcomes/parametrized_tests/wrong/test_wrong_data_2/test.py
Vladpetr/NewsPortal
cd4127fbc09d9c8f5e65c8ae699856c6d380a320
[ "Apache-2.0" ]
5
2021-04-08T22:02:15.000Z
2022-02-10T14:53:45.000Z
.idea/VirtualEnvironment/Lib/site-packages/tests/outcomes/parametrized_tests/wrong/test_wrong_data_2/test.py
Vladpetr/NewsPortal
cd4127fbc09d9c8f5e65c8ae699856c6d380a320
[ "Apache-2.0" ]
null
null
null
import unittest from hstest.check_result import CheckResult from hstest.dynamic.dynamic_test import dynamic_test from hstest.stage_test import StageTest class TestWrongData2(StageTest): test_data = [] counter = 0 @dynamic_test(data=test_data) def test(self, a): self.counter += 1 pr...
23.16129
78
0.66156
85
718
5.4
0.482353
0.065359
0.04793
0
0
0
0
0
0
0
0
0.009074
0.232591
718
30
79
23.933333
0.823956
0
0
0
0
0
0.119777
0
0
0
0
0
0.1
1
0.1
false
0.05
0.2
0
0.55
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
1
0
0
1
151d7b212331889fcc0e229e4932c68b41cfbbf5
14,972
py
Python
tests/test_sendgrid_webhooks.py
alee/django-anymail
acca6a46e17143caadb0445d7bdeb2f1eb00b71b
[ "BSD-3-Clause" ]
1
2019-10-23T06:35:56.000Z
2019-10-23T06:35:56.000Z
tests/test_sendgrid_webhooks.py
alee/django-anymail
acca6a46e17143caadb0445d7bdeb2f1eb00b71b
[ "BSD-3-Clause" ]
null
null
null
tests/test_sendgrid_webhooks.py
alee/django-anymail
acca6a46e17143caadb0445d7bdeb2f1eb00b71b
[ "BSD-3-Clause" ]
null
null
null
import json from datetime import datetime from django.test import tag from django.utils.timezone import utc from mock import ANY from anymail.signals import AnymailTrackingEvent from anymail.webhooks.sendgrid import SendGridTrackingWebhookView from .webhook_cases import WebhookBasicAuthTestsMixin, WebhookTestCase @...
55.451852
119
0.637123
1,522
14,972
6.118265
0.187911
0.107925
0.12457
0.042955
0.756658
0.706937
0.629832
0.62543
0.602448
0.561426
0
0.094068
0.244523
14,972
269
120
55.657993
0.729202
0.021707
0
0.560484
0
0.008065
0.313
0.170708
0
0
0
0
0.342742
1
0.040323
false
0
0.032258
0.004032
0.084677
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1276ec57c7802518fe382fa6866c3593fb43552e
805
py
Python
example_config.py
totalhack/chatbot
c7e732d3525d1b55291149ceb2f359fbd66214d1
[ "MIT" ]
null
null
null
example_config.py
totalhack/chatbot
c7e732d3525d1b55291149ceb2f359fbd66214d1
[ "MIT" ]
null
null
null
example_config.py
totalhack/chatbot
c7e732d3525d1b55291149ceb2f359fbd66214d1
[ "MIT" ]
null
null
null
''' NOTE: Set CHATBOT_CONFIG env var to the path to your config file ''' SECRET_KEY = 'mysupersecretkey' DEBUG = True PROFILE = False ### Database connection info SQLALCHEMY_DATABASE_URI = '<my database uri>' SQLALCHEMY_TRACK_MODIFICATIONS = False TEST_BASE_URL = 'http://127.0.0.1:9000' NEW_INTENT_LIMIT = 1 ### LU...
24.393939
66
0.715528
117
805
4.683761
0.521368
0.051095
0.032847
0.083942
0
0
0
0
0
0
0
0.016082
0.150311
805
32
67
25.15625
0.785088
0.115528
0
0
0
0
0.446571
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
127b7542fdb32a85d1aea9d4968497b7facd6817
3,364
py
Python
api.py
beldmian/yastation
a82ef8229d41780a47a9d58b7ad18e320b198f54
[ "MIT" ]
26
2022-03-27T14:03:00.000Z
2022-03-30T13:11:26.000Z
api.py
beldmian/yastation
a82ef8229d41780a47a9d58b7ad18e320b198f54
[ "MIT" ]
null
null
null
api.py
beldmian/yastation
a82ef8229d41780a47a9d58b7ad18e320b198f54
[ "MIT" ]
5
2022-03-27T17:05:54.000Z
2022-03-29T12:30:05.000Z
from utils import create_scenario import requests import re class YandexAPI: quasar_url = "https://iot.quasar.yandex.ru/m/user" music_url = "https://api.music.yandex.net" session = requests.session() csrf_token = None music_uid = 0 login = "" password = "" def __init__(self, login, pa...
39.576471
120
0.583234
394
3,364
4.807107
0.251269
0.081309
0.044351
0.058078
0.408659
0.346885
0.346885
0.331045
0.234425
0.214889
0
0.002002
0.257432
3,364
84
121
40.047619
0.756205
0
0
0.173913
0
0
0.234839
0.012188
0
0
0
0
0
1
0.130435
false
0.130435
0.043478
0.028986
0.376812
0.014493
0
0
0
null
0
0
0
0
0
0
0
0
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
12846f6f52437c72f28c147875d0d0f65d1bd8c3
854
py
Python
Training/edX MIT course/Week 3/returnLargestFromMutatedlist.py
Skygear55/Training
6fe2e2e17bdc4744bc4dd0da8f3aa7bac65affc6
[ "MIT" ]
null
null
null
Training/edX MIT course/Week 3/returnLargestFromMutatedlist.py
Skygear55/Training
6fe2e2e17bdc4744bc4dd0da8f3aa7bac65affc6
[ "MIT" ]
null
null
null
Training/edX MIT course/Week 3/returnLargestFromMutatedlist.py
Skygear55/Training
6fe2e2e17bdc4744bc4dd0da8f3aa7bac65affc6
[ "MIT" ]
null
null
null
def f(i): return i + 2 def g(i): return i > 1000 def applyF_filterG(L, f, g): """ Assumes L is a list of integers Assume functions f and g are defined for you. f takes in an integer, applies a function, returns another integer g takes in an integer, applies a Boolean function...
26.6875
76
0.580796
134
854
3.686567
0.462687
0.008097
0.032389
0.060729
0.161943
0.097166
0
0
0
0
0
0.058201
0.336066
854
32
77
26.6875
0.813051
0.498829
0
0
0
0
0
0
0
0
0
0
0
1
0.1875
false
0
0
0.125
0.4375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
12860e25de7513cf8d9446d78d58914e8e93f8d7
2,291
py
Python
src/OTLMOW/OTLModel/Datatypes/KlVGSchermelementtype.py
davidvlaminck/OTLClassPython
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
2
2022-02-01T08:58:11.000Z
2022-02-08T13:35:17.000Z
src/OTLMOW/OTLModel/Datatypes/KlVGSchermelementtype.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
src/OTLMOW/OTLModel/Datatypes/KlVGSchermelementtype.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
# coding=utf-8 from OTLMOW.OTLModel.Datatypes.KeuzelijstField import KeuzelijstField from OTLMOW.OTLModel.Datatypes.KeuzelijstWaarde import KeuzelijstWaarde # Generated with OTLEnumerationCreator. To modify: extend, do not edit class KlVGSchermelementtype(KeuzelijstField): """Het type vlak-schermelement.""" n...
79
202
0.599738
161
2,291
8.534161
0.31677
0.069141
0.083697
0.120087
0.39083
0.268559
0.209607
0.209607
0.209607
0.209607
0
0.000643
0.321257
2,291
28
203
81.821429
0.882958
0.04845
0
0
1
0.136364
0.469153
0.123849
0
0
0
0
0
1
0
false
0
0.090909
0
0.409091
0
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
128c00d8df1aa478a791e94e742d1c3e56473f2b
2,511
py
Python
tasks/admin.py
pddg/task_categorizer
7716802ae7c50a091d666f45beac59ac3fcb2d03
[ "MIT" ]
null
null
null
tasks/admin.py
pddg/task_categorizer
7716802ae7c50a091d666f45beac59ac3fcb2d03
[ "MIT" ]
9
2019-12-17T09:42:05.000Z
2021-09-22T18:15:36.000Z
tasks/admin.py
pddg/task_categorizer
7716802ae7c50a091d666f45beac59ac3fcb2d03
[ "MIT" ]
null
null
null
from django.contrib import admin from . import models class DoNotLog: def log_addition(self, *args, **kwargs): return def log_change(self, *args, **kwargs): return def log_deletion(self, *args, **kwargs): return class YamlAdmin(DoNotLog, admin.ModelAdmin): list_display = (...
27.9
91
0.674632
309
2,511
5.300971
0.23301
0.04884
0.084249
0.098901
0.429792
0.30464
0.183761
0.081807
0.081807
0.081807
0
0.004447
0.193947
2,511
89
92
28.213483
0.804842
0
0
0.225806
0
0
0.127439
0.031063
0
0
0
0
0
1
0.177419
false
0
0.032258
0.129032
0.677419
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
128db2b2f19041a6221431fe13cfc9b026777f84
1,576
py
Python
secateur/migrations/0011_auto_20200530_1841.py
tveastman/secateur
a71e935d11344bc29fcac6700d23a2e8f453068b
[ "MIT" ]
45
2019-07-28T11:23:35.000Z
2022-03-06T04:04:32.000Z
secateur/migrations/0011_auto_20200530_1841.py
tveastman/secateur
a71e935d11344bc29fcac6700d23a2e8f453068b
[ "MIT" ]
26
2019-08-06T07:37:21.000Z
2022-03-06T03:49:29.000Z
secateur/migrations/0011_auto_20200530_1841.py
tveastman/secateur
a71e935d11344bc29fcac6700d23a2e8f453068b
[ "MIT" ]
5
2019-08-24T04:13:25.000Z
2021-04-11T01:17:46.000Z
# Generated by Django 3.0.6 on 2020-05-30 06:41 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("secateur", "0010_auto_20200529_2124"), ] operations = [ migrations.AddField( model_name="logmes...
29.185185
66
0.429569
127
1,576
5.267717
0.559055
0.035874
0.103139
0.121076
0.183857
0.183857
0
0
0
0
0
0.05767
0.449873
1,576
53
67
29.735849
0.713956
0.028553
0
0.319149
1
0
0.159581
0.015043
0
0
0
0
0
1
0
false
0
0.042553
0
0.106383
0
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
128df322d998cc87ce33ea66fd532416003dab0d
8,190
py
Python
yahoo_fantasy_api/yhandler.py
K-Money/yahoo_fantasy_api
7948525537417e63ace383533b0aa2847c9eafdf
[ "MIT" ]
null
null
null
yahoo_fantasy_api/yhandler.py
K-Money/yahoo_fantasy_api
7948525537417e63ace383533b0aa2847c9eafdf
[ "MIT" ]
null
null
null
yahoo_fantasy_api/yhandler.py
K-Money/yahoo_fantasy_api
7948525537417e63ace383533b0aa2847c9eafdf
[ "MIT" ]
null
null
null
#!/bin/python import json YAHOO_ENDPOINT = 'https://fantasysports.yahooapis.com/fantasy/v2' class YHandler: """Class that constructs the APIs to send to Yahoo""" def __init__(self, sc): self.sc = sc def get(self, uri): """Send an API request to the URI and return the response as JSON ...
38.271028
78
0.610379
1,109
8,190
4.41569
0.176736
0.060445
0.026547
0.029406
0.540739
0.452318
0.394936
0.294874
0.27037
0.261589
0
0.003125
0.296703
8,190
213
79
38.450704
0.847049
0.479609
0
0.2
0
0
0.141444
0.066356
0
0
0
0
0
1
0.214286
false
0
0.014286
0
0.442857
0
0
0
0
null
0
0
0
0
0
0
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
128f85ae5eb9fe92c052188759b5484a10516047
7,279
py
Python
archive/units_v1.py
OhEvolve/RANDY
71b3fad456611488bf1ebb579e2f5033230148e3
[ "MIT" ]
null
null
null
archive/units_v1.py
OhEvolve/RANDY
71b3fad456611488bf1ebb579e2f5033230148e3
[ "MIT" ]
null
null
null
archive/units_v1.py
OhEvolve/RANDY
71b3fad456611488bf1ebb579e2f5033230148e3
[ "MIT" ]
null
null
null
# units.py """ Module to take care of everything related to units """ # standard libraries # nonstandard libraries # homegrown libraries #--------------------------------------# # Main Methods # #--------------------------------------# def add_units(*units): """ Subtract two units from...
30.329167
84
0.583322
945
7,279
4.301587
0.196825
0.0492
0.02706
0.02583
0.468881
0.42706
0.408118
0.388438
0.3631
0.317343
0
0.018016
0.229839
7,279
239
85
30.456067
0.7071
0.265421
0
0.25
0
0
0.078833
0
0
0
0
0.004184
0
0
null
null
0
0
null
null
0.046296
0
0
0
null
0
0
0
0
0
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
1292a9a685213c66a0a6c1361b5fac9bbe8e507f
6,318
py
Python
crus/controllers/mocking/shared/shell.py
Cray-HPE/cray-crus
6643aa3eb3debe5cbe0088f6a30b7e56ca1b1f17
[ "MIT" ]
null
null
null
crus/controllers/mocking/shared/shell.py
Cray-HPE/cray-crus
6643aa3eb3debe5cbe0088f6a30b7e56ca1b1f17
[ "MIT" ]
1
2022-03-02T21:06:21.000Z
2022-03-04T17:32:14.000Z
crus/controllers/mocking/shared/shell.py
Cray-HPE/cray-crus
6643aa3eb3debe5cbe0088f6a30b7e56ca1b1f17
[ "MIT" ]
null
null
null
# # MIT License # # (C) Copyright 2019, 2021-2022 Hewlett Packard Enterprise Development LP # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation...
29.661972
78
0.639918
807
6,318
4.939281
0.339529
0.022077
0.019318
0.012042
0.060712
0.021074
0.021074
0.021074
0.021074
0
0
0.003954
0.279519
6,318
212
79
29.801887
0.871705
0.547325
0
0.105263
0
0
0.009044
0
0
0
0
0
0.013158
1
0.223684
false
0
0.013158
0
0.434211
0.013158
0
0
0
null
0
0
0
0
0
0
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
1296b3b1222c7dfad8b95848d264d4a9a04cbd13
530
py
Python
test.py
Romeno/chronotrack
d10aaee9f92ef852b5c4639f67a5e8a574d9165f
[ "MIT" ]
null
null
null
test.py
Romeno/chronotrack
d10aaee9f92ef852b5c4639f67a5e8a574d9165f
[ "MIT" ]
null
null
null
test.py
Romeno/chronotrack
d10aaee9f92ef852b5c4639f67a5e8a574d9165f
[ "MIT" ]
null
null
null
import chronotrack as ct from server_keys import * def main(): api = ct.Chronotrack(client_id=CT_CLIENT_ID, user_id=CT_LOGIN, user_pass=CT_PASSWORD) api.set_auth_type(ct.AUTH_SIMPLE) api.set_debug() event = api.event(32804) print(event["data"]) entries = api.results(race_id=81829, size=50)...
20.384615
89
0.662264
79
530
4.139241
0.506329
0.04893
0.067278
0
0
0
0
0
0
0
0
0.040284
0.203774
530
25
90
21.2
0.734597
0
0
0
0
0
0.079245
0
0
0
0
0
0
1
0.0625
false
0.0625
0.125
0
0.1875
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
12b211c195fe12a86eb7f13c78751ba941f7c7a3
726
py
Python
accounts/migrations/0007_auto_20180424_1812.py
Manasranjanpati/Jobpost
e5654129538e70cedf8aafc65c1b0289a01535e5
[ "MIT" ]
20
2018-05-04T18:42:35.000Z
2021-03-18T07:15:12.000Z
src/accounts/migrations/0007_auto_20180424_1812.py
fleepgeek/django-jobsite
d9547c4ee85751677ba6458380b609973c3b4a8d
[ "MIT" ]
5
2020-02-11T22:22:33.000Z
2021-06-10T20:18:05.000Z
accounts/migrations/0007_auto_20180424_1812.py
Manasranjanpati/Jobpost
e5654129538e70cedf8aafc65c1b0289a01535e5
[ "MIT" ]
8
2018-05-04T19:03:23.000Z
2020-09-23T00:24:46.000Z
# Generated by Django 2.0.4 on 2018-04-24 17:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0006_auto_20180423_2027'), ] operations = [ migrations.AlterModelOptions( name='company', options={'verb...
31.565217
245
0.592287
86
726
4.883721
0.662791
0.052381
0.052381
0
0
0
0
0
0
0
0
0.093066
0.245179
726
22
246
33
0.673358
0.061983
0
0.125
1
0
0.268041
0.033873
0
0
0
0
0
1
0
false
0
0.0625
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
12b528a268661e1066ca77ea23f828e1bbe39667
497
py
Python
scripts/build_combined.py
msullivan/solvertools
604ec1e7e2faa01f95a286e30b8ad7ccc016cc13
[ "MIT" ]
null
null
null
scripts/build_combined.py
msullivan/solvertools
604ec1e7e2faa01f95a286e30b8ad7ccc016cc13
[ "MIT" ]
null
null
null
scripts/build_combined.py
msullivan/solvertools
604ec1e7e2faa01f95a286e30b8ad7ccc016cc13
[ "MIT" ]
null
null
null
from solvertools.wordlist import combine_wordlists, build_extras def build_combined_list(): combine_wordlists([ ('google-books', 1), ('enable', 10000), ('twl06', 10000), ('csw-apr07', 10000), ('wikipedia-en-links', 10000), # ('wikipedia-en-titles', 1), ('word...
23.666667
64
0.577465
49
497
5.530612
0.673469
0.118081
0.125461
0
0
0
0
0
0
0
0
0.107817
0.253521
497
20
65
24.85
0.622642
0.054326
0
0
0
0
0.219089
0
0
0
0
0
0
1
0.066667
true
0
0.066667
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
12b57a234ded7936740a55d1c95d1295381821c7
1,356
py
Python
pylux_tb/pylux_tb.py
sglux/iot-sglux-com-example-1
55b2617297c26066e7fbe502d46ceb6ecdfb7c85
[ "MIT" ]
null
null
null
pylux_tb/pylux_tb.py
sglux/iot-sglux-com-example-1
55b2617297c26066e7fbe502d46ceb6ecdfb7c85
[ "MIT" ]
6
2020-09-24T15:37:56.000Z
2021-03-18T16:36:41.000Z
pylux_tb/pylux_tb.py
sglux/iot-sglux-com-example-1
55b2617297c26066e7fbe502d46ceb6ecdfb7c85
[ "MIT" ]
null
null
null
# tb_functions.py import requests import json # -------------------------------------------------------------------- # function waiting for input of an integer between min/max for selection # of something def get_num_input(prompt, min, max, default): while True: try: value = int(input...
30.818182
117
0.536873
149
1,356
4.785235
0.510067
0.021038
0.047686
0
0
0
0
0
0
0
0
0
0.29941
1,356
43
118
31.534884
0.750526
0.169617
0
0.272727
0
0
0.260223
0
0
0
0
0
0
1
0.121212
false
0.060606
0.060606
0
0.333333
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
12b62c88a649d2134b0eb59a3ba23a3eb890df31
4,519
py
Python
experiments/auth.py
Socrats/beelbe
fcd051ea9385660d2cfd40e5d53c5bf6f13636a6
[ "Apache-2.0" ]
null
null
null
experiments/auth.py
Socrats/beelbe
fcd051ea9385660d2cfd40e5d53c5bf6f13636a6
[ "Apache-2.0" ]
null
null
null
experiments/auth.py
Socrats/beelbe
fcd051ea9385660d2cfd40e5d53c5bf6f13636a6
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth import get_user_model from django.contrib.auth.backends import ModelBackend from django.core.exceptions import PermissionDenied from django.http import Http404 from django.shortcuts import get_object_or_404 from django.utils.translation import get_language from experiments.constants import Con...
41.842593
114
0.647931
522
4,519
5.496169
0.247126
0.053677
0.016731
0.025096
0.27222
0.228651
0.140119
0.090624
0.090624
0.090624
0
0.005853
0.281699
4,519
107
115
42.233645
0.878004
0.225714
0
0.174603
0
0
0.015956
0
0
0
0
0
0
1
0.063492
false
0.079365
0.126984
0
0.253968
0
0
0
0
null
0
0
0
0
0
0
0
0
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
12b66c965d799fd875f53385777882dc83504713
15,847
py
Python
Utilities/AAFAnalyzer/python/parse.py
Phygon/aaf
faef720e031f501190481e1d1fc1870a7dc8f98b
[ "Linux-OpenIB" ]
null
null
null
Utilities/AAFAnalyzer/python/parse.py
Phygon/aaf
faef720e031f501190481e1d1fc1870a7dc8f98b
[ "Linux-OpenIB" ]
null
null
null
Utilities/AAFAnalyzer/python/parse.py
Phygon/aaf
faef720e031f501190481e1d1fc1870a7dc8f98b
[ "Linux-OpenIB" ]
null
null
null
import sys import os # First, the Requirement class contains requirement id # (ie. REQ_EP_123), name, details (description), type (i.e. file, app, # or def), category (e.g. track, compositional, anotation, etc) - # everything reported by the analyzer (and documented in the # Requirements.xml file). This # # Second, t...
30.300191
128
0.669527
2,233
15,847
4.682938
0.167936
0.022951
0.011189
0.013006
0.206465
0.157502
0.14048
0.129578
0.117242
0.099837
0
0.0077
0.205023
15,847
522
129
30.358238
0.822353
0.34505
0
0.133333
0
0.003333
0.131325
0.006825
0
0
0
0.001916
0.013333
0
null
null
0.03
0.006667
null
null
0.006667
0
0
0
null
0
0
0
0
0
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
12c19ba36cea251878b4c90e472d4de44834685b
6,053
py
Python
cloudify_deployment_proxy/tests/test_blueprints.py
jrzeszutek/cloudify-utilities-plugin
d62fc98e9164fd836d8f22a757b5a58ca119f97a
[ "Apache-2.0" ]
8
2017-06-14T14:59:17.000Z
2021-09-15T05:44:05.000Z
cloudify_deployment_proxy/tests/test_blueprints.py
jrzeszutek/cloudify-utilities-plugin
d62fc98e9164fd836d8f22a757b5a58ca119f97a
[ "Apache-2.0" ]
75
2017-04-20T20:42:26.000Z
2022-02-16T11:03:02.000Z
cloudify_deployment_proxy/tests/test_blueprints.py
jrzeszutek/cloudify-utilities-plugin
d62fc98e9164fd836d8f22a757b5a58ca119f97a
[ "Apache-2.0" ]
21
2017-08-13T13:19:58.000Z
2021-12-09T14:41:42.000Z
# Copyright (c) 2017-2018 Cloudify Platform Ltd. 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 ...
41.176871
75
0.658516
650
6,053
5.826154
0.215385
0.08714
0.107737
0.095854
0.660417
0.629522
0.611566
0.602588
0.602588
0.58648
0
0.003117
0.257889
6,053
146
76
41.458904
0.839938
0.124732
0
0.69697
0
0
0.159659
0.047917
0
0
0
0
0.050505
1
0.070707
false
0
0.080808
0
0.181818
0.474747
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
12c6d3f2e2f9c939478a5dbb24a4c84d04e10d6d
1,001
py
Python
Koridor/interface/wall.py
erdnaxe/Koridor
11b6432d4e0c5803d6fa3f45fcdbcf75d4e7c386
[ "MIT" ]
1
2018-11-05T12:56:59.000Z
2018-11-05T12:56:59.000Z
Koridor/interface/wall.py
MrChapelle/Le-jeu-des-Verts
efea2fa1e2b026036a8e6c4846e90d13627782f5
[ "MIT" ]
1
2018-11-05T14:30:05.000Z
2018-11-05T14:30:05.000Z
Koridor/interface/wall.py
erdnaxe/Koridor
11b6432d4e0c5803d6fa3f45fcdbcf75d4e7c386
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .line import * class Wall: def __init__(self, coord, side, grid): """ Constructor """ color = [255, 0, 0] width = 3 # Origin coords of the case x = coord[0] * grid.case_width y = coord[1] * grid.case_height ...
25.666667
70
0.473526
131
1,001
3.526718
0.29771
0.138528
0.112554
0.17316
0.463203
0.309524
0.188312
0.188312
0
0
0
0.043333
0.400599
1,001
38
71
26.342105
0.726667
0.075924
0
0.173913
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0.043478
0
0.173913
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
12d580470601d65a69f77553f831ae55c2b1c759
7,695
py
Python
tests/cases/find_entry_point_plugins_test.py
adsorensen/girder
ae461d1198e6173f36168a71d4f7a9a5f66e6b70
[ "Apache-2.0" ]
null
null
null
tests/cases/find_entry_point_plugins_test.py
adsorensen/girder
ae461d1198e6173f36168a71d4f7a9a5f66e6b70
[ "Apache-2.0" ]
null
null
null
tests/cases/find_entry_point_plugins_test.py
adsorensen/girder
ae461d1198e6173f36168a71d4f7a9a5f66e6b70
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright Kitware Inc. # # Licensed under the Apache License, Version 2.0 ( the "License" ); # you may not use this file except in compliance with the License. # You may obtain a copy of ...
40.078125
100
0.693827
830
7,695
6.118072
0.173494
0.049626
0.08271
0.056124
0.743994
0.71859
0.667192
0.626625
0.626625
0.520087
0
0.000805
0.193242
7,695
191
101
40.287958
0.817171
0.08434
0
0.5
0
0
0.266269
0.188965
0
0
0
0
0.228814
1
0.110169
false
0
0.042373
0
0.169492
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
12d767a57be41a76c719061ca0683534fe530124
657
py
Python
coin_change_problem.py
roopsmall/hackerrank-questions
f38d710be7a46491e5dc435155d953ae821d2055
[ "MIT" ]
null
null
null
coin_change_problem.py
roopsmall/hackerrank-questions
f38d710be7a46491e5dc435155d953ae821d2055
[ "MIT" ]
null
null
null
coin_change_problem.py
roopsmall/hackerrank-questions
f38d710be7a46491e5dc435155d953ae821d2055
[ "MIT" ]
null
null
null
total, num_coins = [int(i) for i in raw_input().split()] if num_coins: coins = [long(i) for i in raw_input().split()] upper_bound = [total/coin_val + 1 for coin_val in coins] accepted_configurations = 0 normalisers = upper_bound + [1] def prod(x): return reduce(lambda a, b: long(a) * long(b), x + [1]) if num_coins...
28.565217
102
0.686454
111
657
3.927928
0.378378
0.114679
0.041284
0.03211
0.091743
0.091743
0.091743
0
0
0
0
0.021898
0.165906
657
22
103
29.863636
0.773723
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.117647
0
0
0
null
0
0
0
0
0
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
12d7f9364a95a7c619dc2d2a9d75fd678f9bcddc
6,681
py
Python
mushroom_rl_benchmark/core/logger.py
jacarvalho/mushroom-rl-benchmark
5bc2e9b1a12be33827d6edcd5c5ad49571e11275
[ "MIT" ]
null
null
null
mushroom_rl_benchmark/core/logger.py
jacarvalho/mushroom-rl-benchmark
5bc2e9b1a12be33827d6edcd5c5ad49571e11275
[ "MIT" ]
null
null
null
mushroom_rl_benchmark/core/logger.py
jacarvalho/mushroom-rl-benchmark
5bc2e9b1a12be33827d6edcd5c5ad49571e11275
[ "MIT" ]
null
null
null
import os import json import pickle from datetime import datetime import torch import numpy as np from pathlib import Path from mushroom_rl.core import Serializable from mushroom_rl.core.logger import ConsoleLogger class BenchmarkLogger(ConsoleLogger): """ Class to handle all interactions with the log direc...
31.814286
105
0.639874
945
6,681
4.226455
0.143915
0.062093
0.060591
0.078868
0.403856
0.366299
0.325989
0.295694
0.224086
0.174512
0
0.0002
0.250112
6,681
209
106
31.966507
0.797006
0.07424
0
0.110345
0
0
0.043414
0.003782
0
0
0
0
0
1
0.262069
false
0
0.062069
0.096552
0.475862
0
0
0
0
null
0
0
0
0
0
0
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
12dbd889d38ec2443323cfce1b3bd9552795f85f
999
py
Python
tests/test_deps.py
berendkleinhaneveld/observ
6a8240371d91ebc1d9b5515ea7d71dfeabf9c4ee
[ "MIT" ]
null
null
null
tests/test_deps.py
berendkleinhaneveld/observ
6a8240371d91ebc1d9b5515ea7d71dfeabf9c4ee
[ "MIT" ]
null
null
null
tests/test_deps.py
berendkleinhaneveld/observ
6a8240371d91ebc1d9b5515ea7d71dfeabf9c4ee
[ "MIT" ]
null
null
null
from observ import computed, observe def test_deps_copy(): # this test proves that even tho we have redundant deps # we don't redundantly recompute state = observe({"foo": 5, "bar": 6}) call_count = 0 @computed def prop(): nonlocal call_count call_count += 1 return sta...
23.232558
59
0.608609
138
999
4.152174
0.369565
0.094241
0.097731
0.146597
0.293194
0.293194
0.223386
0.223386
0.223386
0.223386
0
0.027064
0.26026
999
42
60
23.785714
0.748309
0.128128
0
0.214286
0
0
0.038062
0
0
0
0
0
0.428571
1
0.107143
false
0
0.035714
0
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
12e10b5291412b15dee07c1a40e8627947152425
2,920
py
Python
movienightbot/actions/end_vote.py
squirrelo/MovieNightBot
53fad77d533f13587d47d64fe7583db55529184a
[ "WTFPL" ]
3
2020-02-22T14:22:21.000Z
2021-02-04T19:44:38.000Z
movienightbot/actions/end_vote.py
squirrelo/MovieNightBot
53fad77d533f13587d47d64fe7583db55529184a
[ "WTFPL" ]
42
2020-02-10T03:42:29.000Z
2022-02-12T23:43:43.000Z
movienightbot/actions/end_vote.py
squirrelo/MovieNightBot
53fad77d533f13587d47d64fe7583db55529184a
[ "WTFPL" ]
3
2020-02-14T23:22:24.000Z
2020-06-06T21:00:14.000Z
import discord import peewee as pw from . import BaseAction from ..db.controllers import VoteController, ServerController from ..util import build_vote_embed, add_vote_emojis class EndVoteAction(BaseAction): action_name = "end_vote" controller = VoteController() def break_tie(self): raise NotImp...
42.318841
104
0.608562
362
2,920
4.712707
0.359116
0.049238
0.03517
0.044549
0.100821
0.025791
0
0
0
0
0
0.001006
0.319178
2,920
68
105
42.941176
0.857143
0.083904
0
0.101695
0
0
0.173343
0
0
0
0
0.014706
0
1
0.033898
false
0
0.084746
0.016949
0.20339
0
0
0
0
null
0
0
0
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
12e7629923ec0b490a4568e6a343f0c39e945cad
7,348
py
Python
tests/test_list_proof.py
aleksuss/exonum-python-client
5e7ff330440cd2fe2c5b707a0cff46048b311ea2
[ "Apache-2.0" ]
5
2019-10-04T13:16:06.000Z
2022-01-06T08:53:28.000Z
tests/test_list_proof.py
aleksuss/exonum-python-client
5e7ff330440cd2fe2c5b707a0cff46048b311ea2
[ "Apache-2.0" ]
30
2019-11-28T07:06:36.000Z
2022-02-11T02:59:05.000Z
tests/test_list_proof.py
aleksuss/exonum-python-client
5e7ff330440cd2fe2c5b707a0cff46048b311ea2
[ "Apache-2.0" ]
11
2019-10-03T10:58:42.000Z
2022-01-06T07:29:12.000Z
# pylint: disable=missing-docstring, protected-access # type: ignore # TODO remove it later # pylint: disable=invalid-name import unittest from exonum_client.crypto import Hash from exonum_client.proofs.list_proof import ListProof from exonum_client.proofs.list_proof.key import ProofListKey from exonum_client.proofs...
38.072539
117
0.649973
602
7,348
7.682724
0.177741
0.027676
0.021405
0.020757
0.539243
0.510703
0.466811
0.457946
0.386378
0.379892
0
0.207486
0.24374
7,348
192
118
38.270833
0.624798
0.035112
0
0.289855
0
0
0.298038
0.243964
0
0
0
0.005208
0.115942
1
0.072464
false
0
0.043478
0.014493
0.144928
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
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
12eae4498b14033b0942fc4bdf8226832c0dbc87
1,043
py
Python
hackerearth/Algorithms/Tree tearing/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerearth/Algorithms/Tree tearing/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerearth/Algorithms/Tree tearing/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here import sys from collections import defaultd...
21.285714
94
0.535954
148
1,043
3.777027
0.493243
0.042934
0.046512
0
0
0
0
0
0
0
0
0.025937
0.334612
1,043
48
95
21.729167
0.779539
0.255034
0
0
0
0
0
0
0
0
0
0.020833
0
1
0.03125
false
0
0.0625
0
0.125
0.09375
0
0
0
null
0
0
0
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
12eb7089e0b6896cbb49b85b45c6092467cdc21c
396
py
Python
Back/Apps/migrations/0003_user_remark.py
Tisfy/Calendar
ef6062845a80552cfe1f5632999a4321728030ab
[ "Apache-2.0" ]
4
2022-01-31T14:17:32.000Z
2022-03-09T09:49:19.000Z
Back/Apps/migrations/0003_user_remark.py
Tisfy/Calendar
ef6062845a80552cfe1f5632999a4321728030ab
[ "Apache-2.0" ]
null
null
null
Back/Apps/migrations/0003_user_remark.py
Tisfy/Calendar
ef6062845a80552cfe1f5632999a4321728030ab
[ "Apache-2.0" ]
1
2022-03-09T09:49:23.000Z
2022-03-09T09:49:23.000Z
# Generated by Django 3.2 on 2022-02-04 03:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Apps', '0002_diaries'), ] operations = [ migrations.AddField( model_name='user', name='remark', field=mode...
20.842105
80
0.590909
44
396
5.227273
0.840909
0
0
0
0
0
0
0
0
0
0
0.070671
0.285354
396
18
81
22
0.742049
0.108586
0
0
1
0
0.079772
0
0
0
0
0
0
1
0
false
0
0.083333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4209ae31f0912ba16969bee350dfffa4cd34d150
6,297
py
Python
models/model_factory.py
The-RunningSnail/FactorGCN-PyTorch
8e926689273cb1b2002c062f1787f4167eae61bd
[ "MIT" ]
39
2020-10-05T13:31:01.000Z
2022-03-13T09:25:21.000Z
models/model_factory.py
The-RunningSnail/FactorGCN-PyTorch
8e926689273cb1b2002c062f1787f4167eae61bd
[ "MIT" ]
1
2021-07-23T15:04:09.000Z
2021-07-23T15:04:09.000Z
models/model_factory.py
The-RunningSnail/FactorGCN-PyTorch
8e926689273cb1b2002c062f1787f4167eae61bd
[ "MIT" ]
6
2020-11-23T03:32:47.000Z
2021-12-26T06:28:51.000Z
import torch.nn.functional as F import torch from .factorgnn import FactorGNN, FactorGNNPool from .factorgnn_zinc import FactorGNNZinc from .factorgnn_pattern import FactorGNNSBMs from .mlp import MLP, MLPPool from .mlp_zinc import MLPZinc from .gat import GAT, GATPool from .gat_zinc import GATZinc from .gat_pattern im...
39.603774
88
0.59171
789
6,297
4.486692
0.117871
0.092938
0.069774
0.062429
0.742655
0.688136
0.662429
0.662429
0.625989
0.614972
0
0.005557
0.314118
6,297
159
89
39.603774
0.814077
0.00397
0
0.470588
0
0
0.050399
0
0
0
0
0
0
1
0.036765
false
0
0.102941
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
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
420d9c45b68a7567eabf7ac735ff29afcea1fb5f
4,650
py
Python
ui/parameter_panel/adjusters.py
stephanocarlson/Gerrymandering
c7b9986e95b2efbdd7947d324503d0c19e789d6d
[ "MIT" ]
67
2020-12-28T01:39:25.000Z
2022-02-04T08:11:23.000Z
ui/parameter_panel/adjusters.py
stephanocarlson/Gerrymandering
c7b9986e95b2efbdd7947d324503d0c19e789d6d
[ "MIT" ]
2
2021-01-25T20:06:53.000Z
2021-01-26T20:58:04.000Z
ui/parameter_panel/adjusters.py
stephanocarlson/Gerrymandering
c7b9986e95b2efbdd7947d324503d0c19e789d6d
[ "MIT" ]
5
2021-01-25T18:15:07.000Z
2021-05-18T23:56:42.000Z
"""Contains AdjusterType subclasses that are directly used by ParameterPanel""" from .adjuster_types import CheckboxAdjusterType, EntryAdjusterType, PickerAdjusterType from .misc import InvalidParameter from math import sqrt from simulation import BLUE, RED class HelpPartyAdjuster(PickerAdjusterType): def __init_...
36.614173
115
0.717849
525
4,650
5.950476
0.257143
0.138924
0.109475
0.076825
0.391485
0.340909
0.335147
0.295455
0.295455
0.28009
0
0.007117
0.184086
4,650
126
116
36.904762
0.816289
0.045161
0
0.204545
0
0
0.045208
0
0
0
0
0
0
1
0.215909
false
0
0.045455
0.011364
0.431818
0
0
0
0
null
0
0
0
0
0
0
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
421091af57eaed5dca57251dc6c9a01a194398d7
951
py
Python
src/Sorting/counting-sort.py
wastegas/Data-Structures-Alogrithms
7c5b7e44735b649d091c6e72afbbdd1951fb32ef
[ "MIT" ]
1
2015-09-27T23:15:05.000Z
2015-09-27T23:15:05.000Z
src/Sorting/counting-sort.py
wastegas/Data-Structures-Alogrithms
7c5b7e44735b649d091c6e72afbbdd1951fb32ef
[ "MIT" ]
null
null
null
src/Sorting/counting-sort.py
wastegas/Data-Structures-Alogrithms
7c5b7e44735b649d091c6e72afbbdd1951fb32ef
[ "MIT" ]
null
null
null
def count_keys_equal(A, n, m): equal = [0] * (m + 1) for i in range(0, n): # 0 1 2 3 4 5 6 key = A[i] # 1 3 0 1 1 3 1 equal[key] += 1 return equal def count_keys_less(equal, m): less = [0] * (m + 1) less[0] = 0 for j in range(1, m+1): # 0 1 2 3 4...
25.026316
65
0.453207
189
951
2.227513
0.174603
0.033254
0.035629
0.038005
0.434679
0.19715
0.099762
0
0
0
0
0.115517
0.390116
951
37
66
25.702703
0.610345
0.074658
0
0.121212
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
1
42190060a581e34e8471b08c803189b5257e7ca0
1,388
py
Python
tests/test_issue39_unquoted.py
kosta-pag/segno
5e65842800a77ba86d5c7c565f75e1f8b8755104
[ "BSD-3-Clause" ]
null
null
null
tests/test_issue39_unquoted.py
kosta-pag/segno
5e65842800a77ba86d5c7c565f75e1f8b8755104
[ "BSD-3-Clause" ]
null
null
null
tests/test_issue39_unquoted.py
kosta-pag/segno
5e65842800a77ba86d5c7c565f75e1f8b8755104
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2016 - 2022 -- Lars Heuer # All rights reserved. # # License: BSD License # """\ Tests against issue 39 <https://github.com/heuer/segno/issues/39> """ from __future__ import absolute_import, unicode_literals import os import io import tempfile import pytest import segno from se...
26.188679
80
0.565562
181
1,388
4.21547
0.40884
0.039318
0.057667
0.073395
0.621232
0.621232
0.621232
0.621232
0.621232
0.621232
0
0.022945
0.246398
1,388
52
81
26.692308
0.706501
0.122478
0
0.628571
0
0
0.122195
0
0
0
0
0
0.057143
1
0.057143
false
0
0.2
0
0.257143
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
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
42192d6921e2eb4697d425c1b89d51f951a43001
582
py
Python
scripts/pughpore/DNAcharge.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
8
2016-09-07T01:59:31.000Z
2021-03-06T12:14:31.000Z
scripts/pughpore/DNAcharge.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
null
null
null
scripts/pughpore/DNAcharge.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
4
2017-12-06T17:43:01.000Z
2020-05-01T05:41:14.000Z
# (c) 2017 Gregor Mitscha-Baude from math import pi, sqrt charge = -2 # charge per base pair distbp = 0.34 # distance between two base pairs for dsDNA diam = 2. # DNA diameter Abox = diam * 4 * distbp # surface area of DNA box Acyl = diam * pi * distbp # surface area of DNA cylinder Acylinner = 3 * diam*2./sqrt(pi) *...
30.631579
58
0.67354
94
582
4.170213
0.489362
0.061224
0.107143
0.045918
0.158163
0
0
0
0
0
0
0.040773
0.199313
582
18
59
32.333333
0.800429
0.271478
0
0
0
0
0.23741
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
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
1
0
0
0
0
0
0
0
0
1
421c8542ec3d3962344c363e564d8fd0635bc5a5
511
py
Python
web/main/pagination.py
Mikhail-Gorelov/ifotechs_task
075227a7ebf38ab3155cdc2f8454c663849dd335
[ "MIT" ]
null
null
null
web/main/pagination.py
Mikhail-Gorelov/ifotechs_task
075227a7ebf38ab3155cdc2f8454c663849dd335
[ "MIT" ]
null
null
null
web/main/pagination.py
Mikhail-Gorelov/ifotechs_task
075227a7ebf38ab3155cdc2f8454c663849dd335
[ "MIT" ]
null
null
null
from rest_framework.pagination import PageNumberPagination, CursorPagination class BasePageNumberPagination(PageNumberPagination): page_size = 9 page_query_param = 'page' max_page_size = 100 page_size_query_param = 'page_size' def get_paginated_response(self, data): response = super().get...
26.894737
76
0.745597
56
511
6.5
0.553571
0.10989
0.076923
0
0
0
0
0
0
0
0
0.014354
0.181996
511
18
77
28.388889
0.856459
0
0
0
0
0
0.029354
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.846154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
422333f82e1b344fa83b7608a736132dd0109309
12,333
py
Python
rpython/jit/metainterp/test/test_call.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
381
2018-08-18T03:37:22.000Z
2022-02-06T23:57:36.000Z
rpython/jit/metainterp/test/test_call.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
16
2018-09-22T18:12:47.000Z
2022-02-22T20:03:59.000Z
rpython/jit/metainterp/test/test_call.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
55
2015-08-16T02:41:30.000Z
2022-03-20T20:33:35.000Z
from rpython.jit.metainterp.test.support import LLJitMixin, noConst from rpython.rlib import jit class CallTest(object): def test_indirect_call(self): @jit.dont_look_inside def f1(x): return x + 1 @jit.dont_look_inside def f2(x): return x + 2 @jit....
36.705357
80
0.516338
1,626
12,333
3.736162
0.132841
0.035556
0.03358
0.010535
0.698107
0.649383
0.589794
0.523292
0.480165
0.465021
0
0.032675
0.379632
12,333
335
81
36.814925
0.761338
0.133058
0
0.597786
0
0
0.009294
0
0
0
0
0
0.121771
1
0.210332
false
0.00738
0.00738
0.062731
0.372694
0
0
0
0
null
0
0
0
0
0
0
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
4228c3821b200b833785b35f5f25ccc40586387f
2,651
py
Python
test/healpy_test.py
lqhuang/SOD-xfel
8d4fd0cd18bb9417eea682987eeea19542920620
[ "Python-2.0", "OLDAP-2.7", "OLDAP-2.8" ]
1
2017-01-18T14:55:40.000Z
2017-01-18T14:55:40.000Z
test/healpy_test.py
lqhuang/SOD-cryoem
5246f1f37c961234c68a1155ac91485935c293a4
[ "Python-2.0", "OLDAP-2.7", "OLDAP-2.8" ]
null
null
null
test/healpy_test.py
lqhuang/SOD-cryoem
5246f1f37c961234c68a1155ac91485935c293a4
[ "Python-2.0", "OLDAP-2.7", "OLDAP-2.8" ]
null
null
null
from __future__ import print_function, division import numpy as np import healpy as hp from matplotlib import pyplot as plt import geometry # given nside | number of pixels | resolution (pixel size in degree) | Maximum angular distance (degree) | pixel area (in square degrees) # 1 | 12 | ...
56.404255
148
0.413429
266
2,651
4.052632
0.556391
0.018553
0.029685
0.033395
0.191095
0.191095
0.191095
0.191095
0.191095
0.191095
0
0.23168
0.490381
2,651
46
149
57.630435
0.566247
0.599019
0
0
0
0.08
0.191977
0
0
0
0
0
0
1
0.04
false
0
0.2
0
0.24
0.12
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
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
4234fa02b90c7bed7c3a254ac0affcf39e9aab38
860
py
Python
decorator/funUser.py
liff-engineer/pybind11-examples
735623ee641069266f2de4c4e5ce0b6df4b5751e
[ "MIT" ]
3
2020-12-30T07:49:43.000Z
2022-01-23T14:39:32.000Z
decorator/funUser.py
liff-engineer/pybind11-examples
735623ee641069266f2de4c4e5ce0b6df4b5751e
[ "MIT" ]
null
null
null
decorator/funUser.py
liff-engineer/pybind11-examples
735623ee641069266f2de4c4e5ce0b6df4b5751e
[ "MIT" ]
null
null
null
from mydecorator import fun,example @fun.register(int) def _(arg, verbose=False): if verbose: print("Strength in numbers, eh?", end=" ") print(arg) @fun.register(list) def _(arg, verbose=False): if verbose: print("Enumerate this:") for i, e in enumerate(arg): print(i, e) d...
17.916667
51
0.647674
123
860
4.512195
0.430894
0.099099
0.108108
0.091892
0.167568
0.167568
0.115315
0
0
0
0
0.012658
0.173256
860
47
52
18.297872
0.766526
0.036047
0
0.16129
0
0
0.129697
0
0
0
0
0
0
0
null
null
0
0.032258
null
null
0.258065
0
0
0
null
0
0
0
0
0
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
423778d61ee2b2b0e6289f88b3a4e600a78248d6
1,002
py
Python
impactutils/transfer/factory.py
cbworden/earthquake-impact-utils
fff41e41668896110bebbc7054a36dd60779655b
[ "CC0-1.0" ]
3
2017-04-11T21:30:20.000Z
2018-02-28T23:17:30.000Z
impactutils/transfer/factory.py
cbworden/earthquake-impact-utils
fff41e41668896110bebbc7054a36dd60779655b
[ "CC0-1.0" ]
103
2016-08-26T15:05:35.000Z
2021-02-10T16:24:55.000Z
impactutils/transfer/factory.py
cbworden/earthquake-impact-utils
fff41e41668896110bebbc7054a36dd60779655b
[ "CC0-1.0" ]
9
2016-08-24T01:07:40.000Z
2022-03-01T10:03:27.000Z
from .copysender import CopySender from .ftpsender import FTPSender from .pdlsender import PDLSender from .emailsender import EmailSender from .securesender import SecureSender def get_sender_class(transfer_type): """Class factory for generating Sender class. Args: transfer_type: String indicating wh...
28.628571
77
0.636727
108
1,002
5.833333
0.444444
0.133333
0.053968
0.08254
0.219048
0.219048
0.219048
0.219048
0.219048
0.219048
0
0
0.303393
1,002
34
78
29.470588
0.902579
0.402196
0
0
0
0
0.118519
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4238bf9a6a33b021d9c5eacfa866967d0e9bd292
1,623
py
Python
backend/common/migrations/0004_add_contributors_through.py
bwhicks/PlinyProject
378220925f27301700669f4e7b4c181806ac5ca9
[ "MIT" ]
null
null
null
backend/common/migrations/0004_add_contributors_through.py
bwhicks/PlinyProject
378220925f27301700669f4e7b4c181806ac5ca9
[ "MIT" ]
17
2018-01-17T21:27:23.000Z
2021-12-09T01:48:45.000Z
backend/common/migrations/0004_add_contributors_through.py
bwhicks/PlinyProject
378220925f27301700669f4e7b4c181806ac5ca9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-04-13 18:21 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('common', '0003_delete_contributors'), ] operations...
33.8125
131
0.595194
147
1,623
6.442177
0.462585
0.047518
0.044351
0.069694
0.331573
0.331573
0.139388
0.139388
0.139388
0.139388
0
0.02124
0.2748
1,623
47
132
34.531915
0.783347
0.041898
0
0.375
1
0
0.171392
0.029639
0
0
0
0
0
1
0
false
0
0.075
0
0.15
0
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
423a82dd366258a358be0b44a2749a5d7784d40b
401
py
Python
examples/xrf_gui/file_gui.py
danielballan/xray-vision
969c7bd9e05dd10346d79df608e04f2d0e00dfd5
[ "BSD-3-Clause" ]
null
null
null
examples/xrf_gui/file_gui.py
danielballan/xray-vision
969c7bd9e05dd10346d79df608e04f2d0e00dfd5
[ "BSD-3-Clause" ]
null
null
null
examples/xrf_gui/file_gui.py
danielballan/xray-vision
969c7bd9e05dd10346d79df608e04f2d0e00dfd5
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'edill' import enaml from enaml.qt.qt_application import QtApplication from bubblegum.xrf.model.xrf_model import XRF def run(): app = QtApplication() with enaml.imports(): from bubblegum.xrf.view.file_view import FileGui view = FileGui() view.xrf_model1 = XRF() view.xrf_model...
19.095238
56
0.67581
52
401
4.884615
0.5
0.082677
0.125984
0
0
0
0
0
0
0
0
0.006329
0.21197
401
21
57
19.095238
0.797468
0
0
0
0
0
0.032338
0
0
0
0
0
0
1
0.066667
false
0
0.333333
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
1
0
0
0
0
1
423b03ecfb07f02ea227e730110592763689a682
809
py
Python
tests/test_tensor_train.py
elizabethnewman/tensor-fmri
517797c998d7517cffa954ae6674bff1b97bb100
[ "MIT" ]
1
2022-01-13T04:09:00.000Z
2022-01-13T04:09:00.000Z
tests/test_tensor_train.py
elizabethnewman/tensor-fmri
517797c998d7517cffa954ae6674bff1b97bb100
[ "MIT" ]
null
null
null
tests/test_tensor_train.py
elizabethnewman/tensor-fmri
517797c998d7517cffa954ae6674bff1b97bb100
[ "MIT" ]
1
2022-02-23T21:34:08.000Z
2022-02-23T21:34:08.000Z
import numpy as np from numpy.random import randn from numpy.linalg import norm from numpy.random import permutation from numpy.testing import assert_array_almost_equal, assert_array_equal import tensor.utils as tu from tensor.tensor_train import ttsvd, tt_product # np.random.seed(20) shape_A = (3, 4, 5, 6, 7) A = ra...
25.28125
71
0.721879
137
809
4.124088
0.408759
0.099115
0.058407
0.084956
0
0
0
0
0
0
0
0.017366
0.145859
809
31
72
26.096774
0.800289
0.102596
0
0
0
0
0.11065
0
0
0
0
0
0.047619
1
0
false
0
0.333333
0
0.333333
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
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
423f8a942842eb8fe06ac0694e7ba9cfd6685de1
3,309
py
Python
tools/src/deleteGroup.py
kevinsigwart/ArcREST
2d83bd87e23f3f78d6bba2131e6d47cf8e2e07c1
[ "Apache-2.0" ]
208
2015-01-08T18:14:02.000Z
2022-03-31T02:45:42.000Z
tools/src/deleteGroup.py
kevinsigwart/ArcREST
2d83bd87e23f3f78d6bba2131e6d47cf8e2e07c1
[ "Apache-2.0" ]
279
2015-01-16T16:30:35.000Z
2020-03-31T11:57:47.000Z
tools/src/deleteGroup.py
kevinsigwart/ArcREST
2d83bd87e23f3f78d6bba2131e6d47cf8e2e07c1
[ "Apache-2.0" ]
164
2015-01-21T13:49:05.000Z
2021-12-01T18:13:05.000Z
""" @author: ArcREST Team @contact: www.github.com/Esri/ArcREST @company: Esri @version: 1.0.0 @description: deletes a group on the AGOL site. @requirements: Python 2.7.x, ArcGIS 10.2.2, ArcREST 2.0 @copyright: Esri, 2015 """ import os from arcpy import env from arcpy import mapping from arc...
37.602273
81
0.563312
353
3,309
5.232295
0.399433
0.0915
0.068219
0.043313
0.229561
0.229561
0.216026
0.157553
0.139686
0.139686
0
0.012321
0.239649
3,309
88
82
37.602273
0.721781
0.109701
0
0.163934
0
0
0.155912
0
0
0
0
0
0
0
null
null
0.04918
0.147541
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
423fbe8a6e74ab7eb58106d2c303ef4f7d776ba1
3,136
py
Python
app/models/feeds.py
greggparrish/ucitelj
10c5510aa28561953b98d959d45025655b6a21be
[ "MIT" ]
null
null
null
app/models/feeds.py
greggparrish/ucitelj
10c5510aa28561953b98d959d45025655b6a21be
[ "MIT" ]
null
null
null
app/models/feeds.py
greggparrish/ucitelj
10c5510aa28561953b98d959d45025655b6a21be
[ "MIT" ]
null
null
null
import requests import feedparser import calendar from time import mktime from datetime import datetime from sqlalchemy.exc import IntegrityError from slugify import slugify from app import db from app.models.articles import Article TYPE_CHOICES = ('culture', 'news', 'politics', 'regional', 'religious') COUNTRY_CHOIC...
38.716049
194
0.581314
359
3,136
4.97493
0.406685
0.044793
0.055991
0.044793
0.12598
0.12598
0.110862
0.075028
0.047032
0
0
0.021739
0.310587
3,136
80
195
39.2
0.804348
0.070472
0
0.064516
0
0.016129
0.089626
0
0
0
0
0
0
1
0.064516
false
0
0.145161
0.048387
0.532258
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
424155ae4a1aa92e355362be2efa6d008f503f9c
1,460
py
Python
predict.py
AyusmaTech/Image-Classifier
5753ad6845a6b25c2cb584a881c1763273b35b7f
[ "MIT" ]
null
null
null
predict.py
AyusmaTech/Image-Classifier
5753ad6845a6b25c2cb584a881c1763273b35b7f
[ "MIT" ]
null
null
null
predict.py
AyusmaTech/Image-Classifier
5753ad6845a6b25c2cb584a881c1763273b35b7f
[ "MIT" ]
null
null
null
# Imports here import matplotlib.pyplot as plt import torch from torch import nn from torch import optim import torch.nn.functional as F from torchvision import datasets, transforms, models import numpy as np from PIL import Image from collections import OrderedDict import argparse import json import utils ap = argpa...
27.037037
106
0.749315
217
1,460
4.870968
0.387097
0.028382
0.073794
0.024598
0
0
0
0
0
0
0
0.009231
0.109589
1,460
54
107
27.037037
0.803846
0.008219
0
0
0
0
0.1783
0.022115
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
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
42468a1988772ddedff8f036293d13c8c8c0f173
6,627
py
Python
venv/lib/python3.6/site-packages/ansible_collections/t_systems_mms/icinga_director/plugins/modules/icinga_notification_template.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/t_systems_mms/icinga_director/plugins/modules/icinga_notification_template.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/t_systems_mms/icinga_director/plugins/modules/icinga_notification_template.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2020 T-Systems Multimedia Solutions GmbH # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # # This module is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License...
29.193833
136
0.664403
807
6,627
5.327138
0.322181
0.03024
0.029774
0.035357
0.257502
0.194464
0.167016
0.133519
0.133519
0.133519
0
0.010182
0.229365
6,627
226
137
29.323009
0.831604
0.145767
0
0.324176
0
0.005495
0.646913
0.07115
0
0
0
0
0
1
0.005495
false
0.010989
0.027473
0
0.032967
0.005495
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
424694682332a5b0071f8401eaff85316d6fb67f
1,095
py
Python
tests/primegov_test.py
datamade/civic-scraper
1b0f06a148e158776dae89d80374edd1f92814ce
[ "Apache-2.0" ]
null
null
null
tests/primegov_test.py
datamade/civic-scraper
1b0f06a148e158776dae89d80374edd1f92814ce
[ "Apache-2.0" ]
14
2021-10-14T13:55:35.000Z
2022-03-22T17:43:24.000Z
tests/primegov_test.py
datamade/civic-scraper
1b0f06a148e158776dae89d80374edd1f92814ce
[ "Apache-2.0" ]
null
null
null
import pytest import logging from civic_scraper.platforms import PrimeGovSite logging.basicConfig(level="DEBUG") primegov_sites = [ {'site': 'https://lacity.primegov.com/', 'config': { 'place': 'los angeles', 'state_or_province': 'ca', }, }, {'site': 'https://santafe.primegov.co...
21.470588
60
0.538813
106
1,095
5.349057
0.481132
0.079365
0.149912
0.194004
0.091711
0.091711
0
0
0
0
0
0.001255
0.272146
1,095
50
61
21.9
0.710163
0
0
0.162791
0
0
0.353748
0
0
0
0
0
0.023256
1
0.023256
false
0
0.069767
0
0.093023
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
42488c64bb24fda4019c4285d262648e3d32e11c
3,139
py
Python
panda/examples/can_unique.py
openmechanics/opv0431arch
994d9b3f74b41fbe7060be8ee2ecc87870d4a1e3
[ "MIT" ]
3
2019-04-25T08:39:21.000Z
2021-02-26T12:56:28.000Z
panda/examples/can_unique.py
openmechanics/opv0431arch
994d9b3f74b41fbe7060be8ee2ecc87870d4a1e3
[ "MIT" ]
1
2021-03-26T00:38:47.000Z
2021-03-26T00:38:47.000Z
panda/examples/can_unique.py
openmechanics/opv0431arch
994d9b3f74b41fbe7060be8ee2ecc87870d4a1e3
[ "MIT" ]
2
2018-03-19T15:14:15.000Z
2018-03-20T01:27:16.000Z
#!/usr/bin/env python # Given an interesting CSV file of CAN messages and a list of background CAN # messages, print which bits in the interesting file have never appeared # in the background files. # Expects the CSV file to be in the format from can_logger.py # Bus,MessageID,Message,MessageLength # 0,0x292,0x0400000...
34.119565
80
0.647658
458
3,139
4.334061
0.305677
0.086146
0.042821
0.031738
0.111839
0.032242
0.032242
0.032242
0.032242
0.032242
0
0.026756
0.237974
3,139
91
81
34.494505
0.803094
0.213444
0
0.080645
0
0
0.065471
0
0
0
0.005381
0
0
0
null
null
0
0.064516
null
null
0.096774
0
0
0
null
0
0
0
0
0
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
424aa10f5495e8fc81f568db95ada98e5ea0a713
488
py
Python
microblog/accounts/migrations/0007_auto_20200927_0603.py
ShrayankM/Django-MicroBlog
54b9b8663b124baec31dfc5a9e8733822853ea7c
[ "MIT" ]
null
null
null
microblog/accounts/migrations/0007_auto_20200927_0603.py
ShrayankM/Django-MicroBlog
54b9b8663b124baec31dfc5a9e8733822853ea7c
[ "MIT" ]
null
null
null
microblog/accounts/migrations/0007_auto_20200927_0603.py
ShrayankM/Django-MicroBlog
54b9b8663b124baec31dfc5a9e8733822853ea7c
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-27 06:03 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('accounts', '0006_userprofile_instagram_link'), ] operations = [ migrations.RenameField( model_name='userprofile', old_name='...
21.217391
56
0.57582
46
488
5.956522
0.695652
0.065693
0.145985
0
0
0
0
0
0
0
0
0.056886
0.315574
488
22
57
22.181818
0.763473
0.092213
0
0.25
1
0
0.185941
0.070295
0
0
0
0
0
1
0
false
0
0.0625
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
424b7a117414b2528d42ec010528d15a6ffcb578
614
py
Python
tweets/urls.py
Davinchy1/Twitter-Lite
e2d8f845d14fc29921052e16229fcd5a8528cc56
[ "MIT" ]
null
null
null
tweets/urls.py
Davinchy1/Twitter-Lite
e2d8f845d14fc29921052e16229fcd5a8528cc56
[ "MIT" ]
null
null
null
tweets/urls.py
Davinchy1/Twitter-Lite
e2d8f845d14fc29921052e16229fcd5a8528cc56
[ "MIT" ]
null
null
null
from tweets.models import Comment from django.db import router # from posts.views import my_view from rest_framework import routers from django.urls.conf import include from django.urls import path from tweets.views import TweetViewSet, LikeViewSet, RetweetviewSet, CommentviewSet, index router = routers.DefaultRouter...
27.909091
89
0.789902
77
614
6.272727
0.415584
0.144928
0.15528
0
0
0
0
0
0
0
0
0
0.104235
614
21
90
29.238095
0.878182
0.117264
0
0
0
0
0.057514
0
0
0
0
0
0
1
0
false
0
0.4
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
1
0
0
0
0
1
424eecca9479945e4783106188bfe18eb9238b56
4,813
py
Python
scripts/vehicle_simulator.py
Rio-Lee/genesis_path_follower_frenet
d4cc9a7bf90dfdbaba3a3f9697abaab60fce59d8
[ "MIT" ]
2
2021-07-19T07:13:13.000Z
2021-12-12T11:32:39.000Z
scripts/vehicle_simulator.py
Rio-Lee/genesis_path_follower_frenet
d4cc9a7bf90dfdbaba3a3f9697abaab60fce59d8
[ "MIT" ]
null
null
null
scripts/vehicle_simulator.py
Rio-Lee/genesis_path_follower_frenet
d4cc9a7bf90dfdbaba3a3f9697abaab60fce59d8
[ "MIT" ]
1
2021-12-12T11:32:40.000Z
2021-12-12T11:32:40.000Z
#!/usr/bin/env python import rospy import numpy as np import math from std_msgs.msg import Float32 as float_msg from genesis_path_follower.msg import state_est class VehicleSimulator(): ''' A vehicle dynamics simulator using a linear tire model. This uses the Genesis control/estimation ROS topics. Modified from Ug...
35.651852
125
0.662788
817
4,813
3.736842
0.28519
0.029479
0.014412
0.011792
0.116279
0.048477
0
0
0
0
0
0.032915
0.204654
4,813
134
126
35.91791
0.764629
0.242884
0
0
0
0
0.02869
0
0
0
0
0
0
0
null
null
0.010638
0.053191
null
null
0.010638
0
0
0
null
0
0
0
0
0
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
4254cd3664e92351e053b79e0af54d6387529e94
932
py
Python
cloud0/frontend/urls.py
fabianheredia/django_fist_App
5016a4309ee285d0033c39ad431191e0d9548c3d
[ "Apache-2.0" ]
null
null
null
cloud0/frontend/urls.py
fabianheredia/django_fist_App
5016a4309ee285d0033c39ad431191e0d9548c3d
[ "Apache-2.0" ]
null
null
null
cloud0/frontend/urls.py
fabianheredia/django_fist_App
5016a4309ee285d0033c39ad431191e0d9548c3d
[ "Apache-2.0" ]
null
null
null
from . import views as frontendview from django.urls import path from django.conf.urls import url, include, static from django.contrib.auth import views as auth_views from django.contrib import admin urlpatterns = [ path('',frontendview.home,name='home'), url(r'^signup/$', frontendview.signup, name='signup'), ...
54.823529
94
0.70279
126
932
5.103175
0.325397
0.049767
0.077761
0.07465
0.096423
0.096423
0.096423
0
0
0
0
0
0.103004
932
16
95
58.25
0.769139
0
0
0
0
0
0.195279
0
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4255e96ad02f7b24e5712d6314417864417a36c3
6,998
py
Python
test/models/test_exact_gp.py
lrast/gpytorch
2e0bbc9f59e4b4b54780c3e55db784c3d2c9a5bf
[ "MIT" ]
2
2021-10-30T03:50:28.000Z
2022-02-22T22:01:14.000Z
test/models/test_exact_gp.py
lrast/gpytorch
2e0bbc9f59e4b4b54780c3e55db784c3d2c9a5bf
[ "MIT" ]
1
2021-02-24T14:01:43.000Z
2021-02-24T14:01:43.000Z
test/models/test_exact_gp.py
lrast/gpytorch
2e0bbc9f59e4b4b54780c3e55db784c3d2c9a5bf
[ "MIT" ]
3
2020-09-18T18:58:12.000Z
2021-05-27T15:39:00.000Z
#!/usr/bin/env python3 import unittest import torch import gpytorch from gpytorch.models import ExactGP from gpytorch.test.model_test_case import BaseModelTestCase class ExactGPModel(ExactGP): def __init__(self, train_x, train_y, likelihood): super().__init__(train_x, train_y, likelihood) self....
40.450867
100
0.703058
888
6,998
5.225225
0.118243
0.046552
0.077586
0.093103
0.756897
0.707974
0.610776
0.569828
0.549138
0.549138
0
0.010608
0.191769
6,998
172
101
40.686047
0.80976
0.021863
0
0.504
0
0
0.00117
0
0
0
0
0
0.16
1
0.152
false
0
0.04
0.016
0.32
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
425687e8fe0bc3b3997f4308e1a0c03866899fcc
4,967
py
Python
CodonGeneconFunc.py
xjw1001001/IGCsimulation
ec7ef6dc15b3e1c0d1ff476730f8d2fbc81e3274
[ "MIT" ]
null
null
null
CodonGeneconFunc.py
xjw1001001/IGCsimulation
ec7ef6dc15b3e1c0d1ff476730f8d2fbc81e3274
[ "MIT" ]
null
null
null
CodonGeneconFunc.py
xjw1001001/IGCsimulation
ec7ef6dc15b3e1c0d1ff476730f8d2fbc81e3274
[ "MIT" ]
null
null
null
# Xiang decided to seperate functions and the recording class so that he can easily vectorize his code # xji3@ncsu.edu # Uses Alex Griffing's JsonCTMCTree package for likelihood and gradient calculation # Re-written of my previous CondonGeneconv class from operator import mul from itertools import product from functo...
35.22695
184
0.623717
720
4,967
4.148611
0.261111
0.023435
0.040174
0.028122
0.409106
0.289253
0.182792
0.150653
0.150653
0.133244
0
0.015735
0.257902
4,967
140
185
35.478571
0.794628
0.206563
0
0.24
0
0
0.040368
0
0
0
0
0.007143
0
0
null
null
0
0.16
null
null
0.04
0
0
0
null
0
0
0
0
0
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
4256bed0bab8408e90693a0ab94e669e00a03199
10,583
py
Python
kazoo/recipe/watchers.py
SageCloud/kazoo
4318767ce1f8fc3d7f1ddf01cba7589faa1752e3
[ "Apache-2.0" ]
null
null
null
kazoo/recipe/watchers.py
SageCloud/kazoo
4318767ce1f8fc3d7f1ddf01cba7589faa1752e3
[ "Apache-2.0" ]
null
null
null
kazoo/recipe/watchers.py
SageCloud/kazoo
4318767ce1f8fc3d7f1ddf01cba7589faa1752e3
[ "Apache-2.0" ]
null
null
null
"""Higher level child and data watching API's. """ import logging import time from functools import partial from kazoo.client import KazooState from kazoo.exceptions import NoNodeError log = logging.getLogger(__name__) class DataWatch(object): """Watches a node for data updates and calls the specified funct...
33.596825
78
0.593216
1,252
10,583
4.849042
0.170128
0.034591
0.036897
0.019766
0.626256
0.593312
0.57157
0.552792
0.552792
0.518201
0
0.000717
0.340924
10,583
314
79
33.703822
0.869677
0.031938
0
0.604478
0
0
0
0
0
0
0
0
0
0
null
null
0
0.037313
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4259a454f114cd0c7897c16ecdbdc30f0fd93148
5,432
py
Python
env/Lib/site-packages/pandas_datareader/tests/test_famafrench.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
null
null
null
env/Lib/site-packages/pandas_datareader/tests/test_famafrench.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
null
null
null
env/Lib/site-packages/pandas_datareader/tests/test_famafrench.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from pandas import testing as tm import pytest from pandas_datareader import data as web from pandas_datareader.famafrench import get_available_datasets pytestmark = pytest.mark.stable class TestFamaFrench(object): def test_get_data(self): keys = [ "F-F...
28.145078
88
0.367268
538
5,432
3.581784
0.256506
0.015568
0.018682
0.028023
0.538142
0.463934
0.463934
0.463934
0.423456
0.423456
0
0.163097
0.510125
5,432
192
89
28.291667
0.561067
0
0
0.440678
0
0
0.084315
0.030191
0
0
0
0
0.112994
1
0.033898
false
0
0.039548
0
0.079096
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
426a3f76f0790ef85afb1c2ddce6e760e3c60b8a
332
py
Python
src/saxsfittool/mainwindow/__init__.py
awacha/saxsfittool
20e9a8aecf680cfc5f3b84264b932c9a50e47085
[ "BSD-3-Clause" ]
null
null
null
src/saxsfittool/mainwindow/__init__.py
awacha/saxsfittool
20e9a8aecf680cfc5f3b84264b932c9a50e47085
[ "BSD-3-Clause" ]
1
2017-06-16T09:39:00.000Z
2017-06-16T09:39:00.000Z
src/saxsfittool/mainwindow/__init__.py
awacha/saxsfittool
20e9a8aecf680cfc5f3b84264b932c9a50e47085
[ "BSD-3-Clause" ]
null
null
null
import logging import sys from PyQt5 import QtWidgets from .mainwindow import MainWindow def run(): app = QtWidgets.QApplication(sys.argv) mw = MainWindow() try: mw.openFile(sys.argv[1]) except: pass logging.root.setLevel(logging.DEBUG) app.exec_() if __name__ == '__main__'...
15.090909
42
0.650602
40
332
5.175
0.625
0.067633
0
0
0
0
0
0
0
0
0
0.007968
0.243976
332
21
43
15.809524
0.816733
0
0
0
0
0
0.024096
0
0
0
0
0
0
1
0.066667
false
0.066667
0.266667
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
1
0
0
0
0
0
1
42725ac191a6b94ccf62f70a175073734eec5d5f
771
py
Python
cyvn/trader/app/dataRecorder/drBase.py
mumuwoyou/pytrader
6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a
[ "MIT" ]
4
2019-03-14T05:30:59.000Z
2021-11-21T20:05:22.000Z
cyvn/trader/app/dataRecorder/drBase.py
mumuwoyou/pytrader
6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a
[ "MIT" ]
null
null
null
cyvn/trader/app/dataRecorder/drBase.py
mumuwoyou/pytrader
6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a
[ "MIT" ]
4
2019-02-14T14:30:46.000Z
2021-01-05T09:46:19.000Z
# encoding: UTF-8 ''' 本文件中包含的数据格式和CTA模块通用,用户有必要可以自行添加格式。 ''' from __future__ import division # 数据库名称 SETTING_DB_NAME = 'VnTrader_Setting_Db' TICK_DB_NAME = 'VnTrader_Tick_Db' DAILY_DB_NAME = 'VnTrader_Daily_Db' MINUTE_DB_NAME = 'VnTrader_1Min_Db' MINUTE_3_DB_NAME = 'VnTrader_3Min_Db' MINUTE_5_DB_NAME = 'VnTrader_5Mi...
26.586207
131
0.814527
120
771
4.65
0.375
0.16129
0.225806
0.046595
0
0
0
0
0
0
0
0.049204
0.103761
771
28
132
27.535714
0.758321
0.119326
0
0
0
0
0.250375
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
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
42727b4ba7336d5eb73cf4fbd4b725c6873e449f
4,963
py
Python
pgoapi/protos/pogoprotos/networking/responses/social/gift_details_response_pb2.py
SkOODaT/Pgoapi
a0021998eb75f6b1a867d7348acb4fcf1298987d
[ "MIT" ]
1
2017-12-12T10:05:57.000Z
2017-12-12T10:05:57.000Z
pgoapi/protos/pogoprotos/networking/responses/social/gift_details_response_pb2.py
SkOODaT/Pgoapi
a0021998eb75f6b1a867d7348acb4fcf1298987d
[ "MIT" ]
null
null
null
pgoapi/protos/pogoprotos/networking/responses/social/gift_details_response_pb2.py
SkOODaT/Pgoapi
a0021998eb75f6b1a867d7348acb4fcf1298987d
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: pogoprotos/networking/responses/social/gift_details_response.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _mes...
39.704
717
0.780778
605
4,963
6.097521
0.271074
0.032529
0.081323
0.104364
0.391976
0.350773
0.317159
0.241529
0.132285
0.132285
0
0.037843
0.11082
4,963
124
718
40.024194
0.798097
0.060649
0
0.442308
1
0.009615
0.288875
0.255155
0
0
0
0
0
1
0
false
0
0.067308
0
0.067308
0
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
42756977107d81cf9ebc6899911bdaaf6619ba4d
1,029
py
Python
proxy_lazy.py
mhgzadeh/pattern-desgin
b361b4efcb28b71e66c8f833177887e6ba108e03
[ "MIT" ]
null
null
null
proxy_lazy.py
mhgzadeh/pattern-desgin
b361b4efcb28b71e66c8f833177887e6ba108e03
[ "MIT" ]
null
null
null
proxy_lazy.py
mhgzadeh/pattern-desgin
b361b4efcb28b71e66c8f833177887e6ba108e03
[ "MIT" ]
null
null
null
from time import sleep class LazyLoader: def __init__(self, cls): self.cls = cls self.object = None def __getattr__(self, item): if self.object == None: self.object = self.cls() return getattr(self.object, item) class MySQLHandler: def __init__(self): ...
19.055556
49
0.605442
118
1,029
5.042373
0.29661
0.047059
0.07395
0.080672
0.215126
0.215126
0
0
0
0
0
0.004011
0.273081
1,029
54
50
19.055556
0.791444
0
0
0.25
0
0
0.084466
0
0
0
0
0
0
1
0.222222
false
0
0.027778
0.083333
0.472222
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
427bebc14a63388c3b00f54e2313bbbe0d539cb2
1,721
py
Python
apps/test_part_image.py
KORguy/PIFu_Part
bd199d439a94f8bc8b4036898b0f1ec01e56ab9e
[ "MIT" ]
null
null
null
apps/test_part_image.py
KORguy/PIFu_Part
bd199d439a94f8bc8b4036898b0f1ec01e56ab9e
[ "MIT" ]
null
null
null
apps/test_part_image.py
KORguy/PIFu_Part
bd199d439a94f8bc8b4036898b0f1ec01e56ab9e
[ "MIT" ]
null
null
null
import sys import os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) ROOT_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) import time import json import numpy as np import cv2 import random from tqdm import tqdm from torch.utils.data import DataLoader from argparse import Argume...
28.683333
122
0.644393
229
1,721
4.615721
0.467249
0.034059
0.036897
0.028382
0.030274
0
0
0
0
0
0
0.006163
0.245787
1,721
60
123
28.683333
0.808166
0
0
0
0
0
0.075494
0.01626
0
0
0
0
0
1
0.042553
false
0
0.319149
0
0.382979
0.042553
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4284c5149ccb1c90d55cc016c2c7d55207f64880
4,968
py
Python
alipay/aop/api/response/AlipayCommerceIotMdeviceprodQueryResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayCommerceIotMdeviceprodQueryResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayCommerceIotMdeviceprodQueryResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.MerchantModel import MerchantModel from alipay.aop.api.domain.MerchantModel import MerchantModel class AlipayCommerceIotMdeviceprodQueryResponse(AlipayResponse): ...
28.551724
114
0.634461
596
4,968
4.998322
0.090604
0.055388
0.070493
0.016113
0.093991
0.093991
0.093991
0.036254
0
0
0
0.000279
0.279187
4,968
173
115
28.716763
0.831611
0.008454
0
0.14
0
0
0.054833
0
0
0
0
0
0
1
0.213333
false
0
0.026667
0.1
0.346667
0
0
0
0
null
0
0
0
0
0
0
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
428b1ab35cd18748e341ca1e481e71f80e6eb03c
2,095
py
Python
data/train/python/428b1ab35cd18748e341ca1e481e71f80e6eb03craspberryPiServer.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/python/428b1ab35cd18748e341ca1e481e71f80e6eb03craspberryPiServer.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/python/428b1ab35cd18748e341ca1e481e71f80e6eb03craspberryPiServer.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
# These are the classes used to Serve commands to the Raspberry Pis in the # Gray Lab conditioning cage project # Sam Rendall from twisted.spread import pb from twisted.internet.defer import maybeDeferred class RpiRoot(pb.Referencable) def remote_registerPi(self, iden, refs): """ Each pi will cal...
31.268657
101
0.688305
266
2,095
5.417293
0.496241
0.017349
0.016655
0.023595
0
0
0
0
0
0
0
0
0.253461
2,095
66
102
31.742424
0.921356
0.074463
0
0
0
0
0.016949
0
0
0
0
0
0
0
null
null
0
0.090909
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4290c1db946a48d892be7f1464c3dd33972a1aee
1,789
py
Python
sussex/auth.py
valknight/sussex-direct-cli
87d5315af31ec1bc9e9a5d92ecd259312e3282c4
[ "MIT" ]
1
2021-11-28T13:23:46.000Z
2021-11-28T13:23:46.000Z
sussex/auth.py
valknight/sussex-direct-cli
87d5315af31ec1bc9e9a5d92ecd259312e3282c4
[ "MIT" ]
5
2021-03-31T19:30:47.000Z
2021-11-28T14:07:39.000Z
sussex/auth.py
valknight/sussex-direct-cli
87d5315af31ec1bc9e9a5d92ecd259312e3282c4
[ "MIT" ]
1
2021-11-28T13:15:56.000Z
2021-11-28T13:15:56.000Z
import os import pickledb import requests from pathlib import Path try: os.makedirs(str(Path.home() / '.sussex')) except(FileExistsError): pass db = pickledb.load(str(Path.home() / '.sussex' / '.auth'), False) def save_session_id(sessid): db.set('session_id', sessid) db.dump() def read_session_id()...
21.817073
75
0.609279
227
1,789
4.643172
0.334802
0.111006
0.080645
0.090133
0.175522
0.100569
0.055028
0
0
0
0
0.002182
0.231414
1,789
81
76
22.08642
0.764364
0
0
0.163934
0
0
0.263276
0.013974
0
0
0
0
0
1
0.147541
false
0.081967
0.065574
0.016393
0.311475
0
0
0
0
null
0
0
0
0
0
0
0
0
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
429572a0b4558fdd622d9602d05a0e0eaa5e2ceb
2,500
py
Python
tests/integration/test_storage_kafka/social_pb2.py
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
2
2022-01-10T04:50:22.000Z
2022-01-10T04:51:42.000Z
tests/integration/test_storage_kafka/social_pb2.py
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
16
2022-02-14T15:53:29.000Z
2022-03-25T18:39:16.000Z
tests/integration/test_storage_kafka/social_pb2.py
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
1
2020-05-28T07:29:23.000Z
2020-05-28T07:29:23.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: social.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_da...
26.041667
143
0.6156
262
2,500
5.599237
0.381679
0.038173
0.04908
0.06544
0.207226
0.207226
0.207226
0.207226
0.155419
0.155419
0
0.028761
0.2768
2,500
95
144
26.315789
0.782633
0.086
0
0.358974
1
0.012821
0.105356
0.052239
0
0
0
0
0
1
0
false
0
0.051282
0
0.051282
0
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
4295d35cd41528d23bdb7429dfc513232cb73dba
4,690
py
Python
boris_ivanovic_CS231A.py
rsatwik/Python_Practice
3ab027be3cabac96a41e8e616296fb2497916f7b
[ "MIT" ]
null
null
null
boris_ivanovic_CS231A.py
rsatwik/Python_Practice
3ab027be3cabac96a41e8e616296fb2497916f7b
[ "MIT" ]
null
null
null
boris_ivanovic_CS231A.py
rsatwik/Python_Practice
3ab027be3cabac96a41e8e616296fb2497916f7b
[ "MIT" ]
1
2021-01-09T17:00:13.000Z
2021-01-09T17:00:13.000Z
import os os.system('cls') # reference: https://web.stanford.edu/class/cs231a/section/section1.pdf # Lists empty_list = list() also_empty_list = [] zeros_list = [0]*5 print(zeros_list) number_list = [16]*5 print(number_list) print(empty_list) empty_list.append(1) print(empty_list) print(len(empty_list)) # List indexi...
16.690391
89
0.578252
721
4,690
3.68516
0.184466
0.055326
0.036131
0.042153
0.412119
0.300715
0.215657
0.156568
0.082047
0.082047
0
0.045909
0.210448
4,690
281
90
16.690391
0.671618
0.160128
0
0.444444
0
0
0.094678
0
0
0
0
0
0
1
0.004831
false
0
0.009662
0.004831
0.019324
0.584541
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
429bf6632c4b3c96017f927a0e51ca1684f80f47
2,767
py
Python
dev-scripts/ccc.py
cloudmesh-community/cm-burn
536e2762d3c28ff539161dd3eb10c1cd2dedf9b1
[ "Apache-2.0" ]
null
null
null
dev-scripts/ccc.py
cloudmesh-community/cm-burn
536e2762d3c28ff539161dd3eb10c1cd2dedf9b1
[ "Apache-2.0" ]
1
2018-11-20T16:17:03.000Z
2018-11-20T16:17:03.000Z
dev-scripts/ccc.py
cloudmesh-community/cm-burn
536e2762d3c28ff539161dd3eb10c1cd2dedf9b1
[ "Apache-2.0" ]
3
2018-09-18T00:00:02.000Z
2018-12-05T17:16:30.000Z
import os from cloudmesh.common.util import path_expand from cloudmesh.common.util import readfile from cloudmesh.burn.raspberryos.cmdline import Cmdline from passlib.hash import sha256_crypt import sys import io from passlib.utils import pbkdf2 import binascii, sys # USE # python ccc.py red SSID WIFIPASSWD PASSWD f...
23.649573
78
0.714492
408
2,767
4.75
0.428922
0.01806
0.026316
0.023736
0.111455
0.034056
0
0
0
0
0
0.027942
0.146368
2,767
116
79
23.853448
0.792549
0.185399
0
0
0
0.013699
0.39268
0.134659
0
0
0
0
0
1
0.041096
false
0.191781
0.123288
0
0.191781
0.027397
0
0
0
null
0
0
0
0
0
0
0
0
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
42a57eea395a5d06673bd84a2c849480557dfc14
12,052
py
Python
external/heng/tgs/pspnet/loss.py
liaopeiyuan/ml-arsenal-public
f8938ce3cb58b35fc7cc20d096c39a85ec9780b2
[ "Apache-2.0" ]
280
2018-10-21T01:07:18.000Z
2021-12-30T11:29:48.000Z
external/heng/tgs/code/loss.py
liaopeiyuan/ml-arsenal-public
f8938ce3cb58b35fc7cc20d096c39a85ec9780b2
[ "Apache-2.0" ]
3
2018-11-13T08:04:48.000Z
2020-04-17T09:20:03.000Z
external/heng/tgs/pspnet/loss.py
liaopeiyuan/ml-arsenal-public
f8938ce3cb58b35fc7cc20d096c39a85ec9780b2
[ "Apache-2.0" ]
59
2018-10-21T04:38:23.000Z
2021-03-29T07:58:47.000Z
from include import * #https://github.com/marvis/pytorch-yolo2/blob/master/FocalLoss.py #https://github.com/unsky/focal-loss class FocalLoss2d(nn.Module): def __init__(self, gamma=2, size_average=True): super(FocalLoss2d, self).__init__() self.gamma = gamma self.size_average = size_average...
32.224599
106
0.555012
1,477
12,052
4.362221
0.164523
0.024057
0.013037
0.025609
0.528791
0.494801
0.43458
0.41223
0.369548
0.343784
0
0.030781
0.258712
12,052
374
107
32.224599
0.690396
0.64006
0
0.753086
0
0
0.023595
0
0
0
0
0
0
1
0.074074
false
0
0.012346
0
0.160494
0.024691
0
0
0
null
0
0
0
0
0
0
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
1