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
f01944d27e76d31f7d24bb6d6aee8d5e5c5f6995
10,940
py
Python
todo_app/display.py
WeaverDyl/python-todo
80c533b79c6170ba9ba4923ba78f4900fece8339
[ "MIT" ]
3
2020-01-16T09:39:11.000Z
2021-11-15T08:38:52.000Z
todo_app/display.py
WeaverDyl/python-todo
80c533b79c6170ba9ba4923ba78f4900fece8339
[ "MIT" ]
null
null
null
todo_app/display.py
WeaverDyl/python-todo
80c533b79c6170ba9ba4923ba78f4900fece8339
[ "MIT" ]
null
null
null
import os import math import shutil import textwrap from datetime import datetime from terminaltables import AsciiTable class Display: def __init__(self): self.colors = { 'RED': '\033[38;5;196m', 'ORANGE': '\033[38;5;220m', 'GREEN': '\033[38;5;46m', 'BOLD': ...
39.927007
135
0.599543
1,403
10,940
4.493942
0.2067
0.028549
0.030928
0.039968
0.25456
0.239968
0.218557
0.166059
0.11594
0.071055
0
0.012579
0.295155
10,940
273
136
40.07326
0.804824
0.151005
0
0.153846
0
0
0.143532
0
0
0
0
0
0
1
0.102564
false
0.076923
0.030769
0
0.276923
0.097436
0
0
0
null
0
0
0
0
0
0
0
0
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
f01f136d0d4a9137fd6a7ceea105c26d2d1478ac
1,098
py
Python
tests/controllers/controller_with_throttling.py
DmitryKhursevich/winter
9f3bf462f963059bab1f1bbb309ca57f8a43b46f
[ "MIT" ]
1
2020-10-26T09:48:05.000Z
2020-10-26T09:48:05.000Z
tests/controllers/controller_with_throttling.py
mikhaillazko/winter
cd4f11aaf28d500aabb59cec369817bfdb5c2fc1
[ "MIT" ]
null
null
null
tests/controllers/controller_with_throttling.py
mikhaillazko/winter
cd4f11aaf28d500aabb59cec369817bfdb5c2fc1
[ "MIT" ]
null
null
null
from http import HTTPStatus import winter.web from winter.web import ExceptionHandler from winter.web.exceptions import ThrottleException class CustomThrottleExceptionHandler(ExceptionHandler): @winter.response_status(HTTPStatus.TOO_MANY_REQUESTS) def handle(self, exception: ThrottleException) -> str: ...
26.780488
69
0.721311
127
1,098
6.070866
0.338583
0.081712
0.090791
0.072633
0.233463
0.206226
0.143969
0.143969
0
0
0
0.007709
0.173042
1,098
40
70
27.45
0.84141
0
0
0.233333
0
0
0.081056
0
0
0
0
0
0
1
0.2
false
0.033333
0.133333
0.166667
0.566667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
f02506946a855a60b83d59b8fe69069f7a64c710
1,316
py
Python
fork_process/dataPreprocess/data_extraction_2.py
JianboTang/modified_GroundHog
cc511a146a51b42fdfb2b2c045205cca6ab306b7
[ "BSD-3-Clause" ]
null
null
null
fork_process/dataPreprocess/data_extraction_2.py
JianboTang/modified_GroundHog
cc511a146a51b42fdfb2b2c045205cca6ab306b7
[ "BSD-3-Clause" ]
null
null
null
fork_process/dataPreprocess/data_extraction_2.py
JianboTang/modified_GroundHog
cc511a146a51b42fdfb2b2c045205cca6ab306b7
[ "BSD-3-Clause" ]
null
null
null
import numpy import pickle readfile1 = open('intermediate_data/post_1.txt','r'); readfile2 = open('intermediate_data/cmnt_1.txt','r'); writefile = open('intermediate_data/dictionary.pkl','w'); #writefile1 = open('intermediate_data/post_2.txt','w'); #writefile2 = open('intermediate_data/cmnt_2.txt','w'); def staticDic...
25.803922
57
0.660334
175
1,316
4.868571
0.377143
0.093897
0.117371
0.056338
0
0
0
0
0
0
0
0.040338
0.18997
1,316
50
58
26.32
0.758912
0.082067
0
0
0
0
0.150912
0.072968
0
0
0
0
0
0
null
null
0
0.046512
null
null
0.093023
0
0
0
null
0
0
0
0
0
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
f031c64cd48b598cd3b616708c05819e454b8bc1
2,870
py
Python
core/translator.py
bfu4/mdis
fac5ec078ffeaa9339df4b31b9b71140563f4f14
[ "MIT" ]
13
2021-05-17T06:38:50.000Z
2022-03-27T15:39:57.000Z
core/translator.py
bfu4/mdis
fac5ec078ffeaa9339df4b31b9b71140563f4f14
[ "MIT" ]
null
null
null
core/translator.py
bfu4/mdis
fac5ec078ffeaa9339df4b31b9b71140563f4f14
[ "MIT" ]
null
null
null
from typing import List from parser import parse_bytes, split_bytes_from_lines, get_bytes, parse_instruction_set, wrap_parsed_set from reader import dump_file_hex_with_locs class Translator: """ Class handling file translations from *.mpy to hex dumps and opcodes """ def __init__(self, file: str): ...
28.7
105
0.591289
375
2,870
4.229333
0.218667
0.044136
0.031526
0.035939
0.298235
0.192938
0.148802
0.121059
0.121059
0.065574
0
0.006073
0.311498
2,870
99
106
28.989899
0.796559
0.28885
0
0.117647
0
0
0.0012
0
0
0
0
0
0
1
0.323529
false
0
0.088235
0.029412
0.735294
0
0
0
0
null
0
0
0
0
0
0
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
f033f0846a998f9a5ac92cbb40712c19a572ab8c
623
py
Python
extra_tests/ctypes_tests/test_unions.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
333
2015-08-08T18:03:38.000Z
2022-03-22T18:13:12.000Z
extra_tests/ctypes_tests/test_unions.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
7
2020-02-16T16:49:05.000Z
2021-11-26T09:00:56.000Z
extra_tests/ctypes_tests/test_unions.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
55
2015-08-16T02:41:30.000Z
2022-03-20T20:33:35.000Z
import sys from ctypes import * def test_getattr(): class Stuff(Union): _fields_ = [('x', c_char), ('y', c_int)] stuff = Stuff() stuff.y = ord('x') | (ord('z') << 24) if sys.byteorder == 'little': assert stuff.x == b'x' else: assert stuff.x == b'z' def test_union_of_struct...
21.482759
48
0.523274
80
623
3.875
0.425
0.067742
0.077419
0.083871
0.16129
0.16129
0
0
0
0
0
0.013825
0.303371
623
28
49
22.25
0.700461
0
0
0.090909
0
0
0.032103
0
0
0
0
0
0.136364
1
0.090909
false
0
0.090909
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
f03ab886461270d772569e4546b232254bbdaeb6
3,525
py
Python
.ipynb_checkpoints/main2-checkpoint.py
jcus/python-challenge
8e00b7ae932e970a98c419e5b49fc7a0dfc3eac5
[ "RSA-MD" ]
null
null
null
.ipynb_checkpoints/main2-checkpoint.py
jcus/python-challenge
8e00b7ae932e970a98c419e5b49fc7a0dfc3eac5
[ "RSA-MD" ]
null
null
null
.ipynb_checkpoints/main2-checkpoint.py
jcus/python-challenge
8e00b7ae932e970a98c419e5b49fc7a0dfc3eac5
[ "RSA-MD" ]
null
null
null
{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "001887f2", "metadata": {}, "outputs": [], "source": [ "# import os modules to create path across operating system to load csv file\n", "import os\n", "# module for reading csv files\n", "import csv" ] }, { ...
21.759259
84
0.508936
368
3,525
4.790761
0.361413
0.049915
0.074872
0.131027
0.203063
0.203063
0.203063
0.039705
0
0
0
0.028363
0.259858
3,525
161
85
21.89441
0.647374
0
0
0.347826
0
0
0.544113
0
0
0
0
0
0
1
0
true
0
0.024845
0
0.024845
0.031056
0
0
0
null
0
0
0
0
0
0
0
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
f0425b1ddda33471bcd698350aad4a8f84b9b335
1,837
py
Python
mnt/us/kapps/apps/gallery/gallery.py
PhilippMundhenk/kapps
eed07669d8554393bfbd40acd8d255475e90b88e
[ "MIT" ]
1
2021-11-19T08:40:44.000Z
2021-11-19T08:40:44.000Z
mnt/us/kapps/apps/gallery/gallery.py
PhilippMundhenk/kapps
eed07669d8554393bfbd40acd8d255475e90b88e
[ "MIT" ]
null
null
null
mnt/us/kapps/apps/gallery/gallery.py
PhilippMundhenk/kapps
eed07669d8554393bfbd40acd8d255475e90b88e
[ "MIT" ]
null
null
null
from core.kapp import Kapp from core.httpResponse import HTTPResponse from core.Kcommand import Kcommand import uuid import os class GetImage(Kcommand): getImageHash = str(uuid.uuid4()) def __init__(self): super(GetImage, self).__init__( "GetImage", self.getImageHash) class ViewImage(Kc...
30.114754
138
0.619488
199
1,837
5.638191
0.386935
0.042781
0.089127
0.07754
0.143494
0.049911
0.049911
0
0
0
0
0.003551
0.233533
1,837
60
139
30.616667
0.793324
0
0
0.045455
0
0
0.095264
0
0
0
0
0
0
1
0.159091
false
0
0.113636
0.022727
0.522727
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
f04ab36ef3e94f8716214625f760733bb0b62c82
1,437
py
Python
chapter-7/chassis/demo.py
wallacei/microservices-in-action-copy
f9840464a1f9ec40622989e9e5377742246244f3
[ "MIT" ]
115
2017-11-06T08:12:07.000Z
2022-02-25T09:56:59.000Z
chapter-7/chassis/demo.py
wallacei/microservices-in-action-copy
f9840464a1f9ec40622989e9e5377742246244f3
[ "MIT" ]
12
2017-08-05T14:51:35.000Z
2020-12-01T11:05:14.000Z
chapter-7/chassis/demo.py
wallacei/microservices-in-action-copy
f9840464a1f9ec40622989e9e5377742246244f3
[ "MIT" ]
82
2017-08-05T09:41:12.000Z
2022-02-18T00:57:39.000Z
import json import datetime import requests from nameko.web.handlers import http from nameko.timer import timer from statsd import StatsClient from circuitbreaker import circuit class DemoChassisService: name = "demo_chassis_service" statsd = StatsClient('localhost', 8125, prefix='simplebank-demo') @htt...
31.933333
85
0.701461
166
1,437
5.921687
0.373494
0.044761
0.045778
0.067141
0.19939
0.19939
0.115972
0.115972
0
0
0
0.019151
0.164231
1,437
44
86
32.659091
0.799334
0
0
0.058824
0
0
0.21016
0
0
0
0
0
0
1
0.117647
false
0
0.205882
0.058824
0.588235
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
f04ba688518b293c3f58f28b313a6e8e7fd63f49
214
py
Python
URI 1017.py
Azefalo/Cluble-de-Programacao-UTFPR
f4a457bae36ac61378766035abc0633f5b3492db
[ "MIT" ]
1
2021-04-19T22:42:00.000Z
2021-04-19T22:42:00.000Z
URI 1017.py
Azefalo/Cluble-de-Programacao-UTFPR
f4a457bae36ac61378766035abc0633f5b3492db
[ "MIT" ]
null
null
null
URI 1017.py
Azefalo/Cluble-de-Programacao-UTFPR
f4a457bae36ac61378766035abc0633f5b3492db
[ "MIT" ]
null
null
null
# https://www.beecrowd.com.br/judge/en/problems/view/1017 car_efficiency = 12 # Km/L time = int(input()) average_speed = int(input()) liters = (time * average_speed) / car_efficiency print(f"{liters:.3f}")
26.75
58
0.686916
32
214
4.46875
0.75
0.181818
0
0
0
0
0
0
0
0
0
0.037838
0.135514
214
8
59
26.75
0.735135
0.280374
0
0
0
0
0.082759
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f04ce64c795e8f616352eaaa159edec4673a3240
1,432
py
Python
src/cpp/convert.py
shindavid/splendor
b51b0408967627dbd61f60f57031d1fe21aa9d8f
[ "MIT" ]
1
2017-11-02T18:32:51.000Z
2017-11-02T18:32:51.000Z
src/cpp/convert.py
shindavid/splendor
b51b0408967627dbd61f60f57031d1fe21aa9d8f
[ "MIT" ]
1
2018-07-05T09:07:40.000Z
2018-07-05T09:07:40.000Z
src/cpp/convert.py
shindavid/splendor
b51b0408967627dbd61f60f57031d1fe21aa9d8f
[ "MIT" ]
null
null
null
filename = '../py/cards.py' f = open(filename) color_map = { 'W' : 'eWhite', 'U' : 'eBlue', 'G' : 'eGreen', 'R' : 'eRed', 'B' : 'eBlack', 'J' : 'eGold', } color_index_map = { 'W' : 0, 'U' : 1, 'G' : 2, 'R' : 3, 'B' : 4 } def convert(cost_str): cost_array = [0,0,0...
21.058824
88
0.513966
209
1,432
3.421053
0.296651
0.08951
0.058741
0.011189
0.366434
0.318881
0.318881
0.318881
0.318881
0.318881
0
0.024178
0.277933
1,432
67
89
21.373134
0.667311
0
0
0.440678
0
0
0.094274
0
0
0
0
0
0
0
null
null
0
0
null
null
0.033898
0
0
0
null
0
0
0
0
0
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
f05664f755b3f673d926831f9475fb250a901f2c
792
py
Python
pytglib/api/types/rich_text_phone_number.py
iTeam-co/pytglib
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
6
2019-10-30T08:57:27.000Z
2021-02-08T14:17:43.000Z
pytglib/api/types/rich_text_phone_number.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
1
2021-08-19T05:44:10.000Z
2021-08-19T07:14:56.000Z
pytglib/api/types/rich_text_phone_number.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
5
2019-12-04T05:30:39.000Z
2021-05-21T18:23:32.000Z
from ..utils import Object class RichTextPhoneNumber(Object): """ A rich text phone number Attributes: ID (:obj:`str`): ``RichTextPhoneNumber`` Args: text (:class:`telegram.api.types.RichText`): Text phone_number (:obj:`str`): Phone number Ret...
21.405405
54
0.585859
80
792
5.6625
0.4125
0.218543
0.165563
0
0
0
0
0
0
0
0
0
0.295455
792
36
55
22
0.811828
0.352273
0
0
0
0
0.12
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0
0.545455
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
f0574e6e18439c3b0140a8ed7ddefec8cd1bf416
299
py
Python
tests/core/scenario_finder/file_filters/test_file_filter.py
nikitanovosibirsk/vedro
e975a1c1eb065bc6caa32c41c0d7576ee6d284db
[ "Apache-2.0" ]
2
2021-08-24T12:49:30.000Z
2022-01-23T07:21:25.000Z
tests/core/scenario_finder/file_filters/test_file_filter.py
nikitanovosibirsk/vedro
e975a1c1eb065bc6caa32c41c0d7576ee6d284db
[ "Apache-2.0" ]
20
2015-12-09T11:04:23.000Z
2022-03-20T09:18:17.000Z
tests/core/scenario_finder/file_filters/test_file_filter.py
nikitanovosibirsk/vedro
e975a1c1eb065bc6caa32c41c0d7576ee6d284db
[ "Apache-2.0" ]
3
2015-12-09T07:31:23.000Z
2022-01-28T11:03:24.000Z
from pytest import raises from vedro._core._scenario_finder._file_filters import FileFilter def test_file_filter(): with raises(Exception) as exc_info: FileFilter() assert exc_info.type is TypeError assert "Can't instantiate abstract class FileFilter" in str(exc_info.value)
24.916667
79
0.769231
42
299
5.238095
0.738095
0.095455
0
0
0
0
0
0
0
0
0
0
0.170569
299
11
80
27.181818
0.887097
0
0
0
0
0
0.143813
0
0
0
0
0
0.285714
1
0.142857
true
0
0.285714
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
f05da004efb57fa8123a5d8084bba03a6cd27ce9
623
py
Python
create_tacacs.py
cromulon-actual/ise_automation
de3fbb762c3e1f4f41d81dda3bd2d33a11db1d58
[ "MIT" ]
null
null
null
create_tacacs.py
cromulon-actual/ise_automation
de3fbb762c3e1f4f41d81dda3bd2d33a11db1d58
[ "MIT" ]
null
null
null
create_tacacs.py
cromulon-actual/ise_automation
de3fbb762c3e1f4f41d81dda3bd2d33a11db1d58
[ "MIT" ]
null
null
null
from ciscoisesdk import IdentityServicesEngineAPI from ciscoisesdk.exceptions import ApiError from dotenv import load_dotenv import os from pprint import pprint as ppr load_dotenv() admin = os.getenv("ISE_ADMIN") pw = os.getenv("ISE_PW") base_url = os.getenv("ISE_URL") api = IdentityServicesEngineAPI( username=ad...
23.074074
82
0.764045
91
623
5.054945
0.406593
0.104348
0.071739
0.086957
0.156522
0.156522
0.156522
0.156522
0
0
0
0.016393
0.11878
623
26
83
23.961538
0.821494
0.057785
0
0.277778
0
0
0.05137
0
0
0
0
0
0
1
0
false
0.055556
0.277778
0
0.277778
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f0625e6b2d07feed6a373b43052746c1a7b2640c
984
py
Python
home/tests/add-remove sector.py
caggri/FOFviz
776ab387d832a86eea1a1b9064040d9b012494a7
[ "MIT" ]
2
2020-05-24T22:28:53.000Z
2020-05-25T21:58:24.000Z
home/tests/add-remove sector.py
caggri/FOFviz
776ab387d832a86eea1a1b9064040d9b012494a7
[ "MIT" ]
null
null
null
home/tests/add-remove sector.py
caggri/FOFviz
776ab387d832a86eea1a1b9064040d9b012494a7
[ "MIT" ]
1
2021-10-16T12:26:29.000Z
2021-10-16T12:26:29.000Z
from selenium import webdriver import time chromedriver = "C:/Users/deniz/chromedriver/chromedriver" driver = webdriver.Chrome(chromedriver) driver.get('http://127.0.0.1:8000/') dashboard = '//*[@id="accordionSidebar"]/li[1]/a' sectors_1 = '//*[@id="sectors"]' sectors_1_element = '//*[@id="sectors"]/option[4]' add_s...
29.818182
63
0.747967
150
984
4.633333
0.28
0.090647
0.171223
0.191367
0.546763
0.546763
0.546763
0.541007
0.397122
0.397122
0
0.036559
0.054878
984
32
64
30.75
0.710753
0
0
0.269231
0
0
0.28586
0.225839
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
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
f065f569bc87da0b1005e3822cbd92500b510024
1,713
py
Python
netensorflow/api_samples/ann_creation_and_usage.py
psigelo/NeTensorflow
ec8bc09cc98346484d1b682a3dfd25c68c4ded61
[ "MIT" ]
null
null
null
netensorflow/api_samples/ann_creation_and_usage.py
psigelo/NeTensorflow
ec8bc09cc98346484d1b682a3dfd25c68c4ded61
[ "MIT" ]
null
null
null
netensorflow/api_samples/ann_creation_and_usage.py
psigelo/NeTensorflow
ec8bc09cc98346484d1b682a3dfd25c68c4ded61
[ "MIT" ]
null
null
null
import tensorflow as tf from netensorflow.ann.ANN import ANN from netensorflow.ann.macro_layer.MacroLayer import MacroLayer from netensorflow.ann.macro_layer.layer_structure.InputLayerStructure import InputLayerStructure from netensorflow.ann.macro_layer.layer_structure.LayerStructure import LayerStructure, LayerType ...
37.23913
123
0.782837
210
1,713
6.104762
0.366667
0.109204
0.088924
0.093604
0.222309
0.199688
0.143526
0.076443
0
0
0
0.009472
0.137186
1,713
45
124
38.066667
0.857916
0.034443
0
0
0
0
0.025591
0
0
0
0
0
0
1
0.041667
false
0
0.333333
0
0.375
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f06a56919cbaa9b5814f0dd5b244fec4364f26b3
423
py
Python
python/arachne/runtime/rpc/logger.py
fixstars/arachne
03c00fc5105991d0d706b935d77e6f9255bae9e7
[ "MIT" ]
3
2022-03-29T03:02:20.000Z
2022-03-29T03:48:38.000Z
python/arachne/runtime/rpc/logger.py
fixstars/arachne
03c00fc5105991d0d706b935d77e6f9255bae9e7
[ "MIT" ]
null
null
null
python/arachne/runtime/rpc/logger.py
fixstars/arachne
03c00fc5105991d0d706b935d77e6f9255bae9e7
[ "MIT" ]
1
2022-03-29T05:44:12.000Z
2022-03-29T05:44:12.000Z
import logging class Logger(object): stream_handler = logging.StreamHandler() formatter = logging.Formatter("[%(levelname)s %(pathname)s:%(lineno)d] %(message)s") stream_handler.setFormatter(formatter) stream_handler.setLevel(logging.INFO) my_logger = logging.Logger("arachne.runtime.rpc") my_...
26.4375
88
0.72104
48
423
6.208333
0.541667
0.174497
0
0
0
0
0
0
0
0
0
0
0.158392
423
15
89
28.2
0.837079
0
0
0
0
0
0.165485
0.056738
0
0
0
0
0
1
0.090909
false
0
0.090909
0.090909
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
f06ebdf27eb473116d5a5a69d7c99a59502c6586
409
py
Python
hackerrank/python/introduction/function.py
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
18
2020-08-27T05:27:50.000Z
2022-03-08T02:56:48.000Z
hackerrank/python/introduction/function.py
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
null
null
null
hackerrank/python/introduction/function.py
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
1
2020-10-13T05:23:58.000Z
2020-10-13T05:23:58.000Z
def is_leap(year): leap = False # Write your logic here # The year can be evenly divided by 4, is a leap year, unless: # The year can be evenly divided by 100, it is NOT a leap year, unless: # The year is also evenly divisible by 400. Then it is a leap year. leap = (year % 4 == 0 and (year ...
34.083333
75
0.628362
73
409
3.493151
0.438356
0.219608
0.105882
0.094118
0.356863
0.356863
0.211765
0
0
0
0
0.057432
0.276284
409
12
76
34.083333
0.804054
0.533007
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0.166667
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
f072cdc953dde5ba78b66b40195edc1332c89bcf
346
py
Python
functions/dissectData/lambda_handler.py
zinedine-zeitnot/anomaly-detection
2287f6488d47884d97ff618c24c379d869eb51f5
[ "MIT" ]
3
2021-04-30T12:51:01.000Z
2021-06-04T12:51:32.000Z
functions/dissectData/lambda_handler.py
zinedine-zeitnot/anomaly-detection
2287f6488d47884d97ff618c24c379d869eb51f5
[ "MIT" ]
null
null
null
functions/dissectData/lambda_handler.py
zinedine-zeitnot/anomaly-detection
2287f6488d47884d97ff618c24c379d869eb51f5
[ "MIT" ]
null
null
null
from data_dissector import DataDissector def handler(event, _): switchpoint_trio = DataDissector.dissect_data(data=event['data']) return { "switchpoint": switchpoint_trio.switchpoint, "preSwitchAverage": switchpoint_trio.pre_switch_average, "postSwitchAverage": switchpoint_trio.po...
28.833333
69
0.731214
33
346
7.333333
0.545455
0.247934
0
0
0
0
0
0
0
0
0
0
0.182081
346
11
70
31.454545
0.855124
0
0
0
0
0
0.138728
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
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
f0730fe6794bb60447a6e7f8e2d6de7cd6fc45d8
1,220
py
Python
Chapter 3-Regression/2.py
FatiniNadhirah5/Datacamp-Machine-Learning-with-Apache-Spark-2019
a0ef5f34c5a0aea222359a5085386f6a21611e7e
[ "FSFAP" ]
8
2020-05-02T20:24:38.000Z
2021-04-30T21:44:22.000Z
Chapter 3-Regression/2.py
FatiniNadhirah5/Machine-Learning-with-Apache-Spark
a0ef5f34c5a0aea222359a5085386f6a21611e7e
[ "FSFAP" ]
null
null
null
Chapter 3-Regression/2.py
FatiniNadhirah5/Machine-Learning-with-Apache-Spark
a0ef5f34c5a0aea222359a5085386f6a21611e7e
[ "FSFAP" ]
9
2020-05-17T17:44:37.000Z
2022-03-20T12:58:42.000Z
# Flight duration model: Just distance # In this exercise you'll build a regression model to predict flight duration (the duration column). # For the moment you'll keep the model simple, including only the distance of the flight (the km column) as a predictor. # The data are in flights. The first few records are disp...
48.8
195
0.80082
180
1,220
5.405556
0.466667
0.033916
0.043165
0.032888
0
0
0
0
0
0
0
0.003831
0.144262
1,220
25
196
48.8
0.928161
0.690164
0
0
0
0
0.092896
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f07320187da09dd13226ebf15b281c23c4b206d4
486
py
Python
gipsy/admin.py
marwahaha/gipsy-1
5d31c37cff26b9b26cd6d24e1b6de13c81ebbe6e
[ "MIT" ]
10
2015-02-11T02:11:33.000Z
2018-03-22T13:08:33.000Z
gipsy/admin.py
marwahaha/gipsy-1
5d31c37cff26b9b26cd6d24e1b6de13c81ebbe6e
[ "MIT" ]
9
2015-01-22T15:45:44.000Z
2015-10-19T14:18:09.000Z
gipsy/admin.py
marwahaha/gipsy-1
5d31c37cff26b9b26cd6d24e1b6de13c81ebbe6e
[ "MIT" ]
7
2015-04-28T15:20:57.000Z
2019-07-16T03:45:12.000Z
from django.contrib import admin class ChildrenInline(admin.TabularInline): sortable_field_name = "order" class GipsyMenu(admin.ModelAdmin): inlines = [ChildrenInline] exclude = ('parent',) list_display = ['name', 'order'] ordering = ['order'] def get_queryset(self, request): """Ove...
27
69
0.693416
53
486
6.226415
0.679245
0.054545
0
0
0
0
0
0
0
0
0
0
0.193416
486
17
70
28.588235
0.841837
0.113169
0
0
0
0
0.058824
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.909091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
f073a799e8b36554db301e779cfd3eed55011853
4,727
py
Python
QDeblend/process/host_profiles.py
brandherd/QDeblend3D
4e195ca027cf9fb65962ce66bf5d1f3e119b4f18
[ "MIT" ]
null
null
null
QDeblend/process/host_profiles.py
brandherd/QDeblend3D
4e195ca027cf9fb65962ce66bf5d1f3e119b4f18
[ "MIT" ]
null
null
null
QDeblend/process/host_profiles.py
brandherd/QDeblend3D
4e195ca027cf9fb65962ce66bf5d1f3e119b4f18
[ "MIT" ]
null
null
null
import numpy, math from scipy import special """ The Sersic Profile Formulae for Sersic profile taken from Graham & Driver (2005) bibcode: 2005PASA...22..118G """ class Sersic: def __init__(self, size, x_c, y_c, mag, n, r_e, e=0., theta=0., osfactor=10, osradius=2): self.size = size ...
34.757353
80
0.557436
783
4,727
3.178799
0.159642
0.022499
0.019285
0.021695
0.319004
0.152672
0.087585
0.075532
0.058658
0.058658
0
0.048467
0.275439
4,727
136
81
34.757353
0.678248
0
0
0.039604
0
0
0.014097
0
0
0
0
0
0
0
null
null
0
0.019802
null
null
0.009901
0
0
0
null
0
0
0
0
0
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
f07a7df9283116337443c3a5f4f80b400ad900a1
4,848
py
Python
tests/data/test_make_dataset.py
dnsosa/drug-lit-contradictory-claims
c03faa7269050344b631b12302214a3175384e98
[ "MIT" ]
null
null
null
tests/data/test_make_dataset.py
dnsosa/drug-lit-contradictory-claims
c03faa7269050344b631b12302214a3175384e98
[ "MIT" ]
null
null
null
tests/data/test_make_dataset.py
dnsosa/drug-lit-contradictory-claims
c03faa7269050344b631b12302214a3175384e98
[ "MIT" ]
null
null
null
"""Tests for making datasets for contradictory-claims.""" # -*- coding: utf-8 -*- import os import unittest from contradictory_claims.data.make_dataset import load_drug_virus_lexicons, load_mancon_corpus_from_sent_pairs, \ load_med_nli, load_multi_nli from .constants import drug_lex_path, mancon_sent_pairs, med...
49.469388
114
0.697401
674
4,848
4.722552
0.158754
0.094251
0.05655
0.059692
0.655985
0.472824
0.330506
0.225259
0.14923
0.14923
0
0.023226
0.200701
4,848
97
115
49.979381
0.798194
0.094059
0
0
0
0
0.156006
0
0
0
0
0
0.461538
1
0.107692
false
0
0.061538
0
0.184615
0
0
0
0
null
0
0
0
0
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
f07bcc1be66ad63b427b651f681533f05db82f52
430
py
Python
topics/migrations/0003_topic_word.py
acdh-oeaw/mmp
7ef8f33eafd3a7985328d374130f1cbe31f77df0
[ "MIT" ]
2
2021-06-02T11:27:54.000Z
2021-08-25T10:29:04.000Z
topics/migrations/0003_topic_word.py
acdh-oeaw/mmp
7ef8f33eafd3a7985328d374130f1cbe31f77df0
[ "MIT" ]
86
2021-01-29T12:31:34.000Z
2022-03-28T11:41:04.000Z
topics/migrations/0003_topic_word.py
acdh-oeaw/mmp
7ef8f33eafd3a7985328d374130f1cbe31f77df0
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-10-21 19:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('topics', '0002_alter_modelingprocess_modeling_type'), ] operations = [ migrations.AddField( model_name='topic', name='...
21.5
63
0.597674
43
430
5.837209
0.837209
0
0
0
0
0
0
0
0
0
0
0.058824
0.288372
430
19
64
22.631579
0.761438
0.1
0
0
1
0
0.148052
0.103896
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f08133a0ab8681553c9936415f848d5882f36db1
1,150
py
Python
src/controllers/storage.py
koddas/python-oop-consistency-lab
8ee3124aa230359d296fdfbe0c23773602769c8c
[ "MIT" ]
null
null
null
src/controllers/storage.py
koddas/python-oop-consistency-lab
8ee3124aa230359d296fdfbe0c23773602769c8c
[ "MIT" ]
null
null
null
src/controllers/storage.py
koddas/python-oop-consistency-lab
8ee3124aa230359d296fdfbe0c23773602769c8c
[ "MIT" ]
null
null
null
from entities.serializable import Serializable class Storage: ''' Storage represents a file storage that stores and retrieves objects ''' def __init__(self): pass def save(self, filename: str, data: Serializable) -> bool: ''' Stores a serializable object. If the ob...
28.75
78
0.578261
127
1,150
5.149606
0.511811
0.041284
0.045872
0
0
0
0
0
0
0
0
0
0.342609
1,150
40
79
28.75
0.865079
0.289565
0
0.105263
0
0
0.002732
0
0
0
0
0
0
1
0.157895
false
0.052632
0.052632
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
0
0
0
0
0
1
0
0
0
0
0
1
f081d74683e4da50d27ee2a254cfa3157f59305b
924
py
Python
tests/functional/modules/test_zos_tso_command.py
IBM/zos-core-collection-ftp
017d2e031d64984571bd9bb330f49adaced387a6
[ "Apache-2.0" ]
4
2021-03-17T02:24:02.000Z
2022-01-28T22:08:17.000Z
tests/functional/modules/test_zos_tso_command.py
IBM/zos-core-collection-ftp
017d2e031d64984571bd9bb330f49adaced387a6
[ "Apache-2.0" ]
null
null
null
tests/functional/modules/test_zos_tso_command.py
IBM/zos-core-collection-ftp
017d2e031d64984571bd9bb330f49adaced387a6
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, division, print_function __metaclass__ = type import os import sys import warnings import ansible.constants import ansible.errors import ansible.utils import pytest from pprint import pprint # The positive path test def test_zos_tso_command_listuser(ansible_adhoc): hosts ...
30.8
68
0.737013
116
924
5.672414
0.456897
0.072948
0.091185
0.109422
0.238602
0.136778
0.136778
0
0
0
0
0.002516
0.13961
924
29
69
31.862069
0.825157
0.02381
0
0
0
0
0.137778
0
0
0
0
0
0.083333
1
0.041667
false
0
0.375
0
0.416667
0.375
0
0
0
null
0
0
0
0
0
0
0
0
0
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
b2b1db3b982c41901d0ae5c563cb502c2d0bce3e
3,366
py
Python
audio_pouring/utils/network.py
lianghongzhuo/MultimodalPouring
6495c7de9afad396f39bd7ac25e1a150e74479d2
[ "MIT" ]
5
2020-03-12T16:36:32.000Z
2021-01-28T18:23:19.000Z
audio_pouring/utils/network.py
lianghongzhuo/MultimodalPouring
6495c7de9afad396f39bd7ac25e1a150e74479d2
[ "MIT" ]
null
null
null
audio_pouring/utils/network.py
lianghongzhuo/MultimodalPouring
6495c7de9afad396f39bd7ac25e1a150e74479d2
[ "MIT" ]
1
2020-03-11T17:09:28.000Z
2020-03-11T17:09:28.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author : Hongzhuo Liang # E-mail : liang@informatik.uni-hamburg.de # Description: # Date : 15/10/2019: 22:13 # File Name : network import argparse import numpy as np import torch def worker_init_fn(pid): np.random.seed(torch.initial_seed() % (2 ** 3...
49.5
120
0.659834
451
3,366
4.718404
0.31929
0.118421
0.223684
0.088816
0.329417
0.31156
0.084117
0.038534
0
0
0
0.018538
0.166667
3,366
67
121
50.238806
0.740107
0.05407
0
0
0
0.018868
0.224111
0.025496
0
0
0
0
0
1
0.056604
false
0
0.056604
0
0.150943
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b2b1ff5ef4ba336018262956f57a372c5c93879b
4,312
py
Python
FederatedSDNSecurity/main.py
Beaconproj/CrossCloudVNFSimulation
97023e05b57e54503259ae866608de6189b8c9a9
[ "MIT" ]
1
2021-09-25T04:17:55.000Z
2021-09-25T04:17:55.000Z
FederatedSDNSecurity/main.py
Beaconproj/CrossCloudVNFSimulation
97023e05b57e54503259ae866608de6189b8c9a9
[ "MIT" ]
null
null
null
FederatedSDNSecurity/main.py
Beaconproj/CrossCloudVNFSimulation
97023e05b57e54503259ae866608de6189b8c9a9
[ "MIT" ]
null
null
null
''' Created on 12 janv. 2016 @author: phm ''' import FederatedSDN import FederatedSDNSecurity import FederatedSecurityAgent import VNFManager import CloudManager import ssl, socket inputMessage="Press enter to continue" federationCloudManagers=[] cloudFederationMembers=[ ["cloud_man_1","vnf_manager_1"...
30.8
120
0.73539
480
4,312
6.45625
0.270833
0.058729
0.023233
0.046467
0.219426
0.214908
0.17425
0.10455
0.10455
0.10455
0
0.013958
0.119434
4,312
139
121
31.021583
0.802212
0.165584
0
0.153846
0
0
0.433551
0
0
0
0
0
0
0
null
null
0
0.092308
null
null
0.353846
0
0
0
null
0
0
0
0
0
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
b2b541552dee04f9e9bcd11e4c109a74ce0c81b7
1,697
py
Python
timesketch/lib/cypher/insertable_string.py
Marwolf/timesketch
8fbbb3d0a5a50dc0214fc56a9bbec82050908103
[ "Apache-2.0" ]
null
null
null
timesketch/lib/cypher/insertable_string.py
Marwolf/timesketch
8fbbb3d0a5a50dc0214fc56a9bbec82050908103
[ "Apache-2.0" ]
null
null
null
timesketch/lib/cypher/insertable_string.py
Marwolf/timesketch
8fbbb3d0a5a50dc0214fc56a9bbec82050908103
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
39.465116
80
0.696523
237
1,697
4.911392
0.489451
0.051546
0.041237
0.027491
0
0
0
0
0
0
0
0.006056
0.221567
1,697
42
81
40.404762
0.875095
0.608721
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b2b7e4ac8602126a7252025c382dc07c1f558b19
1,181
py
Python
fabrikApi/views/assembly/list.py
demokratiefabrik/fabrikApi
a56bb57d59a5e7cbbeeb77889c02d82f2a04c682
[ "MIT" ]
null
null
null
fabrikApi/views/assembly/list.py
demokratiefabrik/fabrikApi
a56bb57d59a5e7cbbeeb77889c02d82f2a04c682
[ "MIT" ]
null
null
null
fabrikApi/views/assembly/list.py
demokratiefabrik/fabrikApi
a56bb57d59a5e7cbbeeb77889c02d82f2a04c682
[ "MIT" ]
null
null
null
""" Assemblies List View. """ import logging from datetime import datetime from cornice.service import Service from fabrikApi.models.assembly import DBAssembly from fabrikApi.models.mixins import arrow # from fabrikApi.util.cors import CORS_LOCATION, CORS_MAX_AGE logger = logging.getLogger(__name__) # SERVICES as...
25.673913
88
0.702794
132
1,181
6.189394
0.507576
0.097919
0.046512
0
0
0
0
0
0
0
0
0
0.202371
1,181
45
89
26.244444
0.867304
0.263336
0
0
0
0
0.076202
0
0
0
0
0.022222
0
1
0.041667
false
0
0.208333
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
b2b9128938a7476610fbf31df937ff94978048ae
1,514
py
Python
tests/TestMetrics.py
gr33ndata/irlib
4a518fec994b1a89cdc7d09a8170efec3d7e6615
[ "MIT" ]
80
2015-02-16T18:33:57.000Z
2021-05-06T02:03:22.000Z
tests/TestMetrics.py
gr33ndata/irlib
4a518fec994b1a89cdc7d09a8170efec3d7e6615
[ "MIT" ]
2
2016-02-05T06:30:21.000Z
2017-09-24T17:42:58.000Z
tests/TestMetrics.py
gr33ndata/irlib
4a518fec994b1a89cdc7d09a8170efec3d7e6615
[ "MIT" ]
25
2015-05-13T17:35:41.000Z
2020-06-04T01:52:11.000Z
from unittest import TestCase from irlib.metrics import Metrics class TestMetrics(TestCase): def setUp(self): self.m = Metrics() def test_jaccard_same_len(self): with self.assertRaises(ValueError): self.m.jaccard_vectors( [0, 1], [0, 1, 2, 3] ...
24.819672
47
0.515192
202
1,514
3.717822
0.193069
0.066578
0.074567
0.101198
0.48735
0.407457
0.23968
0.183755
0.183755
0
0
0.054656
0.347424
1,514
60
48
25.233333
0.705466
0
0
0.148936
0
0
0
0
0
0
0
0
0.191489
1
0.212766
false
0
0.042553
0
0.276596
0
0
0
0
null
0
0
0
0
0
0
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
b2bff192f3852a8121825cff9ab0d2dc48bcad15
999
py
Python
esp8266/boot.py
AlexGolovko/UltrasonicDeeper
598020854a1bff433bce1582bf05625a6cb646c8
[ "MIT" ]
3
2020-04-21T10:51:38.000Z
2022-03-10T18:23:56.000Z
esp8266/boot.py
AlexGolovko/UltrasonicDeeper
598020854a1bff433bce1582bf05625a6cb646c8
[ "MIT" ]
5
2020-09-05T22:53:54.000Z
2021-05-05T14:31:35.000Z
esp8266/boot.py
AlexGolovko/UltrasonicDeeper
598020854a1bff433bce1582bf05625a6cb646c8
[ "MIT" ]
2
2021-01-24T19:18:42.000Z
2021-02-26T09:41:54.000Z
# This file is executed on every boot (including wake-boot from deepsleep) import esp import gc import machine import network esp.osdebug(None) # machine.freq(160000000) def do_connect(wifi_name, wifi_pass): ssid = 'microsonar' password = 'microsonar' ap_if = network.WLAN(network.AP_IF) ap_if.activ...
23.785714
74
0.672673
136
999
4.823529
0.470588
0.042683
0.045732
0.057927
0.128049
0
0
0
0
0
0
0.015113
0.205205
999
41
75
24.365854
0.811083
0.14014
0
0.066667
0
0
0.128655
0
0
0
0
0
0
1
0.033333
false
0.166667
0.133333
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b2c0fe0d284c1df72e6a811ac09a5b401ed7fb9b
509
py
Python
tests/schema_mapping/expected/generated_example3.py
loyada/typed-py
8f946ed0cddb38bf7fd463a4c8111a592ccae31a
[ "MIT" ]
14
2018-02-14T13:28:47.000Z
2022-02-12T08:03:21.000Z
tests/schema_mapping/expected/generated_example3.py
loyada/typed-py
8f946ed0cddb38bf7fd463a4c8111a592ccae31a
[ "MIT" ]
142
2017-11-22T14:02:33.000Z
2022-03-23T21:26:29.000Z
tests/schema_mapping/expected/generated_example3.py
loyada/typed-py
8f946ed0cddb38bf7fd463a4c8111a592ccae31a
[ "MIT" ]
4
2017-12-14T16:46:45.000Z
2021-12-15T16:33:31.000Z
from typedpy import * class Person(Structure): first_name = String() last_name = String() age = Integer(minimum=1) _required = ['first_name', 'last_name'] class Groups(Structure): groups = Array(items=Person) _required = ['groups'] # ******************** class Example1(Structure): p...
17.551724
47
0.581532
55
509
5.254545
0.454545
0.062284
0.110727
0
0
0
0
0
0
0
0
0.005115
0.231827
509
28
48
18.178571
0.734015
0.039293
0
0
0
0
0.082136
0
0
0
0
0
0
1
0
false
0
0.058824
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
b2c83a9626d327c18df6c74ffc572fe2774106fd
1,504
py
Python
gopage/web_helper.py
wavegu/gopage
ff83cea34a82570627c74c5bad45ebc02ecaaff6
[ "MIT" ]
1
2017-02-03T10:24:00.000Z
2017-02-03T10:24:00.000Z
gopage/web_helper.py
wavegu/gopage
ff83cea34a82570627c74c5bad45ebc02ecaaff6
[ "MIT" ]
null
null
null
gopage/web_helper.py
wavegu/gopage
ff83cea34a82570627c74c5bad45ebc02ecaaff6
[ "MIT" ]
null
null
null
# encoding: utf-8 import urllib2 from proxy_helper import ProxyHelper proxyHelper = ProxyHelper() class WebHelper: def __init__(self): pass @classmethod def get_page_content_from_url(cls, page_url): """ get html content from web page with given url :param page_url: url ...
36.682927
122
0.621011
189
1,504
4.703704
0.486772
0.098988
0.047244
0.060742
0.158605
0.134983
0
0
0
0
0
0.028674
0.257979
1,504
41
123
36.682927
0.767921
0.075133
0
0
0
0.076923
0.200323
0.035541
0
0
0
0
0
0
null
null
0.038462
0.076923
null
null
0.115385
0
0
0
null
0
0
0
0
0
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
b2d1a8016c0b95e209c421ed0aa8314cc552c1ba
491
py
Python
art/migrations/0007_alter_artimage_project.py
rrozander/Art-Website
2cedba90f2adc30d9e83e957903e890af7863eac
[ "MIT" ]
null
null
null
art/migrations/0007_alter_artimage_project.py
rrozander/Art-Website
2cedba90f2adc30d9e83e957903e890af7863eac
[ "MIT" ]
null
null
null
art/migrations/0007_alter_artimage_project.py
rrozander/Art-Website
2cedba90f2adc30d9e83e957903e890af7863eac
[ "MIT" ]
null
null
null
# Generated by Django 3.2.12 on 2022-03-01 23:06 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('art', '0006_auto_20220301_1452'), ] operations = [ migrations.AlterField( model_name='artimage...
24.55
122
0.643585
57
491
5.438596
0.684211
0.077419
0.090323
0.141935
0
0
0
0
0
0
0
0.085106
0.234216
491
19
123
25.842105
0.739362
0.093686
0
0
1
0
0.130926
0.051919
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
b2d418afad092a7839f43f08bf37f5d322277d2e
392
py
Python
fehler_auth/migrations/0003_auto_20220416_1626.py
dhavall13/fehler_core
dd27802d5b227a32aebcc8bfde68e78a69a36d66
[ "MIT" ]
null
null
null
fehler_auth/migrations/0003_auto_20220416_1626.py
dhavall13/fehler_core
dd27802d5b227a32aebcc8bfde68e78a69a36d66
[ "MIT" ]
null
null
null
fehler_auth/migrations/0003_auto_20220416_1626.py
dhavall13/fehler_core
dd27802d5b227a32aebcc8bfde68e78a69a36d66
[ "MIT" ]
null
null
null
# Generated by Django 2.2.27 on 2022-04-16 16:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('fehler_auth', '0002_auto_20211002_1511'), ] operations = [ migrations.AlterField( model_name='invite', name='email'...
20.631579
52
0.604592
43
392
5.372093
0.813953
0
0
0
0
0
0
0
0
0
0
0.124555
0.283163
392
18
53
21.777778
0.697509
0.117347
0
0
1
0
0.130814
0.06686
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
b2d6f5f40b8910601f5ded38d8738f9d70e406e6
835
py
Python
agents/antifa.py
fan-weiwei/mercury-unicorn
6c36d6baeaaee990a622caa0d7790dbd9982962c
[ "Apache-2.0" ]
null
null
null
agents/antifa.py
fan-weiwei/mercury-unicorn
6c36d6baeaaee990a622caa0d7790dbd9982962c
[ "Apache-2.0" ]
null
null
null
agents/antifa.py
fan-weiwei/mercury-unicorn
6c36d6baeaaee990a622caa0d7790dbd9982962c
[ "Apache-2.0" ]
null
null
null
from agents.agent import Agent from random import randint class Antifa(Agent): def __init__(self): super().__init__() self.is_spy = False def __str__(self): return 'Basic Antifa' def assign_mission(self, board): number_to_assign = board.number_to_assign() board....
24.558824
65
0.635928
110
835
4.5
0.463636
0.066667
0.084848
0.076768
0.086869
0
0
0
0
0
0
0.009983
0.28024
835
33
66
25.30303
0.813644
0.050299
0
0
0
0
0.020382
0
0
0
0
0
0
1
0.238095
false
0.047619
0.095238
0.047619
0.571429
0
0
0
0
null
0
0
0
0
0
0
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
b2da2f7f294d67b0e66ebfb594c13ddc9e71fc29
13,568
py
Python
timecat/apps/users/views.py
LinXueyuanStdio/memp
c6f6609cec7c54ec23881838dacb5f4ffba2e68c
[ "Apache-2.0" ]
null
null
null
timecat/apps/users/views.py
LinXueyuanStdio/memp
c6f6609cec7c54ec23881838dacb5f4ffba2e68c
[ "Apache-2.0" ]
null
null
null
timecat/apps/users/views.py
LinXueyuanStdio/memp
c6f6609cec7c54ec23881838dacb5f4ffba2e68c
[ "Apache-2.0" ]
null
null
null
import json from django.urls import reverse from django.shortcuts import render from django.db.models import Q from django.views.generic.base import View from django.contrib.auth import authenticate,login,logout from django.contrib.auth.backends import ModelBackend from django.contrib.auth.hashers import make_password ...
34.176322
108
0.627874
1,434
13,568
5.796374
0.183403
0.037536
0.059432
0.028633
0.384745
0.306665
0.274663
0.217397
0.16783
0.123195
0
0.004174
0.258328
13,568
396
109
34.262626
0.821823
0.106427
0
0.354331
0
0
0.099147
0.012874
0
0
0
0
0
1
0.098425
false
0.062992
0.094488
0.007874
0.452756
0
0
0
0
null
0
0
0
0
0
0
0
0
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
b2dc6929b15ae89ed88d8e3ef2cd52728dbd110e
5,794
py
Python
gui/Ui_sales_transaction.py
kim-song/kimsong-apriori
0f2a4a2b749989ad1305da3836e7404c09482534
[ "MIT" ]
2
2020-07-17T09:36:56.000Z
2020-12-11T11:36:11.000Z
gui/Ui_sales_transaction.py
kimsongsao/kimsong-apriori
0f2a4a2b749989ad1305da3836e7404c09482534
[ "MIT" ]
null
null
null
gui/Ui_sales_transaction.py
kimsongsao/kimsong-apriori
0f2a4a2b749989ad1305da3836e7404c09482534
[ "MIT" ]
1
2020-07-17T09:23:15.000Z
2020-07-17T09:23:15.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'd:\MITE12\ksapriori\gui\sales_transaction.ui' # # Created by: PyQt5 UI code generator 5.12.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_FormSalesTransaction(ob...
48.283333
101
0.681049
544
5,794
7.200368
0.220588
0.080419
0.110288
0.067399
0.347715
0.307889
0.290784
0.163901
0.163901
0.121522
0
0.020774
0.210735
5,794
119
102
48.689076
0.835775
0.037107
0
0.245283
1
0
0.103613
0
0
0
0
0
0
1
0.018868
false
0
0.009434
0
0.037736
0
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
b2dddf20dfadcb66e5efbea5b82b5fce448e57cf
727
py
Python
setup.py
dboddie/Beeware-Hello-VOC
a22ffc58121ead7acac850c6edb60576bdb66993
[ "MIT" ]
35
2017-09-21T03:45:33.000Z
2021-11-18T01:18:13.000Z
setup.py
dboddie/Beeware-Hello-VOC
a22ffc58121ead7acac850c6edb60576bdb66993
[ "MIT" ]
6
2017-09-25T12:34:31.000Z
2021-07-05T03:40:19.000Z
setup.py
dboddie/Beeware-Hello-VOC
a22ffc58121ead7acac850c6edb60576bdb66993
[ "MIT" ]
10
2018-02-03T12:51:31.000Z
2022-02-08T18:54:48.000Z
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='{{ cookiecutter.app_name }}', version='0.0.1', description='{{ cookiecutter.description }}', author='{{ cookiecutter.author }}', author_email='{{ cookiecutter.author_email }}', license='{{ cookiecutter.license }}', ...
25.964286
64
0.569464
62
727
6.548387
0.564516
0.059113
0
0
0
0
0
0
0
0
0
0.007353
0.251719
727
27
65
26.925926
0.738971
0.02751
0
0.083333
0
0
0.456091
0.133144
0
0
0
0
0
1
0
true
0
0.041667
0
0.041667
0
0
0
0
null
0
0
0
0
0
0
0
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
b2de089e75f188f3482c29fc33bcbb7a91997599
27,975
py
Python
src/app.py
chunyuyuan/NEWS_2019_network-master
0eec84b383156c82fbd64d900dce578700575d99
[ "MIT" ]
null
null
null
src/app.py
chunyuyuan/NEWS_2019_network-master
0eec84b383156c82fbd64d900dce578700575d99
[ "MIT" ]
null
null
null
src/app.py
chunyuyuan/NEWS_2019_network-master
0eec84b383156c82fbd64d900dce578700575d99
[ "MIT" ]
null
null
null
from flask import Flask, request, render_template, send_file, Response import io import base64 import csv import json import time from collections import OrderedDict import numpy import pandas as pd from numpy import genfromtxt from flask import jsonify from flask_cors import CORS from LoadingNetwork import...
16.913543
360
0.43378
2,883
27,975
4.151578
0.090878
0.030412
0.026736
0.017378
0.690617
0.683516
0.650096
0.64759
0.642994
0.619768
0
0.023871
0.360572
27,975
1,653
361
16.923775
0.645237
0.184701
0
0.655814
0
0.02093
0.100224
0.012076
0
0
0
0
0
1
0.018605
false
0
0.060465
0
0.111628
0.051163
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
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
b2e37635f83fbc719c3828b77b744bc8d962608e
870
py
Python
ddtrace/contrib/aiobotocore/__init__.py
tophatmonocle/dd-trace-py
7db12f1c398c07cd5baf91c571aed672dbb6496d
[ "BSD-3-Clause" ]
null
null
null
ddtrace/contrib/aiobotocore/__init__.py
tophatmonocle/dd-trace-py
7db12f1c398c07cd5baf91c571aed672dbb6496d
[ "BSD-3-Clause" ]
null
null
null
ddtrace/contrib/aiobotocore/__init__.py
tophatmonocle/dd-trace-py
7db12f1c398c07cd5baf91c571aed672dbb6496d
[ "BSD-3-Clause" ]
null
null
null
""" The aiobotocore integration will trace all AWS calls made with the ``aiobotocore`` library. This integration isn't enabled when applying the default patching. To enable it, you must run ``patch_all(botocore=True)`` :: import aiobotocore.session from ddtrace import patch # If not patched yet, you can ...
28.064516
82
0.74023
112
870
5.598214
0.553571
0.044657
0.070175
0.092504
0
0
0
0
0
0
0
0.001401
0.17931
870
30
83
29
0.876751
0.712644
0
0
0
0
0.095041
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b2e84727d200add756532d87eca711fb92b61dde
1,570
py
Python
setup.py
Peque/mmsim
b3a78ad0119db6ee8df349a89559ea8006c85db1
[ "BSD-3-Clause" ]
null
null
null
setup.py
Peque/mmsim
b3a78ad0119db6ee8df349a89559ea8006c85db1
[ "BSD-3-Clause" ]
null
null
null
setup.py
Peque/mmsim
b3a78ad0119db6ee8df349a89559ea8006c85db1
[ "BSD-3-Clause" ]
null
null
null
""" Setup module. """ from setuptools import setup from mmsim import __version__ setup( name='mmsim', version=__version__, description='A simple Micromouse Maze Simulator server', long_description="""The server can load different mazes and any client can connect to it to ask for the current po...
26.610169
77
0.54586
148
1,570
5.682432
0.702703
0.067776
0.08918
0.061831
0
0
0
0
0
0
0
0.010387
0.325478
1,570
58
78
27.068966
0.783758
0.00828
0
0.09434
0
0
0.503551
0.028405
0
0
0
0
0
1
0
true
0
0.037736
0
0.037736
0
0
0
0
null
0
0
0
0
0
0
0
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
b2e911b19926607cd6e241f7b09f34ddcf0231cd
2,556
py
Python
fastinference.py
wkcw/VariousDiscriminator-CycleGan
de9c033aeed1c429f37c531056c1f74cb51a771c
[ "MIT" ]
null
null
null
fastinference.py
wkcw/VariousDiscriminator-CycleGan
de9c033aeed1c429f37c531056c1f74cb51a771c
[ "MIT" ]
null
null
null
fastinference.py
wkcw/VariousDiscriminator-CycleGan
de9c033aeed1c429f37c531056c1f74cb51a771c
[ "MIT" ]
null
null
null
""" A fast version of the original inference. Constructing one graph to infer all the samples. Originaly one graph for each sample. """ import tensorflow as tf import os from model import CycleGAN import utils import scipy.misc import numpy as np try: from os import scandir except ImportError: # Python 2 polyfill...
31.555556
91
0.658842
348
2,556
4.626437
0.344828
0.040994
0.032298
0.035404
0.063354
0.036025
0.036025
0
0
0
0
0.013165
0.227308
2,556
80
92
31.95
0.802025
0.041471
0
0.034483
0
0
0.075725
0
0
0
0
0
0
0
null
null
0.017241
0.172414
null
null
0.034483
0
0
0
null
0
0
0
0
0
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
b2ee1fd8d6c226332f2055e2d1c443475db998ec
2,442
py
Python
omop_cdm/utility_programs/load_concept_files_into_db.py
jhajagos/CommonDataModelMapper
65d2251713e5581b76cb16e36424d61fb194c901
[ "Apache-2.0" ]
1
2019-06-14T02:26:35.000Z
2019-06-14T02:26:35.000Z
omop_cdm/utility_programs/load_concept_files_into_db.py
jhajagos/CommonDataModelMapper
65d2251713e5581b76cb16e36424d61fb194c901
[ "Apache-2.0" ]
null
null
null
omop_cdm/utility_programs/load_concept_files_into_db.py
jhajagos/CommonDataModelMapper
65d2251713e5581b76cb16e36424d61fb194c901
[ "Apache-2.0" ]
1
2019-08-12T20:19:28.000Z
2019-08-12T20:19:28.000Z
import argparse import json import sys import os try: from utility_functions import load_csv_files_into_db, generate_vocabulary_load except(ImportError): sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0], os.path.pardir, os.path.pardir, "src"))) from utility_functions import load_...
37
137
0.72154
324
2,442
5.067901
0.290123
0.032887
0.046894
0.042631
0.287454
0.211937
0.163216
0.08039
0.08039
0.08039
0
0.003914
0.162981
2,442
65
138
37.569231
0.799413
0
0
0.116279
1
0
0.199508
0.027448
0
0
0
0
0
1
0.023256
false
0
0.162791
0
0.186047
0.046512
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
b2efa45aafbdbf20dc2a3beb6bb3e66667896bb3
414
py
Python
DNN_Experiments/MaskRCNN/convert.py
wmjpillow/FlameDetectionAPP
c3761c9e15adccbd084b17cd6b6f63c561c7f856
[ "MIT" ]
2
2019-12-28T21:46:18.000Z
2020-01-10T03:41:03.000Z
DNN_Experiments/MaskRCNN/convert.py
wmjpillow/FlameDetectionAPP
c3761c9e15adccbd084b17cd6b6f63c561c7f856
[ "MIT" ]
10
2019-12-28T21:31:19.000Z
2020-04-12T20:01:58.000Z
DNN_Experiments/MaskRCNN/convert.py
wmjpillow/FlameDetectionAPP
c3761c9e15adccbd084b17cd6b6f63c561c7f856
[ "MIT" ]
null
null
null
#!/usr/bin/env python # convert jpg tp png from glob import glob import cv2 pngs = glob('./*.jpg') for j in pngs: img = cv2.imread(j) cv2.imwrite(j[:-3] + 'png', img) # delete jpg files import glob import os dir = "/Users/wangmeijie/ALLImportantProjects/FlameDetectionAPP/Models/MaskRCNN/02_26_2020/Mask_RCNN...
21.789474
115
0.707729
65
414
4.461538
0.646154
0.103448
0.110345
0
0
0
0
0
0
0
0
0.033898
0.144928
414
19
116
21.789474
0.785311
0.135266
0
0
0
0
0.342697
0.300562
0
0
0
0
0
1
0
false
0
0.454545
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
0
1
0
0
0
0
1
b2f7f4cc70879c961d4345ed522c0b9c510c8bf6
5,218
py
Python
scratch/movielens-mongodb.py
crcsmnky/movielens-data-exports
f316f1367abef80a1abce64d3adb3bd3effc6365
[ "Apache-2.0" ]
1
2022-02-01T19:44:36.000Z
2022-02-01T19:44:36.000Z
scratch/movielens-mongodb.py
crcsmnky/movielens-data-exports
f316f1367abef80a1abce64d3adb3bd3effc6365
[ "Apache-2.0" ]
null
null
null
scratch/movielens-mongodb.py
crcsmnky/movielens-data-exports
f316f1367abef80a1abce64d3adb3bd3effc6365
[ "Apache-2.0" ]
null
null
null
""" usage: python movielens-mongodb.py [movies] [ratings] [links] """ import sys import re import csv import os # import tmdbsimple as tmdb from pymongo import MongoClient from pymongo import ASCENDING, DESCENDING from datetime import datetime from time import sleep def import_movies(db, mfile): movies = [] ...
26.622449
116
0.526639
571
5,218
4.718039
0.238179
0.036748
0.040089
0.029696
0.215664
0.190794
0.174462
0.174462
0.138827
0.103935
0
0.012749
0.308547
5,218
195
117
26.758974
0.733925
0.026447
0
0.260563
0
0
0.124101
0
0
0
0
0
0
0
null
null
0
0.098592
null
null
0.007042
0
0
0
null
0
0
0
0
0
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
b2fce30e886d32040df251037d8a8ded7ce043ca
3,817
py
Python
aito/client/requests/query_api_request.py
AitoDotAI/aito-python-tools
891d433222b04f4ff8a4eeafbb9268516fd215dc
[ "MIT" ]
6
2019-10-16T02:35:06.000Z
2021-02-03T13:39:43.000Z
aito/client/requests/query_api_request.py
AitoDotAI/aito-python-tools
891d433222b04f4ff8a4eeafbb9268516fd215dc
[ "MIT" ]
23
2020-03-17T13:16:02.000Z
2021-04-23T15:09:51.000Z
aito/client/requests/query_api_request.py
AitoDotAI/aito-python-tools
891d433222b04f4ff8a4eeafbb9268516fd215dc
[ "MIT" ]
null
null
null
"""Aito `Query API <https://aito.ai/docs/api/#query-api>`__ Request Class""" import re from abc import ABC from typing import Dict, Optional, Union, List from .aito_request import AitoRequest, _PatternEndpoint, _PostRequest from ..responses import SearchResponse, PredictResponse, RecommendResponse, EvaluateResponse, ...
37.058252
119
0.687451
470
3,817
5.368085
0.214894
0.060246
0.043599
0.059453
0.230678
0.214824
0.12287
0.120888
0.110186
0
0
0.00257
0.184438
3,817
103
120
37.058252
0.807902
0.305737
0
0.057692
0
0
0.150744
0.064996
0
0
0
0
0
1
0.076923
false
0
0.096154
0.019231
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b2ffff75cff848e9cc4d8a6143bf4d9bf43e64d3
5,702
py
Python
sapy_script/SAP.py
fkfouri/sapy_script
476041288367e2098b955bc2377f442ce503e822
[ "MIT" ]
3
2018-12-03T15:51:54.000Z
2020-11-20T01:05:39.000Z
sapy_script/SAP.py
whrocha/sapy_script
476041288367e2098b955bc2377f442ce503e822
[ "MIT" ]
null
null
null
sapy_script/SAP.py
whrocha/sapy_script
476041288367e2098b955bc2377f442ce503e822
[ "MIT" ]
3
2018-07-28T21:53:32.000Z
2018-08-22T13:51:17.000Z
from multiprocessing import Pool, Manager from time import sleep from wmi import WMI from win32com.client import GetObject from subprocess import Popen from collections import Iterable from tqdm import tqdm from os import getpid from sapy_script.Session import Session session_process = None all_processes_id = [] de...
28.368159
113
0.573834
665
5,702
4.790977
0.266165
0.070621
0.084746
0.053672
0.193032
0.177966
0.131827
0.131827
0.102009
0.042059
0
0.013245
0.31147
5,702
200
114
28.51
0.798268
0.04174
0
0.293333
0
0
0.075922
0.049331
0
0
0
0
0
1
0.113333
false
0.053333
0.06
0.026667
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
0
0
0
0
1
0
0
0
0
0
1
650b61eb839964413b4047a7102a2ba07a9d68e0
1,518
py
Python
jake/test/test_audit.py
lvcarlosja/jake
0ecbcdd89352d27f50e35d1d73b624b86456e568
[ "Apache-2.0" ]
null
null
null
jake/test/test_audit.py
lvcarlosja/jake
0ecbcdd89352d27f50e35d1d73b624b86456e568
[ "Apache-2.0" ]
4
2021-07-29T18:51:06.000Z
2021-12-13T20:50:20.000Z
jake/test/test_audit.py
lvcarlosja/jake
0ecbcdd89352d27f50e35d1d73b624b86456e568
[ "Apache-2.0" ]
null
null
null
# # Copyright 2019-Present Sonatype Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
33
81
0.725296
208
1,518
5.197115
0.586538
0.055504
0.024052
0.029602
0.059204
0.059204
0
0
0
0
0
0.007317
0.189723
1,518
45
82
33.733333
0.871545
0.548748
0
0
0
0
0.03271
0
0
0
0
0
0.052632
1
0.157895
false
0
0.263158
0
0.526316
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
650bd2653086235614c46bb1b73a337dfc0ba477
6,046
py
Python
vintage_commands.py
ktuan89/Vintage
81f178043d1dad4ec9bd50ad4db2df9ef994f098
[ "MIT", "Unlicense" ]
null
null
null
vintage_commands.py
ktuan89/Vintage
81f178043d1dad4ec9bd50ad4db2df9ef994f098
[ "MIT", "Unlicense" ]
null
null
null
vintage_commands.py
ktuan89/Vintage
81f178043d1dad4ec9bd50ad4db2df9ef994f098
[ "MIT", "Unlicense" ]
null
null
null
import sublime, sublime_plugin import os #import subprocess def is_legal_path_char(c): # XXX make this platform-specific? return c not in " \n\"|*<>{}[]()" def move_while_path_character(view, start, is_at_boundary, increment=1): while True: if not is_legal_path_char(view.substr(start)): ...
35.775148
148
0.561528
724
6,046
4.51105
0.211326
0.068585
0.02572
0.024495
0.246479
0.191366
0.191366
0.132884
0.132884
0.034905
0
0.003688
0.327324
6,046
168
149
35.988095
0.799361
0.133311
0
0.185567
0
0.020619
0.052681
0.01317
0
0
0
0
0
0
null
null
0
0.020619
null
null
0.010309
0
0
0
null
0
0
0
0
0
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
650c687c2aa892784fed03faf887190ac6a55992
3,718
py
Python
bitten/tests/notify.py
dokipen/bitten
d4d2829c63eec84bcfab05ec7035a23e85d90c00
[ "BSD-3-Clause" ]
1
2016-08-28T03:13:03.000Z
2016-08-28T03:13:03.000Z
bitten/tests/notify.py
dokipen/bitten
d4d2829c63eec84bcfab05ec7035a23e85d90c00
[ "BSD-3-Clause" ]
null
null
null
bitten/tests/notify.py
dokipen/bitten
d4d2829c63eec84bcfab05ec7035a23e85d90c00
[ "BSD-3-Clause" ]
null
null
null
#-*- coding: utf-8 -*- # # Copyright (C) 2007 Ole Trenner, <ole@jayotee.de> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. import unittest from trac.db import DatabaseManager from trac.test import EnvironmentStub, M...
38.329897
83
0.687197
442
3,718
5.60181
0.316742
0.031099
0.01454
0.025848
0.344911
0.337641
0.307754
0.268174
0.197092
0.105008
0
0.002737
0.213825
3,718
96
84
38.729167
0.844338
0.09064
0
0.074627
0
0
0.102884
0
0
0
0
0.010417
0.074627
1
0.179104
false
0.014925
0.089552
0
0.328358
0
0
0
0
null
0
0
0
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
650ec3bb5d3381c505f9bd3240d3f221d5e35e00
660
py
Python
open_data/dataset/migrations/0005_keyword_squashed_0006_remove_keyword_relevancy.py
balfroim/OpenData
f0334dae16c2806e81f7d2d53adeabc72403ecce
[ "MIT" ]
null
null
null
open_data/dataset/migrations/0005_keyword_squashed_0006_remove_keyword_relevancy.py
balfroim/OpenData
f0334dae16c2806e81f7d2d53adeabc72403ecce
[ "MIT" ]
null
null
null
open_data/dataset/migrations/0005_keyword_squashed_0006_remove_keyword_relevancy.py
balfroim/OpenData
f0334dae16c2806e81f7d2d53adeabc72403ecce
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-04-21 13:01 from django.db import migrations, models class Migration(migrations.Migration): replaces = [('dataset', '0005_keyword'), ('dataset', '0006_remove_keyword_relevancy')] dependencies = [ ('dataset', '0004_alter_theme_id'), ] operation...
28.695652
118
0.587879
64
660
5.90625
0.796875
0
0
0
0
0
0
0
0
0
0
0.058824
0.278788
660
22
119
30
0.735294
0.065152
0
0
1
0
0.215852
0.048904
0
0
0
0
0
1
0
false
0
0.066667
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
651500c04d2f53be7a66dad2701232feba9db8b0
4,919
py
Python
MachineLearning/potential_field.py
JhaAman/lihax
c0421f62d7b86908a7c74251c1dc35b1407c4568
[ "MIT" ]
null
null
null
MachineLearning/potential_field.py
JhaAman/lihax
c0421f62d7b86908a7c74251c1dc35b1407c4568
[ "MIT" ]
null
null
null
MachineLearning/potential_field.py
JhaAman/lihax
c0421f62d7b86908a7c74251c1dc35b1407c4568
[ "MIT" ]
null
null
null
#!/usr/bin/env python import math, socket, struct, numpy as np, sys # Get the gradient of the potential of an obstacle # particle at (ox, oy) with the origin at (mx, my) # Get the potential of an obstacle particle at (ox, oy) # with the origin at (mx, my) def potential(mx, my, ox, oy): 1.0 / ((mx - ox)**2 + (m...
42.042735
237
0.584468
700
4,919
3.975714
0.307143
0.025871
0.032339
0.011858
0.173194
0.145167
0.107797
0.075458
0.075458
0.075458
0
0.034762
0.32161
4,919
116
238
42.405172
0.799221
0.350274
0
0
0
0
0.005388
0
0
0
0
0
0
0
null
null
0
0.017544
null
null
0.017544
0
0
0
null
0
0
0
0
0
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
6515124d4e3250bc474b369d4832ef055edc0d00
5,031
py
Python
decomp/c/gen.py
nihilus/epanos
998a9e3f45337df98b1bbc40b64954b079a1d4de
[ "MIT" ]
1
2017-07-25T00:05:09.000Z
2017-07-25T00:05:09.000Z
decomp/c/gen.py
nihilus/epanos
998a9e3f45337df98b1bbc40b64954b079a1d4de
[ "MIT" ]
null
null
null
decomp/c/gen.py
nihilus/epanos
998a9e3f45337df98b1bbc40b64954b079a1d4de
[ "MIT" ]
null
null
null
from itertools import imap, chain from pycparser import c_generator, c_ast from decomp import data, ida from decomp.c import decl as cdecl, types as ep_ct from decomp.cpu import ida as cpu_ida XXX_INTRO_HACK = cpu_ida.ida_current_cpu().insns.support_header + ''' #include <stdint.h> typedef union EPANOS_REG { uint8...
33.993243
135
0.624329
772
5,031
3.823834
0.310881
0.070122
0.03252
0.035569
0.170732
0.153455
0.153455
0.124322
0.113821
0.099594
0
0.016609
0.258
5,031
147
136
34.22449
0.774176
0.098788
0
0.086957
0
0
0.178506
0
0
0
0
0.006803
0
0
null
null
0
0.043478
null
null
0.034783
0
0
0
null
0
0
0
0
0
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
65185342728b8ea46c26ce2b78a8072737b087c9
2,102
py
Python
example/py/CHSHInequality/chsh_inequality.py
samn33/qlazy
b215febfec0a3b8192e57a20ec85f14576745a89
[ "Apache-2.0" ]
15
2019-04-09T13:02:58.000Z
2022-01-13T12:57:08.000Z
example/py/CHSHInequality/chsh_inequality.py
samn33/qlazy
b215febfec0a3b8192e57a20ec85f14576745a89
[ "Apache-2.0" ]
3
2020-02-26T16:21:18.000Z
2022-03-31T00:46:53.000Z
example/py/CHSHInequality/chsh_inequality.py
samn33/qlazy
b215febfec0a3b8192e57a20ec85f14576745a89
[ "Apache-2.0" ]
3
2021-01-28T05:38:55.000Z
2021-10-30T12:19:19.000Z
import random from qlazy import QState def classical_strategy(trials=1000): win_cnt = 0 for _ in range(trials): # random bits by Charlie (x,y) x = random.randint(0,1) y = random.randint(0,1) # response by Alice (a) a = 0 # response by Bob (b) b = 0 ...
25.634146
77
0.450523
299
2,102
3.100334
0.22408
0.038835
0.06041
0.064725
0.677454
0.677454
0.640777
0.640777
0.601942
0.601942
0
0.067098
0.411513
2,102
81
78
25.950617
0.682296
0.207422
0
0.68
0
0
0.079952
0
0
0
0
0
0
1
0.04
false
0
0.04
0
0.08
0.08
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
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
652cc48a5f826ddc6ae73b306f5bcedc4dba7eb7
1,659
py
Python
Murphi/ModularMurphi/TemplateClass.py
icsa-caps/HieraGen
4026c1718878d2ef69dd13d3e6e10cab69174fda
[ "MIT" ]
6
2020-07-07T15:45:13.000Z
2021-08-29T06:44:29.000Z
Murphi/ModularMurphi/TemplateClass.py
icsa-caps/HieraGen
4026c1718878d2ef69dd13d3e6e10cab69174fda
[ "MIT" ]
null
null
null
Murphi/ModularMurphi/TemplateClass.py
icsa-caps/HieraGen
4026c1718878d2ef69dd13d3e6e10cab69174fda
[ "MIT" ]
null
null
null
import inspect import os import re class TemplateHandler: # Constant definitions tab = " " nl = "\n" sem = ";" end = sem + nl def __init__(self, template_dir: str): self.templatepath = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) + \ ...
29.105263
120
0.485835
146
1,659
5.431507
0.452055
0.027743
0.027743
0.030265
0.035309
0
0
0
0
0
0
0.001657
0.272453
1,659
56
121
29.625
0.655344
0.0217
0
0.15
0
0
0.016571
0
0
0
0
0
0
1
0.175
false
0
0.075
0.05
0.575
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
652e84bd8ad0187eda337ba399fb9e1a9cdb03eb
377
py
Python
setup.py
PaulDodd/pynomial
8da81bf37ee96b8e3c49b40cdfcae075ba667632
[ "Apache-2.0" ]
null
null
null
setup.py
PaulDodd/pynomial
8da81bf37ee96b8e3c49b40cdfcae075ba667632
[ "Apache-2.0" ]
null
null
null
setup.py
PaulDodd/pynomial
8da81bf37ee96b8e3c49b40cdfcae075ba667632
[ "Apache-2.0" ]
null
null
null
import sys from setuptools import setup, find_packages setup( name='pynomial', version='0.0.0', packages=find_packages(), author='Paul M Dodd', author_email='pdodd@umich.edu', description="python package for combinatorial problems", url="https://github.com/PaulDodd/pynomial.git", instal...
26.928571
64
0.70557
47
377
5.553191
0.765957
0.091954
0
0
0
0
0
0
0
0
0
0.009554
0.167109
377
13
65
29
0.821656
0.092838
0
0
0
0
0.35503
0
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
65489ab1059af5d3af74f3912af4a5da4c39124a
383
py
Python
las1.2.py
Theskill19/sweetpotato
7cb46c412f400bcd51838db365038a766cf593cd
[ "CC0-1.0" ]
null
null
null
las1.2.py
Theskill19/sweetpotato
7cb46c412f400bcd51838db365038a766cf593cd
[ "CC0-1.0" ]
null
null
null
las1.2.py
Theskill19/sweetpotato
7cb46c412f400bcd51838db365038a766cf593cd
[ "CC0-1.0" ]
null
null
null
#2. Пользователь вводит время в секундах. # Переведите время в часы, минуты и секунды и выведите в формате чч:мм:сс. # Используйте форматирование строк. time = int(input("Введите время в секундах ")) hours = time // 3600 minutes = (time - hours * 3600) // 60 seconds = time - (hours * 3600 + minutes * 60) print...
42.555556
75
0.681462
55
383
4.745455
0.545455
0.091954
0.10728
0.091954
0.10728
0
0
0
0
0
0
0.055016
0.193211
383
9
76
42.555556
0.789644
0.383812
0
0
0
0
0.367257
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
654b5be42b94507090bb99be14ad14d6bad404c8
427
py
Python
src/bananas/drf/errors.py
beshrkayali/django-bananas
8e832ca91287c5b3eed5af8de948c67fd026c4b9
[ "MIT" ]
26
2015-04-07T12:18:26.000Z
2021-07-23T18:05:52.000Z
src/bananas/drf/errors.py
beshrkayali/django-bananas
8e832ca91287c5b3eed5af8de948c67fd026c4b9
[ "MIT" ]
55
2016-10-25T08:13:50.000Z
2022-03-04T12:53:24.000Z
src/bananas/drf/errors.py
beshrkayali/django-bananas
8e832ca91287c5b3eed5af8de948c67fd026c4b9
[ "MIT" ]
16
2015-10-13T10:11:59.000Z
2021-11-11T12:30:32.000Z
from rest_framework import status from rest_framework.exceptions import APIException class PreconditionFailed(APIException): status_code = status.HTTP_412_PRECONDITION_FAILED default_detail = "An HTTP precondition failed" default_code = "precondition_failed" class BadRequest(APIException): status_co...
28.466667
53
0.800937
49
427
6.653061
0.44898
0.165644
0.104294
0.171779
0.196319
0
0
0
0
0
0
0.016438
0.145199
427
14
54
30.5
0.876712
0
0
0
0
0
0.173302
0
0
0
0
0
0
1
0
false
0
0.2
0
1
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
e8da2871c87cf2076690059ef9b906d674072b5a
846
py
Python
setup.py
stshrive/pycense
5bfd1b7b6b326a5592f58d621ee596c6c1d8a490
[ "MIT" ]
null
null
null
setup.py
stshrive/pycense
5bfd1b7b6b326a5592f58d621ee596c6c1d8a490
[ "MIT" ]
5
2018-09-15T23:40:11.000Z
2018-10-05T22:57:13.000Z
setup.py
stshrive/pycense
5bfd1b7b6b326a5592f58d621ee596c6c1d8a490
[ "MIT" ]
1
2018-10-04T23:43:42.000Z
2018-10-04T23:43:42.000Z
import os import setuptools VERSION = "1.0.0a1+dev" INSTALL_REQUIRES = [ 'pip-licenses', ] CLASSIFIERS = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research' ] def read(fname): return open(os.path.join(os.path.dirname(__file__), fname))....
24.171429
78
0.682033
96
846
5.802083
0.677083
0.08079
0
0
0
0
0
0
0
0
0
0.011348
0.166667
846
34
79
24.882353
0.778723
0.027187
0
0
0
0
0.380488
0.067073
0
0
0
0.029412
0
1
0.035714
false
0
0.071429
0.035714
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e8e227fac1aeb6cb15d17a60f96b91194af13f7f
639
py
Python
api/cueSearch/migrations/0005_searchcardtemplate_connectiontype.py
cuebook/CueSearch
8bf047de273b27bba41b8bf4e266aac1eee7f81a
[ "Apache-2.0" ]
3
2022-02-10T17:00:19.000Z
2022-03-29T14:31:25.000Z
api/cueSearch/migrations/0005_searchcardtemplate_connectiontype.py
cuebook/CueSearch
8bf047de273b27bba41b8bf4e266aac1eee7f81a
[ "Apache-2.0" ]
null
null
null
api/cueSearch/migrations/0005_searchcardtemplate_connectiontype.py
cuebook/CueSearch
8bf047de273b27bba41b8bf4e266aac1eee7f81a
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.5 on 2022-02-18 08:20 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("dataset", "0001_initial"), ("cueSearch", "0004_auto_20220217_0217"), ] operations = [ migrations.Ad...
24.576923
61
0.57277
62
639
5.790323
0.693548
0.066852
0.077994
0.122563
0
0
0
0
0
0
0
0.08046
0.319249
639
25
62
25.56
0.744828
0.070423
0
0.105263
1
0
0.177365
0.076014
0
0
0
0
0
1
0
false
0
0.105263
0
0.263158
0
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
e8e29b7b8972a06149daa7c111affc519cbc1ff4
629
py
Python
FormulaAccordingPrint.py
FreeBirdsCrew/Brainstorming_Codes
9d06216cd0772ce56586acff2c240a210b94ba1f
[ "Apache-2.0" ]
1
2020-12-11T10:24:08.000Z
2020-12-11T10:24:08.000Z
FormulaAccordingPrint.py
FreeBirdsCrew/Brainstorming_Codes
9d06216cd0772ce56586acff2c240a210b94ba1f
[ "Apache-2.0" ]
null
null
null
FormulaAccordingPrint.py
FreeBirdsCrew/Brainstorming_Codes
9d06216cd0772ce56586acff2c240a210b94ba1f
[ "Apache-2.0" ]
null
null
null
""" Write a program that calculates and prints the value according to the given formula: Q = Square root of [(2 * C * D)/H] Following are the fixed values of C and H: C is 50. H is 30. D is the variable whose values should be input to your program in a comma-separated sequence. Example Let us assume the followin...
28.590909
94
0.694754
116
629
3.758621
0.551724
0.022936
0
0
0
0
0
0
0
0
0
0.049702
0.200318
629
22
95
28.590909
0.817097
0
0
0
0
0
0.011299
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e8e693322ca4748ac11e7ad6f26ec9749c3ce95e
904
py
Python
Python Notebook/Python files/data_utility.py
wilfy9249/Capstone-Fall-18
832632eb00a10240e0ad16c364449d5020814c83
[ "MIT" ]
2
2018-10-24T21:32:17.000Z
2019-02-19T21:15:29.000Z
Python Notebook/Python files/data_utility.py
wilfy9249/Capstone-Fall-18
832632eb00a10240e0ad16c364449d5020814c83
[ "MIT" ]
null
null
null
Python Notebook/Python files/data_utility.py
wilfy9249/Capstone-Fall-18
832632eb00a10240e0ad16c364449d5020814c83
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import numpy as np import pandas as pd import os # In[2]: #function to get current directory def getCurrentDirectory(): listDirectory = os.listdir('../') return listDirectory # In[3]: #function to read csv file def readCsvFile(path): crimes_original =...
14.580645
85
0.692478
124
904
4.967742
0.508065
0.081169
0.042208
0
0
0
0
0
0
0
0
0.00955
0.189159
904
61
86
14.819672
0.830832
0.234513
0
0
0
0
0.004451
0
0
0
0
0
0
1
0.277778
false
0
0.166667
0
0.722222
0
0
0
0
null
0
0
0
0
0
0
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
e8ec71dfe68f78e0bbd64c46510e470c4242fa2e
1,228
py
Python
aiphysim/models/spacetime.py
perovai/deepkoopman
eb6de915f5ea1f20b47cb3a22a384f55c30f0558
[ "MIT" ]
null
null
null
aiphysim/models/spacetime.py
perovai/deepkoopman
eb6de915f5ea1f20b47cb3a22a384f55c30f0558
[ "MIT" ]
10
2021-07-07T09:24:33.000Z
2021-09-27T14:32:59.000Z
aiphysim/models/spacetime.py
perovai/deepkoopman
eb6de915f5ea1f20b47cb3a22a384f55c30f0558
[ "MIT" ]
null
null
null
import torch import torch.nn as nn class SpaceTime(nn.Module): def __init__(self, opts): # TODO: Add things like no. of hidden layers to opts pass class LSTM(nn.Module): # This class is largely derived from # https://stackabuse.com/time-series-prediction-using-lstm-with-pytorch-in-python...
34.111111
98
0.666124
173
1,228
4.479769
0.358382
0.127742
0.154839
0.085161
0.273548
0.08
0.08
0.08
0
0
0
0.022436
0.237785
1,228
35
99
35.085714
0.805556
0.286645
0
0.095238
0
0
0
0
0
0
0
0.028571
0
1
0.142857
false
0.047619
0.095238
0
0.380952
0
0
0
0
null
0
0
0
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
e8ed02dac89d480ead9705b1ad919290dfc731c8
934
py
Python
fabfile/text.py
nprapps/austin
45237e878260678bbeb57801e798b89e67ad4e0b
[ "MIT" ]
7
2015-01-26T16:02:49.000Z
2015-04-01T12:37:52.000Z
fabfile/text.py
nprapps/austin
45237e878260678bbeb57801e798b89e67ad4e0b
[ "MIT" ]
272
2015-01-26T16:37:22.000Z
2016-04-04T17:08:55.000Z
fabfile/text.py
nprapps/austin
45237e878260678bbeb57801e798b89e67ad4e0b
[ "MIT" ]
4
2015-03-05T00:38:17.000Z
2021-02-23T10:26:28.000Z
#!/usr/bin/env python """ Commands related to syncing copytext from Google Docs. """ from fabric.api import task from termcolor import colored import app_config from etc.gdocs import GoogleDoc @task(default=True) def update(): """ Downloads a Google Doc as an Excel file. """ if app_config.COPY_GOOGL...
24.578947
175
0.586724
133
934
3.984962
0.473684
0.084906
0.098113
0.120755
0.267925
0.267925
0.09434
0.09434
0
0
0
0.006079
0.295503
934
37
176
25.243243
0.799392
0.021413
0
0.173913
0
0.043478
0.206549
0
0
0
0
0
0
0
null
null
0
0.173913
null
null
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e8f5e5aaaf237abae1b7ee4f6b5a71282972a181
428
py
Python
snapmerge/home/migrations/0010_project_email.py
R4356th/smerge
2f2a6a4acfe3903ed4f71d90537f7277248e8b59
[ "MIT" ]
13
2018-07-16T09:59:55.000Z
2022-01-27T19:07:17.000Z
snapmerge/home/migrations/0010_project_email.py
R4356th/smerge
2f2a6a4acfe3903ed4f71d90537f7277248e8b59
[ "MIT" ]
55
2018-07-16T12:17:58.000Z
2022-03-17T16:10:30.000Z
snapmerge/home/migrations/0010_project_email.py
R4356th/smerge
2f2a6a4acfe3903ed4f71d90537f7277248e8b59
[ "MIT" ]
4
2019-10-10T20:16:49.000Z
2021-03-12T07:15:50.000Z
# Generated by Django 2.0.1 on 2018-07-26 12:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0009_auto_20180726_1214'), ] operations = [ migrations.AddField( model_name='project', name='email', ...
22.526316
97
0.61215
49
428
5.22449
0.816327
0.070313
0
0
0
0
0
0
0
0
0
0.10828
0.266355
428
18
98
23.777778
0.707006
0.10514
0
0
1
0
0.115486
0.060367
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
e8fb499b8bff3a7d1f52fd19a5495fe47b6684e5
2,165
py
Python
bot/lib/controller/GetCommentTask.py
nullwriter/ig-actor
a089107657ccdf11ba213160c4cc5d3690cecd76
[ "MIT" ]
null
null
null
bot/lib/controller/GetCommentTask.py
nullwriter/ig-actor
a089107657ccdf11ba213160c4cc5d3690cecd76
[ "MIT" ]
null
null
null
bot/lib/controller/GetCommentTask.py
nullwriter/ig-actor
a089107657ccdf11ba213160c4cc5d3690cecd76
[ "MIT" ]
null
null
null
import time import re from FileLogger import FileLogger as FL import datetime class GetCommentTask: def __init__(self, task, name="extract-comment"): self.task = task self.name = name self.comments = [] self.log = FL('Extracted Comments {:%Y-%m-%d %H:%M:%S}.txt'.format(datetime.da...
28.116883
100
0.525635
257
2,165
4.229572
0.385214
0.080957
0.049678
0.034959
0
0
0
0
0
0
0
0.004916
0.342263
2,165
76
101
28.486842
0.758427
0
0
0.113208
0
0
0.127299
0.030978
0
0
0
0
0
0
null
null
0
0.075472
null
null
0.09434
0
0
0
null
0
0
0
0
0
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
e8fc53ef376367f7c8b17273ac9b30e8bcf26788
4,981
py
Python
scripts/mc_counting_same_origin.py
jonassagild/Track-to-Track-Fusion
6bb7fbe6a6e2d9a2713c47f211899226485eee79
[ "MIT" ]
4
2021-06-16T19:33:56.000Z
2022-03-14T06:47:41.000Z
scripts/mc_counting_same_origin.py
jonassagild/Track-to-Track-Fusion
6bb7fbe6a6e2d9a2713c47f211899226485eee79
[ "MIT" ]
2
2021-06-08T16:18:45.000Z
2021-11-25T09:38:08.000Z
scripts/mc_counting_same_origin.py
jonassagild/Track-to-Track-Fusion
6bb7fbe6a6e2d9a2713c47f211899226485eee79
[ "MIT" ]
4
2020-09-28T04:54:17.000Z
2021-10-15T15:58:38.000Z
""" script to run mc sims on the three associations techniques when the tracks origin are equal. Used to calculate the total number of correctly associating tracks and total # falsly not associating tracks from the same target. """ import numpy as np from stonesoup.types.state import GaussianState from data_associati...
49.81
116
0.682995
608
4,981
5.264803
0.273026
0.056232
0.04811
0.053421
0.20806
0.1612
0.11059
0.084349
0.072477
0.072477
0
0.022402
0.256173
4,981
99
117
50.313131
0.841565
0.20779
0
0
0
0
0.052094
0.037028
0
0
0
0.010101
0
1
0
false
0
0.111111
0
0.111111
0.015873
0
0
0
null
0
0
0
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
3302f95944549893e6c718830b8f06c614895c10
8,700
py
Python
Python/cs611python.py
david145/CS6112018
7a74c239bf5157507594157b5871c9d0c70fcc23
[ "MIT" ]
null
null
null
Python/cs611python.py
david145/CS6112018
7a74c239bf5157507594157b5871c9d0c70fcc23
[ "MIT" ]
1
2018-10-29T17:41:08.000Z
2018-10-29T17:41:08.000Z
Python/cs611python.py
david145/CS6112018
7a74c239bf5157507594157b5871c9d0c70fcc23
[ "MIT" ]
null
null
null
print("\n") print("PythonExercises-v2 by David Bochan") print("\n") print("=== EXERCISE 1 ===") print("\n") print("(a) 5 / 3 = " + str(5 / 3)) print("=> with python3 you can receive a float even if you divide two \ integers") print("\n") print("(b) 5 % 3 = " + str(5 % 3)) print("=> % is the modulus which divides lef...
23.138298
79
0.608046
1,400
8,700
3.704286
0.166429
0.06479
0.091207
0.047628
0.260509
0.17258
0.120902
0.120902
0.099306
0.081566
0
0.051979
0.192874
8,700
376
80
23.138298
0.686557
0
0
0.254753
0
0.003802
0.201356
0.026779
0
0
0
0
0
1
0.045627
false
0.003802
0.015209
0
0.110266
0.551331
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
3304cda4bb7181483694fd293ce4ad5249b9bc1e
2,178
py
Python
checkov/terraform/checks/resource/kubernetes/PodSecurityContext.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
checkov/terraform/checks/resource/kubernetes/PodSecurityContext.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
checkov/terraform/checks/resource/kubernetes/PodSecurityContext.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
from checkov.common.models.enums import CheckCategories, CheckResult from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck class PodSecurityContext(BaseResourceCheck): def __init__(self): # CIS-1.5 5.7.3 name = "Apply security context to your pods and containers" ...
41.09434
106
0.596878
221
2,178
5.751131
0.343891
0.107002
0.072384
0.040913
0.329662
0.329662
0.329662
0.329662
0.329662
0.329662
0
0.009875
0.302571
2,178
52
107
41.884615
0.82686
0.031221
0
0.368421
0
0
0.140959
0.043189
0
0
0
0
0
1
0.052632
false
0.052632
0.052632
0
0.342105
0
0
0
0
null
0
0
0
0
0
0
0
0
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
3305691c62826956ff8ed131b9e4f86523e06726
1,431
py
Python
repos/system_upgrade/common/models/selinux.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
null
null
null
repos/system_upgrade/common/models/selinux.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
1
2022-03-07T15:34:11.000Z
2022-03-07T15:35:15.000Z
repos/system_upgrade/common/models/selinux.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
null
null
null
from leapp.models import fields, Model from leapp.topics import SystemInfoTopic, TransactionTopic class SELinuxModule(Model): """SELinux module in cil including priority""" topic = SystemInfoTopic name = fields.String() priority = fields.Integer() content = fields.String() # lines removed due ...
31.108696
70
0.716981
167
1,431
6.11976
0.461078
0.082192
0.109589
0.107632
0.189824
0.066536
0
0
0
0
0
0.009532
0.193571
1,431
45
71
31.8
0.876083
0.391335
0
0.25
0
0
0
0
0
0
0
0
0
1
0
false
0
0.1
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
330597e751b125d41e61a3b1d6607b8ceee7379c
21,902
py
Python
annotator_web.py
j20100/Seg_Annotator
49b2806be9450c901cf4977633a4ec29b3b6bdca
[ "CC-BY-4.0" ]
null
null
null
annotator_web.py
j20100/Seg_Annotator
49b2806be9450c901cf4977633a4ec29b3b6bdca
[ "CC-BY-4.0" ]
null
null
null
annotator_web.py
j20100/Seg_Annotator
49b2806be9450c901cf4977633a4ec29b3b6bdca
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import argparse import base64 from bson import ObjectId import datetime from flask import Flask, Markup, Response, abort, escape, flash, redirect, \ render_template, request, url_for from flask_login import LoginManager, UserMixin, current_user, login_requir...
34.98722
103
0.630079
2,611
21,902
5.149368
0.197242
0.029751
0.026776
0.017851
0.283897
0.232652
0.181034
0.141019
0.089922
0.07698
0
0.00591
0.242855
21,902
625
104
35.0432
0.80486
0.113551
0
0.234375
0
0.002232
0.19384
0.025658
0
0
0
0
0
1
0.087054
false
0.060268
0.064732
0.013393
0.270089
0.026786
0
0
0
null
0
0
0
0
0
0
0
0
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
3315429c0aa928801a1243413b1efad540cf1405
1,102
py
Python
core/migrations/0002_meetup.py
hatsem78/django_docker_nginex_nginx_gunicorn
15cb7d2d9ecfd2a2f9bf054997a35903c2ee0ce3
[ "MIT" ]
null
null
null
core/migrations/0002_meetup.py
hatsem78/django_docker_nginex_nginx_gunicorn
15cb7d2d9ecfd2a2f9bf054997a35903c2ee0ce3
[ "MIT" ]
null
null
null
core/migrations/0002_meetup.py
hatsem78/django_docker_nginex_nginx_gunicorn
15cb7d2d9ecfd2a2f9bf054997a35903c2ee0ce3
[ "MIT" ]
null
null
null
# Generated by Django 2.2.16 on 2020-09-29 23:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.CreateModel( name='Meetup', fields=[ ('id', mod...
36.733333
115
0.579855
108
1,102
5.777778
0.574074
0.051282
0.057692
0.076923
0.125
0.125
0.125
0
0
0
0
0.036662
0.282214
1,102
29
116
38
0.752212
0.041742
0
0
1
0
0.180266
0
0
0
0
0
0
1
0
false
0
0.043478
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3316542a2058418ad1159222b80cb45ab969c4ba
1,230
py
Python
yocto/poky/bitbake/lib/bb/ui/crumbs/hobcolor.py
jxtxinbing/ops-build
9008de2d8e100f3f868c66765742bca9fa98f3f9
[ "Apache-2.0" ]
16
2017-01-17T15:20:43.000Z
2021-03-19T05:45:14.000Z
yocto/poky/bitbake/lib/bb/ui/crumbs/hobcolor.py
jxtxinbing/ops-build
9008de2d8e100f3f868c66765742bca9fa98f3f9
[ "Apache-2.0" ]
415
2016-12-20T17:20:45.000Z
2018-09-23T07:59:23.000Z
yocto/poky/bitbake/lib/bb/ui/crumbs/hobcolor.py
jxtxinbing/ops-build
9008de2d8e100f3f868c66765742bca9fa98f3f9
[ "Apache-2.0" ]
10
2016-12-20T13:24:50.000Z
2021-03-19T05:46:43.000Z
# # BitBake Graphical GTK User Interface # # Copyright (C) 2012 Intel Corporation # # Authored by Shane Wang <shane.wang@intel.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundat...
31.538462
73
0.662602
164
1,230
4.920732
0.695122
0.040892
0.048327
0.070632
0.101611
0.069393
0
0
0
0
0
0.04281
0.25935
1,230
38
74
32.368421
0.84303
0.603252
0
0
0
0
0.179487
0
0
0
0
0
0
1
0
false
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
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3318dead767f04f859f302ca3cf27d38474b142d
5,739
py
Python
venv/Lib/site-packages/PyQt4/examples/designer/calculatorform/ui_calculatorform.py
prateekfxtd/ns_Startup
095a62b3a8c7bf0ff7b767355d57d993bbd2423d
[ "MIT" ]
1
2022-03-16T02:10:30.000Z
2022-03-16T02:10:30.000Z
venv/Lib/site-packages/PyQt4/examples/designer/calculatorform/ui_calculatorform.py
prateekfxtd/ns_Startup
095a62b3a8c7bf0ff7b767355d57d993bbd2423d
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PyQt4/examples/designer/calculatorform/ui_calculatorform.py
prateekfxtd/ns_Startup
095a62b3a8c7bf0ff7b767355d57d993bbd2423d
[ "MIT" ]
2
2019-05-28T11:58:59.000Z
2020-09-23T17:21:19.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'calculatorform.ui' # # Created: Mon Jan 23 13:21:45 2006 # by: PyQt4 UI code generator vsnapshot-20060120 # # WARNING! All changes made in this file will be lost! import sys from PyQt4 import QtCore, QtGui class Ui_CalculatorForm(obje...
47.429752
343
0.699076
663
5,739
5.957768
0.211161
0.072911
0.035443
0.016203
0.201519
0.145316
0.07443
0.035443
0.018734
0
0
0.048562
0.181913
5,739
120
344
47.825
0.792758
0.040251
0
0
1
0
0.050182
0
0
0
0
0
0
1
0.032609
false
0
0.021739
0.01087
0.076087
0
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
331c64b5688bf0f03e29dded9df8fd3ced9edae7
461
py
Python
tests/programs/misc/causality_1.py
astraldawn/pylps
e9964a24bb38657b180d441223b4cdb9e1dadc8a
[ "MIT" ]
1
2018-05-19T18:28:12.000Z
2018-05-19T18:28:12.000Z
tests/programs/misc/causality_1.py
astraldawn/pylps
e9964a24bb38657b180d441223b4cdb9e1dadc8a
[ "MIT" ]
12
2018-04-26T00:58:11.000Z
2018-05-13T22:03:39.000Z
tests/programs/misc/causality_1.py
astraldawn/pylps
e9964a24bb38657b180d441223b4cdb9e1dadc8a
[ "MIT" ]
null
null
null
from pylps.core import * initialise(max_time=2) create_fluents('test(_, _)') create_actions('hello(_, _)') create_variables('Person', 'Years', 'NewYears', 'OldYears',) initially(test('A', 0),) reactive_rule(True).then( hello('A', 5), ) hello(Person, Years).initiates(test(Person, NewYears)).iff( test(Perso...
18.44
60
0.704989
59
461
5.305085
0.610169
0.105431
0.102236
0
0
0
0
0
0
0
0
0.007299
0.10846
461
24
61
19.208333
0.754258
0
0
0
0
0
0.10846
0
0
0
0
0
0
1
0
true
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
3322558b16b9e4d86a91248106c527a75ff6b943
2,350
py
Python
miyamoto/test/mocks.py
caedesvvv/miyamoto
d781dffeb0b2af3ce679f13114f47e6965d1cdb1
[ "MIT" ]
1
2015-01-20T17:32:19.000Z
2015-01-20T17:32:19.000Z
miyamoto/test/mocks.py
caedesvvv/miyamoto
d781dffeb0b2af3ce679f13114f47e6965d1cdb1
[ "MIT" ]
null
null
null
miyamoto/test/mocks.py
caedesvvv/miyamoto
d781dffeb0b2af3ce679f13114f47e6965d1cdb1
[ "MIT" ]
null
null
null
from twisted.web import server, resource class MockSubscriber(resource.Resource): isLeaf = True def render_GET(self, request): if request.path.endswith('/callback'): return request.args.get('hub.challenge', [''])[0] else: return "Huh?" class MockPublisher(...
33.098592
80
0.625106
304
2,350
4.828947
0.355263
0.070845
0.108992
0.125341
0.433924
0.409401
0.361717
0.341281
0.341281
0.275886
0
0.047492
0.202553
2,350
71
81
33.098592
0.735859
0
0
0.4
0
0.033333
0.747342
0.122926
0
0
0
0
0
1
0.033333
false
0
0.016667
0
0.183333
0
0
0
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
33269c8198e5473d3ddda4bf83fff9637afee268
1,793
py
Python
src/graph2.py
gpu0/nnGraph
ae68af41804ce95dd4dbd6deeea57e377915acc9
[ "MIT" ]
null
null
null
src/graph2.py
gpu0/nnGraph
ae68af41804ce95dd4dbd6deeea57e377915acc9
[ "MIT" ]
null
null
null
src/graph2.py
gpu0/nnGraph
ae68af41804ce95dd4dbd6deeea57e377915acc9
[ "MIT" ]
null
null
null
# t = 2 * (x*y + max(z,w)) class Num: def __init__(self, val): self.val = val def forward(self): return self.val def backward(self, val): print val class Mul: def __init__(self, left, right): self.left = left self.right = right def forward(self): sel...
25.985507
57
0.572783
251
1,793
3.932271
0.139442
0.145897
0.06079
0.091185
0.602837
0.512665
0.444782
0.444782
0.444782
0.444782
0
0.007974
0.300614
1,793
68
58
26.367647
0.779107
0.013385
0
0.377049
0
0
0.004527
0
0
0
0
0
0
0
null
null
0
0
null
null
0.032787
0
0
0
null
0
0
0
0
0
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
332899d38b421fab9695a008493c81d6890c2e39
2,114
py
Python
var/spack/repos/builtin/packages/jemalloc/package.py
ilagunap/spack
510f869c3ae8ac2721debd29e98076212ee75852
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-11-16T02:42:57.000Z
2019-06-06T19:18:50.000Z
var/spack/repos/builtin/packages/jemalloc/package.py
ilagunap/spack
510f869c3ae8ac2721debd29e98076212ee75852
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
18
2021-03-12T16:22:58.000Z
2022-03-02T17:07:08.000Z
var/spack/repos/builtin/packages/jemalloc/package.py
ilagunap/spack
510f869c3ae8ac2721debd29e98076212ee75852
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Jemalloc(AutotoolsPackage): """jemalloc is a general purpose malloc(3) implementation that...
44.041667
100
0.726585
205
2,114
7.463415
0.512195
0.036601
0.005882
0.037909
0.071895
0
0
0
0
0
0
0.24297
0.15894
2,114
47
101
44.978723
0.617548
0.150426
0
0
0
0.03125
0.513483
0.338202
0
0
0
0
0
1
0.03125
false
0
0.03125
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
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
332bc827b9397befa3b3df403d9170657a773ac3
2,372
py
Python
Cura/Cura/plugins/VersionUpgrade/VersionUpgrade34to35/__init__.py
TIAO-JI-FU/3d-printing-with-moveo-1
100ecfd1208fe1890f8bada946145d716b2298eb
[ "MIT" ]
null
null
null
Cura/Cura/plugins/VersionUpgrade/VersionUpgrade34to35/__init__.py
TIAO-JI-FU/3d-printing-with-moveo-1
100ecfd1208fe1890f8bada946145d716b2298eb
[ "MIT" ]
null
null
null
Cura/Cura/plugins/VersionUpgrade/VersionUpgrade34to35/__init__.py
TIAO-JI-FU/3d-printing-with-moveo-1
100ecfd1208fe1890f8bada946145d716b2298eb
[ "MIT" ]
null
null
null
# Copyright (c) 2018 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from typing import Any, Dict, TYPE_CHECKING from . import VersionUpgrade34to35 if TYPE_CHECKING: from UM.Application import Application upgrade = VersionUpgrade34to35.VersionUpgrade34to35() def getMetaData() -> Dict...
38.258065
111
0.52403
167
2,372
7.287425
0.353293
0.103533
0.097781
0.172555
0.387839
0.239934
0
0
0
0
0
0.075016
0.35371
2,372
61
112
38.885246
0.718852
0.072091
0
0.142857
0
0
0.232135
0
0
0
0
0
0
1
0.040816
false
0
0.061224
0.040816
0.142857
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
333dcc9167d75b30415a919b52fe0903e6d5c709
1,453
py
Python
convert-to-loom/convert-to-loom-3.py
mzager/dv-pipelines
3356753cc56a5298bb075f12681f9282d8f08658
[ "MIT" ]
3
2020-02-24T21:08:11.000Z
2020-05-19T18:26:01.000Z
convert-to-loom/convert-to-loom-3.py
mzager/dv-pipelines
3356753cc56a5298bb075f12681f9282d8f08658
[ "MIT" ]
null
null
null
convert-to-loom/convert-to-loom-3.py
mzager/dv-pipelines
3356753cc56a5298bb075f12681f9282d8f08658
[ "MIT" ]
2
2020-01-04T00:23:07.000Z
2020-02-26T17:54:34.000Z
#!/bin/python3 import sys import os import pandas as pd import scanpy as sc import anndata from anndata import AnnData sc.settings.verbosity = 3 # verbosity: errors (0), warnings (1), info (2), hints (3) working_dir = os.getcwd() adata = sc.read(os.path.join(working_dir, 'gene_count.txt'), cache=Tru...
31.586957
94
0.720578
237
1,453
4.337553
0.531646
0.038911
0.029183
0.049611
0.083658
0.083658
0.05642
0.05642
0
0
0
0.010753
0.167928
1,453
45
95
32.288889
0.839537
0.36958
0
0
0
0
0.100887
0
0
0
0
0
0
0
null
null
0
0.24
null
null
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
333fc7cf7e1820391a570f954460758928bb90e7
753
py
Python
069_totient_maximum.py
fbcom/project-euler
3c2194f797d54a0cc04031cd0be153f6a6f849ad
[ "MIT" ]
null
null
null
069_totient_maximum.py
fbcom/project-euler
3c2194f797d54a0cc04031cd0be153f6a6f849ad
[ "MIT" ]
null
null
null
069_totient_maximum.py
fbcom/project-euler
3c2194f797d54a0cc04031cd0be153f6a6f849ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # A Solution to "Totient maximum" – Project Euler Problem No. 69 # by Florian Buetow # # Sourcecode: https://github.com/fbcom/project-euler # Problem statement: https://projecteuler.net/problem=69 def is_prime(n): if n < 2: return False if n == 2: ...
22.818182
95
0.586985
120
753
3.675
0.566667
0.027211
0.027211
0.045351
0
0
0
0
0
0
0
0.04878
0.292165
753
32
96
23.53125
0.776735
0.446215
0
0.263158
0
0
0.022167
0
0
0
0
0
0
0
null
null
0
0
null
null
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
334183eb998b219f40fc5f9ed455577122ddc46b
1,401
py
Python
lectures/07-python-dictionaries/examples/gashlycrumb.py
mattmiller899/biosys-analytics
ab24a4c7206ed9a865e896daa57cee3c4e62df1f
[ "MIT" ]
4
2019-01-10T17:12:37.000Z
2019-03-01T18:25:07.000Z
lectures/07-python-dictionaries/examples/gashlycrumb.py
mattmiller899/biosys-analytics
ab24a4c7206ed9a865e896daa57cee3c4e62df1f
[ "MIT" ]
null
null
null
lectures/07-python-dictionaries/examples/gashlycrumb.py
mattmiller899/biosys-analytics
ab24a4c7206ed9a865e896daa57cee3c4e62df1f
[ "MIT" ]
33
2019-01-05T17:03:47.000Z
2019-11-11T20:48:24.000Z
#!/usr/bin/env python3 """dictionary lookup""" import os import sys args = sys.argv[1:] if len(args) != 1: print('Usage: {} LETTER'.format(os.path.basename(sys.argv[0]))) sys.exit(1) letter = args[0].upper() lines = """ A is for Amy who fell down the stairs. B is for Basil assaulted by bears. C is for Clar...
26.942308
67
0.708779
284
1,401
3.496479
0.556338
0.130916
0.022155
0
0
0
0
0
0
0
0
0.006335
0.211278
1,401
51
68
27.470588
0.892308
0.027837
0
0
0
0
0.750737
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
0.071429
0
0
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
3343300fe9fc63763059c54d0198c6efedcd6999
1,774
py
Python
Lesson 12 Keras/Test_Keras.py
alchemz/Self-Driving-Car-Engineer-Nanodegree
70d6ae9d741b6c53712e0099af04597dc0ba0291
[ "MIT" ]
1
2021-03-20T12:32:35.000Z
2021-03-20T12:32:35.000Z
Lesson 12 Keras/Test_Keras.py
alchemz/Self-Driving-Car-Engineer-Nanodegree
70d6ae9d741b6c53712e0099af04597dc0ba0291
[ "MIT" ]
null
null
null
Lesson 12 Keras/Test_Keras.py
alchemz/Self-Driving-Car-Engineer-Nanodegree
70d6ae9d741b6c53712e0099af04597dc0ba0291
[ "MIT" ]
null
null
null
# Load pickled data import pickle import numpy as np import tensorflow as tf tf.python.control_flow_ops = tf with open('small_train_traffic.p', mode='rb') as f: data = pickle.load(f) X_train, y_train = data['features'], data['labels'] # Initial Setup for Keras from keras.models import Sequential from keras.layer...
30.067797
79
0.756483
274
1,774
4.711679
0.375912
0.055771
0.021689
0.013943
0.088304
0.046476
0
0
0
0
0
0.023642
0.117813
1,774
59
80
30.067797
0.801278
0.108794
0
0.051282
0
0
0.087039
0.02859
0
0
0
0.016949
0
1
0
false
0
0.205128
0
0.205128
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
1
0
0
0
0
0
0
0
0
0
0
1
3344178b165547c21ead9ed9691b9fa23693168d
2,360
py
Python
crude/extrude_crude/take_05_model_run.py
i2mint/crude
29fea0c7cd7cf58055b14bc47519bd527469f8d0
[ "Apache-2.0" ]
null
null
null
crude/extrude_crude/take_05_model_run.py
i2mint/crude
29fea0c7cd7cf58055b14bc47519bd527469f8d0
[ "Apache-2.0" ]
null
null
null
crude/extrude_crude/take_05_model_run.py
i2mint/crude
29fea0c7cd7cf58055b14bc47519bd527469f8d0
[ "Apache-2.0" ]
null
null
null
""" Same as take_04_model_run, but where the dispatch is not as manual. """ from front.crude import KT, StoreName, Mall from crude.extrude_crude.extrude_crude_util import mall, np, apply_model # --------------------------------------------------------------------------------------- # dispatchable function: from front....
34.202899
89
0.677542
320
2,360
4.70625
0.375
0.046481
0.058433
0.045817
0.140106
0.122842
0.042497
0
0
0
0
0.00898
0.197881
2,360
68
90
34.705882
0.786582
0.372458
0
0
0
0
0.049485
0
0
0
0
0.014706
0.027778
1
0.055556
false
0
0.194444
0.027778
0.361111
0
0
0
0
null
0
0
0
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
334ae316e44a87d9de4896827430dd6a339557e7
647
py
Python
api/admin.py
Neoklosch/QuestionBasedServer
7e690944355471d3a9507b0414cbaf1f800bab97
[ "Apache-2.0" ]
null
null
null
api/admin.py
Neoklosch/QuestionBasedServer
7e690944355471d3a9507b0414cbaf1f800bab97
[ "Apache-2.0" ]
7
2020-06-05T17:05:00.000Z
2022-03-11T23:13:05.000Z
api/admin.py
Cookie-Monsters/uQu-Backend
7e690944355471d3a9507b0414cbaf1f800bab97
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from api.models import Answer, Question, User from django import forms class AnswerAdmin(admin.ModelAdmin): model = Answer class QuestionAdmin(admin.ModelAdmin): model = Question # class UserForm(forms.ModelForm): # password = forms.CharField(widget=forms.PasswordInput...
20.870968
60
0.718702
74
647
6.175676
0.432432
0.098468
0.131291
0
0
0
0
0
0
0
0
0
0.170015
647
30
61
21.566667
0.851024
0.347759
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
334de2467a9aad2d75dceb60553a04a3e344347f
2,895
py
Python
src/moreos/parsing.py
sigmavirus24/moreos
a32056d89fa519499e704f978db32b737977e2d7
[ "MIT" ]
3
2020-12-16T16:43:57.000Z
2021-06-03T10:54:55.000Z
src/moreos/parsing.py
sigmavirus24/moreos
a32056d89fa519499e704f978db32b737977e2d7
[ "MIT" ]
null
null
null
src/moreos/parsing.py
sigmavirus24/moreos
a32056d89fa519499e704f978db32b737977e2d7
[ "MIT" ]
null
null
null
"""Parsing utilities for moreos.""" import re import attr @attr.s(frozen=True) class ABNF: """Container of regular expressions both raw and compiled for parsing.""" # From https://tools.ietf.org/html/rfc2616#section-2.2 ctl = control_characters = "\x7f\x00-\x1f" digit = "0-9" separators = r"\[\]...
40.208333
77
0.638342
418
2,895
4.181818
0.380383
0.012014
0.037757
0.038902
0.149886
0.096682
0.037757
0
0
0
0
0.029303
0.16304
2,895
71
78
40.774648
0.692117
0.207599
0
0
0
0
0.420635
0.309083
0
0
0
0
0
1
0
false
0
0.040816
0
0.959184
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
334f49d258643f6f1e499de6346d97b992cad8f0
604
py
Python
tests/test_resources/fixtures/py3_tokens.py
cbillingham/docconvert
2843f7446546ae90ba3f38e1246e69d208e0f053
[ "BSD-3-Clause" ]
8
2019-10-07T22:49:20.000Z
2021-12-30T22:31:28.000Z
tests/test_resources/fixtures/py3_tokens.py
cbillingham/docconvert
2843f7446546ae90ba3f38e1246e69d208e0f053
[ "BSD-3-Clause" ]
5
2019-09-17T21:03:38.000Z
2020-07-23T04:47:21.000Z
tests/test_resources/fixtures/py3_tokens.py
cbillingham/docconvert
2843f7446546ae90ba3f38e1246e69d208e0f053
[ "BSD-3-Clause" ]
null
null
null
"""Module docstring!""" a = 1 b = 2 @bleh @blah def greet( name: str, age: int, *args, test='oh yeah', **kwargs ) -> ({a: 1, b: 2} ): """Generic short description Longer description of this function that does nothing :param arg1: Desc for arg1 :type arg1: arg1_type :r...
17.764706
90
0.596026
86
604
4.151163
0.523256
0.089636
0.02521
0.033613
0.408964
0.408964
0.408964
0.408964
0.408964
0.207283
0
0.035874
0.261589
604
34
91
17.764706
0.764574
0.359272
0
0
0
0
0.056225
0
0
0
0
0
0
1
0.142857
false
0.071429
0
0.071429
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
33515a257e86ab2541599ce4633c5188ac0eb93e
4,393
py
Python
ddot/api.py
agary-ucsd/ddot
6f3755843e11bcf308634f188caca7fc9d4e2da3
[ "MIT" ]
null
null
null
ddot/api.py
agary-ucsd/ddot
6f3755843e11bcf308634f188caca7fc9d4e2da3
[ "MIT" ]
null
null
null
ddot/api.py
agary-ucsd/ddot
6f3755843e11bcf308634f188caca7fc9d4e2da3
[ "MIT" ]
null
null
null
import sys import argparse import bottle import pandas as pd from bottle import Bottle, HTTPError, request from gevent.pywsgi import WSGIServer from geventwebsocket.handler import WebSocketHandler from ddot import Ontology import tempfile import os import csv path_this = os.path.dirname(os.path.abspath(__file__)) os.e...
28.712418
137
0.556795
534
4,393
4.47191
0.342697
0.040201
0.023451
0.022613
0.368509
0.368509
0.351759
0.351759
0.324958
0.283082
0
0.015868
0.311405
4,393
152
138
28.901316
0.773554
0.026633
0
0.422018
0
0
0.130241
0
0
0
0
0
0
0
null
null
0.009174
0.110092
null
null
0.091743
0
0
0
null
0
0
0
0
0
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
3351e52b5194a9276589bc9c2f3638bd2c933566
12,356
py
Python
crystaltoolgui/tabs/tabresmatcher.py
jingshenSN2/CrystalTool
18f07963ff5f2a54ac2c93e2fa59fada51346232
[ "MIT" ]
null
null
null
crystaltoolgui/tabs/tabresmatcher.py
jingshenSN2/CrystalTool
18f07963ff5f2a54ac2c93e2fa59fada51346232
[ "MIT" ]
null
null
null
crystaltoolgui/tabs/tabresmatcher.py
jingshenSN2/CrystalTool
18f07963ff5f2a54ac2c93e2fa59fada51346232
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'tabresmatcher.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore...
56.420091
114
0.717627
1,559
12,356
5.379731
0.12059
0.05437
0.035412
0.02635
0.401574
0.264695
0.174079
0.120901
0.055801
0.043639
0
0.012849
0.168582
12,356
218
115
56.678899
0.803563
0.022499
0
0.034314
1
0
0.094615
0
0
0
0
0
0
1
0.009804
false
0
0.004902
0
0.019608
0
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
3362692f46d8ce99fe607f99e82c59552aa25f04
8,926
py
Python
generalRunFiles/tideCompare.py
wesleybowman/karsten
ef4b2d6debae605902d76cd0484e71c0ba74fdd1
[ "MIT" ]
1
2015-05-04T17:48:56.000Z
2015-05-04T17:48:56.000Z
generalRunFiles/tideCompare.py
wesleybowman/karsten
ef4b2d6debae605902d76cd0484e71c0ba74fdd1
[ "MIT" ]
null
null
null
generalRunFiles/tideCompare.py
wesleybowman/karsten
ef4b2d6debae605902d76cd0484e71c0ba74fdd1
[ "MIT" ]
1
2021-11-15T17:53:19.000Z
2021-11-15T17:53:19.000Z
from __future__ import division import numpy as np import pandas as pd import netCDF4 as nc from datetime import datetime, timedelta import cPickle as pickle import sys sys.path.append('/home/wesley/github/UTide/') from utide import ut_solv import scipy.io as sio from stationClass import station def mjd2num(x): y...
36.284553
143
0.578871
1,093
8,926
4.560842
0.21409
0.044333
0.032497
0.046941
0.442929
0.414845
0.387563
0.361484
0.328987
0.308526
0
0.036895
0.27123
8,926
245
144
36.432653
0.729439
0.186758
0
0.339869
0
0
0.143904
0.075615
0
0
0
0
0
0
null
null
0
0.065359
null
null
0.052288
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3366d6f4ce4dfb447093519d06275a1e825d7959
555
py
Python
app/calc/permissions.py
sajeeshen/WebCalculatorAPI
d951e688e84741cc594877914d292fbddb4e9542
[ "MIT" ]
null
null
null
app/calc/permissions.py
sajeeshen/WebCalculatorAPI
d951e688e84741cc594877914d292fbddb4e9542
[ "MIT" ]
null
null
null
app/calc/permissions.py
sajeeshen/WebCalculatorAPI
d951e688e84741cc594877914d292fbddb4e9542
[ "MIT" ]
null
null
null
from rest_framework import permissions class IsSuperUser(permissions.IsAdminUser): def has_permission(self, request, view): is_admin = super().has_permission(request, view) return request.method in permissions.SAFE_METHODS or is_admin class IsUser(permissions.BasePermission): def has_objec...
26.428571
69
0.652252
62
555
5.693548
0.532258
0.093484
0.11898
0.141643
0
0
0
0
0
0
0
0
0.279279
555
20
70
27.75
0.8825
0
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.071429
0
0.642857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
336a6fab7ed0883fc7d394502eed5edc3d498110
7,986
py
Python
clone-zadara-volume.py
harvard-dce/mh-backup
78a6f987759de22eb27b3b7e29943c7aba70cbac
[ "Apache-2.0" ]
null
null
null
clone-zadara-volume.py
harvard-dce/mh-backup
78a6f987759de22eb27b3b7e29943c7aba70cbac
[ "Apache-2.0" ]
null
null
null
clone-zadara-volume.py
harvard-dce/mh-backup
78a6f987759de22eb27b3b7e29943c7aba70cbac
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import time import logging import logging.config import logging.handlers import yaml from zadarest import ZConsoleClient from zadarest import ZVpsaClient logger = None def setup_logging( log_conf=None ): if log_conf is None: logging.basicConfig( l...
33
105
0.660406
1,087
7,986
4.538178
0.171113
0.050679
0.022704
0.020677
0.297588
0.169876
0.14028
0.127509
0.112102
0.081897
0
0.003558
0.22577
7,986
241
106
33.136929
0.794275
0.020536
0
0.152439
0
0
0.25688
0.015359
0
0
0
0
0
0
null
null
0
0.04878
null
null
0.030488
0
0
0
null
0
0
0
0
0
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
681bea3ce9c8135cbe81134242ec4563bc113cbf
353
py
Python
tools/find-broken-edition-parm.py
ctheune/assembly-cms
20e000373fc30d9a14cb5dc882499b5eed1d86ee
[ "ZPL-2.1" ]
null
null
null
tools/find-broken-edition-parm.py
ctheune/assembly-cms
20e000373fc30d9a14cb5dc882499b5eed1d86ee
[ "ZPL-2.1" ]
null
null
null
tools/find-broken-edition-parm.py
ctheune/assembly-cms
20e000373fc30d9a14cb5dc882499b5eed1d86ee
[ "ZPL-2.1" ]
null
null
null
# Copyright (c) 2010 gocept gmbh & co. kg # See also LICENSE.txt import zope.traversing.api stack = [root['summer10']] while stack: page = stack.pop() for edition in page.editions: for tag in edition.parameters: if not ':' in tag: print zope.traversing.api.getPath(edition)...
23.533333
58
0.637394
47
353
4.787234
0.702128
0.124444
0.151111
0
0
0
0
0
0
0
0
0.022814
0.254958
353
14
59
25.214286
0.8327
0.169972
0
0
0
0
0.031034
0
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.111111
0
0
0
null
0
0
0
0
0
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
681ce2b89477a5b6b497d174c63e24c3840af009
573
py
Python
jqi/completion.py
jan-g/jqi
f304f9fda33ac9b9eae98848d2a64acbe0893131
[ "CC-BY-3.0", "Apache-2.0" ]
3
2020-04-15T13:40:59.000Z
2021-06-30T10:09:33.000Z
jqi/completion.py
jan-g/jqi
f304f9fda33ac9b9eae98848d2a64acbe0893131
[ "CC-BY-3.0", "Apache-2.0" ]
null
null
null
jqi/completion.py
jan-g/jqi
f304f9fda33ac9b9eae98848d2a64acbe0893131
[ "CC-BY-3.0", "Apache-2.0" ]
null
null
null
from .lexer import lex from .parser import top_level from .completer import * from .eval import make_env, splice def completer(s, offset, start=top_level): evaluator = start.parse(lex(s, offset)) def complete(stream="", env=None): if env is None: env = {} env = make_env().update(e...
27.285714
82
0.616056
75
573
4.64
0.493333
0.045977
0
0
0
0
0
0
0
0
0
0
0.287958
573
20
83
28.65
0.852941
0.04363
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
681e1d5a6599b7cdcc0f82c8c9f48fcd4cf5f272
5,107
py
Python
server/shserver/GetCategory.py
AsherYang/ThreeLine
351dc8bfd1c0a536ffbf36ce8b1af953cc71f93a
[ "Apache-2.0" ]
1
2017-05-02T10:02:28.000Z
2017-05-02T10:02:28.000Z
server/shserver/GetCategory.py
AsherYang/ThreeLine
351dc8bfd1c0a536ffbf36ce8b1af953cc71f93a
[ "Apache-2.0" ]
null
null
null
server/shserver/GetCategory.py
AsherYang/ThreeLine
351dc8bfd1c0a536ffbf36ce8b1af953cc71f93a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Author: AsherYang Email: 1181830457@qq.com Date: 2017/7/24 Desc: get weidian token @see https://wiki.open.weidian.com/api#94 url = https://api.vdian.com/api?param={"showNoCate":"0"}&public={"method":"weidian.cate.get.list","access_token":"9882ff6e635aac4740646cf93f23...
34.046667
174
0.639319
568
5,107
5.614437
0.288732
0.006899
0.008467
0.010034
0.237692
0.198495
0.151772
0.08498
0.08498
0.08498
0
0.039525
0.242021
5,107
150
175
34.046667
0.784293
0.101821
0
0.132653
0
0.020408
0.1757
0.011092
0
0
0
0
0
0
null
null
0
0.081633
null
null
0.091837
0
0
0
null
0
0
0
0
0
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
68247d930223fc7ffe60ad9d81a38863a76ea6be
2,832
py
Python
resources/code/train/Python/cp.py
searene/PLDetector
a8052b1d2ba91bfcc3fd4a5252480cf511d8a210
[ "MIT" ]
1
2020-11-09T08:24:17.000Z
2020-11-09T08:24:17.000Z
resources/code/train/Python/cp.py
searene/PLDetector
a8052b1d2ba91bfcc3fd4a5252480cf511d8a210
[ "MIT" ]
null
null
null
resources/code/train/Python/cp.py
searene/PLDetector
a8052b1d2ba91bfcc3fd4a5252480cf511d8a210
[ "MIT" ]
null
null
null
# This file is part of the Hotwire Shell project API. # Copyright (C) 2007 Colin Walters <walters@verbum.org> # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, includin...
42.268657
89
0.676907
374
2,832
5.005348
0.462567
0.047009
0.023504
0.036859
0.088141
0.088141
0.032051
0
0
0
0
0.006527
0.242585
2,832
66
90
42.909091
0.8662
0.39548
0
0
0
0
0.048968
0
0
0
0
0
0.054054
0
null
null
0
0.162162
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
6829fc0412ea7a5055c0ef733f3314f215ac41ec
795
py
Python
kf_lib_data_ingest/templates/my_ingest_package/ingest_package_config.py
kids-first/kf-lib-data-ingest
92889efef082c64744a00a9c110d778da7383959
[ "Apache-2.0" ]
3
2018-10-30T17:56:44.000Z
2020-05-27T16:18:05.000Z
kf_lib_data_ingest/templates/my_ingest_package/ingest_package_config.py
kids-first/kf-lib-data-ingest
92889efef082c64744a00a9c110d778da7383959
[ "Apache-2.0" ]
344
2018-11-01T16:47:56.000Z
2022-02-23T20:36:21.000Z
kf_lib_data_ingest/templates/my_ingest_package/ingest_package_config.py
kids-first/kf-lib-data-ingest
92889efef082c64744a00a9c110d778da7383959
[ "Apache-2.0" ]
1
2020-08-19T21:25:25.000Z
2020-08-19T21:25:25.000Z
""" Ingest Package Config """ # The list of entities that will be loaded into the target service. These # should be class_name values of your target API config's target entity # classes. target_service_entities = [ "family", "participant", "diagnosis", "phenotype", "outcome", "biospecimen", ...
27.413793
75
0.732075
102
795
5.5
0.676471
0.078431
0.096257
0.110517
0
0
0
0
0
0
0
0.003072
0.181132
795
28
76
28.392857
0.858679
0.450314
0
0
0
0
0.522353
0.24
0
0
0
0.035714
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
682a6e3c9903c978ec62e69b0a956020a4566963
1,877
py
Python
src/dbmanage/database_from_csv.py
resolutedreamer/NESLDashboard
b87c65db8bbb2e4999073f08bfd374a3eb769b3d
[ "MIT" ]
null
null
null
src/dbmanage/database_from_csv.py
resolutedreamer/NESLDashboard
b87c65db8bbb2e4999073f08bfd374a3eb769b3d
[ "MIT" ]
null
null
null
src/dbmanage/database_from_csv.py
resolutedreamer/NESLDashboard
b87c65db8bbb2e4999073f08bfd374a3eb769b3d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Written by Anthony Nguyen 2015/06/20 """ import sqlite3 import sys #import smap_analytics as smap_analytics open_this_file = None if len(sys.argv) == 2: open_this_file = sys.argv[1] else: open_this_file = "config/smap_2015.csv" with sqlite3.connect('dashboard.db') as conn: c = c...
31.283333
112
0.580181
257
1,877
4.101167
0.455253
0.062619
0.045541
0.056926
0.07685
0
0
0
0
0
0
0.030069
0.309004
1,877
60
113
31.283333
0.782575
0.152371
0
0.157895
0
0.026316
0.316439
0.026641
0
0
0
0
0
0
null
null
0
0.052632
null
null
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
682b4349f15570d914af6d4986f32343c6454f8e
3,746
py
Python
RevCompLibrary.py
sayloren/fennel
b85a08b36900c23931ef2cd988798ae9e671cf8b
[ "Apache-2.0" ]
null
null
null
RevCompLibrary.py
sayloren/fennel
b85a08b36900c23931ef2cd988798ae9e671cf8b
[ "Apache-2.0" ]
null
null
null
RevCompLibrary.py
sayloren/fennel
b85a08b36900c23931ef2cd988798ae9e671cf8b
[ "Apache-2.0" ]
null
null
null
""" Script to perform RC sorting Wren Saylor July 5 2017 Copyright 2017 Harvard University, Wu Lab 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 ...
41.622222
141
0.780566
465
3,746
6.15914
0.427957
0.031774
0.030726
0.039106
0.207402
0.143506
0.113478
0.041201
0.041201
0
0
0.005672
0.105713
3,746
89
142
42.089888
0.849254
0.108649
0
0.041667
0
0
0.178889
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.020833
0
0
0
null
0
0
0
0
0
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