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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9677bbcd0dfdb24413182900511a1e43b219d536 | 517 | py | Python | notecard_pseudo_sensor/notecard_pseudo_sensor.py | blues/notecard-pseudo-sensor-python | 19429e3420d168eda622562f092b1e4b1dcb77d5 | [
"MIT"
] | null | null | null | notecard_pseudo_sensor/notecard_pseudo_sensor.py | blues/notecard-pseudo-sensor-python | 19429e3420d168eda622562f092b1e4b1dcb77d5 | [
"MIT"
] | null | null | null | notecard_pseudo_sensor/notecard_pseudo_sensor.py | blues/notecard-pseudo-sensor-python | 19429e3420d168eda622562f092b1e4b1dcb77d5 | [
"MIT"
] | null | null | null | import random
class NotecardPseudoSensor:
def __init__(self, card):
self.card = card
# Read the temperature from the Notecard’s temperature
# sensor. The Notecard captures a new temperature sample every
# five minutes.
def temp(self):
temp_req = {"req": "card.temp"}
temp_rsp = self.card.Transact... | 27.210526 | 64 | 0.711799 | 72 | 517 | 5 | 0.583333 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012019 | 0.195358 | 517 | 18 | 65 | 28.722222 | 0.853365 | 0.398453 | 0 | 0 | 0 | 0 | 0.055738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.1 | 0.7 | 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 | 1 | 0 | 0 | 2 |
96843be69995d5261982a7a95d54bc0c85b10d1c | 1,124 | py | Python | pyclick/click_models/task_centric/SearchTask.py | gaudel/ranking_bandits | 1fe4a38b17a3bb7ccab3ae0f4d0afb70fe54dbc9 | [
"MIT"
] | 3 | 2021-07-22T14:46:01.000Z | 2021-07-23T08:55:01.000Z | pyclick/click_models/task_centric/SearchTask.py | gaudel/ranking_bandits | 1fe4a38b17a3bb7ccab3ae0f4d0afb70fe54dbc9 | [
"MIT"
] | null | null | null | pyclick/click_models/task_centric/SearchTask.py | gaudel/ranking_bandits | 1fe4a38b17a3bb7ccab3ae0f4d0afb70fe54dbc9 | [
"MIT"
] | null | null | null | #
# Copyright (C) 2015 Ilya Markov
#
# Full copyright notice can be found in LICENSE.
#
from collections import OrderedDict
__author__ = 'Ilya Markov'
class SearchTask(object):
"""A search task consisting of multiple search sessions."""
def __init__(self, task):
self._task = task
self.searc... | 27.414634 | 104 | 0.669929 | 136 | 1,124 | 5.25 | 0.397059 | 0.176471 | 0.095238 | 0.058824 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004723 | 0.246441 | 1,124 | 40 | 105 | 28.1 | 0.838253 | 0.251779 | 0 | 0 | 0 | 0 | 0.020202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.111111 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
968b31d315d2794504114cd12a305550671ccee4 | 782 | py | Python | Exercises/Databases/playlist-app/forms.py | pedwards95/Springboard_Class | 9df8dbd8832223e89b89d12db3f7e0b178e2ed79 | [
"MIT"
] | null | null | null | Exercises/Databases/playlist-app/forms.py | pedwards95/Springboard_Class | 9df8dbd8832223e89b89d12db3f7e0b178e2ed79 | [
"MIT"
] | null | null | null | Exercises/Databases/playlist-app/forms.py | pedwards95/Springboard_Class | 9df8dbd8832223e89b89d12db3f7e0b178e2ed79 | [
"MIT"
] | null | null | null | """Forms for playlist app."""
from wtforms import SelectField, StringField, PasswordField, ValidationError
from wtforms.validators import InputRequired, Email
from flask_wtf import FlaskForm
class PlaylistForm(FlaskForm):
"""Form for adding playlists."""
name = StringField("Name",validators=[InputRequired()... | 28.962963 | 76 | 0.734015 | 83 | 782 | 6.903614 | 0.53012 | 0.160558 | 0.08377 | 0.115183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144501 | 782 | 26 | 77 | 30.076923 | 0.856502 | 0.209719 | 0 | 0 | 0 | 0 | 0.061977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.272727 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
96b228ae9e7649879cdeda2fdd3f35cf03b7b213 | 57 | py | Python | day1/main.py | HallerPatrick/aoc-2021 | 4df56c940f5fcd0b9967e3f8d8f7a80ef251217e | [
"MIT"
] | null | null | null | day1/main.py | HallerPatrick/aoc-2021 | 4df56c940f5fcd0b9967e3f8d8f7a80ef251217e | [
"MIT"
] | null | null | null | day1/main.py | HallerPatrick/aoc-2021 | 4df56c940f5fcd0b9967e3f8d8f7a80ef251217e | [
"MIT"
] | null | null | null | x = 3
def foo():
y = "String"
return y
foo()
| 5.7 | 16 | 0.438596 | 9 | 57 | 2.777778 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.403509 | 57 | 9 | 17 | 6.333333 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 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 | 2 |
96baf8d07ea198031649ec3fdb101d5cf09a30ac | 1,291 | py | Python | schedpy/config.py | safiya03/schedpy | 719fd08e0b5d2ed95bf70c4c0d3b1b4a8463d1ac | [
"MIT"
] | 2 | 2019-12-04T18:58:47.000Z | 2020-03-07T13:09:10.000Z | schedpy/config.py | safiya03/schedpy | 719fd08e0b5d2ed95bf70c4c0d3b1b4a8463d1ac | [
"MIT"
] | 4 | 2019-12-04T19:02:04.000Z | 2019-12-04T19:10:54.000Z | schedpy/config.py | safiya03/schedpy | 719fd08e0b5d2ed95bf70c4c0d3b1b4a8463d1ac | [
"MIT"
] | 3 | 2019-12-05T07:30:37.000Z | 2020-11-27T15:05:33.000Z | from datetime import date
class Config(object):
def __init__(self):
self.start_day = 0
self.start_date = date.today()
def _set_configs(self, start_day, start_date):
"""Method to set start day."""
self.start_day = start_day
self.start_date = start_date
days_list... | 30.023256 | 108 | 0.502711 | 146 | 1,291 | 4.205479 | 0.315068 | 0.278502 | 0.29316 | 0.110749 | 0.389251 | 0.149837 | 0.149837 | 0.100977 | 0 | 0 | 0 | 0.004994 | 0.379551 | 1,291 | 42 | 109 | 30.738095 | 0.761548 | 0.044152 | 0 | 0 | 0 | 0 | 0.088762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.027778 | 0.027778 | 0.194444 | 0.055556 | 0 | 0 | 0 | null | 1 | 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 | 2 |
96bfc271402cd1c2d0a61f6e1be27c1f167119be | 898 | py | Python | WeatherStationSensorsReader/controllers/ground_temperature_controller.py | weather-station-project/weather-station-sensors-reader | cda7902ee382248b41d14b9a2c0543817decbb4a | [
"MIT"
] | null | null | null | WeatherStationSensorsReader/controllers/ground_temperature_controller.py | weather-station-project/weather-station-sensors-reader | cda7902ee382248b41d14b9a2c0543817decbb4a | [
"MIT"
] | null | null | null | WeatherStationSensorsReader/controllers/ground_temperature_controller.py | weather-station-project/weather-station-sensors-reader | cda7902ee382248b41d14b9a2c0543817decbb4a | [
"MIT"
] | null | null | null | from controllers.controller import Controller
from dao.ground_temperature_dao import GroundTemperatureDao
from sensors.ground_temperature_sensor import GroundTemperatureSensor
class GroundTemperatureController(Controller):
""" Represents the controller with the ground temperature sensor and DAO """
def __ini... | 64.142857 | 136 | 0.502227 | 55 | 898 | 7.981818 | 0.454545 | 0.116173 | 0.104784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.454343 | 898 | 13 | 137 | 69.076923 | 0.895918 | 0.075724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.222222 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
73707d826b46ea5a349c8e03b0cafc919ea900a5 | 1,982 | py | Python | src/sims4communitylib/events/build_buy/common_build_buy_event_dispatcher.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | 118 | 2019-08-31T04:33:18.000Z | 2022-03-28T21:12:14.000Z | src/sims4communitylib/events/build_buy/common_build_buy_event_dispatcher.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | 15 | 2019-12-05T01:29:46.000Z | 2022-02-18T17:13:46.000Z | src/sims4communitylib/events/build_buy/common_build_buy_event_dispatcher.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | 28 | 2019-09-07T04:11:05.000Z | 2022-02-07T18:31:40.000Z | """
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
"""
from typing import Any
from sims4communitylib.events.build... | 43.086957 | 125 | 0.792634 | 237 | 1,982 | 6.367089 | 0.337553 | 0.06892 | 0.039761 | 0.058317 | 0.495693 | 0.408217 | 0.408217 | 0.344599 | 0.279655 | 0.279655 | 0 | 0.010802 | 0.112513 | 1,982 | 45 | 126 | 44.044444 | 0.847072 | 0.223512 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.347826 | 0.086957 | 0.73913 | 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 | 1 | 0 | 0 | 2 |
7372d8e280bfee2d014c4e70726c289a411ac62b | 1,202 | py | Python | mail.py | Landers1037/simple-email-sms | d9172e389c24ceb4a9160d5108502a8ba9337d5e | [
"MIT"
] | 1 | 2019-05-27T08:56:52.000Z | 2019-05-27T08:56:52.000Z | mail.py | Landers1037/simple-email-sms | d9172e389c24ceb4a9160d5108502a8ba9337d5e | [
"MIT"
] | 1 | 2019-05-27T02:53:35.000Z | 2019-05-27T02:53:56.000Z | mail.py | Landers1037/simple-email-sms | d9172e389c24ceb4a9160d5108502a8ba9337d5e | [
"MIT"
] | null | null | null | import smtplib
import schedule
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.image import MIMEImage
from email.header import Header
import time
import json
# 设置smtplib所需的参数
# 下面的发件人,收件人是用于邮件传输的。
class pymail:
with open('service.json', 'r', enc... | 27.318182 | 74 | 0.616473 | 143 | 1,202 | 5.153846 | 0.405594 | 0.048847 | 0.052917 | 0.043419 | 0.065129 | 0.065129 | 0 | 0 | 0 | 0 | 0 | 0.002191 | 0.240433 | 1,202 | 43 | 75 | 27.953488 | 0.805038 | 0.028286 | 0 | 0 | 0 | 0 | 0.106952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.060606 | 0.242424 | 0 | 0.606061 | 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 | 1 | 0 | 0 | 2 |
7379ef134306e3fa7e9f8f7f9df8e836ee26e3b0 | 5,793 | py | Python | stack/__init__.py | FireHead90544/stack.py | 783f59928e7f58519864e6e7a2306f18655c9f65 | [
"Apache-2.0"
] | 1 | 2021-07-30T16:52:03.000Z | 2021-07-30T16:52:03.000Z | stack/__init__.py | FireHead90544/stack.py | 783f59928e7f58519864e6e7a2306f18655c9f65 | [
"Apache-2.0"
] | null | null | null | stack/__init__.py | FireHead90544/stack.py | 783f59928e7f58519864e6e7a2306f18655c9f65 | [
"Apache-2.0"
] | null | null | null | """
Stack.py - LIFO Stack & FIFO Queue Implementation in Python
For Docs, Visit The GitHub Repo: https://github.com/FireHead90544/stack.py
Author: Rudransh Joshi (https://github.com/FireHead90544)
Issues: https://github.com/FireHead90544/stack.py/issues
"""
from __future__ import annotations
from typing import List, A... | 28.678218 | 113 | 0.586915 | 721 | 5,793 | 4.60749 | 0.170596 | 0.036123 | 0.015051 | 0.016857 | 0.535822 | 0.449127 | 0.400361 | 0.384106 | 0.340157 | 0.316075 | 0 | 0.007628 | 0.321077 | 5,793 | 201 | 114 | 28.820896 | 0.83702 | 0.385983 | 0 | 0.342466 | 0 | 0.013699 | 0.169599 | 0.039409 | 0 | 0 | 0 | 0 | 0 | 1 | 0.287671 | false | 0 | 0.041096 | 0 | 0.561644 | 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 | 1 | 0 | 0 | 2 |
737c558dfd529e7f30a69f2924eca68b610b71de | 1,278 | py | Python | autumn/models/covid_19/stratifications/history.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | autumn/models/covid_19/stratifications/history.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | autumn/models/covid_19/stratifications/history.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-10-22T04:47:34.000Z | 2019-10-22T04:47:34.000Z | from typing import Dict
from summer import Stratification
from autumn.models.covid_19.parameters import Parameters
from autumn.models.covid_19.constants import COMPARTMENTS, History, HISTORY_STRATA
from autumn.models.covid_19.stratifications.vaccination import apply_immunity_to_strat
def get_history_strat(params: P... | 36.514286 | 117 | 0.784038 | 156 | 1,278 | 6.25641 | 0.467949 | 0.061475 | 0.04918 | 0.064549 | 0.070697 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00747 | 0.161972 | 1,278 | 34 | 118 | 37.588235 | 0.903828 | 0.377934 | 0 | 0 | 0 | 0 | 0.009296 | 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 | 1 | 0 | 0 | 2 |
737dfa7c6e4ef99be8c84a2f5c58379914d6c165 | 233 | py | Python | API/onepanman_api/admin/rule.py | CMS0503/CodeOnBoard | 2df8c9d934f6ffb05dbfbde329f84c66f2348618 | [
"MIT"
] | null | null | null | API/onepanman_api/admin/rule.py | CMS0503/CodeOnBoard | 2df8c9d934f6ffb05dbfbde329f84c66f2348618 | [
"MIT"
] | 12 | 2020-11-19T09:24:02.000Z | 2020-12-02T11:07:22.000Z | API/onepanman_api/admin/rule.py | CMS0503/CodeOnBoard | 2df8c9d934f6ffb05dbfbde329f84c66f2348618 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .. import models
@admin.register(models.Rule)
class RuleAdmin(admin.ModelAdmin):
"""
규칙 정보
"""
list_display = ['id', 'type', 'name']
class Meta:
model = models.Rule | 17.923077 | 41 | 0.626609 | 28 | 233 | 5.178571 | 0.714286 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236052 | 233 | 13 | 42 | 17.923077 | 0.814607 | 0.021459 | 0 | 0 | 0 | 0 | 0.046948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
738ff9b464b875ec7ce2a25b19c5b5d1f421f123 | 946 | py | Python | mne/viz/__init__.py | jaeilepp/eggie | a7e812f27e33f9c43ac2e36c6b45a26a01530a06 | [
"BSD-2-Clause"
] | null | null | null | mne/viz/__init__.py | jaeilepp/eggie | a7e812f27e33f9c43ac2e36c6b45a26a01530a06 | [
"BSD-2-Clause"
] | null | null | null | mne/viz/__init__.py | jaeilepp/eggie | a7e812f27e33f9c43ac2e36c6b45a26a01530a06 | [
"BSD-2-Clause"
] | null | null | null | """Visualization routines
"""
from .topomap import plot_evoked_topomap, plot_projs_topomap
from .topomap import plot_ica_components, plot_ica_topomap
from .topomap import plot_tfr_topomap, plot_topomap
from .topo import (plot_topo, plot_topo_tfr, plot_topo_image_epochs,
iter_topography)
from .utils ... | 45.047619 | 68 | 0.842495 | 143 | 946 | 5.13986 | 0.335664 | 0.176871 | 0.069388 | 0.085714 | 0.07619 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002381 | 0.112051 | 946 | 20 | 69 | 47.3 | 0.872619 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.941176 | 0 | 0.941176 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
73968a64038186a231ad939ca0949adb285e3fe1 | 1,191 | py | Python | nextactions/card.py | stevecshanks/trello-next-actions | d9a5086185bccf969d551a25f966e1b24ce4a299 | [
"MIT"
] | null | null | null | nextactions/card.py | stevecshanks/trello-next-actions | d9a5086185bccf969d551a25f966e1b24ce4a299 | [
"MIT"
] | 1 | 2016-12-28T16:23:19.000Z | 2016-12-28T16:25:18.000Z | nextactions/card.py | stevecshanks/trello-next-actions | d9a5086185bccf969d551a25f966e1b24ce4a299 | [
"MIT"
] | null | null | null | from urllib.parse import urlparse
class Card:
AUTO_GENERATED_TEXT = 'Auto-created by TrelloNextActions'
def __init__(self, trello, json):
self._trello = trello
self.id = json['id']
self.name = json['name']
self.board_id = json['idBoard']
self.description = json['desc'... | 28.357143 | 78 | 0.617968 | 137 | 1,191 | 5.189781 | 0.452555 | 0.056259 | 0.04782 | 0.059072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00344 | 0.267842 | 1,191 | 41 | 79 | 29.04878 | 0.811927 | 0 | 0 | 0 | 1 | 0 | 0.123426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.032258 | 0.096774 | 0.483871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
739e55523a04f2d7ccad72f1592313ae63718b29 | 673 | py | Python | Strings/1255_2.py | jeconiassantos/uriissues | f6c32f8632b9940a4886240ea5d22300922dc79a | [
"MIT"
] | null | null | null | Strings/1255_2.py | jeconiassantos/uriissues | f6c32f8632b9940a4886240ea5d22300922dc79a | [
"MIT"
] | null | null | null | Strings/1255_2.py | jeconiassantos/uriissues | f6c32f8632b9940a4886240ea5d22300922dc79a | [
"MIT"
] | null | null | null | N = int(input())
while N > 0:
texto = input().lower().replace(' ', '')
alfabeto = 'abcdefghijklmnopqrstuvwxyz'
contador = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
result = ''
a, i, count, maior = 0, 0, 0, 0
break_ = True
while count < 52:
if break_ == True:
c... | 28.041667 | 68 | 0.451709 | 94 | 673 | 3.202128 | 0.265957 | 0.186047 | 0.259136 | 0.318937 | 0.086379 | 0.086379 | 0.086379 | 0.086379 | 0.086379 | 0.086379 | 0 | 0.094203 | 0.384844 | 673 | 23 | 69 | 29.26087 | 0.63285 | 0 | 0 | 0 | 0 | 0 | 0.040119 | 0.038633 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
739f2e72b2518d429688ce94886662287a341dd5 | 78 | py | Python | activities/renderers/activity/pdf/colors.py | zemogle/astroEDU | 8d240ff35a288c9e920f6527f1cd3957d116e6ae | [
"MIT"
] | 1 | 2021-09-09T12:32:34.000Z | 2021-09-09T12:32:34.000Z | activities/renderers/activity/pdf/colors.py | zemogle/astroEDU | 8d240ff35a288c9e920f6527f1cd3957d116e6ae | [
"MIT"
] | 4 | 2021-09-09T19:53:18.000Z | 2021-09-24T09:11:26.000Z | activities/renderers/activity/pdf/colors.py | zemogle/astroEDU | 8d240ff35a288c9e920f6527f1cd3957d116e6ae | [
"MIT"
] | null | null | null | HEADER_COLOR = '#F78606'
TEXT_COLOR = '#676867'
FOOTER_LINE_COLOR = '#B0B0AE'
| 19.5 | 29 | 0.730769 | 10 | 78 | 5.3 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188406 | 0.115385 | 78 | 3 | 30 | 26 | 0.57971 | 0 | 0 | 0 | 0 | 0 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
73a30f48f20340b22a4c76ca06d5d7cfa5438e73 | 553 | py | Python | shop/migrations/0001_initial.py | aashish01/CRUD-Operation-Django-Rest-Framework | f6950e37c5eb25942c15ff733416dd90347b2a25 | [
"MIT"
] | null | null | null | shop/migrations/0001_initial.py | aashish01/CRUD-Operation-Django-Rest-Framework | f6950e37c5eb25942c15ff733416dd90347b2a25 | [
"MIT"
] | null | null | null | shop/migrations/0001_initial.py | aashish01/CRUD-Operation-Django-Rest-Framework | f6950e37c5eb25942c15ff733416dd90347b2a25 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-07-02 05:41
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='item',
fields=[
('id', models.AutoField(pri... | 23.041667 | 76 | 0.540687 | 54 | 553 | 5.481481 | 0.759259 | 0.101351 | 0.121622 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051213 | 0.329114 | 553 | 23 | 77 | 24.043478 | 0.746631 | 0.081374 | 0 | 0 | 1 | 0 | 0.039526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.3125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
73addeab48b465aab956af75fcbbd1d44a07f92f | 15,000 | py | Python | scuole/stats/schemas/tapr/pre2014schema.py | texastribune/scuole | 8ab316ee50ef0d8e71b94b50dc889d10c6e83412 | [
"MIT"
] | 1 | 2019-03-12T04:30:02.000Z | 2019-03-12T04:30:02.000Z | scuole/stats/schemas/tapr/pre2014schema.py | texastribune/scuole | 8ab316ee50ef0d8e71b94b50dc889d10c6e83412 | [
"MIT"
] | 616 | 2017-08-18T21:15:39.000Z | 2022-03-25T11:17:10.000Z | scuole/stats/schemas/tapr/pre2014schema.py | texastribune/scuole | 8ab316ee50ef0d8e71b94b50dc889d10c6e83412 | [
"MIT"
] | null | null | null | # Schema used for pre-2013-2014 TAPR data
SCHEMA = {
'staff-and-student-information': {
'all_students_count': 'PETALLC',
'african_american_count': 'PETBLAC',
'african_american_percent': 'PETBLAP',
'american_indian_count': 'PETINDC',
'american_indian_percent': 'PETINDP',
... | 54.744526 | 85 | 0.7034 | 1,615 | 15,000 | 5.879876 | 0.199381 | 0.083404 | 0.145956 | 0.064869 | 0.47104 | 0.243892 | 0.06845 | 0.025274 | 0 | 0 | 0 | 0.023876 | 0.184667 | 15,000 | 273 | 86 | 54.945055 | 0.752576 | 0.270533 | 0 | 0 | 0 | 0 | 0.652954 | 0.481502 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
73c5bf01be8b25980264bc227433957a55bd99b7 | 368 | py | Python | analyticsclient/exceptions.py | Jawayria/edx-analytics-data-api-client | 1ff83fc0ab1f56032826157502d987ecc5ac2e82 | [
"Apache-2.0"
] | 12 | 2015-07-24T17:06:18.000Z | 2021-07-21T15:22:30.000Z | analyticsclient/exceptions.py | Jawayria/edx-analytics-data-api-client | 1ff83fc0ab1f56032826157502d987ecc5ac2e82 | [
"Apache-2.0"
] | 61 | 2015-01-06T02:55:17.000Z | 2021-11-18T20:51:19.000Z | analyticsclient/exceptions.py | Jawayria/edx-analytics-data-api-client | 1ff83fc0ab1f56032826157502d987ecc5ac2e82 | [
"Apache-2.0"
] | 26 | 2015-01-26T14:39:33.000Z | 2021-03-26T06:38:06.000Z | class ClientError(Exception):
"""Common base class for all client errors."""
class NotFoundError(ClientError):
"""URL was not found."""
class InvalidRequestError(ClientError):
"""The API request was invalid."""
class TimeoutError(ClientError): # pylint: disable=redefined-builtin
"""The API server... | 24.533333 | 69 | 0.717391 | 42 | 368 | 6.285714 | 0.714286 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 368 | 14 | 70 | 26.285714 | 0.857143 | 0.494565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
73d7639a690983572e46a8202fb7895db1bb1e78 | 1,852 | py | Python | app/converters.py | UniOulu-Ubicomp-Programming-Courses/pwp-inventory-service | 5631ae42780b3af693e6ba71872a9b6ffda708d8 | [
"MIT"
] | null | null | null | app/converters.py | UniOulu-Ubicomp-Programming-Courses/pwp-inventory-service | 5631ae42780b3af693e6ba71872a9b6ffda708d8 | [
"MIT"
] | null | null | null | app/converters.py | UniOulu-Ubicomp-Programming-Courses/pwp-inventory-service | 5631ae42780b3af693e6ba71872a9b6ffda708d8 | [
"MIT"
] | null | null | null | """
This module defines custom converters for routing. These converters streamline
resource code by performing the process of getting the model instance from the
database before the view method is called. The converter converts a resource's
slug to the corresponding model instance, which is then placed into the view
me... | 33.672727 | 79 | 0.685205 | 260 | 1,852 | 4.838462 | 0.392308 | 0.033386 | 0.020668 | 0.041335 | 0.170111 | 0.130366 | 0.130366 | 0.130366 | 0.130366 | 0.130366 | 0 | 0.002188 | 0.259719 | 1,852 | 55 | 80 | 33.672727 | 0.91539 | 0.538337 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0.052632 | 0.684211 | 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 | 1 | 0 | 0 | 2 |
73d7eb2238d3b8f6b37085a9c2e1479e64d16baf | 31,342 | py | Python | AppDashboard/test/functional/test_dashboard.py | eabyshev/appscale | 1cfb5a609130f415143ec76718e839b0f73ac668 | [
"Apache-2.0"
] | 2 | 2018-10-09T17:48:12.000Z | 2019-01-15T10:18:19.000Z | AppDashboard/test/functional/test_dashboard.py | christianbaun/appscale | c24ddfd987c8eed8ed8864cc839cc0556a8af3c7 | [
"Apache-2.0"
] | null | null | null | AppDashboard/test/functional/test_dashboard.py | christianbaun/appscale | c24ddfd987c8eed8ed8864cc839cc0556a8af3c7 | [
"Apache-2.0"
] | 1 | 2022-02-20T20:57:12.000Z | 2022-02-20T20:57:12.000Z | #!/usr/bin/env python2
from flexmock import flexmock
import os
import re
import SOAPpy
import StringIO
import sys
import unittest
sys.path.append(os.path.join(os.path.dirname(__file__), '../../../AppDashboard'))
from dashboard import AppDeletePage
from dashboard import AppUploadPage
from dashboard import AuthorizePag... | 44.019663 | 132 | 0.688246 | 4,085 | 31,342 | 5.108935 | 0.080539 | 0.049066 | 0.093531 | 0.128606 | 0.770244 | 0.719454 | 0.688356 | 0.665213 | 0.649928 | 0.633253 | 0 | 0.016567 | 0.144885 | 31,342 | 711 | 133 | 44.081575 | 0.762136 | 0.006381 | 0 | 0.523292 | 0 | 0.006211 | 0.270076 | 0.1334 | 0 | 0 | 0 | 0 | 0.21118 | 1 | 0.079193 | false | 0.031056 | 0.03882 | 0 | 0.122671 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
73dbcbd67c906acef272848de33b325a6f949ae9 | 329 | py | Python | Metric.py | noooway/exj | 4f9adf2e340c0e215f5138a848cddba6567725a9 | [
"MIT"
] | 1 | 2020-04-15T21:42:42.000Z | 2020-04-15T21:42:42.000Z | Metric.py | noooway/exj | 4f9adf2e340c0e215f5138a848cddba6567725a9 | [
"MIT"
] | null | null | null | Metric.py | noooway/exj | 4f9adf2e340c0e215f5138a848cddba6567725a9 | [
"MIT"
] | null | null | null | from Exercise import *
class Metric( Exercise ):
"""Metric is just another sort of exercise"""
def __init__( self, description_dict ):
super( Metric, self ).__init__( description_dict )
@classmethod
def init_from_json( cls, dict_from_json ):
metric = cls( dict_from_json )
retur... | 27.416667 | 58 | 0.668693 | 40 | 329 | 5.1 | 0.5 | 0.117647 | 0.107843 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246201 | 329 | 11 | 59 | 29.909091 | 0.822581 | 0.118541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
73e41fcd951dffad95d9bd5bc29e479aa153adf4 | 430 | py | Python | myproject/poco/models.py | rg3915/geodjango | b92e26088158c1601a976b87ec2f14f33ca16722 | [
"Xnet",
"X11"
] | null | null | null | myproject/poco/models.py | rg3915/geodjango | b92e26088158c1601a976b87ec2f14f33ca16722 | [
"Xnet",
"X11"
] | 4 | 2021-03-19T10:15:30.000Z | 2022-02-10T10:27:56.000Z | myproject/poco/models.py | rg3915/geodjango | b92e26088158c1601a976b87ec2f14f33ca16722 | [
"Xnet",
"X11"
] | null | null | null | # This is an auto-generated Django model module created by ogrinspect.
from django.contrib.gis.db import models
class Poco(models.Model):
proprietar = models.CharField(max_length=254)
orgao = models.CharField(max_length=254)
data_perfu = models.DateField()
profundida = models.FloatField()
q_m3h = ... | 33.076923 | 70 | 0.744186 | 56 | 430 | 5.625 | 0.660714 | 0.142857 | 0.171429 | 0.228571 | 0.257143 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038674 | 0.15814 | 430 | 12 | 71 | 35.833333 | 0.831492 | 0.15814 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
73eed2dfddc3c295590fed1967638ba75b89bb7a | 924 | py | Python | Dataset/Leetcode/test/5/179.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/5/179.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/5/179.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution(object):
def XXX(self, s):
"""
:type s: str
:rtype: str
"""
s_length = len(s)
mark = [[0 for i in range(s_length)] for _ in range(s_length)]
max_length = 0
max_sub_str = ""
for j in range(0, s_length):
for i... | 31.862069 | 70 | 0.331169 | 118 | 924 | 2.440678 | 0.220339 | 0.041667 | 0.052083 | 0.152778 | 0.361111 | 0.319444 | 0.319444 | 0.319444 | 0.319444 | 0.319444 | 0 | 0.039312 | 0.559524 | 924 | 28 | 71 | 33 | 0.668305 | 0 | 0 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
73f0b4625b14381b39b9abee8de13a246d6aa36e | 603 | py | Python | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/base/__init__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | 1 | 2019-12-19T01:53:13.000Z | 2019-12-19T01:53:13.000Z | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/base/__init__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/base/__init__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import ir
import workflow
import module
import res
import report
import tests
def post_init(cr, registry):
"""Rewrite ICP's to force groups"""
from odoo import api, SUPERUSER_ID
from odoo.addons.base.ir.ir_c... | 27.409091 | 75 | 0.699834 | 86 | 603 | 4.755814 | 0.616279 | 0.03912 | 0.08313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002075 | 0.200663 | 603 | 21 | 76 | 28.714286 | 0.846473 | 0.207297 | 0 | 0 | 0 | 0 | 0.04034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.533333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
73f41924b685c051a11fa3e2dc69caad82125502 | 1,734 | py | Python | tests/test_key.py | fortesp/PyBitcoinAddress | da9dd65e529600bc7ad0b5427c91bbff533fe773 | [
"MIT"
] | 85 | 2020-03-21T02:57:25.000Z | 2022-03-25T12:13:14.000Z | tests/test_key.py | fortesp/PyBitcoinAddress | da9dd65e529600bc7ad0b5427c91bbff533fe773 | [
"MIT"
] | 15 | 2020-09-09T18:14:15.000Z | 2021-12-12T13:54:36.000Z | tests/test_key.py | fortesp/PyBitcoinAddress | da9dd65e529600bc7ad0b5427c91bbff533fe773 | [
"MIT"
] | 37 | 2020-03-21T02:40:59.000Z | 2022-03-25T14:33:32.000Z | import unittest
from unittest import TestCase
from bitcoinaddress import Key, Seed
class TestKey(TestCase):
def testFromRandomSeed(self):
# given
key = Key.of(Seed())
# then
self.assertEqual(len(key.hex), 64)
self.assertEqual(len(key.mainnet.wif), 51)
self.assert... | 36.125 | 101 | 0.739908 | 128 | 1,734 | 9.945313 | 0.289063 | 0.141398 | 0.127258 | 0.117832 | 0.553024 | 0.391202 | 0.391202 | 0.391202 | 0.391202 | 0.391202 | 0 | 0.193571 | 0.17474 | 1,734 | 47 | 102 | 36.893617 | 0.696017 | 0.024798 | 0 | 0.230769 | 0 | 0 | 0.409037 | 0.404281 | 0 | 0 | 0 | 0 | 0.461538 | 1 | 0.153846 | false | 0 | 0.115385 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
73fa083daa51cb6eb020483a5e2a963e0266dfaf | 3,509 | py | Python | tpi1/tree_search.py | vascoalramos/ia | 4fdfa29877822f184c668900a0253cbe0084da12 | [
"MIT"
] | 1 | 2019-11-13T14:23:05.000Z | 2019-11-13T14:23:05.000Z | tpi1/tree_search.py | vascoalramos/ia | 4fdfa29877822f184c668900a0253cbe0084da12 | [
"MIT"
] | null | null | null | tpi1/tree_search.py | vascoalramos/ia | 4fdfa29877822f184c668900a0253cbe0084da12 | [
"MIT"
] | 1 | 2019-10-28T16:29:04.000Z | 2019-10-28T16:29:04.000Z |
# Module: tree_search
#
# This module provides a set o classes for automated
# problem solving through tree search:
# SearchDomain - problem domains
# SearchProblem - concrete problems to be solved
# SearchNode - search tree nodes
# SearchTree - search tree with the necessary methods for se... | 29.991453 | 73 | 0.61043 | 411 | 3,509 | 5.107056 | 0.347932 | 0.03859 | 0.030967 | 0.021439 | 0.040972 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007401 | 0.306925 | 3,509 | 116 | 74 | 30.25 | 0.855674 | 0.282702 | 0 | 0.188406 | 0 | 0 | 0.015196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0.101449 | 0.014493 | 0.043478 | 0.376812 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
73ffb35e5502576c65abc69058974b01ee34a8b9 | 452 | py | Python | parser/parser/database.py | spider19281/parser | ca26bc1010fd82c79e110b99ef1fdb77875fe87b | [
"MIT"
] | null | null | null | parser/parser/database.py | spider19281/parser | ca26bc1010fd82c79e110b99ef1fdb77875fe87b | [
"MIT"
] | null | null | null | parser/parser/database.py | spider19281/parser | ca26bc1010fd82c79e110b99ef1fdb77875fe87b | [
"MIT"
] | null | null | null | import sqlite3
class Database:
def __init__(self):
self.connection = sqlite3.connect('./database.db')
self.cursor = self.connection.cursor()
def insert_item(self, item):
cur = self.cursor.execute(
"insert into posts (title, file, link) values (?, ?, ?)",
(it... | 30.133333 | 69 | 0.577434 | 49 | 452 | 5.22449 | 0.469388 | 0.21875 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006042 | 0.267699 | 452 | 15 | 70 | 30.133333 | 0.767372 | 0 | 0 | 0 | 0 | 0 | 0.1766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.416667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fb478ae297be5611a34c083982cab7c0be777e53 | 600 | py | Python | alma/entities/installment.py | alma/alma-python-client | be895691772f7939dc6d0af39db4a48c9f9ae193 | [
"MIT"
] | 4 | 2020-01-27T16:44:58.000Z | 2020-06-26T13:14:52.000Z | alma/entities/installment.py | alma/alma-python-client | be895691772f7939dc6d0af39db4a48c9f9ae193 | [
"MIT"
] | 7 | 2020-01-27T16:50:27.000Z | 2020-10-12T16:21:25.000Z | alma/entities/installment.py | alma/alma-python-client | be895691772f7939dc6d0af39db4a48c9f9ae193 | [
"MIT"
] | 7 | 2019-05-10T19:20:13.000Z | 2022-03-24T07:08:55.000Z | from enum import Enum
from . import Base
class InstallmentState(Enum):
PENDING = "pending"
PAID = "paid"
INCIDENT = "incident"
CLAIMED = "claimed"
COVERED = "covered"
class Installment(Base):
def __init__(self, data):
state = data.pop("state", None)
if state:
try... | 23.076923 | 71 | 0.58 | 62 | 600 | 5.483871 | 0.580645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.338333 | 600 | 25 | 72 | 24 | 0.856423 | 0.145 | 0 | 0 | 0 | 0 | 0.07451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.117647 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
fb48cfe3601c82c6fb83669d1c5cafe5eb9c4955 | 932 | py | Python | createtransitionsnetworkweighted.py | trovdimi/wikilinks | 835feb3a982d9a77afc88b6787b4b84c411442db | [
"MIT"
] | 6 | 2016-03-11T08:31:02.000Z | 2020-06-25T14:12:47.000Z | createtransitionsnetworkweighted.py | trovdimi/wikilinks | 835feb3a982d9a77afc88b6787b4b84c411442db | [
"MIT"
] | null | null | null | createtransitionsnetworkweighted.py | trovdimi/wikilinks | 835feb3a982d9a77afc88b6787b4b84c411442db | [
"MIT"
] | 1 | 2018-03-24T13:06:25.000Z | 2018-03-24T13:06:25.000Z | from wsd.database import MySQLDatabase
from graph_tool.all import *
from conf import *
__author__ = 'dimitrovdr'
db = MySQLDatabase(DATABASE_HOST, DATABASE_USER, DATABASE_PASSWORD, DATABASE_NAME)
db_work_view = db.get_work_view()
wikipedia = Graph()
for link in db_work_view.retrieve_all_internal_transiti... | 27.411765 | 93 | 0.725322 | 125 | 932 | 5.184 | 0.488 | 0.138889 | 0.030864 | 0.04321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001269 | 0.154506 | 932 | 33 | 94 | 28.242424 | 0.821066 | 0.143777 | 0 | 0 | 0 | 0 | 0.171278 | 0.052701 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.066667 | 0.2 | null | null | 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 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
fb5af87917b83ad53f87907aaeff1e1a1d31c16c | 203 | py | Python | src/art_of_geom/geom/euclid/_rD/sphere.py | Mathverse/Art-of-Geometry | 8fd89fd3526f871815c38953580a48b017d39847 | [
"MIT"
] | 1 | 2021-12-25T01:16:10.000Z | 2021-12-25T01:16:10.000Z | src/art_of_geom/geom/euclid/_rD/sphere.py | Mathverse/Art-of-Geometry | 8fd89fd3526f871815c38953580a48b017d39847 | [
"MIT"
] | null | null | null | src/art_of_geom/geom/euclid/_rD/sphere.py | Mathverse/Art-of-Geometry | 8fd89fd3526f871815c38953580a48b017d39847 | [
"MIT"
] | null | null | null | __all__ = 'SphereInRD', 'SphereRD', 'Sphere'
from .._abc._entity import _EuclideanGeometryEntityABC
class SphereInRD(_EuclideanGeometryEntityABC):
pass
# aliases
Sphere = SphereRD = SphereInRD
| 15.615385 | 54 | 0.768473 | 17 | 203 | 8.705882 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 203 | 12 | 55 | 16.916667 | 0.850575 | 0.034483 | 0 | 0 | 0 | 0 | 0.123711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
fb60f82721085c6f787997bf7afcbf2e5d555a26 | 910 | py | Python | dmri_handler.py | clegling/deep-brain-stimulation | 943b76ce45ed53d269be5a6682c91cadbb40aa0c | [
"Apache-2.0"
] | 1 | 2017-02-23T19:42:11.000Z | 2017-02-23T19:42:11.000Z | dmri_handler.py | clegling/deep-brain-stimulation | 943b76ce45ed53d269be5a6682c91cadbb40aa0c | [
"Apache-2.0"
] | null | null | null | dmri_handler.py | clegling/deep-brain-stimulation | 943b76ce45ed53d269be5a6682c91cadbb40aa0c | [
"Apache-2.0"
] | null | null | null | """This file represents dmri handling"""
from abc import ABCMeta, abstractmethod
class DMRIHandler:
"""This class is an abstract class for dti manipulations"""
__metaclass__ = ABCMeta
def __init__(self, dmri_file, fbvals, fbvecs):
self.dmri_file = dmri_file
self.fbvals = fbvals
... | 30.333333 | 85 | 0.650549 | 105 | 910 | 5.485714 | 0.438095 | 0.118056 | 0.104167 | 0.119792 | 0.302083 | 0.208333 | 0.086806 | 0 | 0 | 0 | 0 | 0 | 0.275824 | 910 | 29 | 86 | 31.37931 | 0.874052 | 0.374725 | 0 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0.166667 | 0.055556 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
fb7c153d134d1af457e68040379bbb124e2701e9 | 6,242 | py | Python | usermgmt.py | roclops/usermgmtlib | 34d1bb17c2a4d914a12ddeafa7c7820b2fc7d62f | [
"MIT"
] | null | null | null | usermgmt.py | roclops/usermgmtlib | 34d1bb17c2a4d914a12ddeafa7c7820b2fc7d62f | [
"MIT"
] | null | null | null | usermgmt.py | roclops/usermgmtlib | 34d1bb17c2a4d914a12ddeafa7c7820b2fc7d62f | [
"MIT"
] | null | null | null | from passlib.hash import ldap_salted_sha1
from passlib.hash import ldap_pbkdf2_sha256
from sshpubkeys import SSHKey
import datetime
class Usermgmt(object):
def attrs(self):
raise NotImplementedError
def get_dict(self):
return dict((key, value) for key, value in self.__dict__.items()
... | 32.341969 | 192 | 0.595322 | 801 | 6,242 | 4.377029 | 0.141074 | 0.031945 | 0.031945 | 0.02567 | 0.271535 | 0.188534 | 0.129778 | 0.121506 | 0.121506 | 0.078722 | 0 | 0.006148 | 0.296379 | 6,242 | 192 | 193 | 32.510417 | 0.792122 | 0.012977 | 0 | 0.348101 | 0 | 0 | 0.037837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202532 | false | 0.075949 | 0.025316 | 0.088608 | 0.462025 | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
fb83648a32b4a3b292948ec8d2929d777d570337 | 2,240 | py | Python | release/stubs.min/System/Net/__init___parts/IAuthenticationModule.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Net/__init___parts/IAuthenticationModule.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Net/__init___parts/IAuthenticationModule.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class IAuthenticationModule:
""" Provides the base authentication interface for Web client authentication modules. """
def Authenticate(self, challenge, request, credentials):
"""
Authenticate(self: IAuthenticationModule,challenge: str,request: WebRequest,credentials: ICredentials) -> Authorizat... | 27.654321 | 153 | 0.704018 | 232 | 2,240 | 6.676724 | 0.318966 | 0.034861 | 0.030988 | 0.051646 | 0.51388 | 0.486766 | 0.432537 | 0.432537 | 0.392511 | 0.392511 | 0 | 0 | 0.225893 | 2,240 | 80 | 154 | 28 | 0.89331 | 0.582143 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.230769 | 0 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
fb9d01ce0e570e97220240a2ba058cf64890a1f9 | 838 | py | Python | src/models/order.py | NurseHack4Health/LocAid | 3c2e735e9d0383934df47c7a42a9fe5f6523d9ab | [
"MIT"
] | null | null | null | src/models/order.py | NurseHack4Health/LocAid | 3c2e735e9d0383934df47c7a42a9fe5f6523d9ab | [
"MIT"
] | null | null | null | src/models/order.py | NurseHack4Health/LocAid | 3c2e735e9d0383934df47c7a42a9fe5f6523d9ab | [
"MIT"
] | 1 | 2021-05-15T18:20:29.000Z | 2021-05-15T18:20:29.000Z | import uuid
from src.data_layer.db_connector import Base
from sqlalchemy import Column, Boolean, DateTime
from sqlalchemy.dialects.postgresql import UUID
from sqlalchemy import func
class OrderModel(Base):
"""
Define Item database table ORM model
"""
__tablename__ = "order"
# Register columns
... | 34.916667 | 98 | 0.73389 | 115 | 838 | 5.182609 | 0.408696 | 0.067114 | 0.100671 | 0.11745 | 0.271812 | 0.271812 | 0.234899 | 0.234899 | 0.130872 | 0 | 0 | 0.00142 | 0.159905 | 838 | 23 | 99 | 36.434783 | 0.84517 | 0.064439 | 0 | 0 | 0 | 0 | 0.00651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
fba4dedb5ca42bdb935e73389d8c86edb8ce30dd | 14,205 | py | Python | pysnmp/ENTERASYS-RADIUS-ACCT-CLIENT-EXT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/ENTERASYS-RADIUS-ACCT-CLIENT-EXT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/ENTERASYS-RADIUS-ACCT-CLIENT-EXT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module ENTERASYS-RADIUS-ACCT-CLIENT-EXT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-RADIUS-ACCT-CLIENT-EXT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:50:07 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# U... | 177.5625 | 2,097 | 0.803168 | 1,329 | 14,205 | 8.583145 | 0.13845 | 0.007715 | 0.071623 | 0.09424 | 0.454545 | 0.391952 | 0.365477 | 0.346805 | 0.324362 | 0.324362 | 0 | 0.061558 | 0.061105 | 14,205 | 79 | 2,098 | 179.810127 | 0.793732 | 0.025766 | 0 | 0.086957 | 0 | 0 | 0.286189 | 0.211135 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115942 | 0 | 0.115942 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fbce834a735ad51e7b51a5da9375f7ec19153a43 | 682 | py | Python | analytics/BeMoBI_PyAnalytics/BeMoBI_PyAnalytics.py | xfleckx/BeMoBI_Tools | 90a6066648a3249e6ea22165609aaaa763e02f05 | [
"MIT"
] | null | null | null | analytics/BeMoBI_PyAnalytics/BeMoBI_PyAnalytics.py | xfleckx/BeMoBI_Tools | 90a6066648a3249e6ea22165609aaaa763e02f05 | [
"MIT"
] | null | null | null | analytics/BeMoBI_PyAnalytics/BeMoBI_PyAnalytics.py | xfleckx/BeMoBI_Tools | 90a6066648a3249e6ea22165609aaaa763e02f05 | [
"MIT"
] | null | null | null | import os
import pandas as pd
import seaborn as sns
dataDir = '..\\Test_Data\\'
pilotMarkerDataFile = 'Pilot.csv'
df = pd.read_csv( dataDir + '\\' + pilotMarkerDataFile,sep='\t', engine='python')
repr(df.head())
# TODO times per position
# plotting a heatmap http://stanford.edu/~mwaskom/software/seaborn/examples... | 31 | 107 | 0.717009 | 94 | 682 | 5.12766 | 0.712766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017182 | 0.146628 | 682 | 22 | 108 | 31 | 0.810997 | 0.652493 | 0 | 0 | 0 | 0 | 0.149123 | 0 | 0 | 0 | 0 | 0.045455 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
fbde4302833ec88b5839af1a2bdd4789b1c8ae09 | 478 | py | Python | main.py | fossabot/superstructure | f4ab5cac269fb3dedfbd3a54c441af23edf3840b | [
"MIT"
] | null | null | null | main.py | fossabot/superstructure | f4ab5cac269fb3dedfbd3a54c441af23edf3840b | [
"MIT"
] | null | null | null | main.py | fossabot/superstructure | f4ab5cac269fb3dedfbd3a54c441af23edf3840b | [
"MIT"
] | null | null | null | from redisworks import Root
from superstructure.geist import Bewusstsein
# TODO find way to pickle objects
def main():
root = Root # redis.Redis('localhost')
try:
weltgeist = root.weltgeist
except BaseException:
print("Creating new weltgeist")
weltgeist = Bewusstsein(name="Weltge... | 20.782609 | 49 | 0.669456 | 51 | 478 | 6.117647 | 0.529412 | 0.166667 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236402 | 478 | 22 | 50 | 21.727273 | 0.854795 | 0.15272 | 0 | 0 | 0 | 0 | 0.097257 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
837c19eef088865d2dc6aafc140effefa8fcbc78 | 688 | py | Python | watcher.py | Craeckie/Container-Bot | a3bc55fe9c560d2f4a92403a4d661ddde9f7132d | [
"MIT"
] | null | null | null | watcher.py | Craeckie/Container-Bot | a3bc55fe9c560d2f4a92403a4d661ddde9f7132d | [
"MIT"
] | null | null | null | watcher.py | Craeckie/Container-Bot | a3bc55fe9c560d2f4a92403a4d661ddde9f7132d | [
"MIT"
] | null | null | null | import docker
class Watcher:
def __init__(self, socket_path='/var/run/docker.sock'):
self.client = docker.DockerClient(base_url='unix://' + socket_path)
def container_list(self):
return self.containers.list()
def listen_events(self, event_callback, *args, **kwargs):
for event in s... | 40.470588 | 111 | 0.584302 | 79 | 688 | 4.936709 | 0.607595 | 0.084615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273256 | 688 | 17 | 112 | 40.470588 | 0.78 | 0 | 0 | 0 | 0 | 0 | 0.117562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 0.071429 | 0.071429 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
837e3d2d96c78455ca68897af18dd213d2e999f1 | 515 | py | Python | ois_api_client/v3_0/deserialization/deserialize_detailed_reason.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | 7 | 2020-10-22T08:15:29.000Z | 2022-01-27T07:59:39.000Z | ois_api_client/v3_0/deserialization/deserialize_detailed_reason.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | null | null | null | ois_api_client/v3_0/deserialization/deserialize_detailed_reason.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | null | null | null | from typing import Optional
import xml.etree.ElementTree as ET
from ...xml.XmlReader import XmlReader as XR
from ..namespaces import COMMON
from ..namespaces import DATA
from ..dto.DetailedReason import DetailedReason
def deserialize_detailed_reason(element: ET.Element) -> Optional[DetailedReason]:
if element is ... | 27.105263 | 81 | 0.733981 | 65 | 515 | 5.723077 | 0.461538 | 0.075269 | 0.107527 | 0.075269 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180583 | 515 | 18 | 82 | 28.611111 | 0.881517 | 0 | 0 | 0 | 0 | 0 | 0.019417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.428571 | 0 | 0.642857 | 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 | 1 | 0 | 0 | 2 |
837e4bab46beccba993bb55df20966fe17f92d9a | 823 | py | Python | mldash/plugins/viewer/handler.py | K-A-R-T/JacMLDash | 5cb5d66da32ac55002319301f82d1db9091f0c56 | [
"MIT"
] | 5 | 2019-09-07T09:35:19.000Z | 2022-03-09T14:33:44.000Z | mldash/plugins/viewer/handler.py | K-A-R-T/JacMLDash | 5cb5d66da32ac55002319301f82d1db9091f0c56 | [
"MIT"
] | null | null | null | mldash/plugins/viewer/handler.py | K-A-R-T/JacMLDash | 5cb5d66da32ac55002319301f82d1db9091f0c56 | [
"MIT"
] | 1 | 2021-03-17T04:17:06.000Z | 2021-03-17T04:17:06.000Z | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# File : handler.py
# Author : Jiayuan Mao
# Email : maojiayuan@gmail.com
# Date : 09/08/2019
#
# This file is part of JacMLDash.
# Distributed under terms of the MIT license.
import os
import os.path as osp
import mimetypes
from tornado.web import StaticFileHandler... | 26.548387 | 67 | 0.679222 | 108 | 823 | 5.101852 | 0.666667 | 0.029038 | 0.050817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015337 | 0.207776 | 823 | 30 | 68 | 27.433333 | 0.829755 | 0.256379 | 0 | 0 | 0 | 0 | 0.059801 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.125 | false | 0 | 0.3125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
83827304f7a0429aa38c4a9f8e6141696a9b691b | 94 | py | Python | src/mathematical/bitwise_operations.py | Venkat0273/Python-Notes | bb3901315bd688acf61a97dc9f45353376f8ff39 | [
"MIT"
] | null | null | null | src/mathematical/bitwise_operations.py | Venkat0273/Python-Notes | bb3901315bd688acf61a97dc9f45353376f8ff39 | [
"MIT"
] | null | null | null | src/mathematical/bitwise_operations.py | Venkat0273/Python-Notes | bb3901315bd688acf61a97dc9f45353376f8ff39 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = "venkat"
__author_email__ = "venkatram0273@gmail.com"
| 13.428571 | 44 | 0.670213 | 10 | 94 | 5.4 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.148936 | 94 | 6 | 45 | 15.666667 | 0.6125 | 0.223404 | 0 | 0 | 0 | 0 | 0.42029 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
838cf8818d2fa2350abd45b9478277fc6154989b | 228 | py | Python | notification/urls.py | opendream/asip | 20583aca6393102d425401d55ea32ac6b78be048 | [
"MIT"
] | null | null | null | notification/urls.py | opendream/asip | 20583aca6393102d425401d55ea32ac6b78be048 | [
"MIT"
] | 8 | 2020-03-24T17:11:49.000Z | 2022-01-13T01:18:11.000Z | notification/urls.py | opendream/asip | 20583aca6393102d425401d55ea32ac6b78be048 | [
"MIT"
] | null | null | null | from django.conf.urls import url, patterns
urlpatterns = patterns('notification.views',
url(r'^notification/$', 'notification_list', name='notification_list'),
url(r'^request/$', 'request_list', name='request_list'),
) | 32.571429 | 75 | 0.719298 | 27 | 228 | 5.925926 | 0.518519 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 228 | 7 | 76 | 32.571429 | 0.784314 | 0 | 0 | 0 | 0 | 0 | 0.441048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 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 | 2 |
838ea63d5bff1bf8f011f7fa53191bb877f6eb41 | 1,706 | py | Python | aix360/algorithms/protodash/PDASH.py | PurplePean/AIX360 | 4037d6347c40405f342b07da5d341fcd21081cfa | [
"Apache-2.0"
] | 1 | 2019-10-21T20:07:44.000Z | 2019-10-21T20:07:44.000Z | aix360/algorithms/protodash/PDASH.py | PurplePean/AIX360 | 4037d6347c40405f342b07da5d341fcd21081cfa | [
"Apache-2.0"
] | 12 | 2020-01-28T23:06:13.000Z | 2022-02-10T00:23:14.000Z | aix360/algorithms/protodash/PDASH.py | PurplePean/AIX360 | 4037d6347c40405f342b07da5d341fcd21081cfa | [
"Apache-2.0"
] | 1 | 2020-04-20T08:15:36.000Z | 2020-04-20T08:15:36.000Z | from __future__ import print_function
from aix360.algorithms.die import DIExplainer
from .PDASH_utils import HeuristicSetSelection
class ProtodashExplainer(DIExplainer):
"""
ProtodashExplainer provides exemplar-based explanations for summarizing datasets as well
as explaining predictions made by an AI m... | 35.541667 | 119 | 0.660023 | 188 | 1,706 | 5.898936 | 0.659574 | 0.00541 | 0.00541 | 0.023445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011886 | 0.260258 | 1,706 | 47 | 120 | 36.297872 | 0.866878 | 0.621336 | 0 | 0 | 0 | 0 | 0.010661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.1 | 0.3 | 0 | 0.7 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
83922c5d46dd9cf938810b0116e304b37e96df4a | 984 | py | Python | test/rpcframework/ClientTest.py | crylearner/PythonRpcFramework | ccae8dfe82ec5b957296e288ae21b9e292cc52a0 | [
"Apache-2.0"
] | 1 | 2017-11-16T09:58:06.000Z | 2017-11-16T09:58:06.000Z | test/rpcframework/ClientTest.py | crylearner/PythonRpcFramework | ccae8dfe82ec5b957296e288ae21b9e292cc52a0 | [
"Apache-2.0"
] | null | null | null | test/rpcframework/ClientTest.py | crylearner/PythonRpcFramework | ccae8dfe82ec5b957296e288ae21b9e292cc52a0 | [
"Apache-2.0"
] | null | null | null | '''
Created on 2015年12月22日
@author: sunshyran
'''
import time
import unittest
from framework.client.Client import AbstractClient
from framework.driver.Invoker import Invoker
from framework.driver.InvokerHandler import InvokerHandler
from test.rpcframework.FakeChannel import FakeChannel
class FakeClien... | 19.68 | 59 | 0.614837 | 92 | 984 | 6.402174 | 0.478261 | 0.066214 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014368 | 0.292683 | 984 | 50 | 60 | 19.68 | 0.831897 | 0.087398 | 0 | 0.08 | 0 | 0 | 0.023753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.08 | 0.24 | 0 | 0.52 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
83a501cd315e08dc04e8e6ecd6ba453c02b942ba | 2,925 | py | Python | mvsgst/mvsgst/spiders/vcmv.py | miemiekurisu/mvsgst | a8efe763c988cae6f3298074d5d03fccef8fdbce | [
"MIT"
] | null | null | null | mvsgst/mvsgst/spiders/vcmv.py | miemiekurisu/mvsgst | a8efe763c988cae6f3298074d5d03fccef8fdbce | [
"MIT"
] | null | null | null | mvsgst/mvsgst/spiders/vcmv.py | miemiekurisu/mvsgst | a8efe763c988cae6f3298074d5d03fccef8fdbce | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import scrapy
import sys
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from mvsgst.items import MvsgstItem
from scrapy.selector import HtmlXPathSelector
import time
import re
import random
class DbmvSpider(scrapy.Spider):
... | 37.987013 | 97 | 0.567863 | 361 | 2,925 | 4.576177 | 0.393352 | 0.039952 | 0.065375 | 0.048426 | 0.059927 | 0.059927 | 0 | 0 | 0 | 0 | 0 | 0.018667 | 0.230769 | 2,925 | 76 | 98 | 38.486842 | 0.715556 | 0.093675 | 0 | 0.033333 | 0 | 0 | 0.201363 | 0.126798 | 0 | 0 | 0 | 0.013158 | 0 | 0 | null | null | 0 | 0.15 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
83b2455793ac0102ae6c3ddd7a4e3cd3efc16519 | 380 | py | Python | sets.py | Varanasi-Software-Junction/Python-repository-for-basics | 01128ccb91866cb1abb6d8abf035213f722f5750 | [
"MIT"
] | 2 | 2021-07-14T11:01:58.000Z | 2021-07-14T11:02:01.000Z | sets.py | Maurya232Abhishek/Python-repository-for-basics | 3dcec5c529a0847df07c9dcc1424675754ce6376 | [
"MIT"
] | 4 | 2021-04-09T10:14:06.000Z | 2021-04-13T10:25:58.000Z | sets.py | Maurya232Abhishek/Python-repository-for-basics | 3dcec5c529a0847df07c9dcc1424675754ce6376 | [
"MIT"
] | 2 | 2021-07-11T08:17:30.000Z | 2021-07-14T11:10:58.000Z | s1=set([1,3,7,94])
s2=set([2,3])
print(s1)
print(s2)
print(s1.intersection(s2))
print(s1.difference(s2))
print(s2.difference(s1))
print(s1.symmetric_difference(s2))
print(s1.union(s2))
s1.difference_update(s2) #S1 becomes equal to the difference
print(s1)
s1=set([1,3])
s1.discard(1)
s1.remove(3)
print(s1)
s1.add(5)
pr... | 17.272727 | 61 | 0.702632 | 77 | 380 | 3.441558 | 0.337662 | 0.211321 | 0.101887 | 0.05283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116477 | 0.073684 | 380 | 22 | 62 | 17.272727 | 0.636364 | 0.092105 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.545455 | 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 | 1 | 0 | 2 |
83c212e47df5af280b2e08dd307c66c52fc7c620 | 746 | py | Python | Bidding/migrations/0007_auto_20201125_1049.py | Ishikashah2510/nirvaas_main | 5eaf92756d06261a7f555b10aad864a34c9e761b | [
"MIT"
] | null | null | null | Bidding/migrations/0007_auto_20201125_1049.py | Ishikashah2510/nirvaas_main | 5eaf92756d06261a7f555b10aad864a34c9e761b | [
"MIT"
] | null | null | null | Bidding/migrations/0007_auto_20201125_1049.py | Ishikashah2510/nirvaas_main | 5eaf92756d06261a7f555b10aad864a34c9e761b | [
"MIT"
] | 3 | 2020-12-30T11:35:22.000Z | 2021-01-07T13:10:26.000Z | # Generated by Django 3.1.3 on 2020-11-25 05:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Bidding', '0006_auto_20201125_1007'),
]
operations = [
migrations.AddField(
model_name='old_items_on_bid',
name='buy... | 25.724138 | 64 | 0.58445 | 80 | 746 | 5.2 | 0.55 | 0.129808 | 0.165865 | 0.194712 | 0.480769 | 0.480769 | 0.317308 | 0.317308 | 0.317308 | 0 | 0 | 0.069231 | 0.302949 | 746 | 28 | 65 | 26.642857 | 0.730769 | 0.060322 | 0 | 0.5 | 1 | 0 | 0.168813 | 0.032904 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
83c657faaeb5f77a3afd9ea7d3c64106353332cb | 413 | py | Python | src/tests/part2/q071_test_simplify_path.py | hychrisli/PyAlgorithms | 71e537180f3b371d0d2cc47b11cb68ec13a8ac68 | [
"Apache-2.0"
] | null | null | null | src/tests/part2/q071_test_simplify_path.py | hychrisli/PyAlgorithms | 71e537180f3b371d0d2cc47b11cb68ec13a8ac68 | [
"Apache-2.0"
] | null | null | null | src/tests/part2/q071_test_simplify_path.py | hychrisli/PyAlgorithms | 71e537180f3b371d0d2cc47b11cb68ec13a8ac68 | [
"Apache-2.0"
] | null | null | null | from src.base.test_cases import TestCases
class SimplifiyPathTestCases(TestCases):
def __init__(self):
super(SimplifiyPathTestCases, self).__init__()
self.__add_test_case__('Test 1', '/home/', '/home')
self.__add_test_case__('Test 2', '/a/./b/../../c/', '/c')
self.__add_test_case_... | 37.545455 | 68 | 0.619855 | 51 | 413 | 4.372549 | 0.470588 | 0.125561 | 0.197309 | 0.269058 | 0.340807 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01173 | 0.174334 | 413 | 11 | 68 | 37.545455 | 0.642229 | 0 | 0 | 0 | 0 | 0 | 0.18599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
83db8a59b1d72d9359ecb0571d02bfaf26f6d0fe | 2,612 | py | Python | survol/sources_types/Linux/modules_dependencies.py | rchateauneu/survol | ba66d3ec453b2d9dd3a8dabc6d53f71aa9ba8c78 | [
"BSD-3-Clause"
] | 9 | 2017-10-05T23:36:23.000Z | 2021-08-09T15:40:03.000Z | survol/sources_types/Linux/modules_dependencies.py | rchateauneu/survol | ba66d3ec453b2d9dd3a8dabc6d53f71aa9ba8c78 | [
"BSD-3-Clause"
] | 21 | 2018-01-02T09:33:03.000Z | 2018-08-27T11:09:52.000Z | survol/sources_types/Linux/modules_dependencies.py | rchateauneu/survol | ba66d3ec453b2d9dd3a8dabc6d53f71aa9ba8c78 | [
"BSD-3-Clause"
] | 4 | 2018-06-23T09:05:45.000Z | 2021-01-22T15:36:50.000Z | #!/usr/bin/env python
"""
Linux modules dependencies
"""
import sys
import socket
import lib_common
import lib_util
import lib_modules
from lib_properties import pc
#
# The modules.dep as generated by module-init-tools depmod,
# lists the dependencies for every module in the directories
# under /lib/modules/version... | 34.368421 | 472 | 0.684533 | 391 | 2,612 | 4.457801 | 0.42711 | 0.074584 | 0.018359 | 0.022949 | 0.241538 | 0.241538 | 0.199656 | 0.199656 | 0.199656 | 0.199656 | 0 | 0.050239 | 0.199847 | 2,612 | 75 | 473 | 34.826667 | 0.783732 | 0.534839 | 0 | 0 | 1 | 0 | 0.061603 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.030303 | false | 0 | 0.181818 | 0 | 0.212121 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
83eb15797d997733d9f93ba8fd7b40602b6fddd5 | 444 | py | Python | kryta_server/app/utils/init_template/database_init.py | mattholy/Kryta-MC | 67126e3bb61ae97efd08576d49b3b0d7a01a8822 | [
"MIT"
] | 1 | 2021-10-05T10:35:02.000Z | 2021-10-05T10:35:02.000Z | kryta_server/app/utils/init_template/database_init.py | mattholy/Kryta-MC | 67126e3bb61ae97efd08576d49b3b0d7a01a8822 | [
"MIT"
] | null | null | null | kryta_server/app/utils/init_template/database_init.py | mattholy/Kryta-MC | 67126e3bb61ae97efd08576d49b3b0d7a01a8822 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
'''
database_init.py
----
初始化数据库
@Time : 2021/10/03 12:25:03
@Author : Mattholy
@Version : 1.0
@Contact : smile.used@hotmail.com
@License : MIT License
'''
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Colum... | 19.304348 | 75 | 0.718468 | 59 | 444 | 5.288136 | 0.745763 | 0.134615 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045093 | 0.150901 | 444 | 22 | 76 | 20.181818 | 0.782493 | 0.423423 | 0 | 0 | 0 | 0 | 0.198381 | 0.198381 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
83ee3ca805a83db54b0d1425a4b1dec0918e1078 | 2,113 | py | Python | benchmark/wrappers/rllib/wrapper.py | JenishPatel99/SMARTS | feee8fd8a1f0c10ab2aaf6f12acc8c9cc0f861af | [
"MIT"
] | null | null | null | benchmark/wrappers/rllib/wrapper.py | JenishPatel99/SMARTS | feee8fd8a1f0c10ab2aaf6f12acc8c9cc0f861af | [
"MIT"
] | null | null | null | benchmark/wrappers/rllib/wrapper.py | JenishPatel99/SMARTS | feee8fd8a1f0c10ab2aaf6f12acc8c9cc0f861af | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation th... | 38.418182 | 79 | 0.733081 | 298 | 2,113 | 5.080537 | 0.456376 | 0.058124 | 0.019815 | 0.021136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002346 | 0.19309 | 2,113 | 54 | 80 | 39.12963 | 0.885631 | 0.522007 | 0 | 0 | 0 | 0 | 0.023279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.347826 | false | 0 | 0.086957 | 0.217391 | 0.695652 | 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 | 1 | 0 | 0 | 0 | 2 |
83fb49c0fad272e8d8e34b432f2715b58dd4bc53 | 261 | py | Python | Darlington/phase1/python Basic 1/day 13 solution/qtn3.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | Darlington/phase1/python Basic 1/day 13 solution/qtn3.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | Darlington/phase1/python Basic 1/day 13 solution/qtn3.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | #program to input a number, if it is not a number generate an error message.
while True:
try:
a = int(input("Input a number: "))
break
except ValueError:
print("\nThis is not a number. Try again...")
print()
break | 29 | 76 | 0.586207 | 37 | 261 | 4.135135 | 0.621622 | 0.183007 | 0.156863 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.318008 | 261 | 9 | 77 | 29 | 0.859551 | 0.287356 | 0 | 0.25 | 1 | 0 | 0.27957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
83fee75301f392ac61e8ac89a8f2291ac2d94169 | 396 | py | Python | src/bxcommon/feed/filter_parsing.py | thabaptiser/bxcommon | ee8547c9fc68c71b8acf4ce0989a344681ea273c | [
"MIT"
] | null | null | null | src/bxcommon/feed/filter_parsing.py | thabaptiser/bxcommon | ee8547c9fc68c71b8acf4ce0989a344681ea273c | [
"MIT"
] | null | null | null | src/bxcommon/feed/filter_parsing.py | thabaptiser/bxcommon | ee8547c9fc68c71b8acf4ce0989a344681ea273c | [
"MIT"
] | null | null | null | from typing import Callable, Dict
import pycond as pc
from bxutils import logging
logger = logging.get_logger(__name__)
pc.ops_use_symbolic_and_txt(allow_single_eq=True)
def get_validator(filter_string: str) -> Callable[[Dict], bool]:
logger.trace("Getting validator for filters {}", filter_string)
res = pc... | 26.4 | 72 | 0.757576 | 57 | 396 | 4.982456 | 0.684211 | 0.126761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133838 | 396 | 14 | 73 | 28.285714 | 0.827988 | 0 | 0 | 0 | 0 | 0 | 0.085859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
860362618af49e26f9510a14dc6d5c9d5c45caad | 2,297 | py | Python | tests/test_dib.py | noda/pyMeterBus | a1bb6b6ef9b3db4583dfb2b154e4f65365dee9d9 | [
"BSD-3-Clause"
] | 44 | 2016-12-11T14:43:14.000Z | 2022-03-17T18:31:14.000Z | tests/test_dib.py | noda/pyMeterBus | a1bb6b6ef9b3db4583dfb2b154e4f65365dee9d9 | [
"BSD-3-Clause"
] | 13 | 2017-11-29T14:36:34.000Z | 2020-12-20T18:33:35.000Z | tests/test_dib.py | noda/pyMeterBus | a1bb6b6ef9b3db4583dfb2b154e4f65365dee9d9 | [
"BSD-3-Clause"
] | 32 | 2015-09-15T12:23:19.000Z | 2022-03-22T08:32:22.000Z | # -*- coding: utf-8 -*-
import os
import sys
myPath = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, myPath + '/../')
import unittest
import meterbus
from meterbus.exceptions import *
class TestSequenceFunctions(unittest.TestCase):
def setUp(self):
self.dib_empty = meterbus.DataInformati... | 32.814286 | 74 | 0.715281 | 288 | 2,297 | 5.350694 | 0.208333 | 0.077872 | 0.172615 | 0.208955 | 0.602855 | 0.55159 | 0.286178 | 0.048021 | 0 | 0 | 0 | 0.017232 | 0.191554 | 2,297 | 69 | 75 | 33.289855 | 0.812601 | 0.009142 | 0 | 0 | 0 | 0 | 0.005277 | 0 | 0 | 0 | 0.007036 | 0 | 0.291667 | 1 | 0.3125 | false | 0 | 0.104167 | 0 | 0.4375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8605cb268bff0bc91478ddd74d6557acca5d57dc | 893 | py | Python | mercury/migrations/0012_gfconfig.py | ab7289/mercury-telemetry | db886fce9a2328bdcc85127130c6c6f42f9155eb | [
"MIT"
] | 5 | 2020-05-05T20:05:12.000Z | 2020-11-10T23:57:44.000Z | mercury/migrations/0012_gfconfig.py | ab7289/mercury-telemetry | db886fce9a2328bdcc85127130c6c6f42f9155eb | [
"MIT"
] | 38 | 2020-05-06T23:30:13.000Z | 2020-12-01T15:07:08.000Z | mercury/migrations/0012_gfconfig.py | ab7289/mercury-telemetry | db886fce9a2328bdcc85127130c6c6f42f9155eb | [
"MIT"
] | 10 | 2020-05-04T17:08:07.000Z | 2020-05-23T17:35:47.000Z | # Generated by Django 2.2.10 on 2020-03-20 16:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("mercury", "0011_merge_20200314_0111"),
]
operations = [
migrations.CreateModel(
name="GFConfig",
fields=[
... | 27.90625 | 67 | 0.464726 | 75 | 893 | 5.36 | 0.68 | 0.11194 | 0.134328 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077973 | 0.425532 | 893 | 31 | 68 | 28.806452 | 0.705653 | 0.051512 | 0 | 0.12 | 1 | 0 | 0.088757 | 0.028402 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.16 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f7adbf1a3101c5e95093139f62a7b9fd7a905e61 | 1,440 | py | Python | tensorflow/mycode/src/tf_layer_utils.py | christinazavou/O-CNN | 88cda0aea9bf07e14686fff1fe476e8080296dcf | [
"MIT"
] | null | null | null | tensorflow/mycode/src/tf_layer_utils.py | christinazavou/O-CNN | 88cda0aea9bf07e14686fff1fe476e8080296dcf | [
"MIT"
] | null | null | null | tensorflow/mycode/src/tf_layer_utils.py | christinazavou/O-CNN | 88cda0aea9bf07e14686fff1fe476e8080296dcf | [
"MIT"
] | null | null | null | import tensorflow as tf
def make_weights(shape, name='weights'):
return tf.Variable(tf.truncated_normal(shape=shape, stddev=0.05), name=name)
def make_biases(shape, name='biases'):
return tf.Variable(tf.constant(0.05, shape=shape), name=name)
def convolution_layer(prev_layer, f_size, inp_c, out_c, stride_... | 30.638298 | 104 | 0.696528 | 228 | 1,440 | 4.131579 | 0.285088 | 0.095541 | 0.07431 | 0.038217 | 0.061571 | 0.061571 | 0 | 0 | 0 | 0 | 0 | 0.015847 | 0.167361 | 1,440 | 46 | 105 | 31.304348 | 0.769808 | 0 | 0 | 0 | 0 | 0 | 0.068056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.033333 | 0.1 | 0.566667 | 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 | 1 | 0 | 0 | 2 |
f7b5a8ea18b93a0e2420ee64ad68108c327e73b0 | 5,322 | py | Python | sql_queries.py | bsulayman/Data_modeling_Postgres | 5442c7d4be0a789ef6b2ab0dc15ce956bc70581c | [
"MIT"
] | null | null | null | sql_queries.py | bsulayman/Data_modeling_Postgres | 5442c7d4be0a789ef6b2ab0dc15ce956bc70581c | [
"MIT"
] | null | null | null | sql_queries.py | bsulayman/Data_modeling_Postgres | 5442c7d4be0a789ef6b2ab0dc15ce956bc70581c | [
"MIT"
] | null | null | null | # DROP TABLES
songplay_table_drop = "DROP TABLE IF EXISTS songplays;"
user_table_drop = "DROP TABLE IF EXISTS users;"
song_table_drop = "DROP TABLE IF EXISTS songs;"
artist_table_drop = "DROP TABLE IF EXISTS artists;"
time_table_drop = "DROP TABLE IF EXISTS time;"
# CREATE TABLES
songplay_table_create = ("""CREATE T... | 38.846715 | 124 | 0.360955 | 408 | 5,322 | 4.485294 | 0.17402 | 0.027322 | 0.032787 | 0.032787 | 0.260109 | 0.247541 | 0.173224 | 0.034426 | 0 | 0 | 0 | 0.003126 | 0.579294 | 5,322 | 137 | 125 | 38.846715 | 0.814203 | 0.011838 | 0 | 0.313043 | 0 | 0.026087 | 0.866768 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f7cddff083977ef868affd95a78df624756cab8e | 24,961 | py | Python | genshi/core.py | litebook/litebook | 3e0fc6daa62a4782a4a1103fe41b9bc56e677e00 | [
"Python-2.0"
] | 20 | 2015-01-27T04:50:16.000Z | 2019-12-09T02:23:15.000Z | genshi/core.py | litebook/litebook | 3e0fc6daa62a4782a4a1103fe41b9bc56e677e00 | [
"Python-2.0"
] | 1 | 2020-11-26T04:10:27.000Z | 2021-01-03T22:36:12.000Z | genshi/core.py | hujun-open/litebook | 3e0fc6daa62a4782a4a1103fe41b9bc56e677e00 | [
"Python-2.0"
] | 2 | 2017-05-09T06:56:00.000Z | 2020-11-20T15:23:16.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) 2006-2009 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://genshi.edgewall.org/wiki/License.
#
# This software consist... | 34.287088 | 79 | 0.591202 | 3,010 | 24,961 | 4.810299 | 0.180066 | 0.007597 | 0.006837 | 0.009117 | 0.184888 | 0.13896 | 0.110367 | 0.095587 | 0.072381 | 0.056841 | 0 | 0.006968 | 0.298586 | 24,961 | 727 | 80 | 34.33425 | 0.820025 | 0.561396 | 0 | 0.159091 | 0 | 0 | 0.039874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.213636 | false | 0.004545 | 0.040909 | 0.090909 | 0.618182 | 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 | 1 | 0 | 0 | 2 |
f7d26b92c29c05eca33d08c9a884bd1721344a5c | 324 | py | Python | spec/construct/test_position_in_seq.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 11 | 2018-04-01T03:58:15.000Z | 2021-08-14T09:04:55.000Z | spec/construct/test_position_in_seq.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 73 | 2016-07-20T10:27:15.000Z | 2020-12-17T18:56:46.000Z | spec/construct/test_position_in_seq.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 37 | 2016-08-15T08:25:56.000Z | 2021-08-28T14:48:46.000Z | # Autogenerated from KST: please remove this line if doing any edits by hand!
import unittest
from position_in_seq import _schema
class TestPositionInSeq(unittest.TestCase):
def test_position_in_seq(self):
r = _schema.parse_file('src/position_in_seq.bin')
self.assertEqual(r.numbers, [(0 + 1), 2, ... | 29.454545 | 77 | 0.734568 | 48 | 324 | 4.75 | 0.75 | 0.131579 | 0.171053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.17284 | 324 | 10 | 78 | 32.4 | 0.835821 | 0.231481 | 0 | 0 | 1 | 0 | 0.093117 | 0.093117 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f7ed3c244a1994c9f619cb4b81bb90d7d2abe5a9 | 1,155 | py | Python | naiveSpider/spiders/quotes-spider.py | shusheng007/NaiveSpider | 402a60db594fcf19006f9e237c9c58d9fd922ed5 | [
"Apache-2.0"
] | null | null | null | naiveSpider/spiders/quotes-spider.py | shusheng007/NaiveSpider | 402a60db594fcf19006f9e237c9c58d9fd922ed5 | [
"Apache-2.0"
] | null | null | null | naiveSpider/spiders/quotes-spider.py | shusheng007/NaiveSpider | 402a60db594fcf19006f9e237c9c58d9fd922ed5 | [
"Apache-2.0"
] | null | null | null | import scrapy
import random
class QuotesSpider(scrapy.Spider):
name = "quotes"
start_urls = [
'https://jinqiangua.911cha.com/',
]
my_headers=["Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel ... | 33.970588 | 128 | 0.638095 | 183 | 1,155 | 3.978142 | 0.491803 | 0.065934 | 0.074176 | 0.04533 | 0.291209 | 0.291209 | 0.208791 | 0.129121 | 0.129121 | 0.129121 | 0 | 0.145993 | 0.211255 | 1,155 | 34 | 129 | 33.970588 | 0.653128 | 0 | 0 | 0 | 0 | 0.26087 | 0.534602 | 0.018166 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f7eda255525fa58a15b1301ce759f10405f1deda | 558 | py | Python | app/migrations/0019_auto_20210206_1309.py | LP-Dev-Web/LeBonRecoin | 7c52c797d14c7043dfc85c0a5cc5221793c752a8 | [
"MIT"
] | null | null | null | app/migrations/0019_auto_20210206_1309.py | LP-Dev-Web/LeBonRecoin | 7c52c797d14c7043dfc85c0a5cc5221793c752a8 | [
"MIT"
] | null | null | null | app/migrations/0019_auto_20210206_1309.py | LP-Dev-Web/LeBonRecoin | 7c52c797d14c7043dfc85c0a5cc5221793c752a8 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-02-06 12:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("app", "0018_auto_20210206_0402"),
]
operations = [
migrations.AlterField(
model_name="product",
name="created_at",
... | 23.25 | 58 | 0.587814 | 59 | 558 | 5.372881 | 0.644068 | 0.126183 | 0.157729 | 0.182965 | 0.321767 | 0.321767 | 0.321767 | 0.321767 | 0.321767 | 0.321767 | 0 | 0.079487 | 0.301075 | 558 | 23 | 59 | 24.26087 | 0.733333 | 0.080645 | 0 | 0.470588 | 1 | 0 | 0.111546 | 0.04501 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f7eff5d2e53dae84d1b3fce760d7f85ffc335c1f | 84 | py | Python | Back-End/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/users/user.py | ASHISHKUMAR2411/Programming-CookBook | 9c60655d64d21985ccb4196360858d98344701f9 | [
"MIT"
] | 25 | 2021-04-28T02:51:26.000Z | 2022-03-24T13:58:04.000Z | Back-End/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/users/user.py | ASHISHKUMAR2411/Programming-CookBook | 9c60655d64d21985ccb4196360858d98344701f9 | [
"MIT"
] | 1 | 2022-03-03T23:33:41.000Z | 2022-03-03T23:35:41.000Z | Back-End/Python/Basics/Part -1 - Functional/08 - Modules, Packages/04 - structuring_imports_package/common/models/users/user.py | ASHISHKUMAR2411/Programming-CookBook | 9c60655d64d21985ccb4196360858d98344701f9 | [
"MIT"
] | 15 | 2021-05-30T01:35:20.000Z | 2022-03-25T12:38:25.000Z | # user.py
__all__ = ['User']
class User:
pass
def user_helper_1():
pass | 7.636364 | 20 | 0.595238 | 12 | 84 | 3.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.27381 | 84 | 11 | 21 | 7.636364 | 0.704918 | 0.083333 | 0 | 0.4 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.4 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f7fc3dc791c89d5fddee570aa17ebd97f05374de | 6,990 | py | Python | pySVG/src/pysvg/text.py | Estevo-Aleixo/pysvg | 88d2f98eea43fdb16a6d7679048a24985709c850 | [
"Unlicense"
] | null | null | null | pySVG/src/pysvg/text.py | Estevo-Aleixo/pysvg | 88d2f98eea43fdb16a6d7679048a24985709c850 | [
"Unlicense"
] | null | null | null | pySVG/src/pysvg/text.py | Estevo-Aleixo/pysvg | 88d2f98eea43fdb16a6d7679048a24985709c850 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
# -*- coding: iso-8859-1 -*-
'''
(C) 2008, 2009 Kerim Mansour
For licensing information please refer to license.txt
'''
from attributes import *
from core import BaseElement, PointAttrib, DeltaPointAttrib, RotateAttrib
class AltGlyphDef(BaseElement, CoreAttrib):
"""
Class represent... | 41.117647 | 293 | 0.679971 | 682 | 6,990 | 6.760997 | 0.1261 | 0.097159 | 0.048579 | 0.083279 | 0.750813 | 0.687053 | 0.654956 | 0.654956 | 0.614617 | 0.614617 | 0 | 0.002377 | 0.21774 | 6,990 | 169 | 294 | 41.360947 | 0.840892 | 0.006152 | 0 | 0.596491 | 0 | 0 | 0.061011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017544 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f7fcd003bc9e3f57ec944b1eb041edb86ca93e84 | 6,381 | py | Python | rafiki/model/model.py | dcslin/rafiki | b617ac2536ac13095c4930d6d3f1f9b3c231b5e7 | [
"Apache-2.0"
] | null | null | null | rafiki/model/model.py | dcslin/rafiki | b617ac2536ac13095c4930d6d3f1f9b3c231b5e7 | [
"Apache-2.0"
] | null | null | null | rafiki/model/model.py | dcslin/rafiki | b617ac2536ac13095c4930d6d3f1f9b3c231b5e7 | [
"Apache-2.0"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 39.147239 | 152 | 0.692681 | 834 | 6,381 | 5.23741 | 0.327338 | 0.018544 | 0.027473 | 0.046932 | 0.262134 | 0.202152 | 0.136905 | 0.136905 | 0.108974 | 0.100275 | 0 | 0.001228 | 0.233976 | 6,381 | 162 | 153 | 39.388889 | 0.89239 | 0.702241 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.282051 | false | 0.076923 | 0.102564 | 0 | 0.435897 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7901435b0febe6d85163a17baac50a97baf9102a | 8,086 | py | Python | Dev/Cpp/CreateHeader.py | Shockblast/Effekseer | bac86c0fc965f04a0f57c5863d37a9c2d5c3be97 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2021-12-21T07:03:42.000Z | 2021-12-21T07:03:42.000Z | Dev/Cpp/CreateHeader.py | Shockblast/Effekseer | bac86c0fc965f04a0f57c5863d37a9c2d5c3be97 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Dev/Cpp/CreateHeader.py | Shockblast/Effekseer | bac86c0fc965f04a0f57c5863d37a9c2d5c3be97 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | import os
import re
import codecs
def isValidLine(line):
if re.search('include \"', line) == None or line.find('.PSVita') != -1 or line.find('.PS4') != -1 or line.find('.Switch') != -1 or line.find('.XBoxOne') != -1:
return True
return False
class CreateHeader:
def __init__(self):
self.lines = []
def addLine... | 57.757143 | 160 | 0.852461 | 727 | 8,086 | 9.460798 | 0.176066 | 0.193661 | 0.196278 | 0.109916 | 0.625618 | 0.36813 | 0.166182 | 0.031986 | 0.031986 | 0.031986 | 0 | 0.010608 | 0.032402 | 8,086 | 139 | 161 | 58.172662 | 0.868482 | 0 | 0 | 0.080645 | 0 | 0 | 0.473535 | 0.450532 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040323 | false | 0 | 0.024194 | 0 | 0.08871 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7903025f1f9a9404dc70aaab4d2f4d39ef35b4fc | 3,729 | py | Python | CircuitPython_101/basic_data_structures/song_book/code.py | billagee/Adafruit_Learning_System_Guides | 6e90bd839161573780ab9937c3deaa115deca055 | [
"MIT"
] | 1 | 2018-10-17T19:37:08.000Z | 2018-10-17T19:37:08.000Z | CircuitPython_101/basic_data_structures/song_book/code.py | billagee/Adafruit_Learning_System_Guides | 6e90bd839161573780ab9937c3deaa115deca055 | [
"MIT"
] | null | null | null | CircuitPython_101/basic_data_structures/song_book/code.py | billagee/Adafruit_Learning_System_Guides | 6e90bd839161573780ab9937c3deaa115deca055 | [
"MIT"
] | 1 | 2018-07-16T15:47:52.000Z | 2018-07-16T15:47:52.000Z | import time
import board
import debouncer
import busio as io
import digitalio
import pulseio
import adafruit_ssd1306
i2c = io.I2C(board.SCL, board.SDA)
reset_pin = digitalio.DigitalInOut(board.D11)
oled = adafruit_ssd1306.SSD1306_I2C(128, 32, i2c, reset=reset_pin)
button_select = debouncer.Debouncer(board.D7, mode=dig... | 41.433333 | 185 | 0.448914 | 676 | 3,729 | 2.424556 | 0.177515 | 0.169616 | 0.102502 | 0.122026 | 0.345943 | 0.328249 | 0.328249 | 0.328249 | 0.317877 | 0.317877 | 0 | 0.208446 | 0.307857 | 3,729 | 89 | 186 | 41.898876 | 0.426579 | 0.039957 | 0 | 0.109589 | 0 | 0 | 0.015385 | 0 | 0 | 0 | 0.001678 | 0 | 0 | 1 | 0.041096 | false | 0 | 0.09589 | 0 | 0.136986 | 0.027397 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
7903881baf28fb04948dceaf26f6f1e7b726da74 | 417 | py | Python | polyaxon/api/repos/serializers.py | elyase/polyaxon | 1c19f059a010a6889e2b7ea340715b2bcfa382a0 | [
"MIT"
] | null | null | null | polyaxon/api/repos/serializers.py | elyase/polyaxon | 1c19f059a010a6889e2b7ea340715b2bcfa382a0 | [
"MIT"
] | null | null | null | polyaxon/api/repos/serializers.py | elyase/polyaxon | 1c19f059a010a6889e2b7ea340715b2bcfa382a0 | [
"MIT"
] | null | null | null | from rest_framework import fields, serializers
from db.models.repos import Repo
class RepoSerializer(serializers.ModelSerializer):
project = fields.SerializerMethodField()
class Meta:
model = Repo
fields = ('project', 'created_at', 'updated_at', 'is_public', )
def get_user(self, obj):
... | 23.166667 | 71 | 0.688249 | 49 | 417 | 5.734694 | 0.612245 | 0.042705 | 0.092527 | 0.113879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215827 | 417 | 17 | 72 | 24.529412 | 0.859327 | 0 | 0 | 0 | 0 | 0 | 0.086331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.181818 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
790ab10c114ed809a1b80f3e101c2509b9257268 | 332 | py | Python | modules/timeblock.py | 5225225/bar | cc72eb45f21ac2b2e070c6d9f66b306ed51aef35 | [
"MIT"
] | 1 | 2015-09-05T17:07:59.000Z | 2015-09-05T17:07:59.000Z | modules/timeblock.py | 5225225/bar | cc72eb45f21ac2b2e070c6d9f66b306ed51aef35 | [
"MIT"
] | null | null | null | modules/timeblock.py | 5225225/bar | cc72eb45f21ac2b2e070c6d9f66b306ed51aef35 | [
"MIT"
] | 2 | 2015-09-05T17:08:02.000Z | 2019-02-22T21:14:08.000Z | import linelib
import datetime
import signal
def handler(x, y):
pass
signal.signal(signal.SIGUSR1, handler)
signal.signal(signal.SIGALRM, handler)
while True:
linelib.sendblock("date", {"full_text": datetime.datetime.now().strftime(
"%Y-%m-%e %H:%M:%S"
)})
linelib.sendPID("date")
linelib... | 18.444444 | 77 | 0.671687 | 44 | 332 | 5.045455 | 0.590909 | 0.216216 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007246 | 0.168675 | 332 | 17 | 78 | 19.529412 | 0.797101 | 0 | 0 | 0 | 0 | 0 | 0.10241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.230769 | 0 | 0.307692 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
790b99b7c8510d3b99bd51ef86e99adaa01fb768 | 183 | py | Python | modules/isrunning.py | ShaderLight/autochampselect | b7d346cc99011b5f84867f3a01dc2e8d815c05d7 | [
"MIT"
] | null | null | null | modules/isrunning.py | ShaderLight/autochampselect | b7d346cc99011b5f84867f3a01dc2e8d815c05d7 | [
"MIT"
] | null | null | null | modules/isrunning.py | ShaderLight/autochampselect | b7d346cc99011b5f84867f3a01dc2e8d815c05d7 | [
"MIT"
] | null | null | null | from subprocess import check_output
def isrunning(processName):
tasklist = check_output('tasklist', shell=False)
tasklist = str(tasklist)
return(processName in tasklist) | 26.142857 | 52 | 0.759563 | 21 | 183 | 6.52381 | 0.666667 | 0.160584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15847 | 183 | 7 | 53 | 26.142857 | 0.88961 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 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 | 2 |
7912dbc97deac732656616d2bb8fce94ba34891e | 1,829 | py | Python | tests/test_simple supported_beam.py | bteodoru/ebbef2p-python | 449e6414e4ce3ef3deccf9fd892410b2d15578ef | [
"MIT"
] | 2 | 2020-05-03T19:14:39.000Z | 2020-05-03T19:20:19.000Z | tests/test_simple supported_beam.py | bteodoru/ebbef2p-python | 449e6414e4ce3ef3deccf9fd892410b2d15578ef | [
"MIT"
] | null | null | null | tests/test_simple supported_beam.py | bteodoru/ebbef2p-python | 449e6414e4ce3ef3deccf9fd892410b2d15578ef | [
"MIT"
] | null | null | null | import pytest
import numpy as np
from ebbef2p.structure import Structure
L = 2
E = 1
I = 1
def test_center_load():
P = 100
M_max = P * L / 4 # maximum moment
S_max = P/2 # max shearing force
w_max = -P * L ** 3 / (48 * E * I) # max displacement
tolerance = 1e-6 #set a tolerance of 0.00... | 34.509434 | 102 | 0.630946 | 302 | 1,829 | 3.625828 | 0.261589 | 0.043836 | 0.041096 | 0.058447 | 0.776256 | 0.747032 | 0.657534 | 0.657534 | 0.657534 | 0.657534 | 0 | 0.034812 | 0.199016 | 1,829 | 53 | 103 | 34.509434 | 0.712628 | 0.083652 | 0 | 0.4 | 0 | 0 | 0.063549 | 0.026379 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.05 | false | 0 | 0.075 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
79210aefb1eb42f15c46a5decf553a199213c5f4 | 155,776 | py | Python | src/ansys/mapdl/core/_commands/solution/analysis_options.py | Miiicah/pymapdl | ce85393ca82db7556a5d05883ca3fd9296444cba | [
"MIT"
] | 194 | 2016-10-21T08:46:41.000Z | 2021-01-06T20:39:23.000Z | ansys/mapdl/core/_commands/solution/analysis_options.py | NewsamNiu/pymapdl | 482c960142a612997eb33216731aaa88f1371168 | [
"MIT"
] | 463 | 2021-01-12T14:07:38.000Z | 2022-03-31T22:42:25.000Z | ansys/mapdl/core/_commands/solution/analysis_options.py | NewsamNiu/pymapdl | 482c960142a612997eb33216731aaa88f1371168 | [
"MIT"
] | 66 | 2016-11-21T04:26:08.000Z | 2020-12-28T09:27:27.000Z | from typing import Optional
from ansys.mapdl.core.mapdl_types import MapdlInt
class AnalysisOptions:
def abextract(self, mode1="", mode2="", **kwargs):
"""Extracts the alpha-beta damping multipliers for Rayleigh damping.
APDL Command: ABEXTRACT
Parameters
----------
mode... | 43.868206 | 539 | 0.630643 | 19,056 | 155,776 | 5.151711 | 0.106528 | 0.007334 | 0.006754 | 0.009575 | 0.30999 | 0.246743 | 0.209349 | 0.180909 | 0.159721 | 0.142751 | 0 | 0.005954 | 0.323927 | 155,776 | 3,550 | 540 | 43.880563 | 0.926175 | 0.806581 | 0 | 0.309917 | 0 | 0.004132 | 0.185614 | 0.158652 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210744 | false | 0.008264 | 0.008264 | 0 | 0.433884 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7922953fb7bf617a7ae109bd584d9b8e22523424 | 1,998 | py | Python | shovel.py | folklabs/waste-service-standards | 18025fb02056a690f672cfcd965c52c6ee85cee6 | [
"MIT"
] | null | null | null | shovel.py | folklabs/waste-service-standards | 18025fb02056a690f672cfcd965c52c6ee85cee6 | [
"MIT"
] | null | null | null | shovel.py | folklabs/waste-service-standards | 18025fb02056a690f672cfcd965c52c6ee85cee6 | [
"MIT"
] | null | null | null | import csv
import json
import jinja2
import os
import ramlfications
import time
from livereload import Server, shell
from shovel import task
RAML_FILE = 'raml/waste_services.raml'
def parse_raml(template_path):
api = ramlfications.parse(RAML_FILE)
data = {}
data['collection_event_types'] = []
with o... | 23.232558 | 75 | 0.626627 | 250 | 1,998 | 4.88 | 0.404 | 0.036885 | 0.04918 | 0.039344 | 0.037705 | 0.037705 | 0 | 0 | 0 | 0 | 0 | 0.003979 | 0.245245 | 1,998 | 85 | 76 | 23.505882 | 0.80504 | 0.044545 | 0 | 0.103448 | 0 | 0 | 0.143174 | 0.058269 | 0 | 0 | 0 | 0.011765 | 0 | 0 | null | null | 0 | 0.137931 | null | null | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7936895cd429fb7690cd6215759396da2451d9f6 | 2,184 | py | Python | classNotes/object_orientation9/Polymorphism.py | minefarmer/Think_like_a_programmer | d6b1363f96600445ea47f91c637c5d0bede2e8f6 | [
"Unlicense"
] | null | null | null | classNotes/object_orientation9/Polymorphism.py | minefarmer/Think_like_a_programmer | d6b1363f96600445ea47f91c637c5d0bede2e8f6 | [
"Unlicense"
] | null | null | null | classNotes/object_orientation9/Polymorphism.py | minefarmer/Think_like_a_programmer | d6b1363f96600445ea47f91c637c5d0bede2e8f6 | [
"Unlicense"
] | null | null | null | ''' Polymorphism
Polymorphism means that differient objects can behave in differient ways for the same message (FunctionCall)
Consequently, sender of a message does not need to know exact class of reciever
Example - Drawing Application
Drawing Pane Sender Object
... | 26.962963 | 136 | 0.560897 | 225 | 2,184 | 5.217778 | 0.497778 | 0.03833 | 0.034072 | 0.044293 | 0.124361 | 0.124361 | 0.124361 | 0.086882 | 0.086882 | 0.086882 | 0 | 0.002113 | 0.349817 | 2,184 | 80 | 137 | 27.3 | 0.824648 | 0.537088 | 0 | 0.3125 | 0 | 0 | 0.118974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.34375 | false | 0.0625 | 0.0625 | 0.03125 | 0.53125 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7937d5873594856871631b2d7befe33ec15630e0 | 282 | py | Python | musicmore/cart/processors.py | IPenuelas/musicmore_r01 | 94726c84aa61201940916feb4d5e535bcd4dc230 | [
"MIT"
] | null | null | null | musicmore/cart/processors.py | IPenuelas/musicmore_r01 | 94726c84aa61201940916feb4d5e535bcd4dc230 | [
"MIT"
] | null | null | null | musicmore/cart/processors.py | IPenuelas/musicmore_r01 | 94726c84aa61201940916feb4d5e535bcd4dc230 | [
"MIT"
] | null | null | null | from .models import Cart, CartItem
from .views import _cart_id
def ctx_dict_cart(request):
cart = Cart.objects.filter(cart_id=_cart_id(request))
cart_items = CartItem.objects.all().filter(cart=cart[:1])
ctx_cart = {'CTX_CART_ITEMS':cart_items}
return ctx_cart
| 28.2 | 65 | 0.730496 | 43 | 282 | 4.488372 | 0.395349 | 0.093264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.156028 | 282 | 9 | 66 | 31.333333 | 0.806723 | 0 | 0 | 0 | 0 | 0 | 0.049822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 2 |
f735d114acfbbc7d006b9ce0ce107c90ffa2fae2 | 324 | py | Python | simulator/kruxsim/mocks/flash.py | odudex/krux | db421a3f107c0263221e5f1e877e9c38925bb17c | [
"MIT"
] | null | null | null | simulator/kruxsim/mocks/flash.py | odudex/krux | db421a3f107c0263221e5f1e877e9c38925bb17c | [
"MIT"
] | 13 | 2022-03-21T05:35:03.000Z | 2022-03-31T14:31:46.000Z | simulator/kruxsim/mocks/flash.py | odudex/krux | db421a3f107c0263221e5f1e877e9c38925bb17c | [
"MIT"
] | null | null | null | import sys
from unittest import mock
flash = bytearray(8 * 1024 * 1024)
def read_data(addr, amount):
return flash[addr : addr + amount]
def write_data(addr, data):
flash[addr : addr + len(data)] = data
if "flash" not in sys.modules:
sys.modules["flash"] = mock.MagicMock(read=read_data, write=write_da... | 19.058824 | 75 | 0.691358 | 49 | 324 | 4.489796 | 0.44898 | 0.072727 | 0.118182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034091 | 0.185185 | 324 | 16 | 76 | 20.25 | 0.799242 | 0 | 0 | 0 | 0 | 0 | 0.030864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
f7366410d3402dde7686f8ca4b30c6c1c2234403 | 52,914 | py | Python | models/new/sencebgan.py | yigitozgumus/Polimi_Thesis | 711c1edcf1fdb92fc6c15bf5ab1be141c13995c3 | [
"MIT"
] | 3 | 2019-07-27T14:00:42.000Z | 2020-01-17T17:07:51.000Z | models/new/sencebgan.py | yigitozgumus/Polimi_Thesis | 711c1edcf1fdb92fc6c15bf5ab1be141c13995c3 | [
"MIT"
] | null | null | null | models/new/sencebgan.py | yigitozgumus/Polimi_Thesis | 711c1edcf1fdb92fc6c15bf5ab1be141c13995c3 | [
"MIT"
] | 4 | 2019-10-22T02:58:26.000Z | 2020-10-06T09:59:26.000Z | import tensorflow as tf
from base.base_model import BaseModel
from utils.alad_utils import get_getter
import utils.alad_utils as sn
class SENCEBGAN(BaseModel):
def __init__(self, config):
super(SENCEBGAN, self).__init__(config)
self.build_model()
self.init_saver()
def build_model(sel... | 46.785146 | 100 | 0.501191 | 5,490 | 52,914 | 4.520765 | 0.053552 | 0.050365 | 0.079455 | 0.046698 | 0.8149 | 0.752972 | 0.694347 | 0.661509 | 0.630928 | 0.591966 | 0 | 0.010414 | 0.388461 | 52,914 | 1,130 | 101 | 46.826549 | 0.756575 | 0.026004 | 0 | 0.525888 | 0 | 0 | 0.0466 | 0.008963 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011168 | false | 0 | 0.004061 | 0 | 0.024365 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f73897464eec5dfd237e31a4d8f787d41ed1bef8 | 1,619 | py | Python | procgen_adventure/utils/torch_utils.py | Laurans/procgen_adventure | 5f88f3f647f7854c8fb2ae516f3490d89845eefa | [
"MIT"
] | 2 | 2020-04-02T11:51:43.000Z | 2020-04-20T20:07:03.000Z | procgen_adventure/utils/torch_utils.py | Laurans/procgen_adventure | 5f88f3f647f7854c8fb2ae516f3490d89845eefa | [
"MIT"
] | 1 | 2020-04-08T10:34:29.000Z | 2020-04-29T21:08:48.000Z | procgen_adventure/utils/torch_utils.py | Laurans/procgen_adventure | 5f88f3f647f7854c8fb2ae516f3490d89845eefa | [
"MIT"
] | null | null | null | import numpy as np
import torch
import torch.distributed as dist
def tensor(x, device):
if isinstance(x, torch.Tensor):
return x.to(device)
x = np.asarray(x, dtype=np.float)
x = torch.tensor(x, device=device, dtype=torch.float32)
return x
def input_preprocessing(x, device):
x = tensor(x... | 23.128571 | 75 | 0.697344 | 238 | 1,619 | 4.596639 | 0.340336 | 0.025594 | 0.035649 | 0.042048 | 0.115174 | 0.115174 | 0.062157 | 0 | 0 | 0 | 0 | 0.00834 | 0.1853 | 1,619 | 69 | 76 | 23.463768 | 0.821077 | 0.059914 | 0 | 0.090909 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.068182 | 0.045455 | 0.522727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f74317f78bef66c71ecf8b843045e4f5b2c8153b | 5,580 | py | Python | otri/utils/key_handler.py | OTRI-Unipd/OTRI | 5d1fce470eeb31f5cc75cadfc06d9d2908736052 | [
"FSFAP"
] | null | null | null | otri/utils/key_handler.py | OTRI-Unipd/OTRI | 5d1fce470eeb31f5cc75cadfc06d9d2908736052 | [
"FSFAP"
] | 34 | 2020-04-18T13:57:05.000Z | 2021-10-05T16:21:56.000Z | otri/utils/key_handler.py | OTRI-Unipd/OTRI | 5d1fce470eeb31f5cc75cadfc06d9d2908736052 | [
"FSFAP"
] | null | null | null | from typing import *
import re
LOWER_ERROR = "Only dictionaries and lists can be modified by this method."
def apply_deep(data: Union[Mapping, List], fun: Callable) -> Union[dict, list]:
'''
Applies fun to all keys in data.
The method is recursive and applies as deep as possible in the dictionary nest.
... | 41.641791 | 109 | 0.655018 | 843 | 5,580 | 4.285884 | 0.160142 | 0.037365 | 0.025187 | 0.023249 | 0.591752 | 0.552449 | 0.539164 | 0.525325 | 0.505397 | 0.505397 | 0 | 0 | 0.280287 | 5,580 | 133 | 110 | 41.954887 | 0.899651 | 0.689606 | 0 | 0 | 0 | 0 | 0.043223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0.074074 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f77262f78648f5065671fda0b803fd2061d327e1 | 481 | py | Python | model_test.py | noatgnu/colossi | c936bc25b5990f8dfbf4db3ed11ce8a893553668 | [
"MIT"
] | null | null | null | model_test.py | noatgnu/colossi | c936bc25b5990f8dfbf4db3ed11ce8a893553668 | [
"MIT"
] | null | null | null | model_test.py | noatgnu/colossi | c936bc25b5990f8dfbf4db3ed11ce8a893553668 | [
"MIT"
] | null | null | null | import unittest
from model import prediction_with_model
import pandas as pd
import numpy as np
class PredictionWithModel(unittest.TestCase):
def test_prediction(self):
d = pd.read_csv(r"C:\Users\Toan\Documents\GitHub\colossi\static\temp\cc7deed8140745d89f2f42f716f6fd1b\out_imac_atlas_expression_v7.1.tsv", ... | 30.0625 | 151 | 0.733888 | 64 | 481 | 5.21875 | 0.75 | 0.065868 | 0.113772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060976 | 0.147609 | 481 | 15 | 152 | 32.066667 | 0.753659 | 0 | 0 | 0 | 0 | 0.090909 | 0.272349 | 0.245322 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f77dd5fcff559a23973eb58cb349868330dee91f | 2,159 | py | Python | crawlerfeeder/sources.py | ddiazpinto/python-crawlerfeeder | ec498a11b3de2f9d68ab9245406b258b07930724 | [
"MIT"
] | null | null | null | crawlerfeeder/sources.py | ddiazpinto/python-crawlerfeeder | ec498a11b3de2f9d68ab9245406b258b07930724 | [
"MIT"
] | null | null | null | crawlerfeeder/sources.py | ddiazpinto/python-crawlerfeeder | ec498a11b3de2f9d68ab9245406b258b07930724 | [
"MIT"
] | null | null | null | """
Data sources
All the data sources must extend DataSource abstract class and define `crawl` and `feed` methods.
This methods are automatically called during the crawl and feed processes.
"""
import httplib2
from abc import ABCMeta, abstractmethod
from apiclient.discovery import build
from oauth2client.service_accoun... | 30.408451 | 107 | 0.672997 | 236 | 2,159 | 5.995763 | 0.423729 | 0.042403 | 0.025442 | 0.038163 | 0.209187 | 0.209187 | 0.209187 | 0.15265 | 0.097527 | 0.097527 | 0 | 0.004202 | 0.228346 | 2,159 | 70 | 108 | 30.842857 | 0.845138 | 0.108847 | 0 | 0.363636 | 0 | 0 | 0.04825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.090909 | 0.136364 | 0.022727 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
f77dff8f9c8ab83db0eb1e03ee889a6d8ab05f1a | 364 | py | Python | tests/test_doi.py | garethcmurphy/brightness | e18cc42636439d521cc904371f7c7643ea907a57 | [
"BSD-2-Clause"
] | null | null | null | tests/test_doi.py | garethcmurphy/brightness | e18cc42636439d521cc904371f7c7643ea907a57 | [
"BSD-2-Clause"
] | null | null | null | tests/test_doi.py | garethcmurphy/brightness | e18cc42636439d521cc904371f7c7643ea907a57 | [
"BSD-2-Clause"
] | null | null | null | from ..bright import doimaker
__author__ = "Gareth Murphy"
__credits__ = ["Gareth Murphy"]
__license__ = "GPL"
__version__ = "1.0.1"
__maintainer__ = "Gareth Murphy"
__email__ = "garethcmurphy@gmail.com"
__status__ = "Development"
def test_doi():
bright = doimaker.DOIMaker()
assert isinstance(bright.passw, s... | 22.75 | 40 | 0.730769 | 41 | 364 | 5.780488 | 0.682927 | 0.151899 | 0.185654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009677 | 0.148352 | 364 | 15 | 41 | 24.266667 | 0.754839 | 0 | 0 | 0 | 0 | 0 | 0.222527 | 0.063187 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.083333 | false | 0.083333 | 0.083333 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e38af176cfef83d4e22cf82786aa09cbbdfcb4c0 | 1,291 | py | Python | python/fizzbuzz/fizzbuzz.py | frostickflakes/isat252s20_03 | 03d7ee9e0ccd164be43715af57211ceff7625e6b | [
"MIT"
] | null | null | null | python/fizzbuzz/fizzbuzz.py | frostickflakes/isat252s20_03 | 03d7ee9e0ccd164be43715af57211ceff7625e6b | [
"MIT"
] | 1 | 2021-05-11T04:59:35.000Z | 2021-05-11T04:59:35.000Z | python/fizzbuzz/fizzbuzz.py | frostickflakes/isat252s20_03 | 03d7ee9e0ccd164be43715af57211ceff7625e6b | [
"MIT"
] | 2 | 2020-03-02T14:50:02.000Z | 2020-03-06T18:44:14.000Z | """A FizzBuzz program"""
# import necessary supporting libraries or packages
from numbers import Number
def fizz(x):
"""
Takes an input `x` and checks to see if x is a
number, and if so, also a multiple of 3.
If it is both, return 'Fizz'.
Otherwise, return the input.
"""
return 'Fizz' if isinsta... | 28.065217 | 67 | 0.646011 | 219 | 1,291 | 3.808219 | 0.292237 | 0.07554 | 0.028777 | 0.046763 | 0.467626 | 0.305755 | 0.223022 | 0.223022 | 0.223022 | 0.223022 | 0 | 0.012513 | 0.257165 | 1,291 | 45 | 68 | 28.688889 | 0.857143 | 0.597211 | 0 | 0 | 0 | 0 | 0.038554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e391f8b8a0bc01973d751df5fae9b530804460c4 | 705 | py | Python | pedlarweb_old/forms.py | ThomasWongMingHei/pedlar | ba79f9e4e13ae8009a1a7a9d1d04a7fcd2535fe7 | [
"Apache-2.0"
] | 61 | 2018-09-26T06:11:53.000Z | 2022-02-15T18:30:10.000Z | pedlarweb_old/forms.py | ThomasWongMingHei/pedlar | ba79f9e4e13ae8009a1a7a9d1d04a7fcd2535fe7 | [
"Apache-2.0"
] | 6 | 2019-01-26T22:48:46.000Z | 2019-12-24T00:08:15.000Z | pedlarweb_old/forms.py | ThomasWongMingHei/pedlar | ba79f9e4e13ae8009a1a7a9d1d04a7fcd2535fe7 | [
"Apache-2.0"
] | 36 | 2018-10-06T09:17:57.000Z | 2022-02-21T22:17:53.000Z | """Web forms for pedlarweb."""
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired, Regexp, Length
class UserPasswordForm(FlaskForm):
"""Username password form used for login."""
# \w is [0-9a-zA-Z_]
username = StringField('User or Team name... | 41.470588 | 118 | 0.564539 | 68 | 705 | 5.823529 | 0.691176 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008493 | 0.331915 | 705 | 16 | 119 | 44.0625 | 0.832272 | 0.117731 | 0 | 0 | 0 | 0 | 0.165303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.272727 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
e39af21b3a6e28f491c0b53a0727560abc0f9f34 | 1,049 | py | Python | skeleton/models.py | therden/skeletal_flask | ad8af37376af888c999ab5de5b69ba0039b557c0 | [
"Unlicense"
] | 3 | 2020-01-02T07:58:52.000Z | 2020-11-25T20:31:37.000Z | skeleton/models.py | therden/skeletal_flask | ad8af37376af888c999ab5de5b69ba0039b557c0 | [
"Unlicense"
] | null | null | null | skeleton/models.py | therden/skeletal_flask | ad8af37376af888c999ab5de5b69ba0039b557c0 | [
"Unlicense"
] | 1 | 2020-06-19T03:00:28.000Z | 2020-06-19T03:00:28.000Z | from datetime import datetime
from skeleton.config_db import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), unique=True, nullable=False)
email = db.Column(db.String(120), unique=True, nullable=False)
def __repr__(self):
return '<User... | 28.351351 | 69 | 0.667302 | 146 | 1,049 | 4.671233 | 0.30137 | 0.117302 | 0.146628 | 0.070381 | 0.344575 | 0.26393 | 0.175953 | 0.175953 | 0.175953 | 0.175953 | 0 | 0.010588 | 0.189704 | 1,049 | 36 | 70 | 29.138889 | 0.791765 | 0 | 0 | 0.24 | 0 | 0 | 0.052431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.08 | 0.12 | 0.88 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
e3a2b8f71d6de1df7388cd09949ecbfb79724959 | 103 | py | Python | output/models/saxon_data/complex/complex012_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/saxon_data/complex/complex012_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/saxon_data/complex/complex012_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.saxon_data.complex.complex012_xsd.complex012 import Root
__all__ = [
"Root",
]
| 17.166667 | 75 | 0.757282 | 13 | 103 | 5.538462 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067416 | 0.135922 | 103 | 5 | 76 | 20.6 | 0.741573 | 0 | 0 | 0 | 0 | 0 | 0.038835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 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 | 2 |
e3aa7a6b7ca6686219f3d46850a8ea55f4a8bb3d | 4,667 | py | Python | Lib/site-packages/unidecode/x07b.py | hirorin-demon/hirorin-streamlit | 03fbb6f03ec94f909d451e708a3b30b177607695 | [
"0BSD"
] | 82 | 2020-03-28T02:24:38.000Z | 2022-03-30T04:18:42.000Z | Lib/site-packages/unidecode/x07b.py | hirorin-demon/hirorin-streamlit | 03fbb6f03ec94f909d451e708a3b30b177607695 | [
"0BSD"
] | 118 | 2020-03-14T17:34:11.000Z | 2022-03-30T07:07:45.000Z | Lib/site-packages/unidecode/x07b.py | hirorin-demon/hirorin-streamlit | 03fbb6f03ec94f909d451e708a3b30b177607695 | [
"0BSD"
] | 30 | 2020-06-20T15:31:53.000Z | 2022-03-06T06:23:55.000Z | data = (
'Mang ', # 0x00
'Zhu ', # 0x01
'Utsubo ', # 0x02
'Du ', # 0x03
'Ji ', # 0x04
'Xiao ', # 0x05
'Ba ', # 0x06
'Suan ', # 0x07
'Ji ', # 0x08
'Zhen ', # 0x09
'Zhao ', # 0x0a
'Sun ', # 0x0b
'Ya ', # 0x0c
'Zhui ', # 0x0d
'Yuan ', # 0x0e
'Hu ', # 0x0f
'Gang ', # 0x10
... | 18.019305 | 20 | 0.395757 | 513 | 4,667 | 3.60039 | 0.803119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200557 | 0.384615 | 4,667 | 258 | 21 | 18.089147 | 0.442549 | 0.274052 | 0 | 0.604651 | 0 | 0 | 0.341744 | 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 | 1 | 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 | 2 |
e3ae477cbacf87c30e4f9e467679b841119fc2ec | 356 | py | Python | pyleecan/Methods/Machine/LamSquirrelCage/comp_length_ring.py | harshasunder-1/pyleecan | 32ae60f98b314848eb9b385e3652d7fc50a77420 | [
"Apache-2.0"
] | 2 | 2019-06-08T15:04:39.000Z | 2020-09-07T13:32:22.000Z | pyleecan/Methods/Machine/LamSquirrelCage/comp_length_ring.py | harshasunder-1/pyleecan | 32ae60f98b314848eb9b385e3652d7fc50a77420 | [
"Apache-2.0"
] | null | null | null | pyleecan/Methods/Machine/LamSquirrelCage/comp_length_ring.py | harshasunder-1/pyleecan | 32ae60f98b314848eb9b385e3652d7fc50a77420 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from numpy import pi
def comp_length_ring(self):
"""Computation of the ring length
Parameters
----------
self : LamSquirrelCage
A LamSquirrelCage object
Returns
-------
Lring: float
Length of the ring [m]
"""
Rmw = self.slot.comp_radius_... | 14.833333 | 42 | 0.570225 | 42 | 356 | 4.714286 | 0.714286 | 0.050505 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008032 | 0.300562 | 356 | 23 | 43 | 15.478261 | 0.787149 | 0.519663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e3b7e2ccc401a24ce7cdda41ee6b67326027248b | 1,257 | py | Python | module_info.py | Ikaguia/LWBR-WarForge | 0099fe20188b2dbfff237e8690ae54c33671656f | [
"Unlicense"
] | null | null | null | module_info.py | Ikaguia/LWBR-WarForge | 0099fe20188b2dbfff237e8690ae54c33671656f | [
"Unlicense"
] | null | null | null | module_info.py | Ikaguia/LWBR-WarForge | 0099fe20188b2dbfff237e8690ae54c33671656f | [
"Unlicense"
] | null | null | null | # Point export_dir to the folder you will be keeping your module
# Make sure you use forward slashes (/) and NOT backward slashes (\)
# Several possible variants for export_dir variable:
# Warband being installed to C:/Games
export_dir = "mod/"
###################################
# W.R.E.C.K. Compiler Options ... | 29.232558 | 149 | 0.682578 | 178 | 1,257 | 4.662921 | 0.516854 | 0.050602 | 0.018072 | 0.009639 | 0.012048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161496 | 1,257 | 43 | 150 | 29.232558 | 0.787476 | 0.68576 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e3c248c64912ecddfb2709461a774a633f90e748 | 1,045 | py | Python | myuw/views/api/current_schedule.py | uw-it-aca/myuw | 3fa1fabeb3c09d81a049f7c1a8c94092d612438a | [
"Apache-2.0"
] | 18 | 2015-02-04T01:09:11.000Z | 2021-11-25T03:10:39.000Z | myuw/views/api/current_schedule.py | uw-it-aca/myuw | 3fa1fabeb3c09d81a049f7c1a8c94092d612438a | [
"Apache-2.0"
] | 2,323 | 2015-01-15T19:45:10.000Z | 2022-03-21T19:57:06.000Z | myuw/views/api/current_schedule.py | uw-it-aca/myuw | 3fa1fabeb3c09d81a049f7c1a8c94092d612438a | [
"Apache-2.0"
] | 9 | 2015-01-15T19:29:26.000Z | 2022-02-11T04:51:23.000Z | # Copyright 2021 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
import logging
import traceback
from myuw.dao.term import get_current_quarter
from myuw.logger.timer import Timer
from myuw.views.error import handle_exception
from myuw.views.api.base_schedule import StudClasSche
logger = logging.... | 32.65625 | 72 | 0.641148 | 118 | 1,045 | 5.567797 | 0.601695 | 0.048706 | 0.05175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021534 | 0.288995 | 1,045 | 31 | 73 | 33.709677 | 0.862719 | 0.321531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e3c4a0f4c819f8cd9ffe203ccc389bb5ab23bc36 | 280 | py | Python | unit1/spiders/spider_2_quotes.py | nulearn3296/scrapy-training | 8981dbc33b68bd7246839eee34ca8266d5a0066f | [
"BSD-3-Clause"
] | 182 | 2017-04-05T23:39:22.000Z | 2022-02-22T19:49:52.000Z | unit1/spiders/spider_2_quotes.py | nulearn3296/scrapy-training | 8981dbc33b68bd7246839eee34ca8266d5a0066f | [
"BSD-3-Clause"
] | 3 | 2017-04-18T07:16:39.000Z | 2019-05-04T22:54:53.000Z | unit1/spiders/spider_2_quotes.py | nulearn3296/scrapy-training | 8981dbc33b68bd7246839eee34ca8266d5a0066f | [
"BSD-3-Clause"
] | 53 | 2017-04-07T03:25:54.000Z | 2022-02-21T21:51:01.000Z | import scrapy
class QuotesSpider(scrapy.Spider):
name = "quotes2"
start_urls = [
'http://quotes.toscrape.com/page/1/',
'http://quotes.toscrape.com/page/2/',
]
def parse(self, response):
self.log('I just visited {}'.format(response.url))
| 21.538462 | 58 | 0.607143 | 34 | 280 | 4.970588 | 0.764706 | 0.118343 | 0.213018 | 0.248521 | 0.295858 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013825 | 0.225 | 280 | 12 | 59 | 23.333333 | 0.764977 | 0 | 0 | 0 | 0 | 0 | 0.328571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
e3cf9ceee92cef8bf273106333c95cd00354d2fd | 376 | py | Python | 2017/01/p1.py | foxscotch/advent-of-code | 20688fad4eef09ef5670ad91f8051c044dfc7baf | [
"MIT"
] | null | null | null | 2017/01/p1.py | foxscotch/advent-of-code | 20688fad4eef09ef5670ad91f8051c044dfc7baf | [
"MIT"
] | null | null | null | 2017/01/p1.py | foxscotch/advent-of-code | 20688fad4eef09ef5670ad91f8051c044dfc7baf | [
"MIT"
] | null | null | null | # Python 3.6.1
with open("input.txt", "r") as f:
puzzle_input = [int(i) for i in f.read()[0:-1]]
total = 0
for cur_index in range(len(puzzle_input)):
next_index = cur_index + 1 if not cur_index == len(puzzle_input) - 1 else 0
puz_cur = puzzle_input[cur_index]
pnext = puzzle_input[next_index]
if p... | 23.5 | 79 | 0.648936 | 67 | 376 | 3.432836 | 0.447761 | 0.23913 | 0.121739 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030612 | 0.218085 | 376 | 15 | 80 | 25.066667 | 0.751701 | 0.031915 | 0 | 0 | 0 | 0 | 0.027624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | null | 1 | 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 | 2 |
e3dbcbdb3ec7d20bf8430c926dca62a8ba70bef4 | 4,710 | py | Python | tests/all_tests.py | My-Novel-Management/storybuilderunite | c003d3451e237f574c54a87ea7d4fd8da8e833be | [
"MIT"
] | 1 | 2020-06-18T01:38:55.000Z | 2020-06-18T01:38:55.000Z | tests/all_tests.py | My-Novel-Management/storybuilder | 1f36e56a74dbb55a25d60fce3ce81f3c650f521a | [
"MIT"
] | 143 | 2019-11-13T00:21:11.000Z | 2020-08-15T05:47:41.000Z | tests/all_tests.py | My-Novel-Management/storybuilderunite | c003d3451e237f574c54a87ea7d4fd8da8e833be | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
The test suite for all test cases
=================================
'''
import unittest
from tests import test_world
from tests.commands import test_command
from tests.commands import test_optioncmd
from tests.commands import test_scode
from tests.commands import test_storycmd
from tests.com... | 39.579832 | 65 | 0.767091 | 539 | 4,710 | 6.532468 | 0.213358 | 0.11758 | 0.274354 | 0.053962 | 0.317807 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000252 | 0.157962 | 4,710 | 118 | 66 | 39.915254 | 0.887544 | 0.037367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 1 | 0.010204 | false | 0 | 0.479592 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e3e28b729577829ef3b226cb7c4e4eb15e894a82 | 2,137 | py | Python | pkgs/clean-pkg/src/genie/libs/clean/stages/iosxe/cat9k/tests/test_tftp_boot.py | patrickboertje/genielibs | 61c37aacf3dd0f499944555e4ff940f92f53dacb | [
"Apache-2.0"
] | 1 | 2022-01-16T10:00:24.000Z | 2022-01-16T10:00:24.000Z | pkgs/clean-pkg/src/genie/libs/clean/stages/iosxe/cat9k/tests/test_tftp_boot.py | patrickboertje/genielibs | 61c37aacf3dd0f499944555e4ff940f92f53dacb | [
"Apache-2.0"
] | null | null | null | pkgs/clean-pkg/src/genie/libs/clean/stages/iosxe/cat9k/tests/test_tftp_boot.py | patrickboertje/genielibs | 61c37aacf3dd0f499944555e4ff940f92f53dacb | [
"Apache-2.0"
] | null | null | null | import logging
import unittest
from unittest.mock import Mock, MagicMock
from genie.libs.clean.stages.iosxe.cat9k.stages import TftpBoot
from genie.libs.clean.stages.tests.utils import CommonStageTests, create_test_device
from pyats.aetest.steps import Steps
from pyats.results import Passed, Failed
from pyats.aetest... | 34.467742 | 84 | 0.702387 | 287 | 2,137 | 5.142857 | 0.400697 | 0.033875 | 0.03523 | 0.056911 | 0.330623 | 0.298103 | 0.298103 | 0.298103 | 0.298103 | 0.241192 | 0 | 0.004253 | 0.229761 | 2,137 | 61 | 85 | 35.032787 | 0.892467 | 0.352831 | 0 | 0.206897 | 0 | 0 | 0.00951 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 1 | 0.103448 | false | 0.103448 | 0.310345 | 0 | 0.448276 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
e3e9ddb3f6a154281b95ad1d2aa584f2ce6e1a6c | 21,345 | py | Python | examples/axro/AXROalignment.py | bddonovan/PyXFocus | 2d6722f0db28c045df35075487f9d4fdfed8b284 | [
"MIT"
] | 1 | 2018-04-20T15:32:24.000Z | 2018-04-20T15:32:24.000Z | examples/axro/AXROalignment.py | bddonovan/PyXFocus | 2d6722f0db28c045df35075487f9d4fdfed8b284 | [
"MIT"
] | 6 | 2017-11-03T16:13:46.000Z | 2019-04-26T11:13:03.000Z | examples/axro/AXROalignment.py | bddonovan/PyXFocus | 2d6722f0db28c045df35075487f9d4fdfed8b284 | [
"MIT"
] | 4 | 2017-04-13T17:24:54.000Z | 2019-08-08T15:27:29.000Z | from numpy import *
from matplotlib.pyplot import *
import traces.conicsolve as conicsolve
import traces.PyTrace as PT
import pdb
from mpl_toolkits.mplot3d import Axes3D
import time
import scipy.optimize
#Load in flat mirror deformations
foldfig = genfromtxt("/home/rallured/Dropbox/AXRO/Alignment/Simulation/"
... | 33.14441 | 95 | 0.633544 | 3,203 | 21,345 | 4.216047 | 0.124883 | 0.024882 | 0.018439 | 0.013329 | 0.762219 | 0.7129 | 0.669505 | 0.638033 | 0.587382 | 0.580865 | 0 | 0.090953 | 0.217053 | 21,345 | 643 | 96 | 33.195956 | 0.71709 | 0.235043 | 0 | 0.674419 | 0 | 0 | 0.038109 | 0.023361 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018605 | null | null | 0.009302 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e3eebb504a36c5e07a64cfe77e023ebab3183b29 | 3,131 | py | Python | dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/dc_20000110.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | null | null | null | dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/dc_20000110.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | null | null | null | dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/dc_20000110.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | 1 | 2020-07-26T03:57:45.000Z | 2020-07-26T03:57:45.000Z | #Example from David Carlisle <davidc@nag.co.uk> to John Robert Gardner <jrgardn@emory.edu> on 10 Jan 2000
from Xml.Xslt import test_harness
sheet_1 = """<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
>
<xsl:output method="xml" indent="yes"/>
<xsl:template match="sample">
<verse... | 24.653543 | 105 | 0.622804 | 421 | 3,131 | 4.589074 | 0.251781 | 0.059524 | 0.102484 | 0.123188 | 0.746377 | 0.692029 | 0.671325 | 0.625776 | 0.625776 | 0.625776 | 0 | 0.05461 | 0.19291 | 3,131 | 126 | 106 | 24.849206 | 0.709933 | 0.033216 | 0 | 0.694444 | 0 | 0.009259 | 0.811302 | 0.072373 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009259 | false | 0 | 0.009259 | 0 | 0.027778 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e3eff8a807310f1658bf9add7b3fd64cd9a65c43 | 435 | py | Python | moyu_engine/config/system/save_system.py | MoYuStudio/MYSG01 | 2bb33f6258893d881466689cd2f0de50e866915d | [
"Apache-2.0"
] | null | null | null | moyu_engine/config/system/save_system.py | MoYuStudio/MYSG01 | 2bb33f6258893d881466689cd2f0de50e866915d | [
"Apache-2.0"
] | null | null | null | moyu_engine/config/system/save_system.py | MoYuStudio/MYSG01 | 2bb33f6258893d881466689cd2f0de50e866915d | [
"Apache-2.0"
] | null | null | null |
import pickle
import moyu_engine.config.data.constants as C
class SavaSystem:
def save_tilemap():
f=open('moyu_engine/config/data/game_save','wb')
save_data = {'window':C.window}
pickle.dump(save_data, f)
f.close()
def read_tilemap():
f=open('moyu_engine/config... | 21.75 | 57 | 0.611494 | 60 | 435 | 4.25 | 0.4 | 0.117647 | 0.188235 | 0.235294 | 0.313725 | 0.313725 | 0.313725 | 0.313725 | 0.313725 | 0 | 0 | 0 | 0.252874 | 435 | 20 | 58 | 21.75 | 0.784615 | 0 | 0 | 0.153846 | 0 | 0 | 0.188506 | 0.151724 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
e3f572b26ae5c5d16dc9bcfe6e977a44a4119b67 | 5,815 | py | Python | nvflare/apis/server_engine_spec.py | ZiyueXu77/NVFlare | ec855326b91b47d54074017a12f89ec971a8139b | [
"Apache-2.0"
] | null | null | null | nvflare/apis/server_engine_spec.py | ZiyueXu77/NVFlare | ec855326b91b47d54074017a12f89ec971a8139b | [
"Apache-2.0"
] | null | null | null | nvflare/apis/server_engine_spec.py | ZiyueXu77/NVFlare | ec855326b91b47d54074017a12f89ec971a8139b | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021-2022, NVIDIA CORPORATION. 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://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 30.445026 | 119 | 0.657782 | 727 | 5,815 | 5.133425 | 0.286107 | 0.072883 | 0.078778 | 0.025723 | 0.138264 | 0.108253 | 0.108253 | 0.108253 | 0.084137 | 0.084137 | 0 | 0.003561 | 0.275666 | 5,815 | 190 | 120 | 30.605263 | 0.882479 | 0.507825 | 0 | 0.52459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.278689 | false | 0.262295 | 0.131148 | 0.016393 | 0.442623 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
5400f18a3b0bb21f6e1240bc7dcf7a7817e230ca | 551 | py | Python | facial recognition using mtcnn/image_count.py | yoga-suhas-km/facial-recognition | 2fab92ec977430ae5d887fe7d3cf6df1b988bef2 | [
"MIT"
] | null | null | null | facial recognition using mtcnn/image_count.py | yoga-suhas-km/facial-recognition | 2fab92ec977430ae5d887fe7d3cf6df1b988bef2 | [
"MIT"
] | null | null | null | facial recognition using mtcnn/image_count.py | yoga-suhas-km/facial-recognition | 2fab92ec977430ae5d887fe7d3cf6df1b988bef2 | [
"MIT"
] | null | null | null | import os
def count_images(count_images_in_folder):
number_of_images = []
path, dirs, files = next(os.walk(count_images_in_folder))
num_classes = len(dirs)
for i in files:
if i.endswith('.jpg'):
number_of_images.append(1)
for i in dirs:
path, dirs, files... | 23.956522 | 82 | 0.600726 | 79 | 551 | 3.924051 | 0.35443 | 0.141935 | 0.180645 | 0.183871 | 0.354839 | 0.354839 | 0.206452 | 0 | 0 | 0 | 0 | 0.005168 | 0.297641 | 551 | 23 | 83 | 23.956522 | 0.795866 | 0 | 0 | 0.133333 | 0 | 0 | 0.014493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
5409241d1256ff9679a064a143c42e39381d869a | 436 | py | Python | pineboolib/kugar/mreportdetail.py | Miguel-J/pineboo-buscar | 41a2f3ee0425d163619b78f32544c4b4661d5fa7 | [
"MIT"
] | null | null | null | pineboolib/kugar/mreportdetail.py | Miguel-J/pineboo-buscar | 41a2f3ee0425d163619b78f32544c4b4661d5fa7 | [
"MIT"
] | null | null | null | pineboolib/kugar/mreportdetail.py | Miguel-J/pineboo-buscar | 41a2f3ee0425d163619b78f32544c4b4661d5fa7 | [
"MIT"
] | null | null | null | from pineboolib import decorators
from pineboolib.flcontrols import ProjectClass
from pineboolib.kugar.mreportsection import MReportSection
class MReportDetail(ProjectClass, MReportSection):
@decorators.BetaImplementation
def __init__(self, *args):
super(MReportDetail, self).__init__(*args)
@de... | 25.647059 | 58 | 0.754587 | 43 | 436 | 7.465116 | 0.488372 | 0.130841 | 0.093458 | 0.11215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167431 | 436 | 16 | 59 | 27.25 | 0.884298 | 0.071101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0.1 | 0.7 | 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 | 1 | 0 | 0 | 2 |
540ba0e1c7e366dfe7a263f9df7b64a920507acb | 1,574 | py | Python | setup.py | anshulp2912/cheapBuy | ea8df2035cf089465313e0609f0eb73272a92554 | [
"MIT"
] | 1 | 2021-11-26T18:20:34.000Z | 2021-11-26T18:20:34.000Z | setup.py | anshulp2912/cheapBuy | ea8df2035cf089465313e0609f0eb73272a92554 | [
"MIT"
] | 19 | 2021-11-04T03:41:46.000Z | 2021-11-04T18:48:39.000Z | setup.py | anshulp2912/cheapBuy | ea8df2035cf089465313e0609f0eb73272a92554 | [
"MIT"
] | 4 | 2021-11-05T01:45:26.000Z | 2021-11-29T22:04:20.000Z | from setuptools import setup
setup(name='cheapBuy',
version='2.0',
description='cheapBuy Extension provides you ease to buy any product through your favourite website like Amazon, Walmart, Ebay, Bjs, Costco, etc, by providing prices of the same product from all different websites to extension.',
auth... | 32.791667 | 235 | 0.543837 | 147 | 1,574 | 5.768707 | 0.748299 | 0.028302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00996 | 0.362135 | 1,574 | 47 | 236 | 33.489362 | 0.834661 | 0 | 0 | 0.108696 | 0 | 0.021739 | 0.67662 | 0.013342 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.021739 | 0 | 0.021739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.