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
7c203ac0f48d46b7efacaa17d6e53845b02eb976
7,512
py
Python
cms/tests/test_views.py
Ibrahem3amer/bala7
70638c121ea85ff0e6a650c5f2641b0b3b04d6d0
[ "Apache-2.0" ]
null
null
null
cms/tests/test_views.py
Ibrahem3amer/bala7
70638c121ea85ff0e6a650c5f2641b0b3b04d6d0
[ "Apache-2.0" ]
null
null
null
cms/tests/test_views.py
Ibrahem3amer/bala7
70638c121ea85ff0e6a650c5f2641b0b3b04d6d0
[ "Apache-2.0" ]
null
null
null
from django.core.urlresolvers import resolve from django.urls import reverse from django.test import TestCase, RequestFactory from django.http import HttpRequest, Http404 from django.contrib.auth.models import User from unittest import skip from users.models import University, Faculty, Department, UserProfile from cms....
36.823529
117
0.651092
914
7,512
5.221007
0.12035
0.059933
0.042749
0.01907
0.836337
0.774728
0.741199
0.733655
0.683152
0.624686
0
0.017413
0.23549
7,512
203
118
37.004926
0.813512
0.054047
0
0.618321
0
0
0.097426
0.009333
0
0
0
0
0.10687
1
0.10687
false
0.083969
0.068702
0
0.198473
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
6
7c20c3110a71ede08c1358d9822f7b43bb07338f
4,903
py
Python
3D/Train_Module_3D.py
geometatqueens/RCNN
2e1e67264969f05a2f554595577dfb1025938245
[ "Unlicense" ]
1
2020-04-30T21:31:59.000Z
2020-04-30T21:31:59.000Z
3D/Train_Module_3D.py
geometatqueens/RCNN
2e1e67264969f05a2f554595577dfb1025938245
[ "Unlicense" ]
null
null
null
3D/Train_Module_3D.py
geometatqueens/RCNN
2e1e67264969f05a2f554595577dfb1025938245
[ "Unlicense" ]
null
null
null
"""The present code is the Version 1.0 of the RCNN approach to perform MPS in 3D for categorical variables. It has been developed by S. Avalos and J. Ortiz in the Geometallurygical Group at Queen's University as part of a PhD program. The code is not free of bugs but running end-to-end. Any comments and further i...
53.879121
343
0.713237
743
4,903
4.585464
0.312248
0.16789
0.017611
0.056355
0.377458
0.356325
0.335192
0.335192
0.335192
0.267684
0
0.048894
0.124006
4,903
91
344
53.879121
0.744354
0.373241
0
0.172414
0
0.034483
0.151505
0.088577
0
0
0
0
0
1
0
false
0
0.103448
0
0.103448
0.155172
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c21319778186a2abea07c3db5dcc502d14e209f
1,306
py
Python
feature_flags_project/feature_flags/providers.py
steuke/django_feature_flags_example
00e33378999d6d567c37593c17289405fc7b5847
[ "MIT" ]
null
null
null
feature_flags_project/feature_flags/providers.py
steuke/django_feature_flags_example
00e33378999d6d567c37593c17289405fc7b5847
[ "MIT" ]
3
2021-09-22T18:56:38.000Z
2021-11-29T16:11:59.000Z
feature_flags_project/feature_flags/providers.py
steuke/django_feature_flags_example
00e33378999d6d567c37593c17289405fc7b5847
[ "MIT" ]
null
null
null
import logging from typing import Dict from django.http import HttpRequest logger = logging.getLogger(__name__) class FeatureFlagProvider: def is_feature_enabled(self, feature_name: str, user_id: str = None, attributes: Dict = None): raise NotImplementedError("You must override FeatureFlagProvider.is_fe...
32.65
100
0.712098
153
1,306
5.856209
0.346405
0.073661
0.071429
0.042411
0.060268
0
0
0
0
0
0
0
0.20827
1,306
39
101
33.487179
0.866538
0
0
0.193548
0
0
0.20827
0.030628
0
0
0
0
0
1
0.096774
false
0
0.129032
0
0.387097
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c2377aec1cdd1edd01522b34885f68b9680468a
82
py
Python
src/app/database/__init__.py
roch1990/aiohttp-blog
32e7b76b5b293d4517631ea82dfa2b268a1662eb
[ "MIT" ]
20
2020-02-29T19:03:31.000Z
2022-02-18T21:13:12.000Z
src/app/database/__init__.py
roch1990/aiohttp-blog
32e7b76b5b293d4517631ea82dfa2b268a1662eb
[ "MIT" ]
465
2020-02-29T19:08:18.000Z
2022-03-18T22:21:49.000Z
src/app/database/__init__.py
roch1990/aiohttp-blog
32e7b76b5b293d4517631ea82dfa2b268a1662eb
[ "MIT" ]
26
2020-11-26T09:00:03.000Z
2022-02-16T04:20:53.000Z
from sqlalchemy.ext.declarative import declarative_base Base = declarative_base()
27.333333
55
0.853659
10
82
6.8
0.6
0.441176
0
0
0
0
0
0
0
0
0
0
0.085366
82
3
56
27.333333
0.906667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
7c23d8601d0a15002cc4ed3c1cea741aa47089e1
34,227
py
Python
src/plottoolbox/functions/kde.py
timcera/plottoolbox
b5f4b634d366eb5ba244e2f1fd33a7ef0eba7298
[ "BSD-3-Clause" ]
null
null
null
src/plottoolbox/functions/kde.py
timcera/plottoolbox
b5f4b634d366eb5ba244e2f1fd33a7ef0eba7298
[ "BSD-3-Clause" ]
6
2021-09-06T21:26:12.000Z
2022-03-30T11:55:56.000Z
src/plottoolbox/functions/kde.py
timcera/plottoolbox
b5f4b634d366eb5ba244e2f1fd33a7ef0eba7298
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Collection of functions for the manipulation of time series.""" from __future__ import absolute_import, division, print_function import itertools import os import warnings import mando import numpy as np import pandas as pd from mando.rst_text_formatter import RSTHelpFormatter from tstoolb...
29.918706
100
0.530984
3,699
34,227
4.785347
0.148418
0.01949
0.019321
0.013672
0.402011
0.351393
0.322581
0.298853
0.274109
0.257726
0
0.005824
0.322815
34,227
1,143
101
29.944882
0.757874
0.563327
0
0.440909
0
0
0.040892
0
0
0
0
0
0
1
0.004545
false
0
0.029545
0
0.036364
0.002273
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c241e9ea6651f1832b530bacf0b946a3f610e8c
2,255
py
Python
src/models/GNN.py
3verlyn/DL-abstract-argumentation
885e442077f5f8e576092c6648077e00ceb79dff
[ "MIT" ]
6
2020-05-01T10:04:16.000Z
2021-12-12T06:35:00.000Z
src/models/GNN.py
3verlyn/DL-abstract-argumentation
885e442077f5f8e576092c6648077e00ceb79dff
[ "MIT" ]
3
2020-05-01T09:58:16.000Z
2021-12-05T09:24:42.000Z
src/models/GNN.py
3verlyn/DL-abstract-argumentation
885e442077f5f8e576092c6648077e00ceb79dff
[ "MIT" ]
3
2021-12-01T12:09:40.000Z
2022-03-08T07:35:10.000Z
from collections import OrderedDict import torch import torch.nn as nn from torch_geometric.data.batch import Batch class GNN(nn.Module): def __init__(self, mp_steps, **config): super().__init__() self.mp_steps = mp_steps self.update_fns = self.assign_update_fns() self.readout_fns...
32.214286
91
0.613747
254
2,255
5.259843
0.314961
0.047156
0.032934
0.022455
0.050898
0.050898
0
0
0
0
0
0.000627
0.292683
2,255
69
92
32.681159
0.836991
0.092683
0
0.085106
0
0
0.049975
0
0
0
0
0
0
1
0.12766
false
0
0.085106
0
0.297872
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c247e4df77036ee1f8b8a7c4396fc03bed606ad
977
py
Python
configs/baselines/DACN/GNN/GCN_res_layer.py
vivek-r-2000/BoundaryNet
fce8d51a516646c1001116d03872dbba9e4c5082
[ "MIT" ]
17
2021-06-07T12:30:23.000Z
2022-03-07T06:32:25.000Z
configs/baselines/DACN/GNN/GCN_res_layer.py
vivek-r-2000/BoundaryNet
fce8d51a516646c1001116d03872dbba9e4c5082
[ "MIT" ]
2
2021-07-13T13:24:14.000Z
2022-03-08T07:21:09.000Z
configs/baselines/DACN/GNN/GCN_res_layer.py
vivek-r-2000/BoundaryNet
fce8d51a516646c1001116d03872dbba9e4c5082
[ "MIT" ]
4
2021-06-26T15:12:44.000Z
2021-11-08T16:36:52.000Z
import math import torch import torch.nn as nn from torch.nn.modules.module import Module from GNN.GCN_layer import GraphConvolution class GraphResConvolution(Module): """ Simple GCN layer, similar to https://arxiv.org/abs/1609.02907 """ def __init__(self, state_dim, name=''): super(GraphRes...
23.829268
65
0.63869
131
977
4.427481
0.328244
0.068966
0.044828
0.055172
0
0
0
0
0
0
0
0.036885
0.250768
977
41
66
23.829268
0.755464
0.062436
0
0
0
0
0.012209
0
0
0
0
0
0
1
0.130435
false
0
0.217391
0.043478
0.478261
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c24dd7d64e797088cd127f5acf19696ee37ca0f
28,569
py
Python
mtools/util/logfile.py
lukasvosyka/mtools
b94620cef48a9eb71b6a7fa93ad88f70cd36982f
[ "Apache-2.0" ]
null
null
null
mtools/util/logfile.py
lukasvosyka/mtools
b94620cef48a9eb71b6a7fa93ad88f70cd36982f
[ "Apache-2.0" ]
null
null
null
mtools/util/logfile.py
lukasvosyka/mtools
b94620cef48a9eb71b6a7fa93ad88f70cd36982f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from __future__ import print_function import os import re import sys from datetime import datetime from math import ceil from mtools.util.input_source import InputSource from mtools.util.logevent import LogEvent class LogFile(InputSource): """Log file wrapper class. Handles open file str...
35.755945
116
0.509573
2,991
28,569
4.704112
0.14109
0.028429
0.015352
0.018479
0.399716
0.32914
0.291898
0.253518
0.231059
0.201919
0
0.006625
0.397704
28,569
798
117
35.800752
0.811065
0.128846
0
0.428058
0
0.001799
0.098892
0.014378
0
0
0
0.001253
0
1
0.061151
false
0
0.014388
0
0.154676
0.003597
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c26833e5360e6495c23a5b485ec7547b6bafa06
2,136
py
Python
tests/svg.py
Tillsten/pyqtgraph
0045863165fe526988c58cf4f8232ae2d261a5ee
[ "MIT" ]
null
null
null
tests/svg.py
Tillsten/pyqtgraph
0045863165fe526988c58cf4f8232ae2d261a5ee
[ "MIT" ]
null
null
null
tests/svg.py
Tillsten/pyqtgraph
0045863165fe526988c58cf4f8232ae2d261a5ee
[ "MIT" ]
null
null
null
""" SVG export test """ import test import pyqtgraph as pg app = pg.mkQApp() class SVGTest(test.TestCase): #def test_plotscene(self): #pg.setConfigOption('foreground', (0,0,0)) #w = pg.GraphicsWindow() #w.show() #p1 = w.addPlot() #p2 = w.addPlot() #p1.plot([1...
30.514286
96
0.557116
269
2,136
4.386617
0.304833
0.013559
0.021186
0.084746
0.285593
0.204237
0.077966
0.023729
0
0
0
0.095455
0.279026
2,136
70
97
30.514286
0.670779
0.535112
0
0
0
0
0.016913
0
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c26b3633189c7cbd7b00d1addad30f94587f9ec
993
py
Python
src/api/models/enums/apschedulerevents.py
jedicontributors/pythondataintegrator
3e877b367ab9b20185476128ec053db41087879f
[ "MIT" ]
14
2020-12-19T15:06:13.000Z
2022-01-12T19:52:17.000Z
src/api/models/enums/apschedulerevents.py
jedicontributors/pythondataintegrator
3e877b367ab9b20185476128ec053db41087879f
[ "MIT" ]
43
2021-01-06T22:05:22.000Z
2022-03-10T10:30:30.000Z
src/api/models/enums/apschedulerevents.py
jedicontributors/pythondataintegrator
3e877b367ab9b20185476128ec053db41087879f
[ "MIT" ]
4
2020-12-18T23:10:09.000Z
2021-04-02T13:03:12.000Z
EVENT_SCHEDULER_STARTED = EVENT_SCHEDULER_START = 2 ** 0 EVENT_SCHEDULER_SHUTDOWN = 2 ** 1 EVENT_SCHEDULER_PAUSED = 2 ** 2 EVENT_SCHEDULER_RESUMED = 2 ** 3 EVENT_EXECUTOR_ADDED = 2 ** 4 EVENT_EXECUTOR_REMOVED = 2 ** 5 EVENT_JOBSTORE_ADDED = 2 ** 6 EVENT_JOBSTORE_REMOVED = 2 ** 7 EVENT_ALL_JOBS_REMOVED = 2 ** 8 EVENT_JO...
45.136364
96
0.75428
145
993
4.648276
0.262069
0.189911
0.062315
0.077151
0.103858
0
0
0
0
0
0
0.05
0.17422
993
22
96
45.136364
0.771951
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c272bc2beff83ce709b4ecff735eaf333a85378
25,166
py
Python
scripts/build/build/targets.py
mrninhvn/matter
c577b233db9d2f3a6f87108a062b1699a40c5169
[ "Apache-2.0" ]
2
2022-03-29T12:17:41.000Z
2022-03-30T13:25:20.000Z
scripts/build/build/targets.py
mrninhvn/matter
c577b233db9d2f3a6f87108a062b1699a40c5169
[ "Apache-2.0" ]
null
null
null
scripts/build/build/targets.py
mrninhvn/matter
c577b233db9d2f3a6f87108a062b1699a40c5169
[ "Apache-2.0" ]
2
2022-02-24T15:42:39.000Z
2022-03-04T20:38:07.000Z
# Copyright (c) 2021 Project CHIP Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
42.510135
140
0.695581
2,934
25,166
5.871166
0.160873
0.072449
0.055265
0.025543
0.409613
0.303088
0.218913
0.133055
0.080518
0.054453
0
0.036247
0.197528
25,166
591
141
42.582064
0.816737
0.095645
0
0.162907
0
0.005013
0.129666
0.035727
0
0
0
0
0
1
0.080201
false
0
0.047619
0.007519
0.172932
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c279f6e16ec9934410f291dea61230ff38bf396
4,608
py
Python
src/musegan/data.py
TRINITRONIC/musegan
0a62e0303a8ff357d7f385dcc6edba76afb132b2
[ "MIT" ]
null
null
null
src/musegan/data.py
TRINITRONIC/musegan
0a62e0303a8ff357d7f385dcc6edba76afb132b2
[ "MIT" ]
null
null
null
src/musegan/data.py
TRINITRONIC/musegan
0a62e0303a8ff357d7f385dcc6edba76afb132b2
[ "MIT" ]
null
null
null
"""This file contains functions for loading and preprocessing pianoroll data. """ import logging import numpy as np import tensorflow.compat.v1 as tf from musegan.config import SHUFFLE_BUFFER_SIZE, PREFETCH_SIZE LOGGER = logging.getLogger(__name__) # --- Data loader ----------------------------------------------------...
39.724138
80
0.59809
556
4,608
4.771583
0.223022
0.050886
0.040709
0.040709
0.401055
0.352808
0.335846
0.282699
0.232944
0.162835
0
0.009494
0.24566
4,608
115
81
40.069565
0.75374
0.175781
0
0.266667
0
0
0.033663
0
0
0
0
0
0.011111
1
0.1
false
0
0.055556
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c2803d74bf17ec9bd8c3ff5ad734d4010f60546
20
py
Python
Python/hello-world-pt-BR.py
PushpneetSingh/Hello-world
def0f44737e02fb40063cd347e93e456658e2532
[ "MIT" ]
1,428
2018-10-03T15:15:17.000Z
2019-03-31T18:38:36.000Z
Python/hello-world-pt-BR.py
PushpneetSingh/Hello-world
def0f44737e02fb40063cd347e93e456658e2532
[ "MIT" ]
1,162
2018-10-03T15:05:49.000Z
2018-10-18T14:17:52.000Z
Python/hello-world-pt-BR.py
PushpneetSingh/Hello-world
def0f44737e02fb40063cd347e93e456658e2532
[ "MIT" ]
3,909
2018-10-03T15:07:19.000Z
2019-03-31T18:39:08.000Z
print(u"Olá mundo!")
20
20
0.7
4
20
3.5
1
0
0
0
0
0
0
0
0
0
0
0
0.05
20
1
20
20
0.736842
0
0
0
0
0
0.47619
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
7c283d63bcdc25c314b3c41b483eb7c2c6064da2
527
py
Python
02-static-templates-files/02_html_template.py
saidulislam/flask-bootcamp-2
4ba8f5e012aa0159275ab264f0247815dcf635e6
[ "Apache-2.0" ]
null
null
null
02-static-templates-files/02_html_template.py
saidulislam/flask-bootcamp-2
4ba8f5e012aa0159275ab264f0247815dcf635e6
[ "Apache-2.0" ]
null
null
null
02-static-templates-files/02_html_template.py
saidulislam/flask-bootcamp-2
4ba8f5e012aa0159275ab264f0247815dcf635e6
[ "Apache-2.0" ]
null
null
null
from flask import Flask, app = Flask(__name__) @app.route("/") def homepage(): return "Paws Rescue Center 🐾" @app.route("/about") def about(): return """We are a non-profit organization working as an animal rescue center. We aim to help you connect with purrfect furbaby for you! The ani...
31
91
0.677419
78
527
4.435897
0.730769
0.046243
0
0
0
0
0
0
0
0
0
0
0.225806
527
17
92
31
0.845588
0
0
0
0
0
0.636719
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
7c28fc0563fc8f73fd257c1d3e24a953c2e9ec7c
1,780
py
Python
src/compas/datastructures/mesh/bbox.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
2
2021-03-17T18:14:22.000Z
2021-09-19T13:50:02.000Z
src/compas/datastructures/mesh/bbox.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
9
2019-09-11T08:53:19.000Z
2019-09-16T08:35:39.000Z
src/compas/datastructures/mesh/bbox.py
Licini/compas
34f65adb3d0abc3f403312ffba62aa76f3376292
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from compas.geometry import bounding_box from compas.geometry import bounding_box_xy __all__ = [ 'mesh_bounding_box', 'mesh_bounding_box_xy', ] def mesh_bounding_box(mesh): """Compute the (axis...
23.733333
148
0.561236
247
1,780
3.842105
0.206478
0.096944
0.110643
0.101159
0.514226
0.478398
0.404636
0.404636
0.404636
0.322445
0
0.061297
0.211798
1,780
74
149
24.054054
0.61511
0.538202
0
0
0
0
0.085592
0
0
0
0
0
0
1
0.095238
false
0
0.380952
0
0.571429
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7c2914b1e959a72c6f1d255196bf2c603b057db4
210
py
Python
crop/source_selection/__init__.py
Lars-H/federated_crop
8e936926462aa5df5a9b8e6b42b061a3623fddf4
[ "MIT" ]
null
null
null
crop/source_selection/__init__.py
Lars-H/federated_crop
8e936926462aa5df5a9b8e6b42b061a3623fddf4
[ "MIT" ]
null
null
null
crop/source_selection/__init__.py
Lars-H/federated_crop
8e936926462aa5df5a9b8e6b42b061a3623fddf4
[ "MIT" ]
null
null
null
from naive import NaiveSourceSelection from star_based import StarBasedSourceSelection from utils import AskSourceSelector, HybridSourceSelector, StatSourceSelector from charset_selector import CharSet_Selector
52.5
77
0.909524
21
210
8.952381
0.619048
0.159574
0
0
0
0
0
0
0
0
0
0
0.080952
210
4
78
52.5
0.974093
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
7c29df3316dce7638b4588f6021b4bc59ffb4cfc
151
py
Python
base3_plus.py
Mhaiyang/iccv
04a8ee52c2323d7ff5cdf03c0be1466e8180d2eb
[ "MIT" ]
2
2019-01-10T03:44:03.000Z
2019-05-24T08:50:14.000Z
base3_plus.py
Mhaiyang/iccv
04a8ee52c2323d7ff5cdf03c0be1466e8180d2eb
[ "MIT" ]
null
null
null
base3_plus.py
Mhaiyang/iccv
04a8ee52c2323d7ff5cdf03c0be1466e8180d2eb
[ "MIT" ]
null
null
null
""" @Time : 201/21/19 10:47 @Author : TaylorMei @Email : mhy845879017@gmail.com @Project : iccv @File : base3_plus.py @Function: """
15.1
34
0.596026
19
151
4.684211
1
0
0
0
0
0
0
0
0
0
0
0.184211
0.245033
151
10
35
15.1
0.596491
0.887417
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
7c2b65379c3bd0e388f419a0d07e73a9770aad35
48,787
py
Python
visnav/algo/orig/tools.py
oknuutti/hw_visnav
5254b8bdd146548413554c00e6e76264a2540e8b
[ "MIT" ]
null
null
null
visnav/algo/orig/tools.py
oknuutti/hw_visnav
5254b8bdd146548413554c00e6e76264a2540e8b
[ "MIT" ]
null
null
null
visnav/algo/orig/tools.py
oknuutti/hw_visnav
5254b8bdd146548413554c00e6e76264a2540e8b
[ "MIT" ]
null
null
null
import math import time import numpy as np import numba as nb import quaternion # adds to numpy # noqa # pylint: disable=unused-import import sys import scipy from astropy.coordinates import SkyCoord from scipy.interpolate import RectBivariateSpline from scipy.interpolate import NearestNDInterpolator # from scipy.s...
33.576738
130
0.579335
7,551
48,787
3.631572
0.12899
0.006491
0.029684
0.020969
0.302494
0.248851
0.223033
0.205492
0.191817
0.177595
0
0.039014
0.266567
48,787
1,452
131
33.599862
0.727349
0.152377
0
0.182663
0
0
0.039557
0.000562
0
0
0
0.000689
0.017544
1
0.093911
false
0.004128
0.038184
0.011352
0.231166
0.014448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c2bf254c4e2082b3c9d6ed73d3f8891d0fa09df
4,245
py
Python
cirtorch/filters/sobel.py
Tarekbouamer/Image-Retrieval-for-Image-Based-Localization
fcad9af4f558bebb3cbec1d08e49603a452f439d
[ "BSD-3-Clause" ]
3
2021-01-15T13:58:22.000Z
2021-01-22T00:03:34.000Z
cirtorch/filters/sobel.py
Tarekbouamer/Image-Retrieval-for-Image-Based-Localization
fcad9af4f558bebb3cbec1d08e49603a452f439d
[ "BSD-3-Clause" ]
null
null
null
cirtorch/filters/sobel.py
Tarekbouamer/Image-Retrieval-for-Image-Based-Localization
fcad9af4f558bebb3cbec1d08e49603a452f439d
[ "BSD-3-Clause" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from .kernels import ( get_spatial_gradient_kernel2d, get_spatial_gradient_kernel3d, normalize_kernel2d ) def spatial_gradient(input, mode='sobel', order=1, normalized=True): """ Computes the first order image derivative in bo...
28.877551
103
0.627562
568
4,245
4.570423
0.209507
0.042373
0.033898
0.01849
0.627889
0.54584
0.440678
0.389445
0.374807
0.374807
0
0.020051
0.259835
4,245
146
104
29.075342
0.806174
0.193404
0
0.3625
0
0
0.054259
0
0
0
0
0
0
1
0.1125
false
0
0.05
0.0375
0.275
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c2c03c407ba0a2ba9a613836bc2fb4601d6b4a8
896
py
Python
PythonCookbook/concurrent_test/findrobots.py
xu6148152/Binea_Python_Project
d943eb5f4685d08f080b372dcf1a7cbd5d63efed
[ "MIT" ]
null
null
null
PythonCookbook/concurrent_test/findrobots.py
xu6148152/Binea_Python_Project
d943eb5f4685d08f080b372dcf1a7cbd5d63efed
[ "MIT" ]
null
null
null
PythonCookbook/concurrent_test/findrobots.py
xu6148152/Binea_Python_Project
d943eb5f4685d08f080b372dcf1a7cbd5d63efed
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- import gzip import io import glob from concurrent import futures def find_robots(filename): ''' Find all of the hosts that access robots.txt in a single log file ''' robots = set() with gzip.open(filename) as f: for line in io.TextIOWrapper(f, encoding='ascii'): ...
23.578947
69
0.618304
118
896
4.550847
0.491525
0.083799
0.048417
0
0
0
0
0
0
0
0
0.004587
0.270089
896
37
70
24.216216
0.816514
0.157366
0
0
0
0
0.051176
0
0
0
0
0
0
1
0.086957
false
0
0.173913
0
0.347826
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
7c2c2ee21f857be97b79a37957d75b5c80b83234
421
py
Python
docker/setup.py
sreynit02/RunestoneServer
2d72fd1c26264a8d7d88e2bccfe9bfbb4d8b9a98
[ "MIT" ]
null
null
null
docker/setup.py
sreynit02/RunestoneServer
2d72fd1c26264a8d7d88e2bccfe9bfbb4d8b9a98
[ "MIT" ]
null
null
null
docker/setup.py
sreynit02/RunestoneServer
2d72fd1c26264a8d7d88e2bccfe9bfbb4d8b9a98
[ "MIT" ]
null
null
null
# ****************************************************************** # |docname| - Provide `docker_tools.py` as the script `docker-tools` # ****************************************************************** from setuptools import setup setup( name="runestone-docker-tools", version="0.1", install_requires=[...
30.071429
68
0.444181
34
421
5.352941
0.735294
0.302198
0
0
0
0
0
0
0
0
0
0.005495
0.135392
421
13
69
32.384615
0.494505
0.475059
0
0
0
0
0.35023
0.101382
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
7c2c549754955b919f978ac6624f7aa2371b569a
19,500
py
Python
PS12/api2.py
AbhinavSingh-21f1002369/AFKZenCoders
344475e7d5d60c09637b0bec28c5dab1befe2b65
[ "MIT" ]
null
null
null
PS12/api2.py
AbhinavSingh-21f1002369/AFKZenCoders
344475e7d5d60c09637b0bec28c5dab1befe2b65
[ "MIT" ]
null
null
null
PS12/api2.py
AbhinavSingh-21f1002369/AFKZenCoders
344475e7d5d60c09637b0bec28c5dab1befe2b65
[ "MIT" ]
2
2021-10-11T09:28:00.000Z
2021-10-14T10:30:11.000Z
from flask import Flask, render_template, request, jsonify,send_file, redirect,session, url_for from werkzeug import secure_filename import os import utilities, queries import logger from flask_cors import CORS, cross_origin from datetime import timedelta app = Flask(__name__) CORS(app) cors = CORS(app, resources={r"/*...
38.16047
182
0.655385
2,475
19,500
5.080808
0.117172
0.044612
0.012883
0.02505
0.673797
0.629026
0.557694
0.508072
0.493201
0.448668
0
0.014299
0.182308
19,500
511
183
38.16047
0.774287
0.051795
0
0.48227
0
0.01182
0.345304
0.025683
0
0
0
0
0
0
null
null
0.009456
0.016548
null
null
0.016548
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7c2c664c7e1b0b10556e368192b5c6b6dfeac1d6
13,634
py
Python
cnnblstm_with_adabn/cnnblstm_with_adabn.py
Fassial/Air-Writing-with-TL
9b9047c5bd5aef3a869e2d5166be1c0cf0c5ccf0
[ "MIT" ]
1
2021-06-16T16:45:01.000Z
2021-06-16T16:45:01.000Z
cnnblstm_with_adabn/cnnblstm_with_adabn.py
Fassial/Air-Writing-with-TL
9b9047c5bd5aef3a869e2d5166be1c0cf0c5ccf0
[ "MIT" ]
null
null
null
cnnblstm_with_adabn/cnnblstm_with_adabn.py
Fassial/Air-Writing-with-TL
9b9047c5bd5aef3a869e2d5166be1c0cf0c5ccf0
[ "MIT" ]
1
2020-04-21T01:31:26.000Z
2020-04-21T01:31:26.000Z
import os import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import numpy as np import matplotlib.pyplot as plt # local model import sys sys.path.append("../network") import Coral from lstm import LSTMHardSigmoid from AdaBN import AdaBN sys.path.append("../network/Aut...
36.068783
211
0.710943
2,080
13,634
4.404808
0.129327
0.022157
0.015717
0.01277
0.465837
0.407226
0.390963
0.359201
0.327003
0.313032
0
0.017791
0.163122
13,634
377
212
36.164456
0.785188
0.230747
0
0.1875
0
0
0.03476
0.005793
0
0
0
0
0
1
0.057692
false
0
0.057692
0
0.163462
0.024038
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c2d2c77ae28e087d253ce05110db6593a6b0fcc
26,658
py
Python
src/emmental/model.py
woffett/emmental
87884fcd89662cca45f0ea0f78cff73380cc47c8
[ "MIT" ]
null
null
null
src/emmental/model.py
woffett/emmental
87884fcd89662cca45f0ea0f78cff73380cc47c8
[ "MIT" ]
null
null
null
src/emmental/model.py
woffett/emmental
87884fcd89662cca45f0ea0f78cff73380cc47c8
[ "MIT" ]
null
null
null
"""Emmental model.""" import itertools import logging import os from collections import defaultdict from collections.abc import Iterable from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union import numpy as np import torch from numpy import ndarray from torch import Tensor, nn as nn from torch.nn i...
38.028531
88
0.534249
2,842
26,658
4.79064
0.100985
0.050533
0.017628
0.012119
0.465443
0.375835
0.321924
0.292031
0.213882
0.185163
0
0.000419
0.373734
26,658
700
89
38.082857
0.815094
0.120939
0
0.297959
0
0
0.071641
0.010072
0
0
0
0.004286
0
1
0.034694
false
0
0.034694
0
0.087755
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c2daa2465bd8777ef8940cbc518e195f59d4ad9
4,578
py
Python
server/ws_server.py
jangxx/OVRT_Soundpad
2f9b2cd19421bc7b5586a3dcded2998d381ba688
[ "MIT" ]
1
2021-09-29T01:45:35.000Z
2021-09-29T01:45:35.000Z
server/ws_server.py
jangxx/OVRT_Soundpad
2f9b2cd19421bc7b5586a3dcded2998d381ba688
[ "MIT" ]
2
2021-09-28T08:53:09.000Z
2021-10-20T01:06:15.000Z
server/ws_server.py
jangxx/OVRT_Soundpad
2f9b2cd19421bc7b5586a3dcded2998d381ba688
[ "MIT" ]
null
null
null
import asyncio, json from config import Config from soundpad_manager import SoundpadManager from version import BRIDGE_VERSION import websockets from sanic.log import logger # yes I know that it's very lazy to run a separate WS and HTTP server, when both could be run on the same port # I don't like sanics ...
33.661765
140
0.668633
600
4,578
4.975
0.29
0.033501
0.036181
0.023116
0.240536
0.166499
0.137018
0.124288
0
0
0
0.002714
0.195063
4,578
136
141
33.661765
0.807327
0.074487
0
0.147059
0
0
0.174561
0.035156
0
0
0
0
0
1
0.019608
false
0.019608
0.058824
0
0.107843
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c2db7d1e1ec02302af64420555ad08513981b88
18,565
py
Python
tests/route_generator_test.py
CityPulse/dynamic-bus-scheduling
7516283be5a374fe0a27715f4facee11c847f39f
[ "MIT" ]
14
2016-09-24T11:42:48.000Z
2021-06-11T08:06:23.000Z
tests/route_generator_test.py
CityPulse/CityPulse-Dynamic-Bus-Scheduler
7516283be5a374fe0a27715f4facee11c847f39f
[ "MIT" ]
1
2016-07-08T09:16:42.000Z
2016-07-08T09:16:42.000Z
tests/route_generator_test.py
CityPulse/dynamic-bus-scheduling
7516283be5a374fe0a27715f4facee11c847f39f
[ "MIT" ]
5
2016-06-17T12:46:28.000Z
2021-09-25T19:04:37.000Z
#!/usr/local/bin/python # -*- coding: utf-8 -*- """ - LICENCE The MIT License (MIT) Copyright (c) 2016 Eleftherios Anagnostopoulos for Ericsson AB (EU FP7 CityPulse Project) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software...
43.579812
119
0.649609
2,183
18,565
5.066422
0.121393
0.081013
0.061031
0.027848
0.776763
0.764647
0.72613
0.705244
0.70226
0.690416
0
0.003018
0.214597
18,565
425
120
43.682353
0.755504
0.094263
0
0.513228
0
0
0.229712
0.101168
0
0
0
0
0
0
null
null
0
0.031746
null
null
0.042328
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
6
7c2f595fee4e21dc84c6666b03b2174e6d5731e0
8,108
py
Python
tensorforce/tests/test_model_save_restore.py
gian1312/suchen
df863140fd8df1ac2e195cbdfa4756f09f962270
[ "Apache-2.0" ]
null
null
null
tensorforce/tests/test_model_save_restore.py
gian1312/suchen
df863140fd8df1ac2e195cbdfa4756f09f962270
[ "Apache-2.0" ]
null
null
null
tensorforce/tests/test_model_save_restore.py
gian1312/suchen
df863140fd8df1ac2e195cbdfa4756f09f962270
[ "Apache-2.0" ]
1
2019-11-29T12:28:33.000Z
2019-11-29T12:28:33.000Z
from __future__ import absolute_import from __future__ import print_function from __future__ import division import unittest import pytest from tensorforce import TensorForceError from tensorforce.core.networks import LayeredNetwork from tensorforce.models import DistributionModel from tensorforce.tests.minimal_test ...
39.940887
119
0.662309
928
8,108
5.570043
0.235991
0.042561
0.015477
0.021668
0.479783
0.451538
0.424453
0.394274
0.356742
0.322113
0
0.009753
0.241243
8,108
202
120
40.138614
0.830462
0.044524
0
0.291139
0
0
0.049759
0.007555
0
0
0
0
0.075949
1
0.056962
false
0
0.094937
0.025316
0.189873
0.025316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c2f74f5570ad8ece2d2a501cd63b62951484c2c
844
py
Python
guid.py
lihuiba/SoftSAN
1b8ab2cae92b7aac34211909b27d4ebe595275d7
[ "Apache-2.0" ]
1
2015-08-02T09:53:18.000Z
2015-08-02T09:53:18.000Z
guid.py
lihuiba/SoftSAN
1b8ab2cae92b7aac34211909b27d4ebe595275d7
[ "Apache-2.0" ]
null
null
null
guid.py
lihuiba/SoftSAN
1b8ab2cae92b7aac34211909b27d4ebe595275d7
[ "Apache-2.0" ]
2
2018-03-21T04:59:50.000Z
2019-12-03T15:54:17.000Z
import random import messages_pb2 as msg def assign(x, y): x.a=y.a; x.b=y.b; x.c=y.c; x.d=y.d def isZero(x): return (x.a==0 and x.b==0 and x.c==0 and x.d==0) def setZero(x): x.a=0; x.b=0; x.c=0; x.d=0 def toStr(x): return "%08x-%08x-%08x-%08x" % (x.a, x.b, x.c, x.d) def toTuple(x): return (x.a,...
19.181818
55
0.562796
183
844
2.590164
0.20765
0.021097
0.118143
0.202532
0.2173
0.046414
0.046414
0.046414
0.046414
0
0
0.0625
0.222749
844
43
56
19.627907
0.660061
0
0
0.147059
0
0
0.023725
0
0
0
0.04745
0
0
1
0.235294
false
0
0.058824
0.088235
0.470588
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
7c30b20fb26e70f99e3a1516c799910198cc11b1
17,421
py
Python
mango/__init__.py
kronael/mango-explorer
6292c089c2a3d1ff2cf0b50b815849451a50ec39
[ "MIT" ]
null
null
null
mango/__init__.py
kronael/mango-explorer
6292c089c2a3d1ff2cf0b50b815849451a50ec39
[ "MIT" ]
null
null
null
mango/__init__.py
kronael/mango-explorer
6292c089c2a3d1ff2cf0b50b815849451a50ec39
[ "MIT" ]
null
null
null
# In --strict mode, mypy complains about imports unless they're done this way. # # It complains 'Module has no attribute ABC' or 'Module "mango" does not explicitly export # attribute "XYZ"; implicit reexport disabled'. We could dial that back by using the # --implicit-reexport parameter, but let's keep things strict. ...
66.747126
126
0.89306
1,901
17,421
7.996844
0.192004
0.020984
0.027496
0.033746
0.160242
0.064465
0.045191
0.010854
0
0
0
0.002142
0.08903
17,421
260
127
67.003846
0.955766
0.03668
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.995868
0
0.995868
0.004132
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
7c30ba325b9fb817b1364d8d7e3e057255111d8c
259
py
Python
letters_of_sherlock.py
MariannaJan/LettersOfSherlock
cf356c002078d4e0e6bcf1a669bc8b358680460f
[ "FTL" ]
null
null
null
letters_of_sherlock.py
MariannaJan/LettersOfSherlock
cf356c002078d4e0e6bcf1a669bc8b358680460f
[ "FTL" ]
null
null
null
letters_of_sherlock.py
MariannaJan/LettersOfSherlock
cf356c002078d4e0e6bcf1a669bc8b358680460f
[ "FTL" ]
null
null
null
import lettercounter as lc #Books form Gutenberg Project: https://www.gutenberg.org/ebooks/author/69 lc.showPlots(text_directory_pathname="./Books/", title="Sir Arthur Conan Doyle's favourite letters", legend_label_main="in Doyle's stories")
37
73
0.749035
36
259
5.277778
0.861111
0.063158
0
0
0
0
0
0
0
0
0
0.008969
0.138996
259
7
74
37
0.843049
0.277992
0
0
0
0
0.363636
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
7c31ff3f832fdd4d6ba0dc485287be931476d8a3
1,017
py
Python
BB/bbObjects/items/bbTurret.py
mwaitzman/GOF2BountyBot
b66026228b752b07ac4734ca74b60730dbd74995
[ "MIT" ]
null
null
null
BB/bbObjects/items/bbTurret.py
mwaitzman/GOF2BountyBot
b66026228b752b07ac4734ca74b60730dbd74995
[ "MIT" ]
null
null
null
BB/bbObjects/items/bbTurret.py
mwaitzman/GOF2BountyBot
b66026228b752b07ac4734ca74b60730dbd74995
[ "MIT" ]
null
null
null
from .bbItem import bbItem from ...bbConfig import bbData class bbTurret(bbItem): dps = 0.0 def __init__(self, name, aliases, dps=0.0, value=0, wiki="", manufacturer="", icon="", emoji=""): super(bbTurret, self).__init__(name, aliases, value=value, wiki=wiki, manufacturer=manufacturer, icon=icon, emoj...
36.321429
145
0.66765
118
1,017
5.686441
0.271186
0.071535
0.09538
0
0
0
0
0
0
0
0
0.006031
0.184857
1,017
27
146
37.666667
0.803378
0
0
0
0
0
0.085546
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0.111111
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
7c32d21e81a25b4bfc714d53125ce26089327176
263
py
Python
what_can_i_cook/urls.py
s-maibuecher/what_can_i_cook
07d0eb1e1862fad299477b800654e895d7f8829a
[ "MIT" ]
null
null
null
what_can_i_cook/urls.py
s-maibuecher/what_can_i_cook
07d0eb1e1862fad299477b800654e895d7f8829a
[ "MIT" ]
null
null
null
what_can_i_cook/urls.py
s-maibuecher/what_can_i_cook
07d0eb1e1862fad299477b800654e895d7f8829a
[ "MIT" ]
null
null
null
from django.urls import path from what_can_i_cook.views import WCICFilterView, WCICResultView app_name = "wcic" urlpatterns = [ path("", WCICFilterView.as_view(), name="wcic-start"), path("results/", WCICResultView.as_view(), name="wcic-results"), ]
20.230769
68
0.722433
33
263
5.575758
0.606061
0.130435
0.108696
0.152174
0
0
0
0
0
0
0
0
0.13308
263
12
69
21.916667
0.807018
0
0
0
0
0
0.129771
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c32daa41ae2a8f92a0d91d061b5264ea9984602
436
py
Python
shared/templates/grub2_bootloader_argument/template.py
justchris1/scap-security-guide
030097afa80041fcdffc537a49c09896efedadca
[ "BSD-3-Clause" ]
1,138
2018-09-05T06:31:44.000Z
2022-03-31T03:38:24.000Z
shared/templates/grub2_bootloader_argument/template.py
justchris1/scap-security-guide
030097afa80041fcdffc537a49c09896efedadca
[ "BSD-3-Clause" ]
4,743
2018-09-04T15:14:04.000Z
2022-03-31T23:17:57.000Z
shared/templates/grub2_bootloader_argument/template.py
justchris1/scap-security-guide
030097afa80041fcdffc537a49c09896efedadca
[ "BSD-3-Clause" ]
400
2018-09-08T20:08:49.000Z
2022-03-30T20:54:32.000Z
import ssg.utils def preprocess(data, lang): data["arg_name_value"] = data["arg_name"] + "=" + data["arg_value"] if lang == "oval": # escape dot, this is used in oval regex data["escaped_arg_name_value"] = data["arg_name_value"].replace(".", "\\.") # replace . with _, this is used in t...
36.333333
83
0.623853
61
436
4.229508
0.47541
0.162791
0.170543
0.124031
0.178295
0.178295
0
0
0
0
0
0
0.21789
436
11
84
39.636364
0.756598
0.224771
0
0
0
0
0.304478
0.065672
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c34376a6bdd5ec8372f4490b569f441abff9288
3,598
py
Python
preprocess.py
NNDEV1/NMTWithLuongAttention
e6f11d9e8c5f999d413fa0dc51219e979a8f975c
[ "MIT" ]
4
2021-07-09T19:17:47.000Z
2022-01-04T14:54:11.000Z
preprocess.py
NNDEV1/NMTWithLuongAttention
e6f11d9e8c5f999d413fa0dc51219e979a8f975c
[ "MIT" ]
null
null
null
preprocess.py
NNDEV1/NMTWithLuongAttention
e6f11d9e8c5f999d413fa0dc51219e979a8f975c
[ "MIT" ]
null
null
null
import tensorflow as tf import os import contractions import tensorflow as tf import pandas as pd import numpy as np import time import rich from rich.progress import track import spacy from config import params #Preprocessing Text class preprocess_text(): def __init__(self): pass def remove_pa...
32.414414
106
0.644525
533
3,598
4.129456
0.242026
0.040891
0.022263
0.031804
0.294866
0.223989
0.210813
0.141299
0.060881
0
0
0.00577
0.229294
3,598
110
107
32.709091
0.787955
0.005003
0
0.063291
0
0
0.044146
0
0
0
0
0
0
1
0.151899
false
0.012658
0.139241
0.037975
0.481013
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c3462f9e646dbe27aad64fea0cc1723870ee413
1,665
py
Python
setup.py
johannesulf/dsigma
729337c94669f4a0fdacb51b175df1e13e26304c
[ "MIT" ]
4
2020-06-09T01:09:58.000Z
2021-09-26T16:39:16.000Z
setup.py
johannesulf/dsigma
729337c94669f4a0fdacb51b175df1e13e26304c
[ "MIT" ]
null
null
null
setup.py
johannesulf/dsigma
729337c94669f4a0fdacb51b175df1e13e26304c
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from distutils.extension import Extension from distutils.command.sdist import sdist try: from Cython.Build import cythonize USE_CYTHON = True except ImportError: USE_CYTHON = False ext = 'pyx' if USE_CYTHON else 'c' extensions = [Extension( 'dsigma.precomput...
30.272727
76
0.667868
185
1,665
5.875676
0.583784
0.033119
0.091996
0.095676
0
0
0
0
0
0
0
0.008221
0.196396
1,665
54
77
30.833333
0.804185
0
0
0
0
0
0.34955
0.060661
0
0
0
0
0
1
0.021739
false
0
0.108696
0
0.152174
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c34972839ffa0fc13d463ba6725ab4c70743477
1,967
py
Python
face_detector/modules/mod_faceDetection.py
jtfan3/face_detection
82e3bc839bf12c956f3166c07012912a0638048f
[ "MIT" ]
null
null
null
face_detector/modules/mod_faceDetection.py
jtfan3/face_detection
82e3bc839bf12c956f3166c07012912a0638048f
[ "MIT" ]
null
null
null
face_detector/modules/mod_faceDetection.py
jtfan3/face_detection
82e3bc839bf12c956f3166c07012912a0638048f
[ "MIT" ]
null
null
null
import cv2 import mediapipe as mp class FaceDetection(): # initialize the face detection class with arguments from https://google.github.io/mediapipe/solutions/face_detection.html def __init__(self, model_selection = 0, threshold = 0.5): self.model_selection = model_selection self.threshold = t...
40.979167
154
0.620234
254
1,967
4.574803
0.38189
0.067126
0.046472
0
0
0
0
0
0
0
0
0.017731
0.283172
1,967
47
155
41.851064
0.806383
0.160142
0
0
0
0
0.008511
0
0
0
0
0
0
1
0.090909
false
0
0.060606
0
0.212121
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c3522929deb4bb2524b97c1af2b5f08df9a050e
5,585
py
Python
backend/0_publish_audio.py
bmj-hackathon/ethberlinzwei-babelfish_3_0
e986ad1b9fa896f20d7cdd296d130d804f55ecfa
[ "Apache-2.0" ]
1
2019-08-28T12:12:09.000Z
2019-08-28T12:12:09.000Z
backend/0_publish_audio.py
bmj-hackathon/ethberlinzwei-babelfish_3_0
e986ad1b9fa896f20d7cdd296d130d804f55ecfa
[ "Apache-2.0" ]
8
2020-09-07T01:00:44.000Z
2022-03-02T05:19:32.000Z
backend/0_publish_audio.py
bmj-hackathon/ethberlinzwei-babelfish_3_0
e986ad1b9fa896f20d7cdd296d130d804f55ecfa
[ "Apache-2.0" ]
3
2019-08-24T20:36:08.000Z
2021-02-18T20:28:11.000Z
import sys import logging # loggers_dict = logging.Logger.manager.loggerDict # # logger = logging.getLogger() # logger.handlers = [] # # # Set level # logger.setLevel(logging.DEBUG) # # # FORMAT = "%(asctime)s - %(levelno)s - %(module)-15s - %(funcName)-15s - %(message)s" # # FORMAT = "%(asctime)s %(levelno)s: %(modul...
36.986755
128
0.708684
721
5,585
5.363384
0.306519
0.06827
0.039566
0.024825
0.138092
0.088699
0.049651
0.049651
0.03129
0
0
0.012566
0.116562
5,585
150
129
37.233333
0.77118
0.253715
0
0.067568
0
0
0.315175
0.062014
0
0
0.010214
0.006667
0.054054
1
0.013514
false
0.054054
0.175676
0
0.202703
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7c3538aced9958f0470322c0f12570121760b4ab
593
py
Python
src/pyRofex/components/messages.py
guillerminaamorin/pyRofex
14fd623ab1f1a3213e51a9454485ed478912075f
[ "MIT" ]
2
2020-12-15T22:30:40.000Z
2020-12-15T22:30:51.000Z
src/pyRofex/components/messages.py
guillerminaamorin/pyRofex
14fd623ab1f1a3213e51a9454485ed478912075f
[ "MIT" ]
null
null
null
src/pyRofex/components/messages.py
guillerminaamorin/pyRofex
14fd623ab1f1a3213e51a9454485ed478912075f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ pyRofex.components.messages Defines APIs messages templates """ # Template for a Market Data Subscription message MARKET_DATA_SUBSCRIPTION = '{{"type":"smd","level":1, "entries":[{entries}],"products":[{symbols}]}}' # Template for an Order Subscription message ORDER_SUBSCRIPTION = ...
37.0625
101
0.689713
68
593
5.955882
0.617647
0.074074
0.162963
0.11358
0.148148
0
0
0
0
0
0
0.003817
0.116358
593
15
102
39.533333
0.769084
0.472175
0
0
0
0
0.672355
0.641638
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
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7c3550de30b723134e6acdc5e3a7cc90bba86785
405
py
Python
course/task_6/flask_app.py
duboviy/async
5055daddc66e5335fb772aeb59493cc63e4a2739
[ "MIT" ]
6
2016-10-05T16:12:55.000Z
2019-04-22T11:43:21.000Z
course/task_6/flask_app.py
duboviy/async
5055daddc66e5335fb772aeb59493cc63e4a2739
[ "MIT" ]
null
null
null
course/task_6/flask_app.py
duboviy/async
5055daddc66e5335fb772aeb59493cc63e4a2739
[ "MIT" ]
2
2016-11-01T21:32:27.000Z
2016-12-24T14:00:43.000Z
#!/usr/bin/env python3.4 from flask import Flask import requests from fibonacci import fibonacci as fib app = Flask(__name__) @app.route('/count/<key>') def count(key): return requests.get('http://127.0.0.1:8080/count/{}'.format(key)).text @app.route('/fibonacci/<n>') def fibonacci(n): return str(fib(int(...
18.409091
74
0.671605
66
405
3.939394
0.575758
0.030769
0.023077
0
0
0
0
0
0
0
0
0.05698
0.133333
405
21
75
19.285714
0.683761
0.05679
0
0
0
0
0.186352
0
0
0
0
0
0
1
0.166667
false
0
0.25
0.166667
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
7c359f84b8ac8bafab4c67c76d69bd091361babb
3,613
py
Python
nexpose/nexpose_vulnerabilityexception.py
Patralos/nexpose-client-python
bec81da29883b1b004046e29a9e7f7a6686467c1
[ "BSD-3-Clause" ]
29
2017-06-27T04:44:03.000Z
2021-11-29T15:04:00.000Z
nexpose/nexpose_vulnerabilityexception.py
Patralos/nexpose-client-python
bec81da29883b1b004046e29a9e7f7a6686467c1
[ "BSD-3-Clause" ]
40
2017-06-21T18:00:49.000Z
2018-06-06T21:13:34.000Z
nexpose/nexpose_vulnerabilityexception.py
Patralos/nexpose-client-python
bec81da29883b1b004046e29a9e7f7a6686467c1
[ "BSD-3-Clause" ]
23
2017-07-18T16:40:57.000Z
2021-01-26T09:58:53.000Z
# Future Imports for py2/3 backwards compat. from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import object from .xml_utils import get_attribute, get_content_of from future import standard_library standard_library.install_aliases() def fix_null...
42.011628
164
0.715749
408
3,613
6.056373
0.245098
0.050992
0.084986
0.107649
0.231081
0.10603
0.062323
0
0
0
0
0.002406
0.194575
3,613
85
165
42.505882
0.846735
0.045115
0
0.114286
0
0
0.118211
0.015394
0
0
0
0.011765
0
1
0.071429
false
0
0.057143
0
0.442857
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7c36efe3001b7afd18524c2fd69ee073ca3d2a5c
144
py
Python
myproject/IND_Project/backend/signup/apps.py
captainTOKIO/Premchand_Aug2022_fullstack_august_python1
5fbbdd106a764c2f862cf933fdcd69d6bf4ebdf0
[ "MIT" ]
4
2021-06-30T07:14:22.000Z
2021-08-16T04:52:35.000Z
myproject/IND_Project/backend/signup/apps.py
captainTOKIO/Premchand_Aug2022_fullstack_august_python1
5fbbdd106a764c2f862cf933fdcd69d6bf4ebdf0
[ "MIT" ]
1
2022-03-28T21:14:05.000Z
2022-03-28T21:14:05.000Z
signup/apps.py
ericu-u/GirlHacks
4e800ab8ab3e33a490dc771759ca8b9be08e1441
[ "MIT" ]
4
2021-06-27T04:26:21.000Z
2021-08-13T13:00:56.000Z
from django.apps import AppConfig class SignupConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'signup'
20.571429
56
0.756944
17
144
6.294118
0.882353
0
0
0
0
0
0
0
0
0
0
0
0.152778
144
6
57
24
0.877049
0
0
0
0
0
0.243056
0.201389
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7c378f7b0a34c442460ca831372ef84873f73309
768
py
Python
pymc/mc_enum.py
cherish-web/pymc
9c322abfdcceca0a78b633d85da23e1290c036c8
[ "Apache-2.0" ]
4
2021-05-01T12:43:24.000Z
2022-01-25T03:44:32.000Z
pymc/mc_enum.py
cherish-web/pymc
9c322abfdcceca0a78b633d85da23e1290c036c8
[ "Apache-2.0" ]
null
null
null
pymc/mc_enum.py
cherish-web/pymc
9c322abfdcceca0a78b633d85da23e1290c036c8
[ "Apache-2.0" ]
2
2021-07-10T03:56:08.000Z
2021-09-30T14:59:35.000Z
# _*_ coding: utf-8 _*_ # @Time : 2021/3/29 上午 08:57 # @Author : cherish_peng # @Email : 1058386071@qq.com # @File : cmd.py # @Software : PyCharm from enum import Enum class EnumSubTitle(Enum): Request4e = 0x5400 # 请求 Request = 0x5000 # 应答 Respond = 0xD000 Respond4e = 0xD400 class EnumEndC...
13.714286
36
0.584635
93
768
4.774194
0.752688
0.013514
0.031532
0.067568
0.085586
0
0
0
0
0
0
0.172348
0.3125
768
55
37
13.963636
0.668561
0.324219
0
0
0
0
0
0
0
0
0.146045
0
0
1
0
false
0
0.05
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c3807604ed0426c85cf8213a4cc8c2bb059e44c
214
py
Python
py/sentry_data_schemas/__init__.py
getsentry/sentry-data-schemas
6b49188a66a24663737c4f5cf4708fe992d011c2
[ "MIT" ]
7
2020-08-07T18:26:29.000Z
2021-08-02T18:31:53.000Z
py/sentry_data_schemas/__init__.py
getsentry/sentry-data-schemas
6b49188a66a24663737c4f5cf4708fe992d011c2
[ "MIT" ]
2
2020-12-10T17:28:39.000Z
2021-09-16T13:52:07.000Z
py/sentry_data_schemas/__init__.py
getsentry/sentry-data-schemas
6b49188a66a24663737c4f5cf4708fe992d011c2
[ "MIT" ]
4
2020-09-10T18:10:06.000Z
2021-03-02T11:07:37.000Z
from importlib.resources import path from jsonschema_typed import JSONSchema with path("sentry_data_schemas", "event.schema.json") as schema_path: EventData = JSONSchema["var:sentry_data_schemas:schema_path"]
35.666667
69
0.817757
29
214
5.793103
0.586207
0.119048
0.202381
0
0
0
0
0
0
0
0
0
0.098131
214
5
70
42.8
0.870466
0
0
0
0
0
0.331776
0.163551
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
7c381806df4f9a8daef26e21cae152813d0d29b1
1,548
py
Python
predict.py
faroit/deep-fireball
b37d08cb5b15359c363e7816fc7c163c1709a5ac
[ "MIT" ]
null
null
null
predict.py
faroit/deep-fireball
b37d08cb5b15359c363e7816fc7c163c1709a5ac
[ "MIT" ]
null
null
null
predict.py
faroit/deep-fireball
b37d08cb5b15359c363e7816fc7c163c1709a5ac
[ "MIT" ]
null
null
null
# elsewhere... import pandas as pd from keras.models import model_from_json import random import sys import numpy as np maxlen = 15 step = 3 df = pd.read_pickle('articles.pandas') text = str.join(' ', df.text.tolist()) chars = set(text) print('total chars:', len(chars)) char_indices = dict((c, i) for i, c in enumer...
25.8
67
0.646641
222
1,548
4.418919
0.400901
0.03262
0.026504
0.014271
0.042813
0.042813
0
0
0
0
0
0.01793
0.207364
1,548
59
68
26.237288
0.781581
0.046512
0
0.04878
0
0
0.084861
0.016293
0
0
0
0
0
1
0.02439
false
0
0.121951
0
0.170732
0.121951
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c3890eac8b3049a655feef5c632c8c9d2d8f1d4
4,200
py
Python
tests/simulation/test_container.py
Zavioer/SIR-simulation-IBM-ESI
45a7b1d4f0e3cec8dcd8284e00f25386b6e77c58
[ "MIT" ]
null
null
null
tests/simulation/test_container.py
Zavioer/SIR-simulation-IBM-ESI
45a7b1d4f0e3cec8dcd8284e00f25386b6e77c58
[ "MIT" ]
37
2020-05-19T20:11:53.000Z
2020-06-19T11:26:41.000Z
tests/simulation/test_container.py
Zavioer/SIR-simulation-IBM-ESI
45a7b1d4f0e3cec8dcd8284e00f25386b6e77c58
[ "MIT" ]
1
2020-05-25T08:10:21.000Z
2020-05-25T08:10:21.000Z
import unittest from simulation import container from simulation import person class ContainerTestCase(unittest.TestCase): def setUp(self) -> None: self.box = container.Container(100, 1000, 300, 1, 0.5) self.s_instance = person.Person(x=0, y=0, infection_probability=0.25, ...
49.411765
87
0.627143
513
4,200
4.808967
0.255361
0.045399
0.028375
0.024321
0.254966
0.19619
0.114309
0.083502
0.083502
0.083502
0
0.036938
0.290952
4,200
84
88
50
0.791471
0
0
0.058824
0
0
0.275476
0
0
0
0
0
0.161765
1
0.161765
false
0
0.044118
0
0.220588
0.147059
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c38a782a768dd6c26c320e977f3ea8c8bc5e836
1,403
py
Python
pontoon/base/migrations/0007_auto_20150710_0944.py
Tratty/pontoon
ecb903d72f9274f02137b16669cc3c5859f6329c
[ "BSD-3-Clause" ]
3
2020-01-27T12:26:20.000Z
2022-02-03T09:56:02.000Z
pontoon/base/migrations/0007_auto_20150710_0944.py
texnoman/pontoon-src
6b40ac229605e99966c3bdd1510b772c89d4de24
[ "BSD-3-Clause" ]
1
2021-03-24T12:33:03.000Z
2021-03-24T12:50:19.000Z
pontoon/base/migrations/0007_auto_20150710_0944.py
texnoman/pontoon-src
6b40ac229605e99966c3bdd1510b772c89d4de24
[ "BSD-3-Clause" ]
4
2020-01-26T21:28:43.000Z
2021-06-10T15:25:19.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import pontoon.base.models class Migration(migrations.Migration): dependencies = [ ("base", "0006_auto_20150602_0616"), ] operations = [ migrations.AddField( model_name="...
28.06
63
0.459729
122
1,403
5.131148
0.47541
0.043131
0.054313
0.057508
0
0
0
0
0
0
0
0.030525
0.416251
1,403
49
64
28.632653
0.733822
0.014968
0
0.209302
0
0
0.115942
0.016667
0
0
0
0
0
1
0
false
0
0.069767
0
0.139535
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c3b77cba219a97b12762ac1a37f632c5f68d380
11,331
py
Python
platformio/project/commands/init.py
ufo2011/platformio-core
0ceae62701731f8b32c34d7993a34dea34aea59c
[ "Apache-2.0" ]
null
null
null
platformio/project/commands/init.py
ufo2011/platformio-core
0ceae62701731f8b32c34d7993a34dea34aea59c
[ "Apache-2.0" ]
null
null
null
platformio/project/commands/init.py
ufo2011/platformio-core
0ceae62701731f8b32c34d7993a34dea34aea59c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
31.828652
119
0.662519
1,472
11,331
4.991848
0.280571
0.035384
0.009526
0.009254
0.189303
0.15841
0.126293
0.105471
0.088051
0.078253
0
0.002177
0.2299
11,331
355
120
31.91831
0.839904
0.064602
0
0.228856
0
0
0.159669
0.00328
0
0
0
0
0
1
0.054726
false
0
0.049751
0
0.129353
0.019901
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c3b8f8f699a46823b3a538245f3bafebd9b481d
56
py
Python
12_module_release/message/__init__.py
DeveloperLY/Python-practice
85062afee1dc6b60b7011b0e3800b65fc9b9e9b2
[ "MIT" ]
null
null
null
12_module_release/message/__init__.py
DeveloperLY/Python-practice
85062afee1dc6b60b7011b0e3800b65fc9b9e9b2
[ "MIT" ]
null
null
null
12_module_release/message/__init__.py
DeveloperLY/Python-practice
85062afee1dc6b60b7011b0e3800b65fc9b9e9b2
[ "MIT" ]
null
null
null
from . import send_message from . import receive_message
28
29
0.839286
8
56
5.625
0.625
0.444444
0
0
0
0
0
0
0
0
0
0
0.125
56
2
29
28
0.918367
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
7c3d1d7e925f2c1752e9865895938aea4dee29d9
6,830
py
Python
guardian/decorators.py
peopledoc/django-guardian
459827c2329975113cbf0d11f4fd476b5689a055
[ "BSD-2-Clause" ]
null
null
null
guardian/decorators.py
peopledoc/django-guardian
459827c2329975113cbf0d11f4fd476b5689a055
[ "BSD-2-Clause" ]
null
null
null
guardian/decorators.py
peopledoc/django-guardian
459827c2329975113cbf0d11f4fd476b5689a055
[ "BSD-2-Clause" ]
null
null
null
from django.conf import settings from django.contrib.auth import REDIRECT_FIELD_NAME from django.core.exceptions import PermissionDenied from django.http import HttpResponseForbidden, HttpResponseRedirect from django.utils.functional import wraps from django.utils.http import urlquote from django.db.models import Model...
47.762238
80
0.630893
796
6,830
5.258794
0.273869
0.026278
0.028428
0.016722
0.11419
0.053989
0.043
0.043
0
0
0
0.014131
0.295461
6,830
142
81
48.098592
0.855777
0.048609
0
0.027027
0
0
0.116797
0.005387
0
0
0
0
0
0
null
null
0.027027
0.175676
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7c3f32514a25840c1ebcbe049a42682f11ad8a25
160
py
Python
images/forms.py
mpgarate/OST-fauxra
d2aa554a082b14268c72220a0b19f2a306deb4d2
[ "MIT" ]
1
2019-11-24T09:13:00.000Z
2019-11-24T09:13:00.000Z
images/forms.py
ikechukwuhenry/OST-fauxra
d2aa554a082b14268c72220a0b19f2a306deb4d2
[ "MIT" ]
null
null
null
images/forms.py
ikechukwuhenry/OST-fauxra
d2aa554a082b14268c72220a0b19f2a306deb4d2
[ "MIT" ]
1
2018-08-15T16:03:29.000Z
2018-08-15T16:03:29.000Z
from django import forms from django.forms import ModelForm from images.models import Image class ImageForm(ModelForm): class Meta: model = Image
17.777778
34
0.75
21
160
5.714286
0.571429
0.166667
0
0
0
0
0
0
0
0
0
0
0.20625
160
8
35
20
0.944882
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
7c3f358dbfca775c5fb0e3b7866f5656395f8320
8,749
py
Python
WebIOPi-0.7.1/python/webiopi/devices/analog/__init__.py
MORIMOTO520212/Arm-crawler
95dca0ea9485e4c20a0910687362010604331b55
[ "MIT" ]
1
2020-04-25T00:55:45.000Z
2020-04-25T00:55:45.000Z
WebIOPi-0.7.1/python/webiopi/devices/analog/__init__.py
MORIMOTO520212/Arm-crawler
95dca0ea9485e4c20a0910687362010604331b55
[ "MIT" ]
4
2015-05-28T23:20:13.000Z
2015-05-28T23:24:01.000Z
services/webiopi/src/python/webiopi/devices/analog/__init__.py
creative-workflow/pi-setup
d6d28cb8d34ef71b1e8ac95dd94099bfad08837a
[ "MIT" ]
1
2022-03-29T01:58:02.000Z
2022-03-29T01:58:02.000Z
# Copyright 2012-2013 Eric Ptak - trouch.com # # 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 l...
32.403704
100
0.606927
957
8,749
5.430512
0.196447
0.042332
0.030787
0.02309
0.374062
0.214547
0.14085
0.100635
0.063691
0.063691
0
0.022366
0.259001
8,749
269
101
32.524164
0.779269
0.069151
0
0.287081
0
0
0.113449
0.041344
0
0
0
0
0
1
0.196172
false
0
0.009569
0.057416
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c3f8ea43badcc3a68b54f56814ef9f940a1de25
3,142
py
Python
osc_choochoo/tests/v1/test_train.py
dtroyer/osc-loco
57119ab84528933da9cbcd57dcd4f5b842a58186
[ "Apache-2.0" ]
1
2019-01-15T10:02:06.000Z
2019-01-15T10:02:06.000Z
osc_choochoo/tests/v1/test_train.py
dtroyer/osc-loco
57119ab84528933da9cbcd57dcd4f5b842a58186
[ "Apache-2.0" ]
1
2018-03-03T13:28:09.000Z
2018-03-03T13:28:09.000Z
osc_choochoo/tests/v1/test_train.py
dtroyer/osc-loco
57119ab84528933da9cbcd57dcd4f5b842a58186
[ "Apache-2.0" ]
1
2018-03-03T12:31:24.000Z
2018-03-03T12:31:24.000Z
# Copyright 2013 Nebula 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 law or agreed to...
29.092593
77
0.624761
375
3,142
5.088
0.389333
0.031447
0.023585
0.02673
0.231656
0.175052
0.150943
0.150943
0.111111
0.111111
0
0.007996
0.283577
3,142
107
78
29.364486
0.839627
0.237747
0
0.171875
0
0
0.044229
0
0
0
0
0
0.078125
1
0.09375
false
0
0.078125
0
0.234375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c4069a9b6ece4c3708be4cbcbdf02893a94dc6d
1,134
py
Python
scripts/firefox-wrapper.py
darioncassel/OmniCrawl
62317e07340df7eb758a1b8de80679b6d4293d49
[ "MIT" ]
2
2021-12-02T20:30:23.000Z
2022-01-05T01:38:45.000Z
scripts/firefox-wrapper.py
darioncassel/OmniCrawl
62317e07340df7eb758a1b8de80679b6d4293d49
[ "MIT" ]
null
null
null
scripts/firefox-wrapper.py
darioncassel/OmniCrawl
62317e07340df7eb758a1b8de80679b6d4293d49
[ "MIT" ]
4
2021-09-16T01:28:05.000Z
2022-03-20T21:38:06.000Z
#!/usr/bin/env python3 import sys from os.path import dirname, abspath, join import subprocess # Note this does not resolve symbolic links # https://stackoverflow.com/a/17806123 FIREFOX_BINARY = join(dirname(abspath(__file__)), 'firefox') argvs = list(sys.argv) argvs[0] = FIREFOX_BINARY # geckdriver will run `firef...
30.648649
83
0.686067
162
1,134
4.635802
0.425926
0.117177
0.111851
0.063915
0.149134
0.149134
0.090546
0.090546
0.090546
0
0
0.017641
0.200176
1,134
36
84
31.5
0.810364
0.263668
0
0.26087
0
0
0.050725
0
0
0
0
0
0
1
0
false
0
0.130435
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c409487091269b7e314c05627f47667f44be8cd
37,177
py
Python
src/pretix/base/payment.py
whiteyhat/pretix
34d1fcf077a92765cd796d81d1aa6695d4801a9a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/base/payment.py
whiteyhat/pretix
34d1fcf077a92765cd796d81d1aa6695d4801a9a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/base/payment.py
whiteyhat/pretix
34d1fcf077a92765cd796d81d1aa6695d4801a9a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import json import logging from collections import OrderedDict from decimal import ROUND_HALF_UP, Decimal from typing import Any, Dict, Union import pytz from django import forms from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.dispatch import receiver from django.fo...
42.536613
124
0.63047
4,425
37,177
5.181017
0.155706
0.009465
0.019192
0.01012
0.365524
0.316497
0.257524
0.229957
0.201518
0.181235
0
0.002633
0.295236
37,177
873
125
42.585338
0.872371
0.320709
0
0.399586
0
0
0.162504
0.017036
0
0
0
0
0
1
0.138716
false
0.00207
0.060041
0.05176
0.378882
0.00207
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c41415e2c7a8ce5f2d75904be89b903c2cdfef0
633
py
Python
tests/AssertFail/run.py
sag-tgo/EPL_assert_demo
a43541e4472dfab7da6538ae9f220b5e042d158c
[ "Apache-2.0" ]
null
null
null
tests/AssertFail/run.py
sag-tgo/EPL_assert_demo
a43541e4472dfab7da6538ae9f220b5e042d158c
[ "Apache-2.0" ]
null
null
null
tests/AssertFail/run.py
sag-tgo/EPL_assert_demo
a43541e4472dfab7da6538ae9f220b5e042d158c
[ "Apache-2.0" ]
null
null
null
from pysys.basetest import BaseTest from apama.correlator import CorrelatorHelper import os class PySysTest(BaseTest): def execute(self): corr = CorrelatorHelper(self, name='correlator') corr.start(logfile='correlator.log') corr.injectEPL(os.getenv('APAMA_HOME','') + '/monitors/ManagementImpl.mon') corr.injec...
33.315789
77
0.737757
74
633
6.283784
0.513514
0.111828
0.103226
0.090323
0.163441
0.163441
0.163441
0
0
0
0
0
0.094787
633
18
78
35.166667
0.811518
0
0
0
0
0
0.333333
0.118483
0
0
0
0
0.285714
1
0.142857
false
0
0.214286
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c419b5717a91fec1bbd9b0db3fdfc3ceb131303
1,231
py
Python
src/beast/python/beast/env/ReadEnvFile_test.py
Ziftr/stellard
626514cbbb2c6c2b6844315ca98a2bfcbca0b43d
[ "BSL-1.0" ]
58
2015-01-07T09:10:59.000Z
2019-07-15T14:34:01.000Z
src/beast/python/beast/env/ReadEnvFile_test.py
Ziftr/stellard
626514cbbb2c6c2b6844315ca98a2bfcbca0b43d
[ "BSL-1.0" ]
12
2015-01-02T00:01:45.000Z
2018-04-25T12:35:02.000Z
src/beast/python/beast/env/ReadEnvFile_test.py
Ziftr/stellard
626514cbbb2c6c2b6844315ca98a2bfcbca0b43d
[ "BSL-1.0" ]
23
2015-01-04T00:13:27.000Z
2019-02-15T18:01:17.000Z
from __future__ import absolute_import, division, print_function, unicode_literals from unittest import TestCase from beast.env.ReadEnvFile import read_env_file from beast.util import Terminal Terminal.CAN_CHANGE_COLOR = False JSON = """ { "FOO": "foo", "BAR": "bar bar bar", "CPPFLAGS": "-std=c++11 -frtti -fno...
23.673077
82
0.680747
174
1,231
4.66092
0.396552
0.066584
0.066584
0.04439
0.477189
0.353884
0.218249
0.218249
0.218249
0.218249
0
0.009852
0.175467
1,231
51
83
24.137255
0.789163
0
0
0.051282
0
0
0.421608
0
0
0
0
0
0.102564
1
0.076923
false
0
0.102564
0
0.205128
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c42dc9f24c848eb5660235f34da5faf02dd1e33
2,192
py
Python
signin/tests.py
pptnz/swa_team2
253ae83d73c00245d359574d6a16f4eba9830950
[ "MIT" ]
null
null
null
signin/tests.py
pptnz/swa_team2
253ae83d73c00245d359574d6a16f4eba9830950
[ "MIT" ]
3
2018-06-07T17:18:16.000Z
2021-06-10T20:19:27.000Z
signin/tests.py
pptnz/swa_team2
253ae83d73c00245d359574d6a16f4eba9830950
[ "MIT" ]
1
2018-06-25T23:52:57.000Z
2018-06-25T23:52:57.000Z
import json from django.test import TestCase from django.contrib.auth.models import User from .models import CustomUser from django.apps import apps from .apps import SigninConfig class SignInTest(TestCase): def setUp(self): self.django_user = User.objects.create_user(username='testusername', password='t...
39.142857
124
0.696624
252
2,192
5.876984
0.253968
0.047265
0.097232
0.103984
0.466577
0.411884
0.411884
0.351114
0.180959
0.081026
0
0.006583
0.168339
2,192
55
125
39.854545
0.805815
0.010037
0
0.219512
0
0
0.17297
0.012454
0
0
0
0.018182
0.268293
1
0.268293
false
0.170732
0.146341
0
0.439024
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
1
0
0
0
0
0
3
7c44dd7ee7dcb34a8c6b443486c1190c2f8b538a
707
py
Python
tree/list/BinaryNode.py
EliHar/BinaryTree-ADT
bf220eb8ccb04f6fee7d7a67ef7e9cd00cc6a4c1
[ "MIT" ]
null
null
null
tree/list/BinaryNode.py
EliHar/BinaryTree-ADT
bf220eb8ccb04f6fee7d7a67ef7e9cd00cc6a4c1
[ "MIT" ]
null
null
null
tree/list/BinaryNode.py
EliHar/BinaryTree-ADT
bf220eb8ccb04f6fee7d7a67ef7e9cd00cc6a4c1
[ "MIT" ]
null
null
null
__author__ = 'Elias Haroun' class BinaryNode(object): def __init__(self, data, left, right): self.data = data self.left = left self.right = right def getData(self): return self.data def getLeft(self): return self.left def getRight(self): return self.r...
19.108108
52
0.589816
87
707
4.701149
0.298851
0.146699
0.171149
0.05868
0
0
0
0
0
0
0
0
0.308345
707
36
53
19.638889
0.836401
0
0
0.083333
0
0
0.016997
0
0
0
0
0
0
1
0.416667
false
0
0
0.25
0.708333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
7c46086ba91c653227726b101b253bd36be2a7f4
5,963
py
Python
boolean2/tokenizer.py
AbrahmAB/booleannet
a07124047d18a5b7265e050a234969ac58970c7a
[ "MIT" ]
null
null
null
boolean2/tokenizer.py
AbrahmAB/booleannet
a07124047d18a5b7265e050a234969ac58970c7a
[ "MIT" ]
null
null
null
boolean2/tokenizer.py
AbrahmAB/booleannet
a07124047d18a5b7265e050a234969ac58970c7a
[ "MIT" ]
null
null
null
""" Main tokenizer. """ from itertools import * import sys, random import util import ply.lex as lex class Lexer: """ Lexer for boolean rules """ literals = '=*,' tokens = ( 'LABEL', 'ID','STATE', 'ASSIGN', 'EQUAL', 'AND', 'OR', 'NOT', 'NUMBER', 'LPAREN','RPAREN', 'COMMA'...
25.374468
171
0.528928
777
5,963
3.990991
0.234234
0.017414
0.022573
0.021928
0.159626
0.133505
0.098355
0.060626
0.039987
0.039987
0
0.019417
0.309073
5,963
235
172
25.374468
0.733252
0.015093
0
0.097744
0
0
0.139391
0.007136
0
0
0
0
0
0
null
null
0
0.037594
null
null
0.007519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7c46de4fdbd3dc2c58b659d8b01a5d17658d1622
14,736
py
Python
aiida/cmdline/params/options/test_interactive.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
1
2019-04-29T12:39:31.000Z
2019-04-29T12:39:31.000Z
aiida/cmdline/params/options/test_interactive.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
null
null
null
aiida/cmdline/params/options/test_interactive.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
null
null
null
"""Unit tests for the InteractiveOption.""" from __future__ import absolute_import import unittest import click from click.testing import CliRunner from click.types import IntParamType from aiida.cmdline.params.options.interactive import InteractiveOption from aiida.cmdline.params.options import NON_INTERACTIVE cla...
38.984127
106
0.636401
1,688
14,736
5.454384
0.133294
0.048224
0.04073
0.052134
0.657978
0.612252
0.558054
0.532638
0.480395
0.472901
0
0.007643
0.25414
14,736
377
107
39.087533
0.830043
0.244503
0
0.49537
0
0
0.082059
0
0
0
0
0
0.287037
1
0.152778
false
0
0.032407
0.00463
0.236111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c4747750d4783fac45721046885fc982b92a07c
3,195
py
Python
scripts/migration/migrate_registered_meta.py
fabmiz/osf.io
8d86af3f0a6e5388bd5b18383e68e27b65a66247
[ "Apache-2.0" ]
null
null
null
scripts/migration/migrate_registered_meta.py
fabmiz/osf.io
8d86af3f0a6e5388bd5b18383e68e27b65a66247
[ "Apache-2.0" ]
null
null
null
scripts/migration/migrate_registered_meta.py
fabmiz/osf.io
8d86af3f0a6e5388bd5b18383e68e27b65a66247
[ "Apache-2.0" ]
null
null
null
""" Changes existing registered_meta on a node to new schema layout required for the prereg-prize """ import json import sys import logging from modularodm import Q from framework.mongo import database as db from framework.mongo.utils import from_mongo from framework.transactions.context import TokuTransaction from ...
29.859813
111
0.576526
361
3,195
4.889197
0.34349
0.055524
0.020397
0.013598
0.038527
0.015864
0
0
0
0
0
0.004682
0.331455
3,195
106
112
30.141509
0.821629
0.074178
0
0.126437
0
0
0.125891
0
0
0
0
0
0
1
0.034483
false
0.011494
0.126437
0
0.172414
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c478777d84107b3217342ab649b11b3244e8389
7,606
py
Python
pyec/distribution/bayes/structure/basic.py
hypernicon/pyec
7072835c97d476fc45ffc3b34f5c3ec607988e6d
[ "MIT" ]
2
2015-03-16T21:18:27.000Z
2017-10-09T19:59:24.000Z
pyec/distribution/bayes/structure/basic.py
hypernicon/pyec
7072835c97d476fc45ffc3b34f5c3ec607988e6d
[ "MIT" ]
null
null
null
pyec/distribution/bayes/structure/basic.py
hypernicon/pyec
7072835c97d476fc45ffc3b34f5c3ec607988e6d
[ "MIT" ]
null
null
null
""" Copyright (C) 2012 Alan J Lockett Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute,...
35.050691
460
0.620431
858
7,606
5.48951
0.258741
0.053716
0.017197
0.015287
0.310403
0.278981
0.206794
0.140127
0.128238
0.109554
0
0.006008
0.299763
7,606
217
461
35.050691
0.878333
0.007757
0
0.511905
0
0
0.018501
0
0
0
0
0
0
0
null
null
0.029762
0.017857
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7c484eb9bf609790d2ba9c1adb147528492648ab
2,108
py
Python
graph/tsp.py
pingrunhuang/CodeChallenge
a8e5274e04c47d851836197907266418af4f1a22
[ "MIT" ]
null
null
null
graph/tsp.py
pingrunhuang/CodeChallenge
a8e5274e04c47d851836197907266418af4f1a22
[ "MIT" ]
null
null
null
graph/tsp.py
pingrunhuang/CodeChallenge
a8e5274e04c47d851836197907266418af4f1a22
[ "MIT" ]
null
null
null
""" given a fully connected undirected graph(If no path exists between two cities, adding an arbitrarily long edge will complete the graph without affecting the optimal tour), find the path with the lowest cost in total for a salesman to travel from a given start vertex """ import time class Edge: def __init__(sel...
29.690141
171
0.576376
278
2,108
4.23741
0.31295
0.0382
0.040747
0.025467
0
0
0
0
0
0
0
0.012873
0.29981
2,108
71
172
29.690141
0.78523
0.182163
0
0.104167
0
0
0.01489
0
0
0
0
0
0
1
0.145833
false
0.020833
0.020833
0.020833
0.3125
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c486bb219145330aa050e526b0e111823623d51
620
py
Python
projects/code_combat/8_Cloudrip_Mountain/471-Distracting_Dungeon/distracting_dungeon.py
only-romano/junkyard
b60a25b2643f429cdafee438d20f9966178d6f36
[ "MIT" ]
null
null
null
projects/code_combat/8_Cloudrip_Mountain/471-Distracting_Dungeon/distracting_dungeon.py
only-romano/junkyard
b60a25b2643f429cdafee438d20f9966178d6f36
[ "MIT" ]
null
null
null
projects/code_combat/8_Cloudrip_Mountain/471-Distracting_Dungeon/distracting_dungeon.py
only-romano/junkyard
b60a25b2643f429cdafee438d20f9966178d6f36
[ "MIT" ]
null
null
null
def moveBothTo(point): while hero.distanceTo(point) > 1: hero.move(point) hero.command(peasant, "move", point) peasant = hero.findNearest(hero.findFriends()) while True: hero.command(peasant, "buildXY", "decoy", peasant.pos.x + 2, peasant.pos.y) var nextPoint = {"x": hero.pos.x,...
31
80
0.606452
76
620
4.947368
0.355263
0.074468
0.095745
0.090426
0.095745
0
0
0
0
0
0
0.014989
0.246774
620
19
81
32.631579
0.79015
0
0
0.125
0
0
0.033278
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7c487be5e97c4669f698df37e679a53c19c84c61
515
py
Python
firstBadVersion.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
firstBadVersion.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
firstBadVersion.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
# The isBadVersion API is already defined for you. # @param version, an integer # @return a bool # def isBadVersion(version): class Solution(object): def firstBadVersion(self, n): start = 1 end = n while start + 1 < end: mid = start + (end - start) / 2 if isBadVersi...
22.391304
50
0.524272
56
515
4.821429
0.553571
0.044444
0.066667
0
0
0
0
0
0
0
0
0.009646
0.396117
515
22
51
23.409091
0.858521
0.227184
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c48ecfa52411dc6356f3fa1289a95505f086e55
2,599
py
Python
issues/migrations/0001_initial.py
QizaiMing/ergo-project-manager
2b02b2ab6d9e48bfccbbca8c05180b07177dcb77
[ "MIT" ]
null
null
null
issues/migrations/0001_initial.py
QizaiMing/ergo-project-manager
2b02b2ab6d9e48bfccbbca8c05180b07177dcb77
[ "MIT" ]
3
2020-11-01T22:08:38.000Z
2022-03-12T00:49:00.000Z
issues/migrations/0001_initial.py
QizaiMing/ergo-project-manager
2b02b2ab6d9e48bfccbbca8c05180b07177dcb77
[ "MIT" ]
2
2021-01-03T07:17:16.000Z
2021-05-29T17:27:11.000Z
# Generated by Django 2.2.12 on 2020-05-01 03:34 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] op...
50.960784
157
0.614852
278
2,599
5.586331
0.320144
0.036059
0.054089
0.084997
0.529298
0.486156
0.438506
0.386993
0.386993
0.386993
0
0.015516
0.231243
2,599
50
158
51.98
0.761762
0.017699
0
0.395349
1
0
0.124657
0
0
0
0
0
0
1
0
false
0
0.069767
0
0.162791
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7c4a4e05ac30862172f332ac22daa59c8c1ecce1
2,764
py
Python
com/binghe/hacker/tools/script/ak/check_virus.py
ffffff0x/python-hacker
a2dc7f9031669a86bd2c87892c0a8c1e54bb2a79
[ "Apache-2.0" ]
52
2019-02-11T13:02:20.000Z
2022-02-06T07:43:55.000Z
com/binghe/hacker/tools/script/ak/check_virus.py
sunshinelyz/python-hacker
a2dc7f9031669a86bd2c87892c0a8c1e54bb2a79
[ "Apache-2.0" ]
null
null
null
com/binghe/hacker/tools/script/ak/check_virus.py
sunshinelyz/python-hacker
a2dc7f9031669a86bd2c87892c0a8c1e54bb2a79
[ "Apache-2.0" ]
15
2019-02-25T03:04:50.000Z
2021-10-19T02:13:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # -*- coding: gbk -*- # Date: 2019/2/22 # Created by 冰河 # Description 将生成的bindshell.exe提交到vscan.novirusthanks.org检测 # 用法 python check_virus.py -f bindshell.exe # 博客 https://blog.csdn.net/l1028386804 import re import httplib import time import os import optparse...
29.72043
67
0.599132
291
2,764
5.652921
0.4811
0.007295
0.045593
0.035258
0.167781
0.167781
0.167781
0.167781
0.080243
0.080243
0
0.020457
0.239508
2,764
93
68
29.72043
0.762131
0.087192
0
0.185714
0
0
0.242846
0.079889
0
0
0
0
0
0
null
null
0
0.085714
null
null
0.114286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7c4ae67259cc4af329dd35bc62e3ceddb69e3a57
7,190
py
Python
cogs/remind.py
LoganHaug/reminder-bot
1bb1853b79e0299240a214e947e8bc29ed34e46e
[ "MIT" ]
2
2021-01-02T04:30:54.000Z
2021-01-02T04:30:54.000Z
cogs/remind.py
LoganHaug/reminder-bot
1bb1853b79e0299240a214e947e8bc29ed34e46e
[ "MIT" ]
8
2021-01-02T02:06:04.000Z
2021-03-15T06:05:50.000Z
cogs/remind.py
LoganHaug/reminder-bot
1bb1853b79e0299240a214e947e8bc29ed34e46e
[ "MIT" ]
2
2021-01-02T01:50:06.000Z
2021-01-02T20:02:58.000Z
import asyncio from typing import Union import datetime import time from discord.ext import commands import yaml from cogs import checks import database import utils # Loads the repeating interval dictionary with open("conversions.yml", "r") as conversion_file: conversion_dict = yaml.load(conversion_file, Loade...
36.683673
362
0.568985
771
7,190
5.189364
0.246433
0.029993
0.017996
0.025494
0.205449
0.150462
0.132967
0.112222
0.102224
0.07998
0
0.000211
0.339917
7,190
195
363
36.871795
0.842815
0.080668
0
0.189873
0
0.006329
0.146201
0.016383
0
0
0
0
0
1
0.012658
false
0
0.056962
0
0.075949
0.006329
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c4b0703a1999f5fa6b05313d2f3c64b1a7c6c84
948
py
Python
setup.py
csengor/toraman_py
5cb7b39ae073ecc2adcb7cea83b79492ac5aa485
[ "MIT" ]
2
2020-02-01T08:21:11.000Z
2021-03-12T13:58:26.000Z
setup.py
csengor/toraman_py
5cb7b39ae073ecc2adcb7cea83b79492ac5aa485
[ "MIT" ]
null
null
null
setup.py
csengor/toraman_py
5cb7b39ae073ecc2adcb7cea83b79492ac5aa485
[ "MIT" ]
null
null
null
import setuptools from toraman.version import __version__ with open('README.md', 'r') as input_file: long_description = input_file.read() setuptools.setup( name='toraman', version=__version__, author='Çağatay Onur Şengör', author_email='contact@csengor.com', description='A computer-assisted t...
30.580645
116
0.667722
99
948
6.20202
0.69697
0.09772
0.087948
0.09772
0
0
0
0
0
0
0
0.002639
0.200422
948
30
117
31.6
0.807388
0
0
0.074074
0
0
0.415612
0
0
0
0
0
0
1
0
false
0
0.074074
0
0.074074
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c4b2f5648b8aa2f586e693897cf20f646266eed
457
py
Python
declarations_site/cms_pages/migrations/0015_auto_20150615_0201.py
li-ar/declarations.com.ua
343cd86cc5a4bd895f2859ed896728f6416ac223
[ "MIT" ]
32
2015-04-01T15:17:35.000Z
2021-05-02T20:46:33.000Z
declarations_site/cms_pages/migrations/0015_auto_20150615_0201.py
li-ar/declarations.com.ua
343cd86cc5a4bd895f2859ed896728f6416ac223
[ "MIT" ]
52
2015-03-23T21:37:04.000Z
2022-02-10T07:27:13.000Z
declarations_site/cms_pages/migrations/0015_auto_20150615_0201.py
li-ar/declarations.com.ua
343cd86cc5a4bd895f2859ed896728f6416ac223
[ "MIT" ]
18
2015-03-16T22:10:44.000Z
2021-11-01T12:56:12.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('cms_pages', '0014_homepage_news_count'), ] operations = [ migrations.AlterField( model_name='newspage', ...
21.761905
67
0.608315
44
457
6.045455
0.795455
0
0
0
0
0
0
0
0
0
0
0.015106
0.275711
457
20
68
22.85
0.78852
0.045952
0
0
0
0
0.110599
0.0553
0
0
0
0
0
1
0
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c4b6fc1c38e59243da6f002769c9090efca9c53
4,112
py
Python
tests/models/test_grad_norm.py
nightlessbaron/pytorch-lightning
239bea5c29cef0d1a0cfb319de5dbc9227aa2a53
[ "Apache-2.0" ]
3
2021-01-28T14:04:17.000Z
2021-09-08T12:00:11.000Z
tests/models/test_grad_norm.py
nightlessbaron/pytorch-lightning
239bea5c29cef0d1a0cfb319de5dbc9227aa2a53
[ "Apache-2.0" ]
8
2020-10-27T22:39:24.000Z
2021-01-24T16:41:34.000Z
tests/models/test_grad_norm.py
nightlessbaron/pytorch-lightning
239bea5c29cef0d1a0cfb319de5dbc9227aa2a53
[ "Apache-2.0" ]
1
2022-03-21T18:37:54.000Z
2022-03-21T18:37:54.000Z
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
35.756522
115
0.674611
582
4,112
4.580756
0.369416
0.030008
0.020255
0.031508
0.046512
0.025506
0
0
0
0
0
0.011017
0.227383
4,112
114
116
36.070175
0.82814
0.260214
0
0.057143
0
0
0.038474
0.008955
0
0
0
0
0.071429
1
0.071429
false
0
0.114286
0
0.242857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c4b72df2d2012d9d79281852a5cd3bef3ea8e8d
48,507
py
Python
tensorflow/tools/compatibility/renames_v2.py
junjun315/tensorflow
40b800fc24e1eea8642b79087925939121e8e25f
[ "Apache-2.0" ]
null
null
null
tensorflow/tools/compatibility/renames_v2.py
junjun315/tensorflow
40b800fc24e1eea8642b79087925939121e8e25f
[ "Apache-2.0" ]
null
null
null
tensorflow/tools/compatibility/renames_v2.py
junjun315/tensorflow
40b800fc24e1eea8642b79087925939121e8e25f
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
64.935743
128
0.744284
6,756
48,507
5.092362
0.10894
0.110452
0.137484
0.027468
0.536595
0.297465
0.172393
0.103593
0.07534
0.055517
0
0.014284
0.092213
48,507
746
129
65.022788
0.767021
0.021028
0
0
0
0
0.815552
0.672039
0
0
0
0
0.023513
1
0
false
0
0.005533
0
0.005533
0.001383
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7c4b952636f3e94167bbd00880673a8dc5635803
2,278
py
Python
deep_speech_2/decoder.py
Canpio/models
72874de98fba93592edee42b776e3d876b1d5504
[ "Apache-2.0" ]
1
2020-11-19T14:47:28.000Z
2020-11-19T14:47:28.000Z
deep_speech_2/decoder.py
JiayiFeng/models
72874de98fba93592edee42b776e3d876b1d5504
[ "Apache-2.0" ]
null
null
null
deep_speech_2/decoder.py
JiayiFeng/models
72874de98fba93592edee42b776e3d876b1d5504
[ "Apache-2.0" ]
null
null
null
""" CTC-like decoder utilitis. """ from itertools import groupby import numpy as np def ctc_best_path_decode(probs_seq, vocabulary): """ Best path decoding, also called argmax decoding or greedy decoding. Path consisting of the most probable tokens are further post-processed to remove consecutive...
37.344262
79
0.68525
296
2,278
5.158784
0.327703
0.057629
0.027505
0.047151
0.436149
0.436149
0.285527
0.239686
0.239686
0.239686
0
0.003486
0.244513
2,278
60
80
37.966667
0.883789
0.513608
0
0
0
0
0.139511
0
0
0
0
0
0
1
0.105263
false
0
0.105263
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c4bb1688cf1e8399ddcf1585b39fc36418f8801
827
py
Python
modules/gitbox/files/asfgit/hooks/sync.py
Humbedooh/infrastructure-puppet
a85f797d847b80e877cd5b7c66513970f6f80703
[ "Apache-2.0" ]
1
2019-06-09T10:25:04.000Z
2019-06-09T10:25:04.000Z
modules/gitbox/files/asfgit/hooks/sync.py
Humbedooh/infrastructure-puppet
a85f797d847b80e877cd5b7c66513970f6f80703
[ "Apache-2.0" ]
1
2020-05-08T07:07:43.000Z
2020-05-08T07:07:43.000Z
modules/gitbox/files/asfgit/hooks/sync.py
Humbedooh/infrastructure-puppet
a85f797d847b80e877cd5b7c66513970f6f80703
[ "Apache-2.0" ]
1
2019-12-31T07:28:19.000Z
2019-12-31T07:28:19.000Z
#!/usr/local/bin/python import json import socket import sys import asfgit.cfg as cfg import asfgit.git as git import asfgit.log as log import asfgit.util as util import subprocess, os, time def main(): ghurl = "git@github:apache/%s.git" % cfg.repo_name os.chdir("/x1/repos/asf/%s.git" % cfg.repo_name) tr...
30.62963
98
0.613059
120
827
4.175
0.475
0.095808
0.027944
0.043912
0.283433
0.223553
0.223553
0
0
0
0
0.001565
0.227328
827
26
99
31.807692
0.782473
0.026602
0
0
0
0
0.16812
0.029888
0
0
0
0
0
1
0.047619
false
0
0.380952
0
0.428571
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7c4c2493de449c01316f5bf624115a0a13bde60f
9,598
py
Python
rosimport/_rosdef_loader.py
asmodehn/rosimport
c63e4769650b1cf19f23fbaa65a356ffae20a536
[ "MIT" ]
5
2017-11-11T18:26:28.000Z
2019-06-12T08:47:58.000Z
rosimport/_rosdef_loader.py
asmodehn/rosimport
c63e4769650b1cf19f23fbaa65a356ffae20a536
[ "MIT" ]
8
2017-06-30T08:28:46.000Z
2017-07-18T04:50:18.000Z
rosimport/_rosdef_loader.py
pyros-dev/rosimport
c63e4769650b1cf19f23fbaa65a356ffae20a536
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import contextlib import importlib import site import tempfile import shutil from rosimport import genrosmsg_py, genrossrv_py """ A module to setup custom importer for .msg and .srv files Upon import, it will first find the .msg file, then generate t...
44.435185
137
0.620025
1,200
9,598
4.800833
0.276667
0.016664
0.013886
0.009721
0.255511
0.222184
0.20309
0.190939
0.157264
0.124631
0
0.003737
0.303084
9,598
215
138
44.64186
0.857527
0.443634
0
0.076923
0
0
0.036036
0.0043
0
0
0
0.009302
0
1
0.120879
false
0
0.263736
0.043956
0.527473
0.010989
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7c4c786476fcedafe44d921c5dfd79a0be6d09a1
1,093
py
Python
PyLeague/logger.py
Ahuge/PyLeague
ee8a14061c44c1c26a5102a05e33ad820f2b1b63
[ "MIT" ]
null
null
null
PyLeague/logger.py
Ahuge/PyLeague
ee8a14061c44c1c26a5102a05e33ad820f2b1b63
[ "MIT" ]
null
null
null
PyLeague/logger.py
Ahuge/PyLeague
ee8a14061c44c1c26a5102a05e33ad820f2b1b63
[ "MIT" ]
null
null
null
import sys def color(text, color): if color == "blue": color = "0;34m" elif color == "green": color = "0;32m" elif color == "red": color = "0;31m" elif color == "yellow": color = "0;33m" else: return text return "\033[%s%s\033[0m\n" % (color, text) cla...
19.175439
47
0.426349
118
1,093
3.915254
0.330508
0.116883
0.181818
0.246753
0.367965
0.333333
0.333333
0
0
0
0
0.043544
0.390668
1,093
56
48
19.517857
0.65015
0
0
0.227273
0
0
0.092406
0
0.045455
0
0
0
0
1
0.159091
false
0
0.022727
0
0.25
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7c4d61daea2ec370e51d0a70c14c812f08cd827f
1,491
py
Python
setup.py
swtwsk/dbt-airflow-manifest-parser
fae0049fb8ff3bc7a78488a48a31023f67fbeef3
[ "Apache-2.0" ]
null
null
null
setup.py
swtwsk/dbt-airflow-manifest-parser
fae0049fb8ff3bc7a78488a48a31023f67fbeef3
[ "Apache-2.0" ]
null
null
null
setup.py
swtwsk/dbt-airflow-manifest-parser
fae0049fb8ff3bc7a78488a48a31023f67fbeef3
[ "Apache-2.0" ]
null
null
null
"""dbt_airflow_factory module.""" from setuptools import find_packages, setup with open("README.md") as f: README = f.read() # Runtime Requirements. INSTALL_REQUIRES = ["pytimeparse==1.1.8"] # Dev Requirements EXTRA_REQUIRE = { "tests": [ "pytest>=6.2.2, <7.0.0", "pytest-cov>=2.8.0, <3.0.0",...
28.132075
78
0.613011
195
1,491
4.584615
0.517949
0.044743
0.057047
0.058166
0
0
0
0
0
0
0
0.052676
0.210597
1,491
52
79
28.673077
0.706882
0.044936
0
0.068182
0
0
0.453776
0.073395
0
0
0
0
0
1
0
false
0
0.022727
0
0.022727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c4e547145402a4cf7056e9aeb596f38cf59e239
173
py
Python
nightlightpi/errorstrings.py
jmb/NightLightPi
82f5d37a35e3457e31ca100524011908e5b33c4d
[ "MIT" ]
2
2018-10-01T21:45:22.000Z
2020-07-26T09:07:09.000Z
nightlightpi/errorstrings.py
jmb/NightLightPi
82f5d37a35e3457e31ca100524011908e5b33c4d
[ "MIT" ]
4
2017-09-29T19:19:07.000Z
2019-10-08T05:15:29.000Z
nightlightpi/errorstrings.py
jmb/NightLightPi
82f5d37a35e3457e31ca100524011908e5b33c4d
[ "MIT" ]
4
2017-10-08T22:08:25.000Z
2019-10-20T06:03:47.000Z
# -*- coding: utf-8; -*- """Define error strings raised by the application.""" MISSING_CONFIG_VALUE = """ '{0}' is not specified or invalid in the config file! """.strip()
24.714286
53
0.65896
24
173
4.666667
0.916667
0
0
0
0
0
0
0
0
0
0
0.013699
0.156069
173
6
54
28.833333
0.753425
0.410405
0
0
0
0
0.572917
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7c4f383bc1d3e78bec978541f8102910be2e6494
1,489
py
Python
karabo_bridge/tests/test_serialize.py
European-XFEL/karabo-bridge-py
c4b2847b837ae7156640cb8f787fcf96ac7f632e
[ "BSD-3-Clause" ]
6
2018-01-23T15:20:43.000Z
2022-02-28T13:20:50.000Z
karabo_bridge/tests/test_serialize.py
European-XFEL/karabo-bridge
a56f2bb57eecd49ebcdc9077234df8e76e725a6f
[ "BSD-3-Clause" ]
43
2018-01-24T16:12:49.000Z
2021-05-27T14:56:42.000Z
karabo_bridge/tests/test_serialize.py
European-XFEL/karabo-bridge
a56f2bb57eecd49ebcdc9077234df8e76e725a6f
[ "BSD-3-Clause" ]
4
2018-03-04T10:09:43.000Z
2018-05-03T14:49:27.000Z
import numpy as np import pytest from karabo_bridge import serialize, deserialize from .utils import compare_nested_dict def test_serialize(data, protocol_version): msg = serialize(data, protocol_version=protocol_version) assert isinstance(msg, list) d, m = deserialize(msg) compare_nested_dict(data...
31.020833
87
0.715917
182
1,489
5.637363
0.258242
0.190058
0.092593
0.109162
0.589669
0.535088
0.464912
0.432749
0.432749
0.432749
0
0.035513
0.167898
1,489
47
88
31.680851
0.792575
0
0
0.258065
0
0
0.106783
0
0
0
0
0
0.225806
1
0.16129
false
0
0.129032
0
0.290323
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c4fc346cb91cacd807ee64d79b21152c687d93c
2,029
py
Python
indico/testing/fixtures/util.py
bpedersen2/indico
8410ee5f8f8530a8692f3dd2d4015c3074b0aa30
[ "MIT" ]
1
2021-12-27T17:51:27.000Z
2021-12-27T17:51:27.000Z
indico/testing/fixtures/util.py
bpedersen2/indico
8410ee5f8f8530a8692f3dd2d4015c3074b0aa30
[ "MIT" ]
5
2021-04-08T19:26:47.000Z
2022-01-24T16:30:18.000Z
indico/testing/fixtures/util.py
bpedersen2/indico
8410ee5f8f8530a8692f3dd2d4015c3074b0aa30
[ "MIT" ]
2
2019-02-24T17:29:10.000Z
2021-04-08T19:23:27.000Z
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import inspect from datetime import datetime import freezegun import pytest from sqlalchemy import DateTi...
32.725806
80
0.706752
258
2,029
5.399225
0.468992
0.028715
0.022972
0.040201
0.041637
0.041637
0
0
0
0
0
0.005009
0.212913
2,029
61
81
33.262295
0.867251
0.383933
0
0.066667
0
0
0.021685
0
0
0
0
0
0
1
0.166667
false
0
0.2
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c508b5e90ac0bb6b42082e2791baf6ee6cd6d24
704
py
Python
config.py
RomashkaGang/Update_Checker
1763ec5d8110462a72f5015abdc5c5be3e3c9498
[ "MIT" ]
null
null
null
config.py
RomashkaGang/Update_Checker
1763ec5d8110462a72f5015abdc5c5be3e3c9498
[ "MIT" ]
null
null
null
config.py
RomashkaGang/Update_Checker
1763ec5d8110462a72f5015abdc5c5be3e3c9498
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # encoding: utf-8 import os # 是否启用调试 若启用 将不再忽略检查过程中发生的任何异常 # 建议在开发环境中启用 在生产环境中禁用 DEBUG_ENABLE = False # SQLite 数据库文件名 SQLITE_FILE = "saved.db" # 日志文件名 LOG_FILE = "log.txt" # 是否启用日志 ENABLE_LOGGER = True # 循环检查的间隔时间(默认: 180分钟) LOOP_CHECK_INTERVAL = 180 * 60 # 代理服务器 PROXIES = "127.0.0.1:1080"...
16
88
0.681818
101
704
4.584158
0.663366
0.030238
0.051836
0.060475
0
0
0
0
0
0
0
0.042808
0.170455
704
43
89
16.372093
0.75
0.285511
0
0
0
0
0.179959
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c51d040f9ea88aa996e0a5f03d0e36f5bd442f2
1,692
py
Python
cmdb-compliance/biz/handlers/asset_hipaa_data.py
zjj1002/aws-cloud-cmdb-system
47982007688e5db1272435891cb654ab11d0d60a
[ "Apache-2.0" ]
null
null
null
cmdb-compliance/biz/handlers/asset_hipaa_data.py
zjj1002/aws-cloud-cmdb-system
47982007688e5db1272435891cb654ab11d0d60a
[ "Apache-2.0" ]
1
2022-01-04T13:53:16.000Z
2022-01-04T13:53:16.000Z
cmdb-compliance/biz/handlers/asset_hipaa_data.py
zjj1002/aws-cloud-cmdb-system
47982007688e5db1272435891cb654ab11d0d60a
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import or_ from websdk.db_context import DBContext from libs.base_handler import BaseHandler from libs.pagination import pagination_util from models.hipaa_data import HipaaData, model_to_dict class HipaaDataHandler(BaseHandler): @pagination_util def get(self, *args, **kwargs): key = s...
36.782609
72
0.544326
170
1,692
5.176471
0.405882
0.092045
0.132955
0.2
0.270455
0.177273
0.177273
0.086364
0.086364
0
0
0.000874
0.323877
1,692
46
73
36.782609
0.768357
0.002955
0
0.210526
0
0
0.045077
0
0
0
0
0
0
1
0.026316
false
0.078947
0.131579
0
0.210526
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
7c51d615d63f8eb8639b0e23a11927b8ddf8f7ce
567
py
Python
scripts/count.py
hellocit/kadai2
896acc2394ea522d4b0d32db31321aea5b5f5dbd
[ "BSD-3-Clause" ]
null
null
null
scripts/count.py
hellocit/kadai2
896acc2394ea522d4b0d32db31321aea5b5f5dbd
[ "BSD-3-Clause" ]
null
null
null
scripts/count.py
hellocit/kadai2
896acc2394ea522d4b0d32db31321aea5b5f5dbd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import rospy from std_msgs.msg import Int32 import time rospy.init_node('count') # ノード名「count」に設定 pub = rospy.Publisher('count_up', Int32, queue_size=1) # パブリッシャ「count_up」を作成 rate = rospy.Rate(10) # 10Hzで実行 n = 0 time.sleep(2) w...
24.652174
77
0.502646
76
567
3.671053
0.605263
0.050179
0.078853
0
0
0
0
0
0
0
0
0.050704
0.373898
567
22
78
25.772727
0.735211
0.112875
0
0.111111
0
0
0.068136
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c5207cb66825a5b72fe13d9cb2fcbddac1440f5
412,069
py
Python
snmp/nav/smidumps/ZyXEL_GS4012F_mib.py
alexanderfefelov/nav-add-ons
c63d6942a9b8b1bf220efd7d33fb6be5f6bbb8af
[ "MIT" ]
null
null
null
snmp/nav/smidumps/ZyXEL_GS4012F_mib.py
alexanderfefelov/nav-add-ons
c63d6942a9b8b1bf220efd7d33fb6be5f6bbb8af
[ "MIT" ]
17
2020-09-17T15:00:31.000Z
2021-06-05T02:54:34.000Z
snmp/nav/smidumps/ZyXEL_GS4012F_mib.py
alexanderfefelov/nav-add-ons
c63d6942a9b8b1bf220efd7d33fb6be5f6bbb8af
[ "MIT" ]
null
null
null
# python version 1.0 DO NOT EDIT # # Generated by smidump version 0.4.8: # # smidump -f python ZYXEL-GS4012F-MIB FILENAME = "mibs/ZyXEL/zyxel-GS4012F.mib" MIB = { "moduleName" : "ZYXEL-GS4012F-MIB", "ZYXEL-GS4012F-MIB" : { "nodetype" : "module", "language" : "SMIv2", "organizat...
36.095743
154
0.372015
33,176
412,069
4.619906
0.05504
0.011848
0.083872
0.133588
0.750251
0.716957
0.701468
0.68592
0.663287
0.649703
0
0.093565
0.453744
412,069
11,415
155
36.098905
0.587348
0.013051
0
0.575068
1
0.073799
0.373645
0.089938
0
0
0
0
0
1
0
false
0.000181
0.000091
0
0.000091
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
7c52d32a4a5ef2c93209163ebb29e7bf07a94aa5
2,028
py
Python
rx/concurrency/timeoutscheduler.py
yutiansut/RxPY
c3bbba77f9ebd7706c949141725e220096deabd4
[ "ECL-2.0", "Apache-2.0" ]
1
2018-11-16T09:07:13.000Z
2018-11-16T09:07:13.000Z
rx/concurrency/timeoutscheduler.py
yutiansut/RxPY
c3bbba77f9ebd7706c949141725e220096deabd4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
rx/concurrency/timeoutscheduler.py
yutiansut/RxPY
c3bbba77f9ebd7706c949141725e220096deabd4
[ "ECL-2.0", "Apache-2.0" ]
1
2020-05-08T08:23:08.000Z
2020-05-08T08:23:08.000Z
import logging from threading import Timer from datetime import timedelta from rx.core import Scheduler, Disposable from rx.disposables import SingleAssignmentDisposable, CompositeDisposable from .schedulerbase import SchedulerBase log = logging.getLogger("Rx") class TimeoutScheduler(SchedulerBase): """A sched...
28.971429
83
0.668146
208
2,028
6.461538
0.298077
0.057292
0.033482
0.053571
0.480655
0.459821
0.459821
0.459821
0.459821
0.427083
0
0.001299
0.240631
2,028
69
84
29.391304
0.871429
0.103057
0
0.418605
0
0
0.00723
0
0
0
0
0
0
1
0.186047
false
0
0.139535
0
0.465116
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c53272867356ba8303ec22e79720d622e10756c
2,330
py
Python
vgazer/version/custom_checker/inputproto.py
edomin/vgazer
3ffe64f2517cbfbe0b0292bacc9fbf7391687e76
[ "CC0-1.0" ]
2
2020-10-09T13:51:04.000Z
2020-11-11T12:29:41.000Z
vgazer/version/custom_checker/inputproto.py
edomin/vgazer
3ffe64f2517cbfbe0b0292bacc9fbf7391687e76
[ "CC0-1.0" ]
null
null
null
vgazer/version/custom_checker/inputproto.py
edomin/vgazer
3ffe64f2517cbfbe0b0292bacc9fbf7391687e76
[ "CC0-1.0" ]
null
null
null
import requests from bs4 import BeautifulSoup def Check(auth, mirrors): response = requests.get("https://www.x.org/releases/individual/proto/") html = response.content.decode("utf-8") parsedHtml = BeautifulSoup(html, "html.parser") links = parsedHtml.find_all("a") maxVersionMajor = -1 maxVers...
40.877193
76
0.574249
198
2,330
6.752525
0.30303
0.047868
0.048616
0.052356
0.564697
0.507853
0.507853
0.507853
0.489155
0.489155
0
0.016466
0.322318
2,330
56
77
41.607143
0.830272
0
0
0.431373
0
0
0.053219
0
0
0
0
0
0
1
0.019608
false
0
0.039216
0
0.078431
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c53ef04b71561a704af8d84b7b218d0cc32e017
11,781
py
Python
src/pandas_profiling/model/summary_helpers.py
briangrahamww/pandas-profiling
62f8e3fd81720d444041069191c4aacd03d79ad5
[ "MIT" ]
null
null
null
src/pandas_profiling/model/summary_helpers.py
briangrahamww/pandas-profiling
62f8e3fd81720d444041069191c4aacd03d79ad5
[ "MIT" ]
4
2021-11-01T15:17:07.000Z
2022-01-26T15:22:15.000Z
src/pandas_profiling/model/summary_helpers.py
briangrahamww/pandas-profiling
62f8e3fd81720d444041069191c4aacd03d79ad5
[ "MIT" ]
null
null
null
import os import string from collections import Counter from datetime import datetime from functools import partial from pathlib import Path from typing import Optional import numpy as np import pandas as pd from scipy.stats.stats import chisquare from tangled_up_in_unicode import block, block_abbr, categor...
31.5
88
0.641881
1,473
11,781
4.898846
0.154786
0.032428
0.023559
0.02439
0.301414
0.221868
0.173503
0.114468
0.110588
0.075111
0
0.001011
0.244037
11,781
373
89
31.58445
0.80923
0.097275
0
0.111607
0
0
0.108726
0.021665
0
0
0
0.005362
0
1
0.075893
false
0
0.058036
0.004464
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c54e5deea62f99049023a90de0d70c094863c10
10,143
py
Python
inverse_warp.py
ZephyrII/competitive_colaboration
a557d1e23ef2c0b8e3794f085a79bfffb860f9df
[ "MIT" ]
357
2019-03-12T07:17:32.000Z
2022-03-24T14:13:24.000Z
inverse_warp.py
DevLooptt/SJTU-CS386-2021Fall-DIP-Project
2167e089be80ca01911ba55c07b83c9f26f147e7
[ "MIT" ]
27
2019-03-11T19:16:11.000Z
2021-05-30T13:30:19.000Z
inverse_warp.py
DevLooptt/SJTU-CS386-2021Fall-DIP-Project
2167e089be80ca01911ba55c07b83c9f26f147e7
[ "MIT" ]
66
2019-03-27T14:16:22.000Z
2021-11-11T12:40:33.000Z
# Author: Anurag Ranjan # Copyright (c) 2019, Anurag Ranjan # All rights reserved. # based on github.com/ClementPinard/SfMLearner-Pytorch from __future__ import division import torch from torch.autograd import Variable pixel_coords = None def set_id_grid(depth): global pixel_coords b, h, w = depth.size() ...
35.714789
136
0.602484
1,638
10,143
3.592796
0.159341
0.015633
0.005607
0.006797
0.425998
0.383857
0.357009
0.357009
0.353271
0.337978
0
0.036207
0.234842
10,143
283
137
35.840989
0.722072
0.242729
0
0.296053
0
0
0.028659
0
0
0
0
0
0.019737
1
0.078947
false
0
0.019737
0
0.164474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c5685982f284836ad84a3186b0e3af7e951a8fa
7,853
py
Python
lingvo/core/egdd.py
ramonsanabria/lingvo
f38dc3801d36ed08a4117d4a66e6f1f10f76909d
[ "Apache-2.0" ]
null
null
null
lingvo/core/egdd.py
ramonsanabria/lingvo
f38dc3801d36ed08a4117d4a66e6f1f10f76909d
[ "Apache-2.0" ]
null
null
null
lingvo/core/egdd.py
ramonsanabria/lingvo
f38dc3801d36ed08a4117d4a66e6f1f10f76909d
[ "Apache-2.0" ]
null
null
null
# Lint as: python2, python3 # Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # ...
42.448649
80
0.696676
1,078
7,853
4.765306
0.227273
0.072416
0.031147
0.031341
0.248783
0.158848
0.108624
0.079034
0.068912
0.053728
0
0.009359
0.210875
7,853
184
81
42.679348
0.81959
0.356042
0
0.019048
0
0
0.017705
0
0
0
0
0
0
1
0.066667
false
0
0.104762
0.028571
0.219048
0.009524
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c56c7d2316646a3222e3085d34d2f51b63f5dac
3,556
py
Python
examples/nn_cudamat.py
cloudspectatordevelopment/cudamat
d26cf019a7855077b7d4344ae1a3202a156c5170
[ "BSD-3-Clause" ]
526
2015-01-05T14:33:10.000Z
2022-03-09T12:41:37.000Z
examples/nn_cudamat.py
cloudspectatordevelopment/cudamat
d26cf019a7855077b7d4344ae1a3202a156c5170
[ "BSD-3-Clause" ]
71
2015-01-01T01:03:09.000Z
2021-10-01T06:57:07.000Z
examples/nn_cudamat.py
cloudspectatordevelopment/cudamat
d26cf019a7855077b7d4344ae1a3202a156c5170
[ "BSD-3-Clause" ]
139
2015-01-13T21:23:38.000Z
2022-02-24T03:26:34.000Z
# This file shows how to implement a single hidden layer neural network for # performing binary classification on the GPU using cudamat. from __future__ import division import pdb import time import numpy as np import cudamat as cm from cudamat import learn as cl import util # initialize CUDA cm.cublas_init() # load...
26.537313
80
0.683071
594
3,556
3.875421
0.240741
0.050825
0.013032
0.017376
0.256733
0.172459
0.144222
0.100782
0.071242
0.071242
0
0.030892
0.18982
3,556
133
81
26.736842
0.768136
0.188695
0
0.135135
0
0
0.03359
0
0
0
0
0
0
1
0
false
0
0.094595
0
0.094595
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
7c5785c50891073f1d8d050a467303e1d02503f4
5,967
py
Python
fair/forcing/ozone_tr.py
znicholls/FAIR
599c44ed140b069968ba7d1ca99de40218e42545
[ "Apache-2.0" ]
1
2020-11-14T16:09:39.000Z
2020-11-14T16:09:39.000Z
fair/forcing/ozone_tr.py
znicholls/FAIR
599c44ed140b069968ba7d1ca99de40218e42545
[ "Apache-2.0" ]
1
2020-11-02T17:59:02.000Z
2020-11-02T17:59:02.000Z
fair/forcing/ozone_tr.py
znicholls/FAIR
599c44ed140b069968ba7d1ca99de40218e42545
[ "Apache-2.0" ]
2
2020-11-02T16:42:05.000Z
2020-12-15T16:36:24.000Z
from __future__ import division import numpy as np from ..constants import molwt def regress(emissions, beta=np.array([2.8249e-4, 1.0695e-4, -9.3604e-4, 99.7831e-4])): """Calculates tropospheric ozone forcing from precursor emissions. Inputs: (nt x 40) emissions array Keywords: beta...
36.384146
78
0.586224
911
5,967
3.731065
0.231614
0.015299
0.014122
0.014416
0.702265
0.702265
0.69138
0.644307
0.600177
0.558694
0
0.113499
0.306016
5,967
163
79
36.607362
0.707317
0.452321
0
0.56
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0.04
0
0.2
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7c57f754fa08c4237dd780441aaf7916aa4b730c
3,530
py
Python
tests/test_publish.py
oarepo/oarepo-references-draft
7e5ad4225c4ace9781d5de952c3765a65b33fd8e
[ "MIT" ]
null
null
null
tests/test_publish.py
oarepo/oarepo-references-draft
7e5ad4225c4ace9781d5de952c3765a65b33fd8e
[ "MIT" ]
null
null
null
tests/test_publish.py
oarepo/oarepo-references-draft
7e5ad4225c4ace9781d5de952c3765a65b33fd8e
[ "MIT" ]
null
null
null
import uuid from invenio_indexer.api import RecordIndexer from invenio_pidstore.models import PersistentIdentifier, PIDStatus from invenio_records_draft.api import RecordContext from invenio_records_draft.proxies import current_drafts from invenio_search import RecordsSearch, current_search, current_search_client from...
40.574713
99
0.608215
380
3,530
5.413158
0.236842
0.03403
0.046184
0.038892
0.457948
0.424404
0.403986
0.376276
0.257657
0.22071
0
0.026235
0.265722
3,530
86
100
41.046512
0.767361
0
0
0.178082
0
0
0.136261
0.021246
0
0
0
0
0.068493
1
0.013699
false
0
0.109589
0
0.123288
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c591440c5e8dee3c070bc7ca52d3ba19f2b4743
5,580
py
Python
examples/ROS/tiscamera.py
xiaotiansf/tiscamera
8451449788f7429621240e2bbce065d65c5ac10e
[ "Apache-2.0" ]
null
null
null
examples/ROS/tiscamera.py
xiaotiansf/tiscamera
8451449788f7429621240e2bbce065d65c5ac10e
[ "Apache-2.0" ]
null
null
null
examples/ROS/tiscamera.py
xiaotiansf/tiscamera
8451449788f7429621240e2bbce065d65c5ac10e
[ "Apache-2.0" ]
null
null
null
import os import subprocess from collections import namedtuple import gi gi.require_version("Gst", "1.0") gi.require_version("Tcam", "0.1") from gi.repository import Tcam, Gst, GLib, GObject DeviceInfo = namedtuple("DeviceInfo", "status name identifier connection_type") CameraProperty = namedtuple("CameraProperty", ...
36.953642
170
0.624014
707
5,580
4.837341
0.292786
0.042105
0.035088
0.019006
0.398246
0.371637
0.33655
0.30731
0.263158
0.236257
0
0.01609
0.264875
5,580
150
171
37.2
0.81765
0.248208
0
0.192308
0
0.076923
0.251469
0.093279
0
0
0
0
0
1
0.102564
false
0.012821
0.064103
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
7c59c1fafc0db31d12d2731c296964f8cac7b7ce
274
py
Python
helpers/config.py
bertrand-caron/cv_blog_flask
ce779db31805f0b1a7bbc9a6f09a7d3fe1af74b2
[ "MIT" ]
null
null
null
helpers/config.py
bertrand-caron/cv_blog_flask
ce779db31805f0b1a7bbc9a6f09a7d3fe1af74b2
[ "MIT" ]
null
null
null
helpers/config.py
bertrand-caron/cv_blog_flask
ce779db31805f0b1a7bbc9a6f09a7d3fe1af74b2
[ "MIT" ]
null
null
null
from typing import Dict, Any from yaml import load def get_config() -> Dict[str, Any]: try: return load(open('config/config.yml').read()) except Exception as e: raise Exception('ERROR: Missing config/config.yml file.') from e CONFIG = get_config()
24.909091
72
0.671533
40
274
4.55
0.6
0.098901
0.164835
0
0
0
0
0
0
0
0
0
0.208029
274
10
73
27.4
0.83871
0
0
0
0
0
0.20073
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c59df650fcdcb09e11e3c4ab2f95de326942e41
4,758
py
Python
raman/unmixing.py
falckt/raman
8f9fae0e211dd49cebaba98e71787bb663be8fcf
[ "BSD-3-Clause" ]
1
2020-05-21T11:56:32.000Z
2020-05-21T11:56:32.000Z
raman/unmixing.py
falckt/raman
8f9fae0e211dd49cebaba98e71787bb663be8fcf
[ "BSD-3-Clause" ]
null
null
null
raman/unmixing.py
falckt/raman
8f9fae0e211dd49cebaba98e71787bb663be8fcf
[ "BSD-3-Clause" ]
null
null
null
# Author: Tillmann Falck <tf-raman@lucidus.de> # # License: BSD 3 clause # # SPDX-License-Identifier: BSD-3-Clause import collections from itertools import product import cvxpy as cp import numpy as np def sunsal_tv(A, Y, lambda_1, lambda_tv, sweep='prod', tv_type='iso', additional_constraint='none'): r""" S...
34.985294
125
0.640395
692
4,758
4.254335
0.316474
0.03091
0.022079
0.02038
0.071332
0.021739
0.021739
0.016984
0
0
0
0.025719
0.240017
4,758
135
126
35.244444
0.78844
0.464061
0
0.147541
0
0
0.07315
0
0
0
0
0
0.016393
1
0.016393
false
0
0.065574
0
0.114754
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c5bbf4b4ce3af5182a0d6bd6aa48e224f1317d8
53
py
Python
test_stock.py
ucsb-cs48-w19/6pm-stock-trading
daf70b684c15182753d8ca9b820238cf9cd5b75c
[ "MIT" ]
1
2019-04-06T15:44:07.000Z
2019-04-06T15:44:07.000Z
test_stock.py
ucsb-cs48-w19/6pm-stock-trading
daf70b684c15182753d8ca9b820238cf9cd5b75c
[ "MIT" ]
35
2019-03-07T22:29:04.000Z
2021-12-13T19:55:51.000Z
test_stock.py
ucsb-cs48-w19/6pm-stock-trading
daf70b684c15182753d8ca9b820238cf9cd5b75c
[ "MIT" ]
1
2019-12-18T23:06:37.000Z
2019-12-18T23:06:37.000Z
import pytest def test_stock(): assert(0 == 0)
8.833333
18
0.622642
8
53
4
0.875
0
0
0
0
0
0
0
0
0
0
0.05
0.245283
53
5
19
10.6
0.75
0
0
0
0
0
0
0
0
0
0
0
0.333333
1
0.333333
true
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
6
7c5bc0acf118170063960ef1b43392c65c34384f
1,421
py
Python
TM1py/Objects/ElementAttribute.py
damirishpreet/TM1py
8482d0787fd5a9e5eb05a0288c41b75fc1fc93ac
[ "MIT" ]
19
2016-03-04T19:21:40.000Z
2021-12-10T02:39:51.000Z
TM1py/Objects/ElementAttribute.py
damirishpreet/TM1py
8482d0787fd5a9e5eb05a0288c41b75fc1fc93ac
[ "MIT" ]
11
2016-08-24T19:27:11.000Z
2017-07-30T01:10:28.000Z
TM1py/Objects/ElementAttribute.py
damirishpreet/TM1py
8482d0787fd5a9e5eb05a0288c41b75fc1fc93ac
[ "MIT" ]
6
2016-08-03T19:28:45.000Z
2017-01-30T12:25:05.000Z
# -*- coding: utf-8 -*- import json from TM1py.Objects.TM1Object import TM1Object class ElementAttribute(TM1Object): """ Abstraction of TM1 Element Attributes """ valid_types = ['NUMERIC', 'STRING', 'ALIAS'] def __init__(self, name, attribute_type): self.name = name self.attrib...
25.375
75
0.655172
171
1,421
5.157895
0.304094
0.162132
0.102041
0.07483
0.068027
0
0
0
0
0
0
0.005587
0.244194
1,421
55
76
25.836364
0.815642
0.049261
0
0.162162
0
0
0.047619
0
0
0
0
0
0
1
0.27027
false
0
0.054054
0.189189
0.567568
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
7c5c4475e9ffb17b4a7ed0975ab0f7646445b8ba
4,011
py
Python
account.py
MaherClinc/stockly-bs
4a2c5741673b85bee9100afef0b404520cb10b5d
[ "MIT" ]
null
null
null
account.py
MaherClinc/stockly-bs
4a2c5741673b85bee9100afef0b404520cb10b5d
[ "MIT" ]
null
null
null
account.py
MaherClinc/stockly-bs
4a2c5741673b85bee9100afef0b404520cb10b5d
[ "MIT" ]
null
null
null
from sqlalchemy import exc from sqlalchemy.sql.expression import func from models import Watchlist, Portfolio, Activity from app import db import metric def buy_stock(ticker, units): unit_price = metric.get_price(ticker) total_price = units * unit_price max_id = db.session.query(func.max(Activity.activity...
36.463636
126
0.667913
518
4,011
4.978764
0.15251
0.054285
0.038387
0.032571
0.651415
0.651415
0.61962
0.59209
0.59209
0.538969
0
0.006993
0.215657
4,011
109
127
36.798165
0.812778
0
0
0.448276
0
0
0.044933
0
0
0
0
0
0
1
0.103448
false
0
0.057471
0
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c5c6bcf1d0acee591337a1dbb0080fdcf270c1f
3,175
py
Python
scripts/addons/kekit/ke_fit2grid.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2020-04-16T22:12:40.000Z
2022-01-22T17:18:45.000Z
scripts/addons/kekit/ke_fit2grid.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
null
null
null
scripts/addons/kekit/ke_fit2grid.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2019-05-16T04:01:09.000Z
2020-08-25T11:42:26.000Z
bl_info = { "name": "ke_fit2grid", "author": "Kjell Emanuelsson", "category": "Modeling", "version": (1, 0, 2), "blender": (2, 80, 0), } import bpy import bmesh from .ke_utils import get_loops, correct_normal, average_vector from mathutils import Vector, Matrix def fit_to_grid(co, grid): x, y,...
31.75
102
0.521575
370
3,175
4.294595
0.345946
0.031466
0.035242
0.055381
0.14034
0.028949
0
0
0
0
0
0.013236
0.309921
3,175
99
103
32.070707
0.712004
0.072756
0
0.084507
0
0
0.127891
0
0
0
0
0
0
1
0.070423
false
0
0.056338
0.014085
0.253521
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c5d7a1fdf2039a9a74d4beb4a72efeb34b5199f
201
py
Python
tests/test_update.py
en0/pyavl3
c9dad3189da1f18e935e61d13d7c971aceafd895
[ "MIT" ]
null
null
null
tests/test_update.py
en0/pyavl3
c9dad3189da1f18e935e61d13d7c971aceafd895
[ "MIT" ]
null
null
null
tests/test_update.py
en0/pyavl3
c9dad3189da1f18e935e61d13d7c971aceafd895
[ "MIT" ]
null
null
null
import unittest from pyavl3 import AVLTree class AVLTreeUpdateTest(unittest.TestCase): def test_add_one(self): a = AVLTree() a.update({1:'a'}) self.assertEqual(len(a), 1)
20.1
43
0.651741
26
201
4.961538
0.692308
0
0
0
0
0
0
0
0
0
0
0.019355
0.228856
201
9
44
22.333333
0.812903
0
0
0
0
0
0.004975
0
0
0
0
0
0.142857
1
0.142857
false
0
0.285714
0
0.571429
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2