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
80eb9de023cd6936eabda295cdecf52af930ed93
3,836
py
Python
App/Graphic/app.py
Joey-Boivin/newegg-tracker
a0ed9337903d0b0a32ddb5713e79313eaf972e28
[ "MIT" ]
null
null
null
App/Graphic/app.py
Joey-Boivin/newegg-tracker
a0ed9337903d0b0a32ddb5713e79313eaf972e28
[ "MIT" ]
null
null
null
App/Graphic/app.py
Joey-Boivin/newegg-tracker
a0ed9337903d0b0a32ddb5713e79313eaf972e28
[ "MIT" ]
null
null
null
""" This is the module containing the graphical user interface for my Newegg tracker application """ from tkinter import * from tkinter import ttk import webbrowser from PIL import ImageTk, Image #Tkinter's image management is outdated root = Tk() root.config(bg="#2D2D2D") root.title("Newegg tracker by Joey-Boivin ...
33.649123
147
0.62122
494
3,836
4.661943
0.307692
0.031264
0.017369
0.030395
0.217977
0.133739
0.095528
0.095528
0.095528
0.050369
0
0.02152
0.248957
3,836
113
148
33.946903
0.777855
0.104536
0
0
0
0
0.083083
0.012298
0
0
0
0
0
1
0.059701
false
0
0.059701
0
0.149254
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80ec147109819e66e84d7d1ec4c6fd44c7807724
1,344
py
Python
MultiLevelForecast/TwoDayAhead/SeasonalPredict.py
AmateurZhang/EnjoyWithDataOnPowerSystems
64227d0505012d2b5650874c65268e85d9751a17
[ "MIT" ]
null
null
null
MultiLevelForecast/TwoDayAhead/SeasonalPredict.py
AmateurZhang/EnjoyWithDataOnPowerSystems
64227d0505012d2b5650874c65268e85d9751a17
[ "MIT" ]
null
null
null
MultiLevelForecast/TwoDayAhead/SeasonalPredict.py
AmateurZhang/EnjoyWithDataOnPowerSystems
64227d0505012d2b5650874c65268e85d9751a17
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Nov 5 21:31:02 2017 @author: thuzhang """ import numpy as np import pandas as pd from matplotlib import pyplot as plt from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestRegressor from sklearn.ensemble import GradientBoostingRegres...
24.888889
72
0.770833
218
1,344
4.56422
0.43578
0.045226
0.035176
0.052261
0.074372
0.074372
0.074372
0.074372
0.074372
0.074372
0
0.022727
0.083333
1,344
54
73
24.888889
0.784903
0.081845
0
0
0
0
0.088907
0.049755
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80ed64fdce9e1b564ee1842e39bc09c80184b169
3,072
py
Python
goto_cloud/migration_commander/tests/test_filesystem_mounting.py
jdepoix/goto_cloud
59bb9923026e1b1dc6e8e08fb6b21300c8e8854a
[ "MIT" ]
2
2018-02-04T23:22:17.000Z
2019-04-15T12:06:04.000Z
goto_cloud/migration_commander/tests/test_filesystem_mounting.py
jdepoix/goto_cloud
59bb9923026e1b1dc6e8e08fb6b21300c8e8854a
[ "MIT" ]
null
null
null
goto_cloud/migration_commander/tests/test_filesystem_mounting.py
jdepoix/goto_cloud
59bb9923026e1b1dc6e8e08fb6b21300c8e8854a
[ "MIT" ]
null
null
null
from unittest.mock import patch, Mock from remote_host_event_logging.public import RemoteHostEventLogger from ..filesystem_mounting import FilesystemMountCommand from ..device_identification import DeviceIdentificationCommand from .utils import MigrationCommanderTestCase class TestFilesystemMountCommand(MigrationC...
34.909091
88
0.624349
268
3,072
6.865672
0.335821
0.045652
0.06087
0.043478
0.568478
0.501087
0.475
0.439674
0.407065
0.352717
0
0.038031
0.272461
3,072
87
89
35.310345
0.785235
0
0
0.471429
0
0
0.215495
0.130208
0
0
0
0
0.114286
1
0.071429
false
0
0.071429
0
0.157143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80f056ed61bb17bd4239371c1a53a38aef1a13a6
7,416
py
Python
curvipy/graphing_calculator.py
dylannalex/curvipy
04a03ae270051503cdb583ce0545152eb555a01f
[ "MIT" ]
27
2022-02-22T03:09:22.000Z
2022-03-20T21:12:52.000Z
curvipy/graphing_calculator.py
dylannalex/curvipy
04a03ae270051503cdb583ce0545152eb555a01f
[ "MIT" ]
null
null
null
curvipy/graphing_calculator.py
dylannalex/curvipy
04a03ae270051503cdb583ce0545152eb555a01f
[ "MIT" ]
null
null
null
from typing import Any, Callable from math import sqrt, sin, acos, cos, pi import turtle def _is_int(result: Any) -> bool: try: int(result) return True except Exception: return False def _is_float(result: Any) -> bool: try: float(result) return True except Exc...
31.159664
85
0.58603
928
7,416
4.408405
0.150862
0.061599
0.034221
0.034221
0.436324
0.356881
0.340259
0.282083
0.257639
0.215106
0
0.017554
0.324029
7,416
237
86
31.291139
0.798524
0.162352
0
0.310976
0
0
0.013745
0
0
0
0
0
0
1
0.067073
false
0
0.018293
0
0.121951
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80f09cadf4fef85309af1bc1f2bfff6d59c73d5d
6,820
py
Python
hybridq/noise/channel/utils.py
jsmarsha11/hybridq-nasa
42f2998a059e5615dce6ccdbf7ae6dc4954bbce9
[ "Apache-2.0" ]
null
null
null
hybridq/noise/channel/utils.py
jsmarsha11/hybridq-nasa
42f2998a059e5615dce6ccdbf7ae6dc4954bbce9
[ "Apache-2.0" ]
null
null
null
hybridq/noise/channel/utils.py
jsmarsha11/hybridq-nasa
42f2998a059e5615dce6ccdbf7ae6dc4954bbce9
[ "Apache-2.0" ]
null
null
null
""" Authors: Salvatore Mandra (salvatore.mandra@nasa.gov), Jeffrey Marshall (jeffrey.s.marshall@nasa.gov) Copyright © 2021, United States Government, as represented by the Administrator of the National Aeronautics and Space Administration. All rights reserved. The HybridQ: A Hybrid Simulator for Quantum Circ...
34.795918
79
0.630645
1,010
6,820
4.20297
0.265347
0.018139
0.02073
0.007538
0.163251
0.139929
0.113545
0.104123
0.08669
0.08669
0
0.009057
0.255279
6,820
195
80
34.974359
0.826541
0.405132
0
0.044944
0
0
0.074557
0
0
0
0
0
0.022472
1
0.05618
false
0
0.022472
0
0.146067
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80f1c40e1c743906487eb873e07151031bc687f3
10,299
py
Python
parser/team23/instruccion/insert_into.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/team23/instruccion/insert_into.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/team23/instruccion/insert_into.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
from abstract.instruccion import * from tools.console_text import * from tools.tabla_tipos import * from tools.tabla_simbolos import * from storage import jsonMode as funciones from error.errores import * from instruccion.P_Key import * from instruccion.F_Key import * from instruccion.unique_simple import * from instru...
50.239024
240
0.585202
1,265
10,299
4.594466
0.161265
0.049209
0.0468
0.050585
0.461287
0.430489
0.402099
0.38627
0.333792
0.265485
0
0.020777
0.31304
10,299
205
241
50.239024
0.800707
0.063113
0
0.161677
0
0.035928
0.202656
0
0
0
0
0
0
1
0.017964
false
0
0.071856
0
0.209581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80f7bc024b85ee0e8080b2883866b323df39445c
3,771
py
Python
gym_modular/sensors/gripper_velocity_2d_sensor.py
TimSchneider42/mbpo
736ba90bbdaddb2a40a6233bc0b78da72235100a
[ "MIT" ]
null
null
null
gym_modular/sensors/gripper_velocity_2d_sensor.py
TimSchneider42/mbpo
736ba90bbdaddb2a40a6233bc0b78da72235100a
[ "MIT" ]
null
null
null
gym_modular/sensors/gripper_velocity_2d_sensor.py
TimSchneider42/mbpo
736ba90bbdaddb2a40a6233bc0b78da72235100a
[ "MIT" ]
null
null
null
from typing import Dict, Tuple, List import numpy as np from .continuous_sensor import ContinuousSensor from ..ball_placing_task import BallPlacingTask class GripperVelocity2DSensor(ContinuousSensor[BallPlacingTask]): def __init__(self, robot_name: str, linear_limit_lower: np.ndarray, linear_limit_upper: np.nda...
49.618421
118
0.664015
442
3,771
5.255656
0.226244
0.047353
0.034438
0.030994
0.321997
0.229014
0.141627
0.092553
0.074042
0
0
0.007779
0.250066
3,771
75
119
50.28
0.813649
0.122779
0
0.155172
0
0
0.115929
0.071033
0
0
0
0
0.034483
1
0.103448
false
0
0.068966
0.034483
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80fa599a04868da515185f5ef67ddee93b107047
19,434
py
Python
src/transe.py
DanielSun94/kgenlu
bbf377c6740040cb1a8b656785e7c5bfdb8371d5
[ "MIT" ]
null
null
null
src/transe.py
DanielSun94/kgenlu
bbf377c6740040cb1a8b656785e7c5bfdb8371d5
[ "MIT" ]
null
null
null
src/transe.py
DanielSun94/kgenlu
bbf377c6740040cb1a8b656785e7c5bfdb8371d5
[ "MIT" ]
null
null
null
# the source codes of transE are from https://github.com/mklimasz/TransE-PyTorch from absl import app from absl import flags import os import numpy as np import torch.optim as optim from torch.utils import data as torch_data from torch.utils import tensorboard from collections import Counter from torch.utils import dat...
45.727059
120
0.679016
2,533
19,434
4.96289
0.14094
0.01241
0.006364
0.014
0.337046
0.291464
0.233076
0.21478
0.180574
0.150664
0
0.019029
0.215807
19,434
424
121
45.834906
0.80584
0.120408
0
0.115132
0
0
0.074756
0.010417
0
0
0
0
0.016447
1
0.072368
false
0
0.046053
0.006579
0.190789
0.019737
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80fb338cada946f58190ce2610fb07b263d9785b
5,361
py
Python
arctic_cruise/saildrone_sentinel2_true_color_image_each_usv.py
agonmer/Saildrone
47e618390be6ef160382bd22bb3bdf2482a8644a
[ "Apache-2.0" ]
3
2019-07-08T11:55:44.000Z
2021-10-06T15:11:18.000Z
arctic_cruise/saildrone_sentinel2_true_color_image_each_usv.py
agonmer/Saildrone
47e618390be6ef160382bd22bb3bdf2482a8644a
[ "Apache-2.0" ]
null
null
null
arctic_cruise/saildrone_sentinel2_true_color_image_each_usv.py
agonmer/Saildrone
47e618390be6ef160382bd22bb3bdf2482a8644a
[ "Apache-2.0" ]
3
2020-06-08T06:29:22.000Z
2020-06-16T15:43:46.000Z
#!/usr/bin/env python # coding: utf-8 # In[3]: import gdal import urllib.request import xarray as xr import numpy as np import time from datetime import datetime, date, time, timedelta from matplotlib.pyplot import figure import matplotlib.pyplot as plt import cartopy.crs as ccrs import urllib import requests import...
34.587097
355
0.688864
826
5,361
4.380145
0.341404
0.015202
0.015202
0.012161
0.268657
0.195965
0.171365
0.12272
0.12272
0.098397
0
0.031572
0.131505
5,361
154
356
34.811688
0.74549
0.132438
0
0.084211
0
0.010526
0.226436
0.114843
0
0
0
0
0
1
0.010526
false
0
0.126316
0
0.147368
0.021053
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80fbb0bb49bd69b0d4c6b4cd19dfc72ce812fabe
896
py
Python
tests/snapshots/snapshots/snap_test_query_snapshots.py
adeoke/django-quarantine-workout-graphql
7d53bb17f8ee9e5276b496d00ff92c4b458af31f
[ "MIT" ]
1
2020-06-01T11:41:52.000Z
2020-06-01T11:41:52.000Z
tests/snapshots/snapshots/snap_test_query_snapshots.py
adeoke/django-quarantine-workout-graphql
7d53bb17f8ee9e5276b496d00ff92c4b458af31f
[ "MIT" ]
5
2020-06-06T15:14:21.000Z
2021-06-10T19:25:55.000Z
tests/snapshots/snapshots/snap_test_query_snapshots.py
adeoke/django-quarantine-workout-graphql
7d53bb17f8ee9e5276b496d00ff92c4b458af31f
[ "MIT" ]
1
2022-01-19T22:17:44.000Z
2022-01-19T22:17:44.000Z
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import Snapshot snapshots = Snapshot() snapshots['TestAppQueriesSnapshot::test_equipment_against_snapshot equipment_snapshot_resp'] = { 'data': { 'levels': [ { ...
21.853659
99
0.482143
55
896
7.563636
0.509091
0.081731
0.168269
0.105769
0.384615
0.384615
0.384615
0.384615
0.384615
0.384615
0
0.005597
0.401786
896
40
100
22.4
0.770522
0.069196
0
0.30303
0
0
0.357401
0.167268
0
0
0
0
0
1
0
false
0
0.060606
0
0.060606
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
80fc711d831d4747a33d2fccf9dfb1487eab792f
2,626
py
Python
src/beehive/controls/datamaker.py
i-pan/honeycomb
1f5f8c6c37f2a66b3109412e803994a9dc6ad10d
[ "MIT" ]
2
2020-11-09T05:32:59.000Z
2021-07-06T07:51:50.000Z
src/beehive/controls/datamaker.py
i-pan/honeycomb
1f5f8c6c37f2a66b3109412e803994a9dc6ad10d
[ "MIT" ]
null
null
null
src/beehive/controls/datamaker.py
i-pan/honeycomb
1f5f8c6c37f2a66b3109412e803994a9dc6ad10d
[ "MIT" ]
1
2020-12-10T19:20:22.000Z
2020-12-10T19:20:22.000Z
import logging import numpy as np import pandas as pd import os, os.path as osp from ..builder import build_dataset, build_dataloader def get_train_val_test_splits(cfg, df): if 'split' in df.columns and cfg.data.use_fixed_splits: train_df = df[df.split == 'train'] valid_df = df[df.split == 'vali...
33.240506
68
0.640518
380
2,626
4.184211
0.223684
0.045283
0.033962
0.027673
0.439623
0.365409
0.365409
0.260377
0.176101
0.155346
0
0.001493
0.234958
2,626
78
69
33.666667
0.789945
0
0
0.258065
0
0
0.084604
0.016768
0
0
0
0
0
1
0.048387
false
0
0.080645
0.016129
0.193548
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
037dc06068dc0af9522cd2267f30af8e21e1a997
376
py
Python
Previous_State_On_Repo/WordLevelDataAndProcessing/English/toggler.py
rohun-tripati/pythonRepo
91a7d536f7be05adc15e4d5add0a8a4a08c28c62
[ "Unlicense" ]
1
2018-06-25T19:20:48.000Z
2018-06-25T19:20:48.000Z
Previous_State_On_Repo/WordLevelDataAndProcessing/English/toggler.py
rohun-tripati/pythonRepo
91a7d536f7be05adc15e4d5add0a8a4a08c28c62
[ "Unlicense" ]
null
null
null
Previous_State_On_Repo/WordLevelDataAndProcessing/English/toggler.py
rohun-tripati/pythonRepo
91a7d536f7be05adc15e4d5add0a8a4a08c28c62
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python import os, sys, time import Image import pprint import numpy as np def imgtotoggle (path, outpath): image = Image.open(path) image = image.convert("L") pixels = image.load() size = image.size for j in range(size[0]): for i in range(size[1]): if pixels[j, i] < 200: pixels[j, i] = ...
16.347826
32
0.643617
63
376
3.84127
0.555556
0.086777
0.099174
0
0
0
0
0
0
0
0
0.030405
0.212766
376
23
33
16.347826
0.787162
0.053191
0
0
0
0
0.002809
0
0
0
0
0
0
1
0.0625
false
0
0.25
0
0.3125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
038103ef2240aabfd8cc0c60138c47f1f616f668
1,578
py
Python
libs/Python_Server.py
yingshaoxo/E_Python
1d971e5e16681a5a641d5362e1f2f719fd828fd5
[ "MIT" ]
17
2018-08-24T14:34:20.000Z
2021-02-24T02:40:14.000Z
libs/Python_Server.py
yingshaoxo/E_Python
1d971e5e16681a5a641d5362e1f2f719fd828fd5
[ "MIT" ]
1
2018-06-20T19:11:19.000Z
2018-06-21T13:47:00.000Z
libs/Python_Server.py
yingshaoxo/E_Python
1d971e5e16681a5a641d5362e1f2f719fd828fd5
[ "MIT" ]
6
2019-03-24T15:34:50.000Z
2021-09-30T07:42:20.000Z
import sys import os import subprocess EXEC = sys.executable #local pythonw.exe def run_py_file(py_path): result = subprocess.run([EXEC, py_path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True) return str(result.stdout) def run_py_codes(py_codes): codes = str(py_codes) if ...
27.206897
119
0.612801
215
1,578
4.32093
0.376744
0.032293
0.034446
0.038751
0.13563
0.103337
0.088267
0.066738
0.066738
0.066738
0
0.045075
0.240811
1,578
57
120
27.684211
0.730384
0.069075
0
0.177778
0
0
0.130375
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0.044444
0.4
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0382db25417fae1cb9a82dae1650705be38a3663
2,062
py
Python
paramikosshrsa/learntossh_updated_Sam.py
ryankimball/pyna
86b67e775925953abdc8d3ecaf786dda08d91bfa
[ "MIT" ]
null
null
null
paramikosshrsa/learntossh_updated_Sam.py
ryankimball/pyna
86b67e775925953abdc8d3ecaf786dda08d91bfa
[ "MIT" ]
null
null
null
paramikosshrsa/learntossh_updated_Sam.py
ryankimball/pyna
86b67e775925953abdc8d3ecaf786dda08d91bfa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ## std library imports on top import os ## 3rd party imports below import paramiko ## work assigned to a junior programming asset on our team from jrprogrammer import cmdissue def get_creds(): ip = input("IP: ") user = input("Username: ") # return [ip, user] # return {"ip": i...
26.779221
125
0.56741
255
2,062
4.482353
0.509804
0.020997
0.020997
0.026247
0.099738
0.041995
0
0
0
0
0
0.008457
0.311833
2,062
76
126
27.131579
0.79704
0.344326
0
0.105263
0
0.026316
0.13767
0.018911
0
0
0
0
0
1
0.078947
false
0
0.078947
0
0.210526
0.078947
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0384d896ee9aa5e8128b188d58ec411b0796b93b
4,909
py
Python
src/elchempy/indexer/EC_index.py
MyPyDavid/ECpy
b74842b64eca86d2181067fdb22bfa8fa4b2c8bb
[ "MIT" ]
3
2022-01-04T09:06:15.000Z
2022-03-05T08:24:01.000Z
src/elchempy/indexer/EC_index.py
MyPyDavid/ECpy
b74842b64eca86d2181067fdb22bfa8fa4b2c8bb
[ "MIT" ]
null
null
null
src/elchempy/indexer/EC_index.py
MyPyDavid/ECpy
b74842b64eca86d2181067fdb22bfa8fa4b2c8bb
[ "MIT" ]
1
2022-03-05T12:17:49.000Z
2022-03-05T12:17:49.000Z
""" Collects the files of index files of a folder""" from pathlib import Path from collections import Counter from functools import wraps import datetime from typing import Tuple, List, Dict, Union, Collection # import re # import copy import logging logger = logging.getLogger(__name__) logger.setLevel(logging.DEB...
29.220238
94
0.65716
625
4,909
4.9312
0.2784
0.064244
0.016872
0.017521
0.113563
0.057106
0.03634
0.03634
0.03634
0.03634
0
0.002195
0.257486
4,909
167
95
29.39521
0.843347
0.161744
0
0.114286
0
0
0.103941
0.008374
0
0
0
0
0
1
0.057143
false
0
0.114286
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0385d5fe370d2f68ea94283b4a443ec6d8a7e020
4,102
py
Python
inference_evaluation/inference_utils/image_utils.py
embedded-machine-learning/eml-tools
9c9d12f9b970a42360bc6ca350f3b67ad822b141
[ "Apache-2.0" ]
null
null
null
inference_evaluation/inference_utils/image_utils.py
embedded-machine-learning/eml-tools
9c9d12f9b970a42360bc6ca350f3b67ad822b141
[ "Apache-2.0" ]
null
null
null
inference_evaluation/inference_utils/image_utils.py
embedded-machine-learning/eml-tools
9c9d12f9b970a42360bc6ca350f3b67ad822b141
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Image handling utilities License_info: # ============================================================================== # ISC License (ISC) # Copyright 2020 Christian Doppler Laboratory for Embedded Machine Learning # # Permission to use, copy, modify, and/or distribu...
35.059829
115
0.684057
572
4,102
4.776224
0.472028
0.021962
0.016105
0.02123
0.047584
0.047584
0.047584
0.047584
0.047584
0
0
0.008603
0.178206
4,102
117
116
35.059829
0.801839
0.655046
0
0
0
0
0.149554
0.054315
0
0
0
0
0
1
0.081081
false
0
0.216216
0
0.351351
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
038616b45c12c7c5aab0395285a81ab4509f1b05
2,013
py
Python
molecule/upgrade/tests/test_default.py
cmu-sei/ansible-role-yaf
5fed4a5805e0751e37d8b05d459556b9367041e6
[ "Apache-2.0" ]
null
null
null
molecule/upgrade/tests/test_default.py
cmu-sei/ansible-role-yaf
5fed4a5805e0751e37d8b05d459556b9367041e6
[ "Apache-2.0" ]
1
2021-02-22T15:48:44.000Z
2021-02-22T15:48:44.000Z
molecule/upgrade/tests/test_default.py
cmu-sei/ansible-role-yaf
5fed4a5805e0751e37d8b05d459556b9367041e6
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Carnegie Mellon University. # NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING # INSTITUTE MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON # UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR IMPLIED, AS # TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANT...
38.711538
87
0.762047
286
2,013
5.311189
0.548951
0.046083
0.078999
0.02765
0
0
0
0
0
0
0
0.016959
0.150522
2,013
51
88
39.470588
0.871345
0.690512
0
0
0
0
0.243289
0.134228
0
0
0
0
0.117647
1
0.117647
false
0
0.176471
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03895f641c1dcc508acc7bfd2ad2e29b29a5ad04
18,329
py
Python
fuel_agent/fuel_agent/tests/test_nailgun.py
Axam/nsx-web
4f60d71c05e08740cbdf19b6c9bb0c4cb1e29ad5
[ "Apache-2.0" ]
1
2021-04-06T16:13:35.000Z
2021-04-06T16:13:35.000Z
fuel_agent/fuel_agent/tests/test_nailgun.py
Axam/nsx-web
4f60d71c05e08740cbdf19b6c9bb0c4cb1e29ad5
[ "Apache-2.0" ]
null
null
null
fuel_agent/fuel_agent/tests/test_nailgun.py
Axam/nsx-web
4f60d71c05e08740cbdf19b6c9bb0c4cb1e29ad5
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
37.482618
78
0.420809
1,720
18,329
4.280233
0.207558
0.07335
0.028253
0.00652
0.530834
0.513583
0.472698
0.441592
0.397039
0.320565
0
0.08067
0.43663
18,329
488
79
37.559426
0.632287
0.030007
0
0.397826
0
0.013043
0.278807
0.095131
0
0
0
0
0.086957
1
0.019565
false
0.006522
0.01087
0
0.032609
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
038c2d87bdf66ab34919ec05d38821c57168aa89
3,100
py
Python
examples/proxy/broadcast.py
KangFengjian/maro
2694a75731d5174ba5b33780670ba38d776d8c5a
[ "MIT" ]
1
2021-04-16T14:53:47.000Z
2021-04-16T14:53:47.000Z
examples/proxy/broadcast.py
KangFengjian/maro
2694a75731d5174ba5b33780670ba38d776d8c5a
[ "MIT" ]
2
2020-12-15T09:13:43.000Z
2020-12-16T08:02:41.000Z
examples/proxy/broadcast.py
KangFengjian/maro
2694a75731d5174ba5b33780670ba38d776d8c5a
[ "MIT" ]
1
2021-10-01T09:17:43.000Z
2021-10-01T09:17:43.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import multiprocessing as mp from maro.communication import Proxy, SessionType def worker(group_name): """ The main worker logic includes initialize proxy and handle jobs from the master. Args: group_name (str): Identifie...
36.904762
117
0.662903
392
3,100
5.089286
0.369898
0.049624
0.045113
0.0401
0.232581
0.177444
0.106266
0.106266
0.065163
0.065163
0
0.001729
0.253871
3,100
83
118
37.349398
0.860787
0.301935
0
0.1
0
0
0.202444
0.07492
0
0
0
0
0
1
0.05
false
0
0.05
0
0.1
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
038e6d50ab6c21396044a16b0e1fba76ef2bb5a3
5,045
py
Python
bacpypes/bvll/bip_simple.py
cbergmiller/bacpypes
7b1f2e989787c2c1f807680fee5ee7a71b3689ab
[ "MIT" ]
1
2018-01-11T13:10:15.000Z
2018-01-11T13:10:15.000Z
bacpypes/bvll/bip_simple.py
cbergmiller/bacpypes
7b1f2e989787c2c1f807680fee5ee7a71b3689ab
[ "MIT" ]
null
null
null
bacpypes/bvll/bip_simple.py
cbergmiller/bacpypes
7b1f2e989787c2c1f807680fee5ee7a71b3689ab
[ "MIT" ]
null
null
null
import logging from ..comm import Client, Server from ..link import Address, LocalBroadcast, PDU from .bvlpdu import ForwardedNPDU, OriginalBroadcastNPDU, OriginalUnicastNPDU, ReadBroadcastDistributionTableAck, \ ReadForeignDeviceTableAck, Result, WriteBroadcastDistributionTable, ReadBroadcastDistributionTable, \ ...
45.863636
117
0.636075
514
5,045
6.138132
0.200389
0.049445
0.038352
0.076704
0.548653
0.548653
0.471315
0.471315
0.449128
0.449128
0
0.008258
0.279881
5,045
109
118
46.284404
0.860171
0.13558
0
0.364865
0
0
0.043669
0
0
0
0.008318
0
0
1
0.040541
false
0
0.067568
0
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
038f505b334cb3a60e56c15adf216d9924d30d0c
4,721
py
Python
pytint/interpreters.py
semicolonTransistor/PyTint
0f70fe756c285cda38b3a91318af02382a505263
[ "MIT" ]
1
2020-08-14T19:41:45.000Z
2020-08-14T19:41:45.000Z
pytint/interpreters.py
semicolonTransistor/PyTint
0f70fe756c285cda38b3a91318af02382a505263
[ "MIT" ]
null
null
null
pytint/interpreters.py
semicolonTransistor/PyTint
0f70fe756c285cda38b3a91318af02382a505263
[ "MIT" ]
null
null
null
from typing import List, Deque, Dict, Set, Iterable Symbol = str State = str class FAConfiguration: def __init__(self, tape: List[Symbol], state: State, symbol_read: Symbol, prev_index: int, epsilon_set=None): if epsilon_set is None: epsilon_set = set() self.tape = tape self....
38.696721
113
0.606863
523
4,721
5.3174
0.219885
0.053937
0.062927
0.030205
0.143114
0.054657
0.054657
0.054657
0.054657
0.054657
0
0.001881
0.324296
4,721
121
114
39.016529
0.869906
0.143614
0
0.0875
0
0
0.001242
0
0
0
0
0
0
1
0.1
false
0.0125
0.0125
0
0.175
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
039430910e7060e427d541a78522663bedae56d1
4,342
py
Python
lejian/apis/user.py
PuZheng/LEJAIN-backend
1647b63cb409842566f3d2cd9771f8b8856c1a03
[ "MIT" ]
null
null
null
lejian/apis/user.py
PuZheng/LEJAIN-backend
1647b63cb409842566f3d2cd9771f8b8856c1a03
[ "MIT" ]
13
2015-10-23T04:43:51.000Z
2015-12-19T14:30:33.000Z
lejian/apis/user.py
PuZheng/lejian-backend
1647b63cb409842566f3d2cd9771f8b8856c1a03
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import os.path from flask import _request_ctx_stack, current_app, request, url_for from flask.ext import login from flask.ext.principal import identity_changed, Identity, AnonymousIdentity from itsdangerous import URLSafeTimedSerializer, BadTimeSignature from sqlalchemy.orm.exc import NoResultFo...
31.23741
79
0.638415
524
4,342
5.078244
0.278626
0.015784
0.034198
0.010522
0.19316
0.166103
0.132281
0.132281
0.100714
0.100714
0
0.000626
0.264164
4,342
138
80
31.463768
0.832238
0.098342
0
0.31
0
0
0.049948
0
0
0
0
0.007246
0
1
0.1
false
0.04
0.14
0.01
0.44
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03970b2533b2ca57d1a6281354a0bf6b80e84225
2,324
py
Python
tests/fs/test_base.py
mikiec84/mrjob
801fffffdc6af860edd7813c948f9da341305b21
[ "Apache-2.0" ]
null
null
null
tests/fs/test_base.py
mikiec84/mrjob
801fffffdc6af860edd7813c948f9da341305b21
[ "Apache-2.0" ]
null
null
null
tests/fs/test_base.py
mikiec84/mrjob
801fffffdc6af860edd7813c948f9da341305b21
[ "Apache-2.0" ]
null
null
null
# Copyright 2009-2015 Yelp and Contributors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
34.176471
74
0.61833
303
2,324
4.686469
0.412541
0.038028
0.093662
0.103521
0.272535
0.250704
0.247887
0.223944
0.171831
0.171831
0
0.017674
0.245267
2,324
67
75
34.686567
0.791904
0.240534
0
0.051282
0
0
0.163906
0.013706
0
0
0
0
0.205128
1
0.128205
false
0
0.179487
0
0.358974
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0397f4e8843e1786622b1eaaa945cb10043ae58c
931
py
Python
WebODM-master/app/templatetags/plugins.py
abhinavsri000/UAVision
895fd883c1f5f492b4dcb573568b60ef03132cf6
[ "MIT" ]
null
null
null
WebODM-master/app/templatetags/plugins.py
abhinavsri000/UAVision
895fd883c1f5f492b4dcb573568b60ef03132cf6
[ "MIT" ]
8
2019-11-24T14:15:19.000Z
2020-04-19T09:06:04.000Z
WebODM-master/app/templatetags/plugins.py
abhinavsri000/UAVision
895fd883c1f5f492b4dcb573568b60ef03132cf6
[ "MIT" ]
null
null
null
from django import template from app.plugins import get_active_plugins import itertools register = template.Library() @register.simple_tag(takes_context=False) def get_plugins_js_includes(): # Flatten all urls for all plugins js_urls = list(itertools.chain(*[plugin.get_include_js_urls() for plugin in get_acti...
40.478261
112
0.745435
137
931
4.824818
0.350365
0.054463
0.096823
0.108926
0.567322
0.567322
0.526475
0.305598
0.305598
0.163389
0
0
0.119227
931
22
113
42.318182
0.806098
0.093448
0
0.133333
0
0
0.094048
0
0
0
0
0
0
1
0.2
false
0
0.2
0.066667
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0399f8d11a55a533cbe1bcfb45223a3acc4ce972
4,132
py
Python
omh_nbi/handlers/uni_set.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
omh_nbi/handlers/uni_set.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
omh_nbi/handlers/uni_set.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Broadband Forum # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
37.225225
121
0.669409
569
4,132
4.662566
0.347979
0.026385
0.02827
0.035809
0.227667
0.15605
0.116849
0.094233
0.080663
0
0
0.007747
0.250242
4,132
110
122
37.563636
0.848612
0.413843
0
0.2
0
0
0.078867
0
0
0
0
0.009091
0
1
0.066667
false
0
0.2
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
039bf52827205dd5799cf017fb621c4a333c409f
4,269
py
Python
application/dash_application/views/runreport.py
oicr-gsi/dashi
34bf96a7d447095df525df3ad27dbe10f4e3dde0
[ "MIT" ]
2
2020-03-27T21:20:20.000Z
2022-02-09T07:42:51.000Z
application/dash_application/views/runreport.py
oicr-gsi/dashi
34bf96a7d447095df525df3ad27dbe10f4e3dde0
[ "MIT" ]
89
2019-06-06T18:31:19.000Z
2022-03-07T20:38:36.000Z
application/dash_application/views/runreport.py
oicr-gsi/dashi
34bf96a7d447095df525df3ad27dbe10f4e3dde0
[ "MIT" ]
2
2019-06-06T17:50:53.000Z
2019-06-06T17:52:32.000Z
import dash_html_components as html import dash_core_components as core from dash.dependencies import Input, Output from ..dash_id import init_ids import json import pandas import numpy import plotly.figure_factory as ff import gsiqcetl.load from gsiqcetl.runreport.constants import CacheSchema page_name = "runreport/...
31.160584
88
0.635278
570
4,269
4.536842
0.249123
0.025135
0.024749
0.044084
0.311292
0.24594
0.199536
0.138438
0.105955
0.073473
0
0.005197
0.233778
4,269
136
89
31.389706
0.785387
0.078707
0
0.127451
0
0
0.086968
0
0
0
0
0
0
1
0.04902
false
0
0.098039
0.009804
0.22549
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
039d26f5b0893b66b5a9af6d7de3662450287ccc
4,570
py
Python
app.py
learnTech/tass-calendar
c0f130438d594b5856e9f24917d864a1fa5dfeda
[ "MIT" ]
null
null
null
app.py
learnTech/tass-calendar
c0f130438d594b5856e9f24917d864a1fa5dfeda
[ "MIT" ]
null
null
null
app.py
learnTech/tass-calendar
c0f130438d594b5856e9f24917d864a1fa5dfeda
[ "MIT" ]
null
null
null
from flask import Flask, escape, request, make_response import os import requests from Crypto.Cipher import AES import urllib import base64 from datetime import datetime, timedelta # These variables should be configured as per your own parameters for each application in your API Gateway Maintanence portal. # They can ...
35.426357
126
0.650109
597
4,570
4.896147
0.341709
0.010263
0.02258
0.006842
0.135477
0.111529
0.095792
0.095792
0.039343
0.039343
0
0.01314
0.217287
4,570
128
127
35.703125
0.804026
0.232166
0
0.025641
0
0
0.170353
0.006033
0
0
0
0
0
1
0.064103
false
0
0.089744
0
0.217949
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
039d58f8df8f1a6c6b5b34a51d35079ea0d2d111
948
py
Python
oppoudpsdk/async_helpers.py
simbaja/oppoudpsdk
e2b08ce51a15ced6c4e96583a9b61b21f6a8cc59
[ "MIT" ]
1
2022-02-17T20:17:21.000Z
2022-02-17T20:17:21.000Z
oppoudpsdk/async_helpers.py
simbaja/oppoudpsdk
e2b08ce51a15ced6c4e96583a9b61b21f6a8cc59
[ "MIT" ]
null
null
null
oppoudpsdk/async_helpers.py
simbaja/oppoudpsdk
e2b08ce51a15ced6c4e96583a9b61b21f6a8cc59
[ "MIT" ]
null
null
null
import asyncio from typing import AsyncIterator class OppoStreamIterator: def __init__(self, reader: asyncio.StreamReader): self._reader = reader def __aiter__(self): return self async def __anext__(self): val = await self._reader.readuntil(b'\r') if val == b'': raise StopAsyncIterati...
29.625
118
0.712025
109
948
5.816514
0.431193
0.047319
0
0
0
0
0
0
0
0
0
0
0.208861
948
31
119
30.580645
0.845333
0
0
0
0
0
0.00211
0
0
0
0
0
0
1
0.074074
false
0
0.074074
0.037037
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
039ddd7ec3fbf7309dac9c7083e3a7f3f5c0a95b
3,455
py
Python
Project-2/Ishan Pandey/google_search.py
Mercury1508/IEEE-LEAD-2.0
91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8
[ "MIT" ]
1
2021-06-03T16:08:33.000Z
2021-06-03T16:08:33.000Z
Project-2/Ishan Pandey/google_search.py
Mercury1508/IEEE-LEAD-2.0
91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8
[ "MIT" ]
16
2021-04-27T12:58:03.000Z
2021-05-28T14:02:14.000Z
Project-2/Ishan Pandey/google_search.py
Mercury1508/IEEE-LEAD-2.0
91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8
[ "MIT" ]
70
2021-04-26T13:48:35.000Z
2021-05-28T21:04:34.000Z
from PIL import ImageTk import PIL.Image from tkinter import * import urllib from bs4 import BeautifulSoup import requests from selenium import webdriver # -------URL generator---------- def url_gen(search_term): search_term = (urllib.parse.quote(search_term, safe='')) template = f"https://www.google.com/sea...
30.307018
139
0.707959
475
3,455
5
0.305263
0.069474
0.04
0.036632
0.261053
0.144421
0.144421
0.144421
0.144421
0.144421
0
0.033345
0.140666
3,455
113
140
30.575221
0.766588
0.02055
0
0.121951
0
0.012195
0.14497
0
0
0
0
0
0
1
0.085366
false
0
0.085366
0
0.182927
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
039ffde3f9ae262159889d92dcb803cf3d4e8069
1,910
py
Python
cooper/demo/sweep_weights.py
ajclaros/rl_legged_walker
26d0e124ef38045943449c2772b966571117683b
[ "MIT" ]
null
null
null
cooper/demo/sweep_weights.py
ajclaros/rl_legged_walker
26d0e124ef38045943449c2772b966571117683b
[ "MIT" ]
null
null
null
cooper/demo/sweep_weights.py
ajclaros/rl_legged_walker
26d0e124ef38045943449c2772b966571117683b
[ "MIT" ]
null
null
null
""" To run this module, execute `python -m cooper.demo.sweep_weights` from this repository's base directory. To save the outputs to a file, use stdout redirection: `python -m cooper.demo.sweep_weights > data.csv` """ from typing import List from typing_extensions import TypeAlias from multiprocessing import P...
26.527778
89
0.669634
289
1,910
4.287197
0.349481
0.062954
0.06134
0.027441
0.083939
0.083939
0
0
0
0
0
0.069948
0.191623
1,910
71
90
26.901408
0.732513
0.190576
0
0
0
0.021277
0.09316
0.065147
0
0
0
0
0
1
0.06383
false
0
0.12766
0
0.255319
0.042553
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03a0253a80d8409783b6104ce76182534fc2fd5c
494
py
Python
en/add_symbol.py
Gabriel-Chen/Narcissus
998a9d9c4dfed0e537c934acd94389aeeb35cf6b
[ "MIT" ]
null
null
null
en/add_symbol.py
Gabriel-Chen/Narcissus
998a9d9c4dfed0e537c934acd94389aeeb35cf6b
[ "MIT" ]
null
null
null
en/add_symbol.py
Gabriel-Chen/Narcissus
998a9d9c4dfed0e537c934acd94389aeeb35cf6b
[ "MIT" ]
null
null
null
import json words_sheet = open('key_words_en.json', 'r') try: reader = json.load(words_sheet) words_sheet.close() for item in reader: key_word = item['Environmental Keywords in English'] symbol = item['symbol'] f = open(key_word + '.json', 'r') gf = json.load(f) f.cl...
26
60
0.566802
67
494
4.044776
0.402985
0.147601
0.110701
0.103321
0.162362
0.162362
0
0
0
0
0
0
0.291498
494
18
61
27.444444
0.774286
0
0
0.117647
0
0
0.165992
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03a171ff1e04756ab7e71d65f6b4386a31a3421e
2,453
py
Python
volatility/volatility_compare.py
larrys54321/quant_corner
3dc6f3f3d1ce1fa002c226bd5c5f845b91710687
[ "MIT" ]
null
null
null
volatility/volatility_compare.py
larrys54321/quant_corner
3dc6f3f3d1ce1fa002c226bd5c5f845b91710687
[ "MIT" ]
null
null
null
volatility/volatility_compare.py
larrys54321/quant_corner
3dc6f3f3d1ce1fa002c226bd5c5f845b91710687
[ "MIT" ]
null
null
null
import yfinance as yf from datetime import datetime import pandas as pd import matplotlib.pyplot as plt import numpy as np from arch import arch_model from volatility.utils import get_percent_chg, Option, set_plot, get_ATR start = datetime(2000, 1, 1) end = datetime(2021, 3, 17) symbol = 'QQQ' tickerData = yf.Ticker(...
42.293103
110
0.653893
434
2,453
3.539171
0.267281
0.083333
0.027344
0.035156
0.24349
0.231771
0.203776
0.141276
0.111328
0.089844
0
0.053296
0.128007
2,453
58
111
42.293103
0.664797
0
0
0.036364
0
0
0.085982
0
0
0
0
0
0
1
0
false
0
0.127273
0
0.127273
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
03a24ae5d5f90ce732d9ff0c7b909cd8a3827243
1,588
py
Python
enhanced_purchase.py
RadekD/gmp
5b413ef71f09389f80afdd94750189c4b34fde99
[ "BSD-2-Clause" ]
null
null
null
enhanced_purchase.py
RadekD/gmp
5b413ef71f09389f80afdd94750189c4b34fde99
[ "BSD-2-Clause" ]
null
null
null
enhanced_purchase.py
RadekD/gmp
5b413ef71f09389f80afdd94750189c4b34fde99
[ "BSD-2-Clause" ]
null
null
null
from .event import event def enhanced_item(name, unit_price, quantity=None, item_id=None, category=None, brand=None, variant=None, **extra_data): payload = { 'nm': name, 'pr': str(unit_price), 'qt': quantity or 1 } if item_id: payload['id'] = item_id if category: paylo...
26.032787
76
0.612091
199
1,588
4.743719
0.376884
0.038136
0.027542
0.04661
0.084746
0.084746
0
0
0
0
0
0.003433
0.266373
1,588
60
77
26.466667
0.806867
0
0
0.085106
0
0
0.064861
0
0
0
0
0
0
1
0.06383
false
0
0.021277
0
0.12766
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03a35033c40c291fd45a784eb8bab0f9516b6496
5,022
py
Python
modules/manager.py
horsy-ml/horsy
1161df2e83c201784ea674bd1d53e76831b15a0f
[ "MIT" ]
null
null
null
modules/manager.py
horsy-ml/horsy
1161df2e83c201784ea674bd1d53e76831b15a0f
[ "MIT" ]
null
null
null
modules/manager.py
horsy-ml/horsy
1161df2e83c201784ea674bd1d53e76831b15a0f
[ "MIT" ]
null
null
null
import json import threading from rich import print from modules.request import request import modules.vars as horsy_vars import os import zipfile from modules.virustotal import scan_to_cli from modules.http_status import handle from ezzdl import dl def install(package): """ Install an app :param package:...
35.617021
110
0.545599
649
5,022
4.154083
0.257319
0.070104
0.120178
0.022255
0.32678
0.299703
0.287463
0.255564
0.20141
0.137611
0
0.014432
0.282557
5,022
140
111
35.871429
0.733833
0.073078
0
0.141304
0
0.021739
0.271316
0.033887
0
0
0
0
0
1
0.043478
false
0.01087
0.108696
0
0.173913
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03a4223d11ef6ce96b39c23302d12d9c2d63b9be
1,310
py
Python
setup.py
aheadlead/download_wrapper
036bc7cb071eadc0bc24a445bcaa5c2305d48083
[ "MIT" ]
1
2021-06-20T14:22:11.000Z
2021-06-20T14:22:11.000Z
setup.py
aheadlead/download_wrapper
036bc7cb071eadc0bc24a445bcaa5c2305d48083
[ "MIT" ]
null
null
null
setup.py
aheadlead/download_wrapper
036bc7cb071eadc0bc24a445bcaa5c2305d48083
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding=utf-8 import sys import download_wrapper from setuptools import setup, find_packages cmdclass = {} try: from sphinx.setup_command import BuildDoc cmdclass = {'build_sphinx': BuildDoc} except ImportError: pass name = download_wrapper.__NAME__ version = download_wrapper.__V...
26.734694
51
0.654198
131
1,310
6.129771
0.450382
0.1868
0.124533
0.129514
0
0
0
0
0
0
0
0.010859
0.226718
1,310
48
52
27.291667
0.781836
0.025954
0
0
0
0
0.262951
0
0
0
0
0
0
1
0
false
0.02439
0.121951
0
0.121951
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03ac01fd1a6c4846aeb2f1e3b6476d9fc533c05d
2,249
py
Python
saefportal/datalakes/models/local_datalake.py
harry-consulting/SAEF1
055d6e492ba76f90e3248b9da2985fdfe0c6b430
[ "BSD-2-Clause" ]
null
null
null
saefportal/datalakes/models/local_datalake.py
harry-consulting/SAEF1
055d6e492ba76f90e3248b9da2985fdfe0c6b430
[ "BSD-2-Clause" ]
null
null
null
saefportal/datalakes/models/local_datalake.py
harry-consulting/SAEF1
055d6e492ba76f90e3248b9da2985fdfe0c6b430
[ "BSD-2-Clause" ]
1
2020-12-16T15:02:52.000Z
2020-12-16T15:02:52.000Z
import io import json import logging import os import shutil from pathlib import Path import pandas as pd from django.db import models from datalakes.util import get_wanted_file logger = logging.getLogger(__name__) class LocalDatalake(models.Model): root_path = models.CharField(max_length=500, default="", blan...
33.567164
120
0.655847
318
2,249
4.468553
0.323899
0.044335
0.069669
0.050669
0.202674
0.16045
0.122449
0.045039
0
0
0
0.002801
0.206314
2,249
66
121
34.075758
0.793277
0.032014
0
0
0
0
0.190345
0.08046
0
0
0
0
0
1
0.181818
false
0
0.204545
0.045455
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
03ae81522e3beb368f2e7e1784f87746e2f971d3
766
py
Python
tracing/tracing/value/add_device_info.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
null
null
null
tracing/tracing/value/add_device_info.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
null
null
null
tracing/tracing/value/add_device_info.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
1
2020-07-24T05:13:01.000Z
2020-07-24T05:13:01.000Z
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json import tempfile from tracing.value import add_shared_diagnostic def AddDeviceInfo(histograms_json_filename, chrome_version, os_name, os_version...
30.64
80
0.721932
96
766
5.541667
0.604167
0.078947
0.071429
0
0
0
0
0
0
0
0
0.006525
0.199739
766
24
81
31.916667
0.861338
0.20235
0
0
0
0
0.079077
0
0
0
0
0
0
1
0.058824
false
0
0.176471
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03afdcb8ce074b115b45a4eebc1daa532aca42d3
9,803
py
Python
fast_knn_nmt/data/utils.py
Crazy-Chick/fast-knn-nmt
7336bbe0be1240e70d3c3ac71c4e7cfb4f4ea4ff
[ "Apache-2.0" ]
null
null
null
fast_knn_nmt/data/utils.py
Crazy-Chick/fast-knn-nmt
7336bbe0be1240e70d3c3ac71c4e7cfb4f4ea4ff
[ "Apache-2.0" ]
null
null
null
fast_knn_nmt/data/utils.py
Crazy-Chick/fast-knn-nmt
7336bbe0be1240e70d3c3ac71c4e7cfb4f4ea4ff
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 """ @desc: """ import numpy as np import math from fairseq.data import data_utils from fairseq.tasks.translation import TranslationTask from fairseq.data.language_pair_dataset import LanguagePairDataset from tqdm import tqdm from multiprocessing import Pool from typing import Tuple from fast_k...
37.703846
137
0.624605
1,327
9,803
4.370761
0.141673
0.036034
0.041034
0.023793
0.410345
0.316897
0.288793
0.248448
0.24431
0.215862
0
0.01447
0.280934
9,803
259
138
37.849421
0.808342
0.078547
0
0.308901
0
0
0.047341
0
0
0
0
0
0.005236
1
0.031414
false
0
0.052356
0
0.125654
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03b09e85b4641e24b2163f9fb84c1ad44350f628
334
py
Python
src/algorithms/crush.py
apierr/_hackerrank
5bea44fed2fc6b454b31566c36c9bf66c04fa11e
[ "MIT" ]
null
null
null
src/algorithms/crush.py
apierr/_hackerrank
5bea44fed2fc6b454b31566c36c9bf66c04fa11e
[ "MIT" ]
5
2019-09-25T11:20:07.000Z
2020-06-30T09:58:05.000Z
src/algorithms/crush.py
apierr/hackerrank
5bea44fed2fc6b454b31566c36c9bf66c04fa11e
[ "MIT" ]
1
2021-02-02T15:06:58.000Z
2021-02-02T15:06:58.000Z
n, inputs = [int(n) for n in input().split(" ")] list = [0]*(n+1) for _ in range(inputs): print('\n') x, y, incr = [int(n) for n in input().split(" ")] list[x-1] += incr if((y) <= len(list)): list[y] -= incr print(list) max = x = 0 for i in list: x = x+i if(max < x): max =...
17.578947
53
0.47006
59
334
2.644068
0.322034
0.076923
0.089744
0.102564
0.307692
0.307692
0.307692
0.307692
0
0
0
0.017316
0.308383
334
18
54
18.555556
0.658009
0
0
0
0
0
0.012012
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03b48010ad3cd8943b83873c6007c3a73442461a
9,572
py
Python
crits/emails/email.py
dicato/crits
8d500f7175855f1aeefa94caa783f981062ba869
[ "MIT" ]
null
null
null
crits/emails/email.py
dicato/crits
8d500f7175855f1aeefa94caa783f981062ba869
[ "MIT" ]
null
null
null
crits/emails/email.py
dicato/crits
8d500f7175855f1aeefa94caa783f981062ba869
[ "MIT" ]
null
null
null
import datetime from dateutil.parser import parse as date_parser from mongoengine import Document, StringField, ListField from django.conf import settings from cybox.common import String, DateTime from cybox.core import Observable from cybox.objects.address_object import Address, EmailAddress from cybox.objects.email_...
38.910569
125
0.570205
1,045
9,572
5.086124
0.244976
0.015052
0.036124
0.033866
0.071308
0.029727
0.013547
0
0
0
0
0.000316
0.337965
9,572
245
126
39.069388
0.838409
0.158483
0
0.018634
0
0
0.182296
0.010904
0
0
0
0
0
1
0.031056
false
0
0.074534
0
0.254658
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03b7e0e6620e7937b8035ee5d2db08dc54dcd32a
18,147
py
Python
scratchpad/tomostream_roi/tomostream/tomostream3d.py
arshadzahangirchowdhury/TomoEncoders
9c2b15fd515d864079f198546821faee5d78df17
[ "BSD-3-Clause" ]
null
null
null
scratchpad/tomostream_roi/tomostream/tomostream3d.py
arshadzahangirchowdhury/TomoEncoders
9c2b15fd515d864079f198546821faee5d78df17
[ "BSD-3-Clause" ]
null
null
null
scratchpad/tomostream_roi/tomostream/tomostream3d.py
arshadzahangirchowdhury/TomoEncoders
9c2b15fd515d864079f198546821faee5d78df17
[ "BSD-3-Clause" ]
null
null
null
''' Adaptation of Tomostream orthoslice code for doing full 3d reconstructions Then to apply DL-based image processing or computer vision steps. ''' import pvaccess as pva import numpy as np import queue import time import h5py import threading import signal import util import log from epics import PV import so...
42.698824
175
0.58737
2,271
18,147
4.557023
0.190665
0.051792
0.070731
0.010146
0.267465
0.200599
0.17393
0.154604
0.121171
0.092376
0
0.006977
0.297074
18,147
424
176
42.799528
0.804327
0.266766
0
0.170124
0
0
0.09858
0.012342
0
0
0
0
0
1
0.049793
false
0
0.049793
0
0.103734
0.045643
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03b8734c360f66455710a790f4a8290958137378
1,351
py
Python
userbot/modules/help.py
masbentoooredoo/WeebProject
d34c14b42801915518a87831f952e5ade95183e2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/help.py
masbentoooredoo/WeebProject
d34c14b42801915518a87831f952e5ade95183e2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/help.py
masbentoooredoo/WeebProject
d34c14b42801915518a87831f952e5ade95183e2
[ "Naumen", "Condor-1.1", "MS-PL" ]
10
2020-12-13T14:32:47.000Z
2021-04-11T06:45:35.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # """Userbot help command""" from userbot import CMD_HELP from userbot.events import register @register(out...
33.775
79
0.513694
153
1,351
4.496732
0.529412
0.050872
0.061047
0.043605
0
0
0
0
0
0
0
0.016358
0.321244
1,351
39
80
34.641026
0.732824
0.156921
0
0.068966
0
0
0.28424
0.049719
0
0
0
0
0
1
0
false
0
0.068966
0
0.068966
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03bb6948a075551b1b577cc28c8637a3fab83ee4
5,300
py
Python
cognite/experimental/_api/transformation_notifications.py
AlexThunder/cognite-sdk-python-experimental
468d29e7809793ed45cef5da25dca22418839972
[ "Apache-2.0" ]
null
null
null
cognite/experimental/_api/transformation_notifications.py
AlexThunder/cognite-sdk-python-experimental
468d29e7809793ed45cef5da25dca22418839972
[ "Apache-2.0" ]
null
null
null
cognite/experimental/_api/transformation_notifications.py
AlexThunder/cognite-sdk-python-experimental
468d29e7809793ed45cef5da25dca22418839972
[ "Apache-2.0" ]
null
null
null
from typing import List, Optional, Union from cognite.client import utils from cognite.client._api_client import APIClient from cognite.experimental._constants import HANDLER_FILE_NAME, LIST_LIMIT_CEILING, LIST_LIMIT_DEFAULT, MAX_RETRIES from cognite.experimental.data_classes import ( OidcCredentials, Transfo...
42.4
231
0.675472
471
5,300
7.469214
0.280255
0.034395
0.05884
0.04946
0.333712
0.262081
0.220011
0.196703
0.196703
0.175668
0
0.002486
0.241132
5,300
124
232
42.741935
0.872203
0.562453
0
0
0
0
0.025052
0.015658
0
0
0
0
0.023256
1
0.093023
false
0
0.116279
0
0.325581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03bb90b3312fca9d9a089bd4f563f11678d9d344
2,110
py
Python
2020/day13.py
PintarM/AdventOfCode
5837c42ab1ce98efb02aec1ac17967611e2a3851
[ "MIT" ]
null
null
null
2020/day13.py
PintarM/AdventOfCode
5837c42ab1ce98efb02aec1ac17967611e2a3851
[ "MIT" ]
null
null
null
2020/day13.py
PintarM/AdventOfCode
5837c42ab1ce98efb02aec1ac17967611e2a3851
[ "MIT" ]
1
2020-12-02T13:27:52.000Z
2020-12-02T13:27:52.000Z
# -*- coding: utf-8 -*- """Advent Of Code 2020, Day 13 @author: Matevz """ from sympy.ntheory.modular import crt def get_input(file_name): """Process input text file.""" try: file = open(file_name, 'r') content = file.read() except IOError: print('Cannot read file {}'.format(fil...
27.402597
79
0.652133
278
2,110
4.823741
0.377698
0.09396
0.08352
0.01044
0.1044
0.038777
0.038777
0.038777
0.038777
0.038777
0
0.010186
0.209005
2,110
76
80
27.763158
0.793289
0.196209
0
0
0
0
0.049607
0
0
0
0
0
0
1
0.170732
false
0
0.02439
0
0.341463
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03bd2bfd0c61d2a79ebac5bc28f8f5b65ddc6392
5,154
py
Python
conveyorclient/v1/plans.py
Hybrid-Cloud/conveyorclient
329fe37ef4fb7229e5bec9575a86c06e5d4da934
[ "Apache-2.0" ]
null
null
null
conveyorclient/v1/plans.py
Hybrid-Cloud/conveyorclient
329fe37ef4fb7229e5bec9575a86c06e5d4da934
[ "Apache-2.0" ]
null
null
null
conveyorclient/v1/plans.py
Hybrid-Cloud/conveyorclient
329fe37ef4fb7229e5bec9575a86c06e5d4da934
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Huawei, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.828025
78
0.569461
626
5,154
4.557508
0.265176
0.025237
0.018226
0.018927
0.158079
0.106905
0.106905
0.106905
0.051875
0
0
0.002836
0.315871
5,154
156
79
33.038462
0.806296
0.269693
0
0.066667
0
0
0.119464
0.015152
0
0
0
0
0
1
0.16
false
0
0.066667
0.013333
0.386667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03bd7fc88e1ab0df9ab78abcf865b46a9d55c33e
1,931
py
Python
submissions/Miner/myCSPs.py
omarmartinez97/aima-python
c8d5aa86382fb72e9ddec4938706599fee439bbb
[ "MIT" ]
null
null
null
submissions/Miner/myCSPs.py
omarmartinez97/aima-python
c8d5aa86382fb72e9ddec4938706599fee439bbb
[ "MIT" ]
null
null
null
submissions/Miner/myCSPs.py
omarmartinez97/aima-python
c8d5aa86382fb72e9ddec4938706599fee439bbb
[ "MIT" ]
null
null
null
import csp rgb = ['R', 'G', 'B'] d2 = {'A': rgb, 'B': rgb, 'C': ['R'], 'D': rgb} v2 = d2.keys() n2 = {'A': ['B', 'C', 'D'], 'B': ['A', 'C', 'D'], 'C': ['A', 'B'], 'D': ['A', 'B']} def constraints(A, a, B, b): if A == B: # e.g. NSW == NSW return True if a == b: # e.g. W...
21.943182
87
0.51942
200
1,931
4.965
0.285
0.012085
0.006042
0.01007
0.136959
0.07855
0.07855
0
0
0
0
0.006356
0.266701
1,931
87
88
22.195402
0.694915
0.037804
0
0.115942
0
0
0.314995
0.028047
0
0
0
0
0
1
0.014493
false
0
0.014493
0
0.072464
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03bf606f96d7db50104b5beeafeafef7cf2ccc0a
2,504
py
Python
bot.py
Stienvdh/IEToolie
bfa5cb35cdb63a4dceba935c5098e6ab6729228c
[ "BSD-Source-Code" ]
null
null
null
bot.py
Stienvdh/IEToolie
bfa5cb35cdb63a4dceba935c5098e6ab6729228c
[ "BSD-Source-Code" ]
null
null
null
bot.py
Stienvdh/IEToolie
bfa5cb35cdb63a4dceba935c5098e6ab6729228c
[ "BSD-Source-Code" ]
null
null
null
""" Copyright (c) 2021 Cisco and/or its affiliates. This software is licensed to you under the terms of the Cisco Sample Code License, Version 1.1 (the "License"). You may obtain a copy of the License at https://developer.cisco.com/docs/licenses All use of the material herein must be in accordance with t...
32.519481
72
0.708866
374
2,504
4.572193
0.462567
0.017544
0.018713
0.035088
0.074269
0.074269
0.074269
0.074269
0
0
0
0.008437
0.195288
2,504
77
73
32.519481
0.839702
0.395767
0
0
0
0.025641
0.232155
0.022015
0
0
0
0
0
1
0.051282
false
0
0.102564
0.025641
0.205128
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03c1692548de12b27e2465162cb0ac18bb61a489
5,224
py
Python
stats_eddie/SVM.py
dalakada/TwiCSv2
40672a99a201f6e2aab9dd085e1f4a29e8253f3b
[ "MIT" ]
2
2019-04-01T00:54:39.000Z
2021-06-22T18:02:47.000Z
stats_eddie/SVM.py
dalakada/TwiCSv2
40672a99a201f6e2aab9dd085e1f4a29e8253f3b
[ "MIT" ]
null
null
null
stats_eddie/SVM.py
dalakada/TwiCSv2
40672a99a201f6e2aab9dd085e1f4a29e8253f3b
[ "MIT" ]
2
2018-06-20T14:50:03.000Z
2020-08-27T01:55:34.000Z
# coding: utf-8 import pandas as pd import numpy as np from sklearn.ensemble import RandomForestClassifier from sklearn import svm from scipy import stats class SVM1(): def __init__(self,train): #train the algorithm once self.train = pd.read_csv(train,delimiter=",",sep='\s*,\s*') self.tr...
20.730159
120
0.626723
740
5,224
4.221622
0.187838
0.056018
0.03073
0.044174
0.429257
0.377401
0.330026
0.237516
0.173496
0.173496
0
0.022936
0.207121
5,224
252
121
20.730159
0.731289
0.126149
0
0
0
0
0.27905
0.083715
0
0
0
0
0
1
0.05
false
0
0.125
0
0.225
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03c1918314d95df834d6cdd5e651896610e70399
836
py
Python
pyviews/rendering/tests/setup_tests.py
eumis/pyviews
9f3a3a72eddda2bd33bbb16b45d9fa4f9ebfcc0b
[ "MIT" ]
6
2018-02-16T14:37:53.000Z
2020-03-20T13:22:17.000Z
pyviews/rendering/tests/setup_tests.py
eumis/pyviews
9f3a3a72eddda2bd33bbb16b45d9fa4f9ebfcc0b
[ "MIT" ]
null
null
null
pyviews/rendering/tests/setup_tests.py
eumis/pyviews
9f3a3a72eddda2bd33bbb16b45d9fa4f9ebfcc0b
[ "MIT" ]
1
2019-03-15T12:47:42.000Z
2019-03-15T12:47:42.000Z
from os.path import abspath from injectool import resolve, SingletonResolver from pytest import mark from pyviews.rendering import RenderingPipeline from pyviews.rendering.setup import use_rendering @mark.usefixtures('container_fixture') class UseRenderingTests: @staticmethod def test_views_folder(): ...
26.967742
92
0.721292
88
836
6.670455
0.454545
0.081772
0.091993
0.081772
0.11925
0
0
0
0
0
0
0
0.192584
836
30
93
27.866667
0.86963
0.139952
0
0.277778
0
0
0.064011
0
0
0
0
0
0.166667
1
0.166667
false
0
0.277778
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
03c2eb282e47a2c54bf098cbd77a6d4905f87e9b
533
py
Python
deneme.py
github21yandex/Calismalarim-Python
1dad342b13c3e4000d5dd8cb79d776e3fc665e3a
[ "Unlicense" ]
null
null
null
deneme.py
github21yandex/Calismalarim-Python
1dad342b13c3e4000d5dd8cb79d776e3fc665e3a
[ "Unlicense" ]
null
null
null
deneme.py
github21yandex/Calismalarim-Python
1dad342b13c3e4000d5dd8cb79d776e3fc665e3a
[ "Unlicense" ]
null
null
null
import sys import locale locale.setlocale(locale.LC_ALL, "tr_TR.utf-8") cumle = "merhaba\tiyi\tmisiN?" sesli="ıouieaüöIOUİEAÜÖ" sesliler ="" sessizler="" gecici="" tur = "ğıüşöçĞİÜŞÖÇ" ing = "giusocGIUSOC" liste = ["ali", "veli", "samet"] liste = [[1,2,3],[4,5,6],[7,8,9,10]] liste2 = [1, 2, 3, "mehmed"] w = op...
14.805556
52
0.60788
86
533
3.767442
0.709302
0.012346
0.018519
0
0
0
0
0
0
0
0
0.045455
0.133208
533
35
53
15.228571
0.651515
0
0
0
0
0
0.29434
0
0
0
0
0
0
1
0
false
0
0.095238
0
0.095238
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
03c346bda5036c16e0584f1e697773c94ff92837
1,377
py
Python
benchmark.py
btclib-org/btclib_libsecp256k1
b7bdd0df121c9c674edc88a55ea6cadad75dafef
[ "MIT" ]
null
null
null
benchmark.py
btclib-org/btclib_libsecp256k1
b7bdd0df121c9c674edc88a55ea6cadad75dafef
[ "MIT" ]
null
null
null
benchmark.py
btclib-org/btclib_libsecp256k1
b7bdd0df121c9c674edc88a55ea6cadad75dafef
[ "MIT" ]
null
null
null
import time import btclib.ecc.dsa import btclib.ecc.ssa import coincurve from btclib.hashes import reduce_to_hlen from btclib.to_pub_key import pub_keyinfo_from_prv_key import btclib_libsecp256k1.dsa import btclib_libsecp256k1.ssa prvkey = 1 pubkey_bytes = pub_keyinfo_from_prv_key(prvkey)[0] msg_bytes = reduce_to_h...
25.036364
87
0.777778
197
1,377
5.111675
0.233503
0.063555
0.067527
0.079444
0.236346
0.196624
0.196624
0.196624
0.196624
0.196624
0
0.050791
0.127814
1,377
54
88
25.5
0.787677
0
0
0
0
0
0.023239
0
0
0
0
0
0.138889
1
0.166667
false
0
0.222222
0
0.388889
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03c4437ca693f17d281bdd30bb65c08f78eb2db5
7,392
py
Python
hah_classification/data.py
jieguangzhou/AIChallenger_SentimentAnalysis
4dcd10c2e12bd266fb19c6b5cf50346766a4a37b
[ "MIT" ]
null
null
null
hah_classification/data.py
jieguangzhou/AIChallenger_SentimentAnalysis
4dcd10c2e12bd266fb19c6b5cf50346766a4a37b
[ "MIT" ]
null
null
null
hah_classification/data.py
jieguangzhou/AIChallenger_SentimentAnalysis
4dcd10c2e12bd266fb19c6b5cf50346766a4a37b
[ "MIT" ]
null
null
null
from collections import Counter import logging import random import numpy as np import jieba from hah_classification.develop.IO import read_file, write_file import pandas as pd import os logger = logging.getLogger(__file__) logger.setLevel(logging.INFO) PAD_IDX = 0 UNK_IDX = 1 COLUMNS = ['location_traffic_convenienc...
36.235294
115
0.645157
948
7,392
4.75
0.198312
0.053298
0.027981
0.012436
0.434821
0.381301
0.356873
0.328892
0.315123
0.281368
0
0.005035
0.2477
7,392
203
116
36.413793
0.804711
0.049107
0
0.405405
0
0.006757
0.118096
0.044879
0
0
0
0
0
1
0.040541
false
0
0.054054
0.006757
0.128378
0.013514
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03c52c6e87b48e4cd8e5aedb1e34b9798cbe5aba
5,458
py
Python
lumapps/cli.py
aureldent/lumapps-sdk
9ee7ddbb0e5c94ec098f1d6c053bfd82698c2e8b
[ "MIT" ]
null
null
null
lumapps/cli.py
aureldent/lumapps-sdk
9ee7ddbb0e5c94ec098f1d6c053bfd82698c2e8b
[ "MIT" ]
1
2018-12-12T10:06:52.000Z
2018-12-12T10:31:56.000Z
lumapps/cli.py
aureldent/lumapps-sdk
9ee7ddbb0e5c94ec098f1d6c053bfd82698c2e8b
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function, unicode_literals import sys import argparse import json from lumapps.utils import ApiCallError, get_conf, set_conf, FILTERS from lumapps.client import ApiClient import logging LIST_CONFIGS = "***LIST_CONFIGS***" def parse_args(): s = "" for f in F...
30.662921
88
0.601869
725
5,458
4.369655
0.242759
0.022727
0.017361
0.018939
0.117109
0.051136
0
0
0
0
0
0.000989
0.259252
5,458
177
89
30.836158
0.782587
0.030414
0
0.104575
0
0
0.166068
0
0
0
0
0
0
1
0.045752
false
0
0.045752
0
0.130719
0.052288
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03c75ce6159591454805a4dc5c10c17e271ffe14
8,397
py
Python
webpreview/previews.py
taghash/webpreview
b86cb6d547ddbca40fe69ca59c11a0c6e058f6d5
[ "MIT" ]
null
null
null
webpreview/previews.py
taghash/webpreview
b86cb6d547ddbca40fe69ca59c11a0c6e058f6d5
[ "MIT" ]
2
2020-07-02T23:20:05.000Z
2020-07-03T07:26:36.000Z
webpreview/previews.py
taghash/webpreview
b86cb6d547ddbca40fe69ca59c11a0c6e058f6d5
[ "MIT" ]
1
2022-03-05T06:33:38.000Z
2022-03-05T06:33:38.000Z
import re import requests from requests.exceptions import * from bs4 import BeautifulSoup from .excepts import * from .helpers import process_image_url class PreviewBase(object): """ Base for all web preview. """ def __init__(self, url = None, properties = None, timeout=None, headers=None, content=N...
40.960976
150
0.617959
1,026
8,397
4.904483
0.210526
0.015898
0.029213
0.038951
0.333068
0.285374
0.274245
0.236089
0.200517
0.183029
0
0.009794
0.258307
8,397
204
151
41.161765
0.79817
0.232464
0
0.191667
0
0.016667
0.104377
0.02389
0
0
0
0
0
1
0.1
false
0.016667
0.05
0
0.316667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03c782e3bc4c98e44210318ac8cb634e86e76e91
13,832
py
Python
publicAPI/crest_endpoint.py
EVEprosper/ProsperAPI
2d25b9210d32ca777204b1dddb56848d7075dd85
[ "MIT" ]
13
2017-03-27T13:10:52.000Z
2020-07-30T09:33:11.000Z
publicAPI/crest_endpoint.py
EVEprosper/ProsperAPI
2d25b9210d32ca777204b1dddb56848d7075dd85
[ "MIT" ]
19
2016-11-14T00:58:54.000Z
2018-06-11T16:54:25.000Z
publicAPI/crest_endpoint.py
EVEprosper/ProsperAPI
2d25b9210d32ca777204b1dddb56848d7075dd85
[ "MIT" ]
5
2017-04-19T01:12:06.000Z
2021-03-07T02:23:45.000Z
"""crest_endpoint.py: collection of public crest endpoints for Prosper""" import sys from os import path from datetime import datetime from enum import Enum import logging import ujson as json from flask import Flask, Response, jsonify from flask_restful import reqparse, Api, Resource, request import publicAPI.forec...
31.579909
74
0.52393
1,362
13,832
5.155653
0.162261
0.039875
0.018513
0.02421
0.601538
0.568072
0.552834
0.506124
0.487895
0.472088
0
0.004347
0.384688
13,832
437
75
31.652174
0.820703
0.07367
0
0.577128
0
0
0.132834
0.004178
0
0
0
0.002288
0
1
0.018617
false
0
0.042553
0
0.12234
0.00266
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03c7c1d39078369622ad7852e9cd54cf976ecdc8
1,536
py
Python
script-diagnostico-covid19/conexao_db.py
am1701/estudos-python
67b82161782a6862c3a81ab59ee3d92d7c262b36
[ "MIT" ]
null
null
null
script-diagnostico-covid19/conexao_db.py
am1701/estudos-python
67b82161782a6862c3a81ab59ee3d92d7c262b36
[ "MIT" ]
null
null
null
script-diagnostico-covid19/conexao_db.py
am1701/estudos-python
67b82161782a6862c3a81ab59ee3d92d7c262b36
[ "MIT" ]
null
null
null
#!/bin/python3 import sys from time import sleep try: import mysql.connector except: print('''Você precisa do modulo mysql_connector instalado, no README.md tem todos os passos necessários para a instalação deste modulo.''') print('='*30) pritn("O script irá encerrar em 3 segundos. Bye!!") sleep(3) sys.exit(1)...
22.925373
172
0.673177
205
1,536
5.02439
0.517073
0.040777
0.049515
0.052427
0.234951
0.176699
0.100971
0.100971
0
0
0
0.028986
0.191406
1,536
66
173
23.272727
0.800322
0.008464
0
0.372549
0
0.039216
0.394079
0.032237
0
0
0
0
0
1
0.058824
false
0.039216
0.058824
0
0.156863
0.156863
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03cf66408abae7099aee97c7a650861c8b31d19d
3,233
py
Python
2021/day_18.py
Javitronxo/AdventOfCode
3a31544824881d353d899bc820d92b005af6b4eb
[ "MIT" ]
1
2021-12-03T14:37:28.000Z
2021-12-03T14:37:28.000Z
2021/day_18.py
Javitronxo/AdventOfCode
3a31544824881d353d899bc820d92b005af6b4eb
[ "MIT" ]
null
null
null
2021/day_18.py
Javitronxo/AdventOfCode
3a31544824881d353d899bc820d92b005af6b4eb
[ "MIT" ]
null
null
null
import collections import itertools from dataclasses import dataclass from typing import List @dataclass class Node: value: int depth: int def add_numbers(number_one: List[Node], number_two: List[Node]) -> List[Node]: new_number = [ Node(node.value, node.depth + 1) for node in number_one...
33.677083
99
0.519332
390
3,233
4.133333
0.212821
0.128412
0.080645
0.065136
0.336228
0.210298
0.165633
0.165633
0.165633
0.138337
0
0.018127
0.38571
3,233
95
100
34.031579
0.793555
0.018868
0
0.15
0
0
0.027778
0.009785
0
0
0
0
0
1
0.0375
false
0.025
0.05
0
0.15
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03d1137912ab50699b6179c220fe8310bb178774
4,428
py
Python
server.py
Celnardur/simple_server
930f0066b26781d5a77ae3ac60caa0ac9b685b9f
[ "MIT" ]
null
null
null
server.py
Celnardur/simple_server
930f0066b26781d5a77ae3ac60caa0ac9b685b9f
[ "MIT" ]
null
null
null
server.py
Celnardur/simple_server
930f0066b26781d5a77ae3ac60caa0ac9b685b9f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from http.server import BaseHTTPRequestHandler, HTTPServer, SimpleHTTPRequestHandler import json import os import mimetypes import sys # import api bufsize = 4096 base_path = "./www" class server(BaseHTTPRequestHandler): def get_payload(self): if not ('Content-Length' in self.heade...
30.75
84
0.536811
546
4,428
4.20696
0.232601
0.059208
0.023509
0.023944
0.299521
0.275577
0.223335
0.162386
0.162386
0.162386
0
0.026111
0.334011
4,428
143
85
30.965035
0.752798
0.128275
0
0.278351
0
0
0.138802
0
0
0
0
0
0
1
0.061856
false
0
0.051546
0
0.195876
0.113402
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03d16b56e7eb71686fb7086761419a2ac514491c
5,771
py
Python
contents/1_command_line_reinforcement_learning/treasure_on_right.py
Pankaj-Baranwal/Reinforcement-learning-with-tensorflow
cf738d3e975aa9d2384dcd1a65dbdd156ddd970f
[ "MIT" ]
null
null
null
contents/1_command_line_reinforcement_learning/treasure_on_right.py
Pankaj-Baranwal/Reinforcement-learning-with-tensorflow
cf738d3e975aa9d2384dcd1a65dbdd156ddd970f
[ "MIT" ]
null
null
null
contents/1_command_line_reinforcement_learning/treasure_on_right.py
Pankaj-Baranwal/Reinforcement-learning-with-tensorflow
cf738d3e975aa9d2384dcd1a65dbdd156ddd970f
[ "MIT" ]
null
null
null
""" A simple example for Reinforcement Learning using table lookup Q-learning method. An agent "o" is on the left of a 1 dimensional world, the treasure is on the rightmost location. Run this program and to see how the agent will improve its strategy of finding the treasure. View more on my tutorial page: https://morv...
40.929078
603
0.666609
881
5,771
4.266742
0.315551
0.03352
0.009311
0.013567
0.142059
0.117584
0.081937
0.063315
0.063315
0.051609
0
0.01105
0.247271
5,771
140
604
41.221429
0.854282
0.300295
0
0.151899
0
0
0.053912
0
0
0
0
0
0
1
0.075949
false
0
0.037975
0
0.177215
0.063291
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03d430af1217994371a7fc92b45f322c0f6446ff
6,427
py
Python
common/data.py
looselyconnected/fastai
12d38d760393f1a677cc825d99283c8efcffbef5
[ "MIT" ]
null
null
null
common/data.py
looselyconnected/fastai
12d38d760393f1a677cc825d99283c8efcffbef5
[ "MIT" ]
null
null
null
common/data.py
looselyconnected/fastai
12d38d760393f1a677cc825d99283c8efcffbef5
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from fastai.structured import apply_cats from io import StringIO from sklearn.metrics import mean_squared_error import matplotlib.pyplot as plt import seaborn as sns import time import os from contextlib import contextmanager from sklearn.metrics import mean_squared_error def t...
34.005291
110
0.632644
976
6,427
4.009221
0.256148
0.030667
0.022489
0.020445
0.193202
0.157168
0.106312
0.012267
0
0
0
0.026497
0.230745
6,427
188
111
34.18617
0.764968
0.063793
0
0.115108
0
0
0.060929
0
0
0
0
0
0
1
0.122302
false
0
0.122302
0.007194
0.330935
0.028777
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03d7a95c066c675726f7f6a54e1d1bc42d1e9abc
4,902
py
Python
neural_network_lyapunov/examples/tinydiffsim/learn_ca_dyn.py
hongkai-dai/neural-network-lyapunov-1
8843c13f69f7f39cbb939ab250413e76f61843f6
[ "MIT" ]
58
2021-06-21T08:59:52.000Z
2022-03-31T14:35:23.000Z
neural_network_lyapunov/examples/tinydiffsim/learn_ca_dyn.py
StanfordASL/neural-network-lyapunov
9e5db1c7f91b42df729026c9aa8575bc126f66b6
[ "MIT" ]
8
2021-08-22T05:31:23.000Z
2022-03-29T03:47:07.000Z
neural_network_lyapunov/examples/tinydiffsim/learn_ca_dyn.py
StanfordASL/neural-network-lyapunov
9e5db1c7f91b42df729026c9aa8575bc126f66b6
[ "MIT" ]
11
2021-06-21T04:29:59.000Z
2022-03-30T05:54:43.000Z
import neural_network_lyapunov.worlds as worlds import neural_network_lyapunov.utils as utils import neural_network_lyapunov.control_affine_system as mut import pytinydiffsim as pd import argparse import torch import yaml def load_multibody(cfg): world = pd.TinyWorld() urdf_data = pd.TinyUrdfParser().load_u...
33.806897
77
0.583639
657
4,902
4.112633
0.208524
0.066617
0.041451
0.03997
0.285344
0.226499
0.139156
0.072539
0.072539
0.072539
0
0.008496
0.279682
4,902
144
78
34.041667
0.756726
0
0
0.113043
0
0
0.083639
0
0
0
0
0
0.008696
1
0.034783
false
0
0.06087
0
0.121739
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03da330638b8a1576e15bc62abc446e553a243a9
5,210
py
Python
WF_SDK/dmm.py
Digilent/WaveForms-SDK-Getting-Started
ae33d5e19552dea41ddfca6ec038fe462a922c73
[ "MIT" ]
3
2021-12-14T18:08:11.000Z
2022-02-26T11:06:30.000Z
WF_SDK/dmm.py
Digilent/WaveForms-SDK-Getting-Started
ae33d5e19552dea41ddfca6ec038fe462a922c73
[ "MIT" ]
null
null
null
WF_SDK/dmm.py
Digilent/WaveForms-SDK-Getting-Started
ae33d5e19552dea41ddfca6ec038fe462a922c73
[ "MIT" ]
null
null
null
""" DIGITAL MULTIMETER CONTROL FUNCTIONS: open, measure, close """ import ctypes # import the C compatible data types from sys import platform, path # this is needed to check the OS type and get the PATH from os import sep # OS specific file path separators # load the dynamic lib...
43.057851
149
0.638196
616
5,210
5.288961
0.238636
0.081645
0.09822
0.057397
0.391958
0.38981
0.38981
0.38981
0.38981
0.38981
0
0.011693
0.212092
5,210
120
150
43.416667
0.78173
0.234165
0
0.178571
0
0
0.070559
0
0
0
0
0
0
1
0.053571
false
0
0.071429
0
0.196429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03db746274ce14f01fd2c68bd4565066f688e0cc
4,765
py
Python
ActionSystem.py
Rookfighter/TextAdventure
f24176065c9be26bd3bee983c2a63215452cb314
[ "MIT" ]
2
2016-03-21T15:26:02.000Z
2016-03-21T15:26:05.000Z
ActionSystem.py
Rookfighter/TextAdventure
f24176065c9be26bd3bee983c2a63215452cb314
[ "MIT" ]
null
null
null
ActionSystem.py
Rookfighter/TextAdventure
f24176065c9be26bd3bee983c2a63215452cb314
[ "MIT" ]
null
null
null
from EventSystem import Event import utils class ActionSystem: def __init__(self, player, rooms, tuiSystem, eventQueue): self.__player = player self.__rooms = rooms self.__tuiSystem = tuiSystem self.__eventQueue = eventQueue # a mapping for input actions to functions ...
30.741935
87
0.583631
484
4,765
5.485537
0.229339
0.06855
0.036911
0.045198
0.183804
0.175141
0.151789
0.151789
0.121657
0.086252
0
0.000617
0.320252
4,765
155
88
30.741935
0.81908
0.137671
0
0.247525
0
0
0.028412
0
0
0
0
0
0
1
0.128713
false
0
0.019802
0.009901
0.257426
0.128713
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03deed2eb45e83f7284046e17bf2aaf69dbbad88
14,394
py
Python
train_model.py
taiducvu/VNG-NSFW-DETECTION
f49b6ad21ed9c8646c402a37015a80258fb79a68
[ "MIT" ]
null
null
null
train_model.py
taiducvu/VNG-NSFW-DETECTION
f49b6ad21ed9c8646c402a37015a80258fb79a68
[ "MIT" ]
null
null
null
train_model.py
taiducvu/VNG-NSFW-DETECTION
f49b6ad21ed9c8646c402a37015a80258fb79a68
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import tensorflow as tf import data as dt import vng_model as md import time import csv import math FLAGS = tf.app.flags.FLAGS tf.app.flags.DEFINE_string('train_dir', '/home/taivu/workspace/Pycharm_...
41.481268
118
0.553633
1,732
14,394
4.33776
0.170323
0.011314
0.021296
0.031945
0.388527
0.310928
0.238387
0.182084
0.157327
0.141887
0
0.018474
0.304293
14,394
346
119
41.601156
0.731776
0.133458
0
0.164103
0
0.005128
0.108865
0.039315
0
0
0
0
0
1
0.020513
false
0
0.051282
0
0.071795
0.05641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03deff63d4fe5a3fc6c43174f1b43ca9ad27e1c4
1,417
py
Python
scanpy_gene_filtering.py
granatumx/gbox-py
b3e264a22bc6a041f2dd631d952eae29c0ecae21
[ "MIT" ]
null
null
null
scanpy_gene_filtering.py
granatumx/gbox-py
b3e264a22bc6a041f2dd631d952eae29c0ecae21
[ "MIT" ]
1
2020-06-16T17:14:45.000Z
2020-06-16T17:14:45.000Z
scanpy_gene_filtering.py
granatumx/gbox-py
b3e264a22bc6a041f2dd631d952eae29c0ecae21
[ "MIT" ]
2
2020-06-16T16:42:40.000Z
2020-08-28T16:59:42.000Z
import math import scanpy.api as sc import numpy as np from granatum_sdk import Granatum def main(): gn = Granatum() adata = gn.ann_data_from_assay(gn.get_import("assay")) min_cells_expressed = gn.get_arg("min_cells_expressed") min_mean = gn.get_arg("min_mean") max_mean = gn.get_arg("max_mean") ...
26.735849
129
0.637262
200
1,417
4.205
0.405
0.035672
0.047562
0.039239
0
0
0
0
0
0
0
0.007407
0.237826
1,417
52
130
27.25
0.771296
0
0
0
0
0.025641
0.188426
0
0
0
0
0
0
1
0.025641
false
0
0.128205
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03e365fc58c1889f65eac6521d7aecdc3431dbf8
3,538
py
Python
pagapp/application_api/album_api.py
eugeneandrienko/PyArtistsGallery
b75114955859d45d9dfb5c901213f25a6e09f488
[ "MIT" ]
null
null
null
pagapp/application_api/album_api.py
eugeneandrienko/PyArtistsGallery
b75114955859d45d9dfb5c901213f25a6e09f488
[ "MIT" ]
null
null
null
pagapp/application_api/album_api.py
eugeneandrienko/PyArtistsGallery
b75114955859d45d9dfb5c901213f25a6e09f488
[ "MIT" ]
null
null
null
"""Handlers for albums' API calls.""" import json from flask import request, current_app from flask_login import login_required from pagapp.support_functions import remove_danger_symbols from pagapp.application_api import application_api from pagapp.models import db from pagapp.models.albums import Albums from pagapp...
31.589286
80
0.644997
444
3,538
4.952703
0.236486
0.047749
0.043201
0.047294
0.374261
0.311505
0.230105
0.200091
0.200091
0.160982
0
0.008169
0.238836
3,538
111
81
31.873874
0.808392
0.153759
0
0.314286
0
0
0.169896
0.007612
0
0
0
0
0
1
0.071429
false
0
0.128571
0.014286
0.314286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03e4c99b5e129d999b826ed6583329b22a13afb6
2,097
py
Python
DNBC4tools/tools/utils.py
lishuangshuang0616/DNBC4dev
2fc54e87edc5586e92d470669b6aa37661ac016a
[ "MIT" ]
null
null
null
DNBC4tools/tools/utils.py
lishuangshuang0616/DNBC4dev
2fc54e87edc5586e92d470669b6aa37661ac016a
[ "MIT" ]
null
null
null
DNBC4tools/tools/utils.py
lishuangshuang0616/DNBC4dev
2fc54e87edc5586e92d470669b6aa37661ac016a
[ "MIT" ]
null
null
null
import os,sys import time import logging import sys from datetime import timedelta from subprocess import check_call from DNBC4tools.__init__ import _root_dir def str_mkdir(arg): if not os.path.exists(arg): os.system('mkdir -p %s'%arg) def change_path(): os.environ['PATH'] += ':'+'/'.join(str(_root_di...
33.285714
93
0.593705
260
2,097
4.653846
0.373077
0.041322
0.027273
0.034711
0.091736
0.063636
0.063636
0.063636
0
0
0
0.004848
0.213162
2,097
62
94
33.822581
0.728485
0
0
0.037037
0
0
0.156414
0.04578
0.018519
0
0
0
0
1
0.12963
false
0.018519
0.12963
0
0.277778
0.092593
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03e65ebb8db11f83d90833408439680a1da222bc
3,432
py
Python
riberry/app/backends/impl/celery/base.py
srafehi/riberry
2ffa48945264177c6cef88512c1bc80ca4bf1d5e
[ "MIT" ]
2
2019-12-09T10:24:36.000Z
2019-12-09T10:26:56.000Z
riberry/app/backends/impl/celery/base.py
srafehi/riberry
2ffa48945264177c6cef88512c1bc80ca4bf1d5e
[ "MIT" ]
2
2018-06-11T11:34:28.000Z
2018-08-22T12:00:19.000Z
riberry/app/backends/impl/celery/base.py
srafehi/riberry
2ffa48945264177c6cef88512c1bc80ca4bf1d5e
[ "MIT" ]
null
null
null
from typing import Dict, AnyStr import celery import riberry from . import patch, tasks, addons from .executor import TaskExecutor from .tracker import CeleryExecutionTracker def send_task_process_rib_kwargs(self, *args, **kwargs): riberry_properties = {} if kwargs.get('kwargs'): for key, value in k...
34.32
108
0.668415
396
3,432
5.462121
0.242424
0.060102
0.02589
0.027739
0.192325
0.092926
0
0
0
0
0
0.00038
0.232809
3,432
99
109
34.666667
0.821117
0.018939
0
0.027027
0
0
0.062128
0.026159
0
0
0
0
0
1
0.135135
false
0
0.081081
0.067568
0.364865
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03e6fbea2bc31d53355d4df0ef6a940806f422a0
2,753
py
Python
amitypes/hsd.py
slac-lcls/amityping
a9f9c1a0d9077ff093e05a383ecd3bd05e0ce64d
[ "BSD-3-Clause-LBNL" ]
null
null
null
amitypes/hsd.py
slac-lcls/amityping
a9f9c1a0d9077ff093e05a383ecd3bd05e0ce64d
[ "BSD-3-Clause-LBNL" ]
null
null
null
amitypes/hsd.py
slac-lcls/amityping
a9f9c1a0d9077ff093e05a383ecd3bd05e0ce64d
[ "BSD-3-Clause-LBNL" ]
1
2020-12-13T01:54:32.000Z
2020-12-13T01:54:32.000Z
import typing from mypy_extensions import TypedDict from amitypes.array import Array1d __all__ = [ 'TypedDict', 'PeakTimes', 'HSDSegementPeakTimes', 'HSDPeakTimes', 'Peaks', 'HSDSegmentPeaks', 'HSDPeaks', 'HSDSegmentWaveforms', 'HSDWaveforms', 'HSDAssemblies', 'HSDTypes', ]...
25.256881
64
0.392663
174
2,753
6.183908
0.252874
0.027881
0.036245
0
0
0
0
0
0
0
0
0.062049
0.496549
2,753
108
65
25.490741
0.714286
0
0
0.034483
0
0
0.097348
0
0
0
0
0
0
1
0
false
0
0.034483
0
0.034483
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03e72378fe20cb97a330f6cb48639d89ec4e8658
4,975
py
Python
lib/astc-encoder/Test/astc_test_image_dl.py
atteneder/KTX-Software
15369663a43d72972dfe0a7e3597d3ef6d90b6b9
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-1-Clause", "BSD-3-Clause" ]
619
2015-04-30T14:55:02.000Z
2022-03-30T06:56:14.000Z
lib/astc-encoder/Test/astc_test_image_dl.py
atteneder/KTX-Software
15369663a43d72972dfe0a7e3597d3ef6d90b6b9
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-1-Clause", "BSD-3-Clause" ]
283
2018-02-05T01:42:19.000Z
2022-03-24T09:26:16.000Z
lib/astc-encoder/Test/astc_test_image_dl.py
atteneder/KTX-Software
15369663a43d72972dfe0a7e3597d3ef6d90b6b9
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-1-Clause", "BSD-3-Clause" ]
167
2015-04-30T15:06:25.000Z
2022-03-24T03:02:00.000Z
#!/usr/bin/env python3 # SPDX-License-Identifier: Apache-2.0 # ----------------------------------------------------------------------------- # Copyright 2019-2020 Arm Limited # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may ob...
27.638889
79
0.617085
688
4,975
4.405523
0.335756
0.029693
0.026394
0.032333
0.168591
0.151105
0.138898
0.13065
0.13065
0.114814
0
0.01485
0.24201
4,975
179
80
27.793296
0.788915
0.410653
0
0.135135
0
0
0.116831
0.035779
0
0
0
0
0
1
0.081081
false
0
0.054054
0
0.148649
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03ea99f6452fd0664caac74940ef228cb2d560ff
3,549
py
Python
cmapPy/clue_api_client/clue_api_client.py
RCBiczok/cmapPy
580b0d656892e72f58047666a94e2769ddf63b3f
[ "BSD-3-Clause" ]
2
2019-03-01T18:20:10.000Z
2019-05-05T13:04:32.000Z
cmapPy/clue_api_client/clue_api_client.py
RCBiczok/cmapPy
580b0d656892e72f58047666a94e2769ddf63b3f
[ "BSD-3-Clause" ]
10
2022-03-14T18:40:45.000Z
2022-03-22T12:45:02.000Z
cmapPy/clue_api_client/clue_api_client.py
RCBiczok/cmapPy
580b0d656892e72f58047666a94e2769ddf63b3f
[ "BSD-3-Clause" ]
2
2019-01-30T10:37:50.000Z
2019-01-30T10:45:37.000Z
import requests import logging import cmapPy.clue_api_client.setup_logger as setup_logger import json __authors__ = "David L. Lahr" __email__ = "dlahr@broadinstitute.org" logger = logging.getLogger(setup_logger.LOGGER_NAME) class ClueApiClient(object): """Basic class for running queries against CLUE api ""...
35.848485
130
0.658495
461
3,549
4.874187
0.234273
0.057855
0.048954
0.031153
0.556742
0.52826
0.489542
0.47441
0.47441
0.3587
0
0.001475
0.235841
3,549
99
131
35.848485
0.827065
0.257537
0
0.354167
0
0
0.138097
0.018065
0
0
0
0
0.020833
1
0.145833
false
0
0.083333
0
0.354167
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03ec5ee390c83bab9a9210d74914176c04449ccd
2,467
py
Python
src/gtk3/entrycompletion/MainWindow.py
alexandrebarbaruiva/gui-python-gtk
7b8e8ab05645271ae55e1e2165eefc9c8f5b0250
[ "MIT" ]
42
2020-05-09T16:23:23.000Z
2022-03-28T13:05:32.000Z
src/gtk3/entrycompletion/MainWindow.py
alexandrebarbaruiva/gui-python-gtk
7b8e8ab05645271ae55e1e2165eefc9c8f5b0250
[ "MIT" ]
2
2020-05-27T19:23:54.000Z
2022-03-08T01:42:59.000Z
src/gtk3/entrycompletion/MainWindow.py
alexandrebarbaruiva/gui-python-gtk
7b8e8ab05645271ae55e1e2165eefc9c8f5b0250
[ "MIT" ]
8
2020-05-09T16:23:28.000Z
2022-03-31T22:44:45.000Z
# -*- coding: utf-8 -*- """GTK.EntryCompletion().""" import gi gi.require_version(namespace='Gtk', version='3.0') from gi.repository import Gtk, GObject, Gio class MainWindow(Gtk.ApplicationWindow): brazilian_states = [ (1, 'Acre'), (2, 'Alagoas'), (3, 'Amapá'), (4, 'Amazonas'), (5, 'Bahia'), (...
32.038961
88
0.615728
301
2,467
4.86711
0.561462
0.019113
0.015017
0.027304
0
0
0
0
0
0
0
0.032933
0.224564
2,467
76
89
32.460526
0.73288
0.018241
0
0
0
0
0.154387
0.011176
0
0
0
0
0
1
0.096154
false
0
0.057692
0
0.211538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03f0e18a2fb018fcb36f1fa0b744ae71787750e6
4,821
py
Python
Chapter06/chapter_6_utils.py
YongBeomKim/py-finance
7c7830904b67cd23c47e793e1f47a9702e7765f3
[ "MIT" ]
1
2021-03-16T04:32:15.000Z
2021-03-16T04:32:15.000Z
Chapter06/chapter_6_utils.py
YongBeomKim/py-finance
7c7830904b67cd23c47e793e1f47a9702e7765f3
[ "MIT" ]
null
null
null
Chapter06/chapter_6_utils.py
YongBeomKim/py-finance
7c7830904b67cd23c47e793e1f47a9702e7765f3
[ "MIT" ]
null
null
null
import numpy as np from scipy.stats import norm def simulate_gbm(s_0, mu, sigma, n_sims, T, N, random_seed=42, antithetic_var=False): ''' Function used for simulating stock returns using Geometric Brownian Motion. Parameters ---------- s_0 : float Initial stock price mu : float ...
31.103226
117
0.581
648
4,821
4.186728
0.257716
0.010321
0.016218
0.018798
0.382234
0.352009
0.336896
0.237376
0.214523
0.180612
0
0.018204
0.316324
4,821
154
118
31.305195
0.804915
0.417133
0
0.163265
0
0
0.015789
0
0
0
0
0
0
1
0.061224
false
0
0.040816
0
0.163265
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03f1cc820b06286b1457546292140f6fdb636884
552
py
Python
namedtuple.py
rmayherr/python
830aec82e3ab155b66d01032eac71bbe6f961fce
[ "MIT" ]
null
null
null
namedtuple.py
rmayherr/python
830aec82e3ab155b66d01032eac71bbe6f961fce
[ "MIT" ]
null
null
null
namedtuple.py
rmayherr/python
830aec82e3ab155b66d01032eac71bbe6f961fce
[ "MIT" ]
null
null
null
from collections import namedtuple import sys def avg_marks_manual_input(): l = int(input("How many times?")) r = namedtuple('r',input("Headers?").split(' '),rename=True) a = [r._make(input().split(' ')) for i in range(l)] print(f'{sum([int(i.marks) for i in a]) / l:.2f}') first_line = sys.stdin.read...
36.8
106
0.637681
91
552
3.78022
0.395604
0.046512
0.069767
0.069767
0.331395
0.145349
0.145349
0.145349
0.145349
0.145349
0
0.004175
0.132246
552
14
107
39.428571
0.713987
0
0
0
0
0.090909
0.222826
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.272727
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03f2a4a307188ecd417f28abec6cc88bd1e7da2d
829
py
Python
tests/test_simulator/test_ff.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
167
2017-10-08T00:59:22.000Z
2022-02-08T00:14:39.000Z
tests/test_simulator/test_ff.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
719
2017-08-29T17:58:28.000Z
2022-03-31T23:39:18.000Z
tests/test_simulator/test_ff.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
14
2017-09-01T03:25:16.000Z
2021-11-05T13:30:24.000Z
from .test_primitives import PRIM_FF import magma as m from magma.simulator import PythonSimulator from magma.scope import * def test_sim_ff(): class TestCircuit(m.Circuit): io = m.IO(I=m.In(m.Bit), O=m.Out(m.Bit)) + m.ClockIO() ff = PRIM_FF() m.wire(io.I, ff.D) m.wire(ff.Q, io.O) ...
24.382353
62
0.651387
128
829
4.132813
0.296875
0.181474
0.085066
0.132325
0.497164
0.497164
0.497164
0.497164
0.497164
0.497164
0
0
0.221954
829
33
63
25.121212
0.820155
0
0
0.555556
0
0
0
0
0
0
0
0
0.185185
1
0.037037
false
0
0.148148
0
0.296296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03f2f46697905dc14454de66877a20450a1d4124
2,223
py
Python
literature-review/q-learning/q-learning.py
ByronDev121/literature-review
23c276e92534793d85c7af5c24d93603f8ee7678
[ "MIT" ]
null
null
null
literature-review/q-learning/q-learning.py
ByronDev121/literature-review
23c276e92534793d85c7af5c24d93603f8ee7678
[ "MIT" ]
null
null
null
literature-review/q-learning/q-learning.py
ByronDev121/literature-review
23c276e92534793d85c7af5c24d93603f8ee7678
[ "MIT" ]
null
null
null
import gym import time import os import matplotlib.pyplot as plt import numpy as np from gym.envs.registration import register from agent import QAgent register( id='FrozenLake8x8NoSLip-v0', entry_point='gym.envs.toy_text:FrozenLakeEnv', # kwargs={"map_name": "8x8", 'is_slippery': False}, kwargs={'is_s...
26.783133
91
0.634728
311
2,223
4.369775
0.321543
0.112583
0.105224
0.055188
0.182487
0.150846
0.086093
0.086093
0.086093
0.060338
0
0.02221
0.210076
2,223
82
92
27.109756
0.751708
0.036887
0
0.086957
0
0
0.124474
0.035096
0
0
0
0
0
1
0
false
0
0.101449
0
0.101449
0.057971
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03f309a30afe79b57c7abb4ede08dda5bc7ee303
625
py
Python
data/clean_test.py
iotayo/aivivn-tone
7f3d5ce41d5a0bd659f3aaeb7d351a7a046c3004
[ "MIT" ]
40
2019-07-31T18:13:13.000Z
2021-12-07T09:45:07.000Z
data/clean_test.py
iotayo/aivivn-tone
7f3d5ce41d5a0bd659f3aaeb7d351a7a046c3004
[ "MIT" ]
5
2019-08-07T10:21:52.000Z
2021-05-26T06:08:48.000Z
data/clean_test.py
iotayo/aivivn-tone
7f3d5ce41d5a0bd659f3aaeb7d351a7a046c3004
[ "MIT" ]
15
2019-07-31T17:57:53.000Z
2021-05-27T10:43:46.000Z
from tqdm import tqdm input_path = "./test_word_per_line.txt" output_path = "./test_cleaned.txt" curr_id = "" curr_sent = [] with open(output_path, mode="wt", encoding="utf-8") as f: lines = open(input_path).readlines() for idx, line in tqdm(enumerate(lines)): if idx == 0: continue line = line.strip() line_...
28.409091
59
0.6288
101
625
3.673267
0.425743
0.12938
0.053908
0.070081
0.167116
0.167116
0.167116
0.167116
0.167116
0
0
0.013384
0.1632
625
21
60
29.761905
0.695985
0
0
0.2
0
0
0.1072
0.0384
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03f3ee5a1e2a0e3c2f5c128492384043eac78f5c
1,583
py
Python
translators/test.py
uiuc-arc/Storm
afa9cc5d4ef7e163a5255140c27aca4cf1b47036
[ "MIT" ]
2
2020-01-02T22:55:04.000Z
2021-12-10T01:21:30.000Z
translators/test.py
uiuc-arc/Storm
afa9cc5d4ef7e163a5255140c27aca4cf1b47036
[ "MIT" ]
null
null
null
translators/test.py
uiuc-arc/Storm
afa9cc5d4ef7e163a5255140c27aca4cf1b47036
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import antlr4 from antlr4 import * from language.antlr.Template2Lexer import Template2Lexer from language.antlr.Template2Parser import Template2Parser from language.antlr.Template2Listener import Template2Listener from newbackends.pyrotranslator import PyroTranslator from languag...
27.293103
62
0.759949
189
1,583
6.253968
0.386243
0.045685
0.086294
0.096447
0.054146
0.054146
0
0
0
0
0
0.012614
0.098547
1,583
57
63
27.77193
0.815697
0.012634
0
0
0
0
0.059012
0
0
0
0
0
0
1
0.05
false
0.025
0.2
0
0.275
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03f524b31fd0d91cd3b0e302abe39bb4f73b97a6
6,355
py
Python
pytc/experiments/base.py
jharman25/pytc
d9ccde3f04e35a3d821ff37a4ad42e62a048d4ac
[ "Unlicense" ]
20
2017-04-27T16:30:03.000Z
2021-08-12T19:42:05.000Z
pytc/experiments/base.py
jharman25/pytc
d9ccde3f04e35a3d821ff37a4ad42e62a048d4ac
[ "Unlicense" ]
15
2016-12-12T20:40:44.000Z
2022-02-20T12:05:37.000Z
pytc/experiments/base.py
jharman25/pytc
d9ccde3f04e35a3d821ff37a4ad42e62a048d4ac
[ "Unlicense" ]
6
2016-06-23T00:54:21.000Z
2020-05-19T05:24:20.000Z
__description__ = \ """ experiments.py Classes for loading experimental ITC data and associating those data with a model. Units: Volumes are in microliters Temperatures are in Kelvin Concentrations are in molar Energy is `units`, where `units` is specified when instantiating the ITCExperiment cl...
24.631783
83
0.557671
722
6,355
4.728532
0.296399
0.044815
0.041886
0.02109
0.265378
0.2314
0.196251
0.179262
0.132982
0.132982
0
0.016627
0.346971
6,355
257
84
24.727626
0.806024
0.260425
0
0.333333
0
0
0.035225
0
0
0
0
0
0
1
0.196078
false
0.009804
0.019608
0
0.392157
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03f8ccce3ecf35b88bf241958bca977a39da0829
2,743
py
Python
tests/_geom/test_path_bezier_3d_continual.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
tests/_geom/test_path_bezier_3d_continual.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
tests/_geom/test_path_bezier_3d_continual.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
import re from random import randint from typing import Match from typing import Optional from retrying import retry import apysc as ap from apysc._expression import var_names from tests.testing_helper import assert_attrs class TestPathBezier3DContinual: @retry(stop_max_attempt_number=15, wait_fi...
38.633803
78
0.582574
311
2,743
4.755627
0.244373
0.043272
0.08046
0.085193
0.633536
0.633536
0.532792
0.49831
0.49831
0.406356
0
0.050375
0.319723
2,743
70
79
39.185714
0.742229
0
0
0.285714
0
0
0.125327
0.075196
0
0
0
0
0.126984
1
0.047619
false
0
0.126984
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03fa298b7ad91850feb3603a0d09e4d69c6f4462
2,108
py
Python
cogs/owner.py
SuperYellowSystem/FactorioQuizzBot
55dfea657c64dd9d92bfa9657de66159cc7e79e9
[ "MIT" ]
1
2018-04-08T16:47:02.000Z
2018-04-08T16:47:02.000Z
cogs/owner.py
SuperYellowSystem/FactorioQuizBot
55dfea657c64dd9d92bfa9657de66159cc7e79e9
[ "MIT" ]
null
null
null
cogs/owner.py
SuperYellowSystem/FactorioQuizBot
55dfea657c64dd9d92bfa9657de66159cc7e79e9
[ "MIT" ]
null
null
null
# NB: Based on the work of Rapptz on RoboDanny # src: https://github.com/Rapptz/RoboDanny/blob/rewrite/cogs/admin.py # ====================================================================== # imports # ====================================================================== from discord.ext import commands as cmds import...
33.460317
72
0.52277
243
2,108
4.440329
0.345679
0.038925
0.036145
0.047266
0.578313
0.569045
0.569045
0.569045
0.512512
0.456905
0
0
0.223435
2,108
62
73
34
0.659133
0.221537
0
0.585366
0
0
0.167734
0.069142
0
0
0
0
0
1
0.04878
false
0
0.097561
0
0.170732
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03fac18b0bfdebf09b938bb372680e33554a0ff7
817
py
Python
Problem Solving with Algorithms and Data Structures/Chapter 1/e14.py
ltdangkhoa/Computer-Science-Fundamental
b70ba714e1dd13fcb377125e047c5fc08d3a82b3
[ "MIT" ]
null
null
null
Problem Solving with Algorithms and Data Structures/Chapter 1/e14.py
ltdangkhoa/Computer-Science-Fundamental
b70ba714e1dd13fcb377125e047c5fc08d3a82b3
[ "MIT" ]
null
null
null
Problem Solving with Algorithms and Data Structures/Chapter 1/e14.py
ltdangkhoa/Computer-Science-Fundamental
b70ba714e1dd13fcb377125e047c5fc08d3a82b3
[ "MIT" ]
null
null
null
from e14_b import MyDeck, MyCard def demo_a(): card_2_heart = MyCard(2, '❤') print(card_2_heart) card_3_diamond = MyCard(3, '♦') print(card_3_diamond) card_13_spade = MyCard(13, '♠') print(card_13_spade) def demo_b(): cards_deck = MyDeck(num_of_deck=1) cards_deck.shuffle_deck() pr...
24.757576
63
0.662179
130
817
3.830769
0.323077
0.090361
0.040161
0.060241
0.156627
0.156627
0.156627
0.156627
0.156627
0.156627
0
0.032051
0.23623
817
32
64
25.53125
0.761218
0.009792
0
0.166667
0
0
0.003722
0
0
0
0
0
0
1
0.083333
false
0
0.041667
0
0.125
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03ffdfae2150b0ebaf5889a8ceb87f9a3acb8bf4
616
py
Python
pyrival/graphs/components.py
MattJDavidson/aoc2021
1c26697da55e58408f36525639d201303f808b1b
[ "Apache-2.0" ]
748
2018-09-27T01:08:12.000Z
2022-03-25T17:31:56.000Z
pyrival/graphs/components.py
MattJDavidson/aoc2021
1c26697da55e58408f36525639d201303f808b1b
[ "Apache-2.0" ]
38
2019-02-24T14:50:02.000Z
2022-03-25T01:27:50.000Z
pyrival/graphs/components.py
MattJDavidson/aoc2021
1c26697da55e58408f36525639d201303f808b1b
[ "Apache-2.0" ]
288
2018-10-29T11:55:57.000Z
2022-03-20T04:37:27.000Z
def connected_components(n, graph): components, visited = [], [False] * n def dfs(start): component, stack = [], [start] while stack: start = stack[-1] if visited[start]: stack.pop() continue else: visited[sta...
22
41
0.470779
62
616
4.66129
0.403226
0.069204
0.041522
0.089965
0
0
0
0
0
0
0
0.002857
0.431818
616
27
42
22.814815
0.822857
0
0
0.1
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
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
ff002fdb0500e9897354e32946b348260a72d40c
976
py
Python
lino/modlib/uploads/__init__.py
NewRGB/lino
43799e42107169ff173d3b8bc0324d5773471499
[ "BSD-2-Clause" ]
1
2019-11-13T19:38:50.000Z
2019-11-13T19:38:50.000Z
lino/modlib/uploads/__init__.py
NewRGB/lino
43799e42107169ff173d3b8bc0324d5773471499
[ "BSD-2-Clause" ]
null
null
null
lino/modlib/uploads/__init__.py
NewRGB/lino
43799e42107169ff173d3b8bc0324d5773471499
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2010-2018 Rumma & Ko Ltd # License: BSD (see file COPYING for details) """Adds functionality for uploading files to the server and managing them. See :doc:`/specs/uploads`. """ from lino import ad, _ class Plugin(ad.Plugin): "See :doc:`/dev/plugins`." verbose_name = _("Uploads") menu_grou...
27.885714
79
0.659836
143
976
4.272727
0.41958
0.052373
0.081833
0.139116
0.432079
0.432079
0.432079
0.432079
0.432079
0.432079
0
0.010417
0.213115
976
34
80
28.705882
0.785156
0.209016
0
0.315789
0
0
0.159033
0
0
0
0
0
0
1
0.157895
false
0
0.052632
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ff01277f87c5e7fac7a733b20837d1ed277d4304
2,097
py
Python
cloudferrylib/os/actions/upload_file_to_image.py
toha10/CloudFerry
5f844a480d3326d1fea74cca35b648c32d390fab
[ "Apache-2.0" ]
null
null
null
cloudferrylib/os/actions/upload_file_to_image.py
toha10/CloudFerry
5f844a480d3326d1fea74cca35b648c32d390fab
[ "Apache-2.0" ]
null
null
null
cloudferrylib/os/actions/upload_file_to_image.py
toha10/CloudFerry
5f844a480d3326d1fea74cca35b648c32d390fab
[ "Apache-2.0" ]
null
null
null
from cloudferrylib.base.action import action from fabric.api import run, settings from cloudferrylib.utils import utils as utl CLOUD = 'cloud' BACKEND = 'backend' CEPH = 'ceph' ISCSI = 'iscsi' COMPUTE = 'compute' INSTANCES = 'instances' INSTANCE_BODY = 'instance' INSTANCE = 'instance' DIFF = 'diff' EPHEMERAL = 'ephem...
34.95
106
0.560801
244
2,097
4.614754
0.340164
0.049734
0.026643
0.035524
0.044405
0
0
0
0
0
0
0.005559
0.313782
2,097
59
107
35.542373
0.776928
0.005246
0
0
0
0.04
0.175312
0.011047
0
0
0
0
0
1
0.02
false
0.04
0.06
0
0.12
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ff01ccc9f186d9a1a01af517bc0fcb70db7dd2eb
1,672
py
Python
application.py
roniemartinez/real-time-charts-with-fastapi
f5f30f8283acafb30a97a5060803fe9d1d872b69
[ "MIT" ]
28
2022-03-20T14:10:04.000Z
2022-03-30T21:50:15.000Z
application.py
roniemartinez/real-time-charts-with-fastapi
f5f30f8283acafb30a97a5060803fe9d1d872b69
[ "MIT" ]
null
null
null
application.py
roniemartinez/real-time-charts-with-fastapi
f5f30f8283acafb30a97a5060803fe9d1d872b69
[ "MIT" ]
1
2022-03-21T21:50:27.000Z
2022-03-21T21:50:27.000Z
import json import logging import random import sys from datetime import datetime from typing import Iterator import asyncio from fastapi import FastAPI from fastapi.responses import HTMLResponse, StreamingResponse from fastapi.requests import Request from fastapi.templating import Jinja2Templates logging.basicConfig...
30.962963
106
0.711124
199
1,672
5.899497
0.502513
0.037479
0.030664
0.042589
0
0
0
0
0
0
0
0.007225
0.172249
1,672
53
107
31.54717
0.84104
0.022727
0
0
0
0
0.133559
0
0
0
0
0
0
1
0
false
0
0.297297
0
0.351351
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ff0349321664c71151b8b6a6936853d728c7a48f
2,666
py
Python
Source/GeniusLyricsGUI.py
Fingolfin7/Music-Metadata-and-Lyrics
6b26c048b9a0905f0097d2bd212285296ab3ba54
[ "MIT" ]
4
2021-08-07T00:15:12.000Z
2021-12-12T20:45:15.000Z
Source/GeniusLyricsGUI.py
Fingolfin7/Music-Metadata-and-Lyrics
6b26c048b9a0905f0097d2bd212285296ab3ba54
[ "MIT" ]
1
2021-08-06T23:29:47.000Z
2021-08-06T23:29:47.000Z
Source/GeniusLyricsGUI.py
Fingolfin7/Music-Metadata-and-Lyrics
6b26c048b9a0905f0097d2bd212285296ab3ba54
[ "MIT" ]
3
2021-08-07T01:53:20.000Z
2021-08-07T23:21:02.000Z
import os import threading from tkinter import * from tkinter import messagebox from GeniusLyrics import search_song_lyrics, song_dict class GeniusLyricsGUI: def __init__(self, tk_root: Tk): tk_root.resizable(width=False, height=False) self.lyrics_frame = Frame(tk_root) self.songName = St...
33.325
113
0.609152
317
2,666
5
0.318612
0.035331
0.070662
0.040379
0.199369
0.126814
0
0
0
0
0
0.008678
0.265191
2,666
79
114
33.746835
0.800408
0.02063
0
0
0
0.017857
0.091293
0.041427
0
0
0
0
0
1
0.071429
false
0
0.089286
0
0.178571
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
ff03dab57925319f515c5c11149dcf10058593ae
1,124
py
Python
raspy/components/motors/motor_state_change_event.py
cyrusbuilt/RasPy
1e34840cc90ea7f19317e881162209d3d819eb09
[ "MIT" ]
null
null
null
raspy/components/motors/motor_state_change_event.py
cyrusbuilt/RasPy
1e34840cc90ea7f19317e881162209d3d819eb09
[ "MIT" ]
null
null
null
raspy/components/motors/motor_state_change_event.py
cyrusbuilt/RasPy
1e34840cc90ea7f19317e881162209d3d819eb09
[ "MIT" ]
null
null
null
"""This module contains the MotorStateChangeEvent type.""" from raspy.components.motors import motor_state class MotorStateChangeEvent(object): """The event that gets raised when a motor changes state.""" def __init__(self, old_state, new_state): """Initialize a new instance of MotorStateChangeEven...
27.414634
78
0.634342
139
1,124
4.906475
0.366906
0.046921
0.032258
0.046921
0.175953
0.108504
0.108504
0.108504
0.108504
0.108504
0
0
0.286477
1,124
40
79
28.1
0.850374
0.420819
0
0.133333
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.066667
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ff04665b138db9fa8f8563e4a316caa05474ffd6
2,537
py
Python
contrib/PyTorch/Official/cv/image_object_detection/RetinaNet/tests/test_model_analysis.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/PyTorch/Official/cv/image_object_detection/Faster_Mask_RCNN_for_PyTorch_Dynamic_Shape/tests/test_model_analysis.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/PyTorch/Official/cv/image_object_detection/Faster_Mask_RCNN_for_PyTorch_Dynamic_Shape/tests/test_model_analysis.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # Copyright 2020 Huawei Technologies Co., Ltd # # 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....
35.236111
81
0.707923
356
2,537
4.912921
0.441011
0.032018
0.038879
0.018296
0.317896
0.317896
0.287021
0.287021
0.287021
0.256146
0
0.036346
0.197477
2,537
71
82
35.732394
0.822692
0.382736
0
0.342857
0
0
0.079085
0.054902
0
0
0
0
0.171429
1
0.2
false
0
0.171429
0
0.457143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ff07394e395b62d46e9233ac28ffd68f59cd8a96
649
py
Python
app.py
tommorris/ftfyweb
c9bb5b2381b8dc4d831ac7113041988b9e1d2629
[ "MIT" ]
null
null
null
app.py
tommorris/ftfyweb
c9bb5b2381b8dc4d831ac7113041988b9e1d2629
[ "MIT" ]
null
null
null
app.py
tommorris/ftfyweb
c9bb5b2381b8dc4d831ac7113041988b9e1d2629
[ "MIT" ]
null
null
null
import ftfy from flask import Flask, request, Response import os app = Flask(__name__) @app.route("/", methods=["GET"]) def index(): return '<!DOCTYPE html>\n<html><head><title>FTFY on the web</title><body><form method="POST" action="/"><textarea name="text"></textarea><br /><input type="submit" /></body></html>'...
32.45
185
0.654854
93
649
4.430108
0.580645
0.014563
0.072816
0
0
0
0
0
0
0
0
0.021201
0.127889
649
19
186
34.157895
0.706714
0
0
0
0
0.066667
0.371341
0.120185
0
0
0
0
0
1
0.133333
false
0
0.2
0.066667
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ff08e3833e5406d35fb9da8d119e002439370636
1,399
py
Python
python/test.py
yushulx/myget-barcode-sample
f47d79794f439cae4baf33e6299802dd35587da7
[ "CNRI-Python" ]
null
null
null
python/test.py
yushulx/myget-barcode-sample
f47d79794f439cae4baf33e6299802dd35587da7
[ "CNRI-Python" ]
null
null
null
python/test.py
yushulx/myget-barcode-sample
f47d79794f439cae4baf33e6299802dd35587da7
[ "CNRI-Python" ]
null
null
null
from dbr import DynamsoftBarcodeReader dbr = DynamsoftBarcodeReader() def InitLicense(license): dbr.InitLicense(license) def DecodeFile(fileName): try: results = dbr.DecodeFile(fileName) textResults = results["TextResults"] resultsLength = len(textResults) print("count: " + st...
34.121951
71
0.593281
120
1,399
6.85
0.5
0.065693
0
0
0
0
0
0
0
0
0
0.025667
0.303788
1,399
41
72
34.121951
0.818275
0.050036
0
0
0
0
0.106928
0
0
0
0
0
0
1
0.058824
false
0
0.029412
0
0.088235
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ff094fcc3bfffb49faac08b0936857ef5e95c080
3,963
py
Python
examples/plotting/AdaptiveW_process_SA.py
JiazhengChai/synergy_DRL
c08e78e5fe39d9d46213e1bf07b8dafc2195b05a
[ "MIT" ]
2
2020-01-07T04:12:42.000Z
2021-12-21T22:25:31.000Z
examples/plotting/AdaptiveW_process_SA.py
JiazhengChai/synergy_DRL
c08e78e5fe39d9d46213e1bf07b8dafc2195b05a
[ "MIT" ]
11
2019-11-29T02:59:34.000Z
2022-03-12T00:07:28.000Z
examples/plotting/AdaptiveW_process_SA.py
JiazhengChai/synergy_DRL
c08e78e5fe39d9d46213e1bf07b8dafc2195b05a
[ "MIT" ]
1
2020-04-28T12:06:40.000Z
2020-04-28T12:06:40.000Z
from sklearn.preprocessing import StandardScaler import numpy as np from sklearn.metrics import r2_score from matplotlib import pyplot as plt import os from matplotlib.lines import Line2D from exp_variant_class import exp_variant#,PCA from sklearn.decomposition import PCA import argparse from scipy import integrate imp...
23.873494
127
0.661368
637
3,963
3.872841
0.309262
0.029185
0.028375
0.013377
0.135387
0.125659
0.125659
0.093231
0.093231
0.093231
0
0.036255
0.199596
3,963
165
128
24.018182
0.741488
0.001009
0
0.096
0
0
0.096057
0.032609
0
0
0
0
0
1
0.016
false
0
0.104
0.016
0.136
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ff098e38a6ea9af6ee303beb724496a6885a6fff
1,100
py
Python
p886m/possible_bipartition.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
1
2020-02-20T12:04:46.000Z
2020-02-20T12:04:46.000Z
p886m/possible_bipartition.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
p886m/possible_bipartition.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
from typing import List from collections import defaultdict class Solution: def possibleBipartition(self, N: int, dislikes: List[List[int]]) -> bool: graph = defaultdict(list) for a, b in dislikes: graph[a].append(b) graph[b].append(a) RED, BLUE = 0, 1 colo...
28.205128
77
0.513636
151
1,100
3.741722
0.337748
0.047788
0.053097
0.038938
0.046018
0.046018
0
0
0
0
0
0.039216
0.304545
1,100
38
78
28.947368
0.699346
0.004545
0
0
0
0
0.092406
0
0
0
0
0
0.033333
1
0.066667
false
0
0.066667
0
0.266667
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ff0ad96003ab263c05c0ef76f377fb269621afc1
1,315
py
Python
misc/wysalem.py
wy2136/wython
0eaa9db335d57052806ae956afe6a34705407628
[ "MIT" ]
1
2022-03-21T21:24:40.000Z
2022-03-21T21:24:40.000Z
misc/wysalem.py
wy2136/wython
0eaa9db335d57052806ae956afe6a34705407628
[ "MIT" ]
null
null
null
misc/wysalem.py
wy2136/wython
0eaa9db335d57052806ae956afe6a34705407628
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Wenchang Yang (wenchang@princeton.edu) # Fri May 15 13:45:34 EDT 2020 if __name__ == '__main__': from misc.timer import Timer tt = Timer(f'start {__file__}') import sys, os.path, os, glob import xarray as xr, numpy as np, pandas as pd #import matplotlib.pyplot as plt #more imports import...
24.811321
74
0.642586
178
1,315
4.47191
0.466292
0.075377
0.065327
0.079146
0.169598
0.114322
0
0
0
0
0
0.011776
0.225095
1,315
52
75
25.288462
0.769382
0.152091
0
0.314286
0
0
0.146872
0
0
0
0
0
0
1
0.028571
false
0
0.171429
0
0.314286
0.171429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ff0b2afd610385ef75e98eb2924a9e2596709742
4,120
py
Python
ops/update_version.py
DropD/sparkplug
be817103ef32cbc908de004659b538993d14eeb4
[ "MIT" ]
5
2017-11-28T14:57:53.000Z
2019-01-16T08:48:10.000Z
ops/update_version.py
DropD/sparkplug
be817103ef32cbc908de004659b538993d14eeb4
[ "MIT" ]
49
2017-04-11T11:18:58.000Z
2021-02-10T23:06:20.000Z
ops/update_version.py
DropD/sparkplug
be817103ef32cbc908de004659b538993d14eeb4
[ "MIT" ]
8
2017-06-16T17:01:33.000Z
2021-02-09T10:28:03.000Z
"""Update version numbers everywhere based on git tags.""" from __future__ import print_function import os import re import json import fileinput import contextlib import subprocess try: # prefer the backport for Python <3.5 from pathlib2 import Path except ImportError: from pathlib import Path import colle...
34.049587
134
0.65801
539
4,120
4.816327
0.315399
0.045069
0.023112
0.035439
0.24037
0.114792
0.060092
0.033128
0.033128
0.033128
0
0.004042
0.219417
4,120
120
135
34.333333
0.803172
0.205097
0
0.157895
0
0.026316
0.0794
0.014067
0
0
0
0
0
1
0.144737
false
0
0.157895
0.039474
0.447368
0.013158
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ff0b92cac5191bfb5cafcf2ad2b6f9c3f1b55cd2
1,516
py
Python
my_twitter_bot.py
Tomonori-Yoshino/Automating_tweets
117b09973f22a2438335facfdb427dbb2e23d005
[ "MIT" ]
null
null
null
my_twitter_bot.py
Tomonori-Yoshino/Automating_tweets
117b09973f22a2438335facfdb427dbb2e23d005
[ "MIT" ]
null
null
null
my_twitter_bot.py
Tomonori-Yoshino/Automating_tweets
117b09973f22a2438335facfdb427dbb2e23d005
[ "MIT" ]
null
null
null
import tweepy import time print("this is my twitter bot") CONSUMER_KEY = 'Xqpf3M4z5poRH6yp17lGXgUSU' CONSUMER_SECRET = '2RVEN70Ti4QCl0kDMptrY4AnJF6kqEOBFdSEV1aZf3rBEN8AeL' ACCESS_KEY = '732483098336595968-hH2jZVrpjKy0WxkM6dHzyZJ5kGgCrE9' ACCESS_SECRET = '98B9BTk2toO3qLIppsMcsPThgOSoOf9GiGZ55OGFIypYE' auth = tweepy.O...
28.074074
103
0.718338
196
1,516
5.229592
0.382653
0.101463
0.126829
0.054634
0.115122
0.115122
0.062439
0.062439
0.062439
0
0
0.0392
0.175462
1,516
53
104
28.603774
0.7808
0
0
0
0
0
0.215842
0.112211
0
0
0
0
0
1
0.075
false
0
0.05
0
0.175
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ff0ff3bb7018607eef270c5c0dfe4b9eddf207b1
6,850
py
Python
crypto.py
souravdas142/LiveChain
f590060e8d77f29694e746459c4e4f780c37295c
[ "MIT" ]
1
2021-05-08T08:12:34.000Z
2021-05-08T08:12:34.000Z
crypto.py
souravdas142/LiveChain
f590060e8d77f29694e746459c4e4f780c37295c
[ "MIT" ]
null
null
null
crypto.py
souravdas142/LiveChain
f590060e8d77f29694e746459c4e4f780c37295c
[ "MIT" ]
1
2021-05-08T08:13:18.000Z
2021-05-08T08:13:18.000Z
import random class crypto: P = 2 ** 256 - 2 ** 32 - 2 ** 9 - 2 ** 8 - 2 ** 7 - 2 ** 6 - 2 ** 4 - 1 # prime number for modulus operations order = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 # order for the elliptic curve y^2=x^3+7 ,used in bitcoin Gx = 550662630222773436695787...
32.464455
164
0.500292
912
6,850
3.638158
0.212719
0.008439
0.0217
0.023508
0.330018
0.312236
0.312236
0.280892
0.280892
0.268837
0
0.105611
0.38073
6,850
210
165
32.619048
0.676568
0.208467
0
0.408805
0
0
0.010251
0
0
0
0.012766
0
0
1
0.075472
false
0
0.006289
0.006289
0.220126
0.044025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ff1042f2a23ccb08afabbfa3dbb2d4b96cc2e564
2,062
py
Python
fio.py
fabrickit-fablib/benchmark
48670230ab67192074047dbbc397c2b5e13edcdf
[ "MIT" ]
null
null
null
fio.py
fabrickit-fablib/benchmark
48670230ab67192074047dbbc397c2b5e13edcdf
[ "MIT" ]
null
null
null
fio.py
fabrickit-fablib/benchmark
48670230ab67192074047dbbc397c2b5e13edcdf
[ "MIT" ]
null
null
null
# coding: utf-8 import copy import json from fabkit import * # noqa from fablib.base import SimpleBase class Fio(SimpleBase): def __init__(self): self.data_key = 'sysbench' self.data = { 'mysql': { 'user': 'sysbench', 'password': 'sysbench', ...
28.246575
84
0.461203
206
2,062
4.475728
0.470874
0.032538
0.02603
0.02603
0.052061
0
0
0
0
0
0
0.030685
0.383608
2,062
72
85
28.638889
0.694729
0.008729
0
0.033333
0
0.016667
0.238119
0.012739
0
0
0
0
0
1
0.05
false
0.016667
0.066667
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ff11450e5548a704cb271296b84792ba3051678a
5,433
py
Python
knowledgebase/db/mongo.py
linkdd/knowledgebase
89cd5a6802efd1359863f91b742a43684354b8b2
[ "MIT" ]
1
2017-03-20T08:48:33.000Z
2017-03-20T08:48:33.000Z
knowledgebase/db/mongo.py
linkdd/knowledgebase
89cd5a6802efd1359863f91b742a43684354b8b2
[ "MIT" ]
null
null
null
knowledgebase/db/mongo.py
linkdd/knowledgebase
89cd5a6802efd1359863f91b742a43684354b8b2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from knowledgebase.db.base import Vertex as BaseVertex from knowledgebase.db.base import Edge as BaseEdge from knowledgebase.db.base import ElementView as BaseElementView from knowledgebase.db.base import Graph as BaseGraph from bson.objectid import ObjectId from pymongo import MongoClient fro...
27.029851
74
0.561936
653
5,433
4.48392
0.134763
0.079918
0.048839
0.045082
0.684085
0.616803
0.580943
0.571721
0.563525
0.563525
0
0.000267
0.311798
5,433
200
75
27.165
0.78283
0.003865
0
0.510204
0
0
0.028096
0
0
0
0
0
0
1
0.115646
false
0.013605
0.047619
0
0.251701
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ff13684383add06888abbfe0e42239e9acfeb522
1,591
py
Python
visualization/example_and_references/plot_vector_field.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
visualization/example_and_references/plot_vector_field.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
visualization/example_and_references/plot_vector_field.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
""" Drawing Vector Fields https://stackoverflow.com/questions/25342072/computing-and-drawing-vector-fields Adding colorbar to existing axis https://stackoverflow.com/questions/32462881/add-colorbar-to-existing-axis """ import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import make_axes_loc...
25.66129
80
0.670647
267
1,591
3.921348
0.438202
0.007641
0.036294
0.057307
0.061127
0
0
0
0
0
0
0.047337
0.15022
1,591
61
81
26.081967
0.727071
0.27027
0
0
0
0
0.069533
0
0
0
0
0
0
1
0
false
0
0.107143
0
0.107143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0