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
196b692cf7fa6c5bca7e08bae918e3ce1078e721
2,021
py
Python
css-test/launch.py
savithruml/contrail-provisioning-tool
33df991dc9e15b9064e5a76bbbc3f53ab8ca1577
[ "Apache-2.0" ]
null
null
null
css-test/launch.py
savithruml/contrail-provisioning-tool
33df991dc9e15b9064e5a76bbbc3f53ab8ca1577
[ "Apache-2.0" ]
1
2017-12-27T20:02:55.000Z
2017-12-28T10:25:31.000Z
css-test/launch.py
savithruml/contrail-provisioning-tool
33df991dc9e15b9064e5a76bbbc3f53ab8ca1577
[ "Apache-2.0" ]
null
null
null
from flask import Flask, flash, redirect, render_template, request, session, abort, Response import os, subprocess from shelljob import proc application = Flask(__name__) @application.route('/provision', methods=['POST', 'GET']) def provision(): target_node_ip = str(request.form['target-ip']) target_node_passwor...
35.45614
164
0.685799
281
2,021
4.768683
0.405694
0.073881
0.083582
0.025373
0.09403
0.09403
0.085075
0.085075
0.085075
0.085075
0
0.031429
0.134092
2,021
56
165
36.089286
0.734286
0
0
0
0
0.05
0.115289
0
0
0
0
0
0
1
0.1
false
0.075
0.075
0.025
0.275
0
0
0
0
null
0
0
0
0
0
0
0
0
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
196d20ff3dfd833c14aa856640ca2a5f772e94f0
10,076
py
Python
adafruit_rgb_display/rgb.py
caternuson/Adafruit_CircuitPython_RGB_Display
87bf59c195d10529fcd048631391367f9003101c
[ "MIT" ]
null
null
null
adafruit_rgb_display/rgb.py
caternuson/Adafruit_CircuitPython_RGB_Display
87bf59c195d10529fcd048631391367f9003101c
[ "MIT" ]
null
null
null
adafruit_rgb_display/rgb.py
caternuson/Adafruit_CircuitPython_RGB_Display
87bf59c195d10529fcd048631391367f9003101c
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2017 Radomir Dopieralski and Adafruit Industries # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation ...
35.985714
98
0.612346
1,384
10,076
4.351879
0.259393
0.004981
0.015939
0.018927
0.180807
0.131164
0.080027
0.018595
0.012286
0.012286
0
0.021092
0.280071
10,076
279
99
36.114695
0.809209
0.343589
0
0.203593
0
0
0.035508
0
0
0
0.001877
0
0
1
0.155689
false
0.05988
0.053892
0
0.341317
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1979b98b26d6dd51c836e5729fdd32ff55f4ddb9
740
py
Python
ostaas.py
yadav19/simple-student-cloud
96af3d0c928f435c0edb6cc0731fd9b5b5b91f20
[ "Unlicense" ]
2
2020-02-13T19:50:00.000Z
2020-02-29T19:25:14.000Z
ostaas.py
yadav19/simple-student-cloud
96af3d0c928f435c0edb6cc0731fd9b5b5b91f20
[ "Unlicense" ]
null
null
null
ostaas.py
yadav19/simple-student-cloud
96af3d0c928f435c0edb6cc0731fd9b5b5b91f20
[ "Unlicense" ]
null
null
null
#!/usr/bin/python36 print("content-type: text/html") print("") import cgi import subprocess as sp form = cgi.FieldStorage() user_name = form.getvalue('user_name') lv_size = form.getvalue('lv_size') print(user_name) print(lv_size) output=sp.getstatusoutput("sudo ansible-playbook ostaas.yml --extra-vars='user_name={...
26.428571
145
0.728378
119
740
4.394958
0.487395
0.107075
0.080306
0.107075
0.33652
0.198853
0.198853
0.198853
0.198853
0.198853
0
0.009009
0.1
740
27
146
27.407407
0.776276
0.024324
0
0
0
0
0.453537
0.074896
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0.411765
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
1982261ebc17e039ba9461ce8a4b6b1f5a5db853
275
py
Python
Project 8/DeskNotification.py
ingwant/Python-Programs
3022bb3bce70fe59ccd638f407ee36b0a1c71ad9
[ "MIT" ]
null
null
null
Project 8/DeskNotification.py
ingwant/Python-Programs
3022bb3bce70fe59ccd638f407ee36b0a1c71ad9
[ "MIT" ]
null
null
null
Project 8/DeskNotification.py
ingwant/Python-Programs
3022bb3bce70fe59ccd638f407ee36b0a1c71ad9
[ "MIT" ]
null
null
null
# pip install plyer from plyer import notification def send_desk_message(title, message): notification.notify( title=title, message=message, app_icon="circle-48.ico", timeout=5 ) send_desk_message("TITLE", "This is a message....")
18.333333
51
0.650909
34
275
5.117647
0.647059
0.091954
0.172414
0.229885
0
0
0
0
0
0
0
0.014354
0.24
275
14
52
19.642857
0.818182
0.061818
0
0
0
0
0.152344
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.222222
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
1983d445cbbae22f065cb6fd80ecc51c075473dd
4,401
py
Python
src/graphics/panels.py
ukitinu/ttfh
103e902b74533b9d57cdfc4e7e2a4ab3239fed07
[ "Unlicense" ]
1
2022-01-11T21:15:42.000Z
2022-01-11T21:15:42.000Z
src/graphics/panels.py
ukitinu/ttfh
103e902b74533b9d57cdfc4e7e2a4ab3239fed07
[ "Unlicense" ]
null
null
null
src/graphics/panels.py
ukitinu/ttfh
103e902b74533b9d57cdfc4e7e2a4ab3239fed07
[ "Unlicense" ]
null
null
null
from __future__ import annotations import tkinter as tk from typing import Callable from src.graphics import utils from src.graphics.interfaces import Panel from src.timer import Clock class PanelStyle: """ This class holds the immutable style properties of the TextPanel """ def __init__(self, width: int, ...
41.130841
112
0.560554
539
4,401
4.458256
0.211503
0.131086
0.074906
0.05618
0.703704
0.681232
0.672493
0.652518
0.652518
0.652518
0
0.008403
0.324017
4,401
106
113
41.518868
0.799328
0.130198
0
0.552239
0
0
0.008369
0
0
0
0
0
0
1
0.134328
false
0
0.089552
0
0.268657
0
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
1987480ef54940e2cba92d9d0337cddfa880fb19
8,024
py
Python
src/complex_constraints/sushi_net.py
samarthbhargav/symstat
e4de589388f64c90a0bd4d32a353cd86f83ff9ac
[ "Apache-2.0" ]
null
null
null
src/complex_constraints/sushi_net.py
samarthbhargav/symstat
e4de589388f64c90a0bd4d32a353cd86f83ff9ac
[ "Apache-2.0" ]
6
2020-03-24T17:12:24.000Z
2021-09-08T01:02:35.000Z
src/complex_constraints/sushi_net.py
samarthbhargav/symstat
e4de589388f64c90a0bd4d32a353cd86f83ff9ac
[ "Apache-2.0" ]
null
null
null
import argparse import sys import numpy as np from sushi_data import SushiData, to_pairwise_comp from compute_mpe import CircuitMPE import tensorflow as tf FLAGS =None def weight_variable(shape): return tf.Variable(tf.truncated_normal(shape, 0.1)) def bias_variable(shape): return tf.Variable(tf.truncated_norm...
51.10828
243
0.659023
1,228
8,024
4.09202
0.155537
0.087761
0.052935
0.043781
0.526567
0.463682
0.352836
0.302687
0.286368
0.286368
0
0.0188
0.204511
8,024
156
244
51.435897
0.768447
0.104312
0
0.042105
0
0
0.104763
0
0
0
0
0
0
0
null
null
0
0.063158
null
null
0.221053
0
0
0
null
0
0
0
0
0
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
19876f3a7266029b4983c48191ff4ba46d2d2719
3,487
py
Python
moire/array.py
speedcell4/moire
d5acaee4ee0690627f1382debdd6a6f11cec77c7
[ "MIT" ]
2
2018-03-12T19:53:35.000Z
2018-04-12T08:36:22.000Z
moire/array.py
speedcell4/moire
d5acaee4ee0690627f1382debdd6a6f11cec77c7
[ "MIT" ]
4
2018-03-11T06:01:04.000Z
2020-01-15T16:27:35.000Z
moire/array.py
speedcell4/moire
d5acaee4ee0690627f1382debdd6a6f11cec77c7
[ "MIT" ]
null
null
null
import dynet as dy import numpy as np import moire from moire import Expression __all__ = [ 'zeros', 'ones', 'full', 'normal', 'bernoulli', 'uniform', 'gumbel', 'zeros_like', 'ones_like', 'full_like', 'normal_like', 'bernoulli_like', 'uniform_like', 'gumbel_like', 'eye', 'diagonal', 'where', ] def z...
33.528846
107
0.667909
533
3,487
4.251407
0.135084
0.142983
0.095322
0.0812
0.563989
0.497793
0.476611
0.434687
0.349956
0.349956
0
0.016821
0.164611
3,487
103
108
33.854369
0.761071
0
0
0.203125
0
0
0.057069
0
0
0
0
0
0
1
0.265625
false
0
0.0625
0.03125
0.59375
0
0
0
0
null
0
0
0
0
0
0
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
19903ce63433d24e90a8a0d736bbe19dd5edeecc
5,652
py
Python
cinder/backup/drivers/sheepdog.py
AO-AO/cmss-cinder
d1212908041e431d0fa4d42b40c4459a193484e6
[ "Apache-2.0" ]
null
null
null
cinder/backup/drivers/sheepdog.py
AO-AO/cmss-cinder
d1212908041e431d0fa4d42b40c4459a193484e6
[ "Apache-2.0" ]
null
null
null
cinder/backup/drivers/sheepdog.py
AO-AO/cmss-cinder
d1212908041e431d0fa4d42b40c4459a193484e6
[ "Apache-2.0" ]
null
null
null
#coding:utf-8 import time import json import urllib2 from oslo.config import cfg from cinder import exception from oslo_log import log as logging from cinder.backup.driver import BackupDriver LOG = logging.getLogger(__name__) service_opts = [ cfg.StrOpt('cinder_ip', default='172.16.172.250:8776', ...
31.575419
100
0.535386
593
5,652
4.973019
0.234401
0.035266
0.028484
0.087826
0.533062
0.500509
0.500509
0.459139
0.459139
0.459139
0
0.013773
0.344834
5,652
178
101
31.752809
0.782609
0.010616
0
0.50365
0
0
0.171943
0
0
0
0
0
0
0
null
null
0
0.051095
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
1990bb5ad9c7e0fd8b640d8d7d57c4879323584e
400
py
Python
app/common/helpers.py
citizensvs/cvc19backend
0a07aefea314d12c914a744ef0d87ecd3e28adbe
[ "MIT" ]
1
2020-04-07T22:42:54.000Z
2020-04-07T22:42:54.000Z
app/common/helpers.py
citizensvs/cvc19backend
0a07aefea314d12c914a744ef0d87ecd3e28adbe
[ "MIT" ]
6
2020-04-07T20:54:36.000Z
2020-04-09T23:08:25.000Z
app/common/helpers.py
citizensvs/cvc19backend
0a07aefea314d12c914a744ef0d87ecd3e28adbe
[ "MIT" ]
null
null
null
from app.common.conf import PHONE_NUMBER_VALIDATOR def phone_number_valid(phone_number): if phone_number.isdigit(): if PHONE_NUMBER_VALIDATOR.match(phone_number): return True raise ValueError def normalize_phone_number(phone): phone = phone.replace("+", "") phone = phone.replace(...
23.529412
54
0.6625
50
400
5.08
0.46
0.30315
0.15748
0
0
0
0
0
0
0
0
0.012903
0.225
400
16
55
25
0.806452
0
0
0
0
0
0.0275
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.416667
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
199d64aef580823e24ecaadcc7bafd6bdb3ab419
488
py
Python
reading/book/migrations/0003_auto_20180613_1926.py
Family-TreeSY/reading
a35d1242ce3a7303fe125c11de8125bd9afbdb3c
[ "MIT" ]
2
2018-06-20T09:39:41.000Z
2019-10-31T05:54:52.000Z
reading/book/migrations/0003_auto_20180613_1926.py
Family-TreeSY/reading
a35d1242ce3a7303fe125c11de8125bd9afbdb3c
[ "MIT" ]
null
null
null
reading/book/migrations/0003_auto_20180613_1926.py
Family-TreeSY/reading
a35d1242ce3a7303fe125c11de8125bd9afbdb3c
[ "MIT" ]
1
2019-07-08T03:41:23.000Z
2019-07-08T03:41:23.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2018-06-13 11:26 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('book', '0002_auto_20180613_1914'), ] operations = [ migrations.AlterField( ...
23.238095
92
0.620902
56
488
5.214286
0.821429
0
0
0
0
0
0
0
0
0
0
0.106557
0.25
488
20
93
24.4
0.691257
0.139344
0
0
1
0
0.117506
0.055156
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
199d8bba821c686260053cad8f7f3aba51b1604e
885
py
Python
TyphoonApi/suncreative/migrations/0008_auto_20210306_0049.py
ZhangDubhe/Tropical-Cyclone-Information-System
88d16d8ad9f7a819dbba4336c172a2c4593555c8
[ "MIT" ]
9
2018-05-19T07:18:51.000Z
2021-09-28T09:13:11.000Z
TyphoonApi/suncreative/migrations/0008_auto_20210306_0049.py
ZhangDubhe/Tropical-Cyclone-Information-System
88d16d8ad9f7a819dbba4336c172a2c4593555c8
[ "MIT" ]
6
2020-06-05T18:10:38.000Z
2022-02-10T10:37:37.000Z
TyphoonApi/suncreative/migrations/0008_auto_20210306_0049.py
ZhangDubhe/Tropical-Cyclone-Information-System
88d16d8ad9f7a819dbba4336c172a2c4593555c8
[ "MIT" ]
1
2021-09-28T07:38:42.000Z
2021-09-28T07:38:42.000Z
# Generated by Django 2.2.13 on 2021-03-06 00:49 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('suncreative', '0007_postrecord_state'), ] operations = [ migrations.CreateModel( name='MediaFo...
31.607143
156
0.60678
92
885
5.73913
0.641304
0.045455
0.05303
0.083333
0
0
0
0
0
0
0
0.035222
0.262147
885
27
157
32.777778
0.773354
0.051977
0
0.095238
1
0
0.112306
0.052569
0
0
0
0
0
1
0
false
0
0.095238
0
0.238095
0
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
19abc77ccba558f48bb77af3b197506e612e0344
772
py
Python
api/states/apiviews.py
Mastersam07/ncovid-19-api
c52fdae8d000f021722c0a7b53df27145e182a24
[ "MIT" ]
17
2020-04-02T09:41:02.000Z
2021-01-14T06:06:17.000Z
api/states/apiviews.py
Mastersam07/ncovid-19-api
c52fdae8d000f021722c0a7b53df27145e182a24
[ "MIT" ]
6
2020-05-08T10:47:00.000Z
2021-03-31T19:39:42.000Z
api/states/apiviews.py
Mastersam07/ncovid-19-api
c52fdae8d000f021722c0a7b53df27145e182a24
[ "MIT" ]
6
2020-04-04T17:53:36.000Z
2021-01-12T06:05:46.000Z
from rest_framework import generics, viewsets from rest_framework.generics import get_object_or_404 from rest_framework.views import APIView from rest_framework.response import Response from .models import Data from .serializers import StateSerializer # CaseSerializer class StateList(APIView): @staticmethod ...
26.62069
58
0.740933
90
772
6.233333
0.411111
0.057041
0.121212
0.049911
0.210339
0
0
0
0
0
0
0.009554
0.186529
772
28
59
27.571429
0.883758
0.018135
0
0.190476
0
0
0
0
0
0
0
0
0
1
0.095238
false
0
0.285714
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
5fd78090f79ae29b15017d155ffc8488152ff647
871
py
Python
python-libs/histogram.py
bilbopingouin/simple-stats-tools
91e8530055d866b936ea7c3b6ecf94b7d163f695
[ "MIT" ]
null
null
null
python-libs/histogram.py
bilbopingouin/simple-stats-tools
91e8530055d866b936ea7c3b6ecf94b7d163f695
[ "MIT" ]
null
null
null
python-libs/histogram.py
bilbopingouin/simple-stats-tools
91e8530055d866b936ea7c3b6ecf94b7d163f695
[ "MIT" ]
null
null
null
# This create an array to plot an histogram as # ^ # | +-+ # | +-+ | +-+ # | | | +-+ | # | +-+ | | | +-+ # | | | | | | | +-+ # +---+-+-+-+-+-+-+-+-------> # Vm Vmax class histogram: def __init__(self, vmin, vmax, nbins): self.init_values(vmin, vmax, nbins) ...
26.393939
78
0.477612
110
871
3.690909
0.345455
0.110837
0.096059
0.083744
0.103448
0
0
0
0
0
0
0.00678
0.322618
871
32
79
27.21875
0.681356
0.222732
0
0
0
0
0
0
0
0
0
0
0
1
0.294118
false
0
0
0
0.352941
0.235294
0
0
0
null
0
0
0
0
0
0
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
5fdf79c2e1464f13e608ca229c5b2eeb27f8431c
4,275
py
Python
app.py
manojvirat457/Resume-Matching
71c389cab1037643b2a3b64ad14b97e7556cd1c7
[ "MIT" ]
null
null
null
app.py
manojvirat457/Resume-Matching
71c389cab1037643b2a3b64ad14b97e7556cd1c7
[ "MIT" ]
null
null
null
app.py
manojvirat457/Resume-Matching
71c389cab1037643b2a3b64ad14b97e7556cd1c7
[ "MIT" ]
null
null
null
# from scripts import tabledef # from scripts import forms # from scripts import helpers from flask import Flask, redirect, url_for, render_template, request, session import json import sys import os # import stripe import pandas as pd from werkzeug.utils import secure_filename from sklearn.preprocessing import Polynom...
28.691275
80
0.633684
487
4,275
5.398357
0.390144
0.018258
0.022822
0.04108
0.102701
0.102701
0.090909
0.078357
0.078357
0.078357
0
0.011025
0.214971
4,275
149
81
28.691275
0.772348
0.19883
0
0.069767
0
0
0.080094
0
0
0
0
0
0
1
0.046512
false
0
0.302326
0
0.406977
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
5fdff30c0afd1eca55bc674b13d56b8708db326f
306
py
Python
strategist/tests/factories.py
OpenMatchmaking/microservice-strategist
6951478a5c87eceaed779dfbb9f6f2807005c6bb
[ "BSD-3-Clause" ]
null
null
null
strategist/tests/factories.py
OpenMatchmaking/microservice-strategist
6951478a5c87eceaed779dfbb9f6f2807005c6bb
[ "BSD-3-Clause" ]
1
2018-09-23T10:29:21.000Z
2018-09-23T10:29:21.000Z
strategist/tests/factories.py
OpenMatchmaking/microservice-strategist
6951478a5c87eceaed779dfbb9f6f2807005c6bb
[ "BSD-3-Clause" ]
null
null
null
from uuid import uuid4 def generate_player_data(event_name, rating): return { "id": str(uuid4()), "response-queue": "{}-response-queue".format(str(uuid4())), "event-name": event_name, "detail": { "rating": rating, "content": {} } }
21.857143
67
0.51634
30
306
5.133333
0.633333
0.175325
0
0
0
0
0
0
0
0
0
0.014354
0.316993
306
13
68
23.538462
0.722488
0
0
0
1
0
0.202614
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0.090909
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5fe2cb20f8aa12b9103c0c95644f0830be491197
927
py
Python
multithread/mtfacfib.py
hero0926/PythonPlayground
2c1a6cdb33b6a46d74b94c9588e95e9b053cac07
[ "MIT" ]
null
null
null
multithread/mtfacfib.py
hero0926/PythonPlayground
2c1a6cdb33b6a46d74b94c9588e95e9b053cac07
[ "MIT" ]
null
null
null
multithread/mtfacfib.py
hero0926/PythonPlayground
2c1a6cdb33b6a46d74b94c9588e95e9b053cac07
[ "MIT" ]
null
null
null
# 싱글 스레드랑 멀티 스레드 비교하기 from myThread import MyThread from time import ctime, sleep # 피보나치, 팩토리얼, 합계를 싱글스레드랑 멀티스레드에서 실행시켜 보았다. def fib(x) : sleep(0.005) if x<2 : return 1 return (fib(x-2)+fib(x-1)) def fac(x) : sleep(0.1) if x<2 : return 1 refutn (x*(fac(x-1)) def sum(x) : sleep(0.1) if x<2 : ret...
15.196721
58
0.578209
150
927
3.44
0.366667
0.05814
0.046512
0.093023
0.195736
0.195736
0.073643
0.073643
0.073643
0
0
0.029412
0.266451
927
60
59
15.45
0.729412
0
0
0.25
0
0
0.063657
0
0
0
0
0
0
0
null
null
0
0.055556
null
null
0.194444
0
0
0
null
0
0
0
0
0
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
5fe65835b8ce4ea82f6df5035ddafa5e0427270f
951
py
Python
code/ch17/17.1.1.majorityElement.py
leetcode-pp/leetcode-pp1
a1f9e46fdd2f480d2fcb94e76370e040e0f0a4f5
[ "MIT" ]
22
2021-02-23T13:42:28.000Z
2022-03-02T11:19:28.000Z
code/ch17/17.1.1.majorityElement.py
leetcode-pp/leetcode-pp1
a1f9e46fdd2f480d2fcb94e76370e040e0f0a4f5
[ "MIT" ]
9
2021-06-16T10:42:01.000Z
2021-08-24T09:06:29.000Z
code/ch17/17.1.1.majorityElement.py
leetcode-pp/leetcode-pp1
a1f9e46fdd2f480d2fcb94e76370e040e0f0a4f5
[ "MIT" ]
9
2021-02-20T08:29:00.000Z
2021-09-18T08:52:25.000Z
class Solution: def majorityElement(self, nums: List[int]) -> List[int]: n = len(nums) res = [] cnt1 = 0 cnt2 = 0 n1 = None n2 = None # 筛选出现次数最多的前两个 for num in nums: if num == n1: cnt1 += 1 elif num == n2: ...
23.775
60
0.357518
94
951
3.617021
0.340426
0.058824
0.052941
0.058824
0.141176
0.141176
0.141176
0.141176
0.141176
0
0
0.109005
0.556257
951
39
61
24.384615
0.696682
0.079916
0
0.411765
0
0
0
0
0
0
0
0
0
1
0.029412
false
0
0
0
0.088235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5fe779edeb706e13e4dec281ec95b79dac1ac836
853
py
Python
common/code/snippets/txt/ssh.py
nevesnunes/env
7a5e3816334337e04a87e1a2e4dc322215901744
[ "MIT" ]
4
2020-04-07T14:45:02.000Z
2021-12-28T22:43:16.000Z
common/code/snippets/txt/ssh.py
nevesnunes/env
7a5e3816334337e04a87e1a2e4dc322215901744
[ "MIT" ]
null
null
null
common/code/snippets/txt/ssh.py
nevesnunes/env
7a5e3816334337e04a87e1a2e4dc322215901744
[ "MIT" ]
2
2020-04-08T03:12:06.000Z
2021-03-04T20:33:03.000Z
import paramiko import datetime import subprocess # run it locally if you want, use this for Bash commands def run_netflow_cmd(command): rwflow_server_ip = "1.2.3.4" # SiLK box user_name="netflow" keyfile="/home/marius/.ssh/id_rsa" ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(par...
31.592593
81
0.682298
113
853
4.973451
0.619469
0.071174
0.049822
0
0
0
0
0
0
0
0
0.007429
0.21102
853
26
82
32.807692
0.827637
0.103165
0
0
0
0
0.117105
0.031579
0
0
0
0
0
0
null
null
0
0.15
null
null
0.15
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5fe95e7d2cf8fa23f231a3ad013a3615c68dd6e6
320
py
Python
models/inclusive_gateway.py
THM-MA/XSDATA-waypoint
dd94442f9d6677c525bf3ebb03c15fec52fa1079
[ "MIT" ]
null
null
null
models/inclusive_gateway.py
THM-MA/XSDATA-waypoint
dd94442f9d6677c525bf3ebb03c15fec52fa1079
[ "MIT" ]
null
null
null
models/inclusive_gateway.py
THM-MA/XSDATA-waypoint
dd94442f9d6677c525bf3ebb03c15fec52fa1079
[ "MIT" ]
null
null
null
from dataclasses import dataclass from .t_inclusive_gateway import TInclusiveGateway __NAMESPACE__ = "http://www.omg.org/spec/BPMN/20100524/MODEL" @dataclass class InclusiveGateway(TInclusiveGateway): class Meta: name = "inclusiveGateway" namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL"
26.666667
65
0.75625
36
320
6.555556
0.583333
0.110169
0.135593
0.161017
0.364407
0.364407
0.364407
0.364407
0.364407
0
0
0.058182
0.140625
320
11
66
29.090909
0.8
0
0
0
0
0
0.31875
0
0
0
0
0
0
1
0
false
0
0.25
0
0.5
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
5ff1ff6031a90d8bf3825582441c9df656212b2f
505
py
Python
app/recommendation/migrations/0003_auto_20181115_2259.py
A2ed/affective-recommendation
8d092bc8005f5f3bf293cf2b32c3bf8c45e63879
[ "MIT" ]
null
null
null
app/recommendation/migrations/0003_auto_20181115_2259.py
A2ed/affective-recommendation
8d092bc8005f5f3bf293cf2b32c3bf8c45e63879
[ "MIT" ]
2
2020-06-05T21:42:07.000Z
2021-06-10T21:35:29.000Z
app/recommendation/migrations/0003_auto_20181115_2259.py
A2ed/affective-recommendation
8d092bc8005f5f3bf293cf2b32c3bf8c45e63879
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-15 22:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('recommendation', '0002_auto_20181115_2204'), ] operations = [ migrations.RemoveField( model_name='state', name='user...
21.956522
62
0.576238
52
505
5.461538
0.769231
0.06338
0.098592
0.126761
0
0
0
0
0
0
0
0.094556
0.308911
505
22
63
22.954545
0.719198
0.089109
0
0.25
1
0
0.126638
0.050218
0
0
0
0
0
1
0
false
0
0.0625
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5ff694dfee8b4d17af682fb321e5d21f98c301e3
34,206
py
Python
fuzzy_modeling/tests/models/test_system_model.py
arruda/cloudfuzzy
5f834814fa28b68213c114f1c1b34d5c0df9475d
[ "MIT" ]
2
2016-10-15T15:17:21.000Z
2019-04-22T05:52:43.000Z
fuzzy_modeling/tests/models/test_system_model.py
arruda/cloudfuzzy
5f834814fa28b68213c114f1c1b34d5c0df9475d
[ "MIT" ]
null
null
null
fuzzy_modeling/tests/models/test_system_model.py
arruda/cloudfuzzy
5f834814fa28b68213c114f1c1b34d5c0df9475d
[ "MIT" ]
1
2020-06-14T16:08:11.000Z
2020-06-14T16:08:11.000Z
# -*- coding: utf-8 -*- import inspect import mock from django.test import TestCase from fuzzy_modeling.tests.utils import ResetMock from fuzzy_modeling.models.systems import SystemModel from fuzzy.System import System class SystemModelTest(TestCase, ResetMock): def setUp(self): # self.aluno = momm...
38.738392
142
0.611939
3,982
34,206
5.002511
0.072325
0.065914
0.04498
0.010542
0.658283
0.60743
0.57259
0.535492
0.476857
0.468072
0
0.023158
0.27159
34,206
882
143
38.782313
0.776328
0.066918
0
0.518053
0
0.00157
0.072573
0.001433
0
0
0
0
0.058085
0
null
null
0.006279
0.091052
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
5ff845df47cd66d8b6dc6c2fa082b70a9b98c587
2,279
py
Python
09-revisao/practice_python/cows_and_bulls.py
lcnodc/codes
068e04323362737c3f840b4e21a73cf0718aa401
[ "MIT" ]
1
2019-09-16T18:00:47.000Z
2019-09-16T18:00:47.000Z
09-revisao/practice_python/cows_and_bulls.py
lcnodc/codes
068e04323362737c3f840b4e21a73cf0718aa401
[ "MIT" ]
null
null
null
09-revisao/practice_python/cows_and_bulls.py
lcnodc/codes
068e04323362737c3f840b4e21a73cf0718aa401
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Exercise 18: Cows And Bulls Create a program that will play the “cows and bulls” game with the user. The game works like this: Randomly generate a 4-digit number. Ask the user to guess a 4-digit number. For every digit that the user guessed correctly in the correct pl...
25.606742
72
0.652918
355
2,279
4.098592
0.371831
0.043299
0.057732
0.026804
0.123711
0.072852
0
0
0
0
0
0.021893
0.258447
2,279
88
73
25.897727
0.839053
0.510312
0
0
1
0
0.10658
0
0
0
0
0
0
1
0.090909
false
0
0.030303
0
0.212121
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5ff9e6b46475821f1ce185a01c2ef9fa5b1dc5a8
443
py
Python
finliveapp/migrations/0028_gasmeasurement_unique gas measurement.py
FinLiveRI/FinLiveApp
c5634c1da2a4081119890df7674c1f170f106e7f
[ "MIT" ]
null
null
null
finliveapp/migrations/0028_gasmeasurement_unique gas measurement.py
FinLiveRI/FinLiveApp
c5634c1da2a4081119890df7674c1f170f106e7f
[ "MIT" ]
null
null
null
finliveapp/migrations/0028_gasmeasurement_unique gas measurement.py
FinLiveRI/FinLiveApp
c5634c1da2a4081119890df7674c1f170f106e7f
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-12-14 11:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('finliveapp', '0027_gassystem_wind_direction'), ] operations = [ migrations.AddConstraint( model_name='gasmeasurement', ...
24.611111
114
0.654628
45
443
6.333333
0.866667
0
0
0
0
0
0
0
0
0
0
0.055718
0.230248
443
17
115
26.058824
0.780059
0.10158
0
0
1
0
0.237374
0.073232
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
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
270d447150e69b74c9cb469ef7f6840953d52752
249
py
Python
Python/sum.py
AbdalrohmanGitHub/Logik
62270c224061f38b637cb6920a0fbe5a56495bb9
[ "MIT" ]
13
2019-10-03T13:25:02.000Z
2021-12-26T11:49:25.000Z
Python/sum.py
AbdalrohmanGitHub/Logik
62270c224061f38b637cb6920a0fbe5a56495bb9
[ "MIT" ]
19
2015-01-14T15:36:24.000Z
2019-04-21T02:13:23.000Z
Python/sum.py
AbdalrohmanGitHub/Logik
62270c224061f38b637cb6920a0fbe5a56495bb9
[ "MIT" ]
18
2019-10-03T16:05:46.000Z
2021-12-10T19:44:15.000Z
# This program reads a number n and computes the sum 1 + 2 + ... + n. n = input('Type a natural number and press return: ') n = int(n) s = { i for i in range(1, n+1) } s = sum(s) print('The sum 1 + 2 + ... + ', n, ' is equal to ', s, '.', sep= '')
31.125
69
0.542169
48
249
2.8125
0.583333
0.088889
0.103704
0.118519
0.133333
0
0
0
0
0
0
0.032432
0.257028
249
7
70
35.571429
0.697297
0.269076
0
0
0
0
0.424581
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
2710940c4b359a7869a64a97a112c429f2590ab6
2,707
py
Python
day20.py
hubbardgary/AdventOfCode
16c24761270f06f86c680636ae61af3ac5a535f1
[ "MIT" ]
null
null
null
day20.py
hubbardgary/AdventOfCode
16c24761270f06f86c680636ae61af3ac5a535f1
[ "MIT" ]
null
null
null
day20.py
hubbardgary/AdventOfCode
16c24761270f06f86c680636ae61af3ac5a535f1
[ "MIT" ]
null
null
null
# --- Day 20: Infinite Elves and Infinite Houses --- # # To keep the Elves busy, Santa has them deliver some presents by hand, door-to-door. He sends them down a street with # infinite houses numbered sequentially: 1, 2, 3, 4, 5, and so on. # # Each Elf is assigned a number, too, and delivers presents to houses based o...
33.419753
118
0.654969
463
2,707
3.794816
0.326134
0.039841
0.040979
0.039271
0.307342
0.291406
0.262948
0.262948
0.262948
0.262948
0
0.057059
0.248984
2,707
80
119
33.8375
0.807182
0.640562
0
0.75
0
0
0.027927
0
0
0
0
0
0
1
0.0625
false
0
0.03125
0
0.15625
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2711628d31a27c83e43bdb2961b4d59143cbf7b5
1,424
py
Python
src/third_party/angle/third_party/glmark2/src/waflib/Tools/dmd.py
goochen/naiveproxy
1d0682ee5bae6e648cd43c65f49b4eefd224f206
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
src/third_party/angle/third_party/glmark2/src/waflib/Tools/dmd.py
wclmgcd/naiveproxy
e32a3afb76fd21207c322f2d5e794c4f5505fb59
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
src/third_party/angle/third_party/glmark2/src/waflib/Tools/dmd.py
wclmgcd/naiveproxy
e32a3afb76fd21207c322f2d5e794c4f5505fb59
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#! /usr/bin/env python # encoding: utf-8 # WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file import sys from waflib.Tools import ar,d from waflib.Configure import conf @conf def find_dmd(conf): conf.find_program(['dmd','dmd2','ldc'],var='D') out=conf.cmd_and_log(conf.env.D+['--help']) if ...
27.384615
78
0.691011
268
1,424
3.488806
0.376866
0.04492
0.034225
0.041711
0.181818
0.124064
0.124064
0.124064
0.098396
0.098396
0
0.009368
0.100421
1,424
51
79
27.921569
0.720531
0.079354
0
0.148936
1
0
0.20505
0.016067
0
0
0
0
0
1
0.085106
false
0
0.06383
0
0.148936
0
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
27134e03665bef67bb57bacb7a86a2dcd7ff234c
1,056
py
Python
backend/appengine/routes/subjects/edit.py
MarcosVn/turinginformatica
21eba5f105ad052aa7505b6e77ca5871167a9dc2
[ "MIT" ]
null
null
null
backend/appengine/routes/subjects/edit.py
MarcosVn/turinginformatica
21eba5f105ad052aa7505b6e77ca5871167a9dc2
[ "MIT" ]
null
null
null
backend/appengine/routes/subjects/edit.py
MarcosVn/turinginformatica
21eba5f105ad052aa7505b6e77ca5871167a9dc2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from google.appengine.ext import ndb from course.course_model import Subject, Course from config.template_middleware import TemplateResponse from gaecookie.decorator import no_csrf from gaepermission.decorator import login_not_required fro...
33
62
0.775568
137
1,056
5.722628
0.445255
0.045918
0.061224
0.048469
0.084184
0.084184
0.084184
0.084184
0
0
0
0.001094
0.13447
1,056
32
63
33
0.856674
0.019886
0
0.148148
0
0
0.055126
0.025145
0
0
0
0
0
1
0.074074
false
0
0.333333
0
0.481481
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
27145e7bf339667adec6cd64e22297ae25f291d5
595
py
Python
code/Algorithms/RandomChoice.py
BogyMitutoyoCTL/Snake-AI-2021.1
dfbc556e74628e670db3fc4891b50203c466ae16
[ "MIT" ]
null
null
null
code/Algorithms/RandomChoice.py
BogyMitutoyoCTL/Snake-AI-2021.1
dfbc556e74628e670db3fc4891b50203c466ae16
[ "MIT" ]
null
null
null
code/Algorithms/RandomChoice.py
BogyMitutoyoCTL/Snake-AI-2021.1
dfbc556e74628e670db3fc4891b50203c466ae16
[ "MIT" ]
null
null
null
from random import random from Algorithms.Algorithms import Algorithm from GameData import GameData class RandomChoice(Algorithm): def __init__(self): super().__init__() """ A stupid algorithm that returns a random value. This can be used for comparisons with other algorithms. Best resul...
23.8
59
0.611765
74
595
4.810811
0.689189
0.05618
0
0
0
0
0
0
0
0
0
0.029197
0.309244
595
24
60
24.791667
0.836983
0
0
0
0
0
0.065375
0
0
0
0
0
0
1
0.142857
false
0
0.214286
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
271a289182aa0a71bf513eec5584a2cecf7fed15
855
py
Python
slash/core/runnable_test_factory.py
omergertel/slash
7dd5710a05822bbbaadc6c6517cefcbaa6397eab
[ "BSD-3-Clause" ]
null
null
null
slash/core/runnable_test_factory.py
omergertel/slash
7dd5710a05822bbbaadc6c6517cefcbaa6397eab
[ "BSD-3-Clause" ]
null
null
null
slash/core/runnable_test_factory.py
omergertel/slash
7dd5710a05822bbbaadc6c6517cefcbaa6397eab
[ "BSD-3-Clause" ]
null
null
null
from .metadata import Metadata class RunnableTestFactory(object): def __init__(self, file_path='', module_name='', factory_name=''): super(RunnableTestFactory, self).__init__() self.file_path = file_path self.module_name = module_name self.factory_name = factory_name def gene...
34.2
103
0.678363
96
855
5.635417
0.489583
0.096118
0.044362
0.05915
0.118299
0.118299
0
0
0
0
0
0
0.235088
855
24
104
35.625
0.827217
0.191813
0
0
0
0
0
0
0
0
0
0
0.071429
1
0.214286
false
0
0.071429
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
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
271b30497a0393d5308167416d8bd495d39f2b90
714
py
Python
predict.py
Muxxs/SocialModel
b6f3e02b7d3aecb58ff80ac32d1001521a028a78
[ "CC0-1.0" ]
null
null
null
predict.py
Muxxs/SocialModel
b6f3e02b7d3aecb58ff80ac32d1001521a028a78
[ "CC0-1.0" ]
null
null
null
predict.py
Muxxs/SocialModel
b6f3e02b7d3aecb58ff80ac32d1001521a028a78
[ "CC0-1.0" ]
null
null
null
# coding=utf-8 import tensorflow as tf import random def get_data(nums): import os x_train = [] # 4*1 y_train = [] # 1*1 for i in range(nums): NewList = [] for m in list([0, 1, 2, 3]): NewList.append(random.random() // 0.1) x_train.append(NewList) return x_tr...
24.62069
115
0.557423
136
714
2.779412
0.308824
0.238095
0.148148
0.058201
0.201058
0.201058
0.169312
0.169312
0.169312
0.169312
0
0.064576
0.240896
714
28
116
25.5
0.632841
0.028011
0
0
0
0
0.011594
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.238095
0.047619
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
271bb4032de8ddadbcb4b39a849515aaf5682364
3,232
py
Python
test/test_huffman.py
fat-crocodile/comression
5dc635c8f746776537a403714c8695bf595657a3
[ "CNRI-Python" ]
1
2019-12-04T16:37:18.000Z
2019-12-04T16:37:18.000Z
test/test_huffman.py
fat-crocodile/comression
5dc635c8f746776537a403714c8695bf595657a3
[ "CNRI-Python" ]
null
null
null
test/test_huffman.py
fat-crocodile/comression
5dc635c8f746776537a403714c8695bf595657a3
[ "CNRI-Python" ]
null
null
null
import sys sys.path.insert(0, '../src') from prefix_code import Encoder, Decoder from huffman import make_code_symbols as make_code from bounded_huffman import make_code_symbols as make_ll_code # ll for lenght-limited class DummyInputStream(object): def __init__(self, data): self.data = iter(data) ...
26.933333
124
0.580446
487
3,232
3.743326
0.240246
0.010971
0.027427
0.043884
0.144268
0.144268
0.144268
0.106967
0.106967
0.106967
0
0.032285
0.262067
3,232
119
125
27.159664
0.732075
0.006498
0
0.152174
0
0
0.092241
0
0
0
0
0
0
0
null
null
0.032609
0.043478
null
null
0.119565
0
0
0
null
0
0
0
0
0
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
2720907e8c02458c6242bd6aebcde0f4efb21d07
2,720
py
Python
robotice/utils/extensions/comparators/fuzzy/base.py
robotice/robotice
aa8af3ac357021a8884bdbdaae760c7a368bfd13
[ "Apache-2.0" ]
2
2015-02-19T23:39:28.000Z
2015-03-27T21:59:50.000Z
robotice/utils/extensions/comparators/fuzzy/base.py
robotice/robotice
aa8af3ac357021a8884bdbdaae760c7a368bfd13
[ "Apache-2.0" ]
1
2015-01-17T12:22:42.000Z
2015-01-17T12:22:42.000Z
robotice/utils/extensions/comparators/fuzzy/base.py
robotice/robotice
aa8af3ac357021a8884bdbdaae760c7a368bfd13
[ "Apache-2.0" ]
null
null
null
import re import logging from time import time from datetime import datetime from celery.task import task from celery.execute import send_task from celery.signals import celeryd_after_setup from robotice.reactor.tasks import commit_action from robotice.reasoner.comparators import BaseComparator logger = logging.ge...
30.222222
132
0.553309
294
2,720
4.959184
0.37415
0.038409
0.037037
0.026063
0
0
0
0
0
0
0
0.005682
0.352941
2,720
90
133
30.222222
0.822727
0.026838
0
0.166667
0
0
0.164186
0.011728
0
0
0
0
0
0
null
null
0
0.208333
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
272ad6f35d25f7fdb8c7e2a87f5f46d5cc3c1a45
998
py
Python
modules/configure/call_server.py
Forcepoint/fp-bd-secure-xmas
0ab63e896d2f78668592a787960456f438c2b8d0
[ "Apache-2.0" ]
null
null
null
modules/configure/call_server.py
Forcepoint/fp-bd-secure-xmas
0ab63e896d2f78668592a787960456f438c2b8d0
[ "Apache-2.0" ]
null
null
null
modules/configure/call_server.py
Forcepoint/fp-bd-secure-xmas
0ab63e896d2f78668592a787960456f438c2b8d0
[ "Apache-2.0" ]
null
null
null
import os from colorama import Fore, init # Current file directory details file = os.path.realpath(__file__) filedir = os.path.dirname(file) parentdir = os.path.dirname(filedir) # Initialise colors for terminal init() # Print out header print(Fore.CYAN + '-' * 13 + Fore.RESET) print('Call Server') print(Fore.CYAN + ...
29.352941
92
0.683367
145
998
4.655172
0.434483
0.08
0.096296
0.044444
0.071111
0.071111
0
0
0
0
0
0.004684
0.144289
998
33
93
30.242424
0.785714
0.121242
0
0.26087
0
0
0.293915
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.086957
0.478261
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
272cbd4993a9751080c5198e6c256e571fd4b2cb
745
py
Python
core/app/notification/out/free_carrier_messaging.py
EmixMaxime/mx-home-security
ec6d329a09bb2e0afbbd7e481937893311f02634
[ "MIT" ]
2
2021-04-29T19:28:59.000Z
2021-04-29T21:20:32.000Z
core/app/notification/out/free_carrier_messaging.py
EmixMaxime/mx-home-security
ec6d329a09bb2e0afbbd7e481937893311f02634
[ "MIT" ]
101
2020-06-26T19:51:24.000Z
2021-03-28T09:35:55.000Z
core/app/notification/out/free_carrier_messaging.py
mxmaxime/mx-tech-house
f6b66b8390b348e48d4c6ea0da51e409f3845fd6
[ "MIT" ]
null
null
null
from urllib import parse import requests from notification.models import UserFreeCarrier class FreeCarrierMessaging: def send_message(self, credential: UserFreeCarrier, message, *args): if message is None: return data = { 'user': credential.free_user, 'pass'...
24.833333
72
0.557047
72
745
5.694444
0.736111
0.068293
0
0
0
0
0
0
0
0
0
0.02449
0.342282
745
29
73
25.689655
0.812245
0.191946
0
0
0
0
0.09396
0
0
0
0
0
0
1
0.0625
false
0.0625
0.1875
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
27482df75832bd3d8bc0cedb7f3396914d4b4bb0
853
py
Python
run_tests.py
wsmith323/constantmodel
345884b75f84522eba7586af8e820d777768871c
[ "MIT" ]
2
2017-08-25T21:53:12.000Z
2019-06-21T22:25:48.000Z
run_tests.py
wsmith323/constantmodel
345884b75f84522eba7586af8e820d777768871c
[ "MIT" ]
1
2019-07-15T07:12:25.000Z
2019-11-26T17:48:55.000Z
run_tests.py
wsmith323/staticmodel
5103244f7a460bab805f93253e652a345304eae4
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import subprocess import sys def install_dependencies(): print("\nInstalling test dependencies...\n") try: subprocess.check_output("pip install -r test_requirements.txt", shell=True, stderr=subprocess.STDOUT) except subprocess.Called...
27.516129
94
0.694021
100
853
5.66
0.58
0.067138
0.091873
0.077739
0
0
0
0
0
0
0
0
0.201641
853
30
95
28.433333
0.831131
0.023447
0
0
0
0
0.264423
0.080529
0
0
0
0
0
1
0.095238
true
0
0.190476
0
0.380952
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
274c1082ab9ed5c24e4aa4640439d445c637452d
301
py
Python
pybpodapi/com/messaging/debug.py
ckarageorgkaneen/pybpod-api
ebccef800ae1abf3b6a643ff33166fab2096c780
[ "MIT" ]
1
2021-01-18T08:18:22.000Z
2021-01-18T08:18:22.000Z
pybpodapi/com/messaging/debug.py
ckarageorgkaneen/pybpod-api
ebccef800ae1abf3b6a643ff33166fab2096c780
[ "MIT" ]
1
2020-09-18T20:46:11.000Z
2020-12-29T14:55:20.000Z
pybpodapi/com/messaging/debug.py
ckarageorgkaneen/pybpod-api
ebccef800ae1abf3b6a643ff33166fab2096c780
[ "MIT" ]
3
2020-09-12T15:32:11.000Z
2022-03-11T23:08:03.000Z
# !/usr/bin/python3 # -*- coding: utf-8 -*- from pybpodapi.com.messaging.base_message import BaseMessage class DebugMessage(BaseMessage): """ Information line for things like experiment name , task name, board id, etc. """ MESSAGE_TYPE_ALIAS = "debug" MESSAGE_COLOR = (200, 200, 200)
23.153846
88
0.697674
38
301
5.421053
0.842105
0.058252
0
0
0
0
0
0
0
0
0
0.044355
0.17608
301
12
89
25.083333
0.78629
0.392027
0
0
0
0
0.028571
0
0
0
0
0
0
1
0
false
0
0.25
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
275382dcf8090cddfa195194c2d00f68c70547f3
3,390
py
Python
instance_data/problem_printer.py
LuddeWessen/assembly-robot-manager-minizinc
cd3ce2ae011ffe19a317aa0367de9c5612bb6dee
[ "MIT" ]
3
2021-09-20T12:25:10.000Z
2022-03-25T12:55:37.000Z
instance_data/problem_printer.py
LuddeWessen/assembly-robot-manager-minizinc
cd3ce2ae011ffe19a317aa0367de9c5612bb6dee
[ "MIT" ]
null
null
null
instance_data/problem_printer.py
LuddeWessen/assembly-robot-manager-minizinc
cd3ce2ae011ffe19a317aa0367de9c5612bb6dee
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2021 Johan Ludde Wessén # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,...
33.9
434
0.582891
390
3,390
4.905128
0.402564
0.088866
0.063251
0.059592
0.155254
0.130685
0.033455
0.033455
0
0
0
0.011572
0.260767
3,390
99
435
34.242424
0.751796
0.182596
0
0.042553
0
0
0.213566
0.083721
0
0
0
0.010101
0
1
0.085106
false
0
0.021277
0.021277
0.191489
0
0
0
0
null
0
0
0
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
275623d5599f0091187920559c11c69ba8bb4e8b
994
py
Python
ds/beis_indicators/utils/geo_utils.py
nestauk/beis-indicators
d3133c2bd935a13ecfd6bc8f6e52c8d157477c7c
[ "MIT" ]
4
2020-04-09T20:16:38.000Z
2022-03-25T11:36:30.000Z
ds/beis_indicators/utils/geo_utils.py
nestauk/beis-indicators
d3133c2bd935a13ecfd6bc8f6e52c8d157477c7c
[ "MIT" ]
353
2019-11-06T11:26:51.000Z
2021-12-08T09:13:53.000Z
ds/beis_indicators/utils/geo_utils.py
nestauk/beis-indicators
d3133c2bd935a13ecfd6bc8f6e52c8d157477c7c
[ "MIT" ]
1
2020-08-03T12:42:31.000Z
2020-08-03T12:42:31.000Z
import geopandas as gpd import os from urllib.request import urlretrieve from zipfile import ZipFile from beis_indicators.utils.nuts_utils import NUTS_INTRODUCED, NUTS_ENFORCED def get_shape(file_name, path): ''' Utility function to extract and the shapefile Arguments: url: url for the shapef...
22.590909
75
0.632797
136
994
4.5
0.507353
0.104575
0.03268
0
0
0
0
0
0
0
0
0
0.283702
994
43
76
23.116279
0.859551
0.262575
0
0
0
0
0.177068
0.047896
0
0
0
0
0
1
0.0625
false
0
0.3125
0
0.375
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2757e3bdaded85ce5c451314b066c2c96030f7a7
493
py
Python
sdk_k64f/boards/frdmk64f/multiprocessor_examples/erpc_remote_control/service/erpc_remote_control_app_1/interface.py
Sir-Branch/k64f-starter-template
f8959fd185f090363d180d69f84c2727e37cbeeb
[ "MIT" ]
1
2020-08-23T20:24:19.000Z
2020-08-23T20:24:19.000Z
sdk_k64f/boards/frdmk64f/multiprocessor_examples/erpc_remote_control/service/erpc_remote_control_app_1/interface.py
Sir-Branch/xxxx-starter-template
f8959fd185f090363d180d69f84c2727e37cbeeb
[ "MIT" ]
1
2020-08-24T00:41:48.000Z
2020-08-24T02:17:44.000Z
sdk_k64f/boards/frdmk64f/multiprocessor_examples/erpc_remote_control/service/erpc_remote_control_app_1/interface.py
Sir-Branch/xxxx-starter-template
f8959fd185f090363d180d69f84c2727e37cbeeb
[ "MIT" ]
null
null
null
# Copyright (c) 2014-2016, Freescale Semiconductor, Inc. # Copyright 2016 NXP # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # # Generated by erpcgen 1.7.3 on Mon Sep 23 13:00:45 2019. # # AUTOGENERATED - DO NOT EDIT # import erpc # Abstract base class for remote_control_app_1 class Iremote_control...
19.72
57
0.726166
72
493
4.833333
0.791667
0.057471
0.063218
0
0
0
0
0
0
0
0
0.080201
0.190669
493
24
58
20.541667
0.79198
0.592292
0
0
1
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.833333
0
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
2757fe50bdf312cc3545f82bb330ccf534c97566
2,627
py
Python
utils/urbansounds.py
birds-on-mars/birdsonearth
62921423b787ad8b81b8e60e8de42a3f6e113d88
[ "Apache-2.0" ]
13
2019-04-11T10:02:11.000Z
2021-12-01T22:27:18.000Z
utils/urbansounds.py
birds-on-mars/birdsonearth
62921423b787ad8b81b8e60e8de42a3f6e113d88
[ "Apache-2.0" ]
2
2019-12-17T13:31:09.000Z
2020-05-14T09:48:10.000Z
utils/urbansounds.py
birds-on-mars/birdsonearth
62921423b787ad8b81b8e60e8de42a3f6e113d88
[ "Apache-2.0" ]
2
2020-07-17T21:03:18.000Z
2021-07-14T02:09:31.000Z
''' script to restructure the urban sounds data set into the required format to run the train.py script on it. Download the the dataset from: https://www.kaggle.com/pavansanagapati/urban-sound-classification Then unpack train.zip into root specified below, define where the restructured data is saved to (save_to) and th...
34.565789
97
0.590027
352
2,627
4.3125
0.394886
0.035573
0.039526
0.046113
0.104743
0.09025
0.09025
0.038208
0
0
0
0.008767
0.305291
2,627
75
98
35.026667
0.823014
0.233346
0
0.038462
0
0
0.073815
0.012469
0
0
0
0.013333
0
1
0.057692
false
0
0.115385
0
0.192308
0.134615
0
0
0
null
0
0
0
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
2761709f2a16f06141bb5412a9079a3f2281ad06
5,026
py
Python
inference-framework/checker-framework/checkers/binary/trace-log.py
SoftwareEngineeringToolDemos/type-inference
771df4c2c02a0ed1a4a7b229fd71204467df544e
[ "Apache-2.0" ]
1
2019-12-07T16:13:03.000Z
2019-12-07T16:13:03.000Z
inference-framework/checker-framework/checkers/binary/trace-log.py
SoftwareEngineeringToolDemos/type-inference
771df4c2c02a0ed1a4a7b229fd71204467df544e
[ "Apache-2.0" ]
5
2015-10-22T21:11:04.000Z
2015-10-25T19:36:43.000Z
inference-framework/checker-framework/checkers/binary/trace-log.py
SoftwareEngineeringToolDemos/type-inference
771df4c2c02a0ed1a4a7b229fd71204467df544e
[ "Apache-2.0" ]
5
2015-11-10T00:32:55.000Z
2020-10-28T13:52:52.000Z
#!/usr/bin/env python import sqlite3 import sys import re auto_mode = True #codeCodes = { # 'black': '0;30', 'bright gray': '0;37', # 'blue': '0;34', 'white': '1;37', # 'green': '0;32', 'bright blue': '1;34', # 'cyan': '0;36', 'bright green': '1;32', # 'red': '0;31', 'bright cyan': '1;36', # ...
28.72
144
0.534222
717
5,026
3.638773
0.225941
0.024914
0.015332
0.022997
0.354159
0.31123
0.277501
0.264852
0.221158
0.206976
0
0.034666
0.288301
5,026
174
145
28.885057
0.694716
0.241544
0
0.433333
0
0.008333
0.198621
0.012464
0
0
0
0
0
0
null
null
0
0.025
null
null
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
1
0
0
0
0
0
0
0
0
1
2765536e327dd17ad346a0a7b2b1a61ca42b4b3d
1,594
py
Python
app/__init__.py
csud-reservation/flask-backend
fe68807dd47b643991b16663b2145687faaf45e3
[ "MIT" ]
1
2017-09-28T07:58:31.000Z
2017-09-28T07:58:31.000Z
app/__init__.py
csud-reservation/flask-backend
fe68807dd47b643991b16663b2145687faaf45e3
[ "MIT" ]
16
2017-04-18T21:26:25.000Z
2017-08-31T15:18:12.000Z
app/__init__.py
csud-reservation/flask-backend
fe68807dd47b643991b16663b2145687faaf45e3
[ "MIT" ]
1
2017-04-18T19:21:32.000Z
2017-04-18T19:21:32.000Z
from flask import Flask from flask_bootstrap import Bootstrap from flask_mail import Mail from flask_moment import Moment from flask_sqlalchemy import SQLAlchemy from config import config from flask_debugtoolbar import DebugToolbarExtension from flask.ext.login import LoginManager, UserMixin, login_user, logout_user, ...
24.90625
92
0.728984
206
1,594
5.42233
0.281553
0.050134
0.07162
0.077887
0.046553
0
0
0
0
0
0
0
0.181305
1,594
63
93
25.301587
0.855939
0.17064
0
0
0
0
0.025172
0
0
0
0
0
0
1
0.057143
false
0
0.314286
0.028571
0.428571
0.171429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2768c04d7baec2b1edf16a36d024a37d1e3a36e9
9,899
py
Python
biothings-hub/files/nde-hub/utils/pmid_helper.py
NIAID-Data-Ecosystem/nde-crawlers
c0aff7dc1625ece1e67d03ad56555da7dbdc4a11
[ "Apache-2.0" ]
null
null
null
biothings-hub/files/nde-hub/utils/pmid_helper.py
NIAID-Data-Ecosystem/nde-crawlers
c0aff7dc1625ece1e67d03ad56555da7dbdc4a11
[ "Apache-2.0" ]
null
null
null
biothings-hub/files/nde-hub/utils/pmid_helper.py
NIAID-Data-Ecosystem/nde-crawlers
c0aff7dc1625ece1e67d03ad56555da7dbdc4a11
[ "Apache-2.0" ]
null
null
null
# Helper file to batch call pmids to get citations and funding # Helpful links to documentation of Biopython Package for writing this file # https://biopython.org/DIST/docs/tutorial/Tutorial.html#sec162 # https://biopython.org/docs/1.76/api/Bio.Entrez.html # https://www.nlm.nih.gov/bsd/mms/medlineelements.html # https:...
44.191964
140
0.587938
1,310
9,899
4.376336
0.279389
0.016571
0.009419
0.020059
0.196058
0.176347
0.176347
0.14495
0.14495
0.105181
0
0.0143
0.307708
9,899
223
141
44.390135
0.822268
0.356602
0
0.167939
0
0
0.114587
0
0
0
0
0.017937
0
1
0.022901
false
0
0.091603
0
0.175573
0
0
0
0
null
0
0
0
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
276b9ef2a1fc658bc8baea1ad6df2428b0f6db78
6,014
py
Python
meiduo_mall/meiduo_mall/apps/users/serializers.py
Goldx4/meiduo-demo
3d54df66bf0c4546dbac25a29b28cd76628b0f31
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/users/serializers.py
Goldx4/meiduo-demo
3d54df66bf0c4546dbac25a29b28cd76628b0f31
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/users/serializers.py
Goldx4/meiduo-demo
3d54df66bf0c4546dbac25a29b28cd76628b0f31
[ "MIT" ]
null
null
null
from rest_framework import serializers, status from django_redis import get_redis_connection from rest_framework_jwt.settings import api_settings import logging import re from .models import User from .utils import get_user_by_account from celery_tasks.email.tasks import send_verify_email logger = logging.getLogger('...
30.373737
120
0.593282
595
6,014
5.786555
0.252101
0.024397
0.081034
0.020912
0.342434
0.282021
0.239617
0.193436
0.177752
0.103398
0
0.009465
0.297306
6,014
197
121
30.527919
0.805253
0.038078
0
0.378788
0
0
0.12781
0
0
0
0
0
0
1
0.060606
false
0.098485
0.060606
0
0.310606
0
0
0
0
null
0
0
0
0
0
0
0
0
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
276c6208f5d13dd0699ac8201d62fedafbe0005a
399
py
Python
tests/regressions/python/596_list_arrays.py
frzfrsfra4/phylanx
001fe7081f3a24e56157cdb21b2d126b8953ff5d
[ "BSL-1.0" ]
83
2017-08-27T15:09:13.000Z
2022-01-18T17:03:41.000Z
tests/regressions/python/596_list_arrays.py
frzfrsfra4/phylanx
001fe7081f3a24e56157cdb21b2d126b8953ff5d
[ "BSL-1.0" ]
808
2017-08-27T15:35:01.000Z
2021-12-14T17:30:50.000Z
tests/regressions/python/596_list_arrays.py
frzfrsfra4/phylanx
001fe7081f3a24e56157cdb21b2d126b8953ff5d
[ "BSL-1.0" ]
55
2017-08-27T15:09:22.000Z
2022-03-25T12:07:34.000Z
# Copyright (c) 2018 R. Tohid # # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) from phylanx import Phylanx import numpy as np @Phylanx def foo(x, y): return [x, y] x = np.array([1, 2]) y = np.array([3, 4]...
21
79
0.656642
72
399
3.583333
0.597222
0.023256
0.069767
0.093023
0
0
0
0
0
0
0
0.04878
0.177945
399
18
80
22.166667
0.737805
0.441103
0
0
0
0
0
0
0
0
0
0
0.111111
1
0.111111
false
0
0.222222
0.111111
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
277b0a0c1e2318c37c61a67354d2ceb3f76041e5
293
py
Python
home/migrations/0008_delete_addpost.py
sandipsandal/Just-A-Thought
97f97404b303deb2ea7bcc86d89b2b21b3715fba
[ "Apache-2.0" ]
null
null
null
home/migrations/0008_delete_addpost.py
sandipsandal/Just-A-Thought
97f97404b303deb2ea7bcc86d89b2b21b3715fba
[ "Apache-2.0" ]
null
null
null
home/migrations/0008_delete_addpost.py
sandipsandal/Just-A-Thought
97f97404b303deb2ea7bcc86d89b2b21b3715fba
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.9 on 2020-08-23 12:27 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('home', '0007_auto_20200823_1340'), ] operations = [ migrations.DeleteModel( name='addPost', ), ]
17.235294
47
0.600683
32
293
5.40625
0.875
0
0
0
0
0
0
0
0
0
0
0.148325
0.286689
293
16
48
18.3125
0.679426
0.153584
0
0
1
0
0.138211
0.093496
0
0
0
0
0
1
0
false
0
0.1
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
277d41bcd67ff8ea3334836629f4752f8d18c11d
6,607
py
Python
run.py
John-5014/Password-locker
5ada597e237b1b1ec983090322d6b71e2e63d918
[ "MIT" ]
null
null
null
run.py
John-5014/Password-locker
5ada597e237b1b1ec983090322d6b71e2e63d918
[ "MIT" ]
null
null
null
run.py
John-5014/Password-locker
5ada597e237b1b1ec983090322d6b71e2e63d918
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.6 import secrets import string import pyperclip from user import User, Credentials def create_user(fname, lname, password): ''' Function to create a new user account ''' new_user = User(fname, lname, password) return new_user def save_user(user): ''' function to sa...
30.031818
148
0.513092
667
6,607
4.916042
0.191904
0.041476
0.029887
0.028972
0.239707
0.149741
0.068009
0.057335
0.057335
0.026228
0
0.004948
0.388225
6,607
219
149
30.16895
0.806284
0.063115
0
0.362205
0
0.031496
0.216073
0.012593
0
0
0
0
0
1
0.086614
false
0.181102
0.031496
0
0.173228
0.346457
0
0
0
null
0
0
0
0
0
0
0
0
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
27842e2d76fa8e60b2540d930dd1e8e1ce8a04c5
13,501
py
Python
scripts/jitl_test.py
cmusatyalab/dronesearch
9849637555185efa0a484f49bef43ad734964e8a
[ "Apache-2.0" ]
8
2019-11-19T10:57:09.000Z
2021-10-08T23:19:12.000Z
scripts/jitl_test.py
cmusatyalab/dronesearch
9849637555185efa0a484f49bef43ad734964e8a
[ "Apache-2.0" ]
7
2020-01-28T22:18:13.000Z
2022-01-13T01:36:22.000Z
scripts/jitl_test.py
cmusatyalab/dronesearch
9849637555185efa0a484f49bef43ad734964e8a
[ "Apache-2.0" ]
null
null
null
# Drone Search # # A computer vision pipeline for live video search on drone video # feeds leveraging edge servers. # # Copyright (C) 2018-2019 Carnegie Mellon University # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obt...
39.592375
115
0.580401
1,771
13,501
4.180689
0.203275
0.031605
0.015127
0.014587
0.176121
0.105348
0.088331
0.064019
0.028363
0.017828
0
0.015592
0.301681
13,501
340
116
39.708824
0.769728
0.172209
0
0.099548
0
0
0.105398
0.002203
0
0
0
0
0.031674
0
null
null
0.004525
0.045249
null
null
0.135747
0
0
0
null
0
0
0
0
0
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
2787dc98b2dc882f6985e71b64cf6c8a5948417c
869
py
Python
appfl/algorithm/algorithm.py
markxiao/APPFL
2940f01695b84d8239368e5d1fc3133c7f7a05ae
[ "MIT" ]
null
null
null
appfl/algorithm/algorithm.py
markxiao/APPFL
2940f01695b84d8239368e5d1fc3133c7f7a05ae
[ "MIT" ]
null
null
null
appfl/algorithm/algorithm.py
markxiao/APPFL
2940f01695b84d8239368e5d1fc3133c7f7a05ae
[ "MIT" ]
null
null
null
import copy """This implements a base class for server.""" class BaseServer: def __init__(self, model, num_clients, device): self.model = model self.num_clients = num_clients self.device = device # update global model def update(self): raise NotImplementedError def g...
22.868421
81
0.652474
102
869
5.392157
0.323529
0.081818
0.054545
0.069091
0.327273
0.327273
0.229091
0.229091
0.229091
0.229091
0
0
0.265823
869
37
82
23.486486
0.862069
0.043728
0
0.454545
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.045455
0.090909
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
278ca9b568dbb2d27f6c2d07ed48c53edbf8d5ab
981
py
Python
9_datetime.py
Alirezak2n/Python-Tutorials
28c6b40c7237032f80c4f0556ad1bcaceccef088
[ "MIT" ]
null
null
null
9_datetime.py
Alirezak2n/Python-Tutorials
28c6b40c7237032f80c4f0556ad1bcaceccef088
[ "MIT" ]
null
null
null
9_datetime.py
Alirezak2n/Python-Tutorials
28c6b40c7237032f80c4f0556ad1bcaceccef088
[ "MIT" ]
null
null
null
import datetime import pytz today = datetime.date.today() print(today) birthday = datetime.date(1994,12,19) print(birthday) days_since_birth = today - birthday print(days_since_birth) tdelta = datetime.timedelta(days=10) print(today + tdelta) print(today.month) print(today.weekday()) print(datetime.time(7,2,20,...
24.525
73
0.75841
151
981
4.847682
0.357616
0.088798
0.012295
0.013661
0.224044
0.224044
0.224044
0.103825
0.103825
0
0
0.033296
0.081549
981
39
74
25.153846
0.779134
0.139653
0
0
0
0
0.084625
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.086957
0.565217
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
279ac0bef926d0f7cc23b8cc083853bf31557ccb
420
py
Python
FunctionalPractice/py_sorted.py
CarrieGao/py3-practice
d97359e60bbb8410884b6d4cc64df08496201bcd
[ "MIT" ]
null
null
null
FunctionalPractice/py_sorted.py
CarrieGao/py3-practice
d97359e60bbb8410884b6d4cc64df08496201bcd
[ "MIT" ]
null
null
null
FunctionalPractice/py_sorted.py
CarrieGao/py3-practice
d97359e60bbb8410884b6d4cc64df08496201bcd
[ "MIT" ]
null
null
null
# _*_ coding: utf-8 _*_ def by_name(t): return t[0].lower() def by_score(t): return t[1] if __name__ == '__main__': print(sorted([36, 5, -12, 9, -21])) s = sorted(['bob', 'about', 'Zoo', 'Credit'], key=str.lower, reverse=True) print(s) L = [('Bob', 75), ('Adam', 92), ('Bart', 66), ('Lisa', 8...
23.333333
78
0.533333
66
420
3.151515
0.606061
0.048077
0.076923
0.115385
0
0
0
0
0
0
0
0.071429
0.233333
420
18
79
23.333333
0.574534
0.05
0
0
0
0
0.100503
0
0
0
0
0
0
1
0.153846
false
0
0
0.153846
0.307692
0.307692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
27a858948cf096bfbfecf7db6e9b7b2750ff678d
3,507
py
Python
test/test_huffman.py
brendanlong/compression
acdd26535c952d4b616aa5c663e877cfda7cea49
[ "Unlicense" ]
null
null
null
test/test_huffman.py
brendanlong/compression
acdd26535c952d4b616aa5c663e877cfda7cea49
[ "Unlicense" ]
null
null
null
test/test_huffman.py
brendanlong/compression
acdd26535c952d4b616aa5c663e877cfda7cea49
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import bitstring from compression import huffman simple = b"122333" simple_codes = { "1": "11", "2": "10", "3": "0" } simple_tree = bitstring.Bits("0b00100110001100110010100110011") simple_compressed = bitstring.Bits("0x498cca67d0") lorem = (b"Lorem ipsum dolor sit amet, consectet...
31.594595
75
0.681779
359
3,507
6.579387
0.454039
0.03387
0.025402
0.032176
0.217612
0.193057
0.15834
0.15834
0.15834
0.15834
0
0.221444
0.186199
3,507
110
76
31.881818
0.606167
0.005988
0
0.234043
0
0
0.377618
0.179053
0
0
0.026973
0
0.106383
1
0.053191
false
0
0.021277
0
0.074468
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
27aab7134df218ebbf217bbeac39b0de70ef2cdd
38,975
py
Python
UI/main_window.py
b0bs0n/valo-crosshair
051efb2ddebd388a6f501a793fed8ad178ebf0a2
[ "MIT" ]
null
null
null
UI/main_window.py
b0bs0n/valo-crosshair
051efb2ddebd388a6f501a793fed8ad178ebf0a2
[ "MIT" ]
null
null
null
UI/main_window.py
b0bs0n/valo-crosshair
051efb2ddebd388a6f501a793fed8ad178ebf0a2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'main_window.ui' ## ## Created by: Qt User Interface Compiler version 6.2.2 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ###############...
50.814863
130
0.742476
4,689
38,975
5.881851
0.05289
0.038579
0.056563
0.062654
0.728245
0.539848
0.260841
0.120667
0.092059
0.053299
0
0.021041
0.156177
38,975
766
131
50.881201
0.817563
0.005824
0
0
1
0
0.060405
0.004641
0
0
0
0
0
1
0.003384
false
0
0.005076
0
0.010152
0
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
27ab42270275f86bad3378565062f52d50fb64ac
9,341
py
Python
actions.py
matthewb66/bdconsole
edc9a03f93dd782d58ff274ebe5152f7eccecff7
[ "MIT" ]
null
null
null
actions.py
matthewb66/bdconsole
edc9a03f93dd782d58ff274ebe5152f7eccecff7
[ "MIT" ]
null
null
null
actions.py
matthewb66/bdconsole
edc9a03f93dd782d58ff274ebe5152f7eccecff7
[ "MIT" ]
null
null
null
import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash_extensions import Download def create_actions_tab(projname, vername): return [ dbc.Row( dbc.Col(html.H2("Actions")), ), dbc.Row( dbc.Col(html.H4(...
47.416244
118
0.354031
618
9,341
5.239482
0.34466
0.022236
0.008338
0.011118
0.221742
0.151946
0.105003
0.085855
0.085855
0.085855
0
0.012658
0.560218
9,341
196
119
47.658163
0.77556
0.097741
0
0.359756
0
0
0.153389
0.009394
0
0
0
0
0
1
0.018293
false
0
0.02439
0.006098
0.067073
0.067073
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
27bc8527d5a9781851143135fabe0ebac54bab9c
19,093
py
Python
examples/misc/hexapod_z.py
brutzl/pymbs
fb7c91435f56b5c4d460f82f081d5d1960fea886
[ "MIT" ]
null
null
null
examples/misc/hexapod_z.py
brutzl/pymbs
fb7c91435f56b5c4d460f82f081d5d1960fea886
[ "MIT" ]
null
null
null
examples/misc/hexapod_z.py
brutzl/pymbs
fb7c91435f56b5c4d460f82f081d5d1960fea886
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' This file is part of PyMbs. PyMbs is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. PyMbs is distributed i...
45.677033
157
0.720735
3,805
19,093
3.223916
0.066754
0.117877
0.018586
0.020543
0.779653
0.703677
0.651504
0.582865
0.573653
0.573653
0
0.058758
0.057822
19,093
417
158
45.786571
0.623159
0.097208
0
0
0
0
0.151975
0.01489
0
0
0
0
0
1
0
false
0
0.013158
0
0.013158
0.006579
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
27c6dd5c9113fbbda29bcfd2e50fc4268d79e826
515
py
Python
UniExplore/base/migrations/0032_alter_responses_photograph.py
MichaelHills01/group-software-project-1
20847c062f7b4221bfb483eca28cb09a7a646a2b
[ "MIT" ]
1
2022-03-09T17:16:00.000Z
2022-03-09T17:16:00.000Z
UniExplore/base/migrations/0032_alter_responses_photograph.py
MichaelHills01/group-software-project-1
20847c062f7b4221bfb483eca28cb09a7a646a2b
[ "MIT" ]
60
2022-02-20T22:23:13.000Z
2022-03-23T16:37:45.000Z
UniExplore/base/migrations/0032_alter_responses_photograph.py
MichaelHills01/group-software-project-1
20847c062f7b4221bfb483eca28cb09a7a646a2b
[ "MIT" ]
16
2022-02-19T13:10:04.000Z
2022-03-23T12:21:21.000Z
# Generated by Django 4.0.1 on 2022-03-16 14:58 import base.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('base', '0031_alter_profile_picture_delete_weeklychallenge'), ] operations = [ migrations.AlterField( model_na...
25.75
130
0.673786
57
515
5.912281
0.807018
0.059347
0
0
0
0
0
0
0
0
0
0.047382
0.221359
515
19
131
27.105263
0.793017
0.087379
0
0
1
0
0.232906
0.183761
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
27cf0752750a601631d6eb41160ff570cbd2f28b
745
py
Python
tests/components/test_pressure.py
StephenOrJames/aviation-weather
35594cc1ba448acdea9123380cc47ac96d2107c8
[ "MIT" ]
2
2017-03-14T23:28:28.000Z
2020-01-10T23:04:30.000Z
tests/components/test_pressure.py
aviationweather/aviation_weather
35594cc1ba448acdea9123380cc47ac96d2107c8
[ "MIT" ]
null
null
null
tests/components/test_pressure.py
aviationweather/aviation_weather
35594cc1ba448acdea9123380cc47ac96d2107c8
[ "MIT" ]
null
null
null
import unittest from aviation_weather import Pressure from aviation_weather.exceptions import PressureDecodeError class TestPressure(unittest.TestCase): """Unit tests for aviation_weather.components.pressure.Pressure""" def _test_valid(self, raw, indicator, value): p = Pressure(raw) self.asse...
31.041667
73
0.700671
89
745
5.707865
0.460674
0.088583
0.070866
0.066929
0
0
0
0
0
0
0
0.033445
0.197315
745
23
74
32.391304
0.816054
0.138255
0
0
0
0
0.025157
0
0
0
0
0
0.25
1
0.25
false
0
0.1875
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
27d0a5af065bcae7e08ec87afb0042e3af35059a
2,420
py
Python
projects/models.py
DerrickOdhiambo/P-Awards
d8a511d8a1f7d657f0d84e65927bac505535148a
[ "MIT" ]
null
null
null
projects/models.py
DerrickOdhiambo/P-Awards
d8a511d8a1f7d657f0d84e65927bac505535148a
[ "MIT" ]
null
null
null
projects/models.py
DerrickOdhiambo/P-Awards
d8a511d8a1f7d657f0d84e65927bac505535148a
[ "MIT" ]
null
null
null
from django.db import models from django.utils.timezone import now from django.contrib.auth.models import User from django.urls import reverse from django_resized import ResizedImageField class Project(models.Model): title = models.CharField(max_length=50) project_image = models.ImageField(upload_to='project/...
27.5
89
0.658264
290
2,420
5.317241
0.344828
0.032425
0.036316
0.054475
0.180285
0.164073
0.164073
0
0
0
0
0.018607
0.222727
2,420
87
90
27.816092
0.80117
0.005372
0
0.132353
0
0
0.042412
0
0
0
0
0
0
1
0.147059
false
0
0.073529
0.058824
0.617647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
27d2229f3a522510f0a2d0c5e4e542d122890090
2,992
py
Python
franki/docker/compose.py
cr0hn/franki
f375ad9f5f4fc233fc007242076d15063e754b2b
[ "BSD-3-Clause" ]
1
2020-08-08T11:57:12.000Z
2020-08-08T11:57:12.000Z
franki/docker/compose.py
cr0hn/franki
f375ad9f5f4fc233fc007242076d15063e754b2b
[ "BSD-3-Clause" ]
2
2020-07-20T22:39:30.000Z
2021-09-02T12:00:29.000Z
franki/docker/compose.py
cr0hn/franki
f375ad9f5f4fc233fc007242076d15063e754b2b
[ "BSD-3-Clause" ]
1
2020-08-08T11:57:14.000Z
2020-08-08T11:57:14.000Z
import argparse from typing import List import yaml from ..dal.services import ServiceConfig TAB = " " * 2 def cli_docker_compose(parser: argparse._SubParsersAction): sub_parser = parser.add_parser("docker-compose", help="build a docker-compose") sub_parser.add_argument(...
32.879121
83
0.489305
299
2,992
4.762542
0.257525
0.05618
0.167135
0.151685
0.440309
0.351124
0.317416
0.254213
0.113764
0.113764
0
0.005081
0.276404
2,992
90
84
33.244444
0.652656
0.164439
0
0.236364
0
0
0.277845
0.066345
0
0
0
0.011111
0
1
0.036364
false
0
0.072727
0
0.127273
0
0
0
0
null
0
0
0
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
27d571db643029a652c8e3c5d9700996dc8b4c77
4,244
py
Python
complaints/ccdb/tests/test_choose_field_map.py
JeffreyMFarley/ccdb-data-pipeline
3cc936f0850c7ef1cad1124454c504561d9b2f6c
[ "CC0-1.0" ]
6
2018-10-23T04:12:17.000Z
2021-08-18T18:08:50.000Z
complaints/ccdb/tests/test_choose_field_map.py
cwdavies/ccdb-data-pipeline
8c48be1560661b9a1029b5cf7ec04749eb1317ce
[ "CC0-1.0" ]
18
2017-06-14T19:26:42.000Z
2021-12-08T20:50:51.000Z
complaints/ccdb/tests/test_choose_field_map.py
cwdavies/ccdb-data-pipeline
8c48be1560661b9a1029b5cf7ec04749eb1317ce
[ "CC0-1.0" ]
13
2017-06-19T17:03:53.000Z
2021-12-08T15:19:43.000Z
import os import unittest import complaints.ccdb.choose_field_map as sut from common.tests import build_argv, captured_output, validate_files def fieldsToAbsolute(mapping_file): # where is _this_ file? and one level up thisScriptDir = os.path.dirname(os.path.dirname(__file__)) return os.path.join(thisSc...
33.952
80
0.624175
484
4,244
5.295455
0.196281
0.081935
0.043699
0.051892
0.750683
0.72181
0.672649
0.656262
0.631291
0.579789
0
0.009451
0.227144
4,244
124
81
34.225806
0.771951
0.053252
0
0.517241
0
0
0.117149
0.005234
0
0
0
0
0.137931
1
0.126437
false
0.011494
0.045977
0
0.206897
0.114943
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
27d717adf74177d60fb3fffab9146335e1cf76b6
2,231
py
Python
bash_to_python/cat.py
blakfeld/Bash-To-Python
d6a56dedbce1314e33e9773fa7039f25fccef1c3
[ "MIT" ]
null
null
null
bash_to_python/cat.py
blakfeld/Bash-To-Python
d6a56dedbce1314e33e9773fa7039f25fccef1c3
[ "MIT" ]
null
null
null
bash_to_python/cat.py
blakfeld/Bash-To-Python
d6a56dedbce1314e33e9773fa7039f25fccef1c3
[ "MIT" ]
null
null
null
""" cat.py -- Emulate UNIX cat. Author: Corwin Brown E-Mail: blakfeld@gmail.com Date: 5/25/2015 """ import os import sys class Cat(object): def __init__(self, fname=None, stdin=None): """ Constructor Args: fname (str): File to print to screen stdin (str): Input ...
22.089109
79
0.506948
265
2,231
4.166038
0.328302
0.07337
0.047101
0.018116
0.03442
0
0
0
0
0
0
0.005185
0.39489
2,231
100
80
22.31
0.812593
0
0
0.111111
0
0
0.048309
0
0
0
0
0
0
0
null
null
0
0.055556
null
null
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
27dbbbc0f38f8b20299bebfb7bf12947409176fa
1,405
py
Python
leetcode-CP/Data-structures-Problems/566. Reshape the Matrix.py
vijay2020pc/100-days-of-code
b59e54471015b294bad408289e6d9101d7494b01
[ "MIT" ]
null
null
null
leetcode-CP/Data-structures-Problems/566. Reshape the Matrix.py
vijay2020pc/100-days-of-code
b59e54471015b294bad408289e6d9101d7494b01
[ "MIT" ]
null
null
null
leetcode-CP/Data-structures-Problems/566. Reshape the Matrix.py
vijay2020pc/100-days-of-code
b59e54471015b294bad408289e6d9101d7494b01
[ "MIT" ]
null
null
null
In MATLAB, there is a handy function called reshape which can reshape an m x n matrix into a new one with a different size r x c keeping its original data. You are given an m x n matrix mat and two integers r and c representing the number of rows and the number of columns of the wanted reshaped matrix. The reshaped m...
26.018519
155
0.567972
236
1,405
3.364407
0.381356
0.044081
0.015113
0.020151
0.09068
0.062972
0.062972
0
0
0
0
0.042797
0.318149
1,405
53
156
26.509434
0.786013
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
27dcd68de3cd841133371f036e9cbd5bdac477e1
1,867
py
Python
src/convert/vukuzazi.py
IHCC-cohorts/data-harmonization-test
01a144aa25a70aed659c30aed6518c30e93a48ca
[ "Apache-2.0" ]
null
null
null
src/convert/vukuzazi.py
IHCC-cohorts/data-harmonization-test
01a144aa25a70aed659c30aed6518c30e93a48ca
[ "Apache-2.0" ]
104
2020-05-06T12:31:24.000Z
2022-01-12T06:49:22.000Z
src/convert/vukuzazi.py
IHCC-cohorts/data-harmonization-test
01a144aa25a70aed659c30aed6518c30e93a48ca
[ "Apache-2.0" ]
1
2020-10-15T21:08:40.000Z
2020-10-15T21:08:40.000Z
import csv import pandas as pd from argparse import ArgumentParser, FileType def main(): p = ArgumentParser() p.add_argument('input', type=str) p.add_argument('output', type=FileType('w')) args = p.parse_args() input_xlsx = args.input output_file = args.output xlsx = pd.ExcelFile(input_...
32.754386
120
0.630959
235
1,867
4.778723
0.357447
0.031167
0.053428
0.026714
0
0
0
0
0
0
0
0.002749
0.220675
1,867
56
121
33.339286
0.769072
0.010712
0
0
0
0
0.119241
0
0
0
0
0.017857
0
1
0.022727
false
0
0.068182
0
0.090909
0
0
0
0
null
0
0
0
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
27ddb42550aa0f8795e4e3c74be92d0a5658cc9e
486
py
Python
authorization/migrations/0005_auto_20200207_2204.py
KariSpace/CRM_Sedicomm
cb19e90ca99c7a50a1841afbfb878191f62dec5c
[ "MIT" ]
null
null
null
authorization/migrations/0005_auto_20200207_2204.py
KariSpace/CRM_Sedicomm
cb19e90ca99c7a50a1841afbfb878191f62dec5c
[ "MIT" ]
null
null
null
authorization/migrations/0005_auto_20200207_2204.py
KariSpace/CRM_Sedicomm
cb19e90ca99c7a50a1841afbfb878191f62dec5c
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2020-02-07 20:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('authorization', '0004_auto_20200207_2147'), ] operations = [ migrations.AlterField( model_name=...
24.3
111
0.650206
55
486
5.636364
0.672727
0.077419
0.090323
0.141935
0
0
0
0
0
0
0
0.083333
0.234568
486
19
112
25.578947
0.75
0.092593
0
0
1
0
0.154897
0.052392
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
27e695378b007bd0b96f2545501ffd2def05df82
2,968
py
Python
ArticleTranslation.py
soumendrak/Odia-Translation
4a101ad5b26222186364be2b3f603d9e140bd63a
[ "MIT" ]
null
null
null
ArticleTranslation.py
soumendrak/Odia-Translation
4a101ad5b26222186364be2b3f603d9e140bd63a
[ "MIT" ]
1
2018-11-29T15:02:00.000Z
2019-01-27T17:20:04.000Z
ArticleTranslation.py
soumendrak/Odia-Translation
4a101ad5b26222186364be2b3f603d9e140bd63a
[ "MIT" ]
1
2018-11-29T15:02:33.000Z
2018-11-29T15:02:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import urllib2 import re import goslate def trans(word): gs = goslate.Goslate() ro = gs.translate(word, 'or') if ro == "": ro = word return ro i = 3 while i != 100000: ArtName = raw_input('\n\ntype the name of article from english wikipedia: '...
36.641975
112
0.520553
378
2,968
3.97619
0.296296
0.055888
0.03992
0.021956
0.163673
0.103792
0.075848
0.041251
0
0
0
0.033511
0.306267
2,968
80
113
37.1
0.694998
0.072776
0
0.060606
0
0
0.190893
0.012022
0
0
0
0
0
0
null
null
0
0.045455
null
null
0.136364
0
0
0
null
0
0
0
0
0
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
27e7a13684538c40ea826c845d900199b05c5a5c
1,089
py
Python
backend/app/routers/documents.py
nokia-wroclaw/innovativeproject-wiki
2216e5980255a3f3cac400966a986e79b7212e82
[ "MIT" ]
9
2021-04-08T17:20:10.000Z
2021-06-04T09:05:49.000Z
backend/app/routers/documents.py
nokia-wroclaw/innovativeproject-wiki
2216e5980255a3f3cac400966a986e79b7212e82
[ "MIT" ]
90
2021-03-19T13:22:30.000Z
2021-06-17T08:03:56.000Z
backend/app/routers/documents.py
nokia-wroclaw/innovativeproject-wiki
2216e5980255a3f3cac400966a986e79b7212e82
[ "MIT" ]
1
2021-06-16T20:46:40.000Z
2021-06-16T20:46:40.000Z
""" TODO module docstring """ import json from fastapi import APIRouter from app.routers.files import get_document_path from app.utils.message import Message, MsgStatus router = APIRouter(prefix="/api/document", tags=["Document Management"]) DOCUMENT_FILE = "document.json" @router.get("/{document_name}") async de...
25.928571
81
0.734619
138
1,089
5.572464
0.355072
0.109233
0.058518
0.052016
0.351105
0.351105
0.351105
0.351105
0.231469
0.231469
0
0.001091
0.157943
1,089
41
82
26.560976
0.837514
0.019284
0
0.090909
0
0
0.115768
0
0
0
0
0.04878
0
1
0
false
0
0.181818
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
27e955faeb68e1a73ea3b41b43cd323fec027174
625
py
Python
create_input_files_coco.py
sulabhkatiyar/show_tell
995fa806ff7bb74d4fb12a40122d6556994f5cbd
[ "MIT" ]
null
null
null
create_input_files_coco.py
sulabhkatiyar/show_tell
995fa806ff7bb74d4fb12a40122d6556994f5cbd
[ "MIT" ]
null
null
null
create_input_files_coco.py
sulabhkatiyar/show_tell
995fa806ff7bb74d4fb12a40122d6556994f5cbd
[ "MIT" ]
null
null
null
from utils import create_input_files """ To create files that contain all images stored in h5py format and captions stored in json files. Minimum word frequencies to be used as cut-off for removing rare words to be specifiied here. """ if __name__ == '__main__': create_input_files(dataset='coco', ...
39.0625
96
0.6288
79
625
4.556962
0.658228
0.061111
0.088889
0
0
0
0
0
0
0
0
0.011601
0.3104
625
15
97
41.666667
0.823666
0
0
0
0
0
0.201405
0.173302
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
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
27f752318673f25c57148e2077f00497ab6f046d
7,019
py
Python
code_python/Easy_Run.py
pinxau1000/Computer-Vision
c1d8da241dfe39467aaa65777c725fdebffe35cf
[ "MIT" ]
null
null
null
code_python/Easy_Run.py
pinxau1000/Computer-Vision
c1d8da241dfe39467aaa65777c725fdebffe35cf
[ "MIT" ]
null
null
null
code_python/Easy_Run.py
pinxau1000/Computer-Vision
c1d8da241dfe39467aaa65777c725fdebffe35cf
[ "MIT" ]
null
null
null
import subprocess import sys _PYTHON_INTERPRETER = sys.executable _CURRENT_DIRECTORY = sys.path[0] _opt = "" while _opt != '0': print("---------------- MAIN MENU ----------------") print("1 - Noise Removal") print("2 - Edge Extraction") print("3 - Corner Detection") print("4 - Custom Harris") ...
40.80814
80
0.426984
642
7,019
4.493769
0.158879
0.067938
0.158059
0.249567
0.583362
0.569497
0.557019
0.557019
0.45234
0.281802
0
0.017341
0.408463
7,019
171
81
41.046784
0.677505
0
0
0.570552
0
0
0.316854
0.103291
0
0
0
0
0
1
0
false
0.030675
0.01227
0
0.01227
0.294479
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
27f84dffdb102712abf83945ee78d74da45fc3d3
1,122
py
Python
ped.py
rchui/Stat530
2a2fb5bf1f246431cffe2eed7cfd6b356909b030
[ "Apache-2.0" ]
null
null
null
ped.py
rchui/Stat530
2a2fb5bf1f246431cffe2eed7cfd6b356909b030
[ "Apache-2.0" ]
null
null
null
ped.py
rchui/Stat530
2a2fb5bf1f246431cffe2eed7cfd6b356909b030
[ "Apache-2.0" ]
null
null
null
import csv import sys csv.field_size_limit(sys.maxsize) """Reads in data passed by the user from a CSV file.""" count = 0 fileName = sys.argv[1] csvArray = {} with open(fileName) as csvFile: reader = csv.reader(csvFile) for row in reader: row.pop() if count != 0: readRow = [i for i in row] csvArray[readRo...
20.4
65
0.573084
184
1,122
3.483696
0.336957
0.085803
0.093604
0.049922
0.093604
0.093604
0.093604
0.093604
0.093604
0
0
0.04878
0.23262
1,122
54
66
20.777778
0.695703
0
0
0.090909
0
0
0.003925
0
0
0
0
0
0
0
null
null
0
0.045455
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
27fc412ababcb405e9323a09e959b7d08fbe17d4
1,790
py
Python
homeassistant/components/laundrify/__init__.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/laundrify/__init__.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/laundrify/__init__.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""The laundrify integration.""" from __future__ import annotations from laundrify_aio import LaundrifyAPI from laundrify_aio.exceptions import ApiConnectionException, UnauthorizedException from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_ACCESS_TOKEN, Platform from homeassist...
33.773585
87
0.78324
200
1,790
6.79
0.355
0.062592
0.023564
0.039764
0.061856
0.061856
0
0
0
0
0
0
0.14581
1,790
52
88
34.423077
0.888162
0.014525
0
0
0
0
0.036752
0
0
0
0
0
0
1
0
false
0
0.3125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7e08660de17d0e499028dba77a23042cc2bd878e
1,837
py
Python
numpy_practice.py
MiroGasparek/python_intro
8b4aec8e54f16e33fef506631de0b9ee2e512dea
[ "CC-BY-4.0", "MIT" ]
null
null
null
numpy_practice.py
MiroGasparek/python_intro
8b4aec8e54f16e33fef506631de0b9ee2e512dea
[ "CC-BY-4.0", "MIT" ]
null
null
null
numpy_practice.py
MiroGasparek/python_intro
8b4aec8e54f16e33fef506631de0b9ee2e512dea
[ "CC-BY-4.0", "MIT" ]
null
null
null
# 21 February 2018 Miroslav Gasparek # Practice with NumPy import numpy as np # Practice 1 # Generate array of 0 to 10 my_ar1 = np.arange(0,11,dtype='float') print(my_ar1) my_ar2 = np.linspace(0,10,11,dtype='float') print(my_ar2) # Practice 2 # Load in data xa_high = np.loadtxt('data/xa_high_food.csv',comments='#')...
26.623188
94
0.637997
371
1,837
3.137466
0.350404
0.020619
0.020619
0.02921
0.065292
0.032646
0.013746
0
0
0
0
0.059063
0.198149
1,837
68
95
27.014706
0.728445
0.492107
0
0
1
0
0.144284
0.023307
0
0
0
0
0
1
0.032258
false
0
0.032258
0
0.096774
0.387097
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
7e0daf88f11580ffc6c816b3a03804e3b716cbf7
21,277
py
Python
TPP/API/top_pro_pack.py
Buddyboy201/top_pro_pack-v3
15b452cb7aa8e467d6b3c07779bb238c6ec30e49
[ "MIT" ]
null
null
null
TPP/API/top_pro_pack.py
Buddyboy201/top_pro_pack-v3
15b452cb7aa8e467d6b3c07779bb238c6ec30e49
[ "MIT" ]
null
null
null
TPP/API/top_pro_pack.py
Buddyboy201/top_pro_pack-v3
15b452cb7aa8e467d6b3c07779bb238c6ec30e49
[ "MIT" ]
null
null
null
import os import sys import sqlalchemy from pathlib import Path from TPP.API.centroid_protein import CentroidProtein import json from shutil import copyfile from time import perf_counter def get_config(name, pdb_path, json_path, exclude_backbone, distance_cutoff, ignored_paths): config = { "name": name, ...
38.199282
267
0.59609
2,677
21,277
4.474412
0.071349
0.050092
0.028051
0.014694
0.688596
0.626649
0.582568
0.563617
0.560027
0.554517
0
0.001178
0.281901
21,277
557
268
38.199282
0.782774
0.0047
0
0.582569
0
0.027523
0.708486
0.228736
0
0
0
0
0
1
0.043578
false
0
0.018349
0.009174
0.181193
0.036697
0
0
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
fd658d2470d44769d849e203f523f666381b2cd5
369
py
Python
solutions/python3/811.py
sm2774us/amazon_interview_prep_2021
f580080e4a6b712b0b295bb429bf676eb15668de
[ "MIT" ]
42
2020-08-02T07:03:49.000Z
2022-03-26T07:50:15.000Z
solutions/python3/811.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
null
null
null
solutions/python3/811.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
40
2020-02-08T02:50:24.000Z
2022-03-26T15:38:10.000Z
class Solution: def subdomainVisits(self, cpdomains): counter = collections.Counter() for cpdomain in cpdomains: count, *domains = cpdomain.replace(" ",".").split(".") for i in range(len(domains)): counter[".".join(domains[i:])] += int(count) return ["...
46.125
66
0.555556
41
369
5
0.609756
0
0
0
0
0
0
0
0
0
0
0
0.271003
369
8
67
46.125
0.762082
0
0
0
0
0
0.013514
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
fd6bf071350b60e1d330333554f8076b53a422f2
718
py
Python
tools/read_test_results.py
VirgiAgl/updated_AutoGP
2ec5671a4c1554555ab70c351944b3e8649e4237
[ "Apache-2.0" ]
null
null
null
tools/read_test_results.py
VirgiAgl/updated_AutoGP
2ec5671a4c1554555ab70c351944b3e8649e4237
[ "Apache-2.0" ]
null
null
null
tools/read_test_results.py
VirgiAgl/updated_AutoGP
2ec5671a4c1554555ab70c351944b3e8649e4237
[ "Apache-2.0" ]
null
null
null
'''Directly copied from MMD case''' from numpy import sqrt import os from pickle import load import sys os.chdir(sys.argv[1]) load_filename = "results.bin" load_f = open(load_filename,"r") [counter, numTrials, param, average_time, pvalues] = load(load_f) load_f.close() rate = counter/float(numTrials) stder = 1.96*sq...
26.592593
82
0.708914
109
718
4.605505
0.550459
0.02988
0
0
0
0
0
0
0
0
0
0.013072
0.147632
718
26
83
27.615385
0.80719
0.094708
0
0
0
0
0.159292
0
0
0
0
0
0
0
null
null
0
0.222222
null
null
0.277778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fd6c1ed813989e547e2b002125978c6496f52462
956
py
Python
help/migrations/0004_article_faq_article_order_articlecategory_order_and_more.py
AppointmentGuru/kb
9ae709a52f85f8aaff7e878dc749447356711faa
[ "MIT" ]
null
null
null
help/migrations/0004_article_faq_article_order_articlecategory_order_and_more.py
AppointmentGuru/kb
9ae709a52f85f8aaff7e878dc749447356711faa
[ "MIT" ]
null
null
null
help/migrations/0004_article_faq_article_order_articlecategory_order_and_more.py
AppointmentGuru/kb
9ae709a52f85f8aaff7e878dc749447356711faa
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-02-01 17:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('help', '0003_article_categories_articlecategory'), ] operations = [ migrations.AddField( model_name='article', name=...
28.117647
105
0.58682
86
956
6.430233
0.523256
0.065099
0.124774
0.146474
0.350814
0.350814
0.220615
0.220615
0
0
0
0.040238
0.298117
956
33
106
28.969697
0.783905
0.047071
0
0.518519
1
0
0.148515
0.042904
0
0
0
0
0
1
0
false
0
0.037037
0
0.148148
0
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
fd6dfac3e201be4a2a5b13b325af3fee68da8dfe
1,551
py
Python
poolink_backend/apps/board/migrations/0001_initial.py
jaethewiederholen/Poolink_backend
3a1b28856bc8916aedb7735de8b64fef3269ef1b
[ "MIT" ]
null
null
null
poolink_backend/apps/board/migrations/0001_initial.py
jaethewiederholen/Poolink_backend
3a1b28856bc8916aedb7735de8b64fef3269ef1b
[ "MIT" ]
null
null
null
poolink_backend/apps/board/migrations/0001_initial.py
jaethewiederholen/Poolink_backend
3a1b28856bc8916aedb7735de8b64fef3269ef1b
[ "MIT" ]
null
null
null
# Generated by Django 3.1.12 on 2021-06-24 15:23 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] op...
44.314286
164
0.618311
188
1,551
4.941489
0.537234
0.118407
0.069968
0.047363
0.066738
0
0
0
0
0
0
0.01617
0.242424
1,551
34
165
45.617647
0.774468
0.029658
0
0
1
0
0.167665
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fd755bb6fe4882961cb4bd3e492a1cd14c6ae158
17,800
py
Python
linuxOperation/app/security/views.py
zhouli121018/core
f9700204349ecb22d45e700e9e27e79412829199
[ "MIT" ]
null
null
null
linuxOperation/app/security/views.py
zhouli121018/core
f9700204349ecb22d45e700e9e27e79412829199
[ "MIT" ]
1
2021-06-10T20:45:55.000Z
2021-06-10T20:45:55.000Z
linuxOperation/app/security/views.py
zhouli121018/core
f9700204349ecb22d45e700e9e27e79412829199
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import re import copy # import os import json # import ConfigParser from django.shortcuts import render from django.http import HttpResponseRedirect, HttpResponse, Http404 from django.core.urlresolvers import reverse from django.contrib import messages fro...
39.821029
138
0.629213
2,024
17,800
5.362648
0.116107
0.020269
0.028192
0.034549
0.734844
0.681592
0.658283
0.62705
0.605215
0.593238
0
0.0101
0.232416
17,800
447
139
39.821029
0.784308
0.009045
0
0.669192
0
0
0.115407
0.03672
0
0
0
0
0
1
0.045455
false
0.073232
0.065657
0
0.189394
0
0
0
0
null
0
0
0
0
0
0
0
0
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
fd7c4a3be3ccb83ad681b393363a292d2fccf54d
2,988
py
Python
flybirds/utils/dsl_helper.py
LinuxSuRen/flybirds
a99027d87f61966c148dbcd314fcef8037c78a17
[ "MIT" ]
1
2022-01-20T06:46:25.000Z
2022-01-20T06:46:25.000Z
flybirds/utils/dsl_helper.py
Nightwish555/flybirds
49de598a52d349ee407d24e6339dfedd8c356cf5
[ "MIT" ]
null
null
null
flybirds/utils/dsl_helper.py
Nightwish555/flybirds
49de598a52d349ee407d24e6339dfedd8c356cf5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ dsl helper """ import re import flybirds.utils.flybirds_log as log # generate result_dic def add_res_dic(dsl_params, functin_pattern, def_key): result_dic = {} match_obj = re.match(functin_pattern, dsl_params) if match_obj is not None: """ senario: Fli...
29.294118
77
0.617805
397
2,988
4.423174
0.309824
0.05467
0.081435
0.071754
0.340547
0.255125
0.197039
0.142369
0.142369
0.099089
0
0.027435
0.268072
2,988
101
78
29.584158
0.775492
0.12751
0
0.22
1
0.02
0.046523
0.02001
0
0
0
0
0
1
0.1
false
0
0.04
0
0.26
0
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
fd8a368406c8d48d50d4d50af9a75d9d0a69f255
656
py
Python
Programs/Chapter8-programs/python/unit_test_example/src/PairingBasisGenerated.py
cpmoca/LectureNotesPhysics
8e9f8c5d7f163ea10b14002850f7c79acc4513df
[ "CC0-1.0" ]
24
2016-11-22T09:42:49.000Z
2022-03-11T01:33:46.000Z
Programs/Chapter8-programs/python/unit_test_example/src/PairingBasisGenerated.py
cpmoca/LectureNotesPhysics
8e9f8c5d7f163ea10b14002850f7c79acc4513df
[ "CC0-1.0" ]
null
null
null
Programs/Chapter8-programs/python/unit_test_example/src/PairingBasisGenerated.py
cpmoca/LectureNotesPhysics
8e9f8c5d7f163ea10b14002850f7c79acc4513df
[ "CC0-1.0" ]
25
2016-05-24T22:54:07.000Z
2022-02-20T00:08:19.000Z
class PairingBasisGen: def generateFermi(self): for i in range(0,self.nParticles): self.below_fermi.append(i) for j in range(self.nParticles, self.nSpStates): self.above_fermi.append(j) def generateStates(self): for sp in range(0,self.nSpStates/2): se...
27.333333
56
0.596037
76
656
5.039474
0.328947
0.05483
0.041775
0.062663
0.104439
0.104439
0
0
0
0
0
0.014989
0.28811
656
23
57
28.521739
0.805139
0
0
0
1
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fd91d41cce57dfcc5f4950cac2fbcff64a882864
39,903
py
Python
02-make_figures.py
kochanczyk/covid19-pareto
f1a1e0714672817f6eb1bfcc9b1d28912e1173da
[ "MIT" ]
1
2021-10-21T03:16:40.000Z
2021-10-21T03:16:40.000Z
02-make_figures.py
kochanczyk/covid19-pareto
f1a1e0714672817f6eb1bfcc9b1d28912e1173da
[ "MIT" ]
null
null
null
02-make_figures.py
kochanczyk/covid19-pareto
f1a1e0714672817f6eb1bfcc9b1d28912e1173da
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #pylint: disable = C, R #pylint: disable = E1101 # no-member (generated-members) #pylint: disable = C0302 # too-many-lines """ This code features the article "Pareto-based evaluation of national responses to COVID-19 pandemic shows that saving lives and protecting economy are non-trade-o...
43.89769
113
0.567727
5,510
39,903
3.95608
0.135027
0.002936
0.02202
0.009542
0.473621
0.413891
0.371089
0.33003
0.305211
0.287595
0
0.057975
0.275944
39,903
908
114
43.946035
0.69649
0.046062
0
0.234222
1
0.001403
0.119907
0.015265
0
0
0
0
0.009818
1
0.02805
false
0
0.025245
0.001403
0.075736
0.019635
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
fd9c00b98c0b64d9da16330d731425e389a97791
2,623
py
Python
tests/test_sockets.py
initbar/SIPd
562aa0c5a215fc6ee0eff6e6f44c8feed1da7731
[ "MIT" ]
1
2019-06-26T19:58:59.000Z
2019-06-26T19:58:59.000Z
tests/test_sockets.py
initbar/sipping
562aa0c5a215fc6ee0eff6e6f44c8feed1da7731
[ "MIT" ]
null
null
null
tests/test_sockets.py
initbar/sipping
562aa0c5a215fc6ee0eff6e6f44c8feed1da7731
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2018 Herbert Shin # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge,...
37.471429
80
0.748761
374
2,623
5.016043
0.387701
0.076759
0.117804
0.159382
0.30597
0.30597
0.30597
0.216418
0.101279
0
0
0.021699
0.174228
2,623
69
81
38.014493
0.844414
0.426611
0
0
0
0
0.036635
0
0
0
0
0
0.307692
1
0.307692
false
0
0.153846
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fda2cf0415eb03a783303b5da749a276b27b70dd
1,480
py
Python
setup.py
finnish-heritage-agency/passari-web-ui
052cecdd3cd5fb1235cefd84e02516838d61f17c
[ "MIT" ]
1
2020-06-17T11:00:41.000Z
2020-06-17T11:00:41.000Z
setup.py
finnish-heritage-agency/passari-web-ui
052cecdd3cd5fb1235cefd84e02516838d61f17c
[ "MIT" ]
null
null
null
setup.py
finnish-heritage-agency/passari-web-ui
052cecdd3cd5fb1235cefd84e02516838d61f17c
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages NAME = "passari_web_ui" DESCRIPTION = ( "Web interface for Passari workflow" ) LONG_DESCRIPTION = DESCRIPTION AUTHOR = "Janne Pulkkinen" AUTHOR_EMAIL = "janne.pulkkinen@museovirasto.fi" setup( name=NAME, description=DESCRIPTION, long_description=LONG_DESCR...
25.517241
72
0.587838
146
1,480
5.773973
0.554795
0.035587
0.042705
0.061684
0
0
0
0
0
0
0
0.01105
0.266216
1,480
57
73
25.964912
0.765193
0
0
0.037736
0
0
0.395946
0.020946
0
0
0
0
0
1
0
false
0.056604
0.018868
0
0.018868
0
0
0
0
null
0
0
0
0
0
0
0
0
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
fda5e45dd40b81ba7b292045a8562607c230c280
2,956
py
Python
classification.py
Gusyatnikova/argument-mining-rus
dc81159fce12093289a65a5e8e59890002ff74e5
[ "BSD-3-Clause" ]
null
null
null
classification.py
Gusyatnikova/argument-mining-rus
dc81159fce12093289a65a5e8e59890002ff74e5
[ "BSD-3-Clause" ]
null
null
null
classification.py
Gusyatnikova/argument-mining-rus
dc81159fce12093289a65a5e8e59890002ff74e5
[ "BSD-3-Clause" ]
null
null
null
import os import pickle import nltk as nltk from nltk.classify import SklearnClassifier from sklearn.linear_model import LogisticRegression from sklearn.naive_bayes import MultinomialNB, BernoulliNB from data_manager import DataManager correct_labels = ['Premise', 'Claim', 'MajorClaim'] correct_links = ['Support', 'At...
34.776471
90
0.723275
319
2,956
6.420063
0.22884
0.078125
0.068359
0.046875
0.353516
0.258789
0.258789
0.215332
0.051758
0
0
0.000417
0.188769
2,956
84
91
35.190476
0.853628
0
0
0.112903
0
0
0.07327
0.035957
0
0
0
0
0
1
0.177419
false
0.080645
0.112903
0.032258
0.370968
0
0
0
0
null
0
0
0
0
0
0
0
0
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
fdaadac654ce937ab94a26fe0207bcae4b2d6f2b
1,503
py
Python
setup.py
grantjenks/python-appstore
d9aae18de157dfb7d9396d1af7e7b62168489990
[ "Apache-2.0" ]
1
2019-07-05T06:59:41.000Z
2019-07-05T06:59:41.000Z
setup.py
grantjenks/python-appstore
d9aae18de157dfb7d9396d1af7e7b62168489990
[ "Apache-2.0" ]
2
2019-07-14T19:39:17.000Z
2019-07-22T05:26:51.000Z
setup.py
grantjenks/python-appstore
d9aae18de157dfb7d9396d1af7e7b62168489990
[ "Apache-2.0" ]
null
null
null
from io import open from setuptools import setup from setuptools.command.test import test as TestCommand import appstore class Tox(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): impor...
30.06
70
0.630739
162
1,503
5.765432
0.537037
0.162741
0.214133
0.111349
0
0
0
0
0
0
0
0.012206
0.23686
1,503
49
71
30.673469
0.802092
0
0
0
0
0
0.409182
0.014637
0
0
0
0
0
1
0.046512
false
0
0.116279
0
0.186047
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
fdb28147b0de2ec0c1252d551e0735db28573d72
3,602
py
Python
kubernetes_manager/models/base.py
breimers/Django-Kubernetes-Manager
cb78b51e6aeabcd4037166fa8e7c565180fb7d93
[ "MIT" ]
13
2020-04-03T08:33:51.000Z
2022-02-22T07:30:28.000Z
kubernetes_manager/models/base.py
breimers/Django-Kubernetes-Manager
cb78b51e6aeabcd4037166fa8e7c565180fb7d93
[ "MIT" ]
27
2020-04-03T06:51:38.000Z
2022-01-21T13:12:28.000Z
kubernetes_manager/models/base.py
breimers/Django-Kubernetes-Manager
cb78b51e6aeabcd4037166fa8e7c565180fb7d93
[ "MIT" ]
6
2020-09-14T18:22:37.000Z
2022-03-04T09:08:25.000Z
import json from tempfile import NamedTemporaryFile from uuid import uuid4 from django.contrib.postgres.fields import JSONField from django.db import models from kubernetes import client, config class KubernetesBase(models.Model): """ KubernetesBase :type: model (abstract) :description: Base parent ...
39.152174
141
0.702943
418
3,602
5.971292
0.356459
0.038462
0.033654
0.034054
0.223157
0.151843
0.084135
0.084135
0.084135
0.048077
0
0.005546
0.199056
3,602
91
142
39.582418
0.859619
0.226818
0
0.142857
0
0
0.205679
0
0
0
0
0
0
1
0.071429
false
0.02381
0.142857
0.02381
0.738095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
fdb82872cf0b2d9bc888d32a7a358874adc93d9c
1,581
py
Python
features/steps/levenshtein_steps.py
clibc/howabout
780cacbdd9156106cc77f643c75191a824b034bb
[ "MIT" ]
2
2020-01-29T04:04:16.000Z
2021-12-31T09:08:26.000Z
features/steps/levenshtein_steps.py
clibc/howabout
780cacbdd9156106cc77f643c75191a824b034bb
[ "MIT" ]
null
null
null
features/steps/levenshtein_steps.py
clibc/howabout
780cacbdd9156106cc77f643c75191a824b034bb
[ "MIT" ]
null
null
null
import random from behave import given, when, then from howabout import get_levenshtein @given('two long strings') def step_two_long_strings(context): alphabet = 'abcdefghijklmnopqrstuvwxyz' random_str = lambda size: [random.choice(alphabet) for _ in range(0, size)] context.first = random_str(1024) c...
25.918033
94
0.726123
209
1,581
5.330144
0.272727
0.056553
0.068223
0.067325
0.096948
0.066427
0
0
0
0
0
0.007553
0.162555
1,581
61
95
25.918033
0.833837
0.053763
0
0.108108
0
0
0.200136
0.017699
0
0
0
0
0.108108
1
0.243243
false
0
0.081081
0
0.324324
0
0
0
0
null
0
0
0
0
0
0
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
fdbebb8f5910f895c982c614a0783f50f74b52db
1,056
py
Python
app/api/v1/stu/teacher_class.py
Hansybx/guohe3
53990b92f5d45bac1c2b903fd8df9cb97283697e
[ "Apache-2.0" ]
1
2019-08-18T13:16:14.000Z
2019-08-18T13:16:14.000Z
app/api/v1/stu/teacher_class.py
Hansybx/guohe3
53990b92f5d45bac1c2b903fd8df9cb97283697e
[ "Apache-2.0" ]
1
2019-08-19T02:05:32.000Z
2022-02-11T07:27:37.000Z
app/api/v1/stu/teacher_class.py
Hansybx/guohe3
53990b92f5d45bac1c2b903fd8df9cb97283697e
[ "Apache-2.0" ]
1
2019-08-18T09:08:25.000Z
2019-08-18T09:08:25.000Z
""" -*- coding: utf-8 -*- Time : 2019/7/27 16:15 Author : Hansybx """ from flask import request, jsonify from app.api.v1.stu import stu from app.models.error import PasswordFailed from app.models.res import Res from app.utils.teacher_class.teacher_class_utils import get_teacher_class @stu.route('/class/teache...
22
77
0.588068
122
1,056
4.967213
0.45082
0.09901
0.042904
0.056106
0
0
0
0
0
0
0
0.029451
0.292614
1,056
47
78
22.468085
0.781794
0.061553
0
0.060606
0
0
0.087755
0
0
0
0
0
0
1
0.030303
false
0.121212
0.151515
0
0.212121
0
0
0
0
null
0
0
0
0
0
0
0
0
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
fdccbc995b97273659a43ce3a7d1153962171cf3
546
py
Python
bootcamp/authentication/admin.py
ChowBu/bootcamp
1e3a0d129785a54a0f85f4948a6adb01346fd3b3
[ "MIT" ]
null
null
null
bootcamp/authentication/admin.py
ChowBu/bootcamp
1e3a0d129785a54a0f85f4948a6adb01346fd3b3
[ "MIT" ]
null
null
null
bootcamp/authentication/admin.py
ChowBu/bootcamp
1e3a0d129785a54a0f85f4948a6adb01346fd3b3
[ "MIT" ]
null
null
null
from django.contrib import admin from bootcamp.authentication.models import Profile @admin.register(Profile) class ProfileAdmin(admin.ModelAdmin): # 不能添加tags 会出错,暂时不管 # list_display = ('id','user','location', 'url','job_title',) # search_fields = ('user','location', 'url','job_title',) # 设置列表页展示条目数比较小,...
39
65
0.703297
60
546
6.216667
0.666667
0.096515
0.120643
0.144772
0.184987
0
0
0
0
0
0
0.004292
0.14652
546
14
66
39
0.796137
0.598901
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
fdd33da568c99df7033b5d3c69c055bd732844ab
1,960
py
Python
python/sqlflow_submitter/pai/model.py
pake35/sqlflow
1e08c5e8061d6da544a5e2e56d375c885c8ff93e
[ "Apache-2.0" ]
1
2019-12-24T01:38:17.000Z
2019-12-24T01:38:17.000Z
python/sqlflow_submitter/pai/model.py
pake35/sqlflow
1e08c5e8061d6da544a5e2e56d375c885c8ff93e
[ "Apache-2.0" ]
null
null
null
python/sqlflow_submitter/pai/model.py
pake35/sqlflow
1e08c5e8061d6da544a5e2e56d375c885c8ff93e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The SQLFlow Authors. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
33.793103
78
0.702041
292
1,960
4.592466
0.445205
0.059657
0.082028
0.06264
0.281879
0.250559
0.250559
0.250559
0.250559
0.250559
0
0.007697
0.204592
1,960
57
79
34.385965
0.85247
0.518878
0
0.333333
0
0
0.10035
0
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.458333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
fdd6b169950c797a141a8acebc080e908a0cdfe2
3,046
py
Python
code/waldo/prepare/summarize.py
amarallab/waldo
e38d23d9474a0bcb7a94e685545edb0115b12af4
[ "MIT" ]
null
null
null
code/waldo/prepare/summarize.py
amarallab/waldo
e38d23d9474a0bcb7a94e685545edb0115b12af4
[ "MIT" ]
null
null
null
code/waldo/prepare/summarize.py
amarallab/waldo
e38d23d9474a0bcb7a94e685545edb0115b12af4
[ "MIT" ]
null
null
null
from __future__ import print_function, absolute_import, unicode_literals, division import six from six.moves import (zip, filter, map, reduce, input, range) # standard library import functools # third party # project specific from waldo.conf import settings from waldo import wio from . import secondary from . import...
30.46
93
0.643467
389
3,046
4.843188
0.329049
0.042463
0.031847
0.044586
0.262208
0.159766
0.145435
0.145435
0.048832
0
0
0.00745
0.250821
3,046
100
94
30.46
0.818142
0.171044
0
0.184615
0
0
0.076861
0
0
0
0
0.02
0
1
0.092308
false
0
0.123077
0
0.215385
0.046154
0
0
0
null
0
0
0
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
fdd6b8b422199e961d09628bbb574f4290b37745
3,504
py
Python
ismore/invasive/sim_passive_movement.py
DerekYJC/bmi_python
7b9cf3f294a33688db24b0863c1035e9cc6999ea
[ "Apache-2.0" ]
null
null
null
ismore/invasive/sim_passive_movement.py
DerekYJC/bmi_python
7b9cf3f294a33688db24b0863c1035e9cc6999ea
[ "Apache-2.0" ]
12
2020-07-31T18:58:31.000Z
2022-02-10T14:36:00.000Z
ismore/invasive/sim_passive_movement.py
DerekYJC/bmi_python
7b9cf3f294a33688db24b0863c1035e9cc6999ea
[ "Apache-2.0" ]
4
2020-03-06T15:39:00.000Z
2021-05-26T17:03:21.000Z
import numpy as np import socket, struct from ismore import settings, udp_feedback_client import time from ismore import common_state_lists, ismore_bmi_lib import pandas as pd import pickle import os class Patient(object): def __init__(self, targets_matrix_file): self.addrs = [settings.ARMASSIST_UDP_SERVE...
38.505495
121
0.628139
529
3,504
3.911153
0.272212
0.034799
0.041083
0.031416
0.245046
0.218463
0.174964
0.174964
0.137264
0.074432
0
0.012934
0.22774
3,504
90
122
38.933333
0.751663
0.159817
0
0.067797
0
0
0.044042
0.022192
0
0
0
0
0
0
null
null
0
0.135593
null
null
0.016949
0
0
0
null
0
0
0
0
0
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
fdd833146a33ae1759c8add080352945b9836982
3,292
py
Python
tno/mpc/encryption_schemes/utils/utils.py
TNO-MPC/encryption_schemes.utils
1fcdcca11da9f62fab739e08721a597ce83a50e3
[ "Apache-2.0" ]
null
null
null
tno/mpc/encryption_schemes/utils/utils.py
TNO-MPC/encryption_schemes.utils
1fcdcca11da9f62fab739e08721a597ce83a50e3
[ "Apache-2.0" ]
null
null
null
tno/mpc/encryption_schemes/utils/utils.py
TNO-MPC/encryption_schemes.utils
1fcdcca11da9f62fab739e08721a597ce83a50e3
[ "Apache-2.0" ]
null
null
null
""" Useful functions for creating encryption schemes. """ from math import gcd from typing import Tuple import sympy from ._check_gmpy2 import USE_GMPY2 if USE_GMPY2: import gmpy2 def randprime(low: int, high: int) -> int: """ Generate a random prime number in the range [low, high). Returns GMPY2 MPZ ...
29.132743
100
0.652187
498
3,292
4.196787
0.2249
0.022967
0.028708
0.038278
0.288517
0.205742
0.096651
0.062201
0.04689
0.04689
0
0.010179
0.253949
3,292
112
101
29.392857
0.840798
0.448967
0
0.146341
0
0
0.06716
0
0
0
0
0
0
1
0.146341
false
0
0.121951
0
0.536585
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
fddce99c62af6b875468d7c197b89d054f86b6ad
4,044
py
Python
fast_tmp/apps/api/__init__.py
Chise1/fast-tmp2
0dd34ac3ec7ea5452c1e4b8d922a40665264f42b
[ "Apache-2.0" ]
1
2021-07-02T09:14:12.000Z
2021-07-02T09:14:12.000Z
fast_tmp/apps/api/__init__.py
Chise1/fast-tmp2
0dd34ac3ec7ea5452c1e4b8d922a40665264f42b
[ "Apache-2.0" ]
null
null
null
fast_tmp/apps/api/__init__.py
Chise1/fast-tmp2
0dd34ac3ec7ea5452c1e4b8d922a40665264f42b
[ "Apache-2.0" ]
null
null
null
from datetime import timedelta from fastapi import Form from fastapi.security import OAuth2PasswordRequestForm from fastapi import Depends, HTTPException from pydantic import BaseModel from starlette import status from starlette.requests import Request from fast_tmp.apps.api.schemas import LoginR from fast_tmp.depend...
30.406015
76
0.694115
480
4,044
5.63125
0.233333
0.081391
0.040696
0.016648
0.530892
0.477617
0.477617
0.477617
0.477617
0.464299
0
0.002504
0.209941
4,044
132
77
30.636364
0.843505
0.006677
0
0.453608
0
0
0.071648
0
0
0
0
0
0
1
0
false
0.082474
0.185567
0
0.298969
0
0
0
0
null
0
0
0
0
0
0
0
0
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
fdf318f1f2753f675d5e2e91121f3f14c71366ad
1,046
py
Python
Python3/1287.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
854
2018-11-09T08:06:16.000Z
2022-03-31T06:05:53.000Z
Python3/1287.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
29
2019-06-02T05:02:25.000Z
2021-11-15T04:09:37.000Z
Python3/1287.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
347
2018-12-23T01:57:37.000Z
2022-03-12T14:51:21.000Z
__________________________________________________________________________________________________ sample 76 ms submission class Solution: def findSpecialInteger(self, arr: List[int]) -> int: for idx, num in enumerate(arr): if arr[idx] == arr[idx+len(arr)//4]: return num ________________________...
49.809524
108
0.701721
101
1,046
4.336634
0.356436
0.068493
0.077626
0.114155
0.493151
0.493151
0.493151
0.493151
0.493151
0.493151
0
0.012005
0.203633
1,046
20
109
52.3
0.513806
0
0
0.35
0
0
0
0
0
0
0
0
0.05
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a901b9925ede01dfed39dcc4f9ec50a3174fbd50
1,629
py
Python
Sudoku.py
lavieduynguyen/Sudoku
117c19d456760e9ab9b41c89b1aaebfa98e762bb
[ "MIT" ]
null
null
null
Sudoku.py
lavieduynguyen/Sudoku
117c19d456760e9ab9b41c89b1aaebfa98e762bb
[ "MIT" ]
null
null
null
Sudoku.py
lavieduynguyen/Sudoku
117c19d456760e9ab9b41c89b1aaebfa98e762bb
[ "MIT" ]
null
null
null
import kivy kivy.require('1.10.0') from kivy.app import App from kivy.uix.label import Label from kivy.uix.button import Button from kivy.uix.checkbox import CheckBox from kivy.uix.dropdown import DropDown from kivy.uix.gridlayout import GridLayout from kivy.uix.screenmanager import Screen, ScreenManager from sudokub...
23.271429
95
0.650092
213
1,629
4.798122
0.338028
0.054795
0.064579
0.041096
0.09002
0.09002
0.09002
0.09002
0.09002
0
0
0.021652
0.2345
1,629
70
96
23.271429
0.797915
0
0
0.18
0
0
0.022699
0
0
0
0
0
0
1
0.06
false
0.1
0.18
0
0.42
0
0
0
0
null
0
0
0
0
0
0
0
0
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
8bf026004697c8856e7cf3aabf02361fe2644be9
16,561
py
Python
speech_recognition/cmusphinx-code/sphinxtrain/python/cmusphinx/fstutils.py
Ohara124c41/TUB-MSc_Thesis
b1a2d5dc9c0c589a39019126cf7a5cc775baa288
[ "MIT" ]
1
2016-12-05T01:29:52.000Z
2016-12-05T01:29:52.000Z
speech_recognition/cmusphinx-code/sphinxtrain/python/cmusphinx/fstutils.py
Ohara124c41/TUB-MSc_Thesis
b1a2d5dc9c0c589a39019126cf7a5cc775baa288
[ "MIT" ]
null
null
null
speech_recognition/cmusphinx-code/sphinxtrain/python/cmusphinx/fstutils.py
Ohara124c41/TUB-MSc_Thesis
b1a2d5dc9c0c589a39019126cf7a5cc775baa288
[ "MIT" ]
1
2020-04-24T17:26:59.000Z
2020-04-24T17:26:59.000Z
#!/usr/bin/env python # Copyright (c) 2010 Carnegie Mellon University # # You may copy and modify this freely under the same terms as # Sphinx-III """ FST utility functions """ __author__ = "David Huggins-Daines <dhuggins@cs.cmu.edu>" __version__ = "$Revision $" import sys import os import tempfile import openfst ...
32.794059
98
0.565968
2,095
16,561
4.435322
0.172315
0.034761
0.01356
0.004843
0.219221
0.173483
0.104821
0.080499
0.080499
0.063926
0
0.009787
0.315138
16,561
504
99
32.859127
0.809469
0.115875
0
0.330556
0
0
0.030631
0.001649
0
0
0
0
0
0
null
null
0
0.019444
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
8bf8ae211996df597bcba7d08f3ec57a800db92d
12,170
py
Python
molecules/ml/unsupervised/vae/vae.py
hengma1001/molecules
c6694cc77ef1eb246f3fdab1f201481d1bcaa07c
[ "MIT" ]
null
null
null
molecules/ml/unsupervised/vae/vae.py
hengma1001/molecules
c6694cc77ef1eb246f3fdab1f201481d1bcaa07c
[ "MIT" ]
1
2020-06-08T15:12:31.000Z
2020-06-08T15:12:31.000Z
molecules/ml/unsupervised/vae/vae.py
hengma1001/molecules
c6694cc77ef1eb246f3fdab1f201481d1bcaa07c
[ "MIT" ]
null
null
null
import torch from torch import nn from torch.nn import functional as F from .resnet import ResnetVAEHyperparams from .symmetric import SymmetricVAEHyperparams from molecules.ml.hyperparams import OptimizerHyperparams, get_optimizer __all__ = ['VAE'] class VAEModel(nn.Module): def __init__(self, input_shape, hpara...
30.425
97
0.599014
1,380
12,170
5.153623
0.22029
0.017717
0.011249
0.015748
0.348847
0.283886
0.258718
0.199381
0.190242
0.172385
0
0.006566
0.31175
12,170
399
98
30.501253
0.842526
0.387346
0
0.202899
0
0
0.045369
0
0
0
0
0.010025
0
1
0.130435
false
0.007246
0.057971
0.021739
0.268116
0.021739
0
0
0
null
0
0
0
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
8bfb152e57648baa6f50aac217e240b029335675
354
py
Python
URI/1-Beginner/1074.py
vicenteneto/online-judge-solutions
4176e2387658f083b980d7b49bc98300a4c28411
[ "MIT" ]
null
null
null
URI/1-Beginner/1074.py
vicenteneto/online-judge-solutions
4176e2387658f083b980d7b49bc98300a4c28411
[ "MIT" ]
null
null
null
URI/1-Beginner/1074.py
vicenteneto/online-judge-solutions
4176e2387658f083b980d7b49bc98300a4c28411
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- for i in range(int(raw_input())): x = int(raw_input()) if x == 0: print 'NULL' elif x < 0: if x % 2 == 0: print 'EVEN NEGATIVE' else: print 'ODD NEGATIVE' else: if x % 2 == 0: print 'EVEN POSITIVE' else:...
20.823529
33
0.432203
45
354
3.355556
0.488889
0.059603
0.145695
0.066225
0.18543
0.18543
0
0
0
0
0
0.035
0.435028
354
16
34
22.125
0.72
0.059322
0
0.357143
0
0
0.163142
0
0
0
0
0
0
0
null
null
0
0
null
null
0.357143
0
0
0
null
0
0
0
0
0
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
e3002996a3259836e3022549b717b3213e5a8cdb
3,648
py
Python
itk_invitations/migrations/0001_initial.py
eric-scott-owens/loopla
1fd5e6e7e9907198ff904111010b362a129d5e39
[ "MIT" ]
null
null
null
itk_invitations/migrations/0001_initial.py
eric-scott-owens/loopla
1fd5e6e7e9907198ff904111010b362a129d5e39
[ "MIT" ]
6
2020-06-05T22:27:20.000Z
2022-03-24T10:25:50.000Z
itk_invitations/migrations/0001_initial.py
eric-scott-owens/loopla
1fd5e6e7e9907198ff904111010b362a129d5e39
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-06-09 18:33 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import localflavor.us.models class Migration(migrations.Migration): initial = True depe...
46.769231
189
0.622533
375
3,648
5.869333
0.269333
0.053158
0.044525
0.069968
0.537937
0.483417
0.37483
0.37483
0.339391
0.339391
0
0.011641
0.246436
3,648
77
190
47.376623
0.789014
0.01864
0
0.42029
1
0
0.141459
0.047246
0
0
0
0
0
1
0
false
0
0.072464
0
0.130435
0
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
e30bf08c580e581ede5f24f44f8e0edb7de9f463
10,664
py
Python
logL.py
mkherman/HRS-logL
57f240ec624e5c19bfbc4bc2bf9d886700706fb5
[ "MIT" ]
1
2021-06-21T15:40:55.000Z
2021-06-21T15:40:55.000Z
logL.py
mkherman/HRS-logL
57f240ec624e5c19bfbc4bc2bf9d886700706fb5
[ "MIT" ]
null
null
null
logL.py
mkherman/HRS-logL
57f240ec624e5c19bfbc4bc2bf9d886700706fb5
[ "MIT" ]
null
null
null
""" Author: Miranda Herman Created: 2020-10-28 Last Modified: 2021-05-11 Description: Calculates the 6-D log likelihood map for a series of atmospheric models cross-correlated with planetary emission spectra. Parameters are log VMR, day-night contrast, peak phase offset, scaled line contrast, orbital velocity, and sy...
33.534591
103
0.689047
1,661
10,664
4.347983
0.263697
0.018693
0.010662
0.014954
0.103434
0.048463
0.028247
0.021047
0
0
0
0.036897
0.158758
10,664
317
104
33.640379
0.768142
0.15135
0
0
0
0
0.066536
0.004603
0
0
0
0
0
0
null
null
0.00578
0.040462
null
null
0.040462
0
0
0
null
0
0
0
0
0
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