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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
98e36e6a3006959bb2c25495969420aff69c2d5f | 930 | py | Python | frappe/core/doctype/test/test.py | ssuda777/frappe | d3f3df2ce15154aecc1d9d6d07d947e72c2e8c6e | [
"MIT"
] | 1 | 2021-06-03T07:04:48.000Z | 2021-06-03T07:04:48.000Z | frappe/core/doctype/test/test.py | JMBodz/frappe | eb218a06d1cbfc3a8f1cc00ba8dac2c927d2f71d | [
"MIT"
] | 3 | 2021-02-27T11:50:14.000Z | 2021-05-03T06:48:49.000Z | frappe/core/doctype/test/test.py | JMBodz/frappe | eb218a06d1cbfc3a8f1cc00ba8dac2c927d2f71d | [
"MIT"
] | 2 | 2021-09-02T09:51:55.000Z | 2021-09-07T04:55:42.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2021, Frappe Technologies and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
import json
class test(Document):
def db_insert(self):
d = self.get_valid_dict(convert_dates_to_str=True)
with open("da... | 27.352941 | 58 | 0.710753 | 151 | 930 | 4.145695 | 0.370861 | 0.127796 | 0.095847 | 0.127796 | 0.515974 | 0.515974 | 0.515974 | 0.515974 | 0.515974 | 0.466454 | 0 | 0.006313 | 0.148387 | 930 | 34 | 59 | 27.352941 | 0.784091 | 0.16129 | 0 | 0.52381 | 0 | 0 | 0.099355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.095238 | 0 | 0.47619 | 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 |
98e64569ad60f4d2e151156d0b0a8411b45099e8 | 2,541 | py | Python | scripts/rpc/app.py | rivasiv/spdk | d0657f323051b5c6987627c2d836c6703b8980f2 | [
"BSD-3-Clause"
] | 1 | 2022-01-26T14:11:43.000Z | 2022-01-26T14:11:43.000Z | scripts/rpc/app.py | jlevon/spdk | aa22321aca961e15da330fe91c50502bb7c3e69b | [
"BSD-3-Clause"
] | null | null | null | scripts/rpc/app.py | jlevon/spdk | aa22321aca961e15da330fe91c50502bb7c3e69b | [
"BSD-3-Clause"
] | null | null | null | from .helpers import deprecated_alias
@deprecated_alias('kill_instance')
def spdk_kill_instance(client, sig_name):
"""Send a signal to the SPDK process.
Args:
sig_name: signal to send ("SIGINT", "SIGTERM", "SIGQUIT", "SIGHUP", or "SIGKILL")
"""
params = {'sig_name': sig_name}
return clien... | 23.747664 | 97 | 0.666667 | 309 | 2,541 | 5.320388 | 0.278317 | 0.065693 | 0.087591 | 0.053528 | 0.123479 | 0.048662 | 0.048662 | 0 | 0 | 0 | 0 | 0 | 0.234947 | 2,541 | 106 | 98 | 23.971698 | 0.845679 | 0.40181 | 0 | 0 | 0 | 0 | 0.201974 | 0.107821 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.033333 | 0 | 0.633333 | 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 |
98f8b5bf6f7c708a7d18e9c5b96c243c35a7e0c7 | 1,011 | py | Python | db_models/roundbattle.py | Teplitsa/false-security-1 | 9e5cc23c8bf324d923965bb2624cac4994891154 | [
"MIT"
] | 1 | 2020-10-01T17:44:26.000Z | 2020-10-01T17:44:26.000Z | db_models/roundbattle.py | Teplitsa/false-security-1 | 9e5cc23c8bf324d923965bb2624cac4994891154 | [
"MIT"
] | null | null | null | db_models/roundbattle.py | Teplitsa/false-security-1 | 9e5cc23c8bf324d923965bb2624cac4994891154 | [
"MIT"
] | 1 | 2021-10-05T12:09:07.000Z | 2021-10-05T12:09:07.000Z | from flask_sqlalchemy import SQLAlchemy
from globals import db
import db_models.game
import db_models.card
class RoundBattle(db.Model):
__tablename__ = 'roundbattle'
id = db.Column(db.Integer, primary_key=True)
roundId = db.Column(db.Integer, db.ForeignKey('gameround.id'), nullable=False)
round = db.re... | 43.956522 | 88 | 0.749753 | 121 | 1,011 | 6.173554 | 0.363636 | 0.085676 | 0.107095 | 0.136546 | 0.291834 | 0.208835 | 0.131191 | 0.131191 | 0.131191 | 0.131191 | 0 | 0 | 0.122651 | 1,011 | 23 | 89 | 43.956522 | 0.842165 | 0 | 0 | 0 | 0 | 0 | 0.079051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
98fd4b3e2938397a971bf1fe50d65e6be8f7ce6b | 639 | py | Python | 8.sets/2.add_set_item.py | Tazri/Python | f7ca625800229c8a7e20b64810d6e162ccb6b09f | [
"DOC"
] | null | null | null | 8.sets/2.add_set_item.py | Tazri/Python | f7ca625800229c8a7e20b64810d6e162ccb6b09f | [
"DOC"
] | null | null | null | 8.sets/2.add_set_item.py | Tazri/Python | f7ca625800229c8a7e20b64810d6e162ccb6b09f | [
"DOC"
] | null | null | null | # create sets
names = {'anonymous','tazri','farha'};
extra_name = {'tazri','farha','troy'};
name_list = {'solus','xenon','neon'};
name_tuple = ('helium','hydrogen');
print("names : ",names);
# add focasa in names
print("add 'focasa' than set : ");
names.add("focasa");
print(names);
# update method
print("\n\nadd ext... | 22.821429 | 57 | 0.688576 | 93 | 639 | 4.634409 | 0.290323 | 0.153132 | 0.111369 | 0.104408 | 0.348028 | 0.241299 | 0.241299 | 0.167053 | 0 | 0 | 0 | 0 | 0.128326 | 639 | 27 | 58 | 23.666667 | 0.773788 | 0.137715 | 0 | 0.235294 | 0 | 0 | 0.431193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.529412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c713bb1486c4b994252c11e50389e5fb8a61dcd5 | 479 | py | Python | tests/conftest.py | wsgfz/zmail | 70db57d9650c0ed56ebf9392990b1fc306edab51 | [
"MIT"
] | 317 | 2018-02-01T17:54:07.000Z | 2021-01-04T12:10:56.000Z | tests/conftest.py | wsgfz/zmail | 70db57d9650c0ed56ebf9392990b1fc306edab51 | [
"MIT"
] | 83 | 2018-02-19T17:59:30.000Z | 2021-01-08T07:55:59.000Z | tests/conftest.py | wsgfz/zmail | 70db57d9650c0ed56ebf9392990b1fc306edab51 | [
"MIT"
] | 100 | 2018-02-28T07:11:57.000Z | 2021-01-06T07:18:49.000Z | import json
import os
from typing import List, Tuple
import pytest
@pytest.fixture(scope='module')
def here():
return os.path.abspath(os.path.dirname(__file__))
@pytest.fixture(scope='module')
def accounts(here) -> List[Tuple] or None:
"""Return account list"""
accounts_path = os.path.join(here, 'confi... | 19.16 | 53 | 0.670146 | 69 | 479 | 4.550725 | 0.507246 | 0.076433 | 0.11465 | 0.152866 | 0.171975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194154 | 479 | 24 | 54 | 19.958333 | 0.813472 | 0.039666 | 0 | 0.133333 | 0 | 0 | 0.04185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0.066667 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c7159c71095dd045882197ac921e82852a408c29 | 1,515 | py | Python | src/pygerber/parser/parser.py | Argmaster/pygerber | 4761a5aa60ff1d11512fb44aabd103246d9a3019 | [
"MIT"
] | 3 | 2021-08-30T07:07:59.000Z | 2021-09-29T22:14:43.000Z | src/pygerber/parser/parser.py | Argmaster/pygerber | 4761a5aa60ff1d11512fb44aabd103246d9a3019 | [
"MIT"
] | 1 | 2021-09-26T13:28:49.000Z | 2021-09-26T13:28:49.000Z | src/pygerber/parser/parser.py | Argmaster/pygerber | 4761a5aa60ff1d11512fb44aabd103246d9a3019 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import annotations
from abc import ABC, abstractmethod
from typing import Deque
from pygerber.mathclasses import BoundingBox
from pygerber.renderer import Renderer
from pygerber.renderer.apertureset import ApertureSet
from pygerber.tokenizer import Tokenizer
from pygerber.token... | 29.705882 | 84 | 0.686469 | 183 | 1,515 | 5.437158 | 0.355191 | 0.048241 | 0.033166 | 0.030151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000862 | 0.234323 | 1,515 | 50 | 85 | 30.3 | 0.856897 | 0.013861 | 0 | 0.131579 | 0 | 0 | 0.049598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.078947 | 0.210526 | 0 | 0.473684 | 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 |
c71cebc8d6e8a552ad4b4f983f0b570394ec2ecf | 6,779 | py | Python | enas/cifar10/controller.py | j-varun/enas | 1a19ccbd7c06168ae51e0de2986b30ea01cce070 | [
"Apache-2.0"
] | 10 | 2018-05-07T15:59:55.000Z | 2021-04-18T12:51:14.000Z | enas/cifar10/controller.py | j-varun/enas | 1a19ccbd7c06168ae51e0de2986b30ea01cce070 | [
"Apache-2.0"
] | 4 | 2018-06-03T16:46:57.000Z | 2018-08-08T21:48:05.000Z | enas/cifar10/controller.py | j-varun/enas | 1a19ccbd7c06168ae51e0de2986b30ea01cce070 | [
"Apache-2.0"
] | 4 | 2018-05-25T04:39:56.000Z | 2019-04-29T05:08:25.000Z | import sys
import os
import time
import numpy as np
import tensorflow as tf
from enas.controller import Controller
from enas.utils import get_train_ops
from enas.common_ops import stack_lstm
from tensorflow.python.training import moving_averages
class ConvController(Controller):
def __init__(self,
... | 34.764103 | 78 | 0.638885 | 962 | 6,779 | 4.174636 | 0.181913 | 0.021165 | 0.026892 | 0.026892 | 0.242779 | 0.18252 | 0.11504 | 0.072709 | 0.072709 | 0.072709 | 0 | 0.013611 | 0.263018 | 6,779 | 194 | 79 | 34.943299 | 0.790232 | 0.005311 | 0 | 0.084337 | 0 | 0 | 0.018092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054217 | null | null | 0.024096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c71f35da748638b313e23dce37c93e4ab31c67ad | 17,188 | py | Python | finalcode/determine_square_function.py | LesterYHZ/Automated-Bridge-Inspection-Robot-Project | c3f4e12f9b60a8a6b041bf2b6d0461a1bb39c726 | [
"MIT"
] | 1 | 2020-04-15T01:17:06.000Z | 2020-04-15T01:17:06.000Z | finalcode/determine_square_function.py | LesterYHZ/Automated-Bridge-Inspection-Robot-Project | c3f4e12f9b60a8a6b041bf2b6d0461a1bb39c726 | [
"MIT"
] | null | null | null | finalcode/determine_square_function.py | LesterYHZ/Automated-Bridge-Inspection-Robot-Project | c3f4e12f9b60a8a6b041bf2b6d0461a1bb39c726 | [
"MIT"
] | 1 | 2020-04-13T16:45:06.000Z | 2020-04-13T16:45:06.000Z | #FOUR Ultrasonic sensors (HC-SR04) FUNCTION
#Version 1
#Goal: Assign four sensors to the four directions depending on the configuration
#When turn occurs, the sensor that aligns with each direction will change = FOUR CONFIGURATIONS
#Four sensors: sensor_1, sensor_2, sensor_3, sensor_4
#Four directions: se... | 35.149284 | 244 | 0.645567 | 2,322 | 17,188 | 4.596038 | 0.131352 | 0.015742 | 0.0134 | 0.01443 | 0.331241 | 0.29151 | 0.263774 | 0.247845 | 0.239224 | 0.178879 | 0 | 0.031455 | 0.271236 | 17,188 | 488 | 245 | 35.221311 | 0.820533 | 0.369502 | 0 | 0.248201 | 0 | 0 | 0.014992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010791 | null | null | 0.035971 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c721447bebece4c61657d5559842dad6aa74d555 | 3,389 | py | Python | src/filter/DatasetSimilarityFilter.py | sporreking/Evaluation-of-Synthetic-Face-Generation-Approaches | 480608524751c8f48445404ad92708133472cd0e | [
"MIT"
] | 1 | 2022-03-10T13:40:05.000Z | 2022-03-10T13:40:05.000Z | src/filter/DatasetSimilarityFilter.py | sporreking/Evaluation-of-Synthetic-Face-Generation-Approaches | 480608524751c8f48445404ad92708133472cd0e | [
"MIT"
] | 55 | 2022-03-09T13:59:11.000Z | 2022-03-31T14:58:47.000Z | src/filter/DatasetSimilarityFilter.py | sporreking/Evaluation-of-Synthetic-Face-Generation-Approaches | 480608524751c8f48445404ad92708133472cd0e | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import TYPE_CHECKING, Type, Any
from src.filter.SampleMetricFilter import SampleMetricFilter
from src.core.Setupable import SetupMode
from src.metric.DatasetSimilaritySampleMetric import DatasetSimilaritySampleMetric
import numpy as np
import pandas as pd
if TYPE_CHECKING... | 37.655556 | 100 | 0.684863 | 393 | 3,389 | 5.78626 | 0.379135 | 0.027704 | 0.042216 | 0.023747 | 0.047493 | 0.047493 | 0 | 0 | 0 | 0 | 0 | 0.004747 | 0.254057 | 3,389 | 89 | 101 | 38.078652 | 0.894778 | 0.386545 | 0 | 0.068182 | 0 | 0 | 0.048438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0.068182 | 0.204545 | 0.090909 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c736862bba12d812de8bc20d0a0138e206e4b79d | 1,581 | py | Python | qal/dal/tests/framework.py | OptimalBPM/qal | 4d7a31c0d68042b4110e1fa3e733711e0fdd473e | [
"Unlicense"
] | 3 | 2016-05-02T14:35:55.000Z | 2021-08-31T14:19:15.000Z | qal/dal/tests/framework.py | OptimalBPM/qal | 4d7a31c0d68042b4110e1fa3e733711e0fdd473e | [
"Unlicense"
] | null | null | null | qal/dal/tests/framework.py | OptimalBPM/qal | 4d7a31c0d68042b4110e1fa3e733711e0fdd473e | [
"Unlicense"
] | 1 | 2018-03-18T13:19:52.000Z | 2018-03-18T13:19:52.000Z | """
Created on Oct 6, 2010
@author: Nicklas Boerjesson
"""
import json
import os
from qal.common.resources import Resources
from qal.dal.dal import DatabaseAbstractionLayer
from qal.dal.types import DB_MYSQL, DB_POSTGRESQL, DB_ORACLE, DB_DB2, DB_SQLSERVER
def get_default_dal(_db_type, _db_name=""):
"""Returns ... | 31 | 110 | 0.71284 | 218 | 1,581 | 4.87156 | 0.440367 | 0.033898 | 0.045198 | 0.042373 | 0.151601 | 0.129944 | 0.080979 | 0.080979 | 0.080979 | 0.080979 | 0 | 0.005512 | 0.196711 | 1,581 | 50 | 111 | 31.62 | 0.830709 | 0.206831 | 0 | 0 | 0 | 0 | 0.096985 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.111111 | false | 0 | 0.185185 | 0 | 0.407407 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c73956ec3b2a59a10ebb09c16e16e67867f4ed65 | 1,221 | py | Python | [2] AD-HOC/1708 - Volta.py | tiago040/URI-SOLUTIONS | 519d3950252a6002e8926416b2f8217ba08fe721 | [
"MIT"
] | 1 | 2022-03-15T03:03:26.000Z | 2022-03-15T03:03:26.000Z | [2] AD-HOC/1708 - Volta.py | tiago040/URI-SOLUTIONS | 519d3950252a6002e8926416b2f8217ba08fe721 | [
"MIT"
] | null | null | null | [2] AD-HOC/1708 - Volta.py | tiago040/URI-SOLUTIONS | 519d3950252a6002e8926416b2f8217ba08fe721 | [
"MIT"
] | null | null | null | '''
No automobilismo é bastante comum que o líder de uma prova, em determinado momento, ultrapasse o último colocado. O líder, neste momento, está uma volta à frente do último colocado, que se torna, assim, um retardatário. Neste problema, dados os tempos que o piloto mais rápido e o piloto mais lento levam para comple... | 64.263158 | 697 | 0.751024 | 214 | 1,221 | 4.294393 | 0.476636 | 0.021763 | 0.059848 | 0.045702 | 0.137106 | 0.137106 | 0.137106 | 0.137106 | 0.137106 | 0.137106 | 0 | 0.011078 | 0.186732 | 1,221 | 19 | 698 | 64.263158 | 0.912387 | 0.858313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7397e2f44439ac1d56a198431b0d6c433a5f5e0 | 534 | py | Python | WEEKS/CD_Sata-Structures/general/practice/PYTHON/27 - variableName.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/general/practice/PYTHON/27 - variableName.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/general/practice/PYTHON/27 - variableName.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | def variableName(name):
str_name = [i for i in str(name)]
non_acc_chars = [
" ",
">",
"<",
":",
"-",
"|",
".",
",",
"!",
"[",
"]",
"'",
"/",
"@",
"#",
"&",
"%",
"?",
... | 17.8 | 58 | 0.299625 | 51 | 534 | 2.980392 | 0.529412 | 0.230263 | 0.144737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040741 | 0.494382 | 534 | 29 | 59 | 18.413793 | 0.522222 | 0 | 0 | 0.068966 | 0 | 0 | 0.035581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c73df05156859415b2498c3c76a52aaf81646a4f | 13,463 | py | Python | tukey/files/views.py | Li-Ko/tukey_portal | 8dc395ef1a1ebaa806d23c88ce51460e6c202921 | [
"Apache-2.0"
] | null | null | null | tukey/files/views.py | Li-Ko/tukey_portal | 8dc395ef1a1ebaa806d23c88ce51460e6c202921 | [
"Apache-2.0"
] | null | null | null | tukey/files/views.py | Li-Ko/tukey_portal | 8dc395ef1a1ebaa806d23c88ce51460e6c202921 | [
"Apache-2.0"
] | null | null | null | # views.py
from horizon import api
from horizon import exceptions
from horizon import forms
from horizon import tabs
from horizon import tables
from horizon import workflows
from horizon.decorators import require_auth
from django.core.urlresolvers import reverse, reverse_lazy
from django.utils.translation import uge... | 33.826633 | 118 | 0.739137 | 1,471 | 13,463 | 6.494222 | 0.14344 | 0.037685 | 0.050246 | 0.065948 | 0.542866 | 0.510102 | 0.466974 | 0.434419 | 0.402596 | 0.402596 | 0 | 0.004438 | 0.163188 | 13,463 | 397 | 119 | 33.911839 | 0.843511 | 0.343831 | 0 | 0.265537 | 0 | 0 | 0.095413 | 0.062536 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067797 | null | null | 0.00565 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c741073a1884fbe45c712f5fa49865847e9a762c | 1,806 | py | Python | dayu_widgets/__init__.py | kanbang/dayu_widgets | 6ff101e6c6f8fcf10e5cb578023a12ccdcef9164 | [
"MIT"
] | 1 | 2019-12-05T11:39:54.000Z | 2019-12-05T11:39:54.000Z | dayu_widgets/__init__.py | kanbang/dayu_widgets | 6ff101e6c6f8fcf10e5cb578023a12ccdcef9164 | [
"MIT"
] | null | null | null | dayu_widgets/__init__.py | kanbang/dayu_widgets | 6ff101e6c6f8fcf10e5cb578023a12ccdcef9164 | [
"MIT"
] | null | null | null | import os
DEFAULT_STATIC_FOLDER = os.path.join(__path__[0], 'static')
CUSTOM_STATIC_FOLDERS = []
from theme import MTheme
dayu_theme = MTheme('dark', primary_color=MTheme.orange)
# dayu_theme.default_size = dayu_theme.small
# dayu_theme = MTheme('light')
from spin_box import MSpinBox, MDoubleSpinBox, MDateTimeEdit, ... | 36.12 | 94 | 0.858804 | 228 | 1,806 | 6.631579 | 0.526316 | 0.02381 | 0.02381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000624 | 0.112957 | 1,806 | 49 | 95 | 36.857143 | 0.943196 | 0.039313 | 0 | 0 | 0 | 0 | 0.005774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.886364 | 0 | 0.886364 | 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 |
c741dce0c124b848442e11333a432a3d979ae164 | 717 | py | Python | python/372.delete-node-in-the-middle-of-singly-linked-lis.py | t2krew/lintcode-solution | 22dd290ace9910ce4a927e630a6a0cdca7cb99dc | [
"MIT"
] | 3 | 2017-05-14T07:41:21.000Z | 2017-11-25T13:12:30.000Z | python/372.delete-node-in-the-middle-of-singly-linked-lis.py | t2krew/lintcode-solution | 22dd290ace9910ce4a927e630a6a0cdca7cb99dc | [
"MIT"
] | null | null | null | python/372.delete-node-in-the-middle-of-singly-linked-lis.py | t2krew/lintcode-solution | 22dd290ace9910ce4a927e630a6a0cdca7cb99dc | [
"MIT"
] | null | null | null | # 372.在O(1)时间复杂度删除链表节点 / delete-node-in-the-middle-of-singly-linked-lis
# http://www.lintcode.com/problem/delete-node-in-the-middle-of-singly-linked-list
# 给定一个单链表中的一个等待被删除的节点(非表头或表尾)。请在在O(1)时间复杂度删除该链表节点。
# Exa
# 给定 1->2->3->4,和节点 3,删除 3 之后,链表应该变为 1->2->4。
"""
Definition of ListNode
class ListNode(object):
def ... | 27.576923 | 81 | 0.633194 | 108 | 717 | 4.166667 | 0.527778 | 0.071111 | 0.06 | 0.066667 | 0.155556 | 0.155556 | 0.155556 | 0.155556 | 0 | 0 | 0 | 0.025547 | 0.235704 | 717 | 26 | 82 | 27.576923 | 0.79562 | 0.659693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0.142857 | false | 0 | 0 | 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 |
c74228883fb704c08459f8352d7b2fa6ae8e9e35 | 661 | py | Python | todo/migrations/0012_auto_20190314_2153.py | sudiptog81/django-todo | de610ebb17155cce2ccf2f720806fcd5b9877640 | [
"MIT"
] | null | null | null | todo/migrations/0012_auto_20190314_2153.py | sudiptog81/django-todo | de610ebb17155cce2ccf2f720806fcd5b9877640 | [
"MIT"
] | null | null | null | todo/migrations/0012_auto_20190314_2153.py | sudiptog81/django-todo | de610ebb17155cce2ccf2f720806fcd5b9877640 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.7 on 2019-03-14 16:23
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('todo', '0011_auto_20190314_1930'),
]
operations = [
migrations.AddField(
model_name='todoitem',
name... | 26.44 | 99 | 0.603631 | 73 | 661 | 5.369863 | 0.589041 | 0.045918 | 0.086735 | 0.107143 | 0.336735 | 0.336735 | 0.336735 | 0.336735 | 0.336735 | 0.336735 | 0 | 0.14405 | 0.27534 | 661 | 24 | 100 | 27.541667 | 0.674322 | 0.068079 | 0 | 0.333333 | 1 | 0 | 0.104235 | 0.037459 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c74444ba088804ce93ddfae7f6e831c17b1cf039 | 1,632 | py | Python | Python/palindrome-permutation-ii.py | xiaohalo/LeetCode | 68211ba081934b21bb1968046b7e3c1459b3da2d | [
"MIT"
] | 9 | 2019-06-30T07:15:18.000Z | 2022-02-10T20:13:40.000Z | Python/palindrome-permutation-ii.py | pnandini/LeetCode | e746c3298be96dec8e160da9378940568ef631b1 | [
"MIT"
] | 1 | 2018-07-10T03:28:43.000Z | 2018-07-10T03:28:43.000Z | Python/palindrome-permutation-ii.py | pnandini/LeetCode | e746c3298be96dec8e160da9378940568ef631b1 | [
"MIT"
] | 9 | 2019-01-16T22:16:49.000Z | 2022-02-06T17:33:41.000Z | # Time: O(n * n!)
# Space: O(n)
import collections
import itertools
class Solution(object):
def generatePalindromes(self, s):
"""
:type s: str
:rtype: List[str]
"""
cnt = collections.Counter(s)
mid = ''.join(k for k, v in cnt.iteritems() if v % 2)
chars = ... | 33.306122 | 98 | 0.533088 | 209 | 1,632 | 4.133971 | 0.263158 | 0.013889 | 0.023148 | 0.032407 | 0.547454 | 0.4375 | 0.321759 | 0.321759 | 0.321759 | 0.321759 | 0 | 0.010879 | 0.324142 | 1,632 | 48 | 99 | 34 | 0.772439 | 0.05576 | 0 | 0.1875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.375 | 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 |
c7447aa64a3ec3278be1c840daecdb5c5545e345 | 1,633 | py | Python | instaweight/utils/resnet_test.py | ma02954AteebAhmed/InstaWeight | a1ef58d60cfecb867d78b87adc6df8929216dd10 | [
"Apache-2.0"
] | null | null | null | instaweight/utils/resnet_test.py | ma02954AteebAhmed/InstaWeight | a1ef58d60cfecb867d78b87adc6df8929216dd10 | [
"Apache-2.0"
] | 14 | 2020-07-02T09:38:46.000Z | 2022-03-12T00:39:05.000Z | instaweight/utils/resnet_test.py | ma02954AteebAhmed/InstaWeight | a1ef58d60cfecb867d78b87adc6df8929216dd10 | [
"Apache-2.0"
] | 1 | 2020-07-02T06:15:50.000Z | 2020-07-02T06:15:50.000Z | import numpy as np
from keras import Model
from keras.layers import Dense , GlobalAveragePooling2D
from PIL import Image, ImageDraw
from keras.applications import resnet
import numpy as np
def create_model(trainable=False):
#model = vgg16.VGG16(include_top=False, weights='imagenet',input_shape=(IMAGE_SIZE_H,IMAGE... | 32.019608 | 123 | 0.69259 | 231 | 1,633 | 4.82684 | 0.380952 | 0.128251 | 0.161435 | 0.215247 | 0.152466 | 0.071749 | 0.071749 | 0 | 0 | 0 | 0 | 0.033837 | 0.149418 | 1,633 | 50 | 124 | 32.66 | 0.768898 | 0.07226 | 0 | 0.052632 | 0 | 0 | 0.140687 | 0.124174 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.157895 | 0 | 0.210526 | 0.026316 | 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 |
c7457f418c35888411ca8b50cdb8dac4b63e2b70 | 5,930 | py | Python | test/dlc_tests/benchmark/sagemaker/tensorflow/training/test_performance_tensorflow_sm_training.py | Elizaaaaa/deep-learning-containers | 6274ecb264645070d11b27e5c7e60d2e4110537d | [
"Apache-2.0"
] | 1 | 2021-07-14T20:13:12.000Z | 2021-07-14T20:13:12.000Z | test/dlc_tests/benchmark/sagemaker/tensorflow/training/test_performance_tensorflow_sm_training.py | Elizaaaaa/deep-learning-containers | 6274ecb264645070d11b27e5c7e60d2e4110537d | [
"Apache-2.0"
] | null | null | null | test/dlc_tests/benchmark/sagemaker/tensorflow/training/test_performance_tensorflow_sm_training.py | Elizaaaaa/deep-learning-containers | 6274ecb264645070d11b27e5c7e60d2e4110537d | [
"Apache-2.0"
] | null | null | null | import os
import re
import time
from random import Random
import pytest
from invoke.context import Context
from src.benchmark_metrics import (
TENSORFLOW2_SM_TRAINING_CPU_1NODE_THRESHOLD,
TENSORFLOW2_SM_TRAINING_CPU_4NODE_THRESHOLD,
TENSORFLOW2_SM_TRAINING_GPU_1NODE_THRESHOLD,
TENSORFLOW2_SM_TRAINING... | 40.067568 | 120 | 0.672681 | 790 | 5,930 | 4.807595 | 0.277215 | 0.017378 | 0.023697 | 0.025276 | 0.349131 | 0.328594 | 0.245919 | 0.199579 | 0.173776 | 0.09426 | 0 | 0.017773 | 0.212479 | 5,930 | 147 | 121 | 40.340136 | 0.795503 | 0.109612 | 0 | 0.074766 | 0 | 0.018692 | 0.306399 | 0.096275 | 0 | 0 | 0 | 0.013605 | 0.018692 | 1 | 0.037383 | false | 0 | 0.074766 | 0 | 0.121495 | 0.018692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c75356f3bbe6685122d8f77d60937e6270e3dc5d | 1,987 | py | Python | src/pretalx/agenda/phrases.py | td00/pretalx | aff450de9420fca167e04345fa24ee7140fae819 | [
"Apache-2.0"
] | null | null | null | src/pretalx/agenda/phrases.py | td00/pretalx | aff450de9420fca167e04345fa24ee7140fae819 | [
"Apache-2.0"
] | null | null | null | src/pretalx/agenda/phrases.py | td00/pretalx | aff450de9420fca167e04345fa24ee7140fae819 | [
"Apache-2.0"
] | null | null | null | from django.utils.translation import ugettext as _
from pretalx.common.phrases import BasePhrases, Phrases
class AgendaPhrases(Phrases, app='agenda'):
feedback_success = [
_('Thank you for your feedback!'),
_('Thanks, we (and our speakers) appreciate your feedback!'),
]
changelog_unchange... | 48.463415 | 135 | 0.692501 | 274 | 1,987 | 4.835766 | 0.489051 | 0.024151 | 0.015094 | 0.028679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220936 | 1,987 | 40 | 136 | 49.675 | 0.855297 | 0 | 0 | 0 | 0 | 0.028571 | 0.520382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.628571 | 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 |
c75f0648f3fd62f683474042a155699021d69a5a | 4,062 | py | Python | services/pipeline/emission/analysis/modelling/user_model/query.py | e-mission/e-mission-ng-aggregator | 0ce43b93192459ac1864b8e88e96b83ea0929aa2 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | services/pipeline/emission/analysis/modelling/user_model/query.py | e-mission/e-mission-ng-aggregator | 0ce43b93192459ac1864b8e88e96b83ea0929aa2 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 21 | 2018-12-19T07:09:45.000Z | 2021-12-13T20:07:36.000Z | services/pipeline/emission/analysis/modelling/user_model/query.py | e-mission/e-mission-ng-aggregator | 0ce43b93192459ac1864b8e88e96b83ea0929aa2 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 2 | 2019-05-02T16:20:14.000Z | 2019-05-02T17:33:42.000Z | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
# Standard imports
from future import standard_library
standard_library.install_aliases()
from builtins import *
import sys
import datetime
import uuid
import logging
impo... | 37.962617 | 187 | 0.663959 | 545 | 4,062 | 4.669725 | 0.304587 | 0.030648 | 0.031434 | 0.018861 | 0.071513 | 0.023576 | 0 | 0 | 0 | 0 | 0 | 0.001282 | 0.231905 | 4,062 | 106 | 188 | 38.320755 | 0.814423 | 0.020187 | 0 | 0.028571 | 0 | 0 | 0.111044 | 0.011833 | 0 | 0 | 0 | 0.009434 | 0 | 0 | null | null | 0 | 0.242857 | null | null | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7603e83be49bca255f11d4ab9e54446f26d44c4 | 838 | py | Python | demos/quickstart-i18n/src/factory.py | akornatskyy/wheezy.web | 417834db697cf1f78f3a60cc880b9fd25d40c6de | [
"MIT"
] | 17 | 2020-08-29T18:45:51.000Z | 2022-03-02T19:37:13.000Z | demos/quickstart-i18n/src/factory.py | akornatskyy/wheezy.web | 417834db697cf1f78f3a60cc880b9fd25d40c6de | [
"MIT"
] | 29 | 2020-07-18T04:34:03.000Z | 2021-07-06T09:42:36.000Z | demos/quickstart-i18n/src/factory.py | akornatskyy/wheezy.web | 417834db697cf1f78f3a60cc880b9fd25d40c6de | [
"MIT"
] | 1 | 2022-03-14T08:41:42.000Z | 2022-03-14T08:41:42.000Z | """
"""
from config import config
class Factory(object):
def __init__(self, session_name, **context):
self.context = context
self.session = sessions[session_name]()
self.factory = RepositoryFactory(self.session)
def __enter__(self):
self.session.__enter__()
return sel... | 21.487179 | 62 | 0.680191 | 95 | 838 | 5.663158 | 0.410526 | 0.143123 | 0.048327 | 0.063197 | 0.089219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207637 | 838 | 38 | 63 | 22.052632 | 0.810241 | 0.034606 | 0 | 0 | 0 | 0 | 0.02375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.086957 | 0 | 0.478261 | 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 |
c768a34febefe97bbfd6f3cabd950bb035e19656 | 22,266 | py | Python | tools/telemetry/telemetry/page/page_runner.py | 7kbird/chrome | f56688375530f1003e34c34f441321977c5af3c3 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/telemetry/telemetry/page/page_runner.py | 7kbird/chrome | f56688375530f1003e34c34f441321977c5af3c3 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/telemetry/telemetry/page/page_runner.py | 7kbird/chrome | f56688375530f1003e34c34f441321977c5af3c3 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T07:23:37.000Z | 2020-11-04T07:23:37.000Z | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import collections
import logging
import optparse
import os
import random
import sys
import tempfile
import time
from telemetry import decorators
from telem... | 38.126712 | 80 | 0.692581 | 2,741 | 22,266 | 5.457497 | 0.18351 | 0.02059 | 0.010027 | 0.009225 | 0.272478 | 0.185106 | 0.128083 | 0.119727 | 0.097065 | 0.079016 | 0 | 0.00191 | 0.223884 | 22,266 | 583 | 81 | 38.19211 | 0.863723 | 0.078865 | 0 | 0.221477 | 0 | 0 | 0.142651 | 0.006556 | 0 | 0 | 0 | 0.001715 | 0 | 0 | null | null | 0.011186 | 0.053691 | 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 |
c76feb12df68543783c3323f4f55ac843979eaad | 5,128 | py | Python | third_party/websockify/tests/load.py | albertobarri/idk | a250884f79e2a484251fc750bb915ecbc962be58 | [
"MIT"
] | 6,541 | 2019-01-17T22:13:18.000Z | 2022-03-31T07:20:21.000Z | third_party/websockify/tests/load.py | albertobarri/idk | a250884f79e2a484251fc750bb915ecbc962be58 | [
"MIT"
] | 7,584 | 2019-01-17T22:58:27.000Z | 2022-03-31T23:10:22.000Z | third_party/websockify/tests/load.py | albertobarri/idk | a250884f79e2a484251fc750bb915ecbc962be58 | [
"MIT"
] | 1,275 | 2019-01-19T16:18:04.000Z | 2022-03-30T19:32:35.000Z | #!/usr/bin/env python
'''
WebSocket server-side load test program. Sends and receives traffic
that has a random payload (length and content) that is checksummed and
given a sequence number. Any errors are reported and counted.
'''
import sys, os, select, random, time, optparse, logging
sys.path.insert(0,os.path.join(... | 29.988304 | 93 | 0.533931 | 588 | 5,128 | 4.528912 | 0.328231 | 0.015772 | 0.020653 | 0.019151 | 0.056327 | 0.049568 | 0.049568 | 0.049568 | 0.027037 | 0.027037 | 0 | 0.017798 | 0.353549 | 5,128 | 170 | 94 | 30.164706 | 0.78552 | 0.016576 | 0 | 0.147541 | 0 | 0 | 0.117416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016393 | null | null | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c7705d263d165758672ad5b807f55d36b85ff396 | 8,599 | py | Python | resources/mgltools_x86_64Linux2_1.5.6/lib/python2.5/site-packages/numpy/core/memmap.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | null | null | null | resources/mgltools_x86_64Linux2_1.5.6/lib/python2.5/site-packages/numpy/core/memmap.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | null | null | null | resources/mgltools_x86_64Linux2_1.5.6/lib/python2.5/site-packages/numpy/core/memmap.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | null | null | null | __all__ = ['memmap']
import mmap
import warnings
from numeric import uint8, ndarray, dtype
dtypedescr = dtype
valid_filemodes = ["r", "c", "r+", "w+"]
writeable_filemodes = ["r+","w+"]
mode_equivalents = {
"readonly":"r",
"copyonwrite":"c",
"readwrite":"r+",
"write":"w+"
}
class memmap(ndarray):... | 33.988142 | 79 | 0.537155 | 1,118 | 8,599 | 4.075134 | 0.254025 | 0.006585 | 0.007902 | 0.00878 | 0.153644 | 0.1464 | 0.113477 | 0.077261 | 0.077261 | 0.077261 | 0 | 0.027592 | 0.338295 | 8,599 | 252 | 80 | 34.123016 | 0.773111 | 0.06617 | 0 | 0.138298 | 0 | 0 | 0.073668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010638 | 0.031915 | 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 |
c778698df862ac8459fd8a7efed93fc24564be9e | 2,298 | py | Python | script/fuzzy_nomal.py | anddev68/Fuzzy-Python | 5b535fdfd61ff51f3565769e5907aa92f8847a30 | [
"MIT"
] | null | null | null | script/fuzzy_nomal.py | anddev68/Fuzzy-Python | 5b535fdfd61ff51f3565769e5907aa92f8847a30 | [
"MIT"
] | null | null | null | script/fuzzy_nomal.py | anddev68/Fuzzy-Python | 5b535fdfd61ff51f3565769e5907aa92f8847a30 | [
"MIT"
] | null | null | null | import numpy as np
import random
import sys
import csv
##
## Fuzzy c-means
##
##
##
## Constans
##
C = 2 # v length
N = 30 # x length
m = 1.1 # u[i][k] parameter
P = 2 # Demention
##
## Initalize
##
# init x
x = []
for i in range(N):
x.append(np.random.rand(P))
# init v
v = []
for k in range(C):
v.append(np.r... | 15.218543 | 91 | 0.56832 | 430 | 2,298 | 3.016279 | 0.239535 | 0.09175 | 0.037008 | 0.067849 | 0.28219 | 0.195066 | 0.118736 | 0.067849 | 0.038551 | 0.038551 | 0 | 0.022071 | 0.231071 | 2,298 | 150 | 92 | 15.32 | 0.711941 | 0.167537 | 0 | 0.169014 | 0 | 0 | 0.144319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056338 | null | null | 0.028169 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c77d0d233b7bc5e085e1834a3de23c154edfea23 | 331 | py | Python | python/ccc12s3.py | ThePeeps191/dmoj-solutions | 7137e945f3f595c481ad4d29e1dc3a77d8b26e55 | [
"MIT"
] | 1 | 2022-01-23T16:02:14.000Z | 2022-01-23T16:02:14.000Z | python/ccc12s3.py | ThePeeps191/dmoj-solutions | 7137e945f3f595c481ad4d29e1dc3a77d8b26e55 | [
"MIT"
] | 5 | 2022-01-23T00:16:49.000Z | 2022-01-30T04:37:45.000Z | python/ccc12s3.py | ThePeeps191/dmoj-solutions | 7137e945f3f595c481ad4d29e1dc3a77d8b26e55 | [
"MIT"
] | 1 | 2022-01-23T00:03:47.000Z | 2022-01-23T00:03:47.000Z | nums = [int(input()) for _ in range(int(input()))]
nums_count = [nums.count(a) for a in nums]
min_count, max_count - min(nums_count), max(nums_count)
min_num, max_num = 0, 0
a, b = 0, 0
for i in range(len(nums)):
if nums_count[i] > b:
max_num = nums[i]
elif nums_count[i] == b:
if nums[i] > max_num:
max_num... | 20.6875 | 55 | 0.637462 | 66 | 331 | 3 | 0.272727 | 0.272727 | 0.090909 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014981 | 0.193353 | 331 | 15 | 56 | 22.066667 | 0.726592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c77faa2514689af008c4bed936719feae9863962 | 17,283 | py | Python | coordinate_code.py | livkosterlitz/AWD | 2402ee455282d09a14216c1f448c3e211762721e | [
"MIT"
] | 1 | 2019-08-19T20:39:48.000Z | 2019-08-19T20:39:48.000Z | coordinate_code.py | livkosterlitz/AWD | 2402ee455282d09a14216c1f448c3e211762721e | [
"MIT"
] | null | null | null | coordinate_code.py | livkosterlitz/AWD | 2402ee455282d09a14216c1f448c3e211762721e | [
"MIT"
] | 1 | 2019-08-20T15:03:23.000Z | 2019-08-20T15:03:23.000Z | import argparse
import sys
script_description = """
Code will cord transform a fasta file based on an input file with
cord transform information. The code has three functions listed below.
1. Original fasta --> transformed fasta
- default setting if nothing else is provided
2. Original fasta --> trans... | 55.572347 | 185 | 0.471272 | 1,869 | 17,283 | 4.064205 | 0.107544 | 0.082017 | 0.04634 | 0.031596 | 0.451948 | 0.372959 | 0.308189 | 0.231174 | 0.205503 | 0.192996 | 0 | 0.010385 | 0.43725 | 17,283 | 311 | 186 | 55.572347 | 0.770615 | 0 | 0 | 0.291096 | 0 | 0.003425 | 0.097137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010274 | null | null | 0.006849 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c78036646c6845b1b4f63cf80eebedb2590eb3dc | 797 | py | Python | src/stork_a/dataset_generator.py | manuscript-reviewer/stork-a | b10105e615b25e477bf69ada266c4798bfefb500 | [
"MIT"
] | null | null | null | src/stork_a/dataset_generator.py | manuscript-reviewer/stork-a | b10105e615b25e477bf69ada266c4798bfefb500 | [
"MIT"
] | null | null | null | src/stork_a/dataset_generator.py | manuscript-reviewer/stork-a | b10105e615b25e477bf69ada266c4798bfefb500 | [
"MIT"
] | null | null | null | from PIL import Image, ImageFile
import torch
from torch.utils.data import Dataset
import os
# Function to make dataset object
class DatasetGenerator(Dataset):
def __init__ (self, input_images, transform):
ImageFile.LOAD_TRUNCATED_IMAGES = True
self.input_images = input_images
self.transfor... | 33.208333 | 86 | 0.705144 | 100 | 797 | 5.36 | 0.42 | 0.102612 | 0.11194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205772 | 797 | 23 | 87 | 34.652174 | 0.846761 | 0.038896 | 0 | 0 | 0 | 0 | 0.003927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.222222 | 0.055556 | 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 |
c780d299d5c5275d728c95a2d9abba9a91ed9aa7 | 1,061 | py | Python | digsby/src/oscar/snac/family_x0c.py | ifwe/digsby | f5fe00244744aa131e07f09348d10563f3d8fa99 | [
"Python-2.0"
] | 35 | 2015-08-15T14:32:38.000Z | 2021-12-09T16:21:26.000Z | digsby/src/oscar/snac/family_x0c.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 4 | 2015-09-12T10:42:57.000Z | 2017-02-27T04:05:51.000Z | digsby/src/oscar/snac/family_x0c.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 15 | 2015-07-10T23:58:07.000Z | 2022-01-23T22:16:33.000Z | import logging
import oscar
'''
This family is deprecated, so it is remaining unimplemented
'''
x0c_name="Translation - deprecated"
log = logging.getLogger('oscar.snac.x0c')
subcodes = {}
def x0c_init(o, sock, cb):
log.info('initializing')
cb()
log.info('finished initializing')
def x0c... | 24.113636 | 75 | 0.648445 | 135 | 1,061 | 5.014815 | 0.466667 | 0.079764 | 0.039882 | 0.057607 | 0.243722 | 0.177253 | 0.177253 | 0.177253 | 0.177253 | 0 | 0 | 0.031288 | 0.216777 | 1,061 | 43 | 76 | 24.674419 | 0.783394 | 0.28181 | 0 | 0.117647 | 0 | 0 | 0.131535 | 0 | 0 | 0 | 0.006745 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0 | 0.352941 | 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 |
c782ada61b1673a4b0ab3d8f216e1d696f245eb9 | 5,625 | py | Python | lib/model/tf_stft.py | FlorianPesce/PANNsTensorflow | f75ad44e42a98348e606d736784fedd2bfbd1ebb | [
"MIT"
] | 1 | 2021-07-18T19:37:27.000Z | 2021-07-18T19:37:27.000Z | lib/model/tf_stft.py | FlorianPesce/PANNsTensorflow | f75ad44e42a98348e606d736784fedd2bfbd1ebb | [
"MIT"
] | null | null | null | lib/model/tf_stft.py | FlorianPesce/PANNsTensorflow | f75ad44e42a98348e606d736784fedd2bfbd1ebb | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
import librosa
import math
def Stft(win_length, hop_length):
return tf.keras.Sequential([
tf.keras.layers.Lambda(tf.pad, arguments={'paddings': [[0, 0], [win_length // 2, win_length // 2]], 'mode': 'REFLECT'}),
tf.keras.layers.Lambda(tf.signal.stft, arg... | 34.722222 | 155 | 0.619911 | 799 | 5,625 | 4.148936 | 0.171464 | 0.054299 | 0.047059 | 0.051584 | 0.622021 | 0.555053 | 0.481146 | 0.434087 | 0.333333 | 0.281146 | 0 | 0.024917 | 0.250844 | 5,625 | 162 | 156 | 34.722222 | 0.761509 | 0.044089 | 0 | 0.333333 | 0 | 0 | 0.073034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044444 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c783d055de6e9dd366f64d619860e220607d6c5c | 3,320 | py | Python | tests/vfs/tsk_file_system.py | Acidburn0zzz/dfvfs | 3db8c4e520e3e7527faffeea8f52187c861fa3b6 | [
"Apache-2.0"
] | 1 | 2019-08-28T23:47:16.000Z | 2019-08-28T23:47:16.000Z | tests/vfs/tsk_file_system.py | Acidburn0zzz/dfvfs | 3db8c4e520e3e7527faffeea8f52187c861fa3b6 | [
"Apache-2.0"
] | null | null | null | tests/vfs/tsk_file_system.py | Acidburn0zzz/dfvfs | 3db8c4e520e3e7527faffeea8f52187c861fa3b6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for the file system implementation using the SleuthKit (TSK)."""
from __future__ import unicode_literals
import unittest
from dfvfs.path import os_path_spec
from dfvfs.path import tsk_path_spec
from dfvfs.resolver import context
from dfvfs.vfs import tsk_file_sy... | 32.23301 | 80 | 0.759337 | 429 | 3,320 | 5.545455 | 0.230769 | 0.107608 | 0.055486 | 0.041194 | 0.561581 | 0.523749 | 0.48802 | 0.484657 | 0.484657 | 0.445986 | 0 | 0.003877 | 0.145482 | 3,320 | 102 | 81 | 32.54902 | 0.834685 | 0.159639 | 0 | 0.517241 | 0 | 0 | 0.027263 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 1 | 0.086207 | false | 0.051724 | 0.12069 | 0 | 0.224138 | 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 |
c785b6fc277304291b33ce03a2b8b66e0e10e458 | 2,820 | py | Python | framework/Decorators/Parallelization.py | rinelson456/raven | 1114246136a2f72969e75b5e99a11b35500d4eef | [
"Apache-2.0"
] | 1 | 2018-07-02T21:12:48.000Z | 2018-07-02T21:12:48.000Z | framework/Decorators/Parallelization.py | rinelson456/raven | 1114246136a2f72969e75b5e99a11b35500d4eef | [
"Apache-2.0"
] | null | null | null | framework/Decorators/Parallelization.py | rinelson456/raven | 1114246136a2f72969e75b5e99a11b35500d4eef | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Battelle Energy Alliance, 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 agreed t... | 37.105263 | 80 | 0.648936 | 358 | 2,820 | 5.058659 | 0.416201 | 0.027057 | 0.041414 | 0.031474 | 0.162341 | 0.104914 | 0.104914 | 0.104914 | 0.104914 | 0.104914 | 0 | 0.006231 | 0.203191 | 2,820 | 75 | 81 | 37.6 | 0.799733 | 0.765957 | 0 | 0 | 0 | 0 | 0.04008 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0 | 0.466667 | 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 |
c7868d26d3a462d1dbf9398fe0f0d685e1619a21 | 1,757 | py | Python | phishtank_consts.py | shiyingtu/phishtank | 92a4075c6405435047644137629c174dfd59656e | [
"Apache-2.0"
] | null | null | null | phishtank_consts.py | shiyingtu/phishtank | 92a4075c6405435047644137629c174dfd59656e | [
"Apache-2.0"
] | null | null | null | phishtank_consts.py | shiyingtu/phishtank | 92a4075c6405435047644137629c174dfd59656e | [
"Apache-2.0"
] | null | null | null | # File: phishtank_consts.py
#
# Copyright (c) 2016-2021 Splunk 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 a... | 51.676471 | 95 | 0.760956 | 232 | 1,757 | 5.551724 | 0.530172 | 0.046584 | 0.020186 | 0.024845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010302 | 0.171315 | 1,757 | 33 | 96 | 53.242424 | 0.874313 | 0.331816 | 0 | 0 | 0 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c7880c46aac353428ef13981f22e1c70357b3f87 | 6,011 | py | Python | aigent/aima_python/nlp.py | kengz/rocobup-soccer | b6c255b215930952e518633bd07bdc63679f85d6 | [
"MIT"
] | 30 | 2016-06-17T19:49:15.000Z | 2022-01-14T12:04:46.000Z | aigent/aima_python/nlp.py | kengz/rocobup-soccer | b6c255b215930952e518633bd07bdc63679f85d6 | [
"MIT"
] | 3 | 2016-07-27T11:21:08.000Z | 2017-05-30T01:35:40.000Z | aigent/aima_python/nlp.py | kengz/rocobup-soccer | b6c255b215930952e518633bd07bdc63679f85d6 | [
"MIT"
] | 16 | 2016-10-02T14:35:47.000Z | 2022-03-19T09:11:58.000Z | """A chart parser and some grammars. (Chapter 22)"""
from utils import *
#______________________________________________________________________________
# Grammars and Lexicons
def Rules(**rules):
"""Create a dictionary mapping symbols to alternative sequences.
>>> Rules(A = "B C | D E")
{'A': [['B', 'C... | 35.152047 | 95 | 0.564798 | 817 | 6,011 | 3.927785 | 0.28519 | 0.022437 | 0.013711 | 0.007479 | 0.140854 | 0.069804 | 0.048613 | 0.048613 | 0 | 0 | 0 | 0.011584 | 0.29629 | 6,011 | 170 | 96 | 35.358824 | 0.747045 | 0.06904 | 0 | 0.107143 | 0 | 0.008929 | 0.235616 | 0 | 0 | 0 | 0 | 0.005882 | 0 | 0 | null | null | 0 | 0.017857 | null | null | 0.008929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c78c153c7938806bbde661e46c1e4dce81ad7d36 | 2,785 | py | Python | tests/test_backend.py | appsembler/trinity-oauth-backend | 92fb0cb662ce1011c283ea89eb8bd2944fd37f14 | [
"MIT"
] | null | null | null | tests/test_backend.py | appsembler/trinity-oauth-backend | 92fb0cb662ce1011c283ea89eb8bd2944fd37f14 | [
"MIT"
] | 4 | 2018-04-06T21:46:31.000Z | 2021-05-18T03:43:40.000Z | tests/test_backend.py | appsembler/trinity-oauth-backend | 92fb0cb662ce1011c283ea89eb8bd2944fd37f14 | [
"MIT"
] | 1 | 2019-02-03T03:20:32.000Z | 2019-02-03T03:20:32.000Z | """
Tests for the `trinity-oauth-backend` models module.
"""
import json
try:
from social.tests.backends.oauth import OAuth2Test
from social.exceptions import AuthException
except ImportError:
from social_core.tests.backends.oauth import OAuth2Test
from social_core.exceptions import AuthException
cl... | 32.011494 | 79 | 0.667504 | 325 | 2,785 | 5.529231 | 0.409231 | 0.031163 | 0.056761 | 0.040067 | 0.238731 | 0.223706 | 0.223706 | 0.156372 | 0.156372 | 0.125765 | 0 | 0.015023 | 0.235189 | 2,785 | 86 | 80 | 32.383721 | 0.828639 | 0.19246 | 0 | 0.188679 | 0 | 0 | 0.248844 | 0.062905 | 0 | 0 | 0 | 0 | 0.150943 | 1 | 0.150943 | false | 0.075472 | 0.113208 | 0 | 0.377358 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c78e320cd98655c28fc4ad70cca90436f4885c97 | 2,485 | py | Python | src/llapp/__init__.py | derlin/flask-rest-api-tuto | 96ff1616ed45c9b686408a91dcdd8662efa060f0 | [
"Apache-2.0"
] | null | null | null | src/llapp/__init__.py | derlin/flask-rest-api-tuto | 96ff1616ed45c9b686408a91dcdd8662efa060f0 | [
"Apache-2.0"
] | null | null | null | src/llapp/__init__.py | derlin/flask-rest-api-tuto | 96ff1616ed45c9b686408a91dcdd8662efa060f0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from urllib.error import HTTPError
from flask import Flask, make_response, jsonify
from flask_cors import CORS
from .blueprints.api import bp_api
from .blueprints.flrapi import bp_flrapi
from .blueprints.showcase import bp_showcase
# --- CREATING THE APP
def create_app(k=None):
print(f'... | 33.133333 | 115 | 0.691751 | 339 | 2,485 | 4.914454 | 0.418879 | 0.027011 | 0.036014 | 0.039616 | 0.073229 | 0.034814 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.204829 | 2,485 | 75 | 116 | 33.133333 | 0.836538 | 0.300201 | 0 | 0 | 0 | 0 | 0.118841 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.225 | 0.025 | 0.525 | 0.175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c79433f0c6680680e4e5e544996278222a2c9939 | 2,310 | py | Python | python-api/scalaris_userdevguide_jsontrace.py | schintke/scalaris | 201ff7242b6d8ae8d34cd1c09111ddf17184394b | [
"Apache-2.0"
] | 4 | 2015-03-26T05:21:42.000Z | 2019-05-14T11:53:22.000Z | python-api/scalaris_userdevguide_jsontrace.py | schintke/scalaris | 201ff7242b6d8ae8d34cd1c09111ddf17184394b | [
"Apache-2.0"
] | null | null | null | python-api/scalaris_userdevguide_jsontrace.py | schintke/scalaris | 201ff7242b6d8ae8d34cd1c09111ddf17184394b | [
"Apache-2.0"
] | null | null | null | # Copyright 2011-2015 Zuse Institute Berlin
#
# 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... | 42.777778 | 105 | 0.657576 | 277 | 2,310 | 5.33213 | 0.483755 | 0.040623 | 0.020311 | 0.026405 | 0.104942 | 0.104942 | 0.083954 | 0.035207 | 0 | 0 | 0 | 0.018529 | 0.229004 | 2,310 | 53 | 106 | 43.584906 | 0.81078 | 0.2671 | 0 | 0.057143 | 0 | 0 | 0.076281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.171429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c79aaf1b3442c7ae73613334ae2c4337d498d962 | 5,414 | py | Python | tldap/backend/base.py | Karaage-Cluster/python-tldap-debian | 9d3d7a28df61d9cf97c0c0f62a5eea9d5767c213 | [
"BSD-3-Clause"
] | null | null | null | tldap/backend/base.py | Karaage-Cluster/python-tldap-debian | 9d3d7a28df61d9cf97c0c0f62a5eea9d5767c213 | [
"BSD-3-Clause"
] | null | null | null | tldap/backend/base.py | Karaage-Cluster/python-tldap-debian | 9d3d7a28df61d9cf97c0c0f62a5eea9d5767c213 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2012-2014 Brian May
#
# This file is part of python-tldap.
#
# python-tldap is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.... | 29.107527 | 78 | 0.576653 | 626 | 5,414 | 4.848243 | 0.367412 | 0.025371 | 0.021087 | 0.018781 | 0.062603 | 0.032949 | 0 | 0 | 0 | 0 | 0 | 0.007347 | 0.321204 | 5,414 | 185 | 79 | 29.264865 | 0.818503 | 0.211858 | 0 | 0.182609 | 0 | 0 | 0.061953 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 1 | 0.086957 | false | 0.052174 | 0.052174 | 0 | 0.208696 | 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 |
c7a3d8add60a953729930d4db5a94a7b6d931fc4 | 477 | py | Python | tests/multithreading/test_biomart.py | IMS-Bio2Core-Facility/BIC086 | a08c2e594b58a235fb223922d1eeadd0272f8946 | [
"MIT"
] | 2 | 2021-06-03T14:26:32.000Z | 2021-10-02T21:32:12.000Z | tests/multithreading/test_biomart.py | IMS-Bio2Core-Facility/BIC086 | a08c2e594b58a235fb223922d1eeadd0272f8946 | [
"MIT"
] | 4 | 2021-06-15T08:41:46.000Z | 2021-07-06T10:41:30.000Z | tests/multithreading/test_biomart.py | IMS-Bio2Core-Facility/BIC086 | a08c2e594b58a235fb223922d1eeadd0272f8946 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Tests for the multithreading.biomart submodule."""
from pathlib import Path
import pytest
from scripts.multithreading.biomart import concurrent_biomart
from ..custom_tmp_file import CustomTempFile
def test_raises_index_error(tmpdir: Path) -> None:
"""It raises an IndexError when the... | 28.058824 | 75 | 0.756813 | 59 | 477 | 6 | 0.677966 | 0.118644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002439 | 0.140461 | 477 | 16 | 76 | 29.8125 | 0.860976 | 0.262055 | 0 | 0 | 0 | 0 | 0.035191 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.571429 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c7a52f2b728c96cc3ff41c3b1bedf8ab2bc7146c | 21,314 | py | Python | x2paddle_code.py | wosxcc/-AI-10- | e2ce4bf6d4d8926f1744b4a8f0bc47b8b1d04389 | [
"Apache-2.0"
] | null | null | null | x2paddle_code.py | wosxcc/-AI-10- | e2ce4bf6d4d8926f1744b4a8f0bc47b8b1d04389 | [
"Apache-2.0"
] | null | null | null | x2paddle_code.py | wosxcc/-AI-10- | e2ce4bf6d4d8926f1744b4a8f0bc47b8b1d04389 | [
"Apache-2.0"
] | null | null | null | import paddle
# import math
# from x2paddle.op_mapper.pytorch2paddle import pytorch_custom_layer as x2paddle_nn
class Preact_layer1__1_0_se_fc(paddle.nn.Layer):
def __init__(self, linear0_in_features, linear0_out_features, linear1_in_features, linear1_out_features):
super(Preact_layer1__1_0_se_fc, se... | 97.770642 | 1,623 | 0.799944 | 3,164 | 21,314 | 4.835967 | 0.046776 | 0.07908 | 0.079864 | 0.082348 | 0.780733 | 0.68538 | 0.596628 | 0.57408 | 0.546566 | 0.511143 | 0 | 0.116175 | 0.120813 | 21,314 | 218 | 1,624 | 97.770642 | 0.700358 | 0.010885 | 0 | 0.422111 | 0 | 0 | 0.001726 | 0.001007 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125628 | false | 0 | 0.005025 | 0 | 0.256281 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7a5b111e4990b0da16be4c825385d146753b8c4 | 623 | py | Python | pontoon/base/migrations/0135_project_project_configuration.py | udacity/pontoon | e15a03a0c987615385b2a8c537bb18c99567f77e | [
"BSD-3-Clause"
] | 1 | 2019-05-26T04:16:47.000Z | 2019-05-26T04:16:47.000Z | pontoon/base/migrations/0135_project_project_configuration.py | udacity/pontoon | e15a03a0c987615385b2a8c537bb18c99567f77e | [
"BSD-3-Clause"
] | 9 | 2020-09-06T05:18:03.000Z | 2022-02-26T14:28:38.000Z | pontoon/base/migrations/0135_project_project_configuration.py | udacity/pontoon | e15a03a0c987615385b2a8c537bb18c99567f77e | [
"BSD-3-Clause"
] | 1 | 2019-10-07T17:46:36.000Z | 2019-10-07T17:46:36.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-10-12 17:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0134_google_translate_code'),
]
operations = [
migrations.AddField... | 29.666667 | 210 | 0.638844 | 74 | 623 | 5.216216 | 0.783784 | 0.088083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056034 | 0.255217 | 623 | 20 | 211 | 31.15 | 0.775862 | 0.110754 | 0 | 0 | 1 | 0.076923 | 0.319419 | 0.047187 | 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 |
c7b0555439ddf221f74e6bb00ec32514c1086626 | 432 | py | Python | TkInter/Button/Button Output/main.py | kuhakuu04/Python_PyQt5_GUI | 1449733e3a9ba0f827ff6dd21279a8db690cbe21 | [
"Apache-2.0"
] | null | null | null | TkInter/Button/Button Output/main.py | kuhakuu04/Python_PyQt5_GUI | 1449733e3a9ba0f827ff6dd21279a8db690cbe21 | [
"Apache-2.0"
] | null | null | null | TkInter/Button/Button Output/main.py | kuhakuu04/Python_PyQt5_GUI | 1449733e3a9ba0f827ff6dd21279a8db690cbe21 | [
"Apache-2.0"
] | null | null | null | from tkinter import *
window = Tk()
# syntax untuk ngeluarkan output diterminal
def BtnClick():
print('hello world')
exit()
# syntax untuk ngeluarkan output diprogram
def BtnClick2():
BtnLabel = Label(window, text="Hello Comerade")
BtnLabel.pack()
btn1 = Button(window, text="click me! 1", command=Bt... | 20.571429 | 60 | 0.706019 | 55 | 432 | 5.545455 | 0.581818 | 0.098361 | 0.137705 | 0.177049 | 0.15082 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022099 | 0.162037 | 432 | 21 | 61 | 20.571429 | 0.820442 | 0.189815 | 0 | 0 | 0 | 0 | 0.135057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.230769 | 0.076923 | 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 |
c7b086e8c7e2d83a806f7010f7a71ba460e15f1d | 1,609 | py | Python | torchmin/benchmarks.py | dhjpolymath/pytorch-minimize | cabe819c97c707fd9f3dc31f50c4520d9c39dfc5 | [
"MIT"
] | 50 | 2021-04-18T10:32:34.000Z | 2022-03-21T08:39:43.000Z | torchmin/benchmarks.py | dhjpolymath/pytorch-minimize | cabe819c97c707fd9f3dc31f50c4520d9c39dfc5 | [
"MIT"
] | 9 | 2021-11-20T20:54:06.000Z | 2022-03-30T15:59:21.000Z | torchmin/benchmarks.py | dhjpolymath/pytorch-minimize | cabe819c97c707fd9f3dc31f50c4520d9c39dfc5 | [
"MIT"
] | 12 | 2021-06-15T19:15:08.000Z | 2022-03-23T14:23:16.000Z | import torch
__all__ = ['rosen', 'rosen_der', 'rosen_hess', 'rosen_hess_prod']
# =============================
# Rosenbrock function
# =============================
def rosen(x, reduce=True):
val = 100. * (x[...,1:] - x[...,:-1]**2)**2 + (1 - x[...,:-1])**2
if reduce:
return val.sum()
else:... | 31.54902 | 87 | 0.377874 | 232 | 1,609 | 2.525862 | 0.193966 | 0.044369 | 0.030717 | 0.076792 | 0.129693 | 0.095563 | 0.068259 | 0 | 0 | 0 | 0 | 0.12931 | 0.279055 | 1,609 | 51 | 88 | 31.54902 | 0.375862 | 0.07023 | 0 | 0 | 0 | 0 | 0.026139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.027778 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7b16258486c7ab4c13c8faa00b2411e6d7079ea | 2,939 | py | Python | src/oscar_wagtail/abstract_models.py | denza/django-oscar-wagtail | 5bb5adaa3304cfd54b58347f9e84cf470cae4079 | [
"MIT"
] | 1 | 2021-08-14T13:49:55.000Z | 2021-08-14T13:49:55.000Z | src/oscar_wagtail/abstract_models.py | denza/django-oscar-wagtail | 5bb5adaa3304cfd54b58347f9e84cf470cae4079 | [
"MIT"
] | null | null | null | src/oscar_wagtail/abstract_models.py | denza/django-oscar-wagtail | 5bb5adaa3304cfd54b58347f9e84cf470cae4079 | [
"MIT"
] | null | null | null | from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.utils.translation import ugettext_lazy as _
from oscar.core.loading import get_class
from wagtail.wagtailadmin.edit_handlers import (
FieldPanel, PublishingPanel, RichTextFieldPanel)
from wagtail.wagtailcore.fields i... | 33.397727 | 77 | 0.6492 | 341 | 2,939 | 5.431085 | 0.340176 | 0.071274 | 0.045896 | 0.051836 | 0.338013 | 0.294816 | 0.259179 | 0.159827 | 0.112311 | 0.112311 | 0 | 0.003189 | 0.253147 | 2,939 | 87 | 78 | 33.781609 | 0.840547 | 0.12147 | 0 | 0 | 0 | 0 | 0.037155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147541 | false | 0 | 0.114754 | 0.04918 | 0.557377 | 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 |
c7b2c1d84ec6aecb6f4d2ede25f281d3bdf61412 | 1,819 | py | Python | Python3/22_Generate_Parentheses.py | yangjiahao106/LeetCode | c30ba0ef06f444951f7ab8eee495ac43613d7f4f | [
"RSA-MD"
] | 1 | 2018-04-28T09:07:11.000Z | 2018-04-28T09:07:11.000Z | Python3/22_Generate_Parentheses.py | yangjiahao106/LeetCode | c30ba0ef06f444951f7ab8eee495ac43613d7f4f | [
"RSA-MD"
] | 1 | 2018-02-24T16:26:30.000Z | 2018-02-24T16:26:44.000Z | Python3/22_Generate_Parentheses.py | yangjiahao106/LeetCode | c30ba0ef06f444951f7ab8eee495ac43613d7f4f | [
"RSA-MD"
] | null | null | null | #! python3
# __author__ = "YangJiaHao"
# date: 2018/2/11
import copy
class Solution(object):
def generateParenthesis(self, n):
"""
:type n: int
:rtype: List[str]
"""
left = list(n * '(')
right = list(n * ')')
res = []
def generator(one, left, right)... | 23.934211 | 82 | 0.441451 | 202 | 1,819 | 3.915842 | 0.237624 | 0.121365 | 0.141593 | 0.085967 | 0.620733 | 0.547408 | 0.460177 | 0.460177 | 0.31732 | 0.211125 | 0 | 0.026508 | 0.398571 | 1,819 | 75 | 83 | 24.253333 | 0.696527 | 0.079164 | 0 | 0.340909 | 1 | 0 | 0.010133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0.022727 | 0 | 0.318182 | 0.022727 | 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 |
c7b3c5ef6db2c1338c7620cdff7af42c798174f3 | 7,044 | py | Python | ihm/geometry.py | danpf/python-ihm | cbe681ee56701202769a401ee6380ccab5fcae84 | [
"MIT"
] | null | null | null | ihm/geometry.py | danpf/python-ihm | cbe681ee56701202769a401ee6380ccab5fcae84 | [
"MIT"
] | null | null | null | ihm/geometry.py | danpf/python-ihm | cbe681ee56701202769a401ee6380ccab5fcae84 | [
"MIT"
] | null | null | null | """Classes for handling geometry.
Geometric objects (see :class:`GeometricObject`) are usually
used in :class:`~ihm.restraint.GeometricRestraint` objects.
"""
class Center(object):
"""Define the center of a geometric object in Cartesian space.
:param float x: x coordinate
:param float y: y co... | 34.360976 | 79 | 0.66113 | 876 | 7,044 | 5.224886 | 0.160959 | 0.026218 | 0.041949 | 0.026 | 0.560629 | 0.521302 | 0.507975 | 0.507975 | 0.395237 | 0.37601 | 0 | 0.002814 | 0.243186 | 7,044 | 204 | 80 | 34.529412 | 0.855749 | 0.548694 | 0 | 0.192982 | 0 | 0 | 0.030961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0 | 0.017544 | 0.631579 | 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 |
c7b6d3822e0085b2eec188ce799807f36c497ae4 | 5,578 | py | Python | deep_oc_client/exceptions.py | deephdc/deep-oc-client | bd92b350fddb7df22303d4e18c519ba5efd0b39e | [
"Apache-2.0"
] | 2 | 2019-09-20T14:20:10.000Z | 2020-02-03T16:56:05.000Z | deep_oc_client/exceptions.py | deephdc/deep-oc-client | bd92b350fddb7df22303d4e18c519ba5efd0b39e | [
"Apache-2.0"
] | null | null | null | deep_oc_client/exceptions.py | deephdc/deep-oc-client | bd92b350fddb7df22303d4e18c519ba5efd0b39e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2019 Spanish National Research Council (CSIC)
#
# 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
#
# Unle... | 28.314721 | 79 | 0.630154 | 669 | 5,578 | 5.161435 | 0.372197 | 0.034752 | 0.008109 | 0.009267 | 0.032436 | 0.032436 | 0.016797 | 0.016797 | 0.016797 | 0.016797 | 0 | 0.02243 | 0.272678 | 5,578 | 196 | 80 | 28.459184 | 0.828691 | 0.384726 | 0 | 0.02381 | 0 | 0 | 0.109614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.02381 | 0 | 0.511905 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c7b7131fdc5b8f4afd4c4ecc912b8099ff2e4a0e | 817 | py | Python | leetcode/leetcode_5.py | HuangJingGitHub/PracMakePert_py | 1e947b0804fdcd50b2a3afc0af9d824cb55978cd | [
"Apache-2.0"
] | 2 | 2019-05-28T15:04:20.000Z | 2019-05-28T15:04:22.000Z | leetcode/leetcode_5.py | HuangJingGitHub/PracMakePert_py | 1e947b0804fdcd50b2a3afc0af9d824cb55978cd | [
"Apache-2.0"
] | null | null | null | leetcode/leetcode_5.py | HuangJingGitHub/PracMakePert_py | 1e947b0804fdcd50b2a3afc0af9d824cb55978cd | [
"Apache-2.0"
] | 1 | 2019-08-30T06:06:33.000Z | 2019-08-30T06:06:33.000Z | # a dp method
class Solution:
def longestPalindrome(self, s: str) -> str:
size = len(s)
if size < 2:
return s
dp = [[False for _ in range(size)] for _ in range(size)]
maxLen = 1
start = 0
for i in range(size):
dp[i][i] = True
... | 26.354839 | 64 | 0.342717 | 96 | 817 | 2.895833 | 0.291667 | 0.125899 | 0.118705 | 0.100719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024658 | 0.553244 | 817 | 30 | 65 | 27.233333 | 0.736986 | 0.013464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0 | 0 | 0.173913 | 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 |
c7b77c63af3bcf913de5e0c495deb2b0f2bc7e9b | 2,678 | py | Python | Code Challenges/python/word_machine_bin_sech.py | lineality/Coding-Challenges-Study-Practice | 76d868b11b42b3bd3634f9a62abecb2e1eaac76d | [
"MIT"
] | null | null | null | Code Challenges/python/word_machine_bin_sech.py | lineality/Coding-Challenges-Study-Practice | 76d868b11b42b3bd3634f9a62abecb2e1eaac76d | [
"MIT"
] | 1 | 2021-06-24T17:39:48.000Z | 2021-06-24T17:39:48.000Z | Code Challenges/python/word_machine_bin_sech.py | lineality/Coding-Study | 76d868b11b42b3bd3634f9a62abecb2e1eaac76d | [
"MIT"
] | null | null | null | # https://binarysearch.com/
# GGA 2020.11.30
"""
User Problem
You Have:
You Need:
You Must:
Input/Output Example:
Word Machine
You are given a list of strings ops where each element is either:
A non-negative integer that should be pushed into a stack
"POP" meaning pop the top element in the stack
"DUP" meaning dupli... | 18.859155 | 114 | 0.659447 | 403 | 2,678 | 4.30273 | 0.332506 | 0.032295 | 0.037486 | 0.027682 | 0.384083 | 0.287197 | 0.234141 | 0.204152 | 0.204152 | 0.204152 | 0 | 0.034051 | 0.254294 | 2,678 | 142 | 115 | 18.859155 | 0.833751 | 0.585885 | 0 | 0.411765 | 0 | 0 | 0.078558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0.058824 | 0.029412 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c7bcb90a873b949ff373e4d5c340d7de19df56d5 | 473 | py | Python | Eratoshenes.py | Ainevsia/RSA-related | 816101e3951b95b79b59057199179859941f460a | [
"MIT"
] | 7 | 2019-12-31T13:45:36.000Z | 2021-11-14T20:09:02.000Z | Eratoshenes.py | Ainevsia/Algebraic-Number-Theory | 816101e3951b95b79b59057199179859941f460a | [
"MIT"
] | null | null | null | Eratoshenes.py | Ainevsia/Algebraic-Number-Theory | 816101e3951b95b79b59057199179859941f460a | [
"MIT"
] | null | null | null | """
Use the Eratoshenes Algorithm to generate first 1229 prime numbers.
"""
max = 10000
smax = 100 # sqrt(10000)
lst = [] # number list, all True (is prime) at first
for i in range(max + 1): # initialization
lst.append(True)
for i in range(2, smax + 1): # Eratoshenes Algorithm
sieve = 2 * i
while sieve... | 24.894737 | 67 | 0.59408 | 73 | 473 | 3.849315 | 0.534247 | 0.042705 | 0.064057 | 0.117438 | 0.085409 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067251 | 0.276956 | 473 | 18 | 68 | 26.277778 | 0.754386 | 0.372093 | 0 | 0 | 1 | 0 | 0.003509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7bd94282f4bc6781bd98607e7c67632449d47d8 | 664 | py | Python | ibis/compat.py | proxodilka/ibis | cad629e942859238f30ddb1e9bbf36c259c87ac4 | [
"Apache-2.0"
] | 1 | 2021-06-15T07:28:59.000Z | 2021-06-15T07:28:59.000Z | ibis/compat.py | dollylipare/ibis | 9d1086d7d29c2d3760c8150d8641ab51799720cd | [
"Apache-2.0"
] | 1 | 2020-10-02T23:51:48.000Z | 2020-10-03T00:54:29.000Z | ibis/compat.py | intel-go/ibis | 1943b6065d2ba89c35856b2d9b8399f15af11c01 | [
"Apache-2.0"
] | 1 | 2020-10-01T18:48:01.000Z | 2020-10-01T18:48:01.000Z | """Module for compatible functions."""
import operator
import sys
import toolz
# pandas compat
try:
from pandas.api.types import ( # noqa: F401
DatetimeTZDtype,
CategoricalDtype,
infer_dtype,
)
except ImportError:
from pandas.types.dtypes import ( # noqa: F401
DatetimeTZD... | 22.133333 | 78 | 0.685241 | 79 | 664 | 5.64557 | 0.493671 | 0.089686 | 0.058296 | 0.130045 | 0.381166 | 0.381166 | 0.381166 | 0 | 0 | 0 | 0 | 0.033074 | 0.225904 | 664 | 29 | 79 | 22.896552 | 0.83463 | 0.137048 | 0 | 0.47619 | 0 | 0 | 0.007105 | 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 |
c7be19018c9868563bba2ca3604c66337b7d29f4 | 19,579 | py | Python | src/main/python/ui/extract.py | bmiller/beqdesigner | 36d0c780507a564536038e2c9fc3b03b75dedaf4 | [
"MIT"
] | 16 | 2019-04-12T00:04:56.000Z | 2022-03-15T14:26:56.000Z | src/main/python/ui/extract.py | bmiller/beqdesigner | 36d0c780507a564536038e2c9fc3b03b75dedaf4 | [
"MIT"
] | 400 | 2018-08-27T10:04:00.000Z | 2022-03-15T21:32:33.000Z | src/main/python/ui/extract.py | bmiller/beqdesigner | 36d0c780507a564536038e2c9fc3b03b75dedaf4 | [
"MIT"
] | 6 | 2018-09-19T21:02:27.000Z | 2020-10-18T04:11:01.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'extract.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGu... | 63.36246 | 116 | 0.745033 | 1,711 | 19,579 | 8.47633 | 0.170076 | 0.081914 | 0.011998 | 0.04468 | 0.128663 | 0.071296 | 0.056126 | 0.03944 | 0.031718 | 0.024409 | 0 | 0.014063 | 0.153787 | 19,579 | 308 | 117 | 63.568182 | 0.861299 | 0.013892 | 0 | 0.020408 | 1 | 0 | 0.092233 | 0.001192 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006803 | false | 0 | 0.006803 | 0 | 0.017007 | 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 |
c7be5ccff22f5648b08e2560fbee741d70851a64 | 396 | py | Python | AlgoVote/Python/AlgoVote2.py | Arch222/Reach-Final | 2ce0b8db621aac36442d677152fc020410e359b9 | [
"MIT"
] | 2 | 2021-06-07T01:37:04.000Z | 2021-06-09T10:43:12.000Z | AlgoVote/ReachMeeting/ReachMeetingScripts/AlgoVote2.py | Arch222/Reach-Final | 2ce0b8db621aac36442d677152fc020410e359b9 | [
"MIT"
] | null | null | null | AlgoVote/ReachMeeting/ReachMeetingScripts/AlgoVote2.py | Arch222/Reach-Final | 2ce0b8db621aac36442d677152fc020410e359b9 | [
"MIT"
] | 2 | 2021-05-27T03:02:43.000Z | 2021-06-09T10:43:16.000Z |
#Votes
Voter0 = int(input("Vote:"))
Voter1 = int(input("Vote:"))
Voter2 = int(input("Vote:"))
#Count
def count_votes():
#Accounts
voter0_account = 0
voter1_account = 0
voter2_account = 0
#Total
total = Voter0 + Voter1 + Voter2
#Return
if total > 1:
voter2_account =+ 1
... | 18 | 36 | 0.608586 | 48 | 396 | 4.854167 | 0.375 | 0.223176 | 0.154506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058621 | 0.267677 | 396 | 21 | 37 | 18.857143 | 0.744828 | 0.073232 | 0 | 0.142857 | 0 | 0 | 0.041551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.071429 | 0.142857 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7bf4022bd0c9bae3d25d7528ffc9db8ea7837f8 | 25,898 | py | Python | model.py | ashwinijk/pyhtk | 6ddd053ff603cb1c5c0c91abe462e159ad56f88e | [
"MIT-CMU",
"Unlicense"
] | 1 | 2019-08-18T13:19:17.000Z | 2019-08-18T13:19:17.000Z | model.py | ashwinijk/pyhtk | 6ddd053ff603cb1c5c0c91abe462e159ad56f88e | [
"MIT-CMU",
"Unlicense"
] | null | null | null | model.py | ashwinijk/pyhtk | 6ddd053ff603cb1c5c0c91abe462e159ad56f88e | [
"MIT-CMU",
"Unlicense"
] | 1 | 2016-06-16T09:25:33.000Z | 2016-06-16T09:25:33.000Z | """
A Python package for building HMM models for speech recognition using HTK
Daniel Gillick (dgillick@gmail.com)
----------
Dependencies:
HTK (tested with version 3.4)
sph2pipe (for audio processing)
Python (tested with 2.6.6)
----------
Inputs:
Dictionary
List of WAV files
Transcriptions
... | 51.796 | 164 | 0.612132 | 3,758 | 25,898 | 3.974455 | 0.08728 | 0.027718 | 0.049813 | 0.02504 | 0.611944 | 0.512386 | 0.426754 | 0.366162 | 0.322108 | 0.29854 | 0 | 0.006871 | 0.258205 | 25,898 | 499 | 165 | 51.8998 | 0.7706 | 0.03703 | 0 | 0.193084 | 0 | 0 | 0.185034 | 0.021088 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054755 | null | null | 0.002882 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c7c3ce9f6dc91ea0702081f3841792517367abf9 | 445 | py | Python | usuarios/migrations/0002_usuarioencentrodesalud_estado.py | cluster311/ggg | 262173c66fe40ada30083d439a79f16f841f5772 | [
"BSD-3-Clause"
] | 6 | 2020-03-16T02:51:16.000Z | 2020-11-10T00:58:01.000Z | usuarios/migrations/0002_usuarioencentrodesalud_estado.py | cluster311/ggg | 262173c66fe40ada30083d439a79f16f841f5772 | [
"BSD-3-Clause"
] | 204 | 2019-09-19T02:00:57.000Z | 2022-02-10T10:48:52.000Z | usuarios/migrations/0002_usuarioencentrodesalud_estado.py | cluster311/ggg | 262173c66fe40ada30083d439a79f16f841f5772 | [
"BSD-3-Clause"
] | 3 | 2019-09-16T22:59:24.000Z | 2022-03-21T22:52:44.000Z | # Generated by Django 2.2.4 on 2019-11-10 23:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('usuarios', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='usuarioencentrodesalud',
name='estado'... | 23.421053 | 105 | 0.608989 | 44 | 445 | 6.113636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084848 | 0.258427 | 445 | 18 | 106 | 24.722222 | 0.730303 | 0.101124 | 0 | 0 | 1 | 0 | 0.155779 | 0.055276 | 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 |
c7c5a0fc35e47b4e8b4917dfbdba7a0cf7e95abd | 869 | py | Python | bookmark/migrations/0001_initial.py | UNIZAR-30226-2021-05/Lector--Backend | 8cc285216972f7485781ece51a88d5f02dc85013 | [
"MIT"
] | null | null | null | bookmark/migrations/0001_initial.py | UNIZAR-30226-2021-05/Lector--Backend | 8cc285216972f7485781ece51a88d5f02dc85013 | [
"MIT"
] | null | null | null | bookmark/migrations/0001_initial.py | UNIZAR-30226-2021-05/Lector--Backend | 8cc285216972f7485781ece51a88d5f02dc85013 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-05-20 08:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('libro', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Boo... | 31.035714 | 114 | 0.590334 | 88 | 869 | 5.75 | 0.625 | 0.047431 | 0.055336 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037855 | 0.270426 | 869 | 27 | 115 | 32.185185 | 0.760252 | 0.051784 | 0 | 0 | 1 | 0 | 0.090024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7c6f9c2627072591802e996b52bc9ec80ad544b | 3,075 | py | Python | speaker/audio_utils_new.py | luigisaetta/my-speaker-recognition | 765492216be94a570f08f5511ea617e7af666598 | [
"MIT"
] | null | null | null | speaker/audio_utils_new.py | luigisaetta/my-speaker-recognition | 765492216be94a570f08f5511ea617e7af666598 | [
"MIT"
] | null | null | null | speaker/audio_utils_new.py | luigisaetta/my-speaker-recognition | 765492216be94a570f08f5511ea617e7af666598 | [
"MIT"
] | null | null | null | #
# extracted with some changes from Deep Speaker audio
# see: https://github.com/philipperemy/deep-speaker
# updated: 1/10/2021
#
import io
import librosa
import numpy as np
from random import choice
from python_speech_features import fbank
# globals
# global settings
import config
from constants import SAMPLE_RA... | 37.5 | 101 | 0.696585 | 464 | 3,075 | 4.422414 | 0.301724 | 0.082846 | 0.031676 | 0.037037 | 0.423002 | 0.382066 | 0.354776 | 0.354776 | 0.321637 | 0.321637 | 0 | 0.02864 | 0.182439 | 3,075 | 81 | 102 | 37.962963 | 0.78759 | 0.322602 | 0 | 0.282609 | 0 | 0 | 0.009732 | 0 | 0 | 0 | 0 | 0.012346 | 0.021739 | 1 | 0.152174 | false | 0 | 0.152174 | 0.021739 | 0.456522 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c7d2d8b21cf11311ac22d774de80208c52419956 | 28,549 | py | Python | packages/gtmapi/lmsrvlabbook/tests/test_labbook_branching.py | gigabackup/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 60 | 2018-09-26T15:46:00.000Z | 2021-10-10T02:37:14.000Z | packages/gtmapi/lmsrvlabbook/tests/test_labbook_branching.py | gigabackup/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 1,706 | 2018-09-26T16:11:22.000Z | 2021-08-20T13:37:59.000Z | packages/gtmapi/lmsrvlabbook/tests/test_labbook_branching.py | griffinmilsap/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 11 | 2019-03-14T13:23:51.000Z | 2022-01-25T01:29:16.000Z | import os
import pytest
import shutil
import flask
from flask import Flask
import graphene
import pprint
from graphene.test import Client
from mock import patch
import responses
from gtmcore.auth.identity import get_identity_manager_class
from gtmcore.configuration import Configuration
from gtmcore.gitlib import RepoL... | 39.541551 | 115 | 0.562156 | 2,995 | 28,549 | 5.179299 | 0.104174 | 0.018695 | 0.063822 | 0.052862 | 0.728146 | 0.690046 | 0.660908 | 0.633638 | 0.606949 | 0.598311 | 0 | 0.011211 | 0.309538 | 28,549 | 721 | 116 | 39.596394 | 0.77572 | 0.018459 | 0 | 0.720191 | 0 | 0 | 0.393837 | 0.039709 | 0 | 0 | 0 | 0 | 0.203498 | 1 | 0.031797 | false | 0 | 0.036566 | 0 | 0.069952 | 0.011129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7d4ac4167f74b11d3f172800d531eca9c4ab486 | 2,192 | py | Python | ambari-agent/src/test/python/ambari_agent/TestCheckWebUI.py | flipkart-incubator/incubator-ambari | bf747346312170834c6beb89a60c8624b47aa288 | [
"Apache-2.0"
] | 2 | 2015-07-29T22:50:10.000Z | 2021-11-10T16:05:59.000Z | ambari-agent/src/test/python/TestCheckWebUI.py | boydos/incubator-ambari | e10d85756dd55729c20aeda2baa0d6c93c4ca31d | [
"Apache-2.0"
] | 1 | 2021-11-04T13:31:30.000Z | 2021-11-04T13:31:30.000Z | ambari-agent/src/test/python/ambari_agent/TestCheckWebUI.py | isabella232/incubator-ambari | bf747346312170834c6beb89a60c8624b47aa288 | [
"Apache-2.0"
] | 9 | 2016-01-08T21:11:06.000Z | 2021-11-10T16:05:51.000Z | #!/usr/bin/env python2.6
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"Licens... | 28.467532 | 72 | 0.742245 | 294 | 2,192 | 5.404762 | 0.462585 | 0.045312 | 0.067967 | 0.083071 | 0.324733 | 0.324733 | 0.324733 | 0.273128 | 0.273128 | 0.273128 | 0 | 0.014917 | 0.17427 | 2,192 | 76 | 73 | 28.842105 | 0.862983 | 0.039234 | 0 | 0.421053 | 0 | 0 | 0.070254 | 0.040359 | 0 | 0 | 0 | 0 | 0.184211 | 0 | null | null | 0 | 0.131579 | 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 |
c7dca91e6817a2f09cb1b8dcd1b9f6f567253965 | 1,233 | py | Python | tests/test_wizard.py | caputomarcos/xonsh | 9ca29d8f2aad9f026af23b83fb7263d0fb702b1a | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/test_wizard.py | caputomarcos/xonsh | 9ca29d8f2aad9f026af23b83fb7263d0fb702b1a | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/test_wizard.py | caputomarcos/xonsh | 9ca29d8f2aad9f026af23b83fb7263d0fb702b1a | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # -*- coding: utf-8 -*-
"""Tests the xonsh lexer."""
from __future__ import unicode_literals, print_function
import os
import pytest
from xonsh.wizard import (Node, Wizard, Pass, PrettyFormatter,
Message, Question, StateVisitor)
TREE0 = Wizard(children=[Pass(), Message(message='yo')])
TREE1 = Question('wakka?'... | 25.163265 | 63 | 0.562044 | 143 | 1,233 | 4.741259 | 0.370629 | 0.106195 | 0.070796 | 0.056047 | 0.147493 | 0.085546 | 0.085546 | 0 | 0 | 0 | 0 | 0.015005 | 0.243309 | 1,233 | 48 | 64 | 25.6875 | 0.711683 | 0.036496 | 0 | 0.111111 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.083333 | false | 0.138889 | 0.111111 | 0 | 0.194444 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c7deb4be2803e073bd09e0c15b8a33ccb8ca4ba2 | 16,756 | py | Python | energyquantified/api/instances.py | energyquantified/eq-python-client | 3ca8423ae29c4a3dbd8f6289ab76a64b21dabf1c | [
"Apache-2.0"
] | 4 | 2021-03-02T10:08:37.000Z | 2021-11-12T08:18:18.000Z | energyquantified/api/instances.py | mfsorensen/eq-python-client | 6dc65f5c16881b27fc22c9f461440c327997861e | [
"Apache-2.0"
] | 23 | 2020-07-22T13:41:20.000Z | 2021-10-12T09:03:27.000Z | energyquantified/api/instances.py | mfsorensen/eq-python-client | 6dc65f5c16881b27fc22c9f461440c327997861e | [
"Apache-2.0"
] | 2 | 2020-10-01T20:18:08.000Z | 2021-03-02T10:08:41.000Z | from .base import BaseAPI
from ..exceptions import ValidationError
from ..metadata import CurveType
from ..parser.metadata import parse_instance_list
from ..parser.timeseries import parse_timeseries, parse_timeseries_list
# Tuple of supported values for Curve.curve_type in the instances API
CURVE_TYPES = (CurveType.... | 43.522078 | 108 | 0.633146 | 2,062 | 16,756 | 4.99806 | 0.109117 | 0.03299 | 0.022705 | 0.031438 | 0.720551 | 0.693965 | 0.672909 | 0.64933 | 0.613138 | 0.609936 | 0 | 0.003306 | 0.27799 | 16,756 | 384 | 109 | 43.635417 | 0.84857 | 0.519217 | 0 | 0.582781 | 0 | 0 | 0.121785 | 0.045817 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046358 | false | 0 | 0.033113 | 0 | 0.13245 | 0 | 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 |
c7dfefd0838a2d9a53d13ad4c28abeea15364dc0 | 13,260 | py | Python | book/_build/jupyter_execute/notebooks/case-conflict-mapping.py | hossainlab/health-gis | 1c9ba6aefba95956cecfbaf4b151640d13561c1b | [
"MIT"
] | null | null | null | book/_build/jupyter_execute/notebooks/case-conflict-mapping.py | hossainlab/health-gis | 1c9ba6aefba95956cecfbaf4b151640d13561c1b | [
"MIT"
] | null | null | null | book/_build/jupyter_execute/notebooks/case-conflict-mapping.py | hossainlab/health-gis | 1c9ba6aefba95956cecfbaf4b151640d13561c1b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
get_ipython().run_line_magic('matplotlib', 'inline')
import pandas as pd
import geopandas
import matplotlib.pyplot as plt
# # Case study - Conflict mapping: mining sites in eastern DR Congo
#
# In this case study, we will explore a dataset on artisanal mining sites ... | 27.798742 | 372 | 0.705354 | 1,993 | 13,260 | 4.648771 | 0.263924 | 0.021371 | 0.042742 | 0.074798 | 0.285375 | 0.268861 | 0.268861 | 0.179277 | 0.179277 | 0.12585 | 0 | 0.012921 | 0.171192 | 13,260 | 476 | 373 | 27.857143 | 0.829936 | 0.865686 | 0 | 0 | 0 | 0 | 0.179004 | 0.02961 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.263158 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7e441600612b85780b59b01afb3f97cab72150f | 1,363 | py | Python | pytezos/tools/keychain.py | dcale/pytezos | d977bfbcf683ea272e381e7a1a11e50bc3fc86f7 | [
"MIT"
] | 50 | 2018-07-31T06:27:56.000Z | 2021-12-14T16:38:06.000Z | pytezos/tools/keychain.py | dcale/pytezos | d977bfbcf683ea272e381e7a1a11e50bc3fc86f7 | [
"MIT"
] | 4 | 2019-02-08T18:23:37.000Z | 2020-01-02T21:37:12.000Z | pytezos/tools/keychain.py | dcale/pytezos | d977bfbcf683ea272e381e7a1a11e50bc3fc86f7 | [
"MIT"
] | 7 | 2019-02-05T13:12:50.000Z | 2021-12-14T16:38:35.000Z | import os
import simplejson as json
from getpass import getpass
from pytezos.crypto import Key
class Keychain:
def __init__(self, path='~/.tezos-client/secret_keys'):
self._path = os.path.expanduser(path)
self._secret_keys = list()
self._last_modified = 0
def reload(self):
l... | 28.395833 | 89 | 0.56493 | 165 | 1,363 | 4.490909 | 0.387879 | 0.097166 | 0.075574 | 0.053981 | 0.059379 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016913 | 0.305943 | 1,363 | 47 | 90 | 29 | 0.766385 | 0 | 0 | 0.057143 | 0 | 0 | 0.090242 | 0.019809 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.085714 | 0.114286 | 0 | 0.371429 | 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 |
c7e8b4e8fa2616d57ff63dd26a383aa23977302f | 2,734 | py | Python | pyfarm/master/initial.py | guidow/pyfarm-master | d41c8f1eb5bfefb8400d400bcecadf197bcfb80a | [
"Apache-2.0"
] | null | null | null | pyfarm/master/initial.py | guidow/pyfarm-master | d41c8f1eb5bfefb8400d400bcecadf197bcfb80a | [
"Apache-2.0"
] | null | null | null | pyfarm/master/initial.py | guidow/pyfarm-master | d41c8f1eb5bfefb8400d400bcecadf197bcfb80a | [
"Apache-2.0"
] | null | null | null | # No shebang line, this module is meant to be imported
#
# Copyright 2013 Oliver Palmer
#
# 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
#
# U... | 32.939759 | 74 | 0.646672 | 335 | 2,734 | 5.208955 | 0.447761 | 0.051576 | 0.045845 | 0.059599 | 0.147851 | 0.147851 | 0.107736 | 0.107736 | 0.058453 | 0.058453 | 0 | 0.004418 | 0.254938 | 2,734 | 82 | 75 | 33.341463 | 0.852234 | 0.287125 | 0 | 0.116279 | 0 | 0 | 0.096674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0.069767 | 0.116279 | 0 | 0.348837 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c7e936a4bba3fe98fefe02551bbc5d66f25d93a3 | 3,582 | py | Python | benchmarks/deep_calibration/forestfire.py | davidruegamer/SDDR_code | e2c3b62724033717225b0d589aa8029f4b1f32a4 | [
"CC0-1.0"
] | 2 | 2021-06-13T15:34:26.000Z | 2021-06-13T15:36:11.000Z | benchmarks/deep_calibration/forestfire.py | davidruegamer/SDDR_code | e2c3b62724033717225b0d589aa8029f4b1f32a4 | [
"CC0-1.0"
] | null | null | null | benchmarks/deep_calibration/forestfire.py | davidruegamer/SDDR_code | e2c3b62724033717225b0d589aa8029f4b1f32a4 | [
"CC0-1.0"
] | null | null | null | import os
import numpy
import scipy.stats
import matplotlib.pyplot
import sklearn.datasets
import sklearn.model_selection
import utils
from GP_Beta_cal import GP_Beta
from sklearn.isotonic import IsotonicRegression
import warnings
warnings.filterwarnings("ignore")
import pandas as pd
train = pd.read_csv("data/forest... | 32.563636 | 111 | 0.658571 | 574 | 3,582 | 3.813589 | 0.219512 | 0.043856 | 0.037003 | 0.031978 | 0.170854 | 0.13979 | 0.092736 | 0.078575 | 0.056647 | 0.031978 | 0 | 0.083742 | 0.203238 | 3,582 | 109 | 112 | 32.862385 | 0.682901 | 0.092127 | 0 | 0.026667 | 0 | 0 | 0.030603 | 0.015147 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.146667 | null | null | 0.053333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c7f018b3a4b899709fa76b8e512d8954e1e936e7 | 4,624 | py | Python | tests/test_casters.py | cfeenstra67/statey | 6d127ed48265e2e072fbb26486458a4b28a333ec | [
"MIT"
] | 4 | 2021-02-16T19:34:38.000Z | 2022-01-31T16:44:14.000Z | tests/test_casters.py | cfeenstra67/statey | 6d127ed48265e2e072fbb26486458a4b28a333ec | [
"MIT"
] | null | null | null | tests/test_casters.py | cfeenstra67/statey | 6d127ed48265e2e072fbb26486458a4b28a333ec | [
"MIT"
] | null | null | null | import pytest
import statey as st
from statey.syms import casters
RAISES = object()
@pytest.mark.parametrize(
"from_type, to_type, check",
[
pytest.param(int, int, lambda x: isinstance(x, casters.ForceCaster), id="int"),
pytest.param(~st.Integer, int, RAISES, id="int_from_nullable"),
... | 31.455782 | 87 | 0.521626 | 496 | 4,624 | 4.735887 | 0.100806 | 0.126437 | 0.166454 | 0.176245 | 0.737335 | 0.644955 | 0.625373 | 0.598978 | 0.524053 | 0.421456 | 0 | 0 | 0.352076 | 4,624 | 146 | 88 | 31.671233 | 0.784045 | 0 | 0 | 0.609929 | 0 | 0 | 0.094291 | 0.030493 | 0 | 0 | 0 | 0 | 0.007092 | 1 | 0.007092 | false | 0 | 0.021277 | 0 | 0.028369 | 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 |
c7f176c0392d1ffe8c50403408d5b0570f55fdd7 | 2,746 | py | Python | hacksec_cli/mechanism/authentication/login.py | hacksec-in/hacksec-cli | 18c1c350c21fcab9c5d1c1d799ffda80ac655251 | [
"MIT"
] | 4 | 2021-08-30T16:02:05.000Z | 2022-01-05T14:49:05.000Z | hacksec_cli/mechanism/authentication/login.py | ScRiPt1337/hacksec-cli | 18c1c350c21fcab9c5d1c1d799ffda80ac655251 | [
"MIT"
] | 1 | 2021-09-11T07:35:28.000Z | 2021-09-11T16:09:30.000Z | hacksec_cli/mechanism/authentication/login.py | ScRiPt1337/hacksec-cli | 18c1c350c21fcab9c5d1c1d799ffda80ac655251 | [
"MIT"
] | 2 | 2021-09-03T02:40:49.000Z | 2022-01-05T14:49:08.000Z | import sys
from rich.console import Console
from os import path
import json
console = Console()
class Authenticator():
""" Login Class """
def __init__(self, request, interface):
""" Login Class Initialization """
self.request = request
self.interface = interface
... | 37.616438 | 79 | 0.537873 | 263 | 2,746 | 5.494297 | 0.387833 | 0.107958 | 0.062284 | 0.047751 | 0.042907 | 0.042907 | 0 | 0 | 0 | 0 | 0 | 0.00229 | 0.363802 | 2,746 | 72 | 80 | 38.138889 | 0.824843 | 0.049891 | 0 | 0.051724 | 0 | 0 | 0.1228 | 0.01 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086207 | false | 0.137931 | 0.068966 | 0 | 0.206897 | 0.086207 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c7f516c0a3f759de10f58167eeadf855a8201b2c | 2,115 | py | Python | rocketsimu/enviroment.py | PLANET-Q/TrajecSimu2 | dcf146501b9874bc749b883cf186f6c40044b5dd | [
"MIT"
] | null | null | null | rocketsimu/enviroment.py | PLANET-Q/TrajecSimu2 | dcf146501b9874bc749b883cf186f6c40044b5dd | [
"MIT"
] | null | null | null | rocketsimu/enviroment.py | PLANET-Q/TrajecSimu2 | dcf146501b9874bc749b883cf186f6c40044b5dd | [
"MIT"
] | 1 | 2022-03-22T17:30:51.000Z | 2022-03-22T17:30:51.000Z | import numpy as np
import numpy.linalg as LA
import quaternion
from . import wind
from .launcher import Launcher
from .air import Air
class Enviroment:
def __init__(
self,
latitude,
longitude,
altitude=0
):
self.latitude = latitude
... | 34.672131 | 115 | 0.541844 | 241 | 2,115 | 4.676349 | 0.365145 | 0.063886 | 0.06921 | 0.074534 | 0.124224 | 0.09228 | 0 | 0 | 0 | 0 | 0 | 0.037604 | 0.32104 | 2,115 | 61 | 116 | 34.672131 | 0.746518 | 0.253901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0.027778 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bdc24445a05d64ba8167890edbcc0d25d089852 | 337 | py | Python | authors/apps/notifications/renderers.py | deferral/ah-django | b80ad485339dbb02b74d9b2093543bf8173d51de | [
"BSD-3-Clause"
] | 1 | 2019-04-12T08:34:10.000Z | 2019-04-12T08:34:10.000Z | authors/apps/notifications/renderers.py | deferral/ah-django | b80ad485339dbb02b74d9b2093543bf8173d51de | [
"BSD-3-Clause"
] | 18 | 2019-03-26T02:17:38.000Z | 2019-04-26T08:57:47.000Z | authors/apps/notifications/renderers.py | deferral/ah-django | b80ad485339dbb02b74d9b2093543bf8173d51de | [
"BSD-3-Clause"
] | 1 | 2019-11-22T11:52:32.000Z | 2019-11-22T11:52:32.000Z | import json
from rest_framework.renderers import JSONRenderer
class NotificationJSONRenderer(JSONRenderer):
charset = 'utf-8'
def render(self, data, media_type=None, renderer_context=None):
"""
Check for errors key in data
"""
return json.dumps({
'notifications':... | 19.823529 | 67 | 0.632047 | 35 | 337 | 6 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004115 | 0.278932 | 337 | 16 | 68 | 21.0625 | 0.860082 | 0.083086 | 0 | 0 | 0 | 0 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.75 | 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 |
1bddae788ed73832d0f92dcdb26cc8ade1b30bc7 | 448 | py | Python | aydin/it/normalisers/identity.py | royerloic/aydin | f9c61a24030891d008c318b250da5faec69fcd7d | [
"BSD-3-Clause"
] | 78 | 2021-11-08T16:11:23.000Z | 2022-03-27T17:51:04.000Z | aydin/it/normalisers/identity.py | royerloic/aydin | f9c61a24030891d008c318b250da5faec69fcd7d | [
"BSD-3-Clause"
] | 19 | 2021-11-08T17:15:40.000Z | 2022-03-30T17:46:55.000Z | aydin/it/normalisers/identity.py | royerloic/aydin | f9c61a24030891d008c318b250da5faec69fcd7d | [
"BSD-3-Clause"
] | 7 | 2021-11-09T17:42:32.000Z | 2022-03-09T00:37:57.000Z | from aydin.it.normalisers.base import NormaliserBase
class IdentityNormaliser(NormaliserBase):
"""Identity Normaliser"""
def __init__(self, **kwargs):
"""Constructs a normalisers"""
super().__init__(**kwargs)
def calibrate(self, array):
"""Calibrate method
Parameters
... | 20.363636 | 52 | 0.598214 | 40 | 448 | 6.475 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274554 | 448 | 21 | 53 | 21.333333 | 0.796923 | 0.236607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1be447e8219013a25f291ee8e532da25b294c210 | 494 | py | Python | users/migrations/0016_auto_20201113_2009.py | Tadashi-Croy/ideal-octo-couscous | 9482c49ef0fbbd8439a92099cb3743b503050bd8 | [
"MIT"
] | null | null | null | users/migrations/0016_auto_20201113_2009.py | Tadashi-Croy/ideal-octo-couscous | 9482c49ef0fbbd8439a92099cb3743b503050bd8 | [
"MIT"
] | 2 | 2021-06-10T20:32:30.000Z | 2021-09-22T19:41:34.000Z | users/migrations/0016_auto_20201113_2009.py | Tadashi-Croy/ideal-octo-couscous | 9482c49ef0fbbd8439a92099cb3743b503050bd8 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-11-14 04:09
from django.db import migrations, models
import users.models
class Migration(migrations.Migration):
dependencies = [
('users', '0015_auto_20201113_2005'),
]
operations = [
migrations.AlterField(
model_name='dog',
na... | 24.7 | 145 | 0.59919 | 57 | 494 | 5.087719 | 0.77193 | 0.075862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085562 | 0.242915 | 494 | 19 | 146 | 26 | 0.68984 | 0.091093 | 0 | 0 | 1 | 0 | 0.120805 | 0.051454 | 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 |
1be610395b03ea5a4f93d9a109584455d76662c2 | 361 | py | Python | tests/__init__.py | GenePeeks/django-roles | f096145fd2b9e93658ae4922f8430b1aa14c918d | [
"MIT"
] | 17 | 2016-06-08T02:50:44.000Z | 2017-12-20T06:17:18.000Z | tests/__init__.py | GenePeeks/django-roles | f096145fd2b9e93658ae4922f8430b1aa14c918d | [
"MIT"
] | 2 | 2017-02-04T18:04:50.000Z | 2017-11-19T17:11:33.000Z | tests/__init__.py | GenePeeks/django-roles | f096145fd2b9e93658ae4922f8430b1aa14c918d | [
"MIT"
] | 1 | 2018-03-07T16:13:20.000Z | 2018-03-07T16:13:20.000Z | from django.test import TestCase
from django_hats.bootstrap import Bootstrapper
class RolesTestCase(TestCase):
def setUp(self, *args, **kwargs):
'''Clears `Roles` cache for testing.
'''
for role in Bootstrapper.get_roles():
setattr(role, 'group', None)
return super(Rol... | 27.769231 | 64 | 0.65651 | 41 | 361 | 5.731707 | 0.682927 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227147 | 361 | 12 | 65 | 30.083333 | 0.842294 | 0.091413 | 0 | 0 | 0 | 0 | 0.015974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1bee76a2db66f10b9afceeea90e6ef9527729707 | 804 | py | Python | issues/serializers.py | the-coding-pie/Bugtracker-REST-API | 69c3756e039124e7d7f963f64c1ddecfd99d3366 | [
"MIT"
] | 1 | 2021-03-02T13:38:14.000Z | 2021-03-02T13:38:14.000Z | issues/serializers.py | the-coding-pie/Bugtracker-REST-API | 69c3756e039124e7d7f963f64c1ddecfd99d3366 | [
"MIT"
] | null | null | null | issues/serializers.py | the-coding-pie/Bugtracker-REST-API | 69c3756e039124e7d7f963f64c1ddecfd99d3366 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Issue
from users.serializers import UserSerializer
from projects.serializers import ProjectCreateSerializer
from users.models import User
class IssueSerializer(serializers.ModelSerializer):
assignee = UserSerializer()
reporter = UserSerializer()
c... | 36.545455 | 128 | 0.71393 | 78 | 804 | 7.294872 | 0.512821 | 0.042179 | 0.119508 | 0.066784 | 0.235501 | 0.105448 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171642 | 804 | 22 | 129 | 36.545455 | 0.854354 | 0 | 0 | 0.222222 | 0 | 0 | 0.160248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.277778 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1bf09b0a92d9e55ed99acf4eebfbf47808a00242 | 6,335 | py | Python | Paradigm/Session 2/read_pyLog.py | wtianlu/Eccentricity_IPS | fba437c99853a45de05dc43a671064a9a1197dad | [
"CC-BY-4.0"
] | null | null | null | Paradigm/Session 2/read_pyLog.py | wtianlu/Eccentricity_IPS | fba437c99853a45de05dc43a671064a9a1197dad | [
"CC-BY-4.0"
] | null | null | null | Paradigm/Session 2/read_pyLog.py | wtianlu/Eccentricity_IPS | fba437c99853a45de05dc43a671064a9a1197dad | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed May 1 19:19:46 2019
@author: Lulu
190501 Check logfiles, after new script with new timing logging
"""
import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
#dataFolder = '/Users/Lulu/Documents/Experiments/WP2c_eccentricit... | 48.730769 | 131 | 0.689976 | 981 | 6,335 | 4.417941 | 0.235474 | 0.023996 | 0.035994 | 0.077988 | 0.359714 | 0.32695 | 0.318643 | 0.27688 | 0.261652 | 0.233041 | 0 | 0.05 | 0.15075 | 6,335 | 129 | 132 | 49.108527 | 0.755576 | 0.064562 | 0 | 0.043956 | 0 | 0 | 0.140684 | 0.045627 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043956 | null | null | 0.043956 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1bf1d1d83b5df52e18a73385f3aac1df0b3e2f1a | 461 | py | Python | account/urls.py | hhdMrLion/crm_api | 66df068821be36a17c3b0e0e9660b7f8408fa1bd | [
"Apache-2.0"
] | 1 | 2021-06-18T03:03:38.000Z | 2021-06-18T03:03:38.000Z | account/urls.py | hhdMrLion/crm_api | 66df068821be36a17c3b0e0e9660b7f8408fa1bd | [
"Apache-2.0"
] | null | null | null | account/urls.py | hhdMrLion/crm_api | 66df068821be36a17c3b0e0e9660b7f8408fa1bd | [
"Apache-2.0"
] | null | null | null | from django.urls import path, re_path, include
from rest_framework.routers import DefaultRouter
from rest_framework_jwt.views import obtain_jwt_token
from account import views
router = DefaultRouter()
router.register(r'users', views.UserViewset, basename='users')
router.register(r'jsusers', views.JSUserViewse... | 28.8125 | 69 | 0.746204 | 57 | 461 | 5.877193 | 0.473684 | 0.035821 | 0.077612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145336 | 461 | 15 | 70 | 30.733333 | 0.850254 | 0.017354 | 0 | 0 | 0 | 0 | 0.071101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1bf343edc0ef2418b7582cc4bd79aac71c2e1c82 | 718 | py | Python | cb_scripts/hour_chime.py | christopher-burke/python-scripts | bdbea2456130e0958b6a6ab8d138f4f19b39b934 | [
"MIT"
] | 1 | 2022-02-05T06:39:05.000Z | 2022-02-05T06:39:05.000Z | cb_scripts/hour_chime.py | christopher-burke/python-scripts | bdbea2456130e0958b6a6ab8d138f4f19b39b934 | [
"MIT"
] | null | null | null | cb_scripts/hour_chime.py | christopher-burke/python-scripts | bdbea2456130e0958b6a6ab8d138f4f19b39b934 | [
"MIT"
] | 1 | 2021-06-10T22:04:35.000Z | 2021-06-10T22:04:35.000Z | #!/usr/bin/env python3
"""Play sound file at the top of every hour.
Full path to sound file
Requires:
shell from dev_utils.
schedule package : https://github.com/dbader/schedule
"""
import sys
import schedule
import time
from dev_utils import shell
from functools import partial
def alert(sound)... | 18.410256 | 57 | 0.671309 | 104 | 718 | 4.490385 | 0.557692 | 0.077088 | 0.051392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012567 | 0.224234 | 718 | 38 | 58 | 18.894737 | 0.825853 | 0.406685 | 0 | 0 | 0 | 0 | 0.070313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1bf39becf6b38f9876b1bb2d90b025699e3f6eea | 2,091 | py | Python | callisto/users_app/models.py | ivanoff-ivan/callisto | 4ee641205b0e10dd7a7d1f6264077246e69a7ccb | [
"MIT"
] | null | null | null | callisto/users_app/models.py | ivanoff-ivan/callisto | 4ee641205b0e10dd7a7d1f6264077246e69a7ccb | [
"MIT"
] | null | null | null | callisto/users_app/models.py | ivanoff-ivan/callisto | 4ee641205b0e10dd7a7d1f6264077246e69a7ccb | [
"MIT"
] | null | null | null | from django.contrib.auth import models as auth_models
from django.core.validators import MinLengthValidator
from django.db import models
from PIL import Image
from callisto.users_app.managers import AppUsersManager
class AppUser(auth_models.AbstractBaseUser, auth_models.PermissionsMixin):
email = models.EmailFie... | 24.313953 | 88 | 0.629842 | 242 | 2,091 | 5.210744 | 0.446281 | 0.04996 | 0.041237 | 0.057098 | 0.109437 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009836 | 0.270684 | 2,091 | 85 | 89 | 24.6 | 0.817049 | 0.058345 | 0 | 0.064516 | 0 | 0 | 0.034979 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.032258 | false | 0 | 0.080645 | 0.016129 | 0.419355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bf88b621bb882ebe7cb549892ae0cd662314b70 | 395 | py | Python | webapp/kunti/user/urls.py | ultimatecoder/kunti | 487a5d99b415c639f627291bbb3a56c5411f15a0 | [
"MIT"
] | 1 | 2019-07-27T11:24:43.000Z | 2019-07-27T11:24:43.000Z | webapp/kunti/user/urls.py | ultimatecoder/savitri | 487a5d99b415c639f627291bbb3a56c5411f15a0 | [
"MIT"
] | null | null | null | webapp/kunti/user/urls.py | ultimatecoder/savitri | 487a5d99b415c639f627291bbb3a56c5411f15a0 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from django.urls import include, path
from rest_framework.routers import DefaultRouter
from rest_framework.authtoken.views import obtain_auth_token
from user import views
router = DefaultRouter()
router.register(r'signup', views.UserCreateViewSet)
urlpatterns = [
... | 20.789474 | 60 | 0.746835 | 51 | 395 | 5.666667 | 0.588235 | 0.055363 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002915 | 0.131646 | 395 | 18 | 61 | 21.944444 | 0.83965 | 0.108861 | 0 | 0 | 0 | 0 | 0.034286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1bfa093aa13c09e544a3b74e87a918a1283eb125 | 335 | py | Python | examples/fastapi_as_main_app/src/main.py | xnuinside/gino-admin | 1789d63c66e808a17b1cd4c96537ba6e64d227db | [
"MIT"
] | 36 | 2020-05-14T14:19:47.000Z | 2022-03-20T15:37:47.000Z | examples/fastapi_as_main_app/src/main.py | xnuinside/gino-admin | 1789d63c66e808a17b1cd4c96537ba6e64d227db | [
"MIT"
] | 12 | 2020-05-12T18:18:34.000Z | 2021-12-29T18:48:17.000Z | examples/fastapi_as_main_app/src/main.py | xnuinside/gino_admin | e9535337ac0218efcec62086ba1180c6ffb702ce | [
"MIT"
] | 8 | 2020-05-11T23:22:53.000Z | 2022-02-20T18:54:52.000Z | from fastapi import FastAPI
from models import User, db
app = FastAPI()
db.init_app(app)
@app.get("/")
async def root():
# count number of users in DB
return {"hello": "Hello!"}
@app.get("/users")
async def users():
# count number of users in DB
return {"count_users": await db.func.count(User.id).... | 17.631579 | 70 | 0.656716 | 52 | 335 | 4.192308 | 0.461538 | 0.055046 | 0.119266 | 0.165138 | 0.256881 | 0.256881 | 0.256881 | 0 | 0 | 0 | 0 | 0 | 0.191045 | 335 | 18 | 71 | 18.611111 | 0.804428 | 0.164179 | 0 | 0 | 0 | 0 | 0.104693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 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 |
1bfe409ea17091b119847d43c89a5130d8eee272 | 362 | py | Python | answers/geo-answer4.py | IBMDeveloperUK/Python-Geopandas-Workshop | 410798c7856c5b74ac535f2bcd9a4d2eb6524fd7 | [
"MIT"
] | 22 | 2020-10-12T13:48:29.000Z | 2021-12-22T06:14:17.000Z | answers/geo-answer4.py | IBMDeveloperUK/python-geopandas-workshop | 410798c7856c5b74ac535f2bcd9a4d2eb6524fd7 | [
"MIT"
] | null | null | null | answers/geo-answer4.py | IBMDeveloperUK/python-geopandas-workshop | 410798c7856c5b74ac535f2bcd9a4d2eb6524fd7 | [
"MIT"
] | 16 | 2019-10-21T19:21:53.000Z | 2020-08-11T15:27:07.000Z | hotels = pois[pois['fclass']=='hotel']
citylondon = boroughs.loc[boroughs['name'] == 'City of London', 'geometry'].squeeze()
cityhotels = hotels[hotels.within(citylondon)]
[fig,ax] = plt.subplots(1, figsize=(12, 8))
base = boroughs.plot(color='lightblue', edgecolor='black',ax=ax);
cityhotels.plot(ax=ax, marker='o', co... | 40.222222 | 85 | 0.69337 | 50 | 362 | 5.02 | 0.7 | 0.031873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015015 | 0.080111 | 362 | 8 | 86 | 45.25 | 0.738739 | 0 | 0 | 0 | 0 | 0 | 0.160221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40087721490fbac842f894c9fa5b208fc2e7ffbe | 1,285 | py | Python | error_propagation/finance/npv.py | davidreissmello/error_propagation | ce6600498dabfcf494243edd3a40557dbe8dc709 | [
"MIT"
] | 4 | 2021-09-14T02:21:06.000Z | 2021-11-11T15:33:08.000Z | error_propagation/finance/npv.py | davidreissmello/error_propagation | ce6600498dabfcf494243edd3a40557dbe8dc709 | [
"MIT"
] | null | null | null | error_propagation/finance/npv.py | davidreissmello/error_propagation | ce6600498dabfcf494243edd3a40557dbe8dc709 | [
"MIT"
] | null | null | null | from numbers import Number
from typing import List
from typing import Union
import numpy as np
from error_propagation.core import Complex
def npv(
cash: Union[List[Number], List[Complex]],
discount_rate: Union[Number, Complex], # noqa
) -> Complex:
"""NPV accounts for the time value of money and can be... | 32.948718 | 84 | 0.713619 | 194 | 1,285 | 4.706186 | 0.572165 | 0.065717 | 0.035049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004995 | 0.221012 | 1,285 | 38 | 85 | 33.815789 | 0.907093 | 0.575875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
400994c62125a749818c4e33540ea370779f7d2e | 1,285 | py | Python | pipeline/preprocess_master.py | corcra/feabhsa-here | c56079fd621f06a4c6c421ba0deb67baa26c4e0b | [
"MIT"
] | null | null | null | pipeline/preprocess_master.py | corcra/feabhsa-here | c56079fd621f06a4c6c421ba0deb67baa26c4e0b | [
"MIT"
] | null | null | null | pipeline/preprocess_master.py | corcra/feabhsa-here | c56079fd621f06a4c6c421ba0deb67baa26c4e0b | [
"MIT"
] | null | null | null | #!/bin/pytohn
import sys
i=0
for line in sys.stdin:
i=i+1
bypipe = line.strip().split('|')
# first line is kinda the general everything-keeper, it will contain the union of all reigons (e.g. the final region)... the purpose is to enable the bedmap operation to detect overlaps
overall = bypipe[0]
o... | 36.714286 | 189 | 0.622568 | 182 | 1,285 | 4.236264 | 0.368132 | 0.077821 | 0.057069 | 0.049287 | 0.225681 | 0.155642 | 0.155642 | 0.155642 | 0.155642 | 0.155642 | 0 | 0.012397 | 0.246693 | 1,285 | 34 | 190 | 37.794118 | 0.784091 | 0.217899 | 0 | 0.076923 | 0 | 0 | 0.026026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
400e67f82e57de6e612ce865d6d24020c4306c71 | 13,016 | py | Python | applications/ParticleMechanicsApplication/tests/test_generate_mpm_particle_condition.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 778 | 2017-01-27T16:29:17.000Z | 2022-03-30T03:01:51.000Z | applications/ParticleMechanicsApplication/tests/test_generate_mpm_particle_condition.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 6,634 | 2017-01-15T22:56:13.000Z | 2022-03-31T15:03:36.000Z | applications/ParticleMechanicsApplication/tests/test_generate_mpm_particle_condition.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 224 | 2017-02-07T14:12:49.000Z | 2022-03-06T23:09:34.000Z | from __future__ import print_function, absolute_import, division
import KratosMultiphysics
import KratosMultiphysics.ParticleMechanicsApplication as KratosParticle
import KratosMultiphysics.KratosUnittest as KratosUnittest
class TestGenerateMPMParticleCondition(KratosUnittest.TestCase):
def _generate_particle_c... | 59.981567 | 156 | 0.769438 | 1,417 | 13,016 | 6.706422 | 0.105152 | 0.083342 | 0.065979 | 0.094286 | 0.660318 | 0.632011 | 0.621172 | 0.584447 | 0.547301 | 0.504578 | 0 | 0.026952 | 0.144822 | 13,016 | 216 | 157 | 60.259259 | 0.82679 | 0.040642 | 0 | 0.256579 | 0 | 0 | 0.036909 | 0.00337 | 0 | 0 | 0 | 0 | 0.006579 | 1 | 0.230263 | false | 0 | 0.026316 | 0 | 0.263158 | 0.006579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
401578b73d25cbacbfda218432a3287ce24e8d88 | 290 | py | Python | tests/test_format_archive_url.py | OneHappyForever/wayback-machine-archiver | f17ee28b0311229df947bbf2e7ca819eb19f5d40 | [
"MIT"
] | 44 | 2020-01-20T21:41:29.000Z | 2022-03-02T20:20:15.000Z | tests/test_format_archive_url.py | OneHappyForever/wayback-machine-archiver | f17ee28b0311229df947bbf2e7ca819eb19f5d40 | [
"MIT"
] | 19 | 2019-05-22T04:37:02.000Z | 2022-03-21T04:43:13.000Z | tests/test_format_archive_url.py | OneHappyForever/wayback-machine-archiver | f17ee28b0311229df947bbf2e7ca819eb19f5d40 | [
"MIT"
] | 11 | 2019-11-19T10:34:15.000Z | 2022-03-14T07:03:53.000Z | from wayback_machine_archiver.archiver import format_archive_url
def test_archive_org():
BASE = "https://web.archive.org/save/"
URLS = (
"https://alexgude.com",
"http://charles.uno",
)
for url in URLS:
assert BASE + url == format_archive_url(url)
| 22.307692 | 64 | 0.637931 | 37 | 290 | 4.783784 | 0.648649 | 0.146893 | 0.180791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234483 | 290 | 12 | 65 | 24.166667 | 0.797297 | 0 | 0 | 0 | 0 | 0 | 0.231034 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 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 |
401856033bb413d94733b3242067cf45aeec3bc0 | 523 | py | Python | A2 - HMM/constants.py | NickSmyr/ai-player-agents | f8972d02c53a2ba566b541b1270a0637e3d3e5c7 | [
"MIT"
] | null | null | null | A2 - HMM/constants.py | NickSmyr/ai-player-agents | f8972d02c53a2ba566b541b1270a0637e3d3e5c7 | [
"MIT"
] | null | null | null | A2 - HMM/constants.py | NickSmyr/ai-player-agents | f8972d02c53a2ba566b541b1270a0637e3d3e5c7 | [
"MIT"
] | null | null | null | # This file describes some constants which stay the same in every testing environment
# Total number of fish
N_FISH = 70
# Total number of fish species
N_SPECIES = 7
# Total number of time steps per environment
N_STEPS = 180
# Number of possible emissions, i.e. fish movements
# (all emissions are represented with ... | 24.904762 | 85 | 0.762906 | 87 | 523 | 4.517241 | 0.689655 | 0.081425 | 0.099237 | 0.086514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023697 | 0.193117 | 523 | 20 | 86 | 26.15 | 0.907583 | 0.801147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
401f8d9bbb28afcaad7da99614ac5646cc0890c6 | 2,085 | py | Python | tekore/_model/__init__.py | Allerter/tekore | 20cf68280fb5b691126600a5b474ee841f7be199 | [
"MIT"
] | null | null | null | tekore/_model/__init__.py | Allerter/tekore | 20cf68280fb5b691126600a5b474ee841f7be199 | [
"MIT"
] | null | null | null | tekore/_model/__init__.py | Allerter/tekore | 20cf68280fb5b691126600a5b474ee841f7be199 | [
"MIT"
] | null | null | null | from .album import (
AlbumType,
Album,
AlbumGroup,
SimpleAlbum,
SimpleAlbumPaging,
)
from .album.full import FullAlbum, SavedAlbum, SavedAlbumPaging
from .artist import (
Artist,
SimpleArtist,
FullArtist,
FullArtistCursorPaging,
FullArtistOffsetPaging,
)
from .audio_analysis impo... | 20.242718 | 65 | 0.721823 | 167 | 2,085 | 8.988024 | 0.640719 | 0.011992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215827 | 2,085 | 102 | 66 | 20.441176 | 0.918043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.227723 | 0 | 0.227723 | 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 |
401fd44d746c7840334dd072a1bdda0c45349797 | 2,236 | py | Python | examples/sample_flask_app/app.py | mukund-murali/bitbucket-webhooks-router | 20cc147b02a87341ca376638407a14f2a09d63f7 | [
"MIT"
] | 5 | 2020-04-11T23:44:38.000Z | 2021-09-27T12:22:58.000Z | examples/sample_flask_app/app.py | mukund-murali/bitbucket-webhooks-router | 20cc147b02a87341ca376638407a14f2a09d63f7 | [
"MIT"
] | 8 | 2020-03-24T10:52:39.000Z | 2020-03-28T10:34:12.000Z | examples/sample_flask_app/app.py | mukund-murali/bitbucket-webhooks-router | 20cc147b02a87341ca376638407a14f2a09d63f7 | [
"MIT"
] | 3 | 2020-10-13T07:20:40.000Z | 2021-02-11T05:04:32.000Z | from bitbucket_webhooks import event_schemas
from bitbucket_webhooks import hooks
from bitbucket_webhooks import router
from flask import Flask
from flask import request
app = Flask(__name__)
@app.route("/hooks", methods=["POST"])
def bb_webhooks_handler():
router.route(request.headers["X-Event-Key"], request.js... | 29.421053 | 79 | 0.779964 | 302 | 2,236 | 5.533113 | 0.208609 | 0.086176 | 0.111909 | 0.061041 | 0.388989 | 0.388989 | 0.318971 | 0.160383 | 0.057451 | 0.057451 | 0 | 0.003519 | 0.110465 | 2,236 | 75 | 80 | 29.813333 | 0.836601 | 0 | 0 | 0.14 | 0 | 0 | 0.261181 | 0.113148 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.1 | 0 | 0.36 | 0.36 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
402351276247bb8c6f5099494764b8471fc32f91 | 1,040 | py | Python | EPro-PnP-Det/epropnp_det/core/bbox_3d/__init__.py | Lakonik/EPro-PnP | 931df847190ce10eddd1dc3e3168ce1a2f295ffa | [
"Apache-2.0"
] | 19 | 2022-03-21T10:22:24.000Z | 2022-03-30T15:43:46.000Z | EPro-PnP-Det/epropnp_det/core/bbox_3d/__init__.py | Lakonik/EPro-PnP | 931df847190ce10eddd1dc3e3168ce1a2f295ffa | [
"Apache-2.0"
] | null | null | null | EPro-PnP-Det/epropnp_det/core/bbox_3d/__init__.py | Lakonik/EPro-PnP | 931df847190ce10eddd1dc3e3168ce1a2f295ffa | [
"Apache-2.0"
] | 3 | 2022-03-26T08:08:24.000Z | 2022-03-30T11:17:11.000Z | """
Copyright (C) 2010-2022 Alibaba Group Holding Limited.
"""
from .builder import build_dim_coder, build_proj_error_coder, build_center_target
from .dim_coder import MultiClassLogDimCoder
from .proj_error_coder import DistDimProjErrorCoder
from .iou_calculators import (
bbox3d_overlaps, bbox3d_overlaps_aligned, ... | 41.6 | 82 | 0.797115 | 144 | 1,040 | 5.180556 | 0.347222 | 0.112601 | 0.112601 | 0.048257 | 0.520107 | 0.520107 | 0.520107 | 0.434316 | 0.434316 | 0.434316 | 0 | 0.021716 | 0.114423 | 1,040 | 24 | 83 | 43.333333 | 0.788274 | 0.051923 | 0 | 0 | 0 | 0 | 0.334356 | 0.141104 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 0 | 0.315789 | 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 |
40235e4c6886bf705ee3f0505162a4b65e78cc9a | 3,556 | py | Python | dibs/database.py | phette23/dibs | 85dd630a95a36ded0acd87acb973139a5fd88742 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | dibs/database.py | phette23/dibs | 85dd630a95a36ded0acd87acb973139a5fd88742 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | dibs/database.py | phette23/dibs | 85dd630a95a36ded0acd87acb973139a5fd88742 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | '''
database.py: object definitions for the database
This uses Peewee (http://docs.peewee-orm.com/en/latest/), a small ORM that
allows writing database code entirely in terms of Python objects without
having to know much about SQL.
Copyright
---------
Copyright (c) 2021 by the California Institute of Technology. Th... | 39.955056 | 81 | 0.679415 | 464 | 3,556 | 5.189655 | 0.50431 | 0.008721 | 0.011213 | 0.026578 | 0.087209 | 0.087209 | 0.087209 | 0.087209 | 0.087209 | 0.087209 | 0 | 0.00178 | 0.210067 | 3,556 | 88 | 82 | 40.409091 | 0.855465 | 0.625141 | 0 | 0.129032 | 0 | 0 | 0.035631 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0 | false | 0 | 0.129032 | 0 | 0.935484 | 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 |
402802d7bfc7664bd12914cfafb5de715d9bd743 | 664 | py | Python | microbots/signup/models.py | Varun11940/voice-enabled-chatbot | 0f6ed534adfd95139f817a033fcbf3f749738339 | [
"MIT"
] | 36 | 2019-05-07T16:26:35.000Z | 2022-02-08T06:02:45.000Z | microbots/signup/models.py | Varun11940/voice-enabled-chatbot | 0f6ed534adfd95139f817a033fcbf3f749738339 | [
"MIT"
] | 53 | 2019-06-01T15:55:17.000Z | 2020-10-01T15:35:48.000Z | microbots/signup/models.py | Varun11940/voice-enabled-chatbot | 0f6ed534adfd95139f817a033fcbf3f749738339 | [
"MIT"
] | 73 | 2019-05-08T03:16:04.000Z | 2022-01-17T05:56:59.000Z | from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, BigInteger, String
import config
Base = declarative_base()
formFields = config.form_fields
class Register(Base):
__tablename__ = config.table_name
col1 = Column(formFields[0]['fname'], formFields[0]['ftype'], primary_key=T... | 36.888889 | 97 | 0.689759 | 79 | 664 | 5.632911 | 0.481013 | 0.107865 | 0.103371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024779 | 0.149096 | 664 | 17 | 98 | 39.058824 | 0.762832 | 0 | 0 | 0 | 0 | 0 | 0.121988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0.076923 | 0.769231 | 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 |
402852450687724949ae825c1d7ba8e7f30d935e | 1,431 | py | Python | dmnconverter/tools/print.py | IvoMerchiers/dmn_idp_converter | 521898c36f694ed819a2bd954caa23b87fe83280 | [
"MIT"
] | null | null | null | dmnconverter/tools/print.py | IvoMerchiers/dmn_idp_converter | 521898c36f694ed819a2bd954caa23b87fe83280 | [
"MIT"
] | 1 | 2018-05-31T14:31:37.000Z | 2018-05-31T14:33:18.000Z | dmnconverter/tools/print.py | IvoMerchiers/dmn_idp_converter | 521898c36f694ed819a2bd954caa23b87fe83280 | [
"MIT"
] | null | null | null | def print_idp(file_name: str, vocabulary_strings: list, theory_strings: list, structure_strings: list) -> None:
"""Takes all contents of vocab and theory as list of strings and prints it as IDP code in file_name
:param file_name: Name of output file
:param vocabulary_strings: list of strings, with every str... | 40.885714 | 111 | 0.671558 | 196 | 1,431 | 4.780612 | 0.357143 | 0.082177 | 0.06937 | 0.064034 | 0.176094 | 0.176094 | 0.176094 | 0.176094 | 0.176094 | 0.176094 | 0 | 0.003503 | 0.201957 | 1,431 | 34 | 112 | 42.088235 | 0.816988 | 0.422082 | 0 | 0 | 0 | 0 | 0.185044 | 0.065906 | 0 | 0 | 0 | 0.029412 | 0 | 1 | 0.133333 | false | 0 | 0 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4028b41c5e7b3b8f0eff3d65fc8d635690438938 | 32,243 | py | Python | manila/share/drivers/Nexenta_Wipro/nexenta_helper.py | nidhimittalhada/access_group_repo | 62f3365bc5fb728fcca692a9b3977690fabcd78f | [
"Apache-2.0"
] | null | null | null | manila/share/drivers/Nexenta_Wipro/nexenta_helper.py | nidhimittalhada/access_group_repo | 62f3365bc5fb728fcca692a9b3977690fabcd78f | [
"Apache-2.0"
] | null | null | null | manila/share/drivers/Nexenta_Wipro/nexenta_helper.py | nidhimittalhada/access_group_repo | 62f3365bc5fb728fcca692a9b3977690fabcd78f | [
"Apache-2.0"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2015 Wipro Technologies.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://... | 41.021628 | 114 | 0.53959 | 3,325 | 32,243 | 4.978346 | 0.135038 | 0.049477 | 0.06162 | 0.01607 | 0.508005 | 0.455748 | 0.408385 | 0.366761 | 0.343986 | 0.332387 | 0 | 0.021481 | 0.357504 | 32,243 | 785 | 115 | 41.073885 | 0.777563 | 0.172285 | 0 | 0.454713 | 0 | 0 | 0.215142 | 0.008443 | 0 | 0 | 0 | 0.001274 | 0 | 0 | null | null | 0.011091 | 0.02403 | null | null | 0.123845 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4030193431575d9ee952a7750035c8c4ffcd60f7 | 422 | py | Python | ERation/customer/migrations/0009_customer_email.py | mishelshaji/ERation | 0e755ae63ae2c9cc009e18b72425ac508670a1cf | [
"MIT"
] | null | null | null | ERation/customer/migrations/0009_customer_email.py | mishelshaji/ERation | 0e755ae63ae2c9cc009e18b72425ac508670a1cf | [
"MIT"
] | null | null | null | ERation/customer/migrations/0009_customer_email.py | mishelshaji/ERation | 0e755ae63ae2c9cc009e18b72425ac508670a1cf | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-05-31 10:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('customer', '0008_auto_20200531_1002'),
]
operations = [
migrations.AddField(
model_name='customer',
name='email',
... | 22.210526 | 86 | 0.613744 | 47 | 422 | 5.382979 | 0.787234 | 0.071146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106796 | 0.267773 | 422 | 18 | 87 | 23.444444 | 0.711974 | 0.106635 | 0 | 0 | 1 | 0 | 0.130667 | 0.061333 | 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 |
403158c432831148e56d1a3e46278d71b278601b | 290 | py | Python | python/project/server_rerun_quietly.py | DTUComputeCognitiveSystems/IntroductionToCausalInference | b2d47e4b5ff81419655be18e982c44de3208e9e7 | [
"MIT"
] | 5 | 2020-03-05T08:55:09.000Z | 2020-09-10T10:09:20.000Z | python/project/server_rerun_quietly.py | DTUComputeCognitiveSystems/IntroductionToCausalInference | b2d47e4b5ff81419655be18e982c44de3208e9e7 | [
"MIT"
] | null | null | null | python/project/server_rerun_quietly.py | DTUComputeCognitiveSystems/IntroductionToCausalInference | b2d47e4b5ff81419655be18e982c44de3208e9e7 | [
"MIT"
] | null | null | null | from project.server_reset import reset_server
from project.src.server_machinery import Server
if __name__ == "__main__":
# Reset only internal storage
reset_server(complete=False)
# Make server
server = Server()
# Run
server(answer_emails=False, single_run=True)
| 22.307692 | 48 | 0.734483 | 37 | 290 | 5.378378 | 0.567568 | 0.110553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189655 | 290 | 12 | 49 | 24.166667 | 0.846809 | 0.148276 | 0 | 0 | 0 | 0 | 0.032922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4038d99d7537168bf92fe39dfb5fe3a495b06808 | 8,405 | py | Python | data_check/output/output.py | andrjas/data_check | 12ba740fcf54261bed15f909290649e8350474da | [
"MIT"
] | 1 | 2020-12-26T23:59:42.000Z | 2020-12-26T23:59:42.000Z | data_check/output/output.py | andrjas/data_check | 12ba740fcf54261bed15f909290649e8350474da | [
"MIT"
] | null | null | null | data_check/output/output.py | andrjas/data_check | 12ba740fcf54261bed15f909290649e8350474da | [
"MIT"
] | null | null | null | from pathlib import Path
import pandas as pd
from colorama import Fore, Style
import traceback
from os import linesep
from typing import IO, Optional, Any, Tuple, Union, List, cast
import sys
from ..exceptions import DataCheckException
from ..result import DataCheckResult, ResultType
from ..io import rel_path
from .ha... | 37.522321 | 86 | 0.625699 | 963 | 8,405 | 5.273105 | 0.167186 | 0.028358 | 0.022056 | 0.02757 | 0.378102 | 0.283773 | 0.234541 | 0.193777 | 0.176054 | 0.150059 | 0 | 0.001309 | 0.272933 | 8,405 | 223 | 87 | 37.690583 | 0.829651 | 0.023676 | 0 | 0.230366 | 0 | 0 | 0.076885 | 0.010268 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125654 | false | 0.157068 | 0.057592 | 0.026178 | 0.324607 | 0.162304 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
403f6712a77fd738df480cb938971fcec912de90 | 981 | py | Python | cms/blogs/migrations/0003_auto_20201030_1030.py | rkhleics/nhs-ei.website | 9968916a5c442a2b33003f8a48b238df53ebded0 | [
"MIT"
] | 1 | 2021-02-04T13:20:31.000Z | 2021-02-04T13:20:31.000Z | cms/blogs/migrations/0003_auto_20201030_1030.py | rkhleics/nhs-ei.website | 9968916a5c442a2b33003f8a48b238df53ebded0 | [
"MIT"
] | 77 | 2020-11-29T23:10:16.000Z | 2022-03-23T11:47:51.000Z | cms/blogs/migrations/0003_auto_20201030_1030.py | rkhleics/nhs-ei.website | 9968916a5c442a2b33003f8a48b238df53ebded0 | [
"MIT"
] | 3 | 2021-03-19T09:23:59.000Z | 2021-08-31T21:49:36.000Z | # Generated by Django 3.1.2 on 2020-10-30 10:30
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
class Migration(migrations.Migration):
dependencies = [
('categories', '0007_auto_20201028_1347'),
('blogs', '0002_blog_source'),
]
operat... | 33.827586 | 163 | 0.635066 | 101 | 981 | 6.019802 | 0.524752 | 0.052632 | 0.069079 | 0.108553 | 0.157895 | 0.157895 | 0.157895 | 0.157895 | 0.157895 | 0 | 0 | 0.046605 | 0.234455 | 981 | 28 | 164 | 35.035714 | 0.762983 | 0.045872 | 0 | 0.090909 | 1 | 0 | 0.175589 | 0.078158 | 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 |
404248eb9c71a6e78a81b18bc2b55b94511245d9 | 4,495 | py | Python | src/utils.py | JakeCowton/titanic | 0cce675e082b5f9f830e80c47d1f84857907ad06 | [
"MIT"
] | 1 | 2019-05-31T02:10:59.000Z | 2019-05-31T02:10:59.000Z | src/utils.py | JakeCowton/titanic | 0cce675e082b5f9f830e80c47d1f84857907ad06 | [
"MIT"
] | null | null | null | src/utils.py | JakeCowton/titanic | 0cce675e082b5f9f830e80c47d1f84857907ad06 | [
"MIT"
] | null | null | null | """
utils.py
Utility functions for titanic data analysis
"""
import pandas as pd
import fuckit
from sklearn.svm import SVR, SVC
EVALUATION_FOLD_RANGE = {
0: (0, 89),
1: (90, 179),
2: (180, 269),
3: (270, 359),
4: (360, 449),
5: (450, 539),
6: (540, 629),
7: (630, 719),
8: (720... | 29 | 77 | 0.579978 | 620 | 4,495 | 4.082258 | 0.28871 | 0.055314 | 0.086922 | 0.075859 | 0.380087 | 0.312525 | 0.282102 | 0.143422 | 0.143422 | 0.123667 | 0 | 0.036585 | 0.252058 | 4,495 | 154 | 78 | 29.188312 | 0.71624 | 0.096552 | 0 | 0.214286 | 0 | 0 | 0.116571 | 0.014289 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.030612 | 0 | 0.173469 | 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 |
404b618d8f44accb96e9ed7de439a0e2c21fdb65 | 1,997 | py | Python | tests/platform/test_service_channels.py | labd/commercetools-python-sdk | d8ec285f08d56ede2e4cad45c74833f5b609ab5c | [
"MIT"
] | 15 | 2018-11-02T14:35:52.000Z | 2022-03-16T07:51:44.000Z | tests/platform/test_service_channels.py | lime-green/commercetools-python-sdk | 63b77f6e5abe43e2b3ebbf3cdbbe00c7cf80dca6 | [
"MIT"
] | 84 | 2018-11-02T12:50:32.000Z | 2022-03-22T01:25:54.000Z | tests/platform/test_service_channels.py | lime-green/commercetools-python-sdk | 63b77f6e5abe43e2b3ebbf3cdbbe00c7cf80dca6 | [
"MIT"
] | 13 | 2019-01-03T09:16:50.000Z | 2022-02-15T18:37:19.000Z | import pytest
from requests.exceptions import HTTPError
from commercetools.platform import models
def test_channel_get_by_id(old_client):
channel = old_client.channels.create(
models.ChannelDraft(
key="test-channel", roles=[models.ChannelRoleEnum.INVENTORY_SUPPLY]
)
)
assert ... | 27.736111 | 80 | 0.654482 | 231 | 1,997 | 5.528139 | 0.316017 | 0.084573 | 0.119812 | 0.075176 | 0.624902 | 0.51527 | 0.490995 | 0.490995 | 0.245889 | 0.166014 | 0 | 0.004636 | 0.243866 | 1,997 | 71 | 81 | 28.126761 | 0.84106 | 0.099649 | 0 | 0.333333 | 0 | 0 | 0.075366 | 0 | 0 | 0 | 0 | 0.014085 | 0.176471 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
404c4e71059fafbb25085e0b99e548ed2e65f727 | 8,000 | py | Python | genetic-algorithm-tutorial/implementation.py | fimoziq/tutorials | f47f1b59bf3c9e9f79d530c6fc8ca36c0d9ea93b | [
"MIT"
] | 670 | 2020-07-23T11:33:36.000Z | 2022-03-31T16:38:11.000Z | genetic-algorithm-tutorial/implementation.py | terragord7/tutorials | a5c3f1fed6c5c4d23f59a41c024f7499055c8d81 | [
"MIT"
] | 3 | 2021-01-03T16:36:39.000Z | 2022-02-17T06:05:43.000Z | genetic-algorithm-tutorial/implementation.py | terragord7/tutorials | a5c3f1fed6c5c4d23f59a41c024f7499055c8d81 | [
"MIT"
] | 281 | 2020-07-23T06:37:28.000Z | 2022-03-30T07:33:48.000Z | # -*- coding: utf-8 -*-
"""genetic-algorithm-python-tutorial.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/161ijkvn8wG_seVtQexm-p3fW3r5p8s_x
# Genetic Algorithm Implementation with Python
* Tutorial: https://towardsai.net/p/computer-science/ge... | 36.697248 | 410 | 0.619125 | 1,020 | 8,000 | 4.82451 | 0.297059 | 0.022353 | 0.026824 | 0.008941 | 0.115627 | 0.076001 | 0.076001 | 0.076001 | 0.076001 | 0.076001 | 0 | 0.018061 | 0.287125 | 8,000 | 217 | 411 | 36.866359 | 0.844819 | 0.3995 | 0 | 0.040404 | 1 | 0 | 0.059306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070707 | false | 0 | 0.030303 | 0 | 0.161616 | 0.010101 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.