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
9ce720919b9f904e57fa538a3db7657a3599f63d
136
py
Python
pokemongo_bot/cell_workers/migrations/shadowban_log.py
timgates42/PokemonGo-Bot
5e80f20760f32478a84a8f0ced7ca24cdf41fe03
[ "MIT" ]
5,362
2016-07-21T02:38:46.000Z
2022-03-23T13:34:51.000Z
pokemongo_bot/cell_workers/migrations/shadowban_log.py
timgates42/PokemonGo-Bot
5e80f20760f32478a84a8f0ced7ca24cdf41fe03
[ "MIT" ]
5,897
2016-07-21T05:05:49.000Z
2022-03-17T09:21:35.000Z
pokemongo_bot/cell_workers/migrations/shadowban_log.py
timgates42/PokemonGo-Bot
5e80f20760f32478a84a8f0ced7ca24cdf41fe03
[ "MIT" ]
3,379
2016-07-21T02:38:48.000Z
2022-03-30T02:46:57.000Z
from yoyo import step step( "CREATE TABLE IF NOT EXISTS shadowban_log (username text, dated datetime DEFAULT CURRENT_TIMESTAMP)" )
22.666667
104
0.779412
19
136
5.473684
0.947368
0
0
0
0
0
0
0
0
0
0
0
0.169118
136
5
105
27.2
0.920354
0
0
0
0
0
0.720588
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
9ce9127e33056554245ec6ea9cf2a6b7954bef54
8,576
py
Python
test/unit/test_disco_elb.py
Angakkuq/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
null
null
null
test/unit/test_disco_elb.py
Angakkuq/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
4
2016-03-22T17:04:04.000Z
2016-03-23T18:03:45.000Z
test/unit/test_disco_elb.py
Angakkuit/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
null
null
null
"""Tests of disco_elb""" from unittest import TestCase from mock import MagicMock from moto import mock_elb from disco_aws_automation import DiscoELB TEST_ENV_NAME = 'unittestenv' TEST_HOSTCLASS = 'mhcunit' TEST_VPC_ID = 'vpc-56e10e3d' # the hard coded VPC Id that moto will always return TEST_DOMAIN_NAME = 'test.exam...
39.33945
105
0.645872
991
8,576
5.262361
0.159435
0.042953
0.062128
0.042953
0.644295
0.616683
0.60441
0.553595
0.524449
0.511793
0
0.01256
0.248018
8,576
217
106
39.520737
0.796092
0.079524
0
0.546512
0
0
0.121364
0.03268
0
0
0
0
0.093023
1
0.110465
false
0
0.023256
0.005814
0.151163
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9ce978cb516c10830f3bfe23b46648f71d09abc3
517
py
Python
Flask/6. Profile Pages/config.py
AndresAlb/Tutorials
d23800806f7286c405c45745f5e5a0bb7d8c954e
[ "MIT" ]
null
null
null
Flask/6. Profile Pages/config.py
AndresAlb/Tutorials
d23800806f7286c405c45745f5e5a0bb7d8c954e
[ "MIT" ]
null
null
null
Flask/6. Profile Pages/config.py
AndresAlb/Tutorials
d23800806f7286c405c45745f5e5a0bb7d8c954e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jul 15 23:54:49 2020 @author: Andres Angeles Albores """ import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): # Prevent CSRF attack on web forms SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess' # Define th...
25.85
71
0.682785
75
517
4.56
0.746667
0.052632
0.070175
0
0
0
0
0
0
0
0
0.030733
0.181818
517
20
72
25.85
0.777778
0.321083
0
0
0
0
0.169591
0
0
0
0
0
0
1
0
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
9ce9bb2a8ae8eb5792bff17cb6dc037088a6cdd3
2,765
py
Python
colorselect.py
aimuch/CarND-Advanced-Lane-Lines
d955d31e4f8d72b2651dd9ce1e58d5be64e9004f
[ "MIT" ]
1
2020-12-17T11:09:19.000Z
2020-12-17T11:09:19.000Z
colorselect.py
aimuch/CarND-Advanced-Lane-Lines
d955d31e4f8d72b2651dd9ce1e58d5be64e9004f
[ "MIT" ]
null
null
null
colorselect.py
aimuch/CarND-Advanced-Lane-Lines
d955d31e4f8d72b2651dd9ce1e58d5be64e9004f
[ "MIT" ]
1
2020-12-17T11:09:20.000Z
2020-12-17T11:09:20.000Z
# coding: utf-8 # In[2]: import cv2 import numpy as np import sys # callback function def nothing(x): pass # import image inputImageName = 'test_images/test1.jpg' try: img = cv2.imread(inputImageName) # BRG WindowName = 'Color Select V1.0' cv2.namedWindow(WindowName) cv2.imshow(WindowName,i...
30.054348
82
0.713562
375
2,765
5.082667
0.293333
0.057712
0.084995
0.066107
0.292235
0.283841
0.15425
0.15425
0
0
0
0.066225
0.180832
2,765
91
83
30.384615
0.775276
0.05859
0
0
0
0
0.058687
0.008108
0
0
0.001544
0
0
1
0.032258
false
0.016129
0.048387
0
0.112903
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9ceab29943b8310e28f9a2de61cf44e20bdc7625
1,918
py
Python
src/deploy/tasks.py
bluesnailstw/flamingos
e13bf4ac4caa5fa50e45d7285877c64218c49723
[ "Apache-2.0" ]
null
null
null
src/deploy/tasks.py
bluesnailstw/flamingos
e13bf4ac4caa5fa50e45d7285877c64218c49723
[ "Apache-2.0" ]
null
null
null
src/deploy/tasks.py
bluesnailstw/flamingos
e13bf4ac4caa5fa50e45d7285877c64218c49723
[ "Apache-2.0" ]
null
null
null
from salt.salt_api import Pepper from asset.models import Host, HostGroup from deploy.models import Task, TASK_STATUS, History from django.conf import settings from users.models import User from pillars.models import Vars, Configuration from redis import StrictRedis def get_all_hosts(task: Task): hosts = set() ...
36.188679
95
0.642857
250
1,918
4.828
0.388
0.039768
0.018227
0.024855
0
0
0
0
0
0
0
0.021769
0.233577
1,918
52
96
36.884615
0.79932
0.038582
0
0
0
0
0.062975
0
0
0
0
0
0
1
0.065217
false
0
0.152174
0
0.282609
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
0
0
0
0
0
0
0
0
1
0
9cec9b5ef5691da4f654da65ea5fb44ee14018a8
63
py
Python
certifi/__init__.py
andrew-aladev/certifi-shim
efbda777bfbdcf0676a789b15010b43a54e4da1a
[ "CC0-1.0" ]
null
null
null
certifi/__init__.py
andrew-aladev/certifi-shim
efbda777bfbdcf0676a789b15010b43a54e4da1a
[ "CC0-1.0" ]
null
null
null
certifi/__init__.py
andrew-aladev/certifi-shim
efbda777bfbdcf0676a789b15010b43a54e4da1a
[ "CC0-1.0" ]
null
null
null
from certifi.core import contents, where __version__ = "9999"
15.75
40
0.777778
8
63
5.625
1
0
0
0
0
0
0
0
0
0
0
0.074074
0.142857
63
3
41
21
0.759259
0
0
0
0
0
0.063492
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
9cecd887cd2d7bcda8c9d8ae4eceae2fd8fa82da
547
py
Python
PythonDAdata/3358OS_07_Code/code7/spectrum.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
1
2020-02-22T18:55:54.000Z
2020-02-22T18:55:54.000Z
PythonDAdata/3358OS_07_Code/code7/spectrum.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
null
null
null
PythonDAdata/3358OS_07_Code/code7/spectrum.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
1
2020-02-22T18:55:57.000Z
2020-02-22T18:55:57.000Z
import numpy as np import statsmodels.api as sm import matplotlib.pyplot as plt from scipy.fftpack import rfft from scipy.fftpack import fftshift data_loader = sm.datasets.sunspots.load_pandas() sunspots = data_loader.data["SUNACTIVITY"].values transformed = fftshift(rfft(sunspots)) plt.subplot(311) plt.plot(sunspot...
23.782609
55
0.776965
81
547
5.209877
0.481481
0.07109
0.085308
0.104265
0
0
0
0
0
0
0
0.020121
0.091408
547
22
56
24.863636
0.828974
0
0
0.157895
0
0
0.085923
0
0
0
0
0
0
1
0
false
0
0.263158
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9ceebb2258c9e0ad6b3d981ef9099fdb41bb09c6
4,170
py
Python
task02/laughter_classification/sspnet_data_sampler.py
rebryk/SPbAU-Speech-Recognition
8b1993d17d223f507f4e80154823a075e713ee52
[ "MIT" ]
1
2019-04-22T14:10:46.000Z
2019-04-22T14:10:46.000Z
task02/laughter_classification/sspnet_data_sampler.py
rebryk/SPbAU-Speech-Recognition
8b1993d17d223f507f4e80154823a075e713ee52
[ "MIT" ]
15
2020-01-28T22:25:14.000Z
2022-03-11T23:24:04.000Z
task02/laughter_classification/sspnet_data_sampler.py
rebryk/SPbAU-Speech-Recognition
8b1993d17d223f507f4e80154823a075e713ee52
[ "MIT" ]
1
2019-04-22T14:01:21.000Z
2019-04-22T14:01:21.000Z
import os from os.path import join import numpy as np import pandas as pd import scipy.io.wavfile as wav from laughter_classification.utils import chunks, in_any, interv_to_range, get_sname from laughter_prediction.sample_audio import sample_wav_by_time, sample_by_frames class SSPNetDataSampler: """ Class f...
37.567568
117
0.652518
583
4,170
4.445969
0.291595
0.030864
0.023148
0.028935
0.061728
0.047068
0.029321
0.029321
0.029321
0.029321
0
0.007952
0.246043
4,170
110
118
37.909091
0.816476
0.133573
0
0.085714
0
0
0.063378
0.006022
0
0
0
0
0
1
0.114286
false
0
0.1
0.014286
0.314286
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9cf06799512c6201d366260a7eba4f0f1f5ed5fa
3,292
py
Python
cvpods/checkpoint/utils.py
tonysy/cvpods
e322d7842ca0e34b1ef6237ea6d350633efc793a
[ "Apache-2.0" ]
758
2021-03-11T08:14:26.000Z
2022-03-31T07:24:13.000Z
cvpods/checkpoint/utils.py
tonysy/cvpods
e322d7842ca0e34b1ef6237ea6d350633efc793a
[ "Apache-2.0" ]
58
2020-12-04T19:47:10.000Z
2022-03-30T06:52:13.000Z
cvpods/checkpoint/utils.py
tonysy/cvpods
e322d7842ca0e34b1ef6237ea6d350633efc793a
[ "Apache-2.0" ]
110
2021-03-18T01:59:31.000Z
2022-03-18T21:26:56.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import collections from collections import defaultdict from termcolor import colored def get_missing_parameters_message(keys: list): """ Get a logging-friendly message to report parameter names (keys) that are in ...
29.132743
79
0.600547
441
3,292
4.403628
0.287982
0.018023
0.020597
0.026777
0.317714
0.289907
0.279094
0.249228
0.249228
0.167868
0
0.003438
0.293135
3,292
112
80
29.392857
0.831113
0.395504
0
0.235294
0
0
0.074339
0
0
0
0
0
0
1
0.098039
false
0.019608
0.058824
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9cf240d5a20da7ecb3612e9bcfa120ca7475b3f0
1,653
py
Python
tests/demtools/scripts/test_input_path.py
uw-cryo/dem-tools
c99a74b3361bca7d1733e9699c3cedd25a5b5948
[ "MIT" ]
null
null
null
tests/demtools/scripts/test_input_path.py
uw-cryo/dem-tools
c99a74b3361bca7d1733e9699c3cedd25a5b5948
[ "MIT" ]
3
2019-09-30T19:40:42.000Z
2019-10-27T02:23:58.000Z
tests/demtools/scripts/test_input_path.py
jomey/dem-tools
c99a74b3361bca7d1733e9699c3cedd25a5b5948
[ "MIT" ]
1
2020-02-07T07:15:13.000Z
2020-02-07T07:15:13.000Z
import argparse from pathlib import Path import pytest from demtools.scripts import InputPath @pytest.fixture(scope='module') def tmp_test_file(tmp_input_path): file = Path(tmp_input_path.join('test_input_file.txt')) print(str(file)) file.touch(mode=0o644, exist_ok=True) return file @pytest.fixtur...
28.016949
80
0.687235
220
1,653
4.868182
0.227273
0.117647
0.102708
0.052288
0.670401
0.582633
0.554622
0.436975
0.345472
0.345472
0
0.013921
0.217786
1,653
58
81
28.5
0.814385
0
0
0.255814
0
0
0.07925
0.013914
0
0
0
0
0.046512
1
0.209302
false
0
0.093023
0.046512
0.395349
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9cf34c2b4493cdfb7aff2d968769acb0ab4ee469
578
py
Python
song_generator/tests.py
gorbulus/song_generator
ba527e7a0151177f794995d0d79fdeffff45b7fb
[ "MIT" ]
null
null
null
song_generator/tests.py
gorbulus/song_generator
ba527e7a0151177f794995d0d79fdeffff45b7fb
[ "MIT" ]
null
null
null
song_generator/tests.py
gorbulus/song_generator
ba527e7a0151177f794995d0d79fdeffff45b7fb
[ "MIT" ]
null
null
null
''' # tests.py # William Ponton # 5.9.21 # Tests for the song_generator project ''' # import pacagkes import song_generator.generator as gen import song_generator.song_data as s_data import song_generator.string_literals as s_lit from song_generator.SongClass import Song # Song class # test output from each import fil...
26.272727
54
0.743945
88
578
4.693182
0.431818
0.157385
0.138015
0.09201
0
0
0
0
0
0
0
0.008032
0.138408
578
22
55
26.272727
0.821285
0.237024
0
0
0
0
0.210648
0
0
0
0
0
0
1
0.076923
true
0
0.384615
0
0.538462
0.307692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
9cf36044a78da6b44f50ef7880b953422fdb98f0
360
py
Python
src/python/WMCore/WMBS/Oracle/Jobs/LoadFromIDWithWorkflow.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
src/python/WMCore/WMBS/Oracle/Jobs/LoadFromIDWithWorkflow.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
src/python/WMCore/WMBS/Oracle/Jobs/LoadFromIDWithWorkflow.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python """ _LoadFromIDWithWorkflow_ Oracle implementation of Jobs.LoadFromIDWithWorkflow. """ from WMCore.WMBS.MySQL.Jobs.LoadFromIDWithWorkflow import LoadFromIDWithWorkflow as MySQLLoadFromIDWithWorkflow class LoadFromIDWithWorkflow(MySQLLoadFromIDWithWorkflow): """ Load jobs by ID but inclu...
21.176471
111
0.788889
33
360
8.545455
0.787879
0.184397
0
0
0
0
0
0
0
0
0
0
0.138889
360
16
112
22.5
0.909677
0.405556
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
4
9cf4544311c2e0722d765a266da005b76bf3bdb4
11,367
py
Python
Assignment/Pytorch_improvements/ex2_pytorch_grid_search.py
EgonFerri/Ex2_NN_backpropr
3b9426bcda279188cf55908090da51845c9c2ca6
[ "MIT" ]
null
null
null
Assignment/Pytorch_improvements/ex2_pytorch_grid_search.py
EgonFerri/Ex2_NN_backpropr
3b9426bcda279188cf55908090da51845c9c2ca6
[ "MIT" ]
null
null
null
Assignment/Pytorch_improvements/ex2_pytorch_grid_search.py
EgonFerri/Ex2_NN_backpropr
3b9426bcda279188cf55908090da51845c9c2ca6
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import torchvision import torchvision.transforms as transforms import numpy as np import pandas as pd from sklearn.model_selection import ParameterGrid from tqdm import tqdm_notebook as tqdm def kaiming_init(m): '''Initilize weights (with kaiming ini...
38.402027
127
0.590833
1,360
11,367
4.783824
0.227206
0.015217
0.015063
0.003074
0.286658
0.235629
0.188749
0.150015
0.112512
0.112512
0
0.014098
0.251166
11,367
295
128
38.532203
0.750235
0.259083
0
0.193717
0
0
0.084035
0.008175
0
0
0
0
0
1
0.031414
false
0
0.04712
0
0.104712
0.04712
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9cf472f4ca4830340edb61545a9592eaf91f9937
506
py
Python
quanttrade/test/SmaTest.py
dingmingliu/quanttrade
2d9eaf9f2339a51458ef1e130c60b0132d9e57bb
[ "Apache-2.0" ]
null
null
null
quanttrade/test/SmaTest.py
dingmingliu/quanttrade
2d9eaf9f2339a51458ef1e130c60b0132d9e57bb
[ "Apache-2.0" ]
null
null
null
quanttrade/test/SmaTest.py
dingmingliu/quanttrade
2d9eaf9f2339a51458ef1e130c60b0132d9e57bb
[ "Apache-2.0" ]
1
2021-10-02T12:22:30.000Z
2021-10-02T12:22:30.000Z
__author__ = 'tyler' import bt #%pylab inline # download data data = bt.get('aapl,msft', start='2013-01-01') data.head() import pandas as pd # a rolling mean is a moving average, right? sma = pd.rolling_mean(data, 50) s = bt.Strategy('above50sma', [ bt.algos.SelectWhere(data > sma), ...
25.3
66
0.58498
71
506
4.098592
0.633803
0.072165
0
0
0
0
0
0
0
0
0
0.033058
0.282609
506
19
67
26.631579
0.768595
0.227273
0
0
0
0
0.092896
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9cf5db2bf88364cfebbc87d0de7355ee48538556
778
py
Python
mainsite/views.py
Anthlay/mblog
2f19f7eba6c1b77f829c88373f9ecf94de57024a
[ "Apache-2.0" ]
null
null
null
mainsite/views.py
Anthlay/mblog
2f19f7eba6c1b77f829c88373f9ecf94de57024a
[ "Apache-2.0" ]
4
2020-02-12T01:14:04.000Z
2021-06-10T21:48:09.000Z
mainsite/views.py
Anthlay/mblog
2f19f7eba6c1b77f829c88373f9ecf94de57024a
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from django.shortcuts import render, redirect from django.http import HttpResponse from .models import Post # Create your views here def homepage(request): posts = Post.objects.all() post_lists = list() for count,post in enumerate(posts): posts = Post.objects.all() ...
33.826087
72
0.650386
99
778
5.070707
0.464646
0.071713
0.063745
0.075697
0
0
0
0
0
0
0
0
0.201799
778
23
73
33.826087
0.808374
0.228792
0
0.111111
0
0
0.033557
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9cf63d6fac7165c02677980da20f53fa501da497
12,911
py
Python
shellshock_scanner.py
CapTheFlag/shellshock-scanner
cb309ae4e4323613e05458ab3c3a7f9483c86a81
[ "MIT" ]
25
2015-01-05T11:59:25.000Z
2022-01-27T13:27:15.000Z
shellshock_scanner.py
surajsinghbisht054/shellshock-scanner
cb309ae4e4323613e05458ab3c3a7f9483c86a81
[ "MIT" ]
null
null
null
shellshock_scanner.py
surajsinghbisht054/shellshock-scanner
cb309ae4e4323613e05458ab3c3a7f9483c86a81
[ "MIT" ]
15
2015-01-06T07:35:53.000Z
2021-01-29T22:42:28.000Z
#!/usr/bin/env python # Author: Mario Rivas Vivar # https://twitter.com/Grifo """ Scan a list of hosts with a list of CGIs trying to exploit the ShellShock vulnerability with different methods and payloads (CVE-2014-6271, CVE-2014-6278) """ import httplib,sys,time import pprint import csv import argparse from threa...
38.311573
233
0.597552
1,518
12,911
4.956522
0.170619
0.050505
0.048379
0.061005
0.454811
0.420255
0.39673
0.335327
0.31446
0.258772
0
0.01876
0.269228
12,911
336
234
38.425595
0.778696
0.048796
0
0.289855
0
0.007246
0.193105
0.00721
0
0
0
0
0
0
null
null
0
0.021739
null
null
0.057971
0
0
0
null
0
0
0
0
0
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
9cfc8c3c743996c080aad3979946e5244ed37a91
2,079
py
Python
jaraco/financial/records.py
jaraco/jaraco.financial
cb6700f6194c5bf144c0c6cf150487d89d8336c5
[ "MIT" ]
null
null
null
jaraco/financial/records.py
jaraco/jaraco.financial
cb6700f6194c5bf144c0c6cf150487d89d8336c5
[ "MIT" ]
1
2016-08-06T17:39:03.000Z
2016-08-06T17:39:03.000Z
jaraco/financial/records.py
jaraco/jaraco.financial
cb6700f6194c5bf144c0c6cf150487d89d8336c5
[ "MIT" ]
null
null
null
from __future__ import print_function import smtplib import email.mime.multipart import email.mime.text import getpass import io import codecs from path import Path from jaraco.ui import progress def email_message(body_text, subject=None): SMTP_SERVER = 'pod51011.outlook.com' SMTP_PORT = 587 SMTP_USERNA...
26.653846
72
0.68254
265
2,079
5.184906
0.418868
0.026201
0.032751
0.027656
0
0
0
0
0
0
0
0.01863
0.199615
2,079
77
73
27
0.807091
0.185666
0
0
0
0
0.128793
0.019814
0
0
0
0
0
1
0.085106
false
0.085106
0.191489
0
0.319149
0.106383
0
0
0
null
0
0
0
0
0
0
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
9cfcd2e79df18ef7cc3ee64b85571df574a041c2
96
py
Python
python/testData/regexp/notEmptyGroup.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/regexp/notEmptyGroup.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/regexp/notEmptyGroup.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
import re some_re = re.compile(r""" (?P<abc>abc) (?P<name> (?(abc)yes|noo) ) """, re.VERBOSE)
12
25
0.572917
17
96
3.176471
0.647059
0
0
0
0
0
0
0
0
0
0
0
0.135417
96
8
26
12
0.650602
0
0
0
0
0
0.453608
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9cfd44b4f9b3f25b6ece98512e0b6a0746c58433
2,680
py
Python
src/python/pants/backend/codegen/thrift/apache/java/rules.py
wimax-grapl/pants
0aabd417a772ea4e39999c4415c67db40de679a4
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/codegen/thrift/apache/java/rules.py
wimax-grapl/pants
0aabd417a772ea4e39999c4415c67db40de679a4
[ "Apache-2.0" ]
28
2021-12-27T15:53:46.000Z
2022-03-23T11:01:42.000Z
src/python/pants/backend/codegen/thrift/apache/java/rules.py
wimax-grapl/pants
0aabd417a772ea4e39999c4415c67db40de679a4
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.backend.codegen.thrift.apache.java import subsystem from pants.backend.codegen.thrift.apache.java.subsystem import ApacheThriftJavaSubsystem from pants.backend.codegen.thrift.ap...
34.805195
96
0.776493
259
2,680
7.899614
0.332046
0.057185
0.043988
0.044966
0.069404
0.05523
0.038123
0
0
0
0
0.002646
0.153731
2,680
76
97
35.263158
0.899471
0.047015
0
0.032787
0
0
0.013328
0
0
0
0
0
0
1
0.016393
false
0
0.213115
0.016393
0.360656
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9cfead09c9dd64dc64989c8b12c4c6d06757ef47
10,427
py
Python
bughunter/action/ifels.py
ChrisTimperley/BugHunter
090201f491c50fff5a36507ea6861142570d18b9
[ "MIT" ]
4
2017-03-01T05:10:01.000Z
2021-12-14T15:18:01.000Z
bughunter/action/ifels.py
ChrisTimperley/BugCollector
090201f491c50fff5a36507ea6861142570d18b9
[ "MIT" ]
4
2016-10-16T22:57:17.000Z
2017-01-12T21:39:45.000Z
bughunter/action/ifels.py
ChrisTimperley/BugCollector
090201f491c50fff5a36507ea6861142570d18b9
[ "MIT" ]
null
null
null
from bughunter.action.core import * from bughunter.action.basic import ModifyStatement, InsertStatement, DeleteStatement import cgum.statement ##### # GROUP: If-Statement-Related ##### class WrapStatement(ReplaceRepairAction): @staticmethod def from_json(jsn, before, after): return ReplaceRepairAction....
37.239286
92
0.609667
1,302
10,427
4.823349
0.096006
0.020701
0.044586
0.026752
0.659713
0.615127
0.586783
0.56258
0.536306
0.499841
0
0.000658
0.271411
10,427
279
93
37.37276
0.825984
0.111441
0
0.557214
0
0
0.027109
0
0
0
0
0
0.004975
1
0.199005
false
0
0.014925
0.154229
0.412935
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
9cfeca7d709f2e090e6854d324dfeda0011d1640
11,124
py
Python
hana_automl/preprocess/preprocessor.py
dan0nchik/SAP-HANA-AutoML
68cde80bd7fbfc751fb56062af30aec9238f9fb3
[ "MIT" ]
59
2021-01-10T18:35:38.000Z
2022-02-28T16:49:06.000Z
hana_automl/preprocess/preprocessor.py
u1810291/SAP-HANA-AutoML
06200bd1f813916fc81eb1ccb0ed0b1275e22945
[ "MIT" ]
3
2021-02-01T19:33:39.000Z
2021-06-29T08:32:33.000Z
hana_automl/preprocess/preprocessor.py
u1810291/SAP-HANA-AutoML
06200bd1f813916fc81eb1ccb0ed0b1275e22945
[ "MIT" ]
10
2021-06-18T12:35:34.000Z
2021-12-28T18:48:36.000Z
import copy import math from hana_ml import DataFrame from hana_ml.algorithms.pal.neighbors import KNNRegressor from hana_ml.algorithms.pal.preprocessing import ( Imputer, FeatureNormalizer, variance_test, ) from hana_automl.algorithms.classification.decisiontreecls import DecisionTreeCls from hana_automl....
36.834437
87
0.548993
1,149
11,124
5.165361
0.182768
0.029655
0.044819
0.072789
0.304297
0.159225
0.144903
0.117607
0.106824
0.081887
0
0.006356
0.363538
11,124
301
88
36.956811
0.831921
0.006922
0
0.216783
0
0
0.061945
0.023546
0
0
0
0
0
1
0.031469
false
0
0.083916
0
0.157343
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9cff114514a4e53b9d73b004333fbe341dfc861e
10,438
py
Python
tests/bugs/core_2251_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_2251_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_2251_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: bugs.core_2251 # title: gbak doesn't return error code # decription: # Inaccessible folder is defined here as $tmp + GUID (i.e. it 100% not yet exists). # We have to check allof kind for inaccessible file: # * .fbk when ...
58.312849
189
0.617934
1,239
10,438
4.958031
0.144471
0.050138
0.020837
0.051278
0.762657
0.762657
0.739378
0.718216
0.700147
0.693309
0
0.022374
0.229258
10,438
178
190
58.640449
0.741206
0.772658
0
0
0
0
0.780041
0.405295
0
0
0
0
0
1
0.04
false
0
0.08
0
0.12
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
9cffe20ef35dd83ae3e95a578a5a23bf44a0fc19
2,534
py
Python
cwinsdk/um/wingdi.py
Vlastbia/ctypes-windows-sdk
ccb2c7e83086840a620358507cac5c3fccc7e8af
[ "ISC" ]
null
null
null
cwinsdk/um/wingdi.py
Vlastbia/ctypes-windows-sdk
ccb2c7e83086840a620358507cac5c3fccc7e8af
[ "ISC" ]
null
null
null
cwinsdk/um/wingdi.py
Vlastbia/ctypes-windows-sdk
ccb2c7e83086840a620358507cac5c3fccc7e8af
[ "ISC" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals from ctypes import POINTER, c_int, Structure from ctypes.wintypes import LPCSTR, HANDLE, LPCWSTR, DWORD, BOOL, UINT, LPVOID, WORD, LONG, BYTE from .. import windll HDC = HANDLE HGDIOBJ = HANDLE HBITMAP = HANDLE DIB_RGB_COLORS = 0 HOR...
24.843137
119
0.741121
280
2,534
6.596429
0.360714
0.030319
0.013535
0.021657
0.030861
0.024905
0
0
0
0
0
0.018653
0.132597
2,534
101
120
25.089109
0.821656
0.003552
0
0.05
0
0.0125
0.125248
0
0
0
0.007927
0
0
1
0
false
0
0.075
0
0.175
0.0125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1400297ab0c1bbad58a3bb093a0ed2a676260382
358
py
Python
pjbank/__init__.py
pjbank/pjbank-python-sdk
ddfaab13da8a56d67b233ad1628ac9d8223b6eab
[ "MIT" ]
15
2017-08-15T17:39:56.000Z
2019-12-30T18:06:15.000Z
pjbank/__init__.py
pjbank/pjbank-python-sdk
ddfaab13da8a56d67b233ad1628ac9d8223b6eab
[ "MIT" ]
13
2017-08-29T11:03:20.000Z
2019-07-04T19:51:16.000Z
pjbank/__init__.py
pjbank/pjbank-python-sdk
ddfaab13da8a56d67b233ad1628ac9d8223b6eab
[ "MIT" ]
7
2017-08-29T05:10:43.000Z
2019-07-23T17:59:09.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ pjbank """ from pjbank.api import PJBankAPI from pjbank.contadigital import ContaDigital from pjbank.recebimentos.boleto import Boleto from pjbank.recebimentos.cartaocredito import CartaoCredito from pjbank.config import __version__ conta_digital = ContaDigital() bole...
23.866667
59
0.787709
42
358
6.595238
0.5
0.180505
0.158845
0
0
0
0
0
0
0
0
0.003145
0.111732
358
15
60
23.866667
0.867925
0.136872
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.625
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1400e05a81e61584f76a1b7de9750c733259c909
1,081
py
Python
S1/TP7/ex5.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
S1/TP7/ex5.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
S1/TP7/ex5.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
dico = {25: 4, 8: 1, 12: 2, 3: 5} print(dico) print("5 dans dico ?", 5 in dico) print("25 dans dico ?", 25 in dico) dico[9] = 1 dico[8] = 2 print(dico) del dico[25] print(dico) print("-" * 10) inventaire = {"orange": 378, "pomme": 545, "banane": 422, "poire": 269} def checkStock(): fruit = input("Entrez un fruit...
21.196078
90
0.603145
151
1,081
4.317881
0.410596
0.092025
0.059816
0.082822
0.113497
0
0
0
0
0
0
0.04557
0.269195
1,081
50
91
21.62
0.779747
0
0
0.236842
0
0
0.297872
0
0
0
0
0
0
1
0.078947
false
0
0
0
0.131579
0.236842
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14026ffd736cbe43208ce8862e478324d4c76ffc
2,176
py
Python
rampwf/hyperopt/cli/hyperopt.py
albertcthomas/ramp-workflow
aee62742314f95ebcb3f226e535ff4ad64e88024
[ "BSD-3-Clause" ]
1
2020-12-03T12:22:22.000Z
2020-12-03T12:22:22.000Z
rampwf/hyperopt/cli/hyperopt.py
martin1tab/ramp-workflow
aee62742314f95ebcb3f226e535ff4ad64e88024
[ "BSD-3-Clause" ]
null
null
null
rampwf/hyperopt/cli/hyperopt.py
martin1tab/ramp-workflow
aee62742314f95ebcb3f226e535ff4ad64e88024
[ "BSD-3-Clause" ]
null
null
null
import click from ..hyperopt import run_hyperopt CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) @click.command(context_settings=CONTEXT_SETTINGS) @click.option('--submission', default='starting_kit', show_default=True, help='The kit to hyperopt. It should be located in the ' ...
44.408163
78
0.654871
280
2,176
4.910714
0.317857
0.064
0.076364
0.096727
0.180364
0.105455
0.063273
0
0
0
0
0.003578
0.22932
2,176
48
79
45.333333
0.816339
0.01011
0
0.051282
0
0
0.419926
0.019553
0
0
0
0
0
1
0.051282
false
0
0.051282
0
0.102564
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14027a2ddc57fcac5fad84f5b3665608869fa996
3,675
py
Python
deployments/views.py
makaimc/pfisdi
45e897b374d50e2f5385f15cbf318da0e17900f7
[ "MIT" ]
2
2015-01-05T21:09:24.000Z
2015-07-31T16:52:38.000Z
deployments/views.py
makaimc/pfisdi
45e897b374d50e2f5385f15cbf318da0e17900f7
[ "MIT" ]
null
null
null
deployments/views.py
makaimc/pfisdi
45e897b374d50e2f5385f15cbf318da0e17900f7
[ "MIT" ]
null
null
null
from django.http import HttpResponseRedirect from django.template import RequestContext from django.shortcuts import render_to_response, get_object_or_404 from django.core.context_processors import csrf from django.core.urlresolvers import reverse from django.views.decorators.csrf import csrf_protect from django.contri...
37.5
78
0.668027
411
3,675
5.793187
0.245742
0.037799
0.040319
0.046199
0.392272
0.294834
0.223436
0.223436
0.148677
0.148677
0
0.003185
0.23102
3,675
97
79
37.886598
0.839349
0.005986
0
0.395062
0
0
0.103014
0
0
0
0
0
0
1
0.061728
false
0
0.160494
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1403046e6da2ce010da71e8998d42356dcbbc94e
780
py
Python
day1/if_else_statements.py
anishLearnsToCode/python-workshop-4
d34c312d17c0d4194b2a1d269b8c0e2a56a04699
[ "MIT" ]
4
2020-07-15T13:47:10.000Z
2021-09-15T20:28:50.000Z
day1/if_else_statements.py
anishLearnsToCode/python-workshop-4
d34c312d17c0d4194b2a1d269b8c0e2a56a04699
[ "MIT" ]
null
null
null
day1/if_else_statements.py
anishLearnsToCode/python-workshop-4
d34c312d17c0d4194b2a1d269b8c0e2a56a04699
[ "MIT" ]
2
2020-07-18T03:28:03.000Z
2020-11-01T00:56:02.000Z
""" If else predicate = is any logical expression if predicate: code elif predicate2: (not compulsory) code2 elif predicate3: code3 .. .. .. .. else: (not compulsory) code """ # switch statements not supported by python number = int(input()) if number > 10: print('i am in if block') print('s...
16.25
48
0.617949
105
780
4.590476
0.419048
0.136929
0.080913
0.062241
0
0
0
0
0
0
0
0.044068
0.24359
780
47
49
16.595745
0.772881
0.484615
0
0
0
0
0.411458
0
0
0
0
0
0
1
0
false
0
0
0
0
0.571429
0
0
0
null
0
0
0
0
0
0
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
140436103b07b8beaed84d7d034c0ac05623632e
35
py
Python
similarweb_scraper/__init__.py
kilobyte2007/similarweb_scraper
049f8983845b7bd7504f5841bc712e970c39be66
[ "MIT" ]
18
2019-10-19T08:07:16.000Z
2021-12-17T06:11:59.000Z
similarweb_scraper/__init__.py
kilobyte2007/similarweb_scraper
049f8983845b7bd7504f5841bc712e970c39be66
[ "MIT" ]
1
2020-02-18T19:07:38.000Z
2020-04-26T12:05:15.000Z
similarweb_scraper/__init__.py
kilobyte2007/similarweb_scraper
049f8983845b7bd7504f5841bc712e970c39be66
[ "MIT" ]
2
2020-02-18T18:44:34.000Z
2021-12-17T06:01:03.000Z
from .similarweb_scraper import *
17.5
34
0.8
4
35
6.75
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
35
1
35
35
0.9
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
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
1
0
1
0
0
0
0
5
1404d7c78ab63ab6c44fb7aef71aaac733eb3dc8
578
py
Python
install_imports.py
surajssd/kube-hunter
0157ac83ce6a735d4a431e9e3a6d4ec847aa6fc1
[ "Apache-2.0" ]
1
2019-09-25T12:31:33.000Z
2019-09-25T12:31:33.000Z
install_imports.py
surajssd/kube-hunter
0157ac83ce6a735d4a431e9e3a6d4ec847aa6fc1
[ "Apache-2.0" ]
null
null
null
install_imports.py
surajssd/kube-hunter
0157ac83ce6a735d4a431e9e3a6d4ec847aa6fc1
[ "Apache-2.0" ]
1
2020-08-17T16:05:45.000Z
2020-08-17T16:05:45.000Z
from os.path import basename import glob def get_py_files(path): for py_file in glob.glob("{}*.py".format(path)): if not py_file.endswith("__init__.py"): yield basename(py_file)[:-3] def install_static_imports(path): with open("{}__init__.py".format(path), 'w') as init_f: for pf in...
32.111111
59
0.695502
85
578
4.411765
0.435294
0.173333
0.266667
0.184
0.24
0
0
0
0
0
0
0.002037
0.150519
578
17
60
34
0.761711
0
0
0
0
0
0.205882
0.038062
0
0
0
0
0
1
0.142857
false
0
0.571429
0
0.714286
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
1405502804e6766f590b833e1213c48823a5938b
989
py
Python
muchscript/__init__.py
SblipDev/MuchScript
dc12196fc3bafb1e7520f1390222c585e056d9d9
[ "MIT" ]
7
2021-12-16T05:00:12.000Z
2021-12-19T17:10:44.000Z
muchscript/__init__.py
shaurya-blip/MuchScript
ce30b8c3f5a80ea73588f76ef4e4cef3c014bf63
[ "MIT" ]
null
null
null
muchscript/__init__.py
shaurya-blip/MuchScript
ce30b8c3f5a80ea73588f76ef4e4cef3c014bf63
[ "MIT" ]
null
null
null
''' ░░░░░░░░░▄░░░░░░░░░░░░░░▄░░░░ ░░░░░░░░▌▒█░░░░░░░░░░░▄▀▒▌░░░ ░░░░░░░░▌▒▒█░░░░░░░░▄▀▒▒▒▐░░░ ░░░░░░░▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐░░░ ░░░░░▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐░░░ ░░░▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌░░░ ░░▐▒▒▒▄▄▒▒▒▒░░░▒▒▒▒▒▒▒▀▄▒▒▌░░ ░░▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐░░ ░▐░░░▒▒▒▒▒▒▒▒▌██▀▒▒░░░▒▒▒▀▄▌░ ░▌░▒▄██▄▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒▌░ ▀▒▀▐▄█▄█▌▄░▀▒...
24.121951
58
0.325581
86
989
9.825581
0.825581
0.004734
0.007101
0
0
0
0
0
0
0
0
0.02854
0.078868
989
40
59
24.725
0.294182
0.734075
0
0
0
0
0.253968
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
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1406030bc96045cc5ac86ac183e1b7807a173011
1,802
py
Python
blend2bam/blender_script_common.py
Clockwork-Muse/blend2bam
6680bc815b2c6dd1359949b7bcbe52a55de7301b
[ "MIT" ]
41
2019-11-14T07:42:37.000Z
2022-02-21T13:22:02.000Z
blend2bam/blender_script_common.py
Clockwork-Muse/blend2bam
6680bc815b2c6dd1359949b7bcbe52a55de7301b
[ "MIT" ]
58
2019-04-22T14:53:04.000Z
2022-03-15T10:04:36.000Z
blend2bam/blender_script_common.py
Clockwork-Muse/blend2bam
6680bc815b2c6dd1359949b7bcbe52a55de7301b
[ "MIT" ]
17
2019-08-24T13:59:01.000Z
2022-02-16T15:47:18.000Z
import json import os import sys import bpy #pylint: disable=import-error def convert_files(convertfn, outputext): args = sys.argv[sys.argv.index('--')+1:] #print(args) settings_fname, srcroot, dstdir, blendfiles = args[0], args[1], args[2], args[3:] if not srcroot.endswith(os.sep): srcroot ...
29.064516
105
0.602109
223
1,802
4.780269
0.38565
0.018762
0.036585
0
0
0
0
0
0
0
0
0.011477
0.274695
1,802
61
106
29.540984
0.804132
0.036626
0
0.065217
0
0
0.087132
0
0
0
0
0
0
1
0.065217
false
0.021739
0.108696
0
0.195652
0.152174
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1406cc74764fb413f8c4e2e6fa7df223ab8a97a3
4,191
py
Python
traffic_control/tests/test_owner_api.py
City-of-Helsinki/city-infrastructure-platform
c14513a9e54405412085f1047f91ec58b263eac0
[ "CC0-1.0" ]
2
2020-11-23T22:08:58.000Z
2022-03-02T13:13:20.000Z
traffic_control/tests/test_owner_api.py
City-of-Helsinki/city-infrastructure-platform
c14513a9e54405412085f1047f91ec58b263eac0
[ "CC0-1.0" ]
170
2019-12-31T13:37:04.000Z
2022-03-12T14:03:35.000Z
traffic_control/tests/test_owner_api.py
City-of-Helsinki/city-infrastructure-platform
c14513a9e54405412085f1047f91ec58b263eac0
[ "CC0-1.0" ]
3
2020-05-08T05:58:02.000Z
2022-03-15T16:07:25.000Z
import pytest from django.urls import reverse from rest_framework import status from traffic_control.models import Owner from traffic_control.tests.factories import get_api_client, get_owner, get_user @pytest.mark.django_db @pytest.mark.parametrize("is_admin", (True, False)) def test__owner_api__list(is_admin): ...
31.044444
81
0.675018
592
4,191
4.505068
0.126689
0.057743
0.049494
0.089989
0.864267
0.835021
0.822272
0.814773
0.80165
0.785527
0
0.015049
0.191362
4,191
134
82
31.276119
0.771909
0
0
0.724771
0
0
0.083274
0
0
0
0
0
0.266055
1
0.055046
false
0
0.045872
0
0.100917
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
1407baf11e4f8bf8634e13cfdd86fac65a4deec4
989
py
Python
test/test_unit/test_ga4gh/test_refget/test_routes/test_sequence/test_get_service_info.py
ga4gh/refget-cloud
c39a65acba9818414789f004cced487562012bf0
[ "Apache-2.0" ]
null
null
null
test/test_unit/test_ga4gh/test_refget/test_routes/test_sequence/test_get_service_info.py
ga4gh/refget-cloud
c39a65acba9818414789f004cced487562012bf0
[ "Apache-2.0" ]
3
2021-04-30T21:12:42.000Z
2021-06-02T02:11:45.000Z
test/test_unit/test_ga4gh/test_refget/test_routes/test_sequence/test_get_service_info.py
ga4gh/refget-cloud
c39a65acba9818414789f004cced487562012bf0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Unit tests for get_service_info method""" import json import pytest from ga4gh.refget.config.service_info import SERVICE_INFO from ga4gh.refget.http.status_codes import StatusCodes as SC from ga4gh.refget.routes.sequence.get_service_info import get_service_info from test.common.methods impor...
34.103448
74
0.73913
132
989
5.265152
0.431818
0.126619
0.100719
0.086331
0.178417
0.178417
0
0
0
0
0
0.004728
0.144591
989
28
75
35.321429
0.816785
0.061678
0
0
0
0
0.121475
0.053145
0
0
0
0
0.090909
1
0.045455
false
0
0.272727
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
140a20b90e9925d43057fe27d47d950c88b00b9a
214
py
Python
cainiao/__init__.py
shengurun/cainiao
4cdd07716f47e99851dd6571e53b745401de5e85
[ "MIT" ]
1
2020-02-09T09:35:05.000Z
2020-02-09T09:35:05.000Z
cainiao/__init__.py
shengurun/cainiao
4cdd07716f47e99851dd6571e53b745401de5e85
[ "MIT" ]
null
null
null
cainiao/__init__.py
shengurun/cainiao
4cdd07716f47e99851dd6571e53b745401de5e85
[ "MIT" ]
1
2021-10-15T08:08:32.000Z
2021-10-15T08:08:32.000Z
from .clients import WayBillClient, CloudPrintClient from .waybill import WayBill from .cloudprint import CloudPrint __all__ = ("WayBillClient", "WayBill", "CloudPrint", "CloudPrintClient") __version__ = "0.2.0"
26.75
72
0.780374
22
214
7.227273
0.5
0
0
0
0
0
0
0
0
0
0
0.015789
0.11215
214
7
73
30.571429
0.821053
0
0
0
0
0
0.238318
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
140a827ee20450927c1a2ee95317625a892e4780
4,215
py
Python
evewspace/Map/tasks.py
darkorb/eve-wspace
687f3aeb6cd0a446a74108b2a5c03cb21c464497
[ "Apache-2.0" ]
null
null
null
evewspace/Map/tasks.py
darkorb/eve-wspace
687f3aeb6cd0a446a74108b2a5c03cb21c464497
[ "Apache-2.0" ]
null
null
null
evewspace/Map/tasks.py
darkorb/eve-wspace
687f3aeb6cd0a446a74108b2a5c03cb21c464497
[ "Apache-2.0" ]
null
null
null
# Eve W-Space # Copyright 2014 Andrew Austin and contributors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
33.188976
80
0.655753
528
4,215
5.172348
0.397727
0.02197
0.02197
0.024167
0.131088
0.079824
0.03442
0.03442
0
0
0
0.005461
0.261447
4,215
126
81
33.452381
0.871828
0.345433
0
0.295775
0
0
0.009882
0
0
0
0
0
0
1
0.084507
false
0.042254
0.126761
0
0.225352
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
140ab4bb1cd8dff6632e6d8cab39ecd830c56b75
887
py
Python
steam_acolyte/theme.py
Zaragata/steam-acolyte
9ddef5bd91ac5161281a90595301db0da1fafe0d
[ "Unlicense" ]
16
2020-04-18T16:07:39.000Z
2022-02-09T20:38:02.000Z
steam_acolyte/theme.py
Zaragata/steam-acolyte
9ddef5bd91ac5161281a90595301db0da1fafe0d
[ "Unlicense" ]
5
2020-09-14T09:42:54.000Z
2021-04-27T09:56:51.000Z
steam_acolyte/theme.py
Zaragata/steam-acolyte
9ddef5bd91ac5161281a90595301db0da1fafe0d
[ "Unlicense" ]
1
2022-02-09T21:41:49.000Z
2022-02-09T21:41:49.000Z
from PyQt5.QtGui import QIcon try: from importlib.resources import read_text, path except ImportError: from importlib_resources import read_text, path import os from types import SimpleNamespace def load_theme(): return SimpleNamespace( window_style = read_text(__package__, 'window.css'), ...
27.71875
60
0.695603
120
887
4.85
0.375
0.109966
0.164948
0.171821
0.137457
0.137457
0.137457
0
0
0
0
0.01273
0.202931
887
31
61
28.612903
0.810467
0
0
0
0
0
0.064262
0
0
0
0
0
0
1
0.130435
false
0
0.26087
0.043478
0.521739
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
1
0
0
2
140b00a4e0df52e767311698ec7c06d3fcf99b25
23,000
py
Python
bridges/data_src_dependent/data_source.py
acbart/bridges-python
5a18d2eb68df7cdff996120c0461b238ca599481
[ "MIT" ]
null
null
null
bridges/data_src_dependent/data_source.py
acbart/bridges-python
5a18d2eb68df7cdff996120c0461b238ca599481
[ "MIT" ]
null
null
null
bridges/data_src_dependent/data_source.py
acbart/bridges-python
5a18d2eb68df7cdff996120c0461b238ca599481
[ "MIT" ]
null
null
null
import json import requests import pickle from bridges.data_src_dependent import earthquake_usgs from bridges.data_src_dependent import actor_movie_imdb from bridges.data_src_dependent import game from bridges.data_src_dependent import shakespeare from bridges.data_src_dependent import gutenberg_book from bridges.data_...
30.183727
160
0.608739
3,008
23,000
4.542886
0.148604
0.008708
0.015368
0.015807
0.440322
0.374094
0.305159
0.281595
0.259129
0.214709
0
0.010045
0.268522
23,000
761
161
30.22339
0.802187
0.172565
0
0.322785
0
0.004219
0.170027
0.011757
0
0
0
0
0
1
0.037975
false
0.00211
0.054852
0
0.130802
0.004219
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
140b9b0b97e871cc880c6a62e7358c9920469b5f
494
py
Python
plotly/validators/choropleth/_locationmode.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/choropleth/_locationmode.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/choropleth/_locationmode.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class LocationmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name='locationmode', parent_name='choropleth', **kwargs ): super(LocationmodeValidator, self).__init__( plotly_name=plotly_name, ...
29.058824
78
0.62753
45
494
6.466667
0.622222
0.103093
0.171821
0
0
0
0
0
0
0
0
0.002747
0.263158
494
16
79
30.875
0.796703
0
0
0
0
0
0.117409
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
140c17ba4afc65f018668bbee8b508f1d484249a
924
py
Python
month04/Django/django6/mysite6/mysite6/views.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
4
2021-01-07T14:25:10.000Z
2021-02-01T10:36:01.000Z
month04/Django/django6/mysite6/mysite6/views.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
month04/Django/django6/mysite6/mysite6/views.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
from django.http import HttpResponse def set_cookies(request): resp = HttpResponse('设置cookies成功') resp.set_cookie('uname', 'aid2010', 60) return resp def get_cookies(request): uname = request.COOKIES.get('uname', 'default value') res = f'uname is {uname}' return HttpResponse(res) def delet...
24.315789
74
0.691558
114
924
5.535088
0.333333
0.110935
0.090333
0.095087
0.095087
0
0
0
0
0
0
0.023936
0.186147
924
37
75
24.972973
0.81516
0
0
0.16
0
0
0.234848
0
0
0
0
0
0
1
0.24
false
0
0.04
0
0.52
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
1
0
0
2
140d58b062f440d69f4d9438bb9af96e8e79b82f
5,453
py
Python
server.py
rosinality/arxiv-sanity
8905f2ed8dcd873b216624705f26cdd4693bf499
[ "MIT" ]
3
2019-11-14T12:43:58.000Z
2021-01-10T15:29:21.000Z
server.py
rosinality/arxiv-sanity
8905f2ed8dcd873b216624705f26cdd4693bf499
[ "MIT" ]
null
null
null
server.py
rosinality/arxiv-sanity
8905f2ed8dcd873b216624705f26cdd4693bf499
[ "MIT" ]
1
2020-06-16T16:58:52.000Z
2020-06-16T16:58:52.000Z
import re import logging from math import ceil from datetime import datetime from starlette.applications import Starlette from starlette.responses import PlainTextResponse from starlette.templating import Jinja2Templates from starlette.staticfiles import StaticFiles import uvicorn from gensim.summarization.summarizer ...
26.342995
84
0.575096
642
5,453
4.733645
0.247664
0.023034
0.029615
0.010859
0.125041
0.090819
0.039487
0.025666
0.025666
0
0
0.013468
0.291949
5,453
206
85
26.470874
0.773634
0.017422
0
0.118881
0
0
0.084743
0.00437
0
0
0
0
0
1
0.027972
false
0
0.076923
0.006993
0.13986
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
140d9fc18715129ce4df3ee2291a9af73b8ddedf
22
py
Python
src/dpsrvf/__init__.py
drewrl3v/dpsrvf
b78a83417bb59e5df7ebd831db6511116d16b638
[ "BSD-3-Clause" ]
null
null
null
src/dpsrvf/__init__.py
drewrl3v/dpsrvf
b78a83417bb59e5df7ebd831db6511116d16b638
[ "BSD-3-Clause" ]
1
2021-12-02T00:04:29.000Z
2021-12-02T00:04:29.000Z
src/dpsrvf/__init__.py
drewrl3v/dpsrvf
b78a83417bb59e5df7ebd831db6511116d16b638
[ "BSD-3-Clause" ]
null
null
null
from .dpsrvf import *
11
21
0.727273
3
22
5.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.181818
22
1
22
22
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
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
1
0
1
0
1
0
0
6
140dcd138e5e9fd07dd672e8a40ec75a11c99019
2,786
py
Python
tests/tests.py
Kellel/reports
975e99396301e87176a38dd440a273c9319b3e22
[ "BSD-3-Clause" ]
null
null
null
tests/tests.py
Kellel/reports
975e99396301e87176a38dd440a273c9319b3e22
[ "BSD-3-Clause" ]
null
null
null
tests/tests.py
Kellel/reports
975e99396301e87176a38dd440a273c9319b3e22
[ "BSD-3-Clause" ]
null
null
null
import unittest import re import os from report.parser import REGEX, parser, ParseError from report.app import Application class TestRegularExpressions(unittest.TestCase): def test_date(self): test_string = "1992-05-29 PDT" self.assertIsNotNone(re.match(REGEX.date, test_string)) def test_date...
32.022989
124
0.663317
354
2,786
5.048023
0.254237
0.123111
0.078344
0.145495
0.484051
0.354225
0.225518
0.225518
0.18075
0.123671
0
0.063528
0.214645
2,786
86
125
32.395349
0.753199
0.394831
0
0
0
0
0.076784
0
0
0
0
0
0.243902
1
0.243902
false
0
0.121951
0
0.390244
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
140f20997a32115cc05697358fa597c854b552ef
1,061
py
Python
syncAlleMitarbeiter.py
wulmer/churchtools-automation
8fa7e3d96c42a6a03ffc37a269ba3b95a856d83e
[ "MIT" ]
null
null
null
syncAlleMitarbeiter.py
wulmer/churchtools-automation
8fa7e3d96c42a6a03ffc37a269ba3b95a856d83e
[ "MIT" ]
null
null
null
syncAlleMitarbeiter.py
wulmer/churchtools-automation
8fa7e3d96c42a6a03ffc37a269ba3b95a856d83e
[ "MIT" ]
null
null
null
import os from churchtools import ChurchToolsApi if __name__ == "__main__": ct = ChurchToolsApi(os.environ["API_BASE_URL"], os.environ["ADMIN_TOKEN"]) all_members_group_id = list(ct.get_groups(query="Auto-Gruppe: Alle Mitarbeiter"))[ 0 ]["id"] member_status_ids = [s["id"] for s in ct.get_sta...
34.225806
86
0.708765
165
1,061
4.157576
0.327273
0.087464
0.102041
0.099125
0
0
0
0
0
0
0
0.001155
0.183789
1,061
30
87
35.366667
0.790993
0
0
0
0
0
0.121583
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.136364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
140f21754d995319df2daa1f16114bc1ac2e49b1
1,276
py
Python
exercises/concept/restaurant-rozalynn/none.py
ryanplusplus/python
6afbd74d3bce8f5f4b77f9bba166f1bed1e74968
[ "MIT" ]
1
2021-09-04T18:42:47.000Z
2021-09-04T18:42:47.000Z
exercises/concept/restaurant-rozalynn/none.py
daliboy/python
ff53de40180d871bb101fe8b084211cef7b10453
[ "MIT" ]
5
2021-11-03T10:20:40.000Z
2022-03-02T10:21:11.000Z
exercises/concept/restaurant-rozalynn/none.py
daliboy/python
ff53de40180d871bb101fe8b084211cef7b10453
[ "MIT" ]
1
2021-09-05T15:33:52.000Z
2021-09-05T15:33:52.000Z
def new_seating_chart(size=22): ''' :param size: int - number if seats in the seating chart. Default is 22. :return: dict - with number of seats specified, and placeholder values. ''' pass def arrange_reservations(guest_list): ''' :param guest_list: list - list of guest names for reserva...
22.385965
75
0.659091
159
1,276
5.194969
0.345912
0.101695
0.067797
0.076271
0.181598
0.099274
0.099274
0
0
0
0
0.00418
0.25
1,276
57
76
22.385965
0.858934
0.64185
0
0.5
0
0
0
0
0
0
0
0
0
1
0.5
false
0.5
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
140fe5f12606142c8580449bd83609ef34673f2a
3,308
py
Python
ironicclient/tests/functional/osc/v1/test_baremetal_chassis_basic.py
sapcc/python-ironicclient
8dcbf5b6d0bc2c2dc3881dbc557e2e403e2fe2b4
[ "Apache-2.0" ]
41
2015-01-29T20:10:48.000Z
2022-01-26T10:04:28.000Z
ironicclient/tests/functional/osc/v1/test_baremetal_chassis_basic.py
sapcc/python-ironicclient
8dcbf5b6d0bc2c2dc3881dbc557e2e403e2fe2b4
[ "Apache-2.0" ]
null
null
null
ironicclient/tests/functional/osc/v1/test_baremetal_chassis_basic.py
sapcc/python-ironicclient
8dcbf5b6d0bc2c2dc3881dbc557e2e403e2fe2b4
[ "Apache-2.0" ]
46
2015-01-19T17:46:52.000Z
2021-12-19T01:22:47.000Z
# Copyright (c) 2016 Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
38.022989
78
0.635429
405
3,308
5.120988
0.28642
0.106075
0.072324
0.048216
0.299421
0.260366
0.182739
0.147059
0.147059
0.127772
0
0.011837
0.259371
3,308
86
79
38.465116
0.834694
0.422612
0
0.064516
0
0
0.13357
0
0
0
0
0
0.258065
1
0.16129
false
0
0.032258
0
0.225806
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14104a886f5961b0db75535cef7241d695e8b7c3
1,082
py
Python
ramses/scaffolds/__init__.py
timgates42/ramses
ea2e1e896325b7256cdf5902309e05fd98e0c14c
[ "Apache-2.0" ]
178
2016-01-29T10:59:56.000Z
2021-09-17T18:28:24.000Z
ramses/scaffolds/__init__.py
timgates42/ramses
ea2e1e896325b7256cdf5902309e05fd98e0c14c
[ "Apache-2.0" ]
35
2015-03-31T19:52:23.000Z
2016-01-11T22:44:30.000Z
ramses/scaffolds/__init__.py
timgates42/ramses
ea2e1e896325b7256cdf5902309e05fd98e0c14c
[ "Apache-2.0" ]
24
2016-02-12T02:38:28.000Z
2020-06-20T23:35:38.000Z
import os import subprocess from six import moves from pyramid.scaffolds import PyramidTemplate class RamsesStarterTemplate(PyramidTemplate): _template_dir = 'ramses_starter' summary = 'Ramses starter' def pre(self, command, output_dir, vars): dbengine_choices = {'1': 'sqla', '2': 'mongodb'} ...
31.823529
74
0.61183
123
1,082
5.317073
0.626016
0.041284
0.051988
0.061162
0.073395
0
0
0
0
0
0
0.007557
0.266174
1,082
33
75
32.787879
0.816121
0
0
0
0
0
0.399261
0.020333
0
0
0
0
0
1
0.08
false
0
0.16
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
0
0
0
0
0
1
0
1410a969a161ae8785f9907319a20cbaab2faf50
1,916
py
Python
data/transcoder_evaluation_gfg/python/MINIMUM_TIME_TO_FINISH_TASKS_WITHOUT_SKIPPING_TWO_CONSECUTIVE.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/MINIMUM_TIME_TO_FINISH_TASKS_WITHOUT_SKIPPING_TWO_CONSECUTIVE.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/MINIMUM_TIME_TO_FINISH_TASKS_WITHOUT_SKIPPING_TWO_CONSECUTIVE.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold(arr, n): if (n <= 0): return 0 incl = arr[0] excl = 0 for i in range(1, n): incl_new ...
42.577778
118
0.454071
361
1,916
2.351801
0.351801
0.037691
0.042403
0.042403
0.040047
0.034158
0.034158
0.025913
0.025913
0.025913
0
0.343419
0.310021
1,916
44
119
43.545455
0.29879
0.096555
0
0
0
0
0.013929
0
0
0
0
0
0
1
0.029412
false
0
0
0
0.088235
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1413cca6261680634828c3e223b5596d39503334
2,220
py
Python
Translations/parse.py
Bluefissure/RainbowMage.ActLocalizer
a63cca327eb4433382039fe338037062af962903
[ "MIT" ]
19
2019-06-18T16:05:27.000Z
2021-12-09T08:48:18.000Z
Translations/parse.py
Bluefissure/RainbowMage.ActLocalizer
a63cca327eb4433382039fe338037062af962903
[ "MIT" ]
null
null
null
Translations/parse.py
Bluefissure/RainbowMage.ActLocalizer
a63cca327eb4433382039fe338037062af962903
[ "MIT" ]
1
2020-08-24T15:35:56.000Z
2020-08-24T15:35:56.000Z
from xml.dom.minidom import parse import json, re import xml.dom.minidom import codecs from collections import defaultdict def readfrom_xml(xml_file, languge, textdict=None): if not textdict: textdict = defaultdict(dict) DOMTree = xml.dom.minidom.parse(xml_file) collection = DOMTree.documentElement...
46.25
113
0.609009
246
2,220
5.349594
0.337398
0.018997
0.029635
0.028875
0.079027
0.033435
0
0
0
0
0
0.003571
0.243243
2,220
48
114
46.25
0.779762
0
0
0.088889
0
0
0.132373
0.032418
0
0
0
0
0
1
0.044444
false
0
0.111111
0
0.177778
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1414d6a7f39b6d6d2fa543619d6402804985df1f
3,359
py
Python
sme_financing/main/service/fund_disbursement_service.py
BuildForSDG/team-214-backend
f1aff9c27d7b7588b4bbb2bc68956b35051d4506
[ "MIT" ]
1
2020-05-20T16:32:33.000Z
2020-05-20T16:32:33.000Z
sme_financing/main/service/fund_disbursement_service.py
BuildForSDG/team-214-backend
f1aff9c27d7b7588b4bbb2bc68956b35051d4506
[ "MIT" ]
23
2020-05-19T07:12:53.000Z
2020-06-21T03:57:54.000Z
sme_financing/main/service/fund_disbursement_service.py
BuildForSDG/team-214-backend
f1aff9c27d7b7588b4bbb2bc68956b35051d4506
[ "MIT" ]
1
2020-05-18T14:18:12.000Z
2020-05-18T14:18:12.000Z
from datetime import datetime from sqlalchemy.exc import SQLAlchemyError from sme_financing.main import db from ..models.fund_disbursement import FundDisbursement from ..service.funding_project_service import get_funding_project_by_id def update(): db.session.commit() def commit_changes(data): db.session...
31.101852
88
0.646621
355
3,359
5.822535
0.216901
0.10837
0.087083
0.063861
0.473633
0.352201
0.303822
0.259313
0.19642
0.057088
0
0.009604
0.256029
3,359
107
89
31.392523
0.817527
0
0
0.304878
0
0
0.173564
0.04287
0
0
0
0
0
1
0.085366
false
0
0.060976
0.02439
0.268293
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
141608780ace7d6b13085fdb6ef40b7ba4d59c94
65,519
py
Python
billforward/apis/amendments_api.py
billforward/bf-python
d2b812329ca3ed1fd94364d7f46f69ad74665596
[ "Apache-2.0" ]
2
2016-11-23T17:32:37.000Z
2022-02-24T05:13:20.000Z
billforward/apis/amendments_api.py
billforward/bf-python
d2b812329ca3ed1fd94364d7f46f69ad74665596
[ "Apache-2.0" ]
null
null
null
billforward/apis/amendments_api.py
billforward/bf-python
d2b812329ca3ed1fd94364d7f46f69ad74665596
[ "Apache-2.0" ]
1
2016-12-30T20:02:48.000Z
2016-12-30T20:02:48.000Z
# coding: utf-8 """ BillForward REST API OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git 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...
47.719592
229
0.606358
7,057
65,519
5.448774
0.042086
0.045771
0.023874
0.020597
0.949079
0.941355
0.932903
0.926532
0.914621
0.907963
0
0.000753
0.310521
65,519
1,372
230
47.754373
0.850445
0.410308
0
0.803101
1
0
0.195939
0.050362
0
0
0
0
0
1
0.035659
false
0
0.010853
0
0.099225
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
1416902eab8e3f204c69d39e133b4de7dfd1e516
1,189
py
Python
src/python/grpcio_tests/tests/unit/beta/_connectivity_channel_test.py
samotarnik/grpc
3278bdceda8030d5aa130f12765e5f07263c860d
[ "Apache-2.0" ]
36,552
2015-02-26T17:30:13.000Z
2022-03-31T22:41:33.000Z
src/python/grpcio_tests/tests/unit/beta/_connectivity_channel_test.py
SanjanaSingh897/grpc
2d858866eb95ce5de8ccc8c35189a12733d8ca79
[ "Apache-2.0" ]
23,536
2015-02-26T17:50:56.000Z
2022-03-31T23:39:42.000Z
src/python/grpcio_tests/tests/unit/beta/_connectivity_channel_test.py
SanjanaSingh897/grpc
2d858866eb95ce5de8ccc8c35189a12733d8ca79
[ "Apache-2.0" ]
11,050
2015-02-26T17:22:10.000Z
2022-03-31T10:12:35.000Z
# Copyright 2015 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
36.030303
78
0.776283
144
1,189
6.326389
0.618056
0.065862
0.159166
0.263447
0
0
0
0
0
0
0
0.008893
0.148865
1,189
32
79
37.15625
0.891304
0.498738
0
0
0
0
0.013841
0
0
0
0
0
0.454545
1
0.090909
false
0
0.181818
0
0.363636
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
1
0
0
0
0
0
0
0
0
0
2
1419fea8415d6994c86ab88a7b541b03c4b88d54
3,323
py
Python
lwb_heartbeat/staff/migrations/0001_initial.py
jayadams011/lwb_heartbeat
6d9b594f317107cd26932485dd8d063e226970fa
[ "MIT" ]
1
2021-03-18T20:55:04.000Z
2021-03-18T20:55:04.000Z
lwb_heartbeat/staff/migrations/0001_initial.py
jayadams011/lwb_heartbeat
6d9b594f317107cd26932485dd8d063e226970fa
[ "MIT" ]
17
2018-05-23T15:14:17.000Z
2018-05-25T23:39:38.000Z
lwb_heartbeat/staff/migrations/0001_initial.py
jayadams011/lwb_heartbeat
6d9b594f317107cd26932485dd8d063e226970fa
[ "MIT" ]
2
2018-06-12T20:50:38.000Z
2021-03-18T20:55:21.000Z
# Generated by Django 2.0.5 on 2018-05-23 23:46 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import multiselectfield.db.fields class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(setting...
75.522727
1,140
0.690641
362
3,323
6.116022
0.334254
0.171635
0.054201
0.081301
0.46477
0.379855
0.249322
0.249322
0.199639
0.156278
0
0.017461
0.172735
3,323
43
1,141
77.27907
0.787923
0.013542
0
0
1
0
0.369658
0.126068
0
0
0
0
0
1
0
false
0
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
141e2840866cc4a5199ed1f46de24c5823d73ae2
940
py
Python
sendmail/helpers.py
hmif-itb/hmif-send-mail
628e283d7de06b132fe72af97b76104ea5ff8c88
[ "MIT" ]
null
null
null
sendmail/helpers.py
hmif-itb/hmif-send-mail
628e283d7de06b132fe72af97b76104ea5ff8c88
[ "MIT" ]
null
null
null
sendmail/helpers.py
hmif-itb/hmif-send-mail
628e283d7de06b132fe72af97b76104ea5ff8c88
[ "MIT" ]
null
null
null
import json import yaml import csv def file_to_raw(filename): with open(filename, "r") as file: f = file.read() return f def dump_to_json(data, filename): with open(filename, "w", encoding="utf8") as file: json.dump(data, file, ensure_ascii=False) def read_csv(filename): rows =...
23.5
71
0.611702
127
940
4.370079
0.346457
0.097297
0.115315
0.12973
0.331532
0.331532
0.331532
0.331532
0.331532
0.331532
0
0.001471
0.276596
940
39
72
24.102564
0.814706
0
0
0.206897
0
0
0.011702
0
0
0
0
0
0
1
0.172414
false
0
0.103448
0
0.413793
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
141e6c1e91f0326ea6e6f4822ced15004bab074a
2,828
py
Python
access-analyzer/enablement/create-account-analyzer-stack-set.py
lulukelu/aws-iam-permissions-guardrails
cae485e3d8589c85f55c50c442ce47916345e00d
[ "Apache-2.0" ]
88
2020-04-02T02:56:27.000Z
2022-03-18T13:22:02.000Z
access-analyzer/enablement/create-account-analyzer-stack-set.py
lulukelu/aws-iam-permissions-guardrails
cae485e3d8589c85f55c50c442ce47916345e00d
[ "Apache-2.0" ]
45
2020-06-26T11:11:28.000Z
2021-08-17T15:31:47.000Z
access-analyzer/enablement/create-account-analyzer-stack-set.py
lulukelu/aws-iam-permissions-guardrails
cae485e3d8589c85f55c50c442ce47916345e00d
[ "Apache-2.0" ]
32
2020-04-02T02:56:28.000Z
2021-12-20T18:53:04.000Z
import logging logger = logging.getLogger() logger.setLevel(logging.INFO) import argparse import boto3 from botocore.waiter import SingleWaiterConfig, Waiter excluded_regions=[] parser = argparse.ArgumentParser() parser.add_argument("--excluded_regions","-excluded_regions",help="Regions to exclude as comma separated...
26.933333
196
0.726308
284
2,828
7.073944
0.443662
0.067198
0.028372
0.058238
0.038825
0
0
0
0
0
0
0.006582
0.140382
2,828
104
197
27.192308
0.819827
0.0343
0
0.139535
0
0
0.326979
0.094941
0
0
0
0
0
1
0
false
0
0.046512
0
0.046512
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1420b5636f3d9df34dca6ec55321637de72a8c50
1,950
py
Python
packages/modification_rules.py
VoigtLab/ripp-design
5a83cc0e38b879d548ba836af5a9dadbe83aeadd
[ "MIT" ]
null
null
null
packages/modification_rules.py
VoigtLab/ripp-design
5a83cc0e38b879d548ba836af5a9dadbe83aeadd
[ "MIT" ]
null
null
null
packages/modification_rules.py
VoigtLab/ripp-design
5a83cc0e38b879d548ba836af5a9dadbe83aeadd
[ "MIT" ]
null
null
null
aas = 'FILWVMYCPAGTSQNEDHKR' core_rules_r = dict([ ['tgnb' , r"[GFL][PHL][DS][TSVH][T][IMEH][VSR][T][EKRSAVLG][T][ITS][E][NSQM][AVRFW][D][PI][DS][EAMW][YLST][FYEP][LAFQG]"], ['plpxy', r"[AT][VTCQSNKRP][AS][A][MLN][Y][G][VATS][V][FITEKP][P]"], ['paap' , r"[E][E][NSTDKRYV][AMTGP][MVSTNHD][YF][TSAVLWYG][KRSA...
40.625
126
0.551795
243
1,950
4.399177
0.604938
0.037418
0.018709
0.024322
0
0
0
0
0
0
0
0.037888
0.174359
1,950
48
127
40.625
0.626087
0.121026
0
0
0
0.083333
0.460773
0.321429
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
142153febfd732a27d28ccaae5410a49667aa838
629
py
Python
mysort/quick_sort_2.py
UMP-45/Python_Study
75126a432230b226f27f2a7434d848bd0ce5696e
[ "Unlicense" ]
1
2022-03-29T09:20:19.000Z
2022-03-29T09:20:19.000Z
mysort/quick_sort_2.py
UMP-45/Python_Study
75126a432230b226f27f2a7434d848bd0ce5696e
[ "Unlicense" ]
null
null
null
mysort/quick_sort_2.py
UMP-45/Python_Study
75126a432230b226f27f2a7434d848bd0ce5696e
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- def quick_sort(array, left, right): if left<right: mid=adjust_array(array, left, right) quick_sort(array, left, mid-1) quick_sort(array, mid+1, right) def adjust_array(array, left, right): i=left j=right base_value=array[left] while i<j: while (i<j and arr...
17.472222
39
0.647059
124
629
3.137097
0.306452
0.030848
0.107969
0.092545
0.257069
0
0
0
0
0
0
0.038388
0.171701
629
36
40
17.472222
0.708253
0.066773
0
0.222222
0
0
0.013652
0
0
0
0
0
0
1
0.074074
false
0
0
0
0.111111
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14219aade86da139c62f8446f9211557fa044d42
63
py
Python
tests/__init__.py
griff-rees/uk-boards
bf5726c9716caa5ab1e3a7134e6bc6ee6f4fe5db
[ "MIT" ]
4
2021-05-06T13:14:17.000Z
2022-01-17T17:25:11.000Z
tests/__init__.py
griff-rees/ukboards
338075813e7ac47a2f1c4f1dc8a16f92ea0fac68
[ "MIT" ]
139
2020-12-20T18:49:02.000Z
2022-03-31T18:25:08.000Z
tests/__init__.py
spool/uk_boards
bf5726c9716caa5ab1e3a7134e6bc6ee6f4fe5db
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Unit test package for ukboards."""
15.75
37
0.571429
8
63
4.5
1
0
0
0
0
0
0
0
0
0
0
0.019231
0.174603
63
3
38
21
0.673077
0.857143
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
142238b3e9c405d99ac6dba9ee0ddd6daa8d498b
761
py
Python
Enroll.py
olawale0254/Student-enrolment-Predictions-
039b3a46cf8a99543cb705eaaca9b8d9d44d1da6
[ "MIT" ]
null
null
null
Enroll.py
olawale0254/Student-enrolment-Predictions-
039b3a46cf8a99543cb705eaaca9b8d9d44d1da6
[ "MIT" ]
null
null
null
Enroll.py
olawale0254/Student-enrolment-Predictions-
039b3a46cf8a99543cb705eaaca9b8d9d44d1da6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[2]: import pandas as pd import numpy as np # In[3]: # reading data data = pd.read_csv('dattaa.csv') # In[4]: X = data.drop('verdit', axis=1).values y = data.verdit.values # In[5]: # splitting data as X_train and X_test from sklearn.model_selection import train_t...
14.634615
91
0.729304
125
761
4.256
0.464
0.056391
0.052632
0.056391
0
0
0
0
0
0
0
0.018547
0.149803
761
51
92
14.921569
0.803709
0.214192
0
0
0
0
0.02735
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1422e6d346738741bc192a1637741c5504620cc0
172
py
Python
Out-20-2021/ex008.py
gianbianchi/Uniso
3abd036bde0b9d9e02ae4f95bae10af4f0a0bae7
[ "MIT" ]
null
null
null
Out-20-2021/ex008.py
gianbianchi/Uniso
3abd036bde0b9d9e02ae4f95bae10af4f0a0bae7
[ "MIT" ]
null
null
null
Out-20-2021/ex008.py
gianbianchi/Uniso
3abd036bde0b9d9e02ae4f95bae10af4f0a0bae7
[ "MIT" ]
null
null
null
#Desenvolva um gerador de tabuada n = int(input("Tabuada de que número? ")) i = 0 while i < 10: print("{} X {} = {}".format(n, i + 1, (n*(i + 1)))) i = i + 1
19.111111
55
0.5
29
172
2.965517
0.62069
0.069767
0.069767
0
0
0
0
0
0
0
0
0.04878
0.284884
172
9
56
19.111111
0.650407
0.186047
0
0
0
0
0.25
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1422fadb9413758027aa22e397b5b6a3c5603dfb
1,430
py
Python
doto/__init__.py
raphaelahrens/doto
e1a8db42a29a9844322ecc58576a18d4782bfa1d
[ "BSD-2-Clause" ]
1
2016-05-03T12:38:30.000Z
2016-05-03T12:38:30.000Z
doto/__init__.py
raphaelahrens/doto
e1a8db42a29a9844322ecc58576a18d4782bfa1d
[ "BSD-2-Clause" ]
null
null
null
doto/__init__.py
raphaelahrens/doto
e1a8db42a29a9844322ecc58576a18d4782bfa1d
[ "BSD-2-Clause" ]
null
null
null
""" Doto main module """ import argparse import shutil import doto.cli import doto.cli.cmd import doto.cli.sub_cmds import doto.defaultconfig import doto.model def init_env(commands): """ Initialize the enviroment. This includes - the parser and subpurser, - and the enviroment variables...
26.481481
132
0.684615
193
1,430
4.974093
0.445596
0.04375
0.040625
0.029167
0.041667
0
0
0
0
0
0
0.000895
0.218881
1,430
53
133
26.981132
0.85855
0.224476
0
0
0
0
0.07781
0
0
0
0
0
0
1
0.08
false
0
0.32
0
0.52
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
142316f2e2f7f3766a103d7cbfe23336f033018a
534
py
Python
requests/ungzip-data/example-2.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
140
2017-02-21T22:49:04.000Z
2022-03-22T17:51:58.000Z
requests/ungzip-data/example-2.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
5
2017-12-02T19:55:00.000Z
2021-09-22T23:18:39.000Z
requests/ungzip-data/example-2.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
79
2017-01-25T10:53:33.000Z
2022-03-11T16:13:57.000Z
#!/usr/bin/env python3 '''Display data send as gzip''' import urllib import gzip import io url = 'http://www.stream-urls.de/webradio' r = urllib.urlopen(url) # create file-like object in memory buf = io.StringIO(r.read()) # create gzip object using file-like object instead of real file on disk f = gzip.GzipFile...
17.225806
72
0.67603
81
534
4.45679
0.604938
0.055402
0.077562
0
0
0
0
0
0
0
0
0.008811
0.149813
534
30
73
17.8
0.786344
0.529963
0
0
0
0
0.168067
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1425874ed3b65aa3172f2c1bffc189ea1d8e25c8
1,660
py
Python
sdks/python/apache_beam/utils/plugin.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
4
2018-09-25T16:10:54.000Z
2020-07-13T23:52:12.000Z
sdks/python/apache_beam/utils/plugin.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
41
2018-08-16T23:54:04.000Z
2022-01-24T20:27:19.000Z
sdks/python/apache_beam/utils/plugin.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
6
2019-06-02T16:18:52.000Z
2020-11-04T04:17:08.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 us...
35.319149
76
0.753012
234
1,660
5.213675
0.5
0.07459
0.039344
0.02623
0
0
0
0
0
0
0
0.00292
0.174699
1,660
46
77
36.086957
0.887591
0.65241
0
0.133333
0
0
0.001859
0
0
0
0
0
0
1
0.2
false
0
0.133333
0.066667
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1426c615ae8ca36340d1ad10524328d32710a591
2,922
py
Python
Supertrend Indicator/zrd_login.py
Alfin72/share-trade-indicator
163710bbbc493987176b00a1b3425a84c10daf0e
[ "Apache-2.0" ]
null
null
null
Supertrend Indicator/zrd_login.py
Alfin72/share-trade-indicator
163710bbbc493987176b00a1b3425a84c10daf0e
[ "Apache-2.0" ]
null
null
null
Supertrend Indicator/zrd_login.py
Alfin72/share-trade-indicator
163710bbbc493987176b00a1b3425a84c10daf0e
[ "Apache-2.0" ]
null
null
null
from kiteconnect import KiteConnect from kiteconnect import KiteTicker import pdb import pandas as pd import datetime import os api_k = "put_your_api_key_here" # api_key api_s = "put_your_api_secret_here" # api_secret filename = str(datetime.datetime.now().date()) + ' token' + '.txt' def read_acc...
50.37931
1,538
0.675565
348
2,922
5.5
0.603448
0.103448
0.023511
0.019854
0.133751
0.109718
0.092999
0.059561
0.059561
0.059561
0
0
0.132786
2,922
57
1,539
51.263158
0.755328
0.00616
0
0.153846
0
0
0.422293
0.015823
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.282051
0.102564
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
14276c092a95424f58621576868430ea2d310bcd
517
py
Python
artemis/fileman/temporary_filename.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
235
2016-08-26T14:18:51.000Z
2022-03-13T10:54:39.000Z
artemis/fileman/temporary_filename.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
112
2016-04-30T11:48:38.000Z
2021-01-12T20:17:32.000Z
artemis/fileman/temporary_filename.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
31
2016-11-05T19:09:19.000Z
2021-09-13T07:35:40.000Z
import os from contextlib import contextmanager @contextmanager def use_temporary_filename(file_path): """ Delete any existing file with this name, and delete this file after the block completes. :param file_path: A full file path :yield: A the file path again. """ directory, _ = os.path.split...
20.68
92
0.678917
71
517
4.802817
0.521127
0.211144
0.076246
0.093842
0.140762
0.140762
0
0
0
0
0
0
0.245648
517
24
93
21.541667
0.874359
0.297872
0
0.153846
0
0
0
0
0
0
0
0
0
1
0.076923
false
0.076923
0.153846
0
0.230769
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
1
0
0
0
0
0
2
1428015a750bd87472b35db0b734cb0d701b1223
91
py
Python
LUCE-API/luce_vm/luce_django/luce/API/models.py
maastrichtlawtech/webmon-extension
74b0f449eac4417495e69bb3f6f711bdbebfb2fd
[ "MIT" ]
null
null
null
LUCE-API/luce_vm/luce_django/luce/API/models.py
maastrichtlawtech/webmon-extension
74b0f449eac4417495e69bb3f6f711bdbebfb2fd
[ "MIT" ]
null
null
null
LUCE-API/luce_vm/luce_django/luce/API/models.py
maastrichtlawtech/webmon-extension
74b0f449eac4417495e69bb3f6f711bdbebfb2fd
[ "MIT" ]
1
2022-03-31T09:22:49.000Z
2022-03-31T09:22:49.000Z
from django.db import models class Donor(models.Model): userName = models.TextField()
18.2
33
0.747253
12
91
5.666667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.153846
91
4
34
22.75
0.883117
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
14291050527211ae9a73fbc73d445b07160f6925
46
py
Python
project/wsgi.py
Hazhzeng/functions-wsgi-demo
2b876fe04374c85a3f890dd32b928313bec40bdd
[ "MIT" ]
5
2020-02-14T02:38:02.000Z
2021-11-05T14:11:28.000Z
project/wsgi.py
Hazhzeng/functions-wsgi-demo
2b876fe04374c85a3f890dd32b928313bec40bdd
[ "MIT" ]
6
2019-11-24T02:42:03.000Z
2022-03-15T19:57:09.000Z
project/wsgi.py
Hazhzeng/functions-wsgi-demo
2b876fe04374c85a3f890dd32b928313bec40bdd
[ "MIT" ]
5
2021-02-21T18:24:19.000Z
2021-11-08T10:59:44.000Z
from . import app application = app.wsgi_app
11.5
26
0.76087
7
46
4.857143
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.173913
46
3
27
15.333333
0.894737
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
142ba29f3fd4ae894f72c4241be757baca5dc19a
19,375
py
Python
emilia/modules/antiflood.py
masterisira/ELIZA_OF-master
02a7dbf48e4a3d4ee0981e6a074529ab1497aafe
[ "Unlicense" ]
null
null
null
emilia/modules/antiflood.py
masterisira/ELIZA_OF-master
02a7dbf48e4a3d4ee0981e6a074529ab1497aafe
[ "Unlicense" ]
null
null
null
emilia/modules/antiflood.py
masterisira/ELIZA_OF-master
02a7dbf48e4a3d4ee0981e6a074529ab1497aafe
[ "Unlicense" ]
null
null
null
import html from typing import Optional, List from telegram import Message, Chat, Update, Bot, User, InlineKeyboardButton, InlineKeyboardMarkup, ParseMode, ChatPermissions from telegram.error import BadRequest from telegram.ext import Filters, MessageHandler, CommandHandler, run_async, CallbackQueryHandler from telegr...
49.935567
235
0.638813
2,285
19,375
5.24814
0.133042
0.100067
0.122915
0.082055
0.745414
0.710223
0.659189
0.647765
0.647265
0.606237
0
0.005095
0.240258
19,375
387
236
50.064599
0.808492
0.024052
0
0.554217
0
0.024096
0.208043
0.001852
0
0
0
0
0
1
0.024096
false
0.008032
0.056225
0
0.156627
0
0
0
0
null
0
0
0
0
1
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
2
142c155c6fbb50f6d6e41b47affd8bd4a1cac56d
2,792
py
Python
type_analysis.py
XYPB/SpecVQGAN
ed3c0f86c41bc408824979305d9c4f6df0877973
[ "MIT" ]
null
null
null
type_analysis.py
XYPB/SpecVQGAN
ed3c0f86c41bc408824979305d9c4f6df0877973
[ "MIT" ]
null
null
null
type_analysis.py
XYPB/SpecVQGAN
ed3c0f86c41bc408824979305d9c4f6df0877973
[ "MIT" ]
null
null
null
import json import os AMT_testset = json.load(open('data/AMT_test_set.json', 'r')) AMT_trainset = json.load(open('data/greatesthit_train_2.00.json', 'r')) AMT_validset = json.load(open('data/greatesthit_valid_2.00.json', 'r')) greatest_testset = json.load(open('data/greatesthit_test_2.00.json', 'r')) record_dir = 'dat...
32.465116
93
0.621777
391
2,792
4.173913
0.191816
0.104779
0.044118
0.039216
0.343137
0.246324
0.214461
0.127451
0.127451
0.127451
0
0.020067
0.250358
2,792
85
94
32.847059
0.759675
0.229943
0
0.245614
0
0
0.126523
0.095127
0
0
0
0
0
1
0.052632
false
0
0.035088
0
0.175439
0.035088
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
142c7611071a9367cf6a272e8d29329b7ce52109
193
py
Python
api/serializers/server.py
lndba/apasa_backend
e0bb96e22a22f6e2a5a2826f225388113473e7e2
[ "Apache-2.0" ]
1
2019-08-06T07:31:40.000Z
2019-08-06T07:31:40.000Z
api/serializers/server.py
lndba/apasa_backend
e0bb96e22a22f6e2a5a2826f225388113473e7e2
[ "Apache-2.0" ]
null
null
null
api/serializers/server.py
lndba/apasa_backend
e0bb96e22a22f6e2a5a2826f225388113473e7e2
[ "Apache-2.0" ]
null
null
null
from rest_framework import serializers from api.models import * class ServerListSerializers(serializers.ModelSerializer): class Meta: model = Server fields = "__all__"
16.083333
57
0.720207
19
193
7.052632
0.789474
0
0
0
0
0
0
0
0
0
0
0
0.222798
193
11
58
17.545455
0.893333
0
0
0
0
0
0.036842
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
142db2ec3da35e8ab5c751428643dacab3da2279
1,232
py
Python
tools/data_migration/data_migration/context.py
yantarou/midonet
11fea2549416588a9170f6ce872790ad907d2a4b
[ "Apache-2.0" ]
221
2015-01-04T17:49:57.000Z
2021-12-23T16:15:35.000Z
tools/data_migration/data_migration/context.py
yantarou/midonet
11fea2549416588a9170f6ce872790ad907d2a4b
[ "Apache-2.0" ]
8
2018-05-24T13:36:03.000Z
2021-02-19T16:01:43.000Z
tools/data_migration/data_migration/context.py
yantarou/midonet
11fea2549416588a9170f6ce872790ad907d2a4b
[ "Apache-2.0" ]
95
2015-01-07T02:06:23.000Z
2022-02-23T22:23:55.000Z
# Copyright (C) 2016 Midokura SARL # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
33.297297
78
0.742695
168
1,232
5.369048
0.619048
0.066519
0.028825
0.035477
0
0
0
0
0
0
0
0.009073
0.194805
1,232
36
79
34.222222
0.900202
0.544643
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0.461538
0
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
1
0
1
0
0
2
142e0ef36f1e50a80f773ead8542d87b2003badb
3,905
py
Python
srs/Tournament.py
jokvedaras/game-framework
9ff60e15d1beff54f94e280501929664ce59afe7
[ "Apache-2.0" ]
null
null
null
srs/Tournament.py
jokvedaras/game-framework
9ff60e15d1beff54f94e280501929664ce59afe7
[ "Apache-2.0" ]
null
null
null
srs/Tournament.py
jokvedaras/game-framework
9ff60e15d1beff54f94e280501929664ce59afe7
[ "Apache-2.0" ]
null
null
null
# Alex Ciaramella and Greg Suner # Abstract Tournament Class # Tournament is observable while players are observers import Message import Observable import ScoreKeeper class Tournament(Observable.Observable): # set up a list of players when tournament is initialized def __init__(self): Observable.Ob...
33.663793
100
0.660691
512
3,905
4.917969
0.246094
0.0556
0.0417
0.047657
0.186259
0.124305
0.096505
0.096505
0.096505
0.096505
0
0.001749
0.268118
3,905
115
101
33.956522
0.879286
0.26146
0
0.128571
0
0
0
0
0
0
0
0.008696
0
1
0.228571
false
0.028571
0.042857
0.028571
0.314286
0.014286
0
0
0
null
0
0
0
0
0
0
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
142f394af6643e95062c23f47632b2841495c600
2,512
py
Python
graphics/pellet_swrl_barchart.py
edlectrico/dissertation
eec342383ef4f15968e6417020681a3eb095bf08
[ "Apache-2.0" ]
null
null
null
graphics/pellet_swrl_barchart.py
edlectrico/dissertation
eec342383ef4f15968e6417020681a3eb095bf08
[ "Apache-2.0" ]
null
null
null
graphics/pellet_swrl_barchart.py
edlectrico/dissertation
eec342383ef4f15968e6417020681a3eb095bf08
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import matplotlib matplotlib.rcParams['legend.fancybox'] = True import matplotlib.pyplot as plt import numpy as np #data x = [1, 2, 3, 4] #define some data x = [5000, 10000, 15000, 20000] pc_mean = [4.770, 6.327, 7.427, 8.147] s3mini_mean = [96.878, 101.656, 243.981, 331.433] s3_mean = [84.121,...
30.26506
128
0.632166
462
2,512
3.383117
0.383117
0.015355
0.020473
0.017914
0.204734
0.181702
0.174664
0.174664
0.174664
0.174664
0
0.142653
0.162818
2,512
82
129
30.634146
0.600571
0.118232
0
0.153846
0
0
0.077692
0
0
0
0
0
0
1
0.019231
false
0
0.057692
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14304bb0fc36ef4f288e68a1bc0d0727900e0859
6,039
py
Python
transfer_learning.py
benedictquartey/Chiromancer
9dcf2ffaf059680a8fa8c71a37c9156927ccc7ec
[ "MIT" ]
4
2019-07-18T22:50:47.000Z
2021-01-20T22:02:15.000Z
transfer_learning.py
benedictquartey/Chiromancer
9dcf2ffaf059680a8fa8c71a37c9156927ccc7ec
[ "MIT" ]
null
null
null
transfer_learning.py
benedictquartey/Chiromancer
9dcf2ffaf059680a8fa8c71a37c9156927ccc7ec
[ "MIT" ]
1
2019-11-22T13:47:17.000Z
2019-11-22T13:47:17.000Z
#adapted from PyimageSearch for testing accuracy between my standard NN_model architecture and a popular model # set the matplotlib backend so figures can be saved in the background import matplotlib matplotlib.use("Agg") import data_processing from keras.preprocessing.image import ImageDataGenerator from keras.app...
28.757143
110
0.741679
916
6,039
4.790393
0.338428
0.016408
0.006837
0.013674
0.184594
0.139471
0.128988
0.128988
0.10825
0.087967
0
0.020404
0.155986
6,039
209
111
28.894737
0.840494
0.336645
0
0.192982
0
0
0.130643
0.012106
0
0
0
0
0
1
0.017544
false
0
0.157895
0
0.175439
0.078947
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
143077d32ff1589b7aba438263ce1a1ace1fb22c
4,174
py
Python
app/voxity/__init__.py
voxity/vox-ui-api
9da442a2ae8e5fec92485cf7dc4adf1a560aa8f5
[ "MIT" ]
null
null
null
app/voxity/__init__.py
voxity/vox-ui-api
9da442a2ae8e5fec92485cf7dc4adf1a560aa8f5
[ "MIT" ]
null
null
null
app/voxity/__init__.py
voxity/vox-ui-api
9da442a2ae8e5fec92485cf7dc4adf1a560aa8f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Voxity api module.""" from __future__ import absolute_import, division, unicode_literals from requests_oauthlib import OAuth2Session from flask import current_app, session, abort from datetime import datetime, timedelta from app.utils import datetime_to_timestamp from requests.models import R...
26.585987
77
0.614279
497
4,174
4.977867
0.257545
0.048504
0.07114
0.041229
0.259095
0.190784
0.166532
0.130962
0.10671
0.10671
0
0.006171
0.262338
4,174
156
78
26.75641
0.797337
0.070915
0
0.196262
0
0
0.132384
0.005802
0
0
0
0
0
1
0.093458
false
0.018692
0.065421
0.009346
0.299065
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1431ad35fd48b141248d3253a46746d7e3f5e28a
551
py
Python
commands/cmdLook.py
fhaynes/slithermud
f14da3d65cdc5187678e8e7cc05e56643a663c56
[ "Artistic-1.0" ]
null
null
null
commands/cmdLook.py
fhaynes/slithermud
f14da3d65cdc5187678e8e7cc05e56643a663c56
[ "Artistic-1.0" ]
null
null
null
commands/cmdLook.py
fhaynes/slithermud
f14da3d65cdc5187678e8e7cc05e56643a663c56
[ "Artistic-1.0" ]
null
null
null
import MudCommand import MudAction import MudActionHandler import MudDatabase import MudWorld class cmdLook(MudCommand.MudCommand): def __init__(self): MudCommand.MudCommand.__init__(self) self.info['cmdName'] = "look" self.info['helpText'] = '''Look at your surroundings, or something ...
34.4375
89
0.655172
55
551
6.418182
0.527273
0.067989
0
0
0
0
0
0
0
0
0
0
0.206897
551
16
90
34.4375
0.80778
0
0
0
0
0
0.172101
0
0
0
0
0
0
1
0.142857
false
0
0.357143
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
14328f5773d881a1cba21ca73ad3e092c25a5373
916
py
Python
servidor.py
robsonsilv4/socket-calculadora
a452163a5d02e2c9dbc0ecce57827010a4feb48d
[ "MIT" ]
null
null
null
servidor.py
robsonsilv4/socket-calculadora
a452163a5d02e2c9dbc0ecce57827010a4feb48d
[ "MIT" ]
null
null
null
servidor.py
robsonsilv4/socket-calculadora
a452163a5d02e2c9dbc0ecce57827010a4feb48d
[ "MIT" ]
null
null
null
import socket def soma(a, b): temp = a + b return str(temp) def sub(a, b): temp = a - b return str(temp) def mult(a, b): temp = a * b return str(temp) def div(a, b): if b == 0: return 0 else: temp = a / b temp = int(temp) return str(temp) host = '' porta = 12003 servidor = socket...
17.283019
65
0.606987
143
916
3.874126
0.398601
0.050542
0.043321
0.037906
0.129964
0.129964
0.129964
0.129964
0.129964
0
0
0.018625
0.237991
916
53
66
17.283019
0.775072
0
0
0.142857
0
0
0.121047
0
0
0
0
0
0
1
0.095238
false
0
0.02381
0
0.238095
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1433e7c6bf5034dbcfa59dccb53b2a3d0e6d70f2
277
py
Python
samples-python1/500-forrange.py
LunaticNeko/chandrakasem-lectures
5c50bf16e606f54cb341369c812e23a50f1eee94
[ "CC-BY-4.0", "MIT" ]
null
null
null
samples-python1/500-forrange.py
LunaticNeko/chandrakasem-lectures
5c50bf16e606f54cb341369c812e23a50f1eee94
[ "CC-BY-4.0", "MIT" ]
null
null
null
samples-python1/500-forrange.py
LunaticNeko/chandrakasem-lectures
5c50bf16e606f54cb341369c812e23a50f1eee94
[ "CC-BY-4.0", "MIT" ]
null
null
null
# for in range # Print numbers 20XX where XX is 1..20 for i in range(1, 21): print("20", f"{i:02d}", sep="") # ^ formatting # ^ variable/value to format # ^^ 2 digits, with leading zero # ^ integer
21.307692
51
0.458484
34
277
3.735294
0.794118
0.110236
0
0
0
0
0
0
0
0
0
0.08125
0.422383
277
12
52
23.083333
0.7125
0.66787
0
0
0
0
0.108434
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
1434ce0589c0a8b52de0980ed3988de52ad85862
351
py
Python
space_mission_design/parturbations/drag.py
astronautix/space_mission_design
d40c327a3d16199607dabe0e40c3ff8003d7f85f
[ "MIT" ]
3
2020-05-26T06:32:47.000Z
2020-10-04T03:44:12.000Z
space_mission_design/parturbations/drag.py
astronautix/space_mission_design
d40c327a3d16199607dabe0e40c3ff8003d7f85f
[ "MIT" ]
1
2020-05-25T13:11:00.000Z
2020-05-25T13:11:00.000Z
space_mission_design/parturbations/drag.py
astronautix/space_mission_design
d40c327a3d16199607dabe0e40c3ff8003d7f85f
[ "MIT" ]
2
2020-05-26T06:33:09.000Z
2021-11-03T15:44:00.000Z
"""Dealing with the atmospheric drag need to be included : - [ ] Accomodation Coefficient (Cook and other) - [ ] Diffusive coefficient - [ ] Abserbtion (?? cf Célestlab) - [ ] Drag coefficient from a sphere - [ ] Drag and lift coefficient from a plane (fonction of the angle) - [ ] Drag force for a sphere - [ ] Drag a...
25.071429
68
0.68661
47
351
5.12766
0.595745
0.124481
0.13278
0.116183
0.149378
0
0
0
0
0
0
0
0.210826
351
13
69
27
0.870036
0.974359
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
143684501c853bd1f0eecaff8605ff54a74eb3e2
1,429
py
Python
threatstack/icon_threatstack/connection/connection.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
threatstack/icon_threatstack/connection/connection.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2021-02-23T23:57:37.000Z
2021-02-23T23:57:37.000Z
threatstack/icon_threatstack/connection/connection.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
import insightconnect_plugin_runtime from .schema import ConnectionSchema, Input # Custom imports below from threatstack import ThreatStack from threatstack.errors import ThreatStackAPIError, ThreatStackClientError, APIRateLimitError from insightconnect_plugin_runtime.exceptions import ConnectionTestException import da...
38.621622
101
0.635409
145
1,429
6.041379
0.448276
0.027397
0.063927
0.03653
0
0
0
0
0
0
0
0.003865
0.275717
1,429
36
102
39.694444
0.842512
0.013996
0
0
0
0
0.042644
0
0
0
0
0
0
1
0.107143
false
0
0.214286
0
0.392857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1437eacaa0c14b24a0c529618cf50cc8b86516e3
101
py
Python
1-Iniciante-Beginner/1007 - Diferenca - Difference.py
Limarceu/Uri_Online_Judge
3328dacd5419b5a6bce4cb7dfc38e355e9fdab1f
[ "MIT" ]
null
null
null
1-Iniciante-Beginner/1007 - Diferenca - Difference.py
Limarceu/Uri_Online_Judge
3328dacd5419b5a6bce4cb7dfc38e355e9fdab1f
[ "MIT" ]
null
null
null
1-Iniciante-Beginner/1007 - Diferenca - Difference.py
Limarceu/Uri_Online_Judge
3328dacd5419b5a6bce4cb7dfc38e355e9fdab1f
[ "MIT" ]
null
null
null
a,b,c,d = int(input()),int(input()),int(input()),int(input()) print('DIFERENCA = {}'.format(a*b-c*d))
50.5
61
0.594059
19
101
3.157895
0.473684
0.533333
0.55
0.8
0.533333
0.533333
0
0
0
0
0
0
0.049505
101
2
62
50.5
0.625
0
0
0
0
0
0.137255
0
0
0
0
0
0
1
0
true
0
0
0
0
0.5
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
7
143819e8e38cf9f6b9a218a1dac3ea36b6289b08
3,719
py
Python
src/kgmk/ds/gen/models/tf/base.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/ds/gen/models/tf/base.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/ds/gen/models/tf/base.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras.models \ import ( Model, ) tf.random.set_seed(0) from tensorflow.keras import ( layers, activations, regularizers, initializers, losses, optimizers, metrics, callbacks, ) from typing import ( Tuple, List, ) def define_callbacks( sa...
17.460094
35
0.653401
414
3,719
5.678744
0.318841
0.057422
0.019141
0.052744
0.251808
0.215228
0.198639
0.183326
0.183326
0.131008
0
0.021277
0.241732
3,719
213
36
17.460094
0.812411
0
0
0.261364
0
0
0.011559
0
0
0
0
0
0
1
0.045455
false
0
0.022727
0.028409
0.107955
0.011364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
143a56af23b19f8f358aefd76e50c5a0b55a7cd6
578
py
Python
Project_Alibaba_workload/Alibaba_cluster_predict_Total/data_preprocess.py
sssssch/jupyter-examples
cf9e26e22dcfa263bcd26323527911cdbcc2cd61
[ "MIT" ]
2
2020-07-29T13:07:52.000Z
2021-01-15T09:22:07.000Z
Project_Alibaba_workload/Alibaba_cluster_predict_Total/data_preprocess.py
sssssch/jupyter-examples
cf9e26e22dcfa263bcd26323527911cdbcc2cd61
[ "MIT" ]
null
null
null
Project_Alibaba_workload/Alibaba_cluster_predict_Total/data_preprocess.py
sssssch/jupyter-examples
cf9e26e22dcfa263bcd26323527911cdbcc2cd61
[ "MIT" ]
null
null
null
#-*-coding:utf-8-*- import pandas as pd dataset = pd.read_csv( 'machine_usage_headed.csv', index_col=1) print(dataset.head()) dataset.drop('m_number', axis=1, inplace=True) dataset.drop('mem_gps', axis=1, inplace=True) dataset.drop('mpki', axis=1, inplace=True) print(dataset.head()) dataset.columns = [ '...
19.931034
46
0.688581
87
578
4.37931
0.517241
0.094488
0.125984
0.125984
0.141732
0.141732
0
0
0
0
0
0.013944
0.131488
578
29
47
19.931034
0.74502
0.058824
0
0.15
0
0
0.255985
0.090239
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0.15
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
143a71f0538e957183a42d1dc096bccb0dd0d05c
345
py
Python
Problems/Two Pointers/easy/MergeStringAlternately/test_merge_string_alternately.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Two Pointers/easy/MergeStringAlternately/test_merge_string_alternately.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Two Pointers/easy/MergeStringAlternately/test_merge_string_alternately.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from unittest import TestCase from merge_string_alternately import mergeAlternately class Test(TestCase): def test_merge_alternately(self): self.assertEqual(mergeAlternately("abc", "pqr"), "apbqcr") self.assertEqual(mergeAlternately("ab", "pqrs"), "apbqrs") self.assertEqual(mergeAlternately...
43.125
66
0.727536
36
345
6.861111
0.611111
0.182186
0.376518
0
0
0
0
0
0
0
0
0
0.142029
345
8
67
43.125
0.834459
0
0
0
0
0
0.104046
0
0
0
0
0
0.428571
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
1
0
0
4
143b49e77f95faed0f33ec50d94bcc182f1daf5e
402
py
Python
torchreid/__init__.py
iankuoli/OSNet-TopDrop
3ab57ba507e9f8939762e27834137172375cd91c
[ "MIT" ]
null
null
null
torchreid/__init__.py
iankuoli/OSNet-TopDrop
3ab57ba507e9f8939762e27834137172375cd91c
[ "MIT" ]
null
null
null
torchreid/__init__.py
iankuoli/OSNet-TopDrop
3ab57ba507e9f8939762e27834137172375cd91c
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function __author__ = 'Rodolfo Quispe' __description__ = 'Top Batch Dropblock for Person Re-Identification' __url__ = 'https://github.com/RQuispeC/top-batch-dropblock' __based_on__ = 'https://github.com/KaiyangZhou/deep-person-reid' from . import ( ...
22.333333
68
0.733831
47
402
5.702128
0.723404
0.074627
0.119403
0
0
0
0
0
0
0
0
0
0.169154
402
17
69
23.647059
0.802395
0
0
0
0
0
0.38806
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
143cd949492ab20063e08fcf058c7b6fcccef20e
1,425
py
Python
examples/05-gray-scott-compression/paraview/animations.py
CODARcode/cheetah
2d7148fad2e549a080e902e4fac180d9f22a9dc9
[ "Apache-2.0" ]
8
2018-07-11T19:55:37.000Z
2022-02-03T20:55:32.000Z
examples/05-gray-scott-compression/paraview/animations.py
CODARcode/cheetah
2d7148fad2e549a080e902e4fac180d9f22a9dc9
[ "Apache-2.0" ]
196
2017-06-13T14:48:05.000Z
2022-03-02T21:53:39.000Z
examples/05-gray-scott-compression/paraview/animations.py
CODARcode/cheetah
2d7148fad2e549a080e902e4fac180d9f22a9dc9
[ "Apache-2.0" ]
7
2018-07-02T16:50:43.000Z
2022-02-08T16:06:54.000Z
from paraview.simple import * vars = ['U', 'V'] Xs = [1, 16] Ts = [0, 23] def look_at_angle(view1): view1.CameraPosition = [-91.79570803687004, -4.511485753227961, 32.24697211000749] view1.CameraFocalPoint = [15.499600000000001, 15.499600000000001, 15.499600000000001] view1.CameraViewUp = [0.1508633701950...
43.181818
89
0.590175
159
1,425
5.213836
0.377358
0.091677
0.096502
0.168878
0.470446
0.390832
0.390832
0.303981
0.303981
0.303981
0
0.233627
0.282105
1,425
32
90
44.53125
0.576735
0
0
0.344828
0
0
0.05193
0
0
0
0
0
0
1
0.034483
false
0
0.034483
0
0.068966
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
143f866b2d562d6e58d70545f8b51ba4cdbd1e78
486
py
Python
gnosis/eth/oracles/__init__.py
titandac/gnosis-py
cf0af4f25e64b22256eabb415d0f3fe3a6180b14
[ "MIT" ]
64
2018-09-26T19:56:50.000Z
2022-03-18T21:45:59.000Z
gnosis/eth/oracles/__init__.py
zhanghao-ic/gnosis-py
d2a5912547b7d1b576c826909f4c1d0155db536f
[ "MIT" ]
151
2018-09-10T21:42:05.000Z
2022-03-31T12:33:31.000Z
gnosis/eth/oracles/__init__.py
zhanghao-ic/gnosis-py
d2a5912547b7d1b576c826909f4c1d0155db536f
[ "MIT" ]
50
2018-12-13T20:43:46.000Z
2022-03-30T09:32:32.000Z
# flake8: noqa F401 from .oracles import ( AaveOracle, BalancerOracle, CannotGetPriceFromOracle, ComposedPriceOracle, CreamOracle, CurveOracle, EnzymeOracle, InvalidPriceFromOracle, KyberOracle, MooniswapOracle, OracleException, PoolTogetherOracle, PriceOracle, Pr...
19.44
29
0.711934
27
486
12.814815
1
0
0
0
0
0
0
0
0
0
0
0.013441
0.234568
486
24
30
20.25
0.916667
0.034979
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.043478
0
0.043478
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
14419e865d5310216570696263e0af4f4d542f91
1,192
py
Python
glaciersat/tests/test_utils.py
jlandmann/glaciersat
7d4b108c17a31cc85e568193024dabc2d590caa3
[ "MIT" ]
2
2021-02-18T22:06:04.000Z
2021-06-23T13:04:20.000Z
glaciersat/tests/test_utils.py
jlandmann/glaciersat
7d4b108c17a31cc85e568193024dabc2d590caa3
[ "MIT" ]
null
null
null
glaciersat/tests/test_utils.py
jlandmann/glaciersat
7d4b108c17a31cc85e568193024dabc2d590caa3
[ "MIT" ]
1
2021-12-08T09:03:54.000Z
2021-12-08T09:03:54.000Z
import pytest from glaciersat.tests import requires_credentials from glaciersat.utils import * import configobj @requires_credentials def test_get_credentials(): cred = get_credentials(credfile=None) assert isinstance(cred, configobj.ConfigObj) cred = get_credentials(credfile='.\\.credentials') assert...
29.073171
57
0.676174
176
1,192
4.494318
0.295455
0.088496
0.044248
0.063211
0.480405
0.359039
0.337547
0.2933
0.247788
0.154235
0
0.037267
0.189597
1,192
40
58
29.8
0.781574
0.088926
0
0.321429
0
0
0.013876
0
0
0
0
0
0.214286
1
0.071429
false
0
0.142857
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1443349cfe7290e5fde2e9b993127fa2b050e3ee
2,103
py
Python
wildlifecompliance/migrations/0354_remediationactiontaken_remediationactiontakendocument.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
1
2020-12-07T17:12:40.000Z
2020-12-07T17:12:40.000Z
wildlifecompliance/migrations/0354_remediationactiontaken_remediationactiontakendocument.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
14
2020-01-08T08:08:26.000Z
2021-03-19T22:59:46.000Z
wildlifecompliance/migrations/0354_remediationactiontaken_remediationactiontakendocument.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
15
2020-01-08T08:02:28.000Z
2021-11-03T06:48:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2019-12-20 07:11 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('wildlifecompliance', '0353_auto_20191220_1334'), ] ...
45.717391
183
0.627675
196
2,103
6.5
0.403061
0.077708
0.032967
0.051805
0.436421
0.381476
0.381476
0.381476
0.310832
0.310832
0
0.026482
0.245839
2,103
45
184
46.733333
0.776797
0.032335
0
0.421053
1
0
0.247047
0.144685
0
0
0
0
0
1
0
false
0
0.078947
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
1443eba36140a106439af6c4b73f1d1fea95754f
214
py
Python
files/read_lines.py
nv-krishna/python-crash-course
d481faeb2196712cd52ca1d34dc1fe967d13712f
[ "Apache-2.0" ]
2
2020-11-02T05:52:33.000Z
2021-06-09T01:28:22.000Z
files/read_lines.py
nv-krishna/python-crash-course
d481faeb2196712cd52ca1d34dc1fe967d13712f
[ "Apache-2.0" ]
null
null
null
files/read_lines.py
nv-krishna/python-crash-course
d481faeb2196712cd52ca1d34dc1fe967d13712f
[ "Apache-2.0" ]
2
2021-04-08T05:26:04.000Z
2021-06-09T01:28:23.000Z
file_name = 'pi_digits.txt' with open(file_name) as file_object: lines = file_object.readlines() pi_string = '' for line in lines: pi_string += line.strip() print(pi_string) print(len(pi_string))
19.454545
36
0.691589
33
214
4.212121
0.545455
0.230216
0
0
0
0
0
0
0
0
0
0
0.186916
214
11
37
19.454545
0.798851
0
0
0
0
0
0.060465
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
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
1444c2a69f4ae5a67cb69bbbd85ac69cbd3a414e
4,553
py
Python
scripts/pred_clef2018.py
rdenaux/acred
ffe44953a96338acfe3860a9898e7f0b70b5c9cb
[ "Apache-2.0" ]
8
2020-08-31T04:14:22.000Z
2021-09-29T06:00:31.000Z
scripts/pred_clef2018.py
expertailab/acred
ee45840c942ef2fac4f26da8d756b7c47e42847c
[ "Apache-2.0" ]
null
null
null
scripts/pred_clef2018.py
expertailab/acred
ee45840c942ef2fac4f26da8d756b7c47e42847c
[ "Apache-2.0" ]
1
2020-10-07T08:09:29.000Z
2020-10-07T08:09:29.000Z
# # 2020 ExpertSystem # '''Script for generating predictions for Task2 of CLEF 2018 using the acred predictor See https://github.com/clef2018-factchecking/clef2018-factchecking See also scripts/fetch-data.sh, which should download the v1.0 release and place it in the `data/evaluation/` folder. ''' import argparse im...
32.755396
91
0.62025
593
4,553
4.627319
0.391231
0.023688
0.018586
0.012026
0.054665
0.021137
0
0
0
0
0
0.013049
0.259389
4,553
138
92
32.992754
0.800712
0.09642
0
0.066667
0
0
0.190929
0.016337
0
0
0
0
0.038095
1
0.038095
false
0
0.095238
0
0.180952
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1446ef1bbef7e5c334c8b012e9fde1d3a271f09c
2,712
py
Python
vnpy_pro/data/source/tdxdata.py
zhangjf76/vnpy
b7c507a90c84a6a3c34831d8daf5f8947b9858d2
[ "MIT" ]
1
2020-06-12T14:42:02.000Z
2020-06-12T14:42:02.000Z
vnpy_pro/data/source/tdxdata.py
zhangjf76/vnpy
b7c507a90c84a6a3c34831d8daf5f8947b9858d2
[ "MIT" ]
null
null
null
vnpy_pro/data/source/tdxdata.py
zhangjf76/vnpy
b7c507a90c84a6a3c34831d8daf5f8947b9858d2
[ "MIT" ]
null
null
null
from datetime import timedelta, datetime from typing import List from vnpy.trader.constant import Exchange, Interval from vnpy.trader.object import BarData, HistoryRequest from vnpy_pro.data.source.dataapi import SourceDataApi from vnpy_pro.data.tdx.tdx_future_data import TdxFutureData INTERVAL_VT2JQ = { Interva...
28.851064
86
0.588127
294
2,712
5.238095
0.35034
0.020779
0.025974
0.019481
0
0
0
0
0
0
0
0.026923
0.328909
2,712
93
87
29.16129
0.819231
0.057153
0
0.058824
0
0
0.010597
0
0
0
0
0
0
1
0.044118
false
0.029412
0.088235
0
0.205882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
144811c35936d86235f73bcc74dc537fd45c6aff
3,796
py
Python
accounts/migrations/0001_initial.py
qinyanjuidavid/Dhana
5a97ab224897bb87ce69d476a88930f3012ae7c5
[ "MIT" ]
null
null
null
accounts/migrations/0001_initial.py
qinyanjuidavid/Dhana
5a97ab224897bb87ce69d476a88930f3012ae7c5
[ "MIT" ]
null
null
null
accounts/migrations/0001_initial.py
qinyanjuidavid/Dhana
5a97ab224897bb87ce69d476a88930f3012ae7c5
[ "MIT" ]
1
2022-02-14T19:11:08.000Z
2022-02-14T19:11:08.000Z
# Generated by Django 4.0.1 on 2022-02-01 12:57 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.db.models.manager import phonenumber_field.modelfields class Migration(migrations.Migration): initial = True dependencies = [ ] o...
53.464789
168
0.613804
399
3,796
5.671679
0.265664
0.111799
0.092797
0.058772
0.475475
0.475475
0.351745
0.322581
0.283694
0.283694
0
0.014629
0.243678
3,796
70
169
54.228571
0.773598
0.011855
0
0.412698
1
0
0.129368
0
0
0
0
0
0
1
0
false
0.015873
0.079365
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
144bb1749b574daae9018e81890b3f972d50fc99
1,125
py
Python
draalcore/test_utils/upload.py
jojanper/draalcore
3d3f5a53efe32c721c34d7e48267328a4e9e8402
[ "MIT" ]
1
2017-04-25T10:54:55.000Z
2017-04-25T10:54:55.000Z
draalcore/test_utils/upload.py
jojanper/draalcore
3d3f5a53efe32c721c34d7e48267328a4e9e8402
[ "MIT" ]
1
2022-02-10T06:48:36.000Z
2022-02-10T06:48:36.000Z
draalcore/test_utils/upload.py
jojanper/draalcore
3d3f5a53efe32c721c34d7e48267328a4e9e8402
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """File upload utility""" # System imports import os TEST_FILE_IMAGE = os.path.join(os.path.dirname(__file__), 'pic.jpg') TEST_FILE_CONTENT_HEADER = 'attachment; filename="pic.jpg"' TEST_FILE_INVALID = os.path.join(os.path.dirname(__file__), 'test.invalid') TEST_FILE_GIF...
32.142857
89
0.673778
161
1,125
4.347826
0.310559
0.182857
0.071429
0.085714
0.201429
0.201429
0.201429
0.085714
0
0
0
0.011931
0.180444
1,125
34
90
33.088235
0.747289
0.068444
0
0
0
0
0.126923
0
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
144c3cf3a9fb5486330ac336fdca1f611c47ecb6
3,029
py
Python
mudpi/utils.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
163
2020-02-17T16:34:54.000Z
2022-02-28T23:12:11.000Z
mudpi/utils.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
28
2020-05-05T19:42:25.000Z
2021-08-04T18:36:32.000Z
mudpi/utils.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
31
2020-02-27T18:30:42.000Z
2022-01-18T21:14:56.000Z
import sys import json import socket import inspect import subprocess from mudpi.extensions import Component, BaseExtension, BaseInterface def get_ip(): s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) try: # doesn't even have to be reachable s.connect(('10.255.255.255', 1)) IP = s....
29.125
86
0.601849
366
3,029
4.852459
0.322404
0.027027
0.018018
0.028716
0.264077
0.264077
0.241554
0.241554
0.228041
0.228041
0
0.011045
0.282602
3,029
104
87
29.125
0.806259
0.179267
0
0.308824
0
0
0.055184
0
0
0
0
0
0
1
0.117647
false
0
0.088235
0
0.426471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
144e7dc3bdd38db6b198578e9cb50720e54398ed
695
py
Python
Employee/models.py
TheStrixCoder/Parking-Lot-Management
dcb4c439928f9e2c8623e82e3acb860cf50d7041
[ "MIT" ]
null
null
null
Employee/models.py
TheStrixCoder/Parking-Lot-Management
dcb4c439928f9e2c8623e82e3acb860cf50d7041
[ "MIT" ]
null
null
null
Employee/models.py
TheStrixCoder/Parking-Lot-Management
dcb4c439928f9e2c8623e82e3acb860cf50d7041
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Employee(models.Model): user_name = models.CharField(u'user_name',default='abc',max_length = 20) user_first_name = models.CharField(u'Enter first name',max_length=15,default='Chaman') user_last_name = models.CharField(u'Enter first name',max_le...
36.578947
95
0.713669
98
695
4.836735
0.428571
0.158228
0.168776
0.126582
0.261603
0.261603
0.261603
0.261603
0.261603
0.261603
0
0.017301
0.168345
695
18
96
38.611111
0.802768
0.034532
0
0
0
0
0.189836
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0.083333
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
144f22d32bbe5f4da41b97bb3ce594626e7bd532
1,421
py
Python
pyctuator/health/db_health_provider.py
TheCodingLand/pyctuator
a5c9f41e426b006892020ce3b98d5e56c27e9dbc
[ "Apache-2.0" ]
1
2020-10-24T16:31:15.000Z
2020-10-24T16:31:15.000Z
pyctuator/health/db_health_provider.py
yanoom/pyctuator
b3aff058e1193eb6db8b887b1c1cf8c116819f82
[ "Apache-2.0" ]
1
2020-07-06T20:37:11.000Z
2020-07-06T20:37:11.000Z
pyctuator/health/db_health_provider.py
yanoom/pyctuator
b3aff058e1193eb6db8b887b1c1cf8c116819f82
[ "Apache-2.0" ]
1
2020-07-02T21:37:52.000Z
2020-07-02T21:37:52.000Z
import importlib.util import time from dataclasses import dataclass from typing import Optional from sqlalchemy.engine import Engine from sqlalchemy.exc import OperationalError from pyctuator.health.health_provider import HealthProvider, HealthStatus, Status, HealthDetails @dataclass class DbHealthDetails(HealthDet...
28.42
104
0.683322
152
1,421
6.302632
0.407895
0.06263
0.08142
0.100209
0.112735
0
0
0
0
0
0
0.004541
0.225194
1,421
49
105
29
0.865577
0
0
0.057143
0
0
0.043631
0
0
0
0
0
0
1
0.114286
false
0
0.228571
0.057143
0.685714
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
144ff03552b9b5f4adb81f6c8238173d57c8615f
482
py
Python
examples/serializers/blowfishtest.py
Jumpscale/jumpscale_examples7
7d7be2401489a0c5465950c66bbdbb266fe57fe7
[ "Apache-2.0" ]
1
2015-10-26T10:38:37.000Z
2015-10-26T10:38:37.000Z
examples/serializers/blowfishtest.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
examples/serializers/blowfishtest.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
import os import struct from JumpScale import j import JumpScale.baselib.serializers j.application.start("blowfishtest") from random import randrange msg = "" for i in range(1000): msg += chr(randrange(0, 256)) key = "" for i in range(56): key += chr(randrange(0, 256)) # b means blowfish s = j.db.serial...
14.606061
52
0.690871
76
482
4.381579
0.486842
0.036036
0.054054
0.099099
0
0
0
0
0
0
0
0.05
0.170124
482
32
53
15.0625
0.7825
0.033195
0
0
0
0
0.028017
0
0
0
0
0
0
1
0
false
0
0.263158
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1451936f6556fb61e6556f37e17327936762d700
2,385
py
Python
plico_motor/gui/motor_control_gui.py
ArcetriAdaptiveOptics/plico_motor
955be506c6dcd21b1cc794790008f33272b9c99f
[ "MIT" ]
null
null
null
plico_motor/gui/motor_control_gui.py
ArcetriAdaptiveOptics/plico_motor
955be506c6dcd21b1cc794790008f33272b9c99f
[ "MIT" ]
null
null
null
plico_motor/gui/motor_control_gui.py
ArcetriAdaptiveOptics/plico_motor
955be506c6dcd21b1cc794790008f33272b9c99f
[ "MIT" ]
null
null
null
import sys import plico_motor from guietta import Gui, _, G, Exceptions class Runner(object): def __init__(self): self.motor = None def _setUp(self, host='localhost', port=7200, axis=1): def moveby(gui): nsteps = int(gui.nstepsby) if self.motor: self...
26.5
81
0.472537
238
2,385
4.5
0.273109
0.092437
0.041083
0.042017
0.063492
0.044818
0
0
0
0
0
0.00563
0.404193
2,385
89
82
26.797753
0.748065
0
0
0.086957
0
0
0.077181
0
0
0
0
0
0
1
0.130435
false
0.014493
0.043478
0
0.188406
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
145305b18a0c50cfad6baef16c32b27105d46bdd
21,225
py
Python
emma/core/metadata.py
djangowebstudio/emma
afbdaa5c02b4164687356755fddba307eb682ef4
[ "BSD-3-Clause" ]
null
null
null
emma/core/metadata.py
djangowebstudio/emma
afbdaa5c02b4164687356755fddba307eb682ef4
[ "BSD-3-Clause" ]
null
null
null
emma/core/metadata.py
djangowebstudio/emma
afbdaa5c02b4164687356755fddba307eb682ef4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ metadata.py Created by Geert Dekkers on 2008-02-11. Copyright (c) 2008, 2009 Geert Dekkers Web Studio, 2010, 2011, 2012 Django Web Studio. All rights reserved. """ import string import sys import os import unittest import subprocess import re import datetime import time from...
44.403766
157
0.527962
2,193
21,225
5.045144
0.243502
0.043022
0.013557
0.017625
0.316612
0.283623
0.269975
0.244035
0.214479
0.214479
0
0.015504
0.367915
21,225
478
158
44.403766
0.809183
0.039058
0
0.343348
0
0.004292
0.141115
0.021654
0.021459
0
0
0.002092
0
0
null
null
0.021459
0.04721
null
null
0.025751
0
0
0
null
0
0
0
0
0
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