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
85eee91df955bbbecc3244390928eb3edef3f3cf
5,730
py
Python
trueWorld.py
str1k/dwatravel
47be1377a60431ffcb3ad09846be7647d44e5760
[ "MIT" ]
null
null
null
trueWorld.py
str1k/dwatravel
47be1377a60431ffcb3ad09846be7647d44e5760
[ "MIT" ]
null
null
null
trueWorld.py
str1k/dwatravel
47be1377a60431ffcb3ad09846be7647d44e5760
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import requests from bs4 import BeautifulSoup import re import time import MySQLdb s = requests.Session() login_url = "http://www.trueworldagency.com/member/login_ok.asp" login_data = {'upw': '07092519', 'uid': '07092519'} s.post(login_url, login_data) counter = 0 trip_bookingID = [] trip_perio...
35.590062
218
0.621466
840
5,730
4.132143
0.192857
0.019591
0.027658
0.034572
0.439643
0.394699
0.336502
0.281187
0.250072
0.221838
0
0.031056
0.157068
5,730
161
219
35.590062
0.687578
0.050087
0
0.210084
0
0.016807
0.177336
0.022788
0
0
0
0
0
0
null
null
0.008403
0.042017
null
null
0.042017
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
85ef49b97d17705c81cdeeb0ece8add9c7768f1d
6,718
py
Python
extract_data_1.1.py
stanlee321/bolivia_power
4c86be2be8b81fead5ba9f1d50f32233cd54c1fc
[ "MIT" ]
null
null
null
extract_data_1.1.py
stanlee321/bolivia_power
4c86be2be8b81fead5ba9f1d50f32233cd54c1fc
[ "MIT" ]
null
null
null
extract_data_1.1.py
stanlee321/bolivia_power
4c86be2be8b81fead5ba9f1d50f32233cd54c1fc
[ "MIT" ]
null
null
null
# Code for extract the information from the web # with the <id> information into the bolivia_power_1.csv file # input: bolivia_power_1.id.csv # output 6x.npy array file: # <nodes_ids.lat,lon> <node.tags> # <way.ids> <way.ref> <way.tags> # ... # v. 1.1 #import pandas as pd import numpy as np...
28.108787
124
0.539744
854
6,718
4.094848
0.181499
0.033457
0.036031
0.034315
0.556763
0.49471
0.457535
0.406634
0.368316
0.356305
0
0.010872
0.246949
6,718
239
125
28.108787
0.680372
0.084102
0
0.153846
0
0
0.190332
0.04139
0
0
0
0
0
1
0.025641
false
0.025641
0.064103
0
0.089744
0.25641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85f0ac57ac9d5511f94d39253027463025311137
194
py
Python
tests/api/utils/test_config.py
Devansh3712/py-cmc
e3f9687914d92cd95bd5a7c04e6103345ba43a3d
[ "MIT" ]
2
2022-02-14T07:13:12.000Z
2022-02-14T07:20:34.000Z
tests/api/utils/test_config.py
Devansh3712/py-cmc
e3f9687914d92cd95bd5a7c04e6103345ba43a3d
[ "MIT" ]
6
2022-02-21T10:50:43.000Z
2022-03-03T15:44:09.000Z
tests/api/utils/test_config.py
Devansh3712/py-cmc
e3f9687914d92cd95bd5a7c04e6103345ba43a3d
[ "MIT" ]
2
2022-02-20T01:43:35.000Z
2022-03-13T09:34:51.000Z
from api.utils.config import settings def test_config_validation() -> None: assert type(settings.host) == str assert type(settings.port) == int assert type(settings.expire) == int
24.25
39
0.71134
26
194
5.230769
0.653846
0.220588
0.397059
0
0
0
0
0
0
0
0
0
0.175258
194
7
40
27.714286
0.85
0
0
0
0
0
0
0
0
0
0
0
0.6
1
0.2
true
0
0.2
0
0.4
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
0
0
0
0
0
6
85f402a990563be3704e3ce90f8e5fbc80ebcb6e
526
py
Python
Practice/Problem Solving/MaximizingXOR.py
avantikasharma/HackerRank-Solutions
a980859ac352688853fcbcf3c7ec6d95685f99ea
[ "MIT" ]
1
2018-07-08T15:44:15.000Z
2018-07-08T15:44:15.000Z
Practice/Problem Solving/MaximizingXOR.py
avantikasharma/HackerRank-Solutions
a980859ac352688853fcbcf3c7ec6d95685f99ea
[ "MIT" ]
null
null
null
Practice/Problem Solving/MaximizingXOR.py
avantikasharma/HackerRank-Solutions
a980859ac352688853fcbcf3c7ec6d95685f99ea
[ "MIT" ]
2
2018-08-10T06:49:34.000Z
2020-10-01T04:50:59.000Z
#!/bin/python3 import math import os import random import re import sys # Complete the maximizingXor function below. def maximizingXor(l, r): result = [] for num1 in range(l,r+1): for num2 in range(l,r+1): xor = num1^num2 result.append(xor) return max(result) i...
17.533333
47
0.58365
72
526
4.138889
0.583333
0.026846
0.100671
0.060403
0.067114
0
0
0
0
0
0
0.01847
0.279468
526
29
48
18.137931
0.76781
0.106464
0
0
0
0
0.047009
0
0
0
0
0
0
1
0.052632
false
0
0.263158
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
85f4fbb2d3d898f2e76022a95446b29026af0760
2,216
py
Python
Sketches/MH/Layout/Visualisation/Graph/GridRenderer.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MH/Layout/Visualisation/Graph/GridRenderer.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MH/Layout/Visualisation/Graph/GridRenderer.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License,...
38.206897
83
0.584386
273
2,216
4.699634
0.47619
0.065472
0.049883
0.024942
0.134061
0.06703
0.06703
0.06703
0
0
0
0.01025
0.295578
2,216
57
84
38.877193
0.811659
0.439982
0
0.16
0
0
0
0
0
0
0
0
0
0
null
null
0
0.04
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
85f5bac9de2e5415cb10c2fbf5dabb5fee1eb3a8
436
py
Python
config.py
anggerwicaksono/vehicle-brand-recognition-yolov4-python
b58a76481bd499ff77deb037f5791119a9572d0c
[ "MIT" ]
null
null
null
config.py
anggerwicaksono/vehicle-brand-recognition-yolov4-python
b58a76481bd499ff77deb037f5791119a9572d0c
[ "MIT" ]
null
null
null
config.py
anggerwicaksono/vehicle-brand-recognition-yolov4-python
b58a76481bd499ff77deb037f5791119a9572d0c
[ "MIT" ]
null
null
null
# Copyright © 2020 by Spectrico # Licensed under the MIT License model_file = "model-weights-spectrico-car-colors-recognition-mobilenet_v3-224x224-180420.pb" # path to the car color classifier label_file = "labelsC.txt" # path to the text file, containing list with the supported makes and models input_layer = "inpu...
48.444444
128
0.784404
65
436
5.153846
0.692308
0.035821
0.053731
0
0
0
0
0
0
0
0
0.06366
0.135321
436
8
129
54.5
0.822281
0.451835
0
0
0
0
0.523605
0.446352
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
85f686d400d73419843a0643d08f81afb4fe05ef
4,417
py
Python
interface_report_interactive.py
hpreston/network_info_scripts
b25076eb6f55a7f7335f6cae1a4c3c00ce9aa191
[ "MIT" ]
20
2019-05-11T03:08:52.000Z
2022-01-13T13:44:22.000Z
interface_report_interactive.py
hpreston/network_info_scripts
b25076eb6f55a7f7335f6cae1a4c3c00ce9aa191
[ "MIT" ]
4
2020-02-26T23:25:59.000Z
2021-12-13T19:59:01.000Z
interface_report_interactive.py
hpreston/network_info_scripts
b25076eb6f55a7f7335f6cae1a4c3c00ce9aa191
[ "MIT" ]
8
2019-05-20T02:27:40.000Z
2021-07-07T18:49:45.000Z
#! /usr/bin/env python """Exploring Genie's ability to gather details and write to CSV This script is meant to be run line by line interactively in a Python interpretor (such as iPython) to learn how the Genie and csv libraries work. This script assumes you have a virl simulation running and a testbed file created. ...
33.462121
88
0.713607
664
4,417
4.725904
0.406627
0.031867
0.008923
0.020076
0.110261
0.110261
0.053537
0.037604
0.037604
0
0
0.005153
0.209192
4,417
131
89
33.717557
0.893215
0.66561
0
0.292683
0
0
0.162369
0
0
0
0
0
0
1
0
false
0
0.073171
0
0.073171
0.121951
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85f74ccca3d8f227ec09283215d9c1ace1b61121
1,159
py
Python
app/priu.py
robhaswell/powerstrip-restrict-image-user
d6a5dbb19330f1ee5b384095c1010636af12120d
[ "Apache-2.0" ]
null
null
null
app/priu.py
robhaswell/powerstrip-restrict-image-user
d6a5dbb19330f1ee5b384095c1010636af12120d
[ "Apache-2.0" ]
null
null
null
app/priu.py
robhaswell/powerstrip-restrict-image-user
d6a5dbb19330f1ee5b384095c1010636af12120d
[ "Apache-2.0" ]
null
null
null
import os, sys import json as _json from flask import Flask, Response, request app = Flask(__name__) app.debug = True import lib @app.route("/", methods=["HEAD", "GET", "POST", "DELETE", "PUT"]) def adapter(): json = request.get_data() decoded = _json.loads(json) docker_json = _json.loads(decoded['Clien...
26.340909
88
0.637619
143
1,159
5
0.552448
0.111888
0.067133
0.055944
0
0
0
0
0
0
0
0.007675
0.213115
1,159
43
89
26.953488
0.776316
0
0
0
0
0
0.311475
0
0
0
0
0
0
1
0.029412
false
0
0.117647
0
0.205882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85f7c87317fb94af50f148e6f619929fe75f47af
1,316
py
Python
app/gather/api/serializers.py
eHealthAfrica/gather
88d96009c5f9832b564d13fa66d63841a7fbcd90
[ "Apache-2.0" ]
2
2019-09-25T18:37:30.000Z
2019-09-25T18:37:39.000Z
app/gather/api/serializers.py
eHealthAfrica/gather
88d96009c5f9832b564d13fa66d63841a7fbcd90
[ "Apache-2.0" ]
41
2015-07-29T14:10:05.000Z
2021-09-13T07:07:41.000Z
app/gather/api/serializers.py
eHealthAfrica/gather
88d96009c5f9832b564d13fa66d63841a7fbcd90
[ "Apache-2.0" ]
2
2019-11-12T23:09:35.000Z
2020-03-11T16:39:35.000Z
# Copyright (C) 2019 by eHealth Africa : http://www.eHealthAfrica.org # # See the NOTICE file distributed with this work for additional information # regarding copyright ownership. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with # the License. Y...
28
75
0.729483
159
1,316
5.981132
0.616352
0.063091
0.02734
0.033649
0
0
0
0
0
0
0
0.007547
0.194529
1,316
46
76
28.608696
0.889623
0.527356
0
0.210526
0
0
0.033113
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85f9b76b3b5d2af9bcf373c178d927992a22b317
280
py
Python
CCC/CCC '19 J3 - Cold Compress.py
Joon7891/Competitive-Programming
d860b7ad932cd5a6fb91fdc8c53101da57f4a408
[ "MIT" ]
2
2021-04-13T00:19:56.000Z
2021-04-13T01:19:45.000Z
CCC/CCC '19 J3 - Cold Compress.py
Joon7891/Competitive-Programming
d860b7ad932cd5a6fb91fdc8c53101da57f4a408
[ "MIT" ]
null
null
null
CCC/CCC '19 J3 - Cold Compress.py
Joon7891/Competitive-Programming
d860b7ad932cd5a6fb91fdc8c53101da57f4a408
[ "MIT" ]
1
2020-08-26T12:36:08.000Z
2020-08-26T12:36:08.000Z
n = int(input()) for _ in range(n): line = input() prev = '' counter = 0 for char in line: if char != prev: if prev != '': print(counter, prev, end = ' ') prev = char counter = 1 else: counter += 1 print(counter, prev)
15.555556
39
0.478571
35
280
3.8
0.457143
0.180451
0.240602
0
0
0
0
0
0
0
0
0.017341
0.382143
280
18
40
15.555556
0.751445
0
0
0
0
0
0.003559
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
85fd9ccfe64a572bc3232cd253f5cd2894061049
1,514
py
Python
src/utils/jupyter_setup.py
paxtonedgar/MisInfo
81b32fa3e7d0d204feb83e10169093f45727a2ea
[ "MIT" ]
null
null
null
src/utils/jupyter_setup.py
paxtonedgar/MisInfo
81b32fa3e7d0d204feb83e10169093f45727a2ea
[ "MIT" ]
null
null
null
src/utils/jupyter_setup.py
paxtonedgar/MisInfo
81b32fa3e7d0d204feb83e10169093f45727a2ea
[ "MIT" ]
null
null
null
# built-in import os import logging # installed import pandas as pd import seaborn as sns from matplotlib import pylab # custom import src.settings from src.utils.log_utils import setup_logging, LogLevel from src.utils.config_loader import ConfigLoader, Config def setup_jupyter( root_dir: str, config_path: s...
26.103448
75
0.664465
191
1,514
5.13089
0.439791
0.061224
0.02449
0
0
0
0
0
0
0
0
0.019426
0.217966
1,514
57
76
26.561404
0.808277
0.225892
0
0
0
0
0.157003
0
0
0
0
0
0
1
0.027778
false
0
0.222222
0
0.277778
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85fdbccdde41392a6f2e6723a8450dd58d4c3c85
3,169
py
Python
EclipseOJ/contests/models.py
cs251-eclipse/eclipseOJ
ad93bf65014e87051278026f87b6b92afdaed349
[ "MIT" ]
null
null
null
EclipseOJ/contests/models.py
cs251-eclipse/eclipseOJ
ad93bf65014e87051278026f87b6b92afdaed349
[ "MIT" ]
null
null
null
EclipseOJ/contests/models.py
cs251-eclipse/eclipseOJ
ad93bf65014e87051278026f87b6b92afdaed349
[ "MIT" ]
1
2020-06-06T21:05:09.000Z
2020-06-06T21:05:09.000Z
from django.db import models from django.contrib.auth.models import User from core.models import Profile from array import * from datetime import datetime from django.utils import timezone class Contest(models.Model): """ Contests models are used to store save contests as object. Contests contain problems, use...
39.123457
270
0.688545
431
3,169
5
0.303944
0.055684
0.044548
0.051972
0.444548
0.373086
0.302552
0.302552
0.302552
0.143852
0
0.002082
0.242032
3,169
80
271
39.6125
0.895087
0.081098
0
0.15493
0
0.056338
0.426588
0
0
0
0
0
0
1
0.028169
false
0
0.084507
0.028169
0.380282
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85fe97d41b6486d5e18a9ac451b9332abc6e4cd3
2,659
py
Python
oldnumba/special.py
meawoppl/numba
bb8df0aee99133c6d52465ae9f9df2a7996339f3
[ "BSD-2-Clause" ]
1
2015-01-29T06:52:36.000Z
2015-01-29T06:52:36.000Z
oldnumba/special.py
meawoppl/numba
bb8df0aee99133c6d52465ae9f9df2a7996339f3
[ "BSD-2-Clause" ]
null
null
null
oldnumba/special.py
meawoppl/numba
bb8df0aee99133c6d52465ae9f9df2a7996339f3
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Special compiler-recognized numba functions and attributes. """ from __future__ import print_function, division, absolute_import __all__ = ['NULL', 'typeof', 'python', 'nopython', 'addressof', 'prange'] import ctypes from numba import error #--------------------------------------------...
27.989474
78
0.532907
251
2,659
5.486056
0.410359
0.029049
0.03268
0.026144
0.030501
0
0
0
0
0
0
0.001835
0.180143
2,659
95
79
27.989474
0.629817
0.399398
0
0.05
0
0
0.092797
0
0
0
0
0
0.025
1
0.175
false
0
0.15
0.075
0.525
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
1
0
0
1
85ff76b7f34f9abc8f910e03a1576bfe726a0de5
7,602
py
Python
mistletoe/renderers/base.py
executablebooks/mistletoe-ebp
229812436726fd9b1af85c6e66ff8c81b415758d
[ "MIT" ]
2
2020-05-19T02:06:47.000Z
2020-06-27T10:01:59.000Z
mistletoe/renderers/base.py
executablebooks/mistletoe-ebp
229812436726fd9b1af85c6e66ff8c81b415758d
[ "MIT" ]
5
2020-03-10T22:43:16.000Z
2020-03-21T22:09:09.000Z
mistletoe/renderers/base.py
ExecutableBookProject/mistletoe-ebp
229812436726fd9b1af85c6e66ff8c81b415758d
[ "MIT" ]
null
null
null
""" Base class for renderers. """ from itertools import chain import re import sys from typing import Optional from mistletoe import block_tokens, block_tokens_ext, span_tokens, span_tokens_ext from mistletoe.parse_context import ParseContext, set_parse_context class BaseRenderer: """ Base class for rendere...
34.089686
83
0.64654
874
7,602
5.366133
0.296339
0.076759
0.022175
0.009595
0.056077
0.056077
0.018337
0.018337
0
0
0
0.00018
0.270981
7,602
222
84
34.243243
0.846084
0.349776
0
0.018868
0
0
0.079561
0.006499
0
0
0
0
0
1
0.132075
false
0.009434
0.056604
0
0.320755
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85ff94648db8e42f7e087780f32ca9e870cb3118
2,123
py
Python
deep-scratch/steps/step50.py
jayChung0302/myml
6575706aec707186037607e49342f77cde34ff52
[ "MIT" ]
null
null
null
deep-scratch/steps/step50.py
jayChung0302/myml
6575706aec707186037607e49342f77cde34ff52
[ "MIT" ]
null
null
null
deep-scratch/steps/step50.py
jayChung0302/myml
6575706aec707186037607e49342f77cde34ff52
[ "MIT" ]
null
null
null
if '__file__' in globals(): import os, sys sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import math import numpy as np import matplotlib.pyplot as plt import dezero from dezero import optimizers import dezero.functions as F import dezero.datasets as datasets from dezero.models import MLP from ...
25.890244
93
0.621291
338
2,123
3.724852
0.272189
0.03336
0.025417
0.030977
0.305004
0.249404
0.166799
0.166799
0.166799
0.166799
0
0.027278
0.240226
2,123
81
94
26.209877
0.753255
0
0
0.238806
0
0.029851
0.084354
0.06032
0
0
0
0
0
1
0.044776
false
0
0.149254
0.014925
0.238806
0.119403
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c80394afc399b78e52b09f0399ffa60c6bd99be4
2,807
py
Python
src/old/mpas-source/testing_and_setup/compass/landice/MISMIP3D/plot_speed_profiles.py
meteorologytoday/E3SM-sicn
61acadf73929399586c8972f263f0d65696cba38
[ "MIT" ]
null
null
null
src/old/mpas-source/testing_and_setup/compass/landice/MISMIP3D/plot_speed_profiles.py
meteorologytoday/E3SM-sicn
61acadf73929399586c8972f263f0d65696cba38
[ "MIT" ]
null
null
null
src/old/mpas-source/testing_and_setup/compass/landice/MISMIP3D/plot_speed_profiles.py
meteorologytoday/E3SM-sicn
61acadf73929399586c8972f263f0d65696cba38
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Plots velocity profiles for a diagnostic solve for a range of resolutions, with and without GLP. ''' import numpy as np import netCDF4 #import datetime # import math # from pylab import * from optparse import OptionParser import matplotlib.pyplot as plt from matplotlib import cm # from matplot...
29.239583
143
0.662629
417
2,807
4.42446
0.438849
0.03794
0.03252
0.020596
0.105149
0.082385
0.082385
0.082385
0.082385
0.082385
0
0.025597
0.164945
2,807
95
144
29.547368
0.761519
0.174207
0
0.105263
0
0
0.247217
0
0
0
0
0
0
0
null
null
0
0.087719
null
null
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c804b2aba892b4eb59eed92a1fc2059a9fcab787
2,713
py
Python
halfpipe/model/__init__.py
fossabot/Halfpipe-1
9e9fae20467d2c73b67fcb2cc73ed7144d79db3a
[ "FTL" ]
null
null
null
halfpipe/model/__init__.py
fossabot/Halfpipe-1
9e9fae20467d2c73b67fcb2cc73ed7144d79db3a
[ "FTL" ]
null
null
null
halfpipe/model/__init__.py
fossabot/Halfpipe-1
9e9fae20467d2c73b67fcb2cc73ed7144d79db3a
[ "FTL" ]
null
null
null
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ """ from .exclude import ExcludeSchema, rating_indices from .spec import SpecSchema, loadspec, savespec from .tags import BoldTagsSchema, FuncTagsSchema, entities, entity_long...
23.798246
97
0.708072
184
2,713
10.331522
0.478261
0.019989
0.027354
0.044187
0.601789
0.392425
0.392425
0.319832
0.319832
0.319832
0
0.003202
0.19425
2,713
113
98
24.00885
0.866423
0.048286
0
0
0
0
0.317899
0.08677
0
0
0
0
0
1
0
false
0.019231
0.115385
0
0.115385
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c804be87c5478ddfa9fadf38397429243edc770e
4,363
py
Python
play.py
cp1r8/metadungeon
e68a35c815d60bccb883436fde782868bff7f81f
[ "CC0-1.0" ]
null
null
null
play.py
cp1r8/metadungeon
e68a35c815d60bccb883436fde782868bff7f81f
[ "CC0-1.0" ]
null
null
null
play.py
cp1r8/metadungeon
e68a35c815d60bccb883436fde782868bff7f81f
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 from game import World from game.creatures import Humanoid, Unit from game.creatures.adventurers import Adventurer, Party from game.objects.containers import Container from game.places.underground import Dungeon from game.dice import d4 from pathlib import Path import pickle import sys import u...
28.89404
98
0.544579
501
4,363
4.662675
0.283433
0.050942
0.061644
0.035959
0.259418
0.146404
0.146404
0.064212
0.064212
0.064212
0
0.010712
0.336695
4,363
150
99
29.086667
0.796475
0.037589
0
0.280374
0
0
0.099451
0.03959
0
0
0
0.006667
0
1
0
false
0
0.093458
0
0.093458
0.242991
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c80564b90308d62159da1bcee2b8ccb5be3d2c50
87
py
Python
HelloPython/Hello.py
itsdamslife/python-ml-udacity
d16b7619a05e1b42fcbd0846f64726bf9741701a
[ "MIT" ]
null
null
null
HelloPython/Hello.py
itsdamslife/python-ml-udacity
d16b7619a05e1b42fcbd0846f64726bf9741701a
[ "MIT" ]
null
null
null
HelloPython/Hello.py
itsdamslife/python-ml-udacity
d16b7619a05e1b42fcbd0846f64726bf9741701a
[ "MIT" ]
null
null
null
class HelloPy: def hello(self): print("Hello Python!") HelloPy().hello()
12.428571
30
0.597701
10
87
5.2
0.7
0
0
0
0
0
0
0
0
0
0
0
0.241379
87
7
31
12.428571
0.787879
0
0
0
0
0
0.149425
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
c80624c4bad650eb5277c12ff9ddd20884d61424
590
py
Python
freeze.py
eudemonia-research/hec
e65df8e4584746dcb2785327cfcffac10a66c689
[ "MIT" ]
2
2015-11-05T16:24:31.000Z
2022-02-05T19:01:58.000Z
freeze.py
eudemonia-research/hec
e65df8e4584746dcb2785327cfcffac10a66c689
[ "MIT" ]
null
null
null
freeze.py
eudemonia-research/hec
e65df8e4584746dcb2785327cfcffac10a66c689
[ "MIT" ]
null
null
null
from cx_Freeze import setup, Executable import requests.certs # Dependencies are automatically detected, but it might need # fine tuning. buildOptions = dict(packages = [], excludes = [], include_msvcr=True, include_files=[(requests.certs.where(),'cacert.pem')]) import sys base = 'Win32GUI' if sys....
29.5
74
0.676271
68
590
5.808824
0.735294
0.065823
0
0
0
0
0
0
0
0
0
0.012579
0.191525
590
19
75
31.052632
0.815514
0.120339
0
0
0
0
0.112403
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8063918c58e85541c9a3697d5b6790d29d944d4
103
py
Python
chapter2/chapter2_type_hints_01.py
GoodMonsters/Building-Data-Science-Applications-with-FastAPI
d2218d225c5b93723ecf46c19619ed5d3f2473e6
[ "MIT" ]
107
2021-03-26T20:18:51.000Z
2022-03-26T03:38:08.000Z
chapter2/chapter2_type_hints_01.py
GoodMonsters/Building-Data-Science-Applications-with-FastAPI
d2218d225c5b93723ecf46c19619ed5d3f2473e6
[ "MIT" ]
4
2021-06-09T08:48:21.000Z
2021-12-27T09:04:43.000Z
chapter2/chapter2_type_hints_01.py
GoodMonsters/Building-Data-Science-Applications-with-FastAPI
d2218d225c5b93723ecf46c19619ed5d3f2473e6
[ "MIT" ]
58
2021-03-12T20:51:19.000Z
2022-03-27T15:49:49.000Z
def greeting(name: str) -> str: return f"Hello, {name}" print(greeting("John")) # "Hello, John"
17.166667
40
0.61165
14
103
4.5
0.642857
0
0
0
0
0
0
0
0
0
0
0
0.184466
103
5
41
20.6
0.75
0.126214
0
0
0
0
0.193182
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
0.666667
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
4
c806d8b85faac4749d3297eee869e84a9a44277c
2,742
py
Python
Elasticsearch/elasticsearchconnector.py
krajai/testt
3aaf5fd7fe85e712c8c1615852b50f9ccb6737e5
[ "BSD-3-Clause" ]
1,114
2020-09-28T07:32:23.000Z
2022-03-31T22:35:50.000Z
Elasticsearch/elasticsearchconnector.py
krajai/testt
3aaf5fd7fe85e712c8c1615852b50f9ccb6737e5
[ "BSD-3-Clause" ]
298
2020-10-29T09:39:17.000Z
2022-03-31T15:24:44.000Z
Elasticsearch/elasticsearchconnector.py
krajai/testt
3aaf5fd7fe85e712c8c1615852b50f9ccb6737e5
[ "BSD-3-Clause" ]
153
2020-09-29T06:07:39.000Z
2022-03-31T17:41:16.000Z
# Import elasticsearch module from elasticsearch import Elasticsearch,ImproperlyConfigured,TransportError import json class ElasticsearchConnector: def __init__(self,credobject=None): """ Description: Accepts elasticsearch connection parameters and connects to elasticsearch cloud """ #Parameter chec...
35.153846
119
0.73523
345
2,742
5.791304
0.284058
0.052553
0.024024
0.028028
0.256757
0.183183
0.183183
0.183183
0.183183
0.15015
0
0.000434
0.160102
2,742
78
120
35.153846
0.86713
0.076951
0
0.278689
0
0
0.287293
0
0
0
0
0
0.032787
1
0.065574
false
0.032787
0.032787
0
0.196721
0.213115
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8086e05aec0c6df0ba73279af11a14fb3f20635
15,813
py
Python
Lab3.py
jamieaclifford/Crystal
d9ea44187a7673f523ad350834d38730c2d31126
[ "MIT" ]
null
null
null
Lab3.py
jamieaclifford/Crystal
d9ea44187a7673f523ad350834d38730c2d31126
[ "MIT" ]
null
null
null
Lab3.py
jamieaclifford/Crystal
d9ea44187a7673f523ad350834d38730c2d31126
[ "MIT" ]
null
null
null
from numpy import * from scipy.signal import correlate2d from numpy.random import randint,choice,uniform from matplotlib.pyplot import * import matplotlib.pyplot as plt from os import system class KineticMonteCarlo(object) : def __init__( self, Model ) : # reference state ...
34.526201
207
0.568393
2,188
15,813
4.030165
0.13117
0.113404
0.083012
0.05398
0.517124
0.485144
0.436834
0.434112
0.43139
0.416875
0
0.021588
0.30867
15,813
457
208
34.601751
0.785035
0.135079
0
0.455975
0
0
0.061444
0.001667
0
0
0
0
0
0
null
null
0
0.018868
null
null
0.13522
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c8093b0fe4419003974199d64ec5c9a63aa70c9e
4,434
py
Python
pyvino_utils/models/recognition/gaze_estimation.py
venky4121994/openvinoface
a620138b94f865fb19e6165abde2237c85ca8764
[ "MIT" ]
4
2020-08-31T17:19:57.000Z
2020-10-03T13:59:10.000Z
pyvino_utils/models/recognition/gaze_estimation.py
B0N0AI/pyvino_utils
0d42741eb446b038eae2917b621d9c1ffbc42452
[ "MIT" ]
2
2020-09-13T08:04:36.000Z
2020-09-13T08:04:58.000Z
pyvino_utils/models/recognition/gaze_estimation.py
mmphego/pyvino_utils
0d42741eb446b038eae2917b621d9c1ffbc42452
[ "MIT" ]
null
null
null
import time import cv2 import numpy as np from ..openvino_base.base_model import Base class GazeEstimation(Base): """Class for the Gaze Estimation Recognition Model.""" def __init__( self, model_name, source_width=None, source_height=None, device="CPU", thres...
32.844444
86
0.554804
519
4,434
4.447013
0.267823
0.039428
0.036395
0.02253
0.221837
0.174177
0.136915
0.098787
0.07539
0.034662
0
0.025718
0.324763
4,434
134
87
33.089552
0.745157
0.105774
0
0.196262
0
0
0.058257
0
0.009346
0
0
0.007463
0
1
0.056075
false
0
0.037383
0
0.130841
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8095fa9e80674ff147ce29f4d9409ee896f3519
1,982
py
Python
src/testing/task_plot_share_of_educ_participants_with_rapid_test.py
covid-19-impact-lab/sid-germany
aef4bbfb326adaf9190c6d8880e15b3d6f150d28
[ "MIT" ]
4
2021-04-24T14:43:47.000Z
2021-07-03T14:05:21.000Z
src/testing/task_plot_share_of_educ_participants_with_rapid_test.py
covid-19-impact-lab/sid-germany
aef4bbfb326adaf9190c6d8880e15b3d6f150d28
[ "MIT" ]
4
2021-04-27T10:34:45.000Z
2021-08-31T16:40:28.000Z
src/testing/task_plot_share_of_educ_participants_with_rapid_test.py
covid-19-impact-lab/sid-germany
aef4bbfb326adaf9190c6d8880e15b3d6f150d28
[ "MIT" ]
null
null
null
import warnings import matplotlib.pyplot as plt import pandas as pd import pytask import seaborn as sns from src.config import BLD from src.config import PLOT_END_DATE from src.config import PLOT_SIZE from src.config import PLOT_START_DATE from src.config import SRC from src.plotting.plotting import style_plot from s...
30.492308
85
0.712916
260
1,982
5.146154
0.342308
0.036622
0.04858
0.071001
0.210762
0.139013
0.09417
0
0
0
0
0
0.19223
1,982
64
86
30.96875
0.835728
0
0
0.071429
0
0
0.189707
0.023209
0
0
0
0
0
1
0.017857
false
0
0.214286
0
0.232143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c80966397626d332b933ed9036f4e46b5c441750
734
py
Python
app/models/brand.py
ertyurk/bugme
5a3ef3e089e0089055074c1c896c3fdc76600e93
[ "MIT" ]
null
null
null
app/models/brand.py
ertyurk/bugme
5a3ef3e089e0089055074c1c896c3fdc76600e93
[ "MIT" ]
null
null
null
app/models/brand.py
ertyurk/bugme
5a3ef3e089e0089055074c1c896c3fdc76600e93
[ "MIT" ]
null
null
null
from typing import Optional from pydantic import BaseModel, Field class BrandModel(BaseModel): brand: str = Field(...) auth_key: Optional[str] user_id: str = Field(...) class Config: allow_population_by_field_name = True schema_extra = { "example": { "brand...
22.9375
54
0.553134
67
734
5.880597
0.432836
0.111675
0.076142
0.091371
0.467005
0.467005
0.345178
0.345178
0.345178
0.345178
0
0.070539
0.343324
734
31
55
23.677419
0.746888
0
0
0.48
0
0
0.163488
0.065395
0
0
0
0
0
1
0
false
0
0.08
0
0.48
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c80b2595bdb7003b8c3cf6b926f272d5aafaf2b7
2,917
py
Python
src/autoschedulers/nelli2021/cmdscale.py
InteonCo/Halide
cb38ed9942e878bf40674d75da1cdd2527b81d0a
[ "Apache-2.0" ]
1
2021-12-30T09:27:33.000Z
2021-12-30T09:27:33.000Z
src/autoschedulers/nelli2021/cmdscale.py
InteonCo/Halide
cb38ed9942e878bf40674d75da1cdd2527b81d0a
[ "Apache-2.0" ]
3
2021-03-16T22:01:02.000Z
2021-09-23T19:17:10.000Z
src/autoschedulers/nelli2021/cmdscale.py
InteonCo/Halide
cb38ed9942e878bf40674d75da1cdd2527b81d0a
[ "Apache-2.0" ]
null
null
null
# thanks to Francis Song for this function # source: http://www.nervouscomputer.com/hfs/cmdscale-in-python/ from __future__ import division import numpy as np def cmdscale(D): """ Classical multidimensional scaling (MDS) ...
56.096154
95
0.255399
168
2,917
4.410714
0.60119
0.008097
0.037787
0
0
0
0
0
0
0
0
0.005618
0.694892
2,917
51
96
57.196078
0.826966
0.774083
0
0
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c80c247892056d339d30163cadca271c880389d5
443
py
Python
flaskapp/app.py
Chetan-Gahane/Detection-Of-Phishing-Websites
327c6bbd4fe77d465e290466f26a387760103ad7
[ "MIT" ]
null
null
null
flaskapp/app.py
Chetan-Gahane/Detection-Of-Phishing-Websites
327c6bbd4fe77d465e290466f26a387760103ad7
[ "MIT" ]
null
null
null
flaskapp/app.py
Chetan-Gahane/Detection-Of-Phishing-Websites
327c6bbd4fe77d465e290466f26a387760103ad7
[ "MIT" ]
null
null
null
from flask import Flask from flask import Flask, flash, redirect, render_template, request, session, abort import os import newtrain app = Flask(__name__) @app.route('/') def home(x): return x @app.route('/login', methods=['POST']) def do_admin_login(): url_new=request.form['username'] x=newtrai...
20.136364
82
0.683973
64
443
4.453125
0.578125
0.063158
0.105263
0.140351
0
0
0
0
0
0
0
0.005495
0.17833
443
22
83
20.136364
0.777473
0
0
0
0
0
0.060948
0
0
0
0
0
0
1
0.125
false
0
0.25
0.0625
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
c80efb1904e757cf4b1d0964fcfc32592997f16d
178
py
Python
lib/__init__.py
irap-omp/deconv3d
0ab5322f99e28a19ce5540d9a27dcbe340542d0a
[ "MIT" ]
3
2016-09-19T08:52:37.000Z
2018-12-07T09:33:20.000Z
lib/__init__.py
irap-omp/deconv3d
0ab5322f99e28a19ce5540d9a27dcbe340542d0a
[ "MIT" ]
1
2015-04-09T12:30:14.000Z
2015-04-09T14:05:30.000Z
lib/__init__.py
irap-omp/deconv3d
0ab5322f99e28a19ce5540d9a27dcbe340542d0a
[ "MIT" ]
3
2017-12-13T14:26:24.000Z
2019-07-26T18:15:37.000Z
from os.path import abspath, dirname with open(dirname(abspath(__file__))+'/../VERSION', 'r') as version_file: __version__ = version_file.read().replace('\n', '').strip()
25.428571
73
0.685393
23
178
4.869565
0.695652
0.196429
0
0
0
0
0
0
0
0
0
0
0.117978
178
6
74
29.666667
0.713376
0
0
0
0
0
0.079545
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
c80fb814451534b7b615ad0d3cac56241fef8195
9,150
py
Python
selection/algorithms/tests/test_sqrt_lasso.py
wfithian/selective-inference
19ea427118b04716b23b394f37aafcf126d29a53
[ "BSD-3-Clause" ]
null
null
null
selection/algorithms/tests/test_sqrt_lasso.py
wfithian/selective-inference
19ea427118b04716b23b394f37aafcf126d29a53
[ "BSD-3-Clause" ]
null
null
null
selection/algorithms/tests/test_sqrt_lasso.py
wfithian/selective-inference
19ea427118b04716b23b394f37aafcf126d29a53
[ "BSD-3-Clause" ]
1
2019-07-13T04:14:12.000Z
2019-07-13T04:14:12.000Z
from __future__ import division import numpy as np import numpy.testing.decorators as dec import nose.tools as nt import statsmodels as sm import matplotlib.pyplot as plt from selection.algorithms.sqrt_lasso import (sqrt_lasso, choose_lambda, estimate_sigma, data_carving, split_model)...
33.888889
114
0.500656
1,248
9,150
3.541667
0.165064
0.030769
0.054299
0.074661
0.384615
0.359276
0.311765
0.275113
0.275113
0.275113
0
0.038222
0.368087
9,150
269
115
34.01487
0.726219
0.026448
0
0.324201
0
0
0.00701
0.0026
0
0
0
0
0.022831
0
null
null
0
0.050228
null
null
0.018265
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c8100632cb345df1cb4918dfaf696ed8e91b2f92
8,607
py
Python
training/anticausal_classifier_train.py
SANCHES-Pedro/Diff-SCM
a7e7e6ed3a2cd1c21e3bf7a3ed8ed8b29a22cb69
[ "Apache-2.0" ]
6
2022-02-22T05:07:05.000Z
2022-03-29T09:48:03.000Z
training/anticausal_classifier_train.py
SANCHES-Pedro/Diff-SCM
a7e7e6ed3a2cd1c21e3bf7a3ed8ed8b29a22cb69
[ "Apache-2.0" ]
null
null
null
training/anticausal_classifier_train.py
SANCHES-Pedro/Diff-SCM
a7e7e6ed3a2cd1c21e3bf7a3ed8ed8b29a22cb69
[ "Apache-2.0" ]
2
2022-02-20T08:45:54.000Z
2022-03-09T09:51:13.000Z
""" Train a noised image classifier on ImageNet. """ import os import blobfile as bf import torch as th import torch.distributed as dist import torch.nn.functional as F from torch.nn.parallel.distributed import DistributedDataParallel as DDP from torch.optim import AdamW import torch from pathlib import Path import s...
38.084071
121
0.668526
1,111
8,607
4.937894
0.227723
0.084579
0.104995
0.032811
0.233139
0.155669
0.100073
0.072913
0.060518
0.048487
0
0.006595
0.224817
8,607
225
122
38.253333
0.815647
0.036947
0
0.093168
0
0
0.071656
0.013028
0
0
0
0
0.006211
1
0.049689
false
0
0.10559
0
0.180124
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c81323b7eda0896694f1dbe20031469d75f77fed
3,015
py
Python
pythonclient/karmen/karmen.py
jrcichra/karmen
4d25d635509ebffa295b085ae7fa3932e3a36344
[ "MIT" ]
3
2020-03-02T13:09:07.000Z
2021-12-27T16:27:23.000Z
pythonclient/karmen/karmen.py
jrcichra/karmen
4d25d635509ebffa295b085ae7fa3932e3a36344
[ "MIT" ]
5
2020-03-02T04:53:54.000Z
2021-12-17T23:57:12.000Z
pythonclient/karmen/karmen.py
jrcichra/karmen
4d25d635509ebffa295b085ae7fa3932e3a36344
[ "MIT" ]
null
null
null
#!/usr/bin/python3 -u import threading import time import queue import socket import grpc import karmen.karmen_pb2 as pb import karmen.karmen_pb2_grpc as pb_grpc class Karmen: def __init__(self, name=socket.gethostname(), hostname="localhost", port=8080): super().__init__() self.name = name ...
30.15
83
0.60995
355
3,015
5.095775
0.309859
0.039801
0.023217
0.041459
0.126036
0
0
0
0
0
0
0.00592
0.271642
3,015
99
84
30.454545
0.817851
0.071973
0
0
0
0
0.088594
0.032999
0
0
0
0
0
1
0.161765
false
0.014706
0.102941
0.014706
0.352941
0.088235
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c81398777499e20a3165a99b2f64b68aeafcfd64
54
py
Python
emma.py
patrickdijusto/python.hub
776a6a843dbd8895c414dcb8e7730c8cb2f3894d
[ "MIT" ]
null
null
null
emma.py
patrickdijusto/python.hub
776a6a843dbd8895c414dcb8e7730c8cb2f3894d
[ "MIT" ]
null
null
null
emma.py
patrickdijusto/python.hub
776a6a843dbd8895c414dcb8e7730c8cb2f3894d
[ "MIT" ]
null
null
null
def fun(name, age=20): print(name, age) fun('Emma')
10.8
22
0.62963
10
54
3.4
0.7
0.411765
0
0
0
0
0
0
0
0
0
0.043478
0.148148
54
4
23
13.5
0.695652
0
0
0
0
0
0.074074
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.333333
0.333333
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
c813a1eed5677e2bde6506474cc6f8326d3c6475
6,680
py
Python
proxy-server/proxy_server.py
MS17-010/python-misc
15fbf3215359c97b75d4809756644626e6b577ed
[ "MIT" ]
null
null
null
proxy-server/proxy_server.py
MS17-010/python-misc
15fbf3215359c97b75d4809756644626e6b577ed
[ "MIT" ]
null
null
null
proxy-server/proxy_server.py
MS17-010/python-misc
15fbf3215359c97b75d4809756644626e6b577ed
[ "MIT" ]
null
null
null
import socket import threading import signal import sys import fnmatch import utils from time import gmtime, strftime, localtime import logging config = { "HOST_NAME" : "192.168.0.136", "BIND_PORT" : 12345, "MAX_REQUEST_LEN" : 1024, "CONNECTION_TIMEOUT" : 5, ...
37.954545
137
0.550898
754
6,680
4.770557
0.320955
0.015569
0.010842
0.01112
0.070058
0.043925
0.043925
0.022241
0
0
0
0.013438
0.331587
6,680
175
138
38.171429
0.792161
0
0
0.095652
0
0.017391
0.098111
0
0
0
0
0.005714
0
0
null
null
0
0.069565
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c8146b0afe8645af236462b961f5cb0186da93f4
9,336
py
Python
basestation/xbox.py
ksurct-officers/Mercury2018-19
ee90803c1b14727663c65ebc396cdb92c2b79667
[ "Apache-2.0" ]
null
null
null
basestation/xbox.py
ksurct-officers/Mercury2018-19
ee90803c1b14727663c65ebc396cdb92c2b79667
[ "Apache-2.0" ]
null
null
null
basestation/xbox.py
ksurct-officers/Mercury2018-19
ee90803c1b14727663c65ebc396cdb92c2b79667
[ "Apache-2.0" ]
null
null
null
''' xbox.py Responsible for getting information directly from controller Courtesy Aaron Schif, former member Don't touch this file, it's perfect. ''' from math import isclose from collections import namedtuple import sdl2 from sdl2 import ext ButtonEvent = namedtuple('ButtonEvent', ['time', 'state']) Ax...
28.638037
88
0.60347
1,112
9,336
4.843525
0.161871
0.058485
0.033791
0.031749
0.386558
0.354437
0.296881
0.198106
0.18251
0.18251
0
0.017782
0.283205
9,336
325
89
28.726154
0.787059
0.108183
0
0.334884
0
0
0.018742
0
0
0
0
0
0.004651
1
0.204651
false
0.013953
0.023256
0.037209
0.35814
0.004651
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
c817b460ee65b13241ef6e94463df88bf762261b
765
py
Python
legacy/legacy/recommenders/visual_gmf.py
csmithchicago/openrec
5a9cf03abe0db0636107985f9f19d6351e4afe68
[ "MIT" ]
null
null
null
legacy/legacy/recommenders/visual_gmf.py
csmithchicago/openrec
5a9cf03abe0db0636107985f9f19d6351e4afe68
[ "MIT" ]
6
2020-01-28T22:51:16.000Z
2022-02-10T00:11:19.000Z
legacy/legacy/recommenders/visual_gmf.py
csmithchicago/openrec
5a9cf03abe0db0636107985f9f19d6351e4afe68
[ "MIT" ]
null
null
null
from openrec.legacy.recommenders import VisualPMF from openrec.legacy.modules.interactions import PointwiseGeCE class VisualGMF(VisualPMF): def _build_default_interactions(self, train=True): self._add_module( "interaction", PointwiseGeCE( user=self._get_module("use...
34.772727
86
0.589542
81
765
5.283951
0.419753
0.140187
0.091122
0.140187
0.179907
0.130841
0.130841
0
0
0
0
0.009346
0.300654
765
21
87
36.428571
0.790654
0
0
0.111111
0
0
0.071895
0
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c818c2c94bfac62e873d6b6ae455389a5b8e8196
732
py
Python
tests/test_tag.py
danielwe/explore-courses-api
e08d219b154e7fdb16690e4cd02aa239366f6747
[ "MIT" ]
7
2019-06-17T07:45:54.000Z
2022-01-31T01:09:22.000Z
tests/test_tag.py
illiteratecoder/Explore-Courses-API
b2dc41092882e4b2b7945609e4e85b8ac1702bc7
[ "MIT" ]
null
null
null
tests/test_tag.py
illiteratecoder/Explore-Courses-API
b2dc41092882e4b2b7945609e4e85b8ac1702bc7
[ "MIT" ]
1
2021-11-14T22:23:59.000Z
2021-11-14T22:23:59.000Z
from xml.etree import ElementTree as ET from explorecourses import * class TestTag(object): @classmethod def setup_class(cls): text_tag = ( '<tag>' '<organization>EARTHSYS</organization>' '<name>energy_foundation</name>' '</tag>' ) cls....
20.914286
56
0.592896
84
732
4.97619
0.369048
0.057416
0.07177
0.100478
0.200957
0.200957
0.200957
0.138756
0
0
0
0
0.296448
732
34
57
21.529412
0.81165
0
0
0.136364
0
0
0.177596
0.128415
0
0
0
0
0.181818
1
0.181818
false
0
0.090909
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c818d2ec8f5ff64e655e15444fca7720cb2c47a4
385
py
Python
server/server.py
BShadid/TFKAKsubmission
b324ea477f5658c4b0b46fd05cde60c4c8a43b93
[ "MIT" ]
null
null
null
server/server.py
BShadid/TFKAKsubmission
b324ea477f5658c4b0b46fd05cde60c4c8a43b93
[ "MIT" ]
null
null
null
server/server.py
BShadid/TFKAKsubmission
b324ea477f5658c4b0b46fd05cde60c4c8a43b93
[ "MIT" ]
null
null
null
from flask import Flask import easyWik app = Flask(__name__) @app.route('/') def usage(): return "you shouldn't be here." @app.route('/<title>') def simplify(title): # do some magic return easyWik.run_main(title) # return title if __name__ == "__main__": context = ('yourserver.crt','yourserver.k...
20.263158
59
0.664935
55
385
4.4
0.581818
0.024793
0.024793
0
0
0
0
0
0
0
0
0.025
0.168831
385
18
60
21.388889
0.73125
0.067532
0
0
0
0
0.219101
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0.166667
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
1
0
0
0
1
c81a08103667814c6eb2d1d517a2b39db440ed7f
458
py
Python
SScriptCompiler/examples/thresholdcounter/states/init_s.py
alklasil/SScript
de4481bf96e79b9ee157e266ea9fe8b1bfb3701e
[ "MIT" ]
null
null
null
SScriptCompiler/examples/thresholdcounter/states/init_s.py
alklasil/SScript
de4481bf96e79b9ee157e266ea9fe8b1bfb3701e
[ "MIT" ]
8
2018-03-10T19:20:43.000Z
2018-04-30T18:11:17.000Z
SScriptCompiler/examples/thresholdcounter/states/init_s.py
alklasil/SScript
de4481bf96e79b9ee157e266ea9fe8b1bfb3701e
[ "MIT" ]
null
null
null
def init_s(data): return ("init", [ [ # set configuration time "$getTime", "configuration_millis", # set state initially below lower threshold "$=(const)=", "state", "@<t", "$printInt_ln", data['sensorIdentifier'], # set requestString...
26.941176
55
0.5
30
458
7.5
0.8
0
0
0
0
0
0
0
0
0
0
0
0.373362
458
16
56
28.625
0.783972
0.19869
0
0.181818
0
0
0.374656
0.15978
0
0
0
0
0
1
0.090909
false
0
0
0.090909
0.181818
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8205acb89329008fc256d7baa124e1eca07ffcd
1,521
py
Python
slybot/slybot/linkextractor/xml.py
coolkunal64/ht
b7c52d5604dd75ea4086a6ff92eaa2db85bb145c
[ "BSD-3-Clause" ]
1
2017-11-03T13:00:21.000Z
2017-11-03T13:00:21.000Z
slybot/slybot/linkextractor/xml.py
coolkunal64/ht
b7c52d5604dd75ea4086a6ff92eaa2db85bb145c
[ "BSD-3-Clause" ]
2
2021-03-31T20:04:55.000Z
2021-12-13T20:47:09.000Z
slybot/slybot/linkextractor/xml.py
coolkunal64/ht
b7c52d5604dd75ea4086a6ff92eaa2db85bb145c
[ "BSD-3-Clause" ]
2
2017-11-03T13:00:23.000Z
2020-08-28T19:59:40.000Z
""" Link extraction for auto scraping """ from scrapy.link import Link from scrapy.selector import Selector from slybot.linkextractor.base import BaseLinkExtractor class XmlLinkExtractor(BaseLinkExtractor): """Link extractor for XML sources""" def __init__(self, xpath, **kwargs): self.remove_namespace...
37.097561
123
0.680473
162
1,521
6.12963
0.364198
0.096677
0.04431
0.05136
0.123867
0.096677
0.096677
0.096677
0.096677
0
0
0
0.187377
1,521
40
124
38.025
0.803398
0.087442
0
0.178571
0
0
0.117949
0.041026
0
0
0
0
0
1
0.178571
false
0
0.107143
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c821e277e58638d63f9549aad5f4d477bf38817b
643
py
Python
advancing_hero/settings.py
hentt30/ces22-project
06f13ebdf06bbab182b83c882846701ab69e8631
[ "MIT" ]
1
2021-04-12T01:27:34.000Z
2021-04-12T01:27:34.000Z
advancing_hero/settings.py
hentt30/ces22-project
06f13ebdf06bbab182b83c882846701ab69e8631
[ "MIT" ]
null
null
null
advancing_hero/settings.py
hentt30/ces22-project
06f13ebdf06bbab182b83c882846701ab69e8631
[ "MIT" ]
2
2021-04-01T00:13:51.000Z
2021-04-11T07:15:54.000Z
TITLE = 'Knight of Valhalla' SCREEN_ROWS = 9 SCREEN_COLUMNS = 16 SIZE = screen_width, screen_height = 64 * 16, 64 * 9 FPS = 60 tile_size = 64 ## Speeds WORLD_SPEED = 1 DEFAULT_PLAYER_SPEED = 5 ASPHALT_SPEED = 1 * DEFAULT_PLAYER_SPEED GRASS_SPEED = 1 * DEFAULT_PLAYER_SPEED DIRT_SPEED = 0.6 * DEFAULT_PLAYER_SPEED WATER_...
18.911765
52
0.695179
104
643
4.067308
0.461538
0.153664
0.212766
0.134752
0.170213
0
0
0
0
0
0
0.094697
0.178849
643
33
53
19.484848
0.706439
0.037325
0
0
0
0
0.140523
0.050654
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c821ed2774a2669777a45f15bf9913ade184edde
1,319
py
Python
questions/construct-the-rectangle/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
141
2017-12-12T21:45:53.000Z
2022-03-25T07:03:39.000Z
questions/construct-the-rectangle/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
32
2015-10-05T14:09:52.000Z
2021-05-30T10:28:41.000Z
questions/construct-the-rectangle/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
56
2015-09-30T05:23:28.000Z
2022-03-08T07:57:11.000Z
""" A web developer needs to know how to design a web page's size. So, given a specific rectangular web page’s area, your job by now is to design a rectangular web page, whose length L and width W satisfy the following requirements: The area of the rectangular web page you designed must equal to the given target area...
27.479167
228
0.644428
228
1,319
3.72807
0.421053
0.041176
0.063529
0.035294
0.037647
0
0
0
0
0
0
0.050568
0.265353
1,319
48
229
27.479167
0.826625
0.791509
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c823fba7bcffc4b21c83b60516082a369618b755
891
py
Python
flask_pdv/ext/resources/transacao.py
evaristofm/api_transacao
3a8d1d1459f5f58c8df7473fe6f7ea1a438738d2
[ "MIT" ]
null
null
null
flask_pdv/ext/resources/transacao.py
evaristofm/api_transacao
3a8d1d1459f5f58c8df7473fe6f7ea1a438738d2
[ "MIT" ]
null
null
null
flask_pdv/ext/resources/transacao.py
evaristofm/api_transacao
3a8d1d1459f5f58c8df7473fe6f7ea1a438738d2
[ "MIT" ]
null
null
null
from flask_restful import Resource, marshal from flask_pdv.ext.api import requests from flask_pdv.ext.db.models import TransacaoModel from flask_pdv.ext.db.schemas import transacao_field from flask_pdv.ext.db import db class Transacao(Resource): def get(self): transacao = TransacaoModel.query.all() ...
26.205882
85
0.65881
96
891
6.041667
0.385417
0.077586
0.082759
0.103448
0.087931
0
0
0
0
0
0
0
0.232323
891
33
86
27
0.847953
0
0
0.086957
0
0
0.087542
0
0
0
0
0
0
1
0.173913
false
0
0.217391
0
0.521739
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c825a6df3c14933bdcbd115b36ca8c69f6c6f233
2,434
py
Python
limiter/rate_limiter.py
sousa-andre/requests-limiter
ad3a5982a40e88111eca63b258e1226e15a8befa
[ "MIT" ]
4
2020-11-14T18:13:27.000Z
2021-01-03T19:13:39.000Z
limiter/rate_limiter.py
sousa-andre/requests-limiter
ad3a5982a40e88111eca63b258e1226e15a8befa
[ "MIT" ]
null
null
null
limiter/rate_limiter.py
sousa-andre/requests-limiter
ad3a5982a40e88111eca63b258e1226e15a8befa
[ "MIT" ]
2
2021-01-03T19:13:46.000Z
2021-01-31T12:24:23.000Z
from functools import wraps from time import sleep from typing import List from .rate_limit import RateLimit from .exceptions import RateLimitHit class OnHitAction: raise_exception = 0 wait = 1 class RateLimiter: def __init__(self, storage=RateLimit, *, action=OnHitAction.raise_exception): self...
32.453333
101
0.582991
259
2,434
5.30888
0.277992
0.058182
0.029091
0.034909
0.106182
0.074182
0.074182
0.074182
0.074182
0
0
0.003117
0.341002
2,434
74
102
32.891892
0.854115
0
0
0.225806
0
0
0.021775
0
0
0
0
0
0
1
0.145161
false
0
0.080645
0
0.419355
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c82642bd0188daaa561a06de4c6541a12f22393f
2,081
py
Python
pymod/amsexceptions.py
kevangel79/argo-ams-library
6824b1f6f577e688575d8f2f67f747126a856fcb
[ "Apache-2.0" ]
null
null
null
pymod/amsexceptions.py
kevangel79/argo-ams-library
6824b1f6f577e688575d8f2f67f747126a856fcb
[ "Apache-2.0" ]
1
2021-06-25T15:35:46.000Z
2021-06-25T15:35:46.000Z
pymod/amsexceptions.py
kevangel79/argo-ams-library
6824b1f6f577e688575d8f2f67f747126a856fcb
[ "Apache-2.0" ]
null
null
null
import json class AmsException(Exception): """Base exception class for all Argo Messaging service related errors""" def __init__(self, *args, **kwargs): super(AmsException, self).__init__(*args, **kwargs) class AmsServiceException(AmsException): """Exception for Argo Messaging Service API errors...
33.031746
90
0.683325
231
2,081
5.943723
0.329004
0.046613
0.04807
0.037145
0.151493
0.116533
0.05244
0.05244
0.05244
0
0
0.004225
0.203748
2,081
62
91
33.564516
0.824381
0.280154
0
0.1
0
0
0.073919
0
0
0
0
0
0
1
0.2
false
0
0.033333
0
0.433333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8284b2ce3b5bfcda541a3e925afc518ce46735a
18,871
py
Python
tests/fixtures/__init__.py
Lunga001/pmg-cms-2
10cea3979711716817b0ba2a41987df73f2c7642
[ "Apache-2.0" ]
2
2019-06-11T20:46:43.000Z
2020-08-27T22:50:32.000Z
tests/fixtures/__init__.py
Lunga001/pmg-cms-2
10cea3979711716817b0ba2a41987df73f2c7642
[ "Apache-2.0" ]
70
2017-05-26T14:04:06.000Z
2021-06-30T10:21:58.000Z
tests/fixtures/__init__.py
OpenUpSA/pmg-cms-2
ec5f259dae81674ac7a8cdb80f124a8b0f167780
[ "Apache-2.0" ]
4
2017-08-29T10:09:30.000Z
2021-05-25T11:29:03.000Z
import pytz import datetime from fixture import DataSet, NamedDataStyle, SQLAlchemyFixture from pmg.models import ( db, House, Committee, CommitteeMeeting, Bill, BillType, Province, Party, CommitteeMeetingAttendance, Member, CallForComment, TabledCommitteeReport, Com...
33.578292
470
0.647237
2,272
18,871
5.285211
0.209507
0.012492
0.025316
0.037975
0.397235
0.342688
0.31962
0.286059
0.262492
0.240257
0
0.042352
0.271793
18,871
561
471
33.638146
0.831466
0.001484
0
0.358407
0
0.028761
0.273118
0.001169
0
0
0
0
0
1
0
false
0
0.00885
0
0.232301
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c828bd04e92dcf2b104e584217bad8d4f09ebabf
455
py
Python
Google Search/GoogleSearch.py
cclauss/Browser-Automation
7baca74d40ac850f9570d7e40a47021dc0e8e387
[ "Apache-2.0" ]
35
2016-07-16T07:05:24.000Z
2021-07-07T15:18:55.000Z
Google Search/GoogleSearch.py
cclauss/Browser-Automation
7baca74d40ac850f9570d7e40a47021dc0e8e387
[ "Apache-2.0" ]
null
null
null
Google Search/GoogleSearch.py
cclauss/Browser-Automation
7baca74d40ac850f9570d7e40a47021dc0e8e387
[ "Apache-2.0" ]
7
2016-07-27T10:25:10.000Z
2019-12-06T08:45:03.000Z
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.desired_capabilities import DesiredCapabilities driver = webdriver.Chrome("D:\chromedriver\chromedriver") driver.get("http://www.google.com") if not "Google" in driver.title: raise Exception("Unable to loa...
28.4375
78
0.789011
62
455
5.709677
0.612903
0.101695
0.118644
0.152542
0
0
0
0
0
0
0
0
0.092308
455
15
79
30.333333
0.857143
0
0
0
0
0
0.2
0.061538
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c82a3f71eb898781a7532e4f8e200f17688bdd99
2,265
py
Python
PuppeteerLibrary/puppeteer/async_keywords/puppeteer_formelement.py
qahive/robotframework-puppeteer
6377156c2e5b3a4d3841c33a2d3ff9ab0b38854a
[ "Apache-2.0" ]
37
2019-10-28T01:35:43.000Z
2022-03-31T04:11:49.000Z
PuppeteerLibrary/puppeteer/async_keywords/puppeteer_formelement.py
qahive/robotframework-puppeteer
6377156c2e5b3a4d3841c33a2d3ff9ab0b38854a
[ "Apache-2.0" ]
61
2020-07-16T00:18:22.000Z
2022-03-24T07:12:05.000Z
PuppeteerLibrary/puppeteer/async_keywords/puppeteer_formelement.py
qahive/robotframework-puppeteer
6377156c2e5b3a4d3841c33a2d3ff9ab0b38854a
[ "Apache-2.0" ]
10
2020-03-03T05:28:05.000Z
2022-02-14T10:03:44.000Z
from PuppeteerLibrary.utils.coverter import str2bool, str2str import os import glob import shutil import time from PuppeteerLibrary.ikeywords.iformelement_async import iFormElementAsync class PuppeteerFormElement(iFormElementAsync): def __init__(self, library_ctx): super().__init__(library_ctx) asyn...
38.389831
114
0.666225
274
2,265
5.248175
0.306569
0.055633
0.06815
0.070932
0.311544
0.311544
0.274687
0.248261
0.166898
0.166898
0
0.00577
0.234879
2,265
58
115
39.051724
0.824005
0
0
0.122449
0
0
0.05298
0.010596
0
0
0
0
0
1
0.020408
false
0.020408
0.122449
0
0.204082
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c82ab1a64645a1b9f4d0449b2c09332ab3971afe
7,187
py
Python
cnns/nnlib/pytorch_architecture/resnet1d.py
anonymous-user-commits/perturb-net
66fc7c4a1234fa34b92bcc85751f0a6e23d80a23
[ "MIT" ]
1
2018-03-25T13:19:46.000Z
2018-03-25T13:19:46.000Z
cnns/nnlib/pytorch_architecture/resnet1d.py
anonymous-user-commits/perturb-net
66fc7c4a1234fa34b92bcc85751f0a6e23d80a23
[ "MIT" ]
null
null
null
cnns/nnlib/pytorch_architecture/resnet1d.py
anonymous-user-commits/perturb-net
66fc7c4a1234fa34b92bcc85751f0a6e23d80a23
[ "MIT" ]
null
null
null
import shutil, os, csv, itertools, glob import math import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from torch.utils.data import Dataset, DataLoader import torch.optim as optim from sklearn.metrics import confusion_matrix import pandas as pd i...
28.863454
76
0.594128
918
7,187
4.582789
0.208061
0.024958
0.021393
0.024245
0.47112
0.439743
0.365106
0.342287
0.332303
0.313763
0
0.03506
0.285655
7,187
248
77
28.979839
0.784379
0.109225
0
0.361963
0
0
0.024278
0
0
0
0
0
0
1
0.09816
false
0
0.07362
0
0.282209
0.02454
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c82b86e4546012be74409a7f90dcbec90ae16446
12,279
py
Python
satori/serviceinstall.py
mgeisler/satori
dea382bae1cd043189589c0f7d4c20b4b6725ab5
[ "Apache-2.0" ]
1
2015-01-18T19:56:28.000Z
2015-01-18T19:56:28.000Z
satori/serviceinstall.py
samstav/satori
239fa1e3c7aac78599145c670576f0ac76a41a89
[ "Apache-2.0" ]
null
null
null
satori/serviceinstall.py
samstav/satori
239fa1e3c7aac78599145c670576f0ac76a41a89
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2003-2012 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # $Id: serviceinstall.py 1141 2014-02-12 16:39:51Z bethus@gmail.com $ # # Service Install Helper librar...
40.391447
79
0.540353
1,219
12,279
5.347826
0.244463
0.045099
0.025311
0.028992
0.330419
0.295444
0.259856
0.216598
0.177481
0.177481
0
0.007164
0.374786
12,279
303
80
40.524752
0.841996
0.214431
0
0.476852
0
0
0.086874
0
0
0
0
0
0
1
0.041667
false
0.050926
0.041667
0
0.125
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c82bebdc20706924551678f498e8c6d34044e848
11,879
py
Python
pirates/battle/DistributedBattleAvatarAI.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
81
2018-04-08T18:14:24.000Z
2022-01-11T07:22:15.000Z
pirates/battle/DistributedBattleAvatarAI.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
4
2018-09-13T20:41:22.000Z
2022-01-08T06:57:00.000Z
pirates/battle/DistributedBattleAvatarAI.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
26
2018-05-26T12:49:27.000Z
2021-09-11T09:11:59.000Z
from direct.directnotify import DirectNotifyGlobal from pirates.reputation. DistributedReputationAvatarAI import DistributedReputationAvatarAI from Teamable import Teamable from direct.distributed.ClockDelta import globalClockDelta from pirates.piratesbase import EmoteGlobals class DistributedBattleAvatarAI(Distribut...
27.819672
98
0.6562
1,179
11,879
6.536896
0.133164
0.038926
0.052679
0.027248
0.096795
0.066303
0.066303
0.018425
0.018425
0.018425
0
0.003276
0.254735
11,879
426
99
27.884977
0.867277
0.00362
0
0.026059
0
0
0.035663
0.002113
0
0
0
0
0
1
0.351792
false
0
0.016287
0.094463
0.47557
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
c82c884ecd2fbb3f7bbb619a3ed6f25fe4c5e6e9
484
py
Python
django_migrate_project/executor.py
dsanders11/django-migrate-project
68b637d08dfb6aecdf75d836ab4736e1ba624dcc
[ "MIT" ]
2
2018-12-27T05:15:48.000Z
2018-12-28T00:37:03.000Z
django_migrate_project/executor.py
dsanders11/django-migrate-project
68b637d08dfb6aecdf75d836ab4736e1ba624dcc
[ "MIT" ]
null
null
null
django_migrate_project/executor.py
dsanders11/django-migrate-project
68b637d08dfb6aecdf75d836ab4736e1ba624dcc
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db.migrations.executor import MigrationExecutor from django_migrate_project.loader import ProjectMigrationLoader class ProjectMigrationExecutor(MigrationExecutor): def __init__(self, connection, progress_callback=None): super(ProjectMigrationExecutor, ...
32.266667
64
0.789256
46
484
7.934783
0.608696
0.054795
0.142466
0
0
0
0
0
0
0
0
0
0.157025
484
14
65
34.571429
0.894608
0.06405
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
c82da452c1cd0b32e3a74054db0ed0b447787df9
31,942
py
Python
agora_deploy/OVF.py
ThinkBriK/fwap
b01e3b856ad29f6cfac7d5e368deb18faed7d113
[ "Apache-2.0" ]
null
null
null
agora_deploy/OVF.py
ThinkBriK/fwap
b01e3b856ad29f6cfac7d5e368deb18faed7d113
[ "Apache-2.0" ]
null
null
null
agora_deploy/OVF.py
ThinkBriK/fwap
b01e3b856ad29f6cfac7d5e368deb18faed7d113
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Script pour déployer une VM TAT1 dont on a récupéré les informations Ecrit par Benoit BARTHELEMY benoit.barthelemy2@open-groupe.com """ import atexit import datetime import re import ssl from argparse import ArgumentParser from getpass import getpass from os import path from sys import exit ...
40.794381
142
0.589475
3,610
31,942
5.085042
0.19446
0.011113
0.009588
0.022117
0.315302
0.244975
0.205099
0.17127
0.132157
0.104265
0
0.007938
0.321645
31,942
782
143
40.846547
0.839256
0.171592
0
0.25
0
0
0.080939
0.011524
0
0
0
0.005115
0
1
0.05303
false
0.05303
0.039773
0
0.117424
0.024621
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c82e3f7cd86031ad65e19765bc6e16f53e31ebc5
1,393
py
Python
src/grokcore/formlib/tests/base/form/customautoform.py
zopefoundation/grokcore.formlib
afcb6fce344ef60e3fec2aa839c13a61228d8d23
[ "ZPL-2.1" ]
null
null
null
src/grokcore/formlib/tests/base/form/customautoform.py
zopefoundation/grokcore.formlib
afcb6fce344ef60e3fec2aa839c13a61228d8d23
[ "ZPL-2.1" ]
null
null
null
src/grokcore/formlib/tests/base/form/customautoform.py
zopefoundation/grokcore.formlib
afcb6fce344ef60e3fec2aa839c13a61228d8d23
[ "ZPL-2.1" ]
2
2015-04-03T04:51:14.000Z
2018-01-12T06:51:36.000Z
""" A form view can have a custom form_fields but reusing those fields that were deduced automatically, using grok.AutoFields: >>> grok.testing.grok(__name__) We only expect a single field to be present in the form, as we omitted 'size': >>> from zope import component >>> from zope.publisher.browser import Tes...
24.017241
78
0.701364
185
1,393
5.178378
0.356757
0.073069
0.058455
0.083507
0.319415
0.319415
0.246347
0.246347
0.246347
0.246347
0
0.006019
0.165111
1,393
57
79
24.438596
0.817713
0.488873
0
0.210526
0
0
0.068279
0
0
0
0
0
0
1
0
false
0.052632
0.157895
0
0.684211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
c82fbb8e27137ecf71edbf4cda57e644ec71cfa9
1,398
py
Python
other_models/AAN/adaptive-aggregation-networks/dataloaders/cifar100_dirmap.py
kreimanlab/AugMem
cb0e8d39eb0c469da46c7c550c19229927a2bec5
[ "MIT" ]
6
2021-04-07T15:17:24.000Z
2021-07-07T04:37:29.000Z
other_models/Remind/image_classification_experiments/dataloaders/cifar100_dirmap.py
kreimanlab/AugMem
cb0e8d39eb0c469da46c7c550c19229927a2bec5
[ "MIT" ]
null
null
null
other_models/Remind/image_classification_experiments/dataloaders/cifar100_dirmap.py
kreimanlab/AugMem
cb0e8d39eb0c469da46c7c550c19229927a2bec5
[ "MIT" ]
null
null
null
import os import sys import pandas as pd # USAGE: python cifar100_dirmap.py <path to cifar100 dataset directory> # Organized cifar100 directory can be created using cifar2png: https://github.com/knjcode/cifar2png if len(sys.argv) > 1: DATA_DIR = sys.argv[1] else: DATA_DIR = "./../data/cifar100" # Get class n...
34.95
112
0.666667
213
1,398
4.164319
0.366197
0.039459
0.045096
0.047351
0.099211
0.099211
0.074408
0.074408
0.074408
0
0
0.021053
0.184549
1,398
39
113
35.846154
0.757018
0.130901
0
0
0
0
0.135425
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
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
c82fd0f2d54b784533c3c8e4ad5838457eb0383a
5,616
py
Python
tests/integration_tests/data_steward/cdr_cleaner/cleaning_rules/remove_participant_data_past_deactivation_date_test.py
lrwb-aou/curation
e80447e56d269dc2c9c8bc79e78218d4b0dc504c
[ "MIT" ]
16
2017-06-30T20:05:05.000Z
2022-03-08T21:03:19.000Z
tests/integration_tests/data_steward/cdr_cleaner/cleaning_rules/remove_participant_data_past_deactivation_date_test.py
lrwb-aou/curation
e80447e56d269dc2c9c8bc79e78218d4b0dc504c
[ "MIT" ]
342
2017-06-23T21:37:40.000Z
2022-03-30T16:44:16.000Z
tests/integration_tests/data_steward/cdr_cleaner/cleaning_rules/remove_participant_data_past_deactivation_date_test.py
lrwb-aou/curation
e80447e56d269dc2c9c8bc79e78218d4b0dc504c
[ "MIT" ]
33
2017-07-01T00:12:20.000Z
2022-01-26T18:06:53.000Z
""" Ensures there is no data past the deactivation date for deactivated participants. Original Issue: DC-686 The intent is to sandbox and drop records dated after the date of deactivation for participants who have deactivated from the Program This test will mock calling the PS API and provide a returned value. Every...
37.44
104
0.639067
679
5,616
5.055965
0.343152
0.028838
0.016021
0.016604
0.131372
0.064084
0.032625
0
0
0
0
0.045487
0.256232
5,616
149
105
37.691275
0.776395
0.209758
0
0.042105
0
0
0.332104
0.106015
0
0
0
0
0
1
0.031579
false
0
0.084211
0
0.126316
0.031579
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8304da49c7cd5f405be7c2e58f33877d39f8895
2,499
py
Python
accounts/views.py
bornamir/ThreeAttemptLogin
a1ac34e106df913dedef80f595b9690bbc77f674
[ "MIT" ]
1
2019-09-03T08:40:19.000Z
2019-09-03T08:40:19.000Z
accounts/views.py
bornamir/ThreeAttemptLogin
a1ac34e106df913dedef80f595b9690bbc77f674
[ "MIT" ]
5
2021-03-19T01:11:56.000Z
2022-02-10T09:59:36.000Z
accounts/views.py
bornamir/ThreeAttemptLogin
a1ac34e106df913dedef80f595b9690bbc77f674
[ "MIT" ]
null
null
null
from django.shortcuts import render,redirect from django.contrib import messages, auth from django.contrib.auth.models import User from django.http.request import HttpRequest # Create your views here. def home(req): return redirect('login') def login(req): if req.method == 'POST': username = req.POST[...
33.32
87
0.602641
285
2,499
5.277193
0.305263
0.083777
0.075798
0.037234
0.324468
0.261303
0.261303
0.261303
0.200133
0.117686
0
0.001682
0.286114
2,499
75
88
33.32
0.841368
0.058824
0
0.40678
0
0
0.166738
0.008978
0
0
0
0
0
1
0.101695
false
0.169492
0.067797
0.016949
0.389831
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c832c2b3e3054dd7f4eba7ae39631b1e43d56773
1,089
py
Python
Modules/flashlight().py
SZ2G-RoboticsClub/SmartCrutch-DemoBoard
0d32acc9c934b384612a721ecde0259c8d90a82d
[ "MIT" ]
1
2021-07-14T01:31:17.000Z
2021-07-14T01:31:17.000Z
Modules/flashlight().py
SZ2G-RoboticsClub/SmartCrutch-DemoBoard
0d32acc9c934b384612a721ecde0259c8d90a82d
[ "MIT" ]
null
null
null
Modules/flashlight().py
SZ2G-RoboticsClub/SmartCrutch-DemoBoard
0d32acc9c934b384612a721ecde0259c8d90a82d
[ "MIT" ]
null
null
null
from mpython import * import neopixel import time my_rgb = neopixel.NeoPixel(Pin(Pin.P13), n=24, bpp=3, timing=1) def flashlight(): for i in range(2): my_rgb.fill( (255, 0, 0) ) my_rgb.write() time.sleep_ms(50) my_rgb.fill( (0, 0, 0...
25.325581
67
0.490358
163
1,089
3.08589
0.190184
0.208748
0.178926
0.27833
0.717694
0.717694
0.717694
0.717694
0.717694
0.717694
0
0.104348
0.366391
1,089
43
68
25.325581
0.624638
0
0
0.74359
0
0
0
0
0
0
0
0
0
1
0.025641
false
0
0.076923
0
0.102564
0
0
0
0
null
1
0
1
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
c8332e05cc190a6c1e47fdd51cb882fbebe47837
1,449
py
Python
src/geos/_stops_with_wrong_bearing.py
alex-baciu-dft/Open_NaPTAN
abbb3e162f2638099f5050f51d81099f5a0a72a9
[ "MIT" ]
24
2020-07-02T12:08:39.000Z
2021-05-12T12:07:32.000Z
src/geos/_stops_with_wrong_bearing.py
alex-baciu-dft/Open_NaPTAN
abbb3e162f2638099f5050f51d81099f5a0a72a9
[ "MIT" ]
11
2020-11-04T12:14:15.000Z
2022-03-12T00:38:36.000Z
src/geos/_stops_with_wrong_bearing.py
alex-baciu-dft/Open_NaPTAN
abbb3e162f2638099f5050f51d81099f5a0a72a9
[ "MIT" ]
7
2020-07-03T09:32:11.000Z
2021-07-23T18:53:09.000Z
from checks import NaptanCheck # %% class StopsBearing(NaptanCheck): """[summary] top has a bearing that is different to the calculated bearing of the road link it is connected to. The test compensates for stops being snapped to the wrong side of the road. Therefore if the calculated bear...
38.131579
86
0.664596
208
1,449
4.591346
0.495192
0.031414
0.037696
0.046073
0
0
0
0
0
0
0
0.012658
0.291235
1,449
37
87
39.162162
0.917235
0.708075
0
0
0
0
0.128205
0
0
0
0
0
0
1
0.125
false
0.125
0.125
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
c834981294e35ab677847178ee1ed2e7e3411bb0
2,476
py
Python
charlie2/tools/trial.py
sammosummo/Charlie2
e856b9bfc83c11e57a63d487fa14a63764e3f6ae
[ "MIT" ]
5
2019-10-10T08:22:29.000Z
2021-04-09T02:34:13.000Z
charlie2/tools/trial.py
sammosummo/Charlie2
e856b9bfc83c11e57a63d487fa14a63764e3f6ae
[ "MIT" ]
20
2018-06-20T21:15:48.000Z
2018-09-06T17:13:46.000Z
charlie2/tools/trial.py
sammosummo/Charlie2
e856b9bfc83c11e57a63d487fa14a63764e3f6ae
[ "MIT" ]
3
2019-11-24T04:10:40.000Z
2020-04-04T07:50:57.000Z
"""Defines the trial class. """ from datetime import datetime from logging import getLogger logger = getLogger(__name__) class Trial(dict): def __init__(self, *args, **kwds) -> None: """Create a trial object. Trials objects are fancy dictionaries whose items are also attributes. They are ...
35.884058
87
0.600969
282
2,476
4.826241
0.329787
0.082292
0.057311
0.05878
0.225569
0.185158
0.114622
0
0
0
0
0.002885
0.300081
2,476
68
88
36.411765
0.782458
0.348142
0
0.088235
0
0
0.220416
0
0
0
0
0
0.058824
1
0.029412
false
0
0.058824
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c835c38f6e541b5231eac621e19ad8646fab5eb5
1,839
py
Python
categorize_reviews.py
curtislb/ReviewTranslation
b2d14d349b6016d275fa22532eae6b67af243a55
[ "Apache-2.0" ]
null
null
null
categorize_reviews.py
curtislb/ReviewTranslation
b2d14d349b6016d275fa22532eae6b67af243a55
[ "Apache-2.0" ]
null
null
null
categorize_reviews.py
curtislb/ReviewTranslation
b2d14d349b6016d275fa22532eae6b67af243a55
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import ast import sys import nltk import numpy as np from review_data import read_reviews ############################################################################### def main(): low = 3.0 high = 4.0 target_language = u"english" topics = [] with open(sys.argv[1]) as in...
26.271429
79
0.504622
215
1,839
4.223256
0.334884
0.049559
0.056167
0.075991
0.327093
0.244493
0.198238
0.198238
0.198238
0.105727
0
0.015335
0.326264
1,839
69
80
26.652174
0.717514
0.010875
0
0.117647
0
0
0.037953
0
0
0
0
0
0
1
0.019608
false
0
0.098039
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c83954e71051c128691f4f8f79229509cdfd37e3
1,068
py
Python
codes/kmc/2Dim/general2d/lambdaFluc2dCreator.py
joshuahellier/PhDStuff
6fbe9e507c40e9017cde9312b0cfcc6ceefa284e
[ "MIT" ]
null
null
null
codes/kmc/2Dim/general2d/lambdaFluc2dCreator.py
joshuahellier/PhDStuff
6fbe9e507c40e9017cde9312b0cfcc6ceefa284e
[ "MIT" ]
null
null
null
codes/kmc/2Dim/general2d/lambdaFluc2dCreator.py
joshuahellier/PhDStuff
6fbe9e507c40e9017cde9312b0cfcc6ceefa284e
[ "MIT" ]
null
null
null
import subprocess import sys import os # This code is meant to manage running multiple instances of my KMCLib codes at the same time, # in the name of time efficiency numLambda = 512 numStepsEquilib = 1600000 numStepsAnal = 16000 numStepsSnapshot = 1000 numStepsReq = 16000 sysWidth = 32 sysLength = 32 analInterval = 1...
33.375
323
0.708801
127
1,068
5.96063
0.582677
0
0
0
0
0
0
0
0
0
0
0.057522
0.153558
1,068
31
324
34.451613
0.779867
0.115169
0
0
0
0
0.076433
0.022293
0
0
0
0
0
0
null
null
0.076923
0.115385
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
c83adde56479731d1abd45b0e5be159767406e09
1,063
py
Python
Two_Sum_1.py
JazzikPeng/Algorithm-in-Python
915135b1cdd02a6bb8d7068a54b2f497b2ec31d4
[ "MIT" ]
3
2018-02-05T06:15:57.000Z
2019-04-07T23:33:07.000Z
Two_Sum_1.py
JazzikPeng/Algorithm-in-Python
915135b1cdd02a6bb8d7068a54b2f497b2ec31d4
[ "MIT" ]
null
null
null
Two_Sum_1.py
JazzikPeng/Algorithm-in-Python
915135b1cdd02a6bb8d7068a54b2f497b2ec31d4
[ "MIT" ]
null
null
null
class Solution: def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ # fill initial set/dict s = {target-nums[0]} d = {nums[0]: 0} for i in range(1, len(nums)): if nums[i] in s: ...
30.371429
80
0.464722
127
1,063
3.889764
0.291339
0.145749
0.131579
0.068826
0.336032
0.255061
0.255061
0.255061
0.255061
0.255061
0
0.006088
0.381938
1,063
34
81
31.264706
0.745814
0.129821
0
0.095238
0
0
0.07565
0
0
0
0
0
0
1
0.095238
false
0
0
0
0.333333
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c83ceb2eaee488074f590ced585bdeba5d992e16
589
py
Python
main/views.py
climsoft/climsoftweb
3be127b3c8ce0e1f89940139ea19e17d20abe386
[ "BSD-3-Clause" ]
1
2021-08-17T07:43:18.000Z
2021-08-17T07:43:18.000Z
main/views.py
climsoft/climsoftweb
3be127b3c8ce0e1f89940139ea19e17d20abe386
[ "BSD-3-Clause" ]
45
2019-11-16T16:59:04.000Z
2021-04-08T21:23:48.000Z
main/views.py
climsoft/climsoftweb
3be127b3c8ce0e1f89940139ea19e17d20abe386
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.shortcuts import render @login_required def mainmenu(request): return render(request, 'main/mainmenu.html', {}) @login_required def user_admin(request): return render(request, 'main/user_admin.html', {}) @login_required def user_profile(...
21.814815
59
0.752122
74
589
5.824324
0.297297
0.180974
0.185615
0.301624
0.477958
0.157773
0
0
0
0
0
0
0.122241
589
26
60
22.653846
0.833656
0
0
0.294118
0
0
0.174873
0.079796
0
0
0
0
0
1
0.294118
false
0.117647
0.117647
0.294118
0.705882
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
6
c83df5c3590f08b7881a0afefb6d8d7e7060a2fb
2,124
py
Python
anygraph/recipes/autobuilding_a_graph.py
gemerden/anygraph
c20cab82ad4a7f4117690a445e136c2b0e84f0f3
[ "MIT" ]
10
2020-06-11T14:11:58.000Z
2021-12-31T11:59:26.000Z
anygraph/recipes/autobuilding_a_graph.py
gemerden/anygraph
c20cab82ad4a7f4117690a445e136c2b0e84f0f3
[ "MIT" ]
null
null
null
anygraph/recipes/autobuilding_a_graph.py
gemerden/anygraph
c20cab82ad4a7f4117690a445e136c2b0e84f0f3
[ "MIT" ]
null
null
null
""" Here we will show how to build a graph from a class inheritance structure. Since we will n change the class of classes (type), we will use a wrapper to do this. """ from anygraph import Many """ First we define the wrapper class; because we create instances of ClassWrapper on the flight; to detect if the class w...
32.181818
160
0.69162
319
2,124
4.442006
0.382445
0.062103
0.048694
0.016937
0.070572
0.070572
0.070572
0
0
0
0
0.000594
0.207627
2,124
65
161
32.676923
0.841355
0.168079
0
0
0
0
0.028182
0
0
0
0
0
0
1
0.16
false
0.2
0.04
0
0.6
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c83f4c51440116a7f88bf4d5e46dda85c09f8606
2,069
py
Python
shortest_path_revisit_and_NP/week1/apsp_johnsons.py
liaoaoyuan97/standford_algorithms_specialization
2914fdd397ce895d986ac855e78afd7a51ceff68
[ "MIT" ]
null
null
null
shortest_path_revisit_and_NP/week1/apsp_johnsons.py
liaoaoyuan97/standford_algorithms_specialization
2914fdd397ce895d986ac855e78afd7a51ceff68
[ "MIT" ]
null
null
null
shortest_path_revisit_and_NP/week1/apsp_johnsons.py
liaoaoyuan97/standford_algorithms_specialization
2914fdd397ce895d986ac855e78afd7a51ceff68
[ "MIT" ]
1
2021-01-18T19:35:48.000Z
2021-01-18T19:35:48.000Z
import time import numpy as np from os import path def read_graph(filename): i = 0 with open(path.join('.', filename), 'r') as f: for row in f.readlines(): if i == 0: _list = row.strip("\n").split(' ') n_vertex, n_edge = int(_list[0]), int(_list[1]) ...
32.84127
109
0.564524
316
2,069
3.455696
0.177215
0.147436
0.07326
0.074176
0.712454
0.679487
0.554945
0.541209
0.480769
0.475275
0
0.027064
0.285645
2,069
62
110
33.370968
0.711773
0
0
0.395833
0
0
0.020783
0
0
0
0
0
0
1
0.041667
false
0
0.0625
0
0.166667
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
c84122fcd1573afd525866c481ac3a9686f3174d
2,448
py
Python
Cardio-Monitor-main/visualization.py
jrderek/computer-vision-exercises
e9735394220f8120453de70b58596ef9e87df926
[ "MIT" ]
null
null
null
Cardio-Monitor-main/visualization.py
jrderek/computer-vision-exercises
e9735394220f8120453de70b58596ef9e87df926
[ "MIT" ]
null
null
null
Cardio-Monitor-main/visualization.py
jrderek/computer-vision-exercises
e9735394220f8120453de70b58596ef9e87df926
[ "MIT" ]
null
null
null
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from matplotlib.figure import Figure import io import random import numpy as np def visualizationpreprocess(age,sex,cp,trestbps,restecg,chol,fbs,thalach,exang,oldpeak,slope,ca,thal,result): if sex=="male": sex=1 else: sex=0 ...
31.792208
139
0.635212
348
2,448
4.428161
0.422414
0.016223
0.022064
0.024659
0.029851
0
0
0
0
0
0
0.069466
0.21201
2,448
76
140
32.210526
0.729393
0.276552
0
0.04
0
0
0.231386
0
0
0
0
0
0
1
0.02
false
0
0.1
0
0.14
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8413d24c21af2dd79f48f95f23cc0565affc86b
6,006
py
Python
at_tmp/model/util/TMP_DB_OPT__.py
zuoleilei3253/zuoleilei
e188b15a0aa4a9fde00dba15e8300e4b87973e2d
[ "Apache-2.0" ]
null
null
null
at_tmp/model/util/TMP_DB_OPT__.py
zuoleilei3253/zuoleilei
e188b15a0aa4a9fde00dba15e8300e4b87973e2d
[ "Apache-2.0" ]
null
null
null
at_tmp/model/util/TMP_DB_OPT__.py
zuoleilei3253/zuoleilei
e188b15a0aa4a9fde00dba15e8300e4b87973e2d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/7/15 16:36 # @Author : bxf # @File : P_DB_OPT.py # @Software: PyCharm import pymysql import json from datetime import date, datetime from model.util import md_Config from model.util.PUB_LOG import * ''' 提供数据的增删改查功能: ''' clas...
28.330189
129
0.494006
604
6,006
4.817881
0.293046
0.035739
0.058419
0.089347
0.434364
0.391065
0.295533
0.248797
0.248797
0.248797
0
0.006849
0.367965
6,006
211
130
28.464455
0.759747
0.141692
0
0.452381
0
0
0.116274
0.019451
0
0
0
0
0
1
0.079365
false
0.007937
0.039683
0
0.246032
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8418b9ec302c999618cb90b60b9001c7764202e
448
py
Python
examples/pybullet/examples/logMinitaur.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
9,136
2015-01-02T00:41:45.000Z
2022-03-31T15:30:02.000Z
examples/pybullet/examples/logMinitaur.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
2,424
2015-01-05T08:55:58.000Z
2022-03-30T19:34:55.000Z
examples/pybullet/examples/logMinitaur.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
2,921
2015-01-02T10:19:30.000Z
2022-03-31T02:48:42.000Z
import pybullet as p import pybullet_data cid = p.connect(p.SHARED_MEMORY) if (cid < 0): p.connect(p.GUI) p.setAdditionalSearchPath(pybullet_data.getDataPath()) p.loadURDF("plane.urdf") quadruped = p.loadURDF("quadruped/quadruped.urdf") logId = p.startStateLogging(p.STATE_LOGGING_MINITAUR, "LOG00048.TXT", [quadru...
21.333333
82
0.776786
58
448
5.913793
0.465517
0.218659
0.233236
0.349854
0.221574
0.221574
0.221574
0.221574
0.221574
0
0
0.014599
0.082589
448
20
83
22.4
0.819951
0
0
0.333333
0
0
0.102679
0.053571
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
c8422d03ff6c162a7a235c164df43ce7fd4202c5
1,025
py
Python
setup.py
drougge/wellpapp-pyclient
43d66a1e2a122ac87e477905c5e2460e11be3c26
[ "MIT" ]
null
null
null
setup.py
drougge/wellpapp-pyclient
43d66a1e2a122ac87e477905c5e2460e11be3c26
[ "MIT" ]
null
null
null
setup.py
drougge/wellpapp-pyclient
43d66a1e2a122ac87e477905c5e2460e11be3c26
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup fuse_reqs = [ 'fuse-python >= 0.3.1; python_version < "3"', 'fuse-python >= 1.0.0; python_version > "3"', ] readme = open('README.md', 'r').read() readme = readme.replace( '(FUSE.md)', '(https://github.com/drougge/wellpapp-pyclient/blob/master/FUSE.md)' ) setu...
21.808511
85
0.659512
138
1,025
4.76087
0.572464
0.03653
0.009132
0.063927
0.112633
0.112633
0
0
0
0
0
0.03044
0.134634
1,025
46
86
22.282609
0.710259
0.045854
0
0.076923
0
0.051282
0.517418
0.045082
0
0
0
0
0
1
0
false
0
0.025641
0
0.025641
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8425c27ac3a898cc687ebecf30963739e854bd4
506
py
Python
project/app/models.py
cs-fullstack-fall-2018/django-auth1-bachmanryan
cb83e4bc75e1c8bfde7c43d478505ecec45d5cd8
[ "Apache-2.0" ]
null
null
null
project/app/models.py
cs-fullstack-fall-2018/django-auth1-bachmanryan
cb83e4bc75e1c8bfde7c43d478505ecec45d5cd8
[ "Apache-2.0" ]
null
null
null
project/app/models.py
cs-fullstack-fall-2018/django-auth1-bachmanryan
cb83e4bc75e1c8bfde7c43d478505ecec45d5cd8
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from datetime import datetime # Create your models here. # create a new attribute in your model class FormModel(models.Model): username = models.ForeignKey(User, on_delete=models.SET_NULL, null=True, blank=True) blog_title = models.CharF...
31.625
88
0.764822
71
506
5.295775
0.605634
0.053191
0.095745
0.12766
0.143617
0
0
0
0
0
0
0.013986
0.152174
506
15
89
33.733333
0.862471
0.120553
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.3
0.1
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c8427460e2bcf42333ee94274c805a7a6ae2d6ab
715
py
Python
students/K33421/Zmievskiy_Danil/Lr1/Task04/server.py
DanilZmievskiy/ITMO_ICT_WebDevelopment_2020-2021
8bb6e90e6592c04f4b959184310e0890aaa24e16
[ "MIT" ]
null
null
null
students/K33421/Zmievskiy_Danil/Lr1/Task04/server.py
DanilZmievskiy/ITMO_ICT_WebDevelopment_2020-2021
8bb6e90e6592c04f4b959184310e0890aaa24e16
[ "MIT" ]
null
null
null
students/K33421/Zmievskiy_Danil/Lr1/Task04/server.py
DanilZmievskiy/ITMO_ICT_WebDevelopment_2020-2021
8bb6e90e6592c04f4b959184310e0890aaa24e16
[ "MIT" ]
null
null
null
import socket import threading conn = socket.socket(socket.AF_INET,socket.SOCK_STREAM) conn.bind (('', 7070)) conn.listen() clients = [] print ('Start Server') def new_client(): while True: clientsocket, address = conn.accept() if clientsocket not in clients: clients.append(clientsocket) threading.Thread...
21.029412
74
0.711888
87
715
5.804598
0.505747
0.112871
0.083168
0
0
0
0
0
0
0
0
0.016694
0.162238
715
34
75
21.029412
0.826377
0
0
0.076923
0
0
0.01676
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.153846
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c843403db7b167cca6757d1608c2ce426ef07684
1,563
py
Python
cutelog/pop_in_dialog.py
CS-GSI/cutelog
faca7a7bfd16559973178d3c87cb3b0c6667d4d3
[ "MIT" ]
125
2018-07-27T15:23:35.000Z
2022-03-09T18:18:08.000Z
cutelog/pop_in_dialog.py
CS-GSI/cutelog
faca7a7bfd16559973178d3c87cb3b0c6667d4d3
[ "MIT" ]
12
2019-02-02T01:02:59.000Z
2022-03-14T08:31:41.000Z
cutelog/pop_in_dialog.py
CS-GSI/cutelog
faca7a7bfd16559973178d3c87cb3b0c6667d4d3
[ "MIT" ]
26
2018-08-24T23:49:58.000Z
2022-01-27T12:29:38.000Z
from qtpy.QtCore import Signal from qtpy.QtWidgets import QDialog, QDialogButtonBox, QListWidget, QVBoxLayout class PopInDialog(QDialog): pop_in_tabs = Signal(list) def __init__(self, parent, loggers): super().__init__(parent) self.loggers = loggers self.setupUi() def setupUi(se...
31.26
94
0.643634
172
1,563
5.75
0.383721
0.141557
0.0182
0.042467
0
0
0
0
0
0
0
0.008591
0.255278
1,563
49
95
31.897959
0.841065
0
0
0.102564
0
0
0
0
0
0
0
0
0
1
0.128205
false
0
0.051282
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c84378df20614229cbb5ed8f3fb0fb2de32e4ad3
6,730
py
Python
MineSweeper/minesweeper.py
Ratnesh4193/Amazing-Python-Scripts
0652a6066a3eeaf31830d7235da209699c45f779
[ "MIT" ]
1
2021-04-17T08:33:25.000Z
2021-04-17T08:33:25.000Z
MineSweeper/minesweeper.py
Ratnesh4193/Amazing-Python-Scripts
0652a6066a3eeaf31830d7235da209699c45f779
[ "MIT" ]
null
null
null
MineSweeper/minesweeper.py
Ratnesh4193/Amazing-Python-Scripts
0652a6066a3eeaf31830d7235da209699c45f779
[ "MIT" ]
1
2021-07-22T07:06:09.000Z
2021-07-22T07:06:09.000Z
# Importing required libraries from tkinter import * from tkinter import messagebox as mb from tkinter import ttk import random # function to create screen for the game def board(): global value,w # initialising screen root=Tk() root.geometry("320x335") root.title("MineSweeper") root.resizable(...
52.170543
136
0.649034
1,129
6,730
3.865368
0.135518
0.041705
0.068744
0.091659
0.558662
0.558662
0.552704
0.552704
0.552704
0.536205
0
0.088632
0.151709
6,730
128
137
52.578125
0.675775
0.093314
0
0.17757
0
0
0.126151
0
0
0
0
0
0
1
0.037383
false
0
0.037383
0
0.074766
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c84446517bb1f74fa114d36c91ba50e5edd245d3
125,439
py
Python
scripts/ui/images_rc.py
ROOSTER-fleet-management/multi_robot_sim
c5f50b271e7c21d95a843ede1d9227720974764a
[ "Apache-2.0" ]
1
2021-02-25T19:11:03.000Z
2021-02-25T19:11:03.000Z
scripts/ui/images_rc.py
ROOSTER-fleet-management/multi_robot_sim
c5f50b271e7c21d95a843ede1d9227720974764a
[ "Apache-2.0" ]
null
null
null
scripts/ui/images_rc.py
ROOSTER-fleet-management/multi_robot_sim
c5f50b271e7c21d95a843ede1d9227720974764a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt4 (Qt v4.8.7) # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore qt_resource_data = "\ \x00\x00\x05\x96\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\x18\x00...
62.939789
129
0.726505
30,314
125,439
3.005674
0.009666
0.021073
0.015804
0.00698
0.044022
0.040301
0.039643
0.036416
0.032432
0.030226
0
0.320359
0.016287
125,439
1,992
130
62.971386
0.418028
0.001204
0
0.033367
0
0.949444
0
0
0
1
0.000064
0
0
1
0.001011
false
0
0.000506
0
0.001517
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
4
c8448b25950b97138001e69363d737fca8d5fa17
225
py
Python
freedscovery_s3_connector/__init__.py
FreeDiscovery/FreeDiscovery-S3-connector
c10a6e1c26f95c199e94908f4e8534f735b94e37
[ "BSD-3-Clause" ]
null
null
null
freedscovery_s3_connector/__init__.py
FreeDiscovery/FreeDiscovery-S3-connector
c10a6e1c26f95c199e94908f4e8534f735b94e37
[ "BSD-3-Clause" ]
null
null
null
freedscovery_s3_connector/__init__.py
FreeDiscovery/FreeDiscovery-S3-connector
c10a6e1c26f95c199e94908f4e8534f735b94e37
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from .constants import * from . import io from . import ai from . import filters from ._version import __version__ __version_date__ = "Sun Feb 14 14:28:51 2016 +0100" __version_hash__ = "1d5f7f3"
16.071429
51
0.711111
32
225
4.53125
0.625
0.206897
0
0
0
0
0
0
0
0
0
0.11413
0.182222
225
13
52
17.307692
0.673913
0.093333
0
0
0
0
0.183168
0
0
0
0
0
0
1
0
false
0
0.714286
0
0.714286
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
c844d609644b8e0f8c68c6cb8c2457c055991723
2,309
py
Python
pysnmp-with-texts/ONEFS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ONEFS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ONEFS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ONEFS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ONEFS-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:34:48 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23...
92.36
533
0.792551
235
2,309
7.761702
0.53617
0.075658
0.046053
0.057018
0.316886
0.208333
0.208333
0.208333
0.208333
0.208333
0
0.057765
0.085318
2,309
24
534
96.208333
0.805871
0.135123
0
0
0
0
0.340543
0.022133
0
0
0
0
0
1
0
false
0
0.375
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
c845141e40b8a0dd5938ae534f453a3c938206c8
926
py
Python
ChatAPI/migrations/0002_auto_20210520_1134.py
swasthikshetty10/Chat-Bot-using-Deep-Learning
76856399e3984d8563eb72bb7412767b1b5f724a
[ "MIT" ]
7
2021-01-05T15:27:55.000Z
2021-10-05T06:37:50.000Z
ChatAPI/migrations/0002_auto_20210520_1134.py
swasthikshetty10/Chat-Bot-using-Deep-Learning
76856399e3984d8563eb72bb7412767b1b5f724a
[ "MIT" ]
null
null
null
ChatAPI/migrations/0002_auto_20210520_1134.py
swasthikshetty10/Chat-Bot-using-Deep-Learning
76856399e3984d8563eb72bb7412767b1b5f724a
[ "MIT" ]
2
2021-01-08T12:50:33.000Z
2021-01-09T23:34:04.000Z
# Generated by Django 3.1.3 on 2021-05-20 06:04 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('ChatAPI', '00...
31.931034
136
0.595032
94
926
5.734043
0.62766
0.044527
0.051948
0.081633
0
0
0
0
0
0
0
0.028614
0.282937
926
28
137
33.071429
0.783133
0.048596
0
0.090909
1
0
0.06463
0
0
0
0
0
0
1
0
false
0
0.136364
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c84571d0d767e8fe81786eba5dfb74f8e16357fc
1,240
py
Python
tests/test_session.py
Streetwise/streetwise-app
13c1649077766e0e20d6903adcd057ae3c07cc9c
[ "MIT" ]
1
2020-05-28T06:50:01.000Z
2020-05-28T06:50:01.000Z
tests/test_session.py
Streetwise/streetwise-app
13c1649077766e0e20d6903adcd057ae3c07cc9c
[ "MIT" ]
72
2020-05-01T11:11:17.000Z
2022-02-14T09:01:50.000Z
tests/test_session.py
Streetwise/streetwise-app
13c1649077766e0e20d6903adcd057ae3c07cc9c
[ "MIT" ]
3
2020-05-06T20:35:32.000Z
2020-05-07T15:00:51.000Z
""" Python unit tests """ import pytest, json from streetwise.models import Campaign from . import app, app_context, db @pytest.fixture(scope="module") def client(): app.config['TESTING'] = True return app.test_client() def test_campaign_all(client): with app_context: campaign1 = Campaign() ...
28.837209
75
0.629839
155
1,240
4.948387
0.322581
0.065189
0.084746
0.110821
0.48631
0.362451
0.237288
0.237288
0.237288
0.125163
0
0.019874
0.229032
1,240
42
76
29.52381
0.782427
0.01371
0
0.333333
0
0
0.110288
0
0
0
0
0
0.121212
1
0.121212
false
0
0.090909
0
0.242424
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c845aa5c017b1dfeb4dad13bc07e41c3088b51c3
303
py
Python
vanir/plugins/migrations/0003_delete_newcoinconfig.py
guanana/vanir
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
[ "Apache-2.0" ]
1
2022-01-19T07:11:05.000Z
2022-01-19T07:11:05.000Z
vanir/plugins/migrations/0003_delete_newcoinconfig.py
guanana/vanir
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
[ "Apache-2.0" ]
10
2021-11-07T14:17:07.000Z
2022-03-30T18:24:48.000Z
vanir/plugins/migrations/0003_delete_newcoinconfig.py
guanana/vanir
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.13 on 2021-10-02 23:23 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('plugins', '0002_auto_20211002_2236'), ] operations = [ migrations.DeleteModel( name='NewCoinConfig', ), ]
17.823529
48
0.613861
32
303
5.71875
0.84375
0
0
0
0
0
0
0
0
0
0
0.146119
0.277228
303
16
49
18.9375
0.689498
0.151815
0
0
1
0
0.168627
0.090196
0
0
0
0
0
1
0
false
0
0.1
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c8475200f6eac06a5a76c9c297ba11ee2a7ea2ed
831
py
Python
PythonDAdata/3358OS_12_Code/code12/core.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
1
2020-02-22T18:55:54.000Z
2020-02-22T18:55:54.000Z
PythonDAdata/3358OS_12_Code/code12/core.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
null
null
null
PythonDAdata/3358OS_12_Code/code12/core.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
1
2020-02-22T18:55:57.000Z
2020-02-22T18:55:57.000Z
from nltk.corpus import movie_reviews import random import cython_module as cm import cytoolz def label_docs(): docs = [(list(movie_reviews.words(fid)), cat) for cat in movie_reviews.categories() for fid in movie_reviews.fileids(cat)] random.seed(42) random.shuffle(docs) return...
23.742857
50
0.68231
118
831
4.652542
0.457627
0.10929
0.061931
0
0
0
0
0
0
0
0
0.015083
0.202166
831
34
51
24.441176
0.812971
0
0
0
0
0
0.033694
0
0
0
0
0
0
0
null
null
0
0.153846
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c84abb9eac74cceda1f9caab92fdc8319c29f197
4,900
py
Python
crawler/spiders/weighted_index_spider.py
ChuangYuMing/futures_spread_analysis
71540671eed7ea3abba0a9a5af45f49dcf662ce3
[ "MIT" ]
2
2019-09-19T05:11:00.000Z
2020-07-23T07:26:03.000Z
crawler/spiders/weighted_index_spider.py
ChuangYuMing/futures_spread_analysis
71540671eed7ea3abba0a9a5af45f49dcf662ce3
[ "MIT" ]
11
2020-07-14T10:42:59.000Z
2022-03-02T14:54:10.000Z
crawler/spiders/weighted_index_spider.py
ChuangYuMing/futures_spread_analysis
71540671eed7ea3abba0a9a5af45f49dcf662ce3
[ "MIT" ]
null
null
null
# encoding: utf-8 # pylint: disable=E1101 # 加權指數 # https://www.twse.com.tw/zh/page/trading/indices/MI_5MINS_HIST.html import scrapy from scrapy import signals, Spider from urllib.parse import urlencode import time from random import randint import datetime import logging from copy import copy from dateutil.relativedel...
35.507246
93
0.610408
559
4,900
5.271914
0.300537
0.029861
0.032576
0.042755
0.079403
0.047506
0.028504
0.028504
0
0
0
0.012469
0.263469
4,900
137
94
35.766423
0.804101
0.046939
0
0.091743
0
0
0.064433
0
0
0
0
0
0
1
0.082569
false
0.009174
0.146789
0
0.284404
0.018349
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c84cd7c853b8faebaefc88697ddd7f956ce53148
374
py
Python
KahootPY/src/modules/questionStart.py
boiimakillu/KahootPY
c8d7a03a766bf061015a178cd7df2382906f91ae
[ "MIT" ]
null
null
null
KahootPY/src/modules/questionStart.py
boiimakillu/KahootPY
c8d7a03a766bf061015a178cd7df2382906f91ae
[ "MIT" ]
null
null
null
KahootPY/src/modules/questionStart.py
boiimakillu/KahootPY
c8d7a03a766bf061015a178cd7df2382906f91ae
[ "MIT" ]
1
2021-11-25T12:19:27.000Z
2021-11-25T12:19:27.000Z
from json import loads from time import time def main(self): def handler(message): if message["channel"] == "/service/player" and message.get("data") and message["data"].get("id") == 2: self.questionStartTime = int(time() * 1000) self._emit("QuestionStart",loads(message["data"]["con...
37.4
110
0.641711
45
374
5.311111
0.577778
0.083682
0
0
0
0
0
0
0
0
0
0.016556
0.192513
374
9
111
41.555556
0.774834
0
0
0
0
0
0.184492
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
c84d4f1ef2e89c1c188fc5c0934712deace909e7
2,973
py
Python
MNIST/util.py
zswdian/BinarizedSNPS
d1a1a1f7eea74ee8f9c2233ae94f7fa079dc11d5
[ "Apache-2.0" ]
null
null
null
MNIST/util.py
zswdian/BinarizedSNPS
d1a1a1f7eea74ee8f9c2233ae94f7fa079dc11d5
[ "Apache-2.0" ]
null
null
null
MNIST/util.py
zswdian/BinarizedSNPS
d1a1a1f7eea74ee8f9c2233ae94f7fa079dc11d5
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn import numpy class BinOp(): def __init__(self, model): count_conv2d = 0 for m in model.modules(): if isinstance(m, nn.Conv2d): count_conv2d += 1 start_range = 1 end_range = count_conv2d - 2 self.bin_range = numpy.linspace...
37.1625
89
0.582913
395
2,973
4.237975
0.177215
0.101553
0.17264
0.210275
0.542413
0.440263
0.424134
0.424134
0.366786
0.321386
0
0.019793
0.286243
2,973
79
90
37.632911
0.769086
0
0
0.184615
0
0
0.001009
0
0
0
0
0
0
1
0.123077
false
0
0.030769
0
0.169231
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c84ea79f1edbb49a2816dca5b35662a00efd9c2f
1,198
py
Python
modules/tensorflow/keras/datasets/gaussian_mixture.py
avogel88/compare-VAE-GAE
aa3419c41a58ca6c1a9c1031c0aed7e07c3d4f90
[ "MIT" ]
null
null
null
modules/tensorflow/keras/datasets/gaussian_mixture.py
avogel88/compare-VAE-GAE
aa3419c41a58ca6c1a9c1031c0aed7e07c3d4f90
[ "MIT" ]
null
null
null
modules/tensorflow/keras/datasets/gaussian_mixture.py
avogel88/compare-VAE-GAE
aa3419c41a58ca6c1a9c1031c0aed7e07c3d4f90
[ "MIT" ]
null
null
null
import numpy as np import os from os.path import dirname, join from modules.numpy import covmix, varroll from modules.pandas import DesignMatrix from modules.scipy.stats import gaussian_mixture def gaussian_mixture_generate(file, train=60000, test=60000, validate=10000): dim_x, dim_z = 784, 10 # distribution...
29.95
77
0.674457
187
1,198
4.187166
0.336898
0.0447
0.10728
0.076628
0.268199
0.130268
0
0
0
0
0
0.026396
0.177796
1,198
39
78
30.717949
0.768528
0.037563
0
0
0
0
0.050523
0
0
0
0
0
0
1
0.074074
false
0
0.222222
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c85276ff92552a878b6545824f777a6c37822c3a
7,860
py
Python
Desktop Assistant.py
PRASUNR0Y/Desktop-Assistant
6f07cd3bc50bfca3d3f243d9e01d1bb0ef2e9029
[ "MIT" ]
15
2020-07-21T09:54:16.000Z
2022-02-08T15:34:25.000Z
Desktop Assistant.py
RisingStar522/Desktop-Assistant
6f07cd3bc50bfca3d3f243d9e01d1bb0ef2e9029
[ "MIT" ]
1
2020-11-26T15:47:23.000Z
2020-11-26T15:47:23.000Z
Desktop Assistant.py
RisingStar522/Desktop-Assistant
6f07cd3bc50bfca3d3f243d9e01d1bb0ef2e9029
[ "MIT" ]
16
2020-08-04T10:47:45.000Z
2022-01-14T19:29:35.000Z
import pyttsx3 #pip install pyttsx3 import speech_recognition as sr #pip install speechRecognition import datetime import wikipedia #pip install wikipedia import webbrowser import os import smtplib import random engine = pyttsx3.init('sapi5') voices = engine.getProperty('voices') # print(voices[0].id) engine.setProper...
34.933333
146
0.575318
1,001
7,860
4.412587
0.26973
0.058637
0.034865
0.035318
0.219832
0.174326
0.096898
0.075617
0.019017
0.019017
0
0.005785
0.318193
7,860
225
147
34.933333
0.818436
0.026718
0
0.068182
0
0.011364
0.293602
0.002878
0
0
0
0
0
1
0.022727
false
0.005682
0.045455
0
0.079545
0.073864
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8530a2187ea583ad5783e02a5317fc84ce553e4
1,620
py
Python
old_version/forms/auth_form.py
DenisZhmakin/VK-Music-Downloader
217d54f462b2da74776eec47bf1c355c54b017ab
[ "Unlicense" ]
null
null
null
old_version/forms/auth_form.py
DenisZhmakin/VK-Music-Downloader
217d54f462b2da74776eec47bf1c355c54b017ab
[ "Unlicense" ]
1
2021-12-20T03:42:21.000Z
2021-12-20T09:57:57.000Z
old_version/forms/auth_form.py
DenisZhmakin/VK-Music-Downloader
217d54f462b2da74776eec47bf1c355c54b017ab
[ "Unlicense" ]
null
null
null
import json from pathlib import Path from PyQt5 import uic from PyQt5.QtCore import pyqtSignal from PyQt5.QtWidgets import QWidget from vk_api.vk_api import VkApi from utils import print_message, validate_QLineEdit class AuthForm(QWidget): authorized_successfull = pyqtSignal() def __init__(self): ...
27.931034
84
0.591358
178
1,620
5.157303
0.455056
0.052288
0.056645
0.04793
0.056645
0
0
0
0
0
0
0.002737
0.323457
1,620
58
85
27.931034
0.834854
0.010494
0
0.04878
0
0
0.111529
0
0
0
0
0
0
1
0.04878
false
0.097561
0.170732
0
0.317073
0.097561
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c8551c2705d7c8211e2870c34856750e96ab7d03
11,467
py
Python
exif_processing.py
Strubbl/upload-scripts
da2f73a322490c0ca572dcc21bc8ba7f68f76734
[ "MIT" ]
null
null
null
exif_processing.py
Strubbl/upload-scripts
da2f73a322490c0ca572dcc21bc8ba7f68f76734
[ "MIT" ]
1
2020-08-05T18:37:15.000Z
2020-08-07T14:12:56.000Z
exif_processing.py
Strubbl/upload-scripts
da2f73a322490c0ca572dcc21bc8ba7f68f76734
[ "MIT" ]
1
2020-08-05T16:23:51.000Z
2020-08-05T16:23:51.000Z
"""Module responsible to parse Exif information from a image""" import math import datetime from enum import Enum from typing import Optional # third party import exifread import piexif MPH_TO_KMH_FACTOR = 1.60934 """miles per hour to kilometers per hour conversion factor""" KNOTS_TO_KMH_FACTOR = 1.852 """knots to kil...
38.871186
99
0.669574
1,523
11,467
4.851609
0.160867
0.043172
0.018947
0.030857
0.302747
0.203952
0.166734
0.119096
0.111246
0.089051
0
0.011338
0.238511
11,467
294
100
39.003401
0.83486
0.215052
0
0.104972
0
0
0.038033
0
0
0
0
0
0
1
0.082873
false
0.033149
0.033149
0
0.414365
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8559b8c4871bf63b43c48e1fd50163d6997b0b7
1,505
py
Python
NPTEL - 2017 PDSA/Nptel_EX_5.py
Siddharth2016/PYTHON3_prog
9dfa258d87f5b00779d39d9de9a49c1c6cea06be
[ "MIT" ]
2
2019-02-26T14:06:53.000Z
2019-02-27T17:13:01.000Z
NPTEL - 2017 PDSA/Nptel_EX_5.py
Siddharth2016/PYTHON3_prog
9dfa258d87f5b00779d39d9de9a49c1c6cea06be
[ "MIT" ]
null
null
null
NPTEL - 2017 PDSA/Nptel_EX_5.py
Siddharth2016/PYTHON3_prog
9dfa258d87f5b00779d39d9de9a49c1c6cea06be
[ "MIT" ]
2
2017-12-26T07:59:57.000Z
2018-06-24T03:35:05.000Z
# NPTEL EXERCISE 5 courses = {} students = [] grades = {} f = 0 while(True): S = input() if S=="EndOfInput": break if S=='Courses': f = 1 continue elif S=='Students': f = 2 continue elif S=='Grades': f = 3 continue i...
22.462687
60
0.348173
171
1,505
3.064327
0.315789
0.053435
0.091603
0
0
0
0
0
0
0
0
0.049479
0.489701
1,505
66
61
22.80303
0.632813
0.038538
0
0.103448
0
0
0.040698
0
0.017241
0
0
0
0
1
0
false
0
0
0
0
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c8561da14e0cfa8d9fef29a387534b2cad910276
5,122
py
Python
pytests/ent_backup_restore/provider/provider.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
14
2015-02-06T02:47:57.000Z
2020-03-14T15:06:05.000Z
pytests/ent_backup_restore/provider/provider.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
3
2019-02-27T19:29:11.000Z
2021-06-02T02:14:27.000Z
pytests/ent_backup_restore/provider/provider.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
108
2015-03-26T08:58:49.000Z
2022-03-21T05:21:39.000Z
#!/usr/bin/python3 import abc import re import logger class Provider(metaclass=abc.ABCMeta): def __init__(self, access_key_id, bucket, cacert, endpoint, no_ssl_verify, region, secret_access_key, staging_directory): """Instantiate a new 'Provider' object. Should only be created by implementing super classe...
43.042017
194
0.664779
670
5,122
4.947761
0.289552
0.029864
0.048265
0.074208
0.266063
0.178884
0.124887
0.086878
0.073605
0.046456
0
0.013758
0.233698
5,122
118
195
43.40678
0.830828
0.322921
0
0.231884
0
0.014493
0.099239
0.072451
0
0
0
0
0
1
0.202899
false
0
0.043478
0
0.318841
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
c856f5773044e5156600553546b88ed62d7ca1dd
235
py
Python
trip_distributer/admin.py
princegoyani/TRIP-DISTRIBUTER
22793ae603508c9388d03f044759dc925462595a
[ "BSD-3-Clause" ]
null
null
null
trip_distributer/admin.py
princegoyani/TRIP-DISTRIBUTER
22793ae603508c9388d03f044759dc925462595a
[ "BSD-3-Clause" ]
null
null
null
trip_distributer/admin.py
princegoyani/TRIP-DISTRIBUTER
22793ae603508c9388d03f044759dc925462595a
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from .models import User , Trip, Notification , Spending # Register your models here. admin.site.register(User) admin.site.register(Trip) admin.site.register(Notification) admin.site.register(Spending)
29.375
56
0.808511
32
235
5.9375
0.4375
0.189474
0.357895
0
0
0
0
0
0
0
0
0
0.093617
235
8
57
29.375
0.892019
0.110638
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
c857514f1506cd0bc10959833eb8dedcb9973928
70,500
py
Python
cifar_net_search/syclop_cifar_gru_no_upsample.py
sashkarivkind/imagewalker
999e1ae78cfe1512e1be894d9e7891a7d0c41233
[ "Apache-2.0" ]
2
2021-04-28T13:33:45.000Z
2021-11-09T14:31:09.000Z
cifar_net_search/syclop_cifar_gru_no_upsample.py
sashkarivkind/imagewalker
999e1ae78cfe1512e1be894d9e7891a7d0c41233
[ "Apache-2.0" ]
null
null
null
cifar_net_search/syclop_cifar_gru_no_upsample.py
sashkarivkind/imagewalker
999e1ae78cfe1512e1be894d9e7891a7d0c41233
[ "Apache-2.0" ]
1
2021-03-07T13:25:59.000Z
2021-03-07T13:25:59.000Z
''' The follwing code runs a test lstm network on the CIFAR dataset I will explicitly write the networks here for ease of understanding with cnn_sropout = 0.4 and rnn dropout = 0.2and lr = 1e-3 and res = 8 ################# cnn_gru_True Validation Accuracy = [0.3408, 0.411, 0.44, 0.4448, 0.466, 0.4684, 0.4802, 0.4...
228.896104
5,606
0.721078
12,118
70,500
4.172966
0.27521
0.007178
0.002966
0.007198
0.121757
0.078508
0.058278
0.050289
0.047757
0.047757
0
0.693395
0.102596
70,500
308
5,607
228.896104
0.105885
0.905262
0
0.176471
0
0
0.138374
0.05587
0
0
0
0
0
1
0.014706
false
0
0.102941
0
0.132353
0.066176
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
c8582ae70ade8be54e5b658dac7c05d734904cb0
549
py
Python
config/config.py
ByeongGil-Jung/Pytorch-Experiments-Boilerplate
5026fda297460552a076addbf7d29ad826ee0ac8
[ "Apache-2.0" ]
null
null
null
config/config.py
ByeongGil-Jung/Pytorch-Experiments-Boilerplate
5026fda297460552a076addbf7d29ad826ee0ac8
[ "Apache-2.0" ]
null
null
null
config/config.py
ByeongGil-Jung/Pytorch-Experiments-Boilerplate
5026fda297460552a076addbf7d29ad826ee0ac8
[ "Apache-2.0" ]
null
null
null
import os from domain.base import Domain, Yaml from properties import APPLICATION_PROPERTIES class Config(Domain): def __init__(self, file_name, *args, **kwargs): super(Config, self).__init__(*args, **kwargs) self.file_name = file_name @property def file_path(self): return os.pa...
22.875
89
0.693989
70
549
5.171429
0.371429
0.088398
0.099448
0.104972
0
0
0
0
0
0
0
0
0.209472
549
23
90
23.869565
0.834101
0
0
0.1875
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.1875
0.1875
0.6875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
c8587f2977c7befab3e26288435a9698c942b8e4
2,719
py
Python
ultron8/api/api_v1/endpoints/loggers.py
bossjones/ultron8
45db73d32542a844570d44bc83defa935e15803f
[ "Apache-2.0", "MIT" ]
null
null
null
ultron8/api/api_v1/endpoints/loggers.py
bossjones/ultron8
45db73d32542a844570d44bc83defa935e15803f
[ "Apache-2.0", "MIT" ]
43
2019-06-01T23:08:32.000Z
2022-02-07T22:24:53.000Z
ultron8/api/api_v1/endpoints/loggers.py
bossjones/ultron8
45db73d32542a844570d44bc83defa935e15803f
[ "Apache-2.0", "MIT" ]
null
null
null
from __future__ import annotations # SOURCE: https://blog.bartab.fr/fastapi-logging-on-the-fly/ import logging from fastapi import APIRouter, HTTPException from ultron8.api.models.loggers import LoggerModel, LoggerPatch LOG_LEVELS = { "critical": logging.CRITICAL, "error": logging.ERROR, "warning": logg...
31.252874
86
0.670099
325
2,719
5.476923
0.341538
0.037079
0.020225
0.029213
0.124719
0.124719
0.041573
0.041573
0.041573
0
0
0.006044
0.2089
2,719
86
87
31.616279
0.821478
0.125414
0
0.123077
0
0
0.093671
0
0
0
0
0
0
1
0.076923
false
0
0.061538
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c85898f206e8cc65031cd08af9075a430861ba23
422
py
Python
exception6.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
1
2021-06-07T07:55:28.000Z
2021-06-07T07:55:28.000Z
exception6.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
null
null
null
exception6.py
PRASAD-DANGARE/PYTHON
36214f7dc3762d327e5a29e40752edeb098249c8
[ "MIT" ]
null
null
null
# Python Program To Understand The Usage Of try With finally Blocks ''' Function Name : Usage Of try With finally Blocks Function Date : 23 Sep 2020 Function Author : Prasad Dangare Input : String Output : String ''' try: x = int(input('Enter A Number : ')) y = 1...
22.210526
68
0.592417
55
422
4.545455
0.690909
0.056
0.08
0.112
0.28
0.28
0.28
0
0
0
0
0.024561
0.324645
422
18
69
23.444444
0.852632
0.56872
0
0
0
0
0.435897
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c859d195756534de10c20a9266677539c86f42d2
72
py
Python
small-problems/fibonacci-sequence/fib1.py
Prateek2506/classic-cs-problems
fa0e3c86fb7cd478888bb90006f7379cc6c7a38b
[ "MIT" ]
null
null
null
small-problems/fibonacci-sequence/fib1.py
Prateek2506/classic-cs-problems
fa0e3c86fb7cd478888bb90006f7379cc6c7a38b
[ "MIT" ]
null
null
null
small-problems/fibonacci-sequence/fib1.py
Prateek2506/classic-cs-problems
fa0e3c86fb7cd478888bb90006f7379cc6c7a38b
[ "MIT" ]
null
null
null
def fib1(n: int) -> int: return fib1(n-1) + fib1(n-2) print(fib1(5))
24
32
0.583333
15
72
2.8
0.6
0.357143
0
0
0
0
0
0
0
0
0
0.118644
0.180556
72
3
33
24
0.59322
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
0.666667
0.333333
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
6
c85a1c9c9f35a67fa594c9e1e36235e098af53be
4,036
py
Python
V1/GliderScienceSet_Plots.py
NOAA-PMEL/EcoFOCI_OculusGlider
5655c0e173432768706416932c94a089a3e7993f
[ "Unlicense" ]
2
2018-04-12T19:49:05.000Z
2020-10-01T11:46:48.000Z
V1/GliderScienceSet_Plots.py
NOAA-PMEL/EcoFOCI_OculusGlider
5655c0e173432768706416932c94a089a3e7993f
[ "Unlicense" ]
null
null
null
V1/GliderScienceSet_Plots.py
NOAA-PMEL/EcoFOCI_OculusGlider
5655c0e173432768706416932c94a089a3e7993f
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python """ Background: -------- GliderScienceSet_Plots.py Purpose: -------- History: -------- """ import argparse import os from io_utils import ConfigParserLocal import numpy as np import xarray as xa # Visual Stack import matplotlib as mpl import matplotlib.pyplot as plt def plot_ts(...
27.834483
119
0.640981
582
4,036
4.365979
0.369416
0.023613
0.020464
0.029909
0.094845
0.023613
0.023613
0
0
0
0
0.023148
0.197225
4,036
144
120
28.027778
0.761111
0.15114
0
0.149425
0
0
0.138662
0
0
0
0
0
0
1
0.011494
false
0
0.08046
0
0.114943
0.057471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c85aba6739f248fb55a041a97d59cbb716b417c3
17,416
py
Python
manager/users/models.py
jlbrewe/hub
c737669e6493ad17536eaa240bed3394b20c6b7d
[ "Apache-2.0" ]
30
2016-03-26T12:08:04.000Z
2021-12-24T14:48:32.000Z
manager/users/models.py
jlbrewe/hub
c737669e6493ad17536eaa240bed3394b20c6b7d
[ "Apache-2.0" ]
1,250
2016-03-23T04:56:50.000Z
2022-03-28T02:27:58.000Z
manager/users/models.py
jlbrewe/hub
c737669e6493ad17536eaa240bed3394b20c6b7d
[ "Apache-2.0" ]
11
2016-07-14T17:04:20.000Z
2021-07-01T16:19:09.000Z
""" Define models used in this app. This module only serves to provide some consistency across the `users`, `accounts` , `projects` etc apps so that you can `from users.models import Users`, just like you can for `from projects.models import Projects` and instead of having to remember to do the following. """ from ty...
30.824779
93
0.634933
2,202
17,416
4.920981
0.193915
0.012551
0.010797
0.01412
0.199982
0.140181
0.10179
0.063861
0.050941
0.034884
0
0.002049
0.271302
17,416
564
94
30.879433
0.851785
0.233751
0
0.167763
0
0
0.126566
0.006688
0
0
0
0
0
1
0.072368
false
0.006579
0.078947
0.003289
0.325658
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c85bff69906cd84ddfe9e581be8b49ceea14621c
6,075
py
Python
scripts/automation/trex_control_plane/interactive/trex/emu/emu_plugins/emu_plugin_dhcpsrv.py
GabrielGanne/trex-core
688a0fe0adb890964691473723d70ffa98e00dd3
[ "Apache-2.0" ]
956
2015-06-24T15:04:55.000Z
2022-03-30T06:25:04.000Z
scripts/automation/trex_control_plane/interactive/trex/emu/emu_plugins/emu_plugin_dhcpsrv.py
hjat2005/trex-core
400f03c86c844a0096dff3f6b13e58a808aaefff
[ "Apache-2.0" ]
782
2015-09-20T15:19:00.000Z
2022-03-31T23:52:05.000Z
scripts/automation/trex_control_plane/interactive/trex/emu/emu_plugins/emu_plugin_dhcpsrv.py
hjat2005/trex-core
400f03c86c844a0096dff3f6b13e58a808aaefff
[ "Apache-2.0" ]
429
2015-06-27T19:34:21.000Z
2022-03-23T11:02:51.000Z
from trex.emu.api import * from trex.emu.emu_plugins.emu_plugin_base import * import trex.utils.parsing_opts as parsing_opts class DHCPSRVPlugin(EMUPluginBase): """ Defines DHCP Server plugin based on `DHCP <https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol>`_ Implemented based on `RFC 2...
39.967105
200
0.539095
714
6,075
4.420168
0.331933
0.005703
0.005703
0.01711
0.223067
0.204056
0.184411
0.184411
0.184411
0.126109
0
0.04222
0.380082
6,075
151
201
40.231788
0.795805
0.042469
0
0
0
0
0.083622
0.024221
0
0
0
0
0
1
0.133333
false
0
0.1
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
c86191051fc7c1834649eb4ef9230e67b31da3c1
2,683
py
Python
lenet-chinese_mnist/generate.py
leonwanghui/mindspore-jina-apps
e2912d9a93689c69005345758e3b7a2f8ba6133e
[ "Apache-2.0" ]
null
null
null
lenet-chinese_mnist/generate.py
leonwanghui/mindspore-jina-apps
e2912d9a93689c69005345758e3b7a2f8ba6133e
[ "Apache-2.0" ]
null
null
null
lenet-chinese_mnist/generate.py
leonwanghui/mindspore-jina-apps
e2912d9a93689c69005345758e3b7a2f8ba6133e
[ "Apache-2.0" ]
null
null
null
# 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.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
43.274194
118
0.6776
402
2,683
4.358209
0.363184
0.034247
0.017123
0.018265
0.114155
0.091324
0.067352
0.042237
0
0
0
0.012108
0.168841
2,683
61
119
43.983607
0.773543
0.273202
0
0
0
0
0.140187
0.026999
0
0
0
0
0
1
0.055556
false
0
0.138889
0
0.222222
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