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
c8efed3e79232b9516d7cc9ae932653eb4f75e46
6,780
py
Python
LAB2/search.py
Yalfoosh/UI-Labosi
6c8f5796cafe603012ae94b9bd2adf4642c6a1e2
[ "Apache-2.0" ]
null
null
null
LAB2/search.py
Yalfoosh/UI-Labosi
6c8f5796cafe603012ae94b9bd2adf4642c6a1e2
[ "Apache-2.0" ]
null
null
null
LAB2/search.py
Yalfoosh/UI-Labosi
6c8f5796cafe603012ae94b9bd2adf4642c6a1e2
[ "Apache-2.0" ]
3
2018-03-26T13:40:24.000Z
2019-06-07T14:02:26.000Z
import util import copy from util import Queue from game import Directions from game import Agent from game import Actions class SearchNode: """ This class represents a node in the graph which represents the search problem. """ def __init__(self, position, parent=None, transition=None, cost=0, heuris...
33.564356
107
0.629056
793
6,780
5.331652
0.31652
0.002838
0.009934
0.010407
0.022706
0.006623
0.006623
0
0
0
0
0.010629
0.29233
6,780
201
108
33.731343
0.870571
0.05295
0
0.040404
0
0
0.035632
0
0
0
0
0
0.020202
0
null
null
0
0.070707
null
null
0.020202
0
0
0
null
0
0
0
0
0
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
c8f583b5fb15b62fad8f78d2f34ed49e623db673
289
py
Python
05/d_fibonacci sequence.py
koshin117/python-learning
68dd99e2f72fff7507a874c11511415fef3c9354
[ "MIT" ]
1
2021-03-29T08:30:19.000Z
2021-03-29T08:30:19.000Z
05/d_fibonacci sequence.py
koshin117/python-learning
68dd99e2f72fff7507a874c11511415fef3c9354
[ "MIT" ]
null
null
null
05/d_fibonacci sequence.py
koshin117/python-learning
68dd99e2f72fff7507a874c11511415fef3c9354
[ "MIT" ]
null
null
null
#D def fibonacci(N :int) -> int: if N == 1: return 1 elif N == 2: return 1 else: return fibonacci(N-2)+fibonacci(N-1) def main(): # input N = int(input()) # compute # output print(fibonacci(N)) if __name__ == '__main__': main()
16.055556
44
0.508651
39
289
3.564103
0.435897
0.28777
0
0
0
0
0
0
0
0
0
0.031579
0.342561
289
17
45
17
0.7
0.076125
0
0.166667
0
0
0.030418
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.416667
0.083333
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
0
0
0
0
0
1
c8f590f04dfad5daa4653516c3cbd0620fda7b54
3,211
py
Python
ssd_test.py
s-ishikawa-0921/paripi_ssd_keras
bec1ab1c142515795cafb448d2f3e87366d535df
[ "MIT" ]
null
null
null
ssd_test.py
s-ishikawa-0921/paripi_ssd_keras
bec1ab1c142515795cafb448d2f3e87366d535df
[ "MIT" ]
null
null
null
ssd_test.py
s-ishikawa-0921/paripi_ssd_keras
bec1ab1c142515795cafb448d2f3e87366d535df
[ "MIT" ]
null
null
null
import cv2 import keras from keras.applications.imagenet_utils import preprocess_input from keras.backend.tensorflow_backend import set_session from keras.models import Model from keras.preprocessing import image import matplotlib.pyplot as plt import numpy as np from scipy.misc import imread import tensorflow as tf f...
29.731481
115
0.669262
482
3,211
4.26556
0.327801
0.034047
0.025292
0.022374
0.051556
0.027237
0
0
0
0
0
0.024268
0.191529
3,211
108
116
29.731481
0.76772
0.044846
0
0
0
0
0.029047
0
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.025974
0
0
0
null
0
0
0
0
0
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
c8f5a380fb962e4d3a36ddca554eb3e24c5c85d2
494
py
Python
code/1641.Count-Sorted-Vowel-Strings.py
Aden-Q/leetcode
ebd4804edd4f172b9981b22c18d9ff654cf20762
[ "Apache-2.0" ]
1
2019-09-22T03:08:14.000Z
2019-09-22T03:08:14.000Z
code/1641.Count-Sorted-Vowel-Strings.py
Aden-Q/leetcode
ebd4804edd4f172b9981b22c18d9ff654cf20762
[ "Apache-2.0" ]
null
null
null
code/1641.Count-Sorted-Vowel-Strings.py
Aden-Q/leetcode
ebd4804edd4f172b9981b22c18d9ff654cf20762
[ "Apache-2.0" ]
null
null
null
class Solution: def countVowelStrings(self, n: int) -> int: d = ['a', 'e', 'i', 'o', 'u'] path = [] count = 0 def backtracking(n, start): nonlocal count if n == 0: count += 1 return for i in range(start, 5):...
26
47
0.388664
51
494
3.764706
0.54902
0.203125
0
0
0
0
0
0
0
0
0
0.024096
0.495951
494
19
48
26
0.746988
0
0
0.117647
0
0
0.010101
0
0
0
0
0
0
1
0.117647
false
0
0
0
0.352941
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
0
0
0
0
0
1
c8ff687388a5d7532bb223670ff86f9c593e9f9a
11,931
py
Python
cs15211/RegularExpressionMatching.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2021-07-05T01:53:30.000Z
2021-07-05T01:53:30.000Z
cs15211/RegularExpressionMatching.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
null
null
null
cs15211/RegularExpressionMatching.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2018-01-08T07:14:08.000Z
2018-01-08T07:14:08.000Z
# coding=utf-8 __source__ = 'https://leetcode.com/problems/regular-expression-matching/' # https://github.com/kamyu104/LeetCode/blob/master/Python/regular-expression-matching.py # Time: O(m * n) # Space: O(n) # DP # "*" cannot be the first char? # # Description: Leetcode # 10. Regular Expression Matching # # Given an ...
37.756329
121
0.495097
1,829
11,931
3.185894
0.15637
0.018534
0.012356
0.014416
0.440707
0.386305
0.322121
0.270465
0.198902
0.152737
0
0.032411
0.327634
11,931
315
122
37.87619
0.693219
0.176934
0
0.24186
0
0.130233
0.567173
0.013962
0
0
0
0
0.004651
0
null
null
0.004651
0.004651
null
null
0.018605
0
0
0
null
0
0
0
0
0
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
7400a3778238dffc22177ebdc594613d4ad80a14
17,883
py
Python
src/trigger_lstm.py
qolina/NNED
786853cfa51aa911a0066c6e4fe8a8f7e5973bb9
[ "MIT" ]
21
2017-10-17T03:26:19.000Z
2021-06-24T08:05:57.000Z
src/trigger_lstm.py
qolina/NNED
786853cfa51aa911a0066c6e4fe8a8f7e5973bb9
[ "MIT" ]
5
2018-01-26T14:15:04.000Z
2019-01-25T02:32:35.000Z
src/trigger_lstm.py
qolina/NNED
786853cfa51aa911a0066c6e4fe8a8f7e5973bb9
[ "MIT" ]
12
2017-09-04T08:16:44.000Z
2019-11-24T16:09:07.000Z
# This file mainly implements a basic attention model for neural event extraction # input file consists of sentences which contain one-event. import os import re import sys import time import random import cPickle from collections import Counter from aceEventUtil import loadEventHierarchy #from get_constituent_topdown_...
46.090206
183
0.65772
2,448
17,883
4.506536
0.115196
0.026106
0.017676
0.012237
0.509608
0.457578
0.415972
0.381889
0.357052
0.340192
0
0.012418
0.229995
17,883
387
184
46.209302
0.788744
0.169099
0
0.257692
0
0
0.046853
0.008388
0
0
0
0
0
0
null
null
0
0.107692
null
null
0.069231
0
0
0
null
0
0
0
0
0
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
7402fdf9f644f25f48183588fba0ae0c47a2a22c
1,216
py
Python
app.py
ryukeno/ML-DiabetePrediction-WebApp
380c9ec95cd08b9d3df7d50b5d41deaf7b8aa585
[ "MIT" ]
1
2021-03-16T00:42:34.000Z
2021-03-16T00:42:34.000Z
app.py
ryukeno/ML-DiabetePrediction-WebApp
380c9ec95cd08b9d3df7d50b5d41deaf7b8aa585
[ "MIT" ]
null
null
null
app.py
ryukeno/ML-DiabetePrediction-WebApp
380c9ec95cd08b9d3df7d50b5d41deaf7b8aa585
[ "MIT" ]
null
null
null
import streamlit as st import streamlit.components.v1 as stc from eda_app import run_eda_app from ml_app import run_ml_app html_temp = """ <div style="background-color:#3872fb;padding:10px;border-radius:10px"> <h1 style="color:white;text-align:center;">Early Stage DM Risk Data App </h1> <h4 style="color:white;...
28.27907
99
0.689967
179
1,216
4.575419
0.497207
0.021978
0.029304
0.046398
0.07326
0.07326
0
0
0
0
0
0.012733
0.160362
1,216
43
100
28.27907
0.789422
0.030428
0
0
0
0.055556
0.602716
0.132428
0
0
0
0
0
1
0.027778
false
0
0.111111
0
0.138889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7407301e2180cfba72b1ea576b64f9d6395bf3aa
1,204
py
Python
src/pyra/Test.py
MagnusS/pyradac
654c92d5d1c8ac41249a1aabe0ff6609bf8f8979
[ "BSD-2-Clause" ]
null
null
null
src/pyra/Test.py
MagnusS/pyradac
654c92d5d1c8ac41249a1aabe0ff6609bf8f8979
[ "BSD-2-Clause" ]
null
null
null
src/pyra/Test.py
MagnusS/pyradac
654c92d5d1c8ac41249a1aabe0ff6609bf8f8979
[ "BSD-2-Clause" ]
1
2020-05-19T08:10:57.000Z
2020-05-19T08:10:57.000Z
''' Created on 27. mars 2014 @author: tul ''' import ra nodeRange=range(1,22) raList=[] for node in nodeRange: print node #create all the RA instances #First par: ID number #Second par: True if only local decisions (alg 1), False if use neighbor info (alg 2) #Third: Memory for neighbor warnings ...
30.1
104
0.665282
157
1,204
5.101911
0.566879
0.014981
0.024969
0.037453
0.044944
0
0
0
0
0
0
0.032044
0.248339
1,204
40
105
30.1
0.853039
0.375415
0
0
0
0
0.048851
0
0
0
0
0
0
0
null
null
0
0.055556
null
null
0.277778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
cdb27b0b7638e80aa0ae65b099fd8d6c45cdb846
7,490
py
Python
fits2png.py
IUSCA/imagex-importer
c127054e4c695fffc9ed8cac072d277c8a40b351
[ "ECL-2.0" ]
null
null
null
fits2png.py
IUSCA/imagex-importer
c127054e4c695fffc9ed8cac072d277c8a40b351
[ "ECL-2.0" ]
1
2019-07-12T14:53:40.000Z
2019-07-12T14:53:40.000Z
fits2png.py
IUSCA/imagex-importer
c127054e4c695fffc9ed8cac072d277c8a40b351
[ "ECL-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys import numpy import pyfits from scipy.ndimage.interpolation import zoom from optparse import OptionParser from PIL import Image from skimage import exposure from skimage import io import ConfigParser config = ConfigParser.RawConfigParser() if __name__ == "__main__": # ...
36.896552
117
0.561816
918
7,490
4.433551
0.267974
0.029484
0.040541
0.035381
0.186978
0.167076
0.125307
0.125307
0.107617
0.107617
0
0.027184
0.312417
7,490
202
118
37.079208
0.763107
0.054072
0
0.11465
0
0
0.137477
0
0
0
0
0
0
0
null
null
0
0.063694
null
null
0.044586
0
0
0
null
0
0
0
0
0
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
cdb5546d1c3a2ceab61857bfe58d41ed74580444
13,498
py
Python
surveys/models.py
acounsel/zwazo
beeb3591674a8290a89704e3da56aa4d425418e8
[ "MIT" ]
null
null
null
surveys/models.py
acounsel/zwazo
beeb3591674a8290a89704e3da56aa4d425418e8
[ "MIT" ]
10
2019-11-25T16:54:39.000Z
2022-02-10T08:29:51.000Z
surveys/models.py
acounsel/zwazo
beeb3591674a8290a89704e3da56aa4d425418e8
[ "MIT" ]
null
null
null
import csv from django.db import models from django.db.models import Count from django.core.exceptions import ValidationError from django.urls import reverse from django.utils.text import slugify from zwazo.storage_backends import PrivateMediaStorage from accounts.models import Organization def create_unique_slug(i...
36.284946
128
0.648392
1,616
13,498
5.248144
0.127475
0.037142
0.061549
0.082066
0.528829
0.477066
0.384742
0.341823
0.29572
0.261997
0
0.008955
0.230627
13,498
371
129
36.382749
0.807703
0.005186
0
0.309446
0
0
0.058022
0
0
0
0
0
0
1
0.123779
false
0
0.032573
0.058632
0.638436
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
cdceb5ad8a7f8ab07759429f83c9044eed42ae9c
11,792
py
Python
Untitled1.py
kabir12345/DASM
86f777c47a83f400c2f99e9f71dcc3a40b9d3143
[ "Apache-2.0" ]
1
2021-06-07T02:55:01.000Z
2021-06-07T02:55:01.000Z
Untitled1.py
kabir12345/DASM
86f777c47a83f400c2f99e9f71dcc3a40b9d3143
[ "Apache-2.0" ]
null
null
null
Untitled1.py
kabir12345/DASM
86f777c47a83f400c2f99e9f71dcc3a40b9d3143
[ "Apache-2.0" ]
1
2021-03-22T05:49:30.000Z
2021-03-22T05:49:30.000Z
# coding: utf-8 # In[1]: import nltk from random import randint import numpy as np import random import string import pickle import pandas as pd from flask import Flask, render_template, request app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/chatbot', met...
39.703704
207
0.504155
1,309
11,792
4.375095
0.161956
0.100576
0.081718
0.081194
0.616728
0.559106
0.521041
0.521041
0.521041
0.521041
0
0.015933
0.398575
11,792
296
208
39.837838
0.791596
0.09057
0
0.605634
0
0.004695
0.150323
0.004929
0
0
0
0
0
0
null
null
0
0.042254
null
null
0.122066
0
0
0
null
0
0
0
0
0
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
cdd9e8ed2583050ceed17590d5de8745d3081a87
1,554
py
Python
windriver/titanium_cloud/swagger/urls.py
onap/multicloud-openstack
d0e41eb1b1a1cb79365836da728908ed26253db4
[ "CC-BY-4.0" ]
4
2018-10-24T15:20:14.000Z
2020-03-09T06:29:11.000Z
windriver/titanium_cloud/swagger/urls.py
onap/multicloud-openstack
d0e41eb1b1a1cb79365836da728908ed26253db4
[ "CC-BY-4.0" ]
null
null
null
windriver/titanium_cloud/swagger/urls.py
onap/multicloud-openstack
d0e41eb1b1a1cb79365836da728908ed26253db4
[ "CC-BY-4.0" ]
2
2020-08-03T13:45:44.000Z
2021-09-15T21:10:26.000Z
# Copyright (c) 2017-2018 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
39.846154
103
0.78121
206
1,554
5.820388
0.480583
0.050042
0.056714
0.080067
0.276897
0.276897
0.160133
0.091743
0.091743
0
0
0.022239
0.131918
1,554
38
104
40.894737
0.866568
0.444015
0
0
0
0
0.219858
0.219858
0
0
0
0
0
1
0
false
0
0.461538
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
cde9ede91e9c786d7cc3d0350fc676abebeea75a
279
py
Python
strings/strftime.py
rtorres90/python_playground
ee4fcd32135eddaf83c7f0cff20bf9401a0838bc
[ "MIT" ]
null
null
null
strings/strftime.py
rtorres90/python_playground
ee4fcd32135eddaf83c7f0cff20bf9401a0838bc
[ "MIT" ]
null
null
null
strings/strftime.py
rtorres90/python_playground
ee4fcd32135eddaf83c7f0cff20bf9401a0838bc
[ "MIT" ]
null
null
null
"""Ejemplos para utilizar strftime con datetime.""" # -*- coding: utf-8 -*- from datetime import datetime date1 = datetime(2011, 4, 23, 12, 22, 3) date2 = datetime(2015, 1, 2, 8, 20, 13) print date1.strftime("%b %d %Y %H:%M:%S") print date2.strftime("%d del %m del año %Y")
21.461538
51
0.637993
47
279
3.787234
0.702128
0
0
0
0
0
0
0
0
0
0
0.121212
0.172043
279
12
52
23.25
0.649351
0.075269
0
0
0
0
0.180488
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.4
0
0
0
null
0
0
0
0
0
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
cdfd6430b18b5c0bb599e678fedc61019be2636d
2,093
py
Python
interaction_prediction/submission.py
david9dragon9/AIR
cbcb7cb74f4280596ede9d998f75f20c272843bd
[ "Apache-2.0" ]
16
2021-06-20T17:01:46.000Z
2021-12-16T19:04:42.000Z
interaction_prediction/submission.py
david9dragon9/AIR
cbcb7cb74f4280596ede9d998f75f20c272843bd
[ "Apache-2.0" ]
1
2022-03-03T08:49:40.000Z
2022-03-04T03:24:09.000Z
interaction_prediction/submission.py
david9dragon9/AIR
cbcb7cb74f4280596ede9d998f75f20c272843bd
[ "Apache-2.0" ]
4
2021-08-18T13:36:42.000Z
2022-03-04T06:03:44.000Z
# InteractionSubmission: import tensorflow as tf import numpy as np from waymo_open_dataset.protos import motion_submission_pb2 def eval_and_generate_submission(model, eval_dataset, num_modes = 6): submission = motion_submission_pb2.MotionChallengeSubmission() submission.submission_type = 2 submission.affiliatio...
43.604167
101
0.706641
252
2,093
5.595238
0.337302
0.06383
0.048227
0.053191
0.120567
0.042553
0
0
0
0
0
0.012537
0.199713
2,093
48
102
43.604167
0.829254
0.046823
0
0
1
0
0.014558
0
0
0
0
0
0
1
0.046512
false
0
0.069767
0
0.139535
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a801223708f4675f384b3111e3750cb69c96f117
770
py
Python
CacheInspector/profile/legacy/kde.py
yl3469/CloudModeling
a7b0247f4396818384fb84c2818ad88b7a3b9af5
[ "BSD-3-Clause" ]
6
2018-09-19T20:26:57.000Z
2021-09-23T15:35:24.000Z
CacheInspector/profile/legacy/kde.py
yl3469/CloudModeling
a7b0247f4396818384fb84c2818ad88b7a3b9af5
[ "BSD-3-Clause" ]
null
null
null
CacheInspector/profile/legacy/kde.py
yl3469/CloudModeling
a7b0247f4396818384fb84c2818ad88b7a3b9af5
[ "BSD-3-Clause" ]
3
2019-02-23T22:11:00.000Z
2022-02-24T02:02:15.000Z
#!/usr/bin/python from scipy.stats import gaussian_kde from scipy.signal import argrelextrema import numpy as np import sys # import matplotlib.pyplot as plt if __name__ == "__main__": if len(sys.argv) < 3: print "%s <data file> <cache level> [bin=0.15]" % sys.argv[0] exit(0) dat = np.loadtxt(sys.argv[1]) ...
29.615385
93
0.663636
131
770
3.801527
0.496183
0.084337
0.032129
0.048193
0
0
0
0
0
0
0
0.032864
0.17013
770
25
94
30.8
0.746479
0.102597
0
0
0
0
0.074236
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a804487d4c6d54242c24f04060ff78d49816d10a
1,734
py
Python
apps/qfile/views.py
lianxiaopang/camel-store-api
b8021250bf3d8cf7adc566deebdba55225148316
[ "Apache-2.0" ]
12
2020-02-01T01:52:01.000Z
2021-04-28T15:06:43.000Z
apps/qfile/views.py
lianxiaopang/camel-store-api
b8021250bf3d8cf7adc566deebdba55225148316
[ "Apache-2.0" ]
5
2020-02-06T08:07:58.000Z
2020-06-02T13:03:45.000Z
apps/qfile/views.py
lianxiaopang/camel-store-api
b8021250bf3d8cf7adc566deebdba55225148316
[ "Apache-2.0" ]
11
2020-02-03T13:07:46.000Z
2020-11-29T01:44:06.000Z
from django.conf import settings from rest_framework.permissions import IsAdminUser from rest_framework import status, viewsets, decorators from quser.permissions import CURDPermissionsOrReadOnly from rest_framework.response import Response from . import models, serializers from .filters import FileFilter class TagV...
43.35
108
0.745098
182
1,734
6.950549
0.406593
0.071146
0.082213
0.053755
0.311462
0.197628
0.197628
0.197628
0.197628
0.197628
0
0.004129
0.162053
1,734
40
109
43.35
0.866483
0
0
0.181818
0
0
0.007493
0
0
0
0
0
0
1
0.090909
false
0
0.212121
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
a8058e8be9a5632befad8afbbb109327eeaeac8c
344
py
Python
irods_browser_app/urls.py
ResearchSoftwareInstitute/MyHPOM
2d48fe5ac8d21173b1685eb33059bb391fe24414
[ "BSD-3-Clause" ]
1
2018-09-17T13:07:29.000Z
2018-09-17T13:07:29.000Z
irods_browser_app/urls.py
ResearchSoftwareInstitute/MyHPOM
2d48fe5ac8d21173b1685eb33059bb391fe24414
[ "BSD-3-Clause" ]
100
2017-08-01T23:48:04.000Z
2018-04-03T13:17:27.000Z
irods_browser_app/urls.py
ResearchSoftwareInstitute/MyHPOM
2d48fe5ac8d21173b1685eb33059bb391fe24414
[ "BSD-3-Clause" ]
2
2017-07-27T20:41:33.000Z
2017-07-27T22:40:57.000Z
from django.conf.urls import patterns, url from irods_browser_app import views urlpatterns = patterns('', url(r'^login/$',views.login, name='irods_login'), url(r'^store/$',views.store, name='irods_store'), url(r'^upload/$',views.upload, name='irods_upload'), url(r'^upload_add/$',views.upload_add, name=...
34.4
68
0.697674
50
344
4.62
0.36
0.069264
0.08658
0
0
0
0
0
0
0
0
0
0.113372
344
9
69
38.222222
0.757377
0
0
0
0
0
0.255814
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a80eee63ab4a53bc856ee500d890bc99af9797e7
7,113
py
Python
flask_web_app.py
mrsixw/git-statistics
9f0bf1fc2c873136e3f0728a12248344bc526287
[ "Apache-2.0" ]
null
null
null
flask_web_app.py
mrsixw/git-statistics
9f0bf1fc2c873136e3f0728a12248344bc526287
[ "Apache-2.0" ]
null
null
null
flask_web_app.py
mrsixw/git-statistics
9f0bf1fc2c873136e3f0728a12248344bc526287
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sqlite3 import os import plotly import json from flask import Flask, render_template, session, g from flask_bootstrap import Bootstrap from git_insight_generator import generate_branch_insight, generate_monthly_commit_data, generate_month_change_data, generate_commit_time_of_day import lo...
30.139831
144
0.461268
764
7,113
4.120419
0.263089
0.063532
0.034308
0.049555
0.325286
0.28526
0.202668
0.194091
0.186468
0.156607
0
0.023382
0.428792
7,113
236
145
30.139831
0.751415
0.037115
0
0.410256
0
0
0.093713
0.003947
0
0
0
0
0
0
null
null
0
0.041026
null
null
0.020513
0
0
0
null
0
0
0
0
0
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
a81b07f4d710cf0ea7aa28648a35d48ad9f08929
1,626
py
Python
tests/sortables/migrations/0001_initial.py
dldevinc/paper_admin
ef90605cabdbd2bf966a7b11d5a0a69b72a3dd87
[ "BSD-3-Clause" ]
8
2021-03-01T00:12:01.000Z
2022-01-18T10:54:20.000Z
tests/sortables/migrations/0001_initial.py
dldevinc/paper_admin
ef90605cabdbd2bf966a7b11d5a0a69b72a3dd87
[ "BSD-3-Clause" ]
7
2020-02-11T21:54:07.000Z
2022-03-16T15:22:35.000Z
tests/sortables/migrations/0001_initial.py
dldevinc/paper_admin
ef90605cabdbd2bf966a7b11d5a0a69b72a3dd87
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.1.15 on 2021-05-21 08:24 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Company', fields=[ ...
39.658537
140
0.597786
168
1,626
5.642857
0.35119
0.092827
0.067511
0.101266
0.622363
0.622363
0.622363
0.582278
0.582278
0.528481
0
0.024126
0.260763
1,626
40
141
40.65
0.764559
0.02829
0
0.454545
1
0
0.098226
0
0
0
0
0
0
1
0
false
0
0.060606
0
0.181818
0
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
a81d2b56fba27e97965673f696bbdeb0298e4b33
12,986
py
Python
src/fitter.py
cemulate/minecraft-hdl
a46da8d2a29aad9c2fc84037d677190c6db80dcd
[ "MIT" ]
5
2015-09-11T04:13:01.000Z
2021-11-17T14:35:28.000Z
src/fitter.py
cemulate/minecraft-hdl
a46da8d2a29aad9c2fc84037d677190c6db80dcd
[ "MIT" ]
null
null
null
src/fitter.py
cemulate/minecraft-hdl
a46da8d2a29aad9c2fc84037d677190c6db80dcd
[ "MIT" ]
1
2021-03-15T17:31:27.000Z
2021-03-15T17:31:27.000Z
from __future__ import division from pymclevel.schematic import MCSchematic from pymclevel.box import BoundingBox from pymclevel import alphaMaterials from block_constants import * def add_tuples(x, y): return tuple(sum(i) for i in zip(x, y)) def fit_elements(meta_input, element_list, OPTIONS): schemat...
40.9653
124
0.579393
1,766
12,986
4.089468
0.147792
0.031016
0.036555
0.052617
0.620465
0.593603
0.579618
0.572971
0.54874
0.522293
0
0.015871
0.335284
12,986
317
125
40.9653
0.820783
0.228246
0
0.536723
0
0
0.01062
0
0
0
0
0
0
0
null
null
0
0.028249
null
null
0.022599
0
0
0
null
0
0
0
0
0
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
a821e039c41258f9daa91db8b278081ab437dbee
928
py
Python
Backend/test/shell.py
AlbatrossBill/COSC4P02Project
c48682c014ab9de4847d46cffc710d386db93c0f
[ "MIT" ]
4
2022-01-15T22:04:06.000Z
2022-01-24T01:46:46.000Z
Backend/test/shell.py
AlbatrossBill/COSC4P02Project
c48682c014ab9de4847d46cffc710d386db93c0f
[ "MIT" ]
null
null
null
Backend/test/shell.py
AlbatrossBill/COSC4P02Project
c48682c014ab9de4847d46cffc710d386db93c0f
[ "MIT" ]
1
2022-01-24T01:31:57.000Z
2022-01-24T01:31:57.000Z
import nltk import string import requests import json from io import StringIO from html.parser import HTMLParser import os import time from sys import platform path = "" if platform == "linux" or platform == "linux2": path = os.path.dirname(os.path.realpath(__file__)).replace("test","data/nltk") elif ...
27.294118
84
0.68319
125
928
4.872
0.384
0.059113
0.049261
0.083744
0.305419
0.305419
0.305419
0.305419
0.305419
0.305419
0
0.009021
0.163793
928
34
85
27.294118
0.775773
0
0
0.068966
0
0
0.15625
0
0
0
0
0
0
1
0.068966
false
0
0.310345
0
0.37931
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a82aaa739b1ef543f0946c60a11e450693d76b9e
4,593
py
Python
geneosAlertsCsvMassage.py
daedaluschan/GeneosReportTools
ebd46f0821d7d2fb501e95435e479be7ca41ca36
[ "CC0-1.0" ]
3
2016-08-11T10:51:13.000Z
2019-12-03T17:23:23.000Z
geneosAlertsCsvMassage.py
daedaluschan/GeneosReportTools
ebd46f0821d7d2fb501e95435e479be7ca41ca36
[ "CC0-1.0" ]
null
null
null
geneosAlertsCsvMassage.py
daedaluschan/GeneosReportTools
ebd46f0821d7d2fb501e95435e479be7ca41ca36
[ "CC0-1.0" ]
3
2017-04-17T13:54:06.000Z
2020-06-22T18:53:08.000Z
from os import listdir from os.path import isfile, join from shutil import move from pandas import DataFrame as df import pandas as pd import csv import requests import string from datetime import datetime from lxml import etree from lxml import html incomingFolder = '.\\in' outFolder = '.\\out' doneFolder = '.\\do...
40.289474
114
0.548008
523
4,593
4.638623
0.298279
0.009893
0.051937
0.06183
0.161171
0.136439
0.111707
0.111707
0.088623
0
0
0.01809
0.313956
4,593
113
115
40.646018
0.751825
0.005008
0
0
0
0
0.122811
0
0
0
0
0
0
0
null
null
0
0.123596
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
a82beea27f6a47d9ae0190ccf3f4eeba6fee7691
406
py
Python
points/migrations/0004_spend_receipt.py
JXIong15/fetch-points
da3c2e295c9487a48fe911ea2cdc2c05df40602e
[ "MIT" ]
null
null
null
points/migrations/0004_spend_receipt.py
JXIong15/fetch-points
da3c2e295c9487a48fe911ea2cdc2c05df40602e
[ "MIT" ]
1
2022-01-15T16:22:30.000Z
2022-01-15T16:22:30.000Z
points/migrations/0004_spend_receipt.py
JXIong15/fetch-points
da3c2e295c9487a48fe911ea2cdc2c05df40602e
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-01-12 23:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('points', '0003_spend_alter_transaction_timestamp'), ] operations = [ migrations.AddField( model_name='spend', name='...
21.368421
61
0.610837
44
406
5.522727
0.818182
0
0
0
0
0
0
0
0
0
0
0.064626
0.275862
406
18
62
22.555556
0.761905
0.110837
0
0
1
0
0.155989
0.10585
0
0
0
0
0
1
0
false
0
0.083333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a82ff8260328cb1e2dbad1034d01eb663a95a1e2
1,204
py
Python
Server/app/__init__.py
PPitson/depressiondetector
06a8344d4f9f0c71619a187da9d882e522e4a8e2
[ "Apache-2.0" ]
null
null
null
Server/app/__init__.py
PPitson/depressiondetector
06a8344d4f9f0c71619a187da9d882e522e4a8e2
[ "Apache-2.0" ]
2
2021-03-18T20:23:08.000Z
2021-06-08T19:23:35.000Z
Server/app/__init__.py
PPitson/depressiondetector
06a8344d4f9f0c71619a187da9d882e522e4a8e2
[ "Apache-2.0" ]
null
null
null
import indicoio from celery import Celery from flask import Flask from flask_bootstrap import Bootstrap from flask_googlemaps import GoogleMaps from flask_mail import Mail from flask_mongoengine import MongoEngine from app.celery.factory import init_celery from config import config, DEVELOPMENT_CONFIG_NAME celery = C...
23.153846
52
0.774086
163
1,204
5.496933
0.202454
0.050223
0.075893
0
0
0
0
0
0
0
0
0
0.155316
1,204
51
53
23.607843
0.881023
0
0
0
0
0
0.002492
0
0
0
0
0
0
1
0.108108
false
0
0.351351
0
0.486486
0.27027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a831920a6504101a28fd6154596abfc106155bd5
5,978
py
Python
PWGJE/EMCALJetTasks/Tracks/analysis/plots/TriggerEfficiencyPlotMC.py
maroozm/AliPhysics
22ec256928cfdf8f800e05bfc1a6e124d90b6eaf
[ "BSD-3-Clause" ]
114
2017-03-03T09:12:23.000Z
2022-03-03T20:29:42.000Z
PWGJE/EMCALJetTasks/Tracks/analysis/plots/TriggerEfficiencyPlotMC.py
maroozm/AliPhysics
22ec256928cfdf8f800e05bfc1a6e124d90b6eaf
[ "BSD-3-Clause" ]
19,637
2017-01-16T12:34:41.000Z
2022-03-31T22:02:40.000Z
PWGJE/EMCALJetTasks/Tracks/analysis/plots/TriggerEfficiencyPlotMC.py
maroozm/AliPhysics
22ec256928cfdf8f800e05bfc1a6e124d90b6eaf
[ "BSD-3-Clause" ]
1,021
2016-07-14T22:41:16.000Z
2022-03-31T05:15:51.000Z
#************************************************************************** #* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. * #* * #* Author: The ALICE Off-line Project. * #* Contributors ...
36.012048
127
0.61007
533
5,978
6.664165
0.350844
0.031532
0.021678
0.01295
0.212556
0.189752
0.168919
0.127815
0.094032
0.094032
0
0.013398
0.275845
5,978
166
128
36.012048
0.807115
0.283372
0
0.366197
0
0
0.060976
0
0
0
0
0
0
1
0.253521
false
0
0.042254
0.056338
0.450704
0
0
0
0
null
0
0
0
0
0
0
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
a83430da403a6343902a69916ea61b7d984073ae
1,100
py
Python
p38_count_and_say.py
feigaochn/leetcode
abf0877fae02aa9c2549051f0b68df0ace952512
[ "MIT" ]
null
null
null
p38_count_and_say.py
feigaochn/leetcode
abf0877fae02aa9c2549051f0b68df0ace952512
[ "MIT" ]
null
null
null
p38_count_and_say.py
feigaochn/leetcode
abf0877fae02aa9c2549051f0b68df0ace952512
[ "MIT" ]
null
null
null
# author: Fei Gao # # Count And Say # # The count-and-say sequence is the sequence of integers beginning as follows: # 1, 11, 21, 1211, 111221, ... # 1 is read off as "one 1" or 11. # 11 is read off as "two 1s" or 21. # 21 is read off as "one 2, then one 1" or 1211. # Given an integer n, generate the nth sequence. # No...
24.444444
78
0.509091
161
1,100
3.428571
0.42236
0.032609
0.048913
0.059783
0.050725
0
0
0
0
0
0
0.057307
0.365455
1,100
44
79
25
0.733524
0.341818
0
0.076923
0
0
0.015471
0
0
0
0
0
0
1
0.115385
false
0.076923
0
0
0.230769
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a834c683e0b03b64232ca74273a4e0f8df2eb617
2,170
py
Python
Phase_2/pytools-master/ycsb/py_ycsb_parser.py
manu2504/WANCom
8acdffb947d36fa7d7c8c78cbe9c3b06864128a6
[ "MIT" ]
null
null
null
Phase_2/pytools-master/ycsb/py_ycsb_parser.py
manu2504/WANCom
8acdffb947d36fa7d7c8c78cbe9c3b06864128a6
[ "MIT" ]
null
null
null
Phase_2/pytools-master/ycsb/py_ycsb_parser.py
manu2504/WANCom
8acdffb947d36fa7d7c8c78cbe9c3b06864128a6
[ "MIT" ]
null
null
null
#!/usr/bin/python import argparse import json import logging import os import sys import numpy as np def verify_token_line4logs(tokens, column_order, dtypes_dic): res = [] try: for i, column in enumerate(column_order): v = -1 if dtypes_dic[column] == np.uint16: ...
31
183
0.535484
273
2,170
4.084249
0.457875
0.04843
0.053812
0.04574
0.240359
0.188341
0.121973
0.050224
0.050224
0.050224
0
0.047109
0.354378
2,170
69
184
31.449275
0.748751
0.007373
0
0.092593
0
0.018519
0.187181
0.078495
0
0
0
0
0.018519
0
null
null
0
0.111111
null
null
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
1
0
0
0
0
0
0
0
0
1
a836cd5f863b83f15ddd260a01f6e0a18aa4ebe5
235
py
Python
src/dashboards/urls.py
PhaseDMS/phase
4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e
[ "MIT" ]
2
2021-09-10T19:40:30.000Z
2022-01-31T07:15:51.000Z
src/dashboards/urls.py
PhaseDMS/phase
4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e
[ "MIT" ]
null
null
null
src/dashboards/urls.py
PhaseDMS/phase
4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e
[ "MIT" ]
1
2021-09-10T19:40:42.000Z
2021-09-10T19:40:42.000Z
from django.urls import path from dashboards.views import DashboardView urlpatterns = [ path( "<slug:organisation>/dashboards/<slug:dashboard>/", DashboardView.as_view(), name="dashboard_detail", ), ]
19.583333
59
0.66383
23
235
6.695652
0.695652
0
0
0
0
0
0
0
0
0
0
0
0.217021
235
11
60
21.363636
0.836957
0
0
0
0
0
0.27234
0.204255
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
a837c3e92a14330ad2d5e5710c313906c42a2378
452
py
Python
utilities/calcTotalEdges.py
johannes-schuetze/ALTO-framework-sim
7a8d1df549188684ad3636434ccd6cf064e82c4f
[ "MIT" ]
null
null
null
utilities/calcTotalEdges.py
johannes-schuetze/ALTO-framework-sim
7a8d1df549188684ad3636434ccd6cf064e82c4f
[ "MIT" ]
null
null
null
utilities/calcTotalEdges.py
johannes-schuetze/ALTO-framework-sim
7a8d1df549188684ad3636434ccd6cf064e82c4f
[ "MIT" ]
null
null
null
#!/usr/bin/python #This script takes a .dot file defined network and counts the amount of edges, i.e. occurances of " -> " in it import sys path = str( sys.argv[1]) try: file_handle = open(path, 'r') except (OSError, IOError) as e: print e print "Goodbye" search_str = "->" counter = 0 for line in file_handle: ...
18.833333
110
0.676991
73
452
4.123288
0.643836
0.099668
0
0
0
0
0
0
0
0
0
0.008242
0.19469
452
23
111
19.652174
0.818681
0.276549
0
0
0
0
0.113846
0
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.266667
0
0
0
null
0
0
0
0
0
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
b51a68cdc9aa9835547dfac3721bb9aaf8f2513e
151
py
Python
read_files.py
BearHeathen/MadRamblings
90527c6d31106a8d8e79bb91da51327d4e092103
[ "MIT" ]
null
null
null
read_files.py
BearHeathen/MadRamblings
90527c6d31106a8d8e79bb91da51327d4e092103
[ "MIT" ]
null
null
null
read_files.py
BearHeathen/MadRamblings
90527c6d31106a8d8e79bb91da51327d4e092103
[ "MIT" ]
null
null
null
file = open('file.txt', 'r') f = file.readlines() readingList = [] for line in f: readingList.append(line.strip()) print(readingList) file.close()
13.727273
33
0.675497
21
151
4.857143
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.139073
151
10
34
15.1
0.784615
0
0
0
0
0
0.059603
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
b51e500159d7bb379157fe91756cbee181649a1d
2,245
py
Python
variables_tertiary.py
BriBean/Variables
f4f951ccab052b30679493e6100cc3f6664990b4
[ "MIT" ]
null
null
null
variables_tertiary.py
BriBean/Variables
f4f951ccab052b30679493e6100cc3f6664990b4
[ "MIT" ]
null
null
null
variables_tertiary.py
BriBean/Variables
f4f951ccab052b30679493e6100cc3f6664990b4
[ "MIT" ]
null
null
null
# author: <Brianna Blue> # date: <7/2/21> # # description: <fill in> # Choose a song that you enjoy listening to. For this song you should pull up the lyrics. # I suggest using Genius since it breaks down the song's structure into its individual parts. # --------------- Section 3 --------------- # # 3.1 # Variables ...
35.634921
116
0.686414
382
2,245
4.02356
0.526178
0.013663
0.015615
0.023422
0.062459
0.062459
0.052049
0.052049
0.052049
0.052049
0
0.006838
0.218263
2,245
62
117
36.209677
0.868946
0
0
0
0
0
0.548767
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b52adfbf38f47e054e299d9deb3375b3348fca2b
2,425
py
Python
people/migrations/0002_auto_20160909_1844.py
HotStew/digihel
3a53f6542b41c64c818fa34cc0709cdbfb8055db
[ "MIT" ]
21
2016-08-22T10:15:24.000Z
2022-03-23T08:10:48.000Z
people/migrations/0002_auto_20160909_1844.py
HotStew/digihel
3a53f6542b41c64c818fa34cc0709cdbfb8055db
[ "MIT" ]
101
2016-08-08T07:52:44.000Z
2021-06-17T20:18:59.000Z
people/migrations/0002_auto_20160909_1844.py
HotStew/digihel
3a53f6542b41c64c818fa34cc0709cdbfb8055db
[ "MIT" ]
16
2016-08-02T11:45:26.000Z
2021-02-18T11:27:34.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2016-09-09 15:44 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('wagtailcore', '0029_unicode_slugfield_dj19'), ('peop...
35.144928
191
0.557938
222
2,425
5.959459
0.373874
0.030234
0.042328
0.066516
0.251701
0.251701
0.227513
0.199546
0.199546
0.119426
0
0.018924
0.30268
2,425
68
192
35.661765
0.763454
0.027629
0
0.42623
1
0
0.13758
0.011465
0
0
0
0
0
1
0
false
0
0.04918
0
0.098361
0
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
b531a29bc96c53fe25f7d52999c0dd44c175904f
1,189
py
Python
starknet_py/transaction_exceptions.py
unparalleled-js/starknet.py
e35321ddc9c6818220ba5682d4704b6264c0cfd2
[ "MIT" ]
84
2021-12-15T10:45:13.000Z
2022-03-30T11:05:24.000Z
starknet_py/transaction_exceptions.py
unparalleled-js/starknet.py
e35321ddc9c6818220ba5682d4704b6264c0cfd2
[ "MIT" ]
56
2021-12-14T17:19:40.000Z
2022-03-30T10:03:14.000Z
starknet_py/transaction_exceptions.py
software-mansion/starknet_python_sdk
62a8ffbf20af4a6225065441fbc91656739f9eb1
[ "MIT" ]
10
2022-01-02T18:36:11.000Z
2022-03-25T22:20:59.000Z
from typing import Optional class TransactionFailedError(Exception): """ Base exception for transaction failure """ def __init__( self, code: Optional[str] = None, message: Optional[str] = "Unknown starknet error", ): self.code = code self.message = message...
25.297872
80
0.624895
120
1,189
5.958333
0.325
0.067133
0.041958
0.067133
0.285315
0.285315
0.206993
0.206993
0.206993
0.206993
0
0
0.276703
1,189
46
81
25.847826
0.831395
0.116064
0
0.269231
0
0
0.320398
0
0
0
0
0
0
1
0.192308
false
0
0.038462
0.115385
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
b5353aa04fe6f9c48af67d87430f5ce44a7d0cea
499
py
Python
examples/testing/multiply.py
faisalarkan21/TensorFlow-Examples
b2ed71ca904dce8cb22a71d379872370638a9221
[ "MIT" ]
null
null
null
examples/testing/multiply.py
faisalarkan21/TensorFlow-Examples
b2ed71ca904dce8cb22a71d379872370638a9221
[ "MIT" ]
null
null
null
examples/testing/multiply.py
faisalarkan21/TensorFlow-Examples
b2ed71ca904dce8cb22a71d379872370638a9221
[ "MIT" ]
null
null
null
import tensorflow as tf const = tf.constant(2.0) # b and c should using tf.global_variables_initializer() b = tf.Variable(2.0) c = tf.Variable(1.0) d = tf.add(b, c) e = tf.add(c, const) a = tf.multiply(d, e) # for init Variable not constant init_op = tf.global_variables_initializer() # start the session with tf.Se...
19.192308
56
0.683367
87
499
3.827586
0.482759
0.012012
0.102102
0.168168
0
0
0
0
0
0
0
0.014888
0.192385
499
25
57
19.96
0.811414
0.320641
0
0
0
0
0.048485
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.083333
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
b537d4dd724ef561df652348d04eed05ef187b40
2,389
py
Python
topic_labeling/TopicModel.py
Astromis/AutomatedDescriptor
3c5cf64a937f82efd7419e57e9af1aeddbd59e0f
[ "MIT" ]
null
null
null
topic_labeling/TopicModel.py
Astromis/AutomatedDescriptor
3c5cf64a937f82efd7419e57e9af1aeddbd59e0f
[ "MIT" ]
null
null
null
topic_labeling/TopicModel.py
Astromis/AutomatedDescriptor
3c5cf64a937f82efd7419e57e9af1aeddbd59e0f
[ "MIT" ]
null
null
null
from sklearn.decomposition import NMF, LatentDirichletAllocation, TruncatedSVD from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer from chowmein.data import load_line_corpus class TopicModelBase: def __init__(self,): # topic_words: list of topics that is represented as vector of ...
40.491525
114
0.650063
292
2,389
5.030822
0.332192
0.061266
0.073519
0.068074
0.302927
0.271613
0.271613
0.204221
0.204221
0.204221
0
0.015526
0.27208
2,389
58
115
41.189655
0.829212
0.133529
0
0.25641
0
0
0.008721
0
0
0
0
0
0
1
0.230769
false
0.025641
0.076923
0
0.410256
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
1
0
0
0
0
0
0
0
1
b53b07b5f6c49c8dad232fab9dd320ccc157631c
448
py
Python
bookStore/bookDetails/migrations/0007_auto_20190412_0214.py
afern247/BookStore-Web
bb914f9344ba7a92252973633da99a6b09054217
[ "MIT" ]
null
null
null
bookStore/bookDetails/migrations/0007_auto_20190412_0214.py
afern247/BookStore-Web
bb914f9344ba7a92252973633da99a6b09054217
[ "MIT" ]
null
null
null
bookStore/bookDetails/migrations/0007_auto_20190412_0214.py
afern247/BookStore-Web
bb914f9344ba7a92252973633da99a6b09054217
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-04-12 06:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bookDetails', '0006_auto_20190412_0143'), ] operations = [ migrations.AlterField( model_name='book', name='avg_ratin...
23.578947
106
0.625
53
448
5.150943
0.811321
0
0
0
0
0
0
0
0
0
0
0.105105
0.256696
448
18
107
24.888889
0.714715
0.100446
0
0
1
0
0.119701
0.057357
0
0
0
0
0
1
0
false
0
0.083333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b53c64f27fcd3717b34b56bbd5ec6c51a994d485
516
py
Python
tests/cache_file_test.py
allenai/cached_path
f89e348e76913183d2bf90cc70db8ca87f4227e2
[ "Apache-2.0" ]
11
2021-09-10T19:25:40.000Z
2022-01-13T07:44:59.000Z
tests/cache_file_test.py
allenai/cached_path
f89e348e76913183d2bf90cc70db8ca87f4227e2
[ "Apache-2.0" ]
31
2021-09-09T17:05:56.000Z
2022-03-25T16:10:15.000Z
tests/cache_file_test.py
allenai/cached_path
f89e348e76913183d2bf90cc70db8ca87f4227e2
[ "Apache-2.0" ]
2
2021-09-10T19:22:25.000Z
2021-09-15T02:28:04.000Z
import os import pytest from cached_path.cache_file import CacheFile from cached_path.testing import BaseTestClass class TestCacheFile(BaseTestClass): def test_temp_file_removed_on_error(self): cache_filename = self.TEST_DIR / "cache_file" with pytest.raises(IOError, match="I made this up"): ...
30.352941
60
0.715116
70
516
5.085714
0.528571
0.109551
0.078652
0.061798
0.117978
0
0
0
0
0
0
0
0.213178
516
16
61
32.25
0.876847
0
0
0
0
0
0.073643
0
0
0
0
0
0.166667
1
0.083333
false
0
0.333333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b56125606159c9d6893e8722b81a2b5b3cac4b6b
802
py
Python
pd_utils/corr.py
nickderobertis/pd-utils
cb3c96de212830c6b837aa29b50ab1a348abfb9a
[ "MIT" ]
null
null
null
pd_utils/corr.py
nickderobertis/pd-utils
cb3c96de212830c6b837aa29b50ab1a348abfb9a
[ "MIT" ]
23
2020-01-25T21:07:48.000Z
2021-12-20T00:10:14.000Z
pd_utils/corr.py
nickderobertis/pd-utils
cb3c96de212830c6b837aa29b50ab1a348abfb9a
[ "MIT" ]
1
2021-08-09T11:11:49.000Z
2021-08-09T11:11:49.000Z
from typing import Sequence, Optional import pandas as pd import numpy as np def formatted_corr_df(df: pd.DataFrame, cols: Optional[Sequence[str]] = None) -> pd.DataFrame: """ Calculates correlations on a DataFrame and displays only the lower triangular of the resulting correlation DataFrame. :param...
28.642857
94
0.697007
120
802
4.516667
0.458333
0.055351
0.094096
0.070111
0
0
0
0
0
0
0
0.003125
0.201995
802
27
95
29.703704
0.84375
0.260599
0
0
0
0
0.012478
0
0
0
0
0
0
1
0.153846
false
0
0.230769
0.076923
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
b56e3a2b45f9140eb1584cdf9a01df6e533a501e
20,398
py
Python
packager.py
liip/packager
b6886a9c94ea79ad147704b952e5192a0179de0d
[ "Apache-2.0" ]
12
2015-12-05T23:21:28.000Z
2021-11-08T09:39:50.000Z
packager.py
liip/packager
b6886a9c94ea79ad147704b952e5192a0179de0d
[ "Apache-2.0" ]
1
2018-02-01T12:32:23.000Z
2018-02-01T12:32:23.000Z
packager.py
liip/packager
b6886a9c94ea79ad147704b952e5192a0179de0d
[ "Apache-2.0" ]
5
2015-06-13T05:24:02.000Z
2018-10-19T18:46:06.000Z
#!/usr/bin/env python import sys, tarfile, getopt, urllib, ConfigParser, os, os.path import re, itertools # Check python version as script doesn't run on 3.x if sys.version_info >= (3, 0): sys.stdout.write("Sorry, requires Python 2.x, not Python 3.x. You can try:\n") sys.stdout.write("$ sudo /usr/bin/python2.7...
36.295374
120
0.533386
2,229
20,398
4.799013
0.196501
0.011218
0.004674
0.008881
0.179303
0.134711
0.109657
0.092736
0.092736
0.07217
0
0.009055
0.355721
20,398
561
121
36.360071
0.8049
0.047211
0
0.298507
0
0.004975
0.115882
0.009785
0
0
0
0
0
0
null
null
0.012438
0.004975
null
null
0.074627
0
0
0
null
0
0
0
0
0
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
b57646686974929d9ed19f0b059f2efc7d21557c
1,441
py
Python
Chapter02/computation_graph.py
PacktPublishing/Caffe2-Quick-Start-Guide
cdccf0626cf3cce302094491b4280283d031db33
[ "MIT" ]
8
2019-06-22T01:04:58.000Z
2021-10-01T23:23:50.000Z
Chapter02/computation_graph.py
PacktPublishing/Caffe2-Quick-Start-Guide
cdccf0626cf3cce302094491b4280283d031db33
[ "MIT" ]
null
null
null
Chapter02/computation_graph.py
PacktPublishing/Caffe2-Quick-Start-Guide
cdccf0626cf3cce302094491b4280283d031db33
[ "MIT" ]
5
2019-06-21T06:57:26.000Z
2020-09-16T04:41:59.000Z
#!/usr/bin/env python2 """Create a network that perfoms some mathematical operations. Run inference on this network.""" from caffe2.python import workspace, model_helper import numpy as np # Initialize Caffe2 workspace.GlobalInit(["caffe2",]) # Initialize a model with the name "Math model" model = model_helper.Mode...
30.020833
82
0.716863
243
1,441
4.242798
0.341564
0.019399
0.019399
0.052376
0.255092
0.109602
0.109602
0.075655
0
0
0
0.025578
0.158917
1,441
47
83
30.659574
0.825083
0.528105
0
0
0
0
0.056338
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.1875
0
0
0
null
0
0
0
0
0
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
b5774d7d4193733fb5836cfd12b048820295202e
511
py
Python
apis_core/apis_vocabularies/migrations/0002_texttype_lang.py
acdh-oeaw/apis-core
f7ece05eec46c820321fd28d3e947653dcb98ae7
[ "MIT" ]
11
2018-07-11T18:11:40.000Z
2022-03-25T11:07:12.000Z
apis_core/apis_vocabularies/migrations/0002_texttype_lang.py
acdh-oeaw/apis-core
f7ece05eec46c820321fd28d3e947653dcb98ae7
[ "MIT" ]
309
2018-06-11T08:38:50.000Z
2022-03-31T13:45:22.000Z
apis_core/apis_vocabularies/migrations/0002_texttype_lang.py
acdh-oeaw/apis-core
f7ece05eec46c820321fd28d3e947653dcb98ae7
[ "MIT" ]
5
2017-08-21T10:37:07.000Z
2021-09-27T19:08:47.000Z
# Generated by Django 2.2.13 on 2020-07-22 12:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('apis_vocabularies', '0001_initial'), ] operations = [ migrations.AddField( model_name='texttype', name='lang', ...
26.894737
177
0.626223
65
511
4.830769
0.784615
0
0
0
0
0
0
0
0
0
0
0.067532
0.246575
511
18
178
28.388889
0.748052
0.09002
0
0
1
0
0.222462
0
0
0
0
0
0
1
0
false
0
0.083333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b57aa8e76db96ed58eb6bada4271380c15ab922b
801
py
Python
resource/data/x.py
stdex/maltparser_revolution
be54e164c81a8f03d20de052a09b9c0a6b29a28d
[ "BSD-3-Clause" ]
null
null
null
resource/data/x.py
stdex/maltparser_revolution
be54e164c81a8f03d20de052a09b9c0a6b29a28d
[ "BSD-3-Clause" ]
null
null
null
resource/data/x.py
stdex/maltparser_revolution
be54e164c81a8f03d20de052a09b9c0a6b29a28d
[ "BSD-3-Clause" ]
null
null
null
import os import sys import numpy as np from sklearn import linear_model from sklearn.metrics import classification_report from sklearn.metrics import confusion_matrix from scipy.sparse import csr_matrix import csv def ReadCsv(fileName, mode): in_file = open(fileName) reader = csv.reader(in_file, delimiter='\t...
23.558824
73
0.650437
110
801
4.645455
0.518182
0.064579
0.07045
0.093933
0.109589
0.109589
0.109589
0
0
0
0
0.004847
0.227216
801
33
74
24.272727
0.820679
0.066167
0
0.083333
0
0
0.106469
0.076819
0
0
0
0
0
1
0.041667
false
0
0.333333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b57bc27152cba9aeb5c74b01b68c68b9855eb45b
4,161
py
Python
scripts/visualize/aggregate.py
gabrielhuang/prototypical-networks
e363420b627c4a558eccde6b72e179b632d183c5
[ "MIT" ]
26
2019-02-21T17:01:19.000Z
2021-12-12T08:26:38.000Z
scripts/visualize/aggregate.py
gabrielhuang/centroid-networks
e363420b627c4a558eccde6b72e179b632d183c5
[ "MIT" ]
null
null
null
scripts/visualize/aggregate.py
gabrielhuang/centroid-networks
e363420b627c4a558eccde6b72e179b632d183c5
[ "MIT" ]
null
null
null
import os import numpy as np import json import scipy.ndimage.filters import string valid_chars = "-_.() %s%s" % (string.ascii_letters, string.digits) import argparse parser = argparse.ArgumentParser('') parser.add_argument('--folder', default='../train/few_shot/', help='folder with all the runs') parser.add_argument...
30.595588
142
0.660178
537
4,161
4.975791
0.284916
0.023578
0.023578
0.033683
0.226422
0.193488
0.179266
0.158683
0.145958
0.126497
0
0.007015
0.177842
4,161
135
143
30.822222
0.774043
0.096611
0
0.096774
0
0
0.264423
0.124199
0
0
0
0
0
0
null
null
0
0.086022
null
null
0.11828
0
0
0
null
0
0
0
0
0
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
b57eba1db900447eb10368b41bf7ebbaf3827d8b
683
py
Python
src/password_generator.py
Funnear/neat_bruteforce
24fd818cfee2fdb36588afa99526d132151fb2ba
[ "WTFPL" ]
null
null
null
src/password_generator.py
Funnear/neat_bruteforce
24fd818cfee2fdb36588afa99526d132151fb2ba
[ "WTFPL" ]
null
null
null
src/password_generator.py
Funnear/neat_bruteforce
24fd818cfee2fdb36588afa99526d132151fb2ba
[ "WTFPL" ]
null
null
null
import string from src import config def password_generator(): alphabet = string.digits alphabet += string.ascii_lowercase base = len(alphabet) shift = 0 length = int(config.get('minimal_password_length')) while True: password = '' temp = shift while temp > 0: ...
20.69697
55
0.528551
70
683
5.1
0.414286
0.117647
0
0
0
0
0
0
0
0
0
0.016706
0.38653
683
32
56
21.34375
0.835322
0
0
0.083333
0
0
0.033675
0.033675
0
0
0
0
0
1
0.041667
false
0.333333
0.083333
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b57f38edb4d4f692fe05e6d850f14f28c3d704da
581
py
Python
abstract_models/bisim/pick_puck.py
ondrejba/discrete_abstractions
444def53ae2ca6c8a5b5b453448f7c4bbaba07e1
[ "MIT" ]
6
2020-09-14T22:48:00.000Z
2021-12-11T04:14:07.000Z
abstract_models/bisim/pick_puck.py
ondrejba/discrete_abstractions
444def53ae2ca6c8a5b5b453448f7c4bbaba07e1
[ "MIT" ]
null
null
null
abstract_models/bisim/pick_puck.py
ondrejba/discrete_abstractions
444def53ae2ca6c8a5b5b453448f7c4bbaba07e1
[ "MIT" ]
null
null
null
import numpy as np class BisimPickPuckModel: @classmethod def get_state_block(cls, hand, layers, action_grid): num_positions = action_grid.shape[0] * action_grid.shape[1] action_grid = np.reshape(action_grid, (-1, 2)) if hand is not None: return num_positions e...
21.518519
73
0.598967
81
581
4.123457
0.469136
0.239521
0.08982
0.113772
0
0
0
0
0
0
0
0.024213
0.289157
581
26
74
22.346154
0.784504
0
0
0
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.066667
0.066667
0.466667
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
0
0
0
0
0
1
b57f691098c1a40d64803fbc3ba1740e10d63793
607
py
Python
questions/models/text_answer.py
Ivin0022/django-questions
ac241b23108a5a0083e206458d586969a9ce6ef0
[ "MIT" ]
null
null
null
questions/models/text_answer.py
Ivin0022/django-questions
ac241b23108a5a0083e206458d586969a9ce6ef0
[ "MIT" ]
9
2020-06-06T02:19:16.000Z
2022-03-12T00:39:33.000Z
questions/models/text_answer.py
Ivin0022/django-questions
ac241b23108a5a0083e206458d586969a9ce6ef0
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth import get_user_model class TextAnswer(models.Model): """Model definition for TextAnswer.""" user = models.ForeignKey(get_user_model(), on_delete=models.CASCADE) question = models.ForeignKey('Question', on_delete=models.CASCADE) answer = models.Ch...
30.35
72
0.693575
72
607
5.652778
0.527778
0.04914
0.058968
0.103194
0
0
0
0
0
0
0
0.006122
0.192751
607
20
73
30.35
0.82449
0.16804
0
0
0
0
0.102041
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
b58813fbc47196250515cbd89a14b7492a25ccb8
660
py
Python
tests/plantcv/transform/test_nonuniform_illumination.py
ygarrot/plantcv
e934a891e0d1bf8987ca6a9f982a4ac1f420bfe7
[ "MIT" ]
1
2022-02-03T12:08:59.000Z
2022-02-03T12:08:59.000Z
tests/plantcv/transform/test_nonuniform_illumination.py
HUISTENCOFFEE/plantcv
f38f7de53663522eb770870b70823d5fc46d0c0f
[ "MIT" ]
null
null
null
tests/plantcv/transform/test_nonuniform_illumination.py
HUISTENCOFFEE/plantcv
f38f7de53663522eb770870b70823d5fc46d0c0f
[ "MIT" ]
null
null
null
import cv2 import numpy as np from plantcv.plantcv.transform import nonuniform_illumination def test_nonuniform_illumination_rgb(transform_test_data): """Test for PlantCV.""" # Load rgb image rgb_img = cv2.imread(transform_test_data.small_rgb_img) corrected = nonuniform_illumination(img=rgb_img, ksize...
33
65
0.766667
92
660
5.206522
0.304348
0.229645
0.141962
0.121086
0.321503
0.321503
0.321503
0.179541
0.179541
0
0
0.014159
0.143939
660
19
66
34.736842
0.833628
0.1
0
0
0
0
0
0
0
0
0
0
0.181818
1
0.181818
false
0
0.272727
0
0.454545
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
0
0
0
0
0
1
b58b7082546627bfca6ab98d6f794a071ec56512
815
py
Python
frddy/core.py
aaront/frddy
fa6ccb9857777de6d4bbff59511810507f7d30c1
[ "Apache-2.0" ]
null
null
null
frddy/core.py
aaront/frddy
fa6ccb9857777de6d4bbff59511810507f7d30c1
[ "Apache-2.0" ]
null
null
null
frddy/core.py
aaront/frddy
fa6ccb9857777de6d4bbff59511810507f7d30c1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ frddy.core ~~~~~~~~~~ Handles the core functionality and classes """ import enum import json import requests class Type(enum.Enum): """The type of JSON result""" UNKNOWN = -1 STRING_LIKE = 1 DICT_LIKE = 2 class Results: def __init__(self, raw_json): self.ra...
18.522727
48
0.608589
112
815
4.294643
0.419643
0.072765
0.091476
0.079002
0.095634
0
0
0
0
0
0
0.008319
0.262577
815
43
49
18.953488
0.792013
0.136196
0
0.08
0
0
0.008683
0
0
0
0
0
0
1
0.16
false
0
0.12
0
0.68
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
b58f65c3b55445eeb3e976839a9285df1cb0b02c
1,697
py
Python
pylith/meshio/SingleOutput.py
joegeisz/pylith
f74060b7b19d7e90abf8597bbe9250c96593c0ad
[ "MIT" ]
1
2021-01-20T17:18:28.000Z
2021-01-20T17:18:28.000Z
pylith/meshio/SingleOutput.py
joegeisz/pylith
f74060b7b19d7e90abf8597bbe9250c96593c0ad
[ "MIT" ]
null
null
null
pylith/meshio/SingleOutput.py
joegeisz/pylith
f74060b7b19d7e90abf8597bbe9250c96593c0ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # ---------------------------------------------------------------------- # # Brad T. Aagaard, U.S. Geological Survey # Charles A. Williams, GNS Science # Matthew G. Knepley, University of Chicago # # This code was developed as part of the Computational Infrastructure # for Geodynamics (http://ge...
24.955882
73
0.574543
156
1,697
6.185897
0.551282
0.067358
0.039378
0.045596
0.211399
0.211399
0.13886
0.13886
0.13886
0
0
0.005818
0.189747
1,697
67
74
25.328358
0.696
0.605186
0
0
0
0
0.096055
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
b59c2c938d9eed46f571c6b48f911cedf46eacd3
403
py
Python
scripts/security_scan.py
GaborMegyaszai/f5gcdemo
9fca446e51fd0f4efcbe48459d53f2dbf4bd68d9
[ "Apache-2.0" ]
null
null
null
scripts/security_scan.py
GaborMegyaszai/f5gcdemo
9fca446e51fd0f4efcbe48459d53f2dbf4bd68d9
[ "Apache-2.0" ]
null
null
null
scripts/security_scan.py
GaborMegyaszai/f5gcdemo
9fca446e51fd0f4efcbe48459d53f2dbf4bd68d9
[ "Apache-2.0" ]
null
null
null
from pexpect import pxssh s = pxssh.pxssh() s.force_password=True if not s.login ('95.217.155.18', 'root', 'system123!'): print ("SSH session failed on login.") else: print ("SSH session login successful") s.sendline ('cp /root/some.txt /root/some2.txt') s.prompt() # match the prompt print(...
31
77
0.650124
60
403
4.35
0.633333
0.045977
0.114943
0
0
0
0
0
0
0
0
0.04644
0.198511
403
12
78
33.583333
0.76161
0.129032
0
0
0
0
0.347701
0
0
0
0
0
0
1
0
false
0.090909
0.090909
0
0.090909
0.272727
0
0
0
null
0
0
0
0
0
0
0
0
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
b5a620ca04e67570ff9c26f2d3610a5078a2d1ca
8,541
py
Python
insta.py
jakubmatyszewski/i-reposter
6ac0caa747455d12e0086430abe36276fdb6f419
[ "MIT" ]
null
null
null
insta.py
jakubmatyszewski/i-reposter
6ac0caa747455d12e0086430abe36276fdb6f419
[ "MIT" ]
null
null
null
insta.py
jakubmatyszewski/i-reposter
6ac0caa747455d12e0086430abe36276fdb6f419
[ "MIT" ]
null
null
null
import os import json import datetime import re from time import sleep from math import ceil from selenium import webdriver from selenium.webdriver.chrome.options import Options class Instagram: _driver = None _status_driver = False _status_sign_in = False posts = {} mobile_emulation = { ...
37.460526
106
0.538227
945
8,541
4.653968
0.268783
0.059118
0.05025
0.071623
0.268304
0.263074
0.22533
0.13256
0.099136
0.079127
0
0.012401
0.348554
8,541
227
107
37.625551
0.778037
0.045311
0
0.34375
0
0.005208
0.172823
0.031254
0
0
0
0
0.005208
1
0.041667
false
0.057292
0.041667
0
0.203125
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
b5a77be05bd2b86c59938ef6a076fc1b834cafae
3,296
py
Python
{{cookiecutter.project_slug}}/tests/unit/{{cookiecutter.project_slug}}/utils/test_sentry.py
Maximilien-R/cookiecutter-tartiflette-aiohttp
66e7e0897b315df6a1908c6c31ec58b74e0b3a6f
[ "MIT" ]
3
2020-06-01T14:16:19.000Z
2021-11-07T19:54:08.000Z
{{cookiecutter.project_slug}}/tests/unit/{{cookiecutter.project_slug}}/utils/test_sentry.py
Maximilien-R/cookiecutter-tartiflette-aiohttp
66e7e0897b315df6a1908c6c31ec58b74e0b3a6f
[ "MIT" ]
88
2019-11-15T17:35:54.000Z
2021-08-02T04:50:51.000Z
{{cookiecutter.project_slug}}/tests/unit/{{cookiecutter.project_slug}}/utils/test_sentry.py
Maximilien-R/cookiecutter-tartiflette-aiohttp
66e7e0897b315df6a1908c6c31ec58b74e0b3a6f
[ "MIT" ]
2
2020-05-04T08:35:34.000Z
2020-10-22T17:47:26.000Z
from unittest.mock import Mock, patch import pytest from tartiflette import TartifletteError from {{cookiecutter.project_slug}}.utils import configure_sentry, sentry, sentry_error_coercer def test_configure_sentry(): config_mock = {"dsn": "dsn"} aiohttp_integration_mock = Mock() logging_integration_moc...
30.518519
95
0.544903
274
3,296
6.240876
0.208029
0.084211
0.080702
0.098246
0.51462
0.443275
0.394737
0.369591
0.225731
0.078363
0
0
0.361954
3,296
107
96
30.803738
0.813124
0
0
0.418367
0
0
0.160194
0.099211
0
0
0
0
0.061224
0
null
null
0
0.040816
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
b5b5e5dfd7ed912801c5c53ca0b44b403dbc39b0
663
py
Python
src/Services/TodoService/save_todos.py
xperemiquel/python-app-exercise
4b35139dac029bbf39ea17cd5f33785f014c9ab7
[ "MIT" ]
null
null
null
src/Services/TodoService/save_todos.py
xperemiquel/python-app-exercise
4b35139dac029bbf39ea17cd5f33785f014c9ab7
[ "MIT" ]
null
null
null
src/Services/TodoService/save_todos.py
xperemiquel/python-app-exercise
4b35139dac029bbf39ea17cd5f33785f014c9ab7
[ "MIT" ]
null
null
null
import csv from datetime import date def save_todos(response, path): for todo in response: save_todo_into_csv(todo, path) def save_todo_into_csv(todo, path): filename = generate_filename(todo, path) try: with open(filename, 'w') as csvfile: writer = csv.DictWriter(csvfile, fie...
24.555556
103
0.656109
94
663
4.478723
0.606383
0.07601
0.057007
0.071259
0.109264
0.109264
0
0
0
0
0
0
0.232278
663
26
104
25.5
0.827112
0.102564
0
0
1
0
0.086587
0.056027
0
0
0
0
0
1
0.176471
false
0
0.117647
0
0.352941
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b5b6393394b4af1ae38549de48a2891fab89471c
527
py
Python
src/clustering/louvain.py
seasonsOfTheSun/UMAPanalysis
d7f413af59e01aa5e9b1aa909d1fd5858019aa23
[ "MIT" ]
null
null
null
src/clustering/louvain.py
seasonsOfTheSun/UMAPanalysis
d7f413af59e01aa5e9b1aa909d1fd5858019aa23
[ "MIT" ]
null
null
null
src/clustering/louvain.py
seasonsOfTheSun/UMAPanalysis
d7f413af59e01aa5e9b1aa909d1fd5858019aa23
[ "MIT" ]
1
2021-02-09T12:39:42.000Z
2021-02-09T12:39:42.000Z
import networkx as nx import pandas import community import sys import re from UMAP_analysis.core import make_undirected network_filename = sys.argv[1] m = re.match("networks/(?P<dataset>.*?)/noisy/(?P<name>.*?).gml", network_filename) dataset = m.groupdict()['dataset'] name = m.groupdict()['name'] G_dir = nx.read_...
23.954545
83
0.753321
78
527
4.935897
0.564103
0.116883
0.093506
0
0
0
0
0
0
0
0
0.002101
0.096774
527
21
84
25.095238
0.806723
0
0
0
0
0
0.212524
0.191651
0
0
0
0
0
1
0
false
0
0.4
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
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a90ce1510663182f23b964fecfb1cc6144b7b76b
1,255
py
Python
deepscoop/autograd/core.py
ScoopML/DeepScoop
6a1373cb06184c1e534f35bab41157b3b703bdc8
[ "Apache-2.0" ]
2
2020-12-25T08:00:06.000Z
2021-01-14T03:00:16.000Z
deepscoop/autograd/core.py
ScoopML/DeepScoop
6a1373cb06184c1e534f35bab41157b3b703bdc8
[ "Apache-2.0" ]
null
null
null
deepscoop/autograd/core.py
ScoopML/DeepScoop
6a1373cb06184c1e534f35bab41157b3b703bdc8
[ "Apache-2.0" ]
null
null
null
from utils import topological_sort import inspect import operator import numpy as np def subval(x, i, v): x_ = list(x) x_[i] = v return tuple(x_) def grad(fun, argnum=0): def gradfun(*args, **kwargs): unary_fun = lambda x: fun(*subval(args, argnum, x), **kwargs) vjp, ans = make_grad(un...
27.888889
72
0.635857
194
1,255
3.92268
0.324742
0.055191
0.007884
0.04205
0.044678
0
0
0
0
0
0
0.001065
0.251793
1,255
44
73
28.522727
0.809372
0
0
0
0
0
0
0
0
0
0
0
0
1
0.210526
false
0
0.105263
0.026316
0.526316
0
0
0
0
null
0
0
0
0
0
0
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
a90ce17afbd55d25d28fa8d0d93e4cab07cbd650
371
py
Python
examples/misp_push.py
Felalex57/PyLookyloo
76250fb931c3dd9e2793a758cbceb1dce77b409c
[ "BSD-3-Clause" ]
3
2020-09-14T05:20:19.000Z
2021-04-07T17:15:55.000Z
examples/misp_push.py
Felalex57/PyLookyloo
76250fb931c3dd9e2793a758cbceb1dce77b409c
[ "BSD-3-Clause" ]
7
2020-11-24T16:17:52.000Z
2022-01-22T00:34:57.000Z
examples/misp_push.py
Felalex57/PyLookyloo
76250fb931c3dd9e2793a758cbceb1dce77b409c
[ "BSD-3-Clause" ]
2
2020-11-24T14:36:55.000Z
2021-04-12T13:29:04.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from pylookyloo import Lookyloo import json # lookyloo_url = "https://lookyloo.circl.lu/" lookyloo_url = "http://0.0.0.0:5100" lookyloo = Lookyloo(lookyloo_url) lookyloo.init_apikey(username='admin', password='admin') event = lookyloo.misp_push('6ae2afdc-4d90-41ce-9cae-...
24.733333
66
0.735849
53
371
5.056604
0.679245
0.123134
0.022388
0
0
0
0
0
0
0
0
0.080119
0.091644
371
14
67
26.5
0.715134
0.234501
0
0
0
0
0.231317
0.128114
0
0
0
0
0
1
0
false
0.142857
0.285714
0
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a90ea4dffec3177c36dc18c6f04221fe3af6ae48
999
py
Python
cenzura/bot/lib/embed.py
Smugaski/cenzura
803b8961f7cc2178bb623d68ee803862b45a7b8a
[ "MIT" ]
7
2020-08-29T17:11:55.000Z
2021-09-22T00:33:19.000Z
cenzura/bot/lib/embed.py
Smugaski/cenzura
803b8961f7cc2178bb623d68ee803862b45a7b8a
[ "MIT" ]
1
2021-08-30T18:47:10.000Z
2021-08-30T18:47:10.000Z
cenzura/bot/lib/embed.py
Smugaski/cenzura
803b8961f7cc2178bb623d68ee803862b45a7b8a
[ "MIT" ]
9
2020-08-31T19:52:34.000Z
2021-08-28T01:46:24.000Z
class Embed: def __init__(self, **kwargs): allowed_args = ("title", "description", "color") for key, value in kwargs.items(): if key in allowed_args: setattr(self, key, value) def set_image(self, *, url: str): self.image = {"url": url} def set_thumbnail...
28.542857
72
0.518519
119
999
4.193277
0.319328
0.112224
0.054108
0.056112
0.152305
0.084168
0
0
0
0
0
0
0.338338
999
35
73
28.542857
0.754917
0
0
0.076923
0
0
0.072
0
0
0
0
0
0
1
0.230769
false
0
0
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
a930c6a8631d0516efaf030ca293cf0846ab5af6
1,309
py
Python
run.py
nathanpainchaud/deep-learning-template
32c48bb367cf12957e332afdec0869365294f402
[ "MIT" ]
1
2020-12-27T20:13:37.000Z
2020-12-27T20:13:37.000Z
run.py
nathanpainchaud/deep-learning-template
32c48bb367cf12957e332afdec0869365294f402
[ "MIT" ]
null
null
null
run.py
nathanpainchaud/deep-learning-template
32c48bb367cf12957e332afdec0869365294f402
[ "MIT" ]
null
null
null
import logging import os import hydra import pytorch_lightning as pl from hydra.utils import instantiate from omegaconf import DictConfig, OmegaConf from deep_learning_template import BaseDataModule, BaseTask from deep_learning_template.core import initialization as init from deep_learning_template.utils.config impor...
29.75
99
0.745607
172
1,309
5.482558
0.453488
0.042418
0.050901
0.076352
0.065748
0.065748
0
0
0
0
0
0.000908
0.1589
1,309
43
100
30.44186
0.855586
0.121467
0
0
0
0
0.11229
0.022989
0
0
0
0
0
1
0.037037
false
0
0.333333
0
0.37037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a932e1d6bd7051976056ef2aa572a6514a0fe52f
1,290
py
Python
owasp-zap/zapGenAPI.py
9447-team-4/Pipeline-dynamic-fuzzer
da6dd1c4af317c73c92d33678b3129a80e818cad
[ "MIT" ]
1
2021-12-24T22:07:57.000Z
2021-12-24T22:07:57.000Z
owasp-zap/zapGenAPI.py
9447-team-4/Soteria-DevSecOps-Pipeline
da6dd1c4af317c73c92d33678b3129a80e818cad
[ "MIT" ]
null
null
null
owasp-zap/zapGenAPI.py
9447-team-4/Soteria-DevSecOps-Pipeline
da6dd1c4af317c73c92d33678b3129a80e818cad
[ "MIT" ]
null
null
null
import yaml #pip install pyyaml import json import argparse parser = argparse.ArgumentParser(description='Generates a new openAPI json file with server url specification given an existing openAPI json or yaml file') parser.add_argument('-f','--file', type=str, metavar='', required=True, help='openAPI json or yaml file...
39.090909
155
0.648062
184
1,290
4.358696
0.347826
0.104738
0.054863
0.078554
0.491272
0.491272
0.366584
0.366584
0.27182
0.27182
0
0.001929
0.196124
1,290
33
156
39.090909
0.771456
0.013953
0
0.275862
1
0
0.206761
0
0
0
0
0
0
1
0.034483
false
0
0.103448
0
0.172414
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a93cac63f369119b9d28c0841ba756fd5b4af5cb
5,736
py
Python
static/visualization_scripts/maestro_label_generic_numbers.py
pszgaspar/protwis
4989a67175ef3c95047d795c843cf6b9cf4141fa
[ "Apache-2.0" ]
21
2016-01-20T09:33:14.000Z
2021-12-20T19:19:45.000Z
static/visualization_scripts/maestro_label_generic_numbers.py
pszgaspar/protwis
4989a67175ef3c95047d795c843cf6b9cf4141fa
[ "Apache-2.0" ]
75
2016-02-26T16:29:58.000Z
2022-03-21T12:35:13.000Z
static/visualization_scripts/maestro_label_generic_numbers.py
pszgaspar/protwis
4989a67175ef3c95047d795c843cf6b9cf4141fa
[ "Apache-2.0" ]
77
2016-01-22T08:44:26.000Z
2022-02-01T15:54:56.000Z
#Name: Labeling generic residue numbers assigned via GPCRdb Tools... #Command: pythonrun maestro_label_generic_numbers.panel __doc__ = """ $Revision: 0.1 $ $Date: 2015/02/04 $ $Author: Stefan Mordalski $ """ from PyQt4 import QtCore, QtGui import schrodinger.ui.qt.appframework as appframework from schrodinger.maestr...
37.986755
170
0.667364
679
5,736
5.44919
0.235641
0.045946
0.03027
0.02027
0.373243
0.200541
0.200541
0.182162
0.174324
0.15027
0
0.01418
0.225418
5,736
150
171
38.24
0.818591
0.021095
0
0.132075
0
0.018868
0.166043
0.012293
0
0
0
0
0
0
null
null
0
0.037736
null
null
0.009434
0
0
0
null
0
0
0
0
0
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
a93f6decb1d69c693c140f2129f3cd7e9ea8f5ea
9,135
py
Python
client.py
Wh1t3Fox/CS547-Project
55c60704a4cdced5131bec8784cd4712fd925676
[ "MIT" ]
null
null
null
client.py
Wh1t3Fox/CS547-Project
55c60704a4cdced5131bec8784cd4712fd925676
[ "MIT" ]
null
null
null
client.py
Wh1t3Fox/CS547-Project
55c60704a4cdced5131bec8784cd4712fd925676
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Client scrript # PIR - Goldbergs Protocol #CS 54701 Project- Craig West & Michael Kouremetis #Goldbergs Protocol #Client creates shamir shares, crpto primatives, etc... given parameters passed #sends to shares to data bases with query emedded # gets responses from databases and constructs qu...
50.192308
208
0.666667
1,414
9,135
4.204385
0.234088
0.065601
0.054331
0.071489
0.29487
0.266106
0.23381
0.214466
0.175442
0.159294
0
0.018201
0.163985
9,135
181
209
50.469613
0.760246
0.190476
0
0.079646
0
0.088496
0.319016
0.012369
0
0
0
0
0
0
null
null
0
0.097345
null
null
0.19469
0
0
0
null
0
0
0
0
0
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
a941ad26bb75df3fda21a3cdfe8e77d0dd2cf3d4
4,966
py
Python
Sketches/MPS/Systems/MulticastTunnel/tunnelcomponents.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MPS/Systems/MulticastTunnel/tunnelcomponents.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MPS/Systems/MulticastTunnel/tunnelcomponents.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
#!/usr/bin/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, Ve...
34.013699
128
0.690294
614
4,966
5.473941
0.403909
0.004165
0.026183
0.029753
0.122285
0.114549
0.070812
0.046415
0.033918
0.033918
0
0.018454
0.192509
4,966
145
129
34.248276
0.819701
0
0
0.295082
0
0
0.050202
0
0
0
0
0
0
0
null
null
0.032787
0.04918
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
a94242aef7b2de2263225baac50371a4953edf9b
425
py
Python
examples/enjoy_sphere_baselines.py
mcaniot/modular_sphere
dcced596fa79f924b361c5f8384e612778e9b360
[ "Apache-2.0" ]
1
2021-03-24T14:56:58.000Z
2021-03-24T14:56:58.000Z
examples/enjoy_sphere_baselines.py
mcaniot/modular_sphere
dcced596fa79f924b361c5f8384e612778e9b360
[ "Apache-2.0" ]
null
null
null
examples/enjoy_sphere_baselines.py
mcaniot/modular_sphere
dcced596fa79f924b361c5f8384e612778e9b360
[ "Apache-2.0" ]
null
null
null
from baselines_tools import * import os def main(): path = None if os.path.isdir(PATH_MODEL_1): path = PATH_MODEL_1 elif os.path.isdir(PATH_MODEL_2): path = PATH_MODEL_2 else: print("Can't find path to model: %s or %s" %(PATH_MODEL_1, PATH_MODEL_2)) return ...
25
63
0.585882
62
425
3.645161
0.5
0.238938
0.132743
0.132743
0.176991
0
0
0
0
0
0
0.023026
0.284706
425
17
64
25
0.720395
0
0
0
0
0
0.112676
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.266667
0.066667
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
0
0
0
0
0
1
a945e46f94eaca5e12237232c6139106a6416a50
1,174
py
Python
Trees and Graphs/subtree_of_another_tree.py
fredricksimi/leetcode
f6352c26914ca77f915f5994746ecf0b36efc89b
[ "MIT" ]
null
null
null
Trees and Graphs/subtree_of_another_tree.py
fredricksimi/leetcode
f6352c26914ca77f915f5994746ecf0b36efc89b
[ "MIT" ]
null
null
null
Trees and Graphs/subtree_of_another_tree.py
fredricksimi/leetcode
f6352c26914ca77f915f5994746ecf0b36efc89b
[ "MIT" ]
1
2021-12-05T12:27:46.000Z
2021-12-05T12:27:46.000Z
""" Subtree of Another Tree: Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a tree consists of a node in s and all of this node's descendants. The tree s could also be considered as a subtree of itself. https://leetco...
30.894737
130
0.643952
182
1,174
4.131868
0.346154
0.05984
0.039894
0.053191
0
0
0
0
0
0
0
0.001156
0.263203
1,174
37
131
31.72973
0.868208
0.333901
0
0.2
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0.05
0.65
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
a94a60d6e42f9f4ccb94fdcc3a05857ebdc62085
1,017
py
Python
MPM/Matrix_Pencil_Method.py
dinrker/Ray_Learning_Methods
bd7cc0e11355aaf9826c97c5d56494946a54859a
[ "MIT" ]
null
null
null
MPM/Matrix_Pencil_Method.py
dinrker/Ray_Learning_Methods
bd7cc0e11355aaf9826c97c5d56494946a54859a
[ "MIT" ]
null
null
null
MPM/Matrix_Pencil_Method.py
dinrker/Ray_Learning_Methods
bd7cc0e11355aaf9826c97c5d56494946a54859a
[ "MIT" ]
null
null
null
import numpy as np def NtoL(N): return int(np.ceil(( np.ceil(N/3.0) + np.floor(N/2.0) )/2)) ## Matrix Pencil Method def Matrix_Pencil(y,tol=1e-3,L=0): sh = y.shape N = sh[0] if sh[1]>1: print 'Error: y should be a column vector' if tol<0: print 'Error: tol should be positive' ...
22.108696
63
0.46411
195
1,017
2.410256
0.348718
0.053191
0.044681
0.042553
0.055319
0.055319
0
0
0
0
0
0.044978
0.344149
1,017
46
64
22.108696
0.65967
0.019666
0
0
0
0
0.063317
0
0
0
0
0
0
0
null
null
0
0.025641
null
null
0.051282
0
0
0
null
0
0
0
0
0
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
a95543e09179498838b358d0db8c99fb12476b51
180
py
Python
Test/6.3 udemy challenge.py
Miamiohlibs/TSscripts
9d3be8742acfd4e6ec7c7fff944c030c57aff9f7
[ "MIT" ]
null
null
null
Test/6.3 udemy challenge.py
Miamiohlibs/TSscripts
9d3be8742acfd4e6ec7c7fff944c030c57aff9f7
[ "MIT" ]
null
null
null
Test/6.3 udemy challenge.py
Miamiohlibs/TSscripts
9d3be8742acfd4e6ec7c7fff944c030c57aff9f7
[ "MIT" ]
null
null
null
name = input("what is your name? ") age = int(input("how old are you {0}? ".format(name))) if (18 <= age < 31): print("welcome to holiday") else: print("you are not 18-30")
30
54
0.605556
31
180
3.516129
0.741935
0
0
0
0
0
0
0
0
0
0
0.0625
0.2
180
6
55
30
0.694444
0
0
0
0
0
0.414365
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a9563f23620dd547f48b77c5634810b43335d2fb
990
py
Python
nodes/H.6.3c/challenge_code.py
ankit27kh/Xanadu-Quantum-Codebook
9ba7bbf86c04d53e80c9a2cf5a412f534a3d5756
[ "Apache-2.0" ]
31
2021-11-16T15:03:18.000Z
2022-03-04T14:18:25.000Z
nodes/H.6.3c/challenge_code.py
ankit27kh/Xanadu-Quantum-Codebook
9ba7bbf86c04d53e80c9a2cf5a412f534a3d5756
[ "Apache-2.0" ]
26
2021-11-16T02:20:17.000Z
2022-03-07T15:44:28.000Z
nodes/H.6.3c/challenge_code.py
ankit27kh/Xanadu-Quantum-Codebook
9ba7bbf86c04d53e80c9a2cf5a412f534a3d5756
[ "Apache-2.0" ]
17
2021-11-17T02:13:58.000Z
2022-02-20T21:42:48.000Z
"""The code template to supply to the front end. This is what the user will be asked to complete and submit for grading. Do not include any imports. This is not a REPL environment so include explicit 'print' statements for any outputs you want to be displayed back to the user. Use triple single q...
20.204082
75
0.551515
130
990
4.153846
0.6
0.044444
0.061111
0.077778
0.187037
0.187037
0.187037
0.137037
0.137037
0
0
0.005155
0.216162
990
48
76
20.625
0.690722
0.342424
0
0.566667
0
0
0.958333
0.043269
0
0
0
0
0
1
0
false
0
0
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a9695e7395406e7493e6a3703e98923537c6c28e
26,723
py
Python
mytrading/configs.py
joeledwardson/betfair-browser
b641f134e60307250a0e51bafa849422ecf5264b
[ "MIT" ]
3
2021-11-23T19:03:02.000Z
2021-11-24T08:44:23.000Z
mytrading/configs.py
joeledwardson/betfair-browser
b641f134e60307250a0e51bafa849422ecf5264b
[ "MIT" ]
2
2021-11-23T18:47:31.000Z
2021-12-08T15:36:11.000Z
mytrading/configs.py
joeledwardson/betfair-browser
b641f134e60307250a0e51bafa849422ecf5264b
[ "MIT" ]
null
null
null
from typing import List, Dict, Optional from myutils.registrar import Registrar from myutils import dictionaries import os, yaml from os import path import json from .exceptions import FeatureConfigException reg_plots = Registrar() reg_features = Registrar() KEY_SAMPLE = 'smp' KEY_AVERAGE = 'avg' KEY_TICKS = 'tck' K...
29.269441
116
0.352468
2,025
26,723
4.363457
0.134815
0.034857
0.044251
0.026143
0.623812
0.56598
0.496039
0.428701
0.405727
0.363626
0
0.010525
0.527149
26,723
912
117
29.301535
0.688192
0.035924
0
0.531175
0
0
0.210291
0.00506
0
0
0
0
0
1
0.019185
false
0
0.008393
0.004796
0.046763
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
a969f5c642f00dbee7ccad96ee61cba6a4d60233
1,938
py
Python
1SiteRanking/Data Collection/create_site_table.py
HCH2CHO/EmotionMap
bc572b4182637dcdd65e9a13c92f2fa0d9a3d680
[ "MIT" ]
3
2021-07-15T15:58:52.000Z
2021-07-16T13:22:47.000Z
1SiteRanking/Data Collection/create_site_table.py
HCH2CHO/EmotionMap
bc572b4182637dcdd65e9a13c92f2fa0d9a3d680
[ "MIT" ]
null
null
null
1SiteRanking/Data Collection/create_site_table.py
HCH2CHO/EmotionMap
bc572b4182637dcdd65e9a13c92f2fa0d9a3d680
[ "MIT" ]
4
2017-08-04T12:41:06.000Z
2019-01-31T14:55:10.000Z
# coding:utf-8 # version:python3.5.1 # author:kyh # import geodata csv files to cloud database import psycopg2 class CloudDatabase(object): # Init database and input ip # 初始化数据库并传入ip def __init__(self, database, user, password, ip="127.0.0.1", port="5432"): self.database = database self.u...
33.413793
102
0.567079
237
1,938
4.531646
0.371308
0.032588
0.037244
0.011173
0.083799
0.083799
0.083799
0.083799
0.083799
0.083799
0
0.023845
0.307534
1,938
58
103
33.413793
0.776453
0.147575
0
0.216216
0
0
0.086028
0
0
0
0
0
0
1
0.108108
false
0.081081
0.081081
0
0.216216
0
0
0
0
null
0
0
0
0
0
0
0
0
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
a96a6c5f4ad202c1773c6d2bd3f33af6aadd9317
2,882
py
Python
app/cost_assessment.py
EashanKaushik/car-damage-detecting-MaskRCNN
48c255c6c181a32fb89781f81f6081721f7fc336
[ "Apache-2.0" ]
4
2021-06-20T14:23:56.000Z
2022-01-03T07:32:04.000Z
app/cost_assessment.py
EashanKaushik/car-damage-detecting-MaskRCNN
48c255c6c181a32fb89781f81f6081721f7fc336
[ "Apache-2.0" ]
null
null
null
app/cost_assessment.py
EashanKaushik/car-damage-detecting-MaskRCNN
48c255c6c181a32fb89781f81f6081721f7fc336
[ "Apache-2.0" ]
1
2022-02-12T07:34:07.000Z
2022-02-12T07:34:07.000Z
import cv2 import numpy as np def class_name(classid): id_dict = {1:'Scratch', 2:'Dent', 3:'Shatter', 4:'Dislocation'} return id_dict[classid] def damage_cost(classid): # cost_dict = {1: [800, 1400], 2:[1200, 3000],3:19000, 4:17000} cost_dict = {1: 900, 2:1600, 3:19000, 4:17000} return...
37.921053
124
0.543373
393
2,882
3.788804
0.178117
0.104768
0.161182
0.188046
0.380121
0.380121
0.380121
0.380121
0.380121
0.380121
0
0.048841
0.296669
2,882
76
125
37.921053
0.685742
0.149549
0
0.296296
0
0
0.079814
0
0
0
0
0
0
1
0.074074
false
0
0.037037
0
0.185185
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
a97326685e517e640ba68d0113e05b1a89d5183c
962
py
Python
opencv/q8.py
wuwuwuyuanhang/python
eb5ac23cb46c4beeab1638fda963dd154b9db1b7
[ "MIT" ]
1
2021-08-02T09:22:34.000Z
2021-08-02T09:22:34.000Z
opencv/q8.py
wuwuwuyuanhang/python
eb5ac23cb46c4beeab1638fda963dd154b9db1b7
[ "MIT" ]
null
null
null
opencv/q8.py
wuwuwuyuanhang/python
eb5ac23cb46c4beeab1638fda963dd154b9db1b7
[ "MIT" ]
null
null
null
''' @Author: wuwuwu @Date: 2019-10-20 19:41:29 @LastEditors: wuwuwu @LastEditTime: 2019-10-20 19:48:45 @Description: 最大池化 ''' import cv2 as cv import numpy as np def maxPooling(img, kernel_size=3): """ 最大池化,在kernel_size*kernel_size范围内的像素最大值为该区域像素 :param img: 输入图片 :param kernel_size: 池化核大小 :return:...
24.05
98
0.600832
145
962
3.827586
0.441379
0.234234
0.079279
0.036036
0.169369
0.169369
0.169369
0.169369
0.169369
0.169369
0
0.05146
0.252599
962
40
99
24.05
0.720445
0.227651
0
0
0
0
0.039492
0
0
0
0
0
0
1
0.047619
false
0
0.095238
0
0.190476
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
0
0
0
0
0
1
a978d5c31b9f502e8b22f682ed96d9de8f535845
28,232
py
Python
fileCleaner.py
Bostjan24/fileCleaner
614cda2b262e5770e93b033baddfed5ace60ce13
[ "MIT" ]
1
2021-03-10T07:56:05.000Z
2021-03-10T07:56:05.000Z
fileCleaner.py
plankobostjan/fileCleaner
614cda2b262e5770e93b033baddfed5ace60ce13
[ "MIT" ]
8
2017-05-05T10:45:07.000Z
2017-05-19T17:53:37.000Z
fileCleaner.py
Bostjan24/fileCleaner
614cda2b262e5770e93b033baddfed5ace60ce13
[ "MIT" ]
null
null
null
import os import time import send2trash import subprocess import argparse import sys import getpass import mysql.connector class Bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\0...
40.04539
214
0.580264
3,171
28,232
5.098707
0.085777
0.044904
0.025977
0.033399
0.712024
0.628402
0.577932
0.510453
0.468642
0.444149
0
0.005116
0.300758
28,232
704
215
40.102273
0.81389
0.013956
0
0.610084
0
0.008403
0.20609
0.004925
0
0
0
0
0
0
null
null
0.043697
0.013445
null
null
0.191597
0
0
0
null
0
0
0
0
0
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
a97c00cdc0e84d25e5f2d2b8fa849b4685a3af63
412
py
Python
__Courses__/Python - Introduction to Python Programming - Udacity/C3. Control Flow/{Q}[Zip] Transpose with Zip.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
__Courses__/Python - Introduction to Python Programming - Udacity/C3. Control Flow/{Q}[Zip] Transpose with Zip.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
__Courses__/Python - Introduction to Python Programming - Udacity/C3. Control Flow/{Q}[Zip] Transpose with Zip.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
""" Use zip to transpose data from a 4-by-3 matrix to a 3-by-4 matrix. There's actually a cool trick for this! Feel free to look at the solutions if you can't figure it out. """ data = ((0, 1, 2), (3, 4, 5), (6, 7, 8), (9, 10, 11)) # 0 1 2 # 3 4 5 # 6 7 8 # 9 10 11 # # Transpose : [data]^T # # 0 3 6 9 # 1 4...
20.6
169
0.587379
89
412
2.696629
0.483146
0.108333
0.025
0.033333
0.116667
0.116667
0.116667
0.116667
0.116667
0.116667
0
0.151815
0.264563
412
19
170
21.684211
0.640264
0.628641
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
a97c03a39afb2ffacda4b7cbc36d74356b7d4d73
1,266
py
Python
setup.py
Fonolo/fonolo-python
2bc8b5bbdaea60f1fad34ead154a1804dcf73746
[ "MIT" ]
null
null
null
setup.py
Fonolo/fonolo-python
2bc8b5bbdaea60f1fad34ead154a1804dcf73746
[ "MIT" ]
null
null
null
setup.py
Fonolo/fonolo-python
2bc8b5bbdaea60f1fad34ead154a1804dcf73746
[ "MIT" ]
null
null
null
# # This file is part of the Fonolo Python Wrapper package. # # (c) Foncloud, Inc. # # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. # import os import sys try: from setuptools import setup except ImportError: from distutils.core imp...
26.375
73
0.608215
144
1,266
5.333333
0.611111
0.123698
0.16276
0.101563
0
0
0
0
0
0
0
0.02139
0.261453
1,266
47
74
26.93617
0.8
0.154028
0
0.055556
0
0
0.526365
0
0
0
0
0
0
1
0
true
0
0.138889
0
0.138889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
a980240fa263dbb460603819aa7046d97ae19bc1
1,854
py
Python
courier/elements/statistics.py
inidun/unesco_data_collection
6157883ea391f370d350eaaed038dfde6ad7a8fe
[ "MIT" ]
1
2021-04-06T16:27:57.000Z
2021-04-06T16:27:57.000Z
courier/elements/statistics.py
humlab-unesco/unesco_data_collection
7c49b8c61e52007f507a426582e164c82c7fe67d
[ "MIT" ]
65
2020-06-09T13:27:18.000Z
2022-03-23T14:29:59.000Z
courier/elements/statistics.py
inidun/unesco_data_collection
6157883ea391f370d350eaaed038dfde6ad7a8fe
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import Any, Dict, List, Tuple from courier.config import get_config from courier.utils import flatten from .elements import CourierIssue CONFIG = get_config() @dataclass class IssueStatistics: issue: CourierIssue total_pages: int = field(init=False) ...
37.08
112
0.679072
260
1,854
4.657692
0.253846
0.066061
0.115607
0.126342
0.314616
0.174236
0.117258
0.067713
0.067713
0.067713
0
0.00203
0.202805
1,854
49
113
37.836735
0.817321
0.033981
0
0
0
0
0.005031
0
0
0
0
0.020408
0
1
0.026316
false
0.026316
0.131579
0
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
a98ea17eff95ad99d570f2a892b2b4fe93e0a307
2,643
py
Python
setup.py
weaverba137/comparator
4f9e77ac7b6128ce74ef20c753720218b7335c50
[ "BSD-3-Clause" ]
null
null
null
setup.py
weaverba137/comparator
4f9e77ac7b6128ce74ef20c753720218b7335c50
[ "BSD-3-Clause" ]
1
2022-03-23T18:57:57.000Z
2022-03-23T18:57:57.000Z
setup.py
weaverba137/comparator
4f9e77ac7b6128ce74ef20c753720218b7335c50
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Licensed under a 3-clause BSD style license - see LICENSE.rst # # Imports # import sys from os.path import exists # # setuptools' sdist command ignores MANIFEST.in # from distutils.command.sdist import sdist as DistutilsSdist # from ez_setup import use_setuptools # use_setuptools() from setuptoo...
31.843373
99
0.705638
311
2,643
5.784566
0.475884
0.209561
0.028349
0.046693
0.033352
0
0
0
0
0
0
0.005811
0.153613
2,643
82
100
32.231707
0.798391
0.25577
0
0
0
0
0.402174
0.040373
0
0
0
0
0
1
0
false
0
0.148936
0
0.148936
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
0
0
0
0
0
1
a994e104b2812745682faafd359769c4d80c73b0
845
py
Python
app/models.py
HaeckelK/journal-api
1764a8b8489e15c343053c03852c5bbda0e70182
[ "MIT" ]
null
null
null
app/models.py
HaeckelK/journal-api
1764a8b8489e15c343053c03852c5bbda0e70182
[ "MIT" ]
null
null
null
app/models.py
HaeckelK/journal-api
1764a8b8489e15c343053c03852c5bbda0e70182
[ "MIT" ]
null
null
null
from sqlalchemy import Column, ForeignKey, Integer, String, DateTime from sqlalchemy.orm import relationship from sqlalchemy.sql import func from .database import Base class TimestampMixin(object): created_at = Column(DateTime, default=func.now()) modified_at = Column(DateTime, default=func.now()) source...
27.258065
68
0.730178
99
845
6.080808
0.383838
0.059801
0.074751
0.076412
0.225914
0.225914
0.126246
0.126246
0
0
0
0
0.15858
845
30
69
28.166667
0.846695
0
0
0.105263
0
0
0.053254
0
0
0
0
0
0
1
0
false
0
0.210526
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a99eca71b378f7ad96043c81fd2c18208c46d34a
3,101
py
Python
gas_webscraper/google_maps_api.py
iggy12345/Private_Wont_Make_Sense_If_You_Download
aef983be6ac05e0d6d36446cb10350c6003ef2d1
[ "MIT" ]
null
null
null
gas_webscraper/google_maps_api.py
iggy12345/Private_Wont_Make_Sense_If_You_Download
aef983be6ac05e0d6d36446cb10350c6003ef2d1
[ "MIT" ]
null
null
null
gas_webscraper/google_maps_api.py
iggy12345/Private_Wont_Make_Sense_If_You_Download
aef983be6ac05e0d6d36446cb10350c6003ef2d1
[ "MIT" ]
null
null
null
from WebsiteDescriptor import * import googlemaps from googlemaps import places from tqdm import tqdm import time gmaps = googlemaps.Client(key='AIzaSyAFjRuP86SUl9EtuNOjjr12rY646RSp2Vo') def find_station(browser, place_id: str) -> Website: """Finds a single station given a place_id and returns a website""" ...
31.642857
118
0.600451
377
3,101
4.793103
0.35809
0.019369
0.009961
0.022136
0.123962
0.081904
0.081904
0.081904
0.081904
0.081904
0
0.028246
0.292164
3,101
97
119
31.969072
0.794989
0.079652
0
0.126761
0
0
0.170543
0.032065
0
0
0
0.010309
0
1
0.042254
false
0
0.084507
0
0.169014
0.098592
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
a9a3943b42bb280bbe28f3a9c139acd35f536a02
525
py
Python
src/quartile.py
kemingy/techie-delight
886e2da8c95d0ea596b902b37f95f55f0f1c5053
[ "FTL" ]
2
2019-08-19T06:06:44.000Z
2021-05-09T14:00:59.000Z
src/quartile.py
kemingy/techie-delight
886e2da8c95d0ea596b902b37f95f55f0f1c5053
[ "FTL" ]
null
null
null
src/quartile.py
kemingy/techie-delight
886e2da8c95d0ea596b902b37f95f55f0f1c5053
[ "FTL" ]
null
null
null
# Write an algorithm to generate 0 and 1 with 75% and 25% probability # respectively using a specified function which produces either 0 or 1 each with # 50% probability from random import randint def generate_quartile(): return randint(0, 1) & randint(0, 1) if __name__ == '__main__': n = 1000 ...
25
81
0.580952
72
525
4.083333
0.625
0.108844
0.061224
0
0
0
0
0
0
0
0
0.063361
0.308571
525
20
82
26.25
0.746556
0.310476
0
0
1
0
0.094675
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0.083333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a9a3d1c59ebb5c2ef01a533d8ad5e914a2ece948
2,273
py
Python
comet/utility/test/test_endpoint.py
dneise/Comet
abaa0da65d69f90a5262d81416477b4e71deb2ad
[ "BSD-2-Clause" ]
15
2015-11-29T18:53:58.000Z
2022-03-09T15:47:30.000Z
comet/utility/test/test_endpoint.py
dneise/Comet
abaa0da65d69f90a5262d81416477b4e71deb2ad
[ "BSD-2-Clause" ]
29
2016-01-21T18:10:45.000Z
2021-10-01T16:41:12.000Z
comet/utility/test/test_endpoint.py
dneise/Comet
abaa0da65d69f90a5262d81416477b4e71deb2ad
[ "BSD-2-Clause" ]
11
2016-01-22T14:05:51.000Z
2022-03-09T17:49:56.000Z
from twisted.internet import reactor from twisted.trial import unittest from comet.utility import coerce_to_client_endpoint, coerce_to_server_endpoint class coerce_to_client_endpoint_TestCase(unittest.TestCase): HOST, PORT, DEFAULT_PORT = "test", 1234, 4321 def test_good_tcp_parse(self): ep = coerce...
33.925373
86
0.679278
294
2,273
4.94898
0.142857
0.087973
0.140206
0.120962
0.764948
0.734021
0.692784
0.608935
0.593814
0.497595
0
0.006738
0.216454
2,273
66
87
34.439394
0.810219
0
0
0.431373
0
0
0.064672
0.021997
0
0
0
0
0.27451
1
0.196078
false
0
0.058824
0
0.313725
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8d1101104a95a283e1985e3cb6d731d4ec8fe531
283
py
Python
insta/migrations/0002_delete_picture.py
kiptoo-097/instagram
ba764cd8d56e7a006940f0a04b25bc84baadccda
[ "MIT" ]
1
2020-11-25T00:29:55.000Z
2020-11-25T00:29:55.000Z
insta/migrations/0002_delete_picture.py
kiptoo-097/instagram
ba764cd8d56e7a006940f0a04b25bc84baadccda
[ "MIT" ]
null
null
null
insta/migrations/0002_delete_picture.py
kiptoo-097/instagram
ba764cd8d56e7a006940f0a04b25bc84baadccda
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-22 22:47 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('insta', '0001_initial'), ] operations = [ migrations.DeleteModel( name='Picture', ), ]
16.647059
47
0.586572
30
283
5.5
0.8
0
0
0
0
0
0
0
0
0
0
0.095477
0.29682
283
16
48
17.6875
0.733668
0.159011
0
0
1
0
0.101695
0
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
8d14a1e169ead0f42962466667da0b42d17288fa
5,171
py
Python
utils/weight.py
AdamChristiansen/text-summarizer
44dcb61650f946f1dc63cd78c65b7ce581b2a2a0
[ "MIT" ]
null
null
null
utils/weight.py
AdamChristiansen/text-summarizer
44dcb61650f946f1dc63cd78c65b7ce581b2a2a0
[ "MIT" ]
null
null
null
utils/weight.py
AdamChristiansen/text-summarizer
44dcb61650f946f1dc63cd78c65b7ce581b2a2a0
[ "MIT" ]
null
null
null
""" This module defines functions used for assigning sentence weights. """ import numpy as np def __normalize(ws, xs, normalize): """ Normalize an array by its sum. # Arguments * `ws` (np.array<num>): The original array. * `xs` (np.array<num>): The array to be normalized. * `normalize` (bool...
27.359788
79
0.660027
718
5,171
4.668524
0.199164
0.0358
0.046539
0.038186
0.527446
0.495227
0.438246
0.428401
0.405728
0.405728
0
0.00385
0.246567
5,171
188
80
27.505319
0.85652
0.650551
0
0.071429
0
0
0.027542
0
0
0
0
0
0
1
0.214286
false
0
0.02381
0
0.47619
0
0
0
0
null
0
0
0
0
0
0
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
8d1de3ac718aaa1ac7fbf60e1d1ee1c78dad733c
1,775
py
Python
RSA_keys.py
davarbri/jpegForensics
66f20b861655481c4575430858977a80afddff65
[ "CC0-1.0" ]
null
null
null
RSA_keys.py
davarbri/jpegForensics
66f20b861655481c4575430858977a80afddff65
[ "CC0-1.0" ]
null
null
null
RSA_keys.py
davarbri/jpegForensics
66f20b861655481c4575430858977a80afddff65
[ "CC0-1.0" ]
null
null
null
# !/usr/bin/python3 # RSA_keys.py # David Arboledas Brihuega # January 2022 # usage: python RSA_keys.py <bitslenght> # -------------------------------------------- # The script generates a public and private # RSA key pair of the desired length. # Only 1024, 2048 and 4096 bits are possible # ----------------...
29.098361
72
0.55493
211
1,775
4.530806
0.379147
0.043933
0.028243
0.037657
0.322176
0.286611
0.175732
0.175732
0.175732
0
0
0.024642
0.291268
1,775
61
73
29.098361
0.735294
0.208451
0
0.325
1
0
0.267267
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.1
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8d2f2f5e18113aaf63c87db249598bb1950842ba
358
py
Python
swappingFiles.py
anudhatgithub/Functions
59b4d477b3e75b9e5570d700efec3f215e3f1ea9
[ "MIT" ]
null
null
null
swappingFiles.py
anudhatgithub/Functions
59b4d477b3e75b9e5570d700efec3f215e3f1ea9
[ "MIT" ]
null
null
null
swappingFiles.py
anudhatgithub/Functions
59b4d477b3e75b9e5570d700efec3f215e3f1ea9
[ "MIT" ]
null
null
null
def changecode(): file1=input("Enter your file name1") file2=input("Enter your file name2") with open(file1,"r") as a: data_a = a.read() with open(file2,"r") as b: data_b = b.read() with open(file1,"w") as a: a.write(data_b) with open(file2,"w") as b: b....
19.888889
40
0.539106
55
358
3.436364
0.363636
0.169312
0.148148
0.190476
0
0
0
0
0
0
0
0.03252
0.312849
358
17
41
21.058824
0.735772
0
0
0
0
0
0.128852
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.083333
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
8d39b2e7c4c6d28467cd90a6c89c36fd06f29dcb
358
py
Python
src/ali.py
sivanWu0222/GithubApiVi
58662b18f3bd816a7da34206548ce88895c31820
[ "Apache-2.0" ]
null
null
null
src/ali.py
sivanWu0222/GithubApiVi
58662b18f3bd816a7da34206548ce88895c31820
[ "Apache-2.0" ]
null
null
null
src/ali.py
sivanWu0222/GithubApiVi
58662b18f3bd816a7da34206548ce88895c31820
[ "Apache-2.0" ]
null
null
null
import requests import matplotlib.pyplot as plt URL = "https://api.github.com/orgs/alibaba/repos" repos_json = requests.get(URL).json() star_data_repos = {} for repo in repos_json: star_data_repos[repo['name']] = repo['stargazers_count'] print(star_data_repos) fig = plt.figure() plt.bar(star_data_repos.keys()...
27.538462
60
0.74581
56
358
4.535714
0.553571
0.15748
0.255906
0.133858
0
0
0
0
0
0
0
0
0.106145
358
13
61
27.538462
0.79375
0
0
0
0
0
0.169916
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.090909
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
8d40b02bd2d67ebb5929d16cb373530d236ccb53
3,521
py
Python
mocasin/platforms/mppa_coolidge.py
tud-ccc/mocasin
6cf0a169e24d65d0fc859398f181dd500f928340
[ "0BSD" ]
1
2022-03-13T19:27:50.000Z
2022-03-13T19:27:50.000Z
mocasin/platforms/mppa_coolidge.py
tud-ccc/mocasin
6cf0a169e24d65d0fc859398f181dd500f928340
[ "0BSD" ]
null
null
null
mocasin/platforms/mppa_coolidge.py
tud-ccc/mocasin
6cf0a169e24d65d0fc859398f181dd500f928340
[ "0BSD" ]
null
null
null
# Copyright (C) 2020 TU Dresden # Licensed under the ISC license (see LICENSE.txt) # # Authors: Felix Teweleit, Andres Goens from mocasin.common.platform import Platform, Processor from mocasin.platforms.topologies import fullyConnectedTopology from mocasin.platforms.platformDesigner import PlatformDesigner from mocas...
33.855769
86
0.518035
327
3,521
5.422018
0.373089
0.067118
0.162437
0.171461
0.283136
0
0
0
0
0
0
0.073756
0.372337
3,521
103
87
34.184466
0.728507
0.086055
0
0.121951
0
0
0.118417
0
0
0
0
0
0
1
0.012195
false
0
0.060976
0
0.085366
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
8d40eb69956d8f0c5683fa9538d66271e929306f
2,506
py
Python
radiomicsfeatureextractionpipeline/backend/test/mock_ups/logic/dicom_file_reader/dicom_file_reader.py
Maastro-CDS-Imaging-Group/SQLite4Radiomics
e3a7afc181eec0fe04c18da00edc3772064e6758
[ "Apache-2.0" ]
null
null
null
radiomicsfeatureextractionpipeline/backend/test/mock_ups/logic/dicom_file_reader/dicom_file_reader.py
Maastro-CDS-Imaging-Group/SQLite4Radiomics
e3a7afc181eec0fe04c18da00edc3772064e6758
[ "Apache-2.0" ]
6
2021-06-09T19:39:27.000Z
2021-09-30T16:41:40.000Z
radiomicsfeatureextractionpipeline/backend/test/mock_ups/logic/dicom_file_reader/dicom_file_reader.py
Maastro-CDS-Imaging-Group/SQLite4Radiomics
e3a7afc181eec0fe04c18da00edc3772064e6758
[ "Apache-2.0" ]
null
null
null
from typing import Optional, List, Any, Dict from logic.dicom_file_reader.dicom_file_reader import DicomFileReader from logic.entities.image import Image class DicomFileReaderMockUp(DicomFileReader): def __init__(self, dicom_data_directory: str) -> None: super().__init__(dicom_data_directory) s...
40.419355
101
0.728252
321
2,506
5.186916
0.11215
0.118919
0.144144
0.118919
0.715916
0.6997
0.575976
0.356757
0.27988
0.165766
0
0
0.19593
2,506
61
102
41.081967
0.826303
0
0
0
0
0
0.01237
0
0
0
0
0
0
1
0.222222
false
0
0.066667
0.066667
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8d42811e1cbbb7d86be081fd839b6057f89a1aae
6,531
py
Python
tests/test_cli.py
mverteuil/mig3-client
2603e78ac37b76dcd1e162ff3a0a042ab1d77269
[ "MIT" ]
3
2019-04-26T19:43:47.000Z
2019-05-04T02:23:36.000Z
tests/test_cli.py
mverteuil/mig3-client
2603e78ac37b76dcd1e162ff3a0a042ab1d77269
[ "MIT" ]
32
2019-05-04T02:22:46.000Z
2021-07-14T10:22:05.000Z
tests/test_cli.py
mverteuil/mig3-client
2603e78ac37b76dcd1e162ff3a0a042ab1d77269
[ "MIT" ]
2
2019-05-02T20:49:31.000Z
2019-05-04T02:20:55.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import json import mock from mig3_client import ICON_FAILURE, ICON_SUCCESS, Regression, RequestError, mig3 ALL_ARGUMENTS = {"target": "--target t", "build": "--build b", "endpoint": "--endpoint e", "token": "--...
38.64497
116
0.693309
841
6,531
5.222354
0.162901
0.098361
0.098816
0.100182
0.725638
0.680328
0.598816
0.578552
0.557149
0.557149
0
0.007464
0.179452
6,531
168
117
38.875
0.812092
0.068443
0
0.550459
0
0
0.170594
0.064388
0
0
0
0
0.422018
1
0.100917
false
0
0.036697
0
0.146789
0.009174
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
8d44f10969abd10ae8c91814b9f8761f3d137efd
2,583
py
Python
ingest_askfm.py
eugene-yang/TAR-Content-Moderation
33a06a5beae98be6bea882caf82d0cee66948321
[ "Apache-2.0" ]
null
null
null
ingest_askfm.py
eugene-yang/TAR-Content-Moderation
33a06a5beae98be6bea882caf82d0cee66948321
[ "Apache-2.0" ]
null
null
null
ingest_askfm.py
eugene-yang/TAR-Content-Moderation
33a06a5beae98be6bea882caf82d0cee66948321
[ "Apache-2.0" ]
null
null
null
from tqdm import tqdm import pandas as pd import numpy as np from pathlib import Path from hashlib import md5 from sklearn.feature_extraction.text import TfidfVectorizer from scipy import sparse as sp import argparse def break_text(raw): return np.array([ i for i, t in enumerate(raw) if t == '¶' ][::2]) def ma...
36.380282
108
0.602787
366
2,583
4.092896
0.396175
0.03271
0.032043
0.026702
0.098798
0.078772
0.036048
0.036048
0.036048
0
0
0.008052
0.230739
2,583
71
109
36.380282
0.744841
0.022455
0
0.035714
0
0
0.119651
0
0
0
0
0
0.035714
1
0.035714
false
0.071429
0.142857
0.017857
0.196429
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8d4a19311c10bbf266b1e5c19c569215c87f596f
1,219
py
Python
src/devicetree.py
hstarmans/py-uio
9cfbbef5eb96709685c9d32a2079e41cd5669b9b
[ "MIT" ]
null
null
null
src/devicetree.py
hstarmans/py-uio
9cfbbef5eb96709685c9d32a2079e41cd5669b9b
[ "MIT" ]
null
null
null
src/devicetree.py
hstarmans/py-uio
9cfbbef5eb96709685c9d32a2079e41cd5669b9b
[ "MIT" ]
null
null
null
import pathlib import os from struct import unpack_from as unpack class Path( pathlib.PosixPath ): __slots__ = () def bytes( path, prop ): return (path/prop).read_bytes() def u32( path, prop ): return unpack( '>I', path.bytes( prop ) )[0] def strs( path, prop ): s = path.byte...
24.38
73
0.528302
158
1,219
4.012658
0.310127
0.07571
0.066246
0.056782
0
0
0
0
0
0
0
0.015682
0.319934
1,219
49
74
24.877551
0.749095
0
0
0.05
0
0
0.09434
0
0
0
0
0
0
1
0.175
false
0
0.075
0.1
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8d4c4cfc64bcc6f2c988c295958cc04b5ffd1813
881
py
Python
gst/views.py
ps96068/gg
926c73bcb6c1a2b0999e760bd71d2b1a604e4d88
[ "MIT" ]
null
null
null
gst/views.py
ps96068/gg
926c73bcb6c1a2b0999e760bd71d2b1a604e4d88
[ "MIT" ]
6
2020-06-05T22:38:37.000Z
2022-02-10T08:56:03.000Z
gst/views.py
ps96068/gg
926c73bcb6c1a2b0999e760bd71d2b1a604e4d88
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib.auth import login, authenticate, logout from .forms import UserLoginForm def home_view(request): context = {'name': 'Dave'} return render(request, 'home.html',context) def login_view(request): form = UserLoginForm(request.POST or None) ...
35.24
59
0.666288
105
881
5.495238
0.352381
0.076257
0.07279
0
0
0
0
0
0
0
0
0
0.212259
881
25
60
35.24
0.831412
0
0
0
0
0
0.07483
0
0
0
0
0
0
1
0.136364
false
0.090909
0.136364
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
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
8d58db0f8f0fce915b650aceaf49301e55883449
5,263
py
Python
hopper_face_detection/src/vision/vision_utils.py
CreedyNZ/Hopper_ROS
1e6354109f034a7d1d41a5b39ddcb632cfee64b2
[ "MIT" ]
36
2018-12-19T18:03:08.000Z
2022-02-21T16:20:12.000Z
hopper_face_detection/src/vision/vision_utils.py
CreedyNZ/Hopper_ROS
1e6354109f034a7d1d41a5b39ddcb632cfee64b2
[ "MIT" ]
null
null
null
hopper_face_detection/src/vision/vision_utils.py
CreedyNZ/Hopper_ROS
1e6354109f034a7d1d41a5b39ddcb632cfee64b2
[ "MIT" ]
7
2019-08-11T20:31:27.000Z
2021-09-19T04:34:18.000Z
from __future__ import division import os import cv2 as cv import numpy as np from cv_bridge import CvBridge def map_linear(value, in_min, in_max, out_min, out_max): return (value - in_min) * (out_max - out_min) / (in_max - in_min) + out_min def process_image(img, equalize_hist=False): gray = cv.cvtColor(...
37.592857
128
0.589778
716
5,263
4.079609
0.234637
0.038343
0.04519
0.053406
0.353304
0.312564
0.221842
0.187607
0.187607
0.169805
0
0.031619
0.308949
5,263
139
129
37.863309
0.771515
0.026031
0
0.207207
0
0
0.015421
0.012883
0
0
0
0
0
0
null
null
0
0.045045
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
8d5ea5207a0e26d41a9f1fd1992a42bc27329e3d
9,713
py
Python
Utils.py
shalommmitz/vue-bootstrap-site-template
c3a292406c48eeff9684f214e80478a8ed404aa5
[ "MIT" ]
null
null
null
Utils.py
shalommmitz/vue-bootstrap-site-template
c3a292406c48eeff9684f214e80478a8ed404aa5
[ "MIT" ]
null
null
null
Utils.py
shalommmitz/vue-bootstrap-site-template
c3a292406c48eeff9684f214e80478a8ed404aa5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # functions currently not in use: # def add_EXAMPLE_DATA(self, x, y_1, y_2): # def delete_EXAMPLE_DATA(self, x): # def get_interpolated_EXAMPLE_VAR(self, x): # def get_EXAMPLE_VAR(self): # def gen_axis_graph(self, short_axis, full_axis): import serial, sys, time, datetime, os, ya...
37.072519
109
0.583239
1,299
9,713
4.091609
0.189376
0.076576
0.009595
0.010536
0.342803
0.242897
0.177422
0.108749
0.07714
0.063594
0
0.016827
0.284155
9,713
261
110
37.214559
0.747591
0.040049
0
0.195122
0
0
0.173523
0.003131
0
0
0
0
0
0
null
null
0
0.009756
null
null
0.02439
0
0
0
null
0
0
0
0
0
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
8d606a25db9b21aba44409fa477e09d63ae52bdb
3,707
py
Python
post/views.py
vis7/connection
10f39dcc232887ad2f8af155bd685bd536a80a2d
[ "MIT" ]
1
2021-07-02T04:45:29.000Z
2021-07-02T04:45:29.000Z
post/views.py
vis7/connection
10f39dcc232887ad2f8af155bd685bd536a80a2d
[ "MIT" ]
null
null
null
post/views.py
vis7/connection
10f39dcc232887ad2f8af155bd685bd536a80a2d
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.contrib.auth.mixins import LoginRequiredMixin from django.urls import reverse_lazy from django.views.generic import ( CreateView, UpdateView, DeleteView, DetailView, ListView ) from .models import Post, Comment from .forms import Po...
35.304762
104
0.713245
493
3,707
5.204868
0.25355
0.046765
0.062354
0.038971
0.368277
0.339829
0.192518
0.170694
0.112237
0.112237
0
0.003036
0.200432
3,707
104
105
35.644231
0.862686
0.230375
0
0.435897
0
0
0.095625
0.071277
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.74359
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8d6f9843b6769717305f59238b0a9391750d1ec5
1,030
py
Python
silver/migrations/0045_auto_20180402_1402.py
patelpritesh/Silver
3e67ae15d494c4cd022f5ce0f60a0fbc298e854e
[ "Apache-2.0" ]
1
2020-03-03T07:45:08.000Z
2020-03-03T07:45:08.000Z
silver/migrations/0045_auto_20180402_1402.py
patelpritesh/Silver
3e67ae15d494c4cd022f5ce0f60a0fbc298e854e
[ "Apache-2.0" ]
1
2021-03-19T22:01:48.000Z
2021-03-19T22:01:48.000Z
silver/migrations/0045_auto_20180402_1402.py
patelpritesh/Silver
3e67ae15d494c4cd022f5ce0f60a0fbc298e854e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('silver', '0044_auto_20171115_1809'), ] operations = [ migrations.AlterField( model_name='customer', ...
29.428571
114
0.587379
104
1,030
5.634615
0.451923
0.136519
0.170648
0.197952
0.476109
0.426621
0.343003
0.343003
0.343003
0.343003
0
0.039456
0.286408
1,030
34
115
30.294118
0.757823
0.020388
0
0.5
0
0
0.136048
0.02284
0
0
0
0
0
1
0
false
0
0.071429
0
0.178571
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
8d7060a9a744f1507510303cc85a19006f42c7bb
994
py
Python
crosshair/libimpl/randomlib_test.py
samuelchassot/CrossHair
4eac7a23e470567cc23e6d0916ce6dd6820eacd8
[ "MIT" ]
785
2019-09-28T14:47:48.000Z
2022-03-24T15:04:03.000Z
crosshair/libimpl/randomlib_test.py
samuelchassot/CrossHair
4eac7a23e470567cc23e6d0916ce6dd6820eacd8
[ "MIT" ]
111
2019-10-19T14:43:03.000Z
2022-03-29T07:23:32.000Z
crosshair/libimpl/randomlib_test.py
samuelchassot/CrossHair
4eac7a23e470567cc23e6d0916ce6dd6820eacd8
[ "MIT" ]
36
2018-05-12T03:31:29.000Z
2022-03-02T14:07:16.000Z
import copy import random from crosshair.core_and_libs import proxy_for_type, standalone_statespace from crosshair.libimpl.randomlib import ExplicitRandom def test_ExplicitRandom(): rng = ExplicitRandom([1, 2]) assert rng.randrange(0, 10) == 1 assert rng.choice(["a", "b", "c"]) == "c" assert rng.choi...
30.121212
84
0.643863
144
994
4.333333
0.305556
0.086538
0.057692
0.076923
0.290064
0.137821
0
0
0
0
0
0.045455
0.203219
994
32
85
31.0625
0.742424
0
0
0.08
0
0
0.069417
0.046278
0
0
0
0
0.48
1
0.12
false
0
0.16
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
8d745c5f26a9f97101b244e534de872f3219bad5
542
py
Python
openbook_posts/migrations/0031_postcomment_parent_comment.py
TamaraAbells/okuna-api
f87d8e80d2f182c01dbce68155ded0078ee707e4
[ "MIT" ]
164
2019-07-29T17:59:06.000Z
2022-03-19T21:36:01.000Z
openbook_posts/migrations/0031_postcomment_parent_comment.py
TamaraAbells/okuna-api
f87d8e80d2f182c01dbce68155ded0078ee707e4
[ "MIT" ]
188
2019-03-16T09:53:25.000Z
2019-07-25T14:57:24.000Z
openbook_posts/migrations/0031_postcomment_parent_comment.py
TamaraAbells/okuna-api
f87d8e80d2f182c01dbce68155ded0078ee707e4
[ "MIT" ]
80
2019-08-03T17:49:08.000Z
2022-02-28T16:56:33.000Z
# Generated by Django 2.2 on 2019-05-02 17:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('openbook_posts', '0030_post_is_closed'), ] operations = [ migrations.AddField( model_name='postco...
27.1
161
0.667897
63
542
5.603175
0.666667
0.067989
0.07932
0.124646
0
0
0
0
0
0
0
0.042353
0.215867
542
19
162
28.526316
0.788235
0.079336
0
0
1
0
0.183099
0.052314
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
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
8d79aa1e1ed5c5f3beb4f99c6a64ef2309e9a25b
1,420
py
Python
app/oauth2.py
AKASHCS50/FastAPI
2adf498c4b024a5b23710d509700128bafa36941
[ "MIT" ]
1
2021-11-12T11:42:52.000Z
2021-11-12T11:42:52.000Z
app/oauth2.py
AKASHCS50/FastAPI
2adf498c4b024a5b23710d509700128bafa36941
[ "MIT" ]
null
null
null
app/oauth2.py
AKASHCS50/FastAPI
2adf498c4b024a5b23710d509700128bafa36941
[ "MIT" ]
null
null
null
from fastapi import Depends, status, HTTPException from fastapi.exceptions import HTTPException from fastapi.security import OAuth2PasswordBearer from jose import JWTError, jwt from datetime import datetime, timedelta from . import schemas SECRET_KEY = "u7x!A%D*G-KaPdSgUkXp2s5v8y/B?E(H+MbQeThWmYq3t6w9z$C&F)J@NcRfUjXn...
30.212766
123
0.733099
174
1,420
5.781609
0.488506
0.054672
0.047714
0.04175
0
0
0
0
0
0
0
0.016351
0.18169
1,420
46
124
30.869565
0.849398
0
0
0.066667
0
0.033333
0.095775
0.04507
0
0
0
0
0
1
0.1
false
0.066667
0.2
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8d7e4fd56f80d000be05c4a34e70f9e63df4e32b
4,664
py
Python
post_processing/compute_dumbbell_acf.py
gwpark-git/dynamics_of_networks_and_colloids
0b0a3687533379ec75171ae6b906aeff5bedfbba
[ "MIT" ]
null
null
null
post_processing/compute_dumbbell_acf.py
gwpark-git/dynamics_of_networks_and_colloids
0b0a3687533379ec75171ae6b906aeff5bedfbba
[ "MIT" ]
null
null
null
post_processing/compute_dumbbell_acf.py
gwpark-git/dynamics_of_networks_and_colloids
0b0a3687533379ec75171ae6b906aeff5bedfbba
[ "MIT" ]
null
null
null
from numpy import * from acf_fcn import * import sys def tauij_acf_con(dat): tau_12 = dat[:, 21] tau_13 = dat[:, 22] tau_23 = dat[:, 23] return (corr_FFT(tau_12, tau_12) + corr_FFT(tau_13, tau_13) + corr_FFT(tau_23, tau_23))/5. def Nij_con(dat, i, j): con_st = 17 tau_ii = dat[:, con_st + i] ...
45.281553
168
0.565395
797
4,664
3.050188
0.134253
0.065817
0.034965
0.025915
0.447552
0.380502
0.358289
0.346771
0.336487
0.303579
0
0.044285
0.283448
4,664
102
169
45.72549
0.683124
0.302316
0
0.089552
0
0.014925
0.203038
0
0
0
0
0
0
0
null
null
0
0.044776
null
null
0.208955
0
0
0
null
0
0
0
0
0
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
8d80038825e3401bfa5bc2a57fb4f398ed64eb0f
8,340
py
Python
add_to_files.py
cdutsov/meteo
4aed1af2fb8b4e3762e453d0d66f921aa2dc3f7b
[ "MIT" ]
1
2017-06-06T05:27:25.000Z
2017-06-06T05:27:25.000Z
add_to_files.py
cdutsov/meteo
4aed1af2fb8b4e3762e453d0d66f921aa2dc3f7b
[ "MIT" ]
null
null
null
add_to_files.py
cdutsov/meteo
4aed1af2fb8b4e3762e453d0d66f921aa2dc3f7b
[ "MIT" ]
null
null
null
import json import os import datetime import threading import gpxpy import gpxpy.gpx from Adafruit_BME280 import * import paho.mqtt.client as paho import veml6070 import time from external_tracker import post_update, TRACKER_URL from read_serial import get_dust_particles, GPS, get_emf import pickle import serial fr...
34.46281
119
0.602518
1,029
8,340
4.688047
0.216715
0.007463
0.00995
0.011609
0.229892
0.19859
0.153814
0.135572
0.100746
0.100746
0
0.020445
0.261031
8,340
241
120
34.605809
0.762291
0.06211
0
0.2
0
0.017143
0.14531
0.023962
0
0
0
0
0
0
null
null
0.005714
0.085714
null
null
0.022857
0
0
0
null
0
0
0
0
0
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