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
165e5478bb41b24d4a9ab5bce186c085b7367f24
4,937
py
Python
app/api/admin_sales/discounted.py
akashtalole/python-flask-restful-api
475d8fd7be1724183716a197aac4257f8fbbeac4
[ "MIT" ]
3
2019-09-05T05:28:49.000Z
2020-06-10T09:03:37.000Z
app/api/admin_sales/discounted.py
akashtalole/python-flask-restful-api
475d8fd7be1724183716a197aac4257f8fbbeac4
[ "MIT" ]
null
null
null
app/api/admin_sales/discounted.py
akashtalole/python-flask-restful-api
475d8fd7be1724183716a197aac4257f8fbbeac4
[ "MIT" ]
null
null
null
from sqlalchemy import func from flask_rest_jsonapi import ResourceList from marshmallow_jsonapi import fields from marshmallow_jsonapi.flask import Schema from app.api.helpers.utilities import dasherize from app.api.bootstrap import api from app.models import db from app.models.discount_code import DiscountCode from ...
41.838983
102
0.552157
500
4,937
5.252
0.198
0.037319
0.053313
0.034273
0.302742
0.286748
0.261615
0.144326
0.113861
0.069307
0
0.002172
0.347174
4,937
117
103
42.196581
0.812597
0.074134
0
0.141176
0
0
0.078484
0.010479
0
0
0
0
0
1
0.035294
false
0
0.129412
0.011765
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
165f2a4da2ed50464bfa13f0495fc689063e0199
1,189
py
Python
api/skill/serializer.py
zaubermaerchen/imas_cg_api
45ebdde8c47ff4fabbf58b75721721f142afb46b
[ "MIT" ]
2
2016-02-01T21:03:53.000Z
2018-10-20T09:15:12.000Z
api/skill/serializer.py
zaubermaerchen/imas_cg_api
45ebdde8c47ff4fabbf58b75721721f142afb46b
[ "MIT" ]
1
2020-01-05T12:50:35.000Z
2020-01-05T12:50:35.000Z
api/skill/serializer.py
zaubermaerchen/imas_cg_api
45ebdde8c47ff4fabbf58b75721721f142afb46b
[ "MIT" ]
null
null
null
# coding: utf-8 from rest_framework import serializers from data.models import Skill, SkillValue class ListSerializer(serializers.ModelSerializer): skill_value_list = serializers.SerializerMethodField(read_only=True) class Meta: model = Skill fields = [ 'skill_id', 'ta...
26.422222
72
0.64508
126
1,189
5.84127
0.428571
0.067935
0.057065
0
0
0
0
0
0
0
0
0.004566
0.263246
1,189
44
73
27.022727
0.835616
0.010934
0
0
0
0
0.094549
0
0
0
0
0
0
1
0.121212
false
0
0.060606
0.060606
0.484848
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1660d7a15a18998c6c8ae4f9e573b184061a0341
5,061
py
Python
Codes/Converting_RGB_to_GreyScale.py
sichkar-valentyn/Image_processing_in_Python
43d7c979bcd742cc202a28c2dea6ea5bc87562a2
[ "MIT" ]
3
2018-12-02T03:59:51.000Z
2019-11-20T18:37:41.000Z
Codes/Converting_RGB_to_GreyScale.py
sichkar-valentyn/Image_processing_in_Python
43d7c979bcd742cc202a28c2dea6ea5bc87562a2
[ "MIT" ]
null
null
null
Codes/Converting_RGB_to_GreyScale.py
sichkar-valentyn/Image_processing_in_Python
43d7c979bcd742cc202a28c2dea6ea5bc87562a2
[ "MIT" ]
2
2018-10-18T07:01:26.000Z
2022-03-22T08:22:33.000Z
# File: Converting_RGB_to_GreyScale.py # Description: Opening RGB image as array, converting to GreyScale and saving result into new file # Environment: PyCharm and Anaconda environment # # MIT License # Copyright (c) 2018 Valentyn N Sichkar # github.com/sichkar-valentyn # # Reference to: # Valentyn N Sichkar. Image pr...
33.966443
99
0.752223
823
5,061
4.490887
0.246659
0.064394
0.021645
0.032468
0.45671
0.404491
0.395833
0.366071
0.356872
0.34632
0
0.028813
0.135942
5,061
148
100
34.195946
0.816373
0.473227
0
0.267606
0
0
0.138196
0
0
0
0
0
0
1
0
false
0
0.084507
0
0.084507
0.15493
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1661f7c0c438355d7d875aa2c983973094881c84
3,193
py
Python
template_renderer.py
hamza-gheggad/gcp-iam-collector
02b46453b9ec23af07a0d81f7250f1de61e0ee23
[ "Apache-2.0" ]
null
null
null
template_renderer.py
hamza-gheggad/gcp-iam-collector
02b46453b9ec23af07a0d81f7250f1de61e0ee23
[ "Apache-2.0" ]
null
null
null
template_renderer.py
hamza-gheggad/gcp-iam-collector
02b46453b9ec23af07a0d81f7250f1de61e0ee23
[ "Apache-2.0" ]
null
null
null
import colorsys import json from jinja2 import Environment, PackageLoader import graph def create_html(formatted_nodes, formatted_edges, role_color_map, output_name): env = Environment(loader=PackageLoader('visualisation', '.')) template = env.get_template('visualisation.template') default_filters = list...
31.303922
91
0.593173
389
3,193
4.642674
0.262211
0.044297
0.063677
0.062016
0.117386
0.06866
0
0
0
0
0
0.007809
0.278108
3,193
102
92
31.303922
0.775705
0
0
0.024691
0
0
0.072949
0.006888
0
0
0
0
0
1
0.08642
false
0
0.049383
0.012346
0.197531
0.012346
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
166293ba707b563d24827825716e3e79a6848c40
13,007
py
Python
powerapi/cli/tools.py
danglotb/powerapi
67b2508588bfe1e20d90f9fe6bccda34d3455262
[ "BSD-3-Clause" ]
null
null
null
powerapi/cli/tools.py
danglotb/powerapi
67b2508588bfe1e20d90f9fe6bccda34d3455262
[ "BSD-3-Clause" ]
null
null
null
powerapi/cli/tools.py
danglotb/powerapi
67b2508588bfe1e20d90f9fe6bccda34d3455262
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2018, INRIA # Copyright (c) 2018, University of Lille # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, t...
49.268939
128
0.667948
1,546
13,007
5.412031
0.189521
0.036811
0.036572
0.018406
0.506872
0.422852
0.366918
0.307159
0.285766
0.276443
0
0.002531
0.240486
13,007
263
129
49.456274
0.844417
0.140693
0
0.216374
0
0
0.196724
0
0
0
0
0
0
1
0.105263
false
0
0.081871
0.023392
0.280702
0.040936
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16635cf724808862aeb33d75c907fed77d96d1fc
857
py
Python
1 plainProgrammingBug/start 1 plainProgrammingBug.py
vishalbelsare/SLAPP3
da187b771831aaaabaee16a26ad341db2e968104
[ "CC0-1.0" ]
8
2017-10-18T05:19:17.000Z
2020-03-24T21:23:52.000Z
1 plainProgrammingBug/start 1 plainProgrammingBug.py
vishalbelsare/SLAPP3
da187b771831aaaabaee16a26ad341db2e968104
[ "CC0-1.0" ]
null
null
null
1 plainProgrammingBug/start 1 plainProgrammingBug.py
vishalbelsare/SLAPP3
da187b771831aaaabaee16a26ad341db2e968104
[ "CC0-1.0" ]
4
2017-10-25T09:07:49.000Z
2019-08-18T09:17:58.000Z
# start 1 plainProgrammingBug.py import random def SimpleBug(): # the environment worldXSize = 80 worldYSize = 80 # the bug xPos = 40 yPos = 40 # the action for i in range(100): xPos += randomMove() yPos += randomMove() xPos = (xPos + worldX...
19.930233
69
0.568261
99
857
4.919192
0.515152
0.080082
0.086242
0.092402
0
0
0
0
0
0
0
0.036458
0.327888
857
42
70
20.404762
0.809028
0.123687
0
0
0
0
0.047059
0
0
0
0
0
0
1
0.133333
false
0
0.066667
0.066667
0.266667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1665f41d1c03f32167e2cea236d3cf7a022b6b61
3,202
py
Python
google-cloud-sdk/lib/surface/compute/resource_policies/create/group_placement.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/compute/resource_policies/create/group_placement.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
4
2020-07-21T12:51:46.000Z
2022-01-22T10:29:25.000Z
google-cloud-sdk/lib/surface/compute/resource_policies/create/group_placement.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
1
2020-07-25T18:17:57.000Z
2020-07-25T18:17:57.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC. 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 requir...
37.232558
109
0.777327
387
3,202
6.29199
0.405685
0.045996
0.021355
0.032854
0.240246
0.225873
0.195483
0.195483
0.195483
0.100205
0
0.00508
0.139288
3,202
85
110
37.670588
0.878447
0.254841
0
0.086957
0
0
0.015466
0
0
0
0
0
0
1
0.086957
false
0
0.217391
0
0.369565
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16661518293e1bbad26be3766a9addb9bc564758
629
py
Python
paperoni/io.py
notoraptor/paperoni
acdf2d3d790b98d6a171177ffd9d6342f86bc7ea
[ "MIT" ]
88
2020-08-27T17:58:58.000Z
2021-12-01T19:29:56.000Z
paperoni/io.py
notoraptor/paperoni
acdf2d3d790b98d6a171177ffd9d6342f86bc7ea
[ "MIT" ]
8
2020-08-27T02:54:11.000Z
2022-02-01T13:35:41.000Z
paperoni/io.py
notoraptor/paperoni
acdf2d3d790b98d6a171177ffd9d6342f86bc7ea
[ "MIT" ]
6
2020-08-25T16:43:28.000Z
2021-12-08T16:41:02.000Z
import json from .papers import Papers from .researchers import Researchers def ResearchersFile(filename): """Parse a file containing researchers.""" try: with open(filename, "r") as file: data = json.load(file) except FileNotFoundError: data = {} return Researchers(data, ...
25.16
67
0.655008
68
629
6.058824
0.352941
0.029126
0.048544
0.097087
0.364078
0.364078
0.364078
0.364078
0.364078
0.364078
0
0
0.243243
629
24
68
26.208333
0.865546
0.108108
0
0.588235
0
0
0.003636
0
0
0
0
0
0
1
0.117647
false
0
0.176471
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
166739b28ed7ffa22c5f71499709f1fd302bd933
1,914
py
Python
config_model.py
Asha-ai/BERT_abstractive_proj
f0e8f659d6b8821cfe0d15f4075e8cb890efdfe9
[ "Apache-2.0" ]
17
2020-01-11T15:15:21.000Z
2021-12-08T10:03:36.000Z
config_model.py
Asha-ai/BERT_abstractive_proj
f0e8f659d6b8821cfe0d15f4075e8cb890efdfe9
[ "Apache-2.0" ]
6
2020-03-01T17:14:58.000Z
2021-05-21T16:05:03.000Z
config_model.py
Asha-ai/BERT_abstractive_proj
f0e8f659d6b8821cfe0d15f4075e8cb890efdfe9
[ "Apache-2.0" ]
8
2020-05-11T21:24:51.000Z
2021-07-23T09:18:46.000Z
import texar.tf as tx beam_width = 5 hidden_dim = 768 bert = { 'pretrained_model_name': 'bert-base-uncased' } # See https://texar.readthedocs.io/en/latest/code/modules.html#texar.tf.modules.BERTEncoder.default_hparams bert_encoder = {} # From https://github.com/asyml/texar/blob/413e07f859acbbee979f274b52942edd5...
31.377049
128
0.653083
239
1,914
5.046025
0.514644
0.099502
0.049751
0.062189
0.119403
0.119403
0.119403
0.086235
0.086235
0
0
0.040995
0.222571
1,914
60
129
31.9
0.769489
0.462382
0
0.047619
0
0
0.31133
0.069951
0
0
0
0
0
1
0
false
0
0.02381
0
0.02381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
166903b8515452d27e1a1b1b4a84d3d174d4f220
708
py
Python
scrap_instagram.py
genaforvena/nn_scrapper
897766a52202aa056afd657995ed39b2b91e1fe2
[ "Apache-2.0" ]
null
null
null
scrap_instagram.py
genaforvena/nn_scrapper
897766a52202aa056afd657995ed39b2b91e1fe2
[ "Apache-2.0" ]
null
null
null
scrap_instagram.py
genaforvena/nn_scrapper
897766a52202aa056afd657995ed39b2b91e1fe2
[ "Apache-2.0" ]
null
null
null
import urllib.request import json access_token = "265791501.a4af066.f45a9f44719a4b2cb2d137118524e32b" api_url = "https://api.instagram.com/v1" nn_lat = 56.296504 nn_lng = 43.936059 def request(endpoint, req_params = ""): req = api_url + endpoint + "?access_token=" + access_token + "&" + req_params print(req) ...
29.5
94
0.706215
91
708
5.307692
0.494505
0.068323
0.074534
0
0
0
0
0
0
0
0
0.087171
0.141243
708
23
95
30.782609
0.707237
0
0
0
0
0
0.216407
0.070721
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.235294
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
166ccaa355ece2f923c461999fa3eb16171b7163
350
py
Python
mechroutines/models/_flux.py
keceli/mechdriver
978994ba5c77b6df00078b639c4482dacf269440
[ "Apache-2.0" ]
1
2022-03-22T20:47:04.000Z
2022-03-22T20:47:04.000Z
mechroutines/models/_flux.py
keceli/mechdriver
978994ba5c77b6df00078b639c4482dacf269440
[ "Apache-2.0" ]
1
2021-02-12T21:11:16.000Z
2021-12-07T21:32:14.000Z
mechroutines/models/_flux.py
keceli/mechdriver
978994ba5c77b6df00078b639c4482dacf269440
[ "Apache-2.0" ]
8
2019-12-18T20:09:46.000Z
2020-11-14T16:37:28.000Z
""" NEW: Handle flux files """ import autofile def read_flux(ts_save_path, vrc_locs=(0,)): """ Read the geometry from the filesys """ vrc_fs = autofile.fs.vrctst(ts_save_path) if vrc_fs[-1].file.flux.exists(vrc_locs): flux_str = vrc_fs[-1].file.flux.read(vrc_locs) else: flux_st...
18.421053
54
0.64
55
350
3.818182
0.509091
0.1
0.095238
0.095238
0.133333
0
0
0
0
0
0
0.011111
0.228571
350
18
55
19.444444
0.766667
0.177143
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
166ddfdb964d4dc41f4f840af0cda8cfbfe5a687
4,990
py
Python
RandomForest/RandomForest.py
nachiket273/ML_Algo_Implemented
74ae47fdf620545fdf8c934c5997784faadaebb7
[ "MIT" ]
7
2020-08-03T13:43:53.000Z
2022-02-18T20:38:51.000Z
RandomForest/RandomForest.py
nachiket273/ML_Algo_Implemented
74ae47fdf620545fdf8c934c5997784faadaebb7
[ "MIT" ]
null
null
null
RandomForest/RandomForest.py
nachiket273/ML_Algo_Implemented
74ae47fdf620545fdf8c934c5997784faadaebb7
[ "MIT" ]
2
2020-09-06T21:54:16.000Z
2022-01-22T19:59:33.000Z
import math import numpy as np import pandas as pd from sklearn.base import BaseEstimator import sys import os sys.path.append(os.path.abspath('../DecisionTree')) from DecisionTree import DecisionTree class RandomForest(BaseEstimator): """ Simple implementation of Random Forest. This class has implementat...
40.901639
93
0.546293
560
4,990
4.725
0.269643
0.049887
0.034014
0.049131
0.123205
0
0
0
0
0
0
0.004519
0.379158
4,990
122
94
40.901639
0.84958
0.327856
0
0.094595
0
0
0.018559
0
0
0
0
0
0
1
0.054054
false
0
0.094595
0
0.189189
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
166e1671aebcb4e327d8e4f8b8b62dc58ec16062
556
py
Python
tests/basics/generator_pend_throw.py
iotctl/pycopy
eeb841afea61b19800d054b3b289729665fc9aa4
[ "MIT" ]
663
2018-12-30T00:17:59.000Z
2022-03-14T05:03:41.000Z
tests/basics/generator_pend_throw.py
iotctl/pycopy
eeb841afea61b19800d054b3b289729665fc9aa4
[ "MIT" ]
41
2019-06-06T08:31:19.000Z
2022-02-13T16:53:41.000Z
tests/basics/generator_pend_throw.py
iotctl/pycopy
eeb841afea61b19800d054b3b289729665fc9aa4
[ "MIT" ]
60
2019-06-01T04:25:00.000Z
2022-02-25T01:47:31.000Z
def gen(): i = 0 while 1: yield i i += 1 g = gen() try: g.pend_throw except AttributeError: print("SKIP") raise SystemExit print(next(g)) print(next(g)) g.pend_throw(ValueError()) v = None try: v = next(g) except Exception as e: print("raised", repr(e)) print("ret was:"...
15.444444
73
0.624101
89
556
3.865169
0.460674
0.05814
0.087209
0.116279
0
0
0
0
0
0
0
0.007092
0.239209
556
35
74
15.885714
0.806147
0.190647
0
0.346154
0
0
0.111857
0
0
0
0
0
0
1
0.038462
false
0
0
0
0.038462
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
166e4003ce5bc54874ebae493377303b4c270f29
4,511
py
Python
src/UnitTypes/ProjectileModule.py
USArmyResearchLab/ARL_Battlespace
2f17a478f62c20a4db387d5d3e4bbeaa3197cd49
[ "MIT" ]
1
2022-03-31T19:15:04.000Z
2022-03-31T19:15:04.000Z
src/UnitTypes/ProjectileModule.py
USArmyResearchLab/ARL_Battlespace
2f17a478f62c20a4db387d5d3e4bbeaa3197cd49
[ "MIT" ]
null
null
null
src/UnitTypes/ProjectileModule.py
USArmyResearchLab/ARL_Battlespace
2f17a478f62c20a4db387d5d3e4bbeaa3197cd49
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Dec 15 09:49:47 2020 @author: james.z.hare """ from src.UnitModule import UnitClass, advance from copy import deepcopy import math class ProjectileClass(UnitClass): """ The Projectile Class This is a subclass to the UnitClass Virtual Functions ----...
32.221429
158
0.62137
509
4,511
5.444008
0.310413
0.034645
0.014435
0.021653
0.050162
0.027427
0
0
0
0
0
0.008962
0.282642
4,511
140
159
32.221429
0.847342
0.353802
0
0.037736
0
0
0.005454
0
0
0
0
0
0
1
0.150943
false
0
0.056604
0
0.396226
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16730d6f4856a5911d4dfcf4a29a2f5449a0ddb0
3,536
py
Python
tests/test_authentication.py
movermeyer/cellardoor
25192b07224ff7bd33fd29ebac07340bef53a2ed
[ "MIT" ]
null
null
null
tests/test_authentication.py
movermeyer/cellardoor
25192b07224ff7bd33fd29ebac07340bef53a2ed
[ "MIT" ]
3
2015-01-31T14:53:06.000Z
2015-02-01T19:04:30.000Z
tests/test_authentication.py
movermeyer/cellardoor
25192b07224ff7bd33fd29ebac07340bef53a2ed
[ "MIT" ]
2
2015-01-31T14:54:28.000Z
2018-03-05T17:33:42.000Z
import unittest from mock import Mock import base64 from cellardoor import errors from cellardoor.authentication import * from cellardoor.authentication.basic import BasicAuthIdentifier class FooIdentifier(Identifier): pass class BarAuthenticator(Authenticator): pass class TestAuthentication(unittest.TestCase...
30.747826
95
0.756505
374
3,536
6.949198
0.200535
0.03232
0.057715
0.084648
0.374375
0.370142
0.287033
0.21085
0.164679
0.06541
0
0.007129
0.127262
3,536
115
96
30.747826
0.835062
0
0
0.218391
0
0
0.06955
0
0
0
0
0
0.16092
1
0.137931
false
0.045977
0.068966
0
0.252874
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
167422ad1c22d904c1fb3127c28d48e06243100c
2,698
py
Python
configs/classification/imagenet/mixups/convnext/convnext_tiny_smooth_mix_8xb256_accu2_ema_fp16.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
10
2021-12-30T10:22:27.000Z
2022-03-30T02:31:38.000Z
configs/classification/imagenet/mixups/convnext/convnext_tiny_smooth_mix_8xb256_accu2_ema_fp16.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
3
2022-01-20T21:02:48.000Z
2022-03-19T13:49:45.000Z
configs/classification/imagenet/mixups/convnext/convnext_tiny_smooth_mix_8xb256_accu2_ema_fp16.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../../../_base_/datasets/imagenet/swin_sz224_4xbs256.py', '../../../_base_/default_runtime.py', ] # model settings model = dict( type='MixUpClassification', pretrained=None, alpha=0.2, mix_mode="cutmix", mix_args=dict( attentivemix=dict(grid_size=32, top_k=None, beta=8),...
34.151899
111
0.640474
394
2,698
4.187817
0.464467
0.048485
0.021818
0.018182
0.084848
0.030303
0.030303
0
0
0
0
0.069986
0.210897
2,698
78
112
34.589744
0.705026
0.192735
0
0.078125
0
0
0.124652
0.055144
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16748f009db0117be1d076ddc5a413db7e45e64c
2,274
py
Python
mcstasscript/interface/reader.py
PaNOSC-ViNYL/McStasScript
bd94ebc6cac290c3c9662871df40d76edbe4a44e
[ "BSD-3-Clause" ]
3
2019-08-29T14:15:06.000Z
2021-03-04T12:08:48.000Z
mcstasscript/interface/reader.py
PaNOSC-ViNYL/McStasScript
bd94ebc6cac290c3c9662871df40d76edbe4a44e
[ "BSD-3-Clause" ]
37
2019-03-05T12:28:32.000Z
2022-03-22T10:11:23.000Z
mcstasscript/interface/reader.py
PaNOSC-ViNYL/McStasScript
bd94ebc6cac290c3c9662871df40d76edbe4a44e
[ "BSD-3-Clause" ]
6
2019-10-21T20:19:10.000Z
2022-03-09T10:12:16.000Z
import os from mcstasscript.instr_reader.control import InstrumentReader from mcstasscript.interface.instr import McStas_instr class McStas_file: """ Reader of McStas files, can add to an existing McStasScript instrument instance or create a corresponding McStasScript python file. Methods ---...
28.425
79
0.579595
233
2,274
5.549356
0.343348
0.059551
0.023202
0.023202
0.044857
0
0
0
0
0
0
0
0.343887
2,274
79
80
28.78481
0.866622
0.39358
0
0.076923
0
0
0.07732
0
0
0
0
0
0
1
0.115385
false
0
0.115385
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16766ccc57f251df7ba9394a55b7eabdd7d12e46
2,925
py
Python
country_capital_guesser.py
NathanMH/ComputerClub
197585c1a77f71ee363547740d6e09f945e7526f
[ "MIT" ]
null
null
null
country_capital_guesser.py
NathanMH/ComputerClub
197585c1a77f71ee363547740d6e09f945e7526f
[ "MIT" ]
null
null
null
country_capital_guesser.py
NathanMH/ComputerClub
197585c1a77f71ee363547740d6e09f945e7526f
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 ####################### """#################### Index: 1. Imports and Readme 2. Functions 3. Main 4. Testing ####################""" ####################### ################################################################### # 1. IMPORTS AND README #############################...
33.62069
160
0.494017
286
2,925
4.881119
0.388112
0.090258
0.054441
0.080229
0.189828
0.179083
0.179083
0.123209
0.123209
0.123209
0
0.01008
0.185983
2,925
86
161
34.011628
0.576228
0.236239
0
0.135135
0
0
0.202082
0.056338
0
0
0
0
0
1
0.135135
false
0.027027
0.054054
0.054054
0.297297
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1676c1cee546273be3e4746fcf8ddcdf0ca583bb
2,288
py
Python
data_analysis/audiocommons_ffont/scripts/rekordbox_xml_to_analysis_rhythm_rekordbox_file.py
aframires/freesound-loop-annotator
a24e0c23bfc671e41e8627150e7b9fcae5c8cb13
[ "Apache-2.0" ]
18
2020-01-22T14:58:18.000Z
2022-02-21T12:07:51.000Z
data_analysis/audiocommons_ffont/scripts/rekordbox_xml_to_analysis_rhythm_rekordbox_file.py
aframires/freesound-loop-annotator
a24e0c23bfc671e41e8627150e7b9fcae5c8cb13
[ "Apache-2.0" ]
2
2020-02-24T13:14:05.000Z
2020-09-21T13:34:53.000Z
data_analysis/audiocommons_ffont/scripts/rekordbox_xml_to_analysis_rhythm_rekordbox_file.py
aframires/freesound-loop-annotator
a24e0c23bfc671e41e8627150e7b9fcae5c8cb13
[ "Apache-2.0" ]
1
2020-01-22T14:55:36.000Z
2020-01-22T14:55:36.000Z
# Need this to import from parent directory when running outside pycharm import os import sys sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir)) from ac_utils.general import save_to_json, load_from_json import click import xml.etree.ElementTree from urllib import unquote def find_c...
39.448276
119
0.660402
287
2,288
5.006969
0.355401
0.025052
0.027836
0.037578
0.231733
0.150313
0.150313
0.150313
0.118302
0.118302
0
0.003977
0.230769
2,288
57
120
40.140351
0.8125
0.117133
0
0.136364
0
0
0.091182
0.01503
0
0
0
0
0
1
0.045455
false
0
0.136364
0
0.204545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
167719b0cc59eef9b7fff6f4ce109cd0d2fe8bc1
12,932
py
Python
tests/test_web_urldispatcher.py
avstarkov/aiohttp
b0a03cffccf677bf316227522a9b841c15dcb869
[ "Apache-2.0" ]
null
null
null
tests/test_web_urldispatcher.py
avstarkov/aiohttp
b0a03cffccf677bf316227522a9b841c15dcb869
[ "Apache-2.0" ]
null
null
null
tests/test_web_urldispatcher.py
avstarkov/aiohttp
b0a03cffccf677bf316227522a9b841c15dcb869
[ "Apache-2.0" ]
null
null
null
import functools import os import shutil import tempfile from unittest import mock from unittest.mock import MagicMock import pytest from aiohttp import abc, web from aiohttp.web_urldispatcher import SystemRoute @pytest.fixture(scope='function') def tmp_dir_path(request): """ Give a path for a temporary dir...
27.514894
79
0.634009
1,786
12,932
4.422732
0.134379
0.033675
0.029118
0.042537
0.570579
0.536017
0.498797
0.450563
0.438537
0.408406
0
0.009592
0.24219
12,932
469
80
27.573561
0.796429
0.055444
0
0.485714
0
0.007143
0.094214
0.038998
0
0
0
0
0.132143
1
0.021429
false
0
0.032143
0
0.117857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1678ba6ffacdb3dc2a1730ee864aab5b2813d801
13,683
py
Python
R-GMM-VGAE/model_citeseer.py
nairouz/R-GAE
acc7bfe36153a4c7d6f68e21a557bb4d99dab639
[ "MIT" ]
26
2021-07-18T01:31:48.000Z
2022-03-31T03:23:11.000Z
R-GMM-VGAE/model_citeseer.py
Fawzidev/R-GAE
80988ddf951f1723091a04b617ce4fc6d20ab9ce
[ "MIT" ]
3
2021-10-01T07:24:42.000Z
2021-11-03T14:25:55.000Z
R-GMM-VGAE/model_citeseer.py
Fawzidev/R-GAE
80988ddf951f1723091a04b617ce4fc6d20ab9ce
[ "MIT" ]
7
2021-07-18T01:47:01.000Z
2022-01-24T21:09:10.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Authors : Nairouz Mrabah (mrabah.nairouz@courrier.uqam.ca) & Mohamed Fawzi Touati (touati.mohamed_fawzi@courrier.uqam.ca) # @Paper : Rethinking Graph Autoencoder Models for Attributed Graph Clustering # @License : MIT License import torch import numpy as np import tor...
46.699659
259
0.625448
1,892
13,683
4.29334
0.17019
0.015758
0.020805
0.019943
0.320694
0.269112
0.242275
0.198449
0.194756
0.151668
0
0.021224
0.25623
13,683
293
260
46.699659
0.776948
0.037857
0
0.094262
0
0.008197
0.032395
0
0
0
0
0
0
1
0.077869
false
0
0.057377
0
0.209016
0.008197
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16796b947c516147ed6529d69a08e17bbd4afe73
3,005
py
Python
odoo-13.0/addons/stock_account/models/account_chart_template.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/stock_account/models/account_chart_template.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/stock_account/models/account_chart_template.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, models, _ import logging _logger = logging.getLogger(__name__) class AccountChartTemplate(models.Model): _inherit = "account.chart.template" @api.model def generate_journals(self, ac...
47.698413
180
0.577704
308
3,005
5.431818
0.308442
0.053796
0.058577
0.053796
0.340705
0.253437
0.185296
0.185296
0.095637
0.050209
0
0.002791
0.284526
3,005
62
181
48.467742
0.775349
0.079867
0
0.25
0
0
0.20537
0.071843
0
0
0
0
0
1
0.041667
false
0
0.041667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
167a0dd80799c1a419238ba6164d01472b85e5d4
6,094
py
Python
lib/roi_data/loader.py
BarneyQiao/pcl.pytorch
4e0280e5e1470f705e620eda26f881d627c5016c
[ "MIT" ]
233
2019-05-10T07:17:42.000Z
2022-03-30T09:24:16.000Z
lib/roi_data/loader.py
Michael-Steven/Crack_Image_WSOD
4e8591a7c0768cee9eb7240bb9debd54824f5b33
[ "MIT" ]
78
2019-05-10T21:10:47.000Z
2022-03-29T13:57:32.000Z
lib/roi_data/loader.py
Michael-Steven/Crack_Image_WSOD
4e8591a7c0768cee9eb7240bb9debd54824f5b33
[ "MIT" ]
57
2019-05-10T07:17:37.000Z
2022-03-24T04:43:24.000Z
import math import numpy as np import numpy.random as npr import torch import torch.utils.data as data import torch.utils.data.sampler as torch_sampler from torch.utils.data.dataloader import default_collate from torch._six import int_classes as _int_classes from core.config import cfg from roi_data.minibatch import ...
38.56962
97
0.639317
848
6,094
4.375
0.248821
0.048518
0.018868
0.018868
0.14097
0.086253
0.075472
0.04097
0.026954
0
0
0.010293
0.266656
6,094
157
98
38.815287
0.81987
0.282245
0
0.113402
0
0
0.056272
0.005862
0
0
0
0.006369
0
1
0.113402
false
0
0.113402
0.020619
0.340206
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
167a8c5cf5187907cc0dbc578ad93057948ece69
28,272
py
Python
venv/Lib/site-packages/sklearn/linear_model/tests/test_least_angle.py
andywu113/fuhe_predict
7fd816ae83467aa659d420545cd3e25a5e933d5f
[ "MIT" ]
3
2019-06-05T12:11:20.000Z
2022-01-17T13:53:06.000Z
venv/Lib/site-packages/sklearn/linear_model/tests/test_least_angle.py
kevinten10/Clothing-Classification
9aac6e339651137179f4e4da36fe7743cf4bdca4
[ "MIT" ]
3
2021-06-08T20:58:27.000Z
2022-03-12T00:16:49.000Z
venv/Lib/site-packages/sklearn/linear_model/tests/test_least_angle.py
kevinten10/Clothing-Classification
9aac6e339651137179f4e4da36fe7743cf4bdca4
[ "MIT" ]
1
2019-02-11T22:36:12.000Z
2019-02-11T22:36:12.000Z
import warnings from distutils.version import LooseVersion import numpy as np import pytest from scipy import linalg from sklearn.model_selection import train_test_split from sklearn.utils.testing import assert_allclose from sklearn.utils.testing import assert_array_almost_equal from sklearn.utils.testing import ass...
38.360923
79
0.616051
3,889
28,272
4.288506
0.150424
0.04353
0.02968
0.031898
0.429488
0.374745
0.319223
0.277791
0.257945
0.242895
0
0.060671
0.262521
28,272
736
80
38.413043
0.739233
0.222482
0
0.311301
0
0
0.023927
0.000983
0
0
0
0.001359
0.142857
1
0.072495
false
0
0.042644
0.002132
0.117271
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
167b4e3bb5a00625d3f0b289e41e2bc170fabc61
3,128
py
Python
parser.py
FeroxTL/pynginxconfig-new
71cb78c635930b0a764d3274646d436e8d2f1c4d
[ "MIT" ]
8
2016-03-25T04:22:39.000Z
2022-02-12T21:46:47.000Z
parser.py
Winnerer/pynginxconfig
71cb78c635930b0a764d3274646d436e8d2f1c4d
[ "MIT" ]
null
null
null
parser.py
Winnerer/pynginxconfig
71cb78c635930b0a764d3274646d436e8d2f1c4d
[ "MIT" ]
3
2019-01-26T15:54:54.000Z
2022-02-12T21:46:47.000Z
#coding: utf8 import copy import re from blocks import Block, EmptyBlock, KeyValueOption, Comment, Location def parse(s, parent_block): config = copy.copy(s) pos, brackets_level, param_start = 0, 0, 0 while pos < len(config): if config[pos] == '#' and brackets_level == 0: re_sharp_co...
24.825397
113
0.545716
359
3,128
4.562674
0.32312
0.055556
0.026862
0.029304
0.164225
0.12149
0.12149
0.105617
0.045177
0.045177
0
0.023397
0.316816
3,128
125
114
25.024
0.743098
0.003836
0
0.173913
0
0.01087
0.344783
0.099197
0
0
0
0
0
1
0.01087
false
0
0.032609
0
0.043478
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
167df72d7c85276ff20ea4552c3c38a522dba306
7,024
py
Python
optimizer.py
thanusha22/CEC-1
02ad9247b006a348cc871a5714cf5abfa4a516af
[ "MIT" ]
null
null
null
optimizer.py
thanusha22/CEC-1
02ad9247b006a348cc871a5714cf5abfa4a516af
[ "MIT" ]
null
null
null
optimizer.py
thanusha22/CEC-1
02ad9247b006a348cc871a5714cf5abfa4a516af
[ "MIT" ]
null
null
null
from pathlib import Path import optimizers.PSO as pso import optimizers.MVO as mvo import optimizers.GWO as gwo import optimizers.MFO as mfo import optimizers.CS as cs import optimizers.BAT as bat import optimizers.WOA as woa import optimizers.FFA as ffa import optimizers.SSA as ssa import optimizers.GA as ga import o...
38.173913
111
0.58955
790
7,024
5.168354
0.226582
0.040411
0.085721
0.099437
0.348273
0.3277
0.3277
0.312515
0.284595
0.273084
0
0.004765
0.312785
7,024
183
112
38.382514
0.841102
0.142939
0
0.151515
0
0
0.063758
0.003721
0
0
0
0
0
1
0.015152
false
0
0.174242
0
0.204545
0.015152
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
167e133f17b315eee99f736bb553b46a271cd9cc
1,614
py
Python
tests/fields/test_primitive_types.py
slawak/dataclasses-avroschema
04e69a176b3e72bfa0acd3edbd044ecd161b1a68
[ "MIT" ]
null
null
null
tests/fields/test_primitive_types.py
slawak/dataclasses-avroschema
04e69a176b3e72bfa0acd3edbd044ecd161b1a68
[ "MIT" ]
null
null
null
tests/fields/test_primitive_types.py
slawak/dataclasses-avroschema
04e69a176b3e72bfa0acd3edbd044ecd161b1a68
[ "MIT" ]
null
null
null
import dataclasses import pytest from dataclasses_avroschema import fields from . import consts @pytest.mark.parametrize("primitive_type", fields.PYTHON_INMUTABLE_TYPES) def test_primitive_types(primitive_type): name = "a_field" field = fields.Field(name, primitive_type, dataclasses.MISSING) avro_type ...
34.340426
87
0.76456
213
1,614
5.464789
0.187793
0.178694
0.072165
0.103093
0.688144
0.636598
0.636598
0.556701
0.469931
0.426117
0
0
0.126394
1,614
46
88
35.086957
0.825532
0
0
0.193548
0
0
0.125155
0.032218
0
0
0
0
0.129032
1
0.129032
false
0
0.129032
0
0.258065
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
167f92f56a42d5741ea4dde46075bf065ebbe3cd
11,512
py
Python
Bindings/Python/examples/Moco/examplePredictAndTrack.py
mcx/opensim-core
c109f8cec3a81c732f335cd39752da6ae573b604
[ "Apache-2.0" ]
532
2015-03-13T18:51:10.000Z
2022-03-27T08:08:29.000Z
Bindings/Python/examples/Moco/examplePredictAndTrack.py
mcx/opensim-core
c109f8cec3a81c732f335cd39752da6ae573b604
[ "Apache-2.0" ]
2,701
2015-01-03T21:33:34.000Z
2022-03-30T07:13:41.000Z
Bindings/Python/examples/Moco/examplePredictAndTrack.py
mcx/opensim-core
c109f8cec3a81c732f335cd39752da6ae573b604
[ "Apache-2.0" ]
271
2015-02-16T23:25:29.000Z
2022-03-30T20:12:17.000Z
# -------------------------------------------------------------------------- # # OpenSim Moco: examplePredictAndTrack.py # # -------------------------------------------------------------------------- # # Copyright (c) 2018 Stanford University and the Authors # # ...
34.160237
79
0.633687
1,220
11,512
5.92623
0.24918
0.018672
0.014938
0.024896
0.465007
0.435131
0.430152
0.424066
0.418534
0.36722
0
0.036702
0.230803
11,512
336
80
34.261905
0.779785
0.278145
0
0.350282
0
0
0.119668
0.085819
0
0
0
0.002976
0
1
0.028249
false
0
0.016949
0
0.073446
0.022599
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1680b6fe6e7e3043a7d70ac1ab9bfc138b53e7ea
5,255
py
Python
pymapd/_parsers.py
mflaxman10/pymapd
00b72ae399a0ff829507ee0b3a2b7404f3a06c26
[ "Apache-2.0" ]
null
null
null
pymapd/_parsers.py
mflaxman10/pymapd
00b72ae399a0ff829507ee0b3a2b7404f3a06c26
[ "Apache-2.0" ]
null
null
null
pymapd/_parsers.py
mflaxman10/pymapd
00b72ae399a0ff829507ee0b3a2b7404f3a06c26
[ "Apache-2.0" ]
null
null
null
""" Utility methods for parsing data returned from MapD """ import datetime from collections import namedtuple from sqlalchemy import text import mapd.ttypes as T from ._utils import seconds_to_time Description = namedtuple("Description", ["name", "type_code", "display_size", ...
27.952128
79
0.597146
632
5,255
4.78481
0.286392
0.020833
0.013228
0.037037
0.242063
0.230489
0.177579
0.170635
0.170635
0.140873
0
0.004536
0.286775
5,255
187
80
28.101604
0.802295
0.16784
0
0.132075
0
0
0.064753
0
0
0
0
0.005348
0
1
0.084906
false
0
0.122642
0.028302
0.301887
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16833799777639519b435db61702159dbc70cb57
20,687
py
Python
featuretools/entityset/entity.py
rohit901/featuretools
20bee224782acf94909c2bf33239fd5332a8c1de
[ "BSD-3-Clause" ]
1
2021-07-30T16:03:48.000Z
2021-07-30T16:03:48.000Z
featuretools/entityset/entity.py
rohit901/featuretools
20bee224782acf94909c2bf33239fd5332a8c1de
[ "BSD-3-Clause" ]
13
2021-03-04T19:29:21.000Z
2022-01-21T10:49:20.000Z
featuretools/entityset/entity.py
rohit901/featuretools
20bee224782acf94909c2bf33239fd5332a8c1de
[ "BSD-3-Clause" ]
2
2021-02-09T21:37:48.000Z
2021-12-22T16:13:27.000Z
import logging import warnings import dask.dataframe as dd import numpy as np import pandas as pd from featuretools import variable_types as vtypes from featuretools.utils.entity_utils import ( col_is_datetime, convert_all_variable_data, convert_variable_data, get_linked_vars, infer_variable_types...
42.391393
124
0.592353
2,505
20,687
4.708583
0.144511
0.054939
0.028995
0.008902
0.313607
0.258499
0.215854
0.184824
0.158033
0.148283
0
0.002448
0.328709
20,687
487
125
42.478439
0.846907
0.240731
0
0.187075
0
0
0.081546
0.001466
0
0
0
0.004107
0.013605
1
0.078231
false
0
0.037415
0.010204
0.193878
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
168519bcca14cbc5945efcceae792622fe09d3d9
25,777
py
Python
RECOVERED_FILES/root/ez-segway/simulator/ez_lib/cen_scheduler.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
null
null
null
RECOVERED_FILES/root/ez-segway/simulator/ez_lib/cen_scheduler.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
null
null
null
RECOVERED_FILES/root/ez-segway/simulator/ez_lib/cen_scheduler.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
1
2021-05-08T02:23:00.000Z
2021-05-08T02:23:00.000Z
import itertools from ez_lib import ez_flow_tool from collections import defaultdict from ez_scheduler import EzScheduler from ez_lib.ez_ob import CenUpdateInfo, UpdateNext from misc import constants, logger from domain.message import * from collections import deque from misc import global_vars import time import even...
54.039832
136
0.58141
3,169
25,777
4.343326
0.07384
0.057469
0.073888
0.022377
0.706771
0.654752
0.603894
0.541703
0.498838
0.46687
0
0.003894
0.342398
25,777
476
137
54.153361
0.808094
0.105559
0
0.455497
0
0
0.033022
0
0
0
0
0.002101
0.007853
1
0.075916
false
0.002618
0.028796
0.007853
0.159686
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16863f0872927e8b824cd132c78fbf22829a951a
892
py
Python
src/trackbar.py
clovadev/opencv-python
f9c685f8dc658f630a9742f4dd55663bde03fe7d
[ "MIT" ]
null
null
null
src/trackbar.py
clovadev/opencv-python
f9c685f8dc658f630a9742f4dd55663bde03fe7d
[ "MIT" ]
null
null
null
src/trackbar.py
clovadev/opencv-python
f9c685f8dc658f630a9742f4dd55663bde03fe7d
[ "MIT" ]
null
null
null
import numpy as np import cv2 as cv def nothing(x): pass # Create a black image, a window img = np.zeros((300, 512, 3), np.uint8) cv.namedWindow('image') # create trackbars for color change cv.createTrackbar('R', 'image', 0, 255, nothing) cv.createTrackbar('G', 'image', 0, 255, nothing) cv.createTrackbar('B', ...
22.3
49
0.618834
130
892
4.246154
0.469231
0.115942
0.048913
0.086957
0.115942
0.115942
0
0
0
0
0
0.04058
0.226457
892
39
50
22.871795
0.75942
0.197309
0
0
0
0
0.087447
0
0
0
0
0
0
1
0.041667
false
0.041667
0.083333
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1687efc3eb23ad09ae90d5260997fa4ec210ea9f
1,246
py
Python
aoc_2015/src/day20.py
ambertests/adventofcode
140ed1d71ed647d30d1e6572964cab1e89dfd105
[ "MIT" ]
null
null
null
aoc_2015/src/day20.py
ambertests/adventofcode
140ed1d71ed647d30d1e6572964cab1e89dfd105
[ "MIT" ]
null
null
null
aoc_2015/src/day20.py
ambertests/adventofcode
140ed1d71ed647d30d1e6572964cab1e89dfd105
[ "MIT" ]
null
null
null
from functools import reduce # https://stackoverflow.com/questions/6800193/what-is-the-most-efficient-way-of-finding-all-the-factors-of-a-number-in-python def factors(n): step = 2 if n%2 else 1 return set(reduce(list.__add__, ([i, n//i] for i in range(1, int(n**0.5)+1, step) if not ...
27.688889
125
0.50321
158
1,246
3.911392
0.424051
0.080906
0.038835
0
0
0
0
0
0
0
0
0.08366
0.386035
1,246
44
126
28.318182
0.724183
0.11236
0
0
0
0
0.012704
0
0
0
0
0
0
1
0.055556
false
0
0.027778
0
0.138889
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1688724e3867c7e8e39adb6579cee704e885e634
1,604
py
Python
setup.py
jean/labels
dcb6f40fb4e222068e302202dd5d7d98b4771e4b
[ "MIT" ]
1
2019-11-06T14:08:40.000Z
2019-11-06T14:08:40.000Z
setup.py
jean/labels
dcb6f40fb4e222068e302202dd5d7d98b4771e4b
[ "MIT" ]
null
null
null
setup.py
jean/labels
dcb6f40fb4e222068e302202dd5d7d98b4771e4b
[ "MIT" ]
null
null
null
import pathlib import setuptools def read(*args: str) -> str: file_path = pathlib.Path(__file__).parent.joinpath(*args) return file_path.read_text("utf-8") setuptools.setup( name="labels", version="0.3.0.dev0", author="Raphael Pierzina", author_email="raphael@hackebrot.de", maintainer="R...
34.12766
81
0.640898
176
1,604
5.715909
0.579545
0.027833
0.099404
0.068588
0.09841
0.069583
0
0
0
0
0
0.011691
0.200125
1,604
46
82
34.869565
0.771629
0
0
0
0
0
0.471945
0
0
0
0
0
0
1
0.02381
false
0
0.047619
0
0.095238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1689397a49d0387c8d71492ecee794b05a45ba83
862
py
Python
src/ralph/ui/forms/util.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
src/ralph/ui/forms/util.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
src/ralph/ui/forms/util.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from ralph.business.models import Venture, VentureRole def all_ventures(): yield '', '---------' for v in Venture.objects.filter(show_in...
28.733333
78
0.558005
97
862
4.57732
0.494845
0.09009
0.144144
0
0
0
0
0
0
0
0
0.013093
0.291183
862
29
79
29.724138
0.713584
0.054524
0
0.086957
0
0
0.149015
0.033251
0
0
0
0
0
1
0.086957
false
0
0.217391
0
0.304348
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
168b7cd601c412154d052fac8164eeb139aec911
4,769
py
Python
services/users/manage.py
eventprotocol/event-protocol-webapp
38ccdc63bc744576ebb3631b7e17cfd4a09216b6
[ "MIT" ]
null
null
null
services/users/manage.py
eventprotocol/event-protocol-webapp
38ccdc63bc744576ebb3631b7e17cfd4a09216b6
[ "MIT" ]
11
2020-09-05T14:16:23.000Z
2022-03-03T22:33:14.000Z
services/users/manage.py
eventprotocol/event-protocol-webapp
38ccdc63bc744576ebb3631b7e17cfd4a09216b6
[ "MIT" ]
null
null
null
""" manage.py for flask application """ import unittest import coverage import os from flask.cli import FlaskGroup from project import create_app, db from project.api.models import User # Code coverage COV = coverage.Coverage( branch=True, include='project/*', omit=[ 'project/tests/*', 'p...
29.621118
79
0.642063
558
4,769
5.40681
0.367384
0.03182
0.025522
0.043752
0.1412
0.127942
0.078223
0.044415
0.044415
0.044415
0
0.061488
0.236108
4,769
160
80
29.80625
0.766676
0.04047
0
0.116667
0
0
0.34228
0.082076
0
0
0.055901
0
0
1
0.033333
false
0
0.05
0
0.116667
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
168bb7123d253d48e67b56f36bbcad938db24dd7
1,750
py
Python
keras_transformer/keras_transformer/training/custom_callbacks/CustomCheckpointer.py
erelcan/keras-transformer
ae88985dd4f1b5f91737e80c7e9c3157b60b4c4f
[ "Apache-2.0" ]
3
2021-02-14T17:10:59.000Z
2021-02-14T18:09:17.000Z
keras_transformer/keras_transformer/training/custom_callbacks/CustomCheckpointer.py
erelcan/keras-transformer
ae88985dd4f1b5f91737e80c7e9c3157b60b4c4f
[ "Apache-2.0" ]
null
null
null
keras_transformer/keras_transformer/training/custom_callbacks/CustomCheckpointer.py
erelcan/keras-transformer
ae88985dd4f1b5f91737e80c7e9c3157b60b4c4f
[ "Apache-2.0" ]
null
null
null
import os from keras.callbacks import ModelCheckpoint from keras_transformer.training.custom_callbacks.CustomCallbackABC import CustomCallbackABC from keras_transformer.utils.io_utils import save_to_pickle class CustomCheckpointer(ModelCheckpoint, CustomCallbackABC): def __init__(self, workspace_path, artifacts,...
35
117
0.671429
202
1,750
5.460396
0.29703
0.070716
0.065277
0.047144
0
0
0
0
0
0
0
0.005189
0.229143
1,750
49
118
35.714286
0.812454
0
0
0.055556
0
0
0.058286
0
0
0
0
0
0
1
0.166667
false
0
0.111111
0.055556
0.361111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
168da4e09bd5b50aa5b8cd08e50f215c17b399b2
608
py
Python
leetcode/regex_matching.py
Kaushalya/algo_journal
bcea8afda0dc86b36452378e3bcff9b0f57d6856
[ "Apache-2.0" ]
null
null
null
leetcode/regex_matching.py
Kaushalya/algo_journal
bcea8afda0dc86b36452378e3bcff9b0f57d6856
[ "Apache-2.0" ]
null
null
null
leetcode/regex_matching.py
Kaushalya/algo_journal
bcea8afda0dc86b36452378e3bcff9b0f57d6856
[ "Apache-2.0" ]
null
null
null
# Level: Hard def isMatch(s: str, p: str) -> bool: if not p: return not s n_s = len(s) n_p = len(p) j = 0 i = -1 while i < n_s-1: i = i+ 1 if j >= n_p: return False if p[j] == '*': while s[i]==s[i-1]: i += 1 j...
17.882353
39
0.361842
93
608
2.225806
0.344086
0.048309
0.028986
0.038647
0
0
0
0
0
0
0
0.031847
0.483553
608
34
40
17.882353
0.627389
0.032895
0
0.153846
0
0
0.032423
0
0
0
0
0
0
1
0.038462
false
0
0
0
0.192308
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
168db9c8444379377b3a611c0a5f87f083f3ec4d
3,217
py
Python
tests/factories.py
luzik/waliki
b7db696075ceebb5676be61f44e2d806cc472255
[ "BSD-3-Clause" ]
324
2015-01-02T20:48:33.000Z
2021-12-11T14:44:34.000Z
tests/factories.py
luzik/waliki
b7db696075ceebb5676be61f44e2d806cc472255
[ "BSD-3-Clause" ]
103
2015-01-02T03:01:34.000Z
2020-04-02T19:03:53.000Z
tests/factories.py
luzik/waliki
b7db696075ceebb5676be61f44e2d806cc472255
[ "BSD-3-Clause" ]
84
2015-01-07T08:53:05.000Z
2021-01-04T00:26:38.000Z
import factory from django.contrib.auth.models import User, Group, Permission from waliki.models import ACLRule, Page, Redirect class UserFactory(factory.django.DjangoModelFactory): username = factory.Sequence(lambda n: u'user{0}'.format(n)) password = factory.PostGenerationMethodCall('set_password', 'pass') ...
28.723214
98
0.608642
380
3,217
5.115789
0.218421
0.061728
0.08642
0.090535
0.640432
0.600823
0.526749
0.526749
0.526749
0.51286
0
0.003099
0.297793
3,217
111
99
28.981982
0.857459
0.11346
0
0.577465
0
0
0.036633
0
0
0
0
0
0
1
0.084507
false
0.014085
0.042254
0
0.492958
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
168dc722af15d363851566ae2eeabcf9ccc50653
68,372
py
Python
nxt_editor/commands.py
dalteocraft/nxt_editor
18992da7cfa89769568434ec08d787510e09f1c4
[ "MIT" ]
131
2020-12-03T08:01:26.000Z
2022-03-07T03:41:37.000Z
nxt_editor/commands.py
dalteocraft/nxt_editor
18992da7cfa89769568434ec08d787510e09f1c4
[ "MIT" ]
127
2020-12-07T21:43:02.000Z
2022-02-17T22:31:14.000Z
nxt_editor/commands.py
dalteocraft/nxt_editor
18992da7cfa89769568434ec08d787510e09f1c4
[ "MIT" ]
17
2020-12-08T08:06:44.000Z
2021-11-18T05:40:11.000Z
# Built-in import copy import logging import time # External from Qt.QtWidgets import QUndoCommand # Internal from nxt_editor import colors from nxt_editor import user_dir from nxt import nxt_path from nxt.nxt_layer import LAYERS, SAVE_KEY from nxt.nxt_node import (INTERNAL_ATTRS, META_ATTRS, get_node_as_dict, ...
40.60095
80
0.597379
8,219
68,372
4.663341
0.054995
0.048424
0.032561
0.014559
0.621478
0.538588
0.458386
0.402004
0.334481
0.293937
0
0.001263
0.316928
68,372
1,683
81
40.625074
0.819412
0.071418
0
0.471858
0
0
0.018492
0
0
0
0
0.000594
0
1
0.089437
false
0.003084
0.009252
0
0.13724
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
168de834f7c08dea94c1b268f9213453f995fc3e
6,642
py
Python
mietrechtspraxis/mietrechtspraxis/doctype/arbitration_authority/arbitration_authority.py
libracore/mietrechtspraxis
7b2320a70b98b086be136a86b1ab4fadfce215ff
[ "MIT" ]
1
2021-07-15T13:25:23.000Z
2021-07-15T13:25:23.000Z
mietrechtspraxis/mietrechtspraxis/doctype/arbitration_authority/arbitration_authority.py
libracore/mietrechtspraxis
7b2320a70b98b086be136a86b1ab4fadfce215ff
[ "MIT" ]
1
2022-01-27T13:30:56.000Z
2022-01-27T13:30:56.000Z
mietrechtspraxis/mietrechtspraxis/doctype/arbitration_authority/arbitration_authority.py
libracore/mietrechtspraxis
7b2320a70b98b086be136a86b1ab4fadfce215ff
[ "MIT" ]
2
2021-08-14T22:23:08.000Z
2021-09-08T09:31:51.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021, libracore AG and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from datetime import datetime from PyPDF2 import PdfFileWriter from frappe.utils.file_manager im...
43.986755
187
0.483439
556
6,642
5.643885
0.294964
0.028999
0.022307
0.027087
0.248885
0.227533
0.210325
0.192479
0.151689
0.123008
0
0.018499
0.422162
6,642
150
188
44.28
0.799114
0.075881
0
0.281818
0
0
0.531901
0.067738
0
0
0
0
0
1
0.054545
false
0.009091
0.054545
0.018182
0.218182
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16904816a9bda6205128c0d91b67e3ab2be3d489
3,943
py
Python
src/commands/locate_item.py
seisatsu/DennisMUD-ESP32
b63d4b914c5e8d0f9714042997c64919b20be842
[ "MIT" ]
19
2018-10-02T03:58:46.000Z
2021-04-09T13:09:23.000Z
commands/locate_item.py
seisatsu/Dennis
8f1892f21beba6b21b4f7b9ba3062296bb1dc4b9
[ "MIT" ]
100
2018-09-22T22:54:35.000Z
2021-04-16T17:46:34.000Z
src/commands/locate_item.py
seisatsu/DennisMUD-ESP32
b63d4b914c5e8d0f9714042997c64919b20be842
[ "MIT" ]
1
2022-01-03T02:21:56.000Z
2022-01-03T02:21:56.000Z
####################### # Dennis MUD # # locate_item.py # # Copyright 2018-2020 # # Michael D. Reiley # ####################### # ********** # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal i...
41.072917
116
0.633274
530
3,943
4.692453
0.350943
0.028146
0.018094
0.028951
0.221954
0.221954
0.184158
0.152392
0.131484
0.131484
0
0.008562
0.259447
3,943
95
117
41.505263
0.843151
0.421506
0
0.318182
0
0
0.236902
0
0
0
0
0
0
1
0.022727
false
0
0
0
0.204545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16904f40b9743948ab5dc6a0d2f55015295bc2fd
2,787
py
Python
modelling/scsb/models/monthly-comparisons.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
modelling/scsb/models/monthly-comparisons.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
modelling/scsb/models/monthly-comparisons.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
import json import pandas as pd import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression from sklearn.ensemble import RandomForestRegressor from sklearn.tree import DecisionTreeRegressor from xgboost import XGBRegressor from catboost import CatBoostRegressor from sklearn.model_selection import ...
38.708333
161
0.734482
421
2,787
4.584323
0.344418
0.027979
0.043523
0.022798
0.131088
0.045596
0.035751
0
0
0
0
0.021022
0.12953
2,787
71
162
39.253521
0.774526
0.077503
0
0
0
0
0.14809
0.049493
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1695439f6b89942d55b135dae20f140a0772199c
3,727
py
Python
shuffling_algorithm.py
BaptisteLafoux/aztec_tiling
413acd8751b8178942e91fbee32987f02bc5c695
[ "MIT" ]
null
null
null
shuffling_algorithm.py
BaptisteLafoux/aztec_tiling
413acd8751b8178942e91fbee32987f02bc5c695
[ "MIT" ]
null
null
null
shuffling_algorithm.py
BaptisteLafoux/aztec_tiling
413acd8751b8178942e91fbee32987f02bc5c695
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Dec 30 22:04:48 2020 @author: baptistelafoux """ import domino import numpy as np import numpy.lib.arraysetops as aso def spawn_block(x, y): if np.random.rand() > 0.5: d1 = domino.domino(np.array([x, y]), np.array([x + 1, y]), ...
26.81295
117
0.499866
554
3,727
3.214801
0.18231
0.028074
0.040427
0.023582
0.480067
0.411005
0.332959
0.27288
0.205503
0.19315
0
0.032747
0.344513
3,727
138
118
27.007246
0.696275
0.027904
0
0.380952
0
0
0
0
0
0
0
0
0
1
0.095238
false
0.035714
0.035714
0
0.22619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
169a6a92aa8a5f8b13f2ca7a2bc5a3d4390e96a9
6,363
py
Python
quantum/plugins/nicira/extensions/nvp_qos.py
yamt/neutron
f94126739a48993efaf1d1439dcd3dadb0c69742
[ "Apache-2.0" ]
null
null
null
quantum/plugins/nicira/extensions/nvp_qos.py
yamt/neutron
f94126739a48993efaf1d1439dcd3dadb0c69742
[ "Apache-2.0" ]
null
null
null
quantum/plugins/nicira/extensions/nvp_qos.py
yamt/neutron
f94126739a48993efaf1d1439dcd3dadb0c69742
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 Nicira, Inc. # 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/lic...
31.191176
78
0.610718
715
6,363
5.236364
0.317483
0.023504
0.034722
0.043269
0.279915
0.223024
0.176015
0.129541
0.081197
0.081197
0
0.009395
0.280685
6,363
203
79
31.344828
0.808608
0.120069
0
0.222222
0
0
0.220646
0.004488
0
0
0
0
0
1
0.088889
false
0.02963
0.044444
0.037037
0.355556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
169c6caecdf841a261ae5cbf1ce633a03edb8b3a
2,532
py
Python
tests/unit/concurrently/test_TaskPackageDropbox_put.py
shane-breeze/AlphaTwirl
59dbd5348af31d02e133d43fd5bfaad6b99a155e
[ "BSD-3-Clause" ]
null
null
null
tests/unit/concurrently/test_TaskPackageDropbox_put.py
shane-breeze/AlphaTwirl
59dbd5348af31d02e133d43fd5bfaad6b99a155e
[ "BSD-3-Clause" ]
null
null
null
tests/unit/concurrently/test_TaskPackageDropbox_put.py
shane-breeze/AlphaTwirl
59dbd5348af31d02e133d43fd5bfaad6b99a155e
[ "BSD-3-Clause" ]
null
null
null
# Tai Sakuma <tai.sakuma@gmail.com> import pytest try: import unittest.mock as mock except ImportError: import mock from alphatwirl.concurrently import TaskPackageDropbox ##__________________________________________________________________|| @pytest.fixture() def workingarea(): return mock.MagicMock() @...
30.878049
98
0.742496
292
2,532
5.630137
0.181507
0.065693
0.072993
0.048662
0.689173
0.687348
0.644769
0.622263
0.539538
0.539538
0
0.02869
0.146524
2,532
81
99
31.259259
0.732068
0.10387
0
0.425926
0
0
0.014178
0
0
0
0
0
0.351852
1
0.12963
false
0
0.092593
0.037037
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
169dfe6f123a1bb92dcedefda60fdcdf0dde5b42
3,497
py
Python
networking_odl/tests/unit/dhcp/test_odl_dhcp_driver.py
gokarslan/networking-odl2
6a6967832b2c02dfcff6a9f0ab6e36472b849ce8
[ "Apache-2.0" ]
null
null
null
networking_odl/tests/unit/dhcp/test_odl_dhcp_driver.py
gokarslan/networking-odl2
6a6967832b2c02dfcff6a9f0ab6e36472b849ce8
[ "Apache-2.0" ]
null
null
null
networking_odl/tests/unit/dhcp/test_odl_dhcp_driver.py
gokarslan/networking-odl2
6a6967832b2c02dfcff6a9f0ab6e36472b849ce8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 OpenStack Foundation # 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 ...
40.662791
78
0.637975
420
3,497
5.030952
0.321429
0.055372
0.032182
0.055372
0.347847
0.308093
0.308093
0.274965
0.274965
0.274965
0
0.012638
0.275951
3,497
85
79
41.141176
0.82188
0.174435
0
0.388889
0
0
0.084262
0.009749
0
0
0
0
0.092593
1
0.092593
false
0
0.12963
0
0.240741
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16a0f5c79d486ed958f66a4f801398499c8d9ff1
3,389
py
Python
premium/backend/src/baserow_premium/api/admin/dashboard/views.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
839
2020-07-20T13:29:34.000Z
2022-03-31T21:09:16.000Z
premium/backend/src/baserow_premium/api/admin/dashboard/views.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
28
2020-08-07T09:23:58.000Z
2022-03-01T22:32:40.000Z
premium/backend/src/baserow_premium/api/admin/dashboard/views.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
79
2020-08-04T01:48:01.000Z
2022-03-27T13:30:54.000Z
from datetime import timedelta from django.contrib.auth import get_user_model from drf_spectacular.utils import extend_schema from rest_framework.response import Response from rest_framework.permissions import IsAdminUser from rest_framework.views import APIView from baserow.api.decorators import accept_timezone fr...
38.078652
88
0.649159
425
3,389
4.936471
0.275294
0.062917
0.031459
0.028599
0.50858
0.461868
0.461868
0.383222
0.383222
0.348904
0
0.022941
0.279729
3,389
88
89
38.511364
0.836542
0.120685
0
0.059701
0
0
0.233882
0.060014
0
0
0
0
0
1
0.014925
false
0
0.149254
0
0.208955
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16a20512bd62fea83ee40c49a4b7cc5fa386ce48
969
py
Python
src/clientOld.py
dan3612812/socketChatRoom
b0d548477687de2d9fd521826db9ea75e528de5c
[ "MIT" ]
null
null
null
src/clientOld.py
dan3612812/socketChatRoom
b0d548477687de2d9fd521826db9ea75e528de5c
[ "MIT" ]
null
null
null
src/clientOld.py
dan3612812/socketChatRoom
b0d548477687de2d9fd521826db9ea75e528de5c
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import sys import socket import time import threading import select HOST = '192.168.11.98' PORT = int(sys.argv[1]) queue = [] s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((HOST, PORT)) queue.append(s) print("add client to queue") def socketRecv(): while True: ...
19.38
53
0.627451
130
969
4.653846
0.476923
0.026446
0.064463
0.054545
0.155372
0.155372
0.155372
0.155372
0.155372
0.155372
0
0.034483
0.221878
969
49
54
19.77551
0.767905
0.139319
0
0.294118
0
0
0.082324
0
0
0
0
0
0
1
0.058824
false
0
0.147059
0
0.205882
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
0
0
0
0
0
0
0
0
1
0
16a3072f25578896e1189f9fac5976e0586e6b47
6,369
py
Python
demo_large_image.py
gunlyungyou/AerialDetection
a5606acd8e9a5f7b10cd76bd4b0c3b8c7630fb26
[ "Apache-2.0" ]
9
2020-10-08T19:51:17.000Z
2022-02-16T12:58:01.000Z
demo_large_image.py
gunlyungyou/AerialDetection
a5606acd8e9a5f7b10cd76bd4b0c3b8c7630fb26
[ "Apache-2.0" ]
null
null
null
demo_large_image.py
gunlyungyou/AerialDetection
a5606acd8e9a5f7b10cd76bd4b0c3b8c7630fb26
[ "Apache-2.0" ]
8
2020-09-25T14:47:55.000Z
2022-02-16T12:31:13.000Z
from mmdet.apis import init_detector, inference_detector, show_result, draw_poly_detections import mmcv from mmcv import Config from mmdet.datasets import get_dataset import cv2 import os import numpy as np from tqdm import tqdm import DOTA_devkit.polyiou as polyiou import math import pdb CLASS_NAMES_KR = ('소형 선박', '대...
43.326531
122
0.551892
830
6,369
4.028916
0.26988
0.011962
0.0314
0.028409
0.261065
0.183612
0.120215
0.052033
0.052033
0
0
0.044151
0.310096
6,369
146
123
43.623288
0.716887
0.151358
0
0.036697
0
0
0.071163
0.027685
0
0
0
0.006849
0
1
0.036697
false
0.009174
0.119266
0
0.183486
0.009174
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16a410bbf9dbba9b62a772c35376b67270885de8
3,981
py
Python
scripts/map_frame_to_utm_tf_publisher.py
coincar-sim/lanelet2_interface_ros
f1738766dd323ed64a4ebcc8254438920a587b80
[ "BSD-3-Clause" ]
7
2019-03-27T03:59:50.000Z
2021-10-17T10:46:29.000Z
scripts/map_frame_to_utm_tf_publisher.py
coincar-sim/lanelet2_interface_ros
f1738766dd323ed64a4ebcc8254438920a587b80
[ "BSD-3-Clause" ]
6
2019-04-13T15:55:55.000Z
2021-06-01T21:08:18.000Z
scripts/map_frame_to_utm_tf_publisher.py
coincar-sim/lanelet2_interface_ros
f1738766dd323ed64a4ebcc8254438920a587b80
[ "BSD-3-Clause" ]
4
2021-03-25T09:22:55.000Z
2022-03-22T05:40:49.000Z
#!/usr/bin/env python # # Copyright (c) 2018 # FZI Forschungszentrum Informatik, Karlsruhe, Germany (www.fzi.de) # KIT, Institute of Measurement and Control, Karlsruhe, Germany (www.mrt.kit.edu) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted p...
38.278846
85
0.757096
557
3,981
5.197487
0.40395
0.07772
0.058031
0.025907
0.249741
0.203109
0.186529
0.140933
0.08532
0.07323
0
0.010312
0.171816
3,981
103
86
38.650485
0.867759
0.413213
0
0.037037
0
0
0.108413
0.095837
0
0
0
0
0
1
0.037037
false
0
0.111111
0
0.185185
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16a762cb2b4ddc4c0f253e56da58680346091ea8
7,879
py
Python
applications/FluidDynamicsApplication/tests/sod_shock_tube_test.py
Rodrigo-Flo/Kratos
f718cae5d1618e9c0e7ed1da9e95b7a853e62b1b
[ "BSD-4-Clause" ]
null
null
null
applications/FluidDynamicsApplication/tests/sod_shock_tube_test.py
Rodrigo-Flo/Kratos
f718cae5d1618e9c0e7ed1da9e95b7a853e62b1b
[ "BSD-4-Clause" ]
null
null
null
applications/FluidDynamicsApplication/tests/sod_shock_tube_test.py
Rodrigo-Flo/Kratos
f718cae5d1618e9c0e7ed1da9e95b7a853e62b1b
[ "BSD-4-Clause" ]
null
null
null
# Import kratos core and applications import KratosMultiphysics import KratosMultiphysics.KratosUnittest as KratosUnittest import KratosMultiphysics.kratos_utilities as KratosUtilities from KratosMultiphysics.FluidDynamicsApplication.fluid_dynamics_analysis import FluidDynamicsAnalysis class SodShockTubeTest(KratosUni...
48.635802
142
0.615053
684
7,879
6.736842
0.236842
0.014323
0.024306
0.051649
0.378472
0.368056
0.334201
0.240017
0.220486
0.179688
0
0.00534
0.286965
7,879
161
143
48.937888
0.814881
0.047214
0
0.29927
0
0
0.469655
0.120181
0
0
0
0
0
1
0.080292
false
0
0.029197
0
0.116788
0.029197
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16aafc257a8e2aae93d3cae037dc8cf239e63a42
20,180
py
Python
lib/aws_sso_lib/assignments.py
vdesjardins/aws-sso-util
bf092a21674e8286c4445df7f4aae8ad061444ca
[ "Apache-2.0" ]
330
2020-11-11T15:53:22.000Z
2022-03-30T06:45:57.000Z
lib/aws_sso_lib/assignments.py
vdesjardins/aws-sso-util
bf092a21674e8286c4445df7f4aae8ad061444ca
[ "Apache-2.0" ]
47
2020-11-11T01:32:29.000Z
2022-03-30T01:33:28.000Z
lib/aws_sso_lib/assignments.py
vdesjardins/aws-sso-util
bf092a21674e8286c4445df7f4aae8ad061444ca
[ "Apache-2.0" ]
23
2020-11-25T14:12:37.000Z
2022-03-30T02:16:26.000Z
import re import numbers import collections import logging from collections.abc import Iterable import itertools import aws_error_utils from .lookup import Ids, lookup_accounts_for_ou from .format import format_account_id LOGGER = logging.getLogger(__name__) _Context = collections.namedtuple("_Context", [ "sess...
41.608247
147
0.637413
2,231
20,180
5.467952
0.095473
0.135339
0.038036
0.019182
0.55193
0.465284
0.39659
0.352078
0.31978
0.29527
0
0.002968
0.281962
20,180
484
148
41.694215
0.838923
0.097175
0
0.391414
0
0.002525
0.138337
0.041087
0
0
0
0
0
1
0.068182
false
0.002525
0.030303
0.007576
0.189394
0.007576
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16ac3137138a7e3b002c9c9337af2623d4ef26d0
2,600
py
Python
buildutil/main.py
TediCreations/buildutils
49a35e0926baf65f7688f89e53f525812540101c
[ "MIT" ]
null
null
null
buildutil/main.py
TediCreations/buildutils
49a35e0926baf65f7688f89e53f525812540101c
[ "MIT" ]
null
null
null
buildutil/main.py
TediCreations/buildutils
49a35e0926baf65f7688f89e53f525812540101c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import argparse import subprocess if __name__ == '__main__': from version import __version__ from configParser import ConfigParser else: from .version import __version__ from .configParser import ConfigParser def command(cmd): """Run a shell command""" subprocess.call(cmd, sh...
20.967742
65
0.672692
322
2,600
5.242236
0.341615
0.042654
0.050355
0.028436
0.194313
0.164692
0.138626
0.138626
0.069905
0.069905
0
0.000934
0.176538
2,600
123
66
21.138211
0.787482
0.186538
0
0.137931
0
0
0.272416
0
0
0
0
0
0
1
0.034483
false
0
0.12069
0
0.172414
0.137931
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16adc3c8486e2f9e557cbef70e8a437e66aeb740
19,267
py
Python
gautools/submit_gaussian.py
thompcinnamon/QM-calc-scripts
60b06e14b2efd307d419201079bb24152ab0bd3c
[ "Apache-2.0" ]
null
null
null
gautools/submit_gaussian.py
thompcinnamon/QM-calc-scripts
60b06e14b2efd307d419201079bb24152ab0bd3c
[ "Apache-2.0" ]
2
2018-07-18T19:53:08.000Z
2019-02-25T23:25:51.000Z
gautools/submit_gaussian.py
theavey/QM-calc-scripts
60b06e14b2efd307d419201079bb24152ab0bd3c
[ "Apache-2.0" ]
1
2017-01-04T20:50:21.000Z
2017-01-04T20:50:21.000Z
#! /usr/bin/env python3 ######################################################################## # # # This script was written by Thomas Heavey in 2015. # # theavey@bu.edu thomasjheavey@gmail.com # # ...
44.496536
78
0.553537
2,450
19,267
4.216735
0.198776
0.004259
0.015681
0.012777
0.194076
0.145388
0.116155
0.088472
0.080922
0.080922
0
0.007388
0.339648
19,267
432
79
44.599537
0.804606
0.302849
0
0.239726
0
0
0.197488
0.016644
0
0
0
0
0
1
0.023973
false
0
0.041096
0
0.089041
0.054795
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16aff0c4c406b2f10dac6cda72a39c612f61400e
2,036
py
Python
experiments/recorder.py
WeiChengTseng/maddpg
f2813ab8bc43e2acbcc69818672e2e2fd305a007
[ "MIT" ]
3
2022-01-04T13:32:11.000Z
2022-01-11T05:59:22.000Z
experiments/recorder.py
WeiChengTseng/maddpg
f2813ab8bc43e2acbcc69818672e2e2fd305a007
[ "MIT" ]
null
null
null
experiments/recorder.py
WeiChengTseng/maddpg
f2813ab8bc43e2acbcc69818672e2e2fd305a007
[ "MIT" ]
null
null
null
import json import copy import pdb import numpy as np import pickle def listify_mat(matrix): matrix = np.array(matrix).astype(str) if len(matrix.shape) > 1: matrix_list = [] for row in matrix: try: matrix_list.append(list(row)) except: pd...
27.513514
66
0.515717
252
2,036
4.039683
0.313492
0.034381
0.054028
0.031434
0.30943
0.30943
0.230845
0.163065
0.121807
0.121807
0
0.012725
0.343811
2,036
74
67
27.513514
0.749252
0.046169
0
0.224138
0
0
0.062919
0
0
0
0
0
0
1
0.103448
false
0
0.086207
0
0.327586
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16b0c13e303ebbec34fd3a80391f02025c584689
589
py
Python
generate/dummy_data/mvp/gen_csv.py
ifekxp/data
f3571223f51b3fcc3a708d9ac82e76e3cc1ee068
[ "MIT" ]
null
null
null
generate/dummy_data/mvp/gen_csv.py
ifekxp/data
f3571223f51b3fcc3a708d9ac82e76e3cc1ee068
[ "MIT" ]
null
null
null
generate/dummy_data/mvp/gen_csv.py
ifekxp/data
f3571223f51b3fcc3a708d9ac82e76e3cc1ee068
[ "MIT" ]
null
null
null
from faker import Faker import csv # Reference: https://pypi.org/project/Faker/ output = open('data.CSV', 'w', newline='') fake = Faker() header = ['name', 'age', 'street', 'city', 'state', 'zip', 'lng', 'lat'] mywriter=csv.writer(output) mywriter.writerow(header) for r in range(1000): mywriter...
21.814815
73
0.556876
69
589
4.724638
0.652174
0.067485
0
0
0
0
0
0
0
0
0
0.020785
0.264856
589
27
74
21.814815
0.732102
0.071307
0
0
0
0
0.076923
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.105263
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16b1afada94a1ed1f6f7ce90f2dda1d6203c70b0
1,302
py
Python
pyscf/nao/test/test_0017_tddft_iter_nao.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
3
2021-02-28T00:52:53.000Z
2021-03-01T06:23:33.000Z
pyscf/nao/test/test_0017_tddft_iter_nao.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
36
2018-08-22T19:44:03.000Z
2020-05-09T10:02:36.000Z
pyscf/nao/test/test_0017_tddft_iter_nao.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
4
2018-02-14T16:28:28.000Z
2019-08-12T16:40:30.000Z
from __future__ import print_function, division import os,unittest from pyscf.nao import tddft_iter dname = os.path.dirname(os.path.abspath(__file__)) td = tddft_iter(label='water', cd=dname) try: from pyscf.lib import misc libnao_gpu = misc.load_library("libnao_gpu") td_gpu = tddft_iter(label='water', cd...
33.384615
107
0.678955
201
1,302
4.199005
0.363184
0.059242
0.099526
0.109005
0.430095
0.331754
0.270142
0.227488
0.158768
0.158768
0
0.031511
0.171275
1,302
38
108
34.263158
0.750695
0.144393
0
0
0
0
0.04
0
0
0
0
0
0.357143
1
0.071429
false
0
0.142857
0
0.25
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16b1e0777507d0977f5c8842b27867dc734bcc90
898
py
Python
setup.py
dimasciput/osm2geojson
7b5ba25e39d80838d41f342237161e0fdc5e64b6
[ "MIT" ]
null
null
null
setup.py
dimasciput/osm2geojson
7b5ba25e39d80838d41f342237161e0fdc5e64b6
[ "MIT" ]
null
null
null
setup.py
dimasciput/osm2geojson
7b5ba25e39d80838d41f342237161e0fdc5e64b6
[ "MIT" ]
null
null
null
import io from os import path from setuptools import setup dirname = path.abspath(path.dirname(__file__)) with io.open(path.join(dirname, 'README.md'), encoding='utf-8') as f: long_description = f.read() def parse_requirements(filename): lines = (line.strip() for line in open(path.join(dirname, filename))) ...
32.071429
73
0.722717
117
898
5.410256
0.649573
0.094787
0.037915
0.060032
0
0
0
0
0
0
0
0.010458
0.148107
898
27
74
33.259259
0.816993
0
0
0
0
0
0.234967
0.030067
0
0
0
0
0
1
0.041667
false
0.041667
0.125
0
0.208333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16b268fae933e4415a5583a098a6d7daa28d2e18
849
py
Python
Cap_11/ex11.6.py
gguilherme42/Livro-de-Python
465a509d50476fd1a87239c71ed741639d58418b
[ "MIT" ]
4
2020-04-07T00:38:46.000Z
2022-03-10T03:34:42.000Z
Cap_11/ex11.6.py
gguilherme42/Livro-de-Python
465a509d50476fd1a87239c71ed741639d58418b
[ "MIT" ]
null
null
null
Cap_11/ex11.6.py
gguilherme42/Livro-de-Python
465a509d50476fd1a87239c71ed741639d58418b
[ "MIT" ]
1
2021-04-22T02:45:38.000Z
2021-04-22T02:45:38.000Z
import sqlite3 from contextlib import closing nome = input('Nome do produto: ').lower().capitalize() with sqlite3.connect('precos.db') as conexao: with closing(conexao.cursor()) as cursor: cursor.execute('SELECT * FROM Precos WHERE nome_produto = ?', (nome,)) registro = cursor.fetchone() ...
38.590909
102
0.572438
93
849
5.204301
0.526882
0.053719
0.066116
0
0
0
0
0
0
0
0
0.011647
0.292108
849
22
103
38.590909
0.793677
0
0
0.105263
0
0
0.291765
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.105263
0.210526
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16b631fdc9b05e860febb665678ebc3703e11591
4,882
py
Python
jet20/backend/solver.py
JTJL/jet20
2dc01ebf937f8501bcfb15c6641c569f8097ccf5
[ "MIT" ]
1
2020-07-13T19:02:26.000Z
2020-07-13T19:02:26.000Z
jet20/backend/solver.py
JTJL/jet20
2dc01ebf937f8501bcfb15c6641c569f8097ccf5
[ "MIT" ]
null
null
null
jet20/backend/solver.py
JTJL/jet20
2dc01ebf937f8501bcfb15c6641c569f8097ccf5
[ "MIT" ]
null
null
null
import torch import time import copy from jet20.backend.constraints import * from jet20.backend.obj import * from jet20.backend.config import * from jet20.backend.core import solve,OPTIMAL,SUB_OPTIMAL,USER_STOPPED import logging logger = logging.getLogger(__name__) class Solution(object): def __init__(self,x...
26.247312
102
0.546907
681
4,882
3.773862
0.161527
0.023346
0.042023
0.020233
0.302335
0.236965
0.185992
0.154864
0.132296
0.083268
0
0.006744
0.331831
4,882
185
103
26.389189
0.781116
0.002868
0
0.255814
0
0
0.042566
0
0
0
0
0
0
1
0.100775
false
0
0.062016
0.007752
0.271318
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16b8038b17e6b43264d1acbee80a12ded5b8d440
1,077
py
Python
tests/test_transforms.py
mengfu188/mmdetection.bak
0bc0ea591b5725468f83f9f48630a1e3ad599303
[ "Apache-2.0" ]
2
2020-07-14T13:55:17.000Z
2021-05-07T11:25:31.000Z
tests/test_transforms.py
mengfu188/mmdetection.bak
0bc0ea591b5725468f83f9f48630a1e3ad599303
[ "Apache-2.0" ]
null
null
null
tests/test_transforms.py
mengfu188/mmdetection.bak
0bc0ea591b5725468f83f9f48630a1e3ad599303
[ "Apache-2.0" ]
null
null
null
import torch from mmdet.datasets.pipelines.transforms import Pad from mmdet.datasets.pipelines.transforms import FilterBox import numpy as np import cv2 def test_pad(): raw = dict( img=np.zeros((200, 401, 3), dtype=np.uint8) ) cv2.imshow('raw', raw['img']) pad = Pad(square=True, pad_val=255) ...
22.914894
57
0.535747
153
1,077
3.653595
0.326797
0.050089
0.060823
0.093023
0.654741
0.593918
0.382826
0.382826
0.382826
0.382826
0
0.099607
0.291551
1,077
46
58
23.413043
0.633028
0.009285
0
0.388889
0
0
0.037559
0
0
0
0
0
0
1
0.055556
false
0
0.138889
0
0.194444
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16ba68b504461ec3bb45c6f18a8ccf9704c15e7e
7,471
py
Python
linprog_curvefit.py
drofp/linprog_curvefit
96ba704edae7cea42d768d7cc6d4036da2ba313a
[ "Apache-2.0" ]
null
null
null
linprog_curvefit.py
drofp/linprog_curvefit
96ba704edae7cea42d768d7cc6d4036da2ba313a
[ "Apache-2.0" ]
3
2019-11-22T08:04:18.000Z
2019-11-26T06:55:36.000Z
linprog_curvefit.py
drofp/linprog_curvefit
96ba704edae7cea42d768d7cc6d4036da2ba313a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """Curve fitting with linear programming. Minimizes the sum of error for each fit point to find the optimal coefficients for a given polynomial. Overview: Objective: Sum of errors Subject to: Bounds on coefficients Credit: "Curve Fitting with Linear Programming", H. Swanson and R. E. ...
39.115183
80
0.674073
1,106
7,471
4.349005
0.191682
0.059459
0.044906
0.043243
0.399584
0.330146
0.302079
0.290437
0.232225
0.220998
0
0.04339
0.21028
7,471
191
81
39.115183
0.771864
0.220988
0
0.203252
0
0
0.070753
0.009107
0
0
0
0.005236
0
1
0.081301
false
0
0.04878
0
0.186992
0.105691
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16bce26f2376d0aa7170df9f650a479bf160647c
11,177
py
Python
build-script-helper.py
aciidb0mb3r/swift-stress-tester
aad9df89d2aae4640e9f4e06c234818c6b3ed434
[ "Apache-2.0" ]
null
null
null
build-script-helper.py
aciidb0mb3r/swift-stress-tester
aad9df89d2aae4640e9f4e06c234818c6b3ed434
[ "Apache-2.0" ]
null
null
null
build-script-helper.py
aciidb0mb3r/swift-stress-tester
aad9df89d2aae4640e9f4e06c234818c6b3ed434
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ This source file is part of the Swift.org open source project Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors Licensed under Apache License v2.0 with Runtime Library Exception See https://swift.org/LICENSE.txt for license information See https://swift.org/CONTRI...
38.277397
204
0.711014
1,524
11,177
5.007874
0.183071
0.041929
0.015723
0.022406
0.380765
0.314858
0.264806
0.238863
0.189072
0.17728
0
0.002782
0.163908
11,177
291
205
38.408935
0.813911
0.131878
0
0.295567
0
0
0.184488
0.036608
0
0
0
0.003436
0
1
0.08867
false
0
0.024631
0.004926
0.17734
0.098522
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16bd3669143df2de8767a9c8bf39a0f217eb03a8
1,701
py
Python
tests/components/deconz/test_scene.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
1
2021-07-08T20:09:55.000Z
2021-07-08T20:09:55.000Z
tests/components/deconz/test_scene.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
47
2021-02-21T23:43:07.000Z
2022-03-31T06:07:10.000Z
tests/components/deconz/test_scene.py
OpenPeerPower/core
f673dfac9f2d0c48fa30af37b0a99df9dd6640ee
[ "Apache-2.0" ]
null
null
null
"""deCONZ scene platform tests.""" from unittest.mock import patch from openpeerpower.components.scene import DOMAIN as SCENE_DOMAIN, SERVICE_TURN_ON from openpeerpower.const import ATTR_ENTITY_ID from .test_gateway import ( DECONZ_WEB_REQUEST, mock_deconz_put_request, setup_deconz_integration, ) async...
27.885246
82
0.627278
206
1,701
4.92233
0.364078
0.076923
0.063116
0.053254
0.282051
0.234714
0.234714
0.136095
0.136095
0.136095
0
0.007098
0.254556
1,701
60
83
28.35
0.792587
0.042328
0
0.04878
0
0
0.111475
0.046557
0
0
0
0
0.121951
1
0
false
0
0.097561
0
0.097561
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16bdc023e7792aee5f95f6dd1ec12e9328dbed08
4,534
py
Python
model.py
iz2late/baseline-seq2seq
2bfa8981083aed8d30befeb42e41fe78d8ec1641
[ "MIT" ]
1
2021-01-06T20:49:32.000Z
2021-01-06T20:49:32.000Z
model.py
iz2late/baseline-seq2seq
2bfa8981083aed8d30befeb42e41fe78d8ec1641
[ "MIT" ]
null
null
null
model.py
iz2late/baseline-seq2seq
2bfa8981083aed8d30befeb42e41fe78d8ec1641
[ "MIT" ]
null
null
null
import random from typing import Tuple import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from torch import Tensor class Encoder(nn.Module): def __init__(self, input_dim, emb_dim, enc_hid_dim, dec_hid_dim, dropout): super().__init__() self.input_dim = in...
37.163934
90
0.635862
600
4,534
4.508333
0.158333
0.055453
0.043253
0.031054
0.330499
0.206654
0.173383
0.136044
0.119039
0.090203
0
0.012639
0.267093
4,534
121
91
37.471074
0.801384
0.021394
0
0.189474
0
0
0
0
0
0
0
0
0
1
0.094737
false
0
0.073684
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16be469a1debb4ce731178e138eb07a68236018a
7,907
py
Python
ML/Pytorch/more_advanced/Seq2Seq/seq2seq.py
xuyannus/Machine-Learning-Collection
6d5dcd18d4e40f90e77355d56a2902e4c617ecbe
[ "MIT" ]
3,094
2020-09-20T04:34:31.000Z
2022-03-31T23:59:46.000Z
ML/Pytorch/more_advanced/Seq2Seq/seq2seq.py
xkhainguyen/Machine-Learning-Collection
425d196e9477dbdbbd7cc0d19d29297571746ab5
[ "MIT" ]
79
2020-09-24T08:54:17.000Z
2022-03-30T14:45:08.000Z
ML/Pytorch/more_advanced/Seq2Seq/seq2seq.py
xkhainguyen/Machine-Learning-Collection
425d196e9477dbdbbd7cc0d19d29297571746ab5
[ "MIT" ]
1,529
2020-09-20T16:21:21.000Z
2022-03-31T21:16:25.000Z
import torch import torch.nn as nn import torch.optim as optim from torchtext.datasets import Multi30k from torchtext.data import Field, BucketIterator import numpy as np import spacy import random from torch.utils.tensorboard import SummaryWriter # to print to tensorboard from utils import translate_sentence, bleu, s...
32.539095
103
0.682433
1,119
7,907
4.651475
0.264522
0.026897
0.021518
0.026513
0.206916
0.191354
0.173487
0.173487
0.1195
0.101441
0
0.012877
0.224105
7,907
242
104
32.673554
0.835534
0.246238
0
0.100719
0
0
0.052071
0.007101
0
0
0
0
0
1
0.057554
false
0
0.071942
0.014388
0.18705
0.021583
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16beddc32cad55aeba19e5840d544ba51efbce38
2,533
py
Python
gail_chatbot/light/sqil/light_sentence_imitate_mixin.py
eublefar/gail_chatbot
fcb7798515c0e2c031b5127803eb8a9f1fd4f0ab
[ "MIT" ]
null
null
null
gail_chatbot/light/sqil/light_sentence_imitate_mixin.py
eublefar/gail_chatbot
fcb7798515c0e2c031b5127803eb8a9f1fd4f0ab
[ "MIT" ]
null
null
null
gail_chatbot/light/sqil/light_sentence_imitate_mixin.py
eublefar/gail_chatbot
fcb7798515c0e2c031b5127803eb8a9f1fd4f0ab
[ "MIT" ]
null
null
null
from typing import Dict, Any, List import string from parlai.core.agents import Agent from parlai.core.message import Message from random import sample import pathlib path = pathlib.Path(__file__).parent.absolute() class LightImitateMixin(Agent): """Abstract class that handles passing expert trajectories alo...
29.8
91
0.586656
280
2,533
5.135714
0.325
0.075104
0.052156
0.069541
0.079277
0.054242
0.054242
0.054242
0.054242
0.054242
0
0.006403
0.321753
2,533
84
92
30.154762
0.830617
0.087248
0
0.081967
0
0
0.025753
0
0
0
0
0
0
1
0.131148
false
0.04918
0.098361
0
0.278689
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16bf4f8f27c28015e220b292e189af4ce08ed99c
4,417
py
Python
httpd.py
whtt8888/TritonHTTPserver
99adf3f1e6c3867bb870cda8434605c59409ea19
[ "MIT" ]
2
2019-04-07T06:11:56.000Z
2019-10-14T05:08:16.000Z
httpd.py
whtt8888/TritonHTTPserver
99adf3f1e6c3867bb870cda8434605c59409ea19
[ "MIT" ]
null
null
null
httpd.py
whtt8888/TritonHTTPserver
99adf3f1e6c3867bb870cda8434605c59409ea19
[ "MIT" ]
null
null
null
import sys import os import socket import time import threading class MyServer: def __init__(self, port, doc_root): self.port = port self.doc_root = doc_root self.host = '127.0.0.1' self.res_200 = "HTTP/1.1 200 OK\r\nServer: Myserver 1.0\r\n" self.res_404 = "HTTP/1.1 404 N...
31.105634
85
0.479511
556
4,417
3.739209
0.30036
0.016354
0.010101
0.013468
0.100048
0.074074
0.064454
0.054834
0.03848
0.027898
0
0.041481
0.388725
4,417
141
86
31.326241
0.728519
0.089427
0
0.189189
0
0.027027
0.1245
0.00675
0
0
0
0
0
1
0.036036
false
0
0.045045
0
0.171171
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16c081effc971dd24b22b938117db5e30575dfca
1,179
py
Python
pf_pweb_sourceman/task/git_repo_man.py
problemfighter/pf-pweb-sourceman
827b1d92ac992ec1495b128e99137aab1cfa09a0
[ "Apache-2.0" ]
null
null
null
pf_pweb_sourceman/task/git_repo_man.py
problemfighter/pf-pweb-sourceman
827b1d92ac992ec1495b128e99137aab1cfa09a0
[ "Apache-2.0" ]
null
null
null
pf_pweb_sourceman/task/git_repo_man.py
problemfighter/pf-pweb-sourceman
827b1d92ac992ec1495b128e99137aab1cfa09a0
[ "Apache-2.0" ]
null
null
null
from git import Repo from pf_pweb_sourceman.common.console import console from pf_py_file.pfpf_file_util import PFPFFileUtil class GitRepoMan: def get_repo_name_from_url(self, url: str): if not url: return None last_slash_index = url.rfind("/") last_suffix_index = url.rfind("...
33.685714
84
0.63274
155
1,179
4.541935
0.348387
0.068182
0.106534
0.042614
0.051136
0
0
0
0
0
0
0.003513
0.275657
1,179
34
85
34.676471
0.820843
0
0
0
0
0
0.066158
0
0
0
0
0
0
1
0.074074
false
0
0.111111
0
0.296296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16c22952eef284ef2bbd4cfa4e2bbaa9380b0ceb
2,969
py
Python
tool/remote_info.py
shanmukmichael/Asset-Discovery-Tool
82c3f2f5cecb394a1ad87b2e504fbef219a466fd
[ "MIT" ]
null
null
null
tool/remote_info.py
shanmukmichael/Asset-Discovery-Tool
82c3f2f5cecb394a1ad87b2e504fbef219a466fd
[ "MIT" ]
null
null
null
tool/remote_info.py
shanmukmichael/Asset-Discovery-Tool
82c3f2f5cecb394a1ad87b2e504fbef219a466fd
[ "MIT" ]
null
null
null
import socket import paramiko import json Hostname = '34.224.2.243' Username = 'ec2-user' key = 'G:/Projects/Python/Asset-Discovery-Tool/tool/s.pem' def is_connected(): try: # connect to the host -- tells us if the host is actually # reachable socket.create_connection(("8.8.8.8", 53)) ...
29.39604
84
0.594139
391
2,969
4.253197
0.322251
0.102225
0.059531
0.023452
0.086591
0.032471
0
0
0
0
0
0.037479
0.209161
2,969
100
85
29.69
0.670784
0.088919
0
0.026316
0
0
0.200297
0.028561
0
0
0
0
0
1
0.039474
false
0.026316
0.039474
0
0.131579
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16c3880f871252c2ad2ebcf1bd3aca25678856cb
16,099
py
Python
hvac/api/secrets_engines/kv_v2.py
Famoco/hvac
cdc1854385dd981de38bcb6350f222a52bcf3923
[ "Apache-2.0" ]
null
null
null
hvac/api/secrets_engines/kv_v2.py
Famoco/hvac
cdc1854385dd981de38bcb6350f222a52bcf3923
[ "Apache-2.0" ]
null
null
null
hvac/api/secrets_engines/kv_v2.py
Famoco/hvac
cdc1854385dd981de38bcb6350f222a52bcf3923
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """KvV2 methods module.""" from hvac import exceptions, utils from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT = 'secret' class KvV2(VaultApiBase): """KV Secrets Engine - Version 2 (API). Reference: https://www.vaultproject.io/api/secret/kv/k...
42.254593
127
0.638611
2,093
16,099
4.794553
0.118968
0.104634
0.020927
0.027902
0.718286
0.667364
0.655805
0.639661
0.614948
0.592725
0
0.005354
0.280639
16,099
380
128
42.365789
0.861152
0.515249
0
0.503597
0
0
0.137899
0.056244
0
0
0
0
0
1
0.093525
false
0
0.014388
0
0.208633
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16c3b1e6ee4edc3e7c6e66622f8ee4afa8a44dad
512
py
Python
android/install-all.py
SaschaWillems/vulkan_slim
642bcf1eaba8bbcb94a8bec61f3454c597af72f9
[ "MIT" ]
28
2017-09-04T18:54:49.000Z
2021-09-18T11:52:04.000Z
android/install-all.py
0xm1nam0/Vulkan
ea726e617f71f5ff5c1503bca134b2a7ad17a1a7
[ "MIT" ]
null
null
null
android/install-all.py
0xm1nam0/Vulkan
ea726e617f71f5ff5c1503bca134b2a7ad17a1a7
[ "MIT" ]
1
2018-07-20T06:51:08.000Z
2018-07-20T06:51:08.000Z
# Install all examples to connected device(s) import subprocess import sys answer = input("Install all vulkan examples to attached device, this may take some time! (Y/N)").lower() == 'y' if answer: BUILD_ARGUMENTS = "" for arg in sys.argv[1:]: if arg == "-validation": BUILD_ARGUMENTS += "-v...
36.571429
111
0.644531
70
512
4.671429
0.628571
0.12844
0
0
0
0
0
0
0
0
0
0.0075
0.21875
512
13
112
39.384615
0.81
0.083984
0
0
0
0
0.385439
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
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
0
0
0
0
0
1
0
16c4d3d9ff39c41395ea4a9779719c084f2fc55a
1,726
py
Python
main.py
juangallostra/moonboard
d4a35857d480ee4bed06faee44e0347e1070b6b8
[ "MIT" ]
null
null
null
main.py
juangallostra/moonboard
d4a35857d480ee4bed06faee44e0347e1070b6b8
[ "MIT" ]
null
null
null
main.py
juangallostra/moonboard
d4a35857d480ee4bed06faee44e0347e1070b6b8
[ "MIT" ]
null
null
null
from generators.ahoughton import AhoughtonGenerator from render_config import RendererConfig from problem_renderer import ProblemRenderer from moonboard import get_moonboard from adapters.default import DefaultProblemAdapter from adapters.crg import CRGProblemAdapter from adapters.ahoughton import AhoughtonAdapter impo...
30.280702
113
0.707995
177
1,726
6.655367
0.293785
0.050934
0.091681
0.078947
0.135823
0.06961
0.06961
0
0
0
0
0.052053
0.209733
1,726
56
114
30.821429
0.811584
0.041715
0
0.204545
0
0
0.074029
0.044903
0
0
0
0
0
1
0.022727
false
0
0.181818
0
0.204545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16c4fdb052f6373448ef88971819f508813eb2d7
5,228
py
Python
GearBot/Util/Pages.py
JohnyTheCarrot/GearBot
8a32bfc79f997a154c9abccbf6742a79fc5257b0
[ "MIT" ]
null
null
null
GearBot/Util/Pages.py
JohnyTheCarrot/GearBot
8a32bfc79f997a154c9abccbf6742a79fc5257b0
[ "MIT" ]
null
null
null
GearBot/Util/Pages.py
JohnyTheCarrot/GearBot
8a32bfc79f997a154c9abccbf6742a79fc5257b0
[ "MIT" ]
null
null
null
import discord from Util import Utils, Emoji, Translator page_handlers = dict() known_messages = dict() def on_ready(bot): load_from_disc() def register(type, init, update, sender_only=False): page_handlers[type] = { "init": init, "update": update, "sender_only": sender_only }...
33.299363
213
0.55394
633
5,228
4.388626
0.203791
0.065515
0.028798
0.024478
0.192585
0.147588
0.11951
0.078474
0.078474
0.078474
0
0.011758
0.333015
5,228
156
214
33.512821
0.784915
0.005547
0
0.176923
0
0.007692
0.084472
0.048105
0
0
0
0
0
1
0.061538
false
0
0.015385
0
0.115385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16c86dba44c4d72104ae5760fa8ff0a89daa4441
5,793
py
Python
src/mazes.py
tim-fi/pyxel_games
3df9d7e1f3d5436d2051db3f5783bdeab916c054
[ "Unlicense" ]
2
2021-04-03T09:49:46.000Z
2021-12-27T19:32:32.000Z
src/mazes.py
tim-fi/pyxel_games
3df9d7e1f3d5436d2051db3f5783bdeab916c054
[ "Unlicense" ]
null
null
null
src/mazes.py
tim-fi/pyxel_games
3df9d7e1f3d5436d2051db3f5783bdeab916c054
[ "Unlicense" ]
null
null
null
from __future__ import annotations from dataclasses import dataclass, field, InitVar from typing import List, Tuple, Iterator, Iterable, Optional from random import choice import pyxel # ------------------------------------------------------- # Types # ------------------------------------------------------- Maze = T...
32.544944
79
0.468324
652
5,793
3.937117
0.174847
0.049864
0.046747
0.049085
0.204908
0.195559
0.147254
0.114141
0.067004
0.067004
0
0.016442
0.359572
5,793
178
80
32.544944
0.675472
0.085793
0
0.153846
0
0
0.002461
0
0
0
0
0
0
1
0.041958
false
0
0.034965
0.006993
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16c9a5ddd1d3e1f33c18bfd269bc6097b27aa5a2
2,281
py
Python
dvc/__init__.py
zjj2wry/dvc
c9df567938eefd7b1f5b094c15f04e5ce704aa36
[ "Apache-2.0" ]
null
null
null
dvc/__init__.py
zjj2wry/dvc
c9df567938eefd7b1f5b094c15f04e5ce704aa36
[ "Apache-2.0" ]
null
null
null
dvc/__init__.py
zjj2wry/dvc
c9df567938eefd7b1f5b094c15f04e5ce704aa36
[ "Apache-2.0" ]
null
null
null
""" DVC ---- Make your data science projects reproducible and shareable. """ import os import warnings VERSION_BASE = '0.23.2' __version__ = VERSION_BASE PACKAGEPATH = os.path.abspath(os.path.dirname(__file__)) HOMEPATH = os.path.dirname(PACKAGEPATH) VERSIONPATH = os.path.join(PACKAGEPATH, 'version.py') def _updat...
32.126761
78
0.702762
312
2,281
4.955128
0.474359
0.027167
0.032988
0.02458
0.087969
0.036223
0
0
0
0
0
0.00432
0.188075
2,281
70
79
32.585714
0.830454
0.361245
0
0.054054
0
0
0.12605
0
0
0
0
0
0
1
0.054054
false
0
0.135135
0
0.243243
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16c9bf4375ba49f6aaa19ea289549cfbf3ed1092
9,092
py
Python
pkg_dir/src/utils/notion_utils.py
robperch/robase_datalysis
343cb59b16630ca776bd941897ab8da63f20bfe1
[ "MIT" ]
2
2022-01-09T19:18:57.000Z
2022-01-09T19:19:04.000Z
pkg_dir/src/utils/notion_utils.py
robperch/robasecode
343cb59b16630ca776bd941897ab8da63f20bfe1
[ "MIT" ]
4
2022-01-17T02:46:24.000Z
2022-02-20T23:04:05.000Z
pkg_dir/src/utils/notion_utils.py
robperch/robasecode
343cb59b16630ca776bd941897ab8da63f20bfe1
[ "MIT" ]
null
null
null
## MODULE WITH UTIL FUNCTIONS - NOTION "----------------------------------------------------------------------------------------------------------------------" ####################################################### Imports ######################################################## "---------------------------------...
30.006601
120
0.569182
1,082
9,092
4.609982
0.186691
0.020449
0.024058
0.018043
0.486367
0.45008
0.417201
0.394346
0.347033
0.318565
0
0.001142
0.229652
9,092
303
121
30.006601
0.711022
0.434558
0
0.197917
0
0
0.271329
0.198862
0
0
0
0
0
1
0.0625
false
0
0.041667
0
0.166667
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
0
0
0
0
1
0
16caf6d3ac2e6621185a4d16c03069163552a572
8,371
py
Python
libpermian/issueanalyzer/test_baseissue.py
velezd/permian
b52189f44c3112ad933a6b1e303a6b30c272651a
[ "MIT" ]
null
null
null
libpermian/issueanalyzer/test_baseissue.py
velezd/permian
b52189f44c3112ad933a6b1e303a6b30c272651a
[ "MIT" ]
9
2022-02-07T14:14:10.000Z
2022-03-22T09:17:16.000Z
libpermian/issueanalyzer/test_baseissue.py
velezd/permian
b52189f44c3112ad933a6b1e303a6b30c272651a
[ "MIT" ]
3
2022-01-20T09:17:39.000Z
2022-03-08T00:35:58.000Z
import unittest import logging import contextlib from libpermian.settings import Settings from .proxy import IssueAnalyzerProxy from .base import BaseAnalyzer, BaseIssue from .issueset import IssueSet LOGGER = logging.getLogger('test') class NewIssue(BaseIssue): def submit(self): LOGGER.info('submit was...
29.896429
79
0.611158
825
8,371
6.121212
0.146667
0.059406
0.023762
0.041188
0.606139
0.556634
0.53604
0.476832
0.403366
0.364951
0
0.002669
0.283957
8,371
279
80
30.003584
0.83984
0.048859
0
0.537118
0
0
0.141725
0.02339
0
0
0
0
0.222707
1
0.148472
false
0
0.030568
0.021834
0.305677
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16cb0577b93ac4b27ff6f443a2d517ea18cbf9f7
6,421
py
Python
naplib/alignment/prosodylab_aligner/__main__.py
gavinmischler/naplib-python
8cd7a0fc700f1c07243169ec42fc087955885adc
[ "MIT" ]
1
2022-03-02T20:54:23.000Z
2022-03-02T20:54:23.000Z
naplib/alignment/prosodylab_aligner/__main__.py
gavinmischler/gavlib
cacf9180b1442e4aed98b6182d586747a6d6ef90
[ "MIT" ]
null
null
null
naplib/alignment/prosodylab_aligner/__main__.py
gavinmischler/gavlib
cacf9180b1442e4aed98b6182d586747a6d6ef90
[ "MIT" ]
null
null
null
# Copyright (c) 2011-2014 Kyle Gorman and Michael Wagner # # 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,...
40.13125
102
0.68167
818
6,421
5.295844
0.332518
0.027932
0.022161
0.009695
0.096491
0.063712
0.015235
0
0
0
0
0.001961
0.205731
6,421
159
103
40.383648
0.847451
0.2456
0
0.055046
0
0
0.202748
0.004371
0
0
0
0
0
1
0
false
0
0.110092
0
0.110092
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16cc459343115a5e0d636bad4bf667af5c4f5d6d
4,021
py
Python
init/build_statements.py
andgein/sis-2017-winter-olymp
e6cf290ab2c24a22ca76949895e2a6cc6d818dc0
[ "MIT" ]
null
null
null
init/build_statements.py
andgein/sis-2017-winter-olymp
e6cf290ab2c24a22ca76949895e2a6cc6d818dc0
[ "MIT" ]
null
null
null
init/build_statements.py
andgein/sis-2017-winter-olymp
e6cf290ab2c24a22ca76949895e2a6cc6d818dc0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import codecs import os import os.path import shutil import subprocess import logging import glob import json CONTEST_DIR = 'polygon-contest' INIT_FILE = 'init.txt' BUILD_DIR = 'build' LANGUAGE = 'russian' FILES_DIR = 'files-' + LANGUAGE def time_limit_from_int(tl): tl //= 1000 return...
39.038835
123
0.607063
503
4,021
4.652087
0.254473
0.035897
0.042735
0.025641
0.124786
0.061538
0
0
0
0
0
0.006861
0.238747
4,021
102
124
39.421569
0.757596
0.005223
0
0
0
0
0.167042
0.005751
0
0
0
0
0
1
0.05
false
0
0.1
0.0125
0.175
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16cef8471ab7389079cb6001c00f1c83826a7643
1,546
py
Python
pyvips/error.py
kleisauke/pyvips
ae3b0c09669cfb662e773e8ae69cf589ac15e320
[ "MIT" ]
null
null
null
pyvips/error.py
kleisauke/pyvips
ae3b0c09669cfb662e773e8ae69cf589ac15e320
[ "MIT" ]
null
null
null
pyvips/error.py
kleisauke/pyvips
ae3b0c09669cfb662e773e8ae69cf589ac15e320
[ "MIT" ]
null
null
null
# errors from libvips import sys import logging from pyvips import ffi, vips_lib logger = logging.getLogger(__name__) _is_PY3 = sys.version_info[0] == 3 if _is_PY3: text_type = str else: text_type = unicode ffi.cdef(''' const char* vips_error_buffer (void); void vips_error_clear (void); ''') de...
20.891892
76
0.638422
226
1,546
4.159292
0.376106
0.038298
0.014894
0.023404
0.048936
0.048936
0
0
0
0
0
0.008696
0.256145
1,546
73
77
21.178082
0.808696
0.312419
0
0.058824
0
0
0.127872
0
0
0
0
0
0
1
0.117647
false
0
0.088235
0.029412
0.323529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16d13aced6b20979dea691425018aa9f0ea80fb3
3,168
py
Python
test/examples/integrated/codec/vip/vip_agent.py
rodrigomelo9/uvm-python
e3127eba2cc1519a61dc6f736d862a8dcd6fce20
[ "Apache-2.0" ]
140
2020-01-18T00:14:17.000Z
2022-03-29T10:57:24.000Z
test/examples/integrated/codec/vip/vip_agent.py
Mohsannaeem/uvm-python
1b8768a1358d133465ede9cadddae651664b1d53
[ "Apache-2.0" ]
24
2020-01-18T18:40:58.000Z
2021-03-25T17:39:07.000Z
test/examples/integrated/codec/vip/vip_agent.py
Mohsannaeem/uvm-python
1b8768a1358d133465ede9cadddae651664b1d53
[ "Apache-2.0" ]
34
2020-01-18T12:22:59.000Z
2022-02-11T07:03:11.000Z
#// #// ------------------------------------------------------------- #// Copyright 2011 Synopsys, Inc. #// Copyright 2019-2020 Tuomas Poikela (tpoikela) #// All Rights Reserved Worldwide #// #// Licensed under the Apache License, Version 2.0 (the #// "License"); you may not use this file except in #//...
33
96
0.606376
400
3,168
4.6125
0.3475
0.063415
0.068293
0.045528
0.226558
0.17561
0.083469
0.04336
0.04336
0.04336
0
0.00708
0.242109
3,168
95
97
33.347368
0.761349
0.278093
0
0.156863
0
0
0.065929
0
0
0
0
0
0
1
0.058824
false
0
0.078431
0
0.156863
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16d2ceeba676dbb491a1206466347e8ee17c6418
2,485
py
Python
source/code/build-instance-scheduler-template.py
liangruibupt/aws-instance-scheduler
a4e46eec9f39c2e3b95c5bcbe32c036e239d6066
[ "Apache-2.0" ]
null
null
null
source/code/build-instance-scheduler-template.py
liangruibupt/aws-instance-scheduler
a4e46eec9f39c2e3b95c5bcbe32c036e239d6066
[ "Apache-2.0" ]
null
null
null
source/code/build-instance-scheduler-template.py
liangruibupt/aws-instance-scheduler
a4e46eec9f39c2e3b95c5bcbe32c036e239d6066
[ "Apache-2.0" ]
1
2021-04-09T15:01:49.000Z
2021-04-09T15:01:49.000Z
###################################################################################################################### # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
59.166667
118
0.464789
224
2,485
5.044643
0.464286
0.106195
0.070796
0.084956
0.178761
0.069027
0
0
0
0
0
0.00953
0.3666
2,485
41
119
60.609756
0.708386
0.433803
0
0
0
0
0.076707
0
0
0
0
0
0
1
0.1
false
0
0.15
0
0.3
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16d306bdfaed88804b418d267e2c9f7fdd6fab73
7,965
py
Python
src/parse.py
StanfordAHA/Configuration
a5d404433d32b0ac20544d5bafa9422c979afc16
[ "BSD-3-Clause" ]
null
null
null
src/parse.py
StanfordAHA/Configuration
a5d404433d32b0ac20544d5bafa9422c979afc16
[ "BSD-3-Clause" ]
null
null
null
src/parse.py
StanfordAHA/Configuration
a5d404433d32b0ac20544d5bafa9422c979afc16
[ "BSD-3-Clause" ]
null
null
null
############################################################################### # file -- parse.py -- # Top contributors (to current version): # Nestan Tsiskaridze # This file is part of the configuration finder for the Stanford AHA project. # Copyright (c) 2021 by the authors listed in the file AUTHORS # in th...
40.431472
129
0.417075
836
7,965
3.825359
0.2189
0.030644
0.045028
0.030019
0.417136
0.324891
0.282051
0.252658
0.205754
0.205754
0
0.024121
0.453484
7,965
196
130
40.637755
0.710544
0.099309
0
0.422078
0
0
0.030593
0.014868
0
0
0
0
0.019481
1
0.006494
false
0
0.064935
0
0.155844
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16d53c81f0a6c59b031bb33f8b48778a56657258
7,180
py
Python
aqt/installer.py
pylipp/aqtinstall
e08667cb5c9ced27994c4cde16d0c1b4a4386455
[ "MIT" ]
null
null
null
aqt/installer.py
pylipp/aqtinstall
e08667cb5c9ced27994c4cde16d0c1b4a4386455
[ "MIT" ]
null
null
null
aqt/installer.py
pylipp/aqtinstall
e08667cb5c9ced27994c4cde16d0c1b4a4386455
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (C) 2018 Linus Jahn <lnj@kaidan.im> # Copyright (C) 2019,2020 Hiroshi Miura <miurahr@linux.com> # Copyright (C) 2020, Aurélien Gâteau # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software...
40.111732
110
0.608635
888
7,180
4.833333
0.342342
0.037279
0.020503
0.009087
0.063374
0.047064
0.047064
0.034483
0.020969
0.020969
0
0.009827
0.291365
7,180
178
111
40.337079
0.833726
0.187187
0
0.117647
0
0
0.070442
0
0
0
0
0
0
1
0.058824
false
0.007353
0.110294
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16d68949a023a20451569c4bd42476cab180bd99
5,398
py
Python
pax/_src/core/utility_modules.py
NTT123/pax
b80e1e4b6bfb763afd6b4fdefa31a051ca8a3335
[ "MIT" ]
11
2021-08-28T17:45:38.000Z
2022-01-26T17:50:03.000Z
pax/_src/core/utility_modules.py
NTT123/pax
b80e1e4b6bfb763afd6b4fdefa31a051ca8a3335
[ "MIT" ]
1
2021-09-13T17:29:33.000Z
2021-09-13T21:50:34.000Z
pax/_src/core/utility_modules.py
NTT123/pax
b80e1e4b6bfb763afd6b4fdefa31a051ca8a3335
[ "MIT" ]
null
null
null
"""Utility Modules.""" from typing import Any, Callable, Dict, List, Optional, Sequence, TypeVar, Union import jax import jax.numpy as jnp from .module import Module, parameters_method T = TypeVar("T", bound=Module) O = TypeVar("O") class ParameterModule(Module): """A PAX module that registers attributes as ...
29.659341
91
0.582994
682
5,398
4.460411
0.249267
0.031558
0.025312
0.014464
0.219921
0.176857
0.142998
0.095003
0.068047
0.068047
0
0.008729
0.278436
5,398
181
92
29.823204
0.767137
0.368099
0
0.168831
0
0
0.084248
0.016462
0
0
0
0
0.012987
1
0.12987
false
0
0.051948
0.025974
0.402597
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16d80d08df5b20660db28d091611ed67b6dfa076
2,026
py
Python
NoiseFiltersPy/Injector.py
TVect/NoiseFiltersPy
fff1f3113cf9b3e7b8de65421ab9951fd3cb11e5
[ "MIT" ]
6
2019-11-20T19:32:41.000Z
2021-06-25T19:47:26.000Z
NoiseFiltersPy/Injector.py
TVect/NoiseFiltersPy
fff1f3113cf9b3e7b8de65421ab9951fd3cb11e5
[ "MIT" ]
null
null
null
NoiseFiltersPy/Injector.py
TVect/NoiseFiltersPy
fff1f3113cf9b3e7b8de65421ab9951fd3cb11e5
[ "MIT" ]
1
2021-06-25T19:47:34.000Z
2021-06-25T19:47:34.000Z
import numpy as np import pandas as pd from abc import ABC class Injector(ABC): """Base class for the injectors of artificial noise. Attributes ---------- rem_indx : :obj:`List` Removed indexes (rows) from the dataset after the filtering. parameters : :obj:`Dict` Parameters used ...
30.238806
110
0.600197
248
2,026
4.75
0.407258
0.067912
0.03056
0.025467
0.074703
0.04584
0
0
0
0
0
0.009059
0.291708
2,026
67
111
30.238806
0.811847
0.239882
0
0.114286
0
0
0.069226
0
0
0
0
0
0
1
0.142857
false
0
0.085714
0.057143
0.314286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16d86786252483bb0df3775ba6255b1dd3edd2a1
2,181
py
Python
src/app.py
gh640/coding-challenge
3be31d643ac081bfec3495cb8f705c400be82553
[ "MIT" ]
null
null
null
src/app.py
gh640/coding-challenge
3be31d643ac081bfec3495cb8f705c400be82553
[ "MIT" ]
2
2017-11-17T03:14:45.000Z
2019-10-19T07:17:22.000Z
src/app.py
gh640/coding-challenge
3be31d643ac081bfec3495cb8f705c400be82553
[ "MIT" ]
1
2017-11-16T09:33:38.000Z
2017-11-16T09:33:38.000Z
# coding: utf-8 '''フロントコントローラを提供する ''' from math import ceil import os from flask import json from flask import Flask from flask import request from flask import send_from_directory from flask import render_template # from json_loader import load_locations # from json_loader import prepare_locations from models imp...
23.706522
79
0.629069
262
2,181
5.026718
0.339695
0.036446
0.056948
0.060744
0.095672
0.095672
0.047077
0
0
0
0
0.003041
0.246217
2,181
91
80
23.967033
0.798054
0.056855
0
0.034483
0
0
0.11236
0
0
0
0
0
0
1
0.068966
false
0
0.137931
0.034483
0.293103
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16d86a94620baf9944e6bd338662eefcd3ab573e
2,180
py
Python
corkus/objects/dungeon.py
MrBartusek/corkus.py
031c11e3e251f0bddbcb67415564357460fe7fea
[ "MIT" ]
5
2021-09-10T14:20:15.000Z
2022-01-09T11:27:49.000Z
corkus/objects/dungeon.py
MrBartusek/corkus.py
031c11e3e251f0bddbcb67415564357460fe7fea
[ "MIT" ]
11
2021-08-15T09:39:09.000Z
2022-01-12T14:11:24.000Z
corkus/objects/dungeon.py
MrBartusek/corkus.py
031c11e3e251f0bddbcb67415564357460fe7fea
[ "MIT" ]
2
2021-12-01T23:33:14.000Z
2022-01-12T11:08:18.000Z
from __future__ import annotations from .base import CorkusBase from enum import Enum class DungeonType(Enum): REMOVED = "REMOVED" """Dungeons that were removed from the game in version ``1.14.1`` like ``Skeleton`` or ``Spider``""" REMOVED_MINI = "REMOVED_MINI" """Minidungeons that were reworked in ve...
34.0625
113
0.580734
230
2,180
5.443478
0.430435
0.038339
0.040735
0.033546
0.051118
0.051118
0
0
0
0
0
0.005161
0.288991
2,180
63
114
34.603175
0.802581
0.129358
0
0.12766
0
0
0.224868
0.017857
0
0
0
0
0
1
0.085106
false
0
0.06383
0.021277
0.425532
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16dc5aa7f7c7413a9e340c8bb600ebd849d60e67
2,897
py
Python
hale_hub/outlet_interface.py
tantinlala/hale-hub
da2e6d24e3869ee533d2e272ce87b9e7eede9a79
[ "MIT" ]
null
null
null
hale_hub/outlet_interface.py
tantinlala/hale-hub
da2e6d24e3869ee533d2e272ce87b9e7eede9a79
[ "MIT" ]
null
null
null
hale_hub/outlet_interface.py
tantinlala/hale-hub
da2e6d24e3869ee533d2e272ce87b9e7eede9a79
[ "MIT" ]
null
null
null
import serial import serial.tools.list_ports from hale_hub.constants import STARTING_OUTLET_COMMAND, SERIAL_BAUD_RATE, SERIAL_TIMEOUT from hale_hub.ifttt_logger import send_ifttt_log class _Outlet: def __init__(self, name): self.state = 0 self.name = name class _OutletInterface: def __init__...
41.385714
123
0.706593
376
2,897
5.055851
0.191489
0.088375
0.099947
0.069963
0.295108
0.295108
0.269858
0.224619
0.224619
0.224619
0
0.00522
0.20642
2,897
69
124
41.985507
0.821662
0
0
0.160714
0
0
0.063514
0
0
0
0
0
0
1
0.160714
false
0
0.071429
0.017857
0.285714
0.053571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16dcdf8ea3ba055a8650580e31092f4149c84a27
3,233
py
Python
helix/core.py
carbonscott/helix
e2ee6e1293cae4f0bd1220ed5a41268d20a095db
[ "MIT" ]
null
null
null
helix/core.py
carbonscott/helix
e2ee6e1293cae4f0bd1220ed5a41268d20a095db
[ "MIT" ]
null
null
null
helix/core.py
carbonscott/helix
e2ee6e1293cae4f0bd1220ed5a41268d20a095db
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np def remove_nan(xyzs): return xyzs[~np.isnan(xyzs).any(axis = 1)] def measure_twocores(core_xyz_ref, core_xyz_tar): ''' Measure the following aspects of two helical cores. - Interhelical distance vector between the centers. - Inte...
33.677083
78
0.683266
531
3,233
3.819209
0.19209
0.117357
0.083826
0.073965
0.619822
0.604043
0.604043
0.579882
0.566075
0.566075
0
0.015336
0.213424
3,233
95
79
34.031579
0.782147
0.275905
0
0.347826
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0.021739
0.021739
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16dd18d4c9d6b529392f25ddf3a0704445995def
675
py
Python
matury/2011/6.py
bartekpacia/informatyka-frycz
6fdbbdea0c6b6a710378f22e90d467c9f91e64aa
[ "MIT" ]
2
2021-03-06T22:09:44.000Z
2021-03-14T14:41:03.000Z
matury/2011/6.py
bartekpacia/informatyka-frycz
6fdbbdea0c6b6a710378f22e90d467c9f91e64aa
[ "MIT" ]
1
2020-03-25T15:42:47.000Z
2020-10-06T21:41:14.000Z
matury/2011/6.py
bartekpacia/informatyka-frycz
6fdbbdea0c6b6a710378f22e90d467c9f91e64aa
[ "MIT" ]
null
null
null
from typing import List with open("dane/liczby.txt") as f: nums: List[int] = [] nums_9_chars: List[int] = [] for line in f: sline = line.strip() num = int(sline, 2) if len(sline) == 9: nums_9_chars.append(num) nums.append(num) count_even = 0 max_num = 0 for n...
20.454545
96
0.58963
117
675
3.196581
0.324786
0.112299
0.106952
0.048128
0.069519
0
0
0
0
0
0
0.042169
0.262222
675
32
97
21.09375
0.708835
0
0
0
0
0.043478
0.248889
0.032593
0
0
0
0
0
1
0
false
0
0.043478
0
0.043478
0.130435
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16de052924f6b7a0503a267b4aaeda1587303cff
3,681
py
Python
src/model/ParseInput.py
slavi010/polyhash-2020
a11aa694fbf901be4f4db565cb09800f8f57eae7
[ "MIT" ]
null
null
null
src/model/ParseInput.py
slavi010/polyhash-2020
a11aa694fbf901be4f4db565cb09800f8f57eae7
[ "MIT" ]
null
null
null
src/model/ParseInput.py
slavi010/polyhash-2020
a11aa694fbf901be4f4db565cb09800f8f57eae7
[ "MIT" ]
null
null
null
import os from typing import List from src.model.Etape import Etape from src.model.Grille import Grille from src.model.ItemCase import ItemCase from src.model.PointMontage import PointMontage from src.model.Robot import Robot from src.model.Tache import Tache class ParseInput: """Parser qui permet de lire le fic...
40.9
123
0.594947
470
3,681
4.525532
0.323404
0.072402
0.03385
0.018336
0.082746
0.026328
0
0
0
0
0
0.01247
0.32464
3,681
90
124
40.9
0.843121
0.265145
0
0.0625
0
0
0.000753
0
0
0
0
0
0.020833
1
0.041667
false
0.020833
0.166667
0
0.270833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16e1f96bcb5b1ba1faf14b289b7309040c63b043
1,619
py
Python
homework_1/tests/test_3.py
mag-id/epam_python_autumn_2020
2488817ba039f5722030a23edc97abe9f70a9a30
[ "MIT" ]
null
null
null
homework_1/tests/test_3.py
mag-id/epam_python_autumn_2020
2488817ba039f5722030a23edc97abe9f70a9a30
[ "MIT" ]
null
null
null
homework_1/tests/test_3.py
mag-id/epam_python_autumn_2020
2488817ba039f5722030a23edc97abe9f70a9a30
[ "MIT" ]
null
null
null
""" Unit tests for module `homework_1.tasks.task_3`. """ from tempfile import NamedTemporaryFile from typing import Tuple import pytest from homework_1.tasks.task_3 import find_maximum_and_minimum @pytest.mark.parametrize( ["file_content", "expected_result"], [ pytest.param( "0\n", ...
29.436364
87
0.542928
251
1,619
3.398406
0.310757
0.021102
0.065651
0.098476
0.341149
0.267292
0.126612
0.126612
0.126612
0.126612
0
0.104363
0.277949
1,619
54
88
29.981481
0.625321
0.155034
0
0.307692
0
0.102564
0.28132
0.139535
0
0
0
0
0.025641
1
0.025641
false
0
0.102564
0
0.128205
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16e747bd6febb0a03dbe8fb17268efc47ff0c0ee
7,999
py
Python
transitfeed/transfer.py
cclauss/transitfeed
54a4081b59bfa015d5f0405b68203e61762d4a52
[ "Apache-2.0" ]
9
2015-07-21T17:41:25.000Z
2020-08-26T13:37:08.000Z
transitfeed/transfer.py
cclauss/transitfeed
54a4081b59bfa015d5f0405b68203e61762d4a52
[ "Apache-2.0" ]
4
2015-06-11T18:40:16.000Z
2020-04-03T20:31:40.000Z
transitfeed/transfer.py
cclauss/transitfeed
54a4081b59bfa015d5f0405b68203e61762d4a52
[ "Apache-2.0" ]
4
2016-02-09T21:45:50.000Z
2020-07-30T21:52:50.000Z
#!/usr/bin/python2.5 # Copyright (C) 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
40.811224
91
0.665833
960
7,999
5.34375
0.248958
0.072515
0.081871
0.066667
0.288499
0.218713
0.168031
0.137622
0.111891
0.111891
0
0.010007
0.262908
7,999
195
92
41.020513
0.860075
0.1989
0
0.26087
0
0
0.076766
0
0
0
0
0
0
1
0.108696
false
0.014493
0.021739
0.007246
0.289855
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16e7d64f5a23705a73ced1fae75f2e7697ae34b2
2,067
py
Python
social/urls.py
Kizito-Alberrt/insta-social
c632e901cd81b0b139f88ad55236efd6c7ddbef1
[ "MIT" ]
null
null
null
social/urls.py
Kizito-Alberrt/insta-social
c632e901cd81b0b139f88ad55236efd6c7ddbef1
[ "MIT" ]
null
null
null
social/urls.py
Kizito-Alberrt/insta-social
c632e901cd81b0b139f88ad55236efd6c7ddbef1
[ "MIT" ]
null
null
null
from django.urls import path from . import views from . views import UserPostListView, PostDetailView, PostDeleteview, PostCreateView, PostUpdateView,CommentUpdateView, VideoCreateView, video_update urlpatterns = [ path('',views.base, name='base'), path('login',views.login, name='login'), path('register',v...
43.0625
149
0.701016
258
2,067
5.445736
0.178295
0.034164
0.05694
0.037011
0
0
0
0
0
0
0
0
0.111756
2,067
47
150
43.978723
0.765251
0.029511
0
0
0
0
0.301548
0.03345
0
0
0
0
0
1
0
false
0
0.09375
0
0.09375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16e8783047883ecc17068c1f63c87b161a271a5f
1,054
py
Python
vtkplotter_examples/other/dolfin/collisions.py
ismarou/vtkplotter-examples
1eefcc026be169ab7a77a5bce6dec8044c33b554
[ "MIT" ]
4
2020-07-30T02:38:29.000Z
2021-09-12T14:30:18.000Z
vtkplotter_examples/other/dolfin/collisions.py
ismarou/vtkplotter-examples
1eefcc026be169ab7a77a5bce6dec8044c33b554
[ "MIT" ]
null
null
null
vtkplotter_examples/other/dolfin/collisions.py
ismarou/vtkplotter-examples
1eefcc026be169ab7a77a5bce6dec8044c33b554
[ "MIT" ]
null
null
null
''' compute_collision() will compute the collision of all the entities with a Point while compute_first_collision() will always return its first entry. Especially if a point is on an element edge this can be tricky. You may also want to compare with the Cell.contains(Point) tool. ''' # Script by Rudy at https://fenicsp...
35.133333
75
0.705882
156
1,054
4.685897
0.532051
0.038304
0.049248
0.06156
0.057456
0
0
0
0
0
0
0.013158
0.134725
1,054
29
76
36.344828
0.788377
0.385199
0
0
0
0
0.08557
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
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
0
0
0
0
1
0
16e8943240219eac91364d8b6c27599e32680763
622
py
Python
alice_check_train/__main__.py
AsciiShell/Alice-Check-Train
49d5804d28a237756a7cf27e451ff56166fbee5c
[ "MIT" ]
null
null
null
alice_check_train/__main__.py
AsciiShell/Alice-Check-Train
49d5804d28a237756a7cf27e451ff56166fbee5c
[ "MIT" ]
null
null
null
alice_check_train/__main__.py
AsciiShell/Alice-Check-Train
49d5804d28a237756a7cf27e451ff56166fbee5c
[ "MIT" ]
null
null
null
import datetime import os from alice_check_train.main import rasp_to_text from alice_check_train.rasp_api import get_rasp, filter_rasp def main(): key = os.getenv('RASP_KEY') station_from = os.getenv('STATION_FROM') station_to = os.getenv('STATION_TO') date = datetime.date.today().strftime('%Y-%m-%d'...
25.916667
65
0.688103
90
622
4.444444
0.422222
0.06
0.07
0.095
0
0
0
0
0
0
0
0.029354
0.178457
622
23
66
27.043478
0.753425
0
0
0
0
0
0.130225
0
0
0
0
0
0
1
0.058824
false
0
0.235294
0
0.294118
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
0
0
0
0
0
0
0
0
1
0
16e89821c774aa40fe5b74ea387488fc99280078
7,309
py
Python
aws-KNN-RESTful.py
cakebytheoceanLuo/k-NN
52c66b5e38490431b3079c2baaad38785802f4e5
[ "Apache-2.0" ]
1
2021-11-16T13:22:09.000Z
2021-11-16T13:22:09.000Z
aws-KNN-RESTful.py
cakebytheoceanLuo/k-NN
52c66b5e38490431b3079c2baaad38785802f4e5
[ "Apache-2.0" ]
null
null
null
aws-KNN-RESTful.py
cakebytheoceanLuo/k-NN
52c66b5e38490431b3079c2baaad38785802f4e5
[ "Apache-2.0" ]
null
null
null
# https://medium.com/@kumon/how-to-realize-similarity-search-with-elasticsearch-3dd5641b9adb # https://docs.aws.amazon.com/opensearch-service/latest/developerguide/knn.html import sys import requests import h5py import numpy as np import json import aiohttp import asyncio import time import httpx from requests.auth imp...
33.374429
142
0.675332
1,021
7,309
4.657199
0.225269
0.022713
0.04164
0.043533
0.3796
0.34448
0.283912
0.260358
0.19306
0.148055
0
0.03303
0.159119
7,309
218
143
33.527523
0.740644
0.255028
0
0.150327
0
0.013072
0.261644
0.052886
0
0
0
0
0.078431
1
0
false
0
0.071895
0
0.071895
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0