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
588aa8a3b88a98a9d49032a085a9b2d4f04e667f
9,731
py
Python
xmaintnote/ticketing.py
0xmc/maint-notification
bdf27f7b863a45d2191068c46f729db3c94386d1
[ "BSD-2-Clause" ]
null
null
null
xmaintnote/ticketing.py
0xmc/maint-notification
bdf27f7b863a45d2191068c46f729db3c94386d1
[ "BSD-2-Clause" ]
null
null
null
xmaintnote/ticketing.py
0xmc/maint-notification
bdf27f7b863a45d2191068c46f729db3c94386d1
[ "BSD-2-Clause" ]
null
null
null
#!/bin/env python3 """Handling events as tickets The goal here is, provided a maintenance event, create an event if not a duplicate. To determine if not duplicate, use some combination of values to form a key. Methods to delete, update, and otherwise transform the ticket should be available A base class, Ticket, is ...
33.439863
79
0.582468
1,110
9,731
5.04955
0.288288
0.028903
0.013381
0.016592
0.111329
0.101517
0.084389
0.075647
0.075647
0.075647
0
0.004899
0.328743
9,731
290
80
33.555172
0.853184
0.482684
0
0.183333
0
0
0.159039
0.010648
0
0
0
0
0
1
0.083333
false
0.025
0.016667
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
588c7a9a7c5017d9a74e862c7ceb6ee60b5f425a
554
py
Python
pycell/prologue/native/set_.py
andybalaam/cell
03d0670f9ebd513a983b9327108a84f2eff8ee75
[ "MIT" ]
118
2016-10-17T09:04:42.000Z
2021-12-31T03:00:55.000Z
pycell/prologue/native/set_.py
JoeyCluett/cell
a3203731e0c63a55955509e843fb99e38cf7cc7c
[ "MIT" ]
4
2019-01-23T09:59:43.000Z
2020-11-02T11:00:38.000Z
pycell/prologue/native/set_.py
JoeyCluett/cell
a3203731e0c63a55955509e843fb99e38cf7cc7c
[ "MIT" ]
21
2016-06-05T08:05:53.000Z
2022-01-29T10:08:47.000Z
def _do_set(env, name, value): if env.contains(name): env.set(name, value) elif env.parent is not None: _do_set(env.parent, name, value) else: raise Exception( "Attempted to set name '%s' but it does not exist." % name ) def set_(env, symbol_name, va...
26.380952
71
0.561372
76
554
3.947368
0.473684
0.08
0.08
0.106667
0
0
0
0
0
0
0
0.005391
0.330325
554
20
72
27.7
0.803235
0
0
0.111111
0
0
0.198915
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
589099f22121deb7215ea93a44c6ab088a52a57b
1,110
py
Python
test/z_emulator_autoload.py
DXCyber409/AndroidNativeEmulator
11a0360a947114375757724eecd9bd9dbca43a56
[ "Apache-2.0" ]
3
2020-05-21T09:15:11.000Z
2022-01-12T13:52:20.000Z
test/z_emulator_autoload.py
DXCyber409/AndroidNativeEmulator
11a0360a947114375757724eecd9bd9dbca43a56
[ "Apache-2.0" ]
null
null
null
test/z_emulator_autoload.py
DXCyber409/AndroidNativeEmulator
11a0360a947114375757724eecd9bd9dbca43a56
[ "Apache-2.0" ]
null
null
null
import sys import logging from unicorn import * from unicorn.arm_const import * from androidemu.emulator import Emulator from UnicornTraceDebugger import udbg logging.basicConfig(stream=sys.stdout, level=logging.DEBUG, format="%(asctime)s %(levelname)7s %(name)34s | %(message)s") logger = logging.getLogger(__n...
29.210526
72
0.73964
164
1,110
4.79878
0.487805
0.088945
0.049555
0.066074
0
0
0
0
0
0
0
0.057956
0.145045
1,110
37
73
30
0.771338
0.010811
0
0
0
0
0.084854
0.021898
0
0
0.052007
0
0
1
0
false
0
0.193548
0
0.193548
0.096774
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
58919030577b20ce04be8ee22121a25618dfdeb8
816
py
Python
community_ext/__init__.py
altsoph/community_loglike
ea8800217097575558f8bfb97f7737d12cad2339
[ "BSD-3-Clause" ]
16
2018-02-14T23:14:32.000Z
2021-09-15T09:38:47.000Z
community_ext/__init__.py
altsoph/community_loglike
ea8800217097575558f8bfb97f7737d12cad2339
[ "BSD-3-Clause" ]
null
null
null
community_ext/__init__.py
altsoph/community_loglike
ea8800217097575558f8bfb97f7737d12cad2339
[ "BSD-3-Clause" ]
7
2019-05-09T10:25:24.000Z
2020-06-06T09:37:18.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """ This package implements several community detection. Originally based on community aka python-louvain library from Thomas Aynaud (https://github.com/taynaud/python-louvain) """ from .community_ext import ( partition_at_level, modularity, best_partition, ge...
24.727273
83
0.72549
94
816
6.06383
0.734043
0.045614
0.077193
0.094737
0.298246
0.192982
0.192982
0.192982
0
0
0
0.007364
0.167892
816
32
84
25.5
0.832106
0.471814
0
0
0
0
0.239808
0.071942
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
589531a8cfe2795a9b90146b7a85879eaadf036f
895
py
Python
youbot_gazebo_publisher/src/listener.py
ingjavierpinilla/youBot-Gazebo-Publisher
9314f5c471cde91127d76ba205ce6259e595145a
[ "MIT" ]
null
null
null
youbot_gazebo_publisher/src/listener.py
ingjavierpinilla/youBot-Gazebo-Publisher
9314f5c471cde91127d76ba205ce6259e595145a
[ "MIT" ]
null
null
null
youbot_gazebo_publisher/src/listener.py
ingjavierpinilla/youBot-Gazebo-Publisher
9314f5c471cde91127d76ba205ce6259e595145a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import String from nav_msgs.msg import Odometry from trajectory_msgs.msg import JointTrajectory from control_msgs.msg import JointTrajectoryControllerState def callback_odom(data): print("odom\n" + str(data)) def callback_JointTrajectory(data): print("gri...
24.861111
102
0.746369
102
895
6.284314
0.401961
0.043682
0.081123
0.051482
0.299532
0.112324
0
0
0
0
0
0.005249
0.148603
895
35
103
25.571429
0.835958
0.18771
0
0
0
0
0.142265
0.081492
0
0
0
0
0
1
0.190476
false
0
0.238095
0
0.428571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5895c3e0dafc21f11b778b930d6d27f00014cab8
75,699
py
Python
main.py
hustleer/Discord-Encouragement-Bot
4105d1e81fa0e76ade7cfd293dd82ea610064f58
[ "Apache-2.0" ]
null
null
null
main.py
hustleer/Discord-Encouragement-Bot
4105d1e81fa0e76ade7cfd293dd82ea610064f58
[ "Apache-2.0" ]
null
null
null
main.py
hustleer/Discord-Encouragement-Bot
4105d1e81fa0e76ade7cfd293dd82ea610064f58
[ "Apache-2.0" ]
null
null
null
#Botpic:https://upload.wikimedia.org/wikipedia/commons/thumb/b/b8/Red_Rose_Photography.jpg/800px-Red_Rose_Photography.jpg #Botpic:https://commons.wikimedia.org/wiki/File:Red_Rose_Photography.jpg #reference:https://www.youtube.com/watch?v=SPTfmiYiuok import discord import os import requests import json import math, ra...
34.03732
253
0.588462
8,873
75,699
4.896427
0.101769
0.014731
0.019887
0.016941
0.532592
0.472748
0.433504
0.400681
0.369309
0.353957
0
0.011884
0.271932
75,699
2,223
254
34.052632
0.775357
0.131045
0
0.439649
0
0.006584
0.255783
0.023762
0
0
0.000546
0
0
1
0.016094
false
0.012436
0.016825
0.002195
0.046086
0.070958
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
589634be0915da002b383091ea3d6a080249430a
9,862
py
Python
mwp_solver/module/Layer/transformer_layer.py
max-stack/MWP-SS-Metrics
01268f2d6da716596216b04de4197e345b96c219
[ "MIT" ]
null
null
null
mwp_solver/module/Layer/transformer_layer.py
max-stack/MWP-SS-Metrics
01268f2d6da716596216b04de4197e345b96c219
[ "MIT" ]
null
null
null
mwp_solver/module/Layer/transformer_layer.py
max-stack/MWP-SS-Metrics
01268f2d6da716596216b04de4197e345b96c219
[ "MIT" ]
null
null
null
# Code Taken from https://github.com/LYH-YF/MWPToolkit # -*- encoding: utf-8 -*- # @Author: Yihuai Lan # @Time: 2021/08/29 22:05:03 # @File: transformer_layer.py import torch import math from torch import nn from torch.nn import functional as F from transformers.activations import gelu_new as gelu_bert from module...
43.831111
205
0.688806
1,313
9,862
4.945925
0.178218
0.023406
0.023098
0.011549
0.308131
0.280259
0.216354
0.176471
0.141361
0.116107
0
0.010273
0.220239
9,862
224
206
44.026786
0.8342
0.303285
0
0.128205
0
0
0
0
0
0
0
0
0
1
0.119658
false
0
0.076923
0.017094
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5897a699b6d877a1d06ab69aa68b4566e5a0268c
6,564
py
Python
tests/4_ckks_basics.py
TimTam725/SEAL-true
87c3f3f345b7dc5f49380556c55a85a7efa45bb6
[ "MIT" ]
null
null
null
tests/4_ckks_basics.py
TimTam725/SEAL-true
87c3f3f345b7dc5f49380556c55a85a7efa45bb6
[ "MIT" ]
null
null
null
tests/4_ckks_basics.py
TimTam725/SEAL-true
87c3f3f345b7dc5f49380556c55a85a7efa45bb6
[ "MIT" ]
null
null
null
import math from seal import * from seal_helper import * def example_ckks_basics(): print_example_banner("Example: CKKS Basics") parms = EncryptionParameters(scheme_type.CKKS) poly_modulus_degree = 8192 parms.set_poly_modulus_degree(poly_modulus_degree) parms.set_coeff_modulus(CoeffModulus.Creat...
35.673913
84
0.655088
870
6,564
4.749425
0.235632
0.055905
0.03485
0.030978
0.32817
0.312924
0.262827
0.230155
0.21152
0.196031
0
0.039055
0.219835
6,564
183
85
35.868852
0.767819
0.010512
0
0.222222
0
0
0.209089
0
0
0
0
0
0
1
0.007937
false
0
0.02381
0
0.031746
0.396825
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5899ee9d789144345b8642bab6672fe498055f42
2,422
py
Python
FigureTable/NeuroPathRegions/barplots.py
vkola-lab/multi-task
6a61db4223e1812744f13028747b07e2f840cc0b
[ "MIT" ]
1
2021-12-19T01:45:01.000Z
2021-12-19T01:45:01.000Z
FigureTable/NeuroPathRegions/barplots.py
vkola-lab/multi-task
6a61db4223e1812744f13028747b07e2f840cc0b
[ "MIT" ]
null
null
null
FigureTable/NeuroPathRegions/barplots.py
vkola-lab/multi-task
6a61db4223e1812744f13028747b07e2f840cc0b
[ "MIT" ]
1
2022-03-14T18:30:23.000Z
2022-03-14T18:30:23.000Z
from correlate import * import matplotlib import matplotlib.pyplot as plt import seaborn as sns from matplotlib import rc, rcParams rc('axes', linewidth=1) rc('font', weight='bold', size=10) def barplots(prefixes, regions, stains, corre, error, name, folder, ylim): for stain in stains: barplot(prefixes, r...
36.69697
143
0.627168
326
2,422
4.555215
0.41411
0.016162
0.028283
0.040404
0.160269
0.150842
0.098317
0.068687
0.068687
0
0
0.053618
0.206854
2,422
65
144
37.261538
0.719417
0
0
0.038462
0
0.038462
0.098592
0.009114
0
0
0
0
0
1
0.038462
false
0
0.096154
0
0.134615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
589a8463ce8f13fdbedded623d8ccbad3c17d953
4,549
py
Python
examples/distributed_autofaiss_n_indices.py
Rexiome/autofaiss
79d7c396819ffd6859edde17c6958c1c3338b29b
[ "Apache-2.0" ]
null
null
null
examples/distributed_autofaiss_n_indices.py
Rexiome/autofaiss
79d7c396819ffd6859edde17c6958c1c3338b29b
[ "Apache-2.0" ]
null
null
null
examples/distributed_autofaiss_n_indices.py
Rexiome/autofaiss
79d7c396819ffd6859edde17c6958c1c3338b29b
[ "Apache-2.0" ]
null
null
null
""" An example of running autofaiss by pyspark to produce N indices. You need to install pyspark before using the following example. """ from typing import Dict import faiss import numpy as np from autofaiss import build_index # You'd better create a spark session before calling build_index, # otherwise, a spark se...
34.992308
135
0.675533
618
4,549
4.760518
0.351133
0.021754
0.033311
0.032291
0.136302
0.136302
0.07002
0.029232
0.029232
0.029232
0
0.019341
0.158936
4,549
129
136
35.263566
0.749608
0.270829
0
0.060606
0
0
0.084769
0.029979
0
0
0
0
0
1
0.030303
false
0
0.106061
0
0.166667
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
589dcbc08792dc79d40776858af24dca67ad7bfe
4,170
py
Python
rbkcli/core/handlers/callback.py
rubrikinc/rbkcli
62bbb20d15c78d2554d7258bdae655452ac826c7
[ "MIT" ]
10
2019-07-23T13:13:16.000Z
2022-03-04T17:48:10.000Z
rbkcli/core/handlers/callback.py
rubrikinc/rbkcli
62bbb20d15c78d2554d7258bdae655452ac826c7
[ "MIT" ]
19
2019-08-22T06:23:09.000Z
2021-12-28T04:04:52.000Z
rbkcli/core/handlers/callback.py
rubrikinc/rbkcli
62bbb20d15c78d2554d7258bdae655452ac826c7
[ "MIT" ]
5
2019-08-06T14:29:35.000Z
2021-06-17T20:35:17.000Z
"""Callback module for rbkcli.""" import json from rbkcli.core.handlers.inputs import InputHandler from rbkcli.base.essentials import DotDict, RbkcliException from rbkcli.core.handlers import ApiTargetTools from rbkcli.core.handlers.outputs import OutputHandler class CallBack(ApiTargetTools): """Class ...
37.232143
90
0.591367
478
4,170
5.012552
0.259414
0.105593
0.100167
0.027546
0.109349
0.054257
0.030885
0.030885
0
0
0
0.004856
0.308633
4,170
111
91
37.567568
0.826223
0.097842
0
0.089744
0
0
0.023836
0
0
0
0
0
0
1
0.076923
false
0
0.064103
0
0.217949
0.012821
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
589e51c361515efc2c983bdbd855621e6ab93aac
9,950
py
Python
src/greenbudget/app/group/serializers.py
nickmflorin/django-proper-architecture-testing
da7c4019697e85f921695144375d2f548f1e98ad
[ "MIT" ]
null
null
null
src/greenbudget/app/group/serializers.py
nickmflorin/django-proper-architecture-testing
da7c4019697e85f921695144375d2f548f1e98ad
[ "MIT" ]
null
null
null
src/greenbudget/app/group/serializers.py
nickmflorin/django-proper-architecture-testing
da7c4019697e85f921695144375d2f548f1e98ad
[ "MIT" ]
null
null
null
from rest_framework import serializers, exceptions from greenbudget.lib.rest_framework_utils.serializers import ( EnhancedModelSerializer) from greenbudget.app.account.models import BudgetAccount, TemplateAccount from greenbudget.app.tagging.serializers import ColorField from greenbudget.app.subaccount.models imp...
37.689394
80
0.63206
1,067
9,950
5.809747
0.243674
0.021939
0.019358
0.023391
0.405388
0.367317
0.319406
0.289724
0.24875
0.222617
0
0.000983
0.284121
9,950
263
81
37.8327
0.869297
0.365528
0
0.457143
0
0
0.060298
0
0
0
0
0.003802
0
1
0.035714
false
0
0.042857
0
0.328571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
58a0bffac08dce61ed79b44c63defce1adefa9d1
12,103
py
Python
objects/CSCG/_2d/mesh/domain/inputs/base.py
mathischeap/mifem
3242e253fb01ca205a76568eaac7bbdb99e3f059
[ "MIT" ]
1
2020-10-14T12:48:35.000Z
2020-10-14T12:48:35.000Z
objects/CSCG/_2d/mesh/domain/inputs/base.py
mathischeap/mifem
3242e253fb01ca205a76568eaac7bbdb99e3f059
[ "MIT" ]
null
null
null
objects/CSCG/_2d/mesh/domain/inputs/base.py
mathischeap/mifem
3242e253fb01ca205a76568eaac7bbdb99e3f059
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ INTRO @author: Yi Zhang. Created on Tue May 21 11:57:52 2019 Department of Aerodynamics Faculty of Aerospace Engineering TU Delft, Delft, the Netherlands """ import inspect from screws.freeze.main import FrozenOnly from typing import Dict, Union import ...
36.345345
125
0.629513
1,435
12,103
5.012544
0.179094
0.036146
0.051161
0.048797
0.242875
0.107605
0.059502
0.052551
0.052551
0.052551
0
0.008691
0.277452
12,103
332
126
36.454819
0.813836
0.190697
0
0.131148
0
0
0.158122
0.016514
0
0
0
0
0.174863
1
0.147541
false
0.005464
0.027322
0.016393
0.245902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
58a653052f6df764ec062ee02680225f5a15d5ec
805
py
Python
onnxruntime/python/tools/quantization/operators/qdq_base_operator.py
mszhanyi/onnxruntime
6f85d3e5c81c919022ac4a77e5a051da8518b15d
[ "MIT" ]
669
2018-12-03T22:00:31.000Z
2019-05-06T19:42:49.000Z
onnxruntime/python/tools/quantization/operators/qdq_base_operator.py
mszhanyi/onnxruntime
6f85d3e5c81c919022ac4a77e5a051da8518b15d
[ "MIT" ]
440
2018-12-03T21:09:56.000Z
2019-05-06T20:47:23.000Z
onnxruntime/python/tools/quantization/operators/qdq_base_operator.py
mszhanyi/onnxruntime
6f85d3e5c81c919022ac4a77e5a051da8518b15d
[ "MIT" ]
140
2018-12-03T21:15:28.000Z
2019-05-06T18:02:36.000Z
import itertools from ..quant_utils import QuantizedValue, QuantizedValueType, attribute_to_kwarg, quantize_nparray from .base_operator import QuantOperatorBase class QDQOperatorBase: def __init__(self, onnx_quantizer, onnx_node): self.quantizer = onnx_quantizer self.node = onnx_node self...
32.2
106
0.719255
99
805
5.464646
0.424242
0.072089
0.09427
0.062847
0.099815
0.099815
0
0
0
0
0
0
0.226087
805
24
107
33.541667
0.868379
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
58a67e64a1b78dbe199317a20cf65d4984a16e33
7,598
py
Python
code/rec_eval.py
dawenl/content_wmf
b3e0a8eeb1b28836f280997c47444786afe91d3f
[ "MIT" ]
24
2016-09-18T10:28:07.000Z
2021-08-21T14:48:01.000Z
code/rec_eval.py
dawenl/content_wmf
b3e0a8eeb1b28836f280997c47444786afe91d3f
[ "MIT" ]
null
null
null
code/rec_eval.py
dawenl/content_wmf
b3e0a8eeb1b28836f280997c47444786afe91d3f
[ "MIT" ]
15
2015-10-29T14:46:03.000Z
2020-03-12T09:35:55.000Z
import bottleneck as bn import numpy as np from scipy import sparse """ All the data should be in the shape of (n_users, n_items) All the latent factors should in the shape of (n_users/n_items, n_components) 1. train_data refers to the data that was used to train the model 2. heldout_data refers to the data that wa...
37.613861
79
0.633325
1,172
7,598
3.831058
0.15785
0.073274
0.053452
0.066815
0.620935
0.597996
0.567038
0.555457
0.492873
0.480624
0
0.014635
0.262569
7,598
201
80
37.800995
0.786721
0.089234
0
0.427481
0
0
0
0
0
0
0
0
0
1
0.091603
false
0
0.022901
0
0.198473
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
58a6b4335eac35be6ee8f5597bc84e5d66427621
1,295
py
Python
pgdrive/tests/vis_block/vis_std_t_intersection.py
decisionforce/pgdrive
19af5d09a40a68a2a5f8b3ac8b40f109e71c26ee
[ "Apache-2.0" ]
97
2020-12-25T06:02:17.000Z
2022-01-16T06:58:39.000Z
pgdrive/tests/vis_block/vis_std_t_intersection.py
decisionforce/pgdrive
19af5d09a40a68a2a5f8b3ac8b40f109e71c26ee
[ "Apache-2.0" ]
192
2020-12-25T07:58:17.000Z
2021-08-28T10:13:59.000Z
pgdrive/tests/vis_block/vis_std_t_intersection.py
decisionforce/pgdrive
19af5d09a40a68a2a5f8b3ac8b40f109e71c26ee
[ "Apache-2.0" ]
11
2020-12-29T11:23:44.000Z
2021-12-06T23:25:49.000Z
from pgdrive.component.blocks.curve import Curve from pgdrive.component.blocks.first_block import FirstPGBlock from pgdrive.component.blocks.std_t_intersection import StdTInterSection from pgdrive.component.blocks.straight import Straight from pgdrive.component.road.road_network import RoadNetwork from pgdrive.tests.vi...
40.46875
86
0.766023
174
1,295
5.471264
0.298851
0.080882
0.105042
0.09979
0.218487
0.218487
0.073529
0
0
0
0
0.014388
0.141313
1,295
31
87
41.774194
0.841727
0
0
0
0
0
0.006178
0
0
0
0
0
0
1
0
false
0
0.28
0
0.28
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
58a7437e24bf8faeb840154530f279b8c6eee778
2,044
py
Python
assignments/10_conserved/conserved.py
brianUA/be434-fall-2021
bf0bb3f1c8129599818b98b7ee25b39aa926fd1f
[ "MIT" ]
null
null
null
assignments/10_conserved/conserved.py
brianUA/be434-fall-2021
bf0bb3f1c8129599818b98b7ee25b39aa926fd1f
[ "MIT" ]
null
null
null
assignments/10_conserved/conserved.py
brianUA/be434-fall-2021
bf0bb3f1c8129599818b98b7ee25b39aa926fd1f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : Brian Scott <brianscott@email.arizona.edu> Date : 2021-11-09 Purpose: FInd the similarities between sequences. """ import argparse # -------------------------------------------------- def get_args(): """Get command-line arguments""" parser = argparse.ArgumentParser( ...
27.621622
73
0.54501
241
2,044
4.485477
0.448133
0.033303
0.024977
0.024052
0
0
0
0
0
0
0
0.009609
0.287182
2,044
73
74
28
0.732327
0.356654
0
0
0
0
0.035156
0
0
0
0
0
0
1
0.078947
false
0
0.026316
0
0.157895
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
58a9853e032d70b843b4faffe8df15e8491bea40
13,999
py
Python
ldss_spec/tools/spec_red.py
dsanmartim/ldss_specred
8274ce0cf0eddfc7649106d7b9d0ce733e69c722
[ "MIT" ]
null
null
null
ldss_spec/tools/spec_red.py
dsanmartim/ldss_specred
8274ce0cf0eddfc7649106d7b9d0ce733e69c722
[ "MIT" ]
null
null
null
ldss_spec/tools/spec_red.py
dsanmartim/ldss_specred
8274ce0cf0eddfc7649106d7b9d0ce733e69c722
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf8 -*- # Loading a few python packages import os import glob import warnings from astropy import log from astropy.io import fits as pyfits import json # Loading iraf packages from pyraf import iraf from pyraf.iraf import onedspec from pyraf.iraf import twodspec, apextract class ...
37.733154
129
0.572541
1,701
13,999
4.524397
0.206937
0.012734
0.012734
0.010135
0.157874
0.092126
0.063799
0.037942
0.02105
0.012214
0
0.022118
0.312094
13,999
370
130
37.835135
0.777051
0.250375
0
0.095808
0
0
0.132805
0.004163
0
0
0
0
0.017964
1
0.071856
false
0
0.053892
0
0.155689
0.041916
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
58a9c2475f1d862dde62daacb24c84dc06c0e208
1,667
py
Python
lookupService/helpers/job_scheduler.py
selfjell/MirMachine
b61b555e7d0942f6fdcc53634469fffea2b92f4c
[ "MIT" ]
1
2021-11-11T12:47:20.000Z
2021-11-11T12:47:20.000Z
lookupService/helpers/job_scheduler.py
selfjell/MirMachine
b61b555e7d0942f6fdcc53634469fffea2b92f4c
[ "MIT" ]
null
null
null
lookupService/helpers/job_scheduler.py
selfjell/MirMachine
b61b555e7d0942f6fdcc53634469fffea2b92f4c
[ "MIT" ]
null
null
null
from ..models import Job from engine.scripts.mirmachine_args import run_mirmachine from .socket_helper import announce_status_change, announce_queue_position, announce_initiation, announce_completed from .maintainer import clean_up_temporary_files from django.utils import timezone from MirMachineWebapp import user_conf...
30.309091
115
0.718056
217
1,667
5.211982
0.359447
0.05305
0.088417
0.037135
0.127321
0.127321
0.077807
0.077807
0.077807
0.077807
0
0.002254
0.20156
1,667
54
116
30.87037
0.847483
0.031194
0
0.162791
0
0
0.047915
0
0
0
0
0
0
1
0.046512
false
0
0.139535
0
0.255814
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
542d7e740031b1e39b6ee826c5f6675358cb832c
533
py
Python
multimedia/Pygame/02-plot_pixels.py
vicente-gonzalez-ruiz/python-tutorial
e6a79510a0b3663786d6476a40e79fc8e8726f61
[ "CC0-1.0" ]
4
2017-03-06T09:49:11.000Z
2019-10-16T00:09:38.000Z
multimedia/Pygame/02-plot_pixels.py
vicente-gonzalez-ruiz/python-tutorial
e6a79510a0b3663786d6476a40e79fc8e8726f61
[ "CC0-1.0" ]
null
null
null
multimedia/Pygame/02-plot_pixels.py
vicente-gonzalez-ruiz/python-tutorial
e6a79510a0b3663786d6476a40e79fc8e8726f61
[ "CC0-1.0" ]
7
2017-11-02T11:00:30.000Z
2020-01-31T22:41:27.000Z
import pygame import my_colors as color pygame.init() screen_width = 800 screen_height = 600 screen_size = (screen_width, screen_height) screen = pygame.display.set_mode(screen_size) pygame.display.set_caption("Search the green pixel at the coordinates (x=10, y=100)") running = True while running: screen.set_at((...
24.227273
85
0.718574
79
533
4.708861
0.518987
0.104839
0.086022
0
0
0
0
0
0
0
0
0.040089
0.157599
533
21
86
25.380952
0.788419
0
0
0
0
0
0.118199
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
542ed8915929d9082655f10271231d6e8237f5b5
2,848
py
Python
bin/models_vs_uniprot_check/ViPhOG_chunks_rank_summ.py
alexcorm/emg-viral-pipeline
f367002f0e1e375840e5696323bde65f7accb31f
[ "Apache-2.0" ]
30
2020-05-18T14:02:34.000Z
2022-03-16T20:04:25.000Z
bin/models_vs_uniprot_check/ViPhOG_chunks_rank_summ.py
lynceuslq/emg-viral-pipeline
53a99b84ed93428ee88d61e529bcf6799f5eec94
[ "Apache-2.0" ]
45
2020-04-30T09:45:03.000Z
2022-03-21T09:10:21.000Z
bin/models_vs_uniprot_check/ViPhOG_chunks_rank_summ.py
lynceuslq/emg-viral-pipeline
53a99b84ed93428ee88d61e529bcf6799f5eec94
[ "Apache-2.0" ]
12
2020-06-02T12:43:49.000Z
2022-02-22T13:09:13.000Z
#!/usr/bin/env python3 import os import re import glob import sys import operator import ast import argparse ############################################################################################### # This script was written as part of the analysis conducted on the output generated by # # hmmsearch, when...
45.935484
293
0.652388
400
2,848
4.485
0.39
0.040134
0.046823
0.031773
0.053512
0.053512
0.053512
0.053512
0.053512
0
0
0.01666
0.17802
2,848
62
294
45.935484
0.74968
0.230337
0
0.042553
0
0.021277
0.226166
0.076572
0
0
0
0
0
1
0
false
0
0.148936
0
0.148936
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54318f46c52690013bfe7cc4791a2d7dcc84bf04
6,349
py
Python
bika/lims/permissions.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/permissions.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/permissions.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
""" All permissions are defined here. They are also defined in permissions.zcml. The two files must be kept in sync. bika.lims.__init__ imports * from this file, so bika.lims.PermName or bika.lims.permissions.PermName are both valid. """ from Products.CMFCore.permissions import AddPortalContent #...
34.505435
79
0.695228
636
6,349
6.889937
0.391509
0.046326
0.006846
0.007303
0.073026
0.063898
0.050662
0.050662
0.050662
0.050662
0
0
0.140967
6,349
183
80
34.693989
0.803447
0.325721
0
0.019048
0
0
0.459235
0
0
0
0
0
0
1
0
false
0
0.038095
0
0.038095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54324dc90f9df188cfe21f89b7c0b9336f381fe0
7,645
py
Python
data_convert/convert_text_to_tree.py
wlof-2/Text2Relation
a1321e3627fee4714d2c39c964d93d12d0802467
[ "MIT" ]
null
null
null
data_convert/convert_text_to_tree.py
wlof-2/Text2Relation
a1321e3627fee4714d2c39c964d93d12d0802467
[ "MIT" ]
null
null
null
data_convert/convert_text_to_tree.py
wlof-2/Text2Relation
a1321e3627fee4714d2c39c964d93d12d0802467
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- import os import json from collections import Counter, defaultdict from data_convert.format.text2tree import Entity_Type, Text2Tree from data_convert.task_format.event_extraction import Event, DyIEPP, Conll04 from data_convert.utils import read_file, check_output, data_count...
45.778443
138
0.597515
822
7,645
5.229927
0.190998
0.046522
0.030937
0.029309
0.374273
0.288207
0.257967
0.234241
0.215166
0.192836
0
0.013259
0.299542
7,645
166
139
46.054217
0.789542
0.14794
0
0.185841
0
0
0.097565
0.027898
0
0
0
0
0
1
0.035398
false
0
0.088496
0
0.123894
0.053097
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
543307112090d54acedcff9238e2cea7185b6c19
1,165
py
Python
Social_Encoders.py
Haroon96/GraphRec-WWW19
fc28eee70fad927d761c15cab97de52f5955dcfd
[ "MIT" ]
null
null
null
Social_Encoders.py
Haroon96/GraphRec-WWW19
fc28eee70fad927d761c15cab97de52f5955dcfd
[ "MIT" ]
null
null
null
Social_Encoders.py
Haroon96/GraphRec-WWW19
fc28eee70fad927d761c15cab97de52f5955dcfd
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.nn import init import torch.nn.functional as F class Social_Encoder(nn.Module): def __init__(self, features, embed_dim, social_adj_lists, aggregator, base_model=None, cuda="cpu"): super(Social_Encoder, self).__init__() self.features = features ...
32.361111
103
0.654936
154
1,165
4.720779
0.37013
0.055021
0.077029
0.049519
0
0
0
0
0
0
0
0.00453
0.24206
1,165
35
104
33.285714
0.8188
0.046352
0
0
0
0
0.00271
0
0
0
0
0
0
1
0.08
false
0
0.16
0
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5435607e763096b9e0e81fbf68d44b9c31b6852e
1,085
py
Python
python_teste/python_aulas/aula_94.py
BrunoDantasMoreira/projectsPython
bd73ab0b3c067456407f227ed2ece42e7f21ddfc
[ "MIT" ]
1
2020-07-27T14:18:08.000Z
2020-07-27T14:18:08.000Z
python_teste/python_aulas/aula_94.py
BrunoDantasMoreira/projectsPython
bd73ab0b3c067456407f227ed2ece42e7f21ddfc
[ "MIT" ]
null
null
null
python_teste/python_aulas/aula_94.py
BrunoDantasMoreira/projectsPython
bd73ab0b3c067456407f227ed2ece42e7f21ddfc
[ "MIT" ]
null
null
null
dict = {} lista = [] soma = 0 while True: dict['nome'] = str(input('Nome: ')).capitalize() dict['sexo'] = str(input('Sexo: ')).strip().upper()[0] while dict['sexo'] not in 'MF': print('ERRO! Por favor, digite apenas M ou F') dict['sexo'] = str(input('Sexo: ')).strip().upper()[0] dict['id...
33.90625
65
0.562212
162
1,085
3.765432
0.407407
0.065574
0.072131
0.052459
0.222951
0.222951
0.222951
0.222951
0
0
0
0.010576
0.215668
1,085
31
66
35
0.706228
0
0
0.129032
0
0
0.332719
0
0
0
0
0
0
1
0
false
0
0
0
0
0.322581
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
543805ee596eba6c41f93710a63dc5eaf28196da
7,894
py
Python
nlp/layers/linears.py
zhihao-chen/NLP-experiments
c7512276050f5b8489adb4c745fa970ea8119646
[ "MIT" ]
4
2021-11-10T03:49:28.000Z
2022-03-24T02:18:44.000Z
nlp/layers/linears.py
zhihao-chen/NLP-experiments
c7512276050f5b8489adb4c745fa970ea8119646
[ "MIT" ]
null
null
null
nlp/layers/linears.py
zhihao-chen/NLP-experiments
c7512276050f5b8489adb4c745fa970ea8119646
[ "MIT" ]
1
2021-11-14T18:01:18.000Z
2021-11-14T18:01:18.000Z
# -*- coding: utf8 -*- """ ====================================== Project Name: NLP File Name: linears Author: czh Create Date: 2021/11/15 -------------------------------------- Change Activity: ====================================== """ import math import torch import torch.nn as nn import torch....
38.8867
117
0.673676
980
7,894
5.116327
0.144898
0.06781
0.036298
0.02872
0.630634
0.577184
0.541883
0.505584
0.49282
0.479657
0
0.013509
0.212313
7,894
202
118
39.079208
0.792859
0.060806
0
0.435374
0
0
0.010039
0
0
0
0
0
0
1
0.14966
false
0
0.034014
0.013605
0.326531
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5438db8d908a649df431fff16b0d49559bcdf6d6
2,036
py
Python
Week 2/medt_opdracht_9.py
zowie93/ISCRIPT
fa3e5122be8ef47b23c23554ec9e1c04b37da562
[ "MIT" ]
null
null
null
Week 2/medt_opdracht_9.py
zowie93/ISCRIPT
fa3e5122be8ef47b23c23554ec9e1c04b37da562
[ "MIT" ]
null
null
null
Week 2/medt_opdracht_9.py
zowie93/ISCRIPT
fa3e5122be8ef47b23c23554ec9e1c04b37da562
[ "MIT" ]
null
null
null
""" Opdracht 9 - Loonbrief https://dodona.ugent.be/nl/exercises/990750894/ """ # functie voor start amount def get_start_amount(): # return start amount return int(input("Start bedrag: ")) # functie voor salaris def get_salary(): # array van salaris maken salary = [] # count op nul zetten c...
24.238095
71
0.651768
241
2,036
5.40249
0.406639
0.067588
0.021505
0.024578
0.087558
0.087558
0
0
0
0
0
0.012024
0.264735
2,036
83
72
24.53012
0.856379
0.4111
0
0.125
0
0
0.072961
0
0
0
0
0
0
1
0.15625
false
0
0
0.03125
0.25
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
543993f4662d66952cafe8284d07a22ac01ccee7
1,845
py
Python
4.1.1-simple-object-tracking-video.py
CleverYh/opencv_py
20b28e8ef20fa3015f4f7c20ed69fed954c16805
[ "MIT" ]
2
2020-04-05T13:44:13.000Z
2020-07-06T08:53:58.000Z
4.1.1-simple-object-tracking-video.py
CleverYh/opencv_py
20b28e8ef20fa3015f4f7c20ed69fed954c16805
[ "MIT" ]
null
null
null
4.1.1-simple-object-tracking-video.py
CleverYh/opencv_py
20b28e8ef20fa3015f4f7c20ed69fed954c16805
[ "MIT" ]
null
null
null
# coding: utf-8 from cv2 import cv2 import numpy as np cap = cv2.VideoCapture(0) while(1): # Take each frame _, frame = cap.read() # Convert BGR to HSV hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV) # define range of blue color in HSV lower_blue = np.array([110,50,50]) upper_blue = np.arr...
37.653061
256
0.701897
315
1,845
4.079365
0.4
0.023346
0.021012
0.024903
0.303502
0.303502
0.303502
0.303502
0.303502
0.303502
0
0.058503
0.203252
1,845
49
257
37.653061
0.815646
0.689973
0
0
0
0
0.0217
0
0
0
0.007233
0
0
1
0
false
0
0.117647
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
543ac83c6ae50796c548f885ed09b3775131b174
576
py
Python
Python/Day 21/score.py
Aswinpkrishnan94/Fabulous-Python
bafba6d5b3889008299c012625b4a9e1b63b1d44
[ "MIT" ]
null
null
null
Python/Day 21/score.py
Aswinpkrishnan94/Fabulous-Python
bafba6d5b3889008299c012625b4a9e1b63b1d44
[ "MIT" ]
null
null
null
Python/Day 21/score.py
Aswinpkrishnan94/Fabulous-Python
bafba6d5b3889008299c012625b4a9e1b63b1d44
[ "MIT" ]
null
null
null
from turtle import Turtle FONT = ("Arial", 10, "normal") ALIGN = "center" class Score(Turtle): def __init__(self): super().__init__() self.score = 0 self.color("White") self.penup() self.goto(0, 270) self.update() self.hideturtle() def update(self): ...
23.04
67
0.553819
74
576
4.189189
0.405405
0.087097
0.058065
0.116129
0.135484
0
0
0
0
0
0
0.024631
0.295139
576
25
68
23.04
0.738916
0
0
0.095238
0
0
0.088388
0
0
0
0
0
0
1
0.190476
false
0
0.047619
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
543cd354a10448d8c328281db21e317c63dd0072
5,520
py
Python
bcbio/qc/coverage.py
markdunning/bcbio-nextgen
37b69efcc5b2b3713b8d5cd207cece4cb343380d
[ "MIT" ]
null
null
null
bcbio/qc/coverage.py
markdunning/bcbio-nextgen
37b69efcc5b2b3713b8d5cd207cece4cb343380d
[ "MIT" ]
null
null
null
bcbio/qc/coverage.py
markdunning/bcbio-nextgen
37b69efcc5b2b3713b8d5cd207cece4cb343380d
[ "MIT" ]
null
null
null
"""Coverage based QC calculations. """ import glob import os import subprocess from bcbio.bam import ref, readstats, utils from bcbio.distributed import transaction from bcbio.heterogeneity import chromhacks import bcbio.pipeline.datadict as dd from bcbio.provenance import do from bcbio.variation import coverage as co...
46.386555
115
0.664312
771
5,520
4.49546
0.228275
0.028275
0.030006
0.016157
0.206001
0.15176
0.102712
0.049048
0.049048
0.049048
0
0.008202
0.226993
5,520
118
116
46.779661
0.804078
0.07971
0
0.053191
0
0
0.116878
0.00416
0
0
0
0
0
1
0.021277
false
0
0.117021
0
0.170213
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
543dded51722ade60b4b464e9cde6ba374678fe4
2,536
py
Python
piper/jde.py
miketarpey/piper
d1620727889228d61fbe448f4747cef9351ede59
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
piper/jde.py
miketarpey/piper
d1620727889228d61fbe448f4747cef9351ede59
[ "BSD-2-Clause-FreeBSD" ]
24
2021-02-03T17:06:13.000Z
2021-04-02T13:09:13.000Z
piper/jde.py
miketarpey/piper
d1620727889228d61fbe448f4747cef9351ede59
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import logging import pandas as pd from datetime import datetime from typing import ( Any, Callable, Dict, Hashable, Iterable, List, NamedTuple, Optional, Pattern, Set, Tuple, Union, ) logger = logging.getLogger(__name__) # add_jde_batch() {{{1...
27.868132
109
0.542587
287
2,536
4.672474
0.487805
0.040268
0.050708
0.053691
0
0
0
0
0
0
0
0.076923
0.36948
2,536
90
110
28.177778
0.761726
0.541009
0
0
0
0
0.07957
0
0
0
0
0
0
1
0.03125
false
0
0.125
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
543e07ad4f4ef4e280a96b2a4575d3e61db5448a
2,159
py
Python
codes/utils.py
epfml/byzantine-robust-noniid-optimizer
0e27349ac99235251110d54dd102fda0091bf274
[ "MIT" ]
7
2021-06-22T03:12:15.000Z
2022-01-06T16:11:14.000Z
codes/utils.py
epfml/byzantine-robust-noniid-optimizer
0e27349ac99235251110d54dd102fda0091bf274
[ "MIT" ]
null
null
null
codes/utils.py
epfml/byzantine-robust-noniid-optimizer
0e27349ac99235251110d54dd102fda0091bf274
[ "MIT" ]
2
2021-12-12T13:28:02.000Z
2022-02-18T13:22:20.000Z
import os import shutil import logging class BColors(object): HEADER = "\033[95m" OK_BLUE = "\033[94m" OK_CYAN = "\033[96m" OK_GREEN = "\033[92m" WARNING = "\033[93m" FAIL = "\033[91m" END_C = "\033[0m" BOLD = "\033[1m" UNDERLINE = "\033[4m" def touch(fname: str, times=None, crea...
25.104651
64
0.642427
308
2,159
4.37987
0.399351
0.041512
0.070423
0.024463
0.254262
0.151223
0.115641
0.115641
0.060786
0.060786
0
0.032902
0.211672
2,159
85
65
25.4
0.759694
0.04817
0
0.16129
0
0
0.067838
0
0
0
0
0
0
1
0.112903
false
0.032258
0.048387
0.016129
0.354839
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
543e913c7932efd8a58e4692b8be276e0e6a692e
2,090
py
Python
setup.py
robertjanes/drawbot
5a0a2ce55cda3f87624ae8c028d9d59aceee3897
[ "BSD-2-Clause" ]
null
null
null
setup.py
robertjanes/drawbot
5a0a2ce55cda3f87624ae8c028d9d59aceee3897
[ "BSD-2-Clause" ]
null
null
null
setup.py
robertjanes/drawbot
5a0a2ce55cda3f87624ae8c028d9d59aceee3897
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import division, absolute_import, print_function from setuptools import setup import os import re import shutil _versionRE = re.compile(r'__version__\s*=\s*\"([^\"]+)\"') # read the version number for the settings file with open('drawBot/drawBotSettings.py', "r") as settings: ...
32.65625
247
0.688517
233
2,090
6.017167
0.527897
0.029957
0.035663
0.017118
0.105563
0.105563
0.038516
0
0
0
0
0.002966
0.193301
2,090
63
248
33.174603
0.828588
0.072249
0
0.117647
0
0.019608
0.346253
0.085271
0
0
0
0
0.019608
1
0
false
0
0.098039
0
0.098039
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5442d7409922b392e57d7544f376052f8505514b
11,160
py
Python
watertap/examples/flowsheets/case_studies/municipal_treatment/municipal_treatment.py
avdudchenko/watertap
ac8d59e015688ff175a8087d2d52272e4f1fe84f
[ "BSD-3-Clause-LBNL" ]
4
2021-11-06T01:13:22.000Z
2022-02-08T21:16:38.000Z
watertap/examples/flowsheets/case_studies/municipal_treatment/municipal_treatment.py
avdudchenko/watertap
ac8d59e015688ff175a8087d2d52272e4f1fe84f
[ "BSD-3-Clause-LBNL" ]
233
2021-10-13T12:53:44.000Z
2022-03-31T21:59:50.000Z
watertap/examples/flowsheets/case_studies/municipal_treatment/municipal_treatment.py
avdudchenko/watertap
ac8d59e015688ff175a8087d2d52272e4f1fe84f
[ "BSD-3-Clause-LBNL" ]
12
2021-11-01T19:11:03.000Z
2022-03-08T22:20:58.000Z
############################################################################### # WaterTAP Copyright (c) 2021, The Regents of the University of California, # through Lawrence Berkeley National Laboratory, Oak Ridge National # Laboratory, National Renewable Energy Laboratory, and National Energy # Technology Laboratory ...
32.631579
88
0.66819
1,424
11,160
5.047051
0.191011
0.051343
0.022262
0.044803
0.368026
0.328649
0.228607
0.164464
0.108112
0.108112
0
0.011996
0.200717
11,160
341
89
32.727273
0.793722
0.075269
0
0.135659
0
0
0.093682
0.009872
0
0
0
0
0.027132
1
0.034884
false
0
0.050388
0
0.096899
0.034884
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54439c9a0c52b928b7dce1ab1fcc8ffac580ad8b
2,680
py
Python
lib/googlecloudsdk/sql/tools/instances/delete.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/sql/tools/instances/delete.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/sql/tools/instances/delete.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Google Inc. All Rights Reserved. """Deletes a Cloud SQL instance.""" from googlecloudapis.apitools.base import py as apitools_base from googlecloudsdk.calliope import base from googlecloudsdk.calliope import exceptions from googlecloudsdk.core import log from googlecloudsdk.core.util import console_io...
31.904762
79
0.701493
321
2,680
5.785047
0.417445
0.035541
0.034464
0.025848
0.180937
0.103393
0.103393
0.103393
0.103393
0.103393
0
0.001936
0.229104
2,680
83
80
32.289157
0.896902
0.378358
0
0.052632
0
0
0.099483
0
0
0
0
0
0
1
0.078947
false
0
0.157895
0
0.289474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
544732e628a00b56caac8c9cd412468f1e74169a
8,514
py
Python
iologik/e2210.py
shannon-jia/iologik
bda254ee1cdb3f4d724fbb9d6fe993257f1cce52
[ "MIT" ]
null
null
null
iologik/e2210.py
shannon-jia/iologik
bda254ee1cdb3f4d724fbb9d6fe993257f1cce52
[ "MIT" ]
null
null
null
iologik/e2210.py
shannon-jia/iologik
bda254ee1cdb3f4d724fbb9d6fe993257f1cce52
[ "MIT" ]
null
null
null
import aiohttp import asyncio import async_timeout import logging from collections import namedtuple, deque from .events import Events from html.parser import HTMLParser log = logging.getLogger(__name__) class Parser(HTMLParser): def handle_starttag(self, tag, attrs): log.debug("Encountered a start tag:...
38.7
161
0.499765
969
8,514
4.263158
0.199174
0.035585
0.021786
0.037279
0.263859
0.234084
0.20794
0.184459
0.173082
0.140402
0
0.015738
0.365633
8,514
219
162
38.876712
0.749121
0.012568
0
0.198925
0
0
0.118903
0
0
0
0
0
0
1
0.05914
false
0.005376
0.037634
0
0.182796
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5448e80da68c244752c3380cbc4f039308ae3d65
7,009
py
Python
apps/cmdb/verify/operate.py
yanshicheng/super-ops
dd39fe971bfd0f912cab155b82e41a09aaa47892
[ "Apache-2.0" ]
null
null
null
apps/cmdb/verify/operate.py
yanshicheng/super-ops
dd39fe971bfd0f912cab155b82e41a09aaa47892
[ "Apache-2.0" ]
1
2022-01-17T09:34:14.000Z
2022-01-18T13:32:20.000Z
apps/cmdb/verify/operate.py
yanshicheng/super_ops
dd39fe971bfd0f912cab155b82e41a09aaa47892
[ "Apache-2.0" ]
null
null
null
from ..models import Classify, Fields, Asset, AssetBind, ClassifyBind from django.db.models import Q from collections import OrderedDict from django.forms.models import model_to_dict class OperateInstance: @staticmethod def get_classify(id): """通过ID 查找指定分类表""" return Classify.objects.filter(id...
31.859091
89
0.610786
880
7,009
4.527273
0.118182
0.054217
0.085843
0.094127
0.609187
0.501506
0.451305
0.347139
0.316265
0.276857
0
0.000207
0.309317
7,009
219
90
32.004566
0.822764
0.102582
0
0.536585
0
0
0.018801
0
0
0
0
0
0
1
0.128049
false
0
0.02439
0
0.408537
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
544b2254aa27aedc58e9f1dae64e313ac23e420d
525
py
Python
glass/mirror.py
fwcd/glass
eba5321753a41e4ebb28f6933ec554c104cb0f4c
[ "MIT" ]
2
2021-02-01T23:06:35.000Z
2022-01-12T15:39:30.000Z
glass/mirror.py
fwcd/glass
eba5321753a41e4ebb28f6933ec554c104cb0f4c
[ "MIT" ]
1
2022-03-18T04:07:58.000Z
2022-03-19T18:00:08.000Z
glass/mirror.py
fwcd/glass
eba5321753a41e4ebb28f6933ec554c104cb0f4c
[ "MIT" ]
null
null
null
import subprocess from pathlib import Path from urllib.parse import urlparse def mirror_repo(repo_url, target_dir): repo_dir = Path(str(target_dir) + urlparse(repo_url).path) repo_dir.parent.mkdir(parents=True, exist_ok=True) if repo_dir.exists(): print(f'Updating from {repo_url}...') subp...
35
88
0.67619
75
525
4.546667
0.453333
0.102639
0.076246
0.123167
0.158358
0.158358
0
0
0
0
0
0
0.167619
525
14
89
37.5
0.78032
0
0
0
0
0
0.16381
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
544bbee47e78ee286a199342f8cffdd22f773ed2
3,880
py
Python
modeling/__init__.py
WinstonHuTiger/BOEMD-UNet
f81a0506b8b8a90fd783afcda61f28acb113fc77
[ "MIT" ]
2
2021-10-03T11:49:32.000Z
2021-12-15T11:40:52.000Z
modeling/__init__.py
WinstonHuTiger/BOEMD-UNet
f81a0506b8b8a90fd783afcda61f28acb113fc77
[ "MIT" ]
null
null
null
modeling/__init__.py
WinstonHuTiger/BOEMD-UNet
f81a0506b8b8a90fd783afcda61f28acb113fc77
[ "MIT" ]
null
null
null
import os import torch from modeling.unet import * from modeling.bAttenUnet import MDecoderUNet, MMultiBAUNet, MMultiBUNet def build_model(args, nchannels, nclass, model='unet'): if model == 'unet': return UNet( n_channels=nchannels, n_classes=nclass, bilinear=True, ...
27.51773
85
0.559794
413
3,880
5.118644
0.220339
0.059603
0.0965
0.119678
0.531693
0.499527
0.499527
0.452223
0.43141
0.410596
0
0.007151
0.351289
3,880
140
86
27.714286
0.832737
0.043814
0
0.52381
0
0
0.050489
0
0
0
0
0
0.007937
1
0.015873
false
0
0.031746
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
544ec34dfb38023e11066f7adf551926d37772c9
3,111
py
Python
api_site/src/api_x/application/entry/bankcard_views.py
webee/pay
b48c6892686bf3f9014bb67ed119506e41050d45
[ "W3C" ]
1
2019-10-14T11:51:49.000Z
2019-10-14T11:51:49.000Z
api_site/src/api_x/application/entry/bankcard_views.py
webee/pay
b48c6892686bf3f9014bb67ed119506e41050d45
[ "W3C" ]
null
null
null
api_site/src/api_x/application/entry/bankcard_views.py
webee/pay
b48c6892686bf3f9014bb67ed119506e41050d45
[ "W3C" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from api_x.utils import response from api_x.utils.entry_auth import verify_request from flask import request from . import application_mod as mod from .. import dba from .. import bankcard from api_x.utils.parser import to_bool from pytoolbox.util.log import get_l...
34.566667
104
0.724204
456
3,111
4.611842
0.195175
0.07418
0.055635
0.057061
0.473609
0.349976
0.280076
0.247741
0.247741
0.208749
0
0.0023
0.161363
3,111
89
105
34.955056
0.803756
0.003857
0
0.3
0
0
0.148531
0.070714
0
0
0
0
0
1
0.071429
false
0
0.128571
0
0.328571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5451d6245307e0c41240f5d6be7ea9013b165899
196
py
Python
SImple-Number.py
TonikaHristova/Loops
55b3f1608cf81d185fe98366450b527350d86f3b
[ "MIT" ]
null
null
null
SImple-Number.py
TonikaHristova/Loops
55b3f1608cf81d185fe98366450b527350d86f3b
[ "MIT" ]
null
null
null
SImple-Number.py
TonikaHristova/Loops
55b3f1608cf81d185fe98366450b527350d86f3b
[ "MIT" ]
null
null
null
import math num = int(input()) is_prime = True if num < 2: print("Not prime") for i in range(2, int(math.sqrt(num)+1)): if num / i == 0: is_prime = False print(is_prime)
9.8
41
0.571429
34
196
3.205882
0.588235
0.192661
0
0
0
0
0
0
0
0
0
0.028369
0.280612
196
19
42
10.315789
0.744681
0
0
0
0
0
0.047619
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
545316d49d38f35bdeec6536c47e60475a119d98
1,041
py
Python
KeyBoardControlImageCaptue.py
Prashant-1305/Tello-Drone
11c3f845a9887c66ac7e52e042dfd28f23555d2e
[ "MIT" ]
null
null
null
KeyBoardControlImageCaptue.py
Prashant-1305/Tello-Drone
11c3f845a9887c66ac7e52e042dfd28f23555d2e
[ "MIT" ]
null
null
null
KeyBoardControlImageCaptue.py
Prashant-1305/Tello-Drone
11c3f845a9887c66ac7e52e042dfd28f23555d2e
[ "MIT" ]
null
null
null
import KeyPressModule as kp from djitellopy import tello import time import cv2 global img kp.init() skynet = tello.Tello() skynet.connect() print(skynet.get_battery()) skynet.streamon() def getKeyboardInput(): lr, fb, ud, yv = 0, 0, 0, 0 speed = 50 if kp.getKey("LEFT"): lr = -speed elif kp.getKey(...
22.148936
74
0.616715
158
1,041
4.031646
0.43038
0.138148
0.10989
0.10675
0
0
0
0
0
0
0
0.029197
0.210375
1,041
47
75
22.148936
0.745742
0.032661
0
0
0
0
0.060576
0.033764
0
0
0
0
0
1
0.030303
false
0
0.121212
0
0.181818
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54538684df9453f633582e0d87edd283242082a7
8,464
py
Python
tests/unit/nistbeacon/test_nistbeacon.py
urda/py_nist_beacon
0251970ec31bc370c326c4c3c3b93a5513bdc028
[ "Apache-2.0" ]
11
2017-05-06T02:42:34.000Z
2021-02-11T10:13:09.000Z
tests/unit/nistbeacon/test_nistbeacon.py
urda/nistbeacon
0251970ec31bc370c326c4c3c3b93a5513bdc028
[ "Apache-2.0" ]
31
2015-12-13T12:04:10.000Z
2021-01-27T02:34:34.000Z
tests/unit/nistbeacon/test_nistbeacon.py
urda/py_nist_beacon
0251970ec31bc370c326c4c3c3b93a5513bdc028
[ "Apache-2.0" ]
1
2015-12-25T03:50:25.000Z
2015-12-25T03:50:25.000Z
""" Copyright 2015-2017 Peter Urda 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 writing, softwar...
34.129032
79
0.69258
965
8,464
5.754404
0.153368
0.071313
0.077796
0.077796
0.685395
0.619125
0.553034
0.486764
0.452728
0.439402
0
0.017191
0.237122
8,464
247
80
34.267206
0.842806
0.075142
0
0.461957
0
0
0.018417
0
0
0
0
0
0.086957
1
0.070652
false
0
0.032609
0
0.108696
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54539ddc987a464c0db1b706648667e1f538fd7a
5,417
py
Python
aae/auto_pose/visualization/render_pose.py
shbe-aau/multi-pose-estimation
0425ed9dcc7969f0281cb435615abc33c640e157
[ "MIT" ]
4
2021-12-28T09:25:06.000Z
2022-01-13T12:55:44.000Z
aae/auto_pose/visualization/render_pose.py
shbe-aau/multi-view-pose-estimation
22cea6cd09684fe655fb2214bc14856f589048e1
[ "MIT" ]
null
null
null
aae/auto_pose/visualization/render_pose.py
shbe-aau/multi-view-pose-estimation
22cea6cd09684fe655fb2214bc14856f589048e1
[ "MIT" ]
1
2022-01-13T13:00:15.000Z
2022-01-13T13:00:15.000Z
import cv2 import numpy as np import os from auto_pose.meshrenderer import meshrenderer from auto_pose.ae.utils import lazy_property class PoseVisualizer: def __init__(self, mp_pose_estimator, downsample=1, vertex_scale=False): self.downsample = downsample self.vertex_scale = [mp_pose_estimator...
47.517544
158
0.567288
762
5,417
3.765092
0.220472
0.043918
0.036598
0.025096
0.363193
0.315092
0.243987
0.232834
0.171488
0.148484
0
0.036426
0.305704
5,417
113
159
47.938053
0.726403
0.040613
0
0.222222
0
0
0.052987
0.018304
0
0
0
0
0
1
0.033333
false
0
0.055556
0.011111
0.122222
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5456722cbb51619ad54be3201718c3cfa01f24c7
13,034
py
Python
cogs/user.py
billydevyt/RoboBilly
6d79ab9626a6d6b487dd73688ad7187212e7864c
[ "MIT" ]
6
2020-11-07T16:46:18.000Z
2021-01-03T11:52:39.000Z
cogs/user.py
billyeatcookies/RoboBilly
6d79ab9626a6d6b487dd73688ad7187212e7864c
[ "MIT" ]
3
2020-11-30T01:52:41.000Z
2021-01-03T11:53:18.000Z
cogs/user.py
billyeatcookies/RoboBilly
6d79ab9626a6d6b487dd73688ad7187212e7864c
[ "MIT" ]
7
2021-04-17T07:27:58.000Z
2021-08-31T15:21:42.000Z
""" User module """ import discord import random import asyncio from discord.ext import commands from discord.ext.commands import has_permissions, MissingPermissions, BadArgument import requests, json, pyfiglet from datetime import timedelta, datetime class User(commands.Cog): api_key = "bbde6a19c33fb4c3962e36b...
43.15894
490
0.603192
1,664
13,034
4.674279
0.250601
0.029828
0.029313
0.029699
0.273978
0.23605
0.197866
0.152867
0.138853
0.138853
0
0.008214
0.262084
13,034
301
491
43.302326
0.799543
0.036443
0
0.256881
0
0.036697
0.309814
0.00441
0.004587
0
0
0
0
1
0.018349
false
0.004587
0.036697
0
0.082569
0.068807
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5459131a00c531976bbf1bad787c4cbce19610f5
622
py
Python
wsu/tools/simx/simx/python/simx/protomap/util.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
1
2020-02-28T20:35:09.000Z
2020-02-28T20:35:09.000Z
wsu/tools/simx/simx/python/simx/protomap/util.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
null
null
null
wsu/tools/simx/simx/python/simx/protomap/util.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
null
null
null
def sync_read(socket, size): """ Perform a (temporary) blocking read. The amount read may be smaller than the amount requested if a timeout occurs. """ timeout = socket.gettimeout() socket.settimeout(None) try: return socket.recv(size) finally: socket.settimeout(time...
22.214286
65
0.607717
69
622
5.449275
0.449275
0.170213
0.090426
0.132979
0.244681
0.244681
0.244681
0
0
0
0
0
0.290997
622
27
66
23.037037
0.852608
0.245981
0
0.625
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
545b4ee6fb3b667ccf9bf2aadc9dfb4077e4dee6
976
py
Python
mergeKsortedlist.py
ZhouLihua/leetcode
7a711e450756fb7b5648e938879d690e583f5957
[ "MIT" ]
2
2019-05-16T03:11:44.000Z
2019-10-25T03:20:05.000Z
mergeKsortedlist.py
ZhouLihua/leetcode
7a711e450756fb7b5648e938879d690e583f5957
[ "MIT" ]
null
null
null
mergeKsortedlist.py
ZhouLihua/leetcode
7a711e450756fb7b5648e938879d690e583f5957
[ "MIT" ]
null
null
null
#Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None import sys class Solution(object): def mergeKLists(self, lists): """ :type lists: List[ListNode] :rtype: ListNode """ temp = ListNode(-1) ...
27.885714
50
0.482582
104
976
4.413462
0.384615
0.078431
0.043573
0
0
0
0
0
0
0
0
0.01259
0.430328
976
34
51
28.705882
0.81295
0.080943
0
0
0
0
0
0
0
0
0
0
0
1
0.074074
false
0
0.037037
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
545c039475e437fcfe31a7978e08b358e2864ddd
1,334
py
Python
f5/bigip/tm/vcmp/test/unit/test_virtual_disk.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
272
2016-02-23T06:05:44.000Z
2022-02-20T02:09:32.000Z
f5/bigip/tm/vcmp/test/unit/test_virtual_disk.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
1,103
2016-02-11T17:48:03.000Z
2022-02-15T17:13:37.000Z
f5/bigip/tm/vcmp/test/unit/test_virtual_disk.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
167
2016-02-11T17:48:21.000Z
2022-01-17T20:13:05.000Z
# Copyright 2017 F5 Networks 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 in writi...
29.644444
74
0.749625
191
1,334
5.198953
0.492147
0.060423
0.066465
0.084592
0.322256
0.234643
0.234643
0.18429
0
0
0
0.01
0.175412
1,334
44
75
30.318182
0.892727
0.413793
0
0.15
0
0
0.132986
0
0
0
0
0
0.15
1
0.2
false
0
0.2
0
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
545c8aae9bf713a7f6422a8269de2049905dd92f
562
py
Python
wk11frontend.py
alvaro-root/pa2_2021
fee3931f9e10a7d39af9bf2ce5f033e41621bbda
[ "MIT" ]
null
null
null
wk11frontend.py
alvaro-root/pa2_2021
fee3931f9e10a7d39af9bf2ce5f033e41621bbda
[ "MIT" ]
null
null
null
wk11frontend.py
alvaro-root/pa2_2021
fee3931f9e10a7d39af9bf2ce5f033e41621bbda
[ "MIT" ]
null
null
null
import requests import json def main(): host = "http://localhost:5006" urlpattern = "/user/" response = requests.post(f"{host}{urlpattern}", json={'key1': 'random value'}) if 199 < response.status_code < 300: for k, v in response.headers.items(): print(f"{k} -> {v}") prin...
21.615385
82
0.551601
70
562
4.285714
0.542857
0.026667
0.12
0.046667
0.086667
0
0
0
0
0
0
0.031707
0.270463
562
25
83
22.48
0.7
0
0
0.117647
0
0
0.258007
0.039146
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.176471
0.235294
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
545fe80c1b80eb166756266947e1f74465ae48f6
2,517
py
Python
files/files.py
StevenKangWei/tools
f0de7d2202dbe979b06ba8344addad6df6e96320
[ "MIT" ]
15
2021-07-06T13:03:09.000Z
2022-03-05T04:18:13.000Z
files/files.py
StevenKangWei/tools
f0de7d2202dbe979b06ba8344addad6df6e96320
[ "MIT" ]
1
2021-12-03T05:39:24.000Z
2021-12-03T05:39:24.000Z
files/files.py
StevenKangWei/tools
f0de7d2202dbe979b06ba8344addad6df6e96320
[ "MIT" ]
5
2021-07-30T09:31:31.000Z
2022-01-03T06:30:25.000Z
#!/usr/bin/python import os import glob import traceback import datetime import dandan from flask import Flask from flask import abort from flask import send_file from flask import send_from_directory from flask import render_template from werkzeug.routing import BaseConverter import config __VERSI...
25.683673
90
0.642034
310
2,517
5.083871
0.316129
0.057107
0.047589
0.024112
0.049492
0
0
0
0
0
0
0.005702
0.233611
2,517
97
91
25.948454
0.811301
0.015097
0
0.056338
0
0
0.069357
0.020177
0
0
0
0
0
1
0.084507
false
0
0.169014
0
0.394366
0.028169
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
546042473af828587af78168aa3e36324191b2db
2,961
py
Python
jdcloud_sdk/services/iotcore/models/DeviceVO.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
jdcloud_sdk/services/iotcore/models/DeviceVO.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
jdcloud_sdk/services/iotcore/models/DeviceVO.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.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 law or agreed ...
43.544118
401
0.69875
318
2,961
6.493711
0.421384
0.029056
0.012591
0.015496
0
0
0
0
0
0
0
0.007353
0.219183
2,961
67
402
44.19403
0.885813
0.502195
0
0
0
0
0
0
0
0
0
0
0
1
0.043478
false
0
0
0
0.086957
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
546277ddd1038ab1b79d6538508e871a2186c14c
3,560
py
Python
src/backend/main.py
tuimac/servertools
ceda2685a248d700f48aea4f93887b0f89a264a8
[ "MIT" ]
null
null
null
src/backend/main.py
tuimac/servertools
ceda2685a248d700f48aea4f93887b0f89a264a8
[ "MIT" ]
null
null
null
src/backend/main.py
tuimac/servertools
ceda2685a248d700f48aea4f93887b0f89a264a8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from subprocess import Popen, PIPE, DEVNULL, run import socket import sys import traceback import argparse import time import logging import os logger = logging.getLogger("django") def startProcess(command, port): try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) ...
30.169492
108
0.538202
384
3,560
4.932292
0.361979
0.009504
0.025343
0.028511
0.202746
0.137276
0.100317
0.100317
0.100317
0.100317
0
0.017417
0.338764
3,560
117
109
30.42735
0.787171
0.020225
0
0.278846
0
0.009615
0.187608
0
0
0
0
0
0
1
0.038462
false
0.009615
0.076923
0
0.125
0.057692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
546488ac5fe6da6a714985e1c5c6692b62df9032
3,585
py
Python
datatest/main.py
ajhynes7/datatest
78742e98de992807286655f5685a2dc33a7b452e
[ "Apache-2.0" ]
277
2016-05-12T13:22:49.000Z
2022-03-11T00:18:32.000Z
datatest/main.py
ajhynes7/datatest
78742e98de992807286655f5685a2dc33a7b452e
[ "Apache-2.0" ]
57
2016-05-18T01:03:32.000Z
2022-02-17T13:48:43.000Z
datatest/main.py
ajhynes7/datatest
78742e98de992807286655f5685a2dc33a7b452e
[ "Apache-2.0" ]
16
2016-05-22T11:35:19.000Z
2021-12-01T19:41:42.000Z
"""Datatest main program""" import sys as _sys from unittest import TestProgram as _TestProgram from unittest import defaultTestLoader as _defaultTestLoader try: from unittest.signals import installHandler except ImportError: installHandler = None from datatest import DataTestRunner __unittest = True __datat...
38.138298
80
0.538633
303
3,585
6.138614
0.260726
0.025806
0.045161
0.027419
0.401613
0.383333
0.383333
0.383333
0.383333
0.383333
0
0.005912
0.386611
3,585
93
81
38.548387
0.839927
0.054114
0
0.454545
0
0
0.022774
0
0
0
0
0
0
1
0.051948
false
0.012987
0.077922
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54655fd5e9013ea6eec439615853e317aa7b100b
17,503
py
Python
zvmsdk/vmops.py
jasealpers/python-zvm-sdk
feb19dd40915b1a6cad74e7ccda17bc76d015ea5
[ "Apache-2.0" ]
9
2017-06-13T17:46:33.000Z
2019-01-08T03:00:00.000Z
zvmsdk/vmops.py
jasealpers/python-zvm-sdk
feb19dd40915b1a6cad74e7ccda17bc76d015ea5
[ "Apache-2.0" ]
4
2018-07-18T21:41:21.000Z
2019-01-07T06:05:15.000Z
zvmsdk/vmops.py
jasealpers/python-zvm-sdk
feb19dd40915b1a6cad74e7ccda17bc76d015ea5
[ "Apache-2.0" ]
20
2017-02-27T09:46:13.000Z
2019-05-29T23:17:52.000Z
# Copyright 2017 IBM Corp. # # 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 t...
40.144495
79
0.588642
2,126
17,503
4.645814
0.171214
0.02764
0.03007
0.021262
0.328339
0.235598
0.171003
0.108434
0.086362
0.078668
0
0.00343
0.317031
17,503
435
80
40.236782
0.822821
0.099469
0
0.133333
0
0
0.149536
0
0
0
0
0.002299
0
1
0.114286
false
0.006349
0.028571
0.003175
0.203175
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
546685a1cd267c088cdbed690f4354973078c4ca
3,481
py
Python
Q146.py
Linchin/python_leetcode_git
3d08ab04bbdbd2ce268f33c501fbb149662872c7
[ "MIT" ]
null
null
null
Q146.py
Linchin/python_leetcode_git
3d08ab04bbdbd2ce268f33c501fbb149662872c7
[ "MIT" ]
null
null
null
Q146.py
Linchin/python_leetcode_git
3d08ab04bbdbd2ce268f33c501fbb149662872c7
[ "MIT" ]
null
null
null
""" Q146 LRU Cache Medium Author: Lingqing Gan Date: 08/06/2019 Question: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return ...
26.172932
76
0.600402
527
3,481
3.948767
0.265655
0.107641
0.121576
0.050457
0.201346
0.174916
0.093224
0.08025
0.06247
0.06247
0
0.017688
0.301637
3,481
132
77
26.371212
0.838338
0.378914
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.063492
false
0
0
0
0.15873
0.079365
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54685a8741677f7fae5e8b83b5e24b77c1c400f9
712
py
Python
notebooks/session_4/s3-sobelAndmatplotlib.py
bigmpc/cv-spring-2021
81d9384f74f5411804cdbb26be5b7ced0d0f5958
[ "Apache-2.0" ]
3
2021-03-09T10:00:50.000Z
2021-12-26T07:19:09.000Z
notebooks/session_4/s3-sobelAndmatplotlib.py
bigmpc/cv-spring-2021
81d9384f74f5411804cdbb26be5b7ced0d0f5958
[ "Apache-2.0" ]
null
null
null
notebooks/session_4/s3-sobelAndmatplotlib.py
bigmpc/cv-spring-2021
81d9384f74f5411804cdbb26be5b7ced0d0f5958
[ "Apache-2.0" ]
1
2021-02-27T16:09:30.000Z
2021-02-27T16:09:30.000Z
import cv2 import numpy as np import matplotlib.pyplot as plt #Read the image as grayscale: image = cv2.imread('building.jpg', 0) #Compute the gradient approximations using the Sobel operator: dx = cv2.Sobel(image, cv2.CV_32F, 1, 0) dy = cv2.Sobel(image, cv2.CV_32F, 0, 1) #Visualize the results: plt.figu...
19.777778
63
0.671348
117
712
4.068376
0.367521
0.084034
0.084034
0.109244
0.361345
0.205882
0.117647
0
0
0
0
0.044776
0.15309
712
35
64
20.342857
0.74461
0.155899
0
0.25
0
0
0.099467
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5469add1bc5b0732388dfd9a2adc569e52915599
1,656
py
Python
poppy/data_preprocess.py
phanxuanphucnd/BertTextClassification
c9a0500f07d831f924f56cc8211569b035c6e47a
[ "MIT" ]
1
2021-06-14T21:03:04.000Z
2021-06-14T21:03:04.000Z
poppy/data_preprocess.py
phanxuanphucnd/BertTextClassification
c9a0500f07d831f924f56cc8211569b035c6e47a
[ "MIT" ]
null
null
null
poppy/data_preprocess.py
phanxuanphucnd/BertTextClassification
c9a0500f07d831f924f56cc8211569b035c6e47a
[ "MIT" ]
null
null
null
import pandas as pd import re import os from tqdm import tqdm ## Cleaning train raw dataset train = open('./data/raw/train.crash').readlines() train_ids = [] train_texts = [] train_labels = [] for id, line in tqdm(enumerate(train)): line = line.strip() if line.startswith("train_"): train_ids.append...
23.323944
80
0.618357
250
1,656
3.968
0.26
0.042339
0.045363
0.045363
0.157258
0.157258
0
0
0
0
0
0.010463
0.192029
1,656
71
81
23.323944
0.730942
0.029589
0
0.08
0
0
0.107923
0.046787
0
0
0
0
0
1
0
false
0
0.08
0
0.08
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
546a32ceac58022d2ad2cfb8c9d2804371eb31f5
6,456
py
Python
websaw/core/app.py
valq7711/websaw
fb5718ad3ecd011d7fbb3f24fa007d84951bd58c
[ "MIT" ]
1
2022-02-25T15:02:25.000Z
2022-02-25T15:02:25.000Z
websaw/core/app.py
valq7711/websaw
fb5718ad3ecd011d7fbb3f24fa007d84951bd58c
[ "MIT" ]
null
null
null
websaw/core/app.py
valq7711/websaw
fb5718ad3ecd011d7fbb3f24fa007d84951bd58c
[ "MIT" ]
null
null
null
import functools from types import SimpleNamespace from typing import List from . import globs from .context import BaseContext from .exceptions import FixtureProcessError from .reloader import Reloader from .static_registry import static_registry def _dummy_exception_handler(ctx: BaseContext, exc: Exception): r...
31.960396
118
0.577912
774
6,456
4.577519
0.149871
0.035563
0.013548
0.014395
0.199548
0.16201
0.138301
0.108383
0.108383
0.085803
0
0.000231
0.328996
6,456
201
119
32.119403
0.817636
0.012546
0
0.157576
0
0
0.031863
0.011301
0
0
0
0
0
1
0.09697
false
0.006061
0.048485
0.006061
0.242424
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
546e4ec20d3fdf8c1c5f8ed657bb3f80549f9803
1,365
py
Python
setup.py
google/ads-api-reports-fetcher
de0bacc3ab520b020cf19985284b7e3dbc9778b0
[ "Apache-2.0" ]
4
2022-02-16T12:42:26.000Z
2022-03-30T17:14:32.000Z
setup.py
google/ads-api-reports-fetcher
de0bacc3ab520b020cf19985284b7e3dbc9778b0
[ "Apache-2.0" ]
null
null
null
setup.py
google/ads-api-reports-fetcher
de0bacc3ab520b020cf19985284b7e3dbc9778b0
[ "Apache-2.0" ]
1
2022-03-28T05:51:57.000Z
2022-03-28T05:51:57.000Z
import pathlib from setuptools import setup, find_packages HERE = pathlib.Path(__file__).parent README = (HERE / "README.md").read_text() setup(name="google-ads-api-report-fetcher", version="0.1", description="Library for fetching reports from Google Ads API and saving them locally / BigQuery.", lo...
36.891892
105
0.621245
153
1,365
5.424837
0.633987
0.043373
0.043373
0
0
0
0
0
0
0
0
0.018147
0.232967
1,365
36
106
37.916667
0.774594
0
0
0.060606
0
0
0.489377
0.101099
0
0
0
0
0
1
0
false
0
0.060606
0
0.060606
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
546e73d201a7995e9aa7205db669d55b27e2e940
2,880
py
Python
scan_service/scan_service/utils/stats.py
kkkkv/tgnms
a3b8fd8a69b647a614f9856933f05e50a4affadf
[ "MIT" ]
12
2021-04-06T06:27:18.000Z
2022-03-18T10:52:29.000Z
scan_service/scan_service/utils/stats.py
kkkkv/tgnms
a3b8fd8a69b647a614f9856933f05e50a4affadf
[ "MIT" ]
6
2022-01-04T13:32:16.000Z
2022-03-28T21:13:59.000Z
scan_service/scan_service/utils/stats.py
kkkkv/tgnms
a3b8fd8a69b647a614f9856933f05e50a4affadf
[ "MIT" ]
7
2021-09-27T13:14:42.000Z
2022-03-28T16:24:15.000Z
#!/usr/bin/env python3 # Copyright 2004-present Facebook. All Rights Reserved. import asyncio import logging import time from collections import defaultdict from typing import DefaultDict, Dict, List from tglib.clients.prometheus_client import PrometheusClient, consts from tglib.exceptions import ClientRuntimeError ...
32.727273
87
0.594097
320
2,880
5.18125
0.3375
0.048251
0.048251
0.043426
0.085645
0.085645
0.053076
0.053076
0
0
0
0.009036
0.308333
2,880
87
88
33.103448
0.823293
0.049653
0
0.112676
0
0
0.113406
0.026286
0
0
0
0
0
1
0.014085
false
0
0.112676
0
0.15493
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
547084a7679711993b0e3d30495458fce0c7f40b
1,866
py
Python
multithread_pipeline.py
kapitsa2811/smartOCR
6ecca79b29778778b1458ea28763a39920a3d58a
[ "MIT" ]
null
null
null
multithread_pipeline.py
kapitsa2811/smartOCR
6ecca79b29778778b1458ea28763a39920a3d58a
[ "MIT" ]
null
null
null
multithread_pipeline.py
kapitsa2811/smartOCR
6ecca79b29778778b1458ea28763a39920a3d58a
[ "MIT" ]
null
null
null
import glob import os from io import StringIO from threading import Thread import logging from logger import TimeHandler from costants import THREADS, INFERENCE_GRAPH from pipeline import pipeline logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) logger.addHandler(TimeHandler().handler) ...
29.619048
115
0.576099
227
1,866
4.414097
0.290749
0.095808
0.035928
0.067864
0.127745
0.06986
0.06986
0.06986
0.06986
0.06986
0
0.006375
0.327438
1,866
62
116
30.096774
0.792032
0.019293
0
0.117647
0
0
0.02718
0
0
0
0
0
0
1
0.039216
false
0
0.156863
0
0.215686
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5470a342899892808b0ad450ef5da5a2f9cf5b36
12,319
py
Python
src/keys_server/GMO/GMOKeysLookup.py
OasisLMF/gem
95c755a1cb76a2bbc41e5dd7bc503c59123ca3ac
[ "BSD-2-Clause" ]
null
null
null
src/keys_server/GMO/GMOKeysLookup.py
OasisLMF/gem
95c755a1cb76a2bbc41e5dd7bc503c59123ca3ac
[ "BSD-2-Clause" ]
null
null
null
src/keys_server/GMO/GMOKeysLookup.py
OasisLMF/gem
95c755a1cb76a2bbc41e5dd7bc503c59123ca3ac
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Python 2 standard library imports import csv import io import logging import os # Python 2 non-standard library imports import pandas as pd # Imports from Oasis core repos + subpackages or modules within keys_server from oasislmf.utils.coverages import COVERAGE_TYPES from oasislmf.utils.per...
36.554896
606
0.596396
1,502
12,319
4.61518
0.213715
0.037507
0.030006
0.020196
0.556261
0.541691
0.517455
0.466532
0.41056
0.391662
0
0.034301
0.275834
12,319
336
607
36.66369
0.742742
0.090105
0
0.390244
0
0
0.200641
0.004864
0
0
0
0
0
1
0.043902
false
0
0.063415
0
0.146341
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5470aea747a6878071245059e1de2776baa03338
18,485
py
Python
pandemic_eval.py
aypan17/value_learning
240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe
[ "MIT" ]
null
null
null
pandemic_eval.py
aypan17/value_learning
240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe
[ "MIT" ]
null
null
null
pandemic_eval.py
aypan17/value_learning
240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe
[ "MIT" ]
null
null
null
import time import sys import json import argparse from tqdm import trange from typing import Any, Callable, Dict, List, Optional, Tuple, Union import torch import numpy as np from scipy.spatial.distance import jensenshannon import gym import matplotlib.pyplot as plt from matplotlib.axes import Axes fr...
47.51928
182
0.648526
2,553
18,485
4.492362
0.20329
0.01831
0.02982
0.032958
0.331066
0.291133
0.261052
0.225739
0.20211
0.178045
0
0.028307
0.22218
18,485
388
183
47.641753
0.76937
0.234406
0
0.057252
0
0
0.035903
0.005444
0
0
0
0
0
1
0.049618
false
0
0.080153
0.01145
0.167939
0.007634
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5471ef5e2041074700733cd254f4357bec345d93
3,289
py
Python
WagerBrain/odds.py
sedemmler/WagerBrain
b1cc33f5eb7a6130106bf8251b554718e2d22172
[ "MIT" ]
83
2020-03-26T22:14:24.000Z
2022-03-22T19:00:48.000Z
website.py
rax-v/XSS
ff70b89c9fb94a19caaf84e81eddeeca052344ea
[ "MIT" ]
2
2020-03-26T19:34:03.000Z
2020-03-27T19:56:14.000Z
website.py
rax-v/XSS
ff70b89c9fb94a19caaf84e81eddeeca052344ea
[ "MIT" ]
19
2020-04-06T10:47:30.000Z
2022-03-30T19:16:42.000Z
from fractions import Fraction from math import gcd import numpy as np """ Convert the style of gambling odds to Function Name (Decimal, American, Fractional). TO DO: Fix edge case related to Fraction module that causes weird rounding / slightly off output """ def american_odds(odds): """ :param odds: ...
28.850877
123
0.578291
432
3,289
4.328704
0.226852
0.047059
0.06738
0.051337
0.163636
0.139037
0.056684
0.023529
0.023529
0.023529
0
0.030525
0.292794
3,289
113
124
29.106195
0.773431
0.211006
0
0.225806
0
0
0.018253
0
0
0
0
0
0
1
0.080645
false
0
0.048387
0
0.435484
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5472180161d7e60f43fc9232da207e59fa3cb086
16,438
py
Python
GANs/jsigan/ops.py
JonathanLehner/nnabla-examples
2971b987484945e12fb171594181908789485a0f
[ "Apache-2.0" ]
null
null
null
GANs/jsigan/ops.py
JonathanLehner/nnabla-examples
2971b987484945e12fb171594181908789485a0f
[ "Apache-2.0" ]
null
null
null
GANs/jsigan/ops.py
JonathanLehner/nnabla-examples
2971b987484945e12fb171594181908789485a0f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Sony Corporation. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
37.359091
98
0.55828
2,587
16,438
3.330499
0.124082
0.007428
0.004526
0.016713
0.351555
0.299907
0.230966
0.210771
0.19928
0.176764
0
0.045945
0.288965
16,438
439
99
37.444191
0.691222
0.137912
0
0.163823
0
0
0.039345
0.003393
0
0
0
0
0
1
0.061433
false
0
0.023891
0.003413
0.146758
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5475f0c326a3f8de3e388b70e03c71cc3faf4139
2,973
py
Python
neptune/internal/hardware/gpu/gpu_monitor.py
neptune-ml/neptune-client
7aea63160b5149c3fec40f62d3b0da7381a35748
[ "Apache-2.0" ]
13
2019-02-11T13:18:38.000Z
2019-12-26T06:26:07.000Z
neptune/internal/hardware/gpu/gpu_monitor.py
neptune-ml/neptune-client
7aea63160b5149c3fec40f62d3b0da7381a35748
[ "Apache-2.0" ]
39
2019-03-07T13:40:10.000Z
2020-01-07T17:19:24.000Z
neptune/internal/hardware/gpu/gpu_monitor.py
neptune-ml/neptune-client
7aea63160b5149c3fec40f62d3b0da7381a35748
[ "Apache-2.0" ]
4
2019-02-11T13:07:23.000Z
2019-11-26T08:20:24.000Z
# # Copyright (c) 2019, Neptune Labs Sp. z o.o. # # 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 agr...
35.392857
100
0.664649
333
2,973
5.711712
0.438438
0.031546
0.023659
0.034175
0.298107
0.287592
0.250263
0.250263
0.250263
0.229758
0
0.005057
0.268416
2,973
83
101
35.819277
0.869425
0.295997
0
0.06
0
0
0.09802
0.014969
0
0
0
0
0
1
0.12
false
0
0.04
0.08
0.36
0.06
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54768720b8a58a3c4d1cf1c8c265ceea8f6fc111
5,219
py
Python
tests/redis_map.py
jaredlunde/redis_structures
b9cce5f5c85db5e12c292633ff8d04e3ae053294
[ "MIT" ]
2
2016-04-05T08:40:47.000Z
2016-06-27T14:03:26.000Z
tests/redis_map.py
jaredLunde/redis_structures
b9cce5f5c85db5e12c292633ff8d04e3ae053294
[ "MIT" ]
1
2015-10-27T14:30:53.000Z
2015-11-09T17:54:33.000Z
tests/redis_map.py
jaredlunde/redis_structures
b9cce5f5c85db5e12c292633ff8d04e3ae053294
[ "MIT" ]
null
null
null
#!/usr/bin/python3 -S # -*- coding: utf-8 -*- """ `Redis Map Tests` --·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·--·-- 2015 Jared Lunde © The MIT License (MIT) http://github.com/jaredlunde """ import datetime import time import pickle import unittest from redis_structures.debug ...
30.881657
80
0.57923
695
5,219
4.286331
0.182734
0.124538
0.024169
0.030883
0.530715
0.465257
0.440416
0.39577
0.393756
0.388385
0
0.013558
0.251006
5,219
168
81
31.065476
0.741622
0.041579
0
0.323077
0
0
0.100822
0.015434
0
0
0
0
0.253846
1
0.153846
false
0
0.046154
0.007692
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
547c48103894763c6518d10f40329e0d7d4eaefd
1,228
py
Python
mlsurvey/sl/workflows/multiple_learning_workflow.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
mlsurvey/sl/workflows/multiple_learning_workflow.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
mlsurvey/sl/workflows/multiple_learning_workflow.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
from kedro.io import DataCatalog, MemoryDataSet from kedro.pipeline import Pipeline from kedro.runner import SequentialRunner import mlsurvey as mls from mlsurvey.workflows.learning_workflow import LearningWorkflow class MultipleLearningWorkflow(LearningWorkflow): def run(self): """ Run the wor...
34.111111
87
0.653094
127
1,228
6.165354
0.385827
0.070243
0.057471
0.045977
0.058748
0
0
0
0
0
0
0.001104
0.262215
1,228
35
88
35.085714
0.863135
0.100977
0
0
0
0
0.042751
0
0
0
0
0
0
1
0.05
false
0
0.25
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
547ff536693b82874299f521ef54379c7a3ee663
1,637
py
Python
tests/test_drc.py
atait/lymask
a047bee386e7c9c7f04030277cdfaf7b3c731d14
[ "MIT" ]
3
2020-12-01T07:55:50.000Z
2022-03-16T22:18:07.000Z
tests/test_drc.py
atait/lymask
a047bee386e7c9c7f04030277cdfaf7b3c731d14
[ "MIT" ]
null
null
null
tests/test_drc.py
atait/lymask
a047bee386e7c9c7f04030277cdfaf7b3c731d14
[ "MIT" ]
2
2020-12-01T22:56:35.000Z
2021-05-03T09:30:09.000Z
import os, sys import subprocess import xmltodict import lymask from lymask import batch_drc_main from conftest import test_dir drc_file = os.path.join(test_dir, 'tech', 'lymask_example_tech', 'drc', 'default.yml') layout_file = os.path.join(test_dir, '2_drc_src.oas') outfile = os.path.join(test_dir, '2_drc_run.lyrdb...
30.886792
115
0.722053
231
1,637
4.891775
0.428571
0.030973
0.035398
0.049558
0.258407
0.258407
0.128319
0
0
0
0
0.008076
0.16799
1,637
52
116
31.480769
0.821586
0.170434
0
0.090909
0
0
0.121988
0
0
0
0
0
0.121212
1
0.121212
false
0.030303
0.181818
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5480da3b737fa2ac8f9665bf668142513e4bbaba
1,731
py
Python
graphviz/parameters/formatters.py
boeddeker/graphviz
acf79bca4518781cad02c102e89ec4e9ce757088
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
graphviz/parameters/formatters.py
boeddeker/graphviz
acf79bca4518781cad02c102e89ec4e9ce757088
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
graphviz/parameters/formatters.py
boeddeker/graphviz
acf79bca4518781cad02c102e89ec4e9ce757088
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
"""Rendering formatter parameter handling.""" import typing from . import base __all__ = ['FORMATTERS', 'verify_formatter', 'Formatter'] FORMATTERS = {'cairo', 'core', 'gd', 'gdiplus', 'gdwbmp', 'xlib'} REQUIRED = False def verify_formatter(fo...
28.377049
84
0.60312
171
1,731
5.900585
0.368421
0.160555
0.067393
0.077304
0.105055
0.067393
0
0
0
0
0
0
0.274408
1,731
60
85
28.85
0.803344
0.116696
0
0.051282
0
0
0.094251
0
0
0
0
0
0
1
0.128205
false
0
0.051282
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
548192ff87fcf5b59d3f5cc728048383ca680545
5,727
py
Python
Source/Functions/RPSLS.Python.Api/NextMove/next_move.py
ivan-b-ivanov/RockPaperScissorsLizardSpock
9167bcbe5ad2937e834408475c2ec66cf92fef84
[ "MIT" ]
null
null
null
Source/Functions/RPSLS.Python.Api/NextMove/next_move.py
ivan-b-ivanov/RockPaperScissorsLizardSpock
9167bcbe5ad2937e834408475c2ec66cf92fef84
[ "MIT" ]
null
null
null
Source/Functions/RPSLS.Python.Api/NextMove/next_move.py
ivan-b-ivanov/RockPaperScissorsLizardSpock
9167bcbe5ad2937e834408475c2ec66cf92fef84
[ "MIT" ]
null
null
null
import logging import random import os import json from typing import Tuple, List import requests def predict(player_name: str) -> str: next_move = _predict_next_move(*_get_player_games(player_name)) return _convert_game_to_json(next_move) R_rock, P_paper, S_scissors, V_spock, L_lizard = ('R', ...
39.226027
101
0.596124
884
5,727
3.65724
0.229638
0.009279
0.012372
0.014847
0.18373
0.109805
0.059388
0.059388
0.020414
0.020414
0
0.023466
0.285664
5,727
145
102
39.496552
0.766805
0.234154
0
0.032609
0
0
0.041568
0.014727
0
0
0
0
0
1
0.076087
false
0
0.065217
0
0.228261
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5481ba7b076cad5057871b2955d0e7140c538c8a
5,410
py
Python
examples/trials/nas_cifar10/src/cifar10/nni_child_cifar10.py
runauto/nni
30152b04c4739f5b4f95087dee5f1e66ee893078
[ "MIT" ]
2
2019-12-30T20:42:17.000Z
2021-01-24T16:51:56.000Z
examples/trials/nas_cifar10/src/cifar10/nni_child_cifar10.py
runauto/nni
30152b04c4739f5b4f95087dee5f1e66ee893078
[ "MIT" ]
null
null
null
examples/trials/nas_cifar10/src/cifar10/nni_child_cifar10.py
runauto/nni
30152b04c4739f5b4f95087dee5f1e66ee893078
[ "MIT" ]
1
2020-01-11T13:19:26.000Z
2020-01-11T13:19:26.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import shutil import logging import tensorflow as tf from src.cifar10.data_utils import read_data from src.cifar10.general_child import GeneralChild import src.cifar10_flags from src.cifar10_flags impo...
33.190184
85
0.64085
715
5,410
4.486713
0.248951
0.071696
0.037406
0.018703
0.083541
0.048005
0.048005
0.048005
0.024314
0
0
0.008122
0.248983
5,410
162
86
33.395062
0.781442
0.024399
0
0.046154
0
0
0.082303
0.00425
0
0
0
0
0
1
0.053846
false
0
0.084615
0
0.176923
0.007692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5481e05c5889a5fab05aff46f53912b82371d733
1,952
py
Python
stella/core/interpreter/lexer.py
xabinapal/stella
ae02055749f997323390d642c99a37b80aa5df68
[ "MIT" ]
null
null
null
stella/core/interpreter/lexer.py
xabinapal/stella
ae02055749f997323390d642c99a37b80aa5df68
[ "MIT" ]
null
null
null
stella/core/interpreter/lexer.py
xabinapal/stella
ae02055749f997323390d642c99a37b80aa5df68
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import io import collections from stella.core.utils import RewindableIterator from stella.core.interpreter.productions import Token __all__ = ['Tokenizer', 'Lexer'] ################################################################################ ### Tokenizer ################################...
29.134328
82
0.483607
181
1,952
4.966851
0.281768
0.07119
0.057842
0.070078
0.23693
0.23693
0.082314
0.082314
0
0
0
0.000719
0.28791
1,952
66
83
29.575758
0.646043
0.018955
0
0.166667
0
0
0.008822
0
0
0
0
0
0
1
0.119048
false
0
0.095238
0.047619
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
548332d9c8a9e409da8648383e49cb1b1c4dbca5
12,628
py
Python
tensorflow_v1/10_-_Sequence-to-sequence/03_-_Dynamic_attention_with_par-inject.py
mtanti/deeplearningtutorial
a6fef37c77216e4f98dba2bde7c62d6aa6292476
[ "MIT" ]
5
2019-05-31T08:30:28.000Z
2020-02-13T20:17:13.000Z
tensorflow_v1/10_-_Sequence-to-sequence/03_-_Dynamic_attention_with_par-inject.py
mtanti/deeplearningtutorial
a6fef37c77216e4f98dba2bde7c62d6aa6292476
[ "MIT" ]
null
null
null
tensorflow_v1/10_-_Sequence-to-sequence/03_-_Dynamic_attention_with_par-inject.py
mtanti/deeplearningtutorial
a6fef37c77216e4f98dba2bde7c62d6aa6292476
[ "MIT" ]
6
2019-04-12T15:34:05.000Z
2019-10-01T16:57:39.000Z
import matplotlib.pyplot as plt import numpy as np import tensorflow as tf tf.logging.set_verbosity(tf.logging.ERROR) max_epochs = 6000 init_stddev = 0.0001 source_embedding_size = 2 target_embedding_size = 2 source_state_size = 2 preattention_size = 2 target_state_size = 2 max_seq_len = 10 source_tokens = [ ...
52.83682
230
0.633275
1,599
12,628
4.702939
0.143215
0.032314
0.03391
0.025266
0.430851
0.379388
0.308511
0.250931
0.191356
0.176463
0
0.016647
0.257919
12,628
239
231
52.83682
0.785829
0.044425
0
0.10929
0
0
0.037977
0
0
0
0
0
0
1
0.027322
false
0
0.016393
0.010929
0.065574
0.054645
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5483a8653b465908b4e7a3a5f68321bd151006ac
1,649
py
Python
ctapipe/image/muon/ring_fitter.py
chaimain/ctapipe
ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5
[ "BSD-3-Clause" ]
53
2015-06-23T15:24:20.000Z
2021-09-23T22:30:58.000Z
ctapipe/image/muon/ring_fitter.py
chaimain/ctapipe
ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5
[ "BSD-3-Clause" ]
1,537
2015-06-24T11:27:16.000Z
2022-03-31T16:17:08.000Z
ctapipe/image/muon/ring_fitter.py
chaimain/ctapipe
ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5
[ "BSD-3-Clause" ]
275
2015-07-09T14:09:28.000Z
2022-03-17T22:25:51.000Z
import numpy as np from ctapipe.core import Component from ctapipe.containers import MuonRingContainer from .fitting import kundu_chaudhuri_circle_fit, taubin_circle_fit import traitlets as traits # the fit methods do not expose the same interface, so we # force the same interface onto them, here. # we also modify th...
32.333333
71
0.691935
236
1,649
4.580508
0.385593
0.066605
0.033303
0.048104
0.118409
0.118409
0.075856
0.075856
0.075856
0
0
0.003082
0.212856
1,649
50
72
32.98
0.829738
0.277744
0
0
0
0
0.012216
0
0
0
0
0
0
1
0.115385
false
0
0.192308
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
5484be9bfb8cd5688ba3f0f969954eaa83e32875
1,873
py
Python
Main.py
dalwindercheema/FWPython
4c5d4d6d0b29a199dbf37d16bd4ed9bb2ac22d19
[ "BSD-2-Clause" ]
2
2021-12-18T17:08:02.000Z
2021-12-22T04:19:15.000Z
Main.py
dalwindercheema/FWPython
4c5d4d6d0b29a199dbf37d16bd4ed9bb2ac22d19
[ "BSD-2-Clause" ]
null
null
null
Main.py
dalwindercheema/FWPython
4c5d4d6d0b29a199dbf37d16bd4ed9bb2ac22d19
[ "BSD-2-Clause" ]
null
null
null
import pandas as pd from os import listdir import numpy from sklearn.model_selection import StratifiedKFold from FS_ALO import WFS from FW_ALO import WFW from WFSWFW_ALO import WFSWFW import matplotlib.pyplot as plt def main_CV(): path='./datasets' direc=sorted(listdir(path)) print(direc) ...
36.019231
107
0.645489
298
1,873
3.869128
0.298658
0.041631
0.036427
0.036427
0.288812
0.252385
0.13183
0.13183
0.13183
0.072853
0
0.027248
0.216231
1,873
51
108
36.72549
0.758174
0.006407
0
0
0
0
0.009408
0
0
0
0
0
0
1
0.021739
false
0
0.173913
0
0.217391
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
54870fd0b78e5e716753c262ab01d38621a1dd9c
4,796
py
Python
feedback-api/src/api/services/feedback/feedback_camunda_service.py
josekudiyirippil/queue-management
e56a987e14cfd2b50b820f679c7669060450da8e
[ "Apache-2.0" ]
30
2018-09-19T03:30:51.000Z
2022-03-07T02:57:05.000Z
feedback-api/src/api/services/feedback/feedback_camunda_service.py
ann-aot/queue-management
8ac8353a1e5f3f27fea74e70831ab5f0590d1805
[ "Apache-2.0" ]
159
2018-09-17T23:45:58.000Z
2022-03-30T17:35:05.000Z
feedback-api/src/api/services/feedback/feedback_camunda_service.py
ann-aot/queue-management
8ac8353a1e5f3f27fea74e70831ab5f0590d1805
[ "Apache-2.0" ]
52
2018-05-18T18:30:06.000Z
2021-08-25T12:00:29.000Z
# Copyright © 2019 Province of British Columbia # # 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 agr...
51.021277
111
0.641785
511
4,796
5.755382
0.313112
0.024481
0.021761
0.020401
0.116967
0.066644
0.066644
0.066644
0
0
0
0.005969
0.266472
4,796
93
112
51.569892
0.829733
0.155963
0
0
0
0
0.189848
0.036327
0
0
0
0
0
1
0.014925
false
0
0.074627
0
0.134328
0.029851
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5489ae18fd1a18ba304d5257203fc13d1b20346d
2,334
py
Python
dezede/urls.py
dezede/dezede
985ed1b42a2a6bab996e26c1b92444ae04afcc2c
[ "BSD-3-Clause" ]
15
2015-02-10T21:16:31.000Z
2021-03-25T16:46:20.000Z
dezede/urls.py
dezede/dezede
985ed1b42a2a6bab996e26c1b92444ae04afcc2c
[ "BSD-3-Clause" ]
4
2021-02-10T15:42:08.000Z
2022-03-11T23:20:38.000Z
dezede/urls.py
dezede/dezede
985ed1b42a2a6bab996e26c1b92444ae04afcc2c
[ "BSD-3-Clause" ]
6
2016-07-10T14:20:48.000Z
2022-01-19T18:34:02.000Z
from django.conf import settings from django.conf.urls import * from django.conf.urls.static import static from django.contrib import admin from django.contrib.sitemaps.views import sitemap from django.views.decorators.cache import cache_page from django.views.generic import TemplateView from ajax_select import urls as...
38.9
79
0.662811
279
2,334
5.426523
0.272401
0.060766
0.047556
0.055482
0.046235
0.046235
0
0
0
0
0
0.017562
0.170523
2,334
59
80
39.559322
0.764463
0
0
0
0
0
0.214653
0.043702
0
0
0
0
0
1
0
false
0
0.188679
0
0.188679
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
548e7df7f685de5e09edd46875612218fa28a72f
1,788
py
Python
setup.py
m-aciek/python-sdk
ab447b58ae5f45ce2d5beb4bfc4d7063e42b4311
[ "MIT" ]
null
null
null
setup.py
m-aciek/python-sdk
ab447b58ae5f45ce2d5beb4bfc4d7063e42b4311
[ "MIT" ]
null
null
null
setup.py
m-aciek/python-sdk
ab447b58ae5f45ce2d5beb4bfc4d7063e42b4311
[ "MIT" ]
2
2018-03-30T10:10:56.000Z
2018-05-25T09:27:36.000Z
#!/usr/bin/env python import os import re import codecs from setuptools import setup, find_packages ground = os.path.abspath(os.path.dirname(__file__)) def read(filename): with codecs.open(os.path.join(ground, filename), 'rb', 'utf-8') as file: return file.read() metadata = read(os.path.join(ground, '...
33.735849
114
0.636465
194
1,788
5.680412
0.525773
0.122505
0.068058
0.029038
0
0
0
0
0
0
0
0.004196
0.200224
1,788
52
115
34.384615
0.766434
0.011186
0
0
0
0
0.320317
0.020939
0
0
0
0
0
1
0.046512
false
0
0.093023
0
0.186047
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
548fac7398ada6cb536131133e9e9aa0af68eb01
7,850
py
Python
big-picture-spectra/big-picture-spectra.py
aibhleog/plotting-playground
84c19698e659de97c263362c7440faa3f873476e
[ "MIT" ]
null
null
null
big-picture-spectra/big-picture-spectra.py
aibhleog/plotting-playground
84c19698e659de97c263362c7440faa3f873476e
[ "MIT" ]
null
null
null
big-picture-spectra/big-picture-spectra.py
aibhleog/plotting-playground
84c19698e659de97c263362c7440faa3f873476e
[ "MIT" ]
null
null
null
''' This script makes an image very similar to Figure 2 of Hutchison et al. 2019 (https://arxiv.org/pdf/1905.08812.pdf). Undoubtedly, there are likely simpler ways to make this figure -- this is how I chose to code it up. Because the figure in the paper uses some proprietary data, the code below will generate fake dat...
39.25
217
0.707771
1,251
7,850
4.371703
0.278177
0.012799
0.017919
0.021942
0.375023
0.290912
0.236058
0.217407
0.194368
0.150119
0
0.093245
0.117452
7,850
199
218
39.447236
0.696161
0.34242
0
0.029126
0
0.019417
0.083594
0.014683
0
0
0
0
0
1
0
false
0
0.087379
0
0.087379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54902b07fce1f2bf2bcf246ab039ab703861aaf3
8,517
py
Python
pesummary/core/plots/corner.py
pesummary/pesummary
99e3c450ecbcaf5a23564d329bdf6e0080f6f2a8
[ "MIT" ]
1
2021-08-03T05:58:20.000Z
2021-08-03T05:58:20.000Z
pesummary/core/plots/corner.py
pesummary/pesummary
99e3c450ecbcaf5a23564d329bdf6e0080f6f2a8
[ "MIT" ]
1
2020-06-13T13:29:35.000Z
2020-06-15T12:45:04.000Z
pesummary/core/plots/corner.py
pesummary/pesummary
99e3c450ecbcaf5a23564d329bdf6e0080f6f2a8
[ "MIT" ]
3
2021-07-08T08:31:28.000Z
2022-03-31T14:08:58.000Z
# Licensed under an MIT style license -- see LICENSE.md import numpy as np from scipy.stats import gaussian_kde from matplotlib.colors import LinearSegmentedColormap, colorConverter import corner __author__ = ["Charlie Hoy <charlie.hoy@ligo.org>"] def _set_xlim(new_fig, ax, new_xlim): if new_fig: return...
36.242553
80
0.589996
1,127
8,517
4.328305
0.236912
0.02665
0.003075
0.01886
0.105371
0.080771
0.072981
0.061091
0.061091
0.061091
0
0.010161
0.306681
8,517
234
81
36.397436
0.815919
0.243513
0
0.064935
0
0
0.074246
0.003513
0
0
0
0
0
1
0.019481
false
0.006494
0.058442
0
0.103896
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
549070123669b37704f083b9611ce10258a9d787
2,240
py
Python
tests/test_tokenizer.py
mkartawijaya/dango
9cc9d498c4eac851d6baa96ced528c1d91a87216
[ "BSD-3-Clause" ]
null
null
null
tests/test_tokenizer.py
mkartawijaya/dango
9cc9d498c4eac851d6baa96ced528c1d91a87216
[ "BSD-3-Clause" ]
null
null
null
tests/test_tokenizer.py
mkartawijaya/dango
9cc9d498c4eac851d6baa96ced528c1d91a87216
[ "BSD-3-Clause" ]
null
null
null
from typing import List import pytest import dango def test_empty_phrase(): assert dango.tokenize('') == [], 'an empty phrase contains no tokens' @pytest.mark.parametrize('expected', [ # inflected verbs should be kept as one word ['昨日', '映画', 'を', '見ました'], ['私', 'は', '本', 'を', '読む'], ['私', 'は'...
36.129032
82
0.525446
306
2,240
3.820261
0.496732
0.013687
0.02053
0.027374
0.143713
0.073567
0.037639
0
0
0
0
0
0.200446
2,240
61
83
36.721311
0.652708
0.214732
0
0.044444
0
0
0.245143
0
0
0
0
0
0.066667
1
0.066667
false
0
0.066667
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54940d248d43c1725fcc0fa869fadb3c0a38e2a1
1,488
py
Python
script/check_conf_whitelist.py
Kaiyuan-Zhang/Gravel-public
ff3f7dc7d5ac63d91e26f03ae4e49a7451c6cb22
[ "MIT" ]
4
2020-04-11T19:11:25.000Z
2021-02-06T10:46:39.000Z
script/check_conf_whitelist.py
Kaiyuan-Zhang/Gravel-public
ff3f7dc7d5ac63d91e26f03ae4e49a7451c6cb22
[ "MIT" ]
1
2021-11-01T20:19:23.000Z
2021-11-01T20:19:43.000Z
script/check_conf_whitelist.py
Kaiyuan-Zhang/Gravel-public
ff3f7dc7d5ac63d91e26f03ae4e49a7451c6cb22
[ "MIT" ]
1
2020-04-18T03:36:03.000Z
2020-04-18T03:36:03.000Z
import sys import os if __name__ == '__main__': if len(sys.argv) < 3: print("Usage: {} <conf-list> <conf-dir> [white-list-files]".format(sys.argv[0])) sys.exit(-1) conf_list_file = sys.argv[1] conf_dir = sys.argv[2] conf_list = {} white_list_files = sys.argv[3:] ele_white_list ...
31.659574
93
0.536962
210
1,488
3.619048
0.3
0.084211
0.055263
0.028947
0.109211
0.078947
0.078947
0.078947
0.078947
0.078947
0
0.015889
0.323253
1,488
46
94
32.347826
0.738828
0
0
0.1
0
0
0.059812
0
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0.075
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54944c0a9b4c84df76cbc3d9fc9c516394ab50a2
4,383
py
Python
models/joint_inference_model.py
pnsuau/neurips18_hierchical_image_manipulation
712ff8008f8d4c38626bd556fc44adfbcde8fa28
[ "MIT" ]
null
null
null
models/joint_inference_model.py
pnsuau/neurips18_hierchical_image_manipulation
712ff8008f8d4c38626bd556fc44adfbcde8fa28
[ "MIT" ]
null
null
null
models/joint_inference_model.py
pnsuau/neurips18_hierchical_image_manipulation
712ff8008f8d4c38626bd556fc44adfbcde8fa28
[ "MIT" ]
null
null
null
import torch from torch.autograd import Variable from util.util import * from util.data_util import * import numpy as np from PIL import Image from data.base_dataset import get_transform_params, get_raw_transform_fn, \ get_transform_fn, get_soft_bbox, get_masked_image from util.data_util i...
42.553398
94
0.620123
524
4,383
4.862595
0.257634
0.070644
0.080063
0.057692
0.205259
0.142857
0.037677
0.037677
0.037677
0.037677
0
0.005871
0.261693
4,383
102
95
42.970588
0.78152
0.068446
0
0.027397
0
0
0.053774
0
0
0
0
0.009804
0
1
0.082192
false
0.013699
0.150685
0
0.315068
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5497a6164438dad00ba23076949d1e3d84fd4868
3,812
py
Python
tests/v2/parties/test_parties.py
jama5262/Politico
7292f604723cf115004851b9767688cf1a956bb1
[ "MIT" ]
null
null
null
tests/v2/parties/test_parties.py
jama5262/Politico
7292f604723cf115004851b9767688cf1a956bb1
[ "MIT" ]
2
2019-02-19T12:43:32.000Z
2019-03-04T16:15:38.000Z
tests/v2/parties/test_parties.py
jama5262/Politico
7292f604723cf115004851b9767688cf1a956bb1
[ "MIT" ]
null
null
null
import unittest import json from app import createApp from app.api.database.migrations.migrations import migrate class TestParties(unittest.TestCase): def setUp(self): self.app = createApp("testing") self.client = self.app.test_client() self.endpoint = "/api/v2/parties" self.partyI...
36.304762
128
0.635887
442
3,812
5.348416
0.190045
0.071066
0.097293
0.122673
0.685702
0.641286
0.544839
0.445854
0.409475
0.390863
0
0.0154
0.233473
3,812
104
129
36.653846
0.793635
0
0
0.22093
0
0
0.127754
0
0
0
0
0
0.116279
1
0.197674
false
0.011628
0.046512
0.046512
0.313953
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5499335d4a53f32fd4ee6cd0b97b91f92adeec0e
3,959
py
Python
data_visualization.py
vashineyu/Common_tools
b933660e007ae104910c975d074523012bb7b58e
[ "Apache-2.0" ]
1
2018-10-26T09:33:26.000Z
2018-10-26T09:33:26.000Z
data_visualization.py
vashineyu/Common_tools
b933660e007ae104910c975d074523012bb7b58e
[ "Apache-2.0" ]
null
null
null
data_visualization.py
vashineyu/Common_tools
b933660e007ae104910c975d074523012bb7b58e
[ "Apache-2.0" ]
null
null
null
# Visualization function import numpy as np import matplotlib.pyplot as plt from math import ceil from PIL import Image from scipy.ndimage.filters import gaussian_filter def img_combine(img, ncols=5, size=1, path=False): """ Draw the images with array img: image array to plot - size = n x im_w x im_h x 3 ...
34.12931
113
0.602172
552
3,959
4.193841
0.317029
0.039309
0.049244
0.022462
0.137797
0.117063
0.066955
0.066955
0.04622
0.04622
0
0.025587
0.279363
3,959
115
114
34.426087
0.785839
0.235918
0
0.173913
0
0
0.006399
0
0
0
0
0
0
1
0.043478
false
0
0.072464
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5499a0762a3bf6035430062da7d86593750133d8
2,037
py
Python
src/CIA_History.py
Larz60p/WorldFactBook
c2edb4c8b0b9edab4a41b7384aade6d1d8ce6128
[ "MIT" ]
1
2019-03-29T03:33:43.000Z
2019-03-29T03:33:43.000Z
src/CIA_History.py
Larz60p/WorldFactBook
c2edb4c8b0b9edab4a41b7384aade6d1d8ce6128
[ "MIT" ]
null
null
null
src/CIA_History.py
Larz60p/WorldFactBook
c2edb4c8b0b9edab4a41b7384aade6d1d8ce6128
[ "MIT" ]
null
null
null
# copyright (c) 2018 Larz60+ from lxml import html import ScraperPaths import CIA_ScanTools import GetPage import os import json import sys from bs4 import BeautifulSoup class CIA_History: def __init__(self): self.spath = ScraperPaths.ScraperPaths() self.gp = GetPage.GetPage() self.getpag...
31.828125
103
0.522337
239
2,037
4.301255
0.359833
0.034047
0.026265
0.035019
0.064202
0.064202
0.064202
0.064202
0.064202
0.064202
0
0.020753
0.361316
2,037
63
104
32.333333
0.769408
0.013255
0
0.109091
0
0.018182
0.079681
0
0
0
0
0
0
1
0.036364
false
0
0.145455
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
549b59fe62af96d3a0abf31ed9194bf5c91e167c
301
py
Python
tests/thumbnail_tests/urls.py
roojoom/sorl-thumbnail
f10fd48f8b33efe4f468ece056fd545be796bf72
[ "BSD-3-Clause" ]
2
2019-04-09T16:07:23.000Z
2019-04-09T16:07:26.000Z
tests/thumbnail_tests/urls.py
roojoom/sorl-thumbnail
f10fd48f8b33efe4f468ece056fd545be796bf72
[ "BSD-3-Clause" ]
null
null
null
tests/thumbnail_tests/urls.py
roojoom/sorl-thumbnail
f10fd48f8b33efe4f468ece056fd545be796bf72
[ "BSD-3-Clause" ]
1
2020-02-18T13:00:55.000Z
2020-02-18T13:00:55.000Z
from django.conf.urls import patterns from django.conf import settings urlpatterns = patterns( '', (r'^media/(?P<path>.+)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}), (r'^(.*\.html)$', 'thumbnail_tests.views.direct_to_template'), )
27.363636
67
0.671096
37
301
5.297297
0.702703
0.102041
0.142857
0
0
0
0
0
0
0
0
0
0.13289
301
10
68
30.1
0.750958
0
0
0
0
0
0.405316
0.215947
0
0
0
0
0
1
0
false
0
0.25
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
549b88a77a4a74ecdad5b7ba7eb748aea0547a53
822
py
Python
data/mapper.py
GhostBadger/Kurien_G_DataViz_Fall2020
817f1a352027d4d81db0260393912e78a2a5e596
[ "MIT" ]
null
null
null
data/mapper.py
GhostBadger/Kurien_G_DataViz_Fall2020
817f1a352027d4d81db0260393912e78a2a5e596
[ "MIT" ]
1
2020-12-13T03:46:44.000Z
2020-12-13T03:46:44.000Z
data/mapper.py
GhostBadger/Kurien_G_DataViz_Fall2020
817f1a352027d4d81db0260393912e78a2a5e596
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt hfont = {'fontname':'Lato'} #draw a simple line chart showing population grown over the last 115 years years = [1900, 1950, 1955, 1960, 1965, 1970, 1975, 1980, 1985, 1990, 1995, 2000, 2005, 2010, 2015] pops = [1.6, 2.5, 2.6, 3.0, 3.3, 3.6, 4.2, 4.4, 4.8, 5.3, 5.7, 6.1, 6.5, 6.9, 7.3]...
31.615385
98
0.69708
157
822
3.649682
0.585987
0.006981
0.031414
0
0
0
0
0
0
0
0
0.165689
0.170316
822
25
99
32.88
0.674487
0.409976
0
0
0
0
0.188285
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
549b92a869131a02e61a4b0496d5ecab3305509e
28,057
py
Python
classification/train_classifier_tf.py
dnarqq/WildHack
4fb9e4545cb47a4283ebc1dec955c0817b1664c0
[ "MIT" ]
402
2019-05-08T17:28:25.000Z
2022-03-27T19:30:07.000Z
classification/train_classifier_tf.py
dnarqq/WildHack
4fb9e4545cb47a4283ebc1dec955c0817b1664c0
[ "MIT" ]
72
2019-05-07T18:33:32.000Z
2022-03-10T07:48:39.000Z
classification/train_classifier_tf.py
dnarqq/WildHack
4fb9e4545cb47a4283ebc1dec955c0817b1664c0
[ "MIT" ]
162
2019-05-18T15:45:27.000Z
2022-03-25T20:17:45.000Z
r"""Train an EfficientNet classifier. Currently implementation of multi-label multi-class classification is non-functional. During training, start tensorboard from within the classification/ directory: tensorboard --logdir run --bind_all --samples_per_plugin scalars=0,images=0 Example usage: python train_cla...
40.13877
116
0.641729
3,665
28,057
4.723874
0.165894
0.011321
0.014729
0.016981
0.191359
0.137931
0.106972
0.077861
0.069197
0.050251
0
0.012784
0.255587
28,057
698
117
40.196275
0.816145
0.232063
0
0.116331
0
0
0.091612
0.009251
0
0
0
0.002865
0.011186
1
0.024609
false
0
0.035794
0
0.0783
0.01566
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
549bb5431eeb75a8dbdf100c69a7b7af3cb1061c
4,704
py
Python
pyreach/impl/constraints_impl_test.py
google-research/pyreach
f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159
[ "Apache-2.0" ]
13
2021-09-01T01:10:22.000Z
2022-03-05T10:01:52.000Z
pyreach/impl/constraints_impl_test.py
google-research/pyreach
f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159
[ "Apache-2.0" ]
null
null
null
pyreach/impl/constraints_impl_test.py
google-research/pyreach
f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159
[ "Apache-2.0" ]
6
2021-09-20T21:17:53.000Z
2022-03-14T18:42:48.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
39.864407
74
0.688776
533
4,704
5.924953
0.287054
0.099747
0.079797
0.043699
0.517099
0.424953
0.275807
0.275807
0.275807
0.275807
0
0.127483
0.207908
4,704
117
75
40.205128
0.720075
0.120961
0
0.395604
0
0
0.038135
0.017488
0
0
0
0
0.384615
1
0.021978
false
0
0.065934
0
0.098901
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
549d785cbbd7f0e2ec80896ebc16b20cd8e0ba82
3,400
py
Python
qplan/parse.py
mackstann/qplaniso
97c4fbeeb529dfef0778cedc3e79087f6a87f5c4
[ "CC0-1.0" ]
null
null
null
qplan/parse.py
mackstann/qplaniso
97c4fbeeb529dfef0778cedc3e79087f6a87f5c4
[ "CC0-1.0" ]
null
null
null
qplan/parse.py
mackstann/qplaniso
97c4fbeeb529dfef0778cedc3e79087f6a87f5c4
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 import itertools class Node: def __init__(self, node_type, width, rows, times): self.node_type = node_type self.width = width self.rows = rows self.times = times self.inputs = [] self.parent = None def as_dict(self): return { ...
26.5625
98
0.523529
412
3,400
4.152913
0.213592
0.056108
0.035067
0.037405
0.389246
0.345996
0.329632
0.329632
0.329632
0.300409
0
0.014686
0.359118
3,400
127
99
26.771654
0.770537
0.033824
0
0.240385
0
0
0.030174
0
0
0
0
0
0.048077
1
0.105769
false
0.009615
0.019231
0.076923
0.230769
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
549e3c5ec51f517db74f9b45d00df6b1a26198eb
2,397
py
Python
10054 - The Necklace/main.py
Shree-Gillorkar/uva-onlinejudge-solutions
df64f5c3a136827b5ca7871df1cf8aafadcf5c9b
[ "MIT" ]
24
2017-10-15T04:04:55.000Z
2022-01-31T17:14:29.000Z
10054 - The Necklace/main.py
ashishrana080699/uva-onlinejudge-solutions
d2d0a58e53e3d9acf6d20e56a40900423ae705c4
[ "MIT" ]
1
2019-07-11T04:22:55.000Z
2019-07-14T19:34:41.000Z
10054 - The Necklace/main.py
ashishrana080699/uva-onlinejudge-solutions
d2d0a58e53e3d9acf6d20e56a40900423ae705c4
[ "MIT" ]
27
2017-01-06T17:33:57.000Z
2021-11-25T00:07:54.000Z
from sys import stdin from collections import defaultdict, deque MAX_COLORS = 51 def load_num(): return int(stdin.readline()) def load_pair(): return tuple(map(int, stdin.readline().split())) def load_case(): nbeads = load_num() return [load_pair() for b in range(nbeads)] def build_necklace(beads...
27.238636
79
0.553191
317
2,397
4.056782
0.362776
0.023328
0.013997
0.006221
0.014774
0
0
0
0
0
0
0.018892
0.337505
2,397
87
80
27.551724
0.790932
0.174802
0
0.1
0
0
0.024004
0
0
0
0
0
0
1
0.083333
false
0
0.033333
0.033333
0.233333
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54a29568d20a9d3cd8819302aa5a4f6675a50ec6
3,080
py
Python
Final_plot/request_type(pie).py
ashutoshbhadke/weblog-visualizer
7fd10535fe0909291da194776b053eca1640b1e9
[ "MIT" ]
null
null
null
Final_plot/request_type(pie).py
ashutoshbhadke/weblog-visualizer
7fd10535fe0909291da194776b053eca1640b1e9
[ "MIT" ]
null
null
null
Final_plot/request_type(pie).py
ashutoshbhadke/weblog-visualizer
7fd10535fe0909291da194776b053eca1640b1e9
[ "MIT" ]
null
null
null
import csv from pylab import * import matplotlib.pyplot as plt count1=[] req_data=[] def get_request (str): f=open('weblog.txt','r') pdata=[] req_data1=[] data=csv.reader(f,delimiter=' ') for row in data: row[3]=row[3][1:] row[3]=...
26.101695
91
0.500974
409
3,080
3.704156
0.347188
0.026403
0.026403
0.023762
0.090429
0.069967
0.069967
0.051485
0.051485
0.051485
0
0.047042
0.330519
3,080
117
92
26.324786
0.687682
0.033117
0
0
0
0
0.071038
0.02793
0
0
0
0
0
1
0.042553
false
0.021277
0.06383
0
0.12766
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54a40265eb0edbb4261d2c562a057abf3c76c839
5,979
py
Python
pandas/lib/excelRW.py
philip-shen/note_python
db0ad84af25464a22ac52e348960107c81e74a56
[ "MIT" ]
null
null
null
pandas/lib/excelRW.py
philip-shen/note_python
db0ad84af25464a22ac52e348960107c81e74a56
[ "MIT" ]
11
2021-02-08T20:45:23.000Z
2022-03-12T01:00:11.000Z
pandas/lib/excelRW.py
philip-shen/note_python
db0ad84af25464a22ac52e348960107c81e74a56
[ "MIT" ]
null
null
null
## 2018/08/17 Initial ## 2018/08/18 Add CSV format ## 2018/08/23 Add def get_stockidxname_SeymourExcel(),def get_stockidx_SeymourExcel() ## def get_all_stockidx_SeymourExcel() from test_crawl.py ## 2018/09/06 Add value of column 'PBR' in def readExcel() ## 2018/10/27 Add exception handling in def readEx...
40.398649
118
0.630373
725
5,979
4.896552
0.195862
0.068451
0.070986
0.086197
0.61662
0.536338
0.530423
0.530423
0.510986
0.387887
0
0.02434
0.271617
5,979
148
119
40.398649
0.790815
0.231979
0
0.263158
0
0
0.01473
0
0
0
0
0
0
1
0.118421
false
0
0.078947
0
0.302632
0.039474
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54a68c80a2f5f81aaa165bc135be5a9f31aa99a1
8,754
py
Python
tests/unit/test_parameters/test_lead_acid_parameters.py
jatin837/PyBaMM
837421bd5b251647a257c23540ceb2908a225bdb
[ "BSD-3-Clause" ]
1
2021-04-25T09:53:40.000Z
2021-04-25T09:53:40.000Z
tests/unit/test_parameters/test_lead_acid_parameters.py
jatin837/PyBaMM
837421bd5b251647a257c23540ceb2908a225bdb
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_parameters/test_lead_acid_parameters.py
jatin837/PyBaMM
837421bd5b251647a257c23540ceb2908a225bdb
[ "BSD-3-Clause" ]
null
null
null
# # Test for the standard lead acid parameters # import pybamm from tests import get_discretisation_for_testing import unittest class TestStandardParametersLeadAcid(unittest.TestCase): def test_scipy_constants(self): param = pybamm.LeadAcidParameters() self.assertAlmostEqual(param.R.evaluate(), 8...
43.77
85
0.664154
1,064
8,754
5.214286
0.177632
0.064888
0.028118
0.069394
0.498738
0.423396
0.372567
0.302992
0.266402
0.226208
0
0.025428
0.23178
8,754
199
86
43.98995
0.799554
0.094585
0
0.213333
0
0
0.099506
0.003038
0
0
0
0
0.26
1
0.053333
false
0
0.026667
0
0.086667
0.053333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54a991a385bd9da3a9f26780efab2ed38b49007b
3,789
py
Python
setup.py
giampaolo/pysendfile
2ffdd452b03dd4b639cda985bd67b8d4c0c34a5f
[ "MIT" ]
119
2015-01-06T10:26:35.000Z
2021-12-03T06:22:47.000Z
setup.py
giampaolo/pysendfile
2ffdd452b03dd4b639cda985bd67b8d4c0c34a5f
[ "MIT" ]
11
2015-02-06T18:01:26.000Z
2022-03-14T09:51:28.000Z
setup.py
giampaolo/pysendfile
2ffdd452b03dd4b639cda985bd67b8d4c0c34a5f
[ "MIT" ]
24
2015-01-13T20:08:46.000Z
2021-07-30T13:45:15.000Z
#!/usr/bin/env python # ====================================================================== # This software is distributed under the MIT license reproduced below: # # Copyright (C) 2009-2014 Giampaolo Rodola' <g.rodola@gmail.com> # # Permission to use, copy, modify, and distribute this software and # its docum...
40.308511
73
0.5801
396
3,789
5.520202
0.45202
0.130375
0.16011
0.130833
0.048948
0
0
0
0
0
0
0.016035
0.275798
3,789
93
74
40.741935
0.780612
0.319082
0
0
0
0
0.493547
0
0
0
0
0
0
1
0.016949
false
0
0.067797
0
0.084746
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54aae49452e8676142b61393e18f197e00851192
4,746
py
Python
PatternConverter.py
Suitceyes-Project-Code/Tactile-Brush-Python
12da563d0988aa3b41c547ee9e1618f30c8b805c
[ "MIT" ]
null
null
null
PatternConverter.py
Suitceyes-Project-Code/Tactile-Brush-Python
12da563d0988aa3b41c547ee9e1618f30c8b805c
[ "MIT" ]
null
null
null
PatternConverter.py
Suitceyes-Project-Code/Tactile-Brush-Python
12da563d0988aa3b41c547ee9e1618f30c8b805c
[ "MIT" ]
1
2021-10-04T14:27:25.000Z
2021-10-04T14:27:25.000Z
from Stroke import Stroke from TactileBrush import TactileBrush import json from sortedcontainers import SortedList EPSILON = 0.001 class Point: def __init__(self, x : int, y : int): self.x = int(x) self.y = int(y) def __repr__(self): return "(" + str(self.x) + ", " + str(self.y) ...
29.849057
90
0.588074
583
4,746
4.58319
0.221269
0.018713
0.016467
0.023578
0.121257
0.068114
0.068114
0
0
0
0
0.008094
0.297092
4,746
159
91
29.849057
0.792866
0.031184
0
0.082645
0
0
0.091939
0
0
0
0
0
0
1
0.107438
false
0.016529
0.033058
0.016529
0.289256
0.041322
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54ab3bd5170524abc405764a761515f4dbe3bb71
14,921
py
Python
ConnectedClipboard.py
yamanogluberk/ConnectedClipboard
93aa04a2075b6ed2b6d50fce39a7c26dd80e8564
[ "MIT" ]
null
null
null
ConnectedClipboard.py
yamanogluberk/ConnectedClipboard
93aa04a2075b6ed2b6d50fce39a7c26dd80e8564
[ "MIT" ]
null
null
null
ConnectedClipboard.py
yamanogluberk/ConnectedClipboard
93aa04a2075b6ed2b6d50fce39a7c26dd80e8564
[ "MIT" ]
null
null
null
import select import socket import json import threading import time import clipboard import math from datetime import datetime ip = "" localpart = "" name = "" tcp = 5555 udp = 5556 buffer_size = 1024 broadcast_try_count = 3 ping_try_count = 3 members = [] # item - (str) ipaddress current_room_ip = "" my_room_name =...
27.079855
96
0.602171
1,837
14,921
4.616222
0.112684
0.035024
0.039858
0.018396
0.427241
0.35566
0.304363
0.251887
0.184788
0.145401
0
0.007371
0.272569
14,921
550
97
27.129091
0.773908
0.012332
0
0.37963
0
0
0.12343
0.035916
0
0
0
0
0
1
0.106481
false
0.002315
0.018519
0
0.141204
0.094907
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54ae8f3aab6c6047677661a66e0ddd7fd0d3d3e9
9,728
py
Python
paddleslim/prune/auto_pruner.py
liuqiaoping7/PaddleSlim
083003661af893e92cd7bb9017e7d4a3761c7b20
[ "Apache-2.0" ]
null
null
null
paddleslim/prune/auto_pruner.py
liuqiaoping7/PaddleSlim
083003661af893e92cd7bb9017e7d4a3761c7b20
[ "Apache-2.0" ]
null
null
null
paddleslim/prune/auto_pruner.py
liuqiaoping7/PaddleSlim
083003661af893e92cd7bb9017e7d4a3761c7b20
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 PaddlePaddle 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 applic...
39.384615
106
0.628701
1,182
9,728
4.914552
0.191201
0.02324
0.010329
0.011706
0.239112
0.178516
0.145808
0.13393
0.13393
0.071957
0
0.006534
0.292044
9,728
246
107
39.544715
0.836939
0.318668
0
0.155844
0
0
0.034618
0
0
0
0
0
0.012987
1
0.071429
false
0.006494
0.071429
0.006494
0.194805
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0