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
c9c828f66d64d1b3f45b5a0dab4ab86a90b6bb53
2,025
py
Python
server/djangoapp/forms.py
serenagomez1304/agfzb-CloudAppDevelopment_Capstone
3b28f78c652fffde675fe11b1a8471935c68bc73
[ "Apache-2.0" ]
null
null
null
server/djangoapp/forms.py
serenagomez1304/agfzb-CloudAppDevelopment_Capstone
3b28f78c652fffde675fe11b1a8471935c68bc73
[ "Apache-2.0" ]
null
null
null
server/djangoapp/forms.py
serenagomez1304/agfzb-CloudAppDevelopment_Capstone
3b28f78c652fffde675fe11b1a8471935c68bc73
[ "Apache-2.0" ]
null
null
null
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm from django.core.exceptions import ValidationError from django.forms.fields import EmailField from django.forms.forms import Form class CustomUserCreationForm(UserCreationForm): ...
40.5
87
0.648395
221
2,025
5.832579
0.276018
0.093871
0.128006
0.032583
0.085337
0
0
0
0
0
0
0.013852
0.251358
2,025
50
88
40.5
0.836412
0.086914
0
0.052632
0
0
0.091205
0
0
0
0
0
0
1
0.105263
false
0.210526
0.157895
0
0.552632
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
c9cd1be59620ae1bfde6702b025622b4fbe4c695
2,033
py
Python
donote/todo.py
FedeClaudi/dawnote
a336984517d7a7bb5251848fa827ce8d2f2ed693
[ "MIT" ]
2
2020-10-24T21:54:03.000Z
2020-10-24T23:05:15.000Z
donote/todo.py
FedeClaudi/dawnote
a336984517d7a7bb5251848fa827ce8d2f2ed693
[ "MIT" ]
null
null
null
donote/todo.py
FedeClaudi/dawnote
a336984517d7a7bb5251848fa827ce8d2f2ed693
[ "MIT" ]
null
null
null
from pyinspect import Report from pyinspect._colors import orange, mocassin from rich.bar import Bar from rich.color import Color from .note import Note from ._metadata import make_note_metadata class Todo(Note): def __init__(self, note_name, raise_error=True): """ A special type of note for ...
27.849315
110
0.572553
246
2,033
4.569106
0.292683
0.042705
0.042705
0.02847
0.163701
0.124555
0.078292
0.078292
0.078292
0.078292
0
0.014989
0.310871
2,033
72
111
28.236111
0.787295
0.059518
0
0.156863
0
0.019608
0.098352
0.044657
0
0
0
0.013889
0
1
0.078431
false
0
0.117647
0
0.254902
0.019608
0
0
0
null
0
0
0
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
c9d0c09c61a12830d9bf69636ea8beac9b18862b
1,885
py
Python
VGG16_tf_model.py
DingzhiMiao/stock-selection-with-neural-work
83bb09a3b3792e7d6e33959bc63bece2546180d0
[ "Apache-2.0" ]
1
2019-03-22T12:46:28.000Z
2019-03-22T12:46:28.000Z
VGG16_tf_model.py
DingzhiMiao/stock-selection-with-neural-work
83bb09a3b3792e7d6e33959bc63bece2546180d0
[ "Apache-2.0" ]
null
null
null
VGG16_tf_model.py
DingzhiMiao/stock-selection-with-neural-work
83bb09a3b3792e7d6e33959bc63bece2546180d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Aug 31 23:27:51 2018 @author: Yulab """ import tensorflow as tf import VGG_utils #%% def VGG16(x, n_classes, is_pretrain=True, keep_prob=0.5, seed=1): x = VGG_utils.conv('conv1_1', x, 64, is_pretrain=is_pretrain, seed=seed) x = VGG_utils.conv('conv1_2', x, 64, ...
40.106383
89
0.656233
322
1,885
3.590062
0.198758
0.233564
0.163495
0.146194
0.75346
0.649654
0.58564
0.544118
0.528547
0.528547
0
0.06732
0.188329
1,885
46
90
40.978261
0.688235
0.040318
0
0
0
0
0.083333
0
0
0
0
0
0
1
0.033333
false
0
0.066667
0
0.133333
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
c9d456869fcacbed5e25e0526ddbcf1e1d1224e3
2,235
py
Python
scripts/genXSecAnalyzer.py
clelange/TruthNtuple
fd39c9ea2b1d02084a63d3409f79a4a902703a5f
[ "MIT" ]
null
null
null
scripts/genXSecAnalyzer.py
clelange/TruthNtuple
fd39c9ea2b1d02084a63d3409f79a4a902703a5f
[ "MIT" ]
null
null
null
scripts/genXSecAnalyzer.py
clelange/TruthNtuple
fd39c9ea2b1d02084a63d3409f79a4a902703a5f
[ "MIT" ]
null
null
null
# Auto generated configuration file # using: # Revision: 1.381.2.7 # Source: /local/reps/CMSSW/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v # with command line options: Configuration/GenProduction/python/EightTeV/Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff.py --step GEN --beamspot Rea...
44.7
442
0.822819
248
2,235
7.298387
0.520161
0.072928
0.092818
0.135912
0.097238
0
0
0
0
0
0
0.020624
0.067114
2,235
49
443
45.612245
0.847482
0.303803
0
0
1
0
0.404654
0.366516
0
0
0
0
0
1
0
false
0
0.096774
0
0.096774
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
c9d945ab78e94f6519b9d1cc5b002d232ee82e74
408
py
Python
app/ac_engine_allegro/actions/trends.py
marwahaha/allecena
b8f8a15ca0dbc80e745febf0e81263ec197e7363
[ "Apache-2.0" ]
3
2018-04-29T15:40:37.000Z
2020-04-15T20:37:08.000Z
app/ac_engine_allegro/actions/trends.py
marwahaha/allecena
b8f8a15ca0dbc80e745febf0e81263ec197e7363
[ "Apache-2.0" ]
1
2019-10-30T20:35:46.000Z
2019-10-30T20:35:46.000Z
app/ac_engine_allegro/actions/trends.py
marwahaha/allecena
b8f8a15ca0dbc80e745febf0e81263ec197e7363
[ "Apache-2.0" ]
2
2019-08-04T02:54:22.000Z
2021-03-03T21:03:11.000Z
# coding: utf-8 from ac_engine.actions.trends import AbstractTrends from django.conf import settings class Trends(AbstractTrends): EXCLUSION_SET = settings.HINT_EXCLUSION_SET @property def data_processor_class(self): from ac_engine_allegro.data.data_processor import DataProcessor return D...
24
71
0.752451
50
408
5.9
0.56
0.040678
0.081356
0
0
0
0
0
0
0
0
0.00303
0.191176
408
16
72
25.5
0.890909
0.031863
0
0.181818
0
0
0.035623
0
0
0
0
0
0
1
0.181818
false
0
0.272727
0.090909
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c9db57abc60d85a87e4f1a49f14714b2c4356bc9
1,605
py
Python
movies/migrations/0001_initial.py
Co1lin/iMovies
76cdab1f42f08fc855bf19f8a8f4650e163bcc3e
[ "MIT" ]
3
2020-09-12T15:37:03.000Z
2021-08-30T11:11:09.000Z
movies/migrations/0001_initial.py
Co1lin/iMovies
76cdab1f42f08fc855bf19f8a8f4650e163bcc3e
[ "MIT" ]
null
null
null
movies/migrations/0001_initial.py
Co1lin/iMovies
76cdab1f42f08fc855bf19f8a8f4650e163bcc3e
[ "MIT" ]
1
2020-11-13T06:56:27.000Z
2020-11-13T06:56:27.000Z
# Generated by Django 3.0.3 on 2020-09-07 15:19 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Actor', fields=[ ...
34.891304
114
0.564486
157
1,605
5.66879
0.369427
0.035955
0.080899
0.107865
0.5
0.470787
0.470787
0.470787
0.470787
0.470787
0
0.020336
0.295327
1,605
45
115
35.666667
0.766578
0.028037
0
0.473684
1
0
0.087933
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.157895
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
c9e43eeebf8e8432583669f6bf9359bf39d0646c
357
py
Python
World_2/038biggestnumber.py
wesleyendliche/Python_exercises
44cdcb921201eb0b11ff1ac4b01b4a86859c2ffe
[ "MIT" ]
null
null
null
World_2/038biggestnumber.py
wesleyendliche/Python_exercises
44cdcb921201eb0b11ff1ac4b01b4a86859c2ffe
[ "MIT" ]
null
null
null
World_2/038biggestnumber.py
wesleyendliche/Python_exercises
44cdcb921201eb0b11ff1ac4b01b4a86859c2ffe
[ "MIT" ]
null
null
null
num1 = int(input('Digite o primeiro valor: ')) num2 = int(input('Digite o segundo valor: ')) if num1 > num2: print('{}{}{} é o maior.'.format('\033[1;36m', num1, '\033[m')) elif num1 == num2: print('Os {}dois valores{} são iguais'.format('\033[4;33m', '\033[m')) elif num2 > num1: print('{}{}{} é o maior.'.f...
39.666667
74
0.579832
57
357
3.631579
0.45614
0.130435
0.135266
0.144928
0.241546
0.241546
0.241546
0.241546
0
0
0
0.122924
0.156863
357
8
75
44.625
0.564784
0
0
0
0
0
0.45098
0
0
0
0
0
0
1
0
false
0
0
0
0
0.375
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
c9ea1df8cf68a948e4ce09569ea4aec298076074
284
py
Python
source/43-Número_para_mês.py
FelixLuciano/DesSoft-2020.2
a44063d63778329f1e1266881f20f7954ecb528b
[ "MIT" ]
null
null
null
source/43-Número_para_mês.py
FelixLuciano/DesSoft-2020.2
a44063d63778329f1e1266881f20f7954ecb528b
[ "MIT" ]
null
null
null
source/43-Número_para_mês.py
FelixLuciano/DesSoft-2020.2
a44063d63778329f1e1266881f20f7954ecb528b
[ "MIT" ]
null
null
null
# Número para mês # Crie um programa que pergunta o número do mês e imprime o nome do mês. month = int(input("month? ")) - 1 months = ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro"] print(months[month])
31.555556
134
0.65493
39
284
4.769231
0.794872
0.053763
0
0
0
0
0
0
0
0
0
0.004167
0.15493
284
8
135
35.5
0.770833
0.302817
0
0
0
0
0.430769
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c9fea6ef350ab0ddde5d7cb087e7fa1a2bbc659f
574
py
Python
Evaluation/combineExpected.py
mahdi3215/Jamaran
5a6bbff06c9c90724bcfb88b98c95f4f1e095037
[ "Unlicense" ]
null
null
null
Evaluation/combineExpected.py
mahdi3215/Jamaran
5a6bbff06c9c90724bcfb88b98c95f4f1e095037
[ "Unlicense" ]
null
null
null
Evaluation/combineExpected.py
mahdi3215/Jamaran
5a6bbff06c9c90724bcfb88b98c95f4f1e095037
[ "Unlicense" ]
null
null
null
# -------------- This file adds actual expected results to submission file -----------------# f=open('submission.csv','r') g=open('testHistory.csv','r') # ts.csv generated before h=open('res.csv','w+') lines=f.readlines() i=0 for line in g.readlines(): k=line.split(',') toWrite=k[5] h.write...
21.259259
93
0.468641
71
574
3.788732
0.549296
0.05948
0
0
0
0
0
0
0
0
0
0.010616
0.179443
574
26
94
22.076923
0.56051
0.463415
0
0
1
0
0.148148
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
a0019f5a02c29f1f40b040a9fe783b872953b5c1
3,524
py
Python
process/LanesFrom2D.py
sameeptandon/sail-car-log
0ee3d598bb09d389bcbd2ebf73cd4b2411e796be
[ "BSD-2-Clause" ]
1
2021-02-24T03:11:13.000Z
2021-02-24T03:11:13.000Z
process/LanesFrom2D.py
sameeptandon/sail-car-log
0ee3d598bb09d389bcbd2ebf73cd4b2411e796be
[ "BSD-2-Clause" ]
null
null
null
process/LanesFrom2D.py
sameeptandon/sail-car-log
0ee3d598bb09d389bcbd2ebf73cd4b2411e796be
[ "BSD-2-Clause" ]
3
2015-03-18T14:36:04.000Z
2018-07-04T02:57:24.000Z
import bisect import cv2 import glob import numpy as np import sys from ArgParser import parse_args from GPSReader import GPSReader from GPSTransforms import IMUTransforms, absoluteTransforms from LaneMarkingHelper import get_transforms, mk2_to_mk1, BackProjector from LidarTransforms import R_to_c_from_l, utc_from_gps...
31.464286
80
0.530931
423
3,524
4.267139
0.3026
0.059834
0.026593
0.028809
0.110803
0.039889
0.039889
0.039889
0.039889
0.039889
0
0.038259
0.354711
3,524
111
81
31.747748
0.755497
0.003121
0
0.046512
0
0
0.027073
0.007695
0
0
0.00114
0
0
0
null
null
0
0.127907
null
null
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a002cf3296eb23e5df33c5ea806672e69999e7b2
5,968
py
Python
Asap-3.8.4/Python/asap3/Utilities/BrennerImport.py
auag92/n2dm
03403ef8da303b79478580ae76466e374ec9da60
[ "MIT" ]
1
2021-10-19T11:35:34.000Z
2021-10-19T11:35:34.000Z
Asap-3.8.4/Python/asap3/Utilities/BrennerImport.py
auag92/n2dm
03403ef8da303b79478580ae76466e374ec9da60
[ "MIT" ]
null
null
null
Asap-3.8.4/Python/asap3/Utilities/BrennerImport.py
auag92/n2dm
03403ef8da303b79478580ae76466e374ec9da60
[ "MIT" ]
3
2016-07-18T19:22:48.000Z
2021-07-06T03:06:42.000Z
# Copyright (C) 2007 CAMP # Please see the accompanying LICENSE file for further information. """Imports a brenner *.d coordinate file and/or a input.d file""" """This file is used with the BrennerPotential only""" """TODO: Add nice error messages""" from ASE.ChemicalElements.symbol import symbols from ASE import At...
32.086022
129
0.61746
755
5,968
4.875497
0.323179
0.02445
0.03423
0.01304
0.166803
0.140723
0.128498
0.117359
0.108938
0.108938
0
0.063927
0.266086
5,968
185
130
32.259459
0.776484
0.209953
0
0.294643
0
0
0.020335
0
0
0
0
0.005405
0
0
null
null
0
0.053571
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
a00f5b471d067821e2125489a86245f15b276262
995
py
Python
tests/test_strategy_api.py
mahi97/evosax
66871817d4042bed3de19d5daa4bfd06dfb45083
[ "Apache-2.0" ]
102
2022-02-17T07:55:06.000Z
2022-03-30T21:21:13.000Z
tests/test_strategy_api.py
mahi97/evosax
66871817d4042bed3de19d5daa4bfd06dfb45083
[ "Apache-2.0" ]
5
2022-03-06T14:20:42.000Z
2022-03-27T13:31:13.000Z
tests/test_strategy_api.py
mahi97/evosax
66871817d4042bed3de19d5daa4bfd06dfb45083
[ "Apache-2.0" ]
6
2022-02-24T14:33:44.000Z
2022-03-30T21:20:24.000Z
import jax from evosax import Strategies from evosax.problems import ClassicFitness def test_strategy_ask(strategy_name): # Loop over all strategies and test ask API rng = jax.random.PRNGKey(0) popsize = 20 strategy = Strategies[strategy_name](popsize=popsize, num_dims=2) params = strategy.default...
32.096774
69
0.714573
134
995
5.201493
0.298507
0.093257
0.034433
0.05165
0.622669
0.622669
0.622669
0.622669
0.622669
0.622669
0
0.014907
0.190955
995
30
70
33.166667
0.850932
0.083417
0
0.583333
0
0
0.011001
0
0
0
0
0
0.083333
1
0.083333
false
0
0.125
0
0.291667
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
a016742a4bfbc51d85e16b8bd97e3f8e5c9c84c2
689
py
Python
all possible combinations.py
satyaaditya/Python_BTech
4c2587978e6ed84d470cd8c1daafa13b61f2f711
[ "MIT" ]
null
null
null
all possible combinations.py
satyaaditya/Python_BTech
4c2587978e6ed84d470cd8c1daafa13b61f2f711
[ "MIT" ]
null
null
null
all possible combinations.py
satyaaditya/Python_BTech
4c2587978e6ed84d470cd8c1daafa13b61f2f711
[ "MIT" ]
null
null
null
def combinations(iterable, r): # combinations('ABCD', 2) --> AB AC AD BC BD CD # combinations(range(4), 3) --> 012 013 023 123 pool = tuple(iterable) n = len(pool) if r > n: return indices = range(r) z= tuple(pool[i] for i in indices) yield z while True: fo...
27.56
52
0.49492
99
689
3.424242
0.434343
0.035398
0.053097
0.076696
0.165192
0.165192
0.165192
0.165192
0
0
0
0.046838
0.380261
689
25
53
27.56
0.747073
0.132075
0
0.086957
0
0
0.006993
0
0
0
0
0
0
0
null
null
0
0
null
null
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a01b61bfdaee12be692743e26a339c419d6b8d83
1,301
py
Python
collections_tutorials/counter_tut.py
leonhmi75/learning-materials
7342bf14e41ee2d1bf1b0b9b52f626318597a75e
[ "MIT" ]
1
2019-05-01T05:25:22.000Z
2019-05-01T05:25:22.000Z
collections_tutorials/counter_tut.py
leon-lei/learning-materials
7342bf14e41ee2d1bf1b0b9b52f626318597a75e
[ "MIT" ]
null
null
null
collections_tutorials/counter_tut.py
leon-lei/learning-materials
7342bf14e41ee2d1bf1b0b9b52f626318597a75e
[ "MIT" ]
null
null
null
from collections import Counter foo = [1,1,2,3,3,3,3,4] counts = Counter(foo) # Dict subclass so k,v pairs ordered by highest frequency print(counts) # Counter({3: 4, 1: 2, 2: 1, 4: 1}) # List n most common elements and their count in tuple form # Indexing possible, returns tuple print(counts.most_common(2)) pri...
27.104167
74
0.652575
234
1,301
3.615385
0.337607
0.117021
0.014184
0.014184
0.21513
0.082742
0
0
0
0
0
0.094828
0.19754
1,301
48
75
27.104167
0.715517
0.551115
0
0.166667
0
0
0
0
0
0
0
0
0
1
0
false
0
0.041667
0
0.041667
0.541667
0
0
0
null
0
0
0
0
0
0
0
0
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
a01e4d8104aaa8be6faa9b058a0342e862608ff7
1,354
py
Python
asl_loss.py
cagdasulas/ASL_CNN
9b8ab817b24cb7676f7333d7f2385c6ced83656d
[ "MIT" ]
1
2021-09-25T12:02:28.000Z
2021-09-25T12:02:28.000Z
asl_loss.py
cagdasulas/ASL_CNN
9b8ab817b24cb7676f7333d7f2385c6ced83656d
[ "MIT" ]
null
null
null
asl_loss.py
cagdasulas/ASL_CNN
9b8ab817b24cb7676f7333d7f2385c6ced83656d
[ "MIT" ]
null
null
null
__author__ = 'Cagdas Ulas' import tensorflow as tf def asl_loss(reg_val, alpha, lambda_blood, T1blood, PLD, tao, scalar_constant, dims, batch_size): def calculate_loss(y_true, y_pred): y_true = tf.reshape(y_true, (batch_size,) + dims[1:]) noisy = y_true[:,0,:,:,:] ...
27.632653
123
0.625554
194
1,354
4.092784
0.345361
0.050378
0.060453
0.086902
0.217884
0.177582
0.177582
0.177582
0.123426
0.123426
0
0.022483
0.244461
1,354
48
124
28.208333
0.753666
0.097489
0
0
0
0
0.009039
0
0
0
0
0
0
1
0.227273
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
4e43751e8b336a9770974342c5a603534cc2d3ae
459
py
Python
Eris_backend_project/movie_recommendation/permissions.py
mytv100/Eris_Project
82f262a74e9961fa11733be2464d5a223b52943f
[ "Apache-2.0" ]
3
2019-01-19T07:40:30.000Z
2019-07-04T02:17:45.000Z
Eris_backend_project/movie_recommendation/permissions.py
mytv100/Eris_Project
82f262a74e9961fa11733be2464d5a223b52943f
[ "Apache-2.0" ]
34
2018-12-16T14:12:51.000Z
2020-06-05T19:25:27.000Z
Eris_backend_project/movie_recommendation/permissions.py
mytv100/Eris_Project
82f262a74e9961fa11733be2464d5a223b52943f
[ "Apache-2.0" ]
1
2019-07-04T02:18:06.000Z
2019-07-04T02:18:06.000Z
from rest_framework import permissions class UserPermission(permissions.BasePermission): # after SignUp( if user is authenticated, user can't see the API to which this permission class applies) def has_permission(self, request, view): if not (request.user.is_authenticated or request.user.is_superuser...
28.6875
108
0.686275
60
459
5.183333
0.75
0.057878
0.122187
0
0
0
0
0
0
0
0
0
0.248366
459
16
109
28.6875
0.901449
0.222222
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
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
4e48ff2b08d49e025df66e212d13f38c602dfce3
773
py
Python
regcore_read/tests/views_seach_utils_tests.py
navigo/regulations-core
0b2a2034baacfa1cc5ff87f14db7d1aaa8d260c3
[ "CC0-1.0" ]
17
2016-06-14T19:06:02.000Z
2021-10-03T23:46:00.000Z
regcore_read/tests/views_seach_utils_tests.py
navigo/regulations-core
0b2a2034baacfa1cc5ff87f14db7d1aaa8d260c3
[ "CC0-1.0" ]
42
2016-04-06T22:34:26.000Z
2020-04-14T22:00:24.000Z
regcore_read/tests/views_seach_utils_tests.py
navigo/regulations-core
0b2a2034baacfa1cc5ff87f14db7d1aaa8d260c3
[ "CC0-1.0" ]
20
2016-05-04T06:04:34.000Z
2020-10-07T16:16:03.000Z
import pytest from regcore_read.views import search_utils def inner_fn(request, search_args): # We'd generally return a Response here, but we're mocking return search_args @pytest.mark.parametrize('page_size', ('-10', '0', '200', 'abcd', '---')) def test_invalid_page_size(page_size, rf): """Invalid pag...
29.730769
73
0.701164
118
773
4.372881
0.449153
0.124031
0.05814
0.087209
0.302326
0.302326
0.302326
0.302326
0.232558
0.232558
0
0.02144
0.155239
773
25
74
30.92
0.76876
0.178525
0
0.142857
0
0
0.113782
0.033654
0
0
0
0
0.142857
1
0.214286
false
0
0.142857
0.071429
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4e4fdd12e48b7bb9fdb4b1b395474a4c831227f9
1,113
py
Python
lmparser.py
quantumhpc/pbs_flexlm_parser
64a80e97c74a89f107565ae0c433917a43e296cc
[ "MIT" ]
2
2020-02-05T19:21:14.000Z
2021-06-29T08:32:45.000Z
lmparser.py
quantumhpc/pbs_flexlm_parser
64a80e97c74a89f107565ae0c433917a43e296cc
[ "MIT" ]
null
null
null
lmparser.py
quantumhpc/pbs_flexlm_parser
64a80e97c74a89f107565ae0c433917a43e296cc
[ "MIT" ]
2
2018-07-30T19:28:23.000Z
2021-06-29T08:32:49.000Z
#!/usr/bin/python import os, re, sys, getopt lmstat="/path/to/flexlm/lmutil" lmopts="lmstat" def print_usage(): print "Usage:" print os.path.basename(__file__), '-f <feature> -c <lic_server>' def main(argv): lic_server = '' feature = '' try: opts, args = getopt.getopt(argv,"hf:c:",["feature=","lic_server="]) ...
24.733333
82
0.619048
169
1,113
3.946746
0.426036
0.094453
0.044978
0.050975
0
0
0
0
0
0
0
0.007856
0.199461
1,113
44
83
25.295455
0.740741
0.131177
0
0.060606
0
0
0.178311
0.022941
0
0
0
0
0
0
null
null
0
0.030303
null
null
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4e5452a2917cb21701f7d2960baaed1390513100
456
py
Python
asn1PERser/test/per/decoder/test_per_decode_boolean.py
erupikus/asn1PERser
11dc2985107a9fbba00bea83c1021d2665e8f193
[ "MIT" ]
3
2021-06-14T03:29:37.000Z
2021-11-15T09:45:11.000Z
asn1PERser/test/per/decoder/test_per_decode_boolean.py
erupikus/asn1PERser
11dc2985107a9fbba00bea83c1021d2665e8f193
[ "MIT" ]
null
null
null
asn1PERser/test/per/decoder/test_per_decode_boolean.py
erupikus/asn1PERser
11dc2985107a9fbba00bea83c1021d2665e8f193
[ "MIT" ]
null
null
null
import pytest from asn1PERser.codec.per.decoder import decode as per_decoder from asn1PERser.classes.data.builtin.BooleanType import BooleanType @pytest.mark.parametrize("schema, encoded, value", [ (BooleanType, '80', BooleanType(value=True)), (BooleanType, '00', BooleanType(value=False)), ]) def test_boolean...
38
89
0.776316
57
456
6.070175
0.596491
0.086705
0.104046
0
0
0
0
0
0
0
0
0.017073
0.100877
456
11
90
41.454545
0.826829
0
0
0
0
0
0.057018
0
0
0
0
0
0.111111
1
0.111111
false
0
0.333333
0
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
1
0
0
0
0
1
4e5e8fc599fd38f11b8f24201d4183b90508b466
868
py
Python
beer_carousel/migrations/0003_auto_20180610_1258.py
GeniALE/SiteWebGeniALE
39488a89887d6855590ab39a59dbc2b6dca21892
[ "MIT" ]
4
2018-03-17T15:38:17.000Z
2020-10-03T12:06:19.000Z
beer_carousel/migrations/0003_auto_20180610_1258.py
GeniALE/SiteWebGeniALE
39488a89887d6855590ab39a59dbc2b6dca21892
[ "MIT" ]
80
2018-02-01T02:55:01.000Z
2022-03-11T23:17:17.000Z
beer_carousel/migrations/0003_auto_20180610_1258.py
GeniALE/SiteWebGeniALE
39488a89887d6855590ab39a59dbc2b6dca21892
[ "MIT" ]
2
2018-01-30T09:27:31.000Z
2019-07-25T23:50:49.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-06-10 16:58 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('beer_carousel', '0002_auto_20180605_1010'), ] operations = [ ...
28.933333
106
0.660138
99
868
5.585859
0.616162
0.0434
0.050633
0.079566
0.097649
0
0
0
0
0
0
0.055152
0.206221
868
29
107
29.931034
0.74746
0.076037
0
0.086957
1
0
0.145181
0.062578
0
0
0
0
0
1
0
false
0
0.130435
0
0.26087
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
4e625971225c80acdf439a7a8e8b15dc1f6e8b39
2,338
py
Python
tests/test_collections.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
12
2021-02-26T08:19:00.000Z
2022-01-26T14:00:16.000Z
tests/test_collections.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
null
null
null
tests/test_collections.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
3
2021-03-19T13:51:56.000Z
2021-08-25T05:25:52.000Z
import modelindex import pytest from modelindex import Metadata from modelindex.models.Collection import Collection from modelindex.models.CollectionList import CollectionList from modelindex.models.Model import Model from modelindex.models.ModelList import ModelList from modelindex.models.Result import Result from mod...
30.363636
70
0.696322
339
2,338
4.734513
0.20944
0.04486
0.087227
0.052336
0.417445
0.360125
0.241122
0.241122
0.197508
0.113396
0
0.050952
0.168948
2,338
77
71
30.363636
0.77509
0
0
0.181818
0
0
0.148354
0.075246
0
0
0
0
0.454545
1
0.036364
false
0
0.2
0
0.236364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
4e6554a7c62298a4cfa67029eb2ca9af43273ef8
4,439
py
Python
profit/sur/linear_reduction.py
krystophny/profit
c6316c9df7cfaa7b30332fdbbf85ad27175eaf92
[ "MIT" ]
14
2019-12-03T14:11:28.000Z
2022-03-15T13:44:06.000Z
profit/sur/linear_reduction.py
krystophny/profit
c6316c9df7cfaa7b30332fdbbf85ad27175eaf92
[ "MIT" ]
118
2019-11-16T19:51:26.000Z
2022-03-26T13:52:00.000Z
profit/sur/linear_reduction.py
krystophny/profit
c6316c9df7cfaa7b30332fdbbf85ad27175eaf92
[ "MIT" ]
9
2020-06-08T07:22:56.000Z
2021-03-21T14:12:21.000Z
"""High-dimensional output This module concerns the following use-case: we make a parameter study over some input parameters x and the domain code yields an output vector y contains many entries. This is typically the case, when y is function-valued, i.e. depends on an indenpendent variable t, or even "pixel-valued" o...
31.935252
80
0.623339
684
4,439
3.967836
0.292398
0.02395
0.044215
0.047163
0.462417
0.450258
0.393515
0.393515
0.393515
0.393515
0
0.018784
0.292408
4,439
138
81
32.166667
0.845272
0.629872
0
0.526316
0
0
0
0
0
0
0
0
0
1
0.210526
false
0
0.052632
0
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4e65911caf6c52835bdddd7df368443695a8ed4d
512
py
Python
job/migrations/0010_jobopening_job_type.py
akindele214/181hub_2
48b8814b5f66ad87f9a54721506076ddf70fe9bc
[ "MIT" ]
1
2020-05-20T08:42:49.000Z
2020-05-20T08:42:49.000Z
job/migrations/0010_jobopening_job_type.py
akindele214/181hub_2
48b8814b5f66ad87f9a54721506076ddf70fe9bc
[ "MIT" ]
14
2020-03-24T17:31:08.000Z
2022-03-11T23:59:30.000Z
job/migrations/0010_jobopening_job_type.py
akindele214/181hub_2
48b8814b5f66ad87f9a54721506076ddf70fe9bc
[ "MIT" ]
1
2020-04-13T12:37:37.000Z
2020-04-13T12:37:37.000Z
# Generated by Django 2.2.4 on 2019-09-12 02:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('job', '0009_jobopening_company_email'), ] operations = [ migrations.AddField( model_name='jobopening', name='job_typ...
25.6
134
0.609375
55
512
5.545455
0.745455
0.052459
0
0
0
0
0
0
0
0
0
0.055118
0.255859
512
19
135
26.947368
0.745407
0.087891
0
0
1
0
0.197849
0.062366
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4e6b77676fa7a71ade85ce6206f73089f858a107
886
py
Python
pixelpal/ai.py
mparusinski/pixelpal
70db54b9c413cb54daf8f4975c9011557d638e97
[ "BSD-2-Clause" ]
1
2020-05-02T14:14:24.000Z
2020-05-02T14:14:24.000Z
pixelpal/ai.py
mparusinski/pixelpal
70db54b9c413cb54daf8f4975c9011557d638e97
[ "BSD-2-Clause" ]
null
null
null
pixelpal/ai.py
mparusinski/pixelpal
70db54b9c413cb54daf8f4975c9011557d638e97
[ "BSD-2-Clause" ]
null
null
null
import os from pixelpal.model.base import learn_with_gan, learn, get_model, save_weights, get_callbacks, get_data_augmentation def train(module, dataset, weights, **kwargs): os.makedirs(os.path.dirname(weights), exist_ok=True) model = get_model(module) callbacks = get_callbacks(kwargs.get('callbacks', []...
34.076923
116
0.706546
104
886
5.721154
0.307692
0.215126
0.095798
0.097479
0.352941
0.352941
0.352941
0.352941
0.352941
0.352941
0
0
0.193002
886
25
117
35.44
0.832168
0
0
0.210526
0
0
0.08371
0
0
0
0
0
0
1
0.052632
false
0
0.105263
0
0.157895
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
4e771f0e5b8213ef999c6c338fa75204dcb2a01e
53,272
py
Python
test/test_optim.py
wxwoods/mctorch
7cd6eb51fdd01fa75ed9245039a4f145ba342de2
[ "BSD-3-Clause" ]
1
2019-07-23T11:20:58.000Z
2019-07-23T11:20:58.000Z
test/test_optim.py
wxwoods/mctorch
7cd6eb51fdd01fa75ed9245039a4f145ba342de2
[ "BSD-3-Clause" ]
null
null
null
test/test_optim.py
wxwoods/mctorch
7cd6eb51fdd01fa75ed9245039a4f145ba342de2
[ "BSD-3-Clause" ]
null
null
null
import math import unittest import functools from copy import deepcopy from bisect import bisect_right import torch from torch._six import inf import torch.optim as optim import torch.nn.functional as F from torch.optim import SGD from torch.autograd import Variable from torch import sparse from torch.optim.lr_schedule...
45.337872
116
0.576044
7,230
53,272
4.026279
0.056985
0.023325
0.017795
0.021642
0.756819
0.703985
0.661319
0.619787
0.581862
0.544761
0
0.05829
0.302147
53,272
1,174
117
45.376491
0.724742
0.018415
0
0.478474
0
0
0.020148
0.000517
0
0
0
0
0.035225
1
0.091977
false
0
0.013699
0.009785
0.133072
0.001957
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
4e8afef7d83505d44be9136a1ea0a974165f697c
385
py
Python
postfinance/constants/env.py
ashwin31/python-postfinance
2b95e3df7785af03e2b5fe4344ed51bff716c2da
[ "MIT" ]
1
2021-09-27T05:01:46.000Z
2021-09-27T05:01:46.000Z
postfinance/constants/env.py
ashwin31/python-postfinance
2b95e3df7785af03e2b5fe4344ed51bff716c2da
[ "MIT" ]
null
null
null
postfinance/constants/env.py
ashwin31/python-postfinance
2b95e3df7785af03e2b5fe4344ed51bff716c2da
[ "MIT" ]
null
null
null
from enum import Enum class Environment(Enum): TEST = "test" PROD = "prod" @staticmethod def get_env_url(env: 'Environment') -> str: return ENV_URLS.get(env) ENV_URLS = { Environment.TEST: "https://e-payment.postfinance.ch/ncol/test/orderstandard_utf8.asp", Environment.PROD: "https:...
20.263158
90
0.688312
50
385
5.18
0.48
0.046332
0.100386
0.185328
0.23166
0.23166
0
0
0
0
0
0.006289
0.174026
385
18
91
21.388889
0.808176
0
0
0
0
0
0.389034
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0.090909
0.545455
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
4ea3cfce0491053a8b84a5fdffbd982f50787186
1,969
py
Python
race_joint_states_listener/scripts/joint_states_listener_test.py
buzzer/tams_pr2
73eada99f88c300858f05d57b868e6a8109a800c
[ "BSD-2-Clause" ]
null
null
null
race_joint_states_listener/scripts/joint_states_listener_test.py
buzzer/tams_pr2
73eada99f88c300858f05d57b868e6a8109a800c
[ "BSD-2-Clause" ]
null
null
null
race_joint_states_listener/scripts/joint_states_listener_test.py
buzzer/tams_pr2
73eada99f88c300858f05d57b868e6a8109a800c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python #test client for joint_states_listener import roslib roslib.load_manifest('race_joint_states_listener') import rospy from race_joint_states_listener.srv import ReturnJointStates import time import sys def call_return_joint_states(joint_names): rospy.wait_for_service("return_joint_states") ...
33.948276
80
0.695277
265
1,969
4.822642
0.316981
0.077465
0.079812
0.049296
0.177621
0.177621
0.153365
0.153365
0.153365
0
0
0.003195
0.20518
1,969
57
81
34.54386
0.813419
0.115287
0
0
0
0
0.28555
0.064479
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.177778
0
0
0
null
0
0
0
0
0
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
4ea5819b915aec70c206128f80f12a1e5ea6dd36
1,484
py
Python
Monitors/monitorsDinningPhiloshper.py
aadishgoel2013/OperatingSystemAlgos
e0ca1ff04b7540c0aa242412685e356810af45e2
[ "Apache-2.0" ]
1
2020-08-04T17:36:28.000Z
2020-08-04T17:36:28.000Z
Monitors/monitorsDinningPhiloshper.py
aadishgoel2013/OperatingSystemAlgos
e0ca1ff04b7540c0aa242412685e356810af45e2
[ "Apache-2.0" ]
null
null
null
Monitors/monitorsDinningPhiloshper.py
aadishgoel2013/OperatingSystemAlgos
e0ca1ff04b7540c0aa242412685e356810af45e2
[ "Apache-2.0" ]
null
null
null
import random class abc: def __init__(s): states = {0:'Thinking', 1:'Hungry', 2:'Eating'} s.self = [0]*5 s.state = [0]*5 def pickup(s,i): s.state[i]=1 #Hungry s.test(i) if s.state[i] != 2: s.wait(s.self,i) def putdown(s,i):...
23.1875
84
0.359838
197
1,484
2.690355
0.192893
0.084906
0.090566
0.045283
0.337736
0.245283
0.2
0.101887
0
0
0
0.033582
0.277628
1,484
63
85
23.555556
0.460821
0.268194
0
0
0
0
0.090817
0.070636
0
0
0
0
0
1
0.176471
false
0
0.029412
0
0.235294
0.088235
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4ea9b2cfc0f0e48276b2cb3905552fff527e9528
2,888
py
Python
allowua/tests/tests.py
abstract-theory/django-allow-user-agents
52a349872f5101a048008a0c2bac03dffb1de125
[ "BSD-3-Clause" ]
null
null
null
allowua/tests/tests.py
abstract-theory/django-allow-user-agents
52a349872f5101a048008a0c2bac03dffb1de125
[ "BSD-3-Clause" ]
null
null
null
allowua/tests/tests.py
abstract-theory/django-allow-user-agents
52a349872f5101a048008a0c2bac03dffb1de125
[ "BSD-3-Clause" ]
null
null
null
from django.http import HttpResponse from django.test import TestCase, RequestFactory from django.test.utils import override_settings import os from ..views import check_agents from .user_agents import user_agents_not_white_listed, white_listed_user_agents TEST_TEMPLATES = [ { 'BACKEND': 'django.templa...
34.380952
88
0.702216
377
2,888
5.026525
0.204244
0.132982
0.068602
0.08971
0.699736
0.687071
0.662797
0.662797
0.662797
0.662797
0
0.007813
0.202216
2,888
83
89
34.795181
0.81467
0
0
0.481481
0
0
0.105719
0.016291
0
0
0
0
0.185185
1
0.148148
false
0
0.111111
0
0.277778
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
4eaea141075ac8ddd66d466f10fb7f66ff2b79c5
459
py
Python
kalmanjax/archive/mog.py
NajwaLaabid/kalman-jax
7cd4d83f9c5a22008d2c565deefe3fa7ffd2005d
[ "Apache-2.0" ]
88
2020-07-08T19:21:26.000Z
2021-11-23T07:28:28.000Z
kalmanjax/archive/mog.py
NajwaLaabid/kalman-jax
7cd4d83f9c5a22008d2c565deefe3fa7ffd2005d
[ "Apache-2.0" ]
2
2020-08-25T23:27:30.000Z
2020-11-05T13:35:31.000Z
kalmanjax/archive/mog.py
NajwaLaabid/kalman-jax
7cd4d83f9c5a22008d2c565deefe3fa7ffd2005d
[ "Apache-2.0" ]
13
2020-07-14T16:35:48.000Z
2022-03-24T08:03:03.000Z
import numpy as np import pylab as plt omega = 0.8 # 1. var1 = 0.3 # 0.1 var2 = 0.5 # 0.7 def mog(y, f): # sin = np.sin(f-0.7*y) ** 2 # return npdf(y, f, var1) * sin return npdf(y, f-omega, var1) + npdf(y, f+omega, var2) def npdf(x, m, v): return np.exp(-(x - m) ** 2 / (2 * v)) / np.sqrt(2 * np.p...
19.125
67
0.538126
98
459
2.5
0.387755
0.040816
0.073469
0.097959
0
0
0
0
0
0
0
0.097701
0.24183
459
23
68
19.956522
0.606322
0.228758
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
4eb4ee625b1f1827cca97a5dd1c9dd04749ddf76
679
py
Python
web/migrations/0051_auto_20200709_1817.py
Hack4Vilnius/getpet-web
b757a6101e70845fddeea88a385acc367a5a58a0
[ "Apache-2.0" ]
null
null
null
web/migrations/0051_auto_20200709_1817.py
Hack4Vilnius/getpet-web
b757a6101e70845fddeea88a385acc367a5a58a0
[ "Apache-2.0" ]
8
2019-10-13T01:40:25.000Z
2022-03-07T20:31:00.000Z
web/migrations/0051_auto_20200709_1817.py
Hack4Vilnius/getpet-web
b757a6101e70845fddeea88a385acc367a5a58a0
[ "Apache-2.0" ]
1
2022-02-21T07:08:08.000Z
2022-02-21T07:08:08.000Z
# Generated by Django 3.0.7 on 2020-07-09 18:17 import django.contrib.gis.db.models.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('web', '0050_shelter_location'), ] operations = [ migrations.RemoveField( model_name='shelter'...
24.25
98
0.584683
68
679
5.75
0.588235
0.069054
0.122762
0.153453
0.363171
0.363171
0
0
0
0
0
0.048117
0.296024
679
27
99
25.148148
0.769874
0.066274
0
0.380952
1
0
0.118671
0.033228
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
4eb54c274689ba0e53c5a41b07d0a23676f806bb
285
py
Python
example_abc.py
ShamrockLee/pattern-printer
05ef4d517de9a2f0bee15b0be2ce031726530b28
[ "MIT" ]
null
null
null
example_abc.py
ShamrockLee/pattern-printer
05ef4d517de9a2f0bee15b0be2ce031726530b28
[ "MIT" ]
2
2018-11-01T05:41:32.000Z
2019-02-10T04:07:46.000Z
example_abc.py
ShamrockLee/pattern-printer
05ef4d517de9a2f0bee15b0be2ce031726530b28
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 from pattern_printer import Paper paperout = Paper() paperout.switch2dict() paperout.paperdict[(1, 1)] = 'a' paperout.paperdict[(2, 2)] = 'b' paperout.paperdict[(1, 3)] = 'c' paperout.paperdict paperout.switch2list() paperout.paperlist print(paperout.sprint())
23.75
33
0.736842
37
285
5.648649
0.594595
0.325359
0.172249
0
0
0
0
0
0
0
0
0.034884
0.094737
285
11
34
25.909091
0.775194
0.077193
0
0
0
0
0.01145
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.2
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
4ebc5b16d67bb1d1420b4e1d61619e61b4288462
434
py
Python
solutions/167.two-sum-ii-input-array-is-sorted/two-sum-ii-input-array-is-sorted.py
wangsongiam/leetcode
96ff21bca1871816ae51fccb1fa13587b378dc50
[ "MIT" ]
3
2018-11-25T15:19:57.000Z
2019-09-28T03:01:11.000Z
solutions/167.two-sum-ii-input-array-is-sorted/two-sum-ii-input-array-is-sorted.py
casprwang/leetcode
96ff21bca1871816ae51fccb1fa13587b378dc50
[ "MIT" ]
null
null
null
solutions/167.two-sum-ii-input-array-is-sorted/two-sum-ii-input-array-is-sorted.py
casprwang/leetcode
96ff21bca1871816ae51fccb1fa13587b378dc50
[ "MIT" ]
3
2018-02-11T20:23:44.000Z
2020-06-05T15:39:56.000Z
class Solution: def twoSum(self, numbers, target): """ :type numbers: List[int] :type target: int :rtype: List[int] """ l = 0 r = len(numbers) - 1 while l < r: sum = numbers[l] + numbers[r] if sum < target: l +=...
22.842105
41
0.37788
47
434
3.489362
0.468085
0.085366
0
0
0
0
0
0
0
0
0
0.028169
0.509217
434
18
42
24.111111
0.741784
0.138249
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.25
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
4ec0059c55a2c5e607cf314154eb763fa596d7c2
734
py
Python
src/utils/envs.py
AdityaSidharta/ML_server_framework
479cb78f1c39d5081881e83ee2562bd2ddf4b883
[ "MIT" ]
1
2019-05-31T09:53:09.000Z
2019-05-31T09:53:09.000Z
src/utils/envs.py
AdityaSidharta/ML_server_framework
479cb78f1c39d5081881e83ee2562bd2ddf4b883
[ "MIT" ]
null
null
null
src/utils/envs.py
AdityaSidharta/ML_server_framework
479cb78f1c39d5081881e83ee2562bd2ddf4b883
[ "MIT" ]
null
null
null
import os project_path = os.getenv("PROJECT_PATH") postgres_username = os.getenv("POSTGRES_USERNAME") postgres_password = os.getenv("POSTGRES_PASSWORD") postgres_ipaddress = os.getenv("POSTGRES_IPADDRESS") minio_access_key = os.getenv("MINIO_ACCESS_KEY") minio_secret_key = os.getenv("MINIO_SECRET_KEY") minio_ipaddre...
30.583333
67
0.803815
102
734
5.411765
0.235294
0.101449
0.086957
0.076087
0.105072
0.105072
0.105072
0
0
0
0
0
0.077657
734
23
68
31.913043
0.815362
0
0
0
0
0
0.292916
0
0
0
0
0
0
1
0
false
0.0625
0.0625
0
0.0625
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
4ecc9a41c75324c2e265a9770952cb014fd88960
1,429
py
Python
DSL/logo.py
agissaud/DeepSynth
b99c517dce2aad8413f97816cfb63599a32297f0
[ "MIT" ]
null
null
null
DSL/logo.py
agissaud/DeepSynth
b99c517dce2aad8413f97816cfb63599a32297f0
[ "MIT" ]
null
null
null
DSL/logo.py
agissaud/DeepSynth
b99c517dce2aad8413f97816cfb63599a32297f0
[ "MIT" ]
null
null
null
from type_system import * from program import * from shape import * SHAPE = PrimitiveType('shape') FIXED = PrimitiveType('fixed') def _polygon(n): return lambda l: Polygon(n, l) def _rectangle(width): return lambda height: Rectangle(width, height) def _circle(r): return Circle(r) def _move(shape): ...
17.8625
56
0.561232
189
1,429
4.15873
0.253968
0.081425
0.082697
0.061069
0.080153
0
0
0
0
0
0
0.039474
0.255423
1,429
79
57
18.088608
0.699248
0
0
0
0
0
0.088174
0
0
0
0
0
0
1
0.114754
false
0
0.04918
0.114754
0.278689
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
4ecdf96e22e2e26b0e2804a1cc0160b8ca15bc47
4,349
py
Python
python/src/st_quadrant.py
ohwada/Star_Trek_Text_Game
a6852d4888ecb3628969bc935b9bd396a2f7152c
[ "Apache-2.0" ]
2
2020-08-09T22:52:24.000Z
2020-08-19T16:24:58.000Z
python/src/st_quadrant.py
ohwada/Star_Trek_Text_Game
a6852d4888ecb3628969bc935b9bd396a2f7152c
[ "Apache-2.0" ]
null
null
null
python/src/st_quadrant.py
ohwada/Star_Trek_Text_Game
a6852d4888ecb3628969bc935b9bd396a2f7152c
[ "Apache-2.0" ]
null
null
null
# # STAR TREK TEXT GAME # 2017-05-01 K.OHWADA # import random ### class class Quadrant(): course = None SIZE_X = 8 SIZE_Y = 8 # easy SETUP_KLINGON = 3 # moderate # SETUP_KLINGON = 5 SETUP_STAR = 5 # 50 % SETUP_PROBABILITY_STARBASE = 0.5 qx =0 qy =0 # 8x8 Quadrants : klingons, starbases, ...
21.423645
103
0.573005
760
4,349
3.138158
0.128947
0.07044
0.087631
0.119497
0.445283
0.387841
0.340881
0.287212
0.267086
0.241929
0
0.02398
0.261669
4,349
203
104
21.423645
0.718779
0.100253
0
0.303279
0
0
0.030898
0
0
0
0
0
0
0
null
null
0
0.016393
null
null
0.237705
0
0
0
null
0
0
0
0
0
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
4ecea03842e01231e805cfd4d71acbcd866c7455
2,582
py
Python
dimensigon/dshell/bootstrap.py
dimensigon/dimensigon
079d7c91a66e10f13510d89844fbadb27e005b40
[ "Apache-2.0" ]
2
2020-11-20T10:27:14.000Z
2021-02-21T13:57:56.000Z
dimensigon/dshell/bootstrap.py
dimensigon/dimensigon
079d7c91a66e10f13510d89844fbadb27e005b40
[ "Apache-2.0" ]
null
null
null
dimensigon/dshell/bootstrap.py
dimensigon/dimensigon
079d7c91a66e10f13510d89844fbadb27e005b40
[ "Apache-2.0" ]
null
null
null
import configparser import logging import os from dimensigon import defaults from dimensigon.dshell import environ as env from dimensigon.dshell import network as ntwrk _logger = logging.getLogger('dshell') def load_config_file(file=None): data = dict(USERNAME=None, TOKEN=None, SERVER=None, PORT=None) confi...
37.970588
116
0.644462
337
2,582
4.810089
0.219585
0.049352
0.03393
0.043183
0.167798
0.092535
0.092535
0.092535
0.092535
0.092535
0
0.002934
0.207978
2,582
67
117
38.537313
0.789731
0.003486
0
0.075472
0
0
0.147025
0
0
0
0
0
0
1
0.056604
false
0.056604
0.113208
0
0.188679
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
4ed1a9464522a2e1764b92815a944b722a056886
3,602
py
Python
deprecated.py
Iceblaze9527/PRML_CellImageSeg
2fd68c98357c71a808b00b85cd2e65bf1b51705f
[ "RSA-MD" ]
null
null
null
deprecated.py
Iceblaze9527/PRML_CellImageSeg
2fd68c98357c71a808b00b85cd2e65bf1b51705f
[ "RSA-MD" ]
null
null
null
deprecated.py
Iceblaze9527/PRML_CellImageSeg
2fd68c98357c71a808b00b85cd2e65bf1b51705f
[ "RSA-MD" ]
null
null
null
""" Credit to: https://jaidevd.github.io/posts/weighted-loss-functions-for-instance-segmentation/ This is deprecated because of crashing Generate the weight maps as specified in the UNet paper for a set of binary masks. Parameters ---------- masks: array-like A 3D array of shape (n_masks, image_height, image_widt...
34.304762
115
0.637424
552
3,602
3.994565
0.311594
0.011791
0.006803
0.023129
0.110204
0.064853
0.064853
0.038549
0.017687
0
0
0.046237
0.22543
3,602
105
116
34.304762
0.744086
0.189339
0
0.033898
1
0
0.00178
0
0
0
0
0
0
1
0.033898
false
0
0.050847
0
0.118644
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
4ed8c1fb9729ffed73c9ade760cf36b206ae0147
13,139
py
Python
sfa/server/sfa-server.py
planetlab/sfa
d0f743e245e0bb24d7ed1016bcc6e61d1e558a95
[ "MIT" ]
1
2015-11-19T13:34:45.000Z
2015-11-19T13:34:45.000Z
sfa/server/sfa-server.py
planetlab/sfa
d0f743e245e0bb24d7ed1016bcc6e61d1e558a95
[ "MIT" ]
null
null
null
sfa/server/sfa-server.py
planetlab/sfa
d0f743e245e0bb24d7ed1016bcc6e61d1e558a95
[ "MIT" ]
null
null
null
#!/usr/bin/python # # SFA PLC Wrapper # # This wrapper implements the SFA Registry and Slice Interfaces on PLC. # Depending on command line options, it starts some combination of a # Registry, an Aggregate Manager, and a Slice Manager. # # There are several items that need to be done before starting the wrapper # serve...
40.678019
101
0.657432
1,781
13,139
4.65918
0.198203
0.033743
0.037117
0.02603
0.244155
0.189925
0.131236
0.106291
0.101229
0.067245
0
0.004866
0.249258
13,139
322
102
40.804348
0.836375
0.213943
0
0.135922
0
0
0.095791
0.007235
0
0
0
0.006211
0
0
null
null
0.004854
0.106796
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
4edc514c5005bbf4b08b1918743c2b86ef4453e5
15,448
py
Python
pull.py
seabass-labrax/fsf-api
145522eb72f51922b68fc5cd5064b90325036639
[ "MIT" ]
3
2021-09-06T19:51:52.000Z
2021-09-09T13:57:17.000Z
pull.py
seabass-labrax/fsf-api
145522eb72f51922b68fc5cd5064b90325036639
[ "MIT" ]
18
2021-09-06T23:54:56.000Z
2022-02-16T04:32:30.000Z
pull.py
seabass-labrax/fsf-api
145522eb72f51922b68fc5cd5064b90325036639
[ "MIT" ]
1
2022-02-07T19:52:24.000Z
2022-02-07T19:52:24.000Z
#!/usr/bin/env python3 # # SPDX-License-Identifier: MIT """Generate the FSF license API JSON data from the FSF license list page.""" import argparse import glob import html import io import json import os import re import urllib.parse import urllib.request import lxml.etree SOURCE_URI = 'https://www.gnu.org/licens...
34.636771
89
0.519291
2,018
15,448
3.893954
0.192765
0.017816
0.01298
0.007127
0.199924
0.148002
0.127004
0.107916
0.089336
0.089336
0
0.041198
0.252071
15,448
445
90
34.714607
0.638913
0.053146
0
0.105134
1
0.002445
0.317025
0.023605
0
0
0
0
0
1
0.017115
false
0
0.02445
0
0.051345
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
14c22746df5480ef5b13a044c75554a2b7f94a28
8,692
py
Python
datasvc.py
HenryHu/pybbs
cb2a870f3879d5432739d0748a01842660793ba9
[ "BSD-2-Clause-FreeBSD" ]
14
2015-01-18T16:27:20.000Z
2021-06-20T19:27:32.000Z
datasvc.py
HenryHu/pybbs
cb2a870f3879d5432739d0748a01842660793ba9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
datasvc.py
HenryHu/pybbs
cb2a870f3879d5432739d0748a01842660793ba9
[ "BSD-2-Clause-FreeBSD" ]
2
2016-04-11T07:08:04.000Z
2018-08-02T15:39:27.000Z
#!/usr/bin/env python """Data service by henryhu 2010.12.06 created. """ import cgi import mimetools import os import string import struct import urlparse import SocketServer import socket import re import sys import threading from pwd import getpwnam from SocketServer import BaseServer from BaseHTTPServer i...
32.554307
96
0.597561
1,007
8,692
5.024826
0.259186
0.022134
0.030435
0.024901
0.369763
0.332411
0.291304
0.281028
0.281028
0.217787
0
0.01166
0.289577
8,692
266
97
32.676692
0.807773
0.069604
0
0.287671
0
0
0.101204
0.020567
0
0
0
0
0
0
null
null
0.004566
0.16895
null
null
0.004566
0
0
0
null
0
0
0
0
0
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
14c8a557f72818050fce881d1cf3751f8fb26b5f
3,214
py
Python
dsvm_deploy/deployer.py
michhar/flask-simple-user-assignment
bc08a4a9fca9f83d6e8e47cbf28e6177c38c2617
[ "MIT" ]
null
null
null
dsvm_deploy/deployer.py
michhar/flask-simple-user-assignment
bc08a4a9fca9f83d6e8e47cbf28e6177c38c2617
[ "MIT" ]
1
2019-11-18T16:57:46.000Z
2019-11-18T16:57:46.000Z
dsvm_deploy/deployer.py
michhar/flask-simple-user-assignment
bc08a4a9fca9f83d6e8e47cbf28e6177c38c2617
[ "MIT" ]
null
null
null
"""A deployer class to deploy a template on Azure This script expects that the following environment vars are set: AZURE_TENANT_ID: with your Azure Active Directory tenant id or domain AZURE_CLIENT_ID: with your Azure Active Directory Application Client ID AZURE_CLIENT_SECRET: with your Azure Active Directory A...
37.811765
106
0.674549
366
3,214
5.685792
0.349727
0.056223
0.021144
0.027391
0.211917
0.118212
0
0
0
0
0
0.000827
0.247666
3,214
85
107
37.811765
0.859801
0.202862
0
0.035088
0
0
0.081517
0
0
0
0
0
0
1
0.052632
false
0.052632
0.122807
0
0.210526
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
14c9b192bbd14f7c606b2aaf8e291633bc4fa8ce
694
py
Python
pt10.2d/testDuckTyping.py
Mikanwolfe/object-oriented-programming
109cba3aa80ca1ccd4816a40b69757ea43b00eb0
[ "MIT" ]
null
null
null
pt10.2d/testDuckTyping.py
Mikanwolfe/object-oriented-programming
109cba3aa80ca1ccd4816a40b69757ea43b00eb0
[ "MIT" ]
null
null
null
pt10.2d/testDuckTyping.py
Mikanwolfe/object-oriented-programming
109cba3aa80ca1ccd4816a40b69757ea43b00eb0
[ "MIT" ]
3
2019-08-13T00:59:25.000Z
2021-04-23T07:48:43.000Z
class Duck: def swim(self): print("Duck is swimming!") def layEggs(self): print("Duck is laying eggs!") class Fish: def swim(self): print("Fish is swimming!") def layEggs(self): print("Fish is laying eggs!") class Diver: def swim(self): ...
16.52381
55
0.57781
85
694
4.717647
0.294118
0.134663
0.082294
0.119701
0.144638
0.144638
0
0
0
0
0
0
0.292507
694
41
56
16.926829
0.816701
0
0
0.178571
0
0
0.213256
0
0
0
0
0
0
1
0.285714
false
0
0
0
0.392857
0.214286
0
0
0
null
0
0
0
0
0
0
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
14caf101b6330f01e0b166f943a4939c0453db66
3,779
py
Python
Tools/RawDataProcessor/example.py
UCHIC/CIWS-MWM-Logger
471787f2f2ca489ab8f861ecf5e9175dd2aa4ea8
[ "BSD-3-Clause" ]
6
2017-12-22T00:29:02.000Z
2022-03-03T17:09:53.000Z
Tools/RawDataProcessor/example.py
UCHIC/CIWS-MWM-Logger
471787f2f2ca489ab8f861ecf5e9175dd2aa4ea8
[ "BSD-3-Clause" ]
3
2018-07-03T14:35:31.000Z
2019-07-26T17:00:44.000Z
Tools/RawDataProcessor/example.py
UCHIC/CIWS-MWM-Logger
471787f2f2ca489ab8f861ecf5e9175dd2aa4ea8
[ "BSD-3-Clause" ]
2
2020-05-11T15:14:44.000Z
2020-05-11T15:34:41.000Z
import matplotlib.pyplot as plt # This example uses matplotlib for plotting. This module is in no way tied to # matplotlib. You may utilize whichever plotting tool you prefer. import rawDataProcessor # The module is called rawDataProcessor. print("==============================") print(" Example ...
44.988095
128
0.691717
555
3,779
4.706306
0.345946
0.030628
0.045942
0.020674
0.156968
0.105666
0.084227
0.084227
0.062787
0.062787
0
0.012953
0.182853
3,779
83
129
45.53012
0.832902
0.256152
0
0.333333
0
0
0.574857
0.050501
0
0
0
0
0
1
0
false
0
0.028986
0
0.028986
0.681159
0
0
0
null
0
0
0
0
0
0
0
0
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
14cc61b2bd1b4de8bc8b6e41eb22e33dd0c038cc
201
py
Python
scrapy_framework/buildwithpython_tuto/amazon_scraping/test.py
AymanTareq/webscraping
35b3fe3d869c78856667cdb537a5f067fdc4c9ac
[ "MIT" ]
null
null
null
scrapy_framework/buildwithpython_tuto/amazon_scraping/test.py
AymanTareq/webscraping
35b3fe3d869c78856667cdb537a5f067fdc4c9ac
[ "MIT" ]
null
null
null
scrapy_framework/buildwithpython_tuto/amazon_scraping/test.py
AymanTareq/webscraping
35b3fe3d869c78856667cdb537a5f067fdc4c9ac
[ "MIT" ]
null
null
null
class main: a = '' def func(self): s = '' b = '\n\n\ntareq\n\n\n' for i in b: if i != '\n': s += i print(s) ii = main() ii.func()
13.4
31
0.323383
29
201
2.241379
0.551724
0.092308
0
0
0
0
0
0
0
0
0
0
0.497512
201
14
32
14.357143
0.643564
0
0
0
0
0
0.095477
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.272727
0.090909
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
14cd11964fdd1ebc262bece3df231ece5d6de249
440
py
Python
website/tracks/migrations/0012_auto_20161201_0820.py
abecede753/trax
00fb2abdcab5b5ff564e2e97d26e5b16c631b778
[ "MIT" ]
null
null
null
website/tracks/migrations/0012_auto_20161201_0820.py
abecede753/trax
00fb2abdcab5b5ff564e2e97d26e5b16c631b778
[ "MIT" ]
10
2016-11-28T09:32:53.000Z
2018-03-18T10:24:14.000Z
website/tracks/migrations/0012_auto_20161201_0820.py
abecede753/trax
00fb2abdcab5b5ff564e2e97d26e5b16c631b778
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-12-01 08:20 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tracks', '0011_auto_20161129_1442'), ] operations = [ migrations.AlterField...
20.952381
48
0.609091
47
440
5.510638
0.829787
0
0
0
0
0
0
0
0
0
0
0.103125
0.272727
440
20
49
22
0.70625
0.154545
0
0
1
0
0.119241
0.062331
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
14cf10127ff9b3112aae8535365491add5fd4e8b
952
py
Python
day6/solve6.py
jmacarthur/aoc2017
2a3096aabf464ef52c05f9437498035cfb5ca1a6
[ "MIT" ]
null
null
null
day6/solve6.py
jmacarthur/aoc2017
2a3096aabf464ef52c05f9437498035cfb5ca1a6
[ "MIT" ]
null
null
null
day6/solve6.py
jmacarthur/aoc2017
2a3096aabf464ef52c05f9437498035cfb5ca1a6
[ "MIT" ]
null
null
null
#!/usr/bin/python -w import copy f = open("input5.txt", "rt") banks = map(int,f.readline().strip().split()) history = [] cycle_log = [] print banks cycles = 0 while True: highest_value = max(banks) # Find the highest bank - there can be several indexes equal to # highest_value, but we want the first one...
26.444444
92
0.644958
130
952
4.607692
0.523077
0.080134
0.056761
0
0
0
0
0
0
0
0
0.011236
0.252101
952
35
93
27.2
0.830056
0.142857
0
0.111111
0
0
0.115621
0
0
0
0
0
0
0
null
null
0
0.037037
null
null
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
14d2ef2279509c60ae013e75bc2380feb9c6123d
410
py
Python
performers/management/commands/load_all_performers.py
qsic/qsic3
b45dfcc76c80001b0c35c6a887a0cfcdf8d1c1e2
[ "BSD-3-Clause" ]
null
null
null
performers/management/commands/load_all_performers.py
qsic/qsic3
b45dfcc76c80001b0c35c6a887a0cfcdf8d1c1e2
[ "BSD-3-Clause" ]
1
2015-01-12T05:54:20.000Z
2015-01-12T05:55:23.000Z
performers/management/commands/load_all_performers.py
qsic/qsic3
b45dfcc76c80001b0c35c6a887a0cfcdf8d1c1e2
[ "BSD-3-Clause" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from performers.models import Performer class Command(BaseCommand): help = '' def handle(self, *args, **options): for performer in Performer.objects.all(): self.stdout.write('Loading {}...'.format(performer), ending='') ...
34.166667
75
0.668293
45
410
6.044444
0.688889
0.073529
0.110294
0
0
0
0
0
0
0
0
0
0.197561
410
12
76
34.166667
0.826748
0
0
0
0
0
0.043796
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.555556
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
14e5957d802834c1a09d08dcf73deb37b35c4ac4
61,092
py
Python
project/views.py
postpdm/ich_bau
c4cd0ae78a2337c94a02bc8f0d42483ca1a1477f
[ "Apache-2.0" ]
1
2021-11-25T19:37:01.000Z
2021-11-25T19:37:01.000Z
project/views.py
postpdm/ich_bau
c4cd0ae78a2337c94a02bc8f0d42483ca1a1477f
[ "Apache-2.0" ]
197
2017-09-06T22:54:20.000Z
2022-02-05T00:04:13.000Z
project/views.py
postpdm/ich_bau
c4cd0ae78a2337c94a02bc8f0d42483ca1a1477f
[ "Apache-2.0" ]
2
2017-11-08T02:13:03.000Z
2020-09-30T19:48:12.000Z
from project.models import * from project.forms import ProjectForm, TaskForm, TaskCommentForm, MilestoneForm, MemberForm, TaskLinkedForm, TaskProfileForm, TaskCheckListForm, TaskDomainForm, Sub_ProjectForm, Task_Property_Amount_Form from ich_bau.profiles.models import Get_Users_Profiles, Close_All_Unread_Notifications...
38.739379
215
0.631261
6,966
61,092
5.243181
0.087138
0.025298
0.014155
0.018016
0.597744
0.523793
0.470732
0.416165
0.36398
0.326142
0
0.007117
0.287042
61,092
1,576
216
38.763959
0.831412
0.065868
0
0.486809
0
0
0.081278
0.017471
0
0
0
0
0
0
null
null
0.005106
0.026383
null
null
0.006809
0
0
0
null
0
0
0
0
0
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
14eaf068f36adb8e562afd0fe7ea65e75aa1fa31
1,044
py
Python
app.py
fai07600521/testcolab
81a3de1937322c63ba4ccaddf01b9da1a3f41314
[ "BSD-Source-Code" ]
null
null
null
app.py
fai07600521/testcolab
81a3de1937322c63ba4ccaddf01b9da1a3f41314
[ "BSD-Source-Code" ]
null
null
null
app.py
fai07600521/testcolab
81a3de1937322c63ba4ccaddf01b9da1a3f41314
[ "BSD-Source-Code" ]
null
null
null
# Import libraries from flask import Flask, request, render_template from flask import Flask,render_template, request import pickle import torch #from generate import generate_images import pprint app = Flask(__name__) @app.route('/',methods=["GET", "POST"]) def home(name=None): return r...
28.216216
98
0.552682
127
1,044
4.401575
0.566929
0.075134
0.053667
0.071556
0
0
0
0
0
0
0
0.029289
0.313218
1,044
36
99
29
0.750349
0.152299
0
0
1
0
0.112961
0.032105
0
0
0
0
0
1
0.1
false
0
0.25
0.05
0.4
0.05
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
14f26965208d33d13d49217da7d05089fd907bda
5,130
py
Python
tests/test_users.py
Gingernaut/microAuth
0355147b571ed5d9e50ab534f13eb6eee6d9a219
[ "MIT" ]
28
2017-10-03T21:33:43.000Z
2021-03-04T08:04:36.000Z
tests/test_users.py
Gingernaut/microAuth
0355147b571ed5d9e50ab534f13eb6eee6d9a219
[ "MIT" ]
406
2017-12-10T22:24:31.000Z
2021-07-26T12:16:38.000Z
tests/test_users.py
Gingernaut/microAuth
0355147b571ed5d9e50ab534f13eb6eee6d9a219
[ "MIT" ]
4
2019-03-04T14:14:25.000Z
2021-08-07T12:47:47.000Z
import ujson class TestAccount: def test_get_account_without_auth(self, test_server): res = test_server.get("/account") assert res.status_code == 401 def test_get_info(self, test_server, create_account_jwt): res = test_server.get( "/account", headers={"Authorization": f"Be...
36.126761
88
0.617154
553
5,130
5.484629
0.177215
0.085724
0.105506
0.065941
0.713155
0.680514
0.647544
0.567425
0.548632
0.506759
0
0.016027
0.25809
5,130
141
89
36.382979
0.780872
0.028655
0
0.46789
0
0
0.210125
0.014464
0
0
0
0
0.211009
1
0.100917
false
0.073395
0.009174
0
0.119266
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
14f364848d0f06743160af76bd375e8d0a654c8a
13,960
py
Python
openmdao.gui/src/openmdao/gui/test/functional/util.py
Kenneth-T-Moore/OpenMDAO-Framework
76e0ebbd6f424a03b547ff7b6039dea73d8d44dc
[ "Apache-2.0" ]
null
null
null
openmdao.gui/src/openmdao/gui/test/functional/util.py
Kenneth-T-Moore/OpenMDAO-Framework
76e0ebbd6f424a03b547ff7b6039dea73d8d44dc
[ "Apache-2.0" ]
null
null
null
openmdao.gui/src/openmdao/gui/test/functional/util.py
Kenneth-T-Moore/OpenMDAO-Framework
76e0ebbd6f424a03b547ff7b6039dea73d8d44dc
[ "Apache-2.0" ]
null
null
null
""" Utilities for GUI functional testing. """ import inspect import logging import os.path import platform import shutil import socket import stat import subprocess import sys import time import urllib2 import zipfile from distutils.spawn import find_executable from nose import SkipTest from nose.tools import eq_ as ...
32.240185
86
0.600501
1,655
13,960
4.904532
0.23565
0.016016
0.01848
0.00887
0.164962
0.140692
0.109154
0.092399
0.092399
0.074658
0
0.009541
0.294269
13,960
432
87
32.314815
0.814352
0.08116
0
0.262821
0
0
0.111167
0.00879
0
0
0
0
0.003205
0
null
null
0
0.070513
null
null
0.032051
0
0
0
null
0
0
0
0
0
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
14fb598035ec62e22cb358a3b0fde97c9056db55
43,410
py
Python
vqganclip/disco.py
beasteers/VQGAN-CLIP
ffe27bfefdeb7c1cd8a64d8c18cfb8249dabc35a
[ "MIT" ]
null
null
null
vqganclip/disco.py
beasteers/VQGAN-CLIP
ffe27bfefdeb7c1cd8a64d8c18cfb8249dabc35a
[ "MIT" ]
null
null
null
vqganclip/disco.py
beasteers/VQGAN-CLIP
ffe27bfefdeb7c1cd8a64d8c18cfb8249dabc35a
[ "MIT" ]
null
null
null
#@title 2.2 Define necessary functions import sys sys.path.append('./SLIP') sys.path.append('./ResizeRight') from dataclasses import dataclass from functools import partial import gc import io import math import timm from IPython import display import lpips from PIL import Image, ImageOps import requests from glob imp...
42.186589
178
0.557314
5,630
43,410
4.087389
0.105151
0.004693
0.005475
0.010038
0.580958
0.527334
0.487441
0.454893
0.430254
0.418912
0
0.028743
0.320364
43,410
1,028
179
42.227626
0.751246
0.07777
0
0.402967
0
0
0.049226
0.012193
0
0
0
0
0.001236
0
null
null
0
0.037083
null
null
0.008653
0
0
0
null
0
0
0
0
0
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
14ff330ab08123d89923f21e3ffc1e52a174caa3
2,828
py
Python
tests/test_sessions.py
nickfrostatx/malt
1d8dc81101928e6c7b3ad42b70d617e70331bda3
[ "MIT" ]
null
null
null
tests/test_sessions.py
nickfrostatx/malt
1d8dc81101928e6c7b3ad42b70d617e70331bda3
[ "MIT" ]
6
2016-05-12T04:58:46.000Z
2017-06-04T00:45:00.000Z
tests/test_sessions.py
nickfrostatx/malt
1d8dc81101928e6c7b3ad42b70d617e70331bda3
[ "MIT" ]
null
null
null
from malt import Request, Response from malt.sessions import b64d_raw, b64e_raw, safe_str_cmp, sign, unsign, \ get_key, open_session, save_session import pytest def test_b64d_raw(): assert b64d_raw(u'') == b'' assert b64d_raw(u'dGVzdA') == b'test' assert b64d_raw(u'dGVzdDE') == b...
33.270588
79
0.624116
359
2,828
4.732591
0.214485
0.032372
0.042378
0.049441
0.326663
0.270159
0.1701
0.093584
0.030018
0
0
0.051188
0.226308
2,828
84
80
33.666667
0.72532
0
0
0.063492
0
0
0.281825
0.140736
0
0
0
0
0.444444
1
0.126984
false
0
0.047619
0
0.174603
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
090218cf1a59dcec66346723c83031a7ed86c9eb
613
py
Python
profile/time-reapply-singly-bbn.py
gitter-badger/py-bbn
badb5073bb1640e376f6d9db871e91365fd5d20f
[ "Apache-2.0" ]
48
2017-03-21T21:13:39.000Z
2022-03-11T08:13:01.000Z
profile/time-reapply-singly-bbn.py
SourangshuGhosh/py-bbn
f1e296ea4bb9d1392ec585fbafe34011ea2f85fd
[ "Apache-2.0" ]
7
2018-07-18T16:01:15.000Z
2022-02-10T14:42:33.000Z
profile/time-reapply-singly-bbn.py
SourangshuGhosh/py-bbn
f1e296ea4bb9d1392ec585fbafe34011ea2f85fd
[ "Apache-2.0" ]
14
2017-09-19T18:34:08.000Z
2022-03-04T11:52:51.000Z
import json import time from pybbn.graph.dag import Bbn from pybbn.pptc.inferencecontroller import InferenceController def do_it(join_tree): InferenceController.reapply(join_tree, {0: [0.5, 0.5]}) with open('singly-bbn.json', 'r') as f: s = time.time() bbn = Bbn.from_dict(json.loads(f.read())) e = ...
23.576923
62
0.646003
94
613
4.148936
0.404255
0.102564
0.138462
0.174359
0.34359
0.34359
0.34359
0.34359
0.34359
0.14359
0
0.024341
0.195759
613
25
63
24.52
0.766734
0
0
0.444444
0
0
0.117455
0
0
0
0
0
0
1
0.055556
false
0
0.222222
0
0.277778
0.111111
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
09059fdf00c50aee91dcd9497c2bbf05ebd2858b
2,062
py
Python
src/shapi/console.py
rahulunair/shapi
6fc26c3d76c042c5600e1a6fdbeb3823152a3f9f
[ "Unlicense" ]
1
2021-07-06T16:26:38.000Z
2021-07-06T16:26:38.000Z
src/shapi/console.py
Meadosc/shapi
6fc26c3d76c042c5600e1a6fdbeb3823152a3f9f
[ "Unlicense" ]
3
2020-06-20T21:15:29.000Z
2020-06-21T17:56:58.000Z
src/shapi/console.py
Meadosc/shapi
6fc26c3d76c042c5600e1a6fdbeb3823152a3f9f
[ "Unlicense" ]
1
2020-06-23T20:34:51.000Z
2020-06-23T20:34:51.000Z
"""CLI entrypoint to shapi.""" import json import click from . import __version__ from .client import SHClient sh_client = SHClient() @click.group() @click.version_option(version=__version__) def cli() -> None: """SHApi - Software Heritage(SH) API. A Python client to interact with software heritage API ...
26.101266
84
0.623181
293
2,062
4.283276
0.300341
0.033466
0.028685
0.040637
0.38247
0.27251
0.232669
0.121116
0.121116
0.065339
0
0.010347
0.203201
2,062
79
85
26.101266
0.7535
0.274976
0
0.243902
0
0
0.19816
0.033263
0
0
0
0.012658
0
1
0.146341
false
0
0.097561
0.04878
0.292683
0.341463
0
0
0
null
0
0
0
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
090659af7c7257836362332de243ad6840a42f6a
1,008
py
Python
project/urls.py
josalhor/WebModels
6b9cde3141c53562f40b129e6e1c87448ce9853a
[ "BSD-3-Clause" ]
null
null
null
project/urls.py
josalhor/WebModels
6b9cde3141c53562f40b129e6e1c87448ce9853a
[ "BSD-3-Clause" ]
41
2021-03-23T12:58:25.000Z
2021-05-25T11:38:42.000Z
project/urls.py
josalhor/WebModels
6b9cde3141c53562f40b129e6e1c87448ce9853a
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.contrib.auth import views as auth_views from django.urls import include, path from django.views.generic import TemplateView from .signup import signup from todo.views import book_catalogue, main url...
40.32
83
0.704365
131
1,008
5.290076
0.312977
0.08658
0.040404
0.066378
0
0
0
0
0
0
0
0
0.160714
1,008
24
84
42
0.819149
0.026786
0
0
0
0
0.114402
0
0
0
0
0
0
1
0
false
0
0.363636
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
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
090f4a5def2f29fc1007188e7382e9a819569b27
1,101
py
Python
hardhat/recipes/standardnotes.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/standardnotes.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/standardnotes.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
from .base import GnuRecipe import os import shutil class StandardNotesRecipe(GnuRecipe): def __init__(self, *args, **kwargs): super(StandardNotesRecipe, self).__init__(*args, **kwargs) self.sha256 = '4ebfe83945062d665c85034929b5d6d0' \ '83d6baf1229addf0f6a9e68c608a5241' ...
30.583333
92
0.624886
122
1,101
5.52459
0.57377
0.035608
0.048961
0.047478
0
0
0
0
0
0
0
0.06302
0.236149
1,101
35
93
31.457143
0.738407
0
0
0.12
0
0
0.298086
0.134913
0
0
0
0
0
1
0.2
false
0.12
0.12
0
0.36
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
0915a2f2a9e58e455d264075573079d021cf4641
4,216
py
Python
pycontactus/model/models.py
tongpa/pyContactus
12ff44e1c11a116929ffbb49652a332eaaaf5027
[ "Apache-2.0" ]
null
null
null
pycontactus/model/models.py
tongpa/pyContactus
12ff44e1c11a116929ffbb49652a332eaaaf5027
[ "Apache-2.0" ]
null
null
null
pycontactus/model/models.py
tongpa/pyContactus
12ff44e1c11a116929ffbb49652a332eaaaf5027
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import Table, ForeignKey, Column, and_, func,sql from sqlalchemy.types import Unicode, DateTime, Date, Integer, String, Text,Boolean,BigInteger,SmallInteger,CHAR,TIMESTAMP from sqlalchemy.orm import backref, relation from pycontactus.model import DeclarativeBase from tgext.pluggable import app_model,...
38.678899
199
0.678843
507
4,216
5.390533
0.224852
0.105379
0.092206
0.059276
0.377973
0.308818
0.250274
0.203439
0.163191
0.163191
0
0.007815
0.210863
4,216
109
200
38.678899
0.813646
0.013046
0
0.225352
0
0
0.080067
0.036307
0
0
0
0
0
1
0.112676
false
0
0.140845
0.070423
0.633803
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
0919937d0253405db87021b9d3816dbc5a9c482f
1,564
py
Python
serializers.py
renmarin/django_restaurants
a27f1d79856e4bd9da0c1987243e1dab3ec7be20
[ "MIT" ]
null
null
null
serializers.py
renmarin/django_restaurants
a27f1d79856e4bd9da0c1987243e1dab3ec7be20
[ "MIT" ]
null
null
null
serializers.py
renmarin/django_restaurants
a27f1d79856e4bd9da0c1987243e1dab3ec7be20
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Restaurant, MenuItem class RestaurantsSerializer(serializers.Serializer): id = serializers.IntegerField(read_only=True) name = serializers.CharField(max_length=200) def create(self, validated_data): return MenuItem.objects.create(**valida...
38.146341
86
0.712916
171
1,564
6.397661
0.28655
0.154479
0.105119
0.132541
0.510055
0.474406
0.432358
0.432358
0.432358
0.432358
0
0.008689
0.190537
1,564
40
87
39.1
0.85545
0.092711
0
0.518519
0
0
0.021866
0
0
0
0
0
0
1
0.148148
false
0
0.074074
0.037037
0.740741
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
0924bf88f0243f965e8b490b5af731529c28aef8
5,113
py
Python
newsgac/pipelines/models.py
newsgac/newsgac
7503783521afd6fb755fef164ec7e8660955a783
[ "Apache-2.0" ]
3
2019-04-05T13:40:12.000Z
2019-08-01T10:51:40.000Z
newsgac/pipelines/models.py
newsgac/newsgac
7503783521afd6fb755fef164ec7e8660955a783
[ "Apache-2.0" ]
143
2018-12-18T10:38:16.000Z
2022-03-21T19:02:48.000Z
newsgac/pipelines/models.py
Tommos0/newsgac
7503783521afd6fb755fef164ec7e8660955a783
[ "Apache-2.0" ]
1
2020-01-23T09:19:49.000Z
2020-01-23T09:19:49.000Z
import numpy from pymodm import MongoModel, fields, EmbeddedMongoModel from sklearn import metrics from sklearn.metrics import confusion_matrix from newsgac.common.fields import ObjectField from newsgac.common.mixins import CreatedUpdated, DeleteObjectsMixin from newsgac.learners import LearnerSVC from newsgac.learne...
46.063063
120
0.72521
599
5,113
5.991653
0.223706
0.044581
0.074115
0.09752
0.237392
0.212037
0.188632
0.16467
0.147116
0.147116
0
0.010204
0.175826
5,113
110
121
46.481818
0.841481
0.01506
0
0.043956
0
0
0.024041
0.004172
0
0
0
0
0
1
0.076923
false
0
0.175824
0.032967
0.615385
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
092a56e84a7cfe4f0b5f64bba4b3a2036d9619da
2,909
py
Python
lattedb/current/migrations/0001_initial.py
callat-qcd/lattedb
75c06748f3d59332a84ec1b5794c215c5974a46f
[ "BSD-3-Clause" ]
1
2019-12-11T02:33:23.000Z
2019-12-11T02:33:23.000Z
lattedb/current/migrations/0001_initial.py
callat-qcd/lattedb
75c06748f3d59332a84ec1b5794c215c5974a46f
[ "BSD-3-Clause" ]
10
2020-01-29T17:06:01.000Z
2021-05-31T14:41:19.000Z
lattedb/current/migrations/0001_initial.py
callat-qcd/lattedb
75c06748f3d59332a84ec1b5794c215c5974a46f
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.2.5 on 2019-10-30 23:58 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), ] ope...
50.155172
247
0.632176
317
2,909
5.687697
0.353312
0.04437
0.033278
0.048808
0.471991
0.378813
0.378813
0.378813
0.356073
0.356073
0
0.00955
0.24407
2,909
57
248
51.035088
0.810368
0.015469
0
0.48
1
0
0.255765
0.007687
0
0
0
0
0
1
0
false
0
0.06
0
0.14
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
093b46c720d7166fabcac7c8f44d2a7bf5f5a367
1,339
py
Python
tests/matchers/test_S2S.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
tests/matchers/test_S2S.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
tests/matchers/test_S2S.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
''' Created on 2015-01-19 @author: levi ''' import unittest from patterns.HS2S_matchLHS import HS2S_matchLHS from patterns.HS2S_rewriter import HS2S_rewriter from t_core.messages import Packet from t_core.iterator import Iterator from t_core.matcher import Matcher from t_core.rewriter import Rewriter from himesis_u...
21.95082
62
0.591486
161
1,339
4.627329
0.329193
0.04698
0.067114
0.034899
0.112752
0.075168
0.075168
0
0
0
0
0.032931
0.319642
1,339
61
63
21.95082
0.784852
0.032114
0
0.181818
0
0
0.049521
0
0
0
0
0
0
0
null
null
0
0.272727
null
null
0.121212
0
0
0
null
0
0
0
0
0
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
0942511c0c07109a36ae2a9510ff7a36b0ebc0eb
964
py
Python
translate_streaks.py
IvanYingX/AiBetCore
bdf997a9f69f842e28ea1a1e54fdc70784388ef2
[ "MIT" ]
null
null
null
translate_streaks.py
IvanYingX/AiBetCore
bdf997a9f69f842e28ea1a1e54fdc70784388ef2
[ "MIT" ]
8
2021-10-06T18:23:31.000Z
2021-10-19T17:17:17.000Z
translate_streaks.py
IvanYingX/AiBetCore
bdf997a9f69f842e28ea1a1e54fdc70784388ef2
[ "MIT" ]
null
null
null
import pandas as pd def streak_points(streak: str): points_dict = {'W': 3, 'D': 1, 'L': 0 } alpha_values = [] for character in streak: if character == 'n' or character == 'a': pass elif character == '0': pass else: alpha_values.append(points_dict[...
26.777778
103
0.542531
140
964
3.635714
0.342857
0.141454
0.117878
0.094303
0.361493
0.361493
0.361493
0.300589
0.300589
0.300589
0
0.025954
0.320539
964
35
104
27.542857
0.751145
0.045643
0
0.275862
0
0
0.006536
0
0
0
0
0
0
1
0.068966
false
0.068966
0.034483
0
0.172414
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
09476304a07ba3ccaffbdd38f07e0abb30d62dd6
2,651
py
Python
scripter/record.py
nBeker/macros
8c83943c5dc92042a37ce5b2e2b36265ee713d05
[ "Apache-2.0" ]
1
2016-01-23T15:20:00.000Z
2016-01-23T15:20:00.000Z
scripter/record.py
nBeker/macros
8c83943c5dc92042a37ce5b2e2b36265ee713d05
[ "Apache-2.0" ]
null
null
null
scripter/record.py
nBeker/macros
8c83943c5dc92042a37ce5b2e2b36265ee713d05
[ "Apache-2.0" ]
null
null
null
""" The following script records any keyboard action and mouse operation. The output will be a Python file which can be executed and repeat the user input. Idea Originating Credit: A.S. """ import argparse import ctypes import json import os.path from string import Template from win32gui import GetCursorPos as mouse_p...
27.614583
87
0.718974
325
2,651
5.726154
0.44
0.041376
0.067706
0.017195
0.095648
0.095648
0.095648
0.095648
0.095648
0.095648
0
0.0109
0.204074
2,651
95
88
27.905263
0.87109
0.222558
0
0.092593
0
0
0.046011
0
0
0
0
0.010526
0
1
0.074074
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
094d53905ca20d9736c36fadd67676a0524b9dbe
362
py
Python
panorama/pano.py
hiankun/py_sandbox
6623edd0c8ab17641e1ce09fba7da34c4865fc4f
[ "MIT" ]
null
null
null
panorama/pano.py
hiankun/py_sandbox
6623edd0c8ab17641e1ce09fba7da34c4865fc4f
[ "MIT" ]
null
null
null
panorama/pano.py
hiankun/py_sandbox
6623edd0c8ab17641e1ce09fba7da34c4865fc4f
[ "MIT" ]
null
null
null
import cv2 import numpy as np import os from glob import glob #imagefiles = sorted(glob('./inputs/*.jpg')) imagefiles = glob('./inputs/*.jpg') images = [] for filename in imagefiles: img = cv2.imread(filename) images.append(img) stitcher = cv2.Stitcher.create() _, res = stitcher.stitch(images) cv2.imshow('Panor...
19.052632
44
0.70442
51
362
4.980392
0.54902
0.07874
0.102362
0
0
0
0
0
0
0
0
0.047619
0.129834
362
18
45
20.111111
0.75873
0.118785
0
0
0
0
0.069182
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
094f0d0368f997018a2d4bbb95a58040c523fcd4
4,279
py
Python
Chapter05/code/chapter5_05/contacts_view.py
sTone3/Tkinter-GUI-Application-Development-Cookbook
6c42edaa66c30d13e1903f3a3a66f609f20783d9
[ "MIT" ]
43
2018-05-09T23:29:07.000Z
2022-03-05T02:03:32.000Z
Chapter05/code/chapter5_05/contacts_view.py
wenxuefeng3930/Tkinter-GUI-Application-Development-Cookbook
6e22bc472e07a9aaa017ef66bfd32644578a873a
[ "MIT" ]
null
null
null
Chapter05/code/chapter5_05/contacts_view.py
wenxuefeng3930/Tkinter-GUI-Application-Development-Cookbook
6e22bc472e07a9aaa017ef66bfd32644578a873a
[ "MIT" ]
40
2018-06-18T14:44:13.000Z
2022-03-12T09:11:50.000Z
import tkinter as tk from contact import Contact class ContactList(tk.Frame): def __init__(self, master, **kwargs): super().__init__(master) self.lb = tk.Listbox(self, **kwargs) scroll = tk.Scrollbar(self, command=self.lb.yview) self.lb.config(yscrollcommand=scroll.set) s...
31.233577
76
0.627016
568
4,279
4.577465
0.216549
0.029615
0.023077
0.018462
0.152308
0.115385
0.091538
0.091538
0.047692
0.023846
0
0.012004
0.24071
4,279
136
77
31.463235
0.788243
0
0
0.106796
0
0
0.02968
0
0
0
0
0
0
1
0.223301
false
0
0.019417
0.009709
0.339806
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
0958ea2eceb0e71f37ec0cd65e6eff5d9683bd68
393
py
Python
server/app/migrations/0004_log_date.py
AliRn76/HiCoffee-App
a7d1137951bf70e17dbc271823fa6790ff3d76bd
[ "BSD-2-Clause" ]
5
2020-07-15T09:58:41.000Z
2021-05-15T06:54:58.000Z
server/app/migrations/0004_log_date.py
AliRn76/HiCoffee-App
a7d1137951bf70e17dbc271823fa6790ff3d76bd
[ "BSD-2-Clause" ]
1
2020-09-01T20:20:16.000Z
2020-09-01T20:37:14.000Z
server/app/migrations/0004_log_date.py
AliRn76/HiCoffee-App
a7d1137951bf70e17dbc271823fa6790ff3d76bd
[ "BSD-2-Clause" ]
1
2020-10-28T15:48:01.000Z
2020-10-28T15:48:01.000Z
# Generated by Django 3.0.8 on 2020-07-25 12:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0003_auto_20200725_0854'), ] operations = [ migrations.AddField( model_name='log', name='date', f...
20.684211
68
0.592875
44
393
5.181818
0.818182
0
0
0
0
0
0
0
0
0
0
0.11032
0.284987
393
18
69
21.833333
0.701068
0.114504
0
0
1
0
0.106936
0.066474
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
095fd723702634bb9a38420e9f6a4635220dc409
386
py
Python
sharecalculator/sharecalculator/urls.py
techsaphal/NEPSE_ShareCalculator
6fbdc2bb53adacf713741dc0325804299884fa02
[ "BSD-3-Clause" ]
null
null
null
sharecalculator/sharecalculator/urls.py
techsaphal/NEPSE_ShareCalculator
6fbdc2bb53adacf713741dc0325804299884fa02
[ "BSD-3-Clause" ]
null
null
null
sharecalculator/sharecalculator/urls.py
techsaphal/NEPSE_ShareCalculator
6fbdc2bb53adacf713741dc0325804299884fa02
[ "BSD-3-Clause" ]
null
null
null
import sharebuyCalculator , sharesellCalculator from django.contrib import admin from django.urls import path , include from .import views urlpatterns = [ path('',views.index,name='home'), path('share-buy-calculator/',include('sharebuyCalculator.urls')), path('share-sell-calculator/',include('sharesellCal...
25.733333
71
0.715026
42
386
6.571429
0.47619
0.072464
0
0
0
0
0
0
0
0
0
0
0.139896
386
14
72
27.571429
0.831325
0
0
0
0
0
0.25974
0.233766
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0962b7d830e35c03340652c9d17d67a5ae309bfe
1,895
py
Python
TemporalDifference/QLearning/maze.py
onimaru/Reinforcement_Learning
4c45b51a095cb0cb3c18f6a1542befdcab8a58a4
[ "MIT" ]
1
2020-12-11T19:02:13.000Z
2020-12-11T19:02:13.000Z
TemporalDifference/QLearning/maze.py
onimaru/Reinforcement_Learning
4c45b51a095cb0cb3c18f6a1542befdcab8a58a4
[ "MIT" ]
null
null
null
TemporalDifference/QLearning/maze.py
onimaru/Reinforcement_Learning
4c45b51a095cb0cb3c18f6a1542befdcab8a58a4
[ "MIT" ]
3
2020-12-11T19:03:36.000Z
2022-02-27T20:28:24.000Z
import pandas as pd import numpy as np class Maze: def __init__(self,goal=[3,3],trap1=[0,3],trap2=[3,1],position=0): pass ''' def printTable(self,p=None): p = random_position() table = pd.DataFrame(np.zeros((4,4),dtype=int),columns=None) table.iloc[3,3]='X' ...
31.583333
85
0.531926
292
1,895
3.393836
0.181507
0.020182
0.024218
0.032291
0.284561
0.284561
0.284561
0.284561
0.205853
0.205853
0
0.077884
0.281794
1,895
60
86
31.583333
0.650257
0
0
0
0
0
0.023361
0
0
0
0
0
0
1
0.264706
false
0.029412
0.058824
0.088235
0.470588
0.088235
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
116f7f9dfc9f0dfdb85bdbbc294dc5cf7c3ee223
824
py
Python
codigo/Live70/exemplo_7.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
572
2018-04-03T03:17:08.000Z
2022-03-31T19:05:32.000Z
codigo/Live70/exemplo_7.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
176
2018-05-18T15:56:16.000Z
2022-03-28T20:39:07.000Z
codigo/Live70/exemplo_7.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
140
2018-04-18T13:59:11.000Z
2022-03-29T00:43:49.000Z
class Descritor: def __init__(self, obj, set=None, get=None, delete=None): self.obj = obj self.set = set self.get = get self.delete = delete def __set__(self, obj, val): print('Estou setando algo') self.obj = val def __get__(self, obj, tipo=None): pr...
19.162791
61
0.525485
105
824
3.857143
0.247619
0.155556
0.049383
0
0
0
0
0
0
0
0
0.001908
0.364078
824
42
62
19.619048
0.770992
0
0
0.0625
0
0
0.078884
0
0
0
0
0
0
1
0.25
false
0
0
0.03125
0.46875
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
1
0
0
0
0
0
0
0
1
116fc2bdc3710cd2c826d2e567f606fc47507f18
578
py
Python
Piton.py
pythonNoobas/Python228
7c266acad5bb5ae45df10ac3fdea209831399729
[ "MIT" ]
null
null
null
Piton.py
pythonNoobas/Python228
7c266acad5bb5ae45df10ac3fdea209831399729
[ "MIT" ]
null
null
null
Piton.py
pythonNoobas/Python228
7c266acad5bb5ae45df10ac3fdea209831399729
[ "MIT" ]
null
null
null
what = input( 'что делаем?' '(+, -, *, /, %): ' ) a = int ( input( 'введи число 1: ' ) ) b = int ( input( 'введи число/проценты от числа "1" 2: ' ) ) p = 100 if what == '-': c = a - b print( str(a) + "-" + str(b) + "=" + str(c) ) elif what == '+': c = a + b print( str(a) + "+" + str(b) + "=" + str(c) ) ...
21.407407
68
0.375433
85
578
2.552941
0.247059
0.115207
0.16129
0.129032
0.529954
0.529954
0.529954
0.529954
0.529954
0.529954
0
0.015038
0.309689
578
26
69
22.230769
0.528822
0
0
0
0
0
0.168403
0
0
0
0
0
0
0
null
null
0
0
null
null
0.263158
0
0
0
null
0
0
0
0
0
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
1171fc5e4b2d6277dbe5f4b4e9a887ba82fa470d
923
py
Python
app/core/security.py
attachemd/backend_v03
c14b1b9e1c00187f5df8c3a3a4407eb5938aa314
[ "MIT" ]
null
null
null
app/core/security.py
attachemd/backend_v03
c14b1b9e1c00187f5df8c3a3a4407eb5938aa314
[ "MIT" ]
null
null
null
app/core/security.py
attachemd/backend_v03
c14b1b9e1c00187f5df8c3a3a4407eb5938aa314
[ "MIT" ]
null
null
null
from datetime import timedelta, datetime from typing import Optional, Union, Any from passlib.context import CryptContext from jose import jwt from app.core.config import settings pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") def get_password_hash(password: str) -> str: return pwd_context.h...
25.638889
68
0.71831
111
923
5.783784
0.45045
0.046729
0.049844
0
0
0
0
0
0
0
0
0
0.189599
923
35
69
26.371429
0.858289
0
0
0
0
0
0.014085
0
0
0
0
0
0
1
0.115385
false
0.230769
0.192308
0.076923
0.423077
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
117785706859e90fe6e5aaf7008ce99acbe16148
2,492
py
Python
tests/test_requests.py
richard-dinh/ricecooker
1de27c9c01aa2c65b2109ada2b790b23cbc3b0dd
[ "MIT" ]
14
2017-01-10T09:33:03.000Z
2021-11-28T12:11:27.000Z
tests/test_requests.py
richard-dinh/ricecooker
1de27c9c01aa2c65b2109ada2b790b23cbc3b0dd
[ "MIT" ]
174
2016-09-29T17:32:54.000Z
2022-03-29T15:02:48.000Z
tests/test_requests.py
richard-dinh/ricecooker
1de27c9c01aa2c65b2109ada2b790b23cbc3b0dd
[ "MIT" ]
41
2016-08-29T23:26:17.000Z
2021-11-29T17:12:03.000Z
""" Tests for handling requests to Kolibri Studio """ import copy import pytest import uuid from le_utils.constants import licenses from ricecooker.classes.nodes import TopicNode, DocumentNode from ricecooker.managers.tree import ChannelManager from ricecooker.exceptions import InvalidNodeException """ *********** T...
24.431373
85
0.745586
317
2,492
5.596215
0.22082
0.043405
0.081172
0.086246
0.306088
0.100338
0
0
0
0
0
0.002339
0.142055
2,492
101
86
24.673267
0.827409
0.018058
0
0.271429
0
0
0.026316
0
0
0
0
0
0.157143
1
0.285714
false
0.014286
0.1
0.057143
0.514286
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
117cc35db6d714ead6ef2f4f95b492b2f761c2e7
304
py
Python
exercises/PyExercises/NameSurnameEx19.py
ElLorans/PythonCrashCourse
e8158cdc376988ac18e3f68d628c2d19a43b8913
[ "MIT" ]
2
2021-01-02T21:19:25.000Z
2021-02-18T23:10:30.000Z
exercises/PyExercises/NameSurnameEx19.py
Mathisxy123/PythonCrashCourse
bb1afaeecfa195d3771ff96fea0b9f907125264e
[ "MIT" ]
null
null
null
exercises/PyExercises/NameSurnameEx19.py
Mathisxy123/PythonCrashCourse
bb1afaeecfa195d3771ff96fea0b9f907125264e
[ "MIT" ]
4
2021-01-03T10:15:43.000Z
2021-01-07T23:10:40.000Z
##write a function sum_dict() that takes a dictionary as an argument ##and returns the sum of the keys ##bonus point: sum only floats and ints, without errors for other data types ##write a function merge_dict() that merges two dicts def sum_dict(dictionary): def merge_dict(dict1, dict2):
27.636364
77
0.740132
50
304
4.42
0.68
0.054299
0.126697
0
0
0
0
0
0
0
0
0.00813
0.190789
304
10
78
30.4
0.890244
0.730263
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
11802c418a4cf02e903665cd2f343b9ae6933626
771
py
Python
_includes/code/lovely-lucky-lambs/solution.py
rajat19/foobar
507482a8ea92af8cf4cce725e4e3b7d78cb3062c
[ "MIT" ]
1
2021-11-11T01:04:21.000Z
2021-11-11T01:04:21.000Z
_includes/code/lovely-lucky-lambs/solution.py
rajat19/foobar
507482a8ea92af8cf4cce725e4e3b7d78cb3062c
[ "MIT" ]
null
null
null
_includes/code/lovely-lucky-lambs/solution.py
rajat19/foobar
507482a8ea92af8cf4cce725e4e3b7d78cb3062c
[ "MIT" ]
null
null
null
def stingy(total_lambs): stingyList = [1, 1] x, total = 2, 2 while x <= total_lambs: value = stingyList[x-1] + stingyList[x-2] stingyList.append(value) total += int(stingyList[x]) if total > total_lambs: break x+= 1 return len(stingyList) def generou...
21.416667
54
0.573281
94
771
4.521277
0.297872
0.211765
0.075294
0.075294
0.155294
0.155294
0.155294
0.155294
0.155294
0
0
0.037951
0.316472
771
36
55
21.416667
0.768501
0
0
0.275862
0
0
0.010363
0
0
0
0
0
0
1
0.103448
false
0
0
0.034483
0.206897
0.068966
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
1181cf73ede556e45b8219c7d8e36ac574fbca15
455
py
Python
accounts/migrations/0011_student_initial.py
Toluhunter/Timetable_management
2f7604fb09f23a2ff376b43d34eb92ad9fc726a1
[ "Apache-2.0" ]
1
2022-03-03T18:58:40.000Z
2022-03-03T18:58:40.000Z
accounts/migrations/0011_student_initial.py
Toluhunter/Timetable_management
2f7604fb09f23a2ff376b43d34eb92ad9fc726a1
[ "Apache-2.0" ]
null
null
null
accounts/migrations/0011_student_initial.py
Toluhunter/Timetable_management
2f7604fb09f23a2ff376b43d34eb92ad9fc726a1
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-27 14:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0010_alter_courses_name'), ] operations = [ migrations.AddField( model_name='student', name='initial', ...
22.75
82
0.604396
50
455
5.38
0.84
0
0
0
0
0
0
0
0
0
0
0.064024
0.279121
455
19
83
23.947368
0.756098
0.098901
0
0
1
0
0.127451
0.056373
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1183cb8a1047ce44ddcb8582e0a043b90201eaf2
2,959
py
Python
scripts/migrate-black.py
sthagen/psf-black
879f23fa0fc4e3903645dc6518893ac0c5893ee7
[ "MIT" ]
null
null
null
scripts/migrate-black.py
sthagen/psf-black
879f23fa0fc4e3903645dc6518893ac0c5893ee7
[ "MIT" ]
11
2022-02-07T14:19:42.000Z
2022-03-29T06:07:31.000Z
scripts/migrate-black.py
hampuskraft/black
f2d279faed9e545b8d6fbb620fa239dee5e67520
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # check out every commit added by the current branch, blackify them, # and generate diffs to reconstruct the original commits, but then # blackified import logging import os import sys from subprocess import check_output, run, Popen, PIPE def git(*args: str) -> str: return check_output(["gi...
30.822917
85
0.561338
350
2,959
4.611429
0.362857
0.043371
0.024164
0.022305
0.063197
0.037175
0.037175
0.037175
0
0
0
0.004317
0.29537
2,959
95
86
31.147368
0.769784
0.055424
0
0.144737
1
0
0.175923
0
0
0
0
0
0
1
0.026316
false
0
0.065789
0.013158
0.157895
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
1189bd534ee9e46adb521feac150541d8245b3b8
4,426
py
Python
stacking_classifier.py
GianmarcoMidena/LIP-predictor
07bfdc6cbc262c4691ae31f755815971a1579177
[ "MIT" ]
null
null
null
stacking_classifier.py
GianmarcoMidena/LIP-predictor
07bfdc6cbc262c4691ae31f755815971a1579177
[ "MIT" ]
null
null
null
stacking_classifier.py
GianmarcoMidena/LIP-predictor
07bfdc6cbc262c4691ae31f755815971a1579177
[ "MIT" ]
null
null
null
import pandas as pd class StackingClassifier: """A 'Stacking Cross-Validation' classifier. Parameters ---------- base_classifiers : array-like, shape = [n_classifiers] A list of classifiers to use for the first layer of the ensemble. meta_classifier : object The meta-classifier to...
35.408
97
0.64573
581
4,426
4.611015
0.199656
0.027996
0.026129
0.024263
0.281075
0.227324
0.118701
0.092572
0.092572
0.092572
0
0.00184
0.263217
4,426
124
98
35.693548
0.819687
0.334614
0
0.070175
0
0
0.004515
0
0
0
0
0
0
1
0.22807
false
0
0.017544
0.017544
0.403509
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
118f5e6791457d08d03e9f977903507d0df57bcf
4,475
py
Python
stockgui.py
barskhianfannie/Stocks-Visulizer
607361896faffc96dc3aca8cb2cf44e841055486
[ "MIT" ]
null
null
null
stockgui.py
barskhianfannie/Stocks-Visulizer
607361896faffc96dc3aca8cb2cf44e841055486
[ "MIT" ]
null
null
null
stockgui.py
barskhianfannie/Stocks-Visulizer
607361896faffc96dc3aca8cb2cf44e841055486
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'stockswindow.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore,...
41.82243
91
0.727151
471
4,475
6.85138
0.380042
0.063217
0.065076
0.028819
0.122715
0
0
0
0
0
0
0.034343
0.173631
4,475
107
92
41.82243
0.838291
0.065028
0
0
1
0
0.057273
0
0
0
0
0
0
1
0.023256
false
0
0.232558
0
0.267442
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
1191760a43e44596eb68f249c7613e46acf2eae8
3,361
py
Python
storage/migrations/0006_device.py
SashaPoraiko/academy-storage
387f236971085fde605c2a12b53b1734a925759a
[ "Unlicense", "MIT" ]
null
null
null
storage/migrations/0006_device.py
SashaPoraiko/academy-storage
387f236971085fde605c2a12b53b1734a925759a
[ "Unlicense", "MIT" ]
7
2020-06-05T23:54:27.000Z
2022-02-10T10:36:29.000Z
storage/migrations/0006_device.py
SashaPoraiko/academy-storage
387f236971085fde605c2a12b53b1734a925759a
[ "Unlicense", "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-11-07 15:55 from django.db import migrations, models import django.db.models.deletion def move_data(apps, schema_editor): Storage = apps.get_model('storage', 'Storage') Device = apps.get_model('storage', 'Device') queryset = Storage.objects.all() for storage in que...
37.764045
114
0.553109
331
3,361
5.52568
0.23565
0.04374
0.06889
0.108256
0.592127
0.56479
0.506288
0.506288
0.449426
0.449426
0
0.008389
0.326093
3,361
88
115
38.193182
0.799117
0.013389
0
0.506329
1
0
0.085395
0.008147
0
0
0
0
0
1
0.012658
false
0
0.025316
0
0.075949
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
119816533c40f5384a7afad33e57aa0325b1fadf
7,598
py
Python
bot.py
malonedon/whatsaap-bot
80630c6d1c86d60739cd225297a181a4cb443aad
[ "Apache-2.0" ]
null
null
null
bot.py
malonedon/whatsaap-bot
80630c6d1c86d60739cd225297a181a4cb443aad
[ "Apache-2.0" ]
null
null
null
bot.py
malonedon/whatsaap-bot
80630c6d1c86d60739cd225297a181a4cb443aad
[ "Apache-2.0" ]
null
null
null
import os from dotenv import load_dotenv from flask import Flask, request from twilio.twiml.messaging_response import MessagingResponse from twilio.rest import Client import time date_time=time.localtime() year=date_time[0] month=date_time[1] day=date_time[2] time=str(date_time[3])+":"+str(date_time[4]) ...
70.351852
555
0.702685
1,066
7,598
4.977486
0.327392
0.039012
0.047493
0.006785
0.288164
0.25556
0.234452
0.234452
0.223897
0.223897
0
0.015733
0.222032
7,598
107
556
71.009346
0.881915
0
0
0.022727
0
0.113636
0.716689
0.028972
0
0
0
0
0
1
0.022727
false
0
0.102273
0
0.397727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
119e13d94f0f4cdd9bb305a1e4d62c7f0ba4be83
3,061
py
Python
Python/libraries/recognizers-date-time/recognizers_date_time/date_time/italian/base_configs.py
felaray/Recognizers-Text
f514fd61c8d472ed92565261162712409f655312
[ "MIT" ]
null
null
null
Python/libraries/recognizers-date-time/recognizers_date_time/date_time/italian/base_configs.py
felaray/Recognizers-Text
f514fd61c8d472ed92565261162712409f655312
[ "MIT" ]
6
2021-12-20T17:13:35.000Z
2022-03-29T08:54:11.000Z
Python/libraries/recognizers-date-time/recognizers_date_time/date_time/italian/base_configs.py
felaray/Recognizers-Text
f514fd61c8d472ed92565261162712409f655312
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import Pattern from recognizers_text.utilities import RegExpUtility from ...resources.italian_date_time import ItalianDateTime from ..base_date import DateTimeUtilityConfiguration class ItalianDateTimeUtilityC...
33.637363
76
0.719699
340
3,061
6.017647
0.202941
0.069892
0.108016
0.133431
0.556207
0.435973
0.340176
0.224829
0.050831
0
0
0
0.219536
3,061
90
77
34.011111
0.856425
0.029402
0
0.180556
0
0
0
0
0
0
0
0
0
1
0.194444
false
0
0.055556
0.180556
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
11a2d2fbe4feb990b86555e4153a92461267351a
3,500
py
Python
qpid/saslmech/scram.py
martpat/qpid-python
900baa9bfab0f9b348c517fe1dac3cc6e8f26b29
[ "Apache-2.0" ]
17
2016-09-04T03:34:10.000Z
2021-11-09T22:29:30.000Z
qpid/saslmech/scram.py
martpat/qpid-python
900baa9bfab0f9b348c517fe1dac3cc6e8f26b29
[ "Apache-2.0" ]
1
2016-07-11T09:32:41.000Z
2016-07-11T09:32:41.000Z
qpid/saslmech/scram.py
martpat/qpid-python
900baa9bfab0f9b348c517fe1dac3cc6e8f26b29
[ "Apache-2.0" ]
19
2016-07-11T09:23:50.000Z
2021-11-09T22:29:20.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
38.043478
102
0.705714
430
3,500
5.676744
0.362791
0.047931
0.054076
0.045883
0.162229
0.114707
0.080295
0.080295
0.080295
0.080295
0
0.016235
0.172857
3,500
91
103
38.461538
0.826943
0.214857
0
0.037736
0
0
0.056431
0
0
0
0
0
0
1
0.075472
false
0.169811
0.09434
0
0.264151
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
11a9aa92252b5866d4bb09f95d4d4d8e7b979e32
939
py
Python
vydia/tests/test_model.py
kpj/Vydia
83036fdf83719c92c106003ae2ac7aa09ec98bf4
[ "MIT" ]
12
2017-11-05T17:26:38.000Z
2021-05-28T01:04:56.000Z
vydia/tests/test_model.py
kpj/Vydia
83036fdf83719c92c106003ae2ac7aa09ec98bf4
[ "MIT" ]
1
2021-07-15T12:53:38.000Z
2021-07-16T12:38:08.000Z
vydia/tests/test_model.py
kpj/Vydia
83036fdf83719c92c106003ae2ac7aa09ec98bf4
[ "MIT" ]
null
null
null
import os import pytest from ..core.model import Model @pytest.fixture def model(tmpdir: str) -> Model: cfg = os.path.join(tmpdir, 'state.json') log = os.path.join(tmpdir, 'log.txt') m = Model(state_fname=cfg, log_fname=log) return m def test_state_update(model: Model) -> None: assert model._...
27.617647
84
0.551651
124
939
3.983871
0.290323
0.12753
0.15587
0.202429
0.477733
0.412955
0.32996
0.212551
0.109312
0
0
0.057105
0.198083
939
33
85
28.454545
0.598938
0
0
0.136364
0
0
0.149095
0
0
0
0
0
0.227273
1
0.090909
false
0
0.136364
0
0.272727
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
11b5cb9c44ba9aa711e7f7c8b3102cb36f95f7a7
2,331
tac
Python
6 复试/2 笔试/4 编译原理/编原/hw/2015_刘智峰_PA/PA3/TestCases/S3/output/t8.tac
ladike/912_project
5178c1c93ac6ca30ffc72dd689f5c6932704b4ab
[ "MIT" ]
1
2022-03-02T16:05:49.000Z
2022-03-02T16:05:49.000Z
6 复试/2 笔试/4 编译原理/编原/hw/2015_刘智峰_PA/PA3/TestCases/S3/output/t8.tac
ladike/912_project
5178c1c93ac6ca30ffc72dd689f5c6932704b4ab
[ "MIT" ]
null
null
null
6 复试/2 笔试/4 编译原理/编原/hw/2015_刘智峰_PA/PA3/TestCases/S3/output/t8.tac
ladike/912_project
5178c1c93ac6ca30ffc72dd689f5c6932704b4ab
[ "MIT" ]
null
null
null
VTABLE(_Animal) { <empty> Animal _Animal.InitAnimal; _Animal.GetHeight; _Animal.GetMom; } VTABLE(_Cow) { _Animal Cow _Animal.InitAnimal; _Animal.GetHeight; _Animal.GetMom; _Cow.InitCow; _Cow.IsSpottedCow; } VTABLE(_Main) { <empty> Main } FUNCTION(_Animal_New) {...
15.644295
34
0.549979
299
2,331
3.732441
0.274247
0.057348
0.039427
0.055556
0.077061
0.077061
0
0
0
0
0
0.176321
0.32604
2,331
148
35
15.75
0.534055
0
0
0.132353
0
0
0.034335
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
11b7fd6fa9bc4c40a07e504b0696cb37778cbfa5
465
py
Python
app/common/storage_utils.py
panuta/wealth-lab
9e5e6b420f2da72a2325dbfdd285d9198a3d9f9f
[ "MIT" ]
1
2021-09-27T09:23:37.000Z
2021-09-27T09:23:37.000Z
app/common/storage_utils.py
panuta/wealth-lab
9e5e6b420f2da72a2325dbfdd285d9198a3d9f9f
[ "MIT" ]
null
null
null
app/common/storage_utils.py
panuta/wealth-lab
9e5e6b420f2da72a2325dbfdd285d9198a3d9f9f
[ "MIT" ]
1
2021-10-03T12:52:09.000Z
2021-10-03T12:52:09.000Z
import os from pathlib import Path STORAGE_ROOT = './storage/' def abs_path(path, filename=None): storage_abs_path = Path('{}{}'.format(STORAGE_ROOT, path)) storage_abs_path.mkdir(parents=True, exist_ok=True) if filename: return storage_abs_path.joinpath(Path(filename)).resolve() else: ...
23.25
79
0.698925
67
465
4.656716
0.447761
0.112179
0.179487
0.128205
0
0
0
0
0
0
0
0
0.167742
465
19
80
24.473684
0.806202
0
0
0
0
0
0.058065
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0.083333
0.583333
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
11b832622fe98b90335f4987fb61db42b21ff948
367
py
Python
Programs/Quadratic Equation.py
saurabhjojare/Python-Practice-Code
d10db8753fb47d566760c24fa1185d9acbe4b93c
[ "MIT" ]
null
null
null
Programs/Quadratic Equation.py
saurabhjojare/Python-Practice-Code
d10db8753fb47d566760c24fa1185d9acbe4b93c
[ "MIT" ]
null
null
null
Programs/Quadratic Equation.py
saurabhjojare/Python-Practice-Code
d10db8753fb47d566760c24fa1185d9acbe4b93c
[ "MIT" ]
null
null
null
# Import complex math module import cmath # Take input from the user a = float(input("Enter First ")) b = float(input("Enter Second ")) c = float(input("Enter Third ")) # Calculate the discriminant d = (b ** 2) - (4*a*c) # Find two solutions sol1 = (-b-cmath.sqrt(d))/(2*a) sol2 = (-b+cmath.sqrt(d))/(2*a) print("Th...
20.388889
55
0.643052
62
367
3.806452
0.580645
0.127119
0.190678
0.09322
0.110169
0.110169
0
0
0
0
0
0.032573
0.163488
367
17
56
21.588235
0.736156
0.264305
0
0
0
0
0.245283
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.125
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
11c2533d34e89c3bdb24956ca9caaaca9ded57a4
2,783
py
Python
aiob2/b2.py
james7132/b2blaze
610d780fd74c1ab166bbf67bbe850077e5a8b508
[ "MIT" ]
1
2019-01-10T19:50:27.000Z
2019-01-10T19:50:27.000Z
aiob2/b2.py
james7132/b2blaze
610d780fd74c1ab166bbf67bbe850077e5a8b508
[ "MIT" ]
2
2019-01-15T00:57:31.000Z
2020-10-04T04:49:46.000Z
aiob2/b2.py
james7132/b2blaze
610d780fd74c1ab166bbf67bbe850077e5a8b508
[ "MIT" ]
2
2019-01-15T01:58:45.000Z
2019-07-16T03:22:43.000Z
from aiob2.exceptions import B2ApplicationKeyNotSet, B2KeyIDNotSet from aiob2.connector import B2Connector import aiohttp import os import json class B2(): def __init__(self, loop=None): self.session = aiohttp.ClientSession(loop=loop) self.connector = B2Connector(self.session) def authentica...
37.608108
79
0.60618
320
2,783
5.125
0.303125
0.021341
0.021951
0.027439
0.076829
0
0
0
0
0
0
0.010955
0.311175
2,783
73
80
38.123288
0.844549
0.09055
0
0.037736
0
0
0.049692
0
0
0
0
0.013699
0.018868
1
0.056604
false
0
0.09434
0
0.264151
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
11cb03b21242c826acf355d4cb1eb95dc5f8ab43
3,129
py
Python
examples/benchmarks/pylot/fusion_operator.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
examples/benchmarks/pylot/fusion_operator.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
examples/benchmarks/pylot/fusion_operator.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
from erdos.data_stream import DataStream from erdos.logging_op import LoggingOp from erdos.message import Message from erdos.timestamp import Timestamp from erdos.utils import frequency, setup_logging import pylot_utils class FusionOperator(LoggingOp): def __init__(self, name, min_runtime_us, max_runtime_us, ...
33.287234
74
0.624481
379
3,129
4.810026
0.224274
0.042238
0.049369
0.065826
0.297312
0.156336
0.065826
0.065826
0.065826
0.065826
0
0.003923
0.266858
3,129
93
75
33.645161
0.790759
0.009268
0
0.138889
0
0
0.032279
0
0
0
0
0.010753
0
1
0.194444
false
0
0.083333
0.069444
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
1
0
0
0
0
0
0
0
0
0
0
1
11d271664eeba02140f3883b2a9d5ec22ebb7705
1,005
py
Python
files/autoupdate-you-resume-for-hh.ru/16_for_input_end=''.py
SKDCO/SKDCO
d19147f25f5ac25e7e846988c5484eabf49a681e
[ "Apache-2.0" ]
2
2021-11-12T12:43:15.000Z
2021-11-13T11:16:36.000Z
files/autoupdate-you-resume-for-hh.ru/16_for_input_end=''.py
SKDCO/SKDCO
d19147f25f5ac25e7e846988c5484eabf49a681e
[ "Apache-2.0" ]
1
2021-04-12T13:38:12.000Z
2021-04-12T13:38:12.000Z
files/autoupdate-you-resume-for-hh.ru/16_for_input_end=''.py
SKDCO/SKDCO
d19147f25f5ac25e7e846988c5484eabf49a681e
[ "Apache-2.0" ]
2
2021-07-26T07:31:20.000Z
2021-11-02T05:36:06.000Z
Когда Павел учился в школе, он запоминал таблицу умножения прямоугольными блоками. Для тренировок ему бы очень пригодилась программа, которая показывала бы блок таблицы умножения. Напишите программу, на вход которой даются четыре числа a, b, c и d, каждое в своей строке. Программа должна вывести фрагмент таблицы умн...
35.892857
96
0.710448
171
1,005
4.19883
0.561404
0.011142
0.019499
0.022284
0.069638
0.069638
0
0
0
0
0
0.006039
0.176119
1,005
27
97
37.222222
0.85628
0.024876
0
0.090909
0
0
0.01227
0
0
0
0
0
0
0
null
null
0
0
null
null
0.227273
0
0
0
null
0
0
0
0
0
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
11d35b2a3818e56256719e22a162cee1c6c60216
3,353
py
Python
rl/buffer.py
zharoldr/KDMA
b64301abbefb06585b5aa6fb76dce28f1f5bf94a
[ "MIT" ]
8
2021-03-10T12:40:59.000Z
2022-01-18T15:48:35.000Z
rl/buffer.py
zharoldr/KDMA
b64301abbefb06585b5aa6fb76dce28f1f5bf94a
[ "MIT" ]
9
2021-04-01T14:42:59.000Z
2022-03-21T17:24:38.000Z
rl/buffer.py
zharoldr/KDMA
b64301abbefb06585b5aa6fb76dce28f1f5bf94a
[ "MIT" ]
2
2022-02-05T18:44:48.000Z
2022-02-22T04:17:27.000Z
import torch from abc import ABCMeta, abstractmethod from typing import Iterable, Sequence, Mapping, Optional import numpy class Buffer(metaclass=ABCMeta): def __init__(self, keys: Iterable[str], *, capacity: Optional[int] = None, batch_size: int = None, shuffle: bool = Tru...
28.415254
140
0.580674
410
3,353
4.485366
0.195122
0.078303
0.056552
0.030451
0.189777
0.134856
0.134856
0.095704
0.095704
0.05329
0
0.006468
0.308381
3,353
117
141
28.65812
0.786546
0
0
0.305263
0
0
0.002088
0
0
0
0
0
0
1
0.210526
false
0
0.042105
0.052632
0.378947
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
11d503b44d2712db1bd32d78d3cf4b6147ffc13d
4,898
py
Python
src/python/codebay/l2tpserver/rdfdumper.py
nakedible/vpnease-l2tp
0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c
[ "WTFPL" ]
5
2015-04-16T08:36:17.000Z
2017-05-12T17:20:12.000Z
src/python/codebay/l2tpserver/rdfdumper.py
nakedible/vpnease-l2tp
0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c
[ "WTFPL" ]
null
null
null
src/python/codebay/l2tpserver/rdfdumper.py
nakedible/vpnease-l2tp
0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c
[ "WTFPL" ]
4
2015-03-19T14:39:51.000Z
2019-01-23T08:22:55.000Z
"""Semi-generic RDF dumper. Can dump DAGs starting from arbitrary RDF node. Optimized to 'pretty print' l2tpserver RDF data: shortens common RDF, XSD, Codebay types and l2tpserver specific prefixes to more readable form. Usage: instantiate RdfDumper, call dump_resource() from the instance. Don't call dump_resource ...
35.23741
139
0.538383
574
4,898
4.445993
0.290941
0.038793
0.047022
0.025078
0.220611
0.149687
0.149687
0.149687
0.149687
0.149687
0
0.008162
0.324622
4,898
138
140
35.492754
0.763301
0.076562
0
0.152174
0
0
0.03615
0
0
0
0
0
0
0
null
null
0.01087
0.032609
null
null
0.01087
0
0
0
null
0
0
0
0
0
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
11d55f24d181085dd5e06370e77cd6409d110b29
1,538
py
Python
app/blixt/wave.py
blixt/multifarce
2c79315930f587af1a042ed315b701da25c494ef
[ "Apache-2.0" ]
6
2015-01-23T20:09:49.000Z
2015-01-25T12:28:16.000Z
app/blixt/wave.py
blixt/multifarce
2c79315930f587af1a042ed315b701da25c494ef
[ "Apache-2.0" ]
null
null
null
app/blixt/wave.py
blixt/multifarce
2c79315930f587af1a042ed315b701da25c494ef
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2009 Andreas Blixt <andreas@blixt.org> # License: MIT license <http://www.opensource.org/licenses/mit-license.php> # """Utility module for the Google Wave API. """ import waveapi.document def append_text(document, text): """Adds text to the specified document and returns the range of the text. ...
32.723404
77
0.66645
198
1,538
5.161616
0.449495
0.046967
0
0
0
0
0
0
0
0
0
0.006838
0.239272
1,538
46
78
33.434783
0.866667
0.461638
0
0
0
0
0.002601
0
0
0
0
0.021739
0
1
0.15
false
0
0.05
0
0.3
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
11dbfa7d95e134c9e6c9812097d2a4bee8f6d3ca
13,593
py
Python
lib/googlecloudsdk/third_party/apis/iamcredentials/v1/iamcredentials_v1_messages.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/googlecloudsdk/third_party/apis/iamcredentials/v1/iamcredentials_v1_messages.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/iamcredentials/v1/iamcredentials_v1_messages.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
"""Generated message classes for iamcredentials version v1. Creates short-lived credentials for impersonating IAM service accounts. To enable this API, you must enable the IAM API (iam.googleapis.com). """ # NOTE: This file is autogenerated and should not be edited by hand. from __future__ import absolute_import fro...
40.576119
89
0.740308
1,718
13,593
5.790454
0.197905
0.051568
0.020909
0.020507
0.477885
0.477885
0.457278
0.453559
0.424809
0.424809
0
0.009531
0.189509
13,593
334
90
40.697605
0.893437
0.727654
0
0.134146
1
0
0.048122
0.021422
0
0
0
0
0
1
0
false
0
0.036585
0
0.670732
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
11e21ddb405ca06221391a957569546c5fa06797
2,027
py
Python
samples/update_transfer_config.py
victor141516/python-bigquery-datatransfer
b95441140f7c86dd3e833aef0532badd6280ef48
[ "Apache-2.0" ]
null
null
null
samples/update_transfer_config.py
victor141516/python-bigquery-datatransfer
b95441140f7c86dd3e833aef0532badd6280ef48
[ "Apache-2.0" ]
null
null
null
samples/update_transfer_config.py
victor141516/python-bigquery-datatransfer
b95441140f7c86dd3e833aef0532badd6280ef48
[ "Apache-2.0" ]
1
2020-10-04T10:28:17.000Z
2020-10-04T10:28:17.000Z
# -*- coding: utf-8 -*- # # Copyright 2020 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
35.561404
104
0.75333
265
2,027
5.573585
0.483019
0.161137
0.073121
0.050779
0.072444
0.05281
0.05281
0
0
0
0
0.005297
0.161815
2,027
56
105
36.196429
0.864038
0.538234
0
0
0
0
0.122942
0.060373
0
0
0
0.017857
0
1
0.105263
false
0
0.105263
0
0.263158
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
11eaf9f065a8edfb79e917fd2c0080f6337e14ac
173
py
Python
Chapter02/example004.py
JeffreyAsuncion/Packt_DataStructuresAndAlgorithms
dfbe1c815fb8392a3d61cefe3803d8c5b740c616
[ "MIT" ]
null
null
null
Chapter02/example004.py
JeffreyAsuncion/Packt_DataStructuresAndAlgorithms
dfbe1c815fb8392a3d61cefe3803d8c5b740c616
[ "MIT" ]
null
null
null
Chapter02/example004.py
JeffreyAsuncion/Packt_DataStructuresAndAlgorithms
dfbe1c815fb8392a3d61cefe3803d8c5b740c616
[ "MIT" ]
null
null
null
# Membership, identity, and logical operations x=[1,2,3] y=[1,2,3] print(x==y) #test equivalance print(x is y) #test object identity x=y # assignment print(x is y)
15.727273
46
0.67052
32
173
3.625
0.5
0.155172
0.051724
0.155172
0
0
0
0
0
0
0
0.042553
0.184971
173
11
47
15.727273
0.780142
0.526012
0
0.333333
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
11f936c65cbe427defad3250cdf3c9a4385ea5a9
1,943
py
Python
api/autogenerators/rtfm.py
SabunMacTavish/CTF-Platform
78d9659e6066c55d33e3f39248e5a2a9f3c577cf
[ "MIT" ]
4
2016-03-15T14:29:13.000Z
2019-03-26T09:39:19.000Z
api/autogenerators/rtfm.py
SabunMacTavish/CTF-Platform
78d9659e6066c55d33e3f39248e5a2a9f3c577cf
[ "MIT" ]
null
null
null
api/autogenerators/rtfm.py
SabunMacTavish/CTF-Platform
78d9659e6066c55d33e3f39248e5a2a9f3c577cf
[ "MIT" ]
3
2016-03-15T14:28:32.000Z
2019-01-28T06:05:56.000Z
__author__ = "Collin Petty" __copyright__ = "Carnegie Mellon University" __license__ = "MIT" __maintainer__ = ["Collin Petty", "Peter Chapman"] __credits__ = ["David Brumely", "Collin Petty", "Peter Chapman"] __email__ = ["collin@cmu.edu", "peter@cmu.edu"] __status__ = "Production" import tempfile import os import rand...
35.327273
119
0.632012
268
1,943
4.406716
0.473881
0.020322
0.03387
0.027942
0.099069
0.087214
0.087214
0.087214
0.087214
0.087214
0
0.012346
0.207926
1,943
55
120
35.327273
0.755036
0
0
0
0
0.043478
0.295782
0.049383
0
0
0
0
0
0
null
null
0
0.086957
null
null
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
11fd1a89fd286d6182e281bb4abed54ad211c579
1,002
py
Python
insta/urls.py
tonyguthiga/instagram
4d49e8c8cf0efb8ac875d2986956ddcce756864b
[ "Unlicense" ]
null
null
null
insta/urls.py
tonyguthiga/instagram
4d49e8c8cf0efb8ac875d2986956ddcce756864b
[ "Unlicense" ]
null
null
null
insta/urls.py
tonyguthiga/instagram
4d49e8c8cf0efb8ac875d2986956ddcce756864b
[ "Unlicense" ]
null
null
null
from . import views from .views import PostListView, PostDetailView, PostCreateView, PostUpdateView, PostDeleteView, LikeView from django.urls import path from django.conf import settings from django.conf.urls.static import static from django.conf.urls import url urlpatterns = [ path('', PostListView.as_view(), na...
50.1
105
0.708583
130
1,002
5.361538
0.330769
0.043042
0.071736
0.080344
0
0
0
0
0
0
0
0
0.110778
1,002
20
106
50.1
0.782267
0
0
0
0
0
0.207378
0.041874
0
0
0
0
0
1
0
false
0
0.315789
0
0.315789
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
ee935fa933af505ab8ec2e3f90a794d8f41a320c
555
py
Python
bluebottle/segments/migrations/0008_auto_20211122_1522.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
null
null
null
bluebottle/segments/migrations/0008_auto_20211122_1522.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
null
null
null
bluebottle/segments/migrations/0008_auto_20211122_1522.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.2.24 on 2021-11-22 14:22 from django.db import migrations from django.template.defaultfilters import slugify def set_segment_slugs(apps, schema_editor): Segment = apps.get_model('segments', 'Segment') for segment in Segment.objects.all(): segment.slug = slugify(segment.name) ...
24.130435
74
0.699099
67
555
5.671642
0.61194
0.052632
0.078947
0
0
0
0
0
0
0
0
0.044743
0.194595
555
22
75
25.227273
0.805369
0.082883
0
0
1
0
0.078895
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1