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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8264a11fd3f63fcf1ece3dc0526bc82c576a2a32 | 943 | py | Python | 07.py | IvarsSaudinis/monty-python-and-the-holy-grail | ff17dee0f341a756b6a972b2c71755381a1eae5f | [
"MIT"
] | null | null | null | 07.py | IvarsSaudinis/monty-python-and-the-holy-grail | ff17dee0f341a756b6a972b2c71755381a1eae5f | [
"MIT"
] | null | null | null | 07.py | IvarsSaudinis/monty-python-and-the-holy-grail | ff17dee0f341a756b6a972b2c71755381a1eae5f | [
"MIT"
] | null | null | null | # Pārveidot 11.nodaļas kongresa vēlēšanu piemēru par Python3 programmu
# Association analysis with the Apriori algorithm
from classes import apriori
# uzstādīts atbalsts priekš python3 no pull requesta - https://github.com/votesmart/python-votesmart/pull/15
from votesmart import votesmart
'''
Your membership status w... | 26.194444 | 165 | 0.776246 | 121 | 943 | 6.049587 | 0.719008 | 0.038251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06625 | 0.151644 | 943 | 35 | 166 | 26.942857 | 0.84875 | 0.33298 | 0 | 0 | 0 | 0 | 0.095588 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.181818 | 0 | 0.181818 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
82662456b4a104470f5394c3e78f9b886e389546 | 9,509 | py | Python | app/engine/skill_components/advanced_components.py | hxhieu/lt-maker-tran | 36cdb138687107e804752a37cba60de5e067375e | [
"MIT"
] | null | null | null | app/engine/skill_components/advanced_components.py | hxhieu/lt-maker-tran | 36cdb138687107e804752a37cba60de5e067375e | [
"MIT"
] | null | null | null | app/engine/skill_components/advanced_components.py | hxhieu/lt-maker-tran | 36cdb138687107e804752a37cba60de5e067375e | [
"MIT"
] | null | null | null | from app.data.skill_components import SkillComponent
from app.data.components import Type
from app.engine import equations, action, item_funcs, static_random, skill_system
from app.engine.game_state import game
class Ability(SkillComponent):
nid = 'ability'
desc = "Give unit an item as an extra abilit... | 36.155894 | 124 | 0.620991 | 1,179 | 9,509 | 4.857506 | 0.166243 | 0.034573 | 0.027239 | 0.046097 | 0.587393 | 0.530644 | 0.496595 | 0.445085 | 0.396717 | 0.396717 | 0 | 0.001179 | 0.28636 | 9,509 | 262 | 125 | 36.293893 | 0.842765 | 0.019981 | 0 | 0.482927 | 0 | 0.009756 | 0.142415 | 0.005635 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131707 | false | 0 | 0.029268 | 0.019512 | 0.590244 | 0.009756 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
826917a0713ae0938f0aa7d139d73d839b4f1280 | 504 | py | Python | mspray/apps/main/migrations/0004_auto_20160908_0740.py | onaio/mspray | b3e0f4b5855abbf0298de6b66f2e9f472f2bf838 | [
"Apache-2.0"
] | null | null | null | mspray/apps/main/migrations/0004_auto_20160908_0740.py | onaio/mspray | b3e0f4b5855abbf0298de6b66f2e9f472f2bf838 | [
"Apache-2.0"
] | 76 | 2018-03-15T09:37:56.000Z | 2019-05-15T12:45:51.000Z | mspray/apps/main/migrations/0004_auto_20160908_0740.py | onaio/mspray | b3e0f4b5855abbf0298de6b66f2e9f472f2bf838 | [
"Apache-2.0"
] | 1 | 2020-10-31T07:15:22.000Z | 2020-10-31T07:15:22.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-08 07:40
from __future__ import unicode_literals
import django.contrib.gis.db.models.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0003_household_data'),
]
operations = [
... | 22.909091 | 76 | 0.638889 | 58 | 504 | 5.413793 | 0.706897 | 0.082803 | 0.101911 | 0.11465 | 0.191083 | 0.191083 | 0 | 0 | 0 | 0 | 0 | 0.062663 | 0.240079 | 504 | 21 | 77 | 24 | 0.75718 | 0.130952 | 0 | 0 | 1 | 0 | 0.082759 | 0 | 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 |
826b1af8c239262ad47f2ab810a0edecc33b2bbf | 193,633 | py | Python | psx/_dump_/17/_dump_ida_/set_funcs.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/17/_dump_ida_/set_funcs.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/17/_dump_ida_/set_funcs.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | del_items(0x80079E14)
SetType(0x80079E14, "int GetTpY__FUs(unsigned short tpage)")
del_items(0x80079E30)
SetType(0x80079E30, "int GetTpX__FUs(unsigned short tpage)")
del_items(0x80079E3C)
SetType(0x80079E3C, "void Remove96__Fv()")
del_items(0x80079E74)
SetType(0x80079E74, "void AppMain()")
del_items(0x80079F14)
SetType... | 52.150013 | 217 | 0.819829 | 24,584 | 193,633 | 6.184185 | 0.187642 | 0.097664 | 0.023416 | 0.013787 | 0.332279 | 0.278448 | 0.208811 | 0.181889 | 0.141977 | 0.124138 | 0 | 0.172703 | 0.075209 | 193,633 | 3,712 | 218 | 52.164063 | 0.676305 | 0 | 0 | 0 | 0 | 0.04445 | 0.559083 | 0.223743 | 0 | 0 | 0.191703 | 0 | 0.000539 | 1 | 0 | true | 0.000269 | 0.000269 | 0 | 0.000269 | 0.001078 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
826fa7e7380eef7d6f28719600f719d91f406337 | 10,027 | py | Python | tools/fts-troubleshoot.py | cern-fts/fts3 | cf9eb5c9f52728929965edf58a86381eec0c4e88 | [
"Apache-2.0"
] | 9 | 2018-06-27T09:53:51.000Z | 2021-01-19T09:54:37.000Z | tools/fts-troubleshoot.py | cern-fts/fts3 | cf9eb5c9f52728929965edf58a86381eec0c4e88 | [
"Apache-2.0"
] | null | null | null | tools/fts-troubleshoot.py | cern-fts/fts3 | cf9eb5c9f52728929965edf58a86381eec0c4e88 | [
"Apache-2.0"
] | 3 | 2018-07-13T06:17:44.000Z | 2021-07-08T04:57:04.000Z | #!/usr/bin/env python
#
# Copyright (c) CERN 2013-2015
#
# Copyright (c) Members of the EMI Collaboration. 2010-2013
# See http://www.eu-emi.eu/partners for details on the copyright
# holders.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with th... | 34.457045 | 120 | 0.553007 | 1,246 | 10,027 | 4.344302 | 0.250401 | 0.088675 | 0.036209 | 0.029928 | 0.286532 | 0.216516 | 0.172732 | 0.104748 | 0.091262 | 0.07796 | 0 | 0.016471 | 0.327915 | 10,027 | 290 | 121 | 34.575862 | 0.786764 | 0.0741 | 0 | 0.142857 | 0 | 0 | 0.159727 | 0.039209 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044335 | null | null | 0.039409 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8272129e3f3fa25bfc1a13df259e963931c9423c | 26,548 | py | Python | riko/modules/__init__.py | SpyHello/riko-py-stream | b52e35f3883596a8eac5b2d5be86dcc766dd0a88 | [
"MIT"
] | null | null | null | riko/modules/__init__.py | SpyHello/riko-py-stream | b52e35f3883596a8eac5b2d5be86dcc766dd0a88 | [
"MIT"
] | null | null | null | riko/modules/__init__.py | SpyHello/riko-py-stream | b52e35f3883596a8eac5b2d5be86dcc766dd0a88 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# vim: sw=4:ts=4:expandtab
"""
riko.modules
~~~~~~~~~~~~
"""
from __future__ import (
absolute_import, division, print_function, unicode_literals)
import pygogo as gogo
from functools import partial, wraps
from itertools import chain
from builtins import iter, list, map, next
from riko.b... | 38.531205 | 80 | 0.52309 | 2,766 | 26,548 | 4.933839 | 0.137383 | 0.008207 | 0.015315 | 0.018319 | 0.622041 | 0.595003 | 0.561002 | 0.537261 | 0.510295 | 0.475562 | 0 | 0.003309 | 0.351213 | 26,548 | 688 | 81 | 38.587209 | 0.789015 | 0.02294 | 0 | 0.298246 | 0 | 0 | 0.083153 | 0 | 0 | 0 | 0 | 0.001453 | 0 | 0 | null | null | 0.02193 | 0.057018 | null | null | 0.004386 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
82726df588e1a044e8b94d1b874039f7834147f8 | 3,899 | py | Python | tests/test_related.py | toscawidgets/tw2.sqla | 7f53d609555a2e9468c74d83f0c362d9ef27827c | [
"MIT"
] | 2 | 2015-11-05T14:31:22.000Z | 2016-05-24T22:13:26.000Z | tests/test_related.py | toscawidgets/tw2.sqla | 7f53d609555a2e9468c74d83f0c362d9ef27827c | [
"MIT"
] | null | null | null | tests/test_related.py | toscawidgets/tw2.sqla | 7f53d609555a2e9468c74d83f0c362d9ef27827c | [
"MIT"
] | null | null | null | import tw2.core as twc, tw2.sqla as tws, sqlalchemy as sa
import testapi
class BaseObject(object):
""" Contains all tests to be run over Elixir and sqlalchemy-declarative """
def setUp(self):
raise NotImplementedError, "Must be subclassed."
def test_null(self):
vld = tws.RelatedValidator(s... | 29.992308 | 126 | 0.593486 | 448 | 3,899 | 5.069196 | 0.261161 | 0.035227 | 0.033906 | 0.044033 | 0.380889 | 0.336416 | 0.250991 | 0.202114 | 0.178776 | 0.178776 | 0 | 0.019715 | 0.297512 | 3,899 | 129 | 127 | 30.224806 | 0.80942 | 0.011028 | 0 | 0.359223 | 0 | 0 | 0.067761 | 0 | 0 | 0 | 0 | 0 | 0.145631 | 0 | null | null | 0.048544 | 0.058252 | 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 |
8272d0596c51906cf4fd47e6bb910ac1e969bc68 | 1,720 | py | Python | DL-HW1-KNN-classifier/knn.py | ShounakNR/DeepLearningECE579 | 329179be31008f45a3d258e13ed9f20ca68d6547 | [
"MIT"
] | null | null | null | DL-HW1-KNN-classifier/knn.py | ShounakNR/DeepLearningECE579 | 329179be31008f45a3d258e13ed9f20ca68d6547 | [
"MIT"
] | null | null | null | DL-HW1-KNN-classifier/knn.py | ShounakNR/DeepLearningECE579 | 329179be31008f45a3d258e13ed9f20ca68d6547 | [
"MIT"
] | null | null | null | import math
import numpy as np
from download_mnist import load
import operator
import time
# classify using kNN
# x_train = np.load('../x_train.npy')
# y_train = np.load('../y_train.npy')
# x_test = np.load('../x_test.npy')
# y_test = np.load('../y_test.npy')
x_train, y_train, x_test, y_test = load()
x... | 30.175439 | 73 | 0.565116 | 240 | 1,720 | 3.8875 | 0.3 | 0.051447 | 0.019293 | 0.03537 | 0.038585 | 0.038585 | 0 | 0 | 0 | 0 | 0 | 0.025463 | 0.246512 | 1,720 | 56 | 74 | 30.714286 | 0.694444 | 0.165116 | 0 | 0.058824 | 0 | 0 | 0.065882 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.029412 | false | 0 | 0.147059 | 0 | 0.205882 | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
82738d3dd720b43db28384c9c4b79ae7a831a4e1 | 1,448 | py | Python | djnic/dominios/management/commands/import_new_domains.py | avdata99/nic | 70399bd78fd2b4b496d338e7959867ad12cdf477 | [
"MIT"
] | 8 | 2021-05-01T13:03:22.000Z | 2021-12-17T21:50:04.000Z | djnic/dominios/management/commands/import_new_domains.py | avdata99/nic | 70399bd78fd2b4b496d338e7959867ad12cdf477 | [
"MIT"
] | 16 | 2020-11-20T23:18:22.000Z | 2021-04-08T20:09:35.000Z | djnic/dominios/management/commands/import_new_domains.py | OpenDataCordoba/nic | f9528856e13d106bdfb476cab1236bc5b8a92183 | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
import logging
from time import sleep
from django.core.management.base import BaseCommand, CommandError
from django.db.models import Q
from django.utils import timezone
from whoare.whoare import WhoAre
from dominios.models import Dominio, PreDominio
from zonas.models import Zona... | 33.674419 | 120 | 0.624309 | 183 | 1,448 | 4.89071 | 0.540984 | 0.03352 | 0.037989 | 0.042458 | 0.071508 | 0.071508 | 0.071508 | 0 | 0 | 0 | 0 | 0.007505 | 0.263812 | 1,448 | 43 | 121 | 33.674419 | 0.832083 | 0.020718 | 0 | 0 | 0 | 0 | 0.150318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8273d27897215f1513c554ee2a3f1403aaa19c4e | 30,496 | py | Python | configurabledashboard/forms.py | meetdatastory/Activity-CE | 2692e591f08cea7c869c045577b3d9e20d3ed335 | [
"Apache-2.0"
] | null | null | null | configurabledashboard/forms.py | meetdatastory/Activity-CE | 2692e591f08cea7c869c045577b3d9e20d3ed335 | [
"Apache-2.0"
] | null | null | null | configurabledashboard/forms.py | meetdatastory/Activity-CE | 2692e591f08cea7c869c045577b3d9e20d3ed335 | [
"Apache-2.0"
] | null | null | null | from crispy_forms.helper import FormHelper
from crispy_forms.layout import *
from crispy_forms.bootstrap import *
from crispy_forms.layout import Layout, Submit, Reset
from django import forms
from .models import CustomDashboard, DashboardTheme, DashboardComponent, ComponentDataSource
class CustomDashboardCreateForm(... | 50.911519 | 205 | 0.428712 | 2,465 | 30,496 | 5.160649 | 0.09858 | 0.110054 | 0.059429 | 0.03679 | 0.691141 | 0.646097 | 0.611037 | 0.582659 | 0.558368 | 0.548856 | 0 | 0.003337 | 0.46934 | 30,496 | 599 | 206 | 50.911519 | 0.782735 | 0.042038 | 0 | 0.686747 | 0 | 0.038153 | 0.620095 | 0.074398 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034137 | false | 0 | 0.012048 | 0 | 0.106426 | 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 |
8275d9a74c48e7fee66f5264f9d4f13cd6372c57 | 4,143 | py | Python | api/dc/network/views.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 97 | 2016-11-15T14:44:23.000Z | 2022-03-13T18:09:15.000Z | api/dc/network/views.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 334 | 2016-11-17T19:56:57.000Z | 2022-03-18T10:45:53.000Z | api/dc/network/views.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 33 | 2017-01-02T16:04:13.000Z | 2022-02-07T19:20:24.000Z | from api.decorators import api_view, request_data
from api.permissions import IsAdmin, IsSuperAdminOrReadOnly
from api.dc.network.api_views import DcNetworkView
from api.network.ip.api_views import NetworkIPView
__all__ = ('dc_network_list', 'dc_network', 'dc_network_ip_list')
@api_view(('GET',))
@request_data(permi... | 32.880952 | 104 | 0.595462 | 477 | 4,143 | 5.111111 | 0.180294 | 0.062756 | 0.045119 | 0.049221 | 0.693191 | 0.665299 | 0.663659 | 0.620591 | 0.59475 | 0.538966 | 0 | 0.016826 | 0.268405 | 4,143 | 125 | 105 | 33.144 | 0.787529 | 0.695148 | 0 | 0.294118 | 0 | 0 | 0.069196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.235294 | 0 | 0.588235 | 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 |
8277113fbf25dd7dfa1db6e2922202e87cc7e9e5 | 2,657 | py | Python | env/visualize_agent.py | WilsonWangTHU/neural_graph_evolution | 9142b7f1c32c476aa44c83da38d3f0bacc276d73 | [
"MIT"
] | 33 | 2019-06-06T13:59:51.000Z | 2022-03-07T10:36:42.000Z | env/visualize_agent.py | WilsonWangTHU/neural_graph_evolution | 9142b7f1c32c476aa44c83da38d3f0bacc276d73 | [
"MIT"
] | 8 | 2019-07-09T16:58:28.000Z | 2022-02-10T00:27:39.000Z | env/visualize_agent.py | WilsonWangTHU/neural_graph_evolution | 9142b7f1c32c476aa44c83da38d3f0bacc276d73 | [
"MIT"
] | 12 | 2019-06-07T10:43:12.000Z | 2022-03-09T13:47:01.000Z | # -----------------------------------------------------------------------------
# @author:
# Tingwu Wang
# @brief:
# generate the videos into the same directory
# -----------------------------------------------------------------------------
import env_wrapper
import numpy as np
import argparse
import gl... | 30.193182 | 80 | 0.507339 | 296 | 2,657 | 4.418919 | 0.422297 | 0.036697 | 0.069572 | 0.033639 | 0.168196 | 0.168196 | 0.168196 | 0.168196 | 0.065749 | 0.065749 | 0 | 0.014795 | 0.313135 | 2,657 | 87 | 81 | 30.54023 | 0.701918 | 0.14904 | 0 | 0.066667 | 1 | 0 | 0.063948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
82779156f60abb7de9db164c20fc32e1fa246595 | 388 | py | Python | Python-3/basic_examples/python_breakpoint_examples.py | ghiloufibelgacem/jornaldev | b9b27f9f7da595892520314b4ed1d2675556310a | [
"MIT"
] | 1,139 | 2018-05-09T11:54:36.000Z | 2022-03-31T06:52:50.000Z | Python-3/basic_examples/python_breakpoint_examples.py | iamharshverma/journaldev | af24242a1ac1b7dc3e8e2404ec916b77ccf5044a | [
"MIT"
] | 56 | 2018-06-20T03:52:53.000Z | 2022-02-09T22:57:41.000Z | Python-3/basic_examples/python_breakpoint_examples.py | iamharshverma/journaldev | af24242a1ac1b7dc3e8e2404ec916b77ccf5044a | [
"MIT"
] | 2,058 | 2018-05-09T09:32:17.000Z | 2022-03-29T13:19:42.000Z | x = 10
y = 'Hi'
z = 'Hello'
print(y)
# breakpoint() is introduced in Python 3.7
breakpoint()
print(z)
# Execution Steps
# Default:
# $python3.7 python_breakpoint_examples.py
# Disable Breakpoint:
# $PYTHONBREAKPOINT=0 python3.7 python_breakpoint_examples.py
# Using Other Debugger (for example web-pdb):
# $PYTHONB... | 18.47619 | 77 | 0.760309 | 55 | 388 | 5.218182 | 0.581818 | 0.083624 | 0.146341 | 0.250871 | 0.355401 | 0.355401 | 0 | 0 | 0 | 0 | 0 | 0.032641 | 0.131443 | 388 | 20 | 78 | 19.4 | 0.818991 | 0.78866 | 0 | 0 | 0 | 0 | 0.09589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
82780b27f7c650cadcd00fca96dd50cb169a9e66 | 2,180 | py | Python | currencies/south_migrations/0001_initial.py | myblup/django-currencies | 43e64dab7cde424ac717a5861b7917b9133fe4d2 | [
"BSD-3-Clause"
] | null | null | null | currencies/south_migrations/0001_initial.py | myblup/django-currencies | 43e64dab7cde424ac717a5861b7917b9133fe4d2 | [
"BSD-3-Clause"
] | null | null | null | currencies/south_migrations/0001_initial.py | myblup/django-currencies | 43e64dab7cde424ac717a5861b7917b9133fe4d2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Currency'
db.create_table(u'currencies_currency', (
... | 49.545455 | 131 | 0.605046 | 253 | 2,180 | 5.106719 | 0.272727 | 0.105263 | 0.173375 | 0.247678 | 0.639319 | 0.639319 | 0.630031 | 0.595975 | 0.493808 | 0.178019 | 0 | 0.0125 | 0.192661 | 2,180 | 44 | 132 | 49.545455 | 0.721591 | 0.032569 | 0 | 0 | 0 | 0 | 0.428775 | 0.262108 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.121212 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8279a064b89203e1fdff3d3213044e4b0f5fb100 | 2,224 | py | Python | deps/lshbox/python/linux/libpylshbox-example.py | xuzhezhaozhao/fastText_dnn | 3c6f56b5dce49982777e9d5707da3af0f4d96af6 | [
"BSD-3-Clause"
] | 1 | 2020-12-21T14:56:52.000Z | 2020-12-21T14:56:52.000Z | deps/lshbox/python/linux/libpylshbox-example.py | xuzhezhaozhao/fastText_dnn | 3c6f56b5dce49982777e9d5707da3af0f4d96af6 | [
"BSD-3-Clause"
] | null | null | null | deps/lshbox/python/linux/libpylshbox-example.py | xuzhezhaozhao/fastText_dnn | 3c6f56b5dce49982777e9d5707da3af0f4d96af6 | [
"BSD-3-Clause"
] | 1 | 2020-12-21T14:57:09.000Z | 2020-12-21T14:57:09.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# libpylshbox_example.py
import libpylshbox
import numpy as np
print 'prepare test data'
float_mat = np.random.randn(100000, 192)
float_query = float_mat[0]
unsigned_mat = np.uint32(float_mat * 5)
unsigned_query = unsigned_mat[0]
print ''
print 'Test rbsLsh'
rbs_mat = libpy... | 33.19403 | 60 | 0.691097 | 373 | 2,224 | 3.986595 | 0.174263 | 0.04842 | 0.065905 | 0.061197 | 0.615333 | 0.615333 | 0.615333 | 0.615333 | 0.502354 | 0.502354 | 0 | 0.054348 | 0.131295 | 2,224 | 66 | 61 | 33.69697 | 0.715321 | 0.029227 | 0 | 0.444444 | 0 | 0 | 0.064935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031746 | null | null | 0.349206 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
827c7235ce4519a3c3ede6581b70eb70dc42a2a6 | 828 | py | Python | src/breakpad/src/tools/gyp/test/hello/gyptest-regyp.py | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 263 | 2015-01-04T16:39:18.000Z | 2022-01-05T17:52:38.000Z | src/breakpad/src/tools/gyp/test/hello/gyptest-regyp.py | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 7 | 2015-01-20T14:28:12.000Z | 2017-01-18T17:21:44.000Z | src/breakpad/src/tools/gyp/test/hello/gyptest-regyp.py | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 105 | 2015-01-11T11:45:12.000Z | 2022-02-22T07:26:36.000Z | #!/usr/bin/env python
# Copyright (c) 2009 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies that Makefiles get rebuilt when a source gyp file changes.
"""
import TestGyp
# Regenerating build files when a gyp file chan... | 25.090909 | 78 | 0.740338 | 132 | 828 | 4.598485 | 0.545455 | 0.057661 | 0.079077 | 0.056013 | 0.214168 | 0.214168 | 0.214168 | 0.214168 | 0.214168 | 0.214168 | 0 | 0.007003 | 0.137681 | 828 | 32 | 79 | 25.875 | 0.843137 | 0.536232 | 0 | 0.2 | 0 | 0 | 0.238482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.1 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
82832e4080523f2b0f3e780e0f70f013436dca66 | 1,014 | py | Python | stix/core/ttps.py | threatstream/stix11 | 267dbf390abc0897c691e256396cd1888f423494 | [
"BSD-3-Clause"
] | 1 | 2019-07-25T17:19:48.000Z | 2019-07-25T17:19:48.000Z | stix/core/ttps.py | threatstream/stix11 | 267dbf390abc0897c691e256396cd1888f423494 | [
"BSD-3-Clause"
] | 1 | 2020-04-15T20:45:55.000Z | 2020-04-15T20:45:55.000Z | stix/core/ttps.py | threatstream/stix11 | 267dbf390abc0897c691e256396cd1888f423494 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2015, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
# stdlib
from functools import partial
# mixbox
from mixbox import entities
from mixbox import fields
# stix
import stix
from stix import utils
from stix.ttp import TTP
from stix.common.kill_chains import KillChai... | 23.581395 | 65 | 0.714004 | 129 | 1,014 | 5.434109 | 0.465116 | 0.057061 | 0.045649 | 0.065621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.201183 | 1,014 | 42 | 66 | 24.142857 | 0.859259 | 0.137081 | 0 | 0 | 0 | 0 | 0.052995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.346154 | 0 | 0.653846 | 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 |
829805180626413a3ee5c712fa875a5025890833 | 383 | py | Python | projects/migrations/0080_projectdeadlines_ordering.py | SuviVappula/kaavapino | 0e3687c94afff10527c9bee9627fc30bd2dfab4f | [
"MIT"
] | 3 | 2019-02-07T14:47:00.000Z | 2022-02-15T14:09:38.000Z | projects/migrations/0080_projectdeadlines_ordering.py | SuviVappula/kaavapino | 0e3687c94afff10527c9bee9627fc30bd2dfab4f | [
"MIT"
] | 74 | 2017-12-13T09:18:04.000Z | 2022-03-11T23:29:59.000Z | projects/migrations/0080_projectdeadlines_ordering.py | SuviVappula/kaavapino | 0e3687c94afff10527c9bee9627fc30bd2dfab4f | [
"MIT"
] | 8 | 2017-12-13T09:31:20.000Z | 2022-02-15T13:10:34.000Z | # Generated by Django 2.2.13 on 2020-11-18 06:22
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('projects', '0079_projectdeadline_unique_constraint'),
]
operations = [
migrations.AlterModelOptions(
name='projectdeadline',
... | 21.277778 | 63 | 0.626632 | 36 | 383 | 6.527778 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 0.255875 | 383 | 17 | 64 | 22.529412 | 0.754386 | 0.120104 | 0 | 0 | 1 | 0 | 0.250746 | 0.113433 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
829b4630cdc008c6b07532c194ef912700360572 | 2,587 | py | Python | tests/conftest.py | tum-ewk/d2ix_public | dffcb474f51ccdc03a339e306b61b88c224a332d | [
"Apache-2.0"
] | 2 | 2019-12-16T20:48:10.000Z | 2020-11-24T03:20:36.000Z | tests/conftest.py | tum-ewk/d2ix_public | dffcb474f51ccdc03a339e306b61b88c224a332d | [
"Apache-2.0"
] | 4 | 2019-04-15T08:03:23.000Z | 2019-04-15T08:05:17.000Z | tests/conftest.py | tum-ewk/d2ix_public | dffcb474f51ccdc03a339e306b61b88c224a332d | [
"Apache-2.0"
] | 8 | 2019-03-13T06:51:22.000Z | 2020-08-31T11:04:56.000Z | import logging
from contextlib import contextmanager
from typing import NamedTuple
import ixmp
import message_ix
from d2ix.core import MessageInterface
logger = logging.getLogger(__name__)
RUN_CONFIG = '../config/run_config_server.yml'
class TechnologyOut(NamedTuple):
technology: str
commodity: str
le... | 28.428571 | 118 | 0.682257 | 335 | 2,587 | 4.985075 | 0.283582 | 0.028743 | 0.035928 | 0.026347 | 0.154491 | 0.070659 | 0.070659 | 0.070659 | 0.070659 | 0 | 0 | 0.000498 | 0.223425 | 2,587 | 90 | 119 | 28.744444 | 0.830762 | 0 | 0 | 0.222222 | 0 | 0 | 0.045999 | 0.011983 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.083333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
829ef40c17e8aa1cf644650db6e7ec60fb8576c8 | 800 | py | Python | ListaExercicios2/ex3.py | GabrielSouzaGit/PythonStudies | 49ec26d4ae45999695ab32f8e1f27587adb5ca4b | [
"MIT"
] | null | null | null | ListaExercicios2/ex3.py | GabrielSouzaGit/PythonStudies | 49ec26d4ae45999695ab32f8e1f27587adb5ca4b | [
"MIT"
] | null | null | null | ListaExercicios2/ex3.py | GabrielSouzaGit/PythonStudies | 49ec26d4ae45999695ab32f8e1f27587adb5ca4b | [
"MIT"
] | null | null | null | '''Faça um programa para calcular e exibir a valor do imposto de ICMS de um produto, conforme a classificação do tipo de produto e do valor de custo do mesmo digitado pelo usuário (incluindo centavos – cuidado com o uso do tipo de dados correto).¶
Classificação do Produto Porcentagem de ICMS
Cesta básica isento
Eletrôn... | 38.095238 | 247 | 0.7025 | 130 | 800 | 4.338462 | 0.461538 | 0.06383 | 0.069149 | 0.079787 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044343 | 0.1825 | 800 | 21 | 248 | 38.095238 | 0.814985 | 0.48375 | 0 | 0 | 0 | 0 | 0.52765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
82b1a81b74ba537095b00a9c82eaed1595c14e4a | 3,945 | py | Python | forge/main.py | vladiibine/bots | 795e4a67c748b47d8a55cbc31a57f15314de41e5 | [
"MIT"
] | null | null | null | forge/main.py | vladiibine/bots | 795e4a67c748b47d8a55cbc31a57f15314de41e5 | [
"MIT"
] | null | null | null | forge/main.py | vladiibine/bots | 795e4a67c748b47d8a55cbc31a57f15314de41e5 | [
"MIT"
] | null | null | null | import argparse
from collections import defaultdict
import base64
import requests
import uncurl
from vwh_importable_data import POST_RESP_BODY_2, POST_RESP_HEADERS_2, OPTIONS_RESP_BODY_2, \
POST_RESP_BODY_1, OPTIONS_RESP_HEADERS_2, POST_RESP_HEADERS_1, OPTIONS_RESP_BODY_1, \
OPTIONS_RESP_HEADERS_1, POST_REQ_2, OPTI... | 30.581395 | 97 | 0.777947 | 599 | 3,945 | 4.751252 | 0.255426 | 0.044975 | 0.028461 | 0.022839 | 0.289881 | 0.258609 | 0.222066 | 0.158468 | 0.115601 | 0.057625 | 0 | 0.023344 | 0.131305 | 3,945 | 128 | 98 | 30.820313 | 0.80712 | 0.190368 | 0 | 0.041667 | 0 | 0 | 0.132105 | 0.01175 | 0 | 0 | 0 | 0.007813 | 0 | 1 | 0.083333 | false | 0.055556 | 0.083333 | 0 | 0.222222 | 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 |
82b982b8cf91c18a9aded0eafbc3e6948c330215 | 5,081 | py | Python | textclf/config/ml_model.py | lswjkllc/textclf | e4e7504989dd5d39c9376eafda1abc580c053913 | [
"MIT"
] | 146 | 2020-02-20T02:29:55.000Z | 2022-01-21T09:49:40.000Z | textclf/config/ml_model.py | lswjkllc/textclf | e4e7504989dd5d39c9376eafda1abc580c053913 | [
"MIT"
] | 4 | 2020-03-08T03:24:16.000Z | 2021-03-26T05:34:09.000Z | textclf/config/ml_model.py | lswjkllc/textclf | e4e7504989dd5d39c9376eafda1abc580c053913 | [
"MIT"
] | 16 | 2020-02-26T04:45:40.000Z | 2021-05-08T03:52:38.000Z | """各种模型的设置"""
from typing import Union, Optional, Dict
from .base import ConfigBase
class MLModelConfig(ConfigBase):
pass
class LogisticRegressionConfig(MLModelConfig):
"""参考:https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html"""
# penalty{‘l1’, ‘l2’, ‘elastic... | 44.964602 | 119 | 0.711868 | 745 | 5,081 | 4.797315 | 0.348993 | 0.009793 | 0.04113 | 0.033576 | 0.323447 | 0.316732 | 0.316732 | 0.316732 | 0.316732 | 0.316732 | 0 | 0.014507 | 0.213147 | 5,081 | 112 | 120 | 45.366071 | 0.87944 | 0.744145 | 0 | 0.25 | 0 | 0 | 0.020968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.03125 | 0.0625 | 0 | 0.96875 | 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 |
82beef42d4a9f3d3f6c4442ac14e259641104a74 | 551 | py | Python | covid/migrations/0012_service_consent.py | vivekkhimani/LifeNest | 0ea53eb900e7b3362ae7f058525446a6bdcc413b | [
"MIT"
] | 2 | 2021-12-12T08:25:21.000Z | 2022-01-27T09:27:09.000Z | covid/migrations/0012_service_consent.py | vivekkhimani/LifeNest | 0ea53eb900e7b3362ae7f058525446a6bdcc413b | [
"MIT"
] | null | null | null | covid/migrations/0012_service_consent.py | vivekkhimani/LifeNest | 0ea53eb900e7b3362ae7f058525446a6bdcc413b | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-05-23 19:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('covid', '0011_auto_20210522_2141'),
]
operations = [
migrations.AddField(
model_name='service',
name='consent',
... | 29 | 217 | 0.656987 | 70 | 551 | 5.1 | 0.842857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075061 | 0.250454 | 551 | 18 | 218 | 30.611111 | 0.789346 | 0.08167 | 0 | 0 | 1 | 0.083333 | 0.380952 | 0.045635 | 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 |
82c3cd861fc878b339965bf342d564ee8c7b11f9 | 6,371 | py | Python | src/ProcessDefaulters.py | brennash/IrishTaxDefaulters | c5fad9111fc7f608ce0d2cf8c0af5b11b9b28442 | [
"Apache-2.0"
] | null | null | null | src/ProcessDefaulters.py | brennash/IrishTaxDefaulters | c5fad9111fc7f608ce0d2cf8c0af5b11b9b28442 | [
"Apache-2.0"
] | 1 | 2017-08-07T00:00:52.000Z | 2017-08-07T00:00:52.000Z | src/ProcessDefaulters.py | brennash/IrishTaxDefaulters | c5fad9111fc7f608ce0d2cf8c0af5b11b9b28442 | [
"Apache-2.0"
] | null | null | null | #################################################
# #
# This class takes in a text file input of the #
# tax defaulters list, and parses it to extract #
# individual defaulter information such as #
# name, address and fine amount. #
# #
# Author: Shane Brennan #
# Date: 20171216 ... | 30.051887 | 101 | 0.665202 | 791 | 6,371 | 5.333755 | 0.333755 | 0.028443 | 0.008533 | 0.012325 | 0.180849 | 0.167101 | 0.151932 | 0.132496 | 0.111638 | 0.08675 | 0 | 0.008032 | 0.218333 | 6,371 | 211 | 102 | 30.194313 | 0.839157 | 0.067964 | 0 | 0.134328 | 0 | 0 | 0.122315 | 0.009722 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007463 | 0.104478 | null | null | 0.052239 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
82c8e78514650c55a9d4d5356a8c5a898939b20a | 2,674 | py | Python | gocardless_pro/services/payouts_service.py | gocardless/gocardless-pro-python | e6763fba5326ff56f4ba417ddd7828c03e059be5 | [
"MIT"
] | 30 | 2015-07-08T21:10:10.000Z | 2022-02-17T10:08:55.000Z | gocardless_pro/services/payouts_service.py | gocardless/gocardless-pro-python | e6763fba5326ff56f4ba417ddd7828c03e059be5 | [
"MIT"
] | 21 | 2015-12-14T02:24:52.000Z | 2022-02-05T15:56:00.000Z | gocardless_pro/services/payouts_service.py | gocardless/gocardless-pro-python | e6763fba5326ff56f4ba417ddd7828c03e059be5 | [
"MIT"
] | 19 | 2016-02-10T15:57:42.000Z | 2022-02-05T10:21:05.000Z | # WARNING: Do not edit by hand, this file was generated by Crank:
#
# https://github.com/gocardless/crank
#
from . import base_service
from .. import resources
from ..paginator import Paginator
from .. import errors
class PayoutsService(base_service.BaseService):
"""Service class that provides access to the pay... | 28.147368 | 79 | 0.577786 | 276 | 2,674 | 5.5 | 0.376812 | 0.02635 | 0.033597 | 0.041502 | 0.457181 | 0.457181 | 0.413702 | 0.369565 | 0.369565 | 0.369565 | 0 | 0 | 0.333583 | 2,674 | 94 | 80 | 28.446809 | 0.851852 | 0.36911 | 0 | 0.4375 | 1 | 0 | 0.051806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.46875 | 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 |
82c9bc6525d14a406c82d5f003a38b668c78afcf | 658 | py | Python | test_redis.py | LorenzoMinutolo/GPU_SDR_WEBGUI | 3b04b10c140acdf793fcca60e07c6efb348b27f4 | [
"MIT"
] | null | null | null | test_redis.py | LorenzoMinutolo/GPU_SDR_WEBGUI | 3b04b10c140acdf793fcca60e07c6efb348b27f4 | [
"MIT"
] | null | null | null | test_redis.py | LorenzoMinutolo/GPU_SDR_WEBGUI | 3b04b10c140acdf793fcca60e07c6efb348b27f4 | [
"MIT"
] | null | null | null | import time,os
from tester import counter, measure_handler
from jobs import Contextual_Job_processor
from multiprocessing import Process
manager = Contextual_Job_processor()
handler = Process(target = measure_handler, args = [manager.result_queue])
handler.daemon = True
handler.start()
for i in range(4):
manager.e... | 32.9 | 115 | 0.694529 | 94 | 658 | 4.723404 | 0.553191 | 0.063063 | 0.099099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.148936 | 658 | 19 | 116 | 34.631579 | 0.785714 | 0.177812 | 0 | 0 | 0 | 0 | 0.046382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.25 | 0 | 0.25 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
82cb2e7993e6f73eb36654ff791c3bec9d3765c8 | 11,137 | py | Python | Modules/Biophotonics/python/iMC/scripts/ipcai2016/script_analyze_ipcai_in_vivo_liver.py | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Modules/Biophotonics/python/iMC/scripts/ipcai2016/script_analyze_ipcai_in_vivo_liver.py | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Modules/Biophotonics/python/iMC/scripts/ipcai2016/script_analyze_ipcai_in_vivo_liver.py | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 14 11:09:18 2015
@author: wirkert
"""
import Image
import ImageEnhance
import logging
import datetime
import SimpleITK as sitk
import matplotlib
from msi.io.nrrdreader import NrrdReader
import msi.normalize as norm
from regression.estimation import e... | 37.752542 | 83 | 0.538655 | 1,295 | 11,137 | 4.430888 | 0.249421 | 0.02039 | 0.015685 | 0.018822 | 0.331997 | 0.255141 | 0.231962 | 0.222029 | 0.199547 | 0.199547 | 0 | 0.031569 | 0.348658 | 11,137 | 294 | 84 | 37.880952 | 0.759443 | 0.065457 | 0 | 0.259434 | 0 | 0 | 0.086384 | 0.010673 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056604 | null | null | 0.023585 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
82d255d550903c39c9f43c71a22a0050a336b41b | 621 | py | Python | Seeder/publishers/urls.py | WebarchivCZ/Seeder | 1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8 | [
"MIT"
] | 8 | 2017-08-16T19:18:57.000Z | 2022-01-24T10:08:19.000Z | Seeder/publishers/urls.py | WebarchivCZ/Seeder | 1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8 | [
"MIT"
] | 242 | 2017-02-03T19:15:52.000Z | 2022-03-25T08:02:52.000Z | Seeder/publishers/urls.py | WebarchivCZ/Seeder | 1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8 | [
"MIT"
] | 2 | 2019-03-06T12:36:29.000Z | 2019-07-08T12:52:20.000Z | from django.urls import path
from .views import *
urlpatterns = [
path('add', AddPublisher.as_view(), name='add'),
path('<int:pk>/detail', Detail.as_view(), name='detail'),
path('<int:pk>/edit', Edit.as_view(), name='edit'),
path('<int:pk>/history', History.as_view(), name='history'),
path('', List... | 41.4 | 79 | 0.671498 | 75 | 621 | 5.413333 | 0.333333 | 0.118227 | 0.197044 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125604 | 621 | 14 | 80 | 44.357143 | 0.747698 | 0 | 0 | 0 | 0 | 0 | 0.2657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
82d2abde8a9c5a31bc659522790b7e6b36779e94 | 8,500 | py | Python | social_auth/tests/odnoklassniki.py | radicalgraphics/django-social-auth | 86aa7177a4cc4a3f3d23b6d11e93fd6dda1b653a | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 11 | 2015-03-31T07:25:12.000Z | 2021-04-02T02:42:27.000Z | social_auth/tests/odnoklassniki.py | sk7/django-social-auth | edb0d040d5cb22d06281cca8e639e6b6f417c1c6 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 8 | 2020-03-24T17:11:49.000Z | 2022-01-13T01:18:11.000Z | social_auth/tests/odnoklassniki.py | sk7/django-social-auth | edb0d040d5cb22d06281cca8e639e6b6f417c1c6 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 3 | 2015-06-26T07:35:23.000Z | 2021-05-03T15:46:02.000Z | # -*- coding:utf-8 -*-
from __future__ import unicode_literals
from unittest import skipUnless
from django.conf import settings
from django.core.urlresolvers import reverse
from django.test.testcases import LiveServerTestCase, SimpleTestCase
from django.test.utils import override_settings
from selenium.webdriver.firefo... | 54.83871 | 192 | 0.724824 | 1,044 | 8,500 | 5.637931 | 0.207854 | 0.061162 | 0.053007 | 0.050799 | 0.562861 | 0.473327 | 0.428135 | 0.383792 | 0.329086 | 0.319232 | 0 | 0.013133 | 0.175882 | 8,500 | 154 | 193 | 55.194805 | 0.827123 | 0.036 | 0 | 0.290076 | 0 | 0.007634 | 0.212488 | 0.085166 | 0 | 0 | 0 | 0 | 0.083969 | 1 | 0.114504 | false | 0.091603 | 0.083969 | 0 | 0.244275 | 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 |
82d5b440ccf4b442aa1b010b8e890ef4c449be20 | 1,389 | py | Python | star_wars_test/views.py | iXioN/sw-csv | 7dd2723ab998981d4ce2b2012e9372903d538bd5 | [
"Unlicense"
] | null | null | null | star_wars_test/views.py | iXioN/sw-csv | 7dd2723ab998981d4ce2b2012e9372903d538bd5 | [
"Unlicense"
] | null | null | null | star_wars_test/views.py | iXioN/sw-csv | 7dd2723ab998981d4ce2b2012e9372903d538bd5 | [
"Unlicense"
] | null | null | null | from django.apps import apps
from django.http import HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
def explore(request):
peoples_fetch_qs = apps.get_model('star_wars_test', 'PeopleFetch').objects.all().order_by('-fetching_date')
context = {"collections": peoples_fetch_qs}
ret... | 36.552632 | 111 | 0.740101 | 183 | 1,389 | 5.338798 | 0.327869 | 0.056295 | 0.04913 | 0.065507 | 0.282497 | 0.282497 | 0.282497 | 0.282497 | 0.19652 | 0.19652 | 0 | 0.011073 | 0.154788 | 1,389 | 37 | 112 | 37.540541 | 0.821124 | 0.056875 | 0 | 0.142857 | 0 | 0 | 0.14526 | 0 | 0 | 0 | 0 | 0.027027 | 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 | 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 |
82d5c54fcbe368876b966dd6adc2e82c1be34f77 | 2,377 | py | Python | src/cloudwatch_dump/util/richdatetime.py | mluds/cloudwatch-dump | f628c2a4cf5aac3ed17cdfefa8059d79ff4a4a49 | [
"Apache-2.0"
] | 19 | 2015-06-02T15:24:06.000Z | 2021-03-17T16:07:50.000Z | src/cloudwatch_dump/util/richdatetime.py | mluds/cloudwatch-dump | f628c2a4cf5aac3ed17cdfefa8059d79ff4a4a49 | [
"Apache-2.0"
] | 6 | 2015-06-26T03:44:31.000Z | 2019-04-02T11:59:41.000Z | src/cloudwatch_dump/util/richdatetime.py | mluds/cloudwatch-dump | f628c2a4cf5aac3ed17cdfefa8059d79ff4a4a49 | [
"Apache-2.0"
] | 9 | 2015-07-10T20:47:39.000Z | 2021-01-04T15:36:57.000Z | import calendar
from datetime import datetime, timedelta
from dateutil.tz import tzlocal
import pytz
class RichDateTime(datetime):
"""Enriched datetime class."""
def __new__(cls, year, month=None, day=None, hour=0, minute=0, second=0, microsecond=0, tzinfo=None):
if tzinfo is None:
raise ... | 40.288136 | 112 | 0.647455 | 295 | 2,377 | 5.105085 | 0.311864 | 0.063745 | 0.027888 | 0.043825 | 0.13413 | 0.045153 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.250316 | 2,377 | 58 | 113 | 40.982759 | 0.838945 | 0.1809 | 0 | 0.075 | 0 | 0 | 0.064076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.525 | 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 |
82d9fd2a593eaf37a8ba45947f6a8b759cfeadcf | 3,099 | py | Python | fppy/model/example.py | uit-cosmo/filtered-point-process | 2d681b9a6a09dcfa3095f5917bf062697540fb49 | [
"MIT"
] | 1 | 2022-02-09T08:57:08.000Z | 2022-02-09T08:57:08.000Z | fppy/model/example.py | uit-cosmo/filtered-point-process | 2d681b9a6a09dcfa3095f5917bf062697540fb49 | [
"MIT"
] | 1 | 2022-01-26T11:43:55.000Z | 2022-01-26T11:43:55.000Z | fppy/model/example.py | uit-cosmo/fppy | 2d681b9a6a09dcfa3095f5917bf062697540fb49 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import fppy.model.forcing as frc
import fppy.model.fpp_model as fpp
import fppy.model.pulse_shape as ps
# Simplest case, using defaults: exponential pulse shape, exponentially distributed amplitudes, constant duration times.
model = fpp.FPPModel(gamma=0.1, total_dur... | 31.948454 | 120 | 0.748951 | 459 | 3,099 | 4.930283 | 0.324619 | 0.021211 | 0.035351 | 0.046399 | 0.253204 | 0.21034 | 0.199735 | 0.199735 | 0.199735 | 0.199735 | 0 | 0.021448 | 0.15747 | 3,099 | 96 | 121 | 32.28125 | 0.84527 | 0.296547 | 0 | 0.403509 | 0 | 0 | 0.003688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0.052632 | 0.087719 | 0 | 0.192982 | 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 |
82e6a67c957d10980631ea07857d2c8c2197fe92 | 1,344 | py | Python | src/hg/makeDb/genbank/src/lib/py/genbank/fileOps.py | andypohl/kent | af7a004c8f3fa909cd8c2cfc2e5bea60e3421cd1 | [
"MIT"
] | 171 | 2015-04-22T15:16:02.000Z | 2022-03-18T20:21:53.000Z | src/hg/makeDb/genbank/src/lib/py/genbank/fileOps.py | andypohl/kent | af7a004c8f3fa909cd8c2cfc2e5bea60e3421cd1 | [
"MIT"
] | 60 | 2016-10-03T15:15:06.000Z | 2022-03-30T15:21:52.000Z | src/hg/makeDb/genbank/src/lib/py/genbank/fileOps.py | andypohl/kent | af7a004c8f3fa909cd8c2cfc2e5bea60e3421cd1 | [
"MIT"
] | 80 | 2015-04-16T10:39:48.000Z | 2022-03-29T16:36:30.000Z | """Miscellaneous file operations"""
import os,os.path,errno
def ensureDir(dir):
"""Ensure that a directory exists, creating it (and parents) if needed."""
try:
os.makedirs(dir)
except OSError, e:
if e.errno != errno.EEXIST:
raise e
def ensureFileDir(fname):
"""Ensure that... | 24.436364 | 88 | 0.578125 | 196 | 1,344 | 3.964286 | 0.387755 | 0.081081 | 0.05148 | 0.048906 | 0.494208 | 0.494208 | 0.440154 | 0.352638 | 0.352638 | 0.280566 | 0 | 0.001062 | 0.299107 | 1,344 | 54 | 89 | 24.888889 | 0.823779 | 0 | 0 | 0.435897 | 0 | 0 | 0.094319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025641 | 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 |
7d550cbc5200421a5a0bf9cfed316b872850dffd | 2,568 | py | Python | book/code/nba - project4 part2 get image for every player.py | marcus-pham/test | bcbc7c34a672ae6c7e9bdc811934c4003134ae0d | [
"MIT"
] | null | null | null | book/code/nba - project4 part2 get image for every player.py | marcus-pham/test | bcbc7c34a672ae6c7e9bdc811934c4003134ae0d | [
"MIT"
] | null | null | null | book/code/nba - project4 part2 get image for every player.py | marcus-pham/test | bcbc7c34a672ae6c7e9bdc811934c4003134ae0d | [
"MIT"
] | null | null | null | from selenium import webdriver
from bs4 import BeautifulSoup
import os
import requests
import time
class Player():
"""docstring for Player"""
def __init__(self):
self.name = ""
self.link = ""
self.Height = ""
self.Weight = ""
self.Born = ""
def get_player_list():
# create driver
driver = webdriver... | 17.469388 | 96 | 0.678738 | 378 | 2,568 | 4.460317 | 0.256614 | 0.065243 | 0.05694 | 0.060498 | 0.393238 | 0.331554 | 0.265718 | 0.188612 | 0.188612 | 0.143535 | 0 | 0.007561 | 0.176012 | 2,568 | 146 | 97 | 17.589041 | 0.789225 | 0.114875 | 0 | 0.202899 | 0 | 0 | 0.136649 | 0.05914 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072464 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7d5b27e0194252b97426d0bf7e71129c7d96c003 | 18,798 | py | Python | Tagall1.py | HieTocih/Tag | c59295c106f4910f9f60a9d8e1235efd12208967 | [
"Apache-2.0"
] | null | null | null | Tagall1.py | HieTocih/Tag | c59295c106f4910f9f60a9d8e1235efd12208967 | [
"Apache-2.0"
] | null | null | null | Tagall1.py | HieTocih/Tag | c59295c106f4910f9f60a9d8e1235efd12208967 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import LINETCR
from LINETCR.lib.curve.ttypes import *
from datetime import datetime
import time,random,sys,json,codecs,threading,glob,requests,urllib,urllib2,urllib3
from bs4 import BeautifulSoup
from urllib import urlopen
from gtts import gTTS
from googletrans import Translator
cl = LINETCR.L... | 35.202247 | 271 | 0.441856 | 2,230 | 18,798 | 3.925561 | 0.28565 | 0.019991 | 0.008225 | 0.023989 | 0.243317 | 0.184944 | 0.16838 | 0.15867 | 0.094471 | 0.066255 | 0 | 0.044661 | 0.354399 | 18,798 | 533 | 272 | 35.268293 | 0.634806 | 0 | 0 | 0.20316 | 0 | 0.004515 | 0.230625 | 0.072724 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013544 | 0.018059 | null | null | 0.022573 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7d61cf13671a591545a18414b526ded3fe66e42e | 491 | py | Python | labs-python/lab7/exe1.py | xR86/ml-stuff | 2a1b79408897171b78032ff2531ab6f8b18be6c4 | [
"MIT"
] | 3 | 2018-12-11T03:03:15.000Z | 2020-02-11T19:38:07.000Z | labs-python/lab7/exe1.py | xR86/ml-stuff | 2a1b79408897171b78032ff2531ab6f8b18be6c4 | [
"MIT"
] | 6 | 2017-05-31T20:58:32.000Z | 2021-02-16T23:13:15.000Z | labs-python/lab7/exe1.py | xR86/ml-stuff | 2a1b79408897171b78032ff2531ab6f8b18be6c4 | [
"MIT"
] | null | null | null | import time
import random
import sys
def wait(x):
time.sleep(x)
def time_cron():
a = int(sys.argv[1])
b = int(sys.argv[2])
while(1):
time_interval = random.uniform(a,b)
# measure process time
t0 = time.clock()
wait(time_interval)
print time.clock() - t0, "second... | 20.458333 | 55 | 0.570265 | 67 | 491 | 4.104478 | 0.373134 | 0.130909 | 0.072727 | 0.152727 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020649 | 0.309572 | 491 | 23 | 56 | 21.347826 | 0.79056 | 0.077393 | 0 | 0.117647 | 0 | 0 | 0.082222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.176471 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7d86a5254ce1c6e7614b033429a86d7dfcae3f9a | 5,753 | py | Python | test/component/test_dockerfile_service.py | dlpezbel/SDS | 43b64744d8011af6ccd62fee394d6af2b11cac68 | [
"MIT"
] | 4 | 2020-05-22T09:42:32.000Z | 2020-09-11T08:00:48.000Z | test/component/test_dockerfile_service.py | dlpezbel/SDS | 43b64744d8011af6ccd62fee394d6af2b11cac68 | [
"MIT"
] | 24 | 2020-07-11T07:36:26.000Z | 2020-08-30T19:49:10.000Z | test/component/test_dockerfile_service.py | dlpezbel/SDS | 43b64744d8011af6ccd62fee394d6af2b11cac68 | [
"MIT"
] | null | null | null | import unittest
from project.service.dockerfile_service import DockerfileParser, DockerfileService
class Dockerfile_Service_Test(unittest.TestCase):
def test_given_a_dockerfile_when_parse_then_instructions_are_parsed(self):
parser = DockerfileParser('test/resources/Dockerfile_basic')
instruction... | 62.532609 | 150 | 0.764123 | 680 | 5,753 | 6.039706 | 0.132353 | 0.084003 | 0.037984 | 0.037984 | 0.79401 | 0.737521 | 0.67251 | 0.598977 | 0.557341 | 0.536888 | 0 | 0.007401 | 0.131062 | 5,753 | 91 | 151 | 63.21978 | 0.814163 | 0 | 0 | 0.328767 | 0 | 0 | 0.174865 | 0.106379 | 0 | 0 | 0 | 0 | 0.315068 | 1 | 0.178082 | false | 0 | 0.027397 | 0 | 0.219178 | 0 | 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 |
7d887b54d98f0ac246c4d3ee26c160add654be49 | 2,934 | py | Python | python_exercises/question_directory/variables_equality_and_booleans.py | nchristie/slide-python-intro | dd52781b5d25435f97aa83cfff58c175fa7fdd1c | [
"MIT"
] | 1 | 2018-06-07T12:40:37.000Z | 2018-06-07T12:40:37.000Z | python_exercises/question_directory/variables_equality_and_booleans.py | nchristie/slide-python-intro | dd52781b5d25435f97aa83cfff58c175fa7fdd1c | [
"MIT"
] | 3 | 2018-06-07T14:39:19.000Z | 2019-01-15T16:35:23.000Z | python_exercises/question_directory/variables_equality_and_booleans.py | nchristie/slide-python-intro | dd52781b5d25435f97aa83cfff58c175fa7fdd1c | [
"MIT"
] | 9 | 2018-05-30T17:12:27.000Z | 2021-07-01T03:22:48.000Z | # Slide link: https://kathrinschuler.github.io/slide-python-intro/#/11/4
# Current repl: https://repl.it/@kathrinschuler/Lesson1ExBooleanOperators - question text varies a little
# TASKS is a list of lists. Each sublist follows this structure:
# [
# <string of background information to print>,
# <string of questio... | 47.322581 | 379 | 0.660873 | 399 | 2,934 | 4.759399 | 0.285714 | 0.066351 | 0.051606 | 0.081095 | 0.587151 | 0.565034 | 0.551343 | 0.540284 | 0.521327 | 0.49763 | 0 | 0.001776 | 0.232447 | 2,934 | 61 | 380 | 48.098361 | 0.841474 | 0.384117 | 0 | 0.615385 | 0 | 0.051282 | 0.671574 | 0.01812 | 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 |
7d94ef53f2d0398cedc2a72face52cd700cbfae1 | 1,225 | py | Python | algos/compare_trees.py | asaini/algo-py | e9d18ef82d14e6304430bbd8b065430e76aa7eb8 | [
"MIT"
] | 1 | 2015-10-01T21:17:10.000Z | 2015-10-01T21:17:10.000Z | algos/compare_trees.py | asaini/algo-py | e9d18ef82d14e6304430bbd8b065430e76aa7eb8 | [
"MIT"
] | null | null | null | algos/compare_trees.py | asaini/algo-py | e9d18ef82d14e6304430bbd8b065430e76aa7eb8 | [
"MIT"
] | null | null | null | class Node:
def __init__(self, data, left=None, right=None):
self.left = left
self.right = right
self.data = data
def is_identical(root1, root2):
"""
Determine if Two Trees are Identical
"""
# Both trees are empty
if root1 is None and root2 is None:
return True
# Recursively compare them if both are ... | 19.444444 | 54 | 0.691429 | 197 | 1,225 | 4.182741 | 0.203046 | 0.07767 | 0.097087 | 0.063107 | 0.398058 | 0.334951 | 0.334951 | 0.334951 | 0.334951 | 0.334951 | 0 | 0.054381 | 0.189388 | 1,225 | 63 | 55 | 19.444444 | 0.775428 | 0.116735 | 0 | 0.594595 | 0 | 0 | 0.007759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7d9a4289f4ca5e2c5ffe40012c358c02396e6704 | 532 | py | Python | server/urls.py | m3xan1k/censortracker_backend | 998f71efd65d7d1e02c0aecd20b7a59e0df35fd0 | [
"MIT"
] | null | null | null | server/urls.py | m3xan1k/censortracker_backend | 998f71efd65d7d1e02c0aecd20b7a59e0df35fd0 | [
"MIT"
] | null | null | null | server/urls.py | m3xan1k/censortracker_backend | 998f71efd65d7d1e02c0aecd20b7a59e0df35fd0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Main URL mapping configuration file.
Include other URL сonfs from external apps using method `include()`.
It is also a good practice to keep a single URL to the root index page.
This examples uses Django's default media
files serving technique in development.
"""
from django.contrib imp... | 22.166667 | 71 | 0.729323 | 80 | 532 | 4.825 | 0.675 | 0.051813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002257 | 0.167293 | 532 | 23 | 72 | 23.130435 | 0.869074 | 0.535714 | 0 | 0 | 0 | 0 | 0.083682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7da41b5e2c3146b854759c4ad251d22bb3ae9441 | 364 | py | Python | tests.py | Mr-oy/PyRarCrack | 5cf7ec68787de701d65add0fba738db0e9114888 | [
"PHP-3.01",
"OLDAP-2.3"
] | null | null | null | tests.py | Mr-oy/PyRarCrack | 5cf7ec68787de701d65add0fba738db0e9114888 | [
"PHP-3.01",
"OLDAP-2.3"
] | null | null | null | tests.py | Mr-oy/PyRarCrack | 5cf7ec68787de701d65add0fba738db0e9114888 | [
"PHP-3.01",
"OLDAP-2.3"
] | null | null | null | from unittest import TestCase, main
from unittest.mock import patch
from pyrarcrack import generate_combinations
class TestCombination(TestCase):
def test_should_generate_minimal_combination(self):
self.assertEqual(
list(generate_combinations('a', 1)),
['a']
)
... | 21.411765 | 56 | 0.653846 | 37 | 364 | 6.054054 | 0.648649 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003731 | 0.263736 | 364 | 16 | 57 | 22.75 | 0.83209 | 0 | 0 | 0 | 1 | 0 | 0.028736 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.454545 | 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 |
7da9f8f7ac1c02882796a00527a35aeaf1d0df4e | 733 | py | Python | ds/string/Add_Binary.py | BizShuk/code_algo | 1964a16ba382b360d85937b65b8acd51c1eb5418 | [
"MIT"
] | null | null | null | ds/string/Add_Binary.py | BizShuk/code_algo | 1964a16ba382b360d85937b65b8acd51c1eb5418 | [
"MIT"
] | null | null | null | ds/string/Add_Binary.py | BizShuk/code_algo | 1964a16ba382b360d85937b65b8acd51c1eb5418 | [
"MIT"
] | null | null | null | class Solution(object):
def addBinary(self, a, b):
"""
:type a: str
:type b: str
:rtype: str
"""
i, j = len(a) - 1, len(b) - 1
ret = ""
plus = 0
while True:
ta, tb = 0, 0
if i >= 0:
ta = int(a[i])
... | 21.558824 | 37 | 0.327422 | 87 | 733 | 2.758621 | 0.344828 | 0.058333 | 0.033333 | 0.108333 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049536 | 0.559345 | 733 | 33 | 38 | 22.212121 | 0.693498 | 0.050477 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0 | 0 | 0.125 | 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 |
7dab6086215199f97b91948a35ae76f8ffb0edeb | 640 | py | Python | pay_ir/tests/api_tests.py | AmirMohamadkhani/pay-ir | 457cb35e3508c1f2a75d8fc8280fa6fe6ee43209 | [
"MIT"
] | 17 | 2017-08-06T18:46:15.000Z | 2022-03-04T01:30:01.000Z | pay_ir/tests/api_tests.py | AmirMohamadkhani/pay-ir | 457cb35e3508c1f2a75d8fc8280fa6fe6ee43209 | [
"MIT"
] | 1 | 2019-11-09T21:07:24.000Z | 2019-11-09T23:39:44.000Z | pay_ir/tests/api_tests.py | AmirMohamadkhani/pay-ir | 457cb35e3508c1f2a75d8fc8280fa6fe6ee43209 | [
"MIT"
] | 5 | 2017-09-15T14:42:12.000Z | 2021-09-30T21:21:39.000Z | """
This module contains test cases for API endpoints.
"""
import unittest
from pay_ir.api.client import PayIrClient
class PayIrAPITestCase(unittest.TestCase):
def __init__(self, *args, **kwargs):
unittest.TestCase.__init__(self, *args, **kwargs)
def setUp(self):
self.client = PayIrCli... | 25.6 | 73 | 0.685938 | 76 | 640 | 5.526316 | 0.539474 | 0.066667 | 0.057143 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.195313 | 640 | 24 | 74 | 26.666667 | 0.805825 | 0.078125 | 0 | 0 | 0 | 0 | 0.067474 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.461538 | 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 |
7dba9ba34a7bed22d2bc29049df4e9518554e5d4 | 991 | py | Python | secao_08/ex54_08.py | pedrooliveirape/exercicios_python_geekuniversity | 663af454014a67435e58f0880434d48a9a73180f | [
"MIT"
] | null | null | null | secao_08/ex54_08.py | pedrooliveirape/exercicios_python_geekuniversity | 663af454014a67435e58f0880434d48a9a73180f | [
"MIT"
] | null | null | null | secao_08/ex54_08.py | pedrooliveirape/exercicios_python_geekuniversity | 663af454014a67435e58f0880434d48a9a73180f | [
"MIT"
] | null | null | null | """
Faça uma função chamada 'comamatriz()' que recebe, por parãmetro, uma matriz A[4][4] e retorna a soma dos seus elementos.
"""
def somamatriz(linha0: list, linha1: list, linha2: list, linha3: list):
"""
:param linha0: Primeira linha da matriz 4x4. Revebe 4 números inteiros.
:param linha1: Segunda linh... | 30.030303 | 121 | 0.614531 | 138 | 991 | 4.413043 | 0.434783 | 0.065681 | 0.085386 | 0.10509 | 0.27422 | 0.27422 | 0.27422 | 0.27422 | 0.211823 | 0 | 0 | 0.052632 | 0.290616 | 991 | 32 | 122 | 30.96875 | 0.813656 | 0.501514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.1875 | 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 |
7dbcbf0baeaa835b29ebedc63fabd6f225bb84cd | 1,442 | py | Python | watchmen/raw_data/service/import_raw_data.py | Indexical-Metrics-Measure-Advisory/watchmen-data-processor | d50b93e92868500552416997707d71720487bd77 | [
"MIT"
] | null | null | null | watchmen/raw_data/service/import_raw_data.py | Indexical-Metrics-Measure-Advisory/watchmen-data-processor | d50b93e92868500552416997707d71720487bd77 | [
"MIT"
] | null | null | null | watchmen/raw_data/service/import_raw_data.py | Indexical-Metrics-Measure-Advisory/watchmen-data-processor | d50b93e92868500552416997707d71720487bd77 | [
"MIT"
] | null | null | null | from watchmen.common.constants import pipeline_constants
from watchmen.common.utils.data_utils import is_raw
from watchmen.database.storage.utils.topic_utils import get_flatten_field
from watchmen.pipeline.index import trigger_pipeline
from watchmen.pipeline.model.trigger_type import TriggerType
from watchmen.pipeline.... | 34.333333 | 112 | 0.789875 | 203 | 1,442 | 5.26601 | 0.261084 | 0.112254 | 0.052385 | 0.058934 | 0.2058 | 0.151544 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14147 | 1,442 | 41 | 113 | 35.170732 | 0.86349 | 0 | 0 | 0 | 0 | 0 | 0.021528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.333333 | 0 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7dc52dc080556670cf19832775e7a8f9e2e94e5d | 1,566 | py | Python | Secao-4/exemplo 3.py | jhonatacaiob/Bootcamp-Data-Science | 1d5415429462594be873946a6b601c63a8dad875 | [
"MIT"
] | 1 | 2021-05-14T00:42:33.000Z | 2021-05-14T00:42:33.000Z | Secao-4/exemplo 3.py | jhonatacaiob/Bootcamp-Data-Science | 1d5415429462594be873946a6b601c63a8dad875 | [
"MIT"
] | null | null | null | Secao-4/exemplo 3.py | jhonatacaiob/Bootcamp-Data-Science | 1d5415429462594be873946a6b601c63a8dad875 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
def h(x):
return x**5 - 2*(x**4) + 2
def dh(x):
return 5*(x**4) - 8*(x**3)
def gradient_descent(derivative_func, initial_guess, taxa_de_aprendizado = 0.02, precisao = 0.001, max_passos = 300):
x_novo = initial_guess
lista_x = []
lista_inc =... | 22.056338 | 117 | 0.646232 | 268 | 1,566 | 3.619403 | 0.335821 | 0.049485 | 0.045361 | 0.043299 | 0.185567 | 0.146392 | 0.113402 | 0.113402 | 0.068041 | 0 | 0 | 0.049528 | 0.187739 | 1,566 | 71 | 118 | 22.056338 | 0.71305 | 0 | 0 | 0.046512 | 0 | 0 | 0.081685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0.069767 | 0.046512 | 0.046512 | 0.186047 | 0.069767 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7dce5b8da1c6d8c01575f56b93b119fbe9eb108c | 782 | py | Python | app/migrations/0025_auto_20190805_1551.py | thomasemurphy/django-channels-react-multiplayer | 2d8bbf408442f73cba461beb2ef2b50a33d23cae | [
"MIT"
] | 57 | 2019-08-22T00:02:09.000Z | 2022-03-14T14:46:32.000Z | app/migrations/0025_auto_20190805_1551.py | aduranil/django-channels-react-hooks-multiplayer | 2d8bbf408442f73cba461beb2ef2b50a33d23cae | [
"MIT"
] | 1 | 2019-08-07T14:09:18.000Z | 2019-08-07T14:09:18.000Z | app/migrations/0025_auto_20190805_1551.py | aduranil/django-channels-react-hooks-multiplayer | 2d8bbf408442f73cba461beb2ef2b50a33d23cae | [
"MIT"
] | 11 | 2019-11-02T19:38:47.000Z | 2022-01-10T23:37:01.000Z | # Generated by Django 2.1.7 on 2019-08-05 15:51
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [("app", "0024_auto_20190707_2139")]
operations = [
migrations.AddField(
model... | 27.928571 | 87 | 0.598465 | 82 | 782 | 5.573171 | 0.634146 | 0.052516 | 0.061269 | 0.09628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058394 | 0.299233 | 782 | 27 | 88 | 28.962963 | 0.775547 | 0.057545 | 0 | 0.142857 | 1 | 0 | 0.087075 | 0.031293 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7dd54ba55dd5ba9b6f76436817cd33d72eb1b515 | 380 | py | Python | setup.py | hariharanragothaman/pymaster | b3d033b4d5c75c69f587c94d9d12cd4a349a6a69 | [
"Apache-2.0"
] | 10 | 2020-09-21T22:23:09.000Z | 2022-01-25T16:58:44.000Z | setup.py | hariharanragothaman/pymaster | b3d033b4d5c75c69f587c94d9d12cd4a349a6a69 | [
"Apache-2.0"
] | null | null | null | setup.py | hariharanragothaman/pymaster | b3d033b4d5c75c69f587c94d9d12cd4a349a6a69 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="pymaster",
packages=find_packages(exclude=["tests", "docs"]),
version="1.0.0",
description="Quick Recipes for interview problems",
author="Hariharan Ragothaman",
classifiers=[
"Topic:: Utilities",
"Operating System :: POSI... | 25.333333 | 55 | 0.634211 | 38 | 380 | 6.289474 | 0.868421 | 0.100418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013559 | 0.223684 | 380 | 14 | 56 | 27.142857 | 0.79661 | 0 | 0 | 0 | 0 | 0 | 0.407895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7dd914e78c295cee5a63ad952bf9dc1f9b1fca0e | 1,085 | py | Python | kemanLib/library/catalog/admin.py | Keman95/KemanLib | bbc2afa33c67321249611775461a76518c9041a0 | [
"MIT"
] | null | null | null | kemanLib/library/catalog/admin.py | Keman95/KemanLib | bbc2afa33c67321249611775461a76518c9041a0 | [
"MIT"
] | null | null | null | kemanLib/library/catalog/admin.py | Keman95/KemanLib | bbc2afa33c67321249611775461a76518c9041a0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from catalog.models import Author, Genre, Book, BookInstance
from django.contrib import admin
admin.site.register(Genre)
class BookInline(admin.TabularInline):
model = Book
@admin.register(Author)
class AuthorAdmin(admin.ModelAdmin):
list_displa... | 30.138889 | 80 | 0.671889 | 117 | 1,085 | 6 | 0.452991 | 0.034188 | 0.081197 | 0.111111 | 0.074074 | 0.074074 | 0.074074 | 0 | 0 | 0 | 0 | 0.001121 | 0.17788 | 1,085 | 36 | 81 | 30.138889 | 0.785874 | 0.019355 | 0 | 0.068966 | 0 | 0 | 0.206961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.62069 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7de1a34d09c3bd68c9960f247de0de4ddcb63cd1 | 269 | py | Python | src/exception/exception_type.py | dkletz-hackathon/bncc-sano-api | 0281962dcd6a8e4b9c1b97372964e98b59748a61 | [
"MIT"
] | null | null | null | src/exception/exception_type.py | dkletz-hackathon/bncc-sano-api | 0281962dcd6a8e4b9c1b97372964e98b59748a61 | [
"MIT"
] | null | null | null | src/exception/exception_type.py | dkletz-hackathon/bncc-sano-api | 0281962dcd6a8e4b9c1b97372964e98b59748a61 | [
"MIT"
] | null | null | null | GENERAL_EXCEPTION = "internal_server_error"
LOGIN_EXCEPTION = "login_error"
REGISTER_EXCEPTION = "register_error"
NOT_AUTHORIZED = "not_authorized"
QUERY_PARAM_EXCEPTION = "query_param_error"
NOT_FOUND = "resource_not_found"
BAD_REQUEST_EXCEPTION = "bad_request_error"
| 33.625 | 43 | 0.843866 | 34 | 269 | 6.088235 | 0.441176 | 0.077295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078067 | 269 | 7 | 44 | 38.428571 | 0.834677 | 0 | 0 | 0 | 0 | 0 | 0.416357 | 0.078067 | 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 | 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 |
7de71fb948779b2476e9a44834b0b979a0837e33 | 14,615 | py | Python | cocrypto.py | zeth/scripts | 4b5e760ebddd00f3ffa5c4eab0118c3bc0035982 | [
"Apache-2.0"
] | 2 | 2017-08-14T06:37:23.000Z | 2017-08-14T08:27:04.000Z | cocrypto.py | zeth/scripts | 4b5e760ebddd00f3ffa5c4eab0118c3bc0035982 | [
"Apache-2.0"
] | null | null | null | cocrypto.py | zeth/scripts | 4b5e760ebddd00f3ffa5c4eab0118c3bc0035982 | [
"Apache-2.0"
] | 3 | 2015-05-04T01:05:18.000Z | 2020-01-09T02:47:04.000Z | """
Encrypted data storage.
-----------------------
The class DataStorage has a save method which takes your application data
as a string of any length and then saves it, the load method can then
retrieve the string.
For further details, read the documentation below.
"""
# Standard library modules
from __future_... | 35.821078 | 605 | 0.599111 | 1,724 | 14,615 | 4.947216 | 0.212877 | 0.023449 | 0.019698 | 0.040802 | 0.30836 | 0.254309 | 0.225349 | 0.209638 | 0.204479 | 0.197913 | 0 | 0.020559 | 0.304413 | 14,615 | 407 | 606 | 35.909091 | 0.818414 | 0.037975 | 0 | 0.113821 | 0 | 0 | 0.177306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073171 | null | null | 0.04065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7def5509ec00d69749cb8198ea71fd08f4ec6a66 | 454 | py | Python | backend/items/migrations/0003_auto_20200503_0812.py | moon1ightx/jobify | e2b958d060391f63c5b4d58a8804a779651c78de | [
"MIT"
] | null | null | null | backend/items/migrations/0003_auto_20200503_0812.py | moon1ightx/jobify | e2b958d060391f63c5b4d58a8804a779651c78de | [
"MIT"
] | null | null | null | backend/items/migrations/0003_auto_20200503_0812.py | moon1ightx/jobify | e2b958d060391f63c5b4d58a8804a779651c78de | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-05-03 08:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('items', '0002_quiz_test'),
]
operations = [
migrations.AlterField(
model_name='test',
... | 22.7 | 99 | 0.625551 | 53 | 454 | 5.283019 | 0.641509 | 0.085714 | 0.1 | 0.157143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055882 | 0.251101 | 454 | 19 | 100 | 23.894737 | 0.767647 | 0.099119 | 0 | 0 | 1 | 0 | 0.095823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7def69b0936885d668e906fdc2904e1f04c055dc | 1,892 | py | Python | setup.py | sonph/gdaxcli | 434a72573dc48c982a49b39ecaaeb1cca7b17844 | [
"MIT"
] | 5 | 2017-07-29T00:16:47.000Z | 2017-12-31T08:13:17.000Z | setup.py | sonph/gdaxcli | 434a72573dc48c982a49b39ecaaeb1cca7b17844 | [
"MIT"
] | 22 | 2017-07-26T01:23:31.000Z | 2018-03-03T00:24:03.000Z | setup.py | sonph/gdaxcli | 434a72573dc48c982a49b39ecaaeb1cca7b17844 | [
"MIT"
] | 4 | 2017-10-25T20:11:10.000Z | 2018-09-04T12:08:32.000Z | from distutils.core import setup
from setuptools import find_packages
with open('README.md') as f:
long_description = f.read()
setup(
name='gdaxcli',
packages=find_packages('gdaxcli', exclude=['tests']),
version='0.1.1',
description='Commandline client for trading on GDAX',
long_description=lon... | 31.016393 | 78 | 0.641649 | 224 | 1,892 | 5.379464 | 0.589286 | 0.110373 | 0.145228 | 0.086307 | 0.092946 | 0.048133 | 0 | 0 | 0 | 0 | 0 | 0.016563 | 0.234144 | 1,892 | 60 | 79 | 31.533333 | 0.815045 | 0.47833 | 0 | 0.074074 | 0 | 0 | 0.360332 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.074074 | 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 |
7df30171700e615d3be855419a4a55132b58adef | 201 | py | Python | accounts/urls.py | mohamed17717/ninja-bag | 95bed4758b88b96d42ee6973199a65106cf656b5 | [
"MIT"
] | null | null | null | accounts/urls.py | mohamed17717/ninja-bag | 95bed4758b88b96d42ee6973199a65106cf656b5 | [
"MIT"
] | null | null | null | accounts/urls.py | mohamed17717/ninja-bag | 95bed4758b88b96d42ee6973199a65106cf656b5 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import index, logout_account
app_name = 'accounts'
urlpatterns = [
path('', index, name='login-page'),
path('logout/', logout_account, name='logout'),
]
| 18.272727 | 49 | 0.701493 | 26 | 201 | 5.307692 | 0.576923 | 0.188406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144279 | 201 | 10 | 50 | 20.1 | 0.802326 | 0 | 0 | 0 | 0 | 0 | 0.154229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8146104d09338372dbe9ee9ecc6ee43ebf17f3de | 1,169 | py | Python | database/mysql_connect.py | youmu257/SteamGameListCrawler | 84931ab2a32a7a68d072a4daeaad6c311a08460e | [
"MIT"
] | 1 | 2020-12-25T05:43:57.000Z | 2020-12-25T05:43:57.000Z | database/mysql_connect.py | youmu257/SteamGameListCrawler | 84931ab2a32a7a68d072a4daeaad6c311a08460e | [
"MIT"
] | 2 | 2020-05-11T08:09:19.000Z | 2020-05-11T08:14:47.000Z | database/mysql_connect.py | youmu257/SteamGameListCrawler | 84931ab2a32a7a68d072a4daeaad6c311a08460e | [
"MIT"
] | null | null | null | # encoding=utf-8
import configparser
import os
import inspect
import sys
import pymysql
sys.path.append(os.path.abspath(os.getcwd() + '/database'))
# from https://wiki.python.org/moin/ConfigParserExamples
def ConfigSectionMap(section, config):
dict1 = {}
options = config.options(section)
for option in opt... | 27.833333 | 66 | 0.622754 | 131 | 1,169 | 5.557252 | 0.503817 | 0.065934 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009029 | 0.242087 | 1,169 | 41 | 67 | 28.512195 | 0.812641 | 0.059025 | 0 | 0 | 0 | 0 | 0.06381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0.060606 | 0.151515 | 0 | 0.272727 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8149ca94b0d080ec14cd9db5ac619cbcf0a2521a | 8,703 | py | Python | nssrc/com/citrix/netscaler/nitro/resource/config/aaa/aaaparameter.py | benfinke/ns_python | d651d7aa01d7dc63c1cd435c7b3314d7f5b26659 | [
"Apache-2.0"
] | 1 | 2015-04-05T21:21:26.000Z | 2015-04-05T21:21:26.000Z | nssrc/com/citrix/netscaler/nitro/resource/config/aaa/aaaparameter.py | benfinke/ns_python | d651d7aa01d7dc63c1cd435c7b3314d7f5b26659 | [
"Apache-2.0"
] | 1 | 2017-01-20T22:56:58.000Z | 2017-01-20T22:56:58.000Z | nssrc/com/citrix/netscaler/nitro/resource/config/aaa/aaaparameter.py | benfinke/ns_python | d651d7aa01d7dc63c1cd435c7b3314d7f5b26659 | [
"Apache-2.0"
] | 6 | 2015-04-21T13:14:08.000Z | 2020-12-03T07:27:52.000Z | #
# Copyright (c) 2008-2015 Citrix Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 31.193548 | 205 | 0.737447 | 1,065 | 8,703 | 5.960563 | 0.198122 | 0.049622 | 0.056238 | 0.059546 | 0.481727 | 0.466761 | 0.447227 | 0.360901 | 0.29017 | 0.29017 | 0 | 0.003912 | 0.17764 | 8,703 | 278 | 206 | 31.305755 | 0.883052 | 0.066873 | 0 | 0.507246 | 0 | 0 | 0.008011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.024155 | 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 |
8149fba35af7f1a94e6c4b6809707d67da24cec8 | 722 | py | Python | Self/Self.py | koichi210/Python | 9bc0be009bec15499540c1bf9ae802ffe1acfe10 | [
"MIT"
] | null | null | null | Self/Self.py | koichi210/Python | 9bc0be009bec15499540c1bf9ae802ffe1acfe10 | [
"MIT"
] | null | null | null | Self/Self.py | koichi210/Python | 9bc0be009bec15499540c1bf9ae802ffe1acfe10 | [
"MIT"
] | null | null | null | #クラス変数、インスタンス変数
class Hoge:
# クラス変数
cls_val = 123456
cls_str = 'class member'
# selfはインスタンスハンドラー
def __init__(self, val, str):
# インスタンス変数
self.inst_val = val
self.inst_str = str
if __name__ == "__main__":
hoge = Hoge(100, 'instance')
# クラスオブジェクトからクラス変数にアクセス
pr... | 18.512821 | 33 | 0.623269 | 80 | 722 | 5.325 | 0.35 | 0.169014 | 0.112676 | 0.070423 | 0.140845 | 0.140845 | 0.140845 | 0.140845 | 0 | 0 | 0 | 0.017308 | 0.279778 | 722 | 38 | 34 | 19 | 0.801923 | 0.202216 | 0 | 0.272727 | 0 | 0 | 0.09507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0 | 0 | 0.181818 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8151af6536376d1ec9288b1fd8db26a9ef996134 | 3,234 | py | Python | examples/python/glm.py | GreatWei/pythonStates | c4a9b326bfa312e2ae44a70f4dfaaf91f2d47a37 | [
"BSD-3-Clause"
] | 76 | 2019-12-28T08:37:10.000Z | 2022-03-29T02:19:41.000Z | examples/python/glm.py | cluterdidiw/statsmodels | 543037fa5768be773a3ba31fba06e16a9edea46a | [
"BSD-3-Clause"
] | null | null | null | examples/python/glm.py | cluterdidiw/statsmodels | 543037fa5768be773a3ba31fba06e16a9edea46a | [
"BSD-3-Clause"
] | 35 | 2020-02-04T14:46:25.000Z | 2022-03-24T03:56:17.000Z | # coding: utf-8
# DO NOT EDIT
# Autogenerated from the notebook glm.ipynb.
# Edit the notebook and then sync the output with this file.
#
# flake8: noqa
# DO NOT EDIT
# # 广义线性模型
import numpy as np
import statsmodels.api as sm
from scipy import stats
from matplotlib import pyplot as plt
# ## GLM: 二项式响应数据
#
# ### 加载数... | 21.417219 | 84 | 0.713976 | 490 | 3,234 | 4.632653 | 0.385714 | 0.017621 | 0.022907 | 0.021145 | 0.073128 | 0.025551 | 0.025551 | 0 | 0 | 0 | 0 | 0.034043 | 0.128015 | 3,234 | 150 | 85 | 21.56 | 0.770922 | 0.225727 | 0 | 0.104478 | 1 | 0 | 0.079293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.104478 | 0 | 0.104478 | 0.19403 | 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 |
815472740864dc6a88717fe9232210a0f367054d | 1,017 | py | Python | emukit/test_functions/quadrature/hennig2D.py | EmuKit/Emukit | 2df951e42c82400192220eb18af428f3eb764f6c | [
"Apache-2.0"
] | 272 | 2018-09-18T11:56:37.000Z | 2020-10-10T22:21:25.000Z | emukit/test_functions/quadrature/hennig2D.py | EmuKit/Emukit | 2df951e42c82400192220eb18af428f3eb764f6c | [
"Apache-2.0"
] | 278 | 2018-09-19T15:38:50.000Z | 2020-10-14T13:45:24.000Z | emukit/test_functions/quadrature/hennig2D.py | EmuKit/Emukit | 2df951e42c82400192220eb18af428f3eb764f6c | [
"Apache-2.0"
] | 88 | 2018-09-18T11:56:48.000Z | 2020-09-23T13:33:55.000Z | # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from typing import List, Tuple
import numpy as np
from emukit.core.loop.user_function import UserFunctionWrapper
def hennig2D() -> Tuple[UserFunctionWrapper, List[Tuple[float, float]]]:
r"""2D toy i... | 29.911765 | 79 | 0.626352 | 157 | 1,017 | 4.012739 | 0.515924 | 0.042857 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042447 | 0.212389 | 1,017 | 33 | 80 | 30.818182 | 0.74407 | 0.408063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
81559ef195fbf14adc97ec2528345d578ca711cb | 386 | py | Python | src/masonite/exceptions/handlers/ModelNotFoundHandler.py | josephmancuso/masonite | e9ed31331268bd4966609fbc1e5c55afa5cb0a79 | [
"MIT"
] | 35 | 2018-01-08T01:20:16.000Z | 2018-02-06T02:37:14.000Z | src/masonite/exceptions/handlers/ModelNotFoundHandler.py | josephmancuso/masonite | e9ed31331268bd4966609fbc1e5c55afa5cb0a79 | [
"MIT"
] | 55 | 2018-01-03T02:42:03.000Z | 2018-02-06T13:35:54.000Z | src/masonite/exceptions/handlers/ModelNotFoundHandler.py | josephmancuso/masonite | e9ed31331268bd4966609fbc1e5c55afa5cb0a79 | [
"MIT"
] | 4 | 2018-01-08T13:13:14.000Z | 2018-01-12T19:35:32.000Z | from ..exceptions import ModelNotFoundException
class ModelNotFoundHandler:
def __init__(self, application):
self.application = application
def handle(self, exception):
masonite_exception = ModelNotFoundException(
"No record found with the given primary key"
)
self... | 29.692308 | 77 | 0.715026 | 36 | 386 | 7.472222 | 0.638889 | 0.167286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215026 | 386 | 12 | 78 | 32.166667 | 0.887789 | 0 | 0 | 0 | 0 | 0 | 0.15285 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8158e9ac15ddb115e73c6eb51087c96d2d69ba26 | 20,259 | py | Python | tests/project/operations/test_fix_commitment.py | souissim/gridpath | 4eeca2be24b485edc56026e38cfda83f4a6b27ea | [
"Apache-2.0"
] | null | null | null | tests/project/operations/test_fix_commitment.py | souissim/gridpath | 4eeca2be24b485edc56026e38cfda83f4a6b27ea | [
"Apache-2.0"
] | null | null | null | tests/project/operations/test_fix_commitment.py | souissim/gridpath | 4eeca2be24b485edc56026e38cfda83f4a6b27ea | [
"Apache-2.0"
] | 1 | 2021-12-21T20:44:21.000Z | 2021-12-21T20:44:21.000Z | # Copyright 2016-2020 Blue Marble Analytics LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 40.116832 | 87 | 0.48724 | 1,827 | 20,259 | 5.036125 | 0.126437 | 0.076079 | 0.054342 | 0.043474 | 0.257472 | 0.225302 | 0.225302 | 0.202913 | 0.202913 | 0.202913 | 0 | 0.234005 | 0.387433 | 20,259 | 504 | 88 | 40.196429 | 0.507413 | 0.05484 | 0 | 0.263858 | 0 | 0 | 0.21498 | 0.012405 | 0 | 0 | 0 | 0 | 0.011086 | 1 | 0.006652 | false | 0 | 0.039911 | 0 | 0.04878 | 0.006652 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
815a29a77532df59119ffeb060623e1830c22222 | 12,872 | py | Python | cyberbattle/simulation/generate_network.py | ghost-pep/CyberBattleSim | bfaeaf9d929fe67d35f4d358f4491b713d7a7667 | [
"MIT"
] | null | null | null | cyberbattle/simulation/generate_network.py | ghost-pep/CyberBattleSim | bfaeaf9d929fe67d35f4d358f4491b713d7a7667 | [
"MIT"
] | null | null | null | cyberbattle/simulation/generate_network.py | ghost-pep/CyberBattleSim | bfaeaf9d929fe67d35f4d358f4491b713d7a7667 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
""" Generating random graphs"""
from cyberbattle.simulation.model import Identifiers, NodeID, CredentialID, PortName, FirewallConfiguration, FirewallRule, RulePermission
import numpy as np
import networkx as nx
from cyberbattle.simulation import ... | 43.340067 | 137 | 0.638052 | 1,438 | 12,872 | 5.515994 | 0.228095 | 0.018911 | 0.01059 | 0.01412 | 0.316188 | 0.234745 | 0.160237 | 0.113086 | 0.09594 | 0.085855 | 0 | 0.011343 | 0.287679 | 12,872 | 296 | 138 | 43.486486 | 0.853746 | 0.224052 | 0 | 0.152284 | 0 | 0 | 0.07962 | 0.022895 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055838 | false | 0.152284 | 0.035533 | 0.010152 | 0.162437 | 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 |
81628a208f2c9f131643628cf7d513f7183d05f2 | 459 | py | Python | setup.py | tschaefer/pitman | 7c11c05b9091a34cdc643b4b5903ac89181ef529 | [
"BSD-2-Clause"
] | null | null | null | setup.py | tschaefer/pitman | 7c11c05b9091a34cdc643b4b5903ac89181ef529 | [
"BSD-2-Clause"
] | null | null | null | setup.py | tschaefer/pitman | 7c11c05b9091a34cdc643b4b5903ac89181ef529 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='pitman',
version='0.0.1',
packages=['pitman'],
author='Tobias Schäfer',
author_email='pitman@blackox.org',
url='https://github.com/tschaefer/pitman',
description='Dig for your favored Podcast.',
license='BSD',
instal... | 27 | 78 | 0.642702 | 60 | 459 | 4.85 | 0.766667 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033505 | 0.154684 | 459 | 16 | 79 | 28.6875 | 0.716495 | 0.045752 | 0 | 0 | 0 | 0 | 0.458716 | 0.057339 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
816617258c4630068527b4c83da075540987449a | 9,528 | py | Python | transform_byday.py | anuyorker/Exploring-New-York-City-Transit | a37ff81ae6ea178ed8c8b897e83a08cb46c46ef8 | [
"MIT"
] | null | null | null | transform_byday.py | anuyorker/Exploring-New-York-City-Transit | a37ff81ae6ea178ed8c8b897e83a08cb46c46ef8 | [
"MIT"
] | null | null | null | transform_byday.py | anuyorker/Exploring-New-York-City-Transit | a37ff81ae6ea178ed8c8b897e83a08cb46c46ef8 | [
"MIT"
] | null | null | null | import urllib.request
import json
import dml
import prov.model
import datetime
import uuid
import statistics
import pandas as pd
from bson.code import Code
import numpy as np
import scipy.stats
import matplotlib.pyplot as plt
import pylab
import seaborn as sns
class transform_byday(dml.Algorithm):
contributor = 'a... | 44.111111 | 151 | 0.629933 | 1,107 | 9,528 | 5.264679 | 0.29178 | 0.046843 | 0.032601 | 0.024708 | 0.2349 | 0.159231 | 0.12337 | 0.12337 | 0.090254 | 0.090254 | 0 | 0.025459 | 0.233207 | 9,528 | 215 | 152 | 44.316279 | 0.772242 | 0 | 0 | 0.067568 | 0 | 0 | 0.220585 | 0.048766 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.094595 | null | null | 0.128378 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
816a21e1ede6235c9a7ef048821dbc47124547a4 | 1,075 | py | Python | chap06/RealtimeBase.py | maaanya/codingmolayo-steempy | 7f34afd82bf6be28abe3dc8c87b0d40b29ef7ed8 | [
"MIT"
] | 3 | 2018-08-17T04:49:01.000Z | 2020-04-14T00:46:17.000Z | chap06/RealtimeBase.py | maaanya/codingmolayo-steempy | 7f34afd82bf6be28abe3dc8c87b0d40b29ef7ed8 | [
"MIT"
] | null | null | null | chap06/RealtimeBase.py | maaanya/codingmolayo-steempy | 7f34afd82bf6be28abe3dc8c87b0d40b29ef7ed8 | [
"MIT"
] | 2 | 2018-04-23T10:57:51.000Z | 2020-04-14T00:46:18.000Z | from contextlib import suppress
from steem.blockchain import Blockchain
from steem.post import Post
from steembase.exceptions import PostDoesNotExist
from steembase.exceptions import RPCError
from datetime import timedelta
def gen(stream):
while True:
try:
for post in stream:
... | 28.289474 | 83 | 0.540465 | 118 | 1,075 | 4.881356 | 0.466102 | 0.052083 | 0.041667 | 0.067708 | 0.100694 | 0.100694 | 0.100694 | 0.100694 | 0 | 0 | 0 | 0.021708 | 0.357209 | 1,075 | 38 | 84 | 28.289474 | 0.811867 | 0 | 0 | 0.314286 | 0 | 0 | 0.06256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.085714 | 0.171429 | 0 | 0.2 | 0.314286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
817399ea9d05a06edb486160bb19ed3fd06ebf26 | 1,570 | py | Python | hard-gists/4073599/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/4073599/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/4073599/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | # Example for sending an email with an attached image using smtplib
#
# IMPORTANT: You need to enter your email login in the main() function.
# The example is prepared for GMail, but other providers
# should be possible by changing the mail server.
import smtplib
from email.mime.base import MIME... | 26.610169 | 73 | 0.72293 | 210 | 1,570 | 5.290476 | 0.519048 | 0.032403 | 0.023402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003811 | 0.164331 | 1,570 | 58 | 74 | 27.068966 | 0.842988 | 0.203822 | 0 | 0 | 0 | 0 | 0.216935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02381 | 0.142857 | null | null | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
81765743d29f657ac460320c52cb88a4fc1e015c | 641 | py | Python | armulator/armv6/opcodes/arm_instruction_set/arm_media_instructions/bfc_a1.py | matan1008/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 16 | 2018-01-22T14:36:49.000Z | 2021-12-17T15:39:52.000Z | armulator/armv6/opcodes/arm_instruction_set/arm_media_instructions/bfc_a1.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 3 | 2019-02-19T17:51:47.000Z | 2022-03-31T20:45:21.000Z | armulator/armv6/opcodes/arm_instruction_set/arm_media_instructions/bfc_a1.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 4 | 2020-06-18T23:51:03.000Z | 2022-02-09T17:43:13.000Z | from armulator.armv6.opcodes.abstract_opcodes.bfc import Bfc
from armulator.armv6.opcodes.opcode import Opcode
class BfcA1(Bfc, Opcode):
def __init__(self, instruction, lsbit, msbit, d):
Opcode.__init__(self, instruction)
Bfc.__init__(self, lsbit, msbit, d)
def is_pc_changing_opcode(self):
... | 29.136364 | 87 | 0.627145 | 82 | 641 | 4.695122 | 0.47561 | 0.062338 | 0.093506 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037657 | 0.25429 | 641 | 21 | 88 | 30.52381 | 0.767782 | 0 | 0 | 0 | 0 | 0 | 0.037442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
819236cc7b76053b7a7e580bb0e58179782fbe44 | 1,026 | py | Python | coop_cms/management/commands/migrate.py | BenjCherpas/coop_cms | 3e50990fdff6ce186509fca7f8b8f3b3134005f1 | [
"BSD-3-Clause"
] | 3 | 2016-01-29T10:55:09.000Z | 2022-03-08T16:02:12.000Z | coop_cms/management/commands/migrate.py | BenjCherpas/coop_cms | 3e50990fdff6ce186509fca7f8b8f3b3134005f1 | [
"BSD-3-Clause"
] | 11 | 2015-03-07T17:30:24.000Z | 2016-07-13T09:40:43.000Z | coop_cms/management/commands/migrate.py | BenjCherpas/coop_cms | 3e50990fdff6ce186509fca7f8b8f3b3134005f1 | [
"BSD-3-Clause"
] | 5 | 2018-08-30T09:03:22.000Z | 2019-09-10T13:01:56.000Z | # -*- coding: utf-8 -*-
"""force sync_translation after migrate for unit tests"""
import sys
from django.conf import settings
from django.core.management import call_command
from django.core.management.commands import migrate
from django.utils.six import StringIO
class Command(migrate.Command):
"""migrate"""
... | 35.37931 | 94 | 0.694932 | 124 | 1,026 | 5.612903 | 0.459677 | 0.107759 | 0.12069 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001241 | 0.214425 | 1,026 | 28 | 95 | 36.642857 | 0.862283 | 0.18616 | 0 | 0 | 0 | 0 | 0.185276 | 0.084663 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.5 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8197ded471d436d16480038a3f7a6822bce4267f | 854 | py | Python | apps/users/migrations/0009_refactor_institutions.py | CosmosTUe/Cosmos | cec2541d3f8ea1944edfaab2090916ba66f9d2f3 | [
"MIT"
] | 1 | 2021-02-01T19:27:07.000Z | 2021-02-01T19:27:07.000Z | apps/users/migrations/0009_refactor_institutions.py | CosmosTUe/Cosmos | cec2541d3f8ea1944edfaab2090916ba66f9d2f3 | [
"MIT"
] | 79 | 2020-08-05T09:01:00.000Z | 2022-03-24T11:27:21.000Z | apps/users/migrations/0009_refactor_institutions.py | CosmosTUe/Cosmos | cec2541d3f8ea1944edfaab2090916ba66f9d2f3 | [
"MIT"
] | 3 | 2021-02-22T18:36:52.000Z | 2021-10-13T17:05:44.000Z | # Generated by Django 3.0.11 on 2021-03-22 22:07
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("users", "0008_remove_old_fields"),
]
operations = [
migrations.AlterField(
model_name="institu... | 30.5 | 104 | 0.625293 | 88 | 854 | 5.943182 | 0.534091 | 0.08413 | 0.053537 | 0.08413 | 0.198853 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031348 | 0.252927 | 854 | 27 | 105 | 31.62963 | 0.788401 | 0.053864 | 0 | 0.238095 | 1 | 0 | 0.271712 | 0.027295 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8199506924e3c3b019e0eee4291744baad4e1583 | 47,782 | py | Python | app_inv_game_server/game_server/server.py | ChicGeek2/app-inventor-for-android | 5b85f4cc1ba829293ac4f6e96f9ae1bb5b82ea22 | [
"Apache-2.0"
] | 1 | 2021-10-21T04:58:01.000Z | 2021-10-21T04:58:01.000Z | app_inv_game_server/game_server/server.py | ChicGeek2/app-inventor-for-android | 5b85f4cc1ba829293ac4f6e96f9ae1bb5b82ea22 | [
"Apache-2.0"
] | 11 | 2016-04-14T11:24:24.000Z | 2021-06-21T05:40:20.000Z | app_inv_game_server/game_server/server.py | ChicGeek2/app-inventor-for-android | 5b85f4cc1ba829293ac4f6e96f9ae1bb5b82ea22 | [
"Apache-2.0"
] | 1 | 2021-09-02T07:51:47.000Z | 2021-09-02T07:51:47.000Z | # Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, sof... | 38.50282 | 79 | 0.671906 | 6,692 | 47,782 | 4.715182 | 0.085027 | 0.017747 | 0.013532 | 0.02979 | 0.503169 | 0.444159 | 0.402199 | 0.369874 | 0.344837 | 0.313304 | 0 | 0.001322 | 0.224352 | 47,782 | 1,240 | 80 | 38.533871 | 0.850062 | 0.015906 | 0 | 0.426871 | 0 | 0.003401 | 0.306517 | 0.049725 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005102 | 0.02381 | 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 |
819b661673f4b786cd5f6fe94dc05fea5738b739 | 2,009 | py | Python | ModelFFRdata/ABRanalysis.py | haribharadwaj/codebasket | f673c83d7e6b440346966775e366d198c55a0b67 | [
"BSD-3-Clause"
] | null | null | null | ModelFFRdata/ABRanalysis.py | haribharadwaj/codebasket | f673c83d7e6b440346966775e366d198c55a0b67 | [
"BSD-3-Clause"
] | null | null | null | ModelFFRdata/ABRanalysis.py | haribharadwaj/codebasket | f673c83d7e6b440346966775e366d198c55a0b67 | [
"BSD-3-Clause"
] | 4 | 2018-06-02T18:41:45.000Z | 2022-01-08T01:08:14.000Z | from anlffr.helper import biosemi2mne as bs
import mne
import numpy as np
import os
import fnmatch
import pylab as pl
# Adding Files and locations
froot = '/home/hari/Documents/PythonCodes/ModelData/'
# List of files stems, each will be appended by run number
# Could be different for edf, fiff, eve etc.
# Use list []... | 26.434211 | 79 | 0.60229 | 306 | 2,009 | 3.937909 | 0.620915 | 0.019917 | 0.017427 | 0.022407 | 0.028216 | 0.028216 | 0 | 0 | 0 | 0 | 0 | 0.080128 | 0.223494 | 2,009 | 75 | 80 | 26.786667 | 0.692308 | 0.270284 | 0 | 0 | 0 | 0 | 0.134893 | 0.029594 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.148936 | null | null | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
819bc713d85e8b22f8e01bc93d8bd7d595105834 | 988 | py | Python | try_code/try_cython/example.py | pcmagic/stokes_flow | 464d512d3739eee77b33d1ebf2f27dae6cfa0423 | [
"MIT"
] | 1 | 2018-11-11T05:00:53.000Z | 2018-11-11T05:00:53.000Z | try_code/try_cython/example.py | pcmagic/stokes_flow | 464d512d3739eee77b33d1ebf2f27dae6cfa0423 | [
"MIT"
] | null | null | null | try_code/try_cython/example.py | pcmagic/stokes_flow | 464d512d3739eee77b33d1ebf2f27dae6cfa0423 | [
"MIT"
] | null | null | null | # array module example
import sample
import array
a = array.array('d', [1, -3, 4, 7, 2, 0])
PETSc.Sys.Print(a)
sample.clip(a, 1, 4, a)
PETSc.Sys.Print(a)
# numpy example
import numpy
b = numpy.random.uniform(-10, 10, size=1000000)
PETSc.Sys.Print(b)
c = numpy.zeros_like(b)
PETSc.Sys.Print(c)
sample.c... | 26 | 102 | 0.673077 | 178 | 988 | 3.651685 | 0.224719 | 0.184615 | 0.3 | 0.024615 | 0.46 | 0.424615 | 0.24 | 0.153846 | 0.153846 | 0.153846 | 0 | 0.064252 | 0.133603 | 988 | 37 | 103 | 26.702703 | 0.695093 | 0.054656 | 0 | 0.230769 | 0 | 0 | 0.220852 | 0.052691 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.269231 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
819c3f4f9a73acea65930649e9b9fad43a158bc1 | 2,021 | py | Python | stars/minister.py | therussellhome/inherit_the_stars | aa498103e1683625f762afee8c95ffcebb77ca03 | [
"Unlicense"
] | null | null | null | stars/minister.py | therussellhome/inherit_the_stars | aa498103e1683625f762afee8c95ffcebb77ca03 | [
"Unlicense"
] | null | null | null | stars/minister.py | therussellhome/inherit_the_stars | aa498103e1683625f762afee8c95ffcebb77ca03 | [
"Unlicense"
] | null | null | null | from . import game_engine
from .defaults import Defaults
""" Default values (default, min, max) """
__defaults = {
'ID': '@UUID',
'name': '',
'color': 'black',
}
""" The planetary minister controls the planetary construction phase of turn generation """
class Minister(Defaults):
""" Initialize """
... | 32.596774 | 117 | 0.54478 | 221 | 2,021 | 4.823529 | 0.257919 | 0.073171 | 0.056285 | 0.079737 | 0.305816 | 0.090994 | 0.090994 | 0.065666 | 0 | 0 | 0 | 0.000693 | 0.285502 | 2,021 | 61 | 118 | 33.131148 | 0.737535 | 0.004948 | 0 | 0.295455 | 0 | 0 | 0.262598 | 0.06215 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0.045455 | 0 | 0.522727 | 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 |
81a059cfc58b6fb72dcddb5ba068cfc8a22d1470 | 1,465 | py | Python | waespk/core/migrations/0035_auto_20160617_1631.py | spketoundi/CamODI | f5df22bf6a771278294e7af21147d61e5cd19bf5 | [
"MIT"
] | null | null | null | waespk/core/migrations/0035_auto_20160617_1631.py | spketoundi/CamODI | f5df22bf6a771278294e7af21147d61e5cd19bf5 | [
"MIT"
] | null | null | null | waespk/core/migrations/0035_auto_20160617_1631.py | spketoundi/CamODI | f5df22bf6a771278294e7af21147d61e5cd19bf5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-06-17 15:31
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0023_alter_page_revision_on_delete_behaviour'... | 39.594595 | 141 | 0.623208 | 154 | 1,465 | 5.746753 | 0.636364 | 0.036158 | 0.064407 | 0.077966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048402 | 0.25256 | 1,465 | 36 | 142 | 40.694444 | 0.759817 | 0.045734 | 0 | 0.068966 | 1 | 0 | 0.255197 | 0.048029 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.206897 | 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 |
81a68e16515294220ebe507266a4215f4b83a966 | 1,165 | py | Python | awardsapp/migrations/0004_rating.py | clarametto/Awards | f7dbc23a5c41e05e236573fc264af3c0b9d32ddd | [
"Unlicense"
] | 1 | 2022-01-08T17:27:53.000Z | 2022-01-08T17:27:53.000Z | awardsapp/migrations/0004_rating.py | clarametto/Awards | f7dbc23a5c41e05e236573fc264af3c0b9d32ddd | [
"Unlicense"
] | null | null | null | awardsapp/migrations/0004_rating.py | clarametto/Awards | f7dbc23a5c41e05e236573fc264af3c0b9d32ddd | [
"Unlicense"
] | null | null | null | # Generated by Django 3.2.7 on 2021-12-13 17:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('awardsapp', '0003_auto_2... | 40.172414 | 118 | 0.637768 | 129 | 1,165 | 5.658915 | 0.472868 | 0.043836 | 0.126027 | 0.147945 | 0.386301 | 0.386301 | 0.386301 | 0.386301 | 0.150685 | 0.150685 | 0 | 0.038889 | 0.227468 | 1,165 | 28 | 119 | 41.607143 | 0.772222 | 0.038627 | 0 | 0 | 1 | 0 | 0.088551 | 0.020572 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81aedb4936d6620e33fbe1624648fcfdfe242e07 | 20,309 | py | Python | Sketches/MPS/Experiments/Likefile2/LikeFile.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 12 | 2015-10-20T10:22:01.000Z | 2021-07-19T10:09:44.000Z | Sketches/MPS/Experiments/Likefile2/LikeFile.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 2 | 2015-10-20T10:22:55.000Z | 2017-02-13T11:05:25.000Z | Sketches/MPS/Experiments/Likefile2/LikeFile.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 6 | 2015-03-09T12:51:59.000Z | 2020-03-01T13:06:21.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1)
#
# (1) Kamaelia Contributors are listed in the AUTHORS file and at
# http://www.kamaelia.org/AUTHORS - please extend this file,
# not this notice.
#
# Licensed under the Apache License... | 43.675269 | 216 | 0.624797 | 2,383 | 20,309 | 5.305078 | 0.246328 | 0.007119 | 0.009018 | 0.003797 | 0.088198 | 0.075305 | 0.063598 | 0.048568 | 0.03607 | 0.03607 | 0 | 0.001756 | 0.270964 | 20,309 | 464 | 217 | 43.769397 | 0.852087 | 0.185386 | 0 | 0.170103 | 0 | 0.005155 | 0.089816 | 0 | 0 | 0 | 0 | 0.008621 | 0 | 0 | null | null | 0 | 0.046392 | null | null | 0.020619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
81aedfc7aada8d37f978cd6a3e9636a8a022867e | 427 | py | Python | event_rsvp/settings.py | django-cms-plugins/django-event-rsvp | 1f288599a268646bddc4c87e7ec17c7c1ec5df11 | [
"MIT"
] | 5 | 2018-02-01T08:45:41.000Z | 2021-11-10T07:57:43.000Z | event_rsvp/settings.py | bitmazk/django-event-rsvp | 1f288599a268646bddc4c87e7ec17c7c1ec5df11 | [
"MIT"
] | 9 | 2017-09-25T00:33:35.000Z | 2022-03-11T23:12:46.000Z | event_rsvp/settings.py | bitlabstudio/django-event-rsvp | 1f288599a268646bddc4c87e7ec17c7c1ec5df11 | [
"MIT"
] | 6 | 2017-08-12T08:39:09.000Z | 2019-09-30T19:28:31.000Z | """Settings for the ``event_rsvp`` app."""
from django.conf import settings
gettext = lambda s: s
REQUIRED_FIELDS_CHOICES = getattr(
settings,
'EVENT_RSVP_REQUIRED_FIELDS_CHOICES',
(
('name', gettext('Name')),
('email', gettext('Email')),
('phone', gettext('Phone')),
)
)
GUEST... | 23.722222 | 55 | 0.620609 | 47 | 427 | 5.382979 | 0.531915 | 0.142292 | 0.166008 | 0.189723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227166 | 427 | 17 | 56 | 25.117647 | 0.766667 | 0.084309 | 0 | 0 | 0 | 0 | 0.296104 | 0.223377 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 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 |
81b439609be2aff3d626ef68e03b34532632832f | 1,702 | py | Python | uberduck_ml_dev/monitoring/statistics.py | justinjohn0306/uberduck-ml-dev | 439ec326eb7680c4fdd5ee97a09def8e355e0f7c | [
"Apache-2.0"
] | 167 | 2021-10-18T22:04:17.000Z | 2022-03-21T19:44:21.000Z | uberduck_ml_dev/monitoring/statistics.py | justinjohn0306/uberduck-ml-dev | 439ec326eb7680c4fdd5ee97a09def8e355e0f7c | [
"Apache-2.0"
] | 18 | 2021-10-19T02:33:57.000Z | 2022-03-28T17:25:52.000Z | uberduck_ml_dev/monitoring/statistics.py | justinjohn0306/uberduck-ml-dev | 439ec326eb7680c4fdd5ee97a09def8e355e0f7c | [
"Apache-2.0"
] | 24 | 2021-10-22T02:16:53.000Z | 2022-03-30T18:22:43.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/monitoring.statistics.ipynb (unless otherwise specified).
__all__ = ['get_alignment_metrics']
# Cell
import torch
from ..utils.utils import get_mask_from_lengths
def get_alignment_metrics(
alignments, average_across_batch=True, input_lengths=None, output_lengths=N... | 34.734694 | 105 | 0.63866 | 230 | 1,702 | 4.552174 | 0.352174 | 0.040115 | 0.04298 | 0.034384 | 0.129895 | 0.129895 | 0.129895 | 0.129895 | 0.129895 | 0.129895 | 0 | 0.030053 | 0.217979 | 1,702 | 49 | 106 | 34.734694 | 0.756574 | 0.161575 | 0 | 0 | 1 | 0 | 0.025442 | 0.014841 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.055556 | 0 | 0.111111 | 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 |
81babb4df974b83991d68f2dd9d036fc438ea429 | 510 | py | Python | opennmt/bin/merge_config.py | mfomicheva/OpenNMT-tf | a367676a16f9e77f76bc58e138e78614eb4add1e | [
"MIT"
] | 4 | 2020-06-21T13:56:27.000Z | 2021-05-07T06:03:35.000Z | opennmt/bin/merge_config.py | mfomicheva/OpenNMT-tf | a367676a16f9e77f76bc58e138e78614eb4add1e | [
"MIT"
] | 1 | 2020-06-22T23:38:33.000Z | 2020-06-23T02:06:45.000Z | opennmt/bin/merge_config.py | mfomicheva/OpenNMT-tf | a367676a16f9e77f76bc58e138e78614eb4add1e | [
"MIT"
] | 2 | 2021-04-15T08:51:30.000Z | 2022-03-08T07:44:32.000Z | """Script that merges configurations for debug or simplification."""
from __future__ import print_function
import argparse
import yaml
from opennmt.config import load_config
def main():
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("config", nargs=... | 24.285714 | 90 | 0.77451 | 61 | 510 | 6.147541 | 0.655738 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119608 | 510 | 20 | 91 | 25.5 | 0.835189 | 0.121569 | 0 | 0 | 0 | 0 | 0.079186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
81c2124037faf4a11052a8e05833e446c13ed6a7 | 366 | py | Python | images-processing/processing/transformation.py | saldanhayg/ProJeto_Criacao_Pacotes_de_Imagens_Python | e9321afcaecd297182ddbb4b9f37c6cad8e7ab8f | [
"MIT"
] | 1 | 2020-10-06T12:40:07.000Z | 2020-10-06T12:40:07.000Z | images-processing/processing/transformation.py | saldanhayg/ProJeto_Criacao_Pacotes_de_Imagens_Python | e9321afcaecd297182ddbb4b9f37c6cad8e7ab8f | [
"MIT"
] | null | null | null | images-processing/processing/transformation.py | saldanhayg/ProJeto_Criacao_Pacotes_de_Imagens_Python | e9321afcaecd297182ddbb4b9f37c6cad8e7ab8f | [
"MIT"
] | 7 | 2020-08-24T00:35:10.000Z | 2022-03-27T16:48:58.000Z | #Author: Karina Tiemi Kato
from skimage.transform import resize
def resize_image(image, proportion):
assert 0 <= proportion <=1, "Specify a valid proportion between 0 and 1."
height = round(image.shape[0]*proportion)
width = round(image.shape[1]*proportion)
image_resized = resize(image, (height, width)... | 40.666667 | 77 | 0.737705 | 50 | 366 | 5.32 | 0.58 | 0.082707 | 0.112782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019481 | 0.15847 | 366 | 9 | 78 | 40.666667 | 0.844156 | 0.068306 | 0 | 0 | 0 | 0 | 0.1261 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 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 |
81c4a2b35fd9cf96fde80915f32d05ecabc7db51 | 390 | py | Python | post/migrations/0011_auto_20201020_1555.py | TrushaT/Fun-With-Cartoonista | fa19741cf2aed422f1014f4bad76227a34863469 | [
"MIT"
] | 5 | 2020-10-18T12:43:12.000Z | 2021-05-26T05:13:19.000Z | post/migrations/0011_auto_20201020_1555.py | TrushaT/Fun-With-Cartoonista | fa19741cf2aed422f1014f4bad76227a34863469 | [
"MIT"
] | 4 | 2021-06-09T19:22:18.000Z | 2022-03-12T00:50:13.000Z | post/migrations/0011_auto_20201020_1555.py | TrushaT/Fun-With-Cartoonista | fa19741cf2aed422f1014f4bad76227a34863469 | [
"MIT"
] | 1 | 2021-06-15T15:08:10.000Z | 2021-06-15T15:08:10.000Z | # Generated by Django 2.2 on 2020-10-20 10:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('post', '0010_auto_20201020_1443'),
]
operations = [
migrations.AlterField(
model_name='post',
name='header_image',
... | 20.526316 | 55 | 0.6 | 42 | 390 | 5.428571 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107527 | 0.284615 | 390 | 18 | 56 | 21.666667 | 0.709677 | 0.110256 | 0 | 0 | 1 | 0 | 0.13913 | 0.066667 | 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 |
81c6884d716fbf4f2f49feb843d41b822d2eaba4 | 1,846 | py | Python | test/tree/test_copy.py | zepheira/amara | d3ffe07d6e2266b34d72b012a82d572c8edbf1e7 | [
"Apache-2.0"
] | 6 | 2015-01-30T03:50:36.000Z | 2022-03-20T16:09:58.000Z | test/tree/test_copy.py | zepheira/amara | d3ffe07d6e2266b34d72b012a82d572c8edbf1e7 | [
"Apache-2.0"
] | 2 | 2015-02-04T17:18:47.000Z | 2019-09-27T23:39:52.000Z | test/tree/test_copy.py | zepheira/amara | d3ffe07d6e2266b34d72b012a82d572c8edbf1e7 | [
"Apache-2.0"
] | 6 | 2015-02-04T16:16:18.000Z | 2019-10-30T20:07:48.000Z | # -*- encoding: utf-8 -*-
# Testing new amara.tree API
# Testing quick reference examples
import unittest
import cStringIO
import copy
import amara
from amara import tree, xml_print
from amara import bindery
TEST1 = '<a x="1"><b>i</b><c>j<d/>k</c><b>l</b></a>'
class Test_constructs(unittest.TestCase):
def test... | 30.262295 | 69 | 0.643554 | 244 | 1,846 | 4.704918 | 0.266393 | 0.117596 | 0.078397 | 0.10453 | 0.74216 | 0.689895 | 0.689895 | 0.658537 | 0.658537 | 0.606272 | 0 | 0.007785 | 0.234561 | 1,846 | 60 | 70 | 30.766667 | 0.804671 | 0.098592 | 0 | 0.627907 | 0 | 0.023256 | 0.03961 | 0.023766 | 0 | 0 | 0 | 0 | 0.302326 | 1 | 0.093023 | false | 0 | 0.139535 | 0 | 0.348837 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81ca2e1446ca9877646859bf8a95f22ec5673f60 | 4,360 | py | Python | usuarios/tests.py | wsoliveira/desafio | dbf325d129224405d2f20d97d63554c0bbecfb62 | [
"MIT"
] | null | null | null | usuarios/tests.py | wsoliveira/desafio | dbf325d129224405d2f20d97d63554c0bbecfb62 | [
"MIT"
] | null | null | null | usuarios/tests.py | wsoliveira/desafio | dbf325d129224405d2f20d97d63554c0bbecfb62 | [
"MIT"
] | null | null | null | from django.test import TestCase
from rest_framework.test import APIClient
from django.urls import reverse
from faker import Factory
from .models import Usuario
faker = Factory.create('pt_BR')
# Create your tests here.
def criaUsuarios() -> list:
"""
param: None
return: list(email_... | 38.928571 | 119 | 0.64656 | 488 | 4,360 | 5.641393 | 0.247951 | 0.055576 | 0.061388 | 0.043226 | 0.453324 | 0.385035 | 0.345078 | 0.256448 | 0.244097 | 0.212132 | 0 | 0.009053 | 0.239908 | 4,360 | 111 | 120 | 39.279279 | 0.821666 | 0.120642 | 0 | 0.217949 | 0 | 0 | 0.095499 | 0.028266 | 0.012821 | 0 | 0 | 0 | 0.128205 | 1 | 0.115385 | false | 0.102564 | 0.064103 | 0 | 0.24359 | 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 |
81ca80f8707800ea8f88ec4fd91a00b2b78881e5 | 3,650 | py | Python | src/solutions/common/to/broadcast.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/solutions/common/to/broadcast.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/solutions/common/to/broadcast.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Green Valley Belgium NV
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 32.882883 | 116 | 0.770411 | 396 | 3,650 | 6.901515 | 0.371212 | 0.048299 | 0.040981 | 0.051226 | 0.13831 | 0.13831 | 0.13831 | 0 | 0 | 0 | 0 | 0.005421 | 0.140822 | 3,650 | 110 | 117 | 33.181818 | 0.866071 | 0.166027 | 0 | 0 | 0 | 0 | 0.065742 | 0.007598 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0 | 0.063492 | 0.015873 | 0.825397 | 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 |
81cdec52cdef39829935a6679e47dadfb424ebc6 | 393 | py | Python | setup.py | yurytsoy/gwr | 0258ccc6b8f36a28bee2b79e82703c463ebbcc8f | [
"MIT"
] | null | null | null | setup.py | yurytsoy/gwr | 0258ccc6b8f36a28bee2b79e82703c463ebbcc8f | [
"MIT"
] | 1 | 2019-07-19T04:06:34.000Z | 2019-09-07T14:08:03.000Z | setup.py | yurytsoy/gwr | 0258ccc6b8f36a28bee2b79e82703c463ebbcc8f | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='gwr',
version='0.1',
description='Implementation of the Grow When Required network',
url='http://github.com/yurytsoy/gwr',
author='Yury Tsoy',
author_email='yurytsoy@gmail.com',
license='MIT',
packages=['gwr'],
install_requires=[
... | 24.5625 | 69 | 0.592875 | 43 | 393 | 5.348837 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.267176 | 393 | 15 | 70 | 26.2 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0.335878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 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 |
81ce84f41fab2b17ad4b4f75f9e53b9e384f3f84 | 1,452 | py | Python | cgi-bin/newuser.py | Mikey-Beep/DockerSVN | 9eb68ead9ca852a85f86c0b4e174570ed17506e2 | [
"MIT"
] | null | null | null | cgi-bin/newuser.py | Mikey-Beep/DockerSVN | 9eb68ead9ca852a85f86c0b4e174570ed17506e2 | [
"MIT"
] | null | null | null | cgi-bin/newuser.py | Mikey-Beep/DockerSVN | 9eb68ead9ca852a85f86c0b4e174570ed17506e2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Import modules for CGI handling
import cgi, cgitb, subprocess
cgitb.enable()
def check_user(user_name):
command = ['htpasswd', '-vb', '/etc/subversion/passwd', user_name, '-']
return subprocess.run(command, stdout = subprocess.DEVNULL, stderr = subprocess.DEVNULL).returncode
def chec... | 31.565217 | 103 | 0.705923 | 199 | 1,452 | 4.939698 | 0.376884 | 0.081384 | 0.073245 | 0.069176 | 0.412004 | 0.306205 | 0.166836 | 0.166836 | 0.166836 | 0.166836 | 0 | 0.004827 | 0.143939 | 1,452 | 45 | 104 | 32.266667 | 0.786002 | 0.073003 | 0 | 0.176471 | 0 | 0 | 0.256334 | 0.074516 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0.294118 | 0.029412 | 0.029412 | 0.205882 | 0.264706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
81d5e9009d76fea9f5f3b48e74c7957323ba5539 | 418 | py | Python | Weekly Assignments/Week 11/Week 11_support_files/simple2.py | abhishekb101/Skill-Lync-Python-programming | 306883da48cca0719beb96c3ee00ab89de9e2fb0 | [
"MIT"
] | null | null | null | Weekly Assignments/Week 11/Week 11_support_files/simple2.py | abhishekb101/Skill-Lync-Python-programming | 306883da48cca0719beb96c3ee00ab89de9e2fb0 | [
"MIT"
] | null | null | null | Weekly Assignments/Week 11/Week 11_support_files/simple2.py | abhishekb101/Skill-Lync-Python-programming | 306883da48cca0719beb96c3ee00ab89de9e2fb0 | [
"MIT"
] | null | null | null | from tkinter import *
root = Tk()
frame = LabelFrame(root, padx = 15, pady = 15)
frame.pack(padx = 10, pady = 10)
my_menu = Menu(root)
root.config(menu = my_menu)
def out():
pass
#Create menu item
file_menu = Menu(my_menu)
my_menu.add_cascade(label = 'File' , menu = file_menu)
file_menu.add_command(label = '... | 19 | 58 | 0.691388 | 66 | 418 | 4.212121 | 0.439394 | 0.143885 | 0.107914 | 0.115108 | 0.165468 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022857 | 0.162679 | 418 | 22 | 59 | 19 | 0.771429 | 0.038278 | 0 | 0 | 0 | 0 | 0.032338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.076923 | 0 | 0.153846 | 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 |
81dcb814823152cbdce141489283c840e298c856 | 439 | py | Python | WebAXEL/migrations/squashed_migrations/0051_robot_image.py | xhackax47/AXEL_WEB | 917cdbdd79ae364327135e09abce9d058dc1271a | [
"MIT"
] | 1 | 2020-01-17T10:51:21.000Z | 2020-01-17T10:51:21.000Z | WebAXEL/migrations/squashed_migrations/0051_robot_image.py | xhackax47/AXEL_WEB | 917cdbdd79ae364327135e09abce9d058dc1271a | [
"MIT"
] | 8 | 2021-03-30T12:35:54.000Z | 2022-03-12T00:11:34.000Z | WebAXEL/migrations/squashed_migrations/0051_robot_image.py | xhackax47/AXEL_WEB | 917cdbdd79ae364327135e09abce9d058dc1271a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.1 on 2020-01-08 10:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('WebAXEL', '0050_auto_20200108_1117'),
]
operations = [
migrations.AddField(
model_name='robot',
name='image',
... | 23.105263 | 107 | 0.617312 | 50 | 439 | 5.3 | 0.82 | 0.067925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095385 | 0.259681 | 439 | 18 | 108 | 24.388889 | 0.72 | 0.102506 | 0 | 0 | 1 | 0 | 0.173469 | 0.058673 | 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 |
81e2b01942d02fdb683c441ce6ca4b916a6b8e48 | 6,477 | py | Python | mods/TowerofHanoi/client.py | thermalpilot/opennero | 1bb1ba083cf2576e09bb7cfeac013d6940a47afe | [
"BSD-3-Clause"
] | 215 | 2015-08-26T19:41:28.000Z | 2022-01-19T13:23:17.000Z | mods/TowerofHanoi/client.py | ikarpov/opennero | 43e12a1bcba6e228639db3886fec1dc47ddc24cb | [
"BSD-3-Clause"
] | 6 | 2015-11-03T19:40:24.000Z | 2019-10-15T11:19:32.000Z | mods/TowerofHanoi/client.py | ikarpov/opennero | 43e12a1bcba6e228639db3886fec1dc47ddc24cb | [
"BSD-3-Clause"
] | 56 | 2015-08-26T19:42:05.000Z | 2022-02-26T16:45:41.000Z | from OpenNero import *
from random import seed, randint
# add the key and mouse bindings
from inputConfig import createInputMapping, switchToHub
from common import *
import common.gui as gui
from TowerofHanoi.module import getMod, delMod
from TowerofHanoi.constants import *
class UI:
pass
def CreateGui(guiMan,... | 39.736196 | 154 | 0.67207 | 807 | 6,477 | 5.311029 | 0.26518 | 0.050397 | 0.044097 | 0.048297 | 0.221185 | 0.160289 | 0.153056 | 0.10126 | 0.085394 | 0.059263 | 0 | 0.034784 | 0.205496 | 6,477 | 162 | 155 | 39.981481 | 0.798096 | 0.090011 | 0 | 0.2 | 0 | 0 | 0.061048 | 0.010985 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008333 | 0.058333 | null | null | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
81e5a7f75dbae2949b9b4b48c3546005594eb96b | 5,133 | py | Python | tools/sim_data_gen.py | Junsong-Wang/AccDNN | 9520ecd844448089e8b972718a0791936460a9d1 | [
"Apache-2.0"
] | 2 | 2020-04-05T10:57:23.000Z | 2021-03-29T08:17:33.000Z | tools/sim_data_gen.py | microideax/AccDNN | 9520ecd844448089e8b972718a0791936460a9d1 | [
"Apache-2.0"
] | null | null | null | tools/sim_data_gen.py | microideax/AccDNN | 9520ecd844448089e8b972718a0791936460a9d1 | [
"Apache-2.0"
] | 2 | 2019-12-19T13:52:44.000Z | 2019-12-26T07:57:41.000Z | import sys
import os
#sys.path.append(os.path.abspath(os.path.join('..')))
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import caffe
import numpy as np
import argparse
from settings import *
from util.data import mat_dump_int, mat_dump_float, mat2uint16, uint16_dump_hex_aligned
import mo... | 41.731707 | 131 | 0.661212 | 711 | 5,133 | 4.462729 | 0.246132 | 0.121021 | 0.07942 | 0.050425 | 0.296565 | 0.254018 | 0.166404 | 0.166404 | 0.110306 | 0.07942 | 0 | 0.031818 | 0.228521 | 5,133 | 122 | 132 | 42.07377 | 0.769444 | 0.159361 | 0 | 0.1 | 0 | 0 | 0.062398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088889 | null | null | 0.011111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c491be41b8e97f04eb9243312088c07bebeeb04b | 803 | py | Python | demos/cpu/cpu/systems/cpu.py | adriendelsalle/demos | 70c4f5f21d615541b51b6350c1926ac985aa83de | [
"BSD-3-Clause"
] | null | null | null | demos/cpu/cpu/systems/cpu.py | adriendelsalle/demos | 70c4f5f21d615541b51b6350c1926ac985aa83de | [
"BSD-3-Clause"
] | null | null | null | demos/cpu/cpu/systems/cpu.py | adriendelsalle/demos | 70c4f5f21d615541b51b6350c1926ac985aa83de | [
"BSD-3-Clause"
] | null | null | null | from cosapp.systems import System
class CPU(System):
"""
Evaluate thermal power generated by CPU
"""
def setup(self):
# inputs
self.add_inward("usage", 20.0, desc="Usage percentage")
self.add_inward("tdp", 105.0, unit="W", desc="Thermal Design Power")
self.add_inward("... | 33.458333 | 97 | 0.610212 | 112 | 803 | 4.276786 | 0.4375 | 0.102296 | 0.135699 | 0.06263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037157 | 0.229141 | 803 | 23 | 98 | 34.913043 | 0.736672 | 0.082192 | 0 | 0 | 1 | 0 | 0.25766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | 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 |
c49af1ad61af42ba4f1f5f41a78ae305424782a6 | 699 | py | Python | doughnuts/libs/functions/php_sql.py | MorouU/Doughnuts | ca4777551b27e6dbe9015827ecf091b1dafcd064 | [
"MIT"
] | 5 | 2020-10-09T05:01:34.000Z | 2020-11-15T08:38:06.000Z | doughnuts/libs/functions/php_sql.py | SkyBlueEternal/Doughnuts | 8d82cffd3e4867f5e87ce35bdcf53678049c579c | [
"MIT"
] | 1 | 2020-11-10T03:44:57.000Z | 2020-11-10T03:44:57.000Z | doughnuts/libs/functions/php_sql.py | SkyBlueEternal/Doughnuts | 8d82cffd3e4867f5e87ce35bdcf53678049c579c | [
"MIT"
] | null | null | null |
def get_php_handle__sql_command(connect_type):
if (connect_type == "pdo"):
return """try{%s
$r=$con->query(base64_decode('%s'));
$rows=$r->fetchAll(PDO::FETCH_ASSOC);
foreach($rows[0] as $k=>$v){
echo "$k"."%s";
}
echo "%s";
foreach($rows as $array){foreach($array as $k=>$v){echo "$v"."%s";};echo "%s";... | 26.884615 | 82 | 0.565093 | 105 | 699 | 3.638095 | 0.371429 | 0.115183 | 0.041885 | 0.08377 | 0.549738 | 0.549738 | 0.549738 | 0.549738 | 0.549738 | 0.403141 | 0 | 0.010101 | 0.150215 | 699 | 25 | 83 | 27.96 | 0.632997 | 0 | 0 | 0.333333 | 0 | 0.083333 | 0.743553 | 0.267908 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0 | 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 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c4a63057f1c007904072501c5241ccbd402c1da0 | 1,867 | py | Python | scripts/plotter.py | chris-wood/ccnx-fwdharness | 6c259ac3fc888f3b6b196bc90356793ae6a04aa0 | [
"MIT"
] | 1 | 2017-09-04T20:20:34.000Z | 2017-09-04T20:20:34.000Z | scripts/plotter.py | chris-wood/ccnx-fwdharness | 6c259ac3fc888f3b6b196bc90356793ae6a04aa0 | [
"MIT"
] | null | null | null | scripts/plotter.py | chris-wood/ccnx-fwdharness | 6c259ac3fc888f3b6b196bc90356793ae6a04aa0 | [
"MIT"
] | null | null | null | import sys
import numpy as np
import matplotlib.pyplot as plt
class Experiment(object):
def __init__(self, name):
self.name = name
self.extract()
self.process()
def extract(self):
data = self.name[0:self.name.index(".")].split("_")
self.n = int(data[1])
self.min... | 27.455882 | 150 | 0.591859 | 262 | 1,867 | 4.160305 | 0.412214 | 0.051376 | 0.016514 | 0.018349 | 0.082569 | 0.082569 | 0.036697 | 0 | 0 | 0 | 0 | 0.015816 | 0.254954 | 1,867 | 67 | 151 | 27.865672 | 0.767793 | 0.051955 | 0 | 0.039216 | 0 | 0 | 0.035755 | 0.016459 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c4aedb7c475d38c98f8f9ca4f4e4c16169ac0dc2 | 1,400 | py | Python | chapter3/condel/setup.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | 1 | 2015-12-22T00:53:18.000Z | 2015-12-22T00:53:18.000Z | chapter3/condel/setup.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | chapter3/condel/setup.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | """
Condel
========
"""
#import distribute_setup
#distribute_setup.use_setuptools()
from setuptools import setup, find_packages
from condel import VERSION, AUTHORS, AUTHORS_EMAIL
setup(
name = "Condel",
version = VERSION,
packages = find_packages(),
install_requires = [
"bgcore>=0.3.1",
],
scripts = [
... | 23.333333 | 63 | 0.686429 | 157 | 1,400 | 5.993631 | 0.535032 | 0.082891 | 0.025505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005085 | 0.157143 | 1,400 | 59 | 64 | 23.728814 | 0.792373 | 0.315714 | 0 | 0.057143 | 0 | 0 | 0.455319 | 0.046809 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.057143 | 0 | 0.057143 | 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 |
c4b56a8608eb1ffe4c0426f515b277d43787f9b9 | 7,742 | py | Python | bncs/utils/buffer.py | Davnit/bncs.py | e5de8dd5bce0004c6ced4d67af3a5084cb5f9dc0 | [
"MIT"
] | 2 | 2019-04-22T23:55:11.000Z | 2020-06-28T22:41:59.000Z | bncs/utils/buffer.py | Davnit/bncs.py | e5de8dd5bce0004c6ced4d67af3a5084cb5f9dc0 | [
"MIT"
] | 1 | 2022-02-08T13:17:22.000Z | 2022-02-08T21:20:37.000Z | bncs/utils/buffer.py | Davnit/bncs.py | e5de8dd5bce0004c6ced4d67af3a5084cb5f9dc0 | [
"MIT"
] | 3 | 2019-03-09T12:25:28.000Z | 2020-02-09T11:02:19.000Z |
from calendar import timegm
from datetime import datetime, timedelta, tzinfo
from socket import inet_ntoa, inet_aton
from struct import pack, unpack, calcsize
# Used for converting python datetime objects to and from FILETIME structures.
_EPOCH_AS_FILETIME = 116444736000000000
_HUNDREDS_OF_NANOS = 10000000
_ZERO = t... | 31.991736 | 109 | 0.590158 | 1,101 | 7,742 | 4.044505 | 0.17802 | 0.035931 | 0.032338 | 0.013474 | 0.272625 | 0.196946 | 0.152257 | 0.143274 | 0.143274 | 0.094768 | 0 | 0.023633 | 0.284035 | 7,742 | 241 | 110 | 32.124481 | 0.779722 | 0.245285 | 0 | 0.204225 | 0 | 0 | 0.038324 | 0 | 0 | 0 | 0.002865 | 0 | 0 | 1 | 0.246479 | false | 0 | 0.028169 | 0.06338 | 0.485915 | 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 |
c4c516da1daa94de835b2e7162773eefb481e30d | 767 | py | Python | setup.py | chsmith3/SE20-HW | 2dea35218dff09fc4ada99fd83b52d11f92e306b | [
"MIT"
] | null | null | null | setup.py | chsmith3/SE20-HW | 2dea35218dff09fc4ada99fd83b52d11f92e306b | [
"MIT"
] | null | null | null | setup.py | chsmith3/SE20-HW | 2dea35218dff09fc4ada99fd83b52d11f92e306b | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='SE20HWnew',
version='1.0.0',
description='Demonstrating tools for a good repo',
author='Caitlin Smith',
author_email='hmkachha@ncsu.edu',
url='https://github.com/chsmith/SE20-HW',
packages=find_packages(include=['se20hw', 'se20hw.*',... | 30.68 | 67 | 0.634941 | 86 | 767 | 5.593023 | 0.744186 | 0.049896 | 0.120582 | 0.133056 | 0.170478 | 0.170478 | 0.170478 | 0 | 0 | 0 | 0 | 0.026578 | 0.215124 | 767 | 24 | 68 | 31.958333 | 0.772425 | 0.070404 | 0 | 0 | 0 | 0 | 0.469014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 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 |
c4cf88d968dd5599fa044715803322bb78b9e861 | 280 | py | Python | truffle/get_abi.py | levex/group-project | 2a28b2704d557b77df9736bf68011638f6167c2a | [
"MIT"
] | null | null | null | truffle/get_abi.py | levex/group-project | 2a28b2704d557b77df9736bf68011638f6167c2a | [
"MIT"
] | 53 | 2017-11-16T16:32:44.000Z | 2018-01-06T12:38:45.000Z | truffle/get_abi.py | levex/group-project | 2a28b2704d557b77df9736bf68011638f6167c2a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import json
import sys
jsonFile = open(sys.argv[1], 'r')
values = json.load(jsonFile)
jsonFile.close()
abi_const_var_name = sys.argv[2]
print("const " + abi_const_var_name + " = " + json.dumps(values['abi']))
print("module.exports = " + abi_const_var_name)
| 25.454545 | 72 | 0.707143 | 44 | 280 | 4.295455 | 0.545455 | 0.126984 | 0.174603 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008097 | 0.117857 | 280 | 10 | 73 | 28 | 0.757085 | 0.071429 | 0 | 0 | 0 | 0 | 0.11583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
c4d10f923a9f54660f45f06d1b658c3d7ca4983f | 2,938 | py | Python | coin/exchanges/bitfinex.py | okwme/coinprice-indicator | ebb18e640ccfe0f7ebab7e4e5c216f0e37680aaf | [
"MIT"
] | null | null | null | coin/exchanges/bitfinex.py | okwme/coinprice-indicator | ebb18e640ccfe0f7ebab7e4e5c216f0e37680aaf | [
"MIT"
] | null | null | null | coin/exchanges/bitfinex.py | okwme/coinprice-indicator | ebb18e640ccfe0f7ebab7e4e5c216f0e37680aaf | [
"MIT"
] | null | null | null | # Bitfinex
# https://bitfinex.readme.io/v2/docs
# By Alessio Carrafa <ruzzico@gmail.com>
from exchange import Exchange, CURRENCY
class Bitfinex(Exchange):
name = "Bitfinex"
code = "bitfinex"
ticker = "https://api.bitfinex.com/v2/ticker/"
discovery = "https://api.bitfinex.com/v1/symbols"
default... | 34.97619 | 103 | 0.51838 | 310 | 2,938 | 4.858065 | 0.351613 | 0.043161 | 0.112218 | 0.181275 | 0.262948 | 0.247012 | 0 | 0 | 0 | 0 | 0 | 0.005747 | 0.289312 | 2,938 | 83 | 104 | 35.39759 | 0.715517 | 0.02791 | 0 | 0 | 0 | 0 | 0.293829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063492 | false | 0 | 0.015873 | 0.031746 | 0.253968 | 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 |
c4d1f94a37607396fad2a4e9d1dc2966afba3060 | 541 | py | Python | demo/matrix_transpose.py | neerajchhimwal/gradio | 97a2cb6cbd6babfb08bd31d79784a15df91fc324 | [
"Apache-2.0"
] | 5,481 | 2019-05-27T06:18:02.000Z | 2022-03-31T20:33:43.000Z | demo/matrix_transpose/run.py | cansik/gradio | 719d107d87abc472cb601f1374a25fbf25adf061 | [
"Apache-2.0"
] | 652 | 2019-06-18T20:16:03.000Z | 2022-03-31T19:36:16.000Z | demo/matrix_transpose/run.py | cansik/gradio | 719d107d87abc472cb601f1374a25fbf25adf061 | [
"Apache-2.0"
] | 366 | 2019-07-03T00:32:02.000Z | 2022-03-31T11:32:01.000Z | import gradio as gr
import numpy as np
def transpose(matrix):
return matrix.T
iface = gr.Interface(
transpose,
gr.inputs.Dataframe(type="numpy", datatype="number", row_count=5, col_count=3),
"numpy",
examples=[
[np.zeros((3,3)).tolist()],
[np.ones((2,2)).tolist()],
[np.ran... | 21.64 | 83 | 0.584104 | 75 | 541 | 4.066667 | 0.493333 | 0.104918 | 0.137705 | 0.206557 | 0.24918 | 0.24918 | 0.170492 | 0 | 0 | 0 | 0 | 0.058548 | 0.210721 | 541 | 24 | 84 | 22.541667 | 0.655738 | 0 | 0 | 0 | 0 | 0 | 0.044362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0.052632 | 0.210526 | 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 |
c4d43a9a9ca7cf532b10e6784955d54446ced05f | 3,396 | py | Python | azdevman/commands/config.py | kcraley/azdevman | 703267022bbcb93fd310b6537b1a84ea18f961e1 | [
"MIT"
] | null | null | null | azdevman/commands/config.py | kcraley/azdevman | 703267022bbcb93fd310b6537b1a84ea18f961e1 | [
"MIT"
] | 1 | 2021-06-01T23:22:52.000Z | 2021-06-01T23:22:52.000Z | azdevman/commands/config.py | kcraley/azdevman | 703267022bbcb93fd310b6537b1a84ea18f961e1 | [
"MIT"
] | null | null | null | import click
import json
from azdevman.utils.context import pass_context
@click.group('config')
@click.pass_obj
def config(ctx):
"""Configure azdevman local options"""
@config.command('current-context')
@click.pass_obj
def get_current_context(ctx):
"""Return the current context from the config file"""
_... | 38.590909 | 127 | 0.676678 | 427 | 3,396 | 5.208431 | 0.23185 | 0.107014 | 0.034622 | 0.033723 | 0.333633 | 0.292266 | 0.216277 | 0.216277 | 0.216277 | 0.216277 | 0 | 0.002949 | 0.201119 | 3,396 | 87 | 128 | 39.034483 | 0.816808 | 0.080683 | 0 | 0.347826 | 0 | 0 | 0.196053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.101449 | 0.043478 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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.