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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fff3557fd7e005babefb16e3b6b117ef8a3354ec | 918 | py | Python | file_automation.py | FlightDev/YSPA | 5226712ebf305e7a3c686c43c996517a617f748b | [
"MIT"
] | null | null | null | file_automation.py | FlightDev/YSPA | 5226712ebf305e7a3c686c43c996517a617f748b | [
"MIT"
] | null | null | null | file_automation.py | FlightDev/YSPA | 5226712ebf305e7a3c686c43c996517a617f748b | [
"MIT"
] | null | null | null | import os
import glob
from astropy.io import fits
#/home/student/Desktop/Images/iTelescope/20180716-California-T24-GOOD
# Yo Neal. When you use this program, you have to change a few things between iTelescope and LFOP
# FIRST, remember to change the file path or you'll be a dummy. Also for LFOP -13 and -12 while
... | 32.785714 | 99 | 0.667756 | 146 | 918 | 4.19863 | 0.568493 | 0.053834 | 0.088091 | 0.117455 | 0.101142 | 0.101142 | 0 | 0 | 0 | 0 | 0 | 0.039402 | 0.198257 | 918 | 27 | 100 | 34 | 0.793478 | 0.422658 | 0 | 0 | 0 | 0 | 0.131429 | 0.064762 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fff46233cd9fc6a4821a3755e7bb2b8fd09e058e | 1,030 | py | Python | read_trials.py | Volkarl/P10-ExoskeletonTransferLearning | 311daf3791c65838ff9c496eeb6526b096b41d4c | [
"MIT"
] | null | null | null | read_trials.py | Volkarl/P10-ExoskeletonTransferLearning | 311daf3791c65838ff9c496eeb6526b096b41d4c | [
"MIT"
] | 2 | 2020-11-13T18:39:27.000Z | 2021-08-25T15:59:36.000Z | read_trials.py | Volkarl/P10-ExoskeletonTransferLearning | 311daf3791c65838ff9c496eeb6526b096b41d4c | [
"MIT"
] | null | null | null | import pickle
import matplotlib.pyplot as plt
import pandas as pd
trials = pickle.load(open("trials.p", "rb"))
print("Set breakpoint here")
#for item in trials.trials:
# args = item["vals"]
# res = item["result"]["loss"]
#itemtuples = [(item["misc"]["vals"]["dilation_group"], item["misc"]["vals"]["use_ref_po... | 24.52381 | 146 | 0.635922 | 154 | 1,030 | 4.220779 | 0.467532 | 0.043077 | 0.041538 | 0.067692 | 0.064615 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006659 | 0.125243 | 1,030 | 41 | 147 | 25.121951 | 0.714761 | 0.506796 | 0 | 0.153846 | 0 | 0 | 0.262195 | 0.056911 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0.461538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
fff5fae09ca4ba6758cfde4e7471355a0e7af098 | 3,506 | py | Python | RecRoomAnimatedProfilePicture.py | zigzatuzoo/Rec-Room-Animated-Profile-Picture | b8eeabf478613f47d3bdb9195ad2f5051e7aaaad | [
"Apache-2.0"
] | 4 | 2021-08-17T01:13:03.000Z | 2022-03-19T04:03:01.000Z | RecRoomAnimatedProfilePicture.py | zigzatuzoo/Rec-Room-Animated-Profile-Picture | b8eeabf478613f47d3bdb9195ad2f5051e7aaaad | [
"Apache-2.0"
] | null | null | null | RecRoomAnimatedProfilePicture.py | zigzatuzoo/Rec-Room-Animated-Profile-Picture | b8eeabf478613f47d3bdb9195ad2f5051e7aaaad | [
"Apache-2.0"
] | null | null | null | ''' Stuff you need to update for this to work '''
'Enter your username here'
user = ''
'Enter your password here'
passwd = ''
image1 = '2d83af05944d49c69fa9565fb238a91b.jpg'
image2 = '49b2788b672e4088a25eb0a9eff35c17.jpg'
image3 = '355c2c7e87f0489bb5f0308cdec108f6.jpg'
" ^ You need to change EACH of these to whateve... | 35.77551 | 287 | 0.634341 | 487 | 3,506 | 4.552361 | 0.431212 | 0.018945 | 0.016238 | 0.030672 | 0.321155 | 0.321155 | 0.291385 | 0.26793 | 0.26793 | 0.22553 | 0 | 0.039508 | 0.23474 | 3,506 | 97 | 288 | 36.14433 | 0.786806 | 0.011694 | 0 | 0.338028 | 0 | 0.028169 | 0.470738 | 0.051618 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042254 | false | 0.056338 | 0.042254 | 0 | 0.084507 | 0.112676 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fff7d77cd5951c966e8c3d645997399fd6e953c2 | 14,121 | py | Python | rcommander/src/rcommander/graph_view.py | rummanwaqar/rcommander-core | 7106d5868db76c47dea6ad11118a54351a8bd390 | [
"BSD-3-Clause"
] | 4 | 2015-04-08T09:57:43.000Z | 2021-08-12T01:44:37.000Z | rcommander/src/rcommander/graph_view.py | jhu-lcsr-forks/rcommander-core | 1a0350e9b93687eff6a4407f72b5250be5f56919 | [
"BSD-3-Clause"
] | 1 | 2015-03-12T09:10:27.000Z | 2015-03-12T09:10:27.000Z | rcommander/src/rcommander/graph_view.py | jhu-lcsr-forks/rcommander-core | 1a0350e9b93687eff6a4407f72b5250be5f56919 | [
"BSD-3-Clause"
] | 3 | 2015-03-12T10:59:17.000Z | 2021-06-21T02:13:57.000Z | #import roslib; roslib.load_manifest('rcommander_core')
import graph.style as gs
import graph
import graph.layout as gl
import tool_utils as tu
import graph_model as gm
import numpy as np
import time
import copy
def copy_style(astyle, bstyle):
bstyle.background = astyle.background
bstyle.fill = as... | 39.116343 | 146 | 0.578217 | 1,831 | 14,121 | 4.260513 | 0.142545 | 0.03679 | 0.024612 | 0.015383 | 0.34111 | 0.257147 | 0.17126 | 0.124087 | 0.096398 | 0.068709 | 0 | 0.030275 | 0.307627 | 14,121 | 360 | 147 | 39.225 | 0.767618 | 0.123646 | 0 | 0.101266 | 0 | 0 | 0.034222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.07173 | null | null | 0.004219 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ffff1e4cd8bc9bad42ca402b2c639f4b45a16abe | 791 | py | Python | pirates/quest/QuestHolderBase.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 3 | 2021-02-25T06:38:13.000Z | 2022-03-22T07:00:15.000Z | pirates/quest/QuestHolderBase.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | null | null | null | pirates/quest/QuestHolderBase.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T06:38:17.000Z | 2021-02-25T06:38:17.000Z | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.quest.QuestHolderBase
class QuestHolderBase:
__module__ = __name__
def __init__(self):
self._rewardCollectors... | 30.423077 | 104 | 0.694058 | 89 | 791 | 5.932584 | 0.629213 | 0.151515 | 0.060606 | 0.094697 | 0.128788 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072231 | 0.212389 | 791 | 26 | 105 | 30.423077 | 0.775281 | 0.259166 | 0 | 0.133333 | 0 | 0 | 0.037801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08058658e2bf102d2ac28a2a02f1701e1eb02d65 | 937 | py | Python | container/base/src/cache.py | hmrc/devops-tooling-build | 03d62df3a45d5dcce306cd6cad6c95a24a4b34ab | [
"Apache-2.0"
] | 1 | 2021-11-10T16:09:43.000Z | 2021-11-10T16:09:43.000Z | container/base/src/cache.py | hmrc/devops-tooling-build | 03d62df3a45d5dcce306cd6cad6c95a24a4b34ab | [
"Apache-2.0"
] | 6 | 2021-07-02T14:15:25.000Z | 2022-02-03T12:57:36.000Z | container/base/src/cache.py | hmrc/devops-tooling-build | 03d62df3a45d5dcce306cd6cad6c95a24a4b34ab | [
"Apache-2.0"
] | null | null | null | import datetime
import hashlib
import os
import pathlib
from typing import Optional
import yaml
def key(name):
return hashlib.sha1(name.encode()).hexdigest()
def path(name):
return pathlib.Path(os.environ['CACHE_AWS_MNT']) / key(name)
def aws_get(name) -> Optional[dict]:
try:
with path(name)... | 25.324324 | 78 | 0.649947 | 122 | 937 | 4.92623 | 0.54918 | 0.053245 | 0.039933 | 0.053245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002782 | 0.232657 | 937 | 36 | 79 | 26.027778 | 0.831711 | 0.060832 | 0 | 0 | 0 | 0 | 0.041002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0.04 | 0.24 | 0.08 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
080b1f9b578c418d65d4a8c4119d27d86ab70fa5 | 2,451 | py | Python | aldryn_redirects/migrations/0003_auto_20171206_1150.py | compoundpartners/aldryn-redirects | ed1b1e90a7774a4bead771e158e30d5846e64e60 | [
"BSD-3-Clause"
] | 1 | 2020-05-14T06:41:50.000Z | 2020-05-14T06:41:50.000Z | aldryn_redirects/migrations/0003_auto_20171206_1150.py | compoundpartners/aldryn-redirects | ed1b1e90a7774a4bead771e158e30d5846e64e60 | [
"BSD-3-Clause"
] | 11 | 2016-01-11T11:42:58.000Z | 2018-11-05T16:13:27.000Z | aldryn_redirects/migrations/0003_auto_20171206_1150.py | compoundpartners/aldryn-redirects | ed1b1e90a7774a4bead771e158e30d5846e64e60 | [
"BSD-3-Clause"
] | 6 | 2016-11-22T04:53:37.000Z | 2018-11-15T13:56:39.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2017-12-06 13:50
from __future__ import unicode_literals
import aldryn_redirects.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('sites', '0001_initial'),... | 50.020408 | 268 | 0.651571 | 247 | 2,451 | 6.238866 | 0.417004 | 0.07852 | 0.031149 | 0.028553 | 0.203764 | 0.173913 | 0.173913 | 0.173913 | 0.102531 | 0.102531 | 0 | 0.019402 | 0.22195 | 2,451 | 48 | 269 | 51.0625 | 0.788673 | 0.027744 | 0 | 0.341463 | 1 | 0 | 0.292017 | 0.051261 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.097561 | 0 | 0.170732 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0811b7481588bc53cfde102ac50bffe1f9e0e41c | 161 | py | Python | velocity/constants.py | aisthesis/mfstockmkt | d442ec4cb3b379f6984397926b4466420236c032 | [
"MIT"
] | null | null | null | velocity/constants.py | aisthesis/mfstockmkt | d442ec4cb3b379f6984397926b4466420236c032 | [
"MIT"
] | 1 | 2015-12-27T17:37:54.000Z | 2015-12-31T05:06:06.000Z | velocity/constants.py | aisthesis/mfstockmkt | d442ec4cb3b379f6984397926b4466420236c032 | [
"MIT"
] | 1 | 2020-05-02T08:25:35.000Z | 2020-05-02T08:25:35.000Z | """
.. Copyright (c) 2015 Marshall Farrier
license http://opensource.org/licenses/MIT
Constants
=========
"""
UPVEL_COL = 'Up Vel'
DOWNVEL_COL = 'Down Vel'
| 14.636364 | 45 | 0.652174 | 20 | 161 | 5.15 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.15528 | 161 | 10 | 46 | 16.1 | 0.727941 | 0.652174 | 0 | 0 | 0 | 0 | 0.291667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
081745d5d369bb388f32e0870139795f7243852c | 213 | py | Python | tuples-and-sets/3_unique_names.py | Minkov/python-advanced-2020-01 | f2ee26f1325d943529673457a1cbba5657ae5905 | [
"MIT"
] | 5 | 2020-01-16T18:17:08.000Z | 2020-04-12T06:42:47.000Z | tuples-and-sets/3_unique_names.py | Minkov/python-advanced-2020-01 | f2ee26f1325d943529673457a1cbba5657ae5905 | [
"MIT"
] | null | null | null | tuples-and-sets/3_unique_names.py | Minkov/python-advanced-2020-01 | f2ee26f1325d943529673457a1cbba5657ae5905 | [
"MIT"
] | null | null | null | n = int(input())
# names = {input() for _ in range(n)}
names = []
for _ in range(n):
names.append(input())
unique_names = list(set(names))
[print(name)
for name
in sorted(unique_names, key=names.index)]
| 15.214286 | 42 | 0.643192 | 33 | 213 | 4.030303 | 0.484848 | 0.075188 | 0.150376 | 0.165414 | 0.240602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178404 | 213 | 13 | 43 | 16.384615 | 0.76 | 0.164319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
081da69448bb7e8d65c5e3d690d670101f274a22 | 587 | py | Python | posts/migrations/0003_auto_20200522_0446.py | NotBlizzard/lark | b348f8d2b532ce20581030397cbba7f6565d1c56 | [
"MIT"
] | 2 | 2020-12-10T06:13:36.000Z | 2021-01-15T09:32:41.000Z | posts/migrations/0003_auto_20200522_0446.py | NotBlizzard/lark | b348f8d2b532ce20581030397cbba7f6565d1c56 | [
"MIT"
] | 7 | 2021-03-10T21:21:55.000Z | 2021-09-22T19:20:03.000Z | posts/migrations/0003_auto_20200522_0446.py | NotBlizzard/lark | b348f8d2b532ce20581030397cbba7f6565d1c56 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-05-22 04:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0002_auto_20200520_0536'),
]
operations = [
migrations.AddField(
model_name='post',
name='subtitle',
... | 23.48 | 63 | 0.574106 | 60 | 587 | 5.466667 | 0.716667 | 0.054878 | 0.079268 | 0.103659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091358 | 0.310051 | 587 | 24 | 64 | 24.458333 | 0.718519 | 0.076661 | 0 | 0.222222 | 1 | 0 | 0.1 | 0.042593 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08217e660e94837e28763173bb72fbc25fe9ee5e | 216 | py | Python | locale/pot/api/plotting/_autosummary/pyvista-Plotter-enable_lightkit-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 4 | 2020-08-07T08:19:19.000Z | 2020-12-04T09:51:11.000Z | locale/pot/api/plotting/_autosummary/pyvista-Plotter-enable_lightkit-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 19 | 2020-08-06T00:24:30.000Z | 2022-03-30T19:22:24.000Z | locale/pot/api/plotting/_autosummary/pyvista-Plotter-enable_lightkit-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 1 | 2021-03-09T07:50:40.000Z | 2021-03-09T07:50:40.000Z | # Create a plotter without any lights and then enable the
# default light kit.
#
import pyvista
pl = pyvista.Plotter(lighting=None)
pl.enable_lightkit()
actor = pl.add_mesh(pyvista.Cube(), show_edges=True)
pl.show()
| 24 | 57 | 0.763889 | 34 | 216 | 4.764706 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 216 | 8 | 58 | 27 | 0.857143 | 0.342593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0822f1091f07394bee07ab3fa63b7142aa217e7c | 1,353 | py | Python | sphinx/environment/managers/__init__.py | rweickelt/sphinx | 1a4c41a7691e8f78d42e2db221192962c53b27df | [
"BSD-2-Clause"
] | null | null | null | sphinx/environment/managers/__init__.py | rweickelt/sphinx | 1a4c41a7691e8f78d42e2db221192962c53b27df | [
"BSD-2-Clause"
] | null | null | null | sphinx/environment/managers/__init__.py | rweickelt/sphinx | 1a4c41a7691e8f78d42e2db221192962c53b27df | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
sphinx.environment.managers
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Manager components for sphinx.environment.
:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
if False:
# For type annotation
from typing import An... | 26.529412 | 68 | 0.604582 | 146 | 1,353 | 5.554795 | 0.40411 | 0.051788 | 0.040691 | 0.099877 | 0.147965 | 0.147965 | 0.147965 | 0.10111 | 0 | 0 | 0 | 0.009165 | 0.274205 | 1,353 | 50 | 69 | 27.06 | 0.816701 | 0.397635 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.130435 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08235f7faf3865296eebd91470431d320d7b228e | 370 | py | Python | createGlobalMap.py | abhi20sc/autoClim | b131a19e935e8ba7778a2c73107a183df37e92da | [
"MIT"
] | 2 | 2021-07-28T05:58:20.000Z | 2021-08-16T18:27:27.000Z | createGlobalMap.py | abhi20sc/autoClim | b131a19e935e8ba7778a2c73107a183df37e92da | [
"MIT"
] | null | null | null | createGlobalMap.py | abhi20sc/autoClim | b131a19e935e8ba7778a2c73107a183df37e92da | [
"MIT"
] | 3 | 2021-08-05T15:21:05.000Z | 2021-10-04T03:42:16.000Z | import cartopy.crs as ccrs
import cartopy.feature as cf
from matplotlib import pyplot as plt
from matplotlib import image as img
def createMap():
fig = plt.figure()
ax = plt.axes(projection=ccrs.PlateCarree())
ax.coastlines(linewidth=1)
ax.add_feature(cf.BORDERS,linestyle='-',linewidth=1)
fig.savefig('globalMap.p... | 30.833333 | 64 | 0.767568 | 57 | 370 | 4.929825 | 0.631579 | 0.092527 | 0.142349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012158 | 0.110811 | 370 | 12 | 65 | 30.833333 | 0.841945 | 0 | 0 | 0 | 0 | 0 | 0.051213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
08248ac0b1e2686f247d443d0208fc7018480282 | 1,327 | py | Python | test/test_merge.py | tawiesn/sclblonnx | 0cf73112db5df13009cd2ddb5d49744689096209 | [
"MIT"
] | null | null | null | test/test_merge.py | tawiesn/sclblonnx | 0cf73112db5df13009cd2ddb5d49744689096209 | [
"MIT"
] | null | null | null | test/test_merge.py | tawiesn/sclblonnx | 0cf73112db5df13009cd2ddb5d49744689096209 | [
"MIT"
] | null | null | null | from sclblonnx import add_output, add_input, add_node, node, empty_graph, add_constant, display, merge, run
import numpy as np
def test_merge():
# Subgraph 1
sg1 = empty_graph("Graph 1")
n1 = node('Add', inputs=['x1', 'x2'], outputs=['sum'])
sg1 = add_node(sg1, n1)
sg1 = add_input(sg1, 'x1', "FLO... | 34.025641 | 107 | 0.605124 | 206 | 1,327 | 3.820388 | 0.291262 | 0.044473 | 0.076239 | 0.035578 | 0.233799 | 0.142313 | 0.142313 | 0.142313 | 0.142313 | 0.142313 | 0 | 0.06203 | 0.198191 | 1,327 | 38 | 108 | 34.921053 | 0.677632 | 0.087415 | 0 | 0 | 0 | 0 | 0.173732 | 0 | 0 | 0 | 0 | 0.026316 | 0.090909 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0836babd9f72c506519d713c961b9257fd759c19 | 447 | py | Python | tests/my_select_group.py | oldjun/PyMyORM | ac49910f21d3f3d3d4b3d75a0f998526963f0a2a | [
"MIT"
] | 1 | 2021-12-01T23:47:24.000Z | 2021-12-01T23:47:24.000Z | tests/my_select_group.py | oldjun/PyMyORM | ac49910f21d3f3d3d4b3d75a0f998526963f0a2a | [
"MIT"
] | null | null | null | tests/my_select_group.py | oldjun/PyMyORM | ac49910f21d3f3d3d4b3d75a0f998526963f0a2a | [
"MIT"
] | 2 | 2022-01-03T15:03:37.000Z | 2022-02-16T09:00:58.000Z | from pymyorm.database import Database
from config import db
from models.user import User
if __name__ == '__main__':
Database.connect(**db)
# # case 1
# all = User.find().select('count(*) as count', 'money').group('money').order('count asc').all()
# for one in all:
# print(one)
all = User.... | 27.9375 | 102 | 0.615213 | 63 | 447 | 4.238095 | 0.460317 | 0.052434 | 0.082397 | 0.127341 | 0.164794 | 0.164794 | 0.164794 | 0 | 0 | 0 | 0 | 0.002825 | 0.208054 | 447 | 15 | 103 | 29.8 | 0.751412 | 0.295302 | 0 | 0 | 0 | 0 | 0.175325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
083f30db4f011f2e287409fe5ae43ef0e966b47a | 3,943 | py | Python | tests/test_step.py | arup-group/mc | 50b8faa8b9d40dece88e0a27f911edd427ebc064 | [
"MIT"
] | null | null | null | tests/test_step.py | arup-group/mc | 50b8faa8b9d40dece88e0a27f911edd427ebc064 | [
"MIT"
] | 12 | 2021-12-14T15:10:43.000Z | 2022-03-31T13:39:25.000Z | tests/test_step.py | arup-group/mc | 50b8faa8b9d40dece88e0a27f911edd427ebc064 | [
"MIT"
] | null | null | null | from pathlib import Path
import pytest
from copy import deepcopy
import os
from mc.base import BaseConfig
from mc import step
@pytest.fixture()
def config():
in_file = Path("tests/test_data/test_config.xml")
return BaseConfig(in_file)
def test_set_write_path(config):
step.set_write_path(config, {'outpu... | 39.43 | 103 | 0.672331 | 441 | 3,943 | 5.854875 | 0.190476 | 0.116189 | 0.050349 | 0.076685 | 0.725019 | 0.656468 | 0.622773 | 0.622773 | 0.605345 | 0.605345 | 0 | 0.01259 | 0.153944 | 3,943 | 99 | 104 | 39.828283 | 0.761391 | 0 | 0 | 0.37037 | 0 | 0 | 0.420238 | 0.203398 | 0 | 0 | 0 | 0 | 0.345679 | 1 | 0.111111 | false | 0 | 0.074074 | 0 | 0.197531 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0840e1f2cca91c8f40fea1035d91f9ed0ea2c8f1 | 15,552 | py | Python | lambda_functions.py | intirix/serverless-secrets-manager | 2c89b2c497f7078c38885125dfa79db944a214db | [
"Apache-2.0"
] | 2 | 2018-05-23T06:04:13.000Z | 2020-11-04T23:16:09.000Z | lambda_functions.py | intirix/serverless-secrets-manager | 2c89b2c497f7078c38885125dfa79db944a214db | [
"Apache-2.0"
] | null | null | null | lambda_functions.py | intirix/serverless-secrets-manager | 2c89b2c497f7078c38885125dfa79db944a214db | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import system
import db
import client
import server
import logging
import json
import base64
import os
from aws_xray_sdk.core import patch_all
if "AWS_REGION" in os.environ:
patch_all()
class LambdaCommon:
def __init__(self, ddb_client=None):
self.log = logging.getLogger("Lambda")... | 29.622857 | 84 | 0.600244 | 1,676 | 15,552 | 5.49284 | 0.102625 | 0.119922 | 0.050511 | 0.036498 | 0.703237 | 0.69748 | 0.682381 | 0.669889 | 0.654573 | 0.630241 | 0 | 0.024065 | 0.267876 | 15,552 | 524 | 85 | 29.679389 | 0.784472 | 0.003215 | 0 | 0.633178 | 0 | 0 | 0.160839 | 0.030774 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053738 | false | 0.002336 | 0.021028 | 0.002336 | 0.343458 | 0.002336 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0845d2588d5c55abf24f9ab405009bd284d758d8 | 833 | py | Python | tests/test_composition.py | gregorynicholas/proto-pigeon | 65a5d961e7a8506f3a968b21aaf68f625fd13190 | [
"Apache-2.0"
] | null | null | null | tests/test_composition.py | gregorynicholas/proto-pigeon | 65a5d961e7a8506f3a968b21aaf68f625fd13190 | [
"Apache-2.0"
] | null | null | null | tests/test_composition.py | gregorynicholas/proto-pigeon | 65a5d961e7a8506f3a968b21aaf68f625fd13190 | [
"Apache-2.0"
] | null | null | null | from protorpc.messages import Message, IntegerField, StringField
import protopigeon
class MessageOne(Message):
one = IntegerField(1)
two = IntegerField(2)
class MessageTwo(Message):
three = StringField(1)
four = StringField(2)
def test():
ComposedMessage = protopigeon.compose(MessageOne, Messa... | 23.138889 | 65 | 0.686675 | 89 | 833 | 6.426966 | 0.359551 | 0.090909 | 0.195804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015314 | 0.216086 | 833 | 35 | 66 | 23.8 | 0.860643 | 0.046819 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
084d1fd01b6f648a85848dd0310b96b0d8966a0e | 651 | py | Python | yotta/options/registry.py | microbit-foundation/yotta | 82d854b43d391abb5a006b05e7beffe7d0d6ffbf | [
"Apache-2.0"
] | 176 | 2015-01-02T07:31:59.000Z | 2022-03-21T12:40:02.000Z | yotta/options/registry.py | microbit-foundation/yotta | 82d854b43d391abb5a006b05e7beffe7d0d6ffbf | [
"Apache-2.0"
] | 549 | 2015-01-05T16:19:54.000Z | 2021-01-15T13:46:42.000Z | yotta/options/registry.py | microbit-foundation/yotta | 82d854b43d391abb5a006b05e7beffe7d0d6ffbf | [
"Apache-2.0"
] | 84 | 2015-01-10T21:01:00.000Z | 2022-03-24T16:04:42.000Z | # Copyright 2014-2015 ARM Limited
#
# Licensed under the Apache License, Version 2.0
# See LICENSE file for details.
# standard library options
from argparse import Action, SUPPRESS
class RegistryAction(Action):
def __init__(self, *args, **kwargs):
kwargs['nargs'] = 1
self.dest = kwargs['dest']
... | 27.125 | 70 | 0.680492 | 77 | 651 | 5.571429 | 0.649351 | 0.04662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023077 | 0.201229 | 651 | 23 | 71 | 28.304348 | 0.801923 | 0.204301 | 0 | 0 | 0 | 0 | 0.052734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
084edafd90972abf12ce9cf828ac494b0afdd467 | 4,453 | py | Python | src/pybraingym/environment.py | anetczuk/pybraingym | 4f930021d7802e88c75a1a0aed135dd4de66cc1b | [
"MIT"
] | null | null | null | src/pybraingym/environment.py | anetczuk/pybraingym | 4f930021d7802e88c75a1a0aed135dd4de66cc1b | [
"MIT"
] | null | null | null | src/pybraingym/environment.py | anetczuk/pybraingym | 4f930021d7802e88c75a1a0aed135dd4de66cc1b | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2019 Arkadiusz Netczuk <dev.arnet@gmail.com>
#
# 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 the rights
# t... | 32.50365 | 104 | 0.651246 | 511 | 4,453 | 5.636008 | 0.348337 | 0.045139 | 0.032986 | 0.017708 | 0.119792 | 0.086806 | 0.086806 | 0.054167 | 0.054167 | 0.054167 | 0 | 0.002978 | 0.245902 | 4,453 | 136 | 105 | 32.742647 | 0.854675 | 0.355042 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233766 | false | 0 | 0.025974 | 0.051948 | 0.402597 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
085a588c3443a2133c8229f5612a92a5ee522cad | 335 | py | Python | src/videos/migrations/0009_rename_updated_timestamp_video_updated.py | imsubhamsingh/vibeon | 5ea67bb8dae0a0c28d36f81374eb4f046d842cf5 | [
"Apache-2.0"
] | null | null | null | src/videos/migrations/0009_rename_updated_timestamp_video_updated.py | imsubhamsingh/vibeon | 5ea67bb8dae0a0c28d36f81374eb4f046d842cf5 | [
"Apache-2.0"
] | 2 | 2021-07-19T18:41:46.000Z | 2022-02-10T11:43:07.000Z | src/videos/migrations/0009_rename_updated_timestamp_video_updated.py | imsubhamsingh/vibeon | 5ea67bb8dae0a0c28d36f81374eb4f046d842cf5 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2 on 2021-04-20 19:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("videos", "0008_video_updated_timestamp")]
operations = [
migrations.RenameField(
model_name="video", old_name="updated_timestamp", new_name="updated"
... | 22.333333 | 80 | 0.674627 | 39 | 335 | 5.615385 | 0.74359 | 0.146119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068441 | 0.214925 | 335 | 14 | 81 | 23.928571 | 0.764259 | 0.128358 | 0 | 0 | 1 | 0 | 0.217241 | 0.096552 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f23153ff9da39e77238d222d2874c0c47b3effe7 | 1,765 | py | Python | tests/test_copies.py | mschmidtkorth/shallow-backup | 6629fed7d5a3a13eb068c7ef0168cfa8ffbd3bbf | [
"MIT"
] | 1 | 2021-07-25T19:26:47.000Z | 2021-07-25T19:26:47.000Z | tests/test_copies.py | mschmidtkorth/shallow-backup | 6629fed7d5a3a13eb068c7ef0168cfa8ffbd3bbf | [
"MIT"
] | null | null | null | tests/test_copies.py | mschmidtkorth/shallow-backup | 6629fed7d5a3a13eb068c7ef0168cfa8ffbd3bbf | [
"MIT"
] | null | null | null | import os
import sys
import pytest
import shutil
from .test_utils import setup_env_vars, unset_env_vars, BACKUP_DEST_DIR, FAKE_HOME_DIR, DIRS
sys.path.insert(0, "../shallow_backup")
from shallow_backup.utils import copy_dir_if_valid
TEST_TEXT_FILE = os.path.join(FAKE_HOME_DIR, 'test-file.txt')
class TestCopyMethods:... | 32.090909 | 94 | 0.65779 | 245 | 1,765 | 4.465306 | 0.342857 | 0.060329 | 0.080439 | 0.038391 | 0.161792 | 0.128885 | 0.107861 | 0.062157 | 0.062157 | 0 | 0 | 0.001487 | 0.23796 | 1,765 | 54 | 95 | 32.685185 | 0.811896 | 0.108215 | 0 | 0.108108 | 0 | 0 | 0.064153 | 0 | 0 | 0 | 0 | 0.018519 | 0.108108 | 1 | 0.108108 | false | 0 | 0.162162 | 0 | 0.297297 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2320f768e412bebfaa5c2e31eeb4a3c480eacaf | 1,395 | py | Python | loan/killeragent.py | Casper-Smet/LOAN | 3aabf80cf4314bcba33779329fc6e4971b85e742 | [
"MIT"
] | null | null | null | loan/killeragent.py | Casper-Smet/LOAN | 3aabf80cf4314bcba33779329fc6e4971b85e742 | [
"MIT"
] | null | null | null | loan/killeragent.py | Casper-Smet/LOAN | 3aabf80cf4314bcba33779329fc6e4971b85e742 | [
"MIT"
] | null | null | null | from collections import namedtuple
import networkx as nx
from mesa import Agent, Model
class KillerAgent(Agent):
def __init__(self, unique_id: int, model: Model, creator, pos: int, target_location: int, target_disease: str) -> None:
super().__init__(unique_id, model)
self.creator = creator
... | 34.875 | 128 | 0.658065 | 182 | 1,395 | 4.703297 | 0.318681 | 0.057243 | 0.063084 | 0.073598 | 0.098131 | 0.098131 | 0 | 0 | 0 | 0 | 0 | 0.000939 | 0.236559 | 1,395 | 40 | 129 | 34.875 | 0.801878 | 0 | 0 | 0 | 0 | 0.032258 | 0.055874 | 0.039398 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.096774 | 0.096774 | 0.451613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2377bda1f457053d6b4f86097a8d1ba0041422b | 260 | py | Python | src/arm/src/iksolverservicetester.py | Busboombot/ros_idx6dof | 63b3a49393ab2c619b6b56c634cd440ab9b464ef | [
"MIT"
] | 1 | 2020-03-15T15:30:43.000Z | 2020-03-15T15:30:43.000Z | src/arm/src/iksolverservicetester.py | Busboombot/ros_idx6dof | 63b3a49393ab2c619b6b56c634cd440ab9b464ef | [
"MIT"
] | null | null | null | src/arm/src/iksolverservicetester.py | Busboombot/ros_idx6dof | 63b3a49393ab2c619b6b56c634cd440ab9b464ef | [
"MIT"
] | null | null | null | #!/usr/bin/python
import rospy
from arm.srv import IKService, IKServiceResponse
rospy.init_node("asdf", anonymous=True)
rospy.wait_for_service('IKService')
srv = rospy.ServiceProxy('IKService', IKService)
resp = srv([5, 16, 8, 0, 0, 0], None)
print resp
| 17.333333 | 48 | 0.734615 | 38 | 260 | 4.947368 | 0.684211 | 0.021277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030702 | 0.123077 | 260 | 14 | 49 | 18.571429 | 0.79386 | 0.061538 | 0 | 0 | 0 | 0 | 0.090535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f23e9e3046350977154c8ce79c350de302fd2dce | 197 | py | Python | 04_While/Step03/gamjapark.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | 04_While/Step03/gamjapark.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | 3 | 2020-11-04T05:38:53.000Z | 2021-03-02T02:15:19.000Z | 04_While/Step03/gamjapark.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | n = int(input())
temp_n = n
k=0
while True:
a = int(temp_n / 10)
b = temp_n % 10
c = (a + b) % 10
new = b*10 + c
k += 1
if new == n:
break
temp_n = new
print(k)
| 14.071429 | 24 | 0.446701 | 38 | 197 | 2.210526 | 0.447368 | 0.238095 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084746 | 0.401015 | 197 | 13 | 25 | 15.153846 | 0.627119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f23ec9a0fbd46e6d9b5f8659349c47ab52aec354 | 333 | py | Python | bbtest/steps/appliance_steps.py | jancajthaml-openbank/e2e | a2ef84b6564022e95de76438fc795e2ef927aa2b | [
"Apache-2.0"
] | null | null | null | bbtest/steps/appliance_steps.py | jancajthaml-openbank/e2e | a2ef84b6564022e95de76438fc795e2ef927aa2b | [
"Apache-2.0"
] | 30 | 2018-03-18T05:58:32.000Z | 2022-01-19T23:21:31.000Z | bbtest/steps/appliance_steps.py | jancajthaml-openbank/e2e | a2ef84b6564022e95de76438fc795e2ef927aa2b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from behave import *
from helpers.eventually import eventually
@given('appliance is running')
def appliance_running(context):
@eventually(5)
def wait_for_appliance_up():
assert context.appliance.running(), 'appliance did not start within 5 seconds'
wait_for_ap... | 23.785714 | 82 | 0.744745 | 45 | 333 | 5.355556 | 0.622222 | 0.13278 | 0.13278 | 0.149378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013937 | 0.138138 | 333 | 13 | 83 | 25.615385 | 0.825784 | 0.129129 | 0 | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f23fb929e898694417f38446747b98726264f0e7 | 1,211 | py | Python | irkshop/urls.py | Beomi/irkshop | c109a62216cb6550add64fbf402883debc5011d1 | [
"Apache-2.0"
] | 19 | 2016-11-06T10:28:14.000Z | 2020-11-01T02:04:51.000Z | irkshop/urls.py | Beomi/irkshop | c109a62216cb6550add64fbf402883debc5011d1 | [
"Apache-2.0"
] | 17 | 2016-10-19T11:58:48.000Z | 2022-01-13T00:32:34.000Z | irkshop/urls.py | Beomi/irkshop | c109a62216cb6550add64fbf402883debc5011d1 | [
"Apache-2.0"
] | 4 | 2016-11-06T10:54:26.000Z | 2019-08-31T16:08:56.000Z | from django.conf.urls import url, include
from django.contrib import admin
from django.contrib.auth.views import login, logout
from django.conf import settings
from django.views.static import serve
from django.views.generic import TemplateView
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^accounts/l... | 41.758621 | 101 | 0.663088 | 155 | 1,211 | 5.064516 | 0.348387 | 0.050955 | 0.050955 | 0.04586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168456 | 1,211 | 28 | 102 | 43.25 | 0.779543 | 0.012386 | 0 | 0 | 0 | 0 | 0.229481 | 0.074539 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.32 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f2414f0188cf0460b22148b0732eea50d4b58390 | 5,142 | py | Python | plag/urls.py | neetu6860/plagiarism-detection-software | 7f05210aafdccf33a2bc732a40348eff43f46fba | [
"MIT"
] | 19 | 2018-09-03T09:10:20.000Z | 2021-12-24T13:52:18.000Z | plag/urls.py | neetu6860/plagiarism-detection-software | 7f05210aafdccf33a2bc732a40348eff43f46fba | [
"MIT"
] | 3 | 2019-10-31T18:42:38.000Z | 2021-06-10T21:37:23.000Z | plag/urls.py | neetu6860/plagiarism-detection-software | 7f05210aafdccf33a2bc732a40348eff43f46fba | [
"MIT"
] | 16 | 2018-06-06T15:04:59.000Z | 2022-03-29T04:53:07.000Z | from django.conf.urls import patterns, url
from django.contrib import admin
from django.contrib.auth.decorators import login_required
from django.views.generic import TemplateView
admin.autodiscover()
from plag import views, const
urlpatterns = patterns('',
url(r'^$', views.IndexView.as_view(... | 57.775281 | 119 | 0.532283 | 536 | 5,142 | 4.923507 | 0.18097 | 0.054566 | 0.084881 | 0.116711 | 0.359606 | 0.30125 | 0.229632 | 0.093217 | 0.023494 | 0 | 0 | 0 | 0.317581 | 5,142 | 88 | 120 | 58.431818 | 0.752066 | 0.002139 | 0 | 0 | 0 | 0.014925 | 0.32092 | 0.200039 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0 | false | 0 | 0.074627 | 0 | 0.074627 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2470b57f1baf4a7e69d418b396753a2d81c5b04 | 752 | py | Python | authentik/sources/saml/migrations/0011_auto_20210324_0736.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 15 | 2020-01-05T09:09:57.000Z | 2020-11-28T05:27:39.000Z | authentik/sources/saml/migrations/0011_auto_20210324_0736.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 302 | 2020-01-21T08:03:59.000Z | 2020-12-04T05:04:57.000Z | authentik/sources/saml/migrations/0011_auto_20210324_0736.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 3 | 2020-03-04T08:21:59.000Z | 2020-08-01T20:37:18.000Z | # Generated by Django 3.1.7 on 2021-03-24 07:36
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("authentik_flows", "0016_auto_20201202_1307"),
("authentik_sources_saml", "0010_samlsource_pre_authentication_flow"),... | 28.923077 | 78 | 0.62633 | 77 | 752 | 5.87013 | 0.636364 | 0.053097 | 0.061947 | 0.097345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06422 | 0.275266 | 752 | 25 | 79 | 30.08 | 0.765138 | 0.05984 | 0 | 0.105263 | 1 | 0 | 0.296454 | 0.187234 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f249ee34b1745d4a243c396362c75f872d9af531 | 687 | py | Python | Software_Carpentry/Conway/test_conway.py | dgasmith/SICM2-Software-Summer-School-2014 | af97770cbade3bf4a246f21e607e8be66c9df7da | [
"MIT"
] | 2 | 2015-07-16T14:00:27.000Z | 2016-01-10T20:21:48.000Z | Software_Carpentry/Conway/test_conway.py | dgasmith/SICM2-Software-Summer-School-2014 | af97770cbade3bf4a246f21e607e8be66c9df7da | [
"MIT"
] | null | null | null | Software_Carpentry/Conway/test_conway.py | dgasmith/SICM2-Software-Summer-School-2014 | af97770cbade3bf4a246f21e607e8be66c9df7da | [
"MIT"
] | null | null | null | from conway import *
def test_neighbors_at_origin():
result = [(1,1), (-1,-1), (0,1), (1,0), (-1,1), (1,-1), (-1,0), (0,-1)]
nb = neighbors((0,0))
assert( set(result) == set(nb) )
def test_neighbors_at_negative_quadrant():
result = [(0, -1), (-2, -1), (-1, 0), (-1, -2), (0, 0), (0, -2), (-2, 0), (... | 28.625 | 87 | 0.513828 | 108 | 687 | 3.185185 | 0.185185 | 0.069767 | 0.043605 | 0.046512 | 0.389535 | 0.366279 | 0.156977 | 0 | 0 | 0 | 0 | 0.096475 | 0.215429 | 687 | 23 | 88 | 29.869565 | 0.541744 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.235294 | false | 0 | 0.058824 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f24a5dc578f63a0c2e113a798ce9969cd7ed080c | 5,426 | py | Python | app_backend/__init__.py | zhanghe06/bearing_project | 78a20fc321f72d3ae05c7ab7e52e01d02904e3fc | [
"MIT"
] | 1 | 2020-06-21T04:08:26.000Z | 2020-06-21T04:08:26.000Z | app_backend/__init__.py | zhanghe06/bearing_project | 78a20fc321f72d3ae05c7ab7e52e01d02904e3fc | [
"MIT"
] | 13 | 2019-10-18T17:19:32.000Z | 2022-01-13T00:44:43.000Z | app_backend/__init__.py | zhanghe06/bearing_project | 78a20fc321f72d3ae05c7ab7e52e01d02904e3fc | [
"MIT"
] | 5 | 2019-02-07T03:15:16.000Z | 2021-09-04T14:06:28.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: __init__.py
@time: 2018-03-06 00:00
"""
from __future__ import unicode_literals
import eventlet
eventlet.monkey_patch()
from logging.config import dictConfig
from config import current_config
from flask import Flask
from flask_... | 30.483146 | 86 | 0.838555 | 792 | 5,426 | 5.435606 | 0.215909 | 0.058537 | 0.113821 | 0.141231 | 0.35029 | 0.0964 | 0.0964 | 0.0964 | 0.0964 | 0.053194 | 0 | 0.002829 | 0.08791 | 5,426 | 177 | 87 | 30.655367 | 0.867044 | 0.134353 | 0 | 0.068966 | 0 | 0 | 0.045708 | 0.017811 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.422414 | 0 | 0.422414 | 0.267241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f24b88cb32a898b91b261cd705b2ad3fcd5d1287 | 2,950 | py | Python | extension/visualizer/generate_visualizer_header.py | AldoMyrtaj/duckdb | 3aa4978a2ceab8df25e4b20c388bcd7629de73ed | [
"MIT"
] | 2,816 | 2018-06-26T18:52:52.000Z | 2021-04-06T10:39:15.000Z | extension/visualizer/generate_visualizer_header.py | AldoMyrtaj/duckdb | 3aa4978a2ceab8df25e4b20c388bcd7629de73ed | [
"MIT"
] | 1,310 | 2021-04-06T16:04:52.000Z | 2022-03-31T13:52:53.000Z | extension/visualizer/generate_visualizer_header.py | AldoMyrtaj/duckdb | 3aa4978a2ceab8df25e4b20c388bcd7629de73ed | [
"MIT"
] | 270 | 2021-04-09T06:18:28.000Z | 2022-03-31T11:55:37.000Z | # this script generates visualizer header
import os
visualizer_dir = 'extension/visualizer'
visualizer_css = os.path.join(visualizer_dir, 'visualizer.css')
visualizer_d3 = os.path.join(visualizer_dir, 'd3.js')
visualizer_script = os.path.join(visualizer_dir, 'script.js')
visualizer_header = os.path.join(visualizer_dir... | 36.419753 | 92 | 0.737627 | 410 | 2,950 | 5.207317 | 0.453659 | 0.044965 | 0.018735 | 0.037471 | 0.129274 | 0.0637 | 0.0637 | 0.0637 | 0.0637 | 0.0637 | 0 | 0.007913 | 0.186102 | 2,950 | 81 | 93 | 36.419753 | 0.881299 | 0.01322 | 0 | 0.031746 | 1 | 0 | 0.586598 | 0.018213 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063492 | false | 0 | 0.031746 | 0 | 0.15873 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f251f3a1ac391e245be08c921c85c8b349b00732 | 1,924 | py | Python | fineDinner.py | SMartQi/whose-treat | 85f1d27dfb2b728a33cf8b6fcd73213ca24edb0b | [
"MIT"
] | 1 | 2020-01-30T11:09:31.000Z | 2020-01-30T11:09:31.000Z | fineDinner.py | SMartQi/whose-treat | 85f1d27dfb2b728a33cf8b6fcd73213ca24edb0b | [
"MIT"
] | null | null | null | fineDinner.py | SMartQi/whose-treat | 85f1d27dfb2b728a33cf8b6fcd73213ca24edb0b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#-*- encoding:UTF-8 -*-
"""
Background:
JJ and MM want to have a fine dinner, celebrating their annual bonuses. They make this rule:
This dinner is on the person who gets more annual bonus. And the cost of the dinner is the diff of money they make mod 300, per capita.
Requirement:
Decide the mo... | 29.6 | 135 | 0.670478 | 292 | 1,924 | 4.390411 | 0.458904 | 0.024961 | 0.021841 | 0.031201 | 0.25429 | 0.25429 | 0.25429 | 0.25429 | 0.193448 | 0.193448 | 0 | 0.022981 | 0.20842 | 1,924 | 64 | 136 | 30.0625 | 0.818779 | 0.327963 | 0 | 0.157895 | 0 | 0 | 0.244617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.078947 | 0.026316 | 0 | 0.131579 | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f263dc6e6df0ca9888bd8e9bcfdb5d8ed564b445 | 507 | py | Python | yaga_ga/evolutionary_algorithm/operators/base.py | alessandrolenzi/yaga | 872503ad04a2831135143750bc309188e5685284 | [
"MIT"
] | null | null | null | yaga_ga/evolutionary_algorithm/operators/base.py | alessandrolenzi/yaga | 872503ad04a2831135143750bc309188e5685284 | [
"MIT"
] | null | null | null | yaga_ga/evolutionary_algorithm/operators/base.py | alessandrolenzi/yaga | 872503ad04a2831135143750bc309188e5685284 | [
"MIT"
] | null | null | null | from typing import Generic, TypeVar
from typing_extensions import Final
from yaga_ga.evolutionary_algorithm.individuals import IndividualStructure
class InvalidOperatorError(ValueError):
pass
IndividualType = TypeVar("IndividualType")
GeneType = TypeVar("GeneType")
class GeneticOperator(Generic[IndividualTy... | 24.142857 | 81 | 0.792899 | 47 | 507 | 8.340426 | 0.531915 | 0.168367 | 0.117347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142012 | 507 | 20 | 82 | 25.35 | 0.901149 | 0 | 0 | 0 | 0 | 0 | 0.043393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f26a5c6b870f2f9eb67aa2735878c21021be7143 | 324 | py | Python | leetcode/easy/plus-one.py | vtemian/interviews-prep | ddef96b5ecc699a590376a892a804c143fe18034 | [
"Apache-2.0"
] | 8 | 2019-05-14T12:50:29.000Z | 2022-03-01T09:08:27.000Z | leetcode/easy/plus-one.py | vtemian/interviews-prep | ddef96b5ecc699a590376a892a804c143fe18034 | [
"Apache-2.0"
] | 46 | 2019-03-24T20:59:29.000Z | 2019-04-09T16:28:43.000Z | leetcode/easy/plus-one.py | vtemian/interviews-prep | ddef96b5ecc699a590376a892a804c143fe18034 | [
"Apache-2.0"
] | 1 | 2022-01-28T12:46:29.000Z | 2022-01-28T12:46:29.000Z | class Solution:
def plusOne(self, digits: List[int]) -> List[int]:
carry = 1
result = []
for digit in digits[::-1]:
digit += carry
result.append(digit % 10)
carry = digit // 10
if carry:
result.append(carry)
return result[::... | 20.25 | 54 | 0.475309 | 35 | 324 | 4.4 | 0.514286 | 0.090909 | 0.220779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036082 | 0.401235 | 324 | 15 | 55 | 21.6 | 0.757732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f26cee0b9842c7bd2fa3f00e76d7e1a08850c951 | 450 | py | Python | coloredterm/__init__.py | hostedposted/coloredterm | 72d07a0bd12eb797e4b2772dfe45aca5234d27b6 | [
"MIT"
] | 1 | 2021-02-12T01:21:44.000Z | 2021-02-12T01:21:44.000Z | coloredterm/__init__.py | hostedposted/coloredterm | 72d07a0bd12eb797e4b2772dfe45aca5234d27b6 | [
"MIT"
] | 4 | 2021-07-07T04:09:58.000Z | 2022-02-03T04:05:30.000Z | coloredterm/__init__.py | hostedposted/coloredterm | 72d07a0bd12eb797e4b2772dfe45aca5234d27b6 | [
"MIT"
] | 1 | 2021-02-20T22:58:31.000Z | 2021-02-20T22:58:31.000Z | """Collection of tools for changing the text of your terminal."""
from coloredterm.coloredterm import (
Back,
bg,
colored,
colors,
cprint,
fg,
Fore,
names,
pattern_input,
pattern_print,
rand,
Style
)
__version__ = "0.1.9"
__all__ = [
'Back',
'bg',
'colored',
... | 14.516129 | 65 | 0.542222 | 47 | 450 | 4.93617 | 0.638298 | 0.051724 | 0.112069 | 0.163793 | 0.594828 | 0.594828 | 0.594828 | 0.594828 | 0.594828 | 0.594828 | 0 | 0.00974 | 0.315556 | 450 | 31 | 66 | 14.516129 | 0.743506 | 0.131111 | 0 | 0 | 0 | 0 | 0.196891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f26e13939dbd7efae31817537aae9cd55a260550 | 1,706 | py | Python | src/export_as_csv.py | mustilica/tt-history | 1bb60cb81e97ef1abecf657cfa078798bb29cace | [
"MIT"
] | 26 | 2015-02-12T20:33:01.000Z | 2018-04-25T05:29:52.000Z | src/export_as_csv.py | mustilica/tt-history | 1bb60cb81e97ef1abecf657cfa078798bb29cace | [
"MIT"
] | 3 | 2019-11-27T18:19:23.000Z | 2020-11-26T08:53:13.000Z | src/export_as_csv.py | mustilica/tt-history | 1bb60cb81e97ef1abecf657cfa078798bb29cace | [
"MIT"
] | 8 | 2015-01-11T00:12:40.000Z | 2018-04-01T22:34:45.000Z | # Run from GAE remote API:
# {GAE Path}\remote_api_shell.py -s {YourAPPName}.appspot.com
# import export_as_csv
import csv
from google.appengine.ext import db
from google.appengine.ext.db import GqlQuery
def exportToCsv(query, csvFileName, delimiter):
with open(csvFileName, 'wb') as csvFile:
csvWriter ... | 28.433333 | 74 | 0.622509 | 176 | 1,706 | 6 | 0.5 | 0.048295 | 0.035985 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005691 | 0.279015 | 1,706 | 59 | 75 | 28.915254 | 0.852846 | 0.100821 | 0 | 0 | 0 | 0 | 0.103471 | 0.017027 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081081 | null | null | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f27341117d08bd618bf3ac5014feb6d7ff7d069e | 801 | py | Python | kafka_client_decorators/util/logging_helper.py | cdsedson/kafka-decorator | f2c958df88c5698148aae4c5314dd39e31e995c3 | [
"MIT"
] | null | null | null | kafka_client_decorators/util/logging_helper.py | cdsedson/kafka-decorator | f2c958df88c5698148aae4c5314dd39e31e995c3 | [
"MIT"
] | null | null | null | kafka_client_decorators/util/logging_helper.py | cdsedson/kafka-decorator | f2c958df88c5698148aae4c5314dd39e31e995c3 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""Define function used on logging."""
import logging
__KAFKA_DECORATOR_DEBUG__ = None
def set_debug_level(level):
"""Set the level of log.
Set logging level for all loggers create by get_logger function
Parameters
----------
level: log level def... | 19.536585 | 67 | 0.636704 | 93 | 801 | 5.11828 | 0.494624 | 0.147059 | 0.19958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003384 | 0.262172 | 801 | 40 | 68 | 20.025 | 0.80203 | 0.475655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f27e08d8b8e21a50f9f19aef584ea000ba47242e | 6,070 | py | Python | app/loader.py | DFilyushin/librusec | fd6d7a99037aac4c1112f648397830284f4165f9 | [
"Apache-2.0"
] | 2 | 2017-12-14T11:50:16.000Z | 2021-12-27T13:42:16.000Z | app/loader.py | DFilyushin/librusec | fd6d7a99037aac4c1112f648397830284f4165f9 | [
"Apache-2.0"
] | null | null | null | app/loader.py | DFilyushin/librusec | fd6d7a99037aac4c1112f648397830284f4165f9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import datetime
import time
import MySQLdb as mdb
LIB_INDEXES = 'D:\\TEMP\\librusec'
MYSQL_HOST = '127.0.0.1'
MYSQL_BASE = 'books100'
MYSQL_LOGIN = 'root'
MYSQL_PASSW = 'qwerty'
SQL_CHECK_BASE = "SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = '%s'"
SQL_CREATE... | 33.351648 | 134 | 0.594728 | 830 | 6,070 | 4.116867 | 0.222892 | 0.019315 | 0.019023 | 0.019901 | 0.191396 | 0.191396 | 0.134914 | 0.104185 | 0.08487 | 0.059701 | 0 | 0.01293 | 0.286491 | 6,070 | 181 | 135 | 33.535912 | 0.776033 | 0.00346 | 0 | 0.103448 | 0 | 0.008621 | 0.162982 | 0.005283 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025862 | 0.034483 | null | null | 0.086207 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f27f8a655e82f556df2399b3f99f4848f377c47b | 375 | py | Python | app/models/word.py | shiniao/soul-api | 1438281c2dce237d735f7309c2ddb606c8d01e1e | [
"Apache-2.0"
] | 1 | 2021-02-27T09:05:40.000Z | 2021-02-27T09:05:40.000Z | app/models/word.py | shiniao/soulapi | 1438281c2dce237d735f7309c2ddb606c8d01e1e | [
"Apache-2.0"
] | null | null | null | app/models/word.py | shiniao/soulapi | 1438281c2dce237d735f7309c2ddb606c8d01e1e | [
"Apache-2.0"
] | null | null | null | from sqlalchemy import Column, Integer, String
from app.database import Base
class Word(Base):
id = Column(Integer, primary_key=True, index=True, autoincrement=True)
origin = Column(String, index=True, unique=True, nullable=False)
pronunciation = Column(String)
translation = Column(String)
creat... | 26.785714 | 74 | 0.733333 | 47 | 375 | 5.787234 | 0.553191 | 0.220588 | 0.102941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170667 | 375 | 13 | 75 | 28.846154 | 0.874598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f280236c60f310af1d18ad0b782faeb404b108be | 912 | py | Python | anomaly/Read_img.py | Jun-CEN/Open-World-Semantic-Segmentation | a95bac374e573055c23220e299789f34292988bc | [
"MIT"
] | 19 | 2021-08-09T15:34:10.000Z | 2022-03-14T09:20:58.000Z | anomaly/Read_img.py | Jun-CEN/Open-World-Semantic-Segmentation | a95bac374e573055c23220e299789f34292988bc | [
"MIT"
] | 4 | 2021-11-08T07:10:35.000Z | 2022-01-16T01:53:06.000Z | anomaly/Read_img.py | Jun-CEN/Open-World-Semantic-Segmentation | a95bac374e573055c23220e299789f34292988bc | [
"MIT"
] | 4 | 2021-10-06T09:28:16.000Z | 2022-01-14T08:26:54.000Z | from PIL import Image
import matplotlib.pyplot as plt
import numpy as np
import bdlb
import torch
import json
# path_img = './data/test_result/t5/'
# path_img = './results_18_ce_noshuffle/2_'
#
# image = Image.open(path_img + '100.png')
# plt.imshow(image)
# plt.show()
#
# overlay = Image.open(path_img + 'overlay.png'... | 20.727273 | 54 | 0.667763 | 146 | 912 | 4.034247 | 0.376712 | 0.095076 | 0.110357 | 0.135823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016731 | 0.148026 | 912 | 43 | 55 | 21.209302 | 0.741313 | 0.604167 | 0 | 0 | 0 | 0 | 0.06006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f2854a477097d46506783a017f1b2352a0421334 | 570 | py | Python | school/migrations/0018_listemplois.py | Belaid-RWW/PFAEspaceParent | 8fd0000d4ee1427599bcb7da5aa301050469e7a8 | [
"MIT"
] | null | null | null | school/migrations/0018_listemplois.py | Belaid-RWW/PFAEspaceParent | 8fd0000d4ee1427599bcb7da5aa301050469e7a8 | [
"MIT"
] | null | null | null | school/migrations/0018_listemplois.py | Belaid-RWW/PFAEspaceParent | 8fd0000d4ee1427599bcb7da5aa301050469e7a8 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-05-07 03:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('school', '0017_emplois_emp'),
]
operations = [
migrations.CreateModel(
name='ListEmplois',
fields=[
... | 25.909091 | 114 | 0.568421 | 58 | 570 | 5.465517 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054726 | 0.294737 | 570 | 21 | 115 | 27.142857 | 0.733831 | 0.078947 | 0 | 0 | 1 | 0 | 0.087954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f28637ac36ec4e4cf9bd05dd4661f26ee82946dd | 900 | py | Python | ejercicios_resueltos/t04/t04ejer03.py | workready/pythonbasic | 59bd82caf99244f5e711124e1f6f4dec8de22141 | [
"MIT"
] | null | null | null | ejercicios_resueltos/t04/t04ejer03.py | workready/pythonbasic | 59bd82caf99244f5e711124e1f6f4dec8de22141 | [
"MIT"
] | null | null | null | ejercicios_resueltos/t04/t04ejer03.py | workready/pythonbasic | 59bd82caf99244f5e711124e1f6f4dec8de22141 | [
"MIT"
] | null | null | null | import os
def gcat(filenames):
for filename in filenames:
with open(filename) as f:
for line in f:
yield line
def ggrep(pattern, filenames):
for filename in filenames:
with open(filename) as f:
for line in f:
if pattern in line:
... | 25 | 104 | 0.537778 | 111 | 900 | 4.288288 | 0.369369 | 0.07563 | 0.056723 | 0.092437 | 0.487395 | 0.487395 | 0.487395 | 0.487395 | 0.487395 | 0.487395 | 0 | 0 | 0.221111 | 900 | 35 | 105 | 25.714286 | 0.67903 | 0.062222 | 0 | 0.583333 | 0 | 0 | 0.25119 | 0.138095 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.041667 | 0 | 0.125 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
f2864bce946124a8b9383d4c53008de00cff4e49 | 2,460 | py | Python | swot_item_vote/views.py | imranariffin/liveswot-api | a2acc05fd2c51adc30e8e1785b857a94af81677d | [
"MIT"
] | null | null | null | swot_item_vote/views.py | imranariffin/liveswot-api | a2acc05fd2c51adc30e8e1785b857a94af81677d | [
"MIT"
] | 25 | 2018-03-25T05:25:22.000Z | 2021-06-10T19:51:12.000Z | swot_item_vote/views.py | imranariffin/liveswot-api | a2acc05fd2c51adc30e8e1785b857a94af81677d | [
"MIT"
] | 2 | 2018-07-02T02:59:24.000Z | 2018-08-21T02:58:21.000Z | from django.core.exceptions import ObjectDoesNotExist
from django.db import IntegrityError
from rest_framework.decorators import api_view
from rest_framework import status
from swot_item_vote.models import Vote
from swot_item.models import SwotItem
from .serializers import serialize, get_item_confidence
from swot.m... | 21.964286 | 64 | 0.605285 | 286 | 2,460 | 4.926573 | 0.241259 | 0.096522 | 0.07807 | 0.070972 | 0.316537 | 0.176011 | 0.133428 | 0.086586 | 0.086586 | 0.086586 | 0 | 0.01253 | 0.318699 | 2,460 | 111 | 65 | 22.162162 | 0.828162 | 0 | 0 | 0.395604 | 0 | 0 | 0.032927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010989 | 0.10989 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2895989ed18fa1ea8643af23dca6836bad3cec9 | 30,553 | py | Python | car2dc-kiran/Scripts/StartTraffic.py | kirannCS/MasterThesis | a12771dc40efe77ae7d6e1631ed66c4b9992afd8 | [
"Unlicense"
] | null | null | null | car2dc-kiran/Scripts/StartTraffic.py | kirannCS/MasterThesis | a12771dc40efe77ae7d6e1631ed66c4b9992afd8 | [
"Unlicense"
] | null | null | null | car2dc-kiran/Scripts/StartTraffic.py | kirannCS/MasterThesis | a12771dc40efe77ae7d6e1631ed66c4b9992afd8 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
#################################################################################
################# Helper Module #################################################
################# Provides abstraction to car sensors and PHY layer #############
##################################################... | 37.1691 | 239 | 0.700717 | 3,585 | 30,553 | 5.883961 | 0.160948 | 0.00877 | 0.007964 | 0.007585 | 0.358538 | 0.300796 | 0.268844 | 0.238741 | 0.218356 | 0.217882 | 0 | 0.005138 | 0.184565 | 30,553 | 821 | 240 | 37.214373 | 0.841535 | 0.161654 | 0 | 0.283828 | 0 | 0 | 0.130914 | 0.008127 | 0.00165 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.049505 | null | null | 0.029703 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2904abee88ac63551da7aa60f4599002d25cdcf | 2,757 | py | Python | side_scroller/game.py | pecjas/Sidescroller-PyGame | dfcaf4ff95a1733714eaaeb00dc00cd876ab1468 | [
"MIT"
] | null | null | null | side_scroller/game.py | pecjas/Sidescroller-PyGame | dfcaf4ff95a1733714eaaeb00dc00cd876ab1468 | [
"MIT"
] | null | null | null | side_scroller/game.py | pecjas/Sidescroller-PyGame | dfcaf4ff95a1733714eaaeb00dc00cd876ab1468 | [
"MIT"
] | null | null | null | import pygame
from side_scroller.constants import BLACK
from side_scroller.settings import GameSettings, Fonts
from side_scroller.player import Player, Hitbox
from side_scroller.constants import GAME_NAME
class Game():
def __init__(self):
self.player = Player(0, Player.y_bottom_barrier)
self.scree... | 31.329545 | 91 | 0.66848 | 341 | 2,757 | 5.1261 | 0.284457 | 0.045767 | 0.040046 | 0.048055 | 0.244279 | 0.086384 | 0.062929 | 0.062929 | 0 | 0 | 0 | 0.005764 | 0.244831 | 2,757 | 87 | 92 | 31.689655 | 0.833814 | 0.028654 | 0 | 0.126984 | 0 | 0 | 0.016579 | 0.011304 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.079365 | 0.015873 | 0.349206 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2909580065a2556ae0c58be271bee9537858bf1 | 366 | py | Python | solutions/problem_230.py | ksvr444/daily-coding-problem | 5d9f488f81c616847ee4e9e48974523ec2d598d7 | [
"MIT"
] | 1,921 | 2018-11-13T18:19:56.000Z | 2021-11-15T14:25:41.000Z | solutions/problem_230.py | MohitIndian/daily-coding-problem | 5d9f488f81c616847ee4e9e48974523ec2d598d7 | [
"MIT"
] | 2 | 2019-07-19T01:06:16.000Z | 2019-08-01T22:21:36.000Z | solutions/problem_230.py | MohitIndian/daily-coding-problem | 5d9f488f81c616847ee4e9e48974523ec2d598d7 | [
"MIT"
] | 1,066 | 2018-11-19T19:06:55.000Z | 2021-11-13T12:33:56.000Z | def get_min_drops(N, k):
if N == 0 or N == 1 or k == 1:
return N
possibilities = list()
for i in range(1, N + 1):
possibilities.append(
max(get_min_drops(i-1, k-1),
get_min_drops(N-i, k))
)
return min(possibilities) + 1
# Tests
assert get_min_drops... | 20.333333 | 40 | 0.538251 | 61 | 366 | 3.065574 | 0.442623 | 0.160428 | 0.294118 | 0.128342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065306 | 0.330601 | 366 | 17 | 41 | 21.529412 | 0.697959 | 0.013661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f290ef8b6c3eb1ab597e06f8dc82e1806488e974 | 3,525 | py | Python | src/advanceoperate/uploadthread.py | zengrx/S.M.A.R.T | 47a9abe89008e9b34f9b9d057656dbf3fb286456 | [
"MIT"
] | 10 | 2017-07-11T01:08:28.000Z | 2021-05-07T01:49:00.000Z | src/advanceoperate/uploadthread.py | YanqiangHuang/S.M.A.R.T | 47a9abe89008e9b34f9b9d057656dbf3fb286456 | [
"MIT"
] | null | null | null | src/advanceoperate/uploadthread.py | YanqiangHuang/S.M.A.R.T | 47a9abe89008e9b34f9b9d057656dbf3fb286456 | [
"MIT"
] | 6 | 2017-05-02T14:27:15.000Z | 2017-05-15T05:56:40.000Z | #coding=utf-8
import sys, os
import socket
import hashlib
import virus_total_apis
from PyQt4 import QtCore
sys.path.append("..")
from publicfunc.fileanalyze import PEFileAnalize, getFileInfo
class UploadFile(QtCore.QThread):
finishSignal = QtCore.pyqtSignal(int, tuple)
'''
@文件名
@用户公钥
'''
def ... | 34.558824 | 119 | 0.584681 | 364 | 3,525 | 5.497253 | 0.337912 | 0.113943 | 0.069965 | 0.041979 | 0.22089 | 0.178911 | 0.118941 | 0.118941 | 0 | 0 | 0 | 0.013064 | 0.283404 | 3,525 | 102 | 120 | 34.558824 | 0.779097 | 0.118582 | 0 | 0.138889 | 0 | 0 | 0.107191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027778 | 0.083333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f291aa8b92b2b817f77cb42f08e1e15a9557dcfe | 240 | py | Python | JaroEliCall/src/functionality/sending_activation_key.py | jaroslaw-wieczorek/Project_IP_Telephony_Python_Voip | 05143356fe91f745c286db8c3e2432714ab122e7 | [
"MIT"
] | null | null | null | JaroEliCall/src/functionality/sending_activation_key.py | jaroslaw-wieczorek/Project_IP_Telephony_Python_Voip | 05143356fe91f745c286db8c3e2432714ab122e7 | [
"MIT"
] | null | null | null | JaroEliCall/src/functionality/sending_activation_key.py | jaroslaw-wieczorek/Project_IP_Telephony_Python_Voip | 05143356fe91f745c286db8c3e2432714ab122e7 | [
"MIT"
] | 1 | 2018-03-20T21:22:40.000Z | 2018-03-20T21:22:40.000Z | import smtplib
server = smtplib.SMTP('smtp.gmail.com', 587)
server.starttls()
server.login("tt0815550@gmail.com", "AureliaK1609")
msg = "YOUR MESSAGE!"
server.sendmail("e.kaczmarek01@gmail.com", "tt0815550@gmail.com", msg)
server.quit()
| 21.818182 | 70 | 0.7375 | 32 | 240 | 5.53125 | 0.5625 | 0.180791 | 0.19209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104545 | 0.083333 | 240 | 10 | 71 | 24 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0.41841 | 0.096234 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f293d5631b8815a984d95fcfd9fd7e627ddefdd5 | 484 | py | Python | tests/conftest.py | 12rambau/commitizen | 4309813974b6be72a246d47fc77f4c7f8ef64be1 | [
"MIT"
] | 866 | 2020-03-18T06:09:07.000Z | 2022-03-30T15:46:17.000Z | tests/conftest.py | 12rambau/commitizen | 4309813974b6be72a246d47fc77f4c7f8ef64be1 | [
"MIT"
] | 364 | 2020-03-18T02:13:09.000Z | 2022-03-31T01:57:12.000Z | tests/conftest.py | 12rambau/commitizen | 4309813974b6be72a246d47fc77f4c7f8ef64be1 | [
"MIT"
] | 136 | 2020-03-20T18:06:32.000Z | 2022-03-31T00:02:34.000Z | import pytest
from commitizen import cmd
@pytest.fixture(scope="function")
def tmp_git_project(tmpdir):
with tmpdir.as_cwd():
cmd.run("git init")
yield tmpdir
@pytest.fixture(scope="function")
def tmp_commitizen_project(tmp_git_project):
with tmp_git_project.as_cwd():
tmp_commitize... | 23.047619 | 80 | 0.71281 | 69 | 484 | 4.710145 | 0.434783 | 0.092308 | 0.2 | 0.16 | 0.196923 | 0.196923 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.169421 | 484 | 20 | 81 | 24.2 | 0.800995 | 0 | 0 | 0.153846 | 0 | 0 | 0.152893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f296a031d5f0c54dcf0daafc3b2597cd41d7d8ee | 524 | py | Python | sharedData.py | vidalmatheus/DS.com | 47b8d3cbb6d9ecd30178c4ba76408191c0715866 | [
"MIT"
] | null | null | null | sharedData.py | vidalmatheus/DS.com | 47b8d3cbb6d9ecd30178c4ba76408191c0715866 | [
"MIT"
] | null | null | null | sharedData.py | vidalmatheus/DS.com | 47b8d3cbb6d9ecd30178c4ba76408191c0715866 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request, redirect,Blueprint, json, url_for, session
from modules import dataBase,usuario
import psycopg2, os, subprocess, bcrypt
#
#def getData():
# DATABASE_URL = os.environ['DATABASE_URL']
# con = psycopg2.connect(DATABASE_URL, sslmode='require')
# return con
###... | 20.96 | 93 | 0.740458 | 60 | 524 | 6.35 | 0.583333 | 0.144357 | 0.068241 | 0.104987 | 0.16273 | 0.16273 | 0 | 0 | 0 | 0 | 0 | 0.004415 | 0.135496 | 524 | 24 | 94 | 21.833333 | 0.836645 | 0.370229 | 0 | 0 | 0 | 0 | 0.038961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f2995fcdd8762cd23c69c1f140cd16f1c0b58140 | 6,183 | py | Python | merlin/analysis/sequential.py | greentea1079/MERlin | f4c50cb15722263ee9397561b9ce4b2eddc3d559 | [
"MIT"
] | 14 | 2019-08-19T15:26:44.000Z | 2022-01-12T16:38:42.000Z | merlin/analysis/sequential.py | greentea1079/MERlin | f4c50cb15722263ee9397561b9ce4b2eddc3d559 | [
"MIT"
] | 60 | 2019-08-19T15:48:37.000Z | 2021-11-11T19:19:18.000Z | merlin/analysis/sequential.py | epigen-UCSD/MERlin | 3aa784fb28a2a4ebae92cfaf3a72f30a459daab9 | [
"MIT"
] | 13 | 2019-08-16T06:03:23.000Z | 2021-08-02T15:52:46.000Z | import pandas
import rtree
import networkx
import numpy as np
import cv2
from skimage.measure import regionprops
from merlin.core import analysistask
from merlin.util import imagefilters
class SumSignal(analysistask.ParallelAnalysisTask):
"""
An analysis task that calculates the signal intensity within the ... | 37.472727 | 80 | 0.603105 | 673 | 6,183 | 5.355126 | 0.273403 | 0.073807 | 0.029967 | 0.022198 | 0.295505 | 0.285516 | 0.222531 | 0.161487 | 0.13596 | 0.109323 | 0 | 0.00784 | 0.298561 | 6,183 | 164 | 81 | 37.70122 | 0.82315 | 0.075691 | 0 | 0.12069 | 0 | 0 | 0.06546 | 0.003903 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12069 | false | 0.094828 | 0.068966 | 0.060345 | 0.301724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f2a53c9d24ff35deb138d84a030fd47b3eb06aa1 | 3,214 | py | Python | Proj/2048/test_with_f/tpybrain.py | PiscesDream/Ideas | 9ba710e62472f183ae4525f35659cd265c71392e | [
"Apache-2.0"
] | null | null | null | Proj/2048/test_with_f/tpybrain.py | PiscesDream/Ideas | 9ba710e62472f183ae4525f35659cd265c71392e | [
"Apache-2.0"
] | null | null | null | Proj/2048/test_with_f/tpybrain.py | PiscesDream/Ideas | 9ba710e62472f183ae4525f35659cd265c71392e | [
"Apache-2.0"
] | null | null | null | from load import *
from _2048 import _2048
from numpy import *
from pybrain.datasets import ClassificationDataSet
from pybrain.utilities import percentError
from pybrain.tools.shortcuts import buildNetwork
from pybrain.supervised.trainers import BackpropTrainer
from pybrain.structure.modules ... | 30.903846 | 120 | 0.528002 | 449 | 3,214 | 3.69265 | 0.265033 | 0.043426 | 0.014475 | 0.028951 | 0.176116 | 0.170084 | 0.13269 | 0.13269 | 0.11339 | 0.11339 | 0 | 0.036229 | 0.330118 | 3,214 | 103 | 121 | 31.203884 | 0.73386 | 0.056627 | 0 | 0.192771 | 0 | 0 | 0.010924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096386 | null | null | 0.048193 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2a5d347767b990fa97d063da0ee6a2aa890bd9d | 2,757 | py | Python | run.py | mishel254/py-password-locker | c14dd314251f078125df39104b99384c8cbd292b | [
"MIT"
] | null | null | null | run.py | mishel254/py-password-locker | c14dd314251f078125df39104b99384c8cbd292b | [
"MIT"
] | null | null | null | run.py | mishel254/py-password-locker | c14dd314251f078125df39104b99384c8cbd292b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.8
from passwords import Credentials
from login import accounts
import random
#create credentials func
def create(fname,lname,user,passwords,email):
newCredentials = Credentials(fname,lname,user,passwords,email)
return newCredentials
#delete
'''
function to delete credentials & accounts
'... | 22.056 | 73 | 0.573087 | 283 | 2,757 | 5.473498 | 0.335689 | 0.034861 | 0.038735 | 0.029697 | 0.036152 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001057 | 0.313384 | 2,757 | 124 | 74 | 22.233871 | 0.817221 | 0.018861 | 0 | 0.09589 | 0 | 0 | 0.176817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123288 | false | 0.082192 | 0.041096 | 0.041096 | 0.219178 | 0.315068 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f2ab54aefe1c397702c020ba41c25aedb91b9d9b | 555 | py | Python | setup.py | akvatol/CosmOrc | 6ee1e1f3521a6d2b4c8eec104fa4e93db32d9352 | [
"MIT"
] | 1 | 2018-12-07T17:21:39.000Z | 2018-12-07T17:21:39.000Z | setup.py | akvatol/CosmOrc | 6ee1e1f3521a6d2b4c8eec104fa4e93db32d9352 | [
"MIT"
] | 8 | 2018-11-23T10:05:01.000Z | 2019-04-09T19:17:43.000Z | setup.py | akvatol/CosmOrc | 6ee1e1f3521a6d2b4c8eec104fa4e93db32d9352 | [
"MIT"
] | 1 | 2018-12-07T17:21:40.000Z | 2018-12-07T17:21:40.000Z | from setuptools import setup, find_packages
setup(
name='CosmOrc',
version='0.1',
include_package_data=True,
packages=find_packages(),
python_requires='>=3.6',
install_requires=[
'Click==7.0',
'numpy==1.16.2',
'pandas==0.24.2',
'pyaml==19.4.1',
'PySnooper... | 21.346154 | 43 | 0.506306 | 72 | 555 | 3.791667 | 0.638889 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102041 | 0.293694 | 555 | 25 | 44 | 22.2 | 0.594388 | 0 | 0 | 0 | 0 | 0 | 0.381982 | 0.03964 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2ada1e33fb51298d8dea6d25a8d7c5459098cce | 3,976 | py | Python | sweetie_bot_flexbe_behaviors/src/sweetie_bot_flexbe_behaviors/rbc18part2_sm.py | sweetie-bot-project/sweetie_bot_flexbe_behaviors | d8511564bb9d6125838b4373263fb68a8b858d70 | [
"BSD-3-Clause"
] | null | null | null | sweetie_bot_flexbe_behaviors/src/sweetie_bot_flexbe_behaviors/rbc18part2_sm.py | sweetie-bot-project/sweetie_bot_flexbe_behaviors | d8511564bb9d6125838b4373263fb68a8b858d70 | [
"BSD-3-Clause"
] | null | null | null | sweetie_bot_flexbe_behaviors/src/sweetie_bot_flexbe_behaviors/rbc18part2_sm.py | sweetie-bot-project/sweetie_bot_flexbe_behaviors | d8511564bb9d6125838b4373263fb68a8b858d70 | [
"BSD-3-Clause"
] | 1 | 2019-12-23T05:06:26.000Z | 2019-12-23T05:06:26.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###########################################################
# WARNING: Generated code! #
# ************************** #
# Manual changes may get lost if file is generated again. #
# Only code inside the [MANUAL] ta... | 37.866667 | 217 | 0.647133 | 453 | 3,976 | 5.551876 | 0.375276 | 0.019085 | 0.014314 | 0.025447 | 0.518887 | 0.498211 | 0.498211 | 0.498211 | 0.467992 | 0.434592 | 0 | 0.043796 | 0.173038 | 3,976 | 104 | 218 | 38.230769 | 0.721107 | 0.21001 | 0 | 0.307692 | 1 | 0 | 0.211335 | 0.045067 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.076923 | 0 | 0.179487 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2b258bd5e08c7cfd6f403dd7e2e5de3a6cb8a04 | 9,512 | py | Python | steel_segmentation/utils.py | marcomatteo/steel-segmentation-nbdev | dde19b0b3bf7657ab575e691bca1751592aecc67 | [
"Apache-2.0"
] | 1 | 2021-08-20T14:56:26.000Z | 2021-08-20T14:56:26.000Z | steel_segmentation/utils.py | marcomatteo/steel-segmentation-nbdev | dde19b0b3bf7657ab575e691bca1751592aecc67 | [
"Apache-2.0"
] | 1 | 2021-05-03T16:42:34.000Z | 2021-05-03T16:42:34.000Z | steel_segmentation/utils.py | marcomatteo/steel_segmentation | dde19b0b3bf7657ab575e691bca1751592aecc67 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/01_eda.ipynb (unless otherwise specified).
__all__ = ['palet', 'seed_everything', 'print_competition_data', 'get_train_pivot', 'get_train_df', 'count_pct',
'get_classification_df', 'rle2mask', 'make_mask', 'mask2rle', 'plot_mask_image', 'plot_defected_image',
... | 34.589091 | 114 | 0.637931 | 1,362 | 9,512 | 4.299559 | 0.232012 | 0.031421 | 0.011954 | 0.013661 | 0.111339 | 0.053962 | 0.037227 | 0.013661 | 0.013661 | 0 | 0 | 0.023018 | 0.218987 | 9,512 | 275 | 115 | 34.589091 | 0.765244 | 0.201009 | 0 | 0.012195 | 1 | 0 | 0.094193 | 0.009542 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0.030488 | 0.006098 | 0.20122 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2b72d00fd0e6778383cb9c2b7f0e084dcbc51b2 | 5,798 | py | Python | gui/wndRecipeProcedure.py | ralic/gnu_brewtools | ba09dc11e23d93e623f497286f3f2c3e9aaa41c2 | [
"BSD-3-Clause"
] | null | null | null | gui/wndRecipeProcedure.py | ralic/gnu_brewtools | ba09dc11e23d93e623f497286f3f2c3e9aaa41c2 | [
"BSD-3-Clause"
] | null | null | null | gui/wndRecipeProcedure.py | ralic/gnu_brewtools | ba09dc11e23d93e623f497286f3f2c3e9aaa41c2 | [
"BSD-3-Clause"
] | null | null | null | """
* Copyright (c) 2008, Flagon Slayer Brewery
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 35.570552 | 121 | 0.723698 | 772 | 5,798 | 5.349741 | 0.339378 | 0.02615 | 0.029056 | 0.043584 | 0.153995 | 0.10799 | 0.046489 | 0.03293 | 0.03293 | 0.03293 | 0 | 0.002062 | 0.163505 | 5,798 | 162 | 122 | 35.790123 | 0.849485 | 0.106071 | 0 | 0 | 0 | 0 | 0.149282 | 0.029101 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2b7bb0de76b2e0ba5ce5495b4efc9822958361d | 1,018 | py | Python | oidc_provider/migrations/0028_change_response_types_field_1_of_3.py | avallbona/django-oidc-provider | 93b41e9ada42ca7c4bd6c860de83793ba3701d68 | [
"MIT"
] | null | null | null | oidc_provider/migrations/0028_change_response_types_field_1_of_3.py | avallbona/django-oidc-provider | 93b41e9ada42ca7c4bd6c860de83793ba3701d68 | [
"MIT"
] | null | null | null | oidc_provider/migrations/0028_change_response_types_field_1_of_3.py | avallbona/django-oidc-provider | 93b41e9ada42ca7c4bd6c860de83793ba3701d68 | [
"MIT"
] | 1 | 2021-02-17T16:23:41.000Z | 2021-02-17T16:23:41.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-12-16 02:43
from __future__ import unicode_literals
from django.db import migrations, models
import oidc_provider.fields
class Migration(migrations.Migration):
dependencies = [
('oidc_provider', '0027_swappable_client_model'),
]
opera... | 37.703704 | 415 | 0.652259 | 119 | 1,018 | 5.344538 | 0.453782 | 0.08805 | 0.075472 | 0.059748 | 0.081761 | 0.081761 | 0 | 0 | 0 | 0 | 0 | 0.026185 | 0.212181 | 1,018 | 26 | 416 | 39.153846 | 0.766833 | 0.066798 | 0 | 0.210526 | 1 | 0 | 0.367476 | 0.028511 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2b89b6b2b0dc41d3a0e5d1ce5504c256753035d | 926 | py | Python | reservations/migrations/0001_initial.py | danielmicaletti/ride_cell | 910be09ebc714b8c744edaf81559c8a9266473e3 | [
"MIT"
] | null | null | null | reservations/migrations/0001_initial.py | danielmicaletti/ride_cell | 910be09ebc714b8c744edaf81559c8a9266473e3 | [
"MIT"
] | null | null | null | reservations/migrations/0001_initial.py | danielmicaletti/ride_cell | 910be09ebc714b8c744edaf81559c8a9266473e3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-04-26 00:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('parking', '0001_initial'),
]
ope... | 31.931034 | 158 | 0.62959 | 95 | 926 | 5.915789 | 0.610526 | 0.042705 | 0.049822 | 0.078292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028531 | 0.242981 | 926 | 28 | 159 | 33.071429 | 0.773181 | 0.071274 | 0 | 0 | 1 | 0 | 0.186698 | 0.085181 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2bbbde7ac14cbda28bc8fe761c19a1e71889708 | 2,808 | py | Python | pfrock/cli/config_parser.py | knightliao/pfrock | 33587f11caeeccc11d0b8219b4e02df153905486 | [
"Apache-2.0"
] | 62 | 2016-02-24T10:47:17.000Z | 2019-04-27T01:36:56.000Z | pfrock/cli/config_parser.py | knightliao/pfrock | 33587f11caeeccc11d0b8219b4e02df153905486 | [
"Apache-2.0"
] | 1 | 2019-04-19T12:13:21.000Z | 2021-08-10T09:16:09.000Z | pfrock/cli/config_parser.py | knightliao/pfrock | 33587f11caeeccc11d0b8219b4e02df153905486 | [
"Apache-2.0"
] | 24 | 2016-03-01T14:59:29.000Z | 2019-09-02T08:12:00.000Z | # !/usr/bin/env python
# coding=utf8
import json
import traceback
from tornado.web import RequestHandler
from pfrock.cli import logger
from pfrock.core.constants import PFROCK_CONFIG_SERVER, PFROCK_CONFIG_ROUTER, PFROCK_CONFIG_PORT, ROUTER_METHOD, \
ROUTER_PATH, ROUTER_OPTIONS, ROUTER_HANDLER
from pfrock.core.lib... | 33.428571 | 114 | 0.649217 | 331 | 2,808 | 5.277946 | 0.244713 | 0.06182 | 0.027476 | 0.027476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000498 | 0.284544 | 2,808 | 83 | 115 | 33.831325 | 0.869089 | 0.026353 | 0 | 0.169231 | 0 | 0 | 0.00989 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.092308 | false | 0 | 0.092308 | 0 | 0.353846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2ca33e35faaa3a6ab066c758e3c492f242feea7 | 633 | py | Python | lesson_3_set.py | pis2pis2/pis2pis2 | a8ab83d89bbeaa2b4a6a2be684ae5b7513472a7f | [
"MIT"
] | null | null | null | lesson_3_set.py | pis2pis2/pis2pis2 | a8ab83d89bbeaa2b4a6a2be684ae5b7513472a7f | [
"MIT"
] | null | null | null | lesson_3_set.py | pis2pis2/pis2pis2 | a8ab83d89bbeaa2b4a6a2be684ae5b7513472a7f | [
"MIT"
] | 4 | 2019-11-12T06:59:35.000Z | 2021-01-29T21:34:15.000Z | # Тип данных МНОЖЕСТВО (set)------------------------
#------------------------------------------
# Инициализация
temp_set = {1,2,3}
print(type(temp_set), temp_set)
temp_list = [1,2,1,2,2,3,4,12,32]
temp_set = set(temp_list)
print(type(temp_set), temp_set)
# Обращения к элементам множества
print(100 in temp_s... | 20.419355 | 52 | 0.598736 | 107 | 633 | 3.261682 | 0.336449 | 0.143266 | 0.094556 | 0.034384 | 0.272206 | 0.223496 | 0 | 0 | 0 | 0 | 0 | 0.069943 | 0.164297 | 633 | 31 | 53 | 20.419355 | 0.589792 | 0.315956 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
4b37de6730f4bf33d3ca155f712cb0a661d6d553 | 951 | py | Python | docker-app/qfieldcloud/core/migrations/0045_auto_20211012_2234.py | livelihoods-and-landscapes/qfieldcloud-tcs | 3075e19d89caa3090a0d2027a376336526572764 | [
"MIT"
] | 34 | 2021-06-08T12:06:24.000Z | 2022-03-07T11:45:10.000Z | docker-app/qfieldcloud/core/migrations/0045_auto_20211012_2234.py | livelihoods-and-landscapes/qfieldcloud-tcs | 3075e19d89caa3090a0d2027a376336526572764 | [
"MIT"
] | 139 | 2021-06-08T00:24:51.000Z | 2022-03-28T09:59:54.000Z | docker-app/qfieldcloud/core/migrations/0045_auto_20211012_2234.py | livelihoods-and-landscapes/qfieldcloud-tcs | 3075e19d89caa3090a0d2027a376336526572764 | [
"MIT"
] | 8 | 2021-06-11T04:18:36.000Z | 2022-02-15T20:52:58.000Z | # Generated by Django 3.2.8 on 2021-10-12 22:34
from django.db import migrations, models
def fill_in_datetime_fields(apps, schema_editor):
# Old values in output field of delta table where string instead of json
Job = apps.get_model("core", "Job")
Job.objects.update(
started_at=models.F("created_... | 28.818182 | 81 | 0.64143 | 114 | 951 | 5.184211 | 0.578947 | 0.020305 | 0.047377 | 0.067682 | 0.321489 | 0.321489 | 0.22335 | 0.22335 | 0.22335 | 0.22335 | 0 | 0.026462 | 0.245005 | 951 | 32 | 82 | 29.71875 | 0.796657 | 0.121977 | 0 | 0.347826 | 1 | 0 | 0.098558 | 0.028846 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4b3d9db6b58f7211471a5f7c96ec4eb5f14b1e04 | 958 | py | Python | backend/app/exceptions/exceptions.py | Michal-Miko/competitive-teams | 6bb55542e06121f413248ddf0b75285296b610bb | [
"MIT"
] | null | null | null | backend/app/exceptions/exceptions.py | Michal-Miko/competitive-teams | 6bb55542e06121f413248ddf0b75285296b610bb | [
"MIT"
] | null | null | null | backend/app/exceptions/exceptions.py | Michal-Miko/competitive-teams | 6bb55542e06121f413248ddf0b75285296b610bb | [
"MIT"
] | null | null | null | from app.database import crud
from fastapi import HTTPException, status
def check_for_team_existence(db, team_id):
if crud.get_team(db, team_id=team_id) is None:
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Team {} not found".format(team_id))
def check_for_player_existence(db, play... | 41.652174 | 117 | 0.775574 | 150 | 958 | 4.633333 | 0.2 | 0.092086 | 0.063309 | 0.063309 | 0.417266 | 0.417266 | 0.417266 | 0.417266 | 0.417266 | 0.417266 | 0 | 0.014337 | 0.126305 | 958 | 22 | 118 | 43.545455 | 0.81601 | 0 | 0 | 0 | 0 | 0 | 0.075157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4b453f03ad86e35ca9832f88f32cb3f426b3e7ef | 1,191 | py | Python | api/migrations/0002_element_pokemon.py | danielchikara/pokemon_in_hom | 5da9baa3f87e012ae0d4278668409e1668bf87a6 | [
"MIT"
] | null | null | null | api/migrations/0002_element_pokemon.py | danielchikara/pokemon_in_hom | 5da9baa3f87e012ae0d4278668409e1668bf87a6 | [
"MIT"
] | null | null | null | api/migrations/0002_element_pokemon.py | danielchikara/pokemon_in_hom | 5da9baa3f87e012ae0d4278668409e1668bf87a6 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.11 on 2022-01-08 03:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Element',
fi... | 35.029412 | 146 | 0.572628 | 116 | 1,191 | 5.75 | 0.482759 | 0.035982 | 0.08096 | 0.107946 | 0.338831 | 0.338831 | 0.338831 | 0.338831 | 0.338831 | 0.338831 | 0 | 0.034078 | 0.285474 | 1,191 | 33 | 147 | 36.090909 | 0.749706 | 0.038623 | 0 | 0.518519 | 1 | 0 | 0.104112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4b45b1a0f99a331cd3db5bcbd3c80d4d359c59e4 | 5,468 | py | Python | src/CLI/actioner/sonic-cli-ip-prefix.py | project-arlo/sonic-mgmt-framework | 562cd84ff3fec9ca705c7df621742f2daa61ce71 | [
"Apache-2.0"
] | 7 | 2019-10-17T06:12:02.000Z | 2021-09-08T11:16:19.000Z | src/CLI/actioner/sonic-cli-ip-prefix.py | noolex/sonic-mgmt-framework | 5493889adc47fc584b04dca1a0cc0a2007211df4 | [
"Apache-2.0"
] | 207 | 2019-06-24T04:48:11.000Z | 2020-05-06T05:51:37.000Z | src/CLI/actioner/sonic-cli-ip-prefix.py | noolex/sonic-mgmt-framework | 5493889adc47fc584b04dca1a0cc0a2007211df4 | [
"Apache-2.0"
] | 20 | 2019-06-27T19:24:45.000Z | 2021-07-15T21:12:30.000Z | #!/usr/bin/python
###########################################################################
#
# Copyright 2019 Dell, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.... | 34.389937 | 285 | 0.599854 | 702 | 5,468 | 4.481481 | 0.246439 | 0.066116 | 0.065798 | 0.046726 | 0.400191 | 0.363954 | 0.324857 | 0.315321 | 0.26637 | 0.261284 | 0 | 0.012494 | 0.253475 | 5,468 | 158 | 286 | 34.607595 | 0.758207 | 0.109912 | 0 | 0.226087 | 0 | 0.06087 | 0.244146 | 0.176671 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.069565 | null | null | 0.034783 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4b48a1ce648ccd7eddf1077ee9304a100d815be4 | 581 | py | Python | day6_10/day6b.py | invincible-akshay/advent_of_code2020 | 81f207c6f7218ff235c31d67e1b4659cc482297c | [
"MIT"
] | null | null | null | day6_10/day6b.py | invincible-akshay/advent_of_code2020 | 81f207c6f7218ff235c31d67e1b4659cc482297c | [
"MIT"
] | null | null | null | day6_10/day6b.py | invincible-akshay/advent_of_code2020 | 81f207c6f7218ff235c31d67e1b4659cc482297c | [
"MIT"
] | null | null | null | import utils.fileutils as futils
inp = futils.read_list("../data/day6.txt")
nums_dict = dict()
group_size, res_count = 0, 0
for line in inp:
if line == "":
# res_count += len(nums_set)
for k, v in nums_dict.items():
if v == group_size:
res_count += 1
nums_dict = ... | 25.26087 | 48 | 0.567986 | 91 | 581 | 3.428571 | 0.395604 | 0.153846 | 0.115385 | 0.163462 | 0.397436 | 0.262821 | 0.262821 | 0.262821 | 0.262821 | 0.262821 | 0 | 0.024752 | 0.304647 | 581 | 22 | 49 | 26.409091 | 0.747525 | 0.04475 | 0 | 0.421053 | 0 | 0 | 0.061483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4b4dceb98d231438a803f497f8f31de32f299051 | 241 | py | Python | sps_demo/accounts/api/serializers.py | JuanDM93/sps_django | df47c7ee63a1e99468644a6f428a6cdabc7ac6ae | [
"MIT"
] | null | null | null | sps_demo/accounts/api/serializers.py | JuanDM93/sps_django | df47c7ee63a1e99468644a6f428a6cdabc7ac6ae | [
"MIT"
] | 1 | 2021-07-27T06:46:05.000Z | 2021-07-27T06:46:05.000Z | sps_demo/accounts/api/serializers.py | JuanDM93/sps_django | df47c7ee63a1e99468644a6f428a6cdabc7ac6ae | [
"MIT"
] | null | null | null | from rest_framework.serializers import ModelSerializer
from accounts.models import Account
class AccountSerializer(ModelSerializer):
class Meta:
model = Account
fields = [
'account_id', 'limit',
]
| 21.909091 | 54 | 0.6639 | 22 | 241 | 7.181818 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26971 | 241 | 10 | 55 | 24.1 | 0.897727 | 0 | 0 | 0 | 0 | 0 | 0.062241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4b4e8e6fb685efd1c0bdeed695e0d638ddd30af1 | 1,376 | py | Python | backend/framework/qlf/dashboard/migrations/0012_auto_20180921_1717.py | desihub/qlf | a9c455f7aee41d7901c89ae90dd821c617340a86 | [
"BSD-3-Clause"
] | 8 | 2017-09-08T00:24:20.000Z | 2019-02-03T07:31:03.000Z | backend/framework/qlf/dashboard/migrations/0012_auto_20180921_1717.py | desihub/qlf | a9c455f7aee41d7901c89ae90dd821c617340a86 | [
"BSD-3-Clause"
] | 77 | 2017-06-15T21:39:09.000Z | 2019-07-13T19:41:27.000Z | backend/framework/qlf/dashboard/migrations/0012_auto_20180921_1717.py | desihub/qlf | a9c455f7aee41d7901c89ae90dd821c617340a86 | [
"BSD-3-Clause"
] | 5 | 2017-09-10T02:25:03.000Z | 2019-02-06T20:55:59.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-09-21 17:17
from __future__ import unicode_literals
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0011_auto_... | 38.222222 | 152 | 0.635174 | 146 | 1,376 | 5.835616 | 0.493151 | 0.076291 | 0.123239 | 0.158451 | 0.314554 | 0.314554 | 0.314554 | 0.314554 | 0.253521 | 0.253521 | 0 | 0.032075 | 0.229651 | 1,376 | 35 | 153 | 39.314286 | 0.771698 | 0.047965 | 0 | 0.107143 | 1 | 0 | 0.091048 | 0.017598 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4b53328e075db009dbb8d21c3c121da0a2ce955a | 476 | py | Python | qcodes/instrument_drivers/rohde_schwarz/HMC8042.py | LGruenhaupt/Qcodes | ffb74dae53c13c4885e61b5a2df3f833d524de04 | [
"MIT"
] | 1 | 2019-12-07T01:25:49.000Z | 2019-12-07T01:25:49.000Z | qcodes/instrument_drivers/rohde_schwarz/HMC8042.py | Dominik-Vogel/Qcodes | b4cf7d58bc1bf3be97af6bf48f57cb6b87d588bb | [
"MIT"
] | 12 | 2020-10-13T16:53:37.000Z | 2020-10-14T17:16:22.000Z | qcodes/instrument_drivers/rohde_schwarz/HMC8042.py | Dominik-Vogel/Qcodes | b4cf7d58bc1bf3be97af6bf48f57cb6b87d588bb | [
"MIT"
] | 1 | 2020-05-03T22:47:40.000Z | 2020-05-03T22:47:40.000Z | from .private.HMC804x import _RohdeSchwarzHMC804x
from qcodes.utils.deprecate import deprecate_moved_to_qcd
@deprecate_moved_to_qcd(alternative="qcodes_contrib_drivers.drivers.RohdeSchwarz.HMC8042.RohdeSchwarzHMC8042")
class RohdeSchwarzHMC8042(_RohdeSchwarzHMC804x):
"""
This is the qcodes driver for the Rohd... | 39.666667 | 110 | 0.781513 | 55 | 476 | 6.418182 | 0.672727 | 0.07932 | 0.090652 | 0.107649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062651 | 0.128151 | 476 | 11 | 111 | 43.272727 | 0.787952 | 0.147059 | 0 | 0 | 0 | 0 | 0.182051 | 0.182051 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4b5a4dc0a470a6b6a0219e69281685d307bd50e5 | 465 | py | Python | ltc/analyzer/migrations/0006_graphitevariable_function.py | v0devil/jltom | b302a39a187b8e1154c6deda636a4db8b30bb40b | [
"MIT"
] | 4 | 2016-12-30T13:26:59.000Z | 2017-04-26T12:07:36.000Z | ltc/analyzer/migrations/0006_graphitevariable_function.py | v0devil/jltom | b302a39a187b8e1154c6deda636a4db8b30bb40b | [
"MIT"
] | null | null | null | ltc/analyzer/migrations/0006_graphitevariable_function.py | v0devil/jltom | b302a39a187b8e1154c6deda636a4db8b30bb40b | [
"MIT"
] | null | null | null | # Generated by Django 2.2.20 on 2021-05-27 14:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('analyzer', '0005_auto_20210526_1755'),
]
operations = [
migrations.AddField(
model_name='graphitevariable',
name='f... | 24.473684 | 117 | 0.584946 | 51 | 465 | 5.235294 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097983 | 0.253763 | 465 | 18 | 118 | 25.833333 | 0.67147 | 0.098925 | 0 | 0 | 1 | 0 | 0.167866 | 0.055156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4b5c74257ca507c7289c021413a4bdff6ed7d6a6 | 2,865 | py | Python | Python/061.py | jaimeliew1/Project_Euler_Solutions | 963c9c6d6571cade8f87341f97a6a2cd1af202bb | [
"MIT"
] | null | null | null | Python/061.py | jaimeliew1/Project_Euler_Solutions | 963c9c6d6571cade8f87341f97a6a2cd1af202bb | [
"MIT"
] | 1 | 2018-04-16T21:01:50.000Z | 2018-04-16T21:01:50.000Z | Python/061.py | jaimeliew1/Project_Euler_Solutions | 963c9c6d6571cade8f87341f97a6a2cd1af202bb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Solution to Project Euler problem X
Author: Jaime Liew
https://github.com/jaimeliew1/Project_Euler_Solutions
"""
import math
def isTri(n):
return ((math.sqrt(1+8*n)-1)/2).is_integer()
def isSqr(n):
return (math.sqrt(n)).is_integer()
def isPent(n):
return ((1+math.sqrt(1+24*n)... | 25.131579 | 89 | 0.506806 | 386 | 2,865 | 3.689119 | 0.295337 | 0.03441 | 0.042135 | 0.021067 | 0.099017 | 0.089888 | 0.066011 | 0.066011 | 0 | 0 | 0 | 0.036938 | 0.347993 | 2,865 | 113 | 90 | 25.353982 | 0.725375 | 0.124258 | 0 | 0.157895 | 0 | 0 | 0.004018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144737 | false | 0 | 0.013158 | 0.105263 | 0.381579 | 0.013158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
4b6108a9e3aec6079aa6d738f5836676b16bd14f | 4,195 | py | Python | examples/zoomed.py | ColmTalbot/psd-covariance-matrices | 59631dd1860e9cf28658df1ce28b10f6f8d59868 | [
"MIT"
] | null | null | null | examples/zoomed.py | ColmTalbot/psd-covariance-matrices | 59631dd1860e9cf28658df1ce28b10f6f8d59868 | [
"MIT"
] | null | null | null | examples/zoomed.py | ColmTalbot/psd-covariance-matrices | 59631dd1860e9cf28658df1ce28b10f6f8d59868 | [
"MIT"
] | 2 | 2021-07-01T02:00:10.000Z | 2021-08-02T07:29:03.000Z | #!/usr/bin/env python
"""
Compute the comparison of the analytic and experimental PSD matrices.
This will generate Figure 1.
This is probably the only example that will run in a reasonable time without
a GPU.
For more details on the method see https://arxiv.org/abs/2106.13785.
"""
import numpy as np
import matplotli... | 32.269231 | 77 | 0.695828 | 522 | 4,195 | 5.323755 | 0.323755 | 0.04534 | 0.053976 | 0.048938 | 0.300828 | 0.256927 | 0.22814 | 0.22814 | 0.18208 | 0.18208 | 0 | 0.025872 | 0.207628 | 4,195 | 129 | 78 | 32.51938 | 0.810168 | 0.065316 | 0 | 0.295238 | 1 | 0 | 0.058778 | 0.007922 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085714 | 0 | 0.085714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4b624ab13f54c8cfd7032b48000491920f6d9a27 | 5,581 | py | Python | web_spider/web_spider/pipelines.py | syun0216/simple_ci | 83d31cb04357fe0bd428ab8f09c2db81a06eb723 | [
"MIT"
] | null | null | null | web_spider/web_spider/pipelines.py | syun0216/simple_ci | 83d31cb04357fe0bd428ab8f09c2db81a06eb723 | [
"MIT"
] | null | null | null | web_spider/web_spider/pipelines.py | syun0216/simple_ci | 83d31cb04357fe0bd428ab8f09c2db81a06eb723 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import pymysql
class WebSpiderPipeline(object):
def init_insert_db(self,key,table_name):
pass
def proc... | 52.650943 | 226 | 0.392403 | 477 | 5,581 | 4.446541 | 0.234801 | 0.029231 | 0.03819 | 0.043376 | 0.517209 | 0.481377 | 0.481377 | 0.466289 | 0.446488 | 0.446488 | 0 | 0.005228 | 0.485934 | 5,581 | 105 | 227 | 53.152381 | 0.734054 | 0.054291 | 0 | 0.474359 | 0 | 0.051282 | 0.688686 | 0.078778 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.038462 | 0.012821 | 0 | 0.051282 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4b6b2b2466b7f50264d915b0b9ab9925c879719e | 587 | py | Python | kora/install/blender.py | wannaphong/kora | 8a9034097d07b14094e077769c02a0b4857d179b | [
"MIT"
] | 91 | 2020-05-26T05:54:51.000Z | 2022-03-09T07:33:44.000Z | kora/install/blender.py | wannaphong/kora | 8a9034097d07b14094e077769c02a0b4857d179b | [
"MIT"
] | 12 | 2020-10-03T10:09:11.000Z | 2021-03-06T23:12:21.000Z | kora/install/blender.py | wannaphong/kora | 8a9034097d07b14094e077769c02a0b4857d179b | [
"MIT"
] | 16 | 2020-07-07T18:39:29.000Z | 2021-03-06T03:46:49.000Z | import os
from IPython import get_ipython
# need this fix first
os.environ["LD_PRELOAD"] = ""
os.system("apt remove libtcmalloc-minimal4")
os.system("apt install libtcmalloc-minimal4")
os.environ["LD_PRELOAD"] = "/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0"
os.system("dpkg -L libtcmalloc-minimal4")
# then ... | 36.6875 | 86 | 0.749574 | 96 | 587 | 4.520833 | 0.572917 | 0.092166 | 0.050691 | 0.082949 | 0.082949 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046382 | 0.081772 | 587 | 16 | 87 | 36.6875 | 0.758813 | 0.088586 | 0 | 0 | 0 | 0.181818 | 0.639098 | 0.216165 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4b6cb29835a30f52c4bb14e8a53ca4a8d4a5cdb7 | 2,352 | py | Python | parks/models.py | ExpertOfNone/expert_of_none | 9ff4e4279a570712766546122c014c754f753485 | [
"MIT"
] | null | null | null | parks/models.py | ExpertOfNone/expert_of_none | 9ff4e4279a570712766546122c014c754f753485 | [
"MIT"
] | null | null | null | parks/models.py | ExpertOfNone/expert_of_none | 9ff4e4279a570712766546122c014c754f753485 | [
"MIT"
] | null | null | null | from django.db import models
from django_countries.fields import CountryField
from localflavor.us.models import USStateField
from base.models import EONBaseModel
class Amenity(EONBaseModel):
"""Common amenities, i.e. Pool, Lake, Hiking Trail, Primitive Camping, etc."""
name = models.CharField(max_length=50)... | 31.36 | 97 | 0.702381 | 289 | 2,352 | 5.487889 | 0.280277 | 0.070618 | 0.079445 | 0.105927 | 0.31652 | 0.208071 | 0.208071 | 0.105927 | 0.105927 | 0.105927 | 0 | 0.008325 | 0.182823 | 2,352 | 74 | 98 | 31.783784 | 0.816857 | 0.05102 | 0 | 0.1 | 0 | 0 | 0.075642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.08 | 0.06 | 0.78 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4b6d6ef8de7836397b32a70984d9c9488bd0f64f | 3,891 | py | Python | roomfinder_dispo/roomfinder_dispo/dispo.py | GuillaumeMorini/roomfinder | d756bba6e50a7361ecf9cf529af4a1775a0e836b | [
"Apache-2.0"
] | 14 | 2017-01-23T02:58:53.000Z | 2020-12-21T14:05:07.000Z | roomfinder_dispo/roomfinder_dispo/dispo.py | GuillaumeMorini/roomfinder | d756bba6e50a7361ecf9cf529af4a1775a0e836b | [
"Apache-2.0"
] | 2 | 2017-01-23T09:46:54.000Z | 2017-09-11T10:15:07.000Z | roomfinder_dispo/roomfinder_dispo/dispo.py | GuillaumeMorini/roomfinder | d756bba6e50a7361ecf9cf529af4a1775a0e836b | [
"Apache-2.0"
] | 9 | 2017-01-23T02:55:27.000Z | 2020-05-20T18:38:18.000Z | #!/usr/bin/env python2.7
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
from flask import Flask, render_template, request, jsonify
import argparse
import datetime
import os, sys
import requests
from socket import error as SocketError
import errno
import json
import pika
import uuid
app = Flask(__name__)
@a... | 31.893443 | 138 | 0.627602 | 482 | 3,891 | 4.892116 | 0.298755 | 0.050891 | 0.035623 | 0.022901 | 0.182782 | 0.093299 | 0.072095 | 0.072095 | 0.072095 | 0.072095 | 0 | 0.009339 | 0.257003 | 3,891 | 121 | 139 | 32.157025 | 0.806295 | 0.005911 | 0 | 0.242424 | 0 | 0 | 0.162658 | 0.01293 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.121212 | null | null | 0.040404 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4b7d6c918015930582e1fb1d514d24f1d777be05 | 1,411 | py | Python | molecool_test/tests/test_molecule.py | radifar/molecool_test | 9e0027656d6f68d2efd9cdf8f24872b4bcea6cb9 | [
"BSD-3-Clause"
] | null | null | null | molecool_test/tests/test_molecule.py | radifar/molecool_test | 9e0027656d6f68d2efd9cdf8f24872b4bcea6cb9 | [
"BSD-3-Clause"
] | null | null | null | molecool_test/tests/test_molecule.py | radifar/molecool_test | 9e0027656d6f68d2efd9cdf8f24872b4bcea6cb9 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import pytest
import molecool_test
@pytest.fixture
def methane_molecule():
symbols = np.array(['C', 'H', 'H', 'H', 'H'])
coordinates = np.array([
[1, 1, 1],
[2.4, 1, 1],
[-0.4, 1, 1],
[1, 1, 2.4],
[1, 1, -0.4],
])
return symbols, coordinates... | 21.707692 | 81 | 0.697378 | 188 | 1,411 | 4.957447 | 0.276596 | 0.177039 | 0.141631 | 0.177039 | 0.391631 | 0.373391 | 0.218884 | 0.019313 | 0.019313 | 0 | 0 | 0.030009 | 0.197023 | 1,411 | 64 | 82 | 22.046875 | 0.792586 | 0 | 0 | 0.135135 | 0 | 0 | 0.003544 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 1 | 0.162162 | false | 0 | 0.081081 | 0 | 0.27027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4b7fc93c2e30ca54b02519e2a781a191d7e736a1 | 6,705 | py | Python | pochta/tracking.py | john-phonk/fs-pochta-api | c3b7df4ecdbfc45fb482cedd8ab6c2927e0a1c9d | [
"MIT"
] | 16 | 2019-05-13T01:12:10.000Z | 2022-01-17T06:21:35.000Z | pochta/tracking.py | john-phonk/fs-pochta-api | c3b7df4ecdbfc45fb482cedd8ab6c2927e0a1c9d | [
"MIT"
] | 4 | 2020-03-06T06:46:35.000Z | 2020-11-22T04:24:34.000Z | pochta/tracking.py | john-phonk/fs-pochta-api | c3b7df4ecdbfc45fb482cedd8ab6c2927e0a1c9d | [
"MIT"
] | 6 | 2019-08-10T13:18:21.000Z | 2021-11-25T08:57:30.000Z | from abc import ABC
from typing import List
from zeep import CachingClient, Client, Settings
from .exceptions import APIError
class _BaseClient(ABC):
"""API клиент сервиса отслеживания посылок.
https://tracking.pochta.ru/specification
"""
WSDL = ''
def __init__(self, login: str, password: str... | 40.149701 | 99 | 0.670097 | 676 | 6,705 | 6.594675 | 0.409763 | 0.020413 | 0.02131 | 0.023553 | 0.365635 | 0.358008 | 0.290265 | 0.245402 | 0.245402 | 0.16061 | 0 | 0.006885 | 0.263535 | 6,705 | 166 | 100 | 40.391566 | 0.895909 | 0.560477 | 0 | 0.262295 | 0 | 0 | 0.122159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0.098361 | 0.065574 | 0 | 0.311475 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4b91ba97fda9b2ee93796afb30a9ecc697c21159 | 1,205 | py | Python | script.module.placenta/lib/resources/lib/modules/thexem.py | parser4life/tantrumrepo | 3b37145f4772409e538cbddb0b7aa23be525772a | [
"Beerware"
] | 1 | 2021-05-09T19:55:51.000Z | 2021-05-09T19:55:51.000Z | script.module.placenta/lib/resources/lib/modules/thexem.py | parser4life/tantrumrepo | 3b37145f4772409e538cbddb0b7aa23be525772a | [
"Beerware"
] | null | null | null | script.module.placenta/lib/resources/lib/modules/thexem.py | parser4life/tantrumrepo | 3b37145f4772409e538cbddb0b7aa23be525772a | [
"Beerware"
] | 2 | 2020-04-01T22:11:12.000Z | 2020-05-07T23:54:52.000Z | # -*- coding: UTF-8 -*-
#######################################################################
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# @tantrumdev wrote this file. As long as you retain this notice you
# can do whatever you want wit... | 36.515152 | 100 | 0.480498 | 129 | 1,205 | 4.449612 | 0.643411 | 0.067944 | 0.066202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003052 | 0.184232 | 1,205 | 32 | 101 | 37.65625 | 0.580875 | 0.418257 | 0 | 0 | 0 | 0.071429 | 0.217153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4b9490ebcc233667c0f331f949a3dfce27be8b1f | 8,723 | py | Python | hirebob/portal/forms.py | shantanub0/hirebob | 5a55e97c6e220059964fbb55439b0189abae1307 | [
"MIT"
] | null | null | null | hirebob/portal/forms.py | shantanub0/hirebob | 5a55e97c6e220059964fbb55439b0189abae1307 | [
"MIT"
] | 1 | 2018-06-23T01:20:26.000Z | 2018-06-25T21:49:17.000Z | hirebob/portal/forms.py | shantanub0/hirebob | 5a55e97c6e220059964fbb55439b0189abae1307 | [
"MIT"
] | 1 | 2018-06-14T12:11:59.000Z | 2018-06-14T12:11:59.000Z | from django import forms
from .models import UserAccount, JobPost, JobPostActivity, UserProfile
class FormUserCreation(forms.ModelForm):
UserTypes = ((1, 'Applicants'), (2, 'Organisations'))
user_type = forms.ChoiceField(choices=UserTypes,
widget=forms.Select(attrs={'class': ... | 56.642857 | 129 | 0.458558 | 669 | 8,723 | 5.898356 | 0.171898 | 0.080841 | 0.099341 | 0.149012 | 0.667258 | 0.631272 | 0.591485 | 0.569437 | 0.525342 | 0.496452 | 0 | 0.006339 | 0.4213 | 8,723 | 153 | 130 | 57.013072 | 0.775357 | 0 | 0 | 0.5 | 0 | 0 | 0.206351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.087302 | 0.015873 | 0 | 0.404762 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4b996a561c6739777af3fa1902cca7e146f0eeaf | 687 | py | Python | TianJiPlanBackend/authentication/migrations/0002_auto_20210912_0929.py | weridolin/tianji-plan | b98a49d92ee2a365095f9e15f4231f5178aca1c0 | [
"Apache-2.0"
] | null | null | null | TianJiPlanBackend/authentication/migrations/0002_auto_20210912_0929.py | weridolin/tianji-plan | b98a49d92ee2a365095f9e15f4231f5178aca1c0 | [
"Apache-2.0"
] | null | null | null | TianJiPlanBackend/authentication/migrations/0002_auto_20210912_0929.py | weridolin/tianji-plan | b98a49d92ee2a365095f9e15f4231f5178aca1c0 | [
"Apache-2.0"
] | 1 | 2021-12-07T11:45:13.000Z | 2021-12-07T11:45:13.000Z | # Generated by Django 3.2.7 on 2021-09-12 01:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('authentication', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='userprofile',
name='mail',
... | 28.625 | 122 | 0.615721 | 77 | 687 | 5.376623 | 0.571429 | 0.043478 | 0.096618 | 0.115942 | 0.304348 | 0.304348 | 0.304348 | 0.304348 | 0.304348 | 0.304348 | 0 | 0.049116 | 0.259098 | 687 | 23 | 123 | 29.869565 | 0.764244 | 0.065502 | 0 | 0.235294 | 1 | 0 | 0.101563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4b9af91c0efeb81facf6d27474553a4bb9a6505d | 2,025 | py | Python | tests/unit_tests/tasks/fortran/test_fortran_compiler.py | bblay/fab | bbdac7bae20c5b8695a2d56945c9593b4fda9c74 | [
"BSD-3-Clause"
] | null | null | null | tests/unit_tests/tasks/fortran/test_fortran_compiler.py | bblay/fab | bbdac7bae20c5b8695a2d56945c9593b4fda9c74 | [
"BSD-3-Clause"
] | null | null | null | tests/unit_tests/tasks/fortran/test_fortran_compiler.py | bblay/fab | bbdac7bae20c5b8695a2d56945c9593b4fda9c74 | [
"BSD-3-Clause"
] | null | null | null | from pathlib import Path
from unittest import mock
import pytest
from fab.build_config import AddFlags
from fab.dep_tree import AnalysedFile
from fab.steps.compile_fortran import CompileFortran
# todo: we might have liked to reuse this from test_dep_tree
from fab.util import CompiledFile
@pytest.fixture
def src_tre... | 38.942308 | 112 | 0.651852 | 299 | 2,025 | 4.257525 | 0.29097 | 0.104478 | 0.078555 | 0.094266 | 0.35978 | 0.169678 | 0.135114 | 0.135114 | 0.135114 | 0.135114 | 0 | 0.02457 | 0.196049 | 2,025 | 51 | 113 | 39.705882 | 0.757371 | 0.088395 | 0 | 0.064516 | 0 | 0 | 0.133225 | 0.011419 | 0 | 0 | 0 | 0.019608 | 0.096774 | 1 | 0.096774 | false | 0 | 0.225806 | 0.064516 | 0.419355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ba4c531fc5b73ca047fb0191f3bbb5ca13cf62d | 209 | py | Python | udacity/cloud-native-application-architecture/3-message-passing/lesson-3-implementing-message-passing/kafka-python-demo/producer.py | thomasrobertz/mooc | cb87365bfcbe8ccf972f36d70a251c73b3c15a7b | [
"MIT"
] | null | null | null | udacity/cloud-native-application-architecture/3-message-passing/lesson-3-implementing-message-passing/kafka-python-demo/producer.py | thomasrobertz/mooc | cb87365bfcbe8ccf972f36d70a251c73b3c15a7b | [
"MIT"
] | 13 | 2021-12-14T20:59:34.000Z | 2022-03-02T11:09:34.000Z | udacity/cloud-native-application-architecture/3-message-passing/lesson-3-implementing-message-passing/kafka-python-demo/producer.py | thomasrobertz/mooc | cb87365bfcbe8ccf972f36d70a251c73b3c15a7b | [
"MIT"
] | 1 | 2020-08-20T12:53:43.000Z | 2020-08-20T12:53:43.000Z | from kafka import KafkaProducer
TOPIC_NAME = 'items'
KAFKA_SERVER = 'localhost:9092'
producer = KafkaProducer(bootstrap_servers=KAFKA_SERVER)
producer.send(TOPIC_NAME, b'Test Message!!!')
producer.flush()
| 19 | 56 | 0.789474 | 26 | 209 | 6.153846 | 0.692308 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.100478 | 209 | 10 | 57 | 20.9 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0.162679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ba61c47eb12a3d8f57c257b4b752059384399df | 6,948 | py | Python | plot_curve.py | wenhuchen/Hierarchical-DSA | 2dbdacde25ee82c9d42fe980694673d285b1f7f3 | [
"MIT"
] | 45 | 2019-02-27T02:04:08.000Z | 2022-03-21T04:49:22.000Z | plot_curve.py | wenhuchen/Hierarchical-DSA | 2dbdacde25ee82c9d42fe980694673d285b1f7f3 | [
"MIT"
] | 2 | 2019-08-18T03:05:11.000Z | 2020-07-26T13:45:05.000Z | plot_curve.py | wenhuchen/Hierarchical-DSA | 2dbdacde25ee82c9d42fe980694673d285b1f7f3 | [
"MIT"
] | 4 | 2019-03-12T17:40:12.000Z | 2021-06-10T07:59:39.000Z | import matplotlib.pyplot as plt
import numpy as np
import math
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
import json
from scipy.interpolate import interp1d
from data_utils import *
def integral(y, x):
area = 0
for xi, xj, yi, yj in zip(x[:-1], x[1:], y[:-1], y[1:]):
ar... | 29.692308 | 105 | 0.598877 | 1,221 | 6,948 | 3.324324 | 0.167076 | 0.013797 | 0.05765 | 0.115299 | 0.670116 | 0.624045 | 0.603351 | 0.556787 | 0.556787 | 0.51392 | 0 | 0.090749 | 0.181635 | 6,948 | 233 | 106 | 29.819742 | 0.623109 | 0.128382 | 0 | 0.494318 | 0 | 0 | 0.145747 | 0.03797 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056818 | null | null | 0.164773 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4baef5968ecd4571dc42ca2e3a144059ebfa9562 | 1,471 | py | Python | Calamous.py | Studio-Pasteque/Pokemon | 6b9f457eef8a2dc28cb8b9b69527404b47c9825a | [
"MIT"
] | 2 | 2020-05-27T08:27:58.000Z | 2020-05-27T09:31:45.000Z | Calamous.py | Studio-Pasteque/Pokemon | 6b9f457eef8a2dc28cb8b9b69527404b47c9825a | [
"MIT"
] | null | null | null | Calamous.py | Studio-Pasteque/Pokemon | 6b9f457eef8a2dc28cb8b9b69527404b47c9825a | [
"MIT"
] | null | null | null |
import learnables.py
# création d'un objet Calamous
class Calamous:
#définition de son type et de si c'est un pokémon
pokemon = True
type_ = "Water"
# définition de ses talents et de son genre (qui seront random)
abilities = "Multicule" or "Glissade" or "Protéen"
gender = "M" or "F"
... | 27.754717 | 114 | 0.56968 | 190 | 1,471 | 4.405263 | 0.563158 | 0.071685 | 0.035842 | 0.054958 | 0.155317 | 0.155317 | 0.081243 | 0.081243 | 0 | 0 | 0 | 0.037393 | 0.363698 | 1,471 | 53 | 114 | 27.754717 | 0.856838 | 0.28416 | 0 | 0.222222 | 0 | 0.027778 | 0.171717 | 0.038384 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4bb35fc82ab5a2d2bc09de6a0496b0c17ea21b52 | 2,469 | py | Python | Grove_Base_Hat_for_RPI/grove.py-master/grove/button/button.py | tcmoore/RPI-Environmental-Controller | 7f28dcdf08c51db8400ccc0369eb049fdce5e901 | [
"Unlicense",
"MIT"
] | 5 | 2019-11-18T02:26:18.000Z | 2021-02-06T20:31:37.000Z | Grove_Base_Hat_for_RPI/grove.py-master/grove/button/button.py | tcmoore/RPI-Environmental-Controller | 7f28dcdf08c51db8400ccc0369eb049fdce5e901 | [
"Unlicense",
"MIT"
] | null | null | null | Grove_Base_Hat_for_RPI/grove.py-master/grove/button/button.py | tcmoore/RPI-Environmental-Controller | 7f28dcdf08c51db8400ccc0369eb049fdce5e901 | [
"Unlicense",
"MIT"
] | 1 | 2020-08-26T10:22:37.000Z | 2020-08-26T10:22:37.000Z | #!/usr/bin/env python
#
# This is the library for Grove Base Hat.
#
# Button Base Class
#
'''
## License
The MIT License (MIT)
Grove Base Hat for the Raspberry Pi, used to connect grove sensors.
Copyright (C) 2018 Seeed Technology Co.,Ltd.
Permission is hereby granted, free of charge, to any person... | 31.253165 | 78 | 0.64439 | 343 | 2,469 | 4.48105 | 0.463557 | 0.035133 | 0.035784 | 0.019519 | 0.033832 | 0.033832 | 0.033832 | 0 | 0 | 0 | 0 | 0.010239 | 0.287971 | 2,469 | 78 | 79 | 31.653846 | 0.86405 | 0.54192 | 0 | 0.090909 | 0 | 0 | 0.019305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0 | 0.060606 | 0.515152 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4bba68abed889d99f735d0534602287dd744310e | 3,794 | py | Python | hemlock/load_scripts/doc_to_mongo.py | Lab41/Hemlock | 2c53cfc11bfbe1e4f901b519db578090fe7a17dd | [
"Apache-2.0"
] | 4 | 2015-05-14T18:59:44.000Z | 2017-03-09T12:49:36.000Z | hemlock/load_scripts/doc_to_mongo.py | Lab41/Hemlock | 2c53cfc11bfbe1e4f901b519db578090fe7a17dd | [
"Apache-2.0"
] | null | null | null | hemlock/load_scripts/doc_to_mongo.py | Lab41/Hemlock | 2c53cfc11bfbe1e4f901b519db578090fe7a17dd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (c) 2013 In-Q-Tel, Inc/Lab41, 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... | 29.640625 | 89 | 0.552978 | 481 | 3,794 | 4.27027 | 0.326403 | 0.026777 | 0.024343 | 0.01704 | 0.278481 | 0.242941 | 0.178676 | 0.178676 | 0.167478 | 0.126582 | 0 | 0.018182 | 0.333158 | 3,794 | 127 | 90 | 29.874016 | 0.793676 | 0.181075 | 0 | 0.363636 | 0 | 0 | 0.120466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020202 | null | null | 0.191919 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4bbd48777ac0547cad592918b3cc57a1efffc54a | 677 | py | Python | project euler/q50.py | milkmeat/thomas | fbc72af34267488d931a4885d4e19fce22fea582 | [
"MIT"
] | null | null | null | project euler/q50.py | milkmeat/thomas | fbc72af34267488d931a4885d4e19fce22fea582 | [
"MIT"
] | null | null | null | project euler/q50.py | milkmeat/thomas | fbc72af34267488d931a4885d4e19fce22fea582 | [
"MIT"
] | null | null | null | def listprime(max):
prime=[True]*max
prime[0]=False
prime[1]=False
for x in range(max/2):
if prime[x]:
bei=x+x
while bei<max:
prime[bei]=False
bei+=x
return prime
def listprimenumber(lpn):
listprimelpn=listprime(lpn)
... | 22.566667 | 39 | 0.499261 | 107 | 677 | 3.158879 | 0.280374 | 0.04142 | 0.053254 | 0.097633 | 0.118343 | 0.035503 | 0 | 0 | 0 | 0 | 0 | 0.030162 | 0.363368 | 677 | 30 | 40 | 22.566667 | 0.75406 | 0.084195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4bbf1d6eb8af61adb06a84718e97dce8dddb1ac0 | 6,094 | py | Python | spartify/settings.py | cl1ckname/Spartify | 3c45236e3f8803af9d01ac638e3d10a834ab7b7d | [
"Apache-2.0"
] | 3 | 2021-07-26T15:43:20.000Z | 2022-02-11T17:22:31.000Z | spartify/settings.py | cl1ckname/Spartify | 3c45236e3f8803af9d01ac638e3d10a834ab7b7d | [
"Apache-2.0"
] | 2 | 2021-07-08T14:25:22.000Z | 2021-08-19T18:17:14.000Z | spartify/settings.py | cl1ckname/Spartify | 3c45236e3f8803af9d01ac638e3d10a834ab7b7d | [
"Apache-2.0"
] | 1 | 2021-08-19T18:17:48.000Z | 2021-08-19T18:17:48.000Z | """
Django settings for spartify project.
Generated by 'django-admin startproject' using Django 2.2.12.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | 29.019048 | 125 | 0.675583 | 696 | 6,094 | 5.718391 | 0.340517 | 0.052261 | 0.030151 | 0.04397 | 0.21809 | 0.173116 | 0.092211 | 0.092211 | 0.055276 | 0.025126 | 0 | 0.013723 | 0.174926 | 6,094 | 210 | 126 | 29.019048 | 0.777844 | 0.185264 | 0 | 0.041958 | 1 | 0 | 0.501417 | 0.34251 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.041958 | 0.013986 | 0 | 0.013986 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4bc28189f37d50450206554fd6ab1753bd171778 | 7,386 | py | Python | getters/haproxy_haproxylogs.py | gunny26/datalogger | 7bd29ab88f2e2749284d80a6a834c94c0955a7e0 | [
"Apache-2.0"
] | null | null | null | getters/haproxy_haproxylogs.py | gunny26/datalogger | 7bd29ab88f2e2749284d80a6a834c94c0955a7e0 | [
"Apache-2.0"
] | null | null | null | getters/haproxy_haproxylogs.py | gunny26/datalogger | 7bd29ab88f2e2749284d80a6a834c94c0955a7e0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
"""
Program to read and parse haproxylogs to put them in shape to upload to DataLogger
The input date schould be sorted by date, and finished
the uploaded data will immediately split into TimeseriesArray, so no further data
of this day could be appended
"""
import os
import sys
import gzip
import logg... | 40.80663 | 217 | 0.627268 | 922 | 7,386 | 4.916486 | 0.321041 | 0.013898 | 0.026252 | 0.011913 | 0.144717 | 0.107876 | 0.056034 | 0.041915 | 0.041915 | 0 | 0 | 0.012748 | 0.256566 | 7,386 | 180 | 218 | 41.033333 | 0.812785 | 0.019496 | 0 | 0.081481 | 0 | 0 | 0.152127 | 0.00326 | 0 | 0 | 0 | 0 | 0.007407 | 0 | null | null | 0 | 0.081481 | null | null | 0.007407 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4bc441d80eb90948270b0c67a69acd09e054bf96 | 793 | py | Python | packages/jobs/statuses.py | NHSDigital/list-reconciliation | 37b1ebe99a64275e23b0e7fb6a89415b92d14306 | [
"MIT"
] | 4 | 2021-06-25T08:28:54.000Z | 2021-12-16T11:03:42.000Z | packages/jobs/statuses.py | NHSDigital/list-reconciliation | 37b1ebe99a64275e23b0e7fb6a89415b92d14306 | [
"MIT"
] | 184 | 2021-06-24T15:27:08.000Z | 2022-03-17T12:44:28.000Z | packages/jobs/statuses.py | NHSDigital/list-reconciliation | 37b1ebe99a64275e23b0e7fb6a89415b92d14306 | [
"MIT"
] | 3 | 2021-11-05T10:21:44.000Z | 2022-03-04T14:29:24.000Z | from enum import Enum
class JobStatus(Enum):
PENDING = "PENDING"
REJECTED = "REJECTED"
SENT_TO_DPS = "SENT_TO_DPS"
PROCESSED_BY_DPS = "PROCESSED_BY_DPS"
COMPLETE = "COMPLETE"
NOTIFIED_VALIDATION_FAILED = "NOTIFIED_VALIDATION_FAILED"
CLEANED_UP = "CLEANED_UP"
class ParseStatus(Enum):
... | 18.880952 | 61 | 0.675914 | 85 | 793 | 6.058824 | 0.494118 | 0.062136 | 0.034951 | 0.066019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215637 | 793 | 41 | 62 | 19.341463 | 0.827974 | 0.029004 | 0 | 0 | 0 | 0 | 0.269634 | 0.034031 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.038462 | 0.038462 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4bc544909f30548d56d19ceee6f586966f0cd714 | 843 | py | Python | DevOps/Data_Science_in_Production/cap02/15_scikit-learn.py | unimauro/Courses | 81e5b9c4cbc9b875eff82f96bda7d21ec4f258b2 | [
"Apache-2.0"
] | 1 | 2020-07-25T04:56:55.000Z | 2020-07-25T04:56:55.000Z | DevOps/Data_Science_in_Production/cap02/15_scikit-learn.py | unimauro/Courses | 81e5b9c4cbc9b875eff82f96bda7d21ec4f258b2 | [
"Apache-2.0"
] | 2 | 2020-06-15T04:42:00.000Z | 2021-08-29T03:48:28.000Z | DevOps/Data_Science_in_Production/cap02/15_scikit-learn.py | unimauro/Courses | 81e5b9c4cbc9b875eff82f96bda7d21ec4f258b2 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
from sklearn.linear_model import LogisticRegression
import mlflow
import mlflow.sklearn
import flask
model_path = "models/logit_games_v1"
model
= mlflow.sklearn.load_model(model_path)
app = flask.Flask(__name__)
@app.route("/", methods=["GET","POST"])
def predict():
data = {"success": False}
params ... | 31.222222 | 58 | 0.688019 | 133 | 843 | 4.180451 | 0.473684 | 0.161871 | 0.010791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039012 | 0.087782 | 843 | 26 | 59 | 32.423077 | 0.684005 | 0 | 0 | 0 | 0 | 0 | 0.136418 | 0.024911 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.192308 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2991579a0641f47ea260ec96e0a53c12f4df3dbf | 342 | py | Python | authors/apps/author_follows/urls.py | andela/ah-backend-dojo | f2b14f15c4af906da846cafe722f13868d58371f | [
"BSD-3-Clause"
] | 3 | 2019-05-01T10:41:09.000Z | 2021-04-25T22:17:20.000Z | authors/apps/author_follows/urls.py | andela/ah-backend-dojo | f2b14f15c4af906da846cafe722f13868d58371f | [
"BSD-3-Clause"
] | 24 | 2019-04-23T14:56:21.000Z | 2021-12-13T19:58:37.000Z | authors/apps/author_follows/urls.py | andela/ah-backend-dojo | f2b14f15c4af906da846cafe722f13868d58371f | [
"BSD-3-Clause"
] | 4 | 2019-06-29T10:40:32.000Z | 2022-01-04T11:44:53.000Z | from django.urls import path
from .views import FollowStatsViews, AuthorFollowViews
urlpatterns = [
# /authors/followers/ or ../following/
path("<str:follow_state>/", FollowStatsViews.as_view(), name="follows"),
# /authors/<author_username>/follow
path("<str:username>/follow/", AuthorFollowViews.as_vi... | 34.2 | 78 | 0.719298 | 37 | 342 | 6.540541 | 0.594595 | 0.057851 | 0.082645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122807 | 342 | 10 | 79 | 34.2 | 0.806667 | 0.204678 | 0 | 0 | 0 | 0 | 0.2 | 0.081481 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
29978909888062a7973e1bdbe5b82311fd8d9b27 | 6,173 | py | Python | main.py | ml4design/text-processing-module | f1bfe1a49d58156e9e48e5ef69b980f89a5981ea | [
"MIT"
] | null | null | null | main.py | ml4design/text-processing-module | f1bfe1a49d58156e9e48e5ef69b980f89a5981ea | [
"MIT"
] | null | null | null | main.py | ml4design/text-processing-module | f1bfe1a49d58156e9e48e5ef69b980f89a5981ea | [
"MIT"
] | null | null | null | import pandas as pd
from preprocessing import preprocess
from wordclouds import wordcloud, find_by_word
from sentiment_analysis import calculate_sentiment, find_by_sentiment
import nltk
import os
import tempfile
from topic_modelling import lda_topic_model, show_topics, show_example_sentences_by_topic
os.environ["MPLCO... | 55.116071 | 524 | 0.706302 | 907 | 6,173 | 4.699008 | 0.363837 | 0.009385 | 0.009855 | 0.010558 | 0.067574 | 0.044111 | 0.033318 | 0.033318 | 0.033318 | 0.033318 | 0 | 0.004071 | 0.164426 | 6,173 | 112 | 525 | 55.116071 | 0.822218 | 0.794751 | 0 | 0 | 0 | 0 | 0.109267 | 0.029046 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.470588 | 0 | 0.470588 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
299d93368abb2922353eb3246c80b4d0b6d61d48 | 390 | py | Python | awx/main/migrations/0112_deployhistory_date.py | Pavloid21/awx | 224827f6060013b996eb8210597bca68cda65d40 | [
"Apache-2.0"
] | null | null | null | awx/main/migrations/0112_deployhistory_date.py | Pavloid21/awx | 224827f6060013b996eb8210597bca68cda65d40 | [
"Apache-2.0"
] | null | null | null | awx/main/migrations/0112_deployhistory_date.py | Pavloid21/awx | 224827f6060013b996eb8210597bca68cda65d40 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.8 on 2020-03-25 13:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0111_auto_20200325_1311'),
]
operations = [
migrations.AddField(
model_name='deployhistory',
name='date',
... | 20.526316 | 54 | 0.602564 | 42 | 390 | 5.47619 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.284615 | 390 | 18 | 55 | 21.666667 | 0.713262 | 0.115385 | 0 | 0 | 1 | 0 | 0.12828 | 0.067055 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
299f9a135fb0ac674c3200f9214021f3cf9fd561 | 920 | py | Python | policy.py | shantanusingh16/Pytorch-DQN | b7d3270e9e345e85e5c5a5216109529879ab77bd | [
"MIT"
] | 4 | 2018-09-23T19:58:24.000Z | 2022-03-22T20:32:36.000Z | policy.py | shantanusingh16/Pytorch-DQN | b7d3270e9e345e85e5c5a5216109529879ab77bd | [
"MIT"
] | null | null | null | policy.py | shantanusingh16/Pytorch-DQN | b7d3270e9e345e85e5c5a5216109529879ab77bd | [
"MIT"
] | 2 | 2019-05-22T06:02:38.000Z | 2019-10-18T17:08:24.000Z | import numpy as np
import torch
from utils.helpers import process_state, device
def make_epsilon_greedy_policy(estimator, nA):
"""
:param estimator: model that returns q values for a given statem/action pair
:param nA: number of actions in the environment
:return: A function that takes in a state and ... | 36.8 | 87 | 0.646739 | 139 | 920 | 4.201439 | 0.467626 | 0.030822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020741 | 0.266304 | 920 | 25 | 88 | 36.8 | 0.844444 | 0.397826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
29a7a6484cb6277e0cdd34fa9a54d64187a477f7 | 1,082 | py | Python | matrix_multiplication_evolution_example.py | bobbywlindsey/stokepy | e7f4ad0c27d8fc22129558db6ae0dbbab0627ace | [
"MIT"
] | 9 | 2017-05-09T20:00:10.000Z | 2020-07-02T18:00:22.000Z | matrix_multiplication_evolution_example.py | bobbywlindsey/stokepy | e7f4ad0c27d8fc22129558db6ae0dbbab0627ace | [
"MIT"
] | null | null | null | matrix_multiplication_evolution_example.py | bobbywlindsey/stokepy | e7f4ad0c27d8fc22129558db6ae0dbbab0627ace | [
"MIT"
] | 2 | 2017-08-10T14:47:07.000Z | 2019-01-25T02:37:34.000Z | import stokepy as sp
import numpy as np
# instantiate class
fmc = sp.FiniteMarkovChain()
# create initial distribution vector
phi = np.array([0, 0, 1, 0, 0])
# generate Markov chain with no boundary conditions
fmc.gen_from_params(phi, p = 0.6, num_states = 5, dim = 1)
# apply boundary condition: absorbing, reflecti... | 33.8125 | 76 | 0.750462 | 145 | 1,082 | 5.365517 | 0.531034 | 0.092545 | 0.123393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015855 | 0.183919 | 1,082 | 31 | 77 | 34.903226 | 0.865232 | 0.337338 | 0 | 0 | 1 | 0 | 0.01273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
29ac9c03bbaa51b34d7d739bc8607fc9dd0af610 | 309 | py | Python | main.py | yaojenkuo/stockflow | 946609c2fcc1d602032672b57ae7119b4cadae8d | [
"MIT"
] | 33 | 2015-03-08T00:43:37.000Z | 2021-02-18T23:40:05.000Z | main.py | Asoul/stockflow | 946609c2fcc1d602032672b57ae7119b4cadae8d | [
"MIT"
] | null | null | null | main.py | Asoul/stockflow | 946609c2fcc1d602032672b57ae7119b4cadae8d | [
"MIT"
] | 25 | 2015-03-07T15:57:23.000Z | 2021-07-05T01:32:32.000Z | #!/bin/python
# -*- coding: utf-8 -*-
'''基本範例格式'''
import sys
from ctrls.Tester import Tester
from models.exampleModel import exampleModel
def main():
numbers = ['1314']# 股票編號
tester = Tester(numbers, exampleModel)# 使用測試元件
tester.run()# 模擬
if __name__ == '__main__':
sys.exit(main())
| 17.166667 | 50 | 0.647249 | 37 | 309 | 5.189189 | 0.648649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02008 | 0.194175 | 309 | 17 | 51 | 18.176471 | 0.751004 | 0.18123 | 0 | 0 | 0 | 0 | 0.049383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
29b119e99bde0832d57541650801a62ec77c42f6 | 1,017 | py | Python | jisho_api/word/cfg.py | finia2NA/jisho-api | c80beb44a7b70f24e799cd2a7d579356c58f8625 | [
"Apache-2.0"
] | 26 | 2021-10-05T03:54:33.000Z | 2022-03-26T10:46:31.000Z | jisho_api/word/cfg.py | finia2NA/jisho-api | c80beb44a7b70f24e799cd2a7d579356c58f8625 | [
"Apache-2.0"
] | 7 | 2021-11-22T00:43:30.000Z | 2022-01-12T00:34:22.000Z | jisho_api/word/cfg.py | finia2NA/jisho-api | c80beb44a7b70f24e799cd2a7d579356c58f8625 | [
"Apache-2.0"
] | 4 | 2021-12-08T13:41:07.000Z | 2022-03-25T20:54:07.000Z | from enum import Enum
from typing import List, Optional
from pydantic import BaseModel, HttpUrl
class Sense(BaseModel):
class Link(BaseModel):
text: str
url: HttpUrl
class Source(BaseModel):
language: str
english_definitions: List[str]
parts_of_speech: List[Optional[str]]
... | 19.941176 | 60 | 0.647984 | 127 | 1,017 | 5.11811 | 0.448819 | 0.086154 | 0.033846 | 0.055385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26647 | 1,017 | 50 | 61 | 20.34 | 0.871314 | 0.100295 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.085714 | 0 | 0.828571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.