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
202ff2ab4e83bf93b0bafafa77e076786998688b
1,805
py
Python
Python/challenges/abs_learning_tasks/coin_flip_streak.py
Kenneth-Macharia/Code-practise
3c94f1df1e874ea2e4dcf0e55ee11d09c0eeb16f
[ "MIT" ]
null
null
null
Python/challenges/abs_learning_tasks/coin_flip_streak.py
Kenneth-Macharia/Code-practise
3c94f1df1e874ea2e4dcf0e55ee11d09c0eeb16f
[ "MIT" ]
3
2020-05-31T08:55:40.000Z
2020-05-31T08:56:09.000Z
Python/challenges/abs_learning_tasks/coin_flip_streak.py
Kenneth-Macharia/Learning
0948dda73d94b25f96fad7e9ff3523782b0a407a
[ "MIT" ]
null
null
null
''' Coin Flip Streaks Write a program to find out how often a streak of six heads or a streak of six tails comes up in a randomly generated list of heads and tails. Your program breaks up the experiment into two parts: the first part generates a list of randomly selected 'heads' and 'tails' values, and the second part ...
41.022727
636
0.606648
279
1,805
3.878136
0.437276
0.025878
0.024954
0.033272
0.064695
0.03512
0
0
0
0
0
0.039137
0.306371
1,805
44
637
41.022727
0.82508
0.633241
0
0.285714
1
0
0.043277
0
0
0
0
0
0
1
0.047619
false
0
0.047619
0
0.095238
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2032bcb035dea2b46fa6367779a6050c8ab2923e
2,112
py
Python
tests/models/FNN_test.py
HazzaCheng/DeepCTR
7ab8bc6a70982aa79c36c20678c98becb7f291b1
[ "Apache-2.0" ]
2
2020-11-25T05:36:30.000Z
2020-11-25T05:42:04.000Z
tests/models/FNN_test.py
xiaobocser/DeepCTR
66d173e5736eae2e19c32e28e6d656ef873461a5
[ "Apache-2.0" ]
1
2022-02-10T06:36:12.000Z
2022-02-10T06:36:12.000Z
tests/models/FNN_test.py
xiaobocser/DeepCTR
66d173e5736eae2e19c32e28e6d656ef873461a5
[ "Apache-2.0" ]
1
2021-12-21T14:09:40.000Z
2021-12-21T14:09:40.000Z
import pytest import tensorflow as tf from deepctr.estimator import FNNEstimator from deepctr.models import FNN from ..utils import check_model, get_test_data, SAMPLE_SIZE, get_test_data_estimator, check_estimator, \ Estimator_TEST_TF1 @pytest.mark.parametrize( 'sparse_feature_num,dense_feature_num', [(1...
33.52381
122
0.666193
275
2,112
4.654545
0.2
0.171875
0.1375
0.189063
0.713281
0.696875
0.614063
0.5625
0.5625
0.433594
0
0.019963
0.241004
2,112
62
123
34.064516
0.77854
0.22017
0
0.324324
0
0
0.058788
0.044091
0
0
0
0
0
1
0.054054
false
0.027027
0.135135
0
0.243243
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
203e4cc5353d0a8e8a74e804fb378c607b69fa18
1,575
py
Python
iress/xplan/edai.py
iress/iress-xplan-api-examples
272d79d5dfad665602f0f7e3d2fb355f25946121
[ "MIT" ]
1
2020-10-15T03:45:38.000Z
2020-10-15T03:45:38.000Z
iress/xplan/edai.py
iress/iress-xplan-api-examples
272d79d5dfad665602f0f7e3d2fb355f25946121
[ "MIT" ]
null
null
null
iress/xplan/edai.py
iress/iress-xplan-api-examples
272d79d5dfad665602f0f7e3d2fb355f25946121
[ "MIT" ]
2
2020-01-30T04:54:15.000Z
2020-01-31T04:54:54.000Z
import json import time from typing import List, Dict, Any, Union import requests from iress.xplan.session import Session class EDAICall: def __init__(self, session: Session) -> None: """ EDAI client class for using Xplan EDAI Args: session (Session): The current Session obj...
27.631579
92
0.575873
189
1,575
4.650794
0.333333
0.100114
0.081911
0.043231
0.075085
0.075085
0.075085
0.075085
0
0
0
0.008057
0.290794
1,575
56
93
28.125
0.778872
0.060952
0
0.052632
0
0
0.097985
0.036831
0
0
0
0
0
1
0.184211
false
0
0.131579
0.131579
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
1
0
0
0
1
203e5de3b71b066228cdbe3a0918b14fabb90796
1,396
py
Python
core/message.py
fkolacek/ClapTrap
f6787df223b3b4066247d696d9c1a1118c70d0fa
[ "MIT" ]
null
null
null
core/message.py
fkolacek/ClapTrap
f6787df223b3b4066247d696d9c1a1118c70d0fa
[ "MIT" ]
1
2016-01-28T07:26:31.000Z
2016-01-30T17:35:24.000Z
core/message.py
fkolacek/ClapTrap
f6787df223b3b4066247d696d9c1a1118c70d0fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import re class Message(object): def __init__(self, raw): self.raw = raw self.channel = None self.date = None self.nick = None self.message = None self.system = False regularMessage = '^.+\/([^\/]+)\/out\: ([0-9\-]+ [0-9\:]+) <(.+)> (.*)$' ...
23.266667
86
0.581662
170
1,396
4.752941
0.311765
0.122525
0.074257
0.014851
0.279703
0.262376
0.180693
0.180693
0
0
0
0.01223
0.238539
1,396
59
87
23.661017
0.747883
0.030086
0
0.162791
0
0
0.105769
0
0
0
0
0
0
0
null
null
0
0.023256
null
null
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
1
0
0
0
0
0
0
0
0
1
203ea52104a3ae2c0de8fb471203c3c2896370bf
2,517
py
Python
apps/fyle/migrations/0003_auto_20200929_1242.py
fylein/fyle-netsuite-api
d7957642524698208db368582e7166a9f392e439
[ "MIT" ]
1
2021-03-08T08:13:36.000Z
2021-03-08T08:13:36.000Z
apps/fyle/migrations/0003_auto_20200929_1242.py
fylein/fyle-netsuite-api
d7957642524698208db368582e7166a9f392e439
[ "MIT" ]
82
2020-11-24T10:17:29.000Z
2022-03-30T07:27:26.000Z
apps/fyle/migrations/0003_auto_20200929_1242.py
fylein/fyle-netsuite-api
d7957642524698208db368582e7166a9f392e439
[ "MIT" ]
1
2020-05-27T04:20:44.000Z
2020-05-27T04:20:44.000Z
# Generated by Django 3.0.3 on 2020-09-29 12:42 import apps.fyle.models import django.contrib.postgres.fields import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('workspaces', '0002...
53.553191
273
0.687723
287
2,517
5.8223
0.376307
0.043088
0.062837
0.08079
0.354877
0.259725
0.214243
0.191502
0.191502
0.191502
0
0.01884
0.198649
2,517
46
274
54.717391
0.809618
0.017878
0
0.225
1
0
0.261134
0.068421
0
0
0
0
0
1
0
false
0
0.125
0
0.2
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
2040d13076137c694be34f4514e34fa94f1f726b
433
py
Python
container_service_extension/telemetry/constants.py
YiouZhu1010/container-service-extension
f36bc250d226609b9a64e99073bb7a752ffb9f9b
[ "BSD-2-Clause" ]
null
null
null
container_service_extension/telemetry/constants.py
YiouZhu1010/container-service-extension
f36bc250d226609b9a64e99073bb7a752ffb9f9b
[ "BSD-2-Clause" ]
null
null
null
container_service_extension/telemetry/constants.py
YiouZhu1010/container-service-extension
f36bc250d226609b9a64e99073bb7a752ffb9f9b
[ "BSD-2-Clause" ]
null
null
null
# container-service-extension # Copyright (c) 2019 VMware, Inc. All Rights Reserved. # SPDX-License-Identifier: BSD-2-Clause # End point of Vmware Analytics staging server # TODO() : This URL should reflect production server during release VAC_URL = "https://vcsa.vmware.com/ph-stg/api/hyper/send/" # Value of collecto...
36.083333
67
0.764434
68
433
4.823529
0.823529
0.067073
0
0
0
0
0
0
0
0
0
0.018868
0.143187
433
11
68
39.363636
0.865229
0.766744
0
0
0
0
0.569892
0
0
0
0
0.090909
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
20415c7ece71517a3843498af0bc7c1cd86108df
396
py
Python
scripts/submit.py
andrewmzhang/displayadv
b4b99ff68b209c1556c96ae892241a8677a373b0
[ "MIT" ]
120
2015-01-02T09:09:52.000Z
2021-12-04T03:47:43.000Z
scripts/submit.py
silky/display-advertising-challenge
6507f199d274ea9383776823fa27070f34669831
[ "MIT" ]
null
null
null
scripts/submit.py
silky/display-advertising-challenge
6507f199d274ea9383776823fa27070f34669831
[ "MIT" ]
87
2015-01-02T09:11:35.000Z
2022-02-02T13:24:31.000Z
''' @author: Guocong Song ''' import pandas as pd import sys import numpy as np import gzip df = pd.read_csv(sys.stdin) p = 0.55 * df.p1 + 0.15 * df.p2 + 0.15 * df.p3 + 0.15 * df.p4 df['Predicted'] = prob = 1.0 / (1.0 + np.exp(-p)) submission = 'submission.cvs.gz' print('saving to', submission, '...') with gzip.open...
22
61
0.621212
71
396
3.43662
0.56338
0.036885
0.061475
0
0
0
0
0
0
0
0
0.060976
0.171717
396
17
62
23.294118
0.682927
0.05303
0
0
0
0
0.138965
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
204181e629560ca4676724c00cdb4a7126c21840
159
py
Python
Solutions/OnlineSites/CodeChef/Practice/Beginner/Life, the Universe, and Everything/TEST.py
fakhirsh/ProblemSolving
90da7dd9d976ffac28ec8dab308ba28a3387e796
[ "MIT" ]
null
null
null
Solutions/OnlineSites/CodeChef/Practice/Beginner/Life, the Universe, and Everything/TEST.py
fakhirsh/ProblemSolving
90da7dd9d976ffac28ec8dab308ba28a3387e796
[ "MIT" ]
null
null
null
Solutions/OnlineSites/CodeChef/Practice/Beginner/Life, the Universe, and Everything/TEST.py
fakhirsh/ProblemSolving
90da7dd9d976ffac28ec8dab308ba28a3387e796
[ "MIT" ]
null
null
null
quit = False flag = False while not quit : num = int(input("")) if num == 42: quit = True; else: print(num)
12.230769
24
0.427673
18
159
3.777778
0.722222
0
0
0
0
0
0
0
0
0
0
0.023256
0.45912
159
12
25
13.25
0.767442
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2043e0947c7267694eefb78a5b12b5d6bb6896eb
1,373
py
Python
lib/mplcairo/gtk.py
anntzer/mplcairo
74c27c3dbd54c6c59fa0fd212d9c2bacd3275649
[ "MIT" ]
19
2017-10-04T06:22:18.000Z
2019-05-30T20:05:20.000Z
lib/mplcairo/gtk.py
anntzer/mpl_cairo
74c27c3dbd54c6c59fa0fd212d9c2bacd3275649
[ "MIT" ]
13
2017-12-28T12:38:48.000Z
2019-03-28T11:51:31.000Z
lib/mplcairo/gtk.py
anntzer/mpl_cairo
74c27c3dbd54c6c59fa0fd212d9c2bacd3275649
[ "MIT" ]
16
2018-03-15T11:57:47.000Z
2019-03-23T06:03:06.000Z
from .import _util from .base import FigureCanvasCairo _mpl_gtk, _backend_obj = _util.get_matplotlib_gtk_backend() class FigureCanvasGTKCairo(FigureCanvasCairo, _mpl_gtk.FigureCanvas): def _renderer_init(self): # matplotlib#17461 (<3.3). pass def on_draw_event(self, widget, ctx): # We alwa...
35.205128
79
0.690459
171
1,373
5.292398
0.532164
0.048619
0.050829
0.046409
0
0
0
0
0
0
0
0.008459
0.225055
1,373
38
80
36.131579
0.842105
0.225055
0
0
0
0
0
0
0
0
0
0.026316
0
1
0.12
false
0.04
0.08
0
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
204642dcec4d9b33ca993133580849d1235fa6bc
574
py
Python
code/47smooth_triangular_numbers/sol_581.py
bhavinjawade/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
2
2020-07-16T08:16:32.000Z
2020-10-01T07:16:48.000Z
code/47smooth_triangular_numbers/sol_581.py
Psingh12354/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
null
null
null
code/47smooth_triangular_numbers/sol_581.py
Psingh12354/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
1
2021-05-07T18:06:08.000Z
2021-05-07T18:06:08.000Z
# -*- coding: utf-8 -*- ''' File name: code\47smooth_triangular_numbers\sol_581.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x ''' # Solution to Project Euler Problem #581 :: 47-smooth triangular numbers # # For more information see: # https://projecteuler.net/problem=581 # P...
21.259259
72
0.684669
91
574
4.285714
0.747253
0.130769
0
0
0
0
0
0
0
0
0
0.054113
0.195122
574
26
73
22.076923
0.790043
0.56446
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
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
204678913a713780043935bb4271d178809ac023
8,701
py
Python
mi/idk/test/test_comm_config.py
ronkyo/mi-instrument
ad6188ea9d7d941292f078a58718d09b46cc4fed
[ "BSD-2-Clause" ]
null
null
null
mi/idk/test/test_comm_config.py
ronkyo/mi-instrument
ad6188ea9d7d941292f078a58718d09b46cc4fed
[ "BSD-2-Clause" ]
null
null
null
mi/idk/test/test_comm_config.py
ronkyo/mi-instrument
ad6188ea9d7d941292f078a58718d09b46cc4fed
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ @package mi.idk.test.test_comm_config @file mi.idk/test/test_comm_config.py @author Bill French @brief test metadata object """ __author__ = 'Bill French' __license__ = 'Apache 2.0' from os.path import basename, dirname from os import makedirs from os import remove from os.path import exist...
33.724806
114
0.634065
1,073
8,701
4.905871
0.178006
0.051292
0.055851
0.041033
0.520137
0.43693
0.428191
0.367211
0.367211
0.361322
0
0.006756
0.251465
8,701
257
115
33.856031
0.801474
0.063441
0
0.375723
0
0
0.092402
0.006802
0
0
0
0
0.132948
0
null
null
0
0.104046
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
204e2770b4caf42f9ad2e7406797085e47038f44
1,269
py
Python
src/testTera.py
yshuynh/DetectTextFromImage
3efe792d1db4d4ee7503e9a75156fd11e851cda3
[ "MIT" ]
null
null
null
src/testTera.py
yshuynh/DetectTextFromImage
3efe792d1db4d4ee7503e9a75156fd11e851cda3
[ "MIT" ]
null
null
null
src/testTera.py
yshuynh/DetectTextFromImage
3efe792d1db4d4ee7503e9a75156fd11e851cda3
[ "MIT" ]
null
null
null
from gtts import gTTS # import the following libraries # will convert the image to text string import pytesseract # adds image processing capabilities from PIL import Image # converts the text to speech # import pyttsx3 #translates into the mentioned language # from googletran...
31.725
95
0.648542
162
1,269
5.061728
0.537037
0.02561
0.02439
0
0
0
0
0
0
0
0
0.007667
0.280536
1,269
39
96
32.538462
0.890471
0.698188
0
0
0
0
0.063889
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2050b2776d9cece2d2278ee8b0e3efa4d4354a2c
16,480
py
Python
tests/parser.py
aaditya-panik/rule-engine
7a48664ddbfabf7a8aa9b544eab0e9eccda029e0
[ "BSD-3-Clause" ]
null
null
null
tests/parser.py
aaditya-panik/rule-engine
7a48664ddbfabf7a8aa9b544eab0e9eccda029e0
[ "BSD-3-Clause" ]
null
null
null
tests/parser.py
aaditya-panik/rule-engine
7a48664ddbfabf7a8aa9b544eab0e9eccda029e0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # tests/parser.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of co...
49.047619
152
0.760619
1,924
16,480
6.433472
0.177755
0.050897
0.052513
0.067216
0.523025
0.473178
0.425917
0.374293
0.332283
0.320892
0
0.038251
0.103701
16,480
335
153
49.19403
0.799743
0.094478
0
0.132813
0
0.015625
0.169028
0.032704
0
0
0.001612
0
0.503906
1
0.160156
false
0
0.039063
0.003906
0.234375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
2056190d41d702f1add50ecbd7fa4e2d9c3bda87
2,407
py
Python
newsbot/utils.py
sashgorokhov/telegram-reddit-newsbot
778267e0dcf7304b191ddad6d97bb89ceac19d77
[ "MIT" ]
4
2017-05-28T10:57:57.000Z
2020-08-27T14:45:12.000Z
newsbot/utils.py
sashgorokhov/telegram-reddit-newsbot
778267e0dcf7304b191ddad6d97bb89ceac19d77
[ "MIT" ]
1
2017-05-28T11:04:24.000Z
2017-08-01T11:58:38.000Z
newsbot/utils.py
sashgorokhov/telegram-reddit-newsbot
778267e0dcf7304b191ddad6d97bb89ceac19d77
[ "MIT" ]
null
null
null
import json from urllib import parse import aioredis class StopScheduler(Exception): pass class RedisQueue(object): def __init__(self, redis, key): """ :param aioredis.Redis redis: """ super(RedisQueue, self).__init__() self.redis = redis self.key = key ...
23.144231
62
0.57499
300
2,407
4.5
0.28
0.066667
0.062222
0.059259
0.162963
0.068148
0.068148
0.068148
0.068148
0.068148
0
0.007775
0.305359
2,407
103
63
23.368932
0.799641
0.036145
0
0.257143
0
0
0.018851
0
0
0
0
0
0
1
0.085714
false
0.071429
0.042857
0.028571
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
6444387679f199acdeec59998301d0a41544e32e
553
py
Python
project/apps/cmanager/config.py
bhs-contests/barberscore-api
7bd06b074c99903f031220f41b15a22474724044
[ "BSD-2-Clause" ]
null
null
null
project/apps/cmanager/config.py
bhs-contests/barberscore-api
7bd06b074c99903f031220f41b15a22474724044
[ "BSD-2-Clause" ]
9
2020-06-05T22:17:17.000Z
2022-03-12T00:04:00.000Z
project/apps/cmanager/config.py
bhs-contests/barberscore-api
7bd06b074c99903f031220f41b15a22474724044
[ "BSD-2-Clause" ]
null
null
null
from django.apps import AppConfig class CmanagerConfig(AppConfig): name = 'apps.cmanager' verbose_name = 'Convention Manager' def ready(self): from apps.cmanager import signals import algoliasearch_django as algoliasearch from .indexes import AwardIndex from .indexes impor...
30.722222
59
0.699819
55
553
6.963636
0.472727
0.062663
0.088773
0
0
0
0
0
0
0
0
0
0.233273
553
17
60
32.529412
0.903302
0
0
0
0
0
0.083183
0
0
0
0
0
0
1
0.071429
false
0
0.357143
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
1
0
0
0
0
1
6449a3ac2e38ab80b980080af0e94180f4bc9d02
774
py
Python
data_loader.py
deshmukhps95/text-analysis-and-classification-gui-tool
c24fcc2083b65c8ce433c16e539366def9c1d0fa
[ "MIT" ]
10
2019-10-20T12:46:54.000Z
2022-03-16T07:16:54.000Z
data_loader.py
deshmukhps95/text-analysis-and-classification-gui-tool
c24fcc2083b65c8ce433c16e539366def9c1d0fa
[ "MIT" ]
null
null
null
data_loader.py
deshmukhps95/text-analysis-and-classification-gui-tool
c24fcc2083b65c8ce433c16e539366def9c1d0fa
[ "MIT" ]
3
2019-10-20T17:33:17.000Z
2021-01-15T02:38:22.000Z
import pandas as pd def load_training_data(training_file): training_file_df = pd.read_csv(training_file, encoding='utf-8') training_file_df = training_file_df.sample(frac=1, replace=False) training_file_df = training_file_df[pd.notnull(training_file_df["sentence"])] training_file_df["class_id"] = trai...
43
87
0.780362
114
774
4.877193
0.245614
0.194245
0.226619
0.057554
0.44964
0.395683
0.104317
0
0
0
0
0.008696
0.108527
774
17
88
45.529412
0.797101
0
0
0
0
0
0.067183
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.384615
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
644f3a3c2de19786e06e2804c0e213f47eba897a
5,995
py
Python
src/Canonical/train_model.py
mwjjeong/SpliceAI-test
4050038e3c3863ba3d58b311d895ef48b7be7af6
[ "Zlib" ]
null
null
null
src/Canonical/train_model.py
mwjjeong/SpliceAI-test
4050038e3c3863ba3d58b311d895ef48b7be7af6
[ "Zlib" ]
null
null
null
src/Canonical/train_model.py
mwjjeong/SpliceAI-test
4050038e3c3863ba3d58b311d895ef48b7be7af6
[ "Zlib" ]
2
2020-05-20T03:48:07.000Z
2021-12-18T22:01:17.000Z
############################################################################### # This file contains the code to train the SpliceAI model. ############################################################################### import numpy as np import sys import time import h5py import keras.backend as kb import tensorflow a...
32.581522
79
0.471893
845
5,995
3.191716
0.192899
0.035595
0.044494
0.04746
0.564331
0.556174
0.556174
0.512421
0.512421
0.512421
0
0.074235
0.269725
5,995
183
80
32.759563
0.5418
0.04804
0
0.512605
0
0
0.090025
0.042388
0
0
0
0
0.016807
0
null
null
0
0.084034
null
null
0.134454
0
0
0
null
0
0
0
0
0
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
64547a8c3a8809c31e7d8829083615008e36d72c
978
py
Python
config.py
MBkkt/AlarmApi
99b7680776f1616ec2fc2b022ae5afbee2c97d5c
[ "MIT" ]
1
2019-02-02T13:45:28.000Z
2019-02-02T13:45:28.000Z
config.py
MBkkt/AlarmApi
99b7680776f1616ec2fc2b022ae5afbee2c97d5c
[ "MIT" ]
null
null
null
config.py
MBkkt/AlarmApi
99b7680776f1616ec2fc2b022ae5afbee2c97d5c
[ "MIT" ]
null
null
null
from collections import namedtuple from os import path, environ, mkdir basedir = path.abspath(path.dirname(__file__)) if not path.exists('data'): mkdir('data') Config = namedtuple('Config', ( 'path', 'SECRET_KEY', 'SQLALCHEMY_DATABASE_URI', 'SQLALCHEMY_TRACK_MODIFICATIONS', 'MAIL_SERVER', 'MAIL_PORT', ...
33.724138
66
0.670757
122
978
5.098361
0.42623
0.11254
0.11254
0.057878
0
0
0
0
0
0
0
0.002484
0.176892
978
28
67
34.928571
0.770186
0
0
0.076923
0
0
0.293456
0.076687
0
0
0
0
0
1
0
false
0.076923
0.076923
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
1
0
0
0
0
0
1
6455cb85b59a7459a9e396f2447ae3655338fc74
562
py
Python
examples/modify_header_example.py
pbsds/sanic
d4fb44e9862c367c2bf1426a011c47e7df57abe5
[ "MIT" ]
1,883
2021-01-05T11:28:36.000Z
2022-03-31T19:24:26.000Z
examples/modify_header_example.py
pbsds/sanic
d4fb44e9862c367c2bf1426a011c47e7df57abe5
[ "MIT" ]
451
2021-01-05T12:19:49.000Z
2022-03-31T11:06:23.000Z
examples/modify_header_example.py
pbsds/sanic
d4fb44e9862c367c2bf1426a011c47e7df57abe5
[ "MIT" ]
271
2021-01-06T03:46:44.000Z
2022-03-28T14:35:41.000Z
""" Modify header or status in response """ from sanic import Sanic, response app = Sanic("Example") @app.route("/") def handle_request(request): return response.json( {"message": "Hello world!"}, headers={"X-Served-By": "sanic"}, status=200, ) @app.route("/unauthorized") def hand...
18.129032
50
0.599644
69
562
4.73913
0.594203
0.018349
0.097859
0.140673
0.458716
0.458716
0.293578
0.293578
0
0
0
0.03211
0.224199
562
30
51
18.733333
0.71789
0.062278
0
0.333333
0
0
0.223507
0
0
0
0
0
0
1
0.111111
false
0
0.055556
0.111111
0.277778
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
6459bd8eddae1a578a44bccd17f1b3d4a599071d
724
py
Python
06.py
felipeng/python-exercises
9ca6ec3ad39c561d21c067ad07ff9a1b5362d416
[ "MIT" ]
null
null
null
06.py
felipeng/python-exercises
9ca6ec3ad39c561d21c067ad07ff9a1b5362d416
[ "MIT" ]
null
null
null
06.py
felipeng/python-exercises
9ca6ec3ad39c561d21c067ad07ff9a1b5362d416
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Ask the user for a string and print out whether this string is a palindrome or not. (A palindrome is a string that reads the same forwards and backwards.) ''' word = str(raw_input("Word: ")) def solution1(): r = "" if word != word[::-1]: r = " NOT" ...
19.567568
154
0.523481
99
724
3.818182
0.444444
0.039683
0.047619
0.063492
0.206349
0.206349
0.206349
0.206349
0.206349
0.206349
0
0.025641
0.299724
724
36
155
20.111111
0.719921
0.088398
0
0.3
0
0
0.145749
0
0
0
0
0
0
0
null
null
0
0
null
null
0.15
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
645cf4f2b7d6f8aea148b374e3cbde27781e1402
1,497
py
Python
CodeSignal/cs013.py
JeffreyAsuncion/CodingProblems_Python
db71cb46b2579c1c65767a644a0ea989da4fa559
[ "MIT" ]
null
null
null
CodeSignal/cs013.py
JeffreyAsuncion/CodingProblems_Python
db71cb46b2579c1c65767a644a0ea989da4fa559
[ "MIT" ]
null
null
null
CodeSignal/cs013.py
JeffreyAsuncion/CodingProblems_Python
db71cb46b2579c1c65767a644a0ea989da4fa559
[ "MIT" ]
null
null
null
""" Write a function that reverses characters in (possibly nested) parentheses in the input string. Input strings will always be well-formed with matching ()s. Example For inputString = "(bar)", the output should be reverseInParentheses(inputString) = "rab"; For inputString = "foo(bar)baz", the output should be reve...
32.543478
95
0.693387
177
1,497
5.847458
0.355932
0.269565
0.069565
0.115942
0.516908
0.494686
0.401932
0.401932
0.315942
0.315942
0
0.000805
0.170341
1,497
45
96
33.266667
0.832528
0.561122
0
0.222222
0
0
0.083981
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.111111
0.222222
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
6462a5479de32dd7f8b94e08cfc64852804dd296
1,255
py
Python
python/tests/test_salt.py
mad01/boilerplates
c9db0e43af1caa1dc873951561e7f8146a5f984e
[ "MIT" ]
null
null
null
python/tests/test_salt.py
mad01/boilerplates
c9db0e43af1caa1dc873951561e7f8146a5f984e
[ "MIT" ]
null
null
null
python/tests/test_salt.py
mad01/boilerplates
c9db0e43af1caa1dc873951561e7f8146a5f984e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import unittest import json import yaml import os from pymongo import MongoClient from requests import put, get from lib import salt def checkAccess(oid, password='', host=''): data = {"oid": oid, "key": password} return get('http://' + host + ':5000/api/protected', data=data) class Te...
26.145833
73
0.623108
146
1,255
5.280822
0.438356
0.041505
0.042802
0.067445
0.163424
0.095979
0
0
0
0
0
0.010571
0.246215
1,255
47
74
26.702128
0.80444
0.015936
0
0.055556
0
0
0.083468
0
0
0
0
0
0.055556
1
0.138889
false
0.166667
0.194444
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
646531ba8df863ab9ee0a1a68232291294ac4aef
1,111
py
Python
retr_newsmth_mails.py
vc12345679/retr_newsmth_mails
d762534b77cc97476447c1feb4fc811bda98afef
[ "MIT" ]
1
2018-07-05T11:11:02.000Z
2018-07-05T11:11:02.000Z
retr_newsmth_mails.py
vc12345679/retr_newsmth_mails
d762534b77cc97476447c1feb4fc811bda98afef
[ "MIT" ]
null
null
null
retr_newsmth_mails.py
vc12345679/retr_newsmth_mails
d762534b77cc97476447c1feb4fc811bda98afef
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encode: utf-8 -*- __author__='Siwei Chen <chensiwei1990@gmail.com>' import telnetlib import time USERNAME = b'TODO_YOUR_USERNAME' PASSWORD = b'TODO_YOUR_PASSWORD' # 开始连接 print('Start Connecting...') tn = telnetlib.Telnet(host='pop3.newsmth.net', port=110) time.sleep(5) print(tn.read_until...
25.25
72
0.645365
169
1,111
4.16568
0.497041
0.099432
0.107955
0.051136
0.15483
0.15483
0.15483
0.15483
0.15483
0.107955
0
0.014721
0.144014
1,111
43
73
25.837209
0.725552
0.075608
0
0.074074
0
0
0.300294
0.024534
0
0
0
0
0
1
0
false
0.111111
0.074074
0
0.074074
0.333333
0
0
0
null
0
0
0
0
0
0
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
6468a96134bc45d489f596e38bcb174f872fdcc3
1,284
py
Python
sGraphics.py
dane-piper/Splendor-the-Board-Game
63a8e55c3ed925794090402df6a50dc9805bbbf0
[ "MIT" ]
null
null
null
sGraphics.py
dane-piper/Splendor-the-Board-Game
63a8e55c3ed925794090402df6a50dc9805bbbf0
[ "MIT" ]
null
null
null
sGraphics.py
dane-piper/Splendor-the-Board-Game
63a8e55c3ed925794090402df6a50dc9805bbbf0
[ "MIT" ]
null
null
null
top1 = self.highlevelcards.get() limage1 = top1.getimage() top2 = self.highlevelcards.get() limage2 = top2.getimage() top3 = self.highlevelcards.get() limage3 = top3.getimage() top4 = self.highlevelcards.get() limage4 = top4.getimage() ltop1 = self.lowleve...
51.36
81
0.536604
137
1,284
5.029197
0.19708
0.156749
0.121916
0
0
0
0
0
0
0
0
0.097363
0.232087
1,284
25
82
51.36
0.60142
0
0
0
0
0
0.028549
0
0
0
0
0
0
0
null
null
0
0
null
null
0.36
0
0
0
null
0
0
0
0
0
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
64692b2ec3a302134882cc28bada0e1f0b62ae96
938
py
Python
pythonbrew/basecommand.py
igroff/pythonbrew
4d5042cbac129226d6a807e10763e0ee24480f47
[ "Unlicense" ]
2
2015-11-05T08:49:54.000Z
2016-03-01T21:48:07.000Z
pythonbrew/basecommand.py
idobatter/pythonbrew
e8823c5494a26e2c91aa516eac80b748474ba129
[ "Unlicense" ]
null
null
null
pythonbrew/basecommand.py
idobatter/pythonbrew
e8823c5494a26e2c91aa516eac80b748474ba129
[ "Unlicense" ]
null
null
null
import os import sys import re from optparse import OptionParser from pythonbrew import commands command_dict = {} class Command(object): name = None usage = None summary = "" def __init__(self): self.parser = OptionParser(usage=self.usage, prog='%s %s' ...
24.684211
117
0.621535
118
938
4.694915
0.40678
0.043321
0.054152
0
0
0
0
0
0
0
0
0.002899
0.264392
938
37
118
25.351351
0.8
0
0
0
0
0
0.065032
0.049041
0
0
0
0
0
1
0.166667
false
0.033333
0.233333
0.033333
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
646a3191d46369221eb1d11bf1fd1b21c80dcf8c
2,264
py
Python
pybleno/hci_socket/HciStatus.py
ThomasMirlacher/pybleno
5bf1247345283122dc4e91269bee310492684746
[ "MIT" ]
64
2017-11-30T09:09:45.000Z
2022-03-03T08:00:05.000Z
pybleno/hci_socket/HciStatus.py
ThomasMirlacher/pybleno
5bf1247345283122dc4e91269bee310492684746
[ "MIT" ]
43
2017-11-29T12:39:57.000Z
2022-03-20T06:43:17.000Z
pybleno/hci_socket/HciStatus.py
ThomasMirlacher/pybleno
5bf1247345283122dc4e91269bee310492684746
[ "MIT" ]
37
2017-11-29T12:22:17.000Z
2021-12-15T21:17:54.000Z
STATUS_MAPPER = [ "Success", "Unknown HCI Command", "Unknown Connection Identifier", "Hardware Failure", "Page Timeout", "Authentication Failure", "PIN or Key Missing", "Memory Capacity Exceeded", "Connection Timeout", "Connection Limit Exceeded", "Synchronous Connection Limit to a Device Exceeded...
33.791045
80
0.734982
262
2,264
6.343511
0.480916
0.021059
0.050542
0.055355
0.032491
0
0
0
0
0
0
0
0.175795
2,264
67
81
33.791045
0.890675
0
0
0.044776
0
0
0.818985
0
0
0
0
0
0
1
0
false
0.014925
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
646f727fb31dfc1c0b3ab909ac49627974071342
1,333
py
Python
nginxpla/module/crawler.py
evirma/nginxpla
24ff15809cb3c6f81821c09d07e52c629fca491a
[ "MIT" ]
null
null
null
nginxpla/module/crawler.py
evirma/nginxpla
24ff15809cb3c6f81821c09d07e52c629fca491a
[ "MIT" ]
null
null
null
nginxpla/module/crawler.py
evirma/nginxpla
24ff15809cb3c6f81821c09d07e52c629fca491a
[ "MIT" ]
null
null
null
from nginxpla.module_config import ModuleConfig from nginxpla.utils import generate_table from crawlerdetect import CrawlerDetect from functools import lru_cache from nginxpla.module.simple import SimpleModule class CrawlerModule(SimpleModule): def handle_record(self, record): if self.is_needed is False: ...
27.204082
81
0.655664
156
1,333
5.378205
0.314103
0.091776
0.057211
0.033373
0.038141
0
0
0
0
0
0
0.006104
0.262566
1,333
48
82
27.770833
0.847406
0
0
0.088235
1
0
0.030758
0
0
0
0
0
0
1
0.117647
false
0
0.147059
0
0.470588
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
647172a5fba7994979d9b24b950b7cbbc84e6b5e
6,246
py
Python
bptf/pretraining/utils.py
antonyms/AntonymPipeline
050f963b9dbefeb5772be665d2d69e500764d4cd
[ "Apache-2.0" ]
4
2015-08-24T20:41:32.000Z
2020-03-26T19:16:36.000Z
bptf/pretraining/utils.py
antonyms/AntonymPipeline
050f963b9dbefeb5772be665d2d69e500764d4cd
[ "Apache-2.0" ]
null
null
null
bptf/pretraining/utils.py
antonyms/AntonymPipeline
050f963b9dbefeb5772be665d2d69e500764d4cd
[ "Apache-2.0" ]
null
null
null
import numpy as np import re import copy import sys from collections import defaultdict from sklearn.feature_extraction.text import TfidfVectorizer def cosine_sim(x, y): return np.dot(x, y) / np.sqrt(np.dot(x, x) * np.dot(y, y)) def preprocess_sim(sim): return sim/10 - 1 def load_dic(path): with open(pat...
27.515419
69
0.483189
924
6,246
3.213203
0.146104
0.020209
0.018862
0.048501
0.450994
0.426406
0.390367
0.341866
0.331762
0.32873
0
0.012173
0.381844
6,246
226
70
27.637168
0.756799
0
0
0.451923
0
0
0.026737
0
0
0
0
0
0.004808
0
null
null
0
0.028846
null
null
0.014423
0
0
0
null
0
0
0
0
0
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
6476f26230f5e873a332e7e46b2cb2f64f5f718e
751
py
Python
PythonMundoDois/ex043.py
HendrylNogueira/CursoPython3
c3d9d4e2a27312b83d744aaf0f8d01b26e6faf4f
[ "MIT" ]
null
null
null
PythonMundoDois/ex043.py
HendrylNogueira/CursoPython3
c3d9d4e2a27312b83d744aaf0f8d01b26e6faf4f
[ "MIT" ]
null
null
null
PythonMundoDois/ex043.py
HendrylNogueira/CursoPython3
c3d9d4e2a27312b83d744aaf0f8d01b26e6faf4f
[ "MIT" ]
null
null
null
'''Desenvolva um lógica que leia o peso e a altura de uma pessoa, calcule o IMC e mostre o status, de acordo com a tabela abaixo: - Abaixo de 18.5: Abaixo do peso - Entre 18.5 e 25: Peso ideal - 25 até 30: Sobrepeso - 30 até 40: Obesidade - Acima de 40: Obesidade mórbida.''' peso = float(input('Digite o seu peso em Kg...
31.291667
114
0.673768
132
751
3.833333
0.431818
0.063241
0.077075
0.063241
0
0
0
0
0
0
0
0.048658
0.206391
751
23
115
32.652174
0.800336
0.358189
0
0
0
0
0.5
0
0
0
0
0
0
1
0
false
0
0
0
0
0.466667
0
0
0
null
0
0
0
0
0
0
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
6477ef820a5be4bcd7f23f15fce45b5896082b65
1,734
py
Python
ch03/ch03_10/ch03_10.py
z2x3c4v5bz/pybook_yehnan
3c7f8124ac49f4abe2682f2a01835af3c3759132
[ "MIT" ]
null
null
null
ch03/ch03_10/ch03_10.py
z2x3c4v5bz/pybook_yehnan
3c7f8124ac49f4abe2682f2a01835af3c3759132
[ "MIT" ]
null
null
null
ch03/ch03_10/ch03_10.py
z2x3c4v5bz/pybook_yehnan
3c7f8124ac49f4abe2682f2a01835af3c3759132
[ "MIT" ]
null
null
null
from random import randint if __name__ == '__main__': upper = 100 lower = 1 ans = randint(1, upper) cont = 0 print('_____________________終極密碼_____________________') print('從0 ~ 100中猜一個數字,看你要猜幾次才能猜中。') while True: cont += 1 print('_____________________Round ' + str(cont) + '...
25.130435
101
0.673587
175
1,734
3.788571
0.337143
0.067873
0.162896
0.039216
0.113122
0.075415
0.075415
0
0
0
0
0.05497
0.234141
1,734
68
102
25.5
0.444277
0
0
0
0
0
0.270876
0.167006
0
0
0
0
0
1
0
false
0
0.037037
0
0.037037
0.296296
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
647afffea351b7abbc98659fa4762d7a7f827b51
5,323
py
Python
main.py
zky38018/DCGAN-tensorflow-master02
af73725ec2d2b465f26e5e817d717a069c13d44a
[ "MIT" ]
null
null
null
main.py
zky38018/DCGAN-tensorflow-master02
af73725ec2d2b465f26e5e817d717a069c13d44a
[ "MIT" ]
null
null
null
main.py
zky38018/DCGAN-tensorflow-master02
af73725ec2d2b465f26e5e817d717a069c13d44a
[ "MIT" ]
null
null
null
"""参考https://blog.csdn.net/liuxiao214/article/details/74502975""" """ main.py主要是调用前面定义好的模型、图像处理方法,来进行训练测试,程序的入口 """import os import scipy.misc import numpy as np from model import DCGAN from utils import pp, visualize, to_json, show_all_variables import tensorflow as tf """ 执行main函数之前首先进行flags的解析,TensorFlow底层使用了pyth...
37.223776
138
0.718955
727
5,323
5.057772
0.287483
0.053848
0.034267
0.021757
0.34811
0.301877
0.273593
0.273593
0.238782
0.238782
0
0.017187
0.169265
5,323
142
139
37.485915
0.814337
0.112906
0
0.390244
0
0.012195
0.281034
0
0
0
0
0
0
0
null
null
0
0.073171
null
null
0.012195
0
0
0
null
0
0
0
0
0
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
6484c3f25d410b08ed6966c0ef4448a530472703
522
py
Python
src/djanban/apps/members/migrations/0018_auto_20170225_0040.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
33
2017-06-14T18:04:25.000Z
2021-06-15T07:07:56.000Z
src/djanban/apps/members/migrations/0018_auto_20170225_0040.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
1
2017-05-10T08:45:55.000Z
2017-05-10T08:45:55.000Z
src/djanban/apps/members/migrations/0018_auto_20170225_0040.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
8
2017-08-27T11:14:25.000Z
2021-03-03T12:11:16.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-02-24 23:40 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('members', '0017_auto_20170225_0026'), ] operations = [ migrations.AlterField(...
24.857143
112
0.641762
60
522
5.4
0.8
0.04321
0.067901
0
0
0
0
0
0
0
0
0.081013
0.243295
522
20
113
26.1
0.739241
0.126437
0
0
1
0
0.16777
0.050773
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
648710e70ec4a5a4cac4fb096d92ca7205cec739
1,011
py
Python
main.py
ViggAlm/PasswordKit
b92f67f7b5b9623f1c63646003b684eee9e8912a
[ "BSD-2-Clause" ]
1
2022-02-22T19:51:56.000Z
2022-02-22T19:51:56.000Z
main.py
ViggAlm/PasswordKit
b92f67f7b5b9623f1c63646003b684eee9e8912a
[ "BSD-2-Clause" ]
null
null
null
main.py
ViggAlm/PasswordKit
b92f67f7b5b9623f1c63646003b684eee9e8912a
[ "BSD-2-Clause" ]
null
null
null
import checker import generator import log import os import time from colorama import init def clear(): os.system("cls" if os.name == "nt" else "clear") def menu(): init() os.system("title PasswordKit") log.general("Welcome to the PasswordKit made by ViggAlm on github, where you can also find the d...
24.071429
116
0.624135
134
1,011
4.649254
0.537313
0.043339
0.051364
0.060995
0
0
0
0
0
0
0
0.004011
0.260138
1,011
41
117
24.658537
0.828877
0
0
0.21875
0
0
0.388724
0
0
0
0
0
0
1
0.0625
false
0.15625
0.1875
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
648c819182ec2cd7496ae39992eb40fce5199abc
1,901
py
Python
sktime/utils/testing.py
Mo-Saif/sktime
f3c71977c113d986276fca2bdedf70faaa33f040
[ "BSD-3-Clause" ]
1
2019-09-29T07:11:33.000Z
2019-09-29T07:11:33.000Z
sktime/utils/testing.py
ClaudiaSanches/sktime
63e7839e80ca6d5fe5fc4f33389ec3bcacd8aa59
[ "BSD-3-Clause" ]
null
null
null
sktime/utils/testing.py
ClaudiaSanches/sktime
63e7839e80ca6d5fe5fc4f33389ec3bcacd8aa59
[ "BSD-3-Clause" ]
1
2019-05-08T10:42:20.000Z
2019-05-08T10:42:20.000Z
import pandas as pd import numpy as np from sktime.utils.data_container import detabularise def generate_df_from_array(array, n_rows=10, n_cols=1): return pd.DataFrame([[pd.Series(array) for _ in range(n_cols)] for _ in range(n_rows)], columns=[f'col{c}' for c in range(n_cols)]) def gene...
32.775862
107
0.652288
292
1,901
4.071918
0.260274
0.033642
0.033642
0.063078
0.545837
0.545837
0.510513
0.409588
0.370059
0.370059
0
0.01833
0.225145
1,901
57
108
33.350877
0.788866
0.160442
0
0.432432
1
0
0.013933
0
0
0
0
0
0.054054
1
0.108108
false
0
0.081081
0.027027
0.324324
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
648e7a815bd6a4d394e21e40043d00d7e1754236
239
py
Python
cron_manager/serializers.py
MelanieFJNR/Blitz-API
9a6daecd158fe07a6aeb80cbf586781eb688f0f9
[ "MIT" ]
3
2019-10-22T00:16:49.000Z
2021-07-15T07:44:43.000Z
cron_manager/serializers.py
MelanieFJNR/Blitz-API
9a6daecd158fe07a6aeb80cbf586781eb688f0f9
[ "MIT" ]
1,183
2018-04-19T18:40:30.000Z
2022-03-31T21:05:05.000Z
cron_manager/serializers.py
MelanieFJNR/Blitz-API
9a6daecd158fe07a6aeb80cbf586781eb688f0f9
[ "MIT" ]
12
2018-04-17T19:16:42.000Z
2022-01-27T00:19:59.000Z
from rest_framework import serializers from .models import ( Task ) class TaskSerializer(serializers.HyperlinkedModelSerializer): id = serializers.ReadOnlyField() class Meta: model = Task fields = '__all__'
17.071429
61
0.702929
22
239
7.409091
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.230126
239
13
62
18.384615
0.88587
0
0
0
0
0
0.029289
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.555556
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
649046b8d6f26ad291e3c698ad397e409c062bf0
662
py
Python
api/migrations/versions/d8d17ed47c53_.py
NikolaSiplakova/Baobab
180cd3cb492ed47d38ca0b473572fad0ac6f604b
[ "Apache-2.0" ]
52
2019-01-10T16:04:26.000Z
2022-02-10T00:55:59.000Z
api/migrations/versions/d8d17ed47c53_.py
NikolaSiplakova/Baobab
180cd3cb492ed47d38ca0b473572fad0ac6f604b
[ "Apache-2.0" ]
535
2019-01-08T21:24:01.000Z
2022-02-27T15:24:06.000Z
api/migrations/versions/d8d17ed47c53_.py
NikolaSiplakova/Baobab
180cd3cb492ed47d38ca0b473572fad0ac6f604b
[ "Apache-2.0" ]
36
2019-01-10T16:09:15.000Z
2021-06-28T21:02:47.000Z
"""empty message Revision ID: d8d17ed47c53 Revises: 1993beca93d7 Create Date: 2020-02-06 15:15:58.466396 """ # revision identifiers, used by Alembic. revision = 'd8d17ed47c53' down_revision = '1993beca93d7' from alembic import op import sqlalchemy as sa def upgrade(): # ### commands auto generated by Alembic ...
24.518519
102
0.706949
78
662
5.910256
0.564103
0.058568
0.091106
0.099783
0.190889
0.190889
0.190889
0.190889
0
0
0
0.086643
0.163142
662
26
103
25.461538
0.745487
0.445619
0
0
0
0
0.290909
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
64915fe58f712940480f50d70ce1642c2c56bb52
670
py
Python
Zile.fpoo/arquivos python/zexercicios normais/farenheit - celsius.py
viniciuszile/python-codes
b5c9e18d9976329ee6c952670de2b516ffeaca23
[ "MIT" ]
4
2021-10-29T23:48:37.000Z
2022-02-21T18:21:29.000Z
Zile.fpoo/arquivos python/zexercicios normais/farenheit - celsius.py
viniciuszile/python-codes
b5c9e18d9976329ee6c952670de2b516ffeaca23
[ "MIT" ]
null
null
null
Zile.fpoo/arquivos python/zexercicios normais/farenheit - celsius.py
viniciuszile/python-codes
b5c9e18d9976329ee6c952670de2b516ffeaca23
[ "MIT" ]
null
null
null
#faça um programa que peça a temperatura em farenheit, transforme e mostre a temperatura em celsius.. print ("escolha uma das opçoes abaixo") print ("1- celsius---farenheit") print ("2- farenheit---celsius") print ("3- celsius---kelvin") print ("4- kelvin---celsius") t = float(input ("escolha uma das opço...
31.904762
106
0.655224
98
670
4.479592
0.418367
0.118451
0.063781
0.08656
0.291572
0.150342
0
0
0
0
0
0.026119
0.2
670
20
107
33.5
0.79291
0.149254
0
0
0
0
0.591985
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
64934fce7c296603046cbd35ca70cc7e8d1cc3e0
327
py
Python
Ago-Dic-2018/ArmandoGarcia/Ordinario/abstractUsuario.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ago-Dic-2018/ArmandoGarcia/Ordinario/abstractUsuario.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ago-Dic-2018/ArmandoGarcia/Ordinario/abstractUsuario.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
from abc import ABC,abstractmethod class Users(): def __init__(self,name,email,phone,picture,location): self.name=name self.email=email self.phone=phone self.picture=picture self.location=location class AbstracUsers(ABC): @abstractmethod def get_user(self,url): ...
25.153846
57
0.666667
40
327
5.325
0.475
0.159624
0
0
0
0
0
0
0
0
0
0
0.24159
327
12
58
27.25
0.858871
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0.083333
0.083333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
649ae9f521ba42fbe0f0830181c4f20af7cd36d8
819
py
Python
domain_detection_worker/config.py
Project-MTee/domain-detection-worker
e4c6d0e6b8500a5184152ff1f9d1017e6af15781
[ "MIT" ]
null
null
null
domain_detection_worker/config.py
Project-MTee/domain-detection-worker
e4c6d0e6b8500a5184152ff1f9d1017e6af15781
[ "MIT" ]
null
null
null
domain_detection_worker/config.py
Project-MTee/domain-detection-worker
e4c6d0e6b8500a5184152ff1f9d1017e6af15781
[ "MIT" ]
null
null
null
import yaml from yaml.loader import SafeLoader from typing import List, Dict from pydantic import BaseSettings, BaseModel class MQConfig(BaseSettings): """ Imports MQ configuration from environment variables """ host: str = 'localhost' port: int = 5672 username: str = 'guest' password: st...
23.4
69
0.681319
99
819
5.535354
0.59596
0.060219
0.065693
0
0
0
0
0
0
0
0
0.01092
0.217338
819
34
70
24.088235
0.843994
0.062271
0
0
0
0
0.098404
0
0
0
0
0
0
1
0.045455
false
0.045455
0.181818
0
0.863636
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
649b84c481581b62479ebe53ffddfeefb5438f0e
835
py
Python
labelbox/data/serialization/labelbox_v1/feature.py
nickaustinlee/labelbox-python
45eb808165849e5a55fb6869ca5cc415d74772ce
[ "Apache-2.0", "MIT" ]
null
null
null
labelbox/data/serialization/labelbox_v1/feature.py
nickaustinlee/labelbox-python
45eb808165849e5a55fb6869ca5cc415d74772ce
[ "Apache-2.0", "MIT" ]
null
null
null
labelbox/data/serialization/labelbox_v1/feature.py
nickaustinlee/labelbox-python
45eb808165849e5a55fb6869ca5cc415d74772ce
[ "Apache-2.0", "MIT" ]
null
null
null
from typing import Optional from pydantic import BaseModel, root_validator from labelbox.utils import camel_case from ...annotation_types.types import Cuid class LBV1Feature(BaseModel): keyframe: Optional[bool] = None title: str = None value: Optional[str] = None schema_id: Optional[Cuid] = None ...
26.09375
49
0.649102
104
835
5.086538
0.557692
0.049149
0.05293
0.068053
0
0
0
0
0
0
0
0.001613
0.257485
835
31
50
26.935484
0.851613
0.046707
0
0
0
0
0.028967
0
0
0
0
0
0
1
0.086957
false
0
0.173913
0
0.652174
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
64a0a5ae13c0e4631d99cdab6070881ae7af79eb
8,600
py
Python
gym_wrapper/wrapper_win.py
Abluceli/RLs
00f762558bf106c076c813bfbe38b6685d77c363
[ "Apache-2.0" ]
1
2019-09-05T09:25:14.000Z
2019-09-05T09:25:14.000Z
gym_wrapper/wrapper_win.py
Abluceli/RLs
00f762558bf106c076c813bfbe38b6685d77c363
[ "Apache-2.0" ]
null
null
null
gym_wrapper/wrapper_win.py
Abluceli/RLs
00f762558bf106c076c813bfbe38b6685d77c363
[ "Apache-2.0" ]
null
null
null
# import gym import threading import numpy as np from typing import Dict from common.config import Config # from gym.spaces import Box, Discrete, Tuple from .wrappers import SkipEnv, StackEnv, GrayResizeEnv, ScaleEnv, OneHotObsEnv, BoxActEnv, BaseEnv, NoopResetEnv class FakeMultiThread(threading.Thread): def __i...
40.186916
185
0.549419
1,031
8,600
4.446169
0.177498
0.034904
0.017016
0.020942
0.212042
0.163613
0.143106
0.131981
0.131981
0.131981
0
0.008084
0.323953
8,600
213
186
40.375587
0.780358
0.891047
0
0
0
0
0
0
0
0
0
0
0
1
0.176471
false
0
0.294118
0
0.647059
0
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
0
0
0
0
0
0
0
1
64a7226535677107fb00ec554ce4ce2a9b4242c4
4,435
py
Python
usermigrate/keycloak/utils.py
ESGF/esgf-keycloak-user-migration
27b75ee9acd0f9ac16f6730865364ac7d95611d0
[ "BSD-3-Clause" ]
1
2020-12-09T20:31:12.000Z
2020-12-09T20:31:12.000Z
usermigrate/keycloak/utils.py
ESGF/esgf-keycloak-user-migration
27b75ee9acd0f9ac16f6730865364ac7d95611d0
[ "BSD-3-Clause" ]
null
null
null
usermigrate/keycloak/utils.py
ESGF/esgf-keycloak-user-migration
27b75ee9acd0f9ac16f6730865364ac7d95611d0
[ "BSD-3-Clause" ]
null
null
null
""" Utility functions for interacting with a Keycloak server. """ __author__ = "William Tucker" __date__ = "2020-09-09" __copyright__ = "Copyright 2020 United Kingdom Research and Innovation" __license__ = "BSD - see LICENSE file in top-level package directory" import requests import json from datetime import datet...
30.376712
79
0.616911
477
4,435
5.444444
0.287212
0.036966
0.024644
0.014632
0.143242
0.080092
0.056989
0.027724
0
0
0
0.006022
0.288613
4,435
145
80
30.586207
0.817116
0.057497
0
0.141414
0
0
0.172198
0.036075
0
0
0
0
0
1
0.080808
false
0.050505
0.040404
0
0.20202
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
64b0b6599122fbe24900e7f45bbf62309d8fdcdd
2,189
py
Python
src/utils/colors.py
kishorekolli/deep_racer_guru
0a0a56103f395f958e8177ee0bd5ae1481f93d98
[ "MIT" ]
9
2020-07-31T03:04:24.000Z
2021-11-02T13:44:11.000Z
src/utils/colors.py
kishorekolli/deep_racer_guru
0a0a56103f395f958e8177ee0bd5ae1481f93d98
[ "MIT" ]
137
2020-08-04T08:04:11.000Z
2021-11-10T10:35:58.000Z
src/utils/colors.py
kishorekolli/deep_racer_guru
0a0a56103f395f958e8177ee0bd5ae1481f93d98
[ "MIT" ]
11
2020-06-24T23:38:38.000Z
2021-11-02T14:42:31.000Z
# # DeepRacer Guru # # Version 3.0 onwards # # Copyright (c) 2021 dmh23 # import math from base64 import b16encode from enum import IntEnum, auto from matplotlib.colors import Colormap from matplotlib.pyplot import get_cmap import src.personalize.configuration.appearance as config _COLORMAP_A = get_cmap(config.COLO...
24.875
81
0.709
308
2,189
4.711039
0.25974
0.038594
0.072364
0.068918
0.148863
0.093728
0.045486
0
0
0
0
0.022982
0.185016
2,189
87
82
25.16092
0.790359
0.045226
0
0
0
0
0.000482
0
0
0
0
0
0.040816
1
0.122449
false
0
0.122449
0.040816
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
0
0
1
0
0
1
64bc8f155fbe6cea39fd70bca60b5b349d767a73
18,930
py
Python
matlab2cpp/tree/misc.py
emc2norway/m2cpp
81943057c184c539b409282cbbd47bbf933db04f
[ "BSD-3-Clause" ]
28
2017-04-25T10:06:38.000Z
2022-02-09T07:25:34.000Z
matlab2cpp/tree/misc.py
emc2norway/m2cpp
81943057c184c539b409282cbbd47bbf933db04f
[ "BSD-3-Clause" ]
null
null
null
matlab2cpp/tree/misc.py
emc2norway/m2cpp
81943057c184c539b409282cbbd47bbf933db04f
[ "BSD-3-Clause" ]
5
2017-04-25T17:54:53.000Z
2022-03-21T20:15:15.000Z
# encoding: utf-8 """ Interpretors that didn't fit other places """ import matlab2cpp as mc import constants as c import findend import expression import iterate import identify def number(self, node, start): """ Verbatim number Args: self (Builder): Code constructor node (Node): Parent node start ...
27.715959
88
0.506075
2,379
18,930
4.003783
0.066835
0.093228
0.044409
0.021942
0.727979
0.67853
0.640315
0.609869
0.540997
0.527139
0
0.030245
0.36598
18,930
682
89
27.756598
0.763373
0.003381
0
0.55836
0
0
0.072929
0
0
0
0
0
0.009464
0
null
null
0.003155
0.022082
null
null
0.141956
0
0
0
null
0
0
0
0
0
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
64bd4c69bea01fc56b15fe9afcc255cafd535571
1,596
py
Python
extensions/vflib/test_matches.py
UnixJunkie/frowns
427e4c11a8a4dbe865828d18221899478497795e
[ "BSD-3-Clause" ]
null
null
null
extensions/vflib/test_matches.py
UnixJunkie/frowns
427e4c11a8a4dbe865828d18221899478497795e
[ "BSD-3-Clause" ]
null
null
null
extensions/vflib/test_matches.py
UnixJunkie/frowns
427e4c11a8a4dbe865828d18221899478497795e
[ "BSD-3-Clause" ]
null
null
null
import vflib # every node matches every other node # each node has an id so you know which node you # are dealing with. class Node: def __init__(self, id): self.id = id def __eq__(self, other): return 1 def __repr__(self): return "Node(%s)"%repr(self.id) # make the matching ...
22.8
53
0.581454
248
1,596
3.693548
0.33871
0.021834
0.029476
0.008734
0.076419
0.076419
0
0
0
0
0
0.027646
0.206767
1,596
69
54
23.130435
0.695893
0.345865
0
0
0
0
0.022926
0
0
0
0
0
0
0
null
null
0
0.032258
null
null
0.064516
0
0
0
null
0
0
0
0
0
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
64c0607d94ce92f5673def3652d4e81d5d939a73
358
py
Python
bookmarks/admin.py
gradel/django-generic-bookmarks
98d4c2099c019a6767fccebd96ec726f35fd1414
[ "MIT" ]
null
null
null
bookmarks/admin.py
gradel/django-generic-bookmarks
98d4c2099c019a6767fccebd96ec726f35fd1414
[ "MIT" ]
null
null
null
bookmarks/admin.py
gradel/django-generic-bookmarks
98d4c2099c019a6767fccebd96ec726f35fd1414
[ "MIT" ]
null
null
null
from django.contrib import admin from bookmarks import models class BookmarkAdmin(admin.ModelAdmin): list_display = ('content_object', 'key', 'user', 'created_at') list_filter = ('created_at',) ordering = ('-created_at',) search_fields = ('user', 'key') readonly_fields = ('user',) admin.site.reg...
25.571429
66
0.701117
41
358
5.926829
0.634146
0.111111
0
0
0
0
0
0
0
0
0
0
0.153631
358
13
67
27.538462
0.80198
0
0
0
0
0
0.175978
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.888889
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
64c062b1047024827233a73261c77fc0fc0df7fd
1,123
py
Python
predictor.py
thexa4/Spades
1b6c5003d5bec13421418e1e563db435fac18286
[ "MIT" ]
1
2018-01-27T16:45:51.000Z
2018-01-27T16:45:51.000Z
predictor.py
thexa4/Spades
1b6c5003d5bec13421418e1e563db435fac18286
[ "MIT" ]
null
null
null
predictor.py
thexa4/Spades
1b6c5003d5bec13421418e1e563db435fac18286
[ "MIT" ]
1
2018-01-27T16:45:56.000Z
2018-01-27T16:45:56.000Z
#!/usr/bin/python3 import os import socketserver os.environ['CUDA_VISIBLE_DEVICES'] = '-1' import tensorflow as tf gpus = tf.config.experimental.list_physical_devices('GPU') print("Num GPUs Available: ", len(gpus)) for gpu in gpus: tf.config.experimental.set_memory_growth(gpu, True) import numpy as np import sys ...
22.918367
70
0.670525
135
1,123
5.4
0.548148
0.028807
0.032922
0.065844
0.109739
0
0
0
0
0
0
0.0125
0.216385
1,123
49
71
22.918367
0.815909
0
0
0
0
0
0.056058
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.085714
0
0
0
null
0
0
0
0
0
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
64c3221de0fdb5f59f1df6dcb7ee7ea165774b42
1,438
py
Python
python-yaml/formatter/server.py
MikeOwino/materials
d62754be6640338ee5fa1bf926e4e04f3e7603ce
[ "MIT" ]
null
null
null
python-yaml/formatter/server.py
MikeOwino/materials
d62754be6640338ee5fa1bf926e4e04f3e7603ce
[ "MIT" ]
2
2022-03-16T10:56:26.000Z
2022-03-30T00:11:47.000Z
python-yaml/formatter/server.py
MikeOwino/materials
d62754be6640338ee5fa1bf926e4e04f3e7603ce
[ "MIT" ]
null
null
null
""" Running the backend: $ uvicorn formatter:app Viewing the frontend: http://127.0.0.1:8000/ """ from typing import Optional import yaml from fastapi import FastAPI from fastapi.responses import JSONResponse, HTMLResponse from fastapi.staticfiles import StaticFiles from pydantic import BaseModel TEST_DATA = { ...
22.825397
69
0.667594
171
1,438
5.538012
0.561404
0.047518
0.047518
0
0
0
0
0
0
0
0
0.01331
0.216273
1,438
62
70
23.193548
0.826974
0.086926
0
0
0
0
0.054448
0
0
0
0
0
0
1
0
false
0
0.146341
0
0.560976
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
64c6e35d28922bcf2cec037da7d0598d14e73c8f
243
py
Python
exemplos/exemplo-aula-08-01.py
quitaiskiluisf/TI4F-2021-LogicaProgramacao
d12e5c389a43c98f27726df5618fe529183329a8
[ "Unlicense" ]
null
null
null
exemplos/exemplo-aula-08-01.py
quitaiskiluisf/TI4F-2021-LogicaProgramacao
d12e5c389a43c98f27726df5618fe529183329a8
[ "Unlicense" ]
null
null
null
exemplos/exemplo-aula-08-01.py
quitaiskiluisf/TI4F-2021-LogicaProgramacao
d12e5c389a43c98f27726df5618fe529183329a8
[ "Unlicense" ]
null
null
null
# Apresentação print('Programa para determinar se um número é par ou ímpar') print() # Entradas numero = int(input('Informe um valor: ')) # Processamento e saídas if (numero % 2 == 0): print('Número par') else: print('Número ímpar')
18.692308
61
0.679012
34
243
4.852941
0.735294
0.133333
0
0
0
0
0
0
0
0
0
0.010152
0.1893
243
12
62
20.25
0.827411
0.18107
0
0
0
0
0.471795
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
64c704c08d91b33bff17a9235e7c73ace37b498d
2,159
py
Python
app/core/tests/test_commands.py
elolugo/recipe-app-api
2ba89555c8e4ef8b31721bad3fa2dfd81e730075
[ "MIT" ]
null
null
null
app/core/tests/test_commands.py
elolugo/recipe-app-api
2ba89555c8e4ef8b31721bad3fa2dfd81e730075
[ "MIT" ]
null
null
null
app/core/tests/test_commands.py
elolugo/recipe-app-api
2ba89555c8e4ef8b31721bad3fa2dfd81e730075
[ "MIT" ]
null
null
null
# Importing patch for mocking tests from unittest.mock import patch # TODO Importing call_command for calling asdadasfaf from django.core.management import call_command # The error when postgresql database is not ready yet from django.db.utils import OperationalError from django.test import TestCase class commandTe...
39.254545
79
0.660028
275
2,159
5.029091
0.374545
0.047722
0.039046
0.034707
0.389009
0.299349
0.299349
0.299349
0.299349
0.299349
0
0.00449
0.277906
2,159
54
80
39.981481
0.882617
0.312182
0
0.25
0
0
0.146635
0.108173
0
0
0
0.018519
0.125
1
0.125
false
0
0.25
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
64d5de7606e854299afbc757dba777806903ccb6
6,867
py
Python
mod_server_turret_extended/source/mod_serverTurretExtended.py
angelsoft1/5555
910e80dae3374f8ed04ae5905156b4592d539fb2
[ "WTFPL" ]
null
null
null
mod_server_turret_extended/source/mod_serverTurretExtended.py
angelsoft1/5555
910e80dae3374f8ed04ae5905156b4592d539fb2
[ "WTFPL" ]
null
null
null
mod_server_turret_extended/source/mod_serverTurretExtended.py
angelsoft1/5555
910e80dae3374f8ed04ae5905156b4592d539fb2
[ "WTFPL" ]
null
null
null
# -*- coding: utf-8 -*- import threading import urllib import urllib2 import BigWorld import CommandMapping import VehicleGunRotator from Avatar import PlayerAvatar from constants import AUTH_REALM from constants import SERVER_TICK_LENGTH from gui.Scaleform.daapi.view.lobby.LobbyView import LobbyView from gui.mods.mo...
47.034247
226
0.678753
737
6,867
5.981004
0.260516
0.03176
0.079628
0.030853
0.279265
0.173094
0.145417
0.090064
0.074637
0.045372
0
0.008826
0.224552
6,867
145
227
47.358621
0.818779
0.008883
0
0.119048
0
0.015873
0.209528
0.08484
0
0
0
0
0
0
null
null
0.007937
0.103175
null
null
0.007937
0
0
0
null
0
0
0
0
0
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
64db551e31b8bdb2bc412611c5473683dbdb7e5e
893
py
Python
LHBackEnd/exercise/migrations/0008_auto_20211129_1559.py
minhthong582000/LH-back-end
7555575a5e096d1502074fa2f743f1c1b4568543
[ "Apache-2.0" ]
null
null
null
LHBackEnd/exercise/migrations/0008_auto_20211129_1559.py
minhthong582000/LH-back-end
7555575a5e096d1502074fa2f743f1c1b4568543
[ "Apache-2.0" ]
null
null
null
LHBackEnd/exercise/migrations/0008_auto_20211129_1559.py
minhthong582000/LH-back-end
7555575a5e096d1502074fa2f743f1c1b4568543
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-29 15:59 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('menu', '0003_auto_20211126_0134'), migrations.swappable_dependency(settings.AUTH_US...
31.892857
136
0.661814
104
893
5.509615
0.5
0.055846
0.073298
0.115183
0.418848
0.418848
0.275742
0.275742
0.275742
0.275742
0
0.050432
0.222844
893
27
137
33.074074
0.775216
0.050392
0
0.285714
1
0
0.126478
0.068558
0
0
0
0
0
1
0
false
0
0.142857
0
0.285714
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
b3789aa2e06c7c835331a1da85231ac52d15d365
1,446
py
Python
TreeNode.py
Alaya-in-Matrix/CO-MO-BamSOO
e4ec9a696981eccb1006e1a3fc00bb67925513a7
[ "MIT" ]
1
2019-07-04T23:57:47.000Z
2019-07-04T23:57:47.000Z
TreeNode.py
Alaya-in-Matrix/CO-MO-BamSOO
e4ec9a696981eccb1006e1a3fc00bb67925513a7
[ "MIT" ]
null
null
null
TreeNode.py
Alaya-in-Matrix/CO-MO-BamSOO
e4ec9a696981eccb1006e1a3fc00bb67925513a7
[ "MIT" ]
null
null
null
import numpy as np import math # TODO: Use anytree to represent the tree class TreeNode: def __init__(self, lb, ub, num_split, rand = False): self.lb = lb self.ub = ub self.x = 0.5 * (lb + ub) if not rand else np.random.uniform(lb, ub) self.y = np.nan self.ch...
31.434783
83
0.524896
211
1,446
3.488152
0.317536
0.065217
0.065217
0.040761
0.057065
0.038043
0
0
0
0
0
0.008593
0.356155
1,446
45
84
32.133333
0.781955
0.026971
0
0.052632
0
0
0.049145
0
0
0
0
0.022222
0
1
0.131579
false
0.026316
0.052632
0.052632
0.315789
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
b379b29a0f0ed960f3a4da960e945c00940abbb1
1,048
py
Python
src/universe-rocketlander/env.py
arminnh/deep-q-learning
e6ec12cfa2468b86f60a6cb2635f5feb12dcd7a6
[ "MIT" ]
1
2017-12-07T02:18:17.000Z
2017-12-07T02:18:17.000Z
src/universe-rocketlander/env.py
arminnh/deep-q-learning
e6ec12cfa2468b86f60a6cb2635f5feb12dcd7a6
[ "MIT" ]
null
null
null
src/universe-rocketlander/env.py
arminnh/deep-q-learning
e6ec12cfa2468b86f60a6cb2635f5feb12dcd7a6
[ "MIT" ]
null
null
null
import cv2 from gym.spaces.box import Box import gym from universe import vectorized from universe.wrappers import BlockingReset, GymCoreAction, EpisodeID, Unvectorize, Vectorize, Vision, Logger def _process_frame84(frame): return cv2.resize(frame, (84, 84)) class Rescale84x84(vectorized.ObservationWrapper): ...
29.942857
109
0.715649
143
1,048
5.06993
0.503497
0.049655
0
0
0
0
0
0
0
0
0
0.042204
0.186069
1,048
35
110
29.942857
0.807737
0.198473
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.227273
0.090909
0.590909
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
b37ac71e5b77ae19453a25f5ace7552fc11cc2cd
10,458
py
Python
leetcode_python/String/add-binary.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/String/add-binary.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/String/add-binary.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
""" 67. Add Binary Easy Given two binary strings a and b, return their sum as a binary string. Example 1: Input: a = "11", b = "1" Output: "100" Example 2: Input: a = "1010", b = "1011" Output: "10101" Constraints: 1 <= a.length, b.length <= 104 a and b consist only of '0' or '1' characters. Each string do...
25.569682
110
0.434309
1,437
10,458
3.140571
0.123173
0.010636
0.067361
0.071571
0.605362
0.582761
0.57146
0.544427
0.514292
0.514292
0
0.052902
0.405336
10,458
409
111
25.569682
0.672777
0.252821
0
0.748837
0
0
0.004941
0
0
0
0
0
0
1
0.083721
false
0
0.004651
0.009302
0.274419
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b37b09599b94545650f60d56f120c65ca744bbfa
306
py
Python
Task-8/Q2.py
sjaiadityan/Cognizance
f810e388b7987813eb2de9d55a692d28c0df0847
[ "Apache-2.0" ]
null
null
null
Task-8/Q2.py
sjaiadityan/Cognizance
f810e388b7987813eb2de9d55a692d28c0df0847
[ "Apache-2.0" ]
null
null
null
Task-8/Q2.py
sjaiadityan/Cognizance
f810e388b7987813eb2de9d55a692d28c0df0847
[ "Apache-2.0" ]
1
2022-02-15T15:38:05.000Z
2022-02-15T15:38:05.000Z
import numpy as np a = input("enter the array elements using space : ") list1= a.split() l1 = list(map(int, list1)) x = np.array(l1) b = input("enter the array elements using space : ") list2= b.split() l2 = list(map(int, list2)) y = np.array(l2) array_equal = np.allclose(x,y) print(array_equal)
27.818182
53
0.666667
53
306
3.811321
0.490566
0.09901
0.128713
0.178218
0.356436
0.356436
0.356436
0
0
0
0
0.031873
0.179739
306
11
54
27.818182
0.772908
0
0
0
0
0
0.262626
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.090909
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b38194fc09904fb93f24d131052cd34775560b04
1,419
py
Python
features/utils.py
sisaman/npglm
da82dc27426cddb249bd78496b26619ccb81b036
[ "MIT" ]
21
2018-05-04T03:14:30.000Z
2020-05-31T05:36:21.000Z
features/utils.py
sisaman/NPGLM
454c426f5627ce019ed2da6f77e01b17d6e8967c
[ "MIT" ]
2
2018-09-01T07:33:42.000Z
2019-12-31T07:46:26.000Z
features/utils.py
sisaman/NPGLM
454c426f5627ce019ed2da6f77e01b17d6e8967c
[ "MIT" ]
4
2018-08-07T17:17:31.000Z
2020-02-26T21:36:43.000Z
import numpy as np from datetime import datetime from scipy import sparse class Indexer: def __init__(self, nodes): self.indices = {node: 0 for node in nodes} self.mapping = {node: {} for node in nodes} def index(self, category, query): if query not in self.mapping[category]: ...
33.785714
119
0.680761
200
1,419
4.635
0.3
0.090615
0.116505
0.07767
0.282632
0.183387
0.183387
0.183387
0.183387
0.183387
0
0.038324
0.209302
1,419
41
120
34.609756
0.787879
0
0
0.066667
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.1
0.033333
0.533333
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
b3899bd08cedab180adb4cb63a9fac2adfed5b2d
12,444
py
Python
src/core/webstompest/tests/sync_client_integration_test.py
hihellobolke/webstompest
4ce849c30d9cc511bdebe4a9cb15d2f1537aa7bb
[ "Apache-2.0" ]
1
2018-12-26T13:12:46.000Z
2018-12-26T13:12:46.000Z
src/core/webstompest/tests/sync_client_integration_test.py
hihellobolke/webstompest
4ce849c30d9cc511bdebe4a9cb15d2f1537aa7bb
[ "Apache-2.0" ]
null
null
null
src/core/webstompest/tests/sync_client_integration_test.py
hihellobolke/webstompest
4ce849c30d9cc511bdebe4a9cb15d2f1537aa7bb
[ "Apache-2.0" ]
null
null
null
import logging import unittest from webstompest.config import StompConfig from webstompest.error import StompConnectionError, StompProtocolError from webstompest.protocol import StompFrame, StompSpec from webstompest.sync import Stomp import time logging.basicConfig(level=logging.DEBUG) LOG_CATEGORY = __name__ from ...
50.177419
221
0.688766
1,329
12,444
6.349887
0.143717
0.038512
0.040289
0.056879
0.682071
0.623771
0.567366
0.545444
0.51653
0.469487
0
0.022072
0.202668
12,444
247
222
50.380567
0.828462
0.023545
0
0.539535
0
0.009302
0.085872
0.022559
0
0
0
0
0.227907
0
null
null
0.027907
0.037209
null
null
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
1
0
0
0
0
0
0
0
0
1
b38ff5fa6a60f8b8ca598459bc9456cb385cfc14
685
py
Python
djweb/dj_comp_hist/migrations/0013_auto_20190123_1438.py
ifeife123/computation_hist
57f0165d47c0df23ffd910bb249f29c16e9c1bc1
[ "BSD-3-Clause" ]
null
null
null
djweb/dj_comp_hist/migrations/0013_auto_20190123_1438.py
ifeife123/computation_hist
57f0165d47c0df23ffd910bb249f29c16e9c1bc1
[ "BSD-3-Clause" ]
1
2018-12-13T02:01:02.000Z
2018-12-13T02:01:02.000Z
djweb/dj_comp_hist/migrations/0013_auto_20190123_1438.py
ktmurray1999/computation_hist
c51a8904060517b2aa8b1056ff0c61f24c138680
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.1.5 on 2019-01-23 19:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dj_comp_hist', '0012_organization_name'), ] operations = [ migrations.AddField( model_name='document', name='cced_or...
28.541667
119
0.632117
74
685
5.635135
0.513514
0.076739
0.071942
0.129496
0.446043
0.446043
0.446043
0.239808
0
0
0
0.037037
0.251095
685
23
120
29.782609
0.775828
0.065693
0
0.352941
1
0
0.23511
0.073668
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
b391b4fc0f125a3630ed67199ad8197aba797d22
811
py
Python
sandbox/abundance-hist-by-position.py
jiarong/khmer
9f3b68f3a281b68544effa0f815cbfa781228983
[ "BSD-3-Clause" ]
1
2015-04-30T01:50:30.000Z
2015-04-30T01:50:30.000Z
sandbox/abundance-hist-by-position.py
jiarong/khmer
9f3b68f3a281b68544effa0f815cbfa781228983
[ "BSD-3-Clause" ]
null
null
null
sandbox/abundance-hist-by-position.py
jiarong/khmer
9f3b68f3a281b68544effa0f815cbfa781228983
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python # # This file is part of khmer, http://github.com/ged-lab/khmer/, and is # Copyright (C) Michigan State University, 2009-2013. It is licensed under # the three-clause BSD license; see doc/LICENSE.txt. Contact: ctb@msu.edu # import sys n = 0 countSum = [0] * 255 countN = [0] * 255 freqfile = sys...
22.527778
74
0.616523
132
811
3.787879
0.522727
0.048
0.084
0.06
0.056
0
0
0
0
0
0
0.044025
0.215783
811
35
75
23.171429
0.742138
0.289766
0
0
0
0
0.059649
0
0
0
0
0
0
0
null
null
0
0.047619
null
null
0.190476
0
0
0
null
0
0
0
0
0
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
b3933ce23428b640ec44133eaea74e07eed95066
22,084
py
Python
PSAM-API/psam/views.py
SECURED-FP7/secured-psam
4479289c5b3e024161ed593527f2c23fa52ee821
[ "Apache-2.0" ]
null
null
null
PSAM-API/psam/views.py
SECURED-FP7/secured-psam
4479289c5b3e024161ed593527f2c23fa52ee821
[ "Apache-2.0" ]
null
null
null
PSAM-API/psam/views.py
SECURED-FP7/secured-psam
4479289c5b3e024161ed593527f2c23fa52ee821
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- #from django.shortcuts import render from rest_framework import status from PSAM_status import * from rest_framework.response import Response from rest_framework.views import APIView from models import PSA from serializers import PSASerializer from django.core.exceptions import ObjectDoesNotExis...
34.132921
159
0.622532
2,781
22,084
4.838188
0.138799
0.027127
0.02854
0.022891
0.428688
0.386771
0.367075
0.335043
0.315422
0.281457
0
0.01721
0.250136
22,084
646
160
34.185759
0.79529
0.072677
0
0.439914
0
0.002146
0.247364
0.007332
0
0
0
0
0
0
null
null
0
0.049356
null
null
0.120172
0
0
0
null
0
0
0
0
0
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
b39ed7ddfbff4c780f5dab8ffb9de574f629b17e
1,467
py
Python
flesch_complexity/scorer_models/flesch_complexity_model.py
custozza/fleschComplexity
2cff02e1d20f33f8d43099ed49994a3f2ab88b72
[ "MIT" ]
null
null
null
flesch_complexity/scorer_models/flesch_complexity_model.py
custozza/fleschComplexity
2cff02e1d20f33f8d43099ed49994a3f2ab88b72
[ "MIT" ]
1
2017-05-22T20:29:25.000Z
2017-05-22T20:29:25.000Z
flesch_complexity/scorer_models/flesch_complexity_model.py
wiki-ai/flesch_complexity
2cff02e1d20f33f8d43099ed49994a3f2ab88b72
[ "MIT" ]
1
2017-05-21T09:26:36.000Z
2017-05-21T09:26:36.000Z
import pickle from revscoring import ScorerModel from revscoring.features import wikitext class FleschComplexityModel(ScorerModel): """ Implementation of the Flesch reading ease model https://en.wikipedia.org/wiki/Flesch%E2%80%93Kincaid_readability_tests """ def __init__(self, *args, **kwargs): ...
30.5625
84
0.609407
164
1,467
5.335366
0.542683
0.044571
0
0
0
0
0
0
0
0
0
0.006667
0.284254
1,467
47
85
31.212766
0.826667
0.264485
0
0
0
0
0.121457
0
0
0
0
0
0
1
0.2
false
0
0.12
0.04
0.56
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
b3a0c04eee9cc693a03c59892b6339e80046a03a
420
py
Python
pyTMD/count_leap_seconds.py
mcuttler/pyTMD
40ec2ec4c170c821a2558f52c1aeac6c5f9dfeff
[ "MIT" ]
1
2021-11-26T07:36:28.000Z
2021-11-26T07:36:28.000Z
pyTMD/count_leap_seconds.py
mcuttler/pyTMD
40ec2ec4c170c821a2558f52c1aeac6c5f9dfeff
[ "MIT" ]
null
null
null
pyTMD/count_leap_seconds.py
mcuttler/pyTMD
40ec2ec4c170c821a2558f52c1aeac6c5f9dfeff
[ "MIT" ]
null
null
null
#!/usr/bin/env python u""" count_leap_seconds.py (08/2020) Count number of leap seconds that have passed for each GPS time """ import warnings import pyTMD.time def count_leap_seconds(*args,**kwargs): warnings.filterwarnings("always") warnings.warn("Deprecated. Please use pyTMD.time instead",DeprecationWarning...
30
81
0.764286
60
420
5.25
0.7
0.139683
0.152381
0.126984
0
0
0
0
0
0
0
0.016529
0.135714
420
13
82
32.307692
0.85124
0.380952
0
0
0
0
0.187251
0
0
0
0
0
0
1
0.142857
true
0
0.285714
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
1
0
0
0
0
0
0
1
b3a2719cd7431ab2914d2bf5749895bdedef1f50
534
py
Python
tests/test_mariadb_auth.py
FredericoCoelhoNunes/PyMySQL
4137b067a2f365b2f051744c55a839c2176b19de
[ "MIT" ]
1
2021-08-13T12:54:21.000Z
2021-08-13T12:54:21.000Z
tests/test_mariadb_auth.py
FredericoCoelhoNunes/PyMySQL
4137b067a2f365b2f051744c55a839c2176b19de
[ "MIT" ]
null
null
null
tests/test_mariadb_auth.py
FredericoCoelhoNunes/PyMySQL
4137b067a2f365b2f051744c55a839c2176b19de
[ "MIT" ]
1
2018-03-30T03:34:43.000Z
2018-03-30T03:34:43.000Z
"""Test for auth methods supported by MariaDB 10.3+""" import pymysql # pymysql.connections.DEBUG = True # pymysql._auth.DEBUG = True host = "127.0.0.1" port = 3306 def test_ed25519_no_password(): con = pymysql.connect(user="nopass_ed25519", host=host, port=port, ssl=None) con.close() def test_ed25519_pa...
21.36
84
0.696629
76
534
4.776316
0.526316
0.049587
0.077135
0.115702
0.209366
0.209366
0.209366
0.209366
0.209366
0
0
0.086364
0.17603
534
24
85
22.25
0.738636
0.322097
0
0.181818
0
0
0.133144
0
0
0
0
0
0
1
0.181818
false
0.363636
0.090909
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b3abd811dc5b30d266df647d6f97f88fc7d2fa95
505
py
Python
0x11-python-network_1/3-error_code.py
ricardo1470/holbertonschool-higher_level_programming
aab73c8efee665b0215958ee7b338871f13634bc
[ "CNRI-Python" ]
null
null
null
0x11-python-network_1/3-error_code.py
ricardo1470/holbertonschool-higher_level_programming
aab73c8efee665b0215958ee7b338871f13634bc
[ "CNRI-Python" ]
null
null
null
0x11-python-network_1/3-error_code.py
ricardo1470/holbertonschool-higher_level_programming
aab73c8efee665b0215958ee7b338871f13634bc
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/python3 """ script that takes in a URL, sends a request to the URL and displays the body of the response (decoded in utf-8). """ from urllib import request from urllib import parse from urllib import error from sys import argv if __name__ == '__main__': try: url = request.Request(argv[1...
28.055556
52
0.661386
74
505
4.405405
0.594595
0.092025
0.147239
0
0
0
0
0
0
0
0
0.010256
0.227723
505
17
53
29.705882
0.825641
0.259406
0
0
0
0
0.075209
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b3acac4be0900964dc12cda03e21e5f8abcf0a32
2,527
py
Python
robin/util.py
aollio/robin
de23f436857a427d23d310a392b46a0ed4749dee
[ "MIT" ]
1
2019-03-06T07:04:36.000Z
2019-03-06T07:04:36.000Z
robin/util.py
aollio/robin
de23f436857a427d23d310a392b46a0ed4749dee
[ "MIT" ]
null
null
null
robin/util.py
aollio/robin
de23f436857a427d23d310a392b46a0ed4749dee
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import logging from functools import wraps __author__ = 'Aollio Hou' __email__ = 'aollio@outlook.com' _level = -1 _step = ' ' def log_def(name): def decorator(func): @wraps(func) def wrapper(*args, **kw): logger = logging.getLogger(name) global _...
30.817073
114
0.592798
290
2,527
4.817241
0.344828
0.01718
0.068719
0.027201
0.143164
0.143164
0.051539
0
0
0
0
0.00229
0.308666
2,527
81
115
31.197531
0.796795
0.187178
0
0.163636
0
0
0.047883
0
0
0
0
0
0
1
0.2
false
0.018182
0.036364
0.018182
0.509091
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
b3ba0bda21c2197a9b8c01d2de907291d65068da
1,070
py
Python
CKYTable.py
AleDroid93/traduzione-transfer-it-ityo
2ea4f7a4dbff60309b0b19bf14b5a0cddb9e1cd9
[ "MIT" ]
null
null
null
CKYTable.py
AleDroid93/traduzione-transfer-it-ityo
2ea4f7a4dbff60309b0b19bf14b5a0cddb9e1cd9
[ "MIT" ]
null
null
null
CKYTable.py
AleDroid93/traduzione-transfer-it-ityo
2ea4f7a4dbff60309b0b19bf14b5a0cddb9e1cd9
[ "MIT" ]
null
null
null
from numpy import zeros class CKYTable: table = None def __init__(self, tokens): self.table = zeros(shape=(len(tokens) + 1, len(tokens) + 1), dtype=CKYCell) for i in range(0, len(self.table)): for j in range(0, len(self.table)): self.table[i, j] = CKYCell() de...
23.26087
83
0.546729
139
1,070
4.115108
0.28777
0.157343
0.083916
0.057692
0.124126
0.124126
0
0
0
0
0
0.005602
0.33271
1,070
46
84
23.26087
0.795518
0
0
0
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.030303
0.060606
0.484848
0.151515
0
0
0
null
0
0
0
0
0
0
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
b3c2ab1f21fa63b013534e404f508e6b4feb99fe
1,543
py
Python
numba/validate.py
liuzhenhai/numba
855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf
[ "BSD-2-Clause" ]
null
null
null
numba/validate.py
liuzhenhai/numba
855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf
[ "BSD-2-Clause" ]
null
null
null
numba/validate.py
liuzhenhai/numba
855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Initial AST validation and normalization. """ from __future__ import print_function, division, absolute_import import ast from numba import error class ValidateAST(ast.NodeVisitor): "Validate AST" #------------------------------------------------------------------------ # Va...
30.86
77
0.561892
157
1,543
5.414013
0.407643
0.056471
0.141176
0.169412
0.352941
0.291765
0.141176
0
0
0
0
0.000885
0.26766
1,543
50
78
30.86
0.751327
0.150356
0
0.233333
0
0
0.232877
0
0
0
0
0
0
1
0.2
false
0
0.1
0
0.333333
0.033333
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b3c3912c15095734c63f32d613a3c4dfb8c061db
5,945
py
Python
controller_manager_tests/test/cm_msgs_utils_rostest.py
matthew-reynolds/ros_control
43388ac8cc803625412b9cb71afe9e50d07ca472
[ "BSD-3-Clause" ]
375
2015-01-15T06:48:33.000Z
2022-03-27T13:49:24.000Z
controller_manager_tests/test/cm_msgs_utils_rostest.py
matthew-reynolds/ros_control
43388ac8cc803625412b9cb71afe9e50d07ca472
[ "BSD-3-Clause" ]
291
2015-01-07T09:39:28.000Z
2022-03-28T07:48:03.000Z
controller_manager_tests/test/cm_msgs_utils_rostest.py
matthew-reynolds/ros_control
43388ac8cc803625412b9cb71afe9e50d07ca472
[ "BSD-3-Clause" ]
269
2015-01-15T14:06:17.000Z
2022-03-28T14:50:45.000Z
#!/usr/bin/env python # Copyright (C) 2014, PAL Robotics S.L. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright notice, # this list of conditions and the...
37.866242
79
0.69016
717
5,945
5.503487
0.305439
0.072225
0.053218
0.04663
0.330208
0.235175
0.216422
0.19108
0.173087
0.118094
0
0.004764
0.223213
5,945
156
80
38.108974
0.849718
0.316569
0
0.089888
0
0
0.113625
0.034809
0
0
0
0
0.426966
1
0.067416
false
0
0.044944
0
0.146067
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
b3c5c91a670fc9c70ebf8bfe0e7df5d2b562e0ba
777
py
Python
setup.py
kevinzakka/coffee
a238be767a85421c8cdadbe1303c0cf8ead92f7a
[ "MIT" ]
18
2022-01-12T02:02:33.000Z
2022-01-18T11:45:04.000Z
setup.py
kevinzakka/coffee
a238be767a85421c8cdadbe1303c0cf8ead92f7a
[ "MIT" ]
null
null
null
setup.py
kevinzakka/coffee
a238be767a85421c8cdadbe1303c0cf8ead92f7a
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name="coffee", version="0.0.0", description="PyBullet infrastructure is great, and so is coffee.", author="Kevin Zakka", license="MIT", packages=find_packages(), package_data={"coffee": ["py.typed"]}, python_requires=">=3.8", instal...
21.583333
70
0.477477
65
777
5.584615
0.738462
0.066116
0.066116
0
0
0
0
0
0
0
0
0.012245
0.369369
777
35
71
22.2
0.728571
0
0
0.235294
0
0
0.302445
0.034749
0
0
0
0
0
1
0
true
0
0.029412
0
0.029412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
b3c8f3813d9f0e749de13075d50a043de170d5ea
13,188
py
Python
app.py
henrymorenoespitia/clinical_history_test_learning
b5a34f25742179315f2a10e65e032c134be1c8c7
[ "MIT" ]
1
2021-02-20T16:07:53.000Z
2021-02-20T16:07:53.000Z
app.py
henrymorenoespitia/clinical_histoy_test_learning
b5a34f25742179315f2a10e65e032c134be1c8c7
[ "MIT" ]
null
null
null
app.py
henrymorenoespitia/clinical_histoy_test_learning
b5a34f25742179315f2a10e65e032c134be1c8c7
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify, Response #import Flask-HTTPAuth import models as model import yagmail as yagmail ## temporal mientras se configura el servidor de correo import os import random import secrets import db_con as db # SCRAM -> si se cambia por SCRAM (cifrar contraseña cliente -> DB),...
36.131507
260
0.609342
1,522
13,188
5.137319
0.258213
0.01637
0.02609
0.015347
0.249393
0.237626
0.205909
0.205909
0.205909
0.205909
0
0.007445
0.287079
13,188
365
261
36.131507
0.823974
0.147255
0
0.300469
0
0.00939
0.214979
0.016025
0
0
0
0
0
1
0.089202
false
0.075117
0.046948
0.014085
0.248826
0.089202
0
0
0
null
0
0
0
0
0
0
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
b3c9bcfd0f8547cb646f8db0341f7f20eab22d0c
17,962
py
Python
src/apache_system_auditor.py
mikefeneley/stig_apache_2.2_nix
ee6a88957cbd4a97661f995f0faf9fa86551364c
[ "MIT" ]
3
2016-09-07T18:00:01.000Z
2016-10-01T20:27:08.000Z
src/apache_system_auditor.py
mikefeneley/stig_apache_2.2_nix
ee6a88957cbd4a97661f995f0faf9fa86551364c
[ "MIT" ]
1
2017-04-28T14:15:44.000Z
2017-04-29T15:59:45.000Z
src/apache_system_auditor.py
mikefeneley/stig_apache_2.2_nix
ee6a88957cbd4a97661f995f0faf9fa86551364c
[ "MIT" ]
2
2016-12-08T16:58:27.000Z
2018-05-02T14:11:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import subprocess import os import glob import sys from subprocess import call from stat import * from apache_system_logger import ApacheSystemLogger UBUNTU_SEP_TOKEN = "u" MISSING_APACHE = "(none)" REQUIRED_APACHE = "2.2.31" MODULE_FILENAME = "module.txt" PASSWORD_FILE...
29.936667
81
0.606169
2,050
17,962
5.152683
0.209268
0.0302
0.024614
0.049986
0.22238
0.11777
0.105084
0.105084
0.079523
0.071381
0
0.02647
0.316446
17,962
599
82
29.986644
0.833849
0.309208
0
0.304196
0
0
0.038136
0.004043
0
0
0.000459
0.005008
0
1
0.132867
false
0.052448
0.024476
0.013986
0.311189
0.006993
0
0
0
null
0
0
0
0
0
0
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
b3cf58effebd890754482d83e6b9714ec13ece1c
611
py
Python
LeetCode/python-R1/1025-除数博弈D/V1.py
huuuuusy/Programming-Practice-Everyday
c78b368ab0439d85b8a69f6d9c8154d708bafc9c
[ "Apache-2.0" ]
4
2019-08-27T11:28:03.000Z
2020-12-24T07:10:22.000Z
LeetCode/python-R1/1025-除数博弈D/V1.py
huuuuusy/Programming-Practice-Everyday
c78b368ab0439d85b8a69f6d9c8154d708bafc9c
[ "Apache-2.0" ]
null
null
null
LeetCode/python-R1/1025-除数博弈D/V1.py
huuuuusy/Programming-Practice-Everyday
c78b368ab0439d85b8a69f6d9c8154d708bafc9c
[ "Apache-2.0" ]
4
2019-09-20T09:44:01.000Z
2020-12-24T07:10:23.000Z
""" @Author: huuuuusy @GitHub: https://github.com/huuuuusy 系统: Ubuntu 18.04 IDE: VS Code 1.37.1 工具: python == 3.7.3 """ """ 思路: 数字N如果是奇数,它的约数必然都是奇数;若为偶数,则其约数可奇可偶。 无论N初始为多大的值,游戏最终只会进行到N=2时结束,那么谁轮到N=2时谁就会赢。 因为爱丽丝先手,N初始若为偶数,爱丽丝则只需一直选1,使鲍勃一直面临N为奇数的情况,这样爱丽丝稳赢; N初始若为奇数,那么爱丽丝第一次选完之后N必为偶数,那么鲍勃只需一直选1就会稳赢。 ...
19.709677
54
0.672668
81
611
4.975309
0.814815
0.049628
0
0
0
0
0
0
0
0
0
0.064777
0.191489
611
30
55
20.366667
0.751012
0.183306
0
0
0
0
0.047904
0
0
0
0
0
0
1
0.142857
false
0
0
0.142857
0.428571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
b3d1a40276cacc4e3caedeff45e818fbae61c5ba
831
py
Python
baselines/common/movie_util.py
xueeinstein/VFO
20c87db0d778a10a88034a2a47c0822b8db4f128
[ "MIT" ]
null
null
null
baselines/common/movie_util.py
xueeinstein/VFO
20c87db0d778a10a88034a2a47c0822b8db4f128
[ "MIT" ]
null
null
null
baselines/common/movie_util.py
xueeinstein/VFO
20c87db0d778a10a88034a2a47c0822b8db4f128
[ "MIT" ]
null
null
null
import cv2 class MovieWriter(object): def __init__(self, file_name, frame_size, fps): """ frame_size is (w, h) """ self._frame_size = frame_size fourcc = cv2.VideoWriter_fourcc('m', 'p', '4', 'v') self.vout = cv2.VideoWriter() success = self.vout.open(file_n...
29.678571
74
0.563177
108
831
4.185185
0.537037
0.099558
0.053097
0
0
0
0
0
0
0
0
0.024096
0.300842
831
27
75
30.777778
0.753873
0.148014
0
0
0
0
0.04236
0
0
0
0
0.037037
0
1
0.1875
false
0
0.0625
0
0.3125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
b3d2541027e4ff4e037b58969332166ba07c23fb
7,330
py
Python
sc2simulator/setup/simpleRaceMap.py
ttinies/sc2simulator
3d0dd356c8edb8cc0c021fff90697649dc89ec8d
[ "Apache-2.0" ]
10
2018-09-23T18:48:19.000Z
2019-06-02T12:03:32.000Z
sc2simulator/setup/simpleRaceMap.py
vege-zhxy/sc2simulator
fd3d8e7593df82294b30557393a6663249c43a94
[ "Apache-2.0" ]
22
2018-10-01T20:12:01.000Z
2020-09-01T20:36:42.000Z
sc2simulator/setup/simpleRaceMap.py
vege-zhxy/sc2simulator
fd3d8e7593df82294b30557393a6663249c43a94
[ "Apache-2.0" ]
2
2018-10-09T11:07:56.000Z
2019-02-11T05:04:51.000Z
""" This hard-coded list would need to be maintained differently if/when the available units, available upgrades or their in-game IDs change. """ codeMap = { "protoss" : { "ground" : { 4 : "Colossus", 73 : "Zealot", 74 : "Stalker", ...
38.376963
72
0.383492
332
7,330
8.466867
0.88253
0
0
0
0
0
0
0
0
0
0
0.105038
0.520737
7,330
190
73
38.578947
0.695132
0.021965
0
0.082418
0
0
0.328538
0.175863
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
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b3dacfc7709a18052668048595f9eab2856f7252
408
py
Python
sql/database.py
omwro/Portfolio-API
80a67aad11fb5d051f2faee4b99e7f780e831c38
[ "Apache-2.0" ]
null
null
null
sql/database.py
omwro/Portfolio-API
80a67aad11fb5d051f2faee4b99e7f780e831c38
[ "Apache-2.0" ]
null
null
null
sql/database.py
omwro/Portfolio-API
80a67aad11fb5d051f2faee4b99e7f780e831c38
[ "Apache-2.0" ]
null
null
null
import os from dotenv import load_dotenv from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker load_dotenv() engine = create_engine( os.getenv("DATABASE_URL", "The database url is not setup correctly!") ) SessionLocal = sessionmaker( ...
20.4
73
0.781863
51
408
6.117647
0.509804
0.134615
0
0
0
0
0
0
0
0
0
0
0.14951
408
19
74
21.473684
0.899135
0
0
0
0
0
0.127451
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
b3def7604bc1a68243c9280e697771ae7ebdfd62
376
py
Python
mi/30.py
1005281342/learn
c9d1e2e256842d9b4846c4870ac72e83d172b20e
[ "Apache-2.0" ]
1
2018-11-29T01:01:32.000Z
2018-11-29T01:01:32.000Z
mi/30.py
1005281342/learn
c9d1e2e256842d9b4846c4870ac72e83d172b20e
[ "Apache-2.0" ]
null
null
null
mi/30.py
1005281342/learn
c9d1e2e256842d9b4846c4870ac72e83d172b20e
[ "Apache-2.0" ]
null
null
null
# 此处可 import 模块 """ @param string line 为单行测试数据 @return string 处理后的结果 """ def solution(line): # 缩进请使用 4 个空格,遵循 PEP8 规范 # please write your code here # return 'your_answer' int_10 = int(line) int_2 = bin(int_10).replace('0b', '') int_2_r = int_2[::-1] x = 32 - len(int_2_r) int_2_r += '0'*x ret...
16.347826
41
0.625
66
376
3.363636
0.575758
0.108108
0.09009
0.072072
0.081081
0
0
0
0
0
0
0.085616
0.223404
376
22
42
17.090909
0.674658
0.359043
0
0
0
0
0.043478
0
0
0
0
0.045455
0
1
0.111111
false
0
0
0
0.222222
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
b3e5f408a2952c8846bd06f2bc7171a2990d7d6f
575
py
Python
cea/utilities/date.py
architecture-building-systems/cea-toolbox
bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6
[ "MIT" ]
121
2017-08-15T20:10:22.000Z
2022-03-24T01:25:42.000Z
cea/utilities/date.py
architecture-building-systems/cea-toolbox
bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6
[ "MIT" ]
2,121
2017-07-27T12:02:01.000Z
2022-03-31T16:39:28.000Z
cea/utilities/date.py
architecture-building-systems/cea-toolbox
bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6
[ "MIT" ]
42
2017-09-19T09:59:56.000Z
2022-02-19T20:19:56.000Z
import pandas as pd from calendar import isleap def get_date_range_hours_from_year(year): """ creates date range in hours for the year excluding leap day :param year: year of date range :type year: int :return: pd.date_range with 8760 values :rtype: pandas.data_range """ date_rang...
23
91
0.669565
89
575
4.168539
0.516854
0.266846
0.113208
0.097035
0
0
0
0
0
0
0
0.017978
0.226087
575
24
92
23.958333
0.81573
0.372174
0
0
0
0
0.015337
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b3f1b115e82ff735c70540c4f81346207279c055
450
py
Python
Week2/scripts/ang_vel_server.py
BigFloppa456/Robotics-Automation-QSTP-2021
cc1873cced1fae013805b2430895255dc46d6fbb
[ "MIT" ]
null
null
null
Week2/scripts/ang_vel_server.py
BigFloppa456/Robotics-Automation-QSTP-2021
cc1873cced1fae013805b2430895255dc46d6fbb
[ "MIT" ]
null
null
null
Week2/scripts/ang_vel_server.py
BigFloppa456/Robotics-Automation-QSTP-2021
cc1873cced1fae013805b2430895255dc46d6fbb
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import numpy as np from std_msgs.msg import Float32 from week2.srv import angularvelocity, angularvelocityResponse linvel = 0.1 angvel = None def angular(req): angvel = linvel/float(req.radius) return angularvelocityResponse(ang_vel = (angvel)) rospy.init_node('ang_vel') #...
25
67
0.773333
61
450
5.606557
0.622951
0.052632
0
0
0
0
0
0
0
0
0
0.017588
0.115556
450
18
68
25
0.841709
0.153333
0
0
0
0
0.057895
0
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b3f3372800c6e34e0f7951b7d7e414deb2592220
255
py
Python
estrutura-repeticao-for/ex046.py
TacilioRodriguez/Python
0b98dc8336e014046c579b387013b2871024e3d0
[ "Unlicense" ]
null
null
null
estrutura-repeticao-for/ex046.py
TacilioRodriguez/Python
0b98dc8336e014046c579b387013b2871024e3d0
[ "Unlicense" ]
null
null
null
estrutura-repeticao-for/ex046.py
TacilioRodriguez/Python
0b98dc8336e014046c579b387013b2871024e3d0
[ "Unlicense" ]
null
null
null
"""Faça um programa que mostre na tela uma contagem regressiva para o estouro de fogos de artificio, indo de 10 até 0, com uma pausa de 1 segundo entre eles""" import time for tempo in range(10,-1,-1): time.sleep(1) print(tempo) print('BOMMMM')
28.333333
101
0.713725
46
255
3.956522
0.76087
0
0
0
0
0
0
0
0
0
0
0.043689
0.192157
255
9
102
28.333333
0.839806
0.603922
0
0
0
0
0.0625
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b3f361f3cb45759128d5270d00d2b82a66316dad
1,161
py
Python
wivaprec/evaluation/mixing_time.py
maxentile/wivaprec
fb7958c72cbe5faa1e499fcef7eb3b59a9d3590a
[ "MIT" ]
null
null
null
wivaprec/evaluation/mixing_time.py
maxentile/wivaprec
fb7958c72cbe5faa1e499fcef7eb3b59a9d3590a
[ "MIT" ]
null
null
null
wivaprec/evaluation/mixing_time.py
maxentile/wivaprec
fb7958c72cbe5faa1e499fcef7eb3b59a9d3590a
[ "MIT" ]
null
null
null
# Estimates of mixing time # To-do's: # * Estimate "baseline" mixing times from "brute-force simulations" (GHMC, Random-Walk Metropolis-Hastings, NUTS) # * Make sure we cover all relevant modes import pyemma def estimate_mixing_time_tica(x): """Return an estimate of the mixing time of a stochastic process, ...
23.693878
113
0.673557
144
1,161
5.368056
0.638889
0.07762
0.043984
0.054334
0
0
0
0
0
0
0
0.010067
0.229974
1,161
48
114
24.1875
0.854586
0.732127
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.166667
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
1
0
0
0
0
0
0
0
1
b3f461b41dcbf355bdb2ef382d3f92fa558e7382
7,774
py
Python
master_randomforest.py
joshuawallace/Fragile-Families-Challenge
c017f59085b374af535703ff8cd710eab78746e8
[ "MIT" ]
null
null
null
master_randomforest.py
joshuawallace/Fragile-Families-Challenge
c017f59085b374af535703ff8cd710eab78746e8
[ "MIT" ]
null
null
null
master_randomforest.py
joshuawallace/Fragile-Families-Challenge
c017f59085b374af535703ff8cd710eab78746e8
[ "MIT" ]
null
null
null
############# # Created 3-17-17 by JJW # For the Fragile Families Challenge # Implements scikit-learn's linear regression classifier # on the FFC data # # AGBTG # ########### # This website helped me: http://scikit-learn.org/stable/modules/generated/sklearn.tree.DecisionTreeRegressor.html#sklearn.tree.DecisionTreeRegre...
42.950276
214
0.733213
1,149
7,774
4.672759
0.24369
0.043211
0.021792
0.029987
0.217731
0.133172
0.075619
0.064444
0.051779
0.051779
0
0.006915
0.181502
7,774
180
215
43.188889
0.836869
0.313867
0
0
0
0.010753
0.138503
0.055058
0
0
0
0
0
0
null
null
0
0.139785
null
null
0.096774
0
0
0
null
0
0
0
0
0
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
b3fa6f09df4bcd3abd79e2decda4fbf4f727ead0
1,051
py
Python
home/admin.py
abhishek-07/SmartAttendance
641f756b661a0e4ccdd99bccd5a6157f7e011c93
[ "MIT" ]
7
2017-10-17T04:34:52.000Z
2018-04-06T16:28:33.000Z
home/admin.py
abhishek-07/SmartAttendance
641f756b661a0e4ccdd99bccd5a6157f7e011c93
[ "MIT" ]
23
2017-09-22T06:59:34.000Z
2019-08-17T01:21:48.000Z
home/admin.py
hardlyhuman/SE2017
21da2f7fd3dbc88109d3edaad9ad1faa8558eaa7
[ "MIT" ]
13
2017-09-15T15:32:23.000Z
2019-11-09T18:18:19.000Z
from django.contrib import admin from .models import * from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.models import User class PInline(admin.StackedInline): model = Personnel can_delete = False verbose_name_plural = 'personnel' ...
27.657895
64
0.810657
136
1,051
6.213235
0.345588
0.181065
0.321893
0.085207
0.07574
0.07574
0
0
0
0
0
0
0.092293
1,051
37
65
28.405405
0.885744
0.094196
0
0.071429
0
0
0.009504
0
0
0
0
0
0
1
0
false
0
0.178571
0
0.392857
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b3fa9d9d856c9a81d4540c7539d33473a851b550
1,623
py
Python
sknano/structures/_defects.py
haidi-ustc/scikit-nano
ef9b24165ba37918b3f520657f7311ba139b3e7d
[ "BSD-2-Clause" ]
21
2016-06-08T18:27:20.000Z
2022-03-22T08:27:46.000Z
sknano/structures/_defects.py
haidi-ustc/scikit-nano
ef9b24165ba37918b3f520657f7311ba139b3e7d
[ "BSD-2-Clause" ]
8
2016-06-24T19:45:58.000Z
2021-03-25T21:42:29.000Z
sknano/structures/_defects.py
scikit-nano/scikit-nano
ef9b24165ba37918b3f520657f7311ba139b3e7d
[ "BSD-2-Clause" ]
9
2016-12-08T16:35:52.000Z
2021-06-23T17:13:44.000Z
# -*- coding: utf-8 -*- """ ============================================================================== Defect structure classes (:mod:`sknano.structures._defects`) ============================================================================== .. currentmodule:: sknano.structures._defects """ from __future__ impor...
20.2875
78
0.624769
146
1,623
6.753425
0.472603
0.063895
0.081136
0.05071
0
0
0
0
0
0
0
0.005158
0.163894
1,623
79
79
20.544304
0.721444
0.396796
0
0.290323
0
0
0.116453
0
0
0
0
0
0
1
0.064516
false
0.290323
0.064516
0
0.451613
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
1
0
0
0
0
0
1
b3fe2405a9be5f9f3c8d62f1069cb59668e52cbe
1,091
py
Python
db/userdml.py
samucafreitas/TomatoPower
100c9444199f8c462cca2d696bfc86c5c917613e
[ "MIT" ]
null
null
null
db/userdml.py
samucafreitas/TomatoPower
100c9444199f8c462cca2d696bfc86c5c917613e
[ "MIT" ]
null
null
null
db/userdml.py
samucafreitas/TomatoPower
100c9444199f8c462cca2d696bfc86c5c917613e
[ "MIT" ]
null
null
null
from os import path import sqlite3 BASE_DIR = path.dirname(path.realpath(__file__)) DATABASE = path.join(BASE_DIR, 'tpdb.db') def close_commit(func): def magic(*args): conn = sqlite3.connect(DATABASE) cur = conn.cursor() sql = func(*args) cur.execute(sql[0], sql[1]) conn.co...
25.372093
78
0.613199
140
1,091
4.635714
0.35
0.098613
0.064715
0.080123
0.120185
0.120185
0.120185
0
0
0
0
0.006188
0.259395
1,091
42
79
25.97619
0.79703
0
0
0.323529
0
0
0.162236
0
0
0
0
0
0
1
0.176471
false
0.088235
0.058824
0.088235
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b6040bb438b5c72baf263bbd49dc58aadbaad657
310
py
Python
django_moodle/urls.py
lkk7/d-moodle
dc79a5ca284e6a82cc1d2eeb5834a3f84bf0023b
[ "MIT" ]
null
null
null
django_moodle/urls.py
lkk7/d-moodle
dc79a5ca284e6a82cc1d2eeb5834a3f84bf0023b
[ "MIT" ]
null
null
null
django_moodle/urls.py
lkk7/d-moodle
dc79a5ca284e6a82cc1d2eeb5834a3f84bf0023b
[ "MIT" ]
null
null
null
from django.contrib.auth import views from django.contrib import admin from django.urls import include, path urlpatterns = [ path('', include('moodle.urls')), path('admin/', admin.site.urls), path('authentication/', include('authentication.urls')), ] handler403 = 'moodle.views.fordbidden_view'
23.846154
60
0.722581
37
310
6.027027
0.459459
0.134529
0.152466
0
0
0
0
0
0
0
0
0.011152
0.132258
310
12
61
25.833333
0.817844
0
0
0
0
0
0.254839
0.090323
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
b604a6b46237c9d7af28d2dadd8896966269bcab
43,243
py
Python
code/Visualization/ChainGUI.py
zhusa580999999/catena
1b69f4c744c602b2849aa2849a317de43e860d74
[ "Unlicense" ]
null
null
null
code/Visualization/ChainGUI.py
zhusa580999999/catena
1b69f4c744c602b2849aa2849a317de43e860d74
[ "Unlicense" ]
null
null
null
code/Visualization/ChainGUI.py
zhusa580999999/catena
1b69f4c744c602b2849aa2849a317de43e860d74
[ "Unlicense" ]
1
2020-12-30T19:50:37.000Z
2020-12-30T19:50:37.000Z
# Copyright (c) 2014, Adam J. Rossi. All rights reserved. See README for licensing details. import sys, os, copy, collections, math sys.path.append(os.path.abspath(".")) from PySide import QtCore, QtGui import Chain, Sources, Common ##########################################################################...
41.579808
147
0.561733
3,838
43,243
6.189422
0.15581
0.026268
0.027784
0.015155
0.424837
0.356346
0.314671
0.309493
0.294591
0.289581
0
0.009826
0.315172
43,243
1,039
148
41.619827
0.792328
0.023241
0
0.359039
0
0
0.048243
0.0195
0
0
0
0
0
0
null
null
0.006321
0.003793
null
null
0.010114
0
0
0
null
0
0
0
0
0
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
b60db26d44b1a19810a766916e18dd4f71acf832
433
py
Python
apps/api/migrations/0002_auto_20190728_1719.py
HON95/studlan
8dc38c64d0060506d865b9c834466fed2f9f9571
[ "MIT" ]
9
2016-03-15T21:03:49.000Z
2020-12-02T19:45:44.000Z
apps/api/migrations/0002_auto_20190728_1719.py
HON95/studlan
8dc38c64d0060506d865b9c834466fed2f9f9571
[ "MIT" ]
161
2016-02-05T14:11:50.000Z
2020-10-14T10:13:21.000Z
apps/api/migrations/0002_auto_20190728_1719.py
HON95/studlan
8dc38c64d0060506d865b9c834466fed2f9f9571
[ "MIT" ]
11
2016-07-27T12:20:05.000Z
2021-04-18T05:49:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-07-28 17:19 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.AlterModelOptions( ...
21.65
83
0.612009
48
433
5.333333
0.75
0.085938
0
0
0
0
0
0
0
0
0
0.068323
0.256351
433
19
84
22.789474
0.726708
0.159353
0
0
1
0
0.177285
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3743bde79acb69bbb387103283acef2a0084e55d
1,239
py
Python
app/auth/views.py
abinsun/Flask-Web
6b2b849d4388d6d5a1a3870f22e5bcacdd3d02d3
[ "MIT" ]
1
2020-07-02T03:12:15.000Z
2020-07-02T03:12:15.000Z
app/auth/views.py
abinsun/Flask-Web
6b2b849d4388d6d5a1a3870f22e5bcacdd3d02d3
[ "MIT" ]
8
2020-07-02T03:11:05.000Z
2022-03-12T00:41:45.000Z
app/auth/views.py
abinsun/Flask-Web
6b2b849d4388d6d5a1a3870f22e5bcacdd3d02d3
[ "MIT" ]
1
2021-01-12T13:03:35.000Z
2021-01-12T13:03:35.000Z
from flask import render_template,flash, request, url_for, redirect,make_response,abort from . import auth from .forms import LoginForm,RegistrationForm from ..models import User,db import time from flask_login import login_user,logout_user @auth.route('/login', methods=['GET', 'POST']) def login(): form = LoginFo...
32.605263
90
0.680387
168
1,239
4.886905
0.339286
0.029233
0.062119
0.073082
0.26553
0.177832
0.107186
0.107186
0
0
0
0.000973
0.170299
1,239
38
91
32.605263
0.797665
0.046005
0
0
0
0
0.110076
0
0
0
0
0
0
1
0.129032
false
0.064516
0.193548
0.032258
0.483871
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
374b37816290468a3c24d20e8df6ab7e82764ddd
371
py
Python
T3/bin/query.py
GuillelmoGomezCeballos/PandaAnalysis
87a62effbe320d0d981e032f240c057e5ab2d3fc
[ "MIT" ]
null
null
null
T3/bin/query.py
GuillelmoGomezCeballos/PandaAnalysis
87a62effbe320d0d981e032f240c057e5ab2d3fc
[ "MIT" ]
3
2017-12-09T06:50:57.000Z
2018-02-22T08:58:12.000Z
T3/bin/query.py
GuillelmoGomezCeballos/PandaAnalysis
87a62effbe320d0d981e032f240c057e5ab2d3fc
[ "MIT" ]
1
2017-09-24T18:29:16.000Z
2017-09-24T18:29:16.000Z
import cPickle as pickle from os import getenv try: l = pickle.load(open(getenv('SUBMIT_WORKDIR')+'/submission.pkl')) s = l[-1] print 'ClusterID',s.cluster_id statii = s.query_status() print 'Job summary:' for k,v in statii.iteritems(): print '\t %10s : %5i'%(k,len(v)) e...
26.5
71
0.606469
53
371
4.188679
0.754717
0
0
0
0
0
0
0
0
0
0
0.01444
0.253369
371
13
72
28.538462
0.787004
0
0
0
0
0
0.226415
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.333333
0
0
0
null
0
0
0
0
0
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
374fd64708e87256ac4dfc6bf4ddb57305fa105f
2,977
py
Python
tests/test_nml_generation.py
scalableminds/wknml
b0ce155a212385f62ea75db64e938f44a86c5ea2
[ "MIT" ]
null
null
null
tests/test_nml_generation.py
scalableminds/wknml
b0ce155a212385f62ea75db64e938f44a86c5ea2
[ "MIT" ]
26
2019-02-07T18:23:52.000Z
2022-01-05T15:38:03.000Z
tests/test_nml_generation.py
scalableminds/wknml
b0ce155a212385f62ea75db64e938f44a86c5ea2
[ "MIT" ]
4
2019-03-28T17:31:54.000Z
2021-06-07T13:45:18.000Z
from pathlib import Path import pickle import pytest import filecmp from wknml import parse_nml, write_nml from wknml.nml_generation import generate_graph, generate_nml @pytest.fixture(scope="session", autouse=True) def create_temp_output_directory(): output_directory = Path("testoutput") output_directory.mk...
32.358696
84
0.724555
440
2,977
4.620455
0.215909
0.051156
0.043286
0.051648
0.486473
0.43335
0.408264
0.408264
0.408264
0.387113
0
0.000827
0.187773
2,977
91
85
32.714286
0.83995
0.105475
0
0.321429
1
0
0.198042
0.104669
0
0
0
0
0.107143
1
0.089286
false
0
0.107143
0
0.196429
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
3759c04acabfa16cf27301bf83e814912ba7986e
4,498
py
Python
Data Science and Machine Learning/Machine-Learning-In-Python-THOROUGH/EXAMPLES/EDABIT/EXPERT/001_100/39_vigenere_cipher.py
okara83/Becoming-a-Data-Scientist
f09a15f7f239b96b77a2f080c403b2f3e95c9650
[ "MIT" ]
null
null
null
Data Science and Machine Learning/Machine-Learning-In-Python-THOROUGH/EXAMPLES/EDABIT/EXPERT/001_100/39_vigenere_cipher.py
okara83/Becoming-a-Data-Scientist
f09a15f7f239b96b77a2f080c403b2f3e95c9650
[ "MIT" ]
null
null
null
Data Science and Machine Learning/Machine-Learning-In-Python-THOROUGH/EXAMPLES/EDABIT/EXPERT/001_100/39_vigenere_cipher.py
okara83/Becoming-a-Data-Scientist
f09a15f7f239b96b77a2f080c403b2f3e95c9650
[ "MIT" ]
2
2022-02-09T15:41:33.000Z
2022-02-11T07:47:40.000Z
""" Vigenere Cipher The Vigenere Cipher is a poly-alphabetic substitution cipher that uses a set of shift ciphers and a keyword. One of the simplest ciphers is the Caesar/shift cipher, where each letter in the plaintext message is replaced by the letter a particular number of positions up, or downstream in the alphabe...
46.854167
216
0.63317
1,246
4,498
2.29053
0.130819
0.020322
0.02733
0.035039
0.434128
0.415908
0.40925
0.398038
0.383322
0.383322
0
0.009265
0.304135
4,498
96
217
46.854167
0.900639
1.845487
0
0
0
0
0.107817
0.070081
0
0
0
0
0
1
0.041667
false
0
0
0
0.083333
0
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
0
0
0
0
0
0
0
1
3768f8597407abe6041fd3302c00700ce75ed9be
372
py
Python
approval_response/secrets.py
leontopliss/okta-workflows-slack-approval
9d062a0b97fd02b47aacde2114c823d87f4d5ccc
[ "Apache-2.0" ]
1
2022-02-01T16:10:16.000Z
2022-02-01T16:10:16.000Z
approval_response/secrets.py
leontopliss/okta-workflows-slack-approval
9d062a0b97fd02b47aacde2114c823d87f4d5ccc
[ "Apache-2.0" ]
null
null
null
approval_response/secrets.py
leontopliss/okta-workflows-slack-approval
9d062a0b97fd02b47aacde2114c823d87f4d5ccc
[ "Apache-2.0" ]
null
null
null
from google.cloud import secretmanager def get_secret(project_id, secret_id, version_id='latest'): client = secretmanager.SecretManagerServiceClient() name = f"projects/{project_id}/secrets/{secret_id}/versions/{version_id}" response = client.access_secret_version(request={'name': name}) payload = resp...
46.5
77
0.760753
46
372
5.956522
0.608696
0.065693
0
0
0
0
0
0
0
0
0
0.00304
0.115591
372
8
78
46.5
0.829787
0
0
0
0
0
0.209115
0.168901
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
376adbed8232c38656395a884619df1856d275e9
550
py
Python
TorNodesMap/TorNodesMap/base/mixins.py
spantons/tor-nodes-map
0bdd6cb2e747c3a6a5aa311214fa8683d0453bd3
[ "MIT" ]
null
null
null
TorNodesMap/TorNodesMap/base/mixins.py
spantons/tor-nodes-map
0bdd6cb2e747c3a6a5aa311214fa8683d0453bd3
[ "MIT" ]
null
null
null
TorNodesMap/TorNodesMap/base/mixins.py
spantons/tor-nodes-map
0bdd6cb2e747c3a6a5aa311214fa8683d0453bd3
[ "MIT" ]
null
null
null
from django.contrib.gis.db import models from django.utils import timezone class BaseMixin(models.Model): visible = models.BooleanField(default=True) created = models.DateTimeField(auto_now_add=True, editable=False) updated = models.DateTimeField() def save(self, *args, **kwargs): """ On save...
27.5
69
0.658182
65
550
5.538462
0.6
0.055556
0
0
0
0
0
0
0
0
0
0
0.227273
550
19
70
28.947368
0.847059
0.047273
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.692308
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
376fec29b62367f8f8274c764741e25c4cb0bfdb
313
py
Python
Python/05/Py05.py
Pantoofle/Language-Practice
f5d4b3f5eb745f0e9abf50f2ddb08fd902225f07
[ "MIT" ]
null
null
null
Python/05/Py05.py
Pantoofle/Language-Practice
f5d4b3f5eb745f0e9abf50f2ddb08fd902225f07
[ "MIT" ]
null
null
null
Python/05/Py05.py
Pantoofle/Language-Practice
f5d4b3f5eb745f0e9abf50f2ddb08fd902225f07
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 n = input("Entrez un nombre :") n = int(n) if(n == 42): print("C'est LA réponse") if((n % 2) == 0): print("Pair !") else: print("Impair") if(n>0): print("Positif") elif(n<0): print("Négatif") else: print("Nul") print( "Pair" if (n%2 == 0) else "Impair" )
14.227273
44
0.520767
50
313
3.26
0.52
0.07362
0.04908
0.06135
0
0
0
0
0
0
0
0.037975
0.242812
313
21
45
14.904762
0.649789
0.070288
0
0.133333
0
0
0.251724
0
0
0
0
0
0
1
0
false
0
0
0
0
0.466667
0
0
0
null
0
0
0
0
0
0
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
377342812fb4438ad0df243268b975d5cf7d9af8
539
py
Python
setup.py
Zapship/kronosparser
899ec57214b6ea27646cc97628e35b01c856bf31
[ "MIT" ]
2
2020-03-12T00:52:00.000Z
2020-03-12T14:49:43.000Z
setup.py
Zapship/kronosparser
899ec57214b6ea27646cc97628e35b01c856bf31
[ "MIT" ]
null
null
null
setup.py
Zapship/kronosparser
899ec57214b6ea27646cc97628e35b01c856bf31
[ "MIT" ]
1
2020-03-11T21:41:51.000Z
2020-03-11T21:41:51.000Z
from setuptools import find_packages, setup setup(name='kronosparser', version='0.0.1', description='Python package for parsing dates', long_description=open('README.rst').read(), url='https://github.com/zapship/kronosparsing', author="Gaston L'Huillier", author_email='g@sudoai.com'...
35.933333
81
0.660482
65
539
5.369231
0.753846
0.068768
0
0
0
0
0
0
0
0
0
0.006772
0.178108
539
14
82
38.5
0.781038
0
0
0
0
0
0.319109
0
0
0
0
0
0
1
0
true
0
0.076923
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
1
0
0
0
0
0
0
1
377507c1639bd206ae3efcce9d51f1bb156cc3e1
420
py
Python
core/migrations/0023_auto_20191029_0836.py
amcquistan/babyasst
310a7948f06b71ae0d62593a3b5932abfd4eb444
[ "BSD-2-Clause" ]
null
null
null
core/migrations/0023_auto_20191029_0836.py
amcquistan/babyasst
310a7948f06b71ae0d62593a3b5932abfd4eb444
[ "BSD-2-Clause" ]
null
null
null
core/migrations/0023_auto_20191029_0836.py
amcquistan/babyasst
310a7948f06b71ae0d62593a3b5932abfd4eb444
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 2.2.4 on 2019-10-29 13:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0022_auto_20191029_0000'), ] operations = [ migrations.AlterField( model_name='timer', name='start', ...
22.105263
89
0.609524
47
420
5.340426
0.787234
0.071713
0
0
0
0
0
0
0
0
0
0.101307
0.271429
420
18
90
23.333333
0.718954
0.107143
0
0
1
0
0.126005
0.061662
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
378628102b05d9141cf91b379713144de1a8b131
2,467
py
Python
sdk/python/pulumi_aws/macie/_inputs.py
sibuthomasmathew/pulumi-aws
6351f2182eb6f693d4e09e4136c385adfa0ab674
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/macie/_inputs.py
sibuthomasmathew/pulumi-aws
6351f2182eb6f693d4e09e4136c385adfa0ab674
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/macie/_inputs.py
sibuthomasmathew/pulumi-aws
6351f2182eb6f693d4e09e4136c385adfa0ab674
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
42.534483
170
0.6818
321
2,467
5.137072
0.286604
0.05943
0.06792
0.080049
0.602183
0.546998
0.520315
0.520315
0.520315
0.435415
0
0.001579
0.229834
2,467
57
171
43.280702
0.866316
0.469396
0
0.064516
1
0
0.085356
0.03431
0
0
0
0
0
1
0.16129
false
0
0.16129
0
0.419355
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
378c6f50ab7745ff13bf483b6845e9a9d9e25860
147
py
Python
python/exercise/sum.py
kindrabbit/programming
2c9b7e24e33ecc174c2efb51727b3886ebc00acf
[ "Apache-2.0" ]
1
2021-01-24T02:07:34.000Z
2021-01-24T02:07:34.000Z
python/exercise/sum.py
kindrabbit/programming
2c9b7e24e33ecc174c2efb51727b3886ebc00acf
[ "Apache-2.0" ]
null
null
null
python/exercise/sum.py
kindrabbit/programming
2c9b7e24e33ecc174c2efb51727b3886ebc00acf
[ "Apache-2.0" ]
null
null
null
""" 小明买一个西瓜还差5元,小花买这个西瓜还差10元,两人的钱加在一起还差3元。请问西瓜多少钱? """ def qian(a, b, c): x = a - c y = x + b return y z = qian(5, 10, 3) print(z)
10.5
46
0.544218
24
147
3.333333
0.708333
0
0
0
0
0
0
0
0
0
0
0.075472
0.278912
147
13
47
11.307692
0.679245
0.312925
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3792ec0339ac7090d3dd57863200db548183d8f8
453
py
Python
doc/util/disguise.py
jhh67/chapel
f041470e9b88b5fc4914c75aa5a37efcb46aa08f
[ "ECL-2.0", "Apache-2.0" ]
1,602
2015-01-06T11:26:31.000Z
2022-03-30T06:17:21.000Z
doc/util/disguise.py
jhh67/chapel
f041470e9b88b5fc4914c75aa5a37efcb46aa08f
[ "ECL-2.0", "Apache-2.0" ]
11,789
2015-01-05T04:50:15.000Z
2022-03-31T23:39:19.000Z
doc/util/disguise.py
jhh67/chapel
f041470e9b88b5fc4914c75aa5a37efcb46aa08f
[ "ECL-2.0", "Apache-2.0" ]
498
2015-01-08T18:58:18.000Z
2022-03-20T15:37:45.000Z
from docutils import nodes def disguise_role(typ, rawtext, text, lineno, inliner, options={}, content=[]): """ Role to obfuscate e-mail addresses using DISGUISE comments. """ obfuscated = '<!-- DISGUISE -->'.join(list(text)) obfuscated = '<b>' + obfuscated obfuscated = obfuscated + '</b>' ...
25.166667
79
0.633554
51
453
5.568627
0.647059
0.084507
0
0
0
0
0
0
0
0
0
0
0.198676
453
17
80
26.647059
0.782369
0.130243
0
0
0
0
0.095238
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1