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
4d7eddf6f9e62ec0bab631e8436135068d6e2ad3
2,251
py
Python
cmake/make_geant4_env.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
1
2020-12-24T22:00:01.000Z
2020-12-24T22:00:01.000Z
cmake/make_geant4_env.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
null
null
null
cmake/make_geant4_env.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
3
2020-07-17T09:20:29.000Z
2021-03-30T16:44:18.000Z
#!/usr/bin/python ''' Produces POSIX commands to setup the environment variables for Geant4. Required command line arguments: 1: Location of geant4.sh script. 2: Version of Geant4. ''' import os import sys import re import subprocess as subp from codecs import encode,decode geant4_sh, geant4_version = sys.argv[1:] ...
31.263889
90
0.60462
271
2,251
4.96679
0.494465
0.035661
0.024517
0.022288
0.068351
0.068351
0.068351
0
0
0
0
0.031327
0.276766
2,251
71
91
31.704225
0.795455
0.184363
0
0
0
0
0.263912
0
0
0
0
0
0
1
0
false
0
0.102041
0
0.102041
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4d8164d0a3cb6cea0dddeadbc81ca630b7412f3a
4,906
py
Python
src/python/nimbusml/internal/core/feature_extraction/image/pixelextractor.py
justinormont/NimbusML-1
110b0f9577f3eb2886897c9a0e7632b400239c8a
[ "MIT" ]
2
2019-03-01T01:22:54.000Z
2019-07-10T19:57:38.000Z
src/python/nimbusml/internal/core/feature_extraction/image/pixelextractor.py
justinormont/NimbusML-1
110b0f9577f3eb2886897c9a0e7632b400239c8a
[ "MIT" ]
null
null
null
src/python/nimbusml/internal/core/feature_extraction/image/pixelextractor.py
justinormont/NimbusML-1
110b0f9577f3eb2886897c9a0e7632b400239c8a
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # -------------------------------------------------------------------------------------------- # - Generated by tools/entrypoint_co...
31.651613
94
0.58459
547
4,906
5.08958
0.299817
0.027658
0.037716
0.042744
0.195402
0.192888
0.122486
0.086925
0.061063
0.061063
0
0
0.302283
4,906
154
95
31.857143
0.813322
0.40746
0
0.067568
0
0
0.076473
0
0
0
0
0
0
1
0.040541
false
0.013514
0.040541
0.013514
0.121622
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4d81eb54f286004b0054b57c3655bf67b6dd1eb6
2,019
py
Python
leetcode/17.py
1005281342/learn
c9d1e2e256842d9b4846c4870ac72e83d172b20e
[ "Apache-2.0" ]
1
2018-11-29T01:01:32.000Z
2018-11-29T01:01:32.000Z
leetcode/17.py
1005281342/learn
c9d1e2e256842d9b4846c4870ac72e83d172b20e
[ "Apache-2.0" ]
null
null
null
leetcode/17.py
1005281342/learn
c9d1e2e256842d9b4846c4870ac72e83d172b20e
[ "Apache-2.0" ]
null
null
null
# # @lc app=leetcode.cn id=17 lang=python3 # # [17] 电话号码的字母组合 # # https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number/description/ # # algorithms # Medium (47.70%) # Total Accepted: 18K # Total Submissions: 37.5K # Testcase Example: '"23"' # # 给定一个仅包含数字 2-9 的字符串,返回所有它能表示的字母组合。 # # 给出数字到字母的映射如下(与...
22.943182
85
0.430411
235
2,019
3.66383
0.540426
0.009292
0.038328
0.025552
0.068525
0
0
0
0
0
0
0.033198
0.388311
2,019
87
86
23.206897
0.663968
0.450718
0
0
0
0
0.026692
0
0
0
0
0
0
1
0.041667
false
0
0.041667
0
0.25
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4d831472f18b104577a3fb6f299305d975452191
15,031
py
Python
mujoco/setup1/re_split_demo.py
EvieQ01/Learning-Feasibility-Different-Dynamics
73786b11137b8ba9840d00ec4d258c1296b0a595
[ "MIT" ]
null
null
null
mujoco/setup1/re_split_demo.py
EvieQ01/Learning-Feasibility-Different-Dynamics
73786b11137b8ba9840d00ec4d258c1296b0a595
[ "MIT" ]
null
null
null
mujoco/setup1/re_split_demo.py
EvieQ01/Learning-Feasibility-Different-Dynamics
73786b11137b8ba9840d00ec4d258c1296b0a595
[ "MIT" ]
null
null
null
import random import argparse from ast import Global from dis import dis from glob import glob from itertools import count from math import dist from logger import * import json import gym from matplotlib.pyplot import axis import scipy.optimize import pdb import torch from torch.autograd import Variable from jax_rl....
38.940415
132
0.635487
2,261
15,031
4.00575
0.141973
0.047477
0.035663
0.021862
0.455007
0.404549
0.377388
0.342718
0.315115
0.275588
0
0.028608
0.227929
15,031
385
133
39.041558
0.751831
0.300845
0
0.164557
0
0
0.0945
0.005906
0
0
0
0
0.004219
1
0.050633
false
0
0.113924
0.004219
0.189873
0.046414
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4d848e3435cc8a2b14ed24badeae8ae87d28d72a
473
py
Python
0171 [Easy] Hex to Bmp/script.py
jwthomson/dailyprogrammer
44eb1c4e0ec9e8c8660721b24c949013fe3acdc6
[ "MIT" ]
null
null
null
0171 [Easy] Hex to Bmp/script.py
jwthomson/dailyprogrammer
44eb1c4e0ec9e8c8660721b24c949013fe3acdc6
[ "MIT" ]
null
null
null
0171 [Easy] Hex to Bmp/script.py
jwthomson/dailyprogrammer
44eb1c4e0ec9e8c8660721b24c949013fe3acdc6
[ "MIT" ]
null
null
null
hex_strings = [ "FF 81 BD A5 A5 BD 81 FF", "AA 55 AA 55 AA 55 AA 55", "3E 7F FC F8 F8 FC 7F 3E", "93 93 93 F3 F3 93 93 93", ] def hex_data_to_image(hex_data): for hex_pair in hex_data: for divisor in reversed(range(len(hex_data))): print("X" if (int(hex_pair, 16) >> divisor & 1) == 1 else " ", end=...
26.277778
76
0.623679
90
473
3.011111
0.4
0.180812
0.066421
0.088561
0.214022
0.214022
0
0
0
0
0
0.104683
0.232558
473
17
77
27.823529
0.641873
0
0
0
0
0
0.217759
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.066667
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4d869dccaeface891a8710af79793bcca714b0e5
2,334
py
Python
scripts/album_times.py
TypicalFence/lainonlife
7af0cf3fe8e48e6affdb3e79d2a89e1c399371b3
[ "MIT" ]
48
2017-04-29T20:13:52.000Z
2022-03-23T09:48:56.000Z
scripts/album_times.py
ech1/lainonlife
c5bee94d8dec03d586c62e241d2af5c250e1dde9
[ "MIT" ]
46
2017-04-27T18:39:43.000Z
2022-03-29T13:09:53.000Z
scripts/album_times.py
TypicalFence/lainonlife
7af0cf3fe8e48e6affdb3e79d2a89e1c399371b3
[ "MIT" ]
12
2017-04-29T20:20:13.000Z
2021-09-20T11:29:14.000Z
#!/usr/bin/env python3 """Radio scheduling program. Usage: album_times.py [--host=HOST] PORT Options: --host=HOST Hostname of MPD [default: localhost] -h --help Show this text Prints out the last scheduling time of every album. """ from datetime import datetime from docopt import docopt from mpd import M...
28.120482
84
0.652099
306
2,334
4.79085
0.408497
0.186221
0.040928
0.071623
0.145975
0.110505
0.06412
0.06412
0
0
0
0.005666
0.243787
2,334
82
85
28.463415
0.824929
0.264353
0
0.113636
0
0
0.102185
0
0
0
0
0
0
1
0.045455
false
0
0.068182
0
0.136364
0.068182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4d8737a112ba3cd3448b92d237da96606f4b3fb2
1,116
py
Python
pico-examples/usb/device/dev_lowlevel/dev_lowlevel_loopback.py
TheMindVirus/tinyusb
397f5f916d84841d878ab75cadae007af13220a1
[ "MIT" ]
null
null
null
pico-examples/usb/device/dev_lowlevel/dev_lowlevel_loopback.py
TheMindVirus/tinyusb
397f5f916d84841d878ab75cadae007af13220a1
[ "MIT" ]
null
null
null
pico-examples/usb/device/dev_lowlevel/dev_lowlevel_loopback.py
TheMindVirus/tinyusb
397f5f916d84841d878ab75cadae007af13220a1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2020 Raspberry Pi (Trading) Ltd. # # SPDX-License-Identifier: BSD-3-Clause # # sudo pip3 install pyusb import usb.core import usb.util # find our device dev = usb.core.find(idVendor=0x0000, idProduct=0x0001) # was it found? if dev is None: raise ValueE...
22.77551
72
0.646057
150
1,116
4.706667
0.533333
0.069405
0.084986
0.05949
0.339943
0.339943
0.339943
0.339943
0.232295
0.232295
0
0.022485
0.242832
1,116
48
73
23.25
0.813018
0.216846
0
0.32
0
0
0.052826
0
0
0
0.014742
0
0.08
1
0
false
0
0.08
0
0.08
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
4d87cbb67ddde96fe36f99d2c52da4c04b9e08f6
1,426
py
Python
aiidalab_sssp/inspect/subwidgets/summary.py
aiidalab/aiidalab-sssp
4f06d7fdff32b86996e85b6c65b372a41f0192a4
[ "MIT" ]
null
null
null
aiidalab_sssp/inspect/subwidgets/summary.py
aiidalab/aiidalab-sssp
4f06d7fdff32b86996e85b6c65b372a41f0192a4
[ "MIT" ]
1
2022-03-28T10:22:31.000Z
2022-03-28T10:22:31.000Z
aiidalab_sssp/inspect/subwidgets/summary.py
aiidalab/aiidalab-sssp
4f06d7fdff32b86996e85b6c65b372a41f0192a4
[ "MIT" ]
1
2021-09-30T08:47:39.000Z
2021-09-30T08:47:39.000Z
import ipywidgets as ipw import traitlets from IPython.display import clear_output class SummaryWidget(ipw.VBox): """output the convergence summary""" selected_pseudos = traitlets.Dict(allow_none=True) def __init__(self): # Delta mesure self.output = ipw.Output() super().__init_...
30.340426
86
0.590463
156
1,426
5.115385
0.391026
0.037594
0.078947
0.06015
0.0401
0.0401
0
0
0
0
0
0.002938
0.284011
1,426
46
87
31
0.778648
0.030856
0
0
0
0
0.305959
0.24564
0
0
0
0
0
1
0.088235
false
0
0.088235
0
0.235294
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4d88b9099339ce1c59838e9b514d20d29f9eb74a
2,846
py
Python
src/ska_pst_lmc/management/management_device.py
ska-telescope/ska-pst-lmc
d567f874bf55f49269416d0d83b5a80373a1281c
[ "BSD-3-Clause" ]
null
null
null
src/ska_pst_lmc/management/management_device.py
ska-telescope/ska-pst-lmc
d567f874bf55f49269416d0d83b5a80373a1281c
[ "BSD-3-Clause" ]
null
null
null
src/ska_pst_lmc/management/management_device.py
ska-telescope/ska-pst-lmc
d567f874bf55f49269416d0d83b5a80373a1281c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of the SKA PST LMC project # # Distributed under the terms of the BSD 3-clause new license. # See LICENSE for more info. """This module implements the PstManagement device.""" from __future__ import annotations from typing import Optional from ska_tango_base.csp.control...
26.849057
91
0.641251
298
2,846
5.983221
0.439597
0.023556
0.036455
0.050477
0.112731
0.082445
0
0
0
0
0
0.000914
0.231553
2,846
105
92
27.104762
0.814358
0.487351
0
0.076923
0
0
0.124613
0.077399
0
0
0
0
0
1
0.153846
false
0
0.153846
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4d8a3cc2d4d2015a3e0297d36d0b96dcf9279316
713
py
Python
cartografo/argument_parser.py
mendrugory/cartografo
2cd58dfa3c954447f39f084abd28031a47d924d7
[ "MIT" ]
4
2019-01-16T07:49:51.000Z
2020-02-14T21:25:21.000Z
cartografo/argument_parser.py
mendrugory/cartografo
2cd58dfa3c954447f39f084abd28031a47d924d7
[ "MIT" ]
null
null
null
cartografo/argument_parser.py
mendrugory/cartografo
2cd58dfa3c954447f39f084abd28031a47d924d7
[ "MIT" ]
null
null
null
import argparse from cartografo import DEFAULT_OBJECT, DEFAULT_TARGET def __get_argparser(): __parser.add_argument('--k8s-object', help='Output Kubernetes objet: secrets or configmap') __parser.add_argument('--target', help='Target file. If it exists, it will be modified') __parser.add_argument('files_fo...
35.65
95
0.750351
87
713
5.678161
0.471264
0.054656
0.103239
0
0
0
0
0
0
0
0
0.004951
0.15007
713
20
96
35.65
0.810231
0
0
0
0
0
0.245098
0
0
0
0
0
0
1
0.133333
false
0
0.133333
0.066667
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
4d8e2ab661763c22c669a9c4b0bb47f144d56291
1,503
py
Python
app-engine-utility-service/toggleIndex.py
isabella232/gov-meetings-made-searchable
bcbb13544fbfb8e5d5a12c66885fdb54ae52584a
[ "Apache-2.0" ]
26
2019-03-06T15:47:21.000Z
2022-03-30T17:25:20.000Z
app-engine-utility-service/toggleIndex.py
google/gov-meetings-made-searchable
bcbb13544fbfb8e5d5a12c66885fdb54ae52584a
[ "Apache-2.0" ]
4
2021-02-08T20:27:35.000Z
2021-09-08T00:50:23.000Z
app-engine-utility-service/toggleIndex.py
isabella232/gov-meetings-made-searchable
bcbb13544fbfb8e5d5a12c66885fdb54ae52584a
[ "Apache-2.0" ]
8
2019-03-06T18:48:16.000Z
2021-08-14T14:33:33.000Z
#!/usr/bin/env python # This is not an officially supported Google product, though support # will be provided on a best-effort basis. # Copyright 2018 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 co...
25.913793
77
0.727878
204
1,503
5.352941
0.647059
0.054945
0.052198
0.029304
0.051282
0
0
0
0
0
0
0.011245
0.171657
1,503
57
78
26.368421
0.865863
0.450432
0
0.068966
0
0
0.222632
0
0
0
0
0
0
1
0.034483
false
0
0.137931
0
0.206897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4d8e30f69b17eb91d913983be8d413e7774df4f1
1,131
py
Python
app.py
Jianghuchengphilip/Master-art-punk
4102d82148bf571e0cd418e363c51fa8486c5a43
[ "Apache-2.0" ]
37
2022-01-12T07:07:59.000Z
2022-03-31T10:25:46.000Z
app.py
Jianghuchengphilip/Master-art-punk
4102d82148bf571e0cd418e363c51fa8486c5a43
[ "Apache-2.0" ]
1
2022-01-25T12:24:57.000Z
2022-02-03T10:45:00.000Z
app.py
Jianghuchengphilip/Master-art-punk
4102d82148bf571e0cd418e363c51fa8486c5a43
[ "Apache-2.0" ]
10
2022-01-12T07:29:37.000Z
2022-03-28T23:37:42.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- """================================================= @Author :蒋虎成 @Date :2021/9/22 17:04 @Desc :主接口 ==================================================""" from colors import ColorMultiImage import settings from model import training import csv if __name__ == '__main__': ...
41.888889
139
0.640141
136
1,131
5.080882
0.485294
0.131693
0.081042
0.063676
0
0
0
0
0
0
0
0.015856
0.163572
1,131
27
140
41.888889
0.714588
0.196286
0
0
0
0
0.122087
0.09101
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.15
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4d8fb7a2d431e379774da24a3d509b9f7f50930d
3,345
py
Python
indivsims-dist.py
LohmuellerLab/Forward_Neanderthal
bee8b9ab6afc61942526a3e842c499fbe9cf6fdc
[ "MIT" ]
3
2016-04-02T14:02:36.000Z
2018-11-07T18:36:02.000Z
indivsims-dist.py
LohmuellerLab/Forward_Neanderthal
bee8b9ab6afc61942526a3e842c499fbe9cf6fdc
[ "MIT" ]
null
null
null
indivsims-dist.py
LohmuellerLab/Forward_Neanderthal
bee8b9ab6afc61942526a3e842c499fbe9cf6fdc
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ usage: demoselsim.py outfilename popn h pct """ import numpy import sys def pnext(AC, N, Nout, h, s): AC = float(AC); N = float(N); h = float(h); s = float(s) p = AC/(2*N) w11 = 1+s; w12 = 1+h*s; w22 = 1 wbar = ((p**2) * w11) + (2*p*(1-p)*w12) + (((1-p)**2) * w22) pdet = p*(p*w11 + (1...
21.862745
70
0.581764
585
3,345
3.25812
0.206838
0.025184
0.01469
0.033054
0.307975
0.229276
0.200944
0.167891
0.167891
0.15425
0
0.069408
0.207474
3,345
152
71
22.006579
0.649566
0.071749
0
0.232143
0
0
0.047619
0
0
0
0
0
0
1
0.044643
false
0
0.017857
0
0.169643
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4d90bf3108f4644d16656af50720d7f25c3d7eaf
4,692
py
Python
core/modules.py
egecakmak/SAnD
73cc3560450312cd2916b45ac043cc763539e5ad
[ "MIT" ]
43
2019-12-27T12:46:31.000Z
2022-03-12T06:52:01.000Z
core/modules.py
LuisMoralesAlonso/SAnD
d6d214b3681ef2f14b76a6e32f86c0c69022e2ee
[ "MIT" ]
7
2020-04-27T13:16:45.000Z
2021-12-13T13:06:47.000Z
core/modules.py
LuisMoralesAlonso/SAnD
d6d214b3681ef2f14b76a6e32f86c0c69022e2ee
[ "MIT" ]
8
2020-01-11T17:08:59.000Z
2021-04-10T15:15:21.000Z
import math import torch import numpy as np import torch.nn as nn class PositionalEncoding(nn.Module): def __init__(self, d_model, seq_len) -> None: super(PositionalEncoding, self).__init__() self.d_model = d_model pe = torch.zeros(seq_len, d_model) for pos in range(seq_len): ...
32.358621
95
0.589301
632
4,692
4.175633
0.169304
0.040925
0.034104
0.039788
0.342175
0.263357
0.214096
0.195529
0.14551
0.13111
0
0.017699
0.277494
4,692
144
96
32.583333
0.760767
0.035593
0
0.196078
0
0
0.000672
0
0
0
0
0
0
1
0.137255
false
0
0.039216
0
0.313725
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4d92c6dffc16135c5125b569d46c22e978986d36
4,350
py
Python
samcli/commands/local/cli_common/options.py
trenton/aws-sam-cli
11db934d3584c17fb5ba94d0e92e291c2c91d7c9
[ "Apache-2.0" ]
1
2019-12-24T17:27:09.000Z
2019-12-24T17:27:09.000Z
samcli/commands/local/cli_common/options.py
ShreyaGangishetty/aws-sam-cli
f896920468770f3407a3035b9c8e04902578d556
[ "Apache-2.0" ]
1
2021-06-02T02:44:08.000Z
2021-06-02T02:44:08.000Z
samcli/commands/local/cli_common/options.py
CavHack/aws-sam-cli
9355b7b613af907055b9ea5fb199f5d6d501c490
[ "Apache-2.0" ]
null
null
null
""" Common CLI options for invoke command """ import click from samcli.commands._utils.options import template_click_option, docker_click_options, parameter_override_click_option try: from pathlib import Path except ImportError: from pathlib2 import Path def get_application_dir(): """ Returns -...
31.294964
119
0.570115
483
4,350
5.012422
0.343685
0.06361
0.021479
0.023131
0.189178
0.10822
0.10822
0.10822
0.070219
0.070219
0
0.004512
0.337701
4,350
138
120
31.521739
0.835821
0.183448
0
0.2625
0
0
0.328771
0.033621
0
0
0
0.007246
0
1
0.0625
false
0.0125
0.0625
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
4d9318a61357e8ed5c3736eac9a6f69296fcd981
3,083
py
Python
Leetcode/week_6/multi_threaded_merge_sort.py
SamSamhuns/wallbreakers_projekts
c07b555127ee89d6f461cea7cd87811c382086ff
[ "MIT" ]
1
2021-07-07T00:55:23.000Z
2021-07-07T00:55:23.000Z
Leetcode/week_6/multi_threaded_merge_sort.py
SamSamhuns/wallbreakers_projekts
c07b555127ee89d6f461cea7cd87811c382086ff
[ "MIT" ]
null
null
null
Leetcode/week_6/multi_threaded_merge_sort.py
SamSamhuns/wallbreakers_projekts
c07b555127ee89d6f461cea7cd87811c382086ff
[ "MIT" ]
null
null
null
import threading def merge_sort(arr): def _merge(arr1, arr2): i, j = 0, 0 l1, l2 = len(arr1), len(arr2) arr_sorted = [0] * (l1 + l2) idx = 0 while i < l1 and j < l2: if arr1[i] < arr2[j]: arr_sorted[idx] = arr1[i] i += 1 ...
25.907563
76
0.472267
386
3,083
3.61658
0.147668
0.130372
0.137536
0.054441
0.703438
0.660458
0.660458
0.575931
0.575931
0.54298
0
0.053355
0.410315
3,083
118
77
26.127119
0.714521
0.062277
0
0.613636
0
0
0.002774
0
0
0
0
0
0
1
0.090909
false
0
0.011364
0
0.147727
0.011364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4d9622c35c6cf1b3dd5d13ccfc59f523a7821253
4,653
py
Python
altair_saver/savers/_saver.py
RoyalTS/altair_saver
31febb5faf7c3d6d27c2f5fe4045635099143042
[ "BSD-3-Clause" ]
null
null
null
altair_saver/savers/_saver.py
RoyalTS/altair_saver
31febb5faf7c3d6d27c2f5fe4045635099143042
[ "BSD-3-Clause" ]
null
null
null
altair_saver/savers/_saver.py
RoyalTS/altair_saver
31febb5faf7c3d6d27c2f5fe4045635099143042
[ "BSD-3-Clause" ]
null
null
null
import abc import json from typing import Any, Dict, IO, Iterable, List, Optional, Union import altair as alt from altair_saver.types import Mimebundle, MimebundleContent, JSONDict from altair_saver._utils import ( extract_format, fmt_to_mimetype, infer_mode_from_spec, maybe_open, ) class Saver(meta...
33.235714
92
0.573823
547
4,653
4.760512
0.25777
0.02765
0.024578
0.026498
0.117128
0.052995
0.052995
0.038402
0.038402
0.038402
0
0.000319
0.326671
4,653
139
93
33.47482
0.830833
0.22781
0
0.134831
0
0
0.104291
0.009833
0
0
0
0
0
1
0.05618
false
0
0.067416
0
0.247191
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4d9ba15c517c23c2ecfacb361d428d6f96edb488
1,976
py
Python
scrape-scripts/co2-coalition.py
ClimateMisinformation/infrastructure
f0940b6f1814b302ff328d2f1d8a04ffa2acde64
[ "Apache-2.0" ]
null
null
null
scrape-scripts/co2-coalition.py
ClimateMisinformation/infrastructure
f0940b6f1814b302ff328d2f1d8a04ffa2acde64
[ "Apache-2.0" ]
null
null
null
scrape-scripts/co2-coalition.py
ClimateMisinformation/infrastructure
f0940b6f1814b302ff328d2f1d8a04ffa2acde64
[ "Apache-2.0" ]
null
null
null
import os from bs4 import BeautifulSoup import html2text import pandas data_dir = 'co2-coalition' data_text_dir = os.path.join(data_dir, 'text') data_file_name = 'co2-coalition.csv' def make_file_name(index): return f'{index:02d}' def save_text(data_dir, file_path, content): f = open(os.path.join(data_dir, file...
22.976744
84
0.723178
305
1,976
4.406557
0.265574
0.083333
0.080357
0.066964
0.345238
0.303571
0.303571
0.254464
0.254464
0.254464
0
0.00806
0.120951
1,976
85
85
23.247059
0.765688
0
0
0.259259
0
0
0.161914
0.011711
0
0
0
0
0
1
0.055556
false
0
0.074074
0.018519
0.166667
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4d9ef0e46af27e7dc0c401a2f1d44362cba6b228
2,677
py
Python
dary_heap.py
fepz/AyCC
72a184c3da075677a2a7e5aebe50d1ceb6627ccf
[ "MIT" ]
null
null
null
dary_heap.py
fepz/AyCC
72a184c3da075677a2a7e5aebe50d1ceb6627ccf
[ "MIT" ]
null
null
null
dary_heap.py
fepz/AyCC
72a184c3da075677a2a7e5aebe50d1ceb6627ccf
[ "MIT" ]
null
null
null
import math # The code is based on from http://www.cs.cmu.edu/~ckingsf/class/02713-s13/src/mst.py # Heap item class HeapItem(object): """Represents an item in the heap""" def __init__(self, key, value): self.key = key self.pos = None self.value = value # d-ary Heap cl...
30.770115
89
0.537542
378
2,677
3.785714
0.26455
0.128581
0.046122
0.025157
0.16492
0.13557
0.079665
0.079665
0
0
0
0.012472
0.341053
2,677
87
90
30.770115
0.798753
0.20396
0
0.135593
0
0
0
0
0
0
0
0
0
1
0.186441
false
0
0.016949
0
0.372881
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4d9f5affe61b40083c20917f0cdf236631978825
679
py
Python
S1c_Option2.py
tatytita20/TatianaOrtizG
bfc9e4a84fe16063871ca3210373f5cd5d05ec00
[ "BSD-2-Clause" ]
null
null
null
S1c_Option2.py
tatytita20/TatianaOrtizG
bfc9e4a84fe16063871ca3210373f5cd5d05ec00
[ "BSD-2-Clause" ]
null
null
null
S1c_Option2.py
tatytita20/TatianaOrtizG
bfc9e4a84fe16063871ca3210373f5cd5d05ec00
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[5]: import cv2 import numpy as np imagen = cv2.imread('wheel.png') gray = cv2.cvtColor(imagen,cv2.COLOR_BGR2GRAY) _,th = cv2.threshold(gray,100,255,cv2.THRESH_BINARY) #Para versiones OpenCV3: img1,contornos1,hierarchy1 = cv2.findContours(th, cv2.RETR_EXTERNAL,cv2.CHAIN_AP...
21.903226
92
0.73785
102
679
4.823529
0.519608
0.04065
0.069106
0.081301
0.186992
0.186992
0.186992
0.186992
0.186992
0
0
0.080775
0.088365
679
30
93
22.633333
0.714055
0.104566
0
0
0
0
0.09182
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
4da1078413c6ede4c933c888d3cfb359e4bb4c92
2,014
py
Python
PythonFSDAM/combine_works.py
MauriceKarrenbrock/PythonFSDAM
efd4a1717af37d6598aaaca0fa520f735cf254b0
[ "BSD-3-Clause" ]
null
null
null
PythonFSDAM/combine_works.py
MauriceKarrenbrock/PythonFSDAM
efd4a1717af37d6598aaaca0fa520f735cf254b0
[ "BSD-3-Clause" ]
null
null
null
PythonFSDAM/combine_works.py
MauriceKarrenbrock/PythonFSDAM
efd4a1717af37d6598aaaca0fa520f735cf254b0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################# # Copyright (c) 2020-2021 Maurice Karrenbrock # # # # This software is open-source and is distributed under the # # BSD 3-Clause "New" or "Revised" License ...
30.059701
72
0.604767
260
2,014
4.588462
0.546154
0.040235
0.030176
0.026823
0.041911
0.041911
0
0
0
0
0
0.041807
0.263654
2,014
66
73
30.515152
0.762643
0.668818
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4da13726f32134c310d04e7e245dd18f5b4f2d9a
8,622
py
Python
modules/pointrnn_cell_impl.py
hehefan/PointRNN-PyTorch
4d32a3dbb03ca423d5b79c6c9ae848b75cee724a
[ "MIT" ]
35
2020-03-16T08:40:57.000Z
2022-03-14T21:14:56.000Z
modules/pointrnn_cell_impl.py
hehefan/PointRNN-PyTorch
4d32a3dbb03ca423d5b79c6c9ae848b75cee724a
[ "MIT" ]
4
2021-02-23T12:33:47.000Z
2021-12-29T06:44:34.000Z
modules/pointrnn_cell_impl.py
hehefan/PointRNN-PyTorch
4d32a3dbb03ca423d5b79c6c9ae848b75cee724a
[ "MIT" ]
5
2020-08-12T05:37:45.000Z
2021-12-13T02:51:34.000Z
import torch import torch.nn as nn import torch.nn.functional as F import os import sys BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(BASE_DIR) import pointnet2_utils import pytorch_utils as pt_utils from typing import List class PointSpatioTemporalCorrelation(nn.Module): def __init__( ...
34.488
163
0.588727
1,079
8,622
4.506024
0.133457
0.070136
0.049362
0.067873
0.682435
0.642945
0.599136
0.579391
0.549568
0.48334
0
0.034175
0.297495
8,622
249
164
34.626506
0.768532
0.054512
0
0.476471
0
0
0.003976
0
0
0
0
0
0
1
0.064706
false
0
0.047059
0
0.176471
0.017647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4da2cd364bac0f635be3f42e807ba80193bddce5
839
py
Python
mbus/MBusAddress.py
droid4control/python-mbus
8e26c1847c06e57bc0e878ef3d6610dc9ba913b4
[ "BSD-3-Clause" ]
23
2015-05-19T15:57:40.000Z
2021-03-18T11:33:22.000Z
mbus/MBusAddress.py
Sensenode/python-mbus
9b598ada5b3da17bb513cf78e5b4a8f2a3f9a1f1
[ "BSD-3-Clause" ]
14
2015-09-20T20:26:22.000Z
2020-05-13T16:39:15.000Z
mbus/MBusAddress.py
neurobat/python-mbus
8e26c1847c06e57bc0e878ef3d6610dc9ba913b4
[ "BSD-3-Clause" ]
22
2015-07-27T08:50:44.000Z
2022-03-19T01:17:18.000Z
from ctypes import Structure, Union, c_int, c_byte, c_char_p # Inner union class MBusAddressInternal(Union): _fields_ = [ ('primary', c_int), ('secondary', c_char_p), ] class MBusAddress(Structure): _fields_ = [ ('is_primary', c_byte), ('_address', ...
22.675676
60
0.605483
94
839
5.106383
0.319149
0.183333
0.108333
0.070833
0.245833
0.125
0
0
0
0
0
0.003407
0.300358
839
36
61
23.305556
0.81431
0.013111
0
0.148148
0
0
0.041162
0
0
0
0
0
0
1
0.148148
false
0
0.037037
0
0.407407
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4da52c1e9bb8246e1bfb4b704fffa7ba5aef097c
633
py
Python
korea_client_prospect.py
DataFinnovation/api-demos-python
1b5cf3334c537b9a09bcb8973c030ad7f19dd2ba
[ "Apache-2.0" ]
1
2019-10-04T18:20:43.000Z
2019-10-04T18:20:43.000Z
korea_client_prospect.py
DataFinnovation/api-demos-python
1b5cf3334c537b9a09bcb8973c030ad7f19dd2ba
[ "Apache-2.0" ]
null
null
null
korea_client_prospect.py
DataFinnovation/api-demos-python
1b5cf3334c537b9a09bcb8973c030ad7f19dd2ba
[ "Apache-2.0" ]
null
null
null
"""the names of companies which filed fields with certain words in them""" from df_wrappers import facts_stringquery def main(): """example code lives in one function""" # this one is easier in the script language query_string = """ filingsource:"Korea FSS" AND fieldname:(hedge OR (foreign AND ex...
26.375
74
0.680885
90
633
4.688889
0.688889
0.075829
0
0
0
0
0
0
0
0
0
0
0.221169
633
23
75
27.521739
0.855984
0.341232
0
0
0
0
0.322581
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.181818
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4da5665c468aeff1b89db108dda338732a06bdb4
2,413
py
Python
libs/CacheSimulator.py
architecture-helper/architecture-helper-python
89c8e2c8ed051f5d5bcbe2283c5228a745c05e4c
[ "MIT" ]
2
2020-06-15T13:08:10.000Z
2020-06-16T13:56:04.000Z
libs/CacheSimulator.py
architecture-helper/architecture-helper-python
89c8e2c8ed051f5d5bcbe2283c5228a745c05e4c
[ "MIT" ]
null
null
null
libs/CacheSimulator.py
architecture-helper/architecture-helper-python
89c8e2c8ed051f5d5bcbe2283c5228a745c05e4c
[ "MIT" ]
2
2020-10-31T13:21:55.000Z
2020-10-31T13:26:34.000Z
DEBUG = False from typing import List, Tuple class LRU: _values:List _lastIndex:int def __init__(self, ways): #values = 3,2,1,0, so the cache will use 0 as the first self._values = list(range(ways-1,-1,-1)) self._lastIndex = ways -1 def getLeastRecentlyUsed(self): ret...
30.935897
106
0.613344
281
2,413
5.145907
0.284698
0.027663
0.038728
0.033195
0.056017
0.04426
0.04426
0
0
0
0
0.01087
0.275591
2,413
77
107
31.337662
0.816362
0.101119
0
0.038462
0
0
0.083295
0
0
0
0
0
0
1
0.153846
false
0
0.019231
0.038462
0.461538
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
4da56c87210d815ae3ce12ef22d4660f4c50a5e6
4,015
py
Python
src/db_triggers.py
serong/saypy
19118fcf34093389c689bf540cf53521667b59f7
[ "MIT" ]
null
null
null
src/db_triggers.py
serong/saypy
19118fcf34093389c689bf540cf53521667b59f7
[ "MIT" ]
null
null
null
src/db_triggers.py
serong/saypy
19118fcf34093389c689bf540cf53521667b59f7
[ "MIT" ]
null
null
null
""" db_triggers.py ~~~~~~~~~~~~~~ :aciklama: Veritabanina veri girisi ve gerekli triggerlar icin :yazar: github.com/serong """ import sqlite3 import db as saydb class SayisalDBT(object): def __init__(self, week, the_date, numbers): self.db_name = "sayisal.db" self.weeks...
27.128378
100
0.547696
430
4,015
4.995349
0.237209
0.05121
0.067039
0.070764
0.560521
0.503724
0.417598
0.392924
0.392924
0.392924
0
0.017358
0.339975
4,015
147
101
27.312925
0.793208
0.218929
0
0.569231
0
0
0.150408
0
0
0
0
0
0
1
0.092308
false
0
0.030769
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4da617061fb7260c745a228403e1f72dc1155bd6
17,088
py
Python
phathom/utils.py
chunglabmit/phathom
304db7a95e898e9b03d6b2640172752d21a7e3ed
[ "MIT" ]
1
2018-04-18T11:54:29.000Z
2018-04-18T11:54:29.000Z
phathom/utils.py
chunglabmit/phathom
304db7a95e898e9b03d6b2640172752d21a7e3ed
[ "MIT" ]
2
2018-04-05T20:53:52.000Z
2018-11-01T16:37:39.000Z
phathom/utils.py
chunglabmit/phathom
304db7a95e898e9b03d6b2640172752d21a7e3ed
[ "MIT" ]
null
null
null
import contextlib import os import pickle import numpy as np from itertools import product, starmap import multiprocessing import tqdm import sys if sys.platform.startswith("linux"): is_linux = True import tempfile else: is_linux = False import mmap # import pyina.launchers # from pyina.ez_map import e...
30.031634
110
0.617743
2,336
17,088
4.422945
0.180223
0.012098
0.011614
0.00813
0.249903
0.186895
0.160472
0.129307
0.114595
0.111885
0
0.007763
0.283883
17,088
569
111
30.031634
0.836561
0.471091
0
0.172775
0
0
0.00714
0
0
0
0
0.001757
0
1
0.136126
false
0
0.052356
0.005236
0.287958
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4da7f0dcc82002a84f867e9fa7df76c1807a4a95
4,706
py
Python
ys_code/src/skin_mb/data/diff_abun.py
sverbanic/ps2-npjBM
646585d787e5ae2d553a04ea4960b36e9d05bf29
[ "CC0-1.0" ]
null
null
null
ys_code/src/skin_mb/data/diff_abun.py
sverbanic/ps2-npjBM
646585d787e5ae2d553a04ea4960b36e9d05bf29
[ "CC0-1.0" ]
null
null
null
ys_code/src/skin_mb/data/diff_abun.py
sverbanic/ps2-npjBM
646585d787e5ae2d553a04ea4960b36e9d05bf29
[ "CC0-1.0" ]
null
null
null
from .result import Result import numpy as np import pandas as pd class DiffAbunRes(Result): def __init__(self, otu_table, transform_pipe=None, percent=False, **kwargs): super().__init__() self.pre_vs_skin = diff_rel_abun(otu_table, compare='pre_vs_skin', transform_pipe=transform_pipe, ...
36.48062
128
0.627922
601
4,706
4.695507
0.241265
0.064493
0.026577
0.019844
0.262934
0.214033
0.186393
0.116938
0.082211
0.082211
0
0.009858
0.267106
4,706
128
129
36.765625
0.80835
0
0
0.161616
0
0
0.06695
0
0
0
0
0
0
1
0.080808
false
0
0.10101
0.010101
0.262626
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4daf588bf7222a0428a4b569a5e2c8de42912a40
1,333
py
Python
bio-info/bio-info5.py
kyamada101/Python
a9be850b1818fb4784cb84e86b20cf2c61784e38
[ "MIT" ]
null
null
null
bio-info/bio-info5.py
kyamada101/Python
a9be850b1818fb4784cb84e86b20cf2c61784e38
[ "MIT" ]
null
null
null
bio-info/bio-info5.py
kyamada101/Python
a9be850b1818fb4784cb84e86b20cf2c61784e38
[ "MIT" ]
null
null
null
import numpy as np with open("./dice.txt",'r') as f: input_str = f.read() input_data=list(map(int,input_str)) inf = -float('inf') class box(): def __init__(self): self.v = inf self.root = -1 def __repr__(self): return str(self.v) def run_viterbi(n,k): if X[n][k].v != inf:...
25.634615
104
0.534134
272
1,333
2.507353
0.246324
0.029326
0.035191
0.029326
0.277126
0.246334
0.246334
0.246334
0.246334
0.130499
0
0.056604
0.244561
1,333
52
105
25.634615
0.620655
0
0
0.093023
0
0
0.05997
0
0
0
0
0
0
1
0.093023
false
0
0.023256
0.023256
0.255814
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4db2f85a35fd948e670a5be341c3efca737c01ed
6,534
py
Python
tests/test_reviews_rest.py
miw-upm/betca-tpv-customer-support
e36946b934123a5c139924192a189c5ce8f3864c
[ "MIT" ]
1
2021-05-04T01:33:00.000Z
2021-05-04T01:33:00.000Z
tests/test_reviews_rest.py
miw-upm/betca-tpv-customer-support
e36946b934123a5c139924192a189c5ce8f3864c
[ "MIT" ]
null
null
null
tests/test_reviews_rest.py
miw-upm/betca-tpv-customer-support
e36946b934123a5c139924192a189c5ce8f3864c
[ "MIT" ]
5
2021-04-02T15:42:31.000Z
2022-03-07T09:02:16.000Z
from http import HTTPStatus from unittest import TestCase, mock import jwt from fastapi.testclient import TestClient from src.api.review_resource import REVIEWS from src.config import config from src.main import app from src.models.article import Article from src.models.review import Review def _bearer(**payload): ...
50.261538
120
0.718549
724
6,534
6.23895
0.178177
0.063095
0.055789
0.074386
0.487713
0.456719
0.36108
0.340934
0.340934
0.290016
0
0.064765
0.168197
6,534
129
121
50.651163
0.766329
0
0
0.226415
0
0
0.170493
0.04622
0
0
0
0
0.330189
1
0.141509
false
0
0.084906
0.018868
0.283019
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4db7b0957c01b75e339ff138abd1c5327cd961ef
2,354
py
Python
python/dset/write_dataset_W1BS.py
spongezhang/vlb
52a6b2ab8608496182ac2a33c961344db4a84333
[ "BSD-2-Clause" ]
11
2017-09-08T16:32:46.000Z
2022-02-02T15:28:22.000Z
python/dset/write_dataset_W1BS.py
albutko/vlb
437245c0991948eeb36a277937a7e67d389041e4
[ "BSD-2-Clause" ]
9
2017-09-13T20:22:51.000Z
2019-03-13T02:38:25.000Z
python/dset/write_dataset_W1BS.py
albutko/vlb
437245c0991948eeb36a277937a7e67d389041e4
[ "BSD-2-Clause" ]
3
2017-09-08T21:07:14.000Z
2021-02-17T17:42:43.000Z
import json sequence_name_list = ['A','G','L','map2photo','S'] description_list = ['Viewpoint Appearance','Viewpoint','ViewPoint Lighting','Map to Photo','Modality'] label_list = [ ['arch', 'obama', 'vprice0', 'vprice1', 'vprice2', 'yosemite'], ['adam', 'boat','ExtremeZoomA','face','fox','graf','mag','...
41.298246
102
0.607477
276
2,354
4.98913
0.391304
0.104575
0.056645
0.050109
0.261438
0.142338
0.142338
0.142338
0.074074
0.074074
0
0.01876
0.184792
2,354
56
103
42.035714
0.698801
0.039507
0
0.085106
0
0
0.298937
0.013729
0
0
0
0
0
1
0
false
0
0.021277
0
0.021277
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4db99233bd49c358c3fdefaa1fa9186de53680eb
11,351
py
Python
scripts/calibration/cal_methods.py
jielyugt/calibration
1b9be673fb7ff8cf481e875153b1a7649e3b6e67
[ "MIT" ]
null
null
null
scripts/calibration/cal_methods.py
jielyugt/calibration
1b9be673fb7ff8cf481e875153b1a7649e3b6e67
[ "MIT" ]
null
null
null
scripts/calibration/cal_methods.py
jielyugt/calibration
1b9be673fb7ff8cf481e875153b1a7649e3b6e67
[ "MIT" ]
null
null
null
# Calibration methods including Histogram Binning and Temperature Scaling import numpy as np from scipy.optimize import minimize from sklearn.metrics import log_loss import pandas as pd import time from sklearn.metrics import log_loss, brier_score_loss from tensorflow.keras.losses import categorical_crossentropy from...
36.616129
124
0.602854
1,460
11,351
4.586301
0.230137
0.008214
0.009857
0.013441
0.147849
0.13172
0.098268
0.0908
0.074373
0.074373
0
0.009892
0.305348
11,351
309
125
36.734628
0.839315
0.406396
0
0.065041
0
0
0.034426
0
0
0
0
0.006472
0
1
0.089431
false
0
0.105691
0
0.292683
0.089431
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4db9d563f39ee0c9eaa0404dfef96153f8e1cbb5
2,259
py
Python
neuralmonkey/nn/projection.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
5
2017-04-24T21:10:03.000Z
2019-05-22T13:19:35.000Z
neuralmonkey/nn/projection.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
null
null
null
neuralmonkey/nn/projection.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
5
2017-04-25T01:36:44.000Z
2019-12-13T15:04:03.000Z
"""Module which implements various types of projections.""" from typing import List, Callable import tensorflow as tf from neuralmonkey.nn.utils import dropout def maxout(inputs: tf.Tensor, size: int, scope: str = "MaxoutProjection") -> tf.Tensor: """Apply a maxout operation. Implementa...
29.723684
79
0.611332
307
2,259
4.387622
0.407166
0.06533
0.029696
0.020787
0.074239
0.038604
0
0
0
0
0
0.030562
0.275786
2,259
75
80
30.12
0.792787
0.273572
0
0.054054
0
0
0.044786
0
0
0
0
0
0
1
0.081081
false
0
0.081081
0
0.243243
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dbb39dfe98094fd9498b0f54ec487acfb06c3ae
5,989
py
Python
afk.py
bsoyka/sunset-bot
ea05000e52e1883ddba77ab754e5f733c8b3375c
[ "MIT" ]
1
2021-06-21T16:58:48.000Z
2021-06-21T16:58:48.000Z
afk.py
bsoyka/sunset-bot
ea05000e52e1883ddba77ab754e5f733c8b3375c
[ "MIT" ]
4
2021-08-13T16:52:51.000Z
2021-09-01T13:05:42.000Z
afk.py
sunset-vacation/bot
ea05000e52e1883ddba77ab754e5f733c8b3375c
[ "MIT" ]
4
2021-06-21T22:16:12.000Z
2021-08-11T21:01:19.000Z
from datetime import datetime from textwrap import shorten from typing import Optional, Union import discord from discord.abc import Messageable from discord.errors import Forbidden from discord.ext.commands import Bot, Cog, Context, check, command, is_owner from discord.utils import get from config import ...
29.79602
135
0.574553
712
5,989
4.698034
0.210674
0.049327
0.021525
0.035575
0.225112
0.177578
0.127653
0.118685
0.118685
0.118685
0
0.002031
0.342461
5,989
200
136
29.945
0.847131
0
0
0.286667
0
0
0.034583
0
0
0
0
0
0
1
0.02
false
0.013333
0.08
0.006667
0.173333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dbd6eb36e7e0009be0cae3c766793da9b62afee
17,853
py
Python
scripts/old_scripts/test1.py
noambuckman/mpc-multiple-vehicles
a20949c335f1af97962569eed112e6cef46174d9
[ "MIT" ]
1
2021-11-02T15:16:17.000Z
2021-11-02T15:16:17.000Z
scripts/old_scripts/test1.py
noambuckman/mpc-multiple-vehicles
a20949c335f1af97962569eed112e6cef46174d9
[ "MIT" ]
5
2021-04-14T17:08:59.000Z
2021-05-27T21:41:02.000Z
scripts/old_scripts/test1.py
noambuckman/mpc-multiple-vehicles
a20949c335f1af97962569eed112e6cef46174d9
[ "MIT" ]
2
2022-02-07T08:16:05.000Z
2022-03-09T23:30:17.000Z
import time, datetime, argparse import os, sys import numpy as np np.set_printoptions(precision=2) import matplotlib.pyplot as plt import copy as cp import pickle PROJECT_PATH = '/home/nbuckman/Dropbox (MIT)/DRL/2020_01_cooperative_mpc/mpc-multiple-vehicles/' sys.path.append(PROJECT_PATH) import casadi as cas import ...
47.863271
286
0.58752
2,622
17,853
3.682685
0.117468
0.04971
0.04971
0.056545
0.64447
0.590514
0.507146
0.471935
0.439623
0.401305
0
0.034316
0.271999
17,853
372
287
47.991935
0.708625
0.155548
0
0.302158
0
0
0.048549
0.007272
0
0
0
0
0
1
0
false
0
0.039568
0
0.039568
0.079137
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dbda883d570920c96f7e2803783e01d7ee5bd65
712
py
Python
RenameMaps.py
uesp/uesp-dbmapscripts
f2bb914661423d19a5bd4b7c090af2b2142654c2
[ "MIT" ]
null
null
null
RenameMaps.py
uesp/uesp-dbmapscripts
f2bb914661423d19a5bd4b7c090af2b2142654c2
[ "MIT" ]
null
null
null
RenameMaps.py
uesp/uesp-dbmapscripts
f2bb914661423d19a5bd4b7c090af2b2142654c2
[ "MIT" ]
null
null
null
import os import sys import shutil import re INPUT_PATH = "d:\\dbmaps\\test\\final\\" OUTPUT_PATH = "d:\\dbmaps\\test\\zoom17\\" for filename in os.listdir(INPUT_PATH): InputFile = INPUT_PATH + filename matchResult = re.search('([a-zA-Z]+)-([0-9]+)-([0-9]+)-([0-9]+)\.', filename) if (not ma...
25.428571
83
0.594101
86
712
4.860465
0.546512
0.064593
0.052632
0.07177
0
0
0
0
0
0
0
0.02693
0.217697
712
27
84
26.37037
0.723519
0
0
0
0
0
0.168375
0.133236
0
0
0
0
0
1
0
false
0
0.235294
0
0.235294
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dc36673ab2928033fca50873ad953a0612cf554
820
py
Python
taco/tests/aws_wrappers/dynamodb/integration/consts.py
Intsights/taco
f9a912d146d74a6539d31c33ec289eff3fbfca8f
[ "Apache-2.0" ]
18
2019-09-05T07:53:26.000Z
2021-02-15T18:23:45.000Z
taco/tests/aws_wrappers/dynamodb/integration/consts.py
Intsights/taco
f9a912d146d74a6539d31c33ec289eff3fbfca8f
[ "Apache-2.0" ]
null
null
null
taco/tests/aws_wrappers/dynamodb/integration/consts.py
Intsights/taco
f9a912d146d74a6539d31c33ec289eff3fbfca8f
[ "Apache-2.0" ]
null
null
null
import taco.aws_wrappers.dynamodb_wrapper.consts as dynamodb_consts from taco.boto3.boto_config import Regions DEFAULT_REGION = Regions.n_virginia.value RESPONSE_KEY_NAME = 'Responses' PRIMARY_KEY_NAME = 'KEY1' ATTRIBUTE_DEFINITIONS = [ dynamodb_consts.property_schema(PRIMARY_KEY_NAME, dynamodb_consts.AttributeTy...
41
115
0.842683
115
820
5.521739
0.469565
0.141732
0.110236
0.088189
0.176378
0.176378
0.176378
0.176378
0.176378
0
0
0.009247
0.076829
820
19
116
43.157895
0.82959
0
0
0
0
0
0.096341
0
0
0
0
0
0
1
0
false
0
0.133333
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
4dc47970f015540fdb076bfa3a3c9a472b731090
1,790
py
Python
examples/HMF_oxidation_WO3/model.py
flboudoire/chemical-kinetics
70db1b3fc899f357d86834708950b9559b4d19fb
[ "MIT" ]
null
null
null
examples/HMF_oxidation_WO3/model.py
flboudoire/chemical-kinetics
70db1b3fc899f357d86834708950b9559b4d19fb
[ "MIT" ]
null
null
null
examples/HMF_oxidation_WO3/model.py
flboudoire/chemical-kinetics
70db1b3fc899f357d86834708950b9559b4d19fb
[ "MIT" ]
2
2021-09-23T14:17:33.000Z
2022-03-26T01:06:34.000Z
import numpy as np from scipy import constants measured_species = ["HMF", "DFF", "HMFCA", "FFCA", "FDCA"] all_species = measured_species.copy() all_species.extend(["H_" + s for s in measured_species]) all_species.extend(["Hx_" + s for s in measured_species]) def c_to_q(c): c_e = list() for i, s in enumera...
31.403509
96
0.488268
300
1,790
2.773333
0.266667
0.048077
0.060096
0.072115
0.298077
0.298077
0.211538
0
0
0
0
0.031508
0.255307
1,790
57
97
31.403509
0.592648
0.064804
0
0
0
0
0.188634
0
0
0
0
0
0
1
0.057143
false
0
0.057143
0
0.171429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dc68b6c713419a1c2bd43c406530fcd60ac199b
9,204
py
Python
code/bodmas/utils.py
whyisyoung/BODMAS
91e63bbacaa53060488c94e54af3a2fb91cfa88a
[ "BSD-2-Clause" ]
18
2021-07-20T13:50:06.000Z
2022-03-29T18:20:43.000Z
code/bodmas/utils.py
whyisyoung/BODMAS
91e63bbacaa53060488c94e54af3a2fb91cfa88a
[ "BSD-2-Clause" ]
1
2022-01-19T23:52:14.000Z
2022-01-21T20:35:32.000Z
code/bodmas/utils.py
whyisyoung/BODMAS
91e63bbacaa53060488c94e54af3a2fb91cfa88a
[ "BSD-2-Clause" ]
2
2021-11-20T10:44:10.000Z
2021-12-31T02:38:08.000Z
# -*- coding: utf-8 -*- """ utils.py ~~~~~~~~ Helper functions for setting up the environment and parsing args, etc. """ import os os.environ['PYTHONHASHSEED'] = '0' from numpy.random import seed import random random.seed(1) seed(1) import sys import logging import argparse import pickle import json import numpy a...
39.165957
159
0.661669
1,260
9,204
4.683333
0.237302
0.018302
0.054906
0.025419
0.423657
0.361634
0.334181
0.325708
0.325708
0.325708
0
0.010512
0.224794
9,204
234
160
39.333333
0.816538
0.135267
0
0.221429
0
0.007143
0.299593
0.028775
0
0
0
0
0
1
0.071429
false
0
0.128571
0
0.242857
0.021429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dc6fa3514e2ac738a922e6c666fe8ccb1623cf7
1,937
py
Python
Software for Other Building Blocks and Integration/PoW.py
fkerem/Cryptocurrency-Blockchain
965268a09a6f8b3e700e8bbc741e49a4d54805c6
[ "MIT" ]
null
null
null
Software for Other Building Blocks and Integration/PoW.py
fkerem/Cryptocurrency-Blockchain
965268a09a6f8b3e700e8bbc741e49a4d54805c6
[ "MIT" ]
null
null
null
Software for Other Building Blocks and Integration/PoW.py
fkerem/Cryptocurrency-Blockchain
965268a09a6f8b3e700e8bbc741e49a4d54805c6
[ "MIT" ]
null
null
null
""" PoW.py """ import DSA import sys import hashlib if sys.version_info < (3, 6): import sha3 def rootMerkle(TxBlockFile, TxLen): #To Get the Root Hash of the Merkle Tree TxBlockFileBuffer = open(TxBlockFile, "r") lines = TxBlockFileBuffer.readlines() TxBlockFileBuffer.close() Tx...
29.8
90
0.588539
235
1,937
4.804255
0.33617
0.021258
0.037201
0.023029
0.230292
0.115146
0.115146
0
0
0
0
0.02689
0.289623
1,937
64
91
30.265625
0.793605
0.138358
0
0.183673
0
0
0.025835
0
0.020408
0
0
0
0
1
0.040816
false
0
0.081633
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
4dc88ebb3a9af63d834dc6d3c95d28f963145c6a
287
py
Python
chapter03/3.5_simulate_output_layer.py
Myeonghan-Jeong/deep-learning-from-scratch
0df7f9f352920545f5309e8e11c7cf879ad477e5
[ "MIT" ]
null
null
null
chapter03/3.5_simulate_output_layer.py
Myeonghan-Jeong/deep-learning-from-scratch
0df7f9f352920545f5309e8e11c7cf879ad477e5
[ "MIT" ]
3
2021-06-08T21:22:11.000Z
2021-09-08T01:55:11.000Z
chapter03/3.5_simulate_output_layer.py
myeonghan-nim/deep-learning-from-scratch
fef3e327c49593b5df74728a1cba1144948a2999
[ "MIT" ]
null
null
null
import numpy as np # softmax function def softmax(a): exp_a = np.exp(a) sum_a = np.sum(exp_a) return exp_a / sum_a # modified softmax function def modified_softmax(a): maxA = np.max(a) exp_a = np.exp(a - maxA) sum_a = np.sum(exp_a) return exp_a / sum_a
15.105263
28
0.634146
53
287
3.226415
0.264151
0.187135
0.122807
0.140351
0.444444
0.444444
0.315789
0.315789
0.315789
0.315789
0
0
0.25784
287
18
29
15.944444
0.802817
0.146341
0
0.4
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.1
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
4dc8ffc44718b6bc253375644e19671ce86d5269
8,260
py
Python
rubi/datasets/vqa2.py
abhipsabasu/rubi.bootstrap.pytorch
9fa9639c1ee4a040958d976eeb5dca2dd2203980
[ "BSD-3-Clause" ]
83
2021-03-02T07:49:14.000Z
2022-03-30T03:07:26.000Z
rubi/datasets/vqa2.py
abhipsabasu/rubi.bootstrap.pytorch
9fa9639c1ee4a040958d976eeb5dca2dd2203980
[ "BSD-3-Clause" ]
14
2019-07-14T14:10:28.000Z
2022-01-27T18:53:34.000Z
cfvqa/cfvqa/datasets/vqa2.py
yuleiniu/introd
a40407c7efee9c34e3d4270d7947f5be2f926413
[ "Apache-2.0" ]
14
2019-09-20T01:49:13.000Z
2022-03-29T16:42:34.000Z
import os import csv import copy import json import torch import numpy as np from os import path as osp from bootstrap.lib.logger import Logger from bootstrap.lib.options import Options from block.datasets.vqa_utils import AbstractVQA from copy import deepcopy import random import tqdm import h5py class VQA2(AbstractV...
45.635359
122
0.607385
1,060
8,260
4.477358
0.187736
0.028024
0.03582
0.03287
0.462073
0.432364
0.376106
0.328066
0.222292
0.2067
0
0.017247
0.269976
8,260
180
123
45.888889
0.769818
0.103995
0
0.068966
0
0
0.220491
0.086733
0
0
0
0
0
1
0.041379
false
0
0.096552
0
0.165517
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dcb5c28ab7f560dea6a9712a1a25dda90260ee7
2,564
py
Python
venv/lib/python2.7/site-packages/ebcli/objects/tier.py
zwachtel11/fruitful-backend
45b8994917182e7b684b9e25944cc79c9494c9f3
[ "MIT" ]
4
2017-01-17T09:09:07.000Z
2018-12-19T14:06:22.000Z
venv/lib/python2.7/site-packages/ebcli/objects/tier.py
zwachtel11/fruitful-backend
45b8994917182e7b684b9e25944cc79c9494c9f3
[ "MIT" ]
1
2020-06-03T13:57:07.000Z
2020-06-22T10:27:48.000Z
venv/lib/python2.7/site-packages/ebcli/objects/tier.py
zwachtel11/fruitful-backend
45b8994917182e7b684b9e25944cc79c9494c9f3
[ "MIT" ]
4
2017-08-13T09:09:31.000Z
2020-11-04T04:58:58.000Z
# Copyright 2014 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
31.654321
73
0.559282
304
2,564
4.651316
0.371711
0.042433
0.045969
0.060113
0.178925
0.075672
0.075672
0
0
0
0
0.010141
0.307722
2,564
81
74
31.654321
0.786479
0.233619
0
0.142857
0
0
0.115838
0
0
0
0
0
0
1
0.107143
false
0
0.035714
0
0.321429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dcd01eb4188987a9436e56ef1dddd73f316c897
1,617
py
Python
Class4/shoppingcart_pom/features/lib/pages/summer_dresses_catalog_page.py
techsparksguru/python_ci_automation
65e66266fdf2c14f593c6f098a23770621faef41
[ "MIT" ]
null
null
null
Class4/shoppingcart_pom/features/lib/pages/summer_dresses_catalog_page.py
techsparksguru/python_ci_automation
65e66266fdf2c14f593c6f098a23770621faef41
[ "MIT" ]
9
2020-02-13T09:14:12.000Z
2022-01-13T03:17:03.000Z
Class4/shoppingcart_pom/features/lib/pages/summer_dresses_catalog_page.py
techsparksguru/python_ci_automation
65e66266fdf2c14f593c6f098a23770621faef41
[ "MIT" ]
1
2021-03-10T03:27:37.000Z
2021-03-10T03:27:37.000Z
__author__ = 'techsparksguru' from selenium.webdriver.common.by import By from .base_page_object import BasePage class SummerDressesCatalogPage(BasePage): def __init__(self, context): BasePage.__init__( self, context.browser, base_url='http://www.automationpractice.com...
37.604651
100
0.564626
167
1,617
5.08982
0.371257
0.056471
0.105882
0.067059
0.565882
0.565882
0.470588
0.470588
0.470588
0.470588
0
0.011364
0.292517
1,617
42
101
38.5
0.731643
0
0
0.5
0
0.055556
0.317873
0.121831
0
0
0
0
0
1
0.083333
false
0
0.055556
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
4dcdd9abff0ad027ebd337ca976c53333922e6fc
446
py
Python
ch3/collatz_test.py
jakdept/pythonbook
862e445ef1bcb36c890fe7e27e144354f6c855b5
[ "MIT" ]
null
null
null
ch3/collatz_test.py
jakdept/pythonbook
862e445ef1bcb36c890fe7e27e144354f6c855b5
[ "MIT" ]
null
null
null
ch3/collatz_test.py
jakdept/pythonbook
862e445ef1bcb36c890fe7e27e144354f6c855b5
[ "MIT" ]
null
null
null
import unittest import collatz class TestCollatz(unittest.TestCase): '''tests the collatz.py script''' def test_collatz(self): '''table driven test to verify collatz''' tests = ((742, 371), (418, 209), (118, 59), (1978, 989)) for tes...
21.238095
63
0.544843
49
446
4.77551
0.673469
0
0
0
0
0
0
0
0
0
0
0.086379
0.325112
446
21
64
21.238095
0.69103
0.141256
0
0
0
0
0.021505
0
0
0
0
0
0.083333
1
0.083333
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
4dceebb4aaf3cbc5f66e75e0222673f73c95b189
4,046
py
Python
test/surrogate/test_sk_random_forest.py
Dee-Why/lite-bo
804e93b950148fb98b7e52bd56c713edacdb9b6c
[ "BSD-3-Clause" ]
184
2021-06-02T06:35:25.000Z
2022-03-31T10:33:11.000Z
test/surrogate/test_sk_random_forest.py
ZongWei-HUST/open-box
011791aba4e44b20a6544020c73601638886d143
[ "MIT" ]
16
2021-11-15T11:13:57.000Z
2022-03-24T12:51:17.000Z
test/surrogate/test_sk_random_forest.py
ZongWei-HUST/open-box
011791aba4e44b20a6544020c73601638886d143
[ "MIT" ]
24
2021-06-18T04:52:57.000Z
2022-03-30T11:14:03.000Z
from sklearn.ensemble import RandomForestRegressor from openbox.utils.config_space import ConfigurationSpace from openbox.utils.config_space import UniformFloatHyperparameter, \ CategoricalHyperparameter, Constant, UniformIntegerHyperparameter import numpy as np from openbox.utils.config_space.util import convert_c...
32.894309
109
0.712803
564
4,046
4.89539
0.306738
0.018109
0.016298
0.023904
0.314017
0.283231
0.24339
0.24339
0.24339
0.229627
0
0.020884
0.183391
4,046
122
110
33.163934
0.81477
0.176965
0
0.08
0
0
0.044927
0
0
0
0
0
0
1
0.053333
false
0
0.146667
0
0.226667
0.106667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dcf592e4a02e009b4cb4e7b4d57ff918fb14acc
3,258
py
Python
cli_wrapper.py
anirbandas18/report-engine
de7d3c0caab972243a61e681abbb9a06e9c54857
[ "MIT" ]
null
null
null
cli_wrapper.py
anirbandas18/report-engine
de7d3c0caab972243a61e681abbb9a06e9c54857
[ "MIT" ]
null
null
null
cli_wrapper.py
anirbandas18/report-engine
de7d3c0caab972243a61e681abbb9a06e9c54857
[ "MIT" ]
null
null
null
import subprocess, os # constants with global scope INPUT = "--input" OUTPUT = "--output" FILTERS = "--filters" SUPPPLEMENTS = "--supplements" JAR_DIRECTORY = "target" JAR_NAME = "report-engine.jar" def build_jar(): should_package = input("\nBuild " + JAR_NAME + " file from src (Y/N) ? ") # check ...
42.868421
123
0.624002
421
3,258
4.646081
0.304038
0.02454
0.0409
0.016871
0.176892
0.125767
0.060327
0.018405
0
0
0
0.004593
0.264886
3,258
76
124
42.868421
0.812109
0.167281
0
0.09434
0
0
0.258101
0
0
0
0
0
0
1
0.056604
false
0
0.018868
0
0.150943
0.113208
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dcfc7f344c60db35f7d0923585dc078c2f43a3c
11,267
py
Python
19-05-150_protein_ridge/inference.py
danhtaihoang/sparse-network
763a19f5f333df5cfa9852d965a7110e813d52d5
[ "MIT" ]
null
null
null
19-05-150_protein_ridge/inference.py
danhtaihoang/sparse-network
763a19f5f333df5cfa9852d965a7110e813d52d5
[ "MIT" ]
null
null
null
19-05-150_protein_ridge/inference.py
danhtaihoang/sparse-network
763a19f5f333df5cfa9852d965a7110e813d52d5
[ "MIT" ]
null
null
null
##======================================================================================== import numpy as np from scipy import linalg from sklearn.preprocessing import OneHotEncoder from scipy.spatial import distance #========================================================================================= def itab(n...
30.125668
101
0.454158
1,677
11,267
2.985689
0.15325
0.020771
0.025165
0.021969
0.448772
0.409227
0.383263
0.355502
0.348312
0.341522
0
0.055139
0.301411
11,267
373
102
30.206434
0.580994
0.231117
0
0.517857
0
0
0.001745
0
0
0
0
0
0
1
0.040179
false
0
0.017857
0
0.098214
0.004464
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dd0b98da97f43f66eaf8f6486394d5b6746b436
5,050
py
Python
scraper.py
quake0day/chessreview
1cb1aa6689f2db46546da9b1bf328da25b1b67ba
[ "Apache-2.0" ]
null
null
null
scraper.py
quake0day/chessreview
1cb1aa6689f2db46546da9b1bf328da25b1b67ba
[ "Apache-2.0" ]
null
null
null
scraper.py
quake0day/chessreview
1cb1aa6689f2db46546da9b1bf328da25b1b67ba
[ "Apache-2.0" ]
null
null
null
""" PGN Scraper is a small program which downloads each of a user's archived games from chess.com and stores them in a pgn file. When running the user is asked for the account name which shall be scraped and for game types. The scraper only downloads games of the correct type. Supported types are: bullet, rapid, blitz...
31.36646
143
0.60396
685
5,050
4.351825
0.265693
0.053673
0.016102
0.018115
0.183495
0.130493
0.107682
0.074136
0.018786
0
0
0.01065
0.274851
5,050
160
144
31.5625
0.803386
0.431683
0
0.109589
0
0
0.160247
0.014535
0
0
0
0
0
1
0.068493
false
0
0.054795
0
0.164384
0.09589
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dd0f6aca6f1e8e85ab78942074e05e47cb24566
2,117
py
Python
testpro1/DB_handler_jjd.py
dongkakika/OXS
95166365fb5e35155af3b8de6859ec87f3d9ca78
[ "MIT" ]
4
2020-04-22T08:42:01.000Z
2021-07-31T19:28:51.000Z
testpro1/DB_handler_jjd.py
dongkakika/OXS
95166365fb5e35155af3b8de6859ec87f3d9ca78
[ "MIT" ]
null
null
null
testpro1/DB_handler_jjd.py
dongkakika/OXS
95166365fb5e35155af3b8de6859ec87f3d9ca78
[ "MIT" ]
null
null
null
import sqlite3 import codecs # for using '한글' import os # 타이틀 정보 읽어오기 f = codecs.open("jjd_info_title.txt", "r") title_list = [] while True: line = f.readline() # 한 줄씩 읽 if not line: break # break the loop when it's End Of File title_list.append(line) # split the line and append it to...
28.608108
90
0.600378
328
2,117
3.777439
0.323171
0.033898
0.022599
0.041969
0.369653
0.337369
0.337369
0.259887
0.259887
0.259887
0
0.009518
0.205952
2,117
73
91
29
0.727543
0.354747
0
0.4
0
0
0.139006
0
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
4dd104cc2e6c9e4bdd3ba911a3d5a31df0366e7f
429
py
Python
scripts/regression_tests.py
zhangxaochen/Opt
7f1af802bfc84cc9ef1adb9facbe4957078f529a
[ "MIT" ]
260
2017-03-02T19:57:51.000Z
2022-01-21T03:52:03.000Z
scripts/regression_tests.py
zhangxaochen/Opt
7f1af802bfc84cc9ef1adb9facbe4957078f529a
[ "MIT" ]
102
2017-03-03T00:42:56.000Z
2022-03-30T14:15:20.000Z
scripts/regression_tests.py
zhangxaochen/Opt
7f1af802bfc84cc9ef1adb9facbe4957078f529a
[ "MIT" ]
71
2017-03-02T20:22:33.000Z
2022-01-02T03:49:04.000Z
from opt_utils import * import argparse parser = argparse.ArgumentParser() parser.add_argument("-s", "--skip_compilation", action='store_true', help="skip compilation") args = parser.parse_args() if not args.skip_compilation: compile_all_opt_examples() for example in all_examples: args = [] output = run_example(ex...
28.6
93
0.748252
60
429
5.133333
0.633333
0.146104
0
0
0
0
0
0
0
0
0
0
0.114219
429
14
94
30.642857
0.810526
0
0
0
0
0
0.130536
0
0
0
0
0
0
1
0
false
0
0.166667
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
4dd73302eae1ae2e039d31c3cb2e7f24834961a5
6,452
py
Python
deeppavlov/deep.py
cclauss/DeepPavlov
8726173c92994b3f789790b5879052d2f7953f47
[ "Apache-2.0" ]
3
2020-04-16T04:25:10.000Z
2021-05-07T23:04:43.000Z
deeppavlov/deep.py
sachinsingh3107/Deeppavlov_Chatbot
f10b9485c118cdec69e73c89833a1a5a164404de
[ "Apache-2.0" ]
12
2020-01-28T22:14:04.000Z
2022-02-10T00:10:17.000Z
deeppavlov/deep.py
sachinsingh3107/Deeppavlov_Chatbot
f10b9485c118cdec69e73c89833a1a5a164404de
[ "Apache-2.0" ]
1
2021-02-05T13:01:48.000Z
2021-02-05T13:01:48.000Z
""" Copyright 2017 Neural Networks and Deep Learning lab, MIPT 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 a...
47.094891
116
0.66739
832
6,452
4.944712
0.235577
0.041565
0.078512
0.031113
0.302625
0.201993
0.187409
0.148517
0.126155
0.126155
0
0.002411
0.228456
6,452
136
117
47.441176
0.824026
0.09036
0
0.17
0
0
0.174544
0
0
0
0
0
0
1
0.01
false
0
0.13
0
0.14
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dd85a981091c632d855dbb819f62a7e6d570ba9
59,286
py
Python
pype/plugins/global/publish/extract_review.py
barklaya/pype
db3f708b1918d4f81951b36e1575eb3ecf0551c5
[ "MIT" ]
null
null
null
pype/plugins/global/publish/extract_review.py
barklaya/pype
db3f708b1918d4f81951b36e1575eb3ecf0551c5
[ "MIT" ]
null
null
null
pype/plugins/global/publish/extract_review.py
barklaya/pype
db3f708b1918d4f81951b36e1575eb3ecf0551c5
[ "MIT" ]
null
null
null
import os import re import copy import json import pyblish.api import clique import pype.api import pype.lib class ExtractReview(pyblish.api.InstancePlugin): """Extracting Review mov file for Ftrack Compulsory attribute of representation is tags list with "review", otherwise the representation is ignored...
38.003846
95
0.540347
6,270
59,286
4.883573
0.099203
0.018746
0.023906
0.004997
0.300816
0.234977
0.17162
0.143991
0.116982
0.104572
0
0.005301
0.370003
59,286
1,559
96
38.028223
0.814511
0.177141
0
0.231306
0
0.001994
0.114355
0.012991
0.000997
0
0
0.001924
0
1
0.021934
false
0
0.007976
0
0.077767
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dd8bacf6b045e8713670a0e2435de01e5e09f0a
6,683
py
Python
tests/peerfinder_test.py
wusel42/PeerFinder
35f132b45f2947902adfb6327ebcdf60bce4bdc2
[ "MIT" ]
49
2017-07-13T13:58:14.000Z
2022-03-04T12:23:35.000Z
tests/peerfinder_test.py
wusel42/PeerFinder
35f132b45f2947902adfb6327ebcdf60bce4bdc2
[ "MIT" ]
9
2017-07-11T13:23:15.000Z
2021-02-06T22:25:15.000Z
tests/peerfinder_test.py
wusel42/PeerFinder
35f132b45f2947902adfb6327ebcdf60bce4bdc2
[ "MIT" ]
17
2017-07-11T12:37:25.000Z
2022-01-29T14:19:35.000Z
import unittest from unittest.mock import Mock import mock import peerfinder.peerfinder as peerfinder import requests from ipaddress import IPv6Address, IPv4Address class testPeerFinder(unittest.TestCase): def setUp(self): self.netixlan_set = { "id": 1, "ix_id": 2, "nam...
36.519126
87
0.575939
772
6,683
4.787565
0.134715
0.025703
0.064935
0.098214
0.6829
0.618506
0.562229
0.544372
0.478896
0.447511
0
0.069381
0.279665
6,683
182
88
36.71978
0.69838
0
0
0.386503
0
0
0.107138
0
0
0
0
0
0.08589
1
0.092025
false
0
0.03681
0
0.134969
0.03681
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dd917ca4b89b1723693aa78f18f3c1b80e9acd7
5,372
py
Python
ceilometer/network/notifications.py
rackerlabs/instrumented-ceilometer
6ac5215ac0476120d9c99adcabc9cad0d32963da
[ "Apache-2.0" ]
3
2021-04-18T00:37:48.000Z
2021-07-21T10:20:11.000Z
ceilometer/network/notifications.py
lexxito/monitoring
bec8dfb8d3610331c7ae5ec543e0b8da0948c164
[ "Apache-2.0" ]
null
null
null
ceilometer/network/notifications.py
lexxito/monitoring
bec8dfb8d3610331c7ae5ec543e0b8da0948c164
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Copyright © 2012 New Dream Network, LLC (DreamHost) # # Author: Julien Danjou <julien@danjou.info> # # 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:...
32.167665
79
0.642033
615
5,372
5.489431
0.349594
0.046209
0.033175
0.069313
0.326718
0.294727
0.283768
0.283768
0.255332
0.255332
0
0.003546
0.265078
5,372
166
80
32.361446
0.851317
0.355175
0
0.2875
0
0
0.116581
0.014497
0
0
0
0.006024
0
1
0.05
false
0
0.0625
0.0125
0.3375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dda7edb222a2d84997df6163df89166d292eb6b
2,407
py
Python
optax/_src/update_test.py
pierricklee/optax
a75dbf99ce7af05e18bb6a2c518531ddc7303d13
[ "Apache-2.0" ]
2
2021-03-13T23:25:27.000Z
2022-03-09T09:38:27.000Z
optax/_src/update_test.py
rwightman/optax
ba0bc11d172054d65b4387ecae840c04e2bc7035
[ "Apache-2.0" ]
null
null
null
optax/_src/update_test.py
rwightman/optax
ba0bc11d172054d65b4387ecae840c04e2bc7035
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2019 DeepMind Technologies Limited. 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 # # ...
33.901408
80
0.665974
367
2,407
4.166213
0.3297
0.041203
0.032701
0.052322
0.425768
0.377371
0.377371
0.343362
0.231524
0.189666
0
0.033214
0.186955
2,407
70
81
34.385714
0.748084
0.294142
0
0.365854
0
0
0.006552
0
0
0
0
0
0.097561
1
0.073171
false
0
0.121951
0
0.219512
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ddd26506c5a2c32c298c1cac79c89b498178da9
7,206
py
Python
mesh.py
msellens/pms
d175fded80087a907e8fab6ae09f6d1be69b3353
[ "MIT" ]
null
null
null
mesh.py
msellens/pms
d175fded80087a907e8fab6ae09f6d1be69b3353
[ "MIT" ]
null
null
null
mesh.py
msellens/pms
d175fded80087a907e8fab6ae09f6d1be69b3353
[ "MIT" ]
null
null
null
from itertools import product import struct import pickle import numpy as np from scipy import sparse from scipy import isnan as scipy_isnan import numpy.matlib ASCII_FACET = """facet normal 0 0 0 outer loop vertex {face[0][0]:.4f} {face[0][1]:.4f} {face[0][2]:.4f} vertex {face[1][0]:.4f} {face[1][1]:.4f} {face[1][2]...
28.709163
96
0.543991
1,069
7,206
3.566885
0.201123
0.006819
0.004721
0.012589
0.276685
0.225282
0.194597
0.151062
0.141096
0.12064
0
0.041038
0.283097
7,206
250
97
28.824
0.697058
0.101998
0
0.225131
0
0.015707
0.057507
0
0
0
0
0.004
0.005236
1
0.089005
false
0
0.036649
0
0.167539
0.015707
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ddd878eccdd7091a7bbb342e9e801e07d0428f5
4,759
py
Python
vaccine.py
brannbrann/findavaccinesms
91e21a91a25d69efed3266c2ccbb5b0e76f5ca1b
[ "Apache-2.0" ]
null
null
null
vaccine.py
brannbrann/findavaccinesms
91e21a91a25d69efed3266c2ccbb5b0e76f5ca1b
[ "Apache-2.0" ]
null
null
null
vaccine.py
brannbrann/findavaccinesms
91e21a91a25d69efed3266c2ccbb5b0e76f5ca1b
[ "Apache-2.0" ]
null
null
null
''' This is a python script that requires you have python installed, or in a cloud environment. This script scrapes the CVS website looking for vaccine appointments in the cities you list. To update for your area, update the locations commented below. If you receive an error that says something is not installed, type...
37.769841
128
0.63921
596
4,759
5.055369
0.491611
0.010621
0.010953
0.01394
0.041155
0.027215
0.027215
0.027215
0
0
0
0.007932
0.231771
4,759
125
129
38.072
0.816193
0.270435
0
0.025974
0
0.025974
0.314917
0.018029
0
0
0
0
0
1
0.025974
false
0.025974
0.077922
0
0.103896
0.077922
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4de04f66464c9444c5a3decd7af60b9026030890
6,643
py
Python
examples/viewer3DVolume.py
vincefn/silx
4b239abfc90d2fa7d6ab61425f8bfc7b83c0f444
[ "CC0-1.0", "MIT" ]
null
null
null
examples/viewer3DVolume.py
vincefn/silx
4b239abfc90d2fa7d6ab61425f8bfc7b83c0f444
[ "CC0-1.0", "MIT" ]
null
null
null
examples/viewer3DVolume.py
vincefn/silx
4b239abfc90d2fa7d6ab61425f8bfc7b83c0f444
[ "CC0-1.0", "MIT" ]
1
2017-04-02T18:00:14.000Z
2017-04-02T18:00:14.000Z
# coding: utf-8 # /*########################################################################## # # Copyright (c) 2016-2017 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to d...
32.091787
79
0.663104
936
6,643
4.651709
0.340812
0.012632
0.031236
0.033762
0.117823
0.097152
0.097152
0.097152
0.097152
0.097152
0
0.01622
0.201867
6,643
206
80
32.247573
0.804979
0.324552
0
0.108108
0
0
0.272192
0.026136
0
0
0
0
0
1
0.018018
false
0
0.09009
0
0.135135
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4de340ca20d63248997dbff4ccd4dfac76793fb6
294
py
Python
EXC/CW1/task7/mapper.py
easyCZ/UoE-Projects
7651c8caf329c4f7b4562eba441bfc24124cfcfd
[ "BSD-2-Clause" ]
null
null
null
EXC/CW1/task7/mapper.py
easyCZ/UoE-Projects
7651c8caf329c4f7b4562eba441bfc24124cfcfd
[ "BSD-2-Clause" ]
1
2022-02-23T07:34:53.000Z
2022-02-23T07:34:53.000Z
EXC/CW1/task7/mapper.py
easyCZ/UoE-Projects
7651c8caf329c4f7b4562eba441bfc24124cfcfd
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # mapper.py import sys for line in sys.stdin: row, values = line.strip().split('\t') row_values = values.split(' ') for (col, col_value) in enumerate(row_values): # out: <col> <row> <value> print("{0}\t{1}\t{2}".format(col, row, col_value))
26.727273
58
0.585034
45
294
3.733333
0.555556
0.160714
0
0
0
0
0
0
0
0
0
0.0131
0.221088
294
11
58
26.727273
0.720524
0.190476
0
0
0
0
0.072034
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
4de6e32302e33f5a63e0ba995f624e069fef3439
1,849
py
Python
Fig8_RTM/RTM.py
GeoCode-polymtl/Seis_float16
5f9660cbdc37e5ab7f6054f7547df2ffb661a81d
[ "MIT" ]
null
null
null
Fig8_RTM/RTM.py
GeoCode-polymtl/Seis_float16
5f9660cbdc37e5ab7f6054f7547df2ffb661a81d
[ "MIT" ]
5
2020-01-28T22:17:04.000Z
2022-02-09T23:33:07.000Z
Fig8_RTM/RTM.py
GeoCode-polymtl/Seis_float16
5f9660cbdc37e5ab7f6054f7547df2ffb661a81d
[ "MIT" ]
3
2019-11-27T06:06:04.000Z
2020-06-05T17:18:15.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Perform RTM on marmousi """ import os import numpy as np import h5py as h5 from scipy.ndimage.filters import gaussian_filter import sys import shutil from SeisCL import SeisCL names = ['fp32', 'fp16io', 'fp16com'] filedata = os.getcwd() + '/marmfp32' seis = SeisCL() ...
31.87931
81
0.670092
245
1,849
4.412245
0.481633
0.074006
0.041628
0.019426
0.044403
0.044403
0
0
0
0
0
0.022921
0.174148
1,849
57
82
32.438596
0.685003
0.132504
0
0
0
0
0.161241
0
0
0
0
0
0
1
0
false
0
0.194444
0
0.194444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4de77886992362775de86d085f926f5ea3304df0
954
py
Python
doc/default_issue/fix.py
nadavweidman/pytconf
6203d3607c1cc383c60d1c138efc1109c7a6ab59
[ "MIT" ]
null
null
null
doc/default_issue/fix.py
nadavweidman/pytconf
6203d3607c1cc383c60d1c138efc1109c7a6ab59
[ "MIT" ]
1
2021-12-03T11:35:46.000Z
2021-12-03T11:52:52.000Z
doc/default_issue/fix.py
nadavweidman/pytconf
6203d3607c1cc383c60d1c138efc1109c7a6ab59
[ "MIT" ]
8
2021-12-03T11:07:55.000Z
2022-03-23T13:35:05.000Z
#!/usr/bin/python3 from typing import List from registry import the_registry from param_collector import the_collector class MetaConfig(type): """ Meta class for all configs """ def __new__(mcs, name, bases, namespace): ret = super().__new__(mcs, name, bases, namespace) i = 0 ...
18.346154
73
0.627883
123
954
4.666667
0.479675
0.062718
0.038328
0.062718
0.083624
0
0
0
0
0
0
0.004317
0.271488
954
51
74
18.705882
0.821583
0.074423
0
0
0
0
0.002347
0
0
0
0
0
0
1
0.071429
false
0.035714
0.107143
0
0.464286
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4de80e2e1c94dbe6762d16201a946a481593a775
543
py
Python
solutions/python3/problem1556.py
tjyiiuan/LeetCode
abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e
[ "MIT" ]
null
null
null
solutions/python3/problem1556.py
tjyiiuan/LeetCode
abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e
[ "MIT" ]
null
null
null
solutions/python3/problem1556.py
tjyiiuan/LeetCode
abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 1556. Thousand Separator Given an integer n, add a dot (".") as the thousands separator and return it in string format. Constraints: 0 <= n < 2^31 """ class Solution: def thousandSeparator(self, n: int) -> str: res = "" str_n = str(n) count = 0 ind = ...
19.392857
94
0.46593
69
543
3.623188
0.594203
0.064
0.056
0
0
0
0
0
0
0
0
0.05
0.410681
543
27
95
20.111111
0.73125
0.316759
0
0
0
0
0.002755
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4de95b2ae160d83f0a0fab9908a283c692256619
6,483
py
Python
app/resources/base.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2019-07-25T21:15:05.000Z
2019-07-25T21:15:05.000Z
app/resources/base.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
44
2019-08-05T15:24:00.000Z
2022-01-31T23:11:31.000Z
app/resources/base.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2021-05-11T07:49:51.000Z
2021-05-11T07:49:51.000Z
''' Controller para fornecer dados da CEE ''' from flask_restful import Resource from service.qry_options_builder import QueryOptionsBuilder from model.thematic import Thematic class BaseResource(Resource): ''' Classe de base de resource ''' DEFAULT_SWAGGER_PARAMS = [ {"name": "valor", "required": Fals...
46.640288
94
0.608669
762
6,483
4.944882
0.334646
0.04087
0.035032
0.06104
0.34793
0.323779
0.302813
0.203291
0.173567
0.173567
0
0.001723
0.283665
6,483
138
95
46.978261
0.809647
0.034243
0
0.224
0
0.008
0.115329
0
0
0
0
0
0
1
0.04
false
0
0.024
0
0.144
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dea1d4995a7ebb956d68ed48040d475a502bb1f
2,962
py
Python
investimentos.py
isaiaspereira307/invest
ad0aa40dca4ece75fb7dad98415e73dc382f662a
[ "MIT" ]
null
null
null
investimentos.py
isaiaspereira307/invest
ad0aa40dca4ece75fb7dad98415e73dc382f662a
[ "MIT" ]
null
null
null
investimentos.py
isaiaspereira307/invest
ad0aa40dca4ece75fb7dad98415e73dc382f662a
[ "MIT" ]
null
null
null
import json import os def calculo(self): meta = float(input('valor da meta: ')) # 1000000 valorinicial = float(input('valor inicial: ')) # 5637.99 valormensal = float(input('investimento mensal: ')) # 150 dividendos = float(input('dividendos: ')) # 16.86 meta = meta - valorinicial - valormensal - d...
27.174312
61
0.609723
366
2,962
4.833333
0.31694
0.0684
0.055399
0.042962
0.278123
0.263991
0.222725
0.222725
0.222725
0.222725
0
0.0356
0.260297
2,962
109
62
27.174312
0.771794
0.035787
0
0.202128
0
0
0.152037
0
0
0
0
0
0
1
0.117021
false
0
0.021277
0
0.212766
0.095745
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dea6041225ae15383493ad1d5f6078ade49cd6b
10,718
py
Python
lib/ipython_view.py
drewp/light9
ab173a40d095051546e532962f7a33ac502943a6
[ "MIT" ]
2
2018-10-05T13:32:46.000Z
2022-01-01T22:51:20.000Z
lib/ipython_view.py
drewp/light9
ab173a40d095051546e532962f7a33ac502943a6
[ "MIT" ]
4
2021-06-08T19:33:40.000Z
2022-03-11T23:18:06.000Z
lib/ipython_view.py
drewp/light9
ab173a40d095051546e532962f7a33ac502943a6
[ "MIT" ]
null
null
null
# this version is adapted from http://wiki.ipython.org/Old_Embedding/GTK """ Backend to the console plugin. @author: Eitan Isaacson @organization: IBM Corporation @copyright: Copyright (c) 2007 IBM Corporation @license: BSD All rights reserved. This program and the accompanying materials are made available under ...
35.026144
90
0.628755
1,375
10,718
4.701091
0.236364
0.054455
0.0888
0.057859
0.308478
0.270421
0.221689
0.205136
0.182085
0.131652
0
0.012767
0.261896
10,718
305
91
35.140984
0.804323
0.074641
0
0.188235
0
0
0.037968
0.004342
0
0
0
0.003279
0
1
0.078431
false
0
0.039216
0
0.192157
0.007843
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4deba880f54b833c42a876a0e52201d76815fdfb
513
py
Python
todo/urls.py
incomparable/Django
ba2f38f694b1055215559c4ca4173c245918fabf
[ "Apache-2.0" ]
null
null
null
todo/urls.py
incomparable/Django
ba2f38f694b1055215559c4ca4173c245918fabf
[ "Apache-2.0" ]
null
null
null
todo/urls.py
incomparable/Django
ba2f38f694b1055215559c4ca4173c245918fabf
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^get', views.index, name='index'), url(r'^details/(?P<id>\w)/$', views.details, name='details'), url(r'^add', views.add, name='add'), url(r'^delete', views.delete, name='delete'), ...
28.5
65
0.598441
74
513
4.135135
0.297297
0.117647
0.091503
0.124183
0.150327
0.150327
0
0
0
0
0
0
0.157895
513
17
66
30.176471
0.708333
0.241715
0
0
0
0
0.2
0.054545
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4debda04f4303a03d05f73d0f622731078a63cdf
336
py
Python
first_steps_in_coding_and_simple_operations_and_calculations/exercise/charity_campaign.py
PetkoAndreev/Python-basics
a376362548380ae50c7c707551cb821547f44402
[ "MIT" ]
null
null
null
first_steps_in_coding_and_simple_operations_and_calculations/exercise/charity_campaign.py
PetkoAndreev/Python-basics
a376362548380ae50c7c707551cb821547f44402
[ "MIT" ]
null
null
null
first_steps_in_coding_and_simple_operations_and_calculations/exercise/charity_campaign.py
PetkoAndreev/Python-basics
a376362548380ae50c7c707551cb821547f44402
[ "MIT" ]
null
null
null
days = int(input()) sladkar = int(input()) cake = int(input()) gofreta = int(input()) pancake = int(input()) cake_price = cake*45 gofreta_price = gofreta*5.8 pancake_price = pancake*3.2 day_price = (cake_price + gofreta_price + pancake_price)*sladkar total_price = days*day_price campaign = total_price - (total_price/8)...
28
64
0.741071
51
336
4.666667
0.333333
0.168067
0.10084
0
0
0
0
0
0
0
0
0.023569
0.116071
336
12
65
28
0.777778
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dec80c0904955f695f9881970d5b2f7945e222c
9,234
py
Python
deepbiome/loss_and_metric.py
Young-won/deepbiome
644bc226f1149038d0af7203a03a77ca6e931835
[ "BSD-3-Clause" ]
4
2019-10-20T15:56:19.000Z
2021-03-17T16:48:35.000Z
deepbiome/loss_and_metric.py
Young-won/deepbiome
644bc226f1149038d0af7203a03a77ca6e931835
[ "BSD-3-Clause" ]
1
2019-11-11T22:47:57.000Z
2019-11-11T22:47:57.000Z
deepbiome/loss_and_metric.py
Young-won/deepbiome
644bc226f1149038d0af7203a03a77ca6e931835
[ "BSD-3-Clause" ]
1
2019-11-11T18:17:58.000Z
2019-11-11T18:17:58.000Z
###################################################################### ## DeepBiome ## - Loss and metrics (mse, cross-entropy) ## ## July 10. 2019 ## Youngwon (youngwon08@gmail.com) ## ## Reference ## - Keras (https://github.com/keras-team/keras) ###################################################################### i...
42.164384
144
0.594975
1,390
9,234
3.683453
0.13741
0.114258
0.092578
0.146484
0.649414
0.613086
0.471094
0.401953
0.379492
0.349609
0
0.029213
0.2141
9,234
218
145
42.357798
0.676313
0.326402
0
0.333333
0
0
0.025595
0.004088
0
0
0
0.004587
0
1
0.188034
false
0
0.068376
0.068376
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4ded2765ebba38c75e11130b9978c0647bfd5359
3,177
py
Python
Hough.py
andresgmz/Scripts-Python
1f56e5790dc9c38d9bbf5dc040ead45a8f3ca937
[ "MIT" ]
null
null
null
Hough.py
andresgmz/Scripts-Python
1f56e5790dc9c38d9bbf5dc040ead45a8f3ca937
[ "MIT" ]
null
null
null
Hough.py
andresgmz/Scripts-Python
1f56e5790dc9c38d9bbf5dc040ead45a8f3ca937
[ "MIT" ]
null
null
null
import cv2 import numpy as np import matplotlib.pyplot as plt #from matplotlib import pyplot as plt from tkinter import filedialog from tkinter import * root = Tk() root.withdraw() root.filename = filedialog.askopenfilename(initialdir = "/",title = "Select file",filetypes = (("all files",".*"),("jpg files","...
38.743902
153
0.645892
442
3,177
4.61086
0.298643
0.006869
0.035329
0.078508
0.598626
0.576546
0.576546
0.51472
0.504907
0.504907
0
0.077896
0.203966
3,177
82
154
38.743902
0.727956
0.204281
0
0.057143
0
0
0.082775
0.056604
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dee15ccda1b59264009aac028177487941365ec
3,927
py
Python
src/SentimentAnalyzer.py
IChowdhury01/Sentiment-Analyzer
0a566365eed00b0e76feb77c638579dd80f75068
[ "MIT" ]
null
null
null
src/SentimentAnalyzer.py
IChowdhury01/Sentiment-Analyzer
0a566365eed00b0e76feb77c638579dd80f75068
[ "MIT" ]
null
null
null
src/SentimentAnalyzer.py
IChowdhury01/Sentiment-Analyzer
0a566365eed00b0e76feb77c638579dd80f75068
[ "MIT" ]
null
null
null
# Binary Sentiment Analysis using Recurrent Neural Networks # Import libraries & dataset list import tensorflow as tf import tensorflow_datasets as dslist # Load Dataset print("\nLoading dataset...") # Download dataset and dataset info DATASET_CODE = 'imdb_reviews/subwords8k' # Usin...
30.679688
181
0.689585
492
3,927
5.398374
0.392276
0.021084
0.024473
0.01506
0.082078
0.082078
0.082078
0.082078
0.048946
0.048946
0
0.010071
0.216196
3,927
128
182
30.679688
0.852827
0.302012
0
0.032787
0
0
0.158159
0.008894
0
0
0
0
0
1
0.04918
false
0
0.032787
0
0.147541
0.147541
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dee9911d375f6b557bb57e2701f998ccd07ef1c
5,146
py
Python
google_image_scraping_script_for_arg.py
KuoYuHong/Shihu-Cat-Image-Recognition-System
5f184e4902fa6edb4602f01369b56ef03ad4790d
[ "MIT" ]
1
2021-11-24T14:46:06.000Z
2021-11-24T14:46:06.000Z
google_image_scraping_script_for_arg.py
KuoYuHong/Shihu-Cat-Image-Recognition-System
5f184e4902fa6edb4602f01369b56ef03ad4790d
[ "MIT" ]
null
null
null
google_image_scraping_script_for_arg.py
KuoYuHong/Shihu-Cat-Image-Recognition-System
5f184e4902fa6edb4602f01369b56ef03ad4790d
[ "MIT" ]
null
null
null
import selenium from selenium import webdriver import time import requests import os from PIL import Image import io import hashlib # All in same directory DRIVER_PATH = 'chromedriver.exe' def fetch_image_urls(query:str, max_links_to_fetch:int, wd:webdriver, sleep_between_interactions:int=0.5): def scroll_to_end...
36.496454
171
0.621842
659
5,146
4.616085
0.314112
0.029586
0.013149
0.019724
0.225181
0.177186
0.131821
0.112097
0.073636
0.04931
0
0.008679
0.283521
5,146
140
172
36.757143
0.816382
0.072678
0
0.168317
0
0.009901
0.17592
0.022742
0
0
0
0
0
1
0.029703
false
0.009901
0.09901
0
0.138614
0.158416
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4df16cb84c883d268ef0671570a73d61fad65816
1,515
py
Python
pyslowloris/utils.py
goasdsdkai/daas
78ef23b254893efca22748fe619ef22648b8c1e8
[ "MIT" ]
75
2017-06-15T05:58:02.000Z
2022-03-31T22:59:25.000Z
pyslowloris/utils.py
goasdsdkai/daas
78ef23b254893efca22748fe619ef22648b8c1e8
[ "MIT" ]
8
2017-08-25T04:14:19.000Z
2021-09-10T06:21:33.000Z
pyslowloris/utils.py
goasdsdkai/daas
78ef23b254893efca22748fe619ef22648b8c1e8
[ "MIT" ]
32
2017-03-22T22:52:26.000Z
2022-03-07T15:53:01.000Z
""" MIT License Copyright (c) 2020 Maxim Krivich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
36.95122
78
0.69769
242
1,515
4.355372
0.528926
0.083491
0.01518
0.011385
0.011385
0.011385
0.011385
0.011385
0.011385
0
0
0.020619
0.167657
1,515
40
79
37.875
0.815226
0.749835
0
0
0
0.166667
0.446866
0.316076
0
0
0
0
0
1
0.083333
false
0
0.083333
0.083333
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
4df1faa8f49c3cdacafcecb2f8765081676e89ad
5,305
py
Python
brahe/data_models/geojson.py
duncaneddy/brahe
4a1746ef3c14211b0709de6e7e34b6f52fc0e686
[ "MIT" ]
14
2019-05-29T13:36:55.000Z
2022-02-11T15:26:13.000Z
brahe/data_models/geojson.py
duncaneddy/brahe
4a1746ef3c14211b0709de6e7e34b6f52fc0e686
[ "MIT" ]
1
2020-05-27T12:14:39.000Z
2020-05-27T15:51:21.000Z
brahe/data_models/geojson.py
duncaneddy/brahe
4a1746ef3c14211b0709de6e7e34b6f52fc0e686
[ "MIT" ]
2
2019-10-24T05:20:54.000Z
2019-12-08T03:59:10.000Z
"""The geojson module provides data model classes for initialization and storing of GeoJSON objects. """ import typing import typing_extensions import pydantic import numpy as np import brahe.astro as astro import brahe.coordinates as coords import brahe.frames as frames geographic_point = pydantic.conlist(float, mi...
35.604027
121
0.604713
616
5,305
5.176948
0.204545
0.09031
0.09376
0.037629
0.634368
0.593603
0.539981
0.461587
0.38476
0.38476
0
0.01168
0.289915
5,305
149
122
35.604027
0.834882
0.154006
0
0.576087
0
0
0.139449
0
0
0
0
0
0
1
0.065217
false
0
0.076087
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4df2f7977ee6df4348bd5f199099edb4427af89e
521
py
Python
lab7/7.7.py
rikudo765/algorithms
eb78852143662bc2e42df6271e9a015cfa8ffdd1
[ "MIT" ]
1
2020-11-16T18:46:24.000Z
2020-11-16T18:46:24.000Z
lab7/7.7.py
rikudo765/algorithms
eb78852143662bc2e42df6271e9a015cfa8ffdd1
[ "MIT" ]
null
null
null
lab7/7.7.py
rikudo765/algorithms
eb78852143662bc2e42df6271e9a015cfa8ffdd1
[ "MIT" ]
null
null
null
n = int(input()) lst = list(map(int, input().split())) def sort1(arr): l = len(arr) for i in range(1, n): cur = arr[i] pos = i check = False while pos > 0: if arr[pos - 1] > cur: check = True arr[pos] = arr[pos - 1] e...
19.296296
39
0.380038
65
521
3.046154
0.461538
0.121212
0.070707
0
0
0
0
0
0
0
0
0.026022
0.483685
521
26
40
20.038462
0.710037
0
0
0
0
0
0.001919
0
0
0
0
0
0
1
0.047619
false
0
0
0
0.047619
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4df34ddd891c605f94b640242ef9b998d8ecdfb4
7,141
py
Python
CORE/engines/Gudmundsson_Constraint.py
geoffreynyaga/ostrich-project
157cd7a3c3d9014e31ef21ca21de43f04d039997
[ "MIT" ]
15
2017-11-08T10:03:26.000Z
2021-12-21T07:02:44.000Z
CORE/engines/Gudmundsson_Constraint.py
geoffreynyaga/ostrich-project
157cd7a3c3d9014e31ef21ca21de43f04d039997
[ "MIT" ]
9
2020-01-17T15:09:22.000Z
2022-03-25T19:02:05.000Z
CORE/engines/Gudmundsson_Constraint.py
geoffreynyaga/ostrich-project
157cd7a3c3d9014e31ef21ca21de43f04d039997
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ################################################################################## # File: c:\Projects\KENYA ONE PROJECT\CORE\engines\Gudmundsson_Constraint.py # # Project: c:\Projects\KENYA ONE PROJECT\CORE\engines # # Created Date: Thur...
37
88
0.555805
840
7,141
4.65119
0.354762
0.022524
0.028155
0.016637
0.197082
0.15485
0.084976
0.045559
0
0
0
0.043004
0.3064
7,141
192
89
37.192708
0.745811
0.42277
0
0.038462
0
0
0.076014
0
0
0
0
0
0
1
0.048077
false
0
0.048077
0
0.144231
0.009615
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4df5b2217528684af4f56e2341cb113e5407f9fe
3,988
py
Python
libs/blocks/tests/test_variable_filter.py
dendisuhubdy/attention-lvcsr
598d487c118e66875fdd625baa84ed29d283b800
[ "MIT" ]
295
2015-09-25T21:15:04.000Z
2022-01-13T01:16:18.000Z
libs/blocks/tests/test_variable_filter.py
shenshenzhanzhan/attention-lvcsr
598d487c118e66875fdd625baa84ed29d283b800
[ "MIT" ]
21
2015-10-28T19:06:32.000Z
2022-03-11T23:13:05.000Z
libs/blocks/tests/test_variable_filter.py
shenshenzhanzhan/attention-lvcsr
598d487c118e66875fdd625baa84ed29d283b800
[ "MIT" ]
114
2015-09-26T21:23:02.000Z
2021-11-19T02:36:41.000Z
from nose.tools import raises from blocks.bricks import Bias, Linear, Logistic from blocks.bricks.parallel import Merge from blocks.filter import VariableFilter from blocks.graph import ComputationGraph from blocks.roles import BIAS, FILTER, PARAMETER, OUTPUT from theano import tensor def test_variable_filter(): ...
34.678261
73
0.719157
490
3,988
5.710204
0.179592
0.094353
0.070765
0.096498
0.519657
0.477841
0.403145
0.305575
0.248034
0.248034
0
0.020575
0.171264
3,988
114
74
34.982456
0.826021
0.11986
0
0.27027
0
0
0.023755
0
0
0
0
0
0.22973
1
0.040541
false
0
0.094595
0
0.135135
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4df630aed0715b9f32b05663f7a43496c48ccb52
12,437
py
Python
techminer/gui/comparative_analysis.py
jdvelasq/techMiner
c611d96d2f812b0890513514d9d19787a1edfe2d
[ "MIT" ]
2
2020-09-25T02:42:34.000Z
2021-08-22T11:27:58.000Z
techminer/gui/comparative_analysis.py
jdvelasq/techMiner
c611d96d2f812b0890513514d9d19787a1edfe2d
[ "MIT" ]
1
2020-10-17T14:38:45.000Z
2020-10-17T14:50:19.000Z
techminer/gui/comparative_analysis.py
jdvelasq/techMiner
c611d96d2f812b0890513514d9d19787a1edfe2d
[ "MIT" ]
2
2019-10-14T18:05:25.000Z
2021-07-17T19:28:04.000Z
from collections import Counter import pandas as pd import ipywidgets as widgets import techminer.core.dashboard as dash from techminer.core import ( CA, Dashboard, TF_matrix, TFIDF_matrix, add_counters_to_axis, clustering, corpus_filter, exclude_terms, ) #  from techminer.core.params...
28.265909
88
0.514674
1,288
12,437
4.705745
0.160714
0.025408
0.042237
0.00693
0.378155
0.363636
0.334103
0.334103
0.310345
0.300115
0
0.009383
0.340195
12,437
439
89
28.330296
0.729223
0.054917
0
0.372549
0
0
0.06743
0
0
0
0
0
0
1
0.039216
false
0
0.022876
0.003268
0.081699
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4df876adfaa448099ddfc3311827d0272a1fac44
56,425
py
Python
WayOfTheTurtle1.0.py
BYHu-2/-
3243d3a0ccd9144573943b00ac4364dc5c320207
[ "MIT" ]
2
2021-12-25T00:04:12.000Z
2021-12-25T00:14:35.000Z
WayOfTheTurtle1.0.py
BYHu-2/Turtle
3243d3a0ccd9144573943b00ac4364dc5c320207
[ "MIT" ]
null
null
null
WayOfTheTurtle1.0.py
BYHu-2/Turtle
3243d3a0ccd9144573943b00ac4364dc5c320207
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * import qtawesome import matplotlib.pyplot as plt import csv import numpy as np import datetime import os class Stack: def __init__(self): self.items=[] def isEmpty(self): return self.i...
43.504241
208
0.572955
6,363
56,425
4.915449
0.088637
0.039997
0.024555
0.029415
0.577677
0.522077
0.464303
0.427407
0.419829
0.364709
0
0.039455
0.305556
56,425
1,297
209
43.504241
0.758754
0.004289
0
0.330645
0
0.009857
0.212652
0.051385
0
0
0
0
0
1
0.049283
false
0.000896
0.008961
0.00448
0.069892
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
4dfb10a7a1f3430a5ca4e269077867482eeda87b
762
py
Python
setup.py
cclauss/AIF360
4fb4e0d3e4ed65c9b4d7a2d5238881a04cc334c1
[ "Apache-2.0" ]
null
null
null
setup.py
cclauss/AIF360
4fb4e0d3e4ed65c9b4d7a2d5238881a04cc334c1
[ "Apache-2.0" ]
null
null
null
setup.py
cclauss/AIF360
4fb4e0d3e4ed65c9b4d7a2d5238881a04cc334c1
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup(name='aif360', version='0.1.0', description='IBM AI Fairness 360', author='aif360 developers', author_email='aif360@us.ibm.com', url='https://github.com/IBM/AIF360', ...
29.307692
83
0.57874
96
762
4.447917
0.625
0.140515
0.088993
0.140515
0
0
0
0
0
0
0
0.065972
0.244094
762
25
84
30.48
0.675347
0.098425
0
0
0
0
0.255474
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.045455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4dfbb4858f95304472fccbca8344763f96bb417e
1,788
py
Python
engine.py
kevioconnor/day0
6a72bf55dba1021850b810e647c87cb53ef86763
[ "MIT" ]
null
null
null
engine.py
kevioconnor/day0
6a72bf55dba1021850b810e647c87cb53ef86763
[ "MIT" ]
null
null
null
engine.py
kevioconnor/day0
6a72bf55dba1021850b810e647c87cb53ef86763
[ "MIT" ]
null
null
null
from __future__ import annotations import lzma, pickle from typing import TYPE_CHECKING from numpy import e from tcod.console import Console from tcod.map import compute_fov import exceptions, render_functions from message_log import MessageLog if TYPE_CHECKING: from entity import Actor from game_map import...
33.111111
117
0.657718
234
1,788
4.824786
0.401709
0.049601
0.058459
0.026572
0.031887
0
0
0
0
0
0
0.014126
0.247763
1,788
53
118
33.735849
0.825279
0
0
0
0
0
0.007271
0
0
0
0
0
0
1
0.116279
false
0.023256
0.232558
0
0.418605
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
15005a003729bb6329d26f74028fc03fd8df4427
3,495
py
Python
examples/other/text_frontend/test_g2p.py
zh794390558/DeepSpeech
34178893327ad359cb816e55d7c66a10244fa08a
[ "Apache-2.0" ]
null
null
null
examples/other/text_frontend/test_g2p.py
zh794390558/DeepSpeech
34178893327ad359cb816e55d7c66a10244fa08a
[ "Apache-2.0" ]
null
null
null
examples/other/text_frontend/test_g2p.py
zh794390558/DeepSpeech
34178893327ad359cb816e55d7c66a10244fa08a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 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 appli...
35.30303
77
0.640343
502
3,495
4.266932
0.342629
0.023343
0.016807
0.019608
0.213819
0.167134
0.143791
0.123249
0.123249
0.088702
0
0.011994
0.236624
3,495
98
78
35.663265
0.785232
0.185694
0
0.140845
0
0
0.090074
0
0
0
0
0
0.014085
1
0.042254
false
0
0.070423
0
0.140845
0.014085
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
15011a09f8a6b93bb0cb155a2b3d2cf4e30e89b7
530
py
Python
data_split.py
DataXujing/ExtremeNet-Pytorch
fc8bf91cb748c144e85d2de271aea117ea54e808
[ "BSD-3-Clause" ]
9
2020-01-15T05:54:54.000Z
2021-12-08T06:01:37.000Z
data_split.py
DataXujing/ExtremeNet-Pytorch
fc8bf91cb748c144e85d2de271aea117ea54e808
[ "BSD-3-Clause" ]
3
2020-12-01T10:26:19.000Z
2021-01-20T07:51:47.000Z
data_split.py
DataXujing/ExtremeNet-Pytorch
fc8bf91cb748c144e85d2de271aea117ea54e808
[ "BSD-3-Clause" ]
3
2020-03-31T14:40:08.000Z
2021-02-22T07:49:34.000Z
# VOC分割训练集和测试集 import os import random import shutil trainval_percent = 0.1 train_percent = 0.9 imgfilepath = '../myData/JPEGImages' #原数据存放地 total_img = os.listdir(imgfilepath) sample_num = len(total_img) trains = random.sample(total_img,int(sample_num*train_percent)) for file in total_img: if file in trains...
17.096774
86
0.711321
75
530
4.906667
0.466667
0.086957
0.065217
0.086957
0.277174
0.277174
0.277174
0.277174
0.277174
0.277174
0
0.008969
0.158491
530
30
87
17.666667
0.816144
0.033962
0
0
0
0
0.142292
0.102767
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1504effc59c426c8cdd37004ed34fbfb801a2d4e
8,619
py
Python
utils/models.py
miladalipour99/time_series_augmentation
3c314468df689a70e84ae6b433f9cdf5bae63400
[ "Apache-2.0" ]
140
2020-04-21T05:01:42.000Z
2022-03-30T20:03:21.000Z
utils/models.py
miladalipour99/time_series_augmentation
3c314468df689a70e84ae6b433f9cdf5bae63400
[ "Apache-2.0" ]
5
2021-06-08T01:43:46.000Z
2021-12-22T11:37:28.000Z
utils/models.py
miladalipour99/time_series_augmentation
3c314468df689a70e84ae6b433f9cdf5bae63400
[ "Apache-2.0" ]
32
2020-04-26T14:00:58.000Z
2022-03-09T01:25:32.000Z
from tensorflow.keras.models import Model from tensorflow.keras.layers import Dense, Flatten, Dropout, Input from tensorflow.keras.layers import MaxPooling1D, Conv1D from tensorflow.keras.layers import LSTM, Bidirectional from tensorflow.keras.layers import BatchNormalization, GlobalAveragePooling1D, Permute, concatena...
31.922222
257
0.647987
1,147
8,619
4.764603
0.216216
0.078683
0.046112
0.065325
0.690027
0.640805
0.586093
0.520586
0.520586
0.509973
0
0.043355
0.221255
8,619
270
258
31.922222
0.770113
0.211625
0
0.551515
0
0
0.061375
0
0
0
0
0
0
1
0.066667
false
0
0.042424
0
0.175758
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1504fcdc48e346e97fc1b686d7489c610536fa41
2,468
py
Python
ai_flow/test/util/test_sqlalchemy_db.py
flink-extended/ai-flow
d1427a243097d94d77fedbe1966500ae26975a13
[ "Apache-2.0" ]
79
2021-10-15T07:32:27.000Z
2022-03-28T04:10:19.000Z
ai_flow/test/util/test_sqlalchemy_db.py
flink-extended/ai-flow
d1427a243097d94d77fedbe1966500ae26975a13
[ "Apache-2.0" ]
153
2021-10-15T05:23:46.000Z
2022-02-23T06:07:10.000Z
ai_flow/test/util/test_sqlalchemy_db.py
flink-extended/ai-flow
d1427a243097d94d77fedbe1966500ae26975a13
[ "Apache-2.0" ]
23
2021-10-15T02:36:37.000Z
2022-03-17T02:59:27.000Z
# Copyright 2022 The AI Flow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
29.73494
67
0.724878
358
2,468
4.734637
0.318436
0.066077
0.070796
0.100295
0.426549
0.422419
0.388201
0.388201
0.381121
0.381121
0
0.010479
0.188006
2,468
82
68
30.097561
0.835329
0.224878
0
0.395833
0
0
0.032683
0
0
0
0
0
0.1875
1
0.1875
false
0
0.104167
0.041667
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
15073013e66266b93b368bf7d20e3350da16c0c6
1,139
py
Python
comm.py
thedognexttothetrashcan/spi_tmall
021dc9a6a23841373000a5f09ca300abd376ad15
[ "Apache-2.0" ]
null
null
null
comm.py
thedognexttothetrashcan/spi_tmall
021dc9a6a23841373000a5f09ca300abd376ad15
[ "Apache-2.0" ]
null
null
null
comm.py
thedognexttothetrashcan/spi_tmall
021dc9a6a23841373000a5f09ca300abd376ad15
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python # encoding=utf-8 import os import datetime,time from selenium import webdriver import config import threading import numpy as np def writelog(msg,log): nt=datetime.datetime.now().strftime('%Y-%m-%d %H-%M-%S') text="[%s] %s " % (nt,msg) os.system("echo %s >> %s" % (text.encode('utf8'),l...
21.903846
73
0.637401
162
1,139
4.401235
0.530864
0.025245
0.033661
0.042076
0.047686
0
0
0
0
0
0
0.013636
0.227392
1,139
51
74
22.333333
0.796591
0.046532
0
0.052632
0
0
0.05268
0
0
0
0
0
0
1
0.105263
false
0
0.157895
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
15077392ea3f2519132c06a08d94b11524ea1c19
1,584
py
Python
sherlockpipe/objectinfo/preparer/LightcurveBuilder.py
LuisCerdenoMota/SHERLOCK
5fb52795d3ab44e27bc7dbc6f2c2e6c214995ba1
[ "MIT" ]
null
null
null
sherlockpipe/objectinfo/preparer/LightcurveBuilder.py
LuisCerdenoMota/SHERLOCK
5fb52795d3ab44e27bc7dbc6f2c2e6c214995ba1
[ "MIT" ]
null
null
null
sherlockpipe/objectinfo/preparer/LightcurveBuilder.py
LuisCerdenoMota/SHERLOCK
5fb52795d3ab44e27bc7dbc6f2c2e6c214995ba1
[ "MIT" ]
null
null
null
import re from abc import ABC, abstractmethod from sherlockpipe.star.EpicStarCatalog import EpicStarCatalog from sherlockpipe.star.KicStarCatalog import KicStarCatalog from sherlockpipe.star.TicStarCatalog import TicStarCatalog class LightcurveBuilder(ABC): OBJECT_ID_REGEX = "^(KIC|TIC|EPIC)[-_ ]([0-9]+)$" NU...
38.634146
91
0.674874
198
1,584
5.10101
0.257576
0.110891
0.089109
0.079208
0.311881
0.246535
0.069307
0
0
0
0
0.014458
0.214015
1,584
41
92
38.634146
0.796787
0
0
0
0
0
0.063091
0
0
0
0
0
0
1
0.083333
false
0.027778
0.138889
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1507c96d9d4f256bc65da807cd5af86c8c25fb94
6,371
py
Python
dft/dft-hartree-hydrogen.py
marvinfriede/projects
7050cd76880c8ff0d9de17b8676e82f1929a68e0
[ "MIT" ]
null
null
null
dft/dft-hartree-hydrogen.py
marvinfriede/projects
7050cd76880c8ff0d9de17b8676e82f1929a68e0
[ "MIT" ]
3
2021-04-14T20:15:26.000Z
2021-04-14T20:20:54.000Z
dft/dft-hartree-hydrogen.py
marvinfriede/projects
7050cd76880c8ff0d9de17b8676e82f1929a68e0
[ "MIT" ]
null
null
null
#!/bin/env python3 # coding: utf8 ''' My implementation of DFT Assignment 5.1: Hartree energy for H-atom GS Taught by René Wirnata in 2019/2020. Links: https://tu-freiberg.de/fakultaet2/thph/lehre/density-functional-theory https://github.com/PandaScience/teaching-resources This script uses the last assignment's ...
30.777778
86
0.644169
1,056
6,371
3.79072
0.28125
0.029978
0.007494
0.021234
0.183862
0.11941
0.088434
0.088434
0.061454
0.061454
0
0.03554
0.196202
6,371
206
87
30.927184
0.746143
0.387066
0
0.056075
0
0
0.128004
0.022989
0
0
0
0
0
1
0.11215
false
0
0.046729
0.018692
0.261682
0.056075
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1507f85202e8ecdff0fe986b123a48f1bb2bac41
18,714
py
Python
workflow & analyses notebooks/fukushima_telomere_methods.py
Jared-Luxton/Fukushima-Nuclear-Disaster-Humans
1cb84f63172005f3bd8947d2bca041deaeec90e8
[ "MIT" ]
null
null
null
workflow & analyses notebooks/fukushima_telomere_methods.py
Jared-Luxton/Fukushima-Nuclear-Disaster-Humans
1cb84f63172005f3bd8947d2bca041deaeec90e8
[ "MIT" ]
null
null
null
workflow & analyses notebooks/fukushima_telomere_methods.py
Jared-Luxton/Fukushima-Nuclear-Disaster-Humans
1cb84f63172005f3bd8947d2bca041deaeec90e8
[ "MIT" ]
1
2021-05-23T22:06:17.000Z
2021-05-23T22:06:17.000Z
import numpy as np import pandas as pd import os import matplotlib.pyplot as plt from sklearn import datasets, linear_model from difflib import SequenceMatcher import seaborn as sns from statistics import mean from ast import literal_eval from scipy import stats from sklearn.linear_model import LinearRegression from s...
35.850575
125
0.589879
2,704
18,714
3.934911
0.192678
0.015789
0.007519
0.003008
0.363346
0.295583
0.246429
0.204417
0.176222
0.171053
0
0.03991
0.267607
18,714
522
126
35.850575
0.736393
0.092925
0
0.125714
0
0.014286
0.104434
0.00521
0
0
0
0
0
1
0.068571
false
0
0.042857
0
0.185714
0.045714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1508aa76e743b64f436cbb0a8c19cf6751c48d1b
4,684
py
Python
src/xia2/cli/report.py
graeme-winter/xia2
e00d688137d4ddb4b125be9a3f37ae00265886c2
[ "BSD-3-Clause" ]
10
2015-10-30T06:36:55.000Z
2021-12-10T20:06:22.000Z
src/xia2/cli/report.py
graeme-winter/xia2
e00d688137d4ddb4b125be9a3f37ae00265886c2
[ "BSD-3-Clause" ]
528
2015-11-24T08:20:12.000Z
2022-03-21T21:47:29.000Z
src/xia2/cli/report.py
graeme-winter/xia2
e00d688137d4ddb4b125be9a3f37ae00265886c2
[ "BSD-3-Clause" ]
14
2016-03-15T22:07:03.000Z
2020-12-14T07:13:35.000Z
import json import os import sys from collections import OrderedDict import iotbx.phil import xia2.Handlers.Streams from dials.util.options import OptionParser from jinja2 import ChoiceLoader, Environment, PackageLoader from xia2.Modules.Report import Report from xia2.XIA2Version import Version phil_scope = iotbx.phi...
28.216867
87
0.637916
561
4,684
5.048128
0.313725
0.036723
0.037076
0.04096
0.203743
0.147599
0.108757
0.074153
0.074153
0.050847
0
0.005737
0.255764
4,684
165
88
28.387879
0.806655
0.001494
0
0.111111
0
0
0.120914
0.04635
0
0
0
0
0
1
0.015873
false
0
0.079365
0
0.103175
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
150e69b2f9539045223d00d448f50c262f488903
1,874
py
Python
attackMain.py
saurabhK99/substitution-cipher
dcf69cd4866ce7408eda6faf03ddd9b601bc3fec
[ "MIT" ]
null
null
null
attackMain.py
saurabhK99/substitution-cipher
dcf69cd4866ce7408eda6faf03ddd9b601bc3fec
[ "MIT" ]
null
null
null
attackMain.py
saurabhK99/substitution-cipher
dcf69cd4866ce7408eda6faf03ddd9b601bc3fec
[ "MIT" ]
null
null
null
from tkinter import * from attack import * #calls letter frequency attack def attack(on, cipherTxt): plainTxt = str() attack = LetterFrequencyAttack(cipherTxt, on) for i in range(10): plainTxt = plainTxt + attack.attack() + '\n\n' answer.config(text = plainTxt) #defining main wi...
23.425
72
0.657417
235
1,874
5.204255
0.404255
0.034342
0.042518
0.017989
0.086672
0.039248
0
0
0
0
0
0.033625
0.20651
1,874
79
73
23.721519
0.788837
0.139808
0
0.101695
0
0
0.167187
0.052402
0
0
0
0
0
1
0.016949
false
0
0.033898
0
0.050847
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1512acbfbf9725f996d722bba323e798347b6270
2,407
py
Python
examples/example_pipeline.py
madconsulting/datanectar
7177b907c72c92de31fb136740f33c509ed5d499
[ "Unlicense" ]
null
null
null
examples/example_pipeline.py
madconsulting/datanectar
7177b907c72c92de31fb136740f33c509ed5d499
[ "Unlicense" ]
null
null
null
examples/example_pipeline.py
madconsulting/datanectar
7177b907c72c92de31fb136740f33c509ed5d499
[ "Unlicense" ]
null
null
null
import os import datetime from pathlib import Path import pandas as pd import luigi PROCESSED_DIR = 'processed' ROLLUP_DIR = 'rollups' class PrepareDataTask(luigi.Task): def __init__(self): super().__init__() self.last_processed_id = 0 if os.path.exists('last_processed_id.txt'): ...
28.317647
93
0.617366
310
2,407
4.541935
0.306452
0.051136
0.085227
0.053977
0.174716
0.144886
0.107955
0.107955
0.069602
0.069602
0
0.003392
0.26506
2,407
84
94
28.654762
0.792538
0.080183
0
0.145455
0
0
0.158802
0.112976
0
0
0
0
0
1
0.145455
false
0
0.090909
0.072727
0.4
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
15136d40366243c73182b9f6916a6c550042f55f
1,124
py
Python
kukur/config.py
timeseer-ai/kukur
28210ff0bde396d961b60828782fef56e326b319
[ "ECL-2.0", "Apache-2.0" ]
2
2021-09-12T08:29:30.000Z
2022-01-19T19:06:45.000Z
kukur/config.py
timeseer-ai/kukur
28210ff0bde396d961b60828782fef56e326b319
[ "ECL-2.0", "Apache-2.0" ]
34
2021-03-16T08:21:01.000Z
2022-03-21T07:30:28.000Z
kukur/config.py
timeseer-ai/kukur
28210ff0bde396d961b60828782fef56e326b319
[ "ECL-2.0", "Apache-2.0" ]
1
2021-09-12T08:29:34.000Z
2021-09-12T08:29:34.000Z
"""Read the Kukur configuration.""" # SPDX-FileCopyrightText: 2021 Timeseer.AI # # SPDX-License-Identifier: Apache-2.0 import glob import toml class InvalidIncludeException(Exception): """Raised when the include configuration is invalid.""" def __init__(self, message: str): Exception.__init__(self, ...
32.114286
71
0.598754
130
1,124
5.053846
0.446154
0.063927
0.042618
0.063927
0.066971
0
0
0
0
0
0
0.007547
0.292705
1,124
34
72
33.058824
0.818868
0.19484
0
0.090909
0
0
0.066516
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1514c4cab7976c14d2d2ff2686c1ed82e350d931
3,326
py
Python
scheduletest.py
ambimanus/appsim
8f60b3a736af8aa7f03435c28aef2685a3dbfbe3
[ "MIT" ]
null
null
null
scheduletest.py
ambimanus/appsim
8f60b3a736af8aa7f03435c28aef2685a3dbfbe3
[ "MIT" ]
null
null
null
scheduletest.py
ambimanus/appsim
8f60b3a736af8aa7f03435c28aef2685a3dbfbe3
[ "MIT" ]
null
null
null
import time from datetime import datetime import numpy as np from matplotlib import pyplot as plt from matplotlib.dates import epoch2num import device_factory if __name__ == '__main__': amount = 50 devices = [] for i in range(amount): device = device_factory.ecopower_4(i, i) ...
35.010526
88
0.585989
468
3,326
4.066239
0.25
0.067262
0.047294
0.078823
0.376248
0.361534
0.2701
0.232265
0.232265
0.232265
0
0.032666
0.26368
3,326
94
89
35.382979
0.744385
0.159651
0
0.203125
0
0
0.028678
0
0
0
0
0
0
1
0
false
0
0.09375
0
0.09375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1516d58cc828bc371a33c9b4a9ca474fdb7eba79
8,637
py
Python
lite/tests/unittest_py/pass/test_conv_elementwise_fuser_pass.py
714627034/Paddle-Lite
015ba88a4d639db0b73603e37f83e47be041a4eb
[ "Apache-2.0" ]
808
2018-04-17T17:43:12.000Z
2019-08-18T07:39:13.000Z
lite/tests/unittest_py/pass/test_conv_elementwise_fuser_pass.py
714627034/Paddle-Lite
015ba88a4d639db0b73603e37f83e47be041a4eb
[ "Apache-2.0" ]
728
2018-04-18T08:15:25.000Z
2019-08-16T07:14:43.000Z
lite/tests/unittest_py/pass/test_conv_elementwise_fuser_pass.py
714627034/Paddle-Lite
015ba88a4d639db0b73603e37f83e47be041a4eb
[ "Apache-2.0" ]
364
2018-04-18T17:05:02.000Z
2019-08-18T03:25:38.000Z
# Copyright (c) 2021 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 appli...
40.359813
125
0.554706
910
8,637
5.028571
0.235165
0.022946
0.024476
0.04458
0.349869
0.298733
0.199301
0.145979
0.11757
0.11757
0
0.022492
0.341091
8,637
213
126
40.549296
0.781585
0.074447
0
0.283333
0
0
0.052651
0.004012
0
0
0
0.004695
0
1
0.033333
false
0.033333
0.061111
0.005556
0.116667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1518a255b1570670a775245440b45ebe73fe295d
6,672
py
Python
HDF4_H5_NETCDF/source2.7/h5py/tests/hl/test_datatype.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
31
2018-10-19T15:28:36.000Z
2022-02-14T03:01:25.000Z
h5py/tests/hl/test_datatype.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
13
2020-01-28T22:20:14.000Z
2022-03-11T23:20:14.000Z
h5py/tests/hl/test_datatype.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
10
2019-01-10T04:02:12.000Z
2021-11-17T01:52:15.000Z
""" Tests for the h5py.Datatype class. """ from __future__ import absolute_import from itertools import count import numpy as np import h5py from ..common import ut, TestCase class TestVlen(TestCase): """ Check that storage of vlen strings is carried out correctly. """ def assertVlenArrayEq...
33.527638
78
0.508243
828
6,672
3.992754
0.192029
0.023291
0.038717
0.030853
0.424077
0.384453
0.330611
0.244102
0.193587
0.1585
0
0.02928
0.329436
6,672
198
79
33.69697
0.709656
0.034323
0
0.28
0
0
0.051214
0
0
0
0
0
0.133333
1
0.073333
false
0
0.033333
0.013333
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
151937c4e4552fde0563a4d7a5da8405bfdf819f
2,278
py
Python
conmon/regex.py
flashdagger/conmon
c6e75f115ad104ea7ecc7b14618efadefadad2f8
[ "MIT" ]
null
null
null
conmon/regex.py
flashdagger/conmon
c6e75f115ad104ea7ecc7b14618efadefadad2f8
[ "MIT" ]
null
null
null
conmon/regex.py
flashdagger/conmon
c6e75f115ad104ea7ecc7b14618efadefadad2f8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- import re from typing import Pattern, Tuple, Iterator, Match, Union, Optional, List, Dict from conmon.conan import storage_path DECOLORIZE_REGEX = re.compile(r"[\u001b]\[\d{1,2}m", re.UNICODE) CONAN_DATA_PATH = re.compile( r"""(?x) (?P<path> ([a-z...
28.475
87
0.565847
288
2,278
4.381944
0.378472
0.027734
0.055468
0.035658
0
0
0
0
0
0
0
0.011723
0.251097
2,278
79
88
28.835443
0.728019
0.069798
0
0.076923
0
0
0.201302
0.065111
0
0
0
0
0
1
0.076923
false
0
0.057692
0
0.192308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
15195236d745c09ce968bf6af2311b1a616e1824
5,089
py
Python
src/north/cli/gscli/main.py
falcacicd/goldstone-mgmt
e7348011180e3c2dcd0558636ddc5c21779c7a3f
[ "Apache-2.0" ]
null
null
null
src/north/cli/gscli/main.py
falcacicd/goldstone-mgmt
e7348011180e3c2dcd0558636ddc5c21779c7a3f
[ "Apache-2.0" ]
null
null
null
src/north/cli/gscli/main.py
falcacicd/goldstone-mgmt
e7348011180e3c2dcd0558636ddc5c21779c7a3f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sysrepo as sr import argparse from prompt_toolkit import PromptSession from prompt_toolkit.key_binding import KeyBindings from prompt_toolkit.completion import Completer import sys import os import logging import asyncio from .base import Object, InvalidInput, BreakLoop from .onlp impo...
28.751412
118
0.592847
588
5,089
4.97619
0.294218
0.030075
0.017772
0.010253
0.082023
0.069036
0.047163
0.047163
0
0
0
0.003033
0.287286
5,089
176
119
28.914773
0.803695
0.101395
0
0.080645
0
0
0.053497
0.00877
0
0
0
0.005682
0
1
0.08871
false
0
0.096774
0.016129
0.282258
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1519c99cb202a036f7cd0c6cfb24bf58a516d62b
602
py
Python
ClassMethod.py
AdarshKvT/python-oop
b619226807c3a0b434fe9789952cc86dc8cde9b7
[ "Apache-2.0" ]
null
null
null
ClassMethod.py
AdarshKvT/python-oop
b619226807c3a0b434fe9789952cc86dc8cde9b7
[ "Apache-2.0" ]
null
null
null
ClassMethod.py
AdarshKvT/python-oop
b619226807c3a0b434fe9789952cc86dc8cde9b7
[ "Apache-2.0" ]
null
null
null
class Person: number_of_people = 0 def __init__(self, name): print("__init__ initiated") self.name = name print("calling add_person()") Person.add_person() @classmethod def num_of_people(cls): print("initiating num_of_person()") return cls.number_of_peo...
20.066667
43
0.647841
77
602
4.753247
0.441558
0.10929
0.114754
0.092896
0
0
0
0
0
0
0
0.00883
0.247508
602
29
44
20.758621
0.799117
0.146179
0
0.111111
0
0
0.168627
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0.277778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
151a77fa24452704d617da768baec7d8f8f8b186
2,668
py
Python
utilities/jaccard_utilities.py
jjc2718/netreg
292540e911cdfbe18ff6fe0f9bfe8e055053d23c
[ "BSD-3-Clause" ]
null
null
null
utilities/jaccard_utilities.py
jjc2718/netreg
292540e911cdfbe18ff6fe0f9bfe8e055053d23c
[ "BSD-3-Clause" ]
6
2019-07-12T15:52:31.000Z
2020-01-13T18:14:41.000Z
utilities/jaccard_utilities.py
jjc2718/netreg
292540e911cdfbe18ff6fe0f9bfe8e055053d23c
[ "BSD-3-Clause" ]
1
2019-07-18T18:28:59.000Z
2019-07-18T18:28:59.000Z
import os import itertools as it import pandas as pd def compute_jaccard(v1, v2): v1, v2 = set(v1), set(v2) intersection = v1.intersection(v2) union = v1.union(v2) return ((len(intersection) / len(union) if len(union) != 0 else 0), len(intersection), len(union)) def get_inter_m...
44.466667
110
0.642054
396
2,668
3.896465
0.121212
0.103694
0.124433
0.155541
0.489955
0.426442
0.316267
0.13221
0.084251
0.084251
0
0.038249
0.255247
2,668
59
111
45.220339
0.738299
0.013868
0
0.08
0
0
0.004566
0
0
0
0
0
0
1
0.06
false
0
0.06
0
0.18
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0