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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
374d410e01e2ce0287aa265ccbfbe26acf6a3e22 | 449 | py | Python | misclientes/migrations/0015_auto_20181011_1503.py | mrbrazzi/django-misclientes | 8017cc67e243e4384c3f52ae73d06e16f8fb8d5b | [
"Apache-2.0"
] | null | null | null | misclientes/migrations/0015_auto_20181011_1503.py | mrbrazzi/django-misclientes | 8017cc67e243e4384c3f52ae73d06e16f8fb8d5b | [
"Apache-2.0"
] | null | null | null | misclientes/migrations/0015_auto_20181011_1503.py | mrbrazzi/django-misclientes | 8017cc67e243e4384c3f52ae73d06e16f8fb8d5b | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.6 on 2018-10-11 19:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('misclientes', '0014_auto_20181011_1455'),
]
operations = [
migrations.AlterField(
model_name='cliente',
name='enterp... | 23.631579 | 104 | 0.628062 | 48 | 449 | 5.770833 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092262 | 0.25167 | 449 | 18 | 105 | 24.944444 | 0.732143 | 0.100223 | 0 | 0 | 1 | 0 | 0.216418 | 0.11194 | 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 |
3752a00f977ae1e934e0a60a3a2c8f0fcddf0189 | 580 | py | Python | basic_algorithm/gradient_descent/simple_gradient_descent.py | zyf668/ml_code | fdd2d6c48550860fd481f7d128d41d95d946539b | [
"Apache-2.0"
] | 98 | 2017-12-29T13:14:29.000Z | 2021-12-19T06:00:11.000Z | basic_algorithm/gradient_descent/simple_gradient_descent.py | zyf668/ml_code | fdd2d6c48550860fd481f7d128d41d95d946539b | [
"Apache-2.0"
] | 2 | 2017-12-06T06:20:35.000Z | 2021-09-29T09:03:49.000Z | basic_algorithm/gradient_descent/simple_gradient_descent.py | zyf668/ml_code | fdd2d6c48550860fd481f7d128d41d95d946539b | [
"Apache-2.0"
] | 55 | 2018-01-08T04:00:18.000Z | 2022-03-25T02:45:56.000Z | # -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
def f(x):
return np.power(x, 2)
def d_f_1(x):
return 2.0 * x
def d_f_2(f, x, delta=1e-4):
return (f(x+delta) - f(x-delta)) / (2 * delta)
# plot the function
xs = np.arange(-10, 11)
plt.plot(xs, f(xs))
plt.show()
learning_rate... | 15.675676 | 50 | 0.586207 | 127 | 580 | 2.511811 | 0.362205 | 0.068966 | 0.065831 | 0.025078 | 0.056426 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053812 | 0.231034 | 580 | 36 | 51 | 16.111111 | 0.661435 | 0.096552 | 0 | 0 | 0 | 0 | 0.069231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.086957 | 0.130435 | 0.347826 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3755139134dba1aa5699651183a59feddfea36b8 | 390 | py | Python | setup.py | Nathaniel-Rodriguez/evostrat | 1184b20d4fd9f665b94b28fb27461f7a8808ab8d | [
"MIT"
] | 4 | 2019-06-11T12:37:50.000Z | 2021-03-10T21:54:18.000Z | setup.py | Nathaniel-Rodriguez/evostrat | 1184b20d4fd9f665b94b28fb27461f7a8808ab8d | [
"MIT"
] | 2 | 2018-03-30T23:17:43.000Z | 2019-12-29T00:29:56.000Z | setup.py | Nathaniel-Rodriguez/evostrat | 1184b20d4fd9f665b94b28fb27461f7a8808ab8d | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='evostrat',
version='0.1',
description='Implements ES algorithms for python3',
author='Nathaniel Rodriguez',
packages=['evostrat'],
url='https://github.com/Nathaniel-Rodriguez/evostrat.git',
install_requires=[
'numpy',
'mat... | 27.857143 | 64 | 0.617949 | 38 | 390 | 6.263158 | 0.868421 | 0.151261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013746 | 0.253846 | 390 | 14 | 65 | 27.857143 | 0.804124 | 0 | 0 | 0 | 0 | 0 | 0.373402 | 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 |
3756616d79507a2bf6cca80f15c920cf40ac752c | 1,589 | py | Python | test/test_scan_dataset.py | roocs/character-scanner-test | 95f6c4a63318c18608af2cba7a0e02c86accbd8e | [
"BSD-2-Clause"
] | null | null | null | test/test_scan_dataset.py | roocs/character-scanner-test | 95f6c4a63318c18608af2cba7a0e02c86accbd8e | [
"BSD-2-Clause"
] | 24 | 2020-02-14T15:18:39.000Z | 2020-03-13T13:32:51.000Z | test/test_scan_dataset.py | roocs/character-scanner-test | 95f6c4a63318c18608af2cba7a0e02c86accbd8e | [
"BSD-2-Clause"
] | null | null | null | import json
import pytest
import os
from scan import scan_datasets
from lib import options
def setup_module(module):
options.project_base_dirs['c3s-cordex'] = '/group_workspaces/jasmin2/cp4cds1/data'
module.base_dir = options.project_base_dirs['c3s-cordex']
@pytest.mark.skip('This ds id no longer creates a... | 37.833333 | 108 | 0.697923 | 225 | 1,589 | 4.76 | 0.44 | 0.07563 | 0.10084 | 0.123249 | 0.468721 | 0.468721 | 0.399627 | 0.399627 | 0.399627 | 0.399627 | 0 | 0.02682 | 0.178729 | 1,589 | 42 | 109 | 37.833333 | 0.79387 | 0.092511 | 0 | 0.451613 | 0 | 0.032258 | 0.262937 | 0.117483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0.064516 | 0.16129 | 0 | 0.290323 | 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 |
3764765a408de9f3ab9a2e62174d54e08bd084e9 | 527 | py | Python | server/apps/movie/adminx.py | Mayandev/django_morec | 8d115f76ad69d7aa78b07dc06aa7047979ad134b | [
"MIT"
] | 129 | 2019-04-20T08:23:25.000Z | 2022-03-14T10:02:23.000Z | server/apps/movie/adminx.py | heartplus/django_morec | 8d115f76ad69d7aa78b07dc06aa7047979ad134b | [
"MIT"
] | 9 | 2019-05-19T15:06:17.000Z | 2021-12-14T06:47:14.000Z | server/apps/movie/adminx.py | heartplus/django_morec | 8d115f76ad69d7aa78b07dc06aa7047979ad134b | [
"MIT"
] | 34 | 2019-05-06T06:37:17.000Z | 2021-12-09T02:27:58.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019-04-19 20:45
# @Author : Mayandev
# @Site : https://github.com/Mayandev/
# @File : adminx.py
# @Software: PyCharm
import xadmin
from .models import Movie, Genre
class MovieAdmin(object):
list_display = ['id', 'closest_movie', 'doubanId']
m... | 18.821429 | 54 | 0.660342 | 68 | 527 | 5.044118 | 0.647059 | 0.058309 | 0.099125 | 0.110787 | 0.110787 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030093 | 0.180266 | 527 | 27 | 55 | 19.518519 | 0.763889 | 0.322581 | 0 | 0.2 | 0 | 0 | 0.154728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
37681ff53e316e896c8e0bc0ff8a27c6b3654bd9 | 575 | py | Python | Testes/PI/04.calcula_investimento.py | pedroivoal/Dessoft | da4da1b48112db8da6a6b2ac5beef396c6d624d7 | [
"MIT"
] | null | null | null | Testes/PI/04.calcula_investimento.py | pedroivoal/Dessoft | da4da1b48112db8da6a6b2ac5beef396c6d624d7 | [
"MIT"
] | null | null | null | Testes/PI/04.calcula_investimento.py | pedroivoal/Dessoft | da4da1b48112db8da6a6b2ac5beef396c6d624d7 | [
"MIT"
] | null | null | null | #
def calcula_investimento(inv, mes, tipo):
# seleciona tipo de investimento
# CDB
if tipo == 'CDB':
for i in range(1, mes + 1):
inv = inv * 1.013
if i % 6 == 0:
inv = inv * 1.012
# LCI
elif tipo == 'LCI':
inv = inv*1.016**(... | 19.827586 | 42 | 0.387826 | 76 | 575 | 2.921053 | 0.368421 | 0.162162 | 0.189189 | 0.148649 | 0.310811 | 0.310811 | 0.310811 | 0.310811 | 0.310811 | 0.310811 | 0 | 0.115254 | 0.486957 | 575 | 29 | 43 | 19.827586 | 0.637288 | 0.073043 | 0 | 0.142857 | 0 | 0 | 0.01373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.142857 | 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 |
376c43eb0ee65e8c548a59714c37891ff8e6809e | 2,380 | py | Python | src/inference_single.py | abhinavnayak11/Hand-Cricket | e2a52cb72ca58d447cd927e800497d469fe7bb59 | [
"MIT"
] | 10 | 2022-01-05T12:58:16.000Z | 2022-01-12T14:19:35.000Z | src/inference_single.py | abhinavnayak11/Hand-Cricket | e2a52cb72ca58d447cd927e800497d469fe7bb59 | [
"MIT"
] | 1 | 2022-01-07T17:59:57.000Z | 2022-01-08T04:03:06.000Z | src/inference_single.py | abhinavnayak11/Hand-Cricket | e2a52cb72ca58d447cd927e800497d469fe7bb59 | [
"MIT"
] | 2 | 2022-01-07T16:49:51.000Z | 2022-01-16T11:47:32.000Z | import numpy as np
import os
import matplotlib.pyplot as plt
import glob
import re
import torch
import torch.nn as nn
import torch
import cv2
import torchvision
from torch.utils.data import Dataset, DataLoader, ConcatDataset
from torchvision import transforms
import tqdm
from PIL import Image
import albumentations a... | 30.512821 | 121 | 0.721429 | 334 | 2,380 | 5.011976 | 0.419162 | 0.028674 | 0.031063 | 0.035842 | 0.265233 | 0.23417 | 0.23417 | 0.23417 | 0.23417 | 0.23417 | 0 | 0.050177 | 0.171008 | 2,380 | 77 | 122 | 30.909091 | 0.798277 | 0.288655 | 0 | 0.046512 | 0 | 0 | 0.089713 | 0.04067 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.395349 | 0 | 0.395349 | 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 |
376e7f4a89a7792ec5102e6eb4f00cc01aafa85d | 298 | py | Python | rl/test.py | fancyerii/blog-codes | 045b039b37549d7eb466fb7d3591278c683f3872 | [
"Apache-2.0"
] | 159 | 2019-02-17T08:07:34.000Z | 2022-03-11T00:25:08.000Z | rl/test.py | 155hahhajiubai/blog-codes | e4bf7f75b52e53b4edb8cc66542609433dc712ea | [
"Apache-2.0"
] | 6 | 2019-04-24T14:21:54.000Z | 2021-06-15T16:00:01.000Z | rl/test.py | 155hahhajiubai/blog-codes | e4bf7f75b52e53b4edb8cc66542609433dc712ea | [
"Apache-2.0"
] | 80 | 2019-03-01T11:51:29.000Z | 2022-02-18T08:48:40.000Z | import gym
import numpy as np
from matplotlib import pyplot as plt
env = gym.envs.make("MountainCar-v0")
env.reset()
plt.figure()
plt.imshow(env.render(mode='rgb_array'))
for x in range(1000):
env.step(1)
plt.figure()
plt.imshow(env.render(mode='rgb_array'))
env.render(close=False) | 18.625 | 44 | 0.711409 | 50 | 298 | 4.2 | 0.6 | 0.128571 | 0.114286 | 0.171429 | 0.371429 | 0.371429 | 0.371429 | 0.371429 | 0.371429 | 0 | 0 | 0.023346 | 0.137584 | 298 | 16 | 45 | 18.625 | 0.793774 | 0 | 0 | 0.333333 | 0 | 0 | 0.107023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
377adb52b6cc54c55195a57fa0e3279d44a31fdd | 1,438 | py | Python | backpack/extensions/secondorder/diag_ggn/losses.py | maryamhgf/backpack | 63d2717656df2e0f18b3b6ee50320e82ce7358b6 | [
"MIT"
] | null | null | null | backpack/extensions/secondorder/diag_ggn/losses.py | maryamhgf/backpack | 63d2717656df2e0f18b3b6ee50320e82ce7358b6 | [
"MIT"
] | null | null | null | backpack/extensions/secondorder/diag_ggn/losses.py | maryamhgf/backpack | 63d2717656df2e0f18b3b6ee50320e82ce7358b6 | [
"MIT"
] | 2 | 2021-06-11T14:15:28.000Z | 2021-06-16T11:19:11.000Z | from functools import partial
from backpack.core.derivatives.crossentropyloss import CrossEntropyLossDerivatives
from backpack.core.derivatives.mseloss import MSELossDerivatives
from backpack.extensions.secondorder.diag_ggn.diag_ggn_base import DiagGGNBaseModule
from backpack.extensions.secondorder.hbp import LossHess... | 36.871795 | 88 | 0.748957 | 151 | 1,438 | 6.801325 | 0.410596 | 0.074976 | 0.092502 | 0.05258 | 0.12074 | 0.081792 | 0.081792 | 0 | 0 | 0 | 0 | 0 | 0.179416 | 1,438 | 38 | 89 | 37.842105 | 0.870339 | 0.038248 | 0 | 0.076923 | 0 | 0 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.192308 | 0 | 0.576923 | 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 |
3785b67fd38f0a9a06375b33f1fe3d7d088ccd7e | 3,163 | py | Python | tests/broker/test_add_bunker.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 7 | 2015-07-31T05:57:30.000Z | 2021-09-07T15:18:56.000Z | tests/broker/test_add_bunker.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 115 | 2015-03-03T13:11:46.000Z | 2021-09-20T12:42:24.000Z | tests/broker/test_add_bunker.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 13 | 2015-03-03T11:17:59.000Z | 2021-09-09T09:16:41.000Z | #!/usr/bin/env python
# -*- cpy-indent-level: 4; indent-tabs-mode: nil -*-
# ex: set expandtab softtabstop=4 shiftwidth=4:
#
# Copyright (C) 2008,2009,2010,2011,2012,2013,2015,2016,2017 Contributor
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with... | 37.654762 | 79 | 0.668353 | 379 | 3,163 | 5.46438 | 0.385224 | 0.0338 | 0.05408 | 0.048286 | 0.432158 | 0.377595 | 0.16224 | 0.16224 | 0.16224 | 0.12168 | 0 | 0.041026 | 0.198546 | 3,163 | 83 | 80 | 38.108434 | 0.775937 | 0.238381 | 0 | 0.183673 | 0 | 0 | 0.254713 | 0.043988 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0 | 0.081633 | 0 | 0.306122 | 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 |
3789b77069cae9785c306e95ab5f3fa766a28e81 | 300 | py | Python | tests/crawl_original_standings.py | ngocbh/codeforces-management-tools | 4064cf3cf4bd9ffabdab15e4243e3fbe80a824ad | [
"MIT"
] | 6 | 2020-03-24T16:57:31.000Z | 2020-09-19T13:34:14.000Z | tests/crawl_original_standings.py | ngocjr7/codeforces-standings-crawler | 1bb8bf468299ea2c944a238627ee1516625cb91e | [
"MIT"
] | 1 | 2021-02-04T04:39:55.000Z | 2021-02-04T04:39:55.000Z | tests/crawl_original_standings.py | ngocjr7/codeforces-standings-crawler | 1bb8bf468299ea2c944a238627ee1516625cb91e | [
"MIT"
] | 1 | 2020-04-26T11:25:55.000Z | 2020-04-26T11:25:55.000Z | import conmato
import os
# Would you like to use the submission time to rank participants?
PENALTY=True
# A list of user usernames = ['abc', 'def']
USERNAMES=None # None to get all participants
contest_id = '256575'
conmato.get_standings_to_csv(contest_id, usernames=USERNAMES, penalty=PENALTY) | 21.428571 | 78 | 0.773333 | 45 | 300 | 5.044444 | 0.666667 | 0.079295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0.146667 | 300 | 14 | 78 | 21.428571 | 0.863281 | 0.446667 | 0 | 0 | 0 | 0 | 0.03681 | 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 |
37928fa1bf2a7a568d6ce6554f49d9120e9251fd | 282 | py | Python | food.py | Ferch42/Snaike | 4883209d8830906a32f2e8a3efb712614bea0099 | [
"MIT"
] | null | null | null | food.py | Ferch42/Snaike | 4883209d8830906a32f2e8a3efb712614bea0099 | [
"MIT"
] | null | null | null | food.py | Ferch42/Snaike | 4883209d8830906a32f2e8a3efb712614bea0099 | [
"MIT"
] | null | null | null | #food
import pygame,sys
from pygame.locals import *
class food(pygame.sprite.Sprite):
def __init__(self,x,y,img):
pygame.sprite.Sprite.__init__(self)
self.image=img
self.rect=self.image.get_rect()
self.rect.x=x
self.rect.y=y | 23.5 | 43 | 0.620567 | 41 | 282 | 4.04878 | 0.414634 | 0.144578 | 0.216867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258865 | 282 | 12 | 44 | 23.5 | 0.794258 | 0.014184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 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 |
379e5de63049871bdb3b9a19590fac4060775182 | 734 | py | Python | setup-win_cs_run.py | glaroc/Circuitscape | 90d9dad869abae619c74e8ccd9d2a2e43311a18c | [
"CC-BY-3.0"
] | null | null | null | setup-win_cs_run.py | glaroc/Circuitscape | 90d9dad869abae619c74e8ccd9d2a2e43311a18c | [
"CC-BY-3.0"
] | null | null | null | setup-win_cs_run.py | glaroc/Circuitscape | 90d9dad869abae619c74e8ccd9d2a2e43311a18c | [
"CC-BY-3.0"
] | null | null | null | """
This is a setup.py script generated by py2applet
Usage:
python setup.py py2exe
"""
# experimental code for linkage mapper interface BHM 2011-09-04
import os
import py2exe
from distutils.core import setup
from csversion import CIRCUITSCAPE_VER, CIRCUITSCAPE_AUTHOR, CIRCUITSCAPE_EMAIL
#INCLUDES = []
INCLUDES ... | 24.466667 | 115 | 0.726158 | 99 | 734 | 5.212121 | 0.515152 | 0.03876 | 0.027132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019017 | 0.140327 | 734 | 29 | 116 | 25.310345 | 0.798732 | 0.216621 | 0 | 0 | 1 | 0 | 0.238516 | 0.040636 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37a1ddbb38efbdd3434039f237338438b33aa149 | 1,508 | py | Python | tests/scheduler/test_scheduler.py | craftslab/mailtrigger | 18856d574d1c4c99a4fa84e88b46273b5df2582d | [
"Apache-2.0"
] | null | null | null | tests/scheduler/test_scheduler.py | craftslab/mailtrigger | 18856d574d1c4c99a4fa84e88b46273b5df2582d | [
"Apache-2.0"
] | null | null | null | tests/scheduler/test_scheduler.py | craftslab/mailtrigger | 18856d574d1c4c99a4fa84e88b46273b5df2582d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
import time
from datetime import datetime
from mailtrigger.scheduler.scheduler import Scheduler, SchedulerException
def test_exception():
exception = SchedulerException('exception')
assert str(exception) == 'exception'
def test_add():
config = {
'debug': ... | 20.378378 | 73 | 0.612069 | 170 | 1,508 | 5.376471 | 0.252941 | 0.068928 | 0.170678 | 0.177243 | 0.599562 | 0.599562 | 0.599562 | 0.599562 | 0.599562 | 0.599562 | 0 | 0.005576 | 0.286472 | 1,508 | 73 | 74 | 20.657534 | 0.843866 | 0.013926 | 0 | 0.615385 | 0 | 0 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.153846 | 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 |
37ad804147050919618485309273c8d396347af0 | 988 | py | Python | stagifyapi/api/migrations/0004_create_artist.py | Davee02/Stagify | 048dd53219267cfdbe804cd91626a06964f64a2a | [
"MIT"
] | null | null | null | stagifyapi/api/migrations/0004_create_artist.py | Davee02/Stagify | 048dd53219267cfdbe804cd91626a06964f64a2a | [
"MIT"
] | 2 | 2021-01-02T18:02:56.000Z | 2021-01-04T18:24:08.000Z | stagifyapi/api/migrations/0004_create_artist.py | Davee02/Stagify | 048dd53219267cfdbe804cd91626a06964f64a2a | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-12-10 14:25
import api.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("api", "0003_delete_old"),
]
operations = [
migrations.CreateModel(
name="Artist",
fields=[
... | 26.702703 | 85 | 0.428138 | 74 | 988 | 5.581081 | 0.702703 | 0.043584 | 0.087167 | 0.116223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052023 | 0.474696 | 988 | 36 | 86 | 27.444444 | 0.743738 | 0.045547 | 0 | 0.166667 | 1 | 0 | 0.074389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37adf126833c502d54ca11aeef90084ddd093569 | 5,657 | py | Python | Core/chekhabar.py | hossshakiba/Che-Khabar-Bot | 3366e89219a1fbaa0eddcac05c98a3fdd2845bff | [
"MIT"
] | 3 | 2020-12-16T11:56:42.000Z | 2020-12-17T09:04:46.000Z | Core/chekhabar.py | hossshakiba/Che-Khabar-Bot | 3366e89219a1fbaa0eddcac05c98a3fdd2845bff | [
"MIT"
] | null | null | null | Core/chekhabar.py | hossshakiba/Che-Khabar-Bot | 3366e89219a1fbaa0eddcac05c98a3fdd2845bff | [
"MIT"
] | null | null | null | from telegram.ext import Updater, CommandHandler, callbackcontext
from telegram import Update, ReplyKeyboardMarkup
from telegram.chataction import ChatAction
from telegram.ext import MessageHandler
from telegram.ext.filters import Filters
from currency import *
from coin_gold import *
from crypto import *
from stock im... | 44.543307 | 100 | 0.727948 | 694 | 5,657 | 5.819885 | 0.240634 | 0.126269 | 0.148552 | 0.200545 | 0.588264 | 0.520921 | 0.492201 | 0.22976 | 0.073533 | 0.05125 | 0 | 0.01405 | 0.144423 | 5,657 | 126 | 101 | 44.896825 | 0.819008 | 0 | 0 | 0.137615 | 0 | 0 | 0.186495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073395 | false | 0 | 0.100917 | 0 | 0.174312 | 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 |
37aec129c30f1f025130f7929d6185e69fc1676f | 2,250 | py | Python | objs/geladeira.py | ghurone/tamacat | 70f0e4bb6d21cde993caa38ef7e047187b306d3d | [
"MIT"
] | null | null | null | objs/geladeira.py | ghurone/tamacat | 70f0e4bb6d21cde993caa38ef7e047187b306d3d | [
"MIT"
] | null | null | null | objs/geladeira.py | ghurone/tamacat | 70f0e4bb6d21cde993caa38ef7e047187b306d3d | [
"MIT"
] | null | null | null | class Geladeira:
def __init__(self, alimentos=None):
"""
Estrutura principal formada por um dicionário self.alimentos em que as chaves são os nomes dos alimentos e os
valores são listas que contém o objeto Comida e a sua quantidade na geladeira.
{'nome_alimento': [Comida, quantidad... | 29.605263 | 117 | 0.573333 | 275 | 2,250 | 4.556364 | 0.323636 | 0.145251 | 0.106145 | 0.128492 | 0.09577 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009032 | 0.311111 | 2,250 | 75 | 118 | 30 | 0.799355 | 0.206667 | 0 | 0.130435 | 0 | 0 | 0.014493 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.195652 | false | 0 | 0 | 0.021739 | 0.326087 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37afb0cc9574c550f29db6243d9d49d1dab49560 | 3,215 | py | Python | lib/rucio/db/sqla/migrate_repo/versions/45378a1e76a8_create_collection_replica_table.py | balrampariyarath/rucio | 8a68017af6b44485a9620566f1afc013838413c1 | [
"Apache-2.0"
] | 1 | 2017-08-07T13:34:55.000Z | 2017-08-07T13:34:55.000Z | lib/rucio/db/sqla/migrate_repo/versions/45378a1e76a8_create_collection_replica_table.py | pujanm/rucio | 355a997a5ea213c427a5d841ab151ceb01073eb4 | [
"Apache-2.0"
] | null | null | null | lib/rucio/db/sqla/migrate_repo/versions/45378a1e76a8_create_collection_replica_table.py | pujanm/rucio | 355a997a5ea213c427a5d841ab151ceb01073eb4 | [
"Apache-2.0"
] | 1 | 2021-06-17T14:15:15.000Z | 2021-06-17T14:15:15.000Z | # Copyright European Organization for Nuclear Research (CERN)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#
# Authors:
# - Martin Barisits, <mar... | 45.28169 | 130 | 0.6986 | 380 | 3,215 | 5.615789 | 0.326316 | 0.269916 | 0.118088 | 0.104967 | 0.410965 | 0.305061 | 0.256326 | 0.045923 | 0 | 0 | 0 | 0.024705 | 0.181649 | 3,215 | 70 | 131 | 45.928571 | 0.786393 | 0.178538 | 0 | 0 | 0 | 0 | 0.365073 | 0.168851 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.128205 | 0 | 0.179487 | 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 |
37b0992ed72efb75586ac3de8995e23766c67578 | 353 | py | Python | config.py | boxcontrol/lesAdmin | 635708bcc7cb9e4a19aa3af20909897cf02dda18 | [
"CC0-1.0"
] | null | null | null | config.py | boxcontrol/lesAdmin | 635708bcc7cb9e4a19aa3af20909897cf02dda18 | [
"CC0-1.0"
] | null | null | null | config.py | boxcontrol/lesAdmin | 635708bcc7cb9e4a19aa3af20909897cf02dda18 | [
"CC0-1.0"
] | null | null | null | WTF_CSRF_ENABLED = True # activate cross-site request forgery
SECRET_KEY = 'you-will-never-guess' # cryptographic token when above line is enabled
import os
basedir = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_MIGRATE_REPO = os.path... | 35.3 | 85 | 0.767705 | 51 | 353 | 5.078431 | 0.745098 | 0.092664 | 0.07722 | 0.131274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110482 | 353 | 9 | 86 | 39.222222 | 0.824841 | 0.232295 | 0 | 0 | 0 | 0 | 0.183521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
37b67a703b51ad399430ca266cf044ac077ad2c9 | 1,184 | py | Python | 140925/es3.py | alewin/Unibo2016-os-exams | 2f9cd65e14b6f6341df819ce0405d4d3e5948be2 | [
"MIT"
] | null | null | null | 140925/es3.py | alewin/Unibo2016-os-exams | 2f9cd65e14b6f6341df819ce0405d4d3e5948be2 | [
"MIT"
] | null | null | null | 140925/es3.py | alewin/Unibo2016-os-exams | 2f9cd65e14b6f6341df819ce0405d4d3e5948be2 | [
"MIT"
] | null | null | null | #Scrivere un programma python o uno scrip bash che faccia un backup storico di un file.
# backn file n
#deve mantenere n versioni del file specificato. n>2 Esempio:
#backn miofile 10
#se esiste miofile.9 deve essere rinominato in miofile.10
#se esiste miofile 8 deve essere rinominato in miofile 9
#e cosi' via fino a mi... | 27.534884 | 87 | 0.706926 | 203 | 1,184 | 4.098522 | 0.527094 | 0.033654 | 0.026442 | 0.040865 | 0.11899 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031447 | 0.194257 | 1,184 | 42 | 88 | 28.190476 | 0.840671 | 0.4375 | 0 | 0.117647 | 0 | 0 | 0.320215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
37be670b3383da65ef801aef79c776ac35305086 | 657 | py | Python | utils/solution.py | wisesky/LeetCode-Practice | 65549f72c565d9f11641c86d6cef9c7988805817 | [
"MIT"
] | null | null | null | utils/solution.py | wisesky/LeetCode-Practice | 65549f72c565d9f11641c86d6cef9c7988805817 | [
"MIT"
] | null | null | null | utils/solution.py | wisesky/LeetCode-Practice | 65549f72c565d9f11641c86d6cef9c7988805817 | [
"MIT"
] | null | null | null | import sys
import importlib
import argparse
def main(argv):
#print(argv)
# s1 cmd argv parser
#moduleName = argv[1] 必须事先指定参数类型,无法对所有Solution统一
#parser = argparse.ArgumentParser(description='Solution Time ')
#parser.add_argument('p1', type=int)
# s2 input
moduleName = input('Type in the modu... | 26.28 | 67 | 0.640791 | 77 | 657 | 5.337662 | 0.545455 | 0.072993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021569 | 0.223744 | 657 | 24 | 68 | 27.375 | 0.784314 | 0.377473 | 0 | 0 | 0 | 0 | 0.0925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
37c0a754f83b401b2d8c189ad85214923586bc87 | 643 | py | Python | src/hypertrace/agent/autoinstrumentation/sitecustomize.py | hypertrace/pythonagent | 283e18c61807f4ae653d147be9ff1424b0b0a6eb | [
"Apache-2.0"
] | 4 | 2021-05-19T16:16:26.000Z | 2022-01-16T04:48:43.000Z | src/hypertrace/agent/autoinstrumentation/sitecustomize.py | hypertrace/pythonagent | 283e18c61807f4ae653d147be9ff1424b0b0a6eb | [
"Apache-2.0"
] | 48 | 2021-04-27T07:25:48.000Z | 2021-08-30T21:27:27.000Z | src/hypertrace/agent/autoinstrumentation/sitecustomize.py | hypertrace/pythonagent | 283e18c61807f4ae653d147be9ff1424b0b0a6eb | [
"Apache-2.0"
] | null | null | null | '''Enable instrumentationon all supported modules.''' # pylint: disable=R0401
import logging
from hypertrace.agent import Agent
from hypertrace.env_var_settings import get_env_value
# Initialize logger
logger = logging.getLogger(__name__) # pylint: disable=C0103
skip_modules = get_env_value('SKIP_MODULES')
if skip_m... | 30.619048 | 77 | 0.748056 | 82 | 643 | 5.597561 | 0.45122 | 0.263617 | 0.04793 | 0.095861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016423 | 0.147745 | 643 | 20 | 78 | 32.15 | 0.821168 | 0.208398 | 0 | 0 | 0 | 0 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.214286 | 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 |
37c3ffcbc92b82482ec984cafeceeb706d7eabd6 | 260 | py | Python | exercicios/lista2/exercicio16.py | lagcrs/algoritmos | 5ee860c71db8ac2ef8bbe6cc87726938b1ca9c72 | [
"Apache-2.0"
] | null | null | null | exercicios/lista2/exercicio16.py | lagcrs/algoritmos | 5ee860c71db8ac2ef8bbe6cc87726938b1ca9c72 | [
"Apache-2.0"
] | null | null | null | exercicios/lista2/exercicio16.py | lagcrs/algoritmos | 5ee860c71db8ac2ef8bbe6cc87726938b1ca9c72 | [
"Apache-2.0"
] | null | null | null | sigla = input('Digite uma das siglas: SP / RJ / MG: ')
if sigla == 'RJ' or sigla == 'rj':
print('Carioca')
elif sigla == 'SP' or sigla == 'sp':
print('Paulista')
elif sigla == 'MG' or sigla == 'mg':
print('Mineiro')
else:
print('Outro estado') | 26 | 54 | 0.573077 | 37 | 260 | 4.027027 | 0.513514 | 0.14094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223077 | 260 | 10 | 55 | 26 | 0.737624 | 0 | 0 | 0 | 0 | 0 | 0.318008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
37c6ebfc9346cb65e6b8e123252e6fe6936460fe | 192 | py | Python | ia870/iaunion.py | rdenadai/ia870p3 | c4823efc4b8e5f187a64f8a4e9962e328bf86967 | [
"BSD-2-Clause"
] | 5 | 2018-10-15T12:02:03.000Z | 2022-02-11T12:47:12.000Z | ia870/iaunion.py | rdenadai/ia870p3 | c4823efc4b8e5f187a64f8a4e9962e328bf86967 | [
"BSD-2-Clause"
] | 2 | 2020-07-28T22:29:54.000Z | 2021-07-07T20:37:25.000Z | ia870/iaunion.py | rdenadai/ia870p3 | c4823efc4b8e5f187a64f8a4e9962e328bf86967 | [
"BSD-2-Clause"
] | 30 | 2015-02-20T23:33:32.000Z | 2020-10-29T05:14:07.000Z | # -*- encoding: utf-8 -*-
# Module iaunion
from numpy import *
def iaunion(f1, f2, *args):
y = maximum(f1,f2)
for f in args:
y = maximum(y,f)
return y.astype(f1.dtype)
| 14.769231 | 29 | 0.572917 | 30 | 192 | 3.666667 | 0.666667 | 0.072727 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042857 | 0.270833 | 192 | 12 | 30 | 16 | 0.742857 | 0.197917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 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 |
37caf60eb4cfec797888d5d0082853ffbd8be5b6 | 350 | py | Python | hashtable/49 group anagrams.py | windowssocket/py_leetcode | 241dbf8d7dab7db5215c2526321fcdb378b45492 | [
"Apache-2.0"
] | 3 | 2018-05-29T02:29:40.000Z | 2020-02-05T03:28:16.000Z | hashtable/49 group anagrams.py | xidongc/py_leetcode | 241dbf8d7dab7db5215c2526321fcdb378b45492 | [
"Apache-2.0"
] | 1 | 2019-03-08T13:22:32.000Z | 2019-03-08T13:22:32.000Z | hashtable/49 group anagrams.py | xidongc/py_leetcode | 241dbf8d7dab7db5215c2526321fcdb378b45492 | [
"Apache-2.0"
] | 3 | 2018-05-29T11:50:24.000Z | 2018-11-27T12:31:01.000Z | import collections
class Solution(object):
def groupAnagrams(self, strs):
"""
:type strs: List[str]
:rtype: List[List[str]]
"""
anaDict = collections.defaultdict(list)
for string in strs:
anaDict[''.join(sorted(string))].append(string)
return [va... | 26.923077 | 59 | 0.582857 | 38 | 350 | 5.368421 | 0.631579 | 0.068627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.288571 | 350 | 13 | 60 | 26.923077 | 0.819277 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
37cc00d9e70e2896f6c352e277a06c19674139f3 | 735 | py | Python | test/performance/longGenerationPerformanceTest.py | bartlomiejszozda/handwrittenPairsGenerator | d961ba50c7dbd2dca2b927a909ec3a0319b0ef19 | [
"MIT"
] | null | null | null | test/performance/longGenerationPerformanceTest.py | bartlomiejszozda/handwrittenPairsGenerator | d961ba50c7dbd2dca2b927a909ec3a0319b0ef19 | [
"MIT"
] | null | null | null | test/performance/longGenerationPerformanceTest.py | bartlomiejszozda/handwrittenPairsGenerator | d961ba50c7dbd2dca2b927a909ec3a0319b0ef19 | [
"MIT"
] | null | null | null | from subprocess import call
import time
def cleanUpDirs():
call("rm -r ../data/createdMNIST/testPerformance", shell=True)
call("rm -r ../data/generatedPairs/testPerformance", shell=True)
call("rm -r ../data/recognizedPairs/testPerformance", shell=True)
def test():
timeStart = time.perf_counter()
returnCode ... | 36.75 | 204 | 0.715646 | 91 | 735 | 5.681319 | 0.538462 | 0.069633 | 0.040619 | 0.06383 | 0.135397 | 0.135397 | 0.135397 | 0 | 0 | 0 | 0 | 0.017161 | 0.127891 | 735 | 19 | 205 | 38.684211 | 0.789392 | 0 | 0 | 0 | 1 | 0.0625 | 0.461853 | 0.303815 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.3125 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37cc9ef4311f41f70909bc263e83fb9bac7fb6c4 | 2,283 | py | Python | models/.ipynb_checkpoints/ri-checkpoint.py | RexSkywalkerLee/VRCNet | 1dce3be11ed89375665fbbbc7462d56cb66f690b | [
"MIT"
] | null | null | null | models/.ipynb_checkpoints/ri-checkpoint.py | RexSkywalkerLee/VRCNet | 1dce3be11ed89375665fbbbc7462d56cb66f690b | [
"MIT"
] | null | null | null | models/.ipynb_checkpoints/ri-checkpoint.py | RexSkywalkerLee/VRCNet | 1dce3be11ed89375665fbbbc7462d56cb66f690b | [
"MIT"
] | null | null | null | import numpy as np
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.utils.data
import torch.nn.functional as F
from utils.model_utils import *
class point_projection_feature(nn.Module):
def __init__(self):
super(point_project_feature, self).__init__()
def forward(self,... | 41.509091 | 122 | 0.628121 | 327 | 2,283 | 4.2263 | 0.284404 | 0.071635 | 0.052098 | 0.040521 | 0.382055 | 0.227207 | 0.15919 | 0.125904 | 0.06657 | 0 | 0 | 0.048453 | 0.249671 | 2,283 | 55 | 123 | 41.509091 | 0.758319 | 0.125274 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0 | null | null | 0 | 0.2 | 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 |
8067795e14560579a92ba15a64578a4a0de72861 | 716 | py | Python | rpython/translator/goal/targetgcbench.py | nanjekyejoannah/pypy | e80079fe13c29eda7b2a6b4cd4557051f975a2d9 | [
"Apache-2.0",
"OpenSSL"
] | 381 | 2018-08-18T03:37:22.000Z | 2022-02-06T23:57:36.000Z | rpython/translator/goal/targetgcbench.py | nanjekyejoannah/pypy | e80079fe13c29eda7b2a6b4cd4557051f975a2d9 | [
"Apache-2.0",
"OpenSSL"
] | 16 | 2018-09-22T18:12:47.000Z | 2022-02-22T20:03:59.000Z | rpython/translator/goal/targetgcbench.py | nanjekyejoannah/pypy | e80079fe13c29eda7b2a6b4cd4557051f975a2d9 | [
"Apache-2.0",
"OpenSSL"
] | 55 | 2015-08-16T02:41:30.000Z | 2022-03-20T20:33:35.000Z | from rpython.translator.goal import gcbench
from rpython.memory.test.test_transformed_gc import MyGcHooks, GcHooksStats
# _____ Define and setup target ___
GC_HOOKS_STATS = GcHooksStats()
def entry_point(argv):
GC_HOOKS_STATS.reset()
ret = gcbench.entry_point(argv)
minors = GC_HOOKS_STATS.minors
step... | 27.538462 | 75 | 0.709497 | 92 | 716 | 5.228261 | 0.445652 | 0.101871 | 0.149688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210894 | 716 | 25 | 76 | 28.64 | 0.851327 | 0.062849 | 0 | 0 | 0 | 0 | 0.122754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
806f57e77e22cabbcf9c947ae86f8f4af8d747e9 | 2,237 | py | Python | examples/statmap/video/models.py | pobear/restless | 3d8a5a3d6abd43128abcc0eb022cc5cc4c309594 | [
"BSD-3-Clause"
] | 1 | 2015-02-05T12:04:23.000Z | 2015-02-05T12:04:23.000Z | examples/statmap/video/models.py | pobear/restless | 3d8a5a3d6abd43128abcc0eb022cc5cc4c309594 | [
"BSD-3-Clause"
] | null | null | null | examples/statmap/video/models.py | pobear/restless | 3d8a5a3d6abd43128abcc0eb022cc5cc4c309594 | [
"BSD-3-Clause"
] | 3 | 2015-08-04T11:17:52.000Z | 2021-02-26T07:05:26.000Z | # -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _
from util import filepath
from django.contrib.auth.models import User
__author__ = 'pobear'
class Season(models.Model):
name = models.CharField(_(u'标题'), max_length=16)
descr = models.TextField(_(u'描述... | 32.42029 | 81 | 0.665624 | 291 | 2,237 | 4.862543 | 0.32646 | 0.093286 | 0.05371 | 0.067845 | 0.392226 | 0.343463 | 0.24311 | 0.135689 | 0.135689 | 0.135689 | 0 | 0.006667 | 0.195351 | 2,237 | 69 | 82 | 32.42029 | 0.779444 | 0.009388 | 0 | 0.294118 | 0 | 0 | 0.065914 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.078431 | 0.098039 | 0.745098 | 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 |
80799bf646644838004d86d20d9b9136ab813a7e | 892 | py | Python | RubixTwitterBot/SendTweet.py | ItsJustRubix/RubixTwitterBot | d15ad74777b54309e8a4e172a1abe5837b39bb58 | [
"MIT"
] | null | null | null | RubixTwitterBot/SendTweet.py | ItsJustRubix/RubixTwitterBot | d15ad74777b54309e8a4e172a1abe5837b39bb58 | [
"MIT"
] | null | null | null | RubixTwitterBot/SendTweet.py | ItsJustRubix/RubixTwitterBot | d15ad74777b54309e8a4e172a1abe5837b39bb58 | [
"MIT"
] | null | null | null | import tweepy
from config import *
#----------------------------------------------------------------------------------------------#
#Creator: ItsJustRubix
#Script: Sends a tweet to your account
#License: MIT
#Bot Version: v0.5
#*NOTE* This bot is still in early development, It will be updated frequently.
#-----... | 25.485714 | 96 | 0.485426 | 82 | 892 | 5.182927 | 0.658537 | 0.077647 | 0.08 | 0.103529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002448 | 0.084081 | 892 | 34 | 97 | 26.235294 | 0.517748 | 0.423767 | 0 | 0.142857 | 0 | 0 | 0.371769 | 0.246521 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
808a6e28fc90655100f0a1db0b7232bdba5b0464 | 6,001 | py | Python | automata/tests/test_thompson_nfa.py | hlampesberger/pyautomatatf | 0047bd60361cffa40d0556847b2ab241eaff6125 | [
"Apache-2.0"
] | null | null | null | automata/tests/test_thompson_nfa.py | hlampesberger/pyautomatatf | 0047bd60361cffa40d0556847b2ab241eaff6125 | [
"Apache-2.0"
] | null | null | null | automata/tests/test_thompson_nfa.py | hlampesberger/pyautomatatf | 0047bd60361cffa40d0556847b2ab241eaff6125 | [
"Apache-2.0"
] | null | null | null | '''
Created on 27.11.2014
@author: harald
'''
import random
import unittest
from automata.thompson_nfa import ThompsonNFA
class TestThompsonNFA(unittest.TestCase):
def test_thompson_nfa_factory_methods(self):
r = random.randint(0, 255)
nfa = ThompsonNFA.character(r)
self.assertIsInstan... | 63.840426 | 182 | 0.677054 | 897 | 6,001 | 4.465998 | 0.158305 | 0.074888 | 0.010984 | 0.017474 | 0.574139 | 0.55342 | 0.530704 | 0.516975 | 0.448827 | 0.448827 | 0 | 0.032498 | 0.215464 | 6,001 | 94 | 183 | 63.840426 | 0.818394 | 0.117314 | 0 | 0.258065 | 0 | 0.048387 | 0.358008 | 0 | 0 | 0 | 0 | 0 | 0.435484 | 1 | 0.080645 | false | 0 | 0.048387 | 0 | 0.145161 | 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 |
808fc1f46ed91471eb1a28eb193ac04e61a663c0 | 1,274 | py | Python | third_party/syntaxSQL/data_augment/fix_wikisql_tables.py | mattr1/seq2struct_forPRs | cdc9e3c94380fb479ed3e3c77f370038d27cf2d6 | [
"MIT"
] | 25 | 2019-07-16T22:32:44.000Z | 2022-01-25T05:23:07.000Z | third_party/syntaxSQL/data_augment/fix_wikisql_tables.py | mattr1/seq2struct_forPRs | cdc9e3c94380fb479ed3e3c77f370038d27cf2d6 | [
"MIT"
] | 19 | 2018-12-17T20:42:11.000Z | 2020-02-12T21:29:51.000Z | third_party/syntaxSQL/data_augment/fix_wikisql_tables.py | mattr1/seq2struct_forPRs | cdc9e3c94380fb479ed3e3c77f370038d27cf2d6 | [
"MIT"
] | 22 | 2019-03-16T05:57:27.000Z | 2020-10-25T04:34:54.000Z | import re
import json
BANNED = re.compile(r'[\'"\[\]().:]')
tables = json.load(open('wikisql_tables.json'))
for schema in tables:
for i, (table_id, column_name) in enumerate(schema['column_names_original']):
if table_id == -1:
continue
column_name = BANNED.sub('', column_name)
... | 41.096774 | 81 | 0.585557 | 153 | 1,274 | 4.588235 | 0.281046 | 0.25641 | 0.11396 | 0.14245 | 0.350427 | 0.082621 | 0 | 0 | 0 | 0 | 0 | 0.003115 | 0.244113 | 1,274 | 31 | 82 | 41.096774 | 0.725857 | 0 | 0 | 0.074074 | 0 | 0 | 0.152941 | 0.032941 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.074074 | 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 |
80921d663d31780cf5e8ee82c60a32f253fa9ea5 | 647 | py | Python | weekencryption/prototype/multiprocessor.py | UML-Cyber-Security/CyberSquad | 81c05a02d4bbe372e7cf023f1efa495e5e6d771e | [
"MIT"
] | null | null | null | weekencryption/prototype/multiprocessor.py | UML-Cyber-Security/CyberSquad | 81c05a02d4bbe372e7cf023f1efa495e5e6d771e | [
"MIT"
] | null | null | null | weekencryption/prototype/multiprocessor.py | UML-Cyber-Security/CyberSquad | 81c05a02d4bbe372e7cf023f1efa495e5e6d771e | [
"MIT"
] | 1 | 2022-03-18T04:39:17.000Z | 2022-03-18T04:39:17.000Z | import multiprocessing
import LoadBar
from HashPasswords import pass_compare_with_pickle
def authenticate_login(pswd, sal, pep, file, email):
print('Creating login token...')
__name__ = "__main__"
if __name__ == "__main__":
manager = multiprocessing.Manager()
return_dict = manager.dict()
p1 = multip... | 30.809524 | 114 | 0.718702 | 80 | 647 | 5.4875 | 0.475 | 0.068337 | 0.068337 | 0.095672 | 0.08656 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012868 | 0.159196 | 647 | 21 | 115 | 30.809524 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0.060185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.111111 | 0.166667 | 0 | 0.277778 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
80996b7e843baa6f86569a23820442b3d9f98143 | 1,462 | py | Python | tests/test_trace.py | armenzg/github-actions-app | 96ffe0472cff58eebd53915cb82e6aba7091126b | [
"MIT"
] | null | null | null | tests/test_trace.py | armenzg/github-actions-app | 96ffe0472cff58eebd53915cb82e6aba7091126b | [
"MIT"
] | null | null | null | tests/test_trace.py | armenzg/github-actions-app | 96ffe0472cff58eebd53915cb82e6aba7091126b | [
"MIT"
] | null | null | null | from unittest.mock import patch
import responses
from freezegun import freeze_time
from src.trace import _base_transaction, send_trace, _generate_trace
from .fixtures import *
@patch("src.trace.get_uuid")
def test_base_transaction(mock_get_uuid, jobA_job, uuid_list):
mock_get_uuid.side_effect = uuid_list
a... | 27.584906 | 82 | 0.653215 | 181 | 1,462 | 4.972376 | 0.381215 | 0.062222 | 0.048889 | 0.035556 | 0.306667 | 0.266667 | 0.266667 | 0.206667 | 0.206667 | 0.124444 | 0 | 0.044815 | 0.221614 | 1,462 | 52 | 83 | 28.115385 | 0.746046 | 0 | 0 | 0.186047 | 1 | 0 | 0.240082 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 1 | 0.069767 | false | 0 | 0.116279 | 0 | 0.186047 | 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 |
809aacb82afac2c7feb87a6309638a85b5b121e6 | 670 | py | Python | app/status/migrations/0002_auto_20180807_0906.py | LCOGT/serol | 1b1a0c8343fc7233b9935b8da64c90b8696134cc | [
"MIT"
] | null | null | null | app/status/migrations/0002_auto_20180807_0906.py | LCOGT/serol | 1b1a0c8343fc7233b9935b8da64c90b8696134cc | [
"MIT"
] | 19 | 2017-12-13T14:33:46.000Z | 2022-03-11T23:47:08.000Z | app/status/migrations/0002_auto_20180807_0906.py | LCOGT/serol | 1b1a0c8343fc7233b9935b8da64c90b8696134cc | [
"MIT"
] | null | null | null | # Generated by Django 2.0.7 on 2018-08-07 09:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('status', '0001_squashed_0019_auto_20180716_1420'),
]
operations = [
migrations.AddField(
model_name='progress',
name... | 27.916667 | 134 | 0.592537 | 73 | 670 | 5.30137 | 0.712329 | 0.093023 | 0.118863 | 0.139535 | 0.22739 | 0.22739 | 0.22739 | 0 | 0 | 0 | 0 | 0.087755 | 0.268657 | 670 | 23 | 135 | 29.130435 | 0.702041 | 0.067164 | 0 | 0.352941 | 1 | 0 | 0.184591 | 0.05939 | 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 |
809cfb3046569e53d8a72b8e25ec84a11e018f32 | 731 | py | Python | revise/libs/python/pyste/tests/runtests.py | DD-L/deel.boost.python | e32cd62022bbf7c5822d150150330d988e041f02 | [
"MIT"
] | 198 | 2015-01-13T05:47:18.000Z | 2022-03-09T04:46:46.000Z | thirdparty/boost-python/libs/python/pyste/tests/runtests.py | alexa-infra/negine | d9060a7c83a41c95c361c470b56c2ddab3ba04de | [
"MIT"
] | 9 | 2015-01-28T16:33:19.000Z | 2020-04-12T23:03:28.000Z | thirdparty/boost-python/libs/python/pyste/tests/runtests.py | alexa-infra/negine | d9060a7c83a41c95c361c470b56c2ddab3ba04de | [
"MIT"
] | 139 | 2015-01-15T20:09:31.000Z | 2022-01-31T15:21:16.000Z | # Copyright Bruno da Silva de Oliveira 2003. Use, modification and
# distribution is subject to the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
#!/usr/bin/python
import sys
sys.path.append('../src/Pyste')
import unittest
... | 33.227273 | 70 | 0.692202 | 97 | 731 | 5.051546 | 0.670103 | 0.012245 | 0.036735 | 0.04898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018644 | 0.192886 | 731 | 21 | 71 | 34.809524 | 0.811864 | 0.325581 | 0 | 0 | 0 | 0 | 0.055794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
809ef5a3769538a3c4c899fd651dd6abed3083ff | 5,511 | py | Python | morl/arguments.py | yunshengtian/PGMORL | 71fd9ac1128ca129de4a7c8725d5f650e329379f | [
"MIT"
] | 47 | 2020-07-11T02:00:02.000Z | 2022-03-28T09:55:08.000Z | morl/arguments.py | yunshengtian/PGMORL | 71fd9ac1128ca129de4a7c8725d5f650e329379f | [
"MIT"
] | 2 | 2021-09-01T15:45:21.000Z | 2021-10-13T09:20:07.000Z | morl/arguments.py | mit-gfx/PGMORL | 71fd9ac1128ca129de4a7c8725d5f650e329379f | [
"MIT"
] | 13 | 2020-07-15T02:10:42.000Z | 2022-03-09T10:18:23.000Z | import argparse
def get_parser():
parser = argparse.ArgumentParser(description='RL')
# MORL parameters
parser.add_argument('--env-name',
default='MO-HalfCheetah-v2',
help='environment to train on')
parser.add_argument('--obj-num',
type=int,
default=2,
help='numb... | 31.672414 | 129 | 0.586282 | 665 | 5,511 | 4.786466 | 0.288722 | 0.107446 | 0.202953 | 0.042727 | 0.221489 | 0.17562 | 0.055922 | 0.034559 | 0.034559 | 0.034559 | 0 | 0.021508 | 0.282889 | 5,511 | 173 | 130 | 31.855491 | 0.783907 | 0.005444 | 0 | 0.431138 | 0 | 0.011976 | 0.377145 | 0.012413 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005988 | false | 0 | 0.005988 | 0 | 0.017964 | 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 |
80a677eb87819077c0c587887bd145484ca8e037 | 4,009 | py | Python | player.py | shJimmyw/MacAndCheese | 9e51aafe8086fc31d22e4c6c4935bc852cc4fd98 | [
"MIT"
] | null | null | null | player.py | shJimmyw/MacAndCheese | 9e51aafe8086fc31d22e4c6c4935bc852cc4fd98 | [
"MIT"
] | null | null | null | player.py | shJimmyw/MacAndCheese | 9e51aafe8086fc31d22e4c6c4935bc852cc4fd98 | [
"MIT"
] | null | null | null | import discord
import asyncio
import youtube_dl
import string
class vidPlayer:
def __init__(self, bot):
self.bot = bot
self.list = []
self.voice = None
self.player = None
@asyncio.coroutine
def playAll(self, channel: discord.Channel=None):
if len(self.list) == 0:
... | 31.81746 | 128 | 0.574457 | 488 | 4,009 | 4.672131 | 0.211066 | 0.122807 | 0.09693 | 0.098246 | 0.556579 | 0.482895 | 0.445614 | 0.4 | 0.311842 | 0.270614 | 0 | 0.005568 | 0.328012 | 4,009 | 125 | 129 | 32.072 | 0.840757 | 0 | 0 | 0.527273 | 0 | 0 | 0.080319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0.054545 | 0.036364 | 0 | 0.163636 | 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 |
80a92a9d8a2520690d96977a40e87347e7c6154a | 1,000 | py | Python | manage_externals/manic/repository_factory.py | guoqing-noaa/ufs-rtma-app | 04106ae1899118f66c5b045092ebc0d736c0cbf6 | [
"CC0-1.0"
] | 22 | 2019-12-18T15:56:08.000Z | 2022-02-03T18:49:08.000Z | manage_externals/manic/repository_factory.py | guoqing-noaa/ufs-rtma-app | 04106ae1899118f66c5b045092ebc0d736c0cbf6 | [
"CC0-1.0"
] | 200 | 2019-10-29T15:26:43.000Z | 2022-02-02T18:53:36.000Z | manage_externals/manic/repository_factory.py | guoqing-noaa/ufs-rtma-app | 04106ae1899118f66c5b045092ebc0d736c0cbf6 | [
"CC0-1.0"
] | 53 | 2020-05-14T16:45:00.000Z | 2022-03-30T03:39:32.000Z | """Factory for creating and initializing the appropriate repository class
"""
from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function
from .repository_git import GitRepository
from .repository_svn import SvnRepository
from .externals_description import Exte... | 33.333333 | 92 | 0.75 | 120 | 1,000 | 5.966667 | 0.483333 | 0.044693 | 0.067039 | 0.087989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001215 | 0.177 | 1,000 | 29 | 93 | 34.482759 | 0.868773 | 0.165 | 0 | 0 | 0 | 0 | 0.057811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.368421 | 0 | 0.473684 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
80ae10dbf9c686c9a9159cbd4afb94f7f9470d2f | 2,454 | py | Python | Part 3 - Classification/Section 8 - Logistic Regression/lr_with_gender.py | Nikronic/Machine-Learning-Models | 9fb48463ee2211eec800b2436699508f55d5ee28 | [
"MIT"
] | 29 | 2018-09-30T19:39:38.000Z | 2021-09-14T14:05:08.000Z | Part 3 - Classification/Section 8 - Logistic Regression/lr_with_gender.py | Nikronic/Machine-Learning-Models | 9fb48463ee2211eec800b2436699508f55d5ee28 | [
"MIT"
] | 2 | 2019-12-31T23:17:58.000Z | 2021-06-07T11:28:59.000Z | Part 3 - Classification/Section 8 - Logistic Regression/lr_with_gender.py | Nikronic/Machine-Learning-Models | 9fb48463ee2211eec800b2436699508f55d5ee28 | [
"MIT"
] | 10 | 2018-10-09T19:29:01.000Z | 2021-03-18T00:43:52.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 16 23:46:04 2018
@author: Mohammad Doosti Lakhani
"""
"""############################## in this code, we include Gender ########################"""
# imporing libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# importing dataset
dataset ... | 34.083333 | 95 | 0.748981 | 370 | 2,454 | 4.789189 | 0.394595 | 0.020316 | 0.008465 | 0.03386 | 0.129797 | 0.111738 | 0.037246 | 0.037246 | 0 | 0 | 0 | 0.017683 | 0.124287 | 2,454 | 72 | 96 | 34.083333 | 0.806887 | 0.268134 | 0 | 0 | 0 | 0 | 0.081451 | 0.01308 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.305556 | 0 | 0.305556 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
80b1dc20049c2843f817d5d24f186c55fcda370e | 834 | py | Python | pokeScraper/csvtojson.py | rchung95/PokedexVueJs | 9a40659f0ce84e0a96b1ec228f87f912eb7e3edf | [
"MIT"
] | 21 | 2017-08-08T02:39:02.000Z | 2020-07-28T10:17:55.000Z | pokeScraper/csvtojson.py | rchung95/PokedexVueJs | 9a40659f0ce84e0a96b1ec228f87f912eb7e3edf | [
"MIT"
] | 1 | 2017-10-22T20:27:41.000Z | 2017-10-23T01:51:05.000Z | pokeScraper/csvtojson.py | rchung95/PokedexVueJs | 9a40659f0ce84e0a96b1ec228f87f912eb7e3edf | [
"MIT"
] | 9 | 2017-10-22T22:28:12.000Z | 2021-11-25T10:29:01.000Z | import csv
import json
from collections import OrderedDict
csvfile = open('./pokedex.csv', 'r')
jsonfile = open('./pokedex.json', 'w')
jsonNames = ("orderID", "nDex", "name", "type1", "type2", "ability1", "ability2", "hiddenability", "hp", "atk", "def", "spatk", "spdef", "spe", "note", "tier", "image")
reader = csv.D... | 34.75 | 168 | 0.635492 | 116 | 834 | 4.568966 | 0.465517 | 0.101887 | 0.049057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005479 | 0.1247 | 834 | 24 | 169 | 34.75 | 0.720548 | 0.045564 | 0 | 0 | 0 | 0 | 0.231447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | 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 |
80b42cc100d84b3e7b78eaf0ccbeaaf786c523aa | 1,188 | py | Python | 2017/day_04.py | nabiirah/advent-of-code | 9c7e7cae437c024aa05d9cb7f9211fd47f5226a2 | [
"MIT"
] | 24 | 2020-12-08T20:07:52.000Z | 2022-01-18T20:08:06.000Z | 2017/day_04.py | nestorhf/advent-of-code | 1bb827e9ea85e03e0720e339d10b3ed8c44d8f27 | [
"MIT"
] | null | null | null | 2017/day_04.py | nestorhf/advent-of-code | 1bb827e9ea85e03e0720e339d10b3ed8c44d8f27 | [
"MIT"
] | 10 | 2020-12-04T10:04:15.000Z | 2022-02-21T22:22:26.000Z | """Advent of Code Day 4 - High-Entropy Passphrases"""
# Open list, read it and split by newline
pass_txt = open('inputs/day_04.txt')
lines = pass_txt.read()
pass_list = lines.split('\n')
def dupe_check(passphrase):
"""Return only if input has no duplicate words in it."""
words = passphrase.split(' ')
un... | 25.276596 | 65 | 0.65404 | 158 | 1,188 | 4.835443 | 0.411392 | 0.078534 | 0.049738 | 0.065445 | 0.384817 | 0.32199 | 0.243456 | 0.096859 | 0 | 0 | 0 | 0.007625 | 0.227273 | 1,188 | 46 | 66 | 25.826087 | 0.824619 | 0.223906 | 0 | 0.285714 | 0 | 0 | 0.112957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.464286 | 0 | 0 | 0.142857 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
80b6baa8566d610fa36c2c022d220667a9835953 | 12,112 | py | Python | predpatt/rules.py | spyysalo/PredPatt | d497dade2644c30159d9c5037477ea3efedbfc33 | [
"BSD-3-Clause"
] | 114 | 2016-10-07T09:51:31.000Z | 2021-12-17T02:19:53.000Z | predpatt/rules.py | mmsheybani/PredPatt | 5ce4b88c4678dcf7c99a6b0377e0f641701b8390 | [
"BSD-3-Clause"
] | 15 | 2017-02-21T16:25:46.000Z | 2021-12-28T17:00:52.000Z | predpatt/rules.py | mmsheybani/PredPatt | 5ce4b88c4678dcf7c99a6b0377e0f641701b8390 | [
"BSD-3-Clause"
] | 27 | 2016-10-23T03:30:59.000Z | 2021-08-18T15:40:26.000Z | from __future__ import print_function
class Rule(object):
def __init__(self):
pass
def __repr__(self):
return self.name()
@classmethod
def name(cls):
return cls.__name__.split('.')[-1]
@classmethod
def explain(cls):
return cls.__doc__
def __cmp__(self, other)... | 32.735135 | 182 | 0.705829 | 1,575 | 12,112 | 4.888889 | 0.130794 | 0.043636 | 0.032857 | 0.041948 | 0.604935 | 0.478701 | 0.39961 | 0.35974 | 0.346234 | 0.257532 | 0 | 0.002056 | 0.19683 | 12,112 | 369 | 183 | 32.823848 | 0.789474 | 0.405053 | 0 | 0.315353 | 0 | 0.024896 | 0.367028 | 0.029155 | 0 | 0 | 0 | 0 | 0 | 1 | 0.182573 | false | 0.016598 | 0.004149 | 0.087137 | 0.605809 | 0.008299 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
80c0f41169ed2c140c6e14de45485b2db655b5e1 | 880 | py | Python | clean.py | Cito/w4py | bba08f5974d49f5da7e88abe3eeda1037d0824a3 | [
"MIT"
] | 18 | 2016-08-01T20:15:59.000Z | 2019-12-24T16:00:03.000Z | clean.py | WebwareForPython/w4py | bba08f5974d49f5da7e88abe3eeda1037d0824a3 | [
"MIT"
] | 6 | 2016-09-13T05:48:45.000Z | 2020-01-09T18:29:12.000Z | clean.py | WebwareForPython/w4py | bba08f5974d49f5da7e88abe3eeda1037d0824a3 | [
"MIT"
] | 6 | 2016-09-16T14:32:29.000Z | 2020-01-03T18:52:16.000Z | #!/usr/bin/env python2
"""clean.py - Clean up Webware installation directory.
Removes all derived and temporary files.
This will work on all operating systems.
"""
# The files that shall be removed:
files = '''
*~
*.bak
*.pyc
*.pyo
CGIWrapper/Errors.csv
CGIWrapper/Scripts.csv
CGIWrapper/ErrorMsgs/*.html
WebKit/*.pi... | 19.555556 | 55 | 0.646591 | 111 | 880 | 5.036036 | 0.54955 | 0.116279 | 0.060823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001477 | 0.230682 | 880 | 44 | 56 | 20 | 0.824225 | 0.061364 | 0 | 0.066667 | 0 | 0 | 0.279649 | 0.136164 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80ca1945b3ef54fd08a23f4e2b3cda5296f8275b | 361 | py | Python | tests/tests_test_workflow/test_test_result/test_test_suite_results.py | rishabh6788/opensearch-build | f03a5848397a2758ea29a4edc0bb6b221c0fc2e3 | [
"Apache-2.0"
] | null | null | null | tests/tests_test_workflow/test_test_result/test_test_suite_results.py | rishabh6788/opensearch-build | f03a5848397a2758ea29a4edc0bb6b221c0fc2e3 | [
"Apache-2.0"
] | null | null | null | tests/tests_test_workflow/test_test_result/test_test_suite_results.py | rishabh6788/opensearch-build | f03a5848397a2758ea29a4edc0bb6b221c0fc2e3 | [
"Apache-2.0"
] | null | null | null | import unittest
from test_workflow.test_result.test_suite_results import TestSuiteResults
class TestTestResultsSuite(unittest.TestCase):
def setUp(self) -> None:
self.test_test_results_suite = TestSuiteResults()
def test_status(self) -> None:
test_failed = self.test_test_results_suite.failed... | 27.769231 | 73 | 0.759003 | 43 | 361 | 6.069767 | 0.44186 | 0.061303 | 0.091954 | 0.145594 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163435 | 361 | 12 | 74 | 30.083333 | 0.864238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80d3ba147d7db91ebd3e60edbf64a7ec474d1c8b | 807 | py | Python | Exercicios/Ex015.py | RenanRibeiroDaSilva/Meu-Aprendizado-Python | 280bf2ad132ae0d26255e70b894fa7dbb69a5d01 | [
"MIT"
] | 2 | 2021-05-21T23:17:44.000Z | 2021-05-22T04:34:37.000Z | Exercicios/Ex015.py | RenanRibeiroDaSilva/Meu-Aprendizado-Python | 280bf2ad132ae0d26255e70b894fa7dbb69a5d01 | [
"MIT"
] | null | null | null | Exercicios/Ex015.py | RenanRibeiroDaSilva/Meu-Aprendizado-Python | 280bf2ad132ae0d26255e70b894fa7dbb69a5d01 | [
"MIT"
] | null | null | null | """Ex 015 - Escreva um programa que pergunte a quantidade de Km percorridos por
um carro alugado e a quantidade de dias pelos quais ele foi alugado. Calcule o preço a pagar, sabendo
que o carro custa R$60,00 por dia e R$0,15 por Km rodado."""
print('-' * 15, '>Ex 15<', '-' * 15)
# Criando variaveis e Recebendo dados.... | 40.35 | 101 | 0.70632 | 140 | 807 | 3.942857 | 0.414286 | 0.086957 | 0.048913 | 0.057971 | 0.076087 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035037 | 0.151177 | 807 | 20 | 102 | 40.35 | 0.770803 | 0.403965 | 0 | 0 | 0 | 0 | 0.407173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
80d441d0770172b4ae25176eccc856f91a0551ba | 1,214 | py | Python | setup.py | mriduldhall/Dice-Game-NEA-Console | d57a7cf1088c9be298fc7516b00c0feaff00b844 | [
"MIT"
] | null | null | null | setup.py | mriduldhall/Dice-Game-NEA-Console | d57a7cf1088c9be298fc7516b00c0feaff00b844 | [
"MIT"
] | null | null | null | setup.py | mriduldhall/Dice-Game-NEA-Console | d57a7cf1088c9be298fc7516b00c0feaff00b844 | [
"MIT"
] | null | null | null | import os
import psycopg2
from psycopg2 import OperationalError
from dotenv import load_dotenv
if __name__ == '__main__':
load_dotenv("src/.env-vars")
connection = psycopg2.connect(
database=os.getenv("name"),
user=os.getenv("user"),
password=os.getenv("password"),
host=os.geten... | 31.128205 | 71 | 0.627677 | 143 | 1,214 | 5.188811 | 0.426573 | 0.053908 | 0.088949 | 0.097035 | 0.273585 | 0.273585 | 0.273585 | 0.179245 | 0.126685 | 0.126685 | 0 | 0.003448 | 0.283361 | 1,214 | 38 | 72 | 31.947368 | 0.849425 | 0 | 0 | 0.216216 | 0 | 0 | 0.542834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.054054 | 0.108108 | 0 | 0.108108 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
80e88329c12b2de3d96d3abe9b7b9298b969ebb6 | 7,633 | py | Python | model/mosesdecoder/contrib/moses-speedtest/html_gen.py | saeedesm/UNMT_AH | cc171bf66933b5c0ad8a0ab87e57f7364312a7df | [
"Apache-2.0"
] | 3 | 2019-12-02T14:53:29.000Z | 2020-08-12T18:01:49.000Z | tools/mosesdecoder-master/contrib/moses-speedtest/html_gen.py | Pangeamt/nectm | 6b84f048698f2530b9fdbb30695f2e2217c3fbfe | [
"Apache-2.0"
] | 2 | 2020-11-06T14:40:10.000Z | 2020-12-29T19:03:11.000Z | tools/mosesdecoder-master/contrib/moses-speedtest/html_gen.py | Pangeamt/nectm | 6b84f048698f2530b9fdbb30695f2e2217c3fbfe | [
"Apache-2.0"
] | 2 | 2020-03-26T16:05:11.000Z | 2020-08-06T16:35:39.000Z | """Generates HTML page containing the testresults"""
from testsuite_common import Result, processLogLine, getLastTwoLines
from runtests import parse_testconfig
import os
import sys
from datetime import datetime, timedelta
HTML_HEADING = """<html>
<head>
<title>Moses speed testing</title>
<link rel="stylesheet" type="... | 39.549223 | 104 | 0.612734 | 1,022 | 7,633 | 4.496086 | 0.226027 | 0.022633 | 0.019151 | 0.02938 | 0.233297 | 0.21741 | 0.176279 | 0.166268 | 0.166268 | 0.130577 | 0 | 0.028039 | 0.233722 | 7,633 | 192 | 105 | 39.755208 | 0.757565 | 0.170444 | 0 | 0.055172 | 1 | 0.006897 | 0.220022 | 0.016286 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.034483 | 0 | 0.096552 | 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 |
80ef7a14c5e5edba3eca03ca6457f01a75a5f546 | 897 | py | Python | directory/block_producer/migrations/0008_increase_text_size.py | Remmeauth/bp-directory-back | 81034cc8f92989dbf2e0df79befdd8d83442dd3a | [
"MIT"
] | null | null | null | directory/block_producer/migrations/0008_increase_text_size.py | Remmeauth/bp-directory-back | 81034cc8f92989dbf2e0df79befdd8d83442dd3a | [
"MIT"
] | 296 | 2019-07-16T15:35:49.000Z | 2020-05-01T06:12:12.000Z | directory/block_producer/migrations/0008_increase_text_size.py | Remmeauth/bp-directory-back | 81034cc8f92989dbf2e0df79befdd8d83442dd3a | [
"MIT"
] | 2 | 2019-09-11T15:56:56.000Z | 2019-11-08T14:58:54.000Z | # Generated by Django 2.2.6 on 2019-10-10 08:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('block_producer', '0007_add_status_description_field'),
]
operations = [
migrations.AlterField(
model_name='blockproducer',
... | 30.931034 | 181 | 0.627648 | 94 | 897 | 5.851064 | 0.595745 | 0.109091 | 0.136364 | 0.158182 | 0.167273 | 0.167273 | 0 | 0 | 0 | 0 | 0 | 0.050822 | 0.254181 | 897 | 28 | 182 | 32.035714 | 0.7713 | 0.050167 | 0 | 0.363636 | 1 | 0.045455 | 0.269412 | 0.038824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80f989cb073cdb3b9972485eeb4f605e8516bf21 | 2,078 | py | Python | engfrosh_site/authentication/models.py | engfrosh/engfrosh | 8eed0f3e86ff43de569c280a5f1571c02f2324f2 | [
"MIT"
] | 1 | 2021-05-21T01:01:16.000Z | 2021-05-21T01:01:16.000Z | engfrosh_site/authentication/models.py | engfrosh/engfrosh | 8eed0f3e86ff43de569c280a5f1571c02f2324f2 | [
"MIT"
] | 50 | 2021-05-20T21:00:55.000Z | 2022-03-12T00:59:18.000Z | engfrosh_site/authentication/models.py | engfrosh/engfrosh | 8eed0f3e86ff43de569c280a5f1571c02f2324f2 | [
"MIT"
] | null | null | null | import datetime
import secrets
from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
def days5():
return timezone.now() + datetime.timedelta(days=5)
def random_token():
return secrets.token_urlsafe(42)
class DiscordUser(models.Model):
"""Linking Di... | 31.484848 | 91 | 0.680943 | 257 | 2,078 | 5.377432 | 0.373541 | 0.032562 | 0.057887 | 0.069465 | 0.164255 | 0.120116 | 0.120116 | 0.120116 | 0 | 0 | 0 | 0.011649 | 0.215111 | 2,078 | 65 | 92 | 31.969231 | 0.835684 | 0.091434 | 0 | 0.095238 | 0 | 0 | 0.042314 | 0.023567 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0 | 0.119048 | 0.071429 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0383ba8608549b0e86d588123a2019c95bdcfc82 | 2,661 | py | Python | src/wav2vec_toolkit/text_preprocessing/lang/fa.py | m3hrdadfi/wav2vec-toolkit | 19d82736f5480232deb251649b4c91bef08dc782 | [
"Apache-2.0"
] | null | null | null | src/wav2vec_toolkit/text_preprocessing/lang/fa.py | m3hrdadfi/wav2vec-toolkit | 19d82736f5480232deb251649b4c91bef08dc782 | [
"Apache-2.0"
] | null | null | null | src/wav2vec_toolkit/text_preprocessing/lang/fa.py | m3hrdadfi/wav2vec-toolkit | 19d82736f5480232deb251649b4c91bef08dc782 | [
"Apache-2.0"
] | null | null | null | """
Credit: m3hrdadfi
https://huggingface.co/m3hrdadfi/wav2vec2-large-xlsr-persian-v2
"""
import re
import string
import hazm
_normalizer = hazm.Normalizer()
chars_to_ignore = [
",",
"?",
".",
"!",
"-",
";",
":",
'""',
"%",
"'",
'"',
"�",
"#",
"!",
"؟",
... | 15.47093 | 80 | 0.344983 | 313 | 2,661 | 2.872204 | 0.479233 | 0.101224 | 0.115684 | 0.080089 | 0.242492 | 0.193548 | 0.120133 | 0.120133 | 0.120133 | 0.120133 | 0.000752 | 0.009804 | 0.348365 | 2,661 | 171 | 81 | 15.561404 | 0.49654 | 0.048102 | 0 | 0.189189 | 0 | 0 | 0.139913 | 0.011098 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02027 | false | 0 | 0.02027 | 0 | 0.060811 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
038666360069cd51aa8eee3c0d864adddf99928f | 290 | py | Python | GRADE 9/Python/BraydenViana-Python-Video22.py | i1470s/School-Work | e00843f3506b2ad674dce5e47ce3321002cc23e5 | [
"MIT"
] | null | null | null | GRADE 9/Python/BraydenViana-Python-Video22.py | i1470s/School-Work | e00843f3506b2ad674dce5e47ce3321002cc23e5 | [
"MIT"
] | null | null | null | GRADE 9/Python/BraydenViana-Python-Video22.py | i1470s/School-Work | e00843f3506b2ad674dce5e47ce3321002cc23e5 | [
"MIT"
] | null | null | null | import random
import urllib.request
def download_web_image(url):
name = random.randrange(1, 1000)
full_name = str(name) + ".jpg"
urllib.request.urlretrieve(url, full_name)
download_web_image("https://buckysroom.org/photos/users/2/resized/2463u86fdf42a16B1c66ba8fd67B9f9d.jpg") | 32.222222 | 104 | 0.772414 | 38 | 290 | 5.736842 | 0.657895 | 0.119266 | 0.146789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092664 | 0.106897 | 290 | 9 | 104 | 32.222222 | 0.749035 | 0 | 0 | 0 | 0 | 0 | 0.303887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 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 |
03896ca09587dba06b6cf71df8aca241a3b37a95 | 626 | py | Python | Q5_PP.py | allenalvin333/12 | 7b0e3fc4c3887dd872fd8faed3b39eada57d4c7e | [
"MIT"
] | null | null | null | Q5_PP.py | allenalvin333/12 | 7b0e3fc4c3887dd872fd8faed3b39eada57d4c7e | [
"MIT"
] | null | null | null | Q5_PP.py | allenalvin333/12 | 7b0e3fc4c3887dd872fd8faed3b39eada57d4c7e | [
"MIT"
] | null | null | null | class students:
def __init__(self,name,age):
self.name = name
self.age = age
def readdata(self):
self.name = raw_input('enter name')
self.age = int(raw_input('enter age'))
def display(self):
print str(self.name)
print str(self.age)
class pstudent(stu... | 26.083333 | 51 | 0.563898 | 80 | 626 | 4.225 | 0.2625 | 0.142012 | 0.106509 | 0.133136 | 0.221893 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0.004673 | 0.316294 | 626 | 23 | 52 | 27.217391 | 0.785047 | 0 | 0 | 0 | 0 | 0 | 0.056385 | 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 |
038a1686a8e868839991e1a85795a76ad1ac3eaa | 431 | py | Python | cacreader/swig-4.0.2/Examples/test-suite/python/using_extend_runme.py | kyletanyag/LL-Smartcard | 02abea9de5a13f8bae4d7832ab34cb7f0d9514c9 | [
"BSD-3-Clause"
] | 1,031 | 2015-01-02T14:08:47.000Z | 2022-03-29T02:25:27.000Z | cacreader/swig-4.0.2/Examples/test-suite/python/using_extend_runme.py | kyletanyag/LL-Smartcard | 02abea9de5a13f8bae4d7832ab34cb7f0d9514c9 | [
"BSD-3-Clause"
] | 240 | 2015-01-11T04:27:19.000Z | 2022-03-30T00:35:57.000Z | cacreader/swig-4.0.2/Examples/test-suite/python/using_extend_runme.py | kyletanyag/LL-Smartcard | 02abea9de5a13f8bae4d7832ab34cb7f0d9514c9 | [
"BSD-3-Clause"
] | 224 | 2015-01-05T06:13:54.000Z | 2022-02-25T14:39:51.000Z | from using_extend import *
f = FooBar()
if f.blah(3) != 3:
raise RuntimeError, "blah(int)"
if f.blah(3.5) != 3.5:
raise RuntimeError, "blah(double)"
if f.blah("hello") != "hello":
raise RuntimeError, "blah(char *)"
if f.blah(3, 4) != 7:
raise RuntimeError, "blah(int,int)"
if f.blah(3.5, 7.5) != (3.... | 19.590909 | 45 | 0.598608 | 71 | 431 | 3.619718 | 0.267606 | 0.070039 | 0.136187 | 0.124514 | 0.311284 | 0.093385 | 0 | 0 | 0 | 0 | 0 | 0.054913 | 0.197216 | 431 | 21 | 46 | 20.52381 | 0.687861 | 0 | 0 | 0 | 0 | 0 | 0.192575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | 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 |
0390548069cefe030ff78c63f7d9f9354617abb9 | 990 | py | Python | vacancy/views.py | kerbrek/hyperskill-hyperjob | abf25a04a1968b7884256da589dde2ee2dd7f44f | [
"MIT"
] | null | null | null | vacancy/views.py | kerbrek/hyperskill-hyperjob | abf25a04a1968b7884256da589dde2ee2dd7f44f | [
"MIT"
] | null | null | null | vacancy/views.py | kerbrek/hyperskill-hyperjob | abf25a04a1968b7884256da589dde2ee2dd7f44f | [
"MIT"
] | null | null | null | from django.core.exceptions import PermissionDenied
from django.http import HttpResponseBadRequest
from django.shortcuts import redirect, render
from django.views import View
from .forms import NewVacancyForm
from .models import Vacancy
class VacancyListView(View):
def get(self, request, *args, **kwargs):
... | 33 | 76 | 0.707071 | 112 | 990 | 6.196429 | 0.491071 | 0.057637 | 0.043228 | 0.060519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006297 | 0.19798 | 990 | 29 | 77 | 34.137931 | 0.867758 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 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 |
0396a7f6d0e8b16d0b2c2635c757b7111be89364 | 3,052 | py | Python | decode_patch.py | db260179/mullion | 3ed599f624ab308f5a6ffe4c51aa372252430aa1 | [
"WTFPL"
] | null | null | null | decode_patch.py | db260179/mullion | 3ed599f624ab308f5a6ffe4c51aa372252430aa1 | [
"WTFPL"
] | null | null | null | decode_patch.py | db260179/mullion | 3ed599f624ab308f5a6ffe4c51aa372252430aa1 | [
"WTFPL"
] | null | null | null | # python2
import sys
import struct
def hexdump(src, length=16, sep='.', start=0):
# based on https://gist.github.com/7h3rAm/5603718
FILTER = ''.join([(len(repr(chr(x))) == 3) and chr(x) or sep for x in range(256)])
lines = []
for c in range(0, len(src), length):
chars = src[c:c+length]
hexstr... | 41.808219 | 216 | 0.546855 | 414 | 3,052 | 3.990338 | 0.306763 | 0.072639 | 0.01816 | 0.054479 | 0.164044 | 0.072639 | 0.056295 | 0.042373 | 0.042373 | 0.042373 | 0 | 0.096831 | 0.25557 | 3,052 | 73 | 217 | 41.808219 | 0.630282 | 0.018021 | 0 | 0.174603 | 0 | 0 | 0.15053 | 0 | 0 | 0 | 0.064317 | 0 | 0 | 0 | null | null | 0 | 0.031746 | null | null | 0.365079 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
039bdf7227836a351c0ecb98d6c72880d79f30bf | 1,077 | py | Python | tests/command_download_invalid.py | ganow/online-judge-tools | 495b5957e1c949be15902c4c0c3a1858bd5a3c5e | [
"MIT"
] | null | null | null | tests/command_download_invalid.py | ganow/online-judge-tools | 495b5957e1c949be15902c4c0c3a1858bd5a3c5e | [
"MIT"
] | null | null | null | tests/command_download_invalid.py | ganow/online-judge-tools | 495b5957e1c949be15902c4c0c3a1858bd5a3c5e | [
"MIT"
] | null | null | null | import unittest
import requests.exceptions
import tests.command_download
class DownloadInvalid(unittest.TestCase):
def snippet_call_download_raises(self, *args, **kwargs):
tests.command_download.snippet_call_download_raises(self, *args, **kwargs)
def snippet_call_download_twice(self, *args, **kwargs... | 33.65625 | 148 | 0.610028 | 118 | 1,077 | 5.29661 | 0.381356 | 0.1536 | 0.1824 | 0.12 | 0.3968 | 0.3104 | 0.3104 | 0.1696 | 0.1696 | 0 | 0 | 0.050251 | 0.26091 | 1,077 | 31 | 149 | 34.741935 | 0.734925 | 0 | 0 | 0 | 0 | 0 | 0.195915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.12 | 0 | 0.32 | 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 |
03a0a2c09d2bce8e868aa13f076f3c10ca79601c | 325 | py | Python | src/core/migrations/0007_remove_gamer_api_key.py | creyD/asiimov | a819962d8f2a7ce9921e0f3cbe9b44ab10967c6f | [
"MIT"
] | 1 | 2021-06-09T20:27:15.000Z | 2021-06-09T20:27:15.000Z | src/core/migrations/0007_remove_gamer_api_key.py | creyD/asiimov | a819962d8f2a7ce9921e0f3cbe9b44ab10967c6f | [
"MIT"
] | 8 | 2020-09-26T11:24:13.000Z | 2021-06-10T18:08:07.000Z | src/core/migrations/0007_remove_gamer_api_key.py | creyD/asiimov | a819962d8f2a7ce9921e0f3cbe9b44ab10967c6f | [
"MIT"
] | null | null | null | # Generated by Django 3.0.2 on 2020-01-22 12:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0006_auto_20200119_1240'),
]
operations = [
migrations.RemoveField(
model_name='gamer',
name='API_KEY',
),
... | 18.055556 | 47 | 0.587692 | 36 | 325 | 5.166667 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135965 | 0.298462 | 325 | 17 | 48 | 19.117647 | 0.679825 | 0.138462 | 0 | 0 | 1 | 0 | 0.140288 | 0.082734 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03a9b56aefcc18d6d4d4d9cf1fe12e63abf33c88 | 820 | py | Python | examples/authentication/ext_app_auth.py | symphony-elias/symphony-bdk-python | 0d1cd94a9982e3687ea52c49acdb5f942ecd9bec | [
"Apache-2.0"
] | 17 | 2018-09-06T09:58:18.000Z | 2021-07-13T12:54:20.000Z | examples/authentication/ext_app_auth.py | symphony-elias/symphony-bdk-python | 0d1cd94a9982e3687ea52c49acdb5f942ecd9bec | [
"Apache-2.0"
] | 59 | 2018-11-21T15:17:57.000Z | 2021-08-03T10:00:43.000Z | examples/authentication/ext_app_auth.py | symphony-elias/symphony-bdk-python | 0d1cd94a9982e3687ea52c49acdb5f942ecd9bec | [
"Apache-2.0"
] | 37 | 2018-09-01T03:07:48.000Z | 2021-07-06T10:21:50.000Z | import asyncio
import logging.config
from pathlib import Path
from symphony.bdk.core.config.loader import BdkConfigLoader
from symphony.bdk.core.symphony_bdk import SymphonyBdk
async def run():
config = BdkConfigLoader.load_from_symphony_dir("config.yaml")
async with SymphonyBdk(config) as bdk:
ext_a... | 32.8 | 105 | 0.752439 | 111 | 820 | 5.315315 | 0.405405 | 0.108475 | 0.09661 | 0.064407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152439 | 820 | 24 | 106 | 34.166667 | 0.848921 | 0 | 0 | 0 | 0 | 0 | 0.106098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 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 |
03aaacd27c3cd7a9bdb9bb32dfd00054c22af14a | 3,788 | py | Python | login_handler.py | sciapp/nojava-ipmi-kvm-server | 21816ebc03b1a4bf88b0bc4589df10047121b6b5 | [
"MIT"
] | 4 | 2020-12-08T14:20:52.000Z | 2022-03-04T10:30:39.000Z | login_handler.py | sciapp/nojava-ipmi-kvm-server | 21816ebc03b1a4bf88b0bc4589df10047121b6b5 | [
"MIT"
] | 1 | 2021-12-21T00:33:30.000Z | 2022-01-16T16:55:52.000Z | login_handler.py | sciapp/nojava-ipmi-kvm-server | 21816ebc03b1a4bf88b0bc4589df10047121b6b5 | [
"MIT"
] | 5 | 2020-09-22T14:30:31.000Z | 2022-03-30T05:33:53.000Z | import os
import ldap3
from login_mixin import OAuth2LoginMixin
from basehandler import BaseHandler
class OAuth2LoginHandler(BaseHandler, OAuth2LoginMixin):
"""
Handler for authorization for oauth servers
"""
def __init__(self, *args, **kwargs):
BaseHandler.__init__(self, *args, **kwargs)
... | 47.35 | 127 | 0.55623 | 413 | 3,788 | 4.854722 | 0.2954 | 0.058354 | 0.05187 | 0.07581 | 0.269825 | 0.21197 | 0.199002 | 0.125187 | 0.065835 | 0.065835 | 0 | 0.005607 | 0.340813 | 3,788 | 79 | 128 | 47.949367 | 0.797357 | 0.06811 | 0 | 0.142857 | 0 | 0 | 0.131325 | 0.016087 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0.015873 | false | 0.031746 | 0.063492 | 0 | 0.142857 | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
03ac8d1ba468c99fa8283b5663b7a1670e8cbee1 | 387 | py | Python | algorithms/binary_indexed_tree.py | necusjz/awesome-cs | 4f5031654630c6970db06d0a2311ec803f19e41b | [
"MIT"
] | 2 | 2021-05-22T10:51:13.000Z | 2021-05-22T11:54:36.000Z | algorithms/binary_indexed_tree.py | necusjz/awesome-cs | 4f5031654630c6970db06d0a2311ec803f19e41b | [
"MIT"
] | null | null | null | algorithms/binary_indexed_tree.py | necusjz/awesome-cs | 4f5031654630c6970db06d0a2311ec803f19e41b | [
"MIT"
] | 1 | 2021-04-20T15:37:51.000Z | 2021-04-20T15:37:51.000Z | class BinaryIndexedTree:
def __init__(self, n):
self.sums = [0] * (n + 1)
def update(self, i, delta):
while i < len(self.sums):
self.sums[i] += delta
# add low bit
i += (i & -i)
def prefix_sum(self, i):
ret = 0
while i:
... | 22.764706 | 33 | 0.421189 | 49 | 387 | 3.22449 | 0.428571 | 0.063291 | 0.056962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013953 | 0.444444 | 387 | 16 | 34 | 24.1875 | 0.72093 | 0.028424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
03bb1e988000b2a0d58d8e05f660eb2b60394c0f | 1,191 | py | Python | src/utils/setup/env.py | stefaniavallone/kaboo | 1492ef9313fa39cf6bf9ac9417a53f6e3c10921b | [
"MIT"
] | null | null | null | src/utils/setup/env.py | stefaniavallone/kaboo | 1492ef9313fa39cf6bf9ac9417a53f6e3c10921b | [
"MIT"
] | 1 | 2022-03-17T03:02:44.000Z | 2022-03-17T03:02:44.000Z | src/utils/setup/env.py | stefaniavallone/kaboo | 1492ef9313fa39cf6bf9ac9417a53f6e3c10921b | [
"MIT"
] | 2 | 2022-03-03T16:35:22.000Z | 2022-03-17T02:54:25.000Z | import json
import os
import platform
import sys
from kivy.core.window import Window
from kivy.logger import LOG_LEVELS, Logger
import kivy
def create_file_if_not_exist(file_path):
if not os.path.exists(file_path):
with open(file_path, "w") as file:
file.write(json.dumps([]))
def setup_env()... | 28.357143 | 71 | 0.666667 | 159 | 1,191 | 4.81761 | 0.484277 | 0.031332 | 0.031332 | 0.039164 | 0.052219 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026144 | 0.229219 | 1,191 | 41 | 72 | 29.04878 | 0.808279 | 0.066331 | 0 | 0 | 0 | 0 | 0.074275 | 0.025362 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.333333 | 0 | 0.407407 | 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 |
03c027b763436513da1561a53f6e13e6413555c8 | 2,916 | py | Python | corehq/apps/users/tests/test_db_accessors.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/users/tests/test_db_accessors.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | 1 | 2022-03-12T01:03:25.000Z | 2022-03-12T01:03:25.000Z | corehq/apps/users/tests/test_db_accessors.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | from django.test import TestCase
from corehq.apps.users.models import WebUser, CommCareUser
from corehq.apps.users.dbaccessors.all_commcare_users import (
get_all_commcare_users_by_domain,
get_user_docs_by_username,
delete_all_users, get_all_user_ids)
from corehq.apps.domain.models import Domain
class All... | 35.560976 | 107 | 0.642318 | 347 | 2,916 | 5.100865 | 0.190202 | 0.055932 | 0.045198 | 0.042938 | 0.259322 | 0.20678 | 0.149718 | 0.132203 | 0.072316 | 0.072316 | 0 | 0.005119 | 0.263032 | 2,916 | 81 | 108 | 36 | 0.81852 | 0 | 0 | 0.164384 | 0 | 0 | 0.083676 | 0.027092 | 0 | 0 | 0 | 0 | 0.068493 | 1 | 0.082192 | false | 0.068493 | 0.054795 | 0 | 0.150685 | 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 |
03cce2d3ab15b54c02b932d7cd5b34bd31bce7e8 | 620 | py | Python | Stacks/stacksUsingList.py | Navya-tec/100daysofDSA | fa3338122099afdcf01b0f1725d7c5613b53bed8 | [
"MIT"
] | 13 | 2021-02-27T10:27:22.000Z | 2021-10-05T13:56:28.000Z | Stacks/stacksUsingList.py | Navya-tec/100daysofDSA | fa3338122099afdcf01b0f1725d7c5613b53bed8 | [
"MIT"
] | 15 | 2021-03-06T14:23:49.000Z | 2022-01-29T07:10:21.000Z | Stacks/stacksUsingList.py | Navya-tec/100daysofDSA | fa3338122099afdcf01b0f1725d7c5613b53bed8 | [
"MIT"
] | 24 | 2021-03-04T06:15:12.000Z | 2021-11-14T22:15:13.000Z | #stack is a linear data structure that stores items in a Last-In/First-Out (LIFO) or First-In/Last-Out (FILO) manner.
#In stack, a new element is added at one end and an element is removed from that end only.
stack = []
# append() function to push
# element in the stack
stack.append('a')
stack.append('b')
stack.app... | 21.37931 | 118 | 0.71129 | 103 | 620 | 4.281553 | 0.456311 | 0.14966 | 0.117914 | 0.122449 | 0.099773 | 0.099773 | 0.099773 | 0 | 0 | 0 | 0 | 0 | 0.15 | 620 | 28 | 119 | 22.142857 | 0.836812 | 0.498387 | 0 | 0.357143 | 0 | 0 | 0.267327 | 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 |
03ceb2a180f6509c2bb2beb29a3806b19e07b3a1 | 1,808 | py | Python | src/hurnado/app/handler/account.py | guyuecanhui/hurnado | fc54eed8ebd70768ce6e1f1073e506d365bb5b8d | [
"Apache-2.0"
] | null | null | null | src/hurnado/app/handler/account.py | guyuecanhui/hurnado | fc54eed8ebd70768ce6e1f1073e506d365bb5b8d | [
"Apache-2.0"
] | null | null | null | src/hurnado/app/handler/account.py | guyuecanhui/hurnado | fc54eed8ebd70768ce6e1f1073e506d365bb5b8d | [
"Apache-2.0"
] | null | null | null | # coding:utf-8
__author__ = 'cheng.hu'
import hashlib
import sys
from base import BaseHandler
from hurnado.app.db.postgres import validate, insert
reload(sys)
sys.setdefaultencoding('utf-8')
def wrap(txt):
return '<strong class="text-danger">' + txt + '</strong>'
class LoginHandler(BaseHandler):
def get(s... | 29.16129 | 77 | 0.611173 | 199 | 1,808 | 5.472362 | 0.321608 | 0.044995 | 0.096419 | 0.077135 | 0.587695 | 0.504132 | 0.447199 | 0.391185 | 0.391185 | 0.391185 | 0 | 0.002961 | 0.252765 | 1,808 | 62 | 78 | 29.16129 | 0.803109 | 0.006637 | 0 | 0.489362 | 0 | 0 | 0.147632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148936 | false | 0.148936 | 0.085106 | 0.021277 | 0.340426 | 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 |
03de028e264842a9e4dc90e40ecbc2138ed11550 | 1,006 | py | Python | test/testshell.py | svalqui/NR | 5b6e665fb1166e010ae64b15dde7eb039ca1af64 | [
"MIT"
] | null | null | null | test/testshell.py | svalqui/NR | 5b6e665fb1166e010ae64b15dde7eb039ca1af64 | [
"MIT"
] | null | null | null | test/testshell.py | svalqui/NR | 5b6e665fb1166e010ae64b15dde7eb039ca1af64 | [
"MIT"
] | null | null | null | # Copyright 2019 by Sergio Valqui. All rights reserved.
#
#
# Authors: Sergio Valqui
# Created : 2015/08/13
# Modified : 2015/0813
import getpass
from networktangents import netdef
gs_DeviceName = input('DeviceName: ')
gs_UserName = getpass.getpass("Username: ")
gs_password = getpass.getpass()
gs_EnablePass = getp... | 22.355556 | 99 | 0.644135 | 102 | 1,006 | 6.215686 | 0.490196 | 0.078864 | 0.063091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029101 | 0.248509 | 1,006 | 44 | 100 | 22.863636 | 0.809524 | 0.117296 | 0 | 0 | 0 | 0 | 0.148864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.185185 | 0.074074 | 0 | 0.074074 | 0.259259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
03e33b06ea5682cf27b8177c605d1c4b1e77aaca | 1,795 | py | Python | MIT course tests/Unit 2 and 3/test set 2/first.py | alex-muci/small-projects | edeef0ad9e6df1e6c3fe25066260884499c68c3b | [
"MIT"
] | null | null | null | MIT course tests/Unit 2 and 3/test set 2/first.py | alex-muci/small-projects | edeef0ad9e6df1e6c3fe25066260884499c68c3b | [
"MIT"
] | null | null | null | MIT course tests/Unit 2 and 3/test set 2/first.py | alex-muci/small-projects | edeef0ad9e6df1e6c3fe25066260884499c68c3b | [
"MIT"
] | null | null | null | """
Goal:
Write a program to calculate the credit card balance after one year
if a person only pays the minimum monthly payment
required by the credit card company each month.
For each month, calculate statements on the monthly payment and remaining balance.
At the end of 12 months, print out the remaining balance.
Be... | 32.636364 | 108 | 0.747075 | 245 | 1,795 | 5.465306 | 0.395918 | 0.062733 | 0.078417 | 0.085138 | 0.179985 | 0.179985 | 0.179985 | 0.179985 | 0.134429 | 0.134429 | 0 | 0.033264 | 0.1961 | 1,795 | 54 | 109 | 33.240741 | 0.894664 | 0.829526 | 0 | 0 | 0 | 0 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 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 |
03e512ba3c71ff1e9e9cad71996c122939536ba0 | 8,089 | py | Python | integrationtest/vm/baremetal/test_stub.py | bgerxx/woodpecker | fdc51245945cc9be4d1f028988079213eb99b2ad | [
"Apache-2.0"
] | null | null | null | integrationtest/vm/baremetal/test_stub.py | bgerxx/woodpecker | fdc51245945cc9be4d1f028988079213eb99b2ad | [
"Apache-2.0"
] | null | null | null | integrationtest/vm/baremetal/test_stub.py | bgerxx/woodpecker | fdc51245945cc9be4d1f028988079213eb99b2ad | [
"Apache-2.0"
] | null | null | null | import zstackwoodpecker.operations.baremetal_operations as bare_operations
import zstackwoodpecker.zstack_test.zstack_test_vm as zstack_vm_header
import zstacklib.utils.jsonobject as jsonobject
import zstackwoodpecker.test_util as test_util
import zstackwoodpecker.test_lib as test_lib
import zstacklib.utils.shell as sh... | 37.623256 | 140 | 0.694029 | 1,149 | 8,089 | 4.581375 | 0.156658 | 0.042743 | 0.043313 | 0.022226 | 0.207637 | 0.12766 | 0.075228 | 0.013108 | 0 | 0 | 0 | 0.010074 | 0.202374 | 8,089 | 214 | 141 | 37.799065 | 0.805797 | 0.015948 | 0 | 0.087912 | 0 | 0 | 0.07996 | 0.006789 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027473 | 0.049451 | 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 |
03e7359aa653e6e0e2e83dd7212af5966ae96cab | 1,662 | py | Python | src/f0cal/farm/client/conan_client.py | f0cal/f0cal.farm.client | 9bc345998f64f39976ac58982a6d8545f704508d | [
"MIT"
] | 1 | 2020-01-21T02:33:48.000Z | 2020-01-21T02:33:48.000Z | src/f0cal/farm/client/conan_client.py | f0cal/f0cal.farm.client | 9bc345998f64f39976ac58982a6d8545f704508d | [
"MIT"
] | 8 | 2020-11-24T18:33:29.000Z | 2021-06-29T15:04:50.000Z | src/f0cal/farm/client/conan_client.py | f0cal/farm | 9bc345998f64f39976ac58982a6d8545f704508d | [
"MIT"
] | null | null | null | import os
import sys
import logging
from conans.client.conan_api import Conan
from conans.model.ref import ConanFileReference
from conans.errors import ConanException
import f0cal.core
VENV_HOME = sys.prefix
LOG = logging.getLogger(__name__)
CONAN_REMOTE_NAME = 'f0cal_images'
CONAN_PATH = '/conan'
class ConanClien... | 31.961538 | 107 | 0.700963 | 225 | 1,662 | 4.911111 | 0.328889 | 0.108597 | 0.081448 | 0.068778 | 0.113122 | 0.045249 | 0 | 0 | 0 | 0 | 0 | 0.005287 | 0.203369 | 1,662 | 51 | 108 | 32.588235 | 0.829305 | 0 | 0 | 0 | 0 | 0 | 0.098676 | 0.012635 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0.1 | 0.175 | 0.025 | 0.45 | 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 |
03e7b13f52e4e92232bfaed26efcf55c0e665eaa | 210 | py | Python | python/py-regex/re-findall-re-finditer.py | feliposz/hackerrank-solutions | fb1d63ca12a0d289362c9b3fb4cb0b79ef73f72f | [
"MIT"
] | null | null | null | python/py-regex/re-findall-re-finditer.py | feliposz/hackerrank-solutions | fb1d63ca12a0d289362c9b3fb4cb0b79ef73f72f | [
"MIT"
] | null | null | null | python/py-regex/re-findall-re-finditer.py | feliposz/hackerrank-solutions | fb1d63ca12a0d289362c9b3fb4cb0b79ef73f72f | [
"MIT"
] | null | null | null | import re
test = input()
result = re.findall(r"(?<=[bcdfghjklmnpqrstvwxyz])[aeiou]{2,}(?=[bcdfghjklmnpqrstvwxyz])", test, re.IGNORECASE)
if len(result) > 0:
print("\n".join(result))
else:
print(-1)
| 17.5 | 111 | 0.642857 | 26 | 210 | 5.192308 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016575 | 0.138095 | 210 | 11 | 112 | 19.090909 | 0.729282 | 0 | 0 | 0 | 0 | 0 | 0.325359 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 |
03ee60a5eb31c1f4b5a35f2bae269d4a67e39dba | 886 | py | Python | DSL asgn1.py | jatin-code21/SPPU-lab | 0267718ba800c599d4b989ac912faac3aee1748f | [
"MIT"
] | 1 | 2021-09-29T05:00:27.000Z | 2021-09-29T05:00:27.000Z | DSL asgn1.py | jatin-code21/SPPU-lab | 0267718ba800c599d4b989ac912faac3aee1748f | [
"MIT"
] | null | null | null | DSL asgn1.py | jatin-code21/SPPU-lab | 0267718ba800c599d4b989ac912faac3aee1748f | [
"MIT"
] | null | null | null | student = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
a = [1, 2, 6, 7, 13, 15, 11]
b = [3, 4, 6, 8, 12, 13]
c = [6, 7, 8, 9, 14, 15]
t1 = []
t2 = []
t3 = []
t4 = []
for i in range(len(student)):
if student[i] in a and student[i] in b:
t1.append(student[i])
if student[i] in a and student[i] not... | 36.916667 | 90 | 0.611738 | 175 | 886 | 3.097143 | 0.274286 | 0.221402 | 0.110701 | 0.119926 | 0.53321 | 0.49631 | 0.239852 | 0.239852 | 0.191882 | 0.140221 | 0 | 0.087149 | 0.235892 | 886 | 23 | 91 | 38.521739 | 0.713442 | 0 | 0 | 0 | 0 | 0 | 0.27088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.190476 | 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 |
ff036b09eceda1cd8978330dca4145aef50067d2 | 2,248 | py | Python | v1/payments/migrations/0001_initial.py | dsfx3d/payu-payment-gateway-service | 468a532c4fb0e242139bdc077d16dbd70b804eb3 | [
"MIT"
] | 1 | 2021-07-19T11:00:56.000Z | 2021-07-19T11:00:56.000Z | v1/payments/migrations/0001_initial.py | dsfx3d/payu-payment-gateway-service | 468a532c4fb0e242139bdc077d16dbd70b804eb3 | [
"MIT"
] | null | null | null | v1/payments/migrations/0001_initial.py | dsfx3d/payu-payment-gateway-service | 468a532c4fb0e242139bdc077d16dbd70b804eb3 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.2 on 2020-01-26 13:22
from django.db import migrations, models
import django.db.models.deletion
import v1.payments.models
class Migration(migrations.Migration):
initial = True
dependencies = [
('business', '0005_auto_20200126_1852'),
]
operations = [
migra... | 53.52381 | 145 | 0.622776 | 255 | 2,248 | 5.34902 | 0.352941 | 0.145161 | 0.092375 | 0.123167 | 0.478739 | 0.478739 | 0.478739 | 0.343109 | 0.277126 | 0.277126 | 0 | 0.041427 | 0.226868 | 2,248 | 41 | 146 | 54.829268 | 0.743383 | 0.020018 | 0 | 0 | 1 | 0 | 0.154021 | 0.01045 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088235 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff04547f4a0d17a8163cd4d66ebed16abc5ef950 | 547 | py | Python | src/test/resources/logistic_regression/word_extractor.py | feiranwang/deepdive | 53c03edba643d53fbb6d9d382870fe5dfb2e47a1 | [
"Apache-2.0"
] | 7 | 2015-02-02T21:45:41.000Z | 2021-07-07T16:47:37.000Z | src/test/resources/logistic_regression/word_extractor.py | feiranwang/deepdive | 53c03edba643d53fbb6d9d382870fe5dfb2e47a1 | [
"Apache-2.0"
] | 1 | 2016-01-23T23:08:43.000Z | 2016-01-23T23:08:43.000Z | src/test/resources/logistic_regression/word_extractor.py | feiranwang/deepdive | 53c03edba643d53fbb6d9d382870fe5dfb2e47a1 | [
"Apache-2.0"
] | 3 | 2015-10-15T03:32:48.000Z | 2019-06-30T09:53:20.000Z | #! /usr/bin/env python
import fileinput
import json
# For each tuple..
for line in fileinput.input():
# From: titles(id, title, has_extractions)
# To: words(id, title_id, word)
row = json.loads(line)
# We are emitting one variable and one factor for each word.
if row["title"] is not None:
# print json.d... | 34.1875 | 86 | 0.654479 | 84 | 547 | 4.202381 | 0.547619 | 0.05949 | 0.062323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184644 | 547 | 16 | 86 | 34.1875 | 0.79148 | 0.488117 | 0 | 0 | 0 | 0 | 0.127737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff0b718caa6a4e4e18079743b553135db37c3458 | 2,462 | py | Python | modules/Mfg_Vision_CIS_Camera_1/app/twin_call.py | MSUSSolutionAccelerators/Manufacturing-Vision-Solution-Accelerator-AMD64 | 4e91993c8533422a676cb8d13b4963028a8f2cdd | [
"MIT"
] | null | null | null | modules/Mfg_Vision_CIS_Camera_1/app/twin_call.py | MSUSSolutionAccelerators/Manufacturing-Vision-Solution-Accelerator-AMD64 | 4e91993c8533422a676cb8d13b4963028a8f2cdd | [
"MIT"
] | null | null | null | modules/Mfg_Vision_CIS_Camera_1/app/twin_call.py | MSUSSolutionAccelerators/Manufacturing-Vision-Solution-Accelerator-AMD64 | 4e91993c8533422a676cb8d13b4963028a8f2cdd | [
"MIT"
] | null | null | null |
import os
import time
import pickle
from azure.iot.device import IoTHubModuleClient
class TwinUpdater():
def __init__(self) -> None:
try:
self.client = IoTHubModuleClient.create_from_edge_environment()
self.client.connect()
print("Client connected")
twi... | 41.728814 | 82 | 0.609667 | 275 | 2,462 | 5.08 | 0.305455 | 0.137437 | 0.246958 | 0.150322 | 0.035791 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001076 | 0.245329 | 2,462 | 58 | 83 | 42.448276 | 0.750807 | 0 | 0 | 0 | 0 | 0 | 0.329407 | 0.00853 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.08 | 0 | 0.18 | 0.08 | 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 |
ff0c4f20e7072f1dae292c9f58cb58d0d30ba19d | 3,299 | py | Python | apps/accounts/api/v1/serializers/password.py | jimialex/django-wise-template-mysql | 78b7281ba5cdd1e89a165b217e1b200fdba0135b | [
"MIT"
] | 2 | 2020-06-06T23:10:27.000Z | 2020-10-06T19:12:26.000Z | apps/accounts/api/v1/serializers/password.py | jimialex/django-wise-template-mysql | 78b7281ba5cdd1e89a165b217e1b200fdba0135b | [
"MIT"
] | 3 | 2021-04-08T20:44:38.000Z | 2021-09-22T19:04:16.000Z | apps/accounts/api/v1/serializers/password.py | jimialex/django-wise-template-mysql | 78b7281ba5cdd1e89a165b217e1b200fdba0135b | [
"MIT"
] | 1 | 2020-10-10T14:07:37.000Z | 2020-10-10T14:07:37.000Z | # -*- coding: utf-8 -*-
from rest_framework import serializers
from rest_framework.exceptions import ValidationError
from rest_framework.serializers import Serializer
from apps.accounts import response_codes
from apps.accounts.api.v1.serializers.login import UsernameOrEmailSerializer
from apps.accounts.models import ... | 31.419048 | 81 | 0.701425 | 353 | 3,299 | 6.300283 | 0.300283 | 0.052608 | 0.091727 | 0.071942 | 0.443795 | 0.343975 | 0.343975 | 0.343975 | 0.343975 | 0.343975 | 0 | 0.006377 | 0.191876 | 3,299 | 104 | 82 | 31.721154 | 0.827832 | 0.091543 | 0 | 0.447761 | 0 | 0 | 0.091737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089552 | false | 0.537313 | 0.104478 | 0 | 0.462687 | 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 |
ff132d75b11c02fba72fea62b3c16dcbe2808c78 | 5,840 | py | Python | SConsGnu/GConfig.py | ptomulik/scons-gnu-build | 9c46908eed50679d7aaaaf472e324c97545ac837 | [
"Unlicense"
] | null | null | null | SConsGnu/GConfig.py | ptomulik/scons-gnu-build | 9c46908eed50679d7aaaaf472e324c97545ac837 | [
"Unlicense"
] | 1 | 2015-02-13T04:30:45.000Z | 2015-02-13T04:30:45.000Z | SConsGnu/GConfig.py | ptomulik/scons-gnu-build | 9c46908eed50679d7aaaaf472e324c97545ac837 | [
"Unlicense"
] | null | null | null | """`SConsGnu.GConfig`
TODO: Write docs for XXX
"""
#
# Copyright (c) 2012-2014 by Pawel Tomulik
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limi... | 40.839161 | 142 | 0.648116 | 711 | 5,840 | 5.202532 | 0.326301 | 0.072993 | 0.062179 | 0.016221 | 0.215464 | 0.182482 | 0.164098 | 0.140308 | 0.118681 | 0.118681 | 0 | 0.004219 | 0.269521 | 5,840 | 142 | 143 | 41.126761 | 0.862869 | 0.680822 | 0 | 0.051282 | 0 | 0 | 0.038108 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.153846 | false | 0.025641 | 0.102564 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff137f15f8fda0b275548ccc30086f8c22fde8b4 | 28,282 | py | Python | yadacoin/app.py | defihat/yadacoin | 9a24414605ec80661b6c3c0b06665a8dc1b42f11 | [
"MIT"
] | 7 | 2018-08-10T22:35:08.000Z | 2022-03-27T17:35:34.000Z | yadacoin/app.py | defihat/yadacoin | 9a24414605ec80661b6c3c0b06665a8dc1b42f11 | [
"MIT"
] | 34 | 2019-03-05T15:32:53.000Z | 2022-01-13T00:49:33.000Z | yadacoin/app.py | defihat/yadacoin | 9a24414605ec80661b6c3c0b06665a8dc1b42f11 | [
"MIT"
] | 12 | 2018-11-26T10:16:29.000Z | 2021-11-03T05:22:07.000Z | """
Async Yadacoin node poc
"""
import sys
import importlib
import pkgutil
import json
import logging
import os
import ssl
import ntpath
import binascii
import socket
currentdir = os.path.dirname(os.path.realpath(__file__))
parentdir = os.path.dirname(currentdir)
sys.path.append(parentdir)
from datetime import datetim... | 47.373534 | 151 | 0.628845 | 3,298 | 28,282 | 5.192844 | 0.151607 | 0.126124 | 0.020495 | 0.025225 | 0.478454 | 0.391685 | 0.340068 | 0.303632 | 0.229359 | 0.177274 | 0 | 0.00673 | 0.269677 | 28,282 | 596 | 152 | 47.45302 | 0.822367 | 0.015487 | 0 | 0.220441 | 0 | 0 | 0.061267 | 0.003344 | 0 | 0 | 0 | 0.001678 | 0 | 0 | null | null | 0.002004 | 0.116232 | 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 |
ff1c0ec0321819cdb9afa98fddd90bb57bac9c5f | 1,282 | py | Python | counselor/watcher.py | joergeschmann/counselor | 455ba2a07d25c5ac946f9b3dab0678eec7d46c40 | [
"MIT"
] | null | null | null | counselor/watcher.py | joergeschmann/counselor | 455ba2a07d25c5ac946f9b3dab0678eec7d46c40 | [
"MIT"
] | null | null | null | counselor/watcher.py | joergeschmann/counselor | 455ba2a07d25c5ac946f9b3dab0678eec7d46c40 | [
"MIT"
] | null | null | null | import logging
import time
from datetime import timedelta
from threading import Event, Thread
LOGGER = logging.getLogger(__name__)
class Task(Thread):
"""Base class to represent a Task that is executed by a trigger.
"""
def __init__(self, name: str, interval: timedelta, stop_event: Event, log_interval_s... | 28.488889 | 107 | 0.645086 | 163 | 1,282 | 4.828221 | 0.374233 | 0.057179 | 0.091487 | 0.057179 | 0.066074 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006397 | 0.268331 | 1,282 | 44 | 108 | 29.136364 | 0.832623 | 0.138066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0.034483 | 0.137931 | 0 | 0.413793 | 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 |
ff1ce860180ab3f226132df7cb83e2db1c45fcae | 4,927 | py | Python | nar_module/nar/metrics.py | mr-yoni/chameleon_recsys | 6b2f1ff4928faebdaf80e7b6dd95fe19d3dbce65 | [
"MIT"
] | 1 | 2019-03-07T15:39:10.000Z | 2019-03-07T15:39:10.000Z | nar_module/nar/metrics.py | mr-yoni/chameleon_recsys | 6b2f1ff4928faebdaf80e7b6dd95fe19d3dbce65 | [
"MIT"
] | null | null | null | nar_module/nar/metrics.py | mr-yoni/chameleon_recsys | 6b2f1ff4928faebdaf80e7b6dd95fe19d3dbce65 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from collections import defaultdict
class StreamingMetric:
def __init__(self, topn):
self.topn = topn
self.reset()
def name(self):
pass
def reset(self)... | 31.787097 | 142 | 0.579866 | 595 | 4,927 | 4.492437 | 0.179832 | 0.069959 | 0.049383 | 0.048634 | 0.575758 | 0.51777 | 0.4104 | 0.345679 | 0.345679 | 0.345679 | 0 | 0.012162 | 0.332454 | 4,927 | 154 | 143 | 31.993506 | 0.800547 | 0.041202 | 0 | 0.486957 | 0 | 0 | 0.010169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234783 | false | 0.034783 | 0.043478 | 0.034783 | 0.426087 | 0.008696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ff1d04df0d4bfaf961af0cb6b85df4768b8c688a | 209 | py | Python | classFig_debug.py | Fabolu/classFig | 6fa640526705c6b5721cd180b5ca04dfccf75d4b | [
"MIT"
] | null | null | null | classFig_debug.py | Fabolu/classFig | 6fa640526705c6b5721cd180b5ca04dfccf75d4b | [
"MIT"
] | null | null | null | classFig_debug.py | Fabolu/classFig | 6fa640526705c6b5721cd180b5ca04dfccf75d4b | [
"MIT"
] | 1 | 2018-08-24T11:34:45.000Z | 2018-08-24T11:34:45.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from classFig import classFig
fig = classFig('PPT',(2,1),sharex=True,hspace=0.1,figshow=False)
fig.plot([1,2,3,2,1])
#fig.show()
fig.save('classFig_debug.png')
| 20.9 | 64 | 0.674641 | 37 | 209 | 3.783784 | 0.702703 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057895 | 0.090909 | 209 | 9 | 65 | 23.222222 | 0.678947 | 0.253589 | 0 | 0 | 0 | 0 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
2065c6c4dd87561a17c47ee10420b0da435c6d3d | 544 | py | Python | gallery/migrations/0003_auto_20210903_1633.py | fkinyae/kins-gallery | 0be85c68911690b3cdbae6e96febbbc01d5aa724 | [
"MIT"
] | null | null | null | gallery/migrations/0003_auto_20210903_1633.py | fkinyae/kins-gallery | 0be85c68911690b3cdbae6e96febbbc01d5aa724 | [
"MIT"
] | null | null | null | gallery/migrations/0003_auto_20210903_1633.py | fkinyae/kins-gallery | 0be85c68911690b3cdbae6e96febbbc01d5aa724 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-09-03 13:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gallery', '0002_auto_20210903_1605'),
]
operations = [
migrations.AlterModelOptions(
name='image',
options={'orderin... | 23.652174 | 80 | 0.580882 | 54 | 544 | 5.722222 | 0.814815 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080311 | 0.290441 | 544 | 22 | 81 | 24.727273 | 0.720207 | 0.082721 | 0 | 0.125 | 1 | 0 | 0.177062 | 0.046278 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2069471722d529e2ea14a26c69e1c17ca4b60188 | 1,678 | py | Python | MonteCarlo_and_SARSA/Gridworld.py | SophieTian/Grid-World | 71a16a2c28ff440897399d3b9e4a478cd57b30b0 | [
"MIT"
] | null | null | null | MonteCarlo_and_SARSA/Gridworld.py | SophieTian/Grid-World | 71a16a2c28ff440897399d3b9e4a478cd57b30b0 | [
"MIT"
] | null | null | null | MonteCarlo_and_SARSA/Gridworld.py | SophieTian/Grid-World | 71a16a2c28ff440897399d3b9e4a478cd57b30b0 | [
"MIT"
] | null | null | null | import numpy as np
class Gridworld:
"""
A 2-dimensional array of objects backed by a list of lists.
States are numbered 1 to 25 going left to right then top to bottom
Thus, actions are -1, 1, -5, 5 corresponding to left, right, up, down
"""
def __init__(self, shape=[5,5], initialState=25):
... | 31.074074 | 76 | 0.510131 | 220 | 1,678 | 3.859091 | 0.354545 | 0.063604 | 0.010601 | 0.014134 | 0.175501 | 0.175501 | 0.175501 | 0.175501 | 0.175501 | 0.13192 | 0 | 0.048685 | 0.387962 | 1,678 | 53 | 77 | 31.660377 | 0.777994 | 0.306913 | 0 | 0.269231 | 0 | 0 | 0.018709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.038462 | 0.038462 | 0.538462 | 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 |
2073eb54e8cb38267b78c201b3c8d8b5b0a427db | 1,482 | py | Python | Utils/fake_samples.py | kindle-coder/UM-PDD | 93809f492ffd416aa752e614f8797de4b76118b7 | [
"MIT"
] | null | null | null | Utils/fake_samples.py | kindle-coder/UM-PDD | 93809f492ffd416aa752e614f8797de4b76118b7 | [
"MIT"
] | null | null | null | Utils/fake_samples.py | kindle-coder/UM-PDD | 93809f492ffd416aa752e614f8797de4b76118b7 | [
"MIT"
] | null | null | null | import matplotlib
from matplotlib import pyplot
from tensorflow import zeros
from numpy.random import randn
import numpy as np
def generate_latent_points(latent_dim, no_of_samples):
# generate points in the latent space
latent = randn(latent_dim * no_of_samples)
# reshape into a batch of inputs for the ne... | 30.244898 | 76 | 0.693657 | 207 | 1,482 | 4.768116 | 0.391304 | 0.032421 | 0.089159 | 0.079027 | 0.260385 | 0.240122 | 0.21074 | 0.21074 | 0.097264 | 0 | 0 | 0.017241 | 0.217274 | 1,482 | 48 | 77 | 30.875 | 0.833621 | 0.146424 | 0 | 0 | 1 | 0 | 0.019124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.16129 | 0 | 0.322581 | 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 |
2074f689b2140e177e7be9c94c7c2d8716518900 | 4,545 | py | Python | Master/master.py | mikeberkelaar/controlleddos | 8a893050b99c74aab72c5ca923883e4a69e91085 | [
"Apache-2.0"
] | 4 | 2018-07-09T13:32:49.000Z | 2018-07-10T06:10:15.000Z | Master/master.py | mikeberkelaar/controlleddos | 8a893050b99c74aab72c5ca923883e4a69e91085 | [
"Apache-2.0"
] | null | null | null | Master/master.py | mikeberkelaar/controlleddos | 8a893050b99c74aab72c5ca923883e4a69e91085 | [
"Apache-2.0"
] | null | null | null | # Master (Mon + attk)
import threading, time, Queue, random # Python
import Xtcplistener, Mtcplistener, Ftcplistener, attack_master
import monitoring_master as monitoring_master # Own classes
# Statics
ALL_THREADS = []
attack_q = Queue.Queue(maxsize=1) # Max number of outstanding instruction is 1
monitoring_q = ... | 39.868421 | 216 | 0.694389 | 578 | 4,545 | 5.271626 | 0.266436 | 0.032819 | 0.025271 | 0.019692 | 0.229078 | 0.200197 | 0.163439 | 0.146373 | 0.146373 | 0.124056 | 0 | 0.044133 | 0.167437 | 4,545 | 113 | 217 | 40.221239 | 0.761099 | 0.108031 | 0 | 0 | 0 | 0 | 0.256817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | null | null | 0.146667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2076979533e86bf163e6a7f7811d78c80961f645 | 4,586 | py | Python | pgradd/ThermoChem/base.py | VlachosGroup/PythonGroupAdditivity | 114218addd528ebec82655edf4ca0d2d125d3543 | [
"MIT"
] | 2 | 2019-09-20T22:02:52.000Z | 2022-03-07T10:53:20.000Z | pgradd/ThermoChem/base.py | VlachosGroup/PythonGroupAdditivity | 114218addd528ebec82655edf4ca0d2d125d3543 | [
"MIT"
] | 10 | 2019-06-12T18:31:48.000Z | 2021-11-17T17:53:57.000Z | pgradd/ThermoChem/base.py | VlachosGroup/PythonGroupAdditivity | 114218addd528ebec82655edf4ca0d2d125d3543 | [
"MIT"
] | 2 | 2019-11-20T10:29:02.000Z | 2020-06-02T08:08:18.000Z | import abc
import numpy as np
from pmutt import constants as c
from ..Units import eval_qty
from ..Error import OutsideCorrelationError
from .. import yaml_io
class ThermochemBase(object):
metaclass = abc.ABCMeta
"""Manage thermochemical properties correlation (abstract base class).
This class cannot b... | 28.842767 | 79 | 0.573485 | 553 | 4,586 | 4.649186 | 0.262206 | 0.045508 | 0.025282 | 0.021781 | 0.402567 | 0.292104 | 0.266433 | 0.236873 | 0.16725 | 0.150136 | 0 | 0.002887 | 0.320323 | 4,586 | 158 | 80 | 29.025316 | 0.821944 | 0.352377 | 0 | 0.114754 | 0 | 0 | 0.1371 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 1 | 0.213115 | false | 0 | 0.098361 | 0 | 0.47541 | 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 |
2081c367ef60b40a8d8ea21aec6dc8ee5e8b310e | 9,349 | py | Python | ambari-server/src/test/python/stacks/1.3.2/MAPREDUCE/test_mapreduce_client.py | vsosrc/ambari | e3cc898672707bedf7597f2e16d684c8a00bba3b | [
"Apache-2.0"
] | null | null | null | ambari-server/src/test/python/stacks/1.3.2/MAPREDUCE/test_mapreduce_client.py | vsosrc/ambari | e3cc898672707bedf7597f2e16d684c8a00bba3b | [
"Apache-2.0"
] | null | null | null | ambari-server/src/test/python/stacks/1.3.2/MAPREDUCE/test_mapreduce_client.py | vsosrc/ambari | e3cc898672707bedf7597f2e16d684c8a00bba3b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License")... | 46.054187 | 795 | 0.558242 | 833 | 9,349 | 6.228091 | 0.2509 | 0.143408 | 0.055513 | 0.07633 | 0.659021 | 0.624518 | 0.589052 | 0.577294 | 0.555705 | 0.555705 | 0 | 0.013718 | 0.321639 | 9,349 | 202 | 796 | 46.282178 | 0.80432 | 0.002139 | 0 | 0.617978 | 0 | 0.005618 | 0.307064 | 0.201985 | 0 | 0 | 0 | 0 | 0.191011 | 0 | null | null | 0.005618 | 0.033708 | 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 |
2085509ef96821535e5426d36650849221da0cdd | 426 | py | Python | VetsApp/migrations/0003_auto_20200415_1534.py | Sabrinax3/Pet-Clinic-1 | 776955d118a46c8d4eaa74de22ea0280b82debc9 | [
"MIT"
] | 2 | 2020-04-13T14:26:54.000Z | 2022-01-19T01:30:25.000Z | VetsApp/migrations/0003_auto_20200415_1534.py | Sabrinax3/Pet-Clinic-1 | 776955d118a46c8d4eaa74de22ea0280b82debc9 | [
"MIT"
] | 2 | 2020-05-29T18:52:55.000Z | 2020-05-30T02:06:28.000Z | VetsApp/migrations/0003_auto_20200415_1534.py | Sabrinax3/Pet-Clinic-1 | 776955d118a46c8d4eaa74de22ea0280b82debc9 | [
"MIT"
] | 8 | 2020-04-11T08:30:44.000Z | 2020-05-30T03:26:13.000Z | # Generated by Django 3.0.5 on 2020-04-15 09:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('VetsApp', '0002_auto_20200415_1454'),
]
operations = [
migrations.AlterField(
model_name='vetsinfotable',
name='Imag... | 22.421053 | 84 | 0.617371 | 46 | 426 | 5.586957 | 0.847826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098726 | 0.262911 | 426 | 18 | 85 | 23.666667 | 0.719745 | 0.105634 | 0 | 0 | 1 | 0 | 0.184697 | 0.060686 | 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 |
208a90356a14e21f2d1b66bde4aafbe3c6cf9b88 | 5,593 | py | Python | options-using-q/optionsUsing.py | yadrimz/Hierarchical-Inverse-Reinforcement-Learning | aa49df1f29eb5d67fc5d2433f2d0a1873640dbc6 | [
"MIT"
] | 7 | 2019-02-11T21:45:12.000Z | 2020-02-09T19:09:53.000Z | options-using-q/optionsUsing.py | yadrimz/smdp | aa49df1f29eb5d67fc5d2433f2d0a1873640dbc6 | [
"MIT"
] | null | null | null | options-using-q/optionsUsing.py | yadrimz/smdp | aa49df1f29eb5d67fc5d2433f2d0a1873640dbc6 | [
"MIT"
] | 1 | 2022-03-14T09:48:14.000Z | 2022-03-14T09:48:14.000Z | import numpy as np
import random
Sx = 13
Sy = 8
S = Sx*Sy
P = 5 # there is a state for being in the taxi
G = 4
R = 0
O = 4
maxR = -999999
hallways = [80, 45, 100]
rooms = [[
14, 15, 16, 17, 18,
27, 28, 29, 30, 31,
40, 41, 42, 43, 44, 45,
53, 54, 55, 56, 57,
66, 67, 68, 69, 70,
80
],
[
20, ... | 24.857778 | 119 | 0.432147 | 857 | 5,593 | 2.770128 | 0.224037 | 0.060657 | 0.030329 | 0.030329 | 0.355518 | 0.227885 | 0.200927 | 0.200927 | 0.136479 | 0.113732 | 0 | 0.138662 | 0.40944 | 5,593 | 224 | 120 | 24.96875 | 0.580079 | 0.065975 | 0 | 0.215116 | 0 | 0 | 0.008634 | 0.007099 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011628 | null | null | 0.052326 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2094684180ef3f44dd23edfb24db866c9be9083a | 4,112 | py | Python | speedy_mind/data_generation.py | microsoft/SpeedyRec | 1186120f8c5ee8c904676bb2f19892d064c984e6 | [
"MIT"
] | 23 | 2021-03-29T03:08:27.000Z | 2022-01-19T06:41:19.000Z | speedy_mind/data_generation.py | microsoft/SpeedyRec | 1186120f8c5ee8c904676bb2f19892d064c984e6 | [
"MIT"
] | 3 | 2021-11-29T04:03:38.000Z | 2022-01-19T08:57:54.000Z | speedy_mind/data_generation.py | microsoft/SpeedyRec | 1186120f8c5ee8c904676bb2f19892d064c984e6 | [
"MIT"
] | 2 | 2021-04-13T07:26:32.000Z | 2021-09-13T12:16:50.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import math
from pathlib import Path
import argparse
import os
def generate_news(raw_data_path):
for mode in ['train', 'dev', 'test']:
Path(f'./data/speedy_data/{mode}').mkdir(parents=True, exist_ok=True)
fsave = open('./data... | 37.045045 | 120 | 0.568337 | 544 | 4,112 | 4.121324 | 0.226103 | 0.046833 | 0.068689 | 0.046833 | 0.478591 | 0.445584 | 0.379126 | 0.316682 | 0.316682 | 0.316682 | 0 | 0.008973 | 0.268239 | 4,112 | 110 | 121 | 37.381818 | 0.736125 | 0.023346 | 0 | 0.304348 | 1 | 0 | 0.114685 | 0.064074 | 0 | 0 | 0 | 0 | 0.032609 | 1 | 0.065217 | false | 0 | 0.043478 | 0 | 0.119565 | 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 |
2094c663372aebbc978ddead5a0a28f39650a18a | 214 | py | Python | nlt.py | Naveenkhasyap/NLTK_LABS | c186d4e8f90e9d37f8cef159d284f982a73d97f1 | [
"BSD-3-Clause"
] | null | null | null | nlt.py | Naveenkhasyap/NLTK_LABS | c186d4e8f90e9d37f8cef159d284f982a73d97f1 | [
"BSD-3-Clause"
] | null | null | null | nlt.py | Naveenkhasyap/NLTK_LABS | c186d4e8f90e9d37f8cef159d284f982a73d97f1 | [
"BSD-3-Clause"
] | null | null | null | import nltk
nltk.download()
sentence = """At ten o'clock on friday morning sam didn't feel very good."""
tokens = nltk.word_tokenize(sentence)
print(tokens)
tagged = nltk.pos_tag(tokens)
tagged[0:6]
print(tagged)
| 21.4 | 76 | 0.747664 | 35 | 214 | 4.514286 | 0.742857 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.121495 | 214 | 9 | 77 | 23.777778 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0.275701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.25 | 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 |
2094d40c956569928206b1545dcde2944e9fa4da | 845 | py | Python | OperationExpert.py | KToshiki-umi/Cuidemic | 6f98d3d4c955fc298d1a4e31270a0e0ecc3d6752 | [
"MIT"
] | null | null | null | OperationExpert.py | KToshiki-umi/Cuidemic | 6f98d3d4c955fc298d1a4e31270a0e0ecc3d6752 | [
"MIT"
] | null | null | null | OperationExpert.py | KToshiki-umi/Cuidemic | 6f98d3d4c955fc298d1a4e31270a0e0ecc3d6752 | [
"MIT"
] | null | null | null | #! /usr/bin/python
# --*-- coding:utf-8 --*--
"""
OperationExpert.py
Copyright (c) 2015 Toshiki Koizumi
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
"""
#v.1.01
from Player import Player
class OperationExpert(Player):
def __init__(self):
Player.__init... | 24.142857 | 111 | 0.646154 | 102 | 845 | 5.078431 | 0.588235 | 0.092664 | 0.046332 | 0.088803 | 0.15444 | 0.15444 | 0.15444 | 0.15444 | 0 | 0 | 0 | 0.023401 | 0.24142 | 845 | 35 | 112 | 24.142857 | 0.783151 | 0.246154 | 0 | 0.142857 | 0 | 0 | 0.087859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
209b61a9acc8a826617ca7a2f1889d72aedd533a | 3,972 | py | Python | apps/library/migrations/0001_initial.py | FRA1T/django_librest | a5d791b9f62cf705c0e8b9dc30469ea4250c1816 | [
"MIT"
] | 5 | 2020-12-30T12:19:59.000Z | 2020-12-31T08:02:51.000Z | apps/library/migrations/0001_initial.py | FRA1T/django_librest | a5d791b9f62cf705c0e8b9dc30469ea4250c1816 | [
"MIT"
] | null | null | null | apps/library/migrations/0001_initial.py | FRA1T/django_librest | a5d791b9f62cf705c0e8b9dc30469ea4250c1816 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-30 06:02
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | 47.855422 | 199 | 0.599446 | 381 | 3,972 | 6.065617 | 0.275591 | 0.138035 | 0.042406 | 0.066638 | 0.501947 | 0.501947 | 0.501947 | 0.501947 | 0.501947 | 0.47209 | 0 | 0.009582 | 0.26435 | 3,972 | 82 | 200 | 48.439024 | 0.781314 | 0.011329 | 0 | 0.4 | 1 | 0 | 0.16051 | 0.011465 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.053333 | 0 | 0.106667 | 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 |
209e4e779fd2a439a2c3ca5eb6c98f8f74fb8597 | 1,030 | py | Python | models/room.py | EgoriK777777/Eafon_Raver | d66580962a7868f239f9b15d7dc05da34cf116d7 | [
"MIT"
] | 2 | 2017-01-24T12:28:51.000Z | 2017-01-25T15:12:26.000Z | models/room.py | EgoriK777777/Eafon_Raver | d66580962a7868f239f9b15d7dc05da34cf116d7 | [
"MIT"
] | 7 | 2017-03-15T08:47:21.000Z | 2018-11-28T10:36:41.000Z | opendc/models/room.py | atlarge-research/opendc-web-server | 71aa937a9b7db7289d69ac85587387070d2af851 | [
"MIT"
] | 1 | 2017-01-25T15:12:44.000Z | 2017-01-25T15:12:44.000Z | from opendc.models.datacenter import Datacenter
from opendc.models.model import Model
from opendc.util import exceptions
class Room(Model):
JSON_TO_PYTHON_DICT = {
'room': {
'id': 'id',
'datacenterId': 'datacenter_id',
'name': 'name',
'roomType': 'type',
... | 28.611111 | 87 | 0.631068 | 116 | 1,030 | 5.387931 | 0.456897 | 0.0512 | 0.048 | 0.0416 | 0.0576 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001318 | 0.263107 | 1,030 | 35 | 88 | 29.428571 | 0.822134 | 0.126214 | 0 | 0 | 0 | 0 | 0.169093 | 0.040314 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.521739 | 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 |
20a34382a3c80aaa533396ee141e5d1c094ffdfc | 411 | py | Python | InjectionLog/migrations/0036_auto_20200914_2334.py | JKesslerPhD/FIPInjectionLogger | f6ad4956552409a75ef75287b764bcd1863781b1 | [
"Apache-2.0"
] | 1 | 2020-12-01T19:08:42.000Z | 2020-12-01T19:08:42.000Z | InjectionLog/migrations/0036_auto_20200914_2334.py | JKesslerPhD/FIPInjectionLogger | f6ad4956552409a75ef75287b764bcd1863781b1 | [
"Apache-2.0"
] | 49 | 2020-07-15T16:56:30.000Z | 2021-12-27T21:38:10.000Z | InjectionLog/migrations/0036_auto_20200914_2334.py | JKesslerPhD/FIPInjectionLogger | f6ad4956552409a75ef75287b764bcd1863781b1 | [
"Apache-2.0"
] | 1 | 2021-11-15T20:20:42.000Z | 2021-11-15T20:20:42.000Z | # Generated by Django 3.0.6 on 2020-09-14 23:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('InjectionLog', '0035_auto_20200720_2327'),
]
operations = [
migrations.AlterField(
model_name='injectionlog',
name='... | 21.631579 | 62 | 0.615572 | 45 | 411 | 5.488889 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113712 | 0.272506 | 411 | 18 | 63 | 22.833333 | 0.712375 | 0.109489 | 0 | 0 | 1 | 0 | 0.151099 | 0.063187 | 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 |
20a65526dd7b8212147baee2a693f160da6463f7 | 3,308 | py | Python | ema_workbench/examples/model_debugger.py | robcalon/EMAworkbench | c9e81d330c0f3b1f8ed5d0184500bd9b367a7326 | [
"BSD-3-Clause"
] | 75 | 2015-01-14T20:39:14.000Z | 2022-03-31T09:28:15.000Z | ema_workbench/examples/model_debugger.py | robcalon/EMAworkbench | c9e81d330c0f3b1f8ed5d0184500bd9b367a7326 | [
"BSD-3-Clause"
] | 92 | 2015-01-15T16:12:38.000Z | 2022-03-23T20:46:37.000Z | ema_workbench/examples/model_debugger.py | robcalon/EMAworkbench | c9e81d330c0f3b1f8ed5d0184500bd9b367a7326 | [
"BSD-3-Clause"
] | 64 | 2015-02-16T15:07:12.000Z | 2022-03-23T16:17:16.000Z | '''
Created on 11 aug. 2011
.. codeauthor:: wauping <w.auping (at) student (dot) tudelft (dot) nl>
jhkwakkel <j.h.kwakkel (at) tudelft (dot) nl>
To be able to debug the Vensim model, a few steps are needed:
1. The case that gave a bug, needs to be saved in a text file. The entire
case ... | 46.591549 | 868 | 0.702237 | 420 | 3,308 | 5.52619 | 0.490476 | 0.030159 | 0.027143 | 0.012064 | 0.098234 | 0.054287 | 0.054287 | 0.054287 | 0.054287 | 0 | 0 | 0.11514 | 0.191354 | 3,308 | 70 | 869 | 47.257143 | 0.752523 | 0.343108 | 0 | 0 | 0 | 0.029412 | 0.478945 | 0.109209 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0 | 0 | 0 | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
20a83e1ee69df5b0025e35d00cd7eb7a68cc8b43 | 1,407 | py | Python | lcd.py | andytopham/weather | ba975845413af9c13ecbf6570fe0554e58908068 | [
"MIT"
] | null | null | null | lcd.py | andytopham/weather | ba975845413af9c13ecbf6570fe0554e58908068 | [
"MIT"
] | null | null | null | lcd.py | andytopham/weather | ba975845413af9c13ecbf6570fe0554e58908068 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# LCD control.
# Use with Hobbytronics LCD16X2WB
# This code calls the Adafruit LCD library as described in...
# https://learn.adafruit.com/character-lcd-with-raspberry-pi-or-beaglebone-black/overview
# Connections: RS=pin27, EN=22, D4=25, D5=24, D6=23, D7=5
import Adafruit_CharLCD as LCD
class Scr... | 25.581818 | 112 | 0.690832 | 218 | 1,407 | 4.362385 | 0.495413 | 0.036803 | 0.018927 | 0.035752 | 0.044164 | 0.044164 | 0 | 0 | 0 | 0 | 0 | 0.047822 | 0.167733 | 1,407 | 54 | 113 | 26.055556 | 0.764304 | 0.230988 | 0 | 0.189189 | 0 | 0 | 0.07814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027027 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
20acfbe3be26d328509a4c9f863499657d3d4174 | 419 | py | Python | tests/bind_tests/x_node_tests/test_copy.py | lycantropos/seidel | d4514f1041fe64c7faf3fd9a3f61769449070b51 | [
"MIT"
] | 3 | 2020-07-06T04:28:19.000Z | 2021-04-20T07:50:53.000Z | tests/bind_tests/x_node_tests/test_copy.py | lycantropos/seidel | d4514f1041fe64c7faf3fd9a3f61769449070b51 | [
"MIT"
] | null | null | null | tests/bind_tests/x_node_tests/test_copy.py | lycantropos/seidel | d4514f1041fe64c7faf3fd9a3f61769449070b51 | [
"MIT"
] | null | null | null | import copy
from _seidel import XNode
from hypothesis import given
from . import strategies
@given(strategies.x_nodes)
def test_shallow(x_node: XNode) -> None:
result = copy.copy(x_node)
assert result is not x_node
assert result == x_node
@given(strategies.x_nodes)
def test_deep(x_node: XNode) -> Non... | 18.217391 | 40 | 0.725537 | 65 | 419 | 4.476923 | 0.323077 | 0.137457 | 0.151203 | 0.233677 | 0.659794 | 0.659794 | 0.302406 | 0.302406 | 0.302406 | 0.302406 | 0 | 0 | 0.195704 | 419 | 22 | 41 | 19.045455 | 0.863501 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 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 |
20b4f2c76b70895d3f8204ecfb7de31cd4a8be45 | 468 | py | Python | classifieds/conf/settings.py | hpunnoose01/finaltry | f5430486bccbb170392de192a265e67ffad78f39 | [
"BSD-3-Clause"
] | 21 | 2015-04-16T15:37:02.000Z | 2022-03-16T12:37:25.000Z | classifieds/conf/settings.py | hpunnoose01/finaltry | f5430486bccbb170392de192a265e67ffad78f39 | [
"BSD-3-Clause"
] | 3 | 2020-06-06T00:45:19.000Z | 2021-06-10T22:37:36.000Z | classifieds/conf/settings.py | hpunnoose01/finaltry | f5430486bccbb170392de192a265e67ffad78f39 | [
"BSD-3-Clause"
] | 15 | 2015-02-27T07:20:48.000Z | 2021-08-21T03:54:50.000Z |
from django.conf import settings
def setting(name, default):
return getattr(settings, 'CLASSIFIEDS_' + name, default)
NOTICE_ENABLED = setting('NOTICE_ENABLED', False)
# (in number of days)
NOTICE_POSTING_NEW = setting('NOTICE_POSTING_NEW', 1)
NOTICE_POSTING_EXPIRES = setting('NOTICE_POSTING_EXPIRES', 1)
FROM... | 24.631579 | 61 | 0.762821 | 62 | 468 | 5.451613 | 0.532258 | 0.153846 | 0.094675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009662 | 0.115385 | 468 | 18 | 62 | 26 | 0.806763 | 0.040598 | 0 | 0 | 0 | 0 | 0.275785 | 0.049327 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
20b73297b14bd22187b5de43327fba3cb93e0442 | 1,080 | py | Python | pp/routing/test_connect_bundle_optical2.py | flaport/gdsfactory | 1f2e844c1fe27b9c6340e2d51500fd3358fa16e5 | [
"MIT"
] | 8 | 2020-08-25T11:25:18.000Z | 2022-03-27T11:32:11.000Z | pp/routing/test_connect_bundle_optical2.py | flaport/gdsfactory | 1f2e844c1fe27b9c6340e2d51500fd3358fa16e5 | [
"MIT"
] | null | null | null | pp/routing/test_connect_bundle_optical2.py | flaport/gdsfactory | 1f2e844c1fe27b9c6340e2d51500fd3358fa16e5 | [
"MIT"
] | 1 | 2022-03-04T07:03:29.000Z | 2022-03-04T07:03:29.000Z | import numpy as np
import pp
def test_connect_bundle_optical2():
"""FIXME. Actual length of the route = 499
for some reason the route length is 10um shorter than the layout.
b = 15.708
route_length = 10+35+95.05+35+b+35+208+35+b+15
print(route_length) = 499.46
route_length = 10+t+89.55+t+b+... | 22.5 | 86 | 0.609259 | 181 | 1,080 | 3.502762 | 0.508287 | 0.086751 | 0.053628 | 0.078864 | 0.088328 | 0.088328 | 0 | 0 | 0 | 0 | 0 | 0.13697 | 0.236111 | 1,080 | 47 | 87 | 22.978723 | 0.631515 | 0.25 | 0 | 0 | 0 | 0 | 0.020645 | 0 | 0 | 0 | 0 | 0.021277 | 0.076923 | 1 | 0.038462 | false | 0 | 0.076923 | 0 | 0.153846 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
20cae24c9fff8bfd08e87628aee659bed870196e | 833 | py | Python | Programming and Scripting/question2.py | Roisin-Fallon/Python_Assignment_PS | 58c50484297bfc7eacd99add3f82024497f00823 | [
"Apache-2.0"
] | null | null | null | Programming and Scripting/question2.py | Roisin-Fallon/Python_Assignment_PS | 58c50484297bfc7eacd99add3f82024497f00823 | [
"Apache-2.0"
] | null | null | null | Programming and Scripting/question2.py | Roisin-Fallon/Python_Assignment_PS | 58c50484297bfc7eacd99add3f82024497f00823 | [
"Apache-2.0"
] | null | null | null | '''
Roisin Fallon, 28 Feb 2019
Write a program that outputs whether or not today is a day that begins with the letter T.
An example of running this program on a Thursday is as follows.
$ python begins-with-t.py
Yes - today begins with a T.
An example of running it on a Wednesday is as follows.
$ pytho... | 37.863636 | 109 | 0.67467 | 137 | 833 | 4.10219 | 0.489051 | 0.088968 | 0.042705 | 0.042705 | 0.33274 | 0.266904 | 0.19573 | 0.19573 | 0 | 0 | 0 | 0.0128 | 0.2497 | 833 | 21 | 110 | 39.666667 | 0.8864 | 0.715486 | 0 | 0 | 0 | 0 | 0.308824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.